feat:合并master

This commit is contained in:
Surenjun 2024-07-02 10:26:42 +08:00
parent 45cf28fac8
commit 2f9db78e1b
8 changed files with 20 additions and 20 deletions

View File

@ -1,7 +1,7 @@
import systemTime from '@ohos.systemDateTime';
import { Array2Byte, fillZero, string2Bytes, stringToASC } from '../../common/utils/tools';
import { testKmItems } from '../../pages/judgeSDK/dataTest/index';
import { setJudgeUdp, setTopLineUdp } from './GlobleUdp';
import { setJudgeUdp, setTopLineUdp } from './GlobalUdp';
import { convertGpsCoord2 } from '../utils/tools';

View File

@ -1,4 +1,3 @@
// @ts-nocheck
import { VideoConfig } from './interfaces'
import common from '@ohos.app.ability.common';
import router from '@ohos.router'
@ -10,14 +9,15 @@ import {
getEsCarModel,
} from '../common/service/initable'
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 { getTCP } from '../common/utils/GlobleTcp'
import { getTCP } from '../common/utils/GlobalTcp'
import TcpClient from '../common/utils/TcpClient';
import testNapi from '@ohos.hiserialsdk'
import {setliushuiNum,getliushuiNum,getSingleCenterTable,getDoubleCeneterTable,takePhotoFn} from '../common/service/indexService'
import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl';
import worker, { MessageEvents } from '@ohos.worker';
import Prompt from '@system.prompt';
@Entry
@Component
@ -110,7 +110,7 @@ struct Index {
}, 1000)
this.angle = 0
if(!globalThis.timeInfo){
promptAction.showToast({
Prompt.showToast({
message: `网络连接失败`,
duration: 3000
});
@ -338,7 +338,6 @@ struct Index {
// await this.getModel()
// const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00]
// globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer)
console.info(testNapi)
}
async getModel() {
const context = this.context;

View File

@ -1,5 +1,5 @@
import router from '@ohos.router'
import prompt from '@ohos.prompt'
import Prompt from '@system.prompt';
import common from '@ohos.app.ability.common';
import EndPoPup from './compontents/judge/end-popup'
import LoadingPopup from './compontents/judge/loading-popup'
@ -212,7 +212,7 @@ struct Index {
const projects = this.projects;
if(!projects.length){
prompt.showToast({
Prompt.showToast({
message: '读取数据库信息失败,请重新考试!',
duration: 8000
});
@ -263,7 +263,7 @@ struct Index {
})
const projects = this.projects;
if (!projects.length) {
prompt.showToast({
Prompt.showToast({
message: '读取数据库信息失败,请重新考试!',
duration: 8000
});
@ -585,7 +585,7 @@ struct Index {
this.amplifiedImgIndex = index;this.isAmplifyPopShow = true
} else{
if(index === 5){
prompt.showToast({
Prompt.showToast({
message: `${xmmcStr}未结束,不允许靠边停车`,
duration: 8000
});
@ -647,7 +647,7 @@ struct Index {
if(this.judgeConfigObj['342'] == 0){
this.isDeductedPopShow = true
}else{
prompt.showToast({
Prompt.showToast({
message: '平台配置不允许人工评判!',
duration: 4000
});
@ -672,7 +672,7 @@ struct Index {
if(this.judgeConfigObj['353'] == '0' ){
this.endPopupVisible = true
}else{
prompt.showToast({
Prompt.showToast({
message: '车上不允许手动结束考试!',
duration: 4000
});

View File

@ -88,6 +88,7 @@ struct Index {
gateway: this.inputTextList1[5],//value.gateway网关
netMask: this.inputTextList1[4],//value.netMask网络掩码
dnsServers: this.inputTextList1[6],
// @ts-ignore
domain: ""
}, (error) => {
if (error) {

View File

@ -80,7 +80,7 @@ export default struct SignDisplayCom {
@State gpsActive: number = 1
@Prop active: number = 0
@State msgStr: string = ''
@State interval: any=''
@State interval: number=0
@State @Watch('outClick') outFlag: boolean = false;
private timer = null

View File

@ -33,8 +33,7 @@ import {
examJudgeMapSetParam
} from './api/index'
import UsbService from '../../common/service/usbService'
import prompt from '@ohos.prompt';
import Prompt from '@system.prompt';
const judgeTag = 'SURENJUN_JUDGE'
export default class Judge{
@ -362,7 +361,7 @@ export default class Judge{
const {judgeConfigObj,totalScore} = judgeUI
if(judgeConfigObj['344'] == 1){
prompt.showToast({
Prompt.showToast({
message: '考试未结束,不允许手动退出!',
duration: 4000
});

View File

@ -1,4 +1,5 @@
import prompt from '@ohos.prompt'
import Prompt from '@system.prompt'
const TAG = 'SURENJUN_JUDGE'
export default class JudgeTask{
@ -18,7 +19,7 @@ export default class JudgeTask{
await currentTask();
}catch (e){
// console.info(TAG,'过程数据接口解析错误')
prompt.showToast({
Prompt.showToast({
message: '过程数据接口解析错误',
duration: 3000
});

View File

@ -1,5 +1,5 @@
import media from '@ohos.multimedia.media';
import prompt from '@ohos.prompt';
import Prompt from '@system.prompt';
const TAG = 'VoiceAnnounce'
@ -84,7 +84,7 @@ class AVPlayer {
url = await globalThis.context.resourceManager.getRawFd(name);
this.avPlayer.fdSrc = url;
} catch (e) {
prompt.showToast({
Prompt.showToast({
message: `${name}语音文件不存在`,
duration: 4000
});