From 4d76f71c621570991f5b0a8548eb061c4215f738 Mon Sep 17 00:00:00 2001 From: yangzongjia Date: Mon, 12 Jun 2023 17:45:14 +0800 Subject: [PATCH] =?UTF-8?q?websocket=E6=8E=A8=E9=80=81=E6=8A=A5=E8=AD=A6?= =?UTF-8?q?=E6=B6=88=E6=81=AF=20=E5=AE=9A=E6=97=B6=E4=B8=BB=E5=8A=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81=E5=B9=B6?= =?UTF-8?q?=E4=B8=94=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/device.js | 5 ++ src/views/index.vue | 14 +++-- src/views/monitor/videos/index.vue | 52 +++++++++++++------ .../shebeitaizhang/shebeitaizhangAdd.vue | 19 ++++--- .../shebeitaizhang/shebeitaizhangInfo.vue | 10 ++++ 5 files changed, 71 insertions(+), 29 deletions(-) diff --git a/src/api/device/device.js b/src/api/device/device.js index 3f6bcda..9014684 100644 --- a/src/api/device/device.js +++ b/src/api/device/device.js @@ -62,6 +62,11 @@ export function sysDisArm(data) { return request({ url: '/device/sysDisArm', method: 'GET', params: data }) } +// 报警确认 +export function notCall(data) { + return request({ url: '/device/notCall', method: 'GET', params: data }) +} + // 获取设备状态数量 export function getStatusCount(data) { return request({ url: '/device/getStatusCount', method: 'GET', params: data }) diff --git a/src/views/index.vue b/src/views/index.vue index ecb02e6..d604255 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -109,9 +109,8 @@
-
正常:{{ statusDataSp.online }}
-
离线:{{ statusDataSp.offline == null ? 0 : statusDataSp.offline - }} +
正常:{{ statusDataSp.online == null ? 0 : statusDataSp.online }}
+
离线:{{ statusDataSp.offline == null ? 0 : statusDataSp.offline }}
@@ -132,7 +131,7 @@
正常:38
离线:15
-
报警:12
+
@@ -149,9 +148,8 @@
-
正常:{{ statusDataWl.online }}
-
离线:{{ statusDataWl.offline == null ? 0 : statusDataWl.offline - }}
+
正常:{{ statusDataWl.online == null ? 0 : statusDataWl.online }}
+
离线:{{ statusDataWl.offline == null ? 0 : statusDataWl.offline }}
@@ -232,7 +230,7 @@ const menjinguanli_Chart = { seriesData: [ { value: 38, name: '正常' }, { value: 15, name: '离线' }, - { value: 12, name: '报警' } + // { value: 12, name: '报警' } ] }, label: { diff --git a/src/views/monitor/videos/index.vue b/src/views/monitor/videos/index.vue index d1b9220..bcd6dc4 100644 --- a/src/views/monitor/videos/index.vue +++ b/src/views/monitor/videos/index.vue @@ -57,12 +57,30 @@

旁路

--> - - +
- -
+ + + + + +

设备名称:{{ item.name }}

-

设备编号:{{ item.number }}

+

设备通道:{{ item.channelNo }}

- - +