|
@@ -377,23 +377,27 @@ export default {
|
|
|
userId: this.$store.state.user.userId
|
|
|
})
|
|
|
.then(res => {
|
|
|
- this.name = res.data.nickName || ''
|
|
|
- this.bankAccount = res.data.bankAccount || ''
|
|
|
- this.idcard = res.data.idCard || ''
|
|
|
- this.idCardImg =
|
|
|
- (res.data?.workerImgs || []).filter(item => item.type == 'ID').map(item => item.imgUrl || '')?.[0] || ''
|
|
|
- this.idCardBackImg =
|
|
|
- (res.data?.workerImgs || []).filter(item => item.type == 'ID').map(item => item.imgUrl || '')?.[1] || ''
|
|
|
- this.idCardStateTime = res.data.idCardStartTime ? res.data.idCardStartTime?.split(' ')?.[0] : ''
|
|
|
- this.idCardEndTime = res.data.idCardEndTime ? res.data.idCardEndTime?.split(' ')?.[0] : ''
|
|
|
- this.altitudeDocumentNumber = res.data.number || ''
|
|
|
- this.reexamineTime = res.data.hightExamineTime ? res.data.hightExamineTime?.split(' ')?.[0] : ''
|
|
|
- this.altitudeDocumentStateTime = res.data.startTime ? res.data.startTime?.split(' ')?.[0] : ''
|
|
|
- this.altitudeDocumentEndTime = res.data.endTime ? res.data.endTime?.split(' ')?.[0] : ''
|
|
|
- this.altitudeDocumentImg =
|
|
|
- (res.data?.workerImgs || []).filter(item => item.type == 'HIGHT').map(item => item.imgUrl || '')?.[0] || ''
|
|
|
- this.altitudeDocumentBackImg =
|
|
|
- (res.data?.workerImgs || []).filter(item => item.type == 'HIGHT').map(item => item.imgUrl || '')?.[1] || ''
|
|
|
+ if (res.data.applyType === 'WORKER') {
|
|
|
+ this.name = res.data.nickName || ''
|
|
|
+ this.bankAccount = res.data.bankAccount || ''
|
|
|
+ this.idcard = res.data.idCard || ''
|
|
|
+ this.idCardImg =
|
|
|
+ (res.data?.workerImgs || []).filter(item => item.type == 'ID').map(item => item.imgUrl || '')?.[0] || ''
|
|
|
+ this.idCardBackImg =
|
|
|
+ (res.data?.workerImgs || []).filter(item => item.type == 'ID').map(item => item.imgUrl || '')?.[1] || ''
|
|
|
+ this.idCardStateTime = res.data.idCardStartTime ? res.data.idCardStartTime?.split(' ')?.[0] : ''
|
|
|
+ this.idCardEndTime = res.data.idCardEndTime ? res.data.idCardEndTime?.split(' ')?.[0] : ''
|
|
|
+ this.altitudeDocumentNumber = res.data.number || ''
|
|
|
+ this.reexamineTime = res.data.hightExamineTime ? res.data.hightExamineTime?.split(' ')?.[0] : ''
|
|
|
+ this.altitudeDocumentStateTime = res.data.startTime ? res.data.startTime?.split(' ')?.[0] : ''
|
|
|
+ this.altitudeDocumentEndTime = res.data.endTime ? res.data.endTime?.split(' ')?.[0] : ''
|
|
|
+ this.altitudeDocumentImg =
|
|
|
+ (res.data?.workerImgs || []).filter(item => item.type == 'HIGHT').map(item => item.imgUrl || '')?.[0] ||
|
|
|
+ ''
|
|
|
+ this.altitudeDocumentBackImg =
|
|
|
+ (res.data?.workerImgs || []).filter(item => item.type == 'HIGHT').map(item => item.imgUrl || '')?.[1] ||
|
|
|
+ ''
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|