From 20c7963e22e332e5ac6adaace0721d275754d93b Mon Sep 17 00:00:00 2001 From: Karson Date: Mon, 4 Sep 2017 21:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=BC=96=E8=BE=91=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/require-backend.min.js | 3 ++- public/assets/js/require-table.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/assets/js/require-backend.min.js b/public/assets/js/require-backend.min.js index ccc13a32..1ba743be 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 00cc0b31..517c4498 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() || {}); }); }); // 批量操作按钮事件