连续点击后无法显示bug修复

20240528Test
liujun 2024-04-25 14:50:40 +08:00
parent 123fca5eda
commit bacfc976a6
1 changed files with 39 additions and 27 deletions

View File

@ -19,7 +19,7 @@
<span v-if="imgUrl != ''"> <span v-if="imgUrl != ''">
<div class="img-flex"> <div class="img-flex">
<viewer> <viewer>
<img :src="imgUrl" width="40" height="40" style="object-fit: cover;"> <el-image :src="imgUrl" :preview-src-list="[imgUrl]" style="object-fit: cover; width: 40px; height: 40px" z-index="8000" />
</viewer> </viewer>
</div> </div>
</span> </span>
@ -47,13 +47,13 @@
<span> <span>
<div class="img-flex"> <div class="img-flex">
<viewer> <viewer>
<img <el-image
v-for="item in userCardIDPhotoFile" v-for="item in userCardIDPhotoFile"
:src="config.fileUrl + item.FILEPATH" :src="config.fileUrl + item.FILEPATH"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
width="40" :preview-src-list="[config.fileUrl + item.FILEPATH]"
height="40" z-index="8000"
style="object-fit: cover;"> style="object-fit: cover; width: 40px; height: 40px"/>
</viewer> </viewer>
</div> </div>
</span> </span>
@ -137,13 +137,13 @@
<td v-if="userDetailForm.ISPAY === '1'"> <td v-if="userDetailForm.ISPAY === '1'">
<span> <span>
<viewer> <viewer>
<img <el-image
v-for="item in insuranceFileList" v-for="item in insuranceFileList"
:src="config.fileUrl + item.FILEPATH" :src="config.fileUrl + item.FILEPATH"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
width="40" :preview-src-list="[config.fileUrl + item.FILEPATH]"
height="40" z-index="8000"
style="object-fit: cover;"> style="object-fit: cover; width: 40px; height: 40px"/>
</viewer> </viewer>
</span> </span>
</td> </td>
@ -159,13 +159,13 @@
<td v-if="userDetailForm.IS_SIGN_LABOR === '1'" colspan="3"> <td v-if="userDetailForm.IS_SIGN_LABOR === '1'" colspan="3">
<span> <span>
<viewer> <viewer>
<img <el-image
v-for="item in contractFileList" v-for="item in contractFileList"
:src="config.fileUrl + item.FILEPATH" :src="config.fileUrl + item.FILEPATH"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
width="40" :preview-src-list="[config.fileUrl + item.FILEPATH]"
height="40" z-index="8000"
style="object-fit: cover;"> style="object-fit: cover; width: 40px; height: 40px"/>
</viewer> </viewer>
</span> </span>
</td> </td>
@ -178,13 +178,13 @@
<span> <span>
<div class="img-flex"> <div class="img-flex">
<viewer> <viewer>
<img <el-image
v-for="item in photosOfLevel" v-for="item in photosOfLevel"
:src="config.fileUrl + item.FILEPATH" :src="config.fileUrl + item.FILEPATH"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
width="40" :preview-src-list="[config.fileUrl + item.FILEPATH]"
height="40" z-index="8000"
style="object-fit: cover;"> style="object-fit: cover; width: 40px; height: 40px"/>
</viewer> </viewer>
</div> </div>
</span> </span>
@ -268,17 +268,16 @@
<span> <span>
<div class="img-flex"> <div class="img-flex">
<viewer> <viewer>
<img <el-image
:src="config.fileUrl + item.FILEPATH" :src="config.fileUrl + item.FILEPATH"
width="40" :preview-src-list="[config.fileUrl + item.FILEPATH]"
height="40" z-index="8000"
style="object-fit: cover;"> style="object-fit: cover; width: 40px; height: 40px"/>
<img <el-image
v-if="item.FILEPATH_BACK" v-if="item.FILEPATH_BACK"
:src="config.fileUrl + item.FILEPATH_BACK" :preview-src-list="[config.fileUrl + item.FILEPATH_BACK]"
width="40" z-index="8000"
height="40" style="object-fit: cover; width: 40px; height: 40px"/>
style="object-fit: cover;">
</viewer> </viewer>
</div> </div>
</span> </span>
@ -413,7 +412,7 @@
</el-scrollbar> </el-scrollbar>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button> <el-button @click="close"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
@ -511,6 +510,19 @@ export default {
}, },
download(item) { download(item) {
useDownloadFile(item) useDownloadFile(item)
},
close() {
this.visible = false
this.userDetailForm = {}
this.userCardIDPhotoFile = [] //
this.trainRecordList = []
this.photosOfLevel = [] //
this.specialUsersList = {}
this.insuranceFileList = [] //
this.contractFileList = []
this.socialPhotoFile = []
this.gongshangbaoxianFile = []
this.applyList = []
} }
} }
} }