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) + // }) }