修复菜品修改报错
This commit is contained in:
parent
f99f84ce07
commit
7a1aac82c9
2
stdiet-ui/src/assets/icons/svg/health.svg
Normal file
2
stdiet-ui/src/assets/icons/svg/health.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 92 KiB |
@ -75,7 +75,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="菜品名称" align="center" prop="name"/>
|
<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">
|
<template slot-scope="scope">
|
||||||
<autohideinfo :data="typeFormat(scope.row)"/>
|
<autohideinfo :data="typeFormat(scope.row)"/>
|
||||||
</template>
|
</template>
|
||||||
@ -477,7 +477,7 @@
|
|||||||
const id = row.id || this.ids
|
const id = row.id || this.ids
|
||||||
getDishes(id).then(response => {
|
getDishes(id).then(response => {
|
||||||
this.form = response.data;
|
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.form.igdList.forEach(obj => {
|
||||||
this.selIngIds.push(obj.id);
|
this.selIngIds.push(obj.id);
|
||||||
this.selIngList.push({
|
this.selIngList.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user