|  |  | @ -691,11 +691,19 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (valid) { |  |  |  |         if (valid) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (this.form.roleId != undefined) { |  |  |  |           if (this.form.roleId != undefined) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.form.menuIds = this.getMenuAllCheckedKeys(); |  |  |  |             this.form.menuIds = this.getMenuAllCheckedKeys(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if( this.form.menuIds.length==0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               this.$message.error("菜单权限不能为空"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               return | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             updateRole(this.form).then(response => { |  |  |  |             updateRole(this.form).then(response => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               if(response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.$modal.msgSuccess("修改成功"); |  |  |  |                 this.$modal.msgSuccess("修改成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.open = false; |  |  |  |                 this.open = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.getList(); |  |  |  |                 this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.getCustomerList(); |  |  |  |                 this.getCustomerList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               } | 
			
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else { |  |  |  |           } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.form.menuIds = this.getMenuAllCheckedKeys(); |  |  |  |             this.form.menuIds = this.getMenuAllCheckedKeys(); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |