From 611194b5876e07ae782590d45187bc9a62b3cc8b Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Thu, 15 Aug 2024 15:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=94=AE=E5=8D=96=E6=97=B6=E9=97=B4=E7=AE=A1?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/components/addGroup.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() {