@das-fed/web 7.0.3 → 7.0.4-test.2

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 (32) hide show
  1. package/index-CA4Lcv9W.js +88 -0
  2. package/index-CA4Lcv9W.js.gz +0 -0
  3. package/{index-B71JNluq.js → index-Dit2Zxaf.js} +1 -1
  4. package/{index-U_sgAS6j.js → index-zpFJpGk9.js} +10852 -6791
  5. package/index-zpFJpGk9.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/main-app-framework/{index-DbuLgM2-.js → index-BbPW41Dw.js} +1 -1
  9. package/packages/main-app-framework/index-CjWxTXzq.js +88 -0
  10. package/packages/main-app-framework/index-CjWxTXzq.js.gz +0 -0
  11. package/packages/main-app-framework/{index-mtRrY40l.js → index-CjpdGZQZ.js} +9799 -5738
  12. package/packages/main-app-framework/index-CjpdGZQZ.js.gz +0 -0
  13. package/packages/main-app-framework/index.js +1 -1
  14. package/packages/main-app-framework/style.css +1 -1
  15. package/packages/main-app-framework/style.css.gz +0 -0
  16. package/style.css +1 -1
  17. package/style.css.gz +0 -0
  18. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +6 -0
  19. package/types/main-app-framework/i18n/index.d.ts +20 -0
  20. package/types/main-app-framework/index.d.ts +1 -1
  21. package/types/main-app-framework/init-config/get-manu-config/index.d.ts +1 -1
  22. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -1
  23. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +1 -0
  24. package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +1 -1
  25. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +0 -1
  26. package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +1 -3
  27. package/index-BpLPBUQd.js +0 -88
  28. package/index-BpLPBUQd.js.gz +0 -0
  29. package/index-U_sgAS6j.js.gz +0 -0
  30. package/packages/main-app-framework/index-BYpM36pj.js +0 -88
  31. package/packages/main-app-framework/index-BYpM36pj.js.gz +0 -0
  32. package/packages/main-app-framework/index-mtRrY40l.js.gz +0 -0
@@ -18,3 +18,9 @@ export declare const dataOrchestration: (payload?: any, payloadConfig?: import('
18
18
  export declare const workbench: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
19
19
  /** 查询流程引擎 */
20
20
  export declare const formList: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
21
+ /** 获取标识常用应用的用户应用分类列表 */
22
+ export declare const getAppCategory: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
23
+ /** 获取已选的常用应用 */
24
+ export declare const getAppSelected: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
25
+ /** 获取用户可查看项目 */
26
+ export declare const getProjectList: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
@@ -534,5 +534,25 @@ declare const _default: {
534
534
  en: string;
535
535
  _appCode: string;
536
536
  };
537
+ 首页设置: {
538
+ 'zh-CN': string;
539
+ en: string;
540
+ _appCode: string;
541
+ };
542
+ 设置常用应用: {
543
+ 'zh-CN': string;
544
+ en: string;
545
+ _appCode: string;
546
+ };
547
+ 确认: {
548
+ 'zh-CN': string;
549
+ en: string;
550
+ _appCode: string;
551
+ };
552
+ 应用目录: {
553
+ 'zh-CN': string;
554
+ en: string;
555
+ _appCode: string;
556
+ };
537
557
  };
538
558
  export default _default;
@@ -14,7 +14,7 @@ declare const mainAppFramework: {
14
14
  menuPath?: string;
15
15
  route?: any;
16
16
  }) => any;
17
- changeApp: (e: any) => any;
17
+ changeApp: (e: any, innerSet?: boolean) => any;
18
18
  deleteApp: (e: any) => any;
19
19
  };
20
20
  useEntryMenu: () => {
@@ -6,7 +6,7 @@
6
6
  */
7
7
  declare const findFirstEnabledMenu: (tree: any[], code?: string) => any;
8
8
  /**
9
- * 查找附近有权限的应用 && 清除当前应用数据
9
+ * 查找有权限的应用 && 清除当前应用数据
10
10
  * @param code 当前的应用
11
11
  */
12
12
  declare const getNearMicroApp: (code: any) => {
@@ -2,5 +2,6 @@ declare const appLoading: import('vue').Ref<any, any>;
2
2
  declare const appcategorys: import('vue').Ref<any, any>;
3
3
  declare const apps: import('vue').ComputedRef<any>;
4
4
  declare const getNavConfig: () => unknown;
5
+ declare const fixedApps: import('vue').Ref<any, any>;
5
6
  declare const getFixedAppsConfig: () => unknown;
6
- export { getNavConfig, appcategorys, apps, appLoading, getFixedAppsConfig };
7
+ export { getNavConfig, appcategorys, apps, appLoading, getFixedAppsConfig, fixedApps };
@@ -1,4 +1,5 @@
1
1
  export declare const useAIHelper: () => {
2
2
  $aiPanel: import('vue').Ref<any, any>;
3
3
  toApp: (url: any) => void;
4
+ getAIPanelStatus: (status: boolean) => void;
4
5
  };
@@ -6,6 +6,6 @@ export declare const useEntryApp: () => {
6
6
  menuPath?: string;
7
7
  route?: any;
8
8
  }) => any;
9
- changeApp: (e: any) => any;
9
+ changeApp: (e: any, innerSet?: boolean) => any;
10
10
  deleteApp: (e: any) => any;
11
11
  };
@@ -1,7 +1,6 @@
1
1
  declare const useLayoutInit: (platformInitNextTick: () => Promise<any>) => {
2
2
  loading: import('vue').Ref<any, any>;
3
3
  pageKey: import('vue').Ref<any, any>;
4
- innerPage: import('vue').Ref<any, any>;
5
4
  commandList: import('vue').Ref<any, any>;
6
5
  layoutInited: import('vue').Ref<any, any>;
7
6
  initNextTick: () => Promise<void>;
@@ -1,3 +1 @@
1
- import { Ref } from 'vue';
2
-
3
- export declare const useRouteWatcher: (innerPage: Ref<any[]>, platformInitNextTick: () => Promise<any>, initNextTick: () => Promise<any>) => void;
1
+ export declare const useRouteWatcher: (platformInitNextTick: () => Promise<any>, initNextTick: () => Promise<any>) => void;
package/index-BpLPBUQd.js DELETED
@@ -1,88 +0,0 @@
1
- import { defineComponent as k, computed as p, withDirectives as v, createBlock as U, openBlock as C, unref as c, withCtx as A, 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 P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-U_sgAS6j.js";
10
- const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
- __name: "index",
12
- setup(F) {
13
- const { beforeEntryApp: d, entryApp: g } = L(), m = p(() => P.value.skinStyle), h = 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((r) => {
17
- r.apps = y(
18
- r.apps,
19
- // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
20
- 4
21
- );
22
- }), o) : [] : [];
23
- }), y = (o, r) => {
24
- const t = [];
25
- for (let a = 0; a < o.length; a += r)
26
- t.push(o.slice(a, a + r));
27
- return t;
28
- }, _ = async (o) => {
29
- if (!o) return;
30
- if (!sessionStorage.getItem("projectInfo")) {
31
- window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
32
- return;
33
- }
34
- const t = f(o);
35
- if (B.innerSet = !0, t.routeUrl) {
36
- if (o.code === "Ioc") {
37
- window.open(t.routeUrl, "_blank");
38
- return;
39
- }
40
- if (o.code === "wojiacloud") {
41
- const e = sessionStorage.getItem("kingdee_token") || "";
42
- if (e) {
43
- const [n, i] = await V().run({ accessToken: e });
44
- if (i) {
45
- const s = (i == null ? void 0 : i.auth_code) ?? "";
46
- t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
47
- }
48
- }
49
- }
50
- }
51
- const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
52
- if (a === 1) {
53
- if (!await d(o)) return;
54
- const n = T().preTab[o.code], i = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
55
- g({ microApp: t, menuCode: i, route: { query: s } });
56
- }
57
- if (a === 2 && t.routeUrl) {
58
- let e = "";
59
- if (l === 1)
60
- e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
61
- else if (l === 2) {
62
- const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
63
- e = M(n);
64
- }
65
- window.open(e, "_blank");
66
- }
67
- };
68
- return (o, r) => v((C(), U(c(x), {
69
- full: "",
70
- spinning: c(q)
71
- }, {
72
- default: A(() => [
73
- S(c($), {
74
- theme: m.value,
75
- appCategorys: w.value,
76
- onOpenApp: _
77
- }, null, 8, ["theme", "appCategorys"])
78
- ]),
79
- _: 1
80
- /* STABLE */
81
- }, 8, ["spinning"])), [
82
- [I, !h.value]
83
- ]);
84
- }
85
- });
86
- export {
87
- z as default
88
- };
Binary file
Binary file
@@ -1,88 +0,0 @@
1
- import { defineComponent as k, computed as p, withDirectives as v, createBlock as U, openBlock as C, unref as c, withCtx as A, 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 P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-mtRrY40l.js";
10
- const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
- __name: "index",
12
- setup(F) {
13
- const { beforeEntryApp: d, entryApp: g } = L(), m = p(() => P.value.skinStyle), h = 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((r) => {
17
- r.apps = y(
18
- r.apps,
19
- // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
20
- 4
21
- );
22
- }), o) : [] : [];
23
- }), y = (o, r) => {
24
- const t = [];
25
- for (let a = 0; a < o.length; a += r)
26
- t.push(o.slice(a, a + r));
27
- return t;
28
- }, _ = async (o) => {
29
- if (!o) return;
30
- if (!sessionStorage.getItem("projectInfo")) {
31
- window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
32
- return;
33
- }
34
- const t = f(o);
35
- if (B.innerSet = !0, t.routeUrl) {
36
- if (o.code === "Ioc") {
37
- window.open(t.routeUrl, "_blank");
38
- return;
39
- }
40
- if (o.code === "wojiacloud") {
41
- const e = sessionStorage.getItem("kingdee_token") || "";
42
- if (e) {
43
- const [n, i] = await V().run({ accessToken: e });
44
- if (i) {
45
- const s = (i == null ? void 0 : i.auth_code) ?? "";
46
- t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
47
- }
48
- }
49
- }
50
- }
51
- const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
52
- if (a === 1) {
53
- if (!await d(o)) return;
54
- const n = T().preTab[o.code], i = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
55
- g({ microApp: t, menuCode: i, route: { query: s } });
56
- }
57
- if (a === 2 && t.routeUrl) {
58
- let e = "";
59
- if (l === 1)
60
- e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
61
- else if (l === 2) {
62
- const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
63
- e = M(n);
64
- }
65
- window.open(e, "_blank");
66
- }
67
- };
68
- return (o, r) => v((C(), U(c(x), {
69
- full: "",
70
- spinning: c(q)
71
- }, {
72
- default: A(() => [
73
- S(c($), {
74
- theme: m.value,
75
- appCategorys: w.value,
76
- onOpenApp: _
77
- }, null, 8, ["theme", "appCategorys"])
78
- ]),
79
- _: 1
80
- /* STABLE */
81
- }, 8, ["spinning"])), [
82
- [I, !h.value]
83
- ]);
84
- }
85
- });
86
- export {
87
- z as default
88
- };