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
80c6f6c3
authored
Feb 22, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
aca9130d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
80c6f6c3
...
@@ -94,6 +94,8 @@ const actions = {
...
@@ -94,6 +94,8 @@ const actions = {
data
:
data
.
data
data
:
data
.
data
});
});
state
.
finished
=
true
;
state
.
finished
=
true
;
}
else
if
(
data
.
error_code
==
3
){
}
else
{
}
else
{
state
.
loading
=
false
;
state
.
loading
=
false
;
state
.
finished
=
true
;
state
.
finished
=
true
;
...
@@ -109,6 +111,13 @@ const actions = {
...
@@ -109,6 +111,13 @@ const actions = {
},
},
aggs
({
commit
},
payload
)
{
aggs
({
commit
},
payload
)
{
Toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
loadingType
:
'spinner'
});
let
param
=
{
let
param
=
{
'sample_status/eq'
:
1
'sample_status/eq'
:
1
};
};
...
@@ -121,6 +130,7 @@ const actions = {
...
@@ -121,6 +130,7 @@ const actions = {
Services
.
aggs
(
params
).
then
((
res
)
=>
{
Services
.
aggs
(
params
).
then
((
res
)
=>
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
if
(
data
.
error_code
==
0
)
{
if
(
data
.
error_code
==
0
)
{
Toast
.
clear
();
commit
({
commit
({
type
:
'aggs'
,
type
:
'aggs'
,
data
:
data
.
data
,
data
:
data
.
data
,
...
@@ -131,9 +141,10 @@ const actions = {
...
@@ -131,9 +141,10 @@ const actions = {
message
:
data
.
error_msg
,
message
:
data
.
error_msg
,
duration
:
3000
duration
:
3000
});
});
Toast
.
clear
();
}
}
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
Toast
.
clear
();
});
});
},
},
aggSample
({
commit
},
payload
)
{
aggSample
({
commit
},
payload
)
{
...
...
view/app.js
View file @
80c6f6c3
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