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
45b9b5cb
authored
2025-06-28 14:01:11 +0800
by
fanguang
Committed by
lihua
2025-06-30 14:28:42 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
df8cf022
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 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 @
45b9b5c
...
...
@@ -338,7 +338,6 @@ function inputTypeChange (val, item) {
const
loading
=
ref
(
false
)
function
getDetail
()
{
loading
.
value
=
true
return
getMetaStandardDetail
(
props
.
guid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
proxy
.
$passCode
)
{
const
data
=
res
.
data
...
...
@@ -366,7 +365,9 @@ function confirm () {
formEl
.
value
.
validate
(
valid
=>
{
if
(
!
valid
)
return
let
body
=
{
...
form
.
value
}
console
.
log
(
body
)
if
(
!
body
.
parentGuid
)
{
body
.
parentGuid
=
null
}
delete
body
.
fieldRSVOS
// return
const
request
=
props
.
type
===
'add'
?
saveMetaStandard
:
updateMetaStandard
...
...
src/views/data_meta/standard-codetable.vue
View file @
45b9b5c
...
...
@@ -923,6 +923,9 @@ 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
)
existIndex
>
-
1
&&
formTableData
.
value
.
splice
(
existIndex
,
1
)
}
...
...
src/views/data_meta/standard.vue
View file @
45b9b5c
...
...
@@ -417,12 +417,7 @@ function importData () {
console
.
log
(
'currentTree'
,
currentTreeObj
)
let
uploadSetting
:
any
=
[]
if
(
currentTreeObj
.
children
)
{
uploadSetting
=
currentTreeObj
.
children
.
map
((
item
:
any
)
=>
{
return
{
standardName
:
item
.
standardName
,
standardGuid
:
item
.
guid
}
})
formatChildrenLastItem
(
currentTreeObj
.
children
,
uploadSetting
)
}
else
{
uploadSetting
=
[{
standardName
:
currentTreeObj
.
standardName
,
...
...
@@ -434,6 +429,18 @@ function importData () {
path
:
'/data-meta/metadata-standard/standard-meta-import'
,
});
}
function
formatChildrenLastItem
(
list
,
returnList
=
[])
{
list
.
forEach
((
item
:
any
)
=>
{
if
(
!
item
.
children
)
{
returnList
.
push
({
standardName
:
item
.
standardName
,
standardGuid
:
item
.
guid
})
}
else
{
formatChildrenLastItem
(
item
.
children
,
returnList
)
}
})
}
function
exportData
()
{
let
body
=
[
treeInfo
.
value
.
currentObj
.
guid
]
...
...
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