From 72c0f86c75c8a9a5eb7435d72b6ebece4c5382e8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 14 四月 2026 18:21:27 +0800
Subject: [PATCH] feat: 添加vue3-json-viewer并优化日志显示

---
 Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Log.vue |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Log.vue b/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Log.vue
index 03f4341..fde37f0 100644
--- a/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Log.vue
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/system/Sys_Log.vue
@@ -138,6 +138,13 @@
         type: "string",
         width: 120,
         align: "left",
+        formatter: (row) => {
+          if (!row.requestParam) return '-';
+          const preview = row.requestParam.length > 50
+            ? row.requestParam.substring(0, 50) + '...'
+            : row.requestParam;
+          return `<span style="color: #409EFF; cursor: pointer;">${preview}</span>`;
+        }
       },
       {
         field: "responseParam",
@@ -145,6 +152,13 @@
         type: "string",
         width: 120,
         align: "left",
+        formatter: (row) => {
+          if (!row.responseParam) return '-';
+          const preview = row.responseParam.length > 50
+            ? row.responseParam.substring(0, 50) + '...'
+            : row.responseParam;
+          return `<span style="color: #409EFF; cursor: pointer;">${preview}</span>`;
+        }
       },
       {
         field: "exceptionInfo",

--
Gitblit v1.9.3