From 1391041a2c7c8328e6b39b5e4137d7ec88613471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 14 Jul 2021 14:31:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home1/components/searchGroup/index.vue | 61 ++++++++++++------- .../components/solicitopinions/index.vue | 13 ++-- .../searchCenter/pages/standardSearch.vue | 4 ++ 3 files changed, 49 insertions(+), 29 deletions(-) diff --git a/src/pages/home1/components/searchGroup/index.vue b/src/pages/home1/components/searchGroup/index.vue index ee628b2be..72691d218 100644 --- a/src/pages/home1/components/searchGroup/index.vue +++ b/src/pages/home1/components/searchGroup/index.vue @@ -2,26 +2,27 @@ @@ -33,36 +34,50 @@ export default { mixins: [], data() { return { - selectKey: '', - keywords: '', + // 当前查询状态 + checkState: 'All', + // 查询内容 + checkContent: '', jumpPage: [ { - selectKey: '选项1', - label: '国内外标准法规', + label: '全部', + value: 'All' }, { - selectKey: '选项2', - label: '研究报告', + label: '国内标准法规', + value: 'stand' + }, + { + label: '海外标准法规', // value没改 + value: 'bussstand' + }, + { + label: '国内外政策', + value: 'laws' }, { - selectKey: '选项3', label: '企业标准', - }, - { - selectKey: '选项4', - label: '动态&通知', - }, - { - selectKey: '选项5', - label: '流程中心', - }, + value: 'enterprise' + } ], } }, computed: {}, watch: {}, - mounted() {}, - methods: {}, + methods: { + search() { + this.$router.push({ + name: 'StandardSearch', + params: { + selectKey: this.checkState, + searchValue: this.checkContent || undefined + } + }) + }, + }, + mounted(){ + + }, } diff --git a/src/pages/home1/components/solicitopinions/index.vue b/src/pages/home1/components/solicitopinions/index.vue index 2da7e6647..e6279110f 100644 --- a/src/pages/home1/components/solicitopinions/index.vue +++ b/src/pages/home1/components/solicitopinions/index.vue @@ -43,12 +43,13 @@ export default { } ) }, standForComments (item) { - this.$router.push({ - name:'standardForComments', - params: { - id: item.id - } - },) + this.$store.commit('setDetailMap',this.$router.path) + this.$router.push({ + name: 'consultationDetails', + query: { + item: item + } + }) }, }, } diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue index 62876a7b3..04ef5ace5 100644 --- a/src/pages/searchCenter/pages/standardSearch.vue +++ b/src/pages/searchCenter/pages/standardSearch.vue @@ -363,6 +363,10 @@ export default { mounted() { //查询所有选项 this.queryOptions(); + let globalInputSearch = this.$route.params.searchValue + if (globalInputSearch !== 'allvalue') { + this.keywords = globalInputSearch + } }, unmounted() { From b2e04ae8ca1dc1d21cebd95b47efb85be8932ad9 Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Wed, 14 Jul 2021 16:14:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9?= =?UTF-8?q?=E6=95=B4=E6=94=B9=E6=B5=81=E7=A8=8B=E7=AC=AC=E4=BA=8C=E6=AD=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/wfhxzg/step2.vue | 119 +++++++++--------- 1 file changed, 59 insertions(+), 60 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue index 687f3930a..ea9bab914 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue @@ -12,23 +12,23 @@ - + - - - + + @click="getTableByPage(nonSearch)"> 查询 @@ -105,15 +105,15 @@ @@ -187,7 +187,7 @@ export default { ListModel: false, // 新增编辑抽屉开关 taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, - nonConformitySearch: { + nonSearch: { standId: '', // 标准号/名称 productName: '', // 项目名称 responsibleUnit: '' // 责任部门 @@ -206,15 +206,6 @@ export default { myLoading: false, // 责任部门 zNodesSItem: [], - unqualidiedData: [{ - standId: '', - productName: '', - itemsNum: '', - itemsName: '', - planCloseTime: '', - responsibleUnit: '', - dutyEngineer: '' - }], clearSelection: false, nodeList: [], drawerTitle: '', //drawer标题 @@ -244,11 +235,19 @@ export default { this.getData() this.getTree() }, - methods: { + watch: { + nonSearch(val) { + this.nonSearch = val + } + }, + methods: { getData() { const params = { taskIds: this.taskIds, pId: this.pId, + standId: '', // 标准号/名称 + productName: '', // 项目名称 + responsibleUnit: '' // 责任部门 } inboundLiaisonDetail(params).then(res => { const processForm = JSON.parse(res.mesg) @@ -261,30 +260,19 @@ export default { }) }, // 批量选择分发责任人 - dutyEngineerList() { + dutyEngineerList(id) { if (this.multipleSelection.length === 0) { this.$message.warning("请选择至少一条数据进行分发责任人"); } else { - this.multipleSelection.map((i, index)=> { - i.show = true - this.$set(this.dataList, i, index) - }) + this.nodeList = [] + this.nodeList.push(id) + this.modalshowflag = true } }, // 选择勾选项的集合 handleSelectionChange(value) { this.multipleSelection = value - }, - // 选择分发责任人时 - choiceDuty(type, title, id) { - this.nodeList = [] - this.nodeList.push(id) - this.type = type - this.drawerTitle = title - this.modalshowflag = true - }, - selectPeople(row) { - this.modalshowflag = true + console.log(value) }, handleTabs(name) { this.active = name @@ -313,10 +301,7 @@ export default { } let json = { dockUserList: list, - // engineer: this.$store.getters.userInfo.userId, - // standardInfoList: list[0].standardInfoList, } - console.log(json) let flag=false this.dataList.forEach(item => { if (item.dutyPeopleInfo === '') { @@ -364,19 +349,13 @@ export default { // 流程节点负责人抽屉保存按钮 saveUserInfo () { // 选取负责人时的操作 - for (let i = 0; i < this.multipleSelection.length; i++ ) { - this.multipleSelection[i].dutyPeopleInfo = this.roleRow[0].name - this.multipleSelection[i].dutyPeopleInfoId = this.roleRow[0].id - for (let b = 0; b < this.multipleSelection.length; b++) { - this.dataList[b].dutyPeopleInfo = this.multipleSelection[i].dutyPeopleInfo - this.dataList[b].dutyPeopleInfoId = this.multipleSelection[i].dutyPeopleInfoId - this.dataList.forEach(val=> { - val.show = false - }) - } - this.lastDataList = this.dataList - this.$refs.multipleTable.clearSelection(); - } + this.multipleSelection.forEach(item => { + item.dutyPeopleInfo = this.roleRow[0].name + item.dutyPeopleInfoId = this.roleRow[0].id + }) + this.lastDataList = this.dataList + this.$refs.multipleTable.clearSelection(); + // 选取流程信息完成 this.roleForm.dutyUserInfoName = this.roleRow.name this.modalshowflag = false }, @@ -385,17 +364,37 @@ export default { this.modalshowflag = false }, //查询按钮 - getTableByPage() { - this.getData() - }, + getTableByPage({ standId, productName, responsibleUnit }) {//多条件和模糊查询 + this.realList = this.dataList.filter(item => { + let matchId = true; // 标准号 筛选 + let matchName = true; // 项目名称 筛选 + let matchUnit = true; // 部门 筛选 + + if (standId) { + const keysId = standId + .toUpperCase() // 转大写 + .replace(' ', '') // 删掉空格 + .split('') // 切割成 单个字 + matchId = keysId.every(key => item.standId.toUpperCase().includes(key)); + } + if (productName) { + matchName = item.productName === productName; + } + if (responsibleUnit) { + matchUnit = item.responsibleUnit === responsibleUnit; + } + return matchId && matchName && matchUnit; + }) + this.dataList = this.realList + }, // 清空 查询条件 - clearAllSearch (search = true) { - this.nonConformitySearch = { + clearAllSearch () { + this.nonSearch = { standId: '', productName: '', responsibleUnit: '' } - this.getTableByPage() + this.getData() }, // 分页事件 pageChange (page) { From 8b4e61300d30c99b8ecc7f9903a96e5f93ecd4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 14 Jul 2021 17:15:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzqdfb/step1.vue | 2 +- .../pages/creatProcess/xmpg/step1.vue | 16 ++++++-------- .../pages/creatProcess/xmpg/step2.vue | 4 ++-- .../pages/creatProcess/xmpg/step3.vue | 10 +++++---- .../pages/creatProcess/xmpg/step4.vue | 16 +++++++------- .../pages/creatProcess/xmpg/step5.vue | 16 ++++++++++++-- .../page/listOfCountries.vue | 20 ++++++++--------- .../page/listOther.vue | 22 +++++++++---------- .../page/listProject.vue | 3 +-- 9 files changed, 60 insertions(+), 49 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 94e7d8975..c077f5604 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -9,7 +9,7 @@
基础信息
人员信息
-
+
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index 2fcc2a5ed..b89020428 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -9,7 +9,7 @@
基础信息
人员信息
-
+
@@ -17,7 +17,7 @@ @@ -109,7 +109,7 @@
@@ -536,16 +536,15 @@ export default { }, //提交事件 handleSubmit() { - console.log(this.roleForm) - console.log(this.listForm); - // var json = this.listForm var json = Object.assign(this.listForm, this.roleForm) json.prcCreateUser = this.$store.getters.userInfo.userId; json.prcCreateUserName = this.$store.getters.userInfo.account; json.standId = this.listForm.standId; - this.$refs["xmpgForm"].validate((valid) => { + json.XCXSSRQ = this.sarAccessListDatas[0].attrInfoMap.XCXSSRQ + json.ZCCSSRQ = this.sarAccessListDatas[0].attrInfoMap.ZCCSSRQ + this.$refs['listForm'].validate((valid) => { if (valid) { - this.$refs["Form"].validate((valid) => { + this.$refs['roleForm'].validate((valid) => { if (valid) { this.$http.get("lawss/activiti/startProcess", { type: "5" }, { _this: this @@ -652,7 +651,6 @@ export default { }, { _this: this }, res => { - console.log(res.data); this.productData = res.data; this.totalNo = res.data.total; }, e => { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue index cc668d048..d9e41a3e0 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue @@ -9,7 +9,7 @@
基础信息
审批历史
-
+
@@ -110,7 +110,7 @@
-
+
基础信息
审批历史
-
+
@@ -98,12 +98,12 @@ label="条款名称"> @@ -155,7 +155,7 @@
-
+
基础信息
审批历史
-
+
@@ -103,13 +103,13 @@ label="条款名称"> @@ -264,7 +264,7 @@
-
+
基础信息
审批历史
-
+
@@ -102,6 +102,18 @@ align="center" label="条款名称"> + + + +
-
+
{ const URL = `sarLawsDetailedList/sar-laws-detailed-list/deleteListAll?idList=${this.selectedList.join(',')}` this.$http.postDelete(URL, {}, res => { @@ -317,7 +316,8 @@ export default { }, e => { }); }).catch(() => { - }); + + }) } }, // 表格选择框 diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue index 9ab5e43c8..2bcab6947 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue @@ -300,31 +300,31 @@ export default { name: "OtherAddEit" }); }, - // 删除 + //批量删除 deleteSarAccess(flag, id) { - if (flag === "delOne") { + if (flag === 'delOne') { this.selectedList = []; this.selectedList[0] = id; } if (this.selectedList.length === 0) { - this.$message.warning("请选择要删除的数据"); + this.$message.warning('请选择要删除的数据') } else { - this.$confirm("确认删除这些数据?", "提示", { - confirmButtonText: "确认", - confirmButtonClass: "common-button-primary", - cancelButtonText: "取消", - type: "warning" + this.$confirm('确定删除这些数据?', '提示', { + confirmButtonText: '确定', + confirmButtonClass: 'common-button-primary', + cancelButtonText: '取消', + type: 'warning', }).then(() => { - const URL = `sarLawsDetailedList/sar-laws-detailed-list/deleteListAll?idList=${this.selectedList.join(",")}`; + const URL = `sarLawsDetailedList/sar-laws-detailed-list/deleteListAll?idList=${this.selectedList.join(',')}` this.$http.postDelete(URL, {}, res => { this.searchSarAccess(); this.selectedList = []; - this.$message.success("删除成功"); + this.$message.success('删除成功') }, e => { }); }).catch(() => { - }); + }) } }, // 表格选择框 diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue index bc2abd6a1..34ac7c354 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue @@ -309,7 +309,7 @@ export default { this.selectedList = []; this.selectedList[0] = id; } - if (this.selectedList === 0) { + if (this.selectedList.length === 0) { this.$message.warning('请选择要删除的数据') } else { this.$confirm('确定删除这些数据?', '提示', { @@ -329,7 +329,6 @@ export default { }) } - }, // 表格选择框 selectOne(data) {