Compare commits
	
		
			2 Commits
		
	
	
		
			b42f9c2251
			...
			808692d5eb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 808692d5eb | |||
| 9949fa676e | 
| @ -347,46 +347,20 @@ export default class UdpClientByCenter { | ||||
|         time:dateFormat(new Date()), | ||||
|         PLC: JSON.stringify(newArr.toString()), | ||||
|       }) | ||||
|       if(strachArr[83]!='4'){ | ||||
|       if(strachArr[83]!='4'||strachArr[92]!='0'){ | ||||
|         console.log('差分状态异常',strachArr[83],strachArr[92]) | ||||
|         this.chafenFlag++ | ||||
|         if(this.chafenFlag>=15&&!globalThis.dialogOpen){ | ||||
|           // getUDP(globalThis.context,true)
 | ||||
|           globalThis.title='差分状态异常' | ||||
|           globalThis.type='3' | ||||
|           prompt.showToast({ | ||||
|             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'
 | ||||
|           //
 | ||||
|           //
 | ||||
|           //   });
 | ||||
|           // }
 | ||||
|           globalThis.errorDialog.open() | ||||
|           globalThis.dialogOpen=true | ||||
|         } | ||||
|       }else{ | ||||
|         // AppStorage.SetOrCreate('errorCode', -1);
 | ||||
|         // AppStorage.SetOrCreate('errorCodeFlage', false);
 | ||||
|         // this.errorStep=0
 | ||||
|         globalThis.dialogOpen=false | ||||
|       } | ||||
|         this.chafenFlag=0 | ||||
|       } | ||||
|       callback && callback(newArr.toString()) | ||||
|       this.currentValue = newArr.toString(); | ||||
|     } else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user