使用:this.$refs.multipleTable.clearSelection();
其中multipleTable是ref;下面部分代码
<el-table
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange">
</el-table>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirm()">确定</el-button>
<el-button @click="cancel()">取 消</el-button>
</span>
/**
* 取消
*/
cancel() {
this.$refs.multipleTable.clearSelection();
this.dialogPower = false;
this.close();
},