From 7f66222a6c3a5fe0eab3f38261d3afbd2716e86c Mon Sep 17 00:00:00 2001 From: chenxiaoxi Date: Wed, 26 Jan 2022 17:09:36 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=BE=81=E6=B1=82=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E8=AF=A6=E6=83=85=E9=A1=B5=E5=88=B7=E6=96=B0=E5=9B=9E?= =?UTF-8?q?=E5=88=B0=E7=99=BB=E5=BD=95=E9=A1=B5=E7=9A=84BUG=202.=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AA=97=E5=8F=A3=E9=80=9A=E4=BF=A1=E5=88=B7?= =?UTF-8?q?=E6=96=B0BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standardForComments/index.vue | 2 +- .../pags/AddFileDetails.vue | 2 + .../pags/consultationDetails.vue | 96 ++++++++++++++----- src/router/index.js | 2 +- src/store/getters/index.js | 3 + src/store/mutations/index.js | 6 ++ src/store/state/index.js | 5 +- src/sysConfig/index.js | 6 +- 8 files changed, 90 insertions(+), 32 deletions(-) diff --git a/src/pages/regulatoryRepository/standardForComments/index.vue b/src/pages/regulatoryRepository/standardForComments/index.vue index 128f670dc..39b63a38b 100644 --- a/src/pages/regulatoryRepository/standardForComments/index.vue +++ b/src/pages/regulatoryRepository/standardForComments/index.vue @@ -137,7 +137,7 @@ export default { this.$router.push({ name: "consultationDetails", query: { - item: item + item: JSON.stringify(item) } }); }, diff --git a/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue index e2ff755b6..331766662 100644 --- a/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue +++ b/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue @@ -80,6 +80,8 @@ }, methods: { saveUserInfo () { + this.$store.commit('SET_REFRESH_FLAG', true) + return false this.$refs['formAdd'].validate((valid) => { if (valid) { this.isSubmit = true diff --git a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue index f88060a74..e15616a25 100644 --- a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue +++ b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue @@ -14,7 +14,7 @@ - {{ this.$route.query.item.cid }} + {{ this.lawsStand.cid }}

@@ -22,7 +22,7 @@ - +
@@ -69,11 +69,11 @@

- {{ this.$route.query.item.startTime || '-' }} + {{ this.lawsStand.startTime || '-' }}

- {{ this.$route.query.item.startTime + ' ~ ' + this.$route.query.item.endTime }} + {{ this.lawsStand.startTime + ' ~ ' + this.lawsStand.endTime }} -

@@ -234,9 +234,9 @@ 数据加载中…… + title="查看修改前内容" + :visible.sync="itermsConditionsFlag" + width="800px">
关闭 @@ -246,6 +246,7 @@ diff --git a/src/router/index.js b/src/router/index.js index 2be48c1b8..6e4ee771c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3753,7 +3753,7 @@ const routes = [ // 详情页 // ************************** 其他详情页 ******************************* // { - path: '/consultationDetails/:id/:pageType', + path: '/consultationDetails/:id?/:pageType?', name: 'consultationDetails', component: () => import('@/pages/regulatoryRepository/standardForComments/pags/consultationDetails'), diff --git a/src/store/getters/index.js b/src/store/getters/index.js index 1d90d8ad3..fbf6e9278 100644 --- a/src/store/getters/index.js +++ b/src/store/getters/index.js @@ -179,5 +179,8 @@ export default { } else { return JSON.parse(state.accessStandRegRows) } + }, + refreshFlag: state => { + return state.refreshFlag } } diff --git a/src/store/mutations/index.js b/src/store/mutations/index.js index e326e7cee..3503672c8 100644 --- a/src/store/mutations/index.js +++ b/src/store/mutations/index.js @@ -296,5 +296,11 @@ export default { state.accessStandRegTabName = '' sessionStorage.removeItem('accessStandRegTabName') } + }, + SET_REFRESH_FLAG(state, flag) { + state.refreshFlag = flag + try { + localStorage.setItem('refreshFlag', flag) + } catch (e) {} } } diff --git a/src/store/state/index.js b/src/store/state/index.js index 3b3f7571f..b4ee9092f 100644 --- a/src/store/state/index.js +++ b/src/store/state/index.js @@ -33,6 +33,7 @@ let proLastDetail = '' // 流程结果详情 let rukuBaseInfo = '' // 入库流程基础表单信息(后几步展示用) let accessStandRegRows = '' // 标准法规清单编辑 let accessStandRegTabName = '' // 标准法规清单页面当前页签 +let refreshFlag = '' // 监听其他页面刷新 try { if (localStorage.theme) { defaultTheme = localStorage.theme } if (localStorage.token) { defaultToken = localStorage.token } @@ -65,6 +66,7 @@ try { if (sessionStorage.rukuBaseInfo) { rukuBaseInfo = sessionStorage.rukuBaseInfo } if (sessionStorage.accessStandRegRows) { accessStandRegRows = sessionStorage.accessStandRegRows } if (sessionStorage.accessStandRegTabName) { accessStandRegTabName = sessionStorage.accessStandRegTabName } + if (sessionStorage.refreshFlag) { refreshFlag = localStorage.refreshFlag } } catch (e) {} export default { theme: defaultTheme, // 主题 @@ -99,5 +101,6 @@ export default { proLastDetail, rukuBaseInfo, accessStandRegRows, - accessStandRegTabName + accessStandRegTabName, + refreshFlag } diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js index 23276ef5e..16614fc66 100644 --- a/src/sysConfig/index.js +++ b/src/sysConfig/index.js @@ -6,9 +6,9 @@ // 服务器地址 // const devIp = '39.98.140.126' // const devInterfacePORT = '10005' -const devIp = '192.168.10.6' -// const devIp = '62.234.136.153' -const devInterfacePORT = '9999' +// const devIp = '192.168.10.6' +const devIp = '62.234.136.153' +const devInterfacePORT = '8033' // const devIp = '10.19.11.243' // const devInterfacePORT = '4304' // 配置 idm 认证