【功能修复】商城:售后详情,商品不展示的问题

This commit is contained in:
YunaiV 2025-03-15 21:54:32 +08:00
parent 67c7fb3856
commit 5cfe0661d2

View File

@ -90,11 +90,15 @@
<el-descriptions-item labelClassName="no-colon"> <el-descriptions-item labelClassName="no-colon">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="15"> <el-col :span="15">
<el-table :data="[formData.orderItem]" border> <el-table v-if="formData.orderItem" :data="[formData.orderItem]" border>
<el-table-column label="商品" prop="spuName" width="auto"> <el-table-column label="商品" prop="spuName" width="auto">
<template #default="{ row }"> <template #default="{ row }">
{{ row.spuName }} {{ row.spuName }}
<el-tag v-for="property in row.properties" :key="property.propertyId"> <el-tag
v-for="property in row.properties"
:key="property.propertyId"
class="mr-10px"
>
{{ property.propertyName }}: {{ property.valueName }} {{ property.propertyName }}: {{ property.valueName }}
</el-tag> </el-tag>
</template> </template>