diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 3b0a71b..2352d43 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -48,8 +48,9 @@ 继续检测 @@ -347,6 +348,17 @@ watch(webMsgSend, function (newValue, oldValue) { emit('update:testStatus', 'test_recheck') } else { switch (newValue.requestId) { + case 'formal_real': // 正式测试 + switch (newValue.operateCode) { + case "stop_timeout": + ElMessageBox.alert(`暂停时间已过10分钟,本次检测已失效,请重新发起检测!`, '暂停时间过长', { + confirmButtonText: '确定', + type: 'error', + }) + emit('update:testStatus', 'pause_timeout') + break; + } + break; case 'error_flow_end': ElMessageBox.alert(`设备连接异常,请检查设备连接情况!`, '初始化失败', { confirmButtonText: '确定', diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue index 792f021..9aab531 100644 --- a/frontend/src/views/home/components/testPopup.vue +++ b/frontend/src/views/home/components/testPopup.vue @@ -49,7 +49,7 @@ 暂停中 {{ nextStepText }} @@ -372,6 +372,11 @@ watch(ActiveStatue, function (newValue, oldValue) { stepsActiveIndex.value++; nextStepText.value = '连接超时' } + if (newValue === 'pause_timeout' && stepsActiveIndex.value === stepsTotalNum.value - 2) { + stepsActiveIndex.value++; + stepsActiveIndex.value++; + nextStepText.value = '结束测试' + } }) const sendPause = () => {