style: 操作日志信息json结构格式美化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user