修复删除&食谱展示

This commit is contained in:
huangdeliang
2021-03-22 19:44:20 +08:00
parent 6d912988ac
commit c536b20b63
4 changed files with 35 additions and 30 deletions

View File

@ -337,7 +337,8 @@ export default {
}
lastNameHit =
arr[arr.length - 1].name === cur.name &&
arr[arr.length - 1].type === cur.type;
arr[arr.length - 1].type === cur.type
// arr[arr.length - 1].dishesId === cur.dishesId;
if (lastNameHit) {
let namePos = arr.length - 1;
for (let i = namePos; i >= 0; i--) {

View File

@ -15,7 +15,10 @@
</div>
<div v-for="mObj in obj.values" :key="mObj.id">
<div class="dishes_item">
<div v-if="!mObj.methods && !mObj.remark" class="simple_dishes">
<div
v-if="!mObj.methods && !mObj.remark && !mObj.igdList"
class="simple_dishes"
>
<span>{{ mObj.name }}</span>
<span class="weight_style">
<span style="margin-right: 20px">{{ mObj.cusStr }}</span>
@ -87,7 +90,7 @@ export default {
typeName: this.menuTypeDict[type],
values: mData[type],
}));
// console.log(mMenus);
console.log(mMenus);
return mMenus;
},
...mapState(["cusUnitDict", "cusWeightDict", "menuTypeDict"]),

View File

@ -5,8 +5,7 @@ export function getProcessMenuData(menuData) {
cur.dishesId > -1 &&
cur.name &&
cur.igdList.length > 0 &&
cur.type !== "0" &&
cur.detail.length > 0
cur.type !== "0"
) {
arr.push({
id: cur.id,