From 23e8b1fb7bc8784e4e2f99b3b509adeb8d3711fb Mon Sep 17 00:00:00 2001 From: yujt Date: Mon, 15 Jun 2020 17:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=83=A8=E9=97=A8=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/events/item-close-list.vue | 25 ++++---------------- src/views/modules/events/item-deal-list.vue | 25 ++++---------------- src/views/modules/events/item-end-list.vue | 25 ++++---------------- 3 files changed, 12 insertions(+), 63 deletions(-) diff --git a/src/views/modules/events/item-close-list.vue b/src/views/modules/events/item-close-list.vue index 924bde5..42bc295 100644 --- a/src/views/modules/events/item-close-list.vue +++ b/src/views/modules/events/item-close-list.vue @@ -175,9 +175,7 @@ export default { itemState: '5', startTime: '', endTime: '', - streetId: '', - communityId: '', - gridId: '', + deptId: '', itemCode: '' }, ids: [], @@ -210,24 +208,9 @@ 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] - this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = this.ids[2] + this.dataForm.deptId = '' + } else { + this.dataForm.deptId = this.ids[val.length - 1] } } }, diff --git a/src/views/modules/events/item-deal-list.vue b/src/views/modules/events/item-deal-list.vue index 67d5fed..3f4d6a5 100644 --- a/src/views/modules/events/item-deal-list.vue +++ b/src/views/modules/events/item-deal-list.vue @@ -177,9 +177,7 @@ export default { itemState: '0', startTime: '', endTime: '', - streetId: '', - communityId: '', - gridId: '', + deptId: '', itemCode: '' }, ids: [], @@ -211,24 +209,9 @@ 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] - this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = this.ids[2] + this.dataForm.deptId = '' + } else { + this.dataForm.deptId = this.ids[val.length - 1] } } }, diff --git a/src/views/modules/events/item-end-list.vue b/src/views/modules/events/item-end-list.vue index ad51b85..56035f7 100644 --- a/src/views/modules/events/item-end-list.vue +++ b/src/views/modules/events/item-end-list.vue @@ -182,9 +182,7 @@ export default { itemState: '10', startTime: '', endTime: '', - streetId: '', - communityId: '', - gridId: '', + deptId: '', itemCode: '' }, detailVisible: false, @@ -217,24 +215,9 @@ 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] - this.dataForm.communityId = this.ids[1] - this.dataForm.gridId = this.ids[2] + this.dataForm.deptId = '' + } else { + this.dataForm.deptId = this.ids[val.length - 1] } } },