gasParamter.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div class="gasParamter">
  3. <a-table :columns="columns" :data-source="tableData" :pagination="false" :scroll="{ y: 700 }" class="tableW">
  4. <template #bodyCell="{ column, text }">
  5. <!-- <template v-if="column.dataIndex === 'name'">
  6. <a href="javascript:;">{{ text }}</a>
  7. </template> -->
  8. </template>
  9. </a-table>
  10. <!-- <div class="description">
  11. ZWY300/355 : Z-泵站,W-瓦斯抽放,Y-移动式,270/300-流量(m³/min),355-功率(KW),抽放混合量160~230m³/min,抽放瓦斯浓度0.5~1.2%,抽放瓦斯量0.8~3m³/min。
  12. </div> -->
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { ref, reactive } from 'vue';
  17. let tableData = ref<any[]>([
  18. { name: '相对瓦斯涌出量', value: '8.18m³/t', address: '1475移动式瓦斯抽采泵站', work: '16219-1综放工作面', code: '2Be1-405' },
  19. { name: '综采最大涌出量', value: '2.51m³/min', address: '六采区进风大巷移动式瓦斯抽采泵站', work: '16120油页岩工作面', code: 'ZWY120/160G' },
  20. { name: '掘进最大涌出量', value: '0.59m³/min', address: '', work: '', code: '' },
  21. ]);
  22. let columns = reactive([
  23. {
  24. title: '瓦斯参数',
  25. children: [
  26. {
  27. title: '瓦斯等级鉴定',
  28. children: [
  29. {
  30. title: '绝对瓦斯涌出量',
  31. dataIndex: 'name',
  32. key: 'name',
  33. align: 'center',
  34. },
  35. {
  36. title: '20.65m³/min',
  37. dataIndex: 'value',
  38. key: 'value',
  39. align: 'center',
  40. },
  41. ],
  42. },
  43. {
  44. title: '瓦斯抽放',
  45. children: [
  46. {
  47. title: '抽放泵站地点',
  48. dataIndex: 'address',
  49. key: 'address',
  50. align: 'center',
  51. },
  52. {
  53. title: '抽放工作面',
  54. dataIndex: 'work',
  55. key: 'work',
  56. align: 'center',
  57. },
  58. {
  59. title: '设备型号',
  60. dataIndex: 'code',
  61. key: 'code',
  62. align: 'center',
  63. },
  64. ],
  65. },
  66. ],
  67. },
  68. ]);
  69. </script>
  70. <style lang="less" scoped>
  71. .gasParamter {
  72. width: 100%;
  73. height: 100%;
  74. padding: 20px;
  75. box-sizing: border-box;
  76. .tableW {
  77. width: 100% !important;
  78. }
  79. .description {
  80. margin: 10px;
  81. color: #fff;
  82. }
  83. }
  84. :deep(.zxm-table-thead > tr > th:last-child) {
  85. border-right: 1px solid #91e9fe !important;
  86. }
  87. </style>