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){ diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue index c6bfa4991..b6cc16f7f 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue @@ -285,18 +285,18 @@ style="display: none;" v-model="addForm.unit"> - - - - - + + +
@@ -318,7 +318,8 @@ style="display: none;" v-model="addForm.wgLeader" :maxlength="500"/> - + + + +
+
+ + + + + + + + + 查询 + + + + 清空 + + + +
+
+ + + + + + + + + +
+ 加载中... +
+ +
@@ -608,6 +693,18 @@ }, data() { return { + workData: [], + workGroupLoading: false, + workTotal: 0, + workGroupFlag: false, + workGroupList: [], + workSearch: { + workGroupName: '', + leaderName: '', + page: 1, + pageSize: this.$store.getters.userInfo.configContent, + }, + LXDList: [], CBList: [], BZList: [], @@ -727,6 +824,82 @@ props: {}, watch: {}, methods: { + workChange (data) { + this.workGroupList = data + }, + workpageChange (page) { + this.workSearch.page = page; + this.getWorkData() + }, + workpageSizeChange (pageSize) { + this.workSearch.pageSize = pageSize; + this.getWorkData() + }, + searchPostName () { + this.workSearch.page = 1; + this.getWorkData(); + }, + resetSelect () { + this.workSearch = { + leaderName: '', + workGroupName: '', + page: 1, + pageSize: this.$store.getters.userInfo.configContent + }; + this.getWorkData(); + }, + getWorkData () { + this.workGroupLoading = true + this.$http.get("workGroup/work-group", { + ...this.workSearch + }, { + _this: this + }, res => { + this.workGroupLoading = false + res.data.records.map(item => { + item.workLeaderGroup = []; + item.workPeopleGroup = []; + var workLeaderArray = item.workLeader.split(","); + var workPeopleArray = item.workPeople.split(","); + var workLeaderIdArray = item.workLeaderId.split(","); + var workPeopleIdArray = item.workPeopleId.split(","); + for (var i = 0; i < workLeaderArray.length; i++) { + item.workLeaderGroup.push({ name: workLeaderArray[i], id: workLeaderIdArray[i] }); + } + for (var j = 0; j < workPeopleArray.length; j++) { + item.workPeopleGroup.push({ name: workPeopleArray[j], id: workPeopleIdArray[j] }); + } + }); + this.workData = res.data.records; + this.workTotal = res.data.total; + }, e => { + }); + }, + workGroupOk () { + if (this.workGroupList.length > 1) { + this.$message.warning('仅能选择一个工作组') + } else if (this.workGroupList.length === 1) { + this.addForm.wgLeader = this.workGroupList[0].workLeaderId + this.addForm.wgLeaderName = this.workGroupList[0].workLeader + this.workGroupFlag = false + } else { + this.$message.warning('请选择一个工作组') + } + }, + workGroupClose () { + this.workGroupList = [] + this.workSearch = { + leaderName: '', + workGroupName: '', + page: 1, + pageSize: this.$store.getters.userInfo.configContent + } + this.workGroupFlag = false + }, + workGroup (id) { + this.workGroupFlag = true + this.getWorkData() + }, getMap1(item){ const map = new Map(); map.set('0','未开始') @@ -906,7 +1079,6 @@ this.modalshowflag2 = true }, checkedRole2 (data) { - console.log(data); let idList = '' let nameList = '' let bmIdList = ''