|
|
@ -54,12 +54,12 @@
|
|
|
|
shiro:hasPermission="manage:record_inspection_img:remove">
|
|
|
|
shiro:hasPermission="manage:record_inspection_img:remove">
|
|
|
|
<i class="fa fa-remove"></i> 删除
|
|
|
|
<i class="fa fa-remove"></i> 删除
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()"
|
|
|
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()"-->
|
|
|
|
shiro:hasPermission="manage:record_inspection_img:export">
|
|
|
|
<!-- shiro:hasPermission="manage:record_inspection_img:export">-->
|
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
|
<!-- <i class="fa fa-download"></i> 导出-->
|
|
|
|
</a>
|
|
|
|
<!-- </a>-->
|
|
|
|
|
|
|
|
|
|
|
|
<a class="btn btn-warning multiple disabled" onclick="$.operate.edit()"
|
|
|
|
<a class="btn btn-warning multiple disabled" onclick="downloadItem()"
|
|
|
|
shiro:hasPermission="manage:record_inspection_img:edit">
|
|
|
|
shiro:hasPermission="manage:record_inspection_img:edit">
|
|
|
|
<i class="fa fa-edit"></i> 下载
|
|
|
|
<i class="fa fa-edit"></i> 下载
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
@ -139,6 +139,25 @@
|
|
|
|
console.log(search)
|
|
|
|
console.log(search)
|
|
|
|
return 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') )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|