Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
seeta-device
/
deviceManage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 092017ee
authored
Sep 29, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
1 parent
4f17e150
Pipeline
#4817
passed
in 2 minutes 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/views/ParamsModel/edit.vue
src/views/ParamsModel/edit.vue
View file @
092017e
...
@@ -227,8 +227,12 @@ export default {
...
@@ -227,8 +227,12 @@ export default {
}
}
const
tableData
=
[]
const
tableData
=
[]
for
(
const
value
of
this
.
baseData
)
{
for
(
const
value
of
this
.
baseData
)
{
if
(
value
.
type
===
'object'
)
{
tableData
.
push
({
...
value
,
emit
:
true
,
level
:
0
})
}
else
{
tableData
.
push
({
...
value
,
level
:
0
})
tableData
.
push
({
...
value
,
level
:
0
})
}
}
}
for
(
const
value
of
this
.
currentData
)
{
for
(
const
value
of
this
.
currentData
)
{
tableData
.
push
({
...
value
,
emit
:
true
,
level
:
1
})
tableData
.
push
({
...
value
,
emit
:
true
,
level
:
1
})
}
}
...
@@ -254,7 +258,7 @@ export default {
...
@@ -254,7 +258,7 @@ export default {
},
},
handleDelete
(
index
,
row
)
{
handleDelete
(
index
,
row
)
{
if
(
!
row
.
emit
)
{
if
(
!
row
.
emit
)
{
this
.
tableData
[
index
]
=
{
...
row
,
type
:
'
null
'
,
value
:
null
,
emit
:
true
,
restore
:
true
}
this
.
tableData
[
index
]
=
{
...
row
,
type
:
'
object
'
,
value
:
null
,
emit
:
true
,
restore
:
true
}
}
else
{
}
else
{
this
.
tableData
.
splice
(
index
,
1
)
this
.
tableData
.
splice
(
index
,
1
)
}
}
...
@@ -270,7 +274,7 @@ export default {
...
@@ -270,7 +274,7 @@ export default {
tableData
.
push
(
tableDataTemp
[
i
])
tableData
.
push
(
tableDataTemp
[
i
])
}
}
}
}
const
scalarsArr
=
tableData
.
filter
(
item
=>
item
.
type
===
'string'
||
item
.
type
===
'number'
||
item
.
type
===
'
null
'
)
const
scalarsArr
=
tableData
.
filter
(
item
=>
item
.
type
===
'string'
||
item
.
type
===
'number'
||
item
.
type
===
'
object
'
)
const
binaryArr
=
tableData
.
filter
(
item
=>
item
.
type
===
'blob'
)
const
binaryArr
=
tableData
.
filter
(
item
=>
item
.
type
===
'blob'
)
const
tableArr
=
tableData
.
filter
(
item
=>
item
.
type
===
'table'
)
const
tableArr
=
tableData
.
filter
(
item
=>
item
.
type
===
'table'
)
const
scalarsObj
=
{}
const
scalarsObj
=
{}
...
...
Write
Preview
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