From 894db08c4e512f16884a49ef4f03e4fb5df7a937 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Wed, 24 Aug 2022 13:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=B1=80=E5=9F=BA=E7=A1=80=E8=AE=BE?= =?UTF-8?q?=E6=96=BD=E5=8F=AA=E8=A6=81=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 52 ++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 8dc1c108..eb7001e0 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -438,7 +438,12 @@ - + 批量预览 @@ -474,6 +479,7 @@ @@ -532,6 +550,19 @@ + + + +
+ +
+
{ console.log('打开视频', id) const param = { @@ -895,6 +929,22 @@ options.src = res.data.data }) } + // 打开图片预览 + const openPicture = (id) => { + console.log('打开图片', id) + const param = { + channelCode: id, + } + selectByChannelCode(param).then((res) => { + console.log(res) + if (res.data.data && res.data.data[0].picUrl) { + options.src = res.data.data[0].picUrl + picVisible.value = true + } else { + message.warning('该点位暂无预览图片!') + } + }) + } // const dataTypeList = () => { // if (tabList.value[0].content.indexOf('视频资源') != -1) { // tabList.value[1].content = ['123344', '213124']