傅豪杰 7 月之前
父節點
當前提交
bf46b059c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/pages/new/combine.vue

+ 2 - 2
src/pages/new/combine.vue

@@ -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) : [];
             }
         }
     },