@das-fed/web 6.4.0-hot.5 → 6.4.0-hot.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{packages/main-app-framework/index-CBrBve1k.js → index-C-ieIBXO.js} +1 -1
- package/{index-_67_4aoo.js → index-C8k4wrGJ.js} +1 -1
- package/index-C8k4wrGJ.js.gz +0 -0
- package/{index-CNuui6rH.js → index-CicbdbyR.js} +1 -1
- package/index-CicbdbyR.js.gz +0 -0
- package/{index-LTwaM8dS.js → index-CwfFnT6z.js} +1039 -1035
- package/index-CwfFnT6z.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/{index-D_CiHfGN.js → packages/main-app-framework/index-Bcz8SW2I.js} +1 -1
- package/packages/main-app-framework/{index-Bnb7HNMb.js → index-CfM1liO6.js} +1 -1
- package/packages/main-app-framework/index-CfM1liO6.js.gz +0 -0
- package/packages/main-app-framework/{index-DF7V-TBl.js → index-DRQHVvCk.js} +942 -938
- package/packages/main-app-framework/index-DRQHVvCk.js.gz +0 -0
- package/packages/main-app-framework/{index-DOTMbc-l.js → index-E1pACiHI.js} +1 -1
- package/packages/main-app-framework/index-E1pACiHI.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-CNuui6rH.js.gz +0 -0
- package/index-LTwaM8dS.js.gz +0 -0
- package/index-_67_4aoo.js.gz +0 -0
- package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
- package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
- package/packages/main-app-framework/index-DOTMbc-l.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as
|
|
1
|
+
import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as v, mergeProps as Sr, withCtx as L, renderSlot as $e, createVNode as x, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as S, watch as re, reactive as yo, createElementVNode as $, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as Br, toDisplayString as Z, createCommentVNode as N, pushScopeId as bo, popScopeId as wo, h as he, render as vt, onBeforeUnmount as Et, useCssVars as Or, normalizeClass as Dr, withModifiers as ne, toRefs as $r, normalizeStyle as Sn, isRef as Mr } from "vue";
|
|
2
2
|
import { i18n as Q } from "@das-fed/web/packages/i18n/index";
|
|
3
3
|
import { DasWebLayout as Lr, DasWebNav as xr, DasWebMenu as Rr, DasWebTabs as Qr, layout as D } from "@das-fed/web/packages/layout/index";
|
|
4
4
|
import { DasChangePwdRef as jr, DasChangePwd as Hr } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
@@ -13,12 +13,12 @@ import { createService as je } from "@das-fed/utils/create-api-service";
|
|
|
13
13
|
import { useRouter as Ge, useRoute as on } from "vue-router";
|
|
14
14
|
import { useGetAuth as Gr } from "@das-fed/utils/hooks/use-get-auth";
|
|
15
15
|
import { systemConfiguration as Xr, enterpriseright as rn, createService as Xe, spaceManage as To } from "@das-fed/utils/api-services";
|
|
16
|
-
import { microFrontend as
|
|
16
|
+
import { microFrontend as te } from "@das-fed/web/packages/micro-frontend/index";
|
|
17
17
|
import { getConfig as He } from "@das-fed/utils/config";
|
|
18
18
|
import Jt from "dayjs";
|
|
19
19
|
import { getAccessToken as Zr, removeAccessToken as Yr } from "@das-fed/utils/token-tools";
|
|
20
20
|
import { DasDialog as sn } from "@das-fed/ui/packages/components/dialog/index";
|
|
21
|
-
import { DasButton as
|
|
21
|
+
import { DasButton as ke } from "@das-fed/ui/packages/components/button/index";
|
|
22
22
|
import { vDasTooltip as es } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
23
23
|
import { tokenStorage as ts } from "@das-fed/utils/create-api-service/sso";
|
|
24
24
|
import { setPersonalInfo as ns } from "@das-fed/utils/common-info/set-personal-info";
|
|
@@ -40,9 +40,9 @@ import { DasInput as Pn } from "@das-fed/ui/packages/components/input/index";
|
|
|
40
40
|
import { DasCheckbox as Bn } from "@das-fed/ui/packages/components/checkbox/index";
|
|
41
41
|
import { DasForm as fs } from "@das-fed/ui/packages/components/form/index";
|
|
42
42
|
import { DasFormItem as _e } from "@das-fed/ui/packages/components/form-item/index";
|
|
43
|
-
const nt = "/",
|
|
43
|
+
const nt = "/", Ie = "/application", Oo = [
|
|
44
44
|
{ value: nt, label: Q("首页").value, path: nt, fixed: !0 },
|
|
45
|
-
{ value:
|
|
45
|
+
{ value: Ie, label: Q("应用").value, path: Ie, fixed: !0 }
|
|
46
46
|
], Je = "/outerView", Do = "/placeholder", hs = [
|
|
47
47
|
{ value: "0", label: Q("主题设置").value },
|
|
48
48
|
{ value: "1", label: Q("个人中心").value },
|
|
@@ -71,23 +71,23 @@ const nt = "/", ke = "/application", Oo = [
|
|
|
71
71
|
excludeRoutes: e.excludeRoutes,
|
|
72
72
|
routeKeepAliveVisible: e.routeKeepAliveVisible
|
|
73
73
|
}));
|
|
74
|
-
return (r, i) => (H(), V(
|
|
75
|
-
header:
|
|
74
|
+
return (r, i) => (H(), V(v(Lr), Sr({ "transition-config": t.value }, o.value), {
|
|
75
|
+
header: L(() => [
|
|
76
76
|
$e(r.$slots, "header", {}, () => [
|
|
77
|
-
|
|
77
|
+
x(v(xr))
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
|
-
aside:
|
|
80
|
+
aside: L(() => [
|
|
81
81
|
$e(r.$slots, "aside", {}, () => [
|
|
82
|
-
|
|
82
|
+
x(v(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
83
83
|
])
|
|
84
84
|
]),
|
|
85
|
-
tab:
|
|
85
|
+
tab: L(() => [
|
|
86
86
|
$e(r.$slots, "tab", {}, () => [
|
|
87
|
-
|
|
87
|
+
x(v(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
90
|
-
banner:
|
|
90
|
+
banner: L(() => [
|
|
91
91
|
$e(r.$slots, "banner")
|
|
92
92
|
]),
|
|
93
93
|
_: 3
|
|
@@ -100,7 +100,7 @@ const cn = typeof window < "u", As = (n) => typeof n == "string", ms = () => {
|
|
|
100
100
|
};
|
|
101
101
|
cn && ((On = window == null ? void 0 : window.navigator) != null && On.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
102
102
|
function $o(n) {
|
|
103
|
-
return typeof n == "function" ? n() :
|
|
103
|
+
return typeof n == "function" ? n() : v(n);
|
|
104
104
|
}
|
|
105
105
|
function vs(n) {
|
|
106
106
|
return n;
|
|
@@ -124,15 +124,15 @@ function ws(...n) {
|
|
|
124
124
|
Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
|
|
125
125
|
const i = [], a = () => {
|
|
126
126
|
i.forEach((u) => u()), i.length = 0;
|
|
127
|
-
}, l = (u,
|
|
128
|
-
a(), u && i.push(...t.flatMap((g) => o.map((
|
|
127
|
+
}, l = (u, A, g, p) => (u.addEventListener(A, g, p), () => u.removeEventListener(A, g, p)), c = re(() => [Lo(e), $o(r)], ([u, A]) => {
|
|
128
|
+
a(), u && i.push(...t.flatMap((g) => o.map((p) => l(u, g, p, A))));
|
|
129
129
|
}, { immediate: !0, flush: "post" }), s = () => {
|
|
130
130
|
c(), a();
|
|
131
131
|
};
|
|
132
132
|
return Mo(s), s;
|
|
133
133
|
}
|
|
134
134
|
function Cs(n, e = !1) {
|
|
135
|
-
const t =
|
|
135
|
+
const t = S(), o = () => t.value = !!n();
|
|
136
136
|
return o(), ys(o, e), t;
|
|
137
137
|
}
|
|
138
138
|
const Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $n = "__vueuse_ssr_handlers__";
|
|
@@ -180,38 +180,38 @@ const Mn = [
|
|
|
180
180
|
]
|
|
181
181
|
];
|
|
182
182
|
function lt(n, e = {}) {
|
|
183
|
-
const { document: t = bs, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), i =
|
|
183
|
+
const { document: t = bs, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), i = S(!1);
|
|
184
184
|
let a = Mn[0];
|
|
185
185
|
const l = Cs(() => {
|
|
186
186
|
if (t) {
|
|
187
|
-
for (const
|
|
188
|
-
if (
|
|
189
|
-
return a =
|
|
187
|
+
for (const _ of Mn)
|
|
188
|
+
if (_[1] in t)
|
|
189
|
+
return a = _, !0;
|
|
190
190
|
} else
|
|
191
191
|
return !1;
|
|
192
192
|
return !1;
|
|
193
|
-
}), [c, s, u, ,
|
|
193
|
+
}), [c, s, u, , A] = a;
|
|
194
194
|
async function g() {
|
|
195
195
|
l.value && (t != null && t[u] && await t[s](), i.value = !1);
|
|
196
196
|
}
|
|
197
|
-
async function
|
|
197
|
+
async function p() {
|
|
198
198
|
if (!l.value)
|
|
199
199
|
return;
|
|
200
200
|
await g();
|
|
201
|
-
const
|
|
202
|
-
|
|
201
|
+
const _ = Lo(r);
|
|
202
|
+
_ && (await _[c](), i.value = !0);
|
|
203
203
|
}
|
|
204
|
-
async function
|
|
205
|
-
i.value ? await g() : await
|
|
204
|
+
async function w() {
|
|
205
|
+
i.value ? await g() : await p();
|
|
206
206
|
}
|
|
207
|
-
return t && ws(t,
|
|
207
|
+
return t && ws(t, A, () => {
|
|
208
208
|
i.value = !!(t != null && t[u]);
|
|
209
209
|
}, !1), o && Mo(g), {
|
|
210
210
|
isSupported: l,
|
|
211
211
|
isFullscreen: i,
|
|
212
|
-
enter:
|
|
212
|
+
enter: p,
|
|
213
213
|
exit: g,
|
|
214
|
-
toggle:
|
|
214
|
+
toggle: w
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
var Ln;
|
|
@@ -261,62 +261,62 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
261
261
|
platformInitNextTick: {}
|
|
262
262
|
},
|
|
263
263
|
setup(n) {
|
|
264
|
-
const e = n, t =
|
|
264
|
+
const e = n, t = S({}), o = S(120), r = S(64);
|
|
265
265
|
let i = [];
|
|
266
|
-
const a =
|
|
266
|
+
const a = S([]), l = yo({
|
|
267
267
|
color: "rgba(0,0,0,.15)",
|
|
268
268
|
fontSize: 16
|
|
269
|
-
}), c = (
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
o.value = Math.ceil(
|
|
274
|
-
}, s = (
|
|
275
|
-
var
|
|
276
|
-
const
|
|
277
|
-
a.value =
|
|
269
|
+
}), c = (p, w) => {
|
|
270
|
+
const _ = document.createElement("span");
|
|
271
|
+
_.innerHTML = p, _.style.fontSize = w + "px", _.style.fontFamily = "sans-serif", _.style.visibility = "hidden", document.body.appendChild(_);
|
|
272
|
+
const f = _.getBoundingClientRect();
|
|
273
|
+
o.value = Math.ceil(f.width) + w / 2, r.value = Math.ceil(f.height), document.body.removeChild(_);
|
|
274
|
+
}, s = (p) => {
|
|
275
|
+
var _;
|
|
276
|
+
const w = !!((_ = t.value) != null && _.pageSwith);
|
|
277
|
+
a.value = p && w ? [...i] : [];
|
|
278
278
|
}, u = async () => {
|
|
279
|
-
var
|
|
279
|
+
var f, d, m, y, b, P, C;
|
|
280
280
|
await (e == null ? void 0 : e.platformInitNextTick());
|
|
281
|
-
const [
|
|
282
|
-
if (
|
|
283
|
-
if (t.value =
|
|
281
|
+
const [p, w] = await Ps().run();
|
|
282
|
+
if (p) return null;
|
|
283
|
+
if (t.value = w, !!((f = t.value) != null && f.pageSwith)) {
|
|
284
284
|
i = [];
|
|
285
|
-
const { name:
|
|
286
|
-
let
|
|
287
|
-
if ((d = t.value) != null && d.nameSwith &&
|
|
288
|
-
const M =
|
|
289
|
-
i.push(M),
|
|
285
|
+
const { name: k, phone: I } = await as();
|
|
286
|
+
let T = "";
|
|
287
|
+
if ((d = t.value) != null && d.nameSwith && k && (i.push(k), T = T + `${k} `), (m = t.value) != null && m.phoneSwith && I) {
|
|
288
|
+
const M = I.slice(-4);
|
|
289
|
+
i.push(M), T = T + `${M} `;
|
|
290
290
|
}
|
|
291
|
-
if ((
|
|
291
|
+
if ((y = t.value) != null && y.textSwith && ((b = t.value) != null && b.text)) {
|
|
292
292
|
i.push(t.value.text);
|
|
293
293
|
const M = t.value.text.replaceAll(`
|
|
294
294
|
`, "<br/>");
|
|
295
|
-
|
|
295
|
+
T = T + `${M}`;
|
|
296
296
|
}
|
|
297
297
|
i.length && (i = i.join(" ").split(`
|
|
298
|
-
`)), l.color = (
|
|
298
|
+
`)), l.color = (P = t.value) != null && P.textColor ? t.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (C = t.value) != null && C.textSize ? parseInt(t.value.textSize) : 16, c(T, l.fontSize);
|
|
299
299
|
}
|
|
300
|
-
return
|
|
300
|
+
return w;
|
|
301
301
|
};
|
|
302
302
|
u();
|
|
303
|
-
const
|
|
303
|
+
const A = Ge(), g = on();
|
|
304
304
|
return re(
|
|
305
|
-
() =>
|
|
306
|
-
(
|
|
307
|
-
var d, m,
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
|
|
305
|
+
() => A.currentRoute.value,
|
|
306
|
+
(p) => {
|
|
307
|
+
var d, m, y;
|
|
308
|
+
const w = !!((d = t.value) != null && d.pageSwith), _ = ((m = p.meta) == null ? void 0 : m.showWatermark) ?? !0;
|
|
309
|
+
let f = ((y = p.query) == null ? void 0 : y.showWatermark) ?? !0;
|
|
310
|
+
f === "false" && (f = !1), s(w && !!(_ && f));
|
|
311
311
|
},
|
|
312
312
|
{ immediate: !0 }
|
|
313
|
-
),
|
|
314
|
-
var
|
|
313
|
+
), te.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
|
|
314
|
+
var _, f;
|
|
315
315
|
u();
|
|
316
|
-
const
|
|
317
|
-
let
|
|
318
|
-
|
|
319
|
-
}), (
|
|
316
|
+
const p = !!((_ = t.value) != null && _.pageSwith);
|
|
317
|
+
let w = ((f = g.query) == null ? void 0 : f.showWatermark) ?? !0;
|
|
318
|
+
w === "false" && (w = !1), s(!!(p && w));
|
|
319
|
+
}), (p, w) => (H(), V(v(ls), {
|
|
320
320
|
class: "watermark",
|
|
321
321
|
font: l,
|
|
322
322
|
zIndex: 2147483647,
|
|
@@ -324,19 +324,19 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
324
324
|
width: o.value,
|
|
325
325
|
height: r.value
|
|
326
326
|
}, {
|
|
327
|
-
default:
|
|
328
|
-
$e(
|
|
327
|
+
default: L(() => [
|
|
328
|
+
$e(p.$slots, "default", {}, void 0, !0)
|
|
329
329
|
]),
|
|
330
330
|
_: 3
|
|
331
331
|
/* FORWARDED */
|
|
332
332
|
}, 8, ["font", "content", "width", "height"]));
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
334
|
+
}), Ee = (n, e) => {
|
|
335
335
|
const t = n.__vccOpts || n;
|
|
336
336
|
for (const [o, r] of e)
|
|
337
337
|
t[o] = r;
|
|
338
338
|
return t;
|
|
339
|
-
}, Os = /* @__PURE__ */
|
|
339
|
+
}, Os = /* @__PURE__ */ Ee(Bs, [["__scopeId", "data-v-6be90334"]]), Ds = {
|
|
340
340
|
"--menu-tip-diaolg-content": "#212121",
|
|
341
341
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
342
342
|
"--menu-tip-diaolg-info": "#999999"
|
|
@@ -355,8 +355,8 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
355
355
|
closeCallback: {}
|
|
356
356
|
},
|
|
357
357
|
setup(n) {
|
|
358
|
-
const e =
|
|
359
|
-
return (t, o) => (H(), V(
|
|
358
|
+
const e = S(!0);
|
|
359
|
+
return (t, o) => (H(), V(v(sn), {
|
|
360
360
|
modelValue: e.value,
|
|
361
361
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
|
|
362
362
|
type: "feedback",
|
|
@@ -367,14 +367,14 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
367
367
|
"custom-class": "menu-tip-diaolg",
|
|
368
368
|
onClosed: t.closeCallback
|
|
369
369
|
}, {
|
|
370
|
-
footer:
|
|
370
|
+
footer: L(() => [
|
|
371
371
|
$("div", xs, [
|
|
372
|
-
|
|
372
|
+
x(v(ke), {
|
|
373
373
|
btnType: "default",
|
|
374
374
|
size: "small",
|
|
375
375
|
onClick: t.closeCallback
|
|
376
376
|
}, {
|
|
377
|
-
default:
|
|
377
|
+
default: L(() => [
|
|
378
378
|
ue("我知道了")
|
|
379
379
|
]),
|
|
380
380
|
_: 1
|
|
@@ -382,7 +382,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
382
382
|
}, 8, ["onClick"])
|
|
383
383
|
])
|
|
384
384
|
]),
|
|
385
|
-
default:
|
|
385
|
+
default: L(() => [
|
|
386
386
|
$("div", {
|
|
387
387
|
class: "content",
|
|
388
388
|
innerHTML: t.content
|
|
@@ -400,12 +400,12 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
400
400
|
class: "desc-item"
|
|
401
401
|
}, [
|
|
402
402
|
ue(
|
|
403
|
-
|
|
403
|
+
Z(r),
|
|
404
404
|
1
|
|
405
405
|
/* TEXT */
|
|
406
406
|
)
|
|
407
407
|
])), [
|
|
408
|
-
[
|
|
408
|
+
[v(es)]
|
|
409
409
|
])),
|
|
410
410
|
128
|
|
411
411
|
/* KEYED_FRAGMENT */
|
|
@@ -413,13 +413,13 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
|
|
|
413
413
|
],
|
|
414
414
|
64
|
|
415
415
|
/* STABLE_FRAGMENT */
|
|
416
|
-
)) :
|
|
416
|
+
)) : N("v-if", !0)
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
419
419
|
/* STABLE */
|
|
420
420
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
421
421
|
}
|
|
422
|
-
}), Qs = /* @__PURE__ */
|
|
422
|
+
}), Qs = /* @__PURE__ */ Ee(Rs, [["__scopeId", "data-v-f9de08eb"]]), rt = ({ title: n = "", content: e = "", desc: t = [] }) => new Promise((o) => {
|
|
423
423
|
const r = document.createElement("div");
|
|
424
424
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
425
425
|
const a = he(Qs, { title: n, content: e, desc: t, closeCallback: () => {
|
|
@@ -496,28 +496,28 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
496
496
|
var g;
|
|
497
497
|
const s = c.code, u = (c == null ? void 0 : c.originalCode) ?? "";
|
|
498
498
|
l[s] || (l[s] = []);
|
|
499
|
-
let
|
|
500
|
-
c != null && c.children && ((g = c == null ? void 0 : c.children) != null && g.length) && (c.children.forEach((
|
|
501
|
-
var
|
|
502
|
-
!(
|
|
503
|
-
code:
|
|
504
|
-
originalCode:
|
|
505
|
-
name:
|
|
506
|
-
}) : ye([
|
|
507
|
-
|
|
508
|
-
code:
|
|
509
|
-
originalCode:
|
|
510
|
-
name:
|
|
499
|
+
let A = [];
|
|
500
|
+
c != null && c.children && ((g = c == null ? void 0 : c.children) != null && g.length) && (c.children.forEach((p) => {
|
|
501
|
+
var w;
|
|
502
|
+
!(p != null && p.children) || !((w = p.children) != null && w.length) ? A.push({
|
|
503
|
+
code: p.code,
|
|
504
|
+
originalCode: p.originalCode,
|
|
505
|
+
name: p.name
|
|
506
|
+
}) : ye([p]).forEach((f) => {
|
|
507
|
+
A.push({
|
|
508
|
+
code: f.code,
|
|
509
|
+
originalCode: f.originalCode,
|
|
510
|
+
name: f.name
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
|
-
}),
|
|
514
|
-
let
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
code:
|
|
518
|
-
name:
|
|
513
|
+
}), A.forEach((p) => {
|
|
514
|
+
let w = p.originalCode ? p.originalCode : p.code ? p.code : "";
|
|
515
|
+
w.includes(s + ".") && (w = w.replace(s + ".", "").replaceAll(".", "-")), w.includes(u + ".") && (w = w.replace(u + ".", "").replaceAll(".", "-"));
|
|
516
|
+
const _ = {
|
|
517
|
+
code: w,
|
|
518
|
+
name: p.name
|
|
519
519
|
};
|
|
520
|
-
l[s].push(
|
|
520
|
+
l[s].push(_), u && s !== u && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][u] || (l["origin-auth"][u] = []), l["origin-auth"][u].push(_));
|
|
521
521
|
}));
|
|
522
522
|
}), o[e] = l, sessionStorage.setItem(t, JSON.stringify(o)), o;
|
|
523
523
|
}, Vs = () => {
|
|
@@ -614,20 +614,20 @@ function mi(n, e) {
|
|
|
614
614
|
var t = this.__data__, o = kt(t, n);
|
|
615
615
|
return o < 0 ? (++this.size, t.push([n, e])) : t[o][1] = e, this;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Se(n) {
|
|
618
618
|
var e = -1, t = n == null ? 0 : n.length;
|
|
619
619
|
for (this.clear(); ++e < t; ) {
|
|
620
620
|
var o = n[e];
|
|
621
621
|
this.set(o[0], o[1]);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
624
|
+
Se.prototype.clear = di;
|
|
625
|
+
Se.prototype.delete = hi;
|
|
626
|
+
Se.prototype.get = gi;
|
|
627
|
+
Se.prototype.has = Ai;
|
|
628
|
+
Se.prototype.set = mi;
|
|
629
629
|
function vi() {
|
|
630
|
-
this.__data__ = new
|
|
630
|
+
this.__data__ = new Se(), this.size = 0;
|
|
631
631
|
}
|
|
632
632
|
function yi(n) {
|
|
633
633
|
var e = this.__data__, t = e.delete(n);
|
|
@@ -748,7 +748,7 @@ xe.prototype.set = oa;
|
|
|
748
748
|
function ra() {
|
|
749
749
|
this.size = 0, this.__data__ = {
|
|
750
750
|
hash: new xe(),
|
|
751
|
-
map: new (st ||
|
|
751
|
+
map: new (st || Se)(),
|
|
752
752
|
string: new xe()
|
|
753
753
|
};
|
|
754
754
|
}
|
|
@@ -789,7 +789,7 @@ Ze.prototype.set = la;
|
|
|
789
789
|
var ua = 200;
|
|
790
790
|
function da(n, e) {
|
|
791
791
|
var t = this.__data__;
|
|
792
|
-
if (t instanceof
|
|
792
|
+
if (t instanceof Se) {
|
|
793
793
|
var o = t.__data__;
|
|
794
794
|
if (!st || o.length < ua - 1)
|
|
795
795
|
return o.push([n, e]), this.size = ++t.size, this;
|
|
@@ -798,7 +798,7 @@ function da(n, e) {
|
|
|
798
798
|
return t.set(n, e), this.size = t.size, this;
|
|
799
799
|
}
|
|
800
800
|
function Ye(n) {
|
|
801
|
-
var e = this.__data__ = new
|
|
801
|
+
var e = this.__data__ = new Se(n);
|
|
802
802
|
this.size = e.size;
|
|
803
803
|
}
|
|
804
804
|
Ye.prototype.clear = vi;
|
|
@@ -1118,30 +1118,30 @@ function mt(n, e, t, o, r, i) {
|
|
|
1118
1118
|
if (a = Dc(n), !l)
|
|
1119
1119
|
return gc(n, a);
|
|
1120
1120
|
} else {
|
|
1121
|
-
var
|
|
1121
|
+
var A = we(n), g = A == ar || A == yl;
|
|
1122
1122
|
if (qo(n))
|
|
1123
1123
|
return hc(n, l);
|
|
1124
|
-
if (
|
|
1124
|
+
if (A == cr || A == ir || g && !r) {
|
|
1125
1125
|
if (a = c || g ? {} : sl(n), !l)
|
|
1126
1126
|
return c ? bc(n, pc(a, n)) : yc(n, ac(a, n));
|
|
1127
1127
|
} else {
|
|
1128
|
-
if (!J[
|
|
1128
|
+
if (!J[A])
|
|
1129
1129
|
return r ? n : {};
|
|
1130
|
-
a = ol(n,
|
|
1130
|
+
a = ol(n, A, l);
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
i || (i = new Ye());
|
|
1134
|
-
var
|
|
1135
|
-
if (
|
|
1136
|
-
return
|
|
1137
|
-
i.set(n, a), dl(n) ? n.forEach(function(
|
|
1138
|
-
a.add(mt(
|
|
1139
|
-
}) : cl(n) && n.forEach(function(
|
|
1140
|
-
a.set(d, mt(
|
|
1134
|
+
var p = i.get(n);
|
|
1135
|
+
if (p)
|
|
1136
|
+
return p;
|
|
1137
|
+
i.set(n, a), dl(n) ? n.forEach(function(f) {
|
|
1138
|
+
a.add(mt(f, e, t, f, n, i));
|
|
1139
|
+
}) : cl(n) && n.forEach(function(f, d) {
|
|
1140
|
+
a.set(d, mt(f, e, t, d, n, i));
|
|
1141
1141
|
});
|
|
1142
|
-
var
|
|
1143
|
-
return pa(
|
|
1144
|
-
|
|
1142
|
+
var w = s ? c ? Cc : wc : c ? hn : fn, _ = u ? void 0 : w(n);
|
|
1143
|
+
return pa(_ || n, function(f, d) {
|
|
1144
|
+
_ && (d = f, f = n[d]), Wo(a, d, mt(f, e, t, d, n, i));
|
|
1145
1145
|
}), a;
|
|
1146
1146
|
}
|
|
1147
1147
|
var Ql = 1, jl = 4;
|
|
@@ -1181,13 +1181,13 @@ const wt = (n, e = "") => {
|
|
|
1181
1181
|
{ key: "currentTab", value: {} },
|
|
1182
1182
|
{ key: `preTab:${n}`, value: {} },
|
|
1183
1183
|
{ key: `tabMap:${n}`, value: [] }
|
|
1184
|
-
]), o || (o = { fixed: !0, path:
|
|
1184
|
+
]), o || (o = { fixed: !0, path: Ie }), { currentApp: o };
|
|
1185
1185
|
}, Nl = (n, e) => {
|
|
1186
1186
|
const t = n.findIndex((i) => i.code === e), o = n.slice(0, t), r = n.slice(t + 1);
|
|
1187
1187
|
return { left: o, right: r };
|
|
1188
1188
|
}, Ul = (n, e, t) => {
|
|
1189
|
-
var
|
|
1190
|
-
const o = ye(e).filter((g) => g.routeUrl).filter((g) => !(g != null && g.disable) && !(g != null && g.expired)), i = (((
|
|
1189
|
+
var A;
|
|
1190
|
+
const o = ye(e).filter((g) => g.routeUrl).filter((g) => !(g != null && g.disable) && !(g != null && g.expired)), i = (((A = ce()) == null ? void 0 : A.tabMap) ?? {})[n] ?? [], { left: a, right: l } = Nl(i, t), c = i.filter((g) => o.find((p) => p.code === g.code));
|
|
1191
1191
|
if (!a.length && !l.length || !c.length)
|
|
1192
1192
|
return le([
|
|
1193
1193
|
{ key: "currentCode", value: "" },
|
|
@@ -1197,11 +1197,11 @@ const wt = (n, e = "") => {
|
|
|
1197
1197
|
]), Gt(n);
|
|
1198
1198
|
let s = null;
|
|
1199
1199
|
if (l.length) {
|
|
1200
|
-
const g = l.find((
|
|
1200
|
+
const g = l.find((p) => c.map((w) => w.code).includes(p.code));
|
|
1201
1201
|
g && (s = g);
|
|
1202
1202
|
}
|
|
1203
1203
|
if (!s && a.length) {
|
|
1204
|
-
const g = a.reverse().find((
|
|
1204
|
+
const g = a.reverse().find((p) => c.map((w) => w.code).includes(p.code));
|
|
1205
1205
|
g && (s = g);
|
|
1206
1206
|
}
|
|
1207
1207
|
return s ? (le([
|
|
@@ -1238,32 +1238,32 @@ const wt = (n, e = "") => {
|
|
|
1238
1238
|
a != null && a.children && a.children.length && (a.originalChildren = qe(a.children)), (a != null && a.expired || a != null && a.disable) && (a.children = []);
|
|
1239
1239
|
}), { menus: r, originalMenus: i };
|
|
1240
1240
|
}, Fl = async (n) => {
|
|
1241
|
-
var g,
|
|
1241
|
+
var g, p, w, _;
|
|
1242
1242
|
let { microApp: e = null, menuCode: t = "", menuPath: o = "", route: r = {} } = n;
|
|
1243
1243
|
const i = ((g = r.meta) == null ? void 0 : g.showLayout) ?? !0;
|
|
1244
|
-
let a = ((
|
|
1244
|
+
let a = ((p = r.query) == null ? void 0 : p.showLayout) ?? !0;
|
|
1245
1245
|
a === "false" && (a = !1);
|
|
1246
1246
|
let l = (e == null ? void 0 : e.code) ?? "";
|
|
1247
1247
|
if (!l) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
1248
1248
|
let c = [], s = [];
|
|
1249
1249
|
const u = F().subAppList ?? [];
|
|
1250
|
-
if (u.length && (c = ((
|
|
1251
|
-
const { menus:
|
|
1252
|
-
c =
|
|
1250
|
+
if (u.length && (c = ((w = u.find((f) => f.code === e.code)) == null ? void 0 : w.menus) ?? []), !c.length) {
|
|
1251
|
+
const { menus: f, originalMenus: d } = await mn(l);
|
|
1252
|
+
c = f ?? [], s = d ?? [];
|
|
1253
1253
|
}
|
|
1254
1254
|
if (!c.length && (!i || !a))
|
|
1255
1255
|
return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
1256
1256
|
if (e.routeUrl === "iot/iot") {
|
|
1257
|
-
const { instanceInfo:
|
|
1258
|
-
if (
|
|
1257
|
+
const { instanceInfo: f } = await ui();
|
|
1258
|
+
if (f) {
|
|
1259
1259
|
let d = !1;
|
|
1260
|
-
c.forEach((
|
|
1261
|
-
|
|
1260
|
+
c.forEach((y) => {
|
|
1261
|
+
y.routeUrl === "/deviceInstance" && (y.fixed = !0, y.divise = !0, y.menuCode = y.code, y.tagName = y.tabName = "实例", y.name = f.instanceName, y.leftIcon = "change2", y.rightIcon = "change2");
|
|
1262
1262
|
});
|
|
1263
|
-
const m = Fr(
|
|
1264
|
-
if (d = Jt().endOf("day") > Jt(m).endOf("day"), !t &&
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1263
|
+
const m = Fr(f.endTime) || f.endTime == 0 || f.endTime === 253370736e6 || f.endTime === "253370736000000" ? "-" : Number(f.endTime);
|
|
1264
|
+
if (d = Jt().endOf("day") > Jt(m).endOf("day"), !t && f.id && !d) {
|
|
1265
|
+
const b = ye(c).find((P) => P.routeUrl === "/statisticalReport");
|
|
1266
|
+
b && (t = b.code);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
@@ -1271,7 +1271,7 @@ const wt = (n, e = "") => {
|
|
|
1271
1271
|
const d = (ce().tabMap ?? {})[e.code] ?? [];
|
|
1272
1272
|
if (d.length) {
|
|
1273
1273
|
const m = d.filter(
|
|
1274
|
-
(
|
|
1274
|
+
(y) => t && t === y.code || o && o === `/${y.applicationPath}${y.path}`.replace(/\/\//g, "/") || ye(c).map((b) => b.code).includes(y.code)
|
|
1275
1275
|
);
|
|
1276
1276
|
le([
|
|
1277
1277
|
{
|
|
@@ -1282,12 +1282,12 @@ const wt = (n, e = "") => {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
if (!t && o) {
|
|
1285
|
-
const
|
|
1285
|
+
const f = ye(c).find((d) => {
|
|
1286
1286
|
const m = `/${d.applicationPath}${d.routeUrl}`.replace(/\/\//g, "/");
|
|
1287
1287
|
return d.applicationPath && d.routeUrl && (o === m || o.startsWith(`/${m}/`));
|
|
1288
1288
|
});
|
|
1289
|
-
if (
|
|
1290
|
-
t =
|
|
1289
|
+
if (f)
|
|
1290
|
+
t = f.code;
|
|
1291
1291
|
else
|
|
1292
1292
|
return {
|
|
1293
1293
|
menuConfig: c,
|
|
@@ -1296,60 +1296,60 @@ const wt = (n, e = "") => {
|
|
|
1296
1296
|
query: { ...r.query, app: l }
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
let
|
|
1300
|
-
if (!
|
|
1299
|
+
let A = wt(c, t);
|
|
1300
|
+
if (!A) {
|
|
1301
1301
|
if (!i || !a)
|
|
1302
1302
|
return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
|
|
1303
|
-
const
|
|
1304
|
-
|
|
1303
|
+
const f = Ul(e.code, c, t);
|
|
1304
|
+
f != null && f.currentApp && (e = f.currentApp), f != null && f.currentMenu && (A = f.currentMenu), f != null && f.currentTab && (r.query = ((_ = f.currentTab) == null ? void 0 : _.query) ?? {});
|
|
1305
1305
|
}
|
|
1306
|
-
if ((e == null ? void 0 : e.routeUrl) ===
|
|
1306
|
+
if ((e == null ? void 0 : e.routeUrl) === Ie)
|
|
1307
1307
|
return { menuConfig: [], currentApp: e, currentMenu: null, query: null };
|
|
1308
|
-
if (
|
|
1309
|
-
const
|
|
1308
|
+
if (A) {
|
|
1309
|
+
const f = `/${A.applicationPath}${A.routeUrl}`;
|
|
1310
1310
|
let d = "";
|
|
1311
|
-
o && o.startsWith(
|
|
1312
|
-
const m = { ...r.query, app: l, menu:
|
|
1311
|
+
o && o.startsWith(f) && o !== f && (d = o);
|
|
1312
|
+
const m = { ...r.query, app: l, menu: A.code };
|
|
1313
1313
|
if (i && a) {
|
|
1314
|
-
const
|
|
1314
|
+
const y = { ...e, currentMenuCode: A.code, menus: c, originalMenus: s };
|
|
1315
1315
|
Ae([
|
|
1316
|
-
{ key: "currentSubApp", value:
|
|
1316
|
+
{ key: "currentSubApp", value: y },
|
|
1317
1317
|
{ key: "currentSubAppCode", value: l },
|
|
1318
|
-
{ key: "subAppList", value:
|
|
1318
|
+
{ key: "subAppList", value: y }
|
|
1319
1319
|
]);
|
|
1320
|
-
const
|
|
1320
|
+
const b = {
|
|
1321
1321
|
currentApplication: e.routeUrl,
|
|
1322
|
-
applicationPath:
|
|
1322
|
+
applicationPath: A.applicationPath,
|
|
1323
1323
|
applicationCode: l,
|
|
1324
|
-
menuId:
|
|
1325
|
-
code:
|
|
1326
|
-
name: (
|
|
1327
|
-
path:
|
|
1324
|
+
menuId: A.id,
|
|
1325
|
+
code: A.code,
|
|
1326
|
+
name: (A == null ? void 0 : A.tabName) ?? A.name,
|
|
1327
|
+
path: A.routeUrl,
|
|
1328
1328
|
query: m
|
|
1329
1329
|
};
|
|
1330
1330
|
le([
|
|
1331
1331
|
{
|
|
1332
1332
|
key: "currentCode",
|
|
1333
|
-
value:
|
|
1333
|
+
value: A.code
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
1336
|
key: "currentTab",
|
|
1337
|
-
value:
|
|
1337
|
+
value: b
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
1340
|
key: `tabMap:${l}`,
|
|
1341
|
-
value:
|
|
1341
|
+
value: b
|
|
1342
1342
|
},
|
|
1343
1343
|
{
|
|
1344
1344
|
key: `preTab:${l}`,
|
|
1345
|
-
value:
|
|
1345
|
+
value: b
|
|
1346
1346
|
}
|
|
1347
1347
|
]);
|
|
1348
1348
|
}
|
|
1349
|
-
return { menuConfig: c, currentApp: e, currentMenu:
|
|
1349
|
+
return { menuConfig: c, currentApp: e, currentMenu: A, query: m, microPath: d };
|
|
1350
1350
|
}
|
|
1351
1351
|
return { menuConfig: c, currentApp: e, currentMenu: null, query: { ...r.query, app: l } };
|
|
1352
|
-
}, Jl = Be.get("/appcategory"), io =
|
|
1352
|
+
}, Jl = Be.get("/appcategory"), io = S([]), ao = S(!1), lr = async () => {
|
|
1353
1353
|
ao.value = !0;
|
|
1354
1354
|
const [n, e] = await Jl().run({ userType: 1 });
|
|
1355
1355
|
return ao.value = !1, n ? (io.value = [], { navConfig: [] }) : (io.value = e, Ae([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
@@ -1380,16 +1380,16 @@ const wt = (n, e = "") => {
|
|
|
1380
1380
|
}, ou = async () => {
|
|
1381
1381
|
const [n, e] = await Zl().run();
|
|
1382
1382
|
return n ? { platformConfig: null } : { platformConfig: e };
|
|
1383
|
-
}, ur =
|
|
1383
|
+
}, ur = S(null), ru = async () => {
|
|
1384
1384
|
const [n, e] = await eu().run();
|
|
1385
1385
|
return n ? { homeConfig: null } : (e && (Fs(e), ur.value = e), { homeConfig: e });
|
|
1386
|
-
}, Ct =
|
|
1386
|
+
}, Ct = S(1), dr = async () => {
|
|
1387
1387
|
const [n, e] = await tu().run();
|
|
1388
1388
|
return n ? { personalMenuConfig: null } : (Ct.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
1389
1389
|
}, su = Be.post("/menu/personal-setting"), iu = { class: "preson-style-drawer" }, au = { class: "preson-style-container" }, cu = { class: "title" }, lu = { class: "content" }, uu = { class: "item-content" }, du = ["src"], pu = { class: "item-content" }, fu = ["src"], hu = { class: "preson-style-footer" }, gu = /* @__PURE__ */ pe({
|
|
1390
1390
|
__name: "index",
|
|
1391
1391
|
setup(n, { expose: e }) {
|
|
1392
|
-
const t =
|
|
1392
|
+
const t = S(!1), o = S(!1), r = S(!1), i = S(!1), a = () => {
|
|
1393
1393
|
o.value = Ct.value === 1, r.value = Ct.value === 2, t.value = !0;
|
|
1394
1394
|
}, l = (s) => {
|
|
1395
1395
|
s === 1 ? r.value = !1 : o.value = !1;
|
|
@@ -1401,33 +1401,33 @@ const wt = (n, e = "") => {
|
|
|
1401
1401
|
/** 打开弹窗 */
|
|
1402
1402
|
openDialog: a
|
|
1403
1403
|
}), (s, u) => (H(), de("div", iu, [
|
|
1404
|
-
|
|
1405
|
-
title:
|
|
1404
|
+
x(v(us), {
|
|
1405
|
+
title: v(Q)("主题设置").value,
|
|
1406
1406
|
modelValue: t.value,
|
|
1407
|
-
"onUpdate:modelValue": u[5] || (u[5] = (
|
|
1407
|
+
"onUpdate:modelValue": u[5] || (u[5] = (A) => t.value = A),
|
|
1408
1408
|
"body-style": { padding: 0 },
|
|
1409
1409
|
direction: "rtl"
|
|
1410
1410
|
}, {
|
|
1411
|
-
footer:
|
|
1411
|
+
footer: L(() => [
|
|
1412
1412
|
$("div", hu, [
|
|
1413
|
-
|
|
1413
|
+
x(v(ke), {
|
|
1414
1414
|
size: "middle",
|
|
1415
|
-
onClick: u[4] || (u[4] = (
|
|
1415
|
+
onClick: u[4] || (u[4] = (A) => t.value = !1),
|
|
1416
1416
|
style: { "margin-right": "12px" }
|
|
1417
1417
|
}, {
|
|
1418
|
-
default:
|
|
1418
|
+
default: L(() => [
|
|
1419
1419
|
ue("取消")
|
|
1420
1420
|
]),
|
|
1421
1421
|
_: 1
|
|
1422
1422
|
/* STABLE */
|
|
1423
1423
|
}),
|
|
1424
|
-
|
|
1424
|
+
x(v(ke), {
|
|
1425
1425
|
btnType: "primary",
|
|
1426
1426
|
size: "middle",
|
|
1427
1427
|
loading: i.value,
|
|
1428
1428
|
onClick: c
|
|
1429
1429
|
}, {
|
|
1430
|
-
default:
|
|
1430
|
+
default: L(() => [
|
|
1431
1431
|
ue("确定")
|
|
1432
1432
|
]),
|
|
1433
1433
|
_: 1
|
|
@@ -1435,31 +1435,31 @@ const wt = (n, e = "") => {
|
|
|
1435
1435
|
}, 8, ["loading"])
|
|
1436
1436
|
])
|
|
1437
1437
|
]),
|
|
1438
|
-
default:
|
|
1438
|
+
default: L(() => [
|
|
1439
1439
|
$("div", au, [
|
|
1440
1440
|
$(
|
|
1441
1441
|
"p",
|
|
1442
1442
|
cu,
|
|
1443
|
-
|
|
1443
|
+
Z(v(Q)("侧边菜单栏").value),
|
|
1444
1444
|
1
|
|
1445
1445
|
/* TEXT */
|
|
1446
1446
|
),
|
|
1447
1447
|
$("div", lu, [
|
|
1448
1448
|
$("div", uu, [
|
|
1449
1449
|
$("img", {
|
|
1450
|
-
src:
|
|
1450
|
+
src: v(js),
|
|
1451
1451
|
alt: "",
|
|
1452
1452
|
width: "180",
|
|
1453
1453
|
height: "120"
|
|
1454
1454
|
}, null, 8, du),
|
|
1455
|
-
|
|
1455
|
+
x(v(kn), {
|
|
1456
1456
|
modelValue: o.value,
|
|
1457
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1458
|
-
onChange: u[1] || (u[1] = (
|
|
1457
|
+
"onUpdate:modelValue": u[0] || (u[0] = (A) => o.value = A),
|
|
1458
|
+
onChange: u[1] || (u[1] = (A) => l(1))
|
|
1459
1459
|
}, {
|
|
1460
|
-
default:
|
|
1460
|
+
default: L(() => [
|
|
1461
1461
|
ue(
|
|
1462
|
-
|
|
1462
|
+
Z(v(Q)("弹出式菜单栏").value),
|
|
1463
1463
|
1
|
|
1464
1464
|
/* TEXT */
|
|
1465
1465
|
)
|
|
@@ -1470,19 +1470,19 @@ const wt = (n, e = "") => {
|
|
|
1470
1470
|
]),
|
|
1471
1471
|
$("div", pu, [
|
|
1472
1472
|
$("img", {
|
|
1473
|
-
src:
|
|
1473
|
+
src: v(Hs),
|
|
1474
1474
|
alt: "",
|
|
1475
1475
|
width: "180",
|
|
1476
1476
|
height: "120"
|
|
1477
1477
|
}, null, 8, fu),
|
|
1478
|
-
|
|
1478
|
+
x(v(kn), {
|
|
1479
1479
|
modelValue: r.value,
|
|
1480
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1481
|
-
onChange: u[3] || (u[3] = (
|
|
1480
|
+
"onUpdate:modelValue": u[2] || (u[2] = (A) => r.value = A),
|
|
1481
|
+
onChange: u[3] || (u[3] = (A) => l(2))
|
|
1482
1482
|
}, {
|
|
1483
|
-
default:
|
|
1483
|
+
default: L(() => [
|
|
1484
1484
|
ue(
|
|
1485
|
-
|
|
1485
|
+
Z(v(Q)("内嵌式菜单栏").value),
|
|
1486
1486
|
1
|
|
1487
1487
|
/* TEXT */
|
|
1488
1488
|
)
|
|
@@ -1499,7 +1499,7 @@ const wt = (n, e = "") => {
|
|
|
1499
1499
|
}, 8, ["title", "modelValue"])
|
|
1500
1500
|
]));
|
|
1501
1501
|
}
|
|
1502
|
-
}), Au = /* @__PURE__ */
|
|
1502
|
+
}), Au = /* @__PURE__ */ Ee(gu, [["__scopeId", "data-v-d271fb9a"]]), mu = () => S(null), vu = en.get("/login/history"), yu = () => {
|
|
1503
1503
|
const n = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((c) => new RegExp(`^${c}$`, "i").test(location.pathname)), e = (a) => {
|
|
1504
1504
|
const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, s = c ? l + Xt(c) : "";
|
|
1505
1505
|
Js(s), Jr(s);
|
|
@@ -1521,7 +1521,7 @@ const wt = (n, e = "") => {
|
|
|
1521
1521
|
}, o = async () => {
|
|
1522
1522
|
const [{ loginConfig: a }, { platformConfig: l }] = await Promise.all([nu(), ou()]);
|
|
1523
1523
|
e(l), D.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !n() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
|
|
1524
|
-
}, r =
|
|
1524
|
+
}, r = S(!1), i = () => new Promise((a) => {
|
|
1525
1525
|
const l = () => {
|
|
1526
1526
|
if (r.value) return a();
|
|
1527
1527
|
setTimeout(() => l(), 50);
|
|
@@ -1538,11 +1538,11 @@ const wt = (n, e = "") => {
|
|
|
1538
1538
|
initNextTick: i
|
|
1539
1539
|
};
|
|
1540
1540
|
}, _u = (n) => {
|
|
1541
|
-
const e = Ge(), t = on(), { getMenu: o } = Gr(), { getHistoryList: r, getSearchList: i } = xu(), a =
|
|
1541
|
+
const e = Ge(), t = on(), { getMenu: o } = Gr(), { getHistoryList: r, getSearchList: i } = xu(), a = S(!0), l = S([]), c = S([]), s = S(!1), u = S(!1);
|
|
1542
1542
|
re(
|
|
1543
1543
|
() => t.path,
|
|
1544
|
-
(
|
|
1545
|
-
s.value =
|
|
1544
|
+
(w) => {
|
|
1545
|
+
s.value = w === nt;
|
|
1546
1546
|
},
|
|
1547
1547
|
{
|
|
1548
1548
|
immediate: !0
|
|
@@ -1561,49 +1561,49 @@ const wt = (n, e = "") => {
|
|
|
1561
1561
|
immediate: !0
|
|
1562
1562
|
}
|
|
1563
1563
|
);
|
|
1564
|
-
const
|
|
1565
|
-
let
|
|
1566
|
-
return await zr([ai, Kl, ru, lr, dr]).then((
|
|
1567
|
-
}, g =
|
|
1564
|
+
const A = async () => {
|
|
1565
|
+
let w = {};
|
|
1566
|
+
return await zr([ai, Kl, ru, lr, dr]).then((f) => Object.assign(w, ...f)), a.value = !1, w;
|
|
1567
|
+
}, g = S(!1);
|
|
1568
1568
|
return D.nav.addEventListener("onBeforeMount", async () => {
|
|
1569
|
-
var
|
|
1569
|
+
var I;
|
|
1570
1570
|
await n();
|
|
1571
|
-
const
|
|
1572
|
-
if (!
|
|
1573
|
-
const { homeConfig:
|
|
1574
|
-
u.value = ((
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
}), l.value =
|
|
1571
|
+
const w = await A();
|
|
1572
|
+
if (!w) return;
|
|
1573
|
+
const { homeConfig: _, projectConfig: f, currentProject: d, tenantList: m, personalMenuConfig: y } = w;
|
|
1574
|
+
u.value = ((I = Zt()) == null ? void 0 : I.flag) !== 4 && m && m.length > 1;
|
|
1575
|
+
const b = [...Oo];
|
|
1576
|
+
b.forEach((T) => {
|
|
1577
|
+
_ != null && _.appAlias && T.value === Ie && (T.label = _.appAlias), _ != null && _.homeAlias && T.value === nt && (T.label = _.homeAlias);
|
|
1578
|
+
}), l.value = b, _ != null && _.enable || (l.value = l.value.filter((T) => T.path === Ie), t.path === nt && await e.replace(Ie)), D.nav.setItems(l.value), f && f.length && (D.nav.setProjectConfig({
|
|
1579
1579
|
treeProps: {
|
|
1580
|
-
disabled: (
|
|
1580
|
+
disabled: (T) => T.type !== 7
|
|
1581
1581
|
},
|
|
1582
1582
|
// 过滤的节点
|
|
1583
|
-
filterNodeMethod: (
|
|
1583
|
+
filterNodeMethod: (T) => T.type === 7,
|
|
1584
1584
|
// 树打平之后保留的数据
|
|
1585
|
-
filterFlatCondition: (
|
|
1586
|
-
}), D.nav.setProjects(
|
|
1587
|
-
const
|
|
1588
|
-
c.value = [...hs], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((M) => M.value !== "1")) : c.value = c.value.filter((
|
|
1585
|
+
filterFlatCondition: (T) => T.type === 7
|
|
1586
|
+
}), D.nav.setProjects(f || []), d && D.nav.setActiveProject(d));
|
|
1587
|
+
const P = St() ?? {}, C = P != null && P.headPicture ? Xt(P.headPicture) : void 0;
|
|
1588
|
+
c.value = [...hs], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((M) => M.value !== "1")) : c.value = c.value.filter((T) => T.value !== "1"), D.nav.setUserInfo({ headPicture: C, commandList: c.value }), D.nav.setSearchConfig({
|
|
1589
1589
|
getHistoryList: r,
|
|
1590
1590
|
getSearchList: i
|
|
1591
1591
|
});
|
|
1592
|
-
const
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
}), Ae([{ key: "subAppList", value:
|
|
1596
|
-
}), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((
|
|
1597
|
-
const
|
|
1592
|
+
const k = F().subAppList ?? [];
|
|
1593
|
+
k.length && (k.forEach((T) => {
|
|
1594
|
+
T.menus = [], T.originalMenus = [];
|
|
1595
|
+
}), Ae([{ key: "subAppList", value: k }])), g.value = !0;
|
|
1596
|
+
}), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((w) => {
|
|
1597
|
+
const _ = async () => {
|
|
1598
1598
|
var m;
|
|
1599
|
-
let
|
|
1600
|
-
if (d === "false" && (d = !1), !
|
|
1601
|
-
|
|
1599
|
+
let f = ((m = t.meta) == null ? void 0 : m.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
|
|
1600
|
+
if (d === "false" && (d = !1), !f || !d || g.value) {
|
|
1601
|
+
w();
|
|
1602
1602
|
return;
|
|
1603
1603
|
}
|
|
1604
|
-
setTimeout(() =>
|
|
1604
|
+
setTimeout(() => _(), 50);
|
|
1605
1605
|
};
|
|
1606
|
-
|
|
1606
|
+
_();
|
|
1607
1607
|
}) };
|
|
1608
1608
|
}, bu = rn.get("/data/menu-expiration"), vn = async (n) => {
|
|
1609
1609
|
const [e, t] = await bu().run();
|
|
@@ -1617,7 +1617,7 @@ const wt = (n, e = "") => {
|
|
|
1617
1617
|
}, wu = () => {
|
|
1618
1618
|
const { entryMenu: n } = Ot();
|
|
1619
1619
|
D.menu.addEventListener("onItemClick", async (e) => {
|
|
1620
|
-
|
|
1620
|
+
ee.innerSet = !0;
|
|
1621
1621
|
const t = ye(_t(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
1622
1622
|
if (!(t && !t.routeUrl)) {
|
|
1623
1623
|
if (!t) {
|
|
@@ -1647,106 +1647,106 @@ const wt = (n, e = "") => {
|
|
|
1647
1647
|
const { enter: o } = lt();
|
|
1648
1648
|
return D.nav.addEventListener("fullScreenHandle", o), {};
|
|
1649
1649
|
}, Iu = () => {
|
|
1650
|
-
const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r =
|
|
1650
|
+
const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r = S(e), i = S(t), a = S(o);
|
|
1651
1651
|
let l = "", c = {};
|
|
1652
1652
|
re(
|
|
1653
1653
|
() => n.currentRoute.value,
|
|
1654
1654
|
async (d) => {
|
|
1655
|
-
var
|
|
1656
|
-
const m = ((
|
|
1657
|
-
let
|
|
1658
|
-
if (
|
|
1655
|
+
var k, I, T, M, R, U, W;
|
|
1656
|
+
const m = ((k = d.meta) == null ? void 0 : k.showLayout) ?? !0;
|
|
1657
|
+
let y = ((I = d.query) == null ? void 0 : I.showLayout) ?? !0;
|
|
1658
|
+
if (y === "false" && (y = !1), !m || !y || d.path === l && Nt(d.query, c)) return;
|
|
1659
1659
|
l = qe(d.path), c = qe(d.query);
|
|
1660
|
-
const
|
|
1661
|
-
if (!
|
|
1662
|
-
const
|
|
1663
|
-
if (!
|
|
1664
|
-
const
|
|
1665
|
-
|
|
1660
|
+
const b = F().currentSubAppCode ?? "";
|
|
1661
|
+
if (!b) return;
|
|
1662
|
+
const P = ((T = d.query) == null ? void 0 : T.menu) ?? ((M = ce()) == null ? void 0 : M.currentCode) ?? "";
|
|
1663
|
+
if (!P) return;
|
|
1664
|
+
const C = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
1665
|
+
C && JSON.stringify(C) !== "{}" && (r.value = (R = C[b][P]) != null && R.fontColor ? C[b][P].fontColor : e, i.value = (U = C[b][P]) != null && U.backgroundColor ? C[b][P].backgroundColor : t, a.value = (W = C[b][P]) != null && W.backgroundColor ? C[b][P].backgroundColor : o);
|
|
1666
1666
|
}
|
|
1667
1667
|
);
|
|
1668
|
-
const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute:
|
|
1669
|
-
var
|
|
1670
|
-
const m = ye(_t(d.applicationCode)).find((
|
|
1671
|
-
u({ currentMenu: m, route: { path:
|
|
1672
|
-
},
|
|
1668
|
+
const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: A, unloadRoute: g } = pr(), p = (d) => {
|
|
1669
|
+
var P;
|
|
1670
|
+
const m = ye(_t(d.applicationCode)).find((C) => C.code === d.code), b = (((P = ce().tabMap) == null ? void 0 : P[d.applicationCode]) ?? []).find((C) => C.code === d.code);
|
|
1671
|
+
u({ currentMenu: m, route: { path: b.path, query: b.query ?? {} } });
|
|
1672
|
+
}, w = (d) => {
|
|
1673
1673
|
if (!d || !d.length) return;
|
|
1674
|
-
const m = d.map((
|
|
1674
|
+
const m = d.map((y) => y.path);
|
|
1675
1675
|
g(m);
|
|
1676
|
-
},
|
|
1676
|
+
}, _ = (d) => {
|
|
1677
1677
|
const m = F().currentSubAppCode ?? "";
|
|
1678
|
-
|
|
1679
|
-
const
|
|
1680
|
-
if (
|
|
1681
|
-
const
|
|
1678
|
+
ee.innerSet = !0;
|
|
1679
|
+
const y = ce(), b = y.tabMap[m], P = b.findIndex((R) => R.code === d.data.code);
|
|
1680
|
+
if (P === -1) return;
|
|
1681
|
+
const C = () => {
|
|
1682
1682
|
var W;
|
|
1683
|
-
let
|
|
1684
|
-
|
|
1683
|
+
let U = (((W = F().appcategorys) == null ? void 0 : W.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
|
|
1684
|
+
U = { ...U, value: U.code, label: U.name }, s(U), D.nav.removeItem(m);
|
|
1685
1685
|
};
|
|
1686
1686
|
({
|
|
1687
|
-
me: async (
|
|
1688
|
-
if (
|
|
1689
|
-
|
|
1687
|
+
me: async (R) => {
|
|
1688
|
+
if (b.length === 1) {
|
|
1689
|
+
C();
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
const
|
|
1692
|
+
const U = y.currentCode;
|
|
1693
1693
|
let W = null;
|
|
1694
|
-
|
|
1694
|
+
U === R.value && (P + 1 === b.length ? b[P - 1] && (W = b[P - 1]) : b[P + 1] && (W = b[P + 1])), b.splice(P, 1), w([R]), le([{ key: `tabMap:${m}`, value: b }]), W ? p(W) : le([{ key: `preTab:${m}`, value: {} }]);
|
|
1695
1695
|
},
|
|
1696
|
-
all:
|
|
1697
|
-
other: async (
|
|
1698
|
-
const
|
|
1696
|
+
all: C,
|
|
1697
|
+
other: async (R) => {
|
|
1698
|
+
const U = b[P];
|
|
1699
1699
|
n.push({
|
|
1700
|
-
path: `/${
|
|
1701
|
-
query:
|
|
1702
|
-
}), D.menu.setActiveItem(
|
|
1703
|
-
const W =
|
|
1704
|
-
W.forEach((ie) => D.tab.removeItem(ie.code)),
|
|
1700
|
+
path: `/${U.applicationPath}${U.path}`.replace(/\/\//g, "/"),
|
|
1701
|
+
query: U.query
|
|
1702
|
+
}), D.menu.setActiveItem(U.menuId), D.tab.setActiveItem(U.code);
|
|
1703
|
+
const W = b.filter((ie) => ie.code !== R.value);
|
|
1704
|
+
W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), le([{ key: `tabMap:${m}`, value: [U] }]), p(U);
|
|
1705
1705
|
},
|
|
1706
|
-
right: async (
|
|
1707
|
-
const
|
|
1708
|
-
if (
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1706
|
+
right: async (R) => {
|
|
1707
|
+
const U = y.currentCode;
|
|
1708
|
+
if (U !== R.value && b.findIndex((Te) => Te.code === U) > P) {
|
|
1709
|
+
const Te = b[P];
|
|
1710
|
+
p(Te);
|
|
1711
1711
|
}
|
|
1712
|
-
const W =
|
|
1713
|
-
W.forEach((ie) => D.tab.removeItem(ie.code)),
|
|
1712
|
+
const W = b.slice(P + 1);
|
|
1713
|
+
W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), b.splice(P + 1), le([{ key: `tabMap:${m}`, value: b }]);
|
|
1714
1714
|
}
|
|
1715
1715
|
})[d.type](d.data);
|
|
1716
1716
|
};
|
|
1717
1717
|
D.tab.addEventListener("onItemClick", async (d) => {
|
|
1718
|
-
ce().currentCode !== d.currentCode && (
|
|
1718
|
+
ce().currentCode !== d.currentCode && (ee.innerSet = !0, p(d));
|
|
1719
1719
|
}), D.tab.addEventListener("onItemRemove", (d) => {
|
|
1720
|
-
const m = ce(),
|
|
1721
|
-
m.tabMap[
|
|
1720
|
+
const m = ce(), y = F().currentSubAppCode ?? "";
|
|
1721
|
+
m.tabMap[y].findIndex((C) => C.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), _({ type: "me", data: d }));
|
|
1722
1722
|
}), D.tab.addEventListener("onMenuClick", (d) => {
|
|
1723
1723
|
let m = [];
|
|
1724
|
-
const
|
|
1724
|
+
const y = ce().tabMap[d.applicationCode] ?? [];
|
|
1725
1725
|
if (d.type.key === "right") {
|
|
1726
|
-
const
|
|
1727
|
-
m =
|
|
1726
|
+
const b = y.findIndex((P) => P.code === d.data.value);
|
|
1727
|
+
m = y.slice(b + 1);
|
|
1728
1728
|
}
|
|
1729
|
-
d.type.key === "other" && (m =
|
|
1729
|
+
d.type.key === "other" && (m = y.filter((b) => b.code !== d.data.value)), d.type.key === "all" && (m = [...y]), At(
|
|
1730
1730
|
d.applicationCode,
|
|
1731
|
-
m.map((
|
|
1732
|
-
),
|
|
1731
|
+
m.map((b) => b.code)
|
|
1732
|
+
), _({ type: d.type.key, data: d.data });
|
|
1733
1733
|
}), D.tab.addEventListener("onPageRefresh", async (d) => {
|
|
1734
1734
|
if (!d || d.path === Je) return;
|
|
1735
1735
|
At(d.applicationCode, [d.code]);
|
|
1736
|
-
const m = ye(_t(d.applicationCode)).find((
|
|
1736
|
+
const m = ye(_t(d.applicationCode)).find((P) => P.code === d.code);
|
|
1737
1737
|
if (!m) return;
|
|
1738
1738
|
if (m.routeUrl !== d.path) {
|
|
1739
|
-
|
|
1739
|
+
A([d.path]), g([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
|
|
1740
1740
|
return;
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1743
|
-
Nt(
|
|
1742
|
+
const y = { app: m.applicationCode, menu: m.code }, b = { ...d.query };
|
|
1743
|
+
Nt(y, b) || await u({ currentMenu: m }), A([d.path]);
|
|
1744
1744
|
});
|
|
1745
|
-
const { enter:
|
|
1746
|
-
return D.tab.addEventListener("onToggleFullScreen",
|
|
1745
|
+
const { enter: f } = lt();
|
|
1746
|
+
return D.tab.addEventListener("onToggleFullScreen", f), { fontColor: r, backgroudColor: i, borderColor: a };
|
|
1747
1747
|
}, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, Eu = () => {
|
|
1748
1748
|
const n = () => {
|
|
1749
|
-
|
|
1749
|
+
D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
|
|
1750
1750
|
};
|
|
1751
1751
|
window.addEventListener("beforeunload", function(e) {
|
|
1752
1752
|
if (!(lo || !co || uo) && window.__isAutoCloseApp) {
|
|
@@ -1762,7 +1762,7 @@ const wt = (n, e = "") => {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
const t = F();
|
|
1764
1764
|
t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
|
|
1765
|
-
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")),
|
|
1765
|
+
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), te.addEventListenerFromMicroApp("system-reload", () => {
|
|
1766
1766
|
n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
1767
1767
|
});
|
|
1768
1768
|
}, et = () => {
|
|
@@ -1773,49 +1773,49 @@ const wt = (n, e = "") => {
|
|
|
1773
1773
|
D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
|
|
1774
1774
|
}, c = async (g) => {
|
|
1775
1775
|
if (g.routeUrl && !a.includes(g.routeUrl)) return !0;
|
|
1776
|
-
const
|
|
1777
|
-
let
|
|
1778
|
-
if (
|
|
1779
|
-
const { menus:
|
|
1780
|
-
if (
|
|
1781
|
-
|
|
1776
|
+
const p = g.code ?? "", _ = (F().subAppList ?? []).find((b) => b.code === p);
|
|
1777
|
+
let f = [], d = [], m = !1;
|
|
1778
|
+
if (_ && (f = _.menus ?? []), !f.length) {
|
|
1779
|
+
const { menus: b, originalMenus: P, err: C } = await mn(p);
|
|
1780
|
+
if (C) return !1;
|
|
1781
|
+
f = b ?? [], d = P ?? [];
|
|
1782
1782
|
}
|
|
1783
|
-
if (
|
|
1784
|
-
const
|
|
1785
|
-
return Ae([{ key: "subAppList", value:
|
|
1783
|
+
if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
|
|
1784
|
+
const y = { ...g, menus: f, originalMenus: d };
|
|
1785
|
+
return Ae([{ key: "subAppList", value: y }]), !0;
|
|
1786
1786
|
}, s = async (g) => {
|
|
1787
|
-
var
|
|
1788
|
-
const { microApp:
|
|
1789
|
-
let d =
|
|
1790
|
-
if (l(), !
|
|
1791
|
-
if (!(a && a.find((G) =>
|
|
1792
|
-
n.push({ path:
|
|
1787
|
+
var U, W, ie, Te, ft;
|
|
1788
|
+
const { microApp: p = null, menuCode: w = "", menuPath: _ = "", route: f = {} } = g;
|
|
1789
|
+
let d = f;
|
|
1790
|
+
if (l(), !p && _) {
|
|
1791
|
+
if (!(a && a.find((G) => _.startsWith("/" + G) || _.startsWith(G)))) return;
|
|
1792
|
+
n.push({ path: _, query: d.query });
|
|
1793
1793
|
return;
|
|
1794
1794
|
}
|
|
1795
|
-
const m = ((
|
|
1796
|
-
let
|
|
1797
|
-
|
|
1798
|
-
const
|
|
1799
|
-
if (
|
|
1795
|
+
const m = ((U = d.meta) == null ? void 0 : U.showLayout) ?? !0;
|
|
1796
|
+
let y = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
|
|
1797
|
+
y === "false" && (y = !1);
|
|
1798
|
+
const b = (p == null ? void 0 : p.openType) ?? 1, P = (p == null ? void 0 : p.type) ?? 1;
|
|
1799
|
+
if (p.routeUrl && !a.includes(p.routeUrl)) {
|
|
1800
1800
|
const oe = ((ie = F()) == null ? void 0 : ie.subAppList) ?? [];
|
|
1801
|
-
if ((oe == null ? void 0 : oe.find((fe) => fe.code ===
|
|
1802
|
-
{ key: "currentSubApp", value:
|
|
1803
|
-
{ key: "currentSubAppCode", value:
|
|
1801
|
+
if ((oe == null ? void 0 : oe.find((fe) => fe.code === p.code)) || oe == null || oe.push(p), Ae([
|
|
1802
|
+
{ key: "currentSubApp", value: p },
|
|
1803
|
+
{ key: "currentSubAppCode", value: p.code },
|
|
1804
1804
|
{ key: "subAppList", value: oe }
|
|
1805
1805
|
]), oe.forEach((fe) => {
|
|
1806
1806
|
const Oe = { ...fe, value: fe.code, label: fe.name };
|
|
1807
1807
|
D.nav.appendItem(Oe);
|
|
1808
|
-
}), D.nav.setActiveItem(
|
|
1809
|
-
n.push({ path:
|
|
1808
|
+
}), D.nav.setActiveItem(p.code), te.hideAllMicroApp(), p.routeUrl.includes("entrance=main")) {
|
|
1809
|
+
n.push({ path: p.routeUrl, query: { ...d.query, app: p.code } });
|
|
1810
1810
|
return;
|
|
1811
1811
|
}
|
|
1812
|
-
if (
|
|
1813
|
-
const fe = Wt(Ut(Ft(
|
|
1812
|
+
if (b === 1 && P === 2) {
|
|
1813
|
+
const fe = Wt(Ut(Ft(p.routeUrl)));
|
|
1814
1814
|
n.push({
|
|
1815
1815
|
path: Je,
|
|
1816
1816
|
query: {
|
|
1817
1817
|
...d.query,
|
|
1818
|
-
app:
|
|
1818
|
+
app: p.code,
|
|
1819
1819
|
iframeSrc: fe
|
|
1820
1820
|
}
|
|
1821
1821
|
});
|
|
@@ -1823,40 +1823,40 @@ const wt = (n, e = "") => {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
1825
|
const {
|
|
1826
|
-
menuConfig:
|
|
1827
|
-
currentApp:
|
|
1828
|
-
currentMenu:
|
|
1829
|
-
microPath:
|
|
1826
|
+
menuConfig: C = [],
|
|
1827
|
+
currentApp: k = null,
|
|
1828
|
+
currentMenu: I = null,
|
|
1829
|
+
microPath: T = "",
|
|
1830
1830
|
query: M = {}
|
|
1831
|
-
} = await Fl({ microApp:
|
|
1832
|
-
if (
|
|
1833
|
-
path:
|
|
1834
|
-
query: { ...M, app:
|
|
1831
|
+
} = await Fl({ microApp: p, menuCode: w, menuPath: _, route: d });
|
|
1832
|
+
if (I && (d = {
|
|
1833
|
+
path: T || `/${I.applicationPath}${I.routeUrl}`.replace(/\/\//g, "/"),
|
|
1834
|
+
query: { ...M, app: I.applicationCode, menu: I.code },
|
|
1835
1835
|
meta: { ...(d == null ? void 0 : d.meta) ?? {} }
|
|
1836
|
-
}),
|
|
1837
|
-
if (
|
|
1838
|
-
const oe = (
|
|
1836
|
+
}), k && (k == null ? void 0 : k.code) !== (p == null ? void 0 : p.code)) {
|
|
1837
|
+
if (k.fixed && (D.menu.setItems([]), D.tab.setItems([]), n.push(k.path), D.nav.setActiveItem(k.path), te.hideAllMicroApp()), !k.fixed) {
|
|
1838
|
+
const oe = (Te = F().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === k.code), G = ce().preTab[k.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
|
|
1839
1839
|
await s({ microApp: oe, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: fe } });
|
|
1840
1840
|
}
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1844
|
-
if (!
|
|
1843
|
+
const R = k || p;
|
|
1844
|
+
if (!I && _) {
|
|
1845
1845
|
n.push({
|
|
1846
|
-
path:
|
|
1846
|
+
path: _,
|
|
1847
1847
|
query: {
|
|
1848
1848
|
...d.query,
|
|
1849
|
-
app:
|
|
1849
|
+
app: R.code
|
|
1850
1850
|
}
|
|
1851
1851
|
});
|
|
1852
1852
|
return;
|
|
1853
1853
|
}
|
|
1854
|
-
if (m &&
|
|
1854
|
+
if (m && y) {
|
|
1855
1855
|
(ft = F().subAppList) == null || ft.forEach((G) => {
|
|
1856
1856
|
const fe = { ...G, value: G.code, label: G.name };
|
|
1857
1857
|
D.nav.appendItem(fe);
|
|
1858
|
-
}), D.nav.setActiveItem(
|
|
1859
|
-
const oe = ce().tabMap[
|
|
1858
|
+
}), D.nav.setActiveItem(R.code), D.menu.setItems(C);
|
|
1859
|
+
const oe = ce().tabMap[R.code] ?? [];
|
|
1860
1860
|
oe.length && oe.forEach((G) => {
|
|
1861
1861
|
D.tab.appendItem({
|
|
1862
1862
|
...G,
|
|
@@ -1865,22 +1865,22 @@ const wt = (n, e = "") => {
|
|
|
1865
1865
|
});
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
e({ currentMenu:
|
|
1868
|
+
e({ currentMenu: I, microPath: T, route: d });
|
|
1869
1869
|
}, u = async (g) => {
|
|
1870
|
-
var
|
|
1871
|
-
if (
|
|
1870
|
+
var p;
|
|
1871
|
+
if (ee.innerSet = !0, g.fixed) {
|
|
1872
1872
|
D.menu.setItems([]), D.tab.setItems([]), n.push(g.path), D.nav.setActiveItem(g.path), Ae([
|
|
1873
1873
|
{ key: "currentSubAppCode", value: "" },
|
|
1874
1874
|
{ key: "currentSubApp", value: {} }
|
|
1875
1875
|
]), le([
|
|
1876
1876
|
{ key: "currentCode", value: "" },
|
|
1877
1877
|
{ key: "currentTab", value: {} }
|
|
1878
|
-
]),
|
|
1878
|
+
]), te.hideAllMicroApp();
|
|
1879
1879
|
return;
|
|
1880
1880
|
}
|
|
1881
1881
|
if (!g.fixed) {
|
|
1882
|
-
const
|
|
1883
|
-
await s({ microApp:
|
|
1882
|
+
const w = (p = F().subAppList) == null ? void 0 : p.find((m) => m.code === g.code), _ = ce().preTab[g.code], f = (_ == null ? void 0 : _.code) ?? "", d = { ...(_ == null ? void 0 : _.query) ?? {} };
|
|
1883
|
+
await s({ microApp: w, menuCode: f, route: { query: d } });
|
|
1884
1884
|
}
|
|
1885
1885
|
};
|
|
1886
1886
|
return {
|
|
@@ -1889,26 +1889,27 @@ const wt = (n, e = "") => {
|
|
|
1889
1889
|
changeApp: u,
|
|
1890
1890
|
deleteApp: async (g) => {
|
|
1891
1891
|
var d;
|
|
1892
|
-
const
|
|
1893
|
-
if (!((d =
|
|
1894
|
-
const
|
|
1895
|
-
if (
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1898
|
-
const m =
|
|
1892
|
+
const p = F();
|
|
1893
|
+
if (!((d = p.subAppList) != null && d.length)) return;
|
|
1894
|
+
const w = p.subAppList.findIndex((m) => m.code === g.code);
|
|
1895
|
+
if (w === -1) return;
|
|
1896
|
+
const _ = ce().tabMap[g.code] ?? [];
|
|
1897
|
+
if (_.length) {
|
|
1898
|
+
const m = _.map((y) => y.path);
|
|
1899
1899
|
t(m);
|
|
1900
1900
|
}
|
|
1901
|
-
let
|
|
1902
|
-
if (
|
|
1901
|
+
let f = null;
|
|
1902
|
+
if (p.currentSubAppCode === g.code && (w + 1 !== p.subAppList.length ? p.subAppList[w + 1] && (f = p.subAppList[w + 1]) : p.subAppList[w - 1] && (f = p.subAppList[w - 1])), p.subAppList.splice(w, 1), Ae([{ key: "subAppList", value: p.subAppList }]), le([
|
|
1903
1903
|
{ key: `preTab:${g.code}`, value: {} },
|
|
1904
1904
|
{ key: `tabMap:${g.code}`, value: [] }
|
|
1905
|
-
]),
|
|
1906
|
-
const m = { ...
|
|
1907
|
-
await u(m), D.nav.setActiveItem(
|
|
1905
|
+
]), f) {
|
|
1906
|
+
const m = { ...f, value: f.code, label: f.name };
|
|
1907
|
+
await u(m), D.nav.setActiveItem(f.code);
|
|
1908
1908
|
}
|
|
1909
|
-
if (!
|
|
1910
|
-
|
|
1911
|
-
|
|
1909
|
+
if (!p.subAppList.length) {
|
|
1910
|
+
D.menu.setItems([]), D.tab.setItems([]);
|
|
1911
|
+
const m = Oo.find((y) => y.value === Ie);
|
|
1912
|
+
m && u(m), ln(), Ro();
|
|
1912
1913
|
}
|
|
1913
1914
|
}
|
|
1914
1915
|
};
|
|
@@ -1916,35 +1917,35 @@ const wt = (n, e = "") => {
|
|
|
1916
1917
|
const n = Ge();
|
|
1917
1918
|
let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
|
|
1918
1919
|
return !e && t && (o = [{ name: t }]), o.map((i) => i.name), { entryMenu: async (i) => {
|
|
1919
|
-
var
|
|
1920
|
+
var _;
|
|
1920
1921
|
const { currentMenu: a, route: l = {}, microPath: c = "" } = i;
|
|
1921
1922
|
if (!a) return;
|
|
1922
1923
|
let s = { ...l.query, app: a.applicationCode, menu: a.code };
|
|
1923
|
-
const u = (a == null ? void 0 : a.openType) ?? 1,
|
|
1924
|
+
const u = (a == null ? void 0 : a.openType) ?? 1, A = (a == null ? void 0 : a.type) ?? 1;
|
|
1924
1925
|
let g = "";
|
|
1925
1926
|
if (u === 1)
|
|
1926
|
-
if (
|
|
1927
|
+
if (A === 1)
|
|
1927
1928
|
if (a.routeUrl.startsWith(Je)) {
|
|
1928
|
-
|
|
1929
|
-
const
|
|
1930
|
-
s = { ...s, iframeSrc:
|
|
1929
|
+
te.hideAllMicroApp(), g = Je;
|
|
1930
|
+
const f = Vr(a.routeUrl, "iframeSrc");
|
|
1931
|
+
s = { ...s, iframeSrc: f }, n.push({ path: g, query: s });
|
|
1931
1932
|
} else a.applicationPath && (g = c || a.routeUrl, g = `/${a.applicationPath}${g}`.replace(/\/\//g, "/"), n.push({ path: g, query: s }));
|
|
1932
1933
|
else {
|
|
1933
|
-
|
|
1934
|
-
const
|
|
1935
|
-
s = { ...s, iframeSrc:
|
|
1934
|
+
te.hideAllMicroApp(), g = Je;
|
|
1935
|
+
const f = Wt(Ut(Ft(a.routeUrl)));
|
|
1936
|
+
s = { ...s, iframeSrc: f }, n.push({ path: g, query: s });
|
|
1936
1937
|
}
|
|
1937
1938
|
if (u === 2) {
|
|
1938
|
-
let
|
|
1939
|
-
|
|
1939
|
+
let f = A === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
|
|
1940
|
+
f = Wt(Ut(Ft(f))), ee.innerSet ? (te.hideAllMicroApp(), g = Do, n.push({ path: g, query: s }), f && window.open(f, "_blank")) : A === 1 && (g = f, s = { ...s, showLayout: !1 }, n.push({
|
|
1940
1941
|
path: g,
|
|
1941
1942
|
query: s
|
|
1942
1943
|
}));
|
|
1943
1944
|
}
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1946
|
-
if (
|
|
1947
|
-
const
|
|
1945
|
+
const p = ((_ = l.meta) == null ? void 0 : _.showLayout) ?? !0;
|
|
1946
|
+
let w = (s == null ? void 0 : s.showLayout) ?? !0;
|
|
1947
|
+
if (w === "false" && (w = !1), p && w) {
|
|
1948
|
+
const f = {
|
|
1948
1949
|
currentApplication: F().currentSubApp.routeUrl,
|
|
1949
1950
|
applicationPath: a.applicationPath,
|
|
1950
1951
|
applicationCode: a.applicationCode,
|
|
@@ -1955,9 +1956,9 @@ const wt = (n, e = "") => {
|
|
|
1955
1956
|
query: s
|
|
1956
1957
|
};
|
|
1957
1958
|
D.tab.appendItem({
|
|
1958
|
-
...
|
|
1959
|
-
value:
|
|
1960
|
-
label:
|
|
1959
|
+
...f,
|
|
1960
|
+
value: f.code,
|
|
1961
|
+
label: f.name
|
|
1961
1962
|
}), D.tab.setActiveItem(a.code), D.menu.setActiveItem(a.id), Qo(a.code), le([
|
|
1962
1963
|
{
|
|
1963
1964
|
key: "currentCode",
|
|
@@ -1965,45 +1966,45 @@ const wt = (n, e = "") => {
|
|
|
1965
1966
|
},
|
|
1966
1967
|
{
|
|
1967
1968
|
key: "currentTab",
|
|
1968
|
-
value:
|
|
1969
|
+
value: f
|
|
1969
1970
|
},
|
|
1970
1971
|
{
|
|
1971
1972
|
key: `preTab:${a.applicationCode}`,
|
|
1972
|
-
value:
|
|
1973
|
+
value: f
|
|
1973
1974
|
},
|
|
1974
1975
|
{
|
|
1975
1976
|
key: `tabMap:${a.applicationCode}`,
|
|
1976
|
-
value:
|
|
1977
|
+
value: f
|
|
1977
1978
|
}
|
|
1978
1979
|
]);
|
|
1979
1980
|
}
|
|
1980
1981
|
} };
|
|
1981
1982
|
}, Su = (n, e, t) => {
|
|
1982
1983
|
const { entryApp: o } = et(), r = Ge(), i = async (c) => {
|
|
1983
|
-
var
|
|
1984
|
+
var m, y, b, P;
|
|
1984
1985
|
let s = { ...c }, { showLayout: u = !0 } = s.query;
|
|
1985
1986
|
u === "false" && (u = !1);
|
|
1986
|
-
const
|
|
1987
|
-
var
|
|
1988
|
-
let
|
|
1989
|
-
if (!Array.isArray(
|
|
1987
|
+
const A = async () => {
|
|
1988
|
+
var I, T;
|
|
1989
|
+
let C = F().appcategorys ?? [];
|
|
1990
|
+
if (!Array.isArray(C)) return [];
|
|
1990
1991
|
if (s.query) {
|
|
1991
|
-
const
|
|
1992
|
-
if (!
|
|
1992
|
+
const M = ((I = s.query) == null ? void 0 : I.project) ?? ((T = s.query) == null ? void 0 : T.projectId) ?? "";
|
|
1993
|
+
if (!C.length || M && M !== Pe().id) {
|
|
1993
1994
|
await e();
|
|
1994
|
-
const { navConfig:
|
|
1995
|
-
|
|
1995
|
+
const { navConfig: R } = await lr();
|
|
1996
|
+
R && (C = R);
|
|
1996
1997
|
}
|
|
1997
1998
|
}
|
|
1998
|
-
return
|
|
1999
|
-
}, g = He().microApps ?? [],
|
|
2000
|
-
if (
|
|
2001
|
-
const
|
|
2002
|
-
(
|
|
1999
|
+
return C.map((M) => M.apps).flat() ?? [];
|
|
2000
|
+
}, g = He().microApps ?? [], p = g.filter((C) => C.public);
|
|
2001
|
+
if (p.length) {
|
|
2002
|
+
const C = p.find(
|
|
2003
|
+
(k) => s.path.startsWith("/" + k.name) || s.path.startsWith(k.name)
|
|
2003
2004
|
);
|
|
2004
|
-
if (
|
|
2005
|
+
if (C) {
|
|
2005
2006
|
o({
|
|
2006
|
-
microApp: { routeUrl:
|
|
2007
|
+
microApp: { routeUrl: C.name, code: "" },
|
|
2007
2008
|
menuCode: s.query.menu,
|
|
2008
2009
|
menuPath: s.path,
|
|
2009
2010
|
route: s
|
|
@@ -2011,40 +2012,40 @@ const wt = (n, e = "") => {
|
|
|
2011
2012
|
return;
|
|
2012
2013
|
}
|
|
2013
2014
|
}
|
|
2014
|
-
const
|
|
2015
|
+
const w = await A(), _ = w.map((C) => C.code), f = ((m = s.query) == null ? void 0 : m.app) ?? "", d = ((y = F()) == null ? void 0 : y.subAppList) ?? [];
|
|
2015
2016
|
if (d.length) {
|
|
2016
|
-
const
|
|
2017
|
-
(
|
|
2017
|
+
const C = d.filter((I) => I.code !== f && !_.includes(I.code)), k = d.filter(
|
|
2018
|
+
(I) => f === I.code || _.includes(I.code)
|
|
2018
2019
|
);
|
|
2019
|
-
Ae([{ key: "subAppList", value:
|
|
2020
|
+
Ae([{ key: "subAppList", value: k }]), C && C.length && C.forEach((I) => {
|
|
2020
2021
|
le([
|
|
2021
|
-
{ key: `preTab:${
|
|
2022
|
-
{ key: `tabMap:${
|
|
2022
|
+
{ key: `preTab:${I.code}`, value: {} },
|
|
2023
|
+
{ key: `tabMap:${I.code}`, value: [] }
|
|
2023
2024
|
]);
|
|
2024
2025
|
});
|
|
2025
2026
|
}
|
|
2026
2027
|
if (s.query.app) {
|
|
2027
|
-
let
|
|
2028
|
-
if (!
|
|
2029
|
-
const { currentApp:
|
|
2030
|
-
if (
|
|
2031
|
-
|
|
2032
|
-
const
|
|
2033
|
-
s = {},
|
|
2028
|
+
let C = w.find((k) => k.code === s.query.app);
|
|
2029
|
+
if (!C && u) {
|
|
2030
|
+
const { currentApp: k } = Gt(s.query.app);
|
|
2031
|
+
if (k) {
|
|
2032
|
+
C = k;
|
|
2033
|
+
const T = (ce().preTab ?? {})[C.code];
|
|
2034
|
+
s = {}, T && (s.path = `/${T.applicationPath}${T.path}`.replace(/\/\//g, "/"), s.query = T.query);
|
|
2034
2035
|
}
|
|
2035
2036
|
}
|
|
2036
|
-
|
|
2037
|
+
C != null && C.fixed ? (D.menu.setItems([]), D.tab.setItems([]), r.push(C.path), D.nav.setActiveItem(C.path), te.hideAllMicroApp()) : o({ microApp: C, menuCode: s.query.menu, menuPath: s.path, route: s });
|
|
2037
2038
|
return;
|
|
2038
2039
|
} else {
|
|
2039
|
-
const
|
|
2040
|
-
(
|
|
2040
|
+
const C = g && g.find(
|
|
2041
|
+
(k) => s.path.startsWith("/" + k.name) || s.path.startsWith(k.name)
|
|
2041
2042
|
);
|
|
2042
|
-
if (
|
|
2043
|
-
let
|
|
2044
|
-
|
|
2045
|
-
(
|
|
2043
|
+
if (C) {
|
|
2044
|
+
let k = w.find((I) => I.routeUrl === C.name);
|
|
2045
|
+
k || (k = w.find(
|
|
2046
|
+
(I) => (I == null ? void 0 : I.routePath) && I.routePath.length && I.routePath.includes(C.name)
|
|
2046
2047
|
)), o({
|
|
2047
|
-
microApp:
|
|
2048
|
+
microApp: k,
|
|
2048
2049
|
menuCode: s.query.menu,
|
|
2049
2050
|
menuPath: s.path,
|
|
2050
2051
|
route: s
|
|
@@ -2052,25 +2053,28 @@ const wt = (n, e = "") => {
|
|
|
2052
2053
|
return;
|
|
2053
2054
|
}
|
|
2054
2055
|
}
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2056
|
+
if (u) {
|
|
2057
|
+
te.hideAllMicroApp(), (P = (b = F()) == null ? void 0 : b.subAppList) == null || P.forEach((k) => {
|
|
2058
|
+
const I = { ...k, value: k.code, label: k.name };
|
|
2059
|
+
D.nav.appendItem(I);
|
|
2060
|
+
});
|
|
2061
|
+
const C = n.value.find((k) => k.path === location.pathname);
|
|
2062
|
+
C && (D.nav.setActiveItem(C.path), D.menu.setItems([]), D.tab.setItems([]), Ae([
|
|
2063
|
+
{ key: "currentSubAppCode", value: "" },
|
|
2064
|
+
{ key: "currentSubApp", value: {} }
|
|
2065
|
+
]), le([
|
|
2066
|
+
{ key: "currentCode", value: "" },
|
|
2067
|
+
{ key: "currentTab", value: {} }
|
|
2068
|
+
]));
|
|
2069
|
+
}
|
|
2066
2070
|
};
|
|
2067
2071
|
let a = "", l = {};
|
|
2068
2072
|
re(
|
|
2069
2073
|
() => r.currentRoute.value,
|
|
2070
2074
|
async (c) => {
|
|
2071
2075
|
if (!(c.path === a && Nt(c.query, l))) {
|
|
2072
|
-
if (a = qe(c.path), l = qe(c.query), await t(),
|
|
2073
|
-
|
|
2076
|
+
if (a = qe(c.path), l = qe(c.query), await t(), ee.innerSet) {
|
|
2077
|
+
ee.innerSet = !1;
|
|
2074
2078
|
return;
|
|
2075
2079
|
}
|
|
2076
2080
|
i(c);
|
|
@@ -2078,18 +2082,18 @@ const wt = (n, e = "") => {
|
|
|
2078
2082
|
}
|
|
2079
2083
|
);
|
|
2080
2084
|
}, pr = () => ({ reloadRoute: (t) => {
|
|
2081
|
-
|
|
2082
|
-
|
|
2085
|
+
ee.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ee.excludeRoutes, ...t])), ee.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
2086
|
+
ee.routeKeepAliveVisible = !0, ee.excludeRoutes = [];
|
|
2083
2087
|
}, 300);
|
|
2084
2088
|
}, unloadRoute: (t) => {
|
|
2085
|
-
|
|
2086
|
-
|
|
2089
|
+
ee.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ee.excludeRoutes, ...t])), ee.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
2090
|
+
ee.routeKeepAliveVisible = !0, ee.excludeRoutes = [];
|
|
2087
2091
|
}, 100);
|
|
2088
2092
|
} }), Tu = () => {
|
|
2089
|
-
const n = jr(), e = mu(), t = He(), o = {
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
+
const n = jr(), e = mu(), t = He(), o = async () => {
|
|
2094
|
+
const a = {
|
|
2095
|
+
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
2096
|
+
}, l = `${location.origin}/`, c = {
|
|
2093
2097
|
response_type: "code",
|
|
2094
2098
|
scope: "sever",
|
|
2095
2099
|
client_id: "sys",
|
|
@@ -2100,32 +2104,32 @@ const wt = (n, e = "") => {
|
|
|
2100
2104
|
logout: "true"
|
|
2101
2105
|
};
|
|
2102
2106
|
t.ssoLocale && (c.locale = "locale");
|
|
2103
|
-
const s = Object.keys(c).map((
|
|
2107
|
+
const s = Object.keys(c).map((A) => `${A}=${c[A]}`).join("&"), u = `${t.baseURL}${a.logout}?${s}`;
|
|
2104
2108
|
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Yr(), localStorage.removeItem("idelTime");
|
|
2105
|
-
}, { entryApp:
|
|
2106
|
-
const
|
|
2107
|
-
if (
|
|
2108
|
-
const { title:
|
|
2109
|
-
await rt({ title:
|
|
2109
|
+
}, { entryApp: r } = et(), i = async () => {
|
|
2110
|
+
const a = "personCenter", c = (F().appcategorys || []).map((p) => p.apps).flat(), { originalMenus: s = [] } = await mn(a), A = ye(s).filter((p) => p.isMenu && p.routeUrl).find((p) => p.routeUrl === "/userInfo");
|
|
2111
|
+
if (A != null && A.disable || A != null && A.expired) {
|
|
2112
|
+
const { title: p, content: w, desc: _ } = await vn(A);
|
|
2113
|
+
await rt({ title: p, content: w, desc: _ });
|
|
2110
2114
|
return;
|
|
2111
2115
|
}
|
|
2112
|
-
const
|
|
2113
|
-
|
|
2116
|
+
const g = c.find((p) => p.code === a);
|
|
2117
|
+
g && r({ microApp: g, menuPath: `/${g.routeUrl}/userInfo` });
|
|
2114
2118
|
};
|
|
2115
|
-
return D.nav.addEventListener("onUserCommandChange", (
|
|
2116
|
-
var
|
|
2119
|
+
return D.nav.addEventListener("onUserCommandChange", (a) => {
|
|
2120
|
+
var c, s;
|
|
2117
2121
|
({
|
|
2118
|
-
0: (
|
|
2119
|
-
1:
|
|
2120
|
-
2: (
|
|
2121
|
-
3:
|
|
2122
|
-
})[
|
|
2122
|
+
0: (c = e.value) == null ? void 0 : c.openDialog,
|
|
2123
|
+
1: i,
|
|
2124
|
+
2: (s = n.value) == null ? void 0 : s.openDialog,
|
|
2125
|
+
3: o
|
|
2126
|
+
})[a]();
|
|
2123
2127
|
}), {
|
|
2124
2128
|
$changePwd: n,
|
|
2125
2129
|
$personSetDialog: e
|
|
2126
2130
|
};
|
|
2127
2131
|
}, ku = So.get("/convert/tenant"), Pu = en.get("/platform/withdefault"), fr = () => {
|
|
2128
|
-
const n = He(), e =
|
|
2132
|
+
const n = He(), e = S(!1), t = S(""), o = S(""), r = () => {
|
|
2129
2133
|
t.value = St().id, o.value = Co().tenantId, e.value = !0;
|
|
2130
2134
|
};
|
|
2131
2135
|
D.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
@@ -2142,30 +2146,30 @@ const wt = (n, e = "") => {
|
|
|
2142
2146
|
const [c, s] = await ku().run({ tenant: l });
|
|
2143
2147
|
if (c) return;
|
|
2144
2148
|
e.value = !1;
|
|
2145
|
-
const { access_token: u = "", refresh_token:
|
|
2149
|
+
const { access_token: u = "", refresh_token: A = "", expires_in: g = 0, sub: p = "", name: w = "", flag: _ = "", tenant: f = "" } = s, d = {
|
|
2146
2150
|
accessToken: u,
|
|
2147
2151
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(g) * 1e3,
|
|
2148
|
-
refreshToken:
|
|
2152
|
+
refreshToken: A,
|
|
2149
2153
|
info: s
|
|
2150
2154
|
};
|
|
2151
2155
|
ts().save(d), Eo(d);
|
|
2152
2156
|
const m = {
|
|
2153
|
-
id:
|
|
2154
|
-
name:
|
|
2155
|
-
flag:
|
|
2156
|
-
tenantId:
|
|
2157
|
+
id: p,
|
|
2158
|
+
name: w,
|
|
2159
|
+
flag: _,
|
|
2160
|
+
tenantId: f
|
|
2157
2161
|
};
|
|
2158
2162
|
sessionStorage.setItem("hotentUserInfo", JSON.stringify(m)), ns(u);
|
|
2159
|
-
let
|
|
2163
|
+
let y = "";
|
|
2160
2164
|
if (n != null && n.ssoLocale)
|
|
2161
|
-
|
|
2165
|
+
y = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
|
|
2162
2166
|
else {
|
|
2163
|
-
const [
|
|
2164
|
-
|
|
2167
|
+
const [b, P] = await Pu().run();
|
|
2168
|
+
P != null && P.loginHost && (y = `${P.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
|
|
2165
2169
|
}
|
|
2166
|
-
if (
|
|
2167
|
-
const
|
|
2168
|
-
|
|
2170
|
+
if (y) {
|
|
2171
|
+
const b = document.createElement("iframe");
|
|
2172
|
+
b.src = y, b.style.display = "none", document.body.appendChild(b), setTimeout(() => i(), 300);
|
|
2169
2173
|
} else
|
|
2170
2174
|
i();
|
|
2171
2175
|
}
|
|
@@ -2191,8 +2195,8 @@ const wt = (n, e = "") => {
|
|
|
2191
2195
|
return D.nav.addEventListener("searchToPage", async (o) => {
|
|
2192
2196
|
const { item: r, keyword: i, cb: a } = o;
|
|
2193
2197
|
if (r != null && r.disable || r != null && r.expired) {
|
|
2194
|
-
const { title: u, content:
|
|
2195
|
-
await rt({ title: u, content:
|
|
2198
|
+
const { title: u, content: A, desc: g } = await vn(r);
|
|
2199
|
+
await rt({ title: u, content: A, desc: g });
|
|
2196
2200
|
return;
|
|
2197
2201
|
}
|
|
2198
2202
|
await $u().run({ searchVal: i, clickData: r });
|
|
@@ -2208,13 +2212,13 @@ const wt = (n, e = "") => {
|
|
|
2208
2212
|
getHistoryList: n,
|
|
2209
2213
|
getSearchList: e
|
|
2210
2214
|
};
|
|
2211
|
-
},
|
|
2215
|
+
}, ee = yo({
|
|
2212
2216
|
/** 菜单或者应用跳转是否通过触发界面调用的 */
|
|
2213
2217
|
innerSet: !1,
|
|
2214
2218
|
excludeRoutes: [],
|
|
2215
2219
|
routeKeepAliveVisible: !0
|
|
2216
2220
|
}), Ru = () => {
|
|
2217
|
-
|
|
2221
|
+
te.addEventListenerFromMicroApp("iot:change-instance", (n) => {
|
|
2218
2222
|
const e = F(), t = e.currentSubAppCode;
|
|
2219
2223
|
let o = _t(t);
|
|
2220
2224
|
o.forEach((i) => {
|
|
@@ -2236,25 +2240,25 @@ const wt = (n, e = "") => {
|
|
|
2236
2240
|
});
|
|
2237
2241
|
}, Qu = (n) => {
|
|
2238
2242
|
["personcenter", "rightmanage"].forEach((t) => {
|
|
2239
|
-
|
|
2243
|
+
te.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
|
|
2240
2244
|
const { userInfo: r } = o.data, i = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
|
|
2241
2245
|
D.nav.setUserInfo({ headPicture: i, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
2242
2246
|
});
|
|
2243
2247
|
});
|
|
2244
2248
|
}, ju = () => {
|
|
2245
|
-
|
|
2249
|
+
te.addEventListenerFromMicroApp("devicePanelShow", (n) => {
|
|
2246
2250
|
const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: i = 0, isCenter: a = !1 } = n.data;
|
|
2247
2251
|
ko(e, t, o, r, i, a);
|
|
2248
|
-
}),
|
|
2252
|
+
}), te.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
|
|
2249
2253
|
rs();
|
|
2250
|
-
}),
|
|
2254
|
+
}), te.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
|
|
2251
2255
|
const { deviceId: e = "", panelCode: t = "", alarmTime: o = "" } = n.data;
|
|
2252
2256
|
ss(e, t, o);
|
|
2253
|
-
}),
|
|
2257
|
+
}), te.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
|
|
2254
2258
|
is();
|
|
2255
2259
|
});
|
|
2256
2260
|
}, Hu = nn.get("/platform/login/pwd-advance-notify-check"), Nu = () => {
|
|
2257
|
-
const n =
|
|
2261
|
+
const n = S([]), e = S(null), t = S([]), { entryApp: o } = bt.hooks.useEntryApp(), r = () => {
|
|
2258
2262
|
var c;
|
|
2259
2263
|
const l = (((c = F().appcategorys) == null ? void 0 : c.map((s) => s.apps).flat()) ?? []).find((s) => s.code === "messagecenter");
|
|
2260
2264
|
l && o({ microApp: l });
|
|
@@ -2266,7 +2270,7 @@ const wt = (n, e = "") => {
|
|
|
2266
2270
|
await Hu().run();
|
|
2267
2271
|
},
|
|
2268
2272
|
message: async (a) => {
|
|
2269
|
-
if (
|
|
2273
|
+
if (te.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
|
|
2270
2274
|
const c = Pe().id;
|
|
2271
2275
|
n.value = a.filter(
|
|
2272
2276
|
(s) => s.projectId === c || s.projectId === 0 || s.projectId === "0"
|
|
@@ -2306,7 +2310,7 @@ const wt = (n, e = "") => {
|
|
|
2306
2310
|
}), Et(() => {
|
|
2307
2311
|
e.value && e.value.disconnect(), e.value = null;
|
|
2308
2312
|
});
|
|
2309
|
-
}, Uu = "v1", Fu = Xe(`/api/enterpriseright/permission/${Uu}`), hr = Xe("/api/
|
|
2313
|
+
}, Uu = "v1", Fu = Xe(`/api/enterpriseright/permission/${Uu}`), hr = Xe("/api/device-relation/deviceproject/v1/project/device/video", Wu), Ju = rn.get("/permissionset/user-portal-menu");
|
|
2310
2314
|
function Wu(n) {
|
|
2311
2315
|
const e = Pe() ? Pe().id : 1;
|
|
2312
2316
|
return n.params || (n.params = {}), n.params.project = e, n.params.projectId = e, n;
|
|
@@ -2318,10 +2322,10 @@ function gr(n) {
|
|
|
2318
2322
|
return e.toString();
|
|
2319
2323
|
}
|
|
2320
2324
|
function po(n) {
|
|
2321
|
-
return hr.post(`/
|
|
2325
|
+
return hr.post(`/ptz?${gr(n)}`)().run();
|
|
2322
2326
|
}
|
|
2323
2327
|
function zu(n) {
|
|
2324
|
-
return hr.post(`/
|
|
2328
|
+
return hr.post(`/url/preview?${gr(n)}`)().run();
|
|
2325
2329
|
}
|
|
2326
2330
|
const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
2327
2331
|
__name: "GridItem",
|
|
@@ -2334,21 +2338,21 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2334
2338
|
Or((u) => ({
|
|
2335
2339
|
"6cb537a6": s.value
|
|
2336
2340
|
}));
|
|
2337
|
-
const t = n, o = e, r =
|
|
2341
|
+
const t = n, o = e, r = S(), { toggle: i, isFullscreen: a } = lt(r), l = () => {
|
|
2338
2342
|
r.value != document.fullscreenElement && (a.value ? (a.value = !1, Fe(() => {
|
|
2339
2343
|
i();
|
|
2340
2344
|
})) : i());
|
|
2341
2345
|
}, c = () => {
|
|
2342
2346
|
o("itemClick");
|
|
2343
2347
|
}, s = Ce(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
|
|
2344
|
-
return (u,
|
|
2348
|
+
return (u, A) => (H(), de(
|
|
2345
2349
|
"div",
|
|
2346
2350
|
{
|
|
2347
2351
|
ref_key: "containerRef",
|
|
2348
2352
|
ref: r,
|
|
2349
2353
|
class: Dr(["wrapper", { "is-active": t.active }]),
|
|
2350
|
-
onDblclick:
|
|
2351
|
-
onClick:
|
|
2354
|
+
onDblclick: A[0] || (A[0] = (g) => l()),
|
|
2355
|
+
onClick: A[1] || (A[1] = (g) => c())
|
|
2352
2356
|
},
|
|
2353
2357
|
[
|
|
2354
2358
|
$e(u.$slots, "default", {}, void 0, !0)
|
|
@@ -2357,7 +2361,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2357
2361
|
/* CLASS, NEED_HYDRATION */
|
|
2358
2362
|
));
|
|
2359
2363
|
}
|
|
2360
|
-
}), Ku = /* @__PURE__ */
|
|
2364
|
+
}), Ku = /* @__PURE__ */ Ee(qu, [["__scopeId", "data-v-2e9b0fda"]]), Gu = { class: "layout-wrapper" }, Xu = /* @__PURE__ */ pe({
|
|
2361
2365
|
__name: "GridLayout",
|
|
2362
2366
|
props: {
|
|
2363
2367
|
gridNum: {},
|
|
@@ -2370,7 +2374,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2370
2374
|
o("update:activeIndex", i);
|
|
2371
2375
|
};
|
|
2372
2376
|
return (i, a) => (H(), de("div", Gu, [
|
|
2373
|
-
|
|
2377
|
+
N(' :active="index === activeIndex" '),
|
|
2374
2378
|
(H(!0), de(
|
|
2375
2379
|
We,
|
|
2376
2380
|
null,
|
|
@@ -2379,11 +2383,11 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2379
2383
|
"grid-num": t.gridNum,
|
|
2380
2384
|
onItemClick: (s) => r(c)
|
|
2381
2385
|
}, {
|
|
2382
|
-
default:
|
|
2386
|
+
default: L(() => [
|
|
2383
2387
|
i.showFn(c) ? $e(i.$slots, "default", {
|
|
2384
2388
|
key: 0,
|
|
2385
2389
|
index: c
|
|
2386
|
-
}, void 0, !0) :
|
|
2390
|
+
}, void 0, !0) : N("v-if", !0)
|
|
2387
2391
|
]),
|
|
2388
2392
|
_: 2
|
|
2389
2393
|
/* DYNAMIC */
|
|
@@ -2393,7 +2397,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2393
2397
|
))
|
|
2394
2398
|
]));
|
|
2395
2399
|
}
|
|
2396
|
-
}), Zu = /* @__PURE__ */
|
|
2400
|
+
}), Zu = /* @__PURE__ */ Ee(Xu, [["__scopeId", "data-v-d36ddc74"]]), Yu = /* @__PURE__ */ pe({
|
|
2397
2401
|
__name: "DirectionControl",
|
|
2398
2402
|
emits: ["change"],
|
|
2399
2403
|
setup(n, { emit: e }) {
|
|
@@ -2407,8 +2411,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2407
2411
|
onDblclick: i[9] || (i[9] = ne((a) => a.stopPropagation(), ["stop"]))
|
|
2408
2412
|
},
|
|
2409
2413
|
[
|
|
2410
|
-
|
|
2411
|
-
default:
|
|
2414
|
+
x(v(ae), { content: "左上" }, {
|
|
2415
|
+
default: L(() => [
|
|
2412
2416
|
$("div", {
|
|
2413
2417
|
class: "icon icon-top-left",
|
|
2414
2418
|
onClick: i[0] || (i[0] = ne((a) => o("leftUp"), ["stop"]))
|
|
@@ -2417,8 +2421,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2417
2421
|
_: 1
|
|
2418
2422
|
/* STABLE */
|
|
2419
2423
|
}),
|
|
2420
|
-
|
|
2421
|
-
default:
|
|
2424
|
+
x(v(ae), { content: "上" }, {
|
|
2425
|
+
default: L(() => [
|
|
2422
2426
|
$("div", {
|
|
2423
2427
|
class: "icon icon-top",
|
|
2424
2428
|
onClick: i[1] || (i[1] = ne((a) => o("up"), ["stop"]))
|
|
@@ -2427,8 +2431,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2427
2431
|
_: 1
|
|
2428
2432
|
/* STABLE */
|
|
2429
2433
|
}),
|
|
2430
|
-
|
|
2431
|
-
default:
|
|
2434
|
+
x(v(ae), { content: "右上" }, {
|
|
2435
|
+
default: L(() => [
|
|
2432
2436
|
$("div", {
|
|
2433
2437
|
class: "icon icon-top-right",
|
|
2434
2438
|
onClick: i[2] || (i[2] = ne((a) => o("rightUp"), ["stop"]))
|
|
@@ -2437,8 +2441,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2437
2441
|
_: 1
|
|
2438
2442
|
/* STABLE */
|
|
2439
2443
|
}),
|
|
2440
|
-
|
|
2441
|
-
default:
|
|
2444
|
+
x(v(ae), { content: "左" }, {
|
|
2445
|
+
default: L(() => [
|
|
2442
2446
|
$("div", {
|
|
2443
2447
|
class: "icon icon-left",
|
|
2444
2448
|
onClick: i[3] || (i[3] = ne((a) => o("left"), ["stop"]))
|
|
@@ -2447,8 +2451,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2447
2451
|
_: 1
|
|
2448
2452
|
/* STABLE */
|
|
2449
2453
|
}),
|
|
2450
|
-
|
|
2451
|
-
default:
|
|
2454
|
+
x(v(ae), { content: "自动" }, {
|
|
2455
|
+
default: L(() => [
|
|
2452
2456
|
$("div", {
|
|
2453
2457
|
class: "icon icon-auto",
|
|
2454
2458
|
onClick: i[4] || (i[4] = ne((a) => o("auto"), ["stop"]))
|
|
@@ -2457,8 +2461,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2457
2461
|
_: 1
|
|
2458
2462
|
/* STABLE */
|
|
2459
2463
|
}),
|
|
2460
|
-
|
|
2461
|
-
default:
|
|
2464
|
+
x(v(ae), { content: "右" }, {
|
|
2465
|
+
default: L(() => [
|
|
2462
2466
|
$("div", {
|
|
2463
2467
|
class: "icon icon-right",
|
|
2464
2468
|
onClick: i[5] || (i[5] = ne((a) => o("right"), ["stop"]))
|
|
@@ -2467,8 +2471,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2467
2471
|
_: 1
|
|
2468
2472
|
/* STABLE */
|
|
2469
2473
|
}),
|
|
2470
|
-
|
|
2471
|
-
default:
|
|
2474
|
+
x(v(ae), { content: "左下" }, {
|
|
2475
|
+
default: L(() => [
|
|
2472
2476
|
$("div", {
|
|
2473
2477
|
class: "icon icon-bottom-left",
|
|
2474
2478
|
onClick: i[6] || (i[6] = ne((a) => o("leftDown"), ["stop"]))
|
|
@@ -2477,8 +2481,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2477
2481
|
_: 1
|
|
2478
2482
|
/* STABLE */
|
|
2479
2483
|
}),
|
|
2480
|
-
|
|
2481
|
-
default:
|
|
2484
|
+
x(v(ae), { content: "下" }, {
|
|
2485
|
+
default: L(() => [
|
|
2482
2486
|
$("div", {
|
|
2483
2487
|
class: "icon icon-bottom",
|
|
2484
2488
|
onClick: i[7] || (i[7] = ne((a) => o("down"), ["stop"]))
|
|
@@ -2487,8 +2491,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2487
2491
|
_: 1
|
|
2488
2492
|
/* STABLE */
|
|
2489
2493
|
}),
|
|
2490
|
-
|
|
2491
|
-
default:
|
|
2494
|
+
x(v(ae), { content: "右下" }, {
|
|
2495
|
+
default: L(() => [
|
|
2492
2496
|
$("div", {
|
|
2493
2497
|
class: "icon icon-bottom-right",
|
|
2494
2498
|
onClick: i[8] || (i[8] = ne((a) => o("rightDown"), ["stop"]))
|
|
@@ -2502,7 +2506,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2502
2506
|
/* NEED_HYDRATION */
|
|
2503
2507
|
));
|
|
2504
2508
|
}
|
|
2505
|
-
}), ed = /* @__PURE__ */
|
|
2509
|
+
}), ed = /* @__PURE__ */ Ee(Yu, [["__scopeId", "data-v-6d1b5d7b"]]), td = (n) => (bo("data-v-866a3799"), n = n(), wo(), n), nd = { class: "video-wrapper" }, od = { class: "video-top" }, rd = { class: "video-top_l" }, sd = { class: "video-title-wrapper" }, id = { class: "video-title" }, ad = { class: "video-top_r" }, cd = {
|
|
2506
2510
|
key: 0,
|
|
2507
2511
|
class: "play-status"
|
|
2508
2512
|
}, ld = { class: "video-bottom" }, ud = /* @__PURE__ */ td(() => /* @__PURE__ */ $(
|
|
@@ -2533,33 +2537,33 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2533
2537
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
2534
2538
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
2535
2539
|
});
|
|
2536
|
-
const t = n, o = e, r =
|
|
2537
|
-
var
|
|
2538
|
-
return (
|
|
2539
|
-
}), s =
|
|
2540
|
-
i.value =
|
|
2540
|
+
const t = n, o = e, r = S(!0), i = S(), a = S(!1), l = S(), c = Ce(() => {
|
|
2541
|
+
var y;
|
|
2542
|
+
return (y = l.value) == null ? void 0 : y.video;
|
|
2543
|
+
}), s = S(!1), u = S(!0), A = (y) => {
|
|
2544
|
+
i.value = y, i.value.on(window.mpegts.Events.ERROR, (b) => {
|
|
2541
2545
|
});
|
|
2542
2546
|
}, g = () => {
|
|
2543
2547
|
r.value = !r.value, i.value && (i.value.muted = r.value);
|
|
2544
|
-
},
|
|
2548
|
+
}, p = () => {
|
|
2545
2549
|
a.value = !a.value;
|
|
2546
|
-
},
|
|
2547
|
-
const
|
|
2550
|
+
}, w = S(""), _ = () => {
|
|
2551
|
+
const y = document.createElement("canvas");
|
|
2548
2552
|
if (c.value) {
|
|
2549
|
-
|
|
2550
|
-
const
|
|
2551
|
-
|
|
2552
|
-
const
|
|
2553
|
-
if (
|
|
2554
|
-
const
|
|
2555
|
-
|
|
2553
|
+
y.width = c.value.clientWidth, y.height = c.value.clientHeight;
|
|
2554
|
+
const b = y.getContext("2d");
|
|
2555
|
+
b == null || b.drawImage(c.value, 0, 0, y.width, y.height);
|
|
2556
|
+
const P = y.toDataURL("image/jpg"), C = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
2557
|
+
if (w.value = P, "download" in document.createElement("a")) {
|
|
2558
|
+
const k = document.createElement("a");
|
|
2559
|
+
k.download = C, k.style.display = "none", k.href = P, document.body.appendChild(k), document.body.appendChild(y), k.click(), URL.revokeObjectURL(k.href), document.body.removeChild(k), document.body.removeChild(y);
|
|
2556
2560
|
}
|
|
2557
2561
|
}
|
|
2558
|
-
},
|
|
2559
|
-
o("directionControl",
|
|
2560
|
-
}, d = (
|
|
2561
|
-
o("zoomControl",
|
|
2562
|
-
}, m = (
|
|
2562
|
+
}, f = (y) => {
|
|
2563
|
+
o("directionControl", y);
|
|
2564
|
+
}, d = (y) => {
|
|
2565
|
+
o("zoomControl", y);
|
|
2566
|
+
}, m = (y) => t.authType.includes(y);
|
|
2563
2567
|
return re(
|
|
2564
2568
|
() => c.value,
|
|
2565
2569
|
() => {
|
|
@@ -2601,39 +2605,39 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2601
2605
|
u.value = !0;
|
|
2602
2606
|
});
|
|
2603
2607
|
}
|
|
2604
|
-
), (
|
|
2605
|
-
|
|
2608
|
+
), (y, b) => (H(), de("div", nd, [
|
|
2609
|
+
x(v(Bo), {
|
|
2606
2610
|
spinning: t.loading,
|
|
2607
2611
|
type: "component",
|
|
2608
2612
|
tip: "加载中..."
|
|
2609
2613
|
}, {
|
|
2610
|
-
default:
|
|
2614
|
+
default: L(() => [
|
|
2611
2615
|
$("div", od, [
|
|
2612
2616
|
$("div", rd, [
|
|
2613
2617
|
$("div", sd, [
|
|
2614
2618
|
$(
|
|
2615
2619
|
"div",
|
|
2616
2620
|
id,
|
|
2617
|
-
|
|
2621
|
+
Z(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
|
|
2618
2622
|
1
|
|
2619
2623
|
/* TEXT */
|
|
2620
2624
|
)
|
|
2621
2625
|
])
|
|
2622
2626
|
]),
|
|
2623
2627
|
$("div", ad, [
|
|
2624
|
-
["live"].includes(
|
|
2625
|
-
|
|
2628
|
+
["live"].includes(y.type) ? (H(), de("span", cd, "正在实时预览")) : N("v-if", !0),
|
|
2629
|
+
N(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
2626
2630
|
])
|
|
2627
2631
|
]),
|
|
2628
|
-
t.videoUrl && u.value ? (H(), V(
|
|
2632
|
+
t.videoUrl && u.value ? (H(), V(v(cs), {
|
|
2629
2633
|
key: 0,
|
|
2630
2634
|
type: "flv",
|
|
2631
2635
|
ref_key: "dasLivePlayerRef",
|
|
2632
2636
|
ref: l,
|
|
2633
2637
|
muted: r.value,
|
|
2634
|
-
onLoaded:
|
|
2638
|
+
onLoaded: A,
|
|
2635
2639
|
src: t.videoUrl
|
|
2636
|
-
}, null, 8, ["muted", "src"])) :
|
|
2640
|
+
}, null, 8, ["muted", "src"])) : N("v-if", !0),
|
|
2637
2641
|
$("div", ld, [
|
|
2638
2642
|
ud,
|
|
2639
2643
|
$("div", dd, [
|
|
@@ -2641,12 +2645,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2641
2645
|
"div",
|
|
2642
2646
|
{
|
|
2643
2647
|
class: "controls",
|
|
2644
|
-
onDblclick:
|
|
2648
|
+
onDblclick: b[2] || (b[2] = ne((P) => P.stopPropagation(), ["stop"]))
|
|
2645
2649
|
},
|
|
2646
2650
|
[
|
|
2647
|
-
|
|
2648
|
-
default:
|
|
2649
|
-
|
|
2651
|
+
x(v(ae), { content: "声音" }, {
|
|
2652
|
+
default: L(() => [
|
|
2653
|
+
x(v(De), {
|
|
2650
2654
|
class: "icon icon-volume",
|
|
2651
2655
|
icon: r.value ? "muted" : "volume",
|
|
2652
2656
|
onClick: ne(g, ["stop"])
|
|
@@ -2655,62 +2659,62 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2655
2659
|
_: 1
|
|
2656
2660
|
/* STABLE */
|
|
2657
2661
|
}),
|
|
2658
|
-
|
|
2659
|
-
default:
|
|
2660
|
-
|
|
2662
|
+
x(v(ae), { content: "截图" }, {
|
|
2663
|
+
default: L(() => [
|
|
2664
|
+
x(v(De), {
|
|
2661
2665
|
class: "icon icon-screenshot",
|
|
2662
2666
|
icon: "screenshot",
|
|
2663
|
-
onClick: ne(
|
|
2667
|
+
onClick: ne(_, ["stop"])
|
|
2664
2668
|
})
|
|
2665
2669
|
]),
|
|
2666
2670
|
_: 1
|
|
2667
2671
|
/* STABLE */
|
|
2668
2672
|
}),
|
|
2669
|
-
m("control") ? (H(), V(
|
|
2673
|
+
m("control") ? (H(), V(v(ae), {
|
|
2670
2674
|
key: 0,
|
|
2671
2675
|
content: "聚焦-"
|
|
2672
2676
|
}, {
|
|
2673
|
-
default:
|
|
2674
|
-
["live", "polling"].includes(t.type) ? (H(), V(
|
|
2677
|
+
default: L(() => [
|
|
2678
|
+
["live", "polling"].includes(t.type) ? (H(), V(v(De), {
|
|
2675
2679
|
key: 0,
|
|
2676
2680
|
class: "icon icon-shrink",
|
|
2677
2681
|
icon: "shrink",
|
|
2678
|
-
onClick:
|
|
2679
|
-
})) :
|
|
2682
|
+
onClick: b[0] || (b[0] = ne((P) => d("zoomOut"), ["stop"]))
|
|
2683
|
+
})) : N("v-if", !0)
|
|
2680
2684
|
]),
|
|
2681
2685
|
_: 1
|
|
2682
2686
|
/* STABLE */
|
|
2683
|
-
})) :
|
|
2684
|
-
m("control") ? (H(), V(
|
|
2687
|
+
})) : N("v-if", !0),
|
|
2688
|
+
m("control") ? (H(), V(v(ae), {
|
|
2685
2689
|
key: 1,
|
|
2686
2690
|
content: "聚焦+"
|
|
2687
2691
|
}, {
|
|
2688
|
-
default:
|
|
2689
|
-
["live", "polling"].includes(t.type) ? (H(), V(
|
|
2692
|
+
default: L(() => [
|
|
2693
|
+
["live", "polling"].includes(t.type) ? (H(), V(v(De), {
|
|
2690
2694
|
key: 0,
|
|
2691
2695
|
class: "icon icon-enlarge",
|
|
2692
2696
|
icon: "enlarge",
|
|
2693
|
-
onClick:
|
|
2694
|
-
})) :
|
|
2697
|
+
onClick: b[1] || (b[1] = ne((P) => d("zoomIn"), ["stop"]))
|
|
2698
|
+
})) : N("v-if", !0)
|
|
2695
2699
|
]),
|
|
2696
2700
|
_: 1
|
|
2697
2701
|
/* STABLE */
|
|
2698
|
-
})) :
|
|
2699
|
-
m("control") ? (H(), V(
|
|
2702
|
+
})) : N("v-if", !0),
|
|
2703
|
+
m("control") ? (H(), V(v(ae), {
|
|
2700
2704
|
key: 2,
|
|
2701
2705
|
content: "方向控制"
|
|
2702
2706
|
}, {
|
|
2703
|
-
default:
|
|
2704
|
-
["live", "polling"].includes(t.type) ? (H(), V(
|
|
2707
|
+
default: L(() => [
|
|
2708
|
+
["live", "polling"].includes(t.type) ? (H(), V(v(De), {
|
|
2705
2709
|
key: 0,
|
|
2706
2710
|
class: "icon icon-direction-control",
|
|
2707
2711
|
icon: "direction-control",
|
|
2708
|
-
onClick: ne(
|
|
2709
|
-
})) :
|
|
2712
|
+
onClick: ne(p, ["stop"])
|
|
2713
|
+
})) : N("v-if", !0)
|
|
2710
2714
|
]),
|
|
2711
2715
|
_: 1
|
|
2712
2716
|
/* STABLE */
|
|
2713
|
-
})) :
|
|
2717
|
+
})) : N("v-if", !0)
|
|
2714
2718
|
],
|
|
2715
2719
|
32
|
|
2716
2720
|
/* NEED_HYDRATION */
|
|
@@ -2719,15 +2723,15 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2719
2723
|
]),
|
|
2720
2724
|
a.value ? (H(), V(ed, {
|
|
2721
2725
|
key: 1,
|
|
2722
|
-
onChange:
|
|
2723
|
-
})) :
|
|
2726
|
+
onChange: f
|
|
2727
|
+
})) : N("v-if", !0)
|
|
2724
2728
|
]),
|
|
2725
2729
|
_: 1
|
|
2726
2730
|
/* STABLE */
|
|
2727
2731
|
}, 8, ["spinning"])
|
|
2728
2732
|
]));
|
|
2729
2733
|
}
|
|
2730
|
-
}), fd = /* @__PURE__ */
|
|
2734
|
+
}), fd = /* @__PURE__ */ Ee(pd, [["__scopeId", "data-v-866a3799"]]), hd = /* @__PURE__ */ pe({
|
|
2731
2735
|
props: {
|
|
2732
2736
|
deviceInfo: {
|
|
2733
2737
|
type: Object,
|
|
@@ -2739,7 +2743,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2739
2743
|
}) {
|
|
2740
2744
|
const {
|
|
2741
2745
|
deviceInfo: t
|
|
2742
|
-
} = $r(n), o =
|
|
2746
|
+
} = $r(n), o = S(!1), r = S(""), i = async () => {
|
|
2743
2747
|
var u;
|
|
2744
2748
|
if (!((u = t.value) != null && u.deviceId)) return;
|
|
2745
2749
|
o.value = !0;
|
|
@@ -2769,7 +2773,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2769
2773
|
i();
|
|
2770
2774
|
}, {
|
|
2771
2775
|
deep: !0
|
|
2772
|
-
}), () =>
|
|
2776
|
+
}), () => x(We, null, [e.default({
|
|
2773
2777
|
videoUrl: r.value,
|
|
2774
2778
|
loading: o.value,
|
|
2775
2779
|
onDirectionControl: a,
|
|
@@ -2778,12 +2782,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
|
|
|
2778
2782
|
}
|
|
2779
2783
|
});
|
|
2780
2784
|
function gd(n) {
|
|
2781
|
-
const e =
|
|
2785
|
+
const e = S(0), t = S(), {
|
|
2782
2786
|
toggle: o,
|
|
2783
2787
|
isFullscreen: r
|
|
2784
2788
|
} = lt(t);
|
|
2785
2789
|
return {
|
|
2786
|
-
render: () =>
|
|
2790
|
+
render: () => x(Zu, {
|
|
2787
2791
|
ref: t,
|
|
2788
2792
|
gridNum: n.gridNum,
|
|
2789
2793
|
activeIndex: e.value,
|
|
@@ -2794,17 +2798,17 @@ function gd(n) {
|
|
|
2794
2798
|
index: a
|
|
2795
2799
|
}) => {
|
|
2796
2800
|
const l = n.deviceList[a];
|
|
2797
|
-
return
|
|
2801
|
+
return x(hd, {
|
|
2798
2802
|
deviceInfo: l
|
|
2799
2803
|
}, {
|
|
2800
2804
|
default: ({
|
|
2801
2805
|
videoUrl: c,
|
|
2802
2806
|
onDirectionControl: s,
|
|
2803
2807
|
onZoomControl: u,
|
|
2804
|
-
loading:
|
|
2805
|
-
}) =>
|
|
2808
|
+
loading: A
|
|
2809
|
+
}) => x(fd, {
|
|
2806
2810
|
type: "live",
|
|
2807
|
-
loading:
|
|
2811
|
+
loading: A,
|
|
2808
2812
|
videoUrl: c,
|
|
2809
2813
|
title: l.deviceName,
|
|
2810
2814
|
onDirectionControl: s,
|
|
@@ -2834,7 +2838,7 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2834
2838
|
Po({
|
|
2835
2839
|
fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
|
|
2836
2840
|
});
|
|
2837
|
-
const e = n, t =
|
|
2841
|
+
const e = n, t = S(!0), { render: o, toggleFullscreen: r } = gd(e), i = Ce(() => {
|
|
2838
2842
|
let a = {};
|
|
2839
2843
|
switch (e.gridNum) {
|
|
2840
2844
|
case 1:
|
|
@@ -2849,7 +2853,7 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2849
2853
|
}
|
|
2850
2854
|
return a;
|
|
2851
2855
|
});
|
|
2852
|
-
return (a, l) => (H(), V(
|
|
2856
|
+
return (a, l) => (H(), V(v(sn), {
|
|
2853
2857
|
size: "mini",
|
|
2854
2858
|
title: "视频监控",
|
|
2855
2859
|
"custom-class": `das-linakge-video-dialog ${i.value}`,
|
|
@@ -2862,23 +2866,23 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2862
2866
|
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
|
|
2863
2867
|
onClosed: a.closeCallback
|
|
2864
2868
|
}, {
|
|
2865
|
-
header:
|
|
2869
|
+
header: L(() => [
|
|
2866
2870
|
Ad,
|
|
2867
|
-
|
|
2868
|
-
default:
|
|
2869
|
-
|
|
2871
|
+
x(v(ae), { content: "页面全屏" }, {
|
|
2872
|
+
default: L(() => [
|
|
2873
|
+
x(v(De), {
|
|
2870
2874
|
class: "icon",
|
|
2871
2875
|
icon: "fullscreen2",
|
|
2872
2876
|
iconColor: "#999",
|
|
2873
|
-
onClick:
|
|
2877
|
+
onClick: v(r)
|
|
2874
2878
|
}, null, 8, ["onClick"])
|
|
2875
2879
|
]),
|
|
2876
2880
|
_: 1
|
|
2877
2881
|
/* STABLE */
|
|
2878
2882
|
})
|
|
2879
2883
|
]),
|
|
2880
|
-
default:
|
|
2881
|
-
t.value ? (H(), V(
|
|
2884
|
+
default: L(() => [
|
|
2885
|
+
t.value ? (H(), V(v(o), { key: 0 })) : N("v-if", !0)
|
|
2882
2886
|
]),
|
|
2883
2887
|
_: 1
|
|
2884
2888
|
/* STABLE */
|
|
@@ -2895,7 +2899,7 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2895
2899
|
vt(a, r);
|
|
2896
2900
|
});
|
|
2897
2901
|
}, yd = () => {
|
|
2898
|
-
const n =
|
|
2902
|
+
const n = S(4), e = S([]), t = S(null), o = async (i) => {
|
|
2899
2903
|
const [a, l] = await Vu(i).run();
|
|
2900
2904
|
if (!a)
|
|
2901
2905
|
return l;
|
|
@@ -2911,22 +2915,22 @@ const Ad = /* @__PURE__ */ $(
|
|
|
2911
2915
|
var u;
|
|
2912
2916
|
if ((s == null ? void 0 : s.project) === i) {
|
|
2913
2917
|
n.value = s.layout;
|
|
2914
|
-
let
|
|
2918
|
+
let A = {
|
|
2915
2919
|
projectId: i,
|
|
2916
2920
|
deviceIds: s == null ? void 0 : s.deviceId
|
|
2917
|
-
},
|
|
2918
|
-
let
|
|
2921
|
+
}, p = (await o(A)).map((w) => {
|
|
2922
|
+
let _ = w.lookupOrOperation == 1;
|
|
2919
2923
|
return {
|
|
2920
|
-
id:
|
|
2921
|
-
productId:
|
|
2922
|
-
deviceId:
|
|
2923
|
-
deviceName:
|
|
2924
|
-
authType:
|
|
2924
|
+
id: w.id,
|
|
2925
|
+
productId: w.productId,
|
|
2926
|
+
deviceId: w.deviceId,
|
|
2927
|
+
deviceName: w.deviceName,
|
|
2928
|
+
authType: w.controlAuthorization == 1 ? 2 : 1,
|
|
2925
2929
|
// 1 查看权限 2 查看+操作权限
|
|
2926
|
-
show: !!
|
|
2930
|
+
show: !!_
|
|
2927
2931
|
};
|
|
2928
2932
|
});
|
|
2929
|
-
e.value =
|
|
2933
|
+
e.value = p.filter((w) => !!w.show), (u = e.value) != null && u.length && vd({ gridNum: n.value, deviceList: e.value });
|
|
2930
2934
|
}
|
|
2931
2935
|
}
|
|
2932
2936
|
}));
|
|
@@ -3078,7 +3082,7 @@ class at {
|
|
|
3078
3082
|
}
|
|
3079
3083
|
at.instance = new at();
|
|
3080
3084
|
const Id = "8.0.7";
|
|
3081
|
-
class
|
|
3085
|
+
class Y {
|
|
3082
3086
|
static isRequired(e, t) {
|
|
3083
3087
|
if (e == null)
|
|
3084
3088
|
throw new Error(`The '${t}' argument is required.`);
|
|
@@ -3526,7 +3530,7 @@ class _n {
|
|
|
3526
3530
|
constructor(e, t, o, r, i, a, l) {
|
|
3527
3531
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
3528
3532
|
this._logger.log(h.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
3529
|
-
},
|
|
3533
|
+
}, Y.isRequired(e, "connection"), Y.isRequired(t, "logger"), Y.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
|
|
3530
3534
|
}
|
|
3531
3535
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
3532
3536
|
get state() {
|
|
@@ -3680,9 +3684,9 @@ class _n {
|
|
|
3680
3684
|
invoke(e, ...t) {
|
|
3681
3685
|
const [o, r] = this._replaceStreamingParams(t), i = this._createInvocation(e, t, !1, r);
|
|
3682
3686
|
return new Promise((l, c) => {
|
|
3683
|
-
this._callbacks[i.invocationId] = (u,
|
|
3684
|
-
if (
|
|
3685
|
-
c(
|
|
3687
|
+
this._callbacks[i.invocationId] = (u, A) => {
|
|
3688
|
+
if (A) {
|
|
3689
|
+
c(A);
|
|
3686
3690
|
return;
|
|
3687
3691
|
} else u && (u.type === j.Completion ? u.error ? c(new Error(u.error)) : l(u.result) : c(new Error(`Unexpected message type: ${u.type}`)));
|
|
3688
3692
|
};
|
|
@@ -4046,10 +4050,10 @@ class Jd extends Dt {
|
|
|
4046
4050
|
return this._innerClient.getCookieString(e);
|
|
4047
4051
|
}
|
|
4048
4052
|
}
|
|
4049
|
-
var
|
|
4053
|
+
var X;
|
|
4050
4054
|
(function(n) {
|
|
4051
4055
|
n[n.None = 0] = "None", n[n.WebSockets = 1] = "WebSockets", n[n.ServerSentEvents = 2] = "ServerSentEvents", n[n.LongPolling = 4] = "LongPolling";
|
|
4052
|
-
})(
|
|
4056
|
+
})(X || (X = {}));
|
|
4053
4057
|
var se;
|
|
4054
4058
|
(function(n) {
|
|
4055
4059
|
n[n.Text = 1] = "Text", n[n.Binary = 2] = "Binary";
|
|
@@ -4077,7 +4081,7 @@ class Ao {
|
|
|
4077
4081
|
this._httpClient = e, this._logger = t, this._pollAbort = new Wd(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
4078
4082
|
}
|
|
4079
4083
|
async connect(e, t) {
|
|
4080
|
-
if (
|
|
4084
|
+
if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(h.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
4081
4085
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
4082
4086
|
const [o, r] = Ke(), i = { [o]: r, ...this._options.headers }, a = {
|
|
4083
4087
|
abortSignal: this._pollAbort.signal,
|
|
@@ -4143,7 +4147,7 @@ class zd {
|
|
|
4143
4147
|
this._httpClient = e, this._accessToken = t, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
4144
4148
|
}
|
|
4145
4149
|
async connect(e, t) {
|
|
4146
|
-
return
|
|
4150
|
+
return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(h.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
4147
4151
|
let i = !1;
|
|
4148
4152
|
if (t !== se.Text) {
|
|
4149
4153
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
@@ -4193,7 +4197,7 @@ class Vd {
|
|
|
4193
4197
|
this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = i, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
4194
4198
|
}
|
|
4195
4199
|
async connect(e, t) {
|
|
4196
|
-
|
|
4200
|
+
Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(h.Trace, "(WebSockets transport) Connecting.");
|
|
4197
4201
|
let o;
|
|
4198
4202
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, i) => {
|
|
4199
4203
|
e = e.replace(/^http/, "ws");
|
|
@@ -4201,8 +4205,8 @@ class Vd {
|
|
|
4201
4205
|
const l = this._httpClient.getCookieString(e);
|
|
4202
4206
|
let c = !1;
|
|
4203
4207
|
if (K.isNode || K.isReactNative) {
|
|
4204
|
-
const s = {}, [u,
|
|
4205
|
-
s[u] =
|
|
4208
|
+
const s = {}, [u, A] = Ke();
|
|
4209
|
+
s[u] = A, o && (s[Le.Authorization] = `Bearer ${o}`), l && (s[Le.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
|
|
4206
4210
|
headers: { ...s, ...this._headers }
|
|
4207
4211
|
});
|
|
4208
4212
|
} else
|
|
@@ -4250,7 +4254,7 @@ const mo = 100;
|
|
|
4250
4254
|
class qd {
|
|
4251
4255
|
constructor(e, t = {}) {
|
|
4252
4256
|
if (this._stopPromiseResolver = () => {
|
|
4253
|
-
}, this.features = {}, this._negotiateVersion = 1,
|
|
4257
|
+
}, this.features = {}, this._negotiateVersion = 1, Y.isRequired(e, "url"), this._logger = Sd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
|
|
4254
4258
|
t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
|
|
4255
4259
|
else
|
|
4256
4260
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -4263,7 +4267,7 @@ class qd {
|
|
|
4263
4267
|
!K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Jd(t.httpClient || new Ld(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
4264
4268
|
}
|
|
4265
4269
|
async start(e) {
|
|
4266
|
-
if (e = e || se.Binary,
|
|
4270
|
+
if (e = e || se.Binary, Y.isIn(e, se, "transferFormat"), this._logger.log(h.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
|
|
4267
4271
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
4268
4272
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
4269
4273
|
const t = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -4307,8 +4311,8 @@ class qd {
|
|
|
4307
4311
|
this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
|
|
4308
4312
|
try {
|
|
4309
4313
|
if (this._options.skipNegotiation)
|
|
4310
|
-
if (this._options.transport ===
|
|
4311
|
-
this.transport = this._constructTransport(
|
|
4314
|
+
if (this._options.transport === X.WebSockets)
|
|
4315
|
+
this.transport = this._constructTransport(X.WebSockets), await this._startTransport(t, e);
|
|
4312
4316
|
else
|
|
4313
4317
|
throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
|
|
4314
4318
|
else {
|
|
@@ -4375,16 +4379,16 @@ class qd {
|
|
|
4375
4379
|
if (this.transport = u, !c) {
|
|
4376
4380
|
try {
|
|
4377
4381
|
c = await this._getNegotiationResponse(e);
|
|
4378
|
-
} catch (
|
|
4379
|
-
return Promise.reject(
|
|
4382
|
+
} catch (A) {
|
|
4383
|
+
return Promise.reject(A);
|
|
4380
4384
|
}
|
|
4381
4385
|
i = this._createConnectUrl(e, c.connectionToken);
|
|
4382
4386
|
}
|
|
4383
4387
|
try {
|
|
4384
4388
|
await this._startTransport(i, r), this.connectionId = c.connectionId;
|
|
4385
4389
|
return;
|
|
4386
|
-
} catch (
|
|
4387
|
-
if (this._logger.log(h.Error, `Failed to start the transport '${s.transport}': ${
|
|
4390
|
+
} catch (A) {
|
|
4391
|
+
if (this._logger.log(h.Error, `Failed to start the transport '${s.transport}': ${A}`), c = void 0, a.push(new wd(`${s.transport} failed: ${A}`, X[s.transport])), this._connectionState !== "Connecting") {
|
|
4388
4392
|
const g = "Failed to select transport before stop() was called.";
|
|
4389
4393
|
return this._logger.log(h.Debug, g), Promise.reject(new ve(g));
|
|
4390
4394
|
}
|
|
@@ -4395,15 +4399,15 @@ class qd {
|
|
|
4395
4399
|
}
|
|
4396
4400
|
_constructTransport(e) {
|
|
4397
4401
|
switch (e) {
|
|
4398
|
-
case
|
|
4402
|
+
case X.WebSockets:
|
|
4399
4403
|
if (!this._options.WebSocket)
|
|
4400
4404
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
4401
4405
|
return new Vd(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
4402
|
-
case
|
|
4406
|
+
case X.ServerSentEvents:
|
|
4403
4407
|
if (!this._options.EventSource)
|
|
4404
4408
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
4405
4409
|
return new zd(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
4406
|
-
case
|
|
4410
|
+
case X.LongPolling:
|
|
4407
4411
|
return new Ao(this._httpClient, this._logger, this._options);
|
|
4408
4412
|
default:
|
|
4409
4413
|
throw new Error(`Unknown transport: ${e}.`);
|
|
@@ -4426,23 +4430,23 @@ class qd {
|
|
|
4426
4430
|
} : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, t);
|
|
4427
4431
|
}
|
|
4428
4432
|
_resolveTransportOrError(e, t, o, r) {
|
|
4429
|
-
const i =
|
|
4433
|
+
const i = X[e.transport];
|
|
4430
4434
|
if (i == null)
|
|
4431
4435
|
return this._logger.log(h.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
4432
4436
|
if (Kd(t, i))
|
|
4433
4437
|
if (e.transferFormats.map((l) => se[l]).indexOf(o) >= 0) {
|
|
4434
|
-
if (i ===
|
|
4435
|
-
return this._logger.log(h.Debug, `Skipping transport '${
|
|
4436
|
-
this._logger.log(h.Debug, `Selecting transport '${
|
|
4438
|
+
if (i === X.WebSockets && !this._options.WebSocket || i === X.ServerSentEvents && !this._options.EventSource)
|
|
4439
|
+
return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it is not supported in your environment.'`), new _d(`'${X[i]}' is not supported in your environment.`, i);
|
|
4440
|
+
this._logger.log(h.Debug, `Selecting transport '${X[i]}'.`);
|
|
4437
4441
|
try {
|
|
4438
|
-
return this.features.reconnect = i ===
|
|
4442
|
+
return this.features.reconnect = i === X.WebSockets ? r : void 0, this._constructTransport(i);
|
|
4439
4443
|
} catch (l) {
|
|
4440
4444
|
return l;
|
|
4441
4445
|
}
|
|
4442
4446
|
} else
|
|
4443
|
-
return this._logger.log(h.Debug, `Skipping transport '${
|
|
4447
|
+
return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${X[i]}' does not support ${se[o]}.`);
|
|
4444
4448
|
else
|
|
4445
|
-
return this._logger.log(h.Debug, `Skipping transport '${
|
|
4449
|
+
return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it was disabled by the client.`), new bd(`'${X[i]}' is disabled by the client.`, i);
|
|
4446
4450
|
}
|
|
4447
4451
|
_isITransport(e) {
|
|
4448
4452
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -4636,7 +4640,7 @@ function Yd(n) {
|
|
|
4636
4640
|
}
|
|
4637
4641
|
class ep {
|
|
4638
4642
|
configureLogging(e) {
|
|
4639
|
-
if (
|
|
4643
|
+
if (Y.isRequired(e, "logging"), tp(e))
|
|
4640
4644
|
this.logger = e;
|
|
4641
4645
|
else if (typeof e == "string") {
|
|
4642
4646
|
const t = Yd(e);
|
|
@@ -4646,7 +4650,7 @@ class ep {
|
|
|
4646
4650
|
return this;
|
|
4647
4651
|
}
|
|
4648
4652
|
withUrl(e, t) {
|
|
4649
|
-
return
|
|
4653
|
+
return Y.isRequired(e, "url"), Y.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
|
|
4650
4654
|
...this.httpConnectionOptions,
|
|
4651
4655
|
transport: t
|
|
4652
4656
|
}, this;
|
|
@@ -4656,7 +4660,7 @@ class ep {
|
|
|
4656
4660
|
* @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
|
|
4657
4661
|
*/
|
|
4658
4662
|
withHubProtocol(e) {
|
|
4659
|
-
return
|
|
4663
|
+
return Y.isRequired(e, "protocol"), this.protocol = e, this;
|
|
4660
4664
|
}
|
|
4661
4665
|
withAutomaticReconnect(e) {
|
|
4662
4666
|
if (this.reconnectPolicy)
|
|
@@ -4668,14 +4672,14 @@ class ep {
|
|
|
4668
4672
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
4669
4673
|
*/
|
|
4670
4674
|
withServerTimeout(e) {
|
|
4671
|
-
return
|
|
4675
|
+
return Y.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
|
|
4672
4676
|
}
|
|
4673
4677
|
/** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
4674
4678
|
*
|
|
4675
4679
|
* @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
|
|
4676
4680
|
*/
|
|
4677
4681
|
withKeepAliveInterval(e) {
|
|
4678
|
-
return
|
|
4682
|
+
return Y.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
|
|
4679
4683
|
}
|
|
4680
4684
|
/** Enables and configures options for the Stateful Reconnect feature.
|
|
4681
4685
|
*
|
|
@@ -4703,7 +4707,7 @@ let { baseURL: np } = He();
|
|
|
4703
4707
|
const op = () => {
|
|
4704
4708
|
const n = new ep().withUrl(`${np}/api/tool/event-bus`, {
|
|
4705
4709
|
skipNegotiation: !0,
|
|
4706
|
-
transport:
|
|
4710
|
+
transport: X.WebSockets
|
|
4707
4711
|
}).withAutomaticReconnect().build();
|
|
4708
4712
|
return n.start().then(() => {
|
|
4709
4713
|
}).catch((e) => {
|
|
@@ -4727,54 +4731,54 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4727
4731
|
return !1;
|
|
4728
4732
|
}
|
|
4729
4733
|
}, l = async (m) => {
|
|
4730
|
-
var
|
|
4731
|
-
const
|
|
4734
|
+
var P;
|
|
4735
|
+
const y = F(), b = ((P = y.appcategorys) == null ? void 0 : P.map((C) => C.apps).flat()) || [];
|
|
4732
4736
|
if (Array.isArray(m)) {
|
|
4733
|
-
const
|
|
4737
|
+
const C = m.filter((k) => k.code).map((k) => k.code);
|
|
4734
4738
|
if (m.length) {
|
|
4735
|
-
if (
|
|
4736
|
-
const
|
|
4737
|
-
if (
|
|
4738
|
-
t({ currentMenu:
|
|
4739
|
+
if (y.currentSubAppCode) {
|
|
4740
|
+
const I = y.currentSubApp.menus ?? [], T = ye(I).find((M) => C.includes(M.code));
|
|
4741
|
+
if (T) {
|
|
4742
|
+
t({ currentMenu: T });
|
|
4739
4743
|
return;
|
|
4740
4744
|
}
|
|
4741
4745
|
}
|
|
4742
|
-
const
|
|
4743
|
-
|
|
4746
|
+
const k = b.find((I) => C.includes(I.code));
|
|
4747
|
+
k && e({ microApp: k });
|
|
4744
4748
|
}
|
|
4745
4749
|
}
|
|
4746
4750
|
if (typeof m == "string")
|
|
4747
4751
|
if (m.includes(":")) {
|
|
4748
|
-
const
|
|
4749
|
-
if (!
|
|
4750
|
-
const
|
|
4751
|
-
|
|
4752
|
+
const C = m.split(":"), [k = "", I = ""] = C;
|
|
4753
|
+
if (!k) return;
|
|
4754
|
+
const T = b.find((M) => M.code === k);
|
|
4755
|
+
T && e({ microApp: T, menuCode: I });
|
|
4752
4756
|
} else {
|
|
4753
|
-
const
|
|
4754
|
-
if (
|
|
4755
|
-
e({ microApp:
|
|
4757
|
+
const C = m, k = b.find((I) => I.code === C);
|
|
4758
|
+
if (k)
|
|
4759
|
+
e({ microApp: k });
|
|
4756
4760
|
else {
|
|
4757
|
-
const [
|
|
4758
|
-
if (
|
|
4759
|
-
const M =
|
|
4760
|
-
M && e({ microApp: M, menuCode:
|
|
4761
|
+
const [I, T] = await lp().run({ menuCode: C });
|
|
4762
|
+
if (I) return;
|
|
4763
|
+
const M = b.find((R) => R.code === T);
|
|
4764
|
+
M && e({ microApp: M, menuCode: C });
|
|
4761
4765
|
}
|
|
4762
4766
|
}
|
|
4763
4767
|
};
|
|
4764
|
-
let c =
|
|
4768
|
+
let c = S(!0);
|
|
4765
4769
|
const s = (m) => {
|
|
4766
4770
|
setTimeout(async () => {
|
|
4767
|
-
var
|
|
4771
|
+
var y, b;
|
|
4768
4772
|
if (c.value) {
|
|
4769
|
-
const [
|
|
4770
|
-
|
|
4773
|
+
const [P, C] = await ap().run({}, { params: { aliasName: m.actionValue } });
|
|
4774
|
+
P ? await Ht().run({
|
|
4771
4775
|
uniqueId: m.uniqueId,
|
|
4772
4776
|
status: 0,
|
|
4773
4777
|
errorMsg: "未找到" + m.actionValue
|
|
4774
|
-
}) :
|
|
4778
|
+
}) : C.length ? (C.length > 1 ? l(C) : l((y = C[0]) == null ? void 0 : y.code), await Ht().run({
|
|
4775
4779
|
uniqueId: m.uniqueId,
|
|
4776
4780
|
status: 1,
|
|
4777
|
-
targetName: (
|
|
4781
|
+
targetName: (b = C[0]) == null ? void 0 : b.name
|
|
4778
4782
|
})) : await Ht().run({
|
|
4779
4783
|
uniqueId: m.uniqueId,
|
|
4780
4784
|
status: 0,
|
|
@@ -4784,31 +4788,31 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4784
4788
|
c.value = !0;
|
|
4785
4789
|
}, 2e3);
|
|
4786
4790
|
}, u = (m) => {
|
|
4787
|
-
const
|
|
4788
|
-
op().on(`${m}:${
|
|
4789
|
-
let
|
|
4790
|
-
if (
|
|
4791
|
-
|
|
4792
|
-
else if (
|
|
4793
|
-
const
|
|
4794
|
-
l(
|
|
4795
|
-
} else
|
|
4791
|
+
const y = Yt(), b = JSON.parse(atob(y.split(".")[1])).sub;
|
|
4792
|
+
op().on(`${m}:${b}`, async function(C) {
|
|
4793
|
+
let k = a(C);
|
|
4794
|
+
if (k)
|
|
4795
|
+
k.uniqueId && k.actionKey == "switch-menu" && s(k);
|
|
4796
|
+
else if (C.includes("openAppMenu=")) {
|
|
4797
|
+
const I = C.split("="), T = JSON.parse(I[1]);
|
|
4798
|
+
l(T);
|
|
4799
|
+
} else C.includes("iocIsRun") && (c.value = !1);
|
|
4796
4800
|
});
|
|
4797
|
-
},
|
|
4798
|
-
|
|
4799
|
-
const
|
|
4800
|
-
const [m,
|
|
4801
|
-
|
|
4801
|
+
}, A = S(""), [g, p] = await vo().run();
|
|
4802
|
+
A.value = p, u(A.value);
|
|
4803
|
+
const w = async () => {
|
|
4804
|
+
const [m, y] = await vo().run();
|
|
4805
|
+
y !== A.value && (A.value = y, u(A.value));
|
|
4802
4806
|
};
|
|
4803
4807
|
o = setInterval(() => {
|
|
4804
|
-
|
|
4808
|
+
w();
|
|
4805
4809
|
}, 72e5);
|
|
4806
|
-
const
|
|
4807
|
-
m === "online" &&
|
|
4808
|
-
|
|
4809
|
-
}, 5e3),
|
|
4810
|
+
const _ = S("online"), f = (m) => {
|
|
4811
|
+
m === "online" && _.value === "offline" && setTimeout(() => {
|
|
4812
|
+
w();
|
|
4813
|
+
}, 5e3), _.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
4810
4814
|
};
|
|
4811
|
-
window.addEventListener("online", () =>
|
|
4815
|
+
window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
|
|
4812
4816
|
}), Et(() => {
|
|
4813
4817
|
o && clearInterval(o);
|
|
4814
4818
|
}), {};
|
|
@@ -4822,9 +4826,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4822
4826
|
},
|
|
4823
4827
|
emits: ["emitFn"],
|
|
4824
4828
|
setup(n, { expose: e, emit: t }) {
|
|
4825
|
-
const o = n, r = t, i =
|
|
4826
|
-
|
|
4827
|
-
const s =
|
|
4829
|
+
const o = n, r = t, i = S(!1), a = S(null), l = S(0), c = S(!1);
|
|
4830
|
+
S("");
|
|
4831
|
+
const s = S({
|
|
4828
4832
|
processTypeId: "confirm",
|
|
4829
4833
|
// 处理类型
|
|
4830
4834
|
reason: "",
|
|
@@ -4850,7 +4854,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4850
4854
|
// 处置时限
|
|
4851
4855
|
interval: 2
|
|
4852
4856
|
// 时限刻度 默认选择“时”
|
|
4853
|
-
}), u =
|
|
4857
|
+
}), u = S({
|
|
4854
4858
|
processTypeId: "",
|
|
4855
4859
|
// 处理类型 必填
|
|
4856
4860
|
reason: "",
|
|
@@ -4870,78 +4874,78 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4870
4874
|
// 事件等级id
|
|
4871
4875
|
timeLimit: ""
|
|
4872
4876
|
// 处置时限
|
|
4873
|
-
}),
|
|
4877
|
+
}), A = S(!1), g = S([]), p = S([]), w = S([
|
|
4874
4878
|
{ id: 2, name: Q("时").value },
|
|
4875
4879
|
{ id: 1, name: Q("分").value },
|
|
4876
4880
|
{ id: 3, name: Q("不限").value }
|
|
4877
|
-
]),
|
|
4878
|
-
|
|
4879
|
-
const
|
|
4880
|
-
const
|
|
4881
|
-
O != null && O.id && (
|
|
4882
|
-
const [
|
|
4883
|
-
return
|
|
4884
|
-
},
|
|
4885
|
-
const
|
|
4886
|
-
return
|
|
4887
|
-
},
|
|
4888
|
-
const [O,
|
|
4881
|
+
]), _ = S([]), f = S(""), d = S("告警对象位置"), m = S(""), y = S([]), b = S("");
|
|
4882
|
+
S("[]");
|
|
4883
|
+
const P = S(!0), C = S(!0), k = async (O) => {
|
|
4884
|
+
const E = { name: "1" };
|
|
4885
|
+
O != null && O.id && (E.spaceId = O.id);
|
|
4886
|
+
const [B, me] = await vp(E).run();
|
|
4887
|
+
return B ? {} : me;
|
|
4888
|
+
}, I = async (O) => {
|
|
4889
|
+
const E = { name: O || "" }, [B, me] = await yp(E).run();
|
|
4890
|
+
return B ? {} : me;
|
|
4891
|
+
}, T = S(!0), M = S(!0), R = S([]), U = async () => {
|
|
4892
|
+
const [O, E] = await mp().run({ pageIndex: -1, pageSize: -1 });
|
|
4889
4893
|
if (O) return {};
|
|
4890
|
-
|
|
4894
|
+
R.value = E.data.filter((B) => B.status), R.value.length > 0 && (s.value.workOrderRules = R.value[0].id);
|
|
4891
4895
|
};
|
|
4892
4896
|
re(c, (O) => {
|
|
4893
4897
|
O || (G(), fe());
|
|
4894
4898
|
}), re(
|
|
4895
|
-
|
|
4899
|
+
C,
|
|
4896
4900
|
(O) => {
|
|
4897
|
-
O ? (
|
|
4901
|
+
O ? (P.value = !0, s.value.customPath = Q("选填").value) : (P.value = !1, s.value.customPath = "");
|
|
4898
4902
|
},
|
|
4899
4903
|
{ immediate: !0 }
|
|
4900
4904
|
), re(
|
|
4901
4905
|
M,
|
|
4902
4906
|
(O) => {
|
|
4903
|
-
O ? (s.value.reportTheme = Q("告警对象").value,
|
|
4907
|
+
O ? (s.value.reportTheme = Q("告警对象").value, T.value = !0) : (m.value = "请输入", s.value.reportTheme = "", T.value = !1);
|
|
4904
4908
|
},
|
|
4905
4909
|
{ immediate: !0 }
|
|
4906
4910
|
);
|
|
4907
4911
|
const W = (O) => {
|
|
4908
|
-
var
|
|
4909
|
-
return (
|
|
4912
|
+
var E;
|
|
4913
|
+
return (E = a.value) == null ? void 0 : E.parentNode.parentNode;
|
|
4910
4914
|
}, ie = (O) => {
|
|
4911
4915
|
u.value.reportTheme = "";
|
|
4912
|
-
},
|
|
4913
|
-
|
|
4916
|
+
}, Te = (O, E) => {
|
|
4917
|
+
E.length > 0 && (f.value = E[0].path), s.value.reportPosition = O, b.value = "";
|
|
4914
4918
|
}, ft = (O) => {
|
|
4915
|
-
O && (u.value.reportPosition = "",
|
|
4919
|
+
O && (u.value.reportPosition = "", f.value = ""), O ? (s.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, f.value = "", d.value = "请选择");
|
|
4916
4920
|
}, oe = (O) => {
|
|
4917
4921
|
O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", m.value = "告警对象") : (s.value.reportTheme = "", m.value = "请输入");
|
|
4918
4922
|
}, G = () => {
|
|
4919
4923
|
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 = "";
|
|
4920
4924
|
}, fe = () => {
|
|
4921
|
-
s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null,
|
|
4925
|
+
s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, C.value = !0, M.value = !0, T.value = !0, s.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, g.value = [], p.value = [];
|
|
4922
4926
|
}, Oe = (O) => {
|
|
4923
|
-
O == "eventTypeId" && (s.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", s.value.interval == 3 ? (
|
|
4927
|
+
O == "eventTypeId" && (s.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", s.value.interval == 3 ? (A.value = !0, s.value.timeLimit = "") : A.value = !1);
|
|
4924
4928
|
}, yr = async () => {
|
|
4925
|
-
const [O,
|
|
4929
|
+
const [O, E] = await _p().run();
|
|
4926
4930
|
if (O) return {};
|
|
4927
|
-
g.value =
|
|
4931
|
+
g.value = E, s.value.eventTypeId || (s.value.eventTypeId = E[0] ? E[0].id : null), Cn();
|
|
4928
4932
|
}, Cn = async () => {
|
|
4929
4933
|
const O = {
|
|
4930
4934
|
eventTypeId: s.value.eventTypeId
|
|
4931
|
-
}, [
|
|
4932
|
-
if (
|
|
4935
|
+
}, [E, B] = await bp(O).run();
|
|
4936
|
+
if (E) return {};
|
|
4933
4937
|
const me = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
4934
|
-
|
|
4938
|
+
p.value = B.map((ht) => ({
|
|
4935
4939
|
id: `${ht}`,
|
|
4936
4940
|
name: me[ht] ? me[ht] : ht
|
|
4937
|
-
})),
|
|
4941
|
+
})), B.length && !s.value.eventLevelId && (s.value.eventLevelId = p.value[0].id, In());
|
|
4938
4942
|
}, In = async () => {
|
|
4939
4943
|
const O = {
|
|
4940
4944
|
eventTypeId: s.value.eventTypeId,
|
|
4941
4945
|
eventLevel: s.value.eventLevelId
|
|
4942
|
-
}, [
|
|
4943
|
-
if (
|
|
4944
|
-
s.value.interval =
|
|
4946
|
+
}, [E, B] = await wp(O).run();
|
|
4947
|
+
if (E) return {};
|
|
4948
|
+
s.value.interval = B.handleTimeUnit, B.handleTimeUnit == 3 ? s.value.timeLimit = "" : s.value.timeLimit = B.handleTime;
|
|
4945
4949
|
}, _r = (O) => {
|
|
4946
4950
|
G();
|
|
4947
4951
|
}, br = async () => {
|
|
@@ -4951,23 +4955,23 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4951
4955
|
projectId: o.projectId
|
|
4952
4956
|
};
|
|
4953
4957
|
i.value = !0;
|
|
4954
|
-
const [
|
|
4955
|
-
if (
|
|
4958
|
+
const [E, B] = await hp(O).run();
|
|
4959
|
+
if (E) {
|
|
4956
4960
|
i.value = !1;
|
|
4957
4961
|
return;
|
|
4958
4962
|
}
|
|
4959
|
-
i.value = !1,
|
|
4960
|
-
for (let me = 0; me <
|
|
4961
|
-
|
|
4963
|
+
i.value = !1, _.value = B;
|
|
4964
|
+
for (let me = 0; me < _.value.length; me++)
|
|
4965
|
+
_.value[me].id === "createorder" && U(), _.value[me].id === "createcontingency" && yr();
|
|
4962
4966
|
}, wr = () => {
|
|
4963
4967
|
let O = !0;
|
|
4964
4968
|
if (s.value.processTypeId == "dealwith")
|
|
4965
4969
|
s.value.reason.trim() || (O = !1, u.value.reason = Q("必填,最多50个字符/汉字").value), s.value.treatmentPlan.trim() || (O = !1, u.value.treatmentPlan = Q("必填,最多50个字符/汉字").value);
|
|
4966
4970
|
else if (s.value.processTypeId == "createorder")
|
|
4967
|
-
|
|
4971
|
+
C.value ? u.value.reportPosition = "" : !s.value.reportPosition && !s.value.customPath ? (O = !1, u.value.reportPosition = Q("必填").value) : u.value.reportPosition = "", M.value || s.value.reportTheme ? u.value.reportTheme = "" : (O = !1, u.value.reportTheme = Q("必填,最多20个汉字/字符").value), s.value.workOrderRules ? u.value.workOrderRules = "" : (O = !1, u.value.workOrderRules = Q("必填").value);
|
|
4968
4972
|
else if (s.value.processTypeId == "createcontingency") {
|
|
4969
|
-
const
|
|
4970
|
-
s.value.eventTypeId || (O = !1, u.value.eventTypeId = Q("必选").value), s.value.eventLevelId || (O = !1, u.value.eventLevelId = Q("必选").value), s.value.interval != 3 && !
|
|
4973
|
+
const E = /^[1-9][0-9]{0,2}$/;
|
|
4974
|
+
s.value.eventTypeId || (O = !1, u.value.eventTypeId = Q("必选").value), s.value.eventLevelId || (O = !1, u.value.eventLevelId = Q("必选").value), s.value.interval != 3 && !E.test(s.value.timeLimit) && (O = !1, u.value.timeLimit = Q("必填,请输入1~999之间的正整数").value);
|
|
4971
4975
|
}
|
|
4972
4976
|
return O;
|
|
4973
4977
|
}, Cr = () => {
|
|
@@ -4984,13 +4988,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
4984
4988
|
processTypeId: s.value.processTypeId
|
|
4985
4989
|
//处理类型id
|
|
4986
4990
|
};
|
|
4987
|
-
s.value.processTypeId === "createorder" ? (O.path =
|
|
4988
|
-
const [
|
|
4991
|
+
s.value.processTypeId === "createorder" ? (O.path = C.value ? "" : s.value.customPath, O.topic = M.value ? "" : s.value.reportTheme, O.spaceId = C.value ? "" : s.value.reportPosition ?? "", O.orderId = s.value.workOrderRules) : s.value.processTypeId === "createcontingency" ? (O.eventTypeId = s.value.eventTypeId, O.eventLevelId = s.value.eventLevelId, O.timeLimit = s.value.interval == 3 ? null : Number(s.value.timeLimit), O.interval = s.value.interval) : (O.reason = s.value.reason, O.treatmentPlan = s.value.treatmentPlan, O.remarks = s.value.remarks), i.value = !0, r("emitFn", "startHandle");
|
|
4992
|
+
const [E, B] = await gp(O, {
|
|
4989
4993
|
params: {
|
|
4990
4994
|
projectId: o.projectId
|
|
4991
4995
|
}
|
|
4992
4996
|
}).run();
|
|
4993
|
-
if (
|
|
4997
|
+
if (E) {
|
|
4994
4998
|
i.value = !1;
|
|
4995
4999
|
return;
|
|
4996
5000
|
}
|
|
@@ -5003,10 +5007,10 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5003
5007
|
return e({
|
|
5004
5008
|
open: Er,
|
|
5005
5009
|
close: Lt
|
|
5006
|
-
}), (O,
|
|
5007
|
-
|
|
5010
|
+
}), (O, E) => (H(), de("div", Cp, [
|
|
5011
|
+
x(v(sn), {
|
|
5008
5012
|
modelValue: c.value,
|
|
5009
|
-
"onUpdate:modelValue":
|
|
5013
|
+
"onUpdate:modelValue": E[31] || (E[31] = (B) => c.value = B),
|
|
5010
5014
|
type: "basic",
|
|
5011
5015
|
size: "small",
|
|
5012
5016
|
height: 500,
|
|
@@ -5016,22 +5020,22 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5016
5020
|
},
|
|
5017
5021
|
"destroy-on-close": ""
|
|
5018
5022
|
}, {
|
|
5019
|
-
header:
|
|
5023
|
+
header: L(() => [
|
|
5020
5024
|
ue(
|
|
5021
|
-
|
|
5025
|
+
Z(v(Q)("告警处理").value),
|
|
5022
5026
|
1
|
|
5023
5027
|
/* TEXT */
|
|
5024
5028
|
)
|
|
5025
5029
|
]),
|
|
5026
|
-
footer:
|
|
5030
|
+
footer: L(() => [
|
|
5027
5031
|
$("div", kp, [
|
|
5028
|
-
|
|
5032
|
+
x(v(ke), {
|
|
5029
5033
|
size: "middle",
|
|
5030
5034
|
onClick: Cr
|
|
5031
5035
|
}, {
|
|
5032
|
-
default:
|
|
5036
|
+
default: L(() => [
|
|
5033
5037
|
ue(
|
|
5034
|
-
|
|
5038
|
+
Z(v(Q)("取消").value),
|
|
5035
5039
|
1
|
|
5036
5040
|
/* TEXT */
|
|
5037
5041
|
)
|
|
@@ -5039,13 +5043,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5039
5043
|
_: 1
|
|
5040
5044
|
/* STABLE */
|
|
5041
5045
|
}),
|
|
5042
|
-
|
|
5046
|
+
x(v(ke), {
|
|
5043
5047
|
size: "middle",
|
|
5044
|
-
onClick:
|
|
5048
|
+
onClick: E[29] || (E[29] = (B) => En(1))
|
|
5045
5049
|
}, {
|
|
5046
|
-
default:
|
|
5050
|
+
default: L(() => [
|
|
5047
5051
|
ue(
|
|
5048
|
-
|
|
5052
|
+
Z(v(Q)("结束处理").value),
|
|
5049
5053
|
1
|
|
5050
5054
|
/* TEXT */
|
|
5051
5055
|
)
|
|
@@ -5053,14 +5057,14 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5053
5057
|
_: 1
|
|
5054
5058
|
/* STABLE */
|
|
5055
5059
|
}),
|
|
5056
|
-
|
|
5060
|
+
x(v(ke), {
|
|
5057
5061
|
btnType: "primary",
|
|
5058
5062
|
size: "middle",
|
|
5059
|
-
onClick:
|
|
5063
|
+
onClick: E[30] || (E[30] = (B) => En(2))
|
|
5060
5064
|
}, {
|
|
5061
|
-
default:
|
|
5065
|
+
default: L(() => [
|
|
5062
5066
|
ue(
|
|
5063
|
-
|
|
5067
|
+
Z(v(Q)("继续处理").value),
|
|
5064
5068
|
1
|
|
5065
5069
|
/* TEXT */
|
|
5066
5070
|
)
|
|
@@ -5070,9 +5074,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5070
5074
|
})
|
|
5071
5075
|
])
|
|
5072
5076
|
]),
|
|
5073
|
-
default:
|
|
5074
|
-
|
|
5075
|
-
default:
|
|
5077
|
+
default: L(() => [
|
|
5078
|
+
x(v(Bo), { spinning: i.value }, {
|
|
5079
|
+
default: L(() => [
|
|
5076
5080
|
$(
|
|
5077
5081
|
"div",
|
|
5078
5082
|
{
|
|
@@ -5081,19 +5085,19 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5081
5085
|
class: "handle-alarm-dialog-content"
|
|
5082
5086
|
},
|
|
5083
5087
|
[
|
|
5084
|
-
|
|
5088
|
+
x(v(fs), {
|
|
5085
5089
|
style: { width: "100%", height: "100%", "align-items": "center" },
|
|
5086
5090
|
cols: 1,
|
|
5087
5091
|
alignType: "horizontal"
|
|
5088
5092
|
}, {
|
|
5089
|
-
default:
|
|
5090
|
-
|
|
5091
|
-
label:
|
|
5093
|
+
default: L(() => [
|
|
5094
|
+
x(v(_e), {
|
|
5095
|
+
label: v(Q)("处理类型").value,
|
|
5092
5096
|
required: "",
|
|
5093
5097
|
type: "select",
|
|
5094
5098
|
modelValue: s.value.processTypeId,
|
|
5095
|
-
"onUpdate:modelValue":
|
|
5096
|
-
options:
|
|
5099
|
+
"onUpdate:modelValue": E[0] || (E[0] = (B) => s.value.processTypeId = B),
|
|
5100
|
+
options: _.value,
|
|
5097
5101
|
col: 1,
|
|
5098
5102
|
optionsLabelKey: "name",
|
|
5099
5103
|
optionsValueKey: "id",
|
|
@@ -5102,100 +5106,100 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5102
5106
|
marginRight: "0",
|
|
5103
5107
|
onChange: _r
|
|
5104
5108
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
5105
|
-
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(
|
|
5109
|
+
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
|
|
5106
5110
|
key: 0,
|
|
5107
|
-
label:
|
|
5111
|
+
label: v(Q)("告警原因").value,
|
|
5108
5112
|
required: s.value.processTypeId == "dealwith",
|
|
5109
5113
|
type: "input",
|
|
5110
5114
|
maxlength: "50",
|
|
5111
5115
|
col: 1,
|
|
5112
|
-
onFocus:
|
|
5116
|
+
onFocus: E[1] || (E[1] = (B) => u.value.reason = ""),
|
|
5113
5117
|
modelValue: s.value.reason,
|
|
5114
|
-
"onUpdate:modelValue":
|
|
5118
|
+
"onUpdate:modelValue": E[2] || (E[2] = (B) => s.value.reason = B),
|
|
5115
5119
|
error: u.value.reason,
|
|
5116
|
-
"onUpdate:error":
|
|
5120
|
+
"onUpdate:error": E[3] || (E[3] = (B) => u.value.reason = B),
|
|
5117
5121
|
marginBottom: "30px",
|
|
5118
5122
|
marginRight: "0"
|
|
5119
|
-
}, null, 8, ["label", "required", "modelValue", "error"])) :
|
|
5120
|
-
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(
|
|
5123
|
+
}, null, 8, ["label", "required", "modelValue", "error"])) : N("v-if", !0),
|
|
5124
|
+
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
|
|
5121
5125
|
key: 1,
|
|
5122
|
-
label:
|
|
5126
|
+
label: v(Q)("处理方案").value,
|
|
5123
5127
|
required: s.value.processTypeId == "dealwith",
|
|
5124
5128
|
type: "input",
|
|
5125
5129
|
maxlength: "50",
|
|
5126
5130
|
col: 1,
|
|
5127
|
-
onFocus:
|
|
5131
|
+
onFocus: E[4] || (E[4] = (B) => u.value.treatmentPlan = ""),
|
|
5128
5132
|
modelValue: s.value.treatmentPlan,
|
|
5129
|
-
"onUpdate:modelValue":
|
|
5133
|
+
"onUpdate:modelValue": E[5] || (E[5] = (B) => s.value.treatmentPlan = B),
|
|
5130
5134
|
error: u.value.treatmentPlan,
|
|
5131
|
-
"onUpdate:error":
|
|
5135
|
+
"onUpdate:error": E[6] || (E[6] = (B) => u.value.treatmentPlan = B),
|
|
5132
5136
|
marginBottom: "30px",
|
|
5133
5137
|
marginRight: "0"
|
|
5134
|
-
}, null, 8, ["label", "required", "modelValue", "error"])) :
|
|
5135
|
-
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(
|
|
5138
|
+
}, null, 8, ["label", "required", "modelValue", "error"])) : N("v-if", !0),
|
|
5139
|
+
s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
|
|
5136
5140
|
key: 2,
|
|
5137
|
-
label:
|
|
5141
|
+
label: v(Q)("备注").value,
|
|
5138
5142
|
type: "textarea",
|
|
5139
5143
|
"show-word-limit": "",
|
|
5140
5144
|
autosize: "",
|
|
5141
5145
|
maxlength: "100",
|
|
5142
5146
|
col: 1,
|
|
5143
5147
|
modelValue: s.value.remarks,
|
|
5144
|
-
"onUpdate:modelValue":
|
|
5148
|
+
"onUpdate:modelValue": E[7] || (E[7] = (B) => s.value.remarks = B),
|
|
5145
5149
|
marginBottom: "30px",
|
|
5146
5150
|
marginRight: "0"
|
|
5147
|
-
}, null, 8, ["label", "modelValue"])) :
|
|
5148
|
-
s.value.processTypeId == "createorder" ? (H(), V(
|
|
5151
|
+
}, null, 8, ["label", "modelValue"])) : N("v-if", !0),
|
|
5152
|
+
s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
|
|
5149
5153
|
key: 3,
|
|
5150
|
-
label:
|
|
5154
|
+
label: v(Q)("报事位置").value,
|
|
5151
5155
|
required: "",
|
|
5152
5156
|
type: "custom",
|
|
5153
5157
|
error: u.value.reportPosition,
|
|
5154
|
-
"onUpdate:error":
|
|
5158
|
+
"onUpdate:error": E[13] || (E[13] = (B) => u.value.reportPosition = B),
|
|
5155
5159
|
marginBottom: "20px",
|
|
5156
5160
|
marginRight: "0"
|
|
5157
5161
|
}, {
|
|
5158
|
-
default:
|
|
5162
|
+
default: L(() => [
|
|
5159
5163
|
$("div", Ip, [
|
|
5160
5164
|
$("div", Ep, [
|
|
5161
|
-
|
|
5165
|
+
x(v(ps), {
|
|
5162
5166
|
borderType: "underline",
|
|
5163
5167
|
props: { disabled: "_disabled", label: "name" },
|
|
5164
5168
|
modelValue: s.value.reportPosition,
|
|
5165
|
-
"onUpdate:modelValue":
|
|
5166
|
-
path:
|
|
5167
|
-
"onUpdate:path":
|
|
5168
|
-
keyword:
|
|
5169
|
-
"onUpdate:keyword":
|
|
5169
|
+
"onUpdate:modelValue": E[8] || (E[8] = (B) => s.value.reportPosition = B),
|
|
5170
|
+
path: f.value,
|
|
5171
|
+
"onUpdate:path": E[9] || (E[9] = (B) => f.value = B),
|
|
5172
|
+
keyword: b.value,
|
|
5173
|
+
"onUpdate:keyword": E[10] || (E[10] = (B) => b.value = B),
|
|
5170
5174
|
showFullPath: !0,
|
|
5171
|
-
data:
|
|
5175
|
+
data: y.value,
|
|
5172
5176
|
placeholder: d.value,
|
|
5173
|
-
disabled:
|
|
5174
|
-
load:
|
|
5175
|
-
search:
|
|
5176
|
-
onChange:
|
|
5177
|
+
disabled: P.value,
|
|
5178
|
+
load: k,
|
|
5179
|
+
search: I,
|
|
5180
|
+
onChange: Te,
|
|
5177
5181
|
filter: !0,
|
|
5178
5182
|
allowClear: !0
|
|
5179
5183
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
5180
|
-
|
|
5184
|
+
x(v(Pn), {
|
|
5181
5185
|
ref: "testInput",
|
|
5182
5186
|
modelValue: s.value.customPath,
|
|
5183
|
-
"onUpdate:modelValue":
|
|
5187
|
+
"onUpdate:modelValue": E[11] || (E[11] = (B) => s.value.customPath = B),
|
|
5184
5188
|
placeholder: "选填",
|
|
5185
|
-
disabled:
|
|
5189
|
+
disabled: P.value,
|
|
5186
5190
|
maxlength: "20"
|
|
5187
5191
|
}, null, 8, ["modelValue", "disabled"])
|
|
5188
5192
|
]),
|
|
5189
|
-
|
|
5190
|
-
modelValue:
|
|
5191
|
-
"onUpdate:modelValue":
|
|
5193
|
+
x(v(Bn), {
|
|
5194
|
+
modelValue: C.value,
|
|
5195
|
+
"onUpdate:modelValue": E[12] || (E[12] = (B) => C.value = B),
|
|
5192
5196
|
checkboxType: "default",
|
|
5193
5197
|
onChange: ft,
|
|
5194
5198
|
size: "middle"
|
|
5195
5199
|
}, {
|
|
5196
|
-
default:
|
|
5200
|
+
default: L(() => [
|
|
5197
5201
|
ue(
|
|
5198
|
-
|
|
5202
|
+
Z(v(Q)("告警对象位置").value),
|
|
5199
5203
|
1
|
|
5200
5204
|
/* TEXT */
|
|
5201
5205
|
)
|
|
@@ -5207,37 +5211,37 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5207
5211
|
]),
|
|
5208
5212
|
_: 1
|
|
5209
5213
|
/* STABLE */
|
|
5210
|
-
}, 8, ["label", "error"])) :
|
|
5211
|
-
s.value.processTypeId == "createorder" ? (H(), V(
|
|
5214
|
+
}, 8, ["label", "error"])) : N("v-if", !0),
|
|
5215
|
+
s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
|
|
5212
5216
|
key: 4,
|
|
5213
|
-
label:
|
|
5217
|
+
label: v(Q)("报事主题").value,
|
|
5214
5218
|
required: "",
|
|
5215
5219
|
type: "custom",
|
|
5216
5220
|
error: u.value.reportTheme,
|
|
5217
|
-
"onUpdate:error":
|
|
5221
|
+
"onUpdate:error": E[16] || (E[16] = (B) => u.value.reportTheme = B),
|
|
5218
5222
|
marginBottom: "20px",
|
|
5219
5223
|
marginRight: "0"
|
|
5220
5224
|
}, {
|
|
5221
|
-
default:
|
|
5225
|
+
default: L(() => [
|
|
5222
5226
|
$("div", Sp, [
|
|
5223
|
-
|
|
5227
|
+
x(v(Pn), {
|
|
5224
5228
|
maxlength: "20",
|
|
5225
|
-
disabled:
|
|
5229
|
+
disabled: T.value,
|
|
5226
5230
|
modelValue: s.value.reportTheme,
|
|
5227
|
-
"onUpdate:modelValue":
|
|
5231
|
+
"onUpdate:modelValue": E[14] || (E[14] = (B) => s.value.reportTheme = B),
|
|
5228
5232
|
placeholder: m.value,
|
|
5229
5233
|
onChange: ie
|
|
5230
5234
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
5231
|
-
|
|
5235
|
+
x(v(Bn), {
|
|
5232
5236
|
modelValue: M.value,
|
|
5233
|
-
"onUpdate:modelValue":
|
|
5237
|
+
"onUpdate:modelValue": E[15] || (E[15] = (B) => M.value = B),
|
|
5234
5238
|
checkboxType: "default",
|
|
5235
5239
|
onChange: oe,
|
|
5236
5240
|
size: "middle"
|
|
5237
5241
|
}, {
|
|
5238
|
-
default:
|
|
5242
|
+
default: L(() => [
|
|
5239
5243
|
ue(
|
|
5240
|
-
|
|
5244
|
+
Z(v(Q)("告警对象").value),
|
|
5241
5245
|
1
|
|
5242
5246
|
/* TEXT */
|
|
5243
5247
|
)
|
|
@@ -5249,34 +5253,34 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5249
5253
|
]),
|
|
5250
5254
|
_: 1
|
|
5251
5255
|
/* STABLE */
|
|
5252
|
-
}, 8, ["label", "error"])) :
|
|
5253
|
-
s.value.processTypeId == "createorder" ? (H(), V(
|
|
5256
|
+
}, 8, ["label", "error"])) : N("v-if", !0),
|
|
5257
|
+
s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
|
|
5254
5258
|
key: 5,
|
|
5255
|
-
label:
|
|
5259
|
+
label: v(Q)("工单规则").value,
|
|
5256
5260
|
required: "",
|
|
5257
5261
|
type: "select",
|
|
5258
5262
|
modelValue: s.value.workOrderRules,
|
|
5259
|
-
"onUpdate:modelValue":
|
|
5263
|
+
"onUpdate:modelValue": E[17] || (E[17] = (B) => s.value.workOrderRules = B),
|
|
5260
5264
|
error: u.value.workOrderRules,
|
|
5261
|
-
"onUpdate:error":
|
|
5262
|
-
options:
|
|
5265
|
+
"onUpdate:error": E[18] || (E[18] = (B) => u.value.workOrderRules = B),
|
|
5266
|
+
options: R.value,
|
|
5263
5267
|
col: 1,
|
|
5264
5268
|
optionsLabelKey: "name",
|
|
5265
5269
|
optionsValueKey: "id",
|
|
5266
5270
|
"get-popup-container": W,
|
|
5267
5271
|
marginBottom: "0px",
|
|
5268
5272
|
marginRight: "0"
|
|
5269
|
-
}, null, 8, ["label", "modelValue", "error", "options"])) :
|
|
5270
|
-
|
|
5271
|
-
s.value.processTypeId == "createcontingency" ? (H(), V(
|
|
5273
|
+
}, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
|
|
5274
|
+
N(" createcontingency 生成应急事件 "),
|
|
5275
|
+
s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
|
|
5272
5276
|
key: 6,
|
|
5273
|
-
label:
|
|
5277
|
+
label: v(Q)("事件类型").value,
|
|
5274
5278
|
required: "",
|
|
5275
5279
|
type: "select",
|
|
5276
5280
|
modelValue: s.value.eventTypeId,
|
|
5277
|
-
"onUpdate:modelValue":
|
|
5281
|
+
"onUpdate:modelValue": E[19] || (E[19] = (B) => s.value.eventTypeId = B),
|
|
5278
5282
|
error: u.value.eventTypeId,
|
|
5279
|
-
"onUpdate:error":
|
|
5283
|
+
"onUpdate:error": E[20] || (E[20] = (B) => u.value.eventTypeId = B),
|
|
5280
5284
|
options: g.value,
|
|
5281
5285
|
col: 1,
|
|
5282
5286
|
optionsLabelKey: "typeName",
|
|
@@ -5284,64 +5288,64 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5284
5288
|
"get-popup-container": W,
|
|
5285
5289
|
marginBottom: "30px",
|
|
5286
5290
|
marginRight: "0",
|
|
5287
|
-
onChange:
|
|
5288
|
-
}, null, 8, ["label", "modelValue", "error", "options"])) :
|
|
5289
|
-
s.value.processTypeId == "createcontingency" ? (H(), V(
|
|
5291
|
+
onChange: E[21] || (E[21] = (B) => Oe("eventTypeId"))
|
|
5292
|
+
}, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
|
|
5293
|
+
s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
|
|
5290
5294
|
key: 7,
|
|
5291
|
-
label:
|
|
5295
|
+
label: v(Q)("事件等级").value,
|
|
5292
5296
|
required: "",
|
|
5293
5297
|
type: "select",
|
|
5294
5298
|
modelValue: s.value.eventLevelId,
|
|
5295
|
-
"onUpdate:modelValue":
|
|
5299
|
+
"onUpdate:modelValue": E[22] || (E[22] = (B) => s.value.eventLevelId = B),
|
|
5296
5300
|
error: u.value.eventLevelId,
|
|
5297
|
-
"onUpdate:error":
|
|
5298
|
-
options:
|
|
5301
|
+
"onUpdate:error": E[23] || (E[23] = (B) => u.value.eventLevelId = B),
|
|
5302
|
+
options: p.value,
|
|
5299
5303
|
col: 1,
|
|
5300
5304
|
optionsLabelKey: "name",
|
|
5301
5305
|
optionsValueKey: "id",
|
|
5302
5306
|
"get-popup-container": W,
|
|
5303
5307
|
marginBottom: "30px",
|
|
5304
5308
|
marginRight: "0",
|
|
5305
|
-
onChange:
|
|
5306
|
-
}, null, 8, ["label", "modelValue", "error", "options"])) :
|
|
5307
|
-
s.value.processTypeId == "createcontingency" ? (H(), V(
|
|
5309
|
+
onChange: E[24] || (E[24] = (B) => Oe("eventLevelId"))
|
|
5310
|
+
}, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
|
|
5311
|
+
s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
|
|
5308
5312
|
key: 8,
|
|
5309
|
-
label:
|
|
5313
|
+
label: v(Q)("处置时限").value,
|
|
5310
5314
|
required: "",
|
|
5311
5315
|
type: "input",
|
|
5312
5316
|
maxlength: "3",
|
|
5313
5317
|
col: 1,
|
|
5314
5318
|
modelValue: s.value.timeLimit,
|
|
5315
|
-
"onUpdate:modelValue":
|
|
5319
|
+
"onUpdate:modelValue": E[27] || (E[27] = (B) => s.value.timeLimit = B),
|
|
5316
5320
|
error: u.value.timeLimit,
|
|
5317
|
-
"onUpdate:error":
|
|
5321
|
+
"onUpdate:error": E[28] || (E[28] = (B) => u.value.timeLimit = B),
|
|
5318
5322
|
disabled: s.value.interval == 3,
|
|
5319
5323
|
marginBottom: "30px",
|
|
5320
5324
|
marginRight: "0"
|
|
5321
5325
|
}, {
|
|
5322
|
-
default:
|
|
5326
|
+
default: L(() => [
|
|
5323
5327
|
$("div", Tp, [
|
|
5324
|
-
|
|
5328
|
+
x(v(ds), {
|
|
5325
5329
|
class: "select",
|
|
5326
5330
|
modelValue: s.value.interval,
|
|
5327
|
-
"onUpdate:modelValue":
|
|
5331
|
+
"onUpdate:modelValue": E[25] || (E[25] = (B) => s.value.interval = B),
|
|
5328
5332
|
width: "64px",
|
|
5329
5333
|
fieldNames: {
|
|
5330
5334
|
value: "id",
|
|
5331
5335
|
label: "name"
|
|
5332
5336
|
},
|
|
5333
|
-
options:
|
|
5337
|
+
options: w.value,
|
|
5334
5338
|
"border-type": "underline",
|
|
5335
5339
|
size: "small",
|
|
5336
5340
|
"get-popup-container": W,
|
|
5337
|
-
onChange:
|
|
5341
|
+
onChange: E[26] || (E[26] = (B) => Oe("interval")),
|
|
5338
5342
|
placeholder: "请选择"
|
|
5339
5343
|
}, null, 8, ["modelValue", "options"])
|
|
5340
5344
|
])
|
|
5341
5345
|
]),
|
|
5342
5346
|
_: 1
|
|
5343
5347
|
/* STABLE */
|
|
5344
|
-
}, 8, ["label", "modelValue", "error", "disabled"])) :
|
|
5348
|
+
}, 8, ["label", "modelValue", "error", "disabled"])) : N("v-if", !0)
|
|
5345
5349
|
]),
|
|
5346
5350
|
_: 1
|
|
5347
5351
|
/* STABLE */
|
|
@@ -5360,7 +5364,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5360
5364
|
}, 8, ["modelValue"])
|
|
5361
5365
|
]));
|
|
5362
5366
|
}
|
|
5363
|
-
}), Op = /* @__PURE__ */
|
|
5367
|
+
}), Op = /* @__PURE__ */ Ee(Bp, [["__scopeId", "data-v-a6a58a01"]]), Dp = (n, e, t) => ({
|
|
5364
5368
|
handleAlarmVue: () => he(Op, {
|
|
5365
5369
|
handerIds: e.value,
|
|
5366
5370
|
projectId: St().id,
|
|
@@ -5393,7 +5397,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5393
5397
|
We,
|
|
5394
5398
|
null,
|
|
5395
5399
|
[
|
|
5396
|
-
|
|
5400
|
+
N(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
5397
5401
|
$("div", $p, [
|
|
5398
5402
|
$("div", Mp, [
|
|
5399
5403
|
$(
|
|
@@ -5404,13 +5408,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5404
5408
|
},
|
|
5405
5409
|
[
|
|
5406
5410
|
$("div", Lp, [
|
|
5407
|
-
|
|
5411
|
+
N(` <div class="icon-box" :style="{ color: msgItem.color }">
|
|
5408
5412
|
!
|
|
5409
5413
|
</div> `),
|
|
5410
5414
|
$(
|
|
5411
5415
|
"div",
|
|
5412
5416
|
xp,
|
|
5413
|
-
|
|
5417
|
+
Z(v(Q)("新告警").value),
|
|
5414
5418
|
1
|
|
5415
5419
|
/* TEXT */
|
|
5416
5420
|
)
|
|
@@ -5425,7 +5429,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5425
5429
|
$(
|
|
5426
5430
|
"div",
|
|
5427
5431
|
Hp,
|
|
5428
|
-
|
|
5432
|
+
Z(v(Q)("告警等级:").value),
|
|
5429
5433
|
1
|
|
5430
5434
|
/* TEXT */
|
|
5431
5435
|
),
|
|
@@ -5435,7 +5439,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5435
5439
|
class: "alarm-msg-line-right alarm-content-object",
|
|
5436
5440
|
style: Sn({ color: a.msgItem.color })
|
|
5437
5441
|
},
|
|
5438
|
-
|
|
5442
|
+
Z(a.msgItem.alarmLevelName || ""),
|
|
5439
5443
|
5
|
|
5440
5444
|
/* TEXT, STYLE */
|
|
5441
5445
|
)
|
|
@@ -5444,14 +5448,14 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5444
5448
|
$(
|
|
5445
5449
|
"div",
|
|
5446
5450
|
Up,
|
|
5447
|
-
|
|
5451
|
+
Z(v(Q)("告警对象:").value),
|
|
5448
5452
|
1
|
|
5449
5453
|
/* TEXT */
|
|
5450
5454
|
),
|
|
5451
5455
|
$(
|
|
5452
5456
|
"div",
|
|
5453
5457
|
Fp,
|
|
5454
|
-
|
|
5458
|
+
Z(a.msgItem.equipmentName || ""),
|
|
5455
5459
|
1
|
|
5456
5460
|
/* TEXT */
|
|
5457
5461
|
)
|
|
@@ -5460,53 +5464,53 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
|
|
|
5460
5464
|
$(
|
|
5461
5465
|
"div",
|
|
5462
5466
|
Wp,
|
|
5463
|
-
|
|
5467
|
+
Z(v(Q)("告警内容:").value),
|
|
5464
5468
|
1
|
|
5465
5469
|
/* TEXT */
|
|
5466
5470
|
),
|
|
5467
5471
|
$(
|
|
5468
5472
|
"div",
|
|
5469
5473
|
zp,
|
|
5470
|
-
|
|
5474
|
+
Z(a.msgItem.alarmContent || ""),
|
|
5471
5475
|
1
|
|
5472
5476
|
/* TEXT */
|
|
5473
5477
|
)
|
|
5474
5478
|
]),
|
|
5475
5479
|
$("div", Vp, [
|
|
5476
|
-
a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(
|
|
5480
|
+
a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(v(ke), {
|
|
5477
5481
|
key: 0,
|
|
5478
5482
|
block: "",
|
|
5479
5483
|
onClick: ne(i, ["stop"]),
|
|
5480
5484
|
btnType: "primary-text",
|
|
5481
5485
|
size: "middle"
|
|
5482
5486
|
}, {
|
|
5483
|
-
default:
|
|
5487
|
+
default: L(() => [
|
|
5484
5488
|
ue(
|
|
5485
|
-
|
|
5489
|
+
Z(v(Q)("设备详情").value),
|
|
5486
5490
|
1
|
|
5487
5491
|
/* TEXT */
|
|
5488
5492
|
)
|
|
5489
5493
|
]),
|
|
5490
5494
|
_: 1
|
|
5491
5495
|
/* STABLE */
|
|
5492
|
-
})) :
|
|
5493
|
-
a.alarmhandle ? (H(), V(
|
|
5496
|
+
})) : N("v-if", !0),
|
|
5497
|
+
a.alarmhandle ? (H(), V(v(ke), {
|
|
5494
5498
|
key: 1,
|
|
5495
5499
|
block: "",
|
|
5496
5500
|
btnType: "primary-text",
|
|
5497
5501
|
onClick: ne(r, ["stop"]),
|
|
5498
5502
|
size: "middle"
|
|
5499
5503
|
}, {
|
|
5500
|
-
default:
|
|
5504
|
+
default: L(() => [
|
|
5501
5505
|
ue(
|
|
5502
|
-
|
|
5506
|
+
Z(v(Q)("处理").value),
|
|
5503
5507
|
1
|
|
5504
5508
|
/* TEXT */
|
|
5505
5509
|
)
|
|
5506
5510
|
]),
|
|
5507
5511
|
_: 1
|
|
5508
5512
|
/* STABLE */
|
|
5509
|
-
})) :
|
|
5513
|
+
})) : N("v-if", !0)
|
|
5510
5514
|
])
|
|
5511
5515
|
])
|
|
5512
5516
|
])
|
|
@@ -5526,7 +5530,7 @@ let Gp = (n = 21) => {
|
|
|
5526
5530
|
return e;
|
|
5527
5531
|
};
|
|
5528
5532
|
const Xp = () => {
|
|
5529
|
-
const n =
|
|
5533
|
+
const n = S(null), e = S(0), t = S(null), o = S(null), r = S([]), i = S([]), a = S(!1), l = S(!1), c = S(!1), s = S({
|
|
5530
5534
|
playId: "",
|
|
5531
5535
|
// 播放的告警的recordId
|
|
5532
5536
|
playPath: "",
|
|
@@ -5542,107 +5546,107 @@ const Xp = () => {
|
|
|
5542
5546
|
loop: !1
|
|
5543
5547
|
// 轮播-无限次播放
|
|
5544
5548
|
});
|
|
5545
|
-
|
|
5546
|
-
const { isRealTimeAlarm:
|
|
5547
|
-
|
|
5549
|
+
te.addEventListenerFromMicroApp("alarm:change-alarmconfig", (I) => {
|
|
5550
|
+
const { isRealTimeAlarm: T, audioPlay: M } = I.data;
|
|
5551
|
+
T != null && (l.value = T), M != null && (c.value = M, c.value || b());
|
|
5548
5552
|
});
|
|
5549
|
-
const u = (
|
|
5553
|
+
const u = (I) => {
|
|
5550
5554
|
var M;
|
|
5551
|
-
const
|
|
5552
|
-
|
|
5553
|
-
}, { entryApp:
|
|
5554
|
-
ko(
|
|
5555
|
-
}, { handleAlarmVue:
|
|
5555
|
+
const T = [];
|
|
5556
|
+
T.push({ alarmId: I.recordId }), r.value = T, (M = t.value) == null || M.open();
|
|
5557
|
+
}, { entryApp: A } = bt.hooks.useEntryApp(), g = (I) => {
|
|
5558
|
+
ko(I.equipmentCode, I.equipmentPanelCode);
|
|
5559
|
+
}, { handleAlarmVue: p } = Dp(t, r), w = async () => {
|
|
5556
5560
|
var M;
|
|
5557
|
-
const
|
|
5558
|
-
|
|
5559
|
-
},
|
|
5560
|
-
if (
|
|
5561
|
-
d(
|
|
5561
|
+
const T = (((M = F().appcategorys) == null ? void 0 : M.map((R) => R.apps).flat()) ?? []).find((R) => R.code === "alarm");
|
|
5562
|
+
T && A({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
|
|
5563
|
+
}, _ = [], f = (I) => {
|
|
5564
|
+
if (_.push(I), i.value.length < 2) {
|
|
5565
|
+
d(_[0]), _.shift();
|
|
5562
5566
|
return;
|
|
5563
5567
|
}
|
|
5564
|
-
}, d = (
|
|
5565
|
-
if (!
|
|
5566
|
-
const
|
|
5568
|
+
}, d = (I) => {
|
|
5569
|
+
if (!I) return;
|
|
5570
|
+
const T = Gp();
|
|
5567
5571
|
yt.open({
|
|
5568
|
-
key:
|
|
5572
|
+
key: T,
|
|
5569
5573
|
class: "alarm-notify",
|
|
5570
5574
|
message: Q("新告警").value,
|
|
5571
5575
|
placement: "bottomRight",
|
|
5572
5576
|
description: he(Kp, {
|
|
5573
|
-
msgItem:
|
|
5577
|
+
msgItem: I,
|
|
5574
5578
|
alarmhandle: a.value,
|
|
5575
5579
|
onHanderDetail: g,
|
|
5576
5580
|
onHanderFn: u
|
|
5577
5581
|
}),
|
|
5578
5582
|
duration: 5,
|
|
5579
5583
|
onClick: () => {
|
|
5580
|
-
|
|
5584
|
+
w();
|
|
5581
5585
|
},
|
|
5582
5586
|
onClose: () => {
|
|
5583
5587
|
setTimeout(() => {
|
|
5584
|
-
const M = i.value.findIndex((
|
|
5585
|
-
if (M >= 0 && i.value.splice(M, 1), i.value.length < 2 &&
|
|
5586
|
-
d(
|
|
5588
|
+
const M = i.value.findIndex((R) => R == T);
|
|
5589
|
+
if (M >= 0 && i.value.splice(M, 1), i.value.length < 2 && _.length) {
|
|
5590
|
+
d(_[0]), _.shift();
|
|
5587
5591
|
return;
|
|
5588
5592
|
}
|
|
5589
5593
|
}, 300);
|
|
5590
5594
|
}
|
|
5591
|
-
}), i.value.includes(
|
|
5592
|
-
}, m = (
|
|
5593
|
-
if (
|
|
5595
|
+
}), i.value.includes(T) || i.value.push(T), m(I);
|
|
5596
|
+
}, m = (I) => {
|
|
5597
|
+
if (I) {
|
|
5594
5598
|
if (!c.value) {
|
|
5595
|
-
|
|
5599
|
+
b();
|
|
5596
5600
|
return;
|
|
5597
5601
|
}
|
|
5598
|
-
if (!
|
|
5602
|
+
if (!I.coverId) {
|
|
5599
5603
|
if (s.value.playLine === null) {
|
|
5600
|
-
|
|
5604
|
+
b(), Number(I.noticeNum) != 0 && y(I);
|
|
5601
5605
|
return;
|
|
5602
5606
|
}
|
|
5603
|
-
Number(
|
|
5607
|
+
Number(I.alarmLevelId) < s.value.playLine && (b(), Number(I.noticeNum) != 0 && y(I));
|
|
5604
5608
|
}
|
|
5605
5609
|
}
|
|
5606
|
-
},
|
|
5607
|
-
const
|
|
5608
|
-
s.value.isplay && s.value.playId ==
|
|
5609
|
-
},
|
|
5610
|
+
}, y = (I) => {
|
|
5611
|
+
const T = Number(I.noticeNum), M = location.origin + "/oss";
|
|
5612
|
+
s.value.isplay && s.value.playId == I.recordId ? b() : (T < 0 ? s.value.loop = !0 : s.value.loop = !1, T > 0 ? (s.value.loopTotalCount = Number(I.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = I.recordId, s.value.playLine = Number(I.alarmLevelId), s.value.playPath = M + I.noticePath, P());
|
|
5613
|
+
}, b = () => {
|
|
5610
5614
|
s.value.playId = "", s.value.playPath = "", s.value.playLine = null, s.value.loopCount = 0, s.value.loopTotalCount = 0, s.value.isplay = !1, s.value.loop = !1;
|
|
5611
|
-
},
|
|
5615
|
+
}, P = () => {
|
|
5612
5616
|
o.value.onended = function() {
|
|
5613
5617
|
s.value.loopCount = s.value.loopCount + 1, s.value.loopTotalCount && s.value.loopTotalCount && (s.value.loopCount == s.value.loopTotalCount ? (s.value.playPath = "", s.value.isplay = !1, s.value.playId = "", s.value.loopTotalCount = 0, s.value.loopCount = 0, s.value.playLine = null) : o.value.play());
|
|
5614
5618
|
};
|
|
5615
|
-
},
|
|
5616
|
-
const [
|
|
5617
|
-
|
|
5619
|
+
}, C = async () => {
|
|
5620
|
+
const [I, T] = await Ap().run();
|
|
5621
|
+
I || (c.value = T.isEnable);
|
|
5618
5622
|
};
|
|
5619
5623
|
return {
|
|
5620
5624
|
alarmSocket: n,
|
|
5621
5625
|
alarmCount: e,
|
|
5622
5626
|
audioObj: s,
|
|
5623
5627
|
audioAlarmRef: o,
|
|
5624
|
-
handleAlarmVue:
|
|
5628
|
+
handleAlarmVue: p,
|
|
5625
5629
|
creatAlarmSocket: async () => {
|
|
5626
|
-
|
|
5627
|
-
const [
|
|
5630
|
+
C();
|
|
5631
|
+
const [I, T] = await pp().run({
|
|
5628
5632
|
code: "alarm",
|
|
5629
5633
|
showBtn: !0
|
|
5630
5634
|
});
|
|
5631
|
-
if (
|
|
5635
|
+
if (I || !T || !T.length) return;
|
|
5632
5636
|
let M = !1;
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5637
|
+
T.forEach((R) => {
|
|
5638
|
+
R.code === "alarm.realTimeAlarm" && (M = !0, R.children && R.children.length ? R.children.forEach((U) => {
|
|
5639
|
+
U.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
|
|
5636
5640
|
}) : a.value = !1);
|
|
5637
5641
|
}), M && (n.value = new an({
|
|
5638
5642
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
5639
5643
|
reconnectWhenClose: !0,
|
|
5640
5644
|
opened: () => {
|
|
5641
|
-
const
|
|
5642
|
-
|
|
5645
|
+
const R = Pe().id;
|
|
5646
|
+
R && n.value.send(R);
|
|
5643
5647
|
},
|
|
5644
|
-
message: async (
|
|
5645
|
-
|
|
5648
|
+
message: async (R) => {
|
|
5649
|
+
te.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: R }), window.self === window.top && (R.messageType === "ADD" && (e.value = e.value + 1, R.coverId || f(R)), R.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == R.recordId && b()));
|
|
5646
5650
|
}
|
|
5647
5651
|
}));
|
|
5648
5652
|
}
|
|
@@ -5659,14 +5663,14 @@ const Xp = () => {
|
|
|
5659
5663
|
We,
|
|
5660
5664
|
null,
|
|
5661
5665
|
[
|
|
5662
|
-
|
|
5666
|
+
x(v(i)),
|
|
5663
5667
|
$("audio", {
|
|
5664
|
-
src:
|
|
5668
|
+
src: v(o).playPath,
|
|
5665
5669
|
class: "audio-alarm-level",
|
|
5666
5670
|
ref_key: "audioAlarmRef",
|
|
5667
5671
|
ref: r,
|
|
5668
|
-
muted: !
|
|
5669
|
-
loop:
|
|
5672
|
+
muted: !v(o).isplay,
|
|
5673
|
+
loop: v(o).loop,
|
|
5670
5674
|
autoplay: ""
|
|
5671
5675
|
}, null, 8, Zp)
|
|
5672
5676
|
],
|
|
@@ -5677,36 +5681,36 @@ const Xp = () => {
|
|
|
5677
5681
|
}), ef = { class: "das-main-app-container" }, tf = /* @__PURE__ */ pe({
|
|
5678
5682
|
__name: "index",
|
|
5679
5683
|
setup(n) {
|
|
5680
|
-
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() =>
|
|
5684
|
+
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), i = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = yu(), { innerPage: l, commandList: c, initNextTick: s } = _u(a);
|
|
5681
5685
|
Su(l, a, s), Eu(), Cu(), Bu();
|
|
5682
|
-
const { $changePwd: u, $personSetDialog:
|
|
5686
|
+
const { $changePwd: u, $personSetDialog: A } = Tu(), { changeEnterprisesVisible: g, userId: p, tenantId: w, changeEnterprise: _ } = fr();
|
|
5683
5687
|
wu();
|
|
5684
|
-
const { fontColor:
|
|
5685
|
-
return Ru(), Qu(c), ju(), Nu(), yd(), up(), (
|
|
5686
|
-
|
|
5687
|
-
default:
|
|
5688
|
-
|
|
5688
|
+
const { fontColor: f, backgroudColor: d, borderColor: m } = Iu();
|
|
5689
|
+
return Ru(), Qu(c), ju(), Nu(), yd(), up(), (y, b) => (H(), de("div", ef, [
|
|
5690
|
+
x(v(Os), { platformInitNextTick: v(a) }, {
|
|
5691
|
+
default: L(() => [
|
|
5692
|
+
x(gs, {
|
|
5689
5693
|
showLayout: t.value,
|
|
5690
5694
|
excludeRoutes: o.value,
|
|
5691
5695
|
routeKeepAliveVisible: r.value,
|
|
5692
|
-
tabsAttr: { fontColor:
|
|
5696
|
+
tabsAttr: { fontColor: v(f), backgroudColor: v(d), borderColor: v(m) },
|
|
5693
5697
|
menuAttr: i.value
|
|
5694
5698
|
}, null, 8, ["showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
|
|
5695
5699
|
]),
|
|
5696
5700
|
_: 1
|
|
5697
5701
|
/* STABLE */
|
|
5698
5702
|
}, 8, ["platformInitNextTick"]),
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
visible:
|
|
5702
|
-
"onUpdate:visible":
|
|
5703
|
-
userId:
|
|
5704
|
-
tenantId:
|
|
5705
|
-
onConfirm:
|
|
5703
|
+
N(" 切换租户 "),
|
|
5704
|
+
x(v(Nr), {
|
|
5705
|
+
visible: v(g),
|
|
5706
|
+
"onUpdate:visible": b[0] || (b[0] = (P) => Mr(g) ? g.value = P : null),
|
|
5707
|
+
userId: v(p),
|
|
5708
|
+
tenantId: v(w),
|
|
5709
|
+
onConfirm: v(_)
|
|
5706
5710
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5711
|
+
N(" 修改密码 "),
|
|
5712
|
+
x(
|
|
5713
|
+
v(Hr),
|
|
5710
5714
|
{
|
|
5711
5715
|
ref_key: "$changePwd",
|
|
5712
5716
|
ref: u
|
|
@@ -5715,35 +5719,35 @@ const Xp = () => {
|
|
|
5715
5719
|
512
|
|
5716
5720
|
/* NEED_PATCH */
|
|
5717
5721
|
),
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5722
|
+
N(" 个性化设置 "),
|
|
5723
|
+
x(
|
|
5724
|
+
v(Au),
|
|
5721
5725
|
{
|
|
5722
5726
|
ref_key: "$personSetDialog",
|
|
5723
|
-
ref:
|
|
5727
|
+
ref: A
|
|
5724
5728
|
},
|
|
5725
5729
|
null,
|
|
5726
5730
|
512
|
|
5727
5731
|
/* NEED_PATCH */
|
|
5728
5732
|
),
|
|
5729
|
-
|
|
5730
|
-
|
|
5733
|
+
N(" 告警 "),
|
|
5734
|
+
x(v(Yp))
|
|
5731
5735
|
]));
|
|
5732
5736
|
}
|
|
5733
|
-
}), nf = /* @__PURE__ */
|
|
5734
|
-
|
|
5737
|
+
}), nf = /* @__PURE__ */ Ee(tf, [["__scopeId", "data-v-6e85c13f"]]);
|
|
5738
|
+
S("@das-fed/web");
|
|
5735
5739
|
const of = [
|
|
5736
5740
|
{
|
|
5737
|
-
path:
|
|
5738
|
-
component: () => import("./index-
|
|
5741
|
+
path: Ie,
|
|
5742
|
+
component: () => import("./index-E1pACiHI.js")
|
|
5739
5743
|
},
|
|
5740
5744
|
{
|
|
5741
5745
|
path: Je,
|
|
5742
|
-
component: () => import("./index-
|
|
5746
|
+
component: () => import("./index-CfM1liO6.js")
|
|
5743
5747
|
},
|
|
5744
5748
|
{
|
|
5745
5749
|
path: Do,
|
|
5746
|
-
component: () => import("./index-
|
|
5750
|
+
component: () => import("./index-Bcz8SW2I.js")
|
|
5747
5751
|
}
|
|
5748
5752
|
], qf = {
|
|
5749
5753
|
routes: of,
|
|
@@ -5758,13 +5762,13 @@ const of = [
|
|
|
5758
5762
|
};
|
|
5759
5763
|
export {
|
|
5760
5764
|
Je as I,
|
|
5761
|
-
|
|
5765
|
+
Ee as _,
|
|
5762
5766
|
io as a,
|
|
5763
5767
|
ao as b,
|
|
5764
5768
|
qe as c,
|
|
5765
5769
|
Wt as d,
|
|
5766
5770
|
At as e,
|
|
5767
|
-
|
|
5771
|
+
ee as l,
|
|
5768
5772
|
qf as m,
|
|
5769
5773
|
et as u
|
|
5770
5774
|
};
|