el-table默认做勾选

 methods: {
    getList() {
      getHomeInfor({ projectId: this.projectId }).then(response => {
        this.gefangjianchicun = response.data
        this.$nextTick(function() {
          if (this.gefangjianchicun) {
            this.gefangjianchicun.forEach(row => {
              if (row.type === '计算类型4' || row.type === '计算类型8' || row.type === '计算类型9' || row.type === '计算类型12') {
                this.$refs.multipleTable.toggleRowSelection(row)
              }
            })
          }
        })
      })
    }
    }

你可能感兴趣的:(vue.js,javascript,前端)