@das-fed/web 6.4.0-hot.11 → 6.4.0-hot.13
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-C2wK2jqP.js → index-8HlxJQ9g.js} +1 -1
- package/{index-BJwswWWS.js → index-CQPfHEKY.js} +221 -224
- package/index-CQPfHEKY.js.gz +0 -0
- package/{index-BP7cXQkh.js → index-D-OlMFUt.js} +14 -14
- package/index-D-OlMFUt.js.gz +0 -0
- package/{index-5rGrbfK6.js → index-DF9gjxi9.js} +1 -1
- package/index-DF9gjxi9.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +4 -8
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +2 -2
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-BH85rnJz.js → index-B4xTjpsu.js} +14 -14
- package/packages/main-app-framework/index-B4xTjpsu.js.gz +0 -0
- package/packages/main-app-framework/{index-WKjtmtwT.js → index-CipaJ152.js} +1 -1
- package/packages/main-app-framework/{index-yzyUhkgm.js → index-DTA07pfH.js} +1 -1
- package/packages/main-app-framework/index-DTA07pfH.js.gz +0 -0
- package/packages/main-app-framework/{index-mG0hF64W.js → index-edOJkwgq.js} +206 -205
- package/packages/main-app-framework/index-edOJkwgq.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +4 -8
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/index-5rGrbfK6.js.gz +0 -0
- package/index-BJwswWWS.js.gz +0 -0
- package/index-BP7cXQkh.js.gz +0 -0
- package/packages/main-app-framework/index-BH85rnJz.js.gz +0 -0
- package/packages/main-app-framework/index-mG0hF64W.js.gz +0 -0
- package/packages/main-app-framework/index-yzyUhkgm.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";
|
|
@@ -207,14 +207,10 @@ const go = (t, e) => {
|
|
|
207
207
|
X.items = e;
|
|
208
208
|
},
|
|
209
209
|
appendItem: (t) => {
|
|
210
|
-
|
|
211
|
-
X.visible || (X.visible = !0), !X.items.find((n) => n.value == t.value) && X.items.push(t);
|
|
212
|
-
}, 200);
|
|
210
|
+
X.visible || (X.visible = !0), !X.items.find((n) => n.value == t.value) && X.items.push(t);
|
|
213
211
|
},
|
|
214
212
|
setActiveItem: (t) => {
|
|
215
|
-
|
|
216
|
-
X.activeItem = t;
|
|
217
|
-
}, 200);
|
|
213
|
+
X.activeItem = t;
|
|
218
214
|
},
|
|
219
215
|
setConfig: (t) => {
|
|
220
216
|
X.config = t;
|
|
@@ -538,7 +534,7 @@ const go = (t, e) => {
|
|
|
538
534
|
for (const [o, r] of e)
|
|
539
535
|
n[o] = r;
|
|
540
536
|
return n;
|
|
541
|
-
}, Pa = /* @__PURE__ */ be(ka, [["__scopeId", "data-v-
|
|
537
|
+
}, Pa = /* @__PURE__ */ be(ka, [["__scopeId", "data-v-3c2c943c"]]), La = { class: "das-web-app-container" }, $a = {
|
|
542
538
|
key: 0,
|
|
543
539
|
class: "das-web-app-header"
|
|
544
540
|
}, Da = { class: "das-web-app-main" }, Oa = {
|
|
@@ -586,8 +582,8 @@ const go = (t, e) => {
|
|
|
586
582
|
app: F
|
|
587
583
|
} = _;
|
|
588
584
|
ca(I);
|
|
589
|
-
let z = !0,
|
|
590
|
-
(C === !1 || T === !1 || T === "false") && (z = !1,
|
|
585
|
+
let z = !0, ae = !0, Ce = !0;
|
|
586
|
+
(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
587
|
}
|
|
592
588
|
);
|
|
593
589
|
const y = H(() => ({
|
|
@@ -601,9 +597,9 @@ const go = (t, e) => {
|
|
|
601
597
|
return g.has(_) ? C = g.get(_) : (C = {
|
|
602
598
|
name: _,
|
|
603
599
|
render() {
|
|
604
|
-
return
|
|
600
|
+
return he("div", { style: { width: "100%", height: "100%" } }, [he(A)]);
|
|
605
601
|
}
|
|
606
|
-
}, g.set(_, C)),
|
|
602
|
+
}, g.set(_, C)), he(C);
|
|
607
603
|
}, v = H(() => Je.visible.value);
|
|
608
604
|
return (A, _) => {
|
|
609
605
|
const C = ms("router-view");
|
|
@@ -624,7 +620,7 @@ const go = (t, e) => {
|
|
|
624
620
|
"div",
|
|
625
621
|
$a,
|
|
626
622
|
[
|
|
627
|
-
|
|
623
|
+
fe(A.$slots, "header", {}, void 0, !0)
|
|
628
624
|
],
|
|
629
625
|
512
|
|
630
626
|
/* NEED_PATCH */
|
|
@@ -636,7 +632,7 @@ const go = (t, e) => {
|
|
|
636
632
|
"div",
|
|
637
633
|
Oa,
|
|
638
634
|
[
|
|
639
|
-
|
|
635
|
+
fe(A.$slots, "aside", {}, void 0, !0)
|
|
640
636
|
],
|
|
641
637
|
512
|
|
642
638
|
/* NEED_PATCH */
|
|
@@ -648,7 +644,7 @@ const go = (t, e) => {
|
|
|
648
644
|
"div",
|
|
649
645
|
Ba,
|
|
650
646
|
[
|
|
651
|
-
|
|
647
|
+
fe(A.$slots, "tab", {}, void 0, !0)
|
|
652
648
|
],
|
|
653
649
|
512
|
|
654
650
|
/* NEED_PATCH */
|
|
@@ -660,7 +656,7 @@ const go = (t, e) => {
|
|
|
660
656
|
"div",
|
|
661
657
|
xa,
|
|
662
658
|
[
|
|
663
|
-
|
|
659
|
+
fe(A.$slots, "banner", {}, void 0, !0)
|
|
664
660
|
],
|
|
665
661
|
512
|
|
666
662
|
/* NEED_PATCH */
|
|
@@ -672,7 +668,7 @@ const go = (t, e) => {
|
|
|
672
668
|
"div",
|
|
673
669
|
ja,
|
|
674
670
|
[
|
|
675
|
-
|
|
671
|
+
fe(A.$slots, "router-view", {}, () => [
|
|
676
672
|
j(" 有动画 "),
|
|
677
673
|
A.needTransition ? ($(), V(C, { key: 0 }, {
|
|
678
674
|
default: x(({ Component: S }) => [
|
|
@@ -766,7 +762,7 @@ const go = (t, e) => {
|
|
|
766
762
|
"div",
|
|
767
763
|
Fa,
|
|
768
764
|
[
|
|
769
|
-
|
|
765
|
+
fe(A.$slots, "default", {}, void 0, !0)
|
|
770
766
|
],
|
|
771
767
|
512
|
|
772
768
|
/* NEED_PATCH */
|
|
@@ -780,7 +776,7 @@ const go = (t, e) => {
|
|
|
780
776
|
]);
|
|
781
777
|
};
|
|
782
778
|
}
|
|
783
|
-
}), Wg = /* @__PURE__ */ be(Va, [["__scopeId", "data-v-
|
|
779
|
+
}), Wg = /* @__PURE__ */ be(Va, [["__scopeId", "data-v-b6d7b17e"]]), Wa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], zg = /* @__PURE__ */ ne({
|
|
784
780
|
__name: "das-web-nav",
|
|
785
781
|
setup(t) {
|
|
786
782
|
const { nav: e } = Je, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((S) => S.fixed)), s = H(() => (e.items || []).filter((S) => !S.fixed)), a = H(() => {
|
|
@@ -909,11 +905,11 @@ const go = (t, e) => {
|
|
|
909
905
|
"on:toggleFullScreen": u
|
|
910
906
|
}), null, 16, qa)) : j("v-if", !0);
|
|
911
907
|
}
|
|
912
|
-
}), mo = E("/das-micro-app"),
|
|
908
|
+
}), mo = E("/das-micro-app"), de = E([]), Ht = E(!1), Qt = E([]), jt = E(!0);
|
|
913
909
|
let Te = null, Ee = null, rt = null;
|
|
914
910
|
const st = (t, e, n) => {
|
|
915
911
|
var r, s, a, c;
|
|
916
|
-
const o =
|
|
912
|
+
const o = de.value.find((l) => l.name === t);
|
|
917
913
|
if (o) {
|
|
918
914
|
if (o.entry.startsWith("/") || o.entry.match(location.origin)) {
|
|
919
915
|
(s = (r = o.dom) == null ? void 0 : r.contentWindow) == null || s.postMessage({ type: e, data: n });
|
|
@@ -965,7 +961,7 @@ const st = (t, e, n) => {
|
|
|
965
961
|
};
|
|
966
962
|
}, pn = async (t) => {
|
|
967
963
|
await Promise.all(
|
|
968
|
-
|
|
964
|
+
de.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
|
|
969
965
|
e.dom || await new Promise((o) => G(() => e.dom, o)), setTimeout(() => {
|
|
970
966
|
st(e.name, "sessionStorage", t), n(!0);
|
|
971
967
|
}, 0);
|
|
@@ -974,14 +970,14 @@ const st = (t, e, n) => {
|
|
|
974
970
|
}, ee = {
|
|
975
971
|
loadMicroApp: (t) => {
|
|
976
972
|
Ht.value = !0;
|
|
977
|
-
const e =
|
|
973
|
+
const e = de.value.find((a) => a.name === t), n = de.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
|
|
978
974
|
if (!o) {
|
|
979
975
|
n && (n.actived = !1);
|
|
980
976
|
return;
|
|
981
977
|
}
|
|
982
978
|
if (e.isFirstActived = !0, r) {
|
|
983
979
|
e.src = e.entry;
|
|
984
|
-
const a =
|
|
980
|
+
const a = de.value.find((c) => c.actived);
|
|
985
981
|
a && (a.actived = !1), e.loaded = !0, e.actived = !0;
|
|
986
982
|
return;
|
|
987
983
|
}
|
|
@@ -991,7 +987,7 @@ const st = (t, e, n) => {
|
|
|
991
987
|
}
|
|
992
988
|
},
|
|
993
989
|
hideMicroApp: async (t) => {
|
|
994
|
-
const e =
|
|
990
|
+
const e = de.value.find((n) => n.name === t);
|
|
995
991
|
e && e.loaded && (e.dom || await new Promise((n) => G(() => e.dom, n)), st(t, "router", {
|
|
996
992
|
cmd: "push",
|
|
997
993
|
route: {
|
|
@@ -1001,21 +997,21 @@ const st = (t, e, n) => {
|
|
|
1001
997
|
}));
|
|
1002
998
|
},
|
|
1003
999
|
hideAllMicroApp: () => {
|
|
1004
|
-
Ht.value = !1,
|
|
1000
|
+
Ht.value = !1, de.value.map((t) => {
|
|
1005
1001
|
t.actived = !1;
|
|
1006
1002
|
});
|
|
1007
1003
|
},
|
|
1008
1004
|
unloadMicroApp: (t) => {
|
|
1009
|
-
const e =
|
|
1005
|
+
const e = de.value.find((n) => n.name === t);
|
|
1010
1006
|
e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
|
|
1011
1007
|
},
|
|
1012
1008
|
unloadAllMicroApp: () => {
|
|
1013
|
-
Ht.value = !1,
|
|
1009
|
+
Ht.value = !1, de.value.map((t) => {
|
|
1014
1010
|
t.loaded = !1, t.actived = !1, t.dom = void 0;
|
|
1015
1011
|
});
|
|
1016
1012
|
},
|
|
1017
1013
|
setMicroAppRoute: async (t, e, n) => {
|
|
1018
|
-
const o =
|
|
1014
|
+
const o = de.value.find((c) => c.name === e);
|
|
1019
1015
|
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((c) => G(() => o.dom, c)), !o.actived)) return o;
|
|
1020
1016
|
const r = n.path || n, s = n.query || {}, a = n.params || {};
|
|
1021
1017
|
return t.push({
|
|
@@ -1075,11 +1071,11 @@ const st = (t, e, n) => {
|
|
|
1075
1071
|
}
|
|
1076
1072
|
},
|
|
1077
1073
|
reloadMicroAppRoute: async (t, e) => {
|
|
1078
|
-
const n =
|
|
1074
|
+
const n = de.value.find((o) => o.name === t);
|
|
1079
1075
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "reload", path: e })));
|
|
1080
1076
|
},
|
|
1081
1077
|
unloadMicroAppRoute: async (t, e) => {
|
|
1082
|
-
const n =
|
|
1078
|
+
const n = de.value.find((o) => o.name === t);
|
|
1083
1079
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
|
|
1084
1080
|
},
|
|
1085
1081
|
setMainAppLayoutVisible: (t) => {
|
|
@@ -1269,11 +1265,11 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1269
1265
|
onLoad: r
|
|
1270
1266
|
}, null, 40, di));
|
|
1271
1267
|
}
|
|
1272
|
-
}), fi = /* @__PURE__ */ be(pi, [["__scopeId", "data-v-
|
|
1268
|
+
}), fi = /* @__PURE__ */ be(pi, [["__scopeId", "data-v-8ae871f6"]]), hi = /* @__PURE__ */ ne({
|
|
1273
1269
|
__name: "das-micro-apps",
|
|
1274
1270
|
setup(t) {
|
|
1275
1271
|
const e = E(null), n = async (s, a) => {
|
|
1276
|
-
const c =
|
|
1272
|
+
const c = de.value.find((d) => d.name === a);
|
|
1277
1273
|
if (!c) return;
|
|
1278
1274
|
c.dom = s.target, await Qe(), await new Promise((d) => setTimeout(d, 50));
|
|
1279
1275
|
const l = () => {
|
|
@@ -1291,12 +1287,12 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1291
1287
|
ee.sendMessageToMicroApp(a, "resize", l());
|
|
1292
1288
|
}).observe(e.value), ee.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), ee.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
1293
1289
|
}, o = (s, a) => {
|
|
1294
|
-
const c =
|
|
1290
|
+
const c = de.value.find((u) => u.name === a);
|
|
1295
1291
|
if (!c) return;
|
|
1296
1292
|
const { dom: l, ...i } = c;
|
|
1297
1293
|
ee.sendMessageToMicroApp(a, "onActivated"), ee.triggerMicroAppLifeCycleListener("onActivated", i);
|
|
1298
1294
|
}, r = (s, a) => {
|
|
1299
|
-
const c =
|
|
1295
|
+
const c = de.value.find((u) => u.name === a);
|
|
1300
1296
|
if (!c) return;
|
|
1301
1297
|
const { dom: l, ...i } = c;
|
|
1302
1298
|
ee.sendMessageToMicroApp(a, "onDeactivated"), ee.triggerMicroAppLifeCycleListener("onDeactivated", i);
|
|
@@ -1312,7 +1308,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1312
1308
|
($(!0), W(
|
|
1313
1309
|
De,
|
|
1314
1310
|
null,
|
|
1315
|
-
Tt(m(
|
|
1311
|
+
Tt(m(de), (c) => ($(), W(
|
|
1316
1312
|
De,
|
|
1317
1313
|
null,
|
|
1318
1314
|
[
|
|
@@ -1339,7 +1335,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1339
1335
|
/* NEED_PATCH */
|
|
1340
1336
|
));
|
|
1341
1337
|
}
|
|
1342
|
-
}), gi = /* @__PURE__ */ be(hi, [["__scopeId", "data-v-
|
|
1338
|
+
}), gi = /* @__PURE__ */ be(hi, [["__scopeId", "data-v-3abdb1e9"]]), Kg = /* @__PURE__ */ ne({
|
|
1343
1339
|
__name: "das-main-app-layout",
|
|
1344
1340
|
props: {
|
|
1345
1341
|
transitionConfig: { default: () => {
|
|
@@ -1362,17 +1358,17 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1362
1358
|
"router-view-visible": n.value
|
|
1363
1359
|
}, r.value), {
|
|
1364
1360
|
header: x(() => [
|
|
1365
|
-
|
|
1361
|
+
fe(s.$slots, "header", {}, () => [
|
|
1366
1362
|
Q(m(sr))
|
|
1367
1363
|
])
|
|
1368
1364
|
]),
|
|
1369
1365
|
aside: x(() => [
|
|
1370
|
-
|
|
1366
|
+
fe(s.$slots, "aside", {}, () => [
|
|
1371
1367
|
Q(m(ar), { menuAttr: s.menuAttr }, null, 8, ["menuAttr"])
|
|
1372
1368
|
])
|
|
1373
1369
|
]),
|
|
1374
1370
|
tab: x(() => [
|
|
1375
|
-
|
|
1371
|
+
fe(s.$slots, "tab", {}, () => [
|
|
1376
1372
|
Q(m(ir), { tabsAttr: s.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1377
1373
|
])
|
|
1378
1374
|
]),
|
|
@@ -1394,7 +1390,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1394
1390
|
}
|
|
1395
1391
|
}), mi = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, Gg = (t, e) => {
|
|
1396
1392
|
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),
|
|
1393
|
+
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
1394
|
name: "das-micro-app",
|
|
1399
1395
|
path: `${mo.value}/:pathMatch(.*)*`,
|
|
1400
1396
|
component: _r,
|
|
@@ -1515,22 +1511,22 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1515
1511
|
}));
|
|
1516
1512
|
return (r, s) => ($(), V(m(Dn), $t({ "transition-config": n.value }, o.value), {
|
|
1517
1513
|
header: x(() => [
|
|
1518
|
-
|
|
1514
|
+
fe(r.$slots, "header", {}, () => [
|
|
1519
1515
|
Q(m(sr))
|
|
1520
1516
|
])
|
|
1521
1517
|
]),
|
|
1522
1518
|
aside: x(() => [
|
|
1523
|
-
|
|
1519
|
+
fe(r.$slots, "aside", {}, () => [
|
|
1524
1520
|
Q(m(ar), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
1525
1521
|
])
|
|
1526
1522
|
]),
|
|
1527
1523
|
tab: x(() => [
|
|
1528
|
-
|
|
1524
|
+
fe(r.$slots, "tab", {}, () => [
|
|
1529
1525
|
Q(m(ir), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1530
1526
|
])
|
|
1531
1527
|
]),
|
|
1532
1528
|
banner: x(() => [
|
|
1533
|
-
|
|
1529
|
+
fe(r.$slots, "banner")
|
|
1534
1530
|
]),
|
|
1535
1531
|
_: 3
|
|
1536
1532
|
/* FORWARDED */
|
|
@@ -1611,13 +1607,13 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1611
1607
|
height: r.value
|
|
1612
1608
|
}, {
|
|
1613
1609
|
default: x(() => [
|
|
1614
|
-
|
|
1610
|
+
fe(y.$slots, "default", {}, void 0, !0)
|
|
1615
1611
|
]),
|
|
1616
1612
|
_: 3
|
|
1617
1613
|
/* FORWARDED */
|
|
1618
1614
|
}, 8, ["font", "content", "width", "height"]));
|
|
1619
1615
|
}
|
|
1620
|
-
}), _i = /* @__PURE__ */ be(wi, [["__scopeId", "data-v-
|
|
1616
|
+
}), _i = /* @__PURE__ */ be(wi, [["__scopeId", "data-v-dacc9554"]]), bi = {
|
|
1621
1617
|
"--menu-tip-diaolg-content": "#212121",
|
|
1622
1618
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
1623
1619
|
"--menu-tip-diaolg-info": "#999999"
|
|
@@ -1650,7 +1646,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1650
1646
|
onClick: n.closeCallback
|
|
1651
1647
|
}, {
|
|
1652
1648
|
default: x(() => o[2] || (o[2] = [
|
|
1653
|
-
|
|
1649
|
+
ye("我知道了")
|
|
1654
1650
|
])),
|
|
1655
1651
|
_: 1
|
|
1656
1652
|
/* STABLE */
|
|
@@ -1680,8 +1676,8 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1680
1676
|
key: s,
|
|
1681
1677
|
class: "desc-item"
|
|
1682
1678
|
}, [
|
|
1683
|
-
|
|
1684
|
-
|
|
1679
|
+
ye(
|
|
1680
|
+
re(r),
|
|
1685
1681
|
1
|
|
1686
1682
|
/* TEXT */
|
|
1687
1683
|
)
|
|
@@ -1700,10 +1696,10 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1700
1696
|
/* STABLE */
|
|
1701
1697
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
1702
1698
|
}
|
|
1703
|
-
}), Ei = /* @__PURE__ */ be(Ti, [["__scopeId", "data-v-
|
|
1699
|
+
}), Ei = /* @__PURE__ */ be(Ti, [["__scopeId", "data-v-72bc9a80"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
|
|
1704
1700
|
const r = document.createElement("div");
|
|
1705
1701
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1706
|
-
const a =
|
|
1702
|
+
const a = he(Ei, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1707
1703
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
1708
1704
|
} });
|
|
1709
1705
|
Vt(a, r);
|
|
@@ -1729,8 +1725,8 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1729
1725
|
sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
|
|
1730
1726
|
}, Oi = () => {
|
|
1731
1727
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
1732
|
-
},
|
|
1733
|
-
let e =
|
|
1728
|
+
}, Ae = (t) => {
|
|
1729
|
+
let e = ve();
|
|
1734
1730
|
t.forEach((n) => {
|
|
1735
1731
|
var o;
|
|
1736
1732
|
if (n.key.startsWith("tabMap")) {
|
|
@@ -2457,7 +2453,7 @@ const Kt = (t, e = "") => {
|
|
|
2457
2453
|
}, $n = (t) => {
|
|
2458
2454
|
const e = J().subAppList ?? [];
|
|
2459
2455
|
let { index: n, target: o } = kd(e, t);
|
|
2460
|
-
return e.splice(n, 1), e.length ? Se([{ key: "subAppList", value: e }]) : Fn(),
|
|
2456
|
+
return e.splice(n, 1), e.length ? Se([{ key: "subAppList", value: e }]) : Fn(), Ae([
|
|
2461
2457
|
{ key: "currentCode", value: "" },
|
|
2462
2458
|
{ key: "currentTab", value: {} },
|
|
2463
2459
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2468,9 +2464,9 @@ const Kt = (t, e = "") => {
|
|
|
2468
2464
|
return { left: o, right: r };
|
|
2469
2465
|
}, Ld = (t, e, n) => {
|
|
2470
2466
|
var f;
|
|
2471
|
-
const o = Oe(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((f =
|
|
2467
|
+
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
2468
|
if (!a.length && !c.length || !l.length)
|
|
2473
|
-
return
|
|
2469
|
+
return Ae([
|
|
2474
2470
|
{ key: "currentCode", value: "" },
|
|
2475
2471
|
{ key: "currentTab", value: {} },
|
|
2476
2472
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2485,7 +2481,7 @@ const Kt = (t, e = "") => {
|
|
|
2485
2481
|
const d = a.reverse().find((h) => l.map((b) => b.code).includes(h.code));
|
|
2486
2482
|
d && (i = d);
|
|
2487
2483
|
}
|
|
2488
|
-
return i ? (
|
|
2484
|
+
return i ? (Ae([
|
|
2489
2485
|
{
|
|
2490
2486
|
key: "currentCode",
|
|
2491
2487
|
value: i.code
|
|
@@ -2499,7 +2495,7 @@ const Kt = (t, e = "") => {
|
|
|
2499
2495
|
value: i
|
|
2500
2496
|
},
|
|
2501
2497
|
{ key: `tabMap:${t}`, value: l }
|
|
2502
|
-
]), Er(i.code), { currentMenu: o.find((d) => d.code === i.code), currentTab: i }) : (
|
|
2498
|
+
]), Er(i.code), { currentMenu: o.find((d) => d.code === i.code), currentTab: i }) : (Ae([
|
|
2503
2499
|
{ key: `preTab:${t}`, value: {} },
|
|
2504
2500
|
{ key: `tabMap:${t}`, value: [] }
|
|
2505
2501
|
]), $n(t));
|
|
@@ -2549,12 +2545,12 @@ const Kt = (t, e = "") => {
|
|
|
2549
2545
|
}
|
|
2550
2546
|
}
|
|
2551
2547
|
if (s && a) {
|
|
2552
|
-
const p = (
|
|
2548
|
+
const p = (ve().tabMap ?? {})[e.code] ?? [];
|
|
2553
2549
|
if (p.length) {
|
|
2554
2550
|
const v = p.filter(
|
|
2555
2551
|
(A) => n && n === A.code || o && o === `/${A.applicationPath}${A.path}`.replace(/\/\//g, "/") || Oe(l).map((_) => _.code).includes(A.code)
|
|
2556
2552
|
);
|
|
2557
|
-
|
|
2553
|
+
Ae([
|
|
2558
2554
|
{
|
|
2559
2555
|
key: `tabMap:${e.code}`,
|
|
2560
2556
|
value: v
|
|
@@ -2608,7 +2604,7 @@ const Kt = (t, e = "") => {
|
|
|
2608
2604
|
path: f.routeUrl,
|
|
2609
2605
|
query: v
|
|
2610
2606
|
};
|
|
2611
|
-
|
|
2607
|
+
Ae([
|
|
2612
2608
|
{
|
|
2613
2609
|
key: "currentCode",
|
|
2614
2610
|
value: f.code
|
|
@@ -2697,7 +2693,7 @@ const Kt = (t, e = "") => {
|
|
|
2697
2693
|
style: { "margin-right": "12px" }
|
|
2698
2694
|
}, {
|
|
2699
2695
|
default: x(() => u[6] || (u[6] = [
|
|
2700
|
-
|
|
2696
|
+
ye("取消")
|
|
2701
2697
|
])),
|
|
2702
2698
|
_: 1
|
|
2703
2699
|
/* STABLE */
|
|
@@ -2709,7 +2705,7 @@ const Kt = (t, e = "") => {
|
|
|
2709
2705
|
onClick: l
|
|
2710
2706
|
}, {
|
|
2711
2707
|
default: x(() => u[7] || (u[7] = [
|
|
2712
|
-
|
|
2708
|
+
ye("确定")
|
|
2713
2709
|
])),
|
|
2714
2710
|
_: 1
|
|
2715
2711
|
/* STABLE */
|
|
@@ -2721,7 +2717,7 @@ const Kt = (t, e = "") => {
|
|
|
2721
2717
|
B(
|
|
2722
2718
|
"p",
|
|
2723
2719
|
Gd,
|
|
2724
|
-
|
|
2720
|
+
re(m(N)("侧边菜单栏").value),
|
|
2725
2721
|
1
|
|
2726
2722
|
/* TEXT */
|
|
2727
2723
|
),
|
|
@@ -2739,8 +2735,8 @@ const Kt = (t, e = "") => {
|
|
|
2739
2735
|
onChange: u[1] || (u[1] = (f) => c(1))
|
|
2740
2736
|
}, {
|
|
2741
2737
|
default: x(() => [
|
|
2742
|
-
|
|
2743
|
-
|
|
2738
|
+
ye(
|
|
2739
|
+
re(m(N)("弹出式菜单栏").value),
|
|
2744
2740
|
1
|
|
2745
2741
|
/* TEXT */
|
|
2746
2742
|
)
|
|
@@ -2762,8 +2758,8 @@ const Kt = (t, e = "") => {
|
|
|
2762
2758
|
onChange: u[3] || (u[3] = (f) => c(2))
|
|
2763
2759
|
}, {
|
|
2764
2760
|
default: x(() => [
|
|
2765
|
-
|
|
2766
|
-
|
|
2761
|
+
ye(
|
|
2762
|
+
re(m(N)("内嵌式菜单栏").value),
|
|
2767
2763
|
1
|
|
2768
2764
|
/* TEXT */
|
|
2769
2765
|
)
|
|
@@ -2780,7 +2776,7 @@ const Kt = (t, e = "") => {
|
|
|
2780
2776
|
}, 8, ["title", "modelValue"])
|
|
2781
2777
|
]));
|
|
2782
2778
|
}
|
|
2783
|
-
}), rp = /* @__PURE__ */ be(op, [["__scopeId", "data-v-
|
|
2779
|
+
}), rp = /* @__PURE__ */ be(op, [["__scopeId", "data-v-760eb710"]]), sp = () => E(null), ap = Rn.get("/login/history"), ip = () => {
|
|
2784
2780
|
const t = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((l) => new RegExp(`^${l}$`, "i").test(location.pathname)), e = (a) => {
|
|
2785
2781
|
const { browserLogoImgHost: c = "", browserLogoImg: l = "" } = a || {}, i = l ? c + On(l) : "";
|
|
2786
2782
|
Di(i), Qs(i);
|
|
@@ -2790,13 +2786,13 @@ const Kt = (t, e = "") => {
|
|
|
2790
2786
|
key: "loginTip",
|
|
2791
2787
|
message: "上次登录信息",
|
|
2792
2788
|
placement: "bottomRight",
|
|
2793
|
-
description:
|
|
2794
|
-
|
|
2789
|
+
description: he("div", { class: "last-login-info" }, [
|
|
2790
|
+
he(
|
|
2795
2791
|
"div",
|
|
2796
2792
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
2797
2793
|
"时间:" + js(c.lastModificationTime)
|
|
2798
2794
|
),
|
|
2799
|
-
|
|
2795
|
+
he("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + c.ip)
|
|
2800
2796
|
])
|
|
2801
2797
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
2802
2798
|
}, o = async () => {
|
|
@@ -2922,7 +2918,7 @@ const Kt = (t, e = "") => {
|
|
|
2922
2918
|
var i;
|
|
2923
2919
|
const s = J();
|
|
2924
2920
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
2925
|
-
const l = (
|
|
2921
|
+
const l = (ve().tabMap[r.code] ?? []).map((u) => u.code);
|
|
2926
2922
|
l && l.length && Ut(r.code, l), e(r);
|
|
2927
2923
|
});
|
|
2928
2924
|
const { enter: o } = ht();
|
|
@@ -2940,7 +2936,7 @@ const Kt = (t, e = "") => {
|
|
|
2940
2936
|
c = dt(p.path), l = dt(p.query);
|
|
2941
2937
|
const _ = J().currentSubAppCode ?? "";
|
|
2942
2938
|
if (!_) return;
|
|
2943
|
-
const C = ((T = p.query) == null ? void 0 : T.menu) ?? ((D =
|
|
2939
|
+
const C = ((T = p.query) == null ? void 0 : T.menu) ?? ((D = ve()) == null ? void 0 : D.currentCode) ?? "";
|
|
2944
2940
|
if (!C) return;
|
|
2945
2941
|
const S = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
2946
2942
|
S && JSON.stringify(S) !== "{}" && (r.value = (O = S[_][C]) != null && O.fontColor ? S[_][C].fontColor : e, s.value = (F = S[_][C]) != null && F.backgroundColor ? S[_][C].backgroundColor : n, a.value = (z = S[_][C]) != null && z.backgroundColor ? S[_][C].backgroundColor : o);
|
|
@@ -2948,7 +2944,7 @@ const Kt = (t, e = "") => {
|
|
|
2948
2944
|
);
|
|
2949
2945
|
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: f, unloadRoute: d } = es(), h = (p) => {
|
|
2950
2946
|
var C;
|
|
2951
|
-
const v = Oe(zt(p.applicationCode)).find((S) => S.code === p.code), _ = (((C =
|
|
2947
|
+
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
2948
|
u({ currentMenu: v, route: { path: _.path, query: _.query ?? {} } });
|
|
2953
2949
|
}, b = (p) => {
|
|
2954
2950
|
if (!p || !p.length) return;
|
|
@@ -2957,11 +2953,11 @@ const Kt = (t, e = "") => {
|
|
|
2957
2953
|
}, y = (p) => {
|
|
2958
2954
|
const v = J().currentSubAppCode ?? "";
|
|
2959
2955
|
ce.innerSet = !0;
|
|
2960
|
-
const A =
|
|
2956
|
+
const A = ve(), _ = A.tabMap[v], C = _.findIndex((O) => O.code === p.data.code);
|
|
2961
2957
|
if (C === -1) return;
|
|
2962
2958
|
const S = () => {
|
|
2963
2959
|
var z;
|
|
2964
|
-
let F = (((z = J().appcategorys) == null ? void 0 : z.map((
|
|
2960
|
+
let F = (((z = J().appcategorys) == null ? void 0 : z.map((ae) => ae.apps).flat()) ?? []).find((ae) => ae.code === v);
|
|
2965
2961
|
F = { ...F, value: F.code, label: F.name }, i(F), R.nav.removeItem(v);
|
|
2966
2962
|
};
|
|
2967
2963
|
({
|
|
@@ -2972,7 +2968,7 @@ const Kt = (t, e = "") => {
|
|
|
2972
2968
|
}
|
|
2973
2969
|
const F = A.currentCode;
|
|
2974
2970
|
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]),
|
|
2971
|
+
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
2972
|
},
|
|
2977
2973
|
all: S,
|
|
2978
2974
|
other: async (O) => {
|
|
@@ -2981,8 +2977,8 @@ const Kt = (t, e = "") => {
|
|
|
2981
2977
|
path: `/${F.applicationPath}${F.path}`.replace(/\/\//g, "/"),
|
|
2982
2978
|
query: F.query
|
|
2983
2979
|
}), R.menu.setActiveItem(F.menuId), R.tab.setActiveItem(F.code);
|
|
2984
|
-
const z = _.filter((
|
|
2985
|
-
z.forEach((
|
|
2980
|
+
const z = _.filter((ae) => ae.code !== O.value);
|
|
2981
|
+
z.forEach((ae) => R.tab.removeItem(ae.code)), b(z), Ae([{ key: `tabMap:${v}`, value: [F] }]), h(F);
|
|
2986
2982
|
},
|
|
2987
2983
|
right: async (O) => {
|
|
2988
2984
|
const F = A.currentCode;
|
|
@@ -2991,18 +2987,18 @@ const Kt = (t, e = "") => {
|
|
|
2991
2987
|
h(Ce);
|
|
2992
2988
|
}
|
|
2993
2989
|
const z = _.slice(C + 1);
|
|
2994
|
-
z.forEach((
|
|
2990
|
+
z.forEach((ae) => R.tab.removeItem(ae.code)), b(z), _.splice(C + 1), Ae([{ key: `tabMap:${v}`, value: _ }]);
|
|
2995
2991
|
}
|
|
2996
2992
|
})[p.type](p.data);
|
|
2997
2993
|
};
|
|
2998
2994
|
R.tab.addEventListener("onItemClick", async (p) => {
|
|
2999
|
-
|
|
2995
|
+
ve().currentCode !== p.currentCode && (ce.innerSet = !0, h(p));
|
|
3000
2996
|
}), R.tab.addEventListener("onItemRemove", (p) => {
|
|
3001
|
-
const v =
|
|
2997
|
+
const v = ve(), A = J().currentSubAppCode ?? "";
|
|
3002
2998
|
v.tabMap[A].findIndex((S) => S.code === p.code) !== -1 && (Ut(p.applicationCode, [p.code]), y({ type: "me", data: p }));
|
|
3003
2999
|
}), R.tab.addEventListener("onMenuClick", (p) => {
|
|
3004
3000
|
let v = [];
|
|
3005
|
-
const A =
|
|
3001
|
+
const A = ve().tabMap[p.applicationCode] ?? [];
|
|
3006
3002
|
if (p.type.key === "right") {
|
|
3007
3003
|
const _ = A.findIndex((C) => C.code === p.data.value);
|
|
3008
3004
|
v = A.slice(_ + 1);
|
|
@@ -3065,11 +3061,11 @@ const Kt = (t, e = "") => {
|
|
|
3065
3061
|
const A = { ...d, menus: g, originalMenus: p };
|
|
3066
3062
|
return Se([{ key: "subAppList", value: A }]), !0;
|
|
3067
3063
|
}, i = async (d) => {
|
|
3068
|
-
var F, z,
|
|
3064
|
+
var F, z, ae, Ce, Rt;
|
|
3069
3065
|
const { microApp: h = null, menuCode: b = "", menuPath: y = "", route: g = {} } = d;
|
|
3070
3066
|
let p = g;
|
|
3071
3067
|
if (!h && y) {
|
|
3072
|
-
if (c(), !(a && a.find((
|
|
3068
|
+
if (c(), !(a && a.find((ie) => y.startsWith("/" + ie) || y.startsWith(ie)))) return;
|
|
3073
3069
|
await t.push({ path: y, query: p.query });
|
|
3074
3070
|
return;
|
|
3075
3071
|
}
|
|
@@ -3079,26 +3075,26 @@ const Kt = (t, e = "") => {
|
|
|
3079
3075
|
const _ = (h == null ? void 0 : h.openType) ?? 1, C = (h == null ? void 0 : h.type) ?? 1;
|
|
3080
3076
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
3081
3077
|
c();
|
|
3082
|
-
const
|
|
3083
|
-
if ((
|
|
3078
|
+
const pe = ((ae = J()) == null ? void 0 : ae.subAppList) ?? [];
|
|
3079
|
+
if ((pe == null ? void 0 : pe.find((ue) => ue.code === h.code)) || pe == null || pe.push(h), Se([
|
|
3084
3080
|
{ key: "currentSubApp", value: h },
|
|
3085
3081
|
{ key: "currentSubAppCode", value: h.code },
|
|
3086
|
-
{ key: "subAppList", value:
|
|
3087
|
-
]),
|
|
3088
|
-
const ze = { ...
|
|
3082
|
+
{ key: "subAppList", value: pe }
|
|
3083
|
+
]), pe.forEach((ue) => {
|
|
3084
|
+
const ze = { ...ue, value: ue.code, label: ue.name };
|
|
3089
3085
|
R.nav.appendItem(ze);
|
|
3090
3086
|
}), R.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
3091
3087
|
await t.push({ path: h.routeUrl, query: { ...p.query, app: h.code } });
|
|
3092
3088
|
return;
|
|
3093
3089
|
}
|
|
3094
3090
|
if (_ === 1 && C === 2) {
|
|
3095
|
-
const
|
|
3091
|
+
const ue = En(_n(bn(h.routeUrl)));
|
|
3096
3092
|
await t.push({
|
|
3097
3093
|
path: ct,
|
|
3098
3094
|
query: {
|
|
3099
3095
|
...p.query,
|
|
3100
3096
|
app: h.code,
|
|
3101
|
-
iframeSrc:
|
|
3097
|
+
iframeSrc: ue
|
|
3102
3098
|
}
|
|
3103
3099
|
});
|
|
3104
3100
|
return;
|
|
@@ -3117,8 +3113,8 @@ const Kt = (t, e = "") => {
|
|
|
3117
3113
|
meta: { ...(p == null ? void 0 : p.meta) ?? {} }
|
|
3118
3114
|
}), P && (P == null ? void 0 : P.code) !== (h == null ? void 0 : h.code)) {
|
|
3119
3115
|
if (P.fixed && (await t.push(P.path), c(), R.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3120
|
-
const
|
|
3121
|
-
await i({ microApp:
|
|
3116
|
+
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) ?? {} };
|
|
3117
|
+
await i({ microApp: pe, menuCode: (ie == null ? void 0 : ie.code) ?? "", route: { query: ue } });
|
|
3122
3118
|
}
|
|
3123
3119
|
return;
|
|
3124
3120
|
}
|
|
@@ -3133,35 +3129,36 @@ const Kt = (t, e = "") => {
|
|
|
3133
3129
|
});
|
|
3134
3130
|
return;
|
|
3135
3131
|
}
|
|
3136
|
-
if (v && A) {
|
|
3137
|
-
(Rt = J().subAppList) == null || Rt.forEach((
|
|
3138
|
-
const
|
|
3139
|
-
R.nav.appendItem(
|
|
3132
|
+
if (e({ currentMenu: I, microPath: T, route: p }), v && A) {
|
|
3133
|
+
(Rt = J().subAppList) == null || Rt.forEach((ie) => {
|
|
3134
|
+
const ue = { ...ie, value: ie.code, label: ie.name };
|
|
3135
|
+
R.nav.appendItem(ue);
|
|
3140
3136
|
}), R.nav.setActiveItem(O.code), R.menu.setItems(S);
|
|
3141
|
-
const
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
...
|
|
3145
|
-
value:
|
|
3146
|
-
label:
|
|
3147
|
-
});
|
|
3148
|
-
|
|
3137
|
+
const pe = ve().tabMap[O.code] ?? [];
|
|
3138
|
+
if (pe.length) {
|
|
3139
|
+
const ie = pe.map((ue) => ({
|
|
3140
|
+
...ue,
|
|
3141
|
+
value: ue.code,
|
|
3142
|
+
label: ue.name
|
|
3143
|
+
})) || [];
|
|
3144
|
+
R.tab.setItems(ie);
|
|
3145
|
+
} else
|
|
3146
|
+
R.tab.setItems([]);
|
|
3149
3147
|
}
|
|
3150
|
-
e({ currentMenu: I, microPath: T, route: p });
|
|
3151
3148
|
}, u = async (d) => {
|
|
3152
3149
|
var h;
|
|
3153
3150
|
if (ce.innerSet = !0, d.fixed) {
|
|
3154
3151
|
await t.push(d.path), R.menu.setItems([]), R.tab.setItems([]), R.nav.setActiveItem(d.path), Se([
|
|
3155
3152
|
{ key: "currentSubAppCode", value: "" },
|
|
3156
3153
|
{ key: "currentSubApp", value: {} }
|
|
3157
|
-
]),
|
|
3154
|
+
]), Ae([
|
|
3158
3155
|
{ key: "currentCode", value: "" },
|
|
3159
3156
|
{ key: "currentTab", value: {} }
|
|
3160
3157
|
]);
|
|
3161
3158
|
return;
|
|
3162
3159
|
}
|
|
3163
3160
|
if (!d.fixed) {
|
|
3164
|
-
const b = (h = J().subAppList) == null ? void 0 : h.find((v) => v.code === d.code), y =
|
|
3161
|
+
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
3162
|
await i({ microApp: b, menuCode: g, route: { query: p } });
|
|
3166
3163
|
}
|
|
3167
3164
|
};
|
|
@@ -3175,13 +3172,13 @@ const Kt = (t, e = "") => {
|
|
|
3175
3172
|
if (!((p = h.subAppList) != null && p.length)) return;
|
|
3176
3173
|
const b = h.subAppList.findIndex((v) => v.code === d.code);
|
|
3177
3174
|
if (b === -1) return;
|
|
3178
|
-
const y =
|
|
3175
|
+
const y = ve().tabMap[d.code] ?? [];
|
|
3179
3176
|
if (y.length) {
|
|
3180
3177
|
const v = y.map((A) => A.path);
|
|
3181
3178
|
n(v);
|
|
3182
3179
|
}
|
|
3183
3180
|
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 }]),
|
|
3181
|
+
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
3182
|
{ key: `preTab:${d.code}`, value: {} },
|
|
3186
3183
|
{ key: `tabMap:${d.code}`, value: [] }
|
|
3187
3184
|
]), g) {
|
|
@@ -3241,7 +3238,7 @@ const Kt = (t, e = "") => {
|
|
|
3241
3238
|
...g,
|
|
3242
3239
|
value: g.code,
|
|
3243
3240
|
label: g.name
|
|
3244
|
-
}), R.tab.setActiveItem(a.code), R.menu.setActiveItem(a.id), Er(a.code),
|
|
3241
|
+
}), R.tab.setActiveItem(a.code), R.menu.setActiveItem(a.id), Er(a.code), Ae([
|
|
3245
3242
|
{
|
|
3246
3243
|
key: "currentCode",
|
|
3247
3244
|
value: a.code
|
|
@@ -3303,7 +3300,7 @@ const Kt = (t, e = "") => {
|
|
|
3303
3300
|
(D) => v === D.code || p.includes(D.code)
|
|
3304
3301
|
);
|
|
3305
3302
|
Se([{ key: "subAppList", value: T }]), I && I.length && I.forEach((D) => {
|
|
3306
|
-
|
|
3303
|
+
Ae([
|
|
3307
3304
|
{ key: `preTab:${D.code}`, value: {} },
|
|
3308
3305
|
{ key: `tabMap:${D.code}`, value: [] }
|
|
3309
3306
|
]);
|
|
@@ -3315,7 +3312,7 @@ const Kt = (t, e = "") => {
|
|
|
3315
3312
|
const { currentApp: T } = $n(d.query.app);
|
|
3316
3313
|
if (T) {
|
|
3317
3314
|
I = T;
|
|
3318
|
-
const O = (
|
|
3315
|
+
const O = (ve().preTab ?? {})[I.code];
|
|
3319
3316
|
d = {}, O && (d.path = `/${O.applicationPath}${O.path}`.replace(/\/\//g, "/"), d.query = O.query);
|
|
3320
3317
|
}
|
|
3321
3318
|
}
|
|
@@ -3347,7 +3344,7 @@ const Kt = (t, e = "") => {
|
|
|
3347
3344
|
I && (R.nav.setActiveItem(I.path), R.menu.setItems([]), R.tab.setItems([]), Se([
|
|
3348
3345
|
{ key: "currentSubAppCode", value: "" },
|
|
3349
3346
|
{ key: "currentSubApp", value: {} }
|
|
3350
|
-
]),
|
|
3347
|
+
]), Ae([
|
|
3351
3348
|
{ key: "currentCode", value: "" },
|
|
3352
3349
|
{ key: "currentTab", value: {} }
|
|
3353
3350
|
]));
|
|
@@ -3565,16 +3562,16 @@ const Kt = (t, e = "") => {
|
|
|
3565
3562
|
class: "message-center-notify",
|
|
3566
3563
|
message: i.title,
|
|
3567
3564
|
top: "55px",
|
|
3568
|
-
description:
|
|
3565
|
+
description: he("div", {}, [
|
|
3569
3566
|
// 标题
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3567
|
+
he("div", { class: "custom-title" }, [
|
|
3568
|
+
he(qe, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
|
|
3569
|
+
he("div", { class: "title" }, i.title)
|
|
3573
3570
|
]),
|
|
3574
3571
|
// 内容
|
|
3575
|
-
|
|
3572
|
+
he("div", { class: "custom-content" }, i.content),
|
|
3576
3573
|
// 底部按钮
|
|
3577
|
-
i.title !== "密码更新提醒" ?
|
|
3574
|
+
i.title !== "密码更新提醒" ? he(
|
|
3578
3575
|
"div",
|
|
3579
3576
|
{
|
|
3580
3577
|
class: "footer-btn",
|
|
@@ -3621,7 +3618,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3621
3618
|
emits: ["itemClick"],
|
|
3622
3619
|
setup(t, { emit: e }) {
|
|
3623
3620
|
Cs((u) => ({
|
|
3624
|
-
"
|
|
3621
|
+
"23bfa220": i.value
|
|
3625
3622
|
}));
|
|
3626
3623
|
const n = t, o = e, r = E(), { toggle: s, isFullscreen: a } = ht(r), c = () => {
|
|
3627
3624
|
r.value != document.fullscreenElement && (a.value ? (a.value = !1, Qe(() => {
|
|
@@ -3640,13 +3637,13 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3640
3637
|
onClick: f[1] || (f[1] = (d) => l())
|
|
3641
3638
|
},
|
|
3642
3639
|
[
|
|
3643
|
-
|
|
3640
|
+
fe(u.$slots, "default", {}, void 0, !0)
|
|
3644
3641
|
],
|
|
3645
3642
|
34
|
|
3646
3643
|
/* CLASS, NEED_HYDRATION */
|
|
3647
3644
|
));
|
|
3648
3645
|
}
|
|
3649
|
-
}), xp = /* @__PURE__ */ be(Rp, [["__scopeId", "data-v-
|
|
3646
|
+
}), xp = /* @__PURE__ */ be(Rp, [["__scopeId", "data-v-68946aef"]]), Qp = { class: "layout-wrapper" }, jp = /* @__PURE__ */ ne({
|
|
3650
3647
|
__name: "GridLayout",
|
|
3651
3648
|
props: {
|
|
3652
3649
|
gridNum: {},
|
|
@@ -3669,7 +3666,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3669
3666
|
onItemClick: (i) => r(l)
|
|
3670
3667
|
}, {
|
|
3671
3668
|
default: x(() => [
|
|
3672
|
-
s.showFn(l) ?
|
|
3669
|
+
s.showFn(l) ? fe(s.$slots, "default", {
|
|
3673
3670
|
key: 0,
|
|
3674
3671
|
index: l
|
|
3675
3672
|
}, void 0, !0) : j("v-if", !0)
|
|
@@ -3682,7 +3679,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3682
3679
|
))
|
|
3683
3680
|
]));
|
|
3684
3681
|
}
|
|
3685
|
-
}), Np = /* @__PURE__ */ be(jp, [["__scopeId", "data-v-
|
|
3682
|
+
}), Np = /* @__PURE__ */ be(jp, [["__scopeId", "data-v-22baf4d8"]]), Hp = /* @__PURE__ */ ne({
|
|
3686
3683
|
__name: "DirectionControl",
|
|
3687
3684
|
emits: ["change"],
|
|
3688
3685
|
setup(t, { emit: e }) {
|
|
@@ -3696,7 +3693,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3696
3693
|
onDblclick: s[9] || (s[9] = le((a) => a.stopPropagation(), ["stop"]))
|
|
3697
3694
|
},
|
|
3698
3695
|
[
|
|
3699
|
-
Q(m(
|
|
3696
|
+
Q(m(me), { content: "左上" }, {
|
|
3700
3697
|
default: x(() => [
|
|
3701
3698
|
B("div", {
|
|
3702
3699
|
class: "icon icon-top-left",
|
|
@@ -3706,7 +3703,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3706
3703
|
_: 1
|
|
3707
3704
|
/* STABLE */
|
|
3708
3705
|
}),
|
|
3709
|
-
Q(m(
|
|
3706
|
+
Q(m(me), { content: "上" }, {
|
|
3710
3707
|
default: x(() => [
|
|
3711
3708
|
B("div", {
|
|
3712
3709
|
class: "icon icon-top",
|
|
@@ -3716,7 +3713,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3716
3713
|
_: 1
|
|
3717
3714
|
/* STABLE */
|
|
3718
3715
|
}),
|
|
3719
|
-
Q(m(
|
|
3716
|
+
Q(m(me), { content: "右上" }, {
|
|
3720
3717
|
default: x(() => [
|
|
3721
3718
|
B("div", {
|
|
3722
3719
|
class: "icon icon-top-right",
|
|
@@ -3726,7 +3723,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3726
3723
|
_: 1
|
|
3727
3724
|
/* STABLE */
|
|
3728
3725
|
}),
|
|
3729
|
-
Q(m(
|
|
3726
|
+
Q(m(me), { content: "左" }, {
|
|
3730
3727
|
default: x(() => [
|
|
3731
3728
|
B("div", {
|
|
3732
3729
|
class: "icon icon-left",
|
|
@@ -3736,7 +3733,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3736
3733
|
_: 1
|
|
3737
3734
|
/* STABLE */
|
|
3738
3735
|
}),
|
|
3739
|
-
Q(m(
|
|
3736
|
+
Q(m(me), { content: "自动" }, {
|
|
3740
3737
|
default: x(() => [
|
|
3741
3738
|
B("div", {
|
|
3742
3739
|
class: "icon icon-auto",
|
|
@@ -3746,7 +3743,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3746
3743
|
_: 1
|
|
3747
3744
|
/* STABLE */
|
|
3748
3745
|
}),
|
|
3749
|
-
Q(m(
|
|
3746
|
+
Q(m(me), { content: "右" }, {
|
|
3750
3747
|
default: x(() => [
|
|
3751
3748
|
B("div", {
|
|
3752
3749
|
class: "icon icon-right",
|
|
@@ -3756,7 +3753,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3756
3753
|
_: 1
|
|
3757
3754
|
/* STABLE */
|
|
3758
3755
|
}),
|
|
3759
|
-
Q(m(
|
|
3756
|
+
Q(m(me), { content: "左下" }, {
|
|
3760
3757
|
default: x(() => [
|
|
3761
3758
|
B("div", {
|
|
3762
3759
|
class: "icon icon-bottom-left",
|
|
@@ -3766,7 +3763,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3766
3763
|
_: 1
|
|
3767
3764
|
/* STABLE */
|
|
3768
3765
|
}),
|
|
3769
|
-
Q(m(
|
|
3766
|
+
Q(m(me), { content: "下" }, {
|
|
3770
3767
|
default: x(() => [
|
|
3771
3768
|
B("div", {
|
|
3772
3769
|
class: "icon icon-bottom",
|
|
@@ -3776,7 +3773,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3776
3773
|
_: 1
|
|
3777
3774
|
/* STABLE */
|
|
3778
3775
|
}),
|
|
3779
|
-
Q(m(
|
|
3776
|
+
Q(m(me), { content: "右下" }, {
|
|
3780
3777
|
default: x(() => [
|
|
3781
3778
|
B("div", {
|
|
3782
3779
|
class: "icon icon-bottom-right",
|
|
@@ -3791,7 +3788,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3791
3788
|
/* NEED_HYDRATION */
|
|
3792
3789
|
));
|
|
3793
3790
|
}
|
|
3794
|
-
}), Up = /* @__PURE__ */ be(Hp, [["__scopeId", "data-v-
|
|
3791
|
+
}), Up = /* @__PURE__ */ be(Hp, [["__scopeId", "data-v-69100474"]]), Fp = { class: "video-wrapper" }, Vp = { class: "video-top" }, Wp = { class: "video-top_l" }, zp = { class: "video-title-wrapper" }, qp = { class: "video-title" }, Jp = { class: "video-top_r" }, Kp = {
|
|
3795
3792
|
key: 0,
|
|
3796
3793
|
class: "play-status"
|
|
3797
3794
|
}, Gp = { class: "video-bottom" }, Xp = { class: "video-bottom_r" }, Zp = /* @__PURE__ */ ne({
|
|
@@ -3897,7 +3894,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3897
3894
|
B(
|
|
3898
3895
|
"div",
|
|
3899
3896
|
qp,
|
|
3900
|
-
|
|
3897
|
+
re(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
3901
3898
|
1
|
|
3902
3899
|
/* TEXT */
|
|
3903
3900
|
)
|
|
@@ -3933,7 +3930,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3933
3930
|
onDblclick: _[2] || (_[2] = le((C) => C.stopPropagation(), ["stop"]))
|
|
3934
3931
|
},
|
|
3935
3932
|
[
|
|
3936
|
-
Q(m(
|
|
3933
|
+
Q(m(me), { content: "声音" }, {
|
|
3937
3934
|
default: x(() => [
|
|
3938
3935
|
Q(m(qe), {
|
|
3939
3936
|
class: "icon icon-volume",
|
|
@@ -3944,7 +3941,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3944
3941
|
_: 1
|
|
3945
3942
|
/* STABLE */
|
|
3946
3943
|
}),
|
|
3947
|
-
Q(m(
|
|
3944
|
+
Q(m(me), { content: "截图" }, {
|
|
3948
3945
|
default: x(() => [
|
|
3949
3946
|
Q(m(qe), {
|
|
3950
3947
|
class: "icon icon-screenshot",
|
|
@@ -3955,7 +3952,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3955
3952
|
_: 1
|
|
3956
3953
|
/* STABLE */
|
|
3957
3954
|
}),
|
|
3958
|
-
v("control") ? ($(), V(m(
|
|
3955
|
+
v("control") ? ($(), V(m(me), {
|
|
3959
3956
|
key: 0,
|
|
3960
3957
|
content: "聚焦-"
|
|
3961
3958
|
}, {
|
|
@@ -3970,7 +3967,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3970
3967
|
_: 1
|
|
3971
3968
|
/* STABLE */
|
|
3972
3969
|
})) : j("v-if", !0),
|
|
3973
|
-
v("control") ? ($(), V(m(
|
|
3970
|
+
v("control") ? ($(), V(m(me), {
|
|
3974
3971
|
key: 1,
|
|
3975
3972
|
content: "聚焦+"
|
|
3976
3973
|
}, {
|
|
@@ -3985,7 +3982,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
3985
3982
|
_: 1
|
|
3986
3983
|
/* STABLE */
|
|
3987
3984
|
})) : j("v-if", !0),
|
|
3988
|
-
v("control") ? ($(), V(m(
|
|
3985
|
+
v("control") ? ($(), V(m(me), {
|
|
3989
3986
|
key: 2,
|
|
3990
3987
|
content: "方向控制"
|
|
3991
3988
|
}, {
|
|
@@ -4016,7 +4013,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
|
|
|
4016
4013
|
}, 8, ["spinning"])
|
|
4017
4014
|
]));
|
|
4018
4015
|
}
|
|
4019
|
-
}), Yp = /* @__PURE__ */ be(Zp, [["__scopeId", "data-v-
|
|
4016
|
+
}), Yp = /* @__PURE__ */ be(Zp, [["__scopeId", "data-v-6c626546"]]), ef = /* @__PURE__ */ ne({
|
|
4020
4017
|
props: {
|
|
4021
4018
|
deviceInfo: {
|
|
4022
4019
|
type: Object,
|
|
@@ -4156,7 +4153,7 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4156
4153
|
-1
|
|
4157
4154
|
/* HOISTED */
|
|
4158
4155
|
)),
|
|
4159
|
-
Q(m(
|
|
4156
|
+
Q(m(me), { content: "页面全屏" }, {
|
|
4160
4157
|
default: x(() => [
|
|
4161
4158
|
Q(m(qe), {
|
|
4162
4159
|
class: "icon",
|
|
@@ -4181,7 +4178,7 @@ const nf = /* @__PURE__ */ ne({
|
|
|
4181
4178
|
return new Promise((o) => {
|
|
4182
4179
|
let r = document.body.querySelector("#video-dialog");
|
|
4183
4180
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4184
|
-
const a =
|
|
4181
|
+
const a = he(nf, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4185
4182
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
4186
4183
|
} });
|
|
4187
4184
|
Vt(a, r);
|
|
@@ -4370,7 +4367,7 @@ class Pt {
|
|
|
4370
4367
|
}
|
|
4371
4368
|
Pt.instance = new Pt();
|
|
4372
4369
|
const uf = "8.0.7";
|
|
4373
|
-
class
|
|
4370
|
+
class se {
|
|
4374
4371
|
static isRequired(e, n) {
|
|
4375
4372
|
if (e == null)
|
|
4376
4373
|
throw new Error(`The '${n}' argument is required.`);
|
|
@@ -4818,7 +4815,7 @@ class eo {
|
|
|
4818
4815
|
constructor(e, n, o, r, s, a, c) {
|
|
4819
4816
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4820
4817
|
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
|
-
},
|
|
4818
|
+
}, 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
4819
|
}
|
|
4823
4820
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
4824
4821
|
get state() {
|
|
@@ -5338,14 +5335,14 @@ class Lf extends sn {
|
|
|
5338
5335
|
return this._innerClient.getCookieString(e);
|
|
5339
5336
|
}
|
|
5340
5337
|
}
|
|
5341
|
-
var
|
|
5338
|
+
var oe;
|
|
5342
5339
|
(function(t) {
|
|
5343
5340
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
5344
|
-
})(
|
|
5345
|
-
var
|
|
5341
|
+
})(oe || (oe = {}));
|
|
5342
|
+
var ge;
|
|
5346
5343
|
(function(t) {
|
|
5347
5344
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
5348
|
-
})(
|
|
5345
|
+
})(ge || (ge = {}));
|
|
5349
5346
|
let $f = class {
|
|
5350
5347
|
constructor() {
|
|
5351
5348
|
this._isAborted = !1, this.onabort = null;
|
|
@@ -5369,7 +5366,7 @@ class tr {
|
|
|
5369
5366
|
this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5370
5367
|
}
|
|
5371
5368
|
async connect(e, n) {
|
|
5372
|
-
if (
|
|
5369
|
+
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
5370
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5374
5371
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5375
5372
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5377,7 +5374,7 @@ class tr {
|
|
|
5377
5374
|
timeout: 1e5,
|
|
5378
5375
|
withCredentials: this._options.withCredentials
|
|
5379
5376
|
};
|
|
5380
|
-
n ===
|
|
5377
|
+
n === ge.Binary && (a.responseType = "arraybuffer");
|
|
5381
5378
|
const c = `${e}&_=${Date.now()}`;
|
|
5382
5379
|
this._logger.log(w.Trace, `(LongPolling transport) polling: ${c}.`);
|
|
5383
5380
|
const l = await this._httpClient.get(c, a);
|
|
@@ -5435,9 +5432,9 @@ class Df {
|
|
|
5435
5432
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5436
5433
|
}
|
|
5437
5434
|
async connect(e, n) {
|
|
5438
|
-
return
|
|
5435
|
+
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
5436
|
let s = !1;
|
|
5440
|
-
if (n !==
|
|
5437
|
+
if (n !== ge.Text) {
|
|
5441
5438
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
5442
5439
|
return;
|
|
5443
5440
|
}
|
|
@@ -5485,7 +5482,7 @@ class Of {
|
|
|
5485
5482
|
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
5483
|
}
|
|
5487
5484
|
async connect(e, n) {
|
|
5488
|
-
|
|
5485
|
+
se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._logger.log(w.Trace, "(WebSockets transport) Connecting.");
|
|
5489
5486
|
let o;
|
|
5490
5487
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5491
5488
|
e = e.replace(/^http/, "ws");
|
|
@@ -5499,7 +5496,7 @@ class Of {
|
|
|
5499
5496
|
});
|
|
5500
5497
|
} else
|
|
5501
5498
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
5502
|
-
a || (a = new this._webSocketConstructor(e)), n ===
|
|
5499
|
+
a || (a = new this._webSocketConstructor(e)), n === ge.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
|
|
5503
5500
|
this._logger.log(w.Information, `WebSocket connected to ${e}.`), this._webSocket = a, l = !0, r();
|
|
5504
5501
|
}, a.onerror = (i) => {
|
|
5505
5502
|
let u = null;
|
|
@@ -5542,7 +5539,7 @@ const nr = 100;
|
|
|
5542
5539
|
class Mf {
|
|
5543
5540
|
constructor(e, n = {}) {
|
|
5544
5541
|
if (this._stopPromiseResolver = () => {
|
|
5545
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
5542
|
+
}, 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
5543
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
5547
5544
|
else
|
|
5548
5545
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -5555,7 +5552,7 @@ class Mf {
|
|
|
5555
5552
|
!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
5553
|
}
|
|
5557
5554
|
async start(e) {
|
|
5558
|
-
if (e = e ||
|
|
5555
|
+
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
5556
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5560
5557
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5561
5558
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -5599,8 +5596,8 @@ class Mf {
|
|
|
5599
5596
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
5600
5597
|
try {
|
|
5601
5598
|
if (this._options.skipNegotiation)
|
|
5602
|
-
if (this._options.transport ===
|
|
5603
|
-
this.transport = this._constructTransport(
|
|
5599
|
+
if (this._options.transport === oe.WebSockets)
|
|
5600
|
+
this.transport = this._constructTransport(oe.WebSockets), await this._startTransport(n, e);
|
|
5604
5601
|
else
|
|
5605
5602
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
5606
5603
|
else {
|
|
@@ -5676,7 +5673,7 @@ class Mf {
|
|
|
5676
5673
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
5677
5674
|
return;
|
|
5678
5675
|
} 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}`,
|
|
5676
|
+
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
5677
|
const d = "Failed to select transport before stop() was called.";
|
|
5681
5678
|
return this._logger.log(w.Debug, d), Promise.reject(new $e(d));
|
|
5682
5679
|
}
|
|
@@ -5687,15 +5684,15 @@ class Mf {
|
|
|
5687
5684
|
}
|
|
5688
5685
|
_constructTransport(e) {
|
|
5689
5686
|
switch (e) {
|
|
5690
|
-
case
|
|
5687
|
+
case oe.WebSockets:
|
|
5691
5688
|
if (!this._options.WebSocket)
|
|
5692
5689
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
5693
5690
|
return new Of(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
5694
|
-
case
|
|
5691
|
+
case oe.ServerSentEvents:
|
|
5695
5692
|
if (!this._options.EventSource)
|
|
5696
5693
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5697
5694
|
return new Df(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5698
|
-
case
|
|
5695
|
+
case oe.LongPolling:
|
|
5699
5696
|
return new tr(this._httpClient, this._logger, this._options);
|
|
5700
5697
|
default:
|
|
5701
5698
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -5718,23 +5715,23 @@ class Mf {
|
|
|
5718
5715
|
} : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, n);
|
|
5719
5716
|
}
|
|
5720
5717
|
_resolveTransportOrError(e, n, o, r) {
|
|
5721
|
-
const s =
|
|
5718
|
+
const s = oe[e.transport];
|
|
5722
5719
|
if (s == null)
|
|
5723
5720
|
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
5721
|
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 '${
|
|
5722
|
+
if (e.transferFormats.map((c) => ge[c]).indexOf(o) >= 0) {
|
|
5723
|
+
if (s === oe.WebSockets && !this._options.WebSocket || s === oe.ServerSentEvents && !this._options.EventSource)
|
|
5724
|
+
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);
|
|
5725
|
+
this._logger.log(w.Debug, `Selecting transport '${oe[s]}'.`);
|
|
5729
5726
|
try {
|
|
5730
|
-
return this.features.reconnect = s ===
|
|
5727
|
+
return this.features.reconnect = s === oe.WebSockets ? r : void 0, this._constructTransport(s);
|
|
5731
5728
|
} catch (c) {
|
|
5732
5729
|
return c;
|
|
5733
5730
|
}
|
|
5734
5731
|
} else
|
|
5735
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5732
|
+
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
5733
|
else
|
|
5737
|
-
return this._logger.log(w.Debug, `Skipping transport '${
|
|
5734
|
+
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
5735
|
}
|
|
5739
5736
|
_isITransport(e) {
|
|
5740
5737
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -5830,7 +5827,7 @@ class Nt {
|
|
|
5830
5827
|
const Rf = "json";
|
|
5831
5828
|
class xf {
|
|
5832
5829
|
constructor() {
|
|
5833
|
-
this.name = Rf, this.version = 2, this.transferFormat =
|
|
5830
|
+
this.name = Rf, this.version = 2, this.transferFormat = ge.Text;
|
|
5834
5831
|
}
|
|
5835
5832
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
5836
5833
|
*
|
|
@@ -5928,7 +5925,7 @@ function jf(t) {
|
|
|
5928
5925
|
}
|
|
5929
5926
|
class Nf {
|
|
5930
5927
|
configureLogging(e) {
|
|
5931
|
-
if (
|
|
5928
|
+
if (se.isRequired(e, "logging"), Hf(e))
|
|
5932
5929
|
this.logger = e;
|
|
5933
5930
|
else if (typeof e == "string") {
|
|
5934
5931
|
const n = jf(e);
|
|
@@ -5938,7 +5935,7 @@ class Nf {
|
|
|
5938
5935
|
return this;
|
|
5939
5936
|
}
|
|
5940
5937
|
withUrl(e, n) {
|
|
5941
|
-
return
|
|
5938
|
+
return se.isRequired(e, "url"), se.isNotEmpty(e, "url"), this.url = e, typeof n == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...n } : this.httpConnectionOptions = {
|
|
5942
5939
|
...this.httpConnectionOptions,
|
|
5943
5940
|
transport: n
|
|
5944
5941
|
}, this;
|
|
@@ -5948,7 +5945,7 @@ class Nf {
|
|
|
5948
5945
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
5949
5946
|
*/
|
|
5950
5947
|
withHubProtocol(e) {
|
|
5951
|
-
return
|
|
5948
|
+
return se.isRequired(e, "protocol"), this.protocol = e, this;
|
|
5952
5949
|
}
|
|
5953
5950
|
withAutomaticReconnect(e) {
|
|
5954
5951
|
if (this.reconnectPolicy)
|
|
@@ -5960,14 +5957,14 @@ class Nf {
|
|
|
5960
5957
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5961
5958
|
*/
|
|
5962
5959
|
withServerTimeout(e) {
|
|
5963
|
-
return
|
|
5960
|
+
return se.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
5964
5961
|
}
|
|
5965
5962
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
5966
5963
|
*
|
|
5967
5964
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
5968
5965
|
*/
|
|
5969
5966
|
withKeepAliveInterval(e) {
|
|
5970
|
-
return
|
|
5967
|
+
return se.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
5971
5968
|
}
|
|
5972
5969
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
5973
5970
|
*
|
|
@@ -5995,7 +5992,7 @@ let { baseURL: Uf } = tt();
|
|
|
5995
5992
|
const Ff = () => {
|
|
5996
5993
|
const t = new Nf().withUrl(`${Uf}/api/tool/event-bus`, {
|
|
5997
5994
|
skipNegotiation: !0,
|
|
5998
|
-
transport:
|
|
5995
|
+
transport: oe.WebSockets
|
|
5999
5996
|
}).withAutomaticReconnect().build();
|
|
6000
5997
|
return t.start().then(() => {
|
|
6001
5998
|
}).catch((e) => {
|
|
@@ -6182,7 +6179,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6182
6179
|
O.value = k.data.filter((L) => L.status), O.value.length > 0 && (i.value.workOrderRules = O.value[0].id);
|
|
6183
6180
|
};
|
|
6184
6181
|
G(l, (M) => {
|
|
6185
|
-
M || (
|
|
6182
|
+
M || (ie(), ue());
|
|
6186
6183
|
}), G(
|
|
6187
6184
|
S,
|
|
6188
6185
|
(M) => {
|
|
@@ -6199,17 +6196,17 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6199
6196
|
const z = (M) => {
|
|
6200
6197
|
var k;
|
|
6201
6198
|
return (k = a.value) == null ? void 0 : k.parentNode.parentNode;
|
|
6202
|
-
},
|
|
6199
|
+
}, ae = (M) => {
|
|
6203
6200
|
u.value.reportTheme = "";
|
|
6204
6201
|
}, Ce = (M, k) => {
|
|
6205
6202
|
k.length > 0 && (g.value = k[0].path), i.value.reportPosition = M, _.value = "";
|
|
6206
6203
|
}, Rt = (M) => {
|
|
6207
6204
|
M && (u.value.reportPosition = "", g.value = ""), M ? (i.value.reportPosition = null, g.value = "", p.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", p.value = "请选择");
|
|
6208
|
-
},
|
|
6205
|
+
}, pe = (M) => {
|
|
6209
6206
|
M && (u.value.reportTheme = ""), M ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
|
|
6210
|
-
},
|
|
6207
|
+
}, ie = () => {
|
|
6211
6208
|
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
|
-
},
|
|
6209
|
+
}, ue = () => {
|
|
6213
6210
|
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
6211
|
}, ze = (M) => {
|
|
6215
6212
|
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 +6232,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6235
6232
|
if (k) return {};
|
|
6236
6233
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6237
6234
|
}, cs = (M) => {
|
|
6238
|
-
|
|
6235
|
+
ie();
|
|
6239
6236
|
}, ls = async () => {
|
|
6240
6237
|
const M = {
|
|
6241
6238
|
logic: !1,
|
|
@@ -6309,8 +6306,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6309
6306
|
"destroy-on-close": ""
|
|
6310
6307
|
}, {
|
|
6311
6308
|
header: x(() => [
|
|
6312
|
-
|
|
6313
|
-
|
|
6309
|
+
ye(
|
|
6310
|
+
re(m(N)("告警处理").value),
|
|
6314
6311
|
1
|
|
6315
6312
|
/* TEXT */
|
|
6316
6313
|
)
|
|
@@ -6322,8 +6319,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6322
6319
|
onClick: ds
|
|
6323
6320
|
}, {
|
|
6324
6321
|
default: x(() => [
|
|
6325
|
-
|
|
6326
|
-
|
|
6322
|
+
ye(
|
|
6323
|
+
re(m(N)("取消").value),
|
|
6327
6324
|
1
|
|
6328
6325
|
/* TEXT */
|
|
6329
6326
|
)
|
|
@@ -6336,8 +6333,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6336
6333
|
onClick: k[29] || (k[29] = (L) => so(1))
|
|
6337
6334
|
}, {
|
|
6338
6335
|
default: x(() => [
|
|
6339
|
-
|
|
6340
|
-
|
|
6336
|
+
ye(
|
|
6337
|
+
re(m(N)("结束处理").value),
|
|
6341
6338
|
1
|
|
6342
6339
|
/* TEXT */
|
|
6343
6340
|
)
|
|
@@ -6351,8 +6348,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6351
6348
|
onClick: k[30] || (k[30] = (L) => so(2))
|
|
6352
6349
|
}, {
|
|
6353
6350
|
default: x(() => [
|
|
6354
|
-
|
|
6355
|
-
|
|
6351
|
+
ye(
|
|
6352
|
+
re(m(N)("继续处理").value),
|
|
6356
6353
|
1
|
|
6357
6354
|
/* TEXT */
|
|
6358
6355
|
)
|
|
@@ -6486,8 +6483,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6486
6483
|
size: "middle"
|
|
6487
6484
|
}, {
|
|
6488
6485
|
default: x(() => [
|
|
6489
|
-
|
|
6490
|
-
|
|
6486
|
+
ye(
|
|
6487
|
+
re(m(N)("告警对象位置").value),
|
|
6491
6488
|
1
|
|
6492
6489
|
/* TEXT */
|
|
6493
6490
|
)
|
|
@@ -6518,18 +6515,18 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6518
6515
|
modelValue: i.value.reportTheme,
|
|
6519
6516
|
"onUpdate:modelValue": k[14] || (k[14] = (L) => i.value.reportTheme = L),
|
|
6520
6517
|
placeholder: v.value,
|
|
6521
|
-
onChange:
|
|
6518
|
+
onChange: ae
|
|
6522
6519
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
6523
6520
|
Q(m(fo), {
|
|
6524
6521
|
modelValue: D.value,
|
|
6525
6522
|
"onUpdate:modelValue": k[15] || (k[15] = (L) => D.value = L),
|
|
6526
6523
|
checkboxType: "default",
|
|
6527
|
-
onChange:
|
|
6524
|
+
onChange: pe,
|
|
6528
6525
|
size: "middle"
|
|
6529
6526
|
}, {
|
|
6530
6527
|
default: x(() => [
|
|
6531
|
-
|
|
6532
|
-
|
|
6528
|
+
ye(
|
|
6529
|
+
re(m(N)("告警对象").value),
|
|
6533
6530
|
1
|
|
6534
6531
|
/* TEXT */
|
|
6535
6532
|
)
|
|
@@ -6652,8 +6649,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6652
6649
|
}, 8, ["modelValue"])
|
|
6653
6650
|
]));
|
|
6654
6651
|
}
|
|
6655
|
-
}), vh = /* @__PURE__ */ be(mh, [["__scopeId", "data-v-
|
|
6656
|
-
handleAlarmVue: () =>
|
|
6652
|
+
}), vh = /* @__PURE__ */ be(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
|
|
6653
|
+
handleAlarmVue: () => he(vh, {
|
|
6657
6654
|
handerIds: e.value,
|
|
6658
6655
|
projectId: Yt().id,
|
|
6659
6656
|
ref: t,
|
|
@@ -6690,13 +6687,13 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6690
6687
|
},
|
|
6691
6688
|
[
|
|
6692
6689
|
B("div", _h, [
|
|
6693
|
-
j(` <div class="icon-box" :style="{ color: msgItem.color }"
|
|
6694
|
-
|
|
6690
|
+
j(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
6691
|
+
!\r
|
|
6695
6692
|
</div> `),
|
|
6696
6693
|
B(
|
|
6697
6694
|
"div",
|
|
6698
6695
|
bh,
|
|
6699
|
-
|
|
6696
|
+
re(m(N)("新告警").value),
|
|
6700
6697
|
1
|
|
6701
6698
|
/* TEXT */
|
|
6702
6699
|
)
|
|
@@ -6717,7 +6714,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6717
6714
|
B(
|
|
6718
6715
|
"div",
|
|
6719
6716
|
Th,
|
|
6720
|
-
|
|
6717
|
+
re(m(N)("告警等级:").value),
|
|
6721
6718
|
1
|
|
6722
6719
|
/* TEXT */
|
|
6723
6720
|
),
|
|
@@ -6727,7 +6724,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6727
6724
|
class: "alarm-msg-line-right alarm-content-object",
|
|
6728
6725
|
style: yn({ color: a.msgItem.color })
|
|
6729
6726
|
},
|
|
6730
|
-
|
|
6727
|
+
re(a.msgItem.alarmLevelName || ""),
|
|
6731
6728
|
5
|
|
6732
6729
|
/* TEXT, STYLE */
|
|
6733
6730
|
)
|
|
@@ -6736,14 +6733,14 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6736
6733
|
B(
|
|
6737
6734
|
"div",
|
|
6738
6735
|
Sh,
|
|
6739
|
-
|
|
6736
|
+
re(m(N)("告警对象:").value),
|
|
6740
6737
|
1
|
|
6741
6738
|
/* TEXT */
|
|
6742
6739
|
),
|
|
6743
6740
|
B(
|
|
6744
6741
|
"div",
|
|
6745
6742
|
kh,
|
|
6746
|
-
|
|
6743
|
+
re(a.msgItem.equipmentName || ""),
|
|
6747
6744
|
1
|
|
6748
6745
|
/* TEXT */
|
|
6749
6746
|
)
|
|
@@ -6752,14 +6749,14 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6752
6749
|
B(
|
|
6753
6750
|
"div",
|
|
6754
6751
|
Lh,
|
|
6755
|
-
|
|
6752
|
+
re(m(N)("告警内容:").value),
|
|
6756
6753
|
1
|
|
6757
6754
|
/* TEXT */
|
|
6758
6755
|
),
|
|
6759
6756
|
B(
|
|
6760
6757
|
"div",
|
|
6761
6758
|
$h,
|
|
6762
|
-
|
|
6759
|
+
re(a.msgItem.alarmContent || ""),
|
|
6763
6760
|
1
|
|
6764
6761
|
/* TEXT */
|
|
6765
6762
|
)
|
|
@@ -6773,8 +6770,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6773
6770
|
size: "middle"
|
|
6774
6771
|
}, {
|
|
6775
6772
|
default: x(() => [
|
|
6776
|
-
|
|
6777
|
-
|
|
6773
|
+
ye(
|
|
6774
|
+
re(m(N)("设备详情").value),
|
|
6778
6775
|
1
|
|
6779
6776
|
/* TEXT */
|
|
6780
6777
|
)
|
|
@@ -6790,8 +6787,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
|
|
|
6790
6787
|
size: "middle"
|
|
6791
6788
|
}, {
|
|
6792
6789
|
default: x(() => [
|
|
6793
|
-
|
|
6794
|
-
|
|
6790
|
+
ye(
|
|
6791
|
+
re(m(N)("处理").value),
|
|
6795
6792
|
1
|
|
6796
6793
|
/* TEXT */
|
|
6797
6794
|
)
|
|
@@ -6861,7 +6858,7 @@ const Rh = () => {
|
|
|
6861
6858
|
class: "alarm-notify",
|
|
6862
6859
|
message: N("新告警").value,
|
|
6863
6860
|
placement: "bottomRight",
|
|
6864
|
-
description:
|
|
6861
|
+
description: he(Mh, {
|
|
6865
6862
|
msgItem: I,
|
|
6866
6863
|
alarmhandle: a.value,
|
|
6867
6864
|
onHanderDetail: d,
|
|
@@ -7022,20 +7019,20 @@ const Rh = () => {
|
|
|
7022
7019
|
Q(m(Qh))
|
|
7023
7020
|
]));
|
|
7024
7021
|
}
|
|
7025
|
-
}), Hh = /* @__PURE__ */ be(Nh, [["__scopeId", "data-v-
|
|
7022
|
+
}), Hh = /* @__PURE__ */ be(Nh, [["__scopeId", "data-v-45ef70df"]]);
|
|
7026
7023
|
E("@das-fed/web");
|
|
7027
7024
|
const Uh = [
|
|
7028
7025
|
{
|
|
7029
7026
|
path: je,
|
|
7030
|
-
component: () => import("./index-
|
|
7027
|
+
component: () => import("./index-DF9gjxi9.js")
|
|
7031
7028
|
},
|
|
7032
7029
|
{
|
|
7033
7030
|
path: ct,
|
|
7034
|
-
component: () => import("./index-
|
|
7031
|
+
component: () => import("./index-D-OlMFUt.js")
|
|
7035
7032
|
},
|
|
7036
7033
|
{
|
|
7037
7034
|
path: Cr,
|
|
7038
|
-
component: () => import("./index-
|
|
7035
|
+
component: () => import("./index-8HlxJQ9g.js")
|
|
7039
7036
|
}
|
|
7040
7037
|
], Yg = {
|
|
7041
7038
|
routes: Uh,
|