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="
|
<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
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue