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
9bf5c6e2
authored
2025-06-28 15:04:02 +0800
by
fanguang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
30869d5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
src/views/data_meta/components/standardDialog.vue
src/views/data_meta/standard-codetable.vue
src/views/data_meta/standard.vue
src/views/data_meta/components/standardDialog.vue
View file @
9bf5c6e
...
...
@@ -343,18 +343,18 @@ function getDetail () {
const
data
=
res
.
data
data
.
fieldRQVOS
=
data
.
fieldRSVOS
form
.
value
=
{
...
data
}
let
{
level
,
isHaveData
,
children
}
=
treeCurrentNode
.
value
let
{
level
,
is
Child
HaveData
,
children
}
=
treeCurrentNode
.
value
if
(
level
==
1
)
{
// 所选为一级节点,当前二级节点
fieldsTableShow
.
value
=
false
}
if
(
level
==
2
)
{
fieldsDisabled
.
value
=
isHaveData
===
'Y'
?
true
:
false
fieldsDisabled
.
value
=
is
Child
HaveData
===
'Y'
?
true
:
false
}
if
(
level
>=
3
)
{
fieldsDisabled
.
value
=
true
}
if
((
children
&&
children
.
length
)
||
isHaveData
===
'Y'
)
{
if
((
children
&&
children
.
length
)
||
is
Child
HaveData
===
'Y'
)
{
treeSelectDisabled
.
value
=
true
}
}
...
...
src/views/data_meta/standard-codetable.vue
View file @
9bf5c6e
...
...
@@ -923,10 +923,12 @@ const tableBtnClick = (scope, btn) => {
}
else
if
(
type
===
'remove'
)
{
let
removeRows
=
()
=>
{
console
.
log
(
'formTableData.value'
,
formTableData
.
value
)
console
.
log
(
'row'
,
row
)
// return
const
existIndex
=
formTableData
.
value
.
findIndex
(
s
=>
s
.
ROWID
==
row
.
ROWID
)
const
existIndex
=
formTableData
.
value
.
findIndex
(
s
=>
{
if
(
s
.
ROWID
)
{
return
s
.
ROWID
==
row
.
ROWID
}
return
s
.
guid
==
row
.
guid
})
existIndex
>
-
1
&&
formTableData
.
value
.
splice
(
existIndex
,
1
)
}
if
(
drawerInfo
.
value
.
type
==
'edit'
)
{
...
...
src/views/data_meta/standard.vue
View file @
9bf5c6e
...
...
@@ -120,6 +120,10 @@ function refreshTree () {
}
})
}
function
refreshTreeAndPage
()
{
refreshTree
()
getFirstPageData
()
}
function
deleteTreeNode
(
guid
)
{
deleteMetaStandard
([
guid
]).
then
((
res
:
any
)
=>
{
...
...
@@ -254,7 +258,7 @@ function deleteStandardFields (row) {
deleteMetaStandardDataFields
([
row
.
guid
]).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
ElMessage
.
success
(
'删除成功'
)
getFirstPageData
()
refreshTreeAndPage
()
}
else
{
ElMessage
.
error
(
res
.
msg
)
}
...
...
@@ -471,7 +475,7 @@ function batchDelete () {
deleteMetaStandardDataFields
(
selectRowGuids
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
ElMessage
.
success
(
'删除成功'
)
getFirstPageData
()
refreshTreeAndPage
()
}
else
{
ElMessage
.
error
(
res
.
msg
)
}
...
...
@@ -566,7 +570,7 @@ const viewGraph = () => {
:type=
"standardFieldsDialog.type"
:metaStandardGuid=
"standardFieldsDialog.metaStandardGuid"
:data=
"standardFieldsDialog.data"
@
success=
"
getFirstPageData
"
@
success=
"
refreshTreeAndPage
"
/>
</div>
</template>
...
...
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