From 9444fafad6baeffbdd26ee03c797f1d7c2f71522 Mon Sep 17 00:00:00 2001 From: ihzero Date: Mon, 20 Mar 2023 14:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/visualization/components/JK.vue | 44 +++++++++++++++---- .../visualization/components/VideoFlv.vue | 43 +++++++----------- 2 files changed, 51 insertions(+), 36 deletions(-) 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 @@