abnormal2.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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="sellerId" id="sellerId" title="" class="form-control"
  44. style="width: 150px;float: right" onchange="units.selectPage();">
  45. <option value="">请选择销售</option>
  46. @foreach($sellerUsers as $item)
  47. <option value="{{$item->id}}">{{$item->nickname}}</option>
  48. @endforeach
  49. </select>
  50. <select name="serverId" id="serverId" title="" class="form-control"
  51. style="width: 150px;float: right" onchange="units.selectPage();">
  52. <option value="">请选择客服</option>
  53. @foreach($services as $item)
  54. <option value="{{$item->id}}">{{$item->nickname}}</option>
  55. @endforeach
  56. </select>
  57. <select name="optimizerId" id="optimizerId" title="" class="form-control"
  58. style="width: 150px;float: right"
  59. onchange="units.selectPage();">
  60. <option value="">请选择优化组长</option>
  61. @foreach($optimizers as $item)
  62. <option value="{{$item->id}}">{{$item->nickname}}</option>
  63. @endforeach
  64. </select>
  65. <select name="manageHelperId" id="manageHelperId" title="" class="form-control"
  66. style="width: 150px;float: right"
  67. onchange="units.selectPage();">
  68. <option value="">请选择项目经理</option>
  69. @foreach($managerHelpers 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. selectPage: function () {
  106. tips.selectPage();
  107. },
  108. search: function () {
  109. tips.selectPage();
  110. },
  111. openDetail: function (id, title) {
  112. // parent.layerLoad();
  113. tips.page('/admin/sites/' + id + '/overview', title);
  114. }
  115. };
  116. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  117. var config = {};
  118. config.url = '/admin/analyze/index/abnormal2';
  119. config.pageSize = 150;
  120. config.showColumns = true;
  121. config.paginationDetailHAlign = 'right';
  122. config.columns = [ //字段
  123. {
  124. title: '序号', align: 'center', formatter: function (value, item, index) {
  125. return index + 1;
  126. },
  127. width: '10px'
  128. },
  129. {title: '公司', field: 'cn_title', align: 'center', width: '260px'},
  130. {title: '网站', field: 'domain', align: 'center', width: '240px'},
  131. {title: '下单时间', field: 'order_at', align: 'center', width: '120px'},
  132. {title: '上线时间', field: 'online_at', align: 'center', width: '120px'},
  133. {title: '项目阶段', field: 'statusTitle', align: 'center'},
  134. {title: '首页关键词下降', field: 'keywordDropResults', align: 'center'},
  135. //关键词下降超过且未达标指数
  136. // {title: '关键词未达标数', field: 'top10NoReach', align: 'center'},
  137. {title: '销售', field: 'seller_title', align: 'center'},
  138. {title: '客服', field: 'server_title', align: 'center'},
  139. {title: '项目经理', field: 'manage_helper_title', align: 'center', visible: false},
  140. {title: '优化组长', field: 'optimizerTitle', align: 'center', visible: false},
  141. {title: '建站采编', field: 'ae_title', align: 'center', visible: false},
  142. {
  143. title: '操作', field: 'id', align: 'center',
  144. formatter: function (value, row) {
  145. return '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  146. }
  147. }
  148. ];
  149. tips.bootstrapTable(config);
  150. </script>
  151. @endsection