接口调整
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
<el-collapse-item name="3">
|
||||
<template #title>
|
||||
实时数据对齐验证
|
||||
<el-icon class="title-icon" @click="openDialog"><InfoFilled/></el-icon>
|
||||
<el-icon class="title-icon" @click="openDialog" v-if="isShowDialog"><InfoFilled/></el-icon>
|
||||
</template>
|
||||
<div class="div-log">
|
||||
<p v-for="(item, index) in step3InitLog" :key="index"
|
||||
@@ -84,6 +84,7 @@
|
||||
import {ElMessage, ElMessageBox, StepProps} from "element-plus";
|
||||
import {defineExpose, PropType, ref, toRef, watch} from 'vue';
|
||||
import RealTimeData from './realTimeDataAlign.vue'
|
||||
import { el } from "element-plus/es/locale";
|
||||
|
||||
const realTimeDataRef = ref()
|
||||
|
||||
@@ -118,7 +119,7 @@ const step4InitLog = ref([
|
||||
|
||||
|
||||
|
||||
|
||||
const isShowDialog = ref(true)
|
||||
const collapseActiveName = ref('1')
|
||||
const activeIndex = ref(0)
|
||||
const activeTotalNum = ref(5)
|
||||
@@ -177,9 +178,7 @@ const ts = ref('');
|
||||
|
||||
watch(webMsgSend, function (newValue, oldValue) {
|
||||
console.log('newValue.requestId', newValue.requestId)
|
||||
console.log('testStatus.value', testStatus.value)
|
||||
if (testStatus.value !== 'waiting') {
|
||||
console.log('newValue.requestId', newValue.requestId)
|
||||
switch (newValue.requestId) {
|
||||
case 'yjc_sbtxjy':
|
||||
switch (newValue.operateCode) {
|
||||
@@ -202,8 +201,8 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
log: newValue.data + '设备连接异常!',
|
||||
})
|
||||
step1.value = 'error'
|
||||
// ts.value = 'error'
|
||||
// step6.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
} else if (newValue.code == 10551) {
|
||||
step1InitLog.value.push({
|
||||
type: 'error',
|
||||
@@ -211,16 +210,15 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
})
|
||||
step1.value = 'error'
|
||||
ts.value = 'error'
|
||||
step6.value = 'error'
|
||||
step5.value = 'error'
|
||||
} else if (newValue.code == 10552) {
|
||||
//ElMessage.error("存在已经初始化步骤,已经自动关闭,请重新发起检测!")
|
||||
step1InitLog.value = [{
|
||||
type: 'wait',
|
||||
type: 'error',
|
||||
log: '存在已经初始化步骤,执行自动关闭,请重新发起检测!',
|
||||
}];
|
||||
step1.value = 'error'
|
||||
ts.value = 'error'
|
||||
step6.value = 'error'
|
||||
step5.value = 'error'
|
||||
} else if (newValue.code == 25001) {
|
||||
activeIndex.value = 1
|
||||
step1.value = 'success'
|
||||
@@ -229,79 +227,88 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'YJC_mxyzxjy':
|
||||
case 'yjc_mxyzxjy':
|
||||
switch (newValue.operateCode){
|
||||
case 'DATA_REQUEST$02':
|
||||
if (newValue.code == 10200) {
|
||||
if (newValue.code == 10200) { //单个监测点成功
|
||||
step2InitLog.value.push({
|
||||
type: 'info',
|
||||
log: '模型一致性检验成功!',
|
||||
})
|
||||
}
|
||||
if (newValue.code == 25001) {
|
||||
}else if (newValue.code == 25002) { //单个监测点失败
|
||||
step2InitLog.value.push({
|
||||
type: 'error',
|
||||
log: '模型一致性检验失败!',
|
||||
})
|
||||
}else if (newValue.code == 25001) { //最终成功
|
||||
step2.value = 'success'
|
||||
step3.value = 'process'
|
||||
activeIndex.value = 2
|
||||
}else if (newValue.code == 25004) {
|
||||
step2.value = 'error'
|
||||
}else if (newValue.code == 25003) { //最终失败
|
||||
step2.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'YJC_sssjdqjy':
|
||||
case 'yjc_align':
|
||||
switch (newValue.operateCode){
|
||||
case 'OPER_GATHER':
|
||||
case 'DATA_REQUEST$02':
|
||||
if (newValue.code == 10200) { //单个监测点成功
|
||||
step3InitLog.value.push({
|
||||
type: 'info',
|
||||
log: '实时数据对齐检验成功!',
|
||||
})
|
||||
}else if (newValue.code == 25002) { //单个监测点失败
|
||||
step3InitLog.value.push({
|
||||
type: 'error',
|
||||
log: '实时数据对齐检验失败!',
|
||||
})
|
||||
}else if (newValue.code == 25001) { //最终成功
|
||||
step3.value = 'error'
|
||||
step4.value = 'process'
|
||||
activeIndex.value = 3
|
||||
}else if (newValue.code == 25003) { //最终失败
|
||||
step3.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'YJC_xujy':
|
||||
switch (newValue.operateCode) {
|
||||
case 'OPER_GATHER':
|
||||
if (newValue.code == 10200) {
|
||||
if (newValue.code == 10552) {
|
||||
step4InitLog.value.push({
|
||||
type: 'info',
|
||||
log: '源参数下发成功,等待校验中.....',
|
||||
type: 'error',
|
||||
log: '存在已经初始化步骤,已经自动关闭,请重新发起检测',
|
||||
})
|
||||
|
||||
} else if (newValue.code == 10201) {
|
||||
step4.value = 'process'
|
||||
step4InitLog.value = [{
|
||||
type: 'wait',
|
||||
log: '源参数下发中.....',
|
||||
}];
|
||||
} else if (newValue.code == 10552) {
|
||||
ElMessage.error("存在已经初始化步骤,已经自动关闭,请重新发起检测!")
|
||||
step4.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
} else if (newValue.code == 10520) {
|
||||
step5.value = 'error'
|
||||
step4InitLog.value.push({
|
||||
type: 'error',
|
||||
log: '解析报文异常',
|
||||
})
|
||||
step4.value = 'error'
|
||||
ts.value = 'error'
|
||||
step5.value = 'error'
|
||||
}
|
||||
break;
|
||||
case 'DATA_REQUEST$02':
|
||||
if (newValue.code == 10200) {
|
||||
let type = 'info'
|
||||
if (newValue.data.includes('不合格')) {
|
||||
type = 'error'
|
||||
}
|
||||
newValue.data.split('<br/>')
|
||||
step4InitLog.value.push({
|
||||
type: type,
|
||||
type: 'info',
|
||||
log: newValue.data,
|
||||
})
|
||||
|
||||
} else if (newValue.code == 10201) {
|
||||
step4.value = 'process'
|
||||
step4InitLog.value = [{
|
||||
type: 'wait',
|
||||
log: '获取数据相序校验数据!',
|
||||
}];
|
||||
}else if(newValue.code == 25002){
|
||||
step4InitLog.value.push({
|
||||
type: 'error',
|
||||
log: '相序校验失败!',
|
||||
})
|
||||
} else if (newValue.code == 25003) {
|
||||
step4.value = 'error'
|
||||
step4InitLog.value.push({
|
||||
@@ -313,13 +320,9 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
} else if (newValue.code == 25001) {
|
||||
step4.value = 'success'
|
||||
step5.value = 'success'
|
||||
step4InitLog.value.push({
|
||||
type: 'wait',
|
||||
log: '相序校验成功!',
|
||||
})
|
||||
ts.value = 'success'
|
||||
activeIndex.value = 4
|
||||
}
|
||||
activeIndex.value = 4
|
||||
break
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user