From ca99b94ae3769486502bb6157a631c8e3fc2f442 Mon Sep 17 00:00:00 2001
From: root <295172551@qq.com>
Date: Sun, 22 Jun 2025 06:22:37 +0800
Subject: [PATCH] 1
---
LTEMvcApp/Views/Home/Logs.cshtml | 52 +++++++-------------------------
1 file changed, 11 insertions(+), 41 deletions(-)
diff --git a/LTEMvcApp/Views/Home/Logs.cshtml b/LTEMvcApp/Views/Home/Logs.cshtml
index 13350c5..62cd933 100644
--- a/LTEMvcApp/Views/Home/Logs.cshtml
+++ b/LTEMvcApp/Views/Home/Logs.cshtml
@@ -352,10 +352,10 @@
const { timestamp, title: timestampTitle } = getDisplayTimestamp(log);
return `
${timestamp}
- ${log.layer || ''}
- ${formatDirection(log.direction)}
- ${log.message || ''}
- ${log.info || ''}
+ ${log.Layer || ''}
+ ${formatDirection(log.Direction)}
+ ${log.Message || ''}
+ ${log.Info || ''}
`;
}
@@ -386,50 +386,20 @@
function showLogDetail(index) {
const log = allLogsData[index];
if (!log) return;
-
+
detailPlaceholder.classList.add('d-none');
-
- const { timestamp, note: timestampNote } = getDisplayTimestamp(log);
+
+ const dataContent = (log.Data && Array.isArray(log.Data) && log.Data.length > 0)
+ ? log.Data.join('\n')
+ : 'N/A';
const detailHtml = `
-
-
Timestamp
-
${timestamp}${timestampNote}
-
-
-
Layer
-
${log.layer || 'N/A'}
-
-
-
Direction
-
${formatDirection(log.direction)} (${log.direction})
-
-
-
UeId
-
${log.ueId || 'N/A'}
-
-
-
Rnti
-
${log.rnti || 'N/A'}
-
-
-
Client
-
${log.client || 'N/A'}
-
-
-
Message
-
${log.message || ''}
-
-
-
Info
-
${log.info || ''}
-
Data
-
${log.data || 'N/A'}
+
${dataContent}
`;
-
+
detailContent.innerHTML = '日志详情
' + detailHtml;
detailContent.classList.remove('d-none');
}