design_score.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. @extends('admin/layout')
  2. @section('header')
  3. @endsection
  4. <style type="text/css">
  5. table.tftable {
  6. font-size: 12px;
  7. color: #333333;
  8. width: 100%;
  9. border-width: 1px;
  10. border-color: #9dcc7a;
  11. border-collapse: collapse;
  12. }
  13. table.tftable th {
  14. font-size: 12px;
  15. background-color: #abd28e;
  16. border-width: 1px;
  17. padding: 8px;
  18. border-style: solid;
  19. border-color: #9dcc7a;
  20. text-align: left;
  21. }
  22. table.tftable tr {
  23. background-color: #ffffff;
  24. }
  25. table.tftable td {
  26. font-size: 12px;
  27. border-width: 1px;
  28. padding: 20px 10px;
  29. border-style: solid;
  30. border-color: #9dcc7a;
  31. }
  32. .fenish {
  33. background: #1D976C;
  34. color: #fff;
  35. }
  36. .blue {
  37. background: #6DD5FA;
  38. color: #fff;
  39. }
  40. #tfhover tbody tr td:nth-child(2) {
  41. position: relative;
  42. padding-left: 35px;
  43. }
  44. .fa {
  45. position: absolute;
  46. left: 10px;
  47. top: 0;
  48. color: #ddd;
  49. transform: translateY(-50%);
  50. top: 50%;
  51. font-size: 18px !important;
  52. cursor: pointer;
  53. }
  54. .first-numb {
  55. color: palevioletred;
  56. }
  57. </style>
  58. <div style="margin-left: 10px">
  59. <form action="{{url('/admin/flow/designScore')}}" method="post" id="form1">
  60. <div style="display: flex;padding: 10px 0;">
  61. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control" name="keyword" id="keyword"
  62. style="width: 260px;" value="{{$request['keyword']??''}}">
  63. <select data-placeholder="请选择项目经理..." style="width:200px;" name="projectManagerId" id="projectManagerId"
  64. class="form-control">
  65. <option value="">请选择项目经理</option>
  66. @foreach ($projectManager as $key => $value)
  67. <option value="{{$key}}"
  68. @if($request['projectManagerId']==$key) selected="selected"@endif>{{$value}}</option>
  69. @endforeach
  70. </select>
  71. {{--<select data-placeholder="请选择策划师..." style="width:200px;" name="plannerId" class="form-control">
  72. <option value="">请选择策划师</option>
  73. @foreach ($planner as $key => $value)
  74. <option value="{{$key}}"
  75. @if($request['serverId']==$key) selected="selected"@endif>{{$value}}</option>
  76. @endforeach
  77. </select>--}}
  78. <select data-placeholder="请选择采编..." style="width:200px;" name="editingId" id="editingId"
  79. class="form-control">
  80. <option value="">请选择采编</option>
  81. @foreach ($editors as $key => $value)
  82. <option value="{{$key}}"
  83. @if($request['editingId']==$key) selected="selected"@endif>{{$value}}</option>
  84. @endforeach
  85. </select>
  86. <select data-placeholder="请选择设计..." style="width:200px;" name="designerId" id="designerId"
  87. class="form-control">
  88. <option value="">请选择设计</option>
  89. @foreach ($designer as $key => $value)
  90. <option value="{{$key}}"
  91. @if($request['designerId']==$key) selected="selected"@endif>{{$value}}</option>
  92. @endforeach
  93. </select>
  94. <select data-placeholder="请选择前端..." style="width:200px;" name="webId" id="webId" class="form-control">
  95. <option value="">请选择前端</option>
  96. @foreach ($web as $key => $value)
  97. <option value="{{$key}}" @if($request['webId']==$key) selected="selected"@endif>{{$value}}</option>
  98. @endforeach
  99. </select>
  100. <select data-placeholder="请选择客服..." style="width:200px;" name="projectStewardId" id="projectStewardId"
  101. class="form-control">
  102. <option value="">请选择客服</option>
  103. @foreach ($projectSteward as $key => $value)
  104. <option value="{{$key}}"
  105. @if($request['projectStewardId']==$key) selected="selected"@endif>{{$value}}</option>
  106. @endforeach
  107. </select>
  108. <input style="margin-left: 10px" type="submit" class="btn btn-primary" value="搜索">
  109. <button style="margin-left: 10px" type="button" class="btn btn-primary reset"> 重置</button>
  110. <button style="margin-left: 10px" type="button" class="btn btn-primary button"> 保存</button>
  111. </div>
  112. </form>
  113. </div>
  114. <table id="tfhover" class="tftable" border="1">
  115. <thead>
  116. <tr>
  117. <th colspan="18" style="text-align: center">
  118. 评分统计
  119. </th>
  120. </tr>
  121. <tr>
  122. <th style="width: 3%;">序号</th>
  123. <th style="width: 7%;">项目</th>
  124. <th style="width: 5%;">下单时间</th>
  125. <th style="width: 5%;">上线时间</th>
  126. <th style="width: 5%;">项目经理</th>
  127. {{--<th style="width: 4%;">策划师</th>--}}
  128. <th style="width: 5%;">采编</th>
  129. <th style="width: 5%;">设计</th>
  130. <th style="width: 5%;">前端</th>
  131. <th style="width: 5%;">客服</th>
  132. <th style="width: 5%;">竞争对手分析</th>
  133. <th style="width: 5%;">网站架构定稿</th>
  134. <th style="width: 5%;">首页设计定稿</th>
  135. <th style="width: 5%;">手机端首页<br>两张banner设计定稿</th>
  136. <th style="width: 5%;">产品内页设计定稿</th>
  137. <th style="width: 5%;">pc端测试站客户验收反馈</th>
  138. <th style="width: 5%;">关键词地图定稿</th>
  139. <th style="width: 5%;">上线确认进入实施期</th>
  140. </tr>
  141. </thead>
  142. <tbody>
  143. @foreach($siteList as $key=>$value)
  144. <tr>
  145. <td>{{$key+1}}</td>
  146. <td data-info="{{$value['site_id']}}" data-rank="{{$value['rank']??''}}"><i
  147. @if($value['rank']==1)class="fa fa-heart first-numb" @else class="fa fa-heart" @endif></i><a
  148. onclick="units.openDetail('{{$value['site_id']}}','{{$value['cn_title']}}')">{{$value['cn_title']}}</a>
  149. </td>
  150. <td>{{$value['order_at']??''}}</td>
  151. <td>{{$value['online_at']??''}}</td>
  152. <td>
  153. {{$value['project_manager']??''}}
  154. </td>
  155. {{-- <td>
  156. {{$value['plan']??''}}
  157. </td>--}}
  158. <td>
  159. {{$value['editing']??''}}
  160. </td>
  161. <td>
  162. {{$value['design']??''}}
  163. </td>
  164. <td>
  165. {{$value['web']??''}}
  166. </td>
  167. <td>
  168. {{$value['project_steward']??''}}
  169. </td>
  170. <td>
  171. {{$value['score1']??0}}
  172. </td>
  173. <td>
  174. {{$value['score2']??0}}
  175. </td>
  176. <td>
  177. {{$value['score3']??0}}
  178. </td>
  179. <td>
  180. {{$value['score4']??0}}
  181. </td>
  182. <td>
  183. {{$value['score5']??0}}
  184. </td>
  185. <td>
  186. {{$value['score6']??0}}
  187. </td>
  188. <td>
  189. {{$value['score7']??0}}
  190. </td>
  191. <td>
  192. {{$value['score8']??0}}
  193. </td>
  194. </tr>
  195. @endforeach
  196. </tbody>
  197. </table>
  198. @section('footer')
  199. <script>
  200. window.onload = function () {
  201. var tfrow = document.getElementById('tfhover').rows.length;
  202. var tbRow = [];
  203. for (var i = 1; i < tfrow; i++) {
  204. tbRow[i] = document.getElementById('tfhover').rows[i];
  205. tbRow[i].onmouseover = function () {
  206. this.style.backgroundColor = '#f3f8aa';
  207. };
  208. tbRow[i].onmouseout = function () {
  209. this.style.backgroundColor = '#ffffff';
  210. };
  211. }
  212. };
  213. $('#tfhover tbody tr td:nth-child(2) i').click(function () {
  214. var rank = 0;
  215. if ($(this).hasClass('first-numb')) {
  216. $(this).removeClass('first-numb');
  217. } else {
  218. rank = 1;
  219. $(this).addClass('first-numb');
  220. }
  221. var siteId = $(this).parent().attr('data-info');
  222. var ajaxConfig = {
  223. url: '/admin/flow/setSiteIdByRankId',
  224. type: 'post',
  225. data: {siteId: siteId, type: 5, rank: rank},
  226. success: function (result) {
  227. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  228. window.location.reload();
  229. });
  230. }
  231. };
  232. tips.ajax(ajaxConfig);
  233. });
  234. var units = {
  235. openDetail: function (id, title) {
  236. tips.page('/admin/sites/' + id + '/overview', title);
  237. },
  238. };
  239. $(".button").click(function () {
  240. var list = [];
  241. $("#tfhover tbody").find("tr").each(function () {
  242. var tdArr = $(this).children();
  243. var site_id = tdArr.eq(1).attr('data-info');
  244. var array = {};
  245. array.site_id = site_id;
  246. list.push(array);
  247. });
  248. var ajaxConfig = {
  249. url: '/admin/flow/designScore',
  250. type: 'post',
  251. data: {list: JSON.stringify(list)},
  252. success: function (result) {
  253. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  254. window.location.reload();
  255. });
  256. }
  257. };
  258. tips.ajax(ajaxConfig);
  259. });
  260. //重置
  261. $(function () {
  262. $('.reset').click(function () {
  263. $('#keyword').val('');
  264. $('#projectManagerId').val('');
  265. $('#editingId').val('');
  266. $('#designerId').val('');
  267. $('#webId').val('');
  268. $('#projectStewardId').val('');
  269. $('#form1').submit();
  270. });
  271. });
  272. </script>
  273. @endsection