@das-fed/web 6.4.0-dev.33 → 6.4.0-dev.34
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-BNR2zZet.js → index-B3Zo7C9d.js} +201 -202
- package/index-B3Zo7C9d.js.gz +0 -0
- package/{index-BoQTPXD7.js → index-DJ8zDx6p.js} +1 -1
- package/index-DJ8zDx6p.js.gz +0 -0
- package/{index-Cc80hpg5.js → index-DKcYM4y1.js} +1 -1
- package/{index-C05_ixnq.js → index-XC7gVyAV.js} +1 -1
- package/index-XC7gVyAV.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +2 -6
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-BSWMIad0.js → index-BGqxNwVK.js} +175 -172
- package/packages/main-app-framework/index-BGqxNwVK.js.gz +0 -0
- package/packages/main-app-framework/{index-czNdTV8H.js → index-BYJ_iw6e.js} +1 -1
- package/packages/main-app-framework/index-BYJ_iw6e.js.gz +0 -0
- package/packages/main-app-framework/{index-DE3A2Eyv.js → index-C2gtyFHH.js} +1 -1
- package/packages/main-app-framework/index-C2gtyFHH.js.gz +0 -0
- package/packages/main-app-framework/{index-CsB4a8gH.js → index-FJjkdoP_.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +2 -6
- package/packages/micro-frontend/index.js.gz +0 -0
- package/index-BNR2zZet.js.gz +0 -0
- package/index-BoQTPXD7.js.gz +0 -0
- package/index-C05_ixnq.js.gz +0 -0
- package/packages/main-app-framework/index-BSWMIad0.js.gz +0 -0
- package/packages/main-app-framework/index-DE3A2Eyv.js.gz +0 -0
- package/packages/main-app-framework/index-czNdTV8H.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 se, render as Ft, onBeforeUnmount as Xt, 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 Vt } 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 Zt, getTenantInfo as Mn, getProjectInfo as Fe, getToken as Bn, getUserInfo as cr, getMenus as Wt } 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 Yt } from "@das-fed/utils/nextTiken";
|
|
32
|
+
import { mainAppFramework as zt } 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({}), qt = 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[qt.value];
|
|
112
|
+
return qt.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
|
+
qt.value = t;
|
|
117
|
+
}, Ng = () => qt, it = E("light"), yt = E({
|
|
118
118
|
light: {},
|
|
119
119
|
dark: {}
|
|
120
120
|
}), wt = E({
|
|
@@ -207,14 +207,10 @@ const go = (t, e) => {
|
|
|
207
207
|
X.items = e;
|
|
208
208
|
},
|
|
209
209
|
appendItem: (t) => {
|
|
210
|
-
|
|
211
|
-
X.visible || (X.visible = !0), !X.items.find((n) => n.value == t.value) && X.items.push(t);
|
|
212
|
-
}, 200);
|
|
210
|
+
X.visible || (X.visible = !0), !X.items.find((n) => n.value == t.value) && X.items.push(t);
|
|
213
211
|
},
|
|
214
212
|
setActiveItem: (t) => {
|
|
215
|
-
|
|
216
|
-
X.activeItem = t;
|
|
217
|
-
}, 200);
|
|
213
|
+
X.activeItem = t;
|
|
218
214
|
},
|
|
219
215
|
setConfig: (t) => {
|
|
220
216
|
X.config = t;
|
|
@@ -586,8 +582,8 @@ const go = (t, e) => {
|
|
|
586
582
|
app: F
|
|
587
583
|
} = _;
|
|
588
584
|
ca(I);
|
|
589
|
-
let z = !0,
|
|
590
|
-
(C === !1 || T === !1 || T === "false") && (z = !1,
|
|
585
|
+
let z = !0, ie = !0, Ce = !0;
|
|
586
|
+
(C === !1 || T === !1 || T === "false") && (z = !1, ie = !1, Ce = !1), (S === !1 || D === !1 || D === "false") && (ie = !1), (P === !1 || O === !1 || O === "false") && (Ce = !1), o.value = z, r.value = ie, s.value = Ce;
|
|
591
587
|
}
|
|
592
588
|
);
|
|
593
589
|
const y = H(() => ({
|
|
@@ -909,7 +905,7 @@ const go = (t, e) => {
|
|
|
909
905
|
"on:toggleFullScreen": u
|
|
910
906
|
}), null, 16, qa)) : j("v-if", !0);
|
|
911
907
|
}
|
|
912
|
-
}), mo = E("/das-micro-app"), de = E([]),
|
|
908
|
+
}), mo = E("/das-micro-app"), de = E([]), Nt = E(!1), xt = E([]), Qt = E(!0);
|
|
913
909
|
let Te = null, Ee = null, rt = null;
|
|
914
910
|
const st = (t, e, n) => {
|
|
915
911
|
var r, s, a, c;
|
|
@@ -973,7 +969,7 @@ const st = (t, e, n) => {
|
|
|
973
969
|
);
|
|
974
970
|
}, ee = {
|
|
975
971
|
loadMicroApp: (t) => {
|
|
976
|
-
|
|
972
|
+
Nt.value = !0;
|
|
977
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;
|
|
978
974
|
if (!o) {
|
|
979
975
|
n && (n.actived = !1);
|
|
@@ -1001,7 +997,7 @@ const st = (t, e, n) => {
|
|
|
1001
997
|
}));
|
|
1002
998
|
},
|
|
1003
999
|
hideAllMicroApp: () => {
|
|
1004
|
-
|
|
1000
|
+
Nt.value = !1, de.value.map((t) => {
|
|
1005
1001
|
t.actived = !1;
|
|
1006
1002
|
});
|
|
1007
1003
|
},
|
|
@@ -1010,7 +1006,7 @@ const st = (t, e, n) => {
|
|
|
1010
1006
|
e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
|
|
1011
1007
|
},
|
|
1012
1008
|
unloadAllMicroApp: () => {
|
|
1013
|
-
|
|
1009
|
+
Nt.value = !1, de.value.map((t) => {
|
|
1014
1010
|
t.loaded = !1, t.actived = !1, t.dom = void 0;
|
|
1015
1011
|
});
|
|
1016
1012
|
},
|
|
@@ -1353,7 +1349,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1353
1349
|
} }
|
|
1354
1350
|
},
|
|
1355
1351
|
setup(t) {
|
|
1356
|
-
const e = t, n = H(() => !
|
|
1352
|
+
const e = t, n = H(() => !Nt.value), o = H(() => ({
|
|
1357
1353
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
1358
1354
|
...e.transitionConfig
|
|
1359
1355
|
})), r = H(() => ({ showLayout: e.showLayout, showAside: e.showAside, showTabs: e.showTabs }));
|
|
@@ -1476,10 +1472,10 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1476
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();
|
|
1477
1473
|
}), ee.addEventListenerFromMainApp("route", (a) => {
|
|
1478
1474
|
const { cmd: c, path: l } = a.data;
|
|
1479
|
-
c === "reload" && (
|
|
1480
|
-
|
|
1481
|
-
}, 300)), c === "unload" && (
|
|
1482
|
-
|
|
1475
|
+
c === "reload" && (xt.value.push(l), Qt.value = !1, setTimeout(() => {
|
|
1476
|
+
Qt.value = !0, xt.value = [];
|
|
1477
|
+
}, 300)), c === "unload" && (xt.value.push(l), Qt.value = !1, setTimeout(() => {
|
|
1478
|
+
Qt.value = !0, xt.value = [];
|
|
1483
1479
|
}, 100));
|
|
1484
1480
|
});
|
|
1485
1481
|
}, Ct = "/", je = "/application", br = [
|
|
@@ -1681,7 +1677,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1681
1677
|
class: "desc-item"
|
|
1682
1678
|
}, [
|
|
1683
1679
|
ye(
|
|
1684
|
-
|
|
1680
|
+
se(r),
|
|
1685
1681
|
1
|
|
1686
1682
|
/* TEXT */
|
|
1687
1683
|
)
|
|
@@ -1704,9 +1700,9 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1704
1700
|
const r = document.createElement("div");
|
|
1705
1701
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1706
1702
|
const a = he(Ei, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1707
|
-
|
|
1703
|
+
Ft(null, r), document.body.removeChild(r), o(null);
|
|
1708
1704
|
} });
|
|
1709
|
-
|
|
1705
|
+
Ft(a, r);
|
|
1710
1706
|
});
|
|
1711
1707
|
Ss(bi);
|
|
1712
1708
|
const Si = "data:image/png;base64,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", ki = "data:image/png;base64,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", Pi = (t = {}) => {
|
|
@@ -1833,7 +1829,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1833
1829
|
if (e.exitConfirmPages.includes(n) && !window.confirm("切换后已录入的数据将会丢失且不可恢复,确定切换?"))
|
|
1834
1830
|
throw new Error("取消切换");
|
|
1835
1831
|
}
|
|
1836
|
-
},
|
|
1832
|
+
}, Ht = (t, e) => {
|
|
1837
1833
|
if (!e || !e.length) return;
|
|
1838
1834
|
const n = JSON.parse(sessionStorage.getItem(t) || "{}");
|
|
1839
1835
|
if (n && JSON.stringify(n) !== "{}" && n != null && n.closeTabPageConfirm && n.closeTabPageConfirm.length) {
|
|
@@ -1854,7 +1850,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1854
1850
|
return t ? { tenantConfig: null } : (Li(e), { tenantConfig: e });
|
|
1855
1851
|
}, Ki = async () => {
|
|
1856
1852
|
const [t, e] = await zi().run({
|
|
1857
|
-
userId:
|
|
1853
|
+
userId: Zt().id,
|
|
1858
1854
|
pageSize: 20,
|
|
1859
1855
|
pageIndex: 1
|
|
1860
1856
|
});
|
|
@@ -1870,7 +1866,7 @@ function Yi() {
|
|
|
1870
1866
|
function kr(t, e) {
|
|
1871
1867
|
return t === e || t !== t && e !== e;
|
|
1872
1868
|
}
|
|
1873
|
-
function
|
|
1869
|
+
function en(t, e) {
|
|
1874
1870
|
for (var n = t.length; n--; )
|
|
1875
1871
|
if (kr(t[n][0], e))
|
|
1876
1872
|
return n;
|
|
@@ -1878,21 +1874,21 @@ function tn(t, e) {
|
|
|
1878
1874
|
}
|
|
1879
1875
|
var ec = Array.prototype, tc = ec.splice;
|
|
1880
1876
|
function nc(t) {
|
|
1881
|
-
var e = this.__data__, n =
|
|
1877
|
+
var e = this.__data__, n = en(e, t);
|
|
1882
1878
|
if (n < 0)
|
|
1883
1879
|
return !1;
|
|
1884
1880
|
var o = e.length - 1;
|
|
1885
1881
|
return n == o ? e.pop() : tc.call(e, n, 1), --this.size, !0;
|
|
1886
1882
|
}
|
|
1887
1883
|
function oc(t) {
|
|
1888
|
-
var e = this.__data__, n =
|
|
1884
|
+
var e = this.__data__, n = en(e, t);
|
|
1889
1885
|
return n < 0 ? void 0 : e[n][1];
|
|
1890
1886
|
}
|
|
1891
1887
|
function rc(t) {
|
|
1892
|
-
return
|
|
1888
|
+
return en(this.__data__, t) > -1;
|
|
1893
1889
|
}
|
|
1894
1890
|
function sc(t, e) {
|
|
1895
|
-
var n = this.__data__, o =
|
|
1891
|
+
var n = this.__data__, o = en(n, t);
|
|
1896
1892
|
return o < 0 ? (++this.size, n.push([t, e])) : n[o][1] = e, this;
|
|
1897
1893
|
}
|
|
1898
1894
|
function He(t) {
|
|
@@ -2037,22 +2033,22 @@ function qc(t) {
|
|
|
2037
2033
|
var e = typeof t;
|
|
2038
2034
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
2039
2035
|
}
|
|
2040
|
-
function
|
|
2036
|
+
function tn(t, e) {
|
|
2041
2037
|
var n = t.__data__;
|
|
2042
2038
|
return qc(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
|
|
2043
2039
|
}
|
|
2044
2040
|
function Jc(t) {
|
|
2045
|
-
var e =
|
|
2041
|
+
var e = tn(this, t).delete(t);
|
|
2046
2042
|
return this.size -= e ? 1 : 0, e;
|
|
2047
2043
|
}
|
|
2048
2044
|
function Kc(t) {
|
|
2049
|
-
return
|
|
2045
|
+
return tn(this, t).get(t);
|
|
2050
2046
|
}
|
|
2051
2047
|
function Gc(t) {
|
|
2052
|
-
return
|
|
2048
|
+
return tn(this, t).has(t);
|
|
2053
2049
|
}
|
|
2054
2050
|
function Xc(t, e) {
|
|
2055
|
-
var n =
|
|
2051
|
+
var n = tn(this, t), o = n.size;
|
|
2056
2052
|
return n.set(t, e), this.size += n.size == o ? 0 : 1, this;
|
|
2057
2053
|
}
|
|
2058
2054
|
function gt(t) {
|
|
@@ -2112,7 +2108,7 @@ function Or(t, e, n) {
|
|
|
2112
2108
|
var o = t[e];
|
|
2113
2109
|
(!(nl.call(t, e) && kr(o, n)) || n === void 0 && !(e in t)) && Dr(t, e, n);
|
|
2114
2110
|
}
|
|
2115
|
-
function
|
|
2111
|
+
function nn(t, e, n, o) {
|
|
2116
2112
|
var r = !n;
|
|
2117
2113
|
n || (n = {});
|
|
2118
2114
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
@@ -2204,7 +2200,7 @@ function qn(t) {
|
|
|
2204
2200
|
return Hr(t) ? jr(t) : Jl(t);
|
|
2205
2201
|
}
|
|
2206
2202
|
function Kl(t, e) {
|
|
2207
|
-
return t &&
|
|
2203
|
+
return t && nn(e, qn(e), t);
|
|
2208
2204
|
}
|
|
2209
2205
|
function Gl(t) {
|
|
2210
2206
|
var e = [];
|
|
@@ -2226,7 +2222,7 @@ function Jn(t) {
|
|
|
2226
2222
|
return Hr(t) ? jr(t, !0) : Yl(t);
|
|
2227
2223
|
}
|
|
2228
2224
|
function eu(t, e) {
|
|
2229
|
-
return t &&
|
|
2225
|
+
return t && nn(e, Jn(e), t);
|
|
2230
2226
|
}
|
|
2231
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;
|
|
2232
2228
|
function nu(t, e) {
|
|
@@ -2257,7 +2253,7 @@ var su = Object.prototype, au = su.propertyIsEnumerable, Mo = Object.getOwnPrope
|
|
|
2257
2253
|
}));
|
|
2258
2254
|
} : Fr;
|
|
2259
2255
|
function iu(t, e) {
|
|
2260
|
-
return
|
|
2256
|
+
return nn(t, Kn(t), e);
|
|
2261
2257
|
}
|
|
2262
2258
|
function Vr(t, e) {
|
|
2263
2259
|
for (var n = -1, o = e.length, r = t.length; ++n < o; )
|
|
@@ -2270,7 +2266,7 @@ var Wr = Nr(Object.getPrototypeOf, Object), cu = Object.getOwnPropertySymbols, z
|
|
|
2270
2266
|
return e;
|
|
2271
2267
|
} : Fr;
|
|
2272
2268
|
function lu(t, e) {
|
|
2273
|
-
return
|
|
2269
|
+
return nn(t, zr(t), e);
|
|
2274
2270
|
}
|
|
2275
2271
|
function qr(t, e, n) {
|
|
2276
2272
|
var o = e(t);
|
|
@@ -2388,7 +2384,7 @@ function Zu(t) {
|
|
|
2388
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 = {};
|
|
2389
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;
|
|
2390
2386
|
K[ad] = K[Kr] = K[hd] = !1;
|
|
2391
|
-
function
|
|
2387
|
+
function Ut(t, e, n, o, r, s) {
|
|
2392
2388
|
var a, c = e & ed, l = e & td, i = e & nd;
|
|
2393
2389
|
if (a !== void 0)
|
|
2394
2390
|
return a;
|
|
@@ -2416,34 +2412,34 @@ function Ft(t, e, n, o, r, s) {
|
|
|
2416
2412
|
if (h)
|
|
2417
2413
|
return h;
|
|
2418
2414
|
s.set(t, a), Yu(t) ? t.forEach(function(g) {
|
|
2419
|
-
a.add(
|
|
2415
|
+
a.add(Ut(g, e, n, g, t, s));
|
|
2420
2416
|
}) : Gu(t) && t.forEach(function(g, p) {
|
|
2421
|
-
a.set(p,
|
|
2417
|
+
a.set(p, Ut(g, e, n, p, t, s));
|
|
2422
2418
|
});
|
|
2423
2419
|
var b = i ? l ? du : uu : l ? Jn : qn, y = u ? void 0 : b(t);
|
|
2424
2420
|
return el(y || t, function(g, p) {
|
|
2425
|
-
y && (p = g, g = t[p]), Or(a, p,
|
|
2421
|
+
y && (p = g, g = t[p]), Or(a, p, Ut(g, e, n, p, t, s));
|
|
2426
2422
|
}), a;
|
|
2427
2423
|
}
|
|
2428
2424
|
var Ed = 1, Sd = 4;
|
|
2429
2425
|
function dt(t) {
|
|
2430
|
-
return
|
|
2426
|
+
return Ut(t, Ed | Sd);
|
|
2431
2427
|
}
|
|
2432
|
-
const
|
|
2428
|
+
const Jt = (t, e = "") => {
|
|
2433
2429
|
for (let n of t)
|
|
2434
2430
|
if (!(n != null && n.disable) && !(n != null && n.expired))
|
|
2435
2431
|
if (e) {
|
|
2436
2432
|
if (n.routeUrl && n.code === e)
|
|
2437
2433
|
return n;
|
|
2438
2434
|
if (n.children && n.children.length) {
|
|
2439
|
-
const o =
|
|
2435
|
+
const o = Jt(n.children, e);
|
|
2440
2436
|
if (o) return o;
|
|
2441
2437
|
}
|
|
2442
2438
|
} else {
|
|
2443
2439
|
if (n.routeUrl)
|
|
2444
2440
|
return n;
|
|
2445
2441
|
if (n.children && n.children.length) {
|
|
2446
|
-
const o =
|
|
2442
|
+
const o = Jt(n.children, e);
|
|
2447
2443
|
if (o) return o;
|
|
2448
2444
|
}
|
|
2449
2445
|
}
|
|
@@ -2577,7 +2573,7 @@ const Kt = (t, e = "") => {
|
|
|
2577
2573
|
query: { ...r.query, app: c }
|
|
2578
2574
|
};
|
|
2579
2575
|
}
|
|
2580
|
-
let f =
|
|
2576
|
+
let f = Jt(l, n);
|
|
2581
2577
|
if (!f) {
|
|
2582
2578
|
if (!s || !a)
|
|
2583
2579
|
return { menuConfig: l, currentApp: null, currentMenu: null, query: { ...r.query, app: c } };
|
|
@@ -2664,14 +2660,14 @@ const Kt = (t, e = "") => {
|
|
|
2664
2660
|
}, Zr = E(null), zd = async () => {
|
|
2665
2661
|
const [t, e] = await Ud().run();
|
|
2666
2662
|
return t ? { homeConfig: null } : (e && ($i(e), Zr.value = e), { homeConfig: e });
|
|
2667
|
-
},
|
|
2663
|
+
}, Kt = E(1), Yr = async () => {
|
|
2668
2664
|
const [t, e] = await Fd().run();
|
|
2669
|
-
return t ? { personalMenuConfig: null } : (
|
|
2665
|
+
return t ? { personalMenuConfig: null } : (Kt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
2670
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({
|
|
2671
2667
|
__name: "index",
|
|
2672
2668
|
setup(t, { expose: e }) {
|
|
2673
2669
|
const n = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
|
|
2674
|
-
o.value =
|
|
2670
|
+
o.value = Kt.value === 1, r.value = Kt.value === 2, n.value = !0;
|
|
2675
2671
|
}, c = (i) => {
|
|
2676
2672
|
i === 1 ? r.value = !1 : o.value = !1;
|
|
2677
2673
|
}, l = async () => {
|
|
@@ -2721,7 +2717,7 @@ const Kt = (t, e = "") => {
|
|
|
2721
2717
|
B(
|
|
2722
2718
|
"p",
|
|
2723
2719
|
Gd,
|
|
2724
|
-
|
|
2720
|
+
se(m(N)("侧边菜单栏").value),
|
|
2725
2721
|
1
|
|
2726
2722
|
/* TEXT */
|
|
2727
2723
|
),
|
|
@@ -2740,7 +2736,7 @@ const Kt = (t, e = "") => {
|
|
|
2740
2736
|
}, {
|
|
2741
2737
|
default: x(() => [
|
|
2742
2738
|
ye(
|
|
2743
|
-
|
|
2739
|
+
se(m(N)("弹出式菜单栏").value),
|
|
2744
2740
|
1
|
|
2745
2741
|
/* TEXT */
|
|
2746
2742
|
)
|
|
@@ -2763,7 +2759,7 @@ const Kt = (t, e = "") => {
|
|
|
2763
2759
|
}, {
|
|
2764
2760
|
default: x(() => [
|
|
2765
2761
|
ye(
|
|
2766
|
-
|
|
2762
|
+
se(m(N)("内嵌式菜单栏").value),
|
|
2767
2763
|
1
|
|
2768
2764
|
/* TEXT */
|
|
2769
2765
|
)
|
|
@@ -2786,7 +2782,7 @@ const Kt = (t, e = "") => {
|
|
|
2786
2782
|
Di(i), Qs(i);
|
|
2787
2783
|
}, n = async () => {
|
|
2788
2784
|
const [a, c] = await ap().run({ userId: cr().id });
|
|
2789
|
-
a || !c || JSON.stringify(c) === "{}" || (
|
|
2785
|
+
a || !c || JSON.stringify(c) === "{}" || (Vt.open({
|
|
2790
2786
|
key: "loginTip",
|
|
2791
2787
|
message: "上次登录信息",
|
|
2792
2788
|
placement: "bottomRight",
|
|
@@ -2865,7 +2861,7 @@ const Kt = (t, e = "") => {
|
|
|
2865
2861
|
// 树打平之后保留的数据
|
|
2866
2862
|
filterFlatCondition: (T) => T.type === 7
|
|
2867
2863
|
}), R.nav.setProjects(g || []), p && R.nav.setActiveProject(p));
|
|
2868
|
-
const C =
|
|
2864
|
+
const C = Zt() ?? {}, S = C != null && C.headPicture ? On(C.headPicture) : void 0;
|
|
2869
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({
|
|
2870
2866
|
getHistoryList: r,
|
|
2871
2867
|
getSearchList: s
|
|
@@ -2896,10 +2892,10 @@ const Kt = (t, e = "") => {
|
|
|
2896
2892
|
desc: n.menuExpirationExpiredInfo
|
|
2897
2893
|
};
|
|
2898
2894
|
}, up = () => {
|
|
2899
|
-
const { entryMenu: t } =
|
|
2895
|
+
const { entryMenu: t } = on();
|
|
2900
2896
|
R.menu.addEventListener("onItemClick", async (e) => {
|
|
2901
2897
|
ce.innerSet = !0;
|
|
2902
|
-
const n = Oe(
|
|
2898
|
+
const n = Oe(Wt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
2903
2899
|
if (!(n && !n.routeUrl)) {
|
|
2904
2900
|
if (!n) {
|
|
2905
2901
|
const { title: o, content: r, desc: s } = await Zn(n);
|
|
@@ -2923,7 +2919,7 @@ const Kt = (t, e = "") => {
|
|
|
2923
2919
|
const s = J();
|
|
2924
2920
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
2925
2921
|
const l = (ve().tabMap[r.code] ?? []).map((u) => u.code);
|
|
2926
|
-
l && l.length &&
|
|
2922
|
+
l && l.length && Ht(r.code, l), e(r);
|
|
2927
2923
|
});
|
|
2928
2924
|
const { enter: o } = ht();
|
|
2929
2925
|
return R.nav.addEventListener("fullScreenHandle", o), {};
|
|
@@ -2946,9 +2942,9 @@ const Kt = (t, e = "") => {
|
|
|
2946
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);
|
|
2947
2943
|
}
|
|
2948
2944
|
);
|
|
2949
|
-
const { deleteApp: i } = vt(), { entryMenu: u } =
|
|
2945
|
+
const { deleteApp: i } = vt(), { entryMenu: u } = on(), { reloadRoute: f, unloadRoute: d } = es(), h = (p) => {
|
|
2950
2946
|
var C;
|
|
2951
|
-
const v = Oe(
|
|
2947
|
+
const v = Oe(Wt(p.applicationCode)).find((S) => S.code === p.code), _ = (((C = ve().tabMap) == null ? void 0 : C[p.applicationCode]) ?? []).find((S) => S.code === p.code);
|
|
2952
2948
|
u({ currentMenu: v, route: { path: _.path, query: _.query ?? {} } });
|
|
2953
2949
|
}, b = (p) => {
|
|
2954
2950
|
if (!p || !p.length) return;
|
|
@@ -2961,7 +2957,7 @@ const Kt = (t, e = "") => {
|
|
|
2961
2957
|
if (C === -1) return;
|
|
2962
2958
|
const S = () => {
|
|
2963
2959
|
var z;
|
|
2964
|
-
let F = (((z = J().appcategorys) == null ? void 0 : z.map((
|
|
2960
|
+
let F = (((z = J().appcategorys) == null ? void 0 : z.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === v);
|
|
2965
2961
|
F = { ...F, value: F.code, label: F.name }, i(F), R.nav.removeItem(v);
|
|
2966
2962
|
};
|
|
2967
2963
|
({
|
|
@@ -2981,8 +2977,8 @@ const Kt = (t, e = "") => {
|
|
|
2981
2977
|
path: `/${F.applicationPath}${F.path}`.replace(/\/\//g, "/"),
|
|
2982
2978
|
query: F.query
|
|
2983
2979
|
}), R.menu.setActiveItem(F.menuId), R.tab.setActiveItem(F.code);
|
|
2984
|
-
const z = _.filter((
|
|
2985
|
-
z.forEach((
|
|
2980
|
+
const z = _.filter((ie) => ie.code !== O.value);
|
|
2981
|
+
z.forEach((ie) => R.tab.removeItem(ie.code)), b(z), Ae([{ key: `tabMap:${v}`, value: [F] }]), h(F);
|
|
2986
2982
|
},
|
|
2987
2983
|
right: async (O) => {
|
|
2988
2984
|
const F = A.currentCode;
|
|
@@ -2991,7 +2987,7 @@ const Kt = (t, e = "") => {
|
|
|
2991
2987
|
h(Ce);
|
|
2992
2988
|
}
|
|
2993
2989
|
const z = _.slice(C + 1);
|
|
2994
|
-
z.forEach((
|
|
2990
|
+
z.forEach((ie) => R.tab.removeItem(ie.code)), b(z), _.splice(C + 1), Ae([{ key: `tabMap:${v}`, value: _ }]);
|
|
2995
2991
|
}
|
|
2996
2992
|
})[p.type](p.data);
|
|
2997
2993
|
};
|
|
@@ -2999,7 +2995,7 @@ const Kt = (t, e = "") => {
|
|
|
2999
2995
|
ve().currentCode !== p.currentCode && (ce.innerSet = !0, h(p));
|
|
3000
2996
|
}), R.tab.addEventListener("onItemRemove", (p) => {
|
|
3001
2997
|
const v = ve(), A = J().currentSubAppCode ?? "";
|
|
3002
|
-
v.tabMap[A].findIndex((S) => S.code === p.code) !== -1 && (
|
|
2998
|
+
v.tabMap[A].findIndex((S) => S.code === p.code) !== -1 && (Ht(p.applicationCode, [p.code]), y({ type: "me", data: p }));
|
|
3003
2999
|
}), R.tab.addEventListener("onMenuClick", (p) => {
|
|
3004
3000
|
let v = [];
|
|
3005
3001
|
const A = ve().tabMap[p.applicationCode] ?? [];
|
|
@@ -3007,14 +3003,14 @@ const Kt = (t, e = "") => {
|
|
|
3007
3003
|
const _ = A.findIndex((C) => C.code === p.data.value);
|
|
3008
3004
|
v = A.slice(_ + 1);
|
|
3009
3005
|
}
|
|
3010
|
-
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]), Ht(
|
|
3011
3007
|
p.applicationCode,
|
|
3012
3008
|
v.map((_) => _.code)
|
|
3013
3009
|
), y({ type: p.type.key, data: p.data });
|
|
3014
3010
|
}), R.tab.addEventListener("onPageRefresh", async (p) => {
|
|
3015
3011
|
if (!p || p.path === ct) return;
|
|
3016
|
-
|
|
3017
|
-
const v = Oe(
|
|
3012
|
+
Ht(p.applicationCode, [p.code]);
|
|
3013
|
+
const v = Oe(Wt(p.applicationCode)).find((C) => C.code === p.code);
|
|
3018
3014
|
if (!v) return;
|
|
3019
3015
|
if (v.routeUrl !== p.path) {
|
|
3020
3016
|
f([p.path]), d([`/${p.applicationPath}${v.routeUrl}`]), await u({ currentMenu: v });
|
|
@@ -3047,7 +3043,7 @@ const Kt = (t, e = "") => {
|
|
|
3047
3043
|
t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
3048
3044
|
});
|
|
3049
3045
|
}, vt = () => {
|
|
3050
|
-
const t = Ye(), { entryMenu: e } =
|
|
3046
|
+
const t = Ye(), { entryMenu: e } = on(), { unloadRoute: n } = es();
|
|
3051
3047
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = tt();
|
|
3052
3048
|
!o && r && (s = [{ name: r }]);
|
|
3053
3049
|
const a = s.map((d) => d.name), c = () => {
|
|
@@ -3061,15 +3057,15 @@ const Kt = (t, e = "") => {
|
|
|
3061
3057
|
if (S) return !1;
|
|
3062
3058
|
g = _ ?? [], p = C ?? [];
|
|
3063
3059
|
}
|
|
3064
|
-
if (g.length ?
|
|
3060
|
+
if (g.length ? Jt(g) || (await Et({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), v = !0) : (await Et({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), v = !0), v) return !1;
|
|
3065
3061
|
const A = { ...d, menus: g, originalMenus: p };
|
|
3066
3062
|
return Se([{ key: "subAppList", value: A }]), !0;
|
|
3067
3063
|
}, i = async (d) => {
|
|
3068
|
-
var F, z,
|
|
3064
|
+
var F, z, ie, Ce;
|
|
3069
3065
|
const { microApp: h = null, menuCode: b = "", menuPath: y = "", route: g = {} } = d;
|
|
3070
3066
|
let p = g;
|
|
3071
3067
|
if (!h && y) {
|
|
3072
|
-
if (c(), !(a && a.find((
|
|
3068
|
+
if (c(), !(a && a.find((ue) => y.startsWith("/" + ue) || y.startsWith(ue)))) return;
|
|
3073
3069
|
await t.push({ path: y, query: p.query });
|
|
3074
3070
|
return;
|
|
3075
3071
|
}
|
|
@@ -3079,26 +3075,26 @@ const Kt = (t, e = "") => {
|
|
|
3079
3075
|
const _ = (h == null ? void 0 : h.openType) ?? 1, C = (h == null ? void 0 : h.type) ?? 1;
|
|
3080
3076
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
3081
3077
|
c();
|
|
3082
|
-
const pe = ((
|
|
3083
|
-
if ((pe == null ? void 0 : pe.find((
|
|
3078
|
+
const pe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
|
|
3079
|
+
if ((pe == null ? void 0 : pe.find((oe) => oe.code === h.code)) || pe == null || pe.push(h), Se([
|
|
3084
3080
|
{ key: "currentSubApp", value: h },
|
|
3085
3081
|
{ key: "currentSubAppCode", value: h.code },
|
|
3086
3082
|
{ key: "subAppList", value: pe }
|
|
3087
|
-
]), pe.forEach((
|
|
3088
|
-
const ze = { ...
|
|
3083
|
+
]), pe.forEach((oe) => {
|
|
3084
|
+
const ze = { ...oe, value: oe.code, label: oe.name };
|
|
3089
3085
|
R.nav.appendItem(ze);
|
|
3090
3086
|
}), R.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
3091
3087
|
await t.push({ path: h.routeUrl, query: { ...p.query, app: h.code } });
|
|
3092
3088
|
return;
|
|
3093
3089
|
}
|
|
3094
3090
|
if (_ === 1 && C === 2) {
|
|
3095
|
-
const
|
|
3091
|
+
const oe = En(_n(bn(h.routeUrl)));
|
|
3096
3092
|
await t.push({
|
|
3097
3093
|
path: ct,
|
|
3098
3094
|
query: {
|
|
3099
3095
|
...p.query,
|
|
3100
3096
|
app: h.code,
|
|
3101
|
-
iframeSrc:
|
|
3097
|
+
iframeSrc: oe
|
|
3102
3098
|
}
|
|
3103
3099
|
});
|
|
3104
3100
|
return;
|
|
@@ -3117,8 +3113,8 @@ const Kt = (t, e = "") => {
|
|
|
3117
3113
|
meta: { ...(p == null ? void 0 : p.meta) ?? {} }
|
|
3118
3114
|
}), P && (P == null ? void 0 : P.code) !== (h == null ? void 0 : h.code)) {
|
|
3119
3115
|
if (P.fixed && (await t.push(P.path), c(), R.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3120
|
-
const pe = (Ce = J().subAppList) == null ? void 0 : Ce.find((ze) => ze.code === P.code),
|
|
3121
|
-
await i({ microApp: pe, menuCode: (
|
|
3116
|
+
const pe = (Ce = J().subAppList) == null ? void 0 : Ce.find((ze) => ze.code === P.code), ue = ve().preTab[P.code], oe = { ...(ue == null ? void 0 : ue.query) ?? {} };
|
|
3117
|
+
await i({ microApp: pe, menuCode: (ue == null ? void 0 : ue.code) ?? "", route: { query: oe } });
|
|
3122
3118
|
}
|
|
3123
3119
|
return;
|
|
3124
3120
|
}
|
|
@@ -3134,18 +3130,21 @@ const Kt = (t, e = "") => {
|
|
|
3134
3130
|
return;
|
|
3135
3131
|
}
|
|
3136
3132
|
if (v && A) {
|
|
3137
|
-
(
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3133
|
+
setTimeout(() => {
|
|
3134
|
+
var ue;
|
|
3135
|
+
(ue = J().subAppList) == null || ue.forEach((oe) => {
|
|
3136
|
+
const ze = { ...oe, value: oe.code, label: oe.name };
|
|
3137
|
+
R.nav.appendItem(ze);
|
|
3138
|
+
}), R.nav.setActiveItem(O.code), R.menu.setItems(S);
|
|
3139
|
+
}, 200);
|
|
3141
3140
|
const pe = ve().tabMap[O.code] ?? [];
|
|
3142
3141
|
if (pe.length) {
|
|
3143
|
-
const
|
|
3144
|
-
...
|
|
3145
|
-
value:
|
|
3146
|
-
label:
|
|
3142
|
+
const ue = pe.map((oe) => ({
|
|
3143
|
+
...oe,
|
|
3144
|
+
value: oe.code,
|
|
3145
|
+
label: oe.name
|
|
3147
3146
|
})) || [];
|
|
3148
|
-
R.tab.setItems(
|
|
3147
|
+
R.tab.setItems(ue);
|
|
3149
3148
|
}
|
|
3150
3149
|
}
|
|
3151
3150
|
e({ currentMenu: I, microPath: T, route: p });
|
|
@@ -3196,7 +3195,7 @@ const Kt = (t, e = "") => {
|
|
|
3196
3195
|
}
|
|
3197
3196
|
}
|
|
3198
3197
|
};
|
|
3199
|
-
},
|
|
3198
|
+
}, on = () => {
|
|
3200
3199
|
const t = Ye();
|
|
3201
3200
|
let { mainAppName: e = "", microAppName: n = "", microApps: o = [] } = tt();
|
|
3202
3201
|
return !e && n && (o = [{ name: n }]), o.map((s) => s.name), { entryMenu: async (s) => {
|
|
@@ -3416,7 +3415,7 @@ const Kt = (t, e = "") => {
|
|
|
3416
3415
|
};
|
|
3417
3416
|
}, mp = dr.get("/convert/tenant"), vp = Rn.get("/platform/withdefault"), ts = () => {
|
|
3418
3417
|
const t = tt(), e = E(!1), n = E(""), o = E(""), r = () => {
|
|
3419
|
-
n.value =
|
|
3418
|
+
n.value = Zt().id, o.value = cr().tenantId, e.value = !0;
|
|
3420
3419
|
};
|
|
3421
3420
|
R.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
3422
3421
|
r();
|
|
@@ -3506,7 +3505,7 @@ const Kt = (t, e = "") => {
|
|
|
3506
3505
|
}), Tp = () => {
|
|
3507
3506
|
Le.addEventListenerFromMicroApp("iot:change-instance", (t) => {
|
|
3508
3507
|
const e = J(), n = e.currentSubAppCode;
|
|
3509
|
-
let o =
|
|
3508
|
+
let o = Wt(n);
|
|
3510
3509
|
o.forEach((s) => {
|
|
3511
3510
|
s.fixed && (s.name = t.data.instanceInfo.instanceName);
|
|
3512
3511
|
}), R.menu.setItems(o);
|
|
@@ -3544,7 +3543,7 @@ const Kt = (t, e = "") => {
|
|
|
3544
3543
|
Ys();
|
|
3545
3544
|
});
|
|
3546
3545
|
}, kp = Qn.get("/platform/login/pwd-advance-notify-check"), Pp = () => {
|
|
3547
|
-
const t = E([]), e = E(null), n = E([]), { entryApp: o } =
|
|
3546
|
+
const t = E([]), e = E(null), n = E([]), { entryApp: o } = zt.hooks.useEntryApp(), r = () => {
|
|
3548
3547
|
var l;
|
|
3549
3548
|
const c = (((l = J().appcategorys) == null ? void 0 : l.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
3550
3549
|
c && o({ microApp: c });
|
|
@@ -3560,8 +3559,8 @@ const Kt = (t, e = "") => {
|
|
|
3560
3559
|
const l = Fe().id;
|
|
3561
3560
|
t.value = a.filter(
|
|
3562
3561
|
(i) => i.projectId === l || i.projectId === 0 || i.projectId === "0"
|
|
3563
|
-
), n.value && n.value.length && (n.value.forEach((i) =>
|
|
3564
|
-
|
|
3562
|
+
), n.value && n.value.length && (n.value.forEach((i) => Vt.close(i)), n.value = []), await Qe(), t.value.forEach((i, u) => {
|
|
3563
|
+
Vt.info({
|
|
3565
3564
|
key: i.id,
|
|
3566
3565
|
class: "message-center-notify",
|
|
3567
3566
|
message: i.title,
|
|
@@ -3592,8 +3591,8 @@ const Kt = (t, e = "") => {
|
|
|
3592
3591
|
});
|
|
3593
3592
|
};
|
|
3594
3593
|
Ve(async () => {
|
|
3595
|
-
await
|
|
3596
|
-
}),
|
|
3594
|
+
await Yt(), s();
|
|
3595
|
+
}), Xt(() => {
|
|
3597
3596
|
e.value && e.value.disconnect(), e.value = null;
|
|
3598
3597
|
});
|
|
3599
3598
|
}, 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");
|
|
@@ -3898,7 +3897,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3898
3897
|
B(
|
|
3899
3898
|
"div",
|
|
3900
3899
|
qp,
|
|
3901
|
-
|
|
3900
|
+
se(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
3902
3901
|
1
|
|
3903
3902
|
/* TEXT */
|
|
3904
3903
|
)
|
|
@@ -4183,9 +4182,9 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4183
4182
|
let r = document.body.querySelector("#video-dialog");
|
|
4184
4183
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4185
4184
|
const a = he(nf, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4186
|
-
|
|
4185
|
+
Ft(null, r), document.body.removeChild(r), o(null);
|
|
4187
4186
|
} });
|
|
4188
|
-
|
|
4187
|
+
Ft(a, r);
|
|
4189
4188
|
});
|
|
4190
4189
|
}, rf = () => {
|
|
4191
4190
|
const t = E(4), e = E([]), n = E(null), o = async (s) => {
|
|
@@ -4225,8 +4224,8 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4225
4224
|
}));
|
|
4226
4225
|
};
|
|
4227
4226
|
return Ve(async () => {
|
|
4228
|
-
await
|
|
4229
|
-
}),
|
|
4227
|
+
await Yt(), r();
|
|
4228
|
+
}), Xt(() => {
|
|
4230
4229
|
n.value && n.value.disconnect(), n.value = null;
|
|
4231
4230
|
}), {
|
|
4232
4231
|
gridNum: t,
|
|
@@ -4325,7 +4324,7 @@ class rs {
|
|
|
4325
4324
|
this.statusCode = e, this.statusText = n, this.content = o;
|
|
4326
4325
|
}
|
|
4327
4326
|
}
|
|
4328
|
-
class
|
|
4327
|
+
class rn {
|
|
4329
4328
|
get(e, n) {
|
|
4330
4329
|
return this.send({
|
|
4331
4330
|
...n,
|
|
@@ -4371,7 +4370,7 @@ class Pt {
|
|
|
4371
4370
|
}
|
|
4372
4371
|
Pt.instance = new Pt();
|
|
4373
4372
|
const uf = "8.0.7";
|
|
4374
|
-
class
|
|
4373
|
+
class ae {
|
|
4375
4374
|
static isRequired(e, n) {
|
|
4376
4375
|
if (e == null)
|
|
4377
4376
|
throw new Error(`The '${n}' argument is required.`);
|
|
@@ -4433,7 +4432,7 @@ async function ss(t, e, n, o, r, s) {
|
|
|
4433
4432
|
t.log(w.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
4434
4433
|
}
|
|
4435
4434
|
function pf(t) {
|
|
4436
|
-
return t === void 0 ? new
|
|
4435
|
+
return t === void 0 ? new Gt(w.Information) : t === null ? Pt.instance : t.log !== void 0 ? t : new Gt(t);
|
|
4437
4436
|
}
|
|
4438
4437
|
class ff {
|
|
4439
4438
|
constructor(e, n) {
|
|
@@ -4445,7 +4444,7 @@ class ff {
|
|
|
4445
4444
|
});
|
|
4446
4445
|
}
|
|
4447
4446
|
}
|
|
4448
|
-
class
|
|
4447
|
+
class Gt {
|
|
4449
4448
|
constructor(e) {
|
|
4450
4449
|
this._minLevel = e, this.out = console;
|
|
4451
4450
|
}
|
|
@@ -4515,7 +4514,7 @@ function Af() {
|
|
|
4515
4514
|
return global;
|
|
4516
4515
|
throw new Error("could not find global");
|
|
4517
4516
|
}
|
|
4518
|
-
class yf extends
|
|
4517
|
+
class yf extends rn {
|
|
4519
4518
|
constructor(e) {
|
|
4520
4519
|
if (super(), this._logger = e, typeof fetch > "u" || te.isNode) {
|
|
4521
4520
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
@@ -4600,7 +4599,7 @@ function Yo(t, e) {
|
|
|
4600
4599
|
}
|
|
4601
4600
|
return n;
|
|
4602
4601
|
}
|
|
4603
|
-
class wf extends
|
|
4602
|
+
class wf extends rn {
|
|
4604
4603
|
constructor(e) {
|
|
4605
4604
|
super(), this._logger = e;
|
|
4606
4605
|
}
|
|
@@ -4624,7 +4623,7 @@ class wf extends sn {
|
|
|
4624
4623
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
4625
4624
|
}
|
|
4626
4625
|
}
|
|
4627
|
-
class _f extends
|
|
4626
|
+
class _f extends rn {
|
|
4628
4627
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
4629
4628
|
constructor(e) {
|
|
4630
4629
|
if (super(), typeof fetch < "u" || te.isNode)
|
|
@@ -4819,7 +4818,7 @@ class eo {
|
|
|
4819
4818
|
constructor(e, n, o, r, s, a, c) {
|
|
4820
4819
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4821
4820
|
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");
|
|
4822
|
-
},
|
|
4821
|
+
}, ae.isRequired(e, "connection"), ae.isRequired(n, "logger"), ae.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 });
|
|
4823
4822
|
}
|
|
4824
4823
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
4825
4824
|
get state() {
|
|
@@ -5322,7 +5321,7 @@ class Ge {
|
|
|
5322
5321
|
}
|
|
5323
5322
|
Ge.Authorization = "Authorization";
|
|
5324
5323
|
Ge.Cookie = "Cookie";
|
|
5325
|
-
class Lf extends
|
|
5324
|
+
class Lf extends rn {
|
|
5326
5325
|
constructor(e, n) {
|
|
5327
5326
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
5328
5327
|
}
|
|
@@ -5339,10 +5338,10 @@ class Lf extends sn {
|
|
|
5339
5338
|
return this._innerClient.getCookieString(e);
|
|
5340
5339
|
}
|
|
5341
5340
|
}
|
|
5342
|
-
var
|
|
5341
|
+
var re;
|
|
5343
5342
|
(function(t) {
|
|
5344
5343
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
5345
|
-
})(
|
|
5344
|
+
})(re || (re = {}));
|
|
5346
5345
|
var ge;
|
|
5347
5346
|
(function(t) {
|
|
5348
5347
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
@@ -5370,7 +5369,7 @@ class tr {
|
|
|
5370
5369
|
this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5371
5370
|
}
|
|
5372
5371
|
async connect(e, n) {
|
|
5373
|
-
if (
|
|
5372
|
+
if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.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")
|
|
5374
5373
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5375
5374
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5376
5375
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5436,7 +5435,7 @@ class Df {
|
|
|
5436
5435
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5437
5436
|
}
|
|
5438
5437
|
async connect(e, n) {
|
|
5439
|
-
return
|
|
5438
|
+
return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.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) => {
|
|
5440
5439
|
let s = !1;
|
|
5441
5440
|
if (n !== ge.Text) {
|
|
5442
5441
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
@@ -5486,7 +5485,7 @@ class Of {
|
|
|
5486
5485
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5487
5486
|
}
|
|
5488
5487
|
async connect(e, n) {
|
|
5489
|
-
|
|
5488
|
+
ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, ge, "transferFormat"), this._logger.log(w.Trace, "(WebSockets transport) Connecting.");
|
|
5490
5489
|
let o;
|
|
5491
5490
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5492
5491
|
e = e.replace(/^http/, "ws");
|
|
@@ -5543,7 +5542,7 @@ const nr = 100;
|
|
|
5543
5542
|
class Mf {
|
|
5544
5543
|
constructor(e, n = {}) {
|
|
5545
5544
|
if (this._stopPromiseResolver = () => {
|
|
5546
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
5545
|
+
}, this.features = {}, this._negotiateVersion = 1, ae.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)
|
|
5547
5546
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
5548
5547
|
else
|
|
5549
5548
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -5556,7 +5555,7 @@ class Mf {
|
|
|
5556
5555
|
!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;
|
|
5557
5556
|
}
|
|
5558
5557
|
async start(e) {
|
|
5559
|
-
if (e = e || ge.Binary,
|
|
5558
|
+
if (e = e || ge.Binary, ae.isIn(e, ge, "transferFormat"), this._logger.log(w.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
|
|
5560
5559
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5561
5560
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5562
5561
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -5600,8 +5599,8 @@ class Mf {
|
|
|
5600
5599
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
5601
5600
|
try {
|
|
5602
5601
|
if (this._options.skipNegotiation)
|
|
5603
|
-
if (this._options.transport ===
|
|
5604
|
-
this.transport = this._constructTransport(
|
|
5602
|
+
if (this._options.transport === re.WebSockets)
|
|
5603
|
+
this.transport = this._constructTransport(re.WebSockets), await this._startTransport(n, e);
|
|
5605
5604
|
else
|
|
5606
5605
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
5607
5606
|
else {
|
|
@@ -5677,7 +5676,7 @@ class Mf {
|
|
|
5677
5676
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
5678
5677
|
return;
|
|
5679
5678
|
} catch (f) {
|
|
5680
|
-
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}`,
|
|
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}`, re[i.transport])), this._connectionState !== "Connecting") {
|
|
5681
5680
|
const d = "Failed to select transport before stop() was called.";
|
|
5682
5681
|
return this._logger.log(w.Debug, d), Promise.reject(new $e(d));
|
|
5683
5682
|
}
|
|
@@ -5688,15 +5687,15 @@ class Mf {
|
|
|
5688
5687
|
}
|
|
5689
5688
|
_constructTransport(e) {
|
|
5690
5689
|
switch (e) {
|
|
5691
|
-
case
|
|
5690
|
+
case re.WebSockets:
|
|
5692
5691
|
if (!this._options.WebSocket)
|
|
5693
5692
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
5694
5693
|
return new Of(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
5695
|
-
case
|
|
5694
|
+
case re.ServerSentEvents:
|
|
5696
5695
|
if (!this._options.EventSource)
|
|
5697
5696
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5698
5697
|
return new Df(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5699
|
-
case
|
|
5698
|
+
case re.LongPolling:
|
|
5700
5699
|
return new tr(this._httpClient, this._logger, this._options);
|
|
5701
5700
|
default:
|
|
5702
5701
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -5719,23 +5718,23 @@ class Mf {
|
|
|
5719
5718
|
} : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, n);
|
|
5720
5719
|
}
|
|
5721
5720
|
_resolveTransportOrError(e, n, o, r) {
|
|
5722
|
-
const s =
|
|
5721
|
+
const s = re[e.transport];
|
|
5723
5722
|
if (s == null)
|
|
5724
5723
|
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.`);
|
|
5725
5724
|
if (Bf(n, s))
|
|
5726
5725
|
if (e.transferFormats.map((c) => ge[c]).indexOf(o) >= 0) {
|
|
5727
|
-
if (s ===
|
|
5728
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5729
|
-
this._logger.log(w.Debug, `Selecting transport '${
|
|
5726
|
+
if (s === re.WebSockets && !this._options.WebSocket || s === re.ServerSentEvents && !this._options.EventSource)
|
|
5727
|
+
return this._logger.log(w.Debug, `Skipping transport '${re[s]}' because it is not supported in your environment.'`), new sf(`'${re[s]}' is not supported in your environment.`, s);
|
|
5728
|
+
this._logger.log(w.Debug, `Selecting transport '${re[s]}'.`);
|
|
5730
5729
|
try {
|
|
5731
|
-
return this.features.reconnect = s ===
|
|
5730
|
+
return this.features.reconnect = s === re.WebSockets ? r : void 0, this._constructTransport(s);
|
|
5732
5731
|
} catch (c) {
|
|
5733
5732
|
return c;
|
|
5734
5733
|
}
|
|
5735
5734
|
} else
|
|
5736
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5735
|
+
return this._logger.log(w.Debug, `Skipping transport '${re[s]}' because it does not support the requested transfer format '${ge[o]}'.`), new Error(`'${re[s]}' does not support ${ge[o]}.`);
|
|
5737
5736
|
else
|
|
5738
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5737
|
+
return this._logger.log(w.Debug, `Skipping transport '${re[s]}' because it was disabled by the client.`), new af(`'${re[s]}' is disabled by the client.`, s);
|
|
5739
5738
|
}
|
|
5740
5739
|
_isITransport(e) {
|
|
5741
5740
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -5778,10 +5777,10 @@ function Bf(t, e) {
|
|
|
5778
5777
|
}
|
|
5779
5778
|
class to {
|
|
5780
5779
|
constructor(e) {
|
|
5781
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
5780
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new jt(), this._transportResult = new jt(), this._sendLoopPromise = this._sendLoop();
|
|
5782
5781
|
}
|
|
5783
5782
|
send(e) {
|
|
5784
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
5783
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new jt()), this._transportResult.promise;
|
|
5785
5784
|
}
|
|
5786
5785
|
stop() {
|
|
5787
5786
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -5797,7 +5796,7 @@ class to {
|
|
|
5797
5796
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
5798
5797
|
break;
|
|
5799
5798
|
}
|
|
5800
|
-
this._sendBufferedData = new
|
|
5799
|
+
this._sendBufferedData = new jt();
|
|
5801
5800
|
const e = this._transportResult;
|
|
5802
5801
|
this._transportResult = void 0;
|
|
5803
5802
|
const n = typeof this._buffer[0] == "string" ? this._buffer.join("") : to._concatBuffers(this._buffer);
|
|
@@ -5817,7 +5816,7 @@ class to {
|
|
|
5817
5816
|
return o.buffer;
|
|
5818
5817
|
}
|
|
5819
5818
|
}
|
|
5820
|
-
class
|
|
5819
|
+
class jt {
|
|
5821
5820
|
constructor() {
|
|
5822
5821
|
this.promise = new Promise((e, n) => [this._resolver, this._rejecter] = [e, n]);
|
|
5823
5822
|
}
|
|
@@ -5929,17 +5928,17 @@ function jf(t) {
|
|
|
5929
5928
|
}
|
|
5930
5929
|
class Nf {
|
|
5931
5930
|
configureLogging(e) {
|
|
5932
|
-
if (
|
|
5931
|
+
if (ae.isRequired(e, "logging"), Hf(e))
|
|
5933
5932
|
this.logger = e;
|
|
5934
5933
|
else if (typeof e == "string") {
|
|
5935
5934
|
const n = jf(e);
|
|
5936
|
-
this.logger = new
|
|
5935
|
+
this.logger = new Gt(n);
|
|
5937
5936
|
} else
|
|
5938
|
-
this.logger = new
|
|
5937
|
+
this.logger = new Gt(e);
|
|
5939
5938
|
return this;
|
|
5940
5939
|
}
|
|
5941
5940
|
withUrl(e, n) {
|
|
5942
|
-
return
|
|
5941
|
+
return ae.isRequired(e, "url"), ae.isNotEmpty(e, "url"), this.url = e, typeof n == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...n } : this.httpConnectionOptions = {
|
|
5943
5942
|
...this.httpConnectionOptions,
|
|
5944
5943
|
transport: n
|
|
5945
5944
|
}, this;
|
|
@@ -5949,7 +5948,7 @@ class Nf {
|
|
|
5949
5948
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
5950
5949
|
*/
|
|
5951
5950
|
withHubProtocol(e) {
|
|
5952
|
-
return
|
|
5951
|
+
return ae.isRequired(e, "protocol"), this.protocol = e, this;
|
|
5953
5952
|
}
|
|
5954
5953
|
withAutomaticReconnect(e) {
|
|
5955
5954
|
if (this.reconnectPolicy)
|
|
@@ -5961,14 +5960,14 @@ class Nf {
|
|
|
5961
5960
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5962
5961
|
*/
|
|
5963
5962
|
withServerTimeout(e) {
|
|
5964
|
-
return
|
|
5963
|
+
return ae.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
5965
5964
|
}
|
|
5966
5965
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
5967
5966
|
*
|
|
5968
5967
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5969
5968
|
*/
|
|
5970
5969
|
withKeepAliveInterval(e) {
|
|
5971
|
-
return
|
|
5970
|
+
return ae.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
5972
5971
|
}
|
|
5973
5972
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
5974
5973
|
*
|
|
@@ -5996,23 +5995,23 @@ let { baseURL: Uf } = tt();
|
|
|
5996
5995
|
const Ff = () => {
|
|
5997
5996
|
const t = new Nf().withUrl(`${Uf}/api/tool/event-bus`, {
|
|
5998
5997
|
skipNegotiation: !0,
|
|
5999
|
-
transport:
|
|
5998
|
+
transport: re.WebSockets
|
|
6000
5999
|
}).withAutomaticReconnect().build();
|
|
6001
6000
|
return t.start().then(() => {
|
|
6002
6001
|
}).catch((e) => {
|
|
6003
6002
|
}), t.onclose((e) => {
|
|
6004
6003
|
}), t.onreconnected(() => {
|
|
6005
6004
|
}), t;
|
|
6006
|
-
},
|
|
6005
|
+
}, sn = "v1", Vf = et(`/api/graphics-engine/component/${sn}`, (t) => (t.customErrorMessage = () => "", t)), Wf = et(`/api/portal/manager/${sn}`, (t) => (t.customErrorMessage = () => "", t)), zf = et(`/api/speech-base/speech/${sn}`, (t) => (t.customErrorMessage = () => "", t)), or = Vf.get("/component/client/heartbeat"), qf = Wf.get("/basics/by-alias");
|
|
6007
6006
|
zf.post("/control/callBack");
|
|
6008
|
-
const Jf = et(`/api/tool/event-bus/${
|
|
6009
|
-
const t = Dt(), { entryApp: e } =
|
|
6007
|
+
const Jf = et(`/api/tool/event-bus/${sn}/`), vn = Jf.post("/publish"), Kf = xn.get("/permissionset/application"), Gf = () => {
|
|
6008
|
+
const t = Dt(), { entryApp: e } = zt.hooks.useEntryApp(), { entryMenu: n } = zt.hooks.useEntryMenu();
|
|
6010
6009
|
let o = null;
|
|
6011
6010
|
return Ve(async () => {
|
|
6012
6011
|
var p;
|
|
6013
6012
|
let r = ((p = t.meta) == null ? void 0 : p.showLayout) ?? !0, { showLayout: s = !0 } = t.query;
|
|
6014
6013
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
6015
|
-
await
|
|
6014
|
+
await Yt();
|
|
6016
6015
|
const a = (v) => {
|
|
6017
6016
|
try {
|
|
6018
6017
|
return JSON.parse(v);
|
|
@@ -6102,10 +6101,10 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6102
6101
|
}, 5e3), y.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
6103
6102
|
};
|
|
6104
6103
|
window.addEventListener("online", () => g("online")), window.addEventListener("offline", () => g("offline"));
|
|
6105
|
-
}),
|
|
6104
|
+
}), Xt(() => {
|
|
6106
6105
|
o && clearInterval(o);
|
|
6107
6106
|
}), {};
|
|
6108
|
-
},
|
|
6107
|
+
}, an = "v1", Xf = ft(`/api/fms/report/${an}`), no = ft(`/api/emergency/manage/${an}`), Zf = jn.get("/permissionset/user-portal-menu"), as = ft(`/api/alarm/config/${an}`), Yf = ft(`/api/alarm/run-time/${an}`), 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 = {
|
|
6109
6108
|
name: "handleAlarm"
|
|
6110
6109
|
}, mh = /* @__PURE__ */ ne({
|
|
6111
6110
|
...gh,
|
|
@@ -6183,7 +6182,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6183
6182
|
O.value = k.data.filter((L) => L.status), O.value.length > 0 && (i.value.workOrderRules = O.value[0].id);
|
|
6184
6183
|
};
|
|
6185
6184
|
G(l, (M) => {
|
|
6186
|
-
M || (
|
|
6185
|
+
M || (oe(), ze());
|
|
6187
6186
|
}), G(
|
|
6188
6187
|
S,
|
|
6189
6188
|
(M) => {
|
|
@@ -6200,19 +6199,19 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6200
6199
|
const z = (M) => {
|
|
6201
6200
|
var k;
|
|
6202
6201
|
return (k = a.value) == null ? void 0 : k.parentNode.parentNode;
|
|
6203
|
-
},
|
|
6202
|
+
}, ie = (M) => {
|
|
6204
6203
|
u.value.reportTheme = "";
|
|
6205
6204
|
}, Ce = (M, k) => {
|
|
6206
6205
|
k.length > 0 && (g.value = k[0].path), i.value.reportPosition = M, _.value = "";
|
|
6207
|
-
}, Rt = (M) => {
|
|
6208
|
-
M && (u.value.reportPosition = "", g.value = ""), M ? (i.value.reportPosition = null, g.value = "", p.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", p.value = "请选择");
|
|
6209
6206
|
}, pe = (M) => {
|
|
6207
|
+
M && (u.value.reportPosition = "", g.value = ""), M ? (i.value.reportPosition = null, g.value = "", p.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", p.value = "请选择");
|
|
6208
|
+
}, ue = (M) => {
|
|
6210
6209
|
M && (u.value.reportTheme = ""), M ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
|
|
6211
|
-
},
|
|
6210
|
+
}, oe = () => {
|
|
6212
6211
|
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 = "";
|
|
6213
|
-
},
|
|
6212
|
+
}, ze = () => {
|
|
6214
6213
|
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 = [];
|
|
6215
|
-
},
|
|
6214
|
+
}, cn = (M) => {
|
|
6216
6215
|
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);
|
|
6217
6216
|
}, is = async () => {
|
|
6218
6217
|
const [M, k] = await ah().run();
|
|
@@ -6224,9 +6223,9 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6224
6223
|
}, [k, L] = await ih(M).run();
|
|
6225
6224
|
if (k) return {};
|
|
6226
6225
|
const ke = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
6227
|
-
h.value = L.map((
|
|
6228
|
-
id: `${
|
|
6229
|
-
name: ke[
|
|
6226
|
+
h.value = L.map((Rt) => ({
|
|
6227
|
+
id: `${Rt}`,
|
|
6228
|
+
name: ke[Rt] ? ke[Rt] : Rt
|
|
6230
6229
|
})), L.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, ro());
|
|
6231
6230
|
}, ro = async () => {
|
|
6232
6231
|
const M = {
|
|
@@ -6236,7 +6235,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6236
6235
|
if (k) return {};
|
|
6237
6236
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6238
6237
|
}, cs = (M) => {
|
|
6239
|
-
|
|
6238
|
+
oe();
|
|
6240
6239
|
}, ls = async () => {
|
|
6241
6240
|
const M = {
|
|
6242
6241
|
logic: !1,
|
|
@@ -6311,7 +6310,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6311
6310
|
}, {
|
|
6312
6311
|
header: x(() => [
|
|
6313
6312
|
ye(
|
|
6314
|
-
|
|
6313
|
+
se(m(N)("告警处理").value),
|
|
6315
6314
|
1
|
|
6316
6315
|
/* TEXT */
|
|
6317
6316
|
)
|
|
@@ -6324,7 +6323,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6324
6323
|
}, {
|
|
6325
6324
|
default: x(() => [
|
|
6326
6325
|
ye(
|
|
6327
|
-
|
|
6326
|
+
se(m(N)("取消").value),
|
|
6328
6327
|
1
|
|
6329
6328
|
/* TEXT */
|
|
6330
6329
|
)
|
|
@@ -6338,7 +6337,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6338
6337
|
}, {
|
|
6339
6338
|
default: x(() => [
|
|
6340
6339
|
ye(
|
|
6341
|
-
|
|
6340
|
+
se(m(N)("结束处理").value),
|
|
6342
6341
|
1
|
|
6343
6342
|
/* TEXT */
|
|
6344
6343
|
)
|
|
@@ -6353,7 +6352,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6353
6352
|
}, {
|
|
6354
6353
|
default: x(() => [
|
|
6355
6354
|
ye(
|
|
6356
|
-
|
|
6355
|
+
se(m(N)("继续处理").value),
|
|
6357
6356
|
1
|
|
6358
6357
|
/* TEXT */
|
|
6359
6358
|
)
|
|
@@ -6483,12 +6482,12 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6483
6482
|
modelValue: S.value,
|
|
6484
6483
|
"onUpdate:modelValue": k[12] || (k[12] = (L) => S.value = L),
|
|
6485
6484
|
checkboxType: "default",
|
|
6486
|
-
onChange:
|
|
6485
|
+
onChange: pe,
|
|
6487
6486
|
size: "middle"
|
|
6488
6487
|
}, {
|
|
6489
6488
|
default: x(() => [
|
|
6490
6489
|
ye(
|
|
6491
|
-
|
|
6490
|
+
se(m(N)("告警对象位置").value),
|
|
6492
6491
|
1
|
|
6493
6492
|
/* TEXT */
|
|
6494
6493
|
)
|
|
@@ -6519,18 +6518,18 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6519
6518
|
modelValue: i.value.reportTheme,
|
|
6520
6519
|
"onUpdate:modelValue": k[14] || (k[14] = (L) => i.value.reportTheme = L),
|
|
6521
6520
|
placeholder: v.value,
|
|
6522
|
-
onChange:
|
|
6521
|
+
onChange: ie
|
|
6523
6522
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
6524
6523
|
Q(m(fo), {
|
|
6525
6524
|
modelValue: D.value,
|
|
6526
6525
|
"onUpdate:modelValue": k[15] || (k[15] = (L) => D.value = L),
|
|
6527
6526
|
checkboxType: "default",
|
|
6528
|
-
onChange:
|
|
6527
|
+
onChange: ue,
|
|
6529
6528
|
size: "middle"
|
|
6530
6529
|
}, {
|
|
6531
6530
|
default: x(() => [
|
|
6532
6531
|
ye(
|
|
6533
|
-
|
|
6532
|
+
se(m(N)("告警对象").value),
|
|
6534
6533
|
1
|
|
6535
6534
|
/* TEXT */
|
|
6536
6535
|
)
|
|
@@ -6577,7 +6576,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6577
6576
|
"get-popup-container": z,
|
|
6578
6577
|
marginBottom: "30px",
|
|
6579
6578
|
marginRight: "0",
|
|
6580
|
-
onChange: k[21] || (k[21] = (L) =>
|
|
6579
|
+
onChange: k[21] || (k[21] = (L) => cn("eventTypeId"))
|
|
6581
6580
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6582
6581
|
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6583
6582
|
key: 7,
|
|
@@ -6595,7 +6594,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6595
6594
|
"get-popup-container": z,
|
|
6596
6595
|
marginBottom: "30px",
|
|
6597
6596
|
marginRight: "0",
|
|
6598
|
-
onChange: k[24] || (k[24] = (L) =>
|
|
6597
|
+
onChange: k[24] || (k[24] = (L) => cn("eventLevelId"))
|
|
6599
6598
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6600
6599
|
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6601
6600
|
key: 8,
|
|
@@ -6627,7 +6626,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6627
6626
|
"border-type": "underline",
|
|
6628
6627
|
size: "small",
|
|
6629
6628
|
"get-popup-container": z,
|
|
6630
|
-
onChange: k[26] || (k[26] = (L) =>
|
|
6629
|
+
onChange: k[26] || (k[26] = (L) => cn("interval")),
|
|
6631
6630
|
placeholder: "请选择"
|
|
6632
6631
|
}, null, 8, ["modelValue", "options"])
|
|
6633
6632
|
])
|
|
@@ -6656,7 +6655,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6656
6655
|
}), vh = /* @__PURE__ */ be(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
|
|
6657
6656
|
handleAlarmVue: () => he(vh, {
|
|
6658
6657
|
handerIds: e.value,
|
|
6659
|
-
projectId:
|
|
6658
|
+
projectId: Zt().id,
|
|
6660
6659
|
ref: t,
|
|
6661
6660
|
onEmitFn: (r, s) => {
|
|
6662
6661
|
}
|
|
@@ -6697,7 +6696,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6697
6696
|
B(
|
|
6698
6697
|
"div",
|
|
6699
6698
|
bh,
|
|
6700
|
-
|
|
6699
|
+
se(m(N)("新告警").value),
|
|
6701
6700
|
1
|
|
6702
6701
|
/* TEXT */
|
|
6703
6702
|
)
|
|
@@ -6718,7 +6717,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6718
6717
|
B(
|
|
6719
6718
|
"div",
|
|
6720
6719
|
Th,
|
|
6721
|
-
|
|
6720
|
+
se(m(N)("告警等级:").value),
|
|
6722
6721
|
1
|
|
6723
6722
|
/* TEXT */
|
|
6724
6723
|
),
|
|
@@ -6728,7 +6727,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6728
6727
|
class: "alarm-msg-line-right alarm-content-object",
|
|
6729
6728
|
style: yn({ color: a.msgItem.color })
|
|
6730
6729
|
},
|
|
6731
|
-
|
|
6730
|
+
se(a.msgItem.alarmLevelName || ""),
|
|
6732
6731
|
5
|
|
6733
6732
|
/* TEXT, STYLE */
|
|
6734
6733
|
)
|
|
@@ -6737,14 +6736,14 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6737
6736
|
B(
|
|
6738
6737
|
"div",
|
|
6739
6738
|
Sh,
|
|
6740
|
-
|
|
6739
|
+
se(m(N)("告警对象:").value),
|
|
6741
6740
|
1
|
|
6742
6741
|
/* TEXT */
|
|
6743
6742
|
),
|
|
6744
6743
|
B(
|
|
6745
6744
|
"div",
|
|
6746
6745
|
kh,
|
|
6747
|
-
|
|
6746
|
+
se(a.msgItem.equipmentName || ""),
|
|
6748
6747
|
1
|
|
6749
6748
|
/* TEXT */
|
|
6750
6749
|
)
|
|
@@ -6753,14 +6752,14 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6753
6752
|
B(
|
|
6754
6753
|
"div",
|
|
6755
6754
|
Lh,
|
|
6756
|
-
|
|
6755
|
+
se(m(N)("告警内容:").value),
|
|
6757
6756
|
1
|
|
6758
6757
|
/* TEXT */
|
|
6759
6758
|
),
|
|
6760
6759
|
B(
|
|
6761
6760
|
"div",
|
|
6762
6761
|
$h,
|
|
6763
|
-
|
|
6762
|
+
se(a.msgItem.alarmContent || ""),
|
|
6764
6763
|
1
|
|
6765
6764
|
/* TEXT */
|
|
6766
6765
|
)
|
|
@@ -6775,7 +6774,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6775
6774
|
}, {
|
|
6776
6775
|
default: x(() => [
|
|
6777
6776
|
ye(
|
|
6778
|
-
|
|
6777
|
+
se(m(N)("设备详情").value),
|
|
6779
6778
|
1
|
|
6780
6779
|
/* TEXT */
|
|
6781
6780
|
)
|
|
@@ -6792,7 +6791,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6792
6791
|
}, {
|
|
6793
6792
|
default: x(() => [
|
|
6794
6793
|
ye(
|
|
6795
|
-
|
|
6794
|
+
se(m(N)("处理").value),
|
|
6796
6795
|
1
|
|
6797
6796
|
/* TEXT */
|
|
6798
6797
|
)
|
|
@@ -6843,7 +6842,7 @@ const Rh = () => {
|
|
|
6843
6842
|
var D;
|
|
6844
6843
|
const T = [];
|
|
6845
6844
|
T.push({ alarmId: I.recordId }), r.value = T, (D = n.value) == null || D.open();
|
|
6846
|
-
}, { entryApp: f } =
|
|
6845
|
+
}, { entryApp: f } = zt.hooks.useEntryApp(), d = (I) => {
|
|
6847
6846
|
fr(I.equipmentCode, I.equipmentPanelCode);
|
|
6848
6847
|
}, { handleAlarmVue: h } = Ah(n, r), b = async () => {
|
|
6849
6848
|
var D;
|
|
@@ -6857,7 +6856,7 @@ const Rh = () => {
|
|
|
6857
6856
|
}, p = (I) => {
|
|
6858
6857
|
if (!I) return;
|
|
6859
6858
|
const T = Bh();
|
|
6860
|
-
|
|
6859
|
+
Vt.open({
|
|
6861
6860
|
key: T,
|
|
6862
6861
|
class: "alarm-notify",
|
|
6863
6862
|
message: N("新告警").value,
|
|
@@ -6945,8 +6944,8 @@ const Rh = () => {
|
|
|
6945
6944
|
setup(t) {
|
|
6946
6945
|
const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Rh();
|
|
6947
6946
|
return Ve(async () => {
|
|
6948
|
-
await
|
|
6949
|
-
}),
|
|
6947
|
+
await Yt(), n();
|
|
6948
|
+
}), Xt(() => {
|
|
6950
6949
|
e.value && e.value.disconnect(), e.value = null;
|
|
6951
6950
|
}), (a, c) => ($(), W(
|
|
6952
6951
|
De,
|
|
@@ -6970,7 +6969,7 @@ const Rh = () => {
|
|
|
6970
6969
|
}), jh = { class: "das-main-app-container" }, Nh = /* @__PURE__ */ ne({
|
|
6971
6970
|
__name: "index",
|
|
6972
6971
|
setup(t) {
|
|
6973
|
-
const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => ce.excludeRoutes), r = H(() => ce.routeKeepAliveVisible), s = H(() => ({ mode:
|
|
6972
|
+
const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => ce.excludeRoutes), r = H(() => ce.routeKeepAliveVisible), s = H(() => ({ mode: Kt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = ip(), { innerPage: c, commandList: l, initNextTick: i } = cp(a);
|
|
6974
6973
|
hp(c, a, i), fp(), dp(), Ap();
|
|
6975
6974
|
const { $changePwd: u, $personSetDialog: f } = gp(), { changeEnterprisesVisible: d, userId: h, tenantId: b, changeEnterprise: y } = ts();
|
|
6976
6975
|
up();
|
|
@@ -7028,15 +7027,15 @@ E("@das-fed/web");
|
|
|
7028
7027
|
const Uh = [
|
|
7029
7028
|
{
|
|
7030
7029
|
path: je,
|
|
7031
|
-
component: () => import("./index-
|
|
7030
|
+
component: () => import("./index-XC7gVyAV.js")
|
|
7032
7031
|
},
|
|
7033
7032
|
{
|
|
7034
7033
|
path: ct,
|
|
7035
|
-
component: () => import("./index-
|
|
7034
|
+
component: () => import("./index-DJ8zDx6p.js")
|
|
7036
7035
|
},
|
|
7037
7036
|
{
|
|
7038
7037
|
path: Cr,
|
|
7039
|
-
component: () => import("./index-
|
|
7038
|
+
component: () => import("./index-DKcYM4y1.js")
|
|
7040
7039
|
}
|
|
7041
7040
|
], Yg = {
|
|
7042
7041
|
routes: Uh,
|
|
@@ -7046,7 +7045,7 @@ const Uh = [
|
|
|
7046
7045
|
},
|
|
7047
7046
|
hooks: {
|
|
7048
7047
|
useEntryApp: vt,
|
|
7049
|
-
useEntryMenu:
|
|
7048
|
+
useEntryMenu: on
|
|
7050
7049
|
}
|
|
7051
7050
|
};
|
|
7052
7051
|
export {
|
|
@@ -7063,7 +7062,7 @@ export {
|
|
|
7063
7062
|
qo as b,
|
|
7064
7063
|
dt as c,
|
|
7065
7064
|
En as d,
|
|
7066
|
-
|
|
7065
|
+
Ht as e,
|
|
7067
7066
|
Rg as f,
|
|
7068
7067
|
ga as g,
|
|
7069
7068
|
ma as h,
|
|
@@ -7071,7 +7070,7 @@ export {
|
|
|
7071
7070
|
jg as j,
|
|
7072
7071
|
Ng as k,
|
|
7073
7072
|
ce as l,
|
|
7074
|
-
|
|
7073
|
+
qt as m,
|
|
7075
7074
|
Hg as n,
|
|
7076
7075
|
Ug as o,
|
|
7077
7076
|
wa as p,
|