Commit 98522799 by 梁建民

js

parent 3477776c
...@@ -27,9 +27,7 @@ const mutations = { ...@@ -27,9 +27,7 @@ const mutations = {
}, },
aggs(state, payload) { aggs(state, payload) {
console.log(payload)
if (!payload.reset) {
var arr = []; var arr = [];
var obj = Object.keys(payload.data.aggs); var obj = Object.keys(payload.data.aggs);
...@@ -49,19 +47,21 @@ const mutations = { ...@@ -49,19 +47,21 @@ const mutations = {
payload.data.aggs[k].list[i].check = !payload.data.aggs[k].list[i].check; payload.data.aggs[k].list[i].check = !payload.data.aggs[k].list[i].check;
payload.data.aggs[k].list[i].flag = !payload.data.aggs[k].list[i].flag; payload.data.aggs[k].list[i].flag = !payload.data.aggs[k].list[i].flag;
} if (payload.reset) {
payload.data.aggs[k].list[i].check = false;
payload.data.aggs[k].list[i].flag = false;
} }
} }
} }
state.aggs = payload.data; }
}
} else {
state.aggs = [];
state.aggs = payload.data; state.aggs = payload.data;
}
}, },
aggSample(state, payload) { aggSample(state, 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