10550处理
This commit is contained in:
@@ -266,8 +266,26 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
step1.value = 'success'
|
||||
step2.value = 'process'
|
||||
}
|
||||
if(newValue.code == 10550){
|
||||
step1InitLog.value = [{
|
||||
type: 'error',
|
||||
log: '设备通讯校验时,设备连接异常!',
|
||||
}];
|
||||
step1.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
break;
|
||||
case 'record_wave_step1':
|
||||
if(newValue.code == 10550){
|
||||
step1InitLog.value = [{
|
||||
type: 'error',
|
||||
log: '录波校验时,设备连接异常!',
|
||||
}];
|
||||
step1.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
if (newValue.code == 25002) { //某一路录波校验失败
|
||||
step1InitLog.value.push({
|
||||
type: 'error',
|
||||
@@ -293,6 +311,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
log: '正在进行模型一致性校验.....',
|
||||
}];
|
||||
}
|
||||
if(newValue.code == 10550){
|
||||
step2InitLog.value = [{
|
||||
type: 'error',
|
||||
log: '模型一致性校验时,设备连接异常!',
|
||||
}];
|
||||
step2.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
if (newValue.code == 25002) { //单个监测点失败
|
||||
step2InitLog.value.push({
|
||||
type: 'error',
|
||||
@@ -324,6 +351,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
log: '正在进行数据对齐检验.....',
|
||||
}];
|
||||
}
|
||||
if(newValue.code == 10550){
|
||||
step3InitLog.value = [{
|
||||
type: 'error',
|
||||
log: '实时数据对齐时,设备连接异常!',
|
||||
}];
|
||||
step3.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
if (newValue.code == 25002) { //单个监测点失败
|
||||
|
||||
step3InitLog.value.push({
|
||||
@@ -361,6 +397,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
log: '正在进行相序性检.....',
|
||||
}];
|
||||
}
|
||||
if(newValue.code == 10550){
|
||||
step4InitLog.value = [{
|
||||
type: 'error',
|
||||
log: '相序校验时,设备连接异常!',
|
||||
}];
|
||||
step4.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
if (newValue.code == 25002) {
|
||||
step4InitLog.value.push({
|
||||
type: 'error',
|
||||
|
||||
@@ -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