|
|
@@ -4,7 +4,7 @@
|
|
|
<Echart
|
|
|
:options="options"
|
|
|
id="bottom2Chart"
|
|
|
- height="325px"
|
|
|
+ height="410px"
|
|
|
width="100%"
|
|
|
ref="column-board"
|
|
|
></Echart>
|
|
|
@@ -25,7 +25,13 @@ export default {
|
|
|
type: 'shadow'
|
|
|
}
|
|
|
},
|
|
|
- legend: {},
|
|
|
+ legend: {
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 18
|
|
|
+ },
|
|
|
+ itemWidth: 29,
|
|
|
+ itemHeight: 19
|
|
|
+ },
|
|
|
grid: {
|
|
|
left: '3%',
|
|
|
right: '4%',
|
|
|
@@ -37,37 +43,30 @@ export default {
|
|
|
type: 'category',
|
|
|
data:[],
|
|
|
axisLabel: {
|
|
|
- fontSize: 9
|
|
|
+ fontSize: 16
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
yAxis: [
|
|
|
{
|
|
|
type: 'value',
|
|
|
+ axisLabel: {
|
|
|
+ fontSize: 16
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
type: 'value',
|
|
|
- name: 'rate',
|
|
|
min: 0,
|
|
|
max: 100,
|
|
|
interval: 20,
|
|
|
axisLabel: {
|
|
|
- formatter: '{value}%'
|
|
|
+ formatter: '{value}%',
|
|
|
+ fontSize: 16
|
|
|
}
|
|
|
}
|
|
|
|
|
|
],
|
|
|
series: [
|
|
|
- /* {
|
|
|
- name: '投入',
|
|
|
- type: 'bar',
|
|
|
- barWidth: 20,
|
|
|
- emphasis: {
|
|
|
- focus: 'series'
|
|
|
- },
|
|
|
- data:[]
|
|
|
- //data: [320, 332, 301, 334, 390, 330, 320]
|
|
|
- },*/
|
|
|
{
|
|
|
name: '已备料',
|
|
|
type: 'bar',
|
|
|
@@ -80,7 +79,6 @@ export default {
|
|
|
itemStyle: {
|
|
|
color: '#9FE6B8' //fac858
|
|
|
},
|
|
|
- //data: [220, 232, 221, 234, 290, 230, 220]
|
|
|
},
|
|
|
{
|
|
|
name: '未备料',
|
|
|
@@ -88,7 +86,6 @@ export default {
|
|
|
stack: 'Ad',
|
|
|
barWidth: 10,
|
|
|
data:[],
|
|
|
- //data: [12, 22, 32, 12, 32, 12, 32],
|
|
|
emphasis: {
|
|
|
focus: 'series'
|
|
|
},
|
|
|
@@ -102,7 +99,6 @@ export default {
|
|
|
type: 'line',
|
|
|
data:[],
|
|
|
yAxisIndex: 1,
|
|
|
- //data: [92, 92,92, 72, 82, 62, 62],
|
|
|
tooltip: {
|
|
|
valueFormatter: function (value) {
|
|
|
return value + '%';
|
|
|
@@ -168,17 +164,18 @@ export default {
|
|
|
let series2 = new Array();
|
|
|
for (let index = 0; index < dataList.length; index++) {
|
|
|
const element = dataList[index];
|
|
|
- if(index%2 == 0) {
|
|
|
+ xAxis0.push(element.v_whname);
|
|
|
+ /*if(index%2 == 0) {
|
|
|
xAxis0.push(element.v_whname);
|
|
|
}else{
|
|
|
xAxis0.push('\n'+element.v_whname);
|
|
|
- }
|
|
|
+ }*/
|
|
|
//已备料
|
|
|
series0.push(element.v_haveqty);
|
|
|
//未备料
|
|
|
series1.push(element.v_unqty);
|
|
|
//备料率
|
|
|
- series2.push(element.v_okrate);
|
|
|
+ series2.push(element.v_rate);
|
|
|
}
|
|
|
this.options.xAxis[0].data = xAxis0;
|
|
|
this.options.series[0].data = series0;
|