|  |  | @ -180,14 +180,15 @@ | 
			
		
	
		
			
				
					|  |  |  |         </el-pagination> | 
			
		
	
		
			
				
					|  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       <div class="div_del"> | 
			
		
	
		
			
				
					|  |  |  |       <div v-if="tableData.length>0" | 
			
		
	
		
			
				
					|  |  |  |            class="div_del"> | 
			
		
	
		
			
				
					|  |  |  |         <el-checkbox :indeterminate="isIndeterminate" | 
			
		
	
		
			
				
					|  |  |  |                      v-model="selAllFlag" | 
			
		
	
		
			
				
					|  |  |  |                      @change="handleSelectAll">全选</el-checkbox> | 
			
		
	
		
			
				
					|  |  |  |         <el-button style="margin-left:15px" | 
			
		
	
		
			
				
					|  |  |  |                    type="red" | 
			
		
	
		
			
				
					|  |  |  |                    size="small" | 
			
		
	
		
			
				
					|  |  |  |                    @click="deleteBatch">删除</el-button> | 
			
		
	
		
			
				
					|  |  |  |                    @click="deleteBatch">批量删除</el-button> | 
			
		
	
		
			
				
					|  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -263,61 +264,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     ...mapGetters(['clientHeight']) | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |     handleSelectAll (selectAllFlag) { | 
			
		
	
		
			
				
					|  |  |  |       this.$refs.ref_table.clearSelection(); | 
			
		
	
		
			
				
					|  |  |  |       if (selectAllFlag) { | 
			
		
	
		
			
				
					|  |  |  |         this.tableData.forEach(row => { | 
			
		
	
		
			
				
					|  |  |  |           this.$refs.ref_table.toggleRowSelection(row); | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     deleteBatch () { | 
			
		
	
		
			
				
					|  |  |  |       if (this.selection.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.$confirm("确认删除选择的小区?", "提示", { | 
			
		
	
		
			
				
					|  |  |  |           confirmButtonText: "确定", | 
			
		
	
		
			
				
					|  |  |  |           cancelButtonText: "取消", | 
			
		
	
		
			
				
					|  |  |  |           type: "warning" | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |           .then(() => { | 
			
		
	
		
			
				
					|  |  |  |             this.deleteCommunityBatch() | 
			
		
	
		
			
				
					|  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |           .catch(err => { | 
			
		
	
		
			
				
					|  |  |  |             if (err == "cancel") { | 
			
		
	
		
			
				
					|  |  |  |               // this.$message({ | 
			
		
	
		
			
				
					|  |  |  |               //   type: "info", | 
			
		
	
		
			
				
					|  |  |  |               //   message: "已取消删除" | 
			
		
	
		
			
				
					|  |  |  |               // }); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.warning('请先选择要删除的小区') | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     selectAll (selection) { | 
			
		
	
		
			
				
					|  |  |  |       this.selection = selection | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (selection.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = true | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = false | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     selectionChange (selection) { | 
			
		
	
		
			
				
					|  |  |  |       this.selection = selection | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (selection.length === this.tableData.length) { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = true | 
			
		
	
		
			
				
					|  |  |  |         this.isIndeterminate = false | 
			
		
	
		
			
				
					|  |  |  |       } else if (selection.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = false | 
			
		
	
		
			
				
					|  |  |  |         this.isIndeterminate = true | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = false | 
			
		
	
		
			
				
					|  |  |  |         this.isIndeterminate = false | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     handleSearch () { | 
			
		
	
		
			
				
					|  |  |  |       this.loadTable() | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
	
		
			
				
					|  |  | @ -326,7 +273,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       if (fromTree) { | 
			
		
	
		
			
				
					|  |  |  |         this.agencyObj = treeObj | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       console.log(this.agencyObj) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const url = "/gov/org/neighborhood/neighborhoodlist" | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       let params = { | 
			
		
	
	
		
			
				
					|  |  | @ -391,6 +338,62 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.$emit('refreshTree') | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     handleSelectAll (selectAllFlag) { | 
			
		
	
		
			
				
					|  |  |  |       this.$refs.ref_table.clearSelection(); | 
			
		
	
		
			
				
					|  |  |  |       if (selectAllFlag) { | 
			
		
	
		
			
				
					|  |  |  |         this.tableData.forEach(row => { | 
			
		
	
		
			
				
					|  |  |  |           this.$refs.ref_table.toggleRowSelection(row); | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     deleteBatch () { | 
			
		
	
		
			
				
					|  |  |  |       if (this.selection.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.$confirm("确认删除选择的小区?", "提示", { | 
			
		
	
		
			
				
					|  |  |  |           confirmButtonText: "确定", | 
			
		
	
		
			
				
					|  |  |  |           cancelButtonText: "取消", | 
			
		
	
		
			
				
					|  |  |  |           type: "warning" | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |           .then(() => { | 
			
		
	
		
			
				
					|  |  |  |             this.deleteCommunityBatch() | 
			
		
	
		
			
				
					|  |  |  |           }) | 
			
		
	
		
			
				
					|  |  |  |           .catch(err => { | 
			
		
	
		
			
				
					|  |  |  |             if (err == "cancel") { | 
			
		
	
		
			
				
					|  |  |  |               // this.$message({ | 
			
		
	
		
			
				
					|  |  |  |               //   type: "info", | 
			
		
	
		
			
				
					|  |  |  |               //   message: "已取消删除" | 
			
		
	
		
			
				
					|  |  |  |               // }); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.warning('请先选择要删除的小区') | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     selectAll (selection) { | 
			
		
	
		
			
				
					|  |  |  |       this.selection = selection | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (selection.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = true | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = false | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     selectionChange (selection) { | 
			
		
	
		
			
				
					|  |  |  |       this.selection = selection | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (selection.length === this.tableData.length) { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = true | 
			
		
	
		
			
				
					|  |  |  |         this.isIndeterminate = false | 
			
		
	
		
			
				
					|  |  |  |       } else if (selection.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = false | 
			
		
	
		
			
				
					|  |  |  |         this.isIndeterminate = true | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.selAllFlag = false | 
			
		
	
		
			
				
					|  |  |  |         this.isIndeterminate = false | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async handleDelete (row) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       this.$confirm("确认删除?", "提示", { | 
			
		
	
	
		
			
				
					|  |  | @ -413,10 +416,18 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async deleteCommunityBatch () { | 
			
		
	
		
			
				
					|  |  |  |       const url = "/gov/org/neighborhood/neighborhooddel" | 
			
		
	
		
			
				
					|  |  |  |       let ids = [] | 
			
		
	
		
			
				
					|  |  |  |       console.log(this.selection) | 
			
		
	
		
			
				
					|  |  |  |       this.selection.forEach(element => { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         ids.push(element.neighborHoodId) | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const url = "/gov/org/house/delete" | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       let params = { | 
			
		
	
		
			
				
					|  |  |  |         neighborHoodId: row.neighborHoodId | 
			
		
	
		
			
				
					|  |  |  |         type: 'neighborHood', | 
			
		
	
		
			
				
					|  |  |  |         ids: ids | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const { data, code, msg } = await requestPost(url, params) | 
			
		
	
	
		
			
				
					|  |  | @ -428,6 +439,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |         this.$emit('refreshTree') | 
			
		
	
		
			
				
					|  |  |  |         this.loadTable() | 
			
		
	
		
			
				
					|  |  |  |       } else if (code > 8000) { | 
			
		
	
		
			
				
					|  |  |  |         // this.$message({ | 
			
		
	
		
			
				
					|  |  |  |         //   type: "success", | 
			
		
	
		
			
				
					|  |  |  |         //   message: msg | 
			
		
	
		
			
				
					|  |  |  |         // }); | 
			
		
	
		
			
				
					|  |  |  |         this.$emit('refreshTree') | 
			
		
	
		
			
				
					|  |  |  |         this.loadTable() | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(msg) | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
	
		
			
				
					|  |  | @ -681,70 +699,5 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  | <style lang="scss" scoped > | 
			
		
	
		
			
				
					|  |  |  | @import "@/assets/scss/buttonstyle.scss"; | 
			
		
	
		
			
				
					|  |  |  | .div_search { | 
			
		
	
		
			
				
					|  |  |  |   display: flex; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   .resi-cell { | 
			
		
	
		
			
				
					|  |  |  |     display: flex; | 
			
		
	
		
			
				
					|  |  |  |     align-items: center; | 
			
		
	
		
			
				
					|  |  |  |     .resi-cell-label { | 
			
		
	
		
			
				
					|  |  |  |       width: 70px; | 
			
		
	
		
			
				
					|  |  |  |       box-sizing: border-box; | 
			
		
	
		
			
				
					|  |  |  |       margin-right: 15px; | 
			
		
	
		
			
				
					|  |  |  |       text-align: right; | 
			
		
	
		
			
				
					|  |  |  |       // line-height: 32; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     .resi-cell-input { | 
			
		
	
		
			
				
					|  |  |  |       width: 180px; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | .div_table { | 
			
		
	
		
			
				
					|  |  |  |   margin-top: 20px; | 
			
		
	
		
			
				
					|  |  |  |   position: relative; | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | .div_del { | 
			
		
	
		
			
				
					|  |  |  |   position: absolute; | 
			
		
	
		
			
				
					|  |  |  |   left: 10px; | 
			
		
	
		
			
				
					|  |  |  |   bottom: 0; | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | .div_search { | 
			
		
	
		
			
				
					|  |  |  |   display: flex; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   .resi-cell { | 
			
		
	
		
			
				
					|  |  |  |     display: flex; | 
			
		
	
		
			
				
					|  |  |  |     align-items: center; | 
			
		
	
		
			
				
					|  |  |  |     .resi-cell-label { | 
			
		
	
		
			
				
					|  |  |  |       width: 70px; | 
			
		
	
		
			
				
					|  |  |  |       box-sizing: border-box; | 
			
		
	
		
			
				
					|  |  |  |       margin-right: 15px; | 
			
		
	
		
			
				
					|  |  |  |       text-align: right; | 
			
		
	
		
			
				
					|  |  |  |       // line-height: 32; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     .resi-cell-input { | 
			
		
	
		
			
				
					|  |  |  |       width: 180px; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | .div_btn { | 
			
		
	
		
			
				
					|  |  |  |   display: flex; | 
			
		
	
		
			
				
					|  |  |  |   margin-top: 20px; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   .btn_upload { | 
			
		
	
		
			
				
					|  |  |  |     margin-left: 10px; | 
			
		
	
		
			
				
					|  |  |  |     display: flex; | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | .el-row { | 
			
		
	
		
			
				
					|  |  |  |   /* margin-bottom: 20px; */ | 
			
		
	
		
			
				
					|  |  |  |   display: flex; | 
			
		
	
		
			
				
					|  |  |  |   flex-wrap: wrap; | 
			
		
	
		
			
				
					|  |  |  |   margin-top: 10px; | 
			
		
	
		
			
				
					|  |  |  |   margin-right: 50px; | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | @import "@/assets/scss/modules/visual/communityManage.scss"; | 
			
		
	
		
			
				
					|  |  |  | </style> | 
			
		
	
	
		
			
				
					|  |  | 
 |