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
5d823f63
authored
Feb 24, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
loading
parent
6b6da1e0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
5d823f63
...
@@ -94,6 +94,7 @@ const actions = {
...
@@ -94,6 +94,7 @@ const actions = {
Services
.
ZiYingIndex
(
params
).
then
((
res
)
=>
{
Services
.
ZiYingIndex
(
params
).
then
((
res
)
=>
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
Toast
.
clear
();
if
(
data
.
error_code
==
0
)
{
if
(
data
.
error_code
==
0
)
{
commit
({
commit
({
...
@@ -110,7 +111,6 @@ const actions = {
...
@@ -110,7 +111,6 @@ const actions = {
message
:
data
.
error_msg
,
message
:
data
.
error_msg
,
duration
:
3000
duration
:
3000
});
});
Toast
.
clear
();
}
}
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
...
@@ -119,7 +119,6 @@ const actions = {
...
@@ -119,7 +119,6 @@ const actions = {
},
},
aggs
({
commit
},
payload
)
{
aggs
({
commit
},
payload
)
{
Toast
.
loading
({
Toast
.
loading
({
message
:
'加载中...'
,
message
:
'加载中...'
,
forbidClick
:
true
,
forbidClick
:
true
,
...
@@ -137,9 +136,9 @@ const actions = {
...
@@ -137,9 +136,9 @@ const actions = {
Services
.
aggs
(
params
).
then
((
res
)
=>
{
Services
.
aggs
(
params
).
then
((
res
)
=>
{
Toast
.
clear
();
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
,
...
@@ -151,7 +150,6 @@ const actions = {
...
@@ -151,7 +150,6 @@ const actions = {
message
:
data
.
error_msg
,
message
:
data
.
error_msg
,
duration
:
3000
duration
:
3000
});
});
Toast
.
clear
();
}
}
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
Toast
.
clear
();
Toast
.
clear
();
...
...
view/app.js
View file @
5d823f63
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