0
点赞
收藏
分享

微信扫一扫

this.$set,或者Vue.set(),@cell-click=“cellClick“

AbrahamW 2022-03-26 阅读 37

它们两个是一个意思

this.$set(this.dataList[index], “starShow”, false);如果后端没有这个数据,
但是前端的列表展示的时候需要一个假的数据,
把数据中的每个startShow赋值为false;

@cell-click="cellClick"这个可以加在那个表头上面,可以指定那个指定的列加上点击事件。

    cellClick(row, column, cell, event){
      if(column.property == "clmnum"){
        // this.dialogCustomer = true
        this.$router.push({path:"/workplatform/taskDetail"})
      }
    },



举报

相关推荐

0 条评论