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 = ''