style【能源场景】:优化样式
This commit is contained in:
parent
1963ae8f5b
commit
f679b64de5
@ -8,6 +8,7 @@ import * as echarts from 'echarts'
|
|||||||
export const includes = []
|
export const includes = []
|
||||||
const otherOption = {
|
const otherOption = {
|
||||||
secneID: '',
|
secneID: '',
|
||||||
|
titleText:'能源趋势',
|
||||||
unit: dataJson.unit,
|
unit: dataJson.unit,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,8 +18,8 @@ const option = {
|
|||||||
// 添加标题配置
|
// 添加标题配置
|
||||||
title: {
|
title: {
|
||||||
text: '单位:' + otherOption.unit,
|
text: '单位:' + otherOption.unit,
|
||||||
left: '3%',
|
left: '2%',
|
||||||
top: '3%',
|
top: '2%',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: 'rgba(255, 255, 255, 0.7)',
|
color: 'rgba(255, 255, 255, 0.7)',
|
||||||
|
@ -8,6 +8,8 @@ import { chartInitConfig } from '@/settings/designSetting'
|
|||||||
import costIcon from './assets/cost.svg'
|
import costIcon from './assets/cost.svg'
|
||||||
import dataJson from './data.json'
|
import dataJson from './data.json'
|
||||||
const otherOption = {
|
const otherOption = {
|
||||||
|
secneID: '',
|
||||||
|
titleText: '能源总览',
|
||||||
gridItems: [
|
gridItems: [
|
||||||
{
|
{
|
||||||
icon: costIcon,
|
icon: costIcon,
|
||||||
@ -41,7 +43,7 @@ const otherOption = {
|
|||||||
}
|
}
|
||||||
export const option = {
|
export const option = {
|
||||||
...otherOption,
|
...otherOption,
|
||||||
dataset: dataJson
|
dataset: dataJson.source
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"cost": 1000,
|
"source": {
|
||||||
"mainsElectricity": 1000,
|
"cost": 1000,
|
||||||
"waterSupply": 1000,
|
"mainsElectricity": 1000,
|
||||||
"gasSupply": 1000
|
"waterSupply": 1000,
|
||||||
|
"gasSupply": 1000
|
||||||
|
}
|
||||||
}
|
}
|
@ -17,8 +17,8 @@ const option = {
|
|||||||
// 添加标题配置
|
// 添加标题配置
|
||||||
title: {
|
title: {
|
||||||
text: '单位:' + otherOption.unit,
|
text: '单位:' + otherOption.unit,
|
||||||
left: '3%',
|
left: '2%',
|
||||||
top: '3%',
|
top: '2%',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: 'rgba(255, 255, 255, 0.7)',
|
color: 'rgba(255, 255, 255, 0.7)',
|
||||||
|
@ -5,9 +5,11 @@ import { FeeOverviewConfig } from "./FeeOverview"
|
|||||||
import { WaterSupplySystemConfig } from "./WaterSupplySystem"
|
import { WaterSupplySystemConfig } from "./WaterSupplySystem"
|
||||||
import { AirSupplySystemConfig } from './AirSupplySystem'
|
import { AirSupplySystemConfig } from './AirSupplySystem'
|
||||||
import { PowerSupplySystemConfig } from './PowerSupplySystem'
|
import { PowerSupplySystemConfig } from './PowerSupplySystem'
|
||||||
|
import { GasSystemConfig } from './GasSystem'
|
||||||
export default [
|
export default [
|
||||||
EnergyOverviewConfig, EnergyConsumptionTrendConfig,
|
EnergyOverviewConfig, EnergyConsumptionTrendConfig,
|
||||||
ConsumptionProportionConfig,
|
ConsumptionProportionConfig,
|
||||||
FeeOverviewConfig,
|
FeeOverviewConfig,
|
||||||
WaterSupplySystemConfig, AirSupplySystemConfig, PowerSupplySystemConfig
|
WaterSupplySystemConfig, AirSupplySystemConfig, PowerSupplySystemConfig,
|
||||||
|
GasSystemConfig
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user