feat:合并master
This commit is contained in:
parent
45cf28fac8
commit
2f9db78e1b
@ -1,7 +1,7 @@
|
|||||||
import systemTime from '@ohos.systemDateTime';
|
import systemTime from '@ohos.systemDateTime';
|
||||||
import { Array2Byte, fillZero, string2Bytes, stringToASC } from '../../common/utils/tools';
|
import { Array2Byte, fillZero, string2Bytes, stringToASC } from '../../common/utils/tools';
|
||||||
import { testKmItems } from '../../pages/judgeSDK/dataTest/index';
|
import { testKmItems } from '../../pages/judgeSDK/dataTest/index';
|
||||||
import { setJudgeUdp, setTopLineUdp } from './GlobleUdp';
|
import { setJudgeUdp, setTopLineUdp } from './GlobalUdp';
|
||||||
import { convertGpsCoord2 } from '../utils/tools';
|
import { convertGpsCoord2 } from '../utils/tools';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
// @ts-nocheck
|
|
||||||
import { VideoConfig } from './interfaces'
|
import { VideoConfig } from './interfaces'
|
||||||
import common from '@ohos.app.ability.common';
|
import common from '@ohos.app.ability.common';
|
||||||
import router from '@ohos.router'
|
import router from '@ohos.router'
|
||||||
@ -10,14 +9,15 @@ import {
|
|||||||
getEsCarModel,
|
getEsCarModel,
|
||||||
} from '../common/service/initable'
|
} from '../common/service/initable'
|
||||||
import FileUtil from '../common/utils/File'
|
import FileUtil from '../common/utils/File'
|
||||||
import { getUDP, getUDP2 } from '../common/utils/GlobleUdp'
|
import { getUDP, getUDP2 } from '../common/utils/GlobalUdp'
|
||||||
import {initJudgeUdp} from '../common/utils/UdpJudge'
|
import {initJudgeUdp} from '../common/utils/UdpJudge'
|
||||||
import { getTCP } from '../common/utils/GlobleTcp'
|
import { getTCP } from '../common/utils/GlobalTcp'
|
||||||
import TcpClient from '../common/utils/TcpClient';
|
import TcpClient from '../common/utils/TcpClient';
|
||||||
import testNapi from '@ohos.hiserialsdk'
|
import testNapi from '@ohos.hiserialsdk'
|
||||||
import {setliushuiNum,getliushuiNum,getSingleCenterTable,getDoubleCeneterTable,takePhotoFn} from '../common/service/indexService'
|
import {setliushuiNum,getliushuiNum,getSingleCenterTable,getDoubleCeneterTable,takePhotoFn} from '../common/service/indexService'
|
||||||
import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl';
|
import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl';
|
||||||
import worker, { MessageEvents } from '@ohos.worker';
|
import worker, { MessageEvents } from '@ohos.worker';
|
||||||
|
import Prompt from '@system.prompt';
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
@Component
|
@Component
|
||||||
@ -110,7 +110,7 @@ struct Index {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
this.angle = 0
|
this.angle = 0
|
||||||
if(!globalThis.timeInfo){
|
if(!globalThis.timeInfo){
|
||||||
promptAction.showToast({
|
Prompt.showToast({
|
||||||
message: `网络连接失败`,
|
message: `网络连接失败`,
|
||||||
duration: 3000
|
duration: 3000
|
||||||
});
|
});
|
||||||
@ -338,7 +338,6 @@ struct Index {
|
|||||||
// await this.getModel()
|
// await this.getModel()
|
||||||
// const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00]
|
// const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00]
|
||||||
// globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer)
|
// globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer)
|
||||||
console.info(testNapi)
|
|
||||||
}
|
}
|
||||||
async getModel() {
|
async getModel() {
|
||||||
const context = this.context;
|
const context = this.context;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import router from '@ohos.router'
|
import router from '@ohos.router'
|
||||||
import prompt from '@ohos.prompt'
|
import Prompt from '@system.prompt';
|
||||||
import common from '@ohos.app.ability.common';
|
import common from '@ohos.app.ability.common';
|
||||||
import EndPoPup from './compontents/judge/end-popup'
|
import EndPoPup from './compontents/judge/end-popup'
|
||||||
import LoadingPopup from './compontents/judge/loading-popup'
|
import LoadingPopup from './compontents/judge/loading-popup'
|
||||||
@ -212,7 +212,7 @@ struct Index {
|
|||||||
|
|
||||||
const projects = this.projects;
|
const projects = this.projects;
|
||||||
if(!projects.length){
|
if(!projects.length){
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: '读取数据库信息失败,请重新考试!',
|
message: '读取数据库信息失败,请重新考试!',
|
||||||
duration: 8000
|
duration: 8000
|
||||||
});
|
});
|
||||||
@ -263,7 +263,7 @@ struct Index {
|
|||||||
})
|
})
|
||||||
const projects = this.projects;
|
const projects = this.projects;
|
||||||
if (!projects.length) {
|
if (!projects.length) {
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: '读取数据库信息失败,请重新考试!',
|
message: '读取数据库信息失败,请重新考试!',
|
||||||
duration: 8000
|
duration: 8000
|
||||||
});
|
});
|
||||||
@ -585,7 +585,7 @@ struct Index {
|
|||||||
this.amplifiedImgIndex = index;this.isAmplifyPopShow = true
|
this.amplifiedImgIndex = index;this.isAmplifyPopShow = true
|
||||||
} else{
|
} else{
|
||||||
if(index === 5){
|
if(index === 5){
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: `${xmmcStr}未结束,不允许靠边停车`,
|
message: `${xmmcStr}未结束,不允许靠边停车`,
|
||||||
duration: 8000
|
duration: 8000
|
||||||
});
|
});
|
||||||
@ -647,7 +647,7 @@ struct Index {
|
|||||||
if(this.judgeConfigObj['342'] == 0){
|
if(this.judgeConfigObj['342'] == 0){
|
||||||
this.isDeductedPopShow = true
|
this.isDeductedPopShow = true
|
||||||
}else{
|
}else{
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: '平台配置不允许人工评判!',
|
message: '平台配置不允许人工评判!',
|
||||||
duration: 4000
|
duration: 4000
|
||||||
});
|
});
|
||||||
@ -672,7 +672,7 @@ struct Index {
|
|||||||
if(this.judgeConfigObj['353'] == '0' ){
|
if(this.judgeConfigObj['353'] == '0' ){
|
||||||
this.endPopupVisible = true
|
this.endPopupVisible = true
|
||||||
}else{
|
}else{
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: '车上不允许手动结束考试!',
|
message: '车上不允许手动结束考试!',
|
||||||
duration: 4000
|
duration: 4000
|
||||||
});
|
});
|
||||||
|
|||||||
@ -88,6 +88,7 @@ struct Index {
|
|||||||
gateway: this.inputTextList1[5],//value.gateway网关
|
gateway: this.inputTextList1[5],//value.gateway网关
|
||||||
netMask: this.inputTextList1[4],//value.netMask网络掩码
|
netMask: this.inputTextList1[4],//value.netMask网络掩码
|
||||||
dnsServers: this.inputTextList1[6],
|
dnsServers: this.inputTextList1[6],
|
||||||
|
// @ts-ignore
|
||||||
domain: ""
|
domain: ""
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|||||||
@ -80,7 +80,7 @@ export default struct SignDisplayCom {
|
|||||||
@State gpsActive: number = 1
|
@State gpsActive: number = 1
|
||||||
@Prop active: number = 0
|
@Prop active: number = 0
|
||||||
@State msgStr: string = ''
|
@State msgStr: string = ''
|
||||||
@State interval: any=''
|
@State interval: number=0
|
||||||
|
|
||||||
@State @Watch('outClick') outFlag: boolean = false;
|
@State @Watch('outClick') outFlag: boolean = false;
|
||||||
private timer = null
|
private timer = null
|
||||||
|
|||||||
@ -33,8 +33,7 @@ import {
|
|||||||
examJudgeMapSetParam
|
examJudgeMapSetParam
|
||||||
} from './api/index'
|
} from './api/index'
|
||||||
import UsbService from '../../common/service/usbService'
|
import UsbService from '../../common/service/usbService'
|
||||||
import prompt from '@ohos.prompt';
|
import Prompt from '@system.prompt';
|
||||||
|
|
||||||
const judgeTag = 'SURENJUN_JUDGE'
|
const judgeTag = 'SURENJUN_JUDGE'
|
||||||
|
|
||||||
export default class Judge{
|
export default class Judge{
|
||||||
@ -362,7 +361,7 @@ export default class Judge{
|
|||||||
const {judgeConfigObj,totalScore} = judgeUI
|
const {judgeConfigObj,totalScore} = judgeUI
|
||||||
|
|
||||||
if(judgeConfigObj['344'] == 1){
|
if(judgeConfigObj['344'] == 1){
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: '考试未结束,不允许手动退出!',
|
message: '考试未结束,不允许手动退出!',
|
||||||
duration: 4000
|
duration: 4000
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import prompt from '@ohos.prompt'
|
import Prompt from '@system.prompt'
|
||||||
|
|
||||||
const TAG = 'SURENJUN_JUDGE'
|
const TAG = 'SURENJUN_JUDGE'
|
||||||
|
|
||||||
export default class JudgeTask{
|
export default class JudgeTask{
|
||||||
@ -18,7 +19,7 @@ export default class JudgeTask{
|
|||||||
await currentTask();
|
await currentTask();
|
||||||
}catch (e){
|
}catch (e){
|
||||||
// console.info(TAG,'过程数据接口解析错误')
|
// console.info(TAG,'过程数据接口解析错误')
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: '过程数据接口解析错误',
|
message: '过程数据接口解析错误',
|
||||||
duration: 3000
|
duration: 3000
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import media from '@ohos.multimedia.media';
|
import media from '@ohos.multimedia.media';
|
||||||
import prompt from '@ohos.prompt';
|
import Prompt from '@system.prompt';
|
||||||
|
|
||||||
const TAG = 'VoiceAnnounce'
|
const TAG = 'VoiceAnnounce'
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ class AVPlayer {
|
|||||||
url = await globalThis.context.resourceManager.getRawFd(name);
|
url = await globalThis.context.resourceManager.getRawFd(name);
|
||||||
this.avPlayer.fdSrc = url;
|
this.avPlayer.fdSrc = url;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
prompt.showToast({
|
Prompt.showToast({
|
||||||
message: `${name}语音文件不存在`,
|
message: `${name}语音文件不存在`,
|
||||||
duration: 4000
|
duration: 4000
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user