|
|
@ -30,11 +30,11 @@ |
|
|
<component :is="item.comp" :key="index" :item="item" :option="item.option" tip-loop></component> |
|
|
<component :is="item.comp" :key="index" :item="item" :option="item.option" tip-loop></component> |
|
|
</block> |
|
|
</block> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bottom"> |
|
|
|
|
|
|
|
|
<!--<div class="bottom"> |
|
|
<block size-type="2" :item="bottom"> |
|
|
<block size-type="2" :item="bottom"> |
|
|
<component :is="bottom.comp" :item="bottom" :option="bottom.option" tip-loop></component> |
|
|
<component :is="bottom.comp" :item="bottom" :option="bottom.option" tip-loop></component> |
|
|
</block> |
|
|
</block> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div>--> |
|
|
</div> |
|
|
</div> |
|
|
<tooltip :data="toolTipData" /> |
|
|
<tooltip :data="toolTipData" /> |
|
|
</screen-adapter> |
|
|
</screen-adapter> |
|
|
@ -116,7 +116,7 @@ export default defineComponent({ |
|
|
icon: 'elec', |
|
|
icon: 'elec', |
|
|
label: '电用量', |
|
|
label: '电用量', |
|
|
value: '', |
|
|
value: '', |
|
|
unit: '万kWh', |
|
|
|
|
|
|
|
|
unit: 'kWh', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 'waterDayValue', |
|
|
key: 'waterDayValue', |
|
|
@ -157,7 +157,7 @@ export default defineComponent({ |
|
|
icon: 'elec', |
|
|
icon: 'elec', |
|
|
label: '电用量', |
|
|
label: '电用量', |
|
|
value: '', |
|
|
value: '', |
|
|
unit: '万kWh', |
|
|
|
|
|
|
|
|
unit: 'kWh', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 'waterDayValue', |
|
|
key: 'waterDayValue', |
|
|
@ -190,11 +190,10 @@ export default defineComponent({ |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '当月用能趋势', |
|
|
|
|
|
comp: 'chart', |
|
|
comp: 'chart', |
|
|
option: monthEnergyUsageTrend(), |
|
|
|
|
|
|
|
|
title: '当日电力负荷', |
|
|
|
|
|
option: elecPayload(), |
|
|
unit: 'kWh', |
|
|
unit: 'kWh', |
|
|
select: true, |
|
|
|
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
right: [ |
|
|
right: [ |
|
|
@ -212,10 +211,11 @@ export default defineComponent({ |
|
|
select: true, |
|
|
select: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|
|
|
title: '当月用能趋势', |
|
|
comp: 'chart', |
|
|
comp: 'chart', |
|
|
title: '当日电力负荷', |
|
|
|
|
|
option: elecPayload(), |
|
|
|
|
|
|
|
|
option: monthEnergyUsageTrend(), |
|
|
unit: 'kWh', |
|
|
unit: 'kWh', |
|
|
|
|
|
select: true, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
bottom: { |
|
|
bottom: { |
|
|
@ -242,7 +242,7 @@ export default defineComponent({ |
|
|
const d = res.currentMonthData; |
|
|
const d = res.currentMonthData; |
|
|
const c = state.dataForm.code; |
|
|
const c = state.dataForm.code; |
|
|
const u = state.dataForm.codeMap[c]; |
|
|
const u = state.dataForm.codeMap[c]; |
|
|
state.left[2].option = monthEnergyUsageTrend(d, u); |
|
|
|
|
|
|
|
|
state.right[2].option = monthEnergyUsageTrend(d, u); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
@ -315,24 +315,24 @@ export default defineComponent({ |
|
|
cb: (res: any) => { |
|
|
cb: (res: any) => { |
|
|
if (utilService.isValidObject(res) && utilService.isValidArray(res.currentMonthData)) { |
|
|
if (utilService.isValidObject(res) && utilService.isValidArray(res.currentMonthData)) { |
|
|
const d = res.currentMonthData; |
|
|
const d = res.currentMonthData; |
|
|
state.right[2].option = elecPayload(d); |
|
|
|
|
|
|
|
|
state.left[2].option = elecPayload(d); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
//24小时用能分布情况 |
|
|
//24小时用能分布情况 |
|
|
useFetch('/board/dayEnergy/trend', { |
|
|
|
|
|
data: { |
|
|
|
|
|
//day: '2025-04-01', |
|
|
|
|
|
day: moment().subtract(1, 'days').format('YYYY-MM-DD'), |
|
|
|
|
|
}, |
|
|
|
|
|
cb: (res: any) => { |
|
|
|
|
|
if (utilService.isValidObject(res)) { |
|
|
|
|
|
state.bottom.option = energyUsageDistribution(res); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// useFetch('/board/dayEnergy/trend', { |
|
|
|
|
|
// data: { |
|
|
|
|
|
// //day: '2025-04-01', |
|
|
|
|
|
// day: moment().subtract(1, 'days').format('YYYY-MM-DD'), |
|
|
|
|
|
// }, |
|
|
|
|
|
// cb: (res: any) => { |
|
|
|
|
|
// if (utilService.isValidObject(res)) { |
|
|
|
|
|
// state.bottom.option = energyUsageDistribution(res); |
|
|
|
|
|
// } |
|
|
|
|
|
// }, |
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
changeType(state.dataForm.code); |
|
|
changeType(state.dataForm.code); |
|
|
fn(); |
|
|
fn(); |
|
|
@ -472,6 +472,23 @@ export default defineComponent({ |
|
|
cursor: move; |
|
|
cursor: move; |
|
|
//background: url("@/assets/images/njhl/bg.png"); |
|
|
//background: url("@/assets/images/njhl/bg.png"); |
|
|
//transform: translate(-50%, -50%); |
|
|
//transform: translate(-50%, -50%); |
|
|
|
|
|
/* 初始阴影设置(透明) */ |
|
|
|
|
|
&::before { |
|
|
|
|
|
content: ''; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
border-radius: inherit; |
|
|
|
|
|
//opacity: 0; |
|
|
|
|
|
//transition: opacity 0.4s; |
|
|
|
|
|
box-shadow: inset 0 0 80px 30px #000b31; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:hover::before { |
|
|
|
|
|
// opacity: 1; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.icon { |
|
|
.icon { |
|
|
|