|
@@ -87,11 +87,11 @@ export default {
|
|
isAllChecked: {
|
|
isAllChecked: {
|
|
// 计算是否全选
|
|
// 计算是否全选
|
|
get() {
|
|
get() {
|
|
- return this.goods.filter((good) => !this.checkDisabled(good)).length === this.checkedGoods.length && this.checkedGoods.length;
|
|
|
|
|
|
+ return this.goods.length === this.checkedGoods.length;
|
|
},
|
|
},
|
|
// 设置全选
|
|
// 设置全选
|
|
set(value) {
|
|
set(value) {
|
|
- this.checkedGoods = value ? this.goods.filter((good) => !this.checkDisabled(good)).map(good => good.id) : [];
|
|
|
|
|
|
+ this.checkedGoods = value ? this.goods.map(good => good.id) : [];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|