style: 操作日志信息json结构格式美化

This commit is contained in:
TsMask
2025-10-13 17:33:22 +08:00
parent 49b78d9933
commit f7a9258473
2 changed files with 21 additions and 0 deletions

View File

@@ -246,6 +246,13 @@ let modalState: ModalStateType = reactive({
*/
function fnModalVisibleByVive(row: Record<string, string>) {
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;
}

View File

@@ -254,6 +254,20 @@ let modalState: ModalStateType = reactive({
*/
function fnModalVisibleByVive(row: Record<string, string>) {
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;
}