<el-table
:data="dialogData"
ref="MainTable"
@selection-change="handleSelectionChange"
style="width: 100%"
border
>
<el-table-column
type="selection"
width="55"
/>
</el-table>
methods: {
handleSelectionChange(selectdata){
let arrays;
if (selectdata.length >= 2) {
arrays = selectdata.splice(0, selectdata.length - 1);
arrays.forEach((row) => {
this.$refs.MainTable.toggleRowSelection(row);
});
}
},
}