From 5dd30b8aa69720e440fa5fd6914e8581005ab8e6 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Mon, 17 Feb 2025 11:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E7=BB=9F=E8=AE=A1=EF=BC=88?= =?UTF-8?q?=E6=82=A3=E8=80=85=E6=80=BB=E6=95=B0=E3=80=81=E6=80=A7=E5=88=AB?= =?UTF-8?q?=E3=80=81=E5=B9=B4=E9=BE=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-前台/src/views/indexCom/index.js | 66 +------------------ .../src/views/indexCom/patient.vue | 11 +--- 2 files changed, 4 insertions(+), 73 deletions(-) diff --git a/acupuncture-前台/src/views/indexCom/index.js b/acupuncture-前台/src/views/indexCom/index.js index 32d069cc..8c022bfe 100644 --- a/acupuncture-前台/src/views/indexCom/index.js +++ b/acupuncture-前台/src/views/indexCom/index.js @@ -152,71 +152,7 @@ export const ageEcharts = { }, }, }, - { - name: "41-50", - data: [], - type: "bar", - barMaxWidth: 24, //柱图宽度 - color: "#ffcd6c", - itemStyle: { - normal: { - //这里设置柱形图圆角 [左上角,右上角,右下角,左下角] - barBorderRadius: [50, 50, 0, 0], - }, - }, - }, - { - name: "51-60", - data: [], - type: "bar", - barMaxWidth: 24, //柱图宽度 - color: "#ffcd6c", - itemStyle: { - normal: { - //这里设置柱形图圆角 [左上角,右上角,右下角,左下角] - barBorderRadius: [50, 50, 0, 0], - }, - }, - }, - { - name: "61-70", - data: [], - type: "bar", - barMaxWidth: 24, //柱图宽度 - color: "#4f8bff", - itemStyle: { - normal: { - //这里设置柱形图圆角 [左上角,右上角,右下角,左下角] - barBorderRadius: [50, 50, 0, 0], - }, - }, - }, - { - name: "71-80", - data: [120, 200, 150, 80, 70, 110, 10], - type: "bar", - barMaxWidth: 24, //柱图宽度 - color: "#ffcd6c", - itemStyle: { - normal: { - //这里设置柱形图圆角 [左上角,右上角,右下角,左下角] - barBorderRadius: [50, 50, 0, 0], - }, - }, - }, - { - name: ">80", - data: [], - type: "bar", - barMaxWidth: 24, //柱图宽度 - color: "#ffcd6c", - itemStyle: { - normal: { - //这里设置柱形图圆角 [左上角,右上角,右下角,左下角] - barBorderRadius: [50, 50, 0, 0], - }, - }, - }, + ], }; diff --git a/acupuncture-前台/src/views/indexCom/patient.vue b/acupuncture-前台/src/views/indexCom/patient.vue index 7fbf5e59..49584f94 100644 --- a/acupuncture-前台/src/views/indexCom/patient.vue +++ b/acupuncture-前台/src/views/indexCom/patient.vue @@ -54,7 +54,7 @@
- 性别统计 + 既往病种分布
@@ -66,7 +66,7 @@
- +
@@ -179,12 +179,7 @@ }, handleAge() { console.log('ageEcharts',ageEcharts) - ageEcharts.series[0].data = [this.ageValue[0]] - ageEcharts.series[1].data = [this.ageValue[1]] - ageEcharts.series[2].data = [this.ageValue[2]] - ageEcharts.series[3].data = [this.ageValue[3]] - ageEcharts.series[4].data = [this.ageValue[4]] - ageEcharts.series[5].data = [this.ageValue[5]] + ageEcharts.series[0].data = this.ageValue this.$nextTick(() => { // 基于准备好的dom,初始化echarts实例