From 7fd43d26139c6d2e59dc1598f7478718f4a8d17a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Fri, 16 Aug 2024 11:34:41 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/index.vue | 98 ++++++++++++++++++++++++++++-----------------
1 file changed, 61 insertions(+), 37 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index 9ec2fa5..135611a 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -7,6 +7,11 @@
+

+
本月出院患者数
+
{{ list.thisMonthDischargePatient }}
+
本月签约患者数
@@ -35,30 +40,37 @@
v-for="(item, index) in taskSituationlist"
:key="index"
>
-
-
+
+
{{ item.name }}
-
+
+
+
-
{{ item.count }}/{{ item.allCount }}{{ item.allCount - item.count }}/{{ item.allCount }}
-
-
+
+
@@ -138,9 +150,15 @@ export default {
});
var proportionlist = [];
res.data.forEach((e) => {
- e.proportion = e.proportion * 100;
+ e.proportion = e.proportion*100;
proportionlist.push(e.proportion);
});
+ var signPatientCountlist = [];
+ res.data.forEach((e) => {
+ e.proportion = e.proportion * 100 ;
+ // console.log(e.proportion,'e.proportion')
+ signPatientCountlist.push(e.signPatientCount);
+ });
// return
var chartDoms = document.getElementById("main1");
var myChart1 = echarts.init(chartDoms);
@@ -156,9 +174,9 @@ export default {
},
},
legend: {
- data: ["患者数量", "签约率(%)"],
+ data: ["当月新增患者数量", "签约数", "当月签约率"],
},
- color: ["#2BBD2E", "#68B4FF"],
+ color: ["#2BBD2E", "#68B4FF", "orange"],
xAxis: [
{
axisLabel: {
@@ -180,17 +198,14 @@ export default {
yAxis: [
{
type: "value",
- name: "患者数量",
- // min: 0,
- // max: 20,
- // interval: 4,
+ name: "当月新增患者数量",
axisLabel: {
formatter: "{value}",
},
},
{
type: "value",
- name: "签约率(%)",
+ name: "当月签约率",
min: 0,
max: 100,
interval: 20,
@@ -199,29 +214,38 @@ export default {
},
},
],
+ tooltip: {
+ trigger: "axis",
+ formatter: (params) => {
+ // console.log(params,'params')
+ let text = '';
+ params.map((item) => {
+ if(item.seriesName =='当月签约率'){
+ text += item.seriesName + " : " + item.value + "%"+'