diff --git a/src/views/visualization/components/JK.vue b/src/views/visualization/components/JK.vue index 5eb308eb..843a2057 100644 --- a/src/views/visualization/components/JK.vue +++ b/src/views/visualization/components/JK.vue @@ -39,29 +39,40 @@ v-for="(item, index) in listBig" :key="index" > - +
- -
+ + + + @@ -83,6 +94,7 @@ import v01 from '../../../assets/images/v01.png' import v02 from '../../../assets/images/v02.png' import v03 from '../../../assets/images/v03.png' + import LinkModal from '../LinkModal.vue' export default defineComponent({ components: { Box, @@ -91,6 +103,7 @@ Menu, MenuItem: Menu.Item, VideoFlv, + LinkModal, }, props: ['baseId'], setup(props) { @@ -102,10 +115,14 @@ list: ref([]), }) + const visibleModal = ref(false) + const chartRef = ref(null) const currentVido = ref(null) + const currentModelVideo = ref(null) + const listSmall = computed(() => Data.list.slice(1, 4)) const listBig = computed(() => Data.list.slice(0, 1)) @@ -173,6 +190,12 @@ if (currentVido.value.url == e.url) return currentVido.value = e } + + function onScreenClick(e) { + currentModelVideo.value = e + visibleModal.value = true + } + const isBase = computed(() => !!props.baseId) onBeforeMount(() => { @@ -193,10 +216,13 @@ listSmall, onChangeVideo, currentVido, + currentModelVideo, ...toRefs(Data), chartRef, currentTabValue, onMenuClick, + visibleModal, + onScreenClick, } }, }) diff --git a/src/views/visualization/components/VideoFlv.vue b/src/views/visualization/components/VideoFlv.vue index 83b3f555..c6915545 100644 --- a/src/views/visualization/components/VideoFlv.vue +++ b/src/views/visualization/components/VideoFlv.vue @@ -1,37 +1,21 @@