From 626ea37c4da46351de7cb2e1573eb21106cd8b02 Mon Sep 17 00:00:00 2001 From: sean yu Date: Wed, 28 Oct 2020 09:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kpi/report/index.vue | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/views/kpi/report/index.vue b/src/views/kpi/report/index.vue index 9001924..f880e85 100644 --- a/src/views/kpi/report/index.vue +++ b/src/views/kpi/report/index.vue @@ -46,9 +46,9 @@ @@ -60,8 +60,8 @@ - + > + @@ -249,6 +249,9 @@ export default { return { width: '20px', height: '20px', + 'text-align': 'center', + 'line-height': '20px', + color: 'white', background: color } }, @@ -284,7 +287,7 @@ export default { } try { const result = await getChartData(params) - result.forEach((val, index) => { + result.data.forEach((val, index) => { console.log(val) if (val.type === 0) { // 头部数据 @@ -300,6 +303,7 @@ export default { this.assessNum = val.statisticals this.option.series[0].data = Array.from(this.assessNum).map(item => (item.num)) this.option.xAxis[0].data = Array.from(this.assessNum).map(item => (item.desc)) + console.log(this.option.xAxis[0].data) this.handleNumChart() } }) @@ -316,8 +320,7 @@ export default { } try { let res = await getStartsData(params) - res = res.data - handleNode(res) + handleNode(res.data) } catch (error) { console.log(error) } @@ -387,6 +390,7 @@ export default { font-size: 14px; width: fit-content; padding-left: 50%; + margin-bottom: 20px; position: relative; } .level_title{ @@ -407,6 +411,11 @@ export default { .rep_list{ display: flex; } +.rep_list>:nth-child(2){ + width: 200px; + margin-left: 10px; + flex:1 +} #num_chart { display: inline-block; width: 600px;