CN-65 perf: 数据的单位的展示逻辑完善

This commit is contained in:
chenjinsong
2021-07-21 22:46:08 +08:00
parent 1f28cb7148
commit 3ae20a4a85
11 changed files with 275 additions and 197 deletions

View File

@@ -54,6 +54,12 @@ export const entityTypeMappingKey = {
ip: ['country', 'region']
}
export const unitTypes = {
time: 'time',
number: 'number',
byte: 'byte'
}
export const chartTableDefaultPageSize = 10 // table类型图表默认每页数据量
export const chartTableTopOptions = [10, 100] // table类型图表的TOP-N选项
export const chartPieTableTopOptions = [{ name: 'Sessions', value: 'sessions' }, { name: 'Packets', value: 'packets' }, { name: 'Bytes', value: 'bytes' }] // table类型图表的TOP-N选项