From 3c6d870d629f6222f7dcf234245fc913a6eebaf3 Mon Sep 17 00:00:00 2001 From: zyx <1029606625@qq.com> Date: Mon, 19 Jun 2023 16:39:48 +0800 Subject: [PATCH] =?UTF-8?q?6/19=20=E8=A7=A3=E5=86=B3=E4=BA=86=E8=8F=9C?= =?UTF-8?q?=E5=93=81/=E5=A5=97=E9=A4=90=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=AA=97=E5=8F=A3=E6=97=A0=E6=B3=95=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=92=8C=E5=A5=97=E9=A4=90=E9=A1=B5=E9=9D=A2=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=90=9C=E7=B4=A2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/takeout/dish-add-or-update.vue | 13 ++++++------- src/views/modules/takeout/dish.vue | 5 +++-- src/views/modules/takeout/setmeal-add-or-update.vue | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/modules/takeout/dish-add-or-update.vue b/src/views/modules/takeout/dish-add-or-update.vue index e3bd129..14d4d6f 100644 --- a/src/views/modules/takeout/dish-add-or-update.vue +++ b/src/views/modules/takeout/dish-add-or-update.vue @@ -269,7 +269,7 @@ export default { }, init() { - this.visible = true, + this.visible = true this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/sys/oss/upload?token=${Cookies.get('token')}` this.$nextTick(() => { this.$refs['dataForm'].resetFields() @@ -292,11 +292,11 @@ export default { ...res.data } this.dataForm.price = String(res.data.price / 100) - this.dishFlavors = res.data.flavors && res.data.flavors.map(obj => ({ - ...obj, - value: JSON.parse(obj.value), - showOption: false - })) + // this.dishFlavors = res.data.flavors && res.data.flavors.map(obj => ({ + // ...obj, + // value: JSON.parse(obj.value), + // showOption: false + // })) this.imageUrl = this.dataForm.image; }).catch(() => { @@ -454,7 +454,6 @@ export default { onClose: () => { this.visible = false this.$emit('refreshDataList') - } }) }).catch(() => { diff --git a/src/views/modules/takeout/dish.vue b/src/views/modules/takeout/dish.vue index 37aa085..af086b6 100644 --- a/src/views/modules/takeout/dish.vue +++ b/src/views/modules/takeout/dish.vue @@ -3,7 +3,7 @@
- + {{ $t('query') }} @@ -112,7 +112,8 @@ export default { order: 'desc', orderField: 'update_date', dataForm: { - id: '' + //菜品名称 + name: '' } } }, diff --git a/src/views/modules/takeout/setmeal-add-or-update.vue b/src/views/modules/takeout/setmeal-add-or-update.vue index 4a8e986..f61c881 100644 --- a/src/views/modules/takeout/setmeal-add-or-update.vue +++ b/src/views/modules/takeout/setmeal-add-or-update.vue @@ -199,7 +199,7 @@ export default { image: '', description: '', dishList: [], - status: '1', + status: 1, idType: '', }, headerObj: { @@ -300,8 +300,8 @@ export default { this.dataForm.price = res.data.price / 100 this.imageUrl = this.dataForm.image; - this.checkList = res.data.setmealDishes - this.dishTable = res.data.setmealDishes + // this.checkList = res.data.setmealDishes + // this.dishTable = res.data.setmealDishes this.dataForm.idType = res.data.categoryId }).catch(() => { })