From c7eebdfc2fb2de3f81aab9d14c1190e20e70ea9f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期五, 18 六月 2021 17:16:06 +0800 Subject: [PATCH] 修复朔黄视频底图路径 --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 0dddf47..012a5df 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -158,7 +158,7 @@ <el-col :xs="8" :sm="6" :md="6" :lg="6" v-for="data in tabData" :key="data.id"> <div class="card"> <div class="video-wrap" @click="checkVideoDetail(data)"> - <img :src="data.VideoCover" alt /> + <img :src="data.VideoCover | fixPath" alt /> </div> <div class="video-info"> <div class="base-info"> @@ -316,7 +316,6 @@ getRelatedVideoInfo, getLabelMap, delLabel, - editLabel, getEventVideo, } from "@/api/shuohuang"; import VideoAnalyze from "./videoAnalyze"; @@ -327,13 +326,22 @@ VideoAnalyze, EventVideos, }, + filters: { + fixPath(str) { + if (!str || str == undefined) { + return "" + } + + return str.replace("/opt/vasystem", "") + } + }, data() { return { CLIP: "http://", keyword: "", IsFollow: "", searchTime: [ - new Date(2021, 0, 1, 0, 0, 0), + new Date(2020, 0, 1, 0, 0, 0), new Date(2021, 11, 31, 23, 59, 59), ], curTabPage: 1, -- Gitblit v1.8.0