From 290f9034548170493aa11c2b4ae60b2b21c01fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Fri, 28 Jan 2022 11:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E6=A0=87=E5=88=B6=E4=BF=AE=E8=AE=A2?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=AE=A1=E6=8E=A7=E4=BF=AE=E6=94=B9=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qbzxdjhgk/component/establish.vue | 144 +++++++++++++++++- .../qbzxdjhgk/component/merge.vue | 143 ++++++++++++++++- 2 files changed, 285 insertions(+), 2 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/establish.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/establish.vue index a1c57cf5e..4770f5fb6 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/establish.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/establish.vue @@ -70,7 +70,7 @@ + @click.native="choiceLeader"> + + + + + + + + + + + + + 查询 + + + + 清空 + + + + + + > + + + + + + + + + + + + + 1 ){ + this.$message.warning('您只能选择一条数据进行带入') + }else if(this.workChangeList.length < 1 ){ + this.$message.warning('请至少选择一条数据') + }else{ + this.$set(this.qbfsForm, 'wgLeader', this.workChangeList[0].workLeaderId) + this.$set(this.qbfsForm, 'wgLeaderName', this.workChangeList[0].workLeader) + if(this.qbfsForm.wgLeaderName){ + this.$refs.qbfsForm.validateField('wgLeaderName') + } + this.workModel = false + } + }, + getWorkBtn(){ + this.page = 1 + this.getWorkData() + }, + clearSearch(){ + this.workSearch.workGroupName = '' + this.getWorkData() + }, + pageChange(page){ + this.page = page + this.getWorkData() + }, + pageSizeChange(pageSize){ + this.pageSize = pageSize + this.getWorkData() + }, + workChange(data) { + this.workChangeList = data + }, + getWorkData() { + this.$http.get("workGroup/work-group", { + pageSize: this.pageSize, + page: this.page, + workGroupName: this.workSearch.workGroupName + }, { + _this: this + }, res => { + this.workData = res.data.records; + this.total = res.data.total; + }, e => { + }); + }, assemble(ids,names){ let list= new Array(); let idArray=ids.split(','); diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue index 5ce6ac679..535091d3e 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/merge.vue @@ -138,7 +138,7 @@ + @click.native="choiceLeader"> + + + + + + + + + + + + + 查询 + + + + 清空 + + + + + + > + + + + + + + + + + + + + 1 ){ + this.$message.warning('您只能选择一条数据进行带入') + }else if(this.workChangeList.length < 1 ){ + this.$message.warning('请至少选择一条数据') + }else{ + this.$set(this.qbfsForm, 'wgLeader', this.workChangeList[0].workLeaderId) + this.$set(this.qbfsForm, 'wgLeaderName', this.workChangeList[0].workLeader) + if(this.qbfsForm.wgLeaderName){ + this.$refs.qbfsForm.validateField('wgLeaderName') + } + this.workModel = false + } + }, + getWorkBtn(){ + this.page = 1 + this.getWorkData() + }, + clearWorkSearch(){ + this.workSearch.workGroupName = '' + this.getWorkData() + }, + pageChangeNo(page){ + this.pageNo = page + this.getWorkData() + }, + pageSizeChangeNo(pageSize){ + this.pageSizeNo = pageSize + this.getWorkData() + }, + workChange(data) { + this.workChangeList = data + }, + getWorkData() { + this.$http.get("workGroup/work-group", { + pageSize: this.pageSizeNo, + page: this.pageNo, + workGroupName: this.workSearch.workGroupName + }, { + _this: this + }, res => { + this.workData = res.data.records; + this.total = res.data.total; + }, e => { + }); + }, //体系结构单选 handleClick(data,checked, node){ if(checked){