@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,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as pe, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as re, reactive as yo, createElementVNode as x, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as
|
|
1
|
+
import { defineComponent as pe, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as re, reactive as yo, createElementVNode as x, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as Z, createCommentVNode as U, h as fe, render as mt, onBeforeUnmount as It, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
|
|
2
2
|
import { i18n as Q } from "@das-fed/web/packages/i18n/index";
|
|
3
3
|
import { DasWebLayout as $r, DasWebNav as Lr, DasWebMenu as xr, DasWebTabs as Mr, layout as D } from "@das-fed/web/packages/layout/index";
|
|
4
4
|
import { DasChangePwdRef as Rr, DasChangePwd as Qr } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
5
5
|
import { DasChangeEnterprises as jr } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
6
6
|
import { pureImageSrc as Xt } from "@das-fed/utils/pure-image-src";
|
|
7
|
-
import { DasNotification as
|
|
7
|
+
import { DasNotification as vt } from "@das-fed/ui/packages/components/notification/index";
|
|
8
8
|
import { flatTree as ye, filterTreeArray as Hr, isEmpty as Nr, treeFind as Tn, updateFavIcon as Ur, dateFormat as Fr, runPromiseByQueue as Jr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Wr, withToken as zr } from "@das-fed/utils/common-tools";
|
|
9
|
-
import { getSubApps as J, getTabInfo as ce, getPersonalInfo as
|
|
9
|
+
import { getSubApps as J, getTabInfo as ce, getPersonalInfo as Et, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as wo, getMenus as yt } from "@das-fed/utils/common-info";
|
|
10
10
|
import { setProcessEngineProject as bo, setProcessEngineToken as Co } from "@das-fed/utils/process-engine-info";
|
|
11
11
|
import { oauthServer as Io, justauth as en, enterpriseright as tn, iotModules as Vr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
|
|
12
12
|
import { createService as je } from "@das-fed/utils/create-api-service";
|
|
@@ -26,8 +26,8 @@ import { setThemeRule as ts } from "@das-fed/web/packages/theme/index";
|
|
|
26
26
|
import { devicePanelShow as So, closeDevicePanel as ns, alarmDevicePanelShow as os, closeAlarmPanel as rs } from "@das-fed/ui/packages/business-components/device-panel/index";
|
|
27
27
|
import { DasIcon as De, DasAutoRegisterIcon as To } from "@das-fed/ui/packages/components/icon/index";
|
|
28
28
|
import { socketService as an } from "@das-fed/utils/webSocket-service";
|
|
29
|
-
import { userInfoNextTick as ss, tokenNextTick as
|
|
30
|
-
import { mainAppFramework as
|
|
29
|
+
import { userInfoNextTick as ss, tokenNextTick as St } from "@das-fed/utils/nextTiken";
|
|
30
|
+
import { mainAppFramework as _t } from "@das-fed/web/packages/main-app-framework/index";
|
|
31
31
|
import { DasTooltip as ae } from "@das-fed/ui/packages/components/tooltip/index";
|
|
32
32
|
import { DasLivePlayer as is } from "@das-fed/ui/packages/components/live-player/index";
|
|
33
33
|
import { DasSpin as ko } from "@das-fed/ui/packages/components/spin/index";
|
|
@@ -405,7 +405,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
405
405
|
class: "desc-item"
|
|
406
406
|
}, [
|
|
407
407
|
ue(
|
|
408
|
-
|
|
408
|
+
Z(r),
|
|
409
409
|
1
|
|
410
410
|
/* TEXT */
|
|
411
411
|
)
|
|
@@ -428,9 +428,9 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
428
428
|
const r = document.createElement("div");
|
|
429
429
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
430
430
|
const a = fe(Ls, { title: n, content: e, desc: t, closeCallback: () => {
|
|
431
|
-
|
|
431
|
+
mt(null, r), document.body.removeChild(r), o(null);
|
|
432
432
|
} });
|
|
433
|
-
|
|
433
|
+
mt(a, r);
|
|
434
434
|
});
|
|
435
435
|
ts(Bs);
|
|
436
436
|
const xs = "data:image/png;base64,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", Ms = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdRSURBVHic7d0xa1tnGIZhpQgChawZlCFbvGb1KOgP6RY6huwpdA8Zu3bpvyh49OrV3krQGbIWCp6SWdSHCI5ufbF6XaON4VkMNy8cvie73e7LCgAg9MPoAQDA+RMcAEBOcAAAOcEBAOQEBwCQW8/94vbvf065gxO7ePnswZ9vNpsTLwHgnEzT9ODPXTgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMjNvqVyiO3lxbF2cERX17ejJwDAHhcOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByi95S8WYHAHAIFw4AICc4AICc4AAAcoIDAMgJDgAgt+grFc7PNE2jJwBwhlw4AICc4AAAcoIDAMgJDgAgJzgAgJyvVNiz2WxGTwDgEZv72tGFAwDICQ4AICc4AICc4AAAcoIDAMgt+kple3lxrB0c0dX17egJALDHhQMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgNyit1S82QEAHMKFAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMitl/zx73+9ONYOjuiXn3ajJwDAHhcOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByi95S8WYHAHAIFw4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AIDc7PP0v/3x4yl3cGJ//jp6AQD/Jy4cAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQG49esASr189XX1893z0jOFu7u5Xbz98Hj0DAGa5cAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkHvUb6nc3N2vtm8+jZ4BAHyDCwcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQW48esMTrV09XH989Hz1juJu7+9XbD59HzwCAWS4cAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkHvVbKjd396vtm0+jZwAA3+DCAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOTWowfwfZmmafQEAM6QCwcAkBMcAEBOcAAAOcEBAOQEBwCQm/1K5f3P/55yByf37MGfbjabE++A79/c11v+X+C/5v5fXDgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACA3HrJH28vL461gyO6ur4dPQEA9rhwAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQW/SWijc7AIBDuHAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDknux2uy+jRwAA582FAwDICQ4AICc4AICc4AAAcoIDAMh9BZ3dS+/izVuGAAAAAElFTkSuQmCC", Rs = (n = {}) => {
|
|
@@ -557,7 +557,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
557
557
|
if (e.exitConfirmPages.includes(t) && !window.confirm("切换后已录入的数据将会丢失且不可恢复,确定切换?"))
|
|
558
558
|
throw new Error("取消切换");
|
|
559
559
|
}
|
|
560
|
-
},
|
|
560
|
+
}, gt = (n, e) => {
|
|
561
561
|
if (!e || !e.length) return;
|
|
562
562
|
const t = JSON.parse(sessionStorage.getItem(n) || "{}");
|
|
563
563
|
if (t && JSON.stringify(t) !== "{}" && t != null && t.closeTabPageConfirm && t.closeTabPageConfirm.length) {
|
|
@@ -578,7 +578,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
578
578
|
return n ? { tenantConfig: null } : (Qs(e), { tenantConfig: e });
|
|
579
579
|
}, oi = async () => {
|
|
580
580
|
const [n, e] = await ei().run({
|
|
581
|
-
userId:
|
|
581
|
+
userId: Et().id,
|
|
582
582
|
pageSize: 20,
|
|
583
583
|
pageIndex: 1
|
|
584
584
|
});
|
|
@@ -594,7 +594,7 @@ function ai() {
|
|
|
594
594
|
function Qo(n, e) {
|
|
595
595
|
return n === e || n !== n && e !== e;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Tt(n, e) {
|
|
598
598
|
for (var t = n.length; t--; )
|
|
599
599
|
if (Qo(n[t][0], e))
|
|
600
600
|
return t;
|
|
@@ -602,21 +602,21 @@ function kt(n, e) {
|
|
|
602
602
|
}
|
|
603
603
|
var ci = Array.prototype, li = ci.splice;
|
|
604
604
|
function ui(n) {
|
|
605
|
-
var e = this.__data__, t =
|
|
605
|
+
var e = this.__data__, t = Tt(e, n);
|
|
606
606
|
if (t < 0)
|
|
607
607
|
return !1;
|
|
608
608
|
var o = e.length - 1;
|
|
609
609
|
return t == o ? e.pop() : li.call(e, t, 1), --this.size, !0;
|
|
610
610
|
}
|
|
611
611
|
function di(n) {
|
|
612
|
-
var e = this.__data__, t =
|
|
612
|
+
var e = this.__data__, t = Tt(e, n);
|
|
613
613
|
return t < 0 ? void 0 : e[t][1];
|
|
614
614
|
}
|
|
615
615
|
function pi(n) {
|
|
616
|
-
return
|
|
616
|
+
return Tt(this.__data__, n) > -1;
|
|
617
617
|
}
|
|
618
618
|
function fi(n, e) {
|
|
619
|
-
var t = this.__data__, o =
|
|
619
|
+
var t = this.__data__, o = Tt(t, n);
|
|
620
620
|
return o < 0 ? (++this.size, t.push([n, e])) : t[o][1] = e, this;
|
|
621
621
|
}
|
|
622
622
|
function Se(n) {
|
|
@@ -761,22 +761,22 @@ function ta(n) {
|
|
|
761
761
|
var e = typeof n;
|
|
762
762
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? n !== "__proto__" : n === null;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function kt(n, e) {
|
|
765
765
|
var t = n.__data__;
|
|
766
766
|
return ta(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
767
767
|
}
|
|
768
768
|
function na(n) {
|
|
769
|
-
var e =
|
|
769
|
+
var e = kt(this, n).delete(n);
|
|
770
770
|
return this.size -= e ? 1 : 0, e;
|
|
771
771
|
}
|
|
772
772
|
function oa(n) {
|
|
773
|
-
return
|
|
773
|
+
return kt(this, n).get(n);
|
|
774
774
|
}
|
|
775
775
|
function ra(n) {
|
|
776
|
-
return
|
|
776
|
+
return kt(this, n).has(n);
|
|
777
777
|
}
|
|
778
778
|
function sa(n, e) {
|
|
779
|
-
var t =
|
|
779
|
+
var t = kt(this, n), o = t.size;
|
|
780
780
|
return t.set(n, e), this.size += t.size == o ? 0 : 1, this;
|
|
781
781
|
}
|
|
782
782
|
function Ze(n) {
|
|
@@ -836,7 +836,7 @@ function Fo(n, e, t) {
|
|
|
836
836
|
var o = n[e];
|
|
837
837
|
(!(ua.call(n, e) && Qo(o, t)) || t === void 0 && !(e in n)) && Uo(n, e, t);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Pt(n, e, t, o) {
|
|
840
840
|
var r = !t;
|
|
841
841
|
t || (t = {});
|
|
842
842
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
@@ -928,7 +928,7 @@ function fn(n) {
|
|
|
928
928
|
return Xo(n) ? Ko(n) : nc(n);
|
|
929
929
|
}
|
|
930
930
|
function oc(n, e) {
|
|
931
|
-
return n &&
|
|
931
|
+
return n && Pt(e, fn(e), n);
|
|
932
932
|
}
|
|
933
933
|
function rc(n) {
|
|
934
934
|
var e = [];
|
|
@@ -950,7 +950,7 @@ function hn(n) {
|
|
|
950
950
|
return Xo(n) ? Ko(n, !0) : ac(n);
|
|
951
951
|
}
|
|
952
952
|
function cc(n, e) {
|
|
953
|
-
return n &&
|
|
953
|
+
return n && Pt(e, hn(e), n);
|
|
954
954
|
}
|
|
955
955
|
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, Wn = Zo && typeof module == "object" && module && !module.nodeType && module, lc = Wn && Wn.exports === Zo, zn = lc ? we.Buffer : void 0, Vn = zn ? zn.allocUnsafe : void 0;
|
|
956
956
|
function uc(n, e) {
|
|
@@ -981,7 +981,7 @@ var fc = Object.prototype, hc = fc.propertyIsEnumerable, qn = Object.getOwnPrope
|
|
|
981
981
|
}));
|
|
982
982
|
} : Yo;
|
|
983
983
|
function gc(n, e) {
|
|
984
|
-
return
|
|
984
|
+
return Pt(n, gn(n), e);
|
|
985
985
|
}
|
|
986
986
|
function er(n, e) {
|
|
987
987
|
for (var t = -1, o = e.length, r = n.length; ++t < o; )
|
|
@@ -994,7 +994,7 @@ var tr = Go(Object.getPrototypeOf, Object), Ac = Object.getOwnPropertySymbols, n
|
|
|
994
994
|
return e;
|
|
995
995
|
} : Yo;
|
|
996
996
|
function mc(n, e) {
|
|
997
|
-
return
|
|
997
|
+
return Pt(n, nr(n), e);
|
|
998
998
|
}
|
|
999
999
|
function or(n, e, t) {
|
|
1000
1000
|
var o = e(n);
|
|
@@ -1112,7 +1112,7 @@ function il(n) {
|
|
|
1112
1112
|
var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]", wl = "[object Symbol]", bl = "[object WeakMap]", Cl = "[object ArrayBuffer]", Il = "[object DataView]", El = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", kl = "[object Int16Array]", Pl = "[object Int32Array]", Bl = "[object Uint8Array]", Ol = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", $l = "[object Uint32Array]", W = {};
|
|
1113
1113
|
W[rr] = W[dl] = W[Cl] = W[Il] = W[pl] = W[fl] = W[El] = W[Sl] = W[Tl] = W[kl] = W[Pl] = W[Al] = W[ml] = W[ir] = W[vl] = W[yl] = W[_l] = W[wl] = W[Bl] = W[Ol] = W[Dl] = W[$l] = !0;
|
|
1114
1114
|
W[hl] = W[sr] = W[bl] = !1;
|
|
1115
|
-
function
|
|
1115
|
+
function At(n, e, t, o, r, s) {
|
|
1116
1116
|
var a, l = e & cl, c = e & ll, i = e & ul;
|
|
1117
1117
|
if (a !== void 0)
|
|
1118
1118
|
return a;
|
|
@@ -1140,34 +1140,34 @@ function mt(n, e, t, o, r, s) {
|
|
|
1140
1140
|
if (h)
|
|
1141
1141
|
return h;
|
|
1142
1142
|
s.set(n, a), al(n) ? n.forEach(function(f) {
|
|
1143
|
-
a.add(
|
|
1143
|
+
a.add(At(f, e, t, f, n, s));
|
|
1144
1144
|
}) : rl(n) && n.forEach(function(f, d) {
|
|
1145
|
-
a.set(d,
|
|
1145
|
+
a.set(d, At(f, e, t, d, n, s));
|
|
1146
1146
|
});
|
|
1147
1147
|
var S = i ? c ? yc : vc : c ? hn : fn, w = u ? void 0 : S(n);
|
|
1148
1148
|
return ca(w || n, function(f, d) {
|
|
1149
|
-
w && (d = f, f = n[d]), Fo(a, d,
|
|
1149
|
+
w && (d = f, f = n[d]), Fo(a, d, At(f, e, t, d, n, s));
|
|
1150
1150
|
}), a;
|
|
1151
1151
|
}
|
|
1152
1152
|
var Ll = 1, xl = 4;
|
|
1153
1153
|
function qe(n) {
|
|
1154
|
-
return
|
|
1154
|
+
return At(n, Ll | xl);
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const wt = (n, e = "") => {
|
|
1157
1157
|
for (let t of n)
|
|
1158
1158
|
if (!(t != null && t.disable) && !(t != null && t.expired))
|
|
1159
1159
|
if (e) {
|
|
1160
1160
|
if (t.routeUrl && t.code === e)
|
|
1161
1161
|
return t;
|
|
1162
1162
|
if (t.children && t.children.length) {
|
|
1163
|
-
const o =
|
|
1163
|
+
const o = wt(t.children, e);
|
|
1164
1164
|
if (o) return o;
|
|
1165
1165
|
}
|
|
1166
1166
|
} else {
|
|
1167
1167
|
if (t.routeUrl)
|
|
1168
1168
|
return t;
|
|
1169
1169
|
if (t.children && t.children.length) {
|
|
1170
|
-
const o =
|
|
1170
|
+
const o = wt(t.children, e);
|
|
1171
1171
|
if (o) return o;
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
@@ -1301,7 +1301,7 @@ const bt = (n, e = "") => {
|
|
|
1301
1301
|
query: { ...r.query, app: l }
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
let A =
|
|
1304
|
+
let A = wt(c, t);
|
|
1305
1305
|
if (!A) {
|
|
1306
1306
|
if (!s || !a)
|
|
1307
1307
|
return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
|
|
@@ -1388,14 +1388,14 @@ const bt = (n, e = "") => {
|
|
|
1388
1388
|
}, cr = E(null), eu = async () => {
|
|
1389
1389
|
const [n, e] = await Gl().run();
|
|
1390
1390
|
return n ? { homeConfig: null } : (e && (js(e), cr.value = e), { homeConfig: e });
|
|
1391
|
-
},
|
|
1391
|
+
}, bt = E(1), lr = async () => {
|
|
1392
1392
|
const [n, e] = await Xl().run();
|
|
1393
|
-
return n ? { personalMenuConfig: null } : (
|
|
1393
|
+
return n ? { personalMenuConfig: null } : (bt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
1394
1394
|
}, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */ pe({
|
|
1395
1395
|
__name: "index",
|
|
1396
1396
|
setup(n, { expose: e }) {
|
|
1397
1397
|
const t = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
|
|
1398
|
-
o.value =
|
|
1398
|
+
o.value = bt.value === 1, r.value = bt.value === 2, t.value = !0;
|
|
1399
1399
|
}, l = (i) => {
|
|
1400
1400
|
i === 1 ? r.value = !1 : o.value = !1;
|
|
1401
1401
|
}, c = async () => {
|
|
@@ -1445,7 +1445,7 @@ const bt = (n, e = "") => {
|
|
|
1445
1445
|
x(
|
|
1446
1446
|
"p",
|
|
1447
1447
|
ru,
|
|
1448
|
-
|
|
1448
|
+
Z(v(Q)("侧边菜单栏").value),
|
|
1449
1449
|
1
|
|
1450
1450
|
/* TEXT */
|
|
1451
1451
|
),
|
|
@@ -1464,7 +1464,7 @@ const bt = (n, e = "") => {
|
|
|
1464
1464
|
}, {
|
|
1465
1465
|
default: M(() => [
|
|
1466
1466
|
ue(
|
|
1467
|
-
|
|
1467
|
+
Z(v(Q)("弹出式菜单栏").value),
|
|
1468
1468
|
1
|
|
1469
1469
|
/* TEXT */
|
|
1470
1470
|
)
|
|
@@ -1487,7 +1487,7 @@ const bt = (n, e = "") => {
|
|
|
1487
1487
|
}, {
|
|
1488
1488
|
default: M(() => [
|
|
1489
1489
|
ue(
|
|
1490
|
-
|
|
1490
|
+
Z(v(Q)("内嵌式菜单栏").value),
|
|
1491
1491
|
1
|
|
1492
1492
|
/* TEXT */
|
|
1493
1493
|
)
|
|
@@ -1510,7 +1510,7 @@ const bt = (n, e = "") => {
|
|
|
1510
1510
|
Hs(i), Ur(i);
|
|
1511
1511
|
}, t = async () => {
|
|
1512
1512
|
const [a, l] = await hu().run({ userId: wo().id });
|
|
1513
|
-
a || !l || JSON.stringify(l) === "{}" || (
|
|
1513
|
+
a || !l || JSON.stringify(l) === "{}" || (vt.open({
|
|
1514
1514
|
key: "loginTip",
|
|
1515
1515
|
message: "上次登录信息",
|
|
1516
1516
|
placement: "bottomRight",
|
|
@@ -1589,7 +1589,7 @@ const bt = (n, e = "") => {
|
|
|
1589
1589
|
// 树打平之后保留的数据
|
|
1590
1590
|
filterFlatCondition: (C) => C.type === 7
|
|
1591
1591
|
}), D.nav.setProjects(f || []), d && D.nav.setActiveProject(d));
|
|
1592
|
-
const T =
|
|
1592
|
+
const T = Et() ?? {}, B = T != null && T.headPicture ? Xt(T.headPicture) : void 0;
|
|
1593
1593
|
c.value = [...ps], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((P) => P.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
|
|
1594
1594
|
getHistoryList: r,
|
|
1595
1595
|
getSearchList: s
|
|
@@ -1620,10 +1620,10 @@ const bt = (n, e = "") => {
|
|
|
1620
1620
|
desc: t.menuExpirationExpiredInfo
|
|
1621
1621
|
};
|
|
1622
1622
|
}, vu = () => {
|
|
1623
|
-
const { entryMenu: n } =
|
|
1623
|
+
const { entryMenu: n } = Bt();
|
|
1624
1624
|
D.menu.addEventListener("onItemClick", async (e) => {
|
|
1625
1625
|
ee.innerSet = !0;
|
|
1626
|
-
const t = ye(
|
|
1626
|
+
const t = ye(yt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
1627
1627
|
if (!(t && !t.routeUrl)) {
|
|
1628
1628
|
if (!t) {
|
|
1629
1629
|
const { title: o, content: r, desc: s } = await vn(t);
|
|
@@ -1647,7 +1647,7 @@ const bt = (n, e = "") => {
|
|
|
1647
1647
|
const s = J();
|
|
1648
1648
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
1649
1649
|
const c = (ce().tabMap[r.code] ?? []).map((u) => u.code);
|
|
1650
|
-
c && c.length &&
|
|
1650
|
+
c && c.length && gt(r.code, c), e(r);
|
|
1651
1651
|
});
|
|
1652
1652
|
const { enter: o } = lt();
|
|
1653
1653
|
return D.nav.addEventListener("fullScreenHandle", o), {};
|
|
@@ -1670,9 +1670,9 @@ const bt = (n, e = "") => {
|
|
|
1670
1670
|
B && JSON.stringify(B) !== "{}" && (r.value = ($ = B[_][T]) != null && $.fontColor ? B[_][T].fontColor : e, s.value = (H = B[_][T]) != null && H.backgroundColor ? B[_][T].backgroundColor : t, a.value = (F = B[_][T]) != null && F.backgroundColor ? B[_][T].backgroundColor : o);
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
1673
|
-
const { deleteApp: i } = et(), { entryMenu: u } =
|
|
1673
|
+
const { deleteApp: i } = et(), { entryMenu: u } = Bt(), { reloadRoute: A, unloadRoute: p } = ur(), h = (d) => {
|
|
1674
1674
|
var T;
|
|
1675
|
-
const m = ye(
|
|
1675
|
+
const m = ye(yt(d.applicationCode)).find((B) => B.code === d.code), _ = (((T = ce().tabMap) == null ? void 0 : T[d.applicationCode]) ?? []).find((B) => B.code === d.code);
|
|
1676
1676
|
u({ currentMenu: m, route: { path: _.path, query: _.query ?? {} } });
|
|
1677
1677
|
}, S = (d) => {
|
|
1678
1678
|
if (!d || !d.length) return;
|
|
@@ -1723,7 +1723,7 @@ const bt = (n, e = "") => {
|
|
|
1723
1723
|
ce().currentCode !== d.currentCode && (ee.innerSet = !0, h(d));
|
|
1724
1724
|
}), D.tab.addEventListener("onItemRemove", (d) => {
|
|
1725
1725
|
const m = ce(), y = J().currentSubAppCode ?? "";
|
|
1726
|
-
m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (
|
|
1726
|
+
m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (gt(d.applicationCode, [d.code]), w({ type: "me", data: d }));
|
|
1727
1727
|
}), D.tab.addEventListener("onMenuClick", (d) => {
|
|
1728
1728
|
let m = [];
|
|
1729
1729
|
const y = ce().tabMap[d.applicationCode] ?? [];
|
|
@@ -1731,14 +1731,14 @@ const bt = (n, e = "") => {
|
|
|
1731
1731
|
const _ = y.findIndex((T) => T.code === d.data.value);
|
|
1732
1732
|
m = y.slice(_ + 1);
|
|
1733
1733
|
}
|
|
1734
|
-
d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]),
|
|
1734
|
+
d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]), gt(
|
|
1735
1735
|
d.applicationCode,
|
|
1736
1736
|
m.map((_) => _.code)
|
|
1737
1737
|
), w({ type: d.type.key, data: d.data });
|
|
1738
1738
|
}), D.tab.addEventListener("onPageRefresh", async (d) => {
|
|
1739
1739
|
if (!d || d.path === Je) return;
|
|
1740
|
-
|
|
1741
|
-
const m = ye(
|
|
1740
|
+
gt(d.applicationCode, [d.code]);
|
|
1741
|
+
const m = ye(yt(d.applicationCode)).find((T) => T.code === d.code);
|
|
1742
1742
|
if (!m) return;
|
|
1743
1743
|
if (m.routeUrl !== d.path) {
|
|
1744
1744
|
A([d.path]), p([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
|
|
@@ -1771,7 +1771,7 @@ const bt = (n, e = "") => {
|
|
|
1771
1771
|
n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
1772
1772
|
});
|
|
1773
1773
|
}, et = () => {
|
|
1774
|
-
const n = Ge(), { entryMenu: e } =
|
|
1774
|
+
const n = Ge(), { entryMenu: e } = Bt(), { unloadRoute: t } = ur();
|
|
1775
1775
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = He();
|
|
1776
1776
|
!o && r && (s = [{ name: r }]);
|
|
1777
1777
|
const a = s.map((p) => p.name), l = () => {
|
|
@@ -1785,15 +1785,15 @@ const bt = (n, e = "") => {
|
|
|
1785
1785
|
if (B) return !1;
|
|
1786
1786
|
f = _ ?? [], d = T ?? [];
|
|
1787
1787
|
}
|
|
1788
|
-
if (f.length ?
|
|
1788
|
+
if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
|
|
1789
1789
|
const y = { ...p, menus: f, originalMenus: d };
|
|
1790
1790
|
return ge([{ key: "subAppList", value: y }]), !0;
|
|
1791
1791
|
}, i = async (p) => {
|
|
1792
|
-
var H, F, ie, Te
|
|
1792
|
+
var H, F, ie, Te;
|
|
1793
1793
|
const { microApp: h = null, menuCode: S = "", menuPath: w = "", route: f = {} } = p;
|
|
1794
1794
|
let d = f;
|
|
1795
1795
|
if (!h && w) {
|
|
1796
|
-
if (l(), !(a && a.find((
|
|
1796
|
+
if (l(), !(a && a.find((ne) => w.startsWith("/" + ne) || w.startsWith(ne)))) return;
|
|
1797
1797
|
await n.push({ path: w, query: d.query });
|
|
1798
1798
|
return;
|
|
1799
1799
|
}
|
|
@@ -1804,25 +1804,25 @@ const bt = (n, e = "") => {
|
|
|
1804
1804
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
1805
1805
|
l();
|
|
1806
1806
|
const oe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
|
|
1807
|
-
if ((oe == null ? void 0 : oe.find((
|
|
1807
|
+
if ((oe == null ? void 0 : oe.find((G) => G.code === h.code)) || oe == null || oe.push(h), ge([
|
|
1808
1808
|
{ key: "currentSubApp", value: h },
|
|
1809
1809
|
{ key: "currentSubAppCode", value: h.code },
|
|
1810
1810
|
{ key: "subAppList", value: oe }
|
|
1811
|
-
]), oe.forEach((
|
|
1812
|
-
const Oe = { ...
|
|
1811
|
+
]), oe.forEach((G) => {
|
|
1812
|
+
const Oe = { ...G, value: G.code, label: G.name };
|
|
1813
1813
|
D.nav.appendItem(Oe);
|
|
1814
1814
|
}), D.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
1815
1815
|
await n.push({ path: h.routeUrl, query: { ...d.query, app: h.code } });
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
if (_ === 1 && T === 2) {
|
|
1819
|
-
const
|
|
1819
|
+
const G = Wt(Ut(Ft(h.routeUrl)));
|
|
1820
1820
|
await n.push({
|
|
1821
1821
|
path: Je,
|
|
1822
1822
|
query: {
|
|
1823
1823
|
...d.query,
|
|
1824
1824
|
app: h.code,
|
|
1825
|
-
iframeSrc:
|
|
1825
|
+
iframeSrc: G
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
1828
|
return;
|
|
@@ -1841,8 +1841,8 @@ const bt = (n, e = "") => {
|
|
|
1841
1841
|
meta: { ...(d == null ? void 0 : d.meta) ?? {} }
|
|
1842
1842
|
}), L && (L == null ? void 0 : L.code) !== (h == null ? void 0 : h.code)) {
|
|
1843
1843
|
if (L.fixed && (await n.push(L.path), l(), D.nav.setActiveItem(L.path)), !L.fixed) {
|
|
1844
|
-
const oe = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code),
|
|
1845
|
-
await i({ microApp: oe, menuCode: (
|
|
1844
|
+
const oe = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), ne = ce().preTab[L.code], G = { ...(ne == null ? void 0 : ne.query) ?? {} };
|
|
1845
|
+
await i({ microApp: oe, menuCode: (ne == null ? void 0 : ne.code) ?? "", route: { query: G } });
|
|
1846
1846
|
}
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
@@ -1858,18 +1858,21 @@ const bt = (n, e = "") => {
|
|
|
1858
1858
|
return;
|
|
1859
1859
|
}
|
|
1860
1860
|
if (m && y) {
|
|
1861
|
-
(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1861
|
+
setTimeout(() => {
|
|
1862
|
+
var ne;
|
|
1863
|
+
(ne = J().subAppList) == null || ne.forEach((G) => {
|
|
1864
|
+
const Oe = { ...G, value: G.code, label: G.name };
|
|
1865
|
+
D.nav.appendItem(Oe);
|
|
1866
|
+
}), D.nav.setActiveItem($.code), D.menu.setItems(B);
|
|
1867
|
+
}, 200);
|
|
1865
1868
|
const oe = ce().tabMap[$.code] ?? [];
|
|
1866
1869
|
if (oe.length) {
|
|
1867
|
-
const
|
|
1868
|
-
...
|
|
1869
|
-
value:
|
|
1870
|
-
label:
|
|
1870
|
+
const ne = oe.map((G) => ({
|
|
1871
|
+
...G,
|
|
1872
|
+
value: G.code,
|
|
1873
|
+
label: G.name
|
|
1871
1874
|
})) || [];
|
|
1872
|
-
D.tab.setItems(
|
|
1875
|
+
D.tab.setItems(ne);
|
|
1873
1876
|
}
|
|
1874
1877
|
}
|
|
1875
1878
|
e({ currentMenu: b, microPath: C, route: d });
|
|
@@ -1920,7 +1923,7 @@ const bt = (n, e = "") => {
|
|
|
1920
1923
|
}
|
|
1921
1924
|
}
|
|
1922
1925
|
};
|
|
1923
|
-
},
|
|
1926
|
+
}, Bt = () => {
|
|
1924
1927
|
const n = Ge();
|
|
1925
1928
|
let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
|
|
1926
1929
|
return !e && t && (o = [{ name: t }]), o.map((s) => s.name), { entryMenu: async (s) => {
|
|
@@ -2140,7 +2143,7 @@ const bt = (n, e = "") => {
|
|
|
2140
2143
|
};
|
|
2141
2144
|
}, Iu = Io.get("/convert/tenant"), Eu = en.get("/platform/withdefault"), dr = () => {
|
|
2142
2145
|
const n = He(), e = E(!1), t = E(""), o = E(""), r = () => {
|
|
2143
|
-
t.value =
|
|
2146
|
+
t.value = Et().id, o.value = wo().tenantId, e.value = !0;
|
|
2144
2147
|
};
|
|
2145
2148
|
D.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
2146
2149
|
r();
|
|
@@ -2230,7 +2233,7 @@ const bt = (n, e = "") => {
|
|
|
2230
2233
|
}), $u = () => {
|
|
2231
2234
|
me.addEventListenerFromMicroApp("iot:change-instance", (n) => {
|
|
2232
2235
|
const e = J(), t = e.currentSubAppCode;
|
|
2233
|
-
let o =
|
|
2236
|
+
let o = yt(t);
|
|
2234
2237
|
o.forEach((s) => {
|
|
2235
2238
|
s.fixed && (s.name = n.data.instanceInfo.instanceName);
|
|
2236
2239
|
}), D.menu.setItems(o);
|
|
@@ -2268,7 +2271,7 @@ const bt = (n, e = "") => {
|
|
|
2268
2271
|
rs();
|
|
2269
2272
|
});
|
|
2270
2273
|
}, Mu = nn.get("/platform/login/pwd-advance-notify-check"), Ru = () => {
|
|
2271
|
-
const n = E([]), e = E(null), t = E([]), { entryApp: o } =
|
|
2274
|
+
const n = E([]), e = E(null), t = E([]), { entryApp: o } = _t.hooks.useEntryApp(), r = () => {
|
|
2272
2275
|
var c;
|
|
2273
2276
|
const l = (((c = J().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
2274
2277
|
l && o({ microApp: l });
|
|
@@ -2284,8 +2287,8 @@ const bt = (n, e = "") => {
|
|
|
2284
2287
|
const c = Pe().id;
|
|
2285
2288
|
n.value = a.filter(
|
|
2286
2289
|
(i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
|
|
2287
|
-
), t.value && t.value.length && (t.value.forEach((i) =>
|
|
2288
|
-
|
|
2290
|
+
), t.value && t.value.length && (t.value.forEach((i) => vt.close(i)), t.value = []), await Fe(), n.value.forEach((i, u) => {
|
|
2291
|
+
vt.info({
|
|
2289
2292
|
key: i.id,
|
|
2290
2293
|
class: "message-center-notify",
|
|
2291
2294
|
message: i.title,
|
|
@@ -2316,8 +2319,8 @@ const bt = (n, e = "") => {
|
|
|
2316
2319
|
});
|
|
2317
2320
|
};
|
|
2318
2321
|
Qe(async () => {
|
|
2319
|
-
await
|
|
2320
|
-
}),
|
|
2322
|
+
await St(), s();
|
|
2323
|
+
}), It(() => {
|
|
2321
2324
|
e.value && e.value.disconnect(), e.value = null;
|
|
2322
2325
|
});
|
|
2323
2326
|
}, Qu = "v1", ju = Xe(`/api/enterpriseright/permission/${Qu}`), pr = Xe("/api/device-relation/deviceproject/v1/project/device/video", Nu), Hu = rn.get("/permissionset/user-portal-menu");
|
|
@@ -2622,7 +2625,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2622
2625
|
x(
|
|
2623
2626
|
"div",
|
|
2624
2627
|
td,
|
|
2625
|
-
|
|
2628
|
+
Z(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
|
|
2626
2629
|
1
|
|
2627
2630
|
/* TEXT */
|
|
2628
2631
|
)
|
|
@@ -2907,9 +2910,9 @@ const ud = /* @__PURE__ */ pe({
|
|
|
2907
2910
|
let r = document.body.querySelector("#video-dialog");
|
|
2908
2911
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
2909
2912
|
const a = fe(ud, { gridNum: e, deviceList: t, closeCallback: () => {
|
|
2910
|
-
|
|
2913
|
+
mt(null, r), document.body.removeChild(r), o(null);
|
|
2911
2914
|
} });
|
|
2912
|
-
|
|
2915
|
+
mt(a, r);
|
|
2913
2916
|
});
|
|
2914
2917
|
}, pd = () => {
|
|
2915
2918
|
const n = E(4), e = E([]), t = E(null), o = async (s) => {
|
|
@@ -2949,8 +2952,8 @@ const ud = /* @__PURE__ */ pe({
|
|
|
2949
2952
|
}));
|
|
2950
2953
|
};
|
|
2951
2954
|
return Qe(async () => {
|
|
2952
|
-
await
|
|
2953
|
-
}),
|
|
2955
|
+
await St(), r();
|
|
2956
|
+
}), It(() => {
|
|
2954
2957
|
t.value && t.value.disconnect(), t.value = null;
|
|
2955
2958
|
}), {
|
|
2956
2959
|
gridNum: n,
|
|
@@ -3049,7 +3052,7 @@ class hr {
|
|
|
3049
3052
|
this.statusCode = e, this.statusText = t, this.content = o;
|
|
3050
3053
|
}
|
|
3051
3054
|
}
|
|
3052
|
-
class
|
|
3055
|
+
class Ot {
|
|
3053
3056
|
get(e, t) {
|
|
3054
3057
|
return this.send({
|
|
3055
3058
|
...t,
|
|
@@ -3095,7 +3098,7 @@ class at {
|
|
|
3095
3098
|
}
|
|
3096
3099
|
at.instance = new at();
|
|
3097
3100
|
const md = "8.0.7";
|
|
3098
|
-
class
|
|
3101
|
+
class Y {
|
|
3099
3102
|
static isRequired(e, t) {
|
|
3100
3103
|
if (e == null)
|
|
3101
3104
|
throw new Error(`The '${t}' argument is required.`);
|
|
@@ -3157,7 +3160,7 @@ async function gr(n, e, t, o, r, s) {
|
|
|
3157
3160
|
n.log(g.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
3158
3161
|
}
|
|
3159
3162
|
function yd(n) {
|
|
3160
|
-
return n === void 0 ? new
|
|
3163
|
+
return n === void 0 ? new Ct(g.Information) : n === null ? at.instance : n.log !== void 0 ? n : new Ct(n);
|
|
3161
3164
|
}
|
|
3162
3165
|
class _d {
|
|
3163
3166
|
constructor(e, t) {
|
|
@@ -3169,7 +3172,7 @@ class _d {
|
|
|
3169
3172
|
});
|
|
3170
3173
|
}
|
|
3171
3174
|
}
|
|
3172
|
-
class
|
|
3175
|
+
class Ct {
|
|
3173
3176
|
constructor(e) {
|
|
3174
3177
|
this._minLevel = e, this.out = console;
|
|
3175
3178
|
}
|
|
@@ -3239,7 +3242,7 @@ function Ed() {
|
|
|
3239
3242
|
return global;
|
|
3240
3243
|
throw new Error("could not find global");
|
|
3241
3244
|
}
|
|
3242
|
-
class Sd extends
|
|
3245
|
+
class Sd extends Ot {
|
|
3243
3246
|
constructor(e) {
|
|
3244
3247
|
if (super(), this._logger = e, typeof fetch > "u" || K.isNode) {
|
|
3245
3248
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
@@ -3324,7 +3327,7 @@ function ho(n, e) {
|
|
|
3324
3327
|
}
|
|
3325
3328
|
return t;
|
|
3326
3329
|
}
|
|
3327
|
-
class Td extends
|
|
3330
|
+
class Td extends Ot {
|
|
3328
3331
|
constructor(e) {
|
|
3329
3332
|
super(), this._logger = e;
|
|
3330
3333
|
}
|
|
@@ -3348,7 +3351,7 @@ class Td extends Dt {
|
|
|
3348
3351
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
3349
3352
|
}
|
|
3350
3353
|
}
|
|
3351
|
-
class kd extends
|
|
3354
|
+
class kd extends Ot {
|
|
3352
3355
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
3353
3356
|
constructor(e) {
|
|
3354
3357
|
if (super(), typeof fetch < "u" || K.isNode)
|
|
@@ -3543,7 +3546,7 @@ class _n {
|
|
|
3543
3546
|
constructor(e, t, o, r, s, a, l) {
|
|
3544
3547
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
3545
3548
|
this._logger.log(g.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");
|
|
3546
|
-
},
|
|
3549
|
+
}, Y.isRequired(e, "connection"), Y.isRequired(t, "logger"), Y.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? $d, this.keepAliveIntervalInMilliseconds = a ?? Ld, this._statefulReconnectBufferSize = l ?? xd, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
|
|
3547
3550
|
}
|
|
3548
3551
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
3549
3552
|
get state() {
|
|
@@ -4046,7 +4049,7 @@ class xe {
|
|
|
4046
4049
|
}
|
|
4047
4050
|
xe.Authorization = "Authorization";
|
|
4048
4051
|
xe.Cookie = "Cookie";
|
|
4049
|
-
class Rd extends
|
|
4052
|
+
class Rd extends Ot {
|
|
4050
4053
|
constructor(e, t) {
|
|
4051
4054
|
super(), this._innerClient = e, this._accessTokenFactory = t;
|
|
4052
4055
|
}
|
|
@@ -4063,10 +4066,10 @@ class Rd extends Dt {
|
|
|
4063
4066
|
return this._innerClient.getCookieString(e);
|
|
4064
4067
|
}
|
|
4065
4068
|
}
|
|
4066
|
-
var
|
|
4069
|
+
var X;
|
|
4067
4070
|
(function(n) {
|
|
4068
4071
|
n[n.None = 0] = "None", n[n.WebSockets = 1] = "WebSockets", n[n.ServerSentEvents = 2] = "ServerSentEvents", n[n.LongPolling = 4] = "LongPolling";
|
|
4069
|
-
})(
|
|
4072
|
+
})(X || (X = {}));
|
|
4070
4073
|
var se;
|
|
4071
4074
|
(function(n) {
|
|
4072
4075
|
n[n.Text = 1] = "Text", n[n.Binary = 2] = "Binary";
|
|
@@ -4094,7 +4097,7 @@ class Ao {
|
|
|
4094
4097
|
this._httpClient = e, this._logger = t, this._pollAbort = new Qd(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
4095
4098
|
}
|
|
4096
4099
|
async connect(e, t) {
|
|
4097
|
-
if (
|
|
4100
|
+
if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(g.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
4098
4101
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
4099
4102
|
const [o, r] = Ke(), s = { [o]: r, ...this._options.headers }, a = {
|
|
4100
4103
|
abortSignal: this._pollAbort.signal,
|
|
@@ -4160,7 +4163,7 @@ class jd {
|
|
|
4160
4163
|
this._httpClient = e, this._accessToken = t, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
4161
4164
|
}
|
|
4162
4165
|
async connect(e, t) {
|
|
4163
|
-
return
|
|
4166
|
+
return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
4164
4167
|
let s = !1;
|
|
4165
4168
|
if (t !== se.Text) {
|
|
4166
4169
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
@@ -4210,7 +4213,7 @@ class Hd {
|
|
|
4210
4213
|
this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
4211
4214
|
}
|
|
4212
4215
|
async connect(e, t) {
|
|
4213
|
-
|
|
4216
|
+
Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(WebSockets transport) Connecting.");
|
|
4214
4217
|
let o;
|
|
4215
4218
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
4216
4219
|
e = e.replace(/^http/, "ws");
|
|
@@ -4267,7 +4270,7 @@ const mo = 100;
|
|
|
4267
4270
|
class Nd {
|
|
4268
4271
|
constructor(e, t = {}) {
|
|
4269
4272
|
if (this._stopPromiseResolver = () => {
|
|
4270
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
4273
|
+
}, this.features = {}, this._negotiateVersion = 1, Y.isRequired(e, "url"), this._logger = yd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
|
|
4271
4274
|
t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
|
|
4272
4275
|
else
|
|
4273
4276
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -4280,7 +4283,7 @@ class Nd {
|
|
|
4280
4283
|
!K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Rd(t.httpClient || new kd(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
4281
4284
|
}
|
|
4282
4285
|
async start(e) {
|
|
4283
|
-
if (e = e || se.Binary,
|
|
4286
|
+
if (e = e || se.Binary, Y.isIn(e, se, "transferFormat"), this._logger.log(g.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
|
|
4284
4287
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
4285
4288
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
4286
4289
|
const t = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -4324,8 +4327,8 @@ class Nd {
|
|
|
4324
4327
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
4325
4328
|
try {
|
|
4326
4329
|
if (this._options.skipNegotiation)
|
|
4327
|
-
if (this._options.transport ===
|
|
4328
|
-
this.transport = this._constructTransport(
|
|
4330
|
+
if (this._options.transport === X.WebSockets)
|
|
4331
|
+
this.transport = this._constructTransport(X.WebSockets), await this._startTransport(t, e);
|
|
4329
4332
|
else
|
|
4330
4333
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
4331
4334
|
else {
|
|
@@ -4401,7 +4404,7 @@ class Nd {
|
|
|
4401
4404
|
await this._startTransport(s, r), this.connectionId = c.connectionId;
|
|
4402
4405
|
return;
|
|
4403
4406
|
} catch (A) {
|
|
4404
|
-
if (this._logger.log(g.Error, `Failed to start the transport '${i.transport}': ${A}`), c = void 0, a.push(new gd(`${i.transport} failed: ${A}`,
|
|
4407
|
+
if (this._logger.log(g.Error, `Failed to start the transport '${i.transport}': ${A}`), c = void 0, a.push(new gd(`${i.transport} failed: ${A}`, X[i.transport])), this._connectionState !== "Connecting") {
|
|
4405
4408
|
const p = "Failed to select transport before stop() was called.";
|
|
4406
4409
|
return this._logger.log(g.Debug, p), Promise.reject(new ve(p));
|
|
4407
4410
|
}
|
|
@@ -4412,15 +4415,15 @@ class Nd {
|
|
|
4412
4415
|
}
|
|
4413
4416
|
_constructTransport(e) {
|
|
4414
4417
|
switch (e) {
|
|
4415
|
-
case
|
|
4418
|
+
case X.WebSockets:
|
|
4416
4419
|
if (!this._options.WebSocket)
|
|
4417
4420
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
4418
4421
|
return new Hd(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
4419
|
-
case
|
|
4422
|
+
case X.ServerSentEvents:
|
|
4420
4423
|
if (!this._options.EventSource)
|
|
4421
4424
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
4422
4425
|
return new jd(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
4423
|
-
case
|
|
4426
|
+
case X.LongPolling:
|
|
4424
4427
|
return new Ao(this._httpClient, this._logger, this._options);
|
|
4425
4428
|
default:
|
|
4426
4429
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -4443,23 +4446,23 @@ class Nd {
|
|
|
4443
4446
|
} : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, t);
|
|
4444
4447
|
}
|
|
4445
4448
|
_resolveTransportOrError(e, t, o, r) {
|
|
4446
|
-
const s =
|
|
4449
|
+
const s = X[e.transport];
|
|
4447
4450
|
if (s == null)
|
|
4448
4451
|
return this._logger.log(g.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.`);
|
|
4449
4452
|
if (Ud(t, s))
|
|
4450
4453
|
if (e.transferFormats.map((l) => se[l]).indexOf(o) >= 0) {
|
|
4451
|
-
if (s ===
|
|
4452
|
-
return this._logger.log(g.Debug, `Skipping transport '${
|
|
4453
|
-
this._logger.log(g.Debug, `Selecting transport '${
|
|
4454
|
+
if (s === X.WebSockets && !this._options.WebSocket || s === X.ServerSentEvents && !this._options.EventSource)
|
|
4455
|
+
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it is not supported in your environment.'`), new fd(`'${X[s]}' is not supported in your environment.`, s);
|
|
4456
|
+
this._logger.log(g.Debug, `Selecting transport '${X[s]}'.`);
|
|
4454
4457
|
try {
|
|
4455
|
-
return this.features.reconnect = s ===
|
|
4458
|
+
return this.features.reconnect = s === X.WebSockets ? r : void 0, this._constructTransport(s);
|
|
4456
4459
|
} catch (l) {
|
|
4457
4460
|
return l;
|
|
4458
4461
|
}
|
|
4459
4462
|
} else
|
|
4460
|
-
return this._logger.log(g.Debug, `Skipping transport '${
|
|
4463
|
+
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${X[s]}' does not support ${se[o]}.`);
|
|
4461
4464
|
else
|
|
4462
|
-
return this._logger.log(g.Debug, `Skipping transport '${
|
|
4465
|
+
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it was disabled by the client.`), new hd(`'${X[s]}' is disabled by the client.`, s);
|
|
4463
4466
|
}
|
|
4464
4467
|
_isITransport(e) {
|
|
4465
4468
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -4502,10 +4505,10 @@ function Ud(n, e) {
|
|
|
4502
4505
|
}
|
|
4503
4506
|
class wn {
|
|
4504
4507
|
constructor(e) {
|
|
4505
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
4508
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new ht(), this._transportResult = new ht(), this._sendLoopPromise = this._sendLoop();
|
|
4506
4509
|
}
|
|
4507
4510
|
send(e) {
|
|
4508
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
4511
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new ht()), this._transportResult.promise;
|
|
4509
4512
|
}
|
|
4510
4513
|
stop() {
|
|
4511
4514
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -4521,7 +4524,7 @@ class wn {
|
|
|
4521
4524
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
4522
4525
|
break;
|
|
4523
4526
|
}
|
|
4524
|
-
this._sendBufferedData = new
|
|
4527
|
+
this._sendBufferedData = new ht();
|
|
4525
4528
|
const e = this._transportResult;
|
|
4526
4529
|
this._transportResult = void 0;
|
|
4527
4530
|
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : wn._concatBuffers(this._buffer);
|
|
@@ -4541,7 +4544,7 @@ class wn {
|
|
|
4541
4544
|
return o.buffer;
|
|
4542
4545
|
}
|
|
4543
4546
|
}
|
|
4544
|
-
class
|
|
4547
|
+
class ht {
|
|
4545
4548
|
constructor() {
|
|
4546
4549
|
this.promise = new Promise((e, t) => [this._resolver, this._rejecter] = [e, t]);
|
|
4547
4550
|
}
|
|
@@ -4653,17 +4656,17 @@ function zd(n) {
|
|
|
4653
4656
|
}
|
|
4654
4657
|
class Vd {
|
|
4655
4658
|
configureLogging(e) {
|
|
4656
|
-
if (
|
|
4659
|
+
if (Y.isRequired(e, "logging"), qd(e))
|
|
4657
4660
|
this.logger = e;
|
|
4658
4661
|
else if (typeof e == "string") {
|
|
4659
4662
|
const t = zd(e);
|
|
4660
|
-
this.logger = new
|
|
4663
|
+
this.logger = new Ct(t);
|
|
4661
4664
|
} else
|
|
4662
|
-
this.logger = new
|
|
4665
|
+
this.logger = new Ct(e);
|
|
4663
4666
|
return this;
|
|
4664
4667
|
}
|
|
4665
4668
|
withUrl(e, t) {
|
|
4666
|
-
return
|
|
4669
|
+
return Y.isRequired(e, "url"), Y.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
|
|
4667
4670
|
...this.httpConnectionOptions,
|
|
4668
4671
|
transport: t
|
|
4669
4672
|
}, this;
|
|
@@ -4673,7 +4676,7 @@ class Vd {
|
|
|
4673
4676
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
4674
4677
|
*/
|
|
4675
4678
|
withHubProtocol(e) {
|
|
4676
|
-
return
|
|
4679
|
+
return Y.isRequired(e, "protocol"), this.protocol = e, this;
|
|
4677
4680
|
}
|
|
4678
4681
|
withAutomaticReconnect(e) {
|
|
4679
4682
|
if (this.reconnectPolicy)
|
|
@@ -4685,14 +4688,14 @@ class Vd {
|
|
|
4685
4688
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
4686
4689
|
*/
|
|
4687
4690
|
withServerTimeout(e) {
|
|
4688
|
-
return
|
|
4691
|
+
return Y.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
4689
4692
|
}
|
|
4690
4693
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
4691
4694
|
*
|
|
4692
4695
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
4693
4696
|
*/
|
|
4694
4697
|
withKeepAliveInterval(e) {
|
|
4695
|
-
return
|
|
4698
|
+
return Y.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
4696
4699
|
}
|
|
4697
4700
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
4698
4701
|
*
|
|
@@ -4720,23 +4723,23 @@ let { baseURL: Kd } = He();
|
|
|
4720
4723
|
const Gd = () => {
|
|
4721
4724
|
const n = new Vd().withUrl(`${Kd}/api/tool/event-bus`, {
|
|
4722
4725
|
skipNegotiation: !0,
|
|
4723
|
-
transport:
|
|
4726
|
+
transport: X.WebSockets
|
|
4724
4727
|
}).withAutomaticReconnect().build();
|
|
4725
4728
|
return n.start().then(() => {
|
|
4726
4729
|
}).catch((e) => {
|
|
4727
4730
|
}), n.onclose((e) => {
|
|
4728
4731
|
}), n.onreconnected(() => {
|
|
4729
4732
|
}), n;
|
|
4730
|
-
},
|
|
4733
|
+
}, Dt = "v1", Xd = je(`/api/graphics-engine/component/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), Zd = je(`/api/portal/manager/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), Yd = je(`/api/speech-base/speech/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), vo = Xd.get("/component/client/heartbeat"), ep = Zd.get("/basics/by-alias");
|
|
4731
4734
|
Yd.post("/control/callBack");
|
|
4732
|
-
const tp = je(`/api/tool/event-bus/${
|
|
4733
|
-
const n = on(), { entryApp: e } =
|
|
4735
|
+
const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.get("/permissionset/application"), op = () => {
|
|
4736
|
+
const n = on(), { entryApp: e } = _t.hooks.useEntryApp(), { entryMenu: t } = _t.hooks.useEntryMenu();
|
|
4734
4737
|
let o = null;
|
|
4735
4738
|
return Qe(async () => {
|
|
4736
4739
|
var d;
|
|
4737
4740
|
let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: s = !0 } = n.query;
|
|
4738
4741
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
4739
|
-
await
|
|
4742
|
+
await St();
|
|
4740
4743
|
const a = (m) => {
|
|
4741
4744
|
try {
|
|
4742
4745
|
return JSON.parse(m);
|
|
@@ -4826,10 +4829,10 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4826
4829
|
}, 5e3), w.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
4827
4830
|
};
|
|
4828
4831
|
window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
|
|
4829
|
-
}),
|
|
4832
|
+
}), It(() => {
|
|
4830
4833
|
o && clearInterval(o);
|
|
4831
4834
|
}), {};
|
|
4832
|
-
},
|
|
4835
|
+
}, $t = "v1", rp = Xe(`/api/fms/report/${$t}`), bn = Xe(`/api/emergency/manage/${$t}`), sp = rn.get("/permissionset/user-portal-menu"), Ar = Xe(`/api/alarm/config/${$t}`), ip = Xe(`/api/alarm/run-time/${$t}`), ap = Ar.get("/alarm-definition/status-option"), cp = ip.post("/record/handling"), lp = Ar.get("/alarm-level/prompttone"), up = rp.get("/alarm/rule/list"), dp = Eo.get("/controller/space-children-all-type"), pp = Eo.get("/controller/fuzzy-area-small"), fp = bn.get("/emergency-event/event/type"), hp = bn.get("/emergency-event/event/level"), gp = bn.get("/emergency-plan/plan/handle-time"), Ap = { class: "handle-alarm-container" }, mp = { class: "select-check" }, vp = { class: "form-box" }, yp = { class: "select-check" }, _p = { style: { "margin-left": "8px" } }, wp = { class: "foot-btn-box" }, bp = {
|
|
4833
4836
|
name: "handleAlarm"
|
|
4834
4837
|
}, Cp = /* @__PURE__ */ pe({
|
|
4835
4838
|
...bp,
|
|
@@ -4907,7 +4910,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4907
4910
|
$.value = I.data.filter((k) => k.status), $.value.length > 0 && (i.value.workOrderRules = $.value[0].id);
|
|
4908
4911
|
};
|
|
4909
4912
|
re(c, (O) => {
|
|
4910
|
-
O || (
|
|
4913
|
+
O || (G(), Oe());
|
|
4911
4914
|
}), re(
|
|
4912
4915
|
B,
|
|
4913
4916
|
(O) => {
|
|
@@ -4928,15 +4931,15 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4928
4931
|
u.value.reportTheme = "";
|
|
4929
4932
|
}, Te = (O, I) => {
|
|
4930
4933
|
I.length > 0 && (f.value = I[0].path), i.value.reportPosition = O, _.value = "";
|
|
4931
|
-
}, ft = (O) => {
|
|
4932
|
-
O && (u.value.reportPosition = "", f.value = ""), O ? (i.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, f.value = "", d.value = "请选择");
|
|
4933
4934
|
}, oe = (O) => {
|
|
4935
|
+
O && (u.value.reportPosition = "", f.value = ""), O ? (i.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, f.value = "", d.value = "请选择");
|
|
4936
|
+
}, ne = (O) => {
|
|
4934
4937
|
O && (u.value.reportTheme = ""), O ? (i.value.reportTheme = "", m.value = "告警对象") : (i.value.reportTheme = "", m.value = "请输入");
|
|
4935
|
-
},
|
|
4938
|
+
}, G = () => {
|
|
4936
4939
|
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 = "";
|
|
4937
|
-
},
|
|
4940
|
+
}, Oe = () => {
|
|
4938
4941
|
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, B.value = !0, P.value = !0, C.value = !0, i.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], h.value = [];
|
|
4939
|
-
},
|
|
4942
|
+
}, Lt = (O) => {
|
|
4940
4943
|
O == "eventTypeId" && (i.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (A.value = !0, i.value.timeLimit = "") : A.value = !1);
|
|
4941
4944
|
}, mr = async () => {
|
|
4942
4945
|
const [O, I] = await fp().run();
|
|
@@ -4948,9 +4951,9 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4948
4951
|
}, [I, k] = await hp(O).run();
|
|
4949
4952
|
if (I) return {};
|
|
4950
4953
|
const Ae = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
4951
|
-
h.value = k.map((
|
|
4952
|
-
id: `${
|
|
4953
|
-
name: Ae[
|
|
4954
|
+
h.value = k.map((ft) => ({
|
|
4955
|
+
id: `${ft}`,
|
|
4956
|
+
name: Ae[ft] ? Ae[ft] : ft
|
|
4954
4957
|
})), k.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, In());
|
|
4955
4958
|
}, In = async () => {
|
|
4956
4959
|
const O = {
|
|
@@ -4960,7 +4963,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4960
4963
|
if (I) return {};
|
|
4961
4964
|
i.value.interval = k.handleTimeUnit, k.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = k.handleTime;
|
|
4962
4965
|
}, vr = (O) => {
|
|
4963
|
-
|
|
4966
|
+
G();
|
|
4964
4967
|
}, yr = async () => {
|
|
4965
4968
|
const O = {
|
|
4966
4969
|
logic: !1,
|
|
@@ -5035,7 +5038,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5035
5038
|
}, {
|
|
5036
5039
|
header: M(() => [
|
|
5037
5040
|
ue(
|
|
5038
|
-
|
|
5041
|
+
Z(v(Q)("告警处理").value),
|
|
5039
5042
|
1
|
|
5040
5043
|
/* TEXT */
|
|
5041
5044
|
)
|
|
@@ -5048,7 +5051,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5048
5051
|
}, {
|
|
5049
5052
|
default: M(() => [
|
|
5050
5053
|
ue(
|
|
5051
|
-
|
|
5054
|
+
Z(v(Q)("取消").value),
|
|
5052
5055
|
1
|
|
5053
5056
|
/* TEXT */
|
|
5054
5057
|
)
|
|
@@ -5062,7 +5065,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5062
5065
|
}, {
|
|
5063
5066
|
default: M(() => [
|
|
5064
5067
|
ue(
|
|
5065
|
-
|
|
5068
|
+
Z(v(Q)("结束处理").value),
|
|
5066
5069
|
1
|
|
5067
5070
|
/* TEXT */
|
|
5068
5071
|
)
|
|
@@ -5077,7 +5080,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5077
5080
|
}, {
|
|
5078
5081
|
default: M(() => [
|
|
5079
5082
|
ue(
|
|
5080
|
-
|
|
5083
|
+
Z(v(Q)("继续处理").value),
|
|
5081
5084
|
1
|
|
5082
5085
|
/* TEXT */
|
|
5083
5086
|
)
|
|
@@ -5207,12 +5210,12 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5207
5210
|
modelValue: B.value,
|
|
5208
5211
|
"onUpdate:modelValue": I[12] || (I[12] = (k) => B.value = k),
|
|
5209
5212
|
checkboxType: "default",
|
|
5210
|
-
onChange:
|
|
5213
|
+
onChange: oe,
|
|
5211
5214
|
size: "middle"
|
|
5212
5215
|
}, {
|
|
5213
5216
|
default: M(() => [
|
|
5214
5217
|
ue(
|
|
5215
|
-
|
|
5218
|
+
Z(v(Q)("告警对象位置").value),
|
|
5216
5219
|
1
|
|
5217
5220
|
/* TEXT */
|
|
5218
5221
|
)
|
|
@@ -5249,12 +5252,12 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5249
5252
|
modelValue: P.value,
|
|
5250
5253
|
"onUpdate:modelValue": I[15] || (I[15] = (k) => P.value = k),
|
|
5251
5254
|
checkboxType: "default",
|
|
5252
|
-
onChange:
|
|
5255
|
+
onChange: ne,
|
|
5253
5256
|
size: "middle"
|
|
5254
5257
|
}, {
|
|
5255
5258
|
default: M(() => [
|
|
5256
5259
|
ue(
|
|
5257
|
-
|
|
5260
|
+
Z(v(Q)("告警对象").value),
|
|
5258
5261
|
1
|
|
5259
5262
|
/* TEXT */
|
|
5260
5263
|
)
|
|
@@ -5301,7 +5304,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5301
5304
|
"get-popup-container": F,
|
|
5302
5305
|
marginBottom: "30px",
|
|
5303
5306
|
marginRight: "0",
|
|
5304
|
-
onChange: I[21] || (I[21] = (k) =>
|
|
5307
|
+
onChange: I[21] || (I[21] = (k) => Lt("eventTypeId"))
|
|
5305
5308
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5306
5309
|
i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
|
|
5307
5310
|
key: 7,
|
|
@@ -5319,7 +5322,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5319
5322
|
"get-popup-container": F,
|
|
5320
5323
|
marginBottom: "30px",
|
|
5321
5324
|
marginRight: "0",
|
|
5322
|
-
onChange: I[24] || (I[24] = (k) =>
|
|
5325
|
+
onChange: I[24] || (I[24] = (k) => Lt("eventLevelId"))
|
|
5323
5326
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5324
5327
|
i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
|
|
5325
5328
|
key: 8,
|
|
@@ -5351,7 +5354,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5351
5354
|
"border-type": "underline",
|
|
5352
5355
|
size: "small",
|
|
5353
5356
|
"get-popup-container": F,
|
|
5354
|
-
onChange: I[26] || (I[26] = (k) =>
|
|
5357
|
+
onChange: I[26] || (I[26] = (k) => Lt("interval")),
|
|
5355
5358
|
placeholder: "请选择"
|
|
5356
5359
|
}, null, 8, ["modelValue", "options"])
|
|
5357
5360
|
])
|
|
@@ -5380,7 +5383,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5380
5383
|
}), Ip = /* @__PURE__ */ Ee(Cp, [["__scopeId", "data-v-1ecf3324"]]), Ep = (n, e, t) => ({
|
|
5381
5384
|
handleAlarmVue: () => fe(Ip, {
|
|
5382
5385
|
handerIds: e.value,
|
|
5383
|
-
projectId:
|
|
5386
|
+
projectId: Et().id,
|
|
5384
5387
|
ref: n,
|
|
5385
5388
|
onEmitFn: (r, s) => {
|
|
5386
5389
|
}
|
|
@@ -5421,7 +5424,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5421
5424
|
x(
|
|
5422
5425
|
"div",
|
|
5423
5426
|
Pp,
|
|
5424
|
-
|
|
5427
|
+
Z(v(Q)("新告警").value),
|
|
5425
5428
|
1
|
|
5426
5429
|
/* TEXT */
|
|
5427
5430
|
)
|
|
@@ -5442,7 +5445,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5442
5445
|
x(
|
|
5443
5446
|
"div",
|
|
5444
5447
|
Dp,
|
|
5445
|
-
|
|
5448
|
+
Z(v(Q)("告警等级:").value),
|
|
5446
5449
|
1
|
|
5447
5450
|
/* TEXT */
|
|
5448
5451
|
),
|
|
@@ -5452,7 +5455,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5452
5455
|
class: "alarm-msg-line-right alarm-content-object",
|
|
5453
5456
|
style: Sn({ color: a.msgItem.color })
|
|
5454
5457
|
},
|
|
5455
|
-
|
|
5458
|
+
Z(a.msgItem.alarmLevelName || ""),
|
|
5456
5459
|
5
|
|
5457
5460
|
/* TEXT, STYLE */
|
|
5458
5461
|
)
|
|
@@ -5461,14 +5464,14 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5461
5464
|
x(
|
|
5462
5465
|
"div",
|
|
5463
5466
|
Lp,
|
|
5464
|
-
|
|
5467
|
+
Z(v(Q)("告警对象:").value),
|
|
5465
5468
|
1
|
|
5466
5469
|
/* TEXT */
|
|
5467
5470
|
),
|
|
5468
5471
|
x(
|
|
5469
5472
|
"div",
|
|
5470
5473
|
xp,
|
|
5471
|
-
|
|
5474
|
+
Z(a.msgItem.equipmentName || ""),
|
|
5472
5475
|
1
|
|
5473
5476
|
/* TEXT */
|
|
5474
5477
|
)
|
|
@@ -5477,14 +5480,14 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5477
5480
|
x(
|
|
5478
5481
|
"div",
|
|
5479
5482
|
Rp,
|
|
5480
|
-
|
|
5483
|
+
Z(v(Q)("告警内容:").value),
|
|
5481
5484
|
1
|
|
5482
5485
|
/* TEXT */
|
|
5483
5486
|
),
|
|
5484
5487
|
x(
|
|
5485
5488
|
"div",
|
|
5486
5489
|
Qp,
|
|
5487
|
-
|
|
5490
|
+
Z(a.msgItem.alarmContent || ""),
|
|
5488
5491
|
1
|
|
5489
5492
|
/* TEXT */
|
|
5490
5493
|
)
|
|
@@ -5499,7 +5502,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5499
5502
|
}, {
|
|
5500
5503
|
default: M(() => [
|
|
5501
5504
|
ue(
|
|
5502
|
-
|
|
5505
|
+
Z(v(Q)("设备详情").value),
|
|
5503
5506
|
1
|
|
5504
5507
|
/* TEXT */
|
|
5505
5508
|
)
|
|
@@ -5516,7 +5519,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5516
5519
|
}, {
|
|
5517
5520
|
default: M(() => [
|
|
5518
5521
|
ue(
|
|
5519
|
-
|
|
5522
|
+
Z(v(Q)("处理").value),
|
|
5520
5523
|
1
|
|
5521
5524
|
/* TEXT */
|
|
5522
5525
|
)
|
|
@@ -5567,7 +5570,7 @@ const Fp = () => {
|
|
|
5567
5570
|
var P;
|
|
5568
5571
|
const C = [];
|
|
5569
5572
|
C.push({ alarmId: b.recordId }), r.value = C, (P = t.value) == null || P.open();
|
|
5570
|
-
}, { entryApp: A } =
|
|
5573
|
+
}, { entryApp: A } = _t.hooks.useEntryApp(), p = (b) => {
|
|
5571
5574
|
So(b.equipmentCode, b.equipmentPanelCode);
|
|
5572
5575
|
}, { handleAlarmVue: h } = Ep(t, r), S = async () => {
|
|
5573
5576
|
var P;
|
|
@@ -5581,7 +5584,7 @@ const Fp = () => {
|
|
|
5581
5584
|
}, d = (b) => {
|
|
5582
5585
|
if (!b) return;
|
|
5583
5586
|
const C = Up();
|
|
5584
|
-
|
|
5587
|
+
vt.open({
|
|
5585
5588
|
key: C,
|
|
5586
5589
|
class: "alarm-notify",
|
|
5587
5590
|
message: Q("新告警").value,
|
|
@@ -5669,8 +5672,8 @@ const Fp = () => {
|
|
|
5669
5672
|
setup(n) {
|
|
5670
5673
|
const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Fp();
|
|
5671
5674
|
return Qe(async () => {
|
|
5672
|
-
await
|
|
5673
|
-
}),
|
|
5675
|
+
await St(), t();
|
|
5676
|
+
}), It(() => {
|
|
5674
5677
|
e.value && e.value.disconnect(), e.value = null;
|
|
5675
5678
|
}), (a, l) => (N(), de(
|
|
5676
5679
|
We,
|
|
@@ -5694,7 +5697,7 @@ const Fp = () => {
|
|
|
5694
5697
|
}), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */ pe({
|
|
5695
5698
|
__name: "index",
|
|
5696
5699
|
setup(n) {
|
|
5697
|
-
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode:
|
|
5700
|
+
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode: bt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = gu(), { innerPage: l, commandList: c, initNextTick: i } = Au(a);
|
|
5698
5701
|
bu(l, a, i), wu(), yu(), Su();
|
|
5699
5702
|
const { $changePwd: u, $personSetDialog: A } = Cu(), { changeEnterprisesVisible: p, userId: h, tenantId: S, changeEnterprise: w } = dr();
|
|
5700
5703
|
vu();
|
|
@@ -5752,15 +5755,15 @@ E("@das-fed/web");
|
|
|
5752
5755
|
const Kp = [
|
|
5753
5756
|
{
|
|
5754
5757
|
path: Ie,
|
|
5755
|
-
component: () => import("./index-
|
|
5758
|
+
component: () => import("./index-C2gtyFHH.js")
|
|
5756
5759
|
},
|
|
5757
5760
|
{
|
|
5758
5761
|
path: Je,
|
|
5759
|
-
component: () => import("./index-
|
|
5762
|
+
component: () => import("./index-BYJ_iw6e.js")
|
|
5760
5763
|
},
|
|
5761
5764
|
{
|
|
5762
5765
|
path: Bo,
|
|
5763
|
-
component: () => import("./index-
|
|
5766
|
+
component: () => import("./index-FJjkdoP_.js")
|
|
5764
5767
|
}
|
|
5765
5768
|
], Hf = {
|
|
5766
5769
|
routes: Kp,
|
|
@@ -5770,7 +5773,7 @@ const Kp = [
|
|
|
5770
5773
|
},
|
|
5771
5774
|
hooks: {
|
|
5772
5775
|
useEntryApp: et,
|
|
5773
|
-
useEntryMenu:
|
|
5776
|
+
useEntryMenu: Bt
|
|
5774
5777
|
}
|
|
5775
5778
|
};
|
|
5776
5779
|
export {
|
|
@@ -5780,7 +5783,7 @@ export {
|
|
|
5780
5783
|
ao as b,
|
|
5781
5784
|
qe as c,
|
|
5782
5785
|
Wt as d,
|
|
5783
|
-
|
|
5786
|
+
gt as e,
|
|
5784
5787
|
ee as l,
|
|
5785
5788
|
Hf as m,
|
|
5786
5789
|
et as u
|