liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<aura:component
    implements="lightning:actionOverride,lightning:isUrlAddressable,force:lightningQuickAction,force:hasRecordId"
    access="global" controller="NewAgencyContactController">
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
    <aura:attribute name="isPartner" type="Boolean" default = "False"/>
        <aura:html tag="style">
            .slds-modal__container{
                max-width: 65rem !important;
                width:100% !important;
                min-height:60%
            }
            .cuf-content {
                padding: 0 0rem !important;
            }
            .slds-p-around--medium {
                padding: 0rem !important;
            }
            .slds-modal__content{
                overflow-y:auto !important;
                height:unset !important;
                max-height:unset !important;
                min-height:8rem;
            }
            .slds-tile_board{
                padding:20px 40px;
            }
        </aura:html>
    <aura:if isTrue="{!!v.isPartner}">
        <c:lexNewAndEditAgencyContactPIPL onclose="{!c.closeModal}" onrefresh="{!c.refreshView}" recordId="{!v.recordId}"/>
    </aura:if>
    <aura:if isTrue="{!v.isPartner}">
        <c:NewAgencyContact recordId="{!v.recordId}"/> <!-- 引用名为 NewAgencyContact 的组件 -->
    </aura:if>
</aura:component>