2020-01-14 09:06:03 +08:00
|
|
|
<template>
|
|
|
|
<transition name="el-zoom-in-center">
|
|
|
|
<div class="mapPaint">
|
|
|
|
<div class="map-view">
|
2020-01-15 10:11:26 +08:00
|
|
|
<iscs-plate ref="iscsPlate" />
|
2020-01-14 09:06:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="map-draft">
|
2020-01-16 16:25:33 +08:00
|
|
|
<iscs-operate v-if="iscsMode==='fas'" ref="iscsOperate" @iscsChange="iscsChange" />
|
|
|
|
<iscs-bas-operate v-else-if="iscsMode==='bas'" ref="iscsBasOperate" @iscsChange="iscsChange" />
|
|
|
|
<iscs-psd-operate v-else-if="iscsMode==='psd'" ref="iscsPsdOperate" @iscsChange="iscsChange" />
|
2020-01-17 14:15:14 +08:00
|
|
|
<iscs-cctv-operate v-else-if="iscsMode==='cctv'" ref="iscsCctvOperate" @iscsChange="iscsChange" />
|
2020-01-14 09:06:03 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</transition>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import IscsPlate from '@/views/iscsSystem/index';
|
|
|
|
import IscsOperate from './iscsOperate/index';
|
2020-01-15 17:56:31 +08:00
|
|
|
import IscsBasOperate from './iscsBasOperate/index';
|
2020-01-16 16:25:33 +08:00
|
|
|
import IscsPsdOperate from './iscsPsdOperate/index';
|
2020-01-17 14:15:14 +08:00
|
|
|
import IscsCctvOperate from './iscsCctvOperate/index';
|
2020-01-14 09:06:03 +08:00
|
|
|
export default {
|
|
|
|
name: 'IscsView',
|
|
|
|
components: {
|
|
|
|
IscsPlate,
|
2020-01-15 17:56:31 +08:00
|
|
|
IscsOperate,
|
2020-01-16 16:25:33 +08:00
|
|
|
IscsBasOperate,
|
2020-01-17 14:15:14 +08:00
|
|
|
IscsPsdOperate,
|
|
|
|
IscsCctvOperate
|
2020-01-14 09:06:03 +08:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
size: {
|
|
|
|
width: this.$store.state.app.width - 521,
|
|
|
|
height: this.$store.state.app.height - 60
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
2020-01-15 17:56:31 +08:00
|
|
|
computed:{
|
|
|
|
iscsMode() {
|
|
|
|
return this.$route.params.mode;
|
|
|
|
}
|
|
|
|
},
|
2020-01-14 09:06:03 +08:00
|
|
|
watch: {
|
2020-01-16 13:15:52 +08:00
|
|
|
$route(val) {
|
2020-01-15 10:11:26 +08:00
|
|
|
|
2020-01-16 13:15:52 +08:00
|
|
|
}
|
2020-01-14 09:06:03 +08:00
|
|
|
},
|
|
|
|
created() {
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.$refs.iscsPlate.show();
|
|
|
|
this.$refs.iscsPlate.drawIscsInit();
|
|
|
|
},
|
|
|
|
beforeDestroy() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
2020-01-15 13:27:07 +08:00
|
|
|
iscsChange() {
|
2020-01-14 09:06:03 +08:00
|
|
|
this.$refs.iscsPlate.drawIscsInit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
|
@import "src/styles/mixin.scss";
|
|
|
|
|
|
|
|
.map-draft{
|
2020-01-15 17:56:31 +08:00
|
|
|
height:100%;
|
|
|
|
/deep/{
|
|
|
|
.v-modal{
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-01-14 09:06:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.map-view {
|
|
|
|
float: left;
|
|
|
|
width: 60%;
|
|
|
|
}
|
|
|
|
.mapPaint{
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.map-draft {
|
|
|
|
float: right;
|
|
|
|
width: 520px;
|
|
|
|
|
|
|
|
// /deep/ .el-scrollbar__view {
|
|
|
|
// width: 510px !important;
|
|
|
|
// height: calc(100% - 40px);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
</style>
|