非dicom文件预览展示大小
continuous-integration/drone/push Build is running Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-09-26 11:21:43 +08:00
parent c9a754a85f
commit 17d6e233c8
3 changed files with 60 additions and 4 deletions

View File

@ -58,6 +58,19 @@
:label="$t('trials:audit:table:nonDicomsFileName')" :label="$t('trials:audit:table:nonDicomsFileName')"
width="200" width="200"
/> />
<el-table-column
prop="FileSize"
:label="$t('trials:audit:table:nonDicomsFileSize')"
width="100"
>
<template slot-scope="scope">
<span>{{
scope.row.FileSize && scope.row.FileSize > 0
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB`
: 0
}}</span>
</template>
</el-table-column>
<el-table-column :label="$t('common:action:action')" width="120"> <el-table-column :label="$t('common:action:action')" width="120">
<template slot-scope="files"> <template slot-scope="files">
<!-- 预览 --> <!-- 预览 -->
@ -117,6 +130,19 @@
:label="$t('trials:audit:table:nonDicomsFileName')" :label="$t('trials:audit:table:nonDicomsFileName')"
width="200" width="200"
/> />
<el-table-column
prop="FileSize"
:label="$t('trials:audit:table:nonDicomsFileSize')"
width="100"
>
<template slot-scope="scope">
<span>{{
scope.row.FileSize && scope.row.FileSize > 0
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB`
: 0
}}</span>
</template>
</el-table-column>
<el-table-column :label="$t('common:action:action')" width="120"> <el-table-column :label="$t('common:action:action')" width="120">
<template slot-scope="files"> <template slot-scope="files">
<!-- 预览 --> <!-- 预览 -->

View File

@ -66,6 +66,19 @@
:label="$t('trials:uploadNonDicoms:table:fileName')" :label="$t('trials:uploadNonDicoms:table:fileName')"
width="200" width="200"
/> />
<el-table-column
prop="FileSize"
:label="$t('trials:audit:table:nonDicomsFileSize')"
width="100"
>
<template slot-scope="scope">
<span>{{
scope.row.FileSize && scope.row.FileSize > 0
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB`
: 0
}}</span>
</template>
</el-table-column>
<el-table-column :label="$t('common:action:action')" width="120"> <el-table-column :label="$t('common:action:action')" width="120">
<template slot-scope="files"> <template slot-scope="files">
<div style="display: flex"> <div style="display: flex">

View File

@ -411,6 +411,21 @@
:label="$t('trials:audit:table:nonDicomsFileName')" :label="$t('trials:audit:table:nonDicomsFileName')"
width="200" width="200"
/> />
<el-table-column
prop="FileSize"
:label="$t('trials:audit:table:nonDicomsFileSize')"
width="100"
>
<template slot-scope="scope">
<span>{{
scope.row.FileSize && scope.row.FileSize > 0
? `${(scope.row.FileSize / 1024 / 1024).toFixed(
2
)}MB`
: 0
}}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="120" width="120"
@ -419,8 +434,10 @@
<!-- 预览 --> <!-- 预览 -->
<viewer <viewer
:ref="files.row.FullFilePath" :ref="files.row.FullFilePath"
style="margin:0 10px;" style="margin: 0 10px"
:images="[`${OSSclientConfig.basePath}${files.row.FullFilePath}`]" :images="[
`${OSSclientConfig.basePath}${files.row.FullFilePath}`,
]"
> >
<el-button <el-button
type="text" type="text"
@ -431,13 +448,13 @@
@click.native.prevent="previewFile(files.row)" @click.native.prevent="previewFile(files.row)"
> >
{{ $t('trials:audit:button:nonDicomsPreview') }} {{ $t('trials:audit:button:nonDicomsPreview') }}
</el-button> </el-button>
<img <img
v-show="false" v-show="false"
crossorigin="anonymous" crossorigin="anonymous"
:src="`${OSSclientConfig.basePath}${files.row.FullFilePath}`" :src="`${OSSclientConfig.basePath}${files.row.FullFilePath}`"
alt="Image" alt="Image"
> />
</viewer> </viewer>
</template> </template>
</el-table-column> </el-table-column>