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 45b75887
authored
Aug 31, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数模板序号问题
1 parent
4345db1b
Pipeline
#3876
passed
in 1 minute 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
src/views/ParamsModel/index.vue
src/views/ParamsModel/index.vue
View file @
45b7588
...
...
@@ -100,7 +100,7 @@ export default {
definitions
:
[
{
label
:
'序号'
,
render
:
'
numb
er'
render
:
'
ord
er'
},
{
label
:
'名称'
,
...
...
@@ -132,7 +132,10 @@ export default {
this
.
loadingOne
=
true
const
oneLevel
=
await
getParameter
({
base
:
1
,
pages
:
this
.
oneCurrentPage
-
1
,
pagesize
:
10
})
if
(
oneLevel
&&
oneLevel
.
data
&&
oneLevel
.
data
.
code
===
0
)
{
this
.
oneList
=
oneLevel
.
data
.
parameters
.
datas
this
.
oneList
=
oneLevel
.
data
.
parameters
.
datas
.
map
((
item
,
index
)
=>
{
item
.
order
=
index
+
1
+
(
this
.
oneCurrentPage
-
1
)
*
10
return
item
})
this
.
oneTotal
=
oneLevel
.
data
.
parameters
.
total
}
this
.
loadingOne
=
false
...
...
@@ -141,7 +144,10 @@ export default {
this
.
loadingTwo
=
true
const
twoLevel
=
await
getParameter
({
parent
:
this
.
parentLevel
,
pages
:
this
.
twoCurrentPage
-
1
,
pagesize
:
10
})
if
(
twoLevel
&&
twoLevel
.
data
&&
twoLevel
.
data
.
code
===
0
)
{
this
.
twoList
=
twoLevel
.
data
.
parameters
.
datas
this
.
twoList
=
twoLevel
.
data
.
parameters
.
datas
.
map
((
item
,
index
)
=>
{
item
.
order
=
index
+
1
+
(
this
.
twoCurrentPage
-
1
)
*
10
return
item
})
this
.
twoTotal
=
twoLevel
.
data
.
parameters
.
total
}
this
.
loadingTwo
=
false
...
...
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