首页
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)) | ||||||
| @ -955,7 +955,7 @@ export default class Judge { | |||||||
|           //扣分类型 |           //扣分类型 | ||||||
|           type: kf.type |           type: kf.type | ||||||
|         } |         } | ||||||
|         //扣分信息 |       //扣分信息 | ||||||
|         this.kfArr?.push(kfObj) |         this.kfArr?.push(kfObj) | ||||||
|         this.judgeUI.totalScore += Number(thisKf?.score); |         this.judgeUI.totalScore += Number(thisKf?.score); | ||||||
|         if (kf.xmdm != 20) { |         if (kf.xmdm != 20) { | ||||||
| @ -1090,21 +1090,21 @@ export default class Judge { | |||||||
|           const project: ProjectInfo = Reflect.get(projectsObj, xmdm) |           const project: ProjectInfo = Reflect.get(projectsObj, xmdm) | ||||||
|           const code = project.projectCodeCenter; |           const code = project.projectCodeCenter; | ||||||
|           const isEnd = project.isEnd; |           const isEnd = project.isEnd; | ||||||
|           // const kmCode = getKmProjectVoice(code, 1, judgeConfigObj, lane, xmxh) |         // const kmCode = getKmProjectVoice(code, 1, judgeConfigObj, lane, xmxh) | ||||||
|           // if (!ignoreVoiceCodeArr.includes(code)) { |         // if (!ignoreVoiceCodeArr.includes(code)) { | ||||||
|           //   if(examSubject == 2 && ((xmdm == 0 && f == 2) || (xmdm == 1 && s == 2) || xmdm == 3)){ |         //   if(examSubject == 2 && ((xmdm == 0 && f == 2) || (xmdm == 1 && s == 2) || xmdm == 3)){ | ||||||
|           //     //倒出入库、桩考\进项目语音控制 |         //     //倒出入库、桩考\进项目语音控制 | ||||||
|           //   }else{ |         //   }else{ | ||||||
|           //     kmCode && avPlayer.playAudio([`voice/${kmCode}.mp3`],true) |         //     kmCode && avPlayer.playAudio([`voice/${kmCode}.mp3`],true) | ||||||
|           //   } |         //   } | ||||||
|           // } |         // } | ||||||
|           setTimeout(() => { |           setTimeout(() => { | ||||||
|             if (Reflect.get(param512, 7) != 0) { |             if (Reflect.get(param512, 7) != 0) { | ||||||
|               clearTimeout(this.deductedPopShowTimer) |               clearTimeout(this.deductedPopShowTimer) | ||||||
|               this.judgeUI.isDeductedPopShow = true |               this.judgeUI.isDeductedPopShow = true | ||||||
|             } |             } | ||||||
|           }, 200) |           }, 200) | ||||||
|           //项目已考不上传监管信息 |         //项目已考不上传监管信息 | ||||||
|           if (!isEnd) { |           if (!isEnd) { | ||||||
|             judgeTask.addTask(async () => { |             judgeTask.addTask(async () => { | ||||||
|               console.info(judgeTag, `项目开始-${xmdm}-${project.name}`) |               console.info(judgeTag, `项目开始-${xmdm}-${project.name}`) | ||||||
| @ -1160,7 +1160,7 @@ export default class Judge { | |||||||
|       // 扣分 |       // 扣分 | ||||||
|         case 3: |         case 3: | ||||||
|           console.info('surenjun', '扣分开始') |           console.info('surenjun', '扣分开始') | ||||||
|           //扣分时实时播报语音(0-否+1-是) |         //扣分时实时播报语音(0-否+1-是) | ||||||
|           const currentKf = kf[kfLen -1]; |           const currentKf = kf[kfLen -1]; | ||||||
|           if (JudgeConfig.kfVoiceOpen || (examSubject == '2' && judgeConfigObj['618'] == '1') || |           if (JudgeConfig.kfVoiceOpen || (examSubject == '2' && judgeConfigObj['618'] == '1') || | ||||||
|             (examSubject == '3' && judgeConfigObj['418'] == '1')) { |             (examSubject == '3' && judgeConfigObj['418'] == '1')) { | ||||||
| @ -1185,7 +1185,7 @@ export default class Judge { | |||||||
|       // 考试结束 |       // 考试结束 | ||||||
|         case 5: |         case 5: | ||||||
|           console.info(judgeTag, '考试结束') |           console.info(judgeTag, '考试结束') | ||||||
|           //关闭录像 |         //关闭录像 | ||||||
|           const singlePlay = AppStorage.get<boolean>('singlePlay') |           const singlePlay = AppStorage.get<boolean>('singlePlay') | ||||||
|           if (!singlePlay && this.videoData) { |           if (!singlePlay && this.videoData) { | ||||||
|             await endRecordVideo(this.videoData) |             await endRecordVideo(this.videoData) | ||||||
| @ -1195,8 +1195,8 @@ export default class Judge { | |||||||
|             AppStorage.setOrCreate('isJudge', false) |             AppStorage.setOrCreate('isJudge', false) | ||||||
|             await handEndExam(ksjs) |             await handEndExam(ksjs) | ||||||
|           }) |           }) | ||||||
|           // TODO待修改 |         // TODO待修改 | ||||||
|           // clearInterval(globalThis.judgeTimer) |         // clearInterval(globalThis.judgeTimer) | ||||||
|           break |           break | ||||||
|         default: |         default: | ||||||
|           break |           break | ||||||
| @ -1830,7 +1830,7 @@ export default class Judge { | |||||||
| 
 | 
 | ||||||
|       case 4: |       case 4: | ||||||
|         this.judgeUI.isDwztRight = false; |         this.judgeUI.isDwztRight = false; | ||||||
|         //差分异常上报 |       //差分异常上报 | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user