<el-table
ref="multipleTable"
:data="merchantManage"
tooltip-effect="dark"
style="width: 100%"
@selection-change="tableSelected">
data () {
return {
this.isDelBatchMerchantBtn
}
}
/**
* 获取表格多选 选中的商家信息
*/
tableSelected (val) {
// 去重获取被选中的id值存入到数组中
for (let selectedItem of val) {
this.merchantSelectedIds.push(selectedItem.id)
}
// 选中多选之后 删除选中按钮修改为可用状态
this.isDelBatchMerchantBtn = !this.isDelBatchMerchantBtn
}