diff --git a/src/views/modules/base/epidemic/antiInfo.vue b/src/views/modules/base/epidemic/antiInfo.vue
index a84dfb885..c716715a9 100644
--- a/src/views/modules/base/epidemic/antiInfo.vue
+++ b/src/views/modules/base/epidemic/antiInfo.vue
@@ -9,7 +9,14 @@
-
+
0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.searchForm.agencyId = ''
+ } else {
+ this.searchForm.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.searchForm.gridId = ''
+ }
+
+ } else {
+ this.searchForm.agencyId = ''
+ this.searchForm.gridId = ''
+ }
+
+ this.searchForm.neighborId = ''
+ this.searchForm.buildingId = ''
+ this.searchForm.unitId = ''
+ this.searchForm.houseId = ''
+ this.getValiheList()
+ },
+
handleChangeGrid (val) {
console.log('val', val)
this.searchForm.neighborId = ''
@@ -687,6 +727,23 @@ export default {
this.searchForm.houseId = ''
this.getHouseList()
},
+ getOrgTreeList () {
+ const { user } = this.$store.state
+ this.$http
+ .post('/gov/org/customeragency/agencygridtree', {})
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ console.log('获取组织树成功', res.data)
+ this.orgOptions = []
+ this.orgOptions.push(res.data)
+ }
+ })
+ .catch(() => {
+ return this.$message.error('网络错误')
+ })
+ },
getGridList () {
const { user } = this.$store.state
this.$http
@@ -708,7 +765,7 @@ export default {
this.$http
.post('/gov/org/icneighborhood/neighborhoodoption', {
gridId: this.searchForm.gridId,
- agencyId: ''
+ agencyId: this.searchForm.agencyId
// agencyId: user.agencyId
})
.then(({ data: res }) => {
@@ -904,6 +961,7 @@ export default {
//重置搜索条件
resetSearch () {
this.timeRange = []
+ this.agencyIdArray = []
this.$refs.ref_searchform.resetFields()
this.searchForm.buildingId = ''
this.searchForm.unitId = ''