54 lines
1.1 KiB
Vue
54 lines
1.1 KiB
Vue
<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')
|
||
}
|
||
],
|
||
assetState: [ //资产入库/出库状态
|
||
{
|
||
value: 1,
|
||
label: i18n.t('asset.createAssetTab.inStock')
|
||
}, {
|
||
value: 2,
|
||
label: i18n.t('asset.createAssetTab.notInStock')
|
||
}
|
||
]
|
||
};
|
||
export default searchSelectInfo;
|
||
</script>
|