diff --git a/public/assets/js/require-backend.min.js b/public/assets/js/require-backend.min.js index ccc13a3..1ba743b 100644 --- a/public/assets/js/require-backend.min.js +++ b/public/assets/js/require-backend.min.js @@ -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() || {}); }); }); // 批量操作按钮事件 diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index 00cc0b3..517c449 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -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() || {}); }); }); // 批量操作按钮事件