project_personnel_statistics.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  4. <style>
  5. .btn-danger, .btn-primary, .btn-info {
  6. background: #2a94e0 !important;
  7. border-color: #2a94e0 !important;
  8. }
  9. .table-striped > tbody > tr:nth-of-type(odd) {
  10. background: #f8f8f8 !important;
  11. }
  12. .table-striped > tbody > tr .btn {
  13. background: none !important;
  14. }
  15. .table-striped > tbody > tr td {
  16. font-size: 14px !important;
  17. }
  18. .table-striped > tbody > tr:hover {
  19. background: #ffebd8 !important;
  20. }
  21. .table-striped > tbody > tr:hover .btn {
  22. background: #2a94e0 !important;
  23. color: #fff !important;
  24. }
  25. .table-striped > tbody > tr:hover .btn .glyphicon {
  26. color: #fff !important;
  27. }
  28. </style>
  29. @endsection
  30. @section('content')
  31. {{--@php $authUser=auth()->user() @endphp--}}
  32. <body class="gray-bg">
  33. <div class="wrapper wrapper-content animated fadeInRight">
  34. <div class="row">
  35. <div class="col-sm-12">
  36. <div class="ibox float-e-margins">
  37. <div class="ibox-content">
  38. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  39. <div class="input-group">
  40. <select name="projectManagerId" id="projectManagerId" title="" class="form-control"
  41. style="width: 150px;float: right" onchange="units.selectPage();">
  42. <option value="">请选择项目经理</option>
  43. <option value="-1">所有项目经理</option>
  44. @foreach($roles as $key=>$item)
  45. @if($item->role_id==25)
  46. <option value="{{$item->id}}">{{$item->nickname}}</option>
  47. @endif
  48. @endforeach
  49. </select>
  50. <select name="editingId" id="editingId" title="" class="form-control"
  51. style="width: 150px;float: right" onchange="units.selectPage();">
  52. <option value="">请选择建站采编</option>
  53. <option value="-1">所有建站采编</option>
  54. @foreach($roles as $key=>$item)
  55. @if($item->role_id==2)
  56. <option value="{{$item->id}}">{{$item->nickname}}</option>
  57. @endif
  58. @endforeach
  59. </select>
  60. <span class="input-group-btn">
  61. <button type="button" class="btn btn-md btn-primary"
  62. onclick="units.search()"> 搜索</button>
  63. <button type="button" class="btn btn-md" style="margin-left: 10px"
  64. name="btnReset"> 重置</button>
  65. </div>
  66. </form>
  67. <hr>
  68. <div class="table-responsive">
  69. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </body>
  77. @endsection
  78. @section('footer')
  79. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  80. <script>
  81. laydate.render({
  82. elem: '#monthRange'
  83. , type: 'month'
  84. // , range: '→'
  85. , format: 'yyyy-MM'
  86. });
  87. var units = {
  88. selectPage: function () {
  89. tips.selectPage();
  90. },
  91. search: function () {
  92. tips.selectPage();
  93. },
  94. openDetail: function (id, title) {
  95. tips.page('/admin/sites/' + id + '/overview', title);
  96. }
  97. };
  98. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  99. var config = {};
  100. config.url = '/admin/flow/projectPersonnelStatistics';
  101. config.pageSize = 50;
  102. config.columns = [ //字段
  103. {
  104. title: '序号', align: 'center', formatter: function (value, item, index) {
  105. return index + 1;
  106. },
  107. width: '10px'
  108. },
  109. {title: '姓名', field: 'nickname', align: 'center'},
  110. {title: '职位', field: 'role', align: 'center'},
  111. {title: '建站期项目个数', field: 'sites_count', align: 'center'},
  112. {title: '本年度上线项目个数', field: 'sites_online', align: 'center'},
  113. ];
  114. tips.bootstrapTable(config);
  115. </script>
  116. @endsection