还原代码

This commit is contained in:
xielue 2025-03-14 10:40:37 +08:00
parent 5e2a62a619
commit c815dbbe61
2 changed files with 24 additions and 78 deletions

View File

@ -21,7 +21,7 @@
<div class="bc-chart-item" v-if="!isChange"> <div class="bc-chart-item" v-if="!isChange">
<div class="bcci-header">盖板派工单执行进度</div> <div class="bcci-header">盖板派工单执行进度</div>
<dv-scroll-board :config="config" style="height:90%;margin-left: 2%;width:96%" /> <dv-scroll-board :config="config2" style="height:90%;margin-left: 2%;width:96%" />
</div> </div>
</div> </div>
</div> </div>

View File

@ -22,7 +22,6 @@ function getRecentSixMonths() {
return months; return months;
} }
import { color } from 'chart.js/helpers';
import * as echarts from 'echarts'; import * as echarts from 'echarts';
export default { export default {
name: 'RoseChart', name: 'RoseChart',
@ -48,15 +47,15 @@ export default {
console.log(myChart) console.log(myChart)
this.option = { this.option = {
title: { title: {
text: '近半年产量情况', text: '月生产情况',
// subtext: '', subtext: '完成率',
// subtextStyle:{ subtextStyle:{
// fontSize:20, fontSize:20,
// fontWight:'bold', fontWight:'bold',
// color:'#fff' color:'#fff'
// }, },
textStyle:{ textStyle:{
fontSize:30, fontSize:25,
fontWight:'bold', fontWight:'bold',
color:'#fff' color:'#fff'
} }
@ -65,24 +64,12 @@ export default {
trigger: 'axis', trigger: 'axis',
}, },
legend: { legend: {
icon: 'rect', data: this.dataType == '整机' ?['机芯1线', '机芯2线', '盖板线'] : ['整机线'],
itemWidth: 20, //
itemHeight: 20, //
itemGap: 40, //
data: this.dataType == '整机' ?['整机线']:['整机', '机芯', '盖板'],
textStyle:{ textStyle:{
color: '#fff', fontSize:25,
fontSize:30, color:'#fff'
fontWight:'bold'
} }
}, },
grid: {
left: '3%',
right: '7%',
bottom: '3%',
containLabel: true
},
toolbox: { toolbox: {
}, },
calculable: true, calculable: true,
@ -95,7 +82,7 @@ export default {
} }
}, },
axisLabel: { axisLabel: {
fontSize: 35, // Y fontSize: 20, // Y
color: '#fff' // color: '#fff' //
}, },
// prettier-ignore // prettier-ignore
@ -111,18 +98,8 @@ export default {
} }
}, },
axisLabel: { axisLabel: {
fontSize: 35, // Y fontSize: 20, // Y
color: '#fff' // color: '#fff' //
},
splitLine: {
show: false, // y 线
lineStyle: {
type: 'dashed', // 线
color: '#999', // 线
width: 2, // 线
height:1,
dashArray: [15, 5]
}
}, },
} }
], ],
@ -142,25 +119,17 @@ export default {
] ]
}, },
markLine: { markLine: {
data: [{ type: 'average', name: 'Avg' }], data: [{ type: 'average', name: 'Avg' }]
lineStyle:{
width: 2, // 线
},
label:{
fontSize:'20',
// color:'red'
}
} }
} }
]: ]:
[ [
{ {
name: '机', name: '机芯1线',
type: 'bar', type: 'bar',
data: [ data: [
75, 65, 68, 69, 40, 82 75, 65, 68, 69, 40, 82
], ],
barWidth: 30, // 20px
markPoint: { markPoint: {
data: [ data: [
{ type: 'max', name: 'Max' }, { type: 'max', name: 'Max' },
@ -168,23 +137,15 @@ export default {
] ]
}, },
markLine: { markLine: {
data: [{ type: 'average', name: 'Avg' }], data: [{ type: 'average', name: 'Avg' }]
lineStyle:{
width: 2, // 线
},
label:{
fontSize:'20',
color:'#ffffff'
}
} }
}, },
{ {
name: '机芯', name: '机芯2线',
type: 'bar', type: 'bar',
data: [ data: [
70, 75, 88, 85, 97, 85, 75, 78, 59, 80, 82, 63 70, 75, 88, 85, 97, 85, 75, 78, 59, 80, 82, 63
], ],
barWidth: 30, // 20px
markPoint: { markPoint: {
data: [ data: [
{ name: 'Max', value: 182.2, xAxis: 7, yAxis: 183 }, { name: 'Max', value: 182.2, xAxis: 7, yAxis: 183 },
@ -192,23 +153,15 @@ export default {
] ]
}, },
markLine: { markLine: {
data: [{ type: 'average', name: 'Avg' }], data: [{ type: 'average', name: 'Avg' }]
lineStyle:{
width: 2, // 线
},
label:{
fontSize:'20',
color:'#ffffff'
}
} }
}, },
{ {
name: '盖板', name: '盖板线',
type: 'bar', type: 'bar',
data: [ data: [
80, 85, 78, 75, 67, 45, 55, 68, 49, 50, 72, 93 80, 85, 78, 75, 67, 45, 55, 68, 49, 50, 72, 93
], ],
barWidth: 30, // 20px
markPoint: { markPoint: {
data: [ data: [
{ name: 'Max', value: 182.2, xAxis: 7, yAxis: 183 }, { name: 'Max', value: 182.2, xAxis: 7, yAxis: 183 },
@ -216,14 +169,7 @@ export default {
] ]
}, },
markLine: { markLine: {
data: [{ type: 'average', name: 'Avg' }], data: [{ type: 'average', name: 'Avg' }]
lineStyle:{
width: 2, // 线
},
label:{
fontSize:'20',
color:'#ffffff'
}
} }
} }
] ]