@indfnd/utils 0.1.35 → 0.1.36

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 (62) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ind-utils.es.js +407 -527
  3. package/dist/ind-utils.umd.cjs +20 -20
  4. package/package.json +1 -1
  5. package/src/api/com.ts +5 -2
  6. package/src/api/item.ts +9 -4
  7. package/src/api/platform/oss.ts +75 -75
  8. package/types/api/com.d.ts +4 -2
  9. package/types/api/com.d.ts.map +1 -1
  10. package/types/api/index-desc.d.ts +4 -2
  11. package/types/api/index-desc.d.ts.map +1 -1
  12. package/types/api/index.d.ts +7 -7
  13. package/types/api/item.d.ts +6 -4
  14. package/types/api/item.d.ts.map +1 -1
  15. package/types/api/permission.d.ts +2 -2
  16. package/types/api/platform/base64.d.ts +5 -5
  17. package/types/api/platform/config.d.ts +2 -2
  18. package/types/api/platform/dict.d.ts +6 -4
  19. package/types/api/platform/dict.d.ts.map +1 -1
  20. package/types/api/platform/index.d.ts +6 -6
  21. package/types/api/platform/menu.d.ts +21 -11
  22. package/types/api/platform/menu.d.ts.map +1 -1
  23. package/types/api/platform/oss.d.ts +16 -8
  24. package/types/api/platform/oss.d.ts.map +1 -1
  25. package/types/api/platform/user.d.ts +19 -12
  26. package/types/api/platform/user.d.ts.map +1 -1
  27. package/types/api/user.d.ts +2 -2
  28. package/types/config/base.config.d.ts +33 -33
  29. package/types/config/dev.config.d.ts +3 -3
  30. package/types/config/index.d.ts +6 -6
  31. package/types/config/prod.config.d.ts +3 -3
  32. package/types/index.d.ts +4 -4
  33. package/types/utils/base64.d.ts +22 -22
  34. package/types/utils/blob.d.ts +3 -3
  35. package/types/utils/cache/dict-cache.d.ts +3 -3
  36. package/types/utils/cache/index-desc.d.ts +4 -4
  37. package/types/utils/cache/index.d.ts +4 -4
  38. package/types/utils/cache/permission-cache.d.ts +4 -4
  39. package/types/utils/cache/user-cache.d.ts +4 -4
  40. package/types/utils/date.d.ts +4 -4
  41. package/types/utils/enum.d.ts +43 -39
  42. package/types/utils/event.d.ts +13 -5
  43. package/types/utils/excel.d.ts +4 -4
  44. package/types/utils/half-year.d.ts +6 -6
  45. package/types/utils/index.d.ts +20 -20
  46. package/types/utils/is-type.d.ts +33 -33
  47. package/types/utils/mime-type.d.ts +67 -67
  48. package/types/utils/number.d.ts +8 -8
  49. package/types/utils/quarter.d.ts +7 -7
  50. package/types/utils/request/axios.extends.d.ts +18 -6
  51. package/types/utils/request/cache-rules.d.ts +3 -3
  52. package/types/utils/request/content-type.d.ts +9 -9
  53. package/types/utils/request/index.d.ts +16 -13
  54. package/types/utils/request/interceptors.d.ts +4 -4
  55. package/types/utils/request/url-params.d.ts +6 -6
  56. package/types/utils/sm3/index.d.ts +6 -6
  57. package/types/utils/sm3/sm3.d.ts +3 -3
  58. package/types/utils/storage.d.ts +8 -8
  59. package/types/utils/table.d.ts +40 -31
  60. package/types/utils/token.d.ts +3 -3
  61. package/types/utils/uuid.d.ts +4 -4
  62. package/types/utils/validate.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/utils",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/src/api/com.ts CHANGED
@@ -1,11 +1,14 @@
1
1
  import { axios } from '@/utils'
2
2
  import { config } from '@/config'
3
-
3
+ const isHb = location.pathname.includes('scyxweb')
4
4
  const CONTEXT = config.ismAmServerContext
5
5
 
6
6
  export function listComTreeApi(params) {
7
7
  if (config.useDddComItemTree) {
8
- return axios.get(`${config.ucExtServerContext}/manage/tree/getBusiComTree`, { params })
8
+ return axios.get(
9
+ `${isHb ? '/scyxgateway' : ''}${config.ucExtServerContext}/manage/tree/getBusiComTree`,
10
+ { params },
11
+ )
9
12
  }
10
13
  return axios.get(`${CONTEXT}/tree/com/listComTree`, { params })
11
14
  }
package/src/api/item.ts CHANGED
@@ -1,13 +1,18 @@
1
1
  import { axios } from '@/utils'
2
2
  import { config } from '@/config'
3
-
3
+ const isHb = location.pathname.includes('scyxweb')
4
4
  const CONTEXT = config.ismAmServerContext
5
5
 
6
6
  export function listItemTreeApi(params) {
7
7
  if (config.useDddComItemTree) {
8
- return axios.get(`${config.ucExtServerContext}/manage/tree/getProductInfoAsTreeData`, {
9
- params,
10
- })
8
+ return axios.get(
9
+ `${isHb ? '/scyxgateway' : ''}${
10
+ config.ucExtServerContext
11
+ }/manage/tree/getProductInfoAsTreeData`,
12
+ {
13
+ params,
14
+ },
15
+ )
11
16
  }
12
17
  return axios.get(`${CONTEXT}/tree/item/listItemTree`, { params })
13
18
  }
@@ -146,63 +146,63 @@ export async function downLoadScDcApi(fileId: string, fileName: string) {
146
146
  * @returns {string|null} 解析出的文件名
147
147
  */
148
148
  function parseContentDisposition(contentDisposition) {
149
- if (!contentDisposition) return null;
150
-
151
- console.log('原始 Content-Disposition:', contentDisposition); // 调试用
152
-
149
+ if (!contentDisposition) return null
150
+
151
+ console.log('原始 Content-Disposition:', contentDisposition) // 调试用
152
+
153
153
  // 1. 首先尝试解析 filename* (RFC 5987 格式)
154
154
  // 格式: filename*=UTF-8''encoded-filename
155
- const utf8FilenameMatch = contentDisposition.match(/filename\*=(?:UTF-8''|UTF-8\s*'')([^;]+)/i);
156
-
155
+ const utf8FilenameMatch = contentDisposition.match(/filename\*=(?:UTF-8''|UTF-8\s*'')([^;]+)/i)
156
+
157
157
  if (utf8FilenameMatch && utf8FilenameMatch[1]) {
158
158
  try {
159
159
  // 解码 RFC 5987 编码的文件名
160
- const decoded = decodeURIComponent(utf8FilenameMatch[1].trim());
161
- console.log('解析 RFC 5987 文件名:', decoded);
162
- return decoded;
160
+ const decoded = decodeURIComponent(utf8FilenameMatch[1].trim())
161
+ console.log('解析 RFC 5987 文件名:', decoded)
162
+ return decoded
163
163
  } catch (e) {
164
- console.warn('RFC 5987 解码失败:', e);
164
+ console.warn('RFC 5987 解码失败:', e)
165
165
  // 继续尝试其他格式
166
166
  }
167
167
  }
168
-
168
+
169
169
  // 2. 尝试解析 filename* 的其他编码格式
170
- const filenameStarMatch = contentDisposition.match(/filename\*=([^;]+)/i);
170
+ const filenameStarMatch = contentDisposition.match(/filename\*=([^;]+)/i)
171
171
  if (filenameStarMatch && filenameStarMatch[1]) {
172
- const encoded = filenameStarMatch[1].trim();
173
-
172
+ const encoded = filenameStarMatch[1].trim()
173
+
174
174
  // 检查是否包含编码信息(如 ISO-8859-1, UTF-8 等)
175
175
  if (encoded.includes("''")) {
176
- const parts = encoded.split("''");
176
+ const parts = encoded.split("''")
177
177
  if (parts.length === 2) {
178
178
  try {
179
- const decoded = decodeURIComponent(parts[1]);
180
- console.log('解析 filename* 文件名:', decoded);
181
- return decoded;
179
+ const decoded = decodeURIComponent(parts[1])
180
+ console.log('解析 filename* 文件名:', decoded)
181
+ return decoded
182
182
  } catch (e) {
183
- console.warn('filename* 解码失败:', e);
183
+ console.warn('filename* 解码失败:', e)
184
184
  }
185
185
  }
186
186
  }
187
187
  }
188
-
188
+
189
189
  // 3. 尝试解析普通的 filename(引号内的)
190
- const quotedFilenameMatch = contentDisposition.match(/filename="([^"]+)"/i);
190
+ const quotedFilenameMatch = contentDisposition.match(/filename="([^"]+)"/i)
191
191
  if (quotedFilenameMatch && quotedFilenameMatch[1]) {
192
- console.log('解析引号内文件名:', quotedFilenameMatch[1]);
193
- return quotedFilenameMatch[1];
192
+ console.log('解析引号内文件名:', quotedFilenameMatch[1])
193
+ return quotedFilenameMatch[1]
194
194
  }
195
-
195
+
196
196
  // 4. 尝试解析不带引号的 filename
197
- const unquotedFilenameMatch = contentDisposition.match(/filename=([^;]+)/i);
197
+ const unquotedFilenameMatch = contentDisposition.match(/filename=([^;]+)/i)
198
198
  if (unquotedFilenameMatch && unquotedFilenameMatch[1]) {
199
- const filename = unquotedFilenameMatch[1].trim();
200
- console.log('解析无引号文件名:', filename);
201
- return filename;
199
+ const filename = unquotedFilenameMatch[1].trim()
200
+ console.log('解析无引号文件名:', filename)
201
+ return filename
202
202
  }
203
-
204
- console.log('未找到有效的文件名');
205
- return null;
203
+
204
+ console.log('未找到有效的文件名')
205
+ return null
206
206
  }
207
207
 
208
208
  /**
@@ -211,40 +211,40 @@ function parseContentDisposition(contentDisposition) {
211
211
  * @returns {Promise<string>} 文件名
212
212
  */
213
213
  function getFilenameFromResponse(response) {
214
- const contentDisposition = response.headers.get('Content-Disposition');
215
- console.log('Content-Disposition 头:', contentDisposition);
216
-
217
- let filename = null;
218
-
214
+ const contentDisposition = response.headers.get('Content-Disposition')
215
+ console.log('Content-Disposition 头:', contentDisposition)
216
+
217
+ let filename = null
218
+
219
219
  if (contentDisposition) {
220
- filename = parseContentDisposition(contentDisposition);
221
- console.log('解析到的文件名:', filename);
220
+ filename = parseContentDisposition(contentDisposition)
221
+ console.log('解析到的文件名:', filename)
222
222
  }
223
-
223
+
224
224
  // 如果从 Content-Disposition 中没获取到,从 URL 获取
225
225
  if (!filename && response.url) {
226
- filename = extractFilenameFromUrl(response.url);
227
- console.log('从 URL 提取的文件名:', filename);
226
+ filename = extractFilenameFromUrl(response.url)
227
+ console.log('从 URL 提取的文件名:', filename)
228
228
  }
229
-
229
+
230
230
  // 如果还是没有,使用默认文件名
231
231
  if (!filename) {
232
- filename = 'download';
233
- console.log('使用默认文件名:', filename);
232
+ filename = 'download'
233
+ console.log('使用默认文件名:', filename)
234
234
  }
235
-
235
+
236
236
  // 确保文件名有扩展名
237
- filename = ensureFileExtension(filename, response.headers.get('Content-Type'));
238
-
239
- return filename;
237
+ filename = ensureFileExtension(filename, response.headers.get('Content-Type'))
238
+
239
+ return filename
240
240
  }
241
241
 
242
242
  /**
243
243
  * 根据内容类型获取文件扩展名
244
244
  */
245
245
  function getExtensionFromContentType(contentType) {
246
- if (!contentType) return '';
247
-
246
+ if (!contentType) return ''
247
+
248
248
  const contentTypeToExtension = {
249
249
  // 图片
250
250
  'image/jpeg': '.jpg',
@@ -254,7 +254,7 @@ function getExtensionFromContentType(contentType) {
254
254
  'image/webp': '.webp',
255
255
  'image/svg+xml': '.svg',
256
256
  'image/bmp': '.bmp',
257
-
257
+
258
258
  // 文档
259
259
  'application/pdf': '.pdf',
260
260
  'application/msword': '.doc',
@@ -263,7 +263,7 @@ function getExtensionFromContentType(contentType) {
263
263
  'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': '.xlsx',
264
264
  'application/vnd.ms-powerpoint': '.ppt',
265
265
  'application/vnd.openxmlformats-officedocument.presentationml.presentation': '.pptx',
266
-
266
+
267
267
  // 文本
268
268
  'text/plain': '.txt',
269
269
  'text/html': '.html',
@@ -272,20 +272,20 @@ function getExtensionFromContentType(contentType) {
272
272
  'application/json': '.json',
273
273
  'text/csv': '.csv',
274
274
  'text/xml': '.xml',
275
-
275
+
276
276
  // 压缩文件
277
277
  'application/zip': '.zip',
278
278
  'application/x-rar-compressed': '.rar',
279
279
  'application/x-7z-compressed': '.7z',
280
280
  'application/gzip': '.gz',
281
-
281
+
282
282
  // 其他
283
283
  'application/octet-stream': '.bin',
284
- };
285
-
284
+ }
285
+
286
286
  // 提取主类型(去除字符集等)
287
- const mainType = contentType.split(';')[0].trim();
288
- return contentTypeToExtension[mainType] || '';
287
+ const mainType = contentType.split(';')[0].trim()
288
+ return contentTypeToExtension[mainType] || ''
289
289
  }
290
290
 
291
291
  /**
@@ -294,16 +294,16 @@ function getExtensionFromContentType(contentType) {
294
294
  function ensureFileExtension(filename, contentType) {
295
295
  // 如果文件名已经有扩展名,直接返回
296
296
  if (filename.includes('.')) {
297
- return filename;
297
+ return filename
298
298
  }
299
-
299
+
300
300
  // 根据 Content-Type 添加扩展名
301
- const extension = getExtensionFromContentType(contentType);
301
+ const extension = getExtensionFromContentType(contentType)
302
302
  if (extension) {
303
- return filename + extension;
303
+ return filename + extension
304
304
  }
305
-
306
- return filename;
305
+
306
+ return filename
307
307
  }
308
308
 
309
309
  /**
@@ -311,18 +311,18 @@ function ensureFileExtension(filename, contentType) {
311
311
  */
312
312
  function extractFilenameFromUrl(url) {
313
313
  try {
314
- const urlObj = new URL(url);
315
- const pathname = urlObj.pathname;
316
-
314
+ const urlObj = new URL(url)
315
+ const pathname = urlObj.pathname
316
+
317
317
  // 获取路径的最后一部分
318
- const lastSegment = pathname.split('/').pop();
319
-
318
+ const lastSegment = pathname.split('/').pop()
319
+
320
320
  // 移除查询参数和哈希
321
- const filename = lastSegment.split('?')[0].split('#')[0];
322
-
323
- return filename || null;
321
+ const filename = lastSegment.split('?')[0].split('#')[0]
322
+
323
+ return filename || null
324
324
  } catch (e) {
325
- console.warn('从 URL 提取文件名失败:', e);
326
- return null;
325
+ console.warn('从 URL 提取文件名失败:', e)
326
+ return null
327
327
  }
328
- }
328
+ }
@@ -1,2 +1,4 @@
1
- export declare function listComTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
- //# sourceMappingURL=com.d.ts.map
1
+ export declare function listComTreeApi(
2
+ params: any,
3
+ ): Promise<import('axios').AxiosResponse<any, any>>
4
+ //# sourceMappingURL=com.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"com.d.ts","sourceRoot":"","sources":["../../src/api/com.ts"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,CAAC,MAAM,KAAA,+CAKpC"}
1
+ {"version":3,"file":"com.d.ts","sourceRoot":"","sources":["../../src/api/com.ts"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,CAAC,MAAM,KAAA,oDAQpC"}
@@ -1,2 +1,4 @@
1
- export declare function listIndexDescApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
- //# sourceMappingURL=index-desc.d.ts.map
1
+ export declare function listIndexDescApi(
2
+ params: any,
3
+ ): Promise<import('axios').AxiosResponse<any, any>>
4
+ //# sourceMappingURL=index-desc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-desc.d.ts","sourceRoot":"","sources":["../../src/api/index-desc.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,MAAM,KAAA,+CAEtC"}
1
+ {"version":3,"file":"index-desc.d.ts","sourceRoot":"","sources":["../../src/api/index-desc.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,MAAM,KAAA,oDAEtC"}
@@ -1,7 +1,7 @@
1
- export * from './platform';
2
- export * from './com';
3
- export * from './index-desc';
4
- export * from './item';
5
- export * from './permission';
6
- export * from './user';
7
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './platform'
2
+ export * from './com'
3
+ export * from './index-desc'
4
+ export * from './item'
5
+ export * from './permission'
6
+ export * from './user'
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,6 @@
1
- export declare function listItemTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
- export declare function getPriceInfo(): Promise<import("axios").AxiosResponse<any>>;
3
- export declare function getItem(params: any): Promise<import("axios").AxiosResponse<any>>;
4
- //# sourceMappingURL=item.d.ts.map
1
+ export declare function listItemTreeApi(
2
+ params: any,
3
+ ): Promise<import('axios').AxiosResponse<any, any>>
4
+ export declare function getPriceInfo(): Promise<import('axios').AxiosResponse<any, any>>
5
+ export declare function getItem(params: any): Promise<import('axios').AxiosResponse<any, any>>
6
+ //# sourceMappingURL=item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/api/item.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,MAAM,KAAA,+CAOrC;AACD,wBAAgB,YAAY,gDAE3B;AACD,wBAAgB,OAAO,CAAC,MAAM,KAAA,+CAE7B"}
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/api/item.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,MAAM,KAAA,oDAYrC;AACD,wBAAgB,YAAY,qDAE3B;AACD,wBAAgB,OAAO,CAAC,MAAM,KAAA,oDAE7B"}
@@ -1,2 +1,2 @@
1
- export declare function getApplicationTreeApi(params: any): Promise<any>;
2
- //# sourceMappingURL=permission.d.ts.map
1
+ export declare function getApplicationTreeApi(params: any): Promise<any>
2
+ //# sourceMappingURL=permission.d.ts.map
@@ -1,7 +1,7 @@
1
1
  export namespace Base64 {
2
- let Base64Chars: string;
3
- function encode(s: any): any;
4
- function ucs2_utf8(s: any): any[];
5
- function utf8_ucs2(s: any): string;
2
+ let Base64Chars: string
3
+ function encode(s: any): any
4
+ function ucs2_utf8(s: any): any[]
5
+ function utf8_ucs2(s: any): string
6
6
  }
7
- //# sourceMappingURL=base64.d.ts.map
7
+ //# sourceMappingURL=base64.d.ts.map
@@ -1,2 +1,2 @@
1
- export function getGlobalConfig(): Promise<any>;
2
- //# sourceMappingURL=config.d.ts.map
1
+ export function getGlobalConfig(): Promise<any>
2
+ //# sourceMappingURL=config.d.ts.map
@@ -1,4 +1,6 @@
1
- export declare function getDictsMapApi(dictId: string): Promise<import("axios").AxiosResponse<any>>;
2
- export declare function getDictApi(dictId: string): Promise<any>;
3
- export declare function getDictMapApi(dictIdArr: string[]): Promise<{}>;
4
- //# sourceMappingURL=dict.d.ts.map
1
+ export declare function getDictsMapApi(
2
+ dictId: string,
3
+ ): Promise<import('axios').AxiosResponse<any, any>>
4
+ export declare function getDictApi(dictId: string): Promise<any>
5
+ export declare function getDictMapApi(dictIdArr: string[]): Promise<{}>
6
+ //# sourceMappingURL=dict.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../../src/api/platform/dict.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,+CAE5C;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,gBAgB9C;AAkBD,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,eActD"}
1
+ {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../../src/api/platform/dict.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,oDAE5C;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,gBAgB9C;AAkBD,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,eActD"}
@@ -1,6 +1,6 @@
1
- export * from './dict';
2
- export * from './menu';
3
- export * from './oss';
4
- export * from './user';
5
- export * from './config.js';
6
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './dict'
2
+ export * from './menu'
3
+ export * from './oss'
4
+ export * from './user'
5
+ export * from './config.js'
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,21 @@
1
- export declare function getPermissionApi(): Promise<import("axios").AxiosResponse<any>>;
2
- export declare function getMenuHistoryApi(): Promise<import("axios").AxiosResponse<any>>;
3
- export declare function menuHistoryApi(params: any): Promise<import("axios").AxiosResponse<any>>;
4
- export declare function deleteMenuHistoryApi(historyId: any): Promise<import("axios").AxiosResponse<any>>;
5
- export declare function getMenuCollectApi(): Promise<import("axios").AxiosResponse<any>>;
6
- export declare function addMenuCollectApi(params: any): Promise<import("axios").AxiosResponse<any>>;
7
- export declare function deleteMenuCollectApi(collectId: any): Promise<import("axios").AxiosResponse<any>>;
8
- export declare function removeMenuCollectApi(params: any): Promise<import("axios").AxiosResponse<any>>;
9
- export declare function getAppListApi(): Promise<import("axios").AxiosResponse<any>>;
10
- export declare function getMaxTabNumValueApi(): Promise<import("axios").AxiosResponse<any>>;
11
- //# sourceMappingURL=menu.d.ts.map
1
+ export declare function getPermissionApi(): Promise<import('axios').AxiosResponse<any, any>>
2
+ export declare function getMenuHistoryApi(): Promise<import('axios').AxiosResponse<any, any>>
3
+ export declare function menuHistoryApi(
4
+ params: any,
5
+ ): Promise<import('axios').AxiosResponse<any, any>>
6
+ export declare function deleteMenuHistoryApi(
7
+ historyId: any,
8
+ ): Promise<import('axios').AxiosResponse<any, any>>
9
+ export declare function getMenuCollectApi(): Promise<import('axios').AxiosResponse<any, any>>
10
+ export declare function addMenuCollectApi(
11
+ params: any,
12
+ ): Promise<import('axios').AxiosResponse<any, any>>
13
+ export declare function deleteMenuCollectApi(
14
+ collectId: any,
15
+ ): Promise<import('axios').AxiosResponse<any, any>>
16
+ export declare function removeMenuCollectApi(
17
+ params: any,
18
+ ): Promise<import('axios').AxiosResponse<any, any>>
19
+ export declare function getAppListApi(): Promise<import('axios').AxiosResponse<any, any>>
20
+ export declare function getMaxTabNumValueApi(): Promise<import('axios').AxiosResponse<any, any>>
21
+ //# sourceMappingURL=menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/api/platform/menu.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,gDAE/B;AAED,wBAAgB,iBAAiB,gDAEhC;AAED,wBAAgB,cAAc,CAAC,MAAM,KAAA,+CAEpC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,+CAE7C;AAED,wBAAgB,iBAAiB,gDAEhC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,KAAA,+CAEvC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,+CAE7C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,KAAA,+CAE1C;AAED,wBAAgB,aAAa,gDAE5B;AAED,wBAAgB,oBAAoB,gDAEnC"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/api/platform/menu.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,qDAE/B;AAED,wBAAgB,iBAAiB,qDAEhC;AAED,wBAAgB,cAAc,CAAC,MAAM,KAAA,oDAEpC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,oDAE7C;AAED,wBAAgB,iBAAiB,qDAEhC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,KAAA,oDAEvC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,oDAE7C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,KAAA,oDAE1C;AAED,wBAAgB,aAAa,qDAE5B;AAED,wBAAgB,oBAAoB,qDAEnC"}
@@ -1,17 +1,17 @@
1
- import { ResponseType } from 'axios';
1
+ import { ResponseType } from 'axios'
2
2
  /**
3
3
  * 文档中心下载文件的url,主要用于图片等直接写在 href 里
4
4
  *
5
5
  * @param fileId 文件Id
6
6
  * @returns url
7
7
  */
8
- export declare function getOssFileUrl(fileId?: string): string;
8
+ export declare function getOssFileUrl(fileId?: string): string
9
9
  /**
10
10
  * 文档中心上传文件的url
11
11
  *
12
12
  * @returns url
13
13
  */
14
- export declare function putOssFileUrl(): string;
14
+ export declare function putOssFileUrl(): string
15
15
  /**
16
16
  * 获取文档中心文件
17
17
  *
@@ -19,7 +19,10 @@ export declare function putOssFileUrl(): string;
19
19
  * @param responseType 数据类型,支持 arraybuffer | blob | document | json | text | stream
20
20
  * @returns 文件内容
21
21
  */
22
- export declare function getOssFileApi(fileId: string, responseType?: ResponseType): Promise<import("axios").AxiosResponse<any>>;
22
+ export declare function getOssFileApi(
23
+ fileId: string,
24
+ responseType?: ResponseType,
25
+ ): Promise<import('axios').AxiosResponse<any, any>>
23
26
  /**
24
27
  * 将文件上传到文档中心
25
28
  *
@@ -27,14 +30,19 @@ export declare function getOssFileApi(fileId: string, responseType?: ResponseTyp
27
30
  * @param blob 文件的Blob数据
28
31
  * @returns 文件Id
29
32
  */
30
- export declare function putOssFileApi(filename: string, blob: Blob): import("axios").AxiosPromise<any>;
33
+ export declare function putOssFileApi(
34
+ filename: string,
35
+ blob: Blob,
36
+ ): import('axios').AxiosPromise<any>
31
37
  /**
32
38
  * 获取文档中心预览URL
33
39
  *
34
40
  * @param fileId 文件Id
35
41
  * @returns 文件内容
36
42
  */
37
- export declare function getPreviewUrlApi(fileId: string): Promise<import("axios").AxiosResponse<any>>;
43
+ export declare function getPreviewUrlApi(
44
+ fileId: string,
45
+ ): Promise<import('axios').AxiosResponse<any, any>>
38
46
  /**
39
47
  * 获取文档中心预览URL
40
48
  *
@@ -42,5 +50,5 @@ export declare function getPreviewUrlApi(fileId: string): Promise<import("axios"
42
50
  * @param fileName 文件名
43
51
  * @returns 文件内容
44
52
  */
45
- export declare function downLoadScDcApi(fileId: string, fileName: string): Promise<void>;
46
- //# sourceMappingURL=oss.d.ts.map
53
+ export declare function downLoadScDcApi(fileId: string, fileName: string): Promise<void>
54
+ //# sourceMappingURL=oss.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oss.d.ts","sourceRoot":"","sources":["../../../src/api/platform/oss.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,YAAY,EAAE,MAAM,OAAO,CAAA;AAIxD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAK,UAExC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,WAE5B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,+CAMxE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,qCAUzD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,+CAQ9C;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBA0DrE"}
1
+ {"version":3,"file":"oss.d.ts","sourceRoot":"","sources":["../../../src/api/platform/oss.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,YAAY,EAAE,MAAM,OAAO,CAAA;AAIxD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAK,UAExC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,WAE5B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,oDAMxE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,qCAUzD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,oDAQ9C;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBA0DrE"}
@@ -1,12 +1,19 @@
1
- export declare function loginApi({ userName, password, validCodeId, validCodeInput }: {
2
- userName: any;
3
- password: any;
4
- validCodeId: any;
5
- validCodeInput: any;
6
- }): Promise<import("axios").AxiosResponse<any>>;
7
- export declare function getUserInfoApi(): Promise<import("axios").AxiosResponse<any>>;
8
- export declare function getGlobalPolicyApi(): Promise<import("axios").AxiosResponse<any>>;
9
- export declare function updatePasswordApi(data: any): Promise<import("axios").AxiosResponse<any>>;
10
- export declare function getCaptchaURL(validCodeId: string): string;
11
- export declare function logoutApi(): Promise<import("axios").AxiosResponse<any>>;
12
- //# sourceMappingURL=user.d.ts.map
1
+ export declare function loginApi({
2
+ userName,
3
+ password,
4
+ validCodeId,
5
+ validCodeInput,
6
+ }: {
7
+ userName: any
8
+ password: any
9
+ validCodeId: any
10
+ validCodeInput: any
11
+ }): Promise<import('axios').AxiosResponse<any, any>>
12
+ export declare function getUserInfoApi(): Promise<import('axios').AxiosResponse<any, any>>
13
+ export declare function getGlobalPolicyApi(): Promise<import('axios').AxiosResponse<any, any>>
14
+ export declare function updatePasswordApi(
15
+ data: any,
16
+ ): Promise<import('axios').AxiosResponse<any, any>>
17
+ export declare function getCaptchaURL(validCodeId: string): string
18
+ export declare function logoutApi(): Promise<import('axios').AxiosResponse<any, any>>
19
+ //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/platform/user.ts"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;;;;;CAAA,+CAQ3E;AAED,wBAAgB,cAAc,gDAE7B;AAED,wBAAgB,kBAAkB,gDAEjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,+CAErC;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD;AAED,wBAAgB,SAAS,gDAExB"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/platform/user.ts"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;;;;;CAAA,oDAQ3E;AAED,wBAAgB,cAAc,qDAE7B;AAED,wBAAgB,kBAAkB,qDAEjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,oDAErC;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD;AAED,wBAAgB,SAAS,qDAExB"}
@@ -1,2 +1,2 @@
1
- export declare function listUserTreeApi(params: any): Promise<any>;
2
- //# sourceMappingURL=user.d.ts.map
1
+ export declare function listUserTreeApi(params: any): Promise<any>
2
+ //# sourceMappingURL=user.d.ts.map
@@ -1,34 +1,34 @@
1
1
  declare const _default: {
2
- title: string;
3
- icomId: string;
4
- showMenus: boolean;
5
- routerBase: string;
6
- loginRouteName: string;
7
- rootRouteName: string;
8
- homeRouteName: string;
9
- authServerContext: string;
10
- ossServerContext: string;
11
- ismAmServerContext: string;
12
- ismAcServerContext: string;
13
- ismSqServerContext: string;
14
- ilmServerContext: string;
15
- imgServerContext: string;
16
- imaServerContext: string;
17
- ucExtServerContext: string;
18
- dataManageServerContext: string;
19
- kkfilepreviewContext: string;
20
- errorMessage: string;
21
- leftLockDays: number;
22
- labelStyle: {
23
- labelWidthButton: number;
24
- labelWidthSmall: number;
25
- labelWidthMiddle: number;
26
- labelWidthMiddleLarge: number;
27
- labelWidthLarge: number;
28
- labelWidthSuperLarge: number;
29
- };
30
- /** 点击跳转的文字颜色 */
31
- linkColor: string;
32
- };
33
- export default _default;
34
- //# sourceMappingURL=base.config.d.ts.map
2
+ title: string
3
+ icomId: string
4
+ showMenus: boolean
5
+ routerBase: string
6
+ loginRouteName: string
7
+ rootRouteName: string
8
+ homeRouteName: string
9
+ authServerContext: string
10
+ ossServerContext: string
11
+ ismAmServerContext: string
12
+ ismAcServerContext: string
13
+ ismSqServerContext: string
14
+ ilmServerContext: string
15
+ imgServerContext: string
16
+ imaServerContext: string
17
+ ucExtServerContext: string
18
+ dataManageServerContext: string
19
+ kkfilepreviewContext: string
20
+ errorMessage: string
21
+ leftLockDays: number
22
+ labelStyle: {
23
+ labelWidthButton: number
24
+ labelWidthSmall: number
25
+ labelWidthMiddle: number
26
+ labelWidthMiddleLarge: number
27
+ labelWidthLarge: number
28
+ labelWidthSuperLarge: number
29
+ }
30
+ /** 点击跳转的文字颜色 */
31
+ linkColor: string
32
+ }
33
+ export default _default
34
+ //# sourceMappingURL=base.config.d.ts.map