From 5e851678cc02257bbbd179446de36082430ca5bc Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 13 四月 2026 15:12:04 +0800
Subject: [PATCH] feat(MES): 添加Mes_Log扩展逻辑
---
Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Log.vue | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Log.vue b/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Log.vue
index 67e913d..a03baa0 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Log.vue
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/system/Sys_Log.vue
@@ -19,7 +19,7 @@
</view-grid>
</template>
<script>
-import extend from "@/extension/system/Sys_Log.js";
+import extend from "@/extension/system/Sys_Log.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
setup() {
@@ -62,7 +62,7 @@
field: "beginDate",
title: "寮�濮嬫椂闂�",
type: "datetime",
- width: 140,
+ width: 70,
align: "left",
sortable: true,
},
@@ -70,7 +70,7 @@
field: "elapsedTime",
title: "鏃堕暱",
type: "int",
- width: 60,
+ width: 40,
align: "left",
},
{
@@ -86,15 +86,29 @@
field: "requestParam",
title: "璇锋眰鍙傛暟",
type: "string",
- width: 70,
+ width: 150,
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",
title: "鍝嶅簲鍙傛暟",
type: "string",
- width: 70,
+ width: 150,
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: "url",
@@ -153,5 +167,4 @@
};
},
});
-</script>
-
\ No newline at end of file
+</script>
\ No newline at end of file
--
Gitblit v1.9.3