test_remind.blade.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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="task" id="task" style="width: 150px;float: right">
  42. <span class="input-group-btn">
  43. <button type="button" class="btn btn-md btn-primary"
  44. onclick="units.search()"> 搜索</button>
  45. <button type="button" class="btn btn-md" style="margin-left: 10px"
  46. name="btnReset"> 重置</button>
  47. </div>
  48. </form>
  49. <hr>
  50. <div class="table-responsive">
  51. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </body>
  59. @endsection
  60. @section('footer')
  61. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  62. <script>
  63. laydate.render({
  64. elem: '#monthRange'
  65. });
  66. laydate.render({
  67. elem: '#monthRange2'
  68. });
  69. var units = {
  70. selectPage: function () {
  71. tips.selectPage();
  72. },
  73. search: function () {
  74. tips.selectPage();
  75. },
  76. openDetail: function (id) {
  77. window.open('/admin/flow/siteConstructionProcess/' + id + '/type/0');
  78. }
  79. };
  80. var config = {};
  81. config.url = '/admin/personalTasks';
  82. config.pageSize = 20;
  83. config.columns = [ //字段
  84. {
  85. title: '序号', align: 'center', formatter: function (value, item, index) {
  86. return index + 1;
  87. },
  88. width: '10px'
  89. },
  90. {title: '逾期事项', field: 'title', align: 'center'},
  91. {title: '阶段', field: 'rank', align: 'center'},
  92. {title: '任务截止时间', field: 'node_date', align: 'center'},
  93. {title: '逾期阶段负责人', field: 'user', align: 'center'},
  94. {title: '逾期天数', field: 'overdue_day', align: 'center'},
  95. {title: '关联项目', field: 'cn_title', align: 'center'},
  96. {title: '下单时间', field: 'order_at', align: 'center'},
  97. {
  98. title: '操作', field: 'id', align: 'center',
  99. formatter: function (value, row) {
  100. return '<button onclick="units.openDetail(' + row.site_id + ')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  101. }
  102. }
  103. ];
  104. tips.bootstrapTable(config);
  105. </script>
  106. @endsection