From 7e26ffd6a2810fd5fb3c8140d54e5d6f9a5d5380 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 14 Aug 2024 10:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E6=80=A5=E6=8C=87=E6=8C=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emergency_map/components/baseTable.vue | 2 +- .../emergency_map/components/mapAssembly.vue | 37 +- .../company_plan/components/addfrom.vue | 11 - .../company_plan/components/check-from.vue | 536 ++++++++++++++++++ .../components/check-yingjizhuangjia.vue | 138 +++++ .../components/check-yjshenherenyuan.vue | 187 ++++++ .../components/check-yvanfujian.vue | 261 +++++++++ .../components/check-yvanwenben.vue | 108 ++++ .../components/check-yvanziling.vue | 361 ++++++++++++ .../components/check-yvanziyuan.vue | 396 +++++++++++++ .../components/check-zuzhijiagou.vue | 367 ++++++++++++ .../company_plan/components/list.vue | 11 +- .../components/yingjizhuangjia.vue | 1 - .../emergency_plan/company_plan/index.vue | 15 +- .../incident_report/components/list.vue | 2 +- .../process_management/components/list.vue | 10 +- 16 files changed, 2410 insertions(+), 33 deletions(-) create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-from.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-yingjizhuangjia.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-yjshenherenyuan.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-yvanfujian.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-yvanwenben.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-yvanziling.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-yvanziyuan.vue create mode 100644 src/views/emergen_cyrescue/emergency_plan/company_plan/components/check-zuzhijiagou.vue diff --git a/src/views/emergen_cyrescue/emergency_map/components/baseTable.vue b/src/views/emergen_cyrescue/emergency_map/components/baseTable.vue index 3505066..055260a 100644 --- a/src/views/emergen_cyrescue/emergency_map/components/baseTable.vue +++ b/src/views/emergen_cyrescue/emergency_map/components/baseTable.vue @@ -124,7 +124,7 @@ export default { }, methods: { clickIntoDutyInfoDialog() { - this.dutyInfoDialog.visible = true + this.$emit('goInfo', this.titleType) } } } diff --git a/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue b/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue index eb503fa..554cd47 100644 --- a/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue +++ b/src/views/emergen_cyrescue/emergency_map/components/mapAssembly.vue @@ -8,9 +8,9 @@
- - - + + +
@@ -298,14 +298,14 @@ export default { x: null, y: null }, - mapLevel: 20 + mapLevel: 20, + goBackFlag: true } }, mounted() { /** 调用地图初始化方法 */ this.firstInitPoint() /** 调用初始化点位绘制方法 */ - // this.initPoints() /** 初始化选中首个二级坐标点位分类 */ this.currSubControlPoint = this.subControlPoint['0'] }, @@ -537,6 +537,24 @@ export default { loading.close() }) }, + goInfo(e) { + if (e === '值班信息') { + this.goBackFlag = false + this.$router.push('/emergen_cyrescue/duty_management/shift_registration') + } + if (e === '预案信息') { + if (this.FIRERESERVEPLAN_ID) { + this.goBackFlag = false + this.$router.push('/plan/company_plan?FIRERESERVEPLAN_ID=' + this.FIRERESERVEPLAN_ID) + } else { + this.$message.error('救援没启动预案') + } + } + if (e === '通讯录') { + this.goBackFlag = false + this.$router.push('/emergencyuser/communication') + } + }, initWebsocket() { const wsUrl = config.YjSysUrl + '/yjMessage/' + this.REPORT_ID this.webSocket = new WebSocket(encodeURI(wsUrl)) @@ -545,10 +563,17 @@ export default { this.webSocket.send('链接成功') } this.webSocket.onerror = () => { + console.log('指挥调度的webSocket链接失败') this.$router.back() } this.webSocket.onclose = () => { - this.$router.push('/emergen_cyrescue/incident_management') + console.log('指挥调度的webSocket链接关闭') + console.log(this.goBackFlag) + if (this.goBackFlag) { + this.$router.push('/emergen_cyrescue/incident_management') + } else { + this.goBackFlag = true + } } var _this = this this.webSocket.onmessage = function(message) { diff --git a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue index 892eca5..873fbe6 100644 --- a/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue +++ b/src/views/emergen_cyrescue/emergency_plan/company_plan/components/addfrom.vue @@ -27,7 +27,6 @@ - @@ -38,7 +37,6 @@ - @@ -57,7 +54,6 @@ 水灾 其他 - @@ -80,14 +76,12 @@ - - @@ -95,9 +89,7 @@ - - @@ -150,11 +142,8 @@
- -
-