如何根据业务控制按钮隐藏状态

shao 使用操作 308

如何根据业务控制按钮隐藏状态

回复

共1条回复 我来回复
  • shao的头像
    shao
    数式Oinone (oinone.top),专注解决复杂场景的开源低代码平台
    评论

    工作流审批页的按钮设置隐藏状态,可以参考这个:

    <action refs=”$$internal_GotoListTableRouter” tag=”contextFreeAction” priority=”1″/>
    <action refs=”approveStaging” widget=”FlowTaskCommonAction” displayName=”暂存” priority=”2″ invisible=”!(activeRecord.allowStaging)” />
    <action refs=”workflow_agree” displayName=”同意” goBack=”true” priority=”3″ loadRootData=”true” invisible=”!(activeRecord.allowAgree &amp;&amp; activeRecord.status == ‘ACTIVE’)” validateForm=”true” />
    <action refs=”workflow_rejust” tag=”contextFreeAction” displayName=”拒绝” priority=”4″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.allowReject &amp;&amp; activeRecord.status == ‘ACTIVE’)”/>
    <action refs=”workflow_turnon” tag=”contextFreeAction” displayName=”转交” priority=”5″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.taskType == ‘APPROVE’ &amp;&amp; activeRecord.allowTransfer &amp;&amp; activeRecord.status == ‘ACTIVE’)” load=”fetchDetailReadOnly”/>
    <action refs=”workflow_addsign” tag=”contextFreeAction” displayName=”加签” priority=”6″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.taskType == ‘APPROVE’ &amp;&amp; activeRecord.allowAddSign &amp;&amp; activeRecord.status == ‘ACTIVE’)” load=”fetchDetailReadOnly”/>
    <action refs=”workflow_write_fallback” tag=”contextFreeAction” displayName=”回退” priority=”7″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.taskType == ‘WRITE’ &amp;&amp; activeRecord.allowFallback &amp;&amp; activeRecord.status == ‘ACTIVE’)”/>
    <action refs=”workflow_info_sharing” tag=”contextFreeAction” priority=”8″/>
    <action refs=”workflow_sharing” tag=”contextFreeAction” displayName=”分享” priority=”9″ goBack=”true” loadRootData=”true”/>

    5个月前 0条评论