From 59374abd86eda37255a244d3d2bec659ec5b3303 Mon Sep 17 00:00:00 2001
From: xiayuping666 <1269237624@qq.com>
Date: Mon, 5 Feb 2024 10:26:32 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B7=BB=E5=8A=A0=E5=A4=9A?=
=?UTF-8?q?=E4=B8=AA=E7=B1=BB=E5=88=AB=E5=90=8E=E7=82=B9=E5=87=BB=E5=8D=95?=
=?UTF-8?q?=E5=85=83=E6=A0=BC=EF=BC=8C=E8=A1=A8=E6=A0=BC=E5=87=BA=E7=8E=B0?=
=?UTF-8?q?=E5=81=8F=E7=A7=BB=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/recipe/index.vue | 110 +++++++++++++++++++------------------
1 file changed, 57 insertions(+), 53 deletions(-)
diff --git a/src/views/recipe/index.vue b/src/views/recipe/index.vue
index 063f51b..9b7e7bb 100644
--- a/src/views/recipe/index.vue
+++ b/src/views/recipe/index.vue
@@ -36,57 +36,60 @@
添加食谱类别
-
-
{{ item.tName }}
-
-
-
- {{ weekEnum[scope.row.name ]}}
-
-
-
-
- {{ item.name+ ' ' + item.num }}
-
-
-
-
- {{ item.name+ ' ' + item.num }}
-
-
-
-
- {{ item.name+ ' ' + item.num }}
-
-
-
-
- {{ item.name+ ' ' + item.num }}
-
-
-
-
- {{ item.name+ ' ' + item.num }}
-
-
-
-
+
+
+
{{ item.tName }}
+
+
+
+ {{ weekEnum[scope.row.name ]}}
+
+
+
+
+ {{ item.name+ ' ' + item.num }}
+
+
+
+
+ {{ item.name+ ' ' + item.num }}
+
+
+
+
+ {{ item.name+ ' ' + item.num }}
+
+
+
+
+ {{ item.name+ ' ' + item.num }}
+
+
+
+
+ {{ item.name+ ' ' + item.num }}
+
+
+
+
+
+
@@ -311,7 +314,6 @@ export default {
}
this.defaultTable.push(obj)
}
- this.tableData = this.defaultTable
},
watch: {
'query.wId'(newVal, oldVal) {
@@ -492,7 +494,8 @@ export default {
console.log(this.form)
let obj = {
tName: this.form.tName,
- wId: this.query.wId
+ wId: this.query.wId,
+ contents: JSON.stringify(this.defaultTable)
}
postMeal(obj).then(res =>{
this.isRecipeModel = false
@@ -522,6 +525,7 @@ export default {
// 班级列表
recipeList(){
getRecipe(this.query.wId).then(res =>{
+ this.allClass = []
this.allClass = res.data.map( item =>{
if(item.contents){
let arr = JSON.parse(item.contents)