feat:差分异常显示处理

This commit is contained in:
surenjun 2024-12-20 09:28:49 +08:00
parent 7673a13455
commit fbfdbd797b
2 changed files with 4 additions and 2 deletions

View File

@ -1325,7 +1325,7 @@ struct Index {
@State lane: LANE = { road: '', num: 0, count: 0 }
@State roadData: Object = {};
//定位差分状态时候正常
@State isDwztRight: boolean = false;
@State isDwztRight: boolean = true;
@State defaultTabIndex: number = 0;
private context = getContext(this) as common.UIAbilityContext;
public kfArrScroller: Scroller = new Scroller()

View File

@ -1482,7 +1482,7 @@ export default class Judge {
const str = await senorToWXDataStr(msg);
usbService.sendUSB(str)
}
this.judgeUI.isDwztRight = (plcData.gps.dwzt == 4 && plcData.gps.jdzt == 3);
// this.judgeUI.isDwztRight = (plcData.gps.dwzt == 4 && plcData.gps.jdzt == 3);
const param350 = judgeUI.judgeConfigObj['350']
//@ts-ignore
this.judgeUI.sd = ((param350 == 0? plcData.gps.sd :plcData.sensor.cs) as number * 1.852).toFixed(0) + ''
@ -1620,6 +1620,7 @@ export default class Judge {
const judgeConfig = this.judgeUI.judgeConfig;
switch (type){
case 0:
this.judgeUI.isDwztRight = true;
break;
case 1:
@ -1640,6 +1641,7 @@ export default class Judge {
break;
case 4:
this.judgeUI.isDwztRight = false;
//差分异常上报
break;
}