@das-fed/web 6.4.0-test.5.1 → 6.4.0-test.51

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 (70) hide show
  1. package/index-BWv1vypU.js +13946 -0
  2. package/index-BWv1vypU.js.gz +0 -0
  3. package/index-B_hNKVK-.js +10 -0
  4. package/index-BmwigFuJ.js +87 -0
  5. package/index-BmwigFuJ.js.gz +0 -0
  6. package/index.js +4 -4
  7. package/package.json +8 -6
  8. package/packages/i18n/index.js +172 -50
  9. package/packages/i18n/index.js.gz +0 -0
  10. package/packages/layout/index.js +284 -282
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/layout/style.css +1 -1
  13. package/packages/layout/style.css.gz +0 -0
  14. package/packages/main-app-framework/index-BsqHCDiq.js +10 -0
  15. package/packages/main-app-framework/index-CEUVvcoF.js +87 -0
  16. package/packages/main-app-framework/index-CEUVvcoF.js.gz +0 -0
  17. package/packages/main-app-framework/index-DGMsib08.js +12454 -0
  18. package/packages/main-app-framework/index-DGMsib08.js.gz +0 -0
  19. package/packages/main-app-framework/index.js +1 -1
  20. package/packages/main-app-framework/style.css +1 -1
  21. package/packages/main-app-framework/style.css.gz +0 -0
  22. package/packages/micro-frontend/index.js +266 -259
  23. package/packages/micro-frontend/index.js.gz +0 -0
  24. package/packages/style/style.css +1 -1
  25. package/packages/style/style.css.gz +0 -0
  26. package/style.css +1 -1
  27. package/style.css.gz +0 -0
  28. package/types/i18n/global.d.ts +583 -0
  29. package/types/i18n/index.d.ts +1 -1
  30. package/types/layout/store/index.d.ts +1 -1
  31. package/types/layout/store/nav.d.ts +1 -1
  32. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  33. package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
  34. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  35. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +4 -0
  36. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
  37. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  38. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  39. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  40. package/types/main-app-framework/data-track/api.d.ts +2 -0
  41. package/types/main-app-framework/data-track/index.d.ts +2 -0
  42. package/types/main-app-framework/i18n/index.d.ts +54 -44
  43. package/types/main-app-framework/index.d.ts +1 -0
  44. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -1
  45. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  46. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  47. package/types/main-app-framework/init-config/get-system-config/index.d.ts +5 -3
  48. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
  49. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
  50. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
  51. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  52. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
  53. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  54. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  55. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  56. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  57. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  58. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  59. package/types/main-app-framework/utils/src/set-common-info.d.ts +6 -2
  60. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  61. package/index-BlN9vxIO.js +0 -76
  62. package/index-BlN9vxIO.js.gz +0 -0
  63. package/index-DFAevptD.js +0 -10
  64. package/index-DtaKXfS5.js +0 -7619
  65. package/index-DtaKXfS5.js.gz +0 -0
  66. package/packages/main-app-framework/index-Bld_nBaQ.js +0 -6263
  67. package/packages/main-app-framework/index-Bld_nBaQ.js.gz +0 -0
  68. package/packages/main-app-framework/index-CumtCu7u.js +0 -10
  69. package/packages/main-app-framework/index-Cyua9Pa1.js +0 -76
  70. package/packages/main-app-framework/index-Cyua9Pa1.js.gz +0 -0
@@ -0,0 +1,2 @@
1
+ /** 数据埋点-记录用户操作 */
2
+ export declare const dataActions: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
@@ -0,0 +1,2 @@
1
+ export declare const accessSys: (projectId: string | number) => any;
2
+ export declare const accessApp: (data: any) => any;
@@ -14,11 +14,6 @@ declare const _default: {
14
14
  en: string;
15
15
  _appCode: string;
16
16
  };
17
- 聚焦: {
18
- 'zh-CN': string;
19
- en: string;
20
- _appCode: string;
21
- };
22
17
  方向控制: {
23
18
  'zh-CN': string;
24
19
  en: string;
@@ -114,11 +109,6 @@ declare const _default: {
114
109
  en: string;
115
110
  _appCode: string;
116
111
  };
117
- 确定: {
118
- 'zh-CN': string;
119
- en: string;
120
- _appCode: string;
121
- };
122
112
  我知道了: {
123
113
  'zh-CN': string;
124
114
  en: string;
@@ -324,26 +314,6 @@ declare const _default: {
324
314
  en: string;
325
315
  _appCode: string;
326
316
  };
327
- 系统资源更新: {
328
- 'zh-CN': string;
329
- en: string;
330
- _appCode: string;
331
- };
332
- 请刷新系统: {
333
- 'zh-CN': string;
334
- en: string;
335
- _appCode: string;
336
- };
337
- 切换后已录入的数据将会丢失且不可恢复: {
338
- 'zh-CN': string;
339
- en: string;
340
- _appCode: string;
341
- };
342
- 确定切换: {
343
- 'zh-CN': string;
344
- en: string;
345
- _appCode: string;
346
- };
347
317
  确认关闭: {
348
318
  'zh-CN': string;
349
319
  en: string;
@@ -369,72 +339,72 @@ declare const _default: {
369
339
  en: string;
370
340
  _appCode: string;
371
341
  };
372
- 此应用未配置菜单: {
342
+ 无法使用: {
373
343
  'zh-CN': string;
374
344
  en: string;
375
345
  _appCode: string;
376
346
  };
377
- 无菜单权限: {
347
+ 查看详情: {
378
348
  'zh-CN': string;
379
349
  en: string;
380
350
  _appCode: string;
381
351
  };
382
- 无法使用: {
352
+ 新告警: {
383
353
  'zh-CN': string;
384
354
  en: string;
385
355
  _appCode: string;
386
356
  };
387
- 此应用菜单已过期: {
357
+ 上次登录信息: {
388
358
  'zh-CN': string;
389
359
  en: string;
390
360
  _appCode: string;
391
361
  };
392
- 已收回: {
362
+ 时间: {
393
363
  'zh-CN': string;
394
364
  en: string;
395
365
  _appCode: string;
396
366
  };
397
- 配置有误: {
367
+ 地址: {
398
368
  'zh-CN': string;
399
369
  en: string;
400
370
  _appCode: string;
401
371
  };
402
- 查看详情: {
372
+ 应用: {
403
373
  'zh-CN': string;
404
374
  en: string;
405
375
  _appCode: string;
406
376
  };
407
- 新告警: {
377
+ 首页: {
408
378
  'zh-CN': string;
409
379
  en: string;
410
380
  _appCode: string;
411
381
  };
412
- 上次登录信息: {
382
+ 个性化设置: {
413
383
  'zh-CN': string;
414
384
  en: string;
415
385
  _appCode: string;
416
386
  };
417
- 时间: {
387
+ 主题设置: {
418
388
  'zh-CN': string;
419
389
  en: string;
420
390
  _appCode: string;
421
391
  };
422
- 地址: {
392
+ 语言设置: {
423
393
  'zh-CN': string;
424
394
  en: string;
425
395
  _appCode: string;
426
396
  };
427
- 应用: {
397
+ 语言类型: {
428
398
  'zh-CN': string;
429
399
  en: string;
430
400
  _appCode: string;
431
401
  };
432
- 首页: {
402
+ 中文简体: {
433
403
  'zh-CN': string;
434
404
  en: string;
435
405
  _appCode: string;
436
406
  };
437
- 主题设置: {
407
+ 'home-set': {
438
408
  'zh-CN': string;
439
409
  en: string;
440
410
  _appCode: string;
@@ -514,6 +484,11 @@ declare const _default: {
514
484
  en: string;
515
485
  _appCode: string;
516
486
  };
487
+ 保存成功: {
488
+ 'zh-CN': string;
489
+ en: string;
490
+ _appCode: string;
491
+ };
517
492
  '\u786E\u8BA4\u5173\u95ED\uFF1F': {
518
493
  'zh-CN': string;
519
494
  en: string;
@@ -524,5 +499,40 @@ declare const _default: {
524
499
  en: string;
525
500
  _appCode: string;
526
501
  };
502
+ 展示类型: {
503
+ 'zh-CN': string;
504
+ en: string;
505
+ _appCode: string;
506
+ };
507
+ 链接: {
508
+ 'zh-CN': string;
509
+ en: string;
510
+ _appCode: string;
511
+ };
512
+ 别名: {
513
+ 'zh-CN': string;
514
+ en: string;
515
+ _appCode: string;
516
+ };
517
+ 还原: {
518
+ 'zh-CN': string;
519
+ en: string;
520
+ _appCode: string;
521
+ };
522
+ 恢复项目初始设置: {
523
+ 'zh-CN': string;
524
+ en: string;
525
+ _appCode: string;
526
+ };
527
+ 'framework-reset-home-confirm': {
528
+ 'zh-CN': string;
529
+ en: string;
530
+ _appCode: string;
531
+ };
532
+ 'iot-banner-tip': {
533
+ 'zh-CN': string;
534
+ en: string;
535
+ _appCode: string;
536
+ };
527
537
  };
528
538
  export default _default;
@@ -3,6 +3,7 @@ declare const mainAppFramework: {
3
3
  Layout: any;
4
4
  data: {
5
5
  homeInfo: import('vue').Ref<any, any>;
6
+ personalConfig: import('vue').Ref<any, any>;
6
7
  };
7
8
  hooks: {
8
9
  useEntryApp: () => {
@@ -1,5 +1,6 @@
1
1
  declare const appLoading: import('vue').Ref<any, any>;
2
2
  declare const appcategorys: import('vue').Ref<any, any>;
3
+ declare const apps: import('vue').ComputedRef<any>;
3
4
  declare const getNavConfig: () => unknown;
4
5
  declare const getFixedAppsConfig: () => unknown;
5
- export { getNavConfig, appcategorys, appLoading, getFixedAppsConfig };
6
+ export { getNavConfig, appcategorys, apps, appLoading, getFixedAppsConfig };
@@ -1,4 +1,5 @@
1
- /** 获取项目数据 */
1
+ /** 获取项目列表(嵌套数组结构) */
2
2
  export declare const queryproject: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
3
- /** 获取C端用户所能切换的项目列表 */
3
+ /** 获取C端用户所能切换的项目列表(平铺数组结构) */
4
4
  export declare const customerList: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
5
+ export declare const getProjectMessage: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
@@ -6,5 +6,7 @@ export declare const getPlatformWithDefault: (payload?: any, payloadConfig?: imp
6
6
  export declare const getSystemWithDefault: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
7
7
  /** 获取首页配置 */
8
8
  export declare const getHomeInfo: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
9
+ /** 获取个人语言设置详情 */
10
+ export declare const getLangInfo: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
9
11
  /** 获取用户菜单个性化设置(菜单风格,1表示横向抽屉式(默认),2表示纵向下拉式) */
10
12
  export declare const getPersonalMenuMode: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
@@ -5,7 +5,9 @@ declare const getPlatformConfig: () => unknown;
5
5
  declare const homeInfo: import('vue').Ref<any, any>;
6
6
  /** 获取首页配置 */
7
7
  declare const getHomeConfig: () => unknown;
8
- declare const personalMenuConfig: any;
9
- /** 获取菜单个性化配置 */
8
+ declare const personalMenuConfig: import('vue').Ref<any, any>;
9
+ /** 获取 侧边栏风格、皮肤风格 配置 */
10
10
  declare const getPersonalMenuConfig: () => unknown;
11
- export { getLoginConfig, getPlatformConfig, homeInfo, getHomeConfig, getPersonalMenuConfig, personalMenuConfig };
11
+ /** 获取个人语言设置详情 */
12
+ declare const getLangConfig: () => unknown;
13
+ export { getLoginConfig, getPlatformConfig, homeInfo, getHomeConfig, getPersonalMenuConfig, personalMenuConfig, getLangConfig, };
@@ -1,6 +1,8 @@
1
1
  /** 用token换取用户信息 */
2
2
  export declare const getPersonInfo: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
3
- /** 获取用户信息 */
3
+ /** 获取用户详情--包含租户信息 */
4
4
  export declare const getTenantInfo: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
5
+ /** 获取当前登录用户租户信息 */
6
+ export declare const getCurrentTenantInfo: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
5
7
  /** 获取租户列表 */
6
8
  export declare const getPageTenant: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
@@ -2,5 +2,7 @@
2
2
  export declare const getPersonalConfig: () => unknown;
3
3
  /** 获取租户详情 */
4
4
  export declare const getTenantConfig: () => unknown;
5
+ /** 获取当前登录用户租户信息 == 用来获取语言类型判断是否需要显示语言切换栏目,为2则需要显示语言切换栏目 */
6
+ export declare const getCurrentTenatConfig: () => unknown;
5
7
  /** 获取租户列表 */
6
8
  export declare const getTenantList: () => unknown;
@@ -2,3 +2,4 @@ export * from './use-user-command';
2
2
  export * from './use-project';
3
3
  export * from './use-search';
4
4
  export * from './use-change-enterprises';
5
+ export * from './use-ai-helper';
@@ -0,0 +1,4 @@
1
+ export declare const useAIHelper: () => {
2
+ $aiPanel: import('vue').Ref<any, any>;
3
+ toApp: (url: any) => void;
4
+ };
@@ -1,5 +1,6 @@
1
1
  declare const useLayoutInit: (platformInitNextTick: () => Promise<any>) => {
2
2
  loading: import('vue').Ref<any, any>;
3
+ pageKey: import('vue').Ref<any, any>;
3
4
  innerPage: import('vue').Ref<any, any>;
4
5
  commandList: import('vue').Ref<any, any>;
5
6
  layoutInited: import('vue').Ref<any, any>;
@@ -0,0 +1,14 @@
1
+ type EncryptCallBackValue = {
2
+ value: null | string;
3
+ error: string | null;
4
+ };
5
+ /**
6
+ * 加密
7
+ * @param options 配置项
8
+ * @param cryptoContent 带加密内容
9
+ * @returns
10
+ */
11
+ declare const encrypt: (options: {
12
+ [k: string]: any;
13
+ } | undefined, cryptoContent: string) => Promise<EncryptCallBackValue>;
14
+ export { encrypt };
@@ -0,0 +1,42 @@
1
+ import { EncryptCallBackValue } from './type';
2
+
3
+ /**
4
+ * aes 加密
5
+ * @param {string} encrypt
6
+ * @param {string} key
7
+ * @param {Object} options 配置对象, 可配置如下
8
+ * options.mode {String} 加密模式, 值 可能为 CBC (默认值) CFB OFB ECB, 如果是其他值 报错
9
+ * options.keySize {Number},秘钥长度字节数, 共三种可能, 为16, 24, 32, 如果是其他值, 返回 错误
10
+ * options.padding {String}, 填充, 值可能为 pkcs7(默认) pkcs5 zero iso10126 ansix923, 如果是其他值报错
11
+ * options.encoding {String} 输出的编码, base64 (默认) hex , 如果是其他, 报错
12
+ * options.iv {String} 偏移量, 当是 ECB模式时,要为空, 哪怕赋值也会被忽略, 其他模式不能为空
13
+ *
14
+ * @param {Function} complete 参数为 Object,其中
15
+ * object.value: 加密后的内容, 如果加密失败 则是 null
16
+ * object.error: 加密失败后的 错误提示
17
+ */
18
+ declare function aes(encrypt: string, key: string, options: {
19
+ [k: string]: any;
20
+ }, complete: (p: EncryptCallBackValue) => void): void;
21
+ /**
22
+ * des 加密
23
+ * @param {string} encrypt
24
+ * @param {string} key
25
+ * @param {Object} options 配置对象, 可配置如下
26
+ * options.mode {String} 加密模式, 值 可能为 CBC (默认值) CFB OFB ECB, 如果是其他值 报错
27
+ * options.padding {String}, 填充, 值可能为 pkcs7(默认) pkcs5 zero iso10126 ansix923, 如果是其他值报错
28
+ * options.encoding {String} 输出的编码, base64 (默认) hex , 如果是其他, 报错
29
+ * options.iv {String} 偏移量, 当是 ECB模式时,要为空, 哪怕赋值也会被忽略, 其他模式不能为空
30
+ *
31
+ * @param {Function} complete 参数为 Object,其中
32
+ * object.value: 加密后的内容, 如果加密失败 则是 null
33
+ * object.error: 加密失败后的 错误提示
34
+ */
35
+ declare function des(encrypt: string, key: string, options: {
36
+ [k: string]: any;
37
+ }, complete: (p: EncryptCallBackValue) => void): void;
38
+ declare const encryptUtil: {
39
+ aes: typeof aes;
40
+ des: typeof des;
41
+ };
42
+ export { encryptUtil };
@@ -0,0 +1,4 @@
1
+ declare function generateUrl(url: string, queryObj: {
2
+ [k: string]: any;
3
+ }): any;
4
+ export { generateUrl };
@@ -0,0 +1,2 @@
1
+ declare function handlePortalParams(paramsList: any[]): unknown;
2
+ export { handlePortalParams };
@@ -0,0 +1,2 @@
1
+ declare const getPortalUrl: (url: string, paramsList: any[]) => Promise<string>;
2
+ export { getPortalUrl };
@@ -0,0 +1,16 @@
1
+ export declare enum InnerParamType {
2
+ USER_ACCOUNT = "USER_ACCOUNT",
3
+ USER_PHONE = "USER_PHONE",
4
+ USER_TOKEN = "USER_TOKEN",
5
+ CURRENT_PROJECT = "CURRENT_PROJECT",
6
+ USER_NAME = "USER_NAME",
7
+ USER_NICKNAME = "USER_NICKNAME"
8
+ }
9
+ export declare enum HTMLQueryParamType {
10
+ TEXT = "TEXT",
11
+ JSON = "JSON"
12
+ }
13
+ export type EncryptCallBackValue = {
14
+ value: null | string;
15
+ error: string | null;
16
+ };
@@ -2,16 +2,20 @@
2
2
  export declare const setPersonalInfo: (data?: any) => void;
3
3
  /** 存储租户详情 */
4
4
  export declare const setTenantInfo: (data?: any) => void;
5
+ /** 存储有多少个语言类型 */
6
+ export declare const setLanguages: (val: number) => void;
5
7
  /** 清除租户信息 */
6
8
  export declare const clearTenantInfo: () => void;
7
9
  /** 存储首页信息 */
8
- export declare const setHomeInfo: (data?: {}) => void;
10
+ export declare const setHomeInfo: (data?: any) => void;
9
11
  /** 存储favIcon */
10
- export declare const setFavIcon: (data: string) => void;
12
+ export declare const setFavIcon: (data?: string) => void;
11
13
  /** 清除首页信息 */
12
14
  export declare const clearHomeInfo: () => void;
13
15
  /** 存储项目信息 */
14
16
  export declare const setProjectInfo: (data: any) => void;
17
+ /** 存储项目详细信息 */
18
+ export declare const setProjectMessage: (data?: any) => void;
15
19
  /** 清除项目数据 */
16
20
  export declare const clearProjectInfo: () => void;
17
21
  /** 存储标签页信息,如果传入对象则进行该项替换 */
@@ -1 +1,5 @@
1
- export declare const addTokenToUrl: (href: string) => any;
1
+ import { getPortalUrl } from './get-portal-url';
2
+
3
+ /** 根据url参数选择性携带token */
4
+ declare const addTokenToUrl: (href: string) => any;
5
+ export { addTokenToUrl, getPortalUrl };
package/index-BlN9vxIO.js DELETED
@@ -1,76 +0,0 @@
1
- import { defineComponent as k, computed as p, withDirectives as v, openBlock as A, createBlock as U, unref as c, withCtx as C, createVNode as S, vShow as I } from "vue";
2
- import { layoutData as j } from "@das-fed/web/packages/layout/index";
3
- import { t as D } from "@das-fed/web/packages/i18n/index";
4
- import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
5
- import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
6
- import { getTabInfo as T } from "@das-fed/utils/common-info";
7
- import { setShowLayout as b } from "@das-fed/utils/common-tools";
8
- import { createService as E } from "@das-fed/utils/create-api-service";
9
- import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-DtaKXfS5.js";
10
- const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
11
- __name: "index",
12
- setup(V) {
13
- const { beforeEntryApp: d, entryApp: m } = L(), h = p(() => q.value.skinStyle), g = p(() => !!j.menu.items.length), w = p(() => {
14
- if (!u.value || !u.value.length) return [];
15
- const o = f(u.value);
16
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = y(n.apps, 4)), o) : [] : [];
17
- }), y = (o, n) => {
18
- const e = [];
19
- for (let r = 0; r < o.length; r += n)
20
- e.push(o.slice(r, r + n));
21
- return e;
22
- }, _ = async (o) => {
23
- if (!o) return;
24
- if (!sessionStorage.getItem("projectInfo")) {
25
- window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
- return;
27
- }
28
- const e = f(o);
29
- if (P.innerSet = !0, e.routeUrl) {
30
- if (o.code === "Ioc") {
31
- window.open(e.routeUrl, "_blank");
32
- return;
33
- }
34
- if (o.code === "wojiacloud") {
35
- const t = sessionStorage.getItem("kingdee_token") || "";
36
- if (t) {
37
- const [i, a] = await O().run({ accessToken: t });
38
- if (a) {
39
- const s = (a == null ? void 0 : a.auth_code) ?? "";
40
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
41
- }
42
- }
43
- }
44
- }
45
- const r = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
46
- if (r === 1) {
47
- if (!await d(o)) return;
48
- const i = T().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
49
- m({ microApp: e, menuCode: a, route: { query: s } });
50
- }
51
- if (r === 2 && e.routeUrl) {
52
- let t = "";
53
- l === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = b(t)) : l === 2 && (t = K(e.routeUrl)), window.open(t, "_blank");
54
- }
55
- };
56
- return (o, n) => v((A(), U(c(x), {
57
- full: "",
58
- spinning: c(B)
59
- }, {
60
- default: C(() => [
61
- S(c($), {
62
- theme: h.value,
63
- appCategorys: w.value,
64
- onOpenApp: _
65
- }, null, 8, ["theme", "appCategorys"])
66
- ]),
67
- _: 1
68
- /* STABLE */
69
- }, 8, ["spinning"])), [
70
- [I, !g.value]
71
- ]);
72
- }
73
- });
74
- export {
75
- Z as default
76
- };
Binary file
package/index-DFAevptD.js DELETED
@@ -1,10 +0,0 @@
1
- import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-DtaKXfS5.js";
3
- const o = {};
4
- function t(n, _) {
5
- return e(), r("div");
6
- }
7
- const a = /* @__PURE__ */ c(o, [["render", t]]);
8
- export {
9
- a as default
10
- };