diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/detail.vue b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/detail.vue
index df99ef6..44bc2d9 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/detail.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/detail.vue
@@ -6,7 +6,7 @@
-
+
{{ row.gender === '0' ? '男' : row.gender === '1' ? '女' : '' }}
diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/list.vue b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/list.vue
index dcdefbb..108960f 100644
--- a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/list.vue
+++ b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_agencies/components/list.vue
@@ -115,7 +115,7 @@
-
+
diff --git a/src/views/emergen_cyrescue/emergency_map/dialog/sendMessage.vue b/src/views/emergen_cyrescue/emergency_map/dialog/sendMessage.vue
index 866340c..36ffc51 100644
--- a/src/views/emergen_cyrescue/emergency_map/dialog/sendMessage.vue
+++ b/src/views/emergen_cyrescue/emergency_map/dialog/sendMessage.vue
@@ -6,6 +6,7 @@
@@ -123,10 +124,10 @@ export default {
},
getCorp() {
requestFN(
- 'plan/planningDepartment/getTreeForSelect', { FIRERESERVEPLAN_ID: this.info.FIRERESERVEPLAN_ID, proid: '0' }
+ '/bi/emergency/getYjCorp', {}
).then((data) => {
if (data.result === 'success') {
- this.corpList = data.data
+ this.corpList = data.departmentList
}
}).catch((e) => {
console.log(e)
@@ -134,10 +135,10 @@ export default {
},
getUser(id) {
requestFN(
- 'plan/planningDepartment/getUserList', { FIRERESERVEPLAN_ID: this.info.FIRERESERVEPLAN_ID, DEPARTMENT_ID: id }
+ '/major/organization/detail', { Id: id }
).then((data) => {
if (data.result === 'success') {
- this.userList = data.data
+ this.userList = data.msg.persons
}
}).catch((e) => {
console.log(e)
@@ -154,7 +155,7 @@ export default {
FIRERESERVEPLAN_ID: this.info.FIRERESERVEPLAN_ID,
REPORT_ID: this.info.REPORT_ID,
USER_ID: this.form.USER_ID,
- USER_NAME: this.userList.find(item => item.USER_ID === this.form.USER_ID).NAME,
+ USER_NAME: this.userList.find(item => item.ID === this.form.USER_ID).USER_NAME,
MESSAGE: this.form.INSTRUCTION_CONTENT
}
).then((data) => {
@@ -175,6 +176,13 @@ export default {
return false
}
})
+ },
+ normalizer(node) {
+ return {
+ id: node.ID,
+ label: node.ORG_NAME,
+ children: node.nodes
+ }
}
}
}
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 ef2516c..943eee3 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
@@ -29,23 +29,20 @@
-
-
-
-
-
-
-
- {{ scope.row.RESCUE_SITUATION === '1' ? '已发起' : (scope.row.RESCUE_SITUATION === '2' || scope.row.RESCUE_SITUATION === null ? '未发起' : '') }}
-
-
+
+
+
+
+
+
+
是否救援
查看
生成专报
编辑
- 删除
+ 删除
@@ -59,7 +56,7 @@
-
+
@@ -179,9 +176,9 @@
-
- 是
- 否
+
+ 是
+ 否
@@ -518,7 +515,9 @@ export default {
rescueForm: {
FIRERESERVEPLAN_ID: '',
HIERARCHICALRESPONSE_ID: '',
- EVENT_SITUATION: ''
+ REGISTRATION_ID: '',
+ EVENT_SITUATION: '',
+ RESCUE_SITUATION: ''
},
total: 0,
varList: [],
@@ -634,9 +633,6 @@ export default {
],
LATITUDE: [
{ required: true, message: '纬度不能为空', trigger: 'blur' }
- ],
- ISRESCUE: [
- { required: true, message: '是否救援不能为空', trigger: 'blur' }
]
},
FFILE: [],
@@ -672,15 +668,18 @@ export default {
if (valid) {
this.dialogRescueVisible = false
// 发送救援信息
- this.sendSMS(this.rescueForm.FIRERESERVEPLAN_ID, this.rescueForm.HIERARCHICALRESPONSE_ID, this.rescueForm.REGISTRATION_ID)
- .finally(() => {
- this.getList()
- })
+ this.sendSMS(this.rescueForm)
}
})
},
- sendSMS(planId, responseId, registrationId) {
- requestFN('/major/registration/sendSMS', { planId, responseId, registrationId })
+ sendSMS(e) {
+ requestFN('/major/registration/sendSMS',
+ { planId: e.FIRERESERVEPLAN_ID,
+ responseId: e.FIRERESERVEPLAN_ID,
+ registrationId: e.REGISTRATION_ID,
+ eventSituation: e.EVENT_SITUATION,
+ rescueSituation: e.RESCUE_SITUATION
+ })
.then((data) => {
this.$router.push({ path: '/emergen_cyrescue/incident_management', query: { a: '' }})
}).catch((e) => {