diff --git a/src/packages/components/Charts/ConfinedSpace/AlarmNowList/config.ts b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/config.ts new file mode 100644 index 0000000..8d1bb2a --- /dev/null +++ b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/config.ts @@ -0,0 +1,19 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { AlarmNowListConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' +import dataJson from './data.json' + + +export const option = { + dataset: dataJson, + rowNum: 4, + waitTime: 0.5, + showRankNum: false +} + +export default class Config extends PublicConfigClass implements CreateComponentType { + public key = AlarmNowListConfig.key + public chartConfig = cloneDeep(AlarmNowListConfig) + public option = cloneDeep(option) +} diff --git a/src/packages/components/Charts/ConfinedSpace/AlarmNowList/config.vue b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/config.vue new file mode 100644 index 0000000..c7a6e41 --- /dev/null +++ b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/config.vue @@ -0,0 +1,41 @@ + + + diff --git a/src/packages/components/Charts/ConfinedSpace/AlarmNowList/data.json b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/data.json new file mode 100644 index 0000000..57b7ce4 --- /dev/null +++ b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/data.json @@ -0,0 +1,32 @@ +[ + { + "title": "报警信息报警信息", + "level": "重大", + "time": "12:23:23", + "dept": "公司简称公司简称" + }, + { + "title": "报警信息报警信息", + "level": "重大", + "time": "12:23:23", + "dept": "公司简称公司简称" + }, + { + "title": "报警信息报警信息", + "level": "重大", + "time": "12:23:23", + "dept": "公司简称公司简称" + }, + { + "title": "报警信息报警信息", + "level": "重大", + "time": "12:23:23", + "dept": "公司简称公司简称" + }, + { + "title": "报警信息报警信息", + "level": "重大", + "time": "12:23:23", + "dept": "公司简称公司简称" + } +] diff --git a/src/packages/components/Charts/ConfinedSpace/AlarmNowList/index.ts b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/index.ts new file mode 100644 index 0000000..10f1ded --- /dev/null +++ b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/index.ts @@ -0,0 +1,13 @@ +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' + +export const AlarmNowListConfig: ConfigType = { + key: 'AlarmNowList', + chartKey: 'VAlarmNowList', + conKey: 'VCAlarmNowList', + title: '实时报警列表', + category: 'ConfinedSpace', + categoryName: '有限空间', + package: PackagesCategoryEnum.CHARTS, + chartFrame: ChartFrameEnum.COMMON, + image: 'AlarmNowList.png' +} diff --git a/src/packages/components/Charts/ConfinedSpace/AlarmNowList/index.vue b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/index.vue new file mode 100644 index 0000000..ceb4c43 --- /dev/null +++ b/src/packages/components/Charts/ConfinedSpace/AlarmNowList/index.vue @@ -0,0 +1,317 @@ + + + + + + diff --git a/src/packages/components/Charts/ConfinedSpace/index.ts b/src/packages/components/Charts/ConfinedSpace/index.ts index c5eccf6..582dae3 100644 --- a/src/packages/components/Charts/ConfinedSpace/index.ts +++ b/src/packages/components/Charts/ConfinedSpace/index.ts @@ -1,4 +1,4 @@ import {MapConfig} from './Map' import {PieCircleCommenConfig} from './PieCircleCommen' - -export default [MapConfig,PieCircleCommenConfig] \ No newline at end of file +import {AlarmNowListConfig} from './AlarmNowList' +export default [MapConfig,PieCircleCommenConfig,AlarmNowListConfig] \ No newline at end of file