如题后端返回的list 中有值,表格缺没显示 加一个template将true 和false 转为想要的字段即可 这里是三目
<el-table-column prop="enabled" label="状态" align="center" width="200"> <template slot-scope="scope"> {{scope.row.enabled ? "启用":"停用"}} </template> </el-table-column>