@das-fed/web 6.4.0-dev.24 → 6.4.0-dev.26
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-zGHBkieQ.js → index-7q45xJ0u.js} +1 -1
- package/{packages/main-app-framework/index-B0_wDXgo.js → index-B53IGh_C.js} +1 -1
- package/index-B53IGh_C.js.gz +0 -0
- package/{index-zb-EUWP3.js → index-C4euhyNr.js} +514 -514
- package/index-C4euhyNr.js.gz +0 -0
- package/{index--hc7ELMA.js → index-DFQjHvMm.js} +1 -1
- package/index-DFQjHvMm.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +24 -24
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-D4rajFxT.js → index-BqeJZoEJ.js} +303 -303
- package/packages/main-app-framework/index-BqeJZoEJ.js.gz +0 -0
- package/{index-clvzgAFf.js → packages/main-app-framework/index-DBjwQZqL.js} +1 -1
- package/packages/main-app-framework/index-DBjwQZqL.js.gz +0 -0
- package/packages/main-app-framework/{index-f5pYmnKV.js → index-DyeXA7YK.js} +1 -1
- package/packages/main-app-framework/{index-DFNYnsJI.js → index-J2C2DUqZ.js} +1 -1
- package/packages/main-app-framework/index-J2C2DUqZ.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index--hc7ELMA.js.gz +0 -0
- package/index-clvzgAFf.js.gz +0 -0
- package/index-zb-EUWP3.js.gz +0 -0
- package/packages/main-app-framework/index-B0_wDXgo.js.gz +0 -0
- package/packages/main-app-framework/index-D4rajFxT.js.gz +0 -0
- package/packages/main-app-framework/index-DFNYnsJI.js.gz +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
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 pe, createVNode as Q, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as fe, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as ws, getCurrentInstance as _s, onActivated as bs, createTextVNode as Ae, toDisplayString as se, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as le, toRefs as Is, isRef as Ts } from "vue";
|
|
2
2
|
import { initTheme as Es, setThemeRule as Ss } from "@das-fed/web/packages/theme/index";
|
|
3
3
|
import { initI18n as ks, i18n as N } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as R } from "@das-fed/web/packages/layout/index";
|
|
5
5
|
import { createPinia as Ps } from "pinia";
|
|
6
6
|
import Ls from "pinia-plugin-persistedstate";
|
|
7
7
|
import { createRouter as $s, createWebHistory as Ds, useRouter as Ye, useRoute as Dt } from "vue-router";
|
|
8
|
-
import { DasChangePwdRef as
|
|
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
|
-
import { pureImageSrc as
|
|
10
|
+
import { pureImageSrc as On } from "@das-fed/utils/pure-image-src";
|
|
11
11
|
import { DasNotification as Wt } from "@das-fed/ui/packages/components/notification/index";
|
|
12
|
-
import { flatTree as
|
|
13
|
-
import { getSubApps as J, getTabInfo as me, getPersonalInfo as Yt, getTenantInfo as
|
|
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 me, getPersonalInfo as Yt, getTenantInfo as Mn, getProjectInfo as Fe, getToken as Bn, getUserInfo as cr, getMenus as zt } from "@das-fed/utils/common-info";
|
|
14
14
|
import { setProcessEngineProject as lr, setProcessEngineToken as ur } from "@das-fed/utils/process-engine-info";
|
|
15
15
|
import { oauthServer as dr, justauth as Rn, enterpriseright as xn, iotModules as Fs, portal as We, systemConfiguration as Qn } from "@das-fed/utils/api-services/modules";
|
|
16
16
|
import { createService as et } from "@das-fed/utils/create-api-service";
|
|
@@ -19,10 +19,10 @@ import { systemConfiguration as Ws, enterpriseright as jn, createService as ft,
|
|
|
19
19
|
import { getConfig as tt } from "@das-fed/utils/config";
|
|
20
20
|
import Cn from "dayjs";
|
|
21
21
|
import { getAccessToken as zs, removeAccessToken as qs } from "@das-fed/utils/token-tools";
|
|
22
|
-
import { microFrontend as ye } from "@das-fed/web/packages/micro-frontend/index";
|
|
23
22
|
import { DasDialog as Nn } from "@das-fed/ui/packages/components/dialog/index";
|
|
24
23
|
import { DasButton as Ue } from "@das-fed/ui/packages/components/button/index";
|
|
25
24
|
import { vDasTooltip as Js } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
25
|
+
import { microFrontend as Le } from "@das-fed/web/packages/micro-frontend/index";
|
|
26
26
|
import { tokenStorage as Ks } from "@das-fed/utils/create-api-service/sso";
|
|
27
27
|
import { setPersonalInfo as Gs } from "@das-fed/utils/common-info/set-personal-info";
|
|
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";
|
|
@@ -41,7 +41,7 @@ import { DasTreeSelect as sa } from "@das-fed/ui/packages/components/tree-select
|
|
|
41
41
|
import { DasInput as po } from "@das-fed/ui/packages/components/input/index";
|
|
42
42
|
import { DasCheckbox as fo } from "@das-fed/ui/packages/components/checkbox/index";
|
|
43
43
|
import { DasForm as aa } from "@das-fed/ui/packages/components/form/index";
|
|
44
|
-
import { DasFormItem as
|
|
44
|
+
import { DasFormItem as Me } from "@das-fed/ui/packages/components/form-item/index";
|
|
45
45
|
import { flatTree as ia } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
46
46
|
import { setHtmlMinWH as ca } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
47
47
|
import { createCeNav as la, createCeTabs as ua, createCeMenu as da } from "@das-fed/web-components/das-web-app";
|
|
@@ -117,7 +117,7 @@ const fa = (t) => {
|
|
|
117
117
|
}, Ng = () => Jt, it = E("light"), yt = E({
|
|
118
118
|
light: {},
|
|
119
119
|
dark: {}
|
|
120
|
-
}),
|
|
120
|
+
}), wt = E({
|
|
121
121
|
light: {},
|
|
122
122
|
dark: {}
|
|
123
123
|
}), va = "dasTheme", bt = "das-theme", Aa = (t) => {
|
|
@@ -159,7 +159,7 @@ const go = (t, e) => {
|
|
|
159
159
|
const l = a[c], i = `${bt}-${s}`;
|
|
160
160
|
n.insertRule(`.${i} { ${c}:${l} } `, n.cssRules.length);
|
|
161
161
|
}
|
|
162
|
-
e === "global" && (
|
|
162
|
+
e === "global" && (wt.value[s] || (wt.value[s] = {}), wt.value[s] = { ...wt.value[s], ...a }), e === "custom" && (yt.value[s] || (yt.value[s] = {}), yt.value[s] = { ...yt.value[s], ...a });
|
|
163
163
|
}
|
|
164
164
|
const r = `${bt}-${it.value}`;
|
|
165
165
|
document.body.classList.contains(r) || document.body.classList.add(r);
|
|
@@ -174,10 +174,10 @@ const go = (t, e) => {
|
|
|
174
174
|
}), Object.values(n).filter((s) => !!s).flat().map((s) => go(s));
|
|
175
175
|
}, Ug = (t) => {
|
|
176
176
|
document.body.classList.add(`${bt}-light`), t === "light" && document.body.classList.remove(`${bt}-${it.value}`), it.value = t, document.body.classList.add(`${bt}-${it.value}`);
|
|
177
|
-
},
|
|
177
|
+
}, wa = (t) => H(() => {
|
|
178
178
|
var e, n, o, r;
|
|
179
|
-
return ((n = (e =
|
|
180
|
-
}), Fg = (t) => `var(${t})`, Vg =
|
|
179
|
+
return ((n = (e = wt.value) == null ? void 0 : e[it.value]) == null ? void 0 : n[t]) || ((r = (o = yt.value) == null ? void 0 : o[it.value]) == null ? void 0 : r[t]) || t;
|
|
180
|
+
}), Fg = (t) => `var(${t})`, Vg = wa, X = Ne({
|
|
181
181
|
visible: !1,
|
|
182
182
|
logo: "",
|
|
183
183
|
items: [],
|
|
@@ -188,7 +188,7 @@ const go = (t, e) => {
|
|
|
188
188
|
// activeItem: '',
|
|
189
189
|
// activeProject: {},
|
|
190
190
|
eventListeners: {}
|
|
191
|
-
}),
|
|
191
|
+
}), _a = {
|
|
192
192
|
show: () => {
|
|
193
193
|
X.visible = !0;
|
|
194
194
|
},
|
|
@@ -368,12 +368,12 @@ const go = (t, e) => {
|
|
|
368
368
|
remove: o
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
},
|
|
371
|
+
}, _t = Ne({
|
|
372
372
|
eventListeners: {}
|
|
373
373
|
}), Ia = {
|
|
374
374
|
triggerEventListener: (t, e, n) => {
|
|
375
375
|
var a;
|
|
376
|
-
const o =
|
|
376
|
+
const o = _t.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
|
|
377
377
|
for (const c in o) {
|
|
378
378
|
const l = o[c];
|
|
379
379
|
l.type === t && s.push(
|
|
@@ -386,9 +386,9 @@ const go = (t, e) => {
|
|
|
386
386
|
},
|
|
387
387
|
addEventListener: (t, e) => {
|
|
388
388
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), o = () => {
|
|
389
|
-
|
|
389
|
+
_t.eventListeners[n] && delete _t.eventListeners[n];
|
|
390
390
|
};
|
|
391
|
-
return
|
|
391
|
+
return _t.eventListeners[n] = {
|
|
392
392
|
type: t,
|
|
393
393
|
handler: async (r) => {
|
|
394
394
|
try {
|
|
@@ -414,10 +414,10 @@ const go = (t, e) => {
|
|
|
414
414
|
menu: Re,
|
|
415
415
|
tab: we,
|
|
416
416
|
overlay: Tn,
|
|
417
|
-
iframeView:
|
|
417
|
+
iframeView: _t,
|
|
418
418
|
visible: E(!0)
|
|
419
419
|
}, q = {
|
|
420
|
-
nav:
|
|
420
|
+
nav: _a,
|
|
421
421
|
menu: ba,
|
|
422
422
|
tab: Ca,
|
|
423
423
|
overlay: Ta,
|
|
@@ -498,7 +498,7 @@ const go = (t, e) => {
|
|
|
498
498
|
($(!0), W(
|
|
499
499
|
De,
|
|
500
500
|
null,
|
|
501
|
-
Tt(a.value, ({ path: h, meta: b }) =>
|
|
501
|
+
Tt(a.value, ({ path: h, meta: b }) => Ie(($(), W("div", {
|
|
502
502
|
class: "das-iframe-router-view",
|
|
503
503
|
key: h,
|
|
504
504
|
name: h
|
|
@@ -507,7 +507,7 @@ const go = (t, e) => {
|
|
|
507
507
|
key: b.key
|
|
508
508
|
}))
|
|
509
509
|
], 8, Ea)), [
|
|
510
|
-
[
|
|
510
|
+
[Pe, b.componentInstance && h === m(r).path]
|
|
511
511
|
])),
|
|
512
512
|
128
|
|
513
513
|
/* KEYED_FRAGMENT */
|
|
@@ -522,7 +522,7 @@ const go = (t, e) => {
|
|
|
522
522
|
f.needTransition ? j("v-if", !0) : ($(!0), W(
|
|
523
523
|
De,
|
|
524
524
|
{ key: 1 },
|
|
525
|
-
Tt(a.value, ({ path: h, meta: b }) =>
|
|
525
|
+
Tt(a.value, ({ path: h, meta: b }) => Ie(($(), W("div", {
|
|
526
526
|
class: "das-iframe-router-view",
|
|
527
527
|
key: h,
|
|
528
528
|
name: h
|
|
@@ -531,7 +531,7 @@ const go = (t, e) => {
|
|
|
531
531
|
key: b.key
|
|
532
532
|
}))
|
|
533
533
|
], 8, Sa)), [
|
|
534
|
-
[
|
|
534
|
+
[Pe, b.componentInstance && h === m(r).path]
|
|
535
535
|
])),
|
|
536
536
|
128
|
|
537
537
|
/* KEYED_FRAGMENT */
|
|
@@ -541,18 +541,18 @@ const go = (t, e) => {
|
|
|
541
541
|
/* STABLE_FRAGMENT */
|
|
542
542
|
));
|
|
543
543
|
}
|
|
544
|
-
}),
|
|
544
|
+
}), be = (t, e) => {
|
|
545
545
|
const n = t.__vccOpts || t;
|
|
546
546
|
for (const [o, r] of e)
|
|
547
547
|
n[o] = r;
|
|
548
548
|
return n;
|
|
549
|
-
}, Pa = /* @__PURE__ */
|
|
549
|
+
}, Pa = /* @__PURE__ */ be(ka, [["__scopeId", "data-v-3c2c943c"]]), La = { class: "das-web-app-container" }, $a = {
|
|
550
550
|
key: 0,
|
|
551
551
|
class: "das-web-app-header"
|
|
552
|
-
}, Da = { class: "das-web-app-main" },
|
|
552
|
+
}, Da = { class: "das-web-app-main" }, Oa = {
|
|
553
553
|
key: 0,
|
|
554
554
|
class: "aside"
|
|
555
|
-
},
|
|
555
|
+
}, Ma = { class: "das-web-app-main-container" }, Ba = {
|
|
556
556
|
key: 0,
|
|
557
557
|
class: "tab"
|
|
558
558
|
}, Ra = { class: "das-web-app-main-content" }, xa = { class: "banner" }, Qa = { class: "das-web-app-main-router-view" }, ja = { style: { width: "100%", height: "100%" } }, Na = {
|
|
@@ -586,16 +586,16 @@ const go = (t, e) => {
|
|
|
586
586
|
})), d = H(() => Je.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), h = H(() => e.excludeRoutes), b = H(() => e.routeKeepAliveVisible);
|
|
587
587
|
G(
|
|
588
588
|
() => [n.meta, n.query],
|
|
589
|
-
([A,
|
|
589
|
+
([A, _]) => {
|
|
590
590
|
const { showLayout: C = !0, showAside: S = !0, showTabs: P = !0, layout: I = {} } = A, {
|
|
591
591
|
showLayout: T = !0,
|
|
592
592
|
showAside: D = !0,
|
|
593
|
-
showTabs:
|
|
593
|
+
showTabs: O = !0,
|
|
594
594
|
app: F
|
|
595
|
-
} =
|
|
596
|
-
ca(
|
|
597
|
-
let z = !0, ie = !0,
|
|
598
|
-
(C === !1 || T === !1 || T === "false") && (z = !1, ie = !1,
|
|
595
|
+
} = _;
|
|
596
|
+
ca(I);
|
|
597
|
+
let z = !0, ie = !0, Ce = !0;
|
|
598
|
+
(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;
|
|
599
599
|
}
|
|
600
600
|
);
|
|
601
601
|
const y = H(() => ({
|
|
@@ -604,19 +604,19 @@ const go = (t, e) => {
|
|
|
604
604
|
...e.transitionConfig || {}
|
|
605
605
|
}));
|
|
606
606
|
let g = /* @__PURE__ */ new Map();
|
|
607
|
-
const p = (A,
|
|
607
|
+
const p = (A, _) => {
|
|
608
608
|
let C;
|
|
609
|
-
return g.has(
|
|
610
|
-
name:
|
|
609
|
+
return g.has(_) ? C = g.get(_) : (C = {
|
|
610
|
+
name: _,
|
|
611
611
|
render() {
|
|
612
612
|
return fe("div", { style: { width: "100%", height: "100%" } }, [fe(A)]);
|
|
613
613
|
}
|
|
614
|
-
}, g.set(
|
|
614
|
+
}, g.set(_, C)), fe(C);
|
|
615
615
|
}, v = H(() => Je.visible.value);
|
|
616
|
-
return (A,
|
|
616
|
+
return (A, _) => {
|
|
617
617
|
const C = ms("router-view");
|
|
618
618
|
return $(), W("div", La, [
|
|
619
|
-
|
|
619
|
+
Ie(B(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
622
622
|
class: rr(["das-web-app-overlay", f.value]),
|
|
@@ -626,9 +626,9 @@ const go = (t, e) => {
|
|
|
626
626
|
6
|
|
627
627
|
/* CLASS, STYLE */
|
|
628
628
|
), [
|
|
629
|
-
[
|
|
629
|
+
[Pe, v.value]
|
|
630
630
|
]),
|
|
631
|
-
a.value ?
|
|
631
|
+
a.value ? Ie(($(), W(
|
|
632
632
|
"div",
|
|
633
633
|
$a,
|
|
634
634
|
[
|
|
@@ -637,22 +637,22 @@ const go = (t, e) => {
|
|
|
637
637
|
512
|
|
638
638
|
/* NEED_PATCH */
|
|
639
639
|
)), [
|
|
640
|
-
[
|
|
640
|
+
[Pe, v.value]
|
|
641
641
|
]) : j("v-if", !0),
|
|
642
642
|
B("div", Da, [
|
|
643
|
-
c.value ?
|
|
643
|
+
c.value ? Ie(($(), W(
|
|
644
644
|
"div",
|
|
645
|
-
|
|
645
|
+
Oa,
|
|
646
646
|
[
|
|
647
647
|
pe(A.$slots, "aside", {}, void 0, !0)
|
|
648
648
|
],
|
|
649
649
|
512
|
|
650
650
|
/* NEED_PATCH */
|
|
651
651
|
)), [
|
|
652
|
-
[
|
|
652
|
+
[Pe, v.value]
|
|
653
653
|
]) : j("v-if", !0),
|
|
654
|
-
B("div",
|
|
655
|
-
l.value ?
|
|
654
|
+
B("div", Ma, [
|
|
655
|
+
l.value ? Ie(($(), W(
|
|
656
656
|
"div",
|
|
657
657
|
Ba,
|
|
658
658
|
[
|
|
@@ -661,10 +661,10 @@ const go = (t, e) => {
|
|
|
661
661
|
512
|
|
662
662
|
/* NEED_PATCH */
|
|
663
663
|
)), [
|
|
664
|
-
[
|
|
664
|
+
[Pe, v.value]
|
|
665
665
|
]) : j("v-if", !0),
|
|
666
666
|
B("div", Ra, [
|
|
667
|
-
|
|
667
|
+
Ie(B(
|
|
668
668
|
"div",
|
|
669
669
|
xa,
|
|
670
670
|
[
|
|
@@ -673,10 +673,10 @@ const go = (t, e) => {
|
|
|
673
673
|
512
|
|
674
674
|
/* NEED_PATCH */
|
|
675
675
|
), [
|
|
676
|
-
[
|
|
676
|
+
[Pe, v.value]
|
|
677
677
|
]),
|
|
678
678
|
B("div", Qa, [
|
|
679
|
-
|
|
679
|
+
Ie(B(
|
|
680
680
|
"div",
|
|
681
681
|
ja,
|
|
682
682
|
[
|
|
@@ -748,7 +748,7 @@ const go = (t, e) => {
|
|
|
748
748
|
_: 1
|
|
749
749
|
/* STABLE */
|
|
750
750
|
})),
|
|
751
|
-
|
|
751
|
+
Ie(B(
|
|
752
752
|
"div",
|
|
753
753
|
Ua,
|
|
754
754
|
[
|
|
@@ -761,16 +761,16 @@ const go = (t, e) => {
|
|
|
761
761
|
512
|
|
762
762
|
/* NEED_PATCH */
|
|
763
763
|
), [
|
|
764
|
-
[
|
|
764
|
+
[Pe, m(n).meta.isIframe]
|
|
765
765
|
])
|
|
766
766
|
], !0)
|
|
767
767
|
],
|
|
768
768
|
512
|
|
769
769
|
/* NEED_PATCH */
|
|
770
770
|
), [
|
|
771
|
-
[
|
|
771
|
+
[Pe, i.value]
|
|
772
772
|
]),
|
|
773
|
-
|
|
773
|
+
Ie(B(
|
|
774
774
|
"div",
|
|
775
775
|
Fa,
|
|
776
776
|
[
|
|
@@ -779,7 +779,7 @@ const go = (t, e) => {
|
|
|
779
779
|
512
|
|
780
780
|
/* NEED_PATCH */
|
|
781
781
|
), [
|
|
782
|
-
[
|
|
782
|
+
[Pe, !i.value]
|
|
783
783
|
])
|
|
784
784
|
])
|
|
785
785
|
])
|
|
@@ -788,7 +788,7 @@ const go = (t, e) => {
|
|
|
788
788
|
]);
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
}), Wg = /* @__PURE__ */
|
|
791
|
+
}), Wg = /* @__PURE__ */ be(Va, [["__scopeId", "data-v-b6d7b17e"]]), Wa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], zg = /* @__PURE__ */ ne({
|
|
792
792
|
__name: "das-web-nav",
|
|
793
793
|
setup(t) {
|
|
794
794
|
const { nav: e } = Je, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((S) => S.fixed)), s = H(() => (e.items || []).filter((S) => !S.fixed)), a = H(() => {
|
|
@@ -834,7 +834,7 @@ const go = (t, e) => {
|
|
|
834
834
|
q.nav.triggerEventListener("deleteSearchItem", { value: C.detail[0], cb: C.detail[1] });
|
|
835
835
|
}, A = () => {
|
|
836
836
|
q.nav.triggerEventListener("changeEnterpriseHandle");
|
|
837
|
-
},
|
|
837
|
+
}, _ = () => {
|
|
838
838
|
q.nav.triggerEventListener("fullScreenHandle");
|
|
839
839
|
};
|
|
840
840
|
return vs(() => {
|
|
@@ -860,7 +860,7 @@ const go = (t, e) => {
|
|
|
860
860
|
"on:clearSearchList": p,
|
|
861
861
|
"on:deleteSearchItem": v,
|
|
862
862
|
"on:changeEnterpriseHandle": A,
|
|
863
|
-
"on:fullScreen":
|
|
863
|
+
"on:fullScreen": _
|
|
864
864
|
}, null, 40, Wa));
|
|
865
865
|
}
|
|
866
866
|
}), za = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], qg = /* @__PURE__ */ ne({
|
|
@@ -918,7 +918,7 @@ const go = (t, e) => {
|
|
|
918
918
|
}), null, 16, qa)) : j("v-if", !0);
|
|
919
919
|
}
|
|
920
920
|
}), mo = E("/das-micro-app"), ue = E([]), Ht = E(!1), Qt = E([]), jt = E(!0);
|
|
921
|
-
let
|
|
921
|
+
let Te = null, Ee = null, rt = null;
|
|
922
922
|
const st = (t, e, n) => {
|
|
923
923
|
var r, s, a, c;
|
|
924
924
|
const o = ue.value.find((l) => l.name === t);
|
|
@@ -934,41 +934,41 @@ const st = (t, e, n) => {
|
|
|
934
934
|
const { origin: n } = new URL(location.href);
|
|
935
935
|
(o = window.top) == null || o.postMessage({ type: t, data: e }, n);
|
|
936
936
|
}, Ja = () => {
|
|
937
|
-
|
|
937
|
+
Ee || (Ee || (Ee = {}), window.addEventListener(
|
|
938
938
|
"message",
|
|
939
939
|
(t) => {
|
|
940
940
|
const { type: e, source: n } = t.data || {};
|
|
941
|
-
if (n !== "react-devtools-content-script" &&
|
|
942
|
-
for (const o in
|
|
943
|
-
|
|
941
|
+
if (n !== "react-devtools-content-script" && Ee[e])
|
|
942
|
+
for (const o in Ee[e])
|
|
943
|
+
Ee[e][o](t.data);
|
|
944
944
|
},
|
|
945
945
|
!1
|
|
946
946
|
));
|
|
947
947
|
}, Ka = () => {
|
|
948
|
-
|
|
948
|
+
Te || (Te || (Te = {}), window.addEventListener(
|
|
949
949
|
"message",
|
|
950
950
|
(t) => {
|
|
951
951
|
const { type: e } = t.data || {};
|
|
952
|
-
if (
|
|
953
|
-
for (const n in
|
|
954
|
-
|
|
952
|
+
if (Te[e])
|
|
953
|
+
for (const n in Te[e])
|
|
954
|
+
Te[e][n](t.data);
|
|
955
955
|
},
|
|
956
956
|
!1
|
|
957
957
|
));
|
|
958
958
|
}, Ga = (t, e) => {
|
|
959
959
|
Ka();
|
|
960
960
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
961
|
-
return
|
|
961
|
+
return Te[t] || (Te[t] = {}), Te[t][n] = e, {
|
|
962
962
|
remove: () => {
|
|
963
|
-
|
|
963
|
+
Te[t] && Te[t][n] && delete Te[t][n];
|
|
964
964
|
}
|
|
965
965
|
};
|
|
966
966
|
}, Xa = (t, e) => {
|
|
967
967
|
Ja();
|
|
968
968
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
969
|
-
return
|
|
969
|
+
return Ee[t] || (Ee[t] = {}), Ee[t][n] = e, {
|
|
970
970
|
remove: () => {
|
|
971
|
-
|
|
971
|
+
Ee[t] && Ee[t][n] && delete Ee[t][n];
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
974
|
}, pn = async (t) => {
|
|
@@ -1105,12 +1105,12 @@ function ei(t) {
|
|
|
1105
1105
|
return t;
|
|
1106
1106
|
}
|
|
1107
1107
|
function yr(t) {
|
|
1108
|
-
return ys() ? (
|
|
1108
|
+
return ys() ? (ws(t), !0) : !1;
|
|
1109
1109
|
}
|
|
1110
1110
|
function ti(t, e = !0) {
|
|
1111
|
-
|
|
1111
|
+
_s() ? Ve(t) : e ? t() : Qe(t);
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function wr(t) {
|
|
1114
1114
|
var e;
|
|
1115
1115
|
const n = Ar(t);
|
|
1116
1116
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
@@ -1123,7 +1123,7 @@ function ri(...t) {
|
|
|
1123
1123
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
1124
1124
|
const s = [], a = () => {
|
|
1125
1125
|
s.forEach((u) => u()), s.length = 0;
|
|
1126
|
-
}, c = (u, f, d, h) => (u.addEventListener(f, d, h), () => u.removeEventListener(f, d, h)), l = G(() => [
|
|
1126
|
+
}, c = (u, f, d, h) => (u.addEventListener(f, d, h), () => u.removeEventListener(f, d, h)), l = G(() => [wr(e), Ar(r)], ([u, f]) => {
|
|
1127
1127
|
a(), u && s.push(...n.flatMap((d) => o.map((h) => c(u, d, h, f))));
|
|
1128
1128
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
1129
1129
|
l(), a();
|
|
@@ -1136,7 +1136,7 @@ function si(t, e = !1) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
const Ao = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, yo = "__vueuse_ssr_handlers__";
|
|
1138
1138
|
Ao[yo] = Ao[yo] || {};
|
|
1139
|
-
const
|
|
1139
|
+
const wo = [
|
|
1140
1140
|
[
|
|
1141
1141
|
"requestFullscreen",
|
|
1142
1142
|
"exitFullscreen",
|
|
@@ -1180,10 +1180,10 @@ const _o = [
|
|
|
1180
1180
|
];
|
|
1181
1181
|
function ht(t, e = {}) {
|
|
1182
1182
|
const { document: n = oi, autoExit: o = !1 } = e, r = t || (n == null ? void 0 : n.querySelector("html")), s = E(!1);
|
|
1183
|
-
let a =
|
|
1183
|
+
let a = wo[0];
|
|
1184
1184
|
const c = si(() => {
|
|
1185
1185
|
if (n) {
|
|
1186
|
-
for (const y of
|
|
1186
|
+
for (const y of wo)
|
|
1187
1187
|
if (y[1] in n)
|
|
1188
1188
|
return a = y, !0;
|
|
1189
1189
|
} else
|
|
@@ -1197,7 +1197,7 @@ function ht(t, e = {}) {
|
|
|
1197
1197
|
if (!c.value)
|
|
1198
1198
|
return;
|
|
1199
1199
|
await d();
|
|
1200
|
-
const y =
|
|
1200
|
+
const y = wr(r);
|
|
1201
1201
|
y && (await y[l](), s.value = !0);
|
|
1202
1202
|
}
|
|
1203
1203
|
async function b() {
|
|
@@ -1213,10 +1213,10 @@ function ht(t, e = {}) {
|
|
|
1213
1213
|
toggle: b
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
var
|
|
1216
|
+
var _o;
|
|
1217
1217
|
(function(t) {
|
|
1218
1218
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
1219
|
-
})(
|
|
1219
|
+
})(_o || (_o = {}));
|
|
1220
1220
|
var ai = Object.defineProperty, bo = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, Co = (t, e, n) => e in t ? ai(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, li = (t, e) => {
|
|
1221
1221
|
for (var n in e || (e = {}))
|
|
1222
1222
|
ii.call(e, n) && Co(t, n, e[n]);
|
|
@@ -1277,7 +1277,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1277
1277
|
onLoad: r
|
|
1278
1278
|
}, null, 40, di));
|
|
1279
1279
|
}
|
|
1280
|
-
}), fi = /* @__PURE__ */
|
|
1280
|
+
}), fi = /* @__PURE__ */ be(pi, [["__scopeId", "data-v-8ae871f6"]]), hi = /* @__PURE__ */ ne({
|
|
1281
1281
|
__name: "das-micro-apps",
|
|
1282
1282
|
setup(t) {
|
|
1283
1283
|
const e = E(null), n = async (s, a) => {
|
|
@@ -1324,7 +1324,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1324
1324
|
De,
|
|
1325
1325
|
null,
|
|
1326
1326
|
[
|
|
1327
|
-
c.loaded ?
|
|
1327
|
+
c.loaded ? Ie(($(), V(fi, {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
src: c.src || "",
|
|
1330
1330
|
name: c.name,
|
|
@@ -1333,7 +1333,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1333
1333
|
onOnActivated: (l) => o(l, c.name),
|
|
1334
1334
|
onOnDeactivated: (l) => r(l, c.name)
|
|
1335
1335
|
}, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
|
|
1336
|
-
[
|
|
1336
|
+
[Pe, c.actived]
|
|
1337
1337
|
]) : j("v-if", !0)
|
|
1338
1338
|
],
|
|
1339
1339
|
64
|
|
@@ -1347,7 +1347,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1347
1347
|
/* NEED_PATCH */
|
|
1348
1348
|
));
|
|
1349
1349
|
}
|
|
1350
|
-
}), gi = /* @__PURE__ */
|
|
1350
|
+
}), gi = /* @__PURE__ */ be(hi, [["__scopeId", "data-v-3abdb1e9"]]), Kg = /* @__PURE__ */ ne({
|
|
1351
1351
|
__name: "das-main-app-layout",
|
|
1352
1352
|
props: {
|
|
1353
1353
|
transitionConfig: { default: () => {
|
|
@@ -1391,7 +1391,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1391
1391
|
/* FORWARDED */
|
|
1392
1392
|
}, 16, ["transition-config", "router-view-visible"]));
|
|
1393
1393
|
}
|
|
1394
|
-
}),
|
|
1394
|
+
}), _r = /* @__PURE__ */ ne({
|
|
1395
1395
|
__name: "das-micro-app-ghost",
|
|
1396
1396
|
setup(t) {
|
|
1397
1397
|
return bs(() => {
|
|
@@ -1405,7 +1405,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1405
1405
|
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix), ue.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: mi(r.entry || r.name) })), e == null || e.addRoute({
|
|
1406
1406
|
name: "das-micro-app",
|
|
1407
1407
|
path: `${mo.value}/:pathMatch(.*)*`,
|
|
1408
|
-
component:
|
|
1408
|
+
component: _r,
|
|
1409
1409
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1410
1410
|
}), ee.addEventListenerFromMicroApp("bodyOverlay", (r) => {
|
|
1411
1411
|
const { visible: s, style: a } = r.data;
|
|
@@ -1432,7 +1432,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1432
1432
|
e == null || e.addRoute({
|
|
1433
1433
|
name: n,
|
|
1434
1434
|
path: `/${n}/:pathMatch(.*)*`,
|
|
1435
|
-
component:
|
|
1435
|
+
component: _r,
|
|
1436
1436
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1437
1437
|
});
|
|
1438
1438
|
const o = E(!1), r = E(!1), s = E("");
|
|
@@ -1544,7 +1544,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1544
1544
|
/* FORWARDED */
|
|
1545
1545
|
}, 16, ["transition-config"]));
|
|
1546
1546
|
}
|
|
1547
|
-
}), yi = Ws.get("watermark"),
|
|
1547
|
+
}), yi = Ws.get("watermark"), wi = /* @__PURE__ */ ne({
|
|
1548
1548
|
__name: "index",
|
|
1549
1549
|
props: {
|
|
1550
1550
|
platformInitNextTick: {}
|
|
@@ -1570,26 +1570,26 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1570
1570
|
const g = !!((p = n.value) != null && p.pageSwith);
|
|
1571
1571
|
a.value = y && g ? [...s.value] : [];
|
|
1572
1572
|
}, d = async () => {
|
|
1573
|
-
var v, A,
|
|
1573
|
+
var v, A, _, C, S, P, I;
|
|
1574
1574
|
i.value = !0, await (e == null ? void 0 : e.platformInitNextTick());
|
|
1575
1575
|
const [y, g] = await yi().run();
|
|
1576
1576
|
if (y) return null;
|
|
1577
1577
|
if (n.value = g, !!((v = n.value) != null && v.pageSwith)) {
|
|
1578
1578
|
s.value = [];
|
|
1579
1579
|
const { name: T, phone: D } = await ea();
|
|
1580
|
-
let
|
|
1581
|
-
if ((A = n.value) != null && A.nameSwith && T && (s.value.push(T),
|
|
1580
|
+
let O = "";
|
|
1581
|
+
if ((A = n.value) != null && A.nameSwith && T && (s.value.push(T), O = O + `${T} `), (_ = n.value) != null && _.phoneSwith && D) {
|
|
1582
1582
|
const F = D.slice(-4);
|
|
1583
|
-
s.value.push(F),
|
|
1583
|
+
s.value.push(F), O = O + `${F} `;
|
|
1584
1584
|
}
|
|
1585
1585
|
if ((C = n.value) != null && C.textSwith && ((S = n.value) != null && S.text)) {
|
|
1586
1586
|
s.value.push(n.value.text);
|
|
1587
1587
|
const F = n.value.text.replaceAll(`
|
|
1588
1588
|
`, "<br/>");
|
|
1589
|
-
|
|
1589
|
+
O = O + `${F}`;
|
|
1590
1590
|
}
|
|
1591
1591
|
s.value.length && (s.value = s.value.join(" ").split(`
|
|
1592
|
-
`)), c.color = (P = n.value) != null && P.textColor ? n.value.textColor : "rgba(0,0,0,.15)", c.fontSize = (I = n.value) != null && I.textSize ? parseInt(n.value.textSize) : 16, l(
|
|
1592
|
+
`)), c.color = (P = n.value) != null && P.textColor ? n.value.textColor : "rgba(0,0,0,.15)", c.fontSize = (I = n.value) != null && I.textSize ? parseInt(n.value.textSize) : 16, l(O, c.fontSize);
|
|
1593
1593
|
}
|
|
1594
1594
|
return i.value = !1, g;
|
|
1595
1595
|
};
|
|
@@ -1598,13 +1598,13 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1598
1598
|
return G(
|
|
1599
1599
|
() => h.currentRoute.value,
|
|
1600
1600
|
(y) => {
|
|
1601
|
-
var A,
|
|
1602
|
-
const g = !!((A = n.value) != null && A.pageSwith), p = ((
|
|
1601
|
+
var A, _, C;
|
|
1602
|
+
const g = !!((A = n.value) != null && A.pageSwith), p = ((_ = y.meta) == null ? void 0 : _.showWatermark) ?? !0;
|
|
1603
1603
|
let v = ((C = y.query) == null ? void 0 : C.showWatermark) ?? !0;
|
|
1604
1604
|
v === "false" && (v = !1), f(g && !!(p && v));
|
|
1605
1605
|
},
|
|
1606
1606
|
{ immediate: !0 }
|
|
1607
|
-
),
|
|
1607
|
+
), Le.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
1608
1608
|
var p, v;
|
|
1609
1609
|
await d();
|
|
1610
1610
|
const y = !!((p = n.value) != null && p.pageSwith);
|
|
@@ -1625,7 +1625,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1625
1625
|
/* FORWARDED */
|
|
1626
1626
|
}, 8, ["font", "content", "width", "height"]));
|
|
1627
1627
|
}
|
|
1628
|
-
}),
|
|
1628
|
+
}), _i = /* @__PURE__ */ be(wi, [["__scopeId", "data-v-dacc9554"]]), bi = {
|
|
1629
1629
|
"--menu-tip-diaolg-content": "#212121",
|
|
1630
1630
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
1631
1631
|
"--menu-tip-diaolg-info": "#999999"
|
|
@@ -1684,7 +1684,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1684
1684
|
($(!0), W(
|
|
1685
1685
|
De,
|
|
1686
1686
|
null,
|
|
1687
|
-
Tt(n.desc, (r, s) =>
|
|
1687
|
+
Tt(n.desc, (r, s) => Ie(($(), W("div", {
|
|
1688
1688
|
key: s,
|
|
1689
1689
|
class: "desc-item"
|
|
1690
1690
|
}, [
|
|
@@ -1708,7 +1708,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1708
1708
|
/* STABLE */
|
|
1709
1709
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
1710
1710
|
}
|
|
1711
|
-
}), Ei = /* @__PURE__ */
|
|
1711
|
+
}), Ei = /* @__PURE__ */ be(Ti, [["__scopeId", "data-v-72bc9a80"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
|
|
1712
1712
|
const r = document.createElement("div");
|
|
1713
1713
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1714
1714
|
const a = fe(Ei, { title: t, content: e, desc: n, closeCallback: () => {
|
|
@@ -1735,7 +1735,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1735
1735
|
localStorage.setItem("fav-icon", t);
|
|
1736
1736
|
}, Ir = (t) => {
|
|
1737
1737
|
sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
|
|
1738
|
-
},
|
|
1738
|
+
}, Oi = () => {
|
|
1739
1739
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
1740
1740
|
}, ve = (t) => {
|
|
1741
1741
|
let e = me();
|
|
@@ -1758,7 +1758,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1758
1758
|
}), sessionStorage.setItem("tabs", JSON.stringify(e));
|
|
1759
1759
|
}, Tr = () => {
|
|
1760
1760
|
sessionStorage.removeItem("tabs");
|
|
1761
|
-
},
|
|
1761
|
+
}, Se = (t) => {
|
|
1762
1762
|
let e = J();
|
|
1763
1763
|
t.forEach((n) => {
|
|
1764
1764
|
if (n.key === "subAppList" && !Array.isArray(n.value)) {
|
|
@@ -1768,7 +1768,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1768
1768
|
Object.assign(e, { [n.key]: n.value });
|
|
1769
1769
|
}), sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
1770
1770
|
}, Fn = () => {
|
|
1771
|
-
|
|
1771
|
+
Se([
|
|
1772
1772
|
{ key: "currentSubApp", value: {} },
|
|
1773
1773
|
{ key: "currentSubAppCode", value: "" },
|
|
1774
1774
|
{ key: "subAppList", value: [] }
|
|
@@ -1779,7 +1779,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1779
1779
|
for (const n in e.subAppList)
|
|
1780
1780
|
e.subAppList[n].code === e.currentSubAppCode && (e.subAppList[n].currentMenuCode = t);
|
|
1781
1781
|
sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
1782
|
-
},
|
|
1782
|
+
}, Mi = (t, e) => {
|
|
1783
1783
|
const n = "permission-btn", o = JSON.parse(sessionStorage.getItem(n) || "{}") || {}, r = t != null && t.length ? t.filter((l) => l.routeUrl) : [], s = t != null && t.length ? t.filter((l) => !l.routeUrl && l.children).map((l) => l.children).flat() : [], a = [...r, ...s], c = {};
|
|
1784
1784
|
return a.forEach((l) => {
|
|
1785
1785
|
var d;
|
|
@@ -1792,7 +1792,7 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1792
1792
|
code: h.code,
|
|
1793
1793
|
originalCode: h.originalCode,
|
|
1794
1794
|
name: h.name
|
|
1795
|
-
}) :
|
|
1795
|
+
}) : Oe([h]).forEach((g) => {
|
|
1796
1796
|
f.push({
|
|
1797
1797
|
code: g.code,
|
|
1798
1798
|
originalCode: g.originalCode,
|
|
@@ -1944,19 +1944,19 @@ function mc(t) {
|
|
|
1944
1944
|
return gc.call(t);
|
|
1945
1945
|
}
|
|
1946
1946
|
var vc = "[object Null]", Ac = "[object Undefined]", Io = lt ? lt.toStringTag : void 0;
|
|
1947
|
-
function
|
|
1947
|
+
function Ot(t) {
|
|
1948
1948
|
return t == null ? t === void 0 ? Ac : vc : Io && Io in Object(t) ? fc(t) : mc(t);
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function Mt(t) {
|
|
1951
1951
|
var e = typeof t;
|
|
1952
1952
|
return t != null && (e == "object" || e == "function");
|
|
1953
1953
|
}
|
|
1954
|
-
var yc = "[object AsyncFunction]",
|
|
1954
|
+
var yc = "[object AsyncFunction]", wc = "[object Function]", _c = "[object GeneratorFunction]", bc = "[object Proxy]";
|
|
1955
1955
|
function $r(t) {
|
|
1956
|
-
if (!
|
|
1956
|
+
if (!Mt(t))
|
|
1957
1957
|
return !1;
|
|
1958
|
-
var e =
|
|
1959
|
-
return e ==
|
|
1958
|
+
var e = Ot(t);
|
|
1959
|
+
return e == wc || e == _c || e == yc || e == bc;
|
|
1960
1960
|
}
|
|
1961
1961
|
var fn = Be["__core-js_shared__"], To = function() {
|
|
1962
1962
|
var t = /[^.]+$/.exec(fn && fn.keys && fn.keys.IE_PROTO || "");
|
|
@@ -1982,18 +1982,18 @@ function nt(t) {
|
|
|
1982
1982
|
var Ec = /[\\^$.*+?()[\]{}|]/g, Sc = /^\[object .+?Constructor\]$/, kc = Function.prototype, Pc = Object.prototype, Lc = kc.toString, $c = Pc.hasOwnProperty, Dc = RegExp(
|
|
1983
1983
|
"^" + Lc.call($c).replace(Ec, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1984
1984
|
);
|
|
1985
|
-
function
|
|
1986
|
-
if (!
|
|
1985
|
+
function Oc(t) {
|
|
1986
|
+
if (!Mt(t) || Cc(t))
|
|
1987
1987
|
return !1;
|
|
1988
1988
|
var e = $r(t) ? Dc : Sc;
|
|
1989
1989
|
return e.test(nt(t));
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function Mc(t, e) {
|
|
1992
1992
|
return t == null ? void 0 : t[e];
|
|
1993
1993
|
}
|
|
1994
1994
|
function ot(t, e) {
|
|
1995
|
-
var n =
|
|
1996
|
-
return
|
|
1995
|
+
var n = Mc(t, e);
|
|
1996
|
+
return Oc(n) ? n : void 0;
|
|
1997
1997
|
}
|
|
1998
1998
|
var St = ot(Be, "Map"), kt = ot(Object, "create");
|
|
1999
1999
|
function Bc() {
|
|
@@ -2116,7 +2116,7 @@ function Dr(t, e, n) {
|
|
|
2116
2116
|
}) : t[e] = n;
|
|
2117
2117
|
}
|
|
2118
2118
|
var tl = Object.prototype, nl = tl.hasOwnProperty;
|
|
2119
|
-
function
|
|
2119
|
+
function Or(t, e, n) {
|
|
2120
2120
|
var o = t[e];
|
|
2121
2121
|
(!(nl.call(t, e) && kr(o, n)) || n === void 0 && !(e in t)) && Dr(t, e, n);
|
|
2122
2122
|
}
|
|
@@ -2125,7 +2125,7 @@ function on(t, e, n, o) {
|
|
|
2125
2125
|
n || (n = {});
|
|
2126
2126
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
2127
2127
|
var c = e[s], l = void 0;
|
|
2128
|
-
l === void 0 && (l = t[c]), r ? Dr(n, c, l) :
|
|
2128
|
+
l === void 0 && (l = t[c]), r ? Dr(n, c, l) : Or(n, c, l);
|
|
2129
2129
|
}
|
|
2130
2130
|
return n;
|
|
2131
2131
|
}
|
|
@@ -2139,9 +2139,9 @@ function Bt(t) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
var rl = "[object Arguments]";
|
|
2141
2141
|
function So(t) {
|
|
2142
|
-
return Bt(t) &&
|
|
2142
|
+
return Bt(t) && Ot(t) == rl;
|
|
2143
2143
|
}
|
|
2144
|
-
var
|
|
2144
|
+
var Mr = Object.prototype, sl = Mr.hasOwnProperty, al = Mr.propertyIsEnumerable, il = So(/* @__PURE__ */ function() {
|
|
2145
2145
|
return arguments;
|
|
2146
2146
|
}()) ? So : function(t) {
|
|
2147
2147
|
return Bt(t) && sl.call(t, "callee") && !al.call(t, "callee");
|
|
@@ -2158,11 +2158,11 @@ var hl = 9007199254740991;
|
|
|
2158
2158
|
function xr(t) {
|
|
2159
2159
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= hl;
|
|
2160
2160
|
}
|
|
2161
|
-
var gl = "[object Arguments]", ml = "[object Array]", vl = "[object Boolean]", Al = "[object Date]", yl = "[object Error]",
|
|
2162
|
-
Z[Ll] = Z[$l] = Z[Dl] = Z[
|
|
2163
|
-
Z[gl] = Z[ml] = Z[kl] = Z[vl] = Z[Pl] = Z[Al] = Z[yl] = Z[
|
|
2161
|
+
var gl = "[object Arguments]", ml = "[object Array]", vl = "[object Boolean]", Al = "[object Date]", yl = "[object Error]", wl = "[object Function]", _l = "[object Map]", bl = "[object Number]", Cl = "[object Object]", Il = "[object RegExp]", Tl = "[object Set]", El = "[object String]", Sl = "[object WeakMap]", kl = "[object ArrayBuffer]", Pl = "[object DataView]", Ll = "[object Float32Array]", $l = "[object Float64Array]", Dl = "[object Int8Array]", Ol = "[object Int16Array]", Ml = "[object Int32Array]", Bl = "[object Uint8Array]", Rl = "[object Uint8ClampedArray]", xl = "[object Uint16Array]", Ql = "[object Uint32Array]", Z = {};
|
|
2162
|
+
Z[Ll] = Z[$l] = Z[Dl] = Z[Ol] = Z[Ml] = Z[Bl] = Z[Rl] = Z[xl] = Z[Ql] = !0;
|
|
2163
|
+
Z[gl] = Z[ml] = Z[kl] = Z[vl] = Z[Pl] = Z[Al] = Z[yl] = Z[wl] = Z[_l] = Z[bl] = Z[Cl] = Z[Il] = Z[Tl] = Z[El] = Z[Sl] = !1;
|
|
2164
2164
|
function jl(t) {
|
|
2165
|
-
return Bt(t) && xr(t.length) && !!Z[
|
|
2165
|
+
return Bt(t) && xr(t.length) && !!Z[Ot(t)];
|
|
2166
2166
|
}
|
|
2167
2167
|
function Wn(t) {
|
|
2168
2168
|
return function(e) {
|
|
@@ -2223,7 +2223,7 @@ function Gl(t) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
var Xl = Object.prototype, Zl = Xl.hasOwnProperty;
|
|
2225
2225
|
function Yl(t) {
|
|
2226
|
-
if (!
|
|
2226
|
+
if (!Mt(t))
|
|
2227
2227
|
return Gl(t);
|
|
2228
2228
|
var e = zn(t), n = [];
|
|
2229
2229
|
for (var o in t)
|
|
@@ -2236,11 +2236,11 @@ function Jn(t) {
|
|
|
2236
2236
|
function eu(t, e) {
|
|
2237
2237
|
return t && on(e, Jn(e), t);
|
|
2238
2238
|
}
|
|
2239
|
-
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,
|
|
2239
|
+
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;
|
|
2240
2240
|
function nu(t, e) {
|
|
2241
2241
|
if (e)
|
|
2242
2242
|
return t.slice();
|
|
2243
|
-
var n = t.length, o =
|
|
2243
|
+
var n = t.length, o = Oo ? Oo(n) : new t.constructor(n);
|
|
2244
2244
|
return t.copy(o), o;
|
|
2245
2245
|
}
|
|
2246
2246
|
function ou(t, e) {
|
|
@@ -2259,8 +2259,8 @@ function ru(t, e) {
|
|
|
2259
2259
|
function Fr() {
|
|
2260
2260
|
return [];
|
|
2261
2261
|
}
|
|
2262
|
-
var su = Object.prototype, au = su.propertyIsEnumerable,
|
|
2263
|
-
return t == null ? [] : (t = Object(t), ru(
|
|
2262
|
+
var su = Object.prototype, au = su.propertyIsEnumerable, Mo = Object.getOwnPropertySymbols, Kn = Mo ? function(t) {
|
|
2263
|
+
return t == null ? [] : (t = Object(t), ru(Mo(t), function(e) {
|
|
2264
2264
|
return au.call(t, e);
|
|
2265
2265
|
}));
|
|
2266
2266
|
} : Fr;
|
|
@@ -2290,9 +2290,9 @@ function uu(t) {
|
|
|
2290
2290
|
function du(t) {
|
|
2291
2291
|
return qr(t, Jn, zr);
|
|
2292
2292
|
}
|
|
2293
|
-
var Sn = ot(Be, "DataView"), kn = ot(Be, "Promise"), Pn = ot(Be, "Set"), Ln = ot(Be, "WeakMap"), Bo = "[object Map]", pu = "[object Object]", Ro = "[object Promise]", xo = "[object Set]", Qo = "[object WeakMap]", jo = "[object DataView]", fu = nt(Sn), hu = nt(St), gu = nt(kn), mu = nt(Pn), vu = nt(Ln), xe =
|
|
2293
|
+
var Sn = ot(Be, "DataView"), kn = ot(Be, "Promise"), Pn = ot(Be, "Set"), Ln = ot(Be, "WeakMap"), Bo = "[object Map]", pu = "[object Object]", Ro = "[object Promise]", xo = "[object Set]", Qo = "[object WeakMap]", jo = "[object DataView]", fu = nt(Sn), hu = nt(St), gu = nt(kn), mu = nt(Pn), vu = nt(Ln), xe = Ot;
|
|
2294
2294
|
(Sn && xe(new Sn(new ArrayBuffer(1))) != jo || St && xe(new St()) != Bo || kn && xe(kn.resolve()) != Ro || Pn && xe(new Pn()) != xo || Ln && xe(new Ln()) != Qo) && (xe = function(t) {
|
|
2295
|
-
var e =
|
|
2295
|
+
var e = Ot(t), n = e == pu ? t.constructor : void 0, o = n ? nt(n) : "";
|
|
2296
2296
|
if (o)
|
|
2297
2297
|
switch (o) {
|
|
2298
2298
|
case fu:
|
|
@@ -2309,7 +2309,7 @@ var Sn = ot(Be, "DataView"), kn = ot(Be, "Promise"), Pn = ot(Be, "Set"), Ln = ot
|
|
|
2309
2309
|
return e;
|
|
2310
2310
|
});
|
|
2311
2311
|
var Au = Object.prototype, yu = Au.hasOwnProperty;
|
|
2312
|
-
function
|
|
2312
|
+
function wu(t) {
|
|
2313
2313
|
var e = t.length, n = new t.constructor(e);
|
|
2314
2314
|
return e && typeof t[0] == "string" && yu.call(t, "index") && (n.index = t.index, n.input = t.input), n;
|
|
2315
2315
|
}
|
|
@@ -2318,7 +2318,7 @@ function Gn(t) {
|
|
|
2318
2318
|
var e = new t.constructor(t.byteLength);
|
|
2319
2319
|
return new No(e).set(new No(t)), e;
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function _u(t, e) {
|
|
2322
2322
|
var n = e ? Gn(t.buffer) : t.buffer;
|
|
2323
2323
|
return new t.constructor(n, t.byteOffset, t.byteLength);
|
|
2324
2324
|
}
|
|
@@ -2335,17 +2335,17 @@ function Tu(t, e) {
|
|
|
2335
2335
|
var n = e ? Gn(t.buffer) : t.buffer;
|
|
2336
2336
|
return new t.constructor(n, t.byteOffset, t.length);
|
|
2337
2337
|
}
|
|
2338
|
-
var Eu = "[object Boolean]", Su = "[object Date]", ku = "[object Map]", Pu = "[object Number]", Lu = "[object RegExp]", $u = "[object Set]", Du = "[object String]",
|
|
2338
|
+
var Eu = "[object Boolean]", Su = "[object Date]", ku = "[object Map]", Pu = "[object Number]", Lu = "[object RegExp]", $u = "[object Set]", Du = "[object String]", Ou = "[object Symbol]", Mu = "[object ArrayBuffer]", Bu = "[object DataView]", Ru = "[object Float32Array]", xu = "[object Float64Array]", Qu = "[object Int8Array]", ju = "[object Int16Array]", Nu = "[object Int32Array]", Hu = "[object Uint8Array]", Uu = "[object Uint8ClampedArray]", Fu = "[object Uint16Array]", Vu = "[object Uint32Array]";
|
|
2339
2339
|
function Wu(t, e, n) {
|
|
2340
2340
|
var o = t.constructor;
|
|
2341
2341
|
switch (e) {
|
|
2342
|
-
case
|
|
2342
|
+
case Mu:
|
|
2343
2343
|
return Gn(t);
|
|
2344
2344
|
case Eu:
|
|
2345
2345
|
case Su:
|
|
2346
2346
|
return new o(+t);
|
|
2347
2347
|
case Bu:
|
|
2348
|
-
return
|
|
2348
|
+
return _u(t, n);
|
|
2349
2349
|
case Ru:
|
|
2350
2350
|
case xu:
|
|
2351
2351
|
case Qu:
|
|
@@ -2365,7 +2365,7 @@ function Wu(t, e, n) {
|
|
|
2365
2365
|
return Cu(t);
|
|
2366
2366
|
case $u:
|
|
2367
2367
|
return new o();
|
|
2368
|
-
case
|
|
2368
|
+
case Ou:
|
|
2369
2369
|
return Iu(t);
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
@@ -2373,7 +2373,7 @@ var Fo = Object.create, zu = /* @__PURE__ */ function() {
|
|
|
2373
2373
|
function t() {
|
|
2374
2374
|
}
|
|
2375
2375
|
return function(e) {
|
|
2376
|
-
if (!
|
|
2376
|
+
if (!Mt(e))
|
|
2377
2377
|
return {};
|
|
2378
2378
|
if (Fo)
|
|
2379
2379
|
return Fo(e);
|
|
@@ -2393,18 +2393,18 @@ var Vo = ut && ut.isMap, Gu = Vo ? Wn(Vo) : Ku, Xu = "[object Set]";
|
|
|
2393
2393
|
function Zu(t) {
|
|
2394
2394
|
return Bt(t) && xe(t) == Xu;
|
|
2395
2395
|
}
|
|
2396
|
-
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]",
|
|
2397
|
-
K[Jr] = K[od] = K[gd] = K[md] = K[rd] = K[sd] = K[vd] = K[Ad] = K[yd] = K[
|
|
2396
|
+
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 = {};
|
|
2397
|
+
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;
|
|
2398
2398
|
K[ad] = K[Kr] = K[hd] = !1;
|
|
2399
2399
|
function Ft(t, e, n, o, r, s) {
|
|
2400
2400
|
var a, c = e & ed, l = e & td, i = e & nd;
|
|
2401
2401
|
if (a !== void 0)
|
|
2402
2402
|
return a;
|
|
2403
|
-
if (!
|
|
2403
|
+
if (!Mt(t))
|
|
2404
2404
|
return t;
|
|
2405
2405
|
var u = Vn(t);
|
|
2406
2406
|
if (u) {
|
|
2407
|
-
if (a =
|
|
2407
|
+
if (a = wu(t), !c)
|
|
2408
2408
|
return ou(t, a);
|
|
2409
2409
|
} else {
|
|
2410
2410
|
var f = xe(t), d = f == Kr || f == id;
|
|
@@ -2430,7 +2430,7 @@ function Ft(t, e, n, o, r, s) {
|
|
|
2430
2430
|
});
|
|
2431
2431
|
var b = i ? l ? du : uu : l ? Jn : qn, y = u ? void 0 : b(t);
|
|
2432
2432
|
return el(y || t, function(g, p) {
|
|
2433
|
-
y && (p = g, g = t[p]),
|
|
2433
|
+
y && (p = g, g = t[p]), Or(a, p, Ft(g, e, n, p, t, s));
|
|
2434
2434
|
}), a;
|
|
2435
2435
|
}
|
|
2436
2436
|
var Ed = 1, Sd = 4;
|
|
@@ -2465,7 +2465,7 @@ const Kt = (t, e = "") => {
|
|
|
2465
2465
|
}, $n = (t) => {
|
|
2466
2466
|
const e = J().subAppList ?? [];
|
|
2467
2467
|
let { index: n, target: o } = kd(e, t);
|
|
2468
|
-
return e.splice(n, 1), e.length ?
|
|
2468
|
+
return e.splice(n, 1), e.length ? Se([{ key: "subAppList", value: e }]) : Fn(), ve([
|
|
2469
2469
|
{ key: "currentCode", value: "" },
|
|
2470
2470
|
{ key: "currentTab", value: {} },
|
|
2471
2471
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2476,7 +2476,7 @@ const Kt = (t, e = "") => {
|
|
|
2476
2476
|
return { left: o, right: r };
|
|
2477
2477
|
}, Ld = (t, e, n) => {
|
|
2478
2478
|
var f;
|
|
2479
|
-
const o =
|
|
2479
|
+
const o = Oe(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((f = me()) == null ? void 0 : f.tabMap) ?? {})[t] ?? [], { left: a, right: c } = Pd(s, n), l = s.filter((d) => o.find((h) => h.code === d.code));
|
|
2480
2480
|
if (!a.length && !c.length || !l.length)
|
|
2481
2481
|
return ve([
|
|
2482
2482
|
{ key: "currentCode", value: "" },
|
|
@@ -2518,8 +2518,8 @@ const Kt = (t, e = "") => {
|
|
|
2518
2518
|
userType: 1
|
|
2519
2519
|
});
|
|
2520
2520
|
if (e || !n || !n.length) return { menus: [], originalMenus: [], err: e };
|
|
2521
|
-
|
|
2522
|
-
const o =
|
|
2521
|
+
Mi(n, t);
|
|
2522
|
+
const o = Oe(n);
|
|
2523
2523
|
Ri(o, t), Qi(o, t);
|
|
2524
2524
|
let r = Rs(n, (a) => a.isMenu);
|
|
2525
2525
|
const s = dt(r);
|
|
@@ -2551,8 +2551,8 @@ const Kt = (t, e = "") => {
|
|
|
2551
2551
|
});
|
|
2552
2552
|
const v = xs(g.endTime) || g.endTime == 0 || g.endTime === 253370736e6 || g.endTime === "253370736000000" ? "-" : Number(g.endTime);
|
|
2553
2553
|
if (p = Cn().endOf("day") > Cn(v).endOf("day"), !n && !o && g.id && !p) {
|
|
2554
|
-
const
|
|
2555
|
-
|
|
2554
|
+
const _ = Oe(l).find((C) => C.routeUrl === "/statisticalReport");
|
|
2555
|
+
_ && (n = _.code);
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
@@ -2560,7 +2560,7 @@ const Kt = (t, e = "") => {
|
|
|
2560
2560
|
const p = (me().tabMap ?? {})[e.code] ?? [];
|
|
2561
2561
|
if (p.length) {
|
|
2562
2562
|
const v = p.filter(
|
|
2563
|
-
(A) => n && n === A.code || o && o === `/${A.applicationPath}${A.path}`.replace(/\/\//g, "/") ||
|
|
2563
|
+
(A) => n && n === A.code || o && o === `/${A.applicationPath}${A.path}`.replace(/\/\//g, "/") || Oe(l).map((_) => _.code).includes(A.code)
|
|
2564
2564
|
);
|
|
2565
2565
|
ve([
|
|
2566
2566
|
{
|
|
@@ -2571,7 +2571,7 @@ const Kt = (t, e = "") => {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
2573
|
if (!n && o) {
|
|
2574
|
-
const g =
|
|
2574
|
+
const g = Oe(l).find((p) => {
|
|
2575
2575
|
const v = `/${p.applicationPath}${p.routeUrl}`.replace(/\/\//g, "/");
|
|
2576
2576
|
return p.applicationPath && p.routeUrl && (o === v || o.startsWith(`/${v}/`));
|
|
2577
2577
|
});
|
|
@@ -2601,12 +2601,12 @@ const Kt = (t, e = "") => {
|
|
|
2601
2601
|
const v = { ...r.query, app: c, menu: f.code };
|
|
2602
2602
|
if (s && a) {
|
|
2603
2603
|
const A = { ...e, currentMenuCode: f.code, menus: l, originalMenus: i };
|
|
2604
|
-
|
|
2604
|
+
Se([
|
|
2605
2605
|
{ key: "currentSubApp", value: A },
|
|
2606
2606
|
{ key: "currentSubAppCode", value: c },
|
|
2607
2607
|
{ key: "subAppList", value: A }
|
|
2608
2608
|
]);
|
|
2609
|
-
const
|
|
2609
|
+
const _ = {
|
|
2610
2610
|
currentApplication: e.routeUrl,
|
|
2611
2611
|
applicationPath: f.applicationPath,
|
|
2612
2612
|
applicationCode: c,
|
|
@@ -2623,15 +2623,15 @@ const Kt = (t, e = "") => {
|
|
|
2623
2623
|
},
|
|
2624
2624
|
{
|
|
2625
2625
|
key: "currentTab",
|
|
2626
|
-
value:
|
|
2626
|
+
value: _
|
|
2627
2627
|
},
|
|
2628
2628
|
{
|
|
2629
2629
|
key: `tabMap:${c}`,
|
|
2630
|
-
value:
|
|
2630
|
+
value: _
|
|
2631
2631
|
},
|
|
2632
2632
|
{
|
|
2633
2633
|
key: `preTab:${c}`,
|
|
2634
|
-
value:
|
|
2634
|
+
value: _
|
|
2635
2635
|
}
|
|
2636
2636
|
]);
|
|
2637
2637
|
}
|
|
@@ -2641,10 +2641,10 @@ const Kt = (t, e = "") => {
|
|
|
2641
2641
|
}, Dd = We.get("/appcategory"), zo = E([]), qo = E(!1), Xr = async () => {
|
|
2642
2642
|
qo.value = !0;
|
|
2643
2643
|
const [t, e] = await Dd().run({ userType: 1 });
|
|
2644
|
-
return qo.value = !1, t ? (zo.value = [], { navConfig: [] }) : (zo.value = e,
|
|
2645
|
-
},
|
|
2644
|
+
return qo.value = !1, t ? (zo.value = [], { navConfig: [] }) : (zo.value = e, Se([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
2645
|
+
}, Od = "v1", Md = xn.get("/organization/authProjectTree"), Bd = et(`/api/customer/customer/${Od}`), Rd = Bd.get("/project/list"), xd = async () => {
|
|
2646
2646
|
var o, r;
|
|
2647
|
-
const t =
|
|
2647
|
+
const t = Mn();
|
|
2648
2648
|
let e = [], n = null;
|
|
2649
2649
|
if ((t == null ? void 0 : t.flag) === 4) {
|
|
2650
2650
|
const [s, a] = await Rd().run();
|
|
@@ -2656,7 +2656,7 @@ const Kt = (t, e = "") => {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
} else {
|
|
2659
|
-
const [s, a] = await
|
|
2659
|
+
const [s, a] = await Md().run();
|
|
2660
2660
|
if (e = a, e && e.length) {
|
|
2661
2661
|
const c = ((r = Fe()) == null ? void 0 : r.id) || 0;
|
|
2662
2662
|
c && (n = lo(e, (l) => l.id === c)), (!c || !n) && (n = lo(e, (l) => l.type === 7));
|
|
@@ -2788,9 +2788,9 @@ const Kt = (t, e = "") => {
|
|
|
2788
2788
|
}, 8, ["title", "modelValue"])
|
|
2789
2789
|
]));
|
|
2790
2790
|
}
|
|
2791
|
-
}), rp = /* @__PURE__ */
|
|
2791
|
+
}), rp = /* @__PURE__ */ be(op, [["__scopeId", "data-v-760eb710"]]), sp = () => E(null), ap = Rn.get("/login/history"), ip = () => {
|
|
2792
2792
|
const t = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((l) => new RegExp(`^${l}$`, "i").test(location.pathname)), e = (a) => {
|
|
2793
|
-
const { browserLogoImgHost: c = "", browserLogoImg: l = "" } = a || {}, i = l ? c +
|
|
2793
|
+
const { browserLogoImgHost: c = "", browserLogoImg: l = "" } = a || {}, i = l ? c + On(l) : "";
|
|
2794
2794
|
Di(i), Qs(i);
|
|
2795
2795
|
}, n = async () => {
|
|
2796
2796
|
const [a, c] = await ap().run({ userId: cr().id });
|
|
@@ -2860,11 +2860,11 @@ const Kt = (t, e = "") => {
|
|
|
2860
2860
|
const b = await f();
|
|
2861
2861
|
if (!b) return;
|
|
2862
2862
|
const { homeConfig: y, projectConfig: g, currentProject: p, tenantList: v, personalMenuConfig: A } = b;
|
|
2863
|
-
u.value = ((I =
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2863
|
+
u.value = ((I = Mn()) == null ? void 0 : I.flag) !== 4 && v && v.length > 1;
|
|
2864
|
+
const _ = [...br];
|
|
2865
|
+
_.forEach((T) => {
|
|
2866
2866
|
y != null && y.appAlias && T.value === je && (T.label = y.appAlias), y != null && y.homeAlias && T.value === Ct && (T.label = y.homeAlias);
|
|
2867
|
-
}), c.value =
|
|
2867
|
+
}), c.value = _, y != null && y.enable || (c.value = c.value.filter((T) => T.path === je), n.path === Ct && await e.replace(je)), R.nav.setItems(c.value), g && g.length && (R.nav.setProjectConfig({
|
|
2868
2868
|
treeProps: {
|
|
2869
2869
|
disabled: (T) => T.type !== 7
|
|
2870
2870
|
},
|
|
@@ -2873,7 +2873,7 @@ const Kt = (t, e = "") => {
|
|
|
2873
2873
|
// 树打平之后保留的数据
|
|
2874
2874
|
filterFlatCondition: (T) => T.type === 7
|
|
2875
2875
|
}), R.nav.setProjects(g || []), p && R.nav.setActiveProject(p));
|
|
2876
|
-
const C = Yt() ?? {}, S = C != null && C.headPicture ?
|
|
2876
|
+
const C = Yt() ?? {}, S = C != null && C.headPicture ? On(C.headPicture) : void 0;
|
|
2877
2877
|
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({
|
|
2878
2878
|
getHistoryList: r,
|
|
2879
2879
|
getSearchList: s
|
|
@@ -2881,7 +2881,7 @@ const Kt = (t, e = "") => {
|
|
|
2881
2881
|
const P = J().subAppList ?? [];
|
|
2882
2882
|
P.length && (P.forEach((T) => {
|
|
2883
2883
|
T.menus = [], T.originalMenus = [];
|
|
2884
|
-
}),
|
|
2884
|
+
}), Se([{ key: "subAppList", value: P }])), d.value = !0;
|
|
2885
2885
|
}), { loading: a, innerPage: c, commandList: l, layoutInited: d, initNextTick: () => new Promise((b) => {
|
|
2886
2886
|
const y = async () => {
|
|
2887
2887
|
var v;
|
|
@@ -2907,7 +2907,7 @@ const Kt = (t, e = "") => {
|
|
|
2907
2907
|
const { entryMenu: t } = rn();
|
|
2908
2908
|
R.menu.addEventListener("onItemClick", async (e) => {
|
|
2909
2909
|
ce.innerSet = !0;
|
|
2910
|
-
const n =
|
|
2910
|
+
const n = Oe(zt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
2911
2911
|
if (!(n && !n.routeUrl)) {
|
|
2912
2912
|
if (!n) {
|
|
2913
2913
|
const { title: o, content: r, desc: s } = await Zn(n);
|
|
@@ -2941,23 +2941,23 @@ const Kt = (t, e = "") => {
|
|
|
2941
2941
|
G(
|
|
2942
2942
|
() => t.currentRoute.value,
|
|
2943
2943
|
async (p) => {
|
|
2944
|
-
var P, I, T, D,
|
|
2944
|
+
var P, I, T, D, O, F, z;
|
|
2945
2945
|
const v = ((P = p.meta) == null ? void 0 : P.showLayout) ?? !0;
|
|
2946
2946
|
let A = ((I = p.query) == null ? void 0 : I.showLayout) ?? !0;
|
|
2947
|
-
if (A === "false" && (A = !1), !v || !A || p.path === c &&
|
|
2947
|
+
if (A === "false" && (A = !1), !v || !A || p.path === c && wn(p.query, l)) return;
|
|
2948
2948
|
c = dt(p.path), l = dt(p.query);
|
|
2949
|
-
const
|
|
2950
|
-
if (!
|
|
2949
|
+
const _ = J().currentSubAppCode ?? "";
|
|
2950
|
+
if (!_) return;
|
|
2951
2951
|
const C = ((T = p.query) == null ? void 0 : T.menu) ?? ((D = me()) == null ? void 0 : D.currentCode) ?? "";
|
|
2952
2952
|
if (!C) return;
|
|
2953
2953
|
const S = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
2954
|
-
S && JSON.stringify(S) !== "{}" && (r.value = (
|
|
2954
|
+
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);
|
|
2955
2955
|
}
|
|
2956
2956
|
);
|
|
2957
2957
|
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: f, unloadRoute: d } = es(), h = (p) => {
|
|
2958
2958
|
var C;
|
|
2959
|
-
const v =
|
|
2960
|
-
u({ currentMenu: v, route: { path:
|
|
2959
|
+
const v = Oe(zt(p.applicationCode)).find((S) => S.code === p.code), _ = (((C = me().tabMap) == null ? void 0 : C[p.applicationCode]) ?? []).find((S) => S.code === p.code);
|
|
2960
|
+
u({ currentMenu: v, route: { path: _.path, query: _.query ?? {} } });
|
|
2961
2961
|
}, b = (p) => {
|
|
2962
2962
|
if (!p || !p.length) return;
|
|
2963
2963
|
const v = p.map((A) => A.path);
|
|
@@ -2965,7 +2965,7 @@ const Kt = (t, e = "") => {
|
|
|
2965
2965
|
}, y = (p) => {
|
|
2966
2966
|
const v = J().currentSubAppCode ?? "";
|
|
2967
2967
|
ce.innerSet = !0;
|
|
2968
|
-
const A = me(),
|
|
2968
|
+
const A = me(), _ = A.tabMap[v], C = _.findIndex((O) => O.code === p.data.code);
|
|
2969
2969
|
if (C === -1) return;
|
|
2970
2970
|
const S = () => {
|
|
2971
2971
|
var z;
|
|
@@ -2973,33 +2973,33 @@ const Kt = (t, e = "") => {
|
|
|
2973
2973
|
F = { ...F, value: F.code, label: F.name }, i(F), R.nav.removeItem(v);
|
|
2974
2974
|
};
|
|
2975
2975
|
({
|
|
2976
|
-
me: async (
|
|
2977
|
-
if (
|
|
2976
|
+
me: async (O) => {
|
|
2977
|
+
if (_.length === 1) {
|
|
2978
2978
|
S();
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
2981
|
const F = A.currentCode;
|
|
2982
2982
|
let z = null;
|
|
2983
|
-
F ===
|
|
2983
|
+
F === O.value && (C + 1 === _.length ? _[C - 1] && (z = _[C - 1]) : _[C + 1] && (z = _[C + 1])), _.splice(C, 1), b([O]), ve([{ key: `tabMap:${v}`, value: _ }]), z ? h(z) : ve([{ key: `preTab:${v}`, value: {} }]);
|
|
2984
2984
|
},
|
|
2985
2985
|
all: S,
|
|
2986
|
-
other: async (
|
|
2987
|
-
const F =
|
|
2988
|
-
t.push({
|
|
2986
|
+
other: async (O) => {
|
|
2987
|
+
const F = _[C];
|
|
2988
|
+
await t.push({
|
|
2989
2989
|
path: `/${F.applicationPath}${F.path}`.replace(/\/\//g, "/"),
|
|
2990
2990
|
query: F.query
|
|
2991
2991
|
}), R.menu.setActiveItem(F.menuId), R.tab.setActiveItem(F.code);
|
|
2992
|
-
const z =
|
|
2992
|
+
const z = _.filter((ie) => ie.code !== O.value);
|
|
2993
2993
|
z.forEach((ie) => R.tab.removeItem(ie.code)), b(z), ve([{ key: `tabMap:${v}`, value: [F] }]), h(F);
|
|
2994
2994
|
},
|
|
2995
|
-
right: async (
|
|
2995
|
+
right: async (O) => {
|
|
2996
2996
|
const F = A.currentCode;
|
|
2997
|
-
if (F !==
|
|
2998
|
-
const
|
|
2999
|
-
h(
|
|
2997
|
+
if (F !== O.value && _.findIndex((Ce) => Ce.code === F) > C) {
|
|
2998
|
+
const Ce = _[C];
|
|
2999
|
+
h(Ce);
|
|
3000
3000
|
}
|
|
3001
|
-
const z =
|
|
3002
|
-
z.forEach((ie) => R.tab.removeItem(ie.code)), b(z),
|
|
3001
|
+
const z = _.slice(C + 1);
|
|
3002
|
+
z.forEach((ie) => R.tab.removeItem(ie.code)), b(z), _.splice(C + 1), ve([{ key: `tabMap:${v}`, value: _ }]);
|
|
3003
3003
|
}
|
|
3004
3004
|
})[p.type](p.data);
|
|
3005
3005
|
};
|
|
@@ -3012,24 +3012,24 @@ const Kt = (t, e = "") => {
|
|
|
3012
3012
|
let v = [];
|
|
3013
3013
|
const A = me().tabMap[p.applicationCode] ?? [];
|
|
3014
3014
|
if (p.type.key === "right") {
|
|
3015
|
-
const
|
|
3016
|
-
v = A.slice(
|
|
3015
|
+
const _ = A.findIndex((C) => C.code === p.data.value);
|
|
3016
|
+
v = A.slice(_ + 1);
|
|
3017
3017
|
}
|
|
3018
|
-
p.type.key === "other" && (v = A.filter((
|
|
3018
|
+
p.type.key === "other" && (v = A.filter((_) => _.code !== p.data.value)), p.type.key === "all" && (v = [...A]), Ut(
|
|
3019
3019
|
p.applicationCode,
|
|
3020
|
-
v.map((
|
|
3020
|
+
v.map((_) => _.code)
|
|
3021
3021
|
), y({ type: p.type.key, data: p.data });
|
|
3022
3022
|
}), R.tab.addEventListener("onPageRefresh", async (p) => {
|
|
3023
3023
|
if (!p || p.path === ct) return;
|
|
3024
3024
|
Ut(p.applicationCode, [p.code]);
|
|
3025
|
-
const v =
|
|
3025
|
+
const v = Oe(zt(p.applicationCode)).find((C) => C.code === p.code);
|
|
3026
3026
|
if (!v) return;
|
|
3027
3027
|
if (v.routeUrl !== p.path) {
|
|
3028
3028
|
f([p.path]), d([`/${p.applicationPath}${v.routeUrl}`]), await u({ currentMenu: v });
|
|
3029
3029
|
return;
|
|
3030
3030
|
}
|
|
3031
|
-
const A = { app: v.applicationCode, menu: v.code },
|
|
3032
|
-
|
|
3031
|
+
const A = { app: v.applicationCode, menu: v.code }, _ = { ...p.query };
|
|
3032
|
+
wn(A, _) || await u({ currentMenu: v }), f([p.path]);
|
|
3033
3033
|
});
|
|
3034
3034
|
const { enter: g } = ht();
|
|
3035
3035
|
return R.tab.addEventListener("onToggleFullScreen", g), { fontColor: r, backgroudColor: s, borderColor: a };
|
|
@@ -3051,7 +3051,7 @@ const Kt = (t, e = "") => {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
const n = J();
|
|
3053
3053
|
n.subAppList && n.subAppList.length && sessionStorage.setItem("has-subapp", "true"), t();
|
|
3054
|
-
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")),
|
|
3054
|
+
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), Le.addEventListenerFromMicroApp("system-reload", () => {
|
|
3055
3055
|
t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
3056
3056
|
});
|
|
3057
3057
|
}, vt = () => {
|
|
@@ -3062,51 +3062,51 @@ const Kt = (t, e = "") => {
|
|
|
3062
3062
|
R.menu.setItems([]), R.menu.setActiveItem(""), R.tab.setItems([]), R.tab.setActiveItem("");
|
|
3063
3063
|
}, l = async (d) => {
|
|
3064
3064
|
if (d.routeUrl && !a.includes(d.routeUrl)) return !0;
|
|
3065
|
-
const h = d.code ?? "", y = (J().subAppList ?? []).find((
|
|
3065
|
+
const h = d.code ?? "", y = (J().subAppList ?? []).find((_) => _.code === h);
|
|
3066
3066
|
let g = [], p = [], v = !1;
|
|
3067
3067
|
if (y && (g = y.menus ?? []), !g.length) {
|
|
3068
|
-
const { menus:
|
|
3068
|
+
const { menus: _, originalMenus: C, err: S } = await Xn(h);
|
|
3069
3069
|
if (S) return !1;
|
|
3070
|
-
g =
|
|
3070
|
+
g = _ ?? [], p = C ?? [];
|
|
3071
3071
|
}
|
|
3072
3072
|
if (g.length ? Kt(g) || (await Et({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), v = !0) : (await Et({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), v = !0), v) return !1;
|
|
3073
3073
|
const A = { ...d, menus: g, originalMenus: p };
|
|
3074
|
-
return
|
|
3074
|
+
return Se([{ key: "subAppList", value: A }]), !0;
|
|
3075
3075
|
}, i = async (d) => {
|
|
3076
|
-
var F, z, ie,
|
|
3076
|
+
var F, z, ie, Ce, Rt;
|
|
3077
3077
|
const { microApp: h = null, menuCode: b = "", menuPath: y = "", route: g = {} } = d;
|
|
3078
3078
|
let p = g;
|
|
3079
3079
|
if (!h && y) {
|
|
3080
3080
|
if (c(), !(a && a.find((oe) => y.startsWith("/" + oe) || y.startsWith(oe)))) return;
|
|
3081
|
-
t.push({ path: y, query: p.query });
|
|
3081
|
+
await t.push({ path: y, query: p.query });
|
|
3082
3082
|
return;
|
|
3083
3083
|
}
|
|
3084
3084
|
const v = ((F = p.meta) == null ? void 0 : F.showLayout) ?? !0;
|
|
3085
3085
|
let A = ((z = p.query) == null ? void 0 : z.showLayout) ?? !0;
|
|
3086
3086
|
A === "false" && (A = !1);
|
|
3087
|
-
const
|
|
3087
|
+
const _ = (h == null ? void 0 : h.openType) ?? 1, C = (h == null ? void 0 : h.type) ?? 1;
|
|
3088
3088
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
3089
3089
|
c();
|
|
3090
3090
|
const de = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
|
|
3091
|
-
if ((de == null ? void 0 : de.find((
|
|
3091
|
+
if ((de == null ? void 0 : de.find((ye) => ye.code === h.code)) || de == null || de.push(h), Se([
|
|
3092
3092
|
{ key: "currentSubApp", value: h },
|
|
3093
3093
|
{ key: "currentSubAppCode", value: h.code },
|
|
3094
3094
|
{ key: "subAppList", value: de }
|
|
3095
|
-
]), de.forEach((
|
|
3096
|
-
const ze = { ...
|
|
3095
|
+
]), de.forEach((ye) => {
|
|
3096
|
+
const ze = { ...ye, value: ye.code, label: ye.name };
|
|
3097
3097
|
R.nav.appendItem(ze);
|
|
3098
3098
|
}), R.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
3099
|
-
t.push({ path: h.routeUrl, query: { ...p.query, app: h.code } });
|
|
3099
|
+
await t.push({ path: h.routeUrl, query: { ...p.query, app: h.code } });
|
|
3100
3100
|
return;
|
|
3101
3101
|
}
|
|
3102
|
-
if (
|
|
3103
|
-
const
|
|
3104
|
-
t.push({
|
|
3102
|
+
if (_ === 1 && C === 2) {
|
|
3103
|
+
const ye = En(_n(bn(h.routeUrl)));
|
|
3104
|
+
await t.push({
|
|
3105
3105
|
path: ct,
|
|
3106
3106
|
query: {
|
|
3107
3107
|
...p.query,
|
|
3108
3108
|
app: h.code,
|
|
3109
|
-
iframeSrc:
|
|
3109
|
+
iframeSrc: ye
|
|
3110
3110
|
}
|
|
3111
3111
|
});
|
|
3112
3112
|
return;
|
|
@@ -3124,29 +3124,29 @@ const Kt = (t, e = "") => {
|
|
|
3124
3124
|
query: { ...D, app: I.applicationCode, menu: I.code },
|
|
3125
3125
|
meta: { ...(p == null ? void 0 : p.meta) ?? {} }
|
|
3126
3126
|
}), P && (P == null ? void 0 : P.code) !== (h == null ? void 0 : h.code)) {
|
|
3127
|
-
if (P.fixed && (t.push(P.path), c(), R.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3128
|
-
const de = (
|
|
3129
|
-
await i({ microApp: de, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query:
|
|
3127
|
+
if (P.fixed && (await t.push(P.path), c(), R.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3128
|
+
const de = (Ce = J().subAppList) == null ? void 0 : Ce.find((ze) => ze.code === P.code), oe = me().preTab[P.code], ye = { ...(oe == null ? void 0 : oe.query) ?? {} };
|
|
3129
|
+
await i({ microApp: de, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query: ye } });
|
|
3130
3130
|
}
|
|
3131
3131
|
return;
|
|
3132
3132
|
}
|
|
3133
|
-
const
|
|
3133
|
+
const O = P || h;
|
|
3134
3134
|
if (!I && y) {
|
|
3135
|
-
t.push({
|
|
3135
|
+
await t.push({
|
|
3136
3136
|
path: y,
|
|
3137
3137
|
query: {
|
|
3138
3138
|
...p.query,
|
|
3139
|
-
app:
|
|
3139
|
+
app: O.code
|
|
3140
3140
|
}
|
|
3141
3141
|
});
|
|
3142
3142
|
return;
|
|
3143
3143
|
}
|
|
3144
3144
|
if (v && A) {
|
|
3145
3145
|
(Rt = J().subAppList) == null || Rt.forEach((oe) => {
|
|
3146
|
-
const
|
|
3147
|
-
R.nav.appendItem(
|
|
3148
|
-
}), R.nav.setActiveItem(
|
|
3149
|
-
const de = me().tabMap[
|
|
3146
|
+
const ye = { ...oe, value: oe.code, label: oe.name };
|
|
3147
|
+
R.nav.appendItem(ye);
|
|
3148
|
+
}), R.nav.setActiveItem(O.code), R.menu.setItems(S);
|
|
3149
|
+
const de = me().tabMap[O.code] ?? [];
|
|
3150
3150
|
de.length && de.forEach((oe) => {
|
|
3151
3151
|
R.tab.appendItem({
|
|
3152
3152
|
...oe,
|
|
@@ -3159,7 +3159,7 @@ const Kt = (t, e = "") => {
|
|
|
3159
3159
|
}, u = async (d) => {
|
|
3160
3160
|
var h;
|
|
3161
3161
|
if (ce.innerSet = !0, d.fixed) {
|
|
3162
|
-
t.push(d.path), R.menu.setItems([]), R.tab.setItems([]), R.nav.setActiveItem(d.path),
|
|
3162
|
+
await t.push(d.path), R.menu.setItems([]), R.tab.setItems([]), R.nav.setActiveItem(d.path), Se([
|
|
3163
3163
|
{ key: "currentSubAppCode", value: "" },
|
|
3164
3164
|
{ key: "currentSubApp", value: {} }
|
|
3165
3165
|
]), ve([
|
|
@@ -3189,7 +3189,7 @@ const Kt = (t, e = "") => {
|
|
|
3189
3189
|
n(v);
|
|
3190
3190
|
}
|
|
3191
3191
|
let g = null;
|
|
3192
|
-
if (h.currentSubAppCode === d.code && (b + 1 !== h.subAppList.length ? h.subAppList[b + 1] && (g = h.subAppList[b + 1]) : h.subAppList[b - 1] && (g = h.subAppList[b - 1])), h.subAppList.splice(b, 1),
|
|
3192
|
+
if (h.currentSubAppCode === d.code && (b + 1 !== h.subAppList.length ? h.subAppList[b + 1] && (g = h.subAppList[b + 1]) : h.subAppList[b - 1] && (g = h.subAppList[b - 1])), h.subAppList.splice(b, 1), Se([{ key: "subAppList", value: h.subAppList }]), ve([
|
|
3193
3193
|
{ key: `preTab:${d.code}`, value: {} },
|
|
3194
3194
|
{ key: `tabMap:${d.code}`, value: [] }
|
|
3195
3195
|
]), g) {
|
|
@@ -3216,18 +3216,18 @@ const Kt = (t, e = "") => {
|
|
|
3216
3216
|
if (u === 1)
|
|
3217
3217
|
if (f === 1)
|
|
3218
3218
|
if (a.routeUrl.startsWith(ct)) {
|
|
3219
|
-
|
|
3219
|
+
d = ct;
|
|
3220
3220
|
const g = Hs(a.routeUrl, "iframeSrc");
|
|
3221
|
-
i = { ...i, iframeSrc: g }, t.push({ path: d, query: i });
|
|
3222
|
-
} else a.applicationPath && (d = l || a.routeUrl, d = `/${a.applicationPath}${d}`.replace(/\/\//g, "/"), t.push({ path: d, query: i }));
|
|
3221
|
+
i = { ...i, iframeSrc: g }, await t.push({ path: d, query: i });
|
|
3222
|
+
} else a.applicationPath && (d = l || a.routeUrl, d = `/${a.applicationPath}${d}`.replace(/\/\//g, "/"), await t.push({ path: d, query: i }));
|
|
3223
3223
|
else {
|
|
3224
|
-
|
|
3225
|
-
const g = En(
|
|
3226
|
-
i = { ...i, iframeSrc: g }, t.push({ path: d, query: i });
|
|
3224
|
+
d = ct;
|
|
3225
|
+
const g = En(_n(bn(a.routeUrl)));
|
|
3226
|
+
i = { ...i, iframeSrc: g }, await t.push({ path: d, query: i });
|
|
3227
3227
|
}
|
|
3228
3228
|
if (u === 2) {
|
|
3229
3229
|
let g = f === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
|
|
3230
|
-
g = En(
|
|
3230
|
+
g = En(_n(bn(g))), ce.innerSet ? (d = Cr, await t.push({ path: d, query: i }), g && window.open(g, "_blank")) : f === 1 && (d = g, i = { ...i, showLayout: !1 }, await t.push({
|
|
3231
3231
|
path: d,
|
|
3232
3232
|
query: i
|
|
3233
3233
|
}));
|
|
@@ -3274,15 +3274,15 @@ const Kt = (t, e = "") => {
|
|
|
3274
3274
|
let { mainAppName: s = "", microAppName: a = "", microApps: c = [] } = tt();
|
|
3275
3275
|
!s && a && (c = [{ name: a }]);
|
|
3276
3276
|
const l = async (f) => {
|
|
3277
|
-
var
|
|
3277
|
+
var _, C, S, P;
|
|
3278
3278
|
let d = { ...f }, { showLayout: h = !0 } = d.query;
|
|
3279
3279
|
h === "false" && (h = !1);
|
|
3280
3280
|
const b = async () => {
|
|
3281
|
-
var D,
|
|
3281
|
+
var D, O;
|
|
3282
3282
|
let I = J().appcategorys ?? [];
|
|
3283
3283
|
if (!Array.isArray(I)) return [];
|
|
3284
3284
|
if (d.query) {
|
|
3285
|
-
const F = ((D = d.query) == null ? void 0 : D.project) ?? ((
|
|
3285
|
+
const F = ((D = d.query) == null ? void 0 : D.project) ?? ((O = d.query) == null ? void 0 : O.projectId) ?? "";
|
|
3286
3286
|
if (!I.length || F && F !== Fe().id) {
|
|
3287
3287
|
await e();
|
|
3288
3288
|
const { navConfig: z } = await Xr();
|
|
@@ -3305,12 +3305,12 @@ const Kt = (t, e = "") => {
|
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
|
-
const g = await b(), p = g.map((I) => I.code), v = ((
|
|
3308
|
+
const g = await b(), p = g.map((I) => I.code), v = ((_ = d.query) == null ? void 0 : _.app) ?? "", A = ((C = J()) == null ? void 0 : C.subAppList) ?? [];
|
|
3309
3309
|
if (A.length) {
|
|
3310
3310
|
const I = A.filter((D) => D.code !== v && !p.includes(D.code)), T = A.filter(
|
|
3311
3311
|
(D) => v === D.code || p.includes(D.code)
|
|
3312
3312
|
);
|
|
3313
|
-
|
|
3313
|
+
Se([{ key: "subAppList", value: T }]), I && I.length && I.forEach((D) => {
|
|
3314
3314
|
ve([
|
|
3315
3315
|
{ key: `preTab:${D.code}`, value: {} },
|
|
3316
3316
|
{ key: `tabMap:${D.code}`, value: [] }
|
|
@@ -3323,11 +3323,11 @@ const Kt = (t, e = "") => {
|
|
|
3323
3323
|
const { currentApp: T } = $n(d.query.app);
|
|
3324
3324
|
if (T) {
|
|
3325
3325
|
I = T;
|
|
3326
|
-
const
|
|
3327
|
-
d = {},
|
|
3326
|
+
const O = (me().preTab ?? {})[I.code];
|
|
3327
|
+
d = {}, O && (d.path = `/${O.applicationPath}${O.path}`.replace(/\/\//g, "/"), d.query = O.query);
|
|
3328
3328
|
}
|
|
3329
3329
|
}
|
|
3330
|
-
I != null && I.fixed ? (r.push(I.path), R.menu.setItems([]), R.tab.setItems([]), R.nav.setActiveItem(I.path)) : o({ microApp: I, menuCode: d.query.menu, menuPath: d.path, route: d });
|
|
3330
|
+
I != null && I.fixed ? (await r.push(I.path), R.menu.setItems([]), R.tab.setItems([]), R.nav.setActiveItem(I.path)) : o({ microApp: I, menuCode: d.query.menu, menuPath: d.path, route: d });
|
|
3331
3331
|
return;
|
|
3332
3332
|
} else {
|
|
3333
3333
|
const I = c && c.find(
|
|
@@ -3352,7 +3352,7 @@ const Kt = (t, e = "") => {
|
|
|
3352
3352
|
R.nav.appendItem(D);
|
|
3353
3353
|
});
|
|
3354
3354
|
const I = t.value.find((T) => T.path === location.pathname);
|
|
3355
|
-
I && (R.nav.setActiveItem(I.path), R.menu.setItems([]), R.tab.setItems([]),
|
|
3355
|
+
I && (R.nav.setActiveItem(I.path), R.menu.setItems([]), R.tab.setItems([]), Se([
|
|
3356
3356
|
{ key: "currentSubAppCode", value: "" },
|
|
3357
3357
|
{ key: "currentSubApp", value: {} }
|
|
3358
3358
|
]), ve([
|
|
@@ -3365,7 +3365,7 @@ const Kt = (t, e = "") => {
|
|
|
3365
3365
|
G(
|
|
3366
3366
|
() => r.currentRoute.value,
|
|
3367
3367
|
async (f) => {
|
|
3368
|
-
if (!(f.path === i &&
|
|
3368
|
+
if (!(f.path === i && wn(f.query, u))) {
|
|
3369
3369
|
if (i = dt(f.path), u = dt(f.query), await n(), ce.innerSet) {
|
|
3370
3370
|
ce.innerSet = !1;
|
|
3371
3371
|
return;
|
|
@@ -3383,7 +3383,7 @@ const Kt = (t, e = "") => {
|
|
|
3383
3383
|
ce.routeKeepAliveVisible = !0, ce.excludeRoutes = [];
|
|
3384
3384
|
}, 100);
|
|
3385
3385
|
} }), gp = () => {
|
|
3386
|
-
const t =
|
|
3386
|
+
const t = Os(), e = sp(), n = tt(), o = async () => {
|
|
3387
3387
|
const a = {
|
|
3388
3388
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
3389
3389
|
}, c = `${location.origin}/`, l = {
|
|
@@ -3400,7 +3400,7 @@ const Kt = (t, e = "") => {
|
|
|
3400
3400
|
const i = Object.keys(l).map((f) => `${f}=${l[f]}`).join("&"), u = `${n.baseURL}${a.logout}?${i}`;
|
|
3401
3401
|
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), qs(), localStorage.removeItem("idelTime");
|
|
3402
3402
|
}, { entryApp: r } = vt(), s = async () => {
|
|
3403
|
-
const a = "personCenter", l = (J().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: i = [] } = await Xn(a), f =
|
|
3403
|
+
const a = "personCenter", l = (J().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: i = [] } = await Xn(a), f = Oe(i).filter((h) => h.isMenu && h.routeUrl).find((h) => h.routeUrl === "/userInfo");
|
|
3404
3404
|
if (f != null && f.disable || f != null && f.expired) {
|
|
3405
3405
|
const { title: h, content: b, desc: y } = await Zn(f);
|
|
3406
3406
|
await Et({ title: h, content: b, desc: y });
|
|
@@ -3429,7 +3429,7 @@ const Kt = (t, e = "") => {
|
|
|
3429
3429
|
r();
|
|
3430
3430
|
});
|
|
3431
3431
|
const s = () => {
|
|
3432
|
-
Sr(),
|
|
3432
|
+
Sr(), Oi(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
3433
3433
|
};
|
|
3434
3434
|
return {
|
|
3435
3435
|
changeEnterprisesVisible: e,
|
|
@@ -3457,12 +3457,12 @@ const Kt = (t, e = "") => {
|
|
|
3457
3457
|
if (t != null && t.ssoLocale)
|
|
3458
3458
|
A = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${c}`;
|
|
3459
3459
|
else {
|
|
3460
|
-
const [
|
|
3460
|
+
const [_, C] = await vp().run();
|
|
3461
3461
|
C != null && C.loginHost && (A = `${C.loginHost}/oauth/refreshOauthToken?tenantId=${c}`);
|
|
3462
3462
|
}
|
|
3463
3463
|
if (A) {
|
|
3464
|
-
const
|
|
3465
|
-
|
|
3464
|
+
const _ = document.createElement("iframe");
|
|
3465
|
+
_.src = A, _.style.display = "none", document.body.appendChild(_), setTimeout(() => s(), 300);
|
|
3466
3466
|
} else
|
|
3467
3467
|
s();
|
|
3468
3468
|
}
|
|
@@ -3470,16 +3470,16 @@ const Kt = (t, e = "") => {
|
|
|
3470
3470
|
}, Ap = () => {
|
|
3471
3471
|
const { changeEnterprise: t } = ts();
|
|
3472
3472
|
R.nav.addEventListener("onProjectChange", async (e) => {
|
|
3473
|
-
const n =
|
|
3473
|
+
const n = Mn();
|
|
3474
3474
|
if ((n == null ? void 0 : n.flag) === 4) {
|
|
3475
3475
|
const o = n.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
|
|
3476
3476
|
o !== r && await t(r);
|
|
3477
3477
|
}
|
|
3478
3478
|
Ir(e || { id: 0 }), lr((e == null ? void 0 : e.id) || 0), (n == null ? void 0 : n.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
3479
3479
|
});
|
|
3480
|
-
}, yp = We.get("/menu/search"),
|
|
3480
|
+
}, yp = We.get("/menu/search"), wp = We.get("/searchhistory"), _p = We.post("/searchhistory"), bp = We.delete("/searchhistory"), Cp = We.delete("/searchhistory/deleteone"), Ip = () => {
|
|
3481
3481
|
const t = async () => {
|
|
3482
|
-
const [o, r] = await
|
|
3482
|
+
const [o, r] = await wp().run();
|
|
3483
3483
|
return o ? [] : r.map((s) => s.clickData).filter((s) => s.routeUrl);
|
|
3484
3484
|
}, e = async (o) => {
|
|
3485
3485
|
const [r, s] = await yp().run({ name: o });
|
|
@@ -3492,7 +3492,7 @@ const Kt = (t, e = "") => {
|
|
|
3492
3492
|
await Et({ title: u, content: f, desc: d });
|
|
3493
3493
|
return;
|
|
3494
3494
|
}
|
|
3495
|
-
await
|
|
3495
|
+
await _p().run({ searchVal: s, clickData: r });
|
|
3496
3496
|
const i = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
|
|
3497
3497
|
i && (n({ microApp: i, menuCode: r.code }), a());
|
|
3498
3498
|
}), R.nav.addEventListener("deleteSearchItem", async (o) => {
|
|
@@ -3511,7 +3511,7 @@ const Kt = (t, e = "") => {
|
|
|
3511
3511
|
excludeRoutes: [],
|
|
3512
3512
|
routeKeepAliveVisible: !0
|
|
3513
3513
|
}), Tp = () => {
|
|
3514
|
-
|
|
3514
|
+
Le.addEventListenerFromMicroApp("iot:change-instance", (t) => {
|
|
3515
3515
|
const e = J(), n = e.currentSubAppCode;
|
|
3516
3516
|
let o = zt(n);
|
|
3517
3517
|
o.forEach((s) => {
|
|
@@ -3520,7 +3520,7 @@ const Kt = (t, e = "") => {
|
|
|
3520
3520
|
const r = e.subAppList;
|
|
3521
3521
|
r == null || r.forEach((s) => {
|
|
3522
3522
|
s.code === n && (s.menus = o);
|
|
3523
|
-
}),
|
|
3523
|
+
}), Se([
|
|
3524
3524
|
{
|
|
3525
3525
|
key: "currentSubApp",
|
|
3526
3526
|
value: r == null ? void 0 : r.find((s) => s.code === n)
|
|
@@ -3533,21 +3533,21 @@ const Kt = (t, e = "") => {
|
|
|
3533
3533
|
});
|
|
3534
3534
|
}, Ep = (t) => {
|
|
3535
3535
|
["personcenter", "rightmanage"].forEach((n) => {
|
|
3536
|
-
|
|
3537
|
-
const { userInfo: r } = o.data, s = r != null && r.headPicture ?
|
|
3536
|
+
Le.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
|
|
3537
|
+
const { userInfo: r } = o.data, s = r != null && r.headPicture ? On(r.headPicture) : void 0;
|
|
3538
3538
|
R.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
3539
3539
|
});
|
|
3540
3540
|
});
|
|
3541
3541
|
}, Sp = () => {
|
|
3542
|
-
|
|
3542
|
+
Le.addEventListenerFromMicroApp("devicePanelShow", (t) => {
|
|
3543
3543
|
const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
|
|
3544
3544
|
fr(e, n, o, r, s, a);
|
|
3545
|
-
}),
|
|
3545
|
+
}), Le.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
|
|
3546
3546
|
Xs();
|
|
3547
|
-
}),
|
|
3547
|
+
}), Le.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
|
|
3548
3548
|
const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
|
|
3549
3549
|
Zs(e, n, o);
|
|
3550
|
-
}),
|
|
3550
|
+
}), Le.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
|
|
3551
3551
|
Ys();
|
|
3552
3552
|
});
|
|
3553
3553
|
}, kp = Qn.get("/platform/login/pwd-advance-notify-check"), Pp = () => {
|
|
@@ -3563,7 +3563,7 @@ const Kt = (t, e = "") => {
|
|
|
3563
3563
|
await kp().run();
|
|
3564
3564
|
},
|
|
3565
3565
|
message: async (a) => {
|
|
3566
|
-
if (
|
|
3566
|
+
if (Le.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
|
|
3567
3567
|
const l = Fe().id;
|
|
3568
3568
|
t.value = a.filter(
|
|
3569
3569
|
(i) => i.projectId === l || i.projectId === 0 || i.projectId === "0"
|
|
@@ -3603,8 +3603,8 @@ const Kt = (t, e = "") => {
|
|
|
3603
3603
|
}), Zt(() => {
|
|
3604
3604
|
e.value && e.value.disconnect(), e.value = null;
|
|
3605
3605
|
});
|
|
3606
|
-
}, Lp = "v1", $p = ft(`/api/enterpriseright/permission/${Lp}`), ns = ft("/api/device-relation/deviceproject/v1/project/device/video",
|
|
3607
|
-
function
|
|
3606
|
+
}, 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");
|
|
3607
|
+
function Op(t) {
|
|
3608
3608
|
const e = Fe() ? Fe().id : 1;
|
|
3609
3609
|
return t.params || (t.params = {}), t.params.project = e, t.params.projectId = e, t;
|
|
3610
3610
|
}
|
|
@@ -3617,7 +3617,7 @@ function os(t) {
|
|
|
3617
3617
|
function Xo(t) {
|
|
3618
3618
|
return ns.post(`/ptz?${os(t)}`)().run();
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function Mp(t) {
|
|
3621
3621
|
return ns.post(`/url/preview?${os(t)}`)().run();
|
|
3622
3622
|
}
|
|
3623
3623
|
const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
@@ -3654,7 +3654,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3654
3654
|
/* CLASS, NEED_HYDRATION */
|
|
3655
3655
|
));
|
|
3656
3656
|
}
|
|
3657
|
-
}), xp = /* @__PURE__ */
|
|
3657
|
+
}), xp = /* @__PURE__ */ be(Rp, [["__scopeId", "data-v-68946aef"]]), Qp = { class: "layout-wrapper" }, jp = /* @__PURE__ */ ne({
|
|
3658
3658
|
__name: "GridLayout",
|
|
3659
3659
|
props: {
|
|
3660
3660
|
gridNum: {},
|
|
@@ -3690,7 +3690,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3690
3690
|
))
|
|
3691
3691
|
]));
|
|
3692
3692
|
}
|
|
3693
|
-
}), Np = /* @__PURE__ */
|
|
3693
|
+
}), Np = /* @__PURE__ */ be(jp, [["__scopeId", "data-v-22baf4d8"]]), Hp = /* @__PURE__ */ ne({
|
|
3694
3694
|
__name: "DirectionControl",
|
|
3695
3695
|
emits: ["change"],
|
|
3696
3696
|
setup(t, { emit: e }) {
|
|
@@ -3799,7 +3799,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3799
3799
|
/* NEED_HYDRATION */
|
|
3800
3800
|
));
|
|
3801
3801
|
}
|
|
3802
|
-
}), Up = /* @__PURE__ */
|
|
3802
|
+
}), Up = /* @__PURE__ */ be(Hp, [["__scopeId", "data-v-69100474"]]), Fp = { class: "video-wrapper" }, Vp = { class: "video-top" }, Wp = { class: "video-top_l" }, zp = { class: "video-title-wrapper" }, qp = { class: "video-title" }, Jp = { class: "video-top_r" }, Kp = {
|
|
3803
3803
|
key: 0,
|
|
3804
3804
|
class: "play-status"
|
|
3805
3805
|
}, Gp = { class: "video-bottom" }, Xp = { class: "video-bottom_r" }, Zp = /* @__PURE__ */ ne({
|
|
@@ -3828,7 +3828,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3828
3828
|
var A;
|
|
3829
3829
|
return (A = c.value) == null ? void 0 : A.video;
|
|
3830
3830
|
}), i = E(!1), u = E(!0), f = (A) => {
|
|
3831
|
-
s.value = A, s.value.on(window.mpegts.Events.ERROR, (
|
|
3831
|
+
s.value = A, s.value.on(window.mpegts.Events.ERROR, (_) => {
|
|
3832
3832
|
});
|
|
3833
3833
|
}, d = () => {
|
|
3834
3834
|
r.value = !r.value, s.value && (s.value.muted = r.value);
|
|
@@ -3838,8 +3838,8 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3838
3838
|
const A = document.createElement("canvas");
|
|
3839
3839
|
if (l.value) {
|
|
3840
3840
|
A.width = l.value.clientWidth, A.height = l.value.clientHeight;
|
|
3841
|
-
const
|
|
3842
|
-
|
|
3841
|
+
const _ = A.getContext("2d");
|
|
3842
|
+
_ == null || _.drawImage(l.value, 0, 0, A.width, A.height);
|
|
3843
3843
|
const C = A.toDataURL("image/jpg"), S = `【${n.title}】${Cn().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
3844
3844
|
if (b.value = C, "download" in document.createElement("a")) {
|
|
3845
3845
|
const P = document.createElement("a");
|
|
@@ -3892,7 +3892,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3892
3892
|
u.value = !0;
|
|
3893
3893
|
});
|
|
3894
3894
|
}
|
|
3895
|
-
), (A,
|
|
3895
|
+
), (A, _) => ($(), W("div", Fp, [
|
|
3896
3896
|
Q(m(gr), {
|
|
3897
3897
|
spinning: n.loading,
|
|
3898
3898
|
type: "component",
|
|
@@ -3926,7 +3926,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3926
3926
|
src: n.videoUrl
|
|
3927
3927
|
}, null, 8, ["muted", "src"])) : j("v-if", !0),
|
|
3928
3928
|
B("div", Gp, [
|
|
3929
|
-
|
|
3929
|
+
_[3] || (_[3] = B(
|
|
3930
3930
|
"div",
|
|
3931
3931
|
{ class: "video-bottom_l" },
|
|
3932
3932
|
null,
|
|
@@ -3938,7 +3938,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3938
3938
|
"div",
|
|
3939
3939
|
{
|
|
3940
3940
|
class: "controls",
|
|
3941
|
-
onDblclick:
|
|
3941
|
+
onDblclick: _[2] || (_[2] = le((C) => C.stopPropagation(), ["stop"]))
|
|
3942
3942
|
},
|
|
3943
3943
|
[
|
|
3944
3944
|
Q(m(ge), { content: "声音" }, {
|
|
@@ -3972,7 +3972,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3972
3972
|
key: 0,
|
|
3973
3973
|
class: "icon icon-shrink",
|
|
3974
3974
|
icon: "shrink",
|
|
3975
|
-
onClick:
|
|
3975
|
+
onClick: _[0] || (_[0] = le((C) => p("zoomOut"), ["stop"]))
|
|
3976
3976
|
})) : j("v-if", !0)
|
|
3977
3977
|
]),
|
|
3978
3978
|
_: 1
|
|
@@ -3987,7 +3987,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3987
3987
|
key: 0,
|
|
3988
3988
|
class: "icon icon-enlarge",
|
|
3989
3989
|
icon: "enlarge",
|
|
3990
|
-
onClick:
|
|
3990
|
+
onClick: _[1] || (_[1] = le((C) => p("zoomIn"), ["stop"]))
|
|
3991
3991
|
})) : j("v-if", !0)
|
|
3992
3992
|
]),
|
|
3993
3993
|
_: 1
|
|
@@ -4024,7 +4024,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
4024
4024
|
}, 8, ["spinning"])
|
|
4025
4025
|
]));
|
|
4026
4026
|
}
|
|
4027
|
-
}), Yp = /* @__PURE__ */
|
|
4027
|
+
}), Yp = /* @__PURE__ */ be(Zp, [["__scopeId", "data-v-6c626546"]]), ef = /* @__PURE__ */ ne({
|
|
4028
4028
|
props: {
|
|
4029
4029
|
deviceInfo: {
|
|
4030
4030
|
type: Object,
|
|
@@ -4040,7 +4040,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
4040
4040
|
var u;
|
|
4041
4041
|
if (!((u = n.value) != null && u.deviceId)) return;
|
|
4042
4042
|
o.value = !0;
|
|
4043
|
-
const [l, i] = await
|
|
4043
|
+
const [l, i] = await Mp({
|
|
4044
4044
|
productId: n.value.productId,
|
|
4045
4045
|
deviceId: n.value.deviceId
|
|
4046
4046
|
});
|
|
@@ -4361,10 +4361,10 @@ class sn {
|
|
|
4361
4361
|
return "";
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
|
-
var
|
|
4364
|
+
var w;
|
|
4365
4365
|
(function(t) {
|
|
4366
4366
|
t[t.Trace = 0] = "Trace", t[t.Debug = 1] = "Debug", t[t.Information = 2] = "Information", t[t.Warning = 3] = "Warning", t[t.Error = 4] = "Error", t[t.Critical = 5] = "Critical", t[t.None = 6] = "None";
|
|
4367
|
-
})(
|
|
4367
|
+
})(w || (w = {}));
|
|
4368
4368
|
class Pt {
|
|
4369
4369
|
constructor() {
|
|
4370
4370
|
}
|
|
@@ -4426,7 +4426,7 @@ function Ze(t) {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
async function ss(t, e, n, o, r, s) {
|
|
4428
4428
|
const a = {}, [c, l] = pt();
|
|
4429
|
-
a[c] = l, t.log(
|
|
4429
|
+
a[c] = l, t.log(w.Trace, `(${e} transport) sending data. ${Lt(r, s.logMessageContent)}.`);
|
|
4430
4430
|
const i = Ze(r) ? "arraybuffer" : "text", u = await n.post(o, {
|
|
4431
4431
|
content: r,
|
|
4432
4432
|
headers: { ...a, ...s.headers },
|
|
@@ -4434,10 +4434,10 @@ async function ss(t, e, n, o, r, s) {
|
|
|
4434
4434
|
timeout: s.timeout,
|
|
4435
4435
|
withCredentials: s.withCredentials
|
|
4436
4436
|
});
|
|
4437
|
-
t.log(
|
|
4437
|
+
t.log(w.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
4438
4438
|
}
|
|
4439
4439
|
function pf(t) {
|
|
4440
|
-
return t === void 0 ? new Xt(
|
|
4440
|
+
return t === void 0 ? new Xt(w.Information) : t === null ? Pt.instance : t.log !== void 0 ? t : new Xt(t);
|
|
4441
4441
|
}
|
|
4442
4442
|
class ff {
|
|
4443
4443
|
constructor(e, n) {
|
|
@@ -4455,16 +4455,16 @@ class Xt {
|
|
|
4455
4455
|
}
|
|
4456
4456
|
log(e, n) {
|
|
4457
4457
|
if (e >= this._minLevel) {
|
|
4458
|
-
const o = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${
|
|
4458
|
+
const o = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${w[e]}: ${n}`;
|
|
4459
4459
|
switch (e) {
|
|
4460
|
-
case
|
|
4461
|
-
case
|
|
4460
|
+
case w.Critical:
|
|
4461
|
+
case w.Error:
|
|
4462
4462
|
this.out.error(o);
|
|
4463
4463
|
break;
|
|
4464
|
-
case
|
|
4464
|
+
case w.Warning:
|
|
4465
4465
|
this.out.warn(o);
|
|
4466
4466
|
break;
|
|
4467
|
-
case
|
|
4467
|
+
case w.Information:
|
|
4468
4468
|
this.out.info(o);
|
|
4469
4469
|
break;
|
|
4470
4470
|
default:
|
|
@@ -4549,7 +4549,7 @@ class yf extends sn {
|
|
|
4549
4549
|
if (e.timeout) {
|
|
4550
4550
|
const l = e.timeout;
|
|
4551
4551
|
r = setTimeout(() => {
|
|
4552
|
-
n.abort(), this._logger.log(
|
|
4552
|
+
n.abort(), this._logger.log(w.Warning, "Timeout from HTTP request."), o = new Yn();
|
|
4553
4553
|
}, l);
|
|
4554
4554
|
}
|
|
4555
4555
|
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Ze(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
@@ -4569,7 +4569,7 @@ class yf extends sn {
|
|
|
4569
4569
|
signal: n.signal
|
|
4570
4570
|
});
|
|
4571
4571
|
} catch (l) {
|
|
4572
|
-
throw o || (this._logger.log(
|
|
4572
|
+
throw o || (this._logger.log(w.Warning, `Error from HTTP request. ${l}.`), l);
|
|
4573
4573
|
} finally {
|
|
4574
4574
|
r && clearTimeout(r), e.abortSignal && (e.abortSignal.onabort = null);
|
|
4575
4575
|
}
|
|
@@ -4604,7 +4604,7 @@ function Yo(t, e) {
|
|
|
4604
4604
|
}
|
|
4605
4605
|
return n;
|
|
4606
4606
|
}
|
|
4607
|
-
class
|
|
4607
|
+
class wf extends sn {
|
|
4608
4608
|
constructor(e) {
|
|
4609
4609
|
super(), this._logger = e;
|
|
4610
4610
|
}
|
|
@@ -4621,20 +4621,20 @@ class _f extends sn {
|
|
|
4621
4621
|
}), e.timeout && (r.timeout = e.timeout), r.onload = () => {
|
|
4622
4622
|
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? n(new rs(r.status, r.statusText, r.response || r.responseText)) : o(new Ke(r.response || r.responseText || r.statusText, r.status));
|
|
4623
4623
|
}, r.onerror = () => {
|
|
4624
|
-
this._logger.log(
|
|
4624
|
+
this._logger.log(w.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Ke(r.statusText, r.status));
|
|
4625
4625
|
}, r.ontimeout = () => {
|
|
4626
|
-
this._logger.log(
|
|
4626
|
+
this._logger.log(w.Warning, "Timeout from HTTP request."), o(new Yn());
|
|
4627
4627
|
}, r.send(e.content);
|
|
4628
4628
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
|
-
class
|
|
4631
|
+
class _f extends sn {
|
|
4632
4632
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
4633
4633
|
constructor(e) {
|
|
4634
4634
|
if (super(), typeof fetch < "u" || te.isNode)
|
|
4635
4635
|
this._httpClient = new yf(e);
|
|
4636
4636
|
else if (typeof XMLHttpRequest < "u")
|
|
4637
|
-
this._httpClient = new
|
|
4637
|
+
this._httpClient = new wf(e);
|
|
4638
4638
|
else
|
|
4639
4639
|
throw new Error("No usable HttpClient found.");
|
|
4640
4640
|
}
|
|
@@ -4646,40 +4646,40 @@ class wf extends sn {
|
|
|
4646
4646
|
return this._httpClient.getCookieString(e);
|
|
4647
4647
|
}
|
|
4648
4648
|
}
|
|
4649
|
-
class
|
|
4649
|
+
class _e {
|
|
4650
4650
|
static write(e) {
|
|
4651
|
-
return `${e}${
|
|
4651
|
+
return `${e}${_e.RecordSeparator}`;
|
|
4652
4652
|
}
|
|
4653
4653
|
static parse(e) {
|
|
4654
|
-
if (e[e.length - 1] !==
|
|
4654
|
+
if (e[e.length - 1] !== _e.RecordSeparator)
|
|
4655
4655
|
throw new Error("Message is incomplete.");
|
|
4656
|
-
const n = e.split(
|
|
4656
|
+
const n = e.split(_e.RecordSeparator);
|
|
4657
4657
|
return n.pop(), n;
|
|
4658
4658
|
}
|
|
4659
4659
|
}
|
|
4660
|
-
|
|
4661
|
-
|
|
4660
|
+
_e.RecordSeparatorCode = 30;
|
|
4661
|
+
_e.RecordSeparator = String.fromCharCode(_e.RecordSeparatorCode);
|
|
4662
4662
|
class bf {
|
|
4663
4663
|
// Handshake request is always JSON
|
|
4664
4664
|
writeHandshakeRequest(e) {
|
|
4665
|
-
return
|
|
4665
|
+
return _e.write(JSON.stringify(e));
|
|
4666
4666
|
}
|
|
4667
4667
|
parseHandshakeResponse(e) {
|
|
4668
4668
|
let n, o;
|
|
4669
4669
|
if (Ze(e)) {
|
|
4670
|
-
const c = new Uint8Array(e), l = c.indexOf(
|
|
4670
|
+
const c = new Uint8Array(e), l = c.indexOf(_e.RecordSeparatorCode);
|
|
4671
4671
|
if (l === -1)
|
|
4672
4672
|
throw new Error("Message is incomplete.");
|
|
4673
4673
|
const i = l + 1;
|
|
4674
4674
|
n = String.fromCharCode.apply(null, Array.prototype.slice.call(c.slice(0, i))), o = c.byteLength > i ? c.slice(i).buffer : null;
|
|
4675
4675
|
} else {
|
|
4676
|
-
const c = e, l = c.indexOf(
|
|
4676
|
+
const c = e, l = c.indexOf(_e.RecordSeparator);
|
|
4677
4677
|
if (l === -1)
|
|
4678
4678
|
throw new Error("Message is incomplete.");
|
|
4679
4679
|
const i = l + 1;
|
|
4680
4680
|
n = c.substring(0, i), o = c.length > i ? c.substring(i) : null;
|
|
4681
4681
|
}
|
|
4682
|
-
const r =
|
|
4682
|
+
const r = _e.parse(n), s = JSON.parse(r[0]);
|
|
4683
4683
|
if (s.type)
|
|
4684
4684
|
throw new Error("Expected a handshake response from the server.");
|
|
4685
4685
|
return [o, s];
|
|
@@ -4822,7 +4822,7 @@ class eo {
|
|
|
4822
4822
|
}
|
|
4823
4823
|
constructor(e, n, o, r, s, a, c) {
|
|
4824
4824
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4825
|
-
this._logger.log(
|
|
4825
|
+
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");
|
|
4826
4826
|
}, 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 });
|
|
4827
4827
|
}
|
|
4828
4828
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
@@ -4861,11 +4861,11 @@ class eo {
|
|
|
4861
4861
|
async _startWithStateTransitions() {
|
|
4862
4862
|
if (this._connectionState !== Y.Disconnected)
|
|
4863
4863
|
return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
|
|
4864
|
-
this._connectionState = Y.Connecting, this._logger.log(
|
|
4864
|
+
this._connectionState = Y.Connecting, this._logger.log(w.Debug, "Starting HubConnection.");
|
|
4865
4865
|
try {
|
|
4866
|
-
await this._startInternal(), te.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = Y.Connected, this._connectionStarted = !0, this._logger.log(
|
|
4866
|
+
await this._startInternal(), te.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = Y.Connected, this._connectionStarted = !0, this._logger.log(w.Debug, "HubConnection connected successfully.");
|
|
4867
4867
|
} catch (e) {
|
|
4868
|
-
return this._connectionState = Y.Disconnected, this._logger.log(
|
|
4868
|
+
return this._connectionState = Y.Disconnected, this._logger.log(w.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
|
|
4869
4869
|
}
|
|
4870
4870
|
}
|
|
4871
4871
|
async _startInternal() {
|
|
@@ -4881,14 +4881,14 @@ class eo {
|
|
|
4881
4881
|
protocol: this._protocol.name,
|
|
4882
4882
|
version: n
|
|
4883
4883
|
};
|
|
4884
|
-
if (this._logger.log(
|
|
4884
|
+
if (this._logger.log(w.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)), this._logger.log(w.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
|
|
4885
4885
|
throw this._stopDuringStartError;
|
|
4886
4886
|
(this.connection.features.reconnect || !1) && (this._messageBuffer = new If(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
|
|
4887
4887
|
if (this._messageBuffer)
|
|
4888
4888
|
return this._messageBuffer._resend();
|
|
4889
4889
|
}), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
|
|
4890
4890
|
} catch (n) {
|
|
4891
|
-
throw this._logger.log(
|
|
4891
|
+
throw this._logger.log(w.Debug, `Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`), this._cleanupTimeout(), this._cleanupPingTimer(), await this.connection.stop(n), n;
|
|
4892
4892
|
}
|
|
4893
4893
|
}
|
|
4894
4894
|
/** Stops the connection.
|
|
@@ -4905,11 +4905,11 @@ class eo {
|
|
|
4905
4905
|
}
|
|
4906
4906
|
_stopInternal(e) {
|
|
4907
4907
|
if (this._connectionState === Y.Disconnected)
|
|
4908
|
-
return this._logger.log(
|
|
4908
|
+
return this._logger.log(w.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
|
|
4909
4909
|
if (this._connectionState === Y.Disconnecting)
|
|
4910
|
-
return this._logger.log(
|
|
4910
|
+
return this._logger.log(w.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
|
|
4911
4911
|
const n = this._connectionState;
|
|
4912
|
-
return this._connectionState = Y.Disconnecting, this._logger.log(
|
|
4912
|
+
return this._connectionState = Y.Disconnecting, this._logger.log(w.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(w.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (n === Y.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new $e("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
|
|
4913
4913
|
}
|
|
4914
4914
|
async _sendCloseMessage() {
|
|
4915
4915
|
try {
|
|
@@ -5033,7 +5033,7 @@ class eo {
|
|
|
5033
5033
|
switch (o.type) {
|
|
5034
5034
|
case U.Invocation:
|
|
5035
5035
|
this._invokeClientMethod(o).catch((r) => {
|
|
5036
|
-
this._logger.log(
|
|
5036
|
+
this._logger.log(w.Error, `Invoke client method threw error: ${mn(r)}`);
|
|
5037
5037
|
});
|
|
5038
5038
|
break;
|
|
5039
5039
|
case U.StreamItem:
|
|
@@ -5044,7 +5044,7 @@ class eo {
|
|
|
5044
5044
|
try {
|
|
5045
5045
|
r(o);
|
|
5046
5046
|
} catch (s) {
|
|
5047
|
-
this._logger.log(
|
|
5047
|
+
this._logger.log(w.Error, `Stream callback threw error: ${mn(s)}`);
|
|
5048
5048
|
}
|
|
5049
5049
|
}
|
|
5050
5050
|
break;
|
|
@@ -5052,7 +5052,7 @@ class eo {
|
|
|
5052
5052
|
case U.Ping:
|
|
5053
5053
|
break;
|
|
5054
5054
|
case U.Close: {
|
|
5055
|
-
this._logger.log(
|
|
5055
|
+
this._logger.log(w.Information, "Close message received from server.");
|
|
5056
5056
|
const r = o.error ? new Error("Server returned an error on close: " + o.error) : void 0;
|
|
5057
5057
|
o.allowReconnect === !0 ? this.connection.stop(r) : this._stopPromise = this._stopInternal(r);
|
|
5058
5058
|
break;
|
|
@@ -5064,7 +5064,7 @@ class eo {
|
|
|
5064
5064
|
this._messageBuffer && this._messageBuffer._resetSequence(o);
|
|
5065
5065
|
break;
|
|
5066
5066
|
default:
|
|
5067
|
-
this._logger.log(
|
|
5067
|
+
this._logger.log(w.Warning, `Invalid message type: ${o.type}.`);
|
|
5068
5068
|
break;
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
@@ -5076,17 +5076,17 @@ class eo {
|
|
|
5076
5076
|
[o, n] = this._handshakeProtocol.parseHandshakeResponse(e);
|
|
5077
5077
|
} catch (r) {
|
|
5078
5078
|
const s = "Error parsing handshake response: " + r;
|
|
5079
|
-
this._logger.log(
|
|
5079
|
+
this._logger.log(w.Error, s);
|
|
5080
5080
|
const a = new Error(s);
|
|
5081
5081
|
throw this._handshakeRejecter(a), a;
|
|
5082
5082
|
}
|
|
5083
5083
|
if (n.error) {
|
|
5084
5084
|
const r = "Server returned handshake error: " + n.error;
|
|
5085
|
-
this._logger.log(
|
|
5085
|
+
this._logger.log(w.Error, r);
|
|
5086
5086
|
const s = new Error(r);
|
|
5087
5087
|
throw this._handshakeRejecter(s), s;
|
|
5088
5088
|
} else
|
|
5089
|
-
this._logger.log(
|
|
5089
|
+
this._logger.log(w.Debug, "Server handshake complete.");
|
|
5090
5090
|
return this._handshakeResolver(), o;
|
|
5091
5091
|
}
|
|
5092
5092
|
_resetKeepAliveInterval() {
|
|
@@ -5112,7 +5112,7 @@ class eo {
|
|
|
5112
5112
|
async _invokeClientMethod(e) {
|
|
5113
5113
|
const n = e.target.toLowerCase(), o = this._methods[n];
|
|
5114
5114
|
if (!o) {
|
|
5115
|
-
this._logger.log(
|
|
5115
|
+
this._logger.log(w.Warning, `No client method with the name '${n}' found.`), e.invocationId && (this._logger.log(w.Warning, `No result given for '${n}' method and invocation ID '${e.invocationId}'.`), await this._sendWithProtocol(this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)));
|
|
5116
5116
|
return;
|
|
5117
5117
|
}
|
|
5118
5118
|
const r = o.slice(), s = !!e.invocationId;
|
|
@@ -5120,14 +5120,14 @@ class eo {
|
|
|
5120
5120
|
for (const i of r)
|
|
5121
5121
|
try {
|
|
5122
5122
|
const u = a;
|
|
5123
|
-
a = await i.apply(this, e.arguments), s && a && u && (this._logger.log(
|
|
5123
|
+
a = await i.apply(this, e.arguments), s && a && u && (this._logger.log(w.Error, `Multiple results provided for '${n}'. Sending error to server.`), l = this._createCompletionMessage(e.invocationId, "Client provided multiple results.", null)), c = void 0;
|
|
5124
5124
|
} catch (u) {
|
|
5125
|
-
c = u, this._logger.log(
|
|
5125
|
+
c = u, this._logger.log(w.Error, `A callback for the method '${n}' threw error '${u}'.`);
|
|
5126
5126
|
}
|
|
5127
|
-
l ? await this._sendWithProtocol(l) : s ? (c ? l = this._createCompletionMessage(e.invocationId, `${c}`, null) : a !== void 0 ? l = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(
|
|
5127
|
+
l ? await this._sendWithProtocol(l) : s ? (c ? l = this._createCompletionMessage(e.invocationId, `${c}`, null) : a !== void 0 ? l = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(w.Warning, `No result given for '${n}' method and invocation ID '${e.invocationId}'.`), l = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(l)) : a && this._logger.log(w.Error, `Result given for '${n}' method but server is not expecting a result.`);
|
|
5128
5128
|
}
|
|
5129
5129
|
_connectionClosed(e) {
|
|
5130
|
-
this._logger.log(
|
|
5130
|
+
this._logger.log(w.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new $e("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === Y.Disconnecting ? this._completeClose(e) : this._connectionState === Y.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === Y.Connected && this._completeClose(e);
|
|
5131
5131
|
}
|
|
5132
5132
|
_completeClose(e) {
|
|
5133
5133
|
if (this._connectionStarted) {
|
|
@@ -5135,7 +5135,7 @@ class eo {
|
|
|
5135
5135
|
try {
|
|
5136
5136
|
this._closedCallbacks.forEach((n) => n.apply(this, [e]));
|
|
5137
5137
|
} catch (n) {
|
|
5138
|
-
this._logger.log(
|
|
5138
|
+
this._logger.log(w.Error, `An onclose callback called with error '${e}' threw error '${n}'.`);
|
|
5139
5139
|
}
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
@@ -5143,44 +5143,44 @@ class eo {
|
|
|
5143
5143
|
const n = Date.now();
|
|
5144
5144
|
let o = 0, r = e !== void 0 ? e : new Error("Attempting to reconnect due to a unknown error."), s = this._getNextRetryDelay(o++, 0, r);
|
|
5145
5145
|
if (s === null) {
|
|
5146
|
-
this._logger.log(
|
|
5146
|
+
this._logger.log(w.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
|
|
5147
5147
|
return;
|
|
5148
5148
|
}
|
|
5149
|
-
if (this._connectionState = Y.Reconnecting, e ? this._logger.log(
|
|
5149
|
+
if (this._connectionState = Y.Reconnecting, e ? this._logger.log(w.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(w.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
|
|
5150
5150
|
try {
|
|
5151
5151
|
this._reconnectingCallbacks.forEach((a) => a.apply(this, [e]));
|
|
5152
5152
|
} catch (a) {
|
|
5153
|
-
this._logger.log(
|
|
5153
|
+
this._logger.log(w.Error, `An onreconnecting callback called with error '${e}' threw error '${a}'.`);
|
|
5154
5154
|
}
|
|
5155
5155
|
if (this._connectionState !== Y.Reconnecting) {
|
|
5156
|
-
this._logger.log(
|
|
5156
|
+
this._logger.log(w.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
|
|
5157
5157
|
return;
|
|
5158
5158
|
}
|
|
5159
5159
|
}
|
|
5160
5160
|
for (; s !== null; ) {
|
|
5161
|
-
if (this._logger.log(
|
|
5161
|
+
if (this._logger.log(w.Information, `Reconnect attempt number ${o} will start in ${s} ms.`), await new Promise((a) => {
|
|
5162
5162
|
this._reconnectDelayHandle = setTimeout(a, s);
|
|
5163
5163
|
}), this._reconnectDelayHandle = void 0, this._connectionState !== Y.Reconnecting) {
|
|
5164
|
-
this._logger.log(
|
|
5164
|
+
this._logger.log(w.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
|
|
5165
5165
|
return;
|
|
5166
5166
|
}
|
|
5167
5167
|
try {
|
|
5168
|
-
if (await this._startInternal(), this._connectionState = Y.Connected, this._logger.log(
|
|
5168
|
+
if (await this._startInternal(), this._connectionState = Y.Connected, this._logger.log(w.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
|
|
5169
5169
|
try {
|
|
5170
5170
|
this._reconnectedCallbacks.forEach((a) => a.apply(this, [this.connection.connectionId]));
|
|
5171
5171
|
} catch (a) {
|
|
5172
|
-
this._logger.log(
|
|
5172
|
+
this._logger.log(w.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`);
|
|
5173
5173
|
}
|
|
5174
5174
|
return;
|
|
5175
5175
|
} catch (a) {
|
|
5176
|
-
if (this._logger.log(
|
|
5177
|
-
this._logger.log(
|
|
5176
|
+
if (this._logger.log(w.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== Y.Reconnecting) {
|
|
5177
|
+
this._logger.log(w.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === Y.Disconnecting && this._completeClose();
|
|
5178
5178
|
return;
|
|
5179
5179
|
}
|
|
5180
5180
|
r = a instanceof Error ? a : new Error(a.toString()), s = this._getNextRetryDelay(o++, Date.now() - n, r);
|
|
5181
5181
|
}
|
|
5182
5182
|
}
|
|
5183
|
-
this._logger.log(
|
|
5183
|
+
this._logger.log(w.Information, `Reconnect retries have been exhausted after ${Date.now() - n} ms and ${o} failed attempts. Connection disconnecting.`), this._completeClose();
|
|
5184
5184
|
}
|
|
5185
5185
|
_getNextRetryDelay(e, n, o) {
|
|
5186
5186
|
try {
|
|
@@ -5190,7 +5190,7 @@ class eo {
|
|
|
5190
5190
|
retryReason: o
|
|
5191
5191
|
});
|
|
5192
5192
|
} catch (r) {
|
|
5193
|
-
return this._logger.log(
|
|
5193
|
+
return this._logger.log(w.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${n}) threw error '${r}'.`), null;
|
|
5194
5194
|
}
|
|
5195
5195
|
}
|
|
5196
5196
|
_cancelCallbacksWithError(e) {
|
|
@@ -5200,7 +5200,7 @@ class eo {
|
|
|
5200
5200
|
try {
|
|
5201
5201
|
r(null, e);
|
|
5202
5202
|
} catch (s) {
|
|
5203
|
-
this._logger.log(
|
|
5203
|
+
this._logger.log(w.Error, `Stream 'error' callback called with '${e}' threw error: ${mn(s)}`);
|
|
5204
5204
|
}
|
|
5205
5205
|
});
|
|
5206
5206
|
}
|
|
@@ -5374,7 +5374,7 @@ class tr {
|
|
|
5374
5374
|
this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5375
5375
|
}
|
|
5376
5376
|
async connect(e, n) {
|
|
5377
|
-
if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._url = e, this._logger.log(
|
|
5377
|
+
if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._url = e, this._logger.log(w.Trace, "(LongPolling transport) Connecting."), n === he.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
5378
5378
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5379
5379
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5380
5380
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5384,32 +5384,32 @@ class tr {
|
|
|
5384
5384
|
};
|
|
5385
5385
|
n === he.Binary && (a.responseType = "arraybuffer");
|
|
5386
5386
|
const c = `${e}&_=${Date.now()}`;
|
|
5387
|
-
this._logger.log(
|
|
5387
|
+
this._logger.log(w.Trace, `(LongPolling transport) polling: ${c}.`);
|
|
5388
5388
|
const l = await this._httpClient.get(c, a);
|
|
5389
|
-
l.statusCode !== 200 ? (this._logger.log(
|
|
5389
|
+
l.statusCode !== 200 ? (this._logger.log(w.Error, `(LongPolling transport) Unexpected response code: ${l.statusCode}.`), this._closeError = new Ke(l.statusText || "", l.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
|
|
5390
5390
|
}
|
|
5391
5391
|
async _poll(e, n) {
|
|
5392
5392
|
try {
|
|
5393
5393
|
for (; this._running; )
|
|
5394
5394
|
try {
|
|
5395
5395
|
const o = `${e}&_=${Date.now()}`;
|
|
5396
|
-
this._logger.log(
|
|
5396
|
+
this._logger.log(w.Trace, `(LongPolling transport) polling: ${o}.`);
|
|
5397
5397
|
const r = await this._httpClient.get(o, n);
|
|
5398
|
-
r.statusCode === 204 ? (this._logger.log(
|
|
5398
|
+
r.statusCode === 204 ? (this._logger.log(w.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(w.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Ke(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(w.Trace, `(LongPolling transport) data received. ${Lt(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(w.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
5399
5399
|
} catch (o) {
|
|
5400
|
-
this._running ? o instanceof Yn ? this._logger.log(
|
|
5400
|
+
this._running ? o instanceof Yn ? this._logger.log(w.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(w.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
|
|
5401
5401
|
}
|
|
5402
5402
|
} finally {
|
|
5403
|
-
this._logger.log(
|
|
5403
|
+
this._logger.log(w.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
5406
|
async send(e) {
|
|
5407
5407
|
return this._running ? ss(this._logger, "LongPolling", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
|
|
5408
5408
|
}
|
|
5409
5409
|
async stop() {
|
|
5410
|
-
this._logger.log(
|
|
5410
|
+
this._logger.log(w.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
|
|
5411
5411
|
try {
|
|
5412
|
-
await this._receiving, this._logger.log(
|
|
5412
|
+
await this._receiving, this._logger.log(w.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
|
|
5413
5413
|
const e = {}, [n, o] = pt();
|
|
5414
5414
|
e[n] = o;
|
|
5415
5415
|
const r = {
|
|
@@ -5423,15 +5423,15 @@ class tr {
|
|
|
5423
5423
|
} catch (a) {
|
|
5424
5424
|
s = a;
|
|
5425
5425
|
}
|
|
5426
|
-
s ? s instanceof Ke && (s.statusCode === 404 ? this._logger.log(
|
|
5426
|
+
s ? s instanceof Ke && (s.statusCode === 404 ? this._logger.log(w.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(w.Trace, `(LongPolling transport) Error sending a DELETE request: ${s}`)) : this._logger.log(w.Trace, "(LongPolling transport) DELETE request accepted.");
|
|
5427
5427
|
} finally {
|
|
5428
|
-
this._logger.log(
|
|
5428
|
+
this._logger.log(w.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
|
|
5429
5429
|
}
|
|
5430
5430
|
}
|
|
5431
5431
|
_raiseOnClose() {
|
|
5432
5432
|
if (this.onclose) {
|
|
5433
5433
|
let e = "(LongPolling transport) Firing onclose event.";
|
|
5434
|
-
this._closeError && (e += " Error: " + this._closeError), this._logger.log(
|
|
5434
|
+
this._closeError && (e += " Error: " + this._closeError), this._logger.log(w.Trace, e), this.onclose(this._closeError);
|
|
5435
5435
|
}
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
@@ -5440,7 +5440,7 @@ class Df {
|
|
|
5440
5440
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5441
5441
|
}
|
|
5442
5442
|
async connect(e, n) {
|
|
5443
|
-
return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(
|
|
5443
|
+
return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "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) => {
|
|
5444
5444
|
let s = !1;
|
|
5445
5445
|
if (n !== he.Text) {
|
|
5446
5446
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
@@ -5459,7 +5459,7 @@ class Df {
|
|
|
5459
5459
|
a.onmessage = (c) => {
|
|
5460
5460
|
if (this.onreceive)
|
|
5461
5461
|
try {
|
|
5462
|
-
this._logger.log(
|
|
5462
|
+
this._logger.log(w.Trace, `(SSE transport) data received. ${Lt(c.data, this._options.logMessageContent)}.`), this.onreceive(c.data);
|
|
5463
5463
|
} catch (l) {
|
|
5464
5464
|
this._close(l);
|
|
5465
5465
|
return;
|
|
@@ -5467,7 +5467,7 @@ class Df {
|
|
|
5467
5467
|
}, a.onerror = (c) => {
|
|
5468
5468
|
s ? this._close() : r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
|
|
5469
5469
|
}, a.onopen = () => {
|
|
5470
|
-
this._logger.log(
|
|
5470
|
+
this._logger.log(w.Information, `SSE connected to ${this._url}`), this._eventSource = a, s = !0, o();
|
|
5471
5471
|
};
|
|
5472
5472
|
} catch (c) {
|
|
5473
5473
|
r(c);
|
|
@@ -5485,12 +5485,12 @@ class Df {
|
|
|
5485
5485
|
this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
|
|
5486
5486
|
}
|
|
5487
5487
|
}
|
|
5488
|
-
class
|
|
5488
|
+
class Of {
|
|
5489
5489
|
constructor(e, n, o, r, s, a) {
|
|
5490
5490
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5491
5491
|
}
|
|
5492
5492
|
async connect(e, n) {
|
|
5493
|
-
ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(
|
|
5493
|
+
ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(w.Trace, "(WebSockets transport) Connecting.");
|
|
5494
5494
|
let o;
|
|
5495
5495
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5496
5496
|
e = e.replace(/^http/, "ws");
|
|
@@ -5505,12 +5505,12 @@ class Mf {
|
|
|
5505
5505
|
} else
|
|
5506
5506
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
5507
5507
|
a || (a = new this._webSocketConstructor(e)), n === he.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
|
|
5508
|
-
this._logger.log(
|
|
5508
|
+
this._logger.log(w.Information, `WebSocket connected to ${e}.`), this._webSocket = a, l = !0, r();
|
|
5509
5509
|
}, a.onerror = (i) => {
|
|
5510
5510
|
let u = null;
|
|
5511
|
-
typeof ErrorEvent < "u" && i instanceof ErrorEvent ? u = i.error : u = "There was an error with the transport", this._logger.log(
|
|
5511
|
+
typeof ErrorEvent < "u" && i instanceof ErrorEvent ? u = i.error : u = "There was an error with the transport", this._logger.log(w.Information, `(WebSockets transport) ${u}.`);
|
|
5512
5512
|
}, a.onmessage = (i) => {
|
|
5513
|
-
if (this._logger.log(
|
|
5513
|
+
if (this._logger.log(w.Trace, `(WebSockets transport) data received. ${Lt(i.data, this._logMessageContent)}.`), this.onreceive)
|
|
5514
5514
|
try {
|
|
5515
5515
|
this.onreceive(i.data);
|
|
5516
5516
|
} catch (u) {
|
|
@@ -5528,7 +5528,7 @@ class Mf {
|
|
|
5528
5528
|
});
|
|
5529
5529
|
}
|
|
5530
5530
|
send(e) {
|
|
5531
|
-
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(
|
|
5531
|
+
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(w.Trace, `(WebSockets transport) sending data. ${Lt(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
|
|
5532
5532
|
}
|
|
5533
5533
|
stop() {
|
|
5534
5534
|
return this._webSocket && this._close(void 0), Promise.resolve();
|
|
@@ -5537,14 +5537,14 @@ class Mf {
|
|
|
5537
5537
|
this._webSocket && (this._webSocket.onclose = () => {
|
|
5538
5538
|
}, this._webSocket.onmessage = () => {
|
|
5539
5539
|
}, this._webSocket.onerror = () => {
|
|
5540
|
-
}, this._webSocket.close(), this._webSocket = void 0), this._logger.log(
|
|
5540
|
+
}, this._webSocket.close(), this._webSocket = void 0), this._logger.log(w.Trace, "(WebSockets transport) socket closed."), this.onclose && (this._isCloseEvent(e) && (e.wasClean === !1 || e.code !== 1e3) ? this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason || "no reason given"}).`)) : e instanceof Error ? this.onclose(e) : this.onclose());
|
|
5541
5541
|
}
|
|
5542
5542
|
_isCloseEvent(e) {
|
|
5543
5543
|
return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
|
|
5544
5544
|
}
|
|
5545
5545
|
}
|
|
5546
5546
|
const nr = 100;
|
|
5547
|
-
class
|
|
5547
|
+
class Mf {
|
|
5548
5548
|
constructor(e, n = {}) {
|
|
5549
5549
|
if (this._stopPromiseResolver = () => {
|
|
5550
5550
|
}, 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)
|
|
@@ -5557,17 +5557,17 @@ class Of {
|
|
|
5557
5557
|
const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
5558
5558
|
o = s("ws"), r = s("eventsource");
|
|
5559
5559
|
}
|
|
5560
|
-
!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
|
|
5560
|
+
!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;
|
|
5561
5561
|
}
|
|
5562
5562
|
async start(e) {
|
|
5563
|
-
if (e = e || he.Binary, ae.isIn(e, he, "transferFormat"), this._logger.log(
|
|
5563
|
+
if (e = e || he.Binary, ae.isIn(e, he, "transferFormat"), this._logger.log(w.Debug, `Starting connection with transfer format '${he[e]}'.`), this._connectionState !== "Disconnected")
|
|
5564
5564
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5565
5565
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5566
5566
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
5567
|
-
return this._logger.log(
|
|
5567
|
+
return this._logger.log(w.Error, n), await this._stopPromise, Promise.reject(new $e(n));
|
|
5568
5568
|
} else if (this._connectionState !== "Connected") {
|
|
5569
5569
|
const n = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
|
|
5570
|
-
return this._logger.log(
|
|
5570
|
+
return this._logger.log(w.Error, n), Promise.reject(new $e(n));
|
|
5571
5571
|
}
|
|
5572
5572
|
this._connectionStarted = !0;
|
|
5573
5573
|
}
|
|
@@ -5576,9 +5576,9 @@ class Of {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
async stop(e) {
|
|
5578
5578
|
if (this._connectionState === "Disconnected")
|
|
5579
|
-
return this._logger.log(
|
|
5579
|
+
return this._logger.log(w.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`), Promise.resolve();
|
|
5580
5580
|
if (this._connectionState === "Disconnecting")
|
|
5581
|
-
return this._logger.log(
|
|
5581
|
+
return this._logger.log(w.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
|
|
5582
5582
|
this._connectionState = "Disconnecting", this._stopPromise = new Promise((n) => {
|
|
5583
5583
|
this._stopPromiseResolver = n;
|
|
5584
5584
|
}), await this._stopInternal(e), await this._stopPromise;
|
|
@@ -5593,11 +5593,11 @@ class Of {
|
|
|
5593
5593
|
try {
|
|
5594
5594
|
await this.transport.stop();
|
|
5595
5595
|
} catch (n) {
|
|
5596
|
-
this._logger.log(
|
|
5596
|
+
this._logger.log(w.Error, `HttpConnection.transport.stop() threw error '${n}'.`), this._stopConnection();
|
|
5597
5597
|
}
|
|
5598
5598
|
this.transport = void 0;
|
|
5599
5599
|
} else
|
|
5600
|
-
this._logger.log(
|
|
5600
|
+
this._logger.log(w.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");
|
|
5601
5601
|
}
|
|
5602
5602
|
async _startInternal(e) {
|
|
5603
5603
|
let n = this.baseUrl;
|
|
@@ -5627,16 +5627,16 @@ class Of {
|
|
|
5627
5627
|
throw new Error("Negotiate redirection limit exceeded.");
|
|
5628
5628
|
await this._createTransport(n, this._options.transport, o, e);
|
|
5629
5629
|
}
|
|
5630
|
-
this.transport instanceof tr && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(
|
|
5630
|
+
this.transport instanceof tr && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(w.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
|
|
5631
5631
|
} catch (o) {
|
|
5632
|
-
return this._logger.log(
|
|
5632
|
+
return this._logger.log(w.Error, "Failed to start the connection: " + o), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(o);
|
|
5633
5633
|
}
|
|
5634
5634
|
}
|
|
5635
5635
|
async _getNegotiationResponse(e) {
|
|
5636
5636
|
const n = {}, [o, r] = pt();
|
|
5637
5637
|
n[o] = r;
|
|
5638
5638
|
const s = this._resolveNegotiateUrl(e);
|
|
5639
|
-
this._logger.log(
|
|
5639
|
+
this._logger.log(w.Debug, `Sending negotiation request: ${s}.`);
|
|
5640
5640
|
try {
|
|
5641
5641
|
const a = await this._httpClient.post(s, {
|
|
5642
5642
|
content: "",
|
|
@@ -5650,7 +5650,7 @@ class Of {
|
|
|
5650
5650
|
return (!c.negotiateVersion || c.negotiateVersion < 1) && (c.connectionToken = c.connectionId), c.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Zo("Client didn't negotiate Stateful Reconnect but the server did.")) : c;
|
|
5651
5651
|
} catch (a) {
|
|
5652
5652
|
let c = "Failed to complete negotiation with the server: " + a;
|
|
5653
|
-
return a instanceof Ke && a.statusCode === 404 && (c = c + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(
|
|
5653
|
+
return a instanceof Ke && a.statusCode === 404 && (c = c + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(w.Error, c), Promise.reject(new Zo(c));
|
|
5654
5654
|
}
|
|
5655
5655
|
}
|
|
5656
5656
|
_createConnectUrl(e, n) {
|
|
@@ -5659,7 +5659,7 @@ class Of {
|
|
|
5659
5659
|
async _createTransport(e, n, o, r) {
|
|
5660
5660
|
let s = this._createConnectUrl(e, o.connectionToken);
|
|
5661
5661
|
if (this._isITransport(n)) {
|
|
5662
|
-
this._logger.log(
|
|
5662
|
+
this._logger.log(w.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = n, await this._startTransport(s, r), this.connectionId = o.connectionId;
|
|
5663
5663
|
return;
|
|
5664
5664
|
}
|
|
5665
5665
|
const a = [], c = o.availableTransports || [];
|
|
@@ -5681,9 +5681,9 @@ class Of {
|
|
|
5681
5681
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
5682
5682
|
return;
|
|
5683
5683
|
} catch (f) {
|
|
5684
|
-
if (this._logger.log(
|
|
5684
|
+
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") {
|
|
5685
5685
|
const d = "Failed to select transport before stop() was called.";
|
|
5686
|
-
return this._logger.log(
|
|
5686
|
+
return this._logger.log(w.Debug, d), Promise.reject(new $e(d));
|
|
5687
5687
|
}
|
|
5688
5688
|
}
|
|
5689
5689
|
}
|
|
@@ -5695,7 +5695,7 @@ class Of {
|
|
|
5695
5695
|
case re.WebSockets:
|
|
5696
5696
|
if (!this._options.WebSocket)
|
|
5697
5697
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
5698
|
-
return new
|
|
5698
|
+
return new Of(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
5699
5699
|
case re.ServerSentEvents:
|
|
5700
5700
|
if (!this._options.EventSource)
|
|
5701
5701
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
@@ -5725,40 +5725,40 @@ class Of {
|
|
|
5725
5725
|
_resolveTransportOrError(e, n, o, r) {
|
|
5726
5726
|
const s = re[e.transport];
|
|
5727
5727
|
if (s == null)
|
|
5728
|
-
return this._logger.log(
|
|
5728
|
+
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.`);
|
|
5729
5729
|
if (Bf(n, s))
|
|
5730
5730
|
if (e.transferFormats.map((c) => he[c]).indexOf(o) >= 0) {
|
|
5731
5731
|
if (s === re.WebSockets && !this._options.WebSocket || s === re.ServerSentEvents && !this._options.EventSource)
|
|
5732
|
-
return this._logger.log(
|
|
5733
|
-
this._logger.log(
|
|
5732
|
+
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);
|
|
5733
|
+
this._logger.log(w.Debug, `Selecting transport '${re[s]}'.`);
|
|
5734
5734
|
try {
|
|
5735
5735
|
return this.features.reconnect = s === re.WebSockets ? r : void 0, this._constructTransport(s);
|
|
5736
5736
|
} catch (c) {
|
|
5737
5737
|
return c;
|
|
5738
5738
|
}
|
|
5739
5739
|
} else
|
|
5740
|
-
return this._logger.log(
|
|
5740
|
+
return this._logger.log(w.Debug, `Skipping transport '${re[s]}' because it does not support the requested transfer format '${he[o]}'.`), new Error(`'${re[s]}' does not support ${he[o]}.`);
|
|
5741
5741
|
else
|
|
5742
|
-
return this._logger.log(
|
|
5742
|
+
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);
|
|
5743
5743
|
}
|
|
5744
5744
|
_isITransport(e) {
|
|
5745
5745
|
return e && typeof e == "object" && "connect" in e;
|
|
5746
5746
|
}
|
|
5747
5747
|
_stopConnection(e) {
|
|
5748
|
-
if (this._logger.log(
|
|
5749
|
-
this._logger.log(
|
|
5748
|
+
if (this._logger.log(w.Debug, `HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`), this.transport = void 0, e = this._stopError || e, this._stopError = void 0, this._connectionState === "Disconnected") {
|
|
5749
|
+
this._logger.log(w.Debug, `Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);
|
|
5750
5750
|
return;
|
|
5751
5751
|
}
|
|
5752
5752
|
if (this._connectionState === "Connecting")
|
|
5753
|
-
throw this._logger.log(
|
|
5754
|
-
if (this._connectionState === "Disconnecting" && this._stopPromiseResolver(), e ? this._logger.log(
|
|
5755
|
-
this._logger.log(
|
|
5753
|
+
throw this._logger.log(w.Warning, `Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`), new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);
|
|
5754
|
+
if (this._connectionState === "Disconnecting" && this._stopPromiseResolver(), e ? this._logger.log(w.Error, `Connection disconnected with error '${e}'.`) : this._logger.log(w.Information, "Connection disconnected."), this._sendQueue && (this._sendQueue.stop().catch((n) => {
|
|
5755
|
+
this._logger.log(w.Error, `TransportSendQueue.stop() threw error '${n}'.`);
|
|
5756
5756
|
}), this._sendQueue = void 0), this.connectionId = void 0, this._connectionState = "Disconnected", this._connectionStarted) {
|
|
5757
5757
|
this._connectionStarted = !1;
|
|
5758
5758
|
try {
|
|
5759
5759
|
this.onclose && this.onclose(e);
|
|
5760
5760
|
} catch (n) {
|
|
5761
|
-
this._logger.log(
|
|
5761
|
+
this._logger.log(w.Error, `HttpConnection.onclose(${e}) threw error '${n}'.`);
|
|
5762
5762
|
}
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
@@ -5768,7 +5768,7 @@ class Of {
|
|
|
5768
5768
|
if (!te.isBrowser)
|
|
5769
5769
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
5770
5770
|
const n = window.document.createElement("a");
|
|
5771
|
-
return n.href = e, this._logger.log(
|
|
5771
|
+
return n.href = e, this._logger.log(w.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
|
|
5772
5772
|
}
|
|
5773
5773
|
_resolveNegotiateUrl(e) {
|
|
5774
5774
|
const n = new URL(e);
|
|
@@ -5848,7 +5848,7 @@ class xf {
|
|
|
5848
5848
|
if (!e)
|
|
5849
5849
|
return [];
|
|
5850
5850
|
n === null && (n = Pt.instance);
|
|
5851
|
-
const o =
|
|
5851
|
+
const o = _e.parse(e), r = [];
|
|
5852
5852
|
for (const s of o) {
|
|
5853
5853
|
const a = JSON.parse(s);
|
|
5854
5854
|
if (typeof a.type != "number")
|
|
@@ -5874,7 +5874,7 @@ class xf {
|
|
|
5874
5874
|
this._isSequenceMessage(a);
|
|
5875
5875
|
break;
|
|
5876
5876
|
default:
|
|
5877
|
-
n.log(
|
|
5877
|
+
n.log(w.Information, "Unknown message type '" + a.type + "' ignored.");
|
|
5878
5878
|
continue;
|
|
5879
5879
|
}
|
|
5880
5880
|
r.push(a);
|
|
@@ -5887,7 +5887,7 @@ class xf {
|
|
|
5887
5887
|
* @returns {string} A string containing the serialized representation of the message.
|
|
5888
5888
|
*/
|
|
5889
5889
|
writeMessage(e) {
|
|
5890
|
-
return
|
|
5890
|
+
return _e.write(JSON.stringify(e));
|
|
5891
5891
|
}
|
|
5892
5892
|
_isInvocationMessage(e) {
|
|
5893
5893
|
this._assertNotEmptyString(e.target, "Invalid payload for Invocation message."), e.invocationId !== void 0 && this._assertNotEmptyString(e.invocationId, "Invalid payload for Invocation message.");
|
|
@@ -5915,15 +5915,15 @@ class xf {
|
|
|
5915
5915
|
}
|
|
5916
5916
|
}
|
|
5917
5917
|
const Qf = {
|
|
5918
|
-
trace:
|
|
5919
|
-
debug:
|
|
5920
|
-
info:
|
|
5921
|
-
information:
|
|
5922
|
-
warn:
|
|
5923
|
-
warning:
|
|
5924
|
-
error:
|
|
5925
|
-
critical:
|
|
5926
|
-
none:
|
|
5918
|
+
trace: w.Trace,
|
|
5919
|
+
debug: w.Debug,
|
|
5920
|
+
info: w.Information,
|
|
5921
|
+
information: w.Information,
|
|
5922
|
+
warn: w.Warning,
|
|
5923
|
+
warning: w.Warning,
|
|
5924
|
+
error: w.Error,
|
|
5925
|
+
critical: w.Critical,
|
|
5926
|
+
none: w.None
|
|
5927
5927
|
};
|
|
5928
5928
|
function jf(t) {
|
|
5929
5929
|
const e = Qf[t.toLowerCase()];
|
|
@@ -5989,7 +5989,7 @@ class Nf {
|
|
|
5989
5989
|
const e = this.httpConnectionOptions || {};
|
|
5990
5990
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
5991
5991
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
5992
|
-
const n = new
|
|
5992
|
+
const n = new Mf(this.url, e);
|
|
5993
5993
|
return eo.create(n, this.logger || Pt.instance, this.protocol || new xf(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
5994
5994
|
}
|
|
5995
5995
|
}
|
|
@@ -6025,18 +6025,18 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6025
6025
|
}
|
|
6026
6026
|
}, c = async (v) => {
|
|
6027
6027
|
var C;
|
|
6028
|
-
const A = J(),
|
|
6028
|
+
const A = J(), _ = ((C = A.appcategorys) == null ? void 0 : C.map((S) => S.apps).flat()) || [];
|
|
6029
6029
|
if (Array.isArray(v)) {
|
|
6030
6030
|
const S = v.filter((P) => P.code).map((P) => P.code);
|
|
6031
6031
|
if (v.length) {
|
|
6032
6032
|
if (A.currentSubAppCode) {
|
|
6033
|
-
const I = A.currentSubApp.menus ?? [], T =
|
|
6033
|
+
const I = A.currentSubApp.menus ?? [], T = Oe(I).find((D) => S.includes(D.code));
|
|
6034
6034
|
if (T) {
|
|
6035
6035
|
n({ currentMenu: T });
|
|
6036
6036
|
return;
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
|
-
const P =
|
|
6039
|
+
const P = _.find((I) => S.includes(I.code));
|
|
6040
6040
|
P && e({ microApp: P });
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
@@ -6044,16 +6044,16 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6044
6044
|
if (v.includes(":")) {
|
|
6045
6045
|
const S = v.split(":"), [P = "", I = ""] = S;
|
|
6046
6046
|
if (!P) return;
|
|
6047
|
-
const T =
|
|
6047
|
+
const T = _.find((D) => D.code === P);
|
|
6048
6048
|
T && e({ microApp: T, menuCode: I });
|
|
6049
6049
|
} else {
|
|
6050
|
-
const S = v, P =
|
|
6050
|
+
const S = v, P = _.find((I) => I.code === S);
|
|
6051
6051
|
if (P)
|
|
6052
6052
|
e({ microApp: P });
|
|
6053
6053
|
else {
|
|
6054
6054
|
const [I, T] = await Kf().run({ menuCode: S });
|
|
6055
6055
|
if (I) return;
|
|
6056
|
-
const D =
|
|
6056
|
+
const D = _.find((O) => O.code === T);
|
|
6057
6057
|
D && e({ microApp: D, menuCode: S });
|
|
6058
6058
|
}
|
|
6059
6059
|
}
|
|
@@ -6061,7 +6061,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6061
6061
|
let l = E(!0);
|
|
6062
6062
|
const i = (v) => {
|
|
6063
6063
|
setTimeout(async () => {
|
|
6064
|
-
var A,
|
|
6064
|
+
var A, _;
|
|
6065
6065
|
if (l.value) {
|
|
6066
6066
|
const [C, S] = await qf().run({}, { params: { aliasName: v.actionValue } });
|
|
6067
6067
|
C ? await vn().run({
|
|
@@ -6071,7 +6071,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6071
6071
|
}) : S.length ? (S.length > 1 ? c(S) : c((A = S[0]) == null ? void 0 : A.code), await vn().run({
|
|
6072
6072
|
uniqueId: v.uniqueId,
|
|
6073
6073
|
status: 1,
|
|
6074
|
-
targetName: (
|
|
6074
|
+
targetName: (_ = S[0]) == null ? void 0 : _.name
|
|
6075
6075
|
})) : await vn().run({
|
|
6076
6076
|
uniqueId: v.uniqueId,
|
|
6077
6077
|
status: 0,
|
|
@@ -6081,8 +6081,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6081
6081
|
l.value = !0;
|
|
6082
6082
|
}, 2e3);
|
|
6083
6083
|
}, u = (v) => {
|
|
6084
|
-
const A = Bn(),
|
|
6085
|
-
Ff().on(`${v}:${
|
|
6084
|
+
const A = Bn(), _ = JSON.parse(atob(A.split(".")[1])).sub;
|
|
6085
|
+
Ff().on(`${v}:${_}`, async function(S) {
|
|
6086
6086
|
let P = a(S);
|
|
6087
6087
|
if (P)
|
|
6088
6088
|
P.uniqueId && P.actionKey == "switch-menu" && i(P);
|
|
@@ -6171,108 +6171,108 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6171
6171
|
{ id: 2, name: N("时").value },
|
|
6172
6172
|
{ id: 1, name: N("分").value },
|
|
6173
6173
|
{ id: 3, name: N("不限").value }
|
|
6174
|
-
]), y = E([]), g = E(""), p = E("告警对象位置"), v = E(""), A = E([]),
|
|
6174
|
+
]), y = E([]), g = E(""), p = E("告警对象位置"), v = E(""), A = E([]), _ = E("");
|
|
6175
6175
|
E("[]");
|
|
6176
|
-
const C = E(!0), S = E(!0), P = async (
|
|
6176
|
+
const C = E(!0), S = E(!0), P = async (M) => {
|
|
6177
6177
|
const k = { name: "1" };
|
|
6178
|
-
|
|
6179
|
-
const [L,
|
|
6180
|
-
return L ? {} :
|
|
6181
|
-
}, I = async (
|
|
6182
|
-
const k = { name:
|
|
6183
|
-
return L ? {} :
|
|
6184
|
-
}, T = E(!0), D = E(!0),
|
|
6185
|
-
const [
|
|
6186
|
-
if (
|
|
6187
|
-
|
|
6178
|
+
M != null && M.id && (k.spaceId = M.id);
|
|
6179
|
+
const [L, ke] = await rh(k).run();
|
|
6180
|
+
return L ? {} : ke;
|
|
6181
|
+
}, I = async (M) => {
|
|
6182
|
+
const k = { name: M || "" }, [L, ke] = await sh(k).run();
|
|
6183
|
+
return L ? {} : ke;
|
|
6184
|
+
}, T = E(!0), D = E(!0), O = E([]), F = async () => {
|
|
6185
|
+
const [M, k] = await oh().run({ pageIndex: -1, pageSize: -1 });
|
|
6186
|
+
if (M) return {};
|
|
6187
|
+
O.value = k.data.filter((L) => L.status), O.value.length > 0 && (i.value.workOrderRules = O.value[0].id);
|
|
6188
6188
|
};
|
|
6189
|
-
G(l, (
|
|
6190
|
-
|
|
6189
|
+
G(l, (M) => {
|
|
6190
|
+
M || (oe(), ye());
|
|
6191
6191
|
}), G(
|
|
6192
6192
|
S,
|
|
6193
|
-
(
|
|
6194
|
-
|
|
6193
|
+
(M) => {
|
|
6194
|
+
M ? (C.value = !0, i.value.customPath = N("选填").value) : (C.value = !1, i.value.customPath = "");
|
|
6195
6195
|
},
|
|
6196
6196
|
{ immediate: !0 }
|
|
6197
6197
|
), G(
|
|
6198
6198
|
D,
|
|
6199
|
-
(
|
|
6200
|
-
|
|
6199
|
+
(M) => {
|
|
6200
|
+
M ? (i.value.reportTheme = N("告警对象").value, T.value = !0) : (v.value = "请输入", i.value.reportTheme = "", T.value = !1);
|
|
6201
6201
|
},
|
|
6202
6202
|
{ immediate: !0 }
|
|
6203
6203
|
);
|
|
6204
|
-
const z = (
|
|
6204
|
+
const z = (M) => {
|
|
6205
6205
|
var k;
|
|
6206
6206
|
return (k = a.value) == null ? void 0 : k.parentNode.parentNode;
|
|
6207
|
-
}, ie = (
|
|
6207
|
+
}, ie = (M) => {
|
|
6208
6208
|
u.value.reportTheme = "";
|
|
6209
|
-
},
|
|
6210
|
-
k.length > 0 && (g.value = k[0].path), i.value.reportPosition =
|
|
6211
|
-
}, Rt = (
|
|
6212
|
-
|
|
6213
|
-
}, de = (
|
|
6214
|
-
|
|
6209
|
+
}, Ce = (M, k) => {
|
|
6210
|
+
k.length > 0 && (g.value = k[0].path), i.value.reportPosition = M, _.value = "";
|
|
6211
|
+
}, Rt = (M) => {
|
|
6212
|
+
M && (u.value.reportPosition = "", g.value = ""), M ? (i.value.reportPosition = null, g.value = "", p.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", p.value = "请选择");
|
|
6213
|
+
}, de = (M) => {
|
|
6214
|
+
M && (u.value.reportTheme = ""), M ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
|
|
6215
6215
|
}, oe = () => {
|
|
6216
6216
|
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 = "";
|
|
6217
|
-
},
|
|
6217
|
+
}, ye = () => {
|
|
6218
6218
|
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 = [];
|
|
6219
|
-
}, ze = (
|
|
6220
|
-
|
|
6219
|
+
}, ze = (M) => {
|
|
6220
|
+
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);
|
|
6221
6221
|
}, is = async () => {
|
|
6222
|
-
const [
|
|
6223
|
-
if (
|
|
6222
|
+
const [M, k] = await ah().run();
|
|
6223
|
+
if (M) return {};
|
|
6224
6224
|
d.value = k, i.value.eventTypeId || (i.value.eventTypeId = k[0] ? k[0].id : null), oo();
|
|
6225
6225
|
}, oo = async () => {
|
|
6226
|
-
const
|
|
6226
|
+
const M = {
|
|
6227
6227
|
eventTypeId: i.value.eventTypeId
|
|
6228
|
-
}, [k, L] = await ih(
|
|
6228
|
+
}, [k, L] = await ih(M).run();
|
|
6229
6229
|
if (k) return {};
|
|
6230
|
-
const
|
|
6230
|
+
const ke = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
6231
6231
|
h.value = L.map((xt) => ({
|
|
6232
6232
|
id: `${xt}`,
|
|
6233
|
-
name:
|
|
6233
|
+
name: ke[xt] ? ke[xt] : xt
|
|
6234
6234
|
})), L.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, ro());
|
|
6235
6235
|
}, ro = async () => {
|
|
6236
|
-
const
|
|
6236
|
+
const M = {
|
|
6237
6237
|
eventTypeId: i.value.eventTypeId,
|
|
6238
6238
|
eventLevel: i.value.eventLevelId
|
|
6239
|
-
}, [k, L] = await ch(
|
|
6239
|
+
}, [k, L] = await ch(M).run();
|
|
6240
6240
|
if (k) return {};
|
|
6241
6241
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6242
|
-
}, cs = (
|
|
6242
|
+
}, cs = (M) => {
|
|
6243
6243
|
oe();
|
|
6244
6244
|
}, ls = async () => {
|
|
6245
|
-
const
|
|
6245
|
+
const M = {
|
|
6246
6246
|
logic: !1,
|
|
6247
6247
|
isTime: !1,
|
|
6248
6248
|
projectId: o.projectId
|
|
6249
6249
|
};
|
|
6250
6250
|
s.value = !0;
|
|
6251
|
-
const [k, L] = await eh(
|
|
6251
|
+
const [k, L] = await eh(M).run();
|
|
6252
6252
|
if (k) {
|
|
6253
6253
|
s.value = !1;
|
|
6254
6254
|
return;
|
|
6255
6255
|
}
|
|
6256
6256
|
s.value = !1, y.value = L;
|
|
6257
|
-
for (let
|
|
6258
|
-
y.value[
|
|
6257
|
+
for (let ke = 0; ke < y.value.length; ke++)
|
|
6258
|
+
y.value[ke].id === "createorder" && F(), y.value[ke].id === "createcontingency" && is();
|
|
6259
6259
|
}, us = () => {
|
|
6260
|
-
let
|
|
6260
|
+
let M = !0;
|
|
6261
6261
|
if (i.value.processTypeId == "dealwith")
|
|
6262
|
-
i.value.reason.trim() || (
|
|
6262
|
+
i.value.reason.trim() || (M = !1, u.value.reason = N("必填,最多50个字符/汉字").value), i.value.treatmentPlan.trim() || (M = !1, u.value.treatmentPlan = N("必填,最多50个字符/汉字").value);
|
|
6263
6263
|
else if (i.value.processTypeId == "createorder")
|
|
6264
|
-
S.value ? u.value.reportPosition = "" : !i.value.reportPosition && !i.value.customPath ? (
|
|
6264
|
+
S.value ? u.value.reportPosition = "" : !i.value.reportPosition && !i.value.customPath ? (M = !1, u.value.reportPosition = N("必填").value) : u.value.reportPosition = "", D.value || i.value.reportTheme ? u.value.reportTheme = "" : (M = !1, u.value.reportTheme = N("必填,最多20个汉字/字符").value), i.value.workOrderRules ? u.value.workOrderRules = "" : (M = !1, u.value.workOrderRules = N("必填").value);
|
|
6265
6265
|
else if (i.value.processTypeId == "createcontingency") {
|
|
6266
6266
|
const k = /^[1-9][0-9]{0,2}$/;
|
|
6267
|
-
i.value.eventTypeId || (
|
|
6267
|
+
i.value.eventTypeId || (M = !1, u.value.eventTypeId = N("必选").value), i.value.eventLevelId || (M = !1, u.value.eventLevelId = N("必选").value), i.value.interval != 3 && !k.test(i.value.timeLimit) && (M = !1, u.value.timeLimit = N("必填,请输入1~999之间的正整数").value);
|
|
6268
6268
|
}
|
|
6269
|
-
return
|
|
6269
|
+
return M;
|
|
6270
6270
|
}, ds = () => {
|
|
6271
6271
|
ln();
|
|
6272
|
-
}, so = async (
|
|
6273
|
-
us() && (c.value =
|
|
6272
|
+
}, so = async (M) => {
|
|
6273
|
+
us() && (c.value = M, ps());
|
|
6274
6274
|
}, ps = async () => {
|
|
6275
|
-
const
|
|
6275
|
+
const M = {
|
|
6276
6276
|
projectId: o.projectId,
|
|
6277
6277
|
processStatus: c.value,
|
|
6278
6278
|
//处理状态 1=结束处理 2=继续处理
|
|
@@ -6281,8 +6281,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6281
6281
|
processTypeId: i.value.processTypeId
|
|
6282
6282
|
//处理类型id
|
|
6283
6283
|
};
|
|
6284
|
-
i.value.processTypeId === "createorder" ? (
|
|
6285
|
-
const [k, L] = await th(
|
|
6284
|
+
i.value.processTypeId === "createorder" ? (M.path = S.value ? "" : i.value.customPath, M.topic = D.value ? "" : i.value.reportTheme, M.spaceId = S.value ? "" : i.value.reportPosition ?? "", M.orderId = i.value.workOrderRules) : i.value.processTypeId === "createcontingency" ? (M.eventTypeId = i.value.eventTypeId, M.eventLevelId = i.value.eventLevelId, M.timeLimit = i.value.interval == 3 ? null : Number(i.value.timeLimit), M.interval = i.value.interval) : (M.reason = i.value.reason, M.treatmentPlan = i.value.treatmentPlan, M.remarks = i.value.remarks), s.value = !0, r("emitFn", "startHandle");
|
|
6285
|
+
const [k, L] = await th(M, {
|
|
6286
6286
|
params: {
|
|
6287
6287
|
projectId: o.projectId
|
|
6288
6288
|
}
|
|
@@ -6300,7 +6300,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6300
6300
|
return e({
|
|
6301
6301
|
open: fs,
|
|
6302
6302
|
close: ln
|
|
6303
|
-
}), (
|
|
6303
|
+
}), (M, k) => ($(), W("div", lh, [
|
|
6304
6304
|
Q(m(Nn), {
|
|
6305
6305
|
modelValue: l.value,
|
|
6306
6306
|
"onUpdate:modelValue": k[31] || (k[31] = (L) => l.value = L),
|
|
@@ -6384,7 +6384,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6384
6384
|
alignType: "horizontal"
|
|
6385
6385
|
}, {
|
|
6386
6386
|
default: x(() => [
|
|
6387
|
-
Q(m(
|
|
6387
|
+
Q(m(Me), {
|
|
6388
6388
|
label: m(N)("处理类型").value,
|
|
6389
6389
|
required: "",
|
|
6390
6390
|
type: "select",
|
|
@@ -6399,7 +6399,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6399
6399
|
marginRight: "0",
|
|
6400
6400
|
onChange: cs
|
|
6401
6401
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
6402
|
-
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), V(m(
|
|
6402
|
+
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), V(m(Me), {
|
|
6403
6403
|
key: 0,
|
|
6404
6404
|
label: m(N)("告警原因").value,
|
|
6405
6405
|
required: i.value.processTypeId == "dealwith",
|
|
@@ -6414,7 +6414,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6414
6414
|
marginBottom: "30px",
|
|
6415
6415
|
marginRight: "0"
|
|
6416
6416
|
}, null, 8, ["label", "required", "modelValue", "error"])) : j("v-if", !0),
|
|
6417
|
-
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), V(m(
|
|
6417
|
+
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), V(m(Me), {
|
|
6418
6418
|
key: 1,
|
|
6419
6419
|
label: m(N)("处理方案").value,
|
|
6420
6420
|
required: i.value.processTypeId == "dealwith",
|
|
@@ -6429,7 +6429,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6429
6429
|
marginBottom: "30px",
|
|
6430
6430
|
marginRight: "0"
|
|
6431
6431
|
}, null, 8, ["label", "required", "modelValue", "error"])) : j("v-if", !0),
|
|
6432
|
-
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), V(m(
|
|
6432
|
+
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), V(m(Me), {
|
|
6433
6433
|
key: 2,
|
|
6434
6434
|
label: m(N)("备注").value,
|
|
6435
6435
|
type: "textarea",
|
|
@@ -6442,7 +6442,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6442
6442
|
marginBottom: "30px",
|
|
6443
6443
|
marginRight: "0"
|
|
6444
6444
|
}, null, 8, ["label", "modelValue"])) : j("v-if", !0),
|
|
6445
|
-
i.value.processTypeId == "createorder" ? ($(), V(m(
|
|
6445
|
+
i.value.processTypeId == "createorder" ? ($(), V(m(Me), {
|
|
6446
6446
|
key: 3,
|
|
6447
6447
|
label: m(N)("报事位置").value,
|
|
6448
6448
|
required: "",
|
|
@@ -6462,15 +6462,15 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6462
6462
|
"onUpdate:modelValue": k[8] || (k[8] = (L) => i.value.reportPosition = L),
|
|
6463
6463
|
path: g.value,
|
|
6464
6464
|
"onUpdate:path": k[9] || (k[9] = (L) => g.value = L),
|
|
6465
|
-
keyword:
|
|
6466
|
-
"onUpdate:keyword": k[10] || (k[10] = (L) =>
|
|
6465
|
+
keyword: _.value,
|
|
6466
|
+
"onUpdate:keyword": k[10] || (k[10] = (L) => _.value = L),
|
|
6467
6467
|
showFullPath: !0,
|
|
6468
6468
|
data: A.value,
|
|
6469
6469
|
placeholder: p.value,
|
|
6470
6470
|
disabled: C.value,
|
|
6471
6471
|
load: P,
|
|
6472
6472
|
search: I,
|
|
6473
|
-
onChange:
|
|
6473
|
+
onChange: Ce,
|
|
6474
6474
|
filter: !0,
|
|
6475
6475
|
allowClear: !0
|
|
6476
6476
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
@@ -6505,7 +6505,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6505
6505
|
_: 1
|
|
6506
6506
|
/* STABLE */
|
|
6507
6507
|
}, 8, ["label", "error"])) : j("v-if", !0),
|
|
6508
|
-
i.value.processTypeId == "createorder" ? ($(), V(m(
|
|
6508
|
+
i.value.processTypeId == "createorder" ? ($(), V(m(Me), {
|
|
6509
6509
|
key: 4,
|
|
6510
6510
|
label: m(N)("报事主题").value,
|
|
6511
6511
|
required: "",
|
|
@@ -6547,7 +6547,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6547
6547
|
_: 1
|
|
6548
6548
|
/* STABLE */
|
|
6549
6549
|
}, 8, ["label", "error"])) : j("v-if", !0),
|
|
6550
|
-
i.value.processTypeId == "createorder" ? ($(), V(m(
|
|
6550
|
+
i.value.processTypeId == "createorder" ? ($(), V(m(Me), {
|
|
6551
6551
|
key: 5,
|
|
6552
6552
|
label: m(N)("工单规则").value,
|
|
6553
6553
|
required: "",
|
|
@@ -6556,7 +6556,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6556
6556
|
"onUpdate:modelValue": k[17] || (k[17] = (L) => i.value.workOrderRules = L),
|
|
6557
6557
|
error: u.value.workOrderRules,
|
|
6558
6558
|
"onUpdate:error": k[18] || (k[18] = (L) => u.value.workOrderRules = L),
|
|
6559
|
-
options:
|
|
6559
|
+
options: O.value,
|
|
6560
6560
|
col: 1,
|
|
6561
6561
|
optionsLabelKey: "name",
|
|
6562
6562
|
optionsValueKey: "id",
|
|
@@ -6565,7 +6565,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6565
6565
|
marginRight: "0"
|
|
6566
6566
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6567
6567
|
j(" createcontingency 生成应急事件 "),
|
|
6568
|
-
i.value.processTypeId == "createcontingency" ? ($(), V(m(
|
|
6568
|
+
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6569
6569
|
key: 6,
|
|
6570
6570
|
label: m(N)("事件类型").value,
|
|
6571
6571
|
required: "",
|
|
@@ -6583,7 +6583,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6583
6583
|
marginRight: "0",
|
|
6584
6584
|
onChange: k[21] || (k[21] = (L) => ze("eventTypeId"))
|
|
6585
6585
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6586
|
-
i.value.processTypeId == "createcontingency" ? ($(), V(m(
|
|
6586
|
+
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6587
6587
|
key: 7,
|
|
6588
6588
|
label: m(N)("事件等级").value,
|
|
6589
6589
|
required: "",
|
|
@@ -6601,7 +6601,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6601
6601
|
marginRight: "0",
|
|
6602
6602
|
onChange: k[24] || (k[24] = (L) => ze("eventLevelId"))
|
|
6603
6603
|
}, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
|
|
6604
|
-
i.value.processTypeId == "createcontingency" ? ($(), V(m(
|
|
6604
|
+
i.value.processTypeId == "createcontingency" ? ($(), V(m(Me), {
|
|
6605
6605
|
key: 8,
|
|
6606
6606
|
label: m(N)("处置时限").value,
|
|
6607
6607
|
required: "",
|
|
@@ -6657,7 +6657,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6657
6657
|
}, 8, ["modelValue"])
|
|
6658
6658
|
]));
|
|
6659
6659
|
}
|
|
6660
|
-
}), vh = /* @__PURE__ */
|
|
6660
|
+
}), vh = /* @__PURE__ */ be(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
|
|
6661
6661
|
handleAlarmVue: () => fe(vh, {
|
|
6662
6662
|
handerIds: e.value,
|
|
6663
6663
|
projectId: Yt().id,
|
|
@@ -6665,10 +6665,10 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6665
6665
|
onEmitFn: (r, s) => {
|
|
6666
6666
|
}
|
|
6667
6667
|
})
|
|
6668
|
-
}), yh = { class: "alarm-msg" },
|
|
6668
|
+
}), yh = { class: "alarm-msg" }, wh = { style: { position: "relative" } }, _h = { class: "title-left" }, bh = { class: "title-box" }, Ch = { class: "content-box" }, Ih = { class: "alarm-msg-line" }, Th = { class: "alarm-msg-line-left" }, Eh = { class: "alarm-msg-line" }, Sh = { class: "alarm-msg-line-left" }, kh = { class: "alarm-msg-line-right alarm-content-object" }, Ph = { class: "alarm-msg-line" }, Lh = { class: "alarm-msg-line-left" }, $h = { class: "alarm-msg-line-right alarm-content" }, Dh = { class: "btn-box" }, Oh = {
|
|
6669
6669
|
name: "alarm"
|
|
6670
|
-
},
|
|
6671
|
-
...
|
|
6670
|
+
}, Mh = /* @__PURE__ */ ne({
|
|
6671
|
+
...Oh,
|
|
6672
6672
|
props: {
|
|
6673
6673
|
alarmhandle: { type: Boolean, default: !1 },
|
|
6674
6674
|
msgItem: { default: {} }
|
|
@@ -6686,7 +6686,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6686
6686
|
[
|
|
6687
6687
|
j(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
6688
6688
|
B("div", yh, [
|
|
6689
|
-
B("div",
|
|
6689
|
+
B("div", wh, [
|
|
6690
6690
|
B(
|
|
6691
6691
|
"div",
|
|
6692
6692
|
{
|
|
@@ -6694,7 +6694,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6694
6694
|
class: "title-detail"
|
|
6695
6695
|
},
|
|
6696
6696
|
[
|
|
6697
|
-
B("div",
|
|
6697
|
+
B("div", _h, [
|
|
6698
6698
|
j(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
6699
6699
|
!\r
|
|
6700
6700
|
</div> `),
|
|
@@ -6839,9 +6839,9 @@ const Rh = () => {
|
|
|
6839
6839
|
loop: !1
|
|
6840
6840
|
// 轮播-无限次播放
|
|
6841
6841
|
});
|
|
6842
|
-
|
|
6842
|
+
Le.addEventListenerFromMicroApp("alarm:change-alarmconfig", (I) => {
|
|
6843
6843
|
const { isRealTimeAlarm: T, audioPlay: D } = I.data;
|
|
6844
|
-
T != null && (c.value = T), D != null && (l.value = D, l.value ||
|
|
6844
|
+
T != null && (c.value = T), D != null && (l.value = D, l.value || _());
|
|
6845
6845
|
});
|
|
6846
6846
|
const u = (I) => {
|
|
6847
6847
|
var D;
|
|
@@ -6851,7 +6851,7 @@ const Rh = () => {
|
|
|
6851
6851
|
fr(I.equipmentCode, I.equipmentPanelCode);
|
|
6852
6852
|
}, { handleAlarmVue: h } = Ah(n, r), b = async () => {
|
|
6853
6853
|
var D;
|
|
6854
|
-
const T = (((D = J().appcategorys) == null ? void 0 : D.map((
|
|
6854
|
+
const T = (((D = J().appcategorys) == null ? void 0 : D.map((O) => O.apps).flat()) ?? []).find((O) => O.code === "alarm");
|
|
6855
6855
|
T && f({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
|
|
6856
6856
|
}, y = [], g = (I) => {
|
|
6857
6857
|
if (y.push(I), s.value.length < 2) {
|
|
@@ -6866,7 +6866,7 @@ const Rh = () => {
|
|
|
6866
6866
|
class: "alarm-notify",
|
|
6867
6867
|
message: N("新告警").value,
|
|
6868
6868
|
placement: "bottomRight",
|
|
6869
|
-
description: fe(
|
|
6869
|
+
description: fe(Mh, {
|
|
6870
6870
|
msgItem: I,
|
|
6871
6871
|
alarmhandle: a.value,
|
|
6872
6872
|
onHanderDetail: d,
|
|
@@ -6878,7 +6878,7 @@ const Rh = () => {
|
|
|
6878
6878
|
},
|
|
6879
6879
|
onClose: () => {
|
|
6880
6880
|
setTimeout(() => {
|
|
6881
|
-
const D = s.value.findIndex((
|
|
6881
|
+
const D = s.value.findIndex((O) => O == T);
|
|
6882
6882
|
if (D >= 0 && s.value.splice(D, 1), s.value.length < 2 && y.length) {
|
|
6883
6883
|
p(y[0]), y.shift();
|
|
6884
6884
|
return;
|
|
@@ -6889,21 +6889,21 @@ const Rh = () => {
|
|
|
6889
6889
|
}, v = (I) => {
|
|
6890
6890
|
if (I) {
|
|
6891
6891
|
if (!l.value) {
|
|
6892
|
-
|
|
6892
|
+
_();
|
|
6893
6893
|
return;
|
|
6894
6894
|
}
|
|
6895
6895
|
if (!I.coverId) {
|
|
6896
6896
|
if (i.value.playLine === null) {
|
|
6897
|
-
|
|
6897
|
+
_(), Number(I.noticeNum) != 0 && A(I);
|
|
6898
6898
|
return;
|
|
6899
6899
|
}
|
|
6900
|
-
Number(I.alarmLevelId) < i.value.playLine && (
|
|
6900
|
+
Number(I.alarmLevelId) < i.value.playLine && (_(), Number(I.noticeNum) != 0 && A(I));
|
|
6901
6901
|
}
|
|
6902
6902
|
}
|
|
6903
6903
|
}, A = (I) => {
|
|
6904
6904
|
const T = Number(I.noticeNum), D = location.origin + "/oss";
|
|
6905
|
-
i.value.isplay && i.value.playId == I.recordId ?
|
|
6906
|
-
},
|
|
6905
|
+
i.value.isplay && i.value.playId == I.recordId ? _() : (T < 0 ? i.value.loop = !0 : i.value.loop = !1, T > 0 ? (i.value.loopTotalCount = Number(I.noticeNum), i.value.loopCount = 0) : (i.value.loopTotalCount = 0, i.value.loopCount = 0), i.value.isplay = !0, i.value.playId = I.recordId, i.value.playLine = Number(I.alarmLevelId), i.value.playPath = D + I.noticePath, C());
|
|
6906
|
+
}, _ = () => {
|
|
6907
6907
|
i.value.playId = "", i.value.playPath = "", i.value.playLine = null, i.value.loopCount = 0, i.value.loopTotalCount = 0, i.value.isplay = !1, i.value.loop = !1;
|
|
6908
6908
|
}, C = () => {
|
|
6909
6909
|
o.value.onended = function() {
|
|
@@ -6927,19 +6927,19 @@ const Rh = () => {
|
|
|
6927
6927
|
});
|
|
6928
6928
|
if (I || !T || !T.length) return;
|
|
6929
6929
|
let D = !1;
|
|
6930
|
-
T.forEach((
|
|
6931
|
-
|
|
6930
|
+
T.forEach((O) => {
|
|
6931
|
+
O.code === "alarm.realTimeAlarm" && (D = !0, O.children && O.children.length ? O.children.forEach((F) => {
|
|
6932
6932
|
F.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
|
|
6933
6933
|
}) : a.value = !1);
|
|
6934
6934
|
}), D && (t.value = new Hn({
|
|
6935
6935
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
6936
6936
|
reconnectWhenClose: !0,
|
|
6937
6937
|
opened: () => {
|
|
6938
|
-
const
|
|
6939
|
-
|
|
6938
|
+
const O = Fe().id;
|
|
6939
|
+
O && t.value.send(O);
|
|
6940
6940
|
},
|
|
6941
|
-
message: async (
|
|
6942
|
-
|
|
6941
|
+
message: async (O) => {
|
|
6942
|
+
Le.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: O }), window.self === window.top && (O.messageType === "ADD" && (e.value = e.value + 1, O.coverId || g(O)), O.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == O.recordId && _()));
|
|
6943
6943
|
}
|
|
6944
6944
|
}));
|
|
6945
6945
|
}
|
|
@@ -6979,8 +6979,8 @@ const Rh = () => {
|
|
|
6979
6979
|
const { $changePwd: u, $personSetDialog: f } = gp(), { changeEnterprisesVisible: d, userId: h, tenantId: b, changeEnterprise: y } = ts();
|
|
6980
6980
|
up();
|
|
6981
6981
|
const { fontColor: g, backgroudColor: p, borderColor: v } = pp();
|
|
6982
|
-
return Tp(), Ep(l), Sp(), Pp(), rf(), Gf(), (A,
|
|
6983
|
-
Q(m(
|
|
6982
|
+
return Tp(), Ep(l), Sp(), Pp(), rf(), Gf(), (A, _) => ($(), W("div", jh, [
|
|
6983
|
+
Q(m(_i), { platformInitNextTick: m(a) }, {
|
|
6984
6984
|
default: x(() => [
|
|
6985
6985
|
Q(Ai, {
|
|
6986
6986
|
showLayout: n.value,
|
|
@@ -6996,14 +6996,14 @@ const Rh = () => {
|
|
|
6996
6996
|
j(" 切换租户 "),
|
|
6997
6997
|
Q(m(Bs), {
|
|
6998
6998
|
visible: m(d),
|
|
6999
|
-
"onUpdate:visible":
|
|
6999
|
+
"onUpdate:visible": _[0] || (_[0] = (C) => Ts(d) ? d.value = C : null),
|
|
7000
7000
|
userId: m(h),
|
|
7001
7001
|
tenantId: m(b),
|
|
7002
7002
|
onConfirm: m(y)
|
|
7003
7003
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
7004
7004
|
j(" 修改密码 "),
|
|
7005
7005
|
Q(
|
|
7006
|
-
m(
|
|
7006
|
+
m(Ms),
|
|
7007
7007
|
{
|
|
7008
7008
|
ref_key: "$changePwd",
|
|
7009
7009
|
ref: u
|
|
@@ -7027,20 +7027,20 @@ const Rh = () => {
|
|
|
7027
7027
|
Q(m(Qh))
|
|
7028
7028
|
]));
|
|
7029
7029
|
}
|
|
7030
|
-
}), Hh = /* @__PURE__ */
|
|
7030
|
+
}), Hh = /* @__PURE__ */ be(Nh, [["__scopeId", "data-v-45ef70df"]]);
|
|
7031
7031
|
E("@das-fed/web");
|
|
7032
7032
|
const Uh = [
|
|
7033
7033
|
{
|
|
7034
7034
|
path: je,
|
|
7035
|
-
component: () => import("./index-
|
|
7035
|
+
component: () => import("./index-B53IGh_C.js")
|
|
7036
7036
|
},
|
|
7037
7037
|
{
|
|
7038
7038
|
path: ct,
|
|
7039
|
-
component: () => import("./index
|
|
7039
|
+
component: () => import("./index-DFQjHvMm.js")
|
|
7040
7040
|
},
|
|
7041
7041
|
{
|
|
7042
7042
|
path: Cr,
|
|
7043
|
-
component: () => import("./index-
|
|
7043
|
+
component: () => import("./index-7q45xJ0u.js")
|
|
7044
7044
|
}
|
|
7045
7045
|
], Yg = {
|
|
7046
7046
|
routes: Uh,
|
|
@@ -7062,7 +7062,7 @@ export {
|
|
|
7062
7062
|
Kg as F,
|
|
7063
7063
|
Yg as G,
|
|
7064
7064
|
ct as I,
|
|
7065
|
-
|
|
7065
|
+
be as _,
|
|
7066
7066
|
zo as a,
|
|
7067
7067
|
qo as b,
|
|
7068
7068
|
dt as c,
|
|
@@ -7078,7 +7078,7 @@ export {
|
|
|
7078
7078
|
Jt as m,
|
|
7079
7079
|
Hg as n,
|
|
7080
7080
|
Ug as o,
|
|
7081
|
-
|
|
7081
|
+
wa as p,
|
|
7082
7082
|
it as q,
|
|
7083
7083
|
go as r,
|
|
7084
7084
|
ho as s,
|