|
@@ -1,39 +1,21 @@
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
<template>
|
|
<template>
|
|
<div class="scene-box">
|
|
<div class="scene-box">
|
|
- <!-- <CustomHeader class="w-1710px ml-100px mt-20px" :badges="headerBadges" /> -->
|
|
|
|
- <customHeader :options="options" @change="getSelectRow" :optionValue="optionValue"> 瓦斯抽采综合管控系统 </customHeader>
|
|
|
|
|
|
+ <customHeader> 瓦斯抽采综合管控系统 </customHeader>
|
|
<CustomBadges class="w-1710px ml-100px mt-50px" :badges="headerBadges" />
|
|
<CustomBadges class="w-1710px ml-100px mt-50px" :badges="headerBadges" />
|
|
- <GasMonitor :device="deviceValue" />
|
|
|
|
- <!-- <template v-if="activeKey === 'gasHome'">
|
|
|
|
-
|
|
|
|
- </template>
|
|
|
|
- <template v-if="activeKey === 'gasPump'">
|
|
|
|
- <gasPumpMonitor />
|
|
|
|
- </template>
|
|
|
|
- <template v-if="activeKey === 'gasStandard'">
|
|
|
|
- <GasAssessmentHome />
|
|
|
|
- </template>
|
|
|
|
- <BottomMenu :navList="navList" @change="changeActive" /> -->
|
|
|
|
|
|
+ <GasMonitor v-if="dataSource" :dataSource="dataSource" />
|
|
</div>
|
|
</div>
|
|
|
|
+ <VentModal style="z-index: 0" />
|
|
</template>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { ref, onMounted } from 'vue';
|
|
import { ref, onMounted } from 'vue';
|
|
import CustomHeader from '/@/components/vent/customHeader.vue';
|
|
import CustomHeader from '/@/components/vent/customHeader.vue';
|
|
import CustomBadges from './components/customHeader.vue';
|
|
import CustomBadges from './components/customHeader.vue';
|
|
- // import GasAssessmentHome from './components/gasAssessmentHome.vue';
|
|
|
|
- // import gasPumpMonitor from '../gasPumpMonitor/index.vue';
|
|
|
|
- // import BottomMenu from '/@/views/vent/comment/components/bottomMenu.vue';
|
|
|
|
- import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
|
|
|
|
- // import { navList } from './gasHome.data';
|
|
|
|
import GasMonitor from './components/gasMonitor.vue';
|
|
import GasMonitor from './components/gasMonitor.vue';
|
|
-
|
|
|
|
|
|
+ import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
|
+ import { gasSystem } from './gasHome.api';
|
|
const activeKey = ref('gasHome');
|
|
const activeKey = ref('gasHome');
|
|
- const { options, optionValue, deviceValue, getSelectRow, getSysDataSource } = useSystemSelect('sys_surface_caimei'); // 参数为场景类型(设备类型管理中可以查询到)
|
|
|
|
-
|
|
|
|
- function changeActive(activeValue) {
|
|
|
|
- activeKey.value = activeValue;
|
|
|
|
- }
|
|
|
|
|
|
+ const dataSource = ref<any | null>(null);
|
|
|
|
|
|
const headerBadges = ref([
|
|
const headerBadges = ref([
|
|
{
|
|
{
|
|
@@ -63,7 +45,8 @@
|
|
]);
|
|
]);
|
|
|
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
- await getSysDataSource();
|
|
|
|
|
|
+ debugger;
|
|
|
|
+ dataSource.value = await gasSystem();
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -74,4 +57,7 @@
|
|
.right-box {
|
|
.right-box {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ :deep(.vent-home-header) {
|
|
|
|
+ background-color: var(--vent-base-color) !important;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|