|
|
@ -29,153 +29,154 @@ |
|
|
|
:contentStyle="{}" |
|
|
|
ref="descriptions" |
|
|
|
> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('sluiceName')"> |
|
|
|
<template slot="label"> 水闸名称 </template> |
|
|
|
{{ this.form.sluiceName }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('embankmentName')"> |
|
|
|
<template slot="label"> 堤防名称 </template> |
|
|
|
{{ this.form.embankmentName }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('adcd')"> |
|
|
|
<template slot="label"> 行政区划 </template> |
|
|
|
{{ this.form.adcd }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('adcdStart')"> |
|
|
|
<template slot="label"> 起点行政区划 </template> |
|
|
|
{{ this.form.adcdStart }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('sluiceCode')"> |
|
|
|
<template slot="label"> 水闸编码 </template> |
|
|
|
{{ this.form.sluiceCode }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('embankmentCode')"> |
|
|
|
<template slot="label"> 堤防编码 </template> |
|
|
|
{{ this.form.embankmentCode }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('location')"> |
|
|
|
<template slot="label"> 所在位置 </template> |
|
|
|
{{ locationFormat(this.form.location) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('plotEmbankments')"> |
|
|
|
<template slot="label"> 标绘堤防 </template> |
|
|
|
{{ this.form.plotEmbankments }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('plottingSluice')"> |
|
|
|
<template slot="label"> 标绘水闸 </template> |
|
|
|
{{ this.form.plottingSluice }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('adcdEnd')"> |
|
|
|
<template slot="label"> 终点行政区划 </template> |
|
|
|
{{ this.form.adcdEnd }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('acceptanceStatus')"> |
|
|
|
<template slot="label"> 验收情况 </template> |
|
|
|
{{ acceptanceStatusFormat(this.form) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('startingStationNumber')"> |
|
|
|
<template slot="label"> 起点桩号 </template> |
|
|
|
{{ this.form.startingStationNumber }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('completionTime')"> |
|
|
|
<template slot="label"> 建成时间 </template> |
|
|
|
{{ this.form.completionTime }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('completionAcceptanceTime')" |
|
|
|
> |
|
|
|
<template slot="label"> 竣工验收时间 </template> |
|
|
|
{{ this.form.completionAcceptanceTime }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('riskEliminationStatus')"> |
|
|
|
<template slot="label"> 除险加固情况 </template> |
|
|
|
{{ riskEliminationStatusFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('recentCompletionTime')"> |
|
|
|
<template slot="label"> 最近除险加固完工时间 </template> |
|
|
|
{{ this.form.recentCompletionTime }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('endStationNumber')"> |
|
|
|
<template slot="label"> 终点桩号 </template> |
|
|
|
{{ this.form.endStationNumber }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('isHubProject')"> |
|
|
|
<template slot="label"> 是否为枢纽工程 </template> |
|
|
|
{{ isHubProjectFormat(this.form) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('embankmentType')"> |
|
|
|
<template slot="label"> 堤防类型 </template> |
|
|
|
{{ endStationNumberFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('hubBuildings')"> |
|
|
|
<template slot="label"> 枢纽建筑物 </template> |
|
|
|
{{ hubBuildingsFormat(this.form.hubBuildings) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('riverLocation')"> |
|
|
|
<template slot="label"> 所在河流 </template> |
|
|
|
{{ this.form.riverLocation }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('isGateStation')"> |
|
|
|
<template slot="label"> 是否为闸站工程 </template> |
|
|
|
{{ isGateStationFormat(this.form) }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('riversideClassification')" |
|
|
|
> |
|
|
|
<template slot="label"> 河流岸别 </template> |
|
|
|
{{ riversideClassificationFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('isSetGateProject')"> |
|
|
|
<template slot="label"> 是否为套闸工程 </template> |
|
|
|
{{ isSetGateProjectFormat(this.form) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('lakeName')"> |
|
|
|
<template slot="label"> 所在湖泊名称 </template> |
|
|
|
{{ this.form.lakeName }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('auxiliaryGateHoles')"> |
|
|
|
<template slot="label"> 副闸闸孔数量(孔) </template> |
|
|
|
{{ this.form.auxiliaryGateHoles }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('coastlineName')"> |
|
|
|
<template slot="label"> 所在海岸名称 </template> |
|
|
|
{{ this.form.coastlineName }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('auxiliaryGateHolesWidth')" |
|
|
|
:contentClassName="isDiff('isFloodStorageDetention')" |
|
|
|
> |
|
|
|
<template slot="label"> 副闸闸孔总净宽(m) </template> |
|
|
|
{{ this.form.auxiliaryGateHolesWidth }} |
|
|
|
<template slot="label"> 是否为蓄滞洪区堤防 </template> |
|
|
|
{{ isFloodStorageDetentionFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('sluiceType')"> |
|
|
|
<template slot="label"> 水闸类型 </template> |
|
|
|
{{ sluiceTypeFormat(this.form.sluiceType) }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('storageDetentionAreaName')" |
|
|
|
> |
|
|
|
<template slot="label"> 所在蓄滞洪区名称 </template> |
|
|
|
{{ this.form.storageDetentionAreaName }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('designGateFlow')"> |
|
|
|
<template slot="label"> 设计过闸流量 </template> |
|
|
|
{{ this.form.designGateFlow }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('areaStartingStationNumber')" |
|
|
|
> |
|
|
|
<template slot="label"> 堤防蓄滞洪区段起点桩号 </template> |
|
|
|
{{ this.form.areaStartingStationNumber }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('verifiedGateFlow')"> |
|
|
|
<template slot="label"> 校核过闸流量 </template> |
|
|
|
{{ this.form.verifiedGateFlow }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('areaEndStationNumber')"> |
|
|
|
<template slot="label"> 堤防蓄滞洪区段终点桩号 </template> |
|
|
|
{{ this.form.areaEndStationNumber }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('projectScale')"> |
|
|
|
<template slot="label"> 工程规模 </template> |
|
|
|
{{ projectScaleFormat(this.form) }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('totalLengthFloodStorage')" |
|
|
|
> |
|
|
|
<template slot="label"> 堤防蓄滞洪区段总长度(m) </template> |
|
|
|
{{ this.form.totalLengthFloodStorage }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('buildingLevel')"> |
|
|
|
<template slot="label"> 建筑物级别 </template> |
|
|
|
{{ buildingLevelFormat(this.form) }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('floodStorageDetentionAreasExplanation')" |
|
|
|
> |
|
|
|
<template slot="label"> 蓄滞洪区特殊情况说明 </template> |
|
|
|
{{ this.form.floodStorageDetentionAreasExplanation }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('designStandards')"> |
|
|
|
<template slot="label"> 设计标准[重现期] </template> |
|
|
|
{{ this.form.designStandards }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('crossBorderSituation')"> |
|
|
|
<template slot="label"> 堤防跨界情况 </template> |
|
|
|
{{ crossBorderSituationFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('verificationStandards')"> |
|
|
|
<template slot="label"> 校核标准[重现期] </template> |
|
|
|
{{ this.form.verificationStandards }} |
|
|
|
|
|
|
|
<el-descriptions-item :contentClassName="isDiff('embankmentTyper')"> |
|
|
|
<template slot="label"> 堤防型式 </template> |
|
|
|
{{ embankmentTyperFormat(this.form.embankmentTyper) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('historicalMaximumGate')"> |
|
|
|
<template slot="label"> 历史最大过闸流量(m³/s) </template> |
|
|
|
{{ this.form.historicalMaximumGate }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('completionTime')"> |
|
|
|
<template slot="label"> 建成时间 </template> |
|
|
|
{{ this.form.completionTime }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('historicalMaximumDate')"> |
|
|
|
<template slot="label"> 历史最大过闸流量日期 </template> |
|
|
|
{{ this.form.historicalMaximumDate }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('recentComplianceReinforcementStatus')" |
|
|
|
> |
|
|
|
<template slot="label"> 最近达标加固完工状态 </template> |
|
|
|
{{ this.form.recentComplianceReinforcementStatus }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('designSeismicIntensity')" |
|
|
|
:contentClassName="isDiff('recentComplianceReinforcementTime')" |
|
|
|
> |
|
|
|
<template slot="label"> 设计地震烈度 </template> |
|
|
|
{{ this.form.designSeismicIntensity }} |
|
|
|
<template slot="label"> 最近达标加固完成时间 </template> |
|
|
|
{{ this.form.recentComplianceReinforcementTime }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('gateHolesNumber')"> |
|
|
|
<template slot="label"> 闸孔数量 </template> |
|
|
|
{{ this.form.gateHolesNumber }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('engineeringTasks')"> |
|
|
|
<template slot="label"> 工程任务 </template> |
|
|
|
{{ engineeringTasksFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('gateHoleWidth')"> |
|
|
|
<template slot="label"> 闸孔总净宽(m) </template> |
|
|
|
{{ this.form.gateHoleWidth }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('embankmentLevel')"> |
|
|
|
<template slot="label"> 堤防级别 </template> |
|
|
|
{{ embankmentLevelFormat(this.form) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('hoistsNumber')"> |
|
|
|
<template slot="label"> 启闭机数量 </template> |
|
|
|
{{ this.form.hoistsNumber }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('designFloodControl')"> |
|
|
|
<template slot="label"> 设计防洪 </template> |
|
|
|
{{ this.form.designFloodControl }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('observationProject')"> |
|
|
|
<template slot="label"> 观测项目 </template> |
|
|
|
{{ observationProjectFormat(this.form.observationProject) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('embankmentLength')"> |
|
|
|
<template slot="label"> 堤防长度(m) </template> |
|
|
|
{{ this.form.embankmentLength }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('lockChamberStructure')"> |
|
|
|
<template slot="label"> 闸室结构 </template> |
|
|
|
{{ lockChamberStructureFormat(this.form.lockChamberStructure) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('planningFloodControl')"> |
|
|
|
<template slot="label"> 规划防洪 </template> |
|
|
|
{{ this.form.planningFloodControl }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('gateType')"> |
|
|
|
<template slot="label"> 闸门型式 </template> |
|
|
|
{{ gateTypeFormat(this.form.gateType) }} |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('embankmentLengthPlanningStandards')" |
|
|
|
> |
|
|
|
<template slot="label"> 达到规划标准的堤防长度(m) </template> |
|
|
|
{{ this.form.embankmentLengthPlanningStandards }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('machineForm')"> |
|
|
|
<template slot="label"> 启闭机形式 </template> |
|
|
|
{{ machineFormFormat(this.form.machineForm) }} |
|
|
|
<el-descriptions-item :contentClassName="isDiff('populationProtection')"> |
|
|
|
<template slot="label"> 保护人口 </template> |
|
|
|
{{ this.form.populationProtection }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('protectingFarmland')"> |
|
|
|
<template slot="label"> 保护农田 </template> |
|
|
|
{{ this.form.protectingFarmland }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item |
|
|
|
:contentClassName="isDiff('energyDissipationMethod')" |
|
|
|
:contentClassName="isDiff('criticalInfrastructure')" |
|
|
|
> |
|
|
|
<template slot="label"> 消能方式 </template> |
|
|
|
{{ energyDissipationMethodFormat(this.form.energyDissipationMethod) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('automationControl')"> |
|
|
|
<template slot="label"> 自动化控制 </template> |
|
|
|
{{ automationControlFormat(this.form.automationControl) }} |
|
|
|
<template slot="label"> 重要基础设施 </template> |
|
|
|
{{ this.form.criticalInfrastructure }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item :contentClassName="isDiff('relation')"> |
|
|
|
<template slot="label"> 关联字段1 </template> |
|
|
@ -185,7 +186,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { getSluiceCompare } from "@/api/yg/sluiceCompare"; |
|
|
|
import { getDikeCompare } from "@/api/yg/dikeCompare"; |
|
|
|
export default { |
|
|
|
props: ["baseData"], |
|
|
|
inject: ["getDiff", "granParentEle"], |
|
|
@ -194,38 +195,22 @@ export default { |
|
|
|
histroy: "当前版本", |
|
|
|
sumData: [], |
|
|
|
form: {}, |
|
|
|
// 所在位置字典 |
|
|
|
locationOptions: [], |
|
|
|
// 验收情况字典 |
|
|
|
acceptanceStatusOptions: [], |
|
|
|
// 除险加固情况字典 |
|
|
|
riskEliminationStatusOptions: [], |
|
|
|
// 是否为枢纽工程字典 |
|
|
|
isHubProjectOptions: [], |
|
|
|
// 是否为闸站工程字典 |
|
|
|
isGateStationOptions: [], |
|
|
|
// 是否为套闸工程字典 |
|
|
|
isSetGateProjectOptions: [], |
|
|
|
// 水闸类型字典 |
|
|
|
sluiceTypeOptions: [], |
|
|
|
// 工程规模字典 |
|
|
|
projectScaleOptions: [], |
|
|
|
// 建筑物级别字典 |
|
|
|
buildingLevelOptions: [], |
|
|
|
// 闸门型式字典 |
|
|
|
gateTypeOptions: [], |
|
|
|
// 观测项目字典 |
|
|
|
observationProjectOptions: [], |
|
|
|
// 闸室结构字典 |
|
|
|
lockChamberStructureOptions: [], |
|
|
|
// 启闭机形式字典 |
|
|
|
machineFormOptions: [], |
|
|
|
// 消能方式字典 |
|
|
|
energyDissipationMethodOptions: [], |
|
|
|
// 自动化控制字典 |
|
|
|
automationControlOptions: [], |
|
|
|
// 枢纽建筑物字典 |
|
|
|
hubBuildingsOptions: [], |
|
|
|
// 堤防类型字典 |
|
|
|
embankmentTypeOptions: [], |
|
|
|
// 河流岸别字典 |
|
|
|
riversideClassificationOptions: [], |
|
|
|
// 是否为蓄滞洪区堤防字典 |
|
|
|
isFloodStorageDetentionOptions: [], |
|
|
|
// 堤防跨界情况字典 |
|
|
|
crossBorderSituationOptions: [], |
|
|
|
// 堤防型式字典 |
|
|
|
embankmentTyperOptions: [], |
|
|
|
// 最近达标加固完工状态字典 |
|
|
|
recentComplianceReinforcementStatusOptions: [], |
|
|
|
// 工程任务字典 |
|
|
|
engineeringTasksOptions: [], |
|
|
|
// 堤防级别字典 |
|
|
|
embankmentLevelOptions: [], |
|
|
|
diffPart: [], |
|
|
|
}; |
|
|
|
}, |
|
|
@ -238,7 +223,7 @@ export default { |
|
|
|
console.log("this.diffPart in basePage", this.diffPart); |
|
|
|
} |
|
|
|
|
|
|
|
getSluiceCompare(this.$route.query.sluiceCode).then((res) => { |
|
|
|
getDikeCompare(this.$route.query.embankmentCode).then((res) => { |
|
|
|
this.sumData = res.data.jbxx; |
|
|
|
console.log("this.sumData in basePage", this.sumData); |
|
|
|
// res.data.jbxx.map((item) => { |
|
|
@ -249,53 +234,29 @@ export default { |
|
|
|
// }); |
|
|
|
}); |
|
|
|
|
|
|
|
this.getDicts("location").then((response) => { |
|
|
|
this.locationOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("completion_acceptance_status").then((response) => { |
|
|
|
this.acceptanceStatusOptions = response.data; |
|
|
|
this.getDicts("embankment_type").then((response) => { |
|
|
|
this.embankmentTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("reinforcement_situation").then((response) => { |
|
|
|
this.riskEliminationStatusOptions = response.data; |
|
|
|
this.getDicts("riverside_classification").then((response) => { |
|
|
|
this.riversideClassificationOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("whether").then((response) => { |
|
|
|
this.isHubProjectOptions = response.data; |
|
|
|
this.isFloodStorageDetentionOptions = 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("observation_project").then((response) => { |
|
|
|
this.observationProjectOptions = response.data; |
|
|
|
this.getDicts("cross_border_situation").then((response) => { |
|
|
|
this.crossBorderSituationOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("Lock_chamber_structure").then((response) => { |
|
|
|
this.lockChamberStructureOptions = response.data; |
|
|
|
this.getDicts("embankment_form").then((response) => { |
|
|
|
this.embankmentTyperOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("machine_form").then((response) => { |
|
|
|
this.machineFormOptions = response.data; |
|
|
|
this.getDicts("reach_the_standard").then((response) => { |
|
|
|
this.recentComplianceReinforcementStatusOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("energy_dissipation_method").then((response) => { |
|
|
|
this.energyDissipationMethodOptions = response.data; |
|
|
|
this.getDicts("project_task").then((response) => { |
|
|
|
this.engineeringTasksOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("automation_control").then((response) => { |
|
|
|
this.automationControlOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("Hub_buildings").then((response) => { |
|
|
|
this.hubBuildingsOptions = response.data; |
|
|
|
this.getDicts("embankment_level").then((response) => { |
|
|
|
this.embankmentLevelOptions = response.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -341,156 +302,60 @@ export default { |
|
|
|
chooseEdition(data) { |
|
|
|
this.form = data; |
|
|
|
}, |
|
|
|
// 所在位置字典翻译 |
|
|
|
locationFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
// console.log("XXXXXXXXXXXXXXXXXXXXXX", data); |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = res + "+" + this.selectDictLabel(this.locationOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 验收情况字典翻译 |
|
|
|
acceptanceStatusFormat(row, column) { |
|
|
|
// 堤防类型字典翻译 |
|
|
|
endStationNumberFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.acceptanceStatusOptions, |
|
|
|
row.acceptanceStatus |
|
|
|
this.embankmentTypeOptions, |
|
|
|
row.embankmentType |
|
|
|
); |
|
|
|
}, |
|
|
|
// 除险加固情况字典翻译 |
|
|
|
riskEliminationStatusFormat(row, column) { |
|
|
|
// 河流岸别字典翻译 |
|
|
|
riversideClassificationFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.riskEliminationStatusOptions, |
|
|
|
row.riskEliminationStatus |
|
|
|
this.riversideClassificationOptions, |
|
|
|
row.riversideClassification |
|
|
|
); |
|
|
|
}, |
|
|
|
// 是否为枢纽工程字典翻译 |
|
|
|
isHubProjectFormat(row, column) { |
|
|
|
return this.selectDictLabel(this.isHubProjectOptions, row.isHubProject); |
|
|
|
}, |
|
|
|
// 枢纽建筑物字典翻译 |
|
|
|
hubBuildingsFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = |
|
|
|
res + "+" + this.selectDictLabel(this.hubBuildingsOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 是否为闸站工程字典翻译 |
|
|
|
isGateStationFormat(row, column) { |
|
|
|
return this.selectDictLabel(this.isGateStationOptions, row.isGateStation); |
|
|
|
}, |
|
|
|
// 是否为套闸工程字典翻译 |
|
|
|
isSetGateProjectFormat(row, column) { |
|
|
|
// 是否为蓄滞洪区堤防字典翻译 |
|
|
|
isFloodStorageDetentionFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.isSetGateProjectOptions, |
|
|
|
row.isSetGateProject |
|
|
|
this.isFloodStorageDetentionOptions, |
|
|
|
row.isFloodStorageDetention |
|
|
|
); |
|
|
|
}, |
|
|
|
// 水闸类型字典翻译 |
|
|
|
sluiceTypeFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = res + "+" + this.selectDictLabel(this.sluiceTypeOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 工程规模字典翻译 |
|
|
|
projectScaleFormat(row, column) { |
|
|
|
return this.selectDictLabel(this.projectScaleOptions, row.projectScale); |
|
|
|
}, |
|
|
|
// 建筑物级别字典翻译 |
|
|
|
buildingLevelFormat(row, column) { |
|
|
|
return this.selectDictLabel(this.buildingLevelOptions, row.buildingLevel); |
|
|
|
}, |
|
|
|
// 闸门型式字典翻译 |
|
|
|
gateTypeFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = res + "+" + this.selectDictLabel(this.gateTypeOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 观测项目字典翻译 |
|
|
|
observationProjectFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = |
|
|
|
res + |
|
|
|
"+" + |
|
|
|
this.selectDictLabel(this.observationProjectOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
// 堤防跨界情况字典翻译 |
|
|
|
crossBorderSituationFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.crossBorderSituationOptions, |
|
|
|
row.crossBorderSituation |
|
|
|
); |
|
|
|
}, |
|
|
|
// 闸室结构字典翻译 |
|
|
|
lockChamberStructureFormat(data) { |
|
|
|
// 堤防型式字典翻译 |
|
|
|
embankmentTyperFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
// console.log("XXXXXXXXXXXXXXXXXXXXXX", data); |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = |
|
|
|
res + |
|
|
|
"+" + |
|
|
|
this.selectDictLabel(this.lockChamberStructureOptions, item); |
|
|
|
res + "+" + this.selectDictLabel(this.embankmentTyperOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 启闭机形式字典翻译 |
|
|
|
machineFormFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = res + "+" + this.selectDictLabel(this.machineFormOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 消能方式字典翻译 |
|
|
|
energyDissipationMethodFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = |
|
|
|
res + |
|
|
|
"+" + |
|
|
|
this.selectDictLabel(this.energyDissipationMethodOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
// 工程任务字典翻译 |
|
|
|
engineeringTasksFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.engineeringTasksOptions, |
|
|
|
row.engineeringTasks |
|
|
|
); |
|
|
|
}, |
|
|
|
// 自动化控制字典翻译 |
|
|
|
automationControlFormat(data) { |
|
|
|
let res = ""; |
|
|
|
let arr = data ? JSON.parse(data) : []; |
|
|
|
if (arr) { |
|
|
|
arr.forEach((item) => { |
|
|
|
res = |
|
|
|
res + |
|
|
|
"+" + |
|
|
|
this.selectDictLabel(this.automationControlOptions, item); |
|
|
|
}); |
|
|
|
return res.slice(1); |
|
|
|
} |
|
|
|
// 堤防级别字典翻译 |
|
|
|
embankmentLevelFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.embankmentLevelOptions, |
|
|
|
row.embankmentLevel |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|