From 3432f8535758066d23ea1695bd94f0ae465f09ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 9 Jan 2025 17:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=93=E5=8D=B0=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RecordInspectionController.java | 8 + .../manage/record_inspection/print.html | 140 ++++++++++++++++++ .../record_inspection/record_inspection.html | 7 +- 3 files changed, 153 insertions(+), 2 deletions(-) create mode 100644 ruoyi-manage/src/main/resources/templates/manage/record_inspection/print.html diff --git a/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java b/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java index 490b91d..74eaf4b 100644 --- a/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java +++ b/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java @@ -103,6 +103,14 @@ public class RecordInspectionController extends BaseController { return prefix + "/add"; } + /** + * 打印页面 + */ + @GetMapping("/printHtml") + public String print() { + return prefix + "/print"; + } + /** * 新增保存巡检记录 */ diff --git a/ruoyi-manage/src/main/resources/templates/manage/record_inspection/print.html b/ruoyi-manage/src/main/resources/templates/manage/record_inspection/print.html new file mode 100644 index 0000000..acb8de9 --- /dev/null +++ b/ruoyi-manage/src/main/resources/templates/manage/record_inspection/print.html @@ -0,0 +1,140 @@ + + + + + + + +
+
+
+
巡检时间:2020-00-00 00:00:00
+
巡检数量:11
+
正常数量:11
+
异常数量:11
+
跳过数量:11
+
+
+
+
+
机坪名称:1号坪近机位
+
机位码:111
+
完成状态:已完成
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
机坪名称:1号坪近机位
+
机位码:111
+
完成状态:已完成
+
+
+
+
+ +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-manage/src/main/resources/templates/manage/record_inspection/record_inspection.html b/ruoyi-manage/src/main/resources/templates/manage/record_inspection/record_inspection.html index 27a4ca3..002d606 100644 --- a/ruoyi-manage/src/main/resources/templates/manage/record_inspection/record_inspection.html +++ b/ruoyi-manage/src/main/resources/templates/manage/record_inspection/record_inspection.html @@ -148,7 +148,6 @@ }, columns: [ - { title: '序号', formatter: function (value, row, index) { @@ -183,9 +182,13 @@ // 选中数据 function checkItem() { var arrays = $.table.selectColumns("inspectionId"); + $.modal.openFull('打印','/manage/record_inspection/printHtml?ids='+arrays.toString()); // alert(arrays); var data = {"ids": arrays.toString()}; - $.operate.submit(prefix + "/print", "get", "json", data); + // $.operate.submit(prefix + "/print", "get", "json", data); + // $.get(prefix + "/print",data,(e)=>{ + // console.log(e) + // }) }