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
91fef325
authored
2025-01-02 21:34:15 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix : 分类分级搜索
1 parent
7364348a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
src/views/data_inventory/classifyGradeCatalogue.vue
src/views/data_inventory/classifyGradeCatalogue.vue
View file @
91fef32
...
...
@@ -239,9 +239,8 @@ const toSearch = (val: any, clear: boolean = false) => {
pageIndex
:
1
,
pageSize
:
50
,
execGuid
:
execGuidInfo
.
value
.
execGuid
,
database
:
selectedA
.
value
||
''
,
tableName
:
selectedB
.
value
||
''
,
fieldName
:
selectedC
.
value
||
''
,
tableGuid
:
selectedB
.
value
||
''
,
databaseGuid
:
selectedA
.
value
||
''
,
classifyDetailGuid
:
val
.
classifyName
,
gradeDetailGuid
:
val
.
levelName
,
labelGuid
:
val
.
labelName
,
...
...
@@ -252,8 +251,9 @@ const toSearch = (val: any, clear: boolean = false) => {
pageIndex
:
1
,
pageSize
:
50
,
execGuid
:
execGuidInfo
.
value
.
execGuid
,
database
:
selectedA
.
value
||
''
,
fieldName
:
selectedB
.
value
||
''
,
tableGuid
:
selectedB
.
value
||
''
,
databaseGuid
:
selectedA
.
value
||
''
,
fieldGuid
:
selectedC
.
value
||
''
,
classifyDetailGuid
:
val
.
classifyName
,
gradeDetailGuid
:
val
.
levelName
,
labelGuid
:
val
.
labelName
,
...
...
@@ -893,13 +893,11 @@ const getDataBaseTableData = async (params = {}) => {
const
dataBaseParams
=
{
pageIndex
:
dataBasePage
.
value
.
curr
,
pageSize
:
dataBasePage
.
value
.
limit
,
tableGuid
:
tableGuid
.
value
,
databaseGuid
:
dataBaseGuid
.
value
,
isDataAsset
:
''
,
execGuid
:
execGuidInfo
.
value
.
execGuid
,
table
Name
:
""
,
database
:
""
,
field
Name
:
""
,
table
Guid
:
tableGuid
.
value
,
database
Guid
:
dataBaseGuid
.
value
,
field
Guid
:
""
,
labelGuid
:
""
,
classifyDetailGuid
:
""
,
gradeDetailGuid
:
""
...
...
@@ -946,12 +944,10 @@ const getDataBaseFieldData = async (params = {}) => {
const
dataBaseParams
=
{
pageIndex
:
dataFieldPage
.
value
.
curr
,
pageSize
:
dataFieldPage
.
value
.
limit
,
tableGuid
:
""
,
databaseGuid
:
""
,
execGuid
:
execGuidInfo
.
value
.
execGuid
,
table
Name
:
""
,
database
:
""
,
field
Name
:
""
,
table
Guid
:
tableGuid
.
value
||
''
,
database
Guid
:
dataBaseGuid
.
value
||
''
,
field
Guid
:
""
,
labelGuid
:
""
,
classifyDetailGuid
:
""
,
gradeDetailGuid
:
""
...
...
@@ -1245,8 +1241,6 @@ const onAChange = async () => {
await
getSearchTableList
(
2
,
selectedA
.
value
);
// 分类分级搜索
}
if
(
activeName
.
value
==
'second'
)
{
console
.
log
(
'onAChange'
,
optionsA
.
value
);
if
(
activeTab
.
value
===
'word'
)
{
await
getDbDirFieldSelectData
(
2
,
{
databaseGuid
:
selectedA
.
value
,
condition
:
"2"
});
}
else
{
...
...
@@ -1269,8 +1263,6 @@ const onBChange = async () => {
if
(
activeName
.
value
==
'second'
)
{
if
(
activeTab
.
value
===
'word'
)
{
await
getDbDirFieldSelectData
(
3
,
{
tableGuid
:
selectedB
.
value
,
databaseGuid
:
selectedA
.
value
,
condition
:
"3"
});
}
else
{
await
getDbDirTableSelectData
(
3
,
{
tableGuid
:
selectedB
.
value
,
databaseGuid
:
selectedA
.
value
,
condition
:
"3"
});
// 数据库搜索
}
}
};
...
...
@@ -1340,7 +1332,7 @@ onActivated(async () => {
<el-option
v-for=
"item in optionsB"
:key=
"item.dbGuid"
:label=
"item.name"
:value=
"item.dbGuid"
/>
</el-select>
<el-select
v-model=
"selectedC"
placeholder=
"选择字段名"
:disabled=
"!selectedB"
style=
"width: 140px;margin-right: 8px"
:clearable=
"true"
>
:clearable=
"true"
v-if=
"!isShowWordSearch"
>
<el-option
v-for=
"item in optionsC"
:key=
"item.dbGuid"
:label=
"item.name"
:value=
"item.dbGuid"
/>
</el-select>
<TableTools
:searchItems=
"searchItemList"
:init=
"false"
:searchId=
"'files-standard-search'"
@
search=
"toSearch"
...
...
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