数据申请接口联调
Showing
6 changed files
with
51 additions
and
5 deletions
| ... | @@ -367,8 +367,8 @@ export const getRegisterCatalogDetailGuids = (params) => request({ | ... | @@ -367,8 +367,8 @@ export const getRegisterCatalogDetailGuids = (params) => request({ |
| 367 | }) | 367 | }) |
| 368 | 368 | ||
| 369 | /** 获取资产目录基本信息的详情 */ | 369 | /** 获取资产目录基本信息的详情 */ |
| 370 | export const getRegisterCatalogDetail = (params) => request({ | 370 | export const getRegisterCatalogDetail = (params, isTds = false) => request({ |
| 371 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/detail`, | 371 | 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`, |
| 372 | method: 'get', | 372 | method: 'get', |
| 373 | params | 373 | params |
| 374 | }); | 374 | }); |
| ... | @@ -627,3 +627,46 @@ export const getProductCategoryList = (params) => request({ | ... | @@ -627,3 +627,46 @@ export const getProductCategoryList = (params) => request({ |
| 627 | method: 'post', | 627 | method: 'post', |
| 628 | data: params | 628 | data: params |
| 629 | }) | 629 | }) |
| 630 | |||
| 631 | /** 获取产品目录中的产品基本信息的详情,包括其它连接器 */ | ||
| 632 | export const getTdsRegisterCatalogDetail = (damGuid) => request({ | ||
| 633 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/tds-dam-detail?damGuid=${damGuid}`, | ||
| 634 | method: 'get' | ||
| 635 | }); | ||
| 636 | |||
| 637 | /** ----------------------------- 提供方进行数据申请接口联调 ---------------------------------- */ | ||
| 638 | |||
| 639 | export const getDataApplyPageList = (params) => request({ | ||
| 640 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/page-list`, | ||
| 641 | method: 'post', | ||
| 642 | data: params | ||
| 643 | }) | ||
| 644 | |||
| 645 | export const saveDataApply = (params) => request({ | ||
| 646 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/save`, | ||
| 647 | method: 'post', | ||
| 648 | data: params | ||
| 649 | }) | ||
| 650 | |||
| 651 | export const updateDataApply = (params) => request({ | ||
| 652 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/update`, | ||
| 653 | method: 'put', | ||
| 654 | data: params | ||
| 655 | }) | ||
| 656 | |||
| 657 | export const updateDataApplyState = (params) => request({ | ||
| 658 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/update-state`, | ||
| 659 | method: 'post', | ||
| 660 | data: params | ||
| 661 | }) | ||
| 662 | |||
| 663 | export const deleteDataApply = (params) => request({ | ||
| 664 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/delete`, | ||
| 665 | method: 'delete', | ||
| 666 | data: params | ||
| 667 | }) | ||
| 668 | |||
| 669 | export const getDataApplyDetail = (guid) => request({ | ||
| 670 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/data-application/detail?guid=${guid}`, | ||
| 671 | method: 'get' | ||
| 672 | }) | ||
| ... | \ 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