| | |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | |
| | | |
| | | @wire(getRecord, { recordId: USER_ID, fields: [USERPROFILE_ID]}) |
| | | userDetails({error, data}) { |
| | | console.log('222'); |
| | | if (data) { |
| | | this.currentUserProfileId = data.fields.ProfileId.value; |
| | | console.log(this.currentUserProfileId); |
| | | |
| | | } else if (error) { |
| | | this.error = error ; |
| | |
| | | |
| | | var ProfileId= await getProfileIdByName({Name : "系统管理员"}); |
| | | |
| | | console.log('scscscsccsc'); |
| | | console.log(records); |
| | | console.log(ProfileId); |
| | | |
| | | |
| | | if(records.length>0 && this.Campaign.Sponsor_Ones_Post__c == '1.华北'){ |
| | | console.log('if'); |
| | | window.open("/apex/CampaignMeetingcost?id=" + this.Campaign.Id ,'CampaignMember','height=500,width=950'); |
| | | } |
| | | else if (logUser == this.Campaign.OwnerId |
| | |
| | | || logUser == this.Campaign.BuchangApprovalManager__c |
| | | || logUser == this.Campaign.ZongjianApprovalManager__c |
| | | || this.currentUserProfileId == ProfileId){ |
| | | console.log('else if'); |
| | | window.open("/apex/CampaignMeetingcost?id=" + this.Campaign.Id ,'CampaignMember','height=500,width=950'); |
| | | } |
| | | else { |