Li Jun
2022-04-19 2f183a6b0a83ec3f7d35375d5d25d200efc2a3e1
1
2
3
4
5
6
7
8
<apex:component controller="ApprovalResultController" access="global" allowDML="true">
    <apex:attribute name="showComponent" description="approval comments" type="String"/>
    <apex:attribute name="objId" description="approval comments" type="String" assignTo="{!targetObjId}"/>
    <apex:outputPanel rendered="{!showComponent == 'Comments'}">
        <!-- 审批意见: -->
        {!comments}
    </apex:outputPanel>
</apex:component>