update:保留侧边栏

This commit is contained in:
youyuzihan
2021-06-02 23:42:06 +08:00
parent 00ad1e9b9b
commit 59d9fc8c7d
2 changed files with 19 additions and 8 deletions
@@ -61,7 +61,7 @@
label="类别" label="类别"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="oldPreview(scope.row)" class="table-jump">{{ scope.row.oldStandNum }}</a> <a class="table-jump" @click.stop="oldPreview(scope.row)">{{ scope.row.oldStandNum }}</a>
</template> </template>
</el-table-column> </el-table-column>
@@ -291,15 +291,25 @@ export default {
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, '_blank')
}, },
oldPreview (item) { oldPreview (item) {
let routeUrl = this.$router.resolve({ sessionStorage.setItem('accessRow', JSON.stringify(item))
this.$store.commit('setDetailMap', this.$route.path)
this.$router.push({
name: 'categoryDetails', name: 'categoryDetails',
params: { params: {
id: item.id, id: item.id
pageType: 'INLAND_STAND'
} }
}) })
window.open(routeUrl.href, '_blank')
}, },
// oldPreview (item) {
// let routeUrl = this.$router.resolve({
// name: 'categoryDetails',
// params: {
// id: item.id,
// pageType: 'INLAND_STAND'
// }
// })
// window.open(routeUrl.href, '_self')
// },
// handlePreview (params) { // handlePreview (params) {
// if (params.compareType === '条款比对') { // if (params.compareType === '条款比对') {
// this.$store.commit('setDetailMap', this.$route.path) // this.$store.commit('setDetailMap', this.$route.path)
+4 -3
View File
@@ -2410,15 +2410,16 @@ const routes = [
} }
}, },
{ {
path: '/categoryDetails/:id/:pageType', path: '/categoryDetails/:id',
name: 'categoryDetails', name: 'categoryDetails',
component: () => component: () =>
import('@/pages/details/categoryDetails/index'), import('@/pages/details/categoryDetails/index'),
meta: { meta: {
requireAuth: true, requireAuth: true,
parentPath: '/standardForComments',
title: '管理征求意见', title: '管理征求意见',
isBoolean: true, // isBoolean: true,
menuId: '' // menuId: ''
} }
}, },
{ {