1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="shortcut icon" href="{{asset('favicon.ico')}}">
- <link href="{{asset('css/bootstrap.min.css')}}" rel="stylesheet">
- <link href="{{asset('css/style.min.css?v=4.0.0')}}" rel="stylesheet">
- <link href="{{asset('css/font-awesome-4.7.0/css/font-awesome.min.css')}}" rel="stylesheet">
- <link href="{{asset('css/style.min862f.css?v=4.2')}}" rel="stylesheet">
- <style>
- .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4,
- .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11,
- .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8,
- .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4,
- .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11,
- .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
- padding-left: 5px;
- padding-right: 5px;
- }
- .ibox {
- margin-bottom: 10px;
- }
- .abc2 > .row {
- display: flex;
- padding: 0 0 10px 0;
- }
- .ibox-content {
- padding: 28px 20px 20px;
- }
- .abc2 .row .ibox {
- margin-bottom: 0;
- }
- .abc2 .row .ibox {
- height: 100%;
- margin-bottom: 0;
- background-color: #fff;
- }
- .abc2 .row .col-lg-8 .ibox .ibox-content {
- height: 100%;
- }
- .abc3 {
- padding: 5px 0;
- }
- .abc3 > .row > .row {
- margin: auto;
- width: calc(100% - 10px);
- }
- .wrapper.wrapper-content .container {
- width: 100%;
- }
- .top-navigation .wrapper.wrapper-content {
- padding: 20px 0;
- }
- .ibox-content-icons {
- padding: 0;
- margin: 0 -5px;
- }
- .ibox-content-icons li {
- width: 25%;
- float: left;
- padding: 0 5px;
- margin-bottom: 10px;
- }
- .ibox-content-icons li:nth-child(n+5) {
- margin-bottom: 0;
- }
- .ibox-content-icons:before {
- content: '';
- display: table;
- clear: both;
- }
- .ibox-content-icons:after {
- content: '';
- display: table;
- clear: both;
- }
- .ibox-content-icons li .icon {
- height: 70px;
- background-color: #f2f2f2;
- border-radius: 5px;
- line-height: 60px;
- text-align: center;
- margin-bottom: 10px;
- display: block;
- }
- .ibox-content-icons li {
- list-style: none;
- }
- .ibox-content-icons li .title {
- font-size: 14px;
- color: #333;
- display: block;
- text-align: center;
- }
- @media screen and (max-width: 768px) {
- .abc2 .row {
- display: block;
- }
- }
- .icon-class {
- font-size: 40px;
- color: #333333;
- position: absolute;
- left: 50%;
- transform: translate(-50%, -50%);
- top: 50%;
- }
- @media screen and (max-width: 1200px) {
- .abc2 > .row {
- display: block;
- }
- }
- </style>
- </head>
- <body class="gray-bg top-navigation">
- <div id="wrapper">
- <div id="page-wrapper" class="gray-bg">
- <div class="wrapper wrapper-content">
- <div class="container">
- <div class="abc1">
- <div class="row">
- <div class="col-md-2">
- <div class="ibox float-e-margins clearfix">
- <div class="ibox-title" style="border-style: none">
- <button class="times" style="border:none"
- onclick="units.openDetail('/admin/analyze/index/online','当月上线')">
- <span style="font-weight:bold">当月上线</span>
- </button>
- </div>
- <div class="ibox-content">
- <h1 class="no-margins">{{$thisMonthOnlineSite}}</h1>
- @if($ratioOnlineSite<0)
- <div class="stat-percent font-bold" style="color: #4ea397">
- 较上月环比 {{$ratioOnlineSite}}%
- </div>
- @else
- <div class="stat-percent font-bold" style="color: #d0648a">
- 较上月环比 {{$ratioOnlineSite}}%
- </div>
- @endif
- <small>项目数</small>
- </div>
- </div>
- <div class="ibox float-e-margins clearfix" style="margin-bottom: 0">
- <div class="ibox-title" style="border-style: none">
- <button class="times" style="border:none"
- onclick="units.openDetail('/admin/analyze/index/place-order','当月签单')">
- <span style="font-weight:bold">当月签单</span>
- </button>
- </div>
- <div class="ibox-content">
- <h1 class="no-margins">{{$thisMonthOrderSite}}</h1>
- @if($ratioOrderSite<0)
- <div class="stat-percent font-bold" style="color: #4ea397">
- 较上月环比 {{$ratioOrderSite}}%
- </div>
- @else
- <div class="stat-percent font-bold" style="color: #d0648a">
- 较上月环比 {{$ratioOrderSite}}%
- </div>
- @endif
- <small>项目数</small>
- </div>
- </div>
- </div>
- <div class="col-md-2">
- <div class="ibox float-e-margins clearfix">
- <div class="ibox-title" style="border-style: none">
- <button class="times" style="border:none"
- onclick="units.openDetail('/admin/analyze/index/reach','当月达标')">
- <span style="font-weight:bold">当月达标</span>
- </button>
- </div>
- <div class="ibox-content">
- <h1 class="no-margins">{{$thisMonthQualifiedSite}}</h1>
- @if($ratioQualifiedSite<0)
- <div class="stat-percent font-bold" style="color: #4ea397">
- 较上月环比 {{$ratioQualifiedSite}}%
- </div>
- @else
- <div class="stat-percent font-bold" style="color: #d0648a">
- 较上月环比 {{$ratioQualifiedSite}}%
- </div>
- @endif
- <small>项目数</small>
- </div>
- </div>
- <div class="ibox float-e-margins clearfix" style="margin-bottom: 0">
- <div class="ibox-title" style="border-style: none">
- <button class="times" style="border:none"
- onclick="units.openDetail('/admin/analyze/index/place-order','当月已下单')">
- <span style="font-weight:bold">当月已下单</span>
- </button>
- </div>
- <div class="ibox-content">
- <h1 class="no-margins">{{$thisMonthAssignSite}}</h1>
- @if($ratioAssignSite<0)
- <div class="stat-percent font-bold" style="color: #4ea397">
- 较上月环比 {{$ratioAssignSite}}%
- </div>
- @else
- <div class="stat-percent font-bold" style="color: #d0648a">
- 较上月环比 {{$ratioAssignSite}}%
- </div>
- @endif
- <small>项目数</small>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="ibox float-e-margins clearfix">
- <div class="ibox-title" style="border-style: none">
- <h5>快捷方式</h5>
- </div>
- <div class="ibox-content">
- <ul class="ibox-content-icons">
- <li>
- <a onclick="units.openDetail('/admin/sites','项目管理')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa fa-user icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/sites','项目管理')" class="title">
- 项目管理
- </a>
- </li>
- <li>
- <a onclick="units.openDetail('/admin/plan/week-task/index','当前任务')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-calendar icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/plan/week-task/index','当前任务')"
- class="title">
- 当前任务
- </a>
- </li>
- @if(in_array($user->role_id, [7, 24]))
- <li>
- <a onclick="units.openDetail('/admin/analyze/index/reach','当月达标')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-bar-chart icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/analyze/index/reach','当月达标')"
- class="title">
- 当月达标
- </a>
- </li>
- @else
- <li>
- <a onclick="units.openDetail('/admin/plan/week-task/index?type=next','下周任务')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-bar-chart icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/plan/week-task/index?type=next','下周任务')"
- class="title">
- 下周任务
- </a>
- </li>
- @endif
- @if(in_array($user->role_id, [1,7, 24]))
- <li>
- <a onclick="units.openDetail('/admin/googleTrends/query','接单评估')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-handshake-o icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/googleTrends/query','接单评估')"
- class="title">
- 接单评估
- </a>
- </li>
- @else
- <li>
- <a onclick="units.openDetail('/admin/plan/week-task/history','任务历史')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-area-chart icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/plan/week-task/history','任务历史')"
- class="title">
- 任务历史
- </a>
- </li>
- @endif
- <li>
- <a onclick="units.openDetail('/admin/flow/buildFlow','建站进度')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-address-card icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/flow/buildFlow','建站进度')"
- class="title">
- 建站进度
- </a>
- </li>
- <li>
- <a onclick="units.openDetail('/admin/analyze/index/online','上线统计')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-signal icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/analyze/index/online','上线统计')"
- class="title">
- 上线统计
- </a>
- </li>
- <li>
- <a onclick="units.openDetail('/admin/flow/notOnlineReason','未上线统计')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-calendar-o icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/flow/notOnlineReason','未上线统计')"
- class="title">
- 未上线统计
- </a>
- </li>
- <li>
- <a onclick="units.openDetail('/admin/analyze/index/plan','百千项目')"
- class="J_menuItem icon iconfont" style="position: relative">
- <i class="fa fa-podcast icon-class" aria-hidden="true"></i>
- </a>
- <a onclick="units.openDetail('/admin/analyze/index/plan','百千项目')"
- class="title">
- 百千项目
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="ibox float-e-margins clearfix">
- <div class="ibox-title" style="border-style: none">
- <button class="times" style="border:none"
- onclick="units.openDetail('/admin/collect/speedMeasurement','测速异常项目')">
- <span style="font-weight:bold">测速异常</span>
- </button>
- </div>
- <div class="ibox-content">
- <div id="mjBox5" style="width: 100%;height:210px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc2">
- <div class="row">
- <div class="col-lg-8">
- <div class="ibox float-e-margins clearfix">
- <div class="ibox-title" style="border-style: none">
- <h5>项目总揽</h5>
- </div>
- <div class="col-sm-6">
- <div id="mjBox1" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-6">
- <div id="mjBox2" style="width: 100%;height:380px;"></div>
- </div>
- </div>
- </div>
- <div class="col-lg-4">
- <div class="ibox float-e-margins clearfix">
- <div class="ibox-title" style="border-style: none">
- <button class="times" style="border:none"
- onclick="units.openDetail('/admin/collect/index','404异常项目')">
- <span style="font-weight:bold">404异常项目</span>
- </button>
- </div>
- <div id="mjBox3" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc3">
- <div class="row">
- <div class="row border-bottom white-bg dashboard-header">
- <div class="col-sm-4">
- <h2>前端逾期任务汇总</h2>
- <ul class="list-group clear-list m-t">
- <li class="list-group-item fist-item">
- @foreach($taskList as $key=>$item)
- <li class="list-group-item">
- <span class="pull-right">{{$item->deadline}}</span>
- <span class="label label-primary">{{$key+1}}</span>{{$item->describe}}
- </li>
- @endforeach
- </ul>
- </div>
- <div class="col-sm-4">
- <div id="mjBox4" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-4">
- <div id="mjBox" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc3">
- <div class="row">
- <div class="row border-bottom white-bg dashboard-header">
- <div class="col-sm-4">
- <h2>设计逾期任务汇总</h2>
- <ul class="list-group clear-list m-t">
- <li class="list-group-item fist-item">
- @foreach($taskList2 as $key=>$item)
- <li class="list-group-item">
- <span class="pull-right">{{$item->deadline}}</span>
- <span class="label label-primary">{{$key+1}}</span>{{$item->describe}}
- </li>
- @endforeach
- </ul>
- </div>
- <div class="col-sm-4">
- <div id="mjBox12" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-4">
- <div id="mjBox11" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc3">
- <div class="row">
- <div class="row border-bottom white-bg dashboard-header">
- <div class="col-sm-8">
- <div id="mjBox7" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-4">
- <div id="mjBox13" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc3">
- <div class="row">
- <div class="row border-bottom white-bg dashboard-header">
- <div class="col-sm-8">
- <div id="mjBox8" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-4">
- <div id="mjBox14" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc3">
- <div class="row">
- <div class="row border-bottom white-bg dashboard-header">
- <div class="col-sm-8">
- <div id="mjBox9" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-4">
- <div id="mjBox15" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="abc3">
- <div class="row">
- <div class="row border-bottom white-bg dashboard-header">
- <div class="col-sm-8">
- <div id="mjBox10" style="width: 100%;height:400px;"></div>
- </div>
- <div class="col-sm-4">
- <div id="mjBox16" style="width: 100%;height:400px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="{{asset('js/jquery.min.js?v=2.1.4')}}"></script>
- {{--echarts--}}
- <script src="{{asset('js/plugins/echarts/echarts.min.js')}}"></script>
- <script src="{{asset('js/plugins/wonderland/wonderland.js?v=1.3')}}"></script>
- <script src="{{asset('js/tools/tips.js')}}"></script>
- <script>
- var units = {
- openDetail: function (url, title) {
- tips.page(url, title);
- }
- };
- $(document).ready(function () {
- // 基于准备好的dom,初始化echarts实例
- var Echart = echarts.init(document.getElementById('mjBox1'), 'wonderland');
- var option1 = {
- legend: {},
- tooltip: {},
- dataset: {
- source: JSON.parse('{!!json_encode($monthBySiteList)!!}'),
- },
- xAxis: [
- {type: 'category', gridIndex: 0},
- {type: 'category', gridIndex: 1}
- ],
- yAxis: [
- {gridIndex: 0},
- {gridIndex: 1}
- ],
- grid: [
- {bottom: '55%'},
- {top: '55%'}
- ],
- series: [
- // These series are in the first grid.
- {type: 'bar', seriesLayoutBy: 'row'},
- {type: 'bar', seriesLayoutBy: 'row'},
- {type: 'bar', seriesLayoutBy: 'row'},
- // These series are in the second grid.
- {type: 'bar', xAxisIndex: 1, yAxisIndex: 1},
- {type: 'bar', xAxisIndex: 1, yAxisIndex: 1},
- {type: 'bar', xAxisIndex: 1, yAxisIndex: 1},
- ]
- };
- // 使用制定的配置项和数据显示图表
- Echart.setOption(option1);
- // 基于准备好的dom,初始化echarts实例
- var Echart2 = echarts.init(document.getElementById('mjBox2'), 'wonderland');
- var option2 = {
- tooltip: {
- trigger: 'axis',
- axisPointer: { // Use axis to trigger tooltip
- type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'
- }
- },
- legend: {
- data: JSON.parse('{!!json_encode($monthBySiteList2['title'])!!}')
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: {
- type: 'value'
- },
- yAxis: {
- type: 'category',
- data: JSON.parse('{!!json_encode($monthBySiteList2['months'])!!}')
- },
- series: [
- {
- name: '签单',
- type: 'bar',
- stack: 'total',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($monthBySiteList2['orderList'])!!}')
- },
- {
- name: '上线',
- type: 'bar',
- stack: 'total',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($monthBySiteList2['onlineList'])!!}')
- },
- {
- name: '达标',
- type: 'bar',
- stack: 'total',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($monthBySiteList2['reachList'])!!}')
- },
- {
- name: '到期',
- type: 'bar',
- stack: 'total',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($monthBySiteList2['expiredList'])!!}')
- },
- {
- name: '续费',
- type: 'bar',
- stack: 'total',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($monthBySiteList2['renewalList'])!!}')
- },
- ]
- };
- // 使用制定的配置项和数据显示图表
- Echart2.setOption(option2);
- // 基于准备好的dom,初始化echarts实例
- var Echart3 = echarts.init(document.getElementById('mjBox3'), 'wonderland');
- var option3 = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {},
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($sitesStatusList['user'])!!}'),
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '项目数量',
- type: 'bar',
- stack: 'Ad',
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($sitesStatusList['count'])!!}'),
- itemStyle: {
- normal: {
- label: {
- show: true, //开启显示
- position: 'top', //在上方显示
- }
- }
- }
- },
- ]
- };
- // 使用制定的配置项和数据显示图表
- Echart3.setOption(option3);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart = echarts.init(document.getElementById('mjBox'), 'wonderland');
- var option = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {},
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($taskListByWeek['name'])!!}'),
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '逾期任务数',
- type: 'bar',
- stack: 'Ad',
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($taskListByWeek['list'])!!}'),
- itemStyle: {
- normal: {
- label: {
- show: true, //开启显示
- position: 'top', //在上方显示
- }
- }
- }
- },
- ]
- };
- mjBoxEchart.setOption(option);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart4 = echarts.init(document.getElementById('mjBox4'), 'wonderland');
- var labelRight = {
- position: 'right'
- };
- var option4 = {
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- legend: {
- data: ['完成', '进行', '逾期']
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'value'
- }
- ],
- yAxis: [
- {
- type: 'category',
- axisTick: {
- show: false
- },
- data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
- }
- ],
- series: [
- {
- name: '完成',
- type: 'bar',
- label: {
- show: true,
- position: 'inside'
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($projectStatusList['inside'])!!}')
- },
- {
- name: '进行',
- type: 'bar',
- stack: '总量',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($projectStatusList['series'])!!}')
- },
- {
- name: '逾期',
- type: 'bar',
- stack: '总量',
- label: {
- show: true,
- position: 'left'
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($projectStatusList['left'])!!}')
- }
- ]
- };
- mjBoxEchart4.setOption(option4);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart5 = echarts.init(document.getElementById('mjBox5'), 'wonderland');
- var option5 = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {},
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($speedMeasurement['list'])!!}'),
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '项目数量',
- type: 'bar',
- stack: 'Ad',
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($speedMeasurement['count'])!!}'),
- itemStyle: {
- normal: {
- label: {
- show: true, //开启显示
- position: 'top', //在上方显示
- }
- }
- }
- },
- ]
- };
- mjBoxEchart5.setOption(option5);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart7 = echarts.init(document.getElementById('mjBox7'), 'wonderland');
- var option7 = {
- title: {
- text: '项目经理上线统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- label: {
- backgroundColor: '#6a7985'
- }
- }
- },
- legend: {
- //data: ['茹云峰', '郭天俊', '许兴港', '郭翔', '陈旭', '贾钟阁', '周晓慧', '柯嘉敏']
- data: JSON.parse('{!!json_encode($siteListCountByUsers['name'])!!}'),
- selected: JSON.parse('{!!json_encode($siteListCountByUsers['user'])!!}'),
- },
- /* toolbox: {
- feature: {
- saveAsImage: {}
- }
- },*/
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- boundaryGap: false,
- data: JSON.parse('{!!json_encode($siteListCountByUsers['title'])!!}')
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- @foreach($siteListCountByUsers['list'] as $key=>$item)
- {
- name: '{{$key}}',
- smooth: true,//变为曲线 默认false折线
- type: 'line',
- stack: '总量',
- areaStyle: {},
- emphasis: {
- focus: 'series'
- },
- label: {
- show: true,
- position: 'top'
- },
- data: JSON.parse('{!!json_encode($item)!!}')
- },
- @endforeach
- ]
- };
- // 使用制定的配置项和数据显示图表
- mjBoxEchart7.setOption(option7);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart8 = echarts.init(document.getElementById('mjBox8'), 'wonderland');
- var option8 = {
- title: {
- text: '优化采编网站达标统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- label: {
- backgroundColor: '#6a7985'
- }
- }
- },
- legend: {
- //data: ['茹云峰', '郭天俊', '许兴港', '郭翔', '陈旭', '贾钟阁', '周晓慧', '柯嘉敏']
- data: JSON.parse('{!!json_encode($siteListByOptimizeEditing['name'])!!}'),
- selected: JSON.parse('{!!json_encode($siteListByOptimizeEditing['user'])!!}'),
- },
- /* toolbox: {
- feature: {
- saveAsImage: {}
- }
- },*/
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- boundaryGap: false,
- data: JSON.parse('{!!json_encode($siteListByOptimizeEditing['title'])!!}')
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- @foreach($siteListByOptimizeEditing['list'] as $key=>$item)
- {
- name: '{{$key}}',
- smooth: true,//变为曲线 默认false折线
- type: 'line',
- stack: '总量',
- areaStyle: {},
- emphasis: {
- focus: 'series'
- },
- label: {
- show: true,
- position: 'top'
- },
- data: JSON.parse('{!!json_encode($item)!!}')
- },
- @endforeach
- ]
- };
- // 使用制定的配置项和数据显示图表
- mjBoxEchart8.setOption(option8);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart9 = echarts.init(document.getElementById('mjBox9'), 'wonderland');
- var option9 = {
- title: {
- text: '项目管家网站续费项目统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- label: {
- backgroundColor: '#6a7985'
- }
- }
- },
- legend: {
- //data: ['茹云峰', '郭天俊', '许兴港', '郭翔', '陈旭', '贾钟阁', '周晓慧', '柯嘉敏']
- data: JSON.parse('{!!json_encode($siteListByProjectHousekeeper['name'])!!}'),
- selected: JSON.parse('{!!json_encode($siteListByProjectHousekeeper['user'])!!}'),
- },
- /* toolbox: {
- feature: {
- saveAsImage: {}
- }
- },*/
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- boundaryGap: false,
- data: JSON.parse('{!!json_encode($siteListByProjectHousekeeper['title'])!!}')
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- @foreach($siteListByProjectHousekeeper['list'] as $key=>$item)
- {
- name: '{{$key}}',
- smooth: true,//变为曲线 默认false折线
- type: 'line',
- stack: '总量',
- areaStyle: {},
- emphasis: {
- focus: 'series'
- },
- label: {
- show: true,
- position: 'top'
- },
- data: JSON.parse('{!!json_encode($item)!!}')
- },
- @endforeach
- ]
- };
- // 使用制定的配置项和数据显示图表
- mjBoxEchart9.setOption(option9);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart10 = echarts.init(document.getElementById('mjBox10'), 'wonderland');
- var option10 = {
- title: {
- text: '项目管家网站续费金额统计'
- },
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: JSON.parse('{!!json_encode($siteRenewListByProjectHousekeeper['name'])!!}'),
- selected: JSON.parse('{!!json_encode($siteRenewListByProjectHousekeeper['user'])!!}'),
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- /* toolbox: {
- feature: {
- saveAsImage: {}
- }
- },*/
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: JSON.parse('{!!json_encode($siteRenewListByProjectHousekeeper['title'])!!}')
- },
- yAxis: {
- type: 'value'
- },
- series: [
- @foreach($siteRenewListByProjectHousekeeper['list'] as $key=>$item)
- {
- name: '{{$key}}',
- smooth: true,//变为曲线 默认false折线
- type: 'line',
- stack: '金额',
- areaStyle: {},
- emphasis: {
- focus: 'series'
- },
- label: {
- show: true,
- position: 'top'
- },
- data: JSON.parse('{!!json_encode($item)!!}')
- },
- @endforeach
- ]
- };
- // 使用制定的配置项和数据显示图表
- mjBoxEchart10.setOption(option10);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart11 = echarts.init(document.getElementById('mjBox11'), 'wonderland');
- var option11 = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {},
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($taskListByWeek2['name'])!!}'),
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '逾期任务数',
- type: 'bar',
- stack: 'Ad',
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($taskListByWeek2['list'])!!}'),
- itemStyle: {
- normal: {
- label: {
- show: true, //开启显示
- position: 'top', //在上方显示
- }
- }
- }
- },
- ]
- };
- mjBoxEchart11.setOption(option11);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart12 = echarts.init(document.getElementById('mjBox12'), 'wonderland');
- var option12 = {
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- legend: {
- data: ['完成', '进行', '逾期']
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'value'
- }
- ],
- yAxis: [
- {
- type: 'category',
- axisTick: {
- show: false
- },
- data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
- }
- ],
- series: [
- {
- name: '完成',
- type: 'bar',
- label: {
- show: true,
- position: 'inside'
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($projectStatusList2['inside'])!!}')
- },
- {
- name: '进行',
- type: 'bar',
- stack: '总量',
- label: {
- show: true
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($projectStatusList2['series'])!!}')
- },
- {
- name: '逾期',
- type: 'bar',
- stack: '总量',
- label: {
- show: true,
- position: 'left'
- },
- emphasis: {
- focus: 'series'
- },
- data: JSON.parse('{!!json_encode($projectStatusList2['left'])!!}')
- }
- ]
- };
- mjBoxEchart12.setOption(option12);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart13 = echarts.init(document.getElementById('mjBox13'), 'wonderland');
- var option13 = {
- title: {
- text: '最近一年统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($siteListCountByUsers['name'])!!}'),
- axisTick: {
- alignWithLabel: true
- },
- axisLabel: {
- interval: 0,
- rotate: 40
- },
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '数量',
- type: 'bar',
- itemStyle: {
- normal: {
- label: {
- show: true,
- position: 'top',
- }
- }
- },
- data: JSON.parse('{!!json_encode($siteListCountByUsers['sum'])!!}'),
- }
- ]
- };
- mjBoxEchart13.setOption(option13);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart14 = echarts.init(document.getElementById('mjBox14'), 'wonderland');
- var option14 = {
- title: {
- text: '最近一年统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($siteListByOptimizeEditing['name'])!!}'),
- axisTick: {
- alignWithLabel: true
- },
- axisLabel: {
- interval: 0,
- rotate: 40
- },
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '数量',
- type: 'bar',
- itemStyle: {
- normal: {
- label: {
- show: true,
- position: 'top',
- }
- }
- },
- data: JSON.parse('{!!json_encode($siteListByOptimizeEditing['sum'])!!}'),
- }
- ]
- };
- mjBoxEchart14.setOption(option14);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart15 = echarts.init(document.getElementById('mjBox15'), 'wonderland');
- var option15 = {
- title: {
- text: '最近一年统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($siteListByProjectHousekeeper['name'])!!}'),
- axisTick: {
- alignWithLabel: true
- },
- axisLabel: {
- interval: 0,
- rotate: 40
- },
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '数量',
- type: 'bar',
- itemStyle: {
- normal: {
- label: {
- show: true,
- position: 'top',
- }
- }
- },
- data: JSON.parse('{!!json_encode($siteListByProjectHousekeeper['sum'])!!}'),
- }
- ]
- };
- mjBoxEchart15.setOption(option15);
- // 基于准备好的dom,初始化echarts实例
- var mjBoxEchart16 = echarts.init(document.getElementById('mjBox16'), 'wonderland');
- var option16 = {
- title: {
- text: '最近一年统计'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- xAxis: [
- {
- type: 'category',
- data: JSON.parse('{!!json_encode($siteRenewListByProjectHousekeeper['name'])!!}'),
- axisTick: {
- alignWithLabel: true
- },
- axisLabel: {
- interval: 0,
- rotate: 40
- },
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '金额',
- type: 'bar',
- itemStyle: {
- normal: {
- label: {
- show: true,
- position: 'top',
- }
- }
- },
- data: JSON.parse('{!!json_encode($siteRenewListByProjectHousekeeper['sum'])!!}'),
- }
- ]
- };
- mjBoxEchart16.setOption(option16);
- });
- </script>
- </body>
- </html>
|