代码
<el-table-column label="是否公开">
<template slot-scope="scope">
<span>{{scope.row.is_open== 1 ? '是' :'否'}}</span>
</template>
</el-table-column>
效果:
用 v-if
<el-table-column label="是否公开">
<template slot-scope="scope">
<span v-if="scope.row.is_open== 1">是</span>
<span v-else>否</span>
</template>
</el-table-column>