|
@@ -243,12 +243,10 @@ Page({
|
|
|
},
|
|
|
// 获取用户填写的自定义字段内容
|
|
|
getContextByAdminId() {
|
|
|
- console.log(!this.data.buildingAdminId);
|
|
|
- console.log(!this.data.userInfo);
|
|
|
- if (!this.data.buildingAdminId || !this.data.userInfo) {
|
|
|
+ if (!this.data.companyAdminId || !this.data.userInfo) {
|
|
|
return;
|
|
|
}
|
|
|
- selectContextByCardId(this.data.buildingAdminId, this.data.userInfo.userId).then(res => {
|
|
|
+ selectContextByCardId(this.data.companyAdminId, this.data.userInfo.userId).then(res => {
|
|
|
console.log(res.data);
|
|
|
console.log(this.data.isShowApplet);
|
|
|
this.setData({
|
|
@@ -404,6 +402,8 @@ Page({
|
|
|
companyIndex: e.detail.index,
|
|
|
'form.visiteeCompany': e.detail.companyName,
|
|
|
'form.visiteeCompanyId': e.detail.adminId,
|
|
|
+ companyName: e.detail.companyName,
|
|
|
+ companyAdminId: e.detail.adminId
|
|
|
})
|
|
|
}
|
|
|
break;
|
|
@@ -472,6 +472,8 @@ Page({
|
|
|
this.setData({
|
|
|
companyList: res.data[0].userWhiteIntervieweeVOList,
|
|
|
companyIndex: 0,
|
|
|
+ companyName: res.data[0].userWhiteIntervieweeVOList[0].companyName,
|
|
|
+ companyAdminId: res.data[0].userWhiteIntervieweeVOList[0].adminId,
|
|
|
'form.visiteeXm': res.data[0].userWhiteIntervieweeVOList[0].name,
|
|
|
'form.visiteeCompany': res.data[0].userWhiteIntervieweeVOList[0].companyName,
|
|
|
'form.userWhitelistId': res.data[0].userWhiteIntervieweeVOList[0].userWhitelistId,
|
|
@@ -610,7 +612,7 @@ Page({
|
|
|
})
|
|
|
this.matchCorrectPhone();
|
|
|
if (this.data.userInfo) {
|
|
|
- this.getContextStatusByAdminId(res.data.visiteeBuildingId)
|
|
|
+ this.getContextStatusByAdminId(res.data.visiteeCompanyId)
|
|
|
this.getContextByAdminId()
|
|
|
}
|
|
|
this.doCheckAdmin();
|