2badaf1a by lihua

新建数据产品去掉关联字典接口调用

1 parent 6f926fe9
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
11 chTransformEn 11 chTransformEn
12 } from "@/api/modules/dataAsset"; 12 } from "@/api/modules/dataAsset";
13 import useUserStore from "@/store/modules/user"; 13 import useUserStore from "@/store/modules/user";
14 import { getDictionaryTree } from '@/api/modules/dataAsset'; 14 // import { getDictionaryTree } from '@/api/modules/dataAsset';
15 15
16 const emits = defineEmits([ 16 const emits = defineEmits([
17 "cancelImport", 17 "cancelImport",
...@@ -95,26 +95,26 @@ const getFieldTypeList = () => { ...@@ -95,26 +95,26 @@ const getFieldTypeList = () => {
95 } 95 }
96 96
97 const getParamsListData = () => { 97 const getParamsListData = () => {
98 const params = { 98 // const params = {
99 paramCode: '数据字典类型' 99 // paramCode: '数据字典类型'
100 } 100 // }
101 getDictionaryTree(params).then((res: any) => { 101 // getDictionaryTree(params).then((res: any) => {
102 paramsList.value = []; 102 // paramsList.value = [];
103 if (res.code == proxy.$passCode) { 103 // if (res.code == proxy.$passCode) {
104 res.data.forEach((item: any) => { 104 // res.data.forEach((item: any) => {
105 if (item.children) { 105 // if (item.children) {
106 item.children.forEach((child: any) => { 106 // item.children.forEach((child: any) => {
107 paramsList.value.push({ 107 // paramsList.value.push({
108 label: child.name, 108 // label: child.name,
109 value: child.guid 109 // value: child.guid
110 }) 110 // })
111 }) 111 // })
112 } 112 // }
113 }) 113 // })
114 } else { 114 // } else {
115 proxy.$ElMessage.error(res.msg); 115 // proxy.$ElMessage.error(res.msg);
116 } 116 // }
117 }) 117 // })
118 // getParamsList({ 118 // getParamsList({
119 // dictType: "业务归属" 119 // dictType: "业务归属"
120 // }).then((res: any) => { 120 // }).then((res: any) => {
...@@ -138,9 +138,9 @@ const changeStep = (val) => { ...@@ -138,9 +138,9 @@ const changeStep = (val) => {
138 if (!fieldTypes.value.length) { 138 if (!fieldTypes.value.length) {
139 getFieldTypeList(); 139 getFieldTypeList();
140 } 140 }
141 if (!paramsList.value.length) { 141 // if (!paramsList.value.length) {
142 getParamsListData(); 142 // getParamsListData();
143 } 143 // }
144 if (!tableCreateInfo.value.damCatalogTableField.length) { 144 if (!tableCreateInfo.value.damCatalogTableField.length) {
145 let list: any = []; 145 let list: any = [];
146 fileTableFields.value.forEach(field => { 146 fileTableFields.value.forEach(field => {
...@@ -524,7 +524,7 @@ const setTableInfo = (v) => { ...@@ -524,7 +524,7 @@ const setTableInfo = (v) => {
524 if (v.guid) { 524 if (v.guid) {
525 step.value = 1; 525 step.value = 1;
526 getFieldTypeList(); 526 getFieldTypeList();
527 getParamsListData(); 527 // getParamsListData();
528 } 528 }
529 tableCreateInfo.value.tableData = [{ 529 tableCreateInfo.value.tableData = [{
530 tableName: v.tableName, 530 tableName: v.tableName,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!