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实例