diff --git a/src/views/product/components/addGroup.vue b/src/views/product/components/addGroup.vue index 3dac0e8..a9ec8e6 100644 --- a/src/views/product/components/addGroup.vue +++ b/src/views/product/components/addGroup.vue @@ -69,6 +69,7 @@ export default { isShow: 1, sort: 0, productIds: [], + saleTime:[], useTime: 0, shopId: localStorage.getItem('shopId') }, @@ -114,7 +115,7 @@ export default { return falg }, onSubmitHandle() { - + console.log(this.form.saleTime) this.$refs.form.validate(async valid => { if (valid) { this.loading = true @@ -152,13 +153,18 @@ export default { }, show(obj) { if (obj && obj.id) { + console.log(obj, '调试1') + this.form = obj this.form.id = obj.id this.form.isShow = obj.isShow this.form.name = obj.name this.form.sort = obj.sort this.form.productIds = obj.productIds + this.$set(this.form , 'saleTime',[obj.saleStartTime, obj.saleEndTime]) this.getProduts() + console.log(this.form, '调试1') } + this.dialogVisible = true }, close() {