From 1158c155ef0735c4ea6b09e0cedb9d826b8e24a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B2=E6=A0=91=E9=80=9A?= <1976590620@qq.com> Date: Wed, 4 Mar 2020 13:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BA=E5=91=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E5=8C=BA=E5=9F=9F=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/custom/gridoperatorinfo.vue | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/modules/custom/gridoperatorinfo.vue b/src/views/modules/custom/gridoperatorinfo.vue index 37831178..e2d0beda 100755 --- a/src/views/modules/custom/gridoperatorinfo.vue +++ b/src/views/modules/custom/gridoperatorinfo.vue @@ -153,25 +153,25 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 0) { + if (val.length === 0 || val.length === 1) { this.dataForm.streetId = '' this.dataForm.communityId = '' this.dataForm.gridId = '' } - if (val.length === 1) { - this.dataForm.streetId = this.ids[0] + if (val.length === 2) { + this.dataForm.streetId = this.ids[1] this.dataForm.communityId = '' this.dataForm.gridId = '' } - if (val.length === 2) { - this.dataForm.streetId = this.ids[0] - this.dataForm.communityId = this.ids[1] + if (val.length === 3) { + this.dataForm.streetId = '' + this.dataForm.communityId = this.ids[2] 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] + if (val.length === 4) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = this.ids[3] } } },