修改样式

This commit is contained in:
ljx 2025-03-10 16:26:04 +08:00
parent 2abc0f76a4
commit 860a3132ff
3 changed files with 29 additions and 3 deletions

View File

@ -52,6 +52,8 @@ export default {
title: { title: {
text: '近一周产量趋势', text: '近一周产量趋势',
textStyle: { textStyle: {
fontSize:25,
fontWight:'bold',
color: '#fff' color: '#fff'
} }
}, },
@ -61,7 +63,9 @@ export default {
legend: { legend: {
data: this.dataType == '整机' ? ['整机线'] : ['机芯1线', '机芯2线', '盖板线'], data: this.dataType == '整机' ? ['整机线'] : ['机芯1线', '机芯2线', '盖板线'],
textStyle: { textStyle: {
color: '#fff' color: '#fff',
fontSize:25,
fontWight:'bold'
} }
}, },
grid: { grid: {
@ -78,6 +82,11 @@ export default {
color: '#fff' color: '#fff'
} }
}, },
axisLabel: {
fontSize: 20, // Y
color: '#fff' //
},
data: getRecentWeekDates() data: getRecentWeekDates()
}, },
yAxis: { yAxis: {
@ -87,6 +96,10 @@ export default {
color: '#fff' color: '#fff'
} }
}, },
axisLabel: {
fontSize: 20, // Y
color: '#fff' //
},
}, },
series: series:
this.dataType == '整机' ? this.dataType == '整机' ?
@ -104,7 +117,7 @@ export default {
name: '机芯1线', name: '机芯1线',
type: 'line', type: 'line',
stack: 'Total', stack: 'Total',
data: [120, 132, 101, 134, 90, 230, 210] data: [120, 132, 101, 134, 90, 230, 210],
}, },
{ {
name: '机芯2线', name: '机芯2线',

View File

@ -50,9 +50,13 @@ export default {
text: '月生产情况', text: '月生产情况',
subtext: '完成率', subtext: '完成率',
subtextStyle:{ subtextStyle:{
fontSize:20,
fontWight:'bold',
color:'#fff' color:'#fff'
}, },
textStyle:{ textStyle:{
fontSize:25,
fontWight:'bold',
color:'#fff' color:'#fff'
} }
}, },
@ -62,6 +66,7 @@ export default {
legend: { legend: {
data: this.dataType == '整机' ?['机芯1线', '机芯2线', '盖板线'] : ['整机线'], data: this.dataType == '整机' ?['机芯1线', '机芯2线', '盖板线'] : ['整机线'],
textStyle:{ textStyle:{
fontSize:25,
color:'#fff' color:'#fff'
} }
}, },
@ -75,6 +80,10 @@ export default {
lineStyle:{ lineStyle:{
color:'#fff' color:'#fff'
} }
},
axisLabel: {
fontSize: 20, // Y
color: '#fff' //
}, },
// prettier-ignore // prettier-ignore
data:getRecentSixMonths(), data:getRecentSixMonths(),
@ -88,6 +97,10 @@ export default {
color:'#fff' color:'#fff'
} }
}, },
axisLabel: {
fontSize: 20, // Y
color: '#fff' //
},
} }
], ],
series: series:

View File

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