From c200de202107dfa9e00173039960096d4a2e513c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Mon, 21 Aug 2023 15:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=9B=91=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/zongzhi/st.js | 38 ++++ src/store/modules/dict.js | 2 +- .../security/components/attackSituation.vue | 91 ++++---- .../security/components/componentLeft.vue | 197 +++++++++++------- 4 files changed, 220 insertions(+), 108 deletions(-) diff --git a/src/api/zongzhi/st.js b/src/api/zongzhi/st.js index 7504902..3434769 100644 --- a/src/api/zongzhi/st.js +++ b/src/api/zongzhi/st.js @@ -142,3 +142,41 @@ export function listSource(query) { params: query }) } + +export function saftyscreenSupervise() { + return request({ + url: '/zongzhi/saftyscreen/supervise', + method: 'get' + }) +} + +// 受攻击IPTop5 +export function saftyscreenUnattack() { + return request({ + url: '/zongzhi/saftyscreen/unattack', + method: 'get' + }) +} +// 安全检测数据统计 +export function saftyscreenSafety() { + return request({ + url: '/zongzhi/saftyscreen/safety', + method: 'get' + }) +} +// 查询安全检测列表 +export function listDetection(query) { + return request({ + url: '/zongzhi/detection/list', + method: 'get', + params: query + }) +} + +// 查询安全检测详细 +export function getDetection(id) { + return request({ + url: '/zongzhi/detection/' + id, + method: 'get' + }) +} diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js index c8aec86..6b2d2e6 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -17,7 +17,7 @@ const dict = { getDictType({ commit }) { return new Promise((resolve, reject) => { const query = { - list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_net_safety_level,tc_db_steam_state' + list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_net_safety_level,tc_db_steam_state,tc_attack_type' } getDictList(query) .then((res) => { diff --git a/src/views/privateOrder/security/components/attackSituation.vue b/src/views/privateOrder/security/components/attackSituation.vue index 6cfd65c..8ffc56e 100644 --- a/src/views/privateOrder/security/components/attackSituation.vue +++ b/src/views/privateOrder/security/components/attackSituation.vue @@ -66,6 +66,7 @@