diff --git a/frontend/src/views/home/components/compareTest.vue b/frontend/src/views/home/components/compareTest.vue index 4ab1e71..138e197 100644 --- a/frontend/src/views/home/components/compareTest.vue +++ b/frontend/src/views/home/components/compareTest.vue @@ -396,7 +396,7 @@ watch( setLogList('error', '设备主动关闭连接!') stopTimeCount() break - case 'yjc_xyjy' : + case 'yjc_xyjy' : switch (newValue.operateCode) { case 'INIT_GATHER$03': ElMessageBox.alert('重复的初始化操作!', '检测失败', { @@ -407,6 +407,17 @@ watch( stopTimeCount() } break; + case 'yjc_sbtxjy' : + switch (newValue.operateCode) { + case 'INIT_GATHER$02': + ElMessageBox.alert('重复的初始化操作!', '检测失败', { + confirmButtonText: '确定', + type: 'error', + }) + setLogList('error', '重复的初始化操作!') + stopTimeCount() + } + break; } if (checkStore.selectTestItems.preTest == false && newValue.requestId != 'formal_real') { if (testLogList[0].log == '正在检测,请稍等...' || testLogList[0].log == '暂无数据,等待检测开始') { @@ -439,6 +450,7 @@ watch( stopTimeCount() if (newValue.requestId == 'YJC_xujy') setLogList('info', '初始化失败!') break + } } // 预监测 正式检测