From d9608d5bd67625bbc188afd324f966872dda1db5 Mon Sep 17 00:00:00 2001 From: xlsea Date: Mon, 22 Jan 2024 10:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=8C=89=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=88=B3=E6=AD=A3=E5=BA=8F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/job/JobBatchLog.vue | 41 +++++++++++++------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/frontend/src/views/job/JobBatchLog.vue b/frontend/src/views/job/JobBatchLog.vue index 99e9ff2a..e84364c7 100644 --- a/frontend/src/views/job/JobBatchLog.vue +++ b/frontend/src/views/job/JobBatchLog.vue @@ -9,28 +9,28 @@
- - - + + - + +
- {{ index + 1 }} - -
-
-
-
{{ timestampToDate(log.time_stamp) }}
-
- {{ log.level.length === 4 ? log.level + ' ' : log.level }} +
+ {{ index + 1 }} + +
+
+
+
{{ timestampToDate(log.time_stamp) }}
+
+ {{ log.level.length === 4 ? log.level + ' ' : log.level }} +
+
[{{ log.thread }}]
+
{{ log.location }}
+
:
-
[{{ log.thread }}]
-
{{ log.location }}
-
:
+
{{ log.message }}
+
{{ log.throwable }}
-
{{ log.message }}
-
{{ log.throwable }}
- -
@@ -135,6 +135,7 @@ export default { this.fromIndex = res.data.fromIndex if (res.data.message) { this.logList.push(...res.data.message) + this.logList.sort((a, b) => a.time_stamp - b.time_stamp) } }) .catch(() => { @@ -153,7 +154,7 @@ export default { const hours = date.getHours() const minutes = date.getMinutes().toString().length === 1 ? '0' + date.getMinutes() : date.getMinutes().toString() const seconds = date.getSeconds().toString().length === 1 ? '0' + date.getSeconds() : date.getSeconds().toString() - return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}` + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}.${date.getMilliseconds()}` } } }