online.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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="webId" id="webId" title="" class="form-control"
  41. style="width: 150px;float: right" onchange="units.selectPage();">
  42. <option value="">请选择前端</option>
  43. @foreach($webs as $item)
  44. <option value="{{$item->id}}">{{$item->nickname}}</option>
  45. @endforeach
  46. </select>
  47. <select name="designId" id="designId" title="" class="form-control"
  48. style="width: 150px;float: right" onchange="units.selectPage();">
  49. <option value="">请选择设计</option>
  50. @foreach($design as $item)
  51. <option value="{{$item->id}}">{{$item->nickname}}</option>
  52. @endforeach
  53. </select>
  54. <select name="optimizerAeId" id="optimizerAeId" title="" class="form-control"
  55. style="width: 150px;float: right" onchange="units.selectPage();">
  56. <option value="">请选择优化师/优化采编</option>
  57. @foreach($optimizerAes as $item)
  58. <option value="{{$item->id}}">{{$item->nickname}}</option>
  59. @endforeach
  60. </select>
  61. <select name="optimizerId" id="optimizerId" title="" class="form-control"
  62. style="width: 150px;float: right"
  63. onchange="units.selectPage();">
  64. <option value="">请选择优化组长</option>
  65. @foreach($optimizers as $item)
  66. <option value="{{$item->id}}">{{$item->nickname}}</option>
  67. @endforeach
  68. </select>
  69. <select name="editorId" id="editorId" title="" class="form-control"
  70. style="width: 150px;float: right" onchange="units.selectPage();">
  71. <option value="">请选择建站采编</option>
  72. @foreach($editors as $item)
  73. <option value="{{$item->id}}">{{$item->nickname}}</option>
  74. @endforeach
  75. </select>
  76. <select name="manageHelperId" id="manageHelperId" title="" class="form-control"
  77. style="width: 150px;float: right"
  78. onchange="units.selectPage();">
  79. <option value="">请选择项目经理</option>
  80. @foreach($managerHelpers as $item)
  81. <option value="{{$item->id}}">{{$item->nickname}}</option>
  82. @endforeach
  83. </select>
  84. <select name="sellerId" id="sellerId" title="" class="form-control"
  85. style="width: 150px;float: right" onchange="units.selectPage();">
  86. <option value="">请选择销售</option>
  87. @foreach($sellerUsers as $item)
  88. <option value="{{$item->id}}">{{$item->nickname}}</option>
  89. @endforeach
  90. </select>
  91. <select name="serverId" id="serverId" title="" class="form-control"
  92. style="width: 150px;float: right" onchange="units.selectPage();">
  93. <option value="">请选择客服</option>
  94. @foreach($services as $item)
  95. <option value="{{$item->id}}">{{$item->nickname}}</option>
  96. @endforeach
  97. </select>
  98. <div class="input-group" style="width: 150px;float: right">
  99. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  100. <input type="text" class="form-control lay-datetime" id="monthRange"
  101. name="endDate" placeholder="请选择上线截止时间" style="width: 150px">
  102. </div>
  103. <div class="input-group" style="width: 150px;float: right">
  104. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  105. <input type="text" class="form-control lay-datetime" id="monthRange2"
  106. name="startDate" placeholder="请选择上线起始时间" style="width: 150px">
  107. </div>
  108. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  109. name="keyword"
  110. id="keyword" style="width: 200px;float: right">
  111. <span class="input-group-btn">
  112. <button type="button" class="btn btn-md btn-primary"
  113. onclick="units.search()"> 搜索</button>
  114. <button type="button" class="btn btn-md" style="margin-left: 10px"
  115. name="btnReset"> 重置</button>
  116. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  117. onclick="units.export()"> 导出</button>
  118. </span>
  119. </div>
  120. </form>
  121. <hr>
  122. <div class="table-responsive">
  123. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </body>
  131. @endsection
  132. @section('footer')
  133. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  134. <script>
  135. laydate.render({
  136. elem: '#monthRange'
  137. , type: 'month'
  138. , format: 'yyyy-MM'
  139. });
  140. laydate.render({
  141. elem: '#monthRange2'
  142. , type: 'month'
  143. , format: 'yyyy-MM'
  144. });
  145. var units = {
  146. export: function () {
  147. var formValues = tips.getFormValues("#searchForm");
  148. var str = $.param(formValues);
  149. window.open('/admin/analyze/index/online-export?=' + str)
  150. },
  151. selectPage: function () {
  152. tips.selectPage();
  153. },
  154. search: function () {
  155. tips.selectPage();
  156. },
  157. openDetail: function (id, title) {
  158. tips.page('/admin/sites/' + id + '/overview', title);
  159. }
  160. };
  161. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  162. var config = {};
  163. config.url = '/admin/analyze/index/online';
  164. config.pageSize = 20;
  165. config.showColumns = true;
  166. config.columns = [ //字段
  167. {
  168. title: '序号', align: 'center', formatter: function (value, item, index) {
  169. return index + 1;
  170. },
  171. width: '10px'
  172. },
  173. {title: '上线时间', field: 'online_at', align: 'center', sortable: true},
  174. {title: '公司', field: 'cn_title', align: 'center'},
  175. {title: '网站', field: 'domain', align: 'center'},
  176. {title: '关键词指标', field: 'keyword_goal', align: 'center'},
  177. {title: '建站时长', field: 'online_days', align: 'center'},
  178. {title: '销售', field: 'seller_title', align: 'center'},
  179. {title: '客服', field: 'server_title', align: 'center'},
  180. {title: '项目经理', field: 'manage_helper_title', align: 'center'},
  181. {title: '优化组长', field: 'optimizerTitle', align: 'center'},
  182. {title: '优化师/优化采编', field: 'optimizerAe', align: 'center'},
  183. {title: '建站采编', field: 'ae', align: 'center'},
  184. {title: '竞价', field: 'bidTitle', align: 'center', visible: false},
  185. {title: '软文', field: 'articleTitle', align: 'center', visible: false},
  186. {title: '设计', field: 'designerTitle', align: 'center'},
  187. {title: '前端', field: 'web', align: 'center'},
  188. {title: '合同签订时间', field: 'sign_at', align: 'center', visible: false},
  189. {title: '下单时间', field: 'order_at', align: 'center', visible: false},
  190. {title: '分配时间', field: 'assign_at', align: 'center'},
  191. /*{title: '上线时间', field: 'online_at', align: 'center', visible: false},*/
  192. {title: '达标时间', field: 'reach_at', align: 'center', visible: false},
  193. {title: '过期时间', field: 'expired_at', align: 'center', visible: false},
  194. {title: '百千约访时间', field: 'bq_at', align: 'center', visible: false},
  195. {title: '续费次数', field: 'renewal_times', align: 'center', visible: false},
  196. {title: '续费时间', field: 'renewal_at', align: 'center', visible: false},
  197. // {title: '评分', field: 'score', align: 'center'},
  198. {
  199. title: '操作', field: 'id', align: 'center',
  200. formatter: function (value, row) {
  201. return '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  202. }
  203. }
  204. ];
  205. tips.bootstrapTable(config);
  206. </script>
  207. @endsection