From c17eb6a55b9a0fc5603f3c87dca2c66e8df4696d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=91=E9=B9=8F?= Date: Fri, 29 Nov 2019 19:45:22 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/events/issue-change-list.vue | 14 +++++++++++--- src/views/modules/events/issue-close-list.vue | 14 +++++++++++--- src/views/modules/events/issue-process-list.vue | 14 +++++++++++--- src/views/modules/events/issue-reject-list.vue | 14 +++++++++++--- src/views/modules/events/issue-review-list.vue | 14 +++++++++++--- src/views/modules/events/item-close-list.vue | 14 +++++++++++--- src/views/modules/events/item-deal-list.vue | 8 ++++++++ src/views/modules/events/item-end-list.vue | 14 +++++++++++--- src/views/modules/group/leaderboard.vue | 14 +++++++++++--- 9 files changed, 96 insertions(+), 24 deletions(-) diff --git a/src/views/modules/events/issue-change-list.vue b/src/views/modules/events/issue-change-list.vue index ce408523..34ea04d8 100644 --- a/src/views/modules/events/issue-change-list.vue +++ b/src/views/modules/events/issue-change-list.vue @@ -156,14 +156,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/events/issue-close-list.vue b/src/views/modules/events/issue-close-list.vue index 76839320..a85c315f 100644 --- a/src/views/modules/events/issue-close-list.vue +++ b/src/views/modules/events/issue-close-list.vue @@ -157,14 +157,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/events/issue-process-list.vue b/src/views/modules/events/issue-process-list.vue index 4057b941..20b76fbc 100644 --- a/src/views/modules/events/issue-process-list.vue +++ b/src/views/modules/events/issue-process-list.vue @@ -167,14 +167,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/events/issue-reject-list.vue b/src/views/modules/events/issue-reject-list.vue index dcac14c8..7657bd6a 100644 --- a/src/views/modules/events/issue-reject-list.vue +++ b/src/views/modules/events/issue-reject-list.vue @@ -136,14 +136,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/events/issue-review-list.vue b/src/views/modules/events/issue-review-list.vue index 757d0c7b..8746146a 100644 --- a/src/views/modules/events/issue-review-list.vue +++ b/src/views/modules/events/issue-review-list.vue @@ -136,14 +136,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/events/item-close-list.vue b/src/views/modules/events/item-close-list.vue index 45f29869..e3561751 100644 --- a/src/views/modules/events/item-close-list.vue +++ b/src/views/modules/events/item-close-list.vue @@ -157,14 +157,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/events/item-deal-list.vue b/src/views/modules/events/item-deal-list.vue index a8d8aa93..bd8c4a97 100644 --- a/src/views/modules/events/item-deal-list.vue +++ b/src/views/modules/events/item-deal-list.vue @@ -158,12 +158,20 @@ export default { }, watch: { 'ids': function (val) { + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } if (val.length === 3) { this.dataForm.streetId = this.ids[0] diff --git a/src/views/modules/events/item-end-list.vue b/src/views/modules/events/item-end-list.vue index 27f6f618..b3598958 100644 --- a/src/views/modules/events/item-end-list.vue +++ b/src/views/modules/events/item-end-list.vue @@ -158,14 +158,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/group/leaderboard.vue b/src/views/modules/group/leaderboard.vue index a285f29b..8ae31ce5 100644 --- a/src/views/modules/group/leaderboard.vue +++ b/src/views/modules/group/leaderboard.vue @@ -125,14 +125,22 @@ export default { this.getDataList() }, 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2]