@das-fed/utils 6.4.0-test.3.2 → 6.4.0-test.30
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/i18n/index.d.ts +53 -0
- package/api-services/i18n/index.js +27 -0
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +1589 -1395
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +1390 -1226
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1340 -1190
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1347 -1201
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +1390 -1226
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +1395 -1231
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1384 -1224
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +1526 -1357
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1390 -1226
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1526 -1357
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +1422 -1257
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +1364 -1218
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +1401 -1237
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +1343 -1197
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1390 -1226
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +1400 -1236
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +1390 -1226
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +1390 -1226
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +1381 -1217
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1346 -1200
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1343 -1197
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +1390 -1226
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1390 -1226
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +1390 -1226
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.d.ts +9 -3
- package/common-info/index.js +100 -53
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +446 -440
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +99 -5
- package/common-tools/calc-text-width/index.d.ts +1 -0
- package/common-tools/calc-text-width/index.js +10 -0
- package/common-tools/extract-file-name/index.js +737 -738
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/index.d.ts +6 -0
- package/common-tools/get-file-extension/index.js +7 -0
- package/common-tools/index.d.ts +2 -0
- package/common-tools/index.js +2 -0
- package/common-tools/nest-tree-format/index.d.ts +1 -1
- package/common-tools/nest-tree-format/index.js +15 -15
- package/create-api-service/i18n/index.d.ts +33 -0
- package/create-api-service/i18n/index.js +15 -0
- package/create-api-service/index.js +1390 -1226
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +0 -2
- package/create-api-service/sso/index.js +482 -479
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +575 -575
- package/curring-http/index.js.gz +0 -0
- package/directive/hoverInside/index.d.ts +1 -1
- package/dom-check-in/index.js +2 -2
- package/dom-watcher/index.d.ts +1 -1
- package/esm-map.json +6 -1
- package/package.json +4 -4
- package/pinyin-first-character/index.js +22 -22
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +1 -1
- package/style/index.js.gz +0 -0
- package/style/math.d.ts +4 -4
- package/token-tools/index.d.ts +6 -1
- package/token-tools/index.js +6 -6
- package/use-low-code/index.js +2 -2
- package/use-low-code/index.js.gz +0 -0
- package/i18n-collection/en.js +0 -21
- package/i18n-collection/zh-CN.js +0 -21
|
Binary file
|
package/common-info/type.d.ts
CHANGED
|
@@ -29,31 +29,80 @@ export interface TenantInfo {
|
|
|
29
29
|
userId: string
|
|
30
30
|
/** 用户名 */
|
|
31
31
|
userName: string
|
|
32
|
+
/** 用户名称 */
|
|
32
33
|
name: string
|
|
34
|
+
/** 昵称 */
|
|
35
|
+
nickName: string
|
|
36
|
+
/** 手机号 */
|
|
37
|
+
phone: string
|
|
38
|
+
/** 邮箱 */
|
|
39
|
+
email: string
|
|
40
|
+
/** 性别 1 男 2 女 */
|
|
41
|
+
gender: number
|
|
42
|
+
/** 用户状态 1 正常 2 锁定 3 禁用*/
|
|
43
|
+
status: number
|
|
44
|
+
/** 状态名称 */
|
|
45
|
+
statusName: string
|
|
46
|
+
/** 用户类型。0:普通 1:管理员 */
|
|
47
|
+
type: number
|
|
33
48
|
/** 租户信息 */
|
|
34
49
|
tenant: {
|
|
50
|
+
/** 租户ID */
|
|
35
51
|
id: string
|
|
52
|
+
/** 租户名 */
|
|
36
53
|
name: string
|
|
54
|
+
/** 域,如:qq,das */
|
|
55
|
+
domain: string
|
|
56
|
+
/** 管理员用户ID */
|
|
37
57
|
adminUserId: string
|
|
58
|
+
/** 租户描述 */
|
|
38
59
|
description: string
|
|
39
|
-
|
|
60
|
+
/** 是否开通三员权限管理,0表示未开通,1表示已开通。 */
|
|
61
|
+
thirdManaged: number
|
|
40
62
|
}
|
|
41
63
|
/** 用户标识 2 - B端身份, 4 - C 端身份, 6 - B+C 端身份 */
|
|
42
64
|
flag: number
|
|
65
|
+
/** 当前区号 */
|
|
43
66
|
areaCode: string
|
|
44
|
-
/**
|
|
45
|
-
|
|
67
|
+
/** 地区 */
|
|
68
|
+
region: string
|
|
69
|
+
/** 地址 */
|
|
70
|
+
address: string
|
|
71
|
+
/** 描述 */
|
|
72
|
+
description: string
|
|
73
|
+
|
|
74
|
+
/** 头像 */
|
|
75
|
+
headPicture: string
|
|
76
|
+
/** 用户标签 */
|
|
77
|
+
tags: {
|
|
78
|
+
id: number
|
|
79
|
+
key: string
|
|
80
|
+
value: string
|
|
81
|
+
desc: string
|
|
82
|
+
}[]
|
|
46
83
|
}
|
|
47
84
|
|
|
48
85
|
export interface HomeInfo {
|
|
86
|
+
/** 应用code */
|
|
49
87
|
applicationCode: string
|
|
88
|
+
/** 应用path */
|
|
50
89
|
applicationPath: string
|
|
90
|
+
/** 是否启用 */
|
|
51
91
|
enable: boolean
|
|
52
92
|
originalCode: string
|
|
53
93
|
routeUrl: string
|
|
94
|
+
/** 首页展示位置 1在应用中心左侧 2在应用中心右侧 */
|
|
95
|
+
displayPosition: 1 | 2
|
|
54
96
|
type: number | null
|
|
55
97
|
}
|
|
56
98
|
|
|
99
|
+
export interface PersonalConfigInfo {
|
|
100
|
+
/** 侧边栏菜单风格(1:弹出式;2:内嵌式 )*/
|
|
101
|
+
style: 1 | 2
|
|
102
|
+
/** 皮肤风格 (default:默认皮肤;kjl:科技蓝;cjb:纯净白;ssl:深邃蓝)*/
|
|
103
|
+
skinStyle: 'default' | 'kjl' | 'cjb' | 'ssl'
|
|
104
|
+
}
|
|
105
|
+
|
|
57
106
|
export interface ProjectInfo {
|
|
58
107
|
/** 项目id */
|
|
59
108
|
id: string
|
|
@@ -61,13 +110,13 @@ export interface ProjectInfo {
|
|
|
61
110
|
code: string
|
|
62
111
|
/** 项目名称 */
|
|
63
112
|
name: string
|
|
64
|
-
/**
|
|
113
|
+
/** 项目类型: 1: 集团、 2:公司、3: 区域、4: 分公司、 5: 子公司、6: 管理中心、 7: 项目、8: 部门、 9: 组 */
|
|
65
114
|
type: string
|
|
66
115
|
/** 父级id */
|
|
67
116
|
parentId?: string
|
|
68
117
|
/** 父级名称 */
|
|
69
118
|
parentName?: string
|
|
70
|
-
/**
|
|
119
|
+
/** 父级项目类型:1: 集团、 2:公司、3: 区域、4: 分公司、 5: 子公司、6: 管理中心、 7: 项目、8: 部门、 9: 组 */
|
|
71
120
|
parentType?: number
|
|
72
121
|
/** 租户id */
|
|
73
122
|
tenantId?: string
|
|
@@ -79,6 +128,51 @@ export interface ProjectInfo {
|
|
|
79
128
|
optional?: boolean
|
|
80
129
|
}
|
|
81
130
|
|
|
131
|
+
export interface ProjectMessage {
|
|
132
|
+
/** 主键id */
|
|
133
|
+
id: number | string
|
|
134
|
+
/** 项目名称 */
|
|
135
|
+
projectName: string
|
|
136
|
+
/** 省级(省份、直辖市、自治区)编码 */
|
|
137
|
+
provinceCode: string
|
|
138
|
+
/** 地级(城市)编码 */
|
|
139
|
+
cityCode: string
|
|
140
|
+
/** 县级(区县)编码 */
|
|
141
|
+
areaCode: string
|
|
142
|
+
/** 详细位置 */
|
|
143
|
+
address: string
|
|
144
|
+
/** 项目简介 */
|
|
145
|
+
projectDesc: string
|
|
146
|
+
/** 项目图片路径 */
|
|
147
|
+
logoPath: string
|
|
148
|
+
/** 项目类型 */
|
|
149
|
+
projectType: string
|
|
150
|
+
/** 项目类型code */
|
|
151
|
+
projectTypeCode: string
|
|
152
|
+
/** 经度 */
|
|
153
|
+
longitude: string
|
|
154
|
+
/** 纬度 */
|
|
155
|
+
latitude: string
|
|
156
|
+
/** 项目开始时间 */
|
|
157
|
+
projectStartDate: string
|
|
158
|
+
/** 项目有效期 */
|
|
159
|
+
projectExpiryDate: string
|
|
160
|
+
/** 项目编码 */
|
|
161
|
+
projectCode: string
|
|
162
|
+
/** 地图配置是否开启 */
|
|
163
|
+
mapConfiguration: boolean
|
|
164
|
+
/** 地级(城市)名称 */
|
|
165
|
+
cityName: string
|
|
166
|
+
/** 地级(城市)名称拼音 */
|
|
167
|
+
cityNamePinyin: string
|
|
168
|
+
/** 时区ID */
|
|
169
|
+
timezone: string
|
|
170
|
+
/** 是否自动设定时区 */
|
|
171
|
+
autoTimezone: boolean
|
|
172
|
+
/** 货币信息(currencyCode:ISO 4217货币编码(例:CNY);currencyUnit:货币单位,例:元(中文),CNY(英文);currencySymbol:货币符号,例:¥) */
|
|
173
|
+
currency: Record<'currencyCode' | 'currencyUnit' | 'currencySymbol', string>
|
|
174
|
+
}
|
|
175
|
+
|
|
82
176
|
export interface SubAppsInfo {
|
|
83
177
|
/** 所有应用信息 */
|
|
84
178
|
appcategorys?: any[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const calcTextWidth: (text: string, fontSize: number) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const n = (t, i) => {
|
|
2
|
+
if (!t) return 0;
|
|
3
|
+
const e = document.createElement("div");
|
|
4
|
+
e.style.visibility = "hidden", e.style.whiteSpace = "pre", e.style.display = "inline-block", e.style.fontSize = i + "px", e.textContent = t, document.body.appendChild(e);
|
|
5
|
+
const d = e.offsetWidth;
|
|
6
|
+
return document.body.removeChild(e), d;
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
n as calcTextWidth
|
|
10
|
+
};
|