菜谱菜谱展示

This commit is contained in:
zzyuan 2025-04-27 18:11:38 +08:00
parent 53465a79af
commit 34bd00bd47
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@
<el-table-column v-for="item in mealTimeList" :key="item.mealtimeType" :label="item.mealtimeName" align="center" v-if="activeName=='currentRecipe'" width="200">
<template slot-scope="scope">
<div v-if="scope.row.detail&&scope.row.detail.length>0">
<div v-for="subItem in scope.row.detail[0].details" :key="subItem.detailId">
<div v-if="scope.row.detail">
<div v-for="subItem in scope.row.detail.details" :key="subItem.detailId">
<div v-if="subItem.mealtimeType==item.mealtimeType">
<div v-for="(lastItem,index) in subItem.dishesList" :key="lastItem.dishesId">
<div v-if="index<4">{{ lastItem.dishesName }}</div>