heyujie
2021-03-10 579fd9fdd67e6dff513c1696f216ccde59d3a9a8
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>
@@ -315,7 +317,7 @@
      curTabPage: 1,
      curTablePage: 1,
      tabPageSize: 8,
      pageSizes: [2, 8, 12, 24],
      pageSizes: [ 8, 12, 24],
      tabTotal: 0,
      tablePageSize: 8,
      tableTotal: 0,
@@ -435,7 +437,7 @@
      this.eventDialogVisible = true;
      this.curEventDetail = label;
      let _this = this;
      getEventVideo({Event:label.Event,LkgID:label.ParentID}).then(res=>{
      getEventVideo({ Event: label.Event, LkgID: label.ParentID }).then(res => {
        _this.eventVideoArr = res.data;
        _this.curEvName = label.Event;
      })
@@ -904,6 +906,9 @@
      //   display: flex;
      //   flex-wrap: wrap;
      // }
      .el-table__row{
        cursor: pointer;
      }
      .el-row {
        padding-top: 20px;
        background: #f5f5f5;
@@ -993,6 +998,12 @@
        }
        .operation {
          cursor: pointer;
          .star{
            color: #ccc;
          }
          .follow{
            color: #409eff;
          }
        }
      }
      .pagination-center {