权限范围

Posted lfxanla

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了权限范围相关的知识,希望对你有一定的参考价值。

    try {
      let res = await this.mgr.GetDrugWarehouseList(this.Userinfo.UserID, this.Userinfo.UnitID);
      this.GetDrugDictData(res)
    } catch (error) {
      UI.ShowException(error);
    }

  

  public async GetDrugWarehouseList(userId: string, unitId: string) {
    const data = await net.GetAuditWardList(
      userId,
      unitId,
      "药品库房范围",
      "OutReturnDrugMaterMgr",
      "退药库房范围"
    );
    return data;
  }

  

  public async GetAuditWardList(userId: string, unitId: string, rangeName: string, moduleName: string, rightName: string) {
    let data = await Ajax.Post(this.baseUrl + "SYSUserRight/GetRangeRight",
      "IncludeQuoChr=true" +
      "&UnitID=" + unitId +
      "&UserID=" + userId +
      "&RangeName=" + rangeName +
      "&ModuleName=" + moduleName +
      "&RightName=" + rightName);
    return data;
  }

  

 [RightReg(
        RIGHT_NAME = "退药库房范围",
        RIGHT_TYPE = 2, //1 布尔权限2 范围权限
        RANGE_NAME = "药品库房范围",
        UI_MODULE_NAME = "OutReturnDrugMaterMgr",//注意!!!需与模块名称保持一致
        DEFAULT_VALUE = "0",
        ADMIN_DEFVALUE = "0", //必填
        EXTEND_MARK = "",
        RIGHT_DESCRIBE = "退药库房范围"
        )]

  

以上是关于权限范围的主要内容,如果未能解决你的问题,请参考以下文章

教程4 - 验证和权限

gitlab 权限说明

Django REST框架--认证和权限

活动结果片段索引超出范围:0x20001

Cg入门19:Fragment shader - 片段级模型动态变色

片段中的请求权限