相关方 - 电子工牌培训不合格人员也会显示合格证bug

hyx_2024-10-18_BUG
water_xu 2024-08-29 09:53:08 +08:00
parent 6f0cbd3c31
commit 362552fc86
1 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@
<u-cell title="联系电话" :value="info.PHONE"></u-cell> <u-cell title="联系电话" :value="info.PHONE"></u-cell>
<u-cell title="人员类型" :value="info.ISFLOW === '1' ? '流动人员' : '固定人员'"> <u-cell title="人员类型" :value="info.ISFLOW === '1' ? '流动人员' : '固定人员'">
</u-cell> </u-cell>
<u-cell title="二维码" v-if="!CODE_TYPE && info.CORPINFO_ID && info.code != '' && (info.DEPART_STATE == '0' || info.DEPART_STATE == '-1')"> <u-cell title="二维码" v-if="info.CORPINFO_ID && cleanCode && (info.DEPART_STATE == '0' || info.DEPART_STATE == '-1')">
<template #value> <template #value>
<u--image :src="info.code" width="100upx" height="100upx" @click="fnPreview(info.code)"> <u--image :src="info.code" width="100upx" height="100upx" @click="fnPreview(info.code)">
</u--image> </u--image>
@ -41,7 +41,8 @@
return { return {
info: {}, info: {},
USER_ID: '', USER_ID: '',
CODE_TYPE: '' CODE_TYPE: '',
cleanCode :''
} }
}, },
created() { created() {
@ -65,6 +66,7 @@
console.log(this.$filePath + resData.pd.PHOTO) console.log(this.$filePath + resData.pd.PHOTO)
this.info.PHOTO = this.$filePath + resData.pd.PHOTO this.info.PHOTO = this.$filePath + resData.pd.PHOTO
this.info.code = 'data:image/jpg;base64,' + code this.info.code = 'data:image/jpg;base64,' + code
this.cleanCode = code
}, },
fnPreview(urls) { fnPreview(urls) {
uni.previewImage({ uni.previewImage({