VentilationStatus.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!-- eslint-disable vue/multi-word-component-names -->
  2. <template>
  3. <Row justify="space-between">
  4. <Col v-for="(item, i) in VENTILATION_STATUS_HEADER_CONFIG" :key="`svvhbcvs${i}`" :span="12">
  5. <MiniBoard :label="item.label" :value="data[item.prop]" :type="item.type" />
  6. </Col>
  7. <div class="ventilate-status-card">
  8. <CommonTitle label="通风系统数量" :value="ventilatorCount" />
  9. <BasicTree class="ventilate-status-card__tree" :tree-data="treeData" :virtual="false" />
  10. </div>
  11. </Row>
  12. </template>
  13. <script lang="ts" setup>
  14. import { Row, Col } from 'ant-design-vue';
  15. import { BasicTree } from '/@/components/Tree';
  16. import type { TreeProps } from 'ant-design-vue';
  17. import { VENTILATION_STATUS_HEADER_CONFIG } from '../billboard.data';
  18. import MiniBoard from './MiniBoard.vue';
  19. import { ref } from 'vue';
  20. import CommonTitle from './CommonTitle.vue';
  21. // import mapComponent from './components/3Dmap/index.vue';
  22. const data = ref({
  23. a: '13000',
  24. b: '13000',
  25. c: '13000',
  26. d: '98765',
  27. });
  28. const ventilatorCount = ref('0');
  29. const treeData: TreeProps['treeData'] = [
  30. {
  31. title: '1号回风斜井回风系统',
  32. key: '0-0',
  33. children: [
  34. {
  35. title: '名称:松定霍洛主通风机',
  36. key: '0-0-0',
  37. },
  38. {
  39. title: '风量:6000(m³/min)',
  40. key: '0-0-1',
  41. },
  42. {
  43. title: '频率:30Hz',
  44. key: '0-0-2',
  45. },
  46. {
  47. title: '三区阻力分布:30%-40%-30%',
  48. key: '0-0-3',
  49. },
  50. ],
  51. },
  52. {
  53. title: '2号回风立井回风系统',
  54. key: '1-0',
  55. children: [
  56. {
  57. title: '名称:松定霍洛主通风机',
  58. key: '1-0-0',
  59. },
  60. {
  61. title: '风量:6000(m³/min)',
  62. key: '1-0-1',
  63. },
  64. {
  65. title: '频率:30Hz',
  66. key: '1-0-2',
  67. },
  68. {
  69. title: '三区阻力分布:30%-40%-30%',
  70. key: '1-0-3',
  71. },
  72. ],
  73. },
  74. ];
  75. </script>
  76. <style lang="less" scoped>
  77. .ventilate-status-card {
  78. width: 406px;
  79. margin-top: 10px;
  80. box-sizing: border-box;
  81. background-size: 100% 100%;
  82. background: url('@/assets/images/company/area1.png') no-repeat center;
  83. // ::v-deep(.zxm-tree) {
  84. // color: @white;
  85. // background-color: transparent;
  86. // }
  87. .ventilate-status-card__tree {
  88. height: 130px;
  89. overflow: auto;
  90. }
  91. }
  92. </style>