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; + } + }); },