10550处理
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user