diff --git a/package.json b/package.json index 2038ac0..9983f87 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "d3": "^5.0.0", "d3-flextree": "^2.1.2", "echarts": "4.2.1", + "element-china-area-data": "^6.1.0", "element-ui": "^2.15.6", "file-saver": "2.0.1", "fuse.js": "3.4.4", diff --git a/src/api/areas/index.js b/src/api/areas/index.js new file mode 100644 index 0000000..c301041 --- /dev/null +++ b/src/api/areas/index.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +// 查询行政区划数据 +export function getAreasData() { + return request({ + url: '/xzqh/xzqh/common', + method: 'get', + }) +} \ No newline at end of file diff --git a/src/api/yg/dikeCompare.js b/src/api/yg/dikeCompare.js new file mode 100644 index 0000000..240a27a --- /dev/null +++ b/src/api/yg/dikeCompare.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +// 堤防基本信息版本对比数据 +export function getDikeCompare(embankmentCode) { + return request({ + url: '/df/contrast/' + embankmentCode, + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/yg/dikeMark.js b/src/api/yg/dikeMark.js index 9a7935a..658f476 100644 --- a/src/api/yg/dikeMark.js +++ b/src/api/yg/dikeMark.js @@ -35,6 +35,14 @@ export function updateDikeMark(data) { }) } +// 删除整个水闸标识标牌 +export function delDikeMarkAll(embankmentCode) { + return request({ + url: '/df/dikeMark/del/' + embankmentCode, + method: 'delete' + }) +} + // 删除堤防标识标牌 export function delDikeMark(id) { return request({ diff --git a/src/views/dyke/engineeringCondition/dykeBaseInfo/options/projectManagement.vue b/src/views/dyke/engineeringCondition/dykeBaseInfo/options/projectManagement.vue index 0e5e42b..b9cc0cc 100644 --- a/src/views/dyke/engineeringCondition/dykeBaseInfo/options/projectManagement.vue +++ b/src/views/dyke/engineeringCondition/dykeBaseInfo/options/projectManagement.vue @@ -398,14 +398,14 @@ action="thinking/common/upload" :headers="headers" :on-preview="handleOpinionPreview" - :on-remove="(file) => handleOpinionRemove(file, 'fileList')" + :on-remove="(file) => handleOpinionRemove(file, 'fileList4')" :before-remove="beforeOpinionRemove" multiple :on-exceed="handleOpinionExceed" :on-success=" - (_, fileList) => submitOpinionUpload(fileList, 'fileList') + (_, fileList) => submitOpinionUpload(fileList, 'fileList4') " - :file-list="fileList" + :file-list="fileList4" > @@ -425,18 +425,20 @@ - + @@ -500,6 +502,8 @@ export default { managementConfirmationOptions: [], // 保护范围划界字典 protectionDelimitationOptions: [], + // 监控类型字典 + monitoringTypeOptions: [], // 查询参数 queryParams: { pageNum: 1, @@ -553,7 +557,10 @@ export default { headers: { shuili: "water " + getToken(), }, - fileList: [], + fileList1: [], + fileList2: [], + fileList3: [], + fileList4: [], }; }, created() { @@ -582,6 +589,9 @@ export default { this.getDicts("scope_delineation").then((response) => { this.protectionDelimitationOptions = response.data; }); + this.getDicts("monitoring_type").then((response) => { + this.monitoringTypeOptions = response.data; + }); }, methods: { /** 查询水闸工程管理信息列表 */ @@ -590,8 +600,20 @@ export default { listEngineerManageInfo(this.queryParams).then((response) => { if (response.records.length > 0) { this.form = response.records[0]; + if (this.form.delimitationEvidence) { + this.fileList1 = JSON.parse(this.form.delimitationEvidence); + } + if (this.form.confirmationEvidence) { + this.fileList2 = JSON.parse(this.form.confirmationEvidence); + } + if (this.form.protectionEvidence) { + this.fileList3 = JSON.parse(this.form.protectionEvidence); + } if (this.form.engineeringPanoramicPhotos) { - this.fileList = JSON.parse(this.form.engineeringPanoramicPhotos); + this.fileList4 = JSON.parse(this.form.engineeringPanoramicPhotos); + } + if (this.form.monitoringType) { + this.form.monitoringType = JSON.parse(this.form.monitoringType); } } console.log("this.form", this.form); @@ -700,7 +722,7 @@ export default { remarks: null, owerDept: null, relations: null, - monitoringType: null, + monitoringType: [], }; this.resetForm("form"); }, @@ -790,7 +812,11 @@ export default { if (valid) { this.form.embankmentCode = this.embankmentCode; - this.form.engineeringPanoramicPhotos = JSON.stringify(this.fileList); + this.form.delimitationEvidence = JSON.stringify(this.fileList1); + this.form.confirmationEvidence = JSON.stringify(this.fileList2); + this.form.protectionEvidence = JSON.stringify(this.fileList3); + this.form.engineeringPanoramicPhotos = JSON.stringify(this.fileList4); + this.form.monitoringType = JSON.stringify(this.form.monitoringType); if (this.form.id != null) { updateEngineerManageInfo(this.form).then((response) => { diff --git a/src/views/dyke/engineeringCondition/dykeCompare/components/basePage.vue b/src/views/dyke/engineeringCondition/dykeCompare/components/basePage.vue index 8c505cf..22fee45 100644 --- a/src/views/dyke/engineeringCondition/dykeCompare/components/basePage.vue +++ b/src/views/dyke/engineeringCondition/dykeCompare/components/basePage.vue @@ -29,153 +29,154 @@ :contentStyle="{}" ref="descriptions" > - - - {{ this.form.sluiceName }} + + + {{ this.form.embankmentName }} - - - {{ this.form.adcd }} + + + {{ this.form.adcdStart }} - - - {{ this.form.sluiceCode }} + + + {{ this.form.embankmentCode }} - - - {{ locationFormat(this.form.location) }} + + + {{ this.form.plotEmbankments }} - - - {{ this.form.plottingSluice }} + + + {{ this.form.adcdEnd }} - - - {{ acceptanceStatusFormat(this.form) }} + + + {{ this.form.startingStationNumber }} - - - {{ this.form.completionTime }} - - - - {{ this.form.completionAcceptanceTime }} - - - - {{ riskEliminationStatusFormat(this.form) }} - - - - {{ this.form.recentCompletionTime }} + + + {{ this.form.endStationNumber }} - - - {{ isHubProjectFormat(this.form) }} + + + {{ endStationNumberFormat(this.form) }} - - - {{ hubBuildingsFormat(this.form.hubBuildings) }} + + + {{ this.form.riverLocation }} - - - {{ isGateStationFormat(this.form) }} + + + {{ riversideClassificationFormat(this.form) }} - - - {{ isSetGateProjectFormat(this.form) }} + + + {{ this.form.lakeName }} - - - {{ this.form.auxiliaryGateHoles }} + + + {{ this.form.coastlineName }} - - {{ this.form.auxiliaryGateHolesWidth }} + + {{ isFloodStorageDetentionFormat(this.form) }} - - - {{ sluiceTypeFormat(this.form.sluiceType) }} + + + {{ this.form.storageDetentionAreaName }} - - - {{ this.form.designGateFlow }} + + + {{ this.form.areaStartingStationNumber }} - - - {{ this.form.verifiedGateFlow }} + + + {{ this.form.areaEndStationNumber }} - - - {{ projectScaleFormat(this.form) }} + + + {{ this.form.totalLengthFloodStorage }} - - - {{ buildingLevelFormat(this.form) }} + + + {{ this.form.floodStorageDetentionAreasExplanation }} - - - {{ this.form.designStandards }} + + + {{ crossBorderSituationFormat(this.form) }} - - - {{ this.form.verificationStandards }} + + + + {{ embankmentTyperFormat(this.form.embankmentTyper) }} - - - {{ this.form.historicalMaximumGate }} + + + {{ this.form.completionTime }} - - - {{ this.form.historicalMaximumDate }} + + + {{ this.form.recentComplianceReinforcementStatus }} - - {{ this.form.designSeismicIntensity }} + + {{ this.form.recentComplianceReinforcementTime }} - - - {{ this.form.gateHolesNumber }} + + + {{ engineeringTasksFormat(this.form) }} - - - {{ this.form.gateHoleWidth }} + + + {{ embankmentLevelFormat(this.form) }} - - - {{ this.form.hoistsNumber }} + + + {{ this.form.designFloodControl }} - - - {{ observationProjectFormat(this.form.observationProject) }} + + + {{ this.form.embankmentLength }} - - - {{ lockChamberStructureFormat(this.form.lockChamberStructure) }} + + + {{ this.form.planningFloodControl }} - - - {{ gateTypeFormat(this.form.gateType) }} + + + {{ this.form.embankmentLengthPlanningStandards }} - - - {{ machineFormFormat(this.form.machineForm) }} + + + {{ this.form.populationProtection }} + + + + {{ this.form.protectingFarmland }} - - {{ energyDissipationMethodFormat(this.form.energyDissipationMethod) }} - - - - {{ automationControlFormat(this.form.automationControl) }} + + {{ this.form.criticalInfrastructure }} @@ -185,7 +186,7 @@