微调
This commit is contained in:
@@ -745,8 +745,25 @@ const updateLog = (isStart: boolean) => {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
const setErrorCheckItem = (scriptType: string, devices: any) => {
|
||||||
|
let flag = true
|
||||||
|
for (let i = 0; i < devices.length; i++) {
|
||||||
|
for (let j = 0; j < devices[i].chnResult.length; j++) {
|
||||||
|
if (devices[i].chnResult[j] === CheckData.ChnCheckResultEnum.FAIL) {
|
||||||
|
flag = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!flag) {
|
||||||
|
errorCheckItem.push({scriptType, type: 'error'})
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const updateCheckResultView = (scriptCode: string, isStart: boolean, devices: any = null) => {
|
const updateCheckResultView = (scriptCode: string, isStart: boolean, devices: any = null) => {
|
||||||
let scriptType = scriptData.filter(item => item.code === scriptCode)[0]?.id
|
let scriptType = scriptData.filter(item => item.code === scriptCode)[0]?.id
|
||||||
|
setErrorCheckItem(scriptType, devices)
|
||||||
let temp = null
|
let temp = null
|
||||||
if (isStart) {
|
if (isStart) {
|
||||||
temp = getLoadingResult(scriptType)
|
temp = getLoadingResult(scriptType)
|
||||||
|
|||||||
Reference in New Issue
Block a user