bf2bf179 by lihua

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

1 parent 20b074ca
......@@ -9,7 +9,7 @@ import {
chTransformEn
} from "@/api/modules/dataAsset";
import useUserStore from "@/store/modules/user";
import { getDictionaryTree } from '@/api/modules/dataAsset';
// import { getDictionaryTree } from '@/api/modules/dataAsset';
const emits = defineEmits([
"cancelImport",
......@@ -93,26 +93,26 @@ const getFieldTypeList = () => {
}
const getParamsListData = () => {
const params = {
paramCode: '数据字典类型'
}
getDictionaryTree(params).then((res: any) => {
paramsList.value = [];
if (res.code == proxy.$passCode) {
res.data.forEach((item: any) => {
if (item.children) {
item.children.forEach((child: any) => {
paramsList.value.push({
label: child.name,
value: child.guid
})
})
}
})
} else {
proxy.$ElMessage.error(res.msg);
}
})
// const params = {
// paramCode: '数据字典类型'
// }
// getDictionaryTree(params).then((res: any) => {
// paramsList.value = [];
// if (res.code == proxy.$passCode) {
// res.data.forEach((item: any) => {
// if (item.children) {
// item.children.forEach((child: any) => {
// paramsList.value.push({
// label: child.name,
// value: child.guid
// })
// })
// }
// })
// } else {
// proxy.$ElMessage.error(res.msg);
// }
// })
// getParamsList({
// dictType: "业务归属"
// }).then((res: any) => {
......@@ -136,9 +136,9 @@ const changeStep = (val) => {
if (!fieldTypes.value.length) {
getFieldTypeList();
}
if (!paramsList.value.length) {
getParamsListData();
}
// if (!paramsList.value.length) {
// getParamsListData();
// }
if (!tableCreateInfo.value.damCatalogTableField.length) {
let list: any = [];
fileTableFields.value.forEach(field => {
......@@ -522,7 +522,7 @@ const setTableInfo = (v) => {
if (v.guid) {
step.value = 1;
getFieldTypeList();
getParamsListData();
// getParamsListData();
}
tableCreateInfo.value.tableData = [{
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!