@das-fed/web 7.0.0-zhaohang.1 → 7.0.0-zhaohang.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/{packages/main-app-framework/index-D6tSxSCm.js → index-DeKFYMKY.js} +1 -1
- package/{packages/main-app-framework/index-uy_tfCFy.js → index-DgV7dEtR.js} +30 -35
- package/index-DgV7dEtR.js.gz +0 -0
- package/{index-Do-hi0sT.js → index-g3DWTus2.js} +3098 -3152
- package/index-g3DWTus2.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +17 -17
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +212 -216
- package/packages/layout/index.js.gz +0 -0
- package/{index-ybkIe7Qx.js → packages/main-app-framework/index-CGXiI8Px.js} +30 -35
- package/packages/main-app-framework/index-CGXiI8Px.js.gz +0 -0
- package/{index-Ho3juDFP.js → packages/main-app-framework/index-CX-Rv9Hu.js} +1 -1
- package/packages/main-app-framework/{index-By_I7kxF.js → index-iFGtZyh-.js} +2482 -2532
- package/packages/main-app-framework/index-iFGtZyh-.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/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/i18n/index.d.ts +1 -1
- package/types/main-app-framework/business/message-notify/index.d.ts +0 -1
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +1 -2
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -3
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +0 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +0 -1
- package/types/main-app-framework/utils/src/set-common-info.d.ts +0 -2
- package/index-Do-hi0sT.js.gz +0 -0
- package/index-ybkIe7Qx.js.gz +0 -0
- package/packages/main-app-framework/index-By_I7kxF.js.gz +0 -0
- package/packages/main-app-framework/index-uy_tfCFy.js.gz +0 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +0 -4
|
@@ -6,71 +6,66 @@ 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-g3DWTus2.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(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
for (let a = 0; a < t.length; a += r)
|
|
25
|
-
o.push(t.slice(a, a + r));
|
|
26
|
-
return o;
|
|
27
|
-
}, _ = async (t) => {
|
|
28
|
-
if (!t) 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;
|
|
29
24
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
30
25
|
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
31
26
|
return;
|
|
32
27
|
}
|
|
33
|
-
const
|
|
34
|
-
if (B.innerSet = !0,
|
|
35
|
-
if (
|
|
36
|
-
window.open(
|
|
28
|
+
const t = f(o);
|
|
29
|
+
if (B.innerSet = !0, t.routeUrl) {
|
|
30
|
+
if (o.code === "Ioc") {
|
|
31
|
+
window.open(t.routeUrl, "_blank");
|
|
37
32
|
return;
|
|
38
33
|
}
|
|
39
|
-
if (
|
|
34
|
+
if (o.code === "wojiacloud") {
|
|
40
35
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
41
36
|
if (e) {
|
|
42
|
-
const [n,
|
|
43
|
-
if (
|
|
44
|
-
const
|
|
45
|
-
|
|
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}`;
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
44
|
}
|
|
50
|
-
const a = (
|
|
45
|
+
const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
|
|
51
46
|
if (a === 1) {
|
|
52
|
-
if (!await d(
|
|
53
|
-
const n = T().preTab[
|
|
54
|
-
g({ microApp:
|
|
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 } });
|
|
55
50
|
}
|
|
56
|
-
if (a === 2 &&
|
|
51
|
+
if (a === 2 && t.routeUrl) {
|
|
57
52
|
let e = "";
|
|
58
53
|
if (l === 1)
|
|
59
|
-
e =
|
|
54
|
+
e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
|
|
60
55
|
else if (l === 2) {
|
|
61
|
-
const n = await K(
|
|
56
|
+
const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
|
|
62
57
|
e = M(n);
|
|
63
58
|
}
|
|
64
59
|
window.open(e, "_blank");
|
|
65
60
|
}
|
|
66
61
|
};
|
|
67
|
-
return (
|
|
62
|
+
return (o, r) => v((C(), U(c(x), {
|
|
68
63
|
full: "",
|
|
69
64
|
spinning: c(q)
|
|
70
65
|
}, {
|
|
71
66
|
default: A(() => [
|
|
72
67
|
S(c($), {
|
|
73
|
-
theme:
|
|
68
|
+
theme: m.value,
|
|
74
69
|
appCategorys: w.value,
|
|
75
70
|
onOpenApp: _
|
|
76
71
|
}, null, 8, ["theme", "appCategorys"])
|
|
@@ -78,7 +73,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
78
73
|
_: 1
|
|
79
74
|
/* STABLE */
|
|
80
75
|
}, 8, ["spinning"])), [
|
|
81
|
-
[I, !
|
|
76
|
+
[I, !h.value]
|
|
82
77
|
]);
|
|
83
78
|
}
|
|
84
79
|
});
|
|
Binary file
|