10550处理

This commit is contained in:
sjl
2025-10-15 13:33:40 +08:00
parent 2e377bcca2
commit ca8f173394
2 changed files with 66 additions and 3 deletions

View File

@@ -459,7 +459,11 @@ watch(
setLogList('error', '设备主动关闭连接!')
stopTimeCount()
break
case 'yjc_xyjy' :
case 'yjc_xyjy' :
if(newValue.code == 10550){
setLogList('error', '协议校验时,设备连接异常!')
stopTimeCount()
}
if (newValue.code == 10552) {
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
confirmButtonText: '确定',
@@ -469,7 +473,11 @@ watch(
stopTimeCount()
}
break;
case 'yjc_sbtxjy' :
case 'yjc_sbtxjy' :
if(newValue.code == 10550){
setLogList('error', '设备通讯校验时,设备连接异常!')
stopTimeCount()
}
if (newValue.code == 10552) {
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
confirmButtonText: '确定',
@@ -511,7 +519,13 @@ watch(
stopTimeCount()
if (newValue.requestId == 'YJC_xujy') setLogList('info', '初始化失败!')
break
case 10550:
setLogList('error', str +'时,设备连接异常!')
emit('update:testStatus', 'error')
stopTimeCount()
break
}
}
// 预监测 正式检测
@@ -630,12 +644,16 @@ watch(
}
break
}
case 25003:
setLogList('error', '检测失败!')
stopTimeCount()
updatePercentage()
break
case 10550:
setLogList('error', '设备连接异常!')
stopTimeCount()
updatePercentage()
break
default:
if (newValue.code != 10201) {
setLogList(newValue.code == 10200 ? 'info' : 'error', newValue.data)