From 49ddfe940446c34893a3795a6eb3ac541d5f64c6 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 28 Apr 2023 16:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bigscreen/dv/AppQxnEventDv.vue | 44 ++++++++++++++++++------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/packages/bigscreen/dv/AppQxnEventDv.vue b/packages/bigscreen/dv/AppQxnEventDv.vue index f5834032..b567eaa0 100644 --- a/packages/bigscreen/dv/AppQxnEventDv.vue +++ b/packages/bigscreen/dv/AppQxnEventDv.vue @@ -363,6 +363,13 @@ axisLabel: {color: '#8FABBF', fontSize: 12}, axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } } }, + tooltip: { + trigger: 'axis', + backgroundColor: 'rgba(0, 102, 154, 0.65)', + borderColor: 'rgba(0, 102, 154, 0.65)', + textStyle: { color: '#fff' }, + axisPointer: { type: 'cross' } + }, grid: { left: '0%', right: '0%', @@ -433,12 +440,28 @@ ] } ], - daemon: { - type: 'bar', - barWidth: 14, - barCategoryGap: 40, - itemStyle: {} - } + series: [ + { + name: '已办结', + type: 'bar', + barWidth: '8' + }, + { + name: '待受理', + barWidth: '8', + type: 'bar' + }, + { + name: '处理中', + barWidth: '8', + type: 'bar' + }, + { + name: '已拒绝', + barWidth: '8', + type: 'bar' + } + ] }, wxGridReportOverviewInfo: {}, tableData1: [], @@ -617,7 +640,6 @@ methods: { mapStatus (status, type) { - console.log(status) const index = Number(status) return [{ color: '#FFB300', @@ -718,10 +740,10 @@ this.chartData3 = res.data.map(v => { return { name: v['二级分类名称'], - '已办结': v['已办结'], - '待受理': v['待处理'], - '处理中': v['处理中'], - '已拒绝': v['已拒绝'] + '已办结': v['已办结'] || 0, + '待受理': v['待处理'] || 0, + '处理中': v['处理中'] || 0, + '已拒绝': v['已拒绝'] || 0 } }) }