@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.4
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/index--5iw3PcC.js +7970 -0
- package/index--5iw3PcC.js.gz +0 -0
- package/{packages/main-app-framework/index-Twj2RXRy.js → index-BSYJheVx.js} +1 -1
- package/index-BSYJheVx.js.gz +0 -0
- package/{index-DpLK467K.js → index-C5zNxpQk.js} +22 -22
- package/index-C5zNxpQk.js.gz +0 -0
- package/{packages/main-app-framework/index-CRT8yHn-.js → index-D8XgnluX.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +187 -192
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +219 -224
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/{index-CC5hN73H.js → packages/main-app-framework/index-BkJc1lDT.js} +1 -1
- package/packages/main-app-framework/{index-BqkWKMMe.js → index-C_X3k7z0.js} +22 -22
- package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
- package/packages/main-app-framework/index-D7pfTqeW.js +5917 -0
- package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
- package/{index-D4LFa1We.js → packages/main-app-framework/index-MhsbUVtD.js} +1 -1
- package/packages/main-app-framework/index-MhsbUVtD.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 +209 -209
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/theme/index.js +24 -24
- package/packages/theme/index.js.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/index.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/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/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.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.gz +0 -0
- package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
|
Binary file
|
|
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as
|
|
|
2
2
|
import { useRoute as P } from "vue-router";
|
|
3
3
|
import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
|
|
4
4
|
import { layout as C } from "@das-fed/web/packages/layout/index";
|
|
5
|
-
import { I as R, e as L, _ as M } from "./index
|
|
5
|
+
import { I as R, e as L, _ as M } from "./index--5iw3PcC.js";
|
|
6
6
|
import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
|
|
7
7
|
import { getUrlParams as E } from "@das-fed/utils/common-tools";
|
|
8
8
|
const N = {
|
|
Binary file
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as w, computed as
|
|
2
|
-
import { DasAppContainer as
|
|
3
|
-
import { DasSpin as
|
|
1
|
+
import { defineComponent as w, computed as y, openBlock as _, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
|
|
2
|
+
import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
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 { createService as j } from "@das-fed/utils/api-
|
|
6
|
-
import { u as S, a as c, l, b as
|
|
7
|
-
const
|
|
5
|
+
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
6
|
+
import { u as S, a as c, c as l, b as $, l as x, d as L } from "./index--5iw3PcC.js";
|
|
7
|
+
const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { beforeEntryApp: f, entryApp: d } = S(), g =
|
|
9
|
+
setup(E) {
|
|
10
|
+
const { beforeEntryApp: f, entryApp: d } = S(), g = y(() => {
|
|
11
11
|
if (!c.value || !c.value.length) return [];
|
|
12
|
-
const o = l
|
|
13
|
-
return o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [];
|
|
12
|
+
const o = l(c.value);
|
|
13
|
+
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
14
14
|
}), h = (o, n) => {
|
|
15
15
|
const e = [];
|
|
16
16
|
for (let r = 0; r < o.length; r += n)
|
|
@@ -22,8 +22,8 @@ const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/
|
|
|
22
22
|
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
const e = l
|
|
26
|
-
if (
|
|
25
|
+
const e = l(o);
|
|
26
|
+
if (x.innerSet = !0, e.routeUrl) {
|
|
27
27
|
if (o.code === "Ioc") {
|
|
28
28
|
window.open(e.routeUrl, "_blank");
|
|
29
29
|
return;
|
|
@@ -31,10 +31,10 @@ const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/
|
|
|
31
31
|
if (o.code === "wojiacloud") {
|
|
32
32
|
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
33
33
|
if (t) {
|
|
34
|
-
const [a,
|
|
35
|
-
if (
|
|
36
|
-
const
|
|
37
|
-
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${
|
|
34
|
+
const [a, i] = await D().run({ accessToken: t });
|
|
35
|
+
if (i) {
|
|
36
|
+
const s = (i == null ? void 0 : i.auth_code) ?? "";
|
|
37
|
+
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -42,20 +42,20 @@ const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/
|
|
|
42
42
|
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
43
43
|
if (r === 1) {
|
|
44
44
|
if (!await f(o)) return;
|
|
45
|
-
const a = I().preTab[o.code],
|
|
46
|
-
d({ microApp: e, menuCode:
|
|
45
|
+
const a = I().preTab[o.code], i = (a == null ? void 0 : a.code) ?? "", s = { ...(a == null ? void 0 : a.query) ?? {} };
|
|
46
|
+
d({ microApp: e, menuCode: i, route: { query: s } });
|
|
47
47
|
}
|
|
48
48
|
if (r === 2 && e.routeUrl) {
|
|
49
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 =
|
|
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 = L(e.routeUrl)), window.open(t, "_blank");
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
return (o, n) => (
|
|
53
|
+
return (o, n) => (_(), k(p(v), {
|
|
54
54
|
full: "",
|
|
55
|
-
spinning: p(
|
|
55
|
+
spinning: p($)
|
|
56
56
|
}, {
|
|
57
57
|
default: U(() => [
|
|
58
|
-
|
|
58
|
+
A(p(C), {
|
|
59
59
|
appCategorys: g.value,
|
|
60
60
|
onOpenApp: m
|
|
61
61
|
}, null, 8, ["appCategorys"])
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index
|
|
1
|
+
import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index--5iw3PcC.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/ui": "6.4.0-dev.4",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.4",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.4",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.4",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"vue-router": "^4.4.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@das-fed/cli": "6.4.0-dev.
|
|
21
|
+
"@das-fed/cli": "6.4.0-dev.4",
|
|
22
22
|
"@types/lodash": "^4.14.194",
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
|
24
24
|
"@vitejs/plugin-vue": "^5.1.0",
|