GasStatus.vue 1020 B

12345678910111213141516171819202122232425262728
  1. <!-- eslint-disable vue/multi-word-component-names -->
  2. <template>
  3. <Row justify="space-around">
  4. <Col v-for="(item, i) in GAS_STATUS_HEADER_CONFIG" :key="`svvhbcgs${i}`" :span="10">
  5. <LargeBoard :label="item.label" :value="headerData[item.prop]" :type="item.type" />
  6. </Col>
  7. </Row>
  8. <CommonTable class="mt-10px" :columns="BASIC_COLUMN" :data="data" />
  9. </template>
  10. <script lang="ts" setup>
  11. import { Row, Col } from 'ant-design-vue';
  12. import { GAS_STATUS_HEADER_CONFIG, BASIC_COLUMN } from '../billboard.data';
  13. import LargeBoard from './LargeBoard.vue';
  14. import { ref } from 'vue';
  15. import CommonTable from './CommonTable.vue';
  16. // import mapComponent from './components/3Dmap/index.vue';
  17. const headerData = ref({
  18. a: '低风险',
  19. b: '低风险',
  20. });
  21. const data = ref([
  22. { a: '瓦斯抽采泵站', b: 2, c: '正常' },
  23. { a: '瓦斯监测传感器', b: 12, c: '正常' },
  24. { a: '瓦斯巡检机器人', b: 23, c: '异常' },
  25. ]);
  26. </script>
  27. <style lang="less" scoped></style>