bug fixed 所属部门

This commit is contained in:
Timer
2026-03-17 00:53:23 +08:00
parent 3ea3e0a9af
commit 6de1aabe80
6 changed files with 64 additions and 4 deletions

View File

@ -147,6 +147,7 @@
hiddenId: "userid",
textId: "username",
deptNameDom: "deptName",
deptIdDom: "pid",
sexDom: "sex",
userCardIdDom: "userCardId",
userId: userId
@ -156,6 +157,18 @@
});
}
//选择所属部门
function showDept4SelectFun() {
$.post(ext.contextPath + '/user/showUnit4Select_Limited.do', {
formId: "subForm",
hiddenId: "pid",
textId: "deptName"
}, function (data) {
$("#deptSelectDiv").html(data);
openModal('unit4SelectModal_Limited');
});
}
</script>
<div class="modal fade" id="subModal">
<div class="modal-dialog" style="width: 53%">
@ -239,8 +252,9 @@
</div>
<label class="col-sm-2 control-label">*所属部门:</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="deptName" name="deptName" placeholder="所属部门"
value="" disabled>
<input type="text" class="form-control" id="deptName" name="deptName" placeholder="点击选择所属部门"
value="" onclick="showDept4SelectFun();" readonly>
<input type="hidden" id="pid" name="pid" value="">
</div>
</div>
@ -274,3 +288,4 @@
</div>
<!-- /.modal-dialog -->
</div>
<div id="deptSelectDiv"></div>