fix:首页柱状图接口改为lineDay
This commit is contained in:
parent
799437765e
commit
0afb82db04
|
|
@ -845,12 +845,16 @@ export default {
|
|||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
dept_name: this.deptName,
|
||||
group_bys_material: "",
|
||||
order_bys_material: "",
|
||||
select_cols_material: "",
|
||||
group_bys_material_name: "",
|
||||
order_bys_material_name: "",
|
||||
select_cols_material_name: ""
|
||||
},
|
||||
};
|
||||
that.$API.bi.dataset.exec
|
||||
.req("productStatistic", obj)
|
||||
.then((res) => {
|
||||
console.log("productStatistic:", res);
|
||||
that.$API.bi.dataset.exec.req("lineDay", obj).then((res) => {
|
||||
console.log("lineDay本月数据:", res);
|
||||
let list = res.data2.ds0;
|
||||
let chartData = [],
|
||||
xAxisData = [],
|
||||
|
|
@ -867,10 +871,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
this.hgNumber = (
|
||||
(hgNumber / xAxisData.length) *
|
||||
100
|
||||
).toFixed(2);
|
||||
this.hgNumber = ((hgNumber / xAxisData.length) *100).toFixed(2);
|
||||
this.chartData = chartData;
|
||||
this.option.xAxis.data = xAxisData;
|
||||
this.option.series.data = chartData;
|
||||
|
|
|
|||
Loading…
Reference in New Issue