renewal.blade.php 10 KB

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