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