This commit is contained in:
parent
de3e9e6532
commit
598e461d0d
|
@ -475,8 +475,8 @@ export default {
|
|||
query: {start_date:that.start_date,end_date:that.end_date,dept_name: "10车间"},
|
||||
};
|
||||
that.$API.bi.dataset.exec.req('lineMonth', obj).then((res) => {
|
||||
console.log('本月生产统计:',res1);
|
||||
that.monthobjList = res1.data2.ds0;
|
||||
console.log('本月生产统计:',res);
|
||||
that.monthobjList = res.data2.ds0;
|
||||
});
|
||||
//本月合格率统计///11月1号-----11月30号
|
||||
let obj2 ={
|
||||
|
@ -612,7 +612,7 @@ export default {
|
|||
let chart3 = this.setChart("chart3", that.chart3Option);
|
||||
let index3 = 0
|
||||
this.chartInterval3 = setInterval(function () {
|
||||
if (index3 < that.chart3Option.series[0].data.length) {
|
||||
if (index3 < that.chart3Option.series.data.length) {
|
||||
chart3.dispatchAction({ type: 'downplay', seriesIndex: 0 });
|
||||
chart3.dispatchAction({ type: 'highlight', seriesIndex: 0, dataIndex: index3 });
|
||||
chart3.dispatchAction({ type: 'showTip', seriesIndex: 0, dataIndex: index3 });
|
||||
|
|
|
@ -408,7 +408,7 @@ export default {
|
|||
chart1Option.xAxis.data = xAxisData1;
|
||||
chart1Option.series[0].data = seriesData1;
|
||||
chart1Option.yAxis.name='生产数';
|
||||
let chart1 = this.setChart("chart1", chart1Option);
|
||||
let chart1 = that.setChart("chart1", chart1Option);
|
||||
let index1 = 0
|
||||
this.chartInterval1 = setInterval(function () {
|
||||
if (index1 < chart1Option.series[0].data.length) {
|
||||
|
@ -441,7 +441,6 @@ export default {
|
|||
seriesData2[index2] =Math.round(item2.合格率);
|
||||
})
|
||||
}
|
||||
console.log('xAxisData2',xAxisData2)
|
||||
let chart2Option = deepCopy(this.basicOption);
|
||||
chart2Option.xAxis.data = xAxisData2;
|
||||
chart2Option.yAxis.name='合格率';
|
||||
|
@ -513,7 +512,7 @@ export default {
|
|||
data: seriesData2
|
||||
}];
|
||||
chart2Option.series=series2;
|
||||
let chart2 = this.setChart("chart2", chart2Option);
|
||||
let chart2 = that.setChart("chart2", chart2Option);
|
||||
let index2 = 0
|
||||
this.chartInterval2 = setInterval(function () {
|
||||
if (index2 < chart2Option.series[0].data.length) {
|
||||
|
@ -552,7 +551,7 @@ export default {
|
|||
seriesData3[5].value=item3.合格数;
|
||||
}
|
||||
that.chart3Option.series.data = seriesData3;
|
||||
let chart3 = this.setChart("chart3", that.chart3Option);
|
||||
let chart3 = that.setChart("chart3", that.chart3Option);
|
||||
let index3 = 0
|
||||
this.chartInterval3 = setInterval(function () {
|
||||
if (index3 < that.chart3Option.series.data.length) {
|
||||
|
|
Loading…
Reference in New Issue