@das-fed/web 6.4.0-dev.9 → 6.4.0-hot.10
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-kp3YC2yr.js → index-5rGrbfK6.js} +16 -15
- package/index-5rGrbfK6.js.gz +0 -0
- package/index-BJwswWWS.js +7087 -0
- package/index-BJwswWWS.js.gz +0 -0
- package/{index-1rgcqPwr.js → index-BP7cXQkh.js} +1 -1
- package/index-BP7cXQkh.js.gz +0 -0
- package/{index-FqrjMxhu.js → index-C2wK2jqP.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +48 -802
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +193 -189
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-CaRxqPOy.js → index-BH85rnJz.js} +1 -1
- package/packages/main-app-framework/index-BH85rnJz.js.gz +0 -0
- package/packages/main-app-framework/{index-CeWtWuF1.js → index-WKjtmtwT.js} +1 -1
- package/packages/main-app-framework/{index-BgnG17a9.js → index-mG0hF64W.js} +2334 -2589
- package/packages/main-app-framework/index-mG0hF64W.js.gz +0 -0
- package/packages/main-app-framework/{index-Bb93MzFY.js → index-yzyUhkgm.js} +16 -15
- package/packages/main-app-framework/index-yzyUhkgm.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 +49 -47
- 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 +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/api.d.ts +2 -0
- 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/index.d.ts +1 -1
- 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-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 +4 -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/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-1rgcqPwr.js.gz +0 -0
- package/index-Dj08Rzpl.js +0 -8094
- package/index-Dj08Rzpl.js.gz +0 -0
- package/index-kp3YC2yr.js.gz +0 -0
- package/packages/main-app-framework/index-Bb93MzFY.js.gz +0 -0
- package/packages/main-app-framework/index-BgnG17a9.js.gz +0 -0
- package/packages/main-app-framework/index-CaRxqPOy.js.gz +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
|
|
2
2
|
import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
3
|
import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
|
|
4
4
|
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
+
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
5
6
|
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
7
|
+
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-BJwswWWS.js";
|
|
8
|
+
const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
|
|
8
9
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { beforeEntryApp: f, entryApp: d } =
|
|
10
|
+
setup(q) {
|
|
11
|
+
const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
|
|
11
12
|
if (!c.value || !c.value.length) return [];
|
|
12
13
|
const o = l(c.value);
|
|
13
14
|
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
@@ -23,7 +24,7 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
26
|
const e = l(o);
|
|
26
|
-
if (
|
|
27
|
+
if (T.innerSet = !0, e.routeUrl) {
|
|
27
28
|
if (o.code === "Ioc") {
|
|
28
29
|
window.open(e.routeUrl, "_blank");
|
|
29
30
|
return;
|
|
@@ -31,9 +32,9 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
31
32
|
if (o.code === "wojiacloud") {
|
|
32
33
|
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
33
34
|
if (t) {
|
|
34
|
-
const [
|
|
35
|
-
if (
|
|
36
|
-
const s = (
|
|
35
|
+
const [i, a] = await L().run({ accessToken: t });
|
|
36
|
+
if (a) {
|
|
37
|
+
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
37
38
|
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -42,17 +43,17 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
42
43
|
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
43
44
|
if (r === 1) {
|
|
44
45
|
if (!await f(o)) return;
|
|
45
|
-
const
|
|
46
|
-
d({ microApp: e, menuCode:
|
|
46
|
+
const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
47
|
+
d({ microApp: e, menuCode: a, route: { query: s } });
|
|
47
48
|
}
|
|
48
49
|
if (r === 2 && e.routeUrl) {
|
|
49
50
|
let t = "";
|
|
50
|
-
u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl
|
|
51
|
+
u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
|
-
return (o, n) => (
|
|
54
|
+
return (o, n) => (y(), k(p(v), {
|
|
54
55
|
full: "",
|
|
55
|
-
spinning: p(
|
|
56
|
+
spinning: p(x)
|
|
56
57
|
}, {
|
|
57
58
|
default: U(() => [
|
|
58
59
|
A(p(C), {
|
|
@@ -66,5 +67,5 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
G as default
|
|
70
71
|
};
|
|
Binary file
|