@das-fed/web 6.4.0-hot.55 → 6.4.0-hot.57

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 (30) hide show
  1. package/{index-BXgyXLXy.js → index-C-KsicRv.js} +10860 -6787
  2. package/index-C-KsicRv.js.gz +0 -0
  3. package/{index-B4_pNzA2.js → index-D2o2wnNq.js} +1 -1
  4. package/index-DMV-fosi.js +88 -0
  5. package/index-DMV-fosi.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/main-app-framework/{index-CJt4Jf9a.js → index-BQsfGNLm.js} +1 -1
  9. package/packages/main-app-framework/{index-PGuD_qkK.js → index-CvYydCiU.js} +9805 -5732
  10. package/packages/main-app-framework/index-CvYydCiU.js.gz +0 -0
  11. package/packages/main-app-framework/index-F85JEjCG.js +88 -0
  12. package/packages/main-app-framework/index-F85JEjCG.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-nav-config/index.d.ts +2 -1
  22. package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +1 -1
  23. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +0 -1
  24. package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +1 -3
  25. package/index-BXgyXLXy.js.gz +0 -0
  26. package/index-C28rnnFY.js +0 -88
  27. package/index-C28rnnFY.js.gz +0 -0
  28. package/packages/main-app-framework/index-CPObYd5x.js +0 -88
  29. package/packages/main-app-framework/index-CPObYd5x.js.gz +0 -0
  30. package/packages/main-app-framework/index-PGuD_qkK.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-BXgyXLXy.js";
2
+ import { _ as c } from "./index-C-KsicRv.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
@@ -0,0 +1,88 @@
1
+ import { defineComponent as v, computed as p, withDirectives as U, createBlock as C, openBlock as A, unref as c, withCtx as S, createVNode as I, vShow as j } from "vue";
2
+ import { layoutData as D } from "@das-fed/web/packages/layout/index";
3
+ import { t as $ } from "@das-fed/web/packages/i18n/index";
4
+ import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
5
+ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
6
+ import { getTabInfo as b } from "@das-fed/utils/common-info";
7
+ import { setShowLayout as E } from "@das-fed/utils/common-tools";
8
+ import { createService as L } from "@das-fed/utils/create-api-service";
9
+ import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-C-KsicRv.js";
10
+ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), oo = /* @__PURE__ */ v({
11
+ __name: "index",
12
+ setup(G) {
13
+ const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
14
+ if (!u.value || !u.value.length) return [];
15
+ const t = d(u.value);
16
+ return Array.isArray(t) ? t.length ? (t.forEach((r) => {
17
+ r.apps = _(
18
+ r.apps,
19
+ // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
20
+ 4
21
+ );
22
+ }), t) : [] : [];
23
+ }), _ = (t, r) => {
24
+ const s = [];
25
+ for (let o = 0; o < t.length; o += r)
26
+ s.push(t.slice(o, o + r));
27
+ return s;
28
+ }, k = async (t, r = !0) => {
29
+ if (!t) return;
30
+ if (!sessionStorage.getItem("projectInfo")) {
31
+ window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
32
+ return;
33
+ }
34
+ const o = d(t);
35
+ if (K.innerSet = r, o.routeUrl) {
36
+ if (t.code === "Ioc") {
37
+ window.open(o.routeUrl, "_blank");
38
+ return;
39
+ }
40
+ if (t.code === "wojiacloud") {
41
+ const e = sessionStorage.getItem("kingdee_token") || "";
42
+ if (e) {
43
+ const [n, a] = await F().run({ accessToken: e });
44
+ if (a) {
45
+ const i = (a == null ? void 0 : a.auth_code) ?? "";
46
+ o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
47
+ }
48
+ }
49
+ }
50
+ }
51
+ const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
52
+ if (l === 1) {
53
+ if (!await g(t)) return;
54
+ const n = b().preTab[t.code], a = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
55
+ m({ microApp: o, menuCode: a, route: { query: i } });
56
+ }
57
+ if (l === 2 && o.routeUrl) {
58
+ let e = "";
59
+ if (f === 1)
60
+ e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = E(e);
61
+ else if (f === 2) {
62
+ const n = await M(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
63
+ e = N(n);
64
+ }
65
+ window.open(e, "_blank");
66
+ }
67
+ };
68
+ return (t, r) => U((A(), C(c(T), {
69
+ full: "",
70
+ spinning: c(B)
71
+ }, {
72
+ default: S(() => [
73
+ I(c(x), {
74
+ theme: h.value,
75
+ appCategorys: y.value,
76
+ onOpenApp: k
77
+ }, null, 8, ["theme", "appCategorys"])
78
+ ]),
79
+ _: 1
80
+ /* STABLE */
81
+ }, 8, ["spinning"])), [
82
+ [j, !w.value]
83
+ ]);
84
+ }
85
+ });
86
+ export {
87
+ oo as default
88
+ };
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-BXgyXLXy.js";
1
+ import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-C-KsicRv.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-hot.55",
3
+ "version": "6.4.0-hot.57",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-hot.55",
8
- "@das-fed/utils": "6.4.0-hot.55",
9
- "@das-fed/web": "6.4.0-hot.55",
10
- "@das-fed/web-components": "6.4.0-hot.55",
7
+ "@das-fed/ui": "6.4.0-hot.57",
8
+ "@das-fed/utils": "6.4.0-hot.57",
9
+ "@das-fed/web": "6.4.0-hot.57",
10
+ "@das-fed/web-components": "6.4.0-hot.57",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,7 +19,7 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/cli": "6.4.0-hot.55",
22
+ "@das-fed/cli": "6.4.0-hot.57",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-PGuD_qkK.js";
2
+ import { _ as c } from "./index-CvYydCiU.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");