From 1a5a38a3f0afdb72d9320327f38727e54ca00588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=91=E9=B9=8F?= Date: Sun, 29 Sep 2019 09:46:57 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9=20=20=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/events/issue-change.vue | 16 +++++++++++++++- src/views/modules/events/issue-close.vue | 16 +++++++++++++++- src/views/modules/events/issue-process.vue | 16 +++++++++++++++- src/views/modules/events/issue-reject.vue | 16 +++++++++++++++- src/views/modules/events/issue-review.vue | 16 +++++++++++++++- src/views/modules/events/item-close.vue | 16 +++++++++++++++- src/views/modules/events/item-deal.vue | 16 +++++++++++++++- src/views/modules/events/item-end.vue | 16 +++++++++++++++- 8 files changed, 120 insertions(+), 8 deletions(-) diff --git a/src/views/modules/events/issue-change.vue b/src/views/modules/events/issue-change.vue index b2eda134..26ec5bb4 100644 --- a/src/views/modules/events/issue-change.vue +++ b/src/views/modules/events/issue-change.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -205,6 +214,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/issue-close.vue b/src/views/modules/events/issue-close.vue index 82f0c80c..5b305f94 100644 --- a/src/views/modules/events/issue-close.vue +++ b/src/views/modules/events/issue-close.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -206,6 +215,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/issue-process.vue b/src/views/modules/events/issue-process.vue index feb95ea1..fbd45bf2 100644 --- a/src/views/modules/events/issue-process.vue +++ b/src/views/modules/events/issue-process.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -223,6 +232,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/issue-reject.vue b/src/views/modules/events/issue-reject.vue index c96e1020..27e126fe 100644 --- a/src/views/modules/events/issue-reject.vue +++ b/src/views/modules/events/issue-reject.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -187,6 +196,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/issue-review.vue b/src/views/modules/events/issue-review.vue index 89fa9889..2a5308f4 100644 --- a/src/views/modules/events/issue-review.vue +++ b/src/views/modules/events/issue-review.vue @@ -8,6 +8,7 @@ + clearable placeholder="请选择"> { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -187,6 +196,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/item-close.vue b/src/views/modules/events/item-close.vue index 8d6d0b0e..7f9f6e90 100755 --- a/src/views/modules/events/item-close.vue +++ b/src/views/modules/events/item-close.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -206,6 +215,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/item-deal.vue b/src/views/modules/events/item-deal.vue index 06dfcd33..e5fe7c7b 100755 --- a/src/views/modules/events/item-deal.vue +++ b/src/views/modules/events/item-deal.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -211,6 +220,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { diff --git a/src/views/modules/events/item-end.vue b/src/views/modules/events/item-end.vue index 238614ad..2fd6e2fe 100755 --- a/src/views/modules/events/item-end.vue +++ b/src/views/modules/events/item-end.vue @@ -8,6 +8,7 @@ - { }) }, getCommunityList () { + if (this.dataForm.streetId === '') { + this.communityOptions = [] + this.gridOptions = [] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + return + } this.dataForm.communityId = '' this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { @@ -207,6 +216,11 @@ export default { }).catch(() => { }) }, getGridList () { + if (this.dataForm.communityId === '') { + this.gridOptions = [] + this.dataForm.gridId = '' + return + } this.dataForm.gridId = '' this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) {