|
|
@@ -250,6 +250,7 @@
|
|
|
<video-upload :fileKey.sync="form.fileKey" :fileSize.sync="form.fileSize"
|
|
|
:videoUrl.sync="form.videoUrl" :fileName.sync="form.fileName" :line_1.sync="form.lineOne"
|
|
|
:uploadType.sync="form.uploadType" :isTranscode.sync="form.isTranscode"
|
|
|
+ ref="videoUpload"
|
|
|
:transcodeFileKey.sync="form.transcodeFileKey" @video-duration="handleVideoDuration"
|
|
|
@change="handleVideoChange"></video-upload>
|
|
|
</el-form-item>
|
|
|
@@ -639,10 +640,12 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
this.$refs.myeditor.setText("");
|
|
|
+ this.$refs.videoUpload.reset();
|
|
|
}, 100);
|
|
|
- this.title = "添加直播";
|
|
|
+ this.title = "添加直播间";
|
|
|
},
|
|
|
updateText(text){
|
|
|
this.form.liveDesc=text
|
|
|
@@ -653,19 +656,20 @@ export default {
|
|
|
const liveId = row.liveId || this.ids
|
|
|
getLive(liveId).then(response => {
|
|
|
this.form = response.data;
|
|
|
- this.videoUrl = this.form.videoUrl;
|
|
|
if(this.form.duration){
|
|
|
this.form.durationTime = this.secondsToTime(this.form.duration)
|
|
|
}
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
if(this.form.liveDesc==null){
|
|
|
this.$refs.myeditor.setText("");
|
|
|
}else{
|
|
|
this.$refs.myeditor.setText(this.form.liveDesc);
|
|
|
}
|
|
|
+ this.form.videoUrl = row.videoUrl
|
|
|
}, 1);
|
|
|
this.open = true;
|
|
|
- this.title = "修改直播";
|
|
|
+ this.title = "修改直播间";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|