修复cookies删除不成功;修复后台批量操作因更新boottable后无法获取选中id

This commit is contained in:
2020-10-23 14:46:40 +08:00
parent ab40520cda
commit 3b50120a5c
10 changed files with 60 additions and 16 deletions
+4 -1
View File
@@ -354,7 +354,7 @@ function DoAdminLogin(formId, rules, messages) {
//后台列表执行批量操作
function doBatchAction(url, title) {
var list = $('#tb_departments').bootstrapTable('getAllSelections');
var list = $('#tb_departments').bootstrapTable('getSelections');
var ids = [];
if (!list || list.length < 1) {
layer.alert("请至少选择一条记录!", { icon: 2 });
@@ -364,6 +364,9 @@ function doBatchAction(url, title) {
if (item.id) {
ids.push(item.id);
}
if (item.Id) {
ids.push(item.Id);
}
})
layer.confirm('确认要执行批量' + title + '吗?', {