@das-fed/web 6.4.0-dev.32 → 6.4.0-dev.33
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-puk4QfAT.js → index-BNR2zZet.js} +201 -200
- package/index-BNR2zZet.js.gz +0 -0
- package/{packages/main-app-framework/index-B9FQmM02.js → index-BoQTPXD7.js} +1 -1
- package/index-BoQTPXD7.js.gz +0 -0
- package/{index-2T_H15dv.js → index-C05_ixnq.js} +1 -1
- package/index-C05_ixnq.js.gz +0 -0
- package/{index-DPpRTnrf.js → index-Cc80hpg5.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-A69EQVG4.js → index-BSWMIad0.js} +195 -194
- package/packages/main-app-framework/index-BSWMIad0.js.gz +0 -0
- package/packages/main-app-framework/{index-DLw2CpC0.js → index-CsB4a8gH.js} +1 -1
- package/packages/main-app-framework/{index-j5ACjIDv.js → index-DE3A2Eyv.js} +1 -1
- package/packages/main-app-framework/index-DE3A2Eyv.js.gz +0 -0
- package/{index-CjVC66ff.js → packages/main-app-framework/index-czNdTV8H.js} +1 -1
- package/packages/main-app-framework/index-czNdTV8H.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-2T_H15dv.js.gz +0 -0
- package/index-CjVC66ff.js.gz +0 -0
- package/index-puk4QfAT.js.gz +0 -0
- package/packages/main-app-framework/index-A69EQVG4.js.gz +0 -0
- package/packages/main-app-framework/index-B9FQmM02.js.gz +0 -0
- package/packages/main-app-framework/index-j5ACjIDv.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as E, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as V, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as x, renderList as Tt, withDirectives as Ie, resolveDynamicComponent as at, vShow as Pe, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as B, normalizeClass as rr, normalizeStyle as yn, renderSlot as
|
|
1
|
+
import { ref as E, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as V, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as x, renderList as Tt, withDirectives as Ie, resolveDynamicComponent as at, vShow as Pe, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as B, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as Q, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as ws, getCurrentInstance as _s, onActivated as bs, createTextVNode as ye, toDisplayString as re, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as le, toRefs as Is, isRef as Ts } from "vue";
|
|
2
2
|
import { initTheme as Es, setThemeRule as Ss } from "@das-fed/web/packages/theme/index";
|
|
3
3
|
import { initI18n as ks, i18n as N } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as R } from "@das-fed/web/packages/layout/index";
|
|
@@ -10,7 +10,7 @@ import { DasChangeEnterprises as Bs } from "@das-fed/ui/packages/business-compon
|
|
|
10
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
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
|
|
13
|
+
import { getSubApps as J, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as Mn, getProjectInfo as Fe, getToken as Bn, getUserInfo as cr, getMenus as zt } from "@das-fed/utils/common-info";
|
|
14
14
|
import { setProcessEngineProject as lr, setProcessEngineToken as ur } from "@das-fed/utils/process-engine-info";
|
|
15
15
|
import { oauthServer as dr, justauth as Rn, enterpriseright as xn, iotModules as Fs, portal as We, systemConfiguration as Qn } from "@das-fed/utils/api-services/modules";
|
|
16
16
|
import { createService as et } from "@das-fed/utils/create-api-service";
|
|
@@ -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 me } from "@das-fed/ui/packages/components/tooltip/index";
|
|
34
34
|
import { DasLivePlayer as ta } from "@das-fed/ui/packages/components/live-player/index";
|
|
35
35
|
import { DasSpin as gr } from "@das-fed/ui/packages/components/spin/index";
|
|
36
36
|
import { DasWatermark as na } from "@das-fed/ui/packages/components/watermark/index";
|
|
@@ -586,8 +586,8 @@ const go = (t, e) => {
|
|
|
586
586
|
app: F
|
|
587
587
|
} = _;
|
|
588
588
|
ca(I);
|
|
589
|
-
let z = !0,
|
|
590
|
-
(C === !1 || T === !1 || T === "false") && (z = !1,
|
|
589
|
+
let z = !0, ae = !0, Ce = !0;
|
|
590
|
+
(C === !1 || T === !1 || T === "false") && (z = !1, ae = !1, Ce = !1), (S === !1 || D === !1 || D === "false") && (ae = !1), (P === !1 || O === !1 || O === "false") && (Ce = !1), o.value = z, r.value = ae, s.value = Ce;
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
593
|
const y = H(() => ({
|
|
@@ -601,9 +601,9 @@ const go = (t, e) => {
|
|
|
601
601
|
return g.has(_) ? C = g.get(_) : (C = {
|
|
602
602
|
name: _,
|
|
603
603
|
render() {
|
|
604
|
-
return
|
|
604
|
+
return he("div", { style: { width: "100%", height: "100%" } }, [he(A)]);
|
|
605
605
|
}
|
|
606
|
-
}, g.set(_, C)),
|
|
606
|
+
}, g.set(_, C)), he(C);
|
|
607
607
|
}, v = H(() => Je.visible.value);
|
|
608
608
|
return (A, _) => {
|
|
609
609
|
const C = ms("router-view");
|
|
@@ -624,7 +624,7 @@ const go = (t, e) => {
|
|
|
624
624
|
"div",
|
|
625
625
|
$a,
|
|
626
626
|
[
|
|
627
|
-
|
|
627
|
+
fe(A.$slots, "header", {}, void 0, !0)
|
|
628
628
|
],
|
|
629
629
|
512
|
|
630
630
|
/* NEED_PATCH */
|
|
@@ -636,7 +636,7 @@ const go = (t, e) => {
|
|
|
636
636
|
"div",
|
|
637
637
|
Oa,
|
|
638
638
|
[
|
|
639
|
-
|
|
639
|
+
fe(A.$slots, "aside", {}, void 0, !0)
|
|
640
640
|
],
|
|
641
641
|
512
|
|
642
642
|
/* NEED_PATCH */
|
|
@@ -648,7 +648,7 @@ const go = (t, e) => {
|
|
|
648
648
|
"div",
|
|
649
649
|
Ba,
|
|
650
650
|
[
|
|
651
|
-
|
|
651
|
+
fe(A.$slots, "tab", {}, void 0, !0)
|
|
652
652
|
],
|
|
653
653
|
512
|
|
654
654
|
/* NEED_PATCH */
|
|
@@ -660,7 +660,7 @@ const go = (t, e) => {
|
|
|
660
660
|
"div",
|
|
661
661
|
xa,
|
|
662
662
|
[
|
|
663
|
-
|
|
663
|
+
fe(A.$slots, "banner", {}, void 0, !0)
|
|
664
664
|
],
|
|
665
665
|
512
|
|
666
666
|
/* NEED_PATCH */
|
|
@@ -672,7 +672,7 @@ const go = (t, e) => {
|
|
|
672
672
|
"div",
|
|
673
673
|
ja,
|
|
674
674
|
[
|
|
675
|
-
|
|
675
|
+
fe(A.$slots, "router-view", {}, () => [
|
|
676
676
|
j(" 有动画 "),
|
|
677
677
|
A.needTransition ? ($(), V(C, { key: 0 }, {
|
|
678
678
|
default: x(({ Component: S }) => [
|
|
@@ -766,7 +766,7 @@ const go = (t, e) => {
|
|
|
766
766
|
"div",
|
|
767
767
|
Fa,
|
|
768
768
|
[
|
|
769
|
-
|
|
769
|
+
fe(A.$slots, "default", {}, void 0, !0)
|
|
770
770
|
],
|
|
771
771
|
512
|
|
772
772
|
/* NEED_PATCH */
|
|
@@ -909,11 +909,11 @@ const go = (t, e) => {
|
|
|
909
909
|
"on:toggleFullScreen": u
|
|
910
910
|
}), null, 16, qa)) : j("v-if", !0);
|
|
911
911
|
}
|
|
912
|
-
}), mo = E("/das-micro-app"),
|
|
912
|
+
}), mo = E("/das-micro-app"), de = E([]), Ht = E(!1), Qt = E([]), jt = E(!0);
|
|
913
913
|
let Te = null, Ee = null, rt = null;
|
|
914
914
|
const st = (t, e, n) => {
|
|
915
915
|
var r, s, a, c;
|
|
916
|
-
const o =
|
|
916
|
+
const o = de.value.find((l) => l.name === t);
|
|
917
917
|
if (o) {
|
|
918
918
|
if (o.entry.startsWith("/") || o.entry.match(location.origin)) {
|
|
919
919
|
(s = (r = o.dom) == null ? void 0 : r.contentWindow) == null || s.postMessage({ type: e, data: n });
|
|
@@ -965,7 +965,7 @@ const st = (t, e, n) => {
|
|
|
965
965
|
};
|
|
966
966
|
}, pn = async (t) => {
|
|
967
967
|
await Promise.all(
|
|
968
|
-
|
|
968
|
+
de.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
|
|
969
969
|
e.dom || await new Promise((o) => G(() => e.dom, o)), setTimeout(() => {
|
|
970
970
|
st(e.name, "sessionStorage", t), n(!0);
|
|
971
971
|
}, 0);
|
|
@@ -974,14 +974,14 @@ const st = (t, e, n) => {
|
|
|
974
974
|
}, ee = {
|
|
975
975
|
loadMicroApp: (t) => {
|
|
976
976
|
Ht.value = !0;
|
|
977
|
-
const e =
|
|
977
|
+
const e = de.value.find((a) => a.name === t), n = de.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
|
|
978
978
|
if (!o) {
|
|
979
979
|
n && (n.actived = !1);
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
982
|
if (e.isFirstActived = !0, r) {
|
|
983
983
|
e.src = e.entry;
|
|
984
|
-
const a =
|
|
984
|
+
const a = de.value.find((c) => c.actived);
|
|
985
985
|
a && (a.actived = !1), e.loaded = !0, e.actived = !0;
|
|
986
986
|
return;
|
|
987
987
|
}
|
|
@@ -991,7 +991,7 @@ const st = (t, e, n) => {
|
|
|
991
991
|
}
|
|
992
992
|
},
|
|
993
993
|
hideMicroApp: async (t) => {
|
|
994
|
-
const e =
|
|
994
|
+
const e = de.value.find((n) => n.name === t);
|
|
995
995
|
e && e.loaded && (e.dom || await new Promise((n) => G(() => e.dom, n)), st(t, "router", {
|
|
996
996
|
cmd: "push",
|
|
997
997
|
route: {
|
|
@@ -1001,21 +1001,21 @@ const st = (t, e, n) => {
|
|
|
1001
1001
|
}));
|
|
1002
1002
|
},
|
|
1003
1003
|
hideAllMicroApp: () => {
|
|
1004
|
-
Ht.value = !1,
|
|
1004
|
+
Ht.value = !1, de.value.map((t) => {
|
|
1005
1005
|
t.actived = !1;
|
|
1006
1006
|
});
|
|
1007
1007
|
},
|
|
1008
1008
|
unloadMicroApp: (t) => {
|
|
1009
|
-
const e =
|
|
1009
|
+
const e = de.value.find((n) => n.name === t);
|
|
1010
1010
|
e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
|
|
1011
1011
|
},
|
|
1012
1012
|
unloadAllMicroApp: () => {
|
|
1013
|
-
Ht.value = !1,
|
|
1013
|
+
Ht.value = !1, de.value.map((t) => {
|
|
1014
1014
|
t.loaded = !1, t.actived = !1, t.dom = void 0;
|
|
1015
1015
|
});
|
|
1016
1016
|
},
|
|
1017
1017
|
setMicroAppRoute: async (t, e, n) => {
|
|
1018
|
-
const o =
|
|
1018
|
+
const o = de.value.find((c) => c.name === e);
|
|
1019
1019
|
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((c) => G(() => o.dom, c)), !o.actived)) return o;
|
|
1020
1020
|
const r = n.path || n, s = n.query || {}, a = n.params || {};
|
|
1021
1021
|
return t.push({
|
|
@@ -1075,11 +1075,11 @@ const st = (t, e, n) => {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
},
|
|
1077
1077
|
reloadMicroAppRoute: async (t, e) => {
|
|
1078
|
-
const n =
|
|
1078
|
+
const n = de.value.find((o) => o.name === t);
|
|
1079
1079
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "reload", path: e })));
|
|
1080
1080
|
},
|
|
1081
1081
|
unloadMicroAppRoute: async (t, e) => {
|
|
1082
|
-
const n =
|
|
1082
|
+
const n = de.value.find((o) => o.name === t);
|
|
1083
1083
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
|
|
1084
1084
|
},
|
|
1085
1085
|
setMainAppLayoutVisible: (t) => {
|
|
@@ -1273,7 +1273,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1273
1273
|
__name: "das-micro-apps",
|
|
1274
1274
|
setup(t) {
|
|
1275
1275
|
const e = E(null), n = async (s, a) => {
|
|
1276
|
-
const c =
|
|
1276
|
+
const c = de.value.find((d) => d.name === a);
|
|
1277
1277
|
if (!c) return;
|
|
1278
1278
|
c.dom = s.target, await Qe(), await new Promise((d) => setTimeout(d, 50));
|
|
1279
1279
|
const l = () => {
|
|
@@ -1291,12 +1291,12 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1291
1291
|
ee.sendMessageToMicroApp(a, "resize", l());
|
|
1292
1292
|
}).observe(e.value), ee.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), ee.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
1293
1293
|
}, o = (s, a) => {
|
|
1294
|
-
const c =
|
|
1294
|
+
const c = de.value.find((u) => u.name === a);
|
|
1295
1295
|
if (!c) return;
|
|
1296
1296
|
const { dom: l, ...i } = c;
|
|
1297
1297
|
ee.sendMessageToMicroApp(a, "onActivated"), ee.triggerMicroAppLifeCycleListener("onActivated", i);
|
|
1298
1298
|
}, r = (s, a) => {
|
|
1299
|
-
const c =
|
|
1299
|
+
const c = de.value.find((u) => u.name === a);
|
|
1300
1300
|
if (!c) return;
|
|
1301
1301
|
const { dom: l, ...i } = c;
|
|
1302
1302
|
ee.sendMessageToMicroApp(a, "onDeactivated"), ee.triggerMicroAppLifeCycleListener("onDeactivated", i);
|
|
@@ -1312,7 +1312,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1312
1312
|
($(!0), W(
|
|
1313
1313
|
De,
|
|
1314
1314
|
null,
|
|
1315
|
-
Tt(m(
|
|
1315
|
+
Tt(m(de), (c) => ($(), W(
|
|
1316
1316
|
De,
|
|
1317
1317
|
null,
|
|
1318
1318
|
[
|
|
@@ -1362,17 +1362,17 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1362
1362
|
"router-view-visible": n.value
|
|
1363
1363
|
}, r.value), {
|
|
1364
1364
|
header: x(() => [
|
|
1365
|
-
|
|
1365
|
+
fe(s.$slots, "header", {}, () => [
|
|
1366
1366
|
Q(m(sr))
|
|
1367
1367
|
])
|
|
1368
1368
|
]),
|
|
1369
1369
|
aside: x(() => [
|
|
1370
|
-
|
|
1370
|
+
fe(s.$slots, "aside", {}, () => [
|
|
1371
1371
|
Q(m(ar), { menuAttr: s.menuAttr }, null, 8, ["menuAttr"])
|
|
1372
1372
|
])
|
|
1373
1373
|
]),
|
|
1374
1374
|
tab: x(() => [
|
|
1375
|
-
|
|
1375
|
+
fe(s.$slots, "tab", {}, () => [
|
|
1376
1376
|
Q(m(ir), { tabsAttr: s.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1377
1377
|
])
|
|
1378
1378
|
]),
|
|
@@ -1394,7 +1394,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1394
1394
|
}
|
|
1395
1395
|
}), mi = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, Gg = (t, e) => {
|
|
1396
1396
|
if (!(t != null && t.microApps) || !Array.isArray(t.microApps)) return;
|
|
1397
|
-
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix),
|
|
1397
|
+
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix), de.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: mi(r.entry || r.name) })), e == null || e.addRoute({
|
|
1398
1398
|
name: "das-micro-app",
|
|
1399
1399
|
path: `${mo.value}/:pathMatch(.*)*`,
|
|
1400
1400
|
component: _r,
|
|
@@ -1515,22 +1515,22 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1515
1515
|
}));
|
|
1516
1516
|
return (r, s) => ($(), V(m(Dn), $t({ "transition-config": n.value }, o.value), {
|
|
1517
1517
|
header: x(() => [
|
|
1518
|
-
|
|
1518
|
+
fe(r.$slots, "header", {}, () => [
|
|
1519
1519
|
Q(m(sr))
|
|
1520
1520
|
])
|
|
1521
1521
|
]),
|
|
1522
1522
|
aside: x(() => [
|
|
1523
|
-
|
|
1523
|
+
fe(r.$slots, "aside", {}, () => [
|
|
1524
1524
|
Q(m(ar), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
1525
1525
|
])
|
|
1526
1526
|
]),
|
|
1527
1527
|
tab: x(() => [
|
|
1528
|
-
|
|
1528
|
+
fe(r.$slots, "tab", {}, () => [
|
|
1529
1529
|
Q(m(ir), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1530
1530
|
])
|
|
1531
1531
|
]),
|
|
1532
1532
|
banner: x(() => [
|
|
1533
|
-
|
|
1533
|
+
fe(r.$slots, "banner")
|
|
1534
1534
|
]),
|
|
1535
1535
|
_: 3
|
|
1536
1536
|
/* FORWARDED */
|
|
@@ -1611,7 +1611,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1611
1611
|
height: r.value
|
|
1612
1612
|
}, {
|
|
1613
1613
|
default: x(() => [
|
|
1614
|
-
|
|
1614
|
+
fe(y.$slots, "default", {}, void 0, !0)
|
|
1615
1615
|
]),
|
|
1616
1616
|
_: 3
|
|
1617
1617
|
/* FORWARDED */
|
|
@@ -1650,7 +1650,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1650
1650
|
onClick: n.closeCallback
|
|
1651
1651
|
}, {
|
|
1652
1652
|
default: x(() => o[2] || (o[2] = [
|
|
1653
|
-
|
|
1653
|
+
ye("我知道了")
|
|
1654
1654
|
])),
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
/* STABLE */
|
|
@@ -1680,8 +1680,8 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1680
1680
|
key: s,
|
|
1681
1681
|
class: "desc-item"
|
|
1682
1682
|
}, [
|
|
1683
|
-
|
|
1684
|
-
|
|
1683
|
+
ye(
|
|
1684
|
+
re(r),
|
|
1685
1685
|
1
|
|
1686
1686
|
/* TEXT */
|
|
1687
1687
|
)
|
|
@@ -1703,7 +1703,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1703
1703
|
}), Ei = /* @__PURE__ */ be(Ti, [["__scopeId", "data-v-72bc9a80"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
|
|
1704
1704
|
const r = document.createElement("div");
|
|
1705
1705
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1706
|
-
const a =
|
|
1706
|
+
const a = he(Ei, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1707
1707
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
1708
1708
|
} });
|
|
1709
1709
|
Vt(a, r);
|
|
@@ -1729,8 +1729,8 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1729
1729
|
sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
|
|
1730
1730
|
}, Oi = () => {
|
|
1731
1731
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
1732
|
-
},
|
|
1733
|
-
let e =
|
|
1732
|
+
}, Ae = (t) => {
|
|
1733
|
+
let e = ve();
|
|
1734
1734
|
t.forEach((n) => {
|
|
1735
1735
|
var o;
|
|
1736
1736
|
if (n.key.startsWith("tabMap")) {
|
|
@@ -2457,7 +2457,7 @@ const Kt = (t, e = "") => {
|
|
|
2457
2457
|
}, $n = (t) => {
|
|
2458
2458
|
const e = J().subAppList ?? [];
|
|
2459
2459
|
let { index: n, target: o } = kd(e, t);
|
|
2460
|
-
return e.splice(n, 1), e.length ? Se([{ key: "subAppList", value: e }]) : Fn(),
|
|
2460
|
+
return e.splice(n, 1), e.length ? Se([{ key: "subAppList", value: e }]) : Fn(), Ae([
|
|
2461
2461
|
{ key: "currentCode", value: "" },
|
|
2462
2462
|
{ key: "currentTab", value: {} },
|
|
2463
2463
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2468,9 +2468,9 @@ const Kt = (t, e = "") => {
|
|
|
2468
2468
|
return { left: o, right: r };
|
|
2469
2469
|
}, Ld = (t, e, n) => {
|
|
2470
2470
|
var f;
|
|
2471
|
-
const o = Oe(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((f =
|
|
2471
|
+
const o = Oe(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((f = ve()) == null ? void 0 : f.tabMap) ?? {})[t] ?? [], { left: a, right: c } = Pd(s, n), l = s.filter((d) => o.find((h) => h.code === d.code));
|
|
2472
2472
|
if (!a.length && !c.length || !l.length)
|
|
2473
|
-
return
|
|
2473
|
+
return Ae([
|
|
2474
2474
|
{ key: "currentCode", value: "" },
|
|
2475
2475
|
{ key: "currentTab", value: {} },
|
|
2476
2476
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2485,7 +2485,7 @@ const Kt = (t, e = "") => {
|
|
|
2485
2485
|
const d = a.reverse().find((h) => l.map((b) => b.code).includes(h.code));
|
|
2486
2486
|
d && (i = d);
|
|
2487
2487
|
}
|
|
2488
|
-
return i ? (
|
|
2488
|
+
return i ? (Ae([
|
|
2489
2489
|
{
|
|
2490
2490
|
key: "currentCode",
|
|
2491
2491
|
value: i.code
|
|
@@ -2499,7 +2499,7 @@ const Kt = (t, e = "") => {
|
|
|
2499
2499
|
value: i
|
|
2500
2500
|
},
|
|
2501
2501
|
{ key: `tabMap:${t}`, value: l }
|
|
2502
|
-
]), Er(i.code), { currentMenu: o.find((d) => d.code === i.code), currentTab: i }) : (
|
|
2502
|
+
]), Er(i.code), { currentMenu: o.find((d) => d.code === i.code), currentTab: i }) : (Ae([
|
|
2503
2503
|
{ key: `preTab:${t}`, value: {} },
|
|
2504
2504
|
{ key: `tabMap:${t}`, value: [] }
|
|
2505
2505
|
]), $n(t));
|
|
@@ -2549,12 +2549,12 @@ const Kt = (t, e = "") => {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
if (s && a) {
|
|
2552
|
-
const p = (
|
|
2552
|
+
const p = (ve().tabMap ?? {})[e.code] ?? [];
|
|
2553
2553
|
if (p.length) {
|
|
2554
2554
|
const v = p.filter(
|
|
2555
2555
|
(A) => n && n === A.code || o && o === `/${A.applicationPath}${A.path}`.replace(/\/\//g, "/") || Oe(l).map((_) => _.code).includes(A.code)
|
|
2556
2556
|
);
|
|
2557
|
-
|
|
2557
|
+
Ae([
|
|
2558
2558
|
{
|
|
2559
2559
|
key: `tabMap:${e.code}`,
|
|
2560
2560
|
value: v
|
|
@@ -2608,7 +2608,7 @@ const Kt = (t, e = "") => {
|
|
|
2608
2608
|
path: f.routeUrl,
|
|
2609
2609
|
query: v
|
|
2610
2610
|
};
|
|
2611
|
-
|
|
2611
|
+
Ae([
|
|
2612
2612
|
{
|
|
2613
2613
|
key: "currentCode",
|
|
2614
2614
|
value: f.code
|
|
@@ -2697,7 +2697,7 @@ const Kt = (t, e = "") => {
|
|
|
2697
2697
|
style: { "margin-right": "12px" }
|
|
2698
2698
|
}, {
|
|
2699
2699
|
default: x(() => u[6] || (u[6] = [
|
|
2700
|
-
|
|
2700
|
+
ye("取消")
|
|
2701
2701
|
])),
|
|
2702
2702
|
_: 1
|
|
2703
2703
|
/* STABLE */
|
|
@@ -2709,7 +2709,7 @@ const Kt = (t, e = "") => {
|
|
|
2709
2709
|
onClick: l
|
|
2710
2710
|
}, {
|
|
2711
2711
|
default: x(() => u[7] || (u[7] = [
|
|
2712
|
-
|
|
2712
|
+
ye("确定")
|
|
2713
2713
|
])),
|
|
2714
2714
|
_: 1
|
|
2715
2715
|
/* STABLE */
|
|
@@ -2721,7 +2721,7 @@ const Kt = (t, e = "") => {
|
|
|
2721
2721
|
B(
|
|
2722
2722
|
"p",
|
|
2723
2723
|
Gd,
|
|
2724
|
-
|
|
2724
|
+
re(m(N)("侧边菜单栏").value),
|
|
2725
2725
|
1
|
|
2726
2726
|
/* TEXT */
|
|
2727
2727
|
),
|
|
@@ -2739,8 +2739,8 @@ const Kt = (t, e = "") => {
|
|
|
2739
2739
|
onChange: u[1] || (u[1] = (f) => c(1))
|
|
2740
2740
|
}, {
|
|
2741
2741
|
default: x(() => [
|
|
2742
|
-
|
|
2743
|
-
|
|
2742
|
+
ye(
|
|
2743
|
+
re(m(N)("弹出式菜单栏").value),
|
|
2744
2744
|
1
|
|
2745
2745
|
/* TEXT */
|
|
2746
2746
|
)
|
|
@@ -2762,8 +2762,8 @@ const Kt = (t, e = "") => {
|
|
|
2762
2762
|
onChange: u[3] || (u[3] = (f) => c(2))
|
|
2763
2763
|
}, {
|
|
2764
2764
|
default: x(() => [
|
|
2765
|
-
|
|
2766
|
-
|
|
2765
|
+
ye(
|
|
2766
|
+
re(m(N)("内嵌式菜单栏").value),
|
|
2767
2767
|
1
|
|
2768
2768
|
/* TEXT */
|
|
2769
2769
|
)
|
|
@@ -2790,13 +2790,13 @@ const Kt = (t, e = "") => {
|
|
|
2790
2790
|
key: "loginTip",
|
|
2791
2791
|
message: "上次登录信息",
|
|
2792
2792
|
placement: "bottomRight",
|
|
2793
|
-
description:
|
|
2794
|
-
|
|
2793
|
+
description: he("div", { class: "last-login-info" }, [
|
|
2794
|
+
he(
|
|
2795
2795
|
"div",
|
|
2796
2796
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
2797
2797
|
"时间:" + js(c.lastModificationTime)
|
|
2798
2798
|
),
|
|
2799
|
-
|
|
2799
|
+
he("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + c.ip)
|
|
2800
2800
|
])
|
|
2801
2801
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
2802
2802
|
}, o = async () => {
|
|
@@ -2922,7 +2922,7 @@ const Kt = (t, e = "") => {
|
|
|
2922
2922
|
var i;
|
|
2923
2923
|
const s = J();
|
|
2924
2924
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
2925
|
-
const l = (
|
|
2925
|
+
const l = (ve().tabMap[r.code] ?? []).map((u) => u.code);
|
|
2926
2926
|
l && l.length && Ut(r.code, l), e(r);
|
|
2927
2927
|
});
|
|
2928
2928
|
const { enter: o } = ht();
|
|
@@ -2940,7 +2940,7 @@ const Kt = (t, e = "") => {
|
|
|
2940
2940
|
c = dt(p.path), l = dt(p.query);
|
|
2941
2941
|
const _ = J().currentSubAppCode ?? "";
|
|
2942
2942
|
if (!_) return;
|
|
2943
|
-
const C = ((T = p.query) == null ? void 0 : T.menu) ?? ((D =
|
|
2943
|
+
const C = ((T = p.query) == null ? void 0 : T.menu) ?? ((D = ve()) == null ? void 0 : D.currentCode) ?? "";
|
|
2944
2944
|
if (!C) return;
|
|
2945
2945
|
const S = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
2946
2946
|
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);
|
|
@@ -2948,7 +2948,7 @@ const Kt = (t, e = "") => {
|
|
|
2948
2948
|
);
|
|
2949
2949
|
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: f, unloadRoute: d } = es(), h = (p) => {
|
|
2950
2950
|
var C;
|
|
2951
|
-
const v = Oe(zt(p.applicationCode)).find((S) => S.code === p.code), _ = (((C =
|
|
2951
|
+
const v = Oe(zt(p.applicationCode)).find((S) => S.code === p.code), _ = (((C = ve().tabMap) == null ? void 0 : C[p.applicationCode]) ?? []).find((S) => S.code === p.code);
|
|
2952
2952
|
u({ currentMenu: v, route: { path: _.path, query: _.query ?? {} } });
|
|
2953
2953
|
}, b = (p) => {
|
|
2954
2954
|
if (!p || !p.length) return;
|
|
@@ -2957,11 +2957,11 @@ const Kt = (t, e = "") => {
|
|
|
2957
2957
|
}, y = (p) => {
|
|
2958
2958
|
const v = J().currentSubAppCode ?? "";
|
|
2959
2959
|
ce.innerSet = !0;
|
|
2960
|
-
const A =
|
|
2960
|
+
const A = ve(), _ = A.tabMap[v], C = _.findIndex((O) => O.code === p.data.code);
|
|
2961
2961
|
if (C === -1) return;
|
|
2962
2962
|
const S = () => {
|
|
2963
2963
|
var z;
|
|
2964
|
-
let F = (((z = J().appcategorys) == null ? void 0 : z.map((
|
|
2964
|
+
let F = (((z = J().appcategorys) == null ? void 0 : z.map((ae) => ae.apps).flat()) ?? []).find((ae) => ae.code === v);
|
|
2965
2965
|
F = { ...F, value: F.code, label: F.name }, i(F), R.nav.removeItem(v);
|
|
2966
2966
|
};
|
|
2967
2967
|
({
|
|
@@ -2972,7 +2972,7 @@ const Kt = (t, e = "") => {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
const F = A.currentCode;
|
|
2974
2974
|
let z = null;
|
|
2975
|
-
F === O.value && (C + 1 === _.length ? _[C - 1] && (z = _[C - 1]) : _[C + 1] && (z = _[C + 1])), _.splice(C, 1), b([O]),
|
|
2975
|
+
F === O.value && (C + 1 === _.length ? _[C - 1] && (z = _[C - 1]) : _[C + 1] && (z = _[C + 1])), _.splice(C, 1), b([O]), Ae([{ key: `tabMap:${v}`, value: _ }]), z ? h(z) : Ae([{ key: `preTab:${v}`, value: {} }]);
|
|
2976
2976
|
},
|
|
2977
2977
|
all: S,
|
|
2978
2978
|
other: async (O) => {
|
|
@@ -2981,8 +2981,8 @@ const Kt = (t, e = "") => {
|
|
|
2981
2981
|
path: `/${F.applicationPath}${F.path}`.replace(/\/\//g, "/"),
|
|
2982
2982
|
query: F.query
|
|
2983
2983
|
}), R.menu.setActiveItem(F.menuId), R.tab.setActiveItem(F.code);
|
|
2984
|
-
const z = _.filter((
|
|
2985
|
-
z.forEach((
|
|
2984
|
+
const z = _.filter((ae) => ae.code !== O.value);
|
|
2985
|
+
z.forEach((ae) => R.tab.removeItem(ae.code)), b(z), Ae([{ key: `tabMap:${v}`, value: [F] }]), h(F);
|
|
2986
2986
|
},
|
|
2987
2987
|
right: async (O) => {
|
|
2988
2988
|
const F = A.currentCode;
|
|
@@ -2991,18 +2991,18 @@ const Kt = (t, e = "") => {
|
|
|
2991
2991
|
h(Ce);
|
|
2992
2992
|
}
|
|
2993
2993
|
const z = _.slice(C + 1);
|
|
2994
|
-
z.forEach((
|
|
2994
|
+
z.forEach((ae) => R.tab.removeItem(ae.code)), b(z), _.splice(C + 1), Ae([{ key: `tabMap:${v}`, value: _ }]);
|
|
2995
2995
|
}
|
|
2996
2996
|
})[p.type](p.data);
|
|
2997
2997
|
};
|
|
2998
2998
|
R.tab.addEventListener("onItemClick", async (p) => {
|
|
2999
|
-
|
|
2999
|
+
ve().currentCode !== p.currentCode && (ce.innerSet = !0, h(p));
|
|
3000
3000
|
}), R.tab.addEventListener("onItemRemove", (p) => {
|
|
3001
|
-
const v =
|
|
3001
|
+
const v = ve(), A = J().currentSubAppCode ?? "";
|
|
3002
3002
|
v.tabMap[A].findIndex((S) => S.code === p.code) !== -1 && (Ut(p.applicationCode, [p.code]), y({ type: "me", data: p }));
|
|
3003
3003
|
}), R.tab.addEventListener("onMenuClick", (p) => {
|
|
3004
3004
|
let v = [];
|
|
3005
|
-
const A =
|
|
3005
|
+
const A = ve().tabMap[p.applicationCode] ?? [];
|
|
3006
3006
|
if (p.type.key === "right") {
|
|
3007
3007
|
const _ = A.findIndex((C) => C.code === p.data.value);
|
|
3008
3008
|
v = A.slice(_ + 1);
|
|
@@ -3065,11 +3065,11 @@ const Kt = (t, e = "") => {
|
|
|
3065
3065
|
const A = { ...d, menus: g, originalMenus: p };
|
|
3066
3066
|
return Se([{ key: "subAppList", value: A }]), !0;
|
|
3067
3067
|
}, i = async (d) => {
|
|
3068
|
-
var F, z,
|
|
3068
|
+
var F, z, ae, Ce, Rt;
|
|
3069
3069
|
const { microApp: h = null, menuCode: b = "", menuPath: y = "", route: g = {} } = d;
|
|
3070
3070
|
let p = g;
|
|
3071
3071
|
if (!h && y) {
|
|
3072
|
-
if (c(), !(a && a.find((
|
|
3072
|
+
if (c(), !(a && a.find((ie) => y.startsWith("/" + ie) || y.startsWith(ie)))) return;
|
|
3073
3073
|
await t.push({ path: y, query: p.query });
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
@@ -3079,26 +3079,26 @@ const Kt = (t, e = "") => {
|
|
|
3079
3079
|
const _ = (h == null ? void 0 : h.openType) ?? 1, C = (h == null ? void 0 : h.type) ?? 1;
|
|
3080
3080
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
3081
3081
|
c();
|
|
3082
|
-
const
|
|
3083
|
-
if ((
|
|
3082
|
+
const pe = ((ae = J()) == null ? void 0 : ae.subAppList) ?? [];
|
|
3083
|
+
if ((pe == null ? void 0 : pe.find((ue) => ue.code === h.code)) || pe == null || pe.push(h), Se([
|
|
3084
3084
|
{ key: "currentSubApp", value: h },
|
|
3085
3085
|
{ key: "currentSubAppCode", value: h.code },
|
|
3086
|
-
{ key: "subAppList", value:
|
|
3087
|
-
]),
|
|
3088
|
-
const ze = { ...
|
|
3086
|
+
{ key: "subAppList", value: pe }
|
|
3087
|
+
]), pe.forEach((ue) => {
|
|
3088
|
+
const ze = { ...ue, value: ue.code, label: ue.name };
|
|
3089
3089
|
R.nav.appendItem(ze);
|
|
3090
3090
|
}), R.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
3091
3091
|
await t.push({ path: h.routeUrl, query: { ...p.query, app: h.code } });
|
|
3092
3092
|
return;
|
|
3093
3093
|
}
|
|
3094
3094
|
if (_ === 1 && C === 2) {
|
|
3095
|
-
const
|
|
3095
|
+
const ue = En(_n(bn(h.routeUrl)));
|
|
3096
3096
|
await t.push({
|
|
3097
3097
|
path: ct,
|
|
3098
3098
|
query: {
|
|
3099
3099
|
...p.query,
|
|
3100
3100
|
app: h.code,
|
|
3101
|
-
iframeSrc:
|
|
3101
|
+
iframeSrc: ue
|
|
3102
3102
|
}
|
|
3103
3103
|
});
|
|
3104
3104
|
return;
|
|
@@ -3117,8 +3117,8 @@ const Kt = (t, e = "") => {
|
|
|
3117
3117
|
meta: { ...(p == null ? void 0 : p.meta) ?? {} }
|
|
3118
3118
|
}), P && (P == null ? void 0 : P.code) !== (h == null ? void 0 : h.code)) {
|
|
3119
3119
|
if (P.fixed && (await t.push(P.path), c(), R.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3120
|
-
const
|
|
3121
|
-
await i({ microApp:
|
|
3120
|
+
const pe = (Ce = J().subAppList) == null ? void 0 : Ce.find((ze) => ze.code === P.code), ie = ve().preTab[P.code], ue = { ...(ie == null ? void 0 : ie.query) ?? {} };
|
|
3121
|
+
await i({ microApp: pe, menuCode: (ie == null ? void 0 : ie.code) ?? "", route: { query: ue } });
|
|
3122
3122
|
}
|
|
3123
3123
|
return;
|
|
3124
3124
|
}
|
|
@@ -3134,18 +3134,19 @@ const Kt = (t, e = "") => {
|
|
|
3134
3134
|
return;
|
|
3135
3135
|
}
|
|
3136
3136
|
if (v && A) {
|
|
3137
|
-
(Rt = J().subAppList) == null || Rt.forEach((
|
|
3138
|
-
const
|
|
3139
|
-
R.nav.appendItem(
|
|
3137
|
+
(Rt = J().subAppList) == null || Rt.forEach((ie) => {
|
|
3138
|
+
const ue = { ...ie, value: ie.code, label: ie.name };
|
|
3139
|
+
R.nav.appendItem(ue);
|
|
3140
3140
|
}), R.nav.setActiveItem(O.code), R.menu.setItems(S);
|
|
3141
|
-
const
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
...
|
|
3145
|
-
value:
|
|
3146
|
-
label:
|
|
3147
|
-
});
|
|
3148
|
-
|
|
3141
|
+
const pe = ve().tabMap[O.code] ?? [];
|
|
3142
|
+
if (pe.length) {
|
|
3143
|
+
const ie = pe.map((ue) => ({
|
|
3144
|
+
...ue,
|
|
3145
|
+
value: ue.code,
|
|
3146
|
+
label: ue.name
|
|
3147
|
+
})) || [];
|
|
3148
|
+
R.tab.setItems(ie);
|
|
3149
|
+
}
|
|
3149
3150
|
}
|
|
3150
3151
|
e({ currentMenu: I, microPath: T, route: p });
|
|
3151
3152
|
}, u = async (d) => {
|
|
@@ -3154,14 +3155,14 @@ const Kt = (t, e = "") => {
|
|
|
3154
3155
|
await t.push(d.path), R.menu.setItems([]), R.tab.setItems([]), R.nav.setActiveItem(d.path), Se([
|
|
3155
3156
|
{ key: "currentSubAppCode", value: "" },
|
|
3156
3157
|
{ key: "currentSubApp", value: {} }
|
|
3157
|
-
]),
|
|
3158
|
+
]), Ae([
|
|
3158
3159
|
{ key: "currentCode", value: "" },
|
|
3159
3160
|
{ key: "currentTab", value: {} }
|
|
3160
3161
|
]);
|
|
3161
3162
|
return;
|
|
3162
3163
|
}
|
|
3163
3164
|
if (!d.fixed) {
|
|
3164
|
-
const b = (h = J().subAppList) == null ? void 0 : h.find((v) => v.code === d.code), y =
|
|
3165
|
+
const b = (h = J().subAppList) == null ? void 0 : h.find((v) => v.code === d.code), y = ve().preTab[d.code], g = (y == null ? void 0 : y.code) ?? "", p = { ...(y == null ? void 0 : y.query) ?? {} };
|
|
3165
3166
|
await i({ microApp: b, menuCode: g, route: { query: p } });
|
|
3166
3167
|
}
|
|
3167
3168
|
};
|
|
@@ -3175,13 +3176,13 @@ const Kt = (t, e = "") => {
|
|
|
3175
3176
|
if (!((p = h.subAppList) != null && p.length)) return;
|
|
3176
3177
|
const b = h.subAppList.findIndex((v) => v.code === d.code);
|
|
3177
3178
|
if (b === -1) return;
|
|
3178
|
-
const y =
|
|
3179
|
+
const y = ve().tabMap[d.code] ?? [];
|
|
3179
3180
|
if (y.length) {
|
|
3180
3181
|
const v = y.map((A) => A.path);
|
|
3181
3182
|
n(v);
|
|
3182
3183
|
}
|
|
3183
3184
|
let g = null;
|
|
3184
|
-
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 }]),
|
|
3185
|
+
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 }]), Ae([
|
|
3185
3186
|
{ key: `preTab:${d.code}`, value: {} },
|
|
3186
3187
|
{ key: `tabMap:${d.code}`, value: [] }
|
|
3187
3188
|
]), g) {
|
|
@@ -3241,7 +3242,7 @@ const Kt = (t, e = "") => {
|
|
|
3241
3242
|
...g,
|
|
3242
3243
|
value: g.code,
|
|
3243
3244
|
label: g.name
|
|
3244
|
-
}), R.tab.setActiveItem(a.code), R.menu.setActiveItem(a.id), Er(a.code),
|
|
3245
|
+
}), R.tab.setActiveItem(a.code), R.menu.setActiveItem(a.id), Er(a.code), Ae([
|
|
3245
3246
|
{
|
|
3246
3247
|
key: "currentCode",
|
|
3247
3248
|
value: a.code
|
|
@@ -3303,7 +3304,7 @@ const Kt = (t, e = "") => {
|
|
|
3303
3304
|
(D) => v === D.code || p.includes(D.code)
|
|
3304
3305
|
);
|
|
3305
3306
|
Se([{ key: "subAppList", value: T }]), I && I.length && I.forEach((D) => {
|
|
3306
|
-
|
|
3307
|
+
Ae([
|
|
3307
3308
|
{ key: `preTab:${D.code}`, value: {} },
|
|
3308
3309
|
{ key: `tabMap:${D.code}`, value: [] }
|
|
3309
3310
|
]);
|
|
@@ -3315,7 +3316,7 @@ const Kt = (t, e = "") => {
|
|
|
3315
3316
|
const { currentApp: T } = $n(d.query.app);
|
|
3316
3317
|
if (T) {
|
|
3317
3318
|
I = T;
|
|
3318
|
-
const O = (
|
|
3319
|
+
const O = (ve().preTab ?? {})[I.code];
|
|
3319
3320
|
d = {}, O && (d.path = `/${O.applicationPath}${O.path}`.replace(/\/\//g, "/"), d.query = O.query);
|
|
3320
3321
|
}
|
|
3321
3322
|
}
|
|
@@ -3347,7 +3348,7 @@ const Kt = (t, e = "") => {
|
|
|
3347
3348
|
I && (R.nav.setActiveItem(I.path), R.menu.setItems([]), R.tab.setItems([]), Se([
|
|
3348
3349
|
{ key: "currentSubAppCode", value: "" },
|
|
3349
3350
|
{ key: "currentSubApp", value: {} }
|
|
3350
|
-
]),
|
|
3351
|
+
]), Ae([
|
|
3351
3352
|
{ key: "currentCode", value: "" },
|
|
3352
3353
|
{ key: "currentTab", value: {} }
|
|
3353
3354
|
]));
|
|
@@ -3565,16 +3566,16 @@ const Kt = (t, e = "") => {
|
|
|
3565
3566
|
class: "message-center-notify",
|
|
3566
3567
|
message: i.title,
|
|
3567
3568
|
top: "55px",
|
|
3568
|
-
description:
|
|
3569
|
+
description: he("div", {}, [
|
|
3569
3570
|
// 标题
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3571
|
+
he("div", { class: "custom-title" }, [
|
|
3572
|
+
he(qe, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
|
|
3573
|
+
he("div", { class: "title" }, i.title)
|
|
3573
3574
|
]),
|
|
3574
3575
|
// 内容
|
|
3575
|
-
|
|
3576
|
+
he("div", { class: "custom-content" }, i.content),
|
|
3576
3577
|
// 底部按钮
|
|
3577
|
-
i.title !== "密码更新提醒" ?
|
|
3578
|
+
i.title !== "密码更新提醒" ? he(
|
|
3578
3579
|
"div",
|
|
3579
3580
|
{
|
|
3580
3581
|
class: "footer-btn",
|
|
@@ -3640,7 +3641,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3640
3641
|
onClick: f[1] || (f[1] = (d) => l())
|
|
3641
3642
|
},
|
|
3642
3643
|
[
|
|
3643
|
-
|
|
3644
|
+
fe(u.$slots, "default", {}, void 0, !0)
|
|
3644
3645
|
],
|
|
3645
3646
|
34
|
|
3646
3647
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -3669,7 +3670,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3669
3670
|
onItemClick: (i) => r(l)
|
|
3670
3671
|
}, {
|
|
3671
3672
|
default: x(() => [
|
|
3672
|
-
s.showFn(l) ?
|
|
3673
|
+
s.showFn(l) ? fe(s.$slots, "default", {
|
|
3673
3674
|
key: 0,
|
|
3674
3675
|
index: l
|
|
3675
3676
|
}, void 0, !0) : j("v-if", !0)
|
|
@@ -3696,7 +3697,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3696
3697
|
onDblclick: s[9] || (s[9] = le((a) => a.stopPropagation(), ["stop"]))
|
|
3697
3698
|
},
|
|
3698
3699
|
[
|
|
3699
|
-
Q(m(
|
|
3700
|
+
Q(m(me), { content: "左上" }, {
|
|
3700
3701
|
default: x(() => [
|
|
3701
3702
|
B("div", {
|
|
3702
3703
|
class: "icon icon-top-left",
|
|
@@ -3706,7 +3707,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3706
3707
|
_: 1
|
|
3707
3708
|
/* STABLE */
|
|
3708
3709
|
}),
|
|
3709
|
-
Q(m(
|
|
3710
|
+
Q(m(me), { content: "上" }, {
|
|
3710
3711
|
default: x(() => [
|
|
3711
3712
|
B("div", {
|
|
3712
3713
|
class: "icon icon-top",
|
|
@@ -3716,7 +3717,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3716
3717
|
_: 1
|
|
3717
3718
|
/* STABLE */
|
|
3718
3719
|
}),
|
|
3719
|
-
Q(m(
|
|
3720
|
+
Q(m(me), { content: "右上" }, {
|
|
3720
3721
|
default: x(() => [
|
|
3721
3722
|
B("div", {
|
|
3722
3723
|
class: "icon icon-top-right",
|
|
@@ -3726,7 +3727,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3726
3727
|
_: 1
|
|
3727
3728
|
/* STABLE */
|
|
3728
3729
|
}),
|
|
3729
|
-
Q(m(
|
|
3730
|
+
Q(m(me), { content: "左" }, {
|
|
3730
3731
|
default: x(() => [
|
|
3731
3732
|
B("div", {
|
|
3732
3733
|
class: "icon icon-left",
|
|
@@ -3736,7 +3737,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3736
3737
|
_: 1
|
|
3737
3738
|
/* STABLE */
|
|
3738
3739
|
}),
|
|
3739
|
-
Q(m(
|
|
3740
|
+
Q(m(me), { content: "自动" }, {
|
|
3740
3741
|
default: x(() => [
|
|
3741
3742
|
B("div", {
|
|
3742
3743
|
class: "icon icon-auto",
|
|
@@ -3746,7 +3747,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3746
3747
|
_: 1
|
|
3747
3748
|
/* STABLE */
|
|
3748
3749
|
}),
|
|
3749
|
-
Q(m(
|
|
3750
|
+
Q(m(me), { content: "右" }, {
|
|
3750
3751
|
default: x(() => [
|
|
3751
3752
|
B("div", {
|
|
3752
3753
|
class: "icon icon-right",
|
|
@@ -3756,7 +3757,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3756
3757
|
_: 1
|
|
3757
3758
|
/* STABLE */
|
|
3758
3759
|
}),
|
|
3759
|
-
Q(m(
|
|
3760
|
+
Q(m(me), { content: "左下" }, {
|
|
3760
3761
|
default: x(() => [
|
|
3761
3762
|
B("div", {
|
|
3762
3763
|
class: "icon icon-bottom-left",
|
|
@@ -3766,7 +3767,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3766
3767
|
_: 1
|
|
3767
3768
|
/* STABLE */
|
|
3768
3769
|
}),
|
|
3769
|
-
Q(m(
|
|
3770
|
+
Q(m(me), { content: "下" }, {
|
|
3770
3771
|
default: x(() => [
|
|
3771
3772
|
B("div", {
|
|
3772
3773
|
class: "icon icon-bottom",
|
|
@@ -3776,7 +3777,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3776
3777
|
_: 1
|
|
3777
3778
|
/* STABLE */
|
|
3778
3779
|
}),
|
|
3779
|
-
Q(m(
|
|
3780
|
+
Q(m(me), { content: "右下" }, {
|
|
3780
3781
|
default: x(() => [
|
|
3781
3782
|
B("div", {
|
|
3782
3783
|
class: "icon icon-bottom-right",
|
|
@@ -3897,7 +3898,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3897
3898
|
B(
|
|
3898
3899
|
"div",
|
|
3899
3900
|
qp,
|
|
3900
|
-
|
|
3901
|
+
re(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
3901
3902
|
1
|
|
3902
3903
|
/* TEXT */
|
|
3903
3904
|
)
|
|
@@ -3933,7 +3934,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3933
3934
|
onDblclick: _[2] || (_[2] = le((C) => C.stopPropagation(), ["stop"]))
|
|
3934
3935
|
},
|
|
3935
3936
|
[
|
|
3936
|
-
Q(m(
|
|
3937
|
+
Q(m(me), { content: "声音" }, {
|
|
3937
3938
|
default: x(() => [
|
|
3938
3939
|
Q(m(qe), {
|
|
3939
3940
|
class: "icon icon-volume",
|
|
@@ -3944,7 +3945,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3944
3945
|
_: 1
|
|
3945
3946
|
/* STABLE */
|
|
3946
3947
|
}),
|
|
3947
|
-
Q(m(
|
|
3948
|
+
Q(m(me), { content: "截图" }, {
|
|
3948
3949
|
default: x(() => [
|
|
3949
3950
|
Q(m(qe), {
|
|
3950
3951
|
class: "icon icon-screenshot",
|
|
@@ -3955,7 +3956,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3955
3956
|
_: 1
|
|
3956
3957
|
/* STABLE */
|
|
3957
3958
|
}),
|
|
3958
|
-
v("control") ? ($(), V(m(
|
|
3959
|
+
v("control") ? ($(), V(m(me), {
|
|
3959
3960
|
key: 0,
|
|
3960
3961
|
content: "聚焦-"
|
|
3961
3962
|
}, {
|
|
@@ -3970,7 +3971,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3970
3971
|
_: 1
|
|
3971
3972
|
/* STABLE */
|
|
3972
3973
|
})) : j("v-if", !0),
|
|
3973
|
-
v("control") ? ($(), V(m(
|
|
3974
|
+
v("control") ? ($(), V(m(me), {
|
|
3974
3975
|
key: 1,
|
|
3975
3976
|
content: "聚焦+"
|
|
3976
3977
|
}, {
|
|
@@ -3985,7 +3986,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3985
3986
|
_: 1
|
|
3986
3987
|
/* STABLE */
|
|
3987
3988
|
})) : j("v-if", !0),
|
|
3988
|
-
v("control") ? ($(), V(m(
|
|
3989
|
+
v("control") ? ($(), V(m(me), {
|
|
3989
3990
|
key: 2,
|
|
3990
3991
|
content: "方向控制"
|
|
3991
3992
|
}, {
|
|
@@ -4156,7 +4157,7 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4156
4157
|
-1
|
|
4157
4158
|
/* HOISTED */
|
|
4158
4159
|
)),
|
|
4159
|
-
Q(m(
|
|
4160
|
+
Q(m(me), { content: "页面全屏" }, {
|
|
4160
4161
|
default: x(() => [
|
|
4161
4162
|
Q(m(qe), {
|
|
4162
4163
|
class: "icon",
|
|
@@ -4181,7 +4182,7 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4181
4182
|
return new Promise((o) => {
|
|
4182
4183
|
let r = document.body.querySelector("#video-dialog");
|
|
4183
4184
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4184
|
-
const a =
|
|
4185
|
+
const a = he(nf, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4185
4186
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
4186
4187
|
} });
|
|
4187
4188
|
Vt(a, r);
|
|
@@ -4370,7 +4371,7 @@ class Pt {
|
|
|
4370
4371
|
}
|
|
4371
4372
|
Pt.instance = new Pt();
|
|
4372
4373
|
const uf = "8.0.7";
|
|
4373
|
-
class
|
|
4374
|
+
class se {
|
|
4374
4375
|
static isRequired(e, n) {
|
|
4375
4376
|
if (e == null)
|
|
4376
4377
|
throw new Error(`The '${n}' argument is required.`);
|
|
@@ -4818,7 +4819,7 @@ class eo {
|
|
|
4818
4819
|
constructor(e, n, o, r, s, a, c) {
|
|
4819
4820
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4820
4821
|
this._logger.log(w.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
4821
|
-
},
|
|
4822
|
+
}, se.isRequired(e, "connection"), se.isRequired(n, "logger"), se.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? Ef, this.keepAliveIntervalInMilliseconds = a ?? Sf, this._statefulReconnectBufferSize = c ?? kf, this._logger = n, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new bf(), this.connection.onreceive = (l) => this._processIncomingData(l), this.connection.onclose = (l) => this._connectionClosed(l), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: U.Ping });
|
|
4822
4823
|
}
|
|
4823
4824
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
4824
4825
|
get state() {
|
|
@@ -5338,14 +5339,14 @@ class Lf extends sn {
|
|
|
5338
5339
|
return this._innerClient.getCookieString(e);
|
|
5339
5340
|
}
|
|
5340
5341
|
}
|
|
5341
|
-
var
|
|
5342
|
+
var oe;
|
|
5342
5343
|
(function(t) {
|
|
5343
5344
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
5344
|
-
})(
|
|
5345
|
-
var
|
|
5345
|
+
})(oe || (oe = {}));
|
|
5346
|
+
var ge;
|
|
5346
5347
|
(function(t) {
|
|
5347
5348
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
5348
|
-
})(
|
|
5349
|
+
})(ge || (ge = {}));
|
|
5349
5350
|
let $f = class {
|
|
5350
5351
|
constructor() {
|
|
5351
5352
|
this._isAborted = !1, this.onabort = null;
|
|
@@ -5369,7 +5370,7 @@ class tr {
|
|
|
5369
5370
|
this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5370
5371
|
}
|
|
5371
5372
|
async connect(e, n) {
|
|
5372
|
-
if (
|
|
5373
|
+
if (se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._url = e, this._logger.log(w.Trace, "(LongPolling transport) Connecting."), n === ge.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
5373
5374
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5374
5375
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5375
5376
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5377,7 +5378,7 @@ class tr {
|
|
|
5377
5378
|
timeout: 1e5,
|
|
5378
5379
|
withCredentials: this._options.withCredentials
|
|
5379
5380
|
};
|
|
5380
|
-
n ===
|
|
5381
|
+
n === ge.Binary && (a.responseType = "arraybuffer");
|
|
5381
5382
|
const c = `${e}&_=${Date.now()}`;
|
|
5382
5383
|
this._logger.log(w.Trace, `(LongPolling transport) polling: ${c}.`);
|
|
5383
5384
|
const l = await this._httpClient.get(c, a);
|
|
@@ -5435,9 +5436,9 @@ class Df {
|
|
|
5435
5436
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5436
5437
|
}
|
|
5437
5438
|
async connect(e, n) {
|
|
5438
|
-
return
|
|
5439
|
+
return se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._logger.log(w.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
5439
5440
|
let s = !1;
|
|
5440
|
-
if (n !==
|
|
5441
|
+
if (n !== ge.Text) {
|
|
5441
5442
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
5442
5443
|
return;
|
|
5443
5444
|
}
|
|
@@ -5485,7 +5486,7 @@ class Of {
|
|
|
5485
5486
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5486
5487
|
}
|
|
5487
5488
|
async connect(e, n) {
|
|
5488
|
-
|
|
5489
|
+
se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._logger.log(w.Trace, "(WebSockets transport) Connecting.");
|
|
5489
5490
|
let o;
|
|
5490
5491
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5491
5492
|
e = e.replace(/^http/, "ws");
|
|
@@ -5499,7 +5500,7 @@ class Of {
|
|
|
5499
5500
|
});
|
|
5500
5501
|
} else
|
|
5501
5502
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
5502
|
-
a || (a = new this._webSocketConstructor(e)), n ===
|
|
5503
|
+
a || (a = new this._webSocketConstructor(e)), n === ge.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
|
|
5503
5504
|
this._logger.log(w.Information, `WebSocket connected to ${e}.`), this._webSocket = a, l = !0, r();
|
|
5504
5505
|
}, a.onerror = (i) => {
|
|
5505
5506
|
let u = null;
|
|
@@ -5542,7 +5543,7 @@ const nr = 100;
|
|
|
5542
5543
|
class Mf {
|
|
5543
5544
|
constructor(e, n = {}) {
|
|
5544
5545
|
if (this._stopPromiseResolver = () => {
|
|
5545
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
5546
|
+
}, this.features = {}, this._negotiateVersion = 1, se.isRequired(e, "url"), this._logger = pf(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
|
|
5546
5547
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
5547
5548
|
else
|
|
5548
5549
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -5555,7 +5556,7 @@ class Mf {
|
|
|
5555
5556
|
!te.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : te.isNode && !n.WebSocket && o && (n.WebSocket = o), !te.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : te.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new Lf(n.httpClient || new _f(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
5556
5557
|
}
|
|
5557
5558
|
async start(e) {
|
|
5558
|
-
if (e = e ||
|
|
5559
|
+
if (e = e || ge.Binary, se.isIn(e, ge, "transferFormat"), this._logger.log(w.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
|
|
5559
5560
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5560
5561
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5561
5562
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -5599,8 +5600,8 @@ class Mf {
|
|
|
5599
5600
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
5600
5601
|
try {
|
|
5601
5602
|
if (this._options.skipNegotiation)
|
|
5602
|
-
if (this._options.transport ===
|
|
5603
|
-
this.transport = this._constructTransport(
|
|
5603
|
+
if (this._options.transport === oe.WebSockets)
|
|
5604
|
+
this.transport = this._constructTransport(oe.WebSockets), await this._startTransport(n, e);
|
|
5604
5605
|
else
|
|
5605
5606
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
5606
5607
|
else {
|
|
@@ -5676,7 +5677,7 @@ class Mf {
|
|
|
5676
5677
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
5677
5678
|
return;
|
|
5678
5679
|
} catch (f) {
|
|
5679
|
-
if (this._logger.log(w.Error, `Failed to start the transport '${i.transport}': ${f}`), l = void 0, a.push(new cf(`${i.transport} failed: ${f}`,
|
|
5680
|
+
if (this._logger.log(w.Error, `Failed to start the transport '${i.transport}': ${f}`), l = void 0, a.push(new cf(`${i.transport} failed: ${f}`, oe[i.transport])), this._connectionState !== "Connecting") {
|
|
5680
5681
|
const d = "Failed to select transport before stop() was called.";
|
|
5681
5682
|
return this._logger.log(w.Debug, d), Promise.reject(new $e(d));
|
|
5682
5683
|
}
|
|
@@ -5687,15 +5688,15 @@ class Mf {
|
|
|
5687
5688
|
}
|
|
5688
5689
|
_constructTransport(e) {
|
|
5689
5690
|
switch (e) {
|
|
5690
|
-
case
|
|
5691
|
+
case oe.WebSockets:
|
|
5691
5692
|
if (!this._options.WebSocket)
|
|
5692
5693
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
5693
5694
|
return new Of(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
5694
|
-
case
|
|
5695
|
+
case oe.ServerSentEvents:
|
|
5695
5696
|
if (!this._options.EventSource)
|
|
5696
5697
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5697
5698
|
return new Df(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5698
|
-
case
|
|
5699
|
+
case oe.LongPolling:
|
|
5699
5700
|
return new tr(this._httpClient, this._logger, this._options);
|
|
5700
5701
|
default:
|
|
5701
5702
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -5718,23 +5719,23 @@ class Mf {
|
|
|
5718
5719
|
} : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, n);
|
|
5719
5720
|
}
|
|
5720
5721
|
_resolveTransportOrError(e, n, o, r) {
|
|
5721
|
-
const s =
|
|
5722
|
+
const s = oe[e.transport];
|
|
5722
5723
|
if (s == null)
|
|
5723
5724
|
return this._logger.log(w.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
5724
5725
|
if (Bf(n, s))
|
|
5725
|
-
if (e.transferFormats.map((c) =>
|
|
5726
|
-
if (s ===
|
|
5727
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5728
|
-
this._logger.log(w.Debug, `Selecting transport '${
|
|
5726
|
+
if (e.transferFormats.map((c) => ge[c]).indexOf(o) >= 0) {
|
|
5727
|
+
if (s === oe.WebSockets && !this._options.WebSocket || s === oe.ServerSentEvents && !this._options.EventSource)
|
|
5728
|
+
return this._logger.log(w.Debug, `Skipping transport '${oe[s]}' because it is not supported in your environment.'`), new sf(`'${oe[s]}' is not supported in your environment.`, s);
|
|
5729
|
+
this._logger.log(w.Debug, `Selecting transport '${oe[s]}'.`);
|
|
5729
5730
|
try {
|
|
5730
|
-
return this.features.reconnect = s ===
|
|
5731
|
+
return this.features.reconnect = s === oe.WebSockets ? r : void 0, this._constructTransport(s);
|
|
5731
5732
|
} catch (c) {
|
|
5732
5733
|
return c;
|
|
5733
5734
|
}
|
|
5734
5735
|
} else
|
|
5735
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5736
|
+
return this._logger.log(w.Debug, `Skipping transport '${oe[s]}' because it does not support the requested transfer format '${ge[o]}'.`), new Error(`'${oe[s]}' does not support ${ge[o]}.`);
|
|
5736
5737
|
else
|
|
5737
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5738
|
+
return this._logger.log(w.Debug, `Skipping transport '${oe[s]}' because it was disabled by the client.`), new af(`'${oe[s]}' is disabled by the client.`, s);
|
|
5738
5739
|
}
|
|
5739
5740
|
_isITransport(e) {
|
|
5740
5741
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -5830,7 +5831,7 @@ class Nt {
|
|
|
5830
5831
|
const Rf = "json";
|
|
5831
5832
|
class xf {
|
|
5832
5833
|
constructor() {
|
|
5833
|
-
this.name = Rf, this.version = 2, this.transferFormat =
|
|
5834
|
+
this.name = Rf, this.version = 2, this.transferFormat = ge.Text;
|
|
5834
5835
|
}
|
|
5835
5836
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
5836
5837
|
*
|
|
@@ -5928,7 +5929,7 @@ function jf(t) {
|
|
|
5928
5929
|
}
|
|
5929
5930
|
class Nf {
|
|
5930
5931
|
configureLogging(e) {
|
|
5931
|
-
if (
|
|
5932
|
+
if (se.isRequired(e, "logging"), Hf(e))
|
|
5932
5933
|
this.logger = e;
|
|
5933
5934
|
else if (typeof e == "string") {
|
|
5934
5935
|
const n = jf(e);
|
|
@@ -5938,7 +5939,7 @@ class Nf {
|
|
|
5938
5939
|
return this;
|
|
5939
5940
|
}
|
|
5940
5941
|
withUrl(e, n) {
|
|
5941
|
-
return
|
|
5942
|
+
return se.isRequired(e, "url"), se.isNotEmpty(e, "url"), this.url = e, typeof n == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...n } : this.httpConnectionOptions = {
|
|
5942
5943
|
...this.httpConnectionOptions,
|
|
5943
5944
|
transport: n
|
|
5944
5945
|
}, this;
|
|
@@ -5948,7 +5949,7 @@ class Nf {
|
|
|
5948
5949
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
5949
5950
|
*/
|
|
5950
5951
|
withHubProtocol(e) {
|
|
5951
|
-
return
|
|
5952
|
+
return se.isRequired(e, "protocol"), this.protocol = e, this;
|
|
5952
5953
|
}
|
|
5953
5954
|
withAutomaticReconnect(e) {
|
|
5954
5955
|
if (this.reconnectPolicy)
|
|
@@ -5960,14 +5961,14 @@ class Nf {
|
|
|
5960
5961
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5961
5962
|
*/
|
|
5962
5963
|
withServerTimeout(e) {
|
|
5963
|
-
return
|
|
5964
|
+
return se.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
5964
5965
|
}
|
|
5965
5966
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
5966
5967
|
*
|
|
5967
5968
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5968
5969
|
*/
|
|
5969
5970
|
withKeepAliveInterval(e) {
|
|
5970
|
-
return
|
|
5971
|
+
return se.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
5971
5972
|
}
|
|
5972
5973
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
5973
5974
|
*
|
|
@@ -5995,7 +5996,7 @@ let { baseURL: Uf } = tt();
|
|
|
5995
5996
|
const Ff = () => {
|
|
5996
5997
|
const t = new Nf().withUrl(`${Uf}/api/tool/event-bus`, {
|
|
5997
5998
|
skipNegotiation: !0,
|
|
5998
|
-
transport:
|
|
5999
|
+
transport: oe.WebSockets
|
|
5999
6000
|
}).withAutomaticReconnect().build();
|
|
6000
6001
|
return t.start().then(() => {
|
|
6001
6002
|
}).catch((e) => {
|
|
@@ -6182,7 +6183,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6182
6183
|
O.value = k.data.filter((L) => L.status), O.value.length > 0 && (i.value.workOrderRules = O.value[0].id);
|
|
6183
6184
|
};
|
|
6184
6185
|
G(l, (M) => {
|
|
6185
|
-
M || (
|
|
6186
|
+
M || (ie(), ue());
|
|
6186
6187
|
}), G(
|
|
6187
6188
|
S,
|
|
6188
6189
|
(M) => {
|
|
@@ -6199,17 +6200,17 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6199
6200
|
const z = (M) => {
|
|
6200
6201
|
var k;
|
|
6201
6202
|
return (k = a.value) == null ? void 0 : k.parentNode.parentNode;
|
|
6202
|
-
},
|
|
6203
|
+
}, ae = (M) => {
|
|
6203
6204
|
u.value.reportTheme = "";
|
|
6204
6205
|
}, Ce = (M, k) => {
|
|
6205
6206
|
k.length > 0 && (g.value = k[0].path), i.value.reportPosition = M, _.value = "";
|
|
6206
6207
|
}, Rt = (M) => {
|
|
6207
6208
|
M && (u.value.reportPosition = "", g.value = ""), M ? (i.value.reportPosition = null, g.value = "", p.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", p.value = "请选择");
|
|
6208
|
-
},
|
|
6209
|
+
}, pe = (M) => {
|
|
6209
6210
|
M && (u.value.reportTheme = ""), M ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
|
|
6210
|
-
},
|
|
6211
|
+
}, ie = () => {
|
|
6211
6212
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
6212
|
-
},
|
|
6213
|
+
}, ue = () => {
|
|
6213
6214
|
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, S.value = !0, D.value = !0, T.value = !0, i.value.reportTheme = N("告警对象").value, g.value = "", p.value = "告警对象位置", v.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, d.value = [], h.value = [];
|
|
6214
6215
|
}, ze = (M) => {
|
|
6215
6216
|
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);
|
|
@@ -6235,7 +6236,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6235
6236
|
if (k) return {};
|
|
6236
6237
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6237
6238
|
}, cs = (M) => {
|
|
6238
|
-
|
|
6239
|
+
ie();
|
|
6239
6240
|
}, ls = async () => {
|
|
6240
6241
|
const M = {
|
|
6241
6242
|
logic: !1,
|
|
@@ -6309,8 +6310,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6309
6310
|
"destroy-on-close": ""
|
|
6310
6311
|
}, {
|
|
6311
6312
|
header: x(() => [
|
|
6312
|
-
|
|
6313
|
-
|
|
6313
|
+
ye(
|
|
6314
|
+
re(m(N)("告警处理").value),
|
|
6314
6315
|
1
|
|
6315
6316
|
/* TEXT */
|
|
6316
6317
|
)
|
|
@@ -6322,8 +6323,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6322
6323
|
onClick: ds
|
|
6323
6324
|
}, {
|
|
6324
6325
|
default: x(() => [
|
|
6325
|
-
|
|
6326
|
-
|
|
6326
|
+
ye(
|
|
6327
|
+
re(m(N)("取消").value),
|
|
6327
6328
|
1
|
|
6328
6329
|
/* TEXT */
|
|
6329
6330
|
)
|
|
@@ -6336,8 +6337,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6336
6337
|
onClick: k[29] || (k[29] = (L) => so(1))
|
|
6337
6338
|
}, {
|
|
6338
6339
|
default: x(() => [
|
|
6339
|
-
|
|
6340
|
-
|
|
6340
|
+
ye(
|
|
6341
|
+
re(m(N)("结束处理").value),
|
|
6341
6342
|
1
|
|
6342
6343
|
/* TEXT */
|
|
6343
6344
|
)
|
|
@@ -6351,8 +6352,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6351
6352
|
onClick: k[30] || (k[30] = (L) => so(2))
|
|
6352
6353
|
}, {
|
|
6353
6354
|
default: x(() => [
|
|
6354
|
-
|
|
6355
|
-
|
|
6355
|
+
ye(
|
|
6356
|
+
re(m(N)("继续处理").value),
|
|
6356
6357
|
1
|
|
6357
6358
|
/* TEXT */
|
|
6358
6359
|
)
|
|
@@ -6486,8 +6487,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6486
6487
|
size: "middle"
|
|
6487
6488
|
}, {
|
|
6488
6489
|
default: x(() => [
|
|
6489
|
-
|
|
6490
|
-
|
|
6490
|
+
ye(
|
|
6491
|
+
re(m(N)("告警对象位置").value),
|
|
6491
6492
|
1
|
|
6492
6493
|
/* TEXT */
|
|
6493
6494
|
)
|
|
@@ -6518,18 +6519,18 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6518
6519
|
modelValue: i.value.reportTheme,
|
|
6519
6520
|
"onUpdate:modelValue": k[14] || (k[14] = (L) => i.value.reportTheme = L),
|
|
6520
6521
|
placeholder: v.value,
|
|
6521
|
-
onChange:
|
|
6522
|
+
onChange: ae
|
|
6522
6523
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
6523
6524
|
Q(m(fo), {
|
|
6524
6525
|
modelValue: D.value,
|
|
6525
6526
|
"onUpdate:modelValue": k[15] || (k[15] = (L) => D.value = L),
|
|
6526
6527
|
checkboxType: "default",
|
|
6527
|
-
onChange:
|
|
6528
|
+
onChange: pe,
|
|
6528
6529
|
size: "middle"
|
|
6529
6530
|
}, {
|
|
6530
6531
|
default: x(() => [
|
|
6531
|
-
|
|
6532
|
-
|
|
6532
|
+
ye(
|
|
6533
|
+
re(m(N)("告警对象").value),
|
|
6533
6534
|
1
|
|
6534
6535
|
/* TEXT */
|
|
6535
6536
|
)
|
|
@@ -6653,7 +6654,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6653
6654
|
]));
|
|
6654
6655
|
}
|
|
6655
6656
|
}), vh = /* @__PURE__ */ be(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
|
|
6656
|
-
handleAlarmVue: () =>
|
|
6657
|
+
handleAlarmVue: () => he(vh, {
|
|
6657
6658
|
handerIds: e.value,
|
|
6658
6659
|
projectId: Yt().id,
|
|
6659
6660
|
ref: t,
|
|
@@ -6696,7 +6697,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6696
6697
|
B(
|
|
6697
6698
|
"div",
|
|
6698
6699
|
bh,
|
|
6699
|
-
|
|
6700
|
+
re(m(N)("新告警").value),
|
|
6700
6701
|
1
|
|
6701
6702
|
/* TEXT */
|
|
6702
6703
|
)
|
|
@@ -6717,7 +6718,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6717
6718
|
B(
|
|
6718
6719
|
"div",
|
|
6719
6720
|
Th,
|
|
6720
|
-
|
|
6721
|
+
re(m(N)("告警等级:").value),
|
|
6721
6722
|
1
|
|
6722
6723
|
/* TEXT */
|
|
6723
6724
|
),
|
|
@@ -6727,7 +6728,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6727
6728
|
class: "alarm-msg-line-right alarm-content-object",
|
|
6728
6729
|
style: yn({ color: a.msgItem.color })
|
|
6729
6730
|
},
|
|
6730
|
-
|
|
6731
|
+
re(a.msgItem.alarmLevelName || ""),
|
|
6731
6732
|
5
|
|
6732
6733
|
/* TEXT, STYLE */
|
|
6733
6734
|
)
|
|
@@ -6736,14 +6737,14 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6736
6737
|
B(
|
|
6737
6738
|
"div",
|
|
6738
6739
|
Sh,
|
|
6739
|
-
|
|
6740
|
+
re(m(N)("告警对象:").value),
|
|
6740
6741
|
1
|
|
6741
6742
|
/* TEXT */
|
|
6742
6743
|
),
|
|
6743
6744
|
B(
|
|
6744
6745
|
"div",
|
|
6745
6746
|
kh,
|
|
6746
|
-
|
|
6747
|
+
re(a.msgItem.equipmentName || ""),
|
|
6747
6748
|
1
|
|
6748
6749
|
/* TEXT */
|
|
6749
6750
|
)
|
|
@@ -6752,14 +6753,14 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6752
6753
|
B(
|
|
6753
6754
|
"div",
|
|
6754
6755
|
Lh,
|
|
6755
|
-
|
|
6756
|
+
re(m(N)("告警内容:").value),
|
|
6756
6757
|
1
|
|
6757
6758
|
/* TEXT */
|
|
6758
6759
|
),
|
|
6759
6760
|
B(
|
|
6760
6761
|
"div",
|
|
6761
6762
|
$h,
|
|
6762
|
-
|
|
6763
|
+
re(a.msgItem.alarmContent || ""),
|
|
6763
6764
|
1
|
|
6764
6765
|
/* TEXT */
|
|
6765
6766
|
)
|
|
@@ -6773,8 +6774,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6773
6774
|
size: "middle"
|
|
6774
6775
|
}, {
|
|
6775
6776
|
default: x(() => [
|
|
6776
|
-
|
|
6777
|
-
|
|
6777
|
+
ye(
|
|
6778
|
+
re(m(N)("设备详情").value),
|
|
6778
6779
|
1
|
|
6779
6780
|
/* TEXT */
|
|
6780
6781
|
)
|
|
@@ -6790,8 +6791,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6790
6791
|
size: "middle"
|
|
6791
6792
|
}, {
|
|
6792
6793
|
default: x(() => [
|
|
6793
|
-
|
|
6794
|
-
|
|
6794
|
+
ye(
|
|
6795
|
+
re(m(N)("处理").value),
|
|
6795
6796
|
1
|
|
6796
6797
|
/* TEXT */
|
|
6797
6798
|
)
|
|
@@ -6861,7 +6862,7 @@ const Rh = () => {
|
|
|
6861
6862
|
class: "alarm-notify",
|
|
6862
6863
|
message: N("新告警").value,
|
|
6863
6864
|
placement: "bottomRight",
|
|
6864
|
-
description:
|
|
6865
|
+
description: he(Mh, {
|
|
6865
6866
|
msgItem: I,
|
|
6866
6867
|
alarmhandle: a.value,
|
|
6867
6868
|
onHanderDetail: d,
|
|
@@ -7027,15 +7028,15 @@ E("@das-fed/web");
|
|
|
7027
7028
|
const Uh = [
|
|
7028
7029
|
{
|
|
7029
7030
|
path: je,
|
|
7030
|
-
component: () => import("./index-
|
|
7031
|
+
component: () => import("./index-C05_ixnq.js")
|
|
7031
7032
|
},
|
|
7032
7033
|
{
|
|
7033
7034
|
path: ct,
|
|
7034
|
-
component: () => import("./index-
|
|
7035
|
+
component: () => import("./index-BoQTPXD7.js")
|
|
7035
7036
|
},
|
|
7036
7037
|
{
|
|
7037
7038
|
path: Cr,
|
|
7038
|
-
component: () => import("./index-
|
|
7039
|
+
component: () => import("./index-Cc80hpg5.js")
|
|
7039
7040
|
}
|
|
7040
7041
|
], Yg = {
|
|
7041
7042
|
routes: Uh,
|