This commit is contained in:
root 2025-12-09 13:37:39 +08:00
commit c00fdf19b6
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -332,6 +332,18 @@ const generatePDF = async () => {
ElMessage.error(`报告生成失败:${e.message}`)
}
};
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}`;
}
</script>
<style scoped>