crc上传添加MP4预览
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2026-01-30 09:38:05 +08:00
parent 7dc7236c16
commit ae1014c70b
3 changed files with 13 additions and 3 deletions

BIN
src/assets/mp4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@ -49,6 +49,9 @@
<el-image v-else-if=" <el-image v-else-if="
item.FileType === 'application/x-zip-compressed' item.FileType === 'application/x-zip-compressed'
" style="width: 100%; height: 100%" :src="zip" fit="contain" crossorigin="anonymous" /> " style="width: 100%; height: 100%" :src="zip" fit="contain" crossorigin="anonymous" />
<el-image v-else-if="
!!~item.FileType.indexOf('mp4')
" style="width: 100%; height: 100%" :src="mp4" fit="contain" crossorigin="anonymous" />
</div> </div>
<div v-if="item.FileName.length < 15" class="img-text"> <div v-if="item.FileName.length < 15" class="img-text">
{{ `${j + 1}. ${item.FileName}` }} {{ `${j + 1}. ${item.FileName}` }}
@ -102,6 +105,7 @@ import { getNoneDicomStudyList, setNodicomStudyState } from '@/api/trials'
import store from '@/store' import store from '@/store'
import pdf from '@/assets/pdf.png' import pdf from '@/assets/pdf.png'
import zip from '@/assets/zip.jpg' import zip from '@/assets/zip.jpg'
import mp4 from '@/assets/mp4.png'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
import Preview from './components/preview' import Preview from './components/preview'
import PreviewFile from '@/components/PreviewFile' import PreviewFile from '@/components/PreviewFile'
@ -118,6 +122,7 @@ export default {
return { return {
pdf, pdf,
zip, zip,
mp4,
activeName: 'first', activeName: 'first',
currentFileId: '', currentFileId: '',
currentStudyIndex: 0, currentStudyIndex: 0,
@ -341,10 +346,15 @@ export default {
this.pdfFile.type = 'pdf' this.pdfFile.type = 'pdf'
this.showPDF = true this.showPDF = true
return true return true
} else if (!!~file.FileType.indexOf('mp4')) {
this.pdfFile.path = file.Path || file.FullFilePath
this.pdfFile.type = file.FileType
this.showPDF = true
return true
} else { } else {
this.showPDF = false this.showPDF = false
} }
console.log(this.pdfFile)
this.currentStudyIndex = studyIndex this.currentStudyIndex = studyIndex
this.previewImage.imgList = this.previewImage.imgList =
this.studyList[studyIndex].NoneDicomStudyFileList this.studyList[studyIndex].NoneDicomStudyFileList

View File

@ -257,9 +257,9 @@ const getListQueryDefault = () => {
HospitalId: '', HospitalId: '',
Asc: false, Asc: false,
SortField: '', SortField: '',
// AcceptingNewTrial: true, AcceptingNewTrial: true,
// InformationConfirmed: true, // InformationConfirmed: true,
// ContractorStatus: 1, ContractorStatus: 1,
} }
} }
export default { export default {