diff --git a/src/views/modules/events/epdcevents.vue b/src/views/modules/events/epdcevents.vue index a59ed388..c3f84f13 100644 --- a/src/views/modules/events/epdcevents.vue +++ b/src/views/modules/events/epdcevents.vue @@ -2,6 +2,36 @@
+ + + + + + + + + + + + + + + + + + { @@ -95,6 +128,38 @@ export default { }, components: { AddOrUpdate + }, + created: function () { + this.getStreetList() + }, + methods: { + getStreetList () { + this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.streetOptions = res.data + }).catch(() => {}) + }, + getCommunityList () { + this.dataForm.communityId = '' + this.dataForm.gridId = '' + this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.communityOptions = res.data + }).catch(() => {}) + }, + getGridList () { + this.dataForm.gridId = '' + this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.gridOptions = res.data + }).catch(() => {}) + } } }