Skip to content
New issue

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

online表单中主从表权限相互影响 #2680

Closed
zhangdaiscott opened this issue Jun 21, 2021 · 6 comments
Closed

online表单中主从表权限相互影响 #2680

zhangdaiscott opened this issue Jun 21, 2021 · 6 comments

Comments

@zhangdaiscott
Copy link
Member

  • 版本号:2.4.0

  • 问题描述:
    两个ERP样式的主从表,授权不同,第一个全部权限,第二个部分权限。先点第一功能模块,权限正常,可以显示,但点第二个功能模块后,权限是减少了的权限,但再点第一个模块时,其部分按钮和第二个一样被屏蔽了.

  • 截图&代码:

image
image
image
image
image

@zhangdaiscott
Copy link
Member Author

收录 ty

@tygithub1
Copy link

已经修复,见下版本

@zhangdaiscott
Copy link
Member Author

手工修改方法
src/views/modules/online/cgform/auto/erp/OnlineCommonList.vue
src/views/modules/online/cgform/auto/OnlCgformTreeList.vue

     initButtonSwitch(hideColumns){
        if(hideColumns && hideColumns.length>0){
          Object.keys(this.buttonSwitch).forEach(key=>{
            if(hideColumns.indexOf(key)>=0){
              this.buttonSwitch[key]=false
            }else{
              this.buttonSwitch[key] = true
            }
          })

        }
      },

image

@xngyun
Copy link

xngyun commented Jun 30, 2021

收到,谢谢!

@xngyun
Copy link

xngyun commented Jul 1, 2021

按回复增加了代码,但权限问题还在,现象依旧 @zhangdaiscott

@xngyun
Copy link

xngyun commented Jul 1, 2021

微信图片_20210701165721

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants