From 899b68e8f57cc66f0018d9f5b474a3b09359f0c3 Mon Sep 17 00:00:00 2001 From: wanghao Date: Tue, 12 Nov 2024 17:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9C=BA=E4=BD=8D?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../record_inspection_img.html | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/ruoyi-manage/src/main/resources/templates/manage/record_inspection_img/record_inspection_img.html b/ruoyi-manage/src/main/resources/templates/manage/record_inspection_img/record_inspection_img.html index e5e8045..e20ab41 100644 --- a/ruoyi-manage/src/main/resources/templates/manage/record_inspection_img/record_inspection_img.html +++ b/ruoyi-manage/src/main/resources/templates/manage/record_inspection_img/record_inspection_img.html @@ -54,12 +54,12 @@ shiro:hasPermission="manage:record_inspection_img:remove"> 删除 - - 导出 - + + + + - 下载 @@ -139,6 +139,25 @@ console.log(search) return search; } + + function downloadItem() { + table.set(); + var rows = $.table.selectColumns("imgPath"); + var length = rows.length; + if (length == 0) { + $.modal.alertWarning("请至少选择一条记录"); + return; + } + console.log(rows) + $.modal.confirm("确认要下载选中的" + rows.length + "条数据吗?", function() { + // var url = table.options.exportUrl; + // var data = { "ids": rows.join() }; + // $.operate.submit(url, "post", "json", data); + rows.forEach(item => window.open(ctx + "common/download/resource?resource=" + item,'_blank') ) + + + }); + } \ No newline at end of file