褓座3.0

This commit is contained in:
ljx 2025-03-13 15:30:12 +08:00
parent 5ace5dab9d
commit 5e2a62a619
3 changed files with 12 additions and 59 deletions

View File

@ -220,77 +220,30 @@ export default {
});
}
var myChart = echarts.init(document.getElementById('echarts-new'));
// this.option = {
// xAxis: {
// type: 'category',
// data: this.rightData.map(item=>{return item.name}),
// axisLabel: {
// fontSize: 18, // Y
// color: '#fff', //
// },
// },
// yAxis: {
// type: 'value',
// splitLine: {
// show: false, // y 线
// },
// axisLabel: {
// fontSize: 25, // Y
// color: '#fff', //
// // y
// },
// },
// series: [
// {
// data: this.rightData.map(item=>{return item.value}),
// type: 'bar',
// showBackground: true,
// backgroundStyle: {
// color: 'rgba(180, 180, 180, 0.2)'
// },
// barWidth: '60%',
// itemStyle: {
// borderRadius: [5, 5, 0, 0], //
// color: {
// type: 'linear', // 线
// x: 0, //
// y: 0,
// x2: 0, //
// y2: 1,
// colorStops: [
// { offset: 0, color: '#3399FF' }, //
// { offset: 0.5, color: '#08e5ff' }, //
// { offset: 1, color: '#F4f4f4' } //
// ]
// }
// }
// }
// ]
// };
this.option = {
xAxis: {
type: 'category',
data: categories,
axisLabel: {
fontSize: 19, // Y
fontSize: 23, // Y
color: '#fff', //
fontWight:'bold'
fontWight:'bold',
interval: 0 //
},
},
yAxis: {
type: 'value',
max: 100,
// axisLine: { show: false },
axisLine: { show: true },
splitLine: {
show: false, // y 线
},
axisLabel: {
fontSize: 25, // Y
color: '#fff', //
// y
fontWight:'bold',
formatter: '{value}%' // %
},
},
series: series

View File

@ -72,9 +72,9 @@ export default {
this.dataType = ''; // '1'
}
// setInterval(() => {
// this.switchType = this.switchType == 1 ? 2 : 1
// }, 15000); // 10000 = 10
setInterval(() => {
this.switchType = this.switchType == 1 ? 2 : 1
}, 15000); // 10000 = 10
},
data() {
return {

View File

@ -3,7 +3,7 @@
<dv-decoration-8 class="header-left-decoration" />
<dv-decoration-5 class="header-center-decoration" />
<dv-decoration-8 class="header-right-decoration" :reverse="false" />
<div class="center-title" :style="'font-size:'+$fontSize(0.3)+'px'">{{Name}}</div>
<div class="center-title" :style="'font-size:'+$fontSize(0.4)+'px'">{{Name}}</div>
</div>
</template>
@ -39,7 +39,7 @@ export default {
// font-size: 30px;
font-weight: bold;
left: 50%;
top: 0.15rem;
top: 0.1rem;
transform: translateX(-50%);
}