schedule_overdue.blade.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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="manageHelperId" id="manageHelperId" title="" class="form-control"
  41. style="width: 150px;float: right"
  42. onchange="units.selectPage();">
  43. <option value="">项目经理</option>
  44. @foreach($managerHelpers as $item)
  45. <option value="{{$item->id}}">{{$item->nickname}}</option>
  46. @endforeach
  47. </select>
  48. <input type="text" class="form-control" id="date" name="date"
  49. placeholder="逾期时间"
  50. style="width: 160px;float: right">
  51. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  52. name="keyword"
  53. id="keyword" style="width: 260px;float: right">
  54. <span class="input-group-btn">
  55. <button type="button" class="btn btn-md btn-primary"
  56. onclick="units.search()"> 搜索</button>
  57. <button type="button" class="btn btn-md" style="margin-left: 10px"
  58. name="btnReset"> 重置</button>
  59. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  60. onclick="units.export()"> 导出</button>
  61. </span>
  62. </div>
  63. </form>
  64. <hr>
  65. <div class="table-responsive">
  66. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </body>
  74. @endsection
  75. @section('footer')
  76. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  77. <script>
  78. laydate.render({
  79. elem: '#date'
  80. , type: 'month'
  81. , format: 'yyyy-MM'
  82. });
  83. var units = {
  84. export: function () {
  85. var formValues = tips.getFormValues("#searchForm");
  86. var str = $.param(formValues);
  87. window.open('/admin/flow/scheduleOverdueExport?' + str)
  88. },
  89. selectPage: function () {
  90. tips.selectPage();
  91. },
  92. search: function () {
  93. tips.selectPage();
  94. },
  95. openDetail: function (id, title) {
  96. tips.page('/admin/sites/' + id + '/overview', title);
  97. }
  98. };
  99. var config = {};
  100. config.url = '/admin/flow/scheduleOverdue';
  101. config.pageSize = 20;
  102. config.showColumns = true;
  103. config.columns = [ //字段
  104. {
  105. title: '序号', align: 'center', formatter: function (value, item, index) {
  106. return index + 1;
  107. },
  108. width: '10px'
  109. },
  110. {title: '项目名称', field: 'cn_title', align: 'center', width: '120px'},
  111. {title: '域名', field: 'domain', align: 'center'},
  112. {title: '项目经理', field: 'projectManager', align: 'center'},
  113. {title: '销售经理', field: 'salesManager', align: 'center',visible: false},
  114. {title: '项目管家', field: 'serverManager', align: 'center'},
  115. {title: '预计总天数', field: 'expectedDay', align: 'center'},
  116. {title: '逾期天数', field: 'overdueDay', align: 'center'},
  117. {title: '项目资料搜集逾期', field: 'projectDataCollection', align: 'center'},
  118. {title: '逾期原因', field: 'projectDataCollectionMemo', align: 'center',visible: false},
  119. {title: '项目资料搜集完成用时', field: 'projectDataCollectionComplete', align: 'center',visible: false},
  120. {title: '网站架构逾期', field: 'siteArchitecture', align: 'center'},
  121. {title: '逾期原因', field: 'siteArchitectureMemo', align: 'center',visible: false},
  122. {title: '网站架构完成用时', field: 'siteArchitectureComplete', align: 'center',visible: false},
  123. {title: '首页设计逾期', field: 'homepageDesign', align: 'center'},
  124. {title: '逾期原因', field: 'homepageDesignMemo', align: 'center',visible: false},
  125. {title: '首页设计完成用时', field: 'homepageDesignComplete', align: 'center',visible: false},
  126. {title: '内页设计逾期', field: 'insidePageDesign', align: 'center'},
  127. {title: '逾期原因', field: 'insidePageDesignMemo', align: 'center',visible: false},
  128. {title: '内页设计完成用时', field: 'insidePageDesignComplete', align: 'center',visible: false},
  129. {title: '整站资料提供逾期', field: 'websiteInformationProvision', align: 'center'},
  130. {title: '逾期原因', field: 'websiteInformationProvisionMemo', align: 'center',visible: false},
  131. {title: '整站资料提供完成用时', field: 'websiteInformationProvisionComplete', align: 'center',visible: false},
  132. {title: '测试站逾期', field: 'testStation', align: 'center'},
  133. {title: '逾期原因', field: 'testStationMemo', align: 'center',visible: false},
  134. {title: '测试站完成用时', field: 'testStationComplete', align: 'center',visible: false},
  135. {title: '关键词逾期', field: 'keyWords', align: 'center'},
  136. {title: '逾期原因', field: 'keyWordsMemo', align: 'center',visible: false},
  137. {title: '关键词完成用时', field: 'keyWordsComplete', align: 'center',visible: false},
  138. {title: 'SEO完善逾期', field: 'seo', align: 'center'},
  139. {title: '逾期原因', field: 'seoMemo', align: 'center',visible: false},
  140. {title: 'SEO完善完成用时', field: 'seoComplete', align: 'center',visible: false},
  141. {title: '上线逾期', field: 'online', align: 'center'},
  142. {title: '逾期原因', field: 'onlineMemo', align: 'center',visible: false},
  143. {title: '上线完成用时', field: 'onlineComplete', align: 'center',visible: false},
  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