@das-fed/web 6.4.0-dev.11 → 6.4.0-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-D7VM--Bp.js → index-B0_oruhN.js} +1 -1
- package/{index-CdrOv9ce.js → index-C2ZSdOo4.js} +900 -885
- package/index-C2ZSdOo4.js.gz +0 -0
- package/{index-CzmiHoa4.js → index-DCv0mp9Q.js} +1 -1
- package/index-DCv0mp9Q.js.gz +0 -0
- package/{index-jFzyVhGM.js → index-E3_VNsYI.js} +16 -15
- package/index-E3_VNsYI.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +40 -40
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +214 -202
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-_nvo7ltJ.js → index-BKvL69_g.js} +167 -164
- package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
- package/packages/main-app-framework/{index-D38gLa5D.js → index-BmlzT8Nw.js} +1 -1
- package/packages/main-app-framework/{index-Cq8Fro8z.js → index-DGFe8dVS.js} +16 -15
- package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
- package/packages/main-app-framework/{index-DyKCvROV.js → index-csrvxtZY.js} +1 -1
- package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +34 -22
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-CdrOv9ce.js.gz +0 -0
- package/index-CzmiHoa4.js.gz +0 -0
- package/index-jFzyVhGM.js.gz +0 -0
- package/packages/main-app-framework/index-Cq8Fro8z.js.gz +0 -0
- package/packages/main-app-framework/index-DyKCvROV.js.gz +0 -0
- package/packages/main-app-framework/index-_nvo7ltJ.js.gz +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
4
|
-
import { DasWebLayout as
|
|
5
|
-
import { createPinia as
|
|
6
|
-
import
|
|
7
|
-
import { createRouter as
|
|
8
|
-
import { DasChangePwdRef as
|
|
9
|
-
import { DasChangeEnterprises as
|
|
10
|
-
import { pureImageSrc as
|
|
1
|
+
import { ref as E, createApp as ms, reactive as je, computed as H, defineComponent as oe, watch as X, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as vs, normalizeProps as An, mergeProps as $t, withCtx as B, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as v, createCommentVNode as j, nextTick as Qe, resolveComponent as As, createElementVNode as O, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as R, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as ys, onMounted as Ve, onUnmounted as _s, getCurrentScope as bs, onScopeDispose as ws, getCurrentInstance as Cs, onActivated as Is, createTextVNode as ye, toDisplayString as ae, pushScopeId as sr, popScopeId as ar, render as Vt, onBeforeUnmount as Zt, useCssVars as Ts, withModifiers as ue, toRefs as Es, isRef as Ss } from "vue";
|
|
2
|
+
import { initTheme as ks, setThemeRule as Ps } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as Ls, i18n as N } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasWebLayout as Dn, DasWebNav as ir, DasWebMenu as cr, DasWebTabs as lr, layout as M } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { createPinia as $s } from "pinia";
|
|
6
|
+
import Ds from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as Ms, createWebHistory as Os, useRouter as Ye, useRoute as Dt } from "vue-router";
|
|
8
|
+
import { DasChangePwdRef as Bs, DasChangePwd as Rs } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
9
|
+
import { DasChangeEnterprises as xs } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
10
|
+
import { pureImageSrc as Mn } from "@das-fed/utils/pure-image-src";
|
|
11
11
|
import { DasNotification as Wt } from "@das-fed/ui/packages/components/notification/index";
|
|
12
|
-
import { flatTree as Me, filterTreeArray as
|
|
13
|
-
import { getSubApps as K, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as
|
|
14
|
-
import { setProcessEngineProject as
|
|
15
|
-
import { oauthServer as
|
|
12
|
+
import { flatTree as Me, filterTreeArray as Qs, isEmpty as js, treeFind as lo, updateFavIcon as Ns, dateFormat as Hs, runPromiseByQueue as Us, objEqual as _n, setShowWatermark as bn, setShowLayout as wn, getUrlParams as Fs, withToken as Vs } from "@das-fed/utils/common-tools";
|
|
13
|
+
import { getSubApps as K, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as On, getProjectInfo as Fe, getToken as Bn, getUserInfo as ur, getMenus as zt } from "@das-fed/utils/common-info";
|
|
14
|
+
import { setProcessEngineProject as dr, setProcessEngineToken as pr } from "@das-fed/utils/process-engine-info";
|
|
15
|
+
import { oauthServer as fr, justauth as Rn, enterpriseright as xn, iotModules as Ws, portal as We, systemConfiguration as Qn } from "@das-fed/utils/api-services/modules";
|
|
16
16
|
import { createService as et } from "@das-fed/utils/create-api-service";
|
|
17
|
-
import { useGetAuth as
|
|
18
|
-
import { systemConfiguration as
|
|
17
|
+
import { useGetAuth as zs } from "@das-fed/utils/hooks/use-get-auth";
|
|
18
|
+
import { systemConfiguration as qs, enterpriseright as jn, createService as ft, spaceManage as hr } from "@das-fed/utils/api-services";
|
|
19
19
|
import { microFrontend as ce } from "@das-fed/web/packages/micro-frontend/index";
|
|
20
20
|
import { getConfig as tt } from "@das-fed/utils/config";
|
|
21
|
-
import
|
|
22
|
-
import { getAccessToken as
|
|
23
|
-
import { DasDialog as
|
|
21
|
+
import Cn from "dayjs";
|
|
22
|
+
import { getAccessToken as Js, removeAccessToken as Ks } from "@das-fed/utils/token-tools";
|
|
23
|
+
import { DasDialog as Nn } from "@das-fed/ui/packages/components/dialog/index";
|
|
24
24
|
import { DasButton as He } from "@das-fed/ui/packages/components/button/index";
|
|
25
|
-
import { vDasTooltip as
|
|
26
|
-
import { tokenStorage as
|
|
27
|
-
import { setPersonalInfo as
|
|
28
|
-
import { devicePanelShow as
|
|
29
|
-
import { DasIcon as qe, DasAutoRegisterIcon as
|
|
30
|
-
import { socketService as
|
|
31
|
-
import { userInfoNextTick as
|
|
25
|
+
import { vDasTooltip as Gs } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
26
|
+
import { tokenStorage as Xs } from "@das-fed/utils/create-api-service/sso";
|
|
27
|
+
import { setPersonalInfo as Zs } from "@das-fed/utils/common-info/set-personal-info";
|
|
28
|
+
import { devicePanelShow as gr, closeDevicePanel as Ys, alarmDevicePanelShow as ea, closeAlarmPanel as ta } from "@das-fed/ui/packages/business-components/device-panel/index";
|
|
29
|
+
import { DasIcon as qe, DasAutoRegisterIcon as mr } from "@das-fed/ui/packages/components/icon/index";
|
|
30
|
+
import { socketService as Hn } from "@das-fed/utils/webSocket-service";
|
|
31
|
+
import { userInfoNextTick as na, tokenNextTick as en } from "@das-fed/utils/nextTiken";
|
|
32
32
|
import { mainAppFramework as qt } from "@das-fed/web/packages/main-app-framework/index";
|
|
33
|
-
import { DasTooltip as
|
|
34
|
-
import { DasLivePlayer as
|
|
35
|
-
import { DasSpin as
|
|
36
|
-
import { DasWatermark as
|
|
37
|
-
import { DasDrawer as
|
|
38
|
-
import { DasRadio as
|
|
39
|
-
import { DasSelect as
|
|
40
|
-
import { DasTreeSelect as
|
|
41
|
-
import { DasInput as
|
|
42
|
-
import { DasCheckbox as
|
|
43
|
-
import { DasForm as
|
|
33
|
+
import { DasTooltip as me } from "@das-fed/ui/packages/components/tooltip/index";
|
|
34
|
+
import { DasLivePlayer as oa } from "@das-fed/ui/packages/components/live-player/index";
|
|
35
|
+
import { DasSpin as vr } from "@das-fed/ui/packages/components/spin/index";
|
|
36
|
+
import { DasWatermark as ra } from "@das-fed/ui/packages/components/watermark/index";
|
|
37
|
+
import { DasDrawer as sa } from "@das-fed/ui/packages/components/drawer/index";
|
|
38
|
+
import { DasRadio as uo } from "@das-fed/ui/packages/components/radio/index";
|
|
39
|
+
import { DasSelect as aa } from "@das-fed/ui/packages/components/select/index";
|
|
40
|
+
import { DasTreeSelect as ia } from "@das-fed/ui/packages/components/tree-select/index";
|
|
41
|
+
import { DasInput as po } from "@das-fed/ui/packages/components/input/index";
|
|
42
|
+
import { DasCheckbox as fo } from "@das-fed/ui/packages/components/checkbox/index";
|
|
43
|
+
import { DasForm as ca } from "@das-fed/ui/packages/components/form/index";
|
|
44
44
|
import { DasFormItem as Oe } from "@das-fed/ui/packages/components/form-item/index";
|
|
45
|
-
import { flatTree as
|
|
46
|
-
import { setHtmlMinWH as
|
|
45
|
+
import { flatTree as la } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
46
|
+
import { setHtmlMinWH as ua } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
47
47
|
import { createCeNav as da, createCeTabs as pa, createCeMenu as fa } from "@das-fed/web-components/das-web-app";
|
|
48
48
|
const ha = {
|
|
49
49
|
install: (t, e) => {
|
|
@@ -53,60 +53,60 @@ const ha = {
|
|
|
53
53
|
r.default && r.default.install && t.use(r.default, e), r.install && t.use(r, e);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
56
|
+
}, In = $s();
|
|
57
|
+
In.use(Ds);
|
|
58
58
|
const ga = (t) => {
|
|
59
|
-
var i, u,
|
|
59
|
+
var i, u, h, d, p;
|
|
60
60
|
const e = ((i = t == null ? void 0 : t.router) == null ? void 0 : i.routerBase) ?? "/", n = ((u = t == null ? void 0 : t.router) == null ? void 0 : u.options) || {};
|
|
61
|
-
let o = Object.assign(((
|
|
61
|
+
let o = Object.assign(((h = t == null ? void 0 : t.router) == null ? void 0 : h.glob) || {});
|
|
62
62
|
const r = Object.values(o).filter((g) => !!g).flat().sort((g, A) => (g.index ?? 0) - (A.index ?? 0)), s = [];
|
|
63
63
|
(d = t == null ? void 0 : t.microApps) == null || d.map((g) => {
|
|
64
64
|
var m;
|
|
65
|
-
const A = Object.values(((m = g.router) == null ? void 0 : m.glob) || {}).filter((
|
|
65
|
+
const A = Object.values(((m = g.router) == null ? void 0 : m.glob) || {}).filter((f) => !!f).flat().sort((f, _) => (f.index ?? 0) - (_.index ?? 0));
|
|
66
66
|
s.push(
|
|
67
|
-
...A.map((
|
|
67
|
+
...A.map((f) => ({ ...f, path: `/${g.microAppName}${f.path}` }))
|
|
68
68
|
), s.push(
|
|
69
|
-
...A.map((
|
|
70
|
-
path:
|
|
71
|
-
redirect: `/${g.microAppName}${
|
|
72
|
-
meta: { ...
|
|
69
|
+
...A.filter((f) => !!f.path).filter((f) => f.path !== "").filter((f) => f.path !== "/").filter((f) => !f.path.startsWith(`/${f.microAppName}`)).map((f) => ({
|
|
70
|
+
path: f.path,
|
|
71
|
+
redirect: `/${g.microAppName}${f.path}`,
|
|
72
|
+
meta: { ...f.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
73
73
|
}))
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
const a = ((p = t == null ? void 0 : t.router) == null ? void 0 : p.routers) || [], l = [
|
|
77
|
-
...
|
|
78
|
-
...
|
|
79
|
-
...
|
|
77
|
+
...un(r, t),
|
|
78
|
+
...un(a, t),
|
|
79
|
+
...un(s, t)
|
|
80
80
|
];
|
|
81
|
-
return { router:
|
|
82
|
-
},
|
|
81
|
+
return { router: Ms({ history: Os(e), routes: l, ...n }) };
|
|
82
|
+
}, un = (t, e) => t.map((n) => {
|
|
83
83
|
const o = n.meta || {};
|
|
84
84
|
return o.keepAlive = o.keepAlive ?? (e == null ? void 0 : e.keepAlive) ?? !0, { ...n, meta: o };
|
|
85
85
|
}), Vg = (t) => {
|
|
86
86
|
t || (t = {});
|
|
87
|
-
const e =
|
|
88
|
-
Promise.all([
|
|
87
|
+
const e = E(!0);
|
|
88
|
+
Promise.all([ks(t), Ls(t)]).then(() => {
|
|
89
89
|
e.value = !1;
|
|
90
90
|
});
|
|
91
|
-
const { container: n, component: o, props: r } = (t == null ? void 0 : t.root) || {}, s =
|
|
92
|
-
s.use(ha, t), s.use(
|
|
91
|
+
const { container: n, component: o, props: r } = (t == null ? void 0 : t.root) || {}, s = ms(o || Dn, r);
|
|
92
|
+
s.use(ha, t), s.use(In);
|
|
93
93
|
const { router: a } = ga(t);
|
|
94
|
-
return s.use(a), s.mount(n || "#app"), { app: s, router: a, loading: e, store:
|
|
95
|
-
},
|
|
94
|
+
return s.use(a), s.mount(n || "#app"), { app: s, router: a, loading: e, store: In };
|
|
95
|
+
}, Ar = je({}), yr = je({}), Jt = E("zh-CN"), ma = "dasI18n", ho = (t, e) => {
|
|
96
96
|
const n = e === "global", o = !n;
|
|
97
97
|
for (const r in t)
|
|
98
|
-
n && (
|
|
98
|
+
n && (yr[r] = t[r]), o && (Ar[r] = t[r]);
|
|
99
99
|
}, Wg = async (t) => {
|
|
100
100
|
var o, r;
|
|
101
101
|
const e = window[ma];
|
|
102
|
-
e &&
|
|
102
|
+
e && ho(e, "global");
|
|
103
103
|
let n = Object.assign(((o = t == null ? void 0 : t.i18n) == null ? void 0 : o.glob) || {});
|
|
104
104
|
(r = t == null ? void 0 : t.microApps) == null || r.map((s) => {
|
|
105
105
|
var a;
|
|
106
106
|
n = Object.assign(n, ((a = s.i18n) == null ? void 0 : a.glob) || {});
|
|
107
|
-
}), Object.values(n).filter((s) => !!s).flat().map((s) =>
|
|
107
|
+
}), Object.values(n).filter((s) => !!s).flat().map((s) => ho(s));
|
|
108
108
|
}, va = (t, ...e) => H(() => {
|
|
109
|
-
const n =
|
|
109
|
+
const n = yr[t] || Ar[t] || t;
|
|
110
110
|
if (n === t) return t;
|
|
111
111
|
let o = n[Jt.value];
|
|
112
112
|
return Jt.value === "zh-CN" && n["zh-cn"] && !n["zh-CN"] && (o = n["zh-cn"]), e.map((r, s) => {
|
|
@@ -114,10 +114,10 @@ const ga = (t) => {
|
|
|
114
114
|
}), o;
|
|
115
115
|
}), Aa = va, zg = (t, ...e) => Aa(t, ...e).value, qg = (t) => {
|
|
116
116
|
Jt.value = t;
|
|
117
|
-
}, Jg = () => Jt, it =
|
|
117
|
+
}, Jg = () => Jt, it = E("light"), yt = E({
|
|
118
118
|
light: {},
|
|
119
119
|
dark: {}
|
|
120
|
-
}), _t =
|
|
120
|
+
}), _t = E({
|
|
121
121
|
light: {},
|
|
122
122
|
dark: {}
|
|
123
123
|
}), ya = "dasTheme", wt = "das-theme", _a = (t) => {
|
|
@@ -150,7 +150,7 @@ function ba(t) {
|
|
|
150
150
|
let o = document.getElementById(n);
|
|
151
151
|
return t === "global" && (o = document.getElementById(e)), o.sheet;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const go = (t, e) => {
|
|
154
154
|
e || (e = "custom");
|
|
155
155
|
const n = ba(e), o = _a(t);
|
|
156
156
|
for (const s in o) {
|
|
@@ -166,12 +166,12 @@ const mo = (t, e) => {
|
|
|
166
166
|
}, Kg = async (t) => {
|
|
167
167
|
var o, r;
|
|
168
168
|
const e = window[ya];
|
|
169
|
-
e &&
|
|
169
|
+
e && go(e, "global");
|
|
170
170
|
let n = Object.assign(((o = t == null ? void 0 : t.theme) == null ? void 0 : o.glob) || {});
|
|
171
171
|
(r = t == null ? void 0 : t.microApps) == null || r.map((s) => {
|
|
172
172
|
var a;
|
|
173
173
|
n = Object.assign(n, ((a = s.theme) == null ? void 0 : a.glob) || {});
|
|
174
|
-
}), Object.values(n).filter((s) => !!s).flat().map((s) =>
|
|
174
|
+
}), Object.values(n).filter((s) => !!s).flat().map((s) => go(s));
|
|
175
175
|
}, Gg = (t) => {
|
|
176
176
|
document.body.classList.add(`${wt}-light`), t === "light" && document.body.classList.remove(`${wt}-${it.value}`), it.value = t, document.body.classList.add(`${wt}-${it.value}`);
|
|
177
177
|
}, wa = (t) => H(() => {
|
|
@@ -207,10 +207,14 @@ const mo = (t, e) => {
|
|
|
207
207
|
Z.items = e;
|
|
208
208
|
},
|
|
209
209
|
appendItem: (t) => {
|
|
210
|
-
|
|
210
|
+
setTimeout(() => {
|
|
211
|
+
Z.visible || (Z.visible = !0), !Z.items.find((n) => n.value == t.value) && Z.items.push(t);
|
|
212
|
+
}, 200);
|
|
211
213
|
},
|
|
212
214
|
setActiveItem: (t) => {
|
|
213
|
-
|
|
215
|
+
setTimeout(() => {
|
|
216
|
+
Z.activeItem = t;
|
|
217
|
+
}, 200);
|
|
214
218
|
},
|
|
215
219
|
setConfig: (t) => {
|
|
216
220
|
Z.config = t;
|
|
@@ -266,11 +270,15 @@ const mo = (t, e) => {
|
|
|
266
270
|
eventListeners: {}
|
|
267
271
|
}), Ia = {
|
|
268
272
|
setItems: (t) => {
|
|
269
|
-
|
|
273
|
+
setTimeout(() => {
|
|
274
|
+
Re.items = t;
|
|
275
|
+
}, 200);
|
|
270
276
|
},
|
|
271
277
|
getItems: () => Re.items,
|
|
272
278
|
setActiveItem: (t) => {
|
|
273
|
-
|
|
279
|
+
setTimeout(() => {
|
|
280
|
+
Re.activeItem = t;
|
|
281
|
+
}, 200);
|
|
274
282
|
},
|
|
275
283
|
setPopupClassName: (t) => {
|
|
276
284
|
Re.popupClassName = t;
|
|
@@ -309,7 +317,7 @@ const mo = (t, e) => {
|
|
|
309
317
|
}, be = je({
|
|
310
318
|
items: [],
|
|
311
319
|
eventListeners: {}
|
|
312
|
-
}),
|
|
320
|
+
}), Ta = {
|
|
313
321
|
setItems: (t) => {
|
|
314
322
|
be.items = t;
|
|
315
323
|
},
|
|
@@ -319,11 +327,15 @@ const mo = (t, e) => {
|
|
|
319
327
|
be.items = e;
|
|
320
328
|
},
|
|
321
329
|
appendItem: (t) => {
|
|
322
|
-
|
|
323
|
-
|
|
330
|
+
setTimeout(() => {
|
|
331
|
+
const e = be.items.findIndex((n) => n.value == t.value);
|
|
332
|
+
e !== -1 ? be.items.splice(e, 1, t) : be.items.push(t);
|
|
333
|
+
}, 200);
|
|
324
334
|
},
|
|
325
335
|
setActiveItem: (t) => {
|
|
326
|
-
|
|
336
|
+
setTimeout(() => {
|
|
337
|
+
be.activeItem = t;
|
|
338
|
+
}, 200);
|
|
327
339
|
},
|
|
328
340
|
triggerEventListener: (t, e, n) => {
|
|
329
341
|
var a;
|
|
@@ -358,7 +370,7 @@ const mo = (t, e) => {
|
|
|
358
370
|
}
|
|
359
371
|
}, bt = je({
|
|
360
372
|
eventListeners: {}
|
|
361
|
-
}),
|
|
373
|
+
}), Ea = {
|
|
362
374
|
triggerEventListener: (t, e, n) => {
|
|
363
375
|
var a;
|
|
364
376
|
const o = bt.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
|
|
@@ -390,26 +402,26 @@ const mo = (t, e) => {
|
|
|
390
402
|
remove: o
|
|
391
403
|
};
|
|
392
404
|
}
|
|
393
|
-
},
|
|
405
|
+
}, Tn = je({
|
|
394
406
|
visible: !1,
|
|
395
407
|
style: {}
|
|
396
|
-
}),
|
|
408
|
+
}), Sa = {
|
|
397
409
|
set: (t, e) => {
|
|
398
|
-
|
|
410
|
+
Tn.visible = t, e || (e = {}), e.transition || (e.transition = "all 0.3s"), e && (Tn.style = e);
|
|
399
411
|
}
|
|
400
412
|
}, Je = {
|
|
401
413
|
nav: Z,
|
|
402
414
|
menu: Re,
|
|
403
415
|
tab: be,
|
|
404
|
-
overlay:
|
|
416
|
+
overlay: Tn,
|
|
405
417
|
iframeView: bt,
|
|
406
|
-
visible:
|
|
418
|
+
visible: E(!0)
|
|
407
419
|
}, z = {
|
|
408
420
|
nav: Ca,
|
|
409
421
|
menu: Ia,
|
|
410
|
-
tab:
|
|
411
|
-
overlay:
|
|
412
|
-
iframeView:
|
|
422
|
+
tab: Ta,
|
|
423
|
+
overlay: Sa,
|
|
424
|
+
iframeView: Ea,
|
|
413
425
|
setVisible: (t) => Je.visible.value = t
|
|
414
426
|
}, ka = ["name"], Pa = ["name"], La = /* @__PURE__ */ oe({
|
|
415
427
|
__name: "das-iframe-router-view",
|
|
@@ -420,39 +432,39 @@ const mo = (t, e) => {
|
|
|
420
432
|
},
|
|
421
433
|
setup(t) {
|
|
422
434
|
const e = t, n = H(() => {
|
|
423
|
-
const { mode:
|
|
435
|
+
const { mode: h = "", ...d } = {
|
|
424
436
|
mode: "out-in",
|
|
425
437
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
426
438
|
...e.transitionConfig || {}
|
|
427
439
|
};
|
|
428
440
|
return d;
|
|
429
|
-
}), o = Ye(), r = Dt(), s =
|
|
441
|
+
}), o = Ye(), r = Dt(), s = E([]), a = H(() => s.value.filter((h) => {
|
|
430
442
|
var d;
|
|
431
|
-
return (d =
|
|
432
|
-
})), l = (
|
|
433
|
-
const d =
|
|
434
|
-
let p = d !== -1 ?
|
|
443
|
+
return (d = h.meta) == null ? void 0 : d.isOpen;
|
|
444
|
+
})), l = (h) => {
|
|
445
|
+
const d = h.lastIndexOf("-");
|
|
446
|
+
let p = d !== -1 ? h.substring(d + 1) : "";
|
|
435
447
|
p === "0" ? p = "1" : p = "0", a.value.forEach((g) => {
|
|
436
|
-
g.meta.key ===
|
|
448
|
+
g.meta.key === h && (g.meta.key = `${g.path}-${p}`);
|
|
437
449
|
});
|
|
438
450
|
};
|
|
439
451
|
X(
|
|
440
452
|
() => e.exclude,
|
|
441
|
-
(
|
|
442
|
-
if (!
|
|
443
|
-
const d = a.value.find((p) =>
|
|
453
|
+
(h) => {
|
|
454
|
+
if (!h || !h.length) return;
|
|
455
|
+
const d = a.value.find((p) => h.includes(p.path));
|
|
444
456
|
d && l(d.meta.key);
|
|
445
457
|
},
|
|
446
458
|
{ deep: !0 }
|
|
447
459
|
);
|
|
448
|
-
const c = async (
|
|
449
|
-
const d =
|
|
460
|
+
const c = async (h) => {
|
|
461
|
+
const d = h.component;
|
|
450
462
|
let p = null;
|
|
451
463
|
return typeof d == "function" ? p = (await d()).default : p = d, p;
|
|
452
464
|
}, i = async () => {
|
|
453
465
|
var d;
|
|
454
|
-
const
|
|
455
|
-
for (const p of
|
|
466
|
+
const h = o.options.routes;
|
|
467
|
+
for (const p of h)
|
|
456
468
|
if ((d = p == null ? void 0 : p.meta) != null && d.isIframe) {
|
|
457
469
|
const g = await c(p);
|
|
458
470
|
s.value.push({
|
|
@@ -464,8 +476,8 @@ const mo = (t, e) => {
|
|
|
464
476
|
}, u = async () => {
|
|
465
477
|
var p, g;
|
|
466
478
|
if (!s.value || !s.value.length) return;
|
|
467
|
-
const
|
|
468
|
-
|
|
479
|
+
const h = s.value.find((A) => A.meta.isShow);
|
|
480
|
+
h && (h.meta.isShow = !1, await Qe(), z.iframeView.triggerEventListener("onDeactivated", { route: h }));
|
|
469
481
|
const d = s.value.find((A) => A.path === r.path);
|
|
470
482
|
d && ((p = d.meta) != null && p.isOpen || (d.meta.isOpen = !0), (g = d.meta) != null && g.isShow || (d.meta.isShow = !0), await Qe(), z.iframeView.triggerEventListener("onActivated", { route: d }));
|
|
471
483
|
};
|
|
@@ -474,19 +486,19 @@ const mo = (t, e) => {
|
|
|
474
486
|
() => {
|
|
475
487
|
u();
|
|
476
488
|
}
|
|
477
|
-
), (
|
|
489
|
+
), (h, d) => ($(), W(
|
|
478
490
|
De,
|
|
479
491
|
null,
|
|
480
492
|
[
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
493
|
+
h.needTransition ? ($(), F(
|
|
494
|
+
vs,
|
|
495
|
+
An($t({ key: 0 }, n.value)),
|
|
484
496
|
{
|
|
485
497
|
default: B(() => [
|
|
486
498
|
($(!0), W(
|
|
487
499
|
De,
|
|
488
500
|
null,
|
|
489
|
-
|
|
501
|
+
Tt(a.value, ({ path: p, meta: g }) => Te(($(), W("div", {
|
|
490
502
|
class: "das-iframe-router-view",
|
|
491
503
|
key: p,
|
|
492
504
|
name: p
|
|
@@ -507,10 +519,10 @@ const mo = (t, e) => {
|
|
|
507
519
|
16
|
|
508
520
|
/* FULL_PROPS */
|
|
509
521
|
)) : j("v-if", !0),
|
|
510
|
-
|
|
522
|
+
h.needTransition ? j("v-if", !0) : ($(!0), W(
|
|
511
523
|
De,
|
|
512
524
|
{ key: 1 },
|
|
513
|
-
|
|
525
|
+
Tt(a.value, ({ path: p, meta: g }) => Te(($(), W("div", {
|
|
514
526
|
class: "das-iframe-router-view",
|
|
515
527
|
key: p,
|
|
516
528
|
name: p
|
|
@@ -567,7 +579,7 @@ const mo = (t, e) => {
|
|
|
567
579
|
setup(t) {
|
|
568
580
|
const e = t;
|
|
569
581
|
da(), pa(), fa();
|
|
570
|
-
const n = Dt(), o =
|
|
582
|
+
const n = Dt(), o = E(!1), r = E(!1), s = E(!1), a = H(() => o.value && e.showLayout), l = H(() => r.value && e.showLayout && e.showAside), c = H(() => o.value && e.showLayout && e.showTabs), i = H(() => e.routerViewVisible ?? !0), u = H(() => Je.overlay.visible ?? !1), h = H(() => ({
|
|
571
583
|
"das-web-app-overlay-show": u.value === !0,
|
|
572
584
|
"das-web-app-overlay-hide": u.value === !1,
|
|
573
585
|
"das-web-app-overlay-destroy": u.value === "destroy"
|
|
@@ -575,15 +587,15 @@ const mo = (t, e) => {
|
|
|
575
587
|
X(
|
|
576
588
|
() => [n.meta, n.query],
|
|
577
589
|
([y, w]) => {
|
|
578
|
-
const { showLayout: C = !0, showAside: k = !0, showTabs: I = !0, layout:
|
|
579
|
-
showLayout:
|
|
590
|
+
const { showLayout: C = !0, showAside: k = !0, showTabs: I = !0, layout: S = {} } = y, {
|
|
591
|
+
showLayout: T = !0,
|
|
580
592
|
showAside: x = !0,
|
|
581
593
|
showTabs: Q = !0,
|
|
582
594
|
app: V
|
|
583
595
|
} = w;
|
|
584
|
-
|
|
596
|
+
ua({ minHeight: "600px", minWidth: "1200px" });
|
|
585
597
|
let J = !0, le = !0, Ie = !0;
|
|
586
|
-
(C === !1 ||
|
|
598
|
+
(C === !1 || T === !1 || T === "false") && (J = !1, le = !1, Ie = !1), (k === !1 || x === !1 || x === "false") && (le = !1), (I === !1 || Q === !1 || Q === "false") && (Ie = !1), o.value = J, r.value = le, s.value = Ie;
|
|
587
599
|
}
|
|
588
600
|
);
|
|
589
601
|
const A = H(() => ({
|
|
@@ -592,23 +604,23 @@ const mo = (t, e) => {
|
|
|
592
604
|
...e.transitionConfig || {}
|
|
593
605
|
}));
|
|
594
606
|
let m = /* @__PURE__ */ new Map();
|
|
595
|
-
const
|
|
607
|
+
const f = (y, w) => {
|
|
596
608
|
let C;
|
|
597
609
|
return m.has(w) ? C = m.get(w) : (C = {
|
|
598
610
|
name: w,
|
|
599
611
|
render() {
|
|
600
|
-
return
|
|
612
|
+
return he("div", { style: { width: "100%", height: "100%" } }, [he(y)]);
|
|
601
613
|
}
|
|
602
|
-
}, m.set(w, C)),
|
|
614
|
+
}, m.set(w, C)), he(C);
|
|
603
615
|
}, _ = H(() => Je.visible.value);
|
|
604
616
|
return (y, w) => {
|
|
605
|
-
const C =
|
|
617
|
+
const C = As("router-view");
|
|
606
618
|
return $(), W("div", Da, [
|
|
607
|
-
|
|
619
|
+
Te(O(
|
|
608
620
|
"div",
|
|
609
621
|
{
|
|
610
|
-
class:
|
|
611
|
-
style:
|
|
622
|
+
class: rr(["das-web-app-overlay", h.value]),
|
|
623
|
+
style: yn(d.value)
|
|
612
624
|
},
|
|
613
625
|
null,
|
|
614
626
|
6
|
|
@@ -616,11 +628,11 @@ const mo = (t, e) => {
|
|
|
616
628
|
), [
|
|
617
629
|
[Le, _.value]
|
|
618
630
|
]),
|
|
619
|
-
a.value ?
|
|
631
|
+
a.value ? Te(($(), W(
|
|
620
632
|
"div",
|
|
621
633
|
Ma,
|
|
622
634
|
[
|
|
623
|
-
|
|
635
|
+
fe(y.$slots, "header", {}, void 0, !0)
|
|
624
636
|
],
|
|
625
637
|
512
|
|
626
638
|
/* NEED_PATCH */
|
|
@@ -628,11 +640,11 @@ const mo = (t, e) => {
|
|
|
628
640
|
[Le, _.value]
|
|
629
641
|
]) : j("v-if", !0),
|
|
630
642
|
O("div", Oa, [
|
|
631
|
-
l.value ?
|
|
643
|
+
l.value ? Te(($(), W(
|
|
632
644
|
"div",
|
|
633
645
|
Ba,
|
|
634
646
|
[
|
|
635
|
-
|
|
647
|
+
fe(y.$slots, "aside", {}, void 0, !0)
|
|
636
648
|
],
|
|
637
649
|
512
|
|
638
650
|
/* NEED_PATCH */
|
|
@@ -640,11 +652,11 @@ const mo = (t, e) => {
|
|
|
640
652
|
[Le, _.value]
|
|
641
653
|
]) : j("v-if", !0),
|
|
642
654
|
O("div", Ra, [
|
|
643
|
-
c.value ?
|
|
655
|
+
c.value ? Te(($(), W(
|
|
644
656
|
"div",
|
|
645
657
|
xa,
|
|
646
658
|
[
|
|
647
|
-
|
|
659
|
+
fe(y.$slots, "tab", {}, void 0, !0)
|
|
648
660
|
],
|
|
649
661
|
512
|
|
650
662
|
/* NEED_PATCH */
|
|
@@ -652,11 +664,11 @@ const mo = (t, e) => {
|
|
|
652
664
|
[Le, _.value]
|
|
653
665
|
]) : j("v-if", !0),
|
|
654
666
|
O("div", Qa, [
|
|
655
|
-
|
|
667
|
+
Te(O(
|
|
656
668
|
"div",
|
|
657
669
|
ja,
|
|
658
670
|
[
|
|
659
|
-
|
|
671
|
+
fe(y.$slots, "banner", {}, void 0, !0)
|
|
660
672
|
],
|
|
661
673
|
512
|
|
662
674
|
/* NEED_PATCH */
|
|
@@ -664,26 +676,26 @@ const mo = (t, e) => {
|
|
|
664
676
|
[Le, _.value]
|
|
665
677
|
]),
|
|
666
678
|
O("div", Na, [
|
|
667
|
-
|
|
679
|
+
Te(O(
|
|
668
680
|
"div",
|
|
669
681
|
Ha,
|
|
670
682
|
[
|
|
671
|
-
|
|
683
|
+
fe(y.$slots, "router-view", {}, () => [
|
|
672
684
|
j(" 有动画 "),
|
|
673
685
|
y.needTransition ? ($(), F(C, { key: 0 }, {
|
|
674
686
|
default: B(({ Component: k }) => [
|
|
675
687
|
R(
|
|
676
|
-
|
|
677
|
-
|
|
688
|
+
ao,
|
|
689
|
+
An(io(A.value)),
|
|
678
690
|
{
|
|
679
691
|
default: B(() => {
|
|
680
692
|
var I;
|
|
681
693
|
return [
|
|
682
|
-
v(n).meta.keepAlive ? ($(), F(
|
|
694
|
+
v(n).meta.keepAlive ? ($(), F(co, {
|
|
683
695
|
key: 0,
|
|
684
696
|
exclude: p.value
|
|
685
697
|
}, [
|
|
686
|
-
g.value && !((I = v(n).meta) != null && I.isIframe) ? ($(), F(at(
|
|
698
|
+
g.value && !((I = v(n).meta) != null && I.isIframe) ? ($(), F(at(f(k, v(n).path)), {
|
|
687
699
|
key: v(n).path
|
|
688
700
|
})) : j("v-if", !0)
|
|
689
701
|
], 1032, ["exclude"])) : j("v-if", !0)
|
|
@@ -696,8 +708,8 @@ const mo = (t, e) => {
|
|
|
696
708
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
697
709
|
),
|
|
698
710
|
R(
|
|
699
|
-
|
|
700
|
-
|
|
711
|
+
ao,
|
|
712
|
+
An(io(A.value)),
|
|
701
713
|
{
|
|
702
714
|
default: B(() => [
|
|
703
715
|
!v(n).meta.keepAlive && !v(n).meta.isIframe ? ($(), W("div", Ua, [
|
|
@@ -719,11 +731,11 @@ const mo = (t, e) => {
|
|
|
719
731
|
j(" 无动画 "),
|
|
720
732
|
y.needTransition ? j("v-if", !0) : ($(), F(C, { key: 1 }, {
|
|
721
733
|
default: B(({ Component: k }) => [
|
|
722
|
-
v(n).meta.keepAlive ? ($(), F(
|
|
734
|
+
v(n).meta.keepAlive ? ($(), F(co, {
|
|
723
735
|
key: 0,
|
|
724
736
|
exclude: p.value
|
|
725
737
|
}, [
|
|
726
|
-
g.value && !v(n).meta.isIframe ? ($(), F(at(
|
|
738
|
+
g.value && !v(n).meta.isIframe ? ($(), F(at(f(k, v(n).path)), {
|
|
727
739
|
key: v(n).path
|
|
728
740
|
})) : j("v-if", !0)
|
|
729
741
|
], 1032, ["exclude"])) : j("v-if", !0),
|
|
@@ -736,7 +748,7 @@ const mo = (t, e) => {
|
|
|
736
748
|
_: 1
|
|
737
749
|
/* STABLE */
|
|
738
750
|
})),
|
|
739
|
-
|
|
751
|
+
Te(O(
|
|
740
752
|
"div",
|
|
741
753
|
Va,
|
|
742
754
|
[
|
|
@@ -758,11 +770,11 @@ const mo = (t, e) => {
|
|
|
758
770
|
), [
|
|
759
771
|
[Le, i.value]
|
|
760
772
|
]),
|
|
761
|
-
|
|
773
|
+
Te(O(
|
|
762
774
|
"div",
|
|
763
775
|
Wa,
|
|
764
776
|
[
|
|
765
|
-
|
|
777
|
+
fe(y.$slots, "default", {}, void 0, !0)
|
|
766
778
|
],
|
|
767
779
|
512
|
|
768
780
|
/* NEED_PATCH */
|
|
@@ -776,17 +788,17 @@ const mo = (t, e) => {
|
|
|
776
788
|
]);
|
|
777
789
|
};
|
|
778
790
|
}
|
|
779
|
-
}), Yg = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-
|
|
791
|
+
}), Yg = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-47a099d6"]]), qa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], em = /* @__PURE__ */ oe({
|
|
780
792
|
__name: "das-web-nav",
|
|
781
793
|
setup(t) {
|
|
782
794
|
const { nav: e } = Je, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((k) => k.fixed)), s = H(() => (e.items || []).filter((k) => !k.fixed)), a = H(() => {
|
|
783
|
-
var C, k, I,
|
|
795
|
+
var C, k, I, S;
|
|
784
796
|
return {
|
|
785
797
|
showFullScreen: ((C = e.config) == null ? void 0 : C.showFullScreen) ?? !1,
|
|
786
798
|
showChangeEnterprise: ((k = e.config) == null ? void 0 : k.showChangeEnterprise) ?? !1,
|
|
787
799
|
showSearch: ((I = e.config) == null ? void 0 : I.showSearch) ?? !0,
|
|
788
|
-
showProjectTree: ((
|
|
789
|
-
subAppList: s.value.map((
|
|
800
|
+
showProjectTree: ((S = e.config) == null ? void 0 : S.showProjectTree) ?? !0,
|
|
801
|
+
subAppList: s.value.map((T) => ({ code: T.value, name: T.label, ...T }))
|
|
790
802
|
};
|
|
791
803
|
}), l = H(() => {
|
|
792
804
|
const C = r.value.find((k) => k.value === e.activeItem);
|
|
@@ -800,14 +812,14 @@ const mo = (t, e) => {
|
|
|
800
812
|
currentProject: e.activeProject
|
|
801
813
|
},
|
|
802
814
|
...e.projectConfig
|
|
803
|
-
})), i = H(() => e.userInfo), u = H(() => e.searchConfig),
|
|
804
|
-
const k = C.detail[0], I = r.value.find((
|
|
815
|
+
})), i = H(() => e.userInfo), u = H(() => e.searchConfig), h = async (C) => {
|
|
816
|
+
const k = C.detail[0], I = r.value.find((T) => k.value === T.value);
|
|
805
817
|
await z.nav.triggerEventListener("onItemClick", I) && z.nav.setActiveItem(I.value);
|
|
806
818
|
}, d = async (C) => {
|
|
807
|
-
const k = C.detail[0], I = s.value.find((
|
|
819
|
+
const k = C.detail[0], I = s.value.find((T) => k === T.value);
|
|
808
820
|
await z.nav.triggerEventListener("onItemClick", I) && z.nav.setActiveItem(I.value);
|
|
809
821
|
}, p = async (C) => {
|
|
810
|
-
const k = C.detail[0], I = s.value.find((
|
|
822
|
+
const k = C.detail[0], I = s.value.find((T) => k === T.value);
|
|
811
823
|
await z.nav.triggerEventListener("onItemRemove", I) && z.nav.removeItem(I.value);
|
|
812
824
|
}, g = async (C) => {
|
|
813
825
|
const [k, I] = C.detail;
|
|
@@ -816,7 +828,7 @@ const mo = (t, e) => {
|
|
|
816
828
|
z.nav.triggerEventListener("onUserCommandChange", C.detail[0]);
|
|
817
829
|
}, m = (C) => {
|
|
818
830
|
z.nav.triggerEventListener("searchToPage", { item: C.detail[0], keyword: C.detail[1], cb: C.detail[2] });
|
|
819
|
-
},
|
|
831
|
+
}, f = (C) => {
|
|
820
832
|
z.nav.triggerEventListener("clearSearchList", { cb: C.detail[0] });
|
|
821
833
|
}, _ = (C) => {
|
|
822
834
|
z.nav.triggerEventListener("deleteSearchItem", { value: C.detail[0], cb: C.detail[1] });
|
|
@@ -825,11 +837,11 @@ const mo = (t, e) => {
|
|
|
825
837
|
}, w = () => {
|
|
826
838
|
z.nav.triggerEventListener("fullScreenHandle");
|
|
827
839
|
};
|
|
828
|
-
return
|
|
840
|
+
return ys(() => {
|
|
829
841
|
z.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
830
842
|
}), Ve(() => {
|
|
831
843
|
z.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
832
|
-
}),
|
|
844
|
+
}), _s(() => {
|
|
833
845
|
z.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
834
846
|
}), (C, k) => ($(), W("das-ce-nav", {
|
|
835
847
|
modelValue: o.value,
|
|
@@ -840,12 +852,12 @@ const mo = (t, e) => {
|
|
|
840
852
|
projectTreeConfig: c.value,
|
|
841
853
|
userInfoConfig: i.value,
|
|
842
854
|
"on:userCommandHandle": A,
|
|
843
|
-
"on:changeInnerPage":
|
|
855
|
+
"on:changeInnerPage": h,
|
|
844
856
|
"on:handleTabClick": d,
|
|
845
857
|
"on:handleTabDelete": p,
|
|
846
858
|
"on:changeTreeHandle": g,
|
|
847
859
|
"on:searchToPage": m,
|
|
848
|
-
"on:clearSearchList":
|
|
860
|
+
"on:clearSearchList": f,
|
|
849
861
|
"on:deleteSearchItem": _,
|
|
850
862
|
"on:changeEnterpriseHandle": y,
|
|
851
863
|
"on:fullScreen": w
|
|
@@ -858,10 +870,10 @@ const mo = (t, e) => {
|
|
|
858
870
|
},
|
|
859
871
|
setup(t) {
|
|
860
872
|
const { menu: e } = Je, n = t, o = H(() => n.menuAttr || {}), r = H(() => e.items), s = H(() => e.items.find((u) => u.fixed)), a = H(() => e.activeItem || ""), l = H(() => e.collapse ?? !1), c = H(() => ({ popupClassName: e.popupClassName ?? "" })), i = async (u) => {
|
|
861
|
-
const
|
|
873
|
+
const h = u.detail[0], d = la(r.value).find((g) => h === g.id);
|
|
862
874
|
await z.menu.triggerEventListener("onItemClick", d) && z.menu.setActiveItem(d.id);
|
|
863
875
|
};
|
|
864
|
-
return (u,
|
|
876
|
+
return (u, h) => r.value.length > 0 ? ($(), W("das-ce-menu", $t({
|
|
865
877
|
key: 0,
|
|
866
878
|
modelValue: a.value,
|
|
867
879
|
data: r.value,
|
|
@@ -876,24 +888,24 @@ const mo = (t, e) => {
|
|
|
876
888
|
tabsAttr: {}
|
|
877
889
|
},
|
|
878
890
|
setup(t) {
|
|
879
|
-
const { tab: e } = Je, n = t, o = H(() => n.tabsAttr || {}), r = H(() => e.items.map((
|
|
880
|
-
...
|
|
881
|
-
key:
|
|
882
|
-
tab:
|
|
883
|
-
}))), s = H(() => e.activeItem || ""), a = async (
|
|
884
|
-
const d =
|
|
891
|
+
const { tab: e } = Je, n = t, o = H(() => n.tabsAttr || {}), r = H(() => e.items.map((h) => ({
|
|
892
|
+
...h,
|
|
893
|
+
key: h.value,
|
|
894
|
+
tab: h.label
|
|
895
|
+
}))), s = H(() => e.activeItem || ""), a = async (h) => {
|
|
896
|
+
const d = h.detail[0], p = r.value.find((A) => d === A.value);
|
|
885
897
|
await z.tab.triggerEventListener("onItemClick", p) && z.tab.setActiveItem(p.value);
|
|
886
|
-
}, l = async (
|
|
887
|
-
const d =
|
|
898
|
+
}, l = async (h) => {
|
|
899
|
+
const d = h.detail[0], p = r.value.find((A) => d === A.value);
|
|
888
900
|
await z.tab.triggerEventListener("onItemRemove", p) && z.tab.removeItem(p.value);
|
|
889
|
-
}, c = async (
|
|
890
|
-
await z.tab.triggerEventListener("onMenuClick", { type:
|
|
891
|
-
}, i = async (
|
|
892
|
-
await z.tab.triggerEventListener("onPageRefresh",
|
|
901
|
+
}, c = async (h) => {
|
|
902
|
+
await z.tab.triggerEventListener("onMenuClick", { type: h.detail[0], data: h.detail[1] });
|
|
903
|
+
}, i = async (h) => {
|
|
904
|
+
await z.tab.triggerEventListener("onPageRefresh", h.detail[0]);
|
|
893
905
|
}, u = () => {
|
|
894
906
|
z.tab.triggerEventListener("onToggleFullScreen");
|
|
895
907
|
};
|
|
896
|
-
return (
|
|
908
|
+
return (h, d) => r.value.length > 0 ? ($(), W("das-ce-tabs", $t({
|
|
897
909
|
key: 0,
|
|
898
910
|
modelValue: s.value,
|
|
899
911
|
options: r.value
|
|
@@ -905,8 +917,8 @@ const mo = (t, e) => {
|
|
|
905
917
|
"on:toggleFullScreen": u
|
|
906
918
|
}), null, 16, Ka)) : j("v-if", !0);
|
|
907
919
|
}
|
|
908
|
-
}),
|
|
909
|
-
let
|
|
920
|
+
}), mo = E("/das-micro-app"), de = E([]), Ht = E(!1), Qt = E([]), jt = E(!0);
|
|
921
|
+
let Ee = null, Se = null, rt = null;
|
|
910
922
|
const st = (t, e, n) => {
|
|
911
923
|
var r, s, a, l;
|
|
912
924
|
const o = de.value.find((c) => c.name === t);
|
|
@@ -917,51 +929,51 @@ const st = (t, e, n) => {
|
|
|
917
929
|
}
|
|
918
930
|
(l = (a = o.dom) == null ? void 0 : a.contentWindow) == null || l.postMessage({ type: e, data: n }, o.entry);
|
|
919
931
|
}
|
|
920
|
-
},
|
|
932
|
+
}, dn = (t, e) => {
|
|
921
933
|
var s;
|
|
922
934
|
const { __IN_DAS_MICRO_APP: n, __DAS_MAIN_APP_HREF: o } = window;
|
|
923
935
|
if (!n || !o) return;
|
|
924
936
|
const { origin: r } = new URL(o);
|
|
925
937
|
(s = window.top) == null || s.postMessage({ type: t, data: e }, r);
|
|
926
938
|
}, Ga = () => {
|
|
927
|
-
|
|
939
|
+
Se || (Se || (Se = {}), window.addEventListener(
|
|
928
940
|
"message",
|
|
929
941
|
(t) => {
|
|
930
942
|
const { type: e, source: n } = t.data || {};
|
|
931
|
-
if (n !== "react-devtools-content-script" &&
|
|
932
|
-
for (const o in
|
|
933
|
-
|
|
943
|
+
if (n !== "react-devtools-content-script" && Se[e])
|
|
944
|
+
for (const o in Se[e])
|
|
945
|
+
Se[e][o](t.data);
|
|
934
946
|
},
|
|
935
947
|
!1
|
|
936
948
|
));
|
|
937
949
|
}, Xa = () => {
|
|
938
|
-
|
|
950
|
+
Ee || (Ee || (Ee = {}), window.addEventListener(
|
|
939
951
|
"message",
|
|
940
952
|
(t) => {
|
|
941
953
|
const { type: e } = t.data || {};
|
|
942
|
-
if (
|
|
943
|
-
for (const n in
|
|
944
|
-
|
|
954
|
+
if (Ee[e])
|
|
955
|
+
for (const n in Ee[e])
|
|
956
|
+
Ee[e][n](t.data);
|
|
945
957
|
},
|
|
946
958
|
!1
|
|
947
959
|
));
|
|
948
960
|
}, Za = (t, e) => {
|
|
949
961
|
Xa();
|
|
950
962
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
951
|
-
return
|
|
963
|
+
return Ee[t] || (Ee[t] = {}), Ee[t][n] = e, {
|
|
952
964
|
remove: () => {
|
|
953
|
-
|
|
965
|
+
Ee[t] && Ee[t][n] && delete Ee[t][n];
|
|
954
966
|
}
|
|
955
967
|
};
|
|
956
968
|
}, Ya = (t, e) => {
|
|
957
969
|
Ga();
|
|
958
970
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
959
|
-
return
|
|
971
|
+
return Se[t] || (Se[t] = {}), Se[t][n] = e, {
|
|
960
972
|
remove: () => {
|
|
961
|
-
|
|
973
|
+
Se[t] && Se[t][n] && delete Se[t][n];
|
|
962
974
|
}
|
|
963
975
|
};
|
|
964
|
-
},
|
|
976
|
+
}, pn = async (t) => {
|
|
965
977
|
await Promise.all(
|
|
966
978
|
de.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
|
|
967
979
|
e.dom || await new Promise((o) => X(() => e.dom, o)), setTimeout(() => {
|
|
@@ -1031,23 +1043,23 @@ const st = (t, e, n) => {
|
|
|
1031
1043
|
}, 0), o;
|
|
1032
1044
|
},
|
|
1033
1045
|
sendMessageToMicroApp: st,
|
|
1034
|
-
sendMessageToMainApp:
|
|
1046
|
+
sendMessageToMainApp: dn,
|
|
1035
1047
|
addEventListenerFromMainApp: Za,
|
|
1036
1048
|
addEventListenerFromMicroApp: Ya,
|
|
1037
1049
|
setMainAppOverlay: (t, e) => {
|
|
1038
|
-
|
|
1050
|
+
dn("bodyOverlay", { visible: t, style: e });
|
|
1039
1051
|
},
|
|
1040
1052
|
sessionStorage: {
|
|
1041
1053
|
key: window.sessionStorage.key,
|
|
1042
1054
|
getItem: window.sessionStorage.getItem,
|
|
1043
1055
|
setItem: (t, e) => {
|
|
1044
|
-
window.sessionStorage.setItem(t, e),
|
|
1056
|
+
window.sessionStorage.setItem(t, e), pn({ cmd: "setItem", key: t, value: e });
|
|
1045
1057
|
},
|
|
1046
1058
|
removeItem: (t) => {
|
|
1047
|
-
window.sessionStorage.removeItem(t),
|
|
1059
|
+
window.sessionStorage.removeItem(t), pn({ cmd: "removeItem", key: t });
|
|
1048
1060
|
},
|
|
1049
1061
|
clear: () => {
|
|
1050
|
-
window.sessionStorage.clear(),
|
|
1062
|
+
window.sessionStorage.clear(), pn({ cmd: "clear" });
|
|
1051
1063
|
}
|
|
1052
1064
|
},
|
|
1053
1065
|
addMicroAppLifeCycleListener: (t, e) => {
|
|
@@ -1081,31 +1093,31 @@ const st = (t, e, n) => {
|
|
|
1081
1093
|
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => X(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
|
|
1082
1094
|
},
|
|
1083
1095
|
setMainAppLayoutVisible: (t) => {
|
|
1084
|
-
|
|
1096
|
+
dn("layoutVisible", { visible: t });
|
|
1085
1097
|
}
|
|
1086
1098
|
};
|
|
1087
|
-
var
|
|
1088
|
-
const
|
|
1099
|
+
var vo;
|
|
1100
|
+
const Un = typeof window < "u", ei = (t) => typeof t == "string", ti = () => {
|
|
1089
1101
|
};
|
|
1090
|
-
|
|
1091
|
-
function
|
|
1102
|
+
Un && ((vo = window == null ? void 0 : window.navigator) != null && vo.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1103
|
+
function _r(t) {
|
|
1092
1104
|
return typeof t == "function" ? t() : v(t);
|
|
1093
1105
|
}
|
|
1094
1106
|
function ni(t) {
|
|
1095
1107
|
return t;
|
|
1096
1108
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1109
|
+
function br(t) {
|
|
1110
|
+
return bs() ? (ws(t), !0) : !1;
|
|
1099
1111
|
}
|
|
1100
1112
|
function oi(t, e = !0) {
|
|
1101
|
-
|
|
1113
|
+
Cs() ? Ve(t) : e ? t() : Qe(t);
|
|
1102
1114
|
}
|
|
1103
|
-
function
|
|
1115
|
+
function wr(t) {
|
|
1104
1116
|
var e;
|
|
1105
|
-
const n =
|
|
1117
|
+
const n = _r(t);
|
|
1106
1118
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
1107
1119
|
}
|
|
1108
|
-
const ri =
|
|
1120
|
+
const ri = Un ? window : void 0, si = Un ? window.document : void 0;
|
|
1109
1121
|
function ai(...t) {
|
|
1110
1122
|
let e, n, o, r;
|
|
1111
1123
|
if (ei(t[0]) || Array.isArray(t[0]) ? ([n, o, r] = t, e = ri) : [e, n, o, r] = t, !e)
|
|
@@ -1113,20 +1125,20 @@ function ai(...t) {
|
|
|
1113
1125
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
1114
1126
|
const s = [], a = () => {
|
|
1115
1127
|
s.forEach((u) => u()), s.length = 0;
|
|
1116
|
-
}, l = (u,
|
|
1117
|
-
a(), u && s.push(...n.flatMap((d) => o.map((p) => l(u, d, p,
|
|
1128
|
+
}, l = (u, h, d, p) => (u.addEventListener(h, d, p), () => u.removeEventListener(h, d, p)), c = X(() => [wr(e), _r(r)], ([u, h]) => {
|
|
1129
|
+
a(), u && s.push(...n.flatMap((d) => o.map((p) => l(u, d, p, h))));
|
|
1118
1130
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
1119
1131
|
c(), a();
|
|
1120
1132
|
};
|
|
1121
|
-
return
|
|
1133
|
+
return br(i), i;
|
|
1122
1134
|
}
|
|
1123
1135
|
function ii(t, e = !1) {
|
|
1124
|
-
const n =
|
|
1136
|
+
const n = E(), o = () => n.value = !!t();
|
|
1125
1137
|
return o(), oi(o, e), n;
|
|
1126
1138
|
}
|
|
1127
|
-
const
|
|
1128
|
-
yo
|
|
1129
|
-
const
|
|
1139
|
+
const Ao = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, yo = "__vueuse_ssr_handlers__";
|
|
1140
|
+
Ao[yo] = Ao[yo] || {};
|
|
1141
|
+
const _o = [
|
|
1130
1142
|
[
|
|
1131
1143
|
"requestFullscreen",
|
|
1132
1144
|
"exitFullscreen",
|
|
@@ -1169,17 +1181,17 @@ const bo = [
|
|
|
1169
1181
|
]
|
|
1170
1182
|
];
|
|
1171
1183
|
function ht(t, e = {}) {
|
|
1172
|
-
const { document: n = si, autoExit: o = !1 } = e, r = t || (n == null ? void 0 : n.querySelector("html")), s =
|
|
1173
|
-
let a =
|
|
1184
|
+
const { document: n = si, autoExit: o = !1 } = e, r = t || (n == null ? void 0 : n.querySelector("html")), s = E(!1);
|
|
1185
|
+
let a = _o[0];
|
|
1174
1186
|
const l = ii(() => {
|
|
1175
1187
|
if (n) {
|
|
1176
|
-
for (const A of
|
|
1188
|
+
for (const A of _o)
|
|
1177
1189
|
if (A[1] in n)
|
|
1178
1190
|
return a = A, !0;
|
|
1179
1191
|
} else
|
|
1180
1192
|
return !1;
|
|
1181
1193
|
return !1;
|
|
1182
|
-
}), [c, i, u, ,
|
|
1194
|
+
}), [c, i, u, , h] = a;
|
|
1183
1195
|
async function d() {
|
|
1184
1196
|
l.value && (n != null && n[u] && await n[i](), s.value = !1);
|
|
1185
1197
|
}
|
|
@@ -1187,15 +1199,15 @@ function ht(t, e = {}) {
|
|
|
1187
1199
|
if (!l.value)
|
|
1188
1200
|
return;
|
|
1189
1201
|
await d();
|
|
1190
|
-
const A =
|
|
1202
|
+
const A = wr(r);
|
|
1191
1203
|
A && (await A[c](), s.value = !0);
|
|
1192
1204
|
}
|
|
1193
1205
|
async function g() {
|
|
1194
1206
|
s.value ? await d() : await p();
|
|
1195
1207
|
}
|
|
1196
|
-
return n && ai(n,
|
|
1208
|
+
return n && ai(n, h, () => {
|
|
1197
1209
|
s.value = !!(n != null && n[u]);
|
|
1198
|
-
}, !1), o &&
|
|
1210
|
+
}, !1), o && br(d), {
|
|
1199
1211
|
isSupported: l,
|
|
1200
1212
|
isFullscreen: s,
|
|
1201
1213
|
enter: p,
|
|
@@ -1203,16 +1215,16 @@ function ht(t, e = {}) {
|
|
|
1203
1215
|
toggle: g
|
|
1204
1216
|
};
|
|
1205
1217
|
}
|
|
1206
|
-
var
|
|
1218
|
+
var bo;
|
|
1207
1219
|
(function(t) {
|
|
1208
1220
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
1209
|
-
})(
|
|
1210
|
-
var ci = Object.defineProperty,
|
|
1221
|
+
})(bo || (bo = {}));
|
|
1222
|
+
var ci = Object.defineProperty, wo = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, Co = (t, e, n) => e in t ? ci(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, di = (t, e) => {
|
|
1211
1223
|
for (var n in e || (e = {}))
|
|
1212
|
-
li.call(e, n) &&
|
|
1213
|
-
if (
|
|
1214
|
-
for (var n of
|
|
1215
|
-
ui.call(e, n) &&
|
|
1224
|
+
li.call(e, n) && Co(t, n, e[n]);
|
|
1225
|
+
if (wo)
|
|
1226
|
+
for (var n of wo(e))
|
|
1227
|
+
ui.call(e, n) && Co(t, n, e[n]);
|
|
1216
1228
|
return t;
|
|
1217
1229
|
};
|
|
1218
1230
|
const pi = {
|
|
@@ -1270,7 +1282,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1270
1282
|
}), gi = /* @__PURE__ */ Ce(hi, [["__scopeId", "data-v-2266bab0"]]), mi = /* @__PURE__ */ oe({
|
|
1271
1283
|
__name: "das-micro-apps",
|
|
1272
1284
|
setup(t) {
|
|
1273
|
-
const e =
|
|
1285
|
+
const e = E(null), n = async (s, a) => {
|
|
1274
1286
|
const l = de.value.find((d) => d.name === a);
|
|
1275
1287
|
if (!l) return;
|
|
1276
1288
|
l.dom = s.target, await Qe(), await new Promise((d) => setTimeout(d, 50));
|
|
@@ -1310,11 +1322,11 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1310
1322
|
($(!0), W(
|
|
1311
1323
|
De,
|
|
1312
1324
|
null,
|
|
1313
|
-
|
|
1325
|
+
Tt(v(de), (l) => ($(), W(
|
|
1314
1326
|
De,
|
|
1315
1327
|
null,
|
|
1316
1328
|
[
|
|
1317
|
-
l.loaded ?
|
|
1329
|
+
l.loaded ? Te(($(), F(gi, {
|
|
1318
1330
|
key: 0,
|
|
1319
1331
|
src: l.src || "",
|
|
1320
1332
|
name: l.name,
|
|
@@ -1355,23 +1367,23 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1355
1367
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
1356
1368
|
...e.transitionConfig
|
|
1357
1369
|
})), r = H(() => ({ showLayout: e.showLayout, showAside: e.showAside, showTabs: e.showTabs }));
|
|
1358
|
-
return (s, a) => ($(), F(v(
|
|
1370
|
+
return (s, a) => ($(), F(v(Dn), $t({
|
|
1359
1371
|
"transition-config": o.value,
|
|
1360
1372
|
"router-view-visible": n.value
|
|
1361
1373
|
}, r.value), {
|
|
1362
1374
|
header: B(() => [
|
|
1363
|
-
|
|
1364
|
-
R(v(
|
|
1375
|
+
fe(s.$slots, "header", {}, () => [
|
|
1376
|
+
R(v(ir))
|
|
1365
1377
|
])
|
|
1366
1378
|
]),
|
|
1367
1379
|
aside: B(() => [
|
|
1368
|
-
|
|
1369
|
-
R(v(
|
|
1380
|
+
fe(s.$slots, "aside", {}, () => [
|
|
1381
|
+
R(v(cr), { menuAttr: s.menuAttr }, null, 8, ["menuAttr"])
|
|
1370
1382
|
])
|
|
1371
1383
|
]),
|
|
1372
1384
|
tab: B(() => [
|
|
1373
|
-
|
|
1374
|
-
R(v(
|
|
1385
|
+
fe(s.$slots, "tab", {}, () => [
|
|
1386
|
+
R(v(lr), { tabsAttr: s.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1375
1387
|
])
|
|
1376
1388
|
]),
|
|
1377
1389
|
default: B(() => [
|
|
@@ -1381,10 +1393,10 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1381
1393
|
/* FORWARDED */
|
|
1382
1394
|
}, 16, ["transition-config", "router-view-visible"]));
|
|
1383
1395
|
}
|
|
1384
|
-
}),
|
|
1396
|
+
}), Cr = /* @__PURE__ */ oe({
|
|
1385
1397
|
__name: "das-micro-app-ghost",
|
|
1386
1398
|
setup(t) {
|
|
1387
|
-
return
|
|
1399
|
+
return Is(() => {
|
|
1388
1400
|
setTimeout(() => {
|
|
1389
1401
|
document.documentElement.checkVisibility() && history.back();
|
|
1390
1402
|
}, 300);
|
|
@@ -1392,10 +1404,10 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1392
1404
|
}
|
|
1393
1405
|
}), Ai = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, rm = (t, e) => {
|
|
1394
1406
|
if (!(t != null && t.microApps) || !Array.isArray(t.microApps)) return;
|
|
1395
|
-
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (
|
|
1407
|
+
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix), de.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: Ai(r.entry || r.name) })), e == null || e.addRoute({
|
|
1396
1408
|
name: "das-micro-app",
|
|
1397
|
-
path: `${
|
|
1398
|
-
component:
|
|
1409
|
+
path: `${mo.value}/:pathMatch(.*)*`,
|
|
1410
|
+
component: Cr,
|
|
1399
1411
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1400
1412
|
}), te.addEventListenerFromMicroApp("bodyOverlay", (r) => {
|
|
1401
1413
|
const { visible: s, style: a } = r.data;
|
|
@@ -1422,10 +1434,10 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1422
1434
|
e == null || e.addRoute({
|
|
1423
1435
|
name: n,
|
|
1424
1436
|
path: `/${n}/:pathMatch(.*)*`,
|
|
1425
|
-
component:
|
|
1437
|
+
component: Cr,
|
|
1426
1438
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1427
1439
|
});
|
|
1428
|
-
const o =
|
|
1440
|
+
const o = E(!1), r = E(!1), s = E("");
|
|
1429
1441
|
X(
|
|
1430
1442
|
() => e.currentRoute.value,
|
|
1431
1443
|
(a) => {
|
|
@@ -1467,8 +1479,8 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1467
1479
|
params: i
|
|
1468
1480
|
});
|
|
1469
1481
|
}), te.addEventListenerFromMainApp("onActivated", (a) => {
|
|
1470
|
-
const { name: l = "", params: c = {}, query: i = {} } = e.currentRoute.value, { fromPath: u = "", fromQuery:
|
|
1471
|
-
o.value = !0, e == null || e.push({ path: u, query: JSON.parse(
|
|
1482
|
+
const { name: l = "", params: c = {}, query: i = {} } = e.currentRoute.value, { fromPath: u = "", fromQuery: h = "{}" } = i || {};
|
|
1483
|
+
o.value = !0, e == null || e.push({ path: u, query: JSON.parse(h), params: c });
|
|
1472
1484
|
}), te.addEventListenerFromMainApp("sessionStorage", (a) => {
|
|
1473
1485
|
const { cmd: l, key: c, value: i } = a.data;
|
|
1474
1486
|
l === "setItem" && window.sessionStorage.setItem(c, i), l === "getItem" && window.sessionStorage.getItem(c), l === "removeItem" && window.sessionStorage.removeItem(c), l === "clear" && window.sessionStorage.clear();
|
|
@@ -1480,10 +1492,10 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1480
1492
|
jt.value = !0, Qt.value = [];
|
|
1481
1493
|
}, 100));
|
|
1482
1494
|
});
|
|
1483
|
-
}, Ct = "/", Ue = "/application",
|
|
1495
|
+
}, Ct = "/", Ue = "/application", Ir = [
|
|
1484
1496
|
{ value: Ct, label: N("首页").value, path: Ct, fixed: !0 },
|
|
1485
1497
|
{ value: Ue, label: N("应用").value, path: Ue, fixed: !0 }
|
|
1486
|
-
], ct = "/outerView",
|
|
1498
|
+
], ct = "/outerView", Tr = "/placeholder", yi = [
|
|
1487
1499
|
{ value: "0", label: N("主题设置").value },
|
|
1488
1500
|
{ value: "1", label: N("个人中心").value },
|
|
1489
1501
|
{ value: "2", label: N("修改密码").value },
|
|
@@ -1511,35 +1523,38 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1511
1523
|
excludeRoutes: e.excludeRoutes,
|
|
1512
1524
|
routeKeepAliveVisible: e.routeKeepAliveVisible
|
|
1513
1525
|
}));
|
|
1514
|
-
return (r, s) => ($(), F(v(
|
|
1526
|
+
return (r, s) => ($(), F(v(Dn), $t({ "transition-config": n.value }, o.value), {
|
|
1515
1527
|
header: B(() => [
|
|
1516
|
-
|
|
1517
|
-
R(v(
|
|
1528
|
+
fe(r.$slots, "header", {}, () => [
|
|
1529
|
+
R(v(ir))
|
|
1518
1530
|
])
|
|
1519
1531
|
]),
|
|
1520
1532
|
aside: B(() => [
|
|
1521
|
-
|
|
1522
|
-
R(v(
|
|
1533
|
+
fe(r.$slots, "aside", {}, () => [
|
|
1534
|
+
R(v(cr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
1523
1535
|
])
|
|
1524
1536
|
]),
|
|
1525
1537
|
tab: B(() => [
|
|
1526
|
-
|
|
1527
|
-
R(v(
|
|
1538
|
+
fe(r.$slots, "tab", {}, () => [
|
|
1539
|
+
R(v(lr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1528
1540
|
])
|
|
1529
1541
|
]),
|
|
1542
|
+
banner: B(() => [
|
|
1543
|
+
fe(r.$slots, "banner")
|
|
1544
|
+
]),
|
|
1530
1545
|
_: 3
|
|
1531
1546
|
/* FORWARDED */
|
|
1532
1547
|
}, 16, ["transition-config"]));
|
|
1533
1548
|
}
|
|
1534
|
-
}), bi =
|
|
1549
|
+
}), bi = qs.get("watermark"), wi = /* @__PURE__ */ oe({
|
|
1535
1550
|
__name: "index",
|
|
1536
1551
|
props: {
|
|
1537
1552
|
platformInitNextTick: {}
|
|
1538
1553
|
},
|
|
1539
1554
|
setup(t) {
|
|
1540
|
-
const e = t, n =
|
|
1555
|
+
const e = t, n = E({}), o = E(120), r = E(64);
|
|
1541
1556
|
let s = [];
|
|
1542
|
-
const a =
|
|
1557
|
+
const a = E([]), l = je({
|
|
1543
1558
|
color: "rgba(0,0,0,.15)",
|
|
1544
1559
|
fontSize: 16
|
|
1545
1560
|
}), c = (p, g) => {
|
|
@@ -1552,36 +1567,36 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1552
1567
|
const g = !!((A = n.value) != null && A.pageSwith);
|
|
1553
1568
|
a.value = p && g ? [...s] : [];
|
|
1554
1569
|
}, u = async () => {
|
|
1555
|
-
var m,
|
|
1570
|
+
var m, f, _, y, w, C, k;
|
|
1556
1571
|
await (e == null ? void 0 : e.platformInitNextTick());
|
|
1557
1572
|
const [p, g] = await bi().run();
|
|
1558
1573
|
if (p) return null;
|
|
1559
1574
|
if (n.value = g, !!((m = n.value) != null && m.pageSwith)) {
|
|
1560
1575
|
s = [];
|
|
1561
|
-
const { name: I, phone:
|
|
1562
|
-
let
|
|
1563
|
-
if ((
|
|
1564
|
-
const x =
|
|
1565
|
-
s.push(x),
|
|
1576
|
+
const { name: I, phone: S } = await na();
|
|
1577
|
+
let T = "";
|
|
1578
|
+
if ((f = n.value) != null && f.nameSwith && I && (s.push(I), T = T + `${I} `), (_ = n.value) != null && _.phoneSwith && S) {
|
|
1579
|
+
const x = S.slice(-4);
|
|
1580
|
+
s.push(x), T = T + `${x} `;
|
|
1566
1581
|
}
|
|
1567
1582
|
if ((y = n.value) != null && y.textSwith && ((w = n.value) != null && w.text)) {
|
|
1568
1583
|
s.push(n.value.text);
|
|
1569
1584
|
const x = n.value.text.replaceAll(`
|
|
1570
1585
|
`, "<br/>");
|
|
1571
|
-
|
|
1586
|
+
T = T + `${x}`;
|
|
1572
1587
|
}
|
|
1573
1588
|
s.length && (s = s.join(" ").split(`
|
|
1574
|
-
`)), l.color = (C = n.value) != null && C.textColor ? n.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (k = n.value) != null && k.textSize ? parseInt(n.value.textSize) : 16, c(
|
|
1589
|
+
`)), l.color = (C = n.value) != null && C.textColor ? n.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (k = n.value) != null && k.textSize ? parseInt(n.value.textSize) : 16, c(T, l.fontSize);
|
|
1575
1590
|
}
|
|
1576
1591
|
return g;
|
|
1577
1592
|
};
|
|
1578
1593
|
u();
|
|
1579
|
-
const
|
|
1594
|
+
const h = Ye(), d = Dt();
|
|
1580
1595
|
return X(
|
|
1581
|
-
() =>
|
|
1596
|
+
() => h.currentRoute.value,
|
|
1582
1597
|
(p) => {
|
|
1583
|
-
var
|
|
1584
|
-
const g = !!((
|
|
1598
|
+
var f, _, y;
|
|
1599
|
+
const g = !!((f = n.value) != null && f.pageSwith), A = ((_ = p.meta) == null ? void 0 : _.showWatermark) ?? !0;
|
|
1585
1600
|
let m = ((y = p.query) == null ? void 0 : y.showWatermark) ?? !0;
|
|
1586
1601
|
m === "false" && (m = !1), i(g && !!(A && m));
|
|
1587
1602
|
},
|
|
@@ -1592,7 +1607,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1592
1607
|
const p = !!((A = n.value) != null && A.pageSwith);
|
|
1593
1608
|
let g = ((m = d.query) == null ? void 0 : m.showWatermark) ?? !0;
|
|
1594
1609
|
g === "false" && (g = !1), i(!!(p && g));
|
|
1595
|
-
}), (p, g) => ($(), F(v(
|
|
1610
|
+
}), (p, g) => ($(), F(v(ra), {
|
|
1596
1611
|
class: "watermark",
|
|
1597
1612
|
font: l,
|
|
1598
1613
|
zIndex: 2147483647,
|
|
@@ -1601,7 +1616,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1601
1616
|
height: r.value
|
|
1602
1617
|
}, {
|
|
1603
1618
|
default: B(() => [
|
|
1604
|
-
|
|
1619
|
+
fe(p.$slots, "default", {}, void 0, !0)
|
|
1605
1620
|
]),
|
|
1606
1621
|
_: 3
|
|
1607
1622
|
/* FORWARDED */
|
|
@@ -1611,7 +1626,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1611
1626
|
"--menu-tip-diaolg-content": "#212121",
|
|
1612
1627
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
1613
1628
|
"--menu-tip-diaolg-info": "#999999"
|
|
1614
|
-
},
|
|
1629
|
+
}, Ti = (t) => (sr("data-v-f9de08eb"), t = t(), ar(), t), Ei = ["innerHTML"], Si = /* @__PURE__ */ Ti(() => /* @__PURE__ */ O(
|
|
1615
1630
|
"div",
|
|
1616
1631
|
{ class: "divide" },
|
|
1617
1632
|
null,
|
|
@@ -1626,8 +1641,8 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1626
1641
|
closeCallback: {}
|
|
1627
1642
|
},
|
|
1628
1643
|
setup(t) {
|
|
1629
|
-
const e =
|
|
1630
|
-
return (n, o) => ($(), F(v(
|
|
1644
|
+
const e = E(!0);
|
|
1645
|
+
return (n, o) => ($(), F(v(Nn), {
|
|
1631
1646
|
modelValue: e.value,
|
|
1632
1647
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
|
|
1633
1648
|
type: "feedback",
|
|
@@ -1657,16 +1672,16 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1657
1672
|
O("div", {
|
|
1658
1673
|
class: "content",
|
|
1659
1674
|
innerHTML: n.content
|
|
1660
|
-
}, null, 8,
|
|
1675
|
+
}, null, 8, Ei),
|
|
1661
1676
|
n.desc && n.desc.length ? ($(), W(
|
|
1662
1677
|
De,
|
|
1663
1678
|
{ key: 0 },
|
|
1664
1679
|
[
|
|
1665
|
-
|
|
1680
|
+
Si,
|
|
1666
1681
|
($(!0), W(
|
|
1667
1682
|
De,
|
|
1668
1683
|
null,
|
|
1669
|
-
|
|
1684
|
+
Tt(n.desc, (r, s) => Te(($(), W("div", {
|
|
1670
1685
|
key: s,
|
|
1671
1686
|
class: "desc-item"
|
|
1672
1687
|
}, [
|
|
@@ -1676,7 +1691,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1676
1691
|
/* TEXT */
|
|
1677
1692
|
)
|
|
1678
1693
|
])), [
|
|
1679
|
-
[v(
|
|
1694
|
+
[v(Gs)]
|
|
1680
1695
|
])),
|
|
1681
1696
|
128
|
|
1682
1697
|
/* KEYED_FRAGMENT */
|
|
@@ -1690,15 +1705,15 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
|
|
|
1690
1705
|
/* STABLE */
|
|
1691
1706
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
1692
1707
|
}
|
|
1693
|
-
}), Li = /* @__PURE__ */ Ce(Pi, [["__scopeId", "data-v-f9de08eb"]]),
|
|
1708
|
+
}), Li = /* @__PURE__ */ Ce(Pi, [["__scopeId", "data-v-f9de08eb"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
|
|
1694
1709
|
const r = document.createElement("div");
|
|
1695
1710
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1696
|
-
const a =
|
|
1711
|
+
const a = he(Li, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1697
1712
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
1698
1713
|
} });
|
|
1699
1714
|
Vt(a, r);
|
|
1700
1715
|
});
|
|
1701
|
-
|
|
1716
|
+
Ps(Ii);
|
|
1702
1717
|
const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdSSURBVHic7d0xiltXAIZRORG4SuvimZDO07qdUpBdZAHGpfECQhZgXIYsILsITDnttDOdGfQKt6mmCE4tMgLDe5/uWDmnlBD8jeDjwuU+2+/3XzYAAKHvRg8AAM6f4AAAcoIDAMgJDgAgJzgAgNz22Be3n/4+5Q5O7OKnHx79fJqmEy8B4JzM8/zo5044AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDIHX1L5WvsLi/W2sGKrq5vR08AgANOOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyC16S8WbHQDA13DCAQDkBAcAkBMcAEBOcAAAOcEBAOQW3VLh/MzzPHoCAGfICQcAkBMcAEBOcAAAOcEBAOQEBwCQc0uFA9M0jZ4AwDfs2G1HJxwAQE5wAAA5wQEA5AQHAJATHABAbtEtld3lxVo7WNHV9e3oCQBwwAkHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAC5RW+peLPj2/XLb/8c+eb+pDtoXP3x4+gJAAeccAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAC57ZIf//7Xy7V2sKK3P+9HT1jF61fPNx/fvxg9Y7ibu4fNuw+fR88AWMQJBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAuUVvqZzLmx08TTd3D5vdm/vRMwBYgRMOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AILdd8uPd5cVaO1jR1fXt6AmreP3q+ebj+xejZwx3c/eweffh8+gZAIs44QAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AILfoLZVzebODp+nm7mGze3M/egYAK3DCAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABAbjt6AGP8+ev3j34+TdOJlwDwf+CEAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AILcdPYCnZZ7n0RMAOENOOACAnOAAAHKCAwDICQ4AICc4AICcWyocmKZp9AR4co7d3vJ/gf869n9xwgEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAuWf7/f7L6BEAwHlzwgEA5AQHAJATHABATnAAADnBAQDk/gXn601crysaUAAAAABJRU5ErkJggg==", Di = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdRSURBVHic7d0xa1tnGIZhpQgChawZlCFbvGb1KOgP6RY6huwpdA8Zu3bpvyh49OrV3krQGbIWCp6SWdSHCI5ufbF6XaON4VkMNy8cvie73e7LCgAg9MPoAQDA+RMcAEBOcAAAOcEBAOQEBwCQW8/94vbvf065gxO7ePnswZ9vNpsTLwHgnEzT9ODPXTgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMjNvqVyiO3lxbF2cERX17ejJwDAHhcOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByi95S8WYHAHAIFw4AICc4AICc4AAAcoIDAMgJDgAgt+grFc7PNE2jJwBwhlw4AICc4AAAcoIDAMgJDgAgJzgAgJyvVNiz2WxGTwDgEZv72tGFAwDICQ4AICc4AICc4AAAcoIDAMgt+kple3lxrB0c0dX17egJALDHhQMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgNyit1S82QEAHMKFAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMitl/zx73+9ONYOjuiXn3ajJwDAHhcOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByi95S8WYHAHAIFw4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AIDc7PP0v/3x4yl3cGJ//jp6AQD/Jy4cAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQG49esASr189XX1893z0jOFu7u5Xbz98Hj0DAGa5cAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkHvUb6nc3N2vtm8+jZ4BAHyDCwcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQW48esMTrV09XH989Hz1juJu7+9XbD59HzwCAWS4cAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkHvVbKjd396vtm0+jZwAA3+DCAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOTWowfwfZmmafQEAM6QCwcAkBMcAEBOcAAAOcEBAOQEBwCQm/1K5f3P/55yByf37MGfbjabE++A79/c11v+X+C/5v5fXDgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACA3HrJH28vL461gyO6ur4dPQEA9rhwAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQW/SWijc7AIBDuHAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDknux2uy+jRwAA582FAwDICQ4AICc4AICc4AAAcoIDAMh9BZ3dS+/izVuGAAAAAElFTkSuQmCC", Mi = (t = {}) => {
|
|
1703
1718
|
sessionStorage.setItem("userInfo", JSON.stringify(t));
|
|
1704
1719
|
}, Oi = (t = {}) => {
|
|
@@ -1715,7 +1730,7 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1715
1730
|
sessionStorage.setItem("home-config", JSON.stringify(t));
|
|
1716
1731
|
}, Ri = (t) => {
|
|
1717
1732
|
localStorage.setItem("fav-icon", t);
|
|
1718
|
-
},
|
|
1733
|
+
}, Er = (t) => {
|
|
1719
1734
|
sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
|
|
1720
1735
|
}, xi = () => {
|
|
1721
1736
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
@@ -1738,7 +1753,7 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1738
1753
|
} else
|
|
1739
1754
|
Object.assign(e, { [n.key]: n.value });
|
|
1740
1755
|
}), sessionStorage.setItem("tabs", JSON.stringify(e));
|
|
1741
|
-
},
|
|
1756
|
+
}, Sr = () => {
|
|
1742
1757
|
sessionStorage.removeItem("tabs");
|
|
1743
1758
|
}, ke = (t) => {
|
|
1744
1759
|
let e = K();
|
|
@@ -1749,13 +1764,13 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1749
1764
|
} else
|
|
1750
1765
|
Object.assign(e, { [n.key]: n.value });
|
|
1751
1766
|
}), sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
1752
|
-
},
|
|
1767
|
+
}, Fn = () => {
|
|
1753
1768
|
ke([
|
|
1754
1769
|
{ key: "currentSubApp", value: {} },
|
|
1755
1770
|
{ key: "currentSubAppCode", value: "" },
|
|
1756
1771
|
{ key: "subAppList", value: [] }
|
|
1757
1772
|
]);
|
|
1758
|
-
},
|
|
1773
|
+
}, kr = (t) => {
|
|
1759
1774
|
let e = K();
|
|
1760
1775
|
e.currentSubApp.currentMenuCode = t;
|
|
1761
1776
|
for (const n in e.subAppList)
|
|
@@ -1767,21 +1782,21 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1767
1782
|
var d;
|
|
1768
1783
|
const i = c.code, u = (c == null ? void 0 : c.originalCode) ?? "";
|
|
1769
1784
|
l[i] || (l[i] = []);
|
|
1770
|
-
let
|
|
1785
|
+
let h = [];
|
|
1771
1786
|
c != null && c.children && ((d = c == null ? void 0 : c.children) != null && d.length) && (c.children.forEach((p) => {
|
|
1772
1787
|
var g;
|
|
1773
|
-
!(p != null && p.children) || !((g = p.children) != null && g.length) ?
|
|
1788
|
+
!(p != null && p.children) || !((g = p.children) != null && g.length) ? h.push({
|
|
1774
1789
|
code: p.code,
|
|
1775
1790
|
originalCode: p.originalCode,
|
|
1776
1791
|
name: p.name
|
|
1777
1792
|
}) : Me([p]).forEach((m) => {
|
|
1778
|
-
|
|
1793
|
+
h.push({
|
|
1779
1794
|
code: m.code,
|
|
1780
1795
|
originalCode: m.originalCode,
|
|
1781
1796
|
name: m.name
|
|
1782
1797
|
});
|
|
1783
1798
|
});
|
|
1784
|
-
}),
|
|
1799
|
+
}), h.forEach((p) => {
|
|
1785
1800
|
let g = p.originalCode ? p.originalCode : p.code ? p.code : "";
|
|
1786
1801
|
g.includes(i + ".") && (g = g.replace(i + ".", "").replaceAll(".", "-")), g.includes(u + ".") && (g = g.replace(u + ".", "").replaceAll(".", "-"));
|
|
1787
1802
|
const A = {
|
|
@@ -1814,8 +1829,8 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1814
1829
|
sessionStorage.removeItem("tabStyle");
|
|
1815
1830
|
}, Vi = (t) => {
|
|
1816
1831
|
sessionStorage.setItem("instance", JSON.stringify(t));
|
|
1817
|
-
},
|
|
1818
|
-
ji(),
|
|
1832
|
+
}, Pr = () => {
|
|
1833
|
+
ji(), Fn(), Sr(), Hi(), Fi();
|
|
1819
1834
|
}, Wi = (t) => {
|
|
1820
1835
|
const e = JSON.parse(sessionStorage.getItem(t) || "{}");
|
|
1821
1836
|
if (e && JSON.stringify(e) !== "{}" && e != null && e.exitConfirmPages && e.exitConfirmPages.length) {
|
|
@@ -1833,10 +1848,10 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1833
1848
|
if (!window.confirm(a)) throw new Error("取消关闭");
|
|
1834
1849
|
}
|
|
1835
1850
|
}
|
|
1836
|
-
},
|
|
1851
|
+
}, En = (t) => {
|
|
1837
1852
|
const e = new URL(t, location.origin);
|
|
1838
|
-
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token",
|
|
1839
|
-
}, zi = "v1", qi = et(`/api/personal-center/personal-server/${zi}`), Ji = qi.get("/info"), Ki =
|
|
1853
|
+
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", Js()), e.searchParams.delete("autoSetToken")), e.toString();
|
|
1854
|
+
}, zi = "v1", qi = et(`/api/personal-center/personal-server/${zi}`), Ji = qi.get("/info"), Ki = fr.get("/user-info"), Gi = Rn.post("/tenant/page"), Xi = async () => {
|
|
1840
1855
|
const [t, e] = await Ji().run({});
|
|
1841
1856
|
return t ? { personalConfig: null } : (Mi(e), { personalConfig: e });
|
|
1842
1857
|
}, Zi = async () => {
|
|
@@ -1850,19 +1865,19 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1850
1865
|
});
|
|
1851
1866
|
if (t) return { tenantList: [] };
|
|
1852
1867
|
if (e.data && e.data.length) return { tenantList: e.data };
|
|
1853
|
-
}, ec =
|
|
1868
|
+
}, ec = xn.get("/permissionset/user-portal-menu"), tc = Ws.deviceManage.get("/instance/getLast"), nc = async () => {
|
|
1854
1869
|
const [t, e] = await tc().run(), n = { instanceInfo: e ?? null };
|
|
1855
1870
|
return Vi(n), n;
|
|
1856
1871
|
};
|
|
1857
1872
|
function oc() {
|
|
1858
1873
|
this.__data__ = [], this.size = 0;
|
|
1859
1874
|
}
|
|
1860
|
-
function
|
|
1875
|
+
function Lr(t, e) {
|
|
1861
1876
|
return t === e || t !== t && e !== e;
|
|
1862
1877
|
}
|
|
1863
1878
|
function tn(t, e) {
|
|
1864
1879
|
for (var n = t.length; n--; )
|
|
1865
|
-
if (
|
|
1880
|
+
if (Lr(t[n][0], e))
|
|
1866
1881
|
return n;
|
|
1867
1882
|
return -1;
|
|
1868
1883
|
}
|
|
@@ -1910,7 +1925,7 @@ function pc(t) {
|
|
|
1910
1925
|
function fc(t) {
|
|
1911
1926
|
return this.__data__.has(t);
|
|
1912
1927
|
}
|
|
1913
|
-
var
|
|
1928
|
+
var $r = typeof global == "object" && global && global.Object === Object && global, hc = typeof self == "object" && self && self.Object === Object && self, Be = $r || hc || Function("return this")(), lt = Be.Symbol, Dr = Object.prototype, gc = Dr.hasOwnProperty, mc = Dr.toString, At = lt ? lt.toStringTag : void 0;
|
|
1914
1929
|
function vc(t) {
|
|
1915
1930
|
var e = gc.call(t, At), n = t[At];
|
|
1916
1931
|
try {
|
|
@@ -1925,27 +1940,27 @@ var Ac = Object.prototype, yc = Ac.toString;
|
|
|
1925
1940
|
function _c(t) {
|
|
1926
1941
|
return yc.call(t);
|
|
1927
1942
|
}
|
|
1928
|
-
var bc = "[object Null]", wc = "[object Undefined]",
|
|
1943
|
+
var bc = "[object Null]", wc = "[object Undefined]", Io = lt ? lt.toStringTag : void 0;
|
|
1929
1944
|
function Mt(t) {
|
|
1930
|
-
return t == null ? t === void 0 ? wc : bc :
|
|
1945
|
+
return t == null ? t === void 0 ? wc : bc : Io && Io in Object(t) ? vc(t) : _c(t);
|
|
1931
1946
|
}
|
|
1932
1947
|
function Ot(t) {
|
|
1933
1948
|
var e = typeof t;
|
|
1934
1949
|
return t != null && (e == "object" || e == "function");
|
|
1935
1950
|
}
|
|
1936
|
-
var Cc = "[object AsyncFunction]", Ic = "[object Function]",
|
|
1937
|
-
function
|
|
1951
|
+
var Cc = "[object AsyncFunction]", Ic = "[object Function]", Tc = "[object GeneratorFunction]", Ec = "[object Proxy]";
|
|
1952
|
+
function Mr(t) {
|
|
1938
1953
|
if (!Ot(t))
|
|
1939
1954
|
return !1;
|
|
1940
1955
|
var e = Mt(t);
|
|
1941
|
-
return e == Ic || e ==
|
|
1956
|
+
return e == Ic || e == Tc || e == Cc || e == Ec;
|
|
1942
1957
|
}
|
|
1943
|
-
var
|
|
1944
|
-
var t = /[^.]+$/.exec(
|
|
1958
|
+
var fn = Be["__core-js_shared__"], To = function() {
|
|
1959
|
+
var t = /[^.]+$/.exec(fn && fn.keys && fn.keys.IE_PROTO || "");
|
|
1945
1960
|
return t ? "Symbol(src)_1." + t : "";
|
|
1946
1961
|
}();
|
|
1947
|
-
function
|
|
1948
|
-
return !!
|
|
1962
|
+
function Sc(t) {
|
|
1963
|
+
return !!To && To in t;
|
|
1949
1964
|
}
|
|
1950
1965
|
var kc = Function.prototype, Pc = kc.toString;
|
|
1951
1966
|
function nt(t) {
|
|
@@ -1965,9 +1980,9 @@ var Lc = /[\\^$.*+?()[\]{}|]/g, $c = /^\[object .+?Constructor\]$/, Dc = Functio
|
|
|
1965
1980
|
"^" + Oc.call(Bc).replace(Lc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1966
1981
|
);
|
|
1967
1982
|
function xc(t) {
|
|
1968
|
-
if (!Ot(t) ||
|
|
1983
|
+
if (!Ot(t) || Sc(t))
|
|
1969
1984
|
return !1;
|
|
1970
|
-
var e =
|
|
1985
|
+
var e = Mr(t) ? Rc : $c;
|
|
1971
1986
|
return e.test(nt(t));
|
|
1972
1987
|
}
|
|
1973
1988
|
function Qc(t, e) {
|
|
@@ -1977,7 +1992,7 @@ function ot(t, e) {
|
|
|
1977
1992
|
var n = Qc(t, e);
|
|
1978
1993
|
return xc(n) ? n : void 0;
|
|
1979
1994
|
}
|
|
1980
|
-
var
|
|
1995
|
+
var St = ot(Be, "Map"), kt = ot(Object, "create");
|
|
1981
1996
|
function jc() {
|
|
1982
1997
|
this.__data__ = kt ? kt(null) : {}, this.size = 0;
|
|
1983
1998
|
}
|
|
@@ -2019,7 +2034,7 @@ Xe.prototype.set = Kc;
|
|
|
2019
2034
|
function Gc() {
|
|
2020
2035
|
this.size = 0, this.__data__ = {
|
|
2021
2036
|
hash: new Xe(),
|
|
2022
|
-
map: new (
|
|
2037
|
+
map: new (St || Ne)(),
|
|
2023
2038
|
string: new Xe()
|
|
2024
2039
|
};
|
|
2025
2040
|
}
|
|
@@ -2062,7 +2077,7 @@ function ol(t, e) {
|
|
|
2062
2077
|
var n = this.__data__;
|
|
2063
2078
|
if (n instanceof Ne) {
|
|
2064
2079
|
var o = n.__data__;
|
|
2065
|
-
if (!
|
|
2080
|
+
if (!St || o.length < nl - 1)
|
|
2066
2081
|
return o.push([t, e]), this.size = ++n.size, this;
|
|
2067
2082
|
n = this.__data__ = new gt(o);
|
|
2068
2083
|
}
|
|
@@ -2082,15 +2097,15 @@ function rl(t, e) {
|
|
|
2082
2097
|
;
|
|
2083
2098
|
return t;
|
|
2084
2099
|
}
|
|
2085
|
-
var
|
|
2100
|
+
var Eo = function() {
|
|
2086
2101
|
try {
|
|
2087
2102
|
var t = ot(Object, "defineProperty");
|
|
2088
2103
|
return t({}, "", {}), t;
|
|
2089
2104
|
} catch {
|
|
2090
2105
|
}
|
|
2091
2106
|
}();
|
|
2092
|
-
function
|
|
2093
|
-
e == "__proto__" &&
|
|
2107
|
+
function Or(t, e, n) {
|
|
2108
|
+
e == "__proto__" && Eo ? Eo(t, e, {
|
|
2094
2109
|
configurable: !0,
|
|
2095
2110
|
enumerable: !0,
|
|
2096
2111
|
value: n,
|
|
@@ -2098,16 +2113,16 @@ function Br(t, e, n) {
|
|
|
2098
2113
|
}) : t[e] = n;
|
|
2099
2114
|
}
|
|
2100
2115
|
var sl = Object.prototype, al = sl.hasOwnProperty;
|
|
2101
|
-
function
|
|
2116
|
+
function Br(t, e, n) {
|
|
2102
2117
|
var o = t[e];
|
|
2103
|
-
(!(al.call(t, e) &&
|
|
2118
|
+
(!(al.call(t, e) && Lr(o, n)) || n === void 0 && !(e in t)) && Or(t, e, n);
|
|
2104
2119
|
}
|
|
2105
2120
|
function on(t, e, n, o) {
|
|
2106
2121
|
var r = !n;
|
|
2107
2122
|
n || (n = {});
|
|
2108
2123
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
2109
2124
|
var l = e[s], c = void 0;
|
|
2110
|
-
c === void 0 && (c = t[l]), r ?
|
|
2125
|
+
c === void 0 && (c = t[l]), r ? Or(n, l, c) : Br(n, l, c);
|
|
2111
2126
|
}
|
|
2112
2127
|
return n;
|
|
2113
2128
|
}
|
|
@@ -2120,46 +2135,46 @@ function Bt(t) {
|
|
|
2120
2135
|
return t != null && typeof t == "object";
|
|
2121
2136
|
}
|
|
2122
2137
|
var cl = "[object Arguments]";
|
|
2123
|
-
function
|
|
2138
|
+
function So(t) {
|
|
2124
2139
|
return Bt(t) && Mt(t) == cl;
|
|
2125
2140
|
}
|
|
2126
|
-
var
|
|
2141
|
+
var Rr = Object.prototype, ll = Rr.hasOwnProperty, ul = Rr.propertyIsEnumerable, dl = So(/* @__PURE__ */ function() {
|
|
2127
2142
|
return arguments;
|
|
2128
|
-
}()) ?
|
|
2143
|
+
}()) ? So : function(t) {
|
|
2129
2144
|
return Bt(t) && ll.call(t, "callee") && !ul.call(t, "callee");
|
|
2130
|
-
},
|
|
2145
|
+
}, Vn = Array.isArray;
|
|
2131
2146
|
function pl() {
|
|
2132
2147
|
return !1;
|
|
2133
2148
|
}
|
|
2134
|
-
var
|
|
2149
|
+
var xr = typeof exports == "object" && exports && !exports.nodeType && exports, ko = xr && typeof module == "object" && module && !module.nodeType && module, fl = ko && ko.exports === xr, Po = fl ? Be.Buffer : void 0, hl = Po ? Po.isBuffer : void 0, Qr = hl || pl, gl = 9007199254740991, ml = /^(?:0|[1-9]\d*)$/;
|
|
2135
2150
|
function vl(t, e) {
|
|
2136
2151
|
var n = typeof t;
|
|
2137
2152
|
return e = e ?? gl, !!e && (n == "number" || n != "symbol" && ml.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
2138
2153
|
}
|
|
2139
2154
|
var Al = 9007199254740991;
|
|
2140
|
-
function
|
|
2155
|
+
function jr(t) {
|
|
2141
2156
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Al;
|
|
2142
2157
|
}
|
|
2143
|
-
var yl = "[object Arguments]", _l = "[object Array]", bl = "[object Boolean]", wl = "[object Date]", Cl = "[object Error]", Il = "[object Function]",
|
|
2158
|
+
var yl = "[object Arguments]", _l = "[object Array]", bl = "[object Boolean]", wl = "[object Date]", Cl = "[object Error]", Il = "[object Function]", Tl = "[object Map]", El = "[object Number]", Sl = "[object Object]", kl = "[object RegExp]", Pl = "[object Set]", Ll = "[object String]", $l = "[object WeakMap]", Dl = "[object ArrayBuffer]", Ml = "[object DataView]", Ol = "[object Float32Array]", Bl = "[object Float64Array]", Rl = "[object Int8Array]", xl = "[object Int16Array]", Ql = "[object Int32Array]", jl = "[object Uint8Array]", Nl = "[object Uint8ClampedArray]", Hl = "[object Uint16Array]", Ul = "[object Uint32Array]", Y = {};
|
|
2144
2159
|
Y[Ol] = Y[Bl] = Y[Rl] = Y[xl] = Y[Ql] = Y[jl] = Y[Nl] = Y[Hl] = Y[Ul] = !0;
|
|
2145
|
-
Y[yl] = Y[_l] = Y[Dl] = Y[bl] = Y[Ml] = Y[wl] = Y[Cl] = Y[Il] = Y[
|
|
2160
|
+
Y[yl] = Y[_l] = Y[Dl] = Y[bl] = Y[Ml] = Y[wl] = Y[Cl] = Y[Il] = Y[Tl] = Y[El] = Y[Sl] = Y[kl] = Y[Pl] = Y[Ll] = Y[$l] = !1;
|
|
2146
2161
|
function Fl(t) {
|
|
2147
|
-
return Bt(t) &&
|
|
2162
|
+
return Bt(t) && jr(t.length) && !!Y[Mt(t)];
|
|
2148
2163
|
}
|
|
2149
|
-
function
|
|
2164
|
+
function Wn(t) {
|
|
2150
2165
|
return function(e) {
|
|
2151
2166
|
return t(e);
|
|
2152
2167
|
};
|
|
2153
2168
|
}
|
|
2154
|
-
var
|
|
2169
|
+
var Nr = typeof exports == "object" && exports && !exports.nodeType && exports, It = Nr && typeof module == "object" && module && !module.nodeType && module, Vl = It && It.exports === Nr, hn = Vl && $r.process, ut = function() {
|
|
2155
2170
|
try {
|
|
2156
2171
|
var t = It && It.require && It.require("util").types;
|
|
2157
|
-
return t ||
|
|
2172
|
+
return t || hn && hn.binding && hn.binding("util");
|
|
2158
2173
|
} catch {
|
|
2159
2174
|
}
|
|
2160
|
-
}(),
|
|
2161
|
-
function
|
|
2162
|
-
var n =
|
|
2175
|
+
}(), Lo = ut && ut.isTypedArray, Wl = Lo ? Wn(Lo) : Fl, zl = Object.prototype, ql = zl.hasOwnProperty;
|
|
2176
|
+
function Hr(t, e) {
|
|
2177
|
+
var n = Vn(t), o = !n && dl(t), r = !n && !o && Qr(t), s = !n && !o && !r && Wl(t), a = n || o || r || s, l = a ? il(t.length, String) : [], c = l.length;
|
|
2163
2178
|
for (var i in t)
|
|
2164
2179
|
(e || ql.call(t, i)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2165
2180
|
(i == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -2169,32 +2184,32 @@ function Ur(t, e) {
|
|
|
2169
2184
|
return l;
|
|
2170
2185
|
}
|
|
2171
2186
|
var Jl = Object.prototype;
|
|
2172
|
-
function
|
|
2187
|
+
function zn(t) {
|
|
2173
2188
|
var e = t && t.constructor, n = typeof e == "function" && e.prototype || Jl;
|
|
2174
2189
|
return t === n;
|
|
2175
2190
|
}
|
|
2176
|
-
function
|
|
2191
|
+
function Ur(t, e) {
|
|
2177
2192
|
return function(n) {
|
|
2178
2193
|
return t(e(n));
|
|
2179
2194
|
};
|
|
2180
2195
|
}
|
|
2181
|
-
var Kl =
|
|
2196
|
+
var Kl = Ur(Object.keys, Object), Gl = Object.prototype, Xl = Gl.hasOwnProperty;
|
|
2182
2197
|
function Zl(t) {
|
|
2183
|
-
if (!
|
|
2198
|
+
if (!zn(t))
|
|
2184
2199
|
return Kl(t);
|
|
2185
2200
|
var e = [];
|
|
2186
2201
|
for (var n in Object(t))
|
|
2187
2202
|
Xl.call(t, n) && n != "constructor" && e.push(n);
|
|
2188
2203
|
return e;
|
|
2189
2204
|
}
|
|
2190
|
-
function
|
|
2191
|
-
return t != null &&
|
|
2205
|
+
function Fr(t) {
|
|
2206
|
+
return t != null && jr(t.length) && !Mr(t);
|
|
2192
2207
|
}
|
|
2193
|
-
function
|
|
2194
|
-
return
|
|
2208
|
+
function qn(t) {
|
|
2209
|
+
return Fr(t) ? Hr(t) : Zl(t);
|
|
2195
2210
|
}
|
|
2196
2211
|
function Yl(t, e) {
|
|
2197
|
-
return t && on(e,
|
|
2212
|
+
return t && on(e, qn(e), t);
|
|
2198
2213
|
}
|
|
2199
2214
|
function eu(t) {
|
|
2200
2215
|
var e = [];
|
|
@@ -2207,22 +2222,22 @@ var tu = Object.prototype, nu = tu.hasOwnProperty;
|
|
|
2207
2222
|
function ou(t) {
|
|
2208
2223
|
if (!Ot(t))
|
|
2209
2224
|
return eu(t);
|
|
2210
|
-
var e =
|
|
2225
|
+
var e = zn(t), n = [];
|
|
2211
2226
|
for (var o in t)
|
|
2212
2227
|
o == "constructor" && (e || !nu.call(t, o)) || n.push(o);
|
|
2213
2228
|
return n;
|
|
2214
2229
|
}
|
|
2215
|
-
function
|
|
2216
|
-
return
|
|
2230
|
+
function Jn(t) {
|
|
2231
|
+
return Fr(t) ? Hr(t, !0) : ou(t);
|
|
2217
2232
|
}
|
|
2218
2233
|
function ru(t, e) {
|
|
2219
|
-
return t && on(e,
|
|
2234
|
+
return t && on(e, Jn(e), t);
|
|
2220
2235
|
}
|
|
2221
|
-
var
|
|
2236
|
+
var Vr = typeof exports == "object" && exports && !exports.nodeType && exports, $o = Vr && typeof module == "object" && module && !module.nodeType && module, su = $o && $o.exports === Vr, Do = su ? Be.Buffer : void 0, Mo = Do ? Do.allocUnsafe : void 0;
|
|
2222
2237
|
function au(t, e) {
|
|
2223
2238
|
if (e)
|
|
2224
2239
|
return t.slice();
|
|
2225
|
-
var n = t.length, o =
|
|
2240
|
+
var n = t.length, o = Mo ? Mo(n) : new t.constructor(n);
|
|
2226
2241
|
return t.copy(o), o;
|
|
2227
2242
|
}
|
|
2228
2243
|
function iu(t, e) {
|
|
@@ -2238,55 +2253,55 @@ function cu(t, e) {
|
|
|
2238
2253
|
}
|
|
2239
2254
|
return s;
|
|
2240
2255
|
}
|
|
2241
|
-
function
|
|
2256
|
+
function Wr() {
|
|
2242
2257
|
return [];
|
|
2243
2258
|
}
|
|
2244
|
-
var lu = Object.prototype, uu = lu.propertyIsEnumerable,
|
|
2245
|
-
return t == null ? [] : (t = Object(t), cu(
|
|
2259
|
+
var lu = Object.prototype, uu = lu.propertyIsEnumerable, Oo = Object.getOwnPropertySymbols, Kn = Oo ? function(t) {
|
|
2260
|
+
return t == null ? [] : (t = Object(t), cu(Oo(t), function(e) {
|
|
2246
2261
|
return uu.call(t, e);
|
|
2247
2262
|
}));
|
|
2248
|
-
} :
|
|
2263
|
+
} : Wr;
|
|
2249
2264
|
function du(t, e) {
|
|
2250
|
-
return on(t,
|
|
2265
|
+
return on(t, Kn(t), e);
|
|
2251
2266
|
}
|
|
2252
|
-
function
|
|
2267
|
+
function zr(t, e) {
|
|
2253
2268
|
for (var n = -1, o = e.length, r = t.length; ++n < o; )
|
|
2254
2269
|
t[r + n] = e[n];
|
|
2255
2270
|
return t;
|
|
2256
2271
|
}
|
|
2257
|
-
var
|
|
2272
|
+
var qr = Ur(Object.getPrototypeOf, Object), pu = Object.getOwnPropertySymbols, Jr = pu ? function(t) {
|
|
2258
2273
|
for (var e = []; t; )
|
|
2259
|
-
|
|
2274
|
+
zr(e, Kn(t)), t = qr(t);
|
|
2260
2275
|
return e;
|
|
2261
|
-
} :
|
|
2276
|
+
} : Wr;
|
|
2262
2277
|
function fu(t, e) {
|
|
2263
|
-
return on(t,
|
|
2278
|
+
return on(t, Jr(t), e);
|
|
2264
2279
|
}
|
|
2265
|
-
function
|
|
2280
|
+
function Kr(t, e, n) {
|
|
2266
2281
|
var o = e(t);
|
|
2267
|
-
return
|
|
2282
|
+
return Vn(t) ? o : zr(o, n(t));
|
|
2268
2283
|
}
|
|
2269
2284
|
function hu(t) {
|
|
2270
|
-
return
|
|
2285
|
+
return Kr(t, qn, Kn);
|
|
2271
2286
|
}
|
|
2272
2287
|
function gu(t) {
|
|
2273
|
-
return
|
|
2288
|
+
return Kr(t, Jn, Jr);
|
|
2274
2289
|
}
|
|
2275
|
-
var
|
|
2276
|
-
(
|
|
2290
|
+
var Sn = ot(Be, "DataView"), kn = ot(Be, "Promise"), Pn = ot(Be, "Set"), Ln = ot(Be, "WeakMap"), Bo = "[object Map]", mu = "[object Object]", Ro = "[object Promise]", xo = "[object Set]", Qo = "[object WeakMap]", jo = "[object DataView]", vu = nt(Sn), Au = nt(St), yu = nt(kn), _u = nt(Pn), bu = nt(Ln), xe = Mt;
|
|
2291
|
+
(Sn && xe(new Sn(new ArrayBuffer(1))) != jo || St && xe(new St()) != Bo || kn && xe(kn.resolve()) != Ro || Pn && xe(new Pn()) != xo || Ln && xe(new Ln()) != Qo) && (xe = function(t) {
|
|
2277
2292
|
var e = Mt(t), n = e == mu ? t.constructor : void 0, o = n ? nt(n) : "";
|
|
2278
2293
|
if (o)
|
|
2279
2294
|
switch (o) {
|
|
2280
2295
|
case vu:
|
|
2281
|
-
return
|
|
2296
|
+
return jo;
|
|
2282
2297
|
case Au:
|
|
2283
|
-
return
|
|
2298
|
+
return Bo;
|
|
2284
2299
|
case yu:
|
|
2285
|
-
return
|
|
2300
|
+
return Ro;
|
|
2286
2301
|
case _u:
|
|
2287
|
-
return
|
|
2302
|
+
return xo;
|
|
2288
2303
|
case bu:
|
|
2289
|
-
return
|
|
2304
|
+
return Qo;
|
|
2290
2305
|
}
|
|
2291
2306
|
return e;
|
|
2292
2307
|
});
|
|
@@ -2295,26 +2310,26 @@ function Iu(t) {
|
|
|
2295
2310
|
var e = t.length, n = new t.constructor(e);
|
|
2296
2311
|
return e && typeof t[0] == "string" && Cu.call(t, "index") && (n.index = t.index, n.input = t.input), n;
|
|
2297
2312
|
}
|
|
2298
|
-
var
|
|
2299
|
-
function
|
|
2313
|
+
var No = Be.Uint8Array;
|
|
2314
|
+
function Gn(t) {
|
|
2300
2315
|
var e = new t.constructor(t.byteLength);
|
|
2301
|
-
return new
|
|
2316
|
+
return new No(e).set(new No(t)), e;
|
|
2302
2317
|
}
|
|
2303
|
-
function
|
|
2304
|
-
var n = e ?
|
|
2318
|
+
function Tu(t, e) {
|
|
2319
|
+
var n = e ? Gn(t.buffer) : t.buffer;
|
|
2305
2320
|
return new t.constructor(n, t.byteOffset, t.byteLength);
|
|
2306
2321
|
}
|
|
2307
|
-
var
|
|
2308
|
-
function
|
|
2309
|
-
var e = new t.constructor(t.source,
|
|
2322
|
+
var Eu = /\w*$/;
|
|
2323
|
+
function Su(t) {
|
|
2324
|
+
var e = new t.constructor(t.source, Eu.exec(t));
|
|
2310
2325
|
return e.lastIndex = t.lastIndex, e;
|
|
2311
2326
|
}
|
|
2312
|
-
var
|
|
2327
|
+
var Ho = lt ? lt.prototype : void 0, Uo = Ho ? Ho.valueOf : void 0;
|
|
2313
2328
|
function ku(t) {
|
|
2314
|
-
return
|
|
2329
|
+
return Uo ? Object(Uo.call(t)) : {};
|
|
2315
2330
|
}
|
|
2316
2331
|
function Pu(t, e) {
|
|
2317
|
-
var n = e ?
|
|
2332
|
+
var n = e ? Gn(t.buffer) : t.buffer;
|
|
2318
2333
|
return new t.constructor(n, t.byteOffset, t.length);
|
|
2319
2334
|
}
|
|
2320
2335
|
var Lu = "[object Boolean]", $u = "[object Date]", Du = "[object Map]", Mu = "[object Number]", Ou = "[object RegExp]", Bu = "[object Set]", Ru = "[object String]", xu = "[object Symbol]", Qu = "[object ArrayBuffer]", ju = "[object DataView]", Nu = "[object Float32Array]", Hu = "[object Float64Array]", Uu = "[object Int8Array]", Fu = "[object Int16Array]", Vu = "[object Int32Array]", Wu = "[object Uint8Array]", zu = "[object Uint8ClampedArray]", qu = "[object Uint16Array]", Ju = "[object Uint32Array]";
|
|
@@ -2322,12 +2337,12 @@ function Ku(t, e, n) {
|
|
|
2322
2337
|
var o = t.constructor;
|
|
2323
2338
|
switch (e) {
|
|
2324
2339
|
case Qu:
|
|
2325
|
-
return
|
|
2340
|
+
return Gn(t);
|
|
2326
2341
|
case Lu:
|
|
2327
2342
|
case $u:
|
|
2328
2343
|
return new o(+t);
|
|
2329
2344
|
case ju:
|
|
2330
|
-
return
|
|
2345
|
+
return Tu(t, n);
|
|
2331
2346
|
case Nu:
|
|
2332
2347
|
case Hu:
|
|
2333
2348
|
case Uu:
|
|
@@ -2344,61 +2359,61 @@ function Ku(t, e, n) {
|
|
|
2344
2359
|
case Ru:
|
|
2345
2360
|
return new o(t);
|
|
2346
2361
|
case Ou:
|
|
2347
|
-
return
|
|
2362
|
+
return Su(t);
|
|
2348
2363
|
case Bu:
|
|
2349
2364
|
return new o();
|
|
2350
2365
|
case xu:
|
|
2351
2366
|
return ku(t);
|
|
2352
2367
|
}
|
|
2353
2368
|
}
|
|
2354
|
-
var
|
|
2369
|
+
var Fo = Object.create, Gu = /* @__PURE__ */ function() {
|
|
2355
2370
|
function t() {
|
|
2356
2371
|
}
|
|
2357
2372
|
return function(e) {
|
|
2358
2373
|
if (!Ot(e))
|
|
2359
2374
|
return {};
|
|
2360
|
-
if (
|
|
2361
|
-
return
|
|
2375
|
+
if (Fo)
|
|
2376
|
+
return Fo(e);
|
|
2362
2377
|
t.prototype = e;
|
|
2363
2378
|
var n = new t();
|
|
2364
2379
|
return t.prototype = void 0, n;
|
|
2365
2380
|
};
|
|
2366
2381
|
}();
|
|
2367
2382
|
function Xu(t) {
|
|
2368
|
-
return typeof t.constructor == "function" && !
|
|
2383
|
+
return typeof t.constructor == "function" && !zn(t) ? Gu(qr(t)) : {};
|
|
2369
2384
|
}
|
|
2370
2385
|
var Zu = "[object Map]";
|
|
2371
2386
|
function Yu(t) {
|
|
2372
2387
|
return Bt(t) && xe(t) == Zu;
|
|
2373
2388
|
}
|
|
2374
|
-
var
|
|
2389
|
+
var Vo = ut && ut.isMap, ed = Vo ? Wn(Vo) : Yu, td = "[object Set]";
|
|
2375
2390
|
function nd(t) {
|
|
2376
2391
|
return Bt(t) && xe(t) == td;
|
|
2377
2392
|
}
|
|
2378
|
-
var
|
|
2379
|
-
G[
|
|
2380
|
-
G[ud] = G[
|
|
2393
|
+
var Wo = ut && ut.isSet, od = Wo ? Wn(Wo) : nd, rd = 1, sd = 2, ad = 4, Gr = "[object Arguments]", id = "[object Array]", cd = "[object Boolean]", ld = "[object Date]", ud = "[object Error]", Xr = "[object Function]", dd = "[object GeneratorFunction]", pd = "[object Map]", fd = "[object Number]", Zr = "[object Object]", hd = "[object RegExp]", gd = "[object Set]", md = "[object String]", vd = "[object Symbol]", Ad = "[object WeakMap]", yd = "[object ArrayBuffer]", _d = "[object DataView]", bd = "[object Float32Array]", wd = "[object Float64Array]", Cd = "[object Int8Array]", Id = "[object Int16Array]", Td = "[object Int32Array]", Ed = "[object Uint8Array]", Sd = "[object Uint8ClampedArray]", kd = "[object Uint16Array]", Pd = "[object Uint32Array]", G = {};
|
|
2394
|
+
G[Gr] = G[id] = G[yd] = G[_d] = G[cd] = G[ld] = G[bd] = G[wd] = G[Cd] = G[Id] = G[Td] = G[pd] = G[fd] = G[Zr] = G[hd] = G[gd] = G[md] = G[vd] = G[Ed] = G[Sd] = G[kd] = G[Pd] = !0;
|
|
2395
|
+
G[ud] = G[Xr] = G[Ad] = !1;
|
|
2381
2396
|
function Ft(t, e, n, o, r, s) {
|
|
2382
2397
|
var a, l = e & rd, c = e & sd, i = e & ad;
|
|
2383
2398
|
if (a !== void 0)
|
|
2384
2399
|
return a;
|
|
2385
2400
|
if (!Ot(t))
|
|
2386
2401
|
return t;
|
|
2387
|
-
var u =
|
|
2402
|
+
var u = Vn(t);
|
|
2388
2403
|
if (u) {
|
|
2389
2404
|
if (a = Iu(t), !l)
|
|
2390
2405
|
return iu(t, a);
|
|
2391
2406
|
} else {
|
|
2392
|
-
var
|
|
2393
|
-
if (
|
|
2407
|
+
var h = xe(t), d = h == Xr || h == dd;
|
|
2408
|
+
if (Qr(t))
|
|
2394
2409
|
return au(t, l);
|
|
2395
|
-
if (
|
|
2410
|
+
if (h == Zr || h == Gr || d && !r) {
|
|
2396
2411
|
if (a = c || d ? {} : Xu(t), !l)
|
|
2397
2412
|
return c ? fu(t, ru(a, t)) : du(t, Yl(a, t));
|
|
2398
2413
|
} else {
|
|
2399
|
-
if (!G[
|
|
2414
|
+
if (!G[h])
|
|
2400
2415
|
return r ? t : {};
|
|
2401
|
-
a = Ku(t,
|
|
2416
|
+
a = Ku(t, h, l);
|
|
2402
2417
|
}
|
|
2403
2418
|
}
|
|
2404
2419
|
s || (s = new mt());
|
|
@@ -2407,12 +2422,12 @@ function Ft(t, e, n, o, r, s) {
|
|
|
2407
2422
|
return p;
|
|
2408
2423
|
s.set(t, a), od(t) ? t.forEach(function(m) {
|
|
2409
2424
|
a.add(Ft(m, e, n, m, t, s));
|
|
2410
|
-
}) : ed(t) && t.forEach(function(m,
|
|
2411
|
-
a.set(
|
|
2425
|
+
}) : ed(t) && t.forEach(function(m, f) {
|
|
2426
|
+
a.set(f, Ft(m, e, n, f, t, s));
|
|
2412
2427
|
});
|
|
2413
|
-
var g = i ? c ? gu : hu : c ?
|
|
2414
|
-
return rl(A || t, function(m,
|
|
2415
|
-
A && (
|
|
2428
|
+
var g = i ? c ? gu : hu : c ? Jn : qn, A = u ? void 0 : g(t);
|
|
2429
|
+
return rl(A || t, function(m, f) {
|
|
2430
|
+
A && (f = m, m = t[f]), Br(a, f, Ft(m, e, n, f, t, s));
|
|
2416
2431
|
}), a;
|
|
2417
2432
|
}
|
|
2418
2433
|
var Ld = 1, $d = 4;
|
|
@@ -2444,10 +2459,10 @@ const Kt = (t, e = "") => {
|
|
|
2444
2459
|
if (o === -1) return { index: o, target: n };
|
|
2445
2460
|
const r = t.slice(0, o), s = t.slice(o + 1);
|
|
2446
2461
|
return s.length && (n = s[0]), n || r.length && (n = r[r.length - 1]), { index: o, target: n };
|
|
2447
|
-
},
|
|
2462
|
+
}, $n = (t) => {
|
|
2448
2463
|
const e = K().subAppList ?? [];
|
|
2449
2464
|
let { index: n, target: o } = Dd(e, t);
|
|
2450
|
-
return e.splice(n, 1), e.length ? ke([{ key: "subAppList", value: e }]) :
|
|
2465
|
+
return e.splice(n, 1), e.length ? ke([{ key: "subAppList", value: e }]) : Fn(), Ae([
|
|
2451
2466
|
{ key: "currentCode", value: "" },
|
|
2452
2467
|
{ key: "currentTab", value: {} },
|
|
2453
2468
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -2457,15 +2472,15 @@ const Kt = (t, e = "") => {
|
|
|
2457
2472
|
const n = t.findIndex((s) => s.code === e), o = t.slice(0, n), r = t.slice(n + 1);
|
|
2458
2473
|
return { left: o, right: r };
|
|
2459
2474
|
}, Od = (t, e, n) => {
|
|
2460
|
-
var
|
|
2461
|
-
const o = Me(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((
|
|
2475
|
+
var h;
|
|
2476
|
+
const o = Me(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((h = ve()) == null ? void 0 : h.tabMap) ?? {})[t] ?? [], { left: a, right: l } = Md(s, n), c = s.filter((d) => o.find((p) => p.code === d.code));
|
|
2462
2477
|
if (!a.length && !l.length || !c.length)
|
|
2463
2478
|
return Ae([
|
|
2464
2479
|
{ key: "currentCode", value: "" },
|
|
2465
2480
|
{ key: "currentTab", value: {} },
|
|
2466
2481
|
{ key: `preTab:${t}`, value: {} },
|
|
2467
2482
|
{ key: `tabMap:${t}`, value: [] }
|
|
2468
|
-
]),
|
|
2483
|
+
]), $n(t);
|
|
2469
2484
|
let i = null;
|
|
2470
2485
|
if (l.length) {
|
|
2471
2486
|
const d = l.find((p) => c.map((g) => g.code).includes(p.code));
|
|
@@ -2489,11 +2504,11 @@ const Kt = (t, e = "") => {
|
|
|
2489
2504
|
value: i
|
|
2490
2505
|
},
|
|
2491
2506
|
{ key: `tabMap:${t}`, value: c }
|
|
2492
|
-
]),
|
|
2507
|
+
]), kr(i.code), { currentMenu: o.find((d) => d.code === i.code), currentTab: i }) : (Ae([
|
|
2493
2508
|
{ key: `preTab:${t}`, value: {} },
|
|
2494
2509
|
{ key: `tabMap:${t}`, value: [] }
|
|
2495
|
-
]),
|
|
2496
|
-
},
|
|
2510
|
+
]), $n(t));
|
|
2511
|
+
}, Xn = async (t) => {
|
|
2497
2512
|
const [e, n] = await ec().run({
|
|
2498
2513
|
code: t,
|
|
2499
2514
|
showBtn: !0,
|
|
@@ -2503,7 +2518,7 @@ const Kt = (t, e = "") => {
|
|
|
2503
2518
|
Qi(n, t);
|
|
2504
2519
|
const o = Me(n);
|
|
2505
2520
|
Ni(o, t), Ui(o, t);
|
|
2506
|
-
let r =
|
|
2521
|
+
let r = Qs(n, (a) => a.isMenu);
|
|
2507
2522
|
const s = dt(r);
|
|
2508
2523
|
return r.forEach((a) => {
|
|
2509
2524
|
a != null && a.children && a.children.length && (a.originalChildren = dt(a.children)), (a != null && a.expired || a != null && a.disable) && (a.children = []);
|
|
@@ -2519,29 +2534,29 @@ const Kt = (t, e = "") => {
|
|
|
2519
2534
|
let c = [], i = [];
|
|
2520
2535
|
const u = K().subAppList ?? [];
|
|
2521
2536
|
if (u.length && (c = ((g = u.find((m) => m.code === e.code)) == null ? void 0 : g.menus) ?? []), !c.length) {
|
|
2522
|
-
const { menus: m, originalMenus:
|
|
2523
|
-
c = m ?? [], i =
|
|
2537
|
+
const { menus: m, originalMenus: f } = await Xn(l);
|
|
2538
|
+
c = m ?? [], i = f ?? [];
|
|
2524
2539
|
}
|
|
2525
2540
|
if (!c.length && (!s || !a))
|
|
2526
2541
|
return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
2527
2542
|
if (e.routeUrl === "iot/iot") {
|
|
2528
2543
|
const { instanceInfo: m } = await nc();
|
|
2529
2544
|
if (m) {
|
|
2530
|
-
let
|
|
2545
|
+
let f = !1;
|
|
2531
2546
|
c.forEach((y) => {
|
|
2532
2547
|
y.routeUrl === "/deviceInstance" && (y.fixed = !0, y.divise = !0, y.menuCode = y.code, y.tagName = y.tabName = "实例", y.name = m.instanceName, y.leftIcon = "change2", y.rightIcon = "change2");
|
|
2533
2548
|
});
|
|
2534
|
-
const _ =
|
|
2535
|
-
if (
|
|
2549
|
+
const _ = js(m.endTime) || m.endTime == 0 || m.endTime === 253370736e6 || m.endTime === "253370736000000" ? "-" : Number(m.endTime);
|
|
2550
|
+
if (f = Cn().endOf("day") > Cn(_).endOf("day"), !n && m.id && !f) {
|
|
2536
2551
|
const w = Me(c).find((C) => C.routeUrl === "/statisticalReport");
|
|
2537
2552
|
w && (n = w.code);
|
|
2538
2553
|
}
|
|
2539
2554
|
}
|
|
2540
2555
|
}
|
|
2541
2556
|
if (s && a) {
|
|
2542
|
-
const
|
|
2543
|
-
if (
|
|
2544
|
-
const _ =
|
|
2557
|
+
const f = (ve().tabMap ?? {})[e.code] ?? [];
|
|
2558
|
+
if (f.length) {
|
|
2559
|
+
const _ = f.filter(
|
|
2545
2560
|
(y) => n && n === y.code || o && o === `/${y.applicationPath}${y.path}`.replace(/\/\//g, "/") || Me(c).map((w) => w.code).includes(y.code)
|
|
2546
2561
|
);
|
|
2547
2562
|
Ae([
|
|
@@ -2553,9 +2568,9 @@ const Kt = (t, e = "") => {
|
|
|
2553
2568
|
}
|
|
2554
2569
|
}
|
|
2555
2570
|
if (!n && o) {
|
|
2556
|
-
const m = Me(c).find((
|
|
2557
|
-
const _ = `/${
|
|
2558
|
-
return
|
|
2571
|
+
const m = Me(c).find((f) => {
|
|
2572
|
+
const _ = `/${f.applicationPath}${f.routeUrl}`.replace(/\/\//g, "/");
|
|
2573
|
+
return f.applicationPath && f.routeUrl && (o === _ || o.startsWith(`/${_}/`));
|
|
2559
2574
|
});
|
|
2560
2575
|
if (m)
|
|
2561
2576
|
n = m.code;
|
|
@@ -2567,22 +2582,22 @@ const Kt = (t, e = "") => {
|
|
|
2567
2582
|
query: { ...r.query, app: l }
|
|
2568
2583
|
};
|
|
2569
2584
|
}
|
|
2570
|
-
let
|
|
2571
|
-
if (!
|
|
2585
|
+
let h = Kt(c, n);
|
|
2586
|
+
if (!h) {
|
|
2572
2587
|
if (!s || !a)
|
|
2573
2588
|
return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
|
|
2574
2589
|
const m = Od(e.code, c, n);
|
|
2575
|
-
m != null && m.currentApp && (e = m.currentApp), m != null && m.currentMenu && (
|
|
2590
|
+
m != null && m.currentApp && (e = m.currentApp), m != null && m.currentMenu && (h = m.currentMenu), m != null && m.currentTab && (r.query = ((A = m.currentTab) == null ? void 0 : A.query) ?? {});
|
|
2576
2591
|
}
|
|
2577
2592
|
if ((e == null ? void 0 : e.routeUrl) === Ue)
|
|
2578
2593
|
return { menuConfig: [], currentApp: e, currentMenu: null, query: null };
|
|
2579
|
-
if (
|
|
2580
|
-
const m = `/${
|
|
2581
|
-
let
|
|
2582
|
-
o && o.startsWith(m) && o !== m && (
|
|
2583
|
-
const _ = { ...r.query, app: l, menu:
|
|
2594
|
+
if (h) {
|
|
2595
|
+
const m = `/${h.applicationPath}${h.routeUrl}`;
|
|
2596
|
+
let f = "";
|
|
2597
|
+
o && o.startsWith(m) && o !== m && (f = o);
|
|
2598
|
+
const _ = { ...r.query, app: l, menu: h.code };
|
|
2584
2599
|
if (s && a) {
|
|
2585
|
-
const y = { ...e, currentMenuCode:
|
|
2600
|
+
const y = { ...e, currentMenuCode: h.code, menus: c, originalMenus: i };
|
|
2586
2601
|
ke([
|
|
2587
2602
|
{ key: "currentSubApp", value: y },
|
|
2588
2603
|
{ key: "currentSubAppCode", value: l },
|
|
@@ -2590,18 +2605,18 @@ const Kt = (t, e = "") => {
|
|
|
2590
2605
|
]);
|
|
2591
2606
|
const w = {
|
|
2592
2607
|
currentApplication: e.routeUrl,
|
|
2593
|
-
applicationPath:
|
|
2608
|
+
applicationPath: h.applicationPath,
|
|
2594
2609
|
applicationCode: l,
|
|
2595
|
-
menuId:
|
|
2596
|
-
code:
|
|
2597
|
-
name: (
|
|
2598
|
-
path:
|
|
2610
|
+
menuId: h.id,
|
|
2611
|
+
code: h.code,
|
|
2612
|
+
name: (h == null ? void 0 : h.tabName) ?? h.name,
|
|
2613
|
+
path: h.routeUrl,
|
|
2599
2614
|
query: _
|
|
2600
2615
|
};
|
|
2601
2616
|
Ae([
|
|
2602
2617
|
{
|
|
2603
2618
|
key: "currentCode",
|
|
2604
|
-
value:
|
|
2619
|
+
value: h.code
|
|
2605
2620
|
},
|
|
2606
2621
|
{
|
|
2607
2622
|
key: "currentTab",
|
|
@@ -2617,16 +2632,16 @@ const Kt = (t, e = "") => {
|
|
|
2617
2632
|
}
|
|
2618
2633
|
]);
|
|
2619
2634
|
}
|
|
2620
|
-
return { menuConfig: c, currentApp: e, currentMenu:
|
|
2635
|
+
return { menuConfig: c, currentApp: e, currentMenu: h, query: _, microPath: f };
|
|
2621
2636
|
}
|
|
2622
2637
|
return { menuConfig: c, currentApp: e, currentMenu: null, query: { ...r.query, app: l } };
|
|
2623
|
-
}, Rd = We.get("/appcategory"),
|
|
2624
|
-
|
|
2638
|
+
}, Rd = We.get("/appcategory"), zo = E([]), qo = E(!1), Yr = async () => {
|
|
2639
|
+
qo.value = !0;
|
|
2625
2640
|
const [t, e] = await Rd().run({ userType: 1 });
|
|
2626
|
-
return
|
|
2627
|
-
}, xd = "v1", Qd =
|
|
2641
|
+
return qo.value = !1, t ? (zo.value = [], { navConfig: [] }) : (zo.value = e, ke([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
2642
|
+
}, xd = "v1", Qd = xn.get("/organization/authProjectTree"), jd = et(`/api/customer/customer/${xd}`), Nd = jd.get("/project/list"), Hd = async () => {
|
|
2628
2643
|
var o, r;
|
|
2629
|
-
const t =
|
|
2644
|
+
const t = On();
|
|
2630
2645
|
let e = [], n = null;
|
|
2631
2646
|
if ((t == null ? void 0 : t.flag) === 4) {
|
|
2632
2647
|
const [s, a] = await Nd().run();
|
|
@@ -2641,41 +2656,41 @@ const Kt = (t, e = "") => {
|
|
|
2641
2656
|
const [s, a] = await Qd().run();
|
|
2642
2657
|
if (e = a, e && e.length) {
|
|
2643
2658
|
const l = ((r = Fe()) == null ? void 0 : r.id) || 0;
|
|
2644
|
-
l && (n =
|
|
2659
|
+
l && (n = lo(e, (c) => c.id === l)), (!l || !n) && (n = lo(e, (c) => c.type === 7));
|
|
2645
2660
|
}
|
|
2646
2661
|
}
|
|
2647
|
-
return
|
|
2648
|
-
}, Ud = "v1", Fd =
|
|
2662
|
+
return Er(n || { id: 0 }), dr((n == null ? void 0 : n.id) || 0), { projectConfig: e, currentProject: n };
|
|
2663
|
+
}, Ud = "v1", Fd = Qn.get("/visitor/login/with-default", (t) => (t.public = !0, t)), Vd = Qn.get("/visitor/appearance/with-default", (t) => (t.public = !0, t)), Wd = et(`/api/portal/manager/${Ud}`), zd = Wd.get("/basics/home/info"), qd = We.get("/menu/personal-setting"), Jd = async () => {
|
|
2649
2664
|
const [t, e] = await Fd().run();
|
|
2650
2665
|
return t ? { loginConfig: null } : { loginConfig: e };
|
|
2651
2666
|
}, Kd = async () => {
|
|
2652
2667
|
const [t, e] = await Vd().run();
|
|
2653
2668
|
return t ? { platformConfig: null } : { platformConfig: e };
|
|
2654
|
-
},
|
|
2669
|
+
}, es = E(null), Gd = async () => {
|
|
2655
2670
|
const [t, e] = await zd().run();
|
|
2656
|
-
return t ? { homeConfig: null } : (e && (Bi(e),
|
|
2657
|
-
}, Gt =
|
|
2671
|
+
return t ? { homeConfig: null } : (e && (Bi(e), es.value = e), { homeConfig: e });
|
|
2672
|
+
}, Gt = E(1), ts = async () => {
|
|
2658
2673
|
const [t, e] = await qd().run();
|
|
2659
2674
|
return t ? { personalMenuConfig: null } : (Gt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
2660
2675
|
}, Xd = We.post("/menu/personal-setting"), Zd = { class: "preson-style-drawer" }, Yd = { class: "preson-style-container" }, ep = { class: "title" }, tp = { class: "content" }, np = { class: "item-content" }, op = ["src"], rp = { class: "item-content" }, sp = ["src"], ap = { class: "preson-style-footer" }, ip = /* @__PURE__ */ oe({
|
|
2661
2676
|
__name: "index",
|
|
2662
2677
|
setup(t, { expose: e }) {
|
|
2663
|
-
const n =
|
|
2678
|
+
const n = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
|
|
2664
2679
|
o.value = Gt.value === 1, r.value = Gt.value === 2, n.value = !0;
|
|
2665
2680
|
}, l = (i) => {
|
|
2666
2681
|
i === 1 ? r.value = !1 : o.value = !1;
|
|
2667
2682
|
}, c = async () => {
|
|
2668
2683
|
const [i] = await Xd().run({ style: o.value ? 1 : 2 });
|
|
2669
|
-
i || (await
|
|
2684
|
+
i || (await ts(), n.value = !1);
|
|
2670
2685
|
};
|
|
2671
2686
|
return e({
|
|
2672
2687
|
/** 打开弹窗 */
|
|
2673
2688
|
openDialog: a
|
|
2674
2689
|
}), (i, u) => ($(), W("div", Zd, [
|
|
2675
|
-
R(v(
|
|
2690
|
+
R(v(sa), {
|
|
2676
2691
|
title: v(N)("主题设置").value,
|
|
2677
2692
|
modelValue: n.value,
|
|
2678
|
-
"onUpdate:modelValue": u[5] || (u[5] = (
|
|
2693
|
+
"onUpdate:modelValue": u[5] || (u[5] = (h) => n.value = h),
|
|
2679
2694
|
"body-style": { padding: 0 },
|
|
2680
2695
|
direction: "rtl"
|
|
2681
2696
|
}, {
|
|
@@ -2683,7 +2698,7 @@ const Kt = (t, e = "") => {
|
|
|
2683
2698
|
O("div", ap, [
|
|
2684
2699
|
R(v(He), {
|
|
2685
2700
|
size: "middle",
|
|
2686
|
-
onClick: u[4] || (u[4] = (
|
|
2701
|
+
onClick: u[4] || (u[4] = (h) => n.value = !1),
|
|
2687
2702
|
style: { "margin-right": "12px" }
|
|
2688
2703
|
}, {
|
|
2689
2704
|
default: B(() => [
|
|
@@ -2723,10 +2738,10 @@ const Kt = (t, e = "") => {
|
|
|
2723
2738
|
width: "180",
|
|
2724
2739
|
height: "120"
|
|
2725
2740
|
}, null, 8, op),
|
|
2726
|
-
R(v(
|
|
2741
|
+
R(v(uo), {
|
|
2727
2742
|
modelValue: o.value,
|
|
2728
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2729
|
-
onChange: u[1] || (u[1] = (
|
|
2743
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => o.value = h),
|
|
2744
|
+
onChange: u[1] || (u[1] = (h) => l(1))
|
|
2730
2745
|
}, {
|
|
2731
2746
|
default: B(() => [
|
|
2732
2747
|
ye(
|
|
@@ -2746,10 +2761,10 @@ const Kt = (t, e = "") => {
|
|
|
2746
2761
|
width: "180",
|
|
2747
2762
|
height: "120"
|
|
2748
2763
|
}, null, 8, sp),
|
|
2749
|
-
R(v(
|
|
2764
|
+
R(v(uo), {
|
|
2750
2765
|
modelValue: r.value,
|
|
2751
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
2752
|
-
onChange: u[3] || (u[3] = (
|
|
2766
|
+
"onUpdate:modelValue": u[2] || (u[2] = (h) => r.value = h),
|
|
2767
|
+
onChange: u[3] || (u[3] = (h) => l(2))
|
|
2753
2768
|
}, {
|
|
2754
2769
|
default: B(() => [
|
|
2755
2770
|
ye(
|
|
@@ -2770,29 +2785,29 @@ const Kt = (t, e = "") => {
|
|
|
2770
2785
|
}, 8, ["title", "modelValue"])
|
|
2771
2786
|
]));
|
|
2772
2787
|
}
|
|
2773
|
-
}), cp = /* @__PURE__ */ Ce(ip, [["__scopeId", "data-v-d271fb9a"]]), lp = () =>
|
|
2788
|
+
}), cp = /* @__PURE__ */ Ce(ip, [["__scopeId", "data-v-d271fb9a"]]), lp = () => E(null), up = Rn.get("/login/history"), dp = () => {
|
|
2774
2789
|
const t = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((c) => new RegExp(`^${c}$`, "i").test(location.pathname)), e = (a) => {
|
|
2775
|
-
const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, i = c ? l +
|
|
2776
|
-
Ri(i),
|
|
2790
|
+
const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, i = c ? l + Mn(c) : "";
|
|
2791
|
+
Ri(i), Ns(i);
|
|
2777
2792
|
}, n = async () => {
|
|
2778
|
-
const [a, l] = await up().run({ userId:
|
|
2793
|
+
const [a, l] = await up().run({ userId: ur().id });
|
|
2779
2794
|
a || !l || JSON.stringify(l) === "{}" || (Wt.open({
|
|
2780
2795
|
key: "loginTip",
|
|
2781
2796
|
message: "上次登录信息",
|
|
2782
2797
|
placement: "bottomRight",
|
|
2783
|
-
description:
|
|
2784
|
-
|
|
2798
|
+
description: he("div", { class: "last-login-info" }, [
|
|
2799
|
+
he(
|
|
2785
2800
|
"div",
|
|
2786
2801
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
2787
|
-
"时间:" +
|
|
2802
|
+
"时间:" + Hs(l.lastModificationTime)
|
|
2788
2803
|
),
|
|
2789
|
-
|
|
2804
|
+
he("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + l.ip)
|
|
2790
2805
|
])
|
|
2791
2806
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
2792
2807
|
}, o = async () => {
|
|
2793
2808
|
const [{ loginConfig: a }, { platformConfig: l }] = await Promise.all([Jd(), Kd()]);
|
|
2794
2809
|
e(l), M.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !t() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && n();
|
|
2795
|
-
}, r =
|
|
2810
|
+
}, r = E(!1), s = () => new Promise((a) => {
|
|
2796
2811
|
const l = () => {
|
|
2797
2812
|
if (r.value) return a();
|
|
2798
2813
|
setTimeout(() => l(), 50);
|
|
@@ -2802,14 +2817,14 @@ const Kt = (t, e = "") => {
|
|
|
2802
2817
|
return Ve(async () => {
|
|
2803
2818
|
if (await o(), t()) return;
|
|
2804
2819
|
await Zi(), await Xi();
|
|
2805
|
-
const a =
|
|
2806
|
-
|
|
2820
|
+
const a = Bn();
|
|
2821
|
+
pr({ accessToken: a }), r.value = !0;
|
|
2807
2822
|
}), {
|
|
2808
2823
|
platformInited: r,
|
|
2809
2824
|
initNextTick: s
|
|
2810
2825
|
};
|
|
2811
2826
|
}, pp = (t) => {
|
|
2812
|
-
const e = Ye(), n = Dt(), { getMenu: o } =
|
|
2827
|
+
const e = Ye(), n = Dt(), { getMenu: o } = zs(), { getHistoryList: r, getSearchList: s } = kp(), a = E(!0), l = E([]), c = E([]), i = E(!1), u = E(!1);
|
|
2813
2828
|
X(
|
|
2814
2829
|
() => n.path,
|
|
2815
2830
|
(g) => {
|
|
@@ -2832,43 +2847,43 @@ const Kt = (t, e = "") => {
|
|
|
2832
2847
|
immediate: !0
|
|
2833
2848
|
}
|
|
2834
2849
|
);
|
|
2835
|
-
const
|
|
2850
|
+
const h = async () => {
|
|
2836
2851
|
let g = {};
|
|
2837
|
-
return await
|
|
2838
|
-
}, d =
|
|
2852
|
+
return await Us([Yi, Hd, Gd, Yr, ts]).then((m) => Object.assign(g, ...m)), a.value = !1, g;
|
|
2853
|
+
}, d = E(!1);
|
|
2839
2854
|
return M.nav.addEventListener("onBeforeMount", async () => {
|
|
2840
|
-
var
|
|
2855
|
+
var S;
|
|
2841
2856
|
await t();
|
|
2842
|
-
const g = await
|
|
2857
|
+
const g = await h();
|
|
2843
2858
|
if (!g) return;
|
|
2844
|
-
const { homeConfig: A, projectConfig: m, currentProject:
|
|
2845
|
-
u.value = ((
|
|
2846
|
-
const w = [...
|
|
2847
|
-
w.forEach((
|
|
2848
|
-
A != null && A.appAlias &&
|
|
2849
|
-
}), l.value = w, A != null && A.enable || (l.value = l.value.filter((
|
|
2859
|
+
const { homeConfig: A, projectConfig: m, currentProject: f, tenantList: _, personalMenuConfig: y } = g;
|
|
2860
|
+
u.value = ((S = On()) == null ? void 0 : S.flag) !== 4 && _ && _.length > 1;
|
|
2861
|
+
const w = [...Ir];
|
|
2862
|
+
w.forEach((T) => {
|
|
2863
|
+
A != null && A.appAlias && T.value === Ue && (T.label = A.appAlias), A != null && A.homeAlias && T.value === Ct && (T.label = A.homeAlias);
|
|
2864
|
+
}), l.value = w, A != null && A.enable || (l.value = l.value.filter((T) => T.path === Ue), n.path === Ct && await e.replace(Ue)), M.nav.setItems(l.value), m && m.length && (M.nav.setProjectConfig({
|
|
2850
2865
|
treeProps: {
|
|
2851
|
-
disabled: (
|
|
2866
|
+
disabled: (T) => T.type !== 7
|
|
2852
2867
|
},
|
|
2853
2868
|
// 过滤的节点
|
|
2854
|
-
filterNodeMethod: (
|
|
2869
|
+
filterNodeMethod: (T) => T.type === 7,
|
|
2855
2870
|
// 树打平之后保留的数据
|
|
2856
|
-
filterFlatCondition: (
|
|
2857
|
-
}), M.nav.setProjects(m || []),
|
|
2858
|
-
const C = Yt() ?? {}, k = C != null && C.headPicture ?
|
|
2859
|
-
c.value = [...yi],
|
|
2871
|
+
filterFlatCondition: (T) => T.type === 7
|
|
2872
|
+
}), M.nav.setProjects(m || []), f && M.nav.setActiveProject(f));
|
|
2873
|
+
const C = Yt() ?? {}, k = C != null && C.headPicture ? Mn(C.headPicture) : void 0;
|
|
2874
|
+
c.value = [...yi], f && f.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((x) => x.value !== "1")) : c.value = c.value.filter((T) => T.value !== "1"), M.nav.setUserInfo({ headPicture: k, commandList: c.value }), M.nav.setSearchConfig({
|
|
2860
2875
|
getHistoryList: r,
|
|
2861
2876
|
getSearchList: s
|
|
2862
2877
|
});
|
|
2863
2878
|
const I = K().subAppList ?? [];
|
|
2864
|
-
I.length && (I.forEach((
|
|
2865
|
-
|
|
2879
|
+
I.length && (I.forEach((T) => {
|
|
2880
|
+
T.menus = [], T.originalMenus = [];
|
|
2866
2881
|
}), ke([{ key: "subAppList", value: I }])), d.value = !0;
|
|
2867
2882
|
}), { loading: a, innerPage: l, commandList: c, layoutInited: d, initNextTick: () => new Promise((g) => {
|
|
2868
2883
|
const A = async () => {
|
|
2869
2884
|
var _;
|
|
2870
|
-
let m = ((_ = n.meta) == null ? void 0 : _.showLayout) ?? !0, { showLayout:
|
|
2871
|
-
if (
|
|
2885
|
+
let m = ((_ = n.meta) == null ? void 0 : _.showLayout) ?? !0, { showLayout: f = !0 } = n.query;
|
|
2886
|
+
if (f === "false" && (f = !1), !m || !f || d.value) {
|
|
2872
2887
|
g();
|
|
2873
2888
|
return;
|
|
2874
2889
|
}
|
|
@@ -2876,7 +2891,7 @@ const Kt = (t, e = "") => {
|
|
|
2876
2891
|
};
|
|
2877
2892
|
A();
|
|
2878
2893
|
}) };
|
|
2879
|
-
}, fp =
|
|
2894
|
+
}, fp = jn.get("/data/menu-expiration"), Zn = async (t) => {
|
|
2880
2895
|
const [e, n] = await fp().run();
|
|
2881
2896
|
if (e) return { title: "", content: "", decs: [] };
|
|
2882
2897
|
const o = (t == null ? void 0 : t.expired) ?? !1;
|
|
@@ -2892,8 +2907,8 @@ const Kt = (t, e = "") => {
|
|
|
2892
2907
|
const n = Me(zt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
2893
2908
|
if (!(n && !n.routeUrl)) {
|
|
2894
2909
|
if (!n) {
|
|
2895
|
-
const { title: o, content: r, desc: s } = await
|
|
2896
|
-
await
|
|
2910
|
+
const { title: o, content: r, desc: s } = await Zn(n);
|
|
2911
|
+
await Et({ title: o, content: r, desc: s });
|
|
2897
2912
|
return;
|
|
2898
2913
|
}
|
|
2899
2914
|
t({ currentMenu: n });
|
|
@@ -2918,36 +2933,36 @@ const Kt = (t, e = "") => {
|
|
|
2918
2933
|
const { enter: o } = ht();
|
|
2919
2934
|
return M.nav.addEventListener("fullScreenHandle", o), {};
|
|
2920
2935
|
}, mp = () => {
|
|
2921
|
-
const t = Ye(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r =
|
|
2936
|
+
const t = Ye(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r = E(e), s = E(n), a = E(o);
|
|
2922
2937
|
let l = "", c = {};
|
|
2923
2938
|
X(
|
|
2924
2939
|
() => t.currentRoute.value,
|
|
2925
|
-
async (
|
|
2926
|
-
var I,
|
|
2927
|
-
const _ = ((I =
|
|
2928
|
-
let y = ((
|
|
2929
|
-
if (y === "false" && (y = !1), !_ || !y ||
|
|
2930
|
-
l = dt(
|
|
2940
|
+
async (f) => {
|
|
2941
|
+
var I, S, T, x, Q, V, J;
|
|
2942
|
+
const _ = ((I = f.meta) == null ? void 0 : I.showLayout) ?? !0;
|
|
2943
|
+
let y = ((S = f.query) == null ? void 0 : S.showLayout) ?? !0;
|
|
2944
|
+
if (y === "false" && (y = !1), !_ || !y || f.path === l && _n(f.query, c)) return;
|
|
2945
|
+
l = dt(f.path), c = dt(f.query);
|
|
2931
2946
|
const w = K().currentSubAppCode ?? "";
|
|
2932
2947
|
if (!w) return;
|
|
2933
|
-
const C = ((
|
|
2948
|
+
const C = ((T = f.query) == null ? void 0 : T.menu) ?? ((x = ve()) == null ? void 0 : x.currentCode) ?? "";
|
|
2934
2949
|
if (!C) return;
|
|
2935
2950
|
const k = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
2936
2951
|
k && JSON.stringify(k) !== "{}" && (r.value = (Q = k[w][C]) != null && Q.fontColor ? k[w][C].fontColor : e, s.value = (V = k[w][C]) != null && V.backgroundColor ? k[w][C].backgroundColor : n, a.value = (J = k[w][C]) != null && J.backgroundColor ? k[w][C].backgroundColor : o);
|
|
2937
2952
|
}
|
|
2938
2953
|
);
|
|
2939
|
-
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute:
|
|
2954
|
+
const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: h, unloadRoute: d } = ns(), p = (f) => {
|
|
2940
2955
|
var C;
|
|
2941
|
-
const _ = Me(zt(
|
|
2956
|
+
const _ = Me(zt(f.applicationCode)).find((k) => k.code === f.code), w = (((C = ve().tabMap) == null ? void 0 : C[f.applicationCode]) ?? []).find((k) => k.code === f.code);
|
|
2942
2957
|
u({ currentMenu: _, route: { path: w.path, query: w.query ?? {} } });
|
|
2943
|
-
}, g = (
|
|
2944
|
-
if (!
|
|
2945
|
-
const _ =
|
|
2958
|
+
}, g = (f) => {
|
|
2959
|
+
if (!f || !f.length) return;
|
|
2960
|
+
const _ = f.map((y) => y.path);
|
|
2946
2961
|
d(_);
|
|
2947
|
-
}, A = (
|
|
2962
|
+
}, A = (f) => {
|
|
2948
2963
|
const _ = K().currentSubAppCode ?? "";
|
|
2949
2964
|
q.innerSet = !0;
|
|
2950
|
-
const y = ve(), w = y.tabMap[_], C = w.findIndex((Q) => Q.code ===
|
|
2965
|
+
const y = ve(), w = y.tabMap[_], C = w.findIndex((Q) => Q.code === f.data.code);
|
|
2951
2966
|
if (C === -1) return;
|
|
2952
2967
|
const k = () => {
|
|
2953
2968
|
var J;
|
|
@@ -2983,50 +2998,50 @@ const Kt = (t, e = "") => {
|
|
|
2983
2998
|
const J = w.slice(C + 1);
|
|
2984
2999
|
J.forEach((le) => M.tab.removeItem(le.code)), g(J), w.splice(C + 1), Ae([{ key: `tabMap:${_}`, value: w }]);
|
|
2985
3000
|
}
|
|
2986
|
-
})[
|
|
3001
|
+
})[f.type](f.data);
|
|
2987
3002
|
};
|
|
2988
|
-
M.tab.addEventListener("onItemClick", async (
|
|
2989
|
-
ve().currentCode !==
|
|
2990
|
-
}), M.tab.addEventListener("onItemRemove", (
|
|
3003
|
+
M.tab.addEventListener("onItemClick", async (f) => {
|
|
3004
|
+
ve().currentCode !== f.currentCode && (q.innerSet = !0, p(f));
|
|
3005
|
+
}), M.tab.addEventListener("onItemRemove", (f) => {
|
|
2991
3006
|
const _ = ve(), y = K().currentSubAppCode ?? "";
|
|
2992
|
-
_.tabMap[y].findIndex((k) => k.code ===
|
|
2993
|
-
}), M.tab.addEventListener("onMenuClick", (
|
|
3007
|
+
_.tabMap[y].findIndex((k) => k.code === f.code) !== -1 && (Ut(f.applicationCode, [f.code]), A({ type: "me", data: f }));
|
|
3008
|
+
}), M.tab.addEventListener("onMenuClick", (f) => {
|
|
2994
3009
|
let _ = [];
|
|
2995
|
-
const y = ve().tabMap[
|
|
2996
|
-
if (
|
|
2997
|
-
const w = y.findIndex((C) => C.code ===
|
|
3010
|
+
const y = ve().tabMap[f.applicationCode] ?? [];
|
|
3011
|
+
if (f.type.key === "right") {
|
|
3012
|
+
const w = y.findIndex((C) => C.code === f.data.value);
|
|
2998
3013
|
_ = y.slice(w + 1);
|
|
2999
3014
|
}
|
|
3000
|
-
|
|
3001
|
-
|
|
3015
|
+
f.type.key === "other" && (_ = y.filter((w) => w.code !== f.data.value)), f.type.key === "all" && (_ = [...y]), Ut(
|
|
3016
|
+
f.applicationCode,
|
|
3002
3017
|
_.map((w) => w.code)
|
|
3003
|
-
), A({ type:
|
|
3004
|
-
}), M.tab.addEventListener("onPageRefresh", async (
|
|
3005
|
-
if (!
|
|
3006
|
-
Ut(
|
|
3007
|
-
const _ = Me(zt(
|
|
3018
|
+
), A({ type: f.type.key, data: f.data });
|
|
3019
|
+
}), M.tab.addEventListener("onPageRefresh", async (f) => {
|
|
3020
|
+
if (!f || f.path === ct) return;
|
|
3021
|
+
Ut(f.applicationCode, [f.code]);
|
|
3022
|
+
const _ = Me(zt(f.applicationCode)).find((C) => C.code === f.code);
|
|
3008
3023
|
if (!_) return;
|
|
3009
|
-
if (_.routeUrl !==
|
|
3010
|
-
|
|
3024
|
+
if (_.routeUrl !== f.path) {
|
|
3025
|
+
h([f.path]), d([`/${f.applicationPath}${_.routeUrl}`]), await u({ currentMenu: _ });
|
|
3011
3026
|
return;
|
|
3012
3027
|
}
|
|
3013
|
-
const y = { app: _.applicationCode, menu: _.code }, w = { ...
|
|
3014
|
-
|
|
3028
|
+
const y = { app: _.applicationCode, menu: _.code }, w = { ...f.query };
|
|
3029
|
+
_n(y, w) || await u({ currentMenu: _ }), h([f.path]);
|
|
3015
3030
|
});
|
|
3016
3031
|
const { enter: m } = ht();
|
|
3017
3032
|
return M.tab.addEventListener("onToggleFullScreen", m), { fontColor: r, backgroudColor: s, borderColor: a };
|
|
3018
|
-
},
|
|
3033
|
+
}, gn = tt(), Jo = (gn == null ? void 0 : gn.isAutoCloseApp) ?? !0, Ko = location.href.includes("showLayout=false"), Go = window.self !== window.top, vp = () => {
|
|
3019
3034
|
const t = () => {
|
|
3020
|
-
ce.unloadAllMicroApp(), M.nav.setItems([]), M.menu.setItems([]), M.tab.setItems([]),
|
|
3035
|
+
ce.unloadAllMicroApp(), M.nav.setItems([]), M.menu.setItems([]), M.tab.setItems([]), Pr();
|
|
3021
3036
|
};
|
|
3022
3037
|
window.addEventListener("beforeunload", function(e) {
|
|
3023
|
-
if (!(
|
|
3038
|
+
if (!(Ko || !Jo || Go) && window.__isAutoCloseApp) {
|
|
3024
3039
|
e.preventDefault();
|
|
3025
3040
|
const n = "";
|
|
3026
3041
|
return e.returnValue = n, n;
|
|
3027
3042
|
}
|
|
3028
3043
|
}), window.addEventListener("unload", function(e) {
|
|
3029
|
-
if (
|
|
3044
|
+
if (Ko || !Jo || Go) return;
|
|
3030
3045
|
if (!window.__isAutoCloseApp) {
|
|
3031
3046
|
window.__isAutoCloseApp = !0;
|
|
3032
3047
|
return;
|
|
@@ -3035,7 +3050,7 @@ const Kt = (t, e = "") => {
|
|
|
3035
3050
|
n.subAppList && n.subAppList.length && sessionStorage.setItem("has-subapp", "true"), t();
|
|
3036
3051
|
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp"));
|
|
3037
3052
|
}, vt = () => {
|
|
3038
|
-
const t = Ye(), { entryMenu: e } = rn(), { unloadRoute: n } =
|
|
3053
|
+
const t = Ye(), { entryMenu: e } = rn(), { unloadRoute: n } = ns();
|
|
3039
3054
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = tt();
|
|
3040
3055
|
!o && r && (s = [{ name: r }]);
|
|
3041
3056
|
const a = s.map((d) => d.name), l = () => {
|
|
@@ -3043,26 +3058,26 @@ const Kt = (t, e = "") => {
|
|
|
3043
3058
|
}, c = async (d) => {
|
|
3044
3059
|
if (d.routeUrl && !a.includes(d.routeUrl)) return !0;
|
|
3045
3060
|
const p = d.code ?? "", A = (K().subAppList ?? []).find((w) => w.code === p);
|
|
3046
|
-
let m = [],
|
|
3061
|
+
let m = [], f = [], _ = !1;
|
|
3047
3062
|
if (A && (m = A.menus ?? []), !m.length) {
|
|
3048
|
-
const { menus: w, originalMenus: C, err: k } = await
|
|
3063
|
+
const { menus: w, originalMenus: C, err: k } = await Xn(p);
|
|
3049
3064
|
if (k) return !1;
|
|
3050
|
-
m = w ?? [],
|
|
3065
|
+
m = w ?? [], f = C ?? [];
|
|
3051
3066
|
}
|
|
3052
|
-
if (m.length ? Kt(m) || (await
|
|
3053
|
-
const y = { ...d, menus: m, originalMenus:
|
|
3067
|
+
if (m.length ? Kt(m) || (await Et({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), _ = !0) : (await Et({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), _ = !0), _) return !1;
|
|
3068
|
+
const y = { ...d, menus: m, originalMenus: f };
|
|
3054
3069
|
return ke([{ key: "subAppList", value: y }]), !0;
|
|
3055
3070
|
}, i = async (d) => {
|
|
3056
3071
|
var V, J, le, Ie, Rt;
|
|
3057
3072
|
const { microApp: p = null, menuCode: g = "", menuPath: A = "", route: m = {} } = d;
|
|
3058
|
-
let
|
|
3073
|
+
let f = m;
|
|
3059
3074
|
if (l(), !p && A) {
|
|
3060
3075
|
if (!(a && a.find((re) => A.startsWith("/" + re) || A.startsWith(re)))) return;
|
|
3061
|
-
q.innerSet && t.push({ path: A, query:
|
|
3076
|
+
q.innerSet && t.push({ path: A, query: f.query });
|
|
3062
3077
|
return;
|
|
3063
3078
|
}
|
|
3064
|
-
const _ = ((V =
|
|
3065
|
-
let y = ((J =
|
|
3079
|
+
const _ = ((V = f.meta) == null ? void 0 : V.showLayout) ?? !0;
|
|
3080
|
+
let y = ((J = f.query) == null ? void 0 : J.showLayout) ?? !0;
|
|
3066
3081
|
y === "false" && (y = !1);
|
|
3067
3082
|
const w = (p == null ? void 0 : p.openType) ?? 1, C = (p == null ? void 0 : p.type) ?? 1;
|
|
3068
3083
|
if (p.routeUrl && !a.includes(p.routeUrl)) {
|
|
@@ -3075,15 +3090,15 @@ const Kt = (t, e = "") => {
|
|
|
3075
3090
|
const ze = { ..._e, value: _e.code, label: _e.name };
|
|
3076
3091
|
M.nav.appendItem(ze);
|
|
3077
3092
|
}), M.nav.setActiveItem(p.code), ce.hideAllMicroApp(), p.routeUrl.includes("entrance=main")) {
|
|
3078
|
-
q.innerSet && t.push({ path: p.routeUrl, query: { ...
|
|
3093
|
+
q.innerSet && t.push({ path: p.routeUrl, query: { ...f.query, app: p.code } });
|
|
3079
3094
|
return;
|
|
3080
3095
|
}
|
|
3081
3096
|
if (w === 1 && C === 2) {
|
|
3082
|
-
const _e =
|
|
3097
|
+
const _e = En(bn(wn(p.routeUrl)));
|
|
3083
3098
|
q.innerSet && t.push({
|
|
3084
3099
|
path: ct,
|
|
3085
3100
|
query: {
|
|
3086
|
-
...
|
|
3101
|
+
...f.query,
|
|
3087
3102
|
app: p.code,
|
|
3088
3103
|
iframeSrc: _e
|
|
3089
3104
|
}
|
|
@@ -3094,14 +3109,14 @@ const Kt = (t, e = "") => {
|
|
|
3094
3109
|
const {
|
|
3095
3110
|
menuConfig: k = [],
|
|
3096
3111
|
currentApp: I = null,
|
|
3097
|
-
currentMenu:
|
|
3098
|
-
microPath:
|
|
3112
|
+
currentMenu: S = null,
|
|
3113
|
+
microPath: T = "",
|
|
3099
3114
|
query: x = {}
|
|
3100
|
-
} = await Bd({ microApp: p, menuCode: g, menuPath: A, route:
|
|
3101
|
-
if (
|
|
3102
|
-
path:
|
|
3103
|
-
query: { ...x, app:
|
|
3104
|
-
meta: { ...(
|
|
3115
|
+
} = await Bd({ microApp: p, menuCode: g, menuPath: A, route: f });
|
|
3116
|
+
if (S && (f = {
|
|
3117
|
+
path: T || `/${S.applicationPath}${S.routeUrl}`.replace(/\/\//g, "/"),
|
|
3118
|
+
query: { ...x, app: S.applicationCode, menu: S.code },
|
|
3119
|
+
meta: { ...(f == null ? void 0 : f.meta) ?? {} }
|
|
3105
3120
|
}), I && (I == null ? void 0 : I.code) !== (p == null ? void 0 : p.code)) {
|
|
3106
3121
|
if (I.fixed && (M.menu.setItems([]), M.tab.setItems([]), q.innerSet && t.push(I.path), M.nav.setActiveItem(I.path), ce.hideAllMicroApp()), !I.fixed) {
|
|
3107
3122
|
const pe = (Ie = K().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === I.code), re = ve().preTab[I.code], _e = { ...(re == null ? void 0 : re.query) ?? {} };
|
|
@@ -3110,11 +3125,11 @@ const Kt = (t, e = "") => {
|
|
|
3110
3125
|
return;
|
|
3111
3126
|
}
|
|
3112
3127
|
const Q = I || p;
|
|
3113
|
-
if (!
|
|
3128
|
+
if (!S && A) {
|
|
3114
3129
|
q.innerSet && t.push({
|
|
3115
3130
|
path: A,
|
|
3116
3131
|
query: {
|
|
3117
|
-
...
|
|
3132
|
+
...f.query,
|
|
3118
3133
|
app: Q.code
|
|
3119
3134
|
}
|
|
3120
3135
|
});
|
|
@@ -3134,7 +3149,7 @@ const Kt = (t, e = "") => {
|
|
|
3134
3149
|
});
|
|
3135
3150
|
});
|
|
3136
3151
|
}
|
|
3137
|
-
e({ currentMenu:
|
|
3152
|
+
e({ currentMenu: S, microPath: T, route: f });
|
|
3138
3153
|
}, u = async (d) => {
|
|
3139
3154
|
var p;
|
|
3140
3155
|
if (q.innerSet = !0, d.fixed) {
|
|
@@ -3148,8 +3163,8 @@ const Kt = (t, e = "") => {
|
|
|
3148
3163
|
return;
|
|
3149
3164
|
}
|
|
3150
3165
|
if (!d.fixed) {
|
|
3151
|
-
const g = (p = K().subAppList) == null ? void 0 : p.find((_) => _.code === d.code), A = ve().preTab[d.code], m = (A == null ? void 0 : A.code) ?? "",
|
|
3152
|
-
await i({ microApp: g, menuCode: m, route: { query:
|
|
3166
|
+
const g = (p = K().subAppList) == null ? void 0 : p.find((_) => _.code === d.code), A = ve().preTab[d.code], m = (A == null ? void 0 : A.code) ?? "", f = { ...(A == null ? void 0 : A.query) ?? {} };
|
|
3167
|
+
await i({ microApp: g, menuCode: m, route: { query: f } });
|
|
3153
3168
|
}
|
|
3154
3169
|
};
|
|
3155
3170
|
return {
|
|
@@ -3157,9 +3172,9 @@ const Kt = (t, e = "") => {
|
|
|
3157
3172
|
entryApp: i,
|
|
3158
3173
|
changeApp: u,
|
|
3159
3174
|
deleteApp: async (d) => {
|
|
3160
|
-
var
|
|
3175
|
+
var f;
|
|
3161
3176
|
const p = K();
|
|
3162
|
-
if (!((
|
|
3177
|
+
if (!((f = p.subAppList) != null && f.length)) return;
|
|
3163
3178
|
const g = p.subAppList.findIndex((_) => _.code === d.code);
|
|
3164
3179
|
if (g === -1) return;
|
|
3165
3180
|
const A = ve().tabMap[d.code] ?? [];
|
|
@@ -3176,8 +3191,8 @@ const Kt = (t, e = "") => {
|
|
|
3176
3191
|
await u(_), M.nav.setActiveItem(m.code);
|
|
3177
3192
|
}
|
|
3178
3193
|
if (!p.subAppList.length) {
|
|
3179
|
-
const _ =
|
|
3180
|
-
M.menu.setItems([]), M.tab.setItems([]), ce.unloadAllMicroApp(), u(_),
|
|
3194
|
+
const _ = Ir[1];
|
|
3195
|
+
M.menu.setItems([]), M.tab.setItems([]), ce.unloadAllMicroApp(), u(_), Fn(), Sr();
|
|
3181
3196
|
}
|
|
3182
3197
|
}
|
|
3183
3198
|
};
|
|
@@ -3189,23 +3204,23 @@ const Kt = (t, e = "") => {
|
|
|
3189
3204
|
const { currentMenu: a, route: l = {}, microPath: c = "" } = s;
|
|
3190
3205
|
if (!a) return;
|
|
3191
3206
|
let i = { ...l.query, app: a.applicationCode, menu: a.code };
|
|
3192
|
-
const u = (a == null ? void 0 : a.openType) ?? 1,
|
|
3207
|
+
const u = (a == null ? void 0 : a.openType) ?? 1, h = (a == null ? void 0 : a.type) ?? 1;
|
|
3193
3208
|
let d = "";
|
|
3194
3209
|
if (u === 1)
|
|
3195
|
-
if (
|
|
3210
|
+
if (h === 1)
|
|
3196
3211
|
if (a.routeUrl.startsWith(ct)) {
|
|
3197
3212
|
ce.hideAllMicroApp(), d = ct;
|
|
3198
|
-
const m =
|
|
3213
|
+
const m = Fs(a.routeUrl, "iframeSrc");
|
|
3199
3214
|
i = { ...i, iframeSrc: m }, q.innerSet && t.push({ path: d, query: i });
|
|
3200
3215
|
} else a.applicationPath && (d = c || a.routeUrl, d = `/${a.applicationPath}${d}`.replace(/\/\//g, "/"), q.innerSet && t.push({ path: d, query: i }));
|
|
3201
3216
|
else {
|
|
3202
3217
|
ce.hideAllMicroApp(), d = ct;
|
|
3203
|
-
const m =
|
|
3218
|
+
const m = En(bn(wn(a.routeUrl)));
|
|
3204
3219
|
i = { ...i, iframeSrc: m }, q.innerSet && t.push({ path: d, query: i });
|
|
3205
3220
|
}
|
|
3206
3221
|
if (u === 2) {
|
|
3207
|
-
let m =
|
|
3208
|
-
m =
|
|
3222
|
+
let m = h === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
|
|
3223
|
+
m = En(bn(wn(m))), q.innerSet ? (ce.hideAllMicroApp(), d = Tr, q.innerSet && t.push({ path: d, query: i }), m && window.open(m, "_blank")) : h === 1 && (d = m, i = { ...i, showLayout: !1 }, q.innerSet && t.push({
|
|
3209
3224
|
path: d,
|
|
3210
3225
|
query: i
|
|
3211
3226
|
}));
|
|
@@ -3227,7 +3242,7 @@ const Kt = (t, e = "") => {
|
|
|
3227
3242
|
...m,
|
|
3228
3243
|
value: m.code,
|
|
3229
3244
|
label: m.name
|
|
3230
|
-
}), M.tab.setActiveItem(a.code), M.menu.setActiveItem(a.id),
|
|
3245
|
+
}), M.tab.setActiveItem(a.code), M.menu.setActiveItem(a.id), kr(a.code), Ae([
|
|
3231
3246
|
{
|
|
3232
3247
|
key: "currentCode",
|
|
3233
3248
|
value: a.code
|
|
@@ -3252,15 +3267,15 @@ const Kt = (t, e = "") => {
|
|
|
3252
3267
|
var y, w, C, k;
|
|
3253
3268
|
let i = { ...c }, { showLayout: u = !0 } = i.query;
|
|
3254
3269
|
u === "false" && (u = !1);
|
|
3255
|
-
const
|
|
3256
|
-
var
|
|
3270
|
+
const h = async () => {
|
|
3271
|
+
var T, x;
|
|
3257
3272
|
let I = K().appcategorys ?? [];
|
|
3258
3273
|
if (!Array.isArray(I)) return [];
|
|
3259
3274
|
if (i.query) {
|
|
3260
|
-
const Q = ((
|
|
3275
|
+
const Q = ((T = i.query) == null ? void 0 : T.project) ?? ((x = i.query) == null ? void 0 : x.projectId) ?? "";
|
|
3261
3276
|
if (!I.length || Q && Q !== Fe().id) {
|
|
3262
3277
|
await e();
|
|
3263
|
-
const { navConfig: V } = await
|
|
3278
|
+
const { navConfig: V } = await Yr();
|
|
3264
3279
|
V && (I = V);
|
|
3265
3280
|
}
|
|
3266
3281
|
}
|
|
@@ -3268,7 +3283,7 @@ const Kt = (t, e = "") => {
|
|
|
3268
3283
|
}, d = tt().microApps ?? [], p = d.filter((I) => I.public);
|
|
3269
3284
|
if (p.length) {
|
|
3270
3285
|
const I = p.find(
|
|
3271
|
-
(
|
|
3286
|
+
(S) => i.path.startsWith("/" + S.name) || i.path.startsWith(S.name)
|
|
3272
3287
|
);
|
|
3273
3288
|
if (I) {
|
|
3274
3289
|
o({
|
|
@@ -3280,24 +3295,24 @@ const Kt = (t, e = "") => {
|
|
|
3280
3295
|
return;
|
|
3281
3296
|
}
|
|
3282
3297
|
}
|
|
3283
|
-
const g = await
|
|
3284
|
-
if (
|
|
3285
|
-
const I =
|
|
3286
|
-
(
|
|
3298
|
+
const g = await h(), A = g.map((I) => I.code), m = ((y = i.query) == null ? void 0 : y.app) ?? "", f = ((w = K()) == null ? void 0 : w.subAppList) ?? [];
|
|
3299
|
+
if (f.length) {
|
|
3300
|
+
const I = f.filter((T) => T.code !== m && !A.includes(T.code)), S = f.filter(
|
|
3301
|
+
(T) => m === T.code || A.includes(T.code)
|
|
3287
3302
|
);
|
|
3288
|
-
ke([{ key: "subAppList", value:
|
|
3303
|
+
ke([{ key: "subAppList", value: S }]), I && I.length && I.forEach((T) => {
|
|
3289
3304
|
Ae([
|
|
3290
|
-
{ key: `preTab:${
|
|
3291
|
-
{ key: `tabMap:${
|
|
3305
|
+
{ key: `preTab:${T.code}`, value: {} },
|
|
3306
|
+
{ key: `tabMap:${T.code}`, value: [] }
|
|
3292
3307
|
]);
|
|
3293
3308
|
});
|
|
3294
3309
|
}
|
|
3295
3310
|
if (i.query.app) {
|
|
3296
|
-
let I = g.find((
|
|
3311
|
+
let I = g.find((S) => S.code === i.query.app);
|
|
3297
3312
|
if (!I && u) {
|
|
3298
|
-
const { currentApp:
|
|
3299
|
-
if (
|
|
3300
|
-
I =
|
|
3313
|
+
const { currentApp: S } = $n(i.query.app);
|
|
3314
|
+
if (S) {
|
|
3315
|
+
I = S;
|
|
3301
3316
|
const x = (ve().preTab ?? {})[I.code];
|
|
3302
3317
|
i = {}, x && (i.path = `/${x.applicationPath}${x.path}`.replace(/\/\//g, "/"), i.query = x.query);
|
|
3303
3318
|
}
|
|
@@ -3306,14 +3321,14 @@ const Kt = (t, e = "") => {
|
|
|
3306
3321
|
return;
|
|
3307
3322
|
} else {
|
|
3308
3323
|
const I = d && d.find(
|
|
3309
|
-
(
|
|
3324
|
+
(S) => i.path.startsWith("/" + S.name) || i.path.startsWith(S.name)
|
|
3310
3325
|
);
|
|
3311
3326
|
if (I) {
|
|
3312
|
-
let
|
|
3313
|
-
|
|
3314
|
-
(
|
|
3327
|
+
let S = g.find((T) => T.routeUrl === I.name);
|
|
3328
|
+
S || (S = g.find(
|
|
3329
|
+
(T) => (T == null ? void 0 : T.routePath) && T.routePath.length && T.routePath.includes(I.name)
|
|
3315
3330
|
)), o({
|
|
3316
|
-
microApp:
|
|
3331
|
+
microApp: S,
|
|
3317
3332
|
menuCode: i.query.menu,
|
|
3318
3333
|
menuPath: i.path,
|
|
3319
3334
|
route: i
|
|
@@ -3323,8 +3338,8 @@ const Kt = (t, e = "") => {
|
|
|
3323
3338
|
}
|
|
3324
3339
|
const _ = t.value.find((I) => I.path === location.pathname);
|
|
3325
3340
|
_ && M.nav.setActiveItem(_.path), (k = (C = K()) == null ? void 0 : C.subAppList) == null || k.forEach((I) => {
|
|
3326
|
-
const
|
|
3327
|
-
M.nav.appendItem(
|
|
3341
|
+
const S = { ...I, value: I.code, label: I.name };
|
|
3342
|
+
M.nav.appendItem(S);
|
|
3328
3343
|
}), M.menu.setItems([]), M.tab.setItems([]), ce.hideAllMicroApp(), ke([
|
|
3329
3344
|
{ key: "currentSubAppCode", value: "" },
|
|
3330
3345
|
{ key: "currentSubApp", value: {} }
|
|
@@ -3337,7 +3352,7 @@ const Kt = (t, e = "") => {
|
|
|
3337
3352
|
X(
|
|
3338
3353
|
() => r.currentRoute.value,
|
|
3339
3354
|
async (c) => {
|
|
3340
|
-
if (!(c.path === a &&
|
|
3355
|
+
if (!(c.path === a && _n(c.query, l))) {
|
|
3341
3356
|
if (a = dt(c.path), l = dt(c.query), await n(), q.innerSet) {
|
|
3342
3357
|
q.innerSet = !1;
|
|
3343
3358
|
return;
|
|
@@ -3346,7 +3361,7 @@ const Kt = (t, e = "") => {
|
|
|
3346
3361
|
}
|
|
3347
3362
|
}
|
|
3348
3363
|
);
|
|
3349
|
-
},
|
|
3364
|
+
}, ns = () => ({ reloadRoute: (n) => {
|
|
3350
3365
|
q.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...q.excludeRoutes, ...n])), q.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
3351
3366
|
q.routeKeepAliveVisible = !0, q.excludeRoutes = [];
|
|
3352
3367
|
}, 300);
|
|
@@ -3355,7 +3370,7 @@ const Kt = (t, e = "") => {
|
|
|
3355
3370
|
q.routeKeepAliveVisible = !0, q.excludeRoutes = [];
|
|
3356
3371
|
}, 100);
|
|
3357
3372
|
} }), yp = () => {
|
|
3358
|
-
const t =
|
|
3373
|
+
const t = Bs(), e = lp(), n = tt(), o = {
|
|
3359
3374
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
3360
3375
|
}, r = async () => {
|
|
3361
3376
|
const l = `${location.origin}/`, c = {
|
|
@@ -3364,18 +3379,18 @@ const Kt = (t, e = "") => {
|
|
|
3364
3379
|
client_id: "sys",
|
|
3365
3380
|
state: +/* @__PURE__ */ new Date(),
|
|
3366
3381
|
redirect_uri: l,
|
|
3367
|
-
logout_token:
|
|
3382
|
+
logout_token: Bn(),
|
|
3368
3383
|
// 写用户访问日志逻辑配合
|
|
3369
3384
|
logout: "true"
|
|
3370
3385
|
};
|
|
3371
3386
|
n.ssoLocale && (c.locale = "locale");
|
|
3372
|
-
const i = Object.keys(c).map((
|
|
3373
|
-
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(),
|
|
3387
|
+
const i = Object.keys(c).map((h) => `${h}=${c[h]}`).join("&"), u = `${n.baseURL}${o.logout}?${i}`;
|
|
3388
|
+
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Ks(), localStorage.removeItem("idelTime");
|
|
3374
3389
|
}, { entryApp: s } = vt(), a = async () => {
|
|
3375
|
-
const l = "personCenter", i = (K().appcategorys || []).map((g) => g.apps).flat(), { originalMenus: u = [] } = await
|
|
3390
|
+
const l = "personCenter", i = (K().appcategorys || []).map((g) => g.apps).flat(), { originalMenus: u = [] } = await Xn(l), d = Me(u).filter((g) => g.isMenu && g.routeUrl).find((g) => g.routeUrl === "/userInfo");
|
|
3376
3391
|
if (d != null && d.disable || d != null && d.expired) {
|
|
3377
|
-
const { title: g, content: A, desc: m } = await
|
|
3378
|
-
await
|
|
3392
|
+
const { title: g, content: A, desc: m } = await Zn(d);
|
|
3393
|
+
await Et({ title: g, content: A, desc: m });
|
|
3379
3394
|
return;
|
|
3380
3395
|
}
|
|
3381
3396
|
const p = i.find((g) => g.code === l);
|
|
@@ -3393,15 +3408,15 @@ const Kt = (t, e = "") => {
|
|
|
3393
3408
|
$changePwd: t,
|
|
3394
3409
|
$personSetDialog: e
|
|
3395
3410
|
};
|
|
3396
|
-
}, _p =
|
|
3397
|
-
const t = tt(), e =
|
|
3398
|
-
n.value = Yt().id, o.value =
|
|
3411
|
+
}, _p = fr.get("/convert/tenant"), bp = Rn.get("/platform/withdefault"), os = () => {
|
|
3412
|
+
const t = tt(), e = E(!1), n = E(""), o = E(""), r = () => {
|
|
3413
|
+
n.value = Yt().id, o.value = ur().tenantId, e.value = !0;
|
|
3399
3414
|
};
|
|
3400
3415
|
M.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
3401
3416
|
r();
|
|
3402
3417
|
});
|
|
3403
3418
|
const s = () => {
|
|
3404
|
-
|
|
3419
|
+
Pr(), xi(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
3405
3420
|
};
|
|
3406
3421
|
return {
|
|
3407
3422
|
changeEnterprisesVisible: e,
|
|
@@ -3411,20 +3426,20 @@ const Kt = (t, e = "") => {
|
|
|
3411
3426
|
const [c, i] = await _p().run({ tenant: l });
|
|
3412
3427
|
if (c) return;
|
|
3413
3428
|
e.value = !1;
|
|
3414
|
-
const { access_token: u = "", refresh_token:
|
|
3429
|
+
const { access_token: u = "", refresh_token: h = "", expires_in: d = 0, sub: p = "", name: g = "", flag: A = "", tenant: m = "" } = i, f = {
|
|
3415
3430
|
accessToken: u,
|
|
3416
3431
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(d) * 1e3,
|
|
3417
|
-
refreshToken:
|
|
3432
|
+
refreshToken: h,
|
|
3418
3433
|
info: i
|
|
3419
3434
|
};
|
|
3420
|
-
|
|
3435
|
+
Xs().save(f), pr(f);
|
|
3421
3436
|
const _ = {
|
|
3422
3437
|
id: p,
|
|
3423
3438
|
name: g,
|
|
3424
3439
|
flag: A,
|
|
3425
3440
|
tenantId: m
|
|
3426
3441
|
};
|
|
3427
|
-
sessionStorage.setItem("hotentUserInfo", JSON.stringify(_)),
|
|
3442
|
+
sessionStorage.setItem("hotentUserInfo", JSON.stringify(_)), Zs(u);
|
|
3428
3443
|
let y = "";
|
|
3429
3444
|
if (t != null && t.ssoLocale)
|
|
3430
3445
|
y = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
|
|
@@ -3440,16 +3455,16 @@ const Kt = (t, e = "") => {
|
|
|
3440
3455
|
}
|
|
3441
3456
|
};
|
|
3442
3457
|
}, wp = () => {
|
|
3443
|
-
const { changeEnterprise: t } =
|
|
3458
|
+
const { changeEnterprise: t } = os();
|
|
3444
3459
|
M.nav.addEventListener("onProjectChange", async (e) => {
|
|
3445
|
-
const n =
|
|
3460
|
+
const n = On();
|
|
3446
3461
|
if ((n == null ? void 0 : n.flag) === 4) {
|
|
3447
3462
|
const o = n.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
|
|
3448
3463
|
o !== r && await t(r);
|
|
3449
3464
|
}
|
|
3450
|
-
|
|
3465
|
+
Er(e || { id: 0 }), dr((e == null ? void 0 : e.id) || 0), (n == null ? void 0 : n.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
3451
3466
|
});
|
|
3452
|
-
}, Cp = We.get("/menu/search"), Ip = We.get("/searchhistory"),
|
|
3467
|
+
}, Cp = We.get("/menu/search"), Ip = We.get("/searchhistory"), Tp = We.post("/searchhistory"), Ep = We.delete("/searchhistory"), Sp = We.delete("/searchhistory/deleteone"), kp = () => {
|
|
3453
3468
|
const t = async () => {
|
|
3454
3469
|
const [o, r] = await Ip().run();
|
|
3455
3470
|
return o ? [] : r.map((s) => s.clickData).filter((s) => s.routeUrl);
|
|
@@ -3460,19 +3475,19 @@ const Kt = (t, e = "") => {
|
|
|
3460
3475
|
return M.nav.addEventListener("searchToPage", async (o) => {
|
|
3461
3476
|
const { item: r, keyword: s, cb: a } = o;
|
|
3462
3477
|
if (r != null && r.disable || r != null && r.expired) {
|
|
3463
|
-
const { title: u, content:
|
|
3464
|
-
await
|
|
3478
|
+
const { title: u, content: h, desc: d } = await Zn(r);
|
|
3479
|
+
await Et({ title: u, content: h, desc: d });
|
|
3465
3480
|
return;
|
|
3466
3481
|
}
|
|
3467
|
-
await
|
|
3482
|
+
await Tp().run({ searchVal: s, clickData: r });
|
|
3468
3483
|
const i = ((K().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
|
|
3469
3484
|
i && (n({ microApp: i, menuCode: r.code }), a());
|
|
3470
3485
|
}), M.nav.addEventListener("deleteSearchItem", async (o) => {
|
|
3471
3486
|
const { value: r, cb: s } = o;
|
|
3472
|
-
await
|
|
3487
|
+
await Sp().run({ id: r }), s();
|
|
3473
3488
|
}), M.nav.addEventListener("clearSearchList", async (o) => {
|
|
3474
3489
|
const { cb: r } = o;
|
|
3475
|
-
await
|
|
3490
|
+
await Ep().run(), r();
|
|
3476
3491
|
}), {
|
|
3477
3492
|
getHistoryList: t,
|
|
3478
3493
|
getSearchList: e
|
|
@@ -3506,29 +3521,29 @@ const Kt = (t, e = "") => {
|
|
|
3506
3521
|
}, Lp = (t) => {
|
|
3507
3522
|
["personcenter", "rightmanage"].forEach((n) => {
|
|
3508
3523
|
ce.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
|
|
3509
|
-
const { userInfo: r } = o.data, s = r != null && r.headPicture ?
|
|
3524
|
+
const { userInfo: r } = o.data, s = r != null && r.headPicture ? Mn(r.headPicture) : void 0;
|
|
3510
3525
|
M.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
3511
3526
|
});
|
|
3512
3527
|
});
|
|
3513
3528
|
}, $p = () => {
|
|
3514
3529
|
ce.addEventListenerFromMicroApp("devicePanelShow", (t) => {
|
|
3515
3530
|
const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
|
|
3516
|
-
|
|
3531
|
+
gr(e, n, o, r, s, a);
|
|
3517
3532
|
}), ce.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
|
|
3518
|
-
|
|
3533
|
+
Ys();
|
|
3519
3534
|
}), ce.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
|
|
3520
3535
|
const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
|
|
3521
|
-
|
|
3536
|
+
ea(e, n, o);
|
|
3522
3537
|
}), ce.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
|
|
3523
|
-
|
|
3538
|
+
ta();
|
|
3524
3539
|
});
|
|
3525
|
-
}, Dp =
|
|
3526
|
-
const t =
|
|
3540
|
+
}, Dp = Qn.get("/platform/login/pwd-advance-notify-check"), Mp = () => {
|
|
3541
|
+
const t = E([]), e = E(null), n = E([]), { entryApp: o } = qt.hooks.useEntryApp(), r = () => {
|
|
3527
3542
|
var c;
|
|
3528
3543
|
const l = (((c = K().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
3529
3544
|
l && o({ microApp: l });
|
|
3530
3545
|
}, s = () => {
|
|
3531
|
-
e.value = new
|
|
3546
|
+
e.value = new Hn({
|
|
3532
3547
|
url: "/api/messagecenter/message/v1/innersend",
|
|
3533
3548
|
reconnectWhenClose: !0,
|
|
3534
3549
|
opened: async () => {
|
|
@@ -3545,16 +3560,16 @@ const Kt = (t, e = "") => {
|
|
|
3545
3560
|
class: "message-center-notify",
|
|
3546
3561
|
message: i.title,
|
|
3547
3562
|
top: "55px",
|
|
3548
|
-
description:
|
|
3563
|
+
description: he("div", {}, [
|
|
3549
3564
|
// 标题
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3565
|
+
he("div", { class: "custom-title" }, [
|
|
3566
|
+
he(qe, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
|
|
3567
|
+
he("div", { class: "title" }, i.title)
|
|
3553
3568
|
]),
|
|
3554
3569
|
// 内容
|
|
3555
|
-
|
|
3570
|
+
he("div", { class: "custom-content" }, i.content),
|
|
3556
3571
|
// 底部按钮
|
|
3557
|
-
i.title !== "密码更新提醒" ?
|
|
3572
|
+
i.title !== "密码更新提醒" ? he(
|
|
3558
3573
|
"div",
|
|
3559
3574
|
{
|
|
3560
3575
|
class: "footer-btn",
|
|
@@ -3575,22 +3590,22 @@ const Kt = (t, e = "") => {
|
|
|
3575
3590
|
}), Zt(() => {
|
|
3576
3591
|
e.value && e.value.disconnect(), e.value = null;
|
|
3577
3592
|
});
|
|
3578
|
-
}, Op = "v1", Bp = ft(`/api/enterpriseright/permission/${Op}`),
|
|
3593
|
+
}, Op = "v1", Bp = ft(`/api/enterpriseright/permission/${Op}`), rs = ft("/api/intelligent-security/video/v1", xp), Rp = jn.get("/permissionset/user-portal-menu");
|
|
3579
3594
|
function xp(t) {
|
|
3580
3595
|
const e = Fe() ? Fe().id : 1;
|
|
3581
3596
|
return t.params || (t.params = {}), t.params.project = e, t.params.projectId = e, t;
|
|
3582
3597
|
}
|
|
3583
|
-
function
|
|
3598
|
+
function ss(t) {
|
|
3584
3599
|
const e = new URLSearchParams("");
|
|
3585
3600
|
for (let [n, o] of Object.entries(t))
|
|
3586
3601
|
e.append(n, o);
|
|
3587
3602
|
return e.toString();
|
|
3588
3603
|
}
|
|
3589
|
-
function
|
|
3590
|
-
return
|
|
3604
|
+
function Xo(t) {
|
|
3605
|
+
return rs.post(`/device/ptz?${ss(t)}`)().run();
|
|
3591
3606
|
}
|
|
3592
3607
|
function Qp(t) {
|
|
3593
|
-
return
|
|
3608
|
+
return rs.post(`/device/video/url/preview?${ss(t)}`)().run();
|
|
3594
3609
|
}
|
|
3595
3610
|
const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
3596
3611
|
__name: "GridItem",
|
|
@@ -3600,27 +3615,27 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3600
3615
|
},
|
|
3601
3616
|
emits: ["itemClick"],
|
|
3602
3617
|
setup(t, { emit: e }) {
|
|
3603
|
-
|
|
3618
|
+
Ts((u) => ({
|
|
3604
3619
|
"6cb537a6": i.value
|
|
3605
3620
|
}));
|
|
3606
|
-
const n = t, o = e, r =
|
|
3621
|
+
const n = t, o = e, r = E(), { toggle: s, isFullscreen: a } = ht(r), l = () => {
|
|
3607
3622
|
r.value != document.fullscreenElement && (a.value ? (a.value = !1, Qe(() => {
|
|
3608
3623
|
s();
|
|
3609
3624
|
})) : s());
|
|
3610
3625
|
}, c = () => {
|
|
3611
3626
|
o("itemClick");
|
|
3612
3627
|
}, i = H(() => `calc(100% / ${Math.sqrt(n.gridNum)})`);
|
|
3613
|
-
return (u,
|
|
3628
|
+
return (u, h) => ($(), W(
|
|
3614
3629
|
"div",
|
|
3615
3630
|
{
|
|
3616
3631
|
ref_key: "containerRef",
|
|
3617
3632
|
ref: r,
|
|
3618
|
-
class:
|
|
3619
|
-
onDblclick:
|
|
3620
|
-
onClick:
|
|
3633
|
+
class: rr(["wrapper", { "is-active": n.active }]),
|
|
3634
|
+
onDblclick: h[0] || (h[0] = (d) => l()),
|
|
3635
|
+
onClick: h[1] || (h[1] = (d) => c())
|
|
3621
3636
|
},
|
|
3622
3637
|
[
|
|
3623
|
-
|
|
3638
|
+
fe(u.$slots, "default", {}, void 0, !0)
|
|
3624
3639
|
],
|
|
3625
3640
|
34
|
|
3626
3641
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -3643,13 +3658,13 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3643
3658
|
($(!0), W(
|
|
3644
3659
|
De,
|
|
3645
3660
|
null,
|
|
3646
|
-
|
|
3661
|
+
Tt(n.gridNum, (l, c) => ($(), F(Hp, {
|
|
3647
3662
|
active: !1,
|
|
3648
3663
|
"grid-num": n.gridNum,
|
|
3649
3664
|
onItemClick: (i) => r(c)
|
|
3650
3665
|
}, {
|
|
3651
3666
|
default: B(() => [
|
|
3652
|
-
s.showFn(c) ?
|
|
3667
|
+
s.showFn(c) ? fe(s.$slots, "default", {
|
|
3653
3668
|
key: 0,
|
|
3654
3669
|
index: c
|
|
3655
3670
|
}, void 0, !0) : j("v-if", !0)
|
|
@@ -3676,7 +3691,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3676
3691
|
onDblclick: s[9] || (s[9] = ue((a) => a.stopPropagation(), ["stop"]))
|
|
3677
3692
|
},
|
|
3678
3693
|
[
|
|
3679
|
-
R(v(
|
|
3694
|
+
R(v(me), { content: "左上" }, {
|
|
3680
3695
|
default: B(() => [
|
|
3681
3696
|
O("div", {
|
|
3682
3697
|
class: "icon icon-top-left",
|
|
@@ -3686,7 +3701,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3686
3701
|
_: 1
|
|
3687
3702
|
/* STABLE */
|
|
3688
3703
|
}),
|
|
3689
|
-
R(v(
|
|
3704
|
+
R(v(me), { content: "上" }, {
|
|
3690
3705
|
default: B(() => [
|
|
3691
3706
|
O("div", {
|
|
3692
3707
|
class: "icon icon-top",
|
|
@@ -3696,7 +3711,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3696
3711
|
_: 1
|
|
3697
3712
|
/* STABLE */
|
|
3698
3713
|
}),
|
|
3699
|
-
R(v(
|
|
3714
|
+
R(v(me), { content: "右上" }, {
|
|
3700
3715
|
default: B(() => [
|
|
3701
3716
|
O("div", {
|
|
3702
3717
|
class: "icon icon-top-right",
|
|
@@ -3706,7 +3721,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3706
3721
|
_: 1
|
|
3707
3722
|
/* STABLE */
|
|
3708
3723
|
}),
|
|
3709
|
-
R(v(
|
|
3724
|
+
R(v(me), { content: "左" }, {
|
|
3710
3725
|
default: B(() => [
|
|
3711
3726
|
O("div", {
|
|
3712
3727
|
class: "icon icon-left",
|
|
@@ -3716,7 +3731,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3716
3731
|
_: 1
|
|
3717
3732
|
/* STABLE */
|
|
3718
3733
|
}),
|
|
3719
|
-
R(v(
|
|
3734
|
+
R(v(me), { content: "自动" }, {
|
|
3720
3735
|
default: B(() => [
|
|
3721
3736
|
O("div", {
|
|
3722
3737
|
class: "icon icon-auto",
|
|
@@ -3726,7 +3741,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3726
3741
|
_: 1
|
|
3727
3742
|
/* STABLE */
|
|
3728
3743
|
}),
|
|
3729
|
-
R(v(
|
|
3744
|
+
R(v(me), { content: "右" }, {
|
|
3730
3745
|
default: B(() => [
|
|
3731
3746
|
O("div", {
|
|
3732
3747
|
class: "icon icon-right",
|
|
@@ -3736,7 +3751,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3736
3751
|
_: 1
|
|
3737
3752
|
/* STABLE */
|
|
3738
3753
|
}),
|
|
3739
|
-
R(v(
|
|
3754
|
+
R(v(me), { content: "左下" }, {
|
|
3740
3755
|
default: B(() => [
|
|
3741
3756
|
O("div", {
|
|
3742
3757
|
class: "icon icon-bottom-left",
|
|
@@ -3746,7 +3761,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3746
3761
|
_: 1
|
|
3747
3762
|
/* STABLE */
|
|
3748
3763
|
}),
|
|
3749
|
-
R(v(
|
|
3764
|
+
R(v(me), { content: "下" }, {
|
|
3750
3765
|
default: B(() => [
|
|
3751
3766
|
O("div", {
|
|
3752
3767
|
class: "icon icon-bottom",
|
|
@@ -3756,7 +3771,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3756
3771
|
_: 1
|
|
3757
3772
|
/* STABLE */
|
|
3758
3773
|
}),
|
|
3759
|
-
R(v(
|
|
3774
|
+
R(v(me), { content: "右下" }, {
|
|
3760
3775
|
default: B(() => [
|
|
3761
3776
|
O("div", {
|
|
3762
3777
|
class: "icon icon-bottom-right",
|
|
@@ -3771,7 +3786,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3771
3786
|
/* NEED_HYDRATION */
|
|
3772
3787
|
));
|
|
3773
3788
|
}
|
|
3774
|
-
}), zp = /* @__PURE__ */ Ce(Wp, [["__scopeId", "data-v-6d1b5d7b"]]), qp = (t) => (
|
|
3789
|
+
}), zp = /* @__PURE__ */ Ce(Wp, [["__scopeId", "data-v-6d1b5d7b"]]), qp = (t) => (sr("data-v-866a3799"), t = t(), ar(), t), Jp = { class: "video-wrapper" }, Kp = { class: "video-top" }, Gp = { class: "video-top_l" }, Xp = { class: "video-title-wrapper" }, Zp = { class: "video-title" }, Yp = { class: "video-top_r" }, ef = {
|
|
3775
3790
|
key: 0,
|
|
3776
3791
|
class: "play-status"
|
|
3777
3792
|
}, tf = { class: "video-bottom" }, nf = /* @__PURE__ */ qp(() => /* @__PURE__ */ O(
|
|
@@ -3794,7 +3809,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3794
3809
|
},
|
|
3795
3810
|
emits: ["close", "directionControl", "zoomControl"],
|
|
3796
3811
|
setup(t, { emit: e }) {
|
|
3797
|
-
|
|
3812
|
+
mr({
|
|
3798
3813
|
muted: import("@das-fed/ui/packages/icons/muted"),
|
|
3799
3814
|
volume: import("@das-fed/ui/packages/icons/volume"),
|
|
3800
3815
|
screenshot: import("@das-fed/ui/packages/icons/screenshot"),
|
|
@@ -3802,23 +3817,23 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3802
3817
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
3803
3818
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
3804
3819
|
});
|
|
3805
|
-
const n = t, o = e, r =
|
|
3820
|
+
const n = t, o = e, r = E(!0), s = E(), a = E(!1), l = E(), c = H(() => {
|
|
3806
3821
|
var y;
|
|
3807
3822
|
return (y = l.value) == null ? void 0 : y.video;
|
|
3808
|
-
}), i =
|
|
3823
|
+
}), i = E(!1), u = E(!0), h = (y) => {
|
|
3809
3824
|
s.value = y, s.value.on(window.mpegts.Events.ERROR, (w) => {
|
|
3810
3825
|
});
|
|
3811
3826
|
}, d = () => {
|
|
3812
3827
|
r.value = !r.value, s.value && (s.value.muted = r.value);
|
|
3813
3828
|
}, p = () => {
|
|
3814
3829
|
a.value = !a.value;
|
|
3815
|
-
}, g =
|
|
3830
|
+
}, g = E(""), A = () => {
|
|
3816
3831
|
const y = document.createElement("canvas");
|
|
3817
3832
|
if (c.value) {
|
|
3818
3833
|
y.width = c.value.clientWidth, y.height = c.value.clientHeight;
|
|
3819
3834
|
const w = y.getContext("2d");
|
|
3820
3835
|
w == null || w.drawImage(c.value, 0, 0, y.width, y.height);
|
|
3821
|
-
const C = y.toDataURL("image/jpg"), k = `【${n.title}】${
|
|
3836
|
+
const C = y.toDataURL("image/jpg"), k = `【${n.title}】${Cn().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
3822
3837
|
if (g.value = C, "download" in document.createElement("a")) {
|
|
3823
3838
|
const I = document.createElement("a");
|
|
3824
3839
|
I.download = k, I.style.display = "none", I.href = C, document.body.appendChild(I), document.body.appendChild(y), I.click(), URL.revokeObjectURL(I.href), document.body.removeChild(I), document.body.removeChild(y);
|
|
@@ -3826,7 +3841,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3826
3841
|
}
|
|
3827
3842
|
}, m = (y) => {
|
|
3828
3843
|
o("directionControl", y);
|
|
3829
|
-
},
|
|
3844
|
+
}, f = (y) => {
|
|
3830
3845
|
o("zoomControl", y);
|
|
3831
3846
|
}, _ = (y) => n.authType.includes(y);
|
|
3832
3847
|
return X(
|
|
@@ -3871,7 +3886,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3871
3886
|
});
|
|
3872
3887
|
}
|
|
3873
3888
|
), (y, w) => ($(), W("div", Jp, [
|
|
3874
|
-
R(v(
|
|
3889
|
+
R(v(vr), {
|
|
3875
3890
|
spinning: n.loading,
|
|
3876
3891
|
type: "component",
|
|
3877
3892
|
tip: "加载中..."
|
|
@@ -3894,13 +3909,13 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3894
3909
|
j(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
3895
3910
|
])
|
|
3896
3911
|
]),
|
|
3897
|
-
n.videoUrl && u.value ? ($(), F(v(
|
|
3912
|
+
n.videoUrl && u.value ? ($(), F(v(oa), {
|
|
3898
3913
|
key: 0,
|
|
3899
3914
|
type: "flv",
|
|
3900
3915
|
ref_key: "dasLivePlayerRef",
|
|
3901
3916
|
ref: l,
|
|
3902
3917
|
muted: r.value,
|
|
3903
|
-
onLoaded:
|
|
3918
|
+
onLoaded: h,
|
|
3904
3919
|
src: n.videoUrl
|
|
3905
3920
|
}, null, 8, ["muted", "src"])) : j("v-if", !0),
|
|
3906
3921
|
O("div", tf, [
|
|
@@ -3913,7 +3928,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3913
3928
|
onDblclick: w[2] || (w[2] = ue((C) => C.stopPropagation(), ["stop"]))
|
|
3914
3929
|
},
|
|
3915
3930
|
[
|
|
3916
|
-
R(v(
|
|
3931
|
+
R(v(me), { content: "声音" }, {
|
|
3917
3932
|
default: B(() => [
|
|
3918
3933
|
R(v(qe), {
|
|
3919
3934
|
class: "icon icon-volume",
|
|
@@ -3924,7 +3939,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3924
3939
|
_: 1
|
|
3925
3940
|
/* STABLE */
|
|
3926
3941
|
}),
|
|
3927
|
-
R(v(
|
|
3942
|
+
R(v(me), { content: "截图" }, {
|
|
3928
3943
|
default: B(() => [
|
|
3929
3944
|
R(v(qe), {
|
|
3930
3945
|
class: "icon icon-screenshot",
|
|
@@ -3935,7 +3950,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3935
3950
|
_: 1
|
|
3936
3951
|
/* STABLE */
|
|
3937
3952
|
}),
|
|
3938
|
-
_("control") ? ($(), F(v(
|
|
3953
|
+
_("control") ? ($(), F(v(me), {
|
|
3939
3954
|
key: 0,
|
|
3940
3955
|
content: "聚焦-"
|
|
3941
3956
|
}, {
|
|
@@ -3944,13 +3959,13 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3944
3959
|
key: 0,
|
|
3945
3960
|
class: "icon icon-shrink",
|
|
3946
3961
|
icon: "shrink",
|
|
3947
|
-
onClick: w[0] || (w[0] = ue((C) =>
|
|
3962
|
+
onClick: w[0] || (w[0] = ue((C) => f("zoomOut"), ["stop"]))
|
|
3948
3963
|
})) : j("v-if", !0)
|
|
3949
3964
|
]),
|
|
3950
3965
|
_: 1
|
|
3951
3966
|
/* STABLE */
|
|
3952
3967
|
})) : j("v-if", !0),
|
|
3953
|
-
_("control") ? ($(), F(v(
|
|
3968
|
+
_("control") ? ($(), F(v(me), {
|
|
3954
3969
|
key: 1,
|
|
3955
3970
|
content: "聚焦+"
|
|
3956
3971
|
}, {
|
|
@@ -3959,13 +3974,13 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
3959
3974
|
key: 0,
|
|
3960
3975
|
class: "icon icon-enlarge",
|
|
3961
3976
|
icon: "enlarge",
|
|
3962
|
-
onClick: w[1] || (w[1] = ue((C) =>
|
|
3977
|
+
onClick: w[1] || (w[1] = ue((C) => f("zoomIn"), ["stop"]))
|
|
3963
3978
|
})) : j("v-if", !0)
|
|
3964
3979
|
]),
|
|
3965
3980
|
_: 1
|
|
3966
3981
|
/* STABLE */
|
|
3967
3982
|
})) : j("v-if", !0),
|
|
3968
|
-
_("control") ? ($(), F(v(
|
|
3983
|
+
_("control") ? ($(), F(v(me), {
|
|
3969
3984
|
key: 2,
|
|
3970
3985
|
content: "方向控制"
|
|
3971
3986
|
}, {
|
|
@@ -4008,7 +4023,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
4008
4023
|
}) {
|
|
4009
4024
|
const {
|
|
4010
4025
|
deviceInfo: n
|
|
4011
|
-
} =
|
|
4026
|
+
} = Es(t), o = E(!1), r = E(""), s = async () => {
|
|
4012
4027
|
var u;
|
|
4013
4028
|
if (!((u = n.value) != null && u.deviceId)) return;
|
|
4014
4029
|
o.value = !0;
|
|
@@ -4016,16 +4031,16 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
4016
4031
|
productId: n.value.productId,
|
|
4017
4032
|
deviceId: n.value.deviceId
|
|
4018
4033
|
});
|
|
4019
|
-
c || (r.value =
|
|
4034
|
+
c || (r.value = Vs(i == null ? void 0 : i.wsFlvStreamURL)), o.value = !1;
|
|
4020
4035
|
}, a = (c) => {
|
|
4021
|
-
|
|
4036
|
+
Xo({
|
|
4022
4037
|
productId: n.value.productId,
|
|
4023
4038
|
deviceId: n.value.deviceId,
|
|
4024
4039
|
direction: c,
|
|
4025
4040
|
zoom: ""
|
|
4026
4041
|
});
|
|
4027
4042
|
}, l = (c) => {
|
|
4028
|
-
|
|
4043
|
+
Xo({
|
|
4029
4044
|
productId: n.value.productId,
|
|
4030
4045
|
deviceId: n.value.deviceId,
|
|
4031
4046
|
direction: "",
|
|
@@ -4047,7 +4062,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
|
|
|
4047
4062
|
}
|
|
4048
4063
|
});
|
|
4049
4064
|
function cf(t) {
|
|
4050
|
-
const e =
|
|
4065
|
+
const e = E(0), n = E(), {
|
|
4051
4066
|
toggle: o,
|
|
4052
4067
|
isFullscreen: r
|
|
4053
4068
|
} = ht(n);
|
|
@@ -4070,10 +4085,10 @@ function cf(t) {
|
|
|
4070
4085
|
videoUrl: c,
|
|
4071
4086
|
onDirectionControl: i,
|
|
4072
4087
|
onZoomControl: u,
|
|
4073
|
-
loading:
|
|
4088
|
+
loading: h
|
|
4074
4089
|
}) => R(sf, {
|
|
4075
4090
|
type: "live",
|
|
4076
|
-
loading:
|
|
4091
|
+
loading: h,
|
|
4077
4092
|
videoUrl: c,
|
|
4078
4093
|
title: l.deviceName,
|
|
4079
4094
|
onDirectionControl: i,
|
|
@@ -4100,10 +4115,10 @@ const lf = /* @__PURE__ */ O(
|
|
|
4100
4115
|
closeCallback: {}
|
|
4101
4116
|
},
|
|
4102
4117
|
setup(t) {
|
|
4103
|
-
|
|
4118
|
+
mr({
|
|
4104
4119
|
fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
|
|
4105
4120
|
});
|
|
4106
|
-
const e = t, n =
|
|
4121
|
+
const e = t, n = E(!0), { render: o, toggleFullscreen: r } = cf(e), s = H(() => {
|
|
4107
4122
|
let a = {};
|
|
4108
4123
|
switch (e.gridNum) {
|
|
4109
4124
|
case 1:
|
|
@@ -4118,7 +4133,7 @@ const lf = /* @__PURE__ */ O(
|
|
|
4118
4133
|
}
|
|
4119
4134
|
return a;
|
|
4120
4135
|
});
|
|
4121
|
-
return (a, l) => ($(), F(v(
|
|
4136
|
+
return (a, l) => ($(), F(v(Nn), {
|
|
4122
4137
|
size: "mini",
|
|
4123
4138
|
title: "视频监控",
|
|
4124
4139
|
"custom-class": `das-linakge-video-dialog ${s.value}`,
|
|
@@ -4133,7 +4148,7 @@ const lf = /* @__PURE__ */ O(
|
|
|
4133
4148
|
}, {
|
|
4134
4149
|
header: B(() => [
|
|
4135
4150
|
lf,
|
|
4136
|
-
R(v(
|
|
4151
|
+
R(v(me), { content: "页面全屏" }, {
|
|
4137
4152
|
default: B(() => [
|
|
4138
4153
|
R(v(qe), {
|
|
4139
4154
|
class: "icon",
|
|
@@ -4158,13 +4173,13 @@ const lf = /* @__PURE__ */ O(
|
|
|
4158
4173
|
return new Promise((o) => {
|
|
4159
4174
|
let r = document.body.querySelector("#video-dialog");
|
|
4160
4175
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4161
|
-
const a =
|
|
4176
|
+
const a = he(uf, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4162
4177
|
Vt(null, r), document.body.removeChild(r), o(null);
|
|
4163
4178
|
} });
|
|
4164
4179
|
Vt(a, r);
|
|
4165
4180
|
});
|
|
4166
4181
|
}, pf = () => {
|
|
4167
|
-
const t =
|
|
4182
|
+
const t = E(4), e = E([]), n = E(null), o = async (s) => {
|
|
4168
4183
|
const [a, l] = await jp(s).run();
|
|
4169
4184
|
if (!a)
|
|
4170
4185
|
return l;
|
|
@@ -4173,17 +4188,17 @@ const lf = /* @__PURE__ */ O(
|
|
|
4173
4188
|
code: "strategy",
|
|
4174
4189
|
showBtn: !1
|
|
4175
4190
|
});
|
|
4176
|
-
a || !l || !l.length || !l.find((i) => i.code === "strategy.linkageModel") || n.value || (n.value = new
|
|
4191
|
+
a || !l || !l.length || !l.find((i) => i.code === "strategy.linkageModel") || n.value || (n.value = new Hn({
|
|
4177
4192
|
url: "/api/strategy/linkage-strategy/v1/video-popup/subscribe",
|
|
4178
4193
|
params: { project: s },
|
|
4179
4194
|
message: async (i) => {
|
|
4180
4195
|
var u;
|
|
4181
4196
|
if ((i == null ? void 0 : i.project) === s) {
|
|
4182
4197
|
t.value = i.layout;
|
|
4183
|
-
let
|
|
4198
|
+
let h = {
|
|
4184
4199
|
projectId: s,
|
|
4185
4200
|
deviceIds: i == null ? void 0 : i.deviceId
|
|
4186
|
-
}, p = (await o(
|
|
4201
|
+
}, p = (await o(h)).map((g) => {
|
|
4187
4202
|
let A = g.lookupOrOperation == 1;
|
|
4188
4203
|
return {
|
|
4189
4204
|
id: g.id,
|
|
@@ -4222,7 +4237,7 @@ class Ke extends Error {
|
|
|
4222
4237
|
super(`${e}: Status code '${n}'`), this.statusCode = n, this.__proto__ = o;
|
|
4223
4238
|
}
|
|
4224
4239
|
}
|
|
4225
|
-
class
|
|
4240
|
+
class Yn extends Error {
|
|
4226
4241
|
/** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.
|
|
4227
4242
|
*
|
|
4228
4243
|
* @param {string} errorMessage A descriptive error message.
|
|
@@ -4275,7 +4290,7 @@ class gf extends Error {
|
|
|
4275
4290
|
super(e), this.transport = n, this.errorType = "FailedToStartTransportError", this.__proto__ = o;
|
|
4276
4291
|
}
|
|
4277
4292
|
}
|
|
4278
|
-
class
|
|
4293
|
+
class Zo extends Error {
|
|
4279
4294
|
/** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}.
|
|
4280
4295
|
*
|
|
4281
4296
|
* @param {string} message A descriptive error message.
|
|
@@ -4296,7 +4311,7 @@ class mf extends Error {
|
|
|
4296
4311
|
super(e), this.innerErrors = n, this.__proto__ = o;
|
|
4297
4312
|
}
|
|
4298
4313
|
}
|
|
4299
|
-
class
|
|
4314
|
+
class as {
|
|
4300
4315
|
constructor(e, n, o) {
|
|
4301
4316
|
this.statusCode = e, this.statusText = n, this.content = o;
|
|
4302
4317
|
}
|
|
@@ -4396,7 +4411,7 @@ function Ze(t) {
|
|
|
4396
4411
|
return t && typeof ArrayBuffer < "u" && (t instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
|
|
4397
4412
|
t.constructor && t.constructor.name === "ArrayBuffer");
|
|
4398
4413
|
}
|
|
4399
|
-
async function
|
|
4414
|
+
async function is(t, e, n, o, r, s) {
|
|
4400
4415
|
const a = {}, [l, c] = pt();
|
|
4401
4416
|
a[l] = c, t.log(b.Trace, `(${e} transport) sending data. ${Lt(r, s.logMessageContent)}.`);
|
|
4402
4417
|
const i = Ze(r) ? "arraybuffer" : "text", u = await n.post(o, {
|
|
@@ -4477,10 +4492,10 @@ function Cf() {
|
|
|
4477
4492
|
function If() {
|
|
4478
4493
|
return ne.isNode ? "NodeJS" : "Browser";
|
|
4479
4494
|
}
|
|
4480
|
-
function
|
|
4495
|
+
function mn(t) {
|
|
4481
4496
|
return t.stack ? t.stack : t.message ? t.message : `${t}`;
|
|
4482
4497
|
}
|
|
4483
|
-
function
|
|
4498
|
+
function Tf() {
|
|
4484
4499
|
if (typeof globalThis < "u")
|
|
4485
4500
|
return globalThis;
|
|
4486
4501
|
if (typeof self < "u")
|
|
@@ -4491,13 +4506,13 @@ function Ef() {
|
|
|
4491
4506
|
return global;
|
|
4492
4507
|
throw new Error("could not find global");
|
|
4493
4508
|
}
|
|
4494
|
-
class
|
|
4509
|
+
class Ef extends sn {
|
|
4495
4510
|
constructor(e) {
|
|
4496
4511
|
if (super(), this._logger = e, typeof fetch > "u" || ne.isNode) {
|
|
4497
4512
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
4498
4513
|
this._jar = new (n("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = n("node-fetch") : this._fetchType = fetch, this._fetchType = n("fetch-cookie")(this._fetchType, this._jar);
|
|
4499
4514
|
} else
|
|
4500
|
-
this._fetchType = fetch.bind(
|
|
4515
|
+
this._fetchType = fetch.bind(Tf());
|
|
4501
4516
|
if (typeof AbortController > "u") {
|
|
4502
4517
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
4503
4518
|
this._abortControllerType = n("abort-controller");
|
|
@@ -4521,7 +4536,7 @@ class Sf extends sn {
|
|
|
4521
4536
|
if (e.timeout) {
|
|
4522
4537
|
const c = e.timeout;
|
|
4523
4538
|
r = setTimeout(() => {
|
|
4524
|
-
n.abort(), this._logger.log(b.Warning, "Timeout from HTTP request."), o = new
|
|
4539
|
+
n.abort(), this._logger.log(b.Warning, "Timeout from HTTP request."), o = new Yn();
|
|
4525
4540
|
}, c);
|
|
4526
4541
|
}
|
|
4527
4542
|
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Ze(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
@@ -4546,18 +4561,18 @@ class Sf extends sn {
|
|
|
4546
4561
|
r && clearTimeout(r), e.abortSignal && (e.abortSignal.onabort = null);
|
|
4547
4562
|
}
|
|
4548
4563
|
if (!s.ok) {
|
|
4549
|
-
const c = await
|
|
4564
|
+
const c = await Yo(s, "text");
|
|
4550
4565
|
throw new Ke(c || s.statusText, s.status);
|
|
4551
4566
|
}
|
|
4552
|
-
const l = await
|
|
4553
|
-
return new
|
|
4567
|
+
const l = await Yo(s, e.responseType);
|
|
4568
|
+
return new as(s.status, s.statusText, l);
|
|
4554
4569
|
}
|
|
4555
4570
|
getCookieString(e) {
|
|
4556
4571
|
let n = "";
|
|
4557
4572
|
return ne.isNode && this._jar && this._jar.getCookies(e, (o, r) => n = r.join("; ")), n;
|
|
4558
4573
|
}
|
|
4559
4574
|
}
|
|
4560
|
-
function
|
|
4575
|
+
function Yo(t, e) {
|
|
4561
4576
|
let n;
|
|
4562
4577
|
switch (e) {
|
|
4563
4578
|
case "arraybuffer":
|
|
@@ -4576,7 +4591,7 @@ function er(t, e) {
|
|
|
4576
4591
|
}
|
|
4577
4592
|
return n;
|
|
4578
4593
|
}
|
|
4579
|
-
class
|
|
4594
|
+
class Sf extends sn {
|
|
4580
4595
|
constructor(e) {
|
|
4581
4596
|
super(), this._logger = e;
|
|
4582
4597
|
}
|
|
@@ -4591,11 +4606,11 @@ class Tf extends sn {
|
|
|
4591
4606
|
}), e.responseType && (r.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
4592
4607
|
r.abort(), o(new $e());
|
|
4593
4608
|
}), e.timeout && (r.timeout = e.timeout), r.onload = () => {
|
|
4594
|
-
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? n(new
|
|
4609
|
+
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? n(new as(r.status, r.statusText, r.response || r.responseText)) : o(new Ke(r.response || r.responseText || r.statusText, r.status));
|
|
4595
4610
|
}, r.onerror = () => {
|
|
4596
4611
|
this._logger.log(b.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Ke(r.statusText, r.status));
|
|
4597
4612
|
}, r.ontimeout = () => {
|
|
4598
|
-
this._logger.log(b.Warning, "Timeout from HTTP request."), o(new
|
|
4613
|
+
this._logger.log(b.Warning, "Timeout from HTTP request."), o(new Yn());
|
|
4599
4614
|
}, r.send(e.content);
|
|
4600
4615
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
4601
4616
|
}
|
|
@@ -4604,9 +4619,9 @@ class kf extends sn {
|
|
|
4604
4619
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
4605
4620
|
constructor(e) {
|
|
4606
4621
|
if (super(), typeof fetch < "u" || ne.isNode)
|
|
4607
|
-
this._httpClient = new
|
|
4622
|
+
this._httpClient = new Ef(e);
|
|
4608
4623
|
else if (typeof XMLHttpRequest < "u")
|
|
4609
|
-
this._httpClient = new
|
|
4624
|
+
this._httpClient = new Sf(e);
|
|
4610
4625
|
else
|
|
4611
4626
|
throw new Error("No usable HttpClient found.");
|
|
4612
4627
|
}
|
|
@@ -4783,14 +4798,14 @@ var ee;
|
|
|
4783
4798
|
(function(t) {
|
|
4784
4799
|
t.Disconnected = "Disconnected", t.Connecting = "Connecting", t.Connected = "Connected", t.Disconnecting = "Disconnecting", t.Reconnecting = "Reconnecting";
|
|
4785
4800
|
})(ee || (ee = {}));
|
|
4786
|
-
class
|
|
4801
|
+
class eo {
|
|
4787
4802
|
/** @internal */
|
|
4788
4803
|
// Using a public static factory method means we can have a private constructor and an _internal_
|
|
4789
4804
|
// create method that can be used by HubConnectionBuilder. An "internal" constructor would just
|
|
4790
4805
|
// be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
|
|
4791
4806
|
// public parameter-less constructor.
|
|
4792
4807
|
static create(e, n, o, r, s, a, l) {
|
|
4793
|
-
return new
|
|
4808
|
+
return new eo(e, n, o, r, s, a, l);
|
|
4794
4809
|
}
|
|
4795
4810
|
constructor(e, n, o, r, s, a, l) {
|
|
4796
4811
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
@@ -4949,9 +4964,9 @@ class to {
|
|
|
4949
4964
|
invoke(e, ...n) {
|
|
4950
4965
|
const [o, r] = this._replaceStreamingParams(n), s = this._createInvocation(e, n, !1, r);
|
|
4951
4966
|
return new Promise((l, c) => {
|
|
4952
|
-
this._callbacks[s.invocationId] = (u,
|
|
4953
|
-
if (
|
|
4954
|
-
c(
|
|
4967
|
+
this._callbacks[s.invocationId] = (u, h) => {
|
|
4968
|
+
if (h) {
|
|
4969
|
+
c(h);
|
|
4955
4970
|
return;
|
|
4956
4971
|
} else u && (u.type === U.Completion ? u.error ? c(new Error(u.error)) : l(u.result) : c(new Error(`Unexpected message type: ${u.type}`)));
|
|
4957
4972
|
};
|
|
@@ -5005,7 +5020,7 @@ class to {
|
|
|
5005
5020
|
switch (o.type) {
|
|
5006
5021
|
case U.Invocation:
|
|
5007
5022
|
this._invokeClientMethod(o).catch((r) => {
|
|
5008
|
-
this._logger.log(b.Error, `Invoke client method threw error: ${
|
|
5023
|
+
this._logger.log(b.Error, `Invoke client method threw error: ${mn(r)}`);
|
|
5009
5024
|
});
|
|
5010
5025
|
break;
|
|
5011
5026
|
case U.StreamItem:
|
|
@@ -5016,7 +5031,7 @@ class to {
|
|
|
5016
5031
|
try {
|
|
5017
5032
|
r(o);
|
|
5018
5033
|
} catch (s) {
|
|
5019
|
-
this._logger.log(b.Error, `Stream callback threw error: ${
|
|
5034
|
+
this._logger.log(b.Error, `Stream callback threw error: ${mn(s)}`);
|
|
5020
5035
|
}
|
|
5021
5036
|
}
|
|
5022
5037
|
break;
|
|
@@ -5172,7 +5187,7 @@ class to {
|
|
|
5172
5187
|
try {
|
|
5173
5188
|
r(null, e);
|
|
5174
5189
|
} catch (s) {
|
|
5175
|
-
this._logger.log(b.Error, `Stream 'error' callback called with '${e}' threw error: ${
|
|
5190
|
+
this._logger.log(b.Error, `Stream 'error' callback called with '${e}' threw error: ${mn(s)}`);
|
|
5176
5191
|
}
|
|
5177
5192
|
});
|
|
5178
5193
|
}
|
|
@@ -5286,7 +5301,7 @@ class to {
|
|
|
5286
5301
|
}
|
|
5287
5302
|
}
|
|
5288
5303
|
const Rf = [0, 2e3, 1e4, 3e4, null];
|
|
5289
|
-
class
|
|
5304
|
+
class er {
|
|
5290
5305
|
constructor(e) {
|
|
5291
5306
|
this._retryDelays = e !== void 0 ? [...e, null] : Rf;
|
|
5292
5307
|
}
|
|
@@ -5319,10 +5334,10 @@ var se;
|
|
|
5319
5334
|
(function(t) {
|
|
5320
5335
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
5321
5336
|
})(se || (se = {}));
|
|
5322
|
-
var
|
|
5337
|
+
var ge;
|
|
5323
5338
|
(function(t) {
|
|
5324
5339
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
5325
|
-
})(
|
|
5340
|
+
})(ge || (ge = {}));
|
|
5326
5341
|
let Qf = class {
|
|
5327
5342
|
constructor() {
|
|
5328
5343
|
this._isAborted = !1, this.onabort = null;
|
|
@@ -5337,7 +5352,7 @@ let Qf = class {
|
|
|
5337
5352
|
return this._isAborted;
|
|
5338
5353
|
}
|
|
5339
5354
|
};
|
|
5340
|
-
class
|
|
5355
|
+
class tr {
|
|
5341
5356
|
// This is an internal type, not exported from 'index' so this is really just internal.
|
|
5342
5357
|
get pollAborted() {
|
|
5343
5358
|
return this._pollAbort.aborted;
|
|
@@ -5346,7 +5361,7 @@ class nr {
|
|
|
5346
5361
|
this._httpClient = e, this._logger = n, this._pollAbort = new Qf(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5347
5362
|
}
|
|
5348
5363
|
async connect(e, n) {
|
|
5349
|
-
if (ie.isRequired(e, "url"), ie.isRequired(n, "transferFormat"), ie.isIn(n,
|
|
5364
|
+
if (ie.isRequired(e, "url"), ie.isRequired(n, "transferFormat"), ie.isIn(n, ge, "transferFormat"), this._url = e, this._logger.log(b.Trace, "(LongPolling transport) Connecting."), n === ge.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
5350
5365
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
5351
5366
|
const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
|
|
5352
5367
|
abortSignal: this._pollAbort.signal,
|
|
@@ -5354,7 +5369,7 @@ class nr {
|
|
|
5354
5369
|
timeout: 1e5,
|
|
5355
5370
|
withCredentials: this._options.withCredentials
|
|
5356
5371
|
};
|
|
5357
|
-
n ===
|
|
5372
|
+
n === ge.Binary && (a.responseType = "arraybuffer");
|
|
5358
5373
|
const l = `${e}&_=${Date.now()}`;
|
|
5359
5374
|
this._logger.log(b.Trace, `(LongPolling transport) polling: ${l}.`);
|
|
5360
5375
|
const c = await this._httpClient.get(l, a);
|
|
@@ -5369,14 +5384,14 @@ class nr {
|
|
|
5369
5384
|
const r = await this._httpClient.get(o, n);
|
|
5370
5385
|
r.statusCode === 204 ? (this._logger.log(b.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(b.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Ke(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(b.Trace, `(LongPolling transport) data received. ${Lt(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(b.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
5371
5386
|
} catch (o) {
|
|
5372
|
-
this._running ? o instanceof
|
|
5387
|
+
this._running ? o instanceof Yn ? this._logger.log(b.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(b.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
|
|
5373
5388
|
}
|
|
5374
5389
|
} finally {
|
|
5375
5390
|
this._logger.log(b.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
|
|
5376
5391
|
}
|
|
5377
5392
|
}
|
|
5378
5393
|
async send(e) {
|
|
5379
|
-
return this._running ?
|
|
5394
|
+
return this._running ? is(this._logger, "LongPolling", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
|
|
5380
5395
|
}
|
|
5381
5396
|
async stop() {
|
|
5382
5397
|
this._logger.log(b.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
|
|
@@ -5412,9 +5427,9 @@ class jf {
|
|
|
5412
5427
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5413
5428
|
}
|
|
5414
5429
|
async connect(e, n) {
|
|
5415
|
-
return ie.isRequired(e, "url"), ie.isRequired(n, "transferFormat"), ie.isIn(n,
|
|
5430
|
+
return ie.isRequired(e, "url"), ie.isRequired(n, "transferFormat"), ie.isIn(n, ge, "transferFormat"), this._logger.log(b.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
5416
5431
|
let s = !1;
|
|
5417
|
-
if (n !==
|
|
5432
|
+
if (n !== ge.Text) {
|
|
5418
5433
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
5419
5434
|
return;
|
|
5420
5435
|
}
|
|
@@ -5448,7 +5463,7 @@ class jf {
|
|
|
5448
5463
|
});
|
|
5449
5464
|
}
|
|
5450
5465
|
async send(e) {
|
|
5451
|
-
return this._eventSource ?
|
|
5466
|
+
return this._eventSource ? is(this._logger, "SSE", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
|
|
5452
5467
|
}
|
|
5453
5468
|
stop() {
|
|
5454
5469
|
return this._close(), Promise.resolve();
|
|
@@ -5462,7 +5477,7 @@ class Nf {
|
|
|
5462
5477
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5463
5478
|
}
|
|
5464
5479
|
async connect(e, n) {
|
|
5465
|
-
ie.isRequired(e, "url"), ie.isRequired(n, "transferFormat"), ie.isIn(n,
|
|
5480
|
+
ie.isRequired(e, "url"), ie.isRequired(n, "transferFormat"), ie.isIn(n, ge, "transferFormat"), this._logger.log(b.Trace, "(WebSockets transport) Connecting.");
|
|
5466
5481
|
let o;
|
|
5467
5482
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
5468
5483
|
e = e.replace(/^http/, "ws");
|
|
@@ -5470,13 +5485,13 @@ class Nf {
|
|
|
5470
5485
|
const l = this._httpClient.getCookieString(e);
|
|
5471
5486
|
let c = !1;
|
|
5472
5487
|
if (ne.isNode || ne.isReactNative) {
|
|
5473
|
-
const i = {}, [u,
|
|
5474
|
-
i[u] =
|
|
5488
|
+
const i = {}, [u, h] = pt();
|
|
5489
|
+
i[u] = h, o && (i[Ge.Authorization] = `Bearer ${o}`), l && (i[Ge.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
|
|
5475
5490
|
headers: { ...i, ...this._headers }
|
|
5476
5491
|
});
|
|
5477
5492
|
} else
|
|
5478
5493
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
5479
|
-
a || (a = new this._webSocketConstructor(e)), n ===
|
|
5494
|
+
a || (a = new this._webSocketConstructor(e)), n === ge.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
|
|
5480
5495
|
this._logger.log(b.Information, `WebSocket connected to ${e}.`), this._webSocket = a, c = !0, r();
|
|
5481
5496
|
}, a.onerror = (i) => {
|
|
5482
5497
|
let u = null;
|
|
@@ -5515,7 +5530,7 @@ class Nf {
|
|
|
5515
5530
|
return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
|
|
5516
5531
|
}
|
|
5517
5532
|
}
|
|
5518
|
-
const
|
|
5533
|
+
const nr = 100;
|
|
5519
5534
|
class Hf {
|
|
5520
5535
|
constructor(e, n = {}) {
|
|
5521
5536
|
if (this._stopPromiseResolver = () => {
|
|
@@ -5532,7 +5547,7 @@ class Hf {
|
|
|
5532
5547
|
!ne.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : ne.isNode && !n.WebSocket && o && (n.WebSocket = o), !ne.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : ne.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new xf(n.httpClient || new kf(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
5533
5548
|
}
|
|
5534
5549
|
async start(e) {
|
|
5535
|
-
if (e = e ||
|
|
5550
|
+
if (e = e || ge.Binary, ie.isIn(e, ge, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
|
|
5536
5551
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
5537
5552
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
5538
5553
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -5544,7 +5559,7 @@ class Hf {
|
|
|
5544
5559
|
this._connectionStarted = !0;
|
|
5545
5560
|
}
|
|
5546
5561
|
send(e) {
|
|
5547
|
-
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new
|
|
5562
|
+
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new to(this.transport)), this._sendQueue.send(e));
|
|
5548
5563
|
}
|
|
5549
5564
|
async stop(e) {
|
|
5550
5565
|
if (this._connectionState === "Disconnected")
|
|
@@ -5594,12 +5609,12 @@ class Hf {
|
|
|
5594
5609
|
this._accessTokenFactory = () => s, this._httpClient._accessToken = s, this._httpClient._accessTokenFactory = void 0;
|
|
5595
5610
|
}
|
|
5596
5611
|
r++;
|
|
5597
|
-
} while (o.url && r <
|
|
5598
|
-
if (r ===
|
|
5612
|
+
} while (o.url && r < nr);
|
|
5613
|
+
if (r === nr && o.url)
|
|
5599
5614
|
throw new Error("Negotiate redirection limit exceeded.");
|
|
5600
5615
|
await this._createTransport(n, this._options.transport, o, e);
|
|
5601
5616
|
}
|
|
5602
|
-
this.transport instanceof
|
|
5617
|
+
this.transport instanceof tr && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(b.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
|
|
5603
5618
|
} catch (o) {
|
|
5604
5619
|
return this._logger.log(b.Error, "Failed to start the connection: " + o), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(o);
|
|
5605
5620
|
}
|
|
@@ -5619,10 +5634,10 @@ class Hf {
|
|
|
5619
5634
|
if (a.statusCode !== 200)
|
|
5620
5635
|
return Promise.reject(new Error(`Unexpected status code returned from negotiate '${a.statusCode}'`));
|
|
5621
5636
|
const l = JSON.parse(a.content);
|
|
5622
|
-
return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new
|
|
5637
|
+
return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Zo("Client didn't negotiate Stateful Reconnect but the server did.")) : l;
|
|
5623
5638
|
} catch (a) {
|
|
5624
5639
|
let l = "Failed to complete negotiation with the server: " + a;
|
|
5625
|
-
return a instanceof Ke && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(b.Error, l), Promise.reject(new
|
|
5640
|
+
return a instanceof Ke && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(b.Error, l), Promise.reject(new Zo(l));
|
|
5626
5641
|
}
|
|
5627
5642
|
}
|
|
5628
5643
|
_createConnectUrl(e, n) {
|
|
@@ -5644,16 +5659,16 @@ class Hf {
|
|
|
5644
5659
|
if (this.transport = u, !c) {
|
|
5645
5660
|
try {
|
|
5646
5661
|
c = await this._getNegotiationResponse(e);
|
|
5647
|
-
} catch (
|
|
5648
|
-
return Promise.reject(
|
|
5662
|
+
} catch (h) {
|
|
5663
|
+
return Promise.reject(h);
|
|
5649
5664
|
}
|
|
5650
5665
|
s = this._createConnectUrl(e, c.connectionToken);
|
|
5651
5666
|
}
|
|
5652
5667
|
try {
|
|
5653
5668
|
await this._startTransport(s, r), this.connectionId = c.connectionId;
|
|
5654
5669
|
return;
|
|
5655
|
-
} catch (
|
|
5656
|
-
if (this._logger.log(b.Error, `Failed to start the transport '${i.transport}': ${
|
|
5670
|
+
} catch (h) {
|
|
5671
|
+
if (this._logger.log(b.Error, `Failed to start the transport '${i.transport}': ${h}`), c = void 0, a.push(new gf(`${i.transport} failed: ${h}`, se[i.transport])), this._connectionState !== "Connecting") {
|
|
5657
5672
|
const d = "Failed to select transport before stop() was called.";
|
|
5658
5673
|
return this._logger.log(b.Debug, d), Promise.reject(new $e(d));
|
|
5659
5674
|
}
|
|
@@ -5673,7 +5688,7 @@ class Hf {
|
|
|
5673
5688
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5674
5689
|
return new jf(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5675
5690
|
case se.LongPolling:
|
|
5676
|
-
return new
|
|
5691
|
+
return new tr(this._httpClient, this._logger, this._options);
|
|
5677
5692
|
default:
|
|
5678
5693
|
throw new Error(`Unknown transport: ${e}.`);
|
|
5679
5694
|
}
|
|
@@ -5699,7 +5714,7 @@ class Hf {
|
|
|
5699
5714
|
if (s == null)
|
|
5700
5715
|
return this._logger.log(b.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.`);
|
|
5701
5716
|
if (Uf(n, s))
|
|
5702
|
-
if (e.transferFormats.map((l) =>
|
|
5717
|
+
if (e.transferFormats.map((l) => ge[l]).indexOf(o) >= 0) {
|
|
5703
5718
|
if (s === se.WebSockets && !this._options.WebSocket || s === se.ServerSentEvents && !this._options.EventSource)
|
|
5704
5719
|
return this._logger.log(b.Debug, `Skipping transport '${se[s]}' because it is not supported in your environment.'`), new ff(`'${se[s]}' is not supported in your environment.`, s);
|
|
5705
5720
|
this._logger.log(b.Debug, `Selecting transport '${se[s]}'.`);
|
|
@@ -5709,7 +5724,7 @@ class Hf {
|
|
|
5709
5724
|
return l;
|
|
5710
5725
|
}
|
|
5711
5726
|
} else
|
|
5712
|
-
return this._logger.log(b.Debug, `Skipping transport '${se[s]}' because it does not support the requested transfer format '${
|
|
5727
|
+
return this._logger.log(b.Debug, `Skipping transport '${se[s]}' because it does not support the requested transfer format '${ge[o]}'.`), new Error(`'${se[s]}' does not support ${ge[o]}.`);
|
|
5713
5728
|
else
|
|
5714
5729
|
return this._logger.log(b.Debug, `Skipping transport '${se[s]}' because it was disabled by the client.`), new hf(`'${se[s]}' is disabled by the client.`, s);
|
|
5715
5730
|
}
|
|
@@ -5752,7 +5767,7 @@ class Hf {
|
|
|
5752
5767
|
function Uf(t, e) {
|
|
5753
5768
|
return !t || (e & t) !== 0;
|
|
5754
5769
|
}
|
|
5755
|
-
class
|
|
5770
|
+
class to {
|
|
5756
5771
|
constructor(e) {
|
|
5757
5772
|
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new Nt(), this._transportResult = new Nt(), this._sendLoopPromise = this._sendLoop();
|
|
5758
5773
|
}
|
|
@@ -5776,7 +5791,7 @@ class no {
|
|
|
5776
5791
|
this._sendBufferedData = new Nt();
|
|
5777
5792
|
const e = this._transportResult;
|
|
5778
5793
|
this._transportResult = void 0;
|
|
5779
|
-
const n = typeof this._buffer[0] == "string" ? this._buffer.join("") :
|
|
5794
|
+
const n = typeof this._buffer[0] == "string" ? this._buffer.join("") : to._concatBuffers(this._buffer);
|
|
5780
5795
|
this._buffer.length = 0;
|
|
5781
5796
|
try {
|
|
5782
5797
|
await this._transport.send(n), e.resolve();
|
|
@@ -5807,7 +5822,7 @@ class Nt {
|
|
|
5807
5822
|
const Ff = "json";
|
|
5808
5823
|
class Vf {
|
|
5809
5824
|
constructor() {
|
|
5810
|
-
this.name = Ff, this.version = 2, this.transferFormat =
|
|
5825
|
+
this.name = Ff, this.version = 2, this.transferFormat = ge.Text;
|
|
5811
5826
|
}
|
|
5812
5827
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
5813
5828
|
*
|
|
@@ -5930,7 +5945,7 @@ class qf {
|
|
|
5930
5945
|
withAutomaticReconnect(e) {
|
|
5931
5946
|
if (this.reconnectPolicy)
|
|
5932
5947
|
throw new Error("A reconnectPolicy has already been set.");
|
|
5933
|
-
return e ? Array.isArray(e) ? this.reconnectPolicy = new
|
|
5948
|
+
return e ? Array.isArray(e) ? this.reconnectPolicy = new er(e) : this.reconnectPolicy = e : this.reconnectPolicy = new er(), this;
|
|
5934
5949
|
}
|
|
5935
5950
|
/** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
5936
5951
|
*
|
|
@@ -5962,7 +5977,7 @@ class qf {
|
|
|
5962
5977
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
5963
5978
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
5964
5979
|
const n = new Hf(this.url, e);
|
|
5965
|
-
return
|
|
5980
|
+
return eo.create(n, this.logger || Pt.instance, this.protocol || new Vf(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
5966
5981
|
}
|
|
5967
5982
|
}
|
|
5968
5983
|
function Jf(t) {
|
|
@@ -5979,14 +5994,14 @@ const Gf = () => {
|
|
|
5979
5994
|
}), t.onclose((e) => {
|
|
5980
5995
|
}), t.onreconnected(() => {
|
|
5981
5996
|
}), t;
|
|
5982
|
-
}, an = "v1", Xf = et(`/api/graphics-engine/component/${an}`, (t) => (t.customErrorMessage = () => "", t)), Zf = et(`/api/portal/manager/${an}`, (t) => (t.customErrorMessage = () => "", t)), Yf = et(`/api/speech-base/speech/${an}`, (t) => (t.customErrorMessage = () => "", t)),
|
|
5997
|
+
}, an = "v1", Xf = et(`/api/graphics-engine/component/${an}`, (t) => (t.customErrorMessage = () => "", t)), Zf = et(`/api/portal/manager/${an}`, (t) => (t.customErrorMessage = () => "", t)), Yf = et(`/api/speech-base/speech/${an}`, (t) => (t.customErrorMessage = () => "", t)), or = Xf.get("/component/client/heartbeat"), eh = Zf.get("/basics/by-alias");
|
|
5983
5998
|
Yf.post("/control/callBack");
|
|
5984
|
-
const th = et(`/api/tool/event-bus/${an}/`),
|
|
5999
|
+
const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.get("/permissionset/application"), oh = () => {
|
|
5985
6000
|
const t = Dt(), { entryApp: e } = qt.hooks.useEntryApp(), { entryMenu: n } = qt.hooks.useEntryMenu();
|
|
5986
6001
|
let o = null;
|
|
5987
6002
|
return Ve(async () => {
|
|
5988
|
-
var
|
|
5989
|
-
let r = ((
|
|
6003
|
+
var f;
|
|
6004
|
+
let r = ((f = t.meta) == null ? void 0 : f.showLayout) ?? !0, { showLayout: s = !0 } = t.query;
|
|
5990
6005
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
5991
6006
|
await en();
|
|
5992
6007
|
const a = (_) => {
|
|
@@ -6002,49 +6017,49 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6002
6017
|
const k = _.filter((I) => I.code).map((I) => I.code);
|
|
6003
6018
|
if (_.length) {
|
|
6004
6019
|
if (y.currentSubAppCode) {
|
|
6005
|
-
const
|
|
6006
|
-
if (
|
|
6007
|
-
n({ currentMenu:
|
|
6020
|
+
const S = y.currentSubApp.menus ?? [], T = Me(S).find((x) => k.includes(x.code));
|
|
6021
|
+
if (T) {
|
|
6022
|
+
n({ currentMenu: T });
|
|
6008
6023
|
return;
|
|
6009
6024
|
}
|
|
6010
6025
|
}
|
|
6011
|
-
const I = w.find((
|
|
6026
|
+
const I = w.find((S) => k.includes(S.code));
|
|
6012
6027
|
I && e({ microApp: I });
|
|
6013
6028
|
}
|
|
6014
6029
|
}
|
|
6015
6030
|
if (typeof _ == "string")
|
|
6016
6031
|
if (_.includes(":")) {
|
|
6017
|
-
const k = _.split(":"), [I = "",
|
|
6032
|
+
const k = _.split(":"), [I = "", S = ""] = k;
|
|
6018
6033
|
if (!I) return;
|
|
6019
|
-
const
|
|
6020
|
-
|
|
6034
|
+
const T = w.find((x) => x.code === I);
|
|
6035
|
+
T && e({ microApp: T, menuCode: S });
|
|
6021
6036
|
} else {
|
|
6022
|
-
const k = _, I = w.find((
|
|
6037
|
+
const k = _, I = w.find((S) => S.code === k);
|
|
6023
6038
|
if (I)
|
|
6024
6039
|
e({ microApp: I });
|
|
6025
6040
|
else {
|
|
6026
|
-
const [
|
|
6027
|
-
if (
|
|
6028
|
-
const x = w.find((Q) => Q.code ===
|
|
6041
|
+
const [S, T] = await nh().run({ menuCode: k });
|
|
6042
|
+
if (S) return;
|
|
6043
|
+
const x = w.find((Q) => Q.code === T);
|
|
6029
6044
|
x && e({ microApp: x, menuCode: k });
|
|
6030
6045
|
}
|
|
6031
6046
|
}
|
|
6032
6047
|
};
|
|
6033
|
-
let c =
|
|
6048
|
+
let c = E(!0);
|
|
6034
6049
|
const i = (_) => {
|
|
6035
6050
|
setTimeout(async () => {
|
|
6036
6051
|
var y, w;
|
|
6037
6052
|
if (c.value) {
|
|
6038
6053
|
const [C, k] = await eh().run({}, { params: { aliasName: _.actionValue } });
|
|
6039
|
-
C ? await
|
|
6054
|
+
C ? await vn().run({
|
|
6040
6055
|
uniqueId: _.uniqueId,
|
|
6041
6056
|
status: 0,
|
|
6042
6057
|
errorMsg: "未找到" + _.actionValue
|
|
6043
|
-
}) : k.length ? (k.length > 1 ? l(k) : l((y = k[0]) == null ? void 0 : y.code), await
|
|
6058
|
+
}) : k.length ? (k.length > 1 ? l(k) : l((y = k[0]) == null ? void 0 : y.code), await vn().run({
|
|
6044
6059
|
uniqueId: _.uniqueId,
|
|
6045
6060
|
status: 1,
|
|
6046
6061
|
targetName: (w = k[0]) == null ? void 0 : w.name
|
|
6047
|
-
})) : await
|
|
6062
|
+
})) : await vn().run({
|
|
6048
6063
|
uniqueId: _.uniqueId,
|
|
6049
6064
|
status: 0,
|
|
6050
6065
|
errorMsg: "未找到" + _.actionValue
|
|
@@ -6053,26 +6068,26 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6053
6068
|
c.value = !0;
|
|
6054
6069
|
}, 2e3);
|
|
6055
6070
|
}, u = (_) => {
|
|
6056
|
-
const y =
|
|
6071
|
+
const y = Bn(), w = JSON.parse(atob(y.split(".")[1])).sub;
|
|
6057
6072
|
Gf().on(`${_}:${w}`, async function(k) {
|
|
6058
6073
|
let I = a(k);
|
|
6059
6074
|
if (I)
|
|
6060
6075
|
I.uniqueId && I.actionKey == "switch-menu" && i(I);
|
|
6061
6076
|
else if (k.includes("openAppMenu=")) {
|
|
6062
|
-
const
|
|
6063
|
-
l(
|
|
6077
|
+
const S = k.split("="), T = JSON.parse(S[1]);
|
|
6078
|
+
l(T);
|
|
6064
6079
|
} else k.includes("iocIsRun") && (c.value = !1);
|
|
6065
6080
|
});
|
|
6066
|
-
},
|
|
6067
|
-
|
|
6081
|
+
}, h = E(""), [d, p] = await or().run();
|
|
6082
|
+
h.value = p, u(h.value);
|
|
6068
6083
|
const g = async () => {
|
|
6069
|
-
const [_, y] = await
|
|
6070
|
-
y !==
|
|
6084
|
+
const [_, y] = await or().run();
|
|
6085
|
+
y !== h.value && (h.value = y, u(h.value));
|
|
6071
6086
|
};
|
|
6072
6087
|
o = setInterval(() => {
|
|
6073
6088
|
g();
|
|
6074
6089
|
}, 72e5);
|
|
6075
|
-
const A =
|
|
6090
|
+
const A = E("online"), m = (_) => {
|
|
6076
6091
|
_ === "online" && A.value === "offline" && setTimeout(() => {
|
|
6077
6092
|
g();
|
|
6078
6093
|
}, 5e3), A.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
@@ -6081,7 +6096,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6081
6096
|
}), Zt(() => {
|
|
6082
6097
|
o && clearInterval(o);
|
|
6083
6098
|
}), {};
|
|
6084
|
-
}, cn = "v1", rh = ft(`/api/fms/report/${cn}`),
|
|
6099
|
+
}, cn = "v1", rh = ft(`/api/fms/report/${cn}`), no = ft(`/api/emergency/manage/${cn}`), sh = jn.get("/permissionset/user-portal-menu"), cs = ft(`/api/alarm/config/${cn}`), ah = ft(`/api/alarm/run-time/${cn}`), ih = cs.get("/alarm-definition/status-option"), ch = ah.post("/record/handling"), lh = cs.get("/alarm-level/prompttone"), uh = rh.get("/alarm/rule/list"), dh = hr.get("/controller/space-children-all-type"), ph = hr.get("/controller/fuzzy-area-small"), fh = no.get("/emergency-event/event/type"), hh = no.get("/emergency-event/event/level"), gh = no.get("/emergency-plan/plan/handle-time"), mh = { class: "handle-alarm-container" }, vh = { class: "select-check" }, Ah = { class: "form-box" }, yh = { class: "select-check" }, _h = { style: { "margin-left": "8px" } }, bh = { class: "foot-btn-box" }, wh = {
|
|
6085
6100
|
name: "handleAlarm"
|
|
6086
6101
|
}, Ch = /* @__PURE__ */ oe({
|
|
6087
6102
|
...wh,
|
|
@@ -6091,9 +6106,9 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6091
6106
|
},
|
|
6092
6107
|
emits: ["emitFn"],
|
|
6093
6108
|
setup(t, { expose: e, emit: n }) {
|
|
6094
|
-
const o = t, r = n, s =
|
|
6095
|
-
|
|
6096
|
-
const i =
|
|
6109
|
+
const o = t, r = n, s = E(!1), a = E(null), l = E(0), c = E(!1);
|
|
6110
|
+
E("");
|
|
6111
|
+
const i = E({
|
|
6097
6112
|
processTypeId: "confirm",
|
|
6098
6113
|
// 处理类型
|
|
6099
6114
|
reason: "",
|
|
@@ -6119,7 +6134,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6119
6134
|
// 处置时限
|
|
6120
6135
|
interval: 2
|
|
6121
6136
|
// 时限刻度 默认选择“时”
|
|
6122
|
-
}), u =
|
|
6137
|
+
}), u = E({
|
|
6123
6138
|
processTypeId: "",
|
|
6124
6139
|
// 处理类型 必填
|
|
6125
6140
|
reason: "",
|
|
@@ -6139,21 +6154,21 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6139
6154
|
// 事件等级id
|
|
6140
6155
|
timeLimit: ""
|
|
6141
6156
|
// 处置时限
|
|
6142
|
-
}),
|
|
6157
|
+
}), h = E(!1), d = E([]), p = E([]), g = E([
|
|
6143
6158
|
{ id: 2, name: N("时").value },
|
|
6144
6159
|
{ id: 1, name: N("分").value },
|
|
6145
6160
|
{ id: 3, name: N("不限").value }
|
|
6146
|
-
]), A =
|
|
6147
|
-
|
|
6148
|
-
const C =
|
|
6161
|
+
]), A = E([]), m = E(""), f = E("告警对象位置"), _ = E(""), y = E([]), w = E("");
|
|
6162
|
+
E("[]");
|
|
6163
|
+
const C = E(!0), k = E(!0), I = async (D) => {
|
|
6149
6164
|
const P = { name: "1" };
|
|
6150
6165
|
D != null && D.id && (P.spaceId = D.id);
|
|
6151
6166
|
const [L, Pe] = await dh(P).run();
|
|
6152
6167
|
return L ? {} : Pe;
|
|
6153
|
-
},
|
|
6168
|
+
}, S = async (D) => {
|
|
6154
6169
|
const P = { name: D || "" }, [L, Pe] = await ph(P).run();
|
|
6155
6170
|
return L ? {} : Pe;
|
|
6156
|
-
},
|
|
6171
|
+
}, T = E(!0), x = E(!0), Q = E([]), V = async () => {
|
|
6157
6172
|
const [D, P] = await uh().run({ pageIndex: -1, pageSize: -1 });
|
|
6158
6173
|
if (D) return {};
|
|
6159
6174
|
Q.value = P.data.filter((L) => L.status), Q.value.length > 0 && (i.value.workOrderRules = Q.value[0].id);
|
|
@@ -6169,7 +6184,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6169
6184
|
), X(
|
|
6170
6185
|
x,
|
|
6171
6186
|
(D) => {
|
|
6172
|
-
D ? (i.value.reportTheme = N("告警对象").value,
|
|
6187
|
+
D ? (i.value.reportTheme = N("告警对象").value, T.value = !0) : (_.value = "请输入", i.value.reportTheme = "", T.value = !1);
|
|
6173
6188
|
},
|
|
6174
6189
|
{ immediate: !0 }
|
|
6175
6190
|
);
|
|
@@ -6181,20 +6196,20 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6181
6196
|
}, Ie = (D, P) => {
|
|
6182
6197
|
P.length > 0 && (m.value = P[0].path), i.value.reportPosition = D, w.value = "";
|
|
6183
6198
|
}, Rt = (D) => {
|
|
6184
|
-
D && (u.value.reportPosition = "", m.value = ""), D ? (i.value.reportPosition = null, m.value = "",
|
|
6199
|
+
D && (u.value.reportPosition = "", m.value = ""), D ? (i.value.reportPosition = null, m.value = "", f.value = "告警对象位置") : (i.value.reportPosition = null, m.value = "", f.value = "请选择");
|
|
6185
6200
|
}, pe = (D) => {
|
|
6186
6201
|
D && (u.value.reportTheme = ""), D ? (i.value.reportTheme = "", _.value = "告警对象") : (i.value.reportTheme = "", _.value = "请输入");
|
|
6187
6202
|
}, re = () => {
|
|
6188
6203
|
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 = "";
|
|
6189
6204
|
}, _e = () => {
|
|
6190
|
-
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, k.value = !0, x.value = !0,
|
|
6205
|
+
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, k.value = !0, x.value = !0, T.value = !0, i.value.reportTheme = N("告警对象").value, m.value = "", f.value = "告警对象位置", _.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, d.value = [], p.value = [];
|
|
6191
6206
|
}, ze = (D) => {
|
|
6192
|
-
D == "eventTypeId" && (i.value.eventLevelId = null,
|
|
6193
|
-
},
|
|
6207
|
+
D == "eventTypeId" && (i.value.eventLevelId = null, oo()), D == "eventLevelId" && ro(), D == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (h.value = !0, i.value.timeLimit = "") : h.value = !1);
|
|
6208
|
+
}, ls = async () => {
|
|
6194
6209
|
const [D, P] = await fh().run();
|
|
6195
6210
|
if (D) return {};
|
|
6196
|
-
d.value = P, i.value.eventTypeId || (i.value.eventTypeId = P[0] ? P[0].id : null),
|
|
6197
|
-
},
|
|
6211
|
+
d.value = P, i.value.eventTypeId || (i.value.eventTypeId = P[0] ? P[0].id : null), oo();
|
|
6212
|
+
}, oo = async () => {
|
|
6198
6213
|
const D = {
|
|
6199
6214
|
eventTypeId: i.value.eventTypeId
|
|
6200
6215
|
}, [P, L] = await hh(D).run();
|
|
@@ -6203,17 +6218,17 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6203
6218
|
p.value = L.map((xt) => ({
|
|
6204
6219
|
id: `${xt}`,
|
|
6205
6220
|
name: Pe[xt] ? Pe[xt] : xt
|
|
6206
|
-
})), L.length && !i.value.eventLevelId && (i.value.eventLevelId = p.value[0].id,
|
|
6207
|
-
},
|
|
6221
|
+
})), L.length && !i.value.eventLevelId && (i.value.eventLevelId = p.value[0].id, ro());
|
|
6222
|
+
}, ro = async () => {
|
|
6208
6223
|
const D = {
|
|
6209
6224
|
eventTypeId: i.value.eventTypeId,
|
|
6210
6225
|
eventLevel: i.value.eventLevelId
|
|
6211
6226
|
}, [P, L] = await gh(D).run();
|
|
6212
6227
|
if (P) return {};
|
|
6213
6228
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6214
|
-
},
|
|
6229
|
+
}, us = (D) => {
|
|
6215
6230
|
re();
|
|
6216
|
-
},
|
|
6231
|
+
}, ds = async () => {
|
|
6217
6232
|
const D = {
|
|
6218
6233
|
logic: !1,
|
|
6219
6234
|
isTime: !1,
|
|
@@ -6227,8 +6242,8 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6227
6242
|
}
|
|
6228
6243
|
s.value = !1, A.value = L;
|
|
6229
6244
|
for (let Pe = 0; Pe < A.value.length; Pe++)
|
|
6230
|
-
A.value[Pe].id === "createorder" && V(), A.value[Pe].id === "createcontingency" &&
|
|
6231
|
-
},
|
|
6245
|
+
A.value[Pe].id === "createorder" && V(), A.value[Pe].id === "createcontingency" && ls();
|
|
6246
|
+
}, ps = () => {
|
|
6232
6247
|
let D = !0;
|
|
6233
6248
|
if (i.value.processTypeId == "dealwith")
|
|
6234
6249
|
i.value.reason.trim() || (D = !1, u.value.reason = N("必填,最多50个字符/汉字").value), i.value.treatmentPlan.trim() || (D = !1, u.value.treatmentPlan = N("必填,最多50个字符/汉字").value);
|
|
@@ -6239,11 +6254,11 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6239
6254
|
i.value.eventTypeId || (D = !1, u.value.eventTypeId = N("必选").value), i.value.eventLevelId || (D = !1, u.value.eventLevelId = N("必选").value), i.value.interval != 3 && !P.test(i.value.timeLimit) && (D = !1, u.value.timeLimit = N("必填,请输入1~999之间的正整数").value);
|
|
6240
6255
|
}
|
|
6241
6256
|
return D;
|
|
6242
|
-
},
|
|
6257
|
+
}, fs = () => {
|
|
6243
6258
|
ln();
|
|
6244
|
-
},
|
|
6245
|
-
|
|
6246
|
-
},
|
|
6259
|
+
}, so = async (D) => {
|
|
6260
|
+
ps() && (l.value = D, hs());
|
|
6261
|
+
}, hs = async () => {
|
|
6247
6262
|
const D = {
|
|
6248
6263
|
projectId: o.projectId,
|
|
6249
6264
|
processStatus: l.value,
|
|
@@ -6264,16 +6279,16 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6264
6279
|
return;
|
|
6265
6280
|
}
|
|
6266
6281
|
r("emitFn", "successHandle", i.value.processTypeId), s.value = !1, ln();
|
|
6267
|
-
},
|
|
6268
|
-
c.value = !0,
|
|
6282
|
+
}, gs = () => {
|
|
6283
|
+
c.value = !0, ds();
|
|
6269
6284
|
}, ln = () => {
|
|
6270
6285
|
c.value = !1;
|
|
6271
6286
|
};
|
|
6272
6287
|
return e({
|
|
6273
|
-
open:
|
|
6288
|
+
open: gs,
|
|
6274
6289
|
close: ln
|
|
6275
6290
|
}), (D, P) => ($(), W("div", mh, [
|
|
6276
|
-
R(v(
|
|
6291
|
+
R(v(Nn), {
|
|
6277
6292
|
modelValue: c.value,
|
|
6278
6293
|
"onUpdate:modelValue": P[31] || (P[31] = (L) => c.value = L),
|
|
6279
6294
|
type: "basic",
|
|
@@ -6296,7 +6311,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6296
6311
|
O("div", bh, [
|
|
6297
6312
|
R(v(He), {
|
|
6298
6313
|
size: "middle",
|
|
6299
|
-
onClick:
|
|
6314
|
+
onClick: fs
|
|
6300
6315
|
}, {
|
|
6301
6316
|
default: B(() => [
|
|
6302
6317
|
ye(
|
|
@@ -6310,7 +6325,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6310
6325
|
}),
|
|
6311
6326
|
R(v(He), {
|
|
6312
6327
|
size: "middle",
|
|
6313
|
-
onClick: P[29] || (P[29] = (L) =>
|
|
6328
|
+
onClick: P[29] || (P[29] = (L) => so(1))
|
|
6314
6329
|
}, {
|
|
6315
6330
|
default: B(() => [
|
|
6316
6331
|
ye(
|
|
@@ -6325,7 +6340,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6325
6340
|
R(v(He), {
|
|
6326
6341
|
btnType: "primary",
|
|
6327
6342
|
size: "middle",
|
|
6328
|
-
onClick: P[30] || (P[30] = (L) =>
|
|
6343
|
+
onClick: P[30] || (P[30] = (L) => so(2))
|
|
6329
6344
|
}, {
|
|
6330
6345
|
default: B(() => [
|
|
6331
6346
|
ye(
|
|
@@ -6340,7 +6355,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6340
6355
|
])
|
|
6341
6356
|
]),
|
|
6342
6357
|
default: B(() => [
|
|
6343
|
-
R(v(
|
|
6358
|
+
R(v(vr), { spinning: s.value }, {
|
|
6344
6359
|
default: B(() => [
|
|
6345
6360
|
O(
|
|
6346
6361
|
"div",
|
|
@@ -6350,7 +6365,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6350
6365
|
class: "handle-alarm-dialog-content"
|
|
6351
6366
|
},
|
|
6352
6367
|
[
|
|
6353
|
-
R(v(
|
|
6368
|
+
R(v(ca), {
|
|
6354
6369
|
style: { width: "100%", height: "100%", "align-items": "center" },
|
|
6355
6370
|
cols: 1,
|
|
6356
6371
|
alignType: "horizontal"
|
|
@@ -6369,7 +6384,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6369
6384
|
"get-popup-container": J,
|
|
6370
6385
|
marginBottom: "30px",
|
|
6371
6386
|
marginRight: "0",
|
|
6372
|
-
onChange:
|
|
6387
|
+
onChange: us
|
|
6373
6388
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
6374
6389
|
i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? ($(), F(v(Oe), {
|
|
6375
6390
|
key: 0,
|
|
@@ -6427,7 +6442,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6427
6442
|
default: B(() => [
|
|
6428
6443
|
O("div", vh, [
|
|
6429
6444
|
O("div", Ah, [
|
|
6430
|
-
R(v(
|
|
6445
|
+
R(v(ia), {
|
|
6431
6446
|
borderType: "underline",
|
|
6432
6447
|
props: { disabled: "_disabled", label: "name" },
|
|
6433
6448
|
modelValue: i.value.reportPosition,
|
|
@@ -6438,15 +6453,15 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6438
6453
|
"onUpdate:keyword": P[10] || (P[10] = (L) => w.value = L),
|
|
6439
6454
|
showFullPath: !0,
|
|
6440
6455
|
data: y.value,
|
|
6441
|
-
placeholder:
|
|
6456
|
+
placeholder: f.value,
|
|
6442
6457
|
disabled: C.value,
|
|
6443
6458
|
load: I,
|
|
6444
|
-
search:
|
|
6459
|
+
search: S,
|
|
6445
6460
|
onChange: Ie,
|
|
6446
6461
|
filter: !0,
|
|
6447
6462
|
allowClear: !0
|
|
6448
6463
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
6449
|
-
R(v(
|
|
6464
|
+
R(v(po), {
|
|
6450
6465
|
ref: "testInput",
|
|
6451
6466
|
modelValue: i.value.customPath,
|
|
6452
6467
|
"onUpdate:modelValue": P[11] || (P[11] = (L) => i.value.customPath = L),
|
|
@@ -6455,7 +6470,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6455
6470
|
maxlength: "20"
|
|
6456
6471
|
}, null, 8, ["modelValue", "disabled"])
|
|
6457
6472
|
]),
|
|
6458
|
-
R(v(
|
|
6473
|
+
R(v(fo), {
|
|
6459
6474
|
modelValue: k.value,
|
|
6460
6475
|
"onUpdate:modelValue": P[12] || (P[12] = (L) => k.value = L),
|
|
6461
6476
|
checkboxType: "default",
|
|
@@ -6489,15 +6504,15 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6489
6504
|
}, {
|
|
6490
6505
|
default: B(() => [
|
|
6491
6506
|
O("div", yh, [
|
|
6492
|
-
R(v(
|
|
6507
|
+
R(v(po), {
|
|
6493
6508
|
maxlength: "20",
|
|
6494
|
-
disabled:
|
|
6509
|
+
disabled: T.value,
|
|
6495
6510
|
modelValue: i.value.reportTheme,
|
|
6496
6511
|
"onUpdate:modelValue": P[14] || (P[14] = (L) => i.value.reportTheme = L),
|
|
6497
6512
|
placeholder: _.value,
|
|
6498
6513
|
onChange: le
|
|
6499
6514
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
6500
|
-
R(v(
|
|
6515
|
+
R(v(fo), {
|
|
6501
6516
|
modelValue: x.value,
|
|
6502
6517
|
"onUpdate:modelValue": P[15] || (P[15] = (L) => x.value = L),
|
|
6503
6518
|
checkboxType: "default",
|
|
@@ -6590,7 +6605,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6590
6605
|
}, {
|
|
6591
6606
|
default: B(() => [
|
|
6592
6607
|
O("div", _h, [
|
|
6593
|
-
R(v(
|
|
6608
|
+
R(v(aa), {
|
|
6594
6609
|
class: "select",
|
|
6595
6610
|
modelValue: i.value.interval,
|
|
6596
6611
|
"onUpdate:modelValue": P[25] || (P[25] = (L) => i.value.interval = L),
|
|
@@ -6629,15 +6644,15 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6629
6644
|
}, 8, ["modelValue"])
|
|
6630
6645
|
]));
|
|
6631
6646
|
}
|
|
6632
|
-
}), Ih = /* @__PURE__ */ Ce(Ch, [["__scopeId", "data-v-a6a58a01"]]),
|
|
6633
|
-
handleAlarmVue: () =>
|
|
6647
|
+
}), Ih = /* @__PURE__ */ Ce(Ch, [["__scopeId", "data-v-a6a58a01"]]), Th = (t, e, n) => ({
|
|
6648
|
+
handleAlarmVue: () => he(Ih, {
|
|
6634
6649
|
handerIds: e.value,
|
|
6635
6650
|
projectId: Yt().id,
|
|
6636
6651
|
ref: t,
|
|
6637
6652
|
onEmitFn: (r, s) => {
|
|
6638
6653
|
}
|
|
6639
6654
|
})
|
|
6640
|
-
}),
|
|
6655
|
+
}), Eh = { class: "alarm-msg" }, Sh = { style: { position: "relative" } }, kh = { class: "title-left" }, Ph = { class: "title-box" }, Lh = /* @__PURE__ */ O(
|
|
6641
6656
|
"div",
|
|
6642
6657
|
{ class: "title-right" },
|
|
6643
6658
|
null,
|
|
@@ -6663,12 +6678,12 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6663
6678
|
null,
|
|
6664
6679
|
[
|
|
6665
6680
|
j(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
6666
|
-
O("div",
|
|
6667
|
-
O("div",
|
|
6681
|
+
O("div", Eh, [
|
|
6682
|
+
O("div", Sh, [
|
|
6668
6683
|
O(
|
|
6669
6684
|
"div",
|
|
6670
6685
|
{
|
|
6671
|
-
style:
|
|
6686
|
+
style: yn({ "background-color": a.msgItem.color }),
|
|
6672
6687
|
class: "title-detail"
|
|
6673
6688
|
},
|
|
6674
6689
|
[
|
|
@@ -6702,7 +6717,7 @@ const th = et(`/api/tool/event-bus/${an}/`), An = th.post("/publish"), nh = Qn.g
|
|
|
6702
6717
|
"div",
|
|
6703
6718
|
{
|
|
6704
6719
|
class: "alarm-msg-line-right alarm-content-object",
|
|
6705
|
-
style:
|
|
6720
|
+
style: yn({ color: a.msgItem.color })
|
|
6706
6721
|
},
|
|
6707
6722
|
ae(a.msgItem.alarmLevelName || ""),
|
|
6708
6723
|
5
|
|
@@ -6795,7 +6810,7 @@ let Fh = (t = 21) => {
|
|
|
6795
6810
|
return e;
|
|
6796
6811
|
};
|
|
6797
6812
|
const Vh = () => {
|
|
6798
|
-
const t =
|
|
6813
|
+
const t = E(null), e = E(0), n = E(null), o = E(null), r = E([]), s = E([]), a = E(!1), l = E(!1), c = E(!1), i = E({
|
|
6799
6814
|
playId: "",
|
|
6800
6815
|
// 播放的告警的recordId
|
|
6801
6816
|
playPath: "",
|
|
@@ -6811,35 +6826,35 @@ const Vh = () => {
|
|
|
6811
6826
|
loop: !1
|
|
6812
6827
|
// 轮播-无限次播放
|
|
6813
6828
|
});
|
|
6814
|
-
ce.addEventListenerFromMicroApp("alarm:change-alarmconfig", (
|
|
6815
|
-
const { isRealTimeAlarm:
|
|
6816
|
-
|
|
6829
|
+
ce.addEventListenerFromMicroApp("alarm:change-alarmconfig", (S) => {
|
|
6830
|
+
const { isRealTimeAlarm: T, audioPlay: x } = S.data;
|
|
6831
|
+
T != null && (l.value = T), x != null && (c.value = x, c.value || w());
|
|
6817
6832
|
});
|
|
6818
|
-
const u = (
|
|
6833
|
+
const u = (S) => {
|
|
6819
6834
|
var x;
|
|
6820
|
-
const
|
|
6821
|
-
|
|
6822
|
-
}, { entryApp:
|
|
6823
|
-
|
|
6824
|
-
}, { handleAlarmVue: p } =
|
|
6835
|
+
const T = [];
|
|
6836
|
+
T.push({ alarmId: S.recordId }), r.value = T, (x = n.value) == null || x.open();
|
|
6837
|
+
}, { entryApp: h } = qt.hooks.useEntryApp(), d = (S) => {
|
|
6838
|
+
gr(S.equipmentCode, S.equipmentPanelCode);
|
|
6839
|
+
}, { handleAlarmVue: p } = Th(n, r), g = async () => {
|
|
6825
6840
|
var x;
|
|
6826
|
-
const
|
|
6827
|
-
|
|
6828
|
-
}, A = [], m = (
|
|
6829
|
-
if (A.push(
|
|
6830
|
-
|
|
6841
|
+
const T = (((x = K().appcategorys) == null ? void 0 : x.map((Q) => Q.apps).flat()) ?? []).find((Q) => Q.code === "alarm");
|
|
6842
|
+
T && h({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
|
|
6843
|
+
}, A = [], m = (S) => {
|
|
6844
|
+
if (A.push(S), s.value.length < 2) {
|
|
6845
|
+
f(A[0]), A.shift();
|
|
6831
6846
|
return;
|
|
6832
6847
|
}
|
|
6833
|
-
},
|
|
6834
|
-
if (!
|
|
6835
|
-
const
|
|
6848
|
+
}, f = (S) => {
|
|
6849
|
+
if (!S) return;
|
|
6850
|
+
const T = Fh();
|
|
6836
6851
|
Wt.open({
|
|
6837
|
-
key:
|
|
6852
|
+
key: T,
|
|
6838
6853
|
class: "alarm-notify",
|
|
6839
6854
|
message: N("新告警").value,
|
|
6840
6855
|
placement: "bottomRight",
|
|
6841
|
-
description:
|
|
6842
|
-
msgItem:
|
|
6856
|
+
description: he(Uh, {
|
|
6857
|
+
msgItem: S,
|
|
6843
6858
|
alarmhandle: a.value,
|
|
6844
6859
|
onHanderDetail: d,
|
|
6845
6860
|
onHanderFn: u
|
|
@@ -6850,31 +6865,31 @@ const Vh = () => {
|
|
|
6850
6865
|
},
|
|
6851
6866
|
onClose: () => {
|
|
6852
6867
|
setTimeout(() => {
|
|
6853
|
-
const x = s.value.findIndex((Q) => Q ==
|
|
6868
|
+
const x = s.value.findIndex((Q) => Q == T);
|
|
6854
6869
|
if (x >= 0 && s.value.splice(x, 1), s.value.length < 2 && A.length) {
|
|
6855
|
-
|
|
6870
|
+
f(A[0]), A.shift();
|
|
6856
6871
|
return;
|
|
6857
6872
|
}
|
|
6858
6873
|
}, 300);
|
|
6859
6874
|
}
|
|
6860
|
-
}), s.value.includes(
|
|
6861
|
-
}, _ = (
|
|
6862
|
-
if (
|
|
6875
|
+
}), s.value.includes(T) || s.value.push(T), _(S);
|
|
6876
|
+
}, _ = (S) => {
|
|
6877
|
+
if (S) {
|
|
6863
6878
|
if (!c.value) {
|
|
6864
6879
|
w();
|
|
6865
6880
|
return;
|
|
6866
6881
|
}
|
|
6867
|
-
if (!
|
|
6882
|
+
if (!S.coverId) {
|
|
6868
6883
|
if (i.value.playLine === null) {
|
|
6869
|
-
w(), Number(
|
|
6884
|
+
w(), Number(S.noticeNum) != 0 && y(S);
|
|
6870
6885
|
return;
|
|
6871
6886
|
}
|
|
6872
|
-
Number(
|
|
6887
|
+
Number(S.alarmLevelId) < i.value.playLine && (w(), Number(S.noticeNum) != 0 && y(S));
|
|
6873
6888
|
}
|
|
6874
6889
|
}
|
|
6875
|
-
}, y = (
|
|
6876
|
-
const
|
|
6877
|
-
i.value.isplay && i.value.playId ==
|
|
6890
|
+
}, y = (S) => {
|
|
6891
|
+
const T = Number(S.noticeNum), x = location.origin + "/oss";
|
|
6892
|
+
i.value.isplay && i.value.playId == S.recordId ? w() : (T < 0 ? i.value.loop = !0 : i.value.loop = !1, T > 0 ? (i.value.loopTotalCount = Number(S.noticeNum), i.value.loopCount = 0) : (i.value.loopTotalCount = 0, i.value.loopCount = 0), i.value.isplay = !0, i.value.playId = S.recordId, i.value.playLine = Number(S.alarmLevelId), i.value.playPath = x + S.noticePath, C());
|
|
6878
6893
|
}, w = () => {
|
|
6879
6894
|
i.value.playId = "", i.value.playPath = "", i.value.playLine = null, i.value.loopCount = 0, i.value.loopTotalCount = 0, i.value.isplay = !1, i.value.loop = !1;
|
|
6880
6895
|
}, C = () => {
|
|
@@ -6882,8 +6897,8 @@ const Vh = () => {
|
|
|
6882
6897
|
i.value.loopCount = i.value.loopCount + 1, i.value.loopTotalCount && i.value.loopTotalCount && (i.value.loopCount == i.value.loopTotalCount ? (i.value.playPath = "", i.value.isplay = !1, i.value.playId = "", i.value.loopTotalCount = 0, i.value.loopCount = 0, i.value.playLine = null) : o.value.play());
|
|
6883
6898
|
};
|
|
6884
6899
|
}, k = async () => {
|
|
6885
|
-
const [
|
|
6886
|
-
|
|
6900
|
+
const [S, T] = await lh().run();
|
|
6901
|
+
S || (c.value = T.isEnable);
|
|
6887
6902
|
};
|
|
6888
6903
|
return {
|
|
6889
6904
|
alarmSocket: t,
|
|
@@ -6893,17 +6908,17 @@ const Vh = () => {
|
|
|
6893
6908
|
handleAlarmVue: p,
|
|
6894
6909
|
creatAlarmSocket: async () => {
|
|
6895
6910
|
k();
|
|
6896
|
-
const [
|
|
6911
|
+
const [S, T] = await sh().run({
|
|
6897
6912
|
code: "alarm",
|
|
6898
6913
|
showBtn: !0
|
|
6899
6914
|
});
|
|
6900
|
-
if (
|
|
6915
|
+
if (S || !T || !T.length) return;
|
|
6901
6916
|
let x = !1;
|
|
6902
|
-
|
|
6917
|
+
T.forEach((Q) => {
|
|
6903
6918
|
Q.code === "alarm.realTimeAlarm" && (x = !0, Q.children && Q.children.length ? Q.children.forEach((V) => {
|
|
6904
6919
|
V.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
|
|
6905
6920
|
}) : a.value = !1);
|
|
6906
|
-
}), x && (t.value = new
|
|
6921
|
+
}), x && (t.value = new Hn({
|
|
6907
6922
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
6908
6923
|
reconnectWhenClose: !0,
|
|
6909
6924
|
opened: () => {
|
|
@@ -6948,9 +6963,9 @@ const Vh = () => {
|
|
|
6948
6963
|
setup(t) {
|
|
6949
6964
|
const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => q.excludeRoutes), r = H(() => q.routeKeepAliveVisible), s = H(() => ({ mode: Gt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = dp(), { innerPage: l, commandList: c, initNextTick: i } = pp(a);
|
|
6950
6965
|
Ap(l, a, i), vp(), gp(), wp();
|
|
6951
|
-
const { $changePwd: u, $personSetDialog:
|
|
6966
|
+
const { $changePwd: u, $personSetDialog: h } = yp(), { changeEnterprisesVisible: d, userId: p, tenantId: g, changeEnterprise: A } = os();
|
|
6952
6967
|
hp();
|
|
6953
|
-
const { fontColor: m, backgroudColor:
|
|
6968
|
+
const { fontColor: m, backgroudColor: f, borderColor: _ } = mp();
|
|
6954
6969
|
return Pp(), Lp(c), $p(), Mp(), pf(), oh(), (y, w) => ($(), W("div", qh, [
|
|
6955
6970
|
R(v(Ci), { platformInitNextTick: v(a) }, {
|
|
6956
6971
|
default: B(() => [
|
|
@@ -6958,7 +6973,7 @@ const Vh = () => {
|
|
|
6958
6973
|
showLayout: n.value,
|
|
6959
6974
|
excludeRoutes: o.value,
|
|
6960
6975
|
routeKeepAliveVisible: r.value,
|
|
6961
|
-
tabsAttr: { fontColor: v(m), backgroudColor: v(
|
|
6976
|
+
tabsAttr: { fontColor: v(m), backgroudColor: v(f), borderColor: v(_) },
|
|
6962
6977
|
menuAttr: s.value
|
|
6963
6978
|
}, null, 8, ["showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
|
|
6964
6979
|
]),
|
|
@@ -6966,16 +6981,16 @@ const Vh = () => {
|
|
|
6966
6981
|
/* STABLE */
|
|
6967
6982
|
}, 8, ["platformInitNextTick"]),
|
|
6968
6983
|
j(" 切换租户 "),
|
|
6969
|
-
R(v(
|
|
6984
|
+
R(v(xs), {
|
|
6970
6985
|
visible: v(d),
|
|
6971
|
-
"onUpdate:visible": w[0] || (w[0] = (C) =>
|
|
6986
|
+
"onUpdate:visible": w[0] || (w[0] = (C) => Ss(d) ? d.value = C : null),
|
|
6972
6987
|
userId: v(p),
|
|
6973
6988
|
tenantId: v(g),
|
|
6974
6989
|
onConfirm: v(A)
|
|
6975
6990
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
6976
6991
|
j(" 修改密码 "),
|
|
6977
6992
|
R(
|
|
6978
|
-
v(
|
|
6993
|
+
v(Rs),
|
|
6979
6994
|
{
|
|
6980
6995
|
ref_key: "$changePwd",
|
|
6981
6996
|
ref: u
|
|
@@ -6989,7 +7004,7 @@ const Vh = () => {
|
|
|
6989
7004
|
v(cp),
|
|
6990
7005
|
{
|
|
6991
7006
|
ref_key: "$personSetDialog",
|
|
6992
|
-
ref:
|
|
7007
|
+
ref: h
|
|
6993
7008
|
},
|
|
6994
7009
|
null,
|
|
6995
7010
|
512
|
|
@@ -7000,25 +7015,25 @@ const Vh = () => {
|
|
|
7000
7015
|
]));
|
|
7001
7016
|
}
|
|
7002
7017
|
}), Kh = /* @__PURE__ */ Ce(Jh, [["__scopeId", "data-v-6e85c13f"]]);
|
|
7003
|
-
|
|
7018
|
+
E("@das-fed/web");
|
|
7004
7019
|
const Gh = [
|
|
7005
7020
|
{
|
|
7006
7021
|
path: Ue,
|
|
7007
|
-
component: () => import("./index-
|
|
7022
|
+
component: () => import("./index-E3_VNsYI.js")
|
|
7008
7023
|
},
|
|
7009
7024
|
{
|
|
7010
7025
|
path: ct,
|
|
7011
|
-
component: () => import("./index-
|
|
7026
|
+
component: () => import("./index-DCv0mp9Q.js")
|
|
7012
7027
|
},
|
|
7013
7028
|
{
|
|
7014
|
-
path:
|
|
7015
|
-
component: () => import("./index-
|
|
7029
|
+
path: Tr,
|
|
7030
|
+
component: () => import("./index-B0_oruhN.js")
|
|
7016
7031
|
}
|
|
7017
7032
|
], im = {
|
|
7018
7033
|
routes: Gh,
|
|
7019
7034
|
Layout: Kh,
|
|
7020
7035
|
data: {
|
|
7021
|
-
homeInfo:
|
|
7036
|
+
homeInfo: es
|
|
7022
7037
|
},
|
|
7023
7038
|
hooks: {
|
|
7024
7039
|
useEntryApp: vt,
|
|
@@ -7035,10 +7050,10 @@ export {
|
|
|
7035
7050
|
im as G,
|
|
7036
7051
|
ct as I,
|
|
7037
7052
|
Ce as _,
|
|
7038
|
-
|
|
7039
|
-
|
|
7053
|
+
zo as a,
|
|
7054
|
+
qo as b,
|
|
7040
7055
|
dt as c,
|
|
7041
|
-
|
|
7056
|
+
En as d,
|
|
7042
7057
|
Ut as e,
|
|
7043
7058
|
Vg as f,
|
|
7044
7059
|
va as g,
|
|
@@ -7052,8 +7067,8 @@ export {
|
|
|
7052
7067
|
Gg as o,
|
|
7053
7068
|
wa as p,
|
|
7054
7069
|
it as q,
|
|
7055
|
-
|
|
7056
|
-
|
|
7070
|
+
go as r,
|
|
7071
|
+
ho as s,
|
|
7057
7072
|
zg as t,
|
|
7058
7073
|
vt as u,
|
|
7059
7074
|
Xg as v,
|