From cde6e6864286161e3d2c4d39b7c053fed0aca121 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 09 九月 2024 10:39:56 +0800 Subject: [PATCH] 修改人员添加bug --- src/components/do/b1-inspect-order-plan/Inspection.vue | 1 - src/components/view/person-manage.vue | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index dd840df..3e6e7f1 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -2383,7 +2383,6 @@ this.tableList = null; this.tableList = [this.tableLists[0]] this.currentTable = this.tableLists[0].templateId; - console.log(111,this.currentTable); if(this.tableLists.find(m=>m.templateId==this.currentTable)&&this.tableLists.find(m=>m.templateId==this.currentTable).templateName.includes('鐢佃矾璇曢獙')&&this.currentTableState!=0&&this.currentTableState!=1){ this.versionDialogVisible = true } diff --git a/src/components/view/person-manage.vue b/src/components/view/person-manage.vue index 8d26d89..d38b0ae 100644 --- a/src/components/view/person-manage.vue +++ b/src/components/view/person-manage.vue @@ -519,12 +519,14 @@ }) }).catch(e => {}) }, - selectTreeList() { + selectTreeList(e) { this.treeLoad = true this.$axios.get(this.$api.department.selectDepartment).then(res => { this.list = res.data this.treeLoad = false - this.componentData.entity.roleId = this.list[0].id; + if(!e){ + this.componentData.entity.roleId = this.list[0].id; + } this.refreshTable() }) }, @@ -545,7 +547,7 @@ } this.$message.success('娣诲姞鎴愬姛') this.addDia = false - this.selectTreeList() + this.selectTreeList(true) this.addLoad = false this.addOb.name = '' }).catch(e => { @@ -613,7 +615,7 @@ this.$refs.personTable.clearSelection() this.addLoad = false this.userSearch2 = '' - this.selectTreeList() + this.selectTreeList(true) }).catch(e => { this.addLoad = false }) -- Gitblit v1.9.3