diff --git a/template/admin/src/pages/product/productList/index.vue b/template/admin/src/pages/product/productList/index.vue index 54234602e..e889c1281 100644 --- a/template/admin/src/pages/product/productList/index.vue +++ b/template/admin/src/pages/product/productList/index.vue @@ -145,12 +145,12 @@ v-model="batchModal" class="batch-box" scrollable - closable + :closable="false" title="批量设置" :mask-closable="false" width="1000" @on-ok="batchSub" - @on-visible-change="clearBatchData" + @on-cancel="clearBatchData" >
{ this.$Message.success(res.msg); this.getDataList(); - this.clearBatchData(); + this.clearBatchData(false); + this.ids = []; + this.clearAll(false); }) .catch((err) => { this.$Message.error(err.msg); @@ -477,9 +479,7 @@ export default { coupon_ids: [], recommend: [], }; - this.ids = []; this.dataLabel = []; - this.clearAll(false); } }, // 批量设置商品