diff --git a/cloud-common-plugin/src/main/resources/templates/tree/tree-user.html b/cloud-common-plugin/src/main/resources/templates/tree/tree-user.html index c586ae2..50bcf81 100644 --- a/cloud-common-plugin/src/main/resources/templates/tree/tree-user.html +++ b/cloud-common-plugin/src/main/resources/templates/tree/tree-user.html @@ -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(''+ item.title +' '); } } + top.dialog.dialogData.selectedDepartmentUsers = selectDepartmentUserArray; } $('.confirm').on('click', function() { closeBox();