微调
This commit is contained in:
@@ -859,7 +859,7 @@ const getCheckResult = (scriptType: string) => {
|
||||
// let tempChnResult: CheckData.ChnCheckResultEnum[] = []
|
||||
// if (item.deviceId === randomUnConnectedDeviceId && activeIndex >= randomUnConnectedRaw) {
|
||||
// for (let i = 0; i < item.chnNum; i++) {
|
||||
// tempChnResult.push(CheckData.ChnCheckResultEnum.UNCONNECTED)
|
||||
// tempChnResult.push(CheckData.ChnCheckResultEnum.TIMEOUT)
|
||||
// //errorCheckItem.push({scriptType,type:'warning'})
|
||||
// }
|
||||
// } else {
|
||||
@@ -880,7 +880,7 @@ const getCheckResult = (scriptType: string) => {
|
||||
let tempChnResult: CheckData.ChnCheckResultEnum[] = []
|
||||
// if (item.deviceId === randomUnConnectedDeviceId && activeIndex >= randomUnConnectedRaw) {
|
||||
// for (let i = 0; i < item.chnNum; i++) {
|
||||
// tempChnResult.push(CheckData.ChnCheckResultEnum.UNCONNECTED)
|
||||
// tempChnResult.push(CheckData.ChnCheckResultEnum.TIMEOUT)
|
||||
// //errorCheckItem.push({scriptType,type:'warning'})
|
||||
// }
|
||||
// } else {
|
||||
@@ -919,14 +919,14 @@ const handleClick = (item: any, chnNum: number, scriptType: string) => {
|
||||
if (device) {
|
||||
let chnResult = device.chnResult
|
||||
if (chnNum === -1) {
|
||||
if (chnResult.findIndex(obj => obj === CheckData.ChnCheckResultEnum.UNCONNECTED) !== -1) {
|
||||
if (chnResult.findIndex(obj => obj === CheckData.ChnCheckResultEnum.TIMEOUT) !== -1) {
|
||||
flag = 0
|
||||
}
|
||||
if (chnResult.findIndex(obj => obj === CheckData.ChnCheckResultEnum.ERRORDATA) !== -1) {
|
||||
flag = 1
|
||||
}
|
||||
} else {
|
||||
if (chnResult[chnNum - 1] === CheckData.ChnCheckResultEnum.UNCONNECTED) {
|
||||
if (chnResult[chnNum - 1] === CheckData.ChnCheckResultEnum.TIMEOUT) {
|
||||
flag = 0
|
||||
}
|
||||
if (chnResult[chnNum - 1] === CheckData.ChnCheckResultEnum.ERRORDATA) {
|
||||
|
||||
Reference in New Issue
Block a user