@das-fed/web 6.4.0-dev.24 → 6.4.0-dev.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-zGHBkieQ.js → index-7q45xJ0u.js} +1 -1
- package/{packages/main-app-framework/index-B0_wDXgo.js → index-B53IGh_C.js} +1 -1
- package/index-B53IGh_C.js.gz +0 -0
- package/{index-zb-EUWP3.js → index-C4euhyNr.js} +514 -514
- package/index-C4euhyNr.js.gz +0 -0
- package/{index--hc7ELMA.js → index-DFQjHvMm.js} +1 -1
- package/index-DFQjHvMm.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +24 -24
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-D4rajFxT.js → index-BqeJZoEJ.js} +303 -303
- package/packages/main-app-framework/index-BqeJZoEJ.js.gz +0 -0
- package/{index-clvzgAFf.js → packages/main-app-framework/index-DBjwQZqL.js} +1 -1
- package/packages/main-app-framework/index-DBjwQZqL.js.gz +0 -0
- package/packages/main-app-framework/{index-f5pYmnKV.js → index-DyeXA7YK.js} +1 -1
- package/packages/main-app-framework/{index-DFNYnsJI.js → index-J2C2DUqZ.js} +1 -1
- package/packages/main-app-framework/index-J2C2DUqZ.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index--hc7ELMA.js.gz +0 -0
- package/index-clvzgAFf.js.gz +0 -0
- package/index-zb-EUWP3.js.gz +0 -0
- package/packages/main-app-framework/index-B0_wDXgo.js.gz +0 -0
- package/packages/main-app-framework/index-D4rajFxT.js.gz +0 -0
- package/packages/main-app-framework/index-DFNYnsJI.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as de, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as oe, reactive as yo, createElementVNode as x, createTextVNode as le, createElementBlock as ue, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as Z, createCommentVNode as U, h as fe, render as vt, onBeforeUnmount as Et, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
|
|
2
2
|
import { i18n as Q } from "@das-fed/web/packages/i18n/index";
|
|
3
3
|
import { DasWebLayout as $r, DasWebNav as Lr, DasWebMenu as xr, DasWebTabs as Mr, layout as D } from "@das-fed/web/packages/layout/index";
|
|
4
4
|
import { DasChangePwdRef as Rr, DasChangePwd as Qr } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
@@ -6,8 +6,8 @@ import { DasChangeEnterprises as jr } 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 Hr, isEmpty as Nr, treeFind as Tn, updateFavIcon as Ur, dateFormat as Fr, runPromiseByQueue as Jr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Wr, withToken as zr } from "@das-fed/utils/common-tools";
|
|
9
|
-
import { getSubApps as J, getTabInfo as ae, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as
|
|
10
|
-
import { setProcessEngineProject as
|
|
9
|
+
import { getSubApps as J, getTabInfo as ae, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as wo, getMenus as _t } from "@das-fed/utils/common-info";
|
|
10
|
+
import { setProcessEngineProject as bo, setProcessEngineToken as Co } from "@das-fed/utils/process-engine-info";
|
|
11
11
|
import { oauthServer as Io, justauth as en, enterpriseright as tn, iotModules as Vr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
|
|
12
12
|
import { createService as je } from "@das-fed/utils/create-api-service";
|
|
13
13
|
import { useRouter as Ge, useRoute as on } from "vue-router";
|
|
@@ -16,10 +16,10 @@ import { systemConfiguration as Kr, enterpriseright as rn, createService as Xe,
|
|
|
16
16
|
import { getConfig as He } from "@das-fed/utils/config";
|
|
17
17
|
import Jt from "dayjs";
|
|
18
18
|
import { getAccessToken as Gr, removeAccessToken as Xr } from "@das-fed/utils/token-tools";
|
|
19
|
-
import { microFrontend as ue } from "@das-fed/web/packages/micro-frontend/index";
|
|
20
19
|
import { DasDialog as sn } from "@das-fed/ui/packages/components/dialog/index";
|
|
21
20
|
import { DasButton as ke } from "@das-fed/ui/packages/components/button/index";
|
|
22
21
|
import { vDasTooltip as Zr } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
22
|
+
import { microFrontend as me } from "@das-fed/web/packages/micro-frontend/index";
|
|
23
23
|
import { tokenStorage as Yr } from "@das-fed/utils/create-api-service/sso";
|
|
24
24
|
import { setPersonalInfo as es } from "@das-fed/utils/common-info/set-personal-info";
|
|
25
25
|
import { setThemeRule as ts } from "@das-fed/web/packages/theme/index";
|
|
@@ -27,7 +27,7 @@ import { devicePanelShow as So, closeDevicePanel as ns, alarmDevicePanelShow as
|
|
|
27
27
|
import { DasIcon as De, DasAutoRegisterIcon as To } from "@das-fed/ui/packages/components/icon/index";
|
|
28
28
|
import { socketService as an } from "@das-fed/utils/webSocket-service";
|
|
29
29
|
import { userInfoNextTick as ss, tokenNextTick as Tt } from "@das-fed/utils/nextTiken";
|
|
30
|
-
import { mainAppFramework as
|
|
30
|
+
import { mainAppFramework as wt } from "@das-fed/web/packages/main-app-framework/index";
|
|
31
31
|
import { DasTooltip as ie } from "@das-fed/ui/packages/components/tooltip/index";
|
|
32
32
|
import { DasLivePlayer as is } from "@das-fed/ui/packages/components/live-player/index";
|
|
33
33
|
import { DasSpin as ko } from "@das-fed/ui/packages/components/spin/index";
|
|
@@ -48,7 +48,7 @@ const nt = "/", Ie = "/application", Po = [
|
|
|
48
48
|
{ value: "1", label: Q("个人中心").value },
|
|
49
49
|
{ value: "2", label: Q("修改密码").value },
|
|
50
50
|
{ value: "3", label: Q("退出登录").value }
|
|
51
|
-
], fs = /* @__PURE__ */
|
|
51
|
+
], fs = /* @__PURE__ */ de({
|
|
52
52
|
__name: "base-layout",
|
|
53
53
|
props: {
|
|
54
54
|
transitionConfig: { default: () => ({}) },
|
|
@@ -131,7 +131,7 @@ function _s(...n) {
|
|
|
131
131
|
};
|
|
132
132
|
return Do(i), i;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ws(n, e = !1) {
|
|
135
135
|
const t = E(), o = () => t.value = !!n();
|
|
136
136
|
return o(), ms(o, e), t;
|
|
137
137
|
}
|
|
@@ -182,11 +182,11 @@ const Ln = [
|
|
|
182
182
|
function lt(n, e = {}) {
|
|
183
183
|
const { document: t = ys, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), s = E(!1);
|
|
184
184
|
let a = Ln[0];
|
|
185
|
-
const l =
|
|
185
|
+
const l = ws(() => {
|
|
186
186
|
if (t) {
|
|
187
|
-
for (const
|
|
188
|
-
if (
|
|
189
|
-
return a =
|
|
187
|
+
for (const w of Ln)
|
|
188
|
+
if (w[1] in t)
|
|
189
|
+
return a = w, !0;
|
|
190
190
|
} else
|
|
191
191
|
return !1;
|
|
192
192
|
return !1;
|
|
@@ -198,8 +198,8 @@ function lt(n, e = {}) {
|
|
|
198
198
|
if (!l.value)
|
|
199
199
|
return;
|
|
200
200
|
await p();
|
|
201
|
-
const
|
|
202
|
-
|
|
201
|
+
const w = $o(r);
|
|
202
|
+
w && (await w[c](), s.value = !0);
|
|
203
203
|
}
|
|
204
204
|
async function S() {
|
|
205
205
|
s.value ? await p() : await h();
|
|
@@ -218,7 +218,7 @@ var xn;
|
|
|
218
218
|
(function(n) {
|
|
219
219
|
n.UP = "UP", n.RIGHT = "RIGHT", n.DOWN = "DOWN", n.LEFT = "LEFT", n.NONE = "NONE";
|
|
220
220
|
})(xn || (xn = {}));
|
|
221
|
-
var
|
|
221
|
+
var bs = Object.defineProperty, Mn = Object.getOwnPropertySymbols, Cs = Object.prototype.hasOwnProperty, Is = Object.prototype.propertyIsEnumerable, Rn = (n, e, t) => e in n ? bs(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Es = (n, e) => {
|
|
222
222
|
for (var t in e || (e = {}))
|
|
223
223
|
Cs.call(e, t) && Rn(n, t, e[t]);
|
|
224
224
|
if (Mn)
|
|
@@ -255,7 +255,7 @@ const Ss = {
|
|
|
255
255
|
Es({
|
|
256
256
|
linear: As
|
|
257
257
|
}, Ss);
|
|
258
|
-
const Ts = Kr.get("watermark"), ks = /* @__PURE__ */
|
|
258
|
+
const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
259
259
|
__name: "index",
|
|
260
260
|
props: {
|
|
261
261
|
platformInitNextTick: {}
|
|
@@ -264,27 +264,27 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
264
264
|
const e = n, t = E({}), o = E(120), r = E(64), s = E([]), a = E([]), l = yo({
|
|
265
265
|
color: "rgba(0,0,0,.15)",
|
|
266
266
|
fontSize: 16
|
|
267
|
-
}), c = (
|
|
267
|
+
}), c = (w, f) => {
|
|
268
268
|
const d = document.createElement("span");
|
|
269
|
-
d.innerHTML =
|
|
269
|
+
d.innerHTML = w, d.style.fontSize = f + "px", d.style.fontFamily = "sans-serif", d.style.visibility = "hidden", document.body.appendChild(d);
|
|
270
270
|
const m = d.getBoundingClientRect();
|
|
271
271
|
o.value = Math.ceil(m.width) + f / 2, r.value = Math.ceil(m.height), document.body.removeChild(d);
|
|
272
|
-
}, i = E(!1), u = () => new Promise((
|
|
272
|
+
}, i = E(!1), u = () => new Promise((w) => {
|
|
273
273
|
const f = () => {
|
|
274
|
-
if (i) return
|
|
274
|
+
if (i) return w(!0);
|
|
275
275
|
setTimeout(() => f(), 50);
|
|
276
276
|
};
|
|
277
277
|
f();
|
|
278
|
-
}), A = async (
|
|
278
|
+
}), A = async (w) => {
|
|
279
279
|
var d;
|
|
280
280
|
await u();
|
|
281
281
|
const f = !!((d = t.value) != null && d.pageSwith);
|
|
282
|
-
a.value =
|
|
282
|
+
a.value = w && f ? [...s.value] : [];
|
|
283
283
|
}, p = async () => {
|
|
284
|
-
var m, y, _, T, B, L,
|
|
284
|
+
var m, y, _, T, B, L, b;
|
|
285
285
|
i.value = !0, await (e == null ? void 0 : e.platformInitNextTick());
|
|
286
|
-
const [
|
|
287
|
-
if (
|
|
286
|
+
const [w, f] = await Ts().run();
|
|
287
|
+
if (w) return null;
|
|
288
288
|
if (t.value = f, !!((m = t.value) != null && m.pageSwith)) {
|
|
289
289
|
s.value = [];
|
|
290
290
|
const { name: C, phone: P } = await ss();
|
|
@@ -300,7 +300,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
300
300
|
$ = $ + `${H}`;
|
|
301
301
|
}
|
|
302
302
|
s.value.length && (s.value = s.value.join(" ").split(`
|
|
303
|
-
`)), l.color = (L = t.value) != null && L.textColor ? t.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (
|
|
303
|
+
`)), l.color = (L = t.value) != null && L.textColor ? t.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (b = t.value) != null && b.textSize ? parseInt(t.value.textSize) : 16, c($, l.fontSize);
|
|
304
304
|
}
|
|
305
305
|
return i.value = !1, f;
|
|
306
306
|
};
|
|
@@ -308,20 +308,20 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
308
308
|
const h = Ge(), S = on();
|
|
309
309
|
return oe(
|
|
310
310
|
() => h.currentRoute.value,
|
|
311
|
-
(
|
|
311
|
+
(w) => {
|
|
312
312
|
var y, _, T;
|
|
313
|
-
const f = !!((y = t.value) != null && y.pageSwith), d = ((_ =
|
|
314
|
-
let m = ((T =
|
|
313
|
+
const f = !!((y = t.value) != null && y.pageSwith), d = ((_ = w.meta) == null ? void 0 : _.showWatermark) ?? !0;
|
|
314
|
+
let m = ((T = w.query) == null ? void 0 : T.showWatermark) ?? !0;
|
|
315
315
|
m === "false" && (m = !1), A(f && !!(d && m));
|
|
316
316
|
},
|
|
317
317
|
{ immediate: !0 }
|
|
318
|
-
),
|
|
318
|
+
), me.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
319
319
|
var d, m;
|
|
320
320
|
await p();
|
|
321
|
-
const
|
|
321
|
+
const w = !!((d = t.value) != null && d.pageSwith);
|
|
322
322
|
let f = ((m = S.query) == null ? void 0 : m.showWatermark) ?? !0;
|
|
323
|
-
f === "false" && (f = !1), A(!!(
|
|
324
|
-
}), (
|
|
323
|
+
f === "false" && (f = !1), A(!!(w && f));
|
|
324
|
+
}), (w, f) => (N(), V(v(as), {
|
|
325
325
|
class: "watermark",
|
|
326
326
|
font: l,
|
|
327
327
|
zIndex: 2147483647,
|
|
@@ -330,7 +330,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
330
330
|
height: r.value
|
|
331
331
|
}, {
|
|
332
332
|
default: M(() => [
|
|
333
|
-
$e(
|
|
333
|
+
$e(w.$slots, "default", {}, void 0, !0)
|
|
334
334
|
]),
|
|
335
335
|
_: 3
|
|
336
336
|
/* FORWARDED */
|
|
@@ -345,7 +345,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
345
345
|
"--menu-tip-diaolg-content": "#212121",
|
|
346
346
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
347
347
|
"--menu-tip-diaolg-info": "#999999"
|
|
348
|
-
}, Os = ["innerHTML"], Ds = { class: "footer" }, $s = /* @__PURE__ */
|
|
348
|
+
}, Os = ["innerHTML"], Ds = { class: "footer" }, $s = /* @__PURE__ */ de({
|
|
349
349
|
__name: "tip",
|
|
350
350
|
props: {
|
|
351
351
|
title: {},
|
|
@@ -386,7 +386,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
386
386
|
class: "content",
|
|
387
387
|
innerHTML: t.content
|
|
388
388
|
}, null, 8, Os),
|
|
389
|
-
t.desc && t.desc.length ? (N(),
|
|
389
|
+
t.desc && t.desc.length ? (N(), ue(
|
|
390
390
|
We,
|
|
391
391
|
{ key: 0 },
|
|
392
392
|
[
|
|
@@ -397,10 +397,10 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
397
397
|
-1
|
|
398
398
|
/* HOISTED */
|
|
399
399
|
)),
|
|
400
|
-
(N(!0),
|
|
400
|
+
(N(!0), ue(
|
|
401
401
|
We,
|
|
402
402
|
null,
|
|
403
|
-
_o(t.desc, (r, s) => kr((N(),
|
|
403
|
+
_o(t.desc, (r, s) => kr((N(), ue("div", {
|
|
404
404
|
key: s,
|
|
405
405
|
class: "desc-item"
|
|
406
406
|
}, [
|
|
@@ -427,7 +427,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
|
427
427
|
}), Ls = /* @__PURE__ */ Ee($s, [["__scopeId", "data-v-72bc9a80"]]), rt = ({ title: n = "", content: e = "", desc: t = [] }) => new Promise((o) => {
|
|
428
428
|
const r = document.createElement("div");
|
|
429
429
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
430
|
-
const a =
|
|
430
|
+
const a = fe(Ls, { title: n, content: e, desc: t, closeCallback: () => {
|
|
431
431
|
vt(null, r), document.body.removeChild(r), o(null);
|
|
432
432
|
} });
|
|
433
433
|
vt(a, r);
|
|
@@ -474,7 +474,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
474
474
|
}), sessionStorage.setItem("tabs", JSON.stringify(e));
|
|
475
475
|
}, xo = () => {
|
|
476
476
|
sessionStorage.removeItem("tabs");
|
|
477
|
-
},
|
|
477
|
+
}, ge = (n) => {
|
|
478
478
|
let e = J();
|
|
479
479
|
n.forEach((t) => {
|
|
480
480
|
if (t.key === "subAppList" && !Array.isArray(t.value)) {
|
|
@@ -484,7 +484,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
484
484
|
Object.assign(e, { [t.key]: t.value });
|
|
485
485
|
}), sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
486
486
|
}, ln = () => {
|
|
487
|
-
|
|
487
|
+
ge([
|
|
488
488
|
{ key: "currentSubApp", value: {} },
|
|
489
489
|
{ key: "currentSubAppCode", value: "" },
|
|
490
490
|
{ key: "subAppList", value: [] }
|
|
@@ -518,11 +518,11 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
518
518
|
}), A.forEach((h) => {
|
|
519
519
|
let S = h.originalCode ? h.originalCode : h.code ? h.code : "";
|
|
520
520
|
S.includes(i + ".") && (S = S.replace(i + ".", "").replaceAll(".", "-")), S.includes(u + ".") && (S = S.replace(u + ".", "").replaceAll(".", "-"));
|
|
521
|
-
const
|
|
521
|
+
const w = {
|
|
522
522
|
code: S,
|
|
523
523
|
name: h.name
|
|
524
524
|
};
|
|
525
|
-
l[i].push(
|
|
525
|
+
l[i].push(w), u && i !== u && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][u] || (l["origin-auth"][u] = []), l["origin-auth"][u].push(w));
|
|
526
526
|
}));
|
|
527
527
|
}), o[e] = l, sessionStorage.setItem(t, JSON.stringify(o)), o;
|
|
528
528
|
}, Fs = () => {
|
|
@@ -644,8 +644,8 @@ function Ai(n) {
|
|
|
644
644
|
function mi(n) {
|
|
645
645
|
return this.__data__.has(n);
|
|
646
646
|
}
|
|
647
|
-
var jo = typeof global == "object" && global && global.Object === Object && global, vi = typeof self == "object" && self && self.Object === Object && self,
|
|
648
|
-
function
|
|
647
|
+
var jo = typeof global == "object" && global && global.Object === Object && global, vi = typeof self == "object" && self && self.Object === Object && self, we = jo || vi || Function("return this")(), ze = we.Symbol, Ho = Object.prototype, yi = Ho.hasOwnProperty, _i = Ho.toString, tt = ze ? ze.toStringTag : void 0;
|
|
648
|
+
function wi(n) {
|
|
649
649
|
var e = yi.call(n, tt), t = n[tt];
|
|
650
650
|
try {
|
|
651
651
|
n[tt] = void 0;
|
|
@@ -655,13 +655,13 @@ function bi(n) {
|
|
|
655
655
|
var r = _i.call(n);
|
|
656
656
|
return o && (e ? n[tt] = t : delete n[tt]), r;
|
|
657
657
|
}
|
|
658
|
-
var
|
|
658
|
+
var bi = Object.prototype, Ci = bi.toString;
|
|
659
659
|
function Ii(n) {
|
|
660
660
|
return Ci.call(n);
|
|
661
661
|
}
|
|
662
662
|
var Ei = "[object Null]", Si = "[object Undefined]", Qn = ze ? ze.toStringTag : void 0;
|
|
663
663
|
function ut(n) {
|
|
664
|
-
return n == null ? n === void 0 ? Si : Ei : Qn && Qn in Object(n) ?
|
|
664
|
+
return n == null ? n === void 0 ? Si : Ei : Qn && Qn in Object(n) ? wi(n) : Ii(n);
|
|
665
665
|
}
|
|
666
666
|
function dt(n) {
|
|
667
667
|
var e = typeof n;
|
|
@@ -674,7 +674,7 @@ function No(n) {
|
|
|
674
674
|
var e = ut(n);
|
|
675
675
|
return e == ki || e == Pi || e == Ti || e == Bi;
|
|
676
676
|
}
|
|
677
|
-
var Mt =
|
|
677
|
+
var Mt = we["__core-js_shared__"], jn = function() {
|
|
678
678
|
var n = /[^.]+$/.exec(Mt && Mt.keys && Mt.keys.IE_PROTO || "");
|
|
679
679
|
return n ? "Symbol(src)_1." + n : "";
|
|
680
680
|
}();
|
|
@@ -711,7 +711,7 @@ function Ue(n, e) {
|
|
|
711
711
|
var t = Ui(n, e);
|
|
712
712
|
return Ni(t) ? t : void 0;
|
|
713
713
|
}
|
|
714
|
-
var st = Ue(
|
|
714
|
+
var st = Ue(we, "Map"), it = Ue(Object, "create");
|
|
715
715
|
function Fi() {
|
|
716
716
|
this.__data__ = it ? it(null) : {}, this.size = 0;
|
|
717
717
|
}
|
|
@@ -865,14 +865,14 @@ var Jo = Object.prototype, fa = Jo.hasOwnProperty, ha = Jo.propertyIsEnumerable,
|
|
|
865
865
|
function Aa() {
|
|
866
866
|
return !1;
|
|
867
867
|
}
|
|
868
|
-
var Wo = typeof exports == "object" && exports && !exports.nodeType && exports, Un = Wo && typeof module == "object" && module && !module.nodeType && module, ma = Un && Un.exports === Wo, Fn = ma ?
|
|
869
|
-
function
|
|
868
|
+
var Wo = typeof exports == "object" && exports && !exports.nodeType && exports, Un = Wo && typeof module == "object" && module && !module.nodeType && module, ma = Un && Un.exports === Wo, Fn = ma ? we.Buffer : void 0, va = Fn ? Fn.isBuffer : void 0, zo = va || Aa, ya = 9007199254740991, _a = /^(?:0|[1-9]\d*)$/;
|
|
869
|
+
function wa(n, e) {
|
|
870
870
|
var t = typeof n;
|
|
871
871
|
return e = e ?? ya, !!e && (t == "number" || t != "symbol" && _a.test(n)) && n > -1 && n % 1 == 0 && n < e;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var ba = 9007199254740991;
|
|
874
874
|
function Vo(n) {
|
|
875
|
-
return typeof n == "number" && n > -1 && n % 1 == 0 && n <=
|
|
875
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= ba;
|
|
876
876
|
}
|
|
877
877
|
var Ca = "[object Arguments]", Ia = "[object Array]", Ea = "[object Boolean]", Sa = "[object Date]", Ta = "[object Error]", ka = "[object Function]", Pa = "[object Map]", Ba = "[object Number]", Oa = "[object Object]", Da = "[object RegExp]", $a = "[object Set]", La = "[object String]", xa = "[object WeakMap]", Ma = "[object ArrayBuffer]", Ra = "[object DataView]", Qa = "[object Float32Array]", ja = "[object Float64Array]", Ha = "[object Int8Array]", Na = "[object Int16Array]", Ua = "[object Int32Array]", Fa = "[object Uint8Array]", Ja = "[object Uint8ClampedArray]", Wa = "[object Uint16Array]", za = "[object Uint32Array]", z = {};
|
|
878
878
|
z[Qa] = z[ja] = z[Ha] = z[Na] = z[Ua] = z[Fa] = z[Ja] = z[Wa] = z[za] = !0;
|
|
@@ -899,7 +899,7 @@ function Ko(n, e) {
|
|
|
899
899
|
(i == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
900
900
|
r && (i == "offset" || i == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
901
901
|
s && (i == "buffer" || i == "byteLength" || i == "byteOffset") || // Skip index properties.
|
|
902
|
-
|
|
902
|
+
wa(i, c))) && l.push(i);
|
|
903
903
|
return l;
|
|
904
904
|
}
|
|
905
905
|
var Za = Object.prototype;
|
|
@@ -952,7 +952,7 @@ function hn(n) {
|
|
|
952
952
|
function cc(n, e) {
|
|
953
953
|
return n && Bt(e, hn(e), n);
|
|
954
954
|
}
|
|
955
|
-
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, Wn = Zo && typeof module == "object" && module && !module.nodeType && module, lc = Wn && Wn.exports === Zo, zn = lc ?
|
|
955
|
+
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, Wn = Zo && typeof module == "object" && module && !module.nodeType && module, lc = Wn && Wn.exports === Zo, zn = lc ? we.Buffer : void 0, Vn = zn ? zn.allocUnsafe : void 0;
|
|
956
956
|
function uc(n, e) {
|
|
957
957
|
if (e)
|
|
958
958
|
return n.slice();
|
|
@@ -1006,14 +1006,14 @@ function vc(n) {
|
|
|
1006
1006
|
function yc(n) {
|
|
1007
1007
|
return or(n, hn, nr);
|
|
1008
1008
|
}
|
|
1009
|
-
var zt = Ue(
|
|
1010
|
-
(zt &&
|
|
1009
|
+
var zt = Ue(we, "DataView"), Vt = Ue(we, "Promise"), qt = Ue(we, "Set"), Kt = Ue(we, "WeakMap"), Kn = "[object Map]", _c = "[object Object]", Gn = "[object Promise]", Xn = "[object Set]", Zn = "[object WeakMap]", Yn = "[object DataView]", wc = Ne(zt), bc = Ne(st), Cc = Ne(Vt), Ic = Ne(qt), Ec = Ne(Kt), be = ut;
|
|
1010
|
+
(zt && be(new zt(new ArrayBuffer(1))) != Yn || st && be(new st()) != Kn || Vt && be(Vt.resolve()) != Gn || qt && be(new qt()) != Xn || Kt && be(new Kt()) != Zn) && (be = function(n) {
|
|
1011
1011
|
var e = ut(n), t = e == _c ? n.constructor : void 0, o = t ? Ne(t) : "";
|
|
1012
1012
|
if (o)
|
|
1013
1013
|
switch (o) {
|
|
1014
|
-
case bc:
|
|
1015
|
-
return Yn;
|
|
1016
1014
|
case wc:
|
|
1015
|
+
return Yn;
|
|
1016
|
+
case bc:
|
|
1017
1017
|
return Kn;
|
|
1018
1018
|
case Cc:
|
|
1019
1019
|
return Gn;
|
|
@@ -1029,7 +1029,7 @@ function kc(n) {
|
|
|
1029
1029
|
var e = n.length, t = new n.constructor(e);
|
|
1030
1030
|
return e && typeof n[0] == "string" && Tc.call(n, "index") && (t.index = n.index, t.input = n.input), t;
|
|
1031
1031
|
}
|
|
1032
|
-
var eo =
|
|
1032
|
+
var eo = we.Uint8Array;
|
|
1033
1033
|
function An(n) {
|
|
1034
1034
|
var e = new n.constructor(n.byteLength);
|
|
1035
1035
|
return new eo(e).set(new eo(n)), e;
|
|
@@ -1103,15 +1103,15 @@ function tl(n) {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
var nl = "[object Map]";
|
|
1105
1105
|
function ol(n) {
|
|
1106
|
-
return pt(n) &&
|
|
1106
|
+
return pt(n) && be(n) == nl;
|
|
1107
1107
|
}
|
|
1108
1108
|
var ro = Ve && Ve.isMap, rl = ro ? dn(ro) : ol, sl = "[object Set]";
|
|
1109
1109
|
function il(n) {
|
|
1110
|
-
return pt(n) &&
|
|
1110
|
+
return pt(n) && be(n) == sl;
|
|
1111
1111
|
}
|
|
1112
|
-
var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]",
|
|
1113
|
-
W[rr] = W[dl] = W[Cl] = W[Il] = W[pl] = W[fl] = W[El] = W[Sl] = W[Tl] = W[kl] = W[Pl] = W[Al] = W[ml] = W[ir] = W[vl] = W[yl] = W[_l] = W[
|
|
1114
|
-
W[hl] = W[sr] = W[
|
|
1112
|
+
var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]", wl = "[object Symbol]", bl = "[object WeakMap]", Cl = "[object ArrayBuffer]", Il = "[object DataView]", El = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", kl = "[object Int16Array]", Pl = "[object Int32Array]", Bl = "[object Uint8Array]", Ol = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", $l = "[object Uint32Array]", W = {};
|
|
1113
|
+
W[rr] = W[dl] = W[Cl] = W[Il] = W[pl] = W[fl] = W[El] = W[Sl] = W[Tl] = W[kl] = W[Pl] = W[Al] = W[ml] = W[ir] = W[vl] = W[yl] = W[_l] = W[wl] = W[Bl] = W[Ol] = W[Dl] = W[$l] = !0;
|
|
1114
|
+
W[hl] = W[sr] = W[bl] = !1;
|
|
1115
1115
|
function mt(n, e, t, o, r, s) {
|
|
1116
1116
|
var a, l = e & cl, c = e & ll, i = e & ul;
|
|
1117
1117
|
if (a !== void 0)
|
|
@@ -1123,7 +1123,7 @@ function mt(n, e, t, o, r, s) {
|
|
|
1123
1123
|
if (a = kc(n), !l)
|
|
1124
1124
|
return dc(n, a);
|
|
1125
1125
|
} else {
|
|
1126
|
-
var A =
|
|
1126
|
+
var A = be(n), p = A == sr || A == gl;
|
|
1127
1127
|
if (zo(n))
|
|
1128
1128
|
return uc(n, l);
|
|
1129
1129
|
if (A == ir || A == rr || p && !r) {
|
|
@@ -1144,30 +1144,30 @@ function mt(n, e, t, o, r, s) {
|
|
|
1144
1144
|
}) : rl(n) && n.forEach(function(f, d) {
|
|
1145
1145
|
a.set(d, mt(f, e, t, d, n, s));
|
|
1146
1146
|
});
|
|
1147
|
-
var S = i ? c ? yc : vc : c ? hn : fn,
|
|
1148
|
-
return ca(
|
|
1149
|
-
|
|
1147
|
+
var S = i ? c ? yc : vc : c ? hn : fn, w = u ? void 0 : S(n);
|
|
1148
|
+
return ca(w || n, function(f, d) {
|
|
1149
|
+
w && (d = f, f = n[d]), Fo(a, d, mt(f, e, t, d, n, s));
|
|
1150
1150
|
}), a;
|
|
1151
1151
|
}
|
|
1152
1152
|
var Ll = 1, xl = 4;
|
|
1153
1153
|
function qe(n) {
|
|
1154
1154
|
return mt(n, Ll | xl);
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const bt = (n, e = "") => {
|
|
1157
1157
|
for (let t of n)
|
|
1158
1158
|
if (!(t != null && t.disable) && !(t != null && t.expired))
|
|
1159
1159
|
if (e) {
|
|
1160
1160
|
if (t.routeUrl && t.code === e)
|
|
1161
1161
|
return t;
|
|
1162
1162
|
if (t.children && t.children.length) {
|
|
1163
|
-
const o =
|
|
1163
|
+
const o = bt(t.children, e);
|
|
1164
1164
|
if (o) return o;
|
|
1165
1165
|
}
|
|
1166
1166
|
} else {
|
|
1167
1167
|
if (t.routeUrl)
|
|
1168
1168
|
return t;
|
|
1169
1169
|
if (t.children && t.children.length) {
|
|
1170
|
-
const o =
|
|
1170
|
+
const o = bt(t.children, e);
|
|
1171
1171
|
if (o) return o;
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
@@ -1181,7 +1181,7 @@ const wt = (n, e = "") => {
|
|
|
1181
1181
|
}, Gt = (n) => {
|
|
1182
1182
|
const e = J().subAppList ?? [];
|
|
1183
1183
|
let { index: t, target: o } = Ml(e, n);
|
|
1184
|
-
return e.splice(t, 1), e.length ?
|
|
1184
|
+
return e.splice(t, 1), e.length ? ge([{ key: "subAppList", value: e }]) : ln(), ce([
|
|
1185
1185
|
{ key: "currentCode", value: "" },
|
|
1186
1186
|
{ key: "currentTab", value: {} },
|
|
1187
1187
|
{ key: `preTab:${n}`, value: {} },
|
|
@@ -1243,7 +1243,7 @@ const wt = (n, e = "") => {
|
|
|
1243
1243
|
a != null && a.children && a.children.length && (a.originalChildren = qe(a.children)), (a != null && a.expired || a != null && a.disable) && (a.children = []);
|
|
1244
1244
|
}), { menus: r, originalMenus: s };
|
|
1245
1245
|
}, jl = async (n) => {
|
|
1246
|
-
var p, h, S,
|
|
1246
|
+
var p, h, S, w;
|
|
1247
1247
|
let { microApp: e = null, menuCode: t = "", menuPath: o = "", route: r = {} } = n;
|
|
1248
1248
|
const s = ((p = r.meta) == null ? void 0 : p.showLayout) ?? !0;
|
|
1249
1249
|
let a = ((h = r.query) == null ? void 0 : h.showLayout) ?? !0;
|
|
@@ -1301,12 +1301,12 @@ const wt = (n, e = "") => {
|
|
|
1301
1301
|
query: { ...r.query, app: l }
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
let A =
|
|
1304
|
+
let A = bt(c, t);
|
|
1305
1305
|
if (!A) {
|
|
1306
1306
|
if (!s || !a)
|
|
1307
1307
|
return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
|
|
1308
1308
|
const f = Ql(e.code, c, t);
|
|
1309
|
-
f != null && f.currentApp && (e = f.currentApp), f != null && f.currentMenu && (A = f.currentMenu), f != null && f.currentTab && (r.query = ((
|
|
1309
|
+
f != null && f.currentApp && (e = f.currentApp), f != null && f.currentMenu && (A = f.currentMenu), f != null && f.currentTab && (r.query = ((w = f.currentTab) == null ? void 0 : w.query) ?? {});
|
|
1310
1310
|
}
|
|
1311
1311
|
if ((e == null ? void 0 : e.routeUrl) === Ie)
|
|
1312
1312
|
return { menuConfig: [], currentApp: e, currentMenu: null, query: null };
|
|
@@ -1317,7 +1317,7 @@ const wt = (n, e = "") => {
|
|
|
1317
1317
|
const m = { ...r.query, app: l, menu: A.code };
|
|
1318
1318
|
if (s && a) {
|
|
1319
1319
|
const y = { ...e, currentMenuCode: A.code, menus: c, originalMenus: i };
|
|
1320
|
-
|
|
1320
|
+
ge([
|
|
1321
1321
|
{ key: "currentSubApp", value: y },
|
|
1322
1322
|
{ key: "currentSubAppCode", value: l },
|
|
1323
1323
|
{ key: "subAppList", value: y }
|
|
@@ -1357,7 +1357,7 @@ const wt = (n, e = "") => {
|
|
|
1357
1357
|
}, Hl = Be.get("/appcategory"), io = E([]), ao = E(!1), ar = async () => {
|
|
1358
1358
|
ao.value = !0;
|
|
1359
1359
|
const [n, e] = await Hl().run({ userType: 1 });
|
|
1360
|
-
return ao.value = !1, n ? (io.value = [], { navConfig: [] }) : (io.value = e,
|
|
1360
|
+
return ao.value = !1, n ? (io.value = [], { navConfig: [] }) : (io.value = e, ge([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
1361
1361
|
}, Nl = "v1", Ul = tn.get("/organization/authProjectTree"), Fl = je(`/api/customer/customer/${Nl}`), Jl = Fl.get("/project/list"), Wl = async () => {
|
|
1362
1362
|
var o, r;
|
|
1363
1363
|
const n = Zt();
|
|
@@ -1378,7 +1378,7 @@ const wt = (n, e = "") => {
|
|
|
1378
1378
|
l && (t = Tn(e, (c) => c.id === l)), (!l || !t) && (t = Tn(e, (c) => c.type === 7));
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
|
-
return Lo(t || { id: 0 }),
|
|
1381
|
+
return Lo(t || { id: 0 }), bo((t == null ? void 0 : t.id) || 0), { projectConfig: e, currentProject: t };
|
|
1382
1382
|
}, zl = "v1", Vl = nn.get("/visitor/login/with-default", (n) => (n.public = !0, n)), ql = nn.get("/visitor/appearance/with-default", (n) => (n.public = !0, n)), Kl = je(`/api/portal/manager/${zl}`), Gl = Kl.get("/basics/home/info"), Xl = Be.get("/menu/personal-setting"), Zl = async () => {
|
|
1383
1383
|
const [n, e] = await Vl().run();
|
|
1384
1384
|
return n ? { loginConfig: null } : { loginConfig: e };
|
|
@@ -1391,7 +1391,7 @@ const wt = (n, e = "") => {
|
|
|
1391
1391
|
}, Ct = E(1), lr = async () => {
|
|
1392
1392
|
const [n, e] = await Xl().run();
|
|
1393
1393
|
return n ? { personalMenuConfig: null } : (Ct.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
1394
|
-
}, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */
|
|
1394
|
+
}, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */ de({
|
|
1395
1395
|
__name: "index",
|
|
1396
1396
|
setup(n, { expose: e }) {
|
|
1397
1397
|
const t = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
|
|
@@ -1405,7 +1405,7 @@ const wt = (n, e = "") => {
|
|
|
1405
1405
|
return e({
|
|
1406
1406
|
/** 打开弹窗 */
|
|
1407
1407
|
openDialog: a
|
|
1408
|
-
}), (i, u) => (N(),
|
|
1408
|
+
}), (i, u) => (N(), ue("div", nu, [
|
|
1409
1409
|
R(v(cs), {
|
|
1410
1410
|
title: v(Q)("主题设置").value,
|
|
1411
1411
|
modelValue: t.value,
|
|
@@ -1509,18 +1509,18 @@ const wt = (n, e = "") => {
|
|
|
1509
1509
|
const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, i = c ? l + Xt(c) : "";
|
|
1510
1510
|
Hs(i), Ur(i);
|
|
1511
1511
|
}, t = async () => {
|
|
1512
|
-
const [a, l] = await hu().run({ userId:
|
|
1512
|
+
const [a, l] = await hu().run({ userId: wo().id });
|
|
1513
1513
|
a || !l || JSON.stringify(l) === "{}" || (yt.open({
|
|
1514
1514
|
key: "loginTip",
|
|
1515
1515
|
message: "上次登录信息",
|
|
1516
1516
|
placement: "bottomRight",
|
|
1517
|
-
description:
|
|
1518
|
-
|
|
1517
|
+
description: fe("div", { class: "last-login-info" }, [
|
|
1518
|
+
fe(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
1521
1521
|
"时间:" + Fr(l.lastModificationTime)
|
|
1522
1522
|
),
|
|
1523
|
-
|
|
1523
|
+
fe("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + l.ip)
|
|
1524
1524
|
])
|
|
1525
1525
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
1526
1526
|
}, o = async () => {
|
|
@@ -1571,16 +1571,16 @@ const wt = (n, e = "") => {
|
|
|
1571
1571
|
return await Jr([oi, Wl, eu, ar, lr]).then((f) => Object.assign(S, ...f)), a.value = !1, S;
|
|
1572
1572
|
}, p = E(!1);
|
|
1573
1573
|
return D.nav.addEventListener("onBeforeMount", async () => {
|
|
1574
|
-
var
|
|
1574
|
+
var b;
|
|
1575
1575
|
await n();
|
|
1576
1576
|
const S = await A();
|
|
1577
1577
|
if (!S) return;
|
|
1578
|
-
const { homeConfig:
|
|
1579
|
-
u.value = ((
|
|
1578
|
+
const { homeConfig: w, projectConfig: f, currentProject: d, tenantList: m, personalMenuConfig: y } = S;
|
|
1579
|
+
u.value = ((b = Zt()) == null ? void 0 : b.flag) !== 4 && m && m.length > 1;
|
|
1580
1580
|
const _ = [...Po];
|
|
1581
1581
|
_.forEach((C) => {
|
|
1582
|
-
|
|
1583
|
-
}), l.value = _,
|
|
1582
|
+
w != null && w.appAlias && C.value === Ie && (C.label = w.appAlias), w != null && w.homeAlias && C.value === nt && (C.label = w.homeAlias);
|
|
1583
|
+
}), l.value = _, w != null && w.enable || (l.value = l.value.filter((C) => C.path === Ie), t.path === nt && await e.replace(Ie)), D.nav.setItems(l.value), f && f.length && (D.nav.setProjectConfig({
|
|
1584
1584
|
treeProps: {
|
|
1585
1585
|
disabled: (C) => C.type !== 7
|
|
1586
1586
|
},
|
|
@@ -1597,18 +1597,18 @@ const wt = (n, e = "") => {
|
|
|
1597
1597
|
const L = J().subAppList ?? [];
|
|
1598
1598
|
L.length && (L.forEach((C) => {
|
|
1599
1599
|
C.menus = [], C.originalMenus = [];
|
|
1600
|
-
}),
|
|
1600
|
+
}), ge([{ key: "subAppList", value: L }])), p.value = !0;
|
|
1601
1601
|
}), { loading: a, innerPage: l, commandList: c, layoutInited: p, initNextTick: () => new Promise((S) => {
|
|
1602
|
-
const
|
|
1602
|
+
const w = async () => {
|
|
1603
1603
|
var m;
|
|
1604
1604
|
let f = ((m = t.meta) == null ? void 0 : m.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
|
|
1605
1605
|
if (d === "false" && (d = !1), !f || !d || p.value) {
|
|
1606
1606
|
S();
|
|
1607
1607
|
return;
|
|
1608
1608
|
}
|
|
1609
|
-
setTimeout(() =>
|
|
1609
|
+
setTimeout(() => w(), 50);
|
|
1610
1610
|
};
|
|
1611
|
-
|
|
1611
|
+
w();
|
|
1612
1612
|
}) };
|
|
1613
1613
|
}, mu = rn.get("/data/menu-expiration"), vn = async (n) => {
|
|
1614
1614
|
const [e, t] = await mu().run();
|
|
@@ -1657,9 +1657,9 @@ const wt = (n, e = "") => {
|
|
|
1657
1657
|
oe(
|
|
1658
1658
|
() => n.currentRoute.value,
|
|
1659
1659
|
async (d) => {
|
|
1660
|
-
var L,
|
|
1660
|
+
var L, b, C, P, $, H, F;
|
|
1661
1661
|
const m = ((L = d.meta) == null ? void 0 : L.showLayout) ?? !0;
|
|
1662
|
-
let y = ((
|
|
1662
|
+
let y = ((b = d.query) == null ? void 0 : b.showLayout) ?? !0;
|
|
1663
1663
|
if (y === "false" && (y = !1), !m || !y || d.path === l && Nt(d.query, c)) return;
|
|
1664
1664
|
l = qe(d.path), c = qe(d.query);
|
|
1665
1665
|
const _ = J().currentSubAppCode ?? "";
|
|
@@ -1678,7 +1678,7 @@ const wt = (n, e = "") => {
|
|
|
1678
1678
|
if (!d || !d.length) return;
|
|
1679
1679
|
const m = d.map((y) => y.path);
|
|
1680
1680
|
p(m);
|
|
1681
|
-
},
|
|
1681
|
+
}, w = (d) => {
|
|
1682
1682
|
const m = J().currentSubAppCode ?? "";
|
|
1683
1683
|
ee.innerSet = !0;
|
|
1684
1684
|
const y = ae(), _ = y.tabMap[m], T = _.findIndex(($) => $.code === d.data.code);
|
|
@@ -1701,7 +1701,7 @@ const wt = (n, e = "") => {
|
|
|
1701
1701
|
all: B,
|
|
1702
1702
|
other: async ($) => {
|
|
1703
1703
|
const H = _[T];
|
|
1704
|
-
n.push({
|
|
1704
|
+
await n.push({
|
|
1705
1705
|
path: `/${H.applicationPath}${H.path}`.replace(/\/\//g, "/"),
|
|
1706
1706
|
query: H.query
|
|
1707
1707
|
}), D.menu.setActiveItem(H.menuId), D.tab.setActiveItem(H.code);
|
|
@@ -1723,7 +1723,7 @@ const wt = (n, e = "") => {
|
|
|
1723
1723
|
ae().currentCode !== d.currentCode && (ee.innerSet = !0, h(d));
|
|
1724
1724
|
}), D.tab.addEventListener("onItemRemove", (d) => {
|
|
1725
1725
|
const m = ae(), y = J().currentSubAppCode ?? "";
|
|
1726
|
-
m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (At(d.applicationCode, [d.code]),
|
|
1726
|
+
m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), w({ type: "me", data: d }));
|
|
1727
1727
|
}), D.tab.addEventListener("onMenuClick", (d) => {
|
|
1728
1728
|
let m = [];
|
|
1729
1729
|
const y = ae().tabMap[d.applicationCode] ?? [];
|
|
@@ -1734,7 +1734,7 @@ const wt = (n, e = "") => {
|
|
|
1734
1734
|
d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]), At(
|
|
1735
1735
|
d.applicationCode,
|
|
1736
1736
|
m.map((_) => _.code)
|
|
1737
|
-
),
|
|
1737
|
+
), w({ type: d.type.key, data: d.data });
|
|
1738
1738
|
}), D.tab.addEventListener("onPageRefresh", async (d) => {
|
|
1739
1739
|
if (!d || d.path === Je) return;
|
|
1740
1740
|
At(d.applicationCode, [d.code]);
|
|
@@ -1749,7 +1749,7 @@ const wt = (n, e = "") => {
|
|
|
1749
1749
|
});
|
|
1750
1750
|
const { enter: f } = lt();
|
|
1751
1751
|
return D.tab.addEventListener("onToggleFullScreen", f), { fontColor: r, backgroudColor: s, borderColor: a };
|
|
1752
|
-
}, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top,
|
|
1752
|
+
}, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, wu = () => {
|
|
1753
1753
|
const n = () => {
|
|
1754
1754
|
D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), Ro();
|
|
1755
1755
|
};
|
|
@@ -1767,7 +1767,7 @@ const wt = (n, e = "") => {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
const t = J();
|
|
1769
1769
|
t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
|
|
1770
|
-
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")),
|
|
1770
|
+
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), me.addEventListenerFromMicroApp("system-reload", () => {
|
|
1771
1771
|
n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
1772
1772
|
});
|
|
1773
1773
|
}, et = () => {
|
|
@@ -1778,23 +1778,23 @@ const wt = (n, e = "") => {
|
|
|
1778
1778
|
D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
|
|
1779
1779
|
}, c = async (p) => {
|
|
1780
1780
|
if (p.routeUrl && !a.includes(p.routeUrl)) return !0;
|
|
1781
|
-
const h = p.code ?? "",
|
|
1781
|
+
const h = p.code ?? "", w = (J().subAppList ?? []).find((_) => _.code === h);
|
|
1782
1782
|
let f = [], d = [], m = !1;
|
|
1783
|
-
if (
|
|
1783
|
+
if (w && (f = w.menus ?? []), !f.length) {
|
|
1784
1784
|
const { menus: _, originalMenus: T, err: B } = await mn(h);
|
|
1785
1785
|
if (B) return !1;
|
|
1786
1786
|
f = _ ?? [], d = T ?? [];
|
|
1787
1787
|
}
|
|
1788
|
-
if (f.length ?
|
|
1788
|
+
if (f.length ? bt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
|
|
1789
1789
|
const y = { ...p, menus: f, originalMenus: d };
|
|
1790
|
-
return
|
|
1790
|
+
return ge([{ key: "subAppList", value: y }]), !0;
|
|
1791
1791
|
}, i = async (p) => {
|
|
1792
1792
|
var H, F, se, Te, ft;
|
|
1793
|
-
const { microApp: h = null, menuCode: S = "", menuPath:
|
|
1793
|
+
const { microApp: h = null, menuCode: S = "", menuPath: w = "", route: f = {} } = p;
|
|
1794
1794
|
let d = f;
|
|
1795
|
-
if (!h &&
|
|
1796
|
-
if (l(), !(a && a.find((G) =>
|
|
1797
|
-
n.push({ path:
|
|
1795
|
+
if (!h && w) {
|
|
1796
|
+
if (l(), !(a && a.find((G) => w.startsWith("/" + G) || w.startsWith(G)))) return;
|
|
1797
|
+
await n.push({ path: w, query: d.query });
|
|
1798
1798
|
return;
|
|
1799
1799
|
}
|
|
1800
1800
|
const m = ((H = d.meta) == null ? void 0 : H.showLayout) ?? !0;
|
|
@@ -1804,25 +1804,25 @@ const wt = (n, e = "") => {
|
|
|
1804
1804
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
1805
1805
|
l();
|
|
1806
1806
|
const ne = ((se = J()) == null ? void 0 : se.subAppList) ?? [];
|
|
1807
|
-
if ((ne == null ? void 0 : ne.find((
|
|
1807
|
+
if ((ne == null ? void 0 : ne.find((pe) => pe.code === h.code)) || ne == null || ne.push(h), ge([
|
|
1808
1808
|
{ key: "currentSubApp", value: h },
|
|
1809
1809
|
{ key: "currentSubAppCode", value: h.code },
|
|
1810
1810
|
{ key: "subAppList", value: ne }
|
|
1811
|
-
]), ne.forEach((
|
|
1812
|
-
const Oe = { ...
|
|
1811
|
+
]), ne.forEach((pe) => {
|
|
1812
|
+
const Oe = { ...pe, value: pe.code, label: pe.name };
|
|
1813
1813
|
D.nav.appendItem(Oe);
|
|
1814
1814
|
}), D.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
1815
|
-
n.push({ path: h.routeUrl, query: { ...d.query, app: h.code } });
|
|
1815
|
+
await n.push({ path: h.routeUrl, query: { ...d.query, app: h.code } });
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
if (_ === 1 && T === 2) {
|
|
1819
|
-
const
|
|
1820
|
-
n.push({
|
|
1819
|
+
const pe = Wt(Ut(Ft(h.routeUrl)));
|
|
1820
|
+
await n.push({
|
|
1821
1821
|
path: Je,
|
|
1822
1822
|
query: {
|
|
1823
1823
|
...d.query,
|
|
1824
1824
|
app: h.code,
|
|
1825
|
-
iframeSrc:
|
|
1825
|
+
iframeSrc: pe
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
1828
|
return;
|
|
@@ -1831,25 +1831,25 @@ const wt = (n, e = "") => {
|
|
|
1831
1831
|
const {
|
|
1832
1832
|
menuConfig: B = [],
|
|
1833
1833
|
currentApp: L = null,
|
|
1834
|
-
currentMenu:
|
|
1834
|
+
currentMenu: b = null,
|
|
1835
1835
|
microPath: C = "",
|
|
1836
1836
|
query: P = {}
|
|
1837
|
-
} = await jl({ microApp: h, menuCode: S, menuPath:
|
|
1838
|
-
if (
|
|
1839
|
-
path: C || `/${
|
|
1840
|
-
query: { ...P, app:
|
|
1837
|
+
} = await jl({ microApp: h, menuCode: S, menuPath: w, route: d });
|
|
1838
|
+
if (b && (d = {
|
|
1839
|
+
path: C || `/${b.applicationPath}${b.routeUrl}`.replace(/\/\//g, "/"),
|
|
1840
|
+
query: { ...P, app: b.applicationCode, menu: b.code },
|
|
1841
1841
|
meta: { ...(d == null ? void 0 : d.meta) ?? {} }
|
|
1842
1842
|
}), L && (L == null ? void 0 : L.code) !== (h == null ? void 0 : h.code)) {
|
|
1843
|
-
if (L.fixed && (n.push(L.path), l(), D.nav.setActiveItem(L.path)), !L.fixed) {
|
|
1844
|
-
const ne = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), G = ae().preTab[L.code],
|
|
1845
|
-
await i({ microApp: ne, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query:
|
|
1843
|
+
if (L.fixed && (await n.push(L.path), l(), D.nav.setActiveItem(L.path)), !L.fixed) {
|
|
1844
|
+
const ne = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), G = ae().preTab[L.code], pe = { ...(G == null ? void 0 : G.query) ?? {} };
|
|
1845
|
+
await i({ microApp: ne, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: pe } });
|
|
1846
1846
|
}
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
1849
1849
|
const $ = L || h;
|
|
1850
|
-
if (!
|
|
1851
|
-
n.push({
|
|
1852
|
-
path:
|
|
1850
|
+
if (!b && w) {
|
|
1851
|
+
await n.push({
|
|
1852
|
+
path: w,
|
|
1853
1853
|
query: {
|
|
1854
1854
|
...d.query,
|
|
1855
1855
|
app: $.code
|
|
@@ -1859,8 +1859,8 @@ const wt = (n, e = "") => {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
if (m && y) {
|
|
1861
1861
|
(ft = J().subAppList) == null || ft.forEach((G) => {
|
|
1862
|
-
const
|
|
1863
|
-
D.nav.appendItem(
|
|
1862
|
+
const pe = { ...G, value: G.code, label: G.name };
|
|
1863
|
+
D.nav.appendItem(pe);
|
|
1864
1864
|
}), D.nav.setActiveItem($.code), D.menu.setItems(B);
|
|
1865
1865
|
const ne = ae().tabMap[$.code] ?? [];
|
|
1866
1866
|
ne.length && ne.forEach((G) => {
|
|
@@ -1871,11 +1871,11 @@ const wt = (n, e = "") => {
|
|
|
1871
1871
|
});
|
|
1872
1872
|
});
|
|
1873
1873
|
}
|
|
1874
|
-
e({ currentMenu:
|
|
1874
|
+
e({ currentMenu: b, microPath: C, route: d });
|
|
1875
1875
|
}, u = async (p) => {
|
|
1876
1876
|
var h;
|
|
1877
1877
|
if (ee.innerSet = !0, p.fixed) {
|
|
1878
|
-
n.push(p.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(p.path),
|
|
1878
|
+
await n.push(p.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(p.path), ge([
|
|
1879
1879
|
{ key: "currentSubAppCode", value: "" },
|
|
1880
1880
|
{ key: "currentSubApp", value: {} }
|
|
1881
1881
|
]), ce([
|
|
@@ -1885,7 +1885,7 @@ const wt = (n, e = "") => {
|
|
|
1885
1885
|
return;
|
|
1886
1886
|
}
|
|
1887
1887
|
if (!p.fixed) {
|
|
1888
|
-
const S = (h = J().subAppList) == null ? void 0 : h.find((m) => m.code === p.code),
|
|
1888
|
+
const S = (h = J().subAppList) == null ? void 0 : h.find((m) => m.code === p.code), w = ae().preTab[p.code], f = (w == null ? void 0 : w.code) ?? "", d = { ...(w == null ? void 0 : w.query) ?? {} };
|
|
1889
1889
|
await i({ microApp: S, menuCode: f, route: { query: d } });
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
@@ -1899,13 +1899,13 @@ const wt = (n, e = "") => {
|
|
|
1899
1899
|
if (!((d = h.subAppList) != null && d.length)) return;
|
|
1900
1900
|
const S = h.subAppList.findIndex((m) => m.code === p.code);
|
|
1901
1901
|
if (S === -1) return;
|
|
1902
|
-
const
|
|
1903
|
-
if (
|
|
1904
|
-
const m =
|
|
1902
|
+
const w = ae().tabMap[p.code] ?? [];
|
|
1903
|
+
if (w.length) {
|
|
1904
|
+
const m = w.map((y) => y.path);
|
|
1905
1905
|
t(m);
|
|
1906
1906
|
}
|
|
1907
1907
|
let f = null;
|
|
1908
|
-
if (h.currentSubAppCode === p.code && (S + 1 !== h.subAppList.length ? h.subAppList[S + 1] && (f = h.subAppList[S + 1]) : h.subAppList[S - 1] && (f = h.subAppList[S - 1])), h.subAppList.splice(S, 1),
|
|
1908
|
+
if (h.currentSubAppCode === p.code && (S + 1 !== h.subAppList.length ? h.subAppList[S + 1] && (f = h.subAppList[S + 1]) : h.subAppList[S - 1] && (f = h.subAppList[S - 1])), h.subAppList.splice(S, 1), ge([{ key: "subAppList", value: h.subAppList }]), ce([
|
|
1909
1909
|
{ key: `preTab:${p.code}`, value: {} },
|
|
1910
1910
|
{ key: `tabMap:${p.code}`, value: [] }
|
|
1911
1911
|
]), f) {
|
|
@@ -1923,7 +1923,7 @@ const wt = (n, e = "") => {
|
|
|
1923
1923
|
const n = Ge();
|
|
1924
1924
|
let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
|
|
1925
1925
|
return !e && t && (o = [{ name: t }]), o.map((s) => s.name), { entryMenu: async (s) => {
|
|
1926
|
-
var
|
|
1926
|
+
var w;
|
|
1927
1927
|
const { currentMenu: a, route: l = {}, microPath: c = "" } = s;
|
|
1928
1928
|
if (!a) return;
|
|
1929
1929
|
let i = { ...l.query, app: a.applicationCode, menu: a.code };
|
|
@@ -1932,23 +1932,23 @@ const wt = (n, e = "") => {
|
|
|
1932
1932
|
if (u === 1)
|
|
1933
1933
|
if (A === 1)
|
|
1934
1934
|
if (a.routeUrl.startsWith(Je)) {
|
|
1935
|
-
|
|
1935
|
+
p = Je;
|
|
1936
1936
|
const f = Wr(a.routeUrl, "iframeSrc");
|
|
1937
|
-
i = { ...i, iframeSrc: f }, n.push({ path: p, query: i });
|
|
1938
|
-
} else a.applicationPath && (p = c || a.routeUrl, p = `/${a.applicationPath}${p}`.replace(/\/\//g, "/"), n.push({ path: p, query: i }));
|
|
1937
|
+
i = { ...i, iframeSrc: f }, await n.push({ path: p, query: i });
|
|
1938
|
+
} else a.applicationPath && (p = c || a.routeUrl, p = `/${a.applicationPath}${p}`.replace(/\/\//g, "/"), await n.push({ path: p, query: i }));
|
|
1939
1939
|
else {
|
|
1940
|
-
|
|
1940
|
+
p = Je;
|
|
1941
1941
|
const f = Wt(Ut(Ft(a.routeUrl)));
|
|
1942
|
-
i = { ...i, iframeSrc: f }, n.push({ path: p, query: i });
|
|
1942
|
+
i = { ...i, iframeSrc: f }, await n.push({ path: p, query: i });
|
|
1943
1943
|
}
|
|
1944
1944
|
if (u === 2) {
|
|
1945
1945
|
let f = A === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
|
|
1946
|
-
f = Wt(Ut(Ft(f))), ee.innerSet ? (
|
|
1946
|
+
f = Wt(Ut(Ft(f))), ee.innerSet ? (p = Bo, await n.push({ path: p, query: i }), f && window.open(f, "_blank")) : A === 1 && (p = f, i = { ...i, showLayout: !1 }, await n.push({
|
|
1947
1947
|
path: p,
|
|
1948
1948
|
query: i
|
|
1949
1949
|
}));
|
|
1950
1950
|
}
|
|
1951
|
-
const h = ((
|
|
1951
|
+
const h = ((w = l.meta) == null ? void 0 : w.showLayout) ?? !0;
|
|
1952
1952
|
let S = (i == null ? void 0 : i.showLayout) ?? !0;
|
|
1953
1953
|
if (S === "false" && (S = !1), h && S) {
|
|
1954
1954
|
const f = {
|
|
@@ -1985,7 +1985,7 @@ const wt = (n, e = "") => {
|
|
|
1985
1985
|
]);
|
|
1986
1986
|
}
|
|
1987
1987
|
} };
|
|
1988
|
-
},
|
|
1988
|
+
}, bu = (n, e, t) => {
|
|
1989
1989
|
const { entryApp: o } = et(), r = Ge();
|
|
1990
1990
|
let { mainAppName: s = "", microAppName: a = "", microApps: l = [] } = He();
|
|
1991
1991
|
!s && a && (l = [{ name: a }]);
|
|
@@ -1995,25 +1995,25 @@ const wt = (n, e = "") => {
|
|
|
1995
1995
|
h === "false" && (h = !1);
|
|
1996
1996
|
const S = async () => {
|
|
1997
1997
|
var P, $;
|
|
1998
|
-
let
|
|
1999
|
-
if (!Array.isArray(
|
|
1998
|
+
let b = J().appcategorys ?? [];
|
|
1999
|
+
if (!Array.isArray(b)) return [];
|
|
2000
2000
|
if (p.query) {
|
|
2001
2001
|
const H = ((P = p.query) == null ? void 0 : P.project) ?? (($ = p.query) == null ? void 0 : $.projectId) ?? "";
|
|
2002
|
-
if (!
|
|
2002
|
+
if (!b.length || H && H !== Pe().id) {
|
|
2003
2003
|
await e();
|
|
2004
2004
|
const { navConfig: F } = await ar();
|
|
2005
|
-
F && (
|
|
2005
|
+
F && (b = F);
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
|
-
return
|
|
2009
|
-
},
|
|
2010
|
-
if (
|
|
2011
|
-
const
|
|
2008
|
+
return b.map((H) => H.apps).flat() ?? [];
|
|
2009
|
+
}, w = l.filter((b) => b.public);
|
|
2010
|
+
if (w.length) {
|
|
2011
|
+
const b = w.find(
|
|
2012
2012
|
(C) => p.path.startsWith("/" + C.name) || p.path.startsWith(C.name)
|
|
2013
2013
|
);
|
|
2014
|
-
if (
|
|
2014
|
+
if (b) {
|
|
2015
2015
|
o({
|
|
2016
|
-
microApp: { routeUrl:
|
|
2016
|
+
microApp: { routeUrl: b.name, code: "" },
|
|
2017
2017
|
menuCode: p.query.menu,
|
|
2018
2018
|
menuPath: p.path,
|
|
2019
2019
|
route: p
|
|
@@ -2021,12 +2021,12 @@ const wt = (n, e = "") => {
|
|
|
2021
2021
|
return;
|
|
2022
2022
|
}
|
|
2023
2023
|
}
|
|
2024
|
-
const f = await S(), d = f.map((
|
|
2024
|
+
const f = await S(), d = f.map((b) => b.code), m = ((_ = p.query) == null ? void 0 : _.app) ?? "", y = ((T = J()) == null ? void 0 : T.subAppList) ?? [];
|
|
2025
2025
|
if (y.length) {
|
|
2026
|
-
const
|
|
2026
|
+
const b = y.filter((P) => P.code !== m && !d.includes(P.code)), C = y.filter(
|
|
2027
2027
|
(P) => m === P.code || d.includes(P.code)
|
|
2028
2028
|
);
|
|
2029
|
-
|
|
2029
|
+
ge([{ key: "subAppList", value: C }]), b && b.length && b.forEach((P) => {
|
|
2030
2030
|
ce([
|
|
2031
2031
|
{ key: `preTab:${P.code}`, value: {} },
|
|
2032
2032
|
{ key: `tabMap:${P.code}`, value: [] }
|
|
@@ -2034,25 +2034,25 @@ const wt = (n, e = "") => {
|
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
2036
|
if (p.query.app) {
|
|
2037
|
-
let
|
|
2038
|
-
if (!
|
|
2037
|
+
let b = f.find((C) => C.code === p.query.app);
|
|
2038
|
+
if (!b && h) {
|
|
2039
2039
|
const { currentApp: C } = Gt(p.query.app);
|
|
2040
2040
|
if (C) {
|
|
2041
|
-
|
|
2042
|
-
const $ = (ae().preTab ?? {})[
|
|
2041
|
+
b = C;
|
|
2042
|
+
const $ = (ae().preTab ?? {})[b.code];
|
|
2043
2043
|
p = {}, $ && (p.path = `/${$.applicationPath}${$.path}`.replace(/\/\//g, "/"), p.query = $.query);
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
|
-
|
|
2046
|
+
b != null && b.fixed ? (await r.push(b.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(b.path)) : o({ microApp: b, menuCode: p.query.menu, menuPath: p.path, route: p });
|
|
2047
2047
|
return;
|
|
2048
2048
|
} else {
|
|
2049
|
-
const
|
|
2049
|
+
const b = l && l.find(
|
|
2050
2050
|
(C) => p.path.startsWith("/" + C.name) || p.path.startsWith(C.name)
|
|
2051
2051
|
);
|
|
2052
|
-
if (
|
|
2053
|
-
let C = f.find((P) => P.routeUrl ===
|
|
2052
|
+
if (b) {
|
|
2053
|
+
let C = f.find((P) => P.routeUrl === b.name);
|
|
2054
2054
|
C || (C = f.find(
|
|
2055
|
-
(P) => (P == null ? void 0 : P.routePath) && P.routePath.length && P.routePath.includes(
|
|
2055
|
+
(P) => (P == null ? void 0 : P.routePath) && P.routePath.length && P.routePath.includes(b.name)
|
|
2056
2056
|
)), o({
|
|
2057
2057
|
microApp: C,
|
|
2058
2058
|
menuCode: p.query.menu,
|
|
@@ -2067,8 +2067,8 @@ const wt = (n, e = "") => {
|
|
|
2067
2067
|
const P = { ...C, value: C.code, label: C.name };
|
|
2068
2068
|
D.nav.appendItem(P);
|
|
2069
2069
|
});
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2070
|
+
const b = n.value.find((C) => C.path === location.pathname);
|
|
2071
|
+
b && (D.nav.setActiveItem(b.path), D.menu.setItems([]), D.tab.setItems([]), ge([
|
|
2072
2072
|
{ key: "currentSubAppCode", value: "" },
|
|
2073
2073
|
{ key: "currentSubApp", value: {} }
|
|
2074
2074
|
]), ce([
|
|
@@ -2118,8 +2118,8 @@ const wt = (n, e = "") => {
|
|
|
2118
2118
|
}, { entryApp: r } = et(), s = async () => {
|
|
2119
2119
|
const a = "personCenter", c = (J().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: i = [] } = await mn(a), A = ye(i).filter((h) => h.isMenu && h.routeUrl).find((h) => h.routeUrl === "/userInfo");
|
|
2120
2120
|
if (A != null && A.disable || A != null && A.expired) {
|
|
2121
|
-
const { title: h, content: S, desc:
|
|
2122
|
-
await rt({ title: h, content: S, desc:
|
|
2121
|
+
const { title: h, content: S, desc: w } = await vn(A);
|
|
2122
|
+
await rt({ title: h, content: S, desc: w });
|
|
2123
2123
|
return;
|
|
2124
2124
|
}
|
|
2125
2125
|
const p = c.find((h) => h.code === a);
|
|
@@ -2139,7 +2139,7 @@ const wt = (n, e = "") => {
|
|
|
2139
2139
|
};
|
|
2140
2140
|
}, Iu = Io.get("/convert/tenant"), Eu = en.get("/platform/withdefault"), dr = () => {
|
|
2141
2141
|
const n = He(), e = E(!1), t = E(""), o = E(""), r = () => {
|
|
2142
|
-
t.value = St().id, o.value =
|
|
2142
|
+
t.value = St().id, o.value = wo().tenantId, e.value = !0;
|
|
2143
2143
|
};
|
|
2144
2144
|
D.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
2145
2145
|
r();
|
|
@@ -2155,7 +2155,7 @@ const wt = (n, e = "") => {
|
|
|
2155
2155
|
const [c, i] = await Iu().run({ tenant: l });
|
|
2156
2156
|
if (c) return;
|
|
2157
2157
|
e.value = !1;
|
|
2158
|
-
const { access_token: u = "", refresh_token: A = "", expires_in: p = 0, sub: h = "", name: S = "", flag:
|
|
2158
|
+
const { access_token: u = "", refresh_token: A = "", expires_in: p = 0, sub: h = "", name: S = "", flag: w = "", tenant: f = "" } = i, d = {
|
|
2159
2159
|
accessToken: u,
|
|
2160
2160
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(p) * 1e3,
|
|
2161
2161
|
refreshToken: A,
|
|
@@ -2165,7 +2165,7 @@ const wt = (n, e = "") => {
|
|
|
2165
2165
|
const m = {
|
|
2166
2166
|
id: h,
|
|
2167
2167
|
name: S,
|
|
2168
|
-
flag:
|
|
2168
|
+
flag: w,
|
|
2169
2169
|
tenantId: f
|
|
2170
2170
|
};
|
|
2171
2171
|
sessionStorage.setItem("hotentUserInfo", JSON.stringify(m)), es(u);
|
|
@@ -2191,7 +2191,7 @@ const wt = (n, e = "") => {
|
|
|
2191
2191
|
const o = t.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
|
|
2192
2192
|
o !== r && await n(r);
|
|
2193
2193
|
}
|
|
2194
|
-
Lo(e || { id: 0 }),
|
|
2194
|
+
Lo(e || { id: 0 }), bo((e == null ? void 0 : e.id) || 0), (t == null ? void 0 : t.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
2195
2195
|
});
|
|
2196
2196
|
}, Tu = Be.get("/menu/search"), ku = Be.get("/searchhistory"), Pu = Be.post("/searchhistory"), Bu = Be.delete("/searchhistory"), Ou = Be.delete("/searchhistory/deleteone"), Du = () => {
|
|
2197
2197
|
const n = async () => {
|
|
@@ -2227,7 +2227,7 @@ const wt = (n, e = "") => {
|
|
|
2227
2227
|
excludeRoutes: [],
|
|
2228
2228
|
routeKeepAliveVisible: !0
|
|
2229
2229
|
}), $u = () => {
|
|
2230
|
-
|
|
2230
|
+
me.addEventListenerFromMicroApp("iot:change-instance", (n) => {
|
|
2231
2231
|
const e = J(), t = e.currentSubAppCode;
|
|
2232
2232
|
let o = _t(t);
|
|
2233
2233
|
o.forEach((s) => {
|
|
@@ -2236,7 +2236,7 @@ const wt = (n, e = "") => {
|
|
|
2236
2236
|
const r = e.subAppList;
|
|
2237
2237
|
r == null || r.forEach((s) => {
|
|
2238
2238
|
s.code === t && (s.menus = o);
|
|
2239
|
-
}),
|
|
2239
|
+
}), ge([
|
|
2240
2240
|
{
|
|
2241
2241
|
key: "currentSubApp",
|
|
2242
2242
|
value: r == null ? void 0 : r.find((s) => s.code === t)
|
|
@@ -2249,25 +2249,25 @@ const wt = (n, e = "") => {
|
|
|
2249
2249
|
});
|
|
2250
2250
|
}, Lu = (n) => {
|
|
2251
2251
|
["personcenter", "rightmanage"].forEach((t) => {
|
|
2252
|
-
|
|
2252
|
+
me.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
|
|
2253
2253
|
const { userInfo: r } = o.data, s = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
|
|
2254
2254
|
D.nav.setUserInfo({ headPicture: s, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
2255
2255
|
});
|
|
2256
2256
|
});
|
|
2257
2257
|
}, xu = () => {
|
|
2258
|
-
|
|
2258
|
+
me.addEventListenerFromMicroApp("devicePanelShow", (n) => {
|
|
2259
2259
|
const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = n.data;
|
|
2260
2260
|
So(e, t, o, r, s, a);
|
|
2261
|
-
}),
|
|
2261
|
+
}), me.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
|
|
2262
2262
|
ns();
|
|
2263
|
-
}),
|
|
2263
|
+
}), me.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
|
|
2264
2264
|
const { deviceId: e = "", panelCode: t = "", alarmTime: o = "" } = n.data;
|
|
2265
2265
|
os(e, t, o);
|
|
2266
|
-
}),
|
|
2266
|
+
}), me.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
|
|
2267
2267
|
rs();
|
|
2268
2268
|
});
|
|
2269
2269
|
}, Mu = nn.get("/platform/login/pwd-advance-notify-check"), Ru = () => {
|
|
2270
|
-
const n = E([]), e = E(null), t = E([]), { entryApp: o } =
|
|
2270
|
+
const n = E([]), e = E(null), t = E([]), { entryApp: o } = wt.hooks.useEntryApp(), r = () => {
|
|
2271
2271
|
var c;
|
|
2272
2272
|
const l = (((c = J().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
2273
2273
|
l && o({ microApp: l });
|
|
@@ -2279,7 +2279,7 @@ const wt = (n, e = "") => {
|
|
|
2279
2279
|
await Mu().run();
|
|
2280
2280
|
},
|
|
2281
2281
|
message: async (a) => {
|
|
2282
|
-
if (
|
|
2282
|
+
if (me.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
|
|
2283
2283
|
const c = Pe().id;
|
|
2284
2284
|
n.value = a.filter(
|
|
2285
2285
|
(i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
|
|
@@ -2289,16 +2289,16 @@ const wt = (n, e = "") => {
|
|
|
2289
2289
|
class: "message-center-notify",
|
|
2290
2290
|
message: i.title,
|
|
2291
2291
|
top: "55px",
|
|
2292
|
-
description:
|
|
2292
|
+
description: fe("div", {}, [
|
|
2293
2293
|
// 标题
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2294
|
+
fe("div", { class: "custom-title" }, [
|
|
2295
|
+
fe(De, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
|
|
2296
|
+
fe("div", { class: "title" }, i.title)
|
|
2297
2297
|
]),
|
|
2298
2298
|
// 内容
|
|
2299
|
-
|
|
2299
|
+
fe("div", { class: "custom-content" }, i.content),
|
|
2300
2300
|
// 底部按钮
|
|
2301
|
-
i.title !== "密码更新提醒" ?
|
|
2301
|
+
i.title !== "密码更新提醒" ? fe(
|
|
2302
2302
|
"div",
|
|
2303
2303
|
{
|
|
2304
2304
|
class: "footer-btn",
|
|
@@ -2336,7 +2336,7 @@ function po(n) {
|
|
|
2336
2336
|
function Uu(n) {
|
|
2337
2337
|
return pr.post(`/url/preview?${fr(n)}`)().run();
|
|
2338
2338
|
}
|
|
2339
|
-
const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */
|
|
2339
|
+
const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
2340
2340
|
__name: "GridItem",
|
|
2341
2341
|
props: {
|
|
2342
2342
|
active: { type: Boolean },
|
|
@@ -2354,7 +2354,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2354
2354
|
}, c = () => {
|
|
2355
2355
|
o("itemClick");
|
|
2356
2356
|
}, i = Ce(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
|
|
2357
|
-
return (u, A) => (N(),
|
|
2357
|
+
return (u, A) => (N(), ue(
|
|
2358
2358
|
"div",
|
|
2359
2359
|
{
|
|
2360
2360
|
ref_key: "containerRef",
|
|
@@ -2370,7 +2370,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2370
2370
|
/* CLASS, NEED_HYDRATION */
|
|
2371
2371
|
));
|
|
2372
2372
|
}
|
|
2373
|
-
}), Wu = /* @__PURE__ */ Ee(Ju, [["__scopeId", "data-v-68946aef"]]), zu = { class: "layout-wrapper" }, Vu = /* @__PURE__ */
|
|
2373
|
+
}), Wu = /* @__PURE__ */ Ee(Ju, [["__scopeId", "data-v-68946aef"]]), zu = { class: "layout-wrapper" }, Vu = /* @__PURE__ */ de({
|
|
2374
2374
|
__name: "GridLayout",
|
|
2375
2375
|
props: {
|
|
2376
2376
|
gridNum: {},
|
|
@@ -2382,9 +2382,9 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2382
2382
|
const t = n, o = e, r = (s) => {
|
|
2383
2383
|
o("update:activeIndex", s);
|
|
2384
2384
|
};
|
|
2385
|
-
return (s, a) => (N(),
|
|
2385
|
+
return (s, a) => (N(), ue("div", zu, [
|
|
2386
2386
|
U(' :active="index === activeIndex" '),
|
|
2387
|
-
(N(!0),
|
|
2387
|
+
(N(!0), ue(
|
|
2388
2388
|
We,
|
|
2389
2389
|
null,
|
|
2390
2390
|
_o(t.gridNum, (l, c) => (N(), V(Wu, {
|
|
@@ -2406,14 +2406,14 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2406
2406
|
))
|
|
2407
2407
|
]));
|
|
2408
2408
|
}
|
|
2409
|
-
}), qu = /* @__PURE__ */ Ee(Vu, [["__scopeId", "data-v-22baf4d8"]]), Ku = /* @__PURE__ */
|
|
2409
|
+
}), qu = /* @__PURE__ */ Ee(Vu, [["__scopeId", "data-v-22baf4d8"]]), Ku = /* @__PURE__ */ de({
|
|
2410
2410
|
__name: "DirectionControl",
|
|
2411
2411
|
emits: ["change"],
|
|
2412
2412
|
setup(n, { emit: e }) {
|
|
2413
2413
|
const t = e, o = (r) => {
|
|
2414
2414
|
t("change", r);
|
|
2415
2415
|
};
|
|
2416
|
-
return (r, s) => (N(),
|
|
2416
|
+
return (r, s) => (N(), ue(
|
|
2417
2417
|
"div",
|
|
2418
2418
|
{
|
|
2419
2419
|
class: "direction-control",
|
|
@@ -2518,7 +2518,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2518
2518
|
}), Gu = /* @__PURE__ */ Ee(Ku, [["__scopeId", "data-v-69100474"]]), Xu = { class: "video-wrapper" }, Zu = { class: "video-top" }, Yu = { class: "video-top_l" }, ed = { class: "video-title-wrapper" }, td = { class: "video-title" }, nd = { class: "video-top_r" }, od = {
|
|
2519
2519
|
key: 0,
|
|
2520
2520
|
class: "play-status"
|
|
2521
|
-
}, rd = { class: "video-bottom" }, sd = { class: "video-bottom_r" }, id = /* @__PURE__ */
|
|
2521
|
+
}, rd = { class: "video-bottom" }, sd = { class: "video-bottom_r" }, id = /* @__PURE__ */ de({
|
|
2522
2522
|
__name: "index",
|
|
2523
2523
|
props: {
|
|
2524
2524
|
videoUrl: {},
|
|
@@ -2550,7 +2550,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2550
2550
|
r.value = !r.value, s.value && (s.value.muted = r.value);
|
|
2551
2551
|
}, h = () => {
|
|
2552
2552
|
a.value = !a.value;
|
|
2553
|
-
}, S = E(""),
|
|
2553
|
+
}, S = E(""), w = () => {
|
|
2554
2554
|
const y = document.createElement("canvas");
|
|
2555
2555
|
if (c.value) {
|
|
2556
2556
|
y.width = c.value.clientWidth, y.height = c.value.clientHeight;
|
|
@@ -2608,7 +2608,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2608
2608
|
u.value = !0;
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
|
-
), (y, _) => (N(),
|
|
2611
|
+
), (y, _) => (N(), ue("div", Xu, [
|
|
2612
2612
|
R(v(ko), {
|
|
2613
2613
|
spinning: t.loading,
|
|
2614
2614
|
type: "component",
|
|
@@ -2628,7 +2628,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2628
2628
|
])
|
|
2629
2629
|
]),
|
|
2630
2630
|
x("div", nd, [
|
|
2631
|
-
["live"].includes(y.type) ? (N(),
|
|
2631
|
+
["live"].includes(y.type) ? (N(), ue("span", od, "正在实时预览")) : U("v-if", !0),
|
|
2632
2632
|
U(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
2633
2633
|
])
|
|
2634
2634
|
]),
|
|
@@ -2673,7 +2673,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2673
2673
|
R(v(De), {
|
|
2674
2674
|
class: "icon icon-screenshot",
|
|
2675
2675
|
icon: "screenshot",
|
|
2676
|
-
onClick: te(
|
|
2676
|
+
onClick: te(w, ["stop"])
|
|
2677
2677
|
})
|
|
2678
2678
|
]),
|
|
2679
2679
|
_: 1
|
|
@@ -2740,7 +2740,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
|
2740
2740
|
}, 8, ["spinning"])
|
|
2741
2741
|
]));
|
|
2742
2742
|
}
|
|
2743
|
-
}), ad = /* @__PURE__ */ Ee(id, [["__scopeId", "data-v-6c626546"]]), cd = /* @__PURE__ */
|
|
2743
|
+
}), ad = /* @__PURE__ */ Ee(id, [["__scopeId", "data-v-6c626546"]]), cd = /* @__PURE__ */ de({
|
|
2744
2744
|
props: {
|
|
2745
2745
|
deviceInfo: {
|
|
2746
2746
|
type: Object,
|
|
@@ -2830,7 +2830,7 @@ function ld(n) {
|
|
|
2830
2830
|
toggleFullscreen: o
|
|
2831
2831
|
};
|
|
2832
2832
|
}
|
|
2833
|
-
const ud = /* @__PURE__ */
|
|
2833
|
+
const ud = /* @__PURE__ */ de({
|
|
2834
2834
|
__name: "index",
|
|
2835
2835
|
props: {
|
|
2836
2836
|
deviceList: { default: () => [] },
|
|
@@ -2902,7 +2902,7 @@ const ud = /* @__PURE__ */ pe({
|
|
|
2902
2902
|
return new Promise((o) => {
|
|
2903
2903
|
let r = document.body.querySelector("#video-dialog");
|
|
2904
2904
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
2905
|
-
const a =
|
|
2905
|
+
const a = fe(ud, { gridNum: e, deviceList: t, closeCallback: () => {
|
|
2906
2906
|
vt(null, r), document.body.removeChild(r), o(null);
|
|
2907
2907
|
} });
|
|
2908
2908
|
vt(a, r);
|
|
@@ -2928,7 +2928,7 @@ const ud = /* @__PURE__ */ pe({
|
|
|
2928
2928
|
projectId: s,
|
|
2929
2929
|
deviceIds: i == null ? void 0 : i.deviceId
|
|
2930
2930
|
}, h = (await o(A)).map((S) => {
|
|
2931
|
-
let
|
|
2931
|
+
let w = S.lookupOrOperation == 1;
|
|
2932
2932
|
return {
|
|
2933
2933
|
id: S.id,
|
|
2934
2934
|
productId: S.productId,
|
|
@@ -2936,7 +2936,7 @@ const ud = /* @__PURE__ */ pe({
|
|
|
2936
2936
|
deviceName: S.deviceName,
|
|
2937
2937
|
authType: S.controlAuthorization == 1 ? 2 : 1,
|
|
2938
2938
|
// 1 查看权限 2 查看+操作权限
|
|
2939
|
-
show: !!
|
|
2939
|
+
show: !!w
|
|
2940
2940
|
};
|
|
2941
2941
|
});
|
|
2942
2942
|
e.value = h.filter((S) => !!S.show), (u = e.value) != null && u.length && dd({ gridNum: n.value, deviceList: e.value });
|
|
@@ -3192,14 +3192,14 @@ class It {
|
|
|
3192
3192
|
}
|
|
3193
3193
|
function Ke() {
|
|
3194
3194
|
let n = "X-SignalR-User-Agent";
|
|
3195
|
-
return K.isNode && (n = "User-Agent"), [n,
|
|
3195
|
+
return K.isNode && (n = "User-Agent"), [n, wd(md, bd(), Id(), Cd())];
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function wd(n, e, t, o) {
|
|
3198
3198
|
let r = "Microsoft SignalR/";
|
|
3199
3199
|
const s = n.split(".");
|
|
3200
3200
|
return r += `${s[0]}.${s[1]}`, r += ` (${n}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${t}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function bd() {
|
|
3203
3203
|
if (K.isNode)
|
|
3204
3204
|
switch (process.platform) {
|
|
3205
3205
|
case "win32":
|
|
@@ -3362,40 +3362,40 @@ class kd extends Dt {
|
|
|
3362
3362
|
return this._httpClient.getCookieString(e);
|
|
3363
3363
|
}
|
|
3364
3364
|
}
|
|
3365
|
-
class
|
|
3365
|
+
class he {
|
|
3366
3366
|
static write(e) {
|
|
3367
|
-
return `${e}${
|
|
3367
|
+
return `${e}${he.RecordSeparator}`;
|
|
3368
3368
|
}
|
|
3369
3369
|
static parse(e) {
|
|
3370
|
-
if (e[e.length - 1] !==
|
|
3370
|
+
if (e[e.length - 1] !== he.RecordSeparator)
|
|
3371
3371
|
throw new Error("Message is incomplete.");
|
|
3372
|
-
const t = e.split(
|
|
3372
|
+
const t = e.split(he.RecordSeparator);
|
|
3373
3373
|
return t.pop(), t;
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
|
-
|
|
3377
|
-
|
|
3376
|
+
he.RecordSeparatorCode = 30;
|
|
3377
|
+
he.RecordSeparator = String.fromCharCode(he.RecordSeparatorCode);
|
|
3378
3378
|
class Pd {
|
|
3379
3379
|
// Handshake request is always JSON
|
|
3380
3380
|
writeHandshakeRequest(e) {
|
|
3381
|
-
return
|
|
3381
|
+
return he.write(JSON.stringify(e));
|
|
3382
3382
|
}
|
|
3383
3383
|
parseHandshakeResponse(e) {
|
|
3384
3384
|
let t, o;
|
|
3385
3385
|
if (Re(e)) {
|
|
3386
|
-
const l = new Uint8Array(e), c = l.indexOf(
|
|
3386
|
+
const l = new Uint8Array(e), c = l.indexOf(he.RecordSeparatorCode);
|
|
3387
3387
|
if (c === -1)
|
|
3388
3388
|
throw new Error("Message is incomplete.");
|
|
3389
3389
|
const i = c + 1;
|
|
3390
3390
|
t = String.fromCharCode.apply(null, Array.prototype.slice.call(l.slice(0, i))), o = l.byteLength > i ? l.slice(i).buffer : null;
|
|
3391
3391
|
} else {
|
|
3392
|
-
const l = e, c = l.indexOf(
|
|
3392
|
+
const l = e, c = l.indexOf(he.RecordSeparator);
|
|
3393
3393
|
if (c === -1)
|
|
3394
3394
|
throw new Error("Message is incomplete.");
|
|
3395
3395
|
const i = c + 1;
|
|
3396
3396
|
t = l.substring(0, i), o = l.length > i ? l.substring(i) : null;
|
|
3397
3397
|
}
|
|
3398
|
-
const r =
|
|
3398
|
+
const r = he.parse(t), s = JSON.parse(r[0]);
|
|
3399
3399
|
if (s.type)
|
|
3400
3400
|
throw new Error("Expected a handshake response from the server.");
|
|
3401
3401
|
return [o, s];
|
|
@@ -4288,7 +4288,7 @@ class Nd {
|
|
|
4288
4288
|
this._connectionStarted = !0;
|
|
4289
4289
|
}
|
|
4290
4290
|
send(e) {
|
|
4291
|
-
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new
|
|
4291
|
+
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new wn(this.transport)), this._sendQueue.send(e));
|
|
4292
4292
|
}
|
|
4293
4293
|
async stop(e) {
|
|
4294
4294
|
if (this._connectionState === "Disconnected")
|
|
@@ -4496,7 +4496,7 @@ class Nd {
|
|
|
4496
4496
|
function Ud(n, e) {
|
|
4497
4497
|
return !n || (e & n) !== 0;
|
|
4498
4498
|
}
|
|
4499
|
-
class
|
|
4499
|
+
class wn {
|
|
4500
4500
|
constructor(e) {
|
|
4501
4501
|
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new gt(), this._transportResult = new gt(), this._sendLoopPromise = this._sendLoop();
|
|
4502
4502
|
}
|
|
@@ -4520,7 +4520,7 @@ class bn {
|
|
|
4520
4520
|
this._sendBufferedData = new gt();
|
|
4521
4521
|
const e = this._transportResult;
|
|
4522
4522
|
this._transportResult = void 0;
|
|
4523
|
-
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") :
|
|
4523
|
+
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : wn._concatBuffers(this._buffer);
|
|
4524
4524
|
this._buffer.length = 0;
|
|
4525
4525
|
try {
|
|
4526
4526
|
await this._transport.send(t), e.resolve();
|
|
@@ -4564,7 +4564,7 @@ class Jd {
|
|
|
4564
4564
|
if (!e)
|
|
4565
4565
|
return [];
|
|
4566
4566
|
t === null && (t = at.instance);
|
|
4567
|
-
const o =
|
|
4567
|
+
const o = he.parse(e), r = [];
|
|
4568
4568
|
for (const s of o) {
|
|
4569
4569
|
const a = JSON.parse(s);
|
|
4570
4570
|
if (typeof a.type != "number")
|
|
@@ -4603,7 +4603,7 @@ class Jd {
|
|
|
4603
4603
|
* @returns {string} A string containing the serialized representation of the message.
|
|
4604
4604
|
*/
|
|
4605
4605
|
writeMessage(e) {
|
|
4606
|
-
return
|
|
4606
|
+
return he.write(JSON.stringify(e));
|
|
4607
4607
|
}
|
|
4608
4608
|
_isInvocationMessage(e) {
|
|
4609
4609
|
this._assertNotEmptyString(e.target, "Invalid payload for Invocation message."), e.invocationId !== void 0 && this._assertNotEmptyString(e.invocationId, "Invalid payload for Invocation message.");
|
|
@@ -4726,7 +4726,7 @@ const Gd = () => {
|
|
|
4726
4726
|
}, $t = "v1", Xd = je(`/api/graphics-engine/component/${$t}`, (n) => (n.customErrorMessage = () => "", n)), Zd = je(`/api/portal/manager/${$t}`, (n) => (n.customErrorMessage = () => "", n)), Yd = je(`/api/speech-base/speech/${$t}`, (n) => (n.customErrorMessage = () => "", n)), vo = Xd.get("/component/client/heartbeat"), ep = Zd.get("/basics/by-alias");
|
|
4727
4727
|
Yd.post("/control/callBack");
|
|
4728
4728
|
const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.get("/permissionset/application"), op = () => {
|
|
4729
|
-
const n = on(), { entryApp: e } =
|
|
4729
|
+
const n = on(), { entryApp: e } = wt.hooks.useEntryApp(), { entryMenu: t } = wt.hooks.useEntryMenu();
|
|
4730
4730
|
let o = null;
|
|
4731
4731
|
return Qe(async () => {
|
|
4732
4732
|
var d;
|
|
@@ -4746,29 +4746,29 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4746
4746
|
const B = m.filter((L) => L.code).map((L) => L.code);
|
|
4747
4747
|
if (m.length) {
|
|
4748
4748
|
if (y.currentSubAppCode) {
|
|
4749
|
-
const
|
|
4749
|
+
const b = y.currentSubApp.menus ?? [], C = ye(b).find((P) => B.includes(P.code));
|
|
4750
4750
|
if (C) {
|
|
4751
4751
|
t({ currentMenu: C });
|
|
4752
4752
|
return;
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
|
-
const L = _.find((
|
|
4755
|
+
const L = _.find((b) => B.includes(b.code));
|
|
4756
4756
|
L && e({ microApp: L });
|
|
4757
4757
|
}
|
|
4758
4758
|
}
|
|
4759
4759
|
if (typeof m == "string")
|
|
4760
4760
|
if (m.includes(":")) {
|
|
4761
|
-
const B = m.split(":"), [L = "",
|
|
4761
|
+
const B = m.split(":"), [L = "", b = ""] = B;
|
|
4762
4762
|
if (!L) return;
|
|
4763
4763
|
const C = _.find((P) => P.code === L);
|
|
4764
|
-
C && e({ microApp: C, menuCode:
|
|
4764
|
+
C && e({ microApp: C, menuCode: b });
|
|
4765
4765
|
} else {
|
|
4766
|
-
const B = m, L = _.find((
|
|
4766
|
+
const B = m, L = _.find((b) => b.code === B);
|
|
4767
4767
|
if (L)
|
|
4768
4768
|
e({ microApp: L });
|
|
4769
4769
|
else {
|
|
4770
|
-
const [
|
|
4771
|
-
if (
|
|
4770
|
+
const [b, C] = await np().run({ menuCode: B });
|
|
4771
|
+
if (b) return;
|
|
4772
4772
|
const P = _.find(($) => $.code === C);
|
|
4773
4773
|
P && e({ microApp: P, menuCode: B });
|
|
4774
4774
|
}
|
|
@@ -4803,7 +4803,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4803
4803
|
if (L)
|
|
4804
4804
|
L.uniqueId && L.actionKey == "switch-menu" && i(L);
|
|
4805
4805
|
else if (B.includes("openAppMenu=")) {
|
|
4806
|
-
const
|
|
4806
|
+
const b = B.split("="), C = JSON.parse(b[1]);
|
|
4807
4807
|
l(C);
|
|
4808
4808
|
} else B.includes("iocIsRun") && (c.value = !1);
|
|
4809
4809
|
});
|
|
@@ -4816,19 +4816,19 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4816
4816
|
o = setInterval(() => {
|
|
4817
4817
|
S();
|
|
4818
4818
|
}, 72e5);
|
|
4819
|
-
const
|
|
4820
|
-
m === "online" &&
|
|
4819
|
+
const w = E("online"), f = (m) => {
|
|
4820
|
+
m === "online" && w.value === "offline" && setTimeout(() => {
|
|
4821
4821
|
S();
|
|
4822
|
-
}, 5e3),
|
|
4822
|
+
}, 5e3), w.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
4823
4823
|
};
|
|
4824
4824
|
window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
|
|
4825
4825
|
}), Et(() => {
|
|
4826
4826
|
o && clearInterval(o);
|
|
4827
4827
|
}), {};
|
|
4828
|
-
}, Lt = "v1", rp = Xe(`/api/fms/report/${Lt}`),
|
|
4828
|
+
}, Lt = "v1", rp = Xe(`/api/fms/report/${Lt}`), bn = Xe(`/api/emergency/manage/${Lt}`), sp = rn.get("/permissionset/user-portal-menu"), Ar = Xe(`/api/alarm/config/${Lt}`), ip = Xe(`/api/alarm/run-time/${Lt}`), ap = Ar.get("/alarm-definition/status-option"), cp = ip.post("/record/handling"), lp = Ar.get("/alarm-level/prompttone"), up = rp.get("/alarm/rule/list"), dp = Eo.get("/controller/space-children-all-type"), pp = Eo.get("/controller/fuzzy-area-small"), fp = bn.get("/emergency-event/event/type"), hp = bn.get("/emergency-event/event/level"), gp = bn.get("/emergency-plan/plan/handle-time"), Ap = { class: "handle-alarm-container" }, mp = { class: "select-check" }, vp = { class: "form-box" }, yp = { class: "select-check" }, _p = { style: { "margin-left": "8px" } }, wp = { class: "foot-btn-box" }, bp = {
|
|
4829
4829
|
name: "handleAlarm"
|
|
4830
|
-
}, Cp = /* @__PURE__ */
|
|
4831
|
-
...
|
|
4830
|
+
}, Cp = /* @__PURE__ */ de({
|
|
4831
|
+
...bp,
|
|
4832
4832
|
props: {
|
|
4833
4833
|
projectId: { default: "" },
|
|
4834
4834
|
handerIds: { default: [] }
|
|
@@ -4887,23 +4887,23 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4887
4887
|
{ id: 2, name: Q("时").value },
|
|
4888
4888
|
{ id: 1, name: Q("分").value },
|
|
4889
4889
|
{ id: 3, name: Q("不限").value }
|
|
4890
|
-
]),
|
|
4890
|
+
]), w = E([]), f = E(""), d = E("告警对象位置"), m = E(""), y = E([]), _ = E("");
|
|
4891
4891
|
E("[]");
|
|
4892
4892
|
const T = E(!0), B = E(!0), L = async (O) => {
|
|
4893
4893
|
const I = { name: "1" };
|
|
4894
4894
|
O != null && O.id && (I.spaceId = O.id);
|
|
4895
|
-
const [k,
|
|
4896
|
-
return k ? {} :
|
|
4897
|
-
},
|
|
4898
|
-
const I = { name: O || "" }, [k,
|
|
4899
|
-
return k ? {} :
|
|
4895
|
+
const [k, Ae] = await dp(I).run();
|
|
4896
|
+
return k ? {} : Ae;
|
|
4897
|
+
}, b = async (O) => {
|
|
4898
|
+
const I = { name: O || "" }, [k, Ae] = await pp(I).run();
|
|
4899
|
+
return k ? {} : Ae;
|
|
4900
4900
|
}, C = E(!0), P = E(!0), $ = E([]), H = async () => {
|
|
4901
4901
|
const [O, I] = await up().run({ pageIndex: -1, pageSize: -1 });
|
|
4902
4902
|
if (O) return {};
|
|
4903
4903
|
$.value = I.data.filter((k) => k.status), $.value.length > 0 && (i.value.workOrderRules = $.value[0].id);
|
|
4904
4904
|
};
|
|
4905
4905
|
oe(c, (O) => {
|
|
4906
|
-
O || (G(),
|
|
4906
|
+
O || (G(), pe());
|
|
4907
4907
|
}), oe(
|
|
4908
4908
|
B,
|
|
4909
4909
|
(O) => {
|
|
@@ -4930,7 +4930,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4930
4930
|
O && (u.value.reportTheme = ""), O ? (i.value.reportTheme = "", m.value = "告警对象") : (i.value.reportTheme = "", m.value = "请输入");
|
|
4931
4931
|
}, G = () => {
|
|
4932
4932
|
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 = "";
|
|
4933
|
-
},
|
|
4933
|
+
}, pe = () => {
|
|
4934
4934
|
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, B.value = !0, P.value = !0, C.value = !0, i.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], h.value = [];
|
|
4935
4935
|
}, Oe = (O) => {
|
|
4936
4936
|
O == "eventTypeId" && (i.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (A.value = !0, i.value.timeLimit = "") : A.value = !1);
|
|
@@ -4943,10 +4943,10 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4943
4943
|
eventTypeId: i.value.eventTypeId
|
|
4944
4944
|
}, [I, k] = await hp(O).run();
|
|
4945
4945
|
if (I) return {};
|
|
4946
|
-
const
|
|
4946
|
+
const Ae = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
4947
4947
|
h.value = k.map((ht) => ({
|
|
4948
4948
|
id: `${ht}`,
|
|
4949
|
-
name:
|
|
4949
|
+
name: Ae[ht] ? Ae[ht] : ht
|
|
4950
4950
|
})), k.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, In());
|
|
4951
4951
|
}, In = async () => {
|
|
4952
4952
|
const O = {
|
|
@@ -4969,9 +4969,9 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4969
4969
|
s.value = !1;
|
|
4970
4970
|
return;
|
|
4971
4971
|
}
|
|
4972
|
-
s.value = !1,
|
|
4973
|
-
for (let
|
|
4974
|
-
|
|
4972
|
+
s.value = !1, w.value = k;
|
|
4973
|
+
for (let Ae = 0; Ae < w.value.length; Ae++)
|
|
4974
|
+
w.value[Ae].id === "createorder" && H(), w.value[Ae].id === "createcontingency" && mr();
|
|
4975
4975
|
}, _r = () => {
|
|
4976
4976
|
let O = !0;
|
|
4977
4977
|
if (i.value.processTypeId == "dealwith")
|
|
@@ -4983,11 +4983,11 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4983
4983
|
i.value.eventTypeId || (O = !1, u.value.eventTypeId = Q("必选").value), i.value.eventLevelId || (O = !1, u.value.eventLevelId = Q("必选").value), i.value.interval != 3 && !I.test(i.value.timeLimit) && (O = !1, u.value.timeLimit = Q("必填,请输入1~999之间的正整数").value);
|
|
4984
4984
|
}
|
|
4985
4985
|
return O;
|
|
4986
|
-
},
|
|
4986
|
+
}, wr = () => {
|
|
4987
4987
|
xt();
|
|
4988
4988
|
}, En = async (O) => {
|
|
4989
|
-
_r() && (l.value = O,
|
|
4990
|
-
},
|
|
4989
|
+
_r() && (l.value = O, br());
|
|
4990
|
+
}, br = async () => {
|
|
4991
4991
|
const O = {
|
|
4992
4992
|
projectId: o.projectId,
|
|
4993
4993
|
processStatus: l.value,
|
|
@@ -5016,7 +5016,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5016
5016
|
return e({
|
|
5017
5017
|
open: Cr,
|
|
5018
5018
|
close: xt
|
|
5019
|
-
}), (O, I) => (N(),
|
|
5019
|
+
}), (O, I) => (N(), ue("div", Ap, [
|
|
5020
5020
|
R(v(sn), {
|
|
5021
5021
|
modelValue: c.value,
|
|
5022
5022
|
"onUpdate:modelValue": I[31] || (I[31] = (k) => c.value = k),
|
|
@@ -5037,10 +5037,10 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5037
5037
|
)
|
|
5038
5038
|
]),
|
|
5039
5039
|
footer: M(() => [
|
|
5040
|
-
x("div",
|
|
5040
|
+
x("div", wp, [
|
|
5041
5041
|
R(v(ke), {
|
|
5042
5042
|
size: "middle",
|
|
5043
|
-
onClick:
|
|
5043
|
+
onClick: wr
|
|
5044
5044
|
}, {
|
|
5045
5045
|
default: M(() => [
|
|
5046
5046
|
le(
|
|
@@ -5106,7 +5106,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5106
5106
|
type: "select",
|
|
5107
5107
|
modelValue: i.value.processTypeId,
|
|
5108
5108
|
"onUpdate:modelValue": I[0] || (I[0] = (k) => i.value.processTypeId = k),
|
|
5109
|
-
options:
|
|
5109
|
+
options: w.value,
|
|
5110
5110
|
col: 1,
|
|
5111
5111
|
optionsLabelKey: "name",
|
|
5112
5112
|
optionsValueKey: "id",
|
|
@@ -5185,7 +5185,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5185
5185
|
placeholder: d.value,
|
|
5186
5186
|
disabled: T.value,
|
|
5187
5187
|
load: L,
|
|
5188
|
-
search:
|
|
5188
|
+
search: b,
|
|
5189
5189
|
onChange: Te,
|
|
5190
5190
|
filter: !0,
|
|
5191
5191
|
allowClear: !0
|
|
@@ -5374,7 +5374,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5374
5374
|
]));
|
|
5375
5375
|
}
|
|
5376
5376
|
}), Ip = /* @__PURE__ */ Ee(Cp, [["__scopeId", "data-v-1ecf3324"]]), Ep = (n, e, t) => ({
|
|
5377
|
-
handleAlarmVue: () =>
|
|
5377
|
+
handleAlarmVue: () => fe(Ip, {
|
|
5378
5378
|
handerIds: e.value,
|
|
5379
5379
|
projectId: St().id,
|
|
5380
5380
|
ref: n,
|
|
@@ -5383,7 +5383,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5383
5383
|
})
|
|
5384
5384
|
}), Sp = { class: "alarm-msg" }, Tp = { style: { position: "relative" } }, kp = { class: "title-left" }, Pp = { class: "title-box" }, Bp = { class: "content-box" }, Op = { class: "alarm-msg-line" }, Dp = { class: "alarm-msg-line-left" }, $p = { class: "alarm-msg-line" }, Lp = { class: "alarm-msg-line-left" }, xp = { class: "alarm-msg-line-right alarm-content-object" }, Mp = { class: "alarm-msg-line" }, Rp = { class: "alarm-msg-line-left" }, Qp = { class: "alarm-msg-line-right alarm-content" }, jp = { class: "btn-box" }, Hp = {
|
|
5385
5385
|
name: "alarm"
|
|
5386
|
-
}, Np = /* @__PURE__ */
|
|
5386
|
+
}, Np = /* @__PURE__ */ de({
|
|
5387
5387
|
...Hp,
|
|
5388
5388
|
props: {
|
|
5389
5389
|
alarmhandle: { type: Boolean, default: !1 },
|
|
@@ -5396,7 +5396,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5396
5396
|
}, s = () => {
|
|
5397
5397
|
o("handerDetail", t.msgItem);
|
|
5398
5398
|
};
|
|
5399
|
-
return (a, l) => (N(),
|
|
5399
|
+
return (a, l) => (N(), ue(
|
|
5400
5400
|
We,
|
|
5401
5401
|
null,
|
|
5402
5402
|
[
|
|
@@ -5555,35 +5555,35 @@ const Fp = () => {
|
|
|
5555
5555
|
loop: !1
|
|
5556
5556
|
// 轮播-无限次播放
|
|
5557
5557
|
});
|
|
5558
|
-
|
|
5559
|
-
const { isRealTimeAlarm: C, audioPlay: P } =
|
|
5558
|
+
me.addEventListenerFromMicroApp("alarm:change-alarmconfig", (b) => {
|
|
5559
|
+
const { isRealTimeAlarm: C, audioPlay: P } = b.data;
|
|
5560
5560
|
C != null && (l.value = C), P != null && (c.value = P, c.value || _());
|
|
5561
5561
|
});
|
|
5562
|
-
const u = (
|
|
5562
|
+
const u = (b) => {
|
|
5563
5563
|
var P;
|
|
5564
5564
|
const C = [];
|
|
5565
|
-
C.push({ alarmId:
|
|
5566
|
-
}, { entryApp: A } =
|
|
5567
|
-
So(
|
|
5565
|
+
C.push({ alarmId: b.recordId }), r.value = C, (P = t.value) == null || P.open();
|
|
5566
|
+
}, { entryApp: A } = wt.hooks.useEntryApp(), p = (b) => {
|
|
5567
|
+
So(b.equipmentCode, b.equipmentPanelCode);
|
|
5568
5568
|
}, { handleAlarmVue: h } = Ep(t, r), S = async () => {
|
|
5569
5569
|
var P;
|
|
5570
5570
|
const C = (((P = J().appcategorys) == null ? void 0 : P.map(($) => $.apps).flat()) ?? []).find(($) => $.code === "alarm");
|
|
5571
5571
|
C && A({ microApp: C, menuPath: `/${C.routeUrl}/realTimeAlarm` });
|
|
5572
|
-
},
|
|
5573
|
-
if (
|
|
5574
|
-
d(
|
|
5572
|
+
}, w = [], f = (b) => {
|
|
5573
|
+
if (w.push(b), s.value.length < 2) {
|
|
5574
|
+
d(w[0]), w.shift();
|
|
5575
5575
|
return;
|
|
5576
5576
|
}
|
|
5577
|
-
}, d = (
|
|
5578
|
-
if (!
|
|
5577
|
+
}, d = (b) => {
|
|
5578
|
+
if (!b) return;
|
|
5579
5579
|
const C = Up();
|
|
5580
5580
|
yt.open({
|
|
5581
5581
|
key: C,
|
|
5582
5582
|
class: "alarm-notify",
|
|
5583
5583
|
message: Q("新告警").value,
|
|
5584
5584
|
placement: "bottomRight",
|
|
5585
|
-
description:
|
|
5586
|
-
msgItem:
|
|
5585
|
+
description: fe(Np, {
|
|
5586
|
+
msgItem: b,
|
|
5587
5587
|
alarmhandle: a.value,
|
|
5588
5588
|
onHanderDetail: p,
|
|
5589
5589
|
onHanderFn: u
|
|
@@ -5595,30 +5595,30 @@ const Fp = () => {
|
|
|
5595
5595
|
onClose: () => {
|
|
5596
5596
|
setTimeout(() => {
|
|
5597
5597
|
const P = s.value.findIndex(($) => $ == C);
|
|
5598
|
-
if (P >= 0 && s.value.splice(P, 1), s.value.length < 2 &&
|
|
5599
|
-
d(
|
|
5598
|
+
if (P >= 0 && s.value.splice(P, 1), s.value.length < 2 && w.length) {
|
|
5599
|
+
d(w[0]), w.shift();
|
|
5600
5600
|
return;
|
|
5601
5601
|
}
|
|
5602
5602
|
}, 300);
|
|
5603
5603
|
}
|
|
5604
|
-
}), s.value.includes(C) || s.value.push(C), m(
|
|
5605
|
-
}, m = (
|
|
5606
|
-
if (
|
|
5604
|
+
}), s.value.includes(C) || s.value.push(C), m(b);
|
|
5605
|
+
}, m = (b) => {
|
|
5606
|
+
if (b) {
|
|
5607
5607
|
if (!c.value) {
|
|
5608
5608
|
_();
|
|
5609
5609
|
return;
|
|
5610
5610
|
}
|
|
5611
|
-
if (!
|
|
5611
|
+
if (!b.coverId) {
|
|
5612
5612
|
if (i.value.playLine === null) {
|
|
5613
|
-
_(), Number(
|
|
5613
|
+
_(), Number(b.noticeNum) != 0 && y(b);
|
|
5614
5614
|
return;
|
|
5615
5615
|
}
|
|
5616
|
-
Number(
|
|
5616
|
+
Number(b.alarmLevelId) < i.value.playLine && (_(), Number(b.noticeNum) != 0 && y(b));
|
|
5617
5617
|
}
|
|
5618
5618
|
}
|
|
5619
|
-
}, y = (
|
|
5620
|
-
const C = Number(
|
|
5621
|
-
i.value.isplay && i.value.playId ==
|
|
5619
|
+
}, y = (b) => {
|
|
5620
|
+
const C = Number(b.noticeNum), P = location.origin + "/oss";
|
|
5621
|
+
i.value.isplay && i.value.playId == b.recordId ? _() : (C < 0 ? i.value.loop = !0 : i.value.loop = !1, C > 0 ? (i.value.loopTotalCount = Number(b.noticeNum), i.value.loopCount = 0) : (i.value.loopTotalCount = 0, i.value.loopCount = 0), i.value.isplay = !0, i.value.playId = b.recordId, i.value.playLine = Number(b.alarmLevelId), i.value.playPath = P + b.noticePath, T());
|
|
5622
5622
|
}, _ = () => {
|
|
5623
5623
|
i.value.playId = "", i.value.playPath = "", i.value.playLine = null, i.value.loopCount = 0, i.value.loopTotalCount = 0, i.value.isplay = !1, i.value.loop = !1;
|
|
5624
5624
|
}, T = () => {
|
|
@@ -5626,8 +5626,8 @@ const Fp = () => {
|
|
|
5626
5626
|
i.value.loopCount = i.value.loopCount + 1, i.value.loopTotalCount && i.value.loopTotalCount && (i.value.loopCount == i.value.loopTotalCount ? (i.value.playPath = "", i.value.isplay = !1, i.value.playId = "", i.value.loopTotalCount = 0, i.value.loopCount = 0, i.value.playLine = null) : o.value.play());
|
|
5627
5627
|
};
|
|
5628
5628
|
}, B = async () => {
|
|
5629
|
-
const [
|
|
5630
|
-
|
|
5629
|
+
const [b, C] = await lp().run();
|
|
5630
|
+
b || (c.value = C.isEnable);
|
|
5631
5631
|
};
|
|
5632
5632
|
return {
|
|
5633
5633
|
alarmSocket: n,
|
|
@@ -5637,11 +5637,11 @@ const Fp = () => {
|
|
|
5637
5637
|
handleAlarmVue: h,
|
|
5638
5638
|
creatAlarmSocket: async () => {
|
|
5639
5639
|
B();
|
|
5640
|
-
const [
|
|
5640
|
+
const [b, C] = await sp().run({
|
|
5641
5641
|
code: "alarm",
|
|
5642
5642
|
showBtn: !0
|
|
5643
5643
|
});
|
|
5644
|
-
if (
|
|
5644
|
+
if (b || !C || !C.length) return;
|
|
5645
5645
|
let P = !1;
|
|
5646
5646
|
C.forEach(($) => {
|
|
5647
5647
|
$.code === "alarm.realTimeAlarm" && (P = !0, $.children && $.children.length ? $.children.forEach((H) => {
|
|
@@ -5655,12 +5655,12 @@ const Fp = () => {
|
|
|
5655
5655
|
$ && n.value.send($);
|
|
5656
5656
|
},
|
|
5657
5657
|
message: async ($) => {
|
|
5658
|
-
|
|
5658
|
+
me.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: $ }), window.self === window.top && ($.messageType === "ADD" && (e.value = e.value + 1, $.coverId || f($)), $.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == $.recordId && _()));
|
|
5659
5659
|
}
|
|
5660
5660
|
}));
|
|
5661
5661
|
}
|
|
5662
5662
|
};
|
|
5663
|
-
}, Jp = ["src", "muted", "loop"], Wp = /* @__PURE__ */
|
|
5663
|
+
}, Jp = ["src", "muted", "loop"], Wp = /* @__PURE__ */ de({
|
|
5664
5664
|
__name: "index",
|
|
5665
5665
|
setup(n) {
|
|
5666
5666
|
const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Fp();
|
|
@@ -5668,7 +5668,7 @@ const Fp = () => {
|
|
|
5668
5668
|
await Tt(), t();
|
|
5669
5669
|
}), Et(() => {
|
|
5670
5670
|
e.value && e.value.disconnect(), e.value = null;
|
|
5671
|
-
}), (a, l) => (N(),
|
|
5671
|
+
}), (a, l) => (N(), ue(
|
|
5672
5672
|
We,
|
|
5673
5673
|
null,
|
|
5674
5674
|
[
|
|
@@ -5687,15 +5687,15 @@ const Fp = () => {
|
|
|
5687
5687
|
/* STABLE_FRAGMENT */
|
|
5688
5688
|
));
|
|
5689
5689
|
}
|
|
5690
|
-
}), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */
|
|
5690
|
+
}), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */ de({
|
|
5691
5691
|
__name: "index",
|
|
5692
5692
|
setup(n) {
|
|
5693
5693
|
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = gu(), { innerPage: l, commandList: c, initNextTick: i } = Au(a);
|
|
5694
|
-
|
|
5695
|
-
const { $changePwd: u, $personSetDialog: A } = Cu(), { changeEnterprisesVisible: p, userId: h, tenantId: S, changeEnterprise:
|
|
5694
|
+
bu(l, a, i), wu(), yu(), Su();
|
|
5695
|
+
const { $changePwd: u, $personSetDialog: A } = Cu(), { changeEnterprisesVisible: p, userId: h, tenantId: S, changeEnterprise: w } = dr();
|
|
5696
5696
|
vu();
|
|
5697
5697
|
const { fontColor: f, backgroudColor: d, borderColor: m } = _u();
|
|
5698
|
-
return $u(), Lu(c), xu(), Ru(), pd(), op(), (y, _) => (N(),
|
|
5698
|
+
return $u(), Lu(c), xu(), Ru(), pd(), op(), (y, _) => (N(), ue("div", zp, [
|
|
5699
5699
|
R(v(Ps), { platformInitNextTick: v(a) }, {
|
|
5700
5700
|
default: M(() => [
|
|
5701
5701
|
R(fs, {
|
|
@@ -5715,7 +5715,7 @@ const Fp = () => {
|
|
|
5715
5715
|
"onUpdate:visible": _[0] || (_[0] = (T) => Dr(p) ? p.value = T : null),
|
|
5716
5716
|
userId: v(h),
|
|
5717
5717
|
tenantId: v(S),
|
|
5718
|
-
onConfirm: v(
|
|
5718
|
+
onConfirm: v(w)
|
|
5719
5719
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
5720
5720
|
U(" 修改密码 "),
|
|
5721
5721
|
R(
|
|
@@ -5748,15 +5748,15 @@ E("@das-fed/web");
|
|
|
5748
5748
|
const Kp = [
|
|
5749
5749
|
{
|
|
5750
5750
|
path: Ie,
|
|
5751
|
-
component: () => import("./index-
|
|
5751
|
+
component: () => import("./index-DBjwQZqL.js")
|
|
5752
5752
|
},
|
|
5753
5753
|
{
|
|
5754
5754
|
path: Je,
|
|
5755
|
-
component: () => import("./index-
|
|
5755
|
+
component: () => import("./index-J2C2DUqZ.js")
|
|
5756
5756
|
},
|
|
5757
5757
|
{
|
|
5758
5758
|
path: Bo,
|
|
5759
|
-
component: () => import("./index-
|
|
5759
|
+
component: () => import("./index-DyeXA7YK.js")
|
|
5760
5760
|
}
|
|
5761
5761
|
], Hf = {
|
|
5762
5762
|
routes: Kp,
|