From 763977bfe8d9f1aa64b7cecd70fb4f3000439a7a Mon Sep 17 00:00:00 2001 From: liuminjian <517059477@qq.com> Date: Fri, 30 Dec 2022 15:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E7=BB=9F=E8=AE=A1=E5=A1=AB=E6=8A=A5=E7=94=B3=E6=8A=A5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sunVillage_info/statistical_report_edit.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/sunVillage_info/statistical_report_edit.vue b/src/views/sunVillage_info/statistical_report_edit.vue index 874da81b..0528892d 100644 --- a/src/views/sunVillage_info/statistical_report_edit.vue +++ b/src/views/sunVillage_info/statistical_report_edit.vue @@ -283,8 +283,14 @@ export default { }, created() { this.getDicts("declaration_type_id").then(response => { - - this.declarationTypeIdOptions = response.data; + let content = response.data + this.declarationTypeIdOptions = content; + + if(content.length>0){ + this.from.declarationTypeId = content[0].dictValue; + this.declarationTypeValue = content[0].dictLabel; + } + }); },