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

main
weiyin 10 months ago
parent 0b1666b510
commit 9a849f95fc

@ -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,
});
}
}
});
});
},
},

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

Loading…
Cancel
Save