|
@@ -4,14 +4,14 @@
|
|
|
<MonitorComponent
|
|
<MonitorComponent
|
|
|
main-title="凝胶防灭火材料自动喷洒系统"
|
|
main-title="凝胶防灭火材料自动喷洒系统"
|
|
|
:main-config="{
|
|
:main-config="{
|
|
|
- configs: defaultConfigs,
|
|
|
|
|
|
|
+ configs: configs,
|
|
|
}"
|
|
}"
|
|
|
:monitor-history-config="{}"
|
|
:monitor-history-config="{}"
|
|
|
:handler-history-config="{}"
|
|
:handler-history-config="{}"
|
|
|
:alarm-history-config="{}"
|
|
:alarm-history-config="{}"
|
|
|
strtype="sys_surface_juejin"
|
|
strtype="sys_surface_juejin"
|
|
|
>
|
|
>
|
|
|
- <template #default="{ monitorData }">
|
|
|
|
|
|
|
+ <!-- <template #default="{ monitorData }">
|
|
|
<div id="spray3D" class="w-full h-full">
|
|
<div id="spray3D" class="w-full h-full">
|
|
|
<a-spin :spinning="loading" />
|
|
<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">
|
|
@@ -31,19 +31,16 @@
|
|
|
</FourBorderBg>
|
|
</FourBorderBg>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
</MonitorComponent>
|
|
</MonitorComponent>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
- import { onMounted, ref } from 'vue';
|
|
|
|
|
- import FourBorderBg from '/@/views/vent/comment/components/fourBorderBg.vue';
|
|
|
|
|
|
|
+ import { onMounted } from 'vue';
|
|
|
import MonitorComponent from './component.vue';
|
|
import MonitorComponent from './component.vue';
|
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
|
import { useInitConfigs } from '../../home/configurable/hooks/useInit';
|
|
import { useInitConfigs } from '../../home/configurable/hooks/useInit';
|
|
|
- import { mountedThree, setModelType } from './spray.three';
|
|
|
|
|
|
|
|
|
|
- const loading = ref(false);
|
|
|
|
|
const defaultConfigs: Config[] = [
|
|
const defaultConfigs: Config[] = [
|
|
|
{
|
|
{
|
|
|
deviceType: '',
|
|
deviceType: '',
|
|
@@ -83,7 +80,7 @@
|
|
|
items: [
|
|
items: [
|
|
|
{
|
|
{
|
|
|
label: '在线数量',
|
|
label: '在线数量',
|
|
|
- value: '99',
|
|
|
|
|
|
|
+ value: '1',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '异常数量',
|
|
label: '异常数量',
|
|
@@ -141,10 +138,10 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: '工作状态',
|
|
name: '工作状态',
|
|
|
- prop: 'airStatus_str',
|
|
|
|
|
|
|
+ prop: 'readData.online_str',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
- readFrom: '',
|
|
|
|
|
|
|
+ readFrom: 'spray_auto',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
preset: [],
|
|
preset: [],
|
|
@@ -199,27 +196,23 @@
|
|
|
items: [
|
|
items: [
|
|
|
{
|
|
{
|
|
|
label: '绑定控制箱名称',
|
|
label: '绑定控制箱名称',
|
|
|
- value: '${cumulativeFlow}',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].strinstallpos}',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '控制箱地址',
|
|
label: '控制箱地址',
|
|
|
- value: '${heaterTemperature}',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '控制箱在线状态',
|
|
|
|
|
- value: '${nitrogen}',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.snumber}',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '故障从机',
|
|
label: '故障从机',
|
|
|
- value: '${nitrogenContent}',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.Cjgz}',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '浮球液位报警',
|
|
label: '浮球液位报警',
|
|
|
- value: '${nitrogenContent}',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.minimumgrouting}',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '输送管道压力',
|
|
label: '输送管道压力',
|
|
|
- value: '${nitrogenContent}',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.zjbhglpaV}',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
@@ -229,12 +222,12 @@
|
|
|
items: [
|
|
items: [
|
|
|
{
|
|
{
|
|
|
label: '启动状态',
|
|
label: '启动状态',
|
|
|
- value: '0.97',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.online_str}',
|
|
|
color: 'blue',
|
|
color: 'blue',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '报警状态',
|
|
label: '报警状态',
|
|
|
- value: '84.4',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].warnLevel_str}',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
@@ -244,12 +237,12 @@
|
|
|
items: [
|
|
items: [
|
|
|
{
|
|
{
|
|
|
label: '启动状态',
|
|
label: '启动状态',
|
|
|
- value: '0.97',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.online_str}',
|
|
|
color: 'blue',
|
|
color: 'blue',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '故障状态',
|
|
label: '故障状态',
|
|
|
- value: '84.4',
|
|
|
|
|
|
|
+ value: '${spray_auto[0].readData.warnLevel_str}',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
@@ -270,7 +263,6 @@
|
|
|
icon: '/src/assets/images/home-container/configurable/tashanhome/partition-icon-2.png',
|
|
icon: '/src/assets/images/home-container/configurable/tashanhome/partition-icon-2.png',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
- mock: {},
|
|
|
|
|
},
|
|
},
|
|
|
showStyle: {
|
|
showStyle: {
|
|
|
size: 'width:440px;height:700px;',
|
|
size: 'width:440px;height:700px;',
|