|
@@ -98,11 +98,11 @@ export default {
|
|
|
if(res.data.code == 200) {
|
|
|
const tempData = res.data.data
|
|
|
this.form = {
|
|
|
- idCardNo: tempData.sysUser.idCardNo,
|
|
|
- realName: tempData.sysUser.realName,
|
|
|
- gender: tempData.sysUser.gender,
|
|
|
- birthdate: dayjs(tempData.sysUser.birthdate).format('YYYY-MM-DD'),
|
|
|
- nation: tempData.sysUser.nation,
|
|
|
+ idCardNo: tempData.idCardNo,
|
|
|
+ realName: tempData.realName == tempData.phone ? null : tempData.realName,
|
|
|
+ gender: tempData.gender,
|
|
|
+ birthdate: tempData.birthdate ? dayjs(tempData.birthdate).format('YYYY-MM-DD') : null,
|
|
|
+ nation: tempData.nation,
|
|
|
certificatePhoto: tempData.certificatePhoto
|
|
|
}
|
|
|
if(tempData.certificatePhoto) { // 判断是否在头像
|