2025-08-27 17:45:05 +08:00
|
|
|
import { PublicConfigClass } from '@/packages/public'
|
|
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
|
|
import { AlarmListHazCConfig } from './index'
|
|
|
|
import dataJson from './data.json'
|
2025-09-08 15:04:00 +08:00
|
|
|
import { chartInitConfig } from '@/settings/designSetting'
|
|
|
|
import { cloneDeep } from 'lodash'
|
2025-08-27 17:45:05 +08:00
|
|
|
export enum FontWeightEnum {
|
|
|
|
NORMAL = '常规',
|
|
|
|
BOLD = '加粗',
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum FontStyleEnum {
|
|
|
|
NORMAL = '常规',
|
|
|
|
ITALIC = '斜体',
|
|
|
|
}
|
|
|
|
|
|
|
|
export const FontWeightObject = {
|
|
|
|
[FontWeightEnum.NORMAL]: 'normal',
|
|
|
|
[FontWeightEnum.BOLD]: 'bold',
|
|
|
|
}
|
|
|
|
|
|
|
|
export const FontStyleObject = {
|
|
|
|
[FontStyleEnum.NORMAL]: 'normal',
|
|
|
|
[FontStyleEnum.ITALIC]: 'italic',
|
|
|
|
}
|
|
|
|
export const option = {
|
2025-09-04 09:45:21 +08:00
|
|
|
sceneCode: 'T04',
|
2025-08-27 17:45:05 +08:00
|
|
|
dataset: dataJson,
|
|
|
|
header: ['报警事件', '时间', '所属企业', '状态'],
|
|
|
|
headerTextColor: '#B4B4B4',
|
|
|
|
textColor: '#ffffff',
|
|
|
|
headerBackgroundColor: '#17325F',
|
|
|
|
itemBackgroundColor: '#242834',
|
|
|
|
statusColors: {
|
|
|
|
// '未解决': '#FF4D4F',
|
|
|
|
// '已解决': '#ffffff'
|
|
|
|
'重大风险': 'red'
|
|
|
|
},
|
|
|
|
headerHeight: 28,
|
|
|
|
itemHeight: 28,
|
|
|
|
fontSize: 12,
|
2025-09-08 13:56:24 +08:00
|
|
|
titleText: '近60分钟报警信息',
|
2025-08-27 17:45:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
|
|
public key = AlarmListHazCConfig.key
|
|
|
|
public chartConfig = AlarmListHazCConfig
|
2025-09-08 15:04:00 +08:00
|
|
|
public option = cloneDeep(option)
|
2025-09-08 17:53:35 +08:00
|
|
|
public attr = { ...chartInitConfig, x: 0, y: 0, w: 500, h: 325, zIndex: 1 }
|
2025-08-27 17:45:05 +08:00
|
|
|
|
|
|
|
}
|