@@ -276,7 +276,7 @@ export default {
heartbeat: null,
REPORT_ID: null,
FIRERESERVEPLAN_ID: null,
- CORPIFNO_ID: sessionStorage.getItem('user').CORPIFNO_ID
+ CORPIFNO_ID: JSON.parse(sessionStorage.getItem('user')).CORPIFNO_ID
}
},
mounted() {
@@ -288,7 +288,6 @@ export default {
this.currSubControlPoint = this.subControlPoint['0']
},
created() {
- console.log(this.$route.query)
this.REPORT_ID = this.$route.query.REPORT_ID
this.FIRERESERVEPLAN_ID = this.$route.query.FIRERESERVEPLAN_ID
this.initInfo()
@@ -458,8 +457,7 @@ export default {
'/bi/emergency/getYjBiInformation',
{
FIRERESERVEPLAN_ID: this.FIRERESERVEPLAN_ID,
- REPORT_ID: this.REPORT_ID,
- CORP_ID: this.CORPIFNO_ID
+ REPORT_ID: this.REPORT_ID
}
).then((data) => {
if (data.result === 'success') {
@@ -496,10 +494,9 @@ export default {
}
// 新建心跳,持续监听链接是否存活
this.heartbeat = setInterval(() => {
- console.log('发送心跳')
try {
if (this.webSocket) {
- this.webSocket.send('心跳')
+ this.webSocket.send('企业端' + this.REPORT_ID)
}
} catch (e) {
console.log('链接已断开')
diff --git a/src/views/emergen_cyrescue/emergency_map/components/sysChat.vue b/src/views/emergen_cyrescue/emergency_map/components/sysChat.vue
index 734ec8f..c608187 100644
--- a/src/views/emergen_cyrescue/emergency_map/components/sysChat.vue
+++ b/src/views/emergen_cyrescue/emergency_map/components/sysChat.vue
@@ -3,11 +3,13 @@
{{ item.info.MESS }}
- {{ answer.RECEIVED_MEN_NAME + ' 回复:' }}
+ {{ answer.SEND_MEN_NAME + ' 回复:' }}
{{ answer.MESS }}
{{ answer.RECEIVED_MEN_NAME + ' :' }}
- 已读
- 未读
+ 已读
+ 未读
+ 已确认
+ 未确认