HTML:
ScannCodePayStatus:定义的参数名
<el-table-column label="订单状态" align="center" >
<template slot-scope="scope">
<span>{{ ScannCodePayStatus[scope.row.orderStatus] }}</span>
</template>
</el-table-column>
JS:在data中定义对应的数据
ScannCodePayStatus: {
"-1": "已取消",
"0": "交易关闭",
"1": "待支付",
"2": "支付中",
"3": "已支付",
"4": "已退款",
"5": "已发货",
"6": "待提货",
"7": "确认收货",
"8": "退款中",
"10": "退款失败"
},