去除日志,表格宽度
This commit is contained in:
@@ -233,8 +233,7 @@ watch(testStatus, function (newValue, oldValue) {
|
||||
* 3. 表格数据的实时更新
|
||||
*/
|
||||
watch(webMsgSend, function (newValue, oldValue) {
|
||||
console.log('webMsgSend---code', newValue.code)
|
||||
console.log('webMsgSend---requestId', newValue.requestId)
|
||||
|
||||
|
||||
// 只有在非等待状态下才处理WebSocket消息
|
||||
if (testStatus.value !== 'waiting') {
|
||||
@@ -325,8 +324,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
TableInit();
|
||||
} else {
|
||||
// ==================== 特定业务消息处理 ====================
|
||||
console.log('显示东西code', newValue.code)
|
||||
console.log('显示东西requestId', newValue.requestId)
|
||||
|
||||
switch (newValue.requestId) {
|
||||
// 处理源通讯校验相关消息
|
||||
case 'yjc_ytxjy':
|
||||
@@ -443,7 +441,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
break;
|
||||
// ★★★ 处理系数校准核心业务消息 ★★★
|
||||
case 'Coefficient_Check':
|
||||
console.log("Coefficient_Checkactive", active.value);
|
||||
|
||||
|
||||
// ==================== 第1阶段:大电压/电流系数下装 ====================
|
||||
switch (newValue.operateCode) {
|
||||
@@ -523,7 +521,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
switch (newValue.operateCode) {
|
||||
case 'DATA_CHNFACTOR$02':
|
||||
// 接收并更新表格中的系数校准数据
|
||||
console.log('表格', name.value)
|
||||
|
||||
|
||||
// 遍历所有设备,找到匹配的表格项并更新数据
|
||||
for (let i = 0; i < name.value.length; i++) {
|
||||
@@ -594,17 +592,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);
|
||||
|
||||
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;
|
||||
@@ -655,7 +652,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
* 通知父组件检测失败,重置相关状态
|
||||
*/
|
||||
const TableInit = () => {
|
||||
console.log("出错系数检测",active.value);
|
||||
|
||||
// 通知父组件系数校准失败
|
||||
emit('update:testStatus', 'error')
|
||||
}
|
||||
@@ -667,7 +664,7 @@ const TableInit = () => {
|
||||
* @param desc 描述:'系数下装' | '系数校准'
|
||||
*/
|
||||
const tableLoading = (type: string, desc: string) => {
|
||||
console.log('转动',channel.value)
|
||||
|
||||
|
||||
// 遍历所有设备
|
||||
for (let i = 0; i < channel.value.length; i++) {
|
||||
@@ -688,7 +685,7 @@ const tableLoading = (type: string, desc: string) => {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log('不转了')
|
||||
//console.log('不转了')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -868,7 +865,7 @@ const handleSubmit = async () => {
|
||||
isButtonDisabled.value = true; // 禁用按钮,防止重复提交
|
||||
tableLoading('big', '系数下装') // 开启大幅值系数下装的加载动画
|
||||
active.value++; // 步骤进度+1,进入第一个校准阶段
|
||||
console.log('开始检测active.value', active.value)
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user