The problem with element table

Multi-box table wants to achieve two effects
1. Click to select a selection box to get the data of the current row, that is, the data of the row where the selection box is located
2. After selecting the selection box, disable the current selection box
. Read about the document, can not find a solution table data is an array of multiple objects each object has an id

<el-table :data="clientList"
      @selection-change="handleSelectionInspertorChange"
      ref="queryResultClientsTable">
    <el-table-column type="selection" :selectable="isSelectable" align="center"></el-table-column>
    <el-table-column prop="trueName" label="" align="center"></el-table-column>
    <el-table-column prop="trueName" label="" align="center"></el-table-column>
</el-table>-sharp-sharp-sharp 

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Oct.25,2021

you can listen by adding @ select events to the table.

<template>
  <el-table ref="multipleTable" :data="tableData3" @select="selectData">
    <el-table-column type="selection" width="55">
    </el-table-column>
    <el-table-column label="" width="120">
      <template slot-scope="scope">{{ scope.row.date }}</template>
    </el-table-column>
    <el-table-column prop="name" label="" width="120">
    </el-table-column>
    <el-table-column prop="address" label="" show-overflow-tooltip>
    </el-table-column>
  </el-table>
  <div style="margin-top: 20px">
    <el-button @click="toggleSelection([tableData3[1], tableData3[2]])"></el-button>
    <el-button @click="toggleSelection()"></el-button>
  </div>
</template>

export defalut {
  ...
  methods : {
    selectData(selection, row){
      console.log(selection, row);
      // doSomething...
    }
  }
}

just add your logic code to the doSomething

Is this the effect of

https://jsfiddle.net/e9xywkjb/?

Menu