diff --git a/frontend/.env.development b/frontend/.env.development index 8f13788..f2c6db3 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -19,6 +19,6 @@ VITE_API_URL=/api # 开发环境跨域代理,支持配置多个 -VITE_PROXY=[["/api","http://192.168.1.124:18092/"]] +VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] #VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] # VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文 diff --git a/frontend/src/views/home/components/channelsTest.vue b/frontend/src/views/home/components/channelsTest.vue index 4bb3958..802a4fa 100644 --- a/frontend/src/views/home/components/channelsTest.vue +++ b/frontend/src/views/home/components/channelsTest.vue @@ -252,16 +252,16 @@ watch(webMsgSend,function (newValue,oldValue){ firstCoefficientVO.bIeXi = newValue.data.bIeXi; firstCoefficientVO.cIeData = parseFloat(newValue.data.cIeData).toFixed(4); firstCoefficientVO.cIeXi = newValue.data.cIeXi; - console.log(newValue.data.devName + '对象:', firstCoefficientVO); + //console.log(newValue.data.devName + '对象:', firstCoefficientVO); activeIndex.value++; } else { 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; @@ -508,7 +508,7 @@ const updateErrorState = (index: number, hasError: boolean) => { const currentTableData = initializeTableData(dataTemplates, i); tableDataMap.set(i,currentTableData) } - console.log('tableDataMap',tableDataMap); + //console.log('tableDataMap',tableDataMap); } const handleCancel=() => { diff --git a/frontend/src/views/home/components/dataCheckChangeErrSysPopup.vue b/frontend/src/views/home/components/dataCheckChangeErrSysPopup.vue index 16f56c6..7c6844e 100644 --- a/frontend/src/views/home/components/dataCheckChangeErrSysPopup.vue +++ b/frontend/src/views/home/components/dataCheckChangeErrSysPopup.vue @@ -422,9 +422,9 @@ const scrollContainer = ref(null); // 声明 scrollContainer const scrollToBottom = () => { if (scrollContainer.value) { - console.log(scrollContainer.value) + //console.log(scrollContainer.value) scrollContainer.value.scrollTop = scrollContainer.value.scrollHeight; - console.log(scrollContainer.value) + //console.log(scrollContainer.value) } }; @@ -541,7 +541,7 @@ function traverseTableData(data: any[], id: string): void { item[field1] = "danger"; item[field2] = "×"; columnList.value.push(activeIndex.value.toString()); - console.log(id,activeIndex.value,columnList.value) + // console.log(id,activeIndex.value,columnList.value) } else { item[field1] = "success"; @@ -561,7 +561,7 @@ function traverseTableData(data: any[], id: string): void { const updateTableData = (id: string) => { traverseTableData(tableData.value, id); - console.log(id) + // console.log(id) }; let timer: any = ref(""); @@ -582,7 +582,7 @@ const handleFinishTest = () => { }; const handleClick = (row: any) => { - console.log(111, row) + // console.log(111, row) dataCheckSingleChannelSingleTestDialogVisable.value = true; }; @@ -1885,7 +1885,7 @@ const startTimer = () => { //if (timer.value !== null) return; // 如果定时器已经启动,则不再重复启动 timer.value = setInterval(() => { - console.log(activeIndex.value, 111) + // console.log(activeIndex.value, 111) if (activeIndex.value <= activeTotalNum.value) { activeIndex.value++; @@ -1943,10 +1943,10 @@ const startTimer = () => { } else { - console.log(activeIndex.value, 222) + // console.log(activeIndex.value, 222) clearInterval(timer.value) reportDisabled.value = false; - console.log(activeIndex.value, 333) + // console.log(activeIndex.value, 333) } qualified.value = 92 }, 100); diff --git a/frontend/src/views/home/components/dataCheckPopup.vue b/frontend/src/views/home/components/dataCheckPopup.vue index f36e526..85267b0 100644 --- a/frontend/src/views/home/components/dataCheckPopup.vue +++ b/frontend/src/views/home/components/dataCheckPopup.vue @@ -145,7 +145,7 @@ const monitorIdxList = [ }, ] const handleNodeClick = (data) => { - console.log(data); + // console.log(data); }; const MonIsShow = ref(false) const DevIsShow = ref(false) diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 495d4b3..530dcf1 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -194,7 +194,7 @@ const handleNodeClick = async (data: any) => { }; watch(() => formContent.chnNum, async (newVal, oldVal) => { - console.log("通道号", newVal); + // console.log("通道号", newVal); if (newVal) { // 发起请求,查询该测试项的检测结果 @@ -217,7 +217,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { }) watch(currentHarmNum, (newVal, oldVal) => { - console.log("谐波次数", newVal); + // console.log("谐波次数", newVal); if (newVal !== '-1') { let resCheckResult: CheckData.ResCheckResult = resTableData.resultData.get(newVal.toString()) setCheckResultData(resCheckResult) @@ -233,7 +233,7 @@ watch(currentHarmNum, (newVal, oldVal) => { }) watch(currentCheckItem, (newVal, oldVal) => { - console.log("当前检测项", newVal); + // console.log("当前检测项", newVal); if (newVal) { let key = newVal.toString() === 'Voltage' ? '电压幅值' : '持续时间' let resCheckResult: CheckData.ResCheckResult = resTableData.resultData.get(key) @@ -277,9 +277,9 @@ const defaultOperate = () => { } const updateTableData = async () => { - console.log("左侧树被选中的叶子节点checkIndex", checkIndex.value); + // console.log("左侧树被选中的叶子节点checkIndex", checkIndex.value); if (checkIndex.value) { - console.log("更新表格数据"); + // console.log("更新表格数据"); // 发起请求,查询该测试项的检测结果 const {data} = await getTableData({ scriptType, @@ -415,7 +415,7 @@ const close = () => { }; const setCheckResultData = (data: CheckData.ResCheckResult) => { - console.log("检测结果", data); + // console.log("检测结果", data); let result: CheckData.CheckResult[] = [] if (data.dataA != null && data.dataB != null && data.dataC != null) { result.push({ @@ -466,7 +466,7 @@ const formatHarmNum = (num: string) => { } const setRawData = (data: CheckData.RawDataItem[]) => { - console.log("原始数据", data) + // console.log("原始数据", data) data.forEach((item: CheckData.RawDataItem) => { item.dataA = item.dataA == null || item.dataA == undefined ? '/' : Number(item.dataA).toFixed(fixed).replace(/-/g, "") item.dataB = item.dataB == null || item.dataB == undefined ? '/' : Number(item.dataB).toFixed(fixed).replace(/-/g, "") diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index e2362c8..1a0dc70 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -17,8 +17,8 @@