问题修复

lijinlong
许宏杰 2 years ago
parent a3b83c4330
commit 003cd0c8ac

@ -4,6 +4,6 @@ ENV = 'development'
# base api # base api
VUE_APP_BASE_API = '/dashboard' VUE_APP_BASE_API = '/dashboard'
VUE_APP_BASE_API2 = 'http://192.168.0.110:9027' VUE_APP_BASE_API2 = 'http://192.168.0.109:9027'
BASE_API = 'http://10.10.3.35:9070' BASE_API = 'http://10.10.3.35:9070'

@ -292,3 +292,20 @@ export function listWpyrwwcl(query) {
params: query, params: query,
}); });
} }
// 查询安全监测受攻击统计列表
export function listTj(query) {
return request({
url: "/zongzhi/tj/list",
method: "get",
params: query,
});
}
// 查询数据来源统计列表
export function listSourceTj(query) {
return request({
url: "/zongzhi/sourceTj/list",
method: "get",
params: query,
});
}

@ -81,7 +81,7 @@
<img :src="securityMonitor.url" alt="" /> <img :src="securityMonitor.url" alt="" />
<div class="monitor-info-des"> <div class="monitor-info-des">
<span class="info-des-title">{{ securityMonitor.title }}</span> <span class="info-des-title">{{ securityMonitor.title }}</span>
<span class="info-des-total">{{ securityMonitor.total }}</span> <span class="info-des-total">{{ monitorForm.totalSum }}</span>
</div> </div>
</div> </div>
<span class="monitor-line">|</span> <span class="monitor-line">|</span>
@ -93,7 +93,15 @@
class="monitor-detail-item" class="monitor-detail-item"
> >
<span class="detail-item-title">{{ item.title }}</span> <span class="detail-item-title">{{ item.title }}</span>
<span class="detail-item-num">{{ item.num }}</span> <span class="detail-item-num">{{
item.title == "入侵攻击"
? monitorForm.rqSum
: item.title == "恶意扫描"
? monitorForm.eySum
: item.title == "僵木蠕病毒"
? monitorForm.jmrSum
: 0
}}</span>
</div> </div>
</div> </div>
</div> </div>
@ -116,7 +124,7 @@
class="monitor-list" class="monitor-list"
> >
<span :data-id="item.id">{{ item.attackTime }}</span> <span :data-id="item.id">{{ item.attackTime }}</span>
<span :data-id="item.id">{{ item.attackedIp }}</span> <span :data-id="item.id">{{ item.sourceIp }}</span>
<span :data-id="item.id">{{ <span :data-id="item.id">{{
$filterDict("tc_attack_type", item.attackType) $filterDict("tc_attack_type", item.attackType)
}}</span> }}</span>
@ -310,6 +318,8 @@ import {
saftyscreenSafety, saftyscreenSafety,
listDetection, listDetection,
getDetection, getDetection,
listTj,
listSourceTj,
} from "@/api/zongzhi/st.js"; } from "@/api/zongzhi/st.js";
import { import {
yingTanZhen, yingTanZhen,
@ -426,14 +436,14 @@ export default {
num: 0, num: 0,
className: "item2", className: "item2",
url: require("@/assets/privateOrder/general/icon-监管单位.png"), url: require("@/assets/privateOrder/general/icon-监管单位.png"),
type:5 type: 5,
}, },
{ {
title: "网站监测", title: "网站监测",
num: 0, num: 0,
className: "item3", className: "item3",
url: require("@/assets/privateOrder/general/icon-网站监测.png"), url: require("@/assets/privateOrder/general/icon-网站监测.png"),
type:6 type: 6,
}, },
{ {
title: "IDC单位", title: "IDC单位",
@ -459,20 +469,26 @@ export default {
title: "网络攻击(次)", title: "网络攻击(次)",
total: 0, total: 0,
detail: [ detail: [
// { {
// title: '', title: "入侵攻击",
// num: 1455.92 // num: 1455.92
// }, },
// { {
// title: '', title: "恶意扫描",
// num: 2325.24 // num: 2325.24
// }, },
// { {
// title: '', title: "僵木蠕病毒",
// num: 796.152 // num: 796.152
// } },
], ],
}, },
monitorForm: {
totalSum: 0,
rqSum: 0,
eySum: 0,
jmrSum: 0,
},
tableDataPop: { tableDataPop: {
// id: 1, // id: 1,
// attackTime: '2023-07-30', // attackTime: '2023-07-30',
@ -540,6 +556,10 @@ export default {
clearInterval(this.time); clearInterval(this.time);
}, },
mounted() { mounted() {
listSourceTj().then((res) => {
this.dataSource.top[0].currentNum = res.rows[0].lable1;
this.dataSource.top[1].currentNum = res.rows[0].lable2;
});
this.changeBtn(); // this.changeBtn(); //
this.getSaftyscreenSupervise(); this.getSaftyscreenSupervise();
this.getSaftyscreenSafety(); this.getSaftyscreenSafety();
@ -588,24 +608,18 @@ export default {
dataLY().then((res) => { dataLY().then((res) => {
console.log(res); console.log(res);
res.data.forEach((value, index) => { res.data.forEach((value, index) => {
this.dataSource.top.forEach((value1, index1) => {
if (value.type == value1.type) {
this.dataSource.top[index1].currentNum = value.count
return
}
});
this.dataSource.bottom.forEach((value2, index2) => { this.dataSource.bottom.forEach((value2, index2) => {
if (value.type == value2.type) { if (value.type == value2.type) {
this.dataSource.bottom[index2].num = value.count this.dataSource.bottom[index2].num = value.count;
return return;
} }
}); });
this.superviseObject.forEach((value3,index3)=>{ this.superviseObject.forEach((value3, index3) => {
if (value.type == value3.type) { if (value.type == value3.type) {
this.superviseObject[index3].num = value.count this.superviseObject[index3].num = value.count;
return return;
} }
}) });
}); });
}); });
}, },
@ -661,14 +675,9 @@ export default {
* 安全监测攻击类型统计 * 安全监测攻击类型统计
*/ */
getSaftyscreenSafety() { getSaftyscreenSafety() {
saftyscreenSafety().then((res) => { listTj().then((res) => {
this.securityMonitor.detail = res.data.list.map((item, index) => { // this.securityMonitor.detail = res.rows
this.securityMonitor.total = this.securityMonitor.total + item.count; this.monitorForm = res.rows[0];
return {
title: this.$filterDict("tc_attack_type", item.attackType),
num: item.count,
};
});
}); });
}, },
/** /**

Loading…
Cancel
Save