修改bug
This commit is contained in:
@@ -186,11 +186,11 @@
|
||||
this.ids = this.ids.concat(res.id);
|
||||
}
|
||||
}
|
||||
this.isProcessing = false;
|
||||
});
|
||||
this.selectList.forEach(val => {
|
||||
this.$refs[`tableRef_${this.config.tableKey}`].toggleRowSelection(val,true);
|
||||
});
|
||||
this.isProcessing = false;
|
||||
} else {
|
||||
this.selectList = selection;
|
||||
this.ids = selection.map(item => item.id);
|
||||
@@ -205,6 +205,15 @@
|
||||
} else {
|
||||
this.selectAllRows(); // 全选
|
||||
}
|
||||
} else {
|
||||
if (tabAll && tabAll.length > 0) {
|
||||
this.selectList = tabAll;
|
||||
this.ids = tabAll.map(tabId => tabId.id);
|
||||
} else {
|
||||
// 清空
|
||||
this.selectList = [];
|
||||
this.ids = [];
|
||||
}
|
||||
}
|
||||
},
|
||||
// 提供给父组件调用的方法:返回当前表格的选中数据 资源监控策略和资源监控模块使用
|
||||
|
||||
Reference in New Issue
Block a user