basic_analysis.blade.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. @extends('statistics.module.layouts.content')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. @endpush
  6. @push('js')
  7. <script src="{{ theme_asset('app/js/echarts.common.min.js') }}"></script>
  8. @endpush
  9. @section('content')
  10. <div class="wide container company_basic_warp">
  11. @include('statistics.module.section.left_menu')
  12. <div class="cq_rt index_right">
  13. <div class="inside_timer">@include('statistics.module.section.timer')</div>
  14. <div class="index_summary_two">
  15. <div class="box-cell line">
  16. <div class="line-one">
  17. <div>企业总数<span>{{$all_company_num}}</span></div>
  18. <div>当前企业数量<span class="font-red">{{$current_company_num}}</span></div>
  19. </div>
  20. </div>
  21. <div class="box-cell line">
  22. <div class="line-one">
  23. <div>职位总数<span>{{$all_jobs_num}}</span></div>
  24. <div>当前职位数量<span class="font-red">{{$current_jobs_num}}</span></div>
  25. </div>
  26. </div>
  27. <div class="box-cell">
  28. <div class="line-one">
  29. <div>招聘总人数<span>{{$all_job_amount}}</span></div>
  30. <div>当前招聘人数<span class="font-red">{{$current_job_amount}}</span></div>
  31. </div>
  32. </div>
  33. <div class="clear"></div>
  34. </div>
  35. <div class="char-box c1">
  36. <div class="char-title no-icon">公司性质</div>
  37. <div id="nature" style="width: 100%;height: 275px;"></div>
  38. </div>
  39. <div class="char-box c2">
  40. <div class="char-title no-icon">公司规模</div>
  41. <div id="scale" style="width: 100%;height: 275px;"></div>
  42. </div>
  43. <div class="char-box c3" style="height:435px;">
  44. <div class="char-title no-icon">按行业分布企业数</div>
  45. <div id="industry" style="width: 100%;height: 385px;"></div>
  46. </div>
  47. <div class="clear"></div>
  48. </div>
  49. <div class="clear"></div>
  50. </div>
  51. @endsection
  52. @section('script')
  53. <script type="text/javascript">
  54. var colors = ['#2da1f9','#f9629a','#0063ed','#ff9b19'];
  55. //公司性质
  56. var chartData1 = [];
  57. var chartName1 = [];
  58. @if($nature_data)
  59. @foreach($nature_data as $k=>$v)
  60. chartData1.push("{{$v}}");
  61. chartName1.push("{{$nature_names[$k] or ''}}");
  62. @endforeach
  63. @endif
  64. var myChart1 = echarts.init(document.getElementById('nature'));
  65. myChart1.setOption({
  66. color:colors,
  67. tooltip: {
  68. trigger: 'axis',
  69. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  70. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  71. }
  72. },
  73. grid: {
  74. top: '20',
  75. left: '20',
  76. right: '20',
  77. bottom: '18',
  78. containLabel: true
  79. },
  80. xAxis: [{
  81. type: 'category',
  82. boundaryGap:true,
  83. axisTick:{
  84. alignWithLabel:true
  85. },
  86. axisLabel:{
  87. interval: 0, //坐标轴刻度标签的显示间隔 , 0 强制显示所有标签。
  88. rotate:-45, //刻度标签旋转的角度
  89. margin:10,
  90. textStyle: {
  91. color: '#333333',
  92. fontSize:10
  93. }
  94. },
  95. data: chartName1
  96. }],
  97. yAxis: [{
  98. type: 'value',
  99. name: '',
  100. axisLabel: {
  101. formatter: '{value}'
  102. }
  103. }],
  104. series: [{
  105. type: 'bar',
  106. barMaxWidth: '40',
  107. data: chartData1
  108. }]
  109. });
  110. //公司规模
  111. var chartData2 = [];
  112. var chartName2 = [];
  113. @if($scale_data)
  114. @foreach($scale_data as $k=>$v)
  115. chartData2.push("{{$v}}");
  116. chartName2.push("{{$scale_names[$k] or ''}}");
  117. @endforeach
  118. @endif
  119. var myChart2 = echarts.init(document.getElementById('scale'));
  120. myChart2.setOption({
  121. color:colors,
  122. tooltip: {
  123. trigger: 'axis',
  124. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  125. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  126. }
  127. },
  128. grid: {
  129. top: '20',
  130. left: '20',
  131. right: '20',
  132. bottom: '18',
  133. containLabel: true
  134. },
  135. xAxis: [{
  136. type: 'category',
  137. boundaryGap:true,
  138. axisTick:{
  139. alignWithLabel:true
  140. },
  141. axisLabel:{
  142. interval: 0, //坐标轴刻度标签的显示间隔 , 0 强制显示所有标签。
  143. rotate:-45, //刻度标签旋转的角度
  144. margin:10,
  145. textStyle: {
  146. color: '#333333',
  147. fontSize:10
  148. }
  149. },
  150. data: chartName2
  151. }],
  152. yAxis: [{
  153. type: 'value',
  154. name: '',
  155. axisLabel: {
  156. formatter: '{value}'
  157. }
  158. }],
  159. series: [{
  160. type: 'bar',
  161. barMaxWidth: '40',
  162. data: chartData2
  163. }]
  164. });
  165. //按行业分布企业数
  166. var chartData3 = [];
  167. var chartName3 = [];
  168. @if($trade_data)
  169. @foreach($trade_data as $k=>$v)
  170. chartData3.push("{{$v}}");
  171. chartName3.push("{{$trade_names[$k] or ''}}");
  172. @endforeach
  173. @endif
  174. var myChart3 = echarts.init(document.getElementById('industry'));
  175. myChart3.setOption({
  176. color:'#ff5b82',
  177. tooltip: {
  178. trigger: 'axis',
  179. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  180. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  181. }
  182. },
  183. grid: {
  184. top: '20',
  185. left: '20',
  186. right: '20',
  187. bottom: '10',
  188. containLabel: true
  189. },
  190. xAxis: [{
  191. type: 'category',
  192. boundaryGap:true,
  193. axisTick:{
  194. alignWithLabel:true
  195. },
  196. axisLabel:{
  197. interval: 0, //坐标轴刻度标签的显示间隔 , 0 强制显示所有标签。
  198. rotate:-90, //刻度标签旋转的角度】
  199. margin:10,
  200. textStyle: {
  201. color: '#333333',
  202. fontSize:10
  203. }
  204. },
  205. data:chartName3
  206. }],
  207. yAxis: [{
  208. type: 'value',
  209. name: '',
  210. axisLabel: {
  211. formatter: '{value}'
  212. }
  213. }],
  214. series: [{
  215. type: 'bar',
  216. barMaxWidth: '40',
  217. data: chartData3
  218. }]
  219. });
  220. </script>
  221. @endsection