用过滤器
{{ scope.row.billState | billState }}
filters: {
billState (billState) {
if (billState === 1) {
return ‘未使用’
} else if (billState === 2) {
return ‘已使用’
} else if (billState === 3) {
return ‘已体现’
} else if (billState === 4) {
return ‘已作废’
}
},
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201020092529971.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NTAyMjk0OQ==,size_16,color_FFFFFF,t_70#pic_center)