fix: CN-1592 UI 新增Tag检索界面:intent 将unknown修改为info

This commit is contained in:
hanyuxia
2024-04-17 16:08:04 +08:00
parent 69dd79bf96
commit e41a6fb344
5 changed files with 9 additions and 9 deletions

View File

@@ -172,7 +172,7 @@
box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02);
border-radius: 12px;
}
.unknow-list {
.info-list {
background-color: rgba(var(--el-color-info-rgb),0.1) !important;
color: var(--el-color-info)
}

View File

@@ -480,7 +480,7 @@ $color-mousemove-cursor: #D3D0D8;
}
}
.unknow {
.info {
background-color: rgb(119, 131, 145)
}

View File

@@ -311,7 +311,7 @@ export default {
const vm = this
return function (intent) {
const t = vm.tagIntent.find(t => t.value === intent)
return this.$t(t.label)
return t ? this.$t(t.label) : ''
}
},
colorIntent () {

View File

@@ -111,7 +111,7 @@ if (openMock) {
name: 'tag246',
category: 'categoty1',
indicatorType: 'IP,Domain',
intent: 'Unknow',
intent: 'Info',
description: ' tag1 description',
isBuiltIn: 1,
createdTime: 1685412014,

View File

@@ -322,8 +322,8 @@ export const tagIntentOptions = [
label: 'tag.intent.benign'
},
{
value: 'Unknow',
label: 'tag.intent.unknown'
value: 'Info',
label: 'tag.intent.info'
}
]
@@ -500,9 +500,9 @@ export const knowledgeBaseCategory = [
export const tagIntent = [
{
label: 'tag.intent.unknown',
value: 'Unknow',
name: 'unknow'
label: 'tag.intent.info',
value: 'Info',
name: 'info'
},
{
label: 'tag.intent.benign',