|  | @@ -345,12 +345,17 @@ export default {
 | 
	
		
			
				|  |  |        this.$set(this.form, "classs", clas);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      submit(type) {
 | 
	
		
			
				|  |  | -      // for (const key in this.musicCourseSettings) {
 | 
	
		
			
				|  |  | -      //   if (Object.hasOwnProperty.call(this.musicCourseSettings, key)) {
 | 
	
		
			
				|  |  | -      //     const item = this.musicCourseSettings[key];
 | 
	
		
			
				|  |  | +      for (const key in this.musicCourseSettings) {
 | 
	
		
			
				|  |  | +        if (Object.hasOwnProperty.call(this.musicCourseSettings, key)) {
 | 
	
		
			
				|  |  | +          const allTime = this.musicCourseSettings[key];
 | 
	
		
			
				|  |  | +          const useTime = this.musicSurplus[key]
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      //   }
 | 
	
		
			
				|  |  | -      // }
 | 
	
		
			
				|  |  | +          if (useTime > allTime) {
 | 
	
		
			
				|  |  | +            this.$message.error(this.courseTypeListByName[key] + ' 课程时长不足')
 | 
	
		
			
				|  |  | +            return
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        this.$refs.form.validate(async (valid) => {
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  |            const list = [];
 |