feat: CN-1592 UI 新增Tag检索界面:列表部分

This commit is contained in:
hanyuxia
2024-04-08 18:15:20 +08:00
parent 45ad8d15b5
commit 00fa65f011
9 changed files with 742 additions and 626 deletions

View File

@@ -60,6 +60,13 @@ export const api = {
reportBatchDownloadPdf: '/report/job/batchDownloadPdf',
reportDownloadPdf: '/report/job/downloadPdf',
reportView: '/report/job/view',
// tag 相关
tagList: '/v1/tag/list',
tagDelete: '/v1/tag/',
tagIndicatorStatistics: '/v1/tag/{{name}}/indicator/statistics',
tagIndicatorTrend: '/v1/tag/{{name}}/indicator/trend',
tagTrafficEntityStatistics: '/v1/tag/{{name}}/trafficEntity/statistics',
tagTrafficEntityTrend: '/v1/tag/{{name}}/trafficEntity/trend',
// 业务
panel: '/visual/panel',
chart: '/visual/chart',

View File

@@ -63,7 +63,8 @@ export const fromRoute = {
galaxyProxy: 'galaxyProxy',
chart: 'chart',
cryptocurrency: 'cryptocurrency',
builtinReport: 'builtinReport'
builtinReport: 'builtinReport',
tag: 'tag'
}
/* panel类别和名称之间的映射 */
@@ -463,6 +464,25 @@ export const knowledgeBaseCategory = [
value: 'user_defined'
}
]
export const tagIntentColor = [
{
label: 'tag.intent.unknown',
name: 'unknow',
intent: 'Unknow'
},
{
label: 'tag.intent.benign',
name: 'benign',
intent: 'Benign'
},
{
label: 'tag.intent.malicious',
name: 'malicious',
intent: 'Malicious'
}
]
export const knowledgeBaseColor = [
{
label: 'knowledge.info',