@das-fed/utils 7.0.0-beta.5 → 7.0.0-zhaohang.2
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/api-services/index.js +217 -231
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +445 -459
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +445 -459
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +337 -351
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +950 -946
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +959 -959
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +963 -995
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +929 -961
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +445 -459
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +109 -123
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +617 -631
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +384 -398
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +384 -398
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +445 -459
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +445 -459
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +676 -690
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +445 -459
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +445 -459
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +956 -952
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +965 -961
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +384 -398
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +445 -459
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +445 -459
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +445 -459
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.d.ts +0 -2
- package/common-info/index.js +19 -20
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +7 -11
- package/common-tools/get-url-params/index.d.ts +1 -1
- package/create-api-service/index.d.ts +1 -3
- package/create-api-service/index.js +940 -940
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +412 -411
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +95 -94
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +3 -3
- package/esm-map.json +1 -2
- package/package.json +4 -4
|
Binary file
|
package/common-info/index.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ export declare const getUserInfo: () => UserInfo;
|
|
|
8
8
|
export declare const getPersonalInfo: () => PersonalInfo;
|
|
9
9
|
/** 获取当前租户详情 */
|
|
10
10
|
export declare const getTenantInfo: () => TenantInfo;
|
|
11
|
-
/** 获取当前租户设置了多少个语言类型 */
|
|
12
|
-
export declare const getLanguages: () => any;
|
|
13
11
|
/**
|
|
14
12
|
* 获取项目信息
|
|
15
13
|
* @returns 项目信息
|
package/common-info/index.js
CHANGED
|
@@ -44,7 +44,7 @@ const N = I, A = () => {
|
|
|
44
44
|
address: e.address ?? "",
|
|
45
45
|
description: e.description ?? ""
|
|
46
46
|
};
|
|
47
|
-
},
|
|
47
|
+
}, C = () => {
|
|
48
48
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
49
49
|
const t = u();
|
|
50
50
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
@@ -60,7 +60,7 @@ const N = I, A = () => {
|
|
|
60
60
|
leaf: (e == null ? void 0 : e.leaf) ?? !1,
|
|
61
61
|
optional: (e == null ? void 0 : e.leaf) ?? !0
|
|
62
62
|
};
|
|
63
|
-
},
|
|
63
|
+
}, M = () => {
|
|
64
64
|
let e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
|
|
65
65
|
return {
|
|
66
66
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
@@ -85,7 +85,7 @@ const N = I, A = () => {
|
|
|
85
85
|
autoTimezone: (e == null ? void 0 : e.autoTimezone) ?? !1,
|
|
86
86
|
currency: (e == null ? void 0 : e.currency) ?? {}
|
|
87
87
|
};
|
|
88
|
-
},
|
|
88
|
+
}, v = () => {
|
|
89
89
|
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
90
90
|
return {
|
|
91
91
|
applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
|
|
@@ -96,7 +96,7 @@ const N = I, A = () => {
|
|
|
96
96
|
displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
|
|
97
97
|
type: (e == null ? void 0 : e.type) ?? null
|
|
98
98
|
};
|
|
99
|
-
},
|
|
99
|
+
}, f = () => {
|
|
100
100
|
const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
101
101
|
return {
|
|
102
102
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
@@ -111,7 +111,7 @@ const N = I, A = () => {
|
|
|
111
111
|
const p = (g = c[s]) == null ? void 0 : g[l];
|
|
112
112
|
if (p)
|
|
113
113
|
return p.length ? p : c[s]["origin-auth"] ? c[s]["origin-auth"][l] ?? [] : [];
|
|
114
|
-
},
|
|
114
|
+
}, k = (e, t) => j(e, t) ?? [], m = () => {
|
|
115
115
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
116
116
|
return {
|
|
117
117
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -120,7 +120,7 @@ const N = I, A = () => {
|
|
|
120
120
|
subAppList: e.subAppList ?? [],
|
|
121
121
|
menuCollapses: e.menuCollapses ?? []
|
|
122
122
|
};
|
|
123
|
-
},
|
|
123
|
+
}, D = (e, t = !1) => {
|
|
124
124
|
var a, o;
|
|
125
125
|
const r = m().subAppList;
|
|
126
126
|
if (e)
|
|
@@ -133,7 +133,7 @@ const N = I, A = () => {
|
|
|
133
133
|
s[n.code] = n.menus ?? [];
|
|
134
134
|
}), s;
|
|
135
135
|
}
|
|
136
|
-
},
|
|
136
|
+
}, U = () => {
|
|
137
137
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
138
138
|
return {
|
|
139
139
|
currentCode: e.currentCode ?? "",
|
|
@@ -141,30 +141,29 @@ const N = I, A = () => {
|
|
|
141
141
|
tabMap: e.tabMap ?? {},
|
|
142
142
|
preTab: e.preTab ?? {}
|
|
143
143
|
};
|
|
144
|
-
},
|
|
144
|
+
}, E = () => {
|
|
145
145
|
const e = u(), t = sessionStorage.getItem("minioAddress");
|
|
146
146
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
147
|
-
},
|
|
147
|
+
}, z = () => ({
|
|
148
148
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
149
|
-
}),
|
|
149
|
+
}), x = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
150
150
|
N() || S();
|
|
151
151
|
var i;
|
|
152
152
|
(i = C()) != null && i.id || y();
|
|
153
153
|
export {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
z as getMinioAddress,
|
|
154
|
+
x as getFavIcon,
|
|
155
|
+
v as getHomeInfo,
|
|
156
|
+
z as getInstanceInfo,
|
|
157
|
+
D as getMenus,
|
|
158
|
+
E as getMinioAddress,
|
|
160
159
|
j as getPageAuth,
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
k as getPageAuthBtn,
|
|
161
|
+
f as getPersonalConfig,
|
|
163
162
|
J as getPersonalInfo,
|
|
164
163
|
C as getProjectInfo,
|
|
165
|
-
|
|
164
|
+
M as getProjectMessage,
|
|
166
165
|
m as getSubApps,
|
|
167
|
-
|
|
166
|
+
U as getTabInfo,
|
|
168
167
|
O as getTenantInfo,
|
|
169
168
|
N as getToken,
|
|
170
169
|
A as getUserInfo
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|
package/common-info/type.d.ts
CHANGED
|
@@ -175,21 +175,17 @@ export interface ProjectMessage {
|
|
|
175
175
|
|
|
176
176
|
export interface SubAppsInfo {
|
|
177
177
|
/** 所有应用信息 */
|
|
178
|
-
appcategorys
|
|
178
|
+
appcategorys?: any[]
|
|
179
179
|
/** 当前应用完整信息 */
|
|
180
|
-
currentSubApp
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
/** 当前应用下的菜单数据 */
|
|
184
|
-
menus: any[]
|
|
185
|
-
[key: string]: any
|
|
186
|
-
}
|
|
180
|
+
currentSubApp?: any
|
|
181
|
+
/** 所有应用 */
|
|
182
|
+
flatSubAppList?: any[]
|
|
187
183
|
/** 当前应用code */
|
|
188
|
-
currentSubAppCode
|
|
184
|
+
currentSubAppCode?: string
|
|
189
185
|
/** 当前打开的应用 */
|
|
190
|
-
subAppList
|
|
186
|
+
subAppList?: any[]
|
|
191
187
|
/** 当前菜单折叠的应用key集合 */
|
|
192
|
-
menuCollapses
|
|
188
|
+
menuCollapses?: any[]
|
|
193
189
|
}
|
|
194
190
|
|
|
195
191
|
interface TabItem {
|
|
@@ -13,7 +13,7 @@ export declare const getUrlParams: (allUrl?: string, queryName?: string) => any;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const getFullPath: (url: string, queryObj?: any) => string;
|
|
15
15
|
/**
|
|
16
|
-
* 删除url中指定的参数,并返回最终的url
|
|
16
|
+
* 删除url中指定的参数,并返回最终的url
|
|
17
17
|
* @param queryNames 数组,需要删除的参数名集合
|
|
18
18
|
* @param url 指定url
|
|
19
19
|
* @returns
|