连接器换成调用平台的接口
Showing
7 changed files
with
15 additions
and
17 deletions
| ... | @@ -272,12 +272,7 @@ export const dataSourcesList = [ | ... | @@ -272,12 +272,7 @@ export const dataSourcesList = [ |
| 272 | } | 272 | } |
| 273 | ] | 273 | ] |
| 274 | 274 | ||
| 275 | //获取参数字典列表。 这个是主系统的所有字典 | 275 | /** 目前只有以前的废弃资产代码使用,新的需要使用queryService中的 */ |
| 276 | // export const getParamsList = (data) => request({ | ||
| 277 | // url:`${import.meta.env.VITE_APP_CONFIG_URL}/dict/get-type-page-list`, | ||
| 278 | // method: 'post', | ||
| 279 | // data | ||
| 280 | // }) | ||
| 281 | export const getParamsList = (params) => request({ | 276 | export const getParamsList = (params) => request({ |
| 282 | url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType`, | 277 | url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType`, |
| 283 | method: 'get', | 278 | method: 'get', |
| ... | @@ -285,7 +280,7 @@ export const getParamsList = (params) => request({ | ... | @@ -285,7 +280,7 @@ export const getParamsList = (params) => request({ |
| 285 | }) | 280 | }) |
| 286 | 281 | ||
| 287 | export const getDamTypesList = (params) => request({ | 282 | export const getDamTypesList = (params) => request({ |
| 288 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dict/data/get-by-dictType`, | 283 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/dam/get-by-dictType`, |
| 289 | method: 'get', | 284 | method: 'get', |
| 290 | params | 285 | params |
| 291 | }) | 286 | }) | ... | ... |
| ... | @@ -89,7 +89,7 @@ export const getUserTenant = () => request({ | ... | @@ -89,7 +89,7 @@ export const getUserTenant = () => request({ |
| 89 | 89 | ||
| 90 | // 获取企业信息 | 90 | // 获取企业信息 |
| 91 | export const getEnterpriseData = (params) => request({ | 91 | export const getEnterpriseData = (params) => request({ |
| 92 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/enterprise/detail-by-logonUser`, | 92 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/detail-by-logonUser`, |
| 93 | method: 'get', | 93 | method: 'get', |
| 94 | params | 94 | params |
| 95 | }) | 95 | }) | ... | ... |
| ... | @@ -94,7 +94,7 @@ export const getUserTenant = () => request({ | ... | @@ -94,7 +94,7 @@ export const getUserTenant = () => request({ |
| 94 | 94 | ||
| 95 | // 获取企业信息 | 95 | // 获取企业信息 |
| 96 | export const getEnterpriseData = (params) => request({ | 96 | export const getEnterpriseData = (params) => request({ |
| 97 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/enterprise/detail-by-logonUser`, | 97 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/detail-by-logonUser`, |
| 98 | method: 'get', | 98 | method: 'get', |
| 99 | params | 99 | params |
| 100 | }) | 100 | }) | ... | ... |
| ... | @@ -124,7 +124,7 @@ export const getConstraintPolicyList = () => request({ | ... | @@ -124,7 +124,7 @@ export const getConstraintPolicyList = () => request({ |
| 124 | 124 | ||
| 125 | /** 根据状态获取可用的数字合约模板 */ | 125 | /** 根据状态获取可用的数字合约模板 */ |
| 126 | export const getValidContractTemplateList = () => request({ | 126 | export const getValidContractTemplateList = () => request({ |
| 127 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/contract-template/list-by-biz-status`, | 127 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/list-by-biz-status`, |
| 128 | method: 'get' | 128 | method: 'get' |
| 129 | }); | 129 | }); |
| 130 | 130 | ... | ... |
| ... | @@ -5,7 +5,9 @@ | ... | @@ -5,7 +5,9 @@ |
| 5 | <script lang="ts" setup name="importTableField"> | 5 | <script lang="ts" setup name="importTableField"> |
| 6 | import { ref } from 'vue'; | 6 | import { ref } from 'vue'; |
| 7 | import { | 7 | import { |
| 8 | getParamsList, | 8 | getParamsList |
| 9 | } from "@/api/modules/queryService"; | ||
| 10 | import { | ||
| 9 | chTransformEn | 11 | chTransformEn |
| 10 | } from "@/api/modules/dataAsset"; | 12 | } from "@/api/modules/dataAsset"; |
| 11 | import useUserStore from "@/store/modules/user"; | 13 | import useUserStore from "@/store/modules/user"; | ... | ... |
| ... | @@ -15,7 +15,8 @@ import { TableColumnWidth } from '@/utils/enum'; | ... | @@ -15,7 +15,8 @@ import { TableColumnWidth } from '@/utils/enum'; |
| 15 | import TableTools from "@/components/Tools/table_tools.vue"; | 15 | import TableTools from "@/components/Tools/table_tools.vue"; |
| 16 | import Table from "@/components/Table/index.vue"; | 16 | import Table from "@/components/Table/index.vue"; |
| 17 | import { CarouselPanel } from '@/components/CarouselPanel'; | 17 | import { CarouselPanel } from '@/components/CarouselPanel'; |
| 18 | import { getParamsList, getDamTypesList } from "@/api/modules/dataAsset"; | 18 | import { getParamsList } from "@/api/modules/queryService"; |
| 19 | import { getDamTypesList } from "@/api/modules/dataAsset"; | ||
| 19 | import { | 20 | import { |
| 20 | changeNum, | 21 | changeNum, |
| 21 | } from "@/utils/common"; | 22 | } from "@/utils/common"; | ... | ... |
| ... | @@ -13,8 +13,8 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -13,8 +13,8 @@ import useUserStore from "@/store/modules/user"; |
| 13 | import useDataAssetStore from "@/store/modules/dataAsset"; | 13 | import useDataAssetStore from "@/store/modules/dataAsset"; |
| 14 | import { changeNum } from '@/utils/common'; | 14 | import { changeNum } from '@/utils/common'; |
| 15 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; | 15 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; |
| 16 | import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService"; | 16 | import { getAreaData, getSingleList, getParamsList } from "@/api/modules/queryService"; |
| 17 | import { getApproveList, getTenantApprove, getParamsList, getServiceDetail } from "@/api/modules/dataAsset"; | 17 | import { getApproveList, getTenantApprove, getDamTypesList } from "@/api/modules/dataAsset"; |
| 18 | import { | 18 | import { |
| 19 | getProductList, getFileByDamGuid, productRejectFlowData, | 19 | getProductList, getFileByDamGuid, productRejectFlowData, |
| 20 | getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile, getListingList | 20 | getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile, getListingList |
| ... | @@ -1387,7 +1387,7 @@ onBeforeMount(async () => { | ... | @@ -1387,7 +1387,7 @@ onBeforeMount(async () => { |
| 1387 | }) | 1387 | }) |
| 1388 | } | 1388 | } |
| 1389 | // getApproveData(); | 1389 | // getApproveData(); |
| 1390 | getParamsDataList({ dictType: '资产类型' }).then((res: any) => { | 1390 | getDamTypesList({ dictType: '资产类型' }).then((res: any) => { |
| 1391 | if (res.code == proxy.$passCode) { | 1391 | if (res.code == proxy.$passCode) { |
| 1392 | damTypes.value = res.data || []; | 1392 | damTypes.value = res.data || []; |
| 1393 | let item = formInfo.value.items.find(item => item.field == 'damType'); | 1393 | let item = formInfo.value.items.find(item => item.field == 'damType'); |
| ... | @@ -1396,7 +1396,7 @@ onBeforeMount(async () => { | ... | @@ -1396,7 +1396,7 @@ onBeforeMount(async () => { |
| 1396 | proxy.$ElMessage.error(res.msg); | 1396 | proxy.$ElMessage.error(res.msg); |
| 1397 | } | 1397 | } |
| 1398 | }) | 1398 | }) |
| 1399 | getParamsDataList({ dictType: '交付方式' }).then((res: any) => { | 1399 | getDamTypesList({ dictType: '交付方式' }).then((res: any) => { |
| 1400 | if (res.code == proxy.$passCode) { | 1400 | if (res.code == proxy.$passCode) { |
| 1401 | deliveryWayList.value = res.data || []; | 1401 | deliveryWayList.value = res.data || []; |
| 1402 | let item = formInfo.value.items.find(item => item.field == 'deliveryWay'); | 1402 | let item = formInfo.value.items.find(item => item.field == 'deliveryWay'); |
| ... | @@ -1424,7 +1424,7 @@ onBeforeMount(async () => { | ... | @@ -1424,7 +1424,7 @@ onBeforeMount(async () => { |
| 1424 | } | 1424 | } |
| 1425 | }) | 1425 | }) |
| 1426 | if (detailType != 'detail') { | 1426 | if (detailType != 'detail') { |
| 1427 | getParamsList({ | 1427 | getDamTypesList({ |
| 1428 | dictType: "数据资产目录主题名称", | 1428 | dictType: "数据资产目录主题名称", |
| 1429 | }).then((res: any) => { | 1429 | }).then((res: any) => { |
| 1430 | if (res.code == proxy.$passCode) { | 1430 | if (res.code == proxy.$passCode) { | ... | ... |
-
Please register or sign in to post a comment