From 92e53c810a5b5f95aa1945feb6650a5cc71f12c1 Mon Sep 17 00:00:00 2001 From: ryoeiken <754264374@qq.com> Date: Mon, 7 Dec 2020 22:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9=E7=97=85?= =?UTF-8?q?=E4=BA=BA=E9=85=8D=E9=A4=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/fantang/foodDemand/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/fantang/foodDemand/index.vue b/ruoyi-ui/src/views/fantang/foodDemand/index.vue index 5f41a53cb..89becf4fa 100644 --- a/ruoyi-ui/src/views/fantang/foodDemand/index.vue +++ b/ruoyi-ui/src/views/fantang/foodDemand/index.vue @@ -199,7 +199,7 @@ export default { components: {}, data() { return { - departOptions:[], + departOptions: [], foodList: [], flagOptions: [{ value: 1, @@ -398,6 +398,14 @@ export default { if (valid) { if (this.form.id != null) { this.form.foods = this.form.foods.toString(); + if (this.form.type === '早餐') + this.form.type = 1; + else if (this.form.type === '午餐') + this.form.type = 2; + else if (this.form.type === '晚餐') + this.form.type = 3; + else + this.form.type = 4; updateFoodDemand(this.form).then(response => { this.msgSuccess("修改成功"); this.open = false;