@das-fed/web 7.1.0-dev.30 → 7.1.0-dev.31
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-BJDVxFOS.js +18215 -0
- package/index-BJDVxFOS.js.gz +0 -0
- package/{packages/main-app-framework/index-cz4bW5fK.js → index-C2e_Is65.js} +1 -1
- package/{packages/main-app-framework/index-D8jnUW9X.js → index-Dad2ayuK.js} +1 -1
- package/index-Dad2ayuK.js.gz +0 -0
- package/index.js +32 -7
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +58 -1
- package/packages/i18n/index.js +175 -1
- package/packages/layout/index.js +785 -2
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/index-BLOwaLgb.js +10 -0
- package/packages/main-app-framework/{index-Ej8LG4Wi.js → index-CuDzwEwX.js} +709 -709
- package/packages/main-app-framework/index-CuDzwEwX.js.gz +0 -0
- package/packages/main-app-framework/index-CwPhZ7VL.js +88 -0
- package/packages/main-app-framework/index-CwPhZ7VL.js.gz +0 -0
- package/packages/main-app-framework/index.js +7 -2
- package/packages/micro-frontend/index.js +848 -2
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/index.js +5 -3
- package/packages/theme/index.js +75 -2
- package/style.css +7 -0
- package/style.css.gz +0 -0
- package/packages/create-das-web-app/runtime.js +0 -58
- package/packages/i18n/runtime.js +0 -175
- package/packages/layout/runtime.js +0 -784
- package/packages/layout/runtime.js.gz +0 -0
- package/packages/main-app-framework/index-D8jnUW9X.js.gz +0 -0
- package/packages/main-app-framework/index-Ej8LG4Wi.js.gz +0 -0
- package/packages/main-app-framework/runtime.js +0 -6
- package/packages/micro-frontend/runtime.js +0 -847
- package/packages/micro-frontend/runtime.js.gz +0 -0
- package/packages/style/runtime.js +0 -4
- package/packages/theme/runtime.js +0 -75
- /package/packages/create-das-web-app/{runtime.js.gz → index.js.gz} +0 -0
- /package/packages/i18n/{runtime.js.gz → index.js.gz} +0 -0
- /package/packages/theme/{runtime.js.gz → index.js.gz} +0 -0
|
Binary file
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as v, computed as p, withDirectives as U, createBlock as C, openBlock as A, unref as c, withCtx as S, createVNode as I, vShow as j } from "vue";
|
|
2
|
+
import { layoutData as D } from "@das-fed/web/packages/layout/index";
|
|
3
|
+
import { t as $ } 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 b } from "@das-fed/utils/common-info";
|
|
7
|
+
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
|
+
import { createService as L } from "@das-fed/utils/create-api-service";
|
|
9
|
+
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-CuDzwEwX.js";
|
|
10
|
+
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
|
+
__name: "index",
|
|
12
|
+
setup(G) {
|
|
13
|
+
const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
|
|
14
|
+
if (!u.value || !u.value.length) return [];
|
|
15
|
+
const t = d(u.value);
|
|
16
|
+
return Array.isArray(t) ? t.length ? (t.forEach((r) => {
|
|
17
|
+
r.apps = _(
|
|
18
|
+
r.apps,
|
|
19
|
+
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
20
|
+
4
|
|
21
|
+
);
|
|
22
|
+
}), t) : [] : [];
|
|
23
|
+
}), _ = (t, r) => {
|
|
24
|
+
const i = [];
|
|
25
|
+
for (let e = 0; e < t.length; e += r)
|
|
26
|
+
i.push(t.slice(e, e + r));
|
|
27
|
+
return i;
|
|
28
|
+
}, k = async (t, r = !0) => {
|
|
29
|
+
if (!t) return;
|
|
30
|
+
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
|
+
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const e = d(t);
|
|
35
|
+
if (K.innerSet = r, e.routeUrl) {
|
|
36
|
+
if (t.code === "Ioc") {
|
|
37
|
+
window.open(e.routeUrl, "_blank");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (t.code === "wojiacloud") {
|
|
41
|
+
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
42
|
+
if (o) {
|
|
43
|
+
const [n, a] = await F().run({ accessToken: o });
|
|
44
|
+
if (a) {
|
|
45
|
+
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
46
|
+
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
|
|
52
|
+
if (l === 1) {
|
|
53
|
+
if (!await g(t)) return;
|
|
54
|
+
const n = b().preTab[t.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
55
|
+
m({ microApp: e, menuCode: a, route: { query: s } });
|
|
56
|
+
}
|
|
57
|
+
if (l === 2 && e.routeUrl) {
|
|
58
|
+
let o = "";
|
|
59
|
+
if (f === 1)
|
|
60
|
+
o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
|
|
61
|
+
else if (f === 2) {
|
|
62
|
+
const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
|
|
63
|
+
o = N(n);
|
|
64
|
+
}
|
|
65
|
+
window.open(o, "_blank");
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return (t, r) => U((A(), C(c(T), {
|
|
69
|
+
full: "",
|
|
70
|
+
spinning: c(B)
|
|
71
|
+
}, {
|
|
72
|
+
default: S(() => [
|
|
73
|
+
I(c(x), {
|
|
74
|
+
theme: h.value,
|
|
75
|
+
appCategorys: y.value,
|
|
76
|
+
onOpenApp: k
|
|
77
|
+
}, null, 8, ["theme", "appCategorys"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, 8, ["spinning"])), [
|
|
82
|
+
[j, !w.value]
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
ee as default
|
|
88
|
+
};
|
|
Binary file
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import '@das-fed/web/packages/main-app-framework/style.css'
|
|
2
|
-
|
|
1
|
+
import '@das-fed/web/packages/main-app-framework/style.css';
|
|
2
|
+
import "vue";
|
|
3
|
+
import { m as a } from "./index-CuDzwEwX.js";
|
|
4
|
+
import "@das-fed/web/packages/i18n/index";
|
|
5
|
+
export {
|
|
6
|
+
a as mainAppFramework
|
|
7
|
+
};
|