From 6e468089ea1a9a96e38daa80ca889188b3f18f8a Mon Sep 17 00:00:00 2001 From: haoliang <821644@qq.com> Date: Tue, 5 May 2026 17:16:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E9=87=87=E9=9B=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=A1=B5=E9=9D=A2=20+=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=86=E5=8C=BA=E5=AD=98=E5=82=A8=E8=BF=87=E7=A8=8B=20+=20?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=B8=85=E7=90=86=E8=B0=83=E5=BA=A6=20+=20?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=E7=B1=BB=E5=9E=8B=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 CollectLogPage.vue(分析记录/采集周期/原始数据 三个Tab页) - 新增 collect-log.ts API封装和Mock数据 - 路由和侧边栏菜单添加采集日志入口 - 新增 sp_ensure_partitions 自动分区存储过程 + MariaDB Event - 新增 LogCleanupJob 日志清理定时任务(保留天数=0不删除) - CollectorConfig 新增日志清理配置属性 - AlertType 新增 DataAnomaly 常量 - 后端0错误,前端仅1个预存TS错误 --- frontend/src/views/collect-log/CollectLogPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/collect-log/CollectLogPage.vue b/frontend/src/views/collect-log/CollectLogPage.vue index 54fd490..51c3505 100644 --- a/frontend/src/views/collect-log/CollectLogPage.vue +++ b/frontend/src/views/collect-log/CollectLogPage.vue @@ -220,7 +220,7 @@ function analysisTypeTag(type: string) { return map[type] || 'info' } -function analysisTypeLabel(type: string) { +function analysisTypeLabel(type: string | undefined) { const map: Record = { NORMAL_UNCHANGED: '正常未变', PART_COUNT_INCREASE: '产量增减', @@ -232,7 +232,7 @@ function analysisTypeLabel(type: string) { DATA_ANOMALY: '数据异常', COLLECTION_FAILED: '采集失败', } - return map[type] ?? type + return type ? (map[type] ?? type) : '未知' } function viewAnalysis(row: CollectAnalysis) {