From f1233c85d7d929e5053920420e56da54a8f5e7df Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 12 Jan 2023 17:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=AD=90=E8=A1=A8=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E5=BA=8F=E5=8F=B7=E5=88=A0=E9=99=A4=E6=96=B9=E6=B3=95=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E8=A1=A8=E6=A0=BCID=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/ruoyi/js/common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js index e3b7a97aa..ff61d727e 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js @@ -465,9 +465,10 @@ var sub = { } $("#" + table.options.id).bootstrapTable('remove', { field: subColumn, values: ids }); }, - delRowByIndex: function(value) { + delRowByIndex: function(value, tableId) { + var currentId = $.common.isEmpty(tableId) ? table.options.id : tableId; sub.editRow(); - $("#" + table.options.id).bootstrapTable('remove', { field: "index", values: [value] }); + $("#" + currentId).bootstrapTable('remove', { field: "index", values: [value] }); sub.editRow(); }, addRow: function(row, tableId) {