修复cookies删除不成功;修复后台批量操作因更新boottable后无法获取选中id
This commit is contained in:
@@ -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 + '吗?', {
|
||||
|
||||
Reference in New Issue
Block a user