@das-fed/utils 7.0.0-zhaohang.7 → 7.0.0-zhongshen.1
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 +917 -893
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +827 -835
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +827 -835
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +813 -803
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +827 -835
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +941 -945
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +923 -927
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +822 -830
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +837 -827
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +967 -939
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +972 -962
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +788 -778
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +837 -827
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +837 -827
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +837 -827
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +992 -982
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +962 -934
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +837 -827
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +942 -946
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +839 -829
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +926 -930
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +814 -804
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +837 -827
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +836 -826
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +20 -19
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +11 -7
- package/common-tools/get-url-params/index.d.ts +1 -1
- package/create-api-service/index.d.ts +3 -1
- package/create-api-service/index.js +836 -826
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +403 -393
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +438 -439
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +3 -3
- package/esm-map.json +2 -1
- 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
- package/vue/hooks/use-model-value/index.d.ts +5 -1
|
Binary file
|
package/common-info/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ 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;
|
|
11
13
|
/**
|
|
12
14
|
* 获取项目信息
|
|
13
15
|
* @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
|
-
}, C = () => {
|
|
47
|
+
}, M = () => sessionStorage.getItem("languages"), 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
|
+
}, v = () => {
|
|
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
|
+
}, f = () => {
|
|
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
|
+
}, k = () => {
|
|
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
|
+
}, D = (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
|
+
}, U = (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
|
+
}, E = () => {
|
|
137
137
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
138
138
|
return {
|
|
139
139
|
currentCode: e.currentCode ?? "",
|
|
@@ -141,29 +141,30 @@ const N = I, A = () => {
|
|
|
141
141
|
tabMap: e.tabMap ?? {},
|
|
142
142
|
preTab: e.preTab ?? {}
|
|
143
143
|
};
|
|
144
|
-
},
|
|
144
|
+
}, z = () => {
|
|
145
145
|
const e = u(), t = sessionStorage.getItem("minioAddress");
|
|
146
146
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
147
|
-
},
|
|
147
|
+
}, x = () => ({
|
|
148
148
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
149
|
-
}),
|
|
149
|
+
}), F = () => 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
|
-
|
|
154
|
+
F as getFavIcon,
|
|
155
|
+
f as getHomeInfo,
|
|
156
|
+
x as getInstanceInfo,
|
|
157
|
+
M as getLanguages,
|
|
158
|
+
U as getMenus,
|
|
159
|
+
z as getMinioAddress,
|
|
159
160
|
j as getPageAuth,
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
D as getPageAuthBtn,
|
|
162
|
+
k as getPersonalConfig,
|
|
162
163
|
J as getPersonalInfo,
|
|
163
164
|
C as getProjectInfo,
|
|
164
|
-
|
|
165
|
+
v as getProjectMessage,
|
|
165
166
|
m as getSubApps,
|
|
166
|
-
|
|
167
|
+
E as getTabInfo,
|
|
167
168
|
O as getTenantInfo,
|
|
168
169
|
N as getToken,
|
|
169
170
|
A as getUserInfo
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|
package/common-info/type.d.ts
CHANGED
|
@@ -175,17 +175,21 @@ 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[]
|
|
187
191
|
/** 当前菜单折叠的应用key集合 */
|
|
188
|
-
menuCollapses
|
|
192
|
+
menuCollapses: any[]
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
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
|