diff --git a/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue b/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue index 4d219bc..c0127b0 100644 --- a/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_report/incident_report/components/list.vue @@ -28,19 +28,17 @@ - + - - - - + + @@ -57,93 +55,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -200,235 +122,240 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + +
+ + + + + + +
- - + + - - - - - - - - - - - - - - + + - + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -542,30 +469,41 @@ export default { CREATOR: '' }, reportForm: { - REPORT_UNIT: '', - AUDITOR: '', - ACCIDENT_REPORT_TIME: '', - REPORTER: '', - RESPONSIBLE_PERSON: '', - CONTACT_INFORMATION: '', - SAFETY_EVALUATION_LEVEL: '', - CERTIFICATE_STATUS: '', - ACCIDENT_TITLE: '', - ACCIDENT_TIME: '', + ID: '', + EVENT_NAME: '', + INCOMING_PHONE: '', + OWNER_NAME: '', + CALLER_ADDRESS: '', + ACCESS_MODE: '', + EVENT_TYPE: '', + NAME: '', + CONTACT_PHONE: '', + OTHER_INFO: '', + UNIT_NAME: '', REGION: '', - ACCIDENT_ADDRESS: '', - ACCIDENT_TYPE: '', - INJURY_TYPE: '', - ACCIDENT_LEVEL: '', - ACCIDENT_UNIT: '', + UNIT_ADDRESS: '', INDUSTRY_TYPE: '', ECONOMIC_TYPE: '', + MAJOR_HAZARD: '', + REPORT_TIME: '', + OCCURRENCE_TIME: '', + LOCATION_ADDRESS: '', + LONGITUDE: '', + LATITUDE: '', + REPORT_TYPE: '', + ACCIDENT_TITLE: '', + ACCIDENT_LEVEL: '', + INJURY_TYPE: '', + ACCIDENT_TYPE: '', + TRAPPED_PEOPLE_COUNT: '', + MISSING_PEOPLE_COUNT: '', DEATH_PEOPLE_COUNT: '', SERIOUS_INJURY_PEOPLE_COUNT: '', MINOR_INJURY_PEOPLE_COUNT: '', POISONING_PEOPLE_COUNT: '', - TRAPPED_PEOPLE_COUNT: '', - MISSING_PEOPLE_COUNT: '' + DIRECT_ECONOMIC_LOSS: '', + BRIEF_PROCESS: '', + DISPOSAL_SITUATION: '' }, // rules: { // EVENT_NAME: [ @@ -888,11 +826,16 @@ export default { }) }, //* ***************************数据保存********************************** - handleEdit(id) { - this.dialogFormEdit = true - this.dialogType = 'editUser' - this.getDetail(id, 'accident')// 获取详情并回显 - this.$refs.upload.clearFiles() + handleEdit(id, isReport = false) { + if (isReport) { + this.dialogReportVisible = true + this.getDetail(id, 'report') + } else { + this.dialogFormEdit = true + this.dialogType = 'editUser' + this.getDetail(id, 'accident') // 获取详情并回显 + this.$refs.upload.clearFiles() + } }, handleAddReport(id) { this.dialogReportVisible = true @@ -903,87 +846,13 @@ export default { requestFN('/major/registration/detail', params).then((response) => { const data = response.msg if (type === 'accident') { - this.form = { - EVENT_NAME: data.EVENT_NAME, - INCOMING_PHONE: data.INCOMING_PHONE, - OWNER_NAME: data.OWNER_NAME, - CALLER_ADDRESS: data.CALLER_ADDRESS, - ACCESS_MODE: data.ACCESS_MODE, - EVENT_TYPE: data.EVENT_TYPE, - NAME: data.NAME, - CONTACT_PHONE: data.CONTACT_PHONE, - OTHER_INFO: data.OTHER_INFO, - UNIT_NAME: data.UNIT_NAME, - REGION: data.REGION, - UNIT_ADDRESS: data.UNIT_ADDRESS, - INDUSTRY_TYPE: data.INDUSTRY_TYPE, - ECONOMIC_TYPE: data.ECONOMIC_TYPE, - MAJOR_HAZARD: data.MAJOR_HAZARD, - REPORT_TIME: data.REPORT_TIME, - OCCURRENCE_TIME: data.OCCURRENCE_TIME, - LOCATION_ADDRESS: data.LOCATION_ADDRESS, - LONGITUDE: data.LONGITUDE, - LATITUDE: data.LATITUDE, - REPORT_TYPE: data.REPORT_TYPE, - ACCIDENT_TITLE: data.ACCIDENT_TITLE, - ACCIDENT_LEVEL: data.ACCIDENT_LEVEL, - INJURY_TYPE: data.INJURY_TYPE, - ACCIDENT_TYPE: data.ACCIDENT_TYPE, - TRAPPED_PEOPLE_COUNT: data.TRAPPED_PEOPLE_COUNT, - MISSING_PEOPLE_COUNT: data.MISSING_PEOPLE_COUNT, - DEATH_PEOPLE_COUNT: data.DEATH_PEOPLE_COUNT, - SERIOUS_INJURY_PEOPLE_COUNT: data.SERIOUS_INJURY_PEOPLE_COUNT, - MINOR_INJURY_PEOPLE_COUNT: data.MINOR_INJURY_PEOPLE_COUNT, - POISONING_PEOPLE_COUNT: data.POISONING_PEOPLE_COUNT, - DIRECT_ECONOMIC_LOSS: data.DIRECT_ECONOMIC_LOSS, - BRIEF_PROCESS: data.BRIEF_PROCESS, - DISPOSAL_SITUATION: data.DISPOSAL_SITUATION, - DEPARTMENT_ID: data.DEPARTMENT_ID, - ISDELETE: data.ISDELETE, - OPERATOR: data.OPERATOR, - OPERATETIME: data.OPERATETIME, - CREATETIME: data.CREATETIME, - CREATOR: data.CREATOR - } - } else if (type === 'map') { - this.LONGITUDE = data.LONGITUDE - this.LATITUDE = data.LATITUDE - this.EVENT_NAME = data.EVENT_NAME - this.dialogFormMap = true - this.$nextTick(() => { - this.setMapCenter(data.LONGITUDE, data.LATITUDE, data.EVENT_NAME) - }) + this.form = { ...data, Id: id } } else if (type === 'report') { - this.reportForm = { - REPORT_UNIT: '', - AUDITOR: '', - ACCIDENT_REPORT_TIME: '', - REPORTER: '', - RESPONSIBLE_PERSON: '', - CONTACT_INFORMATION: '', - SAFETY_EVALUATION_LEVEL: '', - CERTIFICATE_STATUS: '', - REGISTRATION_ID: data.ID, - ACCIDENT_TITLE: data.ACCIDENT_TITLE, - ACCIDENT_TIME: data.OCCURRENCE_TIME, - ACCIDENT_ADDRESS: data.ACCIDENT_ADDRESS, - ACCIDENT_TYPE: data.ACCIDENT_TYPE, - INJURY_TYPE: data.INJURY_TYPE, - ACCIDENT_LEVEL: data.ACCIDENT_LEVEL, - ACCIDENT_UNIT: data.UNIT_NAME, - INDUSTRY_TYPE: data.INDUSTRY_TYPE, - ECONOMIC_TYPE: data.ECONOMIC_TYPE, - DEATH_PEOPLE_COUNT: data.DEATH_PEOPLE_COUNT, - SERIOUS_INJURY_PEOPLE_COUNT: data.SERIOUS_INJURY_PEOPLE_COUNT, - MINOR_INJURY_PEOPLE_COUNT: data.MINOR_INJURY_PEOPLE_COUNT, - POISONING_PEOPLE_COUNT: data.POISONING_PEOPLE_COUNT, - TRAPPED_PEOPLE_COUNT: data.TRAPPED_PEOPLE_COUNT, - MISSING_PEOPLE_COUNT: data.MISSING_PEOPLE_COUNT - } + this.reportForm = { ...data, Id: id } this.handleRegionChange(data.REGION) } - }).catch((e) => { - console.error('获取详情数据失败', e) + }).catch((error) => { + console.error('获取详情数据失败', error) }) }, handleAdd() { @@ -994,19 +863,29 @@ export default { this.dialogType = 'saveUser' this.$refs.upload.clearFiles() }, - confirm() { - this.dataSave() + confirm(formType) { + const formRef = formType === 'report' ? 'reportForm' : 'form' + this.$refs[formRef].validate((valid) => { + if (valid) { + this.dataSave(formType, this[formRef].ID) + } + }) }, - dataSave() { + dataSave(formType, id) { + const data = formType === 'report' ? this.reportForm : this.form + data.Id = id + this.listLoading = true - requestFN('/major/registration/save', this.form).then((data) => { + requestFN('/major/registration/save', data).then((response) => { this.listLoading = false - this.dialogFormEdit = false + if (formType === 'report') { + this.dialogReportVisible = false + } else { + this.dialogFormEdit = false + } this.varList = [] this.listQuery.page = 1 this.getList() - }).catch((e) => { - this.listLoading = false }) }, saveReport() { diff --git a/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue b/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue index 9512f0e..f7f5423 100644 --- a/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_team/rescue_team/components/list.vue @@ -42,26 +42,38 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -74,18 +86,22 @@ - - - + + + + + + + @@ -153,78 +169,132 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/emergen_cyrescue/incident_management/index.vue b/src/views/emergen_cyrescue/incident_management/index.vue new file mode 100644 index 0000000..98240ae --- /dev/null +++ b/src/views/emergen_cyrescue/incident_management/index.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/emergen_cyrescue/resource_management/emergency_supplies/components/list.vue b/src/views/emergen_cyrescue/resource_management/emergency_supplies/components/supplies.vue similarity index 100% rename from src/views/emergen_cyrescue/resource_management/emergency_supplies/components/list.vue rename to src/views/emergen_cyrescue/resource_management/emergency_supplies/components/supplies.vue diff --git a/src/views/emergen_cyrescue/resource_management/emergency_supplies/components/detail.vue b/src/views/emergen_cyrescue/resource_management/emergency_supplies/components/suppliesInfo.vue similarity index 100% rename from src/views/emergen_cyrescue/resource_management/emergency_supplies/components/detail.vue rename to src/views/emergen_cyrescue/resource_management/emergency_supplies/components/suppliesInfo.vue diff --git a/src/views/emergen_cyrescue/resource_management/emergency_supplies/index.vue b/src/views/emergen_cyrescue/resource_management/emergency_supplies/index.vue index ac13f74..f925992 100644 --- a/src/views/emergen_cyrescue/resource_management/emergency_supplies/index.vue +++ b/src/views/emergen_cyrescue/resource_management/emergency_supplies/index.vue @@ -5,8 +5,8 @@ - diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue new file mode 100644 index 0000000..b923308 --- /dev/null +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipment.vue @@ -0,0 +1,632 @@ + + + + diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipmentInfo.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipmentInfo.vue new file mode 100644 index 0000000..4e71d62 --- /dev/null +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/equipmentInfo.vue @@ -0,0 +1,176 @@ + + + diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/facilities.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/facilities.vue new file mode 100644 index 0000000..a156beb --- /dev/null +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/facilities.vue @@ -0,0 +1,601 @@ + + + diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/facilitiesInfo.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/facilitiesInfo.vue new file mode 100644 index 0000000..cbfa475 --- /dev/null +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/facilitiesInfo.vue @@ -0,0 +1,176 @@ + + + diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue index 444b23a..0388dcc 100644 --- a/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue @@ -29,8 +29,11 @@ - + @@ -172,6 +175,10 @@ export default { this.getList() }, methods: { + goList(page, resourceLibraryId) { + this.$parent.activeName = page + this.$parent.resourceLibraryId = resourceLibraryId + }, getList() { this.listLoading = true requestFN( diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue new file mode 100644 index 0000000..5d50c90 --- /dev/null +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/supplies.vue @@ -0,0 +1,631 @@ + + + + diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/suppliesInfo.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/suppliesInfo.vue new file mode 100644 index 0000000..b6e3b09 --- /dev/null +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/suppliesInfo.vue @@ -0,0 +1,176 @@ + + + diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/index.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/index.vue index ac13f74..149f8fe 100644 --- a/src/views/emergen_cyrescue/resource_management/equipment_library/index.vue +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/index.vue @@ -1,18 +1,54 @@ +