From 8c38a2c9da4a606cd3f29bdf1c5753b8e55b6444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C002001lixiaobang=E2=80=9D?= <2547956374@qq.com> Date: Wed, 19 Apr 2023 17:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 12 ++ src/views/index.vue | 416 +++++++++++++++++++++-------------------- src/views/security.vue | 12 +- 3 files changed, 241 insertions(+), 199 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 64d99ec..6431fa5 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -12,4 +12,16 @@ export const GetLevelAlarm = (params) => { return axios.get('api/GetLevelAlarm', { params }) +}; +//获取昨天、今天报警数量 +export const getSecurityAlarmCount = (params) => { + return axios.get('api/GetSecurityAlarmCount', { + params + }) +}; +//获取报警统计接口 +export const getAlarmStatistics = (params) => { + return axios.get('api/GetAlarmStatistics', { + params + }) }; \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index 4c67b57..a263b68 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -242,7 +242,7 @@