From 4431427b0ce2d86aa534af11880873344f485ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 22 Aug 2023 13:48:49 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E9=9A=90=E6=82=A3=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/store/modules/dict.js | 4 +- .../security/components/componentRight.vue | 364 ++++++++++-------- 3 files changed, 198 insertions(+), 172 deletions(-) diff --git a/.env.development b/.env.development index ba1a2b9..c4d1aa9 100644 --- a/.env.development +++ b/.env.development @@ -4,6 +4,6 @@ ENV = 'development' # base api VUE_APP_BASE_API = '/dashboard' -VUE_APP_BASE_API2 = 'http://192.168.0.106:9027' +VUE_APP_BASE_API2 = 'http://192.168.0.110:9027' BASE_API = 'http://10.10.3.35:9070' diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js index d48f47a..b5b815b 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -25,8 +25,8 @@ 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_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source,tc_yq_type,tc_event_type,tc_cy_type,tc_yq_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_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source,tc_yq_type,tc_event_type,tc_cy_type,tc_yq_state,tc_steam_state", + }; getDictList(query) .then((res) => { // console.log(res) diff --git a/src/views/privateOrder/security/components/componentRight.vue b/src/views/privateOrder/security/components/componentRight.vue index a735243..78ff546 100644 --- a/src/views/privateOrder/security/components/componentRight.vue +++ b/src/views/privateOrder/security/components/componentRight.vue @@ -1,4 +1,3 @@ - From 2d428ffb26daa7cb8615ad5bf9e6db76a310e41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 22 Aug 2023 14:18:04 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=9B=91=E6=B5=8B?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/componentLeft copy.vue | 1259 ----------------- .../security/components/componentLeft.vue | 675 ++++----- .../security/components/componentRight.vue | 13 +- 3 files changed, 354 insertions(+), 1593 deletions(-) delete mode 100644 src/views/privateOrder/security/components/componentLeft copy.vue diff --git a/src/views/privateOrder/security/components/componentLeft copy.vue b/src/views/privateOrder/security/components/componentLeft copy.vue deleted file mode 100644 index ee512ec..0000000 --- a/src/views/privateOrder/security/components/componentLeft copy.vue +++ /dev/null @@ -1,1259 +0,0 @@ - - - - - - diff --git a/src/views/privateOrder/security/components/componentLeft.vue b/src/views/privateOrder/security/components/componentLeft.vue index 4293577..33b88aa 100644 --- a/src/views/privateOrder/security/components/componentLeft.vue +++ b/src/views/privateOrder/security/components/componentLeft.vue @@ -29,7 +29,8 @@ transform: translate(5px, -7px); " > - / + / {{ item.total }} @@ -40,11 +41,11 @@ v-for="(item, idx) in dataSource.bottom" :key="idx" class="section-bottom-item" - @click="showAttack(item.title,item.num)" + @click="showAttack(item.title, item.num)" > {{ item.title }} - {{ item.num |commaFilter }} + {{ item.num | commaFilter }} @@ -57,12 +58,15 @@ v-for="(item, idx) in superviseObject" :key="idx" :class="['section-object-item', item.className]" - @click="showAttack(item.title,item.num)" + @click="showAttack(item.title, item.num)" >
- {{ item.title }}
- {{ item.num | commaFilter }} + {{ item.title }}
+ {{ + item.num | commaFilter + }}
@@ -84,7 +88,7 @@
@@ -100,23 +104,25 @@ 攻击源/IP 攻击类型
- -
+ - {{ item.attackTime }} - {{ item.attackedIp }} - {{ $filterDict('tc_attack_type',item.attackType) }} -
-
+
+ {{ item.attackTime }} + {{ item.attackedIp }} + {{ + $filterDict("tc_attack_type", item.attackType) + }} +
+ +
@@ -178,7 +184,9 @@
攻击类型:
-
{{ $filterDict('tc_attack_type',tableDataPop.attackType) }}
+
+ {{ $filterDict("tc_attack_type", tableDataPop.attackType) }} +
@@ -222,7 +230,9 @@
网站安全等级:
-
{{ $filterDict('tc_net_safety_level',tableDataPop.level) }}
+
+ {{ $filterDict("tc_net_safety_level", tableDataPop.level) }} +
联系电话:
@@ -252,20 +262,17 @@