123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071 |
- @extends('admin/layout')
- @section('header_extend')
- <style>
- .btn-info {
- padding: 0 10px !important;
- line-height: 25px !important;
- border: none !important;
- margin: 0 !important;
- }
- .float-e-margins .btn {
- }
- .singles-boxs .lis-boxs {
- display: block;
- width: 100%;
- background: #fff;
- border-radius: 6px;
- overflow: hidden;
- }
- .singles-boxs .titles-boxs {
- display: block;
- width: 100%;
- background: #2a94e0;
- padding: 0 9%;
- }
- .singles-boxs .titles-boxs img {
- margin-right: 8px;
- }
- .singles-boxs .titles-a {
- display: block;
- width: 100%;
- position: relative;
- }
- .singles-boxs .times {
- display: block;
- line-height: 22px;
- background: #fff;
- padding: 0 8px;
- border-radius: 4px;
- position: absolute;
- right: 0;
- top: 10px;
- }
- </style>
- @endsection
- @section('content')
- <style>
- .singles-boxs {
- font-family: 微软雅黑;
- }
- .singles-boxs * {
- font-family: 微软雅黑;
- }
- .singles-boxs .lis-boxs {
- display: block;
- width: 100%;
- background: #fff;
- border-radius: 6px;
- overflow: hidden;
- margin-bottom: 25px;
- }
- .singles-boxs .titles-boxs {
- display: block;
- width: 100%;
- background: #2a94e0;
- padding: 0 9%;
- }
- .singles-boxs .titles-boxs img {
- margin-right: 6px;
- }
- .singles-boxs .titles-a {
- display: block;
- width: 100%;
- position: relative;
- color: #fff;
- font-size: 14px;
- line-height: 24px;
- padding: 10px 0;
- white-space: nowrap;
- }
- .singles-boxs .lis-boxs.active {
- background: none;
- }
- .singles-boxs .lis-boxs.active .titles-boxs {
- padding: 15px 8%;
- border-radius: 6px;
- }
- .singles-boxs .lis-boxs .titles-boxs .span {
- font-size: 20px;
- color: #fff;
- line-height: 24px;
- position: absolute;
- right: 18px;
- top: 10px;
- }
- .singles-boxs .lis-boxs.active .titles-boxs + .titles-boxs {
- margin-top: 5px;
- }
- .singles-boxs .boxs {
- padding: 0px 0px 12px;
- overflow: hidden;
- }
- .singles-boxs .times {
- display: block;
- line-height: 22px;
- background: #fff;
- padding: 0 8px;
- border-radius: 4px;
- position: absolute;
- right: 0;
- top: 10px;
- color: #2a94e0;
- font-size: 14px;
- }
- .singles-boxs .times.ons {
- font-size: 12px;
- padding: 0 4px;
- }
- .singles-boxs .numbers {
- font-size: 20px;
- line-height: 34px;
- text-align: center;
- color: #2a93e0;
- margin-top: 8px;
- }
- .singles-boxs .numbers .n-span {
- display: inline-block;
- font-size: 12px;
- color: #2a93e0;
- line-height: 16px;
- vertical-align: top;
- margin-top: 11px;
- margin-left: -7px;
- }
- .singles-boxs .lists {
- display: block;
- width: 100%;
- padding: 0 15%;
- overflow: hidden;
- }
- .singles-boxs .lists.active {
- margin-top: 8px;
- padding: 3px 15%;
- }
- .singles-boxs .lists.active .lists-lefts {
- color: #2a93e0;
- }
- .singles-boxs .lists.active .lists-rights {
- color: #2a93e0;
- background: none;
- }
- .singles-boxs .lists-lefts {
- float: left;
- font-size: 14px;
- color: #646464;
- line-height: 28px;
- }
- .singles-boxs .lists-rights {
- float: right;
- font-size: 14px;
- color: #f21919;
- line-height: 28px;
- padding-right: 15px;
- background: url(/img/kzt-top-img.png) no-repeat right 8px;
- }
- .singles-boxs .lists-rights.ons {
- color: #00b91a;
- background: url(/img/kzt-down-img.png) no-repeat right 8px;
- }
- .singles-boxs .lists-rights.onss {
- background: none;
- }
- @media (max-width: 1680px) {
- .singles-boxs .col-sm-2 {
- width: 25%;
- }
- }
- @media (max-width: 1024px) {
- .singles-boxs .col-sm-2 {
- width: 33.3333%;
- }
- }
- @media (max-width: 768px) {
- .singles-boxs .col-sm-2 {
- width: 50%;
- float: left;
- }
- }
- @media (max-width: 640px) {
- .singles-boxs .col-sm-2 {
- width: 100%;
- }
- }
- </style>
- <body class="gray-bg">
- @php
- $last1M=date('n',strtotime('first day of -1 month'));
- $last2M=date('n',strtotime('first day of -2 month'));
- $last3M=date('n',strtotime('first day of -3 month'));
- @endphp
- <div class="wrapper wrapper-content">
- <div class="singles-boxs">
- <div class="row">
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-01.png" alt="">
- 竞价项目个数
- <button class="times" style="border:none" onclick="units.details(0,'竞价项目个数')">
- 总数 : {{$totalPpc}}
- </button>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内竞价项目个数</h5>
- </div>
- <div class="ibox-content">
- <div id="ppcDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 已投放个数
- <button class="times" style="border:none" onclick="units.details(1,'已投放个数')">
- 总数 :{{$totalRedPpc}}
- </button>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内已投放个数</h5>
- </div>
- <div class="ibox-content">
- <div id="redPpcDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 待投放个数
- <button class="times" style="border:none" onclick="units.details(2,'待投放个数')">
- 总数 :{{$totalGrayPpc}}
- </button>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内待投放个数</h5>
- </div>
- <div class="ibox-content">
- <div id="grayPpcDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 已暂停个数
- <button class="times" style="border:none" onclick="units.details(3,'已暂停个数')">
- 总数 :{{$totalLineRedPpc}}
- </button>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内已经暂停个数</h5>
- </div>
- <div class="ibox-content">
- <div id="lineRedPpcDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 已续费个数
- <button class="times" style="border:none" onclick="units.details(4,'已续费个数')">
- 总数 :{{$totalRenewalNum}}
- </button>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内已续费个数</h5>
- </div>
- <div class="ibox-content">
- <div id="renewalNumDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 续费率
- <span class="times">
- {{$totalRenewalRate}}
- </span>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内续费率</h5>
- </div>
- <div class="ibox-content">
- <div id="renewalRateDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 竞价金额
- <span class="times">
- 总数 :{{$totalTotalFee}}
- </span>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内总费用</h5>
- </div>
- <div class="ibox-content">
- <div id="totalFeeDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="lis-boxs">
- <div class="titles-boxs">
- <div class="titles-a">
- <img src="/img/kzt-img-02.png" alt="">
- 续费金额
- <span class="times">
- 总数 : {{$totalAvgScore}}
- </span>
- </div>
- </div>
- <div class="col-sm-16">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>三个月内续费金额</h5>
- </div>
- <div class="ibox-content">
- <div id="avgScoreDiff" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-6">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>项目类型饼图</h5>
- </div>
- <div class="ibox-content">
- <div id="siteStatusPie" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- <div class="col-sm-6">
- <div class="ibox float-e-margins">
- <div class="ibox-title" style="border-style: none">
- <h5>项目类型趋势图</h5>
- </div>
- <div class="ibox-content">
- <div id="siteStatus" style="width: 100%;height: 300px;"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- {{--echarts--}}
- <script src="{{asset('js/plugins/echarts/echarts.min.js')}}"></script>
- <script src="{{asset('js/plugins/wonderland/wonderland.js?v=1.3')}}"></script>
- <script>
- /* var units = {
- details: function (type) {
- // console.log(11)
- layer.open({
- type: 2,
- content: ['/admin/bid/site-list/' + type],
- area: ['100%', '80%'],
- title: '详情'
- });
- },
- };*/
- var units = {
- details: function (type, title) {
- tips.page('/admin/bid/site-list/'+type, title);
- },
- };
- //项目情况饼图
- var siteStatusPieChart = echarts.init(document.getElementById('siteStatusPie'),'wonderland');
- var siteStatusPieData = JSON.parse('{!! json_encode($ppcPie['hybrid']) !!}');
- var siteStatusPieName = JSON.parse('{!! json_encode($ppcPie['xAxis']) !!}');
- var siteStatusPieOption = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- left: 'left',
- data: siteStatusPieName
- },
- series: [
- {
- name: '访问来源',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: siteStatusPieData,
- itemStyle: {
- emphasis: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
- }
- ]
- };
- siteStatusPieChart.setOption(siteStatusPieOption);
- // 项目情况折线图
- var siteStatusLineChart = echarts.init(document.getElementById('siteStatus'),'wonderland');
- var siteStatusLineXAxis = JSON.parse('{!! json_encode($feeLine['xAxis']) !!}');
- var siteStatusLineYAix = JSON.parse('{!! json_encode($feeLine['yAxis']) !!}');
- var siteStatusLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['充值金额']
- },
- xAxis: [
- {
- type: 'category',
- data: siteStatusLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '充值金额',
- type: 'line',
- data: siteStatusLineYAix
- }
- ]
- };
- siteStatusLineChart.setOption(siteStatusLineOption);
- // 项目情况折线图
- var ppcDiffLineChart = echarts.init(document.getElementById('ppcDiff'),'wonderland');
- var ppcDiffLineXAxis = JSON.parse('{!! json_encode($ppcDiff['xAxis']) !!}');
- var ppcDiffLineYAix = JSON.parse('{!! json_encode($ppcDiff['yAxis']) !!}');
- var ppcDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['项目数']
- },
- xAxis: [
- {
- type: 'category',
- data: ppcDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '项目数',
- type: 'line',
- data: ppcDiffLineYAix
- }
- ]
- };
- ppcDiffLineChart.setOption(ppcDiffLineOption);
- // 项目情况折线图
- var redPpcDiffLineChart = echarts.init(document.getElementById('redPpcDiff'),'wonderland');
- var redPpcDiffLineXAxis = JSON.parse('{!! json_encode($redPpcDiff['xAxis']) !!}');
- var redPpcDiffLineYAix = JSON.parse('{!! json_encode($redPpcDiff['yAxis']) !!}');
- var redPpcDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['投放数']
- },
- xAxis: [
- {
- type: 'category',
- data: redPpcDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '投放数',
- type: 'line',
- data: redPpcDiffLineYAix
- }
- ]
- };
- redPpcDiffLineChart.setOption(redPpcDiffLineOption);
- // 项目情况折线图
- var grayPpcDiffLineChart = echarts.init(document.getElementById('grayPpcDiff'),'wonderland');
- var grayPpcDiffLineXAxis = JSON.parse('{!! json_encode($grayPpcDiff['xAxis']) !!}');
- var grayPpcDiffLineYAix = JSON.parse('{!! json_encode($grayPpcDiff['yAxis']) !!}');
- var grayPpcDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['待投放数']
- },
- xAxis: [
- {
- type: 'category',
- data: grayPpcDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '待投放数',
- type: 'line',
- data: grayPpcDiffLineYAix
- }
- ]
- };
- grayPpcDiffLineChart.setOption(grayPpcDiffLineOption);
- // 项目情况折线图
- var lineRedPpcDiffLineChart = echarts.init(document.getElementById('lineRedPpcDiff'),'wonderland');
- var lineRedPpcDiffLineXAxis = JSON.parse('{!! json_encode($lineRedPpcDiff['xAxis']) !!}');
- var lineRedPpcDiffLineYAix = JSON.parse('{!! json_encode($lineRedPpcDiff['yAxis']) !!}');
- var lineRedPpcDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['项目暂停数']
- },
- xAxis: [
- {
- type: 'category',
- data: lineRedPpcDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '项目暂停数',
- type: 'line',
- data: lineRedPpcDiffLineYAix
- }
- ]
- };
- lineRedPpcDiffLineChart.setOption(lineRedPpcDiffLineOption);
- // 项目情况折线图
- var renewalNumDiffLineChart = echarts.init(document.getElementById('renewalNumDiff'),'wonderland');
- var renewalNumDiffLineXAxis = JSON.parse('{!! json_encode($renewalNumDiff['xAxis']) !!}');
- var renewalNumDiffLineYAix = JSON.parse('{!! json_encode($renewalNumDiff['yAxis']) !!}');
- var renewalNumDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['续费项目个数']
- },
- xAxis: [
- {
- type: 'category',
- data: renewalNumDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '续费项目个数',
- type: 'line',
- data: renewalNumDiffLineYAix
- }
- ]
- };
- renewalNumDiffLineChart.setOption(renewalNumDiffLineOption);
- // 项目情况折线图
- var renewalRateDiffLineChart = echarts.init(document.getElementById('renewalRateDiff'),'wonderland');
- var renewalRateDiffLineXAxis = JSON.parse('{!! json_encode($renewalRateDiff['xAxis']) !!}');
- var renewalRateDiffLineYAix = JSON.parse('{!! json_encode($renewalRateDiff['yAxis']) !!}');
- var renewalRateDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['续费率']
- },
- xAxis: [
- {
- type: 'category',
- data: renewalRateDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '续费率',
- type: 'line',
- data: renewalRateDiffLineYAix
- }
- ]
- };
- renewalRateDiffLineChart.setOption(renewalRateDiffLineOption);
- // 项目情况折线图
- var totalFeeDiffLineChart = echarts.init(document.getElementById('totalFeeDiff'),'wonderland');
- var totalFeeDiffLineXAxis = JSON.parse('{!! json_encode($totalFeeDiff['xAxis']) !!}');
- var totalFeeDiffLineYAix = JSON.parse('{!! json_encode($totalFeeDiff['yAxis']) !!}');
- var totalFeeDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['费用']
- },
- xAxis: [
- {
- type: 'category',
- data: totalFeeDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '费用',
- type: 'line',
- data: totalFeeDiffLineYAix
- }
- ]
- };
- totalFeeDiffLineChart.setOption(totalFeeDiffLineOption);
- // 项目情况折线图
- var avgScoreDiffLineChart = echarts.init(document.getElementById('avgScoreDiff'),'wonderland');
- var avgScoreDiffLineXAxis = JSON.parse('{!! json_encode($avgScoreDiff['xAxis']) !!}');
- var avgScoreDiffLineYAix = JSON.parse('{!! json_encode($avgScoreDiff['yAxis']) !!}');
- var avgScoreDiffLineOption = {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- crossStyle: {
- color: '#999'
- }
- }
- },
- /* toolbox: {
- feature: {
- dataView: {show: true, readOnly: false},
- magicType: {show: true, type: ['bar', 'pie']},
- restore: {show: true},
- saveAsImage: {show: true}
- }
- },*/
- legend: {
- data: ['续费金额']
- },
- xAxis: [
- {
- type: 'category',
- data: avgScoreDiffLineXAxis,
- axisPointer: {
- type: 'shadow'
- },
- splitLine: {
- show: false
- }
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: '',
- min: 0,
- axisLabel: {
- formatter: '{value}'
- },
- axisLine: {
- show: false //隐藏Y轴
- }
- }
- ],
- series: [
- {
- name: '续费金额',
- type: 'line',
- data: avgScoreDiffLineYAix
- }
- ]
- };
- avgScoreDiffLineChart.setOption(avgScoreDiffLineOption);
- </script>
- @endsection
|