@das-fed/web 7.0.7-hot.63 → 7.0.7-hot.64
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-BRlMry2u.js +88 -0
- package/index-BRlMry2u.js.gz +0 -0
- package/{packages/main-app-framework/index-ZolKtM3A.js → index-Bck_W-ja.js} +1 -1
- package/{index-D93kLWqd.js → index-DdX5PRle.js} +3 -3
- package/{index-D93kLWqd.js.gz → index-DdX5PRle.js.gz} +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-DAVd4iqi.js → index-CNkcQ0E0.js} +3 -3
- package/packages/main-app-framework/{index-DAVd4iqi.js.gz → index-CNkcQ0E0.js.gz} +0 -0
- package/packages/main-app-framework/index-DWPt0alI.js +88 -0
- package/packages/main-app-framework/index-DWPt0alI.js.gz +0 -0
- package/{index-CzZ020Ok.js → packages/main-app-framework/index-z6QGVFtH.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/index-BWYlYWRB.js +0 -100
- package/index-BWYlYWRB.js.gz +0 -0
- package/packages/main-app-framework/index-C__ifiZ_.js +0 -100
- package/packages/main-app-framework/index-C__ifiZ_.js.gz +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as v, computed as p, withDirectives as U, createBlock as C, openBlock as A, unref as c, withCtx as S, createVNode as I, vShow as j } from "vue";
|
|
2
|
+
import { layoutData as D } from "@das-fed/web/packages/layout/index";
|
|
3
|
+
import { t as $ } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
5
|
+
import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
6
|
+
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
|
+
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
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-DdX5PRle.js";
|
|
10
|
+
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
|
+
__name: "index",
|
|
12
|
+
setup(G) {
|
|
13
|
+
const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
|
|
14
|
+
if (!u.value || !u.value.length) return [];
|
|
15
|
+
const t = d(u.value);
|
|
16
|
+
return Array.isArray(t) ? t.length ? (t.forEach((r) => {
|
|
17
|
+
r.apps = _(
|
|
18
|
+
r.apps,
|
|
19
|
+
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
20
|
+
4
|
|
21
|
+
);
|
|
22
|
+
}), t) : [] : [];
|
|
23
|
+
}), _ = (t, r) => {
|
|
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
|
+
}, k = async (t, r = !0) => {
|
|
29
|
+
if (!t) return;
|
|
30
|
+
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
|
+
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const e = d(t);
|
|
35
|
+
if (K.innerSet = r, e.routeUrl) {
|
|
36
|
+
if (t.code === "Ioc") {
|
|
37
|
+
window.open(e.routeUrl, "_blank");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (t.code === "wojiacloud") {
|
|
41
|
+
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
42
|
+
if (o) {
|
|
43
|
+
const [n, a] = await F().run({ accessToken: o });
|
|
44
|
+
if (a) {
|
|
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
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
|
|
52
|
+
if (l === 1) {
|
|
53
|
+
if (!await g(t)) return;
|
|
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
|
+
}
|
|
57
|
+
if (l === 2 && e.routeUrl) {
|
|
58
|
+
let o = "";
|
|
59
|
+
if (f === 1)
|
|
60
|
+
o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
|
|
61
|
+
else if (f === 2) {
|
|
62
|
+
const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
|
|
63
|
+
o = N(n);
|
|
64
|
+
}
|
|
65
|
+
window.open(o, "_blank");
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return (t, r) => U((A(), C(c(T), {
|
|
69
|
+
full: "",
|
|
70
|
+
spinning: c(B)
|
|
71
|
+
}, {
|
|
72
|
+
default: S(() => [
|
|
73
|
+
I(c(x), {
|
|
74
|
+
theme: h.value,
|
|
75
|
+
appCategorys: y.value,
|
|
76
|
+
onOpenApp: k
|
|
77
|
+
}, null, 8, ["theme", "appCategorys"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, 8, ["spinning"])), [
|
|
82
|
+
[j, !w.value]
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
ee as default
|
|
88
|
+
};
|
|
Binary file
|
|
@@ -14137,7 +14137,7 @@ const zV = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
14137
14137
|
var i;
|
|
14138
14138
|
const O = a.query.loginType || "";
|
|
14139
14139
|
if (O && localStorage.setItem("loginType", O), !(a.path === c && ft(a.query, d))) {
|
|
14140
|
-
if (c = H3(a.path), d = H3(a.query), d && ((i = d.source) != null && i.trim()) && d.source.trim() !== "undefined" && d.source.trim() !== "null" && localStorage.setItem("thirdLogouSource", d.source), await v(), q9.innerSet) {
|
|
14140
|
+
if (c = H3(a.path), d = H3(a.query), d && d.source && ((i = d.source) != null && i.trim()) && d.source.trim() !== "undefined" && d.source.trim() !== "null" && localStorage.setItem("thirdLogouSource", d.source), await v(), q9.innerSet) {
|
|
14141
14141
|
q9.innerSet = !1;
|
|
14142
14142
|
return;
|
|
14143
14143
|
}
|
|
@@ -18226,7 +18226,7 @@ g("@das-fed/web");
|
|
|
18226
18226
|
const JN = [
|
|
18227
18227
|
{
|
|
18228
18228
|
path: ef,
|
|
18229
|
-
component: () => import("./index-
|
|
18229
|
+
component: () => import("./index-BRlMry2u.js"),
|
|
18230
18230
|
meta: {
|
|
18231
18231
|
layout: {
|
|
18232
18232
|
minWidth: "0px"
|
|
@@ -18235,7 +18235,7 @@ const JN = [
|
|
|
18235
18235
|
},
|
|
18236
18236
|
{
|
|
18237
18237
|
path: cd,
|
|
18238
|
-
component: () => import("./index-
|
|
18238
|
+
component: () => import("./index-Bck_W-ja.js")
|
|
18239
18239
|
}
|
|
18240
18240
|
], qT = {
|
|
18241
18241
|
routes: JN,
|
|
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-DdX5PRle.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.7-hot.
|
|
3
|
+
"version": "7.0.7-hot.64",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.7-hot.
|
|
8
|
-
"@das-fed/utils": "7.0.7-hot.
|
|
9
|
-
"@das-fed/web": "7.0.7-hot.
|
|
10
|
-
"@das-fed/web-components": "7.0.7-hot.
|
|
7
|
+
"@das-fed/ui": "7.0.7-hot.64",
|
|
8
|
+
"@das-fed/utils": "7.0.7-hot.64",
|
|
9
|
+
"@das-fed/web": "7.0.7-hot.64",
|
|
10
|
+
"@das-fed/web-components": "7.0.7-hot.64",
|
|
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.7-hot.
|
|
22
|
+
"@das-fed/cli": "7.0.7-hot.64",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -12673,7 +12673,7 @@ const vE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, gE = n
|
|
|
12673
12673
|
var v;
|
|
12674
12674
|
const w = d.query.loginType || "";
|
|
12675
12675
|
if (w && localStorage.setItem("loginType", w), !(d.path === h && w0(d.query, s))) {
|
|
12676
|
-
if (h = ro(d.path), s = ro(d.query), s && ((v = s.source) != null && v.trim()) && s.source.trim() !== "undefined" && s.source.trim() !== "null" && localStorage.setItem("thirdLogouSource", s.source), await r(), ft.innerSet) {
|
|
12676
|
+
if (h = ro(d.path), s = ro(d.query), s && s.source && ((v = s.source) != null && v.trim()) && s.source.trim() !== "undefined" && s.source.trim() !== "null" && localStorage.setItem("thirdLogouSource", s.source), await r(), ft.innerSet) {
|
|
12677
12677
|
ft.innerSet = !1;
|
|
12678
12678
|
return;
|
|
12679
12679
|
}
|
|
@@ -16762,7 +16762,7 @@ W("@das-fed/web");
|
|
|
16762
16762
|
const VS = [
|
|
16763
16763
|
{
|
|
16764
16764
|
path: Vt,
|
|
16765
|
-
component: () => import("./index-
|
|
16765
|
+
component: () => import("./index-DWPt0alI.js"),
|
|
16766
16766
|
meta: {
|
|
16767
16767
|
layout: {
|
|
16768
16768
|
minWidth: "0px"
|
|
@@ -16771,7 +16771,7 @@ const VS = [
|
|
|
16771
16771
|
},
|
|
16772
16772
|
{
|
|
16773
16773
|
path: Cd,
|
|
16774
|
-
component: () => import("./index-
|
|
16774
|
+
component: () => import("./index-z6QGVFtH.js")
|
|
16775
16775
|
}
|
|
16776
16776
|
], J5 = {
|
|
16777
16777
|
routes: VS,
|
|
Binary file
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as v, computed as p, withDirectives as U, createBlock as C, openBlock as A, unref as c, withCtx as S, createVNode as I, vShow as j } from "vue";
|
|
2
|
+
import { layoutData as D } from "@das-fed/web/packages/layout/index";
|
|
3
|
+
import { t as $ } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
5
|
+
import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
6
|
+
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
|
+
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
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-CNkcQ0E0.js";
|
|
10
|
+
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
|
+
__name: "index",
|
|
12
|
+
setup(G) {
|
|
13
|
+
const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
|
|
14
|
+
if (!u.value || !u.value.length) return [];
|
|
15
|
+
const t = d(u.value);
|
|
16
|
+
return Array.isArray(t) ? t.length ? (t.forEach((r) => {
|
|
17
|
+
r.apps = _(
|
|
18
|
+
r.apps,
|
|
19
|
+
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
20
|
+
4
|
|
21
|
+
);
|
|
22
|
+
}), t) : [] : [];
|
|
23
|
+
}), _ = (t, r) => {
|
|
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
|
+
}, k = async (t, r = !0) => {
|
|
29
|
+
if (!t) return;
|
|
30
|
+
if (!sessionStorage.getItem("projectInfo")) {
|
|
31
|
+
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const e = d(t);
|
|
35
|
+
if (K.innerSet = r, e.routeUrl) {
|
|
36
|
+
if (t.code === "Ioc") {
|
|
37
|
+
window.open(e.routeUrl, "_blank");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (t.code === "wojiacloud") {
|
|
41
|
+
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
42
|
+
if (o) {
|
|
43
|
+
const [n, a] = await F().run({ accessToken: o });
|
|
44
|
+
if (a) {
|
|
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
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
|
|
52
|
+
if (l === 1) {
|
|
53
|
+
if (!await g(t)) return;
|
|
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
|
+
}
|
|
57
|
+
if (l === 2 && e.routeUrl) {
|
|
58
|
+
let o = "";
|
|
59
|
+
if (f === 1)
|
|
60
|
+
o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
|
|
61
|
+
else if (f === 2) {
|
|
62
|
+
const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
|
|
63
|
+
o = N(n);
|
|
64
|
+
}
|
|
65
|
+
window.open(o, "_blank");
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return (t, r) => U((A(), C(c(T), {
|
|
69
|
+
full: "",
|
|
70
|
+
spinning: c(B)
|
|
71
|
+
}, {
|
|
72
|
+
default: S(() => [
|
|
73
|
+
I(c(x), {
|
|
74
|
+
theme: h.value,
|
|
75
|
+
appCategorys: y.value,
|
|
76
|
+
onOpenApp: k
|
|
77
|
+
}, null, 8, ["theme", "appCategorys"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, 8, ["spinning"])), [
|
|
82
|
+
[j, !w.value]
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
ee as default
|
|
88
|
+
};
|
|
Binary file
|
package/index-BWYlYWRB.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as b, createVNode as d, unref as c, withCtx as D, vShow as E } from "vue";
|
|
2
|
-
import { layoutData as P } from "@das-fed/web/packages/layout/index";
|
|
3
|
-
import { t as $ } from "@das-fed/web/packages/i18n/index";
|
|
4
|
-
import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
5
|
-
import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
6
|
-
import { getTabInfo as L } from "@das-fed/utils/common-info";
|
|
7
|
-
import { setShowLayout as q } from "@das-fed/utils/common-tools";
|
|
8
|
-
import { createService as B } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-D93kLWqd.js";
|
|
10
|
-
const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), ne = /* @__PURE__ */ C({
|
|
11
|
-
__name: "index",
|
|
12
|
-
setup(J) {
|
|
13
|
-
const { beforeEntryApp: g, entryApp: h } = N(), w = () => {
|
|
14
|
-
const e = sessionStorage.getItem("iwmStationReservePath") || "/";
|
|
15
|
-
window.__isAutoCloseApp = !1, window.open(e, "_blank");
|
|
16
|
-
}, _ = p(() => R.value.skinStyle), y = p(() => !!P.menu.items.length), k = p(() => {
|
|
17
|
-
if (!l.value || !l.value.length) return [];
|
|
18
|
-
const e = m(l.value);
|
|
19
|
-
return Array.isArray(e) ? e.length ? (e.forEach((r) => {
|
|
20
|
-
r.apps = v(
|
|
21
|
-
r.apps,
|
|
22
|
-
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
23
|
-
4
|
|
24
|
-
);
|
|
25
|
-
}), e) : [] : [];
|
|
26
|
-
}), v = (e, r) => {
|
|
27
|
-
const i = [];
|
|
28
|
-
for (let t = 0; t < e.length; t += r)
|
|
29
|
-
i.push(e.slice(t, t + r));
|
|
30
|
-
return i;
|
|
31
|
-
}, U = async (e, r = !0) => {
|
|
32
|
-
if (!e) return;
|
|
33
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
34
|
-
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const t = m(e);
|
|
38
|
-
if (F.innerSet = r, t.routeUrl) {
|
|
39
|
-
if (e.code === "Ioc") {
|
|
40
|
-
window.open(t.routeUrl, "_blank");
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (e.code === "wojiacloud") {
|
|
44
|
-
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
45
|
-
if (o) {
|
|
46
|
-
const [n, a] = await H().run({ accessToken: o });
|
|
47
|
-
if (a) {
|
|
48
|
-
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
49
|
-
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
const u = (e == null ? void 0 : e.openType) ?? 1, f = (e == null ? void 0 : e.type) ?? 1;
|
|
55
|
-
if (u === 1) {
|
|
56
|
-
if (!await g(e)) return;
|
|
57
|
-
const n = L().preTab[e.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
58
|
-
h({ microApp: t, menuCode: a, route: { query: s } });
|
|
59
|
-
}
|
|
60
|
-
if (u === 2 && t.routeUrl) {
|
|
61
|
-
let o = "";
|
|
62
|
-
if (f === 1)
|
|
63
|
-
o = t != null && t.applicationPath ? ("/" + t.applicationPath + "/" + t.routeUrl).replace(/\/\//g, "/") : ("/" + t.routeUrl).replace(/\/\//g, "/"), o = q(o);
|
|
64
|
-
else if (f === 2) {
|
|
65
|
-
const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
|
|
66
|
-
o = M(n);
|
|
67
|
-
}
|
|
68
|
-
window.open(o, "_blank");
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return (e, r) => (A(), S(
|
|
72
|
-
I,
|
|
73
|
-
null,
|
|
74
|
-
[
|
|
75
|
-
j("button", { onClick: w }, "测试跳转到工位预定"),
|
|
76
|
-
b(d(c(T), {
|
|
77
|
-
full: "",
|
|
78
|
-
spinning: c(V)
|
|
79
|
-
}, {
|
|
80
|
-
default: D(() => [
|
|
81
|
-
d(c(x), {
|
|
82
|
-
theme: _.value,
|
|
83
|
-
appCategorys: k.value,
|
|
84
|
-
onOpenApp: U
|
|
85
|
-
}, null, 8, ["theme", "appCategorys"])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
/* STABLE */
|
|
89
|
-
}, 8, ["spinning"]), [
|
|
90
|
-
[E, !y.value]
|
|
91
|
-
])
|
|
92
|
-
],
|
|
93
|
-
64
|
|
94
|
-
/* STABLE_FRAGMENT */
|
|
95
|
-
));
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
ne as default
|
|
100
|
-
};
|
package/index-BWYlYWRB.js.gz
DELETED
|
Binary file
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as b, createVNode as d, unref as c, withCtx as D, vShow as E } from "vue";
|
|
2
|
-
import { layoutData as P } from "@das-fed/web/packages/layout/index";
|
|
3
|
-
import { t as $ } from "@das-fed/web/packages/i18n/index";
|
|
4
|
-
import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
5
|
-
import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
6
|
-
import { getTabInfo as L } from "@das-fed/utils/common-info";
|
|
7
|
-
import { setShowLayout as q } from "@das-fed/utils/common-tools";
|
|
8
|
-
import { createService as B } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-DAVd4iqi.js";
|
|
10
|
-
const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), ne = /* @__PURE__ */ C({
|
|
11
|
-
__name: "index",
|
|
12
|
-
setup(J) {
|
|
13
|
-
const { beforeEntryApp: g, entryApp: h } = N(), w = () => {
|
|
14
|
-
const e = sessionStorage.getItem("iwmStationReservePath") || "/";
|
|
15
|
-
window.__isAutoCloseApp = !1, window.open(e, "_blank");
|
|
16
|
-
}, _ = p(() => R.value.skinStyle), y = p(() => !!P.menu.items.length), k = p(() => {
|
|
17
|
-
if (!l.value || !l.value.length) return [];
|
|
18
|
-
const e = m(l.value);
|
|
19
|
-
return Array.isArray(e) ? e.length ? (e.forEach((r) => {
|
|
20
|
-
r.apps = v(
|
|
21
|
-
r.apps,
|
|
22
|
-
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
23
|
-
4
|
|
24
|
-
);
|
|
25
|
-
}), e) : [] : [];
|
|
26
|
-
}), v = (e, r) => {
|
|
27
|
-
const i = [];
|
|
28
|
-
for (let t = 0; t < e.length; t += r)
|
|
29
|
-
i.push(e.slice(t, t + r));
|
|
30
|
-
return i;
|
|
31
|
-
}, U = async (e, r = !0) => {
|
|
32
|
-
if (!e) return;
|
|
33
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
34
|
-
window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const t = m(e);
|
|
38
|
-
if (F.innerSet = r, t.routeUrl) {
|
|
39
|
-
if (e.code === "Ioc") {
|
|
40
|
-
window.open(t.routeUrl, "_blank");
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (e.code === "wojiacloud") {
|
|
44
|
-
const o = sessionStorage.getItem("kingdee_token") || "";
|
|
45
|
-
if (o) {
|
|
46
|
-
const [n, a] = await H().run({ accessToken: o });
|
|
47
|
-
if (a) {
|
|
48
|
-
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
49
|
-
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
const u = (e == null ? void 0 : e.openType) ?? 1, f = (e == null ? void 0 : e.type) ?? 1;
|
|
55
|
-
if (u === 1) {
|
|
56
|
-
if (!await g(e)) return;
|
|
57
|
-
const n = L().preTab[e.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
58
|
-
h({ microApp: t, menuCode: a, route: { query: s } });
|
|
59
|
-
}
|
|
60
|
-
if (u === 2 && t.routeUrl) {
|
|
61
|
-
let o = "";
|
|
62
|
-
if (f === 1)
|
|
63
|
-
o = t != null && t.applicationPath ? ("/" + t.applicationPath + "/" + t.routeUrl).replace(/\/\//g, "/") : ("/" + t.routeUrl).replace(/\/\//g, "/"), o = q(o);
|
|
64
|
-
else if (f === 2) {
|
|
65
|
-
const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
|
|
66
|
-
o = M(n);
|
|
67
|
-
}
|
|
68
|
-
window.open(o, "_blank");
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return (e, r) => (A(), S(
|
|
72
|
-
I,
|
|
73
|
-
null,
|
|
74
|
-
[
|
|
75
|
-
j("button", { onClick: w }, "测试跳转到工位预定"),
|
|
76
|
-
b(d(c(T), {
|
|
77
|
-
full: "",
|
|
78
|
-
spinning: c(V)
|
|
79
|
-
}, {
|
|
80
|
-
default: D(() => [
|
|
81
|
-
d(c(x), {
|
|
82
|
-
theme: _.value,
|
|
83
|
-
appCategorys: k.value,
|
|
84
|
-
onOpenApp: U
|
|
85
|
-
}, null, 8, ["theme", "appCategorys"])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
/* STABLE */
|
|
89
|
-
}, 8, ["spinning"]), [
|
|
90
|
-
[E, !y.value]
|
|
91
|
-
])
|
|
92
|
-
],
|
|
93
|
-
64
|
|
94
|
-
/* STABLE_FRAGMENT */
|
|
95
|
-
));
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
ne as default
|
|
100
|
-
};
|
|
Binary file
|