2025-08-26 15:43:53 +08:00
|
|
|
import { PublicConfigClass } from '@/packages/public'
|
|
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
|
|
import { TopAlarmsConfig } from './index'
|
|
|
|
import dataJson from './data.json'
|
|
|
|
export const option = {
|
2025-09-03 13:58:49 +08:00
|
|
|
sceneId: '',
|
2025-09-01 16:45:36 +08:00
|
|
|
dateTime: {
|
2025-08-26 15:43:53 +08:00
|
|
|
selectValue: 'day',
|
|
|
|
dataset: [
|
|
|
|
{
|
|
|
|
label: '当天',
|
|
|
|
value: 'day'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '本周',
|
|
|
|
value: 'week'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '当月',
|
|
|
|
value: 'month'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '本季度',
|
|
|
|
value: 'quarter'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '当年',
|
|
|
|
value: 'year'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2025-09-01 16:45:36 +08:00
|
|
|
dataset: dataJson.source,
|
|
|
|
title: '未处置报警数TOP5',
|
2025-09-01 16:57:25 +08:00
|
|
|
titleColor: '#eee',
|
2025-09-01 16:45:36 +08:00
|
|
|
titleSize: 16,
|
|
|
|
rankColor: '#5AA1AD',
|
|
|
|
nameColor: '#eeeeee',
|
|
|
|
valueColor: '#eeeeee',
|
|
|
|
barColorStart: '#2f72b5',
|
|
|
|
barColorEnd: '#99C6E6',
|
|
|
|
dropdownOptions: ['当日', '当月', '当年'],
|
|
|
|
dropdownDefault: '当日',
|
|
|
|
iconColor: '#00E5FF',
|
|
|
|
letterSpacing: 0.5,
|
|
|
|
paddingX: 45,
|
|
|
|
paddingY: -5,
|
|
|
|
isShowButton: false
|
2025-08-26 15:43:53 +08:00
|
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
2025-09-01 16:45:36 +08:00
|
|
|
public key = TopAlarmsConfig.key
|
|
|
|
public chartConfig = TopAlarmsConfig
|
|
|
|
public option = option
|
2025-08-26 15:43:53 +08:00
|
|
|
|
|
|
|
}
|