如何根据业务控制按钮隐藏状态
如何根据业务控制按钮隐藏状态
-
工作流审批页的按钮设置隐藏状态,可以参考这个:
<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 && activeRecord.status == ‘ACTIVE’)” validateForm=”true” />
<action refs=”workflow_rejust” tag=”contextFreeAction” displayName=”拒绝” priority=”4″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.allowReject && activeRecord.status == ‘ACTIVE’)”/>
<action refs=”workflow_turnon” tag=”contextFreeAction” displayName=”转交” priority=”5″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.taskType == ‘APPROVE’ && activeRecord.allowTransfer && activeRecord.status == ‘ACTIVE’)” load=”fetchDetailReadOnly”/>
<action refs=”workflow_addsign” tag=”contextFreeAction” displayName=”加签” priority=”6″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.taskType == ‘APPROVE’ && activeRecord.allowAddSign && activeRecord.status == ‘ACTIVE’)” load=”fetchDetailReadOnly”/>
<action refs=”workflow_write_fallback” tag=”contextFreeAction” displayName=”回退” priority=”7″ goBack=”true” loadRootData=”true” invisible=”!(activeRecord.taskType == ‘WRITE’ && activeRecord.allowFallback && 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个月前