Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bf2bf179
authored
2025-11-27 17:04:48 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建数据产品去掉关联字典接口调用
1 parent
20b074ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
src/views/data_asset/importTableField.vue
src/views/data_asset/importTableField.vue
View file @
bf2bf17
...
...
@@ -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
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment