bf2bf179 by lihua

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

1 parent 20b074ca
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
9 chTransformEn 9 chTransformEn
10 } from "@/api/modules/dataAsset"; 10 } from "@/api/modules/dataAsset";
11 import useUserStore from "@/store/modules/user"; 11 import useUserStore from "@/store/modules/user";
12 import { getDictionaryTree } from '@/api/modules/dataAsset'; 12 // import { getDictionaryTree } from '@/api/modules/dataAsset';
13 13
14 const emits = defineEmits([ 14 const emits = defineEmits([
15 "cancelImport", 15 "cancelImport",
...@@ -93,26 +93,26 @@ const getFieldTypeList = () => { ...@@ -93,26 +93,26 @@ const getFieldTypeList = () => {
93 } 93 }
94 94
95 const getParamsListData = () => { 95 const getParamsListData = () => {
96 const params = { 96 // const params = {
97 paramCode: '数据字典类型' 97 // paramCode: '数据字典类型'
98 } 98 // }
99 getDictionaryTree(params).then((res: any) => { 99 // getDictionaryTree(params).then((res: any) => {
100 paramsList.value = []; 100 // paramsList.value = [];
101 if (res.code == proxy.$passCode) { 101 // if (res.code == proxy.$passCode) {
102 res.data.forEach((item: any) => { 102 // res.data.forEach((item: any) => {
103 if (item.children) { 103 // if (item.children) {
104 item.children.forEach((child: any) => { 104 // item.children.forEach((child: any) => {
105 paramsList.value.push({ 105 // paramsList.value.push({
106 label: child.name, 106 // label: child.name,
107 value: child.guid 107 // value: child.guid
108 }) 108 // })
109 }) 109 // })
110 } 110 // }
111 }) 111 // })
112 } else { 112 // } else {
113 proxy.$ElMessage.error(res.msg); 113 // proxy.$ElMessage.error(res.msg);
114 } 114 // }
115 }) 115 // })
116 // getParamsList({ 116 // getParamsList({
117 // dictType: "业务归属" 117 // dictType: "业务归属"
118 // }).then((res: any) => { 118 // }).then((res: any) => {
...@@ -136,9 +136,9 @@ const changeStep = (val) => { ...@@ -136,9 +136,9 @@ const changeStep = (val) => {
136 if (!fieldTypes.value.length) { 136 if (!fieldTypes.value.length) {
137 getFieldTypeList(); 137 getFieldTypeList();
138 } 138 }
139 if (!paramsList.value.length) { 139 // if (!paramsList.value.length) {
140 getParamsListData(); 140 // getParamsListData();
141 } 141 // }
142 if (!tableCreateInfo.value.damCatalogTableField.length) { 142 if (!tableCreateInfo.value.damCatalogTableField.length) {
143 let list: any = []; 143 let list: any = [];
144 fileTableFields.value.forEach(field => { 144 fileTableFields.value.forEach(field => {
...@@ -522,7 +522,7 @@ const setTableInfo = (v) => { ...@@ -522,7 +522,7 @@ const setTableInfo = (v) => {
522 if (v.guid) { 522 if (v.guid) {
523 step.value = 1; 523 step.value = 1;
524 getFieldTypeList(); 524 getFieldTypeList();
525 getParamsListData(); 525 // getParamsListData();
526 } 526 }
527 tableCreateInfo.value.tableData = [{ 527 tableCreateInfo.value.tableData = [{
528 tableName: v.tableName, 528 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!