@das-fed/upf-web 6.4.0-dev.214 → 6.4.0-dev.215
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/es5.js +17656 -788
- package/index-4esj4s-W.js +12595 -0
- package/index-4esj4s-W.js.gz +0 -0
- package/{index-ByhX5txj.js → index-Db6ZVXca.js} +1 -1
- package/index-DhNbDzms.js +93 -0
- package/index-DhNbDzms.js.gz +0 -0
- package/index.js +3 -3
- package/package.json +6 -6
- package/packages/main-app-framework/es5.js +14801 -785
- package/packages/main-app-framework/index-BJWTr6s8.js +93 -0
- package/packages/main-app-framework/index-BJWTr6s8.js.gz +0 -0
- package/packages/main-app-framework/index-DXKNRm6u.js +11132 -0
- package/packages/main-app-framework/index-DXKNRm6u.js.gz +0 -0
- package/packages/main-app-framework/{index-DNJZ92iQ.js → index-DhC7txnI.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/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-CwMqkq8C.js +0 -87
- package/index-CwMqkq8C.js.gz +0 -0
- package/index-dUNStNwI.js +0 -13962
- package/index-dUNStNwI.js.gz +0 -0
- package/packages/main-app-framework/index-BoCRcqvZ.js +0 -12499
- package/packages/main-app-framework/index-BoCRcqvZ.js.gz +0 -0
- package/packages/main-app-framework/index-D1wc5Rgr.js +0 -87
- package/packages/main-app-framework/index-D1wc5Rgr.js.gz +0 -0
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ref as d, computed as p, defineComponent as U, withDirectives as C, openBlock as A, createBlock as S, unref as f, withCtx as I, createVNode as j, vShow as D } from "vue";
|
|
2
|
+
import { layoutData as $ } from "@das-fed/upf-web/packages/layout/index";
|
|
3
|
+
import { t as x } from "@das-fed/upf-web/packages/i18n/index";
|
|
4
|
+
import { DasAppContainer as T } from "@das-fed/upf-ui/packages/business-components/app-container/index";
|
|
5
|
+
import { DasSpin as E } from "@das-fed/upf-ui/packages/components/spin/index";
|
|
6
|
+
import { getTabInfo as L } from "@das-fed/upf-utils/common-info";
|
|
7
|
+
import { setShowLayout as P } from "@das-fed/upf-utils/common-tools";
|
|
8
|
+
import { createService as b } from "@das-fed/upf-utils/create-api-service";
|
|
9
|
+
import { u as q, p as B, c as h, l as K, g as M, a as N } from "./index-4esj4s-W.js";
|
|
10
|
+
const O = d(!1), c = d([]);
|
|
11
|
+
p(() => {
|
|
12
|
+
var l;
|
|
13
|
+
return ((l = c.value) == null ? void 0 : l.map((u) => u.apps).flat()) || [];
|
|
14
|
+
});
|
|
15
|
+
d([]);
|
|
16
|
+
const V = "v1", F = b(`/api/justauth/client/${V}`), G = F.get("/visitor/kingdee/auth/user/auth_code"), oo = /* @__PURE__ */ U({
|
|
17
|
+
__name: "index",
|
|
18
|
+
setup(l) {
|
|
19
|
+
const { beforeEntryApp: u, entryApp: m } = q(), w = p(() => B.value.skinStyle), y = p(() => !!$.menu.items.length), _ = p(() => {
|
|
20
|
+
if (!c.value || !c.value.length) return [];
|
|
21
|
+
const t = h(c.value);
|
|
22
|
+
return Array.isArray(t) ? t.length ? (t.forEach((r) => {
|
|
23
|
+
r.apps = k(
|
|
24
|
+
r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
|
|
25
|
+
4
|
|
26
|
+
);
|
|
27
|
+
}), t) : [] : [];
|
|
28
|
+
}), k = (t, r) => {
|
|
29
|
+
const o = [];
|
|
30
|
+
for (let a = 0; a < t.length; a += r)
|
|
31
|
+
o.push(t.slice(a, a + r));
|
|
32
|
+
return o;
|
|
33
|
+
}, v = async (t) => {
|
|
34
|
+
if (!t) return;
|
|
35
|
+
if (!sessionStorage.getItem("projectInfo")) {
|
|
36
|
+
window.confirm(x("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const o = h(t);
|
|
40
|
+
if (K.innerSet = !0, o.routeUrl) {
|
|
41
|
+
if (t.code === "Ioc") {
|
|
42
|
+
window.open(o.routeUrl, "_blank");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (t.code === "wojiacloud") {
|
|
46
|
+
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
47
|
+
if (e) {
|
|
48
|
+
const [n, s] = await G().run({ accessToken: e });
|
|
49
|
+
if (s) {
|
|
50
|
+
const i = (s == null ? void 0 : s.auth_code) ?? "";
|
|
51
|
+
o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const a = (t == null ? void 0 : t.openType) ?? 1, g = (t == null ? void 0 : t.type) ?? 1;
|
|
57
|
+
if (a === 1) {
|
|
58
|
+
if (!await u(t)) return;
|
|
59
|
+
const n = L().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
60
|
+
m({ microApp: o, menuCode: s, route: { query: i } });
|
|
61
|
+
}
|
|
62
|
+
if (a === 2 && o.routeUrl) {
|
|
63
|
+
let e = "";
|
|
64
|
+
if (g === 1)
|
|
65
|
+
e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = P(e);
|
|
66
|
+
else if (g === 2) {
|
|
67
|
+
const n = await M(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
|
|
68
|
+
e = N(n);
|
|
69
|
+
}
|
|
70
|
+
window.open(e, "_blank");
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return (t, r) => C((A(), S(f(E), {
|
|
74
|
+
full: "",
|
|
75
|
+
spinning: f(O)
|
|
76
|
+
}, {
|
|
77
|
+
default: I(() => [
|
|
78
|
+
j(f(T), {
|
|
79
|
+
theme: w.value,
|
|
80
|
+
appCategorys: _.value,
|
|
81
|
+
onOpenApp: v
|
|
82
|
+
}, null, 8, ["theme", "appCategorys"])
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
/* STABLE */
|
|
86
|
+
}, 8, ["spinning"])), [
|
|
87
|
+
[D, !y.value]
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
oo as default
|
|
93
|
+
};
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as s, D as t, F as n, E as r, G as i, b as o, m as u, z as g, o as m, d as l, f as p, k as D, y as c, B as L, C as b, h, i as y, J as A, K as I, w as M, e as T, H as R, I as W, q as F, N as d, L as V, r as f, v as k, s as v, j as w, n as x, x as K, A as N, t as j } from "./index-4esj4s-W.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
|
@@ -24,8 +24,8 @@ export {
|
|
|
24
24
|
R as layout,
|
|
25
25
|
W as layoutData,
|
|
26
26
|
F as loadLocale,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
d as mainAppFramework,
|
|
28
|
+
V as microFrontend,
|
|
29
29
|
f as microI18nStore,
|
|
30
30
|
k as registerMicroI18nData,
|
|
31
31
|
v as setI18nRule,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.215",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@das-fed/mframe": "0.0.41",
|
|
8
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
9
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
10
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
11
|
-
"@das-fed/upf-web-components": "6.4.0-dev.
|
|
8
|
+
"@das-fed/upf-ui": "6.4.0-dev.215",
|
|
9
|
+
"@das-fed/upf-utils": "6.4.0-dev.215",
|
|
10
|
+
"@das-fed/upf-web": "6.4.0-dev.215",
|
|
11
|
+
"@das-fed/upf-web-components": "6.4.0-dev.215",
|
|
12
12
|
"@microsoft/signalr": "^8.0.7",
|
|
13
13
|
"@vueuse/core": "^9.13.0",
|
|
14
14
|
"animate.css": "^4.1.1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue-router": "^4.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
23
|
+
"@das-fed/upf-cli": "6.4.0-dev.215",
|
|
24
24
|
"@types/crypto-js": "^4.2.2",
|
|
25
25
|
"@types/lodash": "^4.14.194",
|
|
26
26
|
"@types/lodash-es": "^4.17.12",
|