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

main
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="
item.FileType === 'application/x-zip-compressed'
" 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 v-if="item.FileName.length < 15" class="img-text">
{{ `${j + 1}. ${item.FileName}` }}
@ -102,6 +105,7 @@ import { getNoneDicomStudyList, setNodicomStudyState } from '@/api/trials'
import store from '@/store'
import pdf from '@/assets/pdf.png'
import zip from '@/assets/zip.jpg'
import mp4 from '@/assets/mp4.png'
import { changeURLStatic } from '@/utils/history.js'
import Preview from './components/preview'
import PreviewFile from '@/components/PreviewFile'
@ -118,6 +122,7 @@ export default {
return {
pdf,
zip,
mp4,
activeName: 'first',
currentFileId: '',
currentStudyIndex: 0,
@ -341,10 +346,15 @@ export default {
this.pdfFile.type = 'pdf'
this.showPDF = 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 {
this.showPDF = false
}
console.log(this.pdfFile)
this.currentStudyIndex = studyIndex
this.previewImage.imgList =
this.studyList[studyIndex].NoneDicomStudyFileList

View File

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