@das-fed/web 7.0.2-beta.3 → 7.0.2-beta.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/{index-Daq7bCIL.js → index-BpJ7eFCg.js} +2014 -2022
- package/index-BpJ7eFCg.js.gz +0 -0
- package/{index-C_grfTQZ.js → index-C-qAkI--.js} +1 -1
- package/{packages/main-app-framework/index-DNhkfPVq.js → index-CRYQ2SBN.js} +32 -33
- package/index-CRYQ2SBN.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-D4IiPdL0.js → index-BYf4ulrf.js} +1 -1
- package/{index-fgIF10qZ.js → packages/main-app-framework/index-CFltJXQt.js} +32 -33
- package/packages/main-app-framework/index-CFltJXQt.js.gz +0 -0
- package/packages/main-app-framework/{index-B33l8Tr8.js → index-DBBYpCdx.js} +1915 -1923
- package/packages/main-app-framework/index-DBBYpCdx.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-Daq7bCIL.js.gz +0 -0
- package/index-fgIF10qZ.js.gz +0 -0
- package/packages/main-app-framework/index-B33l8Tr8.js.gz +0 -0
- package/packages/main-app-framework/index-DNhkfPVq.js.gz +0 -0
|
Binary file
|
|
@@ -6,72 +6,71 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-BpJ7eFCg.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
13
|
-
const { beforeEntryApp: d, entryApp: g } = L(),
|
|
13
|
+
const { beforeEntryApp: d, entryApp: g } = L(), h = p(() => P.value.skinStyle), m = p(() => !!j.menu.items.length), w = p(() => {
|
|
14
14
|
if (!u.value || !u.value.length) return [];
|
|
15
|
-
const
|
|
16
|
-
return Array.isArray(
|
|
15
|
+
const t = f(u.value);
|
|
16
|
+
return Array.isArray(t) ? t.length ? (t.forEach((r) => {
|
|
17
17
|
r.apps = y(
|
|
18
|
-
r.apps,
|
|
19
|
-
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
18
|
+
r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
|
|
20
19
|
4
|
|
21
20
|
);
|
|
22
|
-
}),
|
|
23
|
-
}), y = (
|
|
24
|
-
const
|
|
25
|
-
for (let a = 0; a <
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
}, _ = async (
|
|
29
|
-
if (!
|
|
21
|
+
}), t) : [] : [];
|
|
22
|
+
}), y = (t, r) => {
|
|
23
|
+
const o = [];
|
|
24
|
+
for (let a = 0; a < t.length; a += r)
|
|
25
|
+
o.push(t.slice(a, a + r));
|
|
26
|
+
return o;
|
|
27
|
+
}, _ = async (t) => {
|
|
28
|
+
if (!t) return;
|
|
30
29
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
30
|
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
31
|
return;
|
|
33
32
|
}
|
|
34
|
-
const
|
|
35
|
-
if (B.innerSet = !0,
|
|
36
|
-
if (
|
|
37
|
-
window.open(
|
|
33
|
+
const o = f(t);
|
|
34
|
+
if (B.innerSet = !0, o.routeUrl) {
|
|
35
|
+
if (t.code === "Ioc") {
|
|
36
|
+
window.open(o.routeUrl, "_blank");
|
|
38
37
|
return;
|
|
39
38
|
}
|
|
40
|
-
if (
|
|
39
|
+
if (t.code === "wojiacloud") {
|
|
41
40
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
42
41
|
if (e) {
|
|
43
|
-
const [n,
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
|
|
42
|
+
const [n, s] = await V().run({ accessToken: e });
|
|
43
|
+
if (s) {
|
|
44
|
+
const i = (s == null ? void 0 : s.auth_code) ?? "";
|
|
45
|
+
o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
|
-
const a = (
|
|
50
|
+
const a = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
|
|
52
51
|
if (a === 1) {
|
|
53
|
-
if (!await d(
|
|
54
|
-
const n = T().preTab[
|
|
55
|
-
g({ microApp:
|
|
52
|
+
if (!await d(t)) return;
|
|
53
|
+
const n = T().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
54
|
+
g({ microApp: o, menuCode: s, route: { query: i } });
|
|
56
55
|
}
|
|
57
|
-
if (a === 2 &&
|
|
56
|
+
if (a === 2 && o.routeUrl) {
|
|
58
57
|
let e = "";
|
|
59
58
|
if (l === 1)
|
|
60
|
-
e =
|
|
59
|
+
e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = b(e);
|
|
61
60
|
else if (l === 2) {
|
|
62
|
-
const n = await K(
|
|
61
|
+
const n = await K(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
|
|
63
62
|
e = M(n);
|
|
64
63
|
}
|
|
65
64
|
window.open(e, "_blank");
|
|
66
65
|
}
|
|
67
66
|
};
|
|
68
|
-
return (
|
|
67
|
+
return (t, r) => v((C(), U(c(x), {
|
|
69
68
|
full: "",
|
|
70
69
|
spinning: c(q)
|
|
71
70
|
}, {
|
|
72
71
|
default: A(() => [
|
|
73
72
|
S(c($), {
|
|
74
|
-
theme:
|
|
73
|
+
theme: h.value,
|
|
75
74
|
appCategorys: w.value,
|
|
76
75
|
onOpenApp: _
|
|
77
76
|
}, null, 8, ["theme", "appCategorys"])
|
|
@@ -79,7 +78,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
79
78
|
_: 1
|
|
80
79
|
/* STABLE */
|
|
81
80
|
}, 8, ["spinning"])), [
|
|
82
|
-
[I, !
|
|
81
|
+
[I, !m.value]
|
|
83
82
|
]);
|
|
84
83
|
}
|
|
85
84
|
});
|
|
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-BpJ7eFCg.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.2-beta.
|
|
3
|
+
"version": "7.0.2-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.2-beta.
|
|
8
|
-
"@das-fed/utils": "7.0.2-beta.
|
|
9
|
-
"@das-fed/web": "7.0.2-beta.
|
|
10
|
-
"@das-fed/web-components": "7.0.2-beta.
|
|
7
|
+
"@das-fed/ui": "7.0.2-beta.4",
|
|
8
|
+
"@das-fed/utils": "7.0.2-beta.4",
|
|
9
|
+
"@das-fed/web": "7.0.2-beta.4",
|
|
10
|
+
"@das-fed/web-components": "7.0.2-beta.4",
|
|
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.2-beta.
|
|
22
|
+
"@das-fed/cli": "7.0.2-beta.4",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -6,72 +6,71 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-DBBYpCdx.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
13
|
-
const { beforeEntryApp: d, entryApp: g } = L(),
|
|
13
|
+
const { beforeEntryApp: d, entryApp: g } = L(), h = p(() => P.value.skinStyle), m = p(() => !!j.menu.items.length), w = p(() => {
|
|
14
14
|
if (!u.value || !u.value.length) return [];
|
|
15
|
-
const
|
|
16
|
-
return Array.isArray(
|
|
15
|
+
const t = f(u.value);
|
|
16
|
+
return Array.isArray(t) ? t.length ? (t.forEach((r) => {
|
|
17
17
|
r.apps = y(
|
|
18
|
-
r.apps,
|
|
19
|
-
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
18
|
+
r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
|
|
20
19
|
4
|
|
21
20
|
);
|
|
22
|
-
}),
|
|
23
|
-
}), y = (
|
|
24
|
-
const
|
|
25
|
-
for (let a = 0; a <
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
}, _ = async (
|
|
29
|
-
if (!
|
|
21
|
+
}), t) : [] : [];
|
|
22
|
+
}), y = (t, r) => {
|
|
23
|
+
const o = [];
|
|
24
|
+
for (let a = 0; a < t.length; a += r)
|
|
25
|
+
o.push(t.slice(a, a + r));
|
|
26
|
+
return o;
|
|
27
|
+
}, _ = async (t) => {
|
|
28
|
+
if (!t) return;
|
|
30
29
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
30
|
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
31
|
return;
|
|
33
32
|
}
|
|
34
|
-
const
|
|
35
|
-
if (B.innerSet = !0,
|
|
36
|
-
if (
|
|
37
|
-
window.open(
|
|
33
|
+
const o = f(t);
|
|
34
|
+
if (B.innerSet = !0, o.routeUrl) {
|
|
35
|
+
if (t.code === "Ioc") {
|
|
36
|
+
window.open(o.routeUrl, "_blank");
|
|
38
37
|
return;
|
|
39
38
|
}
|
|
40
|
-
if (
|
|
39
|
+
if (t.code === "wojiacloud") {
|
|
41
40
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
42
41
|
if (e) {
|
|
43
|
-
const [n,
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
|
|
42
|
+
const [n, s] = await V().run({ accessToken: e });
|
|
43
|
+
if (s) {
|
|
44
|
+
const i = (s == null ? void 0 : s.auth_code) ?? "";
|
|
45
|
+
o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
|
-
const a = (
|
|
50
|
+
const a = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
|
|
52
51
|
if (a === 1) {
|
|
53
|
-
if (!await d(
|
|
54
|
-
const n = T().preTab[
|
|
55
|
-
g({ microApp:
|
|
52
|
+
if (!await d(t)) return;
|
|
53
|
+
const n = T().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
54
|
+
g({ microApp: o, menuCode: s, route: { query: i } });
|
|
56
55
|
}
|
|
57
|
-
if (a === 2 &&
|
|
56
|
+
if (a === 2 && o.routeUrl) {
|
|
58
57
|
let e = "";
|
|
59
58
|
if (l === 1)
|
|
60
|
-
e =
|
|
59
|
+
e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = b(e);
|
|
61
60
|
else if (l === 2) {
|
|
62
|
-
const n = await K(
|
|
61
|
+
const n = await K(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
|
|
63
62
|
e = M(n);
|
|
64
63
|
}
|
|
65
64
|
window.open(e, "_blank");
|
|
66
65
|
}
|
|
67
66
|
};
|
|
68
|
-
return (
|
|
67
|
+
return (t, r) => v((C(), U(c(x), {
|
|
69
68
|
full: "",
|
|
70
69
|
spinning: c(q)
|
|
71
70
|
}, {
|
|
72
71
|
default: A(() => [
|
|
73
72
|
S(c($), {
|
|
74
|
-
theme:
|
|
73
|
+
theme: h.value,
|
|
75
74
|
appCategorys: w.value,
|
|
76
75
|
onOpenApp: _
|
|
77
76
|
}, null, 8, ["theme", "appCategorys"])
|
|
@@ -79,7 +78,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
79
78
|
_: 1
|
|
80
79
|
/* STABLE */
|
|
81
80
|
}, 8, ["spinning"])), [
|
|
82
|
-
[I, !
|
|
81
|
+
[I, !m.value]
|
|
83
82
|
]);
|
|
84
83
|
}
|
|
85
84
|
});
|
|
Binary file
|