逻辑优化
This commit is contained in:
parent
7645ab8c14
commit
7e05ec862e
@ -687,7 +687,6 @@ struct UserInfo {
|
||||
this.startExam = false
|
||||
this.updateTimeLimit = false
|
||||
this.ksksLimit = false
|
||||
// this.isBoardPrePareSetPopupOpen=true
|
||||
this.isFirstBoardPrePareSetPopupBtnShow = false
|
||||
console.log('isFirstBoardPrePareSetPopupBtnShow', this.isFirstBoardPrePareSetPopupBtnShow, this.isBoardPrePareSetPopupOpen)
|
||||
this.startExam = false
|
||||
@ -701,7 +700,6 @@ struct UserInfo {
|
||||
try {
|
||||
getExaminationStudentInfo(param).then(async (res) => {
|
||||
console.log("lixiao student", JSON.stringify(res))
|
||||
this.errorDialog.close()
|
||||
setTimeout(() => {
|
||||
this.updateTimeLimit = false
|
||||
}, 3000)
|
||||
@ -730,7 +728,6 @@ struct UserInfo {
|
||||
|
||||
this.list = JSON.parse(JSON.stringify(dataList))
|
||||
|
||||
console.log("temp list", JSON.stringify(this.list))
|
||||
this.list.forEach((listData, index) => {
|
||||
//考过一次不允许切换学员
|
||||
if (listData.kssycs == '1') {
|
||||
@ -752,13 +749,10 @@ struct UserInfo {
|
||||
listData.ksmjzp = this.photo + listData.ksmjzp
|
||||
})
|
||||
|
||||
console.log("temp list", JSON.stringify(this.list))
|
||||
|
||||
await sqlInsertCommonFn("USERLIST", this.list || [])
|
||||
dataList = this.list.length > 4 ? this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4) : this.list;
|
||||
|
||||
this.dataList = dataList
|
||||
console.log("temp list", JSON.stringify(this.dataList))
|
||||
|
||||
const user = this.dataList.filter(res => {
|
||||
return res.kssycs == '1'
|
||||
@ -802,8 +796,9 @@ struct UserInfo {
|
||||
})
|
||||
}).catch((error) => {
|
||||
this.updateTimeLimit = false
|
||||
console.log('getStudentList Error' + error)
|
||||
}).finally(() => {
|
||||
this.errorDialog.close()
|
||||
console.log('error12error' + error)
|
||||
})
|
||||
} catch (error) {
|
||||
this.updateTimeLimit = false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user