如果配置项没有出来,先修改随便栏目,然后再搭建配置项,点击刷新


解决方式一:到菜单栏目和权限中心进行授权
解决方式二:参考下面两点案例进行使用已授权的栏目

权限引用继承(处理mkey相同情况使用已有的权限)

前端调用

popeResField 对应已授权的resField

_popeMkey对应已授权的mkey

处理权限继承

   filterT._popeResField = fieldT;
      filterT._popeMkey = mkeyT;
      mkeyT = "bo-user-account";
      fieldT = "pswd_detail";
      res.account = {
        batO: "ui"
      };
      // thatC.options.filter._verifyMenuId = thatC.options._menuId;
      res.account.userId = (that.$loginAuth.getUser() || {}).userId;
      res.account.userPwd = that.$security.encrypt(that.data.newPassword);
      res.userPwd = that.$security.encrypt(that.data.newPassword);

后端实现权限控制代码参考


   PFGlobalParameter pf = new PFGlobalParameter
      {
          OwnerId = pfGloal.OwnerId,
          SysId = pfGloal.SysId,
          ModuleKey = pfGloal.ModuleKey,
          RequestModuleType = pfGloal.RequestModuleType,
          ReponseField = pfGloal.ReponseField,
          MenuId = pfGloal.MenuId,
          ConnName = pfGloal.ConnName,
          DatabaseType = pfGloal.DatabaseType,
          ColumnField = pfGloal.ColumnField,
          ClientUserIp = pfGloal.ClientUserIp,
      };
      //用于处理引用已有的权限
      if (dictionaryUrl.ContainsKey("_popeResField"))
      {
          pf.ReponseField = dictionaryUrl["_popeResField"].ToString();
      }
      if (dictionaryUrl.ContainsKey("_popeMkey"))
      {
          pf.ModuleKey = dictionaryUrl["_popeMkey"].ToString();
      }
      pf.UserId = dictionaryUrl["_userId"].ToString();
文档更新时间: 2022-10-24 13:49   作者:admin