|
@@ -83,13 +83,22 @@
|
|
|
prop="videoCoverImageUrl"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-if="scope.row.videoCoverImageUrl" class="video" @click="handlePlay(scope.row)">
|
|
|
+ <div
|
|
|
+ v-if="scope.row.videoCoverImageUrl"
|
|
|
+ class="video"
|
|
|
+ @click="handlePlay(scope.row)"
|
|
|
+ >
|
|
|
<img :src="scope.row.videoCoverImageUrl" class="video-img" />
|
|
|
<i class="el-icon-video-play" />
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="SKU" min-width="100" align="center" prop="sku" />
|
|
|
+ <el-table-column
|
|
|
+ label="SKU"
|
|
|
+ min-width="100"
|
|
|
+ align="center"
|
|
|
+ prop="sku"
|
|
|
+ />
|
|
|
|
|
|
<el-table-column
|
|
|
label="SKUID"
|
|
@@ -103,12 +112,15 @@
|
|
|
align="center"
|
|
|
prop="reviewStatus"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span class="status-tag" :class="{
|
|
|
- 'status-pending': scope.row.reviewStatus === 0,
|
|
|
- 'status-success': scope.row.reviewStatus === 1,
|
|
|
- 'status-error': scope.row.reviewStatus === 2
|
|
|
- }"></span>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span
|
|
|
+ class="status-tag"
|
|
|
+ :class="{
|
|
|
+ 'status-pending': scope.row.reviewStatus === 0,
|
|
|
+ 'status-success': scope.row.reviewStatus === 1,
|
|
|
+ 'status-error': scope.row.reviewStatus === 2
|
|
|
+ }"
|
|
|
+ ></span>
|
|
|
{{ getValueByKey(scope.row.reviewStatus, auditStatus) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -132,11 +144,14 @@
|
|
|
prop="publishStatus"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <span class="status-tag" :class="{
|
|
|
- 'status-pending': scope.row.publishStatus === 0,
|
|
|
- 'status-success': scope.row.publishStatus === 1,
|
|
|
- 'status-error': scope.row.publishStatus === 2
|
|
|
- }"></span>
|
|
|
+ <span
|
|
|
+ class="status-tag"
|
|
|
+ :class="{
|
|
|
+ 'status-pending': scope.row.publishStatus === 0,
|
|
|
+ 'status-success': scope.row.publishStatus === 1,
|
|
|
+ 'status-error': scope.row.publishStatus === 2
|
|
|
+ }"
|
|
|
+ ></span>
|
|
|
{{ getValueByKey(scope.row.publishStatus, auditStatus) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -202,7 +217,7 @@
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
min-width="250"
|
|
|
- v-bind="device !== 'mobile' ? {fixed: 'right'} : { }"
|
|
|
+ v-bind="device !== 'mobile' ? { fixed: 'right' } : {}"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<div class="button">
|
|
@@ -278,7 +293,7 @@ export default {
|
|
|
VideoPlayer
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['device']) // 从 vuex 中获取设备类型
|
|
|
+ ...mapGetters(["device"]) // 从 vuex 中获取设备类型
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -290,7 +305,7 @@ export default {
|
|
|
downloadingRows: {},
|
|
|
listQuery: {
|
|
|
page: 1,
|
|
|
- limit: 20,
|
|
|
+ limit: 10,
|
|
|
videoTitle: null
|
|
|
},
|
|
|
currentVideoUrl: null,
|
|
@@ -392,6 +407,14 @@ export default {
|
|
|
display: flex;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
+ &:hover {
|
|
|
+ i {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ .video-img {
|
|
|
+ opacity: 0.6;
|
|
|
+ }
|
|
|
+ }
|
|
|
&-img {
|
|
|
width: 60px;
|
|
|
height: 60px;
|
|
@@ -408,12 +431,9 @@ export default {
|
|
|
transform: translate(-50%, -50%);
|
|
|
font-size: 20px;
|
|
|
font-weight: bold;
|
|
|
- color: #ae8877;
|
|
|
+ color: #fff;
|
|
|
opacity: 0;
|
|
|
cursor: pointer;
|
|
|
- &:hover {
|
|
|
- opacity: 1;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -437,4 +457,3 @@ export default {
|
|
|
background-color: #f56c6c;
|
|
|
}
|
|
|
</style>
|
|
|
-</style>
|