数据申请接口联调
Showing
6 changed files
with
51 additions
and
5 deletions
| ... | @@ -331,8 +331,8 @@ export const getRegisterCatalogDetailGuids = (params) => request({ | ... | @@ -331,8 +331,8 @@ export const getRegisterCatalogDetailGuids = (params) => request({ |
| 331 | }) | 331 | }) |
| 332 | 332 | ||
| 333 | /** 获取资产目录基本信息的详情 */ | 333 | /** 获取资产目录基本信息的详情 */ |
| 334 | export const getRegisterCatalogDetail = (params) => request({ | 334 | export const getRegisterCatalogDetail = (params, isTds = false) => request({ |
| 335 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/detail`, | 335 | 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`, |
| 336 | method: 'get', | 336 | method: 'get', |
| 337 | params | 337 | params |
| 338 | }); | 338 | }); |
| ... | @@ -591,3 +591,46 @@ export const getProductCategoryList = (params) => request({ | ... | @@ -591,3 +591,46 @@ export const getProductCategoryList = (params) => request({ |
| 591 | method: 'post', | 591 | method: 'post', |
| 592 | data: params | 592 | data: params |
| 593 | }) | 593 | }) |
| 594 | |||
| 595 | /** 获取产品目录中的产品基本信息的详情,包括其它连接器 */ | ||
| 596 | export const getTdsRegisterCatalogDetail = (damGuid) => request({ | ||
| 597 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/tds-dam-detail?damGuid=${damGuid}`, | ||
| 598 | method: 'get' | ||
| 599 | }); | ||
| 600 | |||
| 601 | /** ----------------------------- 提供方进行数据申请接口联调 ---------------------------------- */ | ||
| 602 | |||
| 603 | export const getDataApplyPageList = (params) => request({ | ||
| 604 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/page-list`, | ||
| 605 | method: 'post', | ||
| 606 | data: params | ||
| 607 | }) | ||
| 608 | |||
| 609 | export const saveDataApply = (params) => request({ | ||
| 610 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/save`, | ||
| 611 | method: 'post', | ||
| 612 | data: params | ||
| 613 | }) | ||
| 614 | |||
| 615 | export const updateDataApply = (params) => request({ | ||
| 616 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/update`, | ||
| 617 | method: 'put', | ||
| 618 | data: params | ||
| 619 | }) | ||
| 620 | |||
| 621 | export const updateDataApplyState = (params) => request({ | ||
| 622 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/update-state`, | ||
| 623 | method: 'post', | ||
| 624 | data: params | ||
| 625 | }) | ||
| 626 | |||
| 627 | export const deleteDataApply = (params) => request({ | ||
| 628 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/delete`, | ||
| 629 | method: 'delete', | ||
| 630 | data: params | ||
| 631 | }) | ||
| 632 | |||
| 633 | export const getDataApplyDetail = (guid) => request({ | ||
| 634 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/detail?guid=${guid}`, | ||
| 635 | method: 'get' | ||
| 636 | }) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| ... | @@ -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 || {}; | ... | ... |
-
Please register or sign in to post a comment