diff --git a/src/packages/components/Charts/MyComponents/DeviceStatus/config.ts b/src/packages/components/Charts/MyComponents/DeviceStatus/config.ts index 69775d1..e2bb93d 100644 --- a/src/packages/components/Charts/MyComponents/DeviceStatus/config.ts +++ b/src/packages/components/Charts/MyComponents/DeviceStatus/config.ts @@ -2,22 +2,20 @@ import { PublicConfigClass } from '@/packages/public' import { CreateComponentType } from '@/packages/index.d' import { DeviceStatusConfig } from './index' import dataJson from './data.json' - export const option = { dataset: dataJson.source, header: ['所属企业', '设备类型', '设备名称'], - headerTextColor: '#ffffff', + headerTextColor: '#7F9DB4', textColor: '#ffffff', - headerBackgroundColor: 'rgba(26, 56, 90, 0.5)', - itemBackgroundColor: 'rgba(15, 35, 62, 0.5)', - timeTextColor: '#ffffff', - timeBgColor: '#FF4D4F', - headerHeight: 40, - itemHeight: 35, - fontSize: 14, + itemBackgroundColor: '#212936', + timeTextColor: '#B75055', + timeBgColor: '#562922', + headerHeight: 30, + itemHeight: 28, + fontSize: 11, title: '设备实时在线概况', - titleSize: 20, - titleColor: '#B4E4FF', + titleSize: 17, + titleColor: '#ffffff', iconColor: '#00E5FF', onlineRate: 75, onlineDevice: 23, @@ -26,7 +24,11 @@ export const option = { headerBgColor2: '#003a8c', legendColors: ['#00E5FF', '#00FF7F', '#FFFFFF'], progressColor: '#00E5FF', - progressBgColor: '#1A385A' + progressBgColor: 'rgba(0, 0, 0, 0.1)', + progressTextColor: '#DDE3E9', + paddingX: 60, + paddingY: -4, + letterSpacing: 1 } export default class Config extends PublicConfigClass implements CreateComponentType { diff --git a/src/packages/components/Charts/MyComponents/DeviceStatus/index.vue b/src/packages/components/Charts/MyComponents/DeviceStatus/index.vue index af0c9bd..f6cf5b4 100644 --- a/src/packages/components/Charts/MyComponents/DeviceStatus/index.vue +++ b/src/packages/components/Charts/MyComponents/DeviceStatus/index.vue @@ -1,67 +1,90 @@