monitor_link.blade.php 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  4. <style>
  5. .table-striped > tbody > tr:nth-of-type(odd) {
  6. background: #f8f8f8 !important;
  7. }
  8. .table-striped > tbody > tr .btn {
  9. background: none !important;
  10. }
  11. .table-striped > tbody > tr td {
  12. font-size: 14px !important;
  13. }
  14. .table-striped > tbody > tr:hover {
  15. background: #ffebd8 !important;
  16. }
  17. .table-striped > tbody > tr:hover .btn {
  18. background: #1AB394 !important;
  19. color: #fff !important;
  20. }
  21. .table-striped > tbody > tr:hover .btn .glyphicon {
  22. color: #fff !important;
  23. }
  24. </style>
  25. @endsection
  26. @section('content')
  27. @php $authUser=auth()->user() @endphp
  28. <body class="gray-bg">
  29. <div class="wrapper wrapper-content animated fadeInRight">
  30. <div class="row">
  31. <div class="col-sm-12">
  32. <div class="ibox float-e-margins">
  33. <div class="ibox-content">
  34. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  35. <div class="input-group">
  36. <select name="completionThisMonth" id="completionThisMonth" class="form-control"
  37. style="width: 150px;float: right" onchange="units.selectPage();">
  38. <option value="0">请选择本月完成情况</option>
  39. <option value="1">未完成</option>
  40. <option value="2">未满50条</option>
  41. <option value="3">未满70条</option>
  42. <option value="4">70条以上</option>
  43. </select>
  44. <select name="completionLastMonth" id="completionLastMonth" class="form-control"
  45. style="width: 150px;float: right" onchange="units.selectPage();">
  46. <option value="0">请选择上月完成情况</option>
  47. <option value="1">未完成</option>
  48. <option value="2">未满50条</option>
  49. <option value="3">未满70条</option>
  50. <option value="4">70条以上</option>
  51. </select>
  52. <select name="optimizerEditingId" id="optimizerEditingId" class="form-control"
  53. style="width: 150px;float: right"
  54. onchange="units.selectPage();">
  55. <option value="">请选择优化师/优化采编</option>
  56. @foreach($optimizerEditing as $item)
  57. <option value="{{$item->id}}">{{$item->nickname}}</option>
  58. @endforeach
  59. </select>
  60. <select name="optimizerId" id="optimizerId" class="form-control"
  61. style="width: 150px;float: right"
  62. onchange="units.selectPage();">
  63. <option value="">请选择优化组长</option>
  64. @foreach($optimizers as $item)
  65. <option value="{{$item->id}}">{{$item->nickname}}</option>
  66. @endforeach
  67. </select>
  68. <select name="chongqingLinkId" id="chongqingLinkId" class="form-control"
  69. style="width: 150px;float: right"
  70. onchange="units.selectPage();">
  71. <option value="">请选择重庆外链人员</option>
  72. @foreach($chongqingLink as $item)
  73. <option value="{{$item->id}}">{{$item->nickname}}</option>
  74. @endforeach
  75. </select>
  76. <select name="serverId" id="serverId" class="form-control"
  77. style="width: 150px;float: right" onchange="units.selectPage();">
  78. <option value="">请选择客服</option>
  79. @foreach($services as $item)
  80. <option value="{{$item->id}}">{{$item->nickname}}</option>
  81. @endforeach
  82. </select>
  83. <select name="siteStatus" id="siteStatus" class="form-control"
  84. style="width: 150px;float: right" onchange="units.selectPage();">
  85. <option value="">请选择项目阶段</option>
  86. @foreach($sitesStatus as $inx=>$item)
  87. @if(in_array($inx,[2,3]))
  88. <option value="{{$inx}}">{{$item}}</option>
  89. @endif
  90. @endforeach
  91. </select>
  92. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  93. name="keyword"
  94. id="keyword" style="width: 200px;float: right">
  95. <span class="input-group-btn">
  96. <button type="button" class="btn btn-md btn-primary"
  97. onclick="units.search()" style="border-radius:2px;"> 搜索</button>
  98. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px;border-radius:2px;"
  99. name="btnReset"> 重置</button>
  100. </span>
  101. </div>
  102. </form>
  103. <hr>
  104. <div class="table-responsive">
  105. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </body>
  113. @endsection
  114. @section('footer')
  115. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  116. <script>
  117. var units = {
  118. selectPage: function () {
  119. tips.selectPage();
  120. },
  121. search: function () {
  122. tips.selectPage();
  123. },
  124. openDetail: function (id, title) {
  125. tips.page('/admin/sites/' + id + '/overview', title);
  126. }
  127. };
  128. var config = {};
  129. config.url = '/admin/analyze/index/monitor_link';
  130. config.pageSize = 20;
  131. config.showColumns = true;
  132. config.columns = [
  133. {
  134. title: '序号', align: 'center', formatter: function (value, item, index) {
  135. return index + 1;
  136. }
  137. },
  138. {title: '公司', field: 'cn_title', align: 'center'},
  139. {title: '网站', field: 'domain', align: 'center'},
  140. {title: '项目阶段', field: 'site_status', align: 'center'},
  141. {title: '外链指标', field: 'link_goal', align: 'center', sortable: true},
  142. {title: '外链完成量-域数', field: 'link_pact_count', align: 'center', sortable: true},
  143. {title: '外链完成量-条数', field: 'link_urls', align: 'center', sortable: true},
  144. {title: '上月外链条数', field: 'publish_last_month', align: 'center', sortable: true},
  145. {title: '本月外链条数', field: 'publish_this_month', align: 'center', sortable: true},
  146. {title: '客服', field: 'server', align: 'center'},
  147. {title: '重庆外链人员', field: 'chongqingLink', align: 'center'},
  148. {title: '优化组长', field: 'optimizer', align: 'center'},
  149. {title: '优化师/优化采编', field: 'optimizerEditing', align: 'center'},
  150. {title: '更新时间', field: 'created_at', align: 'center'}
  151. ];
  152. tips.bootstrapTable(config);
  153. </script>
  154. @endsection