|
|
@@ -55,7 +55,7 @@
|
|
|
type="danger"
|
|
|
size="mini"
|
|
|
icon="el-icon-delete"
|
|
|
- @click="deleteVideo(video.videoId)"
|
|
|
+ @click="deleteVideo(video)"
|
|
|
>
|
|
|
<span>删除</span>
|
|
|
</el-button>
|
|
|
@@ -369,7 +369,50 @@ export default {
|
|
|
// 用户点击收藏
|
|
|
collection(videoId) {
|
|
|
},
|
|
|
- deleteVideo(videoId) {
|
|
|
+ deleteVideo(video) {
|
|
|
+ this.$confirm('确定要删除 ' + video.title + '?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ customClass: 'msgbox'
|
|
|
+ }).then(() => {
|
|
|
+ const videoId = video.videoId
|
|
|
+ const errorReportForm = {
|
|
|
+ videoId: videoId,
|
|
|
+ errorCode: 4
|
|
|
+ }
|
|
|
+
|
|
|
+ videoErrorDelete(errorReportForm).then(resp => {
|
|
|
+ if (resp.code === 0) {
|
|
|
+ this.errorReportForm.errorCode = null
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '视频错误已提交',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: resp.msg,
|
|
|
+ type: 'warning',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: error.message,
|
|
|
+ type: 'warning',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
submitAccessCodeWrapper() {
|
|
|
},
|
|
|
@@ -549,6 +592,10 @@ export default {
|
|
|
padding-left: 0.5%;
|
|
|
padding-right: 0.5%;
|
|
|
}
|
|
|
+
|
|
|
+ .msgbox{
|
|
|
+ width: 320px !important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.movie-list {
|