@das-fed/web 6.4.0-dev.18 → 6.4.0-dev.19

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.
Files changed (38) hide show
  1. package/{index-B-XOjXDJ.js → index-C-ieIBXO.js} +1 -1
  2. package/{index-B3m4y2dw.js → index-C8k4wrGJ.js} +14 -14
  3. package/index-C8k4wrGJ.js.gz +0 -0
  4. package/{index-bUBu99dZ.js → index-CicbdbyR.js} +1 -1
  5. package/index-CicbdbyR.js.gz +0 -0
  6. package/{index-CvndlsmJ.js → index-CwfFnT6z.js} +222 -221
  7. package/index-CwfFnT6z.js.gz +0 -0
  8. package/index.js +1 -1
  9. package/package.json +6 -6
  10. package/packages/create-das-web-app/index.js.gz +0 -0
  11. package/packages/i18n/index.js.gz +0 -0
  12. package/packages/layout/index.js +2 -2
  13. package/packages/layout/index.js.gz +0 -0
  14. package/packages/layout/style.css +2 -2
  15. package/packages/layout/style.css.gz +0 -0
  16. package/packages/main-app-framework/{index-DGMLWSQr.js → index-Bcz8SW2I.js} +1 -1
  17. package/packages/main-app-framework/{index-xl1hHq_y.js → index-CfM1liO6.js} +14 -14
  18. package/packages/main-app-framework/index-CfM1liO6.js.gz +0 -0
  19. package/packages/main-app-framework/{index-Bw0-EQjV.js → index-DRQHVvCk.js} +354 -353
  20. package/packages/main-app-framework/index-DRQHVvCk.js.gz +0 -0
  21. package/packages/main-app-framework/{index-BryL7_iB.js → index-E1pACiHI.js} +1 -1
  22. package/packages/main-app-framework/index-E1pACiHI.js.gz +0 -0
  23. package/packages/main-app-framework/index.js +1 -1
  24. package/packages/main-app-framework/style.css +1 -1
  25. package/packages/main-app-framework/style.css.gz +0 -0
  26. package/packages/micro-frontend/index.js +2 -2
  27. package/packages/micro-frontend/index.js.gz +0 -0
  28. package/packages/micro-frontend/style.css +1 -1
  29. package/packages/style/style.css.gz +0 -0
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +2 -2
  32. package/style.css.gz +0 -0
  33. package/index-B3m4y2dw.js.gz +0 -0
  34. package/index-CvndlsmJ.js.gz +0 -0
  35. package/index-bUBu99dZ.js.gz +0 -0
  36. package/packages/main-app-framework/index-BryL7_iB.js.gz +0 -0
  37. package/packages/main-app-framework/index-Bw0-EQjV.js.gz +0 -0
  38. package/packages/main-app-framework/index-xl1hHq_y.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import { ref as T, createApp as ms, reactive as je, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as V, 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 se, 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";
1
+ import { ref as T, createApp as ms, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as V, 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 se, 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
2
  import { initTheme as ks, setThemeRule as Ps } from "@das-fed/web/packages/theme/index";
3
3
  import { initI18n as Ls, i18n as N } from "@das-fed/web/packages/i18n/index";
4
4
  import { DasWebLayout as Dn, DasWebNav as ir, DasWebMenu as cr, DasWebTabs as lr, layout as M } from "@das-fed/web/packages/layout/index";
@@ -21,7 +21,7 @@ import { getConfig as tt } from "@das-fed/utils/config";
21
21
  import Cn from "dayjs";
22
22
  import { getAccessToken as Js, removeAccessToken as Ks } from "@das-fed/utils/token-tools";
23
23
  import { DasDialog as Nn } from "@das-fed/ui/packages/components/dialog/index";
24
- import { DasButton as He } from "@das-fed/ui/packages/components/button/index";
24
+ import { DasButton as Ue } from "@das-fed/ui/packages/components/button/index";
25
25
  import { vDasTooltip as Gs } from "@das-fed/ui/packages/components/text-tooltip/index";
26
26
  import { tokenStorage as Xs } from "@das-fed/utils/create-api-service/sso";
27
27
  import { setPersonalInfo as Zs } from "@das-fed/utils/common-info/set-personal-info";
@@ -92,7 +92,7 @@ const ga = (t) => {
92
92
  s.use(ha, t), s.use(In);
93
93
  const { router: a } = ga(t);
94
94
  return s.use(a), s.mount(n || "#app"), { app: s, router: a, loading: e, store: In };
95
- }, Ar = je({}), yr = je({}), Jt = T("zh-CN"), ma = "dasI18n", ho = (t, e) => {
95
+ }, Ar = Ne({}), yr = Ne({}), Jt = T("zh-CN"), ma = "dasI18n", ho = (t, e) => {
96
96
  const n = e === "global", o = !n;
97
97
  for (const r in t)
98
98
  n && (yr[r] = t[r]), o && (Ar[r] = t[r]);
@@ -177,7 +177,7 @@ const go = (t, e) => {
177
177
  }, wa = (t) => H(() => {
178
178
  var e, n, o, r;
179
179
  return ((n = (e = _t.value) == null ? void 0 : e[it.value]) == null ? void 0 : n[t]) || ((r = (o = yt.value) == null ? void 0 : o[it.value]) == null ? void 0 : r[t]) || t;
180
- }), Xg = (t) => `var(${t})`, Zg = wa, X = je({
180
+ }), Xg = (t) => `var(${t})`, Zg = wa, X = Ne({
181
181
  visible: !1,
182
182
  logo: "",
183
183
  items: [],
@@ -265,7 +265,7 @@ const go = (t, e) => {
265
265
  remove: o
266
266
  };
267
267
  }
268
- }, Re = je({
268
+ }, Re = Ne({
269
269
  items: [],
270
270
  eventListeners: {}
271
271
  }), Ia = {
@@ -314,7 +314,7 @@ const go = (t, e) => {
314
314
  remove: o
315
315
  };
316
316
  }
317
- }, be = je({
317
+ }, be = Ne({
318
318
  items: [],
319
319
  eventListeners: {}
320
320
  }), Ta = {
@@ -368,7 +368,7 @@ const go = (t, e) => {
368
368
  remove: o
369
369
  };
370
370
  }
371
- }, bt = je({
371
+ }, bt = Ne({
372
372
  eventListeners: {}
373
373
  }), Ea = {
374
374
  triggerEventListener: (t, e, n) => {
@@ -402,7 +402,7 @@ const go = (t, e) => {
402
402
  remove: o
403
403
  };
404
404
  }
405
- }, Tn = je({
405
+ }, Tn = Ne({
406
406
  visible: !1,
407
407
  style: {}
408
408
  }), Sa = {
@@ -546,7 +546,7 @@ const go = (t, e) => {
546
546
  for (const [o, r] of e)
547
547
  n[o] = r;
548
548
  return n;
549
- }, $a = /* @__PURE__ */ Ce(La, [["__scopeId", "data-v-3c2c943c"]]), Da = { class: "das-web-app-container" }, Ma = {
549
+ }, $a = /* @__PURE__ */ Ce(La, [["__scopeId", "data-v-71479406"]]), Da = { class: "das-web-app-container" }, Ma = {
550
550
  key: 0,
551
551
  class: "das-web-app-header"
552
552
  }, Oa = { class: "das-web-app-main" }, Ba = {
@@ -586,8 +586,8 @@ const go = (t, e) => {
586
586
  })), p = H(() => Je.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), d = H(() => e.excludeRoutes), m = H(() => e.routeKeepAliveVisible);
587
587
  G(
588
588
  () => [n.meta, n.query],
589
- ([_, C]) => {
590
- const { showLayout: I = !0, showAside: y = !0, showTabs: S = !0, layout: E = {} } = _, {
589
+ ([y, C]) => {
590
+ const { showLayout: I = !0, showAside: _ = !0, showTabs: S = !0, layout: E = {} } = y, {
591
591
  showLayout: k = !0,
592
592
  showAside: x = !0,
593
593
  showTabs: Q = !0,
@@ -595,7 +595,7 @@ const go = (t, e) => {
595
595
  } = C;
596
596
  ua({ minHeight: "600px", minWidth: "1200px" });
597
597
  let q = !0, ie = !0, Ie = !0;
598
- (I === !1 || k === !1 || k === "false") && (q = !1, ie = !1, Ie = !1), (y === !1 || x === !1 || x === "false") && (ie = !1), (S === !1 || Q === !1 || Q === "false") && (Ie = !1), o.value = q, r.value = ie, s.value = Ie;
598
+ (I === !1 || k === !1 || k === "false") && (q = !1, ie = !1, Ie = !1), (_ === !1 || x === !1 || x === "false") && (ie = !1), (S === !1 || Q === !1 || Q === "false") && (Ie = !1), o.value = q, r.value = ie, s.value = Ie;
599
599
  }
600
600
  );
601
601
  const A = H(() => ({
@@ -604,16 +604,16 @@ const go = (t, e) => {
604
604
  ...e.transitionConfig || {}
605
605
  }));
606
606
  let g = /* @__PURE__ */ new Map();
607
- const h = (_, C) => {
607
+ const h = (y, C) => {
608
608
  let I;
609
609
  return g.has(C) ? I = g.get(C) : (I = {
610
610
  name: C,
611
611
  render() {
612
- return he("div", { style: { width: "100%", height: "100%" } }, [he(_)]);
612
+ return he("div", { style: { width: "100%", height: "100%" } }, [he(y)]);
613
613
  }
614
614
  }, g.set(C, I)), he(I);
615
615
  }, b = H(() => Je.visible.value);
616
- return (_, C) => {
616
+ return (y, C) => {
617
617
  const I = As("router-view");
618
618
  return $(), V("div", Da, [
619
619
  Te(O(
@@ -632,7 +632,7 @@ const go = (t, e) => {
632
632
  "div",
633
633
  Ma,
634
634
  [
635
- fe(_.$slots, "header", {}, void 0, !0)
635
+ fe(y.$slots, "header", {}, void 0, !0)
636
636
  ],
637
637
  512
638
638
  /* NEED_PATCH */
@@ -644,7 +644,7 @@ const go = (t, e) => {
644
644
  "div",
645
645
  Ba,
646
646
  [
647
- fe(_.$slots, "aside", {}, void 0, !0)
647
+ fe(y.$slots, "aside", {}, void 0, !0)
648
648
  ],
649
649
  512
650
650
  /* NEED_PATCH */
@@ -656,7 +656,7 @@ const go = (t, e) => {
656
656
  "div",
657
657
  xa,
658
658
  [
659
- fe(_.$slots, "tab", {}, void 0, !0)
659
+ fe(y.$slots, "tab", {}, void 0, !0)
660
660
  ],
661
661
  512
662
662
  /* NEED_PATCH */
@@ -668,7 +668,7 @@ const go = (t, e) => {
668
668
  "div",
669
669
  ja,
670
670
  [
671
- fe(_.$slots, "banner", {}, void 0, !0)
671
+ fe(y.$slots, "banner", {}, void 0, !0)
672
672
  ],
673
673
  512
674
674
  /* NEED_PATCH */
@@ -680,10 +680,10 @@ const go = (t, e) => {
680
680
  "div",
681
681
  Ha,
682
682
  [
683
- fe(_.$slots, "router-view", {}, () => [
683
+ fe(y.$slots, "router-view", {}, () => [
684
684
  j(" 有动画 "),
685
- _.needTransition ? ($(), F(I, { key: 0 }, {
686
- default: B(({ Component: y }) => [
685
+ y.needTransition ? ($(), F(I, { key: 0 }, {
686
+ default: B(({ Component: _ }) => [
687
687
  R(
688
688
  ao,
689
689
  An(io(A.value)),
@@ -695,7 +695,7 @@ const go = (t, e) => {
695
695
  key: 0,
696
696
  exclude: d.value
697
697
  }, [
698
- m.value && !((S = v(n).meta) != null && S.isIframe) ? ($(), F(at(h(y, v(n).path)), {
698
+ m.value && !((S = v(n).meta) != null && S.isIframe) ? ($(), F(at(h(_, v(n).path)), {
699
699
  key: v(n).path
700
700
  })) : j("v-if", !0)
701
701
  ], 1032, ["exclude"])) : j("v-if", !0)
@@ -713,7 +713,7 @@ const go = (t, e) => {
713
713
  {
714
714
  default: B(() => [
715
715
  !v(n).meta.keepAlive && !v(n).meta.isIframe ? ($(), V("div", Ua, [
716
- ($(), F(at(y), {
716
+ ($(), F(at(_), {
717
717
  key: v(n).path
718
718
  }))
719
719
  ])) : j("v-if", !0)
@@ -729,18 +729,18 @@ const go = (t, e) => {
729
729
  /* STABLE */
730
730
  })) : j("v-if", !0),
731
731
  j(" 无动画 "),
732
- _.needTransition ? j("v-if", !0) : ($(), F(I, { key: 1 }, {
733
- default: B(({ Component: y }) => [
732
+ y.needTransition ? j("v-if", !0) : ($(), F(I, { key: 1 }, {
733
+ default: B(({ Component: _ }) => [
734
734
  v(n).meta.keepAlive ? ($(), F(co, {
735
735
  key: 0,
736
736
  exclude: d.value
737
737
  }, [
738
- m.value && !v(n).meta.isIframe ? ($(), F(at(h(y, v(n).path)), {
738
+ m.value && !v(n).meta.isIframe ? ($(), F(at(h(_, v(n).path)), {
739
739
  key: v(n).path
740
740
  })) : j("v-if", !0)
741
741
  ], 1032, ["exclude"])) : j("v-if", !0),
742
742
  !v(n).meta.keepAlive && !v(n).meta.isIframe ? ($(), V("div", Fa, [
743
- ($(), F(at(y), {
743
+ ($(), F(at(_), {
744
744
  key: v(n).path
745
745
  }))
746
746
  ])) : j("v-if", !0)
@@ -755,7 +755,7 @@ const go = (t, e) => {
755
755
  R($a, {
756
756
  exclude: d.value,
757
757
  transitionConfig: A.value,
758
- needTransition: _.needTransition
758
+ needTransition: y.needTransition
759
759
  }, null, 8, ["exclude", "transitionConfig", "needTransition"])
760
760
  ],
761
761
  512
@@ -774,7 +774,7 @@ const go = (t, e) => {
774
774
  "div",
775
775
  Wa,
776
776
  [
777
- fe(_.$slots, "default", {}, void 0, !0)
777
+ fe(y.$slots, "default", {}, void 0, !0)
778
778
  ],
779
779
  512
780
780
  /* NEED_PATCH */
@@ -788,23 +788,23 @@ const go = (t, e) => {
788
788
  ]);
789
789
  };
790
790
  }
791
- }), Yg = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-7a9c12fd"]]), qa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], em = /* @__PURE__ */ ne({
791
+ }), Yg = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-47a099d6"]]), qa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], em = /* @__PURE__ */ ne({
792
792
  __name: "das-web-nav",
793
793
  setup(t) {
794
- const { nav: e } = Je, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((y) => y.fixed)), s = H(() => (e.items || []).filter((y) => !y.fixed)), a = H(() => {
795
- var I, y, S, E;
794
+ const { nav: e } = Je, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((_) => _.fixed)), s = H(() => (e.items || []).filter((_) => !_.fixed)), a = H(() => {
795
+ var I, _, S, E;
796
796
  return {
797
797
  showFullScreen: ((I = e.config) == null ? void 0 : I.showFullScreen) ?? !1,
798
- showChangeEnterprise: ((y = e.config) == null ? void 0 : y.showChangeEnterprise) ?? !1,
798
+ showChangeEnterprise: ((_ = e.config) == null ? void 0 : _.showChangeEnterprise) ?? !1,
799
799
  showSearch: ((S = e.config) == null ? void 0 : S.showSearch) ?? !0,
800
800
  showProjectTree: ((E = e.config) == null ? void 0 : E.showProjectTree) ?? !0,
801
801
  subAppList: s.value.map((k) => ({ code: k.value, name: k.label, ...k }))
802
802
  };
803
803
  }), l = H(() => {
804
- const I = r.value.find((y) => y.value === e.activeItem);
804
+ const I = r.value.find((_) => _.value === e.activeItem);
805
805
  return {
806
806
  activeInnerPagePath: (I == null ? void 0 : I.path) || "",
807
- innerPages: r.value.map((y) => ({ title: y.label, ...y }))
807
+ innerPages: r.value.map((_) => ({ title: _.label, ..._ }))
808
808
  };
809
809
  }), c = H(() => ({
810
810
  projectStore: {
@@ -813,17 +813,17 @@ const go = (t, e) => {
813
813
  },
814
814
  ...e.projectConfig
815
815
  })), i = H(() => e.userInfo), u = H(() => e.searchConfig), f = async (I) => {
816
- const y = I.detail[0], S = r.value.find((k) => y.value === k.value);
816
+ const _ = I.detail[0], S = r.value.find((k) => _.value === k.value);
817
817
  await z.nav.triggerEventListener("onItemClick", S) && z.nav.setActiveItem(S.value);
818
818
  }, p = async (I) => {
819
- const y = I.detail[0], S = s.value.find((k) => y === k.value);
819
+ const _ = I.detail[0], S = s.value.find((k) => _ === k.value);
820
820
  await z.nav.triggerEventListener("onItemClick", S) && z.nav.setActiveItem(S.value);
821
821
  }, d = async (I) => {
822
- const y = I.detail[0], S = s.value.find((k) => y === k.value);
822
+ const _ = I.detail[0], S = s.value.find((k) => _ === k.value);
823
823
  await z.nav.triggerEventListener("onItemRemove", S) && z.nav.removeItem(S.value);
824
824
  }, m = async (I) => {
825
- const [y, S] = I.detail;
826
- !y || !await z.nav.triggerEventListener("onProjectChange", S) || z.nav.setActiveProject(S);
825
+ const [_, S] = I.detail;
826
+ !_ || !await z.nav.triggerEventListener("onProjectChange", S) || z.nav.setActiveProject(S);
827
827
  }, A = (I) => {
828
828
  z.nav.triggerEventListener("onUserCommandChange", I.detail[0]);
829
829
  }, g = (I) => {
@@ -832,7 +832,7 @@ const go = (t, e) => {
832
832
  z.nav.triggerEventListener("clearSearchList", { cb: I.detail[0] });
833
833
  }, b = (I) => {
834
834
  z.nav.triggerEventListener("deleteSearchItem", { value: I.detail[0], cb: I.detail[1] });
835
- }, _ = () => {
835
+ }, y = () => {
836
836
  z.nav.triggerEventListener("changeEnterpriseHandle");
837
837
  }, C = () => {
838
838
  z.nav.triggerEventListener("fullScreenHandle");
@@ -843,7 +843,7 @@ const go = (t, e) => {
843
843
  z.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
844
844
  }), _s(() => {
845
845
  z.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
846
- }), (I, y) => ($(), V("das-ce-nav", {
846
+ }), (I, _) => ($(), V("das-ce-nav", {
847
847
  modelValue: o.value,
848
848
  logoUrl: n.value,
849
849
  config: a.value,
@@ -859,7 +859,7 @@ const go = (t, e) => {
859
859
  "on:searchToPage": g,
860
860
  "on:clearSearchList": h,
861
861
  "on:deleteSearchItem": b,
862
- "on:changeEnterpriseHandle": _,
862
+ "on:changeEnterpriseHandle": y,
863
863
  "on:fullScreen": C
864
864
  }, null, 40, qa));
865
865
  }
@@ -1277,7 +1277,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1277
1277
  onLoad: r
1278
1278
  }, null, 40, fi));
1279
1279
  }
1280
- }), gi = /* @__PURE__ */ Ce(hi, [["__scopeId", "data-v-8ae871f6"]]), mi = /* @__PURE__ */ ne({
1280
+ }), gi = /* @__PURE__ */ Ce(hi, [["__scopeId", "data-v-2266bab0"]]), mi = /* @__PURE__ */ ne({
1281
1281
  __name: "das-micro-apps",
1282
1282
  setup(t) {
1283
1283
  const e = T(null), n = async (s, a) => {
@@ -1347,7 +1347,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1347
1347
  /* NEED_PATCH */
1348
1348
  ));
1349
1349
  }
1350
- }), vi = /* @__PURE__ */ Ce(mi, [["__scopeId", "data-v-3abdb1e9"]]), om = /* @__PURE__ */ ne({
1350
+ }), vi = /* @__PURE__ */ Ce(mi, [["__scopeId", "data-v-2e3798bc"]]), om = /* @__PURE__ */ ne({
1351
1351
  __name: "das-main-app-layout",
1352
1352
  props: {
1353
1353
  transitionConfig: { default: () => {
@@ -1490,9 +1490,9 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1490
1490
  jt.value = !0, Qt.value = [];
1491
1491
  }, 100));
1492
1492
  });
1493
- }, Ct = "/", Ue = "/application", Ir = [
1493
+ }, Ct = "/", je = "/application", Ir = [
1494
1494
  { value: Ct, label: N("首页").value, path: Ct, fixed: !0 },
1495
- { value: Ue, label: N("应用").value, path: Ue, fixed: !0 }
1495
+ { value: je, label: N("应用").value, path: je, fixed: !0 }
1496
1496
  ], ct = "/outerView", Tr = "/placeholder", yi = [
1497
1497
  { value: "0", label: N("主题设置").value },
1498
1498
  { value: "1", label: N("个人中心").value },
@@ -1552,7 +1552,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1552
1552
  setup(t) {
1553
1553
  const e = t, n = T({}), o = T(120), r = T(64);
1554
1554
  let s = [];
1555
- const a = T([]), l = je({
1555
+ const a = T([]), l = Ne({
1556
1556
  color: "rgba(0,0,0,.15)",
1557
1557
  fontSize: 16
1558
1558
  }), c = (d, m) => {
@@ -1565,7 +1565,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1565
1565
  const m = !!((A = n.value) != null && A.pageSwith);
1566
1566
  a.value = d && m ? [...s] : [];
1567
1567
  }, u = async () => {
1568
- var g, h, b, _, C, I, y;
1568
+ var g, h, b, y, C, I, _;
1569
1569
  await (e == null ? void 0 : e.platformInitNextTick());
1570
1570
  const [d, m] = await bi().run();
1571
1571
  if (d) return null;
@@ -1577,14 +1577,14 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1577
1577
  const x = E.slice(-4);
1578
1578
  s.push(x), k = k + `${x} `;
1579
1579
  }
1580
- if ((_ = n.value) != null && _.textSwith && ((C = n.value) != null && C.text)) {
1580
+ if ((y = n.value) != null && y.textSwith && ((C = n.value) != null && C.text)) {
1581
1581
  s.push(n.value.text);
1582
1582
  const x = n.value.text.replaceAll(`
1583
1583
  `, "<br/>");
1584
1584
  k = k + `${x}`;
1585
1585
  }
1586
1586
  s.length && (s = s.join(" ").split(`
1587
- `)), l.color = (I = n.value) != null && I.textColor ? n.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (y = n.value) != null && y.textSize ? parseInt(n.value.textSize) : 16, c(k, l.fontSize);
1587
+ `)), l.color = (I = n.value) != null && I.textColor ? n.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (_ = n.value) != null && _.textSize ? parseInt(n.value.textSize) : 16, c(k, l.fontSize);
1588
1588
  }
1589
1589
  return m;
1590
1590
  };
@@ -1593,9 +1593,9 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1593
1593
  return G(
1594
1594
  () => f.currentRoute.value,
1595
1595
  (d) => {
1596
- var h, b, _;
1596
+ var h, b, y;
1597
1597
  const m = !!((h = n.value) != null && h.pageSwith), A = ((b = d.meta) == null ? void 0 : b.showWatermark) ?? !0;
1598
- let g = ((_ = d.query) == null ? void 0 : _.showWatermark) ?? !0;
1598
+ let g = ((y = d.query) == null ? void 0 : y.showWatermark) ?? !0;
1599
1599
  g === "false" && (g = !1), i(m && !!(A && g));
1600
1600
  },
1601
1601
  { immediate: !0 }
@@ -1620,11 +1620,11 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1620
1620
  /* FORWARDED */
1621
1621
  }, 8, ["font", "content", "width", "height"]));
1622
1622
  }
1623
- }), Ci = /* @__PURE__ */ Ce(wi, [["__scopeId", "data-v-933399ef"]]), Ii = {
1623
+ }), Ci = /* @__PURE__ */ Ce(wi, [["__scopeId", "data-v-6be90334"]]), Ii = {
1624
1624
  "--menu-tip-diaolg-content": "#212121",
1625
1625
  "--menu-tip-diaolg-divide": "#d9d9d9",
1626
1626
  "--menu-tip-diaolg-info": "#999999"
1627
- }, Ti = (t) => (sr("data-v-72bc9a80"), t = t(), ar(), t), Ei = ["innerHTML"], Si = /* @__PURE__ */ Ti(() => /* @__PURE__ */ O(
1627
+ }, Ti = (t) => (sr("data-v-f9de08eb"), t = t(), ar(), t), Ei = ["innerHTML"], Si = /* @__PURE__ */ Ti(() => /* @__PURE__ */ O(
1628
1628
  "div",
1629
1629
  { class: "divide" },
1630
1630
  null,
@@ -1653,7 +1653,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1653
1653
  }, {
1654
1654
  footer: B(() => [
1655
1655
  O("div", ki, [
1656
- R(v(He), {
1656
+ R(v(Ue), {
1657
1657
  btnType: "default",
1658
1658
  size: "small",
1659
1659
  onClick: n.closeCallback
@@ -1703,7 +1703,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1703
1703
  /* STABLE */
1704
1704
  }, 8, ["modelValue", "width", "height", "title", "onClosed"]));
1705
1705
  }
1706
- }), Li = /* @__PURE__ */ Ce(Pi, [["__scopeId", "data-v-72bc9a80"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
1706
+ }), Li = /* @__PURE__ */ Ce(Pi, [["__scopeId", "data-v-f9de08eb"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
1707
1707
  const r = document.createElement("div");
1708
1708
  r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
1709
1709
  const a = he(Li, { title: t, content: e, desc: n, closeCallback: () => {
@@ -1898,20 +1898,20 @@ function lc(t, e) {
1898
1898
  var n = this.__data__, o = tn(n, t);
1899
1899
  return o < 0 ? (++this.size, n.push([t, e])) : n[o][1] = e, this;
1900
1900
  }
1901
- function Ne(t) {
1901
+ function He(t) {
1902
1902
  var e = -1, n = t == null ? 0 : t.length;
1903
1903
  for (this.clear(); ++e < n; ) {
1904
1904
  var o = t[e];
1905
1905
  this.set(o[0], o[1]);
1906
1906
  }
1907
1907
  }
1908
- Ne.prototype.clear = oc;
1909
- Ne.prototype.delete = ac;
1910
- Ne.prototype.get = ic;
1911
- Ne.prototype.has = cc;
1912
- Ne.prototype.set = lc;
1908
+ He.prototype.clear = oc;
1909
+ He.prototype.delete = ac;
1910
+ He.prototype.get = ic;
1911
+ He.prototype.has = cc;
1912
+ He.prototype.set = lc;
1913
1913
  function uc() {
1914
- this.__data__ = new Ne(), this.size = 0;
1914
+ this.__data__ = new He(), this.size = 0;
1915
1915
  }
1916
1916
  function dc(t) {
1917
1917
  var e = this.__data__, n = e.delete(t);
@@ -2032,7 +2032,7 @@ Xe.prototype.set = Kc;
2032
2032
  function Gc() {
2033
2033
  this.size = 0, this.__data__ = {
2034
2034
  hash: new Xe(),
2035
- map: new (St || Ne)(),
2035
+ map: new (St || He)(),
2036
2036
  string: new Xe()
2037
2037
  };
2038
2038
  }
@@ -2073,7 +2073,7 @@ gt.prototype.set = tl;
2073
2073
  var nl = 200;
2074
2074
  function ol(t, e) {
2075
2075
  var n = this.__data__;
2076
- if (n instanceof Ne) {
2076
+ if (n instanceof He) {
2077
2077
  var o = n.__data__;
2078
2078
  if (!St || o.length < nl - 1)
2079
2079
  return o.push([t, e]), this.size = ++n.size, this;
@@ -2082,7 +2082,7 @@ function ol(t, e) {
2082
2082
  return n.set(t, e), this.size = n.size, this;
2083
2083
  }
2084
2084
  function mt(t) {
2085
- var e = this.__data__ = new Ne(t);
2085
+ var e = this.__data__ = new He(t);
2086
2086
  this.size = e.size;
2087
2087
  }
2088
2088
  mt.prototype.clear = uc;
@@ -2465,7 +2465,7 @@ const Kt = (t, e = "") => {
2465
2465
  { key: "currentTab", value: {} },
2466
2466
  { key: `preTab:${t}`, value: {} },
2467
2467
  { key: `tabMap:${t}`, value: [] }
2468
- ]), o || (o = { fixed: !0, path: Ue }), { currentApp: o };
2468
+ ]), o || (o = { fixed: !0, path: je }), { currentApp: o };
2469
2469
  }, Md = (t, e) => {
2470
2470
  const n = t.findIndex((s) => s.code === e), o = t.slice(0, n), r = t.slice(n + 1);
2471
2471
  return { left: o, right: r };
@@ -2541,8 +2541,8 @@ const Kt = (t, e = "") => {
2541
2541
  const { instanceInfo: g } = await nc();
2542
2542
  if (g) {
2543
2543
  let h = !1;
2544
- c.forEach((_) => {
2545
- _.routeUrl === "/deviceInstance" && (_.fixed = !0, _.divise = !0, _.menuCode = _.code, _.tagName = _.tabName = "实例", _.name = g.instanceName, _.leftIcon = "change2", _.rightIcon = "change2");
2544
+ c.forEach((y) => {
2545
+ y.routeUrl === "/deviceInstance" && (y.fixed = !0, y.divise = !0, y.menuCode = y.code, y.tagName = y.tabName = "实例", y.name = g.instanceName, y.leftIcon = "change2", y.rightIcon = "change2");
2546
2546
  });
2547
2547
  const b = js(g.endTime) || g.endTime == 0 || g.endTime === 253370736e6 || g.endTime === "253370736000000" ? "-" : Number(g.endTime);
2548
2548
  if (h = Cn().endOf("day") > Cn(b).endOf("day"), !n && g.id && !h) {
@@ -2555,7 +2555,7 @@ const Kt = (t, e = "") => {
2555
2555
  const h = (ve().tabMap ?? {})[e.code] ?? [];
2556
2556
  if (h.length) {
2557
2557
  const b = h.filter(
2558
- (_) => n && n === _.code || o && o === `/${_.applicationPath}${_.path}`.replace(/\/\//g, "/") || Me(c).map((C) => C.code).includes(_.code)
2558
+ (y) => n && n === y.code || o && o === `/${y.applicationPath}${y.path}`.replace(/\/\//g, "/") || Me(c).map((C) => C.code).includes(y.code)
2559
2559
  );
2560
2560
  Ae([
2561
2561
  {
@@ -2587,7 +2587,7 @@ const Kt = (t, e = "") => {
2587
2587
  const g = Od(e.code, c, n);
2588
2588
  g != null && g.currentApp && (e = g.currentApp), g != null && g.currentMenu && (f = g.currentMenu), g != null && g.currentTab && (r.query = ((A = g.currentTab) == null ? void 0 : A.query) ?? {});
2589
2589
  }
2590
- if ((e == null ? void 0 : e.routeUrl) === Ue)
2590
+ if ((e == null ? void 0 : e.routeUrl) === je)
2591
2591
  return { menuConfig: [], currentApp: e, currentMenu: null, query: null };
2592
2592
  if (f) {
2593
2593
  const g = `/${f.applicationPath}${f.routeUrl}`;
@@ -2595,11 +2595,11 @@ const Kt = (t, e = "") => {
2595
2595
  o && o.startsWith(g) && o !== g && (h = o);
2596
2596
  const b = { ...r.query, app: l, menu: f.code };
2597
2597
  if (s && a) {
2598
- const _ = { ...e, currentMenuCode: f.code, menus: c, originalMenus: i };
2598
+ const y = { ...e, currentMenuCode: f.code, menus: c, originalMenus: i };
2599
2599
  ke([
2600
- { key: "currentSubApp", value: _ },
2600
+ { key: "currentSubApp", value: y },
2601
2601
  { key: "currentSubAppCode", value: l },
2602
- { key: "subAppList", value: _ }
2602
+ { key: "subAppList", value: y }
2603
2603
  ]);
2604
2604
  const C = {
2605
2605
  currentApplication: e.routeUrl,
@@ -2694,7 +2694,7 @@ const Kt = (t, e = "") => {
2694
2694
  }, {
2695
2695
  footer: B(() => [
2696
2696
  O("div", ap, [
2697
- R(v(He), {
2697
+ R(v(Ue), {
2698
2698
  size: "middle",
2699
2699
  onClick: u[4] || (u[4] = (f) => n.value = !1),
2700
2700
  style: { "margin-right": "12px" }
@@ -2705,7 +2705,7 @@ const Kt = (t, e = "") => {
2705
2705
  _: 1
2706
2706
  /* STABLE */
2707
2707
  }),
2708
- R(v(He), {
2708
+ R(v(Ue), {
2709
2709
  btnType: "primary",
2710
2710
  size: "middle",
2711
2711
  loading: s.value,
@@ -2783,7 +2783,7 @@ const Kt = (t, e = "") => {
2783
2783
  }, 8, ["title", "modelValue"])
2784
2784
  ]));
2785
2785
  }
2786
- }), cp = /* @__PURE__ */ Ce(ip, [["__scopeId", "data-v-760eb710"]]), lp = () => T(null), up = Rn.get("/login/history"), dp = () => {
2786
+ }), cp = /* @__PURE__ */ Ce(ip, [["__scopeId", "data-v-d271fb9a"]]), lp = () => T(null), up = Rn.get("/login/history"), dp = () => {
2787
2787
  const t = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((c) => new RegExp(`^${c}$`, "i").test(location.pathname)), e = (a) => {
2788
2788
  const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, i = c ? l + Mn(c) : "";
2789
2789
  Ri(i), Ns(i);
@@ -2854,12 +2854,12 @@ const Kt = (t, e = "") => {
2854
2854
  await t();
2855
2855
  const m = await f();
2856
2856
  if (!m) return;
2857
- const { homeConfig: A, projectConfig: g, currentProject: h, tenantList: b, personalMenuConfig: _ } = m;
2857
+ const { homeConfig: A, projectConfig: g, currentProject: h, tenantList: b, personalMenuConfig: y } = m;
2858
2858
  u.value = ((E = On()) == null ? void 0 : E.flag) !== 4 && b && b.length > 1;
2859
2859
  const C = [...Ir];
2860
2860
  C.forEach((k) => {
2861
- A != null && A.appAlias && k.value === Ue && (k.label = A.appAlias), A != null && A.homeAlias && k.value === Ct && (k.label = A.homeAlias);
2862
- }), l.value = C, A != null && A.enable || (l.value = l.value.filter((k) => k.path === Ue), n.path === Ct && await e.replace(Ue)), M.nav.setItems(l.value), g && g.length && (M.nav.setProjectConfig({
2861
+ A != null && A.appAlias && k.value === je && (k.label = A.appAlias), A != null && A.homeAlias && k.value === Ct && (k.label = A.homeAlias);
2862
+ }), l.value = C, A != null && A.enable || (l.value = l.value.filter((k) => k.path === je), n.path === Ct && await e.replace(je)), M.nav.setItems(l.value), g && g.length && (M.nav.setProjectConfig({
2863
2863
  treeProps: {
2864
2864
  disabled: (k) => k.type !== 7
2865
2865
  },
@@ -2868,8 +2868,8 @@ const Kt = (t, e = "") => {
2868
2868
  // 树打平之后保留的数据
2869
2869
  filterFlatCondition: (k) => k.type === 7
2870
2870
  }), M.nav.setProjects(g || []), h && M.nav.setActiveProject(h));
2871
- const I = Yt() ?? {}, y = I != null && I.headPicture ? Mn(I.headPicture) : void 0;
2872
- c.value = [...yi], h && h.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((x) => x.value !== "1")) : c.value = c.value.filter((k) => k.value !== "1"), M.nav.setUserInfo({ headPicture: y, commandList: c.value }), M.nav.setSearchConfig({
2871
+ const I = Yt() ?? {}, _ = I != null && I.headPicture ? Mn(I.headPicture) : void 0;
2872
+ c.value = [...yi], h && h.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((x) => x.value !== "1")) : c.value = c.value.filter((k) => k.value !== "1"), M.nav.setUserInfo({ headPicture: _, commandList: c.value }), M.nav.setSearchConfig({
2873
2873
  getHistoryList: r,
2874
2874
  getSearchList: s
2875
2875
  });
@@ -2938,31 +2938,31 @@ const Kt = (t, e = "") => {
2938
2938
  async (h) => {
2939
2939
  var S, E, k, x, Q, W, q;
2940
2940
  const b = ((S = h.meta) == null ? void 0 : S.showLayout) ?? !0;
2941
- let _ = ((E = h.query) == null ? void 0 : E.showLayout) ?? !0;
2942
- if (_ === "false" && (_ = !1), !b || !_ || h.path === l && _n(h.query, c)) return;
2941
+ let y = ((E = h.query) == null ? void 0 : E.showLayout) ?? !0;
2942
+ if (y === "false" && (y = !1), !b || !y || h.path === l && _n(h.query, c)) return;
2943
2943
  l = dt(h.path), c = dt(h.query);
2944
2944
  const C = J().currentSubAppCode ?? "";
2945
2945
  if (!C) return;
2946
2946
  const I = ((k = h.query) == null ? void 0 : k.menu) ?? ((x = ve()) == null ? void 0 : x.currentCode) ?? "";
2947
2947
  if (!I) return;
2948
- const y = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
2949
- y && JSON.stringify(y) !== "{}" && (r.value = (Q = y[C][I]) != null && Q.fontColor ? y[C][I].fontColor : e, s.value = (W = y[C][I]) != null && W.backgroundColor ? y[C][I].backgroundColor : n, a.value = (q = y[C][I]) != null && q.backgroundColor ? y[C][I].backgroundColor : o);
2948
+ const _ = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
2949
+ _ && JSON.stringify(_) !== "{}" && (r.value = (Q = _[C][I]) != null && Q.fontColor ? _[C][I].fontColor : e, s.value = (W = _[C][I]) != null && W.backgroundColor ? _[C][I].backgroundColor : n, a.value = (q = _[C][I]) != null && q.backgroundColor ? _[C][I].backgroundColor : o);
2950
2950
  }
2951
2951
  );
2952
2952
  const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: f, unloadRoute: p } = ns(), d = (h) => {
2953
2953
  var I;
2954
- const b = Me(zt(h.applicationCode)).find((y) => y.code === h.code), C = (((I = ve().tabMap) == null ? void 0 : I[h.applicationCode]) ?? []).find((y) => y.code === h.code);
2954
+ const b = Me(zt(h.applicationCode)).find((_) => _.code === h.code), C = (((I = ve().tabMap) == null ? void 0 : I[h.applicationCode]) ?? []).find((_) => _.code === h.code);
2955
2955
  u({ currentMenu: b, route: { path: C.path, query: C.query ?? {} } });
2956
2956
  }, m = (h) => {
2957
2957
  if (!h || !h.length) return;
2958
- const b = h.map((_) => _.path);
2958
+ const b = h.map((y) => y.path);
2959
2959
  p(b);
2960
2960
  }, A = (h) => {
2961
2961
  const b = J().currentSubAppCode ?? "";
2962
2962
  ce.innerSet = !0;
2963
- const _ = ve(), C = _.tabMap[b], I = C.findIndex((Q) => Q.code === h.data.code);
2963
+ const y = ve(), C = y.tabMap[b], I = C.findIndex((Q) => Q.code === h.data.code);
2964
2964
  if (I === -1) return;
2965
- const y = () => {
2965
+ const _ = () => {
2966
2966
  var q;
2967
2967
  let W = (((q = J().appcategorys) == null ? void 0 : q.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === b);
2968
2968
  W = { ...W, value: W.code, label: W.name }, i(W), M.nav.removeItem(b);
@@ -2970,14 +2970,14 @@ const Kt = (t, e = "") => {
2970
2970
  ({
2971
2971
  me: async (Q) => {
2972
2972
  if (C.length === 1) {
2973
- y();
2973
+ _();
2974
2974
  return;
2975
2975
  }
2976
- const W = _.currentCode;
2976
+ const W = y.currentCode;
2977
2977
  let q = null;
2978
2978
  W === Q.value && (I + 1 === C.length ? C[I - 1] && (q = C[I - 1]) : C[I + 1] && (q = C[I + 1])), C.splice(I, 1), m([Q]), Ae([{ key: `tabMap:${b}`, value: C }]), q ? d(q) : Ae([{ key: `preTab:${b}`, value: {} }]);
2979
2979
  },
2980
- all: y,
2980
+ all: _,
2981
2981
  other: async (Q) => {
2982
2982
  const W = C[I];
2983
2983
  t.push({
@@ -2988,7 +2988,7 @@ const Kt = (t, e = "") => {
2988
2988
  q.forEach((ie) => M.tab.removeItem(ie.code)), m(q), Ae([{ key: `tabMap:${b}`, value: [W] }]), d(W);
2989
2989
  },
2990
2990
  right: async (Q) => {
2991
- const W = _.currentCode;
2991
+ const W = y.currentCode;
2992
2992
  if (W !== Q.value && C.findIndex((Ie) => Ie.code === W) > I) {
2993
2993
  const Ie = C[I];
2994
2994
  d(Ie);
@@ -3001,16 +3001,16 @@ const Kt = (t, e = "") => {
3001
3001
  M.tab.addEventListener("onItemClick", async (h) => {
3002
3002
  ve().currentCode !== h.currentCode && (ce.innerSet = !0, d(h));
3003
3003
  }), M.tab.addEventListener("onItemRemove", (h) => {
3004
- const b = ve(), _ = J().currentSubAppCode ?? "";
3005
- b.tabMap[_].findIndex((y) => y.code === h.code) !== -1 && (Ut(h.applicationCode, [h.code]), A({ type: "me", data: h }));
3004
+ const b = ve(), y = J().currentSubAppCode ?? "";
3005
+ b.tabMap[y].findIndex((_) => _.code === h.code) !== -1 && (Ut(h.applicationCode, [h.code]), A({ type: "me", data: h }));
3006
3006
  }), M.tab.addEventListener("onMenuClick", (h) => {
3007
3007
  let b = [];
3008
- const _ = ve().tabMap[h.applicationCode] ?? [];
3008
+ const y = ve().tabMap[h.applicationCode] ?? [];
3009
3009
  if (h.type.key === "right") {
3010
- const C = _.findIndex((I) => I.code === h.data.value);
3011
- b = _.slice(C + 1);
3010
+ const C = y.findIndex((I) => I.code === h.data.value);
3011
+ b = y.slice(C + 1);
3012
3012
  }
3013
- h.type.key === "other" && (b = _.filter((C) => C.code !== h.data.value)), h.type.key === "all" && (b = [..._]), Ut(
3013
+ h.type.key === "other" && (b = y.filter((C) => C.code !== h.data.value)), h.type.key === "all" && (b = [...y]), Ut(
3014
3014
  h.applicationCode,
3015
3015
  b.map((C) => C.code)
3016
3016
  ), A({ type: h.type.key, data: h.data });
@@ -3023,8 +3023,8 @@ const Kt = (t, e = "") => {
3023
3023
  f([h.path]), p([`/${h.applicationPath}${b.routeUrl}`]), await u({ currentMenu: b });
3024
3024
  return;
3025
3025
  }
3026
- const _ = { app: b.applicationCode, menu: b.code }, C = { ...h.query };
3027
- _n(_, C) || await u({ currentMenu: b }), f([h.path]);
3026
+ const y = { app: b.applicationCode, menu: b.code }, C = { ...h.query };
3027
+ _n(y, C) || await u({ currentMenu: b }), f([h.path]);
3028
3028
  });
3029
3029
  const { enter: g } = ht();
3030
3030
  return M.tab.addEventListener("onToggleFullScreen", g), { fontColor: r, backgroudColor: s, borderColor: a };
@@ -3060,13 +3060,13 @@ const Kt = (t, e = "") => {
3060
3060
  const d = p.code ?? "", A = (J().subAppList ?? []).find((C) => C.code === d);
3061
3061
  let g = [], h = [], b = !1;
3062
3062
  if (A && (g = A.menus ?? []), !g.length) {
3063
- const { menus: C, originalMenus: I, err: y } = await Xn(d);
3064
- if (y) return !1;
3063
+ const { menus: C, originalMenus: I, err: _ } = await Xn(d);
3064
+ if (_) return !1;
3065
3065
  g = C ?? [], h = I ?? [];
3066
3066
  }
3067
3067
  if (g.length ? Kt(g) || (await Et({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), b = !0) : (await Et({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), b = !0), b) return !1;
3068
- const _ = { ...p, menus: g, originalMenus: h };
3069
- return ke([{ key: "subAppList", value: _ }]), !0;
3068
+ const y = { ...p, menus: g, originalMenus: h };
3069
+ return ke([{ key: "subAppList", value: y }]), !0;
3070
3070
  }, i = async (p) => {
3071
3071
  var W, q, ie, Ie, Rt;
3072
3072
  const { microApp: d = null, menuCode: m = "", menuPath: A = "", route: g = {} } = p;
@@ -3077,8 +3077,8 @@ const Kt = (t, e = "") => {
3077
3077
  return;
3078
3078
  }
3079
3079
  const b = ((W = h.meta) == null ? void 0 : W.showLayout) ?? !0;
3080
- let _ = ((q = h.query) == null ? void 0 : q.showLayout) ?? !0;
3081
- _ === "false" && (_ = !1);
3080
+ let y = ((q = h.query) == null ? void 0 : q.showLayout) ?? !0;
3081
+ y === "false" && (y = !1);
3082
3082
  const C = (d == null ? void 0 : d.openType) ?? 1, I = (d == null ? void 0 : d.type) ?? 1;
3083
3083
  if (d.routeUrl && !a.includes(d.routeUrl)) {
3084
3084
  const pe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
@@ -3107,7 +3107,7 @@ const Kt = (t, e = "") => {
3107
3107
  }
3108
3108
  }
3109
3109
  const {
3110
- menuConfig: y = [],
3110
+ menuConfig: _ = [],
3111
3111
  currentApp: S = null,
3112
3112
  currentMenu: E = null,
3113
3113
  microPath: k = "",
@@ -3135,11 +3135,11 @@ const Kt = (t, e = "") => {
3135
3135
  });
3136
3136
  return;
3137
3137
  }
3138
- if (b && _) {
3138
+ if (b && y) {
3139
3139
  (Rt = J().subAppList) == null || Rt.forEach((oe) => {
3140
3140
  const _e = { ...oe, value: oe.code, label: oe.name };
3141
3141
  M.nav.appendItem(_e);
3142
- }), M.nav.setActiveItem(Q.code), M.menu.setItems(y);
3142
+ }), M.nav.setActiveItem(Q.code), M.menu.setItems(_);
3143
3143
  const pe = ve().tabMap[Q.code] ?? [];
3144
3144
  pe.length && pe.forEach((oe) => {
3145
3145
  M.tab.appendItem({
@@ -3179,7 +3179,7 @@ const Kt = (t, e = "") => {
3179
3179
  if (m === -1) return;
3180
3180
  const A = ve().tabMap[p.code] ?? [];
3181
3181
  if (A.length) {
3182
- const b = A.map((_) => _.path);
3182
+ const b = A.map((y) => y.path);
3183
3183
  n(b);
3184
3184
  }
3185
3185
  let g = null;
@@ -3191,8 +3191,9 @@ const Kt = (t, e = "") => {
3191
3191
  await u(b), M.nav.setActiveItem(g.code);
3192
3192
  }
3193
3193
  if (!d.subAppList.length) {
3194
- const b = Ir[1];
3195
- M.menu.setItems([]), M.tab.setItems([]), u(b), Fn(), Sr();
3194
+ M.menu.setItems([]), M.tab.setItems([]);
3195
+ const b = Ir.find((y) => y.value === je);
3196
+ b && u(b), Fn(), Sr();
3196
3197
  }
3197
3198
  }
3198
3199
  };
@@ -3264,30 +3265,30 @@ const Kt = (t, e = "") => {
3264
3265
  } };
3265
3266
  }, Ap = (t, e, n) => {
3266
3267
  const { entryApp: o } = vt(), r = Ye(), s = async (c) => {
3267
- var b, _, C, I;
3268
+ var b, y, C, I;
3268
3269
  let i = { ...c }, { showLayout: u = !0 } = i.query;
3269
3270
  u === "false" && (u = !1);
3270
3271
  const f = async () => {
3271
3272
  var E, k;
3272
- let y = J().appcategorys ?? [];
3273
- if (!Array.isArray(y)) return [];
3273
+ let _ = J().appcategorys ?? [];
3274
+ if (!Array.isArray(_)) return [];
3274
3275
  if (i.query) {
3275
3276
  const x = ((E = i.query) == null ? void 0 : E.project) ?? ((k = i.query) == null ? void 0 : k.projectId) ?? "";
3276
- if (!y.length || x && x !== Fe().id) {
3277
+ if (!_.length || x && x !== Fe().id) {
3277
3278
  await e();
3278
3279
  const { navConfig: Q } = await Yr();
3279
- Q && (y = Q);
3280
+ Q && (_ = Q);
3280
3281
  }
3281
3282
  }
3282
- return y.map((x) => x.apps).flat() ?? [];
3283
- }, p = tt().microApps ?? [], d = p.filter((y) => y.public);
3283
+ return _.map((x) => x.apps).flat() ?? [];
3284
+ }, p = tt().microApps ?? [], d = p.filter((_) => _.public);
3284
3285
  if (d.length) {
3285
- const y = d.find(
3286
+ const _ = d.find(
3286
3287
  (S) => i.path.startsWith("/" + S.name) || i.path.startsWith(S.name)
3287
3288
  );
3288
- if (y) {
3289
+ if (_) {
3289
3290
  o({
3290
- microApp: { routeUrl: y.name, code: "" },
3291
+ microApp: { routeUrl: _.name, code: "" },
3291
3292
  menuCode: i.query.menu,
3292
3293
  menuPath: i.path,
3293
3294
  route: i
@@ -3295,12 +3296,12 @@ const Kt = (t, e = "") => {
3295
3296
  return;
3296
3297
  }
3297
3298
  }
3298
- const m = await f(), A = m.map((y) => y.code), g = ((b = i.query) == null ? void 0 : b.app) ?? "", h = ((_ = J()) == null ? void 0 : _.subAppList) ?? [];
3299
+ const m = await f(), A = m.map((_) => _.code), g = ((b = i.query) == null ? void 0 : b.app) ?? "", h = ((y = J()) == null ? void 0 : y.subAppList) ?? [];
3299
3300
  if (h.length) {
3300
- const y = h.filter((E) => E.code !== g && !A.includes(E.code)), S = h.filter(
3301
+ const _ = h.filter((E) => E.code !== g && !A.includes(E.code)), S = h.filter(
3301
3302
  (E) => g === E.code || A.includes(E.code)
3302
3303
  );
3303
- ke([{ key: "subAppList", value: S }]), y && y.length && y.forEach((E) => {
3304
+ ke([{ key: "subAppList", value: S }]), _ && _.length && _.forEach((E) => {
3304
3305
  Ae([
3305
3306
  { key: `preTab:${E.code}`, value: {} },
3306
3307
  { key: `tabMap:${E.code}`, value: [] }
@@ -3308,25 +3309,25 @@ const Kt = (t, e = "") => {
3308
3309
  });
3309
3310
  }
3310
3311
  if (i.query.app) {
3311
- let y = m.find((S) => S.code === i.query.app);
3312
- if (!y && u) {
3312
+ let _ = m.find((S) => S.code === i.query.app);
3313
+ if (!_ && u) {
3313
3314
  const { currentApp: S } = $n(i.query.app);
3314
3315
  if (S) {
3315
- y = S;
3316
- const k = (ve().preTab ?? {})[y.code];
3316
+ _ = S;
3317
+ const k = (ve().preTab ?? {})[_.code];
3317
3318
  i = {}, k && (i.path = `/${k.applicationPath}${k.path}`.replace(/\/\//g, "/"), i.query = k.query);
3318
3319
  }
3319
3320
  }
3320
- y != null && y.fixed ? (M.menu.setItems([]), M.tab.setItems([]), r.push(y.path), M.nav.setActiveItem(y.path), le.hideAllMicroApp()) : o({ microApp: y, menuCode: i.query.menu, menuPath: i.path, route: i });
3321
+ _ != null && _.fixed ? (M.menu.setItems([]), M.tab.setItems([]), r.push(_.path), M.nav.setActiveItem(_.path), le.hideAllMicroApp()) : o({ microApp: _, menuCode: i.query.menu, menuPath: i.path, route: i });
3321
3322
  return;
3322
3323
  } else {
3323
- const y = p && p.find(
3324
+ const _ = p && p.find(
3324
3325
  (S) => i.path.startsWith("/" + S.name) || i.path.startsWith(S.name)
3325
3326
  );
3326
- if (y) {
3327
- let S = m.find((E) => E.routeUrl === y.name);
3327
+ if (_) {
3328
+ let S = m.find((E) => E.routeUrl === _.name);
3328
3329
  S || (S = m.find(
3329
- (E) => (E == null ? void 0 : E.routePath) && E.routePath.length && E.routePath.includes(y.name)
3330
+ (E) => (E == null ? void 0 : E.routePath) && E.routePath.length && E.routePath.includes(_.name)
3330
3331
  )), o({
3331
3332
  microApp: S,
3332
3333
  menuCode: i.query.menu,
@@ -3341,8 +3342,8 @@ const Kt = (t, e = "") => {
3341
3342
  const E = { ...S, value: S.code, label: S.name };
3342
3343
  M.nav.appendItem(E);
3343
3344
  });
3344
- const y = t.value.find((S) => S.path === location.pathname);
3345
- y && (M.nav.setActiveItem(y.path), M.menu.setItems([]), M.tab.setItems([]), ke([
3345
+ const _ = t.value.find((S) => S.path === location.pathname);
3346
+ _ && (M.nav.setActiveItem(_.path), M.menu.setItems([]), M.tab.setItems([]), ke([
3346
3347
  { key: "currentSubAppCode", value: "" },
3347
3348
  { key: "currentSubApp", value: {} }
3348
3349
  ]), Ae([
@@ -3443,16 +3444,16 @@ const Kt = (t, e = "") => {
3443
3444
  tenantId: g
3444
3445
  };
3445
3446
  sessionStorage.setItem("hotentUserInfo", JSON.stringify(b)), Zs(u);
3446
- let _ = "";
3447
+ let y = "";
3447
3448
  if (t != null && t.ssoLocale)
3448
- _ = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
3449
+ y = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
3449
3450
  else {
3450
3451
  const [C, I] = await bp().run();
3451
- I != null && I.loginHost && (_ = `${I.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
3452
+ I != null && I.loginHost && (y = `${I.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
3452
3453
  }
3453
- if (_) {
3454
+ if (y) {
3454
3455
  const C = document.createElement("iframe");
3455
- C.src = _, C.style.display = "none", document.body.appendChild(C), setTimeout(() => s(), 300);
3456
+ C.src = y, C.style.display = "none", document.body.appendChild(C), setTimeout(() => s(), 300);
3456
3457
  } else
3457
3458
  s();
3458
3459
  }
@@ -3495,7 +3496,7 @@ const Kt = (t, e = "") => {
3495
3496
  getHistoryList: t,
3496
3497
  getSearchList: e
3497
3498
  };
3498
- }, ce = je({
3499
+ }, ce = Ne({
3499
3500
  /** 菜单或者应用跳转是否通过触发界面调用的 */
3500
3501
  innerSet: !1,
3501
3502
  excludeRoutes: [],
@@ -3593,7 +3594,7 @@ const Kt = (t, e = "") => {
3593
3594
  }), Zt(() => {
3594
3595
  e.value && e.value.disconnect(), e.value = null;
3595
3596
  });
3596
- }, Op = "v1", Bp = ft(`/api/enterpriseright/permission/${Op}`), rs = ft("/api/intelligent-security/video/v1", xp), Rp = jn.get("/permissionset/user-portal-menu");
3597
+ }, Op = "v1", Bp = ft(`/api/enterpriseright/permission/${Op}`), rs = ft("/api/device-relation/deviceproject/v1/project/device/video", xp), Rp = jn.get("/permissionset/user-portal-menu");
3597
3598
  function xp(t) {
3598
3599
  const e = Fe() ? Fe().id : 1;
3599
3600
  return t.params || (t.params = {}), t.params.project = e, t.params.projectId = e, t;
@@ -3605,10 +3606,10 @@ function ss(t) {
3605
3606
  return e.toString();
3606
3607
  }
3607
3608
  function Xo(t) {
3608
- return rs.post(`/device/ptz?${ss(t)}`)().run();
3609
+ return rs.post(`/ptz?${ss(t)}`)().run();
3609
3610
  }
3610
3611
  function Qp(t) {
3611
- return rs.post(`/device/video/url/preview?${ss(t)}`)().run();
3612
+ return rs.post(`/url/preview?${ss(t)}`)().run();
3612
3613
  }
3613
3614
  const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3614
3615
  __name: "GridItem",
@@ -3619,7 +3620,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3619
3620
  emits: ["itemClick"],
3620
3621
  setup(t, { emit: e }) {
3621
3622
  Ts((u) => ({
3622
- "23bfa220": i.value
3623
+ "6cb537a6": i.value
3623
3624
  }));
3624
3625
  const n = t, o = e, r = T(), { toggle: s, isFullscreen: a } = ht(r), l = () => {
3625
3626
  r.value != document.fullscreenElement && (a.value ? (a.value = !1, Qe(() => {
@@ -3644,7 +3645,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3644
3645
  /* CLASS, NEED_HYDRATION */
3645
3646
  ));
3646
3647
  }
3647
- }), Hp = /* @__PURE__ */ Ce(Np, [["__scopeId", "data-v-68946aef"]]), Up = { class: "layout-wrapper" }, Fp = /* @__PURE__ */ ne({
3648
+ }), Hp = /* @__PURE__ */ Ce(Np, [["__scopeId", "data-v-2e9b0fda"]]), Up = { class: "layout-wrapper" }, Fp = /* @__PURE__ */ ne({
3648
3649
  __name: "GridLayout",
3649
3650
  props: {
3650
3651
  gridNum: {},
@@ -3680,7 +3681,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3680
3681
  ))
3681
3682
  ]));
3682
3683
  }
3683
- }), Vp = /* @__PURE__ */ Ce(Fp, [["__scopeId", "data-v-22baf4d8"]]), Wp = /* @__PURE__ */ ne({
3684
+ }), Vp = /* @__PURE__ */ Ce(Fp, [["__scopeId", "data-v-d36ddc74"]]), Wp = /* @__PURE__ */ ne({
3684
3685
  __name: "DirectionControl",
3685
3686
  emits: ["change"],
3686
3687
  setup(t, { emit: e }) {
@@ -3789,7 +3790,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3789
3790
  /* NEED_HYDRATION */
3790
3791
  ));
3791
3792
  }
3792
- }), zp = /* @__PURE__ */ Ce(Wp, [["__scopeId", "data-v-69100474"]]), qp = (t) => (sr("data-v-6c626546"), 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 = {
3793
+ }), 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 = {
3793
3794
  key: 0,
3794
3795
  class: "play-status"
3795
3796
  }, tf = { class: "video-bottom" }, nf = /* @__PURE__ */ qp(() => /* @__PURE__ */ O(
@@ -3821,32 +3822,32 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3821
3822
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
3822
3823
  });
3823
3824
  const n = t, o = e, r = T(!0), s = T(), a = T(!1), l = T(), c = H(() => {
3824
- var _;
3825
- return (_ = l.value) == null ? void 0 : _.video;
3826
- }), i = T(!1), u = T(!0), f = (_) => {
3827
- s.value = _, s.value.on(window.mpegts.Events.ERROR, (C) => {
3825
+ var y;
3826
+ return (y = l.value) == null ? void 0 : y.video;
3827
+ }), i = T(!1), u = T(!0), f = (y) => {
3828
+ s.value = y, s.value.on(window.mpegts.Events.ERROR, (C) => {
3828
3829
  });
3829
3830
  }, p = () => {
3830
3831
  r.value = !r.value, s.value && (s.value.muted = r.value);
3831
3832
  }, d = () => {
3832
3833
  a.value = !a.value;
3833
3834
  }, m = T(""), A = () => {
3834
- const _ = document.createElement("canvas");
3835
+ const y = document.createElement("canvas");
3835
3836
  if (c.value) {
3836
- _.width = c.value.clientWidth, _.height = c.value.clientHeight;
3837
- const C = _.getContext("2d");
3838
- C == null || C.drawImage(c.value, 0, 0, _.width, _.height);
3839
- const I = _.toDataURL("image/jpg"), y = `【${n.title}】${Cn().format("YYYYMMDDHHmmss").toString()}.jpg`;
3837
+ y.width = c.value.clientWidth, y.height = c.value.clientHeight;
3838
+ const C = y.getContext("2d");
3839
+ C == null || C.drawImage(c.value, 0, 0, y.width, y.height);
3840
+ const I = y.toDataURL("image/jpg"), _ = `【${n.title}】${Cn().format("YYYYMMDDHHmmss").toString()}.jpg`;
3840
3841
  if (m.value = I, "download" in document.createElement("a")) {
3841
3842
  const S = document.createElement("a");
3842
- S.download = y, S.style.display = "none", S.href = I, document.body.appendChild(S), document.body.appendChild(_), S.click(), URL.revokeObjectURL(S.href), document.body.removeChild(S), document.body.removeChild(_);
3843
+ S.download = _, S.style.display = "none", S.href = I, document.body.appendChild(S), document.body.appendChild(y), S.click(), URL.revokeObjectURL(S.href), document.body.removeChild(S), document.body.removeChild(y);
3843
3844
  }
3844
3845
  }
3845
- }, g = (_) => {
3846
- o("directionControl", _);
3847
- }, h = (_) => {
3848
- o("zoomControl", _);
3849
- }, b = (_) => n.authType.includes(_);
3846
+ }, g = (y) => {
3847
+ o("directionControl", y);
3848
+ }, h = (y) => {
3849
+ o("zoomControl", y);
3850
+ }, b = (y) => n.authType.includes(y);
3850
3851
  return G(
3851
3852
  () => c.value,
3852
3853
  () => {
@@ -3888,7 +3889,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3888
3889
  u.value = !0;
3889
3890
  });
3890
3891
  }
3891
- ), (_, C) => ($(), V("div", Jp, [
3892
+ ), (y, C) => ($(), V("div", Jp, [
3892
3893
  R(v(vr), {
3893
3894
  spinning: n.loading,
3894
3895
  type: "component",
@@ -3908,7 +3909,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3908
3909
  ])
3909
3910
  ]),
3910
3911
  O("div", Yp, [
3911
- ["live"].includes(_.type) ? ($(), V("span", ef, "正在实时预览")) : j("v-if", !0),
3912
+ ["live"].includes(y.type) ? ($(), V("span", ef, "正在实时预览")) : j("v-if", !0),
3912
3913
  j(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
3913
3914
  ])
3914
3915
  ]),
@@ -4014,7 +4015,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
4014
4015
  }, 8, ["spinning"])
4015
4016
  ]));
4016
4017
  }
4017
- }), sf = /* @__PURE__ */ Ce(rf, [["__scopeId", "data-v-6c626546"]]), af = /* @__PURE__ */ ne({
4018
+ }), sf = /* @__PURE__ */ Ce(rf, [["__scopeId", "data-v-866a3799"]]), af = /* @__PURE__ */ ne({
4018
4019
  props: {
4019
4020
  deviceInfo: {
4020
4021
  type: Object,
@@ -6015,53 +6016,53 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6015
6016
  }
6016
6017
  }, l = async (b) => {
6017
6018
  var I;
6018
- const _ = J(), C = ((I = _.appcategorys) == null ? void 0 : I.map((y) => y.apps).flat()) || [];
6019
+ const y = J(), C = ((I = y.appcategorys) == null ? void 0 : I.map((_) => _.apps).flat()) || [];
6019
6020
  if (Array.isArray(b)) {
6020
- const y = b.filter((S) => S.code).map((S) => S.code);
6021
+ const _ = b.filter((S) => S.code).map((S) => S.code);
6021
6022
  if (b.length) {
6022
- if (_.currentSubAppCode) {
6023
- const E = _.currentSubApp.menus ?? [], k = Me(E).find((x) => y.includes(x.code));
6023
+ if (y.currentSubAppCode) {
6024
+ const E = y.currentSubApp.menus ?? [], k = Me(E).find((x) => _.includes(x.code));
6024
6025
  if (k) {
6025
6026
  n({ currentMenu: k });
6026
6027
  return;
6027
6028
  }
6028
6029
  }
6029
- const S = C.find((E) => y.includes(E.code));
6030
+ const S = C.find((E) => _.includes(E.code));
6030
6031
  S && e({ microApp: S });
6031
6032
  }
6032
6033
  }
6033
6034
  if (typeof b == "string")
6034
6035
  if (b.includes(":")) {
6035
- const y = b.split(":"), [S = "", E = ""] = y;
6036
+ const _ = b.split(":"), [S = "", E = ""] = _;
6036
6037
  if (!S) return;
6037
6038
  const k = C.find((x) => x.code === S);
6038
6039
  k && e({ microApp: k, menuCode: E });
6039
6040
  } else {
6040
- const y = b, S = C.find((E) => E.code === y);
6041
+ const _ = b, S = C.find((E) => E.code === _);
6041
6042
  if (S)
6042
6043
  e({ microApp: S });
6043
6044
  else {
6044
- const [E, k] = await nh().run({ menuCode: y });
6045
+ const [E, k] = await nh().run({ menuCode: _ });
6045
6046
  if (E) return;
6046
6047
  const x = C.find((Q) => Q.code === k);
6047
- x && e({ microApp: x, menuCode: y });
6048
+ x && e({ microApp: x, menuCode: _ });
6048
6049
  }
6049
6050
  }
6050
6051
  };
6051
6052
  let c = T(!0);
6052
6053
  const i = (b) => {
6053
6054
  setTimeout(async () => {
6054
- var _, C;
6055
+ var y, C;
6055
6056
  if (c.value) {
6056
- const [I, y] = await eh().run({}, { params: { aliasName: b.actionValue } });
6057
+ const [I, _] = await eh().run({}, { params: { aliasName: b.actionValue } });
6057
6058
  I ? await vn().run({
6058
6059
  uniqueId: b.uniqueId,
6059
6060
  status: 0,
6060
6061
  errorMsg: "未找到" + b.actionValue
6061
- }) : y.length ? (y.length > 1 ? l(y) : l((_ = y[0]) == null ? void 0 : _.code), await vn().run({
6062
+ }) : _.length ? (_.length > 1 ? l(_) : l((y = _[0]) == null ? void 0 : y.code), await vn().run({
6062
6063
  uniqueId: b.uniqueId,
6063
6064
  status: 1,
6064
- targetName: (C = y[0]) == null ? void 0 : C.name
6065
+ targetName: (C = _[0]) == null ? void 0 : C.name
6065
6066
  })) : await vn().run({
6066
6067
  uniqueId: b.uniqueId,
6067
6068
  status: 0,
@@ -6071,21 +6072,21 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6071
6072
  c.value = !0;
6072
6073
  }, 2e3);
6073
6074
  }, u = (b) => {
6074
- const _ = Bn(), C = JSON.parse(atob(_.split(".")[1])).sub;
6075
- Gf().on(`${b}:${C}`, async function(y) {
6076
- let S = a(y);
6075
+ const y = Bn(), C = JSON.parse(atob(y.split(".")[1])).sub;
6076
+ Gf().on(`${b}:${C}`, async function(_) {
6077
+ let S = a(_);
6077
6078
  if (S)
6078
6079
  S.uniqueId && S.actionKey == "switch-menu" && i(S);
6079
- else if (y.includes("openAppMenu=")) {
6080
- const E = y.split("="), k = JSON.parse(E[1]);
6080
+ else if (_.includes("openAppMenu=")) {
6081
+ const E = _.split("="), k = JSON.parse(E[1]);
6081
6082
  l(k);
6082
- } else y.includes("iocIsRun") && (c.value = !1);
6083
+ } else _.includes("iocIsRun") && (c.value = !1);
6083
6084
  });
6084
6085
  }, f = T(""), [p, d] = await or().run();
6085
6086
  f.value = d, u(f.value);
6086
6087
  const m = async () => {
6087
- const [b, _] = await or().run();
6088
- _ !== f.value && (f.value = _, u(f.value));
6088
+ const [b, y] = await or().run();
6089
+ y !== f.value && (f.value = y, u(f.value));
6089
6090
  };
6090
6091
  o = setInterval(() => {
6091
6092
  m();
@@ -6161,9 +6162,9 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6161
6162
  { id: 2, name: N("时").value },
6162
6163
  { id: 1, name: N("分").value },
6163
6164
  { id: 3, name: N("不限").value }
6164
- ]), A = T([]), g = T(""), h = T("告警对象位置"), b = T(""), _ = T([]), C = T("");
6165
+ ]), A = T([]), g = T(""), h = T("告警对象位置"), b = T(""), y = T([]), C = T("");
6165
6166
  T("[]");
6166
- const I = T(!0), y = T(!0), S = async (D) => {
6167
+ const I = T(!0), _ = T(!0), S = async (D) => {
6167
6168
  const P = { name: "1" };
6168
6169
  D != null && D.id && (P.spaceId = D.id);
6169
6170
  const [L, Pe] = await dh(P).run();
@@ -6179,7 +6180,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6179
6180
  G(c, (D) => {
6180
6181
  D || (oe(), _e());
6181
6182
  }), G(
6182
- y,
6183
+ _,
6183
6184
  (D) => {
6184
6185
  D ? (I.value = !0, i.value.customPath = N("选填").value) : (I.value = !1, i.value.customPath = "");
6185
6186
  },
@@ -6205,7 +6206,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6205
6206
  }, oe = () => {
6206
6207
  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 = "";
6207
6208
  }, _e = () => {
6208
- i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, y.value = !0, x.value = !0, k.value = !0, i.value.reportTheme = N("告警对象").value, g.value = "", h.value = "告警对象位置", b.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], d.value = [];
6209
+ i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, _.value = !0, x.value = !0, k.value = !0, i.value.reportTheme = N("告警对象").value, g.value = "", h.value = "告警对象位置", b.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], d.value = [];
6209
6210
  }, ze = (D) => {
6210
6211
  D == "eventTypeId" && (i.value.eventLevelId = null, oo()), D == "eventLevelId" && ro(), D == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (f.value = !0, i.value.timeLimit = "") : f.value = !1);
6211
6212
  }, ls = async () => {
@@ -6251,7 +6252,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6251
6252
  if (i.value.processTypeId == "dealwith")
6252
6253
  i.value.reason.trim() || (D = !1, u.value.reason = N("必填,最多50个字符/汉字").value), i.value.treatmentPlan.trim() || (D = !1, u.value.treatmentPlan = N("必填,最多50个字符/汉字").value);
6253
6254
  else if (i.value.processTypeId == "createorder")
6254
- y.value ? u.value.reportPosition = "" : !i.value.reportPosition && !i.value.customPath ? (D = !1, u.value.reportPosition = N("必填").value) : u.value.reportPosition = "", x.value || i.value.reportTheme ? u.value.reportTheme = "" : (D = !1, u.value.reportTheme = N("必填,最多20个汉字/字符").value), i.value.workOrderRules ? u.value.workOrderRules = "" : (D = !1, u.value.workOrderRules = N("必填").value);
6255
+ _.value ? u.value.reportPosition = "" : !i.value.reportPosition && !i.value.customPath ? (D = !1, u.value.reportPosition = N("必填").value) : u.value.reportPosition = "", x.value || i.value.reportTheme ? u.value.reportTheme = "" : (D = !1, u.value.reportTheme = N("必填,最多20个汉字/字符").value), i.value.workOrderRules ? u.value.workOrderRules = "" : (D = !1, u.value.workOrderRules = N("必填").value);
6255
6256
  else if (i.value.processTypeId == "createcontingency") {
6256
6257
  const P = /^[1-9][0-9]{0,2}$/;
6257
6258
  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);
@@ -6271,7 +6272,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6271
6272
  processTypeId: i.value.processTypeId
6272
6273
  //处理类型id
6273
6274
  };
6274
- i.value.processTypeId === "createorder" ? (D.path = y.value ? "" : i.value.customPath, D.topic = x.value ? "" : i.value.reportTheme, D.spaceId = y.value ? "" : i.value.reportPosition ?? "", D.orderId = i.value.workOrderRules) : i.value.processTypeId === "createcontingency" ? (D.eventTypeId = i.value.eventTypeId, D.eventLevelId = i.value.eventLevelId, D.timeLimit = i.value.interval == 3 ? null : Number(i.value.timeLimit), D.interval = i.value.interval) : (D.reason = i.value.reason, D.treatmentPlan = i.value.treatmentPlan, D.remarks = i.value.remarks), s.value = !0, r("emitFn", "startHandle");
6275
+ i.value.processTypeId === "createorder" ? (D.path = _.value ? "" : i.value.customPath, D.topic = x.value ? "" : i.value.reportTheme, D.spaceId = _.value ? "" : i.value.reportPosition ?? "", D.orderId = i.value.workOrderRules) : i.value.processTypeId === "createcontingency" ? (D.eventTypeId = i.value.eventTypeId, D.eventLevelId = i.value.eventLevelId, D.timeLimit = i.value.interval == 3 ? null : Number(i.value.timeLimit), D.interval = i.value.interval) : (D.reason = i.value.reason, D.treatmentPlan = i.value.treatmentPlan, D.remarks = i.value.remarks), s.value = !0, r("emitFn", "startHandle");
6275
6276
  const [P, L] = await ch(D, {
6276
6277
  params: {
6277
6278
  projectId: o.projectId
@@ -6312,7 +6313,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6312
6313
  ]),
6313
6314
  footer: B(() => [
6314
6315
  O("div", bh, [
6315
- R(v(He), {
6316
+ R(v(Ue), {
6316
6317
  size: "middle",
6317
6318
  onClick: fs
6318
6319
  }, {
@@ -6326,7 +6327,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6326
6327
  _: 1
6327
6328
  /* STABLE */
6328
6329
  }),
6329
- R(v(He), {
6330
+ R(v(Ue), {
6330
6331
  size: "middle",
6331
6332
  onClick: P[29] || (P[29] = (L) => so(1))
6332
6333
  }, {
@@ -6340,7 +6341,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6340
6341
  _: 1
6341
6342
  /* STABLE */
6342
6343
  }),
6343
- R(v(He), {
6344
+ R(v(Ue), {
6344
6345
  btnType: "primary",
6345
6346
  size: "middle",
6346
6347
  onClick: P[30] || (P[30] = (L) => so(2))
@@ -6455,7 +6456,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6455
6456
  keyword: C.value,
6456
6457
  "onUpdate:keyword": P[10] || (P[10] = (L) => C.value = L),
6457
6458
  showFullPath: !0,
6458
- data: _.value,
6459
+ data: y.value,
6459
6460
  placeholder: h.value,
6460
6461
  disabled: I.value,
6461
6462
  load: S,
@@ -6474,8 +6475,8 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6474
6475
  }, null, 8, ["modelValue", "disabled"])
6475
6476
  ]),
6476
6477
  R(v(fo), {
6477
- modelValue: y.value,
6478
- "onUpdate:modelValue": P[12] || (P[12] = (L) => y.value = L),
6478
+ modelValue: _.value,
6479
+ "onUpdate:modelValue": P[12] || (P[12] = (L) => _.value = L),
6479
6480
  checkboxType: "default",
6480
6481
  onChange: Rt,
6481
6482
  size: "middle"
@@ -6647,7 +6648,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6647
6648
  }, 8, ["modelValue"])
6648
6649
  ]));
6649
6650
  }
6650
- }), Ih = /* @__PURE__ */ Ce(Ch, [["__scopeId", "data-v-1ecf3324"]]), Th = (t, e, n) => ({
6651
+ }), Ih = /* @__PURE__ */ Ce(Ch, [["__scopeId", "data-v-a6a58a01"]]), Th = (t, e, n) => ({
6651
6652
  handleAlarmVue: () => he(Ih, {
6652
6653
  handerIds: e.value,
6653
6654
  projectId: Yt().id,
@@ -6691,8 +6692,8 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6691
6692
  },
6692
6693
  [
6693
6694
  O("div", kh, [
6694
- j(` <div class="icon-box" :style="{ color: msgItem.color }">\r
6695
- !\r
6695
+ j(` <div class="icon-box" :style="{ color: msgItem.color }">
6696
+ !
6696
6697
  </div> `),
6697
6698
  O(
6698
6699
  "div",
@@ -6760,7 +6761,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6760
6761
  )
6761
6762
  ]),
6762
6763
  O("div", Nh, [
6763
- a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? ($(), F(v(He), {
6764
+ a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? ($(), F(v(Ue), {
6764
6765
  key: 0,
6765
6766
  block: "",
6766
6767
  onClick: ue(s, ["stop"]),
@@ -6777,7 +6778,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6777
6778
  _: 1
6778
6779
  /* STABLE */
6779
6780
  })) : j("v-if", !0),
6780
- a.alarmhandle ? ($(), F(v(He), {
6781
+ a.alarmhandle ? ($(), F(v(Ue), {
6781
6782
  key: 1,
6782
6783
  block: "",
6783
6784
  btnType: "primary-text",
@@ -6884,13 +6885,13 @@ const Vh = () => {
6884
6885
  }
6885
6886
  if (!E.coverId) {
6886
6887
  if (i.value.playLine === null) {
6887
- C(), Number(E.noticeNum) != 0 && _(E);
6888
+ C(), Number(E.noticeNum) != 0 && y(E);
6888
6889
  return;
6889
6890
  }
6890
- Number(E.alarmLevelId) < i.value.playLine && (C(), Number(E.noticeNum) != 0 && _(E));
6891
+ Number(E.alarmLevelId) < i.value.playLine && (C(), Number(E.noticeNum) != 0 && y(E));
6891
6892
  }
6892
6893
  }
6893
- }, _ = (E) => {
6894
+ }, y = (E) => {
6894
6895
  const k = Number(E.noticeNum), x = location.origin + "/oss";
6895
6896
  i.value.isplay && i.value.playId == E.recordId ? C() : (k < 0 ? i.value.loop = !0 : i.value.loop = !1, k > 0 ? (i.value.loopTotalCount = Number(E.noticeNum), i.value.loopCount = 0) : (i.value.loopTotalCount = 0, i.value.loopCount = 0), i.value.isplay = !0, i.value.playId = E.recordId, i.value.playLine = Number(E.alarmLevelId), i.value.playPath = x + E.noticePath, I());
6896
6897
  }, C = () => {
@@ -6899,7 +6900,7 @@ const Vh = () => {
6899
6900
  o.value.onended = function() {
6900
6901
  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());
6901
6902
  };
6902
- }, y = async () => {
6903
+ }, _ = async () => {
6903
6904
  const [E, k] = await lh().run();
6904
6905
  E || (c.value = k.isEnable);
6905
6906
  };
@@ -6910,7 +6911,7 @@ const Vh = () => {
6910
6911
  audioAlarmRef: o,
6911
6912
  handleAlarmVue: d,
6912
6913
  creatAlarmSocket: async () => {
6913
- y();
6914
+ _();
6914
6915
  const [E, k] = await sh().run({
6915
6916
  code: "alarm",
6916
6917
  showBtn: !0
@@ -6929,7 +6930,7 @@ const Vh = () => {
6929
6930
  Q && t.value.send(Q);
6930
6931
  },
6931
6932
  message: async (Q) => {
6932
- le.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: Q }), Q.messageType === "ADD" && (e.value = e.value + 1, Q.coverId || g(Q)), Q.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == Q.recordId && C());
6933
+ le.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: Q }), window.self === window.top && (Q.messageType === "ADD" && (e.value = e.value + 1, Q.coverId || g(Q)), Q.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == Q.recordId && C()));
6933
6934
  }
6934
6935
  }));
6935
6936
  }
@@ -6969,7 +6970,7 @@ const Vh = () => {
6969
6970
  const { $changePwd: u, $personSetDialog: f } = yp(), { changeEnterprisesVisible: p, userId: d, tenantId: m, changeEnterprise: A } = os();
6970
6971
  hp();
6971
6972
  const { fontColor: g, backgroudColor: h, borderColor: b } = mp();
6972
- return Pp(), Lp(c), $p(), Mp(), pf(), oh(), (_, C) => ($(), V("div", qh, [
6973
+ return Pp(), Lp(c), $p(), Mp(), pf(), oh(), (y, C) => ($(), V("div", qh, [
6973
6974
  R(v(Ci), { platformInitNextTick: v(a) }, {
6974
6975
  default: B(() => [
6975
6976
  R(_i, {
@@ -7017,20 +7018,20 @@ const Vh = () => {
7017
7018
  R(v(zh))
7018
7019
  ]));
7019
7020
  }
7020
- }), Kh = /* @__PURE__ */ Ce(Jh, [["__scopeId", "data-v-45ef70df"]]);
7021
+ }), Kh = /* @__PURE__ */ Ce(Jh, [["__scopeId", "data-v-6e85c13f"]]);
7021
7022
  T("@das-fed/web");
7022
7023
  const Gh = [
7023
7024
  {
7024
- path: Ue,
7025
- component: () => import("./index-bUBu99dZ.js")
7025
+ path: je,
7026
+ component: () => import("./index-CicbdbyR.js")
7026
7027
  },
7027
7028
  {
7028
7029
  path: ct,
7029
- component: () => import("./index-B3m4y2dw.js")
7030
+ component: () => import("./index-C8k4wrGJ.js")
7030
7031
  },
7031
7032
  {
7032
7033
  path: Tr,
7033
- component: () => import("./index-B-XOjXDJ.js")
7034
+ component: () => import("./index-C-ieIBXO.js")
7034
7035
  }
7035
7036
  ], im = {
7036
7037
  routes: Gh,