From 733145f0ed5cb49fd1a378fd838c4f2db4089a42 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Thu, 17 Jul 2025 10:44:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9A=82=E5=81=9C/=E5=81=9C=E6=AD=A2?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Index/Index.vue | 54 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/src/pages/Index/Index.vue b/src/pages/Index/Index.vue index 7475c67..58a3cf9 100644 --- a/src/pages/Index/Index.vue +++ b/src/pages/Index/Index.vue @@ -331,6 +331,28 @@ @confirm="confirmFail" /> + + { } } -// 暂停测试 -const pauseTest = async () => { - await ElMessageBox.confirm('是否暂停测试?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - }) +const showPauseModal = ref(false) + +const handlePauseConfirm = async () => { + showPauseModal.value = false; deviceWaitingModelInfo.value = { title: '设备正在响应中', message: '请不要有任何手动操作!', @@ -989,13 +1008,15 @@ const pauseTest = async () => { } } -// 停止测试时清除标记 -const stopTest = async () => { - await ElMessageBox.confirm('是否停止测试?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - }) +// 暂停测试 +const pauseTest = async () => { + showPauseModal.value = true; +} + +const showStopModal = ref(false) + +const handleStopConfirm = async () => { + showStopModal.value = false deviceWaitingModelInfo.value = { title: '设备正在响应中', message: '请不要有任何手动操作!', @@ -1009,6 +1030,11 @@ const stopTest = async () => { res && res.data && res.data.info && eMessage.error(res.data.info) } } + +// 停止测试时清除标记 +const stopTest = async () => { + showStopModal.value = true +} //继续测试 const continueTest = async () => { deviceWaitingModelInfo.value = {