From 1474c15bd95b4d37c0032881893c3e7e3474d772 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Fri, 10 Jan 2025 09:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=BC=80=E6=95=B0=E6=8D=AE=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=8C=89=E9=92=AE=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/test.vue | 60 ++++++++++----------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 07e9458..90cd37a 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -418,17 +418,17 @@ watch(webMsgSend, function (newValue, oldValue) { emit('update:testStatus', 'paused') handlePauseTest() break; - // case 'Pause_Fail': - // ElMessage.error('暂停失败') - // break; + // case 'Pause_Fail': + // ElMessage.error('暂停失败') + // break; case 'Resume_Success': ElMessage.success('开始继续检测') emit('update:testStatus', 'process') handleResumeTest() break; - // case 'Resume_Fail': - // ElMessage.error('无法继续检测') - // break; + // case 'Resume_Fail': + // ElMessage.error('无法继续检测') + // break; case 'FREQ_Start': activeIndex = getActiveIndex('FREQ') updateCheckResultView("FREQ", true) @@ -701,8 +701,8 @@ const updateCheckResult = (data: CheckData.ScriptChnItem) => { checkResult.forEach(item => { if (item.scriptType == scriptType) { item.devices.forEach((device, index) => { - let targetDevice = data.devices.find(dev=>dev.deviceId === device.deviceId) - if(targetDevice!== undefined){ + let targetDevice = data.devices.find(dev => dev.deviceId === device.deviceId) + if (targetDevice !== undefined) { device.chnResult = [...targetDevice.chnResult] } }) @@ -858,21 +858,21 @@ function getErrorCheckItem(scriptType: string) { const updateCheckResultView = (scriptCode: string, isStart: boolean, devices: CheckData.DeviceCheckResult[] = []) => { let scriptType = scriptData.filter(item => item.code === scriptCode)[0]?.id // devices = [ - // { - // chnResult: [3, 4], - // deviceId: "80b4b4f52a4c4064a18319525f8ac13c", - // deviceName: "240002" - // }, - // { - // chnResult: [1, 4, 4, 4], - // deviceId: "df23a4178d194467a432ddf45e835e48", - // deviceName: "240003" - // }, - // { - // chnResult: [1, 1, 1, 1], - // deviceId: "ae5a7628260349c0a5e7c86c81fbd417", - // deviceName: "240004" - // }] + // { + // chnResult: [3, 4], + // deviceId: "80b4b4f52a4c4064a18319525f8ac13c", + // deviceName: "240002" + // }, + // { + // chnResult: [1, 4, 4, 4], + // deviceId: "df23a4178d194467a432ddf45e835e48", + // deviceName: "240003" + // }, + // { + // chnResult: [1, 1, 1, 1], + // deviceId: "ae5a7628260349c0a5e7c86c81fbd417", + // deviceName: "240004" + // }] let temp = null if (isStart) { temp = getLoadingResult(scriptType) @@ -1005,13 +1005,13 @@ const handleClick = (item: any, chnNum: number, scriptType: string) => { type: 'warning', }) } - if (flag === 1) { - ElMessageBox.alert('该测试项数据异常', '数据异常', { - confirmButtonText: '确定', - type: 'warning', - }) - } - if (flag === -1) { + // if (flag === 1) { + // ElMessageBox.alert('该测试项数据异常', '数据异常', { + // confirmButtonText: '确定', + // type: 'warning', + // }) + // } + if (flag === -1 || flag === 1) { dataCheckSingleChannelSingleTestPopupRef.value?.open(item.deviceId, chnNum + '', scriptType); } };