处理源未知异常、检测结果最大误差回显
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user