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
a934022e
authored
2025-01-10 14:05:25 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into dev_20241202_xukangle
2 parents
40c0e57b
39b5be84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
25 deletions
src/components/Tools/table_search.vue
src/components/Tools/table_tools.vue
src/views/data_inventory/taskDetail.vue
src/components/Tools/table_search.vue
View file @
a934022
...
...
@@ -45,10 +45,6 @@ const resetForm = (formEl: FormInstance | undefined) => {
})
}
defineExpose
({
formInline
,
formRef
,
})
const
setFormFields
=
(
list
:
any
)
=>
{
let
obj
=
{}
list
.
map
((
item
:
any
)
=>
{
...
...
@@ -99,6 +95,12 @@ const inputChange = (val) => {
onSubmit
()
}
const
formCascaderRef
=
ref
()
defineExpose
({
formInline
,
formRef
,
getCascaderCheckedData
})
onMounted
(()
=>
{
props
.
init
&&
onSubmit
()
})
...
...
src/components/Tools/table_tools.vue
View file @
a934022
...
...
@@ -57,14 +57,8 @@ const cascaderChange = (val, item) => {
emits
(
"cascaderChange"
,
val
,
item
);
}
const
getCascaderCheckedData
=
()
=>
{
const
toolSearchForm
=
toolSearch
.
value
.
formRef
[
0
]
||
toolSearch
.
value
.
formRef
;
return
toolSearchForm
.
getCascaderCheckedData
();
}
defineExpose
({
toolSearch
,
getCascaderCheckedData
toolSearch
})
</
script
>
...
...
src/views/data_inventory/taskDetail.vue
View file @
a934022
...
...
@@ -39,11 +39,12 @@ const gradeList = ref([]);
const
treeData
=
ref
([
{
classifyName
:
"全部"
,
classifyDetailGuid
:
"all"
,
classifyDetailGuid
:
""
,
guid
:
'all'
,
children
:
[],
},
]);
const
currTreeNode
=
ref
({
classifyName
:
"全部"
,
classifyDetailGuid
:
"all"
})
const
treeInfoRef
=
ref
();
const
treeInfo
:
any
=
ref
({
id
:
"data-pickup-tree"
,
...
...
@@ -53,7 +54,7 @@ const treeInfo: any = ref({
props
:
{
label
:
"classifyName"
,
},
nodeKey
:
'
classifyDetailG
uid'
,
nodeKey
:
'
g
uid'
,
expandedKey
:
[],
expandOnNodeClick
:
false
,
data
:
[],
...
...
@@ -513,22 +514,21 @@ const tabChange = (val) => {
}
const
nodeClick
=
(
data
,
node
)
=>
{
currTreeNode
.
value
=
data
;
if
(
data
.
classifyDetailGuid
==
'all'
)
{
fieldItemList
.
value
[
4
].
default
=
''
;
fieldItemList
.
value
[
5
].
default
=
[];
promiseList
(
getFieldTableData
()
)
}
else
{
const
parentGuids
=
data
.
parentGuids
||
[];
parentGuids
.
push
(
data
.
classifyDetailGuid
)
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
(()
=>
{
promiseList
(
getFieldTableData
()
)
}
}
)
}
// 获取库表数据
...
...
@@ -565,10 +565,8 @@ const getFieldTableData = () => {
isMergeClassify
:
checked1
.
value
?
'Y'
:
'N'
}
const
cascaderData
=
fieldSearchRef
.
value
.
toolSearch
.
getCascaderCheckedData
();
debugger
const
classifyName
=
params
.
classifyName
?.
at
(
-
1
)
||
undefined
;
if
(
classifyName
&&
classifyName
!=
'unclassified'
)
{
params
.
classifyDetail
=
classifyName
;
if
(
cascaderData
.
length
)
{
params
.
classifyDetail
=
cascaderData
[
0
].
data
.
classifyDetailGuid
;
}
delete
params
.
classifyName
return
execTaskFieldList
(
params
).
then
((
res
:
any
)
=>
{
...
...
@@ -617,6 +615,11 @@ const tableBtnClick = (scope, btn) => {
treeInfo
.
value
.
expandedKey
=
[
'all'
];
treeInfoRef
.
value
.
setCurrentKey
(
'all'
);
getSheetFieldList
({
type
:
2
,
dbGuid
:
row
.
databaseGuid
},
row
.
tableGuid
);
nextTick
(()
=>
{
const
treeRef
=
treeInfoRef
.
value
.
treeRef
;
const
container
=
treeRef
.
$el
;
container
.
scrollTo
({
top
:
0
,
behavior
:
'smooth'
});
})
}
else
if
(
type
==
"edit"
)
{
row
.
STATE
=
'Running'
;
}
else
if
(
type
==
'save'
)
{
...
...
@@ -795,6 +798,11 @@ const searchField = (val: any, clear: boolean = false) => {
fieldItemList
.
value
.
map
(
item
=>
item
.
default
=
''
)
treeInfo
.
value
.
expandedKey
=
[
'all'
];
treeInfoRef
.
value
.
setCurrentKey
(
'all'
);
nextTick
(()
=>
{
const
treeRef
=
treeInfoRef
.
value
.
treeRef
;
const
container
=
treeRef
.
$el
;
container
.
scrollTo
({
top
:
0
,
behavior
:
'smooth'
});
})
}
fieldParams
.
value
=
Object
.
assign
({},
{
...
fieldParams
.
value
},
{
...
val
});
promiseList
(
...
...
@@ -814,9 +822,16 @@ 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
()
)
setTimeout
(()
=>
{
const
treeRef
=
treeInfoRef
.
value
.
treeRef
;
const
container
=
treeRef
.
$el
;
const
currentNode
=
container
.
querySelector
(
'.el-tree-node.is-current'
);
currentNode
&&
container
.
scrollTo
({
top
:
currentNode
.
offsetTop
,
behavior
:
'smooth'
});
},
300
)
}
}
};
...
...
@@ -894,9 +909,15 @@ const selectChange = (val, item, scope = null) => {
treeInfo
.
value
.
expandedKey
=
[
'all'
];
treeInfoRef
.
value
.
setCurrentKey
(
'all'
);
fieldItemList
.
value
[
4
].
default
=
val
||
''
;
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