From 8ce15ac064fed0ad0b9f295b7e82a4234bfdc773 Mon Sep 17 00:00:00 2001 From: gaohaifeng Date: Fri, 5 Sep 2025 13:39:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Charts):=20=E7=BB=9F=E4=B8=80=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E9=9B=86=E6=88=90=E8=83=BD=E6=BA=90=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E5=B9=B6=E6=B7=BB=E5=8A=A0=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将FeeOverview、ConsumptionProportion和ConstructionIndex图表的宽度调整为450,高度调整为320 - 为ConstructionIndex图表添加缺失的attr配置 - 在各图表组件中用Background组件替换原有容器,并添加标题 - 调整ConstructionIndex列表项的样式 --- .../IntegratedEnergy/ConstructionIndex/config.ts | 2 ++ .../IntegratedEnergy/ConstructionIndex/index.vue | 11 ++++++----- .../IntegratedEnergy/ConsumptionProportion/config.ts | 2 +- .../IntegratedEnergy/ConsumptionProportion/index.vue | 6 +++--- .../Charts/IntegratedEnergy/FeeOverview/config.ts | 2 +- .../Charts/IntegratedEnergy/FeeOverview/index.vue | 5 +++-- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts index bc24166..c6a244e 100644 --- a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts +++ b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/config.ts @@ -1,6 +1,7 @@ import { PublicConfigClass } from '@/packages/public' import { CreateComponentType } from '@/packages/index.d' import { ConstructionIndexConfig } from './index' +import { chartInitConfig } from '@/settings/designSetting' import cloneDeep from 'lodash/cloneDeep' //导入数据 @@ -14,4 +15,5 @@ export default class Config extends PublicConfigClass implements CreateComponent public key = ConstructionIndexConfig.key public chartConfig = cloneDeep(ConstructionIndexConfig) public option = cloneDeep(option) + public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 320, zIndex: 1 } } diff --git a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue index 689d31a..a5948d2 100644 --- a/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue +++ b/src/packages/components/Charts/IntegratedEnergy/ConstructionIndex/index.vue @@ -1,6 +1,6 @@