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