Compare commits
No commits in common. "7338d854b46dd85e0236ba5a36651aa7af125cbe" and "b987bac5f0f442da6008ee7de44cd097a2995eb8" have entirely different histories.
7338d854b4
...
b987bac5f0
@ -1,7 +1,10 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import promptAction from '@ohos.promptAction'
|
import promptAction from '@ohos.promptAction'
|
||||||
|
import router from '@ohos.router'
|
||||||
import { dateFormat } from '../utils/tools'
|
import { dateFormat } from '../utils/tools'
|
||||||
import FileUtil from '../../common/utils/File'
|
import FileUtil from '../../common/utils/File'
|
||||||
|
import AccountTable from '../../common/database/tables/AccountTable'
|
||||||
|
import MA_SYSSET from '../../common/constants/MA_SYSSET'
|
||||||
import { takePhoto } from '../../common/service/videoService'
|
import { takePhoto } from '../../common/service/videoService'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -102,28 +105,8 @@ export async function getDoubleCeneterTable(param) {
|
|||||||
'MA_ITEMINFO': false,
|
'MA_ITEMINFO': false,
|
||||||
'MA_T_CARPARMSET': false
|
'MA_T_CARPARMSET': false
|
||||||
}
|
}
|
||||||
const name = {
|
|
||||||
'MA_MARKRULE': 'MA_MARKRULE',
|
|
||||||
'MA_SYSTEMPARM': 'MA_SYSTEMPARM',
|
|
||||||
'MA_MAP_COLLECT': 'MA_MAP_COLLECT',
|
|
||||||
'MA_MAP_COLLECT_SHAPE': 'MA_MAP_COLLECT_SHAPE',
|
|
||||||
'MA_MAP_ITEMCLASS': 'MA_MAP_ITEMCLASS',
|
|
||||||
'MA_MAP_POINT': 'MA_MAP_POINT',
|
|
||||||
'MA_MAP_POINT_ITEM': 'MA_MAP_POINT_ITEM',
|
|
||||||
'MA_MAP_ROAD': 'MA_MAP_ROAD',
|
|
||||||
'MA_MAP_ROAD_LANE': 'MA_MAP_ROAD_LANE',
|
|
||||||
'MA_MAP_SUBITEM': 'MAP_SUBITEM',
|
|
||||||
'ES_CARINFO': 'ES_CARINFO',
|
|
||||||
'ES_EXAMPOINTDETAIL': 'ES_EXAMPOINTDETAIL',
|
|
||||||
'MA_MARKRULESET': 'MA_MARKRULESET',
|
|
||||||
'ES_CAR_VIDEO_PARAMETER': 'ES_CAR_VIDEO_PARAMETER',
|
|
||||||
'MA_CDSBINFO': 'MA_CDSBINFO',
|
|
||||||
'MA_ITEMINFO': 'MA_ITEMINFO',
|
|
||||||
'MA_T_CARPARMSET': 'MA_T_CARPARMSET'
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let key in typeObj) {
|
for (let key in typeObj) {
|
||||||
typeObj[key] = await upDateTable({ tableName: name[key] }, param)
|
typeObj[key] = await upDateTable({ tableName: key }, param)
|
||||||
if (!typeObj[key]) {
|
if (!typeObj[key]) {
|
||||||
promptAction.showToast({
|
promptAction.showToast({
|
||||||
message: `未能查询到${key}表数据, 请先检查网络是否连接正常`,
|
message: `未能查询到${key}表数据, 请先检查网络是否连接正常`,
|
||||||
@ -134,9 +117,9 @@ export async function getDoubleCeneterTable(param) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
reslove(true)
|
reslove(true)
|
||||||
// router.pushUrl({
|
router.pushUrl({
|
||||||
// url: 'pages/ExaminerLogin',
|
url: 'pages/ExaminerLogin',
|
||||||
// }, router.RouterMode.Single);
|
}, router.RouterMode.Single);
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -172,7 +172,7 @@ export default struct SignDisplayCom {
|
|||||||
Text("改正数次数/改正数大小:" + this.signArr[58] || '0')
|
Text("改正数次数/改正数大小:" + this.signArr[58] || '0')
|
||||||
.fontColor('#FFF5E5')
|
.fontColor('#FFF5E5')
|
||||||
.fontSize(14 * this.ratio)
|
.fontSize(14 * this.ratio)
|
||||||
.width('25%')
|
.width('30%')
|
||||||
.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 })
|
||||||
}
|
}
|
||||||
@ -220,11 +220,10 @@ export default struct SignDisplayCom {
|
|||||||
Text('纬度:' + this.signArr[96]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
|
Text('纬度:' + this.signArr[96]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
|
||||||
Text('速度:' + this.signArr[97]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
|
Text('速度:' + this.signArr[97]).fontColor('#FFB433').fontSize(14 * this.ratio).height(18 * this.ratio)
|
||||||
}
|
}
|
||||||
// .backgroundColor('red')
|
|
||||||
.backgroundColor('#1A1A1A')
|
.backgroundColor('#1A1A1A')
|
||||||
// .width(180 * this.ratio)
|
.width(138 * this.ratio)
|
||||||
.height(300 * this.ratio)
|
.height(300 * this.ratio)
|
||||||
.position({ y: 0 * this.ratio, x: 700 * this.ratio })
|
.position({ y: 0 * this.ratio, x: 750 * this.ratio })
|
||||||
}.backgroundColor('#282828').width(this.ratio * 890).height(308 * this.ratio).margin({ top: 3 * this.ratio })
|
}.backgroundColor('#282828').width(this.ratio * 890).height(308 * this.ratio).margin({ top: 3 * this.ratio })
|
||||||
}
|
}
|
||||||
.width(936 * this.ratio)
|
.width(936 * this.ratio)
|
||||||
@ -235,26 +234,6 @@ export default struct SignDisplayCom {
|
|||||||
.backgroundImageSize({ width: '100%', height: '100%' })
|
.backgroundImageSize({ width: '100%', height: '100%' })
|
||||||
.visibility(this.active == 0 ? Visibility.Visible : Visibility.None)
|
.visibility(this.active == 0 ? Visibility.Visible : Visibility.None)
|
||||||
|
|
||||||
Column() {
|
|
||||||
Column() {
|
|
||||||
Text(this.msg)
|
|
||||||
.fontColor('#FFF5E5')
|
|
||||||
.fontSize(14 * this.ratio)
|
|
||||||
}
|
|
||||||
.backgroundColor('#282828')
|
|
||||||
.width(this.ratio * 890)
|
|
||||||
.height(436 * this.ratio)
|
|
||||||
.margin({ left: 0 * this.ratio, top: 15 * this.ratio })
|
|
||||||
|
|
||||||
}
|
|
||||||
.width(936 * this.ratio)
|
|
||||||
.height(480 * this.ratio)
|
|
||||||
.margin({ left: 10 * this.ratio })
|
|
||||||
.padding({ left: 10 * this.ratio, right: 10 * this.ratio })
|
|
||||||
.backgroundImage($r('app.media.km_open'))
|
|
||||||
.backgroundImageSize({ width: '100%', height: '100%' })
|
|
||||||
.visibility(this.active == 2 ? Visibility.Visible : Visibility.None)
|
|
||||||
|
|
||||||
Row() {
|
Row() {
|
||||||
Flex({ direction: FlexDirection.Column }) {
|
Flex({ direction: FlexDirection.Column }) {
|
||||||
Row() {
|
Row() {
|
||||||
@ -329,8 +308,8 @@ export default struct SignDisplayCom {
|
|||||||
|
|
||||||
|
|
||||||
if (showBack) {
|
if (showBack) {
|
||||||
this.ratio = 1.4
|
this.ratio=1.4
|
||||||
globalThis.udpClient.onMessage_1 && globalThis.udpClient.onMessage_1((msg) => {
|
globalThis.udpClient.onMessage_1((msg) => {
|
||||||
console.log('msgmsg', msg)
|
console.log('msgmsg', msg)
|
||||||
if (msg) {
|
if (msg) {
|
||||||
getSignal(msg)
|
getSignal(msg)
|
||||||
@ -355,7 +334,7 @@ export default struct SignDisplayCom {
|
|||||||
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((msg) => {
|
||||||
getSignal(msg)
|
getSignal(msg)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user