| | |
| | | <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"> |
| | |
| | | </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"> |
| | |
| | | getRelatedVideoInfo, |
| | | getLabelMap, |
| | | delLabel, |
| | | editLabel, |
| | | getEventVideo, |
| | | } from "@/api/shuohuang"; |
| | | import VideoAnalyze from "./videoAnalyze"; |
| | |
| | | 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, |
| | |
| | | }, |
| | | 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; |
| | |
| | | if (_this.showType == "list") { |
| | | _this.tableTotal = res.total; |
| | | _this.tableData = res.data; |
| | | debugger |
| | | } else { |
| | | _this.tabTotal = res.total; |
| | | _this.tabData = res.data; |