From f7a9258473e27adc529a9402ac6f4fd6d128fcb2 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 13 Oct 2025 17:33:22 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=BF=A1=E6=81=AFjson=E7=BB=93=E6=9E=84=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/job/log.vue | 7 +++++++ src/views/system/log/operate/index.vue | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue index 991cba3f..f2a561e0 100644 --- a/src/views/monitor/job/log.vue +++ b/src/views/monitor/job/log.vue @@ -246,6 +246,13 @@ let modalState: ModalStateType = reactive({ */ function fnModalVisibleByVive(row: Record) { modalState.from = Object.assign(modalState.from, row); + try { + modalState.from.jobMsg = JSON.stringify( + JSON.parse(modalState.from.jobMsg), + null, + 4 + ); + } catch (_) {} modalState.title = t('views.monitor.jobLog.viewLog'); modalState.open = true; } diff --git a/src/views/system/log/operate/index.vue b/src/views/system/log/operate/index.vue index bdf8221e..91577be6 100644 --- a/src/views/system/log/operate/index.vue +++ b/src/views/system/log/operate/index.vue @@ -254,6 +254,20 @@ let modalState: ModalStateType = reactive({ */ function fnModalVisibleByVive(row: Record) { modalState.from = Object.assign(modalState.from, row); + try { + modalState.from.operParam = JSON.stringify( + JSON.parse(modalState.from.operParam), + null, + 4 + ); + } catch (_) {} + try { + modalState.from.operMsg = JSON.stringify( + JSON.parse(modalState.from.operMsg), + null, + 4 + ); + } catch (_) {} modalState.title = t('views.system.log.operate.logInfo'); modalState.openByView = true; }