@das-fed/web 6.4.0-test.2.1 → 6.4.0-test.20
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 +3 -1
- package/{index-DC-9kRIP.js → index-DozcsJQ6.js} +1 -1
- package/index-SnQNzohF.js +81 -0
- package/index-SnQNzohF.js.gz +0 -0
- package/index-oWBd5vf_.js +13331 -0
- package/index-oWBd5vf_.js.gz +0 -0
- package/index.js +22 -20
- package/package.json +8 -6
- package/packages/i18n/index.js +172 -31
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +454 -518
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +2 -2
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-CmHORAF1.js +81 -0
- package/packages/main-app-framework/index-CmHORAF1.js.gz +0 -0
- package/packages/main-app-framework/{index-DCVBm-dM.js → index-DAaPMAIp.js} +1 -1
- package/packages/main-app-framework/index-JNn4Rtac.js +11956 -0
- package/packages/main-app-framework/index-JNn4Rtac.js.gz +0 -0
- package/packages/main-app-framework/index.js +3 -2
- 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 +305 -302
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/global.d.ts +583 -0
- package/types/i18n/index.d.ts +6 -4
- package/types/layout/store/index.d.ts +7 -2
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +2 -1
- package/types/layout/store/tab.d.ts +1 -0
- 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/api.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/constant/index.d.ts +1 -1
- package/types/main-app-framework/data-track/api.d.ts +2 -0
- package/types/main-app-framework/data-track/index.d.ts +2 -0
- package/types/main-app-framework/i18n/index.d.ts +518 -0
- package/types/main-app-framework/index.d.ts +2 -1
- 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 +4 -3
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -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 -4
- 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/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
- package/types/main-app-framework/utils/src/tools.d.ts +5 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-6_iWBDs0.js +0 -7173
- package/index-6_iWBDs0.js.gz +0 -0
- package/index-C9vVY6r3.js +0 -74
- package/index-C9vVY6r3.js.gz +0 -0
- package/packages/main-app-framework/index-DHWdFr1t.js +0 -5859
- package/packages/main-app-framework/index-DHWdFr1t.js.gz +0 -0
- package/packages/main-app-framework/index-DiKwf0Vc.js +0 -74
- package/packages/main-app-framework/index-DiKwf0Vc.js.gz +0 -0
package/esm-map.json
CHANGED
|
@@ -25,5 +25,7 @@
|
|
|
25
25
|
"getVar": "/packages/theme/index",
|
|
26
26
|
"getVarValue": "/packages/theme/index",
|
|
27
27
|
"mainAppFramework": "/packages/main-app-framework/index",
|
|
28
|
-
"layoutData": "/packages/layout/index"
|
|
28
|
+
"layoutData": "/packages/layout/index",
|
|
29
|
+
"setLangRule": "/packages/i18n/index",
|
|
30
|
+
"customLangeData": "/packages/i18n/index"
|
|
29
31
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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-oWBd5vf_.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
|
+
}, 8, ["spinning"])), [
|
|
75
|
+
[I, !h.value]
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
z as default
|
|
81
|
+
};
|
|
Binary file
|