We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前要实现附件子表在主表记录locked时不允许增删改,需要按以下步骤实现。
module.exports = { uploadVisible: function () { if (arguments.length > 3) { var ctx = arguments[3]; if (ctx && ctx._isRelated) { var masterObjectName = ctx._master && ctx._master.objectName; var masterRecord = ctx._master && ctx._master.record; if(masterObjectName === 'b6_collect' && masterRecord && masterRecord.locked){ return false; } // 统一的附件上传按钮显隐规则是下面的allowCreateFiles,上面判断附件子表是在填写任务对象记录详细页面且记录locked就不允许上传附件 return ctx.recordPermissions.allowCreateFiles } } } }
项目中可能遇到主表记录locked时,希望附件子表不允许上传附件
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary 摘要
目前要实现附件子表在主表记录locked时不允许增删改,需要按以下步骤实现。
Why should this be worked on? 此需求的应用场景?
项目中可能遇到主表记录locked时,希望附件子表不允许上传附件
The text was updated successfully, but these errors were encountered: