diff --git a/src/pages/config/pages/mechanismManage/pages/mechanism.vue b/src/pages/config/pages/mechanismManage/pages/mechanism.vue index ec4d5f16b..a0a277786 100644 --- a/src/pages/config/pages/mechanismManage/pages/mechanism.vue +++ b/src/pages/config/pages/mechanismManage/pages/mechanism.vue @@ -249,6 +249,7 @@ export default { name: 'mechanism', data() { return { + formLoading: true, peopleType: '', //1为树结构 2 为全机构 nodeKeyId: '', searchForm: { @@ -327,6 +328,7 @@ export default { searchPostName() { this.page = 1; this.getTree2(); + this.sarPost.name = ""; }, // 查询 resetSelect() { this.sarPost.name = ""; @@ -531,12 +533,17 @@ export default { }, selectEdit() { - this.userId = [] - this.manageData.forEach(item=>{ - this.userId.push(item.userId) - }) - this.drawerTitle = '批量配置岗位' - this.modalPost = true + this.getTree2() + if(this.manageData.length){ + this.userId = [] + this.manageData.forEach(item=>{ + this.userId.push(item.userId) + }) + this.drawerTitle = '批量配置岗位' + this.modalPost = true + }else{ + this.$message.warning('请选择需要批量配置岗位的角色') + } }, }, computed: {}, diff --git a/src/pages/config/pages/mechanismManage/pages/workgroup.vue b/src/pages/config/pages/mechanismManage/pages/workgroup.vue index 70e06c64a..cbd1110bb 100644 --- a/src/pages/config/pages/mechanismManage/pages/workgroup.vue +++ b/src/pages/config/pages/mechanismManage/pages/workgroup.vue @@ -268,7 +268,7 @@ export default { }, //查询 searchPostName() { - this.page = 1; + this.workSearch.page = 1; this.getWorkData(); }, //清空 @@ -448,6 +448,7 @@ export default { }, checkedRole(data) { this.addForm = { + id: this.addForm.id, workGroup: this.addForm.workGroup || "", workPeopleGroup: this.addForm.workPeopleGroup || [], workLeaderGroup: this.addForm.workLeaderGroup || [] @@ -466,6 +467,7 @@ export default { }, checkedRole2(data) { this.addForm = { + id: this.addForm.id, workGroup: this.addForm.workGroup || "", workPeopleGroup: this.addForm.workPeopleGroup || [], workLeaderGroup: this.addForm.workLeaderGroup || []