|
@@ -130,11 +130,10 @@
|
|
|
:on-success="handleUploadSuccess"
|
|
|
:on-error="handleUploadError"
|
|
|
:show-file-list="false"
|
|
|
- :limit="1"
|
|
|
accept=".mp4"
|
|
|
:file-list="fileList"
|
|
|
:on-exceed="handleExceed">
|
|
|
- <video style="width: 120px; height: 120px" v-if="dialogForm.videoUrl" controls="controls" type="video/mp4" preload="auto" :src="dialogForm.videoUrl"></video>
|
|
|
+ <video style="width: 120px; height: 120px" v-if="dialogForm.videoUrl" type="video/mp4" preload="auto" :src="dialogForm.videoUrl"></video>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
<p class="imageSize" >只能上传mp4文件, 且不超过100M</p>
|
|
@@ -343,7 +342,6 @@ export default {
|
|
|
videoUrl: null
|
|
|
}
|
|
|
this.fileList = []
|
|
|
- this.$refs["diologForm"].resetFields();
|
|
|
}
|
|
|
this.type = query.type;
|
|
|
this.pageType = query.pageType;
|
|
@@ -602,7 +600,7 @@ export default {
|
|
|
},
|
|
|
handleUploadSuccess(file, fileList) {
|
|
|
this.uploadLoading = false
|
|
|
- // this.$message.success('上传视频成功')
|
|
|
+ this.$message.success('上传视频成功')
|
|
|
this.dialogForm.videoUrl = file.data.url;
|
|
|
},
|
|
|
handleExceed(files, fileList) {
|