@das-fed/web 6.4.0-test.2 → 6.4.0-test.3
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/esm-map.json +2 -1
- package/i18n-collection/en.js +93 -0
- package/i18n-collection/zh-CN.js +93 -0
- package/{index-3y8fHBtE.js → index-BZXSGAhJ.js} +1 -1
- package/index-CQaVm8TE.js +7446 -0
- package/index-CQaVm8TE.js.gz +0 -0
- package/{packages/main-app-framework/index-Xn4wzM8V.js → index-CfwRXu_Z.js} +23 -22
- package/index-CfwRXu_Z.js.gz +0 -0
- package/index.js +18 -17
- package/package.json +6 -6
- package/packages/i18n/index.js +35 -29
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +428 -401
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-DnFSz1TN.js → index-BK67qqJm.js} +1 -1
- package/{index-DXnYb5jk.js → packages/main-app-framework/index-CZ__D8bV.js} +23 -22
- package/packages/main-app-framework/index-CZ__D8bV.js.gz +0 -0
- package/packages/main-app-framework/index-CzLHTflM.js +6099 -0
- package/packages/main-app-framework/index-CzLHTflM.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 +162 -143
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/i18n/index.d.ts +2 -1
- package/types/layout/store/index.d.ts +5 -0
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +1 -0
- package/types/layout/store/tab.d.ts +1 -0
- package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +3 -2
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
- package/index-DEYJwN2T.js +0 -7173
- package/index-DEYJwN2T.js.gz +0 -0
- package/index-DXnYb5jk.js.gz +0 -0
- package/packages/main-app-framework/index-Bo4ASgsm.js +0 -5859
- package/packages/main-app-framework/index-Bo4ASgsm.js.gz +0 -0
- package/packages/main-app-framework/index-Xn4wzM8V.js.gz +0 -0
|
Binary file
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
2
|
+
import { layoutData as I } from "@das-fed/web/packages/layout/index";
|
|
3
|
+
import { t as j } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasAppContainer as D } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
5
|
+
import { DasSpin as $ } from "@das-fed/ui/packages/components/spin/index";
|
|
6
|
+
import { getTabInfo as x } from "@das-fed/utils/common-info";
|
|
7
|
+
import { setShowLayout as T } from "@das-fed/utils/common-tools";
|
|
8
|
+
import { createService as b } from "@das-fed/utils/create-api-service";
|
|
9
|
+
import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-CzLHTflM.js";
|
|
10
|
+
const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
|
|
10
11
|
__name: "index",
|
|
11
|
-
setup(
|
|
12
|
-
const { beforeEntryApp: d, entryApp:
|
|
12
|
+
setup(O) {
|
|
13
|
+
const { beforeEntryApp: d, entryApp: m } = E(), g = l(() => !!I.menu.items.length), h = l(() => {
|
|
13
14
|
if (!c.value || !c.value.length) return [];
|
|
14
15
|
const o = f(c.value);
|
|
15
16
|
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
|
|
@@ -21,11 +22,11 @@ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/
|
|
|
21
22
|
}, y = async (o) => {
|
|
22
23
|
if (!o) return;
|
|
23
24
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
24
|
-
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
25
|
+
window.confirm(j("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
28
|
const t = f(o);
|
|
28
|
-
if (
|
|
29
|
+
if (q.innerSet = !0, t.routeUrl) {
|
|
29
30
|
if (o.code === "Ioc") {
|
|
30
31
|
window.open(t.routeUrl, "_blank");
|
|
31
32
|
return;
|
|
@@ -33,7 +34,7 @@ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/
|
|
|
33
34
|
if (o.code === "wojiacloud") {
|
|
34
35
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
35
36
|
if (e) {
|
|
36
|
-
const [i, a] = await
|
|
37
|
+
const [i, a] = await N().run({ accessToken: e });
|
|
37
38
|
if (a) {
|
|
38
39
|
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
39
40
|
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
@@ -44,31 +45,31 @@ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/
|
|
|
44
45
|
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
45
46
|
if (r === 1) {
|
|
46
47
|
if (!await d(o)) return;
|
|
47
|
-
const i =
|
|
48
|
-
|
|
48
|
+
const i = x().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
49
|
+
m({ microApp: t, menuCode: a, route: { query: s } });
|
|
49
50
|
}
|
|
50
51
|
if (r === 2 && t.routeUrl) {
|
|
51
52
|
let e = "";
|
|
52
|
-
u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e =
|
|
53
|
+
u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = T(e)) : u === 2 && (e = B(t.routeUrl)), window.open(e, "_blank");
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
|
-
return (o, n) => k((v(), A(p(
|
|
56
|
+
return (o, n) => k((v(), A(p($), {
|
|
56
57
|
full: "",
|
|
57
|
-
spinning: p(
|
|
58
|
+
spinning: p(L)
|
|
58
59
|
}, {
|
|
59
60
|
default: U(() => [
|
|
60
|
-
C(p(
|
|
61
|
-
appCategorys:
|
|
61
|
+
C(p(D), {
|
|
62
|
+
appCategorys: h.value,
|
|
62
63
|
onOpenApp: y
|
|
63
64
|
}, null, 8, ["appCategorys"])
|
|
64
65
|
]),
|
|
65
66
|
_: 1
|
|
66
67
|
/* STABLE */
|
|
67
68
|
}, 8, ["spinning"])), [
|
|
68
|
-
[S, !
|
|
69
|
+
[S, !g.value]
|
|
69
70
|
]);
|
|
70
71
|
}
|
|
71
72
|
});
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
X as default
|
|
74
75
|
};
|
|
Binary file
|