@das-fed/web 6.4.0-dev.21 → 6.4.0-dev.23
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/{packages/main-app-framework/index-t4FWMW__.js → index-ByENyZQn.js} +1 -1
- package/index-ByENyZQn.js.gz +0 -0
- package/{index-DNqfV3E9.js → index-CAO0LRaP.js} +1 -1
- package/index-CAO0LRaP.js.gz +0 -0
- package/{index-C9Z5Et6m.js → index-DWT7O-tu.js} +1 -1
- package/{index-CtOlfmIU.js → index-sjZbOO0N.js} +275 -274
- package/index-sjZbOO0N.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-IzpOTZ0u.js → index-BCOqm-Sl.js} +361 -360
- package/packages/main-app-framework/index-BCOqm-Sl.js.gz +0 -0
- package/packages/main-app-framework/{index-CGRKqP1O.js → index-DCqOCM9d.js} +1 -1
- package/packages/main-app-framework/{index-fj8M6ijq.js → index-Dmb3C3y5.js} +1 -1
- package/packages/main-app-framework/index-Dmb3C3y5.js.gz +0 -0
- package/{index-D6BMoZho.js → packages/main-app-framework/index-DuIncATn.js} +1 -1
- package/packages/main-app-framework/index-DuIncATn.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/index-CtOlfmIU.js.gz +0 -0
- package/index-D6BMoZho.js.gz +0 -0
- package/index-DNqfV3E9.js.gz +0 -0
- package/packages/main-app-framework/index-IzpOTZ0u.js.gz +0 -0
- package/packages/main-app-framework/index-fj8M6ijq.js.gz +0 -0
- package/packages/main-app-framework/index-t4FWMW__.js.gz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as T, 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 F, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as R, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as
|
|
1
|
+
import { ref as T, 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 F, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as R, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as M, normalizeClass as rr, normalizeStyle as yn, renderSlot as pe, createVNode as x, 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 _s, getCurrentInstance as ws, 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
|
-
import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as
|
|
4
|
+
import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as O } 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";
|
|
@@ -10,16 +10,16 @@ import { DasChangeEnterprises as Bs } from "@das-fed/ui/packages/business-compon
|
|
|
10
10
|
import { pureImageSrc as Mn } from "@das-fed/utils/pure-image-src";
|
|
11
11
|
import { DasNotification as Wt } from "@das-fed/ui/packages/components/notification/index";
|
|
12
12
|
import { flatTree as Me, filterTreeArray as Rs, isEmpty as xs, treeFind as lo, updateFavIcon as Qs, dateFormat as js, runPromiseByQueue as Ns, objEqual as _n, setShowWatermark as wn, setShowLayout as bn, getUrlParams as Hs, withToken as Us } from "@das-fed/utils/common-tools";
|
|
13
|
-
import { getSubApps as J, getTabInfo as
|
|
13
|
+
import { getSubApps as J, getTabInfo as me, getPersonalInfo as Yt, getTenantInfo as On, 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";
|
|
17
17
|
import { useGetAuth as Vs } from "@das-fed/utils/hooks/use-get-auth";
|
|
18
18
|
import { systemConfiguration as Ws, enterpriseright as jn, createService as ft, spaceManage as pr } from "@das-fed/utils/api-services";
|
|
19
|
-
import { microFrontend as le } from "@das-fed/web/packages/micro-frontend/index";
|
|
20
19
|
import { getConfig as tt } from "@das-fed/utils/config";
|
|
21
20
|
import Cn from "dayjs";
|
|
22
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
23
|
import { DasDialog as Nn } from "@das-fed/ui/packages/components/dialog/index";
|
|
24
24
|
import { DasButton as Ue } from "@das-fed/ui/packages/components/button/index";
|
|
25
25
|
import { vDasTooltip as Js } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
@@ -30,7 +30,7 @@ import { DasIcon as qe, DasAutoRegisterIcon as hr } from "@das-fed/ui/packages/c
|
|
|
30
30
|
import { socketService as Hn } from "@das-fed/utils/webSocket-service";
|
|
31
31
|
import { userInfoNextTick as ea, tokenNextTick as en } from "@das-fed/utils/nextTiken";
|
|
32
32
|
import { mainAppFramework as qt } from "@das-fed/web/packages/main-app-framework/index";
|
|
33
|
-
import { DasTooltip as
|
|
33
|
+
import { DasTooltip as ge } from "@das-fed/ui/packages/components/tooltip/index";
|
|
34
34
|
import { DasLivePlayer as ta } from "@das-fed/ui/packages/components/live-player/index";
|
|
35
35
|
import { DasSpin as gr } from "@das-fed/ui/packages/components/spin/index";
|
|
36
36
|
import { DasWatermark as na } from "@das-fed/ui/packages/components/watermark/index";
|
|
@@ -609,14 +609,14 @@ const go = (t, e) => {
|
|
|
609
609
|
return g.has(C) ? I = g.get(C) : (I = {
|
|
610
610
|
name: C,
|
|
611
611
|
render() {
|
|
612
|
-
return
|
|
612
|
+
return fe("div", { style: { width: "100%", height: "100%" } }, [fe(A)]);
|
|
613
613
|
}
|
|
614
|
-
}, g.set(C, I)),
|
|
614
|
+
}, g.set(C, I)), fe(I);
|
|
615
615
|
}, v = H(() => Je.visible.value);
|
|
616
616
|
return (A, C) => {
|
|
617
617
|
const I = ms("router-view");
|
|
618
618
|
return $(), W("div", La, [
|
|
619
|
-
Te(
|
|
619
|
+
Te(M(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
622
622
|
class: rr(["das-web-app-overlay", h.value]),
|
|
@@ -632,55 +632,55 @@ const go = (t, e) => {
|
|
|
632
632
|
"div",
|
|
633
633
|
$a,
|
|
634
634
|
[
|
|
635
|
-
|
|
635
|
+
pe(A.$slots, "header", {}, void 0, !0)
|
|
636
636
|
],
|
|
637
637
|
512
|
|
638
638
|
/* NEED_PATCH */
|
|
639
639
|
)), [
|
|
640
640
|
[Le, v.value]
|
|
641
641
|
]) : j("v-if", !0),
|
|
642
|
-
|
|
642
|
+
M("div", Da, [
|
|
643
643
|
l.value ? Te(($(), W(
|
|
644
644
|
"div",
|
|
645
645
|
Ma,
|
|
646
646
|
[
|
|
647
|
-
|
|
647
|
+
pe(A.$slots, "aside", {}, void 0, !0)
|
|
648
648
|
],
|
|
649
649
|
512
|
|
650
650
|
/* NEED_PATCH */
|
|
651
651
|
)), [
|
|
652
652
|
[Le, v.value]
|
|
653
653
|
]) : j("v-if", !0),
|
|
654
|
-
|
|
654
|
+
M("div", Oa, [
|
|
655
655
|
c.value ? Te(($(), W(
|
|
656
656
|
"div",
|
|
657
657
|
Ba,
|
|
658
658
|
[
|
|
659
|
-
|
|
659
|
+
pe(A.$slots, "tab", {}, void 0, !0)
|
|
660
660
|
],
|
|
661
661
|
512
|
|
662
662
|
/* NEED_PATCH */
|
|
663
663
|
)), [
|
|
664
664
|
[Le, v.value]
|
|
665
665
|
]) : j("v-if", !0),
|
|
666
|
-
|
|
667
|
-
Te(
|
|
666
|
+
M("div", Ra, [
|
|
667
|
+
Te(M(
|
|
668
668
|
"div",
|
|
669
669
|
xa,
|
|
670
670
|
[
|
|
671
|
-
|
|
671
|
+
pe(A.$slots, "banner", {}, void 0, !0)
|
|
672
672
|
],
|
|
673
673
|
512
|
|
674
674
|
/* NEED_PATCH */
|
|
675
675
|
), [
|
|
676
676
|
[Le, v.value]
|
|
677
677
|
]),
|
|
678
|
-
|
|
679
|
-
Te(
|
|
678
|
+
M("div", Qa, [
|
|
679
|
+
Te(M(
|
|
680
680
|
"div",
|
|
681
681
|
ja,
|
|
682
682
|
[
|
|
683
|
-
|
|
683
|
+
pe(A.$slots, "router-view", {}, () => [
|
|
684
684
|
j(" 有动画 "),
|
|
685
685
|
A.needTransition ? ($(), F(I, { key: 0 }, {
|
|
686
686
|
default: R(({ Component: y }) => [
|
|
@@ -748,7 +748,7 @@ const go = (t, e) => {
|
|
|
748
748
|
_: 1
|
|
749
749
|
/* STABLE */
|
|
750
750
|
})),
|
|
751
|
-
Te(
|
|
751
|
+
Te(M(
|
|
752
752
|
"div",
|
|
753
753
|
Ua,
|
|
754
754
|
[
|
|
@@ -770,11 +770,11 @@ const go = (t, e) => {
|
|
|
770
770
|
), [
|
|
771
771
|
[Le, i.value]
|
|
772
772
|
]),
|
|
773
|
-
Te(
|
|
773
|
+
Te(M(
|
|
774
774
|
"div",
|
|
775
775
|
Fa,
|
|
776
776
|
[
|
|
777
|
-
|
|
777
|
+
pe(A.$slots, "default", {}, void 0, !0)
|
|
778
778
|
],
|
|
779
779
|
512
|
|
780
780
|
/* NEED_PATCH */
|
|
@@ -917,11 +917,11 @@ const go = (t, e) => {
|
|
|
917
917
|
"on:toggleFullScreen": u
|
|
918
918
|
}), null, 16, qa)) : j("v-if", !0);
|
|
919
919
|
}
|
|
920
|
-
}), mo = T("/das-micro-app"),
|
|
920
|
+
}), mo = T("/das-micro-app"), ue = T([]), Ht = T(!1), Qt = T([]), jt = T(!0);
|
|
921
921
|
let Ee = null, Se = null, rt = null;
|
|
922
922
|
const st = (t, e, n) => {
|
|
923
923
|
var r, s, a, l;
|
|
924
|
-
const o =
|
|
924
|
+
const o = ue.value.find((c) => c.name === t);
|
|
925
925
|
if (o) {
|
|
926
926
|
if (o.entry.startsWith("/") || o.entry.match(location.origin)) {
|
|
927
927
|
(s = (r = o.dom) == null ? void 0 : r.contentWindow) == null || s.postMessage({ type: e, data: n });
|
|
@@ -973,7 +973,7 @@ const st = (t, e, n) => {
|
|
|
973
973
|
};
|
|
974
974
|
}, pn = async (t) => {
|
|
975
975
|
await Promise.all(
|
|
976
|
-
|
|
976
|
+
ue.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
|
|
977
977
|
e.dom || await new Promise((o) => G(() => e.dom, o)), setTimeout(() => {
|
|
978
978
|
st(e.name, "sessionStorage", t), n(!0);
|
|
979
979
|
}, 0);
|
|
@@ -982,14 +982,14 @@ const st = (t, e, n) => {
|
|
|
982
982
|
}, ee = {
|
|
983
983
|
loadMicroApp: (t) => {
|
|
984
984
|
Ht.value = !0;
|
|
985
|
-
const e =
|
|
985
|
+
const e = ue.value.find((a) => a.name === t), n = ue.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
|
|
986
986
|
if (!o) {
|
|
987
987
|
n && (n.actived = !1);
|
|
988
988
|
return;
|
|
989
989
|
}
|
|
990
990
|
if (e.isFirstActived = !0, r) {
|
|
991
991
|
e.src = e.entry;
|
|
992
|
-
const a =
|
|
992
|
+
const a = ue.value.find((l) => l.actived);
|
|
993
993
|
a && (a.actived = !1), e.loaded = !0, e.actived = !0;
|
|
994
994
|
return;
|
|
995
995
|
}
|
|
@@ -999,7 +999,7 @@ const st = (t, e, n) => {
|
|
|
999
999
|
}
|
|
1000
1000
|
},
|
|
1001
1001
|
hideMicroApp: async (t) => {
|
|
1002
|
-
const e =
|
|
1002
|
+
const e = ue.value.find((n) => n.name === t);
|
|
1003
1003
|
e && e.loaded && (e.dom || await new Promise((n) => G(() => e.dom, n)), st(t, "router", {
|
|
1004
1004
|
cmd: "push",
|
|
1005
1005
|
route: {
|
|
@@ -1009,21 +1009,21 @@ const st = (t, e, n) => {
|
|
|
1009
1009
|
}));
|
|
1010
1010
|
},
|
|
1011
1011
|
hideAllMicroApp: () => {
|
|
1012
|
-
Ht.value = !1,
|
|
1012
|
+
Ht.value = !1, ue.value.map((t) => {
|
|
1013
1013
|
t.actived = !1;
|
|
1014
1014
|
});
|
|
1015
1015
|
},
|
|
1016
1016
|
unloadMicroApp: (t) => {
|
|
1017
|
-
const e =
|
|
1017
|
+
const e = ue.value.find((n) => n.name === t);
|
|
1018
1018
|
e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
|
|
1019
1019
|
},
|
|
1020
1020
|
unloadAllMicroApp: () => {
|
|
1021
|
-
Ht.value = !1,
|
|
1021
|
+
Ht.value = !1, ue.value.map((t) => {
|
|
1022
1022
|
t.loaded = !1, t.actived = !1, t.dom = void 0;
|
|
1023
1023
|
});
|
|
1024
1024
|
},
|
|
1025
1025
|
setMicroAppRoute: async (t, e, n) => {
|
|
1026
|
-
const o =
|
|
1026
|
+
const o = ue.value.find((l) => l.name === e);
|
|
1027
1027
|
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((l) => G(() => o.dom, l)), !o.actived)) return o;
|
|
1028
1028
|
const r = n.path || n, s = n.query || {}, a = n.params || {};
|
|
1029
1029
|
return t.push({
|
|
@@ -1083,11 +1083,11 @@ const st = (t, e, n) => {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
},
|
|
1085
1085
|
reloadMicroAppRoute: async (t, e) => {
|
|
1086
|
-
const n =
|
|
1086
|
+
const n = ue.value.find((o) => o.name === t);
|
|
1087
1087
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "reload", path: e })));
|
|
1088
1088
|
},
|
|
1089
1089
|
unloadMicroAppRoute: async (t, e) => {
|
|
1090
|
-
const n =
|
|
1090
|
+
const n = ue.value.find((o) => o.name === t);
|
|
1091
1091
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
|
|
1092
1092
|
},
|
|
1093
1093
|
setMainAppLayoutVisible: (t) => {
|
|
@@ -1281,7 +1281,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1281
1281
|
__name: "das-micro-apps",
|
|
1282
1282
|
setup(t) {
|
|
1283
1283
|
const e = T(null), n = async (s, a) => {
|
|
1284
|
-
const l =
|
|
1284
|
+
const l = ue.value.find((p) => p.name === a);
|
|
1285
1285
|
if (!l) return;
|
|
1286
1286
|
l.dom = s.target, await Qe(), await new Promise((p) => setTimeout(p, 50));
|
|
1287
1287
|
const c = () => {
|
|
@@ -1299,12 +1299,12 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1299
1299
|
ee.sendMessageToMicroApp(a, "resize", c());
|
|
1300
1300
|
}).observe(e.value), ee.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), ee.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
1301
1301
|
}, o = (s, a) => {
|
|
1302
|
-
const l =
|
|
1302
|
+
const l = ue.value.find((u) => u.name === a);
|
|
1303
1303
|
if (!l) return;
|
|
1304
1304
|
const { dom: c, ...i } = l;
|
|
1305
1305
|
ee.sendMessageToMicroApp(a, "onActivated"), ee.triggerMicroAppLifeCycleListener("onActivated", i);
|
|
1306
1306
|
}, r = (s, a) => {
|
|
1307
|
-
const l =
|
|
1307
|
+
const l = ue.value.find((u) => u.name === a);
|
|
1308
1308
|
if (!l) return;
|
|
1309
1309
|
const { dom: c, ...i } = l;
|
|
1310
1310
|
ee.sendMessageToMicroApp(a, "onDeactivated"), ee.triggerMicroAppLifeCycleListener("onDeactivated", i);
|
|
@@ -1320,7 +1320,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1320
1320
|
($(!0), W(
|
|
1321
1321
|
De,
|
|
1322
1322
|
null,
|
|
1323
|
-
Tt(m(
|
|
1323
|
+
Tt(m(ue), (l) => ($(), W(
|
|
1324
1324
|
De,
|
|
1325
1325
|
null,
|
|
1326
1326
|
[
|
|
@@ -1370,17 +1370,17 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1370
1370
|
"router-view-visible": n.value
|
|
1371
1371
|
}, r.value), {
|
|
1372
1372
|
header: R(() => [
|
|
1373
|
-
|
|
1373
|
+
pe(s.$slots, "header", {}, () => [
|
|
1374
1374
|
x(m(sr))
|
|
1375
1375
|
])
|
|
1376
1376
|
]),
|
|
1377
1377
|
aside: R(() => [
|
|
1378
|
-
|
|
1378
|
+
pe(s.$slots, "aside", {}, () => [
|
|
1379
1379
|
x(m(ar), { menuAttr: s.menuAttr }, null, 8, ["menuAttr"])
|
|
1380
1380
|
])
|
|
1381
1381
|
]),
|
|
1382
1382
|
tab: R(() => [
|
|
1383
|
-
|
|
1383
|
+
pe(s.$slots, "tab", {}, () => [
|
|
1384
1384
|
x(m(ir), { tabsAttr: s.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1385
1385
|
])
|
|
1386
1386
|
]),
|
|
@@ -1402,7 +1402,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1402
1402
|
}
|
|
1403
1403
|
}), mi = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, Gg = (t, e) => {
|
|
1404
1404
|
if (!(t != null && t.microApps) || !Array.isArray(t.microApps)) return;
|
|
1405
|
-
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix),
|
|
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
1408
|
component: wr,
|
|
@@ -1523,22 +1523,22 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1523
1523
|
}));
|
|
1524
1524
|
return (r, s) => ($(), F(m(Dn), $t({ "transition-config": n.value }, o.value), {
|
|
1525
1525
|
header: R(() => [
|
|
1526
|
-
|
|
1526
|
+
pe(r.$slots, "header", {}, () => [
|
|
1527
1527
|
x(m(sr))
|
|
1528
1528
|
])
|
|
1529
1529
|
]),
|
|
1530
1530
|
aside: R(() => [
|
|
1531
|
-
|
|
1531
|
+
pe(r.$slots, "aside", {}, () => [
|
|
1532
1532
|
x(m(ar), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
1533
1533
|
])
|
|
1534
1534
|
]),
|
|
1535
1535
|
tab: R(() => [
|
|
1536
|
-
|
|
1536
|
+
pe(r.$slots, "tab", {}, () => [
|
|
1537
1537
|
x(m(ir), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1538
1538
|
])
|
|
1539
1539
|
]),
|
|
1540
1540
|
banner: R(() => [
|
|
1541
|
-
|
|
1541
|
+
pe(r.$slots, "banner")
|
|
1542
1542
|
]),
|
|
1543
1543
|
_: 3
|
|
1544
1544
|
/* FORWARDED */
|
|
@@ -1604,7 +1604,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1604
1604
|
v === "false" && (v = !1), h(g && !!(d && v));
|
|
1605
1605
|
},
|
|
1606
1606
|
{ immediate: !0 }
|
|
1607
|
-
),
|
|
1607
|
+
), ye.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
1608
1608
|
var d, v;
|
|
1609
1609
|
await p();
|
|
1610
1610
|
const _ = !!((d = n.value) != null && d.pageSwith);
|
|
@@ -1619,7 +1619,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1619
1619
|
height: r.value
|
|
1620
1620
|
}, {
|
|
1621
1621
|
default: R(() => [
|
|
1622
|
-
|
|
1622
|
+
pe(_.$slots, "default", {}, void 0, !0)
|
|
1623
1623
|
]),
|
|
1624
1624
|
_: 3
|
|
1625
1625
|
/* FORWARDED */
|
|
@@ -1651,14 +1651,14 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1651
1651
|
onClosed: n.closeCallback
|
|
1652
1652
|
}, {
|
|
1653
1653
|
footer: R(() => [
|
|
1654
|
-
|
|
1654
|
+
M("div", Ii, [
|
|
1655
1655
|
x(m(Ue), {
|
|
1656
1656
|
btnType: "default",
|
|
1657
1657
|
size: "small",
|
|
1658
1658
|
onClick: n.closeCallback
|
|
1659
1659
|
}, {
|
|
1660
1660
|
default: R(() => o[2] || (o[2] = [
|
|
1661
|
-
|
|
1661
|
+
Ae("我知道了")
|
|
1662
1662
|
])),
|
|
1663
1663
|
_: 1
|
|
1664
1664
|
/* STABLE */
|
|
@@ -1666,7 +1666,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1666
1666
|
])
|
|
1667
1667
|
]),
|
|
1668
1668
|
default: R(() => [
|
|
1669
|
-
|
|
1669
|
+
M("div", {
|
|
1670
1670
|
class: "content",
|
|
1671
1671
|
innerHTML: n.content
|
|
1672
1672
|
}, null, 8, Ci),
|
|
@@ -1674,7 +1674,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1674
1674
|
De,
|
|
1675
1675
|
{ key: 0 },
|
|
1676
1676
|
[
|
|
1677
|
-
o[1] || (o[1] =
|
|
1677
|
+
o[1] || (o[1] = M(
|
|
1678
1678
|
"div",
|
|
1679
1679
|
{ class: "divide" },
|
|
1680
1680
|
null,
|
|
@@ -1688,7 +1688,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1688
1688
|
key: s,
|
|
1689
1689
|
class: "desc-item"
|
|
1690
1690
|
}, [
|
|
1691
|
-
|
|
1691
|
+
Ae(
|
|
1692
1692
|
se(r),
|
|
1693
1693
|
1
|
|
1694
1694
|
/* TEXT */
|
|
@@ -1711,7 +1711,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1711
1711
|
}), Ei = /* @__PURE__ */ Ce(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
|
-
const a =
|
|
1714
|
+
const a = fe(Ei, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1715
1715
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
1716
1716
|
} });
|
|
1717
1717
|
Vt(a, r);
|
|
@@ -1737,8 +1737,8 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1737
1737
|
sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
|
|
1738
1738
|
}, Mi = () => {
|
|
1739
1739
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
1740
|
-
},
|
|
1741
|
-
let e =
|
|
1740
|
+
}, ve = (t) => {
|
|
1741
|
+
let e = me();
|
|
1742
1742
|
t.forEach((n) => {
|
|
1743
1743
|
var o;
|
|
1744
1744
|
if (n.key.startsWith("tabMap")) {
|
|
@@ -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 ? ke([{ key: "subAppList", value: e }]) : Fn(),
|
|
2468
|
+
return e.splice(n, 1), e.length ? ke([{ key: "subAppList", value: e }]) : Fn(), ve([
|
|
2469
2469
|
{ key: "currentCode", value: "" },
|
|
2470
2470
|
{ key: "currentTab", value: {} },
|
|
2471
2471
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2476,9 +2476,9 @@ const Kt = (t, e = "") => {
|
|
|
2476
2476
|
return { left: o, right: r };
|
|
2477
2477
|
}, Ld = (t, e, n) => {
|
|
2478
2478
|
var h;
|
|
2479
|
-
const o = Me(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((h =
|
|
2479
|
+
const o = Me(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((h = me()) == null ? void 0 : h.tabMap) ?? {})[t] ?? [], { left: a, right: l } = Pd(s, n), c = s.filter((p) => o.find((f) => f.code === p.code));
|
|
2480
2480
|
if (!a.length && !l.length || !c.length)
|
|
2481
|
-
return
|
|
2481
|
+
return ve([
|
|
2482
2482
|
{ key: "currentCode", value: "" },
|
|
2483
2483
|
{ key: "currentTab", value: {} },
|
|
2484
2484
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2493,7 +2493,7 @@ const Kt = (t, e = "") => {
|
|
|
2493
2493
|
const p = a.reverse().find((f) => c.map((w) => w.code).includes(f.code));
|
|
2494
2494
|
p && (i = p);
|
|
2495
2495
|
}
|
|
2496
|
-
return i ? (
|
|
2496
|
+
return i ? (ve([
|
|
2497
2497
|
{
|
|
2498
2498
|
key: "currentCode",
|
|
2499
2499
|
value: i.code
|
|
@@ -2507,7 +2507,7 @@ const Kt = (t, e = "") => {
|
|
|
2507
2507
|
value: i
|
|
2508
2508
|
},
|
|
2509
2509
|
{ key: `tabMap:${t}`, value: c }
|
|
2510
|
-
]), Er(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (
|
|
2510
|
+
]), Er(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (ve([
|
|
2511
2511
|
{ key: `preTab:${t}`, value: {} },
|
|
2512
2512
|
{ key: `tabMap:${t}`, value: [] }
|
|
2513
2513
|
]), $n(t));
|
|
@@ -2557,12 +2557,12 @@ const Kt = (t, e = "") => {
|
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
if (s && a) {
|
|
2560
|
-
const d = (
|
|
2560
|
+
const d = (me().tabMap ?? {})[e.code] ?? [];
|
|
2561
2561
|
if (d.length) {
|
|
2562
2562
|
const v = d.filter(
|
|
2563
2563
|
(A) => n && n === A.code || o && o === `/${A.applicationPath}${A.path}`.replace(/\/\//g, "/") || Me(c).map((C) => C.code).includes(A.code)
|
|
2564
2564
|
);
|
|
2565
|
-
|
|
2565
|
+
ve([
|
|
2566
2566
|
{
|
|
2567
2567
|
key: `tabMap:${e.code}`,
|
|
2568
2568
|
value: v
|
|
@@ -2616,7 +2616,7 @@ const Kt = (t, e = "") => {
|
|
|
2616
2616
|
path: h.routeUrl,
|
|
2617
2617
|
query: v
|
|
2618
2618
|
};
|
|
2619
|
-
|
|
2619
|
+
ve([
|
|
2620
2620
|
{
|
|
2621
2621
|
key: "currentCode",
|
|
2622
2622
|
value: h.code
|
|
@@ -2698,14 +2698,14 @@ const Kt = (t, e = "") => {
|
|
|
2698
2698
|
direction: "rtl"
|
|
2699
2699
|
}, {
|
|
2700
2700
|
footer: R(() => [
|
|
2701
|
-
|
|
2701
|
+
M("div", np, [
|
|
2702
2702
|
x(m(Ue), {
|
|
2703
2703
|
size: "middle",
|
|
2704
2704
|
onClick: u[4] || (u[4] = (h) => n.value = !1),
|
|
2705
2705
|
style: { "margin-right": "12px" }
|
|
2706
2706
|
}, {
|
|
2707
2707
|
default: R(() => u[6] || (u[6] = [
|
|
2708
|
-
|
|
2708
|
+
Ae("取消")
|
|
2709
2709
|
])),
|
|
2710
2710
|
_: 1
|
|
2711
2711
|
/* STABLE */
|
|
@@ -2717,7 +2717,7 @@ const Kt = (t, e = "") => {
|
|
|
2717
2717
|
onClick: c
|
|
2718
2718
|
}, {
|
|
2719
2719
|
default: R(() => u[7] || (u[7] = [
|
|
2720
|
-
|
|
2720
|
+
Ae("确定")
|
|
2721
2721
|
])),
|
|
2722
2722
|
_: 1
|
|
2723
2723
|
/* STABLE */
|
|
@@ -2725,17 +2725,17 @@ const Kt = (t, e = "") => {
|
|
|
2725
2725
|
])
|
|
2726
2726
|
]),
|
|
2727
2727
|
default: R(() => [
|
|
2728
|
-
|
|
2729
|
-
|
|
2728
|
+
M("div", Kd, [
|
|
2729
|
+
M(
|
|
2730
2730
|
"p",
|
|
2731
2731
|
Gd,
|
|
2732
2732
|
se(m(N)("侧边菜单栏").value),
|
|
2733
2733
|
1
|
|
2734
2734
|
/* TEXT */
|
|
2735
2735
|
),
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2736
|
+
M("div", Xd, [
|
|
2737
|
+
M("div", Zd, [
|
|
2738
|
+
M("img", {
|
|
2739
2739
|
src: m(Si),
|
|
2740
2740
|
alt: "",
|
|
2741
2741
|
width: "180",
|
|
@@ -2747,7 +2747,7 @@ const Kt = (t, e = "") => {
|
|
|
2747
2747
|
onChange: u[1] || (u[1] = (h) => l(1))
|
|
2748
2748
|
}, {
|
|
2749
2749
|
default: R(() => [
|
|
2750
|
-
|
|
2750
|
+
Ae(
|
|
2751
2751
|
se(m(N)("弹出式菜单栏").value),
|
|
2752
2752
|
1
|
|
2753
2753
|
/* TEXT */
|
|
@@ -2757,8 +2757,8 @@ const Kt = (t, e = "") => {
|
|
|
2757
2757
|
/* STABLE */
|
|
2758
2758
|
}, 8, ["modelValue"])
|
|
2759
2759
|
]),
|
|
2760
|
-
|
|
2761
|
-
|
|
2760
|
+
M("div", ep, [
|
|
2761
|
+
M("img", {
|
|
2762
2762
|
src: m(ki),
|
|
2763
2763
|
alt: "",
|
|
2764
2764
|
width: "180",
|
|
@@ -2770,7 +2770,7 @@ const Kt = (t, e = "") => {
|
|
|
2770
2770
|
onChange: u[3] || (u[3] = (h) => l(2))
|
|
2771
2771
|
}, {
|
|
2772
2772
|
default: R(() => [
|
|
2773
|
-
|
|
2773
|
+
Ae(
|
|
2774
2774
|
se(m(N)("内嵌式菜单栏").value),
|
|
2775
2775
|
1
|
|
2776
2776
|
/* TEXT */
|
|
@@ -2798,18 +2798,18 @@ const Kt = (t, e = "") => {
|
|
|
2798
2798
|
key: "loginTip",
|
|
2799
2799
|
message: "上次登录信息",
|
|
2800
2800
|
placement: "bottomRight",
|
|
2801
|
-
description:
|
|
2802
|
-
|
|
2801
|
+
description: fe("div", { class: "last-login-info" }, [
|
|
2802
|
+
fe(
|
|
2803
2803
|
"div",
|
|
2804
2804
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
2805
2805
|
"时间:" + js(l.lastModificationTime)
|
|
2806
2806
|
),
|
|
2807
|
-
|
|
2807
|
+
fe("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + l.ip)
|
|
2808
2808
|
])
|
|
2809
2809
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
2810
2810
|
}, o = async () => {
|
|
2811
2811
|
const [{ loginConfig: a }, { platformConfig: l }] = await Promise.all([Vd(), Wd()]);
|
|
2812
|
-
e(l),
|
|
2812
|
+
e(l), O.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !t() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && n();
|
|
2813
2813
|
}, r = T(!1), s = () => new Promise((a) => {
|
|
2814
2814
|
const l = () => {
|
|
2815
2815
|
if (r.value) return a();
|
|
@@ -2839,7 +2839,7 @@ const Kt = (t, e = "") => {
|
|
|
2839
2839
|
), G(
|
|
2840
2840
|
() => [i.value, u.value],
|
|
2841
2841
|
() => {
|
|
2842
|
-
|
|
2842
|
+
O.nav.setConfig({
|
|
2843
2843
|
showFullScreen: i.value,
|
|
2844
2844
|
showChangeEnterprise: u.value,
|
|
2845
2845
|
showSearch: !0,
|
|
@@ -2854,7 +2854,7 @@ const Kt = (t, e = "") => {
|
|
|
2854
2854
|
let w = {};
|
|
2855
2855
|
return await Ns([Ki, xd, zd, Xr, Yr]).then((g) => Object.assign(w, ...g)), a.value = !1, w;
|
|
2856
2856
|
}, p = T(!1);
|
|
2857
|
-
return
|
|
2857
|
+
return O.nav.addEventListener("onBeforeMount", async () => {
|
|
2858
2858
|
var E;
|
|
2859
2859
|
await t();
|
|
2860
2860
|
const w = await h();
|
|
@@ -2864,7 +2864,7 @@ const Kt = (t, e = "") => {
|
|
|
2864
2864
|
const C = [...br];
|
|
2865
2865
|
C.forEach((k) => {
|
|
2866
2866
|
_ != null && _.appAlias && k.value === je && (k.label = _.appAlias), _ != null && _.homeAlias && k.value === Ct && (k.label = _.homeAlias);
|
|
2867
|
-
}), l.value = C, _ != null && _.enable || (l.value = l.value.filter((k) => k.path === je), n.path === Ct && await e.replace(je)),
|
|
2867
|
+
}), l.value = C, _ != null && _.enable || (l.value = l.value.filter((k) => k.path === je), n.path === Ct && await e.replace(je)), O.nav.setItems(l.value), g && g.length && (O.nav.setProjectConfig({
|
|
2868
2868
|
treeProps: {
|
|
2869
2869
|
disabled: (k) => k.type !== 7
|
|
2870
2870
|
},
|
|
@@ -2872,9 +2872,9 @@ const Kt = (t, e = "") => {
|
|
|
2872
2872
|
filterNodeMethod: (k) => k.type === 7,
|
|
2873
2873
|
// 树打平之后保留的数据
|
|
2874
2874
|
filterFlatCondition: (k) => k.type === 7
|
|
2875
|
-
}),
|
|
2875
|
+
}), O.nav.setProjects(g || []), d && O.nav.setActiveProject(d));
|
|
2876
2876
|
const I = Yt() ?? {}, y = I != null && I.headPicture ? Mn(I.headPicture) : void 0;
|
|
2877
|
-
c.value = [...vi], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((Q) => Q.value !== "1")) : c.value = c.value.filter((k) => k.value !== "1"),
|
|
2877
|
+
c.value = [...vi], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((Q) => Q.value !== "1")) : c.value = c.value.filter((k) => k.value !== "1"), O.nav.setUserInfo({ headPicture: y, commandList: c.value }), O.nav.setSearchConfig({
|
|
2878
2878
|
getHistoryList: r,
|
|
2879
2879
|
getSearchList: s
|
|
2880
2880
|
});
|
|
@@ -2905,7 +2905,7 @@ const Kt = (t, e = "") => {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
}, up = () => {
|
|
2907
2907
|
const { entryMenu: t } = rn();
|
|
2908
|
-
|
|
2908
|
+
O.menu.addEventListener("onItemClick", async (e) => {
|
|
2909
2909
|
ce.innerSet = !0;
|
|
2910
2910
|
const n = Me(zt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
2911
2911
|
if (!(n && !n.routeUrl)) {
|
|
@@ -2919,22 +2919,22 @@ const Kt = (t, e = "") => {
|
|
|
2919
2919
|
});
|
|
2920
2920
|
}, dp = () => {
|
|
2921
2921
|
const { changeApp: t, deleteApp: e, beforeEntryApp: n } = vt();
|
|
2922
|
-
|
|
2922
|
+
O.nav.addEventListener("onItemClick", async (r) => {
|
|
2923
2923
|
const s = J().currentSubAppCode ?? "";
|
|
2924
2924
|
if (s !== r.code) {
|
|
2925
2925
|
if (s && Hi(s), !r.fixed && !await n(r))
|
|
2926
2926
|
throw new Error("取消切换");
|
|
2927
2927
|
t(r);
|
|
2928
2928
|
}
|
|
2929
|
-
}),
|
|
2929
|
+
}), O.nav.addEventListener("onItemRemove", (r) => {
|
|
2930
2930
|
var i;
|
|
2931
2931
|
const s = J();
|
|
2932
2932
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
2933
|
-
const c = (
|
|
2933
|
+
const c = (me().tabMap[r.code] ?? []).map((u) => u.code);
|
|
2934
2934
|
c && c.length && Ut(r.code, c), e(r);
|
|
2935
2935
|
});
|
|
2936
2936
|
const { enter: o } = ht();
|
|
2937
|
-
return
|
|
2937
|
+
return O.nav.addEventListener("fullScreenHandle", o), {};
|
|
2938
2938
|
}, pp = () => {
|
|
2939
2939
|
const t = Ye(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r = T(e), s = T(n), a = T(o);
|
|
2940
2940
|
let l = "", c = {};
|
|
@@ -2948,7 +2948,7 @@ const Kt = (t, e = "") => {
|
|
|
2948
2948
|
l = dt(d.path), c = dt(d.query);
|
|
2949
2949
|
const C = J().currentSubAppCode ?? "";
|
|
2950
2950
|
if (!C) return;
|
|
2951
|
-
const I = ((k = d.query) == null ? void 0 : k.menu) ?? ((Q =
|
|
2951
|
+
const I = ((k = d.query) == null ? void 0 : k.menu) ?? ((Q = me()) == null ? void 0 : Q.currentCode) ?? "";
|
|
2952
2952
|
if (!I) return;
|
|
2953
2953
|
const y = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
2954
2954
|
y && JSON.stringify(y) !== "{}" && (r.value = (B = y[C][I]) != null && B.fontColor ? y[C][I].fontColor : e, s.value = (V = y[C][I]) != null && V.backgroundColor ? y[C][I].backgroundColor : n, a.value = (q = y[C][I]) != null && q.backgroundColor ? y[C][I].backgroundColor : o);
|
|
@@ -2956,7 +2956,7 @@ const Kt = (t, e = "") => {
|
|
|
2956
2956
|
);
|
|
2957
2957
|
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: h, unloadRoute: p } = es(), f = (d) => {
|
|
2958
2958
|
var I;
|
|
2959
|
-
const v = Me(zt(d.applicationCode)).find((y) => y.code === d.code), C = (((I =
|
|
2959
|
+
const v = Me(zt(d.applicationCode)).find((y) => y.code === d.code), C = (((I = me().tabMap) == null ? void 0 : I[d.applicationCode]) ?? []).find((y) => y.code === d.code);
|
|
2960
2960
|
u({ currentMenu: v, route: { path: C.path, query: C.query ?? {} } });
|
|
2961
2961
|
}, w = (d) => {
|
|
2962
2962
|
if (!d || !d.length) return;
|
|
@@ -2965,12 +2965,12 @@ const Kt = (t, e = "") => {
|
|
|
2965
2965
|
}, _ = (d) => {
|
|
2966
2966
|
const v = J().currentSubAppCode ?? "";
|
|
2967
2967
|
ce.innerSet = !0;
|
|
2968
|
-
const A =
|
|
2968
|
+
const A = me(), C = A.tabMap[v], I = C.findIndex((B) => B.code === d.data.code);
|
|
2969
2969
|
if (I === -1) return;
|
|
2970
2970
|
const y = () => {
|
|
2971
2971
|
var q;
|
|
2972
2972
|
let V = (((q = J().appcategorys) == null ? void 0 : q.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === v);
|
|
2973
|
-
V = { ...V, value: V.code, label: V.name }, i(V),
|
|
2973
|
+
V = { ...V, value: V.code, label: V.name }, i(V), O.nav.removeItem(v);
|
|
2974
2974
|
};
|
|
2975
2975
|
({
|
|
2976
2976
|
me: async (B) => {
|
|
@@ -2980,7 +2980,7 @@ const Kt = (t, e = "") => {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
const V = A.currentCode;
|
|
2982
2982
|
let q = null;
|
|
2983
|
-
V === B.value && (I + 1 === C.length ? C[I - 1] && (q = C[I - 1]) : C[I + 1] && (q = C[I + 1])), C.splice(I, 1), w([B]),
|
|
2983
|
+
V === B.value && (I + 1 === C.length ? C[I - 1] && (q = C[I - 1]) : C[I + 1] && (q = C[I + 1])), C.splice(I, 1), w([B]), ve([{ key: `tabMap:${v}`, value: C }]), q ? f(q) : ve([{ key: `preTab:${v}`, value: {} }]);
|
|
2984
2984
|
},
|
|
2985
2985
|
all: y,
|
|
2986
2986
|
other: async (B) => {
|
|
@@ -2988,9 +2988,9 @@ const Kt = (t, e = "") => {
|
|
|
2988
2988
|
t.push({
|
|
2989
2989
|
path: `/${V.applicationPath}${V.path}`.replace(/\/\//g, "/"),
|
|
2990
2990
|
query: V.query
|
|
2991
|
-
}),
|
|
2991
|
+
}), O.menu.setActiveItem(V.menuId), O.tab.setActiveItem(V.code);
|
|
2992
2992
|
const q = C.filter((ie) => ie.code !== B.value);
|
|
2993
|
-
q.forEach((ie) =>
|
|
2993
|
+
q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), ve([{ key: `tabMap:${v}`, value: [V] }]), f(V);
|
|
2994
2994
|
},
|
|
2995
2995
|
right: async (B) => {
|
|
2996
2996
|
const V = A.currentCode;
|
|
@@ -2999,18 +2999,18 @@ const Kt = (t, e = "") => {
|
|
|
2999
2999
|
f(Ie);
|
|
3000
3000
|
}
|
|
3001
3001
|
const q = C.slice(I + 1);
|
|
3002
|
-
q.forEach((ie) =>
|
|
3002
|
+
q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), C.splice(I + 1), ve([{ key: `tabMap:${v}`, value: C }]);
|
|
3003
3003
|
}
|
|
3004
3004
|
})[d.type](d.data);
|
|
3005
3005
|
};
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
}),
|
|
3009
|
-
const v =
|
|
3006
|
+
O.tab.addEventListener("onItemClick", async (d) => {
|
|
3007
|
+
me().currentCode !== d.currentCode && (ce.innerSet = !0, f(d));
|
|
3008
|
+
}), O.tab.addEventListener("onItemRemove", (d) => {
|
|
3009
|
+
const v = me(), A = J().currentSubAppCode ?? "";
|
|
3010
3010
|
v.tabMap[A].findIndex((y) => y.code === d.code) !== -1 && (Ut(d.applicationCode, [d.code]), _({ type: "me", data: d }));
|
|
3011
|
-
}),
|
|
3011
|
+
}), O.tab.addEventListener("onMenuClick", (d) => {
|
|
3012
3012
|
let v = [];
|
|
3013
|
-
const A =
|
|
3013
|
+
const A = me().tabMap[d.applicationCode] ?? [];
|
|
3014
3014
|
if (d.type.key === "right") {
|
|
3015
3015
|
const C = A.findIndex((I) => I.code === d.data.value);
|
|
3016
3016
|
v = A.slice(C + 1);
|
|
@@ -3019,7 +3019,7 @@ const Kt = (t, e = "") => {
|
|
|
3019
3019
|
d.applicationCode,
|
|
3020
3020
|
v.map((C) => C.code)
|
|
3021
3021
|
), _({ type: d.type.key, data: d.data });
|
|
3022
|
-
}),
|
|
3022
|
+
}), O.tab.addEventListener("onPageRefresh", async (d) => {
|
|
3023
3023
|
if (!d || d.path === ct) return;
|
|
3024
3024
|
Ut(d.applicationCode, [d.code]);
|
|
3025
3025
|
const v = Me(zt(d.applicationCode)).find((I) => I.code === d.code);
|
|
@@ -3032,10 +3032,10 @@ const Kt = (t, e = "") => {
|
|
|
3032
3032
|
_n(A, C) || await u({ currentMenu: v }), h([d.path]);
|
|
3033
3033
|
});
|
|
3034
3034
|
const { enter: g } = ht();
|
|
3035
|
-
return
|
|
3035
|
+
return O.tab.addEventListener("onToggleFullScreen", g), { fontColor: r, backgroudColor: s, borderColor: a };
|
|
3036
3036
|
}, gn = tt(), Jo = (gn == null ? void 0 : gn.isAutoCloseApp) ?? !0, Ko = location.href.includes("showLayout=false"), Go = window.self !== window.top, fp = () => {
|
|
3037
3037
|
const t = () => {
|
|
3038
|
-
|
|
3038
|
+
O.nav.setItems([]), O.menu.setItems([]), O.tab.setItems([]), Sr();
|
|
3039
3039
|
};
|
|
3040
3040
|
window.addEventListener("beforeunload", function(e) {
|
|
3041
3041
|
if (!(Ko || !Jo || Go) && window.__isAutoCloseApp) {
|
|
@@ -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")), ye.addEventListenerFromMicroApp("system-reload", () => {
|
|
3055
3055
|
t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
3056
3056
|
});
|
|
3057
3057
|
}, vt = () => {
|
|
@@ -3059,7 +3059,7 @@ const Kt = (t, e = "") => {
|
|
|
3059
3059
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = tt();
|
|
3060
3060
|
!o && r && (s = [{ name: r }]);
|
|
3061
3061
|
const a = s.map((p) => p.name), l = () => {
|
|
3062
|
-
|
|
3062
|
+
O.menu.setItems([]), O.menu.setActiveItem(""), O.tab.setItems([]), O.tab.setActiveItem("");
|
|
3063
3063
|
}, c = async (p) => {
|
|
3064
3064
|
if (p.routeUrl && !a.includes(p.routeUrl)) return !0;
|
|
3065
3065
|
const f = p.code ?? "", _ = (J().subAppList ?? []).find((C) => C.code === f);
|
|
@@ -3076,8 +3076,8 @@ const Kt = (t, e = "") => {
|
|
|
3076
3076
|
var V, q, ie, Ie, Rt;
|
|
3077
3077
|
const { microApp: f = null, menuCode: w = "", menuPath: _ = "", route: g = {} } = p;
|
|
3078
3078
|
let d = g;
|
|
3079
|
-
if (
|
|
3080
|
-
if (!(a && a.find((oe) => _.startsWith("/" + oe) || _.startsWith(oe)))) return;
|
|
3079
|
+
if (!f && _) {
|
|
3080
|
+
if (l(), !(a && a.find((oe) => _.startsWith("/" + oe) || _.startsWith(oe)))) return;
|
|
3081
3081
|
t.push({ path: _, query: d.query });
|
|
3082
3082
|
return;
|
|
3083
3083
|
}
|
|
@@ -3086,15 +3086,16 @@ const Kt = (t, e = "") => {
|
|
|
3086
3086
|
A === "false" && (A = !1);
|
|
3087
3087
|
const C = (f == null ? void 0 : f.openType) ?? 1, I = (f == null ? void 0 : f.type) ?? 1;
|
|
3088
3088
|
if (f.routeUrl && !a.includes(f.routeUrl)) {
|
|
3089
|
-
|
|
3090
|
-
|
|
3089
|
+
l();
|
|
3090
|
+
const de = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
|
|
3091
|
+
if ((de == null ? void 0 : de.find((_e) => _e.code === f.code)) || de == null || de.push(f), ke([
|
|
3091
3092
|
{ key: "currentSubApp", value: f },
|
|
3092
3093
|
{ key: "currentSubAppCode", value: f.code },
|
|
3093
|
-
{ key: "subAppList", value:
|
|
3094
|
-
]),
|
|
3094
|
+
{ key: "subAppList", value: de }
|
|
3095
|
+
]), de.forEach((_e) => {
|
|
3095
3096
|
const ze = { ..._e, value: _e.code, label: _e.name };
|
|
3096
|
-
|
|
3097
|
-
}),
|
|
3097
|
+
O.nav.appendItem(ze);
|
|
3098
|
+
}), O.nav.setActiveItem(f.code), f.routeUrl.includes("entrance=main")) {
|
|
3098
3099
|
t.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
|
|
3099
3100
|
return;
|
|
3100
3101
|
}
|
|
@@ -3123,9 +3124,9 @@ const Kt = (t, e = "") => {
|
|
|
3123
3124
|
query: { ...Q, app: E.applicationCode, menu: E.code },
|
|
3124
3125
|
meta: { ...(d == null ? void 0 : d.meta) ?? {} }
|
|
3125
3126
|
}), S && (S == null ? void 0 : S.code) !== (f == null ? void 0 : f.code)) {
|
|
3126
|
-
if (S.fixed && (
|
|
3127
|
-
const
|
|
3128
|
-
await i({ microApp:
|
|
3127
|
+
if (S.fixed && (t.push(S.path), l(), O.nav.setActiveItem(S.path)), !S.fixed) {
|
|
3128
|
+
const de = (Ie = J().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === S.code), oe = me().preTab[S.code], _e = { ...(oe == null ? void 0 : oe.query) ?? {} };
|
|
3129
|
+
await i({ microApp: de, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query: _e } });
|
|
3129
3130
|
}
|
|
3130
3131
|
return;
|
|
3131
3132
|
}
|
|
@@ -3143,11 +3144,11 @@ const Kt = (t, e = "") => {
|
|
|
3143
3144
|
if (v && A) {
|
|
3144
3145
|
(Rt = J().subAppList) == null || Rt.forEach((oe) => {
|
|
3145
3146
|
const _e = { ...oe, value: oe.code, label: oe.name };
|
|
3146
|
-
|
|
3147
|
-
}),
|
|
3148
|
-
const
|
|
3149
|
-
|
|
3150
|
-
|
|
3147
|
+
O.nav.appendItem(_e);
|
|
3148
|
+
}), O.nav.setActiveItem(B.code), O.menu.setItems(y);
|
|
3149
|
+
const de = me().tabMap[B.code] ?? [];
|
|
3150
|
+
de.length && de.forEach((oe) => {
|
|
3151
|
+
O.tab.appendItem({
|
|
3151
3152
|
...oe,
|
|
3152
3153
|
value: oe.code,
|
|
3153
3154
|
label: oe.name
|
|
@@ -3158,17 +3159,17 @@ const Kt = (t, e = "") => {
|
|
|
3158
3159
|
}, u = async (p) => {
|
|
3159
3160
|
var f;
|
|
3160
3161
|
if (ce.innerSet = !0, p.fixed) {
|
|
3161
|
-
|
|
3162
|
+
t.push(p.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(p.path), ke([
|
|
3162
3163
|
{ key: "currentSubAppCode", value: "" },
|
|
3163
3164
|
{ key: "currentSubApp", value: {} }
|
|
3164
|
-
]),
|
|
3165
|
+
]), ve([
|
|
3165
3166
|
{ key: "currentCode", value: "" },
|
|
3166
3167
|
{ key: "currentTab", value: {} }
|
|
3167
|
-
])
|
|
3168
|
+
]);
|
|
3168
3169
|
return;
|
|
3169
3170
|
}
|
|
3170
3171
|
if (!p.fixed) {
|
|
3171
|
-
const w = (f = J().subAppList) == null ? void 0 : f.find((v) => v.code === p.code), _ =
|
|
3172
|
+
const w = (f = J().subAppList) == null ? void 0 : f.find((v) => v.code === p.code), _ = me().preTab[p.code], g = (_ == null ? void 0 : _.code) ?? "", d = { ...(_ == null ? void 0 : _.query) ?? {} };
|
|
3172
3173
|
await i({ microApp: w, menuCode: g, route: { query: d } });
|
|
3173
3174
|
}
|
|
3174
3175
|
};
|
|
@@ -3182,21 +3183,21 @@ const Kt = (t, e = "") => {
|
|
|
3182
3183
|
if (!((d = f.subAppList) != null && d.length)) return;
|
|
3183
3184
|
const w = f.subAppList.findIndex((v) => v.code === p.code);
|
|
3184
3185
|
if (w === -1) return;
|
|
3185
|
-
const _ =
|
|
3186
|
+
const _ = me().tabMap[p.code] ?? [];
|
|
3186
3187
|
if (_.length) {
|
|
3187
3188
|
const v = _.map((A) => A.path);
|
|
3188
3189
|
n(v);
|
|
3189
3190
|
}
|
|
3190
3191
|
let g = null;
|
|
3191
|
-
if (f.currentSubAppCode === p.code && (w + 1 !== f.subAppList.length ? f.subAppList[w + 1] && (g = f.subAppList[w + 1]) : f.subAppList[w - 1] && (g = f.subAppList[w - 1])), f.subAppList.splice(w, 1), ke([{ key: "subAppList", value: f.subAppList }]),
|
|
3192
|
+
if (f.currentSubAppCode === p.code && (w + 1 !== f.subAppList.length ? f.subAppList[w + 1] && (g = f.subAppList[w + 1]) : f.subAppList[w - 1] && (g = f.subAppList[w - 1])), f.subAppList.splice(w, 1), ke([{ key: "subAppList", value: f.subAppList }]), ve([
|
|
3192
3193
|
{ key: `preTab:${p.code}`, value: {} },
|
|
3193
3194
|
{ key: `tabMap:${p.code}`, value: [] }
|
|
3194
3195
|
]), g) {
|
|
3195
3196
|
const v = { ...g, value: g.code, label: g.name };
|
|
3196
|
-
await u(v),
|
|
3197
|
+
await u(v), O.nav.setActiveItem(g.code);
|
|
3197
3198
|
}
|
|
3198
3199
|
if (!f.subAppList.length) {
|
|
3199
|
-
|
|
3200
|
+
O.menu.setItems([]), O.tab.setItems([]);
|
|
3200
3201
|
const v = br.find((A) => A.value === je);
|
|
3201
3202
|
v && u(v), Fn(), Tr();
|
|
3202
3203
|
}
|
|
@@ -3215,18 +3216,18 @@ const Kt = (t, e = "") => {
|
|
|
3215
3216
|
if (u === 1)
|
|
3216
3217
|
if (h === 1)
|
|
3217
3218
|
if (a.routeUrl.startsWith(ct)) {
|
|
3218
|
-
|
|
3219
|
+
ye.hideAllMicroApp(), p = ct;
|
|
3219
3220
|
const g = Hs(a.routeUrl, "iframeSrc");
|
|
3220
3221
|
i = { ...i, iframeSrc: g }, t.push({ path: p, query: i });
|
|
3221
3222
|
} else a.applicationPath && (p = c || a.routeUrl, p = `/${a.applicationPath}${p}`.replace(/\/\//g, "/"), t.push({ path: p, query: i }));
|
|
3222
3223
|
else {
|
|
3223
|
-
|
|
3224
|
+
ye.hideAllMicroApp(), p = ct;
|
|
3224
3225
|
const g = En(wn(bn(a.routeUrl)));
|
|
3225
3226
|
i = { ...i, iframeSrc: g }, t.push({ path: p, query: i });
|
|
3226
3227
|
}
|
|
3227
3228
|
if (u === 2) {
|
|
3228
3229
|
let g = h === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
|
|
3229
|
-
g = En(wn(bn(g))), ce.innerSet ? (
|
|
3230
|
+
g = En(wn(bn(g))), ce.innerSet ? (ye.hideAllMicroApp(), p = Cr, t.push({ path: p, query: i }), g && window.open(g, "_blank")) : h === 1 && (p = g, i = { ...i, showLayout: !1 }, t.push({
|
|
3230
3231
|
path: p,
|
|
3231
3232
|
query: i
|
|
3232
3233
|
}));
|
|
@@ -3244,11 +3245,11 @@ const Kt = (t, e = "") => {
|
|
|
3244
3245
|
path: p,
|
|
3245
3246
|
query: i
|
|
3246
3247
|
};
|
|
3247
|
-
|
|
3248
|
+
O.tab.appendItem({
|
|
3248
3249
|
...g,
|
|
3249
3250
|
value: g.code,
|
|
3250
3251
|
label: g.name
|
|
3251
|
-
}),
|
|
3252
|
+
}), O.tab.setActiveItem(a.code), O.menu.setActiveItem(a.id), Er(a.code), ve([
|
|
3252
3253
|
{
|
|
3253
3254
|
key: "currentCode",
|
|
3254
3255
|
value: a.code
|
|
@@ -3307,7 +3308,7 @@ const Kt = (t, e = "") => {
|
|
|
3307
3308
|
(E) => g === E.code || _.includes(E.code)
|
|
3308
3309
|
);
|
|
3309
3310
|
ke([{ key: "subAppList", value: S }]), y && y.length && y.forEach((E) => {
|
|
3310
|
-
|
|
3311
|
+
ve([
|
|
3311
3312
|
{ key: `preTab:${E.code}`, value: {} },
|
|
3312
3313
|
{ key: `tabMap:${E.code}`, value: [] }
|
|
3313
3314
|
]);
|
|
@@ -3319,11 +3320,11 @@ const Kt = (t, e = "") => {
|
|
|
3319
3320
|
const { currentApp: S } = $n(i.query.app);
|
|
3320
3321
|
if (S) {
|
|
3321
3322
|
y = S;
|
|
3322
|
-
const k = (
|
|
3323
|
+
const k = (me().preTab ?? {})[y.code];
|
|
3323
3324
|
i = {}, k && (i.path = `/${k.applicationPath}${k.path}`.replace(/\/\//g, "/"), i.query = k.query);
|
|
3324
3325
|
}
|
|
3325
3326
|
}
|
|
3326
|
-
y != null && y.fixed ? (
|
|
3327
|
+
y != null && y.fixed ? (r.push(y.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(y.path)) : o({ microApp: y, menuCode: i.query.menu, menuPath: i.path, route: i });
|
|
3327
3328
|
return;
|
|
3328
3329
|
} else {
|
|
3329
3330
|
const y = p && p.find(
|
|
@@ -3343,15 +3344,15 @@ const Kt = (t, e = "") => {
|
|
|
3343
3344
|
}
|
|
3344
3345
|
}
|
|
3345
3346
|
if (u) {
|
|
3346
|
-
|
|
3347
|
+
(I = (C = J()) == null ? void 0 : C.subAppList) == null || I.forEach((S) => {
|
|
3347
3348
|
const E = { ...S, value: S.code, label: S.name };
|
|
3348
|
-
|
|
3349
|
+
O.nav.appendItem(E);
|
|
3349
3350
|
});
|
|
3350
3351
|
const y = t.value.find((S) => S.path === location.pathname);
|
|
3351
|
-
y && (
|
|
3352
|
+
y && (O.nav.setActiveItem(y.path), O.menu.setItems([]), O.tab.setItems([]), ke([
|
|
3352
3353
|
{ key: "currentSubAppCode", value: "" },
|
|
3353
3354
|
{ key: "currentSubApp", value: {} }
|
|
3354
|
-
]),
|
|
3355
|
+
]), ve([
|
|
3355
3356
|
{ key: "currentCode", value: "" },
|
|
3356
3357
|
{ key: "currentTab", value: {} }
|
|
3357
3358
|
]));
|
|
@@ -3405,7 +3406,7 @@ const Kt = (t, e = "") => {
|
|
|
3405
3406
|
const p = c.find((f) => f.code === a);
|
|
3406
3407
|
p && r({ microApp: p, menuPath: `/${p.routeUrl}/userInfo` });
|
|
3407
3408
|
};
|
|
3408
|
-
return
|
|
3409
|
+
return O.nav.addEventListener("onUserCommandChange", (a) => {
|
|
3409
3410
|
var c, i;
|
|
3410
3411
|
({
|
|
3411
3412
|
0: (c = e.value) == null ? void 0 : c.openDialog,
|
|
@@ -3421,7 +3422,7 @@ const Kt = (t, e = "") => {
|
|
|
3421
3422
|
const t = tt(), e = T(!1), n = T(""), o = T(""), r = () => {
|
|
3422
3423
|
n.value = Yt().id, o.value = cr().tenantId, e.value = !0;
|
|
3423
3424
|
};
|
|
3424
|
-
|
|
3425
|
+
O.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
3425
3426
|
r();
|
|
3426
3427
|
});
|
|
3427
3428
|
const s = () => {
|
|
@@ -3465,7 +3466,7 @@ const Kt = (t, e = "") => {
|
|
|
3465
3466
|
};
|
|
3466
3467
|
}, Ap = () => {
|
|
3467
3468
|
const { changeEnterprise: t } = ts();
|
|
3468
|
-
|
|
3469
|
+
O.nav.addEventListener("onProjectChange", async (e) => {
|
|
3469
3470
|
const n = On();
|
|
3470
3471
|
if ((n == null ? void 0 : n.flag) === 4) {
|
|
3471
3472
|
const o = n.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
|
|
@@ -3481,7 +3482,7 @@ const Kt = (t, e = "") => {
|
|
|
3481
3482
|
const [r, s] = await yp().run({ name: o });
|
|
3482
3483
|
return r ? [] : s.filter((a) => a.routeUrl);
|
|
3483
3484
|
}, { entryApp: n } = vt();
|
|
3484
|
-
return
|
|
3485
|
+
return O.nav.addEventListener("searchToPage", async (o) => {
|
|
3485
3486
|
const { item: r, keyword: s, cb: a } = o;
|
|
3486
3487
|
if (r != null && r.disable || r != null && r.expired) {
|
|
3487
3488
|
const { title: u, content: h, desc: p } = await Zn(r);
|
|
@@ -3491,10 +3492,10 @@ const Kt = (t, e = "") => {
|
|
|
3491
3492
|
await wp().run({ searchVal: s, clickData: r });
|
|
3492
3493
|
const i = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
|
|
3493
3494
|
i && (n({ microApp: i, menuCode: r.code }), a());
|
|
3494
|
-
}),
|
|
3495
|
+
}), O.nav.addEventListener("deleteSearchItem", async (o) => {
|
|
3495
3496
|
const { value: r, cb: s } = o;
|
|
3496
3497
|
await Cp().run({ id: r }), s();
|
|
3497
|
-
}),
|
|
3498
|
+
}), O.nav.addEventListener("clearSearchList", async (o) => {
|
|
3498
3499
|
const { cb: r } = o;
|
|
3499
3500
|
await bp().run(), r();
|
|
3500
3501
|
}), {
|
|
@@ -3507,12 +3508,12 @@ const Kt = (t, e = "") => {
|
|
|
3507
3508
|
excludeRoutes: [],
|
|
3508
3509
|
routeKeepAliveVisible: !0
|
|
3509
3510
|
}), Tp = () => {
|
|
3510
|
-
|
|
3511
|
+
ye.addEventListenerFromMicroApp("iot:change-instance", (t) => {
|
|
3511
3512
|
const e = J(), n = e.currentSubAppCode;
|
|
3512
3513
|
let o = zt(n);
|
|
3513
3514
|
o.forEach((s) => {
|
|
3514
3515
|
s.fixed && (s.name = t.data.instanceInfo.instanceName);
|
|
3515
|
-
}),
|
|
3516
|
+
}), O.menu.setItems(o);
|
|
3516
3517
|
const r = e.subAppList;
|
|
3517
3518
|
r == null || r.forEach((s) => {
|
|
3518
3519
|
s.code === n && (s.menus = o);
|
|
@@ -3529,21 +3530,21 @@ const Kt = (t, e = "") => {
|
|
|
3529
3530
|
});
|
|
3530
3531
|
}, Ep = (t) => {
|
|
3531
3532
|
["personcenter", "rightmanage"].forEach((n) => {
|
|
3532
|
-
|
|
3533
|
+
ye.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
|
|
3533
3534
|
const { userInfo: r } = o.data, s = r != null && r.headPicture ? Mn(r.headPicture) : void 0;
|
|
3534
|
-
|
|
3535
|
+
O.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
3535
3536
|
});
|
|
3536
3537
|
});
|
|
3537
3538
|
}, Sp = () => {
|
|
3538
|
-
|
|
3539
|
+
ye.addEventListenerFromMicroApp("devicePanelShow", (t) => {
|
|
3539
3540
|
const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
|
|
3540
3541
|
fr(e, n, o, r, s, a);
|
|
3541
|
-
}),
|
|
3542
|
+
}), ye.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
|
|
3542
3543
|
Xs();
|
|
3543
|
-
}),
|
|
3544
|
+
}), ye.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
|
|
3544
3545
|
const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
|
|
3545
3546
|
Zs(e, n, o);
|
|
3546
|
-
}),
|
|
3547
|
+
}), ye.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
|
|
3547
3548
|
Ys();
|
|
3548
3549
|
});
|
|
3549
3550
|
}, kp = Qn.get("/platform/login/pwd-advance-notify-check"), Pp = () => {
|
|
@@ -3559,7 +3560,7 @@ const Kt = (t, e = "") => {
|
|
|
3559
3560
|
await kp().run();
|
|
3560
3561
|
},
|
|
3561
3562
|
message: async (a) => {
|
|
3562
|
-
if (
|
|
3563
|
+
if (ye.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
|
|
3563
3564
|
const c = Fe().id;
|
|
3564
3565
|
t.value = a.filter(
|
|
3565
3566
|
(i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
|
|
@@ -3569,16 +3570,16 @@ const Kt = (t, e = "") => {
|
|
|
3569
3570
|
class: "message-center-notify",
|
|
3570
3571
|
message: i.title,
|
|
3571
3572
|
top: "55px",
|
|
3572
|
-
description:
|
|
3573
|
+
description: fe("div", {}, [
|
|
3573
3574
|
// 标题
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3575
|
+
fe("div", { class: "custom-title" }, [
|
|
3576
|
+
fe(qe, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
|
|
3577
|
+
fe("div", { class: "title" }, i.title)
|
|
3577
3578
|
]),
|
|
3578
3579
|
// 内容
|
|
3579
|
-
|
|
3580
|
+
fe("div", { class: "custom-content" }, i.content),
|
|
3580
3581
|
// 底部按钮
|
|
3581
|
-
i.title !== "密码更新提醒" ?
|
|
3582
|
+
i.title !== "密码更新提醒" ? fe(
|
|
3582
3583
|
"div",
|
|
3583
3584
|
{
|
|
3584
3585
|
class: "footer-btn",
|
|
@@ -3644,7 +3645,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3644
3645
|
onClick: h[1] || (h[1] = (p) => c())
|
|
3645
3646
|
},
|
|
3646
3647
|
[
|
|
3647
|
-
|
|
3648
|
+
pe(u.$slots, "default", {}, void 0, !0)
|
|
3648
3649
|
],
|
|
3649
3650
|
34
|
|
3650
3651
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -3673,7 +3674,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3673
3674
|
onItemClick: (i) => r(c)
|
|
3674
3675
|
}, {
|
|
3675
3676
|
default: R(() => [
|
|
3676
|
-
s.showFn(c) ?
|
|
3677
|
+
s.showFn(c) ? pe(s.$slots, "default", {
|
|
3677
3678
|
key: 0,
|
|
3678
3679
|
index: c
|
|
3679
3680
|
}, void 0, !0) : j("v-if", !0)
|
|
@@ -3697,94 +3698,94 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3697
3698
|
"div",
|
|
3698
3699
|
{
|
|
3699
3700
|
class: "direction-control",
|
|
3700
|
-
onDblclick: s[9] || (s[9] =
|
|
3701
|
+
onDblclick: s[9] || (s[9] = le((a) => a.stopPropagation(), ["stop"]))
|
|
3701
3702
|
},
|
|
3702
3703
|
[
|
|
3703
|
-
x(m(
|
|
3704
|
+
x(m(ge), { content: "左上" }, {
|
|
3704
3705
|
default: R(() => [
|
|
3705
|
-
|
|
3706
|
+
M("div", {
|
|
3706
3707
|
class: "icon icon-top-left",
|
|
3707
|
-
onClick: s[0] || (s[0] =
|
|
3708
|
+
onClick: s[0] || (s[0] = le((a) => o("leftUp"), ["stop"]))
|
|
3708
3709
|
})
|
|
3709
3710
|
]),
|
|
3710
3711
|
_: 1
|
|
3711
3712
|
/* STABLE */
|
|
3712
3713
|
}),
|
|
3713
|
-
x(m(
|
|
3714
|
+
x(m(ge), { content: "上" }, {
|
|
3714
3715
|
default: R(() => [
|
|
3715
|
-
|
|
3716
|
+
M("div", {
|
|
3716
3717
|
class: "icon icon-top",
|
|
3717
|
-
onClick: s[1] || (s[1] =
|
|
3718
|
+
onClick: s[1] || (s[1] = le((a) => o("up"), ["stop"]))
|
|
3718
3719
|
})
|
|
3719
3720
|
]),
|
|
3720
3721
|
_: 1
|
|
3721
3722
|
/* STABLE */
|
|
3722
3723
|
}),
|
|
3723
|
-
x(m(
|
|
3724
|
+
x(m(ge), { content: "右上" }, {
|
|
3724
3725
|
default: R(() => [
|
|
3725
|
-
|
|
3726
|
+
M("div", {
|
|
3726
3727
|
class: "icon icon-top-right",
|
|
3727
|
-
onClick: s[2] || (s[2] =
|
|
3728
|
+
onClick: s[2] || (s[2] = le((a) => o("rightUp"), ["stop"]))
|
|
3728
3729
|
})
|
|
3729
3730
|
]),
|
|
3730
3731
|
_: 1
|
|
3731
3732
|
/* STABLE */
|
|
3732
3733
|
}),
|
|
3733
|
-
x(m(
|
|
3734
|
+
x(m(ge), { content: "左" }, {
|
|
3734
3735
|
default: R(() => [
|
|
3735
|
-
|
|
3736
|
+
M("div", {
|
|
3736
3737
|
class: "icon icon-left",
|
|
3737
|
-
onClick: s[3] || (s[3] =
|
|
3738
|
+
onClick: s[3] || (s[3] = le((a) => o("left"), ["stop"]))
|
|
3738
3739
|
})
|
|
3739
3740
|
]),
|
|
3740
3741
|
_: 1
|
|
3741
3742
|
/* STABLE */
|
|
3742
3743
|
}),
|
|
3743
|
-
x(m(
|
|
3744
|
+
x(m(ge), { content: "自动" }, {
|
|
3744
3745
|
default: R(() => [
|
|
3745
|
-
|
|
3746
|
+
M("div", {
|
|
3746
3747
|
class: "icon icon-auto",
|
|
3747
|
-
onClick: s[4] || (s[4] =
|
|
3748
|
+
onClick: s[4] || (s[4] = le((a) => o("auto"), ["stop"]))
|
|
3748
3749
|
})
|
|
3749
3750
|
]),
|
|
3750
3751
|
_: 1
|
|
3751
3752
|
/* STABLE */
|
|
3752
3753
|
}),
|
|
3753
|
-
x(m(
|
|
3754
|
+
x(m(ge), { content: "右" }, {
|
|
3754
3755
|
default: R(() => [
|
|
3755
|
-
|
|
3756
|
+
M("div", {
|
|
3756
3757
|
class: "icon icon-right",
|
|
3757
|
-
onClick: s[5] || (s[5] =
|
|
3758
|
+
onClick: s[5] || (s[5] = le((a) => o("right"), ["stop"]))
|
|
3758
3759
|
})
|
|
3759
3760
|
]),
|
|
3760
3761
|
_: 1
|
|
3761
3762
|
/* STABLE */
|
|
3762
3763
|
}),
|
|
3763
|
-
x(m(
|
|
3764
|
+
x(m(ge), { content: "左下" }, {
|
|
3764
3765
|
default: R(() => [
|
|
3765
|
-
|
|
3766
|
+
M("div", {
|
|
3766
3767
|
class: "icon icon-bottom-left",
|
|
3767
|
-
onClick: s[6] || (s[6] =
|
|
3768
|
+
onClick: s[6] || (s[6] = le((a) => o("leftDown"), ["stop"]))
|
|
3768
3769
|
})
|
|
3769
3770
|
]),
|
|
3770
3771
|
_: 1
|
|
3771
3772
|
/* STABLE */
|
|
3772
3773
|
}),
|
|
3773
|
-
x(m(
|
|
3774
|
+
x(m(ge), { content: "下" }, {
|
|
3774
3775
|
default: R(() => [
|
|
3775
|
-
|
|
3776
|
+
M("div", {
|
|
3776
3777
|
class: "icon icon-bottom",
|
|
3777
|
-
onClick: s[7] || (s[7] =
|
|
3778
|
+
onClick: s[7] || (s[7] = le((a) => o("down"), ["stop"]))
|
|
3778
3779
|
})
|
|
3779
3780
|
]),
|
|
3780
3781
|
_: 1
|
|
3781
3782
|
/* STABLE */
|
|
3782
3783
|
}),
|
|
3783
|
-
x(m(
|
|
3784
|
+
x(m(ge), { content: "右下" }, {
|
|
3784
3785
|
default: R(() => [
|
|
3785
|
-
|
|
3786
|
+
M("div", {
|
|
3786
3787
|
class: "icon icon-bottom-right",
|
|
3787
|
-
onClick: s[8] || (s[8] =
|
|
3788
|
+
onClick: s[8] || (s[8] = le((a) => o("rightDown"), ["stop"]))
|
|
3788
3789
|
})
|
|
3789
3790
|
]),
|
|
3790
3791
|
_: 1
|
|
@@ -3895,10 +3896,10 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3895
3896
|
tip: "加载中..."
|
|
3896
3897
|
}, {
|
|
3897
3898
|
default: R(() => [
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3899
|
+
M("div", Vp, [
|
|
3900
|
+
M("div", Wp, [
|
|
3901
|
+
M("div", zp, [
|
|
3902
|
+
M(
|
|
3902
3903
|
"div",
|
|
3903
3904
|
qp,
|
|
3904
3905
|
se(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
@@ -3907,7 +3908,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3907
3908
|
)
|
|
3908
3909
|
])
|
|
3909
3910
|
]),
|
|
3910
|
-
|
|
3911
|
+
M("div", Jp, [
|
|
3911
3912
|
["live"].includes(A.type) ? ($(), W("span", Kp, "正在实时预览")) : j("v-if", !0),
|
|
3912
3913
|
j(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
3913
3914
|
])
|
|
@@ -3921,45 +3922,45 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3921
3922
|
onLoaded: h,
|
|
3922
3923
|
src: n.videoUrl
|
|
3923
3924
|
}, null, 8, ["muted", "src"])) : j("v-if", !0),
|
|
3924
|
-
|
|
3925
|
-
C[3] || (C[3] =
|
|
3925
|
+
M("div", Gp, [
|
|
3926
|
+
C[3] || (C[3] = M(
|
|
3926
3927
|
"div",
|
|
3927
3928
|
{ class: "video-bottom_l" },
|
|
3928
3929
|
null,
|
|
3929
3930
|
-1
|
|
3930
3931
|
/* HOISTED */
|
|
3931
3932
|
)),
|
|
3932
|
-
|
|
3933
|
-
|
|
3933
|
+
M("div", Xp, [
|
|
3934
|
+
M(
|
|
3934
3935
|
"div",
|
|
3935
3936
|
{
|
|
3936
3937
|
class: "controls",
|
|
3937
|
-
onDblclick: C[2] || (C[2] =
|
|
3938
|
+
onDblclick: C[2] || (C[2] = le((I) => I.stopPropagation(), ["stop"]))
|
|
3938
3939
|
},
|
|
3939
3940
|
[
|
|
3940
|
-
x(m(
|
|
3941
|
+
x(m(ge), { content: "声音" }, {
|
|
3941
3942
|
default: R(() => [
|
|
3942
3943
|
x(m(qe), {
|
|
3943
3944
|
class: "icon icon-volume",
|
|
3944
3945
|
icon: r.value ? "muted" : "volume",
|
|
3945
|
-
onClick:
|
|
3946
|
+
onClick: le(p, ["stop"])
|
|
3946
3947
|
}, null, 8, ["icon"])
|
|
3947
3948
|
]),
|
|
3948
3949
|
_: 1
|
|
3949
3950
|
/* STABLE */
|
|
3950
3951
|
}),
|
|
3951
|
-
x(m(
|
|
3952
|
+
x(m(ge), { content: "截图" }, {
|
|
3952
3953
|
default: R(() => [
|
|
3953
3954
|
x(m(qe), {
|
|
3954
3955
|
class: "icon icon-screenshot",
|
|
3955
3956
|
icon: "screenshot",
|
|
3956
|
-
onClick:
|
|
3957
|
+
onClick: le(_, ["stop"])
|
|
3957
3958
|
})
|
|
3958
3959
|
]),
|
|
3959
3960
|
_: 1
|
|
3960
3961
|
/* STABLE */
|
|
3961
3962
|
}),
|
|
3962
|
-
v("control") ? ($(), F(m(
|
|
3963
|
+
v("control") ? ($(), F(m(ge), {
|
|
3963
3964
|
key: 0,
|
|
3964
3965
|
content: "聚焦-"
|
|
3965
3966
|
}, {
|
|
@@ -3968,13 +3969,13 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3968
3969
|
key: 0,
|
|
3969
3970
|
class: "icon icon-shrink",
|
|
3970
3971
|
icon: "shrink",
|
|
3971
|
-
onClick: C[0] || (C[0] =
|
|
3972
|
+
onClick: C[0] || (C[0] = le((I) => d("zoomOut"), ["stop"]))
|
|
3972
3973
|
})) : j("v-if", !0)
|
|
3973
3974
|
]),
|
|
3974
3975
|
_: 1
|
|
3975
3976
|
/* STABLE */
|
|
3976
3977
|
})) : j("v-if", !0),
|
|
3977
|
-
v("control") ? ($(), F(m(
|
|
3978
|
+
v("control") ? ($(), F(m(ge), {
|
|
3978
3979
|
key: 1,
|
|
3979
3980
|
content: "聚焦+"
|
|
3980
3981
|
}, {
|
|
@@ -3983,13 +3984,13 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3983
3984
|
key: 0,
|
|
3984
3985
|
class: "icon icon-enlarge",
|
|
3985
3986
|
icon: "enlarge",
|
|
3986
|
-
onClick: C[1] || (C[1] =
|
|
3987
|
+
onClick: C[1] || (C[1] = le((I) => d("zoomIn"), ["stop"]))
|
|
3987
3988
|
})) : j("v-if", !0)
|
|
3988
3989
|
]),
|
|
3989
3990
|
_: 1
|
|
3990
3991
|
/* STABLE */
|
|
3991
3992
|
})) : j("v-if", !0),
|
|
3992
|
-
v("control") ? ($(), F(m(
|
|
3993
|
+
v("control") ? ($(), F(m(ge), {
|
|
3993
3994
|
key: 2,
|
|
3994
3995
|
content: "方向控制"
|
|
3995
3996
|
}, {
|
|
@@ -3998,7 +3999,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3998
3999
|
key: 0,
|
|
3999
4000
|
class: "icon icon-direction-control",
|
|
4000
4001
|
icon: "direction-control",
|
|
4001
|
-
onClick:
|
|
4002
|
+
onClick: le(f, ["stop"])
|
|
4002
4003
|
})) : j("v-if", !0)
|
|
4003
4004
|
]),
|
|
4004
4005
|
_: 1
|
|
@@ -4150,14 +4151,14 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4150
4151
|
onClosed: a.closeCallback
|
|
4151
4152
|
}, {
|
|
4152
4153
|
header: R(() => [
|
|
4153
|
-
l[1] || (l[1] =
|
|
4154
|
+
l[1] || (l[1] = M(
|
|
4154
4155
|
"div",
|
|
4155
4156
|
null,
|
|
4156
4157
|
"视频监控",
|
|
4157
4158
|
-1
|
|
4158
4159
|
/* HOISTED */
|
|
4159
4160
|
)),
|
|
4160
|
-
x(m(
|
|
4161
|
+
x(m(ge), { content: "页面全屏" }, {
|
|
4161
4162
|
default: R(() => [
|
|
4162
4163
|
x(m(qe), {
|
|
4163
4164
|
class: "icon",
|
|
@@ -4182,7 +4183,7 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4182
4183
|
return new Promise((o) => {
|
|
4183
4184
|
let r = document.body.querySelector("#video-dialog");
|
|
4184
4185
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4185
|
-
const a =
|
|
4186
|
+
const a = fe(nf, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4186
4187
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
4187
4188
|
} });
|
|
4188
4189
|
Vt(a, r);
|
|
@@ -5343,10 +5344,10 @@ var re;
|
|
|
5343
5344
|
(function(t) {
|
|
5344
5345
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
5345
5346
|
})(re || (re = {}));
|
|
5346
|
-
var
|
|
5347
|
+
var he;
|
|
5347
5348
|
(function(t) {
|
|
5348
5349
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
5349
|
-
})(
|
|
5350
|
+
})(he || (he = {}));
|
|
5350
5351
|
let $f = class {
|
|
5351
5352
|
constructor() {
|
|
5352
5353
|
this._isAborted = !1, this.onabort = null;
|
|
@@ -5370,7 +5371,7 @@ class tr {
|
|
|
5370
5371
|
this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5371
5372
|
}
|
|
5372
5373
|
async connect(e, n) {
|
|
5373
|
-
if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n,
|
|
5374
|
+
if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._url = e, this._logger.log(b.Trace, "(LongPolling transport) Connecting."), n === he.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
5374
5375
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5375
5376
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5376
5377
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5378,7 +5379,7 @@ class tr {
|
|
|
5378
5379
|
timeout: 1e5,
|
|
5379
5380
|
withCredentials: this._options.withCredentials
|
|
5380
5381
|
};
|
|
5381
|
-
n ===
|
|
5382
|
+
n === he.Binary && (a.responseType = "arraybuffer");
|
|
5382
5383
|
const l = `${e}&_=${Date.now()}`;
|
|
5383
5384
|
this._logger.log(b.Trace, `(LongPolling transport) polling: ${l}.`);
|
|
5384
5385
|
const c = await this._httpClient.get(l, a);
|
|
@@ -5436,9 +5437,9 @@ class Df {
|
|
|
5436
5437
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5437
5438
|
}
|
|
5438
5439
|
async connect(e, n) {
|
|
5439
|
-
return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n,
|
|
5440
|
+
return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(b.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
5440
5441
|
let s = !1;
|
|
5441
|
-
if (n !==
|
|
5442
|
+
if (n !== he.Text) {
|
|
5442
5443
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
5443
5444
|
return;
|
|
5444
5445
|
}
|
|
@@ -5486,7 +5487,7 @@ class Mf {
|
|
|
5486
5487
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5487
5488
|
}
|
|
5488
5489
|
async connect(e, n) {
|
|
5489
|
-
ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n,
|
|
5490
|
+
ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(b.Trace, "(WebSockets transport) Connecting.");
|
|
5490
5491
|
let o;
|
|
5491
5492
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5492
5493
|
e = e.replace(/^http/, "ws");
|
|
@@ -5500,7 +5501,7 @@ class Mf {
|
|
|
5500
5501
|
});
|
|
5501
5502
|
} else
|
|
5502
5503
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
5503
|
-
a || (a = new this._webSocketConstructor(e)), n ===
|
|
5504
|
+
a || (a = new this._webSocketConstructor(e)), n === he.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
|
|
5504
5505
|
this._logger.log(b.Information, `WebSocket connected to ${e}.`), this._webSocket = a, c = !0, r();
|
|
5505
5506
|
}, a.onerror = (i) => {
|
|
5506
5507
|
let u = null;
|
|
@@ -5556,7 +5557,7 @@ class Of {
|
|
|
5556
5557
|
!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 wf(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
5557
5558
|
}
|
|
5558
5559
|
async start(e) {
|
|
5559
|
-
if (e = e ||
|
|
5560
|
+
if (e = e || he.Binary, ae.isIn(e, he, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${he[e]}'.`), this._connectionState !== "Disconnected")
|
|
5560
5561
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5561
5562
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5562
5563
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -5723,7 +5724,7 @@ class Of {
|
|
|
5723
5724
|
if (s == null)
|
|
5724
5725
|
return this._logger.log(b.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
5725
5726
|
if (Bf(n, s))
|
|
5726
|
-
if (e.transferFormats.map((l) =>
|
|
5727
|
+
if (e.transferFormats.map((l) => he[l]).indexOf(o) >= 0) {
|
|
5727
5728
|
if (s === re.WebSockets && !this._options.WebSocket || s === re.ServerSentEvents && !this._options.EventSource)
|
|
5728
5729
|
return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it is not supported in your environment.'`), new sf(`'${re[s]}' is not supported in your environment.`, s);
|
|
5729
5730
|
this._logger.log(b.Debug, `Selecting transport '${re[s]}'.`);
|
|
@@ -5733,7 +5734,7 @@ class Of {
|
|
|
5733
5734
|
return l;
|
|
5734
5735
|
}
|
|
5735
5736
|
} else
|
|
5736
|
-
return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it does not support the requested transfer format '${
|
|
5737
|
+
return this._logger.log(b.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]}.`);
|
|
5737
5738
|
else
|
|
5738
5739
|
return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it was disabled by the client.`), new af(`'${re[s]}' is disabled by the client.`, s);
|
|
5739
5740
|
}
|
|
@@ -5831,7 +5832,7 @@ class Nt {
|
|
|
5831
5832
|
const Rf = "json";
|
|
5832
5833
|
class xf {
|
|
5833
5834
|
constructor() {
|
|
5834
|
-
this.name = Rf, this.version = 2, this.transferFormat =
|
|
5835
|
+
this.name = Rf, this.version = 2, this.transferFormat = he.Text;
|
|
5835
5836
|
}
|
|
5836
5837
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
5837
5838
|
*
|
|
@@ -6206,7 +6207,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6206
6207
|
P.length > 0 && (g.value = P[0].path), i.value.reportPosition = D, C.value = "";
|
|
6207
6208
|
}, Rt = (D) => {
|
|
6208
6209
|
D && (u.value.reportPosition = "", g.value = ""), D ? (i.value.reportPosition = null, g.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", d.value = "请选择");
|
|
6209
|
-
},
|
|
6210
|
+
}, de = (D) => {
|
|
6210
6211
|
D && (u.value.reportTheme = ""), D ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
|
|
6211
6212
|
}, oe = () => {
|
|
6212
6213
|
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 = "";
|
|
@@ -6310,20 +6311,20 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6310
6311
|
"destroy-on-close": ""
|
|
6311
6312
|
}, {
|
|
6312
6313
|
header: R(() => [
|
|
6313
|
-
|
|
6314
|
+
Ae(
|
|
6314
6315
|
se(m(N)("告警处理").value),
|
|
6315
6316
|
1
|
|
6316
6317
|
/* TEXT */
|
|
6317
6318
|
)
|
|
6318
6319
|
]),
|
|
6319
6320
|
footer: R(() => [
|
|
6320
|
-
|
|
6321
|
+
M("div", hh, [
|
|
6321
6322
|
x(m(Ue), {
|
|
6322
6323
|
size: "middle",
|
|
6323
6324
|
onClick: ds
|
|
6324
6325
|
}, {
|
|
6325
6326
|
default: R(() => [
|
|
6326
|
-
|
|
6327
|
+
Ae(
|
|
6327
6328
|
se(m(N)("取消").value),
|
|
6328
6329
|
1
|
|
6329
6330
|
/* TEXT */
|
|
@@ -6337,7 +6338,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6337
6338
|
onClick: P[29] || (P[29] = (L) => so(1))
|
|
6338
6339
|
}, {
|
|
6339
6340
|
default: R(() => [
|
|
6340
|
-
|
|
6341
|
+
Ae(
|
|
6341
6342
|
se(m(N)("结束处理").value),
|
|
6342
6343
|
1
|
|
6343
6344
|
/* TEXT */
|
|
@@ -6352,7 +6353,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6352
6353
|
onClick: P[30] || (P[30] = (L) => so(2))
|
|
6353
6354
|
}, {
|
|
6354
6355
|
default: R(() => [
|
|
6355
|
-
|
|
6356
|
+
Ae(
|
|
6356
6357
|
se(m(N)("继续处理").value),
|
|
6357
6358
|
1
|
|
6358
6359
|
/* TEXT */
|
|
@@ -6366,7 +6367,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6366
6367
|
default: R(() => [
|
|
6367
6368
|
x(m(gr), { spinning: s.value }, {
|
|
6368
6369
|
default: R(() => [
|
|
6369
|
-
|
|
6370
|
+
M(
|
|
6370
6371
|
"div",
|
|
6371
6372
|
{
|
|
6372
6373
|
ref_key: "myDialogBody",
|
|
@@ -6449,8 +6450,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6449
6450
|
marginRight: "0"
|
|
6450
6451
|
}, {
|
|
6451
6452
|
default: R(() => [
|
|
6452
|
-
|
|
6453
|
-
|
|
6453
|
+
M("div", uh, [
|
|
6454
|
+
M("div", dh, [
|
|
6454
6455
|
x(m(sa), {
|
|
6455
6456
|
borderType: "underline",
|
|
6456
6457
|
props: { disabled: "_disabled", label: "name" },
|
|
@@ -6487,7 +6488,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6487
6488
|
size: "middle"
|
|
6488
6489
|
}, {
|
|
6489
6490
|
default: R(() => [
|
|
6490
|
-
|
|
6491
|
+
Ae(
|
|
6491
6492
|
se(m(N)("告警对象位置").value),
|
|
6492
6493
|
1
|
|
6493
6494
|
/* TEXT */
|
|
@@ -6512,7 +6513,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6512
6513
|
marginRight: "0"
|
|
6513
6514
|
}, {
|
|
6514
6515
|
default: R(() => [
|
|
6515
|
-
|
|
6516
|
+
M("div", ph, [
|
|
6516
6517
|
x(m(po), {
|
|
6517
6518
|
maxlength: "20",
|
|
6518
6519
|
disabled: k.value,
|
|
@@ -6525,11 +6526,11 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6525
6526
|
modelValue: Q.value,
|
|
6526
6527
|
"onUpdate:modelValue": P[15] || (P[15] = (L) => Q.value = L),
|
|
6527
6528
|
checkboxType: "default",
|
|
6528
|
-
onChange:
|
|
6529
|
+
onChange: de,
|
|
6529
6530
|
size: "middle"
|
|
6530
6531
|
}, {
|
|
6531
6532
|
default: R(() => [
|
|
6532
|
-
|
|
6533
|
+
Ae(
|
|
6533
6534
|
se(m(N)("告警对象").value),
|
|
6534
6535
|
1
|
|
6535
6536
|
/* TEXT */
|
|
@@ -6613,7 +6614,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6613
6614
|
marginRight: "0"
|
|
6614
6615
|
}, {
|
|
6615
6616
|
default: R(() => [
|
|
6616
|
-
|
|
6617
|
+
M("div", fh, [
|
|
6617
6618
|
x(m(ra), {
|
|
6618
6619
|
class: "select",
|
|
6619
6620
|
modelValue: i.value.interval,
|
|
@@ -6654,7 +6655,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6654
6655
|
]));
|
|
6655
6656
|
}
|
|
6656
6657
|
}), vh = /* @__PURE__ */ Ce(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
|
|
6657
|
-
handleAlarmVue: () =>
|
|
6658
|
+
handleAlarmVue: () => fe(vh, {
|
|
6658
6659
|
handerIds: e.value,
|
|
6659
6660
|
projectId: Yt().id,
|
|
6660
6661
|
ref: t,
|
|
@@ -6681,20 +6682,20 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6681
6682
|
null,
|
|
6682
6683
|
[
|
|
6683
6684
|
j(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6685
|
+
M("div", yh, [
|
|
6686
|
+
M("div", _h, [
|
|
6687
|
+
M(
|
|
6687
6688
|
"div",
|
|
6688
6689
|
{
|
|
6689
6690
|
style: yn({ "background-color": a.msgItem.color }),
|
|
6690
6691
|
class: "title-detail"
|
|
6691
6692
|
},
|
|
6692
6693
|
[
|
|
6693
|
-
|
|
6694
|
+
M("div", wh, [
|
|
6694
6695
|
j(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
6695
6696
|
!\r
|
|
6696
6697
|
</div> `),
|
|
6697
|
-
|
|
6698
|
+
M(
|
|
6698
6699
|
"div",
|
|
6699
6700
|
bh,
|
|
6700
6701
|
se(m(N)("新告警").value),
|
|
@@ -6702,7 +6703,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6702
6703
|
/* TEXT */
|
|
6703
6704
|
)
|
|
6704
6705
|
]),
|
|
6705
|
-
l[0] || (l[0] =
|
|
6706
|
+
l[0] || (l[0] = M(
|
|
6706
6707
|
"div",
|
|
6707
6708
|
{ class: "title-right" },
|
|
6708
6709
|
null,
|
|
@@ -6713,16 +6714,16 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6713
6714
|
4
|
|
6714
6715
|
/* STYLE */
|
|
6715
6716
|
),
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6717
|
+
M("div", Ch, [
|
|
6718
|
+
M("div", Ih, [
|
|
6719
|
+
M(
|
|
6719
6720
|
"div",
|
|
6720
6721
|
Th,
|
|
6721
6722
|
se(m(N)("告警等级:").value),
|
|
6722
6723
|
1
|
|
6723
6724
|
/* TEXT */
|
|
6724
6725
|
),
|
|
6725
|
-
|
|
6726
|
+
M(
|
|
6726
6727
|
"div",
|
|
6727
6728
|
{
|
|
6728
6729
|
class: "alarm-msg-line-right alarm-content-object",
|
|
@@ -6733,15 +6734,15 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6733
6734
|
/* TEXT, STYLE */
|
|
6734
6735
|
)
|
|
6735
6736
|
]),
|
|
6736
|
-
|
|
6737
|
-
|
|
6737
|
+
M("div", Eh, [
|
|
6738
|
+
M(
|
|
6738
6739
|
"div",
|
|
6739
6740
|
Sh,
|
|
6740
6741
|
se(m(N)("告警对象:").value),
|
|
6741
6742
|
1
|
|
6742
6743
|
/* TEXT */
|
|
6743
6744
|
),
|
|
6744
|
-
|
|
6745
|
+
M(
|
|
6745
6746
|
"div",
|
|
6746
6747
|
kh,
|
|
6747
6748
|
se(a.msgItem.equipmentName || ""),
|
|
@@ -6749,15 +6750,15 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6749
6750
|
/* TEXT */
|
|
6750
6751
|
)
|
|
6751
6752
|
]),
|
|
6752
|
-
|
|
6753
|
-
|
|
6753
|
+
M("div", Ph, [
|
|
6754
|
+
M(
|
|
6754
6755
|
"div",
|
|
6755
6756
|
Lh,
|
|
6756
6757
|
se(m(N)("告警内容:").value),
|
|
6757
6758
|
1
|
|
6758
6759
|
/* TEXT */
|
|
6759
6760
|
),
|
|
6760
|
-
|
|
6761
|
+
M(
|
|
6761
6762
|
"div",
|
|
6762
6763
|
$h,
|
|
6763
6764
|
se(a.msgItem.alarmContent || ""),
|
|
@@ -6765,16 +6766,16 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6765
6766
|
/* TEXT */
|
|
6766
6767
|
)
|
|
6767
6768
|
]),
|
|
6768
|
-
|
|
6769
|
+
M("div", Dh, [
|
|
6769
6770
|
a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? ($(), F(m(Ue), {
|
|
6770
6771
|
key: 0,
|
|
6771
6772
|
block: "",
|
|
6772
|
-
onClick:
|
|
6773
|
+
onClick: le(s, ["stop"]),
|
|
6773
6774
|
btnType: "primary-text",
|
|
6774
6775
|
size: "middle"
|
|
6775
6776
|
}, {
|
|
6776
6777
|
default: R(() => [
|
|
6777
|
-
|
|
6778
|
+
Ae(
|
|
6778
6779
|
se(m(N)("设备详情").value),
|
|
6779
6780
|
1
|
|
6780
6781
|
/* TEXT */
|
|
@@ -6787,11 +6788,11 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6787
6788
|
key: 1,
|
|
6788
6789
|
block: "",
|
|
6789
6790
|
btnType: "primary-text",
|
|
6790
|
-
onClick:
|
|
6791
|
+
onClick: le(r, ["stop"]),
|
|
6791
6792
|
size: "middle"
|
|
6792
6793
|
}, {
|
|
6793
6794
|
default: R(() => [
|
|
6794
|
-
|
|
6795
|
+
Ae(
|
|
6795
6796
|
se(m(N)("处理").value),
|
|
6796
6797
|
1
|
|
6797
6798
|
/* TEXT */
|
|
@@ -6835,7 +6836,7 @@ const Rh = () => {
|
|
|
6835
6836
|
loop: !1
|
|
6836
6837
|
// 轮播-无限次播放
|
|
6837
6838
|
});
|
|
6838
|
-
|
|
6839
|
+
ye.addEventListenerFromMicroApp("alarm:change-alarmconfig", (E) => {
|
|
6839
6840
|
const { isRealTimeAlarm: k, audioPlay: Q } = E.data;
|
|
6840
6841
|
k != null && (l.value = k), Q != null && (c.value = Q, c.value || C());
|
|
6841
6842
|
});
|
|
@@ -6862,7 +6863,7 @@ const Rh = () => {
|
|
|
6862
6863
|
class: "alarm-notify",
|
|
6863
6864
|
message: N("新告警").value,
|
|
6864
6865
|
placement: "bottomRight",
|
|
6865
|
-
description:
|
|
6866
|
+
description: fe(Oh, {
|
|
6866
6867
|
msgItem: E,
|
|
6867
6868
|
alarmhandle: a.value,
|
|
6868
6869
|
onHanderDetail: p,
|
|
@@ -6935,7 +6936,7 @@ const Rh = () => {
|
|
|
6935
6936
|
B && t.value.send(B);
|
|
6936
6937
|
},
|
|
6937
6938
|
message: async (B) => {
|
|
6938
|
-
|
|
6939
|
+
ye.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: B }), window.self === window.top && (B.messageType === "ADD" && (e.value = e.value + 1, B.coverId || g(B)), B.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == B.recordId && C()));
|
|
6939
6940
|
}
|
|
6940
6941
|
}));
|
|
6941
6942
|
}
|
|
@@ -6953,7 +6954,7 @@ const Rh = () => {
|
|
|
6953
6954
|
null,
|
|
6954
6955
|
[
|
|
6955
6956
|
x(m(s)),
|
|
6956
|
-
|
|
6957
|
+
M("audio", {
|
|
6957
6958
|
src: m(o).playPath,
|
|
6958
6959
|
class: "audio-alarm-level",
|
|
6959
6960
|
ref_key: "audioAlarmRef",
|
|
@@ -7028,15 +7029,15 @@ T("@das-fed/web");
|
|
|
7028
7029
|
const Uh = [
|
|
7029
7030
|
{
|
|
7030
7031
|
path: je,
|
|
7031
|
-
component: () => import("./index-
|
|
7032
|
+
component: () => import("./index-CAO0LRaP.js")
|
|
7032
7033
|
},
|
|
7033
7034
|
{
|
|
7034
7035
|
path: ct,
|
|
7035
|
-
component: () => import("./index-
|
|
7036
|
+
component: () => import("./index-ByENyZQn.js")
|
|
7036
7037
|
},
|
|
7037
7038
|
{
|
|
7038
7039
|
path: Cr,
|
|
7039
|
-
component: () => import("./index-
|
|
7040
|
+
component: () => import("./index-DWT7O-tu.js")
|
|
7040
7041
|
}
|
|
7041
7042
|
], Yg = {
|
|
7042
7043
|
routes: Uh,
|