|
|
@@ -196,25 +196,6 @@
|
|
|
width="30%"
|
|
|
center
|
|
|
>
|
|
|
- <el-card class="box-card">
|
|
|
- <div slot="header" class="clearfix">
|
|
|
- <span>视频报错</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="submitErrorReport">提交错误</el-button>
|
|
|
- </div>
|
|
|
- <div class="text item">
|
|
|
- <el-form ref="form" :model="errorReportForm" label-width="80px">
|
|
|
- <el-form-item label="错误类型">
|
|
|
- <el-select v-model="errorReportForm.errorCode" placeholder="选择视频错误类型">
|
|
|
- <el-option label="视频无封面" value="1" />
|
|
|
- <el-option label="视频无声音" value="2" />
|
|
|
- <el-option label="视频无画面" value="3" />
|
|
|
- <el-option label="视频无资源" value="4" />
|
|
|
- <el-option label="视频待删除" value="5" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
</el-dialog>
|
|
|
</el-row>
|
|
|
<el-row v-else>
|
|
|
@@ -232,7 +213,7 @@ import flvjs from 'flv.js'
|
|
|
import DPlayer from 'dplayer'
|
|
|
|
|
|
import { videoUrl, similarVideo, videoInfo, videoErrorReport, downloadVideo, cacheBiliVideo } from '@/api/video'
|
|
|
-import { collectItem, getAlbumItems, getPlaylistItems } from '@/api/collect'
|
|
|
+import { collectItem, getPlaylistItems } from '@/api/collect'
|
|
|
import { getUserInfo } from '@/api/user'
|
|
|
import { submitAccessCode } from '@/api/content'
|
|
|
import { getAccessToken } from '@/utils/auth'
|
|
|
@@ -435,84 +416,16 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getDownloadUrl(videoId) {
|
|
|
- // let filename
|
|
|
- downloadVideo(videoId).then(resp => {
|
|
|
- if (resp.code === 0) {
|
|
|
- const downloadUrl = resp.data.url
|
|
|
- window.open(downloadUrl, '_blank')
|
|
|
- } else {
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: resp.msg,
|
|
|
- type: 'warning',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(error => {
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: error.message,
|
|
|
- type: 'error',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- })
|
|
|
},
|
|
|
cacheBiliVideo(bvId) {
|
|
|
- cacheBiliVideo(bvId).then(resp => {
|
|
|
- if (resp.code === 0) {
|
|
|
- const resData = resp.data
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: resData.msg,
|
|
|
- type: 'warning',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
},
|
|
|
submitAccessCodeWrapper() {
|
|
|
- submitAccessCode(this.accessCodeForm).then(resp => {
|
|
|
- if (resp.code === 0) {
|
|
|
- this.video = resp.data
|
|
|
- } else {
|
|
|
- this.$notify({
|
|
|
- message: resp.msg,
|
|
|
- type: 'warning',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(error => {
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: error.message,
|
|
|
- type: 'warning',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- })
|
|
|
},
|
|
|
displayErrorReportDialog() {
|
|
|
this.errorReportForm.videoId = this.video.videoId
|
|
|
this.showErrorReportDialog = true
|
|
|
},
|
|
|
submitErrorReport() {
|
|
|
- this.showErrorReportDialog = false
|
|
|
- videoErrorReport(this.errorReportForm).then(resp => {
|
|
|
- if (resp.code === 0) {
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: '视频错误已提交',
|
|
|
- type: 'warning',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(error => {
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: error.message,
|
|
|
- type: 'warning',
|
|
|
- duration: 3000
|
|
|
- })
|
|
|
- })
|
|
|
},
|
|
|
// ****************************************************************************************************************
|
|
|
getVideoUrl(videoId) {
|