From f16716f147d3a282defc1532e46df7f946fbfe3c Mon Sep 17 00:00:00 2001 From: songhuangfeng123 <shf18767906695@163.com> Date: 星期三, 11 五月 2022 16:58:56 +0800 Subject: [PATCH] 长度过长显示问题 --- src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue index e0e469c..ab266c5 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/components/inspectionPerson/index.vue @@ -17,6 +17,14 @@ this.drawLine() }, methods:{ + // setCount(val){ + // this.numData = val.map(item =>{ + // return item.num + // }) + // this.timeData = val.map(item =>{ + // return item.errorTaskIdList + // }) + // }, async drawLine(){ this.myChart = this.$echarts.init(document.getElementById('inspectionPerson')) this.myChart.setOption({ @@ -27,9 +35,10 @@ left: 'center', top: '84%', }, + color:'#fac858', xAxis: { type: 'category', - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] + data: ['2022-4-1', '2022-4-2', '2022-4-4', '2022-4-4', '2022-4-5', '2022-4-6', '2022-4-7'] }, yAxis: { type: 'value' -- Gitblit v1.9.2