archive.blade.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. {{-- <input type="text" placeholder="请输入地区" class="input-md form-control"
  41. name="address"
  42. id="address" style="width: 260px;float: right">--}}
  43. <select name="status" id="status" title="" class="form-control"
  44. style="width: 150px;float: right" onchange="tips.selectPage();">
  45. <option value="">请选择项目状态</option>
  46. @foreach(\App\Http\Models\Site::STATUS_MAP as $key=>$item)
  47. @if(!in_array($key,[5,6]))
  48. <option value="{{$key}}">{{$item}}</option>
  49. @endif
  50. @endforeach
  51. </select>
  52. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  53. name="keyword"
  54. id="keyword" style="width: 200px;float: right">
  55. <span class="input-group-btn">
  56. <button type="button" class="btn btn-md btn-primary"
  57. onclick="units.search()"> 搜索</button>
  58. <button type="button" class="btn btn-md" style="margin-left: 10px"
  59. name="btnReset"> 重置</button>
  60. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  61. onclick="units.export()"> 导出</button>
  62. </span>
  63. </span>
  64. </div>
  65. </form>
  66. <hr>
  67. <div class="table-responsive">
  68. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </body>
  76. @endsection
  77. @section('footer')
  78. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  79. <script>
  80. laydate.render({
  81. elem: '#monthRange'
  82. , type: 'month'
  83. , format: 'yyyy-MM'
  84. });
  85. var units = {
  86. export: function () {
  87. var formValues = tips.getFormValues("#searchForm");
  88. var str = $.param(formValues);
  89. window.open('/admin/analyze/index/archive-export?=' + str)
  90. },
  91. selectPage: function () {
  92. tips.selectPage();
  93. },
  94. search: function () {
  95. tips.selectPage();
  96. },
  97. openDetail: function (id, title) {
  98. tips.page('/admin/sites/' + id + '/overview', title);
  99. }
  100. };
  101. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  102. var config = {};
  103. config.url = '/admin/analyze/index/archive';
  104. config.pageSize = 50;
  105. config.showColumns = true;
  106. config.columns = [ //字段
  107. {
  108. title: '序号', align: 'center', formatter: function (value, item, index) {
  109. return index + 1;
  110. },
  111. width: '10px'
  112. },
  113. {title: '地区', field: 'areaText', align: 'center',visible: false},
  114. {title: '公司', field: 'cn_title', align: 'center'},
  115. {title: '项目状态', field: 'status', align: 'center'},
  116. {title: '网站', field: 'domain', align: 'center'},
  117. {title: '关键词指标', field: 'keyword_goal', align: 'center'},
  118. {title: '文章指标', field: 'article_goal', align: 'center'},
  119. {title: '外链指标', field: 'link_goal', align: 'center'},
  120. {title: '合同日期', field: 'sign_at', align: 'center'},
  121. {title: '合同金额', field: 'contract_total_fee', align: 'center'},
  122. {title: '首付款', field: 'head', align: 'center'},
  123. {title: '建站金额', field: 'done', align: 'center'},
  124. /*{title: '达标日期', field: 'reach_at', align: 'center'},*/
  125. {title: '达标金额', field: 'reach', align: 'center'},
  126. {title: '服务期尾款', field: 'service_final_payment', align: 'center'},
  127. {title: '续费次数', field: 'renewal_times', align: 'center'},
  128. {title: '续费金额', field: 'renewal_amount', align: 'center'},
  129. {title: '备注', field: 'remark', align: 'center', visible: false},
  130. {title: '项目销售', field: 'seller_title', align: 'center', visible: false},
  131. {title: '客服经理', field: 'server_title', align: 'center', visible: false},
  132. {title: '项目经理1', field: 'managers_title', align: 'center', visible: false},
  133. {title: '项目经理', field: 'manage_helper_title', align: 'center', visible: false},
  134. {title: '优化师', field: 'optimizerTitle', align: 'center', visible: false},
  135. {title: '优化采编', field: 'optimizerAe', align: 'center', visible: false},
  136. {title: '项目采编', field: 'ae_title', align: 'center', visible: false},
  137. {title: '竞价', field: 'bidTitle', align: 'center', visible: false},
  138. {title: '软文', field: 'articleTitle', align: 'center', visible: false},
  139. {title: '设计', field: 'designerTitle', align: 'center', visible: false},
  140. {title: '前端', field: 'webTitle', align: 'center', visible: false},
  141. /* {title: '合同签订', field: 'sign_at', align: 'center'},
  142. {title: '建站', field: 'buildDay', align: 'center'},
  143. {title: '达标', field: 'reachDay', align: 'center'},*/
  144. {
  145. title: '操作', field: 'id', align: 'center',
  146. formatter: function (value, row) {
  147. var str = '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  148. return str;
  149. }
  150. }
  151. ];
  152. tips.bootstrapTable(config);
  153. </script>
  154. @endsection