修改选择人员窗口关闭后选项消失问题

This commit is contained in:
wenc000 2019-12-13 21:29:03 +08:00
parent 6777bf2a01
commit b3c1b2bf65

View File

@ -52,7 +52,6 @@
var selectDepartmentUserArray = [];
function closeBox() {
top.dialog.dialogData.selectedDepartmentUsers = selectDepartmentUserArray;
top.dialog.dialogData.selectedUsers = null;
top.dialog.closeBox();
}
@ -74,7 +73,6 @@
var initTimeout = null;
var isInited = false;
function initCheckData(zTree) {
top.dialog.dialogData.selectedDepartmentUsers = [];
if(isInited) {
return;
}
@ -172,6 +170,7 @@
$('#selectUsers').append('<span id="selected_user_'+ item.id +'" class="layui-btn layui-btn-xs">'+ item.title +' </span>');
}
}
top.dialog.dialogData.selectedDepartmentUsers = selectDepartmentUserArray;
}
$('.confirm').on('click', function() {
closeBox();