差分状态异常提示
This commit is contained in:
		
							parent
							
								
									d3e022cba8
								
							
						
					
					
						commit
						9949fa676e
					
				| @ -347,46 +347,20 @@ 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'){ |       if(strachArr[83]!='4'||strachArr[92]!='0'){ | ||||||
|  |         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' | ||||||
|           prompt.showToast({ |           globalThis.errorDialog.open() | ||||||
|             message: '差分状态异常', |           globalThis.dialogOpen=true | ||||||
|             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