|  | @@ -128,35 +128,41 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      methods: {
 | 
	
		
			
				|  |  |          async getFindStudentAttendance() {
 | 
	
		
			
				|  |  | -            let params = this.params
 | 
	
		
			
				|  |  | -            await getAttendanceErrorStudent({ courseScheduleId: this.id, page: 1, rows: 9999 }).then(res => {
 | 
	
		
			
				|  |  | +            // let params = this.params
 | 
	
		
			
				|  |  | +            await getAttendanceErrorStudent({ search: this.id*1 }).then(res => {
 | 
	
		
			
				|  |  | +           
 | 
	
		
			
				|  |  |                  let result = res.data
 | 
	
		
			
				|  |  | +              
 | 
	
		
			
				|  |  |                  this.loading = false
 | 
	
		
			
				|  |  | -                if(result.code == 200) {
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +                if(res.code == 200) {
 | 
	
		
			
				|  |  |                      // 重点这句,判断是不是重复请求了
 | 
	
		
			
				|  |  | -                    if (this.dataList.length > 0 && result.data.pageNo == 1) {
 | 
	
		
			
				|  |  | -                        return;
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                    params.page = result.data.pageNo
 | 
	
		
			
				|  |  | -                    this.dataList = this.dataList.concat(result.data.rows)
 | 
	
		
			
				|  |  | -                    this.dataList.forEach(item => {
 | 
	
		
			
				|  |  | -                        if(item.paymentStatus == 'NON_PAYMENT') {
 | 
	
		
			
				|  |  | -                            this.paymentNum += 1
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                    })
 | 
	
		
			
				|  |  | -                    if(params.page >= result.data.totalPage) {
 | 
	
		
			
				|  |  | -                        this.finished = true
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                    this.params.page++
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | +                    // if (this.dataList.length > 0 && result.data.pageNo == 1) {
 | 
	
		
			
				|  |  | +                    //     return;
 | 
	
		
			
				|  |  | +                    // }
 | 
	
		
			
				|  |  | +                    // params.page = result.data.pageNo
 | 
	
		
			
				|  |  | +                  
 | 
	
		
			
				|  |  | +                    this.dataList =result
 | 
	
		
			
				|  |  | +                    console.log(this.dataList)
 | 
	
		
			
				|  |  |                      this.finished = true
 | 
	
		
			
				|  |  | +                //     this.dataList.forEach(item => {
 | 
	
		
			
				|  |  | +                //         if(item.paymentStatus == 'NON_PAYMENT') {
 | 
	
		
			
				|  |  | +                //             this.paymentNum += 1
 | 
	
		
			
				|  |  | +                //         }
 | 
	
		
			
				|  |  | +                //     })
 | 
	
		
			
				|  |  | +                //     if(params.page >= result.data.totalPage) {
 | 
	
		
			
				|  |  | +                //         this.finished = true
 | 
	
		
			
				|  |  | +                //     }
 | 
	
		
			
				|  |  | +                //     this.params.page++
 | 
	
		
			
				|  |  | +                // } else {
 | 
	
		
			
				|  |  | +                //     this.finished = true
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  // 判断是否有数据
 | 
	
		
			
				|  |  |                  if(this.dataList.length <= 0) {
 | 
	
		
			
				|  |  |                      this.dataShow = false
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                this.lastDate = this.dataList[0] && this.dataList[0].updateTime ? dayjs(this.dataList[0].updateTime).format('MM-DD hh:mm') : null
 | 
	
		
			
				|  |  | +                // this.lastDate = this.dataList[0] && this.dataList[0].updateTime ? dayjs(this.dataList[0].updateTime).format('MM-DD hh:mm') : null
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          gotoVisit(row){
 |