Compare commits
No commits in common. "5b99e81b05f8bd14b88c2d510ded8a355040e546" and "514d3beb604bf51e4523487b38b73fdc7f758d76" have entirely different histories.
5b99e81b05
...
514d3beb60
@ -1,6 +1,5 @@
|
|||||||
import router from '@ohos.router';
|
import router from '@ohos.router';
|
||||||
import UdpClient from '../../common/utils/UdpClient';
|
import FileLog from '../judgeSDK/utils/file-log';
|
||||||
import FileLog from '../judgeSDK/utils/fileLog';
|
|
||||||
import RealTime from '../compontents/judge/RealTime';
|
import RealTime from '../compontents/judge/RealTime';
|
||||||
import { GPSData, SignalData } from '../../mock';
|
import { GPSData, SignalData } from '../../mock';
|
||||||
import { SignalDataType } from '../../model';
|
import { SignalDataType } from '../../model';
|
||||||
@ -21,7 +20,6 @@ export default struct SignDisplayCom {
|
|||||||
@State @Watch('outClick') outFlag: boolean = false;
|
@State @Watch('outClick') outFlag: boolean = false;
|
||||||
@State url: string = ''
|
@State url: string = ''
|
||||||
private timer = null
|
private timer = null
|
||||||
private udpClient: UdpClient = null
|
|
||||||
private FileLog: FileLog
|
private FileLog: FileLog
|
||||||
private vocObj = null;
|
private vocObj = null;
|
||||||
|
|
||||||
@ -308,13 +306,15 @@ export default struct SignDisplayCom {
|
|||||||
|
|
||||||
|
|
||||||
if (showBack) {
|
if (showBack) {
|
||||||
globalThis.udpClient.onMessage_1((msg) => {
|
this.ratio=1.2
|
||||||
|
globalThis.udpClient&&globalThis.udpClient.onMessage_1((msg) => {
|
||||||
console.log('msgmsg', msg)
|
console.log('msgmsg', msg)
|
||||||
if (msg) {
|
if (msg) {
|
||||||
getSignal(msg)
|
getSignal(msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.ratio=1
|
||||||
clearInterval(globalThis.signalTimer)
|
clearInterval(globalThis.signalTimer)
|
||||||
globalThis.signalTimer = setInterval(() => {
|
globalThis.signalTimer = setInterval(() => {
|
||||||
const msgStr = globalThis.msgStr
|
const msgStr = globalThis.msgStr
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
36
entry/src/main/ets/pages/judgeSDK/utils/file-photo.ts
Normal file
36
entry/src/main/ets/pages/judgeSDK/utils/file-photo.ts
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import mediaLibrary from '@ohos.multimedia.mediaLibrary'
|
||||||
|
import onvifclient from '@ohos.onvifclient';
|
||||||
|
import fs from '@ohos.file.fs'
|
||||||
|
import util from '@ohos.util';
|
||||||
|
import FileUtil from '../../../common/utils/File'
|
||||||
|
|
||||||
|
interface Params{
|
||||||
|
userName:string
|
||||||
|
pwd:string
|
||||||
|
ip:string
|
||||||
|
port:string
|
||||||
|
rlls:string
|
||||||
|
}
|
||||||
|
|
||||||
|
export default class FilePhoto{
|
||||||
|
|
||||||
|
private params:Params
|
||||||
|
private context:any
|
||||||
|
private fileUtil:FileUtil
|
||||||
|
public mediaTest
|
||||||
|
|
||||||
|
constructor(context) {
|
||||||
|
(async ()=>{
|
||||||
|
const fileUtil = new FileUtil(context)
|
||||||
|
const strConfig = await fileUtil.readFile('/mnt/hmdfs/100/account/device_view/local/files/logs/config/config3.txt');
|
||||||
|
const config = JSON.parse(strConfig)
|
||||||
|
const {userName,ip,pwd,port,rlls} = config
|
||||||
|
this.params = {userName,pwd,ip,port,rlls}
|
||||||
|
this.context = context
|
||||||
|
this.fileUtil = fileUtil
|
||||||
|
})()
|
||||||
|
}
|
||||||
|
|
||||||
|
public async getPhoto(){
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user