修复菜品修改报错

This commit is contained in:
huangdeliang 2021-01-22 10:00:21 +08:00
parent f99f84ce07
commit 7a1aac82c9
2 changed files with 4 additions and 2 deletions
stdiet-ui/src
assets/icons/svg
views/custom/dishes

File diff suppressed because one or more lines are too long

After

(image error) Size: 92 KiB

@ -75,7 +75,7 @@
</template>
</el-table-column>
<el-table-column label="菜品名称" align="center" prop="name"/>
<el-table-column label="菜品类型" align="center" prop="type" >
<el-table-column label="菜品类型" align="center" prop="type">
<template slot-scope="scope">
<autohideinfo :data="typeFormat(scope.row)"/>
</template>
@ -477,7 +477,7 @@
const id = row.id || this.ids
getDishes(id).then(response => {
this.form = response.data;
this.form.type = this.form.type.split(',');
this.form.type = this.form.type ? this.form.type.split(',') : null;
this.form.igdList.forEach(obj => {
this.selIngIds.push(obj.id);
this.selIngList.push({