force-app/main/default/aura/lexMeetingCostsAura/lexMeetingCostsAura.cmp
@@ -3,6 +3,8 @@ <aura:handler name="render" value="{!this}" action="{!c.closeModal}" /> <aura:attribute name="isDoneRendering" type="Boolean" default="false"/> <div class="exampleHolder"> <c:lexMeetingCosts recordId="{!v.recordId}" /> </div> </aura:component> force-app/main/default/aura/lexMeetingCostsAura/lexMeetingCostsAura.cmp-meta.xml
@@ -1,5 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata"> <apiVersion>54.0</apiVersion> <description>A Lightning Component Bundle</description> </AuraDefinitionBundle> force-app/main/default/classes/LexMeetingCostsController.cls
@@ -14,7 +14,6 @@ } @AuraEnabled public static groupmember judgeMumber(String UserId){ groupmember res =new groupmember(); force-app/main/default/classes/LexMeetingCostsController.cls-meta.xml
@@ -1,5 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> <apiVersion>51.0</apiVersion> <status>Active</status> </ApexClass> force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.html
@@ -1,3 +1,4 @@ <template> </template> force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js
@@ -28,9 +28,6 @@ @wire(CurrentPageReference) getStateParameters(currentPageReference) { console.log(111); console.log(currentPageReference); if (currentPageReference) { const urlValue = currentPageReference.state.recordId; if (urlValue) { @@ -44,10 +41,8 @@ @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 ; @@ -85,13 +80,9 @@ 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 @@ -99,7 +90,6 @@ || 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 { force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js-meta.xml
@@ -7,5 +7,6 @@ <target>lightning__RecordPage</target> <target>lightning__HomePage</target> <target>lightning__RecordAction</target> </targets> </LightningComponentBundle>