wip: 运营管理手术量统计接口数据对接及优化

main
weiyin 10 months ago
parent 0b1666b510
commit 9a849f95fc

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

@ -247,6 +247,7 @@ export default {
textStyle: { textStyle: {
// //
color: "#fff", color: "#fff",
padding: [0, 0, 0, 7],
}, },
formatter: function (data) { formatter: function (data) {
let txt = ""; let txt = "";

Loading…
Cancel
Save