|
element-ui中使用template定制列,通过scope.row.键名,获取所在行的某一列的数据
<el-table-column label="状态" min-width="120" align="center" > <template slot-scope="scope" > <span style="margin-left: 10px">{ { scope.row.status == 1 ? '有效' : '禁止' } }</span> </template> </el-table-column> 参考:https://blog.csdn.net/tg928600774/article/details/81945140 |
|
|