31 lines
853 B
TypeScript
31 lines
853 B
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { AlarmListConfig } from './index'
|
|
import dataJson from './data.json'
|
|
|
|
export const option = {
|
|
dataset: dataJson.source,
|
|
header: ['报警事件', '时间', '所属企业', '状态'],
|
|
headerTextColor: '#B4B4B4',
|
|
textColor: '#ffffff',
|
|
headerBackgroundColor: '#17325F',
|
|
itemBackgroundColor: '#0F233E',
|
|
statusColors: {
|
|
'未解决': '#FF4D4F',
|
|
'已解决': '#ffffff'
|
|
},
|
|
headerHeight: 40,
|
|
itemHeight: 35,
|
|
fontSize: 14,
|
|
title: '近60分钟报警信息',
|
|
titleSize: 18,
|
|
titleColor: '#ffffff',
|
|
iconColor: '#00E5FF'
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
public key = AlarmListConfig.key
|
|
public chartConfig = AlarmListConfig
|
|
public option = option
|
|
}
|