@das-fed/web 6.4.0-dev.34 → 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-B3Zo7C9d.js → index-CRBeP89z.js} +204 -205
- package/index-CRBeP89z.js.gz +0 -0
- package/{packages/main-app-framework/index-BYJ_iw6e.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-DKcYM4y1.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-BGqxNwVK.js → index-BH90O_oP.js} +174 -176
- package/packages/main-app-framework/index-BH90O_oP.js.gz +0 -0
- package/{index-DJ8zDx6p.js → packages/main-app-framework/index-CwKf8xGn.js} +1 -1
- package/packages/main-app-framework/index-CwKf8xGn.js.gz +0 -0
- package/packages/main-app-framework/{index-FJjkdoP_.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-B3Zo7C9d.js.gz +0 -0
- package/index-DJ8zDx6p.js.gz +0 -0
- package/index-XC7gVyAV.js +0 -71
- package/index-XC7gVyAV.js.gz +0 -0
- package/packages/main-app-framework/index-BGqxNwVK.js.gz +0 -0
- package/packages/main-app-framework/index-BYJ_iw6e.js.gz +0 -0
- package/packages/main-app-framework/index-C2gtyFHH.js +0 -71
- package/packages/main-app-framework/index-C2gtyFHH.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as E, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as V, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as x, renderList as Tt, withDirectives as Ie, resolveDynamicComponent as at, vShow as Pe, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as B, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as Q, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as ws, getCurrentInstance as _s, onActivated as bs, createTextVNode as ye, toDisplayString as
|
|
1
|
+
import { ref as E, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as V, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as x, renderList as Tt, withDirectives as Ie, resolveDynamicComponent as at, vShow as Pe, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as B, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as Q, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as ws, getCurrentInstance as _s, onActivated as bs, createTextVNode as ye, toDisplayString as re, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as le, toRefs as Is, isRef as Ts } from "vue";
|
|
2
2
|
import { initTheme as Es, setThemeRule as Ss } from "@das-fed/web/packages/theme/index";
|
|
3
3
|
import { initI18n as ks, i18n as N } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as R } from "@das-fed/web/packages/layout/index";
|
|
@@ -8,9 +8,9 @@ import { createRouter as $s, createWebHistory as Ds, useRouter as Ye, useRoute a
|
|
|
8
8
|
import { DasChangePwdRef as Os, DasChangePwd as Ms } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
9
9
|
import { DasChangeEnterprises as Bs } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
10
10
|
import { pureImageSrc as On } from "@das-fed/utils/pure-image-src";
|
|
11
|
-
import { DasNotification as
|
|
11
|
+
import { DasNotification as Wt } from "@das-fed/ui/packages/components/notification/index";
|
|
12
12
|
import { flatTree as Oe, filterTreeArray as Rs, isEmpty as xs, treeFind as lo, updateFavIcon as Qs, dateFormat as js, runPromiseByQueue as Ns, objEqual as wn, setShowWatermark as _n, setShowLayout as bn, getUrlParams as Hs, withToken as Us } from "@das-fed/utils/common-tools";
|
|
13
|
-
import { getSubApps as J, getTabInfo as ve, getPersonalInfo as
|
|
13
|
+
import { getSubApps as J, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as Mn, getProjectInfo as Fe, getToken as Bn, getUserInfo as cr, getMenus as zt } from "@das-fed/utils/common-info";
|
|
14
14
|
import { setProcessEngineProject as lr, setProcessEngineToken as ur } from "@das-fed/utils/process-engine-info";
|
|
15
15
|
import { oauthServer as dr, justauth as Rn, enterpriseright as xn, iotModules as Fs, portal as We, systemConfiguration as Qn } from "@das-fed/utils/api-services/modules";
|
|
16
16
|
import { createService as et } from "@das-fed/utils/create-api-service";
|
|
@@ -28,8 +28,8 @@ import { setPersonalInfo as Gs } from "@das-fed/utils/common-info/set-personal-i
|
|
|
28
28
|
import { devicePanelShow as fr, closeDevicePanel as Xs, alarmDevicePanelShow as Zs, closeAlarmPanel as Ys } from "@das-fed/ui/packages/business-components/device-panel/index";
|
|
29
29
|
import { DasIcon as qe, DasAutoRegisterIcon as hr } from "@das-fed/ui/packages/components/icon/index";
|
|
30
30
|
import { socketService as Hn } from "@das-fed/utils/webSocket-service";
|
|
31
|
-
import { userInfoNextTick as ea, tokenNextTick as
|
|
32
|
-
import { mainAppFramework as
|
|
31
|
+
import { userInfoNextTick as ea, tokenNextTick as en } from "@das-fed/utils/nextTiken";
|
|
32
|
+
import { mainAppFramework as qt } from "@das-fed/web/packages/main-app-framework/index";
|
|
33
33
|
import { DasTooltip as me } from "@das-fed/ui/packages/components/tooltip/index";
|
|
34
34
|
import { DasLivePlayer as ta } from "@das-fed/ui/packages/components/live-player/index";
|
|
35
35
|
import { DasSpin as gr } from "@das-fed/ui/packages/components/spin/index";
|
|
@@ -92,7 +92,7 @@ const fa = (t) => {
|
|
|
92
92
|
s.use(pa, t), s.use(In);
|
|
93
93
|
const { router: a } = fa(t);
|
|
94
94
|
return s.use(a), s.mount(n || "#app"), { app: s, router: a, loading: e, store: In };
|
|
95
|
-
}, mr = Ne({}), vr = Ne({}),
|
|
95
|
+
}, mr = Ne({}), vr = Ne({}), Jt = E("zh-CN"), ha = "dasI18n", ho = (t, e) => {
|
|
96
96
|
const n = e === "global", o = !n;
|
|
97
97
|
for (const r in t)
|
|
98
98
|
n && (vr[r] = t[r]), o && (mr[r] = t[r]);
|
|
@@ -108,13 +108,13 @@ const fa = (t) => {
|
|
|
108
108
|
}, ga = (t, ...e) => H(() => {
|
|
109
109
|
const n = vr[t] || mr[t] || t;
|
|
110
110
|
if (n === t) return t;
|
|
111
|
-
let o = n[
|
|
112
|
-
return
|
|
111
|
+
let o = n[Jt.value];
|
|
112
|
+
return Jt.value === "zh-CN" && n["zh-cn"] && !n["zh-CN"] && (o = n["zh-cn"]), e.map((r, s) => {
|
|
113
113
|
o = o.replace(`$${s}`, r);
|
|
114
114
|
}), o;
|
|
115
115
|
}), ma = ga, Qg = (t, ...e) => ma(t, ...e).value, jg = (t) => {
|
|
116
|
-
|
|
117
|
-
}, Ng = () =>
|
|
116
|
+
Jt.value = t;
|
|
117
|
+
}, Ng = () => Jt, it = E("light"), yt = E({
|
|
118
118
|
light: {},
|
|
119
119
|
dark: {}
|
|
120
120
|
}), wt = E({
|
|
@@ -582,8 +582,8 @@ const go = (t, e) => {
|
|
|
582
582
|
app: F
|
|
583
583
|
} = _;
|
|
584
584
|
ca(I);
|
|
585
|
-
let z = !0,
|
|
586
|
-
(C === !1 || T === !1 || T === "false") && (z = !1,
|
|
585
|
+
let z = !0, ae = !0, Ce = !0;
|
|
586
|
+
(C === !1 || T === !1 || T === "false") && (z = !1, ae = !1, Ce = !1), (S === !1 || D === !1 || D === "false") && (ae = !1), (P === !1 || O === !1 || O === "false") && (Ce = !1), o.value = z, r.value = ae, s.value = Ce;
|
|
587
587
|
}
|
|
588
588
|
);
|
|
589
589
|
const y = H(() => ({
|
|
@@ -905,7 +905,7 @@ const go = (t, e) => {
|
|
|
905
905
|
"on:toggleFullScreen": u
|
|
906
906
|
}), null, 16, qa)) : j("v-if", !0);
|
|
907
907
|
}
|
|
908
|
-
}), mo = E("/das-micro-app"), de = E([]),
|
|
908
|
+
}), mo = E("/das-micro-app"), de = E([]), Ht = E(!1), Qt = E([]), jt = E(!0);
|
|
909
909
|
let Te = null, Ee = null, rt = null;
|
|
910
910
|
const st = (t, e, n) => {
|
|
911
911
|
var r, s, a, c;
|
|
@@ -969,7 +969,7 @@ const st = (t, e, n) => {
|
|
|
969
969
|
);
|
|
970
970
|
}, ee = {
|
|
971
971
|
loadMicroApp: (t) => {
|
|
972
|
-
|
|
972
|
+
Ht.value = !0;
|
|
973
973
|
const e = de.value.find((a) => a.name === t), n = de.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
|
|
974
974
|
if (!o) {
|
|
975
975
|
n && (n.actived = !1);
|
|
@@ -997,7 +997,7 @@ const st = (t, e, n) => {
|
|
|
997
997
|
}));
|
|
998
998
|
},
|
|
999
999
|
hideAllMicroApp: () => {
|
|
1000
|
-
|
|
1000
|
+
Ht.value = !1, de.value.map((t) => {
|
|
1001
1001
|
t.actived = !1;
|
|
1002
1002
|
});
|
|
1003
1003
|
},
|
|
@@ -1006,7 +1006,7 @@ const st = (t, e, n) => {
|
|
|
1006
1006
|
e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
|
|
1007
1007
|
},
|
|
1008
1008
|
unloadAllMicroApp: () => {
|
|
1009
|
-
|
|
1009
|
+
Ht.value = !1, de.value.map((t) => {
|
|
1010
1010
|
t.loaded = !1, t.actived = !1, t.dom = void 0;
|
|
1011
1011
|
});
|
|
1012
1012
|
},
|
|
@@ -1349,7 +1349,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1349
1349
|
} }
|
|
1350
1350
|
},
|
|
1351
1351
|
setup(t) {
|
|
1352
|
-
const e = t, n = H(() => !
|
|
1352
|
+
const e = t, n = H(() => !Ht.value), o = H(() => ({
|
|
1353
1353
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
1354
1354
|
...e.transitionConfig
|
|
1355
1355
|
})), r = H(() => ({ showLayout: e.showLayout, showAside: e.showAside, showTabs: e.showTabs }));
|
|
@@ -1472,10 +1472,10 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1472
1472
|
c === "setItem" && window.sessionStorage.setItem(l, i), c === "getItem" && window.sessionStorage.getItem(l), c === "removeItem" && window.sessionStorage.removeItem(l), c === "clear" && window.sessionStorage.clear();
|
|
1473
1473
|
}), ee.addEventListenerFromMainApp("route", (a) => {
|
|
1474
1474
|
const { cmd: c, path: l } = a.data;
|
|
1475
|
-
c === "reload" && (
|
|
1476
|
-
|
|
1477
|
-
}, 300)), c === "unload" && (
|
|
1478
|
-
|
|
1475
|
+
c === "reload" && (Qt.value.push(l), jt.value = !1, setTimeout(() => {
|
|
1476
|
+
jt.value = !0, Qt.value = [];
|
|
1477
|
+
}, 300)), c === "unload" && (Qt.value.push(l), jt.value = !1, setTimeout(() => {
|
|
1478
|
+
jt.value = !0, Qt.value = [];
|
|
1479
1479
|
}, 100));
|
|
1480
1480
|
});
|
|
1481
1481
|
}, Ct = "/", je = "/application", br = [
|
|
@@ -1677,7 +1677,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1677
1677
|
class: "desc-item"
|
|
1678
1678
|
}, [
|
|
1679
1679
|
ye(
|
|
1680
|
-
|
|
1680
|
+
re(r),
|
|
1681
1681
|
1
|
|
1682
1682
|
/* TEXT */
|
|
1683
1683
|
)
|
|
@@ -1700,9 +1700,9 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1700
1700
|
const r = document.createElement("div");
|
|
1701
1701
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1702
1702
|
const a = he(Ei, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1703
|
-
|
|
1703
|
+
Vt(null, r), document.body.removeChild(r), o(null);
|
|
1704
1704
|
} });
|
|
1705
|
-
|
|
1705
|
+
Vt(a, r);
|
|
1706
1706
|
});
|
|
1707
1707
|
Ss(bi);
|
|
1708
1708
|
const Si = "data:image/png;base64,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", ki = "data:image/png;base64,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", Pi = (t = {}) => {
|
|
@@ -1829,7 +1829,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1829
1829
|
if (e.exitConfirmPages.includes(n) && !window.confirm("切换后已录入的数据将会丢失且不可恢复,确定切换?"))
|
|
1830
1830
|
throw new Error("取消切换");
|
|
1831
1831
|
}
|
|
1832
|
-
},
|
|
1832
|
+
}, Ut = (t, e) => {
|
|
1833
1833
|
if (!e || !e.length) return;
|
|
1834
1834
|
const n = JSON.parse(sessionStorage.getItem(t) || "{}");
|
|
1835
1835
|
if (n && JSON.stringify(n) !== "{}" && n != null && n.closeTabPageConfirm && n.closeTabPageConfirm.length) {
|
|
@@ -1850,7 +1850,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1850
1850
|
return t ? { tenantConfig: null } : (Li(e), { tenantConfig: e });
|
|
1851
1851
|
}, Ki = async () => {
|
|
1852
1852
|
const [t, e] = await zi().run({
|
|
1853
|
-
userId:
|
|
1853
|
+
userId: Yt().id,
|
|
1854
1854
|
pageSize: 20,
|
|
1855
1855
|
pageIndex: 1
|
|
1856
1856
|
});
|
|
@@ -1866,7 +1866,7 @@ function Yi() {
|
|
|
1866
1866
|
function kr(t, e) {
|
|
1867
1867
|
return t === e || t !== t && e !== e;
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function tn(t, e) {
|
|
1870
1870
|
for (var n = t.length; n--; )
|
|
1871
1871
|
if (kr(t[n][0], e))
|
|
1872
1872
|
return n;
|
|
@@ -1874,21 +1874,21 @@ function en(t, e) {
|
|
|
1874
1874
|
}
|
|
1875
1875
|
var ec = Array.prototype, tc = ec.splice;
|
|
1876
1876
|
function nc(t) {
|
|
1877
|
-
var e = this.__data__, n =
|
|
1877
|
+
var e = this.__data__, n = tn(e, t);
|
|
1878
1878
|
if (n < 0)
|
|
1879
1879
|
return !1;
|
|
1880
1880
|
var o = e.length - 1;
|
|
1881
1881
|
return n == o ? e.pop() : tc.call(e, n, 1), --this.size, !0;
|
|
1882
1882
|
}
|
|
1883
1883
|
function oc(t) {
|
|
1884
|
-
var e = this.__data__, n =
|
|
1884
|
+
var e = this.__data__, n = tn(e, t);
|
|
1885
1885
|
return n < 0 ? void 0 : e[n][1];
|
|
1886
1886
|
}
|
|
1887
1887
|
function rc(t) {
|
|
1888
|
-
return
|
|
1888
|
+
return tn(this.__data__, t) > -1;
|
|
1889
1889
|
}
|
|
1890
1890
|
function sc(t, e) {
|
|
1891
|
-
var n = this.__data__, o =
|
|
1891
|
+
var n = this.__data__, o = tn(n, t);
|
|
1892
1892
|
return o < 0 ? (++this.size, n.push([t, e])) : n[o][1] = e, this;
|
|
1893
1893
|
}
|
|
1894
1894
|
function He(t) {
|
|
@@ -2033,22 +2033,22 @@ function qc(t) {
|
|
|
2033
2033
|
var e = typeof t;
|
|
2034
2034
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function nn(t, e) {
|
|
2037
2037
|
var n = t.__data__;
|
|
2038
2038
|
return qc(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
|
|
2039
2039
|
}
|
|
2040
2040
|
function Jc(t) {
|
|
2041
|
-
var e =
|
|
2041
|
+
var e = nn(this, t).delete(t);
|
|
2042
2042
|
return this.size -= e ? 1 : 0, e;
|
|
2043
2043
|
}
|
|
2044
2044
|
function Kc(t) {
|
|
2045
|
-
return
|
|
2045
|
+
return nn(this, t).get(t);
|
|
2046
2046
|
}
|
|
2047
2047
|
function Gc(t) {
|
|
2048
|
-
return
|
|
2048
|
+
return nn(this, t).has(t);
|
|
2049
2049
|
}
|
|
2050
2050
|
function Xc(t, e) {
|
|
2051
|
-
var n =
|
|
2051
|
+
var n = nn(this, t), o = n.size;
|
|
2052
2052
|
return n.set(t, e), this.size += n.size == o ? 0 : 1, this;
|
|
2053
2053
|
}
|
|
2054
2054
|
function gt(t) {
|
|
@@ -2108,7 +2108,7 @@ function Or(t, e, n) {
|
|
|
2108
2108
|
var o = t[e];
|
|
2109
2109
|
(!(nl.call(t, e) && kr(o, n)) || n === void 0 && !(e in t)) && Dr(t, e, n);
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function on(t, e, n, o) {
|
|
2112
2112
|
var r = !n;
|
|
2113
2113
|
n || (n = {});
|
|
2114
2114
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
@@ -2200,7 +2200,7 @@ function qn(t) {
|
|
|
2200
2200
|
return Hr(t) ? jr(t) : Jl(t);
|
|
2201
2201
|
}
|
|
2202
2202
|
function Kl(t, e) {
|
|
2203
|
-
return t &&
|
|
2203
|
+
return t && on(e, qn(e), t);
|
|
2204
2204
|
}
|
|
2205
2205
|
function Gl(t) {
|
|
2206
2206
|
var e = [];
|
|
@@ -2222,7 +2222,7 @@ function Jn(t) {
|
|
|
2222
2222
|
return Hr(t) ? jr(t, !0) : Yl(t);
|
|
2223
2223
|
}
|
|
2224
2224
|
function eu(t, e) {
|
|
2225
|
-
return t &&
|
|
2225
|
+
return t && on(e, Jn(e), t);
|
|
2226
2226
|
}
|
|
2227
2227
|
var Ur = typeof exports == "object" && exports && !exports.nodeType && exports, $o = Ur && typeof module == "object" && module && !module.nodeType && module, tu = $o && $o.exports === Ur, Do = tu ? Be.Buffer : void 0, Oo = Do ? Do.allocUnsafe : void 0;
|
|
2228
2228
|
function nu(t, e) {
|
|
@@ -2253,7 +2253,7 @@ var su = Object.prototype, au = su.propertyIsEnumerable, Mo = Object.getOwnPrope
|
|
|
2253
2253
|
}));
|
|
2254
2254
|
} : Fr;
|
|
2255
2255
|
function iu(t, e) {
|
|
2256
|
-
return
|
|
2256
|
+
return on(t, Kn(t), e);
|
|
2257
2257
|
}
|
|
2258
2258
|
function Vr(t, e) {
|
|
2259
2259
|
for (var n = -1, o = e.length, r = t.length; ++n < o; )
|
|
@@ -2266,7 +2266,7 @@ var Wr = Nr(Object.getPrototypeOf, Object), cu = Object.getOwnPropertySymbols, z
|
|
|
2266
2266
|
return e;
|
|
2267
2267
|
} : Fr;
|
|
2268
2268
|
function lu(t, e) {
|
|
2269
|
-
return
|
|
2269
|
+
return on(t, zr(t), e);
|
|
2270
2270
|
}
|
|
2271
2271
|
function qr(t, e, n) {
|
|
2272
2272
|
var o = e(t);
|
|
@@ -2384,7 +2384,7 @@ function Zu(t) {
|
|
|
2384
2384
|
var Wo = ut && ut.isSet, Yu = Wo ? Wn(Wo) : Zu, ed = 1, td = 2, nd = 4, Jr = "[object Arguments]", od = "[object Array]", rd = "[object Boolean]", sd = "[object Date]", ad = "[object Error]", Kr = "[object Function]", id = "[object GeneratorFunction]", cd = "[object Map]", ld = "[object Number]", Gr = "[object Object]", ud = "[object RegExp]", dd = "[object Set]", pd = "[object String]", fd = "[object Symbol]", hd = "[object WeakMap]", gd = "[object ArrayBuffer]", md = "[object DataView]", vd = "[object Float32Array]", Ad = "[object Float64Array]", yd = "[object Int8Array]", wd = "[object Int16Array]", _d = "[object Int32Array]", bd = "[object Uint8Array]", Cd = "[object Uint8ClampedArray]", Id = "[object Uint16Array]", Td = "[object Uint32Array]", K = {};
|
|
2385
2385
|
K[Jr] = K[od] = K[gd] = K[md] = K[rd] = K[sd] = K[vd] = K[Ad] = K[yd] = K[wd] = K[_d] = K[cd] = K[ld] = K[Gr] = K[ud] = K[dd] = K[pd] = K[fd] = K[bd] = K[Cd] = K[Id] = K[Td] = !0;
|
|
2386
2386
|
K[ad] = K[Kr] = K[hd] = !1;
|
|
2387
|
-
function
|
|
2387
|
+
function Ft(t, e, n, o, r, s) {
|
|
2388
2388
|
var a, c = e & ed, l = e & td, i = e & nd;
|
|
2389
2389
|
if (a !== void 0)
|
|
2390
2390
|
return a;
|
|
@@ -2412,34 +2412,34 @@ function Ut(t, e, n, o, r, s) {
|
|
|
2412
2412
|
if (h)
|
|
2413
2413
|
return h;
|
|
2414
2414
|
s.set(t, a), Yu(t) ? t.forEach(function(g) {
|
|
2415
|
-
a.add(
|
|
2415
|
+
a.add(Ft(g, e, n, g, t, s));
|
|
2416
2416
|
}) : Gu(t) && t.forEach(function(g, p) {
|
|
2417
|
-
a.set(p,
|
|
2417
|
+
a.set(p, Ft(g, e, n, p, t, s));
|
|
2418
2418
|
});
|
|
2419
2419
|
var b = i ? l ? du : uu : l ? Jn : qn, y = u ? void 0 : b(t);
|
|
2420
2420
|
return el(y || t, function(g, p) {
|
|
2421
|
-
y && (p = g, g = t[p]), Or(a, p,
|
|
2421
|
+
y && (p = g, g = t[p]), Or(a, p, Ft(g, e, n, p, t, s));
|
|
2422
2422
|
}), a;
|
|
2423
2423
|
}
|
|
2424
2424
|
var Ed = 1, Sd = 4;
|
|
2425
2425
|
function dt(t) {
|
|
2426
|
-
return
|
|
2426
|
+
return Ft(t, Ed | Sd);
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2428
|
+
const Kt = (t, e = "") => {
|
|
2429
2429
|
for (let n of t)
|
|
2430
2430
|
if (!(n != null && n.disable) && !(n != null && n.expired))
|
|
2431
2431
|
if (e) {
|
|
2432
2432
|
if (n.routeUrl && n.code === e)
|
|
2433
2433
|
return n;
|
|
2434
2434
|
if (n.children && n.children.length) {
|
|
2435
|
-
const o =
|
|
2435
|
+
const o = Kt(n.children, e);
|
|
2436
2436
|
if (o) return o;
|
|
2437
2437
|
}
|
|
2438
2438
|
} else {
|
|
2439
2439
|
if (n.routeUrl)
|
|
2440
2440
|
return n;
|
|
2441
2441
|
if (n.children && n.children.length) {
|
|
2442
|
-
const o =
|
|
2442
|
+
const o = Kt(n.children, e);
|
|
2443
2443
|
if (o) return o;
|
|
2444
2444
|
}
|
|
2445
2445
|
}
|
|
@@ -2573,7 +2573,7 @@ const Jt = (t, e = "") => {
|
|
|
2573
2573
|
query: { ...r.query, app: c }
|
|
2574
2574
|
};
|
|
2575
2575
|
}
|
|
2576
|
-
let f =
|
|
2576
|
+
let f = Kt(l, n);
|
|
2577
2577
|
if (!f) {
|
|
2578
2578
|
if (!s || !a)
|
|
2579
2579
|
return { menuConfig: l, currentApp: null, currentMenu: null, query: { ...r.query, app: c } };
|
|
@@ -2660,14 +2660,14 @@ const Jt = (t, e = "") => {
|
|
|
2660
2660
|
}, Zr = E(null), zd = async () => {
|
|
2661
2661
|
const [t, e] = await Ud().run();
|
|
2662
2662
|
return t ? { homeConfig: null } : (e && ($i(e), Zr.value = e), { homeConfig: e });
|
|
2663
|
-
},
|
|
2663
|
+
}, Gt = E(1), Yr = async () => {
|
|
2664
2664
|
const [t, e] = await Fd().run();
|
|
2665
|
-
return t ? { personalMenuConfig: null } : (
|
|
2665
|
+
return t ? { personalMenuConfig: null } : (Gt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
2666
2666
|
}, qd = We.post("/menu/personal-setting"), Jd = { class: "preson-style-drawer" }, Kd = { class: "preson-style-container" }, Gd = { class: "title" }, Xd = { class: "content" }, Zd = { class: "item-content" }, Yd = ["src"], ep = { class: "item-content" }, tp = ["src"], np = { class: "preson-style-footer" }, op = /* @__PURE__ */ ne({
|
|
2667
2667
|
__name: "index",
|
|
2668
2668
|
setup(t, { expose: e }) {
|
|
2669
2669
|
const n = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
|
|
2670
|
-
o.value =
|
|
2670
|
+
o.value = Gt.value === 1, r.value = Gt.value === 2, n.value = !0;
|
|
2671
2671
|
}, c = (i) => {
|
|
2672
2672
|
i === 1 ? r.value = !1 : o.value = !1;
|
|
2673
2673
|
}, l = async () => {
|
|
@@ -2717,7 +2717,7 @@ const Jt = (t, e = "") => {
|
|
|
2717
2717
|
B(
|
|
2718
2718
|
"p",
|
|
2719
2719
|
Gd,
|
|
2720
|
-
|
|
2720
|
+
re(m(N)("侧边菜单栏").value),
|
|
2721
2721
|
1
|
|
2722
2722
|
/* TEXT */
|
|
2723
2723
|
),
|
|
@@ -2736,7 +2736,7 @@ const Jt = (t, e = "") => {
|
|
|
2736
2736
|
}, {
|
|
2737
2737
|
default: x(() => [
|
|
2738
2738
|
ye(
|
|
2739
|
-
|
|
2739
|
+
re(m(N)("弹出式菜单栏").value),
|
|
2740
2740
|
1
|
|
2741
2741
|
/* TEXT */
|
|
2742
2742
|
)
|
|
@@ -2759,7 +2759,7 @@ const Jt = (t, e = "") => {
|
|
|
2759
2759
|
}, {
|
|
2760
2760
|
default: x(() => [
|
|
2761
2761
|
ye(
|
|
2762
|
-
|
|
2762
|
+
re(m(N)("内嵌式菜单栏").value),
|
|
2763
2763
|
1
|
|
2764
2764
|
/* TEXT */
|
|
2765
2765
|
)
|
|
@@ -2782,7 +2782,7 @@ const Jt = (t, e = "") => {
|
|
|
2782
2782
|
Di(i), Qs(i);
|
|
2783
2783
|
}, n = async () => {
|
|
2784
2784
|
const [a, c] = await ap().run({ userId: cr().id });
|
|
2785
|
-
a || !c || JSON.stringify(c) === "{}" || (
|
|
2785
|
+
a || !c || JSON.stringify(c) === "{}" || (Wt.open({
|
|
2786
2786
|
key: "loginTip",
|
|
2787
2787
|
message: "上次登录信息",
|
|
2788
2788
|
placement: "bottomRight",
|
|
@@ -2861,7 +2861,7 @@ const Jt = (t, e = "") => {
|
|
|
2861
2861
|
// 树打平之后保留的数据
|
|
2862
2862
|
filterFlatCondition: (T) => T.type === 7
|
|
2863
2863
|
}), R.nav.setProjects(g || []), p && R.nav.setActiveProject(p));
|
|
2864
|
-
const C =
|
|
2864
|
+
const C = Yt() ?? {}, S = C != null && C.headPicture ? On(C.headPicture) : void 0;
|
|
2865
2865
|
l.value = [...vi], p && p.id !== 0 ? await o("personCenter", "", "/userInfo") || (l.value = l.value.filter((D) => D.value !== "1")) : l.value = l.value.filter((T) => T.value !== "1"), R.nav.setUserInfo({ headPicture: S, commandList: l.value }), R.nav.setSearchConfig({
|
|
2866
2866
|
getHistoryList: r,
|
|
2867
2867
|
getSearchList: s
|
|
@@ -2892,10 +2892,10 @@ const Jt = (t, e = "") => {
|
|
|
2892
2892
|
desc: n.menuExpirationExpiredInfo
|
|
2893
2893
|
};
|
|
2894
2894
|
}, up = () => {
|
|
2895
|
-
const { entryMenu: t } =
|
|
2895
|
+
const { entryMenu: t } = rn();
|
|
2896
2896
|
R.menu.addEventListener("onItemClick", async (e) => {
|
|
2897
2897
|
ce.innerSet = !0;
|
|
2898
|
-
const n = Oe(
|
|
2898
|
+
const n = Oe(zt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
2899
2899
|
if (!(n && !n.routeUrl)) {
|
|
2900
2900
|
if (!n) {
|
|
2901
2901
|
const { title: o, content: r, desc: s } = await Zn(n);
|
|
@@ -2919,7 +2919,7 @@ const Jt = (t, e = "") => {
|
|
|
2919
2919
|
const s = J();
|
|
2920
2920
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
2921
2921
|
const l = (ve().tabMap[r.code] ?? []).map((u) => u.code);
|
|
2922
|
-
l && l.length &&
|
|
2922
|
+
l && l.length && Ut(r.code, l), e(r);
|
|
2923
2923
|
});
|
|
2924
2924
|
const { enter: o } = ht();
|
|
2925
2925
|
return R.nav.addEventListener("fullScreenHandle", o), {};
|
|
@@ -2942,9 +2942,9 @@ const Jt = (t, e = "") => {
|
|
|
2942
2942
|
S && JSON.stringify(S) !== "{}" && (r.value = (O = S[_][C]) != null && O.fontColor ? S[_][C].fontColor : e, s.value = (F = S[_][C]) != null && F.backgroundColor ? S[_][C].backgroundColor : n, a.value = (z = S[_][C]) != null && z.backgroundColor ? S[_][C].backgroundColor : o);
|
|
2943
2943
|
}
|
|
2944
2944
|
);
|
|
2945
|
-
const { deleteApp: i } = vt(), { entryMenu: u } =
|
|
2945
|
+
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: f, unloadRoute: d } = es(), h = (p) => {
|
|
2946
2946
|
var C;
|
|
2947
|
-
const v = Oe(
|
|
2947
|
+
const v = Oe(zt(p.applicationCode)).find((S) => S.code === p.code), _ = (((C = ve().tabMap) == null ? void 0 : C[p.applicationCode]) ?? []).find((S) => S.code === p.code);
|
|
2948
2948
|
u({ currentMenu: v, route: { path: _.path, query: _.query ?? {} } });
|
|
2949
2949
|
}, b = (p) => {
|
|
2950
2950
|
if (!p || !p.length) return;
|
|
@@ -2957,7 +2957,7 @@ const Jt = (t, e = "") => {
|
|
|
2957
2957
|
if (C === -1) return;
|
|
2958
2958
|
const S = () => {
|
|
2959
2959
|
var z;
|
|
2960
|
-
let F = (((z = J().appcategorys) == null ? void 0 : z.map((
|
|
2960
|
+
let F = (((z = J().appcategorys) == null ? void 0 : z.map((ae) => ae.apps).flat()) ?? []).find((ae) => ae.code === v);
|
|
2961
2961
|
F = { ...F, value: F.code, label: F.name }, i(F), R.nav.removeItem(v);
|
|
2962
2962
|
};
|
|
2963
2963
|
({
|
|
@@ -2977,8 +2977,8 @@ const Jt = (t, e = "") => {
|
|
|
2977
2977
|
path: `/${F.applicationPath}${F.path}`.replace(/\/\//g, "/"),
|
|
2978
2978
|
query: F.query
|
|
2979
2979
|
}), R.menu.setActiveItem(F.menuId), R.tab.setActiveItem(F.code);
|
|
2980
|
-
const z = _.filter((
|
|
2981
|
-
z.forEach((
|
|
2980
|
+
const z = _.filter((ae) => ae.code !== O.value);
|
|
2981
|
+
z.forEach((ae) => R.tab.removeItem(ae.code)), b(z), Ae([{ key: `tabMap:${v}`, value: [F] }]), h(F);
|
|
2982
2982
|
},
|
|
2983
2983
|
right: async (O) => {
|
|
2984
2984
|
const F = A.currentCode;
|
|
@@ -2987,7 +2987,7 @@ const Jt = (t, e = "") => {
|
|
|
2987
2987
|
h(Ce);
|
|
2988
2988
|
}
|
|
2989
2989
|
const z = _.slice(C + 1);
|
|
2990
|
-
z.forEach((
|
|
2990
|
+
z.forEach((ae) => R.tab.removeItem(ae.code)), b(z), _.splice(C + 1), Ae([{ key: `tabMap:${v}`, value: _ }]);
|
|
2991
2991
|
}
|
|
2992
2992
|
})[p.type](p.data);
|
|
2993
2993
|
};
|
|
@@ -2995,7 +2995,7 @@ const Jt = (t, e = "") => {
|
|
|
2995
2995
|
ve().currentCode !== p.currentCode && (ce.innerSet = !0, h(p));
|
|
2996
2996
|
}), R.tab.addEventListener("onItemRemove", (p) => {
|
|
2997
2997
|
const v = ve(), A = J().currentSubAppCode ?? "";
|
|
2998
|
-
v.tabMap[A].findIndex((S) => S.code === p.code) !== -1 && (
|
|
2998
|
+
v.tabMap[A].findIndex((S) => S.code === p.code) !== -1 && (Ut(p.applicationCode, [p.code]), y({ type: "me", data: p }));
|
|
2999
2999
|
}), R.tab.addEventListener("onMenuClick", (p) => {
|
|
3000
3000
|
let v = [];
|
|
3001
3001
|
const A = ve().tabMap[p.applicationCode] ?? [];
|
|
@@ -3003,14 +3003,14 @@ const Jt = (t, e = "") => {
|
|
|
3003
3003
|
const _ = A.findIndex((C) => C.code === p.data.value);
|
|
3004
3004
|
v = A.slice(_ + 1);
|
|
3005
3005
|
}
|
|
3006
|
-
p.type.key === "other" && (v = A.filter((_) => _.code !== p.data.value)), p.type.key === "all" && (v = [...A]),
|
|
3006
|
+
p.type.key === "other" && (v = A.filter((_) => _.code !== p.data.value)), p.type.key === "all" && (v = [...A]), Ut(
|
|
3007
3007
|
p.applicationCode,
|
|
3008
3008
|
v.map((_) => _.code)
|
|
3009
3009
|
), y({ type: p.type.key, data: p.data });
|
|
3010
3010
|
}), R.tab.addEventListener("onPageRefresh", async (p) => {
|
|
3011
3011
|
if (!p || p.path === ct) return;
|
|
3012
|
-
|
|
3013
|
-
const v = Oe(
|
|
3012
|
+
Ut(p.applicationCode, [p.code]);
|
|
3013
|
+
const v = Oe(zt(p.applicationCode)).find((C) => C.code === p.code);
|
|
3014
3014
|
if (!v) return;
|
|
3015
3015
|
if (v.routeUrl !== p.path) {
|
|
3016
3016
|
f([p.path]), d([`/${p.applicationPath}${v.routeUrl}`]), await u({ currentMenu: v });
|
|
@@ -3043,7 +3043,7 @@ const Jt = (t, e = "") => {
|
|
|
3043
3043
|
t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
3044
3044
|
});
|
|
3045
3045
|
}, vt = () => {
|
|
3046
|
-
const t = Ye(), { entryMenu: e } =
|
|
3046
|
+
const t = Ye(), { entryMenu: e } = rn(), { unloadRoute: n } = es();
|
|
3047
3047
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = tt();
|
|
3048
3048
|
!o && r && (s = [{ name: r }]);
|
|
3049
3049
|
const a = s.map((d) => d.name), c = () => {
|
|
@@ -3057,15 +3057,15 @@ const Jt = (t, e = "") => {
|
|
|
3057
3057
|
if (S) return !1;
|
|
3058
3058
|
g = _ ?? [], p = C ?? [];
|
|
3059
3059
|
}
|
|
3060
|
-
if (g.length ?
|
|
3060
|
+
if (g.length ? Kt(g) || (await Et({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), v = !0) : (await Et({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), v = !0), v) return !1;
|
|
3061
3061
|
const A = { ...d, menus: g, originalMenus: p };
|
|
3062
3062
|
return Se([{ key: "subAppList", value: A }]), !0;
|
|
3063
3063
|
}, i = async (d) => {
|
|
3064
|
-
var F, z,
|
|
3064
|
+
var F, z, ae, Ce, Rt;
|
|
3065
3065
|
const { microApp: h = null, menuCode: b = "", menuPath: y = "", route: g = {} } = d;
|
|
3066
3066
|
let p = g;
|
|
3067
3067
|
if (!h && y) {
|
|
3068
|
-
if (c(), !(a && a.find((
|
|
3068
|
+
if (c(), !(a && a.find((ie) => y.startsWith("/" + ie) || y.startsWith(ie)))) return;
|
|
3069
3069
|
await t.push({ path: y, query: p.query });
|
|
3070
3070
|
return;
|
|
3071
3071
|
}
|
|
@@ -3075,26 +3075,26 @@ const Jt = (t, e = "") => {
|
|
|
3075
3075
|
const _ = (h == null ? void 0 : h.openType) ?? 1, C = (h == null ? void 0 : h.type) ?? 1;
|
|
3076
3076
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
3077
3077
|
c();
|
|
3078
|
-
const pe = ((
|
|
3079
|
-
if ((pe == null ? void 0 : pe.find((
|
|
3078
|
+
const pe = ((ae = J()) == null ? void 0 : ae.subAppList) ?? [];
|
|
3079
|
+
if ((pe == null ? void 0 : pe.find((ue) => ue.code === h.code)) || pe == null || pe.push(h), Se([
|
|
3080
3080
|
{ key: "currentSubApp", value: h },
|
|
3081
3081
|
{ key: "currentSubAppCode", value: h.code },
|
|
3082
3082
|
{ key: "subAppList", value: pe }
|
|
3083
|
-
]), pe.forEach((
|
|
3084
|
-
const ze = { ...
|
|
3083
|
+
]), pe.forEach((ue) => {
|
|
3084
|
+
const ze = { ...ue, value: ue.code, label: ue.name };
|
|
3085
3085
|
R.nav.appendItem(ze);
|
|
3086
3086
|
}), R.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
3087
3087
|
await t.push({ path: h.routeUrl, query: { ...p.query, app: h.code } });
|
|
3088
3088
|
return;
|
|
3089
3089
|
}
|
|
3090
3090
|
if (_ === 1 && C === 2) {
|
|
3091
|
-
const
|
|
3091
|
+
const ue = En(_n(bn(h.routeUrl)));
|
|
3092
3092
|
await t.push({
|
|
3093
3093
|
path: ct,
|
|
3094
3094
|
query: {
|
|
3095
3095
|
...p.query,
|
|
3096
3096
|
app: h.code,
|
|
3097
|
-
iframeSrc:
|
|
3097
|
+
iframeSrc: ue
|
|
3098
3098
|
}
|
|
3099
3099
|
});
|
|
3100
3100
|
return;
|
|
@@ -3113,8 +3113,8 @@ const Jt = (t, e = "") => {
|
|
|
3113
3113
|
meta: { ...(p == null ? void 0 : p.meta) ?? {} }
|
|
3114
3114
|
}), P && (P == null ? void 0 : P.code) !== (h == null ? void 0 : h.code)) {
|
|
3115
3115
|
if (P.fixed && (await t.push(P.path), c(), R.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3116
|
-
const pe = (Ce = J().subAppList) == null ? void 0 : Ce.find((ze) => ze.code === P.code),
|
|
3117
|
-
await i({ microApp: pe, menuCode: (
|
|
3116
|
+
const pe = (Ce = J().subAppList) == null ? void 0 : Ce.find((ze) => ze.code === P.code), ie = ve().preTab[P.code], ue = { ...(ie == null ? void 0 : ie.query) ?? {} };
|
|
3117
|
+
await i({ microApp: pe, menuCode: (ie == null ? void 0 : ie.code) ?? "", route: { query: ue } });
|
|
3118
3118
|
}
|
|
3119
3119
|
return;
|
|
3120
3120
|
}
|
|
@@ -3130,22 +3130,20 @@ const Jt = (t, e = "") => {
|
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
3132
|
if (v && A) {
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
R.nav.appendItem(ze);
|
|
3138
|
-
}), R.nav.setActiveItem(O.code), R.menu.setItems(S);
|
|
3139
|
-
}, 200);
|
|
3133
|
+
(Rt = J().subAppList) == null || Rt.forEach((ie) => {
|
|
3134
|
+
const ue = { ...ie, value: ie.code, label: ie.name };
|
|
3135
|
+
R.nav.appendItem(ue);
|
|
3136
|
+
}), R.nav.setActiveItem(O.code), R.menu.setItems(S);
|
|
3140
3137
|
const pe = ve().tabMap[O.code] ?? [];
|
|
3141
3138
|
if (pe.length) {
|
|
3142
|
-
const
|
|
3143
|
-
...
|
|
3144
|
-
value:
|
|
3145
|
-
label:
|
|
3139
|
+
const ie = pe.map((ue) => ({
|
|
3140
|
+
...ue,
|
|
3141
|
+
value: ue.code,
|
|
3142
|
+
label: ue.name
|
|
3146
3143
|
})) || [];
|
|
3147
|
-
R.tab.setItems(
|
|
3148
|
-
}
|
|
3144
|
+
R.tab.setItems(ie);
|
|
3145
|
+
} else
|
|
3146
|
+
R.tab.setItems([]);
|
|
3149
3147
|
}
|
|
3150
3148
|
e({ currentMenu: I, microPath: T, route: p });
|
|
3151
3149
|
}, u = async (d) => {
|
|
@@ -3195,7 +3193,7 @@ const Jt = (t, e = "") => {
|
|
|
3195
3193
|
}
|
|
3196
3194
|
}
|
|
3197
3195
|
};
|
|
3198
|
-
},
|
|
3196
|
+
}, rn = () => {
|
|
3199
3197
|
const t = Ye();
|
|
3200
3198
|
let { mainAppName: e = "", microAppName: n = "", microApps: o = [] } = tt();
|
|
3201
3199
|
return !e && n && (o = [{ name: n }]), o.map((s) => s.name), { entryMenu: async (s) => {
|
|
@@ -3415,7 +3413,7 @@ const Jt = (t, e = "") => {
|
|
|
3415
3413
|
};
|
|
3416
3414
|
}, mp = dr.get("/convert/tenant"), vp = Rn.get("/platform/withdefault"), ts = () => {
|
|
3417
3415
|
const t = tt(), e = E(!1), n = E(""), o = E(""), r = () => {
|
|
3418
|
-
n.value =
|
|
3416
|
+
n.value = Yt().id, o.value = cr().tenantId, e.value = !0;
|
|
3419
3417
|
};
|
|
3420
3418
|
R.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
3421
3419
|
r();
|
|
@@ -3505,7 +3503,7 @@ const Jt = (t, e = "") => {
|
|
|
3505
3503
|
}), Tp = () => {
|
|
3506
3504
|
Le.addEventListenerFromMicroApp("iot:change-instance", (t) => {
|
|
3507
3505
|
const e = J(), n = e.currentSubAppCode;
|
|
3508
|
-
let o =
|
|
3506
|
+
let o = zt(n);
|
|
3509
3507
|
o.forEach((s) => {
|
|
3510
3508
|
s.fixed && (s.name = t.data.instanceInfo.instanceName);
|
|
3511
3509
|
}), R.menu.setItems(o);
|
|
@@ -3543,7 +3541,7 @@ const Jt = (t, e = "") => {
|
|
|
3543
3541
|
Ys();
|
|
3544
3542
|
});
|
|
3545
3543
|
}, kp = Qn.get("/platform/login/pwd-advance-notify-check"), Pp = () => {
|
|
3546
|
-
const t = E([]), e = E(null), n = E([]), { entryApp: o } =
|
|
3544
|
+
const t = E([]), e = E(null), n = E([]), { entryApp: o } = qt.hooks.useEntryApp(), r = () => {
|
|
3547
3545
|
var l;
|
|
3548
3546
|
const c = (((l = J().appcategorys) == null ? void 0 : l.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
3549
3547
|
c && o({ microApp: c });
|
|
@@ -3559,8 +3557,8 @@ const Jt = (t, e = "") => {
|
|
|
3559
3557
|
const l = Fe().id;
|
|
3560
3558
|
t.value = a.filter(
|
|
3561
3559
|
(i) => i.projectId === l || i.projectId === 0 || i.projectId === "0"
|
|
3562
|
-
), n.value && n.value.length && (n.value.forEach((i) =>
|
|
3563
|
-
|
|
3560
|
+
), n.value && n.value.length && (n.value.forEach((i) => Wt.close(i)), n.value = []), await Qe(), t.value.forEach((i, u) => {
|
|
3561
|
+
Wt.info({
|
|
3564
3562
|
key: i.id,
|
|
3565
3563
|
class: "message-center-notify",
|
|
3566
3564
|
message: i.title,
|
|
@@ -3591,8 +3589,8 @@ const Jt = (t, e = "") => {
|
|
|
3591
3589
|
});
|
|
3592
3590
|
};
|
|
3593
3591
|
Ve(async () => {
|
|
3594
|
-
await
|
|
3595
|
-
}),
|
|
3592
|
+
await en(), s();
|
|
3593
|
+
}), Zt(() => {
|
|
3596
3594
|
e.value && e.value.disconnect(), e.value = null;
|
|
3597
3595
|
});
|
|
3598
3596
|
}, Lp = "v1", $p = ft(`/api/enterpriseright/permission/${Lp}`), ns = ft("/api/device-relation/deviceproject/v1/project/device/video", Op), Dp = jn.get("/permissionset/user-portal-menu");
|
|
@@ -3897,7 +3895,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3897
3895
|
B(
|
|
3898
3896
|
"div",
|
|
3899
3897
|
qp,
|
|
3900
|
-
|
|
3898
|
+
re(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
3901
3899
|
1
|
|
3902
3900
|
/* TEXT */
|
|
3903
3901
|
)
|
|
@@ -4182,9 +4180,9 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4182
4180
|
let r = document.body.querySelector("#video-dialog");
|
|
4183
4181
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4184
4182
|
const a = he(nf, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4185
|
-
|
|
4183
|
+
Vt(null, r), document.body.removeChild(r), o(null);
|
|
4186
4184
|
} });
|
|
4187
|
-
|
|
4185
|
+
Vt(a, r);
|
|
4188
4186
|
});
|
|
4189
4187
|
}, rf = () => {
|
|
4190
4188
|
const t = E(4), e = E([]), n = E(null), o = async (s) => {
|
|
@@ -4224,8 +4222,8 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4224
4222
|
}));
|
|
4225
4223
|
};
|
|
4226
4224
|
return Ve(async () => {
|
|
4227
|
-
await
|
|
4228
|
-
}),
|
|
4225
|
+
await en(), r();
|
|
4226
|
+
}), Zt(() => {
|
|
4229
4227
|
n.value && n.value.disconnect(), n.value = null;
|
|
4230
4228
|
}), {
|
|
4231
4229
|
gridNum: t,
|
|
@@ -4324,7 +4322,7 @@ class rs {
|
|
|
4324
4322
|
this.statusCode = e, this.statusText = n, this.content = o;
|
|
4325
4323
|
}
|
|
4326
4324
|
}
|
|
4327
|
-
class
|
|
4325
|
+
class sn {
|
|
4328
4326
|
get(e, n) {
|
|
4329
4327
|
return this.send({
|
|
4330
4328
|
...n,
|
|
@@ -4370,7 +4368,7 @@ class Pt {
|
|
|
4370
4368
|
}
|
|
4371
4369
|
Pt.instance = new Pt();
|
|
4372
4370
|
const uf = "8.0.7";
|
|
4373
|
-
class
|
|
4371
|
+
class se {
|
|
4374
4372
|
static isRequired(e, n) {
|
|
4375
4373
|
if (e == null)
|
|
4376
4374
|
throw new Error(`The '${n}' argument is required.`);
|
|
@@ -4432,7 +4430,7 @@ async function ss(t, e, n, o, r, s) {
|
|
|
4432
4430
|
t.log(w.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
4433
4431
|
}
|
|
4434
4432
|
function pf(t) {
|
|
4435
|
-
return t === void 0 ? new
|
|
4433
|
+
return t === void 0 ? new Xt(w.Information) : t === null ? Pt.instance : t.log !== void 0 ? t : new Xt(t);
|
|
4436
4434
|
}
|
|
4437
4435
|
class ff {
|
|
4438
4436
|
constructor(e, n) {
|
|
@@ -4444,7 +4442,7 @@ class ff {
|
|
|
4444
4442
|
});
|
|
4445
4443
|
}
|
|
4446
4444
|
}
|
|
4447
|
-
class
|
|
4445
|
+
class Xt {
|
|
4448
4446
|
constructor(e) {
|
|
4449
4447
|
this._minLevel = e, this.out = console;
|
|
4450
4448
|
}
|
|
@@ -4514,7 +4512,7 @@ function Af() {
|
|
|
4514
4512
|
return global;
|
|
4515
4513
|
throw new Error("could not find global");
|
|
4516
4514
|
}
|
|
4517
|
-
class yf extends
|
|
4515
|
+
class yf extends sn {
|
|
4518
4516
|
constructor(e) {
|
|
4519
4517
|
if (super(), this._logger = e, typeof fetch > "u" || te.isNode) {
|
|
4520
4518
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
@@ -4599,7 +4597,7 @@ function Yo(t, e) {
|
|
|
4599
4597
|
}
|
|
4600
4598
|
return n;
|
|
4601
4599
|
}
|
|
4602
|
-
class wf extends
|
|
4600
|
+
class wf extends sn {
|
|
4603
4601
|
constructor(e) {
|
|
4604
4602
|
super(), this._logger = e;
|
|
4605
4603
|
}
|
|
@@ -4623,7 +4621,7 @@ class wf extends rn {
|
|
|
4623
4621
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
4624
4622
|
}
|
|
4625
4623
|
}
|
|
4626
|
-
class _f extends
|
|
4624
|
+
class _f extends sn {
|
|
4627
4625
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
4628
4626
|
constructor(e) {
|
|
4629
4627
|
if (super(), typeof fetch < "u" || te.isNode)
|
|
@@ -4818,7 +4816,7 @@ class eo {
|
|
|
4818
4816
|
constructor(e, n, o, r, s, a, c) {
|
|
4819
4817
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4820
4818
|
this._logger.log(w.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
4821
|
-
},
|
|
4819
|
+
}, se.isRequired(e, "connection"), se.isRequired(n, "logger"), se.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? Ef, this.keepAliveIntervalInMilliseconds = a ?? Sf, this._statefulReconnectBufferSize = c ?? kf, this._logger = n, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new bf(), this.connection.onreceive = (l) => this._processIncomingData(l), this.connection.onclose = (l) => this._connectionClosed(l), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: U.Ping });
|
|
4822
4820
|
}
|
|
4823
4821
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
4824
4822
|
get state() {
|
|
@@ -5321,7 +5319,7 @@ class Ge {
|
|
|
5321
5319
|
}
|
|
5322
5320
|
Ge.Authorization = "Authorization";
|
|
5323
5321
|
Ge.Cookie = "Cookie";
|
|
5324
|
-
class Lf extends
|
|
5322
|
+
class Lf extends sn {
|
|
5325
5323
|
constructor(e, n) {
|
|
5326
5324
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
5327
5325
|
}
|
|
@@ -5338,10 +5336,10 @@ class Lf extends rn {
|
|
|
5338
5336
|
return this._innerClient.getCookieString(e);
|
|
5339
5337
|
}
|
|
5340
5338
|
}
|
|
5341
|
-
var
|
|
5339
|
+
var oe;
|
|
5342
5340
|
(function(t) {
|
|
5343
5341
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
5344
|
-
})(
|
|
5342
|
+
})(oe || (oe = {}));
|
|
5345
5343
|
var ge;
|
|
5346
5344
|
(function(t) {
|
|
5347
5345
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
@@ -5369,7 +5367,7 @@ class tr {
|
|
|
5369
5367
|
this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5370
5368
|
}
|
|
5371
5369
|
async connect(e, n) {
|
|
5372
|
-
if (
|
|
5370
|
+
if (se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._url = e, this._logger.log(w.Trace, "(LongPolling transport) Connecting."), n === ge.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
5373
5371
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5374
5372
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5375
5373
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5435,7 +5433,7 @@ class Df {
|
|
|
5435
5433
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5436
5434
|
}
|
|
5437
5435
|
async connect(e, n) {
|
|
5438
|
-
return
|
|
5436
|
+
return se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._logger.log(w.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
5439
5437
|
let s = !1;
|
|
5440
5438
|
if (n !== ge.Text) {
|
|
5441
5439
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
@@ -5485,7 +5483,7 @@ class Of {
|
|
|
5485
5483
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5486
5484
|
}
|
|
5487
5485
|
async connect(e, n) {
|
|
5488
|
-
|
|
5486
|
+
se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._logger.log(w.Trace, "(WebSockets transport) Connecting.");
|
|
5489
5487
|
let o;
|
|
5490
5488
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5491
5489
|
e = e.replace(/^http/, "ws");
|
|
@@ -5542,7 +5540,7 @@ const nr = 100;
|
|
|
5542
5540
|
class Mf {
|
|
5543
5541
|
constructor(e, n = {}) {
|
|
5544
5542
|
if (this._stopPromiseResolver = () => {
|
|
5545
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
5543
|
+
}, this.features = {}, this._negotiateVersion = 1, se.isRequired(e, "url"), this._logger = pf(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
|
|
5546
5544
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
5547
5545
|
else
|
|
5548
5546
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -5555,7 +5553,7 @@ class Mf {
|
|
|
5555
5553
|
!te.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : te.isNode && !n.WebSocket && o && (n.WebSocket = o), !te.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : te.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new Lf(n.httpClient || new _f(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
5556
5554
|
}
|
|
5557
5555
|
async start(e) {
|
|
5558
|
-
if (e = e || ge.Binary,
|
|
5556
|
+
if (e = e || ge.Binary, se.isIn(e, ge, "transferFormat"), this._logger.log(w.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
|
|
5559
5557
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5560
5558
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5561
5559
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -5599,8 +5597,8 @@ class Mf {
|
|
|
5599
5597
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
5600
5598
|
try {
|
|
5601
5599
|
if (this._options.skipNegotiation)
|
|
5602
|
-
if (this._options.transport ===
|
|
5603
|
-
this.transport = this._constructTransport(
|
|
5600
|
+
if (this._options.transport === oe.WebSockets)
|
|
5601
|
+
this.transport = this._constructTransport(oe.WebSockets), await this._startTransport(n, e);
|
|
5604
5602
|
else
|
|
5605
5603
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
5606
5604
|
else {
|
|
@@ -5676,7 +5674,7 @@ class Mf {
|
|
|
5676
5674
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
5677
5675
|
return;
|
|
5678
5676
|
} catch (f) {
|
|
5679
|
-
if (this._logger.log(w.Error, `Failed to start the transport '${i.transport}': ${f}`), l = void 0, a.push(new cf(`${i.transport} failed: ${f}`,
|
|
5677
|
+
if (this._logger.log(w.Error, `Failed to start the transport '${i.transport}': ${f}`), l = void 0, a.push(new cf(`${i.transport} failed: ${f}`, oe[i.transport])), this._connectionState !== "Connecting") {
|
|
5680
5678
|
const d = "Failed to select transport before stop() was called.";
|
|
5681
5679
|
return this._logger.log(w.Debug, d), Promise.reject(new $e(d));
|
|
5682
5680
|
}
|
|
@@ -5687,15 +5685,15 @@ class Mf {
|
|
|
5687
5685
|
}
|
|
5688
5686
|
_constructTransport(e) {
|
|
5689
5687
|
switch (e) {
|
|
5690
|
-
case
|
|
5688
|
+
case oe.WebSockets:
|
|
5691
5689
|
if (!this._options.WebSocket)
|
|
5692
5690
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
5693
5691
|
return new Of(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
5694
|
-
case
|
|
5692
|
+
case oe.ServerSentEvents:
|
|
5695
5693
|
if (!this._options.EventSource)
|
|
5696
5694
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5697
5695
|
return new Df(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5698
|
-
case
|
|
5696
|
+
case oe.LongPolling:
|
|
5699
5697
|
return new tr(this._httpClient, this._logger, this._options);
|
|
5700
5698
|
default:
|
|
5701
5699
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -5718,23 +5716,23 @@ class Mf {
|
|
|
5718
5716
|
} : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, n);
|
|
5719
5717
|
}
|
|
5720
5718
|
_resolveTransportOrError(e, n, o, r) {
|
|
5721
|
-
const s =
|
|
5719
|
+
const s = oe[e.transport];
|
|
5722
5720
|
if (s == null)
|
|
5723
5721
|
return this._logger.log(w.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
5724
5722
|
if (Bf(n, s))
|
|
5725
5723
|
if (e.transferFormats.map((c) => ge[c]).indexOf(o) >= 0) {
|
|
5726
|
-
if (s ===
|
|
5727
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5728
|
-
this._logger.log(w.Debug, `Selecting transport '${
|
|
5724
|
+
if (s === oe.WebSockets && !this._options.WebSocket || s === oe.ServerSentEvents && !this._options.EventSource)
|
|
5725
|
+
return this._logger.log(w.Debug, `Skipping transport '${oe[s]}' because it is not supported in your environment.'`), new sf(`'${oe[s]}' is not supported in your environment.`, s);
|
|
5726
|
+
this._logger.log(w.Debug, `Selecting transport '${oe[s]}'.`);
|
|
5729
5727
|
try {
|
|
5730
|
-
return this.features.reconnect = s ===
|
|
5728
|
+
return this.features.reconnect = s === oe.WebSockets ? r : void 0, this._constructTransport(s);
|
|
5731
5729
|
} catch (c) {
|
|
5732
5730
|
return c;
|
|
5733
5731
|
}
|
|
5734
5732
|
} else
|
|
5735
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5733
|
+
return this._logger.log(w.Debug, `Skipping transport '${oe[s]}' because it does not support the requested transfer format '${ge[o]}'.`), new Error(`'${oe[s]}' does not support ${ge[o]}.`);
|
|
5736
5734
|
else
|
|
5737
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5735
|
+
return this._logger.log(w.Debug, `Skipping transport '${oe[s]}' because it was disabled by the client.`), new af(`'${oe[s]}' is disabled by the client.`, s);
|
|
5738
5736
|
}
|
|
5739
5737
|
_isITransport(e) {
|
|
5740
5738
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -5777,10 +5775,10 @@ function Bf(t, e) {
|
|
|
5777
5775
|
}
|
|
5778
5776
|
class to {
|
|
5779
5777
|
constructor(e) {
|
|
5780
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
5778
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new Nt(), this._transportResult = new Nt(), this._sendLoopPromise = this._sendLoop();
|
|
5781
5779
|
}
|
|
5782
5780
|
send(e) {
|
|
5783
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
5781
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new Nt()), this._transportResult.promise;
|
|
5784
5782
|
}
|
|
5785
5783
|
stop() {
|
|
5786
5784
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -5796,7 +5794,7 @@ class to {
|
|
|
5796
5794
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
5797
5795
|
break;
|
|
5798
5796
|
}
|
|
5799
|
-
this._sendBufferedData = new
|
|
5797
|
+
this._sendBufferedData = new Nt();
|
|
5800
5798
|
const e = this._transportResult;
|
|
5801
5799
|
this._transportResult = void 0;
|
|
5802
5800
|
const n = typeof this._buffer[0] == "string" ? this._buffer.join("") : to._concatBuffers(this._buffer);
|
|
@@ -5816,7 +5814,7 @@ class to {
|
|
|
5816
5814
|
return o.buffer;
|
|
5817
5815
|
}
|
|
5818
5816
|
}
|
|
5819
|
-
class
|
|
5817
|
+
class Nt {
|
|
5820
5818
|
constructor() {
|
|
5821
5819
|
this.promise = new Promise((e, n) => [this._resolver, this._rejecter] = [e, n]);
|
|
5822
5820
|
}
|
|
@@ -5928,17 +5926,17 @@ function jf(t) {
|
|
|
5928
5926
|
}
|
|
5929
5927
|
class Nf {
|
|
5930
5928
|
configureLogging(e) {
|
|
5931
|
-
if (
|
|
5929
|
+
if (se.isRequired(e, "logging"), Hf(e))
|
|
5932
5930
|
this.logger = e;
|
|
5933
5931
|
else if (typeof e == "string") {
|
|
5934
5932
|
const n = jf(e);
|
|
5935
|
-
this.logger = new
|
|
5933
|
+
this.logger = new Xt(n);
|
|
5936
5934
|
} else
|
|
5937
|
-
this.logger = new
|
|
5935
|
+
this.logger = new Xt(e);
|
|
5938
5936
|
return this;
|
|
5939
5937
|
}
|
|
5940
5938
|
withUrl(e, n) {
|
|
5941
|
-
return
|
|
5939
|
+
return se.isRequired(e, "url"), se.isNotEmpty(e, "url"), this.url = e, typeof n == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...n } : this.httpConnectionOptions = {
|
|
5942
5940
|
...this.httpConnectionOptions,
|
|
5943
5941
|
transport: n
|
|
5944
5942
|
}, this;
|
|
@@ -5948,7 +5946,7 @@ class Nf {
|
|
|
5948
5946
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
5949
5947
|
*/
|
|
5950
5948
|
withHubProtocol(e) {
|
|
5951
|
-
return
|
|
5949
|
+
return se.isRequired(e, "protocol"), this.protocol = e, this;
|
|
5952
5950
|
}
|
|
5953
5951
|
withAutomaticReconnect(e) {
|
|
5954
5952
|
if (this.reconnectPolicy)
|
|
@@ -5960,14 +5958,14 @@ class Nf {
|
|
|
5960
5958
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5961
5959
|
*/
|
|
5962
5960
|
withServerTimeout(e) {
|
|
5963
|
-
return
|
|
5961
|
+
return se.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
5964
5962
|
}
|
|
5965
5963
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
5966
5964
|
*
|
|
5967
5965
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5968
5966
|
*/
|
|
5969
5967
|
withKeepAliveInterval(e) {
|
|
5970
|
-
return
|
|
5968
|
+
return se.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
5971
5969
|
}
|
|
5972
5970
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
5973
5971
|
*
|
|
@@ -5995,23 +5993,23 @@ let { baseURL: Uf } = tt();
|
|
|
5995
5993
|
const Ff = () => {
|
|
5996
5994
|
const t = new Nf().withUrl(`${Uf}/api/tool/event-bus`, {
|
|
5997
5995
|
skipNegotiation: !0,
|
|
5998
|
-
transport:
|
|
5996
|
+
transport: oe.WebSockets
|
|
5999
5997
|
}).withAutomaticReconnect().build();
|
|
6000
5998
|
return t.start().then(() => {
|
|
6001
5999
|
}).catch((e) => {
|
|
6002
6000
|
}), t.onclose((e) => {
|
|
6003
6001
|
}), t.onreconnected(() => {
|
|
6004
6002
|
}), t;
|
|
6005
|
-
},
|
|
6003
|
+
}, an = "v1", Vf = et(`/api/graphics-engine/component/${an}`, (t) => (t.customErrorMessage = () => "", t)), Wf = et(`/api/portal/manager/${an}`, (t) => (t.customErrorMessage = () => "", t)), zf = et(`/api/speech-base/speech/${an}`, (t) => (t.customErrorMessage = () => "", t)), or = Vf.get("/component/client/heartbeat"), qf = Wf.get("/basics/by-alias");
|
|
6006
6004
|
zf.post("/control/callBack");
|
|
6007
|
-
const Jf = et(`/api/tool/event-bus/${
|
|
6008
|
-
const t = Dt(), { entryApp: e } =
|
|
6005
|
+
const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.get("/permissionset/application"), Gf = () => {
|
|
6006
|
+
const t = Dt(), { entryApp: e } = qt.hooks.useEntryApp(), { entryMenu: n } = qt.hooks.useEntryMenu();
|
|
6009
6007
|
let o = null;
|
|
6010
6008
|
return Ve(async () => {
|
|
6011
6009
|
var p;
|
|
6012
6010
|
let r = ((p = t.meta) == null ? void 0 : p.showLayout) ?? !0, { showLayout: s = !0 } = t.query;
|
|
6013
6011
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
6014
|
-
await
|
|
6012
|
+
await en();
|
|
6015
6013
|
const a = (v) => {
|
|
6016
6014
|
try {
|
|
6017
6015
|
return JSON.parse(v);
|
|
@@ -6101,10 +6099,10 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6101
6099
|
}, 5e3), y.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
6102
6100
|
};
|
|
6103
6101
|
window.addEventListener("online", () => g("online")), window.addEventListener("offline", () => g("offline"));
|
|
6104
|
-
}),
|
|
6102
|
+
}), Zt(() => {
|
|
6105
6103
|
o && clearInterval(o);
|
|
6106
6104
|
}), {};
|
|
6107
|
-
},
|
|
6105
|
+
}, cn = "v1", Xf = ft(`/api/fms/report/${cn}`), no = ft(`/api/emergency/manage/${cn}`), Zf = jn.get("/permissionset/user-portal-menu"), as = ft(`/api/alarm/config/${cn}`), Yf = ft(`/api/alarm/run-time/${cn}`), eh = as.get("/alarm-definition/status-option"), th = Yf.post("/record/handling"), nh = as.get("/alarm-level/prompttone"), oh = Xf.get("/alarm/rule/list"), rh = pr.get("/controller/space-children-all-type"), sh = pr.get("/controller/fuzzy-area-small"), ah = no.get("/emergency-event/event/type"), ih = no.get("/emergency-event/event/level"), ch = no.get("/emergency-plan/plan/handle-time"), lh = { class: "handle-alarm-container" }, uh = { class: "select-check" }, dh = { class: "form-box" }, ph = { class: "select-check" }, fh = { style: { "margin-left": "8px" } }, hh = { class: "foot-btn-box" }, gh = {
|
|
6108
6106
|
name: "handleAlarm"
|
|
6109
6107
|
}, mh = /* @__PURE__ */ ne({
|
|
6110
6108
|
...gh,
|
|
@@ -6182,7 +6180,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6182
6180
|
O.value = k.data.filter((L) => L.status), O.value.length > 0 && (i.value.workOrderRules = O.value[0].id);
|
|
6183
6181
|
};
|
|
6184
6182
|
G(l, (M) => {
|
|
6185
|
-
M || (
|
|
6183
|
+
M || (ie(), ue());
|
|
6186
6184
|
}), G(
|
|
6187
6185
|
S,
|
|
6188
6186
|
(M) => {
|
|
@@ -6199,19 +6197,19 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6199
6197
|
const z = (M) => {
|
|
6200
6198
|
var k;
|
|
6201
6199
|
return (k = a.value) == null ? void 0 : k.parentNode.parentNode;
|
|
6202
|
-
},
|
|
6200
|
+
}, ae = (M) => {
|
|
6203
6201
|
u.value.reportTheme = "";
|
|
6204
6202
|
}, Ce = (M, k) => {
|
|
6205
6203
|
k.length > 0 && (g.value = k[0].path), i.value.reportPosition = M, _.value = "";
|
|
6206
|
-
},
|
|
6204
|
+
}, Rt = (M) => {
|
|
6207
6205
|
M && (u.value.reportPosition = "", g.value = ""), M ? (i.value.reportPosition = null, g.value = "", p.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", p.value = "请选择");
|
|
6208
|
-
},
|
|
6206
|
+
}, pe = (M) => {
|
|
6209
6207
|
M && (u.value.reportTheme = ""), M ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
|
|
6210
|
-
},
|
|
6208
|
+
}, ie = () => {
|
|
6211
6209
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
6212
|
-
},
|
|
6210
|
+
}, ue = () => {
|
|
6213
6211
|
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, S.value = !0, D.value = !0, T.value = !0, i.value.reportTheme = N("告警对象").value, g.value = "", p.value = "告警对象位置", v.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, d.value = [], h.value = [];
|
|
6214
|
-
},
|
|
6212
|
+
}, ze = (M) => {
|
|
6215
6213
|
M == "eventTypeId" && (i.value.eventLevelId = null, oo()), M == "eventLevelId" && ro(), M == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (f.value = !0, i.value.timeLimit = "") : f.value = !1);
|
|
6216
6214
|
}, is = async () => {
|
|
6217
6215
|
const [M, k] = await ah().run();
|
|
@@ -6223,9 +6221,9 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6223
6221
|
}, [k, L] = await ih(M).run();
|
|
6224
6222
|
if (k) return {};
|
|
6225
6223
|
const ke = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
6226
|
-
h.value = L.map((
|
|
6227
|
-
id: `${
|
|
6228
|
-
name: ke[
|
|
6224
|
+
h.value = L.map((xt) => ({
|
|
6225
|
+
id: `${xt}`,
|
|
6226
|
+
name: ke[xt] ? ke[xt] : xt
|
|
6229
6227
|
})), L.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, ro());
|
|
6230
6228
|
}, ro = async () => {
|
|
6231
6229
|
const M = {
|
|
@@ -6235,7 +6233,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6235
6233
|
if (k) return {};
|
|
6236
6234
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6237
6235
|
}, cs = (M) => {
|
|
6238
|
-
|
|
6236
|
+
ie();
|
|
6239
6237
|
}, ls = async () => {
|
|
6240
6238
|
const M = {
|
|
6241
6239
|
logic: !1,
|
|
@@ -6310,7 +6308,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6310
6308
|
}, {
|
|
6311
6309
|
header: x(() => [
|
|
6312
6310
|
ye(
|
|
6313
|
-
|
|
6311
|
+
re(m(N)("告警处理").value),
|
|
6314
6312
|
1
|
|
6315
6313
|
/* TEXT */
|
|
6316
6314
|
)
|
|
@@ -6323,7 +6321,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6323
6321
|
}, {
|
|
6324
6322
|
default: x(() => [
|
|
6325
6323
|
ye(
|
|
6326
|
-
|
|
6324
|
+
re(m(N)("取消").value),
|
|
6327
6325
|
1
|
|
6328
6326
|
/* TEXT */
|
|
6329
6327
|
)
|
|
@@ -6337,7 +6335,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6337
6335
|
}, {
|
|
6338
6336
|
default: x(() => [
|
|
6339
6337
|
ye(
|
|
6340
|
-
|
|
6338
|
+
re(m(N)("结束处理").value),
|
|
6341
6339
|
1
|
|
6342
6340
|
/* TEXT */
|
|
6343
6341
|
)
|
|
@@ -6352,7 +6350,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6352
6350
|
}, {
|
|
6353
6351
|
default: x(() => [
|
|
6354
6352
|
ye(
|
|
6355
|
-
|
|
6353
|
+
re(m(N)("继续处理").value),
|
|
6356
6354
|
1
|
|
6357
6355
|
/* TEXT */
|
|
6358
6356
|
)
|
|
@@ -6482,12 +6480,12 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6482
6480
|
modelValue: S.value,
|
|
6483
6481
|
"onUpdate:modelValue": k[12] || (k[12] = (L) => S.value = L),
|
|
6484
6482
|
checkboxType: "default",
|
|
6485
|
-
onChange:
|
|
6483
|
+
onChange: Rt,
|
|
6486
6484
|
size: "middle"
|
|
6487
6485
|
}, {
|
|
6488
6486
|
default: x(() => [
|
|
6489
6487
|
ye(
|
|
6490
|
-
|
|
6488
|
+
re(m(N)("告警对象位置").value),
|
|
6491
6489
|
1
|
|
6492
6490
|
/* TEXT */
|
|
6493
6491
|
)
|
|
@@ -6518,18 +6516,18 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6518
6516
|
modelValue: i.value.reportTheme,
|
|
6519
6517
|
"onUpdate:modelValue": k[14] || (k[14] = (L) => i.value.reportTheme = L),
|
|
6520
6518
|
placeholder: v.value,
|
|
6521
|
-
onChange:
|
|
6519
|
+
onChange: ae
|
|
6522
6520
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
6523
6521
|
Q(m(fo), {
|
|
6524
6522
|
modelValue: D.value,
|
|
6525
6523
|
"onUpdate:modelValue": k[15] || (k[15] = (L) => D.value = L),
|
|
6526
6524
|
checkboxType: "default",
|
|
6527
|
-
onChange:
|
|
6525
|
+
onChange: pe,
|
|
6528
6526
|
size: "middle"
|
|
6529
6527
|
}, {
|
|
6530
6528
|
default: x(() => [
|
|
6531
6529
|
ye(
|
|
6532
|
-
|
|
6530
|
+
re(m(N)("告警对象").value),
|
|
6533
6531
|
1
|
|
6534
6532
|
/* TEXT */
|
|
6535
6533
|
)
|
|
@@ -6576,7 +6574,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6576
6574
|
"get-popup-container": z,
|
|
6577
6575
|
marginBottom: "30px",
|
|
6578
6576
|
marginRight: "0",
|
|
6579
|
-
onChange: k[21] || (k[21] = (L) =>
|
|
6577
|
+
onChange: k[21] || (k[21] = (L) => ze("eventTypeId"))
|
|
6580
6578
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6581
6579
|
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6582
6580
|
key: 7,
|
|
@@ -6594,7 +6592,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6594
6592
|
"get-popup-container": z,
|
|
6595
6593
|
marginBottom: "30px",
|
|
6596
6594
|
marginRight: "0",
|
|
6597
|
-
onChange: k[24] || (k[24] = (L) =>
|
|
6595
|
+
onChange: k[24] || (k[24] = (L) => ze("eventLevelId"))
|
|
6598
6596
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6599
6597
|
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6600
6598
|
key: 8,
|
|
@@ -6626,7 +6624,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6626
6624
|
"border-type": "underline",
|
|
6627
6625
|
size: "small",
|
|
6628
6626
|
"get-popup-container": z,
|
|
6629
|
-
onChange: k[26] || (k[26] = (L) =>
|
|
6627
|
+
onChange: k[26] || (k[26] = (L) => ze("interval")),
|
|
6630
6628
|
placeholder: "请选择"
|
|
6631
6629
|
}, null, 8, ["modelValue", "options"])
|
|
6632
6630
|
])
|
|
@@ -6655,7 +6653,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6655
6653
|
}), vh = /* @__PURE__ */ be(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
|
|
6656
6654
|
handleAlarmVue: () => he(vh, {
|
|
6657
6655
|
handerIds: e.value,
|
|
6658
|
-
projectId:
|
|
6656
|
+
projectId: Yt().id,
|
|
6659
6657
|
ref: t,
|
|
6660
6658
|
onEmitFn: (r, s) => {
|
|
6661
6659
|
}
|
|
@@ -6696,7 +6694,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6696
6694
|
B(
|
|
6697
6695
|
"div",
|
|
6698
6696
|
bh,
|
|
6699
|
-
|
|
6697
|
+
re(m(N)("新告警").value),
|
|
6700
6698
|
1
|
|
6701
6699
|
/* TEXT */
|
|
6702
6700
|
)
|
|
@@ -6717,7 +6715,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6717
6715
|
B(
|
|
6718
6716
|
"div",
|
|
6719
6717
|
Th,
|
|
6720
|
-
|
|
6718
|
+
re(m(N)("告警等级:").value),
|
|
6721
6719
|
1
|
|
6722
6720
|
/* TEXT */
|
|
6723
6721
|
),
|
|
@@ -6727,7 +6725,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6727
6725
|
class: "alarm-msg-line-right alarm-content-object",
|
|
6728
6726
|
style: yn({ color: a.msgItem.color })
|
|
6729
6727
|
},
|
|
6730
|
-
|
|
6728
|
+
re(a.msgItem.alarmLevelName || ""),
|
|
6731
6729
|
5
|
|
6732
6730
|
/* TEXT, STYLE */
|
|
6733
6731
|
)
|
|
@@ -6736,14 +6734,14 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6736
6734
|
B(
|
|
6737
6735
|
"div",
|
|
6738
6736
|
Sh,
|
|
6739
|
-
|
|
6737
|
+
re(m(N)("告警对象:").value),
|
|
6740
6738
|
1
|
|
6741
6739
|
/* TEXT */
|
|
6742
6740
|
),
|
|
6743
6741
|
B(
|
|
6744
6742
|
"div",
|
|
6745
6743
|
kh,
|
|
6746
|
-
|
|
6744
|
+
re(a.msgItem.equipmentName || ""),
|
|
6747
6745
|
1
|
|
6748
6746
|
/* TEXT */
|
|
6749
6747
|
)
|
|
@@ -6752,14 +6750,14 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6752
6750
|
B(
|
|
6753
6751
|
"div",
|
|
6754
6752
|
Lh,
|
|
6755
|
-
|
|
6753
|
+
re(m(N)("告警内容:").value),
|
|
6756
6754
|
1
|
|
6757
6755
|
/* TEXT */
|
|
6758
6756
|
),
|
|
6759
6757
|
B(
|
|
6760
6758
|
"div",
|
|
6761
6759
|
$h,
|
|
6762
|
-
|
|
6760
|
+
re(a.msgItem.alarmContent || ""),
|
|
6763
6761
|
1
|
|
6764
6762
|
/* TEXT */
|
|
6765
6763
|
)
|
|
@@ -6774,7 +6772,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6774
6772
|
}, {
|
|
6775
6773
|
default: x(() => [
|
|
6776
6774
|
ye(
|
|
6777
|
-
|
|
6775
|
+
re(m(N)("设备详情").value),
|
|
6778
6776
|
1
|
|
6779
6777
|
/* TEXT */
|
|
6780
6778
|
)
|
|
@@ -6791,7 +6789,7 @@ const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6791
6789
|
}, {
|
|
6792
6790
|
default: x(() => [
|
|
6793
6791
|
ye(
|
|
6794
|
-
|
|
6792
|
+
re(m(N)("处理").value),
|
|
6795
6793
|
1
|
|
6796
6794
|
/* TEXT */
|
|
6797
6795
|
)
|
|
@@ -6842,7 +6840,7 @@ const Rh = () => {
|
|
|
6842
6840
|
var D;
|
|
6843
6841
|
const T = [];
|
|
6844
6842
|
T.push({ alarmId: I.recordId }), r.value = T, (D = n.value) == null || D.open();
|
|
6845
|
-
}, { entryApp: f } =
|
|
6843
|
+
}, { entryApp: f } = qt.hooks.useEntryApp(), d = (I) => {
|
|
6846
6844
|
fr(I.equipmentCode, I.equipmentPanelCode);
|
|
6847
6845
|
}, { handleAlarmVue: h } = Ah(n, r), b = async () => {
|
|
6848
6846
|
var D;
|
|
@@ -6856,7 +6854,7 @@ const Rh = () => {
|
|
|
6856
6854
|
}, p = (I) => {
|
|
6857
6855
|
if (!I) return;
|
|
6858
6856
|
const T = Bh();
|
|
6859
|
-
|
|
6857
|
+
Wt.open({
|
|
6860
6858
|
key: T,
|
|
6861
6859
|
class: "alarm-notify",
|
|
6862
6860
|
message: N("新告警").value,
|
|
@@ -6944,8 +6942,8 @@ const Rh = () => {
|
|
|
6944
6942
|
setup(t) {
|
|
6945
6943
|
const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Rh();
|
|
6946
6944
|
return Ve(async () => {
|
|
6947
|
-
await
|
|
6948
|
-
}),
|
|
6945
|
+
await en(), n();
|
|
6946
|
+
}), Zt(() => {
|
|
6949
6947
|
e.value && e.value.disconnect(), e.value = null;
|
|
6950
6948
|
}), (a, c) => ($(), W(
|
|
6951
6949
|
De,
|
|
@@ -6969,7 +6967,7 @@ const Rh = () => {
|
|
|
6969
6967
|
}), jh = { class: "das-main-app-container" }, Nh = /* @__PURE__ */ ne({
|
|
6970
6968
|
__name: "index",
|
|
6971
6969
|
setup(t) {
|
|
6972
|
-
const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => ce.excludeRoutes), r = H(() => ce.routeKeepAliveVisible), s = H(() => ({ mode:
|
|
6970
|
+
const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => ce.excludeRoutes), r = H(() => ce.routeKeepAliveVisible), s = H(() => ({ mode: Gt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = ip(), { innerPage: c, commandList: l, initNextTick: i } = cp(a);
|
|
6973
6971
|
hp(c, a, i), fp(), dp(), Ap();
|
|
6974
6972
|
const { $changePwd: u, $personSetDialog: f } = gp(), { changeEnterprisesVisible: d, userId: h, tenantId: b, changeEnterprise: y } = ts();
|
|
6975
6973
|
up();
|
|
@@ -7027,15 +7025,15 @@ E("@das-fed/web");
|
|
|
7027
7025
|
const Uh = [
|
|
7028
7026
|
{
|
|
7029
7027
|
path: je,
|
|
7030
|
-
component: () => import("./index-
|
|
7028
|
+
component: () => import("./index-DQLhHoNj.js")
|
|
7031
7029
|
},
|
|
7032
7030
|
{
|
|
7033
7031
|
path: ct,
|
|
7034
|
-
component: () => import("./index-
|
|
7032
|
+
component: () => import("./index-CzrTf6x-.js")
|
|
7035
7033
|
},
|
|
7036
7034
|
{
|
|
7037
7035
|
path: Cr,
|
|
7038
|
-
component: () => import("./index-
|
|
7036
|
+
component: () => import("./index-MmUsuVm6.js")
|
|
7039
7037
|
}
|
|
7040
7038
|
], Yg = {
|
|
7041
7039
|
routes: Uh,
|
|
@@ -7045,24 +7043,25 @@ const Uh = [
|
|
|
7045
7043
|
},
|
|
7046
7044
|
hooks: {
|
|
7047
7045
|
useEntryApp: vt,
|
|
7048
|
-
useEntryMenu:
|
|
7046
|
+
useEntryMenu: rn
|
|
7049
7047
|
}
|
|
7050
7048
|
};
|
|
7051
7049
|
export {
|
|
7052
7050
|
Jg as A,
|
|
7053
7051
|
q as B,
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7052
|
+
Je as C,
|
|
7053
|
+
Gg as D,
|
|
7054
|
+
Xg as E,
|
|
7055
|
+
ee as F,
|
|
7056
|
+
Kg as G,
|
|
7057
|
+
Yg as H,
|
|
7059
7058
|
ct as I,
|
|
7060
7059
|
be as _,
|
|
7061
7060
|
zo as a,
|
|
7062
7061
|
qo as b,
|
|
7063
7062
|
dt as c,
|
|
7064
7063
|
En as d,
|
|
7065
|
-
|
|
7064
|
+
Ut as e,
|
|
7066
7065
|
Rg as f,
|
|
7067
7066
|
ga as g,
|
|
7068
7067
|
ma as h,
|
|
@@ -7070,7 +7069,7 @@ export {
|
|
|
7070
7069
|
jg as j,
|
|
7071
7070
|
Ng as k,
|
|
7072
7071
|
ce as l,
|
|
7073
|
-
|
|
7072
|
+
Jt as m,
|
|
7074
7073
|
Hg as n,
|
|
7075
7074
|
Ug as o,
|
|
7076
7075
|
wa as p,
|