From 5a2cc50ccf2f4a826328bfd3c0ed529c3e9c460f Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 25 Feb 2022 15:16:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=90=8Edetection=E4=B8=AA=E5=88=AB=E5=9B=BE=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detections/Index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/detections/Index.vue b/src/views/detections/Index.vue index fa5ed523..20c32479 100644 --- a/src/views/detections/Index.vue +++ b/src/views/detections/Index.vue @@ -14,7 +14,7 @@ >
-
+
{{$t('detection.severity')}}
-
+
{{$t('detection.categoryProportion')}}
-
+
{{pageType === detectionPageType.securityEvent ? $t('detection.activeAttacker') : $t('detections.activeEntity')}}
-
+
@@ -218,7 +218,7 @@ export default { values: [[1435781430781, "5"], [1435781431781, "7"],[1435781432781, "5"], [1435781433781, "8"]] } ] - const chartDom = document.getElementById('eventSeverityTrendBar') + const chartDom = document.getElementById(`eventSeverityTrendBar${this.pageType}`) const detectionChart = echarts.init(chartDom) const eventSeverityTrendOption = this.$_.cloneDeep(multipleBarOption) data.forEach(item => { @@ -258,7 +258,7 @@ export default { eventSeverityOption.series[0].data = data.map(d => { return { value: d.count, name: d.eventSeverity, itemStyle: { color: getSeverityColor(d.eventSeverity) } } }) - const chartDom = document.getElementById('eventSeverityPie') + const chartDom = document.getElementById(`eventSeverityPie${this.pageType}`) const detectionChart = echarts.init(chartDom) detectionChart.setOption(eventSeverityOption) }).catch(error => { @@ -289,7 +289,7 @@ export default { } ] this.filterData[this.pageType][1].data = data.map(r => ({ label: r.attackType, value: r.attackType, count: r.count })) - const chartDom = document.getElementById('detectionCategoryPer') + const chartDom = document.getElementById(`detectionCategoryPer${this.pageType}`) const detectionChart = echarts.init(chartDom) const securityTypeOption = this.$_.cloneDeep(pieForSeverity) securityTypeOption.series[0].data = data.map(d => { @@ -325,7 +325,7 @@ export default { this.filterData[this.pageType][4].showMore = showMore this.filterData[this.pageType][4].showIndex = showIndex - const chartDom = document.getElementById('detectionActiveAttacker') + const chartDom = document.getElementById(`detectionActiveAttacker${this.pageType}`) const detectionChart = echarts.init(chartDom) const offenderIpOption = this.$_.cloneDeep(activeAttackBar) offenderIpOption.series[0].data = data.map(d => { @@ -480,7 +480,7 @@ export default { count: 50 } ] - const chartDom = document.getElementById('detectionActiveAttacker') + const chartDom = document.getElementById(`detectionActiveAttacker${this.pageType}`) const detectionChart = echarts.init(chartDom) const option = this.$_.cloneDeep(activeAttackBar) option.series[0].data = data.map(d => {