大车逻辑优化
This commit is contained in:
parent
f8244bd14c
commit
820234fc98
@ -61,10 +61,8 @@ struct Index {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
//初始化数据库表
|
//初始化数据库表
|
||||||
await this.initDb()
|
await this.initDb()
|
||||||
//断点续考
|
//扣分
|
||||||
if (this.mode == 2) {
|
|
||||||
await this.goDdxkItems()
|
await this.goDdxkItems()
|
||||||
}
|
|
||||||
//初始化评判
|
//初始化评判
|
||||||
const judge = await this.initJudge();
|
const judge = await this.initJudge();
|
||||||
this.judge = judge
|
this.judge = judge
|
||||||
@ -456,6 +454,7 @@ struct Index {
|
|||||||
const nightScoreArr = examItems?.split(",").filter(item => item) || []
|
const nightScoreArr = examItems?.split(",").filter(item => item) || []
|
||||||
const ddxkKfArr = kfItems.split(";")?.[3]?.split('^').filter(item => item) || []
|
const ddxkKfArr = kfItems.split(";")?.[3]?.split('^').filter(item => item) || []
|
||||||
nightScoreArr.forEach((kf) => {
|
nightScoreArr.forEach((kf) => {
|
||||||
|
this.isDdxk = true
|
||||||
let xmdm = '';
|
let xmdm = '';
|
||||||
let kfdm = ''
|
let kfdm = ''
|
||||||
let currentKf
|
let currentKf
|
||||||
@ -481,7 +480,9 @@ struct Index {
|
|||||||
kfxh: currentKf.kfxh
|
kfxh: currentKf.kfxh
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
if (this.judgeConfigObj['432'] != 0) {
|
||||||
ddxkKfArr.forEach((kf) => {
|
ddxkKfArr.forEach((kf) => {
|
||||||
|
this.isDdxk = true
|
||||||
const [xmdm, kfdm] = kf.split(',')
|
const [xmdm, kfdm] = kf.split(',')
|
||||||
const currentKf = this.markRuleListObj[`${xmdm}_${kfdm}`]
|
const currentKf = this.markRuleListObj[`${xmdm}_${kfdm}`]
|
||||||
const currentProject = this.projectsObj[xmdm] || { name: '通用评判' }
|
const currentProject = this.projectsObj[xmdm] || { name: '通用评判' }
|
||||||
@ -501,6 +502,7 @@ struct Index {
|
|||||||
})
|
})
|
||||||
this.totalScore += currentKf.markreal * 1;
|
this.totalScore += currentKf.markreal * 1;
|
||||||
})
|
})
|
||||||
|
}
|
||||||
this.ddxkKfArr = [...nightScoreArr, ...ddxkKfArr]
|
this.ddxkKfArr = [...nightScoreArr, ...ddxkKfArr]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user