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']