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 @@ + + +
+