@das-fed/web 7.1.0-seres.4 → 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
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-CuDzwEwX.js";
2
+ import { _ as c } from "./index-E0lPom_4.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
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-BJDVxFOS.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-E0lPom_4.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": "7.1.0-seres.4",
3
+ "version": "7.1.0-seres.6",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "7.1.0-seres.4",
8
- "@das-fed/utils": "7.1.0-seres.4",
9
- "@das-fed/web": "7.1.0-seres.4",
10
- "@das-fed/web-components": "7.1.0-seres.4",
7
+ "@das-fed/ui": "7.1.0-seres.6",
8
+ "@das-fed/utils": "7.1.0-seres.6",
9
+ "@das-fed/web": "7.1.0-seres.6",
10
+ "@das-fed/web-components": "7.1.0-seres.6",
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": "7.1.0-seres.4",
22
+ "@das-fed/cli": "7.1.0-seres.6",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
Binary file
Binary file
Binary file
@@ -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-DUr3POL2.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
+ };