Compare commits

..

No commits in common. "d1a2170ee864f9333ddcc1aacb3ce9c4032c2906" and "9337adc8cce42f951d1abae653553a0ca2a803fd" have entirely different histories.

3 changed files with 6 additions and 25 deletions

View File

@ -199,12 +199,6 @@ struct Index {
const {xmdm, kfdm} = kf
const currentKf = this.markRuleListObj[`${xmdm}_${kfdm}`];
const currentProject = this.projectsObj[xmdm]
// 过滤考前绕车一周上车准备的扣分
if(sczb == 1 && xmdm == '1'){
return
}
this.kfArr.push({
//扣分项目名称
xmmcStr: currentProject.name,

View File

@ -34,8 +34,7 @@ export default struct DeductedPopup {
}
@Prop defaultTabIndex:number = 0
@Prop @Watch('changeCurrentItems') currentItems:string[] = [];
@State preCurrentItemsLength:number = 0
@Prop @Watch('changeCurrentItems') currentItems:string[] = []
aboutToAppear(){
//@ts-ignore
@ -44,23 +43,18 @@ export default struct DeductedPopup {
if(this.currentIndex == 1){
this.universalMarkRules = this.markRules.filter(item => item.itemno == 20 )
}
this.preCurrentItemsLength = this.currentItems.length
}
changeCurrentItems(){
if(this.currentItems?.length && (this.currentItems?.length >= this.preCurrentItemsLength)){
if(this.currentItems){
//@ts-ignore
this.universalMarkRules = this.markRules.filter(item => (this.currentItems.includes(item.itemno) || this.currentItems.includes(item.itemno + '')));
this.currentIndex = this.defaultTabIndex
if(this.currentIndex == 1){
this.universalMarkRules = this.markRules.filter(item => item.itemno == 20 )
}
this.preCurrentItemsLength = this.currentItems.length
}else{
this.preCurrentItemsLength = 0
}
}
//上一页 下一页
goPage(typeIndex){
const currentIndex = this.currentIndex

View File

@ -202,9 +202,7 @@ export default class Judge {
if (udpIndex % 5 === 0) {
handDistance();
}
});
// this.checkExamIsEnd()
})
//监听远程结束考试
globalThis.udpEvent.onEndExam(async ()=>{
@ -599,11 +597,9 @@ export default class Judge {
}, {isDelay: true})
}
}
if(!this.judgeUI.isProjectIn){
this.deductedPopShowTimer = setTimeout(()=>{
this.judgeUI.isDeductedPopShow = false
},(param512[5] || 0) * 1000)
}
this.deductedPopShowTimer = setTimeout(()=>{
this.judgeUI.isDeductedPopShow = false
},(param512[5] || 0) * 1000)
judgeUI.projectsObj[xmdm].isEnd = true;
break;
}
@ -896,7 +892,6 @@ export default class Judge {
if(totalScore >= passingGrade && !isEndTip) {
if (examSubject == 3 && (param342 == 0 || param342 == 2) && (param302 != 6 || param302 != 7 || param302 != 8)) {
if(param512[7] != 0){
clearTimeout(this.deductedPopShowTimer)
avPlayer.playAudio(['voice/综合评判.mp3'])
this.judgeUI.isDeductedPopShow = true
this.judgeUI.defaultTabIndex = 1
@ -953,8 +948,6 @@ export default class Judge {
if (examSubject == 3 && (param342 == 0 || param342 == 2) && (param302 != 6 || param302 != 7 || param302 != 8)) {
if(param512[7] != 0){
clearTimeout(this.deductedPopShowTimer)
this.judgeUI.isDeductedPopShow = false
avPlayer.playAudio(['voice/综合评判.mp3'])
this.judgeUI.isDeductedPopShow = true
this.judgeUI.defaultTabIndex = 1