From e70f4f14cc409b6b75e1f9191cc9255fa66032e8 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期二, 22 六月 2021 14:13:47 +0800
Subject: [PATCH] 修复全景跟踪的查询接口

---
 src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
index 02a834b..360f613 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">
@@ -237,8 +237,8 @@
           </el-table-column>
 
           <el-table-column label="澶у皬" prop="VideoSize" sortable></el-table-column>
-          <el-table-column label="淇敼鏃ユ湡" prop="VideoUpdateDate" sortable></el-table-column>
-          <el-table-column label="鍒涘缓鏃ユ湡" prop="VideoCreateDate" sortable></el-table-column>
+          <el-table-column label="瑙嗛鏃堕棿" prop="VideoDate" sortable></el-table-column>
+          <!-- <el-table-column label="鍒涘缓鏃ユ湡" prop="VideoCreateDate" sortable></el-table-column> -->
 
           <el-table-column label="鎿嶄綔">
             <template slot-scope="scope">
@@ -326,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,
@@ -484,6 +493,7 @@
         if (_this.showType == "list") {
           _this.tableTotal = res.total;
           _this.tableData = res.data;
+          debugger
         } else {
           _this.tabTotal = res.total;
           _this.tabData = res.data;

--
Gitblit v1.8.0