| | |
| | | default: () => {} |
| | | }, |
| | | datas: { |
| | | type: Array, |
| | | type: Object, |
| | | default: () => {} |
| | | } |
| | | }, |
| | |
| | | case 'line': |
| | | iuCharts.drawLine(this.chart,this.datas) |
| | | break; |
| | | case 'pie': |
| | | iuCharts.drawPie(this.chart,this.datas) |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | setTimeout(()=>{ |
| | | this.chart.resize() |
| | |
| | | this.chart.resize(); |
| | | }); |
| | | }, |
| | | |
| | | /* å½çªå£ç¼©æ¾æ¶ï¼echartå¨æè°æ´èªèº«å¤§å° */ |
| | | windowResizeListener() { |
| | | if (!this.chart) return; |
| | |
| | | <div class="daily-main"> |
| | | <div class="daily-content" style="height:100%"> |
| | | <p style="font-size: 16px;padding:19.5px 0px">æ¯æ¥ä¸å¡ç»è®¡</p> |
| | | <el-row :gutter="30"> |
| | | <el-row :gutter="35"> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="daily-card daily-head"> |
| | | <div class="daily-head-left"> |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-row :gutter="35"> |
| | | <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" style="margin-bottom: 30px;"> |
| | | <div class="daily-card chart-box"> |
| | | <h4>è¿10æ¥ä»»å¡æ¥æ¶é</h4> |
| | | <echart-module :id="'left'" :config="chartConfig0" :datas="chartData0"></echart-module> |
| | | <echart-module :id="'daily-left'" :config="chartConfig0" :datas="chartData0"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" style="margin-bottom: 30px;"> |
| | | <div class="daily-card chart-box"> |
| | | <h4>è¿10æ¥å®é
宿任å¡ä¸æ¥æ¶ä»»å¡å¯¹æ¯</h4> |
| | | <echart-module :id="'right'" :config="chartConfig1" :datas="chartData1"></echart-module> |
| | | <echart-module :id="'daily-right'" :config="chartConfig1" :datas="chartData1"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | font-weight: bold; |
| | | font-size: 28px; |
| | | display: inline-block; |
| | | margin-bottom: 26px; |
| | | margin-bottom: 30px; |
| | | } |
| | | |
| | | .daily-head-left .daily-head-left-info{ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="inspection-main"> |
| | | <div class="inspection-content" style="height:100%"> |
| | | <p style="font-size: 16px;padding:19.5px 0px">æ£æµé¡¹ç®ç»è®¡</p> |
| | | <el-row :gutter="35"> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card inspection-head"> |
| | | <div class="inspection-head-left"> |
| | | <h4>仿¥é¡¹ç®æ¥æ¶</h4> |
| | | <span >2453</span> |
| | | <div class="inspection-head-left-info"> |
| | | <img src="../../../static/img/daliy-up.svg" alt=""> |
| | | <span :class="{active:false}" class="num"> 8.5% </span> |
| | | <span>è¾æ¨å¤©</span> |
| | | </div> |
| | | </div> |
| | | <img src="../../../static/img/daliy-0.svg" alt="" srcset=""> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card inspection-head"> |
| | | <div class="inspection-head-left"> |
| | | <h4>仿¥é¡¹ç®å®æ</h4> |
| | | <span >1687</span> |
| | | <div class="inspection-head-left-info"> |
| | | <img src="../../../static/img/daliy-up.svg" alt=""> |
| | | <span :class="{active:false}" class="num"> 8.5% </span> |
| | | <span>è¾æ¨å¤©</span> |
| | | </div> |
| | | </div> |
| | | <img src="../../../static/img/daliy-1.svg" alt="" srcset=""> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card inspection-head"> |
| | | <div class="inspection-head-left"> |
| | | <h4>仿¥é¡¹ç®å©ä½</h4> |
| | | <span >766</span> |
| | | <div class="inspection-head-left-info"> |
| | | <img src="../../../static/img/daliy-down.svg" alt=""> |
| | | <span :class="{active:true}" class="num"> 8.5% </span> |
| | | <span>è¾æ¨å¤©</span> |
| | | </div> |
| | | </div> |
| | | <img src="../../../static/img/daliy-2.svg" alt="" srcset=""> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card inspection-head" style="flex-direction: column;padding-bottom: 5px;"> |
| | | <h4 style="margin-bottom: 5px;">仿¥é¡¹ç®åæ ¼ç</h4> |
| | | <echart-module :id="'inspection-qualified'" :config="chartConfig2" :datas="chartData2" style="align-self: center;"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card inspection-head" style="flex-direction: column;padding-bottom: 5px;"> |
| | | <h4 style="margin-bottom: 5px;">仿¥é¡¹ç®å®æç</h4> |
| | | <echart-module :id="'inspection-complete'" :config="chartConfig3" :datas="chartData3" style="align-self: center;"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="12" :sm="10" :md="8" :lg="6" :xl="4" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card inspection-head" style="flex-direction: column;padding-bottom: 5px;"> |
| | | <h4 style="margin-bottom: 5px;">仿¥é¡¹ç®å»¶æç</h4> |
| | | <echart-module :id="'inspection-extension'" :config="chartConfig4" :datas="chartData4" style="align-self: center;"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="35"> |
| | | <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card chart-box"> |
| | | <h4>è¿10æ¥é¡¹ç®æ¥æ¶é</h4> |
| | | <echart-module :id="'inspection-left'" :config="chartConfig0" :datas="chartData0"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" style="margin-bottom: 30px;"> |
| | | <div class="inspection-card chart-box"> |
| | | <h4>è¿10æ¥å®é
宿项ç®ä¸æ¥æ¶é¡¹ç®å¯¹æ¯</h4> |
| | | <echart-module :id="'inspection-right'" :config="chartConfig1" :datas="chartData1"></echart-module> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import EchartModule from '../tool/echart.vue' |
| | | export default { |
| | | components: {EchartModule}, |
| | | data(){ |
| | | return{ |
| | | chartConfig0:{ |
| | | height: '435px', |
| | | isLoading:true, |
| | | type:'line' |
| | | }, |
| | | chartData0:{ |
| | | xData:['4-11','4-12','4-13','4-14','4-15','4-16','4-17','4-18','4-19','4-20'], |
| | | yData:[ |
| | | { |
| | | title:'é¡¹ç®æ¥æ¶é', |
| | | data:[10,20,10,40,50,20,70,40,90,50] |
| | | } |
| | | ] |
| | | }, |
| | | chartConfig1:{ |
| | | height: '435px', |
| | | isLoading:true, |
| | | type:'bar' |
| | | }, |
| | | chartData1:{ |
| | | xData:['4-11','4-12','4-13','4-14','4-15','4-16','4-17','4-18','4-19','4-20'], |
| | | yData:[ |
| | | { |
| | | title:'仿¥æ¥æ¶', |
| | | data:[10,20,10,40,50,20,70,40,90,50] |
| | | }, |
| | | { |
| | | title:'仿¥å®æ', |
| | | data:[15,10,6,33,66,44,56,77,44,55] |
| | | }, |
| | | ] |
| | | }, |
| | | chartConfig2:{ |
| | | height: '118px', |
| | | width:'140px', |
| | | isLoading:true, |
| | | type:'pie' |
| | | }, |
| | | chartData2:{ |
| | | title:'仿¥é¡¹ç®åæ ¼ç', |
| | | percentage:'68%', |
| | | color:['#1CCAB8','#E1E4E8'], |
| | | data:[ |
| | | { |
| | | name:'åæ ¼', |
| | | value:'68' |
| | | }, |
| | | { |
| | | name:'ä¸åæ ¼', |
| | | value:'32' |
| | | }, |
| | | ] |
| | | }, |
| | | chartConfig3:{ |
| | | height: '118px', |
| | | width:'140px', |
| | | isLoading:true, |
| | | type:'pie' |
| | | }, |
| | | chartData3:{ |
| | | title:'仿¥é¡¹ç®å®æç', |
| | | percentage:'68%', |
| | | color:['#FBB647','#E1E4E8'], |
| | | data:[ |
| | | { |
| | | name:'宿', |
| | | value:'68' |
| | | }, |
| | | { |
| | | name:'æªå®æ', |
| | | value:'32' |
| | | }, |
| | | ] |
| | | }, |
| | | chartConfig4:{ |
| | | height: '118px', |
| | | width:'140px', |
| | | isLoading:true, |
| | | type:'pie' |
| | | }, |
| | | chartData4:{ |
| | | title:'仿¥é¡¹å»¶æç', |
| | | percentage:'68%', |
| | | color:['#FF3838','#E1E4E8'], |
| | | data:[ |
| | | { |
| | | name:'å»¶æ', |
| | | value:'68' |
| | | }, |
| | | { |
| | | name:'æªå»¶æ', |
| | | value:'32' |
| | | }, |
| | | ] |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .inspection-main{ |
| | | height: 100%; |
| | | overflow-y: auto; |
| | | overflow-x: hidden; |
| | | } |
| | | .inspection-card{ |
| | | width: 100%; |
| | | background: #FFFFFF; |
| | | border-radius: 14px; |
| | | box-shadow: 6px 6px 54px 0px rgba(0,0,0,0.05); |
| | | } |
| | | |
| | | .inspection-head{ |
| | | padding: 16px; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: flex-start; |
| | | } |
| | | |
| | | .inspection-head h4{ |
| | | color: #202224; |
| | | font-size: 16px; |
| | | font-weight: 400; |
| | | margin-bottom: 20px; |
| | | opacity: 0.8; |
| | | } |
| | | |
| | | .inspection-head-left>span{ |
| | | font-family: Nunito Sans-Bold;color: #202224; |
| | | font-weight: bold; |
| | | font-size: 28px; |
| | | display: inline-block; |
| | | margin-bottom: 30px; |
| | | } |
| | | |
| | | .inspection-head-left .inspection-head-left-info{ |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 16px; |
| | | color: #202224; |
| | | } |
| | | |
| | | .inspection-head-left .inspection-head-left-info .num{ |
| | | color: #00B69B; |
| | | } |
| | | |
| | | .inspection-head-left .inspection-head-left-info .num.active{ |
| | | color: #F93C65; |
| | | } |
| | | |
| | | .chart-box{ |
| | | padding: 30px 24px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .chart-box h4{ |
| | | color: #202224; |
| | | font-family: PingFang SC-Regular; |
| | | font-weight: 400; |
| | | font-size: 24px; |
| | | margin-bottom: 16px; |
| | | } |
| | | |
| | | .chart{ |
| | | width: 100%; |
| | | height: 450px; |
| | | } |
| | | </style> |
| | |
| | | top: '5%', |
| | | left: '7%', |
| | | right: '3%', |
| | | bottom: '5%', |
| | | bottom: '7%', |
| | | // containLabel: true |
| | | }, |
| | | legend: { |
| | |
| | | }, |
| | | axisLabel: { |
| | | color: 'rgba(43,48,52, 0.4)', |
| | | margin: 20 |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | |
| | | top: '5%', |
| | | left: '7%', |
| | | right: '2%', |
| | | bottom: '5%', |
| | | bottom: '7%', |
| | | // containLabel: true |
| | | }, |
| | | xAxis: [{ |
| | |
| | | }, |
| | | axisLabel: { |
| | | color: 'rgba(43,48,52, 0.4)', |
| | | margin: 20 |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | |
| | | series: series |
| | | }; |
| | | chart.setOption(option); |
| | | }, |
| | | drawPie:function(chart,params){ |
| | | let option = { |
| | | color: params.color, |
| | | backgroundColor: '#fff', |
| | | tooltip: { |
| | | trigger: 'item', |
| | | formatter: '{a} <br/>{b} : {c} ({d}%)' |
| | | }, |
| | | title: { |
| | | text: params.percentage, |
| | | textStyle: { |
| | | color: '#4379EE', |
| | | fontSize: 14, |
| | | align: 'center', |
| | | fontWeight: 'normal' |
| | | }, |
| | | x: 'center', |
| | | y: 'center', |
| | | }, |
| | | grid: { |
| | | top:20, |
| | | bottom: 20, |
| | | left: 0, |
| | | right: 0 |
| | | }, |
| | | legend: { |
| | | show: false, |
| | | }, |
| | | series: [ |
| | | // 主è¦å±ç¤ºå±ç |
| | | { |
| | | radius: ['55%', '90%'], |
| | | center: ['50%', '50%'], |
| | | type: 'pie', |
| | | label: { |
| | | show:false |
| | | }, |
| | | name: params.title, |
| | | data: params.data, |
| | | }, |
| | | // è¾¹æ¡ç设置 |
| | | { |
| | | radius: ['55%', '65%'], |
| | | center: ['50%', '50%'], |
| | | type: 'pie', |
| | | label: { |
| | | normal: { |
| | | show: false |
| | | }, |
| | | emphasis: { |
| | | show: false |
| | | } |
| | | }, |
| | | labelLine: { |
| | | normal: { |
| | | show: false |
| | | }, |
| | | emphasis: { |
| | | show: false |
| | | } |
| | | }, |
| | | animation: false, |
| | | tooltip: { |
| | | show: false |
| | | }, |
| | | data: [{ |
| | | value: 1, |
| | | itemStyle: { |
| | | color: "rgba(250,250,250,0.3)", |
| | | }, |
| | | }], |
| | | } |
| | | ] |
| | | }; |
| | | chart.setOption(option); |
| | | } |
| | | } |
| | | |
| | |
| | | }, { |
| | | v: "æ£æµé¡¹ç®ç»è®¡", |
| | | i: "font icon-erjidaohang", |
| | | u: "", |
| | | u: "b4-inspection-item-statistics", |
| | | p: "" |
| | | }, { |
| | | v: "æ ·åç¼ºé·ææ°", |