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
b8d2b279
authored
2025-06-28 15:39:23 +0800
by
fanguang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
9bf5c6e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
src/views/data_meta/components/standardDialog.vue
src/views/data_meta/standard.vue
src/views/data_meta/components/standardDialog.vue
View file @
b8d2b27
...
...
@@ -375,7 +375,7 @@ function confirm () {
request
(
body
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
ElMessage
.
success
(
'操作成功'
)
emit
(
'success'
)
emit
(
'success'
,
props
.
type
===
'add'
?
res
.
data
:
body
.
guid
)
visible
.
value
=
false
return
}
...
...
src/views/data_meta/standard.vue
View file @
b8d2b27
...
...
@@ -32,6 +32,7 @@ const cacheStore = useCatchStore()
const
showFiledsPage
=
ref
(
false
)
// 树菜单
const
dictTreeRef
=
ref
()
const
treeInfo
=
ref
({
id
:
"data-pickup-tree"
,
filter
:
true
,
...
...
@@ -106,7 +107,7 @@ function getTree (refresh = false, initLocate = false) {
}
})
}
function
refreshTree
()
{
function
refreshTree
(
treeGuid
)
{
treeInfo
.
value
.
loading
=
true
;
getMetaStandardTree
().
then
((
res
:
any
)
=>
{
treeInfo
.
value
.
loading
=
false
;
...
...
@@ -117,6 +118,9 @@ function refreshTree () {
item
.
level
=
1
})
treeInfo
.
value
.
data
=
data
if
(
treeGuid
)
{
setTreeCurrentNode
(
treeGuid
)
}
}
})
}
...
...
@@ -124,6 +128,22 @@ function refreshTreeAndPage () {
refreshTree
()
getFirstPageData
()
}
function
setTreeCurrentNode
(
treeGuid
)
{
treeInfo
.
value
.
currentNodeKey
=
treeGuid
let
{
data
}
=
treeInfo
.
value
const
format
=
(
list
)
=>
{
list
.
forEach
(
item
=>
{
if
(
item
.
guid
===
treeGuid
)
{
nodeClick
(
item
)
return
}
if
(
item
.
children
)
{
format
(
item
.
children
)
}
})
}
format
(
data
)
}
function
deleteTreeNode
(
guid
)
{
deleteMetaStandard
([
guid
]).
then
((
res
:
any
)
=>
{
...
...
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