Commit 06b99f5c by 梁建民

js

parent 1d3fd10c
<template>
<div id="app">
<keep-alive exclude="newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,risk,risksuccess">
<keep-alive exclude="newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,risk,risksuccess,sample">
<router-view class="router-view"></router-view>
</keep-alive>
</div>
......
......@@ -26,55 +26,32 @@ const mutations = {
state.ziYingIndex = payload.data;
},
aggs(state, payload) {
if (payload.reset) {
for (let k in payload.data.aggs) {
for (let i = 0; i < payload.data.aggs[k].list.length; i++) {
payload.data.aggs[k].list[i].check = false;
payload.data.aggs[k].list[i].flag=false;
}
}
var arr = [];
}else{
var arr = [];
if (payload.id) {
arr = payload.id.split(",");
}
for (let k in payload.data.aggs) {
for (let i = 0; i < payload.data.aggs[k].list.length; i++) {
payload.data.aggs[k].list[i].check = false;
if (payload.id) {
arr = payload.id.split(",");
}
for (let k in payload.data.aggs) {
for (let j = 0; j < arr.length; j++) {
for (let i = 0; i < payload.data.aggs[k].list.length; i++) {
payload.data.aggs[k].list[i].check = false;
if (payload.data.aggs[k].list[i].id == arr[j]) {
for (let j = 0; j < arr.length; j++) {
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;
}
if (payload.data.aggs[k].list[i].id == arr[j]) {
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;
}
}
}
}
state.aggs = payload.data;
},
aggSample(state, payload) {
state.smaple_class_id = payload.data[0].smaple_class_id;
......
......@@ -286,6 +286,7 @@
params, params
});
this.id=[];
},
submit: function () {
......
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