From 26c8ee57c50bc868844a11146d203be0f6a864bf Mon Sep 17 00:00:00 2001
From: changtong <2540919286@qq.com>
Date: Thu, 9 Jan 2025 10:11:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/index.js | 12 +-
src/common/axios.js | 2 +-
src/router/router.js | 15 +-
src/views/screen/car-park.vue | 447 --------------
src/views/screen/car-warring.vue | 2 +-
.../screen/components/alarm/alarm-dig-two.vue | 104 ++++
.../screen/components/alarm/alarm-dig.vue | 1 +
.../screen/components/alarm/baseAlarmDig.vue | 1 +
.../screen/components/alarm/twoImageAlarm.vue | 108 ++++
.../components/video-monitor/video-one.vue | 4 +-
src/views/screen/emergency-screen-two.vue | 50 +-
src/views/screen/fights-rawls.vue | 553 ++++++++++++++++++
src/views/screen/person-warring.vue | 2 +-
src/views/screen/smart-travel.vue | 6 +-
14 files changed, 830 insertions(+), 477 deletions(-)
delete mode 100644 src/views/screen/car-park.vue
create mode 100644 src/views/screen/components/alarm/alarm-dig-two.vue
create mode 100644 src/views/screen/components/alarm/twoImageAlarm.vue
create mode 100644 src/views/screen/fights-rawls.vue
diff --git a/config/index.js b/config/index.js
index f8b97b7..f72a89b 100644
--- a/config/index.js
+++ b/config/index.js
@@ -12,21 +12,21 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api': {
- // target: 'http://localhost:9990',
- target: 'http://60.255.186.185:9024/api',
+ target: 'http://192.168.111.200:9990',
+ // target: 'http://60.255.186.185:9024/api',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
},
'/localImage': {
- target: 'http://60.255.186.185:9024/',
- // target: 'http://127.0.0.1:9990/',
+ // target: 'http://60.255.186.185:9024/',
+ target: 'http://localhost:9990/',
changeOrigin: true,
},
'/socket.io': {
- // target: 'http://localhost:19990/',
- target: 'http://60.255.186.185:9024/',
+ target: 'http://localhost:19990/',
+ // target: 'http://60.255.186.185:9024/',
changeOrigin: true,
}
},
diff --git a/src/common/axios.js b/src/common/axios.js
index a6311c9..11a9296 100644
--- a/src/common/axios.js
+++ b/src/common/axios.js
@@ -6,7 +6,7 @@ import router from '@/router/index';
import store from "@/store/index";
//默认超时时间
-axios.defaults.timeout = 20000;
+axios.defaults.timeout = 60000;
axios.defaults.baseURL = window.gconfig.baseURL;
diff --git a/src/router/router.js b/src/router/router.js
index 4da058e..4cd3655 100644
--- a/src/router/router.js
+++ b/src/router/router.js
@@ -187,15 +187,6 @@ export const screenRouter = [
title: "网格管理",
component: () => import("@/views/screen/grid-manage.vue")
},
- {
- path: "/car-park",
- name: "car-park",
- title: "停车场",
- meta: {
- open: true
- },
- component: () => import("@/views/screen/car-park.vue")
- },
{
path: "/person-warring",
name: "person-warring",
@@ -214,6 +205,12 @@ export const screenRouter = [
title: "烟火预警",
component: () => import("@/views/screen/emergency-extend.vue")
},
+ {
+ path: "/fights-rawls",
+ name: "fights-rawls",
+ title: "打架斗殴",
+ component: () => import("@/views/screen/fights-rawls.vue")
+ },
{
path: "/perimeter-screen",
name: "perimeter-screen",
diff --git a/src/views/screen/car-park.vue b/src/views/screen/car-park.vue
deleted file mode 100644
index 71cd5b4..0000000
--- a/src/views/screen/car-park.vue
+++ /dev/null
@@ -1,447 +0,0 @@
-
-
-
-
-
-
-
- 停车场列表
-
-
-
-
-
-
-
![]()
-
- {{ item.deviceName }}
-
-
-
-
-
-
-
-
-
- 停车场详情
-
-
-
- {{ currentPark.deviceName }}
- 停车场
-
-
-
-
基础信息
-
-
图集:
-
-
-
-
-
-
-
-
-
-
- 地址:
-
- {{ currentPark.address }}
-
-
- 简介:
-
- {{ currentPark.info }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/screen/car-warring.vue b/src/views/screen/car-warring.vue
index 5698f42..f10e177 100644
--- a/src/views/screen/car-warring.vue
+++ b/src/views/screen/car-warring.vue
@@ -141,7 +141,7 @@
class="info-t1"
style="margin-left: 20px"
>
- 设备IP:{{ item.deviceIp }}
+ 发生时间:{{ item.happenTime }}
+
+
+
{{ alarmInfo.deviceName }}
+
+ 告警类型:{{ alarmInfo.type }}
+ {{ alarmInfo.happenTime }}
+
+
{{ alarmInfo.info }}
+
![]()
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/screen/components/alarm/alarm-dig.vue b/src/views/screen/components/alarm/alarm-dig.vue
index 939be22..4c202a9 100644
--- a/src/views/screen/components/alarm/alarm-dig.vue
+++ b/src/views/screen/components/alarm/alarm-dig.vue
@@ -17,6 +17,7 @@
style="width: 622px; height: 350px"
v-for="(item, index) in alarmInfo.picture"
:key="index"
+ v-viewer
>
![]()
diff --git a/src/views/screen/components/alarm/baseAlarmDig.vue b/src/views/screen/components/alarm/baseAlarmDig.vue
index b014145..f04ab5e 100644
--- a/src/views/screen/components/alarm/baseAlarmDig.vue
+++ b/src/views/screen/components/alarm/baseAlarmDig.vue
@@ -17,6 +17,7 @@
style="width: 622px; height: 350px"
v-for="(item, index) in alarmInfo.picture"
:key="index"
+ v-viewer
>
![]()
diff --git a/src/views/screen/components/alarm/twoImageAlarm.vue b/src/views/screen/components/alarm/twoImageAlarm.vue
new file mode 100644
index 0000000..5a0f2d8
--- /dev/null
+++ b/src/views/screen/components/alarm/twoImageAlarm.vue
@@ -0,0 +1,108 @@
+
+
+
+
{{
+ alarmInfo.deviceName
+ }}
+
+ 告警类型:{{ alarmInfo.type }}
+ {{
+ alarmInfo.happenTime
+ }}
+
+
{{
+ alarmInfo.info
+ }}
+
![]()
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/screen/components/video-monitor/video-one.vue b/src/views/screen/components/video-monitor/video-one.vue
index 4dcc948..3f4c5bf 100644
--- a/src/views/screen/components/video-monitor/video-one.vue
+++ b/src/views/screen/components/video-monitor/video-one.vue
@@ -34,7 +34,7 @@
-->
-
+ /> -->
diff --git a/src/views/screen/emergency-screen-two.vue b/src/views/screen/emergency-screen-two.vue
index 5dcd618..69bd7f3 100644
--- a/src/views/screen/emergency-screen-two.vue
+++ b/src/views/screen/emergency-screen-two.vue
@@ -8,6 +8,7 @@
+
@@ -115,26 +116,25 @@
播发状态
-
+
-
+
{{ item.eventTypeName }}
-
@@ -350,10 +358,15 @@ export default {
calcRate();
windowDraw();
- this.getDeviceListByArea();
+
this.getAreaListByParentId();
this.getBroadcastStatistics();
- this.getDeviceList();
+ setTimeout(()=>{
+ this.getDeviceList();
+ }, 2000)
+ setTimeout(()=>{
+ this.getDeviceListByArea();
+ }, 3000)
},
beforeDestroy() {
echartsClear();
@@ -365,6 +378,25 @@ export default {
this.r_barChart4.dispose();
},
methods: {
+ openApp () {
+ window.open("https://60.255.187.160:1445/#/")
+ },
+ openDetail (e) {
+ let index = e.target.dataset.index
+ let data = this.infoTableData[index]
+ this.$http
+ .post(
+ '/emergencyBroadcast/safeRest/ebm/getEbmInfoAll',
+ this.common.request({ebmId: data.ebmId})
+ ).then(res => {
+ if (res.data.code == 200) {
+ this.currentInfo = res.data.data
+ this.currentInfo.mp3 = this.currentInfo.files[0].fileUrl
+ this.infoState = true
+ }
+ }
+ )
+ },
currentPointFn(data) {
this.currentPoint = data;
this.pointState = true;
diff --git a/src/views/screen/fights-rawls.vue b/src/views/screen/fights-rawls.vue
new file mode 100644
index 0000000..0d695a4
--- /dev/null
+++ b/src/views/screen/fights-rawls.vue
@@ -0,0 +1,553 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.deviceName }}
+
+
+ {{ data }}
+
+
+
+
+
+
+
+ 预警信息
+
+
+
+
+
+ 当天预警次数
+
+
+ {{ conutInfo.dayNum }}
+
+
+
+
+ 近7日预警次数
+
+
+ {{ conutInfo.weekNum }}
+
+
+
+
+ 近30日预警次数
+
+
+ {{ conutInfo.monthNum }}
+
+
+
+
+
+
预警设备
+
预警IP
+
预警时间
+
预警信息
+
+
+
+
+
+ {{ item.deviceName }}
+
+
+ {{ item.deviceIp }}
+
+
+ {{ item.happenTime }}
+
+
+ {{ item.info }}
+
+
+
+
+
+ 暂无预警
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/screen/person-warring.vue b/src/views/screen/person-warring.vue
index af277fb..6f94179 100644
--- a/src/views/screen/person-warring.vue
+++ b/src/views/screen/person-warring.vue
@@ -141,7 +141,7 @@
:data-index="index"
style="margin-left: 20px"
>
- 设备IP:{{ item.deviceIp }}
+ 发生时间:{{ item.happenTime }}
+
@@ -197,7 +198,6 @@ import MainTitle from "./components/MainTitle.vue";
import CommonLivePlayer from "@/views/common-components/common-live-player.vue";
import * as echarts from "echarts";
import { echartsFocus, echartsClear } from "@/utils/autoEcharts";
-import { format } from "@/libs/date";
export default {
name: "SmartTravel",
components: { MainTitle, CommonLivePlayer },
@@ -273,6 +273,9 @@ export default {
echartsClear();
},
methods: {
+ openApp () {
+ window.open("http://tour.zenstec.com/domain/dashboard")
+ },
renderContent(h, { root, node, data }) {
return h(
"span",
@@ -357,6 +360,7 @@ export default {
series: [
{
name: "实时客流",
+ color: "#169bcf",
type: "line",
smooth: true,
symbolSize: 8,