Compare commits
	
		
			No commits in common. "808692d5ebfe55aab9b697aa707b52b9d44dee70" and "b42f9c2251182ffa9978d2575bc617cbb161c3da" have entirely different histories.
		
	
	
		
			808692d5eb
			...
			b42f9c2251
		
	
		
@ -347,20 +347,46 @@ export default class UdpClientByCenter {
 | 
				
			|||||||
        time:dateFormat(new Date()),
 | 
					        time:dateFormat(new Date()),
 | 
				
			||||||
        PLC: JSON.stringify(newArr.toString()),
 | 
					        PLC: JSON.stringify(newArr.toString()),
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
      if(strachArr[83]!='4'||strachArr[92]!='0'){
 | 
					      if(strachArr[83]!='4'){
 | 
				
			||||||
        console.log('差分状态异常',strachArr[83],strachArr[92])
 | 
					 | 
				
			||||||
        this.chafenFlag++
 | 
					        this.chafenFlag++
 | 
				
			||||||
        if(this.chafenFlag>=15&&!globalThis.dialogOpen){
 | 
					        if(this.chafenFlag>=15&&!globalThis.dialogOpen){
 | 
				
			||||||
          // getUDP(globalThis.context,true)
 | 
					          // getUDP(globalThis.context,true)
 | 
				
			||||||
          globalThis.title='差分状态异常'
 | 
					          globalThis.title='差分状态异常'
 | 
				
			||||||
          globalThis.type='3'
 | 
					          globalThis.type='3'
 | 
				
			||||||
          globalThis.errorDialog.open()
 | 
					          prompt.showToast({
 | 
				
			||||||
          globalThis.dialogOpen=true
 | 
					            message: '差分状态异常',
 | 
				
			||||||
 | 
					            duration: 2000
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					          // AppStorage.SetOrCreate('errorCode', 1);
 | 
				
			||||||
 | 
					          // if(this.errorStep!=1){
 | 
				
			||||||
 | 
					          //   this.errorStep=1
 | 
				
			||||||
 | 
					          //   this.avPlayer.playAudio(['voice/差分状态异常.wav'])
 | 
				
			||||||
 | 
					          //   getSyncData('MA_SYSSET').then(syssetParams => {
 | 
				
			||||||
 | 
					          //     // @ts-ignore
 | 
				
			||||||
 | 
					          //     syssetParams.forEach(sys => {
 | 
				
			||||||
 | 
					          //       // 差分长时间是SINGLE状态报考车故障,停止考试(0-否 1-是)
 | 
				
			||||||
 | 
					          //       if (sys.v_no === '424'&&sys.v_value==1){
 | 
				
			||||||
 | 
					          //         //plc差分丢失
 | 
				
			||||||
 | 
					          //         console.log('sys.v_valuesys.v_valuesys.v_value',sys.v_value)
 | 
				
			||||||
 | 
					          //         AppStorage.SetOrCreate('errorCode', 0);
 | 
				
			||||||
 | 
					          //         AppStorage.SetOrCreate('errorCodeFlage', true);
 | 
				
			||||||
 | 
					          //
 | 
				
			||||||
 | 
					          //       }
 | 
				
			||||||
 | 
					          //     })
 | 
				
			||||||
 | 
					          //     // const errorParam = syssetParams.filter(sys => sys.v_no === '424') //
 | 
				
			||||||
 | 
					          //     // that.studentRefreshStatue = studentRefreshParam?.[0]?.v_value || '0'
 | 
				
			||||||
 | 
					          //
 | 
				
			||||||
 | 
					          //
 | 
				
			||||||
 | 
					          //   });
 | 
				
			||||||
 | 
					          // }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }else{
 | 
					      }else{
 | 
				
			||||||
 | 
					        // AppStorage.SetOrCreate('errorCode', -1);
 | 
				
			||||||
 | 
					        // AppStorage.SetOrCreate('errorCodeFlage', false);
 | 
				
			||||||
 | 
					        // this.errorStep=0
 | 
				
			||||||
        globalThis.dialogOpen=false
 | 
					        globalThis.dialogOpen=false
 | 
				
			||||||
        this.chafenFlag=0
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					      this.chafenFlag=0
 | 
				
			||||||
      callback && callback(newArr.toString())
 | 
					      callback && callback(newArr.toString())
 | 
				
			||||||
      this.currentValue = newArr.toString();
 | 
					      this.currentValue = newArr.toString();
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user