|
@@ -21,6 +21,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="视频动画:" style="margin-left: 15px">
|
|
|
<el-upload
|
|
|
+ :limit=1
|
|
|
class="upload-demo"
|
|
|
drag
|
|
|
:headers="{
|
|
@@ -107,8 +108,9 @@ export default {
|
|
|
methods: {
|
|
|
// 上传视频的方法
|
|
|
beforeRemove (file) {
|
|
|
- console.log(1111111)
|
|
|
+ console.log(1111111, file)
|
|
|
this.contentUrlList = []
|
|
|
+ this.ruleForm.urlVideo = ''
|
|
|
},
|
|
|
beforeUpload (file) {
|
|
|
console.log(222222222)
|
|
@@ -125,6 +127,7 @@ export default {
|
|
|
console.log(33333333, data)
|
|
|
this.loading = false
|
|
|
this.ruleForm.urlVideo = data.data.filePath
|
|
|
+ this.fileName = data.data.fileName
|
|
|
// this.contentUrlList = [
|
|
|
// {
|
|
|
// name: data.data.split('/')[data.data.split('/').length - 1],
|
|
@@ -157,6 +160,7 @@ export default {
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
this.ruleForm.urlVideo = ''
|
|
|
this.ruleForm.thumb = ''
|
|
|
+ this.contentUrlList = []
|
|
|
}
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -167,6 +171,8 @@ export default {
|
|
|
url: `video/detail/${this.$route.params.id}`,
|
|
|
data: this.ruleForm
|
|
|
})
|
|
|
+ this.contentUrlList = [{name: result.data.fileName}]
|
|
|
+ console.log(999999999, result)
|
|
|
this.ruleForm = result.data
|
|
|
},
|
|
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|