Commit 5d2e33e4 authored by xuzhuo's avatar xuzhuo

大屏当日订单量跳转

parent 0a26b4a4
......@@ -412,6 +412,22 @@ export const adapterYoySumData = function (type, data) {
}
}
export const adapterXAxisData2 = function (color, data) {
return {
type: 'category',
axisTick: {
alignWithLabel: true
},
axisLine: {
onZero: false,
lineStyle: {
color: color
}
},
data: data
}
}
/**
* 业务数据加载
* @param type
......@@ -431,18 +447,19 @@ export const adapterYoySumData = function (type, data) {
data: data
};
}
export const adapterSeriesDataBar = function (xAxisIndex, name, data) {
return {
name: name,
type: 'bar',
xAxisIndex: xAxisIndex,
smooth: true,
emphasis: {
focus: 'series'
},
data: data
};
}
export const adapterSeriesDataBar = function (xAxisIndex, name, data) {
return {
name: name,
type: 'bar',
xAxisIndex: xAxisIndex,
smooth: true,
emphasis: {
focus: 'series'
},
data: data
};
}
/**
......@@ -518,7 +535,7 @@ export const getShipmentWeight = async function (department_code, cur_day) {
series.push(adapterSeriesData(null, "完成量", line1));
series.push(adapterSeriesData(null, "未完成量", line2));
var xAxis = new Array();
xAxis.push(adapterXAxisData("#00bbe5", xAxisData));
xAxis.push(adapterXAxisData2("#00bbe5", xAxisData));
var seriesBar = new Array();
seriesBar.push(adapterSeriesDataBar(null, "完成量", line1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment