**
vue中el-checkbox的全选全不选
**
html
data:
checkAll_time:false,
checkTimes:[],
js - methods:
// 成立时间
allTime(val){
if(this.checkAll_time == false){
this.checkTimes = []
}else{
this.checkTimes = [‘in1’,‘1to3’,‘3to5’,‘5to7’,‘7to10’,‘mt10’]
}
},
checkTime(val){
this.checkAll_time = false
if(val.length == 6){
this.checkAll_time = !this.checkAll_time
}
},