|
@@ -1,7 +1,10 @@
|
|
<template>
|
|
<template>
|
|
- <div class="common-green">
|
|
|
|
|
|
+ <div class="vent-green">
|
|
<!-- 如果是有 deviceType、type 等 query,认为是详情页,不需要展示普通模块,只需要模型 -->
|
|
<!-- 如果是有 deviceType、type 等 query,认为是详情页,不需要展示普通模块,只需要模型 -->
|
|
<template v-if="!route.query.deviceType">
|
|
<template v-if="!route.query.deviceType">
|
|
|
|
+ <div v-if="!route.query.embed" class="top-bg">
|
|
|
|
+ <greenNav :activeIndex="activeIndex" />
|
|
|
|
+ </div>
|
|
<div class="main-container">
|
|
<div class="main-container">
|
|
<!-- 采用定位方式以避免出现各个模块隐藏时其他模块下移的问题 -->
|
|
<!-- 采用定位方式以避免出现各个模块隐藏时其他模块下移的问题 -->
|
|
<ModuleOriginal v-for="cfg in configs" :key="cfg.deviceType" :show-style="cfg.showStyle"
|
|
<ModuleOriginal v-for="cfg in configs" :key="cfg.deviceType" :show-style="cfg.showStyle"
|
|
@@ -13,7 +16,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <div style="width: 1300px; height: 530px; position: absolute; left: 436px; top: 0">
|
|
|
|
|
|
+ <div style="width: calc(100% - 468px); height: 530px; position: absolute; left: 436px; top: 110px">
|
|
<VentModal />
|
|
<VentModal />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -21,12 +24,13 @@
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { onMounted, onUnmounted, ref, watch, computed } from 'vue';
|
|
import { onMounted, onUnmounted, ref, watch, computed } from 'vue';
|
|
import { useInitConfigs, useInitPage } from '../hooks/useInit';
|
|
import { useInitConfigs, useInitPage } from '../hooks/useInit';
|
|
|
|
+import greenNav from './components/green-nav.vue';
|
|
import ModuleOriginal from './components/ModuleOriginal-green.vue';
|
|
import ModuleOriginal from './components/ModuleOriginal-green.vue';
|
|
// import greenRightTag from './components/green-right-tag.vue';
|
|
// import greenRightTag from './components/green-right-tag.vue';
|
|
import { list } from '../configurable.api';
|
|
import { list } from '../configurable.api';
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
-import { testConfigVent, testConfigVentRealtime } from '../configurable.data';
|
|
|
|
|
|
+import { testConfigVent, } from '../configurable.data';
|
|
import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
|
|
|
const { title = '智能通风管控系统' } = useGlobSetting();
|
|
const { title = '智能通风管控系统' } = useGlobSetting();
|
|
@@ -34,41 +38,13 @@ const { title = '智能通风管控系统' } = useGlobSetting();
|
|
const { isOriginal, fetchConfigs } = useInitConfigs();
|
|
const { isOriginal, fetchConfigs } = useInitConfigs();
|
|
const { mainTitle, data, updateData, updateEnhancedConfigs } = useInitPage(title);
|
|
const { mainTitle, data, updateData, updateEnhancedConfigs } = useInitPage(title);
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
-
|
|
|
|
|
|
+let activeIndex = ref(1)
|
|
let interval: number | undefined;
|
|
let interval: number | undefined;
|
|
let configs = ref<any[]>([]);
|
|
let configs = ref<any[]>([]);
|
|
function refresh() {
|
|
function refresh() {
|
|
fetchConfigs('vent').then(() => {
|
|
fetchConfigs('vent').then(() => {
|
|
configs.value = testConfigVent;
|
|
configs.value = testConfigVent;
|
|
updateEnhancedConfigs(configs.value);
|
|
updateEnhancedConfigs(configs.value);
|
|
-
|
|
|
|
- // 测风装置 windrect
|
|
|
|
- // 自动风窗 window
|
|
|
|
- // 自动风门 gate
|
|
|
|
- // 传感器 modelsensor
|
|
|
|
- // 局部通风机 fanlocal
|
|
|
|
- // 主通风机 fanmain
|
|
|
|
- // 密闭 obfurage
|
|
|
|
- // 安全监控 safetymonitor
|
|
|
|
- // 光纤测温 fiber
|
|
|
|
- // 束管监测 bundletube
|
|
|
|
- // 制氮 nitrogen
|
|
|
|
- // 制浆 pulping
|
|
|
|
- // 喷淋 spray
|
|
|
|
- // 喷粉 dustdev
|
|
|
|
- // 喷雾设备 atomizing
|
|
|
|
- // 除尘风机 dedustefan
|
|
|
|
- // 粉尘传感器 dustsensor
|
|
|
|
- // 转载点 transferpoint
|
|
|
|
- // 瓦斯抽采泵 pump
|
|
|
|
- // 粉尘 dusting
|
|
|
|
- // 瓦斯监测 gasmonitor
|
|
|
|
- // 球阀 ballvalve
|
|
|
|
- // 压风机 forcFan
|
|
|
|
- // 瓦斯巡检 gaspatrol
|
|
|
|
- // 防火门 firedoor
|
|
|
|
- // 隔爆设施 explosionProof
|
|
|
|
- // 瓦斯管道阀门 gasvalve
|
|
|
|
list({
|
|
list({
|
|
types: configs.value
|
|
types: configs.value
|
|
.filter((e) => e.deviceType)
|
|
.filter((e) => e.deviceType)
|
|
@@ -121,24 +97,32 @@ onUnmounted(() => {
|
|
}
|
|
}
|
|
|
|
|
|
@{theme-deepblue} {
|
|
@{theme-deepblue} {
|
|
- .common-green {
|
|
|
|
|
|
+ .vent-green {
|
|
--image-modal-top: url('/@/assets/images/themify/deepblue/vent/home/modal-top.png');
|
|
--image-modal-top: url('/@/assets/images/themify/deepblue/vent/home/modal-top.png');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-.common-green {
|
|
|
|
|
|
+.vent-green {
|
|
--image-modal-top: url('/@/assets/images/vent/home/modal-top.png');
|
|
--image-modal-top: url('/@/assets/images/vent/home/modal-top.png');
|
|
- --image-monitor-realtime: url('/@/assets/images/company/monitor-realtime.png');
|
|
|
|
- --image-monitor-doc: url('/@/assets/images/company/monitor-doc.png');
|
|
|
|
- --image-monitor-goto: url('/@/assets/images/company/monitor-goto.png');
|
|
|
|
|
|
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
|
- .main-container {
|
|
|
|
|
|
+ .top-bg {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 100%;
|
|
|
|
|
|
+ height: 96px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ z-index: 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .main-container {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 96px;
|
|
|
|
+ width: calc(100% - 30px);
|
|
|
|
+ height: calc(100% - 96px);
|
|
|
|
+ margin: 0px 15px;
|
|
|
|
+ box-sizing: border-box;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|