From 726f7841e880368e055febb6af4b93732d5b3aca Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Wed, 11 Dec 2024 19:12:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=98=BE=E7=A4=BA=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/test.vue | 37 +++++++++++++++++---- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 32e3b3d..028ffe7 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -11,8 +11,8 @@ 暂停检测 --> -
+
@@ -628,7 +628,6 @@ const updateLog = () => { }) break; } - scrollToBottom(); } const testLogList = ref([ @@ -732,10 +731,27 @@ const handleReCheck = () => { }; let timer: any = ref(""); const handlePauseTest = () => { + const currentTime = ref(new Date().toLocaleString()); if (!isPause.value) { + endData.value = new Date(); + const Pausetime = endData.value.getTime() - startData.value.getTime(); + timeDifference.value += Pausetime + + testLogList.value.push({ + type: 'info', + log:currentTime.value + ':暂停检测', + }) + pauseTimer() } else { + startData.value = new Date(); + + testLogList.value.push({ + type: 'info', + log:currentTime.value + ':继续检测', + }) + resumeTimer() } isPause.value = !isPause.value; @@ -2205,19 +2221,28 @@ watch(ts, function (newValue, oldValue) { margin-right:10px; margin-bottom:10px; } + .dialog-content{ max-height: 450px; overflow-y: auto; } +:deep(.el-collapse-item__header){ + height: 30px; + } + .dialog-log{ - max-height: 50px; + height: 50px; overflow-y: auto; // flex-grow: 1; // display: flex; // flex-direction: column-reverse; -} + p { + margin: 5px 0; + font-size: 14px; + } +}