|
|
@@ -1,7 +1,7 @@
|
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
|
<template>
|
|
|
<div class="spray-wrapper">
|
|
|
- <MonitorComponent
|
|
|
+ <BasicMonitoring
|
|
|
main-title="凝胶防灭火材料自动喷洒系统"
|
|
|
:main-config="{
|
|
|
configs: configs,
|
|
|
@@ -11,10 +11,10 @@
|
|
|
:alarm-history-config="{}"
|
|
|
strtype="sys_surface_juejin"
|
|
|
>
|
|
|
- <!-- <template #default="{ monitorData }">
|
|
|
- <div id="spray3D" class="w-full h-full">
|
|
|
+ <template #default="{ monitorData }">
|
|
|
+ <div id="spray3D" class="w-full h-full flex justify-center items-center overflow-hidden">
|
|
|
<a-spin :spinning="loading" />
|
|
|
- <div id="sprayCSS3D" v-show="!loading" style="width: 100%; height: 100%; position: absolute; overflow: hidden">
|
|
|
+ <div id="sprayCSS3D" v-show="!loading" style="width: 100%; height: 100%; position: absolute; overflow: hidden; pointer-events: none">
|
|
|
<FourBorderBg id="sprayCSS3DEnvA">
|
|
|
<div>送料电机</div>
|
|
|
<div>电压US:{{ monitorData.slus }}</div>
|
|
|
@@ -31,15 +31,17 @@
|
|
|
</FourBorderBg>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </template> -->
|
|
|
- </MonitorComponent>
|
|
|
+ </template>
|
|
|
+ </BasicMonitoring>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
- import { onMounted } from 'vue';
|
|
|
- import MonitorComponent from './component.vue';
|
|
|
+ import { onMounted, ref } from 'vue';
|
|
|
+ import BasicMonitoring from '/@/components/vent/BasicMonitoring.vue';
|
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
|
import { useInitConfigs } from '../../home/configurable/hooks/useInit';
|
|
|
+ import { mountedThree, setModelType } from './spray.three';
|
|
|
+ import FourBorderBg from '/@/components/vent/fourBorderBg.vue';
|
|
|
|
|
|
const defaultConfigs: Config[] = [
|
|
|
{
|
|
|
@@ -273,15 +275,16 @@
|
|
|
];
|
|
|
|
|
|
const { configs, fetchConfigs } = useInitConfigs();
|
|
|
+ const loading = ref(false);
|
|
|
|
|
|
onMounted(() => {
|
|
|
fetchConfigs('spray');
|
|
|
- // loading.value = true;
|
|
|
- // mountedThree('#spray3D', ['#sprayCSS3D', '#sprayCSS3DEnvA', '#sprayCSS3DEnvB']).then(() => {
|
|
|
- // setModelType('spray').finally(() => {
|
|
|
- // loading.value = false;
|
|
|
- // });
|
|
|
- // });
|
|
|
+ loading.value = true;
|
|
|
+ mountedThree('#spray3D', ['#sprayCSS3D', '#sprayCSS3DEnvA', '#sprayCSS3DEnvB']).then(() => {
|
|
|
+ setModelType('spray').finally(() => {
|
|
|
+ loading.value = false;
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
@@ -291,6 +294,10 @@
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
+ #spray3D {
|
|
|
+ pointer-events: all;
|
|
|
+ }
|
|
|
+
|
|
|
.spray-wrapper :deep(.list-item_L .list-item__icon_L) {
|
|
|
background-image: url('/@/assets/images/home-container/configurable/minehome/list-icon-file.png');
|
|
|
}
|