处理源未知异常、检测结果最大误差回显

This commit is contained in:
caozehui
2025-01-10 13:49:09 +08:00
parent b614767b2d
commit de8a392d2c
6 changed files with 58 additions and 65 deletions

View File

@@ -383,6 +383,14 @@ watch(webMsgSend, function (newValue, oldValue) {
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:源初始化成功!`})
percentage.value = 1
}
if (newValue.code == -1) {
ElMessageBox.alert('源未知异常!', '初始化失败', {
confirmButtonText: '确定',
type: 'error',
})
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源未知异常!`})
emit('update:testStatus', 'test_init_fail')
}
break;
}
break;
@@ -1066,24 +1074,16 @@ const startTimer = () => {
}, 6000)
break;
case 1:
emit('update:webMsgSend', {
requestId: 'HP_Start',
})
setTimeout(() => {
emit('update:webMsgSend', {
requestId: 'HP_End'
requestId: 'FREQ_Start'
})
}, 2000)
// setTimeout(() => {
// emit('update:webMsgSend', {
// requestId: 'FREQ_Start'
// })
// }, 1000)
// setTimeout(() => {
// emit('update:webMsgSend', {
// requestId: 'FREQ_End'
// })
// }, 2000);
}, 1000)
setTimeout(() => {
emit('update:webMsgSend', {
requestId: 'FREQ_End'
})
}, 2000);
break;
case 2:
emit('update:webMsgSend', {