@das-fed/web 6.4.0-dev.59 → 6.4.0-dev.60
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-CaTnOy_7.js → index-D6wvy23o.js} +1 -1
- package/index-D6wvy23o.js.gz +0 -0
- package/{index-DPLFD5gy.js → index-DHTeOa5D.js} +133 -131
- package/index-DHTeOa5D.js.gz +0 -0
- package/{index-DxhjynU_.js → index-DSodtjfX.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +46 -44
- package/packages/i18n/index.js.gz +0 -0
- package/index-CaTnOy_7.js.gz +0 -0
- package/index-DPLFD5gy.js.gz +0 -0
|
@@ -6,7 +6,7 @@ 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 q, a as u, c as f, b as B, l as P, d as K } from "./index-
|
|
9
|
+
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-DHTeOa5D.js";
|
|
10
10
|
const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(V) {
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as R, createApp as ov, reactive as kA, computed as B, defineComponent as fA, watch as C, openBlock as L, createElementBlock as F, Fragment as EA, createBlock as U, TransitionGroup as Nv, normalizeProps as Df, mergeProps as
|
|
1
|
+
import { ref as R, createApp as ov, reactive as kA, computed as B, defineComponent as fA, watch as C, openBlock as L, createElementBlock as F, Fragment as EA, createBlock as U, TransitionGroup as Nv, normalizeProps as Df, mergeProps as ge, withCtx as M, renderList as ye, withDirectives as RA, resolveDynamicComponent as Xe, vShow as DA, unref as i, createCommentVNode as k, nextTick as GA, resolveComponent as xv, createElementVNode as T, normalizeClass as s9, normalizeStyle as jf, renderSlot as sA, createVNode as g, Transition as sn, guardReactiveProps as qn, KeepAlive as mn, h as uA, onBeforeMount as Dv, onMounted as hA, onUnmounted as jv, getCurrentScope as Zv, onScopeDispose as Tv, getCurrentInstance as yv, onActivated as Lv, createTextVNode as bA, toDisplayString as S, render as ef, onBeforeUnmount as ke, useCssVars as Wv, withModifiers as XA, toRefs as Iv, isRef as Ev } from "vue";
|
|
2
2
|
import { initTheme as wv, setThemeRule as Mv } from "@das-fed/web/packages/theme/index";
|
|
3
3
|
import { initI18n as gv, t as J, i18n as w, setI18nRule as kv } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as Gf, DasWebNav as q9, DasWebMenu as m9, DasWebTabs as p9, layout as W, layoutData as H9 } from "@das-fed/web/packages/layout/index";
|
|
5
5
|
import { createPinia as Bv } from "pinia";
|
|
6
6
|
import Qv from "pinia-plugin-persistedstate";
|
|
7
|
-
import { createRouter as Gv, createWebHistory as Uv, useRouter as fe, useRoute as
|
|
7
|
+
import { createRouter as Gv, createWebHistory as Uv, useRouter as fe, useRoute as Be } from "vue-router";
|
|
8
8
|
import { DasChangePwdRef as Jv, DasChangePwd as Yv } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
9
9
|
import { DasChangeEnterprises as Fv } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
10
|
-
import { getSubApps as K, getTabInfo as pA, getPersonalInfo as
|
|
10
|
+
import { getSubApps as K, getTabInfo as pA, getPersonalInfo as Qe, getTenantInfo as Uf, getProjectInfo as UA, getToken as Ge, getUserInfo as l9, getMenus as ff } from "@das-fed/utils/common-info";
|
|
11
11
|
import { pureImageSrc as Pf } from "@das-fed/utils/pure-image-src";
|
|
12
|
-
import { DasNotification as
|
|
12
|
+
import { DasNotification as nf } from "@das-fed/ui/packages/components/notification/index";
|
|
13
13
|
import { flatTree as wA, filterTreeArray as hv, isEmpty as Sv, treeFind as pn, setBrowseTitle as Kv, updateFavIcon as Cv, dateFormat as _v, runPromiseByQueue as $v, objEqual as Zf, setShowWatermark as Tf, setShowLayout as yf, getUrlParams as A3, withToken as e3 } from "@das-fed/utils/common-tools";
|
|
14
14
|
import { setProcessEngineProject as V9, setProcessEngineToken as O9 } from "@das-fed/utils/process-engine-info";
|
|
15
15
|
import { oauthServer as R9, justauth as Jf, enterpriseright as Yf, iotModules as f3, portal as JA, systemConfiguration as df } from "@das-fed/utils/api-services/modules";
|
|
@@ -30,7 +30,7 @@ import { devicePanelShow as N9, closeDevicePanel as u3, alarmDevicePanelShow as
|
|
|
30
30
|
import { DasIconWarningFace as a3 } from "@das-fed/ui/packages/icons/warning-face/index";
|
|
31
31
|
import { socketService as Kf } from "@das-fed/utils/webSocket-service";
|
|
32
32
|
import { userInfoNextTick as c3, tokenNextTick as zf } from "@das-fed/utils/nextTiken";
|
|
33
|
-
import { mainAppFramework as
|
|
33
|
+
import { mainAppFramework as vf } from "@das-fed/web/packages/main-app-framework/index";
|
|
34
34
|
import { DasAutoRegisterIcon as x9, DasIcon as ze } from "@das-fed/ui/packages/components/icon/index";
|
|
35
35
|
import { DasTooltip as mA } from "@das-fed/ui/packages/components/tooltip/index";
|
|
36
36
|
import { DasLivePlayer as i3 } from "@das-fed/ui/packages/components/live-player/index";
|
|
@@ -120,7 +120,7 @@ const D3 = (e) => {
|
|
|
120
120
|
未激活: { "zh-CN": "未激活", en: "Inactive", _appCode: "framework" }
|
|
121
121
|
}, be = kA({}), ae = kA({}), De = kA({});
|
|
122
122
|
var i9;
|
|
123
|
-
const Z3 = (i9 = navigator.language) != null && i9.toLowerCase().startsWith("zh") ? "zh-CN" : "en",
|
|
123
|
+
const Z3 = (i9 = navigator.language) != null && i9.toLowerCase().startsWith("zh") ? "zh-CN" : "en", Le = R(Z3), T3 = "dasI18n", D8 = (e = {}, A) => {
|
|
124
124
|
const f = A === "global", n = !f, v = {};
|
|
125
125
|
for (const t in e)
|
|
126
126
|
for (const r in e[t])
|
|
@@ -134,14 +134,16 @@ const Z3 = (i9 = navigator.language) != null && i9.toLowerCase().startsWith("zh"
|
|
|
134
134
|
r && (De[r] || (De[r] = {}), De[r][t] = e[t]), be[t] || (be[t] = e[t]);
|
|
135
135
|
}
|
|
136
136
|
}, j8 = async (e) => {
|
|
137
|
-
var
|
|
138
|
-
const A =
|
|
139
|
-
A &&
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
var v, t;
|
|
138
|
+
const A = document.documentElement;
|
|
139
|
+
A && A.setAttribute("lang", Le.value);
|
|
140
|
+
const f = window[T3];
|
|
141
|
+
f && Hf(f, "global"), Hf(j3);
|
|
142
|
+
let n = Object.assign(((v = e == null ? void 0 : e.i18n) == null ? void 0 : v.glob) || {});
|
|
143
|
+
(t = e == null ? void 0 : e.microApps) == null || t.map((r) => {
|
|
144
|
+
var d;
|
|
145
|
+
n = Object.assign(n, ((d = r.i18n) == null ? void 0 : d.glob) || {});
|
|
146
|
+
}), Object.values(n).filter((r) => !!r).flat().map((r) => Hf(r));
|
|
145
147
|
}, y3 = (e) => {
|
|
146
148
|
let A = "";
|
|
147
149
|
const f = /\/([^\/]+)\/([^\/]+)\//, n = e.match(f);
|
|
@@ -151,13 +153,13 @@ const Z3 = (i9 = navigator.language) != null && i9.toLowerCase().startsWith("zh"
|
|
|
151
153
|
let n = De.framework ?? {}, v = De[f] ?? {}, t = ae[e] || n[e] || v[e] || be[e] || e;
|
|
152
154
|
if (t === e) return e;
|
|
153
155
|
typeof t == "string" && (t = { "zh-CN": t });
|
|
154
|
-
let r = t[
|
|
155
|
-
return
|
|
156
|
+
let r = t[Le.value];
|
|
157
|
+
return Le.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (r = t["zh-cn"]), A.map((d, z) => {
|
|
156
158
|
r = r.replace(`$${z}`, d);
|
|
157
159
|
}), r;
|
|
158
160
|
}), W3 = L3, Z8 = (e, ...A) => W3(e, ...A).value, T8 = (e) => {
|
|
159
|
-
|
|
160
|
-
}, y8 = () =>
|
|
161
|
+
Le.value = e;
|
|
162
|
+
}, y8 = () => Le, ce = R("light"), oe = R({
|
|
161
163
|
light: {},
|
|
162
164
|
dark: {}
|
|
163
165
|
}), Ne = R({
|
|
@@ -488,7 +490,7 @@ const Vn = (e, A) => {
|
|
|
488
490
|
...A.transitionConfig || {}
|
|
489
491
|
};
|
|
490
492
|
return a;
|
|
491
|
-
}), n = fe(), v =
|
|
493
|
+
}), n = fe(), v = Be(), t = R([]), r = B(() => t.value.filter((u) => {
|
|
492
494
|
var a;
|
|
493
495
|
return (a = u.meta) == null ? void 0 : a.isOpen;
|
|
494
496
|
})), d = (u) => {
|
|
@@ -554,7 +556,7 @@ const Vn = (e, A) => {
|
|
|
554
556
|
[
|
|
555
557
|
u.needTransition ? (L(), U(
|
|
556
558
|
Nv,
|
|
557
|
-
Df(
|
|
559
|
+
Df(ge({ key: 0 }, f.value)),
|
|
558
560
|
{
|
|
559
561
|
default: M(() => [
|
|
560
562
|
(L(!0), F(
|
|
@@ -641,7 +643,7 @@ const Vn = (e, A) => {
|
|
|
641
643
|
setup(e) {
|
|
642
644
|
const A = e;
|
|
643
645
|
R3(), o3(), N3();
|
|
644
|
-
const f =
|
|
646
|
+
const f = Be(), n = R(!1), v = R(!1), t = R(!1), r = B(() => n.value && A.showLayout), d = B(() => v.value && A.showLayout && A.showAside), z = B(() => n.value && A.showLayout && A.showTabs), P = B(() => A.routerViewVisible ?? !0), X = B(() => KA.overlay.visible ?? !1), m = B(() => ({
|
|
645
647
|
"das-web-app-overlay-show": X.value === !0,
|
|
646
648
|
"das-web-app-overlay-hide": X.value === !1,
|
|
647
649
|
"das-web-app-overlay-destroy": X.value === "destroy"
|
|
@@ -938,7 +940,7 @@ const Vn = (e, A) => {
|
|
|
938
940
|
}, m = (u) => {
|
|
939
941
|
Y.menu.setCollapse(u.detail[0]), Y.menu.triggerEventListener("toggleCollapse", u.detail[0]);
|
|
940
942
|
};
|
|
941
|
-
return (u, a) => t.value.length > 0 ? (L(), F("das-ce-menu",
|
|
943
|
+
return (u, a) => t.value.length > 0 ? (L(), F("das-ce-menu", ge({
|
|
942
944
|
key: 0,
|
|
943
945
|
theme: n.value,
|
|
944
946
|
modelValue: d.value,
|
|
@@ -974,7 +976,7 @@ const Vn = (e, A) => {
|
|
|
974
976
|
}, m = () => {
|
|
975
977
|
Y.tab.triggerEventListener("onToggleFullScreen");
|
|
976
978
|
};
|
|
977
|
-
return (u, a) => t.value.length > 0 ? (L(), F("das-ce-tabs",
|
|
979
|
+
return (u, a) => t.value.length > 0 ? (L(), F("das-ce-tabs", ge({
|
|
978
980
|
key: 0,
|
|
979
981
|
theme: v.value,
|
|
980
982
|
modelValue: r.value,
|
|
@@ -987,7 +989,7 @@ const Vn = (e, A) => {
|
|
|
987
989
|
"on:toggleFullScreen": m
|
|
988
990
|
}), null, 16, d7)) : k("v-if", !0);
|
|
989
991
|
}
|
|
990
|
-
}), Nn = R("/das-micro-app"), cA = R([]),
|
|
992
|
+
}), Nn = R("/das-micro-app"), cA = R([]), _e = R(!1), Se = R([]), Ke = R(!0);
|
|
991
993
|
let jA = null, ZA = null, de = null;
|
|
992
994
|
const ue = (e, A, f) => {
|
|
993
995
|
var v, t, r, d;
|
|
@@ -1051,7 +1053,7 @@ const ue = (e, A, f) => {
|
|
|
1051
1053
|
);
|
|
1052
1054
|
}, nA = {
|
|
1053
1055
|
loadMicroApp: (e) => {
|
|
1054
|
-
|
|
1056
|
+
_e.value = !0;
|
|
1055
1057
|
const A = cA.value.find((r) => r.name === e), f = cA.value.find((r) => r.actived), n = !!A, v = !(A != null && A.loaded), t = A == null ? void 0 : A.actived;
|
|
1056
1058
|
if (!n) {
|
|
1057
1059
|
f && (f.actived = !1);
|
|
@@ -1079,7 +1081,7 @@ const ue = (e, A, f) => {
|
|
|
1079
1081
|
}));
|
|
1080
1082
|
},
|
|
1081
1083
|
hideAllMicroApp: () => {
|
|
1082
|
-
|
|
1084
|
+
_e.value = !1, cA.value.map((e) => {
|
|
1083
1085
|
e.actived = !1;
|
|
1084
1086
|
});
|
|
1085
1087
|
},
|
|
@@ -1088,7 +1090,7 @@ const ue = (e, A, f) => {
|
|
|
1088
1090
|
A && (A.loaded = !1, A.actived = !1, A.dom = void 0);
|
|
1089
1091
|
},
|
|
1090
1092
|
unloadAllMicroApp: () => {
|
|
1091
|
-
|
|
1093
|
+
_e.value = !1, cA.value.map((e) => {
|
|
1092
1094
|
e.loaded = !1, e.actived = !1, e.dom = void 0;
|
|
1093
1095
|
});
|
|
1094
1096
|
},
|
|
@@ -1431,11 +1433,11 @@ const N7 = ["src", "entry", "name"], x7 = /* @__PURE__ */ fA({
|
|
|
1431
1433
|
} }
|
|
1432
1434
|
},
|
|
1433
1435
|
setup(e) {
|
|
1434
|
-
const A = e, f = B(() => !
|
|
1436
|
+
const A = e, f = B(() => !_e.value), n = B(() => ({
|
|
1435
1437
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
1436
1438
|
...A.transitionConfig
|
|
1437
1439
|
})), v = B(() => ({ showLayout: A.showLayout, showAside: A.showAside, showTabs: A.showTabs }));
|
|
1438
|
-
return (t, r) => (L(), U(i(Gf),
|
|
1440
|
+
return (t, r) => (L(), U(i(Gf), ge({
|
|
1439
1441
|
"transition-config": n.value,
|
|
1440
1442
|
"router-view-visible": f.value
|
|
1441
1443
|
}, v.value), {
|
|
@@ -1554,10 +1556,10 @@ const N7 = ["src", "entry", "name"], x7 = /* @__PURE__ */ fA({
|
|
|
1554
1556
|
d === "setItem" && window.sessionStorage.setItem(z, P), d === "getItem" && window.sessionStorage.getItem(z), d === "removeItem" && window.sessionStorage.removeItem(z), d === "clear" && window.sessionStorage.clear();
|
|
1555
1557
|
}), nA.addEventListenerFromMainApp("route", (r) => {
|
|
1556
1558
|
const { cmd: d, path: z } = r.data;
|
|
1557
|
-
d === "reload" && (
|
|
1558
|
-
|
|
1559
|
-
}, 300)), d === "unload" && (
|
|
1560
|
-
|
|
1559
|
+
d === "reload" && (Se.value.push(z), Ke.value = !1, setTimeout(() => {
|
|
1560
|
+
Ke.value = !0, Se.value = [];
|
|
1561
|
+
}, 300)), d === "unload" && (Se.value.push(z), Ke.value = !1, setTimeout(() => {
|
|
1562
|
+
Ke.value = !0, Se.value = [];
|
|
1561
1563
|
}, 100));
|
|
1562
1564
|
});
|
|
1563
1565
|
}, Ze = "/home", NA = "/application", y9 = [
|
|
@@ -1591,7 +1593,7 @@ const N7 = ["src", "entry", "name"], x7 = /* @__PURE__ */ fA({
|
|
|
1591
1593
|
excludeRoutes: A.excludeRoutes,
|
|
1592
1594
|
routeKeepAliveVisible: A.routeKeepAliveVisible
|
|
1593
1595
|
}));
|
|
1594
|
-
return (v, t) => (L(), U(i(Gf),
|
|
1596
|
+
return (v, t) => (L(), U(i(Gf), ge({ "transition-config": f.value }, n.value), {
|
|
1595
1597
|
header: M(() => [
|
|
1596
1598
|
sA(v.$slots, "header", {}, () => [
|
|
1597
1599
|
g(i(q9))
|
|
@@ -1664,7 +1666,7 @@ const N7 = ["src", "entry", "name"], x7 = /* @__PURE__ */ fA({
|
|
|
1664
1666
|
return P.value = !1, q;
|
|
1665
1667
|
};
|
|
1666
1668
|
u();
|
|
1667
|
-
const a = fe(), H =
|
|
1669
|
+
const a = fe(), H = Be();
|
|
1668
1670
|
return C(
|
|
1669
1671
|
() => a.currentRoute.value,
|
|
1670
1672
|
(p) => {
|
|
@@ -1782,13 +1784,13 @@ const N7 = ["src", "entry", "name"], x7 = /* @__PURE__ */ fA({
|
|
|
1782
1784
|
/* STABLE */
|
|
1783
1785
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
1784
1786
|
}
|
|
1785
|
-
}), B7 = /* @__PURE__ */ OA(k7, [["__scopeId", "data-v-816eb0f2"]]),
|
|
1787
|
+
}), B7 = /* @__PURE__ */ OA(k7, [["__scopeId", "data-v-816eb0f2"]]), We = ({ title: e = "", content: A = "", desc: f = [] }) => new Promise((n) => {
|
|
1786
1788
|
const v = document.createElement("div");
|
|
1787
1789
|
v.setAttribute("id", "entry-app-dialog"), document.body.appendChild(v);
|
|
1788
1790
|
const r = uA(B7, { title: e, content: A, desc: f, closeCallback: () => {
|
|
1789
|
-
|
|
1791
|
+
ef(null, v), document.body.removeChild(v), n(null);
|
|
1790
1792
|
} });
|
|
1791
|
-
|
|
1793
|
+
ef(r, v);
|
|
1792
1794
|
});
|
|
1793
1795
|
Mv(w7);
|
|
1794
1796
|
const Q7 = (e = {}) => {
|
|
@@ -1918,7 +1920,7 @@ const Q7 = (e = {}) => {
|
|
|
1918
1920
|
if (A.exitConfirmPages.includes(f) && !window.confirm(J("切换后已录入的数据将会丢失且不可恢复,确定切换?")))
|
|
1919
1921
|
throw new Error(J("取消切换"));
|
|
1920
1922
|
}
|
|
1921
|
-
},
|
|
1923
|
+
}, $e = (e, A) => {
|
|
1922
1924
|
if (!A || !A.length) return;
|
|
1923
1925
|
const f = JSON.parse(sessionStorage.getItem(e) || "{}");
|
|
1924
1926
|
if (f && JSON.stringify(f) !== "{}" && f != null && f.closeTabPageConfirm && f.closeTabPageConfirm.length) {
|
|
@@ -1939,7 +1941,7 @@ const Q7 = (e = {}) => {
|
|
|
1939
1941
|
return e ? { tenantConfig: null } : (G7(A), { tenantConfig: A });
|
|
1940
1942
|
}, zt = async () => {
|
|
1941
1943
|
const [e, A] = await rt().run({
|
|
1942
|
-
userId:
|
|
1944
|
+
userId: Qe().id,
|
|
1943
1945
|
pageSize: 20,
|
|
1944
1946
|
pageIndex: 1
|
|
1945
1947
|
});
|
|
@@ -2021,18 +2023,18 @@ function Zt(e) {
|
|
|
2021
2023
|
return jt.call(e);
|
|
2022
2024
|
}
|
|
2023
2025
|
var Tt = "[object Null]", yt = "[object Undefined]", Wn = ie ? ie.toStringTag : void 0;
|
|
2024
|
-
function
|
|
2026
|
+
function Ue(e) {
|
|
2025
2027
|
return e == null ? e === void 0 ? yt : Tt : Wn && Wn in Object(e) ? xt(e) : Zt(e);
|
|
2026
2028
|
}
|
|
2027
|
-
function
|
|
2029
|
+
function Je(e) {
|
|
2028
2030
|
var A = typeof e;
|
|
2029
2031
|
return e != null && (A == "object" || A == "function");
|
|
2030
2032
|
}
|
|
2031
2033
|
var Lt = "[object AsyncFunction]", Wt = "[object Function]", It = "[object GeneratorFunction]", Et = "[object Proxy]";
|
|
2032
2034
|
function B9(e) {
|
|
2033
|
-
if (!
|
|
2035
|
+
if (!Je(e))
|
|
2034
2036
|
return !1;
|
|
2035
|
-
var A =
|
|
2037
|
+
var A = Ue(e);
|
|
2036
2038
|
return A == Wt || A == It || A == Lt || A == Et;
|
|
2037
2039
|
}
|
|
2038
2040
|
var Of = BA["__core-js_shared__"], In = function() {
|
|
@@ -2060,7 +2062,7 @@ var kt = /[\\^$.*+?()[\]{}|]/g, Bt = /^\[object .+?Constructor\]$/, Qt = Functio
|
|
|
2060
2062
|
"^" + Ut.call(Jt).replace(kt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2061
2063
|
);
|
|
2062
2064
|
function Ft(e) {
|
|
2063
|
-
if (!
|
|
2065
|
+
if (!Je(e) || wt(e))
|
|
2064
2066
|
return !1;
|
|
2065
2067
|
var A = B9(e) ? Yt : Bt;
|
|
2066
2068
|
return A.test(ve(e));
|
|
@@ -2072,9 +2074,9 @@ function te(e, A) {
|
|
|
2072
2074
|
var f = ht(e, A);
|
|
2073
2075
|
return Ft(f) ? f : void 0;
|
|
2074
2076
|
}
|
|
2075
|
-
var
|
|
2077
|
+
var Ie = te(BA, "Map"), Ee = te(Object, "create");
|
|
2076
2078
|
function St() {
|
|
2077
|
-
this.__data__ =
|
|
2079
|
+
this.__data__ = Ee ? Ee(null) : {}, this.size = 0;
|
|
2078
2080
|
}
|
|
2079
2081
|
function Kt(e) {
|
|
2080
2082
|
var A = this.has(e) && delete this.__data__[e];
|
|
@@ -2083,7 +2085,7 @@ function Kt(e) {
|
|
|
2083
2085
|
var Ct = "__lodash_hash_undefined__", _t = Object.prototype, $t = _t.hasOwnProperty;
|
|
2084
2086
|
function Ar(e) {
|
|
2085
2087
|
var A = this.__data__;
|
|
2086
|
-
if (
|
|
2088
|
+
if (Ee) {
|
|
2087
2089
|
var f = A[e];
|
|
2088
2090
|
return f === Ct ? void 0 : f;
|
|
2089
2091
|
}
|
|
@@ -2092,12 +2094,12 @@ function Ar(e) {
|
|
|
2092
2094
|
var er = Object.prototype, fr = er.hasOwnProperty;
|
|
2093
2095
|
function nr(e) {
|
|
2094
2096
|
var A = this.__data__;
|
|
2095
|
-
return
|
|
2097
|
+
return Ee ? A[e] !== void 0 : fr.call(A, e);
|
|
2096
2098
|
}
|
|
2097
2099
|
var vr = "__lodash_hash_undefined__";
|
|
2098
2100
|
function tr(e, A) {
|
|
2099
2101
|
var f = this.__data__;
|
|
2100
|
-
return this.size += this.has(e) ? 0 : 1, f[e] =
|
|
2102
|
+
return this.size += this.has(e) ? 0 : 1, f[e] = Ee && A === void 0 ? vr : A, this;
|
|
2101
2103
|
}
|
|
2102
2104
|
function Ae(e) {
|
|
2103
2105
|
var A = -1, f = e == null ? 0 : e.length;
|
|
@@ -2114,7 +2116,7 @@ Ae.prototype.set = tr;
|
|
|
2114
2116
|
function rr() {
|
|
2115
2117
|
this.size = 0, this.__data__ = {
|
|
2116
2118
|
hash: new Ae(),
|
|
2117
|
-
map: new (
|
|
2119
|
+
map: new (Ie || YA)(),
|
|
2118
2120
|
string: new Ae()
|
|
2119
2121
|
};
|
|
2120
2122
|
}
|
|
@@ -2157,7 +2159,7 @@ function ar(e, A) {
|
|
|
2157
2159
|
var f = this.__data__;
|
|
2158
2160
|
if (f instanceof YA) {
|
|
2159
2161
|
var n = f.__data__;
|
|
2160
|
-
if (!
|
|
2162
|
+
if (!Ie || n.length < br - 1)
|
|
2161
2163
|
return n.push([e, A]), this.size = ++f.size, this;
|
|
2162
2164
|
f = this.__data__ = new le(n);
|
|
2163
2165
|
}
|
|
@@ -2211,17 +2213,17 @@ function qr(e, A) {
|
|
|
2211
2213
|
n[f] = A(f);
|
|
2212
2214
|
return n;
|
|
2213
2215
|
}
|
|
2214
|
-
function
|
|
2216
|
+
function Ye(e) {
|
|
2215
2217
|
return e != null && typeof e == "object";
|
|
2216
2218
|
}
|
|
2217
2219
|
var mr = "[object Arguments]";
|
|
2218
2220
|
function wn(e) {
|
|
2219
|
-
return
|
|
2221
|
+
return Ye(e) && Ue(e) == mr;
|
|
2220
2222
|
}
|
|
2221
2223
|
var U9 = Object.prototype, pr = U9.hasOwnProperty, Hr = U9.propertyIsEnumerable, lr = wn(/* @__PURE__ */ function() {
|
|
2222
2224
|
return arguments;
|
|
2223
2225
|
}()) ? wn : function(e) {
|
|
2224
|
-
return
|
|
2226
|
+
return Ye(e) && pr.call(e, "callee") && !Hr.call(e, "callee");
|
|
2225
2227
|
}, $f = Array.isArray;
|
|
2226
2228
|
function Vr() {
|
|
2227
2229
|
return !1;
|
|
@@ -2239,7 +2241,7 @@ var jr = "[object Arguments]", Zr = "[object Array]", Tr = "[object Boolean]", y
|
|
|
2239
2241
|
AA[Ur] = AA[Jr] = AA[Yr] = AA[Fr] = AA[hr] = AA[Sr] = AA[Kr] = AA[Cr] = AA[_r] = !0;
|
|
2240
2242
|
AA[jr] = AA[Zr] = AA[Qr] = AA[Tr] = AA[Gr] = AA[yr] = AA[Lr] = AA[Wr] = AA[Ir] = AA[Er] = AA[wr] = AA[Mr] = AA[gr] = AA[kr] = AA[Br] = !1;
|
|
2241
2243
|
function $r(e) {
|
|
2242
|
-
return
|
|
2244
|
+
return Ye(e) && F9(e.length) && !!AA[Ue(e)];
|
|
2243
2245
|
}
|
|
2244
2246
|
function An(e) {
|
|
2245
2247
|
return function(A) {
|
|
@@ -2300,7 +2302,7 @@ function uP(e) {
|
|
|
2300
2302
|
}
|
|
2301
2303
|
var XP = Object.prototype, bP = XP.hasOwnProperty;
|
|
2302
2304
|
function aP(e) {
|
|
2303
|
-
if (!
|
|
2305
|
+
if (!Je(e))
|
|
2304
2306
|
return uP(e);
|
|
2305
2307
|
var A = en(e), f = [];
|
|
2306
2308
|
for (var n in e)
|
|
@@ -2367,9 +2369,9 @@ function RP(e) {
|
|
|
2367
2369
|
function oP(e) {
|
|
2368
2370
|
return nv(e, nn, fv);
|
|
2369
2371
|
}
|
|
2370
|
-
var wf = te(BA, "DataView"), Mf = te(BA, "Promise"), gf = te(BA, "Set"), kf = te(BA, "WeakMap"), Jn = "[object Map]", NP = "[object Object]", Yn = "[object Promise]", Fn = "[object Set]", hn = "[object WeakMap]", Sn = "[object DataView]", xP = ve(wf), DP = ve(
|
|
2371
|
-
(wf && QA(new wf(new ArrayBuffer(1))) != Sn ||
|
|
2372
|
-
var A =
|
|
2372
|
+
var wf = te(BA, "DataView"), Mf = te(BA, "Promise"), gf = te(BA, "Set"), kf = te(BA, "WeakMap"), Jn = "[object Map]", NP = "[object Object]", Yn = "[object Promise]", Fn = "[object Set]", hn = "[object WeakMap]", Sn = "[object DataView]", xP = ve(wf), DP = ve(Ie), jP = ve(Mf), ZP = ve(gf), TP = ve(kf), QA = Ue;
|
|
2373
|
+
(wf && QA(new wf(new ArrayBuffer(1))) != Sn || Ie && QA(new Ie()) != Jn || Mf && QA(Mf.resolve()) != Yn || gf && QA(new gf()) != Fn || kf && QA(new kf()) != hn) && (QA = function(e) {
|
|
2374
|
+
var A = Ue(e), f = A == NP ? e.constructor : void 0, n = f ? ve(f) : "";
|
|
2373
2375
|
if (n)
|
|
2374
2376
|
switch (n) {
|
|
2375
2377
|
case xP:
|
|
@@ -2450,7 +2452,7 @@ var $n = Object.create, rd = /* @__PURE__ */ function() {
|
|
|
2450
2452
|
function e() {
|
|
2451
2453
|
}
|
|
2452
2454
|
return function(A) {
|
|
2453
|
-
if (!
|
|
2455
|
+
if (!Je(A))
|
|
2454
2456
|
return {};
|
|
2455
2457
|
if ($n)
|
|
2456
2458
|
return $n(A);
|
|
@@ -2464,20 +2466,20 @@ function Pd(e) {
|
|
|
2464
2466
|
}
|
|
2465
2467
|
var dd = "[object Map]";
|
|
2466
2468
|
function zd(e) {
|
|
2467
|
-
return
|
|
2469
|
+
return Ye(e) && QA(e) == dd;
|
|
2468
2470
|
}
|
|
2469
2471
|
var A9 = se && se.isMap, ud = A9 ? An(A9) : zd, Xd = "[object Set]";
|
|
2470
2472
|
function bd(e) {
|
|
2471
|
-
return
|
|
2473
|
+
return Ye(e) && QA(e) == Xd;
|
|
2472
2474
|
}
|
|
2473
2475
|
var e9 = se && se.isSet, ad = e9 ? An(e9) : bd, cd = 1, id = 2, sd = 4, vv = "[object Arguments]", qd = "[object Array]", md = "[object Boolean]", pd = "[object Date]", Hd = "[object Error]", tv = "[object Function]", ld = "[object GeneratorFunction]", Vd = "[object Map]", Od = "[object Number]", rv = "[object Object]", Rd = "[object RegExp]", od = "[object Set]", Nd = "[object String]", xd = "[object Symbol]", Dd = "[object WeakMap]", jd = "[object ArrayBuffer]", Zd = "[object DataView]", Td = "[object Float32Array]", yd = "[object Float64Array]", Ld = "[object Int8Array]", Wd = "[object Int16Array]", Id = "[object Int32Array]", Ed = "[object Uint8Array]", wd = "[object Uint8ClampedArray]", Md = "[object Uint16Array]", gd = "[object Uint32Array]", $ = {};
|
|
2474
2476
|
$[vv] = $[qd] = $[jd] = $[Zd] = $[md] = $[pd] = $[Td] = $[yd] = $[Ld] = $[Wd] = $[Id] = $[Vd] = $[Od] = $[rv] = $[Rd] = $[od] = $[Nd] = $[xd] = $[Ed] = $[wd] = $[Md] = $[gd] = !0;
|
|
2475
2477
|
$[Hd] = $[tv] = $[Dd] = !1;
|
|
2476
|
-
function
|
|
2478
|
+
function Af(e, A, f, n, v, t) {
|
|
2477
2479
|
var r, d = A & cd, z = A & id, P = A & sd;
|
|
2478
2480
|
if (r !== void 0)
|
|
2479
2481
|
return r;
|
|
2480
|
-
if (!
|
|
2482
|
+
if (!Je(e))
|
|
2481
2483
|
return e;
|
|
2482
2484
|
var X = $f(e);
|
|
2483
2485
|
if (X) {
|
|
@@ -2501,18 +2503,18 @@ function $e(e, A, f, n, v, t) {
|
|
|
2501
2503
|
if (a)
|
|
2502
2504
|
return a;
|
|
2503
2505
|
t.set(e, r), ad(e) ? e.forEach(function(q) {
|
|
2504
|
-
r.add(
|
|
2506
|
+
r.add(Af(q, A, f, q, e, t));
|
|
2505
2507
|
}) : ud(e) && e.forEach(function(q, b) {
|
|
2506
|
-
r.set(b,
|
|
2508
|
+
r.set(b, Af(q, A, f, b, e, t));
|
|
2507
2509
|
});
|
|
2508
2510
|
var H = P ? z ? oP : RP : z ? nn : fn, p = X ? void 0 : H(e);
|
|
2509
2511
|
return cr(p || e, function(q, b) {
|
|
2510
|
-
p && (b = q, q = e[b]), G9(r, b,
|
|
2512
|
+
p && (b = q, q = e[b]), G9(r, b, Af(q, A, f, b, e, t));
|
|
2511
2513
|
}), r;
|
|
2512
2514
|
}
|
|
2513
2515
|
var kd = 1, Bd = 4;
|
|
2514
2516
|
function qe(e) {
|
|
2515
|
-
return
|
|
2517
|
+
return Af(e, kd | Bd);
|
|
2516
2518
|
}
|
|
2517
2519
|
const tf = (e, A = "") => {
|
|
2518
2520
|
for (let f of e)
|
|
@@ -2753,7 +2755,7 @@ const tf = (e, A = "") => {
|
|
|
2753
2755
|
const [e, A] = await fz().run();
|
|
2754
2756
|
return e ? { loginConfig: null } : { loginConfig: A };
|
|
2755
2757
|
}, zv = async () => {
|
|
2756
|
-
const e =
|
|
2758
|
+
const e = Ge() ? vz : nz, [A, f] = await e().run();
|
|
2757
2759
|
return A ? { platformConfig: null } : { platformConfig: f };
|
|
2758
2760
|
}, uv = R(null), Xz = async () => {
|
|
2759
2761
|
const [e, A] = await rz().run();
|
|
@@ -3054,8 +3056,8 @@ const tf = (e, A = "") => {
|
|
|
3054
3056
|
var r, d;
|
|
3055
3057
|
n.value && (r = f.value) != null && r.contentWindow && ((d = f.value.contentWindow) == null || d.postMessage(
|
|
3056
3058
|
{
|
|
3057
|
-
token:
|
|
3058
|
-
userInfo:
|
|
3059
|
+
token: Ge(),
|
|
3060
|
+
userInfo: Qe(),
|
|
3059
3061
|
projectInfo: UA()
|
|
3060
3062
|
},
|
|
3061
3063
|
A.src
|
|
@@ -3063,7 +3065,7 @@ const tf = (e, A = "") => {
|
|
|
3063
3065
|
}, t = () => {
|
|
3064
3066
|
n.value = !0, v();
|
|
3065
3067
|
};
|
|
3066
|
-
return
|
|
3068
|
+
return ke(() => {
|
|
3067
3069
|
n.value = !1;
|
|
3068
3070
|
}), (r, d) => (L(), F("div", Yz, [
|
|
3069
3071
|
r.src ? (L(), U(i(hf), {
|
|
@@ -3094,7 +3096,7 @@ const tf = (e, A = "") => {
|
|
|
3094
3096
|
J7(P), Cv(P);
|
|
3095
3097
|
}, f = async () => {
|
|
3096
3098
|
const [r, d] = await Sz().run({ userId: l9().id });
|
|
3097
|
-
r || !d || JSON.stringify(d) === "{}" || (
|
|
3099
|
+
r || !d || JSON.stringify(d) === "{}" || (nf.open({
|
|
3098
3100
|
key: "loginTip",
|
|
3099
3101
|
message: J("上次登录信息"),
|
|
3100
3102
|
placement: "bottomRight",
|
|
@@ -3120,14 +3122,14 @@ const tf = (e, A = "") => {
|
|
|
3120
3122
|
return hA(async () => {
|
|
3121
3123
|
if (await n(), e()) return;
|
|
3122
3124
|
await dt(), await Pt();
|
|
3123
|
-
const r =
|
|
3125
|
+
const r = Ge();
|
|
3124
3126
|
O9({ accessToken: r }), v.value = !0;
|
|
3125
3127
|
}), {
|
|
3126
3128
|
platformInited: v,
|
|
3127
3129
|
initNextTick: t
|
|
3128
3130
|
};
|
|
3129
3131
|
}, Cz = (e) => {
|
|
3130
|
-
const A = fe(), f =
|
|
3132
|
+
const A = fe(), f = Be(), { getMenu: n } = n3(), { getHistoryList: v, getSearchList: t } = au(), r = R(!0), d = R([]), z = R([]), P = R(!1), X = R(!1);
|
|
3131
3133
|
C(
|
|
3132
3134
|
() => f.path,
|
|
3133
3135
|
(H) => {
|
|
@@ -3183,7 +3185,7 @@ const tf = (e, A = "") => {
|
|
|
3183
3185
|
// 树打平之后保留的数据
|
|
3184
3186
|
filterFlatCondition: (N) => N.type === 7
|
|
3185
3187
|
}), W.nav.setProjects(q || []), b && W.nav.setActiveProject(b));
|
|
3186
|
-
const o =
|
|
3188
|
+
const o = Qe() ?? {}, Z = o != null && o.headPicture ? Pf(o.headPicture) : void 0;
|
|
3187
3189
|
z.value = [...y7].map((N) => ({
|
|
3188
3190
|
...N,
|
|
3189
3191
|
label: J(N.label)
|
|
@@ -3220,11 +3222,11 @@ const tf = (e, A = "") => {
|
|
|
3220
3222
|
const { entryMenu: e } = af();
|
|
3221
3223
|
W.menu.addEventListener("onItemClick", async (A) => {
|
|
3222
3224
|
zA.innerSet = !0;
|
|
3223
|
-
const f = wA(
|
|
3225
|
+
const f = wA(ff(A.applicationCode)).filter((n) => !n.disable && !n.expired).find((n) => n.code === A.code);
|
|
3224
3226
|
if (!(f && !f.routeUrl)) {
|
|
3225
3227
|
if (!f) {
|
|
3226
3228
|
const { title: n, content: v, desc: t } = await Pn(f);
|
|
3227
|
-
await
|
|
3229
|
+
await We({ title: n, content: v, desc: t });
|
|
3228
3230
|
return;
|
|
3229
3231
|
}
|
|
3230
3232
|
e({ currentMenu: f });
|
|
@@ -3248,7 +3250,7 @@ const tf = (e, A = "") => {
|
|
|
3248
3250
|
const t = K();
|
|
3249
3251
|
if (!((P = t.subAppList) != null && P.length) || t.subAppList.findIndex((X) => X.code === v.code) === -1) return;
|
|
3250
3252
|
const z = (pA().tabMap[v.code] ?? []).map((X) => X.code);
|
|
3251
|
-
z && z.length &&
|
|
3253
|
+
z && z.length && $e(v.code, z), A(v);
|
|
3252
3254
|
});
|
|
3253
3255
|
const { enter: n } = He();
|
|
3254
3256
|
return W.nav.addEventListener("fullScreenHandle", n), {};
|
|
@@ -3273,7 +3275,7 @@ const tf = (e, A = "") => {
|
|
|
3273
3275
|
);
|
|
3274
3276
|
const { deleteApp: P } = Oe(), { entryMenu: X } = af(), { reloadRoute: m, unloadRoute: u } = bv(), a = (b) => {
|
|
3275
3277
|
var j;
|
|
3276
|
-
const c = wA(
|
|
3278
|
+
const c = wA(ff(b.applicationCode)).find((o) => o.code === b.code), V = (((j = pA().tabMap) == null ? void 0 : j[b.applicationCode]) ?? []).find((o) => o.code === b.code);
|
|
3277
3279
|
X({ currentMenu: c, route: { path: V.path, query: V.query ?? {} } });
|
|
3278
3280
|
}, H = (b) => {
|
|
3279
3281
|
if (!b || !b.length) return;
|
|
@@ -3324,7 +3326,7 @@ const tf = (e, A = "") => {
|
|
|
3324
3326
|
pA().currentCode !== b.currentCode && (zA.innerSet = !0, a(b));
|
|
3325
3327
|
}), W.tab.addEventListener("onItemRemove", (b) => {
|
|
3326
3328
|
const c = pA(), s = K().currentSubAppCode ?? "";
|
|
3327
|
-
c.tabMap[s].findIndex((o) => o.code === b.code) !== -1 && (
|
|
3329
|
+
c.tabMap[s].findIndex((o) => o.code === b.code) !== -1 && ($e(b.applicationCode, [b.code]), p({ type: "me", data: b }));
|
|
3328
3330
|
}), W.tab.addEventListener("onMenuClick", (b) => {
|
|
3329
3331
|
let c = [];
|
|
3330
3332
|
const s = pA().tabMap[b.applicationCode] ?? [];
|
|
@@ -3332,7 +3334,7 @@ const tf = (e, A = "") => {
|
|
|
3332
3334
|
const V = s.findIndex((j) => j.code === b.data.value);
|
|
3333
3335
|
c = s.slice(V + 1);
|
|
3334
3336
|
}
|
|
3335
|
-
b.type.key === "other" && (c = s.filter((V) => V.code !== b.data.value)), b.type.key === "all" && (c = [...s]),
|
|
3337
|
+
b.type.key === "other" && (c = s.filter((V) => V.code !== b.data.value)), b.type.key === "all" && (c = [...s]), $e(
|
|
3336
3338
|
b.applicationCode,
|
|
3337
3339
|
c.map((V) => V.code)
|
|
3338
3340
|
), p({ type: b.type.key, data: b.data });
|
|
@@ -3342,8 +3344,8 @@ const tf = (e, A = "") => {
|
|
|
3342
3344
|
W.iframeView.triggerEventListener("onRefreshCurrentPage");
|
|
3343
3345
|
return;
|
|
3344
3346
|
}
|
|
3345
|
-
|
|
3346
|
-
const c = wA(
|
|
3347
|
+
$e(b.applicationCode, [b.code]);
|
|
3348
|
+
const c = wA(ff(b.applicationCode)).find((j) => j.code === b.code);
|
|
3347
3349
|
if (!c) return;
|
|
3348
3350
|
if (c.routeUrl !== b.path) {
|
|
3349
3351
|
m([b.path]), u([`/${b.applicationPath}${c.routeUrl}`]), await X({ currentMenu: c });
|
|
@@ -3390,14 +3392,14 @@ const tf = (e, A = "") => {
|
|
|
3390
3392
|
if (o) return !1;
|
|
3391
3393
|
q = V ?? [], b = j ?? [];
|
|
3392
3394
|
}
|
|
3393
|
-
if (q.length ? tf(q) || (await
|
|
3395
|
+
if (q.length ? tf(q) || (await We({
|
|
3394
3396
|
title: J("提示"),
|
|
3395
3397
|
content: J("此应用菜单已过期/已收回/配置有误") + "<br/>" + J("无法使用")
|
|
3396
|
-
}), c = !0) : (await
|
|
3398
|
+
}), c = !0) : (await We({ title: J("提示"), content: J("此应用未配置菜单/无菜单权限") + "<br/>" + J("无法使用") }), c = !0), c) return !1;
|
|
3397
3399
|
const s = { ...u, menus: q, originalMenus: b };
|
|
3398
3400
|
return VA([{ key: "subAppList", value: s }]), !0;
|
|
3399
3401
|
}, P = async (u) => {
|
|
3400
|
-
var G, h, PA, xA,
|
|
3402
|
+
var G, h, PA, xA, Fe;
|
|
3401
3403
|
const { microApp: a = null, menuCode: H = "", menuPath: p = "", route: q = {} } = u;
|
|
3402
3404
|
let b = q;
|
|
3403
3405
|
if (!a && p) {
|
|
@@ -3475,7 +3477,7 @@ const tf = (e, A = "") => {
|
|
|
3475
3477
|
return;
|
|
3476
3478
|
}
|
|
3477
3479
|
if (c && s) {
|
|
3478
|
-
(
|
|
3480
|
+
(Fe = K().subAppList) == null || Fe.forEach((dA) => {
|
|
3479
3481
|
const aA = { ...dA, value: dA.code, label: dA.name };
|
|
3480
3482
|
W.nav.appendItem(aA);
|
|
3481
3483
|
}), W.nav.setActiveItem(I.code), W.menu.setItems(o);
|
|
@@ -3747,7 +3749,7 @@ const tf = (e, A = "") => {
|
|
|
3747
3749
|
client_id: "sys",
|
|
3748
3750
|
state: +/* @__PURE__ */ new Date(),
|
|
3749
3751
|
redirect_uri: d,
|
|
3750
|
-
logout_token:
|
|
3752
|
+
logout_token: Ge(),
|
|
3751
3753
|
// 写用户访问日志逻辑配合
|
|
3752
3754
|
logout: "true"
|
|
3753
3755
|
};
|
|
@@ -3758,7 +3760,7 @@ const tf = (e, A = "") => {
|
|
|
3758
3760
|
const r = "personCenter", z = (K().appcategorys || []).map((a) => a.apps).flat(), { originalMenus: P = [] } = await rn(r), m = wA(P).filter((a) => a.isMenu && a.routeUrl).find((a) => a.routeUrl === "/userInfo");
|
|
3759
3761
|
if (m != null && m.disable || m != null && m.expired) {
|
|
3760
3762
|
const { title: a, content: H, desc: p } = await Pn(m);
|
|
3761
|
-
await
|
|
3763
|
+
await We({ title: a, content: H, desc: p });
|
|
3762
3764
|
return;
|
|
3763
3765
|
}
|
|
3764
3766
|
const u = z.find((a) => a.code === r);
|
|
@@ -3778,7 +3780,7 @@ const tf = (e, A = "") => {
|
|
|
3778
3780
|
};
|
|
3779
3781
|
}, tu = R9.get("/convert/tenant"), ru = Jf.get("/platform/withdefault"), av = () => {
|
|
3780
3782
|
const e = ne(), A = R(!1), f = R(""), n = R(""), v = () => {
|
|
3781
|
-
f.value =
|
|
3783
|
+
f.value = Qe().id, n.value = l9().tenantId, A.value = !0;
|
|
3782
3784
|
};
|
|
3783
3785
|
W.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
3784
3786
|
v();
|
|
@@ -3844,7 +3846,7 @@ const tf = (e, A = "") => {
|
|
|
3844
3846
|
const { item: v, keyword: t, cb: r } = n;
|
|
3845
3847
|
if (v != null && v.disable || v != null && v.expired) {
|
|
3846
3848
|
const { title: X, content: m, desc: u } = await Pn(v);
|
|
3847
|
-
await
|
|
3849
|
+
await We({ title: X, content: m, desc: u });
|
|
3848
3850
|
return;
|
|
3849
3851
|
}
|
|
3850
3852
|
await uu().run({ searchVal: t, clickData: v });
|
|
@@ -3868,7 +3870,7 @@ const tf = (e, A = "") => {
|
|
|
3868
3870
|
}), cu = () => {
|
|
3869
3871
|
WA.addEventListenerFromMicroApp("iot:change-instance", (e) => {
|
|
3870
3872
|
const A = K(), f = A.currentSubAppCode;
|
|
3871
|
-
let n =
|
|
3873
|
+
let n = ff(f);
|
|
3872
3874
|
n.forEach((t) => {
|
|
3873
3875
|
t.fixed && (t.name = e.data.instanceInfo.instanceName);
|
|
3874
3876
|
}), W.menu.setItems(n);
|
|
@@ -3906,7 +3908,7 @@ const tf = (e, A = "") => {
|
|
|
3906
3908
|
b3();
|
|
3907
3909
|
});
|
|
3908
3910
|
}, qu = df.get("/platform/login/pwd-advance-notify-check"), mu = () => {
|
|
3909
|
-
const e = R([]), A = R(null), f = R([]), { entryApp: n } =
|
|
3911
|
+
const e = R([]), A = R(null), f = R([]), { entryApp: n } = vf.hooks.useEntryApp(), v = () => {
|
|
3910
3912
|
var z;
|
|
3911
3913
|
const d = (((z = K().appcategorys) == null ? void 0 : z.map((P) => P.apps).flat()) ?? []).find((P) => P.code === "messagecenter");
|
|
3912
3914
|
d && n({ microApp: d });
|
|
@@ -3922,8 +3924,8 @@ const tf = (e, A = "") => {
|
|
|
3922
3924
|
const z = UA().id;
|
|
3923
3925
|
e.value = r.filter(
|
|
3924
3926
|
(P) => P.projectId === z || P.projectId === 0 || P.projectId === "0"
|
|
3925
|
-
), f.value && f.value.length && (f.value.forEach((P) =>
|
|
3926
|
-
|
|
3927
|
+
), f.value && f.value.length && (f.value.forEach((P) => nf.close(P)), f.value = []), await GA(), e.value.forEach((P, X) => {
|
|
3928
|
+
nf.info({
|
|
3927
3929
|
key: P.id,
|
|
3928
3930
|
class: "message-center-notify",
|
|
3929
3931
|
message: P.title,
|
|
@@ -3955,7 +3957,7 @@ const tf = (e, A = "") => {
|
|
|
3955
3957
|
};
|
|
3956
3958
|
hA(async () => {
|
|
3957
3959
|
await zf(), t();
|
|
3958
|
-
}),
|
|
3960
|
+
}), ke(() => {
|
|
3959
3961
|
A.value && A.value.disconnect(), A.value = null;
|
|
3960
3962
|
});
|
|
3961
3963
|
}, pu = "v1", Hu = pe(`/api/enterpriseright/permission/${pu}`), cv = pe("/api/device-relation/deviceproject/v1/project/device/video", Vu), lu = Ff.get("/permissionset/user-portal-menu");
|
|
@@ -4575,9 +4577,9 @@ const Ju = /* @__PURE__ */ fA({
|
|
|
4575
4577
|
let v = document.body.querySelector("#video-dialog");
|
|
4576
4578
|
v || (v = document.createElement("div"), v.setAttribute("id", "video-dialog-container"), document.body.appendChild(v));
|
|
4577
4579
|
const r = uA(Ju, { gridNum: A, deviceList: f, closeCallback: () => {
|
|
4578
|
-
|
|
4580
|
+
ef(null, v), document.body.removeChild(v), n(null);
|
|
4579
4581
|
} });
|
|
4580
|
-
|
|
4582
|
+
ef(r, v);
|
|
4581
4583
|
});
|
|
4582
4584
|
}, Fu = () => {
|
|
4583
4585
|
const e = R(4), A = R([]), f = R(null), n = async (t) => {
|
|
@@ -4618,7 +4620,7 @@ const Ju = /* @__PURE__ */ fA({
|
|
|
4618
4620
|
};
|
|
4619
4621
|
return hA(async () => {
|
|
4620
4622
|
await zf(), v();
|
|
4621
|
-
}),
|
|
4623
|
+
}), ke(() => {
|
|
4622
4624
|
f.value && f.value.disconnect(), f.value = null;
|
|
4623
4625
|
}), {
|
|
4624
4626
|
gridNum: e,
|
|
@@ -4753,7 +4755,7 @@ var O;
|
|
|
4753
4755
|
(function(e) {
|
|
4754
4756
|
e[e.Trace = 0] = "Trace", e[e.Debug = 1] = "Debug", e[e.Information = 2] = "Information", e[e.Warning = 3] = "Warning", e[e.Error = 4] = "Error", e[e.Critical = 5] = "Critical", e[e.None = 6] = "None";
|
|
4755
4757
|
})(O || (O = {}));
|
|
4756
|
-
class
|
|
4758
|
+
class we {
|
|
4757
4759
|
constructor() {
|
|
4758
4760
|
}
|
|
4759
4761
|
/** @inheritDoc */
|
|
@@ -4761,7 +4763,7 @@ class Ee {
|
|
|
4761
4763
|
log(A, f) {
|
|
4762
4764
|
}
|
|
4763
4765
|
}
|
|
4764
|
-
|
|
4766
|
+
we.instance = new we();
|
|
4765
4767
|
const _u = "8.0.7";
|
|
4766
4768
|
class rA {
|
|
4767
4769
|
static isRequired(A, f) {
|
|
@@ -4796,7 +4798,7 @@ class vA {
|
|
|
4796
4798
|
return typeof process < "u" && process.release && process.release.name === "node";
|
|
4797
4799
|
}
|
|
4798
4800
|
}
|
|
4799
|
-
function
|
|
4801
|
+
function Me(e, A) {
|
|
4800
4802
|
let f = "";
|
|
4801
4803
|
return ee(e) ? (f = `Binary data of length ${e.byteLength}`, A && (f += `. Content: '${$u(e)}'`)) : typeof e == "string" && (f = `String data of length ${e.length}`, A && (f += `. Content: '${e}'`)), f;
|
|
4802
4804
|
}
|
|
@@ -4814,7 +4816,7 @@ function ee(e) {
|
|
|
4814
4816
|
}
|
|
4815
4817
|
async function qv(e, A, f, n, v, t) {
|
|
4816
4818
|
const r = {}, [d, z] = me();
|
|
4817
|
-
r[d] = z, e.log(O.Trace, `(${A} transport) sending data. ${
|
|
4819
|
+
r[d] = z, e.log(O.Trace, `(${A} transport) sending data. ${Me(v, t.logMessageContent)}.`);
|
|
4818
4820
|
const P = ee(v) ? "arraybuffer" : "text", X = await f.post(n, {
|
|
4819
4821
|
content: v,
|
|
4820
4822
|
headers: { ...r, ...t.headers },
|
|
@@ -4825,7 +4827,7 @@ async function qv(e, A, f, n, v, t) {
|
|
|
4825
4827
|
e.log(O.Trace, `(${A} transport) request complete. Response status: ${X.statusCode}.`);
|
|
4826
4828
|
}
|
|
4827
4829
|
function A5(e) {
|
|
4828
|
-
return e === void 0 ? new rf(O.Information) : e === null ?
|
|
4830
|
+
return e === void 0 ? new rf(O.Information) : e === null ? we.instance : e.log !== void 0 ? e : new rf(e);
|
|
4829
4831
|
}
|
|
4830
4832
|
class e5 {
|
|
4831
4833
|
constructor(A, f) {
|
|
@@ -5783,7 +5785,7 @@ class b9 {
|
|
|
5783
5785
|
const n = `${A}&_=${Date.now()}`;
|
|
5784
5786
|
this._logger.log(O.Trace, `(LongPolling transport) polling: ${n}.`);
|
|
5785
5787
|
const v = await this._httpClient.get(n, f);
|
|
5786
|
-
v.statusCode === 204 ? (this._logger.log(O.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : v.statusCode !== 200 ? (this._logger.log(O.Error, `(LongPolling transport) Unexpected response code: ${v.statusCode}.`), this._closeError = new _A(v.statusText || "", v.statusCode), this._running = !1) : v.content ? (this._logger.log(O.Trace, `(LongPolling transport) data received. ${
|
|
5788
|
+
v.statusCode === 204 ? (this._logger.log(O.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : v.statusCode !== 200 ? (this._logger.log(O.Error, `(LongPolling transport) Unexpected response code: ${v.statusCode}.`), this._closeError = new _A(v.statusText || "", v.statusCode), this._running = !1) : v.content ? (this._logger.log(O.Trace, `(LongPolling transport) data received. ${Me(v.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(v.content)) : this._logger.log(O.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
5787
5789
|
} catch (n) {
|
|
5788
5790
|
this._running ? n instanceof dn ? this._logger.log(O.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(O.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
|
|
5789
5791
|
}
|
|
@@ -5847,7 +5849,7 @@ class H5 {
|
|
|
5847
5849
|
r.onmessage = (d) => {
|
|
5848
5850
|
if (this.onreceive)
|
|
5849
5851
|
try {
|
|
5850
|
-
this._logger.log(O.Trace, `(SSE transport) data received. ${
|
|
5852
|
+
this._logger.log(O.Trace, `(SSE transport) data received. ${Me(d.data, this._options.logMessageContent)}.`), this.onreceive(d.data);
|
|
5851
5853
|
} catch (z) {
|
|
5852
5854
|
this._close(z);
|
|
5853
5855
|
return;
|
|
@@ -5898,7 +5900,7 @@ class l5 {
|
|
|
5898
5900
|
let X = null;
|
|
5899
5901
|
typeof ErrorEvent < "u" && P instanceof ErrorEvent ? X = P.error : X = "There was an error with the transport", this._logger.log(O.Information, `(WebSockets transport) ${X}.`);
|
|
5900
5902
|
}, r.onmessage = (P) => {
|
|
5901
|
-
if (this._logger.log(O.Trace, `(WebSockets transport) data received. ${
|
|
5903
|
+
if (this._logger.log(O.Trace, `(WebSockets transport) data received. ${Me(P.data, this._logMessageContent)}.`), this.onreceive)
|
|
5902
5904
|
try {
|
|
5903
5905
|
this.onreceive(P.data);
|
|
5904
5906
|
} catch (X) {
|
|
@@ -5916,7 +5918,7 @@ class l5 {
|
|
|
5916
5918
|
});
|
|
5917
5919
|
}
|
|
5918
5920
|
send(A) {
|
|
5919
|
-
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(O.Trace, `(WebSockets transport) sending data. ${
|
|
5921
|
+
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(O.Trace, `(WebSockets transport) sending data. ${Me(A, this._logMessageContent)}.`), this._webSocket.send(A), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
|
|
5920
5922
|
}
|
|
5921
5923
|
stop() {
|
|
5922
5924
|
return this._webSocket && this._close(void 0), Promise.resolve();
|
|
@@ -6170,10 +6172,10 @@ function O5(e, A) {
|
|
|
6170
6172
|
}
|
|
6171
6173
|
class un {
|
|
6172
6174
|
constructor(A) {
|
|
6173
|
-
this._transport = A, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
6175
|
+
this._transport = A, this._buffer = [], this._executing = !0, this._sendBufferedData = new Ce(), this._transportResult = new Ce(), this._sendLoopPromise = this._sendLoop();
|
|
6174
6176
|
}
|
|
6175
6177
|
send(A) {
|
|
6176
|
-
return this._bufferData(A), this._transportResult || (this._transportResult = new
|
|
6178
|
+
return this._bufferData(A), this._transportResult || (this._transportResult = new Ce()), this._transportResult.promise;
|
|
6177
6179
|
}
|
|
6178
6180
|
stop() {
|
|
6179
6181
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -6189,7 +6191,7 @@ class un {
|
|
|
6189
6191
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
6190
6192
|
break;
|
|
6191
6193
|
}
|
|
6192
|
-
this._sendBufferedData = new
|
|
6194
|
+
this._sendBufferedData = new Ce();
|
|
6193
6195
|
const A = this._transportResult;
|
|
6194
6196
|
this._transportResult = void 0;
|
|
6195
6197
|
const f = typeof this._buffer[0] == "string" ? this._buffer.join("") : un._concatBuffers(this._buffer);
|
|
@@ -6209,7 +6211,7 @@ class un {
|
|
|
6209
6211
|
return n.buffer;
|
|
6210
6212
|
}
|
|
6211
6213
|
}
|
|
6212
|
-
class
|
|
6214
|
+
class Ce {
|
|
6213
6215
|
constructor() {
|
|
6214
6216
|
this.promise = new Promise((A, f) => [this._resolver, this._rejecter] = [A, f]);
|
|
6215
6217
|
}
|
|
@@ -6235,7 +6237,7 @@ class o5 {
|
|
|
6235
6237
|
throw new Error("Invalid input for JSON hub protocol. Expected a string.");
|
|
6236
6238
|
if (!A)
|
|
6237
6239
|
return [];
|
|
6238
|
-
f === null && (f =
|
|
6240
|
+
f === null && (f = we.instance);
|
|
6239
6241
|
const n = oA.parse(A), v = [];
|
|
6240
6242
|
for (const t of n) {
|
|
6241
6243
|
const r = JSON.parse(t);
|
|
@@ -6378,7 +6380,7 @@ class D5 {
|
|
|
6378
6380
|
if (A.logger === void 0 && (A.logger = this.logger), !this.url)
|
|
6379
6381
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
6380
6382
|
const f = new V5(this.url, A);
|
|
6381
|
-
return zn.create(f, this.logger ||
|
|
6383
|
+
return zn.create(f, this.logger || we.instance, this.protocol || new o5(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
6382
6384
|
}
|
|
6383
6385
|
}
|
|
6384
6386
|
function j5(e) {
|
|
@@ -6398,7 +6400,7 @@ const T5 = () => {
|
|
|
6398
6400
|
}, sf = "v1", y5 = SA(`/api/graphics-engine/component/${sf}`, (e) => (e.customErrorMessage = () => "", e)), L5 = SA(`/api/portal/manager/${sf}`, (e) => (e.customErrorMessage = () => "", e)), W5 = SA(`/api/speech-base/speech/${sf}`, (e) => (e.customErrorMessage = () => "", e)), c9 = y5.get("/component/client/heartbeat"), I5 = L5.get("/basics/by-alias");
|
|
6399
6401
|
W5.post("/control/callBack");
|
|
6400
6402
|
const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.get("/permissionset/application"), M5 = () => {
|
|
6401
|
-
const e =
|
|
6403
|
+
const e = Be(), { entryApp: A } = vf.hooks.useEntryApp(), { entryMenu: f } = vf.hooks.useEntryMenu();
|
|
6402
6404
|
let n = null;
|
|
6403
6405
|
return hA(async () => {
|
|
6404
6406
|
var b;
|
|
@@ -6469,7 +6471,7 @@ const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.g
|
|
|
6469
6471
|
z.value = !0;
|
|
6470
6472
|
}, 2e3);
|
|
6471
6473
|
}, X = (c) => {
|
|
6472
|
-
const s =
|
|
6474
|
+
const s = Ge(), V = JSON.parse(atob(s.split(".")[1])).sub;
|
|
6473
6475
|
T5().on(`${c}:${V}`, async function(o) {
|
|
6474
6476
|
let Z = r(o);
|
|
6475
6477
|
if (Z)
|
|
@@ -6494,7 +6496,7 @@ const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.g
|
|
|
6494
6496
|
}, 5e3), p.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
6495
6497
|
};
|
|
6496
6498
|
window.addEventListener("online", () => q("online")), window.addEventListener("offline", () => q("offline"));
|
|
6497
|
-
}),
|
|
6499
|
+
}), ke(() => {
|
|
6498
6500
|
n && clearInterval(n);
|
|
6499
6501
|
}), {};
|
|
6500
6502
|
}, qf = "v1", g5 = pe(`/api/fms/report/${qf}`), Xn = pe(`/api/emergency/manage/${qf}`), k5 = Ff.get("/permissionset/user-portal-menu"), mv = pe(`/api/alarm/config/${qf}`), B5 = pe(`/api/alarm/run-time/${qf}`), Q5 = mv.get("/alarm-definition/status-option"), G5 = B5.post("/record/handling"), U5 = mv.get("/alarm-level/prompttone"), J5 = g5.get("/alarm/rule/list"), Y5 = o9.get("/controller/space-children-all-type"), F5 = o9.get("/controller/fuzzy-area-small"), h5 = Xn.get("/emergency-event/event/type"), S5 = Xn.get("/emergency-event/event/level"), K5 = Xn.get("/emergency-plan/plan/handle-time"), C5 = { class: "handle-alarm-container" }, _5 = { class: "select-check" }, $5 = { class: "form-box" }, A6 = { class: "select-check" }, e6 = { style: { "margin-left": "8px" } }, f6 = { class: "foot-btn-box" }, n6 = {
|
|
@@ -6596,7 +6598,7 @@ const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.g
|
|
|
6596
6598
|
X.value.reportTheme = "";
|
|
6597
6599
|
}, xA = (E, x) => {
|
|
6598
6600
|
x.length > 0 && (q.value = x[0].path), P.value.reportPosition = E, V.value = "";
|
|
6599
|
-
},
|
|
6601
|
+
}, Fe = (E) => {
|
|
6600
6602
|
E && (X.value.reportPosition = "", q.value = ""), E ? (P.value.reportPosition = null, q.value = "", b.value = w("告警对象位置").value) : (P.value.reportPosition = null, q.value = "", b.value = w("请选择").value);
|
|
6601
6603
|
}, iA = (E) => {
|
|
6602
6604
|
E && (X.value.reportTheme = ""), E ? (P.value.reportTheme = "", c.value = w("告警对象").value) : (P.value.reportTheme = "", c.value = w("请输入").value);
|
|
@@ -6616,9 +6618,9 @@ const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.g
|
|
|
6616
6618
|
}, [x, y] = await S5(E).run();
|
|
6617
6619
|
if (x) return {};
|
|
6618
6620
|
const MA = { 1: w("一级").value, 2: w("二级").value, 3: w("三级").value, 4: w("四级").value };
|
|
6619
|
-
a.value = y.map((
|
|
6620
|
-
id: `${
|
|
6621
|
-
name: MA[
|
|
6621
|
+
a.value = y.map((he) => ({
|
|
6622
|
+
id: `${he}`,
|
|
6623
|
+
name: MA[he] ? MA[he] : he
|
|
6622
6624
|
})), y.length && !P.value.eventLevelId && (P.value.eventLevelId = a.value[0].id, an());
|
|
6623
6625
|
}, an = async () => {
|
|
6624
6626
|
const E = {
|
|
@@ -6877,7 +6879,7 @@ const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.g
|
|
|
6877
6879
|
modelValue: o.value,
|
|
6878
6880
|
"onUpdate:modelValue": x[12] || (x[12] = (y) => o.value = y),
|
|
6879
6881
|
checkboxType: "default",
|
|
6880
|
-
onChange:
|
|
6882
|
+
onChange: Fe,
|
|
6881
6883
|
size: "middle"
|
|
6882
6884
|
}, {
|
|
6883
6885
|
default: M(() => [
|
|
@@ -7050,7 +7052,7 @@ const E5 = SA(`/api/tool/event-bus/${sf}/`), xf = E5.post("/publish"), w5 = Yf.g
|
|
|
7050
7052
|
}), t6 = /* @__PURE__ */ OA(v6, [["__scopeId", "data-v-bae36ff1"]]), r6 = (e, A, f) => ({
|
|
7051
7053
|
handleAlarmVue: () => uA(t6, {
|
|
7052
7054
|
handerIds: A.value,
|
|
7053
|
-
projectId:
|
|
7055
|
+
projectId: Qe().id,
|
|
7054
7056
|
ref: e,
|
|
7055
7057
|
onEmitFn: (v, t) => {
|
|
7056
7058
|
}
|
|
@@ -7237,7 +7239,7 @@ const R6 = () => {
|
|
|
7237
7239
|
var N;
|
|
7238
7240
|
const D = [];
|
|
7239
7241
|
D.push({ alarmId: l.recordId }), v.value = D, (N = f.value) == null || N.open();
|
|
7240
|
-
}, { entryApp: m } =
|
|
7242
|
+
}, { entryApp: m } = vf.hooks.useEntryApp(), u = (l) => {
|
|
7241
7243
|
N9(l.equipmentCode, l.equipmentPanelCode);
|
|
7242
7244
|
}, { handleAlarmVue: a } = r6(f, v), H = async () => {
|
|
7243
7245
|
var N;
|
|
@@ -7251,7 +7253,7 @@ const R6 = () => {
|
|
|
7251
7253
|
}, b = (l) => {
|
|
7252
7254
|
if (!l) return;
|
|
7253
7255
|
const D = O6();
|
|
7254
|
-
|
|
7256
|
+
nf.open({
|
|
7255
7257
|
key: D,
|
|
7256
7258
|
class: "alarm-notify",
|
|
7257
7259
|
message: w("新告警").value,
|
|
@@ -7338,7 +7340,7 @@ const R6 = () => {
|
|
|
7338
7340
|
const { alarmSocket: A, creatAlarmSocket: f, audioObj: n, audioAlarmRef: v, handleAlarmVue: t } = R6();
|
|
7339
7341
|
return hA(async () => {
|
|
7340
7342
|
await zf(), f();
|
|
7341
|
-
}),
|
|
7343
|
+
}), ke(() => {
|
|
7342
7344
|
A.value && A.value.disconnect(), A.value = null;
|
|
7343
7345
|
}), (r, d) => (L(), F(
|
|
7344
7346
|
EA,
|
|
@@ -7562,11 +7564,11 @@ const T6 = [
|
|
|
7562
7564
|
},
|
|
7563
7565
|
{
|
|
7564
7566
|
path: NA,
|
|
7565
|
-
component: () => import("./index-
|
|
7567
|
+
component: () => import("./index-D6wvy23o.js")
|
|
7566
7568
|
},
|
|
7567
7569
|
{
|
|
7568
7570
|
path: L9,
|
|
7569
|
-
component: () => import("./index-
|
|
7571
|
+
component: () => import("./index-DSodtjfX.js")
|
|
7570
7572
|
}
|
|
7571
7573
|
], J8 = {
|
|
7572
7574
|
routes: T6,
|
|
@@ -7602,7 +7604,7 @@ export {
|
|
|
7602
7604
|
T8 as h,
|
|
7603
7605
|
j8 as i,
|
|
7604
7606
|
y8 as j,
|
|
7605
|
-
|
|
7607
|
+
Le as k,
|
|
7606
7608
|
zA as l,
|
|
7607
7609
|
D8 as m,
|
|
7608
7610
|
be as n,
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as e, z as t, B as n, A as i, C as r, e as u, k as o, v as g, n as m, g as p, j as D, r as l, x as L, y as b, f as c, i as h, F as A, G as T, o as y, D as R, E as W, J as I, H as M, s as F, h as V, m as f, q as k, w as v, t as w } from "./index-
|
|
1
|
+
import { I as e, z as t, B as n, A as i, C as r, e as u, k as o, v as g, n as m, g as p, j as D, r as l, x as L, y as b, f as c, i as h, F as A, G as T, o as y, D as R, E as W, J as I, H as M, s as F, h as V, m as f, q as k, w as v, t as w } from "./index-DHTeOa5D.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": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.60",
|
|
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.60",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.60",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.60",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.60",
|
|
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.60",
|
|
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/i18n/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
const
|
|
1
|
+
import { reactive as m, ref as g, computed as w } from "vue";
|
|
2
|
+
const u = {
|
|
3
3
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
4
4
|
下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
5
5
|
审核: { "zh-CN": "审核", en: "Approve", _appCode: "framework" },
|
|
@@ -23,55 +23,57 @@ const z = {
|
|
|
23
23
|
离线数: { "zh-CN": "离线数", en: "Offline", _appCode: "framework" },
|
|
24
24
|
已停用: { "zh-CN": "已停用", en: "Deactivated", _appCode: "framework" },
|
|
25
25
|
未激活: { "zh-CN": "未激活", en: "Inactive", _appCode: "framework" }
|
|
26
|
-
}, p =
|
|
27
|
-
var
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
for (const
|
|
31
|
-
for (const o in a
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
var
|
|
35
|
-
const
|
|
36
|
-
for (const
|
|
37
|
-
if (
|
|
38
|
-
const o = (
|
|
39
|
-
o && (
|
|
26
|
+
}, p = m({}), l = m({}), C = m({});
|
|
27
|
+
var h;
|
|
28
|
+
const z = (h = navigator.language) != null && h.toLowerCase().startsWith("zh") ? "zh-CN" : "en", c = g(z), N = "dasI18n", v = (e = {}, n) => {
|
|
29
|
+
const s = n === "global", t = !s, r = {};
|
|
30
|
+
for (const a in e)
|
|
31
|
+
for (const o in e[a])
|
|
32
|
+
r[o] || (r[o] = {}), r[o][a] = e[a][o] ?? "", s && (l[o] || (l[o] = {}), l[o][a] = r[o][a]), t && (p[o] || (p[o] = {}), p[o][a] = r[o][a]);
|
|
33
|
+
}, i = (e = {}, n) => {
|
|
34
|
+
var r;
|
|
35
|
+
const s = n === "global", t = !s;
|
|
36
|
+
for (const a in e)
|
|
37
|
+
if (s && !l[a] && (l[a] = e[a]), t) {
|
|
38
|
+
const o = (r = e[a]) != null && r._appCode ? e[a]._appCode.toLowerCase() : "";
|
|
39
|
+
o && (C[o] || (C[o] = {}), C[o][a] = e[a]), p[a] || (p[a] = e[a]);
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
var
|
|
43
|
-
const n =
|
|
44
|
-
n &&
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
}, L = async (e) => {
|
|
42
|
+
var r, a;
|
|
43
|
+
const n = document.documentElement;
|
|
44
|
+
n && n.setAttribute("lang", c.value);
|
|
45
|
+
const s = window[N];
|
|
46
|
+
s && i(s, "global"), i(u);
|
|
47
|
+
let t = Object.assign(((r = e == null ? void 0 : e.i18n) == null ? void 0 : r.glob) || {});
|
|
48
|
+
(a = e == null ? void 0 : e.microApps) == null || a.map((o) => {
|
|
49
|
+
var f;
|
|
50
|
+
t = Object.assign(t, ((f = o.i18n) == null ? void 0 : f.glob) || {});
|
|
51
|
+
}), Object.values(t).filter((o) => !!o).flat().map((o) => i(o));
|
|
52
|
+
}, _ = (e) => {
|
|
51
53
|
let n = "";
|
|
52
|
-
const
|
|
54
|
+
const s = /\/([^\/]+)\/([^\/]+)\//, t = e.match(s);
|
|
53
55
|
return t && t.length >= 3 && (n = t[1] + "/" + t[2]), n ? n.toLowerCase() : "";
|
|
54
|
-
}, k = (
|
|
55
|
-
const
|
|
56
|
-
let t =
|
|
57
|
-
if (
|
|
58
|
-
typeof
|
|
59
|
-
let o =
|
|
60
|
-
return c.value === "zh-CN" &&
|
|
61
|
-
o = o.replace(`$${
|
|
56
|
+
}, k = (e, ...n) => w(() => {
|
|
57
|
+
const s = _(location.pathname);
|
|
58
|
+
let t = C.framework ?? {}, r = C[s] ?? {}, a = l[e] || t[e] || r[e] || p[e] || e;
|
|
59
|
+
if (a === e) return e;
|
|
60
|
+
typeof a == "string" && (a = { "zh-CN": a });
|
|
61
|
+
let o = a[c.value];
|
|
62
|
+
return c.value === "zh-CN" && a["zh-cn"] && !a["zh-CN"] && (o = a["zh-cn"]), n.map((f, d) => {
|
|
63
|
+
o = o.replace(`$${d}`, f);
|
|
62
64
|
}), o;
|
|
63
|
-
}),
|
|
64
|
-
c.value =
|
|
65
|
-
},
|
|
65
|
+
}), b = k, I = (e, ...n) => b(e, ...n).value, A = (e) => {
|
|
66
|
+
c.value = e;
|
|
67
|
+
}, O = () => c;
|
|
66
68
|
export {
|
|
67
69
|
c as currentLang,
|
|
68
70
|
p as customLangeData,
|
|
69
71
|
k as getI18nRule,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
O as getLang,
|
|
73
|
+
b as i18n,
|
|
74
|
+
L as initI18n,
|
|
75
|
+
i as setI18nRule,
|
|
76
|
+
A as setLang,
|
|
77
|
+
v as setLangRule,
|
|
76
78
|
I as t
|
|
77
79
|
};
|
|
Binary file
|
package/index-CaTnOy_7.js.gz
DELETED
|
Binary file
|
package/index-DPLFD5gy.js.gz
DELETED
|
Binary file
|