@das-fed/web 6.4.0-hot.6 → 6.4.0-hot.60
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/esm-map.json +4 -1
- package/index-BMEz2Rwe.js +14011 -0
- package/index-BMEz2Rwe.js.gz +0 -0
- package/index-CfYrl5YO.js +10 -0
- package/index-gUXfXxWy.js +88 -0
- package/index-gUXfXxWy.js.gz +0 -0
- package/index.js +24 -21
- package/package.json +8 -6
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +172 -31
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +495 -465
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +2 -2
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-8ZnGin12.js +10 -0
- package/packages/main-app-framework/index-C_SRE5ma.js +12519 -0
- package/packages/main-app-framework/index-C_SRE5ma.js.gz +0 -0
- package/packages/main-app-framework/index-DZIXflPO.js +88 -0
- package/packages/main-app-framework/index-DZIXflPO.js.gz +0 -0
- package/packages/main-app-framework/index.js +3 -2
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +289 -275
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/global.d.ts +583 -0
- package/types/i18n/index.d.ts +7 -5
- package/types/layout/index.d.ts +1 -1
- package/types/layout/store/index.d.ts +7 -2
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +2 -1
- package/types/layout/store/tab.d.ts +1 -0
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
- package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
- package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
- package/types/main-app-framework/business/video-link/api.d.ts +2 -0
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
- package/types/main-app-framework/components/index.d.ts +1 -0
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +4 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/constant/index.d.ts +1 -1
- package/types/main-app-framework/data-track/api.d.ts +2 -0
- package/types/main-app-framework/data-track/index.d.ts +2 -0
- package/types/main-app-framework/i18n/index.d.ts +538 -0
- package/types/main-app-framework/index.d.ts +2 -1
- package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +5 -3
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +4 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +6 -4
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +5 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -4
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +6 -2
- package/types/main-app-framework/utils/src/tools.d.ts +5 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-C-ieIBXO.js +0 -10
- package/index-C8k4wrGJ.js +0 -68
- package/index-C8k4wrGJ.js.gz +0 -0
- package/index-CicbdbyR.js +0 -71
- package/index-CicbdbyR.js.gz +0 -0
- package/index-CwfFnT6z.js +0 -7083
- package/index-CwfFnT6z.js.gz +0 -0
- package/packages/main-app-framework/index-Bcz8SW2I.js +0 -10
- package/packages/main-app-framework/index-CfM1liO6.js +0 -68
- package/packages/main-app-framework/index-CfM1liO6.js.gz +0 -0
- package/packages/main-app-framework/index-DRQHVvCk.js +0 -5774
- package/packages/main-app-framework/index-DRQHVvCk.js.gz +0 -0
- package/packages/main-app-framework/index-E1pACiHI.js +0 -71
- package/packages/main-app-framework/index-E1pACiHI.js.gz +0 -0
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/** 获取应用*/
|
|
2
2
|
export declare const getAppcategory: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
|
|
3
|
+
/** 获取用户常用应用*/
|
|
4
|
+
export declare const getFixedApp: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const
|
|
1
|
+
declare const appLoading: import('vue').Ref<any, any>;
|
|
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;
|
|
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;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
export declare const getLoginWithDefault: (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 getPlatformWithDefault: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
|
|
5
|
+
/** 获取平台配置(租户级别) */
|
|
6
|
+
export declare const getSystemWithDefault: (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 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;
|
|
7
11
|
/** 获取用户菜单个性化设置(菜单风格,1表示横向抽屉式(默认),2表示纵向下拉式) */
|
|
8
12
|
export declare const getPersonalMenuMode: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
declare const getLoginConfig: () => unknown;
|
|
3
3
|
/** 获取平台配置 */
|
|
4
4
|
declare const getPlatformConfig: () => unknown;
|
|
5
|
-
declare const homeInfo: import('vue').Ref<any>;
|
|
5
|
+
declare const homeInfo: import('vue').Ref<any, any>;
|
|
6
6
|
/** 获取首页配置 */
|
|
7
7
|
declare const getHomeConfig: () => unknown;
|
|
8
|
-
declare const
|
|
9
|
-
/**
|
|
8
|
+
declare const personalMenuConfig: import('vue').Ref<any, any>;
|
|
9
|
+
/** 获取 侧边栏风格、皮肤风格 配置 */
|
|
10
10
|
declare const getPersonalMenuConfig: () => unknown;
|
|
11
|
-
|
|
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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** 系统配置===姚凯提供的 */
|
|
2
2
|
export declare const getWithdefault: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
|
|
3
3
|
export declare const useChangeEnterprise: () => {
|
|
4
|
-
changeEnterprisesVisible: import('vue').Ref<any>;
|
|
5
|
-
userId: import('vue').Ref<any>;
|
|
6
|
-
tenantId: import('vue').Ref<any>;
|
|
4
|
+
changeEnterprisesVisible: import('vue').Ref<any, any>;
|
|
5
|
+
userId: import('vue').Ref<any, any>;
|
|
6
|
+
tenantId: import('vue').Ref<any, any>;
|
|
7
7
|
changeEnterprise: (tenantId: string) => any;
|
|
8
8
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
declare const useLayoutInit: (platformInitNextTick: () => Promise<any>) => {
|
|
2
|
-
loading: import('vue').Ref<any>;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
loading: import('vue').Ref<any, any>;
|
|
3
|
+
pageKey: import('vue').Ref<any, any>;
|
|
4
|
+
innerPage: import('vue').Ref<any, any>;
|
|
5
|
+
commandList: import('vue').Ref<any, any>;
|
|
6
|
+
layoutInited: import('vue').Ref<any, any>;
|
|
6
7
|
initNextTick: () => Promise<void>;
|
|
7
8
|
};
|
|
8
9
|
export { useLayoutInit };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useTabs: () => {
|
|
2
|
-
fontColor: import('vue').Ref<any>;
|
|
3
|
-
backgroudColor: import('vue').Ref<any>;
|
|
4
|
-
borderColor: import('vue').Ref<any>;
|
|
2
|
+
fontColor: import('vue').Ref<any, any>;
|
|
3
|
+
backgroudColor: import('vue').Ref<any, any>;
|
|
4
|
+
borderColor: import('vue').Ref<any, any>;
|
|
5
5
|
};
|
|
@@ -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,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?:
|
|
10
|
+
export declare const setHomeInfo: (data?: any) => void;
|
|
9
11
|
/** 存储favIcon */
|
|
10
|
-
export declare const setFavIcon: (data
|
|
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,5 +1,5 @@
|
|
|
1
|
-
export declare const microAppRouterPrefix: import('vue').Ref<any>;
|
|
2
|
-
export declare const microApps: import('vue').Ref<any>;
|
|
3
|
-
export declare const microAppVisible: import('vue').Ref<any>;
|
|
4
|
-
export declare const excludeRoutes: import('vue').Ref<any>;
|
|
5
|
-
export declare const routeKeepAliveVisible: import('vue').Ref<any>;
|
|
1
|
+
export declare const microAppRouterPrefix: import('vue').Ref<any, any>;
|
|
2
|
+
export declare const microApps: import('vue').Ref<any, any>;
|
|
3
|
+
export declare const microAppVisible: import('vue').Ref<any, any>;
|
|
4
|
+
export declare const excludeRoutes: import('vue').Ref<any, any>;
|
|
5
|
+
export declare const routeKeepAliveVisible: import('vue').Ref<any, any>;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const currentTheme: import('vue').Ref<any>;
|
|
1
|
+
declare const currentTheme: import('vue').Ref<any, any>;
|
|
2
2
|
declare const setThemeRule: (data: any, type?: "global" | "custom") => void;
|
|
3
3
|
declare const initTheme: (opt?: any) => any;
|
|
4
4
|
declare const setTheme: (value: string) => void;
|
package/index-C-ieIBXO.js
DELETED
package/index-C8k4wrGJ.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as _, onUnmounted as h, openBlock as c, createElementBlock as l, createVNode as w, unref as g, withCtx as k, withDirectives as x, vShow as y, createCommentVNode as I } from "vue";
|
|
2
|
-
import { useRoute as P } from "vue-router";
|
|
3
|
-
import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
|
|
4
|
-
import { layout as C } from "@das-fed/web/packages/layout/index";
|
|
5
|
-
import { I as R, e as L, _ as M } from "./index-CwfFnT6z.js";
|
|
6
|
-
import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
|
|
7
|
-
import { getUrlParams as E } from "@das-fed/utils/common-tools";
|
|
8
|
-
const N = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "iframe-container"
|
|
11
|
-
}, T = ["src"], U = /* @__PURE__ */ v({
|
|
12
|
-
__name: "index",
|
|
13
|
-
setup(V) {
|
|
14
|
-
const t = r(""), n = r(!0);
|
|
15
|
-
C.tab.addEventListener("onPageRefresh", async (e) => {
|
|
16
|
-
e && e.path === R && (L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
|
|
17
|
-
});
|
|
18
|
-
const a = r(!1), i = r(null), o = r(!1), f = () => {
|
|
19
|
-
var e, s;
|
|
20
|
-
o.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
|
|
21
|
-
{
|
|
22
|
-
token: j(),
|
|
23
|
-
userInfo: B(),
|
|
24
|
-
projectInfo: D()
|
|
25
|
-
},
|
|
26
|
-
t.value
|
|
27
|
-
));
|
|
28
|
-
}, m = P();
|
|
29
|
-
p(
|
|
30
|
-
() => m.query.iframeSrc,
|
|
31
|
-
async (e) => {
|
|
32
|
-
e && (t.value = e, a.value = !1, await u(), a.value = !0, f());
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
const d = () => {
|
|
36
|
-
o.value = !0, f();
|
|
37
|
-
};
|
|
38
|
-
return _(() => {
|
|
39
|
-
a.value = !0, t.value = E(location.href, "iframeSrc");
|
|
40
|
-
}), h(() => {
|
|
41
|
-
o.value = !1, a.value = !1;
|
|
42
|
-
}), (e, s) => a.value && n.value ? (c(), l("div", N, [
|
|
43
|
-
w(g(S), {
|
|
44
|
-
spinning: !o.value
|
|
45
|
-
}, {
|
|
46
|
-
default: k(() => [
|
|
47
|
-
x((c(), l("iframe", {
|
|
48
|
-
id: "iframe-view",
|
|
49
|
-
ref_key: "iframeRef",
|
|
50
|
-
ref: i,
|
|
51
|
-
width: "100%",
|
|
52
|
-
height: "100%",
|
|
53
|
-
src: t.value,
|
|
54
|
-
key: t.value,
|
|
55
|
-
onLoad: d
|
|
56
|
-
}, null, 40, T)), [
|
|
57
|
-
[y, o.value]
|
|
58
|
-
])
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
/* STABLE */
|
|
62
|
-
}, 8, ["spinning"])
|
|
63
|
-
])) : I("v-if", !0);
|
|
64
|
-
}
|
|
65
|
-
}), H = /* @__PURE__ */ M(U, [["__scopeId", "data-v-9d185d90"]]);
|
|
66
|
-
export {
|
|
67
|
-
H as default
|
|
68
|
-
};
|
package/index-C8k4wrGJ.js.gz
DELETED
|
Binary file
|
package/index-CicbdbyR.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
|
|
2
|
-
import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
|
-
import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
|
|
4
|
-
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
-
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
6
|
-
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
7
|
-
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-CwfFnT6z.js";
|
|
8
|
-
const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(q) {
|
|
11
|
-
const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
|
|
12
|
-
if (!c.value || !c.value.length) return [];
|
|
13
|
-
const o = l(c.value);
|
|
14
|
-
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
15
|
-
}), h = (o, n) => {
|
|
16
|
-
const e = [];
|
|
17
|
-
for (let r = 0; r < o.length; r += n)
|
|
18
|
-
e.push(o.slice(r, r + n));
|
|
19
|
-
return e;
|
|
20
|
-
}, m = async (o) => {
|
|
21
|
-
if (!o) return;
|
|
22
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
23
|
-
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const e = l(o);
|
|
27
|
-
if (T.innerSet = !0, e.routeUrl) {
|
|
28
|
-
if (o.code === "Ioc") {
|
|
29
|
-
window.open(e.routeUrl, "_blank");
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (o.code === "wojiacloud") {
|
|
33
|
-
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
34
|
-
if (t) {
|
|
35
|
-
const [i, a] = await L().run({ accessToken: t });
|
|
36
|
-
if (a) {
|
|
37
|
-
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
38
|
-
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
44
|
-
if (r === 1) {
|
|
45
|
-
if (!await f(o)) return;
|
|
46
|
-
const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
47
|
-
d({ microApp: e, menuCode: a, route: { query: s } });
|
|
48
|
-
}
|
|
49
|
-
if (r === 2 && e.routeUrl) {
|
|
50
|
-
let t = "";
|
|
51
|
-
u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
return (o, n) => (y(), k(p(v), {
|
|
55
|
-
full: "",
|
|
56
|
-
spinning: p(x)
|
|
57
|
-
}, {
|
|
58
|
-
default: U(() => [
|
|
59
|
-
A(p(C), {
|
|
60
|
-
appCategorys: g.value,
|
|
61
|
-
onOpenApp: m
|
|
62
|
-
}, null, 8, ["appCategorys"])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
/* STABLE */
|
|
66
|
-
}, 8, ["spinning"]));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
G as default
|
|
71
|
-
};
|
package/index-CicbdbyR.js.gz
DELETED
|
Binary file
|