|
@@ -87,11 +87,11 @@ export default {
|
|
|
isAllChecked: {
|
|
|
// 计算是否全选
|
|
|
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) {
|
|
|
- this.checkedGoods = value ? this.goods.filter((good) => !this.checkDisabled(good)).map(good => good.id) : [];
|
|
|
+ this.checkedGoods = value ? this.goods.map(good => good.id) : [];
|
|
|
}
|
|
|
}
|
|
|
},
|