|  | @@ -127,8 +127,21 @@ export default {
 | 
	
		
			
				|  |  |    components: {
 | 
	
		
			
				|  |  |      pagination
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  activated(){
 | 
	
		
			
				|  |  | +     this.init()
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |    mounted () {
 | 
	
		
			
				|  |  | -    this.getList();
 | 
	
		
			
				|  |  | +   this.init()
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  methods: {
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     *  courseStatus: '', // 课程类型
 | 
	
		
			
				|  |  | +        classStatus: '', // 课程状态
 | 
	
		
			
				|  |  | +        timer:[] // 时间
 | 
	
		
			
				|  |  | +     * 
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    init(){
 | 
	
		
			
				|  |  | +       this.getList();
 | 
	
		
			
				|  |  |      // 获取所有老师
 | 
	
		
			
				|  |  |      getTeacher().then(res => {
 | 
	
		
			
				|  |  |        if (res.code == 200) {
 | 
	
	
		
			
				|  | @@ -142,14 +155,7 @@ export default {
 | 
	
		
			
				|  |  |          this.classList = res.data;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | -  methods: {
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     *  courseStatus: '', // 课程类型
 | 
	
		
			
				|  |  | -        classStatus: '', // 课程状态
 | 
	
		
			
				|  |  | -        timer:[] // 时间
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      search () {
 | 
	
		
			
				|  |  |        this.rules.page = 1;
 | 
	
		
			
				|  |  |        this.getList();
 |