From 7cabf4a3b50cbb1447683d6b8a9b923225d95bb0 Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 14 Nov 2024 13:56:53 +0800 Subject: [PATCH] =?UTF-8?q?tableData=E5=A2=9E=E5=8A=A0=E6=89=93=E5=BC=80?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=82=E6=95=B0=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/plugs/lay-module/tableData/tableData.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/public/static/plugs/lay-module/tableData/tableData.js b/public/static/plugs/lay-module/tableData/tableData.js index ca4be23..dbd6ca9 100644 --- a/public/static/plugs/lay-module/tableData/tableData.js +++ b/public/static/plugs/lay-module/tableData/tableData.js @@ -53,9 +53,19 @@ } else { options.index += '?'; } - options.index += 'select_mode=' + options.selectType; + if(!options.selectIndex){ + options.selectIndex = options.index; + }else{ + if (options.selectIndex.indexOf('?') > -1) { + options.selectIndex += '&'; + } else { + options.selectIndex += '?'; + } + options.selectIndex += 'select_mode=' + options.selectType; + } + if (options.type == 'textarea') { options.className = 'layui-textarea'; } @@ -143,7 +153,7 @@ title: '选择数据', type: 2, area: [options.width, options.height], - content: options.index + '&selectedIds=' + selectedIds.join(','), + content: options.selectIndex + '&selectedIds=' + selectedIds.join(','), maxmin: true, moveOut: true, shadeClose: true,