| 
					
				 | 
			
			
				@@ -191,15 +191,22 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (!newValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$emit('close') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$refs.ruleForm.resetFields() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.name = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.phone = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.loginName = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.sex = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.loginFlag = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.roleNames = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.remarks = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.titleText = '新增用户' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getRoleList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     nowData: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       handler (newValue, oldValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (this.isShow && newValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (this.data.id) { //  编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (this.isshow && newValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (this.nowData.id) { //  编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.titleText = '编辑用户' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.form = Object.assign({}, this.nowData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (this.nowData.roleIds) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -207,8 +214,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.form.roleNames = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } else { //  新增 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.titleText = '新增用户' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.form.loginFlag = Number(this.nowData.loginFlag) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 |