Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
74893a51c7
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -39,13 +39,37 @@
|
||||||
class="img-box"
|
class="img-box"
|
||||||
@click="selected(item, i, j, true)"
|
@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
|
<el-image
|
||||||
|
v-if="
|
||||||
|
[
|
||||||
|
'image/jpeg',
|
||||||
|
'image/jpg',
|
||||||
|
'image/png',
|
||||||
|
'image/bmp',
|
||||||
|
].includes(item.FileType)
|
||||||
|
"
|
||||||
style="width: 100%; height: 100%"
|
style="width: 100%; height: 100%"
|
||||||
:src="`${OSSclientConfig.basePath}${item.Path}?x-oss-process=image/resize,w_50,h_50/format,png`"
|
:src="`${OSSclientConfig.basePath}${item.Path}?x-oss-process=image/resize,w_50,h_50/format,png`"
|
||||||
fit="contain"
|
fit="contain"
|
||||||
crossorigin="anonymous"
|
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>
|
||||||
<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}` }}
|
||||||
|
@ -114,6 +138,8 @@
|
||||||
<script>
|
<script>
|
||||||
import { getNoneDicomStudyList, setNodicomStudyState } from '@/api/trials'
|
import { getNoneDicomStudyList, setNodicomStudyState } from '@/api/trials'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import pdf from '@/assets/pdf.jpg'
|
||||||
|
import zip from '@/assets/zip.jpg'
|
||||||
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'
|
||||||
|
@ -127,6 +153,8 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
pdf,
|
||||||
|
zip,
|
||||||
activeName: 'first',
|
activeName: 'first',
|
||||||
currentFileId: '',
|
currentFileId: '',
|
||||||
currentStudyIndex: 0,
|
currentStudyIndex: 0,
|
||||||
|
@ -501,4 +529,4 @@ export default {
|
||||||
::v-deep .el-collapse-item__content {
|
::v-deep .el-collapse-item__content {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue