录波数据
This commit is contained in:
@@ -131,6 +131,7 @@ import {getBigTestItem} from '@/api/check/test'
|
||||
import {getAutoGenerate} from '@/api/user/login'
|
||||
import {useModeStore} from '@/stores/modules/mode' // 引入模式 store
|
||||
import {useDictStore} from '@/stores/modules/dict'
|
||||
import { ca } from 'element-plus/es/locale'
|
||||
|
||||
const checkStore = useCheckStore()
|
||||
const modeStore = useModeStore()
|
||||
@@ -461,13 +462,14 @@ watch(
|
||||
}
|
||||
switch (newValue.code) {
|
||||
case 25001:
|
||||
case 25006:
|
||||
case 25005:
|
||||
{
|
||||
let result: CheckData.ScriptChnItem[] = []
|
||||
|
||||
let message = JSON.parse(newValue.data)
|
||||
// 当收到 25005 消息时,录波项目开始loading
|
||||
if (newValue.code == 25005) {
|
||||
if (newValue.code == 25005 || newValue.code == 25006) {
|
||||
// 设置录波项目为LOADING状态
|
||||
const waveResultItem = checkResult.find(item => item.code === 'wave_data')
|
||||
|
||||
@@ -487,7 +489,7 @@ watch(
|
||||
}
|
||||
|
||||
// 特殊处理录波项目 - 如果是25005消息且当前项目是录波项目,则使用已设置的状态
|
||||
if (newValue.code == 25005 && item.code === 'wave_data') {
|
||||
if ((newValue.code == 25005 || newValue.code == 25006) && item.code === 'wave_data') {
|
||||
const existingWaveItem = checkResult.find(checkItem => checkItem.scriptType === 'wave_data')
|
||||
if (existingWaveItem) {
|
||||
temp.devices = [...existingWaveItem.devices] // 保留已设置的devices
|
||||
@@ -536,6 +538,10 @@ watch(
|
||||
if(newValue.code == 25005){
|
||||
setLogList("error", '实时数据校验失败!开始录波校验...')
|
||||
}
|
||||
if(newValue.code == 25006){
|
||||
setLogList("error", '统计数据校验失败!开始录波校验...')
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user