Commit b96a243e by 梁建民

js

parent 9e4aee6e
......@@ -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) {
......
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