4e8849ec by lihua

数据申请接口联调

1 parent 50bb31b5
...@@ -325,8 +325,8 @@ export const getRegisterCatalogDetailGuids = (params) => request({ ...@@ -325,8 +325,8 @@ export const getRegisterCatalogDetailGuids = (params) => request({
325 }) 325 })
326 326
327 /** 获取资产目录基本信息的详情 */ 327 /** 获取资产目录基本信息的详情 */
328 export const getRegisterCatalogDetail = (params) => request({ 328 export const getRegisterCatalogDetail = (params, isTds = false) => request({
329 url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/detail`, 329 url: isTds ? `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/tds-dam-detail?damGuid=${params.guid}` : `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/detail`,
330 method: 'get', 330 method: 'get',
331 params 331 params
332 }); 332 });
...@@ -584,4 +584,47 @@ export const getProductCategoryList = (params) => request({ ...@@ -584,4 +584,47 @@ export const getProductCategoryList = (params) => request({
584 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/tds-grounding-page-list`, 584 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/tds-grounding-page-list`,
585 method: 'post', 585 method: 'post',
586 data: params 586 data: params
587 })
588
589 /** 获取产品目录中的产品基本信息的详情,包括其它连接器 */
590 export const getTdsRegisterCatalogDetail = (damGuid) => request({
591 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/tds-dam-detail?damGuid=${damGuid}`,
592 method: 'get'
593 });
594
595 /** ----------------------------- 提供方进行数据申请接口联调 ---------------------------------- */
596
597 export const getDataApplyPageList = (params) => request({
598 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/page-list`,
599 method: 'post',
600 data: params
601 })
602
603 export const saveDataApply = (params) => request({
604 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/save`,
605 method: 'post',
606 data: params
607 })
608
609 export const updateDataApply = (params) => request({
610 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/update`,
611 method: 'put',
612 data: params
613 })
614
615 export const updateDataApplyState = (params) => request({
616 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/update-state`,
617 method: 'post',
618 data: params
619 })
620
621 export const deleteDataApply = (params) => request({
622 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/delete`,
623 method: 'delete',
624 data: params
625 })
626
627 export const getDataApplyDetail = (guid) => request({
628 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/detail?guid=${guid}`,
629 method: 'get'
587 }) 630 })
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -29,6 +29,7 @@ import { USERROLE } from '@/utils/enum'; ...@@ -29,6 +29,7 @@ import { USERROLE } from '@/utils/enum';
29 const router = useRouter(); 29 const router = useRouter();
30 const route = useRoute(); 30 const route = useRoute();
31 const { proxy } = getCurrentInstance() as any; 31 const { proxy } = getCurrentInstance() as any;
32 const userData = JSON.parse(localStorage.userData);
32 33
33 /** 34 /**
34 * 数据源选项列表 35 * 数据源选项列表
...@@ -313,7 +314,7 @@ const tableInfo = ref({ ...@@ -313,7 +314,7 @@ const tableInfo = ref({
313 query: { 314 query: {
314 guid: scope.row.guid, // 产品GUID 315 guid: scope.row.guid, // 产品GUID
315 type: 'detail', // 查看类型 316 type: 'detail', // 查看类型
316 foundMode: 'use', // 发现模式 317 foundMode: 'tdsUse', // 发现模式
317 name: scope.row.damName, // 产品名称 318 name: scope.row.damName, // 产品名称
318 } 319 }
319 }); 320 });
...@@ -335,6 +336,7 @@ const tableInfo = ref({ ...@@ -335,6 +336,7 @@ const tableInfo = ref({
335 { label: "应用场景", field: "scenarioName", width: 120 }, 336 { label: "应用场景", field: "scenarioName", width: 120 },
336 { label: "所属科室", field: "medDepartmentCodeName", width: 110 }, 337 { label: "所属科室", field: "medDepartmentCodeName", width: 110 },
337 { label: "所属主题", field: "subjectDomainName", width: 120 }, 338 { label: "所属主题", field: "subjectDomainName", width: 120 },
339 { label: "发布机构", field: "rightMainName", width: 180 },
338 { label: "上架时间", field: "groundingTime", width: 170 }, 340 { label: "上架时间", field: "groundingTime", width: 170 },
339 ], 341 ],
340 data: [], // 表格数据 342 data: [], // 表格数据
...@@ -355,6 +357,7 @@ const tableInfo = ref({ ...@@ -355,6 +357,7 @@ const tableInfo = ref({
355 return [{ 357 return [{
356 value: 'approve', 358 value: 'approve',
357 label: "数据申请", 359 label: "数据申请",
360 disabled: scope.row.rightMain === userData.tenantGuid,
358 // 点击申请数据 361 // 点击申请数据
359 click: (scope) => { 362 click: (scope) => {
360 // TODO,是否申请过的不能再申请? 363 // TODO,是否申请过的不能再申请?
......
...@@ -200,8 +200,8 @@ const registerDetailTableInfo = ref({ ...@@ -200,8 +200,8 @@ const registerDetailTableInfo = ref({
200 200
201 const getDetailInfo = () => { 201 const getDetailInfo = () => {
202 fullscreenLoading.value = true; 202 fullscreenLoading.value = true;
203 getRegisterCatalogDetail({ guid: catalogGuid, serviceTenantGuid: route.query.tenantGuid }).then((res: any) => { 203 getRegisterCatalogDetail({ guid: catalogGuid, serviceTenantGuid: route.query.tenantGuid }, foundMode.value === 'tdsUse').then((res: any) => {
204 if (res.code == proxy.$passCode) { 204 if (res?.code == proxy.$passCode) {
205 const data = res.data || {}; 205 const data = res.data || {};
206 detailInfo.value = data; 206 detailInfo.value = data;
207 publicDataProductsMainRSVO.value = detailInfo.value.publicDataProductsMainRSVO || {}; 207 publicDataProductsMainRSVO.value = detailInfo.value.publicDataProductsMainRSVO || {};
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!