beam-support.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <table class="info_table">
  3. <!-- <tr>
  4. <td class="cell_title" colspan="">前车或后车</td>
  5. </tr> -->
  6. <tr>
  7. <td class="cell_title">前车或后车</td>
  8. <td class="cell_title">闭式泵A口压力</td>
  9. <td class="cell_title">闭式泵B口压力</td>
  10. <td class="cell_title">开式回路压力</td>
  11. <td class="cell_title">驻车制动压力</td>
  12. <td class="cell_title">行车制动压力</td>
  13. </tr>
  14. <tr v-for="item in grider.slingSys" :key="item.id">
  15. <td class="cell_title"><span class="fontSpan">{{ item.no }}</span></td>
  16. <td class="cell_title"><span class="fontSpan">{{ item.weight }}</span></td>
  17. <td class="cell_title"><span class="fontSpan">{{ item.height }}</span></td>
  18. <td class="cell_title"><span class="fontSpan">{{ item.quantity }}</span></td>
  19. <td class="cell_title"><span class="fontSpan">{{ item.quantity }}</span></td>
  20. <td class="cell_title"><span class="fontSpan">{{ item.quantity }}</span></td>
  21. </tr>
  22. </table>
  23. </template>
  24. <script>
  25. export default {
  26. name: 'TacklingSysMng',
  27. data() {
  28. return {
  29. grider: {}
  30. }
  31. },
  32. methods: {
  33. show(data) {
  34. if (data) {
  35. this.grider = data
  36. }
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .info_table {
  43. position: relative;
  44. overflow: hidden;
  45. -webkit-box-sizing: border-box;
  46. box-sizing: border-box;
  47. -webkit-box-flex: 1;
  48. -ms-flex: 1;
  49. flex: 1;
  50. width: 100%;
  51. max-width: 100%;
  52. //background-color: #FFFFFF;
  53. font-size: 14px;
  54. color: white;
  55. table-layout:fixed;
  56. .cell_title{
  57. //background-color: #f7f7f7 !important;
  58. text-align: center;
  59. width: 25%;
  60. }
  61. .cell_data{
  62. text-align: center;
  63. width: 25%;
  64. }
  65. td {
  66. border: 1px solid #dfe6ec;
  67. padding: 9px 0;
  68. min-width: 0;
  69. -webkit-box-sizing: border-box;
  70. box-sizing: border-box;
  71. text-overflow: ellipsis;
  72. vertical-align: middle;
  73. position: relative;
  74. text-align: left;
  75. // white-space:nowrap;
  76. // text-overflow:
  77. // ellipsis;
  78. // overflow: hidden;
  79. }
  80. .fontSpan{
  81. font-weight: 900;
  82. color: green;
  83. }
  84. }
  85. </style>