首页
This commit is contained in:
parent
90e278db09
commit
70951df9bb
@ -150,6 +150,7 @@ struct Index {
|
|||||||
}
|
}
|
||||||
|
|
||||||
practice() {
|
practice() {
|
||||||
|
AppStorage.setOrCreate('singlePlay', true)
|
||||||
if (JudgeConfig.isTrajectoryOpen) {
|
if (JudgeConfig.isTrajectoryOpen) {
|
||||||
router.pushUrl({
|
router.pushUrl({
|
||||||
url: 'pages/UserInfo',
|
url: 'pages/UserInfo',
|
||||||
|
|||||||
@ -138,12 +138,12 @@ struct UserInfo {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.ksksLimit = true
|
this.ksksLimit = true
|
||||||
|
|
||||||
if (this.singlePlay) {
|
if (this.singlePlay) {
|
||||||
// const { examSubject } = this.carInfo;
|
|
||||||
this.currentUser.id = '0'
|
this.currentUser.id = '0'
|
||||||
// await upDateTableByArray('USER', [this.currentUser])
|
console.log('开始考试')
|
||||||
await SqlInsertTable('USER', [this.currentUser])
|
SqlInsertTable('USER', [this.currentUser]).catch((e: BusinessError) => {
|
||||||
|
console.log("error", JSON.stringify(e))
|
||||||
|
})
|
||||||
router.pushUrl({
|
router.pushUrl({
|
||||||
url: this.carInfo.examSubject == '3' ? 'pages/Roads' : 'pages/Judge',
|
url: this.carInfo.examSubject == '3' ? 'pages/Roads' : 'pages/Judge',
|
||||||
params: {
|
params: {
|
||||||
@ -152,7 +152,6 @@ struct UserInfo {
|
|||||||
}
|
}
|
||||||
}, router.RouterMode.Single);
|
}, router.RouterMode.Single);
|
||||||
this.ksksLimit = false
|
this.ksksLimit = false
|
||||||
|
|
||||||
this.stopDeviceById()
|
this.stopDeviceById()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -221,6 +220,7 @@ struct UserInfo {
|
|||||||
this.currentUser = EmptyCandidateObject
|
this.currentUser = EmptyCandidateObject
|
||||||
this.filePhoto = new FilePhoto(this.context);
|
this.filePhoto = new FilePhoto(this.context);
|
||||||
this.singlePlay = AppStorage.get<boolean>('singlePlay') || false
|
this.singlePlay = AppStorage.get<boolean>('singlePlay') || false
|
||||||
|
console.log("this.singlePlay", this.singlePlay)
|
||||||
this.examinerLoginInfo = AppStorage.get<ExaminerLoginInfo>('examinerInfo')!
|
this.examinerLoginInfo = AppStorage.get<ExaminerLoginInfo>('examinerInfo')!
|
||||||
this.carInfo = AppStorage.get<CarInfoType>('carInfo')!
|
this.carInfo = AppStorage.get<CarInfoType>('carInfo')!
|
||||||
//语音功能on
|
//语音功能on
|
||||||
@ -905,8 +905,6 @@ struct UserInfo {
|
|||||||
|
|
||||||
// 检测车门、熄火信号
|
// 检测车门、熄火信号
|
||||||
async checkSignal(): Promise<boolean> {
|
async checkSignal(): Promise<boolean> {
|
||||||
// const { isCheckFireOpen } = judgeConfig
|
|
||||||
// const { systemParam } = this;
|
|
||||||
const Param803Str = this.systemParam.Param803Str
|
const Param803Str = this.systemParam.Param803Str
|
||||||
if (Param803Str === '') {
|
if (Param803Str === '') {
|
||||||
return true
|
return true
|
||||||
@ -1267,7 +1265,6 @@ struct UserInfo {
|
|||||||
}
|
}
|
||||||
.commStyle()
|
.commStyle()
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
// this.avPlayer.playAudio(['button_media.wav'])
|
|
||||||
this.ksksLimit = false
|
this.ksksLimit = false
|
||||||
this.qkFlag = false
|
this.qkFlag = false
|
||||||
})
|
})
|
||||||
|
|||||||
@ -689,10 +689,10 @@ export default class Judge {
|
|||||||
(judgeUI.examSubject == '2' ? testKm2Items : testKm3Items).forEach(item => {
|
(judgeUI.examSubject == '2' ? testKm2Items : testKm3Items).forEach(item => {
|
||||||
const projectCenterObj: ProjectInfo = Reflect.get(judgeUI.projectsCenterObj, item.code)
|
const projectCenterObj: ProjectInfo = Reflect.get(judgeUI.projectsCenterObj, item.code)
|
||||||
|
|
||||||
const currentItem: KmItem = Reflect.get(this.kmItems, item.code)
|
Reflect.set(this.kmItems, item.code, {
|
||||||
currentItem.code = item.code
|
code: item.code,
|
||||||
currentItem.status = projectCenterObj === undefined ? 0 : (projectCenterObj.isEnd ? 3 : 1)
|
status: projectCenterObj === undefined ? 0 : (projectCenterObj.isEnd ? 3 : 1)
|
||||||
Reflect.set(this.kmItems, item.code, currentItem)
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
console.info(judgeTag + 'testKmItems', JSON.stringify(this.kmItems))
|
console.info(judgeTag + 'testKmItems', JSON.stringify(this.kmItems))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user