Commit dc470b0f authored by 李苏's avatar 李苏 💬

调整

parent 5ed44624
...@@ -1041,51 +1041,33 @@ ...@@ -1041,51 +1041,33 @@
color: 'white' color: 'white'
} }
} }
let seriesData = [{ let seriesData = {
name: "持证人数",
data: [], data: [],
type: "bar", type: "bar",
barWidth: 20, barWidth: 20,
stack: 'total',
itemStyle: { itemStyle: {
color: "#334284" color: "#334284"
}, },
...seriesStyle ...seriesStyle
}, }
{
name: "即将到期", let xAxis = [];
data: [],
type: "bar",
barWidth: 20,
stack: 'total',
itemStyle: {
color: ""
},
...seriesStyle
},
],
xAxis = [];
value.forEach(element => { value.forEach(element => {
xAxis.push(element.flName); xAxis.push(element.flName.replace('持证信息',''));
seriesData[0]["data"].push(element.allCount - element.dqCount || 0); seriesData.data.push(element.allCount)
seriesData[1]["data"].push(element.dqCount || 0);
}); });
this.setBarhart(this.ygzcChart, { this.setBarhart(this.ygzcChart, {
title: "员工持证", title: "员工持证",
titleShow: true, titleShow: true,
yAxis: {
name: "种类",
data: xAxis,
show: false,
type: "category",
...yAxisStyle
},
customxAxis: { customxAxis: {
type: "value", data: xAxis,
boundaryGap: [0, 0.01], "axisLabel": {
...yAxisStyle "show": true,
"color": "white" // 设置轴标签颜色为白色
}
}, },
series: seriesData series: seriesData,
}) })
} }
}) })
......
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