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
d24705fc
authored
2025-01-10 14:33:56 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分类分级任务-tree滚动
1 parent
39b5be84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
src/views/data_inventory/taskDetail.vue
src/views/data_inventory/taskDetail.vue
View file @
d24705f
...
...
@@ -515,13 +515,11 @@ const tabChange = (val) => {
const
nodeClick
=
(
data
,
node
)
=>
{
if
(
data
.
classifyDetailGuid
==
'all'
)
{
fieldItemList
.
value
[
4
].
default
=
''
;
fieldItemList
.
value
[
5
].
default
=
[];
}
else
{
const
nodeData
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
parentGuids
=
nodeData
.
parentGuids
||
[];
parentGuids
.
push
(
nodeData
.
guid
)
fieldItemList
.
value
[
4
].
default
=
'Y'
;
fieldItemList
.
value
[
5
].
default
=
parentGuids
;
}
nextTick
(()
=>
{
...
...
@@ -822,7 +820,6 @@ const cascaderChange = (val, info) => {
}
else
{
treeInfoRef
.
value
.
expandedKey
=
val
||
[
'all'
];
treeInfoRef
.
value
.
setCurrentKey
(
val
?.
at
(
-
1
)
||
'all'
);
val
&&
(
fieldItemList
.
value
[
4
].
default
=
'Y'
);
promiseList
(
getFieldTableData
()
)
...
...
@@ -904,18 +901,12 @@ const selectChange = (val, item, scope = null) => {
}
}
}
else
if
(
item
.
field
==
'isClassify'
)
{
fieldItemList
.
value
[
5
].
default
=
[];
fieldItemList
.
value
[
6
].
default
=
''
;
treeInfo
.
value
.
expandedKey
=
[
'all'
];
treeInfoRef
.
value
.
setCurrentKey
(
'all'
);
fieldItemList
.
value
[
4
].
default
=
val
||
''
;
fieldItemList
.
value
[
5
].
default
=
scope
.
classifyName
;
nextTick
(()
=>
{
promiseList
(
getFieldTableData
()
)
const
treeRef
=
treeInfoRef
.
value
.
treeRef
;
const
container
=
treeRef
.
$el
;
container
.
scrollTo
({
top
:
0
,
behavior
:
'smooth'
});
})
}
...
...
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