支持webm视频格式上传和预览
This commit is contained in:
parent
325f34b243
commit
7f705ee63d
@ -151,6 +151,7 @@ export default {
|
||||
self.$emit('previewLoadingClose')
|
||||
return
|
||||
}
|
||||
if(row.fileName.endsWith(".mp4") || row.fileName.endsWith(".webm")){
|
||||
if(row.fileName.endsWith(".mp4")){
|
||||
this.playerOptions.sources = [
|
||||
{
|
||||
@ -158,6 +159,15 @@ export default {
|
||||
type: 'video/mp4'
|
||||
}
|
||||
]
|
||||
}else{
|
||||
this.playerOptions.sources = [
|
||||
{
|
||||
src: row.fileUrl,
|
||||
type: 'video/webm'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
self.dialogVisible = true
|
||||
self.isVideos = true;
|
||||
self.previewLoading = false
|
||||
|
@ -134,7 +134,7 @@
|
||||
<uploadVue
|
||||
:display="editStatus"
|
||||
:uploadUrl="uploadFileUrl"
|
||||
:type="['.txt','.doc','.docx','.pdf','.mp4','.zip','.rar','.7z','.png','.jpg','.jpeg']"
|
||||
:type="['.txt','.doc','.docx','.pdf','.mp4','.webm','.zip','.rar','.7z','.png','.jpg','.jpeg']"
|
||||
:acceptType="acceptType"
|
||||
:isMultiple="true"
|
||||
:dataFile="dataFile"
|
||||
@ -355,7 +355,7 @@
|
||||
deptOptions:[],
|
||||
uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传文件服务器地址
|
||||
fileData: null,
|
||||
acceptType: ".txt,.docx,.pdf,.mp4,.zip,.rar,.7z,.png,.jpg",
|
||||
acceptType: ".txt,.docx,.pdf,.mp4,.webm,.zip,.rar,.7z,.png,.jpg",
|
||||
editStatus: true,
|
||||
toolDataInfo: [],
|
||||
dataFile: [],
|
||||
|
@ -262,7 +262,7 @@
|
||||
<uploadVue
|
||||
:display="editStatus"
|
||||
:uploadUrl="uploadFileUrl"
|
||||
:type="['.txt','.doc','.docx','.pdf','.mp4','.zip','.rar','.7z','.png','.jpg','.jpeg']"
|
||||
:type="['.txt','.doc','.docx','.pdf','.mp4','.webm','.zip','.rar','.7z','.png','.jpg','.jpeg']"
|
||||
:acceptType="acceptType"
|
||||
:isMultiple="true"
|
||||
:dataFile="dataFile"
|
||||
@ -584,7 +584,7 @@ export default {
|
||||
curDeptName: null,
|
||||
|
||||
uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传文件服务器地址
|
||||
acceptType: ".txt,.docx,.pdf,.mp4,.zip,.rar,.7z,.png,.jpg",
|
||||
acceptType: ".txt,.docx,.pdf,.mp4,.webm,.zip,.rar,.7z,.png,.jpg",
|
||||
dataFile: [],
|
||||
detailBoolean: false,
|
||||
attachmentList: [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user