51 lines
986 B
Vue
51 lines
986 B
Vue
<template>
|
|
<a-row>
|
|
<a-col :span="8">
|
|
<Scene v-bind:scene="currentScene" />
|
|
<iframe src="http://10.8.0.95:8080/" class="videoframe"></iframe>
|
|
</a-col>
|
|
<a-col :span="8" v-for="item in frames" :key="item.id">
|
|
<Frame v-bind:scene="currentScene" v-bind:frame="item" v-bind:sources="sources"/>
|
|
</a-col>
|
|
</a-row>
|
|
</template>
|
|
|
|
<script>
|
|
import Scene from '@/components/Scene.vue'
|
|
import Frame from '@/components/Frame.vue'
|
|
|
|
export default {
|
|
name: 'SceneView',
|
|
components: {
|
|
Scene,
|
|
Frame
|
|
},
|
|
computed: {
|
|
sources () {
|
|
return this.$store.state.sources
|
|
},
|
|
scenes () {
|
|
return this.$store.getters.scenes
|
|
},
|
|
frames () {
|
|
return this.currentScene.frames
|
|
},
|
|
currentScene () {
|
|
return this.$store.state.scenes[this.$route.params.id]
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.ant-row > div {
|
|
max-width:300px;
|
|
}
|
|
|
|
.videoframe {
|
|
border: none;
|
|
background: #eee;
|
|
width: 100%;
|
|
height: 180px;
|
|
}
|
|
</style>
|