| 
					
				 | 
			
			
				@@ -11,7 +11,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <span slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-button @click="dialogVisible = false">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-button type="primary" @click="dialogVisible = false">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-button type="primary" @click="confirm">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -26,7 +26,9 @@ export default{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       dialogVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      value:'' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      value:'', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      activeClass:'' // 当前选中的 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // dispatch               // 分班数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   computed: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -36,10 +38,18 @@ export default{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    confirm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeClass.newClassId =  this.value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeClass.newClassName =  this.getClassName(this.value) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeClass.newMasterId =  this.activeClass.prevMasterId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeClass.newMasterName =  this.activeClass.prevMasterName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.dialogVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     init(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.dialogVisible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.value = row.prevClassId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeClass= row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // console.log(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.value = row.newClassId || row.prevClassId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |