feat: 增加搜索框实现
1.alert下两个页面的搜索功能 2.config-promserver部分搜索功能
This commit is contained in:
44
nezha-fronted/src/components/common/searchSelectInfo.vue
Normal file
44
nezha-fronted/src/components/common/searchSelectInfo.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<script>
|
||||
import i18n from './i18n';
|
||||
const searchSelectInfo = { // value: 传给后台的值;label:显示给用户看的值
|
||||
severity: [ //告警级别
|
||||
{
|
||||
value: 'medium',
|
||||
label: i18n.t("alert.config.medium")
|
||||
},
|
||||
{
|
||||
value: 'high',
|
||||
label: i18n.t("alert.config.high")
|
||||
},
|
||||
{
|
||||
value: 'low',
|
||||
label: i18n.t("alert.config.low")
|
||||
}
|
||||
],
|
||||
promType: [ //promServer类型
|
||||
{
|
||||
value: 1,
|
||||
label: 'Global'
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: 'Per-Datacenter'
|
||||
}
|
||||
],
|
||||
alertType: [ //告警类型
|
||||
{
|
||||
value: 1,
|
||||
label: i18n.t('alert.config.typeOption.project')
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: i18n.t('alert.config.typeOption.module')
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
label: i18n.t('alert.config.typeOption.asset')
|
||||
}
|
||||
]
|
||||
};
|
||||
export default searchSelectInfo;
|
||||
</script>
|
||||
Reference in New Issue
Block a user