diff --git a/src/views/system/group/user/index.vue b/src/views/system/group/user/index.vue index f70fd06..db9fd7b 100644 --- a/src/views/system/group/user/index.vue +++ b/src/views/system/group/user/index.vue @@ -100,7 +100,7 @@ - + @@ -246,6 +246,7 @@ export default { keyDepeName: '', keyJobLeven: '', dialogFormEdit: false, + editloading: false, dialogType: 'add', rules: { EMAIL: [ @@ -357,6 +358,7 @@ export default { })) resolve(nodes) // 通过调用resolve将子节点数据返回,通知组件数据加载完成 }).catch((e) => { + this.editloading = false this.listLoading = false }) }, 500) @@ -588,8 +590,6 @@ export default { console.log(row) this.dialogType = 'editUser' this.pd = JSON.parse(JSON.stringify(row)) - this.dialogFormEdit = true - await this.$nextTick() const areaRefID = [] if (this.pd.PROVINCE) { areaRefID.push(this.pd.PROVINCE) @@ -609,14 +609,6 @@ export default { refDeptLevelVal.id = this.pd.deptLevenlID const deptRefsValue = {} deptRefsValue.id = this.pd.DEPARTMENT_ID - // this.$nextTick(() => { // 此处使用这个可以等节点渲染后再获取节点 - // if (this.$refs.refFromDeptTypeID) { - // this.$refs.refFromDeptTypeID.handleNodeClick(refDeptLevelVal) - // } - // if (this.$refs.deptTree) { - // this.$refs.deptTree.handleNodeClick(deptRefsValue) - // } - // } var arrString = [] if (this.pd.ROLE_ID != null && this.pd.ROLE_ID != '') { arrString.push(this.pd.ROLE_ID) @@ -631,17 +623,9 @@ export default { } } this.pd.ROLE_ID = arrString - // var roleIds = [] - // if (this.pd.ROLE_ID) { - // roleIds.push(this.pd.ROLE_ID) - // if (this.pd.ROLE_IDS) { - // var roleIDS = this.pd.ROLE_IDS.split(',') - // roleIDS.forEach((item) => { - // roleIds.push(item) - // }) - // } - // } - // this.pd.ROLE_ID = roleIds + this.dialogFormEdit = true + await this.$nextTick() + }, handleEditStatus(row, type) { const typeName = type == '1' ? '禁用' : '启用'