@das-fed/web 7.1.0-seres.5 → 7.1.0-seres.6

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 (31) hide show
  1. package/index-B_OsWK2h.js +104 -0
  2. package/index-B_OsWK2h.js.gz +0 -0
  3. package/{index-BJDVxFOS.js → index-E0lPom_4.js} +5059 -4983
  4. package/index-E0lPom_4.js.gz +0 -0
  5. package/{packages/main-app-framework/index-BLOwaLgb.js → index-zY7E1uXQ.js} +1 -1
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/create-das-web-app/index.js.gz +0 -0
  9. package/packages/i18n/index.js.gz +0 -0
  10. package/packages/layout/index.js.gz +0 -0
  11. package/packages/layout/style.css.gz +0 -0
  12. package/packages/main-app-framework/index-DAu6ZMV7.js +104 -0
  13. package/packages/main-app-framework/index-DAu6ZMV7.js.gz +0 -0
  14. package/packages/main-app-framework/{index-CuDzwEwX.js → index-DUr3POL2.js} +5433 -5357
  15. package/packages/main-app-framework/index-DUr3POL2.js.gz +0 -0
  16. package/{index-C2e_Is65.js → packages/main-app-framework/index-De2oVDx4.js} +1 -1
  17. package/packages/main-app-framework/index.js +1 -1
  18. package/packages/main-app-framework/style.css.gz +0 -0
  19. package/packages/micro-frontend/index.js.gz +0 -0
  20. package/packages/style/style.css.gz +0 -0
  21. package/packages/theme/index.js.gz +0 -0
  22. package/style.css.gz +0 -0
  23. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -0
  24. package/types/main-app-framework/init-config/get-project-config/index.d.ts +5 -0
  25. package/types/main-app-framework/init-config/get-project-config/station-reserve-entry.d.ts +64 -0
  26. package/index-BJDVxFOS.js.gz +0 -0
  27. package/index-Dad2ayuK.js +0 -88
  28. package/index-Dad2ayuK.js.gz +0 -0
  29. package/packages/main-app-framework/index-CuDzwEwX.js.gz +0 -0
  30. package/packages/main-app-framework/index-CwPhZ7VL.js +0 -88
  31. package/packages/main-app-framework/index-CwPhZ7VL.js.gz +0 -0
@@ -0,0 +1,104 @@
1
+ import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as D, createVNode as d, unref as c, withCtx as E, vShow as P } from "vue";
2
+ import { layoutData as $ } from "@das-fed/web/packages/layout/index";
3
+ import { t as b } 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 L } from "@das-fed/utils/common-info";
7
+ import { setShowLayout as q } from "@das-fed/utils/common-tools";
8
+ import { createService as B } from "@das-fed/utils/create-api-service";
9
+ import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-E0lPom_4.js";
10
+ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), ne = /* @__PURE__ */ C({
11
+ __name: "index",
12
+ setup(J) {
13
+ const { beforeEntryApp: g, entryApp: h } = N(), w = () => {
14
+ window._isAutoCloseApp = !1;
15
+ const e = sessionStorage.getItem("iwmStationReservePath") || "/";
16
+ location.replace(
17
+ // '/enterpriseadmin/iwm/stationReserve?app=iwm&menu=iwm.reservation.stationReserve&cityCode=100000/44/4403&reservationTime=1786697264374-1786699264374',
18
+ e
19
+ );
20
+ }, y = p(() => R.value.skinStyle), _ = p(() => !!$.menu.items.length), k = p(() => {
21
+ if (!l.value || !l.value.length) return [];
22
+ const e = m(l.value);
23
+ return Array.isArray(e) ? e.length ? (e.forEach((r) => {
24
+ r.apps = v(
25
+ r.apps,
26
+ // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
27
+ 4
28
+ );
29
+ }), e) : [] : [];
30
+ }), v = (e, r) => {
31
+ const i = [];
32
+ for (let t = 0; t < e.length; t += r)
33
+ i.push(e.slice(t, t + r));
34
+ return i;
35
+ }, U = async (e, r = !0) => {
36
+ if (!e) return;
37
+ if (!sessionStorage.getItem("projectInfo")) {
38
+ window.confirm(b("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
39
+ return;
40
+ }
41
+ const t = m(e);
42
+ if (F.innerSet = r, t.routeUrl) {
43
+ if (e.code === "Ioc") {
44
+ window.open(t.routeUrl, "_blank");
45
+ return;
46
+ }
47
+ if (e.code === "wojiacloud") {
48
+ const o = sessionStorage.getItem("kingdee_token") || "";
49
+ if (o) {
50
+ const [n, a] = await H().run({ accessToken: o });
51
+ if (a) {
52
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
53
+ t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ const u = (e == null ? void 0 : e.openType) ?? 1, f = (e == null ? void 0 : e.type) ?? 1;
59
+ if (u === 1) {
60
+ if (!await g(e)) return;
61
+ const n = L().preTab[e.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
62
+ h({ microApp: t, menuCode: a, route: { query: s } });
63
+ }
64
+ if (u === 2 && t.routeUrl) {
65
+ let o = "";
66
+ if (f === 1)
67
+ o = t != null && t.applicationPath ? ("/" + t.applicationPath + "/" + t.routeUrl).replace(/\/\//g, "/") : ("/" + t.routeUrl).replace(/\/\//g, "/"), o = q(o);
68
+ else if (f === 2) {
69
+ const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
70
+ o = M(n);
71
+ }
72
+ window.open(o, "_blank");
73
+ }
74
+ };
75
+ return (e, r) => (A(), S(
76
+ I,
77
+ null,
78
+ [
79
+ j("button", { onClick: w }, "测试跳转到工位预定"),
80
+ D(d(c(T), {
81
+ full: "",
82
+ spinning: c(V)
83
+ }, {
84
+ default: E(() => [
85
+ d(c(x), {
86
+ theme: y.value,
87
+ appCategorys: k.value,
88
+ onOpenApp: U
89
+ }, null, 8, ["theme", "appCategorys"])
90
+ ]),
91
+ _: 1
92
+ /* STABLE */
93
+ }, 8, ["spinning"]), [
94
+ [P, !_.value]
95
+ ])
96
+ ],
97
+ 64
98
+ /* STABLE_FRAGMENT */
99
+ ));
100
+ }
101
+ });
102
+ export {
103
+ ne as default
104
+ };
Binary file