2020-01-17 17:48:08 +08:00
|
|
|
<template>
|
2020-01-20 10:55:33 +08:00
|
|
|
<div style="height: 100%; width: 100%;overflow-y: auto;">
|
2020-06-05 14:46:37 +08:00
|
|
|
<standFAS v-if="mode === 'standFAS'" />
|
|
|
|
<stationHallFAS v-else-if="mode === 'stationHallFAS'" />
|
|
|
|
<systemFAS v-else-if="mode === 'systemFAS'" />
|
2020-01-21 16:05:52 +08:00
|
|
|
<home-screen v-else-if="mode === 'mainScreenPA'" />
|
2020-01-19 18:56:36 +08:00
|
|
|
<main-screen v-else-if="mode === 'MainScreen'" />
|
|
|
|
<lcd-control v-else-if="mode === 'LCDcontrol'" />
|
|
|
|
<time-preview v-else-if="mode === 'TimePreview'" />
|
|
|
|
<station-network v-else-if="mode === 'StationNetwork'" />
|
|
|
|
<emergency-release v-else-if="mode === 'EmergencyRelease'" />
|
2020-01-20 18:29:06 +08:00
|
|
|
<controlBAS v-else-if="mode === 'controlBAS'" />
|
2020-01-21 16:44:46 +08:00
|
|
|
<controlPermissionBAS v-else-if="mode === 'controlPermissionBAS'" />
|
2020-01-20 14:04:31 +08:00
|
|
|
<radioListeningPA v-else-if="mode === 'radioListeningPA'" />
|
|
|
|
<timePreviewPA v-else-if="mode === 'timePreviewPA'" />
|
|
|
|
<controlCCTV v-else-if="mode === 'controlCCTV'" />
|
|
|
|
<timeCCTV v-else-if="mode === 'timeCCTV'" />
|
|
|
|
<timeEditCCTV v-else-if="mode === 'timeEditCCTV'" />
|
|
|
|
<statusCCTV v-else-if="mode === 'statusCCTV'" />
|
|
|
|
<centerStatusCCTV v-else-if="mode === 'centerStatusCCTV'" />
|
|
|
|
<PSD v-else-if="mode === 'PSD'" />
|
|
|
|
<AFC v-else-if="mode === 'AFC'" />
|
|
|
|
<stationHallACS v-else-if="mode === 'stationHallACS'" />
|
|
|
|
<standACS v-else-if="mode === 'standACS'" />
|
|
|
|
<doorFG v-else-if="mode === 'doorFG'" />
|
2020-05-07 11:20:52 +08:00
|
|
|
<sensor v-else-if="mode==='sensor'" />
|
2020-05-07 16:38:24 +08:00
|
|
|
<big-system v-else-if="mode==='bigSystem'" />
|
2020-05-08 10:18:47 +08:00
|
|
|
<small-system v-else-if="mode==='smallSystem'" />
|
2020-06-01 18:21:36 +08:00
|
|
|
<water-system v-else-if="mode==='waterSystem'" />
|
2020-06-02 17:50:56 +08:00
|
|
|
<lighting-system v-else-if="mode === 'lighting'" />
|
2020-06-04 17:29:18 +08:00
|
|
|
<electric-escalator v-else-if="mode === 'electricEscalator'" />
|
|
|
|
<water-supply v-else-if="mode === 'waterSupply'" />
|
2020-06-05 14:46:37 +08:00
|
|
|
<graphic-ele ref="graphicEle" />
|
|
|
|
<device-control ref="deviceControl" />
|
2020-01-17 17:48:08 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import standFAS from './fire-alarm/stand';
|
|
|
|
import stationHallFAS from './fire-alarm/stationHall';
|
|
|
|
import systemFAS from './fire-alarm/system';
|
2020-01-19 15:29:05 +08:00
|
|
|
import HomeScreen from './broadcast/homeScreen';
|
2020-01-19 18:56:36 +08:00
|
|
|
import MainScreen from './pis/mainScreen';
|
|
|
|
import LcdControl from './pis/lcdControl';
|
|
|
|
import TimePreview from './pis/timePreview';
|
|
|
|
import StationNetwork from './pis/stationNetwork';
|
|
|
|
import EmergencyRelease from './pis/emergencyRelease';
|
2020-01-20 18:29:06 +08:00
|
|
|
import controlBAS from './bas/controlBAS';
|
2020-01-21 16:44:46 +08:00
|
|
|
import controlPermissionBAS from './bas/controlPermissionBAS';
|
2020-01-20 14:04:31 +08:00
|
|
|
import radioListeningPA from './pa/radioListeningPA';
|
|
|
|
import timePreviewPA from './pa/timePreviewPA';
|
|
|
|
import controlCCTV from './cctv/controlCCTV';
|
|
|
|
import timeCCTV from './cctv/timeCCTV';
|
|
|
|
import timeEditCCTV from './cctv/timeEditCCTV';
|
|
|
|
import statusCCTV from './cctv/statusCCTV';
|
|
|
|
import centerStatusCCTV from './cctv/centerStatusCCTV';
|
|
|
|
import PSD from './psd/psd';
|
|
|
|
import AFC from './afc/afc';
|
|
|
|
import stationHallACS from './acs/stationHallACS';
|
|
|
|
import standACS from './acs/standACS';
|
|
|
|
import doorFG from './fg/doorFG';
|
2020-05-07 11:20:52 +08:00
|
|
|
import Sensor from './bas/sensor';
|
2020-05-07 16:38:24 +08:00
|
|
|
import BigSystem from './bas/bigSystem';
|
2020-05-08 10:18:47 +08:00
|
|
|
import SmallSystem from './bas/smallSystem';
|
2020-06-01 18:21:36 +08:00
|
|
|
import waterSystem from './bas/waterSystem';
|
2020-06-02 17:50:56 +08:00
|
|
|
import LightingSystem from './bas/lightingSystem';
|
2020-05-07 16:39:38 +08:00
|
|
|
import GraphicEle from './graphicEle';
|
2020-05-07 18:47:13 +08:00
|
|
|
import DeviceControl from './deviceControl';
|
2020-06-04 17:29:18 +08:00
|
|
|
import ElectricEscalator from './bas/electricEscalator';
|
|
|
|
import WaterSupply from './bas/waterSupply';
|
2020-01-17 17:48:08 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
standFAS,
|
|
|
|
stationHallFAS,
|
2020-01-19 15:29:05 +08:00
|
|
|
systemFAS,
|
2020-01-19 18:56:36 +08:00
|
|
|
HomeScreen,
|
|
|
|
MainScreen,
|
|
|
|
LcdControl,
|
|
|
|
TimePreview,
|
|
|
|
StationNetwork,
|
2020-01-20 14:04:31 +08:00
|
|
|
EmergencyRelease,
|
2020-01-20 18:29:06 +08:00
|
|
|
controlBAS,
|
2020-01-21 16:44:46 +08:00
|
|
|
controlPermissionBAS,
|
2020-01-20 14:04:31 +08:00
|
|
|
radioListeningPA,
|
|
|
|
timePreviewPA,
|
|
|
|
controlCCTV,
|
|
|
|
timeCCTV,
|
|
|
|
timeEditCCTV,
|
|
|
|
statusCCTV,
|
|
|
|
centerStatusCCTV,
|
|
|
|
PSD,
|
|
|
|
AFC,
|
|
|
|
stationHallACS,
|
|
|
|
standACS,
|
2020-05-07 11:20:52 +08:00
|
|
|
doorFG,
|
2020-05-07 16:38:24 +08:00
|
|
|
Sensor,
|
2020-05-07 18:47:13 +08:00
|
|
|
GraphicEle,
|
2020-05-07 18:48:51 +08:00
|
|
|
DeviceControl,
|
2020-05-08 10:18:47 +08:00
|
|
|
SmallSystem,
|
2020-06-01 18:21:36 +08:00
|
|
|
BigSystem,
|
2020-06-02 17:50:56 +08:00
|
|
|
waterSystem,
|
2020-06-04 17:29:18 +08:00
|
|
|
LightingSystem,
|
|
|
|
ElectricEscalator,
|
|
|
|
WaterSupply
|
2020-01-17 17:48:08 +08:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2020-05-07 18:47:13 +08:00
|
|
|
mode: 'standFAS',
|
2020-06-05 14:46:37 +08:00
|
|
|
deviceList: [
|
|
|
|
'ManualAlarmButton',
|
|
|
|
'SmokeDetector',
|
|
|
|
'FireHydranAlarmButton',
|
|
|
|
'GasFireControl',
|
|
|
|
'LightingGroup',
|
|
|
|
'Electrically',
|
|
|
|
'VolumeControlDamper',
|
|
|
|
'SmookExhaustFd',
|
|
|
|
'Ventilator',
|
|
|
|
'AirConditioner',
|
|
|
|
'FireDamper',
|
2020-06-05 18:59:35 +08:00
|
|
|
'SmookProofFd',
|
|
|
|
'CoolTower',
|
|
|
|
'Chiller',
|
|
|
|
'ElectricButterflyValve',
|
|
|
|
'BalancedElectric',
|
|
|
|
'FrozenPump',
|
|
|
|
'TunnelFan',
|
2020-06-08 18:40:48 +08:00
|
|
|
'OrbitalVentilator',
|
|
|
|
'Draught'
|
2020-06-05 14:46:37 +08:00
|
|
|
]
|
2020-01-17 17:48:08 +08:00
|
|
|
};
|
2020-01-20 09:20:09 +08:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
'$route': function(val) {
|
|
|
|
this.mode = this.$route.params.mode;
|
2020-05-07 16:39:38 +08:00
|
|
|
},
|
|
|
|
'$store.state.iscs.selectedCount': function() {
|
2020-05-07 18:47:13 +08:00
|
|
|
const device = this.$store.state.iscs.selected;
|
2020-06-05 14:46:37 +08:00
|
|
|
if (device && device._type === 'IscsButton' && device.function === 'GraphicEle') {
|
2020-05-07 16:39:38 +08:00
|
|
|
this.$refs.graphicEle.doShow();
|
2020-06-05 14:46:37 +08:00
|
|
|
} else if (device && this.deviceList.includes(device._type)) {
|
2020-05-07 18:47:13 +08:00
|
|
|
this.$refs.deviceControl.doShow(device);
|
2020-05-07 16:39:38 +08:00
|
|
|
}
|
2020-01-20 09:20:09 +08:00
|
|
|
}
|
2020-01-20 11:05:05 +08:00
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.mode = this.$route.params.mode;
|
2020-01-17 17:48:08 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|