rt-sim-training-client/src/views/iscs/iscsSystem/config/index.vue

129 lines
4.4 KiB
Vue
Raw Normal View History

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-01-17 17:48:08 +08:00
<standFAS v-if="mode == 'standFAS'" />
2020-01-19 18:56:36 +08:00
<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'" />
<big-system v-else-if="mode==='bigSystem'" />
2020-05-08 10:18:47 +08:00
<small-system v-else-if="mode==='smallSystem'" />
<water-system v-else-if="mode==='waterSystem'" />
2020-06-02 17:50:56 +08:00
<lighting-system v-else-if="mode === 'lighting'" />
2020-05-07 16:39:38 +08:00
<graphic-ele ref="graphicEle" />
2020-05-07 18:47:13 +08:00
<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';
import BigSystem from './bas/bigSystem';
2020-05-08 10:18:47 +08:00
import SmallSystem from './bas/smallSystem';
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-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,
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,
BigSystem,
2020-06-02 17:50:56 +08:00
waterSystem,
LightingSystem
2020-01-17 17:48:08 +08:00
},
data() {
return {
2020-05-07 18:47:13 +08:00
mode: 'standFAS',
deviceList: ['ManualAlarmButton', 'SmokeDetector', 'FireHydranAlarmButton', 'GasFireControl']
2020-01-17 17:48:08 +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;
if (device._type === 'IscsButton' && device.function === 'GraphicEle') {
2020-05-07 16:39:38 +08:00
this.$refs.graphicEle.doShow();
2020-05-07 18:47:13 +08:00
} else if (this.deviceList.includes(device._type)) {
this.$refs.deviceControl.doShow(device);
2020-05-07 16:39:38 +08:00
}
}
},
mounted() {
this.mode = this.$route.params.mode;
2020-01-17 17:48:08 +08:00
}
};
</script>
<style lang="scss" scoped>
</style>