医学审核更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-07-30 17:04:16 +08:00
parent db4632fb9b
commit 750c465b18
3 changed files with 52 additions and 28 deletions

View File

@ -77,12 +77,23 @@
<!-- 本次医学审核相关截图如适用如下 -->
{{ $t('trials:medicalFeedback:message:msg5') }}
<ol>
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
<el-button
type="text"
size="mini"
@click="previewImage(file.ImagePath)"
>{{ file.FileName }}</el-button>
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
<viewer
v-if="file.ImagePath"
:ref="file.ImagePath"
style="margin:0 10px;"
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
>
<el-button type="text" @click="previewImage(file.ImagePath)">
{{ file.FileName }}
</el-button>
<img
v-show="false"
crossorigin="anonymous"
:src="`${OSSclientConfig.basePath}${file.ImagePath}`"
alt="Image"
>
</viewer>
</li>
</ol>
</div>

View File

@ -138,20 +138,22 @@
>
<i slot="default" class="el-icon-plus" />
<div slot="file" slot-scope="{file}">
<img
class="el-upload-list__item-thumbnail"
:src="OSSclientConfig.basePath + file.url"
alt=""
crossorigin="anonymous"
>
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in" />
</span>
</span>
<viewer :ref="file.url" :images="images">
<img
class="el-upload-list__item-thumbnail"
:src="OSSclientConfig.basePath + file.url"
alt=""
crossorigin="anonymous"
>
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in" />
</span>
</span>
</viewer>
</div>
</el-upload>
<el-dialog
@ -237,8 +239,8 @@ export default {
this.visitTaskArmList = JudgeInfo.VisitTaskArmList
},
handlePictureCardPreview(file) {
this.imageUrl = this.OSSclientConfig.basePath + file.url
this.imgVisible = true
this.images = this.fileList.map(f => this.OSSclientConfig.basePath + f.url)
this.$refs[file.url].$viewer.show()
},
handleViewDetail(visitTaskId) {
console.log(this.rowData)

View File

@ -77,12 +77,23 @@
<!-- 本次医学审核相关截图如适用如下 -->
{{ $t('trials:medicalFeedback:message:msg5') }}
<ol>
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
<el-button
type="text"
size="mini"
@click="previewImage(file.ImagePath)"
>{{ file.FileName }}</el-button>
<li v-for="file in record.FileList" :key="file.ImagePath" style="list-style: none;">
<viewer
v-if="file.ImagePath"
:ref="file.ImagePath"
style="margin:0 10px;"
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
>
<el-button type="text" @click="previewImage(file.ImagePath)">
{{ file.FileName }}
</el-button>
<img
v-show="false"
crossorigin="anonymous"
:src="`${OSSclientConfig.basePath}${file.ImagePath}`"
alt="Image"
>
</viewer>
</li>
</ol>
</div>