bug fixed 所属部门
This commit is contained in:
@ -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>
|
||||
|
||||
@ -152,6 +152,7 @@
|
||||
hiddenId: "userid",
|
||||
textId: "username",
|
||||
deptNameDom: "deptName",
|
||||
deptIdDom: "pid",
|
||||
sexDom: "sex",
|
||||
userCardIdDom: "userCardId",
|
||||
userId: userId
|
||||
@ -161,6 +162,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 modal-lg">
|
||||
@ -245,8 +258,9 @@
|
||||
|
||||
<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="${safetyStaffArchives.deptName}" disabled>
|
||||
<input type="text" class="form-control" id="deptName" name="deptName" placeholder="点击选择所属部门"
|
||||
value="${safetyStaffArchives.deptName}" onclick="showDept4SelectFun();" readonly>
|
||||
<input type="hidden" id="pid" name="pid" value="${safetyStaffArchives.pid}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -282,3 +296,4 @@
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<div id="deptSelectDiv"></div>
|
||||
|
||||
@ -26,6 +26,9 @@
|
||||
if(`${param.deptNameDom}` != ""){
|
||||
$('#${param.formId} #${param.deptNameDom}').val(resp[0]._pname);
|
||||
}
|
||||
if(`${param.deptIdDom}` != ""){
|
||||
$('#${param.formId} #${param.deptIdDom}').val(resp[0].pid);
|
||||
}
|
||||
if(`${param.sexDom}` != ""){
|
||||
$('#${param.formId} #${param.sexDom}').val(resp[0].sex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user