本文地址:http://www.cnblogs.com/veinyin/p/8534365.html 

 

Vue 做表格时我们常用的就是 v-for ,直接把 prop 绑定上去,但是如果表格内容需要我们进行一些转换的话,就需要用 

el-table-column 单独设置了。(不知道有没有更优解)
 
直接上代码 
 
el-table-column(label='核对状态' align='center')
    template(slot-scope='scope')
        span {{scope.row.checkStatus === 0 ? '已核对' : '未核对'}}    

  

这就可以根据返回的是 0 还是 1 填充进已核对和未核对

 

 

END~~~≥ω≤

 

 

相关文章:

  • 2022-12-23
  • 2021-03-26
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-06-24
猜你喜欢
  • 2022-01-03
  • 2021-09-30
  • 2022-12-23
  • 2022-02-20
  • 2021-04-27
  • 2021-10-08
相关资源
相似解决方案