From b3582afa743fc8a60dd06291a697d57c117040a8 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 7 Nov 2022 18:00:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=8E=B0=E5=B1=85=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/epidemic/travelForm.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/modules/base/epidemic/travelForm.vue b/src/views/modules/base/epidemic/travelForm.vue index 95f59e153..af777fe1f 100644 --- a/src/views/modules/base/epidemic/travelForm.vue +++ b/src/views/modules/base/epidemic/travelForm.vue @@ -498,7 +498,12 @@ export default { } else { const { user } = this.$store.state - this.nowAllCode = user.areaCodePath + if (user.areaCodePath.length === 5) { + this.nowAllCode = [user.areaCodePath[0], user.areaCodePath[1], user.areaCodePath[2]] + } else { + this.nowAllCode = user.areaCodePath + } + } // this.$refs['ref_form'].resetFields(); From 313d0513ae41dd27d2d8cce41ae34e39a5a87673 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 7 Nov 2022 18:02:39 +0800 Subject: [PATCH 2/2] 11 --- src/views/modules/base/epidemic/travelForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/modules/base/epidemic/travelForm.vue b/src/views/modules/base/epidemic/travelForm.vue index af777fe1f..8242f3af6 100644 --- a/src/views/modules/base/epidemic/travelForm.vue +++ b/src/views/modules/base/epidemic/travelForm.vue @@ -498,7 +498,8 @@ export default { } else { const { user } = this.$store.state - if (user.areaCodePath.length === 5) { + + if (user.areaCodePath.length > 3) { this.nowAllCode = [user.areaCodePath[0], user.areaCodePath[1], user.areaCodePath[2]] } else { this.nowAllCode = user.areaCodePath