Compare commits

..

No commits in common. "0855162b434fcf4efac9c2c61ad07905d1668418" and "cb86c2b903c98e929089a2308febc0c1ef411c82" have entirely different histories.

2 changed files with 60 additions and 64 deletions

View File

@ -28,12 +28,12 @@ export default class EntryAbility extends UIAbility {
globalThis.examinerInfo = {} globalThis.examinerInfo = {}
globalThis.deviceNo = ''; globalThis.deviceNo = '';
globalThis.hasAuth = false globalThis.hasAuth = false
globalThis.version = '2022.08.13.01'//洛阳 // globalThis.version = '2022.08.13.01'
globalThis.judgeVersion = '2022.12.05.1' // globalThis.judgeVersion = '2022.12.05.1'
// globalThis.version = '2022.12.05.1' // globalThis.version = '2022.12.05.1'
// globalThis.judgeVersion = '2022.08.13.01' // globalThis.judgeVersion = '2022.08.13.01'
// globalThis.version = '2024.11.22.14'//济南 globalThis.version = '2024.11.22.14'//济南
// globalThis.judgeVersion = '2024.11.22.14' globalThis.judgeVersion = '2024.11.22.14'
globalThis.videoVersion= '1.0' globalThis.videoVersion= '1.0'
// globalThis.version = '2023.12.13.01' // globalThis.version = '2023.12.13.01'
// globalThis.judgeVersion = '2023.09.30.1' // globalThis.judgeVersion = '2023.09.30.1'

View File

@ -294,7 +294,7 @@ export default class Judge {
//处理评判过程回调 //处理评判过程回调
handleRealExam = async (strData, callBack) => { handleRealExam = async (strData, callBack) => {
let examData: EXAMDATA = JSON.parse(strData); let examData: EXAMDATA = JSON.parse(strData);
const {getDqxmStr,getKfStr,goJudgeVoice,setMndg,avPlayer,fileLog,judgeUI} = this; const {getDqxmStr,getKfStr,goJudgeVoice,setMndg,avPlayer,judgeUI} = this;
const {carzt,xmks,kf,event,xmjs,xmqx,ksjs,sound,mndg,lane} = examData const {carzt,xmks,kf,event,xmjs,xmqx,ksjs,sound,mndg,lane} = examData
const param512 = (judgeUI.judgeConfigObj['512'] || '').split(','); const param512 = (judgeUI.judgeConfigObj['512'] || '').split(',');
//获取项目结束、项目开始代码 //获取项目结束、项目开始代码
@ -379,9 +379,6 @@ export default class Judge {
//考试结束 //考试结束
case 5: case 5:
this.ksjs = ksjs; this.ksjs = ksjs;
await fileLog.setExamJudgeData({
method: 'examjudgeEndExam',
})
break; break;
//项目取消 //项目取消
@ -759,79 +756,78 @@ export default class Judge {
} }
// 校验考试是否结束 // 校验考试是否结束
checkExamIsEnd = checkExamIsEnd = async (isManual?: boolean) => {
async (isManual?: boolean) => { const {judgeUI,avPlayer,isExamEnd,isEndTip} = this;
const {judgeUI,avPlayer,isExamEnd,isEndTip} = this; const {isAllProjectsEnd,examSubject,singlePlay,totalScore,judgeConfigObj,passingScore} = judgeUI;
const {isAllProjectsEnd,examSubject,singlePlay,totalScore,judgeConfigObj,passingScore} = judgeUI;
if (isExamEnd) { if (isExamEnd) {
return return
} }
//及格分 //及格分
let passingGrade = passingScore let passingGrade = passingScore
if (isManual) { if (isManual) {
if (isAllProjectsEnd) { if (isAllProjectsEnd) {
// 考试合格
if (totalScore >= passingGrade) {
// 考试合格 // 考试合格
if (totalScore >= passingGrade) { await examJudgeEndExam();
// 考试合格 this.isExamEnd = true
await examJudgeEndExam(); }
this.isExamEnd = true } else {
} // 考试不合格
} else { await examJudgeEndExam()
// 考试不合格 this.isExamEnd = true
}
this.isManual = true
} else {
//单机模式
if (singlePlay) {
console.info(judgeTag + ' isAllProjectsEnd => ',isAllProjectsEnd)
if (isAllProjectsEnd) {
await examJudgeEndExam() await examJudgeEndExam()
this.isExamEnd = true this.isExamEnd = true
} }
this.isManual = true
} else { } else {
//单机模式 const param302 = judgeConfigObj['302'];
if (singlePlay) { const param342 = judgeConfigObj['342'];
console.info(judgeTag + ' isAllProjectsEnd => ',isAllProjectsEnd) const param512 = (judgeConfigObj['512'] || '').split(',');
if (isAllProjectsEnd) { //成绩不合格
await examJudgeEndExam() if (totalScore < passingGrade) {
this.isExamEnd = true //科目三不合格报靠边停车
if(examSubject == 3 && param302 ==1){
avPlayer.playAudio([`voice/考试结束.mp3`]);
return
} }
} else { await examJudgeEndExam()
const param302 = judgeConfigObj['302']; this.isExamEnd = true
const param342 = judgeConfigObj['342']; return
const param512 = (judgeConfigObj['512'] || '').split(','); }
//成绩不合格 //成绩合格
if (totalScore < passingGrade) { if (isAllProjectsEnd && totalScore >= passingGrade && !isEndTip) {
//科目三不合格报靠边停车
if(examSubject == 3 && param302 ==1){ //考试合格自动退出
avPlayer.playAudio([`voice/考试结束.mp3`]); if(examSubject == 3 && param302 == 4){
return
}
await examJudgeEndExam() await examJudgeEndExam()
this.isExamEnd = true this.isExamEnd = true
return return
} }
//成绩合格
if (isAllProjectsEnd && totalScore >= passingGrade && !isEndTip) {
//考试合格自动退出 if (examSubject == 3 && (param342 == 0 || param342 == 2) && (param302 != 6 || param302 != 7 || param302 != 8)) {
if(examSubject == 3 && param302 == 4){ if(param512[7] != 0){
await examJudgeEndExam() avPlayer.playAudio(['voice/综合评判.mp3'])
this.isExamEnd = true this.judgeUI.isDeductedPopShow = true
return this.judgeUI.defaultTabIndex = 1
} this.isEndTip = true
if (examSubject == 3 && (param342 == 0 || param342 == 2) && (param302 != 6 || param302 != 7 || param302 != 8)) {
if(param512[7] != 0){
avPlayer.playAudio(['voice/综合评判.mp3'])
this.judgeUI.isDeductedPopShow = true
this.judgeUI.defaultTabIndex = 1
this.isEndTip = true
}
} else {
await examJudgeEndExam()
this.isExamEnd = true
} }
} else {
await examJudgeEndExam()
this.isExamEnd = true
} }
} }
} }
} }
}
// 处理考试结束 // 处理考试结束
public handEndExam = async (ksjs: KSJS) => { public handEndExam = async (ksjs: KSJS) => {