element的table根据返回值重写某列的值(即返回字段为states,states=0显示正常,states=1显示冻结)
下面代码为同时判断两个条件,自定义展示值
<el-table-column
prop="states"
label="备注"
width="250"
>
<template slot-scope="scope">
<span v-if="scope.row.isrelation==0&&scope.row.balance!=0">{{ "要资金为0才可销户" }}</span>
<span v-else-if="scope.row.isrelation!=0&&scope.row.balance==0">{{ "要无推荐关系才可销户" }}</span>
</template>
</el-table-column>