@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
|
@@ -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-DXKNRm6u.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
|