From b322b2bad8b2f9b88521c9ffbbe7e77282b9fe2e Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期四, 08 七月 2021 18:06:45 +0800 Subject: [PATCH] 头像修改 --- src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue | 29 +++++++++++++++++++---------- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue b/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue index 9075503..47156be 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue @@ -107,7 +107,7 @@ <el-tab-pane label="闅愭偅浜嬩欢瓒嬪娍" name="hidDanderTrend"></el-tab-pane> </el-tabs> <div class="rt"> - <time-shortcut actPicker="week" @actPickerChange="timeShortChange"></time-shortcut> + <time-shortcut actPicker="today" @actPickerChange="timeShortChange"></time-shortcut> <el-date-picker v-model="searchHidDanderTime" type="datetimerange" @@ -428,6 +428,7 @@ }) this.jsTreeNodes = tempArr + this.refreshShoubiNum() }, data () { return { @@ -548,14 +549,6 @@ axisTick: { alignWithLabel: true }, - // axisLine: { - // lineStyle: { - // color: '#ccc' - // } - // }, - // nameTextStyle: { - // color: "#333" - // } } ], yAxis: [ @@ -571,7 +564,10 @@ name: '鏁伴噺', type: 'bar', barWidth: '60%', - data: [{value:21,itemStyle:{color:'#3aa0ff'}},{value:102,itemStyle:{color:'#36cbcb'}},{value:100,itemStyle:{color:'#4dcb73'}},{value:1,itemStyle:{color:'#fad337'}},{value:7,itemStyle:{color:'#f2637b'}}, {value:14,itemStyle:{color:'#975fe4'}}] + label:{ + show:true,position: 'top' + }, + data: [{value:1,itemStyle:{color:'#3aa0ff'}},{value:0,itemStyle:{color:'#36cbcb'}},{value:1,itemStyle:{color:'#4dcb73'}},{value:1,itemStyle:{color:'#fad337'}},{value:3,itemStyle:{color:'#f2637b'}}, {value:2,itemStyle:{color:'#975fe4'}}] } ] }, @@ -1078,6 +1074,19 @@ } }, methods: { + refreshShoubiNum(){ + let n = sessionStorage.getItem("shoubiNum") + // this.optionsOfHidDangerBar.series[0].data[1].value = +n + this.$set(this.optionsOfHidDangerBar.series,0, { + name: '鏁伴噺', + type: 'bar', + barWidth: '60%', + label:{ + show:true,position: 'top' + }, + data: [{value:1,itemStyle:{color:'#3aa0ff'}},{value:+n,itemStyle:{color:'#36cbcb'}},{value:1,itemStyle:{color:'#4dcb73'}},{value:1,itemStyle:{color:'#fad337'}},{value:3,itemStyle:{color:'#f2637b'}}, {value:2,itemStyle:{color:'#975fe4'}}] + }) + }, initTabContent(tab){ if(tab.name == "hidDanderStatistic"){ this.actHidDanderStatiscChart = 'bar' -- Gitblit v1.8.0