73351687 by lihua

fix: 修改产品上架详情

1 parent c962c817
...@@ -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";
......
...@@ -294,12 +294,12 @@ const tableBtnClick = (scope, btn) => { ...@@ -294,12 +294,12 @@ const tableBtnClick = (scope, btn) => {
294 if (row.dataSource == '1') { 294 if (row.dataSource == '1') {
295 router.push({ 295 router.push({
296 name: 'registerInfoJSZQDetail', 296 name: 'registerInfoJSZQDetail',
297 query: { guid: row.guid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' } 297 query: { guid: row.bizGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
298 }); 298 });
299 } else { 299 } else {
300 router.push({ 300 router.push({
301 name: 'registerInfoDetail', 301 name: 'registerInfoDetail',
302 query: { guid: row.guid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' } 302 query: { guid: row.bizGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset' }
303 }); 303 });
304 } 304 }
305 } else if (type === 'pass') { 305 } else if (type === 'pass') {
......
...@@ -311,7 +311,12 @@ const tableBtnClick = (scope, btn) => { ...@@ -311,7 +311,12 @@ const tableBtnClick = (scope, btn) => {
311 const row = scope.row; 311 const row = scope.row;
312 currTableData.value = row; 312 currTableData.value = row;
313 if (type == "detail") { 313 if (type == "detail") {
314 router.push({ 314 row.dataSource == '1' ? router.push({
315 name: 'productInfoJSZQDetail',
316 query: {
317 guid: row.registerGuid, name: row.damName, tenantGuid: row.tenantGuid, tenantName: row.tenantName, type: 'asset'
318 }
319 }) : router.push({
315 name: 'productListingDetail', 320 name: 'productListingDetail',
316 query: { 321 query: {
317 guid: row.guid, 322 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!