字段对应
let cashBackState = {
'WAIT_FIVE': '满5单可返现',
'FINISHED': '已返现'
}
filters: {
cashBackStateFilter: function (value) {
return enumOptions.cashBackState[value]
}
},
<el-table-column label="状态"
width="100"
align="center">
<template scope="scope">{{ scope.row.cashBackState | cashBackStateFilter}}</template>
</el-table-column>