diff --git a/frontend/src/views/home/components/comparePreTest.vue b/frontend/src/views/home/components/comparePreTest.vue index c455c62..b3caa27 100644 --- a/frontend/src/views/home/components/comparePreTest.vue +++ b/frontend/src/views/home/components/comparePreTest.vue @@ -218,7 +218,7 @@ watch(webMsgSend, function (newValue, oldValue) { if (newValue.code == 10200) { step1InitLog.value.push({ type: 'info', - log: newValue.data + '设备通讯校验成功!', + log: newValue.data, }) } else if (newValue.code == 10201) { @@ -249,6 +249,44 @@ watch(webMsgSend, function (newValue, oldValue) { step2.value = 'process' } break; + case 'INIT_GATHER$03': + if (newValue.code == 10200) { + step1InitLog.value.push({ + type: 'info', + log: newValue.data, + }) + }else if (newValue.code == 25001) { + step1InitLog.value.push({ + type: 'info', + log: newValue.data, + }) + activeIndex.value = 1 + step1.value = 'success' + step2.value = 'process' + } + break; + case 'DATA_REQUEST$03': + if (newValue.code == 25001) { + activeIndex.value = 1 + step1.value = 'success' + step2.value = 'process' + } + break; + } + break; + case 'record_wave_step2': + switch (newValue.operateCode) { + case 'DATA_REQUEST$03': + if (newValue.code == 25002) { //某一路录波校验失败 + step1InitLog.value.push({ + type: 'error', + log: newValue.data , + }) + }else if (newValue.code == 25003) { //最终失败 + step1.value = 'error' + ts.value = 'error' + step5.value = 'error' + } } break; case 'yjc_mxyzxjy':