staff.blade.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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="col-md-8 pull-right">
  40. <select name="roleId" id="sellerId" title="" class="form-control"
  41. style="width: 150px;float: right" onchange="units.selectPage('sellerId');">
  42. <option value="">职位</option>
  43. @foreach($roles as $key=>$item)
  44. <option value="{{$key}}">{{$item}}</option>
  45. @endforeach
  46. </select>
  47. {{--<div class="input-group">--}}
  48. {{--<select name="roleId" id="sellerId" title="" class="form-control"--}}
  49. {{--style="width: 150px;float: right" onchange="units.selectPage('sellerId');">--}}
  50. {{--<option value="">职位</option>--}}
  51. {{--<option value="6">项目经理</option>--}}
  52. {{--<option value="2">采编人员</option>--}}
  53. {{--<option value="26">优化师</option>--}}
  54. {{--</select>--}}
  55. {{--<input type="text" class="form-control" id="monthRange" name="monthRange"--}}
  56. {{--placeholder=" 月份范围 "--}}
  57. {{--style="width: 160px;float: right">--}}
  58. {{--<span class="input-group-btn">--}}
  59. {{--<button type="button" class="btn btn-md btn-primary"--}}
  60. {{--onclick="units.search()"> 搜索</button>--}}
  61. {{--<button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"--}}
  62. {{--name="btnReset"> 重置</button>--}}
  63. {{--</span>--}}
  64. {{--</div>--}}
  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/analyze/staff/index';
  101. config.pageSize = 20;
  102. // config.showColumns = true;
  103. config.columns = [ //字段
  104. {
  105. title: '序号', align: 'center', formatter: function (value, item, index) {
  106. return index + 1;
  107. },
  108. width: '10px'
  109. },
  110. {title: '人员', field: 'nickname', align: 'center'},
  111. {title: '职位', field: 'roleName', align: 'center'},
  112. {title: '总分', field: 'totalScore', align: 'center'},
  113. {title: '建站期', field: 'buildNum', align: 'center', width: '240px'},
  114. {title: '实施期', field: 'impleNum', align: 'center', width: '160px'},
  115. {title: '服务期', field: 'srvNum', align: 'center'},
  116. {title: '设计评分(平均)', field: 'avgDesignScore', align: 'center'},
  117. {title: '上线评分', field: 'avgOnlineScore', align: 'center'},
  118. {title: '达标评分', field: 'avgReachScore', align: 'center'},
  119. // {
  120. // title: '操作', field: 'id', align: 'center',
  121. // formatter: function (value, row) {
  122. //
  123. // var str = '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  124. //
  125. // return str;
  126. //
  127. // }
  128. // }
  129. ];
  130. tips.bootstrapTable(config);
  131. </script>
  132. @endsection