diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts new file mode 100644 index 0000000..8ca1d9b --- /dev/null +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts @@ -0,0 +1,57 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { AlarmListHazCConfig } from './index' +import dataJson from './data.json' +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 = { + dataset: dataJson, + header: ['报警事件', '时间', '所属企业', '状态'], + headerTextColor: '#B4B4B4', + textColor: '#ffffff', + headerBackgroundColor: '#17325F', + itemBackgroundColor: '#242834', + statusColors: { + // '未解决': '#FF4D4F', + // '已解决': '#ffffff' + '重大风险': 'red' + }, + headerHeight: 28, + itemHeight: 28, + fontSize: 12, + title: '近60分钟报警信息', + titleSize: 17, + titleColor: '#ffffff', + iconColor: '#00E5FF', + fontWeight: 'normal', + fontStyle: 'normal', + paddingX: 40, + paddingY: -30, + letterSpacing: 1, + isShowButton: false +} + +export default class Config extends PublicConfigClass implements CreateComponentType { + public key = AlarmListHazCConfig.key + public chartConfig = AlarmListHazCConfig + public option = option + + +} diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.vue b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.vue new file mode 100644 index 0000000..889cffd --- /dev/null +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.vue @@ -0,0 +1,70 @@ + + + diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/data.json b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/data.json new file mode 100644 index 0000000..e6827ec --- /dev/null +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/data.json @@ -0,0 +1,8 @@ +[ + { + "alarmTime": "Nananananna", + "alarmLevel": "Nananananna", + "compName": "Nananananna", + "alarmDescname": "Nananananna" + } +] \ No newline at end of file diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.ts b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.ts new file mode 100644 index 0000000..f240448 --- /dev/null +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.ts @@ -0,0 +1,15 @@ +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' +import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' + +export const AlarmListHazCConfig: ConfigType = { + key: 'AlarmListHazC', + chartKey: 'VAlarmListHazC', + conKey: 'VCAlarmListHazC', + title: '报警列表带接口', + category: 'HazardousChemicalsSpace', + categoryName: '危化品场景', + package: PackagesCategoryEnum.CHARTS, + chartFrame: ChartFrameEnum.COMMON, + image: 'alarm_list.png' +} +export default AlarmListHazCConfig diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue new file mode 100644 index 0000000..981a6b8 --- /dev/null +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue @@ -0,0 +1,251 @@ + + + + + diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/SmallBorder/index.vue b/src/packages/components/Charts/HazardousChemicalsSpace/SmallBorder/index.vue index 7a2f947..88cd57a 100644 --- a/src/packages/components/Charts/HazardousChemicalsSpace/SmallBorder/index.vue +++ b/src/packages/components/Charts/HazardousChemicalsSpace/SmallBorder/index.vue @@ -68,6 +68,11 @@ $border-gradient-end: rgba(128, 128, 128, 0); width: 100%; height: 12%; // background-color: antiquewhite; + + & .svg { + width: 100%; + } } + } diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/index.ts b/src/packages/components/Charts/HazardousChemicalsSpace/index.ts index 1b63739..5a9ac78 100644 --- a/src/packages/components/Charts/HazardousChemicalsSpace/index.ts +++ b/src/packages/components/Charts/HazardousChemicalsSpace/index.ts @@ -5,6 +5,7 @@ import { LineDropdownConfig } from './LineDropdownHaz/index' import { AlarmListConfig } from './AlarmListHaz/index' import { LineGraph01 } from './LineGraph01Haz/index' import {TopAlarmsConfig} from './TopAlarmsHaz/index' +import AlarmListHazCConfig from './AlarmListHazC' export default [ yushiVideoConfig, @@ -13,5 +14,6 @@ export default [ LineDropdownConfig, AlarmListConfig, LineGraph01, - TopAlarmsConfig + TopAlarmsConfig, + AlarmListHazCConfig ] \ No newline at end of file