s-HR的F7弹框左树右列表权限提示二开问题原创
3人赞赏了该文章
264次浏览
编辑于2023年05月17日 15:28:58
背景:二开单据中在弹窗中设置通过文本框打开F7链接com.kingdee.eas.basedata.person.app.Person.F7时报错以下内容:可能原因:1、未对此页面授权业务组织范围 2、未绑定权限项,请联系管理员给单据所在的菜单绑定权限项,请按序排查。已经配置了权限项但是没有起作用
原因是左树取数的getTreeData时候,需要传入权限项ID,在初始化F7时候需要手工传入
解决办法:对于F7有左树右列表的,初始化F7(shrPromptBox)时候,需要传入权限项参数(permItemId:shr.getCurrentPagePermItemId())
如:
var grid_f7_json = {id:"xxxxxx",name:"xxxxxx"}; grid_f7_json.value = {id:'xxxxxxx',name:'xxxxxx'}; grid_f7_json.subWidgetName = 'shrPromptGrid'; grid_f7_json.validate = '{required:true}'; grid_f7_json.subWidgetOptions = {title:"",uipk:"xxxxxx.F7",query:"",permItemId:shr.getCurrentPagePermItemId()}; $("#xxxxxx").shrPromptBox(grid_f7_json);
推荐阅读