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 = {