0d7ae088 by lihua

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

1 parent e312f9d0
......@@ -311,6 +311,18 @@ const routes: RouteRecordRaw[] = [
}
},
{
path: 'puton-register-catalog-detail',
name: 'putOnProductCatalogDetail',
component: () => import('@/views/data_asset/registerCatalogDetail.vue'),
meta: {
title: '产品详情-',
sidebar: false,
breadcrumb: false,
cache: true,
reuse: true
}
},
{
path: 'product-JQZQ-detail',
name: 'productInfoJSZQDetail',
component: () => import('@/views/data_asset/registerJSZQDetail.vue'),
......
......@@ -403,10 +403,10 @@ onBeforeMount(() => {
onActivated(() => {
if (fullPath === route.fullPath) {
document.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `详情-${route.query.name}`);
document.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `产品详情-${route.query.name}`);
let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath);
if (tab) {
tab.meta.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `详情-${route.query.name}`);
tab.meta.title = foundMode.value == 'download' ? `下载详情-${route.query.name}` : ((foundMode.value == 'read' || foundMode.value == 'readAndDown') ? `查看详情-${route.query.name}` : `产品详情-${route.query.name}`);
}
}
if (registerStore.isRefresh) {
......
......@@ -1880,7 +1880,7 @@ const rejectDialogBtnClick = (btn, info) => {
const viewProductDetail = () => {
router.push({
path: '/data-asset/register-catalog/register-catalog-detail',
name: 'putOnProductCatalogDetail',
query: { guid: flowDetail.value.damGuid, type: "asset", dataSources: 2, foundMode: flowDetail.value.foundMode, name: flowDetail.value.damName },
});
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!