修复删除&食谱展示
This commit is contained in:
@ -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--) {
|
||||
|
@ -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"]),
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user