Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
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
b96a243e
authored
Feb 25, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
9e4aee6e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
b96a243e
...
...
@@ -23,9 +23,11 @@ const state = {
}
const
mutations
=
{
ziYingIndex
(
state
,
payload
)
{
state
.
ziYingIndex
=
state
.
ziYingIndex
.
concat
(
payload
.
data
.
data
.
data_list
);
console
.
log
(
state
.
ziYingIndex
)
let
arr
=
[];
for
(
let
k
in
payload
.
data
.
data
.
data_list
)
{
arr
.
push
(
payload
.
data
.
data
.
data_list
[
k
])
}
state
.
ziYingIndex
=
state
.
ziYingIndex
.
concat
(
arr
);
},
aggs
(
state
,
payload
)
{
var
arr
=
[];
...
...
@@ -83,10 +85,9 @@ const actions = {
state
.
loading
=
true
;
state
.
finished
=
false
;
let
obj
=
{
...
payload
.
params
,
'offset'
:
10
,
'offset'
:
3
,
'sample_status/eq'
:
1
,
};
...
...
@@ -105,7 +106,7 @@ const actions = {
let
totalPage
=
0
;
if
(
data
.
data
.
total
)
{
totalPage
=
Math
.
ceil
(
data
.
data
.
total
*
1
/
10
);
totalPage
=
Math
.
ceil
(
data
.
data
.
total
*
1
/
3
);
}
if
(
payload
.
params
.
p
>=
totalPage
||
!
totalPage
)
{
...
...
view/app.js
View file @
b96a243e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment