73351687 by lihua

fix: 修改产品上架详情

1 parent c962c817
......@@ -329,6 +329,28 @@ const routes: RouteRecordRaw[] = [
}
}
},
{
path: 'product-JQZQ-detail',
name: 'productInfoJSZQDetail',
component: () => import('@/views/data_asset/registerJSZQDetail.vue'),
meta: {
title: '详情-',
sidebar: false,
breadcrumb: false,
cache: true,
reuse: true
},
beforeEnter: (to, from) => {
if(to.query.type){
if (to.query.type == 'detail') {
to.meta.title = `详情-${to.query.name}`;
} else {
to.meta.editPage = true;
to.meta.title = to.query.type=='add'? '新建数据产品': to.query.type=='edit'? `编辑-${to.query.name}`: `详情-${to.query.name}`;
}
}
}
}
],
},
// {
......
......@@ -47,6 +47,28 @@ const routes: RouteRecordRaw[] = [
}
}
},
{
path: 'product-JQZQ-detail',
name: 'productInfoJSZQDetail',
component: () => import('@/views/data_asset/registerJSZQDetail.vue'),
meta: {
title: '详情-',
sidebar: false,
breadcrumb: false,
cache: true,
reuse: true
},
beforeEnter: (to, from) => {
if(to.query.type){
if (to.query.type == 'detail') {
to.meta.title = `详情-${to.query.name}`;
} else {
to.meta.editPage = true;
to.meta.title = to.query.type=='add'? '新建数据产品': to.query.type=='edit'? `编辑-${to.query.name}`: `详情-${to.query.name}`;
}
}
}
}
],
},
{
......
......@@ -10,7 +10,6 @@ import useUserStore from "@/store/modules/user";
import { CircleCloseFilled, Document } from '@element-plus/icons-vue'
import { ElMessage, ElMessageBox } from "element-plus";
import {
getRegiaterDetail,
getEvaDetail,
qualityAllow,
costAssessAllow,
......@@ -23,7 +22,7 @@ import {
getParamsList,
} from "@/api/modules/queryService";
import {
// getRegiaterDetail
getRegiaterDetail
} from '@/api/modules/dataAssetZq'
import { passFlowData, rejectFlowData, revokeFlowData, isMyFirstNode } from "@/api/modules/workFlowService";
import useDataAssetStore from "@/store/modules/dataAsset";
......
......@@ -294,12 +294,12 @@ const tableBtnClick = (scope, btn) => {
if (row.dataSource == '1') {
router.push({
name: 'registerInfoJSZQDetail',
query: { guid: row.guid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
query: { guid: row.bizGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
});
} else {
router.push({
name: 'registerInfoDetail',
query: { guid: row.guid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
query: { guid: row.bizGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
});
}
} else if (type === 'pass') {
......
......@@ -311,7 +311,12 @@ const tableBtnClick = (scope, btn) => {
const row = scope.row;
currTableData.value = row;
if (type == "detail") {
router.push({
row.dataSource == '1' ? router.push({
name: 'productInfoJSZQDetail',
query: {
guid: row.registerGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset'
}
}) : router.push({
name: 'productListingDetail',
query: {
guid: row.guid,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!