1、在el-table 标签加上ref="companyStationConfigTable"(可以自己设定)
2、在你需要清空的时候加上以下代码
this.$refs.companyStationConfigTable.clearSelection();
触发函数
setStateEnd() {
this.multipleSelection = []
this.$refs.companyStationConfigTable.clearSelection()
},
table头部
<el-table :data="list"
style="width: 100%"
border fit stripe
v-loading="listLoading"
@selection-change="handleSelectionChange"
ref="companyStationConfigTable"
>
提交表单
<div slot="footer" class="dialog-footer">
<el-button @click="settingStateDialogFormVisible = false">取消</el-button>
<el-button type="primary" @click="setStateEnd">确定</el-button>
</div>