From 30b4ded5b2fddddae588c17a7aa6f2c9404c1031 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 24 May 2024 08:56:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=85=A5=E5=8F=82=E7=BD=AE=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/shequzhili/eventOld/cpts/event-info.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/modules/shequzhili/eventOld/cpts/event-info.vue b/src/views/modules/shequzhili/eventOld/cpts/event-info.vue index 35279cf92..c93c7bcd9 100644 --- a/src/views/modules/shequzhili/eventOld/cpts/event-info.vue +++ b/src/views/modules/shequzhili/eventOld/cpts/event-info.vue @@ -504,7 +504,12 @@ export default { this.formData.agencyId = ""; this.formData.gridId = ""; } - this.formData.openFlag = this.formData.operationType == "7"?1:0 + if(this.formData.operationType == "7"){ + this.formData.openFlag = 1 + this.formData.operationType = "" + }else{ + this.formData.openFlag = 0 + } const url = "/governance/icEventOld/add"; const { data, code, msg } = await requestPost(url, { ...this.formData, @@ -540,7 +545,7 @@ export default { this.replayInfo.icEventId = this.eventId; if(this.formData.operationType === '7'){ this.replayInfo.openFlag = 1 - this.replayInfo.operationType = '7'//不可以openFlag为true时去掉校验吗? + this.replayInfo.operationType = ''//不可以openFlag为true时去掉校验吗? this.replayInfo.content = '1111'//不可以openFlag为true时去掉校验吗? }else{ this.replayInfo.openFlag = 0 From 9cceafe7c6862a0d339847111b33f193138dbf34 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 24 May 2024 09:09:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/home/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/modules/home/index.vue b/src/views/modules/home/index.vue index 3adc2d98b..844f56cc4 100644 --- a/src/views/modules/home/index.vue +++ b/src/views/modules/home/index.vue @@ -503,7 +503,16 @@ export default { this.$router.push({ path: obj[item.category], }); - } + } else if(item.msgType == "sys_version_upgrade_publish"){ + let { targetId } = item + this.$router.push({ path: `notice-version`, query: { version_id: targetId } }); + this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => { + if (item.name === "notice-version") { + return { ...item }; + } + return item; + }); + } this.getNoticeData() },