abnormal.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. .pull-right.pagination-detail {
  29. display: none;
  30. }
  31. </style>
  32. @endsection
  33. @section('content')
  34. @php $authUser=auth()->user() @endphp
  35. <body class="gray-bg">
  36. <div class="wrapper wrapper-content animated fadeInRight">
  37. <div class="row">
  38. <div class="col-sm-12">
  39. <div class="ibox float-e-margins">
  40. <div class="ibox-content">
  41. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  42. <div class="input-group">
  43. <select name="optimizerId" id="optimizerId" title="" class="form-control"
  44. style="width: 150px;float: right"
  45. onchange="units.search();">
  46. <option value="">请选择优化组长</option>
  47. @foreach($optimizers as $item)
  48. <option value="{{$item->id}}">{{$item->nickname}}</option>
  49. @endforeach
  50. </select>
  51. <select name="manageHelperId" id="manageHelperId" title="" class="form-control"
  52. style="width: 150px;float: right"
  53. onchange="units.search();">
  54. <option value="">请选择项目经理</option>
  55. @foreach($managerHelpers as $item)
  56. <option value="{{$item->id}}">{{$item->nickname}}</option>
  57. @endforeach
  58. </select>
  59. <select name="sellerId" id="sellerId" title="" class="form-control"
  60. style="width: 150px;float: right" onchange="units.search();">
  61. <option value="">请选择销售</option>
  62. @foreach($sellerUsers as $item)
  63. <option value="{{$item->id}}">{{$item->nickname}}</option>
  64. @endforeach
  65. </select>
  66. <select name="serverId" id="serverId" title="" class="form-control"
  67. style="width: 150px;float: right" onchange="units.search();">
  68. <option value="">请选择客服</option>
  69. @foreach($services as $item)
  70. <option value="{{$item->id}}">{{$item->nickname}}</option>
  71. @endforeach
  72. </select>
  73. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  74. name="keyword"
  75. id="keyword" style="width: 200px;float: right">
  76. <span class="input-group-btn">
  77. <button type="button" class="btn btn-md btn-primary"
  78. onclick="units.search()"> 搜索</button>
  79. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  80. name="btnReset"> 重置</button>
  81. </span>
  82. </div>
  83. </form>
  84. <hr>
  85. <div class="table-responsive">
  86. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </body>
  94. @endsection
  95. @section('footer')
  96. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  97. <script>
  98. laydate.render({
  99. elem: '#monthRange'
  100. , type: 'month'
  101. , range: '→'
  102. , format: 'yyyy-MM'
  103. });
  104. var units = {
  105. search: function () {
  106. tips.selectPage();
  107. },
  108. openDetail: function (id, title) {
  109. // parent.layerLoad();
  110. tips.page('/admin/sites/' + id + '/overview', title);
  111. }
  112. };
  113. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  114. var config = {};
  115. config.url = '/admin/analyze/index/abnormal';
  116. config.pageSize = 150;
  117. config.showColumns = true;
  118. config.paginationDetailHAlign = 'right';
  119. config.columns = [ //字段
  120. {
  121. title: '序号', align: 'center', formatter: function (value, item, index) {
  122. return index + 1;
  123. },
  124. width: '10px'
  125. },
  126. {title: '公司', field: 'cn_title', align: 'center', width: '260px'},
  127. {title: '网站', field: 'domain', align: 'center', width: '240px'},
  128. {title: '下单时间', field: 'order_at', align: 'center', width: '120px'},
  129. {title: '上线时间', field: 'online_at', align: 'center', width: '120px'},
  130. {title: '项目阶段', field: 'statusTitle', align: 'center'},
  131. {title: '流量下降', field: 'clicksDropResults', align: 'center'},
  132. // {title: '首页关键词下降', field: 'keywordDropResults', align: 'center'},
  133. // //关键词下降超过且未达标指数
  134. // {title: '关键词未达标数', field: 'top10NoReach', align: 'center'},
  135. {title: '销售', field: 'seller_title', align: 'center'},
  136. {title: '客服', field: 'server_title', align: 'center'},
  137. /*{title: '项目经理', field: 'managers_title', align: 'center', visible: false},*/
  138. {title: '项目经理', field: 'manage_helper_title', align: 'center', visible: false},
  139. {title: '优化组长', field: 'optimizerTitle', align: 'center', visible: false},
  140. {title: '建站采编', field: 'ae_title', align: 'center', visible: false},
  141. {
  142. title: '操作', field: 'id', align: 'center',
  143. formatter: function (value, row) {
  144. return '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  145. }
  146. }
  147. ];
  148. tips.bootstrapTable(config);
  149. </script>
  150. @endsection