fix:7车间生产大屏:本月生产统计横坐标改成1-10炉号
This commit is contained in:
parent
0b4ae3d042
commit
a035cf979b
|
|
@ -554,18 +554,19 @@ export default {
|
|||
query: { start_date: that.start_date, end_date: that.end_date },
|
||||
};
|
||||
that.$API.bi.dataset.exec.req("stoveStatics", obj1).then((res1) => {
|
||||
console.log("本月生产统计:", res1);
|
||||
let list1 = res1.data2.ds0;
|
||||
let seriesData1 = [],
|
||||
xAxisData1 = [];
|
||||
if (list1.length > 0) {
|
||||
list1.forEach((item1) => {
|
||||
xAxisData1.push(item1.equip_name);
|
||||
seriesData1.push(item1.count_real);
|
||||
xAxisData1.push(item1.equip_number);
|
||||
item1.count_real==null?seriesData1.push(0):seriesData1.push(item1.count_real);
|
||||
});
|
||||
}
|
||||
let chart1Option = deepCopy(this.basicOption);
|
||||
chart1Option.xAxis.data = xAxisData1;
|
||||
chart1Option.xAxis.axisLabel.rotate= 45 ;
|
||||
chart1Option.xAxis.axisLabel.fontSize= 12 ;
|
||||
chart1Option.series[0].data = seriesData1;
|
||||
let chart1 = that.setChart("chart1", chart1Option);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue