电饭煲样式修改

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>
<div id="data-view">
<div id="data-view" style="box-sizing: border-box;">
<!-- <dv-full-screen-container> -->

View File

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

View File

@ -8,7 +8,7 @@
<span class="title-decoration"></span>
本日产量/预计产量对比
</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>
</div>
</div>
@ -86,7 +86,7 @@ export default {
{
name: '实际产量',
type: 'bar',
barWidth: '30%', //
barWidth: '35%', //
data: actualData,
itemStyle: {
color: 'rgb(255, 255, 204)' //

View File

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