根据后端返回的值用 v-if选择其中的一个
比如:0代表成功 1:代表失败 2:退款中
用作用域插槽
<template slot-scope="scope">
<span v-if="scope.row.status===0">成功</span>
<span v-if="scope.row.status===1">失败</span>
<span v-if="scope.row.status===2">退款中</span>
</template>
这样就完成了
当出现字符串的时候,需要用单引号