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'); }