diff --git a/src/views/business/component/addBusiness.vue b/src/views/business/component/addBusiness.vue index 5ff9b7b..cc38b1e 100644 --- a/src/views/business/component/addBusiness.vue +++ b/src/views/business/component/addBusiness.vue @@ -84,13 +84,19 @@ + + + + diff --git a/src/views/schedule/component/timeSelect.vue b/src/views/schedule/component/timeSelect.vue index d055ab6..b00735e 100644 --- a/src/views/schedule/component/timeSelect.vue +++ b/src/views/schedule/component/timeSelect.vue @@ -35,6 +35,7 @@ + 全选 @@ -83,6 +84,8 @@ export default { }, data() { return { + checkAll:false, + indeterminate:false, form: { id:'', customer_id: '', @@ -111,6 +114,12 @@ export default { } }, methods: { + handleCheckAllChange(val){ + this.form.schedule_list_skus = val ? this.skus.map(item => { + return item.sku.id + }) : [] + this.indeterminate =! this.indeterminate + }, submit() { this.form.customer_id = this.customerId this.form.product_id = this.productId