score.blade.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 id="searchForm">
  39. <div class="input-group">
  40. <select name="status" id="status" title="" class="form-control"
  41. style="width: 150px;float: right" onchange="tips.selectPage();">
  42. <option value="">请选择项目状态</option>
  43. @foreach(\App\Http\Models\Site::STATUS_MAP as $key=>$item)
  44. @if(!in_array($key,[5,6]))
  45. <option value="{{$key}}">{{$item}}</option>
  46. @endif
  47. @endforeach
  48. </select>
  49. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  50. name="keyword"
  51. id="keyword" style="width: 300px;float: right">
  52. <span class="input-group-btn">
  53. <button type="button" class="btn btn-md btn-primary"
  54. onclick="units.search()"> 搜索</button>
  55. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  56. name="btnReset"> 重置</button>
  57. </span>
  58. </div>
  59. </form>
  60. <hr>
  61. <div class="table-responsive">
  62. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </body>
  70. @endsection
  71. @section('footer')
  72. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  73. <script>
  74. var units = {
  75. openDetail: function (id, title) {
  76. tips.page('/admin/sites/' + id + '/overview', title);
  77. },
  78. search: function () {
  79. tips.selectPage();
  80. },
  81. };
  82. var config = {};
  83. config.url = '/admin/bid/score';
  84. config.pageSize = 20;
  85. config.columns = [ //字段
  86. {
  87. title: '序号', align: 'center', formatter: function (value, item, index) {
  88. return index + 1;
  89. },
  90. width: '10px'
  91. },
  92. {title: '公司', field: 'cn_title', align: 'center'},
  93. {title: '网站', field: 'domain', align: 'center', width: '240px'},
  94. {title: '竞价人员', field: 'bidder_title', align: 'center', width: '160px'},
  95. {title: '评分时间', field: 'bid_score_time', align: 'center', width: '160px'},
  96. {title: '客户评分', field: 'bid_score', align: 'center', width: '160px'},
  97. {
  98. title: '操作', field: 'id', align: 'center',
  99. formatter: function (value, row) {
  100. var str = '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  101. return str;
  102. }
  103. }
  104. ];
  105. tips.bootstrapTable(config);
  106. </script>
  107. @endsection