电饭煲样式修改

This commit is contained in:
ljx 2025-07-11 15:35:53 +08:00
parent 569b27befe
commit f71a451707
4 changed files with 17 additions and 19 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div id="data-view"> <div id="data-view" style="box-sizing: border-box;">
<!-- <dv-full-screen-container> --> <!-- <dv-full-screen-container> -->

View File

@ -18,7 +18,7 @@
<div style="font-size: 40px;font-weight: bold;color: brown;"> <div style="font-size: 40px;font-weight: bold;color: brown;">
70% 70%
</div> </div>
<div id="ncbox-pie" style="width: 100%;height: 250px;"> <div id="ncbox-pie" style="width: 100%;height: 200px;">
</div> </div>
</div> </div>
<div class="ncbox-right"> <div class="ncbox-right">

View File

@ -8,7 +8,7 @@
<span class="title-decoration"></span> <span class="title-decoration"></span>
本日产量/预计产量对比 本日产量/预计产量对比
</div> </div>
<div id="nbc-line1" style="width: 100%;height: calc(100% - 100px);"></div> <div id="nbc-line1" style="width: calc(100% - 40px);height: calc(100% - 100px);"></div>
</dv-border-box-1> </dv-border-box-1>
</div> </div>
</div> </div>
@ -86,7 +86,7 @@ export default {
{ {
name: '实际产量', name: '实际产量',
type: 'bar', type: 'bar',
barWidth: '30%', // barWidth: '35%', //
data: actualData, data: actualData,
itemStyle: { itemStyle: {
color: 'rgb(255, 255, 204)' // color: 'rgb(255, 255, 204)' //

View File

@ -9,7 +9,7 @@
<span class="title-decoration"></span> <span class="title-decoration"></span>
UPPH统计信息 UPPH统计信息
</div> </div>
<div id="nbc-line2" style="width: 100%; height: calc(100% - 100px);"> <div id="nbc-line2" style="width: calc(100% - 40px); height: calc(100% - 100px);">
</div> </div>
</dv-border-box-1> </dv-border-box-1>
@ -76,7 +76,7 @@ export default {
type: 'category', type: 'category',
data: ['08:00-09:00', '09:00-10:00', '10:00-12:00', '13:30-15:30', '15:30-17:30', '17:30-19:30'], data: ['08:00-09:00', '09:00-10:00', '10:00-12:00', '13:30-15:30', '15:30-17:30', '17:30-19:30'],
axisLabel: { axisLabel: {
fontSize: 20, // x fontSize: 14, // x
fontWeight: 'bold', // x fontWeight: 'bold', // x
color: '#fff' // x color: '#fff' // x
} }
@ -84,7 +84,7 @@ export default {
yAxis: { yAxis: {
type: 'value', type: 'value',
axisLabel: { axisLabel: {
fontSize: 26, // y fontSize: 20, // y
fontWeight: 'bold', // y fontWeight: 'bold', // y
color: '#fff' // y color: '#fff' // y
}, },
@ -96,7 +96,7 @@ export default {
{ {
name: '实际UPPH', name: '实际UPPH',
type: 'bar', type: 'bar',
barWidth: '30%', // barWidth: '35%', //
data: actualData, data: actualData,
itemStyle: { itemStyle: {
color: 'rgb(255, 255, 204)' // color: 'rgb(255, 255, 204)' //
@ -104,14 +104,12 @@ export default {
label: { label: {
show: true, show: true,
position: 'inside', position: 'inside',
fontSize: '22px', fontSize: '18px',
fontWeight: 'bolder', // label fontWeight: 'bolder', // label
formatter: function(params) { formatter: function(params) {
return params.value; return params.value;
}, },
color: function(params) { color: 'red',
return params.value >= targetData[params.dataIndex] ? 'green' : 'red';
}
} }
}, },
{ {
@ -121,14 +119,14 @@ export default {
itemStyle: { itemStyle: {
color: 'rgb(173, 216, 230)' // color: 'rgb(173, 216, 230)' //
}, },
label: { label: {
show: true, show: true,
position: 'top', position: 'top',
fontSize: '20px', fontSize: '20px',
fontWeight: 'bold', // label fontWeight: 'bold', // label
formatter: function(params) { formatter: function(params) {
return params.value; return params.value;
}, },
color: 'rgb(173, 216, 230)' // color: 'rgb(173, 216, 230)' //
} }
} }