|  | @@ -85,7 +85,7 @@
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import MHeader from "@/components/MHeader";
 | 
	
		
			
				|  |  | +import MHeader from "@/components/header";
 | 
	
		
			
				|  |  |  import search from "@/components/Search";
 | 
	
		
			
				|  |  |  import MEmpty from "@/components/MEmpty";
 | 
	
		
			
				|  |  |  import { getStudentsByTeacherOrgan } from "./api";
 | 
	
	
		
			
				|  | @@ -172,30 +172,31 @@ export default {
 | 
	
		
			
				|  |  |        let params = this.params;
 | 
	
		
			
				|  |  |        params.search = params.search ? params.search : null;
 | 
	
		
			
				|  |  |        let studentList = null;
 | 
	
		
			
				|  |  | -      // if (this.type == 'sale') {
 | 
	
		
			
				|  |  | -      // 	studentList = await queryEduStudents(params)
 | 
	
		
			
				|  |  | -      // } else {
 | 
	
		
			
				|  |  | -      studentList = await getStudentsByTeacherOrgan(params);
 | 
	
		
			
				|  |  | -      // }
 | 
	
		
			
				|  |  | -      let result = studentList.data;
 | 
	
		
			
				|  |  | -      this.loading = false;
 | 
	
		
			
				|  |  | -      if (studentList.code == 200) {
 | 
	
		
			
				|  |  | -        // 重点这句,判断是不是重复请求了
 | 
	
		
			
				|  |  | -        if (this.dataList.length > 0 && result.pageNo == 1) {
 | 
	
		
			
				|  |  | -          return;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        params.page = result.pageNo;
 | 
	
		
			
				|  |  | -        this.dataList = this.dataList.concat(result.rows);
 | 
	
		
			
				|  |  | -        if (params.page >= result.totalPage) {
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        studentList = await getStudentsByTeacherOrgan(params);
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  | +        let result = studentList.data;
 | 
	
		
			
				|  |  | +        this.loading = false;
 | 
	
		
			
				|  |  | +        if (studentList.code == 200) {
 | 
	
		
			
				|  |  | +          // 重点这句,判断是不是重复请求了
 | 
	
		
			
				|  |  | +          if (this.dataList.length > 0 && result.pageNo == 1) {
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          params.page = result.pageNo;
 | 
	
		
			
				|  |  | +          this.dataList = this.dataList.concat(result.rows);
 | 
	
		
			
				|  |  | +          if (params.page >= result.totalPage) {
 | 
	
		
			
				|  |  | +            this.finished = true;
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          this.params.page++;
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  |            this.finished = true;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        this.params.page++;
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        this.finished = true;
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      // 判断是否有数据
 | 
	
		
			
				|  |  | -      if (this.dataList.length <= 0) {
 | 
	
		
			
				|  |  | -        this.dataShow = false;
 | 
	
		
			
				|  |  | +        // 判断是否有数据
 | 
	
		
			
				|  |  | +        if (this.dataList.length <= 0) {
 | 
	
		
			
				|  |  | +          this.dataShow = false;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      } catch {
 | 
	
		
			
				|  |  | +        //
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      desensitPhone(phone) {
 |