|
@@ -22,16 +22,16 @@
|
|
|
<VentilateAnalysis />
|
|
|
<WorkSurface />
|
|
|
<DeviceWarning /> -->
|
|
|
- <div v-if="isOriginal">
|
|
|
+ <template v-if="isOriginal">
|
|
|
<ModuleOriginal v-for="cfg in configs" :key="cfg.deviceType" :show-style="cfg.showStyle" :module-name="cfg.moduleName" :visible="visible">
|
|
|
<Content v-bind="cfg" />
|
|
|
</ModuleOriginal>
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
<ModuleEnhanced v-for="cfg in configs" :key="cfg.deviceType" :show-style="cfg.showStyle" :module-name="cfg.moduleName" :visible="visible">
|
|
|
<Content v-bind="cfg" />
|
|
|
</ModuleEnhanced>
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
@@ -44,7 +44,7 @@
|
|
|
// import VentilateAnalysis from './components/VentilateAnalysis.vue';
|
|
|
// import WorkSurface from './components/WorkSurface.vue';
|
|
|
// import DeviceWarning from './components/DeviceWarning.vue';
|
|
|
- import MonitorCenter from './components/MonitorCenter.vue';
|
|
|
+ import MonitorCenter from './components/monitorCenter.vue';
|
|
|
// import { useInitConfigs } from './hooks/useInit';
|
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
|
import ModuleEnhanced from './components/moduleEnhanced.vue';
|
|
@@ -67,11 +67,9 @@
|
|
|
showSelector: true,
|
|
|
showSlot: true,
|
|
|
selector: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
prop: 'strinstallpos',
|
|
|
},
|
|
|
slot: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
prop: 'strinstallpos',
|
|
|
},
|
|
|
},
|
|
@@ -80,7 +78,7 @@
|
|
|
type: 'video',
|
|
|
link: '/src/assets/vedio/fanLocal.mp4',
|
|
|
},
|
|
|
- layout: ['board', 'chart'],
|
|
|
+ layout: ['board'],
|
|
|
board: [
|
|
|
{
|
|
|
label: '风速1',
|
|
@@ -90,36 +88,72 @@
|
|
|
},
|
|
|
{
|
|
|
label: '风速2',
|
|
|
- type: 'D',
|
|
|
+ type: 'B',
|
|
|
layout: 'label-top',
|
|
|
prop: 'readData.windSpeed2',
|
|
|
},
|
|
|
],
|
|
|
+ list: [],
|
|
|
+ chart: [],
|
|
|
+ table: [],
|
|
|
+ },
|
|
|
+ showStyle: {
|
|
|
+ size: 'width:450px;height:280px;',
|
|
|
+ version: 'enhanced',
|
|
|
+ position: 'top:60px;left:0;',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ deviceType: 'sys_majorpath',
|
|
|
+ moduleName: '测试折线图',
|
|
|
+ pageType: '',
|
|
|
+ moduleData: {
|
|
|
+ header: {
|
|
|
+ show: true,
|
|
|
+ showSelector: true,
|
|
|
+ showSlot: true,
|
|
|
+ selector: {
|
|
|
+ prop: 'strinstallpos',
|
|
|
+ },
|
|
|
+ slot: {
|
|
|
+ prop: 'strinstallpos',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ background: {
|
|
|
+ show: false,
|
|
|
+ type: 'video',
|
|
|
+ link: '',
|
|
|
+ },
|
|
|
+ layout: ['chart'],
|
|
|
+ board: [],
|
|
|
+ list: [],
|
|
|
chart: [
|
|
|
{
|
|
|
type: 'line',
|
|
|
- readFrom: 'readData.history',
|
|
|
- xAxis: [{ prop: 'strinstallpos' }],
|
|
|
+ readFrom: 'majorpath.paths',
|
|
|
+ xAxis: [{ prop: 'name' }],
|
|
|
yAxis: [
|
|
|
- { label: '风量', align: 'left' },
|
|
|
- { label: '风速', align: 'right' },
|
|
|
+ { label: 'Drag', align: 'left' },
|
|
|
+ { label: 'M3', align: 'right' },
|
|
|
],
|
|
|
series: [
|
|
|
- { label: '风量', prop: 'f1Val' },
|
|
|
- { label: '风速', prop: 'f2Val' },
|
|
|
+ { label: 'Drag', prop: 'drag' },
|
|
|
+ { label: 'M3', prop: 'm3' },
|
|
|
+ // { label: '回2', prop: 'hui2' },
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
+ table: [],
|
|
|
},
|
|
|
showStyle: {
|
|
|
size: 'width:450px;height:280px;',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:60px;left:0;',
|
|
|
+ position: 'top:350px;left:0;',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- deviceType: 'fanlocal',
|
|
|
- moduleName: '测试局扇',
|
|
|
+ deviceType: 'warn',
|
|
|
+ moduleName: '测试报警',
|
|
|
pageType: '',
|
|
|
moduleData: {
|
|
|
header: {
|
|
@@ -127,12 +161,11 @@
|
|
|
showSelector: false,
|
|
|
showSlot: true,
|
|
|
selector: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
prop: 'strinstallpos',
|
|
|
},
|
|
|
slot: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
- prop: 'strinstallpos',
|
|
|
+ prop: 'netstatus.val',
|
|
|
+ formatter: '网络异常:${} 台',
|
|
|
},
|
|
|
},
|
|
|
background: {
|
|
@@ -140,58 +173,106 @@
|
|
|
type: 'video',
|
|
|
link: '',
|
|
|
},
|
|
|
- layout: ['board', 'chart'],
|
|
|
- board: [
|
|
|
+ layout: ['list'],
|
|
|
+ board: [],
|
|
|
+ chart: [],
|
|
|
+ table: [],
|
|
|
+ list: [
|
|
|
{
|
|
|
- label: '风量',
|
|
|
- type: 'A',
|
|
|
- layout: 'val-top',
|
|
|
- prop: 'f1Val',
|
|
|
+ label: '正常',
|
|
|
+ prop: 'blue.val',
|
|
|
+ color: 'blue',
|
|
|
},
|
|
|
{
|
|
|
- label: '风速',
|
|
|
- type: 'A',
|
|
|
- layout: 'val-top',
|
|
|
- prop: 'f2Val',
|
|
|
+ label: '告警',
|
|
|
+ prop: 'orange.val',
|
|
|
+ color: 'orange',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '报警',
|
|
|
+ prop: 'yellow.val',
|
|
|
+ color: 'yellow',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '危险',
|
|
|
+ prop: 'red.val',
|
|
|
+ color: 'red',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '错误',
|
|
|
+ prop: 'alarm.val',
|
|
|
+ color: 'green',
|
|
|
},
|
|
|
],
|
|
|
+ },
|
|
|
+ showStyle: {
|
|
|
+ size: 'width:450px;height:280px;',
|
|
|
+ version: 'enhanced',
|
|
|
+ position: 'top:640px;left:0;',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ deviceType: 'midinfo',
|
|
|
+ moduleName: '测试中间模块',
|
|
|
+ pageType: '',
|
|
|
+ moduleData: {
|
|
|
+ header: {
|
|
|
+ show: false,
|
|
|
+ showSelector: false,
|
|
|
+ showSlot: false,
|
|
|
+ selector: {
|
|
|
+ icon: 'SwapOutlined',
|
|
|
+ prop: 'strinstallpos',
|
|
|
+ },
|
|
|
+ slot: {
|
|
|
+ icon: 'SwapOutlined',
|
|
|
+ prop: 'strinstallpos',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ background: {
|
|
|
+ show: false,
|
|
|
+ type: 'video',
|
|
|
+ link: '',
|
|
|
+ },
|
|
|
+ layout: ['chart'],
|
|
|
+ board: [],
|
|
|
+ list: [],
|
|
|
+ table: [],
|
|
|
chart: [
|
|
|
{
|
|
|
- type: 'line',
|
|
|
- readFrom: 'readData.history',
|
|
|
- xAxis: [{ prop: 'strinstallpos' }],
|
|
|
+ type: 'bar',
|
|
|
+ readFrom: 'sysdata.history',
|
|
|
+ xAxis: [{ prop: 'time' }],
|
|
|
yAxis: [
|
|
|
- { label: '风量', align: 'left' },
|
|
|
- { label: '风速', align: 'right' },
|
|
|
+ { label: '回1', align: 'left' },
|
|
|
+ // { label: '回2', align: 'right' },
|
|
|
],
|
|
|
series: [
|
|
|
- { label: '风量', prop: 'f1Val' },
|
|
|
- { label: '风速', prop: 'f2Val' },
|
|
|
+ { label: '回1', prop: 'hui1' },
|
|
|
+ // { label: '回2', prop: 'hui2' },
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: 'width:1000px;height:280px;',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:350px;left:0;',
|
|
|
+ position: 'top:640px;left:460px;',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- deviceType: 'fanlocal',
|
|
|
- moduleName: '测试局扇',
|
|
|
+ deviceType: 'sys_wind',
|
|
|
+ moduleName: '测试测风装置',
|
|
|
pageType: '',
|
|
|
moduleData: {
|
|
|
header: {
|
|
|
- show: true,
|
|
|
+ show: false,
|
|
|
showSelector: true,
|
|
|
showSlot: false,
|
|
|
selector: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
prop: 'strinstallpos',
|
|
|
},
|
|
|
slot: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
prop: 'strinstallpos',
|
|
|
},
|
|
|
},
|
|
@@ -200,31 +281,36 @@
|
|
|
type: 'video',
|
|
|
link: '',
|
|
|
},
|
|
|
- layout: ['list'],
|
|
|
- list: [
|
|
|
+ layout: ['blast_delta'],
|
|
|
+ board: [
|
|
|
{
|
|
|
label: '风量',
|
|
|
+ type: 'C',
|
|
|
+ layout: 'val-top',
|
|
|
prop: 'f1Val',
|
|
|
- color: 'blue',
|
|
|
},
|
|
|
{
|
|
|
label: '风速',
|
|
|
+ type: 'C',
|
|
|
+ layout: 'val-top',
|
|
|
prop: 'f2Val',
|
|
|
- color: 'green',
|
|
|
},
|
|
|
],
|
|
|
+ list: [],
|
|
|
+ table: [],
|
|
|
chart: [
|
|
|
{
|
|
|
- type: 'line',
|
|
|
- readFrom: 'readData.history',
|
|
|
- xAxis: [{ prop: 'strinstallpos' }],
|
|
|
+ type: 'pie',
|
|
|
+ readFrom: 'readData',
|
|
|
+ xAxis: [{ prop: 'stationname' }],
|
|
|
yAxis: [
|
|
|
- { label: '风量', align: 'left' },
|
|
|
- { label: '风速', align: 'right' },
|
|
|
+ { label: '风量1', align: 'left' },
|
|
|
+ // { label: '回2', align: 'right' },
|
|
|
],
|
|
|
series: [
|
|
|
- { label: '风量', prop: 'f1Val' },
|
|
|
- { label: '风速', prop: 'f2Val' },
|
|
|
+ { label: '风量1', prop: 'va' },
|
|
|
+ { label: '风量2', prop: 'va2' },
|
|
|
+ // { label: '回2', prop: 'hui2' },
|
|
|
],
|
|
|
},
|
|
|
],
|
|
@@ -232,7 +318,54 @@
|
|
|
showStyle: {
|
|
|
size: 'width:450px;height:280px;',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:640px;left:0;',
|
|
|
+ position: 'top:60px;right:0;',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ deviceType: 'sys_majorpath',
|
|
|
+ moduleName: '测试关键路线',
|
|
|
+ pageType: '',
|
|
|
+ moduleData: {
|
|
|
+ header: {
|
|
|
+ show: false,
|
|
|
+ showSelector: true,
|
|
|
+ showSlot: true,
|
|
|
+ selector: {
|
|
|
+ prop: 'devicePos',
|
|
|
+ },
|
|
|
+ slot: {
|
|
|
+ prop: 'devicePos',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ background: {
|
|
|
+ show: false,
|
|
|
+ type: 'video',
|
|
|
+ link: '',
|
|
|
+ },
|
|
|
+ layout: ['table'],
|
|
|
+ board: [],
|
|
|
+ list: [],
|
|
|
+ table: [
|
|
|
+ {
|
|
|
+ readFrom: 'history',
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ prop: 'A',
|
|
|
+ label: 'A列',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'B',
|
|
|
+ label: 'B列',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ chart: [],
|
|
|
+ },
|
|
|
+ showStyle: {
|
|
|
+ size: 'width:450px;height:570px;',
|
|
|
+ version: 'enhanced',
|
|
|
+ position: 'top:350px;right:0;',
|
|
|
},
|
|
|
},
|
|
|
]);
|
|
@@ -273,23 +406,23 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .module-left {
|
|
|
- position: absolute;
|
|
|
- width: 450px;
|
|
|
- height: 280px;
|
|
|
- left: 0;
|
|
|
- }
|
|
|
- .module-right {
|
|
|
- position: absolute;
|
|
|
- width: 450px;
|
|
|
- height: 280px;
|
|
|
- right: 0;
|
|
|
- }
|
|
|
- .module-bottom {
|
|
|
- position: absolute;
|
|
|
- width: 1000px;
|
|
|
- height: 280px;
|
|
|
- }
|
|
|
+ // .module-left {
|
|
|
+ // position: absolute;
|
|
|
+ // width: 450px;
|
|
|
+ // height: 280px;
|
|
|
+ // left: 0;
|
|
|
+ // }
|
|
|
+ // .module-right {
|
|
|
+ // position: absolute;
|
|
|
+ // width: 450px;
|
|
|
+ // height: 280px;
|
|
|
+ // right: 0;
|
|
|
+ // }
|
|
|
+ // .module-bottom {
|
|
|
+ // position: absolute;
|
|
|
+ // width: 1000px;
|
|
|
+ // height: 280px;
|
|
|
+ // }
|
|
|
.module-dropdown {
|
|
|
padding: 10px;
|
|
|
background-image: linear-gradient(to bottom, #036886, #072a40);
|