hanbaoshan
2021-02-22 b02c0629be20e8d46f55646d6663b80cb78e205e
视频检索列表视频名称添加点击弹出详情事件
2个文件已修改
26 ■■■■ 已修改文件
src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/shuohuangMonitorAnalyze/components/videoAnalyze.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 => {
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)