|  | @@ -121,27 +121,33 @@ export default {
 | 
	
		
			
				|  |  |              item = classes;
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | +        this.form.classList.forEach((classes) => {
 | 
	
		
			
				|  |  | +          if (classes.classId == id) {
 | 
	
		
			
				|  |  | +            classes.type = item.type
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          // 过滤类型不一样的
 | 
	
		
			
				|  |  |          this.activeClassList = this.classList.filter((classes) => {
 | 
	
		
			
				|  |  |            return item.type == classes.type;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        this.addDisabled(arr)
 | 
	
		
			
				|  |  | +        this.addDisabled(arr);
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          if (arr.length == 0) {
 | 
	
		
			
				|  |  | -          this.activeClassList = this.classList
 | 
	
		
			
				|  |  | +          this.activeClassList = this.classList;
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | -         this.addDisabled(arr)
 | 
	
		
			
				|  |  | +          this.addDisabled(arr);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    addDisabled(arr){
 | 
	
		
			
				|  |  | -       this.activeClassList = this.activeClassList.map((classes) => {
 | 
	
		
			
				|  |  | -            return {
 | 
	
		
			
				|  |  | -              ...classes,
 | 
	
		
			
				|  |  | -              disabled: arr.indexOf(classes.id) != -1
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -          });
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    addDisabled(arr) {
 | 
	
		
			
				|  |  | +      this.activeClassList = this.activeClassList.map((classes) => {
 | 
	
		
			
				|  |  | +        return {
 | 
	
		
			
				|  |  | +          ...classes,
 | 
	
		
			
				|  |  | +          disabled: arr.indexOf(classes.id) != -1,
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 |