@das-fed/web 7.0.5-beta.5 → 7.0.5-beta.7
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-DR3uBgpB.js → index-3qGmnX0K.js} +586 -582
- package/{index-DR3uBgpB.js.gz → index-3qGmnX0K.js.gz} +0 -0
- package/{index-CS4TDwjK.js → index-Cg1zDISe.js} +23 -23
- package/index-Cg1zDISe.js.gz +0 -0
- package/{packages/main-app-framework/index-BVb7FYr2.js → index-VFHeVlbQ.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-B-D3C-lz.js → index-9Btqmzxh.js} +23 -23
- package/packages/main-app-framework/index-9Btqmzxh.js.gz +0 -0
- package/packages/main-app-framework/{index-C--bYRFd.js → index-BTkL8vcq.js} +1002 -998
- package/packages/main-app-framework/{index-C--bYRFd.js.gz → index-BTkL8vcq.js.gz} +0 -0
- package/{index-CuLFp80h.js → packages/main-app-framework/index-DjY3P4GQ.js} +1 -1
- 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.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-CS4TDwjK.js.gz +0 -0
- package/packages/main-app-framework/index-B-D3C-lz.js.gz +0 -0
|
Binary file
|
|
@@ -6,8 +6,8 @@ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
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-
|
|
10
|
-
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"),
|
|
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-3qGmnX0K.js";
|
|
10
|
+
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(G) {
|
|
13
13
|
const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
|
|
@@ -21,29 +21,29 @@ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/
|
|
|
21
21
|
);
|
|
22
22
|
}), t) : [] : [];
|
|
23
23
|
}), _ = (t, r) => {
|
|
24
|
-
const
|
|
25
|
-
for (let
|
|
26
|
-
|
|
27
|
-
return
|
|
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
28
|
}, k = async (t, r = !0) => {
|
|
29
29
|
if (!t) return;
|
|
30
30
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
31
|
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
if (K.innerSet = r,
|
|
34
|
+
const e = d(t);
|
|
35
|
+
if (K.innerSet = r, e.routeUrl) {
|
|
36
36
|
if (t.code === "Ioc") {
|
|
37
|
-
window.open(
|
|
37
|
+
window.open(e.routeUrl, "_blank");
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
if (t.code === "wojiacloud") {
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const [n, a] = await F().run({ accessToken:
|
|
41
|
+
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
42
|
+
if (o) {
|
|
43
|
+
const [n, a] = await F().run({ accessToken: o });
|
|
44
44
|
if (a) {
|
|
45
|
-
const
|
|
46
|
-
|
|
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
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -51,18 +51,18 @@ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/
|
|
|
51
51
|
const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
|
|
52
52
|
if (l === 1) {
|
|
53
53
|
if (!await g(t)) return;
|
|
54
|
-
const n = b().preTab[t.code], a = (n == null ? void 0 : n.code) ?? "",
|
|
55
|
-
m({ microApp:
|
|
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
56
|
}
|
|
57
|
-
if (l === 2 &&
|
|
58
|
-
let
|
|
57
|
+
if (l === 2 && e.routeUrl) {
|
|
58
|
+
let o = "";
|
|
59
59
|
if (f === 1)
|
|
60
|
-
|
|
60
|
+
o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
|
|
61
61
|
else if (f === 2) {
|
|
62
|
-
const n = await M(
|
|
63
|
-
|
|
62
|
+
const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
|
|
63
|
+
o = N(n);
|
|
64
64
|
}
|
|
65
|
-
window.open(
|
|
65
|
+
window.open(o, "_blank");
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
return (t, r) => U((A(), C(c(T), {
|
|
@@ -84,5 +84,5 @@ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
ee as default
|
|
88
88
|
};
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-
|
|
1
|
+
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-3qGmnX0K.js";
|
|
2
2
|
export {
|
|
3
3
|
e 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": "7.0.5-beta.
|
|
3
|
+
"version": "7.0.5-beta.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.5-beta.
|
|
8
|
-
"@das-fed/utils": "7.0.5-beta.
|
|
9
|
-
"@das-fed/web": "7.0.5-beta.
|
|
10
|
-
"@das-fed/web-components": "7.0.5-beta.
|
|
7
|
+
"@das-fed/ui": "7.0.5-beta.7",
|
|
8
|
+
"@das-fed/utils": "7.0.5-beta.7",
|
|
9
|
+
"@das-fed/web": "7.0.5-beta.7",
|
|
10
|
+
"@das-fed/web-components": "7.0.5-beta.7",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/cli": "7.0.5-beta.
|
|
22
|
+
"@das-fed/cli": "7.0.5-beta.7",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
Binary file
|
|
@@ -6,8 +6,8 @@ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
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-
|
|
10
|
-
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"),
|
|
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-BTkL8vcq.js";
|
|
10
|
+
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(G) {
|
|
13
13
|
const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
|
|
@@ -21,29 +21,29 @@ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/
|
|
|
21
21
|
);
|
|
22
22
|
}), t) : [] : [];
|
|
23
23
|
}), _ = (t, r) => {
|
|
24
|
-
const
|
|
25
|
-
for (let
|
|
26
|
-
|
|
27
|
-
return
|
|
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
28
|
}, k = async (t, r = !0) => {
|
|
29
29
|
if (!t) return;
|
|
30
30
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
31
|
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
if (K.innerSet = r,
|
|
34
|
+
const e = d(t);
|
|
35
|
+
if (K.innerSet = r, e.routeUrl) {
|
|
36
36
|
if (t.code === "Ioc") {
|
|
37
|
-
window.open(
|
|
37
|
+
window.open(e.routeUrl, "_blank");
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
if (t.code === "wojiacloud") {
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const [n, a] = await F().run({ accessToken:
|
|
41
|
+
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
42
|
+
if (o) {
|
|
43
|
+
const [n, a] = await F().run({ accessToken: o });
|
|
44
44
|
if (a) {
|
|
45
|
-
const
|
|
46
|
-
|
|
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
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -51,18 +51,18 @@ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/
|
|
|
51
51
|
const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
|
|
52
52
|
if (l === 1) {
|
|
53
53
|
if (!await g(t)) return;
|
|
54
|
-
const n = b().preTab[t.code], a = (n == null ? void 0 : n.code) ?? "",
|
|
55
|
-
m({ microApp:
|
|
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
56
|
}
|
|
57
|
-
if (l === 2 &&
|
|
58
|
-
let
|
|
57
|
+
if (l === 2 && e.routeUrl) {
|
|
58
|
+
let o = "";
|
|
59
59
|
if (f === 1)
|
|
60
|
-
|
|
60
|
+
o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
|
|
61
61
|
else if (f === 2) {
|
|
62
|
-
const n = await M(
|
|
63
|
-
|
|
62
|
+
const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
|
|
63
|
+
o = N(n);
|
|
64
64
|
}
|
|
65
|
-
window.open(
|
|
65
|
+
window.open(o, "_blank");
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
return (t, r) => U((A(), C(c(T), {
|
|
@@ -84,5 +84,5 @@ const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
ee as default
|
|
88
88
|
};
|
|
Binary file
|