|  | @@ -59,8 +59,8 @@
 | 
	
		
			
				|  |  |            <el-date-picker v-model="form.end_date" type="date" value-format="yyyy-MM-dd" />
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <el-form-item :label="$t('Key254')">
 | 
	
		
			
				|  |  | -          <el-input v-model="form.student_count_max" class="student-count" @input="changeStudent" />
 | 
	
		
			
				|  |  | +        <el-form-item :label="$t('Key254')" prop="student_count_max">
 | 
	
		
			
				|  |  | +          <el-input v-model="form.student_count_max" class="student-count" maxlength="3" @input="changeStudent" />
 | 
	
		
			
				|  |  |            <el-checkbox v-model="form.is_auto_close">
 | 
	
		
			
				|  |  |              {{ $t('Key266') }}
 | 
	
		
			
				|  |  |            </el-checkbox>
 | 
	
	
		
			
				|  | @@ -139,6 +139,14 @@ export default {
 | 
	
		
			
				|  |  |          callback();
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  | +    const validateCountMax = (rule, value, callback) => {
 | 
	
		
			
				|  |  | +      if (value < 1 || value > 999) {
 | 
	
		
			
				|  |  | +        callback(new Error('学生数量最小为1,最大为999'));
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        callback();
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      const query = this.$route.query;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -155,7 +163,7 @@ export default {
 | 
	
		
			
				|  |  |          teacher_id_list: [],
 | 
	
		
			
				|  |  |          begin_date: '',
 | 
	
		
			
				|  |  |          end_date: '',
 | 
	
		
			
				|  |  | -        student_count_max: '',
 | 
	
		
			
				|  |  | +        student_count_max: 1,
 | 
	
		
			
				|  |  |          is_auto_close: false,
 | 
	
		
			
				|  |  |          student_enter_control_type: 0,
 | 
	
		
			
				|  |  |          price: '0.00',
 | 
	
	
		
			
				|  | @@ -163,7 +171,8 @@ export default {
 | 
	
		
			
				|  |  |          is_enable_XYZP: false
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        formRules: {
 | 
	
		
			
				|  |  | -        name: { trigger: 'blur', validator: validateName }
 | 
	
		
			
				|  |  | +        name: { trigger: 'blur', validator: validateName },
 | 
	
		
			
				|  |  | +        student_count_max: { trigger: 'blur', validator: validateCountMax }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        orgList: [],
 | 
	
		
			
				|  |  |        user_list: [],
 | 
	
	
		
			
				|  | @@ -180,6 +189,11 @@ export default {
 | 
	
		
			
				|  |  |      if (this.is_use_template) {
 | 
	
		
			
				|  |  |        this.getCourseInfo_ContainCSItem(this.template_id);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    // 创建课程时,默认授课教师是自己
 | 
	
		
			
				|  |  | +    if (!this.id && !this.is_template) {
 | 
	
		
			
				|  |  | +      this.form.teacher_id_list.push(this.$store.state.user.user_code);
 | 
	
		
			
				|  |  | +      this.getUserList();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      nextStep() {
 |