From 196f223575c64aaf0b1b5c5f7dfdee391a6e122a Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期四, 24 六月 2021 17:31:18 +0800
Subject: [PATCH] 修复关联视频切换的bug

---
 src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
index 012a5df..91996a4 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
@@ -236,9 +236,13 @@
             </template>
           </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="VideoSize" sortable>
+            <template slot-scope="scope" style="cursor: pointer">
+              <div>{{ Math.round((+scope.row.VideoSize) / (1024*1024)) + " MB" }}</div>
+            </template>
+          </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">
@@ -313,9 +317,7 @@
   getlstInit,
   updateVideoAnalyze,
   getlst,
-  getRelatedVideoInfo,
   getLabelMap,
-  delLabel,
   getEventVideo,
 } from "@/api/shuohuang";
 import VideoAnalyze from "./videoAnalyze";
@@ -428,10 +430,15 @@
   },
   methods: {
     checkEventVideo(label) {
+      if (label.LKGID != "") {
+        this.$message.warning("璇ヤ簨浠舵病鏈夌浉鍏宠仈鐨勮棰�")
+        return
+      }
+
       this.eventDialogVisible = true;
       this.curEventDetail = label;
       let _this = this;
-      getEventVideo({ Event: label.Event, LkgID: label.ParentID }).then(
+      getEventVideo({ event: label.Event, videoId: label.VideoIds }).then(
         (res) => {
           _this.eventVideoArr = res.data;
           _this.curEvName = label.Event;
@@ -493,6 +500,7 @@
         if (_this.showType == "list") {
           _this.tableTotal = res.total;
           _this.tableData = res.data;
+          debugger
         } else {
           _this.tabTotal = res.total;
           _this.tabData = res.data;
@@ -592,7 +600,7 @@
               config.showMore = false;
             }
           });
-          console.log(this.optionalConfigs);
+          // console.log(this.optionalConfigs);
         });
       });
     },

--
Gitblit v1.8.0