|
|
@@ -508,7 +508,21 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleEditVideo(scope.row)">编辑</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ :disabled="scope.row.progress !== 100"
|
|
|
+ @click="handleEditVideo(scope.row)">
|
|
|
+ 编辑
|
|
|
+ <el-tooltip
|
|
|
+ v-if="scope.row.progress !== 100"
|
|
|
+ content="上传完成后可编辑"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i class="el-icon-question"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@@ -1677,6 +1691,10 @@ export default {
|
|
|
},
|
|
|
/** 编辑视频信息 */
|
|
|
handleEditVideo(row) {
|
|
|
+ if (row.progress !== 100) {
|
|
|
+ this.$message.warning('请等待上传完成后再编辑');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.batchEditDialog.form = Object.assign({}, row)
|
|
|
this.changeCateType(row.typeId)
|
|
|
this.batchEditDialog.open = true
|
|
|
@@ -1945,7 +1963,7 @@ export default {
|
|
|
|
|
|
// 检查上传结果
|
|
|
const line1Success = line1Result.status === 'fulfilled' && line1Result.value.success;
|
|
|
- const line2Success = line1Result.status === 'fulfilled' && line1Result.value.success;
|
|
|
+ const line2Success = line2Result.status === 'fulfilled' && line2Result.value.success;
|
|
|
|
|
|
const index = this.videoList.findIndex(item => item.tempId === tempVideo.tempId);
|
|
|
if (index !== -1) {
|