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
9b2a56f6
authored
2025-11-28 16:15:27 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
462ccbcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
src/views/data_asset/registerCatalogCreate.vue
src/views/data_asset/registerCatalogCreate.vue
View file @
9b2a56f
...
...
@@ -696,14 +696,15 @@ const productData: any = ref([]);
const
apiList
:
any
=
ref
([]);
const
getAPIOptions
=
(
scope
)
=>
{
apiList
.
value
.
forEach
(
a
=>
{
if
(
a
.
guid
!=
scope
.
row
.
guid
&&
productData
.
value
.
some
(
p
=>
p
.
apiGuid
==
a
.
guid
))
{
a
.
disabled
=
true
;
}
else
{
a
.
disabled
=
false
;
}
})
return
apiList
.
value
;
// 预先构建产品数据的 GUID 集合
const
usedApiGuids
=
new
Set
(
productData
.
value
.
map
(
p
=>
p
.
apiGuid
)
);
return
apiList
.
value
.
map
(
api
=>
({
...
api
,
disabled
:
api
.
guid
!==
scope
.
row
.
guid
&&
usedApiGuids
.
has
(
api
.
guid
)
}));
}
/** 基本信息的入参定义表格配置 */
...
...
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