crc上传添加MP4预览
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7dc7236c16
commit
ae1014c70b
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -257,9 +257,9 @@ const getListQueryDefault = () => {
|
|||
HospitalId: '',
|
||||
Asc: false,
|
||||
SortField: '',
|
||||
// AcceptingNewTrial: true,
|
||||
AcceptingNewTrial: true,
|
||||
// InformationConfirmed: true,
|
||||
// ContractorStatus: 1,
|
||||
ContractorStatus: 1,
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
|
|
|||
Loading…
Reference in New Issue