| 
						
						
							
								
							
						
						
					 | 
					@ -3,13 +3,15 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <el-card> | 
					 | 
					 | 
					    <el-card> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> | 
					 | 
					 | 
					      <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <el-form-item label="所属网格" prop="gridId"> | 
					 | 
					 | 
					        <el-form-item label="所属网格" prop="gridId"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          <el-cascader | 
					 | 
					 | 
					            <el-select v-model="dataForm.gridId" filterable placeholder="请选择" clearable> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            :options="caLouDongOptions" | 
					 | 
					 | 
					              <el-option | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            :props="{ checkStrictly: true }" | 
					 | 
					 | 
					                v-for="item in optionsG" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            clearable | 
					 | 
					 | 
					                :key="item.value" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            @change="handlePartyChange"> | 
					 | 
					 | 
					                :label="item.label" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          </el-cascader> | 
					 | 
					 | 
					                :value="item.value"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        </el-form-item> | 
					 | 
					 | 
					              </el-option> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            </el-select> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					         </el-form-item> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <el-form-item label="身份证号" prop="idCard"> | 
					 | 
					 | 
					        <el-form-item label="身份证号" prop="idCard"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <el-input v-model="dataForm.idCard" placeholder="身份证号" clearable></el-input> | 
					 | 
					 | 
					          <el-input v-model="dataForm.idCard" placeholder="身份证号" clearable></el-input> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        </el-form-item> | 
					 | 
					 | 
					        </el-form-item> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -121,6 +123,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <template slot-scope="scope"> | 
					 | 
					 | 
					          <template slot-scope="scope"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <el-button | 
					 | 
					 | 
					            <el-button | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              type="text" | 
					 | 
					 | 
					              type="text" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              v-if="!scope.row.icResiUserId" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              class="div-table-button--detail" | 
					 | 
					 | 
					              class="div-table-button--detail" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              size="small" | 
					 | 
					 | 
					              size="small" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              @click="bndingHouseHandle(scope.row.idCard)" | 
					 | 
					 | 
					              @click="bndingHouseHandle(scope.row.idCard)" | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -188,7 +191,8 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        telephone: "", | 
					 | 
					 | 
					        telephone: "", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        gridId:"" | 
					 | 
					 | 
					        gridId:"" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      }, | 
					 | 
					 | 
					      }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      caLouDongOptions:[] | 
					 | 
					 | 
					      caLouDongOptions:[], | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      optionsG:[] | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }; | 
					 | 
					 | 
					    }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  }, | 
					 | 
					 | 
					  }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  methods:{ | 
					 | 
					 | 
					  methods:{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -199,34 +203,56 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    closeBindHouse(){ | 
					 | 
					 | 
					    closeBindHouse(){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      this.bndingHouseVisible = false | 
					 | 
					 | 
					      this.bndingHouseVisible = false | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    getloudongOptions(){ | 
					 | 
					 | 
					  //   getloudongOptions(){ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      this.$http.post(`/opendata/bmGrid/getCascadeMenu`).then(resp => { | 
					 | 
					 | 
					  //     this.$http.post(`/opendata/bmGrid/getCascadeMenu`).then(resp => { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        if(resp.data.code === 0){ | 
					 | 
					 | 
					  //       if(resp.data.code === 0){ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) | 
					 | 
					 | 
					  //         this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        } | 
					 | 
					 | 
					  //       } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      }).catch(error => { | 
					 | 
					 | 
					  //     }).catch(error => { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.$message.error(error) | 
					 | 
					 | 
					  //       this.$message.error(error) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      })      | 
					 | 
					 | 
					  //     })      | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  }, | 
					 | 
					 | 
					  // }, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  removeEmptySubOrgList (orgArray) { | 
					 | 
					 | 
					  // removeEmptySubOrgList (orgArray) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      orgArray.forEach((orgInfo) => { | 
					 | 
					 | 
					  //     orgArray.forEach((orgInfo) => { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        if (orgInfo && orgInfo.children) { | 
					 | 
					 | 
					  //       if (orgInfo && orgInfo.children) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          if (orgInfo.children.length === 0) { | 
					 | 
					 | 
					  //         if (orgInfo.children.length === 0) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              orgInfo.children = undefined | 
					 | 
					 | 
					  //             orgInfo.children = undefined | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          } else { | 
					 | 
					 | 
					  //         } else { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              this.removeEmptySubOrgList(orgInfo.children) | 
					 | 
					 | 
					  //             this.removeEmptySubOrgList(orgInfo.children) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          } | 
					 | 
					 | 
					  //         } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        } | 
					 | 
					 | 
					  //       } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      }) | 
					 | 
					 | 
					  //     }) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      return orgArray; | 
					 | 
					 | 
					  //     return orgArray; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					    }, | 
					 | 
					 | 
					  //   }, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					   | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  handlePartyChange(val) { | 
					 | 
					 | 
					  handlePartyChange(val) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      console.log('val------pp', val) | 
					 | 
					 | 
					      console.log('val------pp', val) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      this.dataForm.gridId = val[val.length - 1] | 
					 | 
					 | 
					      this.dataForm.gridId = val[val.length - 1] | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    async getGridList(type, agencyId) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      const { user } = await this.$store.state | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      console.log('user---ppp', user) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      // addorupdate  query | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      await this.$http | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        .post('/gov/org/customergrid/gridoption', { agencyId: agencyId || user.agencyId, purpose: type }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        .then(({ data: res }) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          if (res.code !== 0) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            return this.$message.error(res.msg) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            console.log('获取查询详情成功', res.data) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            this.optionsG = res.data | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if (type === 'query') this.optionsG = res.data | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            else this.optionsEditG = res.data | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        .catch(() => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          return this.$message.error('网络错误') | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  }, | 
					 | 
					 | 
					  }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					created(){ | 
					 | 
					 | 
					created(){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    this.getloudongOptions() | 
					 | 
					 | 
					    // this.getloudongOptions() | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    this.getGridList() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  }, | 
					 | 
					 | 
					  }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  components: { | 
					 | 
					 | 
					  components: { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    AddOrUpdate, | 
					 | 
					 | 
					    AddOrUpdate, | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |