Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat
caiyiling 2025-03-11 16:04:55 +08:00
commit 74893a51c7
2 changed files with 30 additions and 2 deletions

BIN
src/assets/zip.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -39,13 +39,37 @@
class="img-box"
@click="selected(item, i, j, true)"
>
<div v-if="item.FileType === 'image/jpeg' || item.FileType === 'image/jpg' || item.FileType === 'image/bmp' || item.FileType === 'image/png'" class="file-image">
<div class="file-image">
<el-image
v-if="
[
'image/jpeg',
'image/jpg',
'image/png',
'image/bmp',
].includes(item.FileType)
"
style="width: 100%; height: 100%"
:src="`${OSSclientConfig.basePath}${item.Path}?x-oss-process=image/resize,w_50,h_50/format,png`"
fit="contain"
crossorigin="anonymous"
/>
<el-image
v-else-if="item.FileType === 'application/pdf'"
style="width: 100%; height: 100%"
:src="pdf"
fit="contain"
crossorigin="anonymous"
/>
<el-image
v-else-if="
item.FileType === 'application/x-zip-compressed'
"
style="width: 100%; height: 100%"
:src="zip"
fit="contain"
crossorigin="anonymous"
/>
</div>
<div v-if="item.FileName.length < 15" class="img-text">
{{ `${j + 1}. ${item.FileName}` }}
@ -114,6 +138,8 @@
<script>
import { getNoneDicomStudyList, setNodicomStudyState } from '@/api/trials'
import store from '@/store'
import pdf from '@/assets/pdf.jpg'
import zip from '@/assets/zip.jpg'
import { changeURLStatic } from '@/utils/history.js'
import Preview from './components/preview'
import PreviewFile from '@/components/PreviewFile'
@ -127,6 +153,8 @@ export default {
},
data() {
return {
pdf,
zip,
activeName: 'first',
currentFileId: '',
currentStudyIndex: 0,
@ -501,4 +529,4 @@ export default {
::v-deep .el-collapse-item__content {
padding-bottom: 0;
}
</style>
</style>