index.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <style>
  2. /* 表格铺满内容区,表头与单元格强制居中 */
  3. .supplierservicescore-page .bootstrap-table > .fixed-table-container,
  4. .supplierservicescore-page .bootstrap-table > .fixed-table-pagination {
  5. max-width: none;
  6. width: 100%;
  7. }
  8. .supplierservicescore-page .bootstrap-table .fixed-table-container .table,
  9. .supplierservicescore-page .bootstrap-table .fixed-table-body .table,
  10. .supplierservicescore-page .bootstrap-table .fixed-table-header .table {
  11. width: 100% !important;
  12. max-width: none;
  13. table-layout: fixed;
  14. }
  15. .supplierservicescore-page .bootstrap-table .table > thead > tr > th,
  16. .supplierservicescore-page .bootstrap-table .table > tbody > tr > td,
  17. .supplierservicescore-page .bootstrap-table .fixed-table-header .table > thead > tr > th,
  18. .supplierservicescore-page .bootstrap-table .fixed-table-body .table > tbody > tr > td,
  19. .supplierservicescore-page .bootstrap-table .fixed-table-container thead th,
  20. .supplierservicescore-page .bootstrap-table .fixed-table-container tbody td {
  21. white-space: nowrap;
  22. overflow: hidden;
  23. text-overflow: ellipsis;
  24. vertical-align: middle !important;
  25. text-align: center !important;
  26. }
  27. .supplierservicescore-page .bootstrap-table .fixed-table-container thead th .th-inner,
  28. .supplierservicescore-page .bootstrap-table .fixed-table-container thead th .th-inner.sortable,
  29. .supplierservicescore-page .bootstrap-table .fixed-table-container thead th .sortable,
  30. .supplierservicescore-page .bootstrap-table .table > thead > tr > th .th-inner,
  31. .supplierservicescore-page .bootstrap-table .fixed-table-header .table > thead > tr > th .th-inner {
  32. display: block !important;
  33. width: 100% !important;
  34. box-sizing: border-box !important;
  35. text-align: center !important;
  36. padding-left: 8px !important;
  37. padding-right: 8px !important;
  38. margin: 0 auto !important;
  39. float: none !important;
  40. }
  41. /* 操作列固定右侧,横向滚动时始终可见 */
  42. .supplierservicescore-page .bootstrap-table .fixed-table-header th.ssc-operate-col,
  43. .supplierservicescore-page .bootstrap-table .fixed-table-body td.ssc-operate-col,
  44. .supplierservicescore-page .bootstrap-table th[data-field="operate"],
  45. .supplierservicescore-page .bootstrap-table td[data-field="operate"] {
  46. position: sticky;
  47. right: 0;
  48. background: #fff;
  49. z-index: 5;
  50. overflow: visible !important;
  51. box-shadow: -4px 0 8px rgba(0, 0, 0, 0.06);
  52. border-left: 1px solid #e8e8e8 !important;
  53. }
  54. .supplierservicescore-page .bootstrap-table .fixed-table-header th.ssc-operate-col,
  55. .supplierservicescore-page .bootstrap-table th[data-field="operate"] {
  56. z-index: 6;
  57. background: #f5f5f5;
  58. }
  59. .supplierservicescore-page .bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td.ssc-operate-col,
  60. .supplierservicescore-page .bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td[data-field="operate"] {
  61. background: #f9f9f9;
  62. }
  63. .supplierservicescore-page .bootstrap-table .table-hover > tbody > tr:hover > td.ssc-operate-col,
  64. .supplierservicescore-page .bootstrap-table .table-hover > tbody > tr:hover > td[data-field="operate"] {
  65. background: #f5f5f5;
  66. }
  67. </style>
  68. <div class="panel panel-default panel-intro supplierservicescore-page">
  69. {:build_heading()}
  70. <div class="panel-body">
  71. <div class="widget-body no-padding">
  72. <div id="toolbar" class="toolbar">
  73. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i> 刷新</a>
  74. <span style="display:inline-block;margin-left:10px;vertical-align:middle;">
  75. <a href="javascript:;" class="btn btn-success btn-export-review" id="btn-export-review" title="按月份导出供应商评审表">
  76. <i class="fa fa-download"></i> 导出供应商评审表
  77. </a>
  78. <label style="margin:0 6px 0 10px;font-weight:normal;" for="export-review-ym">查询月份</label>
  79. <input type="month" id="export-review-ym" class="form-control input-sm" style="display:inline-block;width:150px;height:30px;vertical-align:middle;" title="选择月份后自动查询该月评分"/>
  80. </span>
  81. </div>
  82. <table id="table" class="table table-striped table-bordered table-hover table-nowrap text-center"></table>
  83. </div>
  84. </div>
  85. </div>