0d7ae088 by lihua

运营平台的产品上架跳转产品详情需新开页面

1 parent e312f9d0
...@@ -311,6 +311,18 @@ const routes: RouteRecordRaw[] = [ ...@@ -311,6 +311,18 @@ const routes: RouteRecordRaw[] = [
311 } 311 }
312 }, 312 },
313 { 313 {
314 path: 'puton-register-catalog-detail',
315 name: 'putOnProductCatalogDetail',
316 component: () => import('@/views/data_asset/registerCatalogDetail.vue'),
317 meta: {
318 title: '产品详情-',
319 sidebar: false,
320 breadcrumb: false,
321 cache: true,
322 reuse: true
323 }
324 },
325 {
314 path: 'product-JQZQ-detail', 326 path: 'product-JQZQ-detail',
315 name: 'productInfoJSZQDetail', 327 name: 'productInfoJSZQDetail',
316 component: () => import('@/views/data_asset/registerJSZQDetail.vue'), 328 component: () => import('@/views/data_asset/registerJSZQDetail.vue'),
......
...@@ -403,10 +403,10 @@ onBeforeMount(() => { ...@@ -403,10 +403,10 @@ onBeforeMount(() => {
403 403
404 onActivated(() => { 404 onActivated(() => {
405 if (fullPath === route.fullPath) { 405 if (fullPath === route.fullPath) {
406 document.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `详情-${route.query.name}`); 406 document.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `产品详情-${route.query.name}`);
407 let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); 407 let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath);
408 if (tab) { 408 if (tab) {
409 tab.meta.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `详情-${route.query.name}`); 409 tab.meta.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `产品详情-${route.query.name}`);
410 } 410 }
411 } 411 }
412 if (registerStore.isRefresh) { 412 if (registerStore.isRefresh) {
......
...@@ -1880,7 +1880,7 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1880,7 +1880,7 @@ const rejectDialogBtnClick = (btn, info) => {
1880 1880
1881 const viewProductDetail = () => { 1881 const viewProductDetail = () => {
1882 router.push({ 1882 router.push({
1883 path: '/data-asset/register-catalog/register-catalog-detail', 1883 name: 'putOnProductCatalogDetail',
1884 query: { guid: flowDetail.value.damGuid, type: "asset", dataSources: 2, foundMode: flowDetail.value.foundMode, name: flowDetail.value.damName }, 1884 query: { guid: flowDetail.value.damGuid, type: "asset", dataSources: 2, foundMode: flowDetail.value.foundMode, name: flowDetail.value.damName },
1885 }); 1885 });
1886 } 1886 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!