@zgfe/modules-settings 1.0.1-a.0

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.
Files changed (97) hide show
  1. package/README.md +33 -0
  2. package/dist/esm/components/pageLoading/index.d.ts +3 -0
  3. package/dist/esm/components/pageLoading/index.js +11 -0
  4. package/dist/esm/components/pageLoading/index.less +11 -0
  5. package/dist/esm/constants/api.d.ts +30 -0
  6. package/dist/esm/constants/api.js +32 -0
  7. package/dist/esm/constants/icons/demo.css +539 -0
  8. package/dist/esm/constants/icons/demo_index.html +8537 -0
  9. package/dist/esm/constants/icons/iconfont.css +1467 -0
  10. package/dist/esm/constants/icons/iconfont.js +43 -0
  11. package/dist/esm/constants/icons/iconfont.json +2550 -0
  12. package/dist/esm/constants/icons/iconfont.ttf +0 -0
  13. package/dist/esm/constants/icons/iconfont.woff +0 -0
  14. package/dist/esm/constants/icons/iconfont.woff2 +0 -0
  15. package/dist/esm/constants/styles/base.sass +9 -0
  16. package/dist/esm/constants/styles/cleverUI.css +7 -0
  17. package/dist/esm/constants/styles/constants.sass +60 -0
  18. package/dist/esm/constants/styles/customUITheme.sass +54 -0
  19. package/dist/esm/constants/styles/reset.sass +61 -0
  20. package/dist/esm/global.d.ts +4 -0
  21. package/dist/esm/index.d.ts +3 -0
  22. package/dist/esm/index.js +3 -0
  23. package/dist/esm/modules/appSettings/appInfo/index.d.ts +3 -0
  24. package/dist/esm/modules/appSettings/appInfo/index.js +45 -0
  25. package/dist/esm/modules/appSettings/dataAccessFilter/index.d.ts +3 -0
  26. package/dist/esm/modules/appSettings/dataAccessFilter/index.js +37 -0
  27. package/dist/esm/modules/appSettings/index.d.ts +3 -0
  28. package/dist/esm/modules/appSettings/index.js +24 -0
  29. package/dist/esm/modules/appSettings/member/index.d.ts +3 -0
  30. package/dist/esm/modules/appSettings/member/index.js +29 -0
  31. package/dist/esm/modules/appSettings/secretKey/index.d.ts +3 -0
  32. package/dist/esm/modules/appSettings/secretKey/index.js +8 -0
  33. package/dist/esm/modules/companySetting/appList/index.d.ts +21 -0
  34. package/dist/esm/modules/companySetting/appList/index.js +386 -0
  35. package/dist/esm/modules/companySetting/appList/index.less +72 -0
  36. package/dist/esm/modules/companySetting/cost/index.d.ts +6 -0
  37. package/dist/esm/modules/companySetting/cost/index.js +79 -0
  38. package/dist/esm/modules/companySetting/cost/index.less +31 -0
  39. package/dist/esm/modules/companySetting/edit/authConfig.d.ts +9 -0
  40. package/dist/esm/modules/companySetting/edit/authConfig.js +333 -0
  41. package/dist/esm/modules/companySetting/edit/authConfigCEP.d.ts +10 -0
  42. package/dist/esm/modules/companySetting/edit/authConfigCEP.js +309 -0
  43. package/dist/esm/modules/companySetting/edit/authGroup.d.ts +7 -0
  44. package/dist/esm/modules/companySetting/edit/authGroup.js +89 -0
  45. package/dist/esm/modules/companySetting/edit/authModule.d.ts +7 -0
  46. package/dist/esm/modules/companySetting/edit/authModule.js +217 -0
  47. package/dist/esm/modules/companySetting/edit/multiAuthModule.d.ts +7 -0
  48. package/dist/esm/modules/companySetting/edit/multiAuthModule.js +150 -0
  49. package/dist/esm/modules/companySetting/edit/styles/authConfig.less +3 -0
  50. package/dist/esm/modules/companySetting/edit/styles/authGroup.less +10 -0
  51. package/dist/esm/modules/companySetting/edit/styles/authModule.less +82 -0
  52. package/dist/esm/modules/companySetting/edit/styles/user.less +32 -0
  53. package/dist/esm/modules/companySetting/edit/styles/userGroup.less +44 -0
  54. package/dist/esm/modules/companySetting/edit/user.d.ts +12 -0
  55. package/dist/esm/modules/companySetting/edit/user.js +222 -0
  56. package/dist/esm/modules/companySetting/edit/userGroup.d.ts +14 -0
  57. package/dist/esm/modules/companySetting/edit/userGroup.js +321 -0
  58. package/dist/esm/modules/companySetting/index.d.ts +18 -0
  59. package/dist/esm/modules/companySetting/index.js +492 -0
  60. package/dist/esm/modules/companySetting/index.less +24 -0
  61. package/dist/esm/modules/companySetting/info/index.d.ts +6 -0
  62. package/dist/esm/modules/companySetting/info/index.js +105 -0
  63. package/dist/esm/modules/companySetting/info/index.less +35 -0
  64. package/dist/esm/modules/companySetting/style/common.less +68 -0
  65. package/dist/esm/modules/companySetting/user/index.d.ts +29 -0
  66. package/dist/esm/modules/companySetting/user/index.js +548 -0
  67. package/dist/esm/modules/companySetting/user/index.less +161 -0
  68. package/dist/esm/modules/companySetting/user/invite.d.ts +8 -0
  69. package/dist/esm/modules/companySetting/user/invite.js +171 -0
  70. package/dist/esm/modules/companySetting/userGroup/authConfigDetail.d.ts +16 -0
  71. package/dist/esm/modules/companySetting/userGroup/authConfigDetail.js +379 -0
  72. package/dist/esm/modules/companySetting/userGroup/groupItem.d.ts +11 -0
  73. package/dist/esm/modules/companySetting/userGroup/groupItem.js +140 -0
  74. package/dist/esm/modules/companySetting/userGroup/index.d.ts +13 -0
  75. package/dist/esm/modules/companySetting/userGroup/index.js +142 -0
  76. package/dist/esm/modules/companySetting/userGroup/index.less +6 -0
  77. package/dist/esm/modules/companySetting/userGroup/style/authConfigDetail.less +44 -0
  78. package/dist/esm/modules/companySetting/userGroup/style/index.less +79 -0
  79. package/dist/esm/modules/dsfdsf +0 -0
  80. package/dist/esm/modules/personalSetting/index.d.ts +4 -0
  81. package/dist/esm/modules/personalSetting/index.js +17 -0
  82. package/dist/esm/modules/personalSetting/index.less +1 -0
  83. package/dist/esm/modules/personalSetting/info/index.d.ts +3 -0
  84. package/dist/esm/modules/personalSetting/info/index.js +83 -0
  85. package/dist/esm/modules/personalSetting/reset/index.d.ts +3 -0
  86. package/dist/esm/modules/personalSetting/reset/index.js +93 -0
  87. package/dist/esm/utils/ajax.d.ts +3 -0
  88. package/dist/esm/utils/ajax.js +5 -0
  89. package/dist/esm/utils/base64.d.ts +11 -0
  90. package/dist/esm/utils/base64.js +128 -0
  91. package/dist/esm/utils/constants.d.ts +160 -0
  92. package/dist/esm/utils/constants.js +282 -0
  93. package/dist/esm/utils/functionalPermissions.d.ts +385 -0
  94. package/dist/esm/utils/functionalPermissions.js +407 -0
  95. package/dist/esm/utils/util.d.ts +209 -0
  96. package/dist/esm/utils/util.js +649 -0
  97. package/package.json +56 -0
@@ -0,0 +1,407 @@
1
+ /*
2
+ * 菜单name 与 菜单权限值key 映射表
3
+ * 注:每个菜单的name是唯一的,其对应的权限值key也是唯一的
4
+ * 注:权限值key 为"/顶级菜单name/上级菜单name/.../当前菜单name"
5
+ */
6
+
7
+ var standard = {
8
+ default: {
9
+ key: 'default' // 默认权限
10
+ },
11
+
12
+ all: {
13
+ key: '/' // 功能权限
14
+ },
15
+
16
+ panel: {
17
+ key: '/panel'
18
+ },
19
+ dataPanel: {
20
+ key: '/panel/dataPanel'
21
+ },
22
+ dataview: {
23
+ key: '/panel/dataview'
24
+ },
25
+ dataV: {
26
+ key: '/panel/dataV'
27
+ },
28
+ crossScreen: {
29
+ key: '/panel/crossScreen'
30
+ },
31
+ huibiao: {
32
+ key: '/panel/huibiao'
33
+ },
34
+ report: {
35
+ key: '/panel/report'
36
+ },
37
+ scene: {
38
+ key: '/scene'
39
+ },
40
+ analysis: {
41
+ key: '/analysis'
42
+ },
43
+ businessDataAnalysis: {
44
+ key: '/analysis/businessDataAnalysis'
45
+ },
46
+ zhugeBI: {
47
+ key: '/analysis/businessDataAnalysis/zhugeBI'
48
+ },
49
+ basicAnalysis: {
50
+ key: '/analysis/basicAnalysis'
51
+ },
52
+ wholeAnalysis: {
53
+ key: '/analysis/basicAnalysis/wholeAnalysis'
54
+ },
55
+ eventAnalysis: {
56
+ key: '/analysis/basicAnalysis/eventAnalysis'
57
+ },
58
+ insight: {
59
+ key: '/analysis/basicAnalysis/insight'
60
+ },
61
+ funnel: {
62
+ key: '/analysis/basicAnalysis/funnel'
63
+ },
64
+ intervalAnalysis: {
65
+ key: '/analysis/basicAnalysis/intervalAnalysis'
66
+ },
67
+ page: {
68
+ key: '/analysis/basicAnalysis/page'
69
+ },
70
+ diy: {
71
+ key: '/analysis/basicAnalysis/diy'
72
+ },
73
+ sqlQuery: {
74
+ key: '/analysis/basicAnalysis/sqlQuery'
75
+ },
76
+ customScene: {
77
+ key: '/analysis/basicAnalysis/customScene'
78
+ },
79
+ userGrowth: {
80
+ key: '/analysis/userGrowth'
81
+ },
82
+ channel: {
83
+ key: '/analysis/userGrowth/channel'
84
+ },
85
+ pathAnalysis: {
86
+ key: '/analysis/userGrowth/pathAnalysis'
87
+ },
88
+ retention: {
89
+ key: '/analysis/userGrowth/retention'
90
+ },
91
+ revenue: {
92
+ key: '/analysis/userGrowth/revenue'
93
+ },
94
+ advertisement: {
95
+ key: '/analysis/advertisement'
96
+ },
97
+ sem: {
98
+ key: '/analysis/advertisement/sem'
99
+ },
100
+ digital: {
101
+ key: '/analysis/advertisement/digital'
102
+ },
103
+ landing: {
104
+ key: '/analysis/advertisement/landing'
105
+ },
106
+ adAnalysis: {
107
+ key: '/analysis/advertisement/adAnalysis'
108
+ },
109
+ iteration: {
110
+ key: '/analysis/iteration'
111
+ },
112
+ stickiness: {
113
+ key: '/analysis/iteration/stickiness'
114
+ },
115
+ version: {
116
+ key: '/analysis/iteration/version'
117
+ },
118
+ warning: {
119
+ key: '/analysis/iteration/warning'
120
+ },
121
+ crash: {
122
+ key: '/analysis/iteration/crash'
123
+ },
124
+ zgSee: {
125
+ key: '/analysis/iteration/zgSee'
126
+ },
127
+ wechat: {
128
+ key: '/analysis/wechat'
129
+ },
130
+ wxWhole: {
131
+ key: '/analysis/wechat/wxWhole'
132
+ },
133
+ wxMini: {
134
+ key: '/analysis/wechat/wxMini'
135
+ },
136
+ wxMarketing: {
137
+ key: '/analysis/wechat/wxMarketing'
138
+ },
139
+ wxFlow: {
140
+ key: '/analysis/wechat/wxFlow'
141
+ },
142
+ diypage: {
143
+ key: '/diypage'
144
+ },
145
+ user: {
146
+ key: '/user'
147
+ },
148
+ cep: {
149
+ key: '/cep'
150
+ },
151
+ userList: {
152
+ key: '/user/userList'
153
+ },
154
+ userGroup: {
155
+ key: '/user/userGroup'
156
+ },
157
+ userPortrait: {
158
+ key: '/user/userPortrait'
159
+ },
160
+ userTags: {
161
+ key: '/user/userTags'
162
+ },
163
+ market: {
164
+ key: '/market'
165
+ },
166
+ manage: {
167
+ key: '/manage'
168
+ },
169
+ dataAccess: {
170
+ key: '/manage/dataAccess'
171
+ },
172
+ plan: {
173
+ key: '/manage/plan'
174
+ },
175
+ eventTracking: {
176
+ key: '/manage/eventTracking'
177
+ },
178
+ config: {
179
+ key: '/manage/config'
180
+ },
181
+ setting: {
182
+ default: {
183
+ describe: '设置',
184
+ key: '/setting'
185
+ },
186
+ company: {
187
+ describe: '公司设置',
188
+ key: '/setting/company'
189
+ },
190
+ app: {
191
+ describe: '应用设置',
192
+ key: '/setting/app'
193
+ },
194
+ system: {
195
+ describe: '系统设置',
196
+ key: '/setting/system'
197
+ }
198
+ },
199
+ dataset: {
200
+ key: '/dataAccess/cdp'
201
+ },
202
+ idmapping: {
203
+ key: '/dataAccess/cdp'
204
+ }
205
+ };
206
+ var mars = {
207
+ default: {
208
+ key: 'default' // 默认权限
209
+ },
210
+
211
+ all: {
212
+ key: '/' // 功能权限
213
+ },
214
+
215
+ panel: {
216
+ key: '/panel'
217
+ },
218
+ dataPanel: {
219
+ key: '/panel/dataPanel'
220
+ },
221
+ dataview: {
222
+ key: '/panel/dataview'
223
+ },
224
+ analysis: {
225
+ key: '/analysis'
226
+ },
227
+ dataV: {
228
+ key: '/panel/dataV'
229
+ },
230
+ crossScreen: {
231
+ key: '/panel/crossScreen'
232
+ },
233
+ scene: {
234
+ key: '/scene'
235
+ },
236
+ customScene: {
237
+ key: '/scene/customScene'
238
+ },
239
+ userGrowth: {
240
+ key: '/scene/userGrowth'
241
+ },
242
+ basic: {
243
+ key: '/analysis/basic'
244
+ },
245
+ wholeAnalysis: {
246
+ key: '/analysis/basic/wholeAnalysis'
247
+ },
248
+ retention: {
249
+ key: '/analysis/basic/retention'
250
+ },
251
+ source: {
252
+ key: '/analysis/source'
253
+ },
254
+ channel: {
255
+ key: '/analysis/source/channel'
256
+ },
257
+ behavior: {
258
+ key: '/analysis/behavior'
259
+ },
260
+ eventAnalysis: {
261
+ key: '/analysis/behavior/eventAnalysis'
262
+ },
263
+ page: {
264
+ key: '/analysis/behavior/page'
265
+ },
266
+ zgSee: {
267
+ key: '/analysis/behavior/zgSee'
268
+ },
269
+ conversion: {
270
+ key: '/analysis/conversion'
271
+ },
272
+ funnel: {
273
+ key: '/analysis/conversion/funnel'
274
+ },
275
+ pathAnalysis: {
276
+ key: '/analysis/conversion/pathAnalysis'
277
+ },
278
+ revenue: {
279
+ key: '/analysis/conversion/revenue'
280
+ },
281
+ stickiness: {
282
+ key: '/analysis/conversion/stickiness'
283
+ },
284
+ user: {
285
+ key: '/analysis/user'
286
+ },
287
+ cep: {
288
+ key: '/analysis/cep'
289
+ },
290
+ userList: {
291
+ key: '/analysis/user/userList'
292
+ },
293
+ userGroup: {
294
+ key: '/analysis/user/userGroup'
295
+ },
296
+ userPortrait: {
297
+ key: '/analysis/user/userPortrait'
298
+ },
299
+ custom: {
300
+ key: '/analysis/custom'
301
+ },
302
+ diy: {
303
+ key: '/analysis/custom/diy'
304
+ },
305
+ sqlQuery: {
306
+ key: '/analysis/custom/sqlQuery'
307
+ },
308
+ advertisement: {
309
+ key: '/advertisement'
310
+ },
311
+ sem: {
312
+ key: '/advertisement/sem'
313
+ },
314
+ digital: {
315
+ key: '/advertisement/digital'
316
+ },
317
+ landing: {
318
+ key: '/advertisement/landing'
319
+ },
320
+ wechat: {
321
+ key: '/wechat'
322
+ },
323
+ wxWhole: {
324
+ key: '/wechat/wxWhole'
325
+ },
326
+ wxMini: {
327
+ key: '/wechat/wxMini'
328
+ },
329
+ wxMarketing: {
330
+ key: '/wechat/wxMarketing'
331
+ },
332
+ wxFlow: {
333
+ key: '/wechat/wxFlow'
334
+ },
335
+ market: {
336
+ key: '/market'
337
+ },
338
+ manage: {
339
+ key: '/manage'
340
+ },
341
+ dataAccess: {
342
+ key: '/manage/dataAccess'
343
+ },
344
+ guide: {
345
+ key: '/manage/dataAccess/guide'
346
+ },
347
+ adChannel: {
348
+ key: '/manage/dataAccess/adChannel'
349
+ },
350
+ eventTracking: {
351
+ key: '/manage/eventTracking'
352
+ },
353
+ iteration: {
354
+ key: '/manage/iteration'
355
+ },
356
+ debug: {
357
+ key: '/manage/iteration/debug'
358
+ },
359
+ crash: {
360
+ key: '/manage/iteration/crash'
361
+ },
362
+ version: {
363
+ key: '/manage/iteration/version'
364
+ },
365
+ // 开始:zhuge 模块
366
+ warning: {
367
+ key: '/manage/warning'
368
+ },
369
+ diypage: {
370
+ key: '/diypage'
371
+ },
372
+ // crossScreen: {
373
+ // key: '/panel/crossScreen'
374
+ // },
375
+ // scene: {
376
+ // key: '/scene'
377
+ // },
378
+ // userGrowth: {
379
+ // key: '/scene/userGrowth'
380
+ // },
381
+ // 结束 :zhuge 模块
382
+ config: {
383
+ key: '/manage/config'
384
+ },
385
+ setting: {
386
+ default: {
387
+ describe: '设置',
388
+ key: '/setting'
389
+ },
390
+ company: {
391
+ describe: '公司设置',
392
+ key: '/setting/company'
393
+ },
394
+ app: {
395
+ describe: '应用设置',
396
+ key: '/setting/app'
397
+ },
398
+ system: {
399
+ describe: '系统设置',
400
+ key: '/setting/system'
401
+ }
402
+ }
403
+ };
404
+ export default {
405
+ mars: mars,
406
+ standard: standard
407
+ };
@@ -0,0 +1,209 @@
1
+ /**
2
+ * Created by yqdong on 2017/5/3.
3
+ * qq: 1013501639
4
+ * @author yqdong
5
+ *
6
+ */
7
+ declare const util: {
8
+ type(obj: any): string;
9
+ isObject(obj: any): boolean;
10
+ isArray(obj: any): boolean;
11
+ isString(obj: any): boolean;
12
+ isNumber(obj: any): boolean;
13
+ isDate(obj: any): boolean;
14
+ isFunction(obj: any): boolean;
15
+ /**
16
+ *
17
+ */
18
+ isEmpty(obj: any): boolean;
19
+ /**
20
+ * 判断对象是否是null或undefined
21
+ * @param obj
22
+ * @returns {boolean}
23
+ */
24
+ isValid(obj: any): boolean;
25
+ /**
26
+ * 判断两个对象是否相同
27
+ * @param a
28
+ * @param b
29
+ * @returns {boolean}
30
+ */
31
+ isEqual(a?: {}, b?: {}): boolean;
32
+ /**
33
+ * 合并对象
34
+ * @param defaults
35
+ * @param extend
36
+ * @returns {*}
37
+ */
38
+ mergeObject(defaults?: {}, extend?: {}): {};
39
+ /**
40
+ * 字符串占位符替换
41
+ * @param str
42
+ * @param obj
43
+ * @returns {*}
44
+ */
45
+ strReplace(str: any, obj: any): any;
46
+ /**
47
+ * 从中间拆分字符串,长度超出的话,解析为xxx...xxx
48
+ * @param str
49
+ * @param config
50
+ * @returns {*}
51
+ */
52
+ strMiddleSplit(str: any, config?: {
53
+ maxLength: number;
54
+ beginLength: number;
55
+ endLength: number;
56
+ replaceStr: string;
57
+ }): any;
58
+ /**
59
+ * 获取字符串长度,区分中英文
60
+ * @param str
61
+ * @returns {number}
62
+ */
63
+ getStrFullLength(str: any): any;
64
+ getRegExp(str: any): RegExp;
65
+ matchArray(reg: any, str: any): any[];
66
+ getHrefData(url: any): {};
67
+ /**
68
+ * 为单数前补0
69
+ * @param num
70
+ * @returns {string}
71
+ */
72
+ toDoubleNumber(num: any): any;
73
+ /**
74
+ * 日期格式化
75
+ * @param date
76
+ * @param formatter
77
+ * @returns {string}
78
+ */
79
+ dateFormat(date?: Date, formatter?: string): string;
80
+ /**
81
+ * 日期格式化
82
+ * @param date
83
+ * @param formatter
84
+ * @returns {string}
85
+ */
86
+ timeFormat(date?: Date, formatter?: string, type?: string): string | undefined;
87
+ /**
88
+ * 日期时间格式化
89
+ * @param date
90
+ * @param formatter
91
+ * @returns {string}
92
+ */
93
+ dateTimeFormat(date?: Date, formatter?: string): string;
94
+ /**
95
+ * 格式化字符串为时间(例"2017-01-01" 或"20170101")
96
+ * @param {string} str
97
+ * @returns {string}
98
+ */
99
+ getDate(str: any): Date;
100
+ /**
101
+ * 获取当前月份有多少天(例"2017-02" 28)
102
+ * @param {Date} str
103
+ * @returns {number}
104
+ */
105
+ getDays(str: any): number;
106
+ /**
107
+ * xss注入处理
108
+ */
109
+ xssEncode(str: any): any;
110
+ /**
111
+ * 字符串转为驼峰格式, eg: a_b ==> aB
112
+ * @param str
113
+ * @returns {string}
114
+ */
115
+ toCamel(str?: string): string;
116
+ /**
117
+ * 将驼峰格式字符串转化为下划线格式,eg:aB ===> a_b
118
+ * @param str
119
+ * @returns {string}
120
+ */
121
+ toUnderLine(str?: string): string;
122
+ /**
123
+ * 转为驼峰命名规范对象
124
+ * @param obj
125
+ * @returns {{}}
126
+ */
127
+ toCamelObj(obj?: {}): {};
128
+ /**
129
+ * 转为下划线命名规范对象
130
+ * @param obj
131
+ * @returns {{}}
132
+ */
133
+ toUnderLineObj(obj?: {}): {};
134
+ /**
135
+ * 根据指定url和参数对象,转成url格式字符串
136
+ * @param url
137
+ * @param param
138
+ * @returns {string}
139
+ */
140
+ toUrl(url?: string, param?: {}): string;
141
+ /**
142
+ * 将数字转为千分位分割格式
143
+ * @param num
144
+ * @returns {string}
145
+ */
146
+ toThousands(num?: number): string;
147
+ clone(obj: any): any;
148
+ isEmptyObj(obj: any): boolean;
149
+ /**
150
+ * 除法计算
151
+ * @param {number} numerator 分子
152
+ * @param {number} denominator 分母
153
+ * @param {number} precision 小数精度
154
+ * @returns {string}
155
+ */
156
+ divisionCalculation(numerator: any, denominator: any, precision?: number): number;
157
+ /**
158
+ * 计算百分比值
159
+ * @param {number} numerator 分子
160
+ * @param {number} denominator 分母
161
+ * @param {number} precision 小数精度
162
+ * @returns {string}
163
+ */
164
+ percentCalculate(numerator: any, denominator: any, precision?: number): string;
165
+ copy(text: any, onSuccess: any, onError: any): void;
166
+ guid(): string;
167
+ /**
168
+ * 格式化store中常量的值:actions、getters、mutations
169
+ * @param constant
170
+ * @param prefix
171
+ */
172
+ initializeConstants(constant: any, prefix: any): void;
173
+ getDomain(url: any): any;
174
+ /**
175
+ * 存储信息到sessionStorage
176
+ * 使用方法同sessionStorage.setItem但仅更新已经存在的key
177
+ * 作用:和老平台代码数据同步@完全改版后需删除
178
+ * @param key
179
+ * @param value
180
+ */
181
+ storageSetItem(key: any, value: any): void;
182
+ isPC(): boolean;
183
+ /**
184
+ * 通过相对时间,获取绝对时间
185
+ * @param unit 相对时间单位,天、周、月
186
+ * @param count 相对多少天、周、月
187
+ * @param maxDate 最大时间(一般是今天或者昨天,即是否支持实时)
188
+ * @returns {{startDate: null, endDate: null}}
189
+ */
190
+ getAbsoluteDate(unit: any, count: any, maxDate: any): {
191
+ startDate: null;
192
+ endDate: null;
193
+ };
194
+ /**
195
+ * 区分中英文截取字符串长度
196
+ **/
197
+ splitString(str: any, olength: any, suffix: any): {
198
+ str: string;
199
+ len: number;
200
+ };
201
+ /**
202
+ * base64图片转二进制
203
+ */
204
+ dataUrlToFile(base64Str: any): Blob;
205
+ covertSVG2Image(node: any, width: any, height: any): Promise<unknown>;
206
+ _getTypeStr: (index: any) => string;
207
+ getMenuRouterByName(name: any): any;
208
+ };
209
+ export default util;