|
|
|
@ -85,6 +85,12 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
labels: ["择期", "急诊", "日间", "门诊"],
|
|
|
|
|
fields: [
|
|
|
|
|
"electiveCount",
|
|
|
|
|
"emergencyCount",
|
|
|
|
|
"daySurgeryCount",
|
|
|
|
|
"outSurgeryCount",
|
|
|
|
|
],
|
|
|
|
|
seriesData: [
|
|
|
|
|
{
|
|
|
|
|
label: "择期",
|
|
|
|
@ -235,10 +241,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
label: {
|
|
|
|
|
show: true, // 显示数值
|
|
|
|
|
position: "insideTop", // 数值显示的位置
|
|
|
|
|
position: "outsideTop", // 数值显示的位置
|
|
|
|
|
textStyle: {
|
|
|
|
|
//数值样式
|
|
|
|
|
color: "#fff",
|
|
|
|
|
padding: [0, 0, 0, 7],
|
|
|
|
|
},
|
|
|
|
|
formatter: function (data) {
|
|
|
|
|
let txt = "";
|
|
|
|
@ -301,15 +308,20 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
wrapData(list) {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.labels = [];
|
|
|
|
|
// that.labels = [];
|
|
|
|
|
that.seriesData = [];
|
|
|
|
|
list.forEach((item) => {
|
|
|
|
|
that.labels.push(item.deptName);
|
|
|
|
|
that.fields.forEach((a, index) => {
|
|
|
|
|
for (let key in item) {
|
|
|
|
|
if (a == key) {
|
|
|
|
|
that.seriesData.push({
|
|
|
|
|
label: item.deptName,
|
|
|
|
|
value: [item.deptCount],
|
|
|
|
|
label: that.labels[index],
|
|
|
|
|
value: [item[key]],
|
|
|
|
|
isHave: false,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|