propaganda.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. @extends('admin/layout')
  2. <style>
  3. .btn-danger, .btn-primary, .btn-info {
  4. background: #009688 !important;
  5. border-color: #009688 !important;
  6. }
  7. .table-striped > tbody > tr:nth-of-type(odd) {
  8. background: #f8f8f8 !important;
  9. }
  10. .table-striped > tbody > tr .btn {
  11. background: none !important;
  12. }
  13. .table-striped > tbody > tr td {
  14. font-size: 14px !important;
  15. }
  16. .table-striped > tbody > tr:hover {
  17. background: #ffebd8 !important;
  18. }
  19. .table-striped > tbody > tr:hover .btn {
  20. background: #009688 !important;
  21. color: #fff !important;
  22. }
  23. .table-striped > tbody > tr:hover .btn .glyphicon {
  24. color: #fff !important;
  25. }
  26. .linkUnUpdate {
  27. border: 1px solid red;
  28. }
  29. .articleUnUpdate {
  30. border: 1px solid red;
  31. }
  32. .reachGoal {
  33. border: 1px solid green;
  34. }
  35. .socialFail{
  36. border: 1px solid brown;
  37. }
  38. .qus-boxs{
  39. display: inline-block;
  40. position: relative;
  41. margin-left: 4px
  42. }
  43. .qus-boxs:after{
  44. content: '';
  45. display: block;
  46. width: 8px;
  47. height: 8px;
  48. border-radius: 6px;
  49. background: #fff;
  50. position: absolute;
  51. bottom: 30px;
  52. left: 100%;
  53. z-index: -1;
  54. }
  55. .qus-boxs .qus-texts{
  56. display: block;
  57. width: auto;
  58. position: absolute;
  59. bottom: 30px;
  60. left: 100%;
  61. background: #fff;
  62. border: 1px solid #e6e6e6;
  63. font-size: 12px;
  64. padding: 5px 10px;
  65. text-align: left;
  66. opacity: 0;
  67. border-radius: 6px;
  68. z-index: -1;
  69. }
  70. .qus-boxs .qus-texts:before{
  71. content: '';
  72. display: block;
  73. width: 15px;
  74. height: 1px;
  75. background: #fff;
  76. transform: rotate(-70deg);
  77. position: absolute;
  78. left: -11px;
  79. bottom: -2px;
  80. }
  81. .qus-boxs .qus-texts:after{
  82. content: '';
  83. display: block;
  84. width: 15px;
  85. height: 1px;
  86. background: #fff;
  87. transform: rotate(-40deg);
  88. position: absolute;
  89. left: -8px;
  90. bottom: -5px;
  91. }
  92. </style>
  93. @section('content')
  94. <body class="gray-bg">
  95. <div class="wrapper wrapper-content animated fadeInRight">
  96. <div class="row">
  97. <div class="col-sm-12">
  98. <div class="ibox float-e-margins">
  99. <div class="ibox-content">
  100. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  101. <div class="col-md-6 pull-right">
  102. <div class="input-group">
  103. <select name="status" id="status" title="" class="form-control"
  104. style="width: 150px;float: right" onchange="tips.selectPage();">
  105. <option value="">请选择项目状态</option>
  106. @foreach(\App\Http\Models\Site::STATUS_MAP as $key=>$item)
  107. @if(in_array($key,[2,3]))
  108. <option value="{{$key}}">{{$item}}</option>
  109. @endif
  110. @endforeach
  111. </select>
  112. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  113. name="keyword"
  114. id="keyword" style="width: 300px;float: right">
  115. <span class="input-group-btn">
  116. <button type="button" class="btn btn-md btn-primary"
  117. onclick="units.search()"> 搜索</button>
  118. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  119. name="btnReset"> 重置</button> </span>
  120. </div>
  121. </div>
  122. </form>
  123. <hr>
  124. <div class="table-responsive">
  125. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </body>
  133. @endsection
  134. @section('footer')
  135. <script>
  136. var units = {
  137. search: function () {
  138. tips.selectPage();
  139. }
  140. };
  141. // 月流量 月询盘 月排名 月软文 项目经理 项目进度
  142. var config = {};
  143. config.url = '/admin/meter/propaganda';
  144. config.pageSize = 20;
  145. config.columns = [ //字段
  146. {title: '项目状态', field: 'statusTitle', align: 'center', sortable: true, width: '18px'},
  147. {title: '项目名称', field: 'cn_title', align: 'center'},
  148. {title: '域名', field: 'domain', align: 'center', width: '140px'},
  149. {title: '上线日期', field: 'online_date', align: 'center', width: '120px'},
  150. {title: '期数', field: 'renew_count', align: 'center'},
  151. {title: '关键词达标', field: 'keyword_goal', align: 'center'},
  152. {title: '项目经理', field: 'managers_title', align: 'center'},
  153. {
  154. title: '月流量', field: 'traffic', align: 'center', formatter: function (value) {
  155. return value;
  156. }
  157. },
  158. {title: '合同软文', field: 'article_goal_text', align: 'center'},
  159. {title: '发布软文', field: 'articles_count_mul', align: 'center', titleTooltip: '软文总数|本月新增|未同步数'},
  160. // {title: '未同步', field: 'no_sync_articles_count', align: 'center'},
  161. {title: '合同外链', field: 'link_goal_text', align: 'center'},
  162. {
  163. title: '外链统计',
  164. field: 'link_details_count_mul',
  165. align: 'center',
  166. titleTooltip: '外链总数|本月新增',
  167. formatter: function (value, row) {
  168. return '<a href="javascript:;" onclick="tips.page(\'/admin/link/sites/' + row.id + '/link-count\',\'' + row.cn_title + '\');">' + value + '</a>';
  169. }
  170. },
  171. {
  172. title: '外链地址', field: 'link_urls_count_mul', align: 'center', titleTooltip: '地址总数|本月新增'
  173. },
  174. {title: '社交队列', field: 'social_queue_count', align: 'center',titleTooltip: '队列个数|失败个数'}
  175. // , {
  176. // title: '操作', field: 'id', align: 'center',
  177. // formatter: function (value, row) {
  178. //
  179. // var str = '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  180. //
  181. // return str;
  182. //
  183. // }
  184. // }
  185. ];
  186. tips.bootstrapTable(config);
  187. </script>
  188. @endsection