123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- @extends('statistics.module.layouts.content')
- @push('meta')
- @endpush
- @push('css')
- @endpush
- @push('js')
- <script src="{{ theme_asset('app/js/echarts.common.min.js') }}"></script>
- @endpush
- @section('content')
- <div class="wide container demand_warp">
- @include('statistics.module.section.left_menu')
- <div class="cq_rt index_right">
- <div class="inside_timer">
- @include('statistics.module.section.timer')
- </div>
- <div class="char-box">
- <div class="char-title no-icon">按年龄分组的供求人数<input type="button" class="export_excel" value="导出为excel"/></div>
- <div id="trend" style="width: 100%;height: 360px;"></div>
- </div>
- <div class="detail-info">
- <div class="table_title">详细数据</div>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th colspan="6" text-aligin="center">{{$date_aprams['start_year']}}年{{$date_aprams['start_month']}}月到{{$date_aprams['end_year']}}年{{$date_aprams['end_month']}}月数据</th>
- </tr>
- <tr>
- <th style="width:25%;border-right:1px solid #cdcdcd;" rowspan="2">年龄</th>
- <th colspan="5">劳动力供求人数比较</th>
- </tr>
- <tr>
- <th style="width:15%;">需求人数</th>
- <th style="width:15%;">需求比重</th>
- <th style="width:15%;">求职人数</th>
- <th style="width:15%;">求职比重</th>
- <th style="width:15%;">求人倍率</th>
- </tr>
- @if($table_data)
- @foreach($table_data as $k=>$v)
- <tr>
- <td>{{$v['name']}}</td>
- <td>{{$v['job_amount']}}</td>
- <td>{{$v['job_rate']}}%</td>
- <td>{{$v['resume_num']}}</td>
- <td>{{$v['resume_rate']}}%</td>
- <td>{{$v['multiple']}}</td>
- </tr>
- @endforeach
- @endif
- </table>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- @endsection
- @section('script')
- <script type="text/javascript">
- var data_name = [];
- var data_jobs = [];
- var data_resumes = [];
- @if($chart_data)
- @foreach($chart_data as $k=>$v)
- data_name.push("{{$v['name']}}");
- data_jobs.push("{{$v['job_amount']}}");
- data_resumes.push("{{$v['resume_num']}}");
- @endforeach
- @endif
- var colors = ['#2da1f9','#f9629a'];
- option = {
- title: [{
- left: '5',
- top: '5',
- text: '趋势图',
- textStyle:{
- color:'#565656',
- fontSize:14,
- fontWeight:'normal'
- }
- }],
- color:colors,
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- legend: {
- data: ['需求人数', '求职人数'],
- align: 'right',
- top:10,
- right: 20,
- itemWidth:18,
- itemHeight:6
- },
- grid: {
- left: '8',
- right: '8',
- bottom: '10',
- containLabel: true
- },
- xAxis: [{
- type: 'category',
- boundaryGap:true,
- axisTick:{
- alignWithLabel:true
- },
- axisLabel:{
- interval: 0, //坐标轴刻度标签的显示间隔 , 0 强制显示所有标签。
- //rotate:-45, //刻度标签旋转的角度
- margin:15,
- textStyle: {
- color: '#333333',
- fontSize:10
- }
- },
- data: data_name
- }],
- yAxis: [{
- type: 'value',
- name: '',
- axisLabel: {
- formatter: '{value}'
- }
- }],
- series: [{
- name: '需求人数',
- type: 'bar',
- barGap: 0,
- data: data_jobs
- }, {
- name: '求职人数',
- type: 'bar',
- data: data_resumes
- }]
- };
- var myChart = echarts.init(document.getElementById('trend'));
- myChart.setOption(option);
- $('.export_excel').click(function(){
- window.location.href="{{route('statistics.demand.age',['isExcel'=>1])}}";
- });
- </script>
- @endsection
|