df011cb7 by lihua

修改连接器调用接口

1 parent 1627e794
...@@ -272,55 +272,19 @@ export const dataSourcesList = [ ...@@ -272,55 +272,19 @@ 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',
284 params 279 params
285 }) 280 })
286 281
287 /** 获取参数类型列表 */
288 // export const getDamTypesList = () => request({
289 // url:`${import.meta.env.VITE_APP_DATA_SOURCE_URL}/data-dict/get-data-list`,
290 // method: 'post',
291 // data: { paramCode: "DAM-TYPE" }
292 // })
293 export const getDamTypesList = (params) => request({ 282 export const getDamTypesList = (params) => request({
294 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`,
295 method: 'get', 284 method: 'get',
296 params 285 params
297 }) 286 })
298 287
299 /** 获取所属主题的四级参数类型列表 */
300 // export const getSubjectDoaminList = () => request({
301 // url:`${import.meta.env.VITE_APP_DATA_SOURCE_URL}/data-dict/get-data-tree`,
302 // method: 'post',
303 // data: { paramCode: "SUBJECT-DOMAIN" }
304 // })
305 // export const getSubjectDoaminList = (params) => request({
306 // url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType`,
307 // method: 'get',
308 // params
309 // })
310
311 // 获取数据类型的接口
312 // export const getDataTypeList = () => request({
313 // url:`${import.meta.env.VITE_APP_API_BASEURL}/data-dict/get-data-list`,
314 // method: 'post',
315 // data: { paramCode: "DATA_TYPE" }
316 // })
317 // // 新获取数据类型的接口
318 // export const getDataTypeList = (params) => request({
319 // url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType`,
320 // method: 'get',
321 // params
322 // })
323
324 /** 获取权利主体下拉列表 */ 288 /** 获取权利主体下拉列表 */
325 export const getDamCatalogRightMainList = () => request({ 289 export const getDamCatalogRightMainList = () => request({
326 url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/right-main-list`, 290 url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/right-main-list`,
......
...@@ -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 })
......
...@@ -112,19 +112,19 @@ export const copyContractTemplate = (params) => request({ ...@@ -112,19 +112,19 @@ export const copyContractTemplate = (params) => request({
112 112
113 /** 获取操作行为下拉列表 */ 113 /** 获取操作行为下拉列表 */
114 export const getActionPolicyList = () => request({ 114 export const getActionPolicyList = () => request({
115 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/policy-template/list-by-policy-type?policyType=XW`, 115 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/list-by-policy-type?policyType=XW`,
116 method: 'get' 116 method: 'get'
117 }); 117 });
118 118
119 /** 获取约束条件下拉列表 */ 119 /** 获取约束条件下拉列表 */
120 export const getConstraintPolicyList = () => request({ 120 export const getConstraintPolicyList = () => request({
121 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/policy-template/list-by-policy-type?policyType=YS`, 121 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/list-by-policy-type?policyType=YS`,
122 method: 'get' 122 method: 'get'
123 }); 123 });
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
......
...@@ -298,15 +298,8 @@ export const checkDataSourceConnectTest = (params) => request({ ...@@ -298,15 +298,8 @@ export const checkDataSourceConnectTest = (params) => request({
298 data: params, 298 data: params,
299 }); 299 });
300 300
301 // 获取所有参数列表
302 export const getAllFlowData = (params) => request({
303 url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType`,
304 method: 'get',
305 params
306 })
307
308 export const getParamsDictList = (dictType) => request({ 301 export const getParamsDictList = (dictType) => request({
309 url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType?dictType=${dictType}`, 302 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/platform/get-by-dictType?dictType=${dictType}`,
310 method: 'get', 303 method: 'get',
311 }) 304 })
312 305
...@@ -334,7 +327,7 @@ export const exportTemplate = (params) => request({ ...@@ -334,7 +327,7 @@ export const exportTemplate = (params) => request({
334 327
335 /** 获取字典列表数据 */ 328 /** 获取字典列表数据 */
336 export const getParamsList = (params) => request({ 329 export const getParamsList = (params) => request({
337 url: `${import.meta.env.VITE_APP_CONFIG_URL}/dict/data/get-by-dictType`, 330 url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/platform/get-by-dictType`,
338 method: 'get', 331 method: 'get',
339 params 332 params
340 }) 333 })
......
...@@ -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 DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue'; ...@@ -15,7 +15,8 @@ import DialogApproval from '@/components/ApprovalProcess/dialog_approval.vue';
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, getDamTypesList, } 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
......
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
15 getDataSourceDetail, 15 getDataSourceDetail,
16 checkDataSourceConnect, 16 checkDataSourceConnect,
17 checkDataSourceConnectTest, 17 checkDataSourceConnectTest,
18 getAllFlowData 18 getParamsList
19 } from "@/api/modules/queryService"; 19 } from "@/api/modules/queryService";
20 20
21 const { proxy } = getCurrentInstance() as any; 21 const { proxy } = getCurrentInstance() as any;
...@@ -1021,7 +1021,7 @@ const getFirstPageData = () => { ...@@ -1021,7 +1021,7 @@ const getFirstPageData = () => {
1021 getTableData(); 1021 getTableData();
1022 }; 1022 };
1023 onMounted(() => { 1023 onMounted(() => {
1024 getAllFlowData({ dictType: "业务系统" }).then((res) => { 1024 getParamsList({ dictType: "业务系统" }).then((res) => {
1025 flowList.value = res.data 1025 flowList.value = res.data
1026 contents.value.normal.items[3].options = flowList.value 1026 contents.value.normal.items[3].options = flowList.value
1027 }) 1027 })
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!