sales.blade.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @extends('admin/layout')
  2. @section('header')
  3. @endsection
  4. @section('content')
  5. {{--@php $authUser=auth()->user() @endphp--}}
  6. <body class="gray-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight">
  8. <div class="row">
  9. <div class="col-sm-12">
  10. <div class="ibox float-e-margins">
  11. <div class="ibox-content">
  12. <div class="table-responsive">
  13. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </body>
  21. @endsection
  22. @section('footer')
  23. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  24. <script>
  25. laydate.render({
  26. elem: '#monthRange'
  27. , type: 'month'
  28. // , range: '→'
  29. , format: 'yyyy-MM'
  30. });
  31. var units = {
  32. selectPage: function () {
  33. tips.selectPage();
  34. },
  35. search: function () {
  36. tips.selectPage();
  37. },
  38. openDetail: function (id, title) {
  39. tips.page('/admin/sites/' + id + '/overview', title);
  40. }
  41. };
  42. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  43. var config = {};
  44. config.url = '/admin/analyze/staff/sales';
  45. config.pageSize = 20;
  46. // config.showColumns = true;
  47. config.columns = [ //字段
  48. {
  49. title: '序号', align: 'center', formatter: function (value, item, index) {
  50. return index + 1;
  51. },
  52. width: '10px'
  53. },
  54. {title: '人员', field: 'nickname', align: 'center'},
  55. {title: '总数', field: 'sitesCount', align: 'center'},
  56. {title: '建站期', field: 'buildStation', align: 'center'},
  57. {title: '实施期', field: 'implement', align: 'center', width: '240px'},
  58. {title: '服务期', field: 'service', align: 'center', width: '160px'},
  59. {title: '暂停', field: 'pause', align: 'center'},
  60. {title: '终止/未续费', field: 'termination', align: 'center'},
  61. {title: '网站续费', field: 'renew', align: 'center'},
  62. ];
  63. tips.bootstrapTable(config);
  64. </script>
  65. @endsection