Commit 80c6f6c3 by 梁建民

js

parent aca9130d
......@@ -94,6 +94,8 @@ const actions = {
data: data.data
});
state.finished = true;
}else if(data.error_code == 3){
} else {
state.loading = false;
state.finished = true;
......@@ -109,6 +111,13 @@ const actions = {
},
aggs({commit}, payload) {
Toast.loading({
message: '加载中...',
forbidClick: true,
loadingType: 'spinner'
});
let param = {
'sample_status/eq': 1
};
......@@ -121,6 +130,7 @@ const actions = {
Services.aggs(params).then((res) => {
let data = res.data;
if (data.error_code == 0) {
Toast.clear();
commit({
type: 'aggs',
data: data.data,
......@@ -131,9 +141,10 @@ const actions = {
message: data.error_msg,
duration: 3000
});
Toast.clear();
}
}).catch(function (err) {
Toast.clear();
});
},
aggSample({commit}, payload) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment