From 579fd9fdd67e6dff513c1696f216ccde59d3a9a8 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期三, 10 三月 2021 18:02:17 +0800 Subject: [PATCH] 播放器按钮缺失,朔黄视频播放列表点击功能的修改 --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 51 +++++++++++++++++++++++++++++++++++---------------- 1 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 090a650..eb74ebd 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -154,7 +154,7 @@ </div> </div> <div class="content" v-show="showType == 'menu'"> - <el-row :gutter="20" :align="bottom"> + <el-row :gutter="20" > <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)"> @@ -224,22 +224,24 @@ ></el-pagination> </div> <div class="content" v-show="showType == 'list'"> - <el-table :data="tableData" fit ref="elTable"> + <el-table :data="tableData" fit ref="elTable" @row-click="checkVideoDetail" > <el-table-column label="鍚嶇О" prop="VideoName" sortable width="500"> - <template slot-scope="scope"> - <div - style="cursor: pointer" - @click="checkVideoDetail(scope.row)" - >{{ scope.row.VideoName }}</div> + <template slot-scope="scope" style="cursor: pointer"> + <div>{{ scope.row.VideoName }}</div> </template> </el-table-column> + <el-table-column label="澶у皬" prop="VideoSize" sortable></el-table-column> - <el-table-column label="淇敼鏃ユ湡" prop="UpdatedAt" sortable></el-table-column> - <el-table-column label="鍒涘缓鏃ユ湡" prop="CreatedAt" 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="鎿嶄綔"> <template slot-scope="scope"> <div class="operation"> - <i class="el-icon-star-off" @click="toggleFollow(scope.row)"></i> + <div class="star" > + <i class="iconfont" :class="[scope.row.IsFollow ? 'follow' : '', 'iconguanzhu']" @click.stop="toggleFollow(scope.row)"></i> + </div> + <!-- <i class="el-icon-star-off" @click="toggleFollow(scope.row)"></i> --> </div> </template> </el-table-column> @@ -275,9 +277,9 @@ > <div class="title" slot="title"> <i class="el-icon-connection"></i> - <span>shoubi瑙嗛</span> + <span>{{curEvName}}瑙嗛</span> </div> - <event-videos :eventDetail="curEventDetail"></event-videos> + <event-videos :eventVideoArr="eventVideoArr"></event-videos> </el-dialog> </div> </div> @@ -292,6 +294,7 @@ getLabelMap, delLabel, editLabel, + getEventVideo } from "@/api/shuohuang"; import VideoAnalyze from "./videoAnalyze"; import EventVideos from "./eventVideos"; @@ -314,7 +317,7 @@ curTabPage: 1, curTablePage: 1, tabPageSize: 8, - pageSizes: [2, 8, 12, 24], + pageSizes: [ 8, 12, 24], tabTotal: 0, tablePageSize: 8, tableTotal: 0, @@ -414,7 +417,8 @@ labelDialogVisible: false, selectedVideo: {}, eventDialogVisible: false, - curEventDetail: {} + curEvName: '', + eventVideoArr: [] }; }, watch: { @@ -432,6 +436,11 @@ checkEventVideo (label) { this.eventDialogVisible = true; this.curEventDetail = label; + let _this = this; + getEventVideo({ Event: label.Event, LkgID: label.ParentID }).then(res => { + _this.eventVideoArr = res.data; + _this.curEvName = label.Event; + }) }, handleTabSizeChange (size) { this.tabPageSize = size; @@ -528,7 +537,6 @@ } else { _this.tabTotal = res.total; _this.tabData = res.data; - // debugger _this.tabData = _this.tabData.map(function (item) { const set = new Set() item.LableLst.forEach(function (label) { @@ -827,6 +835,8 @@ height: 40px; line-height: 40px; border: none; + color: #2c3e50; + font-size: 12px; } .el-menu--popup { display: flex; @@ -838,6 +848,7 @@ } .highlevel-option { font-size: 12px; + color: #2c3e50; &:hover { color: #6486e7; } @@ -895,6 +906,9 @@ // display: flex; // flex-wrap: wrap; // } + .el-table__row{ + cursor: pointer; + } .el-row { padding-top: 20px; background: #f5f5f5; @@ -907,7 +921,6 @@ position: relative; text-align: left; background: #fff; - border: 1px solid #dedede; border-radius: 5px; height: 360px; margin-bottom: 10px; @@ -985,6 +998,12 @@ } .operation { cursor: pointer; + .star{ + color: #ccc; + } + .follow{ + color: #409eff; + } } } .pagination-center { -- Gitblit v1.8.0