| 
					
				 | 
			
			
				@@ -96,7 +96,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div style="text-align: right;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button>取消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button @click="cancelSaving">取消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -160,14 +160,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.ruleForm.housingType=this.housingType.roomNumber+":"+this.housingType.officeNumber+":"+this.housingType.guardNumber; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.$http.post('/sc-community-web/assets/house/update', this.ruleForm).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 if(res.status==0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        message: '添加成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        type: 'success' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    setTimeout(function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        self.$router.go(-1);//返回上一层 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    },5000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    self.$router.go(-1);//返回上一层 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -179,14 +172,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             this.$http.post('/sc-community-web/assets/house/add', this.ruleForm).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 if(res.status==0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     if(res.status==0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                            message: '编辑成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                            type: 'success' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        setTimeout(function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                            self.$router.go(-1);//返回上一层 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        },5000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        self.$router.go(-1);//返回上一层 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -203,6 +189,24 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cancelSaving(){//取消 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.communityId=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.buildingId=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.unitName=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.floorNumber=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.roomNumber=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.buildingType=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.useArea=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.housingType=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.housingType.roomNumber=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.housingType.officeNumber=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.housingType.guardNumber=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.orientationOfRoom=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.buildingArea=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.publicArea=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.decorateProperties=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.ruleForm.remarks=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             resetForm(formName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.$refs[formName].resetFields(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 |