27771cee by lihua

fix: 修改产品上架详情

1 parent 6f7adb70
...@@ -329,6 +329,28 @@ const routes: RouteRecordRaw[] = [ ...@@ -329,6 +329,28 @@ const routes: RouteRecordRaw[] = [
329 } 329 }
330 } 330 }
331 }, 331 },
332 {
333 path: 'product-JQZQ-detail',
334 name: 'productInfoJSZQDetail',
335 component: () => import('@/views/data_asset/registerJSZQDetail.vue'),
336 meta: {
337 title: '详情-',
338 sidebar: false,
339 breadcrumb: false,
340 cache: true,
341 reuse: true
342 },
343 beforeEnter: (to, from) => {
344 if(to.query.type){
345 if (to.query.type == 'detail') {
346 to.meta.title = `详情-${to.query.name}`;
347 } else {
348 to.meta.editPage = true;
349 to.meta.title = to.query.type=='add'? '新建数据产品': to.query.type=='edit'? `编辑-${to.query.name}`: `详情-${to.query.name}`;
350 }
351 }
352 }
353 }
332 ], 354 ],
333 }, 355 },
334 // { 356 // {
......
...@@ -47,6 +47,28 @@ const routes: RouteRecordRaw[] = [ ...@@ -47,6 +47,28 @@ const routes: RouteRecordRaw[] = [
47 } 47 }
48 } 48 }
49 }, 49 },
50 {
51 path: 'product-JQZQ-detail',
52 name: 'productInfoJSZQDetail',
53 component: () => import('@/views/data_asset/registerJSZQDetail.vue'),
54 meta: {
55 title: '详情-',
56 sidebar: false,
57 breadcrumb: false,
58 cache: true,
59 reuse: true
60 },
61 beforeEnter: (to, from) => {
62 if(to.query.type){
63 if (to.query.type == 'detail') {
64 to.meta.title = `详情-${to.query.name}`;
65 } else {
66 to.meta.editPage = true;
67 to.meta.title = to.query.type=='add'? '新建数据产品': to.query.type=='edit'? `编辑-${to.query.name}`: `详情-${to.query.name}`;
68 }
69 }
70 }
71 }
50 ], 72 ],
51 }, 73 },
52 { 74 {
......
...@@ -10,7 +10,6 @@ import useUserStore from "@/store/modules/user"; ...@@ -10,7 +10,6 @@ import useUserStore from "@/store/modules/user";
10 import { CircleCloseFilled, Document } from '@element-plus/icons-vue' 10 import { CircleCloseFilled, Document } from '@element-plus/icons-vue'
11 import { ElMessage, ElMessageBox } from "element-plus"; 11 import { ElMessage, ElMessageBox } from "element-plus";
12 import { 12 import {
13 getRegiaterDetail,
14 getEvaDetail, 13 getEvaDetail,
15 qualityAllow, 14 qualityAllow,
16 costAssessAllow, 15 costAssessAllow,
...@@ -23,7 +22,7 @@ import { ...@@ -23,7 +22,7 @@ import {
23 getParamsList, 22 getParamsList,
24 } from "@/api/modules/queryService"; 23 } from "@/api/modules/queryService";
25 import { 24 import {
26 // getRegiaterDetail 25 getRegiaterDetail
27 } from '@/api/modules/dataAssetZq' 26 } from '@/api/modules/dataAssetZq'
28 import { passFlowData, rejectFlowData, revokeFlowData, isMyFirstNode } from "@/api/modules/workFlowService"; 27 import { passFlowData, rejectFlowData, revokeFlowData, isMyFirstNode } from "@/api/modules/workFlowService";
29 import useDataAssetStore from "@/store/modules/dataAsset"; 28 import useDataAssetStore from "@/store/modules/dataAsset";
......
...@@ -280,12 +280,12 @@ const tableBtnClick = (scope, btn) => { ...@@ -280,12 +280,12 @@ const tableBtnClick = (scope, btn) => {
280 if (row.dataSource == '1') { 280 if (row.dataSource == '1') {
281 router.push({ 281 router.push({
282 name: 'registerInfoJSZQDetail', 282 name: 'registerInfoJSZQDetail',
283 query: { guid: row.guid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' } 283 query: { guid: row.bizGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
284 }); 284 });
285 } else { 285 } else {
286 router.push({ 286 router.push({
287 name: 'registerInfoDetail', 287 name: 'registerInfoDetail',
288 query: { guid: row.guid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' } 288 query: { guid: row.bizGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
289 }); 289 });
290 } 290 }
291 } else if (type === 'pass') { 291 } else if (type === 'pass') {
......
...@@ -320,7 +320,12 @@ const tableBtnClick = (scope, btn) => { ...@@ -320,7 +320,12 @@ const tableBtnClick = (scope, btn) => {
320 const row = scope.row; 320 const row = scope.row;
321 currTableData.value = row; 321 currTableData.value = row;
322 if (type == "detail") { 322 if (type == "detail") {
323 router.push({ 323 row.dataSource == '1' ? router.push({
324 name: 'productInfoJSZQDetail',
325 query: {
326 guid: row.registerGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset'
327 }
328 }) : router.push({
324 name: 'productListingDetail', 329 name: 'productListingDetail',
325 query: { 330 query: {
326 guid: row.guid, 331 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!