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
f2e47612
authored
2025-01-08 21:00:57 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
7a8fa58a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
src/views/data_inventory/classifyGradeCatalogue.vue
src/views/data_inventory/classifyGradeCatalogue.vue
View file @
f2e4761
...
...
@@ -1731,6 +1731,7 @@ const optionsA = ref<any>([]);
const
optionsB
=
ref
<
any
>
([]);
const
optionsC
=
ref
<
any
>
([]);
const
dataBaseRef
=
ref
<
any
>
();
// 第一个下拉框值改变时
const
onAChange
=
async
()
=>
{
selectedB
.
value
=
null
;
...
...
@@ -1748,6 +1749,12 @@ const onAChange = async () => {
await
getDbDirTableSelectData
(
2
,
{
databaseGuid
:
selectedA
.
value
,
condition
:
"2"
});
// 数据库搜索
}
}
nextTick
(()
=>
{
const
nodeElement
=
dataBaseRef
.
value
.
treeRef
.
$el
.
querySelector
(
`[data-key="
${
String
(
selectedA
.
value
)}
"]`
);
if
(
nodeElement
)
{
nodeElement
.
offsetTop
-
dataBaseRef
.
value
.
treeRef
.
$el
.
clientHeight
>
0
&&
(
dataBaseRef
.
value
.
treeRef
.
$el
.
scrollTop
=
nodeElement
.
offsetTop
-
dataBaseRef
.
value
.
treeRef
.
$el
.
clientHeight
+
32
);
}
});
console
.
log
(
'selectedA'
,);
};
...
...
@@ -1766,6 +1773,12 @@ const onBChange = async () => {
await
getDbDirFieldSelectData
(
3
,
{
tableGuid
:
selectedB
.
value
,
databaseGuid
:
selectedA
.
value
,
condition
:
"3"
});
}
}
nextTick
(()
=>
{
const
nodeElement
=
dataBaseRef
.
value
.
treeRef
.
$el
.
querySelector
(
`[data-key="
${
String
(
selectedB
.
value
)}
"]`
);
if
(
nodeElement
)
{
nodeElement
.
offsetTop
-
dataBaseRef
.
value
.
treeRef
.
$el
.
clientHeight
>
0
&&
(
dataBaseRef
.
value
.
treeRef
.
$el
.
scrollTop
=
nodeElement
.
offsetTop
-
dataBaseRef
.
value
.
treeRef
.
$el
.
clientHeight
+
32
);
}
});
};
// 导出
...
...
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