From d367ae32a93996215b5bd629528d78c1b7ee1315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Wed, 18 Nov 2020 14:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kpi/workbench/home/index.vue | 2 +- src/views/kpi/workbench/home/report.vue | 35 ++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/src/views/kpi/workbench/home/index.vue b/src/views/kpi/workbench/home/index.vue index 56dc261..c6fc0ad 100644 --- a/src/views/kpi/workbench/home/index.vue +++ b/src/views/kpi/workbench/home/index.vue @@ -169,7 +169,7 @@ export default { } &-right{ box-sizing: border-box; - width: 600px; + width: 520px; min-height: 100px; padding: 25px 20px; &-content{ diff --git a/src/views/kpi/workbench/home/report.vue b/src/views/kpi/workbench/home/report.vue index ae8c659..a83630f 100644 --- a/src/views/kpi/workbench/home/report.vue +++ b/src/views/kpi/workbench/home/report.vue @@ -1,6 +1,19 @@ @@ -12,14 +25,23 @@ export default { name: '', data () { return { + value1: [], charts: '', opinionData: ['3', '2', '4', '4', '5'], xAxis: [1, 2, 3, 4, 5] } }, methods: { + changeTime () { + this.drawLine('myChart') + }, async handleData () { - let res = await apiOwnResult({}) + const parmas = {} + if (this.value1.length > 0) { + parmas.startTime = this.value1[0] + parmas.endTime = this.value1[1] + } + let res = await apiOwnResult(parmas) if (res.code !== 200) { this.$message.error(res.msg) return [] @@ -38,6 +60,7 @@ export default { this.charts = echarts.init(document.getElementById(id)) this.charts.setOption({ grid: { + top: '1%', left: '3%', right: '4%', bottom: '3%', @@ -83,6 +106,12 @@ export default { } } -