From c5bcf17059a356568bfd5c636bc1ce92599efd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Mon, 12 Aug 2024 10:18:03 +0800 Subject: [PATCH] =?UTF-8?q?CN-1676=20fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7filter=E7=82=B9=E5=87=BBkey=E6=97=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/detections/Index.vue b/src/views/detections/Index.vue index 4e1ca89d..436e5581 100644 --- a/src/views/detections/Index.vue +++ b/src/views/detections/Index.vue @@ -137,11 +137,11 @@ import { getAttackColor, getSeverityColor, barOption, - pieForSeverity, multipleBarOption + pieForSeverity } from '@/views/detections/options/detectionOptions' import { api } from '@/utils/api' import axios from 'axios' -import { urlParamsHandler, overwriteUrl, extensionEchartY, reverseSortBy, changeI18nOfSeverity } from '@/utils/tools' +import { urlParamsHandler, overwriteUrl, reverseSortBy, changeI18nOfSeverity } from '@/utils/tools' import { useRoute } from 'vue-router' import Loading from '@/components/common/Loading' import { useStore } from 'vuex' @@ -199,7 +199,7 @@ export default { { title: 'Key', column: 'keyFields', - topColumn: 'key_fields,key_values', + topColumn: 'keyFields,keyValues', collapse: false, value: [], showMore: true, @@ -441,7 +441,7 @@ export default { data.sort(reverseSortBy('count')) data = data.slice(0, 5) offenderIpOption.series[0].data = data.map(d => { - return [d.count, d.keyFields] + return [d.count, `${d.keyFields},${d.keyValues}`] }).reverse() detectionChart.setOption(offenderIpOption)