From a1897d9c77c47544cf4fc0ff76f59e251990ada4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=91=E9=B9=8F?= Date: Thu, 5 Sep 2019 19:11:23 +0800 Subject: [PATCH] no message --- src/views/modules/events/epdcevents.vue | 67 ++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) 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(() => {}) + } } }