From 1e77e93d79d8fcaabd023f5d10a13e199d28b0ef Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Tue, 9 Dec 2025 11:25:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/src/views/PopUpReport.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/renderer/src/views/PopUpReport.vue b/frontend/src/renderer/src/views/PopUpReport.vue index 5de75fda..1a37033d 100644 --- a/frontend/src/renderer/src/views/PopUpReport.vue +++ b/frontend/src/renderer/src/views/PopUpReport.vue @@ -334,6 +334,18 @@ const generatePDF = async () => { URL.revokeObjectURL(url); emit("closePopUpReport",false) }; +function getFormattedTime() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份从0开始需+1 + const day = String(now.getDate()).padStart(2, '0'); + const hours = String(now.getHours()).padStart(2, '0'); // 24小时制 + const minutes = String(now.getMinutes()).padStart(2, '0'); + const seconds = String(now.getSeconds()).padStart(2, '0'); + + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; +} +