@das-fed/web 6.4.0-dev.62 → 6.4.0-dev.63

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-CsmcL2-s.js → index-BSrECbLg.js} +9322 -3971
  2. package/index-BSrECbLg.js.gz +0 -0
  3. package/index-Bh6rbAJO.js +82 -0
  4. package/index-Bh6rbAJO.js.gz +0 -0
  5. package/{index-yxVjdRIa.js → index-JsRfKYMy.js} +1 -1
  6. package/index.js +4 -4
  7. package/package.json +8 -6
  8. package/packages/main-app-framework/index-D-XU6ZBa.js +82 -0
  9. package/packages/main-app-framework/index-D-XU6ZBa.js.gz +0 -0
  10. package/packages/main-app-framework/{index-DwTe74vJ.js → index-HhimTUUr.js} +8771 -3420
  11. package/packages/main-app-framework/index-HhimTUUr.js.gz +0 -0
  12. package/packages/main-app-framework/{index-B8jAPmN5.js → index-nyn3jIZS.js} +1 -1
  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/i18n/index.d.ts +10 -0
  19. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  20. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  21. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  22. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  23. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  24. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  25. package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -2
  26. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  27. package/index-Bc1IIoKP.js +0 -76
  28. package/index-Bc1IIoKP.js.gz +0 -0
  29. package/index-CsmcL2-s.js.gz +0 -0
  30. package/packages/main-app-framework/index-Ca7RCE2Q.js +0 -76
  31. package/packages/main-app-framework/index-Ca7RCE2Q.js.gz +0 -0
  32. package/packages/main-app-framework/index-DwTe74vJ.js.gz +0 -0
Binary file
@@ -0,0 +1,82 @@
1
+ import { defineComponent as k, computed as p, withDirectives as v, openBlock as U, createBlock 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-BSrECbLg.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) => 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;
24
+ if (!sessionStorage.getItem("projectInfo")) {
25
+ window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
+ return;
27
+ }
28
+ const t = f(o);
29
+ if (B.innerSet = !0, t.routeUrl) {
30
+ if (o.code === "Ioc") {
31
+ window.open(t.routeUrl, "_blank");
32
+ return;
33
+ }
34
+ if (o.code === "wojiacloud") {
35
+ const e = sessionStorage.getItem("kingdee_token") || "";
36
+ 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}`;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
46
+ 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 } });
50
+ }
51
+ if (a === 2 && t.routeUrl) {
52
+ let e = "";
53
+ if (l === 1)
54
+ e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
55
+ else if (l === 2) {
56
+ const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
57
+ e = M(n);
58
+ }
59
+ window.open(e, "_blank");
60
+ }
61
+ };
62
+ return (o, r) => v((U(), C(c(x), {
63
+ full: "",
64
+ spinning: c(q)
65
+ }, {
66
+ default: A(() => [
67
+ S(c($), {
68
+ theme: m.value,
69
+ appCategorys: w.value,
70
+ onOpenApp: _
71
+ }, null, 8, ["theme", "appCategorys"])
72
+ ]),
73
+ _: 1
74
+ /* STABLE */
75
+ }, 8, ["spinning"])), [
76
+ [I, !h.value]
77
+ ]);
78
+ }
79
+ });
80
+ export {
81
+ z as default
82
+ };
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-CsmcL2-s.js";
2
+ import { _ as c } from "./index-BSrECbLg.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as e, z as t, B as n, A as i, C as r, e as u, k as o, v as g, n as m, g as p, j as D, r as l, x as L, y as b, f as c, i as h, F as A, G as T, o as y, D as R, E as W, J as I, H as M, s as F, h as V, m as f, q as k, w as v, t as w } from "./index-CsmcL2-s.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-BSrECbLg.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
@@ -7,9 +7,9 @@ export {
7
7
  r as DasWebTabs,
8
8
  u as createDasWebApp,
9
9
  o as currentLang,
10
- g as currentTheme,
11
- m as customLangeData,
12
- p as getI18nRule,
10
+ m as currentTheme,
11
+ p as customLangeData,
12
+ g as getI18nRule,
13
13
  D as getLang,
14
14
  l as getThemeRule,
15
15
  L as getVar,
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-dev.62",
3
+ "version": "6.4.0-dev.63",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-dev.62",
8
- "@das-fed/utils": "6.4.0-dev.62",
9
- "@das-fed/web": "6.4.0-dev.62",
10
- "@das-fed/web-components": "6.4.0-dev.62",
7
+ "@das-fed/ui": "6.4.0-dev.63",
8
+ "@das-fed/utils": "6.4.0-dev.63",
9
+ "@das-fed/web": "6.4.0-dev.63",
10
+ "@das-fed/web-components": "6.4.0-dev.63",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
14
+ "crypto-js": "^4.2.0",
14
15
  "lodash": "^4.17.21",
15
16
  "lodash-es": "^4.17.21",
16
17
  "nanoid": "3.2.0",
@@ -18,7 +19,8 @@
18
19
  "vue-router": "^4.4.0"
19
20
  },
20
21
  "devDependencies": {
21
- "@das-fed/cli": "6.4.0-dev.62",
22
+ "@das-fed/cli": "6.4.0-dev.63",
23
+ "@types/crypto-js": "^4.2.2",
22
24
  "@types/lodash": "^4.14.194",
23
25
  "@types/lodash-es": "^4.17.12",
24
26
  "@vitejs/plugin-vue": "^5.1.0",
@@ -0,0 +1,82 @@
1
+ import { defineComponent as k, computed as p, withDirectives as v, openBlock as U, createBlock 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-HhimTUUr.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) => 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;
24
+ if (!sessionStorage.getItem("projectInfo")) {
25
+ window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
+ return;
27
+ }
28
+ const t = f(o);
29
+ if (B.innerSet = !0, t.routeUrl) {
30
+ if (o.code === "Ioc") {
31
+ window.open(t.routeUrl, "_blank");
32
+ return;
33
+ }
34
+ if (o.code === "wojiacloud") {
35
+ const e = sessionStorage.getItem("kingdee_token") || "";
36
+ 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}`;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
46
+ 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 } });
50
+ }
51
+ if (a === 2 && t.routeUrl) {
52
+ let e = "";
53
+ if (l === 1)
54
+ e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
55
+ else if (l === 2) {
56
+ const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
57
+ e = M(n);
58
+ }
59
+ window.open(e, "_blank");
60
+ }
61
+ };
62
+ return (o, r) => v((U(), C(c(x), {
63
+ full: "",
64
+ spinning: c(q)
65
+ }, {
66
+ default: A(() => [
67
+ S(c($), {
68
+ theme: m.value,
69
+ appCategorys: w.value,
70
+ onOpenApp: _
71
+ }, null, 8, ["theme", "appCategorys"])
72
+ ]),
73
+ _: 1
74
+ /* STABLE */
75
+ }, 8, ["spinning"])), [
76
+ [I, !h.value]
77
+ ]);
78
+ }
79
+ });
80
+ export {
81
+ z as default
82
+ };