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
465c4e8e
authored
2025-01-02 15:00:20 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 分类分级查询
1 parent
23cc819c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
src/views/data_inventory/classifyGradeCatalogue.vue
src/views/data_inventory/classifyGradeCatalogue.vue
View file @
465c4e8
...
...
@@ -34,6 +34,8 @@ import { getLabelList } from "@/api/modules/dataLabel";
const
currentPath
=
ref
<
string
[]
>
([]);
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
route
=
useRoute
();
// 分级引用refGradeGuid
const
refGradeGuid
=
ref
(
''
);
// 分级分类树形列表
const
CgDirTreeList
=
ref
();
const
getCgDirTreeData
=
async
()
=>
{
...
...
@@ -49,6 +51,7 @@ const getCgDirTreeData = async () => {
treeInfo
.
value
.
expandedKey
.
push
(
res
.
data
[
0
].
classifyDetailGuid
);
treeInfo
.
value
.
currentNodeKey
=
res
.
data
[
0
].
classifyDetailGuid
;
searchItemList
.
value
[
1
].
options
=
res
.
data
;
refGradeGuid
.
value
=
res
.
data
[
0
].
refGradeGuid
;
treeInfo
.
value
.
loading
=
false
;
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
...
...
@@ -117,6 +120,7 @@ onMounted(async () => {
getDictionaryList
();
getSearchTableList
();
getLabelListData
();
getGradeData
(
refGradeGuid
.
value
);
})
...
...
@@ -159,7 +163,7 @@ const searchItemList = ref([
options
:
[],
props
:
{
label
:
'label'
,
value
:
'
label
'
,
value
:
'
guid
'
,
},
clearable
:
true
,
filterable
:
true
,
...
...
@@ -176,7 +180,7 @@ const searchItemList = ref([
lazy
:
false
,
props
:
{
label
:
"classifyName"
,
value
:
"
classifyName
"
,
value
:
"
guid
"
,
},
block
:
false
,
filterable
:
false
,
...
...
@@ -192,7 +196,7 @@ const searchItemList = ref([
options
:
[],
props
:
{
label
:
'name'
,
value
:
'
name
'
,
value
:
'
guid
'
,
},
clearable
:
true
,
},
...
...
@@ -216,7 +220,7 @@ const toSearch = (val: any, clear: boolean = false) => {
execGuid
:
execGuidInfo
.
value
.
execGuid
,
classifyDetail
:
val
.
classifyName
,
gradeDetailGuid
:
val
.
levelName
,
label
:
val
.
labelName
,
label
Guid
:
val
.
labelName
,
databaseGuid
:
selectedA
.
value
,
tableGuid
:
selectedB
.
value
,
fieldGuid
:
selectedC
.
value
,
...
...
@@ -253,7 +257,7 @@ const toSearch = (val: any, clear: boolean = false) => {
const
nodeClick
=
async
(
data
:
any
)
=>
{
console
.
log
(
'nodeClick'
,
data
);
const
{
guid
,
classifyDetailGuid
,
refGradeGuid
}
=
data
getGradeData
(
refGradeGuid
);
//
getGradeData(refGradeGuid);
searchItemList
.
value
[
1
].
default
=
data
.
classifyName
;
await
getCgDirFieldPage
({
execGuid
:
execGuidInfo
.
value
.
execGuid
,
...
...
@@ -1264,7 +1268,7 @@ const exportDB = async () => {
// 分类选择
const
treeSelectNodeChange
=
(
node
,
item
)
=>
{
const
{
refGradeGuid
}
=
node
;
getGradeData
(
refGradeGuid
);
//
getGradeData(refGradeGuid);
}
// 这里应该是onActivated 钩子,路由从configure-路由从configure-rules跳转过来要重新请求数据、
...
...
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