Commit 5d2e33e4 authored by xuzhuo's avatar xuzhuo

大屏当日订单量跳转

parent 0a26b4a4
...@@ -412,6 +412,22 @@ export const adapterYoySumData = function (type, data) { ...@@ -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 * @param type
...@@ -431,18 +447,19 @@ export const adapterYoySumData = function (type, data) { ...@@ -431,18 +447,19 @@ export const adapterYoySumData = function (type, data) {
data: data data: data
}; };
} }
export const adapterSeriesDataBar = function (xAxisIndex, name, data) {
return { export const adapterSeriesDataBar = function (xAxisIndex, name, data) {
name: name, return {
type: 'bar', name: name,
xAxisIndex: xAxisIndex, type: 'bar',
smooth: true, xAxisIndex: xAxisIndex,
emphasis: { smooth: true,
focus: 'series' emphasis: {
}, focus: 'series'
data: data },
}; data: data
} };
}
/** /**
...@@ -518,7 +535,7 @@ export const getShipmentWeight = async function (department_code, cur_day) { ...@@ -518,7 +535,7 @@ export const getShipmentWeight = async function (department_code, cur_day) {
series.push(adapterSeriesData(null, "完成量", line1)); series.push(adapterSeriesData(null, "完成量", line1));
series.push(adapterSeriesData(null, "未完成量", line2)); series.push(adapterSeriesData(null, "未完成量", line2));
var xAxis = new Array(); var xAxis = new Array();
xAxis.push(adapterXAxisData("#00bbe5", xAxisData)); xAxis.push(adapterXAxisData2("#00bbe5", xAxisData));
var seriesBar = new Array(); var seriesBar = new Array();
seriesBar.push(adapterSeriesDataBar(null, "完成量", line1)); 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