@mu-cabin/opms-permission 0.9.6 → 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 +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -768,7 +768,7 @@ var Permission = class {
|
|
768
768
|
return null;
|
769
769
|
}
|
770
770
|
}
|
771
|
-
async
|
771
|
+
async queryTotalCompanies(config = {
|
772
772
|
force: false,
|
773
773
|
cacheTimeout: 2
|
774
774
|
}) {
|
@@ -779,7 +779,7 @@ var Permission = class {
|
|
779
779
|
}
|
780
780
|
if (!orgCompanyList) {
|
781
781
|
const { obj } = await queryOrgCustom({
|
782
|
-
resultView: "
|
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:
|
796
|
+
disabled: false,
|
797
797
|
orgType: item.orgType,
|
798
798
|
orgId: item.orgId
|
799
799
|
};
|
package/dist/index.d.mts
CHANGED
@@ -374,10 +374,10 @@ declare class Permission {
|
|
374
374
|
}): Promise<{
|
375
375
|
orgTree: OrgTreeItem[];
|
376
376
|
} | null>;
|
377
|
-
|
377
|
+
queryTotalCompanies(config?: {
|
378
378
|
force?: boolean;
|
379
379
|
cacheTimeout?: number;
|
380
|
-
}): Promise<
|
380
|
+
}): Promise<OrgTreeItem[]>;
|
381
381
|
isLogin(): boolean;
|
382
382
|
getToken(): string | null;
|
383
383
|
setToken(token: string): void;
|
package/dist/index.d.ts
CHANGED
@@ -374,10 +374,10 @@ declare class Permission {
|
|
374
374
|
}): Promise<{
|
375
375
|
orgTree: OrgTreeItem[];
|
376
376
|
} | null>;
|
377
|
-
|
377
|
+
queryTotalCompanies(config?: {
|
378
378
|
force?: boolean;
|
379
379
|
cacheTimeout?: number;
|
380
|
-
}): Promise<
|
380
|
+
}): Promise<OrgTreeItem[]>;
|
381
381
|
isLogin(): boolean;
|
382
382
|
getToken(): string | null;
|
383
383
|
setToken(token: string): void;
|
package/dist/index.mjs
CHANGED
@@ -718,7 +718,7 @@ var Permission = class {
|
|
718
718
|
return null;
|
719
719
|
}
|
720
720
|
}
|
721
|
-
async
|
721
|
+
async queryTotalCompanies(config = {
|
722
722
|
force: false,
|
723
723
|
cacheTimeout: 2
|
724
724
|
}) {
|
@@ -729,7 +729,7 @@ var Permission = class {
|
|
729
729
|
}
|
730
730
|
if (!orgCompanyList) {
|
731
731
|
const { obj } = await queryOrgCustom({
|
732
|
-
resultView: "
|
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:
|
746
|
+
disabled: false,
|
747
747
|
orgType: item.orgType,
|
748
748
|
orgId: item.orgId
|
749
749
|
};
|