@mu-cabin/opms-permission 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -779,7 +779,7 @@ var Permission = class {
779
779
  }
780
780
  if (!orgCompanyList) {
781
781
  const { obj } = await queryOrgCustom({
782
- resultView: "TREE",
782
+ resultView: "LIST",
783
783
  orgCodeSource: "COS",
784
784
  direction: "FROM_SELF_TO_LEAF",
785
785
  orgTypes: ["HEAD", "BRANCH"],
@@ -793,7 +793,7 @@ var Permission = class {
793
793
  key: item.orgCode,
794
794
  nodeLevel: item.nodeLevel,
795
795
  children: item.children,
796
- disabled: !item.hasPermission,
796
+ disabled: false,
797
797
  orgType: item.orgType,
798
798
  orgId: item.orgId
799
799
  };
package/dist/index.d.mts CHANGED
@@ -377,7 +377,7 @@ declare class Permission {
377
377
  queryTotalCompanies(config?: {
378
378
  force?: boolean;
379
379
  cacheTimeout?: number;
380
- }): Promise<OrgRecord$1[]>;
380
+ }): Promise<OrgTreeItem[]>;
381
381
  isLogin(): boolean;
382
382
  getToken(): string | null;
383
383
  setToken(token: string): void;
package/dist/index.d.ts CHANGED
@@ -377,7 +377,7 @@ declare class Permission {
377
377
  queryTotalCompanies(config?: {
378
378
  force?: boolean;
379
379
  cacheTimeout?: number;
380
- }): Promise<OrgRecord$1[]>;
380
+ }): Promise<OrgTreeItem[]>;
381
381
  isLogin(): boolean;
382
382
  getToken(): string | null;
383
383
  setToken(token: string): void;
package/dist/index.mjs CHANGED
@@ -729,7 +729,7 @@ var Permission = class {
729
729
  }
730
730
  if (!orgCompanyList) {
731
731
  const { obj } = await queryOrgCustom({
732
- resultView: "TREE",
732
+ resultView: "LIST",
733
733
  orgCodeSource: "COS",
734
734
  direction: "FROM_SELF_TO_LEAF",
735
735
  orgTypes: ["HEAD", "BRANCH"],
@@ -743,7 +743,7 @@ var Permission = class {
743
743
  key: item.orgCode,
744
744
  nodeLevel: item.nodeLevel,
745
745
  children: item.children,
746
- disabled: !item.hasPermission,
746
+ disabled: false,
747
747
  orgType: item.orgType,
748
748
  orgId: item.orgId
749
749
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mu-cabin/opms-permission",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Frontend SDK for OPMS permission and auth management.",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",