修改样式
This commit is contained in:
parent
2abc0f76a4
commit
860a3132ff
|
|
@ -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线',
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -76,6 +81,10 @@ export default {
|
||||||
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:
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue