|
|
@@ -16,6 +16,7 @@
|
|
|
<el-table
|
|
|
:data="dataList"
|
|
|
border
|
|
|
+ height="480"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column
|
|
|
@@ -24,7 +25,7 @@
|
|
|
type="index"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="publishAt"
|
|
|
+ prop="pubDate"
|
|
|
label="发布时间"
|
|
|
width="150"
|
|
|
/>
|
|
|
@@ -114,31 +115,18 @@
|
|
|
width="120"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tooltip class="item" effect="dark" content="点击修改可见范围" placement="top-end">
|
|
|
- <el-button
|
|
|
- v-if="scope.row.scope === 1"
|
|
|
- size="mini"
|
|
|
- @click="handleScope(scope.$index, scope.row)"
|
|
|
- >本人可见</el-button>
|
|
|
- <el-button
|
|
|
- v-else-if="scope.row.scope === 2"
|
|
|
- size="mini"
|
|
|
- type="success"
|
|
|
- @click="handleScope(scope.$index, scope.row)"
|
|
|
- >所有人可见</el-button>
|
|
|
- <el-button
|
|
|
- v-else-if="scope.row.scope === 3"
|
|
|
- size="mini"
|
|
|
- type="warning"
|
|
|
- @click="handleScope(scope.$index, scope.row)"
|
|
|
- >VIP 可见</el-button>
|
|
|
- <el-button
|
|
|
- v-else
|
|
|
- size="mini"
|
|
|
- type="danger"
|
|
|
- @click="handleScope(scope.$index, scope.row)"
|
|
|
- >验证码可见</el-button>
|
|
|
- </el-tooltip>
|
|
|
+ <el-tag v-if="scope.row.scope === 1" :type="'warning'" disable-transitions>
|
|
|
+ 本人可见
|
|
|
+ </el-tag>
|
|
|
+ <el-tag v-else-if="scope.row.scope === 2" :type="'success'" disable-transitions>
|
|
|
+ 所有人可见
|
|
|
+ </el-tag>
|
|
|
+ <el-tag v-else-if="scope.row.scope === 3" :type="'danger'" disable-transitions>
|
|
|
+ VIP 可见
|
|
|
+ </el-tag>
|
|
|
+ <el-tag v-else :type="'danger'" disable-transitions>
|
|
|
+ 验证码可见
|
|
|
+ </el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -164,6 +152,17 @@
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="videoId"
|
|
|
+ label="创作者"
|
|
|
+ width="120"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <router-link target="_blank" :to="`/video/${scope.row.videoId}`">
|
|
|
+ <span>{{ scope.row.videoId }}</span>
|
|
|
+ </router-link>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
@@ -234,13 +233,12 @@
|
|
|
|
|
|
<script>
|
|
|
import VideoPreviewPlayer from 'components/VideoPreviewPlayer'
|
|
|
-import VideoPostPublish from '@/views/post/VideoPostPublish'
|
|
|
-import { updateVideoScope, videoInfo, deleteVideoPost, getVideoPosts, addVideoPost } from '@/api/video'
|
|
|
-import {getVideoList} from "@/api/admin";
|
|
|
+import { updateVideoScope, videoInfo } from '@/api/video'
|
|
|
+import { getVideoList } from '@/api/admin'
|
|
|
|
|
|
export default {
|
|
|
name: 'VideoPost',
|
|
|
- components: { VideoPreviewPlayer, VideoPostPublish },
|
|
|
+ components: { VideoPreviewPlayer },
|
|
|
data() {
|
|
|
return {
|
|
|
queryInfo: {
|
|
|
@@ -284,7 +282,7 @@ export default {
|
|
|
if (resp.code === 0) {
|
|
|
const respData = resp.data
|
|
|
this.dataList = respData.list
|
|
|
- this.nextId = respData.nextId
|
|
|
+ this.totalSize = respData.data.totalSize
|
|
|
}
|
|
|
})
|
|
|
},
|