From b02c0629be20e8d46f55646d6663b80cb78e205e Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期一, 22 二月 2021 16:45:29 +0800 Subject: [PATCH] 视频检索列表视频名称添加点击弹出详情事件 --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 22 +++++++++++----------- src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 2d8b3dd..bee4349 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -202,7 +202,7 @@ <el-table :data="tableData" fit ref="elTable"> <el-table-column label="鍚嶇О" prop="VideoName" sortable width="500"> <template slot-scope="scope"> - <div style="cursor:pointer;">{{scope.row.VideoName}}</div> + <div style="cursor:pointer;" @click="checkVideoDetail(scope.row)">{{scope.row.VideoName}}</div> </template> </el-table-column> <el-table-column label="澶у皬" prop="VideoSize" sortable></el-table-column> @@ -422,18 +422,18 @@ res.filterlst.forEach(config => { this.$set(config, 'isShow', true); - config.data = Object.keys(config.Node).map(key => { - let obj = {}; - obj.name = key; - obj.id = config.Node[key] - return obj - }); - // config.data = config.Node.map((item) => { + // config.data = Object.keys(config.Node).map(key => { // let obj = {}; - // obj.name = item[0]; - // obj.id = item[1]; - // return obj; + // obj.name = key; + // obj.id = config.Node[key] + // return obj // }); + config.data = config.Node.map((item) => { + let obj = {}; + obj.name = item[0]; + obj.id = item[1]; + return obj; + }); config.id = config.ID; config.title = config.NameZn; config.data.forEach(item => { diff --git a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue index 87a6943..6572fe8 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue @@ -242,7 +242,8 @@ element.marks = _this.mergeMarks(element) console.log(element.marks) }); - _this.curVideo = res.data[0]; + _this.curVideo = res.data.find(item=>item.ID == video.ID); + //_this.curVideo = res.data[0]; _this.videoArrs = res.data; _this.relativeVideos = res.data; this.$nextTick(() => { @@ -366,7 +367,6 @@ _this.curVideo.LableLst = rsp.data; this.$message.success("鍒犻櫎鎴愬姛") // 鏍囨敞 - debugger _this.setMarks(_this.curVideo) } else { this.$message.warning(rsp.msg) -- Gitblit v1.8.0