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) {