<el-table-column label="订单状态" width="240" prop="orderStatus">
<template slot-scope="scope">
<el-tag v-if="scope.row.orderStatus == 1">待付款</el-tag>
<el-tag v-else-if="scope.row.orderStatus == 2">待发货</el-tag>
<el-tag v-else-if="scope.row.orderStatus == 3">已发货</el-tag>
<el-tag v-else-if="scope.row.orderStatus == 4">订单关闭</el-tag>
<el-tag v-else-if="scope.row.orderStatus == 5">订单完成</el-tag>
</template>
</el-table-column>
<el-table-column prop="paymentMethod" label="付款方式" width="240">
<template slot-scope="scope">
<el-tag>{{scope.row.paymentMethod == 1? '微信':'支付宝'}}</el-tag>
</template>
</el-table-column>
vue对element-ui里的table表格某一行进行特殊处理
最新推荐文章于 2023-06-23 17:53:18 发布