<el-table
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange">
<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>
handleSelectionChange(val) {
this.multipleSelection = val;
if (this.multipleSelection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(this.multipleSelection[0]);
} else {
this.processId = this.multipleSelection[0].id;
}
}