diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 2a45164..09cfc98 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -301,6 +301,7 @@ watch(testStatus, function (newValue, oldValue) { let count = 0 watch(webMsgSend, function (newValue, oldValue) { + console.log('webMsgSend', newValue) if (testStatus.value !== 'waiting') { if (props.stepsActive === 4) { if (newValue.code == 10520) { @@ -783,12 +784,6 @@ const updateCheckResult = (data: CheckData.ScriptChnItem) => { item.devices[i].chnResult = [...targetDevice.chnResult] } } - // item.devices.forEach((device, index) => { - // let targetDevice = data.devices.find(dev => dev.deviceId === device.deviceId) - // if (targetDevice !== undefined) { - // device.chnResult = [...targetDevice.chnResult] - // } - // }) } }) } @@ -947,28 +942,6 @@ 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: [1, 1, 1, 1], - // deviceId: "e90c09c0905248ad912e19e17a8672aa", - // deviceName: "250226001" - // }, - // { - // chnResult: [1, 1, 1, 1], - // deviceId: "df23a4178d194467a432ddf45e835e48", - // deviceName: "240003" - // }, - // { - // chnResult: [1, 1, 1, 1], - // deviceId: "ae5a7628260349c0a5e7c86c81fbd417", - // deviceName: "240004" - // }, - // { - // chnResult: [1, 1, 1, 1], - // deviceId: "461813a4f30f4a34a1a273ecd0379458", - // deviceName: "25011407" - // } - // ] let temp = null if (isStart) { temp = getLoadingResult(scriptType)