From f1a2cd5979c198594b5fe3183795e63bcb6034f4 Mon Sep 17 00:00:00 2001 From: panyuyi Date: Thu, 20 Mar 2025 20:09:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Main/Reservoir/components/BaseInfo.vue | 9 ++++++++- src/views/Main/Reservoir/index.vue | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/Main/Reservoir/components/BaseInfo.vue b/src/views/Main/Reservoir/components/BaseInfo.vue index 6759466..0e50f47 100644 --- a/src/views/Main/Reservoir/components/BaseInfo.vue +++ b/src/views/Main/Reservoir/components/BaseInfo.vue @@ -106,7 +106,7 @@ - {{ form.engStat }} + {{ engStateFormat(form.engStat) }} @@ -566,6 +566,10 @@ const props = defineProps({ type: Array<{ dictLabel: string; dictValue: string }>, default: [], }, + situationOptions: { + type: Array<{ dictLabel: string; dictValue: string }>, + default: [], + }, }); let myChart: any = null; let code: any = null; @@ -747,6 +751,9 @@ function scaleFormat(key: string) { function departmentFormat(key: string) { return getDictLabel(props.departmentOptions, key); } +function engStateFormat(key: string) { + return getDictLabel(props.situationOptions, key); +} watch( () => props.resCode, diff --git a/src/views/Main/Reservoir/index.vue b/src/views/Main/Reservoir/index.vue index b91df21..ae10bb3 100644 --- a/src/views/Main/Reservoir/index.vue +++ b/src/views/Main/Reservoir/index.vue @@ -28,6 +28,7 @@ :projTypeOptions="projTypeOptions" :scaleOptions="scaleOptions" :departmentOptions="departmentOptions" + :situationOptions="situationOptions" @getResInfo="handleGetResInfo" > @@ -117,6 +118,7 @@ const gradeOptions = ref([]); const projTypeOptions = ref([]); const scaleOptions = ref([]); const departmentOptions = ref([]); +const situationOptions = ref([]); function initDict() { getDicts("reservoir_type").then((res) => { projTypeOptions.value = res || []; @@ -130,6 +132,9 @@ function initDict() { getDicts("centralized_management_department").then((res) => { departmentOptions.value = res || []; }); + getDicts("res_engineering_construct_situation").then((res) => { + situationOptions.value = res || []; + }); } function scaleFormat(key: string) {