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
6ab7c9ed
authored
2025-07-11 13:43:09 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复标准代码表添加数据后编辑问题
1 parent
85afc731
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
src/views/data_meta/components/standardDialog.vue
src/views/data_meta/components/standardDialog.vue
View file @
6ab7c9e
...
...
@@ -412,7 +412,6 @@ function confirm () {
}
}
}
debugger
confirmLoading
.
value
=
true
request
(
body
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
...
...
@@ -428,6 +427,7 @@ function confirm () {
function
getTreeSelectOptions
()
{
return
getMetaStandardTree
().
then
((
res
:
any
)
=>
{
loading
.
value
=
false
if
(
res
.
code
===
proxy
.
$passCode
)
{
let
data
=
res
.
data
||
[]
data
.
forEach
(
item
=>
{
...
...
@@ -449,15 +449,36 @@ watch(
treeSelectDisabled
.
value
=
false
if
(
props
.
type
===
'edit'
)
{
// fieldsControlDisabled.value = false
loading
.
value
=
true
getTreeSelectOptions
().
then
(()
=>
{
loading
.
value
=
false
let
guid
=
props
.
currentNode
?.
guid
;
treeCurrentNode
.
value
=
props
.
currentNode
if
(
guid
)
{
let
getNode
=
(
object
:
any
)
=>
{
for
(
const
select
of
object
)
{
if
(
select
.
guid
==
guid
)
{
return
select
;
}
if
(
select
?.
children
?.
length
)
{
return
getNode
(
select
.
children
);
}
}
}
let
node
=
getNode
(
treeSelectData
.
value
);
if
(
node
)
{
treeCurrentNode
.
value
=
node
;
}
}
getDetail
().
then
(()
=>
formatOptions
(
treeSelectData
.
value
))
})
treeCurrentNode
.
value
=
props
.
currentNode
}
else
{
// fieldsControlDisabled.value = true
form
.
value
=
{
...
formTpl
}
loading
.
value
=
true
getTreeSelectOptions
().
then
(()
=>
{
loading
.
value
=
false
formatOptions
(
treeSelectData
.
value
)
})
treeCurrentNode
.
value
=
{}
...
...
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