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
1129f998
authored
2025-11-26 18:04:09 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决编辑目录分类上级选择问题
1 parent
2ba738e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
src/views/data_asset/productDataCatalogSort.vue
src/views/data_asset/productDataCatalogSort.vue
View file @
1129f99
...
...
@@ -432,7 +432,7 @@ const dictFormItems: any = ref([
label
:
"dicName"
,
value
:
"guid"
,
children
:
'childList'
,
disabled
:
'
d
isabled'
,
disabled
:
'
editD
isabled'
,
checkStrictly
:
true
,
emitPath
:
false
},
...
...
@@ -734,7 +734,21 @@ const toEdit = async (data) => {
if
(
!
row
.
classGuid
)
return
currEditTableRow
.
value
=
row
;
classList
.
value
=
tableInfo
.
value
.
data
||
[];
dictFormItems
.
value
[
1
].
options
=
classList
.
value
dictFormItems
.
value
[
1
].
options
=
classList
.
value
;
let
transferValue
=
(
list
,
disabled
=
false
)
=>
{
if
(
list
.
guid
==
row
.
guid
)
{
disabled
=
true
;
}
list
.
editDisabled
=
disabled
;
if
(
list
?.
childList
?.
length
)
{
list
.
childList
?.
forEach
(
d
=>
{
transferValue
(
d
,
disabled
);
})
}
}
classList
.
value
?.
forEach
(
cd
=>
{
transferValue
(
cd
,
false
)
})
// dictApi.getDictTable({
// classGuid: row.classGuid
// }).then((res: any) => {
...
...
@@ -794,6 +808,22 @@ const handleDrawSelectChange = (val, row, info) => {
dictFormItems
.
value
.
forEach
(
d
=>
{
d
.
default
=
info
[
d
.
field
]
||
''
;
})
if
(
drawerInfo
.
value
.
type
==
'edit'
)
{
let
transferValue
=
(
list
,
disabled
=
false
)
=>
{
if
(
list
.
guid
==
currEditTableRow
.
value
.
guid
)
{
disabled
=
true
;
}
list
.
editDisabled
=
disabled
;
if
(
list
?.
childList
?.
length
)
{
list
.
childList
?.
forEach
(
d
=>
{
transferValue
(
d
,
disabled
);
})
}
}
classList
.
value
?.
forEach
(
cd
=>
{
transferValue
(
cd
,
false
)
})
}
}
else
{
ElMessage
({
type
:
"error"
,
...
...
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