diff --git a/static/js/app.js b/static/js/app.js index 01b4bf5..5d35f4b 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -3378,6 +3378,23 @@ function displayModalGroupedQueryLogs(groupedLogs) { const batchTypeMatch = firstLog?.message.match(/开始(\w+)查询批次/); const batchType = batchTypeMatch ? batchTypeMatch[1] : '未知'; + // 提取并格式化查询日期 + const queryDate = firstLog ? new Date(firstLog.timestamp).toLocaleString('zh-CN', { + year: 'numeric', + month: '2-digit', + day: '2-digit', + hour: '2-digit', + minute: '2-digit', + second: '2-digit' + }) : '未知时间'; + + // 简化的日期显示(仅显示日期部分) + const queryDateShort = firstLog ? new Date(firstLog.timestamp).toLocaleDateString('zh-CN', { + year: 'numeric', + month: '2-digit', + day: '2-digit' + }) : '未知'; + // 检查是否有关联的历史记录ID const historyId = firstLog?.history_id; const historyBadge = historyId ? @@ -3393,15 +3410,23 @@ function displayModalGroupedQueryLogs(groupedLogs) {