abort.blade.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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="sellerId" id="sellerId" title="" class="form-control"
  41. style="width: 150px;float: right" onchange="units.selectPage();">
  42. <option value="">请选择销售</option>
  43. @foreach($sellerUsers as $item)
  44. <option value="{{$item->id}}">{{$item->nickname}}</option>
  45. @endforeach
  46. </select>
  47. <select name="serverId" id="serverId" title="" class="form-control"
  48. style="width: 150px;float: right" onchange="units.selectPage();">
  49. <option value="">请选择客服</option>
  50. @foreach($services as $item)
  51. <option value="{{$item->id}}">{{$item->nickname}}</option>
  52. @endforeach
  53. </select>
  54. <select name="refund_reason_analyze" id="refund_reason_analyze" title=""
  55. class="form-control"
  56. style="width: 150px;float: right" onchange="tips.selectPage();">
  57. <option value="0">请选择退款原因</option>
  58. <option value="1">建站期太长</option>
  59. <option value="2">客户原因</option>
  60. <option value="3">客户原因/未启动</option>
  61. <option value="4">实施期中止</option>
  62. <option value="5">主动终止</option>
  63. </select>
  64. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  65. name="keyword"
  66. id="keyword" style="width: 200px;float: right">
  67. <span class="input-group-btn">
  68. <button type="button" class="btn btn-md btn-primary"
  69. onclick="units.search()"> 搜索</button>
  70. <button type="button" class="btn btn-md" style="margin-left: 10px"
  71. name="btnReset"> 重置</button>
  72. {{--<button type="button" class="btn btn-md btn-primary" style="margin-left: 10px" onclick="units.export()"> 导出</button>--}}
  73. </span>
  74. </div>
  75. </form>
  76. <hr>
  77. <div class="table-responsive">
  78. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </body>
  86. @endsection
  87. @section('footer')
  88. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  89. <script>
  90. laydate.render({
  91. elem: '#monthRange'
  92. , type: 'month'
  93. , format: 'yyyy-MM'
  94. });
  95. var units = {
  96. export: function () {
  97. var formValues = tips.getFormValues("#searchForm");
  98. var str = $.param(formValues);
  99. window.open('/admin/analyze/index/reach-export?=' + str)
  100. },
  101. selectPage: function () {
  102. tips.selectPage();
  103. },
  104. search: function () {
  105. tips.selectPage();
  106. },
  107. openDetail: function (id, title) {
  108. tips.page('/admin/sites/' + id + '/overview', title);
  109. }
  110. };
  111. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  112. var config = {};
  113. config.url = '/admin/analyze/index/abort';
  114. config.pageSize = 50;
  115. config.showColumns = true;
  116. config.columns = [ //字段
  117. {
  118. title: '序号', align: 'center', formatter: function (value, item, index) {
  119. return index + 1;
  120. },
  121. width: '10px'
  122. },
  123. {title: '公司', field: 'cn_title', align: 'center'},
  124. {title: '项目状态', field: 'status', align: 'center'},
  125. {title: '网站', field: 'domain', align: 'center', width: '240px'},
  126. {title: '下单时间', field: 'order_at', align: 'center'},
  127. {title: '上线时间', field: 'online_at', align: 'center'},
  128. {title: '过期时间', field: 'expired_at', align: 'center'},
  129. {title: '关键词指标', field: 'keyword_goal', align: 'center'},
  130. {title: '实际达标关键词', field: 'top10', align: 'center'},
  131. {title: '月流量', field: 'traffic', align: 'center'},
  132. {title: '询盘总数', field: 'inquire', align: 'center'},
  133. {title: '终止原因分析', field: 'refundReasonAnalyze', align: 'center'},
  134. {
  135. title: '操作', field: 'id', align: 'center',
  136. formatter: function (value, row) {
  137. return '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  138. }
  139. }
  140. ];
  141. tips.bootstrapTable(config);
  142. </script>
  143. @endsection