index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- eslint-disable vue/multi-word-component-names -->
  2. <template>
  3. <div class="scene-box">
  4. <customHeader :options="options" @change="getSelectRow" :optionValue="optionValue"> 瓦斯抽采综合管控系统 </customHeader>
  5. <!-- <CustomHeader class="w-1710px ml-100px mt-20px" :badges="headerBadges" /> -->
  6. <template v-if="activeKey === 'gasHome'">
  7. <CustomBadges class="w-1710px ml-100px mt-50px" :badges="headerBadges" />
  8. <GasMonitor :device="deviceValue" />
  9. </template>
  10. <BottomMenu :navList="navList" @change="changeActive" />
  11. </div>
  12. </template>
  13. <script lang="ts" setup>
  14. import { ref, onMounted } from 'vue';
  15. import CustomHeader from '/@/components/vent/customHeader.vue';
  16. import CustomBadges from './components/customHeader.vue';
  17. import BottomMenu from '/@/views/vent/comment/components/bottomMenu.vue';
  18. import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
  19. import { navList } from './gasHome.data';
  20. import GasMonitor from './components/gasMonitor.vue';
  21. const activeKey = ref('gasHome');
  22. const { options, optionValue, deviceValue, getSelectRow, getSysDataSource } = useSystemSelect('sys_surface_caimei'); // 参数为场景类型(设备类型管理中可以查询到)
  23. function changeActive(activeValue) {
  24. activeKey.value = activeValue;
  25. }
  26. const headerBadges = ref([
  27. {
  28. title: 'T1',
  29. desc: '累积瓦斯抽采量',
  30. },
  31. {
  32. title: 'T2',
  33. desc: '平均瓦斯抽采率',
  34. },
  35. {
  36. title: 'T3',
  37. desc: '抽采达标工作面数量',
  38. },
  39. {
  40. title: 'T4',
  41. desc: '抽采钻孔类型',
  42. },
  43. {
  44. title: 'T5',
  45. desc: '回采中工作面数量',
  46. },
  47. {
  48. title: 'T6',
  49. desc: '抽采钻孔总进尺',
  50. },
  51. ]);
  52. onMounted(async () => {
  53. await getSysDataSource();
  54. });
  55. </script>
  56. <style lang="less" scoped>
  57. .main-container {
  58. .left-box {
  59. }
  60. .right-box {
  61. }
  62. }
  63. </style>