| | |
| | | return value ? value.replace('T', ' ') : '' |
| | | } |
| | | |
| | | function merchantTypeText(value?: string) { |
| | | const type = String(value || '') |
| | | if (type === 'food') return '餐饮服务' |
| | | if (type === 'scenic') return '景区服务' |
| | | return type |
| | | } |
| | | |
| | | async function loadData() { |
| | | loading.value = true |
| | | try { |
| | |
| | | <el-table-column prop="talentName" label="持卡人名称" width="104" /> |
| | | <el-table-column prop="talentMobile" label="持卡人电话" width="112" /> |
| | | <el-table-column prop="merchantName" label="商家名称" width="92" show-overflow-tooltip /> |
| | | <el-table-column prop="merchantType" label="商家类型" width="86" /> |
| | | <el-table-column label="商家类型" width="86"><template #default="{ row }">{{ merchantTypeText(row.merchantType) }}</template></el-table-column> |
| | | <el-table-column :label="itemNameLabel" min-width="96" show-overflow-tooltip> |
| | | <template #default="{ row }">{{ row.benefitName || '-' }}</template> |
| | | </el-table-column> |