diff --git a/src/views/dike/safeOperation/components/BaseInfo.vue b/src/views/dike/safeOperation/components/BaseInfo.vue
index 945e2ee..869d5a9 100644
--- a/src/views/dike/safeOperation/components/BaseInfo.vue
+++ b/src/views/dike/safeOperation/components/BaseInfo.vue
@@ -405,6 +405,7 @@ export default {
dikeTypeOptions: [],
engGradOptions: [],
mainBuildGradOptions: [],
+ departmentOptions: [],
};
},
watch: {
@@ -440,6 +441,9 @@ export default {
this.getDicts("building_level").then((response) => {
this.mainBuildGradOptions = response.data;
});
+ this.getDicts("centralized_management_department").then((response) => {
+ this.departmentOptions = response.data;
+ });
},
// 堤防型式字典翻译
dikePattFormat(row, column) {
@@ -463,6 +467,9 @@ export default {
engGradFormat(row, column) {
return this.selectDictLabel(this.engGradOptions, row.dikeGrad);
},
+ departmentFormat(row, column) {
+ return this.selectDictLabel(this.departmentOptions, row.admDep);
+ },
initBaseInfo() {
getJbxx(this.resCode).then((res) => {
if (res?.data) {
diff --git a/src/views/dike/safeOperation/components/DataStatistics.vue b/src/views/dike/safeOperation/components/DataStatistics.vue
index aa27d71..3a5e526 100644
--- a/src/views/dike/safeOperation/components/DataStatistics.vue
+++ b/src/views/dike/safeOperation/components/DataStatistics.vue
@@ -107,7 +107,7 @@ export default {
data() {
return {
cascaderOptions: [],
- showType: "1",
+ showType: "2",
cascaderArr: [],
dateArr: "",
cascaderProps: {
diff --git a/src/views/reservoir/safeOperation/components/BaseInfo.vue b/src/views/reservoir/safeOperation/components/BaseInfo.vue
index 0e60a99..05bfc60 100644
--- a/src/views/reservoir/safeOperation/components/BaseInfo.vue
+++ b/src/views/reservoir/safeOperation/components/BaseInfo.vue
@@ -60,7 +60,7 @@
归口管理部门
- {{ this.form.admDep }}
+ {{ departmentFormat(this.form) }}
水库主管部门
@@ -116,7 +116,7 @@
工程建设情况
- {{ this.form.engStat }}
+ {{ situationFormat(this.form) }}
有效年份
@@ -586,6 +586,8 @@ export default {
projTypeOptions: [],
projectScaleOptions: [],
engineerLevelOptions: [],
+ departmentList: [],
+ constructSituationOptions: [],
};
},
watch: {
@@ -618,6 +620,12 @@ export default {
this.getDicts("engineering_grade").then((response) => {
this.engineerLevelOptions = response.data;
});
+ this.getDicts("centralized_management_department").then((response) => {
+ this.departmentList = response.data;
+ });
+ this.getDicts("res_engineering_construct_situation").then((response) => {
+ this.constructSituationOptions = response.data;
+ });
},
// 工程类型
projTypeFormat(row, column) {
@@ -631,6 +639,14 @@ export default {
engineerLevelFormat(row, column) {
return this.selectDictLabel(this.engineerLevelOptions, row.engGrad);
},
+ // 归口部门字典翻译
+ departmentFormat(row, column) {
+ return this.selectDictLabel(this.departmentList, row.admDep);
+ },
+ // 建筑情况字典翻译
+ situationFormat(row, column) {
+ return this.selectDictLabel(this.constructSituationOptions, row.engStat);
+ },
initBaseInfo() {
getReservoirBaseDetailData(this.resCode).then((res) => {
if (res?.data) {
diff --git a/src/views/reservoir/safeOperation/components/DataStatistics.vue b/src/views/reservoir/safeOperation/components/DataStatistics.vue
index 7c54fcd..336dcc4 100644
--- a/src/views/reservoir/safeOperation/components/DataStatistics.vue
+++ b/src/views/reservoir/safeOperation/components/DataStatistics.vue
@@ -111,7 +111,7 @@ export default {
data() {
return {
cascaderOptions: [],
- showType: "1",
+ showType: "2",
cascaderArr: [],
dateArr: "",
cascaderProps: {
diff --git a/src/views/sluice/safeOperation/components/BaseInfo.vue b/src/views/sluice/safeOperation/components/BaseInfo.vue
index 6347b5e..97337d8 100644
--- a/src/views/sluice/safeOperation/components/BaseInfo.vue
+++ b/src/views/sluice/safeOperation/components/BaseInfo.vue
@@ -289,12 +289,12 @@ export default {
this.getDicts("building_level").then((response) => {
this.majorStructureLevelOptions = response.data;
});
- this.getDicts("centralized_management_department").then((response) => {
- this.departmentOptions = response.data;
- });
this.getDicts("design_seismic_intensity").then((response) => {
this.intensityOptions = response.data;
});
+ this.getDicts("centralized_management_department").then((response) => {
+ this.departmentOptions = response.data;
+ });
},
// 水闸类型字典翻译
sluiceTypeFormat(row, column) {
diff --git a/src/views/sluice/safeOperation/components/DataStatistics.vue b/src/views/sluice/safeOperation/components/DataStatistics.vue
index a32006c..5c64ef3 100644
--- a/src/views/sluice/safeOperation/components/DataStatistics.vue
+++ b/src/views/sluice/safeOperation/components/DataStatistics.vue
@@ -107,7 +107,7 @@ export default {
data() {
return {
cascaderOptions: [],
- showType: "1",
+ showType: "2",
cascaderArr: [],
dateArr: "",
cascaderProps: {