diff --git a/src/views/sluice/engineeringCondition/identificationPlate/index.vue b/src/views/sluice/engineeringCondition/identificationPlate/index.vue index 398cc01..049782a 100644 --- a/src/views/sluice/engineeringCondition/identificationPlate/index.vue +++ b/src/views/sluice/engineeringCondition/identificationPlate/index.vue @@ -1,3 +1,518 @@ + + diff --git a/src/views/sluice/engineeringCondition/sluiceBaseInfo/index.vue b/src/views/sluice/engineeringCondition/sluiceBaseInfo/index.vue index 1eeb567..8c5dc4f 100644 --- a/src/views/sluice/engineeringCondition/sluiceBaseInfo/index.vue +++ b/src/views/sluice/engineeringCondition/sluiceBaseInfo/index.vue @@ -41,8 +41,14 @@ placeholder="请选择水闸类型" clearable size="small" + @change="handleQuery" > - + @@ -147,36 +153,42 @@ label="验收情况" align="center" prop="acceptanceStatus" + :formatter="acceptanceStatusFormat" min-width="120" /> - 请选择字典生成 + {{ dict.dictLabel }} - 请选择字典生成 + {{ dict.dictLabel }} - + placeholder="请选择是否为枢纽工程" + style="width: 100%" + > + + - + placeholder="请选择是否为闸站工程" + style="width: 100%" + > + + - + placeholder="请选择是否为套闸工程" + style="width: 100%" + > + + @@ -489,7 +541,12 @@ placeholder="请选择水闸类型" style="width: 100%" > - + @@ -511,18 +568,34 @@ - + placeholder="请选择工程规模" + style="width: 100%" + > + + - + placeholder="请选择建筑物级别" + style="width: 100%" + > + + @@ -600,7 +673,12 @@ placeholder="请选择闸门型式" style="width: 100%" > - + @@ -622,26 +700,50 @@ - + placeholder="请选择闸室结构" + style="width: 100%" + > + + - + placeholder="请选择启闭机形式" + style="width: 100%" + > + + - + placeholder="请选择消能方式" + style="width: 100%" + > + + @@ -768,6 +870,30 @@ export default { title: "", // 是否显示弹出层 open: false, + // 验收情况字典 + acceptanceStatusOptions: [], + // 除险加固情况字典 + riskEliminationStatusOptions: [], + // 是否为枢纽工程字典 + isHubProjectOptions: [], + // 是否为闸站工程字典 + isGateStationOptions: [], + // 是否为套闸工程字典 + isSetGateProjectOptions: [], + // 水闸类型字典 + sluiceTypeOptions: [], + // 工程规模字典 + projectScaleOptions: [], + // 建筑物级别字典 + buildingLevelOptions: [], + // 闸门型式字典 + gateTypeOptions: [], + // 闸室结构字典 + lockChamberStructureOptions: [], + // 启闭机形式字典 + machineFormOptions: [], + // 消能方式字典 + energyDissipationMethodOptions: [], // 查询参数 queryParams: { pageNum: 1, @@ -816,6 +942,7 @@ export default { hubBuildings: null, auxiliaryGateHoles: null, auxiliaryGateHolesWidth: null, + recordLoseEfficacyTime: null, }, }, // 表单参数 @@ -833,6 +960,42 @@ export default { }, created() { this.getList(); + this.getDicts("completion_acceptance_status").then((response) => { + this.acceptanceStatusOptions = response.data; + }); + this.getDicts("reinforcement_situation").then((response) => { + this.riskEliminationStatusOptions = response.data; + }); + this.getDicts("whether").then((response) => { + this.isHubProjectOptions = response.data; + }); + this.getDicts("whether").then((response) => { + this.isGateStationOptions = response.data; + }); + this.getDicts("whether").then((response) => { + this.isSetGateProjectOptions = response.data; + }); + this.getDicts("sluice_type").then((response) => { + this.sluiceTypeOptions = response.data; + }); + this.getDicts("engineering_scale").then((response) => { + this.projectScaleOptions = response.data; + }); + this.getDicts("building_level").then((response) => { + this.buildingLevelOptions = response.data; + }); + this.getDicts("gate_type").then((response) => { + this.gateTypeOptions = response.data; + }); + this.getDicts("Lock_chamber_structure").then((response) => { + this.lockChamberStructureOptions = response.data; + }); + this.getDicts("machine_form").then((response) => { + this.machineFormOptions = response.data; + }); + this.getDicts("energy_dissipation_method").then((response) => { + this.energyDissipationMethodOptions = response.data; + }); }, methods: { /** 查询水闸工程基础信息列表 */ @@ -844,6 +1007,69 @@ export default { this.loading = false; }); }, + // 验收情况字典翻译 + acceptanceStatusFormat(row, column) { + return this.selectDictLabel( + this.acceptanceStatusOptions, + row.acceptanceStatus + ); + }, + // 除险加固情况字典翻译 + riskEliminationStatusFormat(row, column) { + return this.selectDictLabel( + this.riskEliminationStatusOptions, + row.riskEliminationStatus + ); + }, + // 是否为枢纽工程字典翻译 + isHubProjectFormat(row, column) { + return this.selectDictLabel(this.isHubProjectOptions, row.isHubProject); + }, + // 是否为闸站工程字典翻译 + isGateStationFormat(row, column) { + return this.selectDictLabel(this.isGateStationOptions, row.isGateStation); + }, + // 是否为套闸工程字典翻译 + isSetGateProjectFormat(row, column) { + return this.selectDictLabel( + this.isSetGateProjectOptions, + row.isSetGateProject + ); + }, + // 水闸类型字典翻译 + sluiceTypeFormat(row, column) { + return this.selectDictLabel(this.sluiceTypeOptions, row.sluiceType); + }, + // 工程规模字典翻译 + projectScaleFormat(row, column) { + return this.selectDictLabel(this.projectScaleOptions, row.projectScale); + }, + // 建筑物级别字典翻译 + buildingLevelFormat(row, column) { + return this.selectDictLabel(this.buildingLevelOptions, row.buildingLevel); + }, + // 闸门型式字典翻译 + gateTypeFormat(row, column) { + return this.selectDictLabel(this.gateTypeOptions, row.gateType); + }, + // 闸室结构字典翻译 + lockChamberStructureFormat(row, column) { + return this.selectDictLabel( + this.lockChamberStructureOptions, + row.lockChamberStructure + ); + }, + // 启闭机形式字典翻译 + machineFormFormat(row, column) { + return this.selectDictLabel(this.machineFormOptions, row.machineForm); + }, + // 消能方式字典翻译 + energyDissipationMethodFormat(row, column) { + return this.selectDictLabel( + this.energyDissipationMethodOptions, + row.energyDissipationMethod + ); + }, // 取消按钮 cancel() { this.open = false;