NEZ-351 perf: dashboard相关滑框bug修复、优化

This commit is contained in:
chenjinsong
2020-07-31 20:57:04 +08:00
parent 4e8af2df33
commit 68399d2750
23 changed files with 180 additions and 375 deletions

View File

@@ -16,4 +16,46 @@ export const asset = {
{value: 1, label: i18n.t('asset.inStock')},
{value: 2, label: i18n.t('asset.notInStock')}
],
}
};
export const alertMessage = {
severityData: [
{value: 'medium', label: i18n.t("alert.config.medium")},
{value: 'high', label: i18n.t("alert.config.high")},
{value: 'low', label: i18n.t("alert.config.low")}
],
typeData: [
{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')}
],
levels:[
{value: 'medium', label: i18n.t("alert.config.medium")},
{value: 'high', label: i18n.t("alert.config.high")},
{value: 'low', label: i18n.t("alert.config.low")}
],
states:[
{value: '1', label: i18n.t('alert.list.pending')},
{value: '2', label: i18n.t('alert.list.expired')}
],
};
export const statisticsList = [
{value: "min", label: i18n.t("dashboard.panel.chartForm.statisticsVal.min")},
{value: "max", label: i18n.t("dashboard.panel.chartForm.statisticsVal.max")},
{value: "average", label: i18n.t("dashboard.panel.chartForm.statisticsVal.average")},
{value: "total", label: i18n.t("dashboard.panel.chartForm.statisticsVal.total")},
{value: "first", label: i18n.t("dashboard.panel.chartForm.statisticsVal.first")},
{value: "last", label: i18n.t("dashboard.panel.chartForm.statisticsVal.last")},
{value: "range", label: i18n.t("dashboard.panel.chartForm.statisticsVal.range")},
{value: "different", label: i18n.t("dashboard.panel.chartForm.statisticsVal.different")},
];
export const intervalList = [
{value: -1, label: i18n.t("dashboard.panel.refreshInterval.never")},
{value: 30, label: '30s'},
{value: 60, label: '1m'},
{value: 300, label: '5m'},
{value: 900, label: '15m'},
{value: 1800, label: '30m'}
];