|
@@ -24,13 +24,13 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table-container">
|
|
|
- <el-table height="80vh" style="width: 100%" v-loading="listLoading" :key="tableKey" :data="list" row-key="id"
|
|
|
+ <el-table style="width: 100%" v-loading="listLoading" :key="tableKey" :data="list" row-key="id"
|
|
|
stripe border fit highlight-current-row>
|
|
|
<el-table-column label="序号" type="index" width="60" align="center" />
|
|
|
<el-table-column label="视频ID" min-width="100" align="center" prop="id" />
|
|
|
<el-table-column label="视频标题" min-width="150" align="center" prop="videoTitle" />
|
|
|
<el-table-column label="原图片/视频" min-width="130" align="center" prop="videoUrl">
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope" v-if="scope.row.rawVideoUrl">
|
|
|
<div v-if="isVideoFormat(scope.row.rawVideoUrl)" class="video"
|
|
|
@click="handlePlay(scope.row, scope.row.rawVideoUrl)">
|
|
|
<video :src="scope.row.rawVideoUrl" class="video-img" />
|
|
@@ -38,7 +38,7 @@
|
|
|
</div>
|
|
|
<div class="video" v-else>
|
|
|
<el-image class="video-last-img video" :src="scope.row.rawVideoUrl"
|
|
|
- :preview-src-list="[scope.row.rawVideoUrl]" />
|
|
|
+ :preview-src-list="[scope.row.rawVideoUrl]" :lazy="true"/>
|
|
|
<i class="el-icon-zoom-in" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -53,7 +53,7 @@
|
|
|
</div>
|
|
|
<div class="video" v-else>
|
|
|
<el-image class="video-last-img video" :src="scope.row.videoUrl"
|
|
|
- :preview-src-list="[scope.row.videoUrl]" />
|
|
|
+ :preview-src-list="[scope.row.videoUrl]" :lazy="true"/>
|
|
|
<i class="el-icon-zoom-in" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -62,7 +62,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div class="video">
|
|
|
<el-image class="video-last-img video" :src="scope.row.swapModelUrl"
|
|
|
- :preview-src-list="[scope.row.swapModelUrl]" />
|
|
|
+ :preview-src-list="[scope.row.swapModelUrl]" :lazy="true"/>
|
|
|
<i class="el-icon-zoom-in" />
|
|
|
</div>
|
|
|
</template>
|