@das-fed/web 6.4.0-dev.35 → 6.4.0-dev.36
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 +2 -1
- package/{index-BCMKSfbE.js → index-CRBeP89z.js} +11 -9
- package/index-CRBeP89z.js.gz +0 -0
- package/{index-B5iFuaK1.js → index-CzrTf6x-.js} +1 -1
- package/index-CzrTf6x-.js.gz +0 -0
- package/index-DQLhHoNj.js +74 -0
- package/index-DQLhHoNj.js.gz +0 -0
- package/{index-5QUs9_j8.js → index-MmUsuVm6.js} +1 -1
- package/index.js +17 -16
- package/package.json +6 -6
- package/packages/layout/index.js +2 -1
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-BSWMIad0.js → index-BH90O_oP.js} +5 -4
- package/packages/main-app-framework/index-BH90O_oP.js.gz +0 -0
- package/packages/main-app-framework/{index-czNdTV8H.js → index-CwKf8xGn.js} +1 -1
- package/packages/main-app-framework/index-CwKf8xGn.js.gz +0 -0
- package/packages/main-app-framework/{index-CsB4a8gH.js → index-OD7R3sDR.js} +1 -1
- package/packages/main-app-framework/index-yWjHN1Jc.js +74 -0
- package/packages/main-app-framework/index-yWjHN1Jc.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/types/layout/index.d.ts +1 -1
- package/index-B5iFuaK1.js.gz +0 -0
- package/index-BCMKSfbE.js.gz +0 -0
- package/index-CdeRqI3I.js +0 -71
- package/index-CdeRqI3I.js.gz +0 -0
- package/packages/main-app-framework/index-BSWMIad0.js.gz +0 -0
- package/packages/main-app-framework/index-DE3A2Eyv.js +0 -71
- package/packages/main-app-framework/index-DE3A2Eyv.js.gz +0 -0
- package/packages/main-app-framework/index-czNdTV8H.js.gz +0 -0
package/esm-map.json
CHANGED
|
@@ -24,5 +24,6 @@
|
|
|
24
24
|
"setThemeRule": "/packages/theme/index",
|
|
25
25
|
"getVar": "/packages/theme/index",
|
|
26
26
|
"getVarValue": "/packages/theme/index",
|
|
27
|
-
"mainAppFramework": "/packages/main-app-framework/index"
|
|
27
|
+
"mainAppFramework": "/packages/main-app-framework/index",
|
|
28
|
+
"layoutData": "/packages/layout/index"
|
|
28
29
|
}
|
|
@@ -3142,7 +3142,8 @@ const Kt = (t, e = "") => {
|
|
|
3142
3142
|
label: ue.name
|
|
3143
3143
|
})) || [];
|
|
3144
3144
|
R.tab.setItems(ie);
|
|
3145
|
-
}
|
|
3145
|
+
} else
|
|
3146
|
+
R.tab.setItems([]);
|
|
3146
3147
|
}
|
|
3147
3148
|
e({ currentMenu: I, microPath: T, route: p });
|
|
3148
3149
|
}, u = async (d) => {
|
|
@@ -7024,15 +7025,15 @@ E("@das-fed/web");
|
|
|
7024
7025
|
const Uh = [
|
|
7025
7026
|
{
|
|
7026
7027
|
path: je,
|
|
7027
|
-
component: () => import("./index-
|
|
7028
|
+
component: () => import("./index-DQLhHoNj.js")
|
|
7028
7029
|
},
|
|
7029
7030
|
{
|
|
7030
7031
|
path: ct,
|
|
7031
|
-
component: () => import("./index-
|
|
7032
|
+
component: () => import("./index-CzrTf6x-.js")
|
|
7032
7033
|
},
|
|
7033
7034
|
{
|
|
7034
7035
|
path: Cr,
|
|
7035
|
-
component: () => import("./index-
|
|
7036
|
+
component: () => import("./index-MmUsuVm6.js")
|
|
7036
7037
|
}
|
|
7037
7038
|
], Yg = {
|
|
7038
7039
|
routes: Uh,
|
|
@@ -7048,11 +7049,12 @@ const Uh = [
|
|
|
7048
7049
|
export {
|
|
7049
7050
|
Jg as A,
|
|
7050
7051
|
q as B,
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7052
|
+
Je as C,
|
|
7053
|
+
Gg as D,
|
|
7054
|
+
Xg as E,
|
|
7055
|
+
ee as F,
|
|
7056
|
+
Kg as G,
|
|
7057
|
+
Yg as H,
|
|
7056
7058
|
ct as I,
|
|
7057
7059
|
be as _,
|
|
7058
7060
|
zo as a,
|
|
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 b, _ as L } from "./index-
|
|
5
|
+
import { I as R, e as b, _ as L } from "./index-CRBeP89z.js";
|
|
6
6
|
import { getToken as M, getPersonalInfo as j, getProjectInfo as B } from "@das-fed/utils/common-info";
|
|
7
7
|
import { getUrlParams as D } from "@das-fed/utils/common-tools";
|
|
8
8
|
const E = {
|
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
|
|
2
|
+
import { DasAppContainer as I } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
|
+
import { DasSpin as j } from "@das-fed/ui/packages/components/spin/index";
|
|
4
|
+
import { layoutData as D } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { getTabInfo as $ } from "@das-fed/utils/common-info";
|
|
6
|
+
import { setShowLayout as x } from "@das-fed/utils/common-tools";
|
|
7
|
+
import { createService as T } from "@das-fed/utils/create-api-service";
|
|
8
|
+
import { u as b, a as c, c as f, b as E, l as L, d as q } from "./index-CRBeP89z.js";
|
|
9
|
+
const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/auth/user/auth_code"), R = /* @__PURE__ */ _({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(N) {
|
|
12
|
+
const { beforeEntryApp: d, entryApp: g } = b(), h = l(() => !!D.menu.items.length), m = l(() => {
|
|
13
|
+
if (!c.value || !c.value.length) return [];
|
|
14
|
+
const o = f(c.value);
|
|
15
|
+
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
|
|
16
|
+
}), w = (o, n) => {
|
|
17
|
+
const t = [];
|
|
18
|
+
for (let r = 0; r < o.length; r += n)
|
|
19
|
+
t.push(o.slice(r, r + n));
|
|
20
|
+
return t;
|
|
21
|
+
}, y = async (o) => {
|
|
22
|
+
if (!o) return;
|
|
23
|
+
if (!sessionStorage.getItem("projectInfo")) {
|
|
24
|
+
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const t = f(o);
|
|
28
|
+
if (L.innerSet = !0, t.routeUrl) {
|
|
29
|
+
if (o.code === "Ioc") {
|
|
30
|
+
window.open(t.routeUrl, "_blank");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (o.code === "wojiacloud") {
|
|
34
|
+
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
35
|
+
if (e) {
|
|
36
|
+
const [i, a] = await K().run({ accessToken: e });
|
|
37
|
+
if (a) {
|
|
38
|
+
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
39
|
+
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
45
|
+
if (r === 1) {
|
|
46
|
+
if (!await d(o)) return;
|
|
47
|
+
const i = $().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
48
|
+
g({ microApp: t, menuCode: a, route: { query: s } });
|
|
49
|
+
}
|
|
50
|
+
if (r === 2 && t.routeUrl) {
|
|
51
|
+
let e = "";
|
|
52
|
+
u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = x(e)) : u === 2 && (e = q(t.routeUrl)), window.open(e, "_blank");
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return (o, n) => k((v(), A(p(j), {
|
|
56
|
+
full: "",
|
|
57
|
+
spinning: p(E)
|
|
58
|
+
}, {
|
|
59
|
+
default: U(() => [
|
|
60
|
+
C(p(I), {
|
|
61
|
+
appCategorys: m.value,
|
|
62
|
+
onOpenApp: y
|
|
63
|
+
}, null, 8, ["appCategorys"])
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
/* STABLE */
|
|
67
|
+
}, 8, ["spinning"])), [
|
|
68
|
+
[S, !h.value]
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
R as default
|
|
74
|
+
};
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as e, x as t, z as n, y as i, A as r, f as p, m as u, q as o, g as m, k as g, p as D, v as l, w as b, h, i as A, D as T, E as c, n as y, B as L, C as W, H as M, F as R, s as F, j as I, o as V, r as f, t as k } from "./index-CRBeP89z.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
|
5
5
|
n as DasWebMenu,
|
|
6
6
|
i as DasWebNav,
|
|
7
7
|
r as DasWebTabs,
|
|
8
8
|
p as createDasWebApp,
|
|
9
9
|
u as currentLang,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
o as currentTheme,
|
|
11
|
+
m as getI18nRule,
|
|
12
12
|
g as getLang,
|
|
13
13
|
D as getThemeRule,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
l as getVar,
|
|
15
|
+
b as getVarValue,
|
|
16
|
+
h as i18n,
|
|
17
17
|
A as initI18n,
|
|
18
18
|
T as initMainApp,
|
|
19
19
|
c as initMicroApp,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
M as
|
|
24
|
-
R as
|
|
25
|
-
F as
|
|
26
|
-
I as
|
|
27
|
-
V as
|
|
28
|
-
f as
|
|
20
|
+
y as initTheme,
|
|
21
|
+
L as layout,
|
|
22
|
+
W as layoutData,
|
|
23
|
+
M as mainAppFramework,
|
|
24
|
+
R as microFrontend,
|
|
25
|
+
F as setI18nRule,
|
|
26
|
+
I as setLang,
|
|
27
|
+
V as setTheme,
|
|
28
|
+
f as setThemeRule,
|
|
29
|
+
k as t
|
|
29
30
|
};
|
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.36",
|
|
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.36",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.36",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.36",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.36",
|
|
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.36",
|
|
22
22
|
"@types/lodash": "^4.14.194",
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
|
24
24
|
"@vitejs/plugin-vue": "^5.1.0",
|
package/packages/layout/index.js
CHANGED
|
Binary file
|
|
@@ -1870,7 +1870,8 @@ const bt = (n, e = "") => {
|
|
|
1870
1870
|
label: ne.name
|
|
1871
1871
|
})) || [];
|
|
1872
1872
|
D.tab.setItems(Y);
|
|
1873
|
-
}
|
|
1873
|
+
} else
|
|
1874
|
+
D.tab.setItems([]);
|
|
1874
1875
|
}
|
|
1875
1876
|
e({ currentMenu: b, microPath: C, route: d });
|
|
1876
1877
|
}, u = async (p) => {
|
|
@@ -5752,15 +5753,15 @@ E("@das-fed/web");
|
|
|
5752
5753
|
const Kp = [
|
|
5753
5754
|
{
|
|
5754
5755
|
path: Ie,
|
|
5755
|
-
component: () => import("./index-
|
|
5756
|
+
component: () => import("./index-yWjHN1Jc.js")
|
|
5756
5757
|
},
|
|
5757
5758
|
{
|
|
5758
5759
|
path: Je,
|
|
5759
|
-
component: () => import("./index-
|
|
5760
|
+
component: () => import("./index-CwKf8xGn.js")
|
|
5760
5761
|
},
|
|
5761
5762
|
{
|
|
5762
5763
|
path: Bo,
|
|
5763
|
-
component: () => import("./index-
|
|
5764
|
+
component: () => import("./index-OD7R3sDR.js")
|
|
5764
5765
|
}
|
|
5765
5766
|
], Hf = {
|
|
5766
5767
|
routes: Kp,
|
|
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 b, _ as L } from "./index-
|
|
5
|
+
import { I as R, e as b, _ as L } from "./index-BH90O_oP.js";
|
|
6
6
|
import { getToken as M, getPersonalInfo as j, getProjectInfo as B } from "@das-fed/utils/common-info";
|
|
7
7
|
import { getUrlParams as D } from "@das-fed/utils/common-tools";
|
|
8
8
|
const E = {
|
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
|
|
2
|
+
import { DasAppContainer as I } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
|
+
import { DasSpin as j } from "@das-fed/ui/packages/components/spin/index";
|
|
4
|
+
import { layoutData as D } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { getTabInfo as $ } from "@das-fed/utils/common-info";
|
|
6
|
+
import { setShowLayout as x } from "@das-fed/utils/common-tools";
|
|
7
|
+
import { createService as T } from "@das-fed/utils/create-api-service";
|
|
8
|
+
import { u as b, a as c, c as f, b as E, l as L, d as q } from "./index-BH90O_oP.js";
|
|
9
|
+
const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/auth/user/auth_code"), R = /* @__PURE__ */ _({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(N) {
|
|
12
|
+
const { beforeEntryApp: d, entryApp: g } = b(), h = l(() => !!D.menu.items.length), m = l(() => {
|
|
13
|
+
if (!c.value || !c.value.length) return [];
|
|
14
|
+
const o = f(c.value);
|
|
15
|
+
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
|
|
16
|
+
}), w = (o, n) => {
|
|
17
|
+
const t = [];
|
|
18
|
+
for (let r = 0; r < o.length; r += n)
|
|
19
|
+
t.push(o.slice(r, r + n));
|
|
20
|
+
return t;
|
|
21
|
+
}, y = async (o) => {
|
|
22
|
+
if (!o) return;
|
|
23
|
+
if (!sessionStorage.getItem("projectInfo")) {
|
|
24
|
+
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const t = f(o);
|
|
28
|
+
if (L.innerSet = !0, t.routeUrl) {
|
|
29
|
+
if (o.code === "Ioc") {
|
|
30
|
+
window.open(t.routeUrl, "_blank");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (o.code === "wojiacloud") {
|
|
34
|
+
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
35
|
+
if (e) {
|
|
36
|
+
const [i, a] = await K().run({ accessToken: e });
|
|
37
|
+
if (a) {
|
|
38
|
+
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
39
|
+
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
45
|
+
if (r === 1) {
|
|
46
|
+
if (!await d(o)) return;
|
|
47
|
+
const i = $().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
48
|
+
g({ microApp: t, menuCode: a, route: { query: s } });
|
|
49
|
+
}
|
|
50
|
+
if (r === 2 && t.routeUrl) {
|
|
51
|
+
let e = "";
|
|
52
|
+
u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = x(e)) : u === 2 && (e = q(t.routeUrl)), window.open(e, "_blank");
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return (o, n) => k((v(), A(p(j), {
|
|
56
|
+
full: "",
|
|
57
|
+
spinning: p(E)
|
|
58
|
+
}, {
|
|
59
|
+
default: U(() => [
|
|
60
|
+
C(p(I), {
|
|
61
|
+
appCategorys: m.value,
|
|
62
|
+
onOpenApp: y
|
|
63
|
+
}, null, 8, ["appCategorys"])
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
/* STABLE */
|
|
67
|
+
}, 8, ["spinning"])), [
|
|
68
|
+
[S, !h.value]
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
R as default
|
|
74
|
+
};
|
|
Binary file
|
package/types/layout/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { default as DasWebLayout } from './components/das-web-layout.vue';
|
|
|
2
2
|
export { default as DasWebNav } from './components/das-web-nav.vue';
|
|
3
3
|
export { default as DasWebMenu } from './components/das-web-menu.vue';
|
|
4
4
|
export { default as DasWebTabs } from './components/das-web-tabs.vue';
|
|
5
|
-
export { layout } from './store';
|
|
5
|
+
export { layout, layoutData } from './store';
|
package/index-B5iFuaK1.js.gz
DELETED
|
Binary file
|
package/index-BCMKSfbE.js.gz
DELETED
|
Binary file
|
package/index-CdeRqI3I.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, computed as w, openBlock as y, 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
|
-
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
-
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
6
|
-
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
7
|
-
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-BCMKSfbE.js";
|
|
8
|
-
const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(q) {
|
|
11
|
-
const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
|
|
12
|
-
if (!c.value || !c.value.length) return [];
|
|
13
|
-
const o = l(c.value);
|
|
14
|
-
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
15
|
-
}), h = (o, n) => {
|
|
16
|
-
const e = [];
|
|
17
|
-
for (let r = 0; r < o.length; r += n)
|
|
18
|
-
e.push(o.slice(r, r + n));
|
|
19
|
-
return e;
|
|
20
|
-
}, m = async (o) => {
|
|
21
|
-
if (!o) return;
|
|
22
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
23
|
-
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const e = l(o);
|
|
27
|
-
if (T.innerSet = !0, e.routeUrl) {
|
|
28
|
-
if (o.code === "Ioc") {
|
|
29
|
-
window.open(e.routeUrl, "_blank");
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (o.code === "wojiacloud") {
|
|
33
|
-
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
34
|
-
if (t) {
|
|
35
|
-
const [i, a] = await L().run({ accessToken: t });
|
|
36
|
-
if (a) {
|
|
37
|
-
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
38
|
-
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
44
|
-
if (r === 1) {
|
|
45
|
-
if (!await f(o)) return;
|
|
46
|
-
const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
47
|
-
d({ microApp: e, menuCode: a, route: { query: s } });
|
|
48
|
-
}
|
|
49
|
-
if (r === 2 && e.routeUrl) {
|
|
50
|
-
let t = "";
|
|
51
|
-
u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
return (o, n) => (y(), k(p(v), {
|
|
55
|
-
full: "",
|
|
56
|
-
spinning: p(x)
|
|
57
|
-
}, {
|
|
58
|
-
default: U(() => [
|
|
59
|
-
A(p(C), {
|
|
60
|
-
appCategorys: g.value,
|
|
61
|
-
onOpenApp: m
|
|
62
|
-
}, null, 8, ["appCategorys"])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
/* STABLE */
|
|
66
|
-
}, 8, ["spinning"]));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
G as default
|
|
71
|
-
};
|
package/index-CdeRqI3I.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, computed as w, openBlock as y, 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
|
-
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
-
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
6
|
-
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
7
|
-
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-BSWMIad0.js";
|
|
8
|
-
const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(q) {
|
|
11
|
-
const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
|
|
12
|
-
if (!c.value || !c.value.length) return [];
|
|
13
|
-
const o = l(c.value);
|
|
14
|
-
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
15
|
-
}), h = (o, n) => {
|
|
16
|
-
const e = [];
|
|
17
|
-
for (let r = 0; r < o.length; r += n)
|
|
18
|
-
e.push(o.slice(r, r + n));
|
|
19
|
-
return e;
|
|
20
|
-
}, m = async (o) => {
|
|
21
|
-
if (!o) return;
|
|
22
|
-
if (!sessionStorage.getItem("projectInfo")) {
|
|
23
|
-
window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const e = l(o);
|
|
27
|
-
if (T.innerSet = !0, e.routeUrl) {
|
|
28
|
-
if (o.code === "Ioc") {
|
|
29
|
-
window.open(e.routeUrl, "_blank");
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (o.code === "wojiacloud") {
|
|
33
|
-
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
34
|
-
if (t) {
|
|
35
|
-
const [i, a] = await L().run({ accessToken: t });
|
|
36
|
-
if (a) {
|
|
37
|
-
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
38
|
-
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
44
|
-
if (r === 1) {
|
|
45
|
-
if (!await f(o)) return;
|
|
46
|
-
const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
47
|
-
d({ microApp: e, menuCode: a, route: { query: s } });
|
|
48
|
-
}
|
|
49
|
-
if (r === 2 && e.routeUrl) {
|
|
50
|
-
let t = "";
|
|
51
|
-
u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
return (o, n) => (y(), k(p(v), {
|
|
55
|
-
full: "",
|
|
56
|
-
spinning: p(x)
|
|
57
|
-
}, {
|
|
58
|
-
default: U(() => [
|
|
59
|
-
A(p(C), {
|
|
60
|
-
appCategorys: g.value,
|
|
61
|
-
onOpenApp: m
|
|
62
|
-
}, null, 8, ["appCategorys"])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
/* STABLE */
|
|
66
|
-
}, 8, ["spinning"]));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
G as default
|
|
71
|
-
};
|
|
Binary file
|
|
Binary file
|