This commit is contained in:
sjl
2025-02-26 16:23:27 +08:00
parent f4ea510c5d
commit cad4965b1b
2 changed files with 25 additions and 27 deletions

View File

@@ -339,7 +339,7 @@ watch(webMsgSend, function (newValue, oldValue) {
}
break;
case 'Coefficient_Check':
// console.log("Coefficient_Checkactive", active.value);
console.log("Coefficient_Checkactive", active.value);
switch (newValue.operateCode) {
case 'big_end'://大电压,电流下装
active.value++;
@@ -460,16 +460,16 @@ watch(webMsgSend, function (newValue, oldValue) {
firstCoefficientVO.aI = newValue.data.aI;
firstCoefficientVO.bI = newValue.data.bI;
firstCoefficientVO.cI = newValue.data.cI;
//console.log(newValue.data.devName + '对象:', firstCoefficientVO);
console.log(newValue.data.devName + '对象:', firstCoefficientVO);
activeIndex.value++;
} else {
//console.log('未找到匹配的'+ newValue.data.devName+'对象');
console.log('未找到匹配的'+ newValue.data.devName+'对象');
}
} else {
//console.log(newValue.data.devName + '数组为空');
console.log(newValue.data.devName + '数组为空');
}
} else {
//console.log('未找到'+newValue.data.devName+'对应的数组');
console.log('未找到'+newValue.data.devName+'对应的数组');
}
}
break;

View File

@@ -963,30 +963,28 @@ const handleTest = async (val: string) => {
selectTestItemPopupRef.value?.open()
}
} else if (val === '系数校准') {
// 检查 socketClient.Instance 是否存在
if (!socketClient.Instance) {
console.error('WebSocket 客户端实例不存在');
return;
}
socketClient.Instance.connect();
dataSocket.socketServe = socketClient.Instance;
dataSocket.socketServe.registerCallBack('aaa', (res: { code: number; }) => {
// 处理来自服务器的消息
//console.log('Received message:', res)
// 根据需要在这里添加更多的处理逻辑
if (res.code === 20000) {
ElMessage.error(message.message)
loading.close()
} else {
webMsgSend.value = res
}
})
// // 检查 socketClient.Instance 是否存在
// if (!socketClient.Instance) {
// console.error('WebSocket 客户端实例不存在');
// return;
// }
// socketClient.Instance.connect();
// dataSocket.socketServe = socketClient.Instance;
// dataSocket.socketServe.registerCallBack('aaa', (res: { code: number; }) => {
// // 处理来自服务器的消息
// //console.log('Received message:', res)
// // 根据需要在这里添加更多的处理逻辑
// if (res.code === 20000) {
// ElMessage.error(message.message)
// loading.close()
// } else {
// webMsgSend.value = res
// }
// })
// channelsTest.value?.open(channelsSelection.value, props.plan)
// return
channelsTest.value?.open(channelsSelection.value, props.plan)
return
} else {
// 一键检测
checkStore.setCheckType(1)