10550处理
This commit is contained in:
@@ -266,8 +266,26 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
step1.value = 'success'
|
step1.value = 'success'
|
||||||
step2.value = 'process'
|
step2.value = 'process'
|
||||||
}
|
}
|
||||||
|
if(newValue.code == 10550){
|
||||||
|
step1InitLog.value = [{
|
||||||
|
type: 'error',
|
||||||
|
log: '设备通讯校验时,设备连接异常!',
|
||||||
|
}];
|
||||||
|
step1.value = 'error'
|
||||||
|
ts.value = 'error'
|
||||||
|
step5.value = 'error'
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'record_wave_step1':
|
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) { //某一路录波校验失败
|
if (newValue.code == 25002) { //某一路录波校验失败
|
||||||
step1InitLog.value.push({
|
step1InitLog.value.push({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@@ -293,6 +311,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
log: '正在进行模型一致性校验.....',
|
log: '正在进行模型一致性校验.....',
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
if(newValue.code == 10550){
|
||||||
|
step2InitLog.value = [{
|
||||||
|
type: 'error',
|
||||||
|
log: '模型一致性校验时,设备连接异常!',
|
||||||
|
}];
|
||||||
|
step2.value = 'error'
|
||||||
|
ts.value = 'error'
|
||||||
|
step5.value = 'error'
|
||||||
|
}
|
||||||
if (newValue.code == 25002) { //单个监测点失败
|
if (newValue.code == 25002) { //单个监测点失败
|
||||||
step2InitLog.value.push({
|
step2InitLog.value.push({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@@ -324,6 +351,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
log: '正在进行数据对齐检验.....',
|
log: '正在进行数据对齐检验.....',
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
if(newValue.code == 10550){
|
||||||
|
step3InitLog.value = [{
|
||||||
|
type: 'error',
|
||||||
|
log: '实时数据对齐时,设备连接异常!',
|
||||||
|
}];
|
||||||
|
step3.value = 'error'
|
||||||
|
ts.value = 'error'
|
||||||
|
step5.value = 'error'
|
||||||
|
}
|
||||||
if (newValue.code == 25002) { //单个监测点失败
|
if (newValue.code == 25002) { //单个监测点失败
|
||||||
|
|
||||||
step3InitLog.value.push({
|
step3InitLog.value.push({
|
||||||
@@ -361,6 +397,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
log: '正在进行相序性检.....',
|
log: '正在进行相序性检.....',
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
if(newValue.code == 10550){
|
||||||
|
step4InitLog.value = [{
|
||||||
|
type: 'error',
|
||||||
|
log: '相序校验时,设备连接异常!',
|
||||||
|
}];
|
||||||
|
step4.value = 'error'
|
||||||
|
ts.value = 'error'
|
||||||
|
step5.value = 'error'
|
||||||
|
}
|
||||||
if (newValue.code == 25002) {
|
if (newValue.code == 25002) {
|
||||||
step4InitLog.value.push({
|
step4InitLog.value.push({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|||||||
@@ -459,7 +459,11 @@ watch(
|
|||||||
setLogList('error', '设备主动关闭连接!')
|
setLogList('error', '设备主动关闭连接!')
|
||||||
stopTimeCount()
|
stopTimeCount()
|
||||||
break
|
break
|
||||||
case 'yjc_xyjy' :
|
case 'yjc_xyjy' :
|
||||||
|
if(newValue.code == 10550){
|
||||||
|
setLogList('error', '协议校验时,设备连接异常!')
|
||||||
|
stopTimeCount()
|
||||||
|
}
|
||||||
if (newValue.code == 10552) {
|
if (newValue.code == 10552) {
|
||||||
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
|
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
@@ -469,7 +473,11 @@ watch(
|
|||||||
stopTimeCount()
|
stopTimeCount()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'yjc_sbtxjy' :
|
case 'yjc_sbtxjy' :
|
||||||
|
if(newValue.code == 10550){
|
||||||
|
setLogList('error', '设备通讯校验时,设备连接异常!')
|
||||||
|
stopTimeCount()
|
||||||
|
}
|
||||||
if (newValue.code == 10552) {
|
if (newValue.code == 10552) {
|
||||||
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
|
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
@@ -511,6 +519,12 @@ watch(
|
|||||||
stopTimeCount()
|
stopTimeCount()
|
||||||
if (newValue.requestId == 'YJC_xujy') setLogList('info', '初始化失败!')
|
if (newValue.requestId == 'YJC_xujy') setLogList('info', '初始化失败!')
|
||||||
break
|
break
|
||||||
|
case 10550:
|
||||||
|
setLogList('error', str +'时,设备连接异常!')
|
||||||
|
|
||||||
|
emit('update:testStatus', 'error')
|
||||||
|
stopTimeCount()
|
||||||
|
break
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -630,12 +644,16 @@ watch(
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
case 25003:
|
case 25003:
|
||||||
setLogList('error', '检测失败!')
|
setLogList('error', '检测失败!')
|
||||||
stopTimeCount()
|
stopTimeCount()
|
||||||
updatePercentage()
|
updatePercentage()
|
||||||
break
|
break
|
||||||
|
case 10550:
|
||||||
|
setLogList('error', '设备连接异常!')
|
||||||
|
stopTimeCount()
|
||||||
|
updatePercentage()
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
if (newValue.code != 10201) {
|
if (newValue.code != 10201) {
|
||||||
setLogList(newValue.code == 10200 ? 'info' : 'error', newValue.data)
|
setLogList(newValue.code == 10200 ? 'info' : 'error', newValue.data)
|
||||||
|
|||||||
Reference in New Issue
Block a user