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
78aa2af8
authored
Feb 22, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
931fc388
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
78aa2af8
...
...
@@ -72,48 +72,48 @@ const mutations = {
const
actions
=
{
ziYingIndex
({
commit
},
payload
)
{
state
.
loading
=
true
;
state
.
finished
=
false
;
/* let param = {
'sample_status/eq': 1
};*/
Toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
loadingType
:
'spinner'
});
/* let obj = Object.assign({}, param, payload.params);*/
let
obj
=
{
...
payload
.
params
,
'offset'
:
200
,
'offset'
:
200
,
'sample_status/eq'
:
1
,
}
}
;
let
params
=
Util
.
getParams
(
obj
);
Services
.
ZiYingIndex
(
params
).
then
((
res
)
=>
{
state
.
loading
=
false
;
let
data
=
res
.
data
;
if
(
data
.
error_code
==
0
)
{
commit
({
type
:
'ziYingIndex'
,
data
:
data
.
data
});
state
.
finished
=
true
;
}
else
if
(
data
.
error_code
==
3
)
{
window
.
location
.
reload
();
}
else
{
state
.
loading
=
false
;
state
.
finished
=
true
;
Toast
({
message
:
data
.
error_msg
,
duration
:
3000
});
Toast
.
clear
();
}
}).
catch
(
function
(
err
)
{
state
.
loading
=
false
;
state
.
finished
=
true
;
Toast
.
clear
();
});
},
aggs
({
commit
},
payload
)
{
...
...
view/app.js
View file @
78aa2af8
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