@das-fed/web 6.4.0-dev.11 → 6.4.0-dev.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-CdrOv9ce.js → index-BQz2IjQE.js} +1120 -1105
- package/index-BQz2IjQE.js.gz +0 -0
- package/{index-jFzyVhGM.js → index-BW4jEqQ-.js} +16 -15
- package/index-BW4jEqQ-.js.gz +0 -0
- package/{index-D7VM--Bp.js → index-BXPEkTcx.js} +1 -1
- package/{index-CzmiHoa4.js → index-B_wn2nAJ.js} +14 -14
- package/index-B_wn2nAJ.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +40 -40
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +214 -202
- 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-Cq8Fro8z.js → index-BoLhjzZB.js} +16 -15
- package/packages/main-app-framework/index-BoLhjzZB.js.gz +0 -0
- package/packages/main-app-framework/{index-DyKCvROV.js → index-C9QdijG-.js} +14 -14
- package/packages/main-app-framework/index-C9QdijG-.js.gz +0 -0
- package/packages/main-app-framework/{index-D38gLa5D.js → index-D8WGTZ14.js} +1 -1
- package/packages/main-app-framework/{index-_nvo7ltJ.js → index-DbCJvZMG.js} +495 -490
- package/packages/main-app-framework/index-DbCJvZMG.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 +64 -54
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/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-CdrOv9ce.js.gz +0 -0
- package/index-CzmiHoa4.js.gz +0 -0
- package/index-jFzyVhGM.js.gz +0 -0
- package/packages/main-app-framework/index-Cq8Fro8z.js.gz +0 -0
- package/packages/main-app-framework/index-DyKCvROV.js.gz +0 -0
- package/packages/main-app-framework/index-_nvo7ltJ.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as
|
|
1
|
+
import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as A, mergeProps as Sr, withCtx as x, renderSlot as $e, createVNode as R, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as T, watch as re, reactive as yo, createElementVNode as $, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as Br, toDisplayString as Y, createCommentVNode as U, pushScopeId as bo, popScopeId as wo, h as he, render as vt, onBeforeUnmount as Et, useCssVars as Or, normalizeClass as Dr, withModifiers as ne, toRefs as $r, normalizeStyle as Sn, isRef as Mr } from "vue";
|
|
2
2
|
import { i18n as Q } from "@das-fed/web/packages/i18n/index";
|
|
3
3
|
import { DasWebLayout as Lr, DasWebNav as xr, DasWebMenu as Rr, DasWebTabs as Qr, layout as D } from "@das-fed/web/packages/layout/index";
|
|
4
4
|
import { DasChangePwdRef as jr, DasChangePwd as Hr } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
@@ -6,15 +6,15 @@ import { DasChangeEnterprises as Nr } from "@das-fed/ui/packages/business-compon
|
|
|
6
6
|
import { pureImageSrc as Xt } from "@das-fed/utils/pure-image-src";
|
|
7
7
|
import { DasNotification as yt } from "@das-fed/ui/packages/components/notification/index";
|
|
8
8
|
import { flatTree as ye, filterTreeArray as Ur, isEmpty as Fr, treeFind as Tn, updateFavIcon as Jr, dateFormat as Wr, runPromiseByQueue as zr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Vr, withToken as qr } from "@das-fed/utils/common-tools";
|
|
9
|
-
import { getSubApps as
|
|
10
|
-
import { setProcessEngineProject as Io, setProcessEngineToken as
|
|
11
|
-
import { oauthServer as
|
|
12
|
-
import { createService as
|
|
9
|
+
import { getSubApps as F, getTabInfo as ce, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as Co, getMenus as _t } from "@das-fed/utils/common-info";
|
|
10
|
+
import { setProcessEngineProject as Io, setProcessEngineToken as Eo } from "@das-fed/utils/process-engine-info";
|
|
11
|
+
import { oauthServer as So, justauth as en, enterpriseright as tn, iotModules as Kr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
|
|
12
|
+
import { createService as je } from "@das-fed/utils/create-api-service";
|
|
13
13
|
import { useRouter as Ge, useRoute as on } from "vue-router";
|
|
14
14
|
import { useGetAuth as Gr } from "@das-fed/utils/hooks/use-get-auth";
|
|
15
15
|
import { systemConfiguration as Xr, enterpriseright as rn, createService as Xe, spaceManage as To } from "@das-fed/utils/api-services";
|
|
16
|
-
import { microFrontend as
|
|
17
|
-
import { getConfig as
|
|
16
|
+
import { microFrontend as X } from "@das-fed/web/packages/micro-frontend/index";
|
|
17
|
+
import { getConfig as He } from "@das-fed/utils/config";
|
|
18
18
|
import Jt from "dayjs";
|
|
19
19
|
import { getAccessToken as Zr, removeAccessToken as Yr } from "@das-fed/utils/token-tools";
|
|
20
20
|
import { DasDialog as sn } from "@das-fed/ui/packages/components/dialog/index";
|
|
@@ -71,22 +71,25 @@ const nt = "/", ke = "/application", Oo = [
|
|
|
71
71
|
excludeRoutes: e.excludeRoutes,
|
|
72
72
|
routeKeepAliveVisible: e.routeKeepAliveVisible
|
|
73
73
|
}));
|
|
74
|
-
return (r, i) => (H(),
|
|
75
|
-
header:
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
return (r, i) => (H(), V(A(Lr), Sr({ "transition-config": t.value }, o.value), {
|
|
75
|
+
header: x(() => [
|
|
76
|
+
$e(r.$slots, "header", {}, () => [
|
|
77
|
+
R(A(xr))
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
|
-
aside:
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
aside: x(() => [
|
|
81
|
+
$e(r.$slots, "aside", {}, () => [
|
|
82
|
+
R(A(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
83
83
|
])
|
|
84
84
|
]),
|
|
85
|
-
tab:
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
tab: x(() => [
|
|
86
|
+
$e(r.$slots, "tab", {}, () => [
|
|
87
|
+
R(A(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
90
|
+
banner: x(() => [
|
|
91
|
+
$e(r.$slots, "banner")
|
|
92
|
+
]),
|
|
90
93
|
_: 3
|
|
91
94
|
/* FORWARDED */
|
|
92
95
|
}, 16, ["transition-config"]));
|
|
@@ -106,7 +109,7 @@ function Mo(n) {
|
|
|
106
109
|
return Tr() ? (kr(n), !0) : !1;
|
|
107
110
|
}
|
|
108
111
|
function ys(n, e = !0) {
|
|
109
|
-
Pr() ?
|
|
112
|
+
Pr() ? Qe(n) : e ? n() : Fe(n);
|
|
110
113
|
}
|
|
111
114
|
function Lo(n) {
|
|
112
115
|
var e;
|
|
@@ -215,12 +218,12 @@ var Ln;
|
|
|
215
218
|
(function(n) {
|
|
216
219
|
n.UP = "UP", n.RIGHT = "RIGHT", n.DOWN = "DOWN", n.LEFT = "LEFT", n.NONE = "NONE";
|
|
217
220
|
})(Ln || (Ln = {}));
|
|
218
|
-
var Is = Object.defineProperty, xn = Object.getOwnPropertySymbols,
|
|
221
|
+
var Is = Object.defineProperty, xn = Object.getOwnPropertySymbols, Es = Object.prototype.hasOwnProperty, Ss = Object.prototype.propertyIsEnumerable, Rn = (n, e, t) => e in n ? Is(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Ts = (n, e) => {
|
|
219
222
|
for (var t in e || (e = {}))
|
|
220
|
-
|
|
223
|
+
Es.call(e, t) && Rn(n, t, e[t]);
|
|
221
224
|
if (xn)
|
|
222
225
|
for (var t of xn(e))
|
|
223
|
-
|
|
226
|
+
Ss.call(e, t) && Rn(n, t, e[t]);
|
|
224
227
|
return n;
|
|
225
228
|
};
|
|
226
229
|
const ks = {
|
|
@@ -279,10 +282,10 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
279
282
|
if (f) return null;
|
|
280
283
|
if (t.value = v, !!((p = t.value) != null && p.pageSwith)) {
|
|
281
284
|
i = [];
|
|
282
|
-
const { name:
|
|
285
|
+
const { name: E, phone: S } = await as();
|
|
283
286
|
let C = "";
|
|
284
|
-
if ((d = t.value) != null && d.nameSwith &&
|
|
285
|
-
const M =
|
|
287
|
+
if ((d = t.value) != null && d.nameSwith && E && (i.push(E), C = C + `${E} `), (m = t.value) != null && m.phoneSwith && S) {
|
|
288
|
+
const M = S.slice(-4);
|
|
286
289
|
i.push(M), C = C + `${M} `;
|
|
287
290
|
}
|
|
288
291
|
if ((_ = t.value) != null && _.textSwith && ((w = t.value) != null && w.text)) {
|
|
@@ -307,13 +310,13 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
307
310
|
p === "false" && (p = !1), s(v && !!(y && p));
|
|
308
311
|
},
|
|
309
312
|
{ immediate: !0 }
|
|
310
|
-
),
|
|
313
|
+
), X.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
|
|
311
314
|
var y, p;
|
|
312
315
|
u();
|
|
313
316
|
const f = !!((y = t.value) != null && y.pageSwith);
|
|
314
317
|
let v = ((p = g.query) == null ? void 0 : p.showWatermark) ?? !0;
|
|
315
318
|
v === "false" && (v = !1), s(!!(f && v));
|
|
316
|
-
}), (f, v) => (H(),
|
|
319
|
+
}), (f, v) => (H(), V(A(ls), {
|
|
317
320
|
class: "watermark",
|
|
318
321
|
font: l,
|
|
319
322
|
zIndex: 2147483647,
|
|
@@ -321,8 +324,8 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
321
324
|
width: o.value,
|
|
322
325
|
height: r.value
|
|
323
326
|
}, {
|
|
324
|
-
default:
|
|
325
|
-
|
|
327
|
+
default: x(() => [
|
|
328
|
+
$e(f.$slots, "default", {}, void 0, !0)
|
|
326
329
|
]),
|
|
327
330
|
_: 3
|
|
328
331
|
/* FORWARDED */
|
|
@@ -333,11 +336,11 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
333
336
|
for (const [o, r] of e)
|
|
334
337
|
t[o] = r;
|
|
335
338
|
return t;
|
|
336
|
-
}, Os = /* @__PURE__ */ Ie(Bs, [["__scopeId", "data-v-
|
|
339
|
+
}, Os = /* @__PURE__ */ Ie(Bs, [["__scopeId", "data-v-933399ef"]]), Ds = {
|
|
337
340
|
"--menu-tip-diaolg-content": "#212121",
|
|
338
341
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
339
342
|
"--menu-tip-diaolg-info": "#999999"
|
|
340
|
-
}, $s = (n) => (bo("data-v-
|
|
343
|
+
}, $s = (n) => (bo("data-v-72bc9a80"), n = n(), wo(), n), Ms = ["innerHTML"], Ls = /* @__PURE__ */ $s(() => /* @__PURE__ */ $(
|
|
341
344
|
"div",
|
|
342
345
|
{ class: "divide" },
|
|
343
346
|
null,
|
|
@@ -353,7 +356,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
353
356
|
},
|
|
354
357
|
setup(n) {
|
|
355
358
|
const e = T(!0);
|
|
356
|
-
return (t, o) => (H(),
|
|
359
|
+
return (t, o) => (H(), V(A(sn), {
|
|
357
360
|
modelValue: e.value,
|
|
358
361
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
|
|
359
362
|
type: "feedback",
|
|
@@ -364,14 +367,14 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
364
367
|
"custom-class": "menu-tip-diaolg",
|
|
365
368
|
onClosed: t.closeCallback
|
|
366
369
|
}, {
|
|
367
|
-
footer:
|
|
370
|
+
footer: x(() => [
|
|
368
371
|
$("div", xs, [
|
|
369
|
-
|
|
372
|
+
R(A(Te), {
|
|
370
373
|
btnType: "default",
|
|
371
374
|
size: "small",
|
|
372
375
|
onClick: t.closeCallback
|
|
373
376
|
}, {
|
|
374
|
-
default:
|
|
377
|
+
default: x(() => [
|
|
375
378
|
ue("我知道了")
|
|
376
379
|
]),
|
|
377
380
|
_: 1
|
|
@@ -379,7 +382,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
379
382
|
}, 8, ["onClick"])
|
|
380
383
|
])
|
|
381
384
|
]),
|
|
382
|
-
default:
|
|
385
|
+
default: x(() => [
|
|
383
386
|
$("div", {
|
|
384
387
|
class: "content",
|
|
385
388
|
innerHTML: t.content
|
|
@@ -416,7 +419,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
416
419
|
/* STABLE */
|
|
417
420
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
418
421
|
}
|
|
419
|
-
}), Qs = /* @__PURE__ */ Ie(Rs, [["__scopeId", "data-v-
|
|
422
|
+
}), Qs = /* @__PURE__ */ Ie(Rs, [["__scopeId", "data-v-72bc9a80"]]), rt = ({ title: n = "", content: e = "", desc: t = [] }) => new Promise((o) => {
|
|
420
423
|
const r = document.createElement("div");
|
|
421
424
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
422
425
|
const a = he(Qs, { title: n, content: e, desc: t, closeCallback: () => {
|
|
@@ -467,7 +470,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
467
470
|
}, Ro = () => {
|
|
468
471
|
sessionStorage.removeItem("tabs");
|
|
469
472
|
}, Ae = (n) => {
|
|
470
|
-
let e =
|
|
473
|
+
let e = F();
|
|
471
474
|
n.forEach((t) => {
|
|
472
475
|
if (t.key === "subAppList" && !Array.isArray(t.value)) {
|
|
473
476
|
const o = e.subAppList.findIndex((r) => r.code === t.value.code);
|
|
@@ -482,7 +485,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
482
485
|
{ key: "subAppList", value: [] }
|
|
483
486
|
]);
|
|
484
487
|
}, Qo = (n) => {
|
|
485
|
-
let e =
|
|
488
|
+
let e = F();
|
|
486
489
|
e.currentSubApp.currentMenuCode = n;
|
|
487
490
|
for (const t in e.subAppList)
|
|
488
491
|
e.subAppList[t].code === e.currentSubAppCode && (e.subAppList[t].currentMenuCode = n);
|
|
@@ -562,7 +565,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
562
565
|
}, Wt = (n) => {
|
|
563
566
|
const e = new URL(n, location.origin);
|
|
564
567
|
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", Zr()), e.searchParams.delete("autoSetToken")), e.toString();
|
|
565
|
-
}, ei = "v1", ti =
|
|
568
|
+
}, ei = "v1", ti = je(`/api/personal-center/personal-server/${ei}`), ni = ti.get("/info"), oi = So.get("/user-info"), ri = en.post("/tenant/page"), si = async () => {
|
|
566
569
|
const [n, e] = await ni().run({});
|
|
567
570
|
return n ? { personalConfig: null } : (Ns(e), { personalConfig: e });
|
|
568
571
|
}, ii = async () => {
|
|
@@ -570,7 +573,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
570
573
|
return n ? { tenantConfig: null } : (Us(e), { tenantConfig: e });
|
|
571
574
|
}, ai = async () => {
|
|
572
575
|
const [n, e] = await ri().run({
|
|
573
|
-
userId:
|
|
576
|
+
userId: St().id,
|
|
574
577
|
pageSize: 20,
|
|
575
578
|
pageIndex: 1
|
|
576
579
|
});
|
|
@@ -611,20 +614,20 @@ function mi(n, e) {
|
|
|
611
614
|
var t = this.__data__, o = kt(t, n);
|
|
612
615
|
return o < 0 ? (++this.size, t.push([n, e])) : t[o][1] = e, this;
|
|
613
616
|
}
|
|
614
|
-
function
|
|
617
|
+
function Ee(n) {
|
|
615
618
|
var e = -1, t = n == null ? 0 : n.length;
|
|
616
619
|
for (this.clear(); ++e < t; ) {
|
|
617
620
|
var o = n[e];
|
|
618
621
|
this.set(o[0], o[1]);
|
|
619
622
|
}
|
|
620
623
|
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
624
|
+
Ee.prototype.clear = di;
|
|
625
|
+
Ee.prototype.delete = hi;
|
|
626
|
+
Ee.prototype.get = gi;
|
|
627
|
+
Ee.prototype.has = Ai;
|
|
628
|
+
Ee.prototype.set = mi;
|
|
626
629
|
function vi() {
|
|
627
|
-
this.__data__ = new
|
|
630
|
+
this.__data__ = new Ee(), this.size = 0;
|
|
628
631
|
}
|
|
629
632
|
function yi(n) {
|
|
630
633
|
var e = this.__data__, t = e.delete(n);
|
|
@@ -637,7 +640,7 @@ function bi(n) {
|
|
|
637
640
|
return this.__data__.has(n);
|
|
638
641
|
}
|
|
639
642
|
var No = typeof global == "object" && global && global.Object === Object && global, wi = typeof self == "object" && self && self.Object === Object && self, be = No || wi || Function("return this")(), ze = be.Symbol, Uo = Object.prototype, Ci = Uo.hasOwnProperty, Ii = Uo.toString, tt = ze ? ze.toStringTag : void 0;
|
|
640
|
-
function
|
|
643
|
+
function Ei(n) {
|
|
641
644
|
var e = Ci.call(n, tt), t = n[tt];
|
|
642
645
|
try {
|
|
643
646
|
n[tt] = void 0;
|
|
@@ -647,13 +650,13 @@ function Si(n) {
|
|
|
647
650
|
var r = Ii.call(n);
|
|
648
651
|
return o && (e ? n[tt] = t : delete n[tt]), r;
|
|
649
652
|
}
|
|
650
|
-
var
|
|
653
|
+
var Si = Object.prototype, Ti = Si.toString;
|
|
651
654
|
function ki(n) {
|
|
652
655
|
return Ti.call(n);
|
|
653
656
|
}
|
|
654
657
|
var Pi = "[object Null]", Bi = "[object Undefined]", Qn = ze ? ze.toStringTag : void 0;
|
|
655
658
|
function ut(n) {
|
|
656
|
-
return n == null ? n === void 0 ? Bi : Pi : Qn && Qn in Object(n) ?
|
|
659
|
+
return n == null ? n === void 0 ? Bi : Pi : Qn && Qn in Object(n) ? Ei(n) : ki(n);
|
|
657
660
|
}
|
|
658
661
|
function dt(n) {
|
|
659
662
|
var e = typeof n;
|
|
@@ -674,7 +677,7 @@ function Li(n) {
|
|
|
674
677
|
return !!jn && jn in n;
|
|
675
678
|
}
|
|
676
679
|
var xi = Function.prototype, Ri = xi.toString;
|
|
677
|
-
function
|
|
680
|
+
function Ne(n) {
|
|
678
681
|
if (n != null) {
|
|
679
682
|
try {
|
|
680
683
|
return Ri.call(n);
|
|
@@ -694,16 +697,16 @@ function Wi(n) {
|
|
|
694
697
|
if (!dt(n) || Li(n))
|
|
695
698
|
return !1;
|
|
696
699
|
var e = Fo(n) ? Ji : ji;
|
|
697
|
-
return e.test(
|
|
700
|
+
return e.test(Ne(n));
|
|
698
701
|
}
|
|
699
702
|
function zi(n, e) {
|
|
700
703
|
return n == null ? void 0 : n[e];
|
|
701
704
|
}
|
|
702
|
-
function
|
|
705
|
+
function Ue(n, e) {
|
|
703
706
|
var t = zi(n, e);
|
|
704
707
|
return Wi(t) ? t : void 0;
|
|
705
708
|
}
|
|
706
|
-
var st =
|
|
709
|
+
var st = Ue(be, "Map"), it = Ue(Object, "create");
|
|
707
710
|
function Vi() {
|
|
708
711
|
this.__data__ = it ? it(null) : {}, this.size = 0;
|
|
709
712
|
}
|
|
@@ -730,23 +733,23 @@ function oa(n, e) {
|
|
|
730
733
|
var t = this.__data__;
|
|
731
734
|
return this.size += this.has(n) ? 0 : 1, t[n] = it && e === void 0 ? na : e, this;
|
|
732
735
|
}
|
|
733
|
-
function
|
|
736
|
+
function xe(n) {
|
|
734
737
|
var e = -1, t = n == null ? 0 : n.length;
|
|
735
738
|
for (this.clear(); ++e < t; ) {
|
|
736
739
|
var o = n[e];
|
|
737
740
|
this.set(o[0], o[1]);
|
|
738
741
|
}
|
|
739
742
|
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
743
|
+
xe.prototype.clear = Vi;
|
|
744
|
+
xe.prototype.delete = qi;
|
|
745
|
+
xe.prototype.get = Zi;
|
|
746
|
+
xe.prototype.has = ta;
|
|
747
|
+
xe.prototype.set = oa;
|
|
745
748
|
function ra() {
|
|
746
749
|
this.size = 0, this.__data__ = {
|
|
747
|
-
hash: new
|
|
748
|
-
map: new (st ||
|
|
749
|
-
string: new
|
|
750
|
+
hash: new xe(),
|
|
751
|
+
map: new (st || Ee)(),
|
|
752
|
+
string: new xe()
|
|
750
753
|
};
|
|
751
754
|
}
|
|
752
755
|
function sa(n) {
|
|
@@ -786,7 +789,7 @@ Ze.prototype.set = la;
|
|
|
786
789
|
var ua = 200;
|
|
787
790
|
function da(n, e) {
|
|
788
791
|
var t = this.__data__;
|
|
789
|
-
if (t instanceof
|
|
792
|
+
if (t instanceof Ee) {
|
|
790
793
|
var o = t.__data__;
|
|
791
794
|
if (!st || o.length < ua - 1)
|
|
792
795
|
return o.push([n, e]), this.size = ++t.size, this;
|
|
@@ -795,7 +798,7 @@ function da(n, e) {
|
|
|
795
798
|
return t.set(n, e), this.size = t.size, this;
|
|
796
799
|
}
|
|
797
800
|
function Ye(n) {
|
|
798
|
-
var e = this.__data__ = new
|
|
801
|
+
var e = this.__data__ = new Ee(n);
|
|
799
802
|
this.size = e.size;
|
|
800
803
|
}
|
|
801
804
|
Ye.prototype.clear = vi;
|
|
@@ -810,7 +813,7 @@ function pa(n, e) {
|
|
|
810
813
|
}
|
|
811
814
|
var Hn = function() {
|
|
812
815
|
try {
|
|
813
|
-
var n =
|
|
816
|
+
var n = Ue(Object, "defineProperty");
|
|
814
817
|
return n({}, "", {}), n;
|
|
815
818
|
} catch {
|
|
816
819
|
}
|
|
@@ -858,19 +861,19 @@ function _a() {
|
|
|
858
861
|
return !1;
|
|
859
862
|
}
|
|
860
863
|
var Vo = typeof exports == "object" && exports && !exports.nodeType && exports, Un = Vo && typeof module == "object" && module && !module.nodeType && module, ba = Un && Un.exports === Vo, Fn = ba ? be.Buffer : void 0, wa = Fn ? Fn.isBuffer : void 0, qo = wa || _a, Ca = 9007199254740991, Ia = /^(?:0|[1-9]\d*)$/;
|
|
861
|
-
function
|
|
864
|
+
function Ea(n, e) {
|
|
862
865
|
var t = typeof n;
|
|
863
866
|
return e = e ?? Ca, !!e && (t == "number" || t != "symbol" && Ia.test(n)) && n > -1 && n % 1 == 0 && n < e;
|
|
864
867
|
}
|
|
865
|
-
var
|
|
868
|
+
var Sa = 9007199254740991;
|
|
866
869
|
function Ko(n) {
|
|
867
|
-
return typeof n == "number" && n > -1 && n % 1 == 0 && n <=
|
|
870
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Sa;
|
|
868
871
|
}
|
|
869
|
-
var Ta = "[object Arguments]", ka = "[object Array]", Pa = "[object Boolean]", Ba = "[object Date]", Oa = "[object Error]", Da = "[object Function]", $a = "[object Map]", Ma = "[object Number]", La = "[object Object]", xa = "[object RegExp]", Ra = "[object Set]", Qa = "[object String]", ja = "[object WeakMap]", Ha = "[object ArrayBuffer]", Na = "[object DataView]", Ua = "[object Float32Array]", Fa = "[object Float64Array]", Ja = "[object Int8Array]", Wa = "[object Int16Array]", za = "[object Int32Array]", Va = "[object Uint8Array]", qa = "[object Uint8ClampedArray]", Ka = "[object Uint16Array]", Ga = "[object Uint32Array]",
|
|
870
|
-
|
|
871
|
-
|
|
872
|
+
var Ta = "[object Arguments]", ka = "[object Array]", Pa = "[object Boolean]", Ba = "[object Date]", Oa = "[object Error]", Da = "[object Function]", $a = "[object Map]", Ma = "[object Number]", La = "[object Object]", xa = "[object RegExp]", Ra = "[object Set]", Qa = "[object String]", ja = "[object WeakMap]", Ha = "[object ArrayBuffer]", Na = "[object DataView]", Ua = "[object Float32Array]", Fa = "[object Float64Array]", Ja = "[object Int8Array]", Wa = "[object Int16Array]", za = "[object Int32Array]", Va = "[object Uint8Array]", qa = "[object Uint8ClampedArray]", Ka = "[object Uint16Array]", Ga = "[object Uint32Array]", z = {};
|
|
873
|
+
z[Ua] = z[Fa] = z[Ja] = z[Wa] = z[za] = z[Va] = z[qa] = z[Ka] = z[Ga] = !0;
|
|
874
|
+
z[Ta] = z[ka] = z[Ha] = z[Pa] = z[Na] = z[Ba] = z[Oa] = z[Da] = z[$a] = z[Ma] = z[La] = z[xa] = z[Ra] = z[Qa] = z[ja] = !1;
|
|
872
875
|
function Xa(n) {
|
|
873
|
-
return pt(n) && Ko(n.length) && !!
|
|
876
|
+
return pt(n) && Ko(n.length) && !!z[ut(n)];
|
|
874
877
|
}
|
|
875
878
|
function dn(n) {
|
|
876
879
|
return function(e) {
|
|
@@ -891,7 +894,7 @@ function Xo(n, e) {
|
|
|
891
894
|
(s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
892
895
|
r && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
893
896
|
i && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
|
|
894
|
-
|
|
897
|
+
Ea(s, c))) && l.push(s);
|
|
895
898
|
return l;
|
|
896
899
|
}
|
|
897
900
|
var nc = Object.prototype;
|
|
@@ -998,14 +1001,14 @@ function wc(n) {
|
|
|
998
1001
|
function Cc(n) {
|
|
999
1002
|
return sr(n, hn, rr);
|
|
1000
1003
|
}
|
|
1001
|
-
var zt =
|
|
1004
|
+
var zt = Ue(be, "DataView"), Vt = Ue(be, "Promise"), qt = Ue(be, "Set"), Kt = Ue(be, "WeakMap"), Kn = "[object Map]", Ic = "[object Object]", Gn = "[object Promise]", Xn = "[object Set]", Zn = "[object WeakMap]", Yn = "[object DataView]", Ec = Ne(zt), Sc = Ne(st), Tc = Ne(Vt), kc = Ne(qt), Pc = Ne(Kt), we = ut;
|
|
1002
1005
|
(zt && we(new zt(new ArrayBuffer(1))) != Yn || st && we(new st()) != Kn || Vt && we(Vt.resolve()) != Gn || qt && we(new qt()) != Xn || Kt && we(new Kt()) != Zn) && (we = function(n) {
|
|
1003
|
-
var e = ut(n), t = e == Ic ? n.constructor : void 0, o = t ?
|
|
1006
|
+
var e = ut(n), t = e == Ic ? n.constructor : void 0, o = t ? Ne(t) : "";
|
|
1004
1007
|
if (o)
|
|
1005
1008
|
switch (o) {
|
|
1006
|
-
case Sc:
|
|
1007
|
-
return Yn;
|
|
1008
1009
|
case Ec:
|
|
1010
|
+
return Yn;
|
|
1011
|
+
case Sc:
|
|
1009
1012
|
return Kn;
|
|
1010
1013
|
case Tc:
|
|
1011
1014
|
return Gn;
|
|
@@ -1101,9 +1104,9 @@ var ro = Ve && Ve.isMap, cl = ro ? dn(ro) : al, ll = "[object Set]";
|
|
|
1101
1104
|
function ul(n) {
|
|
1102
1105
|
return pt(n) && we(n) == ll;
|
|
1103
1106
|
}
|
|
1104
|
-
var so = Ve && Ve.isSet, dl = so ? dn(so) : ul, pl = 1, fl = 2, hl = 4, ir = "[object Arguments]", gl = "[object Array]", Al = "[object Boolean]", ml = "[object Date]", vl = "[object Error]", ar = "[object Function]", yl = "[object GeneratorFunction]", _l = "[object Map]", bl = "[object Number]", cr = "[object Object]", wl = "[object RegExp]", Cl = "[object Set]", Il = "[object String]",
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
+
var so = Ve && Ve.isSet, dl = so ? dn(so) : ul, pl = 1, fl = 2, hl = 4, ir = "[object Arguments]", gl = "[object Array]", Al = "[object Boolean]", ml = "[object Date]", vl = "[object Error]", ar = "[object Function]", yl = "[object GeneratorFunction]", _l = "[object Map]", bl = "[object Number]", cr = "[object Object]", wl = "[object RegExp]", Cl = "[object Set]", Il = "[object String]", El = "[object Symbol]", Sl = "[object WeakMap]", Tl = "[object ArrayBuffer]", kl = "[object DataView]", Pl = "[object Float32Array]", Bl = "[object Float64Array]", Ol = "[object Int8Array]", Dl = "[object Int16Array]", $l = "[object Int32Array]", Ml = "[object Uint8Array]", Ll = "[object Uint8ClampedArray]", xl = "[object Uint16Array]", Rl = "[object Uint32Array]", J = {};
|
|
1108
|
+
J[ir] = J[gl] = J[Tl] = J[kl] = J[Al] = J[ml] = J[Pl] = J[Bl] = J[Ol] = J[Dl] = J[$l] = J[_l] = J[bl] = J[cr] = J[wl] = J[Cl] = J[Il] = J[El] = J[Ml] = J[Ll] = J[xl] = J[Rl] = !0;
|
|
1109
|
+
J[vl] = J[ar] = J[Sl] = !1;
|
|
1107
1110
|
function mt(n, e, t, o, r, i) {
|
|
1108
1111
|
var a, l = e & pl, c = e & fl, s = e & hl;
|
|
1109
1112
|
if (a !== void 0)
|
|
@@ -1122,7 +1125,7 @@ function mt(n, e, t, o, r, i) {
|
|
|
1122
1125
|
if (a = c || g ? {} : sl(n), !l)
|
|
1123
1126
|
return c ? bc(n, pc(a, n)) : yc(n, ac(a, n));
|
|
1124
1127
|
} else {
|
|
1125
|
-
if (!
|
|
1128
|
+
if (!J[b])
|
|
1126
1129
|
return r ? n : {};
|
|
1127
1130
|
a = ol(n, b, l);
|
|
1128
1131
|
}
|
|
@@ -1171,7 +1174,7 @@ const wt = (n, e = "") => {
|
|
|
1171
1174
|
const r = n.slice(0, o), i = n.slice(o + 1);
|
|
1172
1175
|
return i.length && (t = i[0]), t || r.length && (t = r[r.length - 1]), { index: o, target: t };
|
|
1173
1176
|
}, Gt = (n) => {
|
|
1174
|
-
const e =
|
|
1177
|
+
const e = F().subAppList ?? [];
|
|
1175
1178
|
let { index: t, target: o } = Hl(e, n);
|
|
1176
1179
|
return e.splice(t, 1), e.length ? Ae([{ key: "subAppList", value: e }]) : ln(), le([
|
|
1177
1180
|
{ key: "currentCode", value: "" },
|
|
@@ -1243,7 +1246,7 @@ const wt = (n, e = "") => {
|
|
|
1243
1246
|
let l = (e == null ? void 0 : e.code) ?? "";
|
|
1244
1247
|
if (!l) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
1245
1248
|
let c = [], s = [];
|
|
1246
|
-
const u =
|
|
1249
|
+
const u = F().subAppList ?? [];
|
|
1247
1250
|
if (u.length && (c = ((v = u.find((p) => p.code === e.code)) == null ? void 0 : v.menus) ?? []), !c.length) {
|
|
1248
1251
|
const { menus: p, originalMenus: d } = await mn(l);
|
|
1249
1252
|
c = p ?? [], s = d ?? [];
|
|
@@ -1350,7 +1353,7 @@ const wt = (n, e = "") => {
|
|
|
1350
1353
|
ao.value = !0;
|
|
1351
1354
|
const [n, e] = await Jl().run({ userType: 1 });
|
|
1352
1355
|
return ao.value = !1, n ? (io.value = [], { navConfig: [] }) : (io.value = e, Ae([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
1353
|
-
}, Wl = "v1", zl = tn.get("/organization/authProjectTree"), Vl =
|
|
1356
|
+
}, Wl = "v1", zl = tn.get("/organization/authProjectTree"), Vl = je(`/api/customer/customer/${Wl}`), ql = Vl.get("/project/list"), Kl = async () => {
|
|
1354
1357
|
var o, r;
|
|
1355
1358
|
const n = Zt();
|
|
1356
1359
|
let e = [], t = null;
|
|
@@ -1371,7 +1374,7 @@ const wt = (n, e = "") => {
|
|
|
1371
1374
|
}
|
|
1372
1375
|
}
|
|
1373
1376
|
return xo(t || { id: 0 }), Io((t == null ? void 0 : t.id) || 0), { projectConfig: e, currentProject: t };
|
|
1374
|
-
}, Gl = "v1", Xl = nn.get("/visitor/login/with-default", (n) => (n.public = !0, n)), Zl = nn.get("/visitor/appearance/with-default", (n) => (n.public = !0, n)), Yl =
|
|
1377
|
+
}, Gl = "v1", Xl = nn.get("/visitor/login/with-default", (n) => (n.public = !0, n)), Zl = nn.get("/visitor/appearance/with-default", (n) => (n.public = !0, n)), Yl = je(`/api/portal/manager/${Gl}`), eu = Yl.get("/basics/home/info"), tu = Be.get("/menu/personal-setting"), nu = async () => {
|
|
1375
1378
|
const [n, e] = await Xl().run();
|
|
1376
1379
|
return n ? { loginConfig: null } : { loginConfig: e };
|
|
1377
1380
|
}, ou = async () => {
|
|
@@ -1398,33 +1401,33 @@ const wt = (n, e = "") => {
|
|
|
1398
1401
|
/** 打开弹窗 */
|
|
1399
1402
|
openDialog: a
|
|
1400
1403
|
}), (s, u) => (H(), de("div", iu, [
|
|
1401
|
-
|
|
1404
|
+
R(A(us), {
|
|
1402
1405
|
title: A(Q)("主题设置").value,
|
|
1403
1406
|
modelValue: t.value,
|
|
1404
1407
|
"onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
|
|
1405
1408
|
"body-style": { padding: 0 },
|
|
1406
1409
|
direction: "rtl"
|
|
1407
1410
|
}, {
|
|
1408
|
-
footer:
|
|
1411
|
+
footer: x(() => [
|
|
1409
1412
|
$("div", hu, [
|
|
1410
|
-
|
|
1413
|
+
R(A(Te), {
|
|
1411
1414
|
size: "middle",
|
|
1412
1415
|
onClick: u[4] || (u[4] = (b) => t.value = !1),
|
|
1413
1416
|
style: { "margin-right": "12px" }
|
|
1414
1417
|
}, {
|
|
1415
|
-
default:
|
|
1418
|
+
default: x(() => [
|
|
1416
1419
|
ue("取消")
|
|
1417
1420
|
]),
|
|
1418
1421
|
_: 1
|
|
1419
1422
|
/* STABLE */
|
|
1420
1423
|
}),
|
|
1421
|
-
|
|
1424
|
+
R(A(Te), {
|
|
1422
1425
|
btnType: "primary",
|
|
1423
1426
|
size: "middle",
|
|
1424
1427
|
loading: i.value,
|
|
1425
1428
|
onClick: c
|
|
1426
1429
|
}, {
|
|
1427
|
-
default:
|
|
1430
|
+
default: x(() => [
|
|
1428
1431
|
ue("确定")
|
|
1429
1432
|
]),
|
|
1430
1433
|
_: 1
|
|
@@ -1432,7 +1435,7 @@ const wt = (n, e = "") => {
|
|
|
1432
1435
|
}, 8, ["loading"])
|
|
1433
1436
|
])
|
|
1434
1437
|
]),
|
|
1435
|
-
default:
|
|
1438
|
+
default: x(() => [
|
|
1436
1439
|
$("div", au, [
|
|
1437
1440
|
$(
|
|
1438
1441
|
"p",
|
|
@@ -1449,12 +1452,12 @@ const wt = (n, e = "") => {
|
|
|
1449
1452
|
width: "180",
|
|
1450
1453
|
height: "120"
|
|
1451
1454
|
}, null, 8, du),
|
|
1452
|
-
|
|
1455
|
+
R(A(kn), {
|
|
1453
1456
|
modelValue: o.value,
|
|
1454
1457
|
"onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
|
|
1455
1458
|
onChange: u[1] || (u[1] = (b) => l(1))
|
|
1456
1459
|
}, {
|
|
1457
|
-
default:
|
|
1460
|
+
default: x(() => [
|
|
1458
1461
|
ue(
|
|
1459
1462
|
Y(A(Q)("弹出式菜单栏").value),
|
|
1460
1463
|
1
|
|
@@ -1472,12 +1475,12 @@ const wt = (n, e = "") => {
|
|
|
1472
1475
|
width: "180",
|
|
1473
1476
|
height: "120"
|
|
1474
1477
|
}, null, 8, fu),
|
|
1475
|
-
|
|
1478
|
+
R(A(kn), {
|
|
1476
1479
|
modelValue: r.value,
|
|
1477
1480
|
"onUpdate:modelValue": u[2] || (u[2] = (b) => r.value = b),
|
|
1478
1481
|
onChange: u[3] || (u[3] = (b) => l(2))
|
|
1479
1482
|
}, {
|
|
1480
|
-
default:
|
|
1483
|
+
default: x(() => [
|
|
1481
1484
|
ue(
|
|
1482
1485
|
Y(A(Q)("内嵌式菜单栏").value),
|
|
1483
1486
|
1
|
|
@@ -1496,7 +1499,7 @@ const wt = (n, e = "") => {
|
|
|
1496
1499
|
}, 8, ["title", "modelValue"])
|
|
1497
1500
|
]));
|
|
1498
1501
|
}
|
|
1499
|
-
}), Au = /* @__PURE__ */ Ie(gu, [["__scopeId", "data-v-
|
|
1502
|
+
}), Au = /* @__PURE__ */ Ie(gu, [["__scopeId", "data-v-760eb710"]]), mu = () => T(null), vu = en.get("/login/history"), yu = () => {
|
|
1500
1503
|
const n = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((c) => new RegExp(`^${c}$`, "i").test(location.pathname)), e = (a) => {
|
|
1501
1504
|
const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, s = c ? l + Xt(c) : "";
|
|
1502
1505
|
Js(s), Jr(s);
|
|
@@ -1525,11 +1528,11 @@ const wt = (n, e = "") => {
|
|
|
1525
1528
|
};
|
|
1526
1529
|
l();
|
|
1527
1530
|
});
|
|
1528
|
-
return
|
|
1531
|
+
return Qe(async () => {
|
|
1529
1532
|
if (await o(), n()) return;
|
|
1530
1533
|
await ii(), await si();
|
|
1531
1534
|
const a = Yt();
|
|
1532
|
-
|
|
1535
|
+
Eo({ accessToken: a }), r.value = !0;
|
|
1533
1536
|
}), {
|
|
1534
1537
|
platformInited: r,
|
|
1535
1538
|
initNextTick: i
|
|
@@ -1563,12 +1566,12 @@ const wt = (n, e = "") => {
|
|
|
1563
1566
|
return await zr([ai, Kl, ru, lr, dr]).then((p) => Object.assign(v, ...p)), a.value = !1, v;
|
|
1564
1567
|
}, g = T(!1);
|
|
1565
1568
|
return D.nav.addEventListener("onBeforeMount", async () => {
|
|
1566
|
-
var
|
|
1569
|
+
var S;
|
|
1567
1570
|
await n();
|
|
1568
1571
|
const v = await b();
|
|
1569
1572
|
if (!v) return;
|
|
1570
1573
|
const { homeConfig: y, projectConfig: p, currentProject: d, tenantList: m, personalMenuConfig: _ } = v;
|
|
1571
|
-
u.value = ((
|
|
1574
|
+
u.value = ((S = Zt()) == null ? void 0 : S.flag) !== 4 && m && m.length > 1;
|
|
1572
1575
|
const w = [...Oo];
|
|
1573
1576
|
w.forEach((C) => {
|
|
1574
1577
|
y != null && y.appAlias && C.value === ke && (C.label = y.appAlias), y != null && y.homeAlias && C.value === nt && (C.label = y.homeAlias);
|
|
@@ -1581,15 +1584,15 @@ const wt = (n, e = "") => {
|
|
|
1581
1584
|
// 树打平之后保留的数据
|
|
1582
1585
|
filterFlatCondition: (C) => C.type === 7
|
|
1583
1586
|
}), D.nav.setProjects(p || []), d && D.nav.setActiveProject(d));
|
|
1584
|
-
const k =
|
|
1587
|
+
const k = St() ?? {}, B = k != null && k.headPicture ? Xt(k.headPicture) : void 0;
|
|
1585
1588
|
c.value = [...hs], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((M) => M.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
|
|
1586
1589
|
getHistoryList: r,
|
|
1587
1590
|
getSearchList: i
|
|
1588
1591
|
});
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1592
|
+
const E = F().subAppList ?? [];
|
|
1593
|
+
E.length && (E.forEach((C) => {
|
|
1591
1594
|
C.menus = [], C.originalMenus = [];
|
|
1592
|
-
}), Ae([{ key: "subAppList", value:
|
|
1595
|
+
}), Ae([{ key: "subAppList", value: E }])), g.value = !0;
|
|
1593
1596
|
}), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((v) => {
|
|
1594
1597
|
const y = async () => {
|
|
1595
1598
|
var m;
|
|
@@ -1614,7 +1617,7 @@ const wt = (n, e = "") => {
|
|
|
1614
1617
|
}, wu = () => {
|
|
1615
1618
|
const { entryMenu: n } = Ot();
|
|
1616
1619
|
D.menu.addEventListener("onItemClick", async (e) => {
|
|
1617
|
-
|
|
1620
|
+
te.innerSet = !0;
|
|
1618
1621
|
const t = ye(_t(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
1619
1622
|
if (!(t && !t.routeUrl)) {
|
|
1620
1623
|
if (!t) {
|
|
@@ -1628,7 +1631,7 @@ const wt = (n, e = "") => {
|
|
|
1628
1631
|
}, Cu = () => {
|
|
1629
1632
|
const { changeApp: n, deleteApp: e, beforeEntryApp: t } = et();
|
|
1630
1633
|
D.nav.addEventListener("onItemClick", async (r) => {
|
|
1631
|
-
const i =
|
|
1634
|
+
const i = F().currentSubAppCode ?? "";
|
|
1632
1635
|
if (i !== r.code) {
|
|
1633
1636
|
if (i && Ys(i), !r.fixed && !await t(r))
|
|
1634
1637
|
throw new Error("取消切换");
|
|
@@ -1636,7 +1639,7 @@ const wt = (n, e = "") => {
|
|
|
1636
1639
|
}
|
|
1637
1640
|
}), D.nav.addEventListener("onItemRemove", (r) => {
|
|
1638
1641
|
var s;
|
|
1639
|
-
const i =
|
|
1642
|
+
const i = F();
|
|
1640
1643
|
if (!((s = i.subAppList) != null && s.length) || i.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
1641
1644
|
const c = (ce().tabMap[r.code] ?? []).map((u) => u.code);
|
|
1642
1645
|
c && c.length && At(r.code, c), e(r);
|
|
@@ -1649,17 +1652,17 @@ const wt = (n, e = "") => {
|
|
|
1649
1652
|
re(
|
|
1650
1653
|
() => n.currentRoute.value,
|
|
1651
1654
|
async (d) => {
|
|
1652
|
-
var
|
|
1653
|
-
const m = ((
|
|
1654
|
-
let _ = ((
|
|
1655
|
+
var E, S, C, M, L, N, W;
|
|
1656
|
+
const m = ((E = d.meta) == null ? void 0 : E.showLayout) ?? !0;
|
|
1657
|
+
let _ = ((S = d.query) == null ? void 0 : S.showLayout) ?? !0;
|
|
1655
1658
|
if (_ === "false" && (_ = !1), !m || !_ || d.path === l && Nt(d.query, c)) return;
|
|
1656
1659
|
l = qe(d.path), c = qe(d.query);
|
|
1657
|
-
const w =
|
|
1660
|
+
const w = F().currentSubAppCode ?? "";
|
|
1658
1661
|
if (!w) return;
|
|
1659
1662
|
const k = ((C = d.query) == null ? void 0 : C.menu) ?? ((M = ce()) == null ? void 0 : M.currentCode) ?? "";
|
|
1660
1663
|
if (!k) return;
|
|
1661
1664
|
const B = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
1662
|
-
B && JSON.stringify(B) !== "{}" && (r.value = (L = B[w][k]) != null && L.fontColor ? B[w][k].fontColor : e, i.value = (N = B[w][k]) != null && N.backgroundColor ? B[w][k].backgroundColor : t, a.value = (
|
|
1665
|
+
B && JSON.stringify(B) !== "{}" && (r.value = (L = B[w][k]) != null && L.fontColor ? B[w][k].fontColor : e, i.value = (N = B[w][k]) != null && N.backgroundColor ? B[w][k].backgroundColor : t, a.value = (W = B[w][k]) != null && W.backgroundColor ? B[w][k].backgroundColor : o);
|
|
1663
1666
|
}
|
|
1664
1667
|
);
|
|
1665
1668
|
const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: b, unloadRoute: g } = pr(), f = (d) => {
|
|
@@ -1671,13 +1674,13 @@ const wt = (n, e = "") => {
|
|
|
1671
1674
|
const m = d.map((_) => _.path);
|
|
1672
1675
|
g(m);
|
|
1673
1676
|
}, y = (d) => {
|
|
1674
|
-
const m =
|
|
1675
|
-
|
|
1677
|
+
const m = F().currentSubAppCode ?? "";
|
|
1678
|
+
te.innerSet = !0;
|
|
1676
1679
|
const _ = ce(), w = _.tabMap[m], k = w.findIndex((L) => L.code === d.data.code);
|
|
1677
1680
|
if (k === -1) return;
|
|
1678
1681
|
const B = () => {
|
|
1679
|
-
var
|
|
1680
|
-
let N = (((
|
|
1682
|
+
var W;
|
|
1683
|
+
let N = (((W = F().appcategorys) == null ? void 0 : W.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
|
|
1681
1684
|
N = { ...N, value: N.code, label: N.name }, s(N), D.nav.removeItem(m);
|
|
1682
1685
|
};
|
|
1683
1686
|
({
|
|
@@ -1687,8 +1690,8 @@ const wt = (n, e = "") => {
|
|
|
1687
1690
|
return;
|
|
1688
1691
|
}
|
|
1689
1692
|
const N = _.currentCode;
|
|
1690
|
-
let
|
|
1691
|
-
N === L.value && (k + 1 === w.length ? w[k - 1] && (
|
|
1693
|
+
let W = null;
|
|
1694
|
+
N === L.value && (k + 1 === w.length ? w[k - 1] && (W = w[k - 1]) : w[k + 1] && (W = w[k + 1])), w.splice(k, 1), v([L]), le([{ key: `tabMap:${m}`, value: w }]), W ? f(W) : le([{ key: `preTab:${m}`, value: {} }]);
|
|
1692
1695
|
},
|
|
1693
1696
|
all: B,
|
|
1694
1697
|
other: async (L) => {
|
|
@@ -1697,24 +1700,24 @@ const wt = (n, e = "") => {
|
|
|
1697
1700
|
path: `/${N.applicationPath}${N.path}`.replace(/\/\//g, "/"),
|
|
1698
1701
|
query: N.query
|
|
1699
1702
|
}), D.menu.setActiveItem(N.menuId), D.tab.setActiveItem(N.code);
|
|
1700
|
-
const
|
|
1701
|
-
|
|
1703
|
+
const W = w.filter((ie) => ie.code !== L.value);
|
|
1704
|
+
W.forEach((ie) => D.tab.removeItem(ie.code)), v(W), le([{ key: `tabMap:${m}`, value: [N] }]), f(N);
|
|
1702
1705
|
},
|
|
1703
1706
|
right: async (L) => {
|
|
1704
1707
|
const N = _.currentCode;
|
|
1705
|
-
if (N !== L.value && w.findIndex((
|
|
1706
|
-
const
|
|
1707
|
-
f(
|
|
1708
|
+
if (N !== L.value && w.findIndex((Se) => Se.code === N) > k) {
|
|
1709
|
+
const Se = w[k];
|
|
1710
|
+
f(Se);
|
|
1708
1711
|
}
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1712
|
+
const W = w.slice(k + 1);
|
|
1713
|
+
W.forEach((ie) => D.tab.removeItem(ie.code)), v(W), w.splice(k + 1), le([{ key: `tabMap:${m}`, value: w }]);
|
|
1711
1714
|
}
|
|
1712
1715
|
})[d.type](d.data);
|
|
1713
1716
|
};
|
|
1714
1717
|
D.tab.addEventListener("onItemClick", async (d) => {
|
|
1715
|
-
ce().currentCode !== d.currentCode && (
|
|
1718
|
+
ce().currentCode !== d.currentCode && (te.innerSet = !0, f(d));
|
|
1716
1719
|
}), D.tab.addEventListener("onItemRemove", (d) => {
|
|
1717
|
-
const m = ce(), _ =
|
|
1720
|
+
const m = ce(), _ = F().currentSubAppCode ?? "";
|
|
1718
1721
|
m.tabMap[_].findIndex((B) => B.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), y({ type: "me", data: d }));
|
|
1719
1722
|
}), D.tab.addEventListener("onMenuClick", (d) => {
|
|
1720
1723
|
let m = [];
|
|
@@ -1741,9 +1744,9 @@ const wt = (n, e = "") => {
|
|
|
1741
1744
|
});
|
|
1742
1745
|
const { enter: p } = lt();
|
|
1743
1746
|
return D.tab.addEventListener("onToggleFullScreen", p), { fontColor: r, backgroudColor: i, borderColor: a };
|
|
1744
|
-
}, Qt =
|
|
1747
|
+
}, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, Eu = () => {
|
|
1745
1748
|
const n = () => {
|
|
1746
|
-
|
|
1749
|
+
X.unloadAllMicroApp(), D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
|
|
1747
1750
|
};
|
|
1748
1751
|
window.addEventListener("beforeunload", function(e) {
|
|
1749
1752
|
if (!(lo || !co || uo) && window.__isAutoCloseApp) {
|
|
@@ -1757,18 +1760,20 @@ const wt = (n, e = "") => {
|
|
|
1757
1760
|
window.__isAutoCloseApp = !0;
|
|
1758
1761
|
return;
|
|
1759
1762
|
}
|
|
1760
|
-
const t =
|
|
1763
|
+
const t = F();
|
|
1761
1764
|
t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
|
|
1762
|
-
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp"))
|
|
1765
|
+
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), X.addEventListenerFromMicroApp("system-reload", () => {
|
|
1766
|
+
n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
1767
|
+
});
|
|
1763
1768
|
}, et = () => {
|
|
1764
1769
|
const n = Ge(), { entryMenu: e } = Ot(), { unloadRoute: t } = pr();
|
|
1765
|
-
let { mainAppName: o = "", microAppName: r = "", microApps: i = [] } =
|
|
1770
|
+
let { mainAppName: o = "", microAppName: r = "", microApps: i = [] } = He();
|
|
1766
1771
|
!o && r && (i = [{ name: r }]);
|
|
1767
1772
|
const a = i.map((g) => g.name), l = () => {
|
|
1768
1773
|
D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
|
|
1769
1774
|
}, c = async (g) => {
|
|
1770
1775
|
if (g.routeUrl && !a.includes(g.routeUrl)) return !0;
|
|
1771
|
-
const f = g.code ?? "", y = (
|
|
1776
|
+
const f = g.code ?? "", y = (F().subAppList ?? []).find((w) => w.code === f);
|
|
1772
1777
|
let p = [], d = [], m = !1;
|
|
1773
1778
|
if (y && (p = y.menus ?? []), !p.length) {
|
|
1774
1779
|
const { menus: w, originalMenus: k, err: B } = await mn(f);
|
|
@@ -1779,20 +1784,20 @@ const wt = (n, e = "") => {
|
|
|
1779
1784
|
const _ = { ...g, menus: p, originalMenus: d };
|
|
1780
1785
|
return Ae([{ key: "subAppList", value: _ }]), !0;
|
|
1781
1786
|
}, s = async (g) => {
|
|
1782
|
-
var N,
|
|
1787
|
+
var N, W, ie, Se, ft;
|
|
1783
1788
|
const { microApp: f = null, menuCode: v = "", menuPath: y = "", route: p = {} } = g;
|
|
1784
1789
|
let d = p;
|
|
1785
1790
|
if (l(), !f && y) {
|
|
1786
|
-
if (!(a && a.find((
|
|
1787
|
-
|
|
1791
|
+
if (!(a && a.find((G) => y.startsWith("/" + G) || y.startsWith(G)))) return;
|
|
1792
|
+
n.push({ path: y, query: d.query });
|
|
1788
1793
|
return;
|
|
1789
1794
|
}
|
|
1790
1795
|
const m = ((N = d.meta) == null ? void 0 : N.showLayout) ?? !0;
|
|
1791
|
-
let _ = ((
|
|
1796
|
+
let _ = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
|
|
1792
1797
|
_ === "false" && (_ = !1);
|
|
1793
1798
|
const w = (f == null ? void 0 : f.openType) ?? 1, k = (f == null ? void 0 : f.type) ?? 1;
|
|
1794
1799
|
if (f.routeUrl && !a.includes(f.routeUrl)) {
|
|
1795
|
-
const oe = ((ie =
|
|
1800
|
+
const oe = ((ie = F()) == null ? void 0 : ie.subAppList) ?? [];
|
|
1796
1801
|
if ((oe == null ? void 0 : oe.find((fe) => fe.code === f.code)) || oe == null || oe.push(f), Ae([
|
|
1797
1802
|
{ key: "currentSubApp", value: f },
|
|
1798
1803
|
{ key: "currentSubAppCode", value: f.code },
|
|
@@ -1800,13 +1805,13 @@ const wt = (n, e = "") => {
|
|
|
1800
1805
|
]), oe.forEach((fe) => {
|
|
1801
1806
|
const Oe = { ...fe, value: fe.code, label: fe.name };
|
|
1802
1807
|
D.nav.appendItem(Oe);
|
|
1803
|
-
}), D.nav.setActiveItem(f.code),
|
|
1804
|
-
|
|
1808
|
+
}), D.nav.setActiveItem(f.code), X.hideAllMicroApp(), f.routeUrl.includes("entrance=main")) {
|
|
1809
|
+
n.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
|
|
1805
1810
|
return;
|
|
1806
1811
|
}
|
|
1807
1812
|
if (w === 1 && k === 2) {
|
|
1808
1813
|
const fe = Wt(Ut(Ft(f.routeUrl)));
|
|
1809
|
-
|
|
1814
|
+
n.push({
|
|
1810
1815
|
path: Je,
|
|
1811
1816
|
query: {
|
|
1812
1817
|
...d.query,
|
|
@@ -1819,25 +1824,25 @@ const wt = (n, e = "") => {
|
|
|
1819
1824
|
}
|
|
1820
1825
|
const {
|
|
1821
1826
|
menuConfig: B = [],
|
|
1822
|
-
currentApp:
|
|
1823
|
-
currentMenu:
|
|
1827
|
+
currentApp: E = null,
|
|
1828
|
+
currentMenu: S = null,
|
|
1824
1829
|
microPath: C = "",
|
|
1825
1830
|
query: M = {}
|
|
1826
1831
|
} = await Fl({ microApp: f, menuCode: v, menuPath: y, route: d });
|
|
1827
|
-
if (
|
|
1828
|
-
path: C || `/${
|
|
1829
|
-
query: { ...M, app:
|
|
1832
|
+
if (S && (d = {
|
|
1833
|
+
path: C || `/${S.applicationPath}${S.routeUrl}`.replace(/\/\//g, "/"),
|
|
1834
|
+
query: { ...M, app: S.applicationCode, menu: S.code },
|
|
1830
1835
|
meta: { ...(d == null ? void 0 : d.meta) ?? {} }
|
|
1831
|
-
}),
|
|
1832
|
-
if (
|
|
1833
|
-
const oe = (
|
|
1834
|
-
await s({ microApp: oe, menuCode: (
|
|
1836
|
+
}), E && (E == null ? void 0 : E.code) !== (f == null ? void 0 : f.code)) {
|
|
1837
|
+
if (E.fixed && (D.menu.setItems([]), D.tab.setItems([]), n.push(E.path), D.nav.setActiveItem(E.path), X.hideAllMicroApp()), !E.fixed) {
|
|
1838
|
+
const oe = (Se = F().subAppList) == null ? void 0 : Se.find((Oe) => Oe.code === E.code), G = ce().preTab[E.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
|
|
1839
|
+
await s({ microApp: oe, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: fe } });
|
|
1835
1840
|
}
|
|
1836
1841
|
return;
|
|
1837
1842
|
}
|
|
1838
|
-
const L =
|
|
1839
|
-
if (!
|
|
1840
|
-
|
|
1843
|
+
const L = E || f;
|
|
1844
|
+
if (!S && y) {
|
|
1845
|
+
n.push({
|
|
1841
1846
|
path: y,
|
|
1842
1847
|
query: {
|
|
1843
1848
|
...d.query,
|
|
@@ -1847,34 +1852,34 @@ const wt = (n, e = "") => {
|
|
|
1847
1852
|
return;
|
|
1848
1853
|
}
|
|
1849
1854
|
if (m && _) {
|
|
1850
|
-
(ft =
|
|
1851
|
-
const fe = { ...
|
|
1855
|
+
(ft = F().subAppList) == null || ft.forEach((G) => {
|
|
1856
|
+
const fe = { ...G, value: G.code, label: G.name };
|
|
1852
1857
|
D.nav.appendItem(fe);
|
|
1853
1858
|
}), D.nav.setActiveItem(L.code), D.menu.setItems(B);
|
|
1854
1859
|
const oe = ce().tabMap[L.code] ?? [];
|
|
1855
|
-
oe.length && oe.forEach((
|
|
1860
|
+
oe.length && oe.forEach((G) => {
|
|
1856
1861
|
D.tab.appendItem({
|
|
1857
|
-
...
|
|
1858
|
-
value:
|
|
1859
|
-
label:
|
|
1862
|
+
...G,
|
|
1863
|
+
value: G.code,
|
|
1864
|
+
label: G.name
|
|
1860
1865
|
});
|
|
1861
1866
|
});
|
|
1862
1867
|
}
|
|
1863
|
-
e({ currentMenu:
|
|
1868
|
+
e({ currentMenu: S, microPath: C, route: d });
|
|
1864
1869
|
}, u = async (g) => {
|
|
1865
1870
|
var f;
|
|
1866
|
-
if (
|
|
1867
|
-
D.menu.setItems([]), D.tab.setItems([]),
|
|
1871
|
+
if (te.innerSet = !0, g.fixed) {
|
|
1872
|
+
D.menu.setItems([]), D.tab.setItems([]), n.push(g.path), D.nav.setActiveItem(g.path), Ae([
|
|
1868
1873
|
{ key: "currentSubAppCode", value: "" },
|
|
1869
1874
|
{ key: "currentSubApp", value: {} }
|
|
1870
1875
|
]), le([
|
|
1871
1876
|
{ key: "currentCode", value: "" },
|
|
1872
1877
|
{ key: "currentTab", value: {} }
|
|
1873
|
-
]),
|
|
1878
|
+
]), X.hideAllMicroApp();
|
|
1874
1879
|
return;
|
|
1875
1880
|
}
|
|
1876
1881
|
if (!g.fixed) {
|
|
1877
|
-
const v = (f =
|
|
1882
|
+
const v = (f = F().subAppList) == null ? void 0 : f.find((m) => m.code === g.code), y = ce().preTab[g.code], p = (y == null ? void 0 : y.code) ?? "", d = { ...(y == null ? void 0 : y.query) ?? {} };
|
|
1878
1883
|
await s({ microApp: v, menuCode: p, route: { query: d } });
|
|
1879
1884
|
}
|
|
1880
1885
|
};
|
|
@@ -1884,7 +1889,7 @@ const wt = (n, e = "") => {
|
|
|
1884
1889
|
changeApp: u,
|
|
1885
1890
|
deleteApp: async (g) => {
|
|
1886
1891
|
var d;
|
|
1887
|
-
const f =
|
|
1892
|
+
const f = F();
|
|
1888
1893
|
if (!((d = f.subAppList) != null && d.length)) return;
|
|
1889
1894
|
const v = f.subAppList.findIndex((m) => m.code === g.code);
|
|
1890
1895
|
if (v === -1) return;
|
|
@@ -1903,13 +1908,13 @@ const wt = (n, e = "") => {
|
|
|
1903
1908
|
}
|
|
1904
1909
|
if (!f.subAppList.length) {
|
|
1905
1910
|
const m = Oo[1];
|
|
1906
|
-
D.menu.setItems([]), D.tab.setItems([]),
|
|
1911
|
+
D.menu.setItems([]), D.tab.setItems([]), X.unloadAllMicroApp(), u(m), ln(), Ro();
|
|
1907
1912
|
}
|
|
1908
1913
|
}
|
|
1909
1914
|
};
|
|
1910
1915
|
}, Ot = () => {
|
|
1911
1916
|
const n = Ge();
|
|
1912
|
-
let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } =
|
|
1917
|
+
let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
|
|
1913
1918
|
return !e && t && (o = [{ name: t }]), o.map((i) => i.name), { entryMenu: async (i) => {
|
|
1914
1919
|
var y;
|
|
1915
1920
|
const { currentMenu: a, route: l = {}, microPath: c = "" } = i;
|
|
@@ -1920,18 +1925,18 @@ const wt = (n, e = "") => {
|
|
|
1920
1925
|
if (u === 1)
|
|
1921
1926
|
if (b === 1)
|
|
1922
1927
|
if (a.routeUrl.startsWith(Je)) {
|
|
1923
|
-
|
|
1928
|
+
X.hideAllMicroApp(), g = Je;
|
|
1924
1929
|
const p = Vr(a.routeUrl, "iframeSrc");
|
|
1925
|
-
s = { ...s, iframeSrc: p },
|
|
1926
|
-
} else a.applicationPath && (g = c || a.routeUrl, g = `/${a.applicationPath}${g}`.replace(/\/\//g, "/"),
|
|
1930
|
+
s = { ...s, iframeSrc: p }, n.push({ path: g, query: s });
|
|
1931
|
+
} else a.applicationPath && (g = c || a.routeUrl, g = `/${a.applicationPath}${g}`.replace(/\/\//g, "/"), n.push({ path: g, query: s }));
|
|
1927
1932
|
else {
|
|
1928
|
-
|
|
1933
|
+
X.hideAllMicroApp(), g = Je;
|
|
1929
1934
|
const p = Wt(Ut(Ft(a.routeUrl)));
|
|
1930
|
-
s = { ...s, iframeSrc: p },
|
|
1935
|
+
s = { ...s, iframeSrc: p }, n.push({ path: g, query: s });
|
|
1931
1936
|
}
|
|
1932
1937
|
if (u === 2) {
|
|
1933
1938
|
let p = b === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
|
|
1934
|
-
p = Wt(Ut(Ft(p))),
|
|
1939
|
+
p = Wt(Ut(Ft(p))), te.innerSet ? (X.hideAllMicroApp(), g = Do, n.push({ path: g, query: s }), p && window.open(p, "_blank")) : b === 1 && (g = p, s = { ...s, showLayout: !1 }, n.push({
|
|
1935
1940
|
path: g,
|
|
1936
1941
|
query: s
|
|
1937
1942
|
}));
|
|
@@ -1940,7 +1945,7 @@ const wt = (n, e = "") => {
|
|
|
1940
1945
|
let v = (s == null ? void 0 : s.showLayout) ?? !0;
|
|
1941
1946
|
if (v === "false" && (v = !1), f && v) {
|
|
1942
1947
|
const p = {
|
|
1943
|
-
currentApplication:
|
|
1948
|
+
currentApplication: F().currentSubApp.routeUrl,
|
|
1944
1949
|
applicationPath: a.applicationPath,
|
|
1945
1950
|
applicationCode: a.applicationCode,
|
|
1946
1951
|
menuId: a.id,
|
|
@@ -1973,32 +1978,32 @@ const wt = (n, e = "") => {
|
|
|
1973
1978
|
]);
|
|
1974
1979
|
}
|
|
1975
1980
|
} };
|
|
1976
|
-
},
|
|
1981
|
+
}, Su = (n, e, t) => {
|
|
1977
1982
|
const { entryApp: o } = et(), r = Ge(), i = async (c) => {
|
|
1978
1983
|
var _, w, k, B;
|
|
1979
1984
|
let s = { ...c }, { showLayout: u = !0 } = s.query;
|
|
1980
1985
|
u === "false" && (u = !1);
|
|
1981
1986
|
const b = async () => {
|
|
1982
1987
|
var C, M;
|
|
1983
|
-
let
|
|
1984
|
-
if (!Array.isArray(
|
|
1988
|
+
let E = F().appcategorys ?? [];
|
|
1989
|
+
if (!Array.isArray(E)) return [];
|
|
1985
1990
|
if (s.query) {
|
|
1986
1991
|
const L = ((C = s.query) == null ? void 0 : C.project) ?? ((M = s.query) == null ? void 0 : M.projectId) ?? "";
|
|
1987
|
-
if (!
|
|
1992
|
+
if (!E.length || L && L !== Pe().id) {
|
|
1988
1993
|
await e();
|
|
1989
1994
|
const { navConfig: N } = await lr();
|
|
1990
|
-
N && (
|
|
1995
|
+
N && (E = N);
|
|
1991
1996
|
}
|
|
1992
1997
|
}
|
|
1993
|
-
return
|
|
1994
|
-
}, g =
|
|
1998
|
+
return E.map((L) => L.apps).flat() ?? [];
|
|
1999
|
+
}, g = He().microApps ?? [], f = g.filter((E) => E.public);
|
|
1995
2000
|
if (f.length) {
|
|
1996
|
-
const
|
|
1997
|
-
(
|
|
2001
|
+
const E = f.find(
|
|
2002
|
+
(S) => s.path.startsWith("/" + S.name) || s.path.startsWith(S.name)
|
|
1998
2003
|
);
|
|
1999
|
-
if (
|
|
2004
|
+
if (E) {
|
|
2000
2005
|
o({
|
|
2001
|
-
microApp: { routeUrl:
|
|
2006
|
+
microApp: { routeUrl: E.name, code: "" },
|
|
2002
2007
|
menuCode: s.query.menu,
|
|
2003
2008
|
menuPath: s.path,
|
|
2004
2009
|
route: s
|
|
@@ -2006,12 +2011,12 @@ const wt = (n, e = "") => {
|
|
|
2006
2011
|
return;
|
|
2007
2012
|
}
|
|
2008
2013
|
}
|
|
2009
|
-
const v = await b(), y = v.map((
|
|
2014
|
+
const v = await b(), y = v.map((E) => E.code), p = ((_ = s.query) == null ? void 0 : _.app) ?? "", d = ((w = F()) == null ? void 0 : w.subAppList) ?? [];
|
|
2010
2015
|
if (d.length) {
|
|
2011
|
-
const
|
|
2016
|
+
const E = d.filter((C) => C.code !== p && !y.includes(C.code)), S = d.filter(
|
|
2012
2017
|
(C) => p === C.code || y.includes(C.code)
|
|
2013
2018
|
);
|
|
2014
|
-
Ae([{ key: "subAppList", value:
|
|
2019
|
+
Ae([{ key: "subAppList", value: S }]), E && E.length && E.forEach((C) => {
|
|
2015
2020
|
le([
|
|
2016
2021
|
{ key: `preTab:${C.code}`, value: {} },
|
|
2017
2022
|
{ key: `tabMap:${C.code}`, value: [] }
|
|
@@ -2019,27 +2024,27 @@ const wt = (n, e = "") => {
|
|
|
2019
2024
|
});
|
|
2020
2025
|
}
|
|
2021
2026
|
if (s.query.app) {
|
|
2022
|
-
let
|
|
2023
|
-
if (!
|
|
2024
|
-
const { currentApp:
|
|
2025
|
-
if (
|
|
2026
|
-
|
|
2027
|
-
const M = (ce().preTab ?? {})[
|
|
2027
|
+
let E = v.find((S) => S.code === s.query.app);
|
|
2028
|
+
if (!E && u) {
|
|
2029
|
+
const { currentApp: S } = Gt(s.query.app);
|
|
2030
|
+
if (S) {
|
|
2031
|
+
E = S;
|
|
2032
|
+
const M = (ce().preTab ?? {})[E.code];
|
|
2028
2033
|
s = {}, M && (s.path = `/${M.applicationPath}${M.path}`.replace(/\/\//g, "/"), s.query = M.query);
|
|
2029
2034
|
}
|
|
2030
2035
|
}
|
|
2031
|
-
|
|
2036
|
+
E != null && E.fixed ? (D.menu.setItems([]), D.tab.setItems([]), r.push(E.path), D.nav.setActiveItem(E.path), X.hideAllMicroApp()) : o({ microApp: E, menuCode: s.query.menu, menuPath: s.path, route: s });
|
|
2032
2037
|
return;
|
|
2033
2038
|
} else {
|
|
2034
|
-
const
|
|
2035
|
-
(
|
|
2039
|
+
const E = g && g.find(
|
|
2040
|
+
(S) => s.path.startsWith("/" + S.name) || s.path.startsWith(S.name)
|
|
2036
2041
|
);
|
|
2037
|
-
if (
|
|
2038
|
-
let
|
|
2039
|
-
|
|
2040
|
-
(C) => (C == null ? void 0 : C.routePath) && C.routePath.length && C.routePath.includes(
|
|
2042
|
+
if (E) {
|
|
2043
|
+
let S = v.find((C) => C.routeUrl === E.name);
|
|
2044
|
+
S || (S = v.find(
|
|
2045
|
+
(C) => (C == null ? void 0 : C.routePath) && C.routePath.length && C.routePath.includes(E.name)
|
|
2041
2046
|
)), o({
|
|
2042
|
-
microApp:
|
|
2047
|
+
microApp: S,
|
|
2043
2048
|
menuCode: s.query.menu,
|
|
2044
2049
|
menuPath: s.path,
|
|
2045
2050
|
route: s
|
|
@@ -2047,11 +2052,11 @@ const wt = (n, e = "") => {
|
|
|
2047
2052
|
return;
|
|
2048
2053
|
}
|
|
2049
2054
|
}
|
|
2050
|
-
const m = n.value.find((
|
|
2051
|
-
m && D.nav.setActiveItem(m.path), (B = (k =
|
|
2052
|
-
const
|
|
2053
|
-
D.nav.appendItem(
|
|
2054
|
-
}), D.menu.setItems([]), D.tab.setItems([]),
|
|
2055
|
+
const m = n.value.find((E) => E.path === location.pathname);
|
|
2056
|
+
m && D.nav.setActiveItem(m.path), (B = (k = F()) == null ? void 0 : k.subAppList) == null || B.forEach((E) => {
|
|
2057
|
+
const S = { ...E, value: E.code, label: E.name };
|
|
2058
|
+
D.nav.appendItem(S);
|
|
2059
|
+
}), D.menu.setItems([]), D.tab.setItems([]), X.hideAllMicroApp(), Ae([
|
|
2055
2060
|
{ key: "currentSubAppCode", value: "" },
|
|
2056
2061
|
{ key: "currentSubApp", value: {} }
|
|
2057
2062
|
]), le([
|
|
@@ -2064,8 +2069,8 @@ const wt = (n, e = "") => {
|
|
|
2064
2069
|
() => r.currentRoute.value,
|
|
2065
2070
|
async (c) => {
|
|
2066
2071
|
if (!(c.path === a && Nt(c.query, l))) {
|
|
2067
|
-
if (a = qe(c.path), l = qe(c.query), await t(),
|
|
2068
|
-
|
|
2072
|
+
if (a = qe(c.path), l = qe(c.query), await t(), te.innerSet) {
|
|
2073
|
+
te.innerSet = !1;
|
|
2069
2074
|
return;
|
|
2070
2075
|
}
|
|
2071
2076
|
i(c);
|
|
@@ -2073,15 +2078,15 @@ const wt = (n, e = "") => {
|
|
|
2073
2078
|
}
|
|
2074
2079
|
);
|
|
2075
2080
|
}, pr = () => ({ reloadRoute: (t) => {
|
|
2076
|
-
|
|
2077
|
-
|
|
2081
|
+
te.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...te.excludeRoutes, ...t])), te.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
2082
|
+
te.routeKeepAliveVisible = !0, te.excludeRoutes = [];
|
|
2078
2083
|
}, 300);
|
|
2079
2084
|
}, unloadRoute: (t) => {
|
|
2080
|
-
|
|
2081
|
-
|
|
2085
|
+
te.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...te.excludeRoutes, ...t])), te.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
2086
|
+
te.routeKeepAliveVisible = !0, te.excludeRoutes = [];
|
|
2082
2087
|
}, 100);
|
|
2083
2088
|
} }), Tu = () => {
|
|
2084
|
-
const n = jr(), e = mu(), t =
|
|
2089
|
+
const n = jr(), e = mu(), t = He(), o = {
|
|
2085
2090
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
2086
2091
|
}, r = async () => {
|
|
2087
2092
|
const l = `${location.origin}/`, c = {
|
|
@@ -2098,7 +2103,7 @@ const wt = (n, e = "") => {
|
|
|
2098
2103
|
const s = Object.keys(c).map((b) => `${b}=${c[b]}`).join("&"), u = `${t.baseURL}${o.logout}?${s}`;
|
|
2099
2104
|
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Yr(), localStorage.removeItem("idelTime");
|
|
2100
2105
|
}, { entryApp: i } = et(), a = async () => {
|
|
2101
|
-
const l = "personCenter", s = (
|
|
2106
|
+
const l = "personCenter", s = (F().appcategorys || []).map((v) => v.apps).flat(), { originalMenus: u = [] } = await mn(l), g = ye(u).filter((v) => v.isMenu && v.routeUrl).find((v) => v.routeUrl === "/userInfo");
|
|
2102
2107
|
if (g != null && g.disable || g != null && g.expired) {
|
|
2103
2108
|
const { title: v, content: y, desc: p } = await vn(g);
|
|
2104
2109
|
await rt({ title: v, content: y, desc: p });
|
|
@@ -2119,9 +2124,9 @@ const wt = (n, e = "") => {
|
|
|
2119
2124
|
$changePwd: n,
|
|
2120
2125
|
$personSetDialog: e
|
|
2121
2126
|
};
|
|
2122
|
-
}, ku =
|
|
2123
|
-
const n =
|
|
2124
|
-
t.value =
|
|
2127
|
+
}, ku = So.get("/convert/tenant"), Pu = en.get("/platform/withdefault"), fr = () => {
|
|
2128
|
+
const n = He(), e = T(!1), t = T(""), o = T(""), r = () => {
|
|
2129
|
+
t.value = St().id, o.value = Co().tenantId, e.value = !0;
|
|
2125
2130
|
};
|
|
2126
2131
|
D.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
2127
2132
|
r();
|
|
@@ -2143,7 +2148,7 @@ const wt = (n, e = "") => {
|
|
|
2143
2148
|
refreshToken: b,
|
|
2144
2149
|
info: s
|
|
2145
2150
|
};
|
|
2146
|
-
ts().save(d),
|
|
2151
|
+
ts().save(d), Eo(d);
|
|
2147
2152
|
const m = {
|
|
2148
2153
|
id: f,
|
|
2149
2154
|
name: v,
|
|
@@ -2191,7 +2196,7 @@ const wt = (n, e = "") => {
|
|
|
2191
2196
|
return;
|
|
2192
2197
|
}
|
|
2193
2198
|
await $u().run({ searchVal: i, clickData: r });
|
|
2194
|
-
const s = ((
|
|
2199
|
+
const s = ((F().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
|
|
2195
2200
|
s && (t({ microApp: s, menuCode: r.code }), a());
|
|
2196
2201
|
}), D.nav.addEventListener("deleteSearchItem", async (o) => {
|
|
2197
2202
|
const { value: r, cb: i } = o;
|
|
@@ -2203,14 +2208,14 @@ const wt = (n, e = "") => {
|
|
|
2203
2208
|
getHistoryList: n,
|
|
2204
2209
|
getSearchList: e
|
|
2205
2210
|
};
|
|
2206
|
-
},
|
|
2211
|
+
}, te = yo({
|
|
2207
2212
|
/** 菜单或者应用跳转是否通过触发界面调用的 */
|
|
2208
2213
|
innerSet: !1,
|
|
2209
2214
|
excludeRoutes: [],
|
|
2210
2215
|
routeKeepAliveVisible: !0
|
|
2211
2216
|
}), Ru = () => {
|
|
2212
|
-
|
|
2213
|
-
const e =
|
|
2217
|
+
X.addEventListenerFromMicroApp("iot:change-instance", (n) => {
|
|
2218
|
+
const e = F(), t = e.currentSubAppCode;
|
|
2214
2219
|
let o = _t(t);
|
|
2215
2220
|
o.forEach((i) => {
|
|
2216
2221
|
i.fixed && (i.name = n.data.instanceInfo.instanceName);
|
|
@@ -2231,27 +2236,27 @@ const wt = (n, e = "") => {
|
|
|
2231
2236
|
});
|
|
2232
2237
|
}, Qu = (n) => {
|
|
2233
2238
|
["personcenter", "rightmanage"].forEach((t) => {
|
|
2234
|
-
|
|
2239
|
+
X.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
|
|
2235
2240
|
const { userInfo: r } = o.data, i = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
|
|
2236
2241
|
D.nav.setUserInfo({ headPicture: i, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
2237
2242
|
});
|
|
2238
2243
|
});
|
|
2239
2244
|
}, ju = () => {
|
|
2240
|
-
|
|
2245
|
+
X.addEventListenerFromMicroApp("devicePanelShow", (n) => {
|
|
2241
2246
|
const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: i = 0, isCenter: a = !1 } = n.data;
|
|
2242
2247
|
ko(e, t, o, r, i, a);
|
|
2243
|
-
}),
|
|
2248
|
+
}), X.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
|
|
2244
2249
|
rs();
|
|
2245
|
-
}),
|
|
2250
|
+
}), X.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
|
|
2246
2251
|
const { deviceId: e = "", panelCode: t = "", alarmTime: o = "" } = n.data;
|
|
2247
2252
|
ss(e, t, o);
|
|
2248
|
-
}),
|
|
2253
|
+
}), X.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
|
|
2249
2254
|
is();
|
|
2250
2255
|
});
|
|
2251
2256
|
}, Hu = nn.get("/platform/login/pwd-advance-notify-check"), Nu = () => {
|
|
2252
2257
|
const n = T([]), e = T(null), t = T([]), { entryApp: o } = bt.hooks.useEntryApp(), r = () => {
|
|
2253
2258
|
var c;
|
|
2254
|
-
const l = (((c =
|
|
2259
|
+
const l = (((c = F().appcategorys) == null ? void 0 : c.map((s) => s.apps).flat()) ?? []).find((s) => s.code === "messagecenter");
|
|
2255
2260
|
l && o({ microApp: l });
|
|
2256
2261
|
}, i = () => {
|
|
2257
2262
|
e.value = new an({
|
|
@@ -2261,7 +2266,7 @@ const wt = (n, e = "") => {
|
|
|
2261
2266
|
await Hu().run();
|
|
2262
2267
|
},
|
|
2263
2268
|
message: async (a) => {
|
|
2264
|
-
if (
|
|
2269
|
+
if (X.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
|
|
2265
2270
|
const c = Pe().id;
|
|
2266
2271
|
n.value = a.filter(
|
|
2267
2272
|
(s) => s.projectId === c || s.projectId === 0 || s.projectId === "0"
|
|
@@ -2296,9 +2301,9 @@ const wt = (n, e = "") => {
|
|
|
2296
2301
|
}
|
|
2297
2302
|
});
|
|
2298
2303
|
};
|
|
2299
|
-
|
|
2304
|
+
Qe(async () => {
|
|
2300
2305
|
await Tt(), i();
|
|
2301
|
-
}),
|
|
2306
|
+
}), Et(() => {
|
|
2302
2307
|
e.value && e.value.disconnect(), e.value = null;
|
|
2303
2308
|
});
|
|
2304
2309
|
}, Uu = "v1", Fu = Xe(`/api/enterpriseright/permission/${Uu}`), hr = Xe("/api/intelligent-security/video/v1", Wu), Ju = rn.get("/permissionset/user-portal-menu");
|
|
@@ -2327,7 +2332,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2327
2332
|
emits: ["itemClick"],
|
|
2328
2333
|
setup(n, { emit: e }) {
|
|
2329
2334
|
Or((u) => ({
|
|
2330
|
-
"
|
|
2335
|
+
"23bfa220": s.value
|
|
2331
2336
|
}));
|
|
2332
2337
|
const t = n, o = e, r = T(), { toggle: i, isFullscreen: a } = lt(r), l = () => {
|
|
2333
2338
|
r.value != document.fullscreenElement && (a.value ? (a.value = !1, Fe(() => {
|
|
@@ -2346,13 +2351,13 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2346
2351
|
onClick: b[1] || (b[1] = (g) => c())
|
|
2347
2352
|
},
|
|
2348
2353
|
[
|
|
2349
|
-
|
|
2354
|
+
$e(u.$slots, "default", {}, void 0, !0)
|
|
2350
2355
|
],
|
|
2351
2356
|
34
|
|
2352
2357
|
/* CLASS, NEED_HYDRATION */
|
|
2353
2358
|
));
|
|
2354
2359
|
}
|
|
2355
|
-
}), Ku = /* @__PURE__ */ Ie(qu, [["__scopeId", "data-v-
|
|
2360
|
+
}), Ku = /* @__PURE__ */ Ie(qu, [["__scopeId", "data-v-68946aef"]]), Gu = { class: "layout-wrapper" }, Xu = /* @__PURE__ */ pe({
|
|
2356
2361
|
__name: "GridLayout",
|
|
2357
2362
|
props: {
|
|
2358
2363
|
gridNum: {},
|
|
@@ -2369,13 +2374,13 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2369
2374
|
(H(!0), de(
|
|
2370
2375
|
We,
|
|
2371
2376
|
null,
|
|
2372
|
-
_o(t.gridNum, (l, c) => (H(),
|
|
2377
|
+
_o(t.gridNum, (l, c) => (H(), V(Ku, {
|
|
2373
2378
|
active: !1,
|
|
2374
2379
|
"grid-num": t.gridNum,
|
|
2375
2380
|
onItemClick: (s) => r(c)
|
|
2376
2381
|
}, {
|
|
2377
|
-
default:
|
|
2378
|
-
i.showFn(c) ?
|
|
2382
|
+
default: x(() => [
|
|
2383
|
+
i.showFn(c) ? $e(i.$slots, "default", {
|
|
2379
2384
|
key: 0,
|
|
2380
2385
|
index: c
|
|
2381
2386
|
}, void 0, !0) : U("v-if", !0)
|
|
@@ -2388,7 +2393,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2388
2393
|
))
|
|
2389
2394
|
]));
|
|
2390
2395
|
}
|
|
2391
|
-
}), Zu = /* @__PURE__ */ Ie(Xu, [["__scopeId", "data-v-
|
|
2396
|
+
}), Zu = /* @__PURE__ */ Ie(Xu, [["__scopeId", "data-v-22baf4d8"]]), Yu = /* @__PURE__ */ pe({
|
|
2392
2397
|
__name: "DirectionControl",
|
|
2393
2398
|
emits: ["change"],
|
|
2394
2399
|
setup(n, { emit: e }) {
|
|
@@ -2402,8 +2407,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2402
2407
|
onDblclick: i[9] || (i[9] = ne((a) => a.stopPropagation(), ["stop"]))
|
|
2403
2408
|
},
|
|
2404
2409
|
[
|
|
2405
|
-
|
|
2406
|
-
default:
|
|
2410
|
+
R(A(ae), { content: "左上" }, {
|
|
2411
|
+
default: x(() => [
|
|
2407
2412
|
$("div", {
|
|
2408
2413
|
class: "icon icon-top-left",
|
|
2409
2414
|
onClick: i[0] || (i[0] = ne((a) => o("leftUp"), ["stop"]))
|
|
@@ -2412,8 +2417,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2412
2417
|
_: 1
|
|
2413
2418
|
/* STABLE */
|
|
2414
2419
|
}),
|
|
2415
|
-
|
|
2416
|
-
default:
|
|
2420
|
+
R(A(ae), { content: "上" }, {
|
|
2421
|
+
default: x(() => [
|
|
2417
2422
|
$("div", {
|
|
2418
2423
|
class: "icon icon-top",
|
|
2419
2424
|
onClick: i[1] || (i[1] = ne((a) => o("up"), ["stop"]))
|
|
@@ -2422,8 +2427,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2422
2427
|
_: 1
|
|
2423
2428
|
/* STABLE */
|
|
2424
2429
|
}),
|
|
2425
|
-
|
|
2426
|
-
default:
|
|
2430
|
+
R(A(ae), { content: "右上" }, {
|
|
2431
|
+
default: x(() => [
|
|
2427
2432
|
$("div", {
|
|
2428
2433
|
class: "icon icon-top-right",
|
|
2429
2434
|
onClick: i[2] || (i[2] = ne((a) => o("rightUp"), ["stop"]))
|
|
@@ -2432,8 +2437,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2432
2437
|
_: 1
|
|
2433
2438
|
/* STABLE */
|
|
2434
2439
|
}),
|
|
2435
|
-
|
|
2436
|
-
default:
|
|
2440
|
+
R(A(ae), { content: "左" }, {
|
|
2441
|
+
default: x(() => [
|
|
2437
2442
|
$("div", {
|
|
2438
2443
|
class: "icon icon-left",
|
|
2439
2444
|
onClick: i[3] || (i[3] = ne((a) => o("left"), ["stop"]))
|
|
@@ -2442,8 +2447,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2442
2447
|
_: 1
|
|
2443
2448
|
/* STABLE */
|
|
2444
2449
|
}),
|
|
2445
|
-
|
|
2446
|
-
default:
|
|
2450
|
+
R(A(ae), { content: "自动" }, {
|
|
2451
|
+
default: x(() => [
|
|
2447
2452
|
$("div", {
|
|
2448
2453
|
class: "icon icon-auto",
|
|
2449
2454
|
onClick: i[4] || (i[4] = ne((a) => o("auto"), ["stop"]))
|
|
@@ -2452,8 +2457,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2452
2457
|
_: 1
|
|
2453
2458
|
/* STABLE */
|
|
2454
2459
|
}),
|
|
2455
|
-
|
|
2456
|
-
default:
|
|
2460
|
+
R(A(ae), { content: "右" }, {
|
|
2461
|
+
default: x(() => [
|
|
2457
2462
|
$("div", {
|
|
2458
2463
|
class: "icon icon-right",
|
|
2459
2464
|
onClick: i[5] || (i[5] = ne((a) => o("right"), ["stop"]))
|
|
@@ -2462,8 +2467,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2462
2467
|
_: 1
|
|
2463
2468
|
/* STABLE */
|
|
2464
2469
|
}),
|
|
2465
|
-
|
|
2466
|
-
default:
|
|
2470
|
+
R(A(ae), { content: "左下" }, {
|
|
2471
|
+
default: x(() => [
|
|
2467
2472
|
$("div", {
|
|
2468
2473
|
class: "icon icon-bottom-left",
|
|
2469
2474
|
onClick: i[6] || (i[6] = ne((a) => o("leftDown"), ["stop"]))
|
|
@@ -2472,8 +2477,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2472
2477
|
_: 1
|
|
2473
2478
|
/* STABLE */
|
|
2474
2479
|
}),
|
|
2475
|
-
|
|
2476
|
-
default:
|
|
2480
|
+
R(A(ae), { content: "下" }, {
|
|
2481
|
+
default: x(() => [
|
|
2477
2482
|
$("div", {
|
|
2478
2483
|
class: "icon icon-bottom",
|
|
2479
2484
|
onClick: i[7] || (i[7] = ne((a) => o("down"), ["stop"]))
|
|
@@ -2482,8 +2487,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2482
2487
|
_: 1
|
|
2483
2488
|
/* STABLE */
|
|
2484
2489
|
}),
|
|
2485
|
-
|
|
2486
|
-
default:
|
|
2490
|
+
R(A(ae), { content: "右下" }, {
|
|
2491
|
+
default: x(() => [
|
|
2487
2492
|
$("div", {
|
|
2488
2493
|
class: "icon icon-bottom-right",
|
|
2489
2494
|
onClick: i[8] || (i[8] = ne((a) => o("rightDown"), ["stop"]))
|
|
@@ -2497,7 +2502,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2497
2502
|
/* NEED_HYDRATION */
|
|
2498
2503
|
));
|
|
2499
2504
|
}
|
|
2500
|
-
}), ed = /* @__PURE__ */ Ie(Yu, [["__scopeId", "data-v-
|
|
2505
|
+
}), ed = /* @__PURE__ */ Ie(Yu, [["__scopeId", "data-v-69100474"]]), td = (n) => (bo("data-v-6c626546"), n = n(), wo(), n), nd = { class: "video-wrapper" }, od = { class: "video-top" }, rd = { class: "video-top_l" }, sd = { class: "video-title-wrapper" }, id = { class: "video-title" }, ad = { class: "video-top_r" }, cd = {
|
|
2501
2506
|
key: 0,
|
|
2502
2507
|
class: "play-status"
|
|
2503
2508
|
}, ld = { class: "video-bottom" }, ud = /* @__PURE__ */ td(() => /* @__PURE__ */ $(
|
|
@@ -2546,8 +2551,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2546
2551
|
w == null || w.drawImage(c.value, 0, 0, _.width, _.height);
|
|
2547
2552
|
const k = _.toDataURL("image/jpg"), B = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
2548
2553
|
if (v.value = k, "download" in document.createElement("a")) {
|
|
2549
|
-
const
|
|
2550
|
-
|
|
2554
|
+
const E = document.createElement("a");
|
|
2555
|
+
E.download = B, E.style.display = "none", E.href = k, document.body.appendChild(E), document.body.appendChild(_), E.click(), URL.revokeObjectURL(E.href), document.body.removeChild(E), document.body.removeChild(_);
|
|
2551
2556
|
}
|
|
2552
2557
|
}
|
|
2553
2558
|
}, p = (_) => {
|
|
@@ -2597,12 +2602,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2597
2602
|
});
|
|
2598
2603
|
}
|
|
2599
2604
|
), (_, w) => (H(), de("div", nd, [
|
|
2600
|
-
|
|
2605
|
+
R(A(Bo), {
|
|
2601
2606
|
spinning: t.loading,
|
|
2602
2607
|
type: "component",
|
|
2603
2608
|
tip: "加载中..."
|
|
2604
2609
|
}, {
|
|
2605
|
-
default:
|
|
2610
|
+
default: x(() => [
|
|
2606
2611
|
$("div", od, [
|
|
2607
2612
|
$("div", rd, [
|
|
2608
2613
|
$("div", sd, [
|
|
@@ -2620,7 +2625,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2620
2625
|
U(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
2621
2626
|
])
|
|
2622
2627
|
]),
|
|
2623
|
-
t.videoUrl && u.value ? (H(),
|
|
2628
|
+
t.videoUrl && u.value ? (H(), V(A(cs), {
|
|
2624
2629
|
key: 0,
|
|
2625
2630
|
type: "flv",
|
|
2626
2631
|
ref_key: "dasLivePlayerRef",
|
|
@@ -2639,9 +2644,9 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2639
2644
|
onDblclick: w[2] || (w[2] = ne((k) => k.stopPropagation(), ["stop"]))
|
|
2640
2645
|
},
|
|
2641
2646
|
[
|
|
2642
|
-
|
|
2643
|
-
default:
|
|
2644
|
-
|
|
2647
|
+
R(A(ae), { content: "声音" }, {
|
|
2648
|
+
default: x(() => [
|
|
2649
|
+
R(A(De), {
|
|
2645
2650
|
class: "icon icon-volume",
|
|
2646
2651
|
icon: r.value ? "muted" : "volume",
|
|
2647
2652
|
onClick: ne(g, ["stop"])
|
|
@@ -2650,9 +2655,9 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2650
2655
|
_: 1
|
|
2651
2656
|
/* STABLE */
|
|
2652
2657
|
}),
|
|
2653
|
-
|
|
2654
|
-
default:
|
|
2655
|
-
|
|
2658
|
+
R(A(ae), { content: "截图" }, {
|
|
2659
|
+
default: x(() => [
|
|
2660
|
+
R(A(De), {
|
|
2656
2661
|
class: "icon icon-screenshot",
|
|
2657
2662
|
icon: "screenshot",
|
|
2658
2663
|
onClick: ne(y, ["stop"])
|
|
@@ -2661,12 +2666,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2661
2666
|
_: 1
|
|
2662
2667
|
/* STABLE */
|
|
2663
2668
|
}),
|
|
2664
|
-
m("control") ? (H(),
|
|
2669
|
+
m("control") ? (H(), V(A(ae), {
|
|
2665
2670
|
key: 0,
|
|
2666
2671
|
content: "聚焦-"
|
|
2667
2672
|
}, {
|
|
2668
|
-
default:
|
|
2669
|
-
["live", "polling"].includes(t.type) ? (H(),
|
|
2673
|
+
default: x(() => [
|
|
2674
|
+
["live", "polling"].includes(t.type) ? (H(), V(A(De), {
|
|
2670
2675
|
key: 0,
|
|
2671
2676
|
class: "icon icon-shrink",
|
|
2672
2677
|
icon: "shrink",
|
|
@@ -2676,12 +2681,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2676
2681
|
_: 1
|
|
2677
2682
|
/* STABLE */
|
|
2678
2683
|
})) : U("v-if", !0),
|
|
2679
|
-
m("control") ? (H(),
|
|
2684
|
+
m("control") ? (H(), V(A(ae), {
|
|
2680
2685
|
key: 1,
|
|
2681
2686
|
content: "聚焦+"
|
|
2682
2687
|
}, {
|
|
2683
|
-
default:
|
|
2684
|
-
["live", "polling"].includes(t.type) ? (H(),
|
|
2688
|
+
default: x(() => [
|
|
2689
|
+
["live", "polling"].includes(t.type) ? (H(), V(A(De), {
|
|
2685
2690
|
key: 0,
|
|
2686
2691
|
class: "icon icon-enlarge",
|
|
2687
2692
|
icon: "enlarge",
|
|
@@ -2691,12 +2696,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2691
2696
|
_: 1
|
|
2692
2697
|
/* STABLE */
|
|
2693
2698
|
})) : U("v-if", !0),
|
|
2694
|
-
m("control") ? (H(),
|
|
2699
|
+
m("control") ? (H(), V(A(ae), {
|
|
2695
2700
|
key: 2,
|
|
2696
2701
|
content: "方向控制"
|
|
2697
2702
|
}, {
|
|
2698
|
-
default:
|
|
2699
|
-
["live", "polling"].includes(t.type) ? (H(),
|
|
2703
|
+
default: x(() => [
|
|
2704
|
+
["live", "polling"].includes(t.type) ? (H(), V(A(De), {
|
|
2700
2705
|
key: 0,
|
|
2701
2706
|
class: "icon icon-direction-control",
|
|
2702
2707
|
icon: "direction-control",
|
|
@@ -2712,7 +2717,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2712
2717
|
)
|
|
2713
2718
|
])
|
|
2714
2719
|
]),
|
|
2715
|
-
a.value ? (H(),
|
|
2720
|
+
a.value ? (H(), V(ed, {
|
|
2716
2721
|
key: 1,
|
|
2717
2722
|
onChange: p
|
|
2718
2723
|
})) : U("v-if", !0)
|
|
@@ -2722,7 +2727,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2722
2727
|
}, 8, ["spinning"])
|
|
2723
2728
|
]));
|
|
2724
2729
|
}
|
|
2725
|
-
}), fd = /* @__PURE__ */ Ie(pd, [["__scopeId", "data-v-
|
|
2730
|
+
}), fd = /* @__PURE__ */ Ie(pd, [["__scopeId", "data-v-6c626546"]]), hd = /* @__PURE__ */ pe({
|
|
2726
2731
|
props: {
|
|
2727
2732
|
deviceInfo: {
|
|
2728
2733
|
type: Object,
|
|
@@ -2758,13 +2763,13 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2758
2763
|
zoom: c
|
|
2759
2764
|
});
|
|
2760
2765
|
};
|
|
2761
|
-
return
|
|
2766
|
+
return Qe(() => {
|
|
2762
2767
|
i();
|
|
2763
2768
|
}), re(() => t.value, () => {
|
|
2764
2769
|
i();
|
|
2765
2770
|
}, {
|
|
2766
2771
|
deep: !0
|
|
2767
|
-
}), () =>
|
|
2772
|
+
}), () => R(We, null, [e.default({
|
|
2768
2773
|
videoUrl: r.value,
|
|
2769
2774
|
loading: o.value,
|
|
2770
2775
|
onDirectionControl: a,
|
|
@@ -2778,7 +2783,7 @@ function gd(n) {
|
|
|
2778
2783
|
isFullscreen: r
|
|
2779
2784
|
} = lt(t);
|
|
2780
2785
|
return {
|
|
2781
|
-
render: () =>
|
|
2786
|
+
render: () => R(Zu, {
|
|
2782
2787
|
ref: t,
|
|
2783
2788
|
gridNum: n.gridNum,
|
|
2784
2789
|
activeIndex: e.value,
|
|
@@ -2789,7 +2794,7 @@ function gd(n) {
|
|
|
2789
2794
|
index: a
|
|
2790
2795
|
}) => {
|
|
2791
2796
|
const l = n.deviceList[a];
|
|
2792
|
-
return
|
|
2797
|
+
return R(hd, {
|
|
2793
2798
|
deviceInfo: l
|
|
2794
2799
|
}, {
|
|
2795
2800
|
default: ({
|
|
@@ -2797,7 +2802,7 @@ function gd(n) {
|
|
|
2797
2802
|
onDirectionControl: s,
|
|
2798
2803
|
onZoomControl: u,
|
|
2799
2804
|
loading: b
|
|
2800
|
-
}) =>
|
|
2805
|
+
}) => R(fd, {
|
|
2801
2806
|
type: "live",
|
|
2802
2807
|
loading: b,
|
|
2803
2808
|
videoUrl: c,
|
|
@@ -2844,7 +2849,7 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2844
2849
|
}
|
|
2845
2850
|
return a;
|
|
2846
2851
|
});
|
|
2847
|
-
return (a, l) => (H(),
|
|
2852
|
+
return (a, l) => (H(), V(A(sn), {
|
|
2848
2853
|
size: "mini",
|
|
2849
2854
|
title: "视频监控",
|
|
2850
2855
|
"custom-class": `das-linakge-video-dialog ${i.value}`,
|
|
@@ -2857,11 +2862,11 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2857
2862
|
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
|
|
2858
2863
|
onClosed: a.closeCallback
|
|
2859
2864
|
}, {
|
|
2860
|
-
header:
|
|
2865
|
+
header: x(() => [
|
|
2861
2866
|
Ad,
|
|
2862
|
-
|
|
2863
|
-
default:
|
|
2864
|
-
|
|
2867
|
+
R(A(ae), { content: "页面全屏" }, {
|
|
2868
|
+
default: x(() => [
|
|
2869
|
+
R(A(De), {
|
|
2865
2870
|
class: "icon",
|
|
2866
2871
|
icon: "fullscreen2",
|
|
2867
2872
|
iconColor: "#999",
|
|
@@ -2872,8 +2877,8 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2872
2877
|
/* STABLE */
|
|
2873
2878
|
})
|
|
2874
2879
|
]),
|
|
2875
|
-
default:
|
|
2876
|
-
t.value ? (H(),
|
|
2880
|
+
default: x(() => [
|
|
2881
|
+
t.value ? (H(), V(A(o), { key: 0 })) : U("v-if", !0)
|
|
2877
2882
|
]),
|
|
2878
2883
|
_: 1
|
|
2879
2884
|
/* STABLE */
|
|
@@ -2926,9 +2931,9 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2926
2931
|
}
|
|
2927
2932
|
}));
|
|
2928
2933
|
};
|
|
2929
|
-
return
|
|
2934
|
+
return Qe(async () => {
|
|
2930
2935
|
await Tt(), r();
|
|
2931
|
-
}),
|
|
2936
|
+
}), Et(() => {
|
|
2932
2937
|
t.value && t.value.disconnect(), t.value = null;
|
|
2933
2938
|
}), {
|
|
2934
2939
|
gridNum: n,
|
|
@@ -2937,7 +2942,7 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2937
2942
|
connectLinkVideoSocket: r
|
|
2938
2943
|
};
|
|
2939
2944
|
};
|
|
2940
|
-
class
|
|
2945
|
+
class Me extends Error {
|
|
2941
2946
|
/** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
|
|
2942
2947
|
*
|
|
2943
2948
|
* @param {string} errorMessage A descriptive error message.
|
|
@@ -3087,18 +3092,18 @@ class ee {
|
|
|
3087
3092
|
throw new Error(`Unknown ${o} value: ${e}.`);
|
|
3088
3093
|
}
|
|
3089
3094
|
}
|
|
3090
|
-
class
|
|
3095
|
+
class K {
|
|
3091
3096
|
// react-native has a window but no document so we should check both
|
|
3092
3097
|
static get isBrowser() {
|
|
3093
|
-
return !
|
|
3098
|
+
return !K.isNode && typeof window == "object" && typeof window.document == "object";
|
|
3094
3099
|
}
|
|
3095
3100
|
// WebWorkers don't have a window object so the isBrowser check would fail
|
|
3096
3101
|
static get isWebWorker() {
|
|
3097
|
-
return !
|
|
3102
|
+
return !K.isNode && typeof self == "object" && "importScripts" in self;
|
|
3098
3103
|
}
|
|
3099
3104
|
// react-native has a window but no document
|
|
3100
3105
|
static get isReactNative() {
|
|
3101
|
-
return !
|
|
3106
|
+
return !K.isNode && typeof window == "object" && typeof window.document > "u";
|
|
3102
3107
|
}
|
|
3103
3108
|
// Node apps shouldn't have a window object, but WebWorkers don't either
|
|
3104
3109
|
// so we need to check for both WebWorker and window
|
|
@@ -3108,9 +3113,9 @@ class G {
|
|
|
3108
3113
|
}
|
|
3109
3114
|
function ct(n, e) {
|
|
3110
3115
|
let t = "";
|
|
3111
|
-
return
|
|
3116
|
+
return Re(n) ? (t = `Binary data of length ${n.byteLength}`, e && (t += `. Content: '${Ed(n)}'`)) : typeof n == "string" && (t = `String data of length ${n.length}`, e && (t += `. Content: '${n}'`)), t;
|
|
3112
3117
|
}
|
|
3113
|
-
function
|
|
3118
|
+
function Ed(n) {
|
|
3114
3119
|
const e = new Uint8Array(n);
|
|
3115
3120
|
let t = "";
|
|
3116
3121
|
return e.forEach((o) => {
|
|
@@ -3118,14 +3123,14 @@ function Sd(n) {
|
|
|
3118
3123
|
t += `0x${r}${o.toString(16)} `;
|
|
3119
3124
|
}), t.substr(0, t.length - 1);
|
|
3120
3125
|
}
|
|
3121
|
-
function
|
|
3126
|
+
function Re(n) {
|
|
3122
3127
|
return n && typeof ArrayBuffer < "u" && (n instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
|
|
3123
3128
|
n.constructor && n.constructor.name === "ArrayBuffer");
|
|
3124
3129
|
}
|
|
3125
3130
|
async function mr(n, e, t, o, r, i) {
|
|
3126
3131
|
const a = {}, [l, c] = Ke();
|
|
3127
3132
|
a[l] = c, n.log(h.Trace, `(${e} transport) sending data. ${ct(r, i.logMessageContent)}.`);
|
|
3128
|
-
const s =
|
|
3133
|
+
const s = Re(r) ? "arraybuffer" : "text", u = await t.post(o, {
|
|
3129
3134
|
content: r,
|
|
3130
3135
|
headers: { ...a, ...i.headers },
|
|
3131
3136
|
responseType: s,
|
|
@@ -3134,7 +3139,7 @@ async function mr(n, e, t, o, r, i) {
|
|
|
3134
3139
|
});
|
|
3135
3140
|
n.log(h.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
3136
3141
|
}
|
|
3137
|
-
function
|
|
3142
|
+
function Sd(n) {
|
|
3138
3143
|
return n === void 0 ? new It(h.Information) : n === null ? at.instance : n.log !== void 0 ? n : new It(n);
|
|
3139
3144
|
}
|
|
3140
3145
|
class Td {
|
|
@@ -3174,7 +3179,7 @@ class It {
|
|
|
3174
3179
|
}
|
|
3175
3180
|
function Ke() {
|
|
3176
3181
|
let n = "X-SignalR-User-Agent";
|
|
3177
|
-
return
|
|
3182
|
+
return K.isNode && (n = "User-Agent"), [n, kd(Id, Pd(), Od(), Bd())];
|
|
3178
3183
|
}
|
|
3179
3184
|
function kd(n, e, t, o) {
|
|
3180
3185
|
let r = "Microsoft SignalR/";
|
|
@@ -3182,7 +3187,7 @@ function kd(n, e, t, o) {
|
|
|
3182
3187
|
return r += `${i[0]}.${i[1]}`, r += ` (${n}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${t}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
|
|
3183
3188
|
}
|
|
3184
3189
|
function Pd() {
|
|
3185
|
-
if (
|
|
3190
|
+
if (K.isNode)
|
|
3186
3191
|
switch (process.platform) {
|
|
3187
3192
|
case "win32":
|
|
3188
3193
|
return "Windows NT";
|
|
@@ -3197,11 +3202,11 @@ function Pd() {
|
|
|
3197
3202
|
return "";
|
|
3198
3203
|
}
|
|
3199
3204
|
function Bd() {
|
|
3200
|
-
if (
|
|
3205
|
+
if (K.isNode)
|
|
3201
3206
|
return process.versions.node;
|
|
3202
3207
|
}
|
|
3203
3208
|
function Od() {
|
|
3204
|
-
return
|
|
3209
|
+
return K.isNode ? "NodeJS" : "Browser";
|
|
3205
3210
|
}
|
|
3206
3211
|
function jt(n) {
|
|
3207
3212
|
return n.stack ? n.stack : n.message ? n.message : `${n}`;
|
|
@@ -3219,7 +3224,7 @@ function Dd() {
|
|
|
3219
3224
|
}
|
|
3220
3225
|
class $d extends Dt {
|
|
3221
3226
|
constructor(e) {
|
|
3222
|
-
if (super(), this._logger = e, typeof fetch > "u" ||
|
|
3227
|
+
if (super(), this._logger = e, typeof fetch > "u" || K.isNode) {
|
|
3223
3228
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
3224
3229
|
this._jar = new (t("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = t("node-fetch") : this._fetchType = fetch, this._fetchType = t("fetch-cookie")(this._fetchType, this._jar);
|
|
3225
3230
|
} else
|
|
@@ -3250,7 +3255,7 @@ class $d extends Dt {
|
|
|
3250
3255
|
t.abort(), this._logger.log(h.Warning, "Timeout from HTTP request."), o = new yn();
|
|
3251
3256
|
}, c);
|
|
3252
3257
|
}
|
|
3253
|
-
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {},
|
|
3258
|
+
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Re(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
3254
3259
|
let i;
|
|
3255
3260
|
try {
|
|
3256
3261
|
i = await this._fetchType(e.url, {
|
|
@@ -3273,14 +3278,14 @@ class $d extends Dt {
|
|
|
3273
3278
|
}
|
|
3274
3279
|
if (!i.ok) {
|
|
3275
3280
|
const c = await ho(i, "text");
|
|
3276
|
-
throw new
|
|
3281
|
+
throw new Me(c || i.statusText, i.status);
|
|
3277
3282
|
}
|
|
3278
3283
|
const l = await ho(i, e.responseType);
|
|
3279
3284
|
return new Ar(i.status, i.statusText, l);
|
|
3280
3285
|
}
|
|
3281
3286
|
getCookieString(e) {
|
|
3282
3287
|
let t = "";
|
|
3283
|
-
return
|
|
3288
|
+
return K.isNode && this._jar && this._jar.getCookies(e, (o, r) => t = r.join("; ")), t;
|
|
3284
3289
|
}
|
|
3285
3290
|
}
|
|
3286
3291
|
function ho(n, e) {
|
|
@@ -3310,16 +3315,16 @@ class Md extends Dt {
|
|
|
3310
3315
|
send(e) {
|
|
3311
3316
|
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ve()) : e.method ? e.url ? new Promise((t, o) => {
|
|
3312
3317
|
const r = new XMLHttpRequest();
|
|
3313
|
-
r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (
|
|
3318
|
+
r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Re(e.content) ? r.setRequestHeader("Content-Type", "application/octet-stream") : r.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
|
|
3314
3319
|
const i = e.headers;
|
|
3315
3320
|
i && Object.keys(i).forEach((a) => {
|
|
3316
3321
|
r.setRequestHeader(a, i[a]);
|
|
3317
3322
|
}), e.responseType && (r.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
3318
3323
|
r.abort(), o(new ve());
|
|
3319
3324
|
}), e.timeout && (r.timeout = e.timeout), r.onload = () => {
|
|
3320
|
-
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new Ar(r.status, r.statusText, r.response || r.responseText)) : o(new
|
|
3325
|
+
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new Ar(r.status, r.statusText, r.response || r.responseText)) : o(new Me(r.response || r.responseText || r.statusText, r.status));
|
|
3321
3326
|
}, r.onerror = () => {
|
|
3322
|
-
this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new
|
|
3327
|
+
this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Me(r.statusText, r.status));
|
|
3323
3328
|
}, r.ontimeout = () => {
|
|
3324
3329
|
this._logger.log(h.Warning, "Timeout from HTTP request."), o(new yn());
|
|
3325
3330
|
}, r.send(e.content);
|
|
@@ -3329,7 +3334,7 @@ class Md extends Dt {
|
|
|
3329
3334
|
class Ld extends Dt {
|
|
3330
3335
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
3331
3336
|
constructor(e) {
|
|
3332
|
-
if (super(), typeof fetch < "u" ||
|
|
3337
|
+
if (super(), typeof fetch < "u" || K.isNode)
|
|
3333
3338
|
this._httpClient = new $d(e);
|
|
3334
3339
|
else if (typeof XMLHttpRequest < "u")
|
|
3335
3340
|
this._httpClient = new Md(e);
|
|
@@ -3364,7 +3369,7 @@ class xd {
|
|
|
3364
3369
|
}
|
|
3365
3370
|
parseHandshakeResponse(e) {
|
|
3366
3371
|
let t, o;
|
|
3367
|
-
if (
|
|
3372
|
+
if (Re(e)) {
|
|
3368
3373
|
const l = new Uint8Array(e), c = l.indexOf(ge.RecordSeparatorCode);
|
|
3369
3374
|
if (c === -1)
|
|
3370
3375
|
throw new Error("Message is incomplete.");
|
|
@@ -3419,7 +3424,7 @@ class Qd {
|
|
|
3419
3424
|
let r = () => {
|
|
3420
3425
|
}, i = () => {
|
|
3421
3426
|
};
|
|
3422
|
-
|
|
3427
|
+
Re(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (o = new Promise((a, l) => {
|
|
3423
3428
|
r = a, i = l;
|
|
3424
3429
|
})), this._messages.push(new jd(t, this._totalMessageCount, r, i));
|
|
3425
3430
|
}
|
|
@@ -3435,7 +3440,7 @@ class Qd {
|
|
|
3435
3440
|
for (let o = 0; o < this._messages.length; o++) {
|
|
3436
3441
|
const r = this._messages[o];
|
|
3437
3442
|
if (r._id <= e.sequenceId)
|
|
3438
|
-
t = o,
|
|
3443
|
+
t = o, Re(r._message) ? this._bufferedByteCount -= r._message.byteLength : this._bufferedByteCount -= r._message.length, r._resolver();
|
|
3439
3444
|
else if (this._bufferedByteCount < this._bufferSize)
|
|
3440
3445
|
r._resolver();
|
|
3441
3446
|
else
|
|
@@ -3505,10 +3510,10 @@ class jd {
|
|
|
3505
3510
|
}
|
|
3506
3511
|
}
|
|
3507
3512
|
const Hd = 30 * 1e3, Nd = 15 * 1e3, Ud = 1e5;
|
|
3508
|
-
var
|
|
3513
|
+
var q;
|
|
3509
3514
|
(function(n) {
|
|
3510
3515
|
n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Connected = "Connected", n.Disconnecting = "Disconnecting", n.Reconnecting = "Reconnecting";
|
|
3511
|
-
})(
|
|
3516
|
+
})(q || (q = {}));
|
|
3512
3517
|
class _n {
|
|
3513
3518
|
/** @internal */
|
|
3514
3519
|
// Using a public static factory method means we can have a private constructor and an _internal_
|
|
@@ -3521,7 +3526,7 @@ class _n {
|
|
|
3521
3526
|
constructor(e, t, o, r, i, a, l) {
|
|
3522
3527
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
3523
3528
|
this._logger.log(h.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");
|
|
3524
|
-
}, ee.isRequired(e, "connection"), ee.isRequired(t, "logger"), ee.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState =
|
|
3529
|
+
}, ee.isRequired(e, "connection"), ee.isRequired(t, "logger"), ee.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
|
|
3525
3530
|
}
|
|
3526
3531
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
3527
3532
|
get state() {
|
|
@@ -3543,7 +3548,7 @@ class _n {
|
|
|
3543
3548
|
* @param {string} url The url to connect to.
|
|
3544
3549
|
*/
|
|
3545
3550
|
set baseUrl(e) {
|
|
3546
|
-
if (this._connectionState !==
|
|
3551
|
+
if (this._connectionState !== q.Disconnected && this._connectionState !== q.Reconnecting)
|
|
3547
3552
|
throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
|
|
3548
3553
|
if (!e)
|
|
3549
3554
|
throw new Error("The HubConnection url must be a valid url.");
|
|
@@ -3557,13 +3562,13 @@ class _n {
|
|
|
3557
3562
|
return this._startPromise = this._startWithStateTransitions(), this._startPromise;
|
|
3558
3563
|
}
|
|
3559
3564
|
async _startWithStateTransitions() {
|
|
3560
|
-
if (this._connectionState !==
|
|
3565
|
+
if (this._connectionState !== q.Disconnected)
|
|
3561
3566
|
return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
|
|
3562
|
-
this._connectionState =
|
|
3567
|
+
this._connectionState = q.Connecting, this._logger.log(h.Debug, "Starting HubConnection.");
|
|
3563
3568
|
try {
|
|
3564
|
-
await this._startInternal(),
|
|
3569
|
+
await this._startInternal(), K.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = q.Connected, this._connectionStarted = !0, this._logger.log(h.Debug, "HubConnection connected successfully.");
|
|
3565
3570
|
} catch (e) {
|
|
3566
|
-
return this._connectionState =
|
|
3571
|
+
return this._connectionState = q.Disconnected, this._logger.log(h.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
|
|
3567
3572
|
}
|
|
3568
3573
|
}
|
|
3569
3574
|
async _startInternal() {
|
|
@@ -3602,12 +3607,12 @@ class _n {
|
|
|
3602
3607
|
}
|
|
3603
3608
|
}
|
|
3604
3609
|
_stopInternal(e) {
|
|
3605
|
-
if (this._connectionState ===
|
|
3610
|
+
if (this._connectionState === q.Disconnected)
|
|
3606
3611
|
return this._logger.log(h.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
|
|
3607
|
-
if (this._connectionState ===
|
|
3612
|
+
if (this._connectionState === q.Disconnecting)
|
|
3608
3613
|
return this._logger.log(h.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
|
|
3609
3614
|
const t = this._connectionState;
|
|
3610
|
-
return this._connectionState =
|
|
3615
|
+
return this._connectionState = q.Disconnecting, this._logger.log(h.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(h.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === q.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ve("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
|
|
3611
3616
|
}
|
|
3612
3617
|
async _sendCloseMessage() {
|
|
3613
3618
|
try {
|
|
@@ -3794,7 +3799,7 @@ class _n {
|
|
|
3794
3799
|
if ((!this.connection.features || !this.connection.features.inherentKeepAlive) && (this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds), this._pingServerHandle === void 0)) {
|
|
3795
3800
|
let e = this._nextKeepAlive - (/* @__PURE__ */ new Date()).getTime();
|
|
3796
3801
|
e < 0 && (e = 0), this._pingServerHandle = setTimeout(async () => {
|
|
3797
|
-
if (this._connectionState ===
|
|
3802
|
+
if (this._connectionState === q.Connected)
|
|
3798
3803
|
try {
|
|
3799
3804
|
await this._sendMessage(this._cachedPingMessage);
|
|
3800
3805
|
} catch {
|
|
@@ -3825,11 +3830,11 @@ class _n {
|
|
|
3825
3830
|
c ? await this._sendWithProtocol(c) : i ? (l ? c = this._createCompletionMessage(e.invocationId, `${l}`, null) : a !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(h.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : a && this._logger.log(h.Error, `Result given for '${t}' method but server is not expecting a result.`);
|
|
3826
3831
|
}
|
|
3827
3832
|
_connectionClosed(e) {
|
|
3828
|
-
this._logger.log(h.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ve("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState ===
|
|
3833
|
+
this._logger.log(h.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ve("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === q.Disconnecting ? this._completeClose(e) : this._connectionState === q.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === q.Connected && this._completeClose(e);
|
|
3829
3834
|
}
|
|
3830
3835
|
_completeClose(e) {
|
|
3831
3836
|
if (this._connectionStarted) {
|
|
3832
|
-
this._connectionState =
|
|
3837
|
+
this._connectionState = q.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), K.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
|
|
3833
3838
|
try {
|
|
3834
3839
|
this._closedCallbacks.forEach((t) => t.apply(this, [e]));
|
|
3835
3840
|
} catch (t) {
|
|
@@ -3844,13 +3849,13 @@ class _n {
|
|
|
3844
3849
|
this._logger.log(h.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
|
|
3845
3850
|
return;
|
|
3846
3851
|
}
|
|
3847
|
-
if (this._connectionState =
|
|
3852
|
+
if (this._connectionState = q.Reconnecting, e ? this._logger.log(h.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(h.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
|
|
3848
3853
|
try {
|
|
3849
3854
|
this._reconnectingCallbacks.forEach((a) => a.apply(this, [e]));
|
|
3850
3855
|
} catch (a) {
|
|
3851
3856
|
this._logger.log(h.Error, `An onreconnecting callback called with error '${e}' threw error '${a}'.`);
|
|
3852
3857
|
}
|
|
3853
|
-
if (this._connectionState !==
|
|
3858
|
+
if (this._connectionState !== q.Reconnecting) {
|
|
3854
3859
|
this._logger.log(h.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
|
|
3855
3860
|
return;
|
|
3856
3861
|
}
|
|
@@ -3858,12 +3863,12 @@ class _n {
|
|
|
3858
3863
|
for (; i !== null; ) {
|
|
3859
3864
|
if (this._logger.log(h.Information, `Reconnect attempt number ${o} will start in ${i} ms.`), await new Promise((a) => {
|
|
3860
3865
|
this._reconnectDelayHandle = setTimeout(a, i);
|
|
3861
|
-
}), this._reconnectDelayHandle = void 0, this._connectionState !==
|
|
3866
|
+
}), this._reconnectDelayHandle = void 0, this._connectionState !== q.Reconnecting) {
|
|
3862
3867
|
this._logger.log(h.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
|
|
3863
3868
|
return;
|
|
3864
3869
|
}
|
|
3865
3870
|
try {
|
|
3866
|
-
if (await this._startInternal(), this._connectionState =
|
|
3871
|
+
if (await this._startInternal(), this._connectionState = q.Connected, this._logger.log(h.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
|
|
3867
3872
|
try {
|
|
3868
3873
|
this._reconnectedCallbacks.forEach((a) => a.apply(this, [this.connection.connectionId]));
|
|
3869
3874
|
} catch (a) {
|
|
@@ -3871,8 +3876,8 @@ class _n {
|
|
|
3871
3876
|
}
|
|
3872
3877
|
return;
|
|
3873
3878
|
} catch (a) {
|
|
3874
|
-
if (this._logger.log(h.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !==
|
|
3875
|
-
this._logger.log(h.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState ===
|
|
3879
|
+
if (this._logger.log(h.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== q.Reconnecting) {
|
|
3880
|
+
this._logger.log(h.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === q.Disconnecting && this._completeClose();
|
|
3876
3881
|
return;
|
|
3877
3882
|
}
|
|
3878
3883
|
r = a instanceof Error ? a : new Error(a.toString()), i = this._getNextRetryDelay(o++, Date.now() - t, r);
|
|
@@ -4020,10 +4025,10 @@ class go {
|
|
|
4020
4025
|
return this._retryDelays[e.previousRetryCount];
|
|
4021
4026
|
}
|
|
4022
4027
|
}
|
|
4023
|
-
class
|
|
4028
|
+
class Le {
|
|
4024
4029
|
}
|
|
4025
|
-
|
|
4026
|
-
|
|
4030
|
+
Le.Authorization = "Authorization";
|
|
4031
|
+
Le.Cookie = "Cookie";
|
|
4027
4032
|
class Jd extends Dt {
|
|
4028
4033
|
constructor(e, t) {
|
|
4029
4034
|
super(), this._innerClient = e, this._accessTokenFactory = t;
|
|
@@ -4035,7 +4040,7 @@ class Jd extends Dt {
|
|
|
4035
4040
|
return t && o.statusCode === 401 && this._accessTokenFactory ? (this._accessToken = await this._accessTokenFactory(), this._setAuthorizationHeader(e), await this._innerClient.send(e)) : o;
|
|
4036
4041
|
}
|
|
4037
4042
|
_setAuthorizationHeader(e) {
|
|
4038
|
-
e.headers || (e.headers = {}), this._accessToken ? e.headers[
|
|
4043
|
+
e.headers || (e.headers = {}), this._accessToken ? e.headers[Le.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[Le.Authorization] && delete e.headers[Le.Authorization];
|
|
4039
4044
|
}
|
|
4040
4045
|
getCookieString(e) {
|
|
4041
4046
|
return this._innerClient.getCookieString(e);
|
|
@@ -4084,7 +4089,7 @@ class Ao {
|
|
|
4084
4089
|
const l = `${e}&_=${Date.now()}`;
|
|
4085
4090
|
this._logger.log(h.Trace, `(LongPolling transport) polling: ${l}.`);
|
|
4086
4091
|
const c = await this._httpClient.get(l, a);
|
|
4087
|
-
c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new
|
|
4092
|
+
c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new Me(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
|
|
4088
4093
|
}
|
|
4089
4094
|
async _poll(e, t) {
|
|
4090
4095
|
try {
|
|
@@ -4093,7 +4098,7 @@ class Ao {
|
|
|
4093
4098
|
const o = `${e}&_=${Date.now()}`;
|
|
4094
4099
|
this._logger.log(h.Trace, `(LongPolling transport) polling: ${o}.`);
|
|
4095
4100
|
const r = await this._httpClient.get(o, t);
|
|
4096
|
-
r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new
|
|
4101
|
+
r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Me(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(h.Trace, `(LongPolling transport) data received. ${ct(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
4097
4102
|
} catch (o) {
|
|
4098
4103
|
this._running ? o instanceof yn ? this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(h.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
|
|
4099
4104
|
}
|
|
@@ -4121,7 +4126,7 @@ class Ao {
|
|
|
4121
4126
|
} catch (a) {
|
|
4122
4127
|
i = a;
|
|
4123
4128
|
}
|
|
4124
|
-
i ? i instanceof
|
|
4129
|
+
i ? i instanceof Me && (i.statusCode === 404 ? this._logger.log(h.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(h.Trace, `(LongPolling transport) Error sending a DELETE request: ${i}`)) : this._logger.log(h.Trace, "(LongPolling transport) DELETE request accepted.");
|
|
4125
4130
|
} finally {
|
|
4126
4131
|
this._logger.log(h.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
|
|
4127
4132
|
}
|
|
@@ -4145,7 +4150,7 @@ class zd {
|
|
|
4145
4150
|
return;
|
|
4146
4151
|
}
|
|
4147
4152
|
let a;
|
|
4148
|
-
if (
|
|
4153
|
+
if (K.isBrowser || K.isWebWorker)
|
|
4149
4154
|
a = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
|
|
4150
4155
|
else {
|
|
4151
4156
|
const l = this._httpClient.getCookieString(e), c = {};
|
|
@@ -4195,9 +4200,9 @@ class Vd {
|
|
|
4195
4200
|
let a;
|
|
4196
4201
|
const l = this._httpClient.getCookieString(e);
|
|
4197
4202
|
let c = !1;
|
|
4198
|
-
if (
|
|
4203
|
+
if (K.isNode || K.isReactNative) {
|
|
4199
4204
|
const s = {}, [u, b] = Ke();
|
|
4200
|
-
s[u] = b, o && (s[
|
|
4205
|
+
s[u] = b, o && (s[Le.Authorization] = `Bearer ${o}`), l && (s[Le.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
|
|
4201
4206
|
headers: { ...s, ...this._headers }
|
|
4202
4207
|
});
|
|
4203
4208
|
} else
|
|
@@ -4245,17 +4250,17 @@ const mo = 100;
|
|
|
4245
4250
|
class qd {
|
|
4246
4251
|
constructor(e, t = {}) {
|
|
4247
4252
|
if (this._stopPromiseResolver = () => {
|
|
4248
|
-
}, this.features = {}, this._negotiateVersion = 1, ee.isRequired(e, "url"), this._logger =
|
|
4253
|
+
}, this.features = {}, this._negotiateVersion = 1, ee.isRequired(e, "url"), this._logger = Sd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
|
|
4249
4254
|
t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
|
|
4250
4255
|
else
|
|
4251
4256
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
4252
4257
|
t.timeout = t.timeout === void 0 ? 100 * 1e3 : t.timeout;
|
|
4253
4258
|
let o = null, r = null;
|
|
4254
|
-
if (
|
|
4259
|
+
if (K.isNode && typeof require < "u") {
|
|
4255
4260
|
const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
4256
4261
|
o = i("ws"), r = i("eventsource");
|
|
4257
4262
|
}
|
|
4258
|
-
!
|
|
4263
|
+
!K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Jd(t.httpClient || new Ld(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
4259
4264
|
}
|
|
4260
4265
|
async start(e) {
|
|
4261
4266
|
if (e = e || se.Binary, ee.isIn(e, se, "transferFormat"), this._logger.log(h.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
|
|
@@ -4348,7 +4353,7 @@ class qd {
|
|
|
4348
4353
|
return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new fo("Client didn't negotiate Stateful Reconnect but the server did.")) : l;
|
|
4349
4354
|
} catch (a) {
|
|
4350
4355
|
let l = "Failed to complete negotiation with the server: " + a;
|
|
4351
|
-
return a instanceof
|
|
4356
|
+
return a instanceof Me && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(h.Error, l), Promise.reject(new fo(l));
|
|
4352
4357
|
}
|
|
4353
4358
|
}
|
|
4354
4359
|
_createConnectUrl(e, t) {
|
|
@@ -4463,7 +4468,7 @@ class qd {
|
|
|
4463
4468
|
_resolveUrl(e) {
|
|
4464
4469
|
if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
|
|
4465
4470
|
return e;
|
|
4466
|
-
if (!
|
|
4471
|
+
if (!K.isBrowser)
|
|
4467
4472
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
4468
4473
|
const t = window.document.createElement("a");
|
|
4469
4474
|
return t.href = e, this._logger.log(h.Information, `Normalizing '${e}' to '${t.href}'.`), t.href;
|
|
@@ -4694,7 +4699,7 @@ class ep {
|
|
|
4694
4699
|
function tp(n) {
|
|
4695
4700
|
return n.log !== void 0;
|
|
4696
4701
|
}
|
|
4697
|
-
let { baseURL: np } =
|
|
4702
|
+
let { baseURL: np } = He();
|
|
4698
4703
|
const op = () => {
|
|
4699
4704
|
const n = new ep().withUrl(`${np}/api/tool/event-bus`, {
|
|
4700
4705
|
skipNegotiation: !0,
|
|
@@ -4705,12 +4710,12 @@ const op = () => {
|
|
|
4705
4710
|
}), n.onclose((e) => {
|
|
4706
4711
|
}), n.onreconnected(() => {
|
|
4707
4712
|
}), n;
|
|
4708
|
-
}, $t = "v1", rp =
|
|
4713
|
+
}, $t = "v1", rp = je(`/api/graphics-engine/component/${$t}`, (n) => (n.customErrorMessage = () => "", n)), sp = je(`/api/portal/manager/${$t}`, (n) => (n.customErrorMessage = () => "", n)), ip = je(`/api/speech-base/speech/${$t}`, (n) => (n.customErrorMessage = () => "", n)), vo = rp.get("/component/client/heartbeat"), ap = sp.get("/basics/by-alias");
|
|
4709
4714
|
ip.post("/control/callBack");
|
|
4710
|
-
const cp =
|
|
4715
|
+
const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.get("/permissionset/application"), up = () => {
|
|
4711
4716
|
const n = on(), { entryApp: e } = bt.hooks.useEntryApp(), { entryMenu: t } = bt.hooks.useEntryMenu();
|
|
4712
4717
|
let o = null;
|
|
4713
|
-
return
|
|
4718
|
+
return Qe(async () => {
|
|
4714
4719
|
var d;
|
|
4715
4720
|
let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: i = !0 } = n.query;
|
|
4716
4721
|
if (i === "false" && (i = !1), !r || !i) return;
|
|
@@ -4723,34 +4728,34 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4723
4728
|
}
|
|
4724
4729
|
}, l = async (m) => {
|
|
4725
4730
|
var k;
|
|
4726
|
-
const _ =
|
|
4731
|
+
const _ = F(), w = ((k = _.appcategorys) == null ? void 0 : k.map((B) => B.apps).flat()) || [];
|
|
4727
4732
|
if (Array.isArray(m)) {
|
|
4728
|
-
const B = m.filter((
|
|
4733
|
+
const B = m.filter((E) => E.code).map((E) => E.code);
|
|
4729
4734
|
if (m.length) {
|
|
4730
4735
|
if (_.currentSubAppCode) {
|
|
4731
|
-
const
|
|
4736
|
+
const S = _.currentSubApp.menus ?? [], C = ye(S).find((M) => B.includes(M.code));
|
|
4732
4737
|
if (C) {
|
|
4733
4738
|
t({ currentMenu: C });
|
|
4734
4739
|
return;
|
|
4735
4740
|
}
|
|
4736
4741
|
}
|
|
4737
|
-
const
|
|
4738
|
-
|
|
4742
|
+
const E = w.find((S) => B.includes(S.code));
|
|
4743
|
+
E && e({ microApp: E });
|
|
4739
4744
|
}
|
|
4740
4745
|
}
|
|
4741
4746
|
if (typeof m == "string")
|
|
4742
4747
|
if (m.includes(":")) {
|
|
4743
|
-
const B = m.split(":"), [
|
|
4744
|
-
if (!
|
|
4745
|
-
const C = w.find((M) => M.code ===
|
|
4746
|
-
C && e({ microApp: C, menuCode:
|
|
4748
|
+
const B = m.split(":"), [E = "", S = ""] = B;
|
|
4749
|
+
if (!E) return;
|
|
4750
|
+
const C = w.find((M) => M.code === E);
|
|
4751
|
+
C && e({ microApp: C, menuCode: S });
|
|
4747
4752
|
} else {
|
|
4748
|
-
const B = m,
|
|
4749
|
-
if (
|
|
4750
|
-
e({ microApp:
|
|
4753
|
+
const B = m, E = w.find((S) => S.code === B);
|
|
4754
|
+
if (E)
|
|
4755
|
+
e({ microApp: E });
|
|
4751
4756
|
else {
|
|
4752
|
-
const [
|
|
4753
|
-
if (
|
|
4757
|
+
const [S, C] = await lp().run({ menuCode: B });
|
|
4758
|
+
if (S) return;
|
|
4754
4759
|
const M = w.find((L) => L.code === C);
|
|
4755
4760
|
M && e({ microApp: M, menuCode: B });
|
|
4756
4761
|
}
|
|
@@ -4781,11 +4786,11 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4781
4786
|
}, u = (m) => {
|
|
4782
4787
|
const _ = Yt(), w = JSON.parse(atob(_.split(".")[1])).sub;
|
|
4783
4788
|
op().on(`${m}:${w}`, async function(B) {
|
|
4784
|
-
let
|
|
4785
|
-
if (
|
|
4786
|
-
|
|
4789
|
+
let E = a(B);
|
|
4790
|
+
if (E)
|
|
4791
|
+
E.uniqueId && E.actionKey == "switch-menu" && s(E);
|
|
4787
4792
|
else if (B.includes("openAppMenu=")) {
|
|
4788
|
-
const
|
|
4793
|
+
const S = B.split("="), C = JSON.parse(S[1]);
|
|
4789
4794
|
l(C);
|
|
4790
4795
|
} else B.includes("iocIsRun") && (c.value = !1);
|
|
4791
4796
|
});
|
|
@@ -4804,10 +4809,10 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4804
4809
|
}, 5e3), y.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
4805
4810
|
};
|
|
4806
4811
|
window.addEventListener("online", () => p("online")), window.addEventListener("offline", () => p("offline"));
|
|
4807
|
-
}),
|
|
4812
|
+
}), Et(() => {
|
|
4808
4813
|
o && clearInterval(o);
|
|
4809
4814
|
}), {};
|
|
4810
|
-
}, Mt = "v1", dp = Xe(`/api/fms/report/${Mt}`), wn = Xe(`/api/emergency/manage/${Mt}`), pp = rn.get("/permissionset/user-portal-menu"), vr = Xe(`/api/alarm/config/${Mt}`), fp = Xe(`/api/alarm/run-time/${Mt}`), hp = vr.get("/alarm-definition/status-option"), gp = fp.post("/record/handling"), Ap = vr.get("/alarm-level/prompttone"), mp = dp.get("/alarm/rule/list"), vp = To.get("/controller/space-children-all-type"), yp = To.get("/controller/fuzzy-area-small"), _p = wn.get("/emergency-event/event/type"), bp = wn.get("/emergency-event/event/level"), wp = wn.get("/emergency-plan/plan/handle-time"), Cp = { class: "handle-alarm-container" }, Ip = { class: "select-check" },
|
|
4815
|
+
}, Mt = "v1", dp = Xe(`/api/fms/report/${Mt}`), wn = Xe(`/api/emergency/manage/${Mt}`), pp = rn.get("/permissionset/user-portal-menu"), vr = Xe(`/api/alarm/config/${Mt}`), fp = Xe(`/api/alarm/run-time/${Mt}`), hp = vr.get("/alarm-definition/status-option"), gp = fp.post("/record/handling"), Ap = vr.get("/alarm-level/prompttone"), mp = dp.get("/alarm/rule/list"), vp = To.get("/controller/space-children-all-type"), yp = To.get("/controller/fuzzy-area-small"), _p = wn.get("/emergency-event/event/type"), bp = wn.get("/emergency-event/event/level"), wp = wn.get("/emergency-plan/plan/handle-time"), Cp = { class: "handle-alarm-container" }, Ip = { class: "select-check" }, Ep = { class: "form-box" }, Sp = { class: "select-check" }, Tp = { style: { "margin-left": "8px" } }, kp = { class: "foot-btn-box" }, Pp = {
|
|
4811
4816
|
name: "handleAlarm"
|
|
4812
4817
|
}, Bp = /* @__PURE__ */ pe({
|
|
4813
4818
|
...Pp,
|
|
@@ -4871,12 +4876,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4871
4876
|
{ id: 3, name: Q("不限").value }
|
|
4872
4877
|
]), y = T([]), p = T(""), d = T("告警对象位置"), m = T(""), _ = T([]), w = T("");
|
|
4873
4878
|
T("[]");
|
|
4874
|
-
const k = T(!0), B = T(!0),
|
|
4879
|
+
const k = T(!0), B = T(!0), E = async (O) => {
|
|
4875
4880
|
const I = { name: "1" };
|
|
4876
4881
|
O != null && O.id && (I.spaceId = O.id);
|
|
4877
4882
|
const [P, me] = await vp(I).run();
|
|
4878
4883
|
return P ? {} : me;
|
|
4879
|
-
},
|
|
4884
|
+
}, S = async (O) => {
|
|
4880
4885
|
const I = { name: O || "" }, [P, me] = await yp(I).run();
|
|
4881
4886
|
return P ? {} : me;
|
|
4882
4887
|
}, C = T(!0), M = T(!0), L = T([]), N = async () => {
|
|
@@ -4885,7 +4890,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4885
4890
|
L.value = I.data.filter((P) => P.status), L.value.length > 0 && (s.value.workOrderRules = L.value[0].id);
|
|
4886
4891
|
};
|
|
4887
4892
|
re(c, (O) => {
|
|
4888
|
-
O || (
|
|
4893
|
+
O || (G(), fe());
|
|
4889
4894
|
}), re(
|
|
4890
4895
|
B,
|
|
4891
4896
|
(O) => {
|
|
@@ -4899,18 +4904,18 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4899
4904
|
},
|
|
4900
4905
|
{ immediate: !0 }
|
|
4901
4906
|
);
|
|
4902
|
-
const
|
|
4907
|
+
const W = (O) => {
|
|
4903
4908
|
var I;
|
|
4904
4909
|
return (I = a.value) == null ? void 0 : I.parentNode.parentNode;
|
|
4905
4910
|
}, ie = (O) => {
|
|
4906
4911
|
u.value.reportTheme = "";
|
|
4907
|
-
},
|
|
4912
|
+
}, Se = (O, I) => {
|
|
4908
4913
|
I.length > 0 && (p.value = I[0].path), s.value.reportPosition = O, w.value = "";
|
|
4909
4914
|
}, ft = (O) => {
|
|
4910
4915
|
O && (u.value.reportPosition = "", p.value = ""), O ? (s.value.reportPosition = null, p.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, p.value = "", d.value = "请选择");
|
|
4911
4916
|
}, oe = (O) => {
|
|
4912
4917
|
O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", m.value = "告警对象") : (s.value.reportTheme = "", m.value = "请输入");
|
|
4913
|
-
},
|
|
4918
|
+
}, G = () => {
|
|
4914
4919
|
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 = "";
|
|
4915
4920
|
}, fe = () => {
|
|
4916
4921
|
s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, B.value = !0, M.value = !0, C.value = !0, s.value.reportTheme = Q("告警对象").value, p.value = "", d.value = "告警对象位置", m.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, g.value = [], f.value = [];
|
|
@@ -4938,7 +4943,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4938
4943
|
if (I) return {};
|
|
4939
4944
|
s.value.interval = P.handleTimeUnit, P.handleTimeUnit == 3 ? s.value.timeLimit = "" : s.value.timeLimit = P.handleTime;
|
|
4940
4945
|
}, _r = (O) => {
|
|
4941
|
-
|
|
4946
|
+
G();
|
|
4942
4947
|
}, br = async () => {
|
|
4943
4948
|
const O = {
|
|
4944
4949
|
logic: !1,
|
|
@@ -4967,7 +4972,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4967
4972
|
return O;
|
|
4968
4973
|
}, Cr = () => {
|
|
4969
4974
|
Lt();
|
|
4970
|
-
},
|
|
4975
|
+
}, En = async (O) => {
|
|
4971
4976
|
wr() && (l.value = O, Ir());
|
|
4972
4977
|
}, Ir = async () => {
|
|
4973
4978
|
const O = {
|
|
@@ -4990,16 +4995,16 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4990
4995
|
return;
|
|
4991
4996
|
}
|
|
4992
4997
|
r("emitFn", "successHandle", s.value.processTypeId), i.value = !1, Lt();
|
|
4993
|
-
},
|
|
4998
|
+
}, Er = () => {
|
|
4994
4999
|
c.value = !0, br();
|
|
4995
5000
|
}, Lt = () => {
|
|
4996
5001
|
c.value = !1;
|
|
4997
5002
|
};
|
|
4998
5003
|
return e({
|
|
4999
|
-
open:
|
|
5004
|
+
open: Er,
|
|
5000
5005
|
close: Lt
|
|
5001
5006
|
}), (O, I) => (H(), de("div", Cp, [
|
|
5002
|
-
|
|
5007
|
+
R(A(sn), {
|
|
5003
5008
|
modelValue: c.value,
|
|
5004
5009
|
"onUpdate:modelValue": I[31] || (I[31] = (P) => c.value = P),
|
|
5005
5010
|
type: "basic",
|
|
@@ -5011,20 +5016,20 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5011
5016
|
},
|
|
5012
5017
|
"destroy-on-close": ""
|
|
5013
5018
|
}, {
|
|
5014
|
-
header:
|
|
5019
|
+
header: x(() => [
|
|
5015
5020
|
ue(
|
|
5016
5021
|
Y(A(Q)("告警处理").value),
|
|
5017
5022
|
1
|
|
5018
5023
|
/* TEXT */
|
|
5019
5024
|
)
|
|
5020
5025
|
]),
|
|
5021
|
-
footer:
|
|
5026
|
+
footer: x(() => [
|
|
5022
5027
|
$("div", kp, [
|
|
5023
|
-
|
|
5028
|
+
R(A(Te), {
|
|
5024
5029
|
size: "middle",
|
|
5025
5030
|
onClick: Cr
|
|
5026
5031
|
}, {
|
|
5027
|
-
default:
|
|
5032
|
+
default: x(() => [
|
|
5028
5033
|
ue(
|
|
5029
5034
|
Y(A(Q)("取消").value),
|
|
5030
5035
|
1
|
|
@@ -5034,11 +5039,11 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5034
5039
|
_: 1
|
|
5035
5040
|
/* STABLE */
|
|
5036
5041
|
}),
|
|
5037
|
-
|
|
5042
|
+
R(A(Te), {
|
|
5038
5043
|
size: "middle",
|
|
5039
|
-
onClick: I[29] || (I[29] = (P) =>
|
|
5044
|
+
onClick: I[29] || (I[29] = (P) => En(1))
|
|
5040
5045
|
}, {
|
|
5041
|
-
default:
|
|
5046
|
+
default: x(() => [
|
|
5042
5047
|
ue(
|
|
5043
5048
|
Y(A(Q)("结束处理").value),
|
|
5044
5049
|
1
|
|
@@ -5048,12 +5053,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5048
5053
|
_: 1
|
|
5049
5054
|
/* STABLE */
|
|
5050
5055
|
}),
|
|
5051
|
-
|
|
5056
|
+
R(A(Te), {
|
|
5052
5057
|
btnType: "primary",
|
|
5053
5058
|
size: "middle",
|
|
5054
|
-
onClick: I[30] || (I[30] = (P) =>
|
|
5059
|
+
onClick: I[30] || (I[30] = (P) => En(2))
|
|
5055
5060
|
}, {
|
|
5056
|
-
default:
|
|
5061
|
+
default: x(() => [
|
|
5057
5062
|
ue(
|
|
5058
5063
|
Y(A(Q)("继续处理").value),
|
|
5059
5064
|
1
|
|
@@ -5065,9 +5070,9 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5065
5070
|
})
|
|
5066
5071
|
])
|
|
5067
5072
|
]),
|
|
5068
|
-
default:
|
|
5069
|
-
|
|
5070
|
-
default:
|
|
5073
|
+
default: x(() => [
|
|
5074
|
+
R(A(Bo), { spinning: i.value }, {
|
|
5075
|
+
default: x(() => [
|
|
5071
5076
|
$(
|
|
5072
5077
|
"div",
|
|
5073
5078
|
{
|
|
@@ -5076,13 +5081,13 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5076
5081
|
class: "handle-alarm-dialog-content"
|
|
5077
5082
|
},
|
|
5078
5083
|
[
|
|
5079
|
-
|
|
5084
|
+
R(A(fs), {
|
|
5080
5085
|
style: { width: "100%", height: "100%", "align-items": "center" },
|
|
5081
5086
|
cols: 1,
|
|
5082
5087
|
alignType: "horizontal"
|
|
5083
5088
|
}, {
|
|
5084
|
-
default:
|
|
5085
|
-
|
|
5089
|
+
default: x(() => [
|
|
5090
|
+
R(A(_e), {
|
|
5086
5091
|
label: A(Q)("处理类型").value,
|
|
5087
5092
|
required: "",
|
|
5088
5093
|
type: "select",
|
|
@@ -5092,12 +5097,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5092
5097
|
col: 1,
|
|
5093
5098
|
optionsLabelKey: "name",
|
|
5094
5099
|
optionsValueKey: "id",
|
|
5095
|
-
"get-popup-container":
|
|
5100
|
+
"get-popup-container": W,
|
|
5096
5101
|
marginBottom: "30px",
|
|
5097
5102
|
marginRight: "0",
|
|
5098
5103
|
onChange: _r
|
|
5099
5104
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
5100
|
-
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(),
|
|
5105
|
+
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
|
|
5101
5106
|
key: 0,
|
|
5102
5107
|
label: A(Q)("告警原因").value,
|
|
5103
5108
|
required: s.value.processTypeId == "dealwith",
|
|
@@ -5112,7 +5117,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5112
5117
|
marginBottom: "30px",
|
|
5113
5118
|
marginRight: "0"
|
|
5114
5119
|
}, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
|
|
5115
|
-
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(),
|
|
5120
|
+
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
|
|
5116
5121
|
key: 1,
|
|
5117
5122
|
label: A(Q)("处理方案").value,
|
|
5118
5123
|
required: s.value.processTypeId == "dealwith",
|
|
@@ -5127,7 +5132,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5127
5132
|
marginBottom: "30px",
|
|
5128
5133
|
marginRight: "0"
|
|
5129
5134
|
}, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
|
|
5130
|
-
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(),
|
|
5135
|
+
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
|
|
5131
5136
|
key: 2,
|
|
5132
5137
|
label: A(Q)("备注").value,
|
|
5133
5138
|
type: "textarea",
|
|
@@ -5140,7 +5145,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5140
5145
|
marginBottom: "30px",
|
|
5141
5146
|
marginRight: "0"
|
|
5142
5147
|
}, null, 8, ["label", "modelValue"])) : U("v-if", !0),
|
|
5143
|
-
s.value.processTypeId == "createorder" ? (H(),
|
|
5148
|
+
s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
|
|
5144
5149
|
key: 3,
|
|
5145
5150
|
label: A(Q)("报事位置").value,
|
|
5146
5151
|
required: "",
|
|
@@ -5150,10 +5155,10 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5150
5155
|
marginBottom: "20px",
|
|
5151
5156
|
marginRight: "0"
|
|
5152
5157
|
}, {
|
|
5153
|
-
default:
|
|
5158
|
+
default: x(() => [
|
|
5154
5159
|
$("div", Ip, [
|
|
5155
|
-
$("div",
|
|
5156
|
-
|
|
5160
|
+
$("div", Ep, [
|
|
5161
|
+
R(A(ps), {
|
|
5157
5162
|
borderType: "underline",
|
|
5158
5163
|
props: { disabled: "_disabled", label: "name" },
|
|
5159
5164
|
modelValue: s.value.reportPosition,
|
|
@@ -5166,13 +5171,13 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5166
5171
|
data: _.value,
|
|
5167
5172
|
placeholder: d.value,
|
|
5168
5173
|
disabled: k.value,
|
|
5169
|
-
load:
|
|
5170
|
-
search:
|
|
5171
|
-
onChange:
|
|
5174
|
+
load: E,
|
|
5175
|
+
search: S,
|
|
5176
|
+
onChange: Se,
|
|
5172
5177
|
filter: !0,
|
|
5173
5178
|
allowClear: !0
|
|
5174
5179
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
5175
|
-
|
|
5180
|
+
R(A(Pn), {
|
|
5176
5181
|
ref: "testInput",
|
|
5177
5182
|
modelValue: s.value.customPath,
|
|
5178
5183
|
"onUpdate:modelValue": I[11] || (I[11] = (P) => s.value.customPath = P),
|
|
@@ -5181,14 +5186,14 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5181
5186
|
maxlength: "20"
|
|
5182
5187
|
}, null, 8, ["modelValue", "disabled"])
|
|
5183
5188
|
]),
|
|
5184
|
-
|
|
5189
|
+
R(A(Bn), {
|
|
5185
5190
|
modelValue: B.value,
|
|
5186
5191
|
"onUpdate:modelValue": I[12] || (I[12] = (P) => B.value = P),
|
|
5187
5192
|
checkboxType: "default",
|
|
5188
5193
|
onChange: ft,
|
|
5189
5194
|
size: "middle"
|
|
5190
5195
|
}, {
|
|
5191
|
-
default:
|
|
5196
|
+
default: x(() => [
|
|
5192
5197
|
ue(
|
|
5193
5198
|
Y(A(Q)("告警对象位置").value),
|
|
5194
5199
|
1
|
|
@@ -5203,7 +5208,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5203
5208
|
_: 1
|
|
5204
5209
|
/* STABLE */
|
|
5205
5210
|
}, 8, ["label", "error"])) : U("v-if", !0),
|
|
5206
|
-
s.value.processTypeId == "createorder" ? (H(),
|
|
5211
|
+
s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
|
|
5207
5212
|
key: 4,
|
|
5208
5213
|
label: A(Q)("报事主题").value,
|
|
5209
5214
|
required: "",
|
|
@@ -5213,9 +5218,9 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5213
5218
|
marginBottom: "20px",
|
|
5214
5219
|
marginRight: "0"
|
|
5215
5220
|
}, {
|
|
5216
|
-
default:
|
|
5217
|
-
$("div",
|
|
5218
|
-
|
|
5221
|
+
default: x(() => [
|
|
5222
|
+
$("div", Sp, [
|
|
5223
|
+
R(A(Pn), {
|
|
5219
5224
|
maxlength: "20",
|
|
5220
5225
|
disabled: C.value,
|
|
5221
5226
|
modelValue: s.value.reportTheme,
|
|
@@ -5223,14 +5228,14 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5223
5228
|
placeholder: m.value,
|
|
5224
5229
|
onChange: ie
|
|
5225
5230
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
5226
|
-
|
|
5231
|
+
R(A(Bn), {
|
|
5227
5232
|
modelValue: M.value,
|
|
5228
5233
|
"onUpdate:modelValue": I[15] || (I[15] = (P) => M.value = P),
|
|
5229
5234
|
checkboxType: "default",
|
|
5230
5235
|
onChange: oe,
|
|
5231
5236
|
size: "middle"
|
|
5232
5237
|
}, {
|
|
5233
|
-
default:
|
|
5238
|
+
default: x(() => [
|
|
5234
5239
|
ue(
|
|
5235
5240
|
Y(A(Q)("告警对象").value),
|
|
5236
5241
|
1
|
|
@@ -5245,7 +5250,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5245
5250
|
_: 1
|
|
5246
5251
|
/* STABLE */
|
|
5247
5252
|
}, 8, ["label", "error"])) : U("v-if", !0),
|
|
5248
|
-
s.value.processTypeId == "createorder" ? (H(),
|
|
5253
|
+
s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
|
|
5249
5254
|
key: 5,
|
|
5250
5255
|
label: A(Q)("工单规则").value,
|
|
5251
5256
|
required: "",
|
|
@@ -5258,12 +5263,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5258
5263
|
col: 1,
|
|
5259
5264
|
optionsLabelKey: "name",
|
|
5260
5265
|
optionsValueKey: "id",
|
|
5261
|
-
"get-popup-container":
|
|
5266
|
+
"get-popup-container": W,
|
|
5262
5267
|
marginBottom: "0px",
|
|
5263
5268
|
marginRight: "0"
|
|
5264
5269
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5265
5270
|
U(" createcontingency 生成应急事件 "),
|
|
5266
|
-
s.value.processTypeId == "createcontingency" ? (H(),
|
|
5271
|
+
s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
|
|
5267
5272
|
key: 6,
|
|
5268
5273
|
label: A(Q)("事件类型").value,
|
|
5269
5274
|
required: "",
|
|
@@ -5276,12 +5281,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5276
5281
|
col: 1,
|
|
5277
5282
|
optionsLabelKey: "typeName",
|
|
5278
5283
|
optionsValueKey: "id",
|
|
5279
|
-
"get-popup-container":
|
|
5284
|
+
"get-popup-container": W,
|
|
5280
5285
|
marginBottom: "30px",
|
|
5281
5286
|
marginRight: "0",
|
|
5282
5287
|
onChange: I[21] || (I[21] = (P) => Oe("eventTypeId"))
|
|
5283
5288
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5284
|
-
s.value.processTypeId == "createcontingency" ? (H(),
|
|
5289
|
+
s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
|
|
5285
5290
|
key: 7,
|
|
5286
5291
|
label: A(Q)("事件等级").value,
|
|
5287
5292
|
required: "",
|
|
@@ -5294,12 +5299,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5294
5299
|
col: 1,
|
|
5295
5300
|
optionsLabelKey: "name",
|
|
5296
5301
|
optionsValueKey: "id",
|
|
5297
|
-
"get-popup-container":
|
|
5302
|
+
"get-popup-container": W,
|
|
5298
5303
|
marginBottom: "30px",
|
|
5299
5304
|
marginRight: "0",
|
|
5300
5305
|
onChange: I[24] || (I[24] = (P) => Oe("eventLevelId"))
|
|
5301
5306
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5302
|
-
s.value.processTypeId == "createcontingency" ? (H(),
|
|
5307
|
+
s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
|
|
5303
5308
|
key: 8,
|
|
5304
5309
|
label: A(Q)("处置时限").value,
|
|
5305
5310
|
required: "",
|
|
@@ -5314,9 +5319,9 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5314
5319
|
marginBottom: "30px",
|
|
5315
5320
|
marginRight: "0"
|
|
5316
5321
|
}, {
|
|
5317
|
-
default:
|
|
5322
|
+
default: x(() => [
|
|
5318
5323
|
$("div", Tp, [
|
|
5319
|
-
|
|
5324
|
+
R(A(ds), {
|
|
5320
5325
|
class: "select",
|
|
5321
5326
|
modelValue: s.value.interval,
|
|
5322
5327
|
"onUpdate:modelValue": I[25] || (I[25] = (P) => s.value.interval = P),
|
|
@@ -5328,7 +5333,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5328
5333
|
options: v.value,
|
|
5329
5334
|
"border-type": "underline",
|
|
5330
5335
|
size: "small",
|
|
5331
|
-
"get-popup-container":
|
|
5336
|
+
"get-popup-container": W,
|
|
5332
5337
|
onChange: I[26] || (I[26] = (P) => Oe("interval")),
|
|
5333
5338
|
placeholder: "请选择"
|
|
5334
5339
|
}, null, 8, ["modelValue", "options"])
|
|
@@ -5355,10 +5360,10 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5355
5360
|
}, 8, ["modelValue"])
|
|
5356
5361
|
]));
|
|
5357
5362
|
}
|
|
5358
|
-
}), Op = /* @__PURE__ */ Ie(Bp, [["__scopeId", "data-v-
|
|
5363
|
+
}), Op = /* @__PURE__ */ Ie(Bp, [["__scopeId", "data-v-1ecf3324"]]), Dp = (n, e, t) => ({
|
|
5359
5364
|
handleAlarmVue: () => he(Op, {
|
|
5360
5365
|
handerIds: e.value,
|
|
5361
|
-
projectId:
|
|
5366
|
+
projectId: St().id,
|
|
5362
5367
|
ref: n,
|
|
5363
5368
|
onEmitFn: (r, i) => {
|
|
5364
5369
|
}
|
|
@@ -5394,13 +5399,13 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5394
5399
|
$(
|
|
5395
5400
|
"div",
|
|
5396
5401
|
{
|
|
5397
|
-
style:
|
|
5402
|
+
style: Sn({ "background-color": a.msgItem.color }),
|
|
5398
5403
|
class: "title-detail"
|
|
5399
5404
|
},
|
|
5400
5405
|
[
|
|
5401
5406
|
$("div", Lp, [
|
|
5402
|
-
U(` <div class="icon-box" :style="{ color: msgItem.color }"
|
|
5403
|
-
|
|
5407
|
+
U(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
5408
|
+
!\r
|
|
5404
5409
|
</div> `),
|
|
5405
5410
|
$(
|
|
5406
5411
|
"div",
|
|
@@ -5428,7 +5433,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5428
5433
|
"div",
|
|
5429
5434
|
{
|
|
5430
5435
|
class: "alarm-msg-line-right alarm-content-object",
|
|
5431
|
-
style:
|
|
5436
|
+
style: Sn({ color: a.msgItem.color })
|
|
5432
5437
|
},
|
|
5433
5438
|
Y(a.msgItem.alarmLevelName || ""),
|
|
5434
5439
|
5
|
|
@@ -5468,14 +5473,14 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5468
5473
|
)
|
|
5469
5474
|
]),
|
|
5470
5475
|
$("div", Vp, [
|
|
5471
|
-
a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(),
|
|
5476
|
+
a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(A(Te), {
|
|
5472
5477
|
key: 0,
|
|
5473
5478
|
block: "",
|
|
5474
5479
|
onClick: ne(i, ["stop"]),
|
|
5475
5480
|
btnType: "primary-text",
|
|
5476
5481
|
size: "middle"
|
|
5477
5482
|
}, {
|
|
5478
|
-
default:
|
|
5483
|
+
default: x(() => [
|
|
5479
5484
|
ue(
|
|
5480
5485
|
Y(A(Q)("设备详情").value),
|
|
5481
5486
|
1
|
|
@@ -5485,14 +5490,14 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5485
5490
|
_: 1
|
|
5486
5491
|
/* STABLE */
|
|
5487
5492
|
})) : U("v-if", !0),
|
|
5488
|
-
a.alarmhandle ? (H(),
|
|
5493
|
+
a.alarmhandle ? (H(), V(A(Te), {
|
|
5489
5494
|
key: 1,
|
|
5490
5495
|
block: "",
|
|
5491
5496
|
btnType: "primary-text",
|
|
5492
5497
|
onClick: ne(r, ["stop"]),
|
|
5493
5498
|
size: "middle"
|
|
5494
5499
|
}, {
|
|
5495
|
-
default:
|
|
5500
|
+
default: x(() => [
|
|
5496
5501
|
ue(
|
|
5497
5502
|
Y(A(Q)("处理").value),
|
|
5498
5503
|
1
|
|
@@ -5537,27 +5542,27 @@ const Xp = () => {
|
|
|
5537
5542
|
loop: !1
|
|
5538
5543
|
// 轮播-无限次播放
|
|
5539
5544
|
});
|
|
5540
|
-
|
|
5541
|
-
const { isRealTimeAlarm: C, audioPlay: M } =
|
|
5545
|
+
X.addEventListenerFromMicroApp("alarm:change-alarmconfig", (S) => {
|
|
5546
|
+
const { isRealTimeAlarm: C, audioPlay: M } = S.data;
|
|
5542
5547
|
C != null && (l.value = C), M != null && (c.value = M, c.value || w());
|
|
5543
5548
|
});
|
|
5544
|
-
const u = (
|
|
5549
|
+
const u = (S) => {
|
|
5545
5550
|
var M;
|
|
5546
5551
|
const C = [];
|
|
5547
|
-
C.push({ alarmId:
|
|
5548
|
-
}, { entryApp: b } = bt.hooks.useEntryApp(), g = (
|
|
5549
|
-
ko(
|
|
5552
|
+
C.push({ alarmId: S.recordId }), r.value = C, (M = t.value) == null || M.open();
|
|
5553
|
+
}, { entryApp: b } = bt.hooks.useEntryApp(), g = (S) => {
|
|
5554
|
+
ko(S.equipmentCode, S.equipmentPanelCode);
|
|
5550
5555
|
}, { handleAlarmVue: f } = Dp(t, r), v = async () => {
|
|
5551
5556
|
var M;
|
|
5552
|
-
const C = (((M =
|
|
5557
|
+
const C = (((M = F().appcategorys) == null ? void 0 : M.map((L) => L.apps).flat()) ?? []).find((L) => L.code === "alarm");
|
|
5553
5558
|
C && b({ microApp: C, menuPath: `/${C.routeUrl}/realTimeAlarm` });
|
|
5554
|
-
}, y = [], p = (
|
|
5555
|
-
if (y.push(
|
|
5559
|
+
}, y = [], p = (S) => {
|
|
5560
|
+
if (y.push(S), i.value.length < 2) {
|
|
5556
5561
|
d(y[0]), y.shift();
|
|
5557
5562
|
return;
|
|
5558
5563
|
}
|
|
5559
|
-
}, d = (
|
|
5560
|
-
if (!
|
|
5564
|
+
}, d = (S) => {
|
|
5565
|
+
if (!S) return;
|
|
5561
5566
|
const C = Gp();
|
|
5562
5567
|
yt.open({
|
|
5563
5568
|
key: C,
|
|
@@ -5565,7 +5570,7 @@ const Xp = () => {
|
|
|
5565
5570
|
message: Q("新告警").value,
|
|
5566
5571
|
placement: "bottomRight",
|
|
5567
5572
|
description: he(Kp, {
|
|
5568
|
-
msgItem:
|
|
5573
|
+
msgItem: S,
|
|
5569
5574
|
alarmhandle: a.value,
|
|
5570
5575
|
onHanderDetail: g,
|
|
5571
5576
|
onHanderFn: u
|
|
@@ -5583,24 +5588,24 @@ const Xp = () => {
|
|
|
5583
5588
|
}
|
|
5584
5589
|
}, 300);
|
|
5585
5590
|
}
|
|
5586
|
-
}), i.value.includes(C) || i.value.push(C), m(
|
|
5587
|
-
}, m = (
|
|
5588
|
-
if (
|
|
5591
|
+
}), i.value.includes(C) || i.value.push(C), m(S);
|
|
5592
|
+
}, m = (S) => {
|
|
5593
|
+
if (S) {
|
|
5589
5594
|
if (!c.value) {
|
|
5590
5595
|
w();
|
|
5591
5596
|
return;
|
|
5592
5597
|
}
|
|
5593
|
-
if (!
|
|
5598
|
+
if (!S.coverId) {
|
|
5594
5599
|
if (s.value.playLine === null) {
|
|
5595
|
-
w(), Number(
|
|
5600
|
+
w(), Number(S.noticeNum) != 0 && _(S);
|
|
5596
5601
|
return;
|
|
5597
5602
|
}
|
|
5598
|
-
Number(
|
|
5603
|
+
Number(S.alarmLevelId) < s.value.playLine && (w(), Number(S.noticeNum) != 0 && _(S));
|
|
5599
5604
|
}
|
|
5600
5605
|
}
|
|
5601
|
-
}, _ = (
|
|
5602
|
-
const C = Number(
|
|
5603
|
-
s.value.isplay && s.value.playId ==
|
|
5606
|
+
}, _ = (S) => {
|
|
5607
|
+
const C = Number(S.noticeNum), M = location.origin + "/oss";
|
|
5608
|
+
s.value.isplay && s.value.playId == S.recordId ? w() : (C < 0 ? s.value.loop = !0 : s.value.loop = !1, C > 0 ? (s.value.loopTotalCount = Number(S.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = S.recordId, s.value.playLine = Number(S.alarmLevelId), s.value.playPath = M + S.noticePath, k());
|
|
5604
5609
|
}, w = () => {
|
|
5605
5610
|
s.value.playId = "", s.value.playPath = "", s.value.playLine = null, s.value.loopCount = 0, s.value.loopTotalCount = 0, s.value.isplay = !1, s.value.loop = !1;
|
|
5606
5611
|
}, k = () => {
|
|
@@ -5608,8 +5613,8 @@ const Xp = () => {
|
|
|
5608
5613
|
s.value.loopCount = s.value.loopCount + 1, s.value.loopTotalCount && s.value.loopTotalCount && (s.value.loopCount == s.value.loopTotalCount ? (s.value.playPath = "", s.value.isplay = !1, s.value.playId = "", s.value.loopTotalCount = 0, s.value.loopCount = 0, s.value.playLine = null) : o.value.play());
|
|
5609
5614
|
};
|
|
5610
5615
|
}, B = async () => {
|
|
5611
|
-
const [
|
|
5612
|
-
|
|
5616
|
+
const [S, C] = await Ap().run();
|
|
5617
|
+
S || (c.value = C.isEnable);
|
|
5613
5618
|
};
|
|
5614
5619
|
return {
|
|
5615
5620
|
alarmSocket: n,
|
|
@@ -5619,11 +5624,11 @@ const Xp = () => {
|
|
|
5619
5624
|
handleAlarmVue: f,
|
|
5620
5625
|
creatAlarmSocket: async () => {
|
|
5621
5626
|
B();
|
|
5622
|
-
const [
|
|
5627
|
+
const [S, C] = await pp().run({
|
|
5623
5628
|
code: "alarm",
|
|
5624
5629
|
showBtn: !0
|
|
5625
5630
|
});
|
|
5626
|
-
if (
|
|
5631
|
+
if (S || !C || !C.length) return;
|
|
5627
5632
|
let M = !1;
|
|
5628
5633
|
C.forEach((L) => {
|
|
5629
5634
|
L.code === "alarm.realTimeAlarm" && (M = !0, L.children && L.children.length ? L.children.forEach((N) => {
|
|
@@ -5637,7 +5642,7 @@ const Xp = () => {
|
|
|
5637
5642
|
L && n.value.send(L);
|
|
5638
5643
|
},
|
|
5639
5644
|
message: async (L) => {
|
|
5640
|
-
|
|
5645
|
+
X.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: L }), L.messageType === "ADD" && (e.value = e.value + 1, L.coverId || p(L)), L.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == L.recordId && w());
|
|
5641
5646
|
}
|
|
5642
5647
|
}));
|
|
5643
5648
|
}
|
|
@@ -5646,15 +5651,15 @@ const Xp = () => {
|
|
|
5646
5651
|
__name: "index",
|
|
5647
5652
|
setup(n) {
|
|
5648
5653
|
const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: i } = Xp();
|
|
5649
|
-
return
|
|
5654
|
+
return Qe(async () => {
|
|
5650
5655
|
await Tt(), t();
|
|
5651
|
-
}),
|
|
5656
|
+
}), Et(() => {
|
|
5652
5657
|
e.value && e.value.disconnect(), e.value = null;
|
|
5653
5658
|
}), (a, l) => (H(), de(
|
|
5654
5659
|
We,
|
|
5655
5660
|
null,
|
|
5656
5661
|
[
|
|
5657
|
-
|
|
5662
|
+
R(A(i)),
|
|
5658
5663
|
$("audio", {
|
|
5659
5664
|
src: A(o).playPath,
|
|
5660
5665
|
class: "audio-alarm-level",
|
|
@@ -5672,15 +5677,15 @@ const Xp = () => {
|
|
|
5672
5677
|
}), ef = { class: "das-main-app-container" }, tf = /* @__PURE__ */ pe({
|
|
5673
5678
|
__name: "index",
|
|
5674
5679
|
setup(n) {
|
|
5675
|
-
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() =>
|
|
5676
|
-
|
|
5680
|
+
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => te.excludeRoutes), r = Ce(() => te.routeKeepAliveVisible), i = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = yu(), { innerPage: l, commandList: c, initNextTick: s } = _u(a);
|
|
5681
|
+
Su(l, a, s), Eu(), Cu(), Bu();
|
|
5677
5682
|
const { $changePwd: u, $personSetDialog: b } = Tu(), { changeEnterprisesVisible: g, userId: f, tenantId: v, changeEnterprise: y } = fr();
|
|
5678
5683
|
wu();
|
|
5679
5684
|
const { fontColor: p, backgroudColor: d, borderColor: m } = Iu();
|
|
5680
5685
|
return Ru(), Qu(c), ju(), Nu(), yd(), up(), (_, w) => (H(), de("div", ef, [
|
|
5681
|
-
|
|
5682
|
-
default:
|
|
5683
|
-
|
|
5686
|
+
R(A(Os), { platformInitNextTick: A(a) }, {
|
|
5687
|
+
default: x(() => [
|
|
5688
|
+
R(gs, {
|
|
5684
5689
|
showLayout: t.value,
|
|
5685
5690
|
excludeRoutes: o.value,
|
|
5686
5691
|
routeKeepAliveVisible: r.value,
|
|
@@ -5692,7 +5697,7 @@ const Xp = () => {
|
|
|
5692
5697
|
/* STABLE */
|
|
5693
5698
|
}, 8, ["platformInitNextTick"]),
|
|
5694
5699
|
U(" 切换租户 "),
|
|
5695
|
-
|
|
5700
|
+
R(A(Nr), {
|
|
5696
5701
|
visible: A(g),
|
|
5697
5702
|
"onUpdate:visible": w[0] || (w[0] = (k) => Mr(g) ? g.value = k : null),
|
|
5698
5703
|
userId: A(f),
|
|
@@ -5700,7 +5705,7 @@ const Xp = () => {
|
|
|
5700
5705
|
onConfirm: A(y)
|
|
5701
5706
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
5702
5707
|
U(" 修改密码 "),
|
|
5703
|
-
|
|
5708
|
+
R(
|
|
5704
5709
|
A(Hr),
|
|
5705
5710
|
{
|
|
5706
5711
|
ref_key: "$changePwd",
|
|
@@ -5711,7 +5716,7 @@ const Xp = () => {
|
|
|
5711
5716
|
/* NEED_PATCH */
|
|
5712
5717
|
),
|
|
5713
5718
|
U(" 个性化设置 "),
|
|
5714
|
-
|
|
5719
|
+
R(
|
|
5715
5720
|
A(Au),
|
|
5716
5721
|
{
|
|
5717
5722
|
ref_key: "$personSetDialog",
|
|
@@ -5722,23 +5727,23 @@ const Xp = () => {
|
|
|
5722
5727
|
/* NEED_PATCH */
|
|
5723
5728
|
),
|
|
5724
5729
|
U(" 告警 "),
|
|
5725
|
-
|
|
5730
|
+
R(A(Yp))
|
|
5726
5731
|
]));
|
|
5727
5732
|
}
|
|
5728
|
-
}), nf = /* @__PURE__ */ Ie(tf, [["__scopeId", "data-v-
|
|
5733
|
+
}), nf = /* @__PURE__ */ Ie(tf, [["__scopeId", "data-v-45ef70df"]]);
|
|
5729
5734
|
T("@das-fed/web");
|
|
5730
5735
|
const of = [
|
|
5731
5736
|
{
|
|
5732
5737
|
path: ke,
|
|
5733
|
-
component: () => import("./index-
|
|
5738
|
+
component: () => import("./index-BoLhjzZB.js")
|
|
5734
5739
|
},
|
|
5735
5740
|
{
|
|
5736
5741
|
path: Je,
|
|
5737
|
-
component: () => import("./index-
|
|
5742
|
+
component: () => import("./index-C9QdijG-.js")
|
|
5738
5743
|
},
|
|
5739
5744
|
{
|
|
5740
5745
|
path: Do,
|
|
5741
|
-
component: () => import("./index-
|
|
5746
|
+
component: () => import("./index-D8WGTZ14.js")
|
|
5742
5747
|
}
|
|
5743
5748
|
], qf = {
|
|
5744
5749
|
routes: of,
|
|
@@ -5759,7 +5764,7 @@ export {
|
|
|
5759
5764
|
qe as c,
|
|
5760
5765
|
Wt as d,
|
|
5761
5766
|
At as e,
|
|
5762
|
-
|
|
5767
|
+
te as l,
|
|
5763
5768
|
qf as m,
|
|
5764
5769
|
et as u
|
|
5765
5770
|
};
|