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