@das-fed/web 6.4.0-test.31 → 6.4.0-test.40

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 (29) hide show
  1. package/{index-4epbYelM.js → index-ByvKrojI.js} +1 -1
  2. package/{index-CfzUKyoR.js → index-CUEaQqhg.js} +2513 -2475
  3. package/index-CUEaQqhg.js.gz +0 -0
  4. package/{packages/main-app-framework/index-0UsnVlD3.js → index-DNmPYqCc.js} +35 -30
  5. package/index-DNmPYqCc.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/layout/index.js +216 -212
  9. package/packages/layout/index.js.gz +0 -0
  10. package/packages/main-app-framework/{index-Mfd6No2F.js → index-BsqHCDiq.js} +1 -1
  11. package/{index-CiU3u89k.js → packages/main-app-framework/index-CEUVvcoF.js} +35 -30
  12. package/packages/main-app-framework/index-CEUVvcoF.js.gz +0 -0
  13. package/packages/main-app-framework/{index-CAH4_2fv.js → index-DGMsib08.js} +2389 -2355
  14. package/packages/main-app-framework/index-DGMsib08.js.gz +0 -0
  15. package/packages/main-app-framework/index.js +1 -1
  16. package/packages/main-app-framework/style.css +1 -1
  17. package/packages/main-app-framework/style.css.gz +0 -0
  18. package/style.css +1 -1
  19. package/style.css.gz +0 -0
  20. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  21. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
  22. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
  23. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
  24. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  25. package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -0
  26. package/index-CfzUKyoR.js.gz +0 -0
  27. package/index-CiU3u89k.js.gz +0 -0
  28. package/packages/main-app-framework/index-0UsnVlD3.js.gz +0 -0
  29. package/packages/main-app-framework/index-CAH4_2fv.js.gz +0 -0
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-CAH4_2fv.js";
2
+ import { _ as c } from "./index-DGMsib08.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
@@ -6,66 +6,71 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as T } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as b } from "@das-fed/utils/common-tools";
8
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-CfzUKyoR.js";
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-DGMsib08.js";
10
10
  const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
11
  __name: "index",
12
12
  setup(F) {
13
- const { beforeEntryApp: d, entryApp: g } = L(), m = p(() => P.value.skinStyle), h = p(() => !!j.menu.items.length), w = p(() => {
13
+ const { beforeEntryApp: d, entryApp: g } = L(), h = p(() => P.value.skinStyle), m = p(() => !!j.menu.items.length), w = p(() => {
14
14
  if (!u.value || !u.value.length) return [];
15
- const o = f(u.value);
16
- return Array.isArray(o) ? o.length ? (o.forEach((r) => r.apps = y(r.apps, 4)), o) : [] : [];
17
- }), y = (o, r) => {
18
- const t = [];
19
- for (let a = 0; a < o.length; a += r)
20
- t.push(o.slice(a, a + r));
21
- return t;
22
- }, _ = async (o) => {
23
- if (!o) return;
15
+ const t = f(u.value);
16
+ return Array.isArray(t) ? t.length ? (t.forEach((r) => {
17
+ r.apps = y(
18
+ r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
19
+ 4
20
+ );
21
+ }), t) : [] : [];
22
+ }), y = (t, r) => {
23
+ const o = [];
24
+ for (let a = 0; a < t.length; a += r)
25
+ o.push(t.slice(a, a + r));
26
+ return o;
27
+ }, _ = async (t) => {
28
+ if (!t) return;
24
29
  if (!sessionStorage.getItem("projectInfo")) {
25
30
  window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
31
  return;
27
32
  }
28
- const t = f(o);
29
- if (B.innerSet = !0, t.routeUrl) {
30
- if (o.code === "Ioc") {
31
- window.open(t.routeUrl, "_blank");
33
+ const o = f(t);
34
+ if (B.innerSet = !0, o.routeUrl) {
35
+ if (t.code === "Ioc") {
36
+ window.open(o.routeUrl, "_blank");
32
37
  return;
33
38
  }
34
- if (o.code === "wojiacloud") {
39
+ if (t.code === "wojiacloud") {
35
40
  const e = sessionStorage.getItem("kingdee_token") || "";
36
41
  if (e) {
37
- const [n, i] = await V().run({ accessToken: e });
38
- if (i) {
39
- const s = (i == null ? void 0 : i.auth_code) ?? "";
40
- t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
42
+ const [n, s] = await V().run({ accessToken: e });
43
+ if (s) {
44
+ const i = (s == null ? void 0 : s.auth_code) ?? "";
45
+ o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
41
46
  }
42
47
  }
43
48
  }
44
49
  }
45
- const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
50
+ const a = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
46
51
  if (a === 1) {
47
- if (!await d(o)) return;
48
- const n = T().preTab[o.code], i = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
49
- g({ microApp: t, menuCode: i, route: { query: s } });
52
+ if (!await d(t)) return;
53
+ const n = T().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
54
+ g({ microApp: o, menuCode: s, route: { query: i } });
50
55
  }
51
- if (a === 2 && t.routeUrl) {
56
+ if (a === 2 && o.routeUrl) {
52
57
  let e = "";
53
58
  if (l === 1)
54
- e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
59
+ e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = b(e);
55
60
  else if (l === 2) {
56
- const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
61
+ const n = await K(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
57
62
  e = M(n);
58
63
  }
59
64
  window.open(e, "_blank");
60
65
  }
61
66
  };
62
- return (o, r) => v((C(), U(c(x), {
67
+ return (t, r) => v((C(), U(c(x), {
63
68
  full: "",
64
69
  spinning: c(q)
65
70
  }, {
66
71
  default: A(() => [
67
72
  S(c($), {
68
- theme: m.value,
73
+ theme: h.value,
69
74
  appCategorys: w.value,
70
75
  onOpenApp: _
71
76
  }, null, 8, ["theme", "appCategorys"])
@@ -73,7 +78,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
73
78
  _: 1
74
79
  /* STABLE */
75
80
  }, 8, ["spinning"])), [
76
- [I, !h.value]
81
+ [I, !m.value]
77
82
  ]);
78
83
  }
79
84
  });