非dicom影像图片上传后文件数量预览按钮位置对齐
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
86dde0a9e8
commit
3dddbafd04
|
@ -68,14 +68,38 @@
|
|||
/>
|
||||
<el-table-column :label="$t('common:action:action')" width="120">
|
||||
<template slot-scope="files">
|
||||
<!-- 预览 -->
|
||||
<viewer
|
||||
v-if="files.row.type !== 'MP4'"
|
||||
:ref="files.row.FullFilePath"
|
||||
style="margin:0 10px;"
|
||||
:images="[`${OSSclientConfig.basePath}${files.row.FullFilePath}`]"
|
||||
>
|
||||
<div style="display: flex">
|
||||
<!-- 预览 -->
|
||||
<viewer
|
||||
v-if="files.row.type !== 'MP4'"
|
||||
:ref="files.row.FullFilePath"
|
||||
style="margin: 0 10px"
|
||||
:images="[
|
||||
`${OSSclientConfig.basePath}${files.row.FullFilePath}`,
|
||||
]"
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-view"
|
||||
circle
|
||||
:title="$t('trials:uploadNonDicoms:action:preview')"
|
||||
size="small"
|
||||
:disabled="
|
||||
files.row.FileType &&
|
||||
files.row.FileType.indexOf('zip') >= 0
|
||||
"
|
||||
@click.native.prevent="handlePreviewImg(files.row)"
|
||||
>
|
||||
</el-button>
|
||||
<img
|
||||
v-show="false"
|
||||
crossorigin="anonymous"
|
||||
:src="`${OSSclientConfig.basePath}${files.row.FullFilePath}`"
|
||||
alt="Image"
|
||||
/>
|
||||
</viewer>
|
||||
|
||||
<el-button
|
||||
v-if="files.row.type === 'MP4'"
|
||||
icon="el-icon-view"
|
||||
circle
|
||||
:title="$t('trials:uploadNonDicoms:action:preview')"
|
||||
|
@ -84,42 +108,25 @@
|
|||
files.row.FileType &&
|
||||
files.row.FileType.indexOf('zip') >= 0
|
||||
"
|
||||
@click.native.prevent="handlePreviewImg(files.row)">
|
||||
</el-button>
|
||||
<img
|
||||
v-show="false"
|
||||
crossorigin="anonymous"
|
||||
:src="`${OSSclientConfig.basePath}${files.row.FullFilePath}`"
|
||||
alt="Image"
|
||||
>
|
||||
</viewer>
|
||||
|
||||
<el-button
|
||||
v-if="files.row.type === 'MP4'"
|
||||
icon="el-icon-view"
|
||||
circle
|
||||
:title="$t('trials:uploadNonDicoms:action:preview')"
|
||||
size="small"
|
||||
:disabled="
|
||||
files.row.FileType &&
|
||||
files.row.FileType.indexOf('zip') >= 0
|
||||
"
|
||||
@click.native.prevent="handleLookVideo(scope.row)"
|
||||
/>
|
||||
<!-- 删除 -->
|
||||
<el-button
|
||||
v-if="allowAddOrEdit"
|
||||
v-hasPermi="['trials:trials-panel:visit:crc-upload:delete']"
|
||||
icon="el-icon-delete"
|
||||
circle
|
||||
:title="$t('trials:uploadNonDicoms:action:delete')"
|
||||
size="small"
|
||||
@click.native.prevent="
|
||||
files.row.type === 'MP4'
|
||||
? hadnleDeleteVideo(scope.row)
|
||||
: handleDeleteFile(files.row.Id)
|
||||
"
|
||||
/>
|
||||
@click.native.prevent="handleLookVideo(scope.row)"
|
||||
/>
|
||||
<!-- 删除 -->
|
||||
<el-button
|
||||
v-if="allowAddOrEdit"
|
||||
v-hasPermi="[
|
||||
'trials:trials-panel:visit:crc-upload:delete',
|
||||
]"
|
||||
icon="el-icon-delete"
|
||||
circle
|
||||
:title="$t('trials:uploadNonDicoms:action:delete')"
|
||||
size="small"
|
||||
@click.native.prevent="
|
||||
files.row.type === 'MP4'
|
||||
? hadnleDeleteVideo(scope.row)
|
||||
: handleDeleteFile(files.row.Id)
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
Loading…
Reference in New Issue