feat: panel初始化,api提取

This commit is contained in:
chenjinsong
2021-06-11 23:00:33 +08:00
parent ffc7652fc5
commit f2dafb19cb
7 changed files with 80 additions and 28 deletions

View File

@@ -3,9 +3,18 @@ export const defaultPageSize = 20
// 统一定义跳转来源
export const fromRoute = {
trafficSummary: 'trafficSummary',
networkAppPerformance: 'networkAppPerformance',
dnsServiceInsights: 'dnsServiceInsights',
user: 'user'
}
/* panel类别和路由之间的映射 */
export const panelTypeAndRouteMapping = {
trafficSummary: 1,
networkAppPerformance: 2,
dnsServiceInsights: 3
}
export const position = {
tableHeight: {
normal: 'calc(100% - 48px)' // 常规高度,特例在下方定义