修改正式检测结果展示错误
This commit is contained in:
@@ -701,10 +701,15 @@ const updateCheckResult = (data: CheckData.ScriptChnItem) => {
|
||||
checkResult.forEach(item => {
|
||||
if (item.scriptType == scriptType) {
|
||||
item.devices.forEach((device, index) => {
|
||||
device.chnResult = [...data.devices[index].chnResult]
|
||||
let targetDevice = data.devices.find(dev=>dev.deviceId === device.deviceId)
|
||||
if(targetDevice!== undefined){
|
||||
device.chnResult = [...targetDevice.chnResult]
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
const scrollToBottom = () => {
|
||||
@@ -853,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: [4, 4, 4, 4],
|
||||
// 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)
|
||||
|
||||
Reference in New Issue
Block a user