mirror of https://gitee.com/karson/fastadmin.git
修复批量选中编辑时的错误
parent
f11f4a7738
commit
20c7963e22
|
|
@ -7903,9 +7903,10 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|||
// 批量编辑按钮事件
|
||||
$(toolbar).on('click', Table.config.editbtn, function () {
|
||||
var ids = Table.api.selectedids(table);
|
||||
var that = this;
|
||||
//循环弹出多个编辑框
|
||||
$.each(ids, function (i, j) {
|
||||
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + j, __('Edit'), $(this).data() || {});
|
||||
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + j, __('Edit'), $(that).data() || {});
|
||||
});
|
||||
});
|
||||
// 批量操作按钮事件
|
||||
|
|
|
|||
|
|
@ -158,9 +158,10 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
|||
// 批量编辑按钮事件
|
||||
$(toolbar).on('click', Table.config.editbtn, function () {
|
||||
var ids = Table.api.selectedids(table);
|
||||
var that = this;
|
||||
//循环弹出多个编辑框
|
||||
$.each(ids, function (i, j) {
|
||||
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + j, __('Edit'), $(this).data() || {});
|
||||
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + j, __('Edit'), $(that).data() || {});
|
||||
});
|
||||
});
|
||||
// 批量操作按钮事件
|
||||
|
|
|
|||
Loading…
Reference in New Issue