-
@@ -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 => {