From fbf5ccaaae6f660d8aacf0279976a96ec7016023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 3 Jun 2021 09:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standardForComments/index.vue | 8 +-- src/router/index.js | 50 +++++++++---------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/pages/regulatoryRepository/standardForComments/index.vue b/src/pages/regulatoryRepository/standardForComments/index.vue index 02911a309..ae12aa135 100644 --- a/src/pages/regulatoryRepository/standardForComments/index.vue +++ b/src/pages/regulatoryRepository/standardForComments/index.vue @@ -282,14 +282,14 @@ export default { }, // 点击查看 handlePreview (item) { - let routeUrl = this.$router.resolve({ + sessionStorage.setItem('accessRow',JSON.stringify(item)) + this.$store.commit('setDetailMap',this.$router.path) + this.$router.push({ name: 'consultationDetails', params: { - id: item.id, - pageType: 'INLAND_STAND' + id: item.id } }) - window.open(routeUrl.href, '_blank') }, oldPreview (item) { sessionStorage.setItem('accessRow', JSON.stringify(item)) diff --git a/src/router/index.js b/src/router/index.js index eac358835..c20d91851 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2375,6 +2375,31 @@ const routes = [ }, // 详情页 // ************************** 其他详情页 ******************************* // + { + path: '/categoryDetails/:id', + name: 'categoryDetails', + component: () => + import('@/pages/regulatoryRepository/standardForComments/pags/categoryDetails'), + meta: { + requireAuth: true, + parentPath: '/standardForComments', + title: '管理征求意见', + // isBoolean: true, + // menuId: '' + } + }, + { + path: '/consultationDetails/:id/:pageType', + name: 'consultationDetails', + component: () => + import('@/pages/regulatoryRepository/standardForComments/pags/consultationDetails'), + meta: { + requireAuth: true, + title: '征求意见详情', + // isBoolean: true, + // menuId: '' + } + }, { path: '/details', name: 'Details', @@ -2397,31 +2422,6 @@ const routes = [ menuId: 'SSA6WR4HV8' } }, - { - path: '/consultationDetails/:id/:pageType', - name: 'consultationDetails', - component: () => - import('@/pages/regulatoryRepository/standardForComments/pags/consultationDetails'), - meta: { - requireAuth: true, - title: '征求意见详情', - isBoolean: true, - menuId: '' - } - }, - { - path: '/categoryDetails/:id', - name: 'categoryDetails', - component: () => - import('@/pages/regulatoryRepository/standardForComments/pags/categoryDetails'), - meta: { - requireAuth: true, - parentPath: '/standardForComments', - title: '管理征求意见', - // isBoolean: true, - // menuId: '' - } - }, { path: '/standInvolveProjectTwo', name: 'standInvolveProjectTwo',