@das-fed/utils 6.4.0-dev.126 → 6.4.0-dev.128
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/modules/app-manage/index.js +717 -735
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +717 -735
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +733 -719
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +628 -624
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +720 -738
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +717 -735
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +717 -735
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +717 -735
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +747 -733
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +764 -746
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +717 -735
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +625 -629
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +717 -735
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +716 -734
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.js +13 -12
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +13 -7
- package/common-tools/get-url-params/index.d.ts +1 -1
- package/create-api-service/index.js +716 -734
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +1 -1
- package/create-api-service/sso/index.js +425 -418
- package/create-api-service/sso/index.js.gz +0 -0
- package/hooks/use-get-auth/index.d.ts +1 -1
- package/hooks/use-get-auth/index.js +30 -30
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
package/common-info/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { getConfig as u } from "@das-fed/utils/config";
|
|
|
2
2
|
import { getUrlParams as d } from "@das-fed/utils/common-tools";
|
|
3
3
|
import { getAccessToken as I } from "@das-fed/utils/token-tools";
|
|
4
4
|
import { getTokenFromQuery as S, getProjectInfoFromQuery as y } from "@das-fed/utils/common-info/getInfoFromUrl";
|
|
5
|
-
const N = I,
|
|
5
|
+
const N = I, T = () => {
|
|
6
6
|
var r;
|
|
7
7
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
8
8
|
return {
|
|
@@ -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
|
+
}, f = () => {
|
|
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) ?? "",
|
|
@@ -118,6 +118,7 @@ const N = I, A = () => {
|
|
|
118
118
|
currentSubApp: e.currentSubApp ?? {},
|
|
119
119
|
currentSubAppCode: e.currentSubAppCode ?? "",
|
|
120
120
|
subAppList: e.subAppList ?? [],
|
|
121
|
+
fixedApps: e.fixedApps ?? [],
|
|
121
122
|
menuCollapses: e.menuCollapses ?? []
|
|
122
123
|
};
|
|
123
124
|
}, U = (e, t = !1) => {
|
|
@@ -133,7 +134,7 @@ const N = I, A = () => {
|
|
|
133
134
|
s[n.code] = n.menus ?? [];
|
|
134
135
|
}), s;
|
|
135
136
|
}
|
|
136
|
-
},
|
|
137
|
+
}, x = () => {
|
|
137
138
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
138
139
|
return {
|
|
139
140
|
currentCode: e.currentCode ?? "",
|
|
@@ -141,10 +142,10 @@ const N = I, A = () => {
|
|
|
141
142
|
tabMap: e.tabMap ?? {},
|
|
142
143
|
preTab: e.preTab ?? {}
|
|
143
144
|
};
|
|
144
|
-
},
|
|
145
|
+
}, E = () => {
|
|
145
146
|
const e = u(), t = sessionStorage.getItem("minioAddress");
|
|
146
147
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
147
|
-
},
|
|
148
|
+
}, z = () => ({
|
|
148
149
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
149
150
|
}), F = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
150
151
|
N() || S();
|
|
@@ -152,20 +153,20 @@ var i;
|
|
|
152
153
|
(i = C()) != null && i.id || y();
|
|
153
154
|
export {
|
|
154
155
|
F as getFavIcon,
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
v as getHomeInfo,
|
|
157
|
+
z as getInstanceInfo,
|
|
157
158
|
M as getLanguages,
|
|
158
159
|
U as getMenus,
|
|
159
|
-
|
|
160
|
+
E as getMinioAddress,
|
|
160
161
|
j as getPageAuth,
|
|
161
162
|
D as getPageAuthBtn,
|
|
162
163
|
k as getPersonalConfig,
|
|
163
164
|
J as getPersonalInfo,
|
|
164
165
|
C as getProjectInfo,
|
|
165
|
-
|
|
166
|
+
f as getProjectMessage,
|
|
166
167
|
m as getSubApps,
|
|
167
|
-
|
|
168
|
+
x as getTabInfo,
|
|
168
169
|
O as getTenantInfo,
|
|
169
170
|
N as getToken,
|
|
170
|
-
|
|
171
|
+
T as getUserInfo
|
|
171
172
|
};
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|
package/common-info/type.d.ts
CHANGED
|
@@ -175,17 +175,23 @@ export interface ProjectMessage {
|
|
|
175
175
|
|
|
176
176
|
export interface SubAppsInfo {
|
|
177
177
|
/** 所有应用信息 */
|
|
178
|
-
appcategorys
|
|
178
|
+
appcategorys: any[]
|
|
179
179
|
/** 当前应用完整信息 */
|
|
180
|
-
currentSubApp
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
currentSubApp: {
|
|
181
|
+
/** 当前菜单code */
|
|
182
|
+
currentMenuCode: string
|
|
183
|
+
/** 当前应用下的菜单数据 */
|
|
184
|
+
menus: any[]
|
|
185
|
+
[key: string]: any
|
|
186
|
+
}
|
|
183
187
|
/** 当前应用code */
|
|
184
|
-
currentSubAppCode
|
|
188
|
+
currentSubAppCode: string
|
|
185
189
|
/** 当前打开的应用 */
|
|
186
|
-
subAppList
|
|
190
|
+
subAppList: any[]
|
|
191
|
+
/** 常用应用 */
|
|
192
|
+
fixedApps: any[]
|
|
187
193
|
/** 当前菜单折叠的应用key集合 */
|
|
188
|
-
menuCollapses
|
|
194
|
+
menuCollapses: any[]
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
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
|