@das-fed/web 6.4.0-dev.125 → 6.4.0-dev.127
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.
- package/index-B4_pNzA2.js +10 -0
- package/{index-D6gsmqTy.js → index-BXgyXLXy.js} +5402 -4954
- package/index-BXgyXLXy.js.gz +0 -0
- package/{index-BiinQ8qC.js → index-C28rnnFY.js} +35 -33
- package/index-C28rnnFY.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +188 -103
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-CJt4Jf9a.js +10 -0
- package/packages/main-app-framework/{index-C59SNYDx.js → index-CPObYd5x.js} +35 -33
- package/packages/main-app-framework/index-CPObYd5x.js.gz +0 -0
- package/packages/main-app-framework/{index-Czrgf0sH.js → index-PGuD_qkK.js} +3982 -3638
- package/packages/main-app-framework/index-PGuD_qkK.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +111 -97
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/index.d.ts +2 -2
- package/types/layout/store/index.d.ts +1 -1
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
- package/types/main-app-framework/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +2 -1
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-BiinQ8qC.js.gz +0 -0
- package/index-D6gsmqTy.js.gz +0 -0
- package/index-yjiCIu21.js +0 -10
- package/packages/main-app-framework/index-C59SNYDx.js.gz +0 -0
- package/packages/main-app-framework/index-Czrgf0sH.js.gz +0 -0
- package/packages/main-app-framework/index-DIxPIoNA.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as p, withDirectives as v,
|
|
1
|
+
import { defineComponent as k, computed as p, withDirectives as v, createBlock as U, openBlock as C, unref as c, withCtx as A, createVNode as S, vShow as I } from "vue";
|
|
2
2
|
import { layoutData as j } from "@das-fed/web/packages/layout/index";
|
|
3
3
|
import { t as D } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
@@ -6,78 +6,80 @@ 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-
|
|
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-PGuD_qkK.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(),
|
|
13
|
+
const { beforeEntryApp: d, entryApp: g } = L(), m = p(() => P.value.skinStyle), h = p(() => !!j.menu.items.length), w = p(() => {
|
|
14
14
|
if (!u.value || !u.value.length) return [];
|
|
15
|
-
const
|
|
16
|
-
return Array.isArray(
|
|
15
|
+
const o = f(u.value);
|
|
16
|
+
return Array.isArray(o) ? o.length ? (o.forEach((r) => {
|
|
17
17
|
r.apps = y(
|
|
18
|
-
r.apps
|
|
18
|
+
r.apps,
|
|
19
|
+
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
19
20
|
4
|
|
20
21
|
);
|
|
21
|
-
}),
|
|
22
|
-
}), y = (
|
|
23
|
-
const
|
|
24
|
-
for (let a = 0; a <
|
|
25
|
-
|
|
26
|
-
return
|
|
27
|
-
}, _ = async (
|
|
28
|
-
if (!
|
|
22
|
+
}), o) : [] : [];
|
|
23
|
+
}), y = (o, r) => {
|
|
24
|
+
const t = [];
|
|
25
|
+
for (let a = 0; a < o.length; a += r)
|
|
26
|
+
t.push(o.slice(a, a + r));
|
|
27
|
+
return t;
|
|
28
|
+
}, _ = async (o) => {
|
|
29
|
+
if (!o) return;
|
|
29
30
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
30
31
|
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
-
if (B.innerSet = !0,
|
|
35
|
-
if (
|
|
36
|
-
window.open(
|
|
34
|
+
const t = f(o);
|
|
35
|
+
if (B.innerSet = !0, t.routeUrl) {
|
|
36
|
+
if (o.code === "Ioc") {
|
|
37
|
+
window.open(t.routeUrl, "_blank");
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
|
-
if (
|
|
40
|
+
if (o.code === "wojiacloud") {
|
|
40
41
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
41
42
|
if (e) {
|
|
42
|
-
const [n,
|
|
43
|
-
if (
|
|
44
|
-
const
|
|
45
|
-
|
|
43
|
+
const [n, i] = await V().run({ accessToken: e });
|
|
44
|
+
if (i) {
|
|
45
|
+
const s = (i == null ? void 0 : i.auth_code) ?? "";
|
|
46
|
+
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
const a = (
|
|
51
|
+
const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
|
|
51
52
|
if (a === 1) {
|
|
52
|
-
if (!await d(
|
|
53
|
-
const n = T().preTab[
|
|
54
|
-
g({ microApp:
|
|
53
|
+
if (!await d(o)) return;
|
|
54
|
+
const n = T().preTab[o.code], i = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
55
|
+
g({ microApp: t, menuCode: i, route: { query: s } });
|
|
55
56
|
}
|
|
56
|
-
if (a === 2 &&
|
|
57
|
+
if (a === 2 && t.routeUrl) {
|
|
57
58
|
let e = "";
|
|
58
59
|
if (l === 1)
|
|
59
|
-
e =
|
|
60
|
+
e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
|
|
60
61
|
else if (l === 2) {
|
|
61
|
-
const n = await K(
|
|
62
|
+
const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
|
|
62
63
|
e = M(n);
|
|
63
64
|
}
|
|
64
65
|
window.open(e, "_blank");
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
|
-
return (
|
|
68
|
+
return (o, r) => v((C(), U(c(x), {
|
|
68
69
|
full: "",
|
|
69
70
|
spinning: c(q)
|
|
70
71
|
}, {
|
|
71
72
|
default: A(() => [
|
|
72
73
|
S(c($), {
|
|
73
|
-
theme:
|
|
74
|
+
theme: m.value,
|
|
74
75
|
appCategorys: w.value,
|
|
75
76
|
onOpenApp: _
|
|
76
77
|
}, null, 8, ["theme", "appCategorys"])
|
|
77
78
|
]),
|
|
78
79
|
_: 1
|
|
80
|
+
/* STABLE */
|
|
79
81
|
}, 8, ["spinning"])), [
|
|
80
|
-
[I, !
|
|
82
|
+
[I, !h.value]
|
|
81
83
|
]);
|
|
82
84
|
}
|
|
83
85
|
});
|
|
Binary file
|