lemon橪 2021-12-25 10:55:27 +08:00
commit c58f8d7831
1 changed files with 10 additions and 2 deletions

View File

@ -170,11 +170,19 @@ export default {
/** /**
* 点击后判断是不是全选 * 点击后判断是不是全选
*/ */
changeChecked(val) { changeChecked(val) {
var opt = null;
const isCheckedAll = this.trackList.every((key) => { const isCheckedAll = this.trackList.every((key) => {
return key.___isDel == val.___isDel; key.___isDel == val.___isDel;
opt = key.___isDel;
return opt;
}); });
if(opt){
this.allChecked = isCheckedAll; this.allChecked = isCheckedAll;
}else{
this.allChecked = false;
}
}, },
/** /**