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) {