From c30bb4415388272080dc1c8d731e4d2547b595d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com>
Date: Fri, 4 Jul 2025 20:17:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=20=E5=8E=BB=E6=8E=89=E6=B5=8B=E8=AF=95=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95=E7=9A=84=E5=B1=8F=E8=94=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/setting/History.vue | 27 ++++++++++++++++++++++++---
src/components/setting/HistoryDetail.vue | 2 +-
src/router/routes.ts | 10 +++++-----
3 files changed, 30 insertions(+), 9 deletions(-)
diff --git a/src/components/setting/History.vue b/src/components/setting/History.vue
index e65932d..082f598 100644
--- a/src/components/setting/History.vue
+++ b/src/components/setting/History.vue
@@ -46,6 +46,18 @@ const showDetail = (historyItem: Setting.History) => {
visible.value = true
})
}
+const printDetail = (historyItem: Setting.History) => {
+ const detailParams = {
+ className: 'DisinfectionLogsService',
+ fnName: 'printRecord',
+ params: {
+ logName: historyItem.name,
+ },
+ }
+ syncSendCmd(detailParams).then(() => {
+ visible.value = true
+ })
+}
const onDelHistory = () => {
if (!selectedRecords.value.length) {
FtMessage.warning('请选择要删除的数据')
@@ -115,12 +127,13 @@ const deleteBtnVisible = computed(() => {
-
+
查看
+ 打印
@@ -135,6 +148,10 @@ const deleteBtnVisible = computed(() => {