@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.21
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 +1 -2
- package/{packages/main-app-framework/index-CRT8yHn-.js → index-C9Z5Et6m.js} +1 -1
- package/index-CtOlfmIU.js +7088 -0
- package/index-CtOlfmIU.js.gz +0 -0
- package/{packages/main-app-framework/index-Twj2RXRy.js → index-D6BMoZho.js} +14 -14
- package/index-D6BMoZho.js.gz +0 -0
- package/index-DNqfV3E9.js +71 -0
- package/index-DNqfV3E9.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/config.js +1 -0
- package/packages/create-das-web-app/index.js +48 -807
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/config.js +1 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/config.js +1 -0
- package/packages/layout/index.js +298 -291
- 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/config.js +1 -0
- package/{index-CC5hN73H.js → packages/main-app-framework/index-CGRKqP1O.js} +1 -1
- package/packages/main-app-framework/index-IzpOTZ0u.js +5779 -0
- package/packages/main-app-framework/index-IzpOTZ0u.js.gz +0 -0
- package/packages/main-app-framework/index-fj8M6ijq.js +71 -0
- package/packages/main-app-framework/index-fj8M6ijq.js.gz +0 -0
- package/{index-D4LFa1We.js → packages/main-app-framework/index-t4FWMW__.js} +14 -14
- package/packages/main-app-framework/index-t4FWMW__.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/config.js +1 -0
- package/packages/micro-frontend/index.js +253 -243
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/config.js +1 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/config.js +1 -0
- package/packages/theme/index.js +24 -24
- package/packages/theme/index.js.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- 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/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/micro-frontend/index.d.ts +1 -1
- package/index-BqgahaIi.js +0 -11086
- package/index-BqgahaIi.js.gz +0 -0
- package/index-D4LFa1We.js.gz +0 -0
- package/index-DpLK467K.js +0 -70
- package/index-DpLK467K.js.gz +0 -0
- package/packages/main-app-framework/index-2WWk8ggi.js +0 -9022
- package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
- package/packages/main-app-framework/index-BqkWKMMe.js +0 -70
- package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
- package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
|
Binary file
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, computed as _, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as C } from "vue";
|
|
2
|
-
import { DasAppContainer as v } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
|
-
import { DasSpin as A } from "@das-fed/ui/packages/components/spin/index";
|
|
4
|
-
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
-
import { createService as j } from "@das-fed/utils/api-services";
|
|
6
|
-
import { u as S, a as c, l, b as x, c as $, d as D } from "./index-2WWk8ggi.js";
|
|
7
|
-
const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
|
|
8
|
-
__name: "index",
|
|
9
|
-
setup(b) {
|
|
10
|
-
const { beforeEntryApp: f, entryApp: d } = S(), g = _(() => {
|
|
11
|
-
if (!c.value || !c.value.length) return [];
|
|
12
|
-
const o = l.cloneDeep(c.value);
|
|
13
|
-
return o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [];
|
|
14
|
-
}), h = (o, n) => {
|
|
15
|
-
const e = [];
|
|
16
|
-
for (let r = 0; r < o.length; r += n)
|
|
17
|
-
e.push(o.slice(r, r + n));
|
|
18
|
-
return e;
|
|
19
|
-
}, m = async (o) => {
|
|
20
|
-
if (!o) return;
|
|
21
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
22
|
-
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const e = l.cloneDeep(o);
|
|
26
|
-
if ($.innerSet = !0, e.routeUrl) {
|
|
27
|
-
if (o.code === "Ioc") {
|
|
28
|
-
window.open(e.routeUrl, "_blank");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (o.code === "wojiacloud") {
|
|
32
|
-
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
33
|
-
if (t) {
|
|
34
|
-
const [a, s] = await T().run({ accessToken: t });
|
|
35
|
-
if (s) {
|
|
36
|
-
const i = (s == null ? void 0 : s.auth_code) ?? "";
|
|
37
|
-
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${i}` : `${e.routeUrl}?code=${i}`;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
43
|
-
if (r === 1) {
|
|
44
|
-
if (!await f(o)) return;
|
|
45
|
-
const a = I().preTab[o.code], s = (a == null ? void 0 : a.code) ?? "", i = { ...(a == null ? void 0 : a.query) ?? {} };
|
|
46
|
-
d({ microApp: e, menuCode: s, route: { query: i } });
|
|
47
|
-
}
|
|
48
|
-
if (r === 2 && e.routeUrl) {
|
|
49
|
-
let t = "";
|
|
50
|
-
u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = D(e.routeUrl)), window.open(t, "_blank");
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
return (o, n) => (y(), k(p(A), {
|
|
54
|
-
full: "",
|
|
55
|
-
spinning: p(x)
|
|
56
|
-
}, {
|
|
57
|
-
default: U(() => [
|
|
58
|
-
C(p(v), {
|
|
59
|
-
appCategorys: g.value,
|
|
60
|
-
onOpenApp: m
|
|
61
|
-
}, null, 8, ["appCategorys"])
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
/* STABLE */
|
|
65
|
-
}, 8, ["spinning"]));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
V as default
|
|
70
|
-
};
|
|
Binary file
|
|
Binary file
|