fix: 1、搜索组件有关枚举的添加国际化;2、修复tag模式下切换key,value还保留上次选择的问题;3、修复切换语言环境,搜索参数包含其他语言导致不能识别转换的问题
This commit is contained in:
@@ -426,8 +426,8 @@ export const enumerateData = [
|
||||
{
|
||||
name: 'status',
|
||||
data: [
|
||||
{ code: 'Ended', value: 1 },
|
||||
{ code: 'Active', value: 0 }
|
||||
{ code: _this.$t('detections.ended'), code1: 'detections.ended', value: 1 },
|
||||
{ code: _this.$t('detections.active'), code1: 'detections.active', value: 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -446,11 +446,11 @@ export const enumerateData = [
|
||||
{
|
||||
name: 'severity',
|
||||
data: [
|
||||
{ code: 'critical', value: 'critical' },
|
||||
{ code: 'high', value: 'high' },
|
||||
{ code: 'Medium', value: 'Medium' },
|
||||
{ code: 'low', value: 'low' },
|
||||
{ code: 'info', value: 'info' }
|
||||
{ code: _this.$t('overall.critical'), code1: 'overall.critical', value: 'critical' },
|
||||
{ code: _this.$t('overall.high'), code1: 'overall.high', value: 'high' },
|
||||
{ code: _this.$t('overall.medium'), code1: 'overall.medium', value: 'medium' },
|
||||
{ code: _this.$t('overall.low'), code1: 'overall.low', value: 'low' },
|
||||
{ code: _this.$t('overall.info'), code1: 'overall.info', value: 'info' }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user