optimization_personnel.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. <body class="gray-bg">
  32. <div class="wrapper wrapper-content animated fadeInRight">
  33. <div class="row">
  34. <div class="col-sm-12">
  35. <div class="ibox float-e-margins">
  36. <div class="ibox-content">
  37. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  38. <div class="input-group">
  39. <select name="optimizationEditingId" id="optimizationEditingId" title=""
  40. 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==\App\Http\Models\Role::TYPE_OPTIMIZATION_EDITING)
  46. <option value="{{$item->id}}">{{$item->nickname}}</option>
  47. @endif
  48. @endforeach
  49. </select>
  50. <select name="optimizationId" id="optimizationId" 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==\App\Http\Models\Role::TYPE_OPTIMIZER)
  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>
  80. var units = {
  81. selectPage: function () {
  82. tips.selectPage();
  83. },
  84. search: function () {
  85. tips.selectPage();
  86. },
  87. openDetail: function (id, title) {
  88. tips.page('/admin/sites/' + id + '/overview', title);
  89. }
  90. };
  91. var config = {};
  92. config.url = '/admin/flow/optimizationPersonnel';
  93. config.pageSize = 50;
  94. config.columns = [ //字段
  95. {
  96. title: '序号', align: 'center', formatter: function (value, item, index) {
  97. return index + 1;
  98. },
  99. },
  100. {title: '姓名', field: 'nickname', align: 'center'},
  101. {title: '职位', field: 'role', align: 'center'},
  102. {title: '项目总数', field: 'count', align: 'center'},
  103. {title: '实施期个数', field: 'implementCount', align: 'center'},
  104. {title: '服务期个数', field: 'serverCount', align: 'center'},
  105. {title: '年度达标数', field: 'reachCount', align: 'center'},
  106. {title: '年度续费数', field: 'renewalCount', align: 'center'},
  107. ];
  108. tips.bootstrapTable(config);
  109. </script>
  110. @endsection