fix: 润和

This commit is contained in:
wangzhongjie 2025-08-13 16:24:09 +08:00
parent 4f93ec0c9a
commit 6930e9afc3
4 changed files with 107 additions and 107 deletions

View File

@ -164,7 +164,7 @@ async function xmlToJson(result, url) {
let res = deeml(xmlArr); let res = deeml(xmlArr);
console.log("xmlToJson end",JSON.stringify(res) ); console.log("xmlToJson end",JSON.stringify(res) );
resolve(res) resolve(res)
}, 100) }, 10000)
} else { } else {
let res = deeml(xmlArr); let res = deeml(xmlArr);
console.log("xmlToJson end",JSON.stringify(res) ); console.log("xmlToJson end",JSON.stringify(res) );

View File

@ -99,91 +99,91 @@ export default struct SignDisplayCom {
}.width(936 * this.ratio) }.width(936 * this.ratio)
Column() { Column() {
Flex({ direction: FlexDirection.Column }) { // Flex({ direction: FlexDirection.Column }) {
Row() { // Row() {
Text("发送次数:" + this.signArr[49] || '0') // Text("发送次数:" + this.signArr[49] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('25%') // .width('25%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("固件版本:" + this.signArr[54] || '0') // Text("固件版本:" + this.signArr[54] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('30%') // .width('30%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("GPS数据次数/数据长度:" + this.signArr[59] || '0') // Text("GPS数据次数/数据长度:" + this.signArr[59] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
}.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio }) // }.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio })
//
Row() { // Row() {
Text("方向盘类型:" + this.signArr[50] || '0') // Text("方向盘类型:" + this.signArr[50] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('25%') // .width('25%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("按键数值:" + this.signArr[55] || '0') // Text("按键数值:" + this.signArr[55] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('30%') // .width('30%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("GPS错误次数" + this.signArr[60] || '0') // Text("GPS错误次数" + this.signArr[60] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
}.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio }) // }.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio })
//
Row() { // Row() {
Text("汽车类型:" + this.signArr[51] || '0') // Text("汽车类型:" + this.signArr[51] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('25%') // .width('25%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("GPS板卡类型" + this.signArr[56] || '0') // Text("GPS板卡类型" + this.signArr[56] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('30%') // .width('30%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("已工作时长/设定的工作时长:" + this.signArr[61] || '0') // Text("已工作时长/设定的工作时长:" + this.signArr[61] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
}.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio }) // }.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio })
//
Row() { // Row() {
Text("接口心跳:" + this.signArr[52] || '0') // Text("接口心跳:" + this.signArr[52] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('25%') // .width('25%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("GPS板卡软件版本" + this.signArr[57] || '0') // Text("GPS板卡软件版本" + this.signArr[57] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('30%') // .width('30%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("改正数次数/改正数大小:" + this.signArr[58] || '0') // Text("改正数次数/改正数大小:" + this.signArr[58] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
}.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio }) // }.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio })
//
Row() { // Row() {
Text("本机IP" + '192.168.7.170') // Text("本机IP" + '192.168.7.170')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.width('25%') // .width('25%')
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
Text("改正数数据长度*数据长度-基准站RTCM改正数类型" + this.signArr[62] || '0') // Text("改正数数据长度*数据长度-基准站RTCM改正数类型" + this.signArr[62] || '0')
.fontColor('#FFF5E5') // .fontColor('#FFF5E5')
.fontSize(14 * this.ratio) // .fontSize(14 * this.ratio)
.textAlign(TextAlign.Start) // .textAlign(TextAlign.Start)
}.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio }) // }.justifyContent(FlexAlign.Start).padding({ left: 10 * this.ratio }).margin({ top: 8 * this.ratio })
} // }
.backgroundColor('#282828') // .backgroundColor('#282828')
.width(this.ratio * 890) // .width(this.ratio * 890)
.height(136 * this.ratio) // .height(136 * this.ratio)
.margin({ left: 0 * this.ratio, top: 15 * this.ratio }) // .margin({ left: 0 * this.ratio, top: 15 * this.ratio })
Row() { Row() {
Flex({ direction: FlexDirection.Column, wrap: FlexWrap.Wrap }) { Flex({ direction: FlexDirection.Column, wrap: FlexWrap.Wrap }) {
@ -360,20 +360,20 @@ export default struct SignDisplayCom {
const getSignal = this.getSignal; const getSignal = this.getSignal;
const that = this const that = this
const showBack = this.showBack; const showBack = this.showBack;
if (showBack) { // if (showBack) {
globalThis.udpClient.onMessage_1&&globalThis.udpClient.onMessage_1((msg) => { // globalThis.udpClient.onMessage_1&&globalThis.udpClient.onMessage_1((msg) => {
console.log('getUDPonMessage_1bysignDisplay2', msg) // console.log('getUDPonMessage_1bysignDisplay2', msg)
//
getSignal(msg) // getSignal(msg)
}) // })
} else { // } else {
clearInterval(globalThis.signalTimer) // clearInterval(globalThis.signalTimer)
globalThis.signalTimer = setInterval(() => { // globalThis.signalTimer = setInterval(() => {
//TODO 临时方案 // //TODO 临时方案
const msgStr = globalThis.msgStr // const msgStr = globalThis.msgStr
getSignal(msgStr) // getSignal(msgStr)
}, 200) // }, 200)
} // }
} }

View File

@ -16,7 +16,7 @@ export const judgeConfig = {
// 本地模型地址 // 本地模型地址
// modelPath: 'models/model_enc', // modelPath: 'models/model_enc',
// 济南科目三 // 济南科目三
trajectoryPath: 'logs/2025_04_23_09_50_55_2504755332926_320924199111132926_陈静/judge_exam_data.txt', trajectoryPath: 'logs/2024_10_12_11_50_10_9999427676823_744299437502336256_隋统/judge_exam_data.txt',
//四合一画面配置 //四合一画面配置
fourInOneScreen: { fourInOneScreen: {
//gps位数 //gps位数