@das-fed/web 6.4.0-dev.22 → 6.4.0-dev.23

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.
@@ -1,4 +1,4 @@
1
- import { ref as T, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as R, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as M, normalizeClass as rr, normalizeStyle as yn, renderSlot as pe, createVNode as x, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as fe, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as _s, getCurrentInstance as ws, onActivated as bs, createTextVNode as ye, toDisplayString as se, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as le, toRefs as Is, isRef as Ts } from "vue";
1
+ import { ref as T, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as R, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as M, normalizeClass as rr, normalizeStyle as yn, renderSlot as pe, createVNode as x, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as fe, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as _s, getCurrentInstance as ws, onActivated as bs, createTextVNode as Ae, toDisplayString as se, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as le, toRefs as Is, isRef as Ts } from "vue";
2
2
  import { initTheme as Es, setThemeRule as Ss } from "@das-fed/web/packages/theme/index";
3
3
  import { initI18n as ks, i18n as N } from "@das-fed/web/packages/i18n/index";
4
4
  import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as O } from "@das-fed/web/packages/layout/index";
@@ -10,7 +10,7 @@ import { DasChangeEnterprises as Bs } from "@das-fed/ui/packages/business-compon
10
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
12
  import { flatTree as Me, filterTreeArray as Rs, isEmpty as xs, treeFind as lo, updateFavIcon as Qs, dateFormat as js, runPromiseByQueue as Ns, objEqual as _n, setShowWatermark as wn, setShowLayout as bn, getUrlParams as Hs, withToken as Us } from "@das-fed/utils/common-tools";
13
- import { getSubApps as J, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as On, getProjectInfo as Fe, getToken as Bn, getUserInfo as cr, getMenus as zt } from "@das-fed/utils/common-info";
13
+ import { getSubApps as J, getTabInfo as me, getPersonalInfo as Yt, getTenantInfo as On, getProjectInfo as Fe, getToken as Bn, getUserInfo as cr, getMenus as zt } from "@das-fed/utils/common-info";
14
14
  import { setProcessEngineProject as lr, setProcessEngineToken as ur } from "@das-fed/utils/process-engine-info";
15
15
  import { oauthServer as dr, justauth as Rn, enterpriseright as xn, iotModules as Fs, 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";
@@ -19,7 +19,7 @@ import { systemConfiguration as Ws, enterpriseright as jn, createService as ft,
19
19
  import { getConfig as tt } from "@das-fed/utils/config";
20
20
  import Cn from "dayjs";
21
21
  import { getAccessToken as zs, removeAccessToken as qs } from "@das-fed/utils/token-tools";
22
- import { microFrontend as ge } from "@das-fed/web/packages/micro-frontend/index";
22
+ import { microFrontend as ye } from "@das-fed/web/packages/micro-frontend/index";
23
23
  import { DasDialog as Nn } from "@das-fed/ui/packages/components/dialog/index";
24
24
  import { DasButton as Ue } from "@das-fed/ui/packages/components/button/index";
25
25
  import { vDasTooltip as Js } from "@das-fed/ui/packages/components/text-tooltip/index";
@@ -30,7 +30,7 @@ import { DasIcon as qe, DasAutoRegisterIcon as hr } from "@das-fed/ui/packages/c
30
30
  import { socketService as Hn } from "@das-fed/utils/webSocket-service";
31
31
  import { userInfoNextTick as ea, 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 me } from "@das-fed/ui/packages/components/tooltip/index";
33
+ import { DasTooltip as ge } from "@das-fed/ui/packages/components/tooltip/index";
34
34
  import { DasLivePlayer as ta } from "@das-fed/ui/packages/components/live-player/index";
35
35
  import { DasSpin as gr } from "@das-fed/ui/packages/components/spin/index";
36
36
  import { DasWatermark as na } from "@das-fed/ui/packages/components/watermark/index";
@@ -1604,7 +1604,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1604
1604
  v === "false" && (v = !1), h(g && !!(d && v));
1605
1605
  },
1606
1606
  { immediate: !0 }
1607
- ), ge.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
1607
+ ), ye.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
1608
1608
  var d, v;
1609
1609
  await p();
1610
1610
  const _ = !!((d = n.value) != null && d.pageSwith);
@@ -1658,7 +1658,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1658
1658
  onClick: n.closeCallback
1659
1659
  }, {
1660
1660
  default: R(() => o[2] || (o[2] = [
1661
- ye("我知道了")
1661
+ Ae("我知道了")
1662
1662
  ])),
1663
1663
  _: 1
1664
1664
  /* STABLE */
@@ -1688,7 +1688,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1688
1688
  key: s,
1689
1689
  class: "desc-item"
1690
1690
  }, [
1691
- ye(
1691
+ Ae(
1692
1692
  se(r),
1693
1693
  1
1694
1694
  /* TEXT */
@@ -1737,8 +1737,8 @@ const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
1737
1737
  sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
1738
1738
  }, Mi = () => {
1739
1739
  sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
1740
- }, Ae = (t) => {
1741
- let e = ve();
1740
+ }, ve = (t) => {
1741
+ let e = me();
1742
1742
  t.forEach((n) => {
1743
1743
  var o;
1744
1744
  if (n.key.startsWith("tabMap")) {
@@ -2465,7 +2465,7 @@ const Kt = (t, e = "") => {
2465
2465
  }, $n = (t) => {
2466
2466
  const e = J().subAppList ?? [];
2467
2467
  let { index: n, target: o } = kd(e, t);
2468
- return e.splice(n, 1), e.length ? ke([{ key: "subAppList", value: e }]) : Fn(), Ae([
2468
+ return e.splice(n, 1), e.length ? ke([{ key: "subAppList", value: e }]) : Fn(), ve([
2469
2469
  { key: "currentCode", value: "" },
2470
2470
  { key: "currentTab", value: {} },
2471
2471
  { key: `preTab:${t}`, value: {} },
@@ -2476,9 +2476,9 @@ const Kt = (t, e = "") => {
2476
2476
  return { left: o, right: r };
2477
2477
  }, Ld = (t, e, n) => {
2478
2478
  var h;
2479
- const o = Me(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((h = ve()) == null ? void 0 : h.tabMap) ?? {})[t] ?? [], { left: a, right: l } = Pd(s, n), c = s.filter((p) => o.find((f) => f.code === p.code));
2479
+ const o = Me(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((h = me()) == null ? void 0 : h.tabMap) ?? {})[t] ?? [], { left: a, right: l } = Pd(s, n), c = s.filter((p) => o.find((f) => f.code === p.code));
2480
2480
  if (!a.length && !l.length || !c.length)
2481
- return Ae([
2481
+ return ve([
2482
2482
  { key: "currentCode", value: "" },
2483
2483
  { key: "currentTab", value: {} },
2484
2484
  { key: `preTab:${t}`, value: {} },
@@ -2493,7 +2493,7 @@ const Kt = (t, e = "") => {
2493
2493
  const p = a.reverse().find((f) => c.map((w) => w.code).includes(f.code));
2494
2494
  p && (i = p);
2495
2495
  }
2496
- return i ? (Ae([
2496
+ return i ? (ve([
2497
2497
  {
2498
2498
  key: "currentCode",
2499
2499
  value: i.code
@@ -2507,7 +2507,7 @@ const Kt = (t, e = "") => {
2507
2507
  value: i
2508
2508
  },
2509
2509
  { key: `tabMap:${t}`, value: c }
2510
- ]), Er(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (Ae([
2510
+ ]), Er(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (ve([
2511
2511
  { key: `preTab:${t}`, value: {} },
2512
2512
  { key: `tabMap:${t}`, value: [] }
2513
2513
  ]), $n(t));
@@ -2557,12 +2557,12 @@ const Kt = (t, e = "") => {
2557
2557
  }
2558
2558
  }
2559
2559
  if (s && a) {
2560
- const d = (ve().tabMap ?? {})[e.code] ?? [];
2560
+ const d = (me().tabMap ?? {})[e.code] ?? [];
2561
2561
  if (d.length) {
2562
2562
  const v = d.filter(
2563
2563
  (A) => n && n === A.code || o && o === `/${A.applicationPath}${A.path}`.replace(/\/\//g, "/") || Me(c).map((C) => C.code).includes(A.code)
2564
2564
  );
2565
- Ae([
2565
+ ve([
2566
2566
  {
2567
2567
  key: `tabMap:${e.code}`,
2568
2568
  value: v
@@ -2616,7 +2616,7 @@ const Kt = (t, e = "") => {
2616
2616
  path: h.routeUrl,
2617
2617
  query: v
2618
2618
  };
2619
- Ae([
2619
+ ve([
2620
2620
  {
2621
2621
  key: "currentCode",
2622
2622
  value: h.code
@@ -2705,7 +2705,7 @@ const Kt = (t, e = "") => {
2705
2705
  style: { "margin-right": "12px" }
2706
2706
  }, {
2707
2707
  default: R(() => u[6] || (u[6] = [
2708
- ye("取消")
2708
+ Ae("取消")
2709
2709
  ])),
2710
2710
  _: 1
2711
2711
  /* STABLE */
@@ -2717,7 +2717,7 @@ const Kt = (t, e = "") => {
2717
2717
  onClick: c
2718
2718
  }, {
2719
2719
  default: R(() => u[7] || (u[7] = [
2720
- ye("确定")
2720
+ Ae("确定")
2721
2721
  ])),
2722
2722
  _: 1
2723
2723
  /* STABLE */
@@ -2747,7 +2747,7 @@ const Kt = (t, e = "") => {
2747
2747
  onChange: u[1] || (u[1] = (h) => l(1))
2748
2748
  }, {
2749
2749
  default: R(() => [
2750
- ye(
2750
+ Ae(
2751
2751
  se(m(N)("弹出式菜单栏").value),
2752
2752
  1
2753
2753
  /* TEXT */
@@ -2770,7 +2770,7 @@ const Kt = (t, e = "") => {
2770
2770
  onChange: u[3] || (u[3] = (h) => l(2))
2771
2771
  }, {
2772
2772
  default: R(() => [
2773
- ye(
2773
+ Ae(
2774
2774
  se(m(N)("内嵌式菜单栏").value),
2775
2775
  1
2776
2776
  /* TEXT */
@@ -2930,7 +2930,7 @@ const Kt = (t, e = "") => {
2930
2930
  var i;
2931
2931
  const s = J();
2932
2932
  if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
2933
- const c = (ve().tabMap[r.code] ?? []).map((u) => u.code);
2933
+ const c = (me().tabMap[r.code] ?? []).map((u) => u.code);
2934
2934
  c && c.length && Ut(r.code, c), e(r);
2935
2935
  });
2936
2936
  const { enter: o } = ht();
@@ -2948,7 +2948,7 @@ const Kt = (t, e = "") => {
2948
2948
  l = dt(d.path), c = dt(d.query);
2949
2949
  const C = J().currentSubAppCode ?? "";
2950
2950
  if (!C) return;
2951
- const I = ((k = d.query) == null ? void 0 : k.menu) ?? ((Q = ve()) == null ? void 0 : Q.currentCode) ?? "";
2951
+ const I = ((k = d.query) == null ? void 0 : k.menu) ?? ((Q = me()) == null ? void 0 : Q.currentCode) ?? "";
2952
2952
  if (!I) return;
2953
2953
  const y = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
2954
2954
  y && JSON.stringify(y) !== "{}" && (r.value = (B = y[C][I]) != null && B.fontColor ? y[C][I].fontColor : e, s.value = (V = y[C][I]) != null && V.backgroundColor ? y[C][I].backgroundColor : n, a.value = (q = y[C][I]) != null && q.backgroundColor ? y[C][I].backgroundColor : o);
@@ -2956,7 +2956,7 @@ const Kt = (t, e = "") => {
2956
2956
  );
2957
2957
  const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: h, unloadRoute: p } = es(), f = (d) => {
2958
2958
  var I;
2959
- const v = Me(zt(d.applicationCode)).find((y) => y.code === d.code), C = (((I = ve().tabMap) == null ? void 0 : I[d.applicationCode]) ?? []).find((y) => y.code === d.code);
2959
+ const v = Me(zt(d.applicationCode)).find((y) => y.code === d.code), C = (((I = me().tabMap) == null ? void 0 : I[d.applicationCode]) ?? []).find((y) => y.code === d.code);
2960
2960
  u({ currentMenu: v, route: { path: C.path, query: C.query ?? {} } });
2961
2961
  }, w = (d) => {
2962
2962
  if (!d || !d.length) return;
@@ -2965,7 +2965,7 @@ const Kt = (t, e = "") => {
2965
2965
  }, _ = (d) => {
2966
2966
  const v = J().currentSubAppCode ?? "";
2967
2967
  ce.innerSet = !0;
2968
- const A = ve(), C = A.tabMap[v], I = C.findIndex((B) => B.code === d.data.code);
2968
+ const A = me(), C = A.tabMap[v], I = C.findIndex((B) => B.code === d.data.code);
2969
2969
  if (I === -1) return;
2970
2970
  const y = () => {
2971
2971
  var q;
@@ -2980,7 +2980,7 @@ const Kt = (t, e = "") => {
2980
2980
  }
2981
2981
  const V = A.currentCode;
2982
2982
  let q = null;
2983
- V === B.value && (I + 1 === C.length ? C[I - 1] && (q = C[I - 1]) : C[I + 1] && (q = C[I + 1])), C.splice(I, 1), w([B]), Ae([{ key: `tabMap:${v}`, value: C }]), q ? f(q) : Ae([{ key: `preTab:${v}`, value: {} }]);
2983
+ V === B.value && (I + 1 === C.length ? C[I - 1] && (q = C[I - 1]) : C[I + 1] && (q = C[I + 1])), C.splice(I, 1), w([B]), ve([{ key: `tabMap:${v}`, value: C }]), q ? f(q) : ve([{ key: `preTab:${v}`, value: {} }]);
2984
2984
  },
2985
2985
  all: y,
2986
2986
  other: async (B) => {
@@ -2990,7 +2990,7 @@ const Kt = (t, e = "") => {
2990
2990
  query: V.query
2991
2991
  }), O.menu.setActiveItem(V.menuId), O.tab.setActiveItem(V.code);
2992
2992
  const q = C.filter((ie) => ie.code !== B.value);
2993
- q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), Ae([{ key: `tabMap:${v}`, value: [V] }]), f(V);
2993
+ q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), ve([{ key: `tabMap:${v}`, value: [V] }]), f(V);
2994
2994
  },
2995
2995
  right: async (B) => {
2996
2996
  const V = A.currentCode;
@@ -2999,18 +2999,18 @@ const Kt = (t, e = "") => {
2999
2999
  f(Ie);
3000
3000
  }
3001
3001
  const q = C.slice(I + 1);
3002
- q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), C.splice(I + 1), Ae([{ key: `tabMap:${v}`, value: C }]);
3002
+ q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), C.splice(I + 1), ve([{ key: `tabMap:${v}`, value: C }]);
3003
3003
  }
3004
3004
  })[d.type](d.data);
3005
3005
  };
3006
3006
  O.tab.addEventListener("onItemClick", async (d) => {
3007
- ve().currentCode !== d.currentCode && (ce.innerSet = !0, f(d));
3007
+ me().currentCode !== d.currentCode && (ce.innerSet = !0, f(d));
3008
3008
  }), O.tab.addEventListener("onItemRemove", (d) => {
3009
- const v = ve(), A = J().currentSubAppCode ?? "";
3009
+ const v = me(), A = J().currentSubAppCode ?? "";
3010
3010
  v.tabMap[A].findIndex((y) => y.code === d.code) !== -1 && (Ut(d.applicationCode, [d.code]), _({ type: "me", data: d }));
3011
3011
  }), O.tab.addEventListener("onMenuClick", (d) => {
3012
3012
  let v = [];
3013
- const A = ve().tabMap[d.applicationCode] ?? [];
3013
+ const A = me().tabMap[d.applicationCode] ?? [];
3014
3014
  if (d.type.key === "right") {
3015
3015
  const C = A.findIndex((I) => I.code === d.data.value);
3016
3016
  v = A.slice(C + 1);
@@ -3051,7 +3051,7 @@ const Kt = (t, e = "") => {
3051
3051
  }
3052
3052
  const n = J();
3053
3053
  n.subAppList && n.subAppList.length && sessionStorage.setItem("has-subapp", "true"), t();
3054
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), ge.addEventListenerFromMicroApp("system-reload", () => {
3054
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), ye.addEventListenerFromMicroApp("system-reload", () => {
3055
3055
  t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
3056
3056
  });
3057
3057
  }, vt = () => {
@@ -3125,7 +3125,7 @@ const Kt = (t, e = "") => {
3125
3125
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
3126
3126
  }), S && (S == null ? void 0 : S.code) !== (f == null ? void 0 : f.code)) {
3127
3127
  if (S.fixed && (t.push(S.path), l(), O.nav.setActiveItem(S.path)), !S.fixed) {
3128
- const de = (Ie = J().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === S.code), oe = ve().preTab[S.code], _e = { ...(oe == null ? void 0 : oe.query) ?? {} };
3128
+ const de = (Ie = J().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === S.code), oe = me().preTab[S.code], _e = { ...(oe == null ? void 0 : oe.query) ?? {} };
3129
3129
  await i({ microApp: de, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query: _e } });
3130
3130
  }
3131
3131
  return;
@@ -3146,7 +3146,7 @@ const Kt = (t, e = "") => {
3146
3146
  const _e = { ...oe, value: oe.code, label: oe.name };
3147
3147
  O.nav.appendItem(_e);
3148
3148
  }), O.nav.setActiveItem(B.code), O.menu.setItems(y);
3149
- const de = ve().tabMap[B.code] ?? [];
3149
+ const de = me().tabMap[B.code] ?? [];
3150
3150
  de.length && de.forEach((oe) => {
3151
3151
  O.tab.appendItem({
3152
3152
  ...oe,
@@ -3162,14 +3162,14 @@ const Kt = (t, e = "") => {
3162
3162
  t.push(p.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(p.path), ke([
3163
3163
  { key: "currentSubAppCode", value: "" },
3164
3164
  { key: "currentSubApp", value: {} }
3165
- ]), Ae([
3165
+ ]), ve([
3166
3166
  { key: "currentCode", value: "" },
3167
3167
  { key: "currentTab", value: {} }
3168
3168
  ]);
3169
3169
  return;
3170
3170
  }
3171
3171
  if (!p.fixed) {
3172
- const w = (f = J().subAppList) == null ? void 0 : f.find((v) => v.code === p.code), _ = ve().preTab[p.code], g = (_ == null ? void 0 : _.code) ?? "", d = { ...(_ == null ? void 0 : _.query) ?? {} };
3172
+ const w = (f = J().subAppList) == null ? void 0 : f.find((v) => v.code === p.code), _ = me().preTab[p.code], g = (_ == null ? void 0 : _.code) ?? "", d = { ...(_ == null ? void 0 : _.query) ?? {} };
3173
3173
  await i({ microApp: w, menuCode: g, route: { query: d } });
3174
3174
  }
3175
3175
  };
@@ -3183,13 +3183,13 @@ const Kt = (t, e = "") => {
3183
3183
  if (!((d = f.subAppList) != null && d.length)) return;
3184
3184
  const w = f.subAppList.findIndex((v) => v.code === p.code);
3185
3185
  if (w === -1) return;
3186
- const _ = ve().tabMap[p.code] ?? [];
3186
+ const _ = me().tabMap[p.code] ?? [];
3187
3187
  if (_.length) {
3188
3188
  const v = _.map((A) => A.path);
3189
3189
  n(v);
3190
3190
  }
3191
3191
  let g = null;
3192
- if (f.currentSubAppCode === p.code && (w + 1 !== f.subAppList.length ? f.subAppList[w + 1] && (g = f.subAppList[w + 1]) : f.subAppList[w - 1] && (g = f.subAppList[w - 1])), f.subAppList.splice(w, 1), ke([{ key: "subAppList", value: f.subAppList }]), Ae([
3192
+ if (f.currentSubAppCode === p.code && (w + 1 !== f.subAppList.length ? f.subAppList[w + 1] && (g = f.subAppList[w + 1]) : f.subAppList[w - 1] && (g = f.subAppList[w - 1])), f.subAppList.splice(w, 1), ke([{ key: "subAppList", value: f.subAppList }]), ve([
3193
3193
  { key: `preTab:${p.code}`, value: {} },
3194
3194
  { key: `tabMap:${p.code}`, value: [] }
3195
3195
  ]), g) {
@@ -3216,18 +3216,18 @@ const Kt = (t, e = "") => {
3216
3216
  if (u === 1)
3217
3217
  if (h === 1)
3218
3218
  if (a.routeUrl.startsWith(ct)) {
3219
- ge.hideAllMicroApp(), p = ct;
3219
+ ye.hideAllMicroApp(), p = ct;
3220
3220
  const g = Hs(a.routeUrl, "iframeSrc");
3221
3221
  i = { ...i, iframeSrc: g }, t.push({ path: p, query: i });
3222
3222
  } else a.applicationPath && (p = c || a.routeUrl, p = `/${a.applicationPath}${p}`.replace(/\/\//g, "/"), t.push({ path: p, query: i }));
3223
3223
  else {
3224
- ge.hideAllMicroApp(), p = ct;
3224
+ ye.hideAllMicroApp(), p = ct;
3225
3225
  const g = En(wn(bn(a.routeUrl)));
3226
3226
  i = { ...i, iframeSrc: g }, t.push({ path: p, query: i });
3227
3227
  }
3228
3228
  if (u === 2) {
3229
3229
  let g = h === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
3230
- g = En(wn(bn(g))), ce.innerSet ? (ge.hideAllMicroApp(), p = Cr, t.push({ path: p, query: i }), g && window.open(g, "_blank")) : h === 1 && (p = g, i = { ...i, showLayout: !1 }, t.push({
3230
+ g = En(wn(bn(g))), ce.innerSet ? (ye.hideAllMicroApp(), p = Cr, t.push({ path: p, query: i }), g && window.open(g, "_blank")) : h === 1 && (p = g, i = { ...i, showLayout: !1 }, t.push({
3231
3231
  path: p,
3232
3232
  query: i
3233
3233
  }));
@@ -3249,7 +3249,7 @@ const Kt = (t, e = "") => {
3249
3249
  ...g,
3250
3250
  value: g.code,
3251
3251
  label: g.name
3252
- }), O.tab.setActiveItem(a.code), O.menu.setActiveItem(a.id), Er(a.code), Ae([
3252
+ }), O.tab.setActiveItem(a.code), O.menu.setActiveItem(a.id), Er(a.code), ve([
3253
3253
  {
3254
3254
  key: "currentCode",
3255
3255
  value: a.code
@@ -3308,7 +3308,7 @@ const Kt = (t, e = "") => {
3308
3308
  (E) => g === E.code || _.includes(E.code)
3309
3309
  );
3310
3310
  ke([{ key: "subAppList", value: S }]), y && y.length && y.forEach((E) => {
3311
- Ae([
3311
+ ve([
3312
3312
  { key: `preTab:${E.code}`, value: {} },
3313
3313
  { key: `tabMap:${E.code}`, value: [] }
3314
3314
  ]);
@@ -3320,11 +3320,11 @@ const Kt = (t, e = "") => {
3320
3320
  const { currentApp: S } = $n(i.query.app);
3321
3321
  if (S) {
3322
3322
  y = S;
3323
- const k = (ve().preTab ?? {})[y.code];
3323
+ const k = (me().preTab ?? {})[y.code];
3324
3324
  i = {}, k && (i.path = `/${k.applicationPath}${k.path}`.replace(/\/\//g, "/"), i.query = k.query);
3325
3325
  }
3326
3326
  }
3327
- y != null && y.fixed ? (O.menu.setItems([]), O.tab.setItems([]), r.push(y.path), O.nav.setActiveItem(y.path), ge.hideAllMicroApp()) : o({ microApp: y, menuCode: i.query.menu, menuPath: i.path, route: i });
3327
+ y != null && y.fixed ? (r.push(y.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(y.path)) : o({ microApp: y, menuCode: i.query.menu, menuPath: i.path, route: i });
3328
3328
  return;
3329
3329
  } else {
3330
3330
  const y = p && p.find(
@@ -3344,7 +3344,7 @@ const Kt = (t, e = "") => {
3344
3344
  }
3345
3345
  }
3346
3346
  if (u) {
3347
- ge.hideAllMicroApp(), (I = (C = J()) == null ? void 0 : C.subAppList) == null || I.forEach((S) => {
3347
+ (I = (C = J()) == null ? void 0 : C.subAppList) == null || I.forEach((S) => {
3348
3348
  const E = { ...S, value: S.code, label: S.name };
3349
3349
  O.nav.appendItem(E);
3350
3350
  });
@@ -3352,7 +3352,7 @@ const Kt = (t, e = "") => {
3352
3352
  y && (O.nav.setActiveItem(y.path), O.menu.setItems([]), O.tab.setItems([]), ke([
3353
3353
  { key: "currentSubAppCode", value: "" },
3354
3354
  { key: "currentSubApp", value: {} }
3355
- ]), Ae([
3355
+ ]), ve([
3356
3356
  { key: "currentCode", value: "" },
3357
3357
  { key: "currentTab", value: {} }
3358
3358
  ]));
@@ -3508,7 +3508,7 @@ const Kt = (t, e = "") => {
3508
3508
  excludeRoutes: [],
3509
3509
  routeKeepAliveVisible: !0
3510
3510
  }), Tp = () => {
3511
- ge.addEventListenerFromMicroApp("iot:change-instance", (t) => {
3511
+ ye.addEventListenerFromMicroApp("iot:change-instance", (t) => {
3512
3512
  const e = J(), n = e.currentSubAppCode;
3513
3513
  let o = zt(n);
3514
3514
  o.forEach((s) => {
@@ -3530,21 +3530,21 @@ const Kt = (t, e = "") => {
3530
3530
  });
3531
3531
  }, Ep = (t) => {
3532
3532
  ["personcenter", "rightmanage"].forEach((n) => {
3533
- ge.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
3533
+ ye.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
3534
3534
  const { userInfo: r } = o.data, s = r != null && r.headPicture ? Mn(r.headPicture) : void 0;
3535
3535
  O.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
3536
3536
  });
3537
3537
  });
3538
3538
  }, Sp = () => {
3539
- ge.addEventListenerFromMicroApp("devicePanelShow", (t) => {
3539
+ ye.addEventListenerFromMicroApp("devicePanelShow", (t) => {
3540
3540
  const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
3541
3541
  fr(e, n, o, r, s, a);
3542
- }), ge.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
3542
+ }), ye.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
3543
3543
  Xs();
3544
- }), ge.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
3544
+ }), ye.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
3545
3545
  const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
3546
3546
  Zs(e, n, o);
3547
- }), ge.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
3547
+ }), ye.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
3548
3548
  Ys();
3549
3549
  });
3550
3550
  }, kp = Qn.get("/platform/login/pwd-advance-notify-check"), Pp = () => {
@@ -3560,7 +3560,7 @@ const Kt = (t, e = "") => {
3560
3560
  await kp().run();
3561
3561
  },
3562
3562
  message: async (a) => {
3563
- if (ge.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
3563
+ if (ye.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
3564
3564
  const c = Fe().id;
3565
3565
  t.value = a.filter(
3566
3566
  (i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
@@ -3701,7 +3701,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3701
3701
  onDblclick: s[9] || (s[9] = le((a) => a.stopPropagation(), ["stop"]))
3702
3702
  },
3703
3703
  [
3704
- x(m(me), { content: "左上" }, {
3704
+ x(m(ge), { content: "左上" }, {
3705
3705
  default: R(() => [
3706
3706
  M("div", {
3707
3707
  class: "icon icon-top-left",
@@ -3711,7 +3711,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3711
3711
  _: 1
3712
3712
  /* STABLE */
3713
3713
  }),
3714
- x(m(me), { content: "上" }, {
3714
+ x(m(ge), { content: "上" }, {
3715
3715
  default: R(() => [
3716
3716
  M("div", {
3717
3717
  class: "icon icon-top",
@@ -3721,7 +3721,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3721
3721
  _: 1
3722
3722
  /* STABLE */
3723
3723
  }),
3724
- x(m(me), { content: "右上" }, {
3724
+ x(m(ge), { content: "右上" }, {
3725
3725
  default: R(() => [
3726
3726
  M("div", {
3727
3727
  class: "icon icon-top-right",
@@ -3731,7 +3731,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3731
3731
  _: 1
3732
3732
  /* STABLE */
3733
3733
  }),
3734
- x(m(me), { content: "左" }, {
3734
+ x(m(ge), { content: "左" }, {
3735
3735
  default: R(() => [
3736
3736
  M("div", {
3737
3737
  class: "icon icon-left",
@@ -3741,7 +3741,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3741
3741
  _: 1
3742
3742
  /* STABLE */
3743
3743
  }),
3744
- x(m(me), { content: "自动" }, {
3744
+ x(m(ge), { content: "自动" }, {
3745
3745
  default: R(() => [
3746
3746
  M("div", {
3747
3747
  class: "icon icon-auto",
@@ -3751,7 +3751,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3751
3751
  _: 1
3752
3752
  /* STABLE */
3753
3753
  }),
3754
- x(m(me), { content: "右" }, {
3754
+ x(m(ge), { content: "右" }, {
3755
3755
  default: R(() => [
3756
3756
  M("div", {
3757
3757
  class: "icon icon-right",
@@ -3761,7 +3761,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3761
3761
  _: 1
3762
3762
  /* STABLE */
3763
3763
  }),
3764
- x(m(me), { content: "左下" }, {
3764
+ x(m(ge), { content: "左下" }, {
3765
3765
  default: R(() => [
3766
3766
  M("div", {
3767
3767
  class: "icon icon-bottom-left",
@@ -3771,7 +3771,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3771
3771
  _: 1
3772
3772
  /* STABLE */
3773
3773
  }),
3774
- x(m(me), { content: "下" }, {
3774
+ x(m(ge), { content: "下" }, {
3775
3775
  default: R(() => [
3776
3776
  M("div", {
3777
3777
  class: "icon icon-bottom",
@@ -3781,7 +3781,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3781
3781
  _: 1
3782
3782
  /* STABLE */
3783
3783
  }),
3784
- x(m(me), { content: "右下" }, {
3784
+ x(m(ge), { content: "右下" }, {
3785
3785
  default: R(() => [
3786
3786
  M("div", {
3787
3787
  class: "icon icon-bottom-right",
@@ -3938,7 +3938,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3938
3938
  onDblclick: C[2] || (C[2] = le((I) => I.stopPropagation(), ["stop"]))
3939
3939
  },
3940
3940
  [
3941
- x(m(me), { content: "声音" }, {
3941
+ x(m(ge), { content: "声音" }, {
3942
3942
  default: R(() => [
3943
3943
  x(m(qe), {
3944
3944
  class: "icon icon-volume",
@@ -3949,7 +3949,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3949
3949
  _: 1
3950
3950
  /* STABLE */
3951
3951
  }),
3952
- x(m(me), { content: "截图" }, {
3952
+ x(m(ge), { content: "截图" }, {
3953
3953
  default: R(() => [
3954
3954
  x(m(qe), {
3955
3955
  class: "icon icon-screenshot",
@@ -3960,7 +3960,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3960
3960
  _: 1
3961
3961
  /* STABLE */
3962
3962
  }),
3963
- v("control") ? ($(), F(m(me), {
3963
+ v("control") ? ($(), F(m(ge), {
3964
3964
  key: 0,
3965
3965
  content: "聚焦-"
3966
3966
  }, {
@@ -3975,7 +3975,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3975
3975
  _: 1
3976
3976
  /* STABLE */
3977
3977
  })) : j("v-if", !0),
3978
- v("control") ? ($(), F(m(me), {
3978
+ v("control") ? ($(), F(m(ge), {
3979
3979
  key: 1,
3980
3980
  content: "聚焦+"
3981
3981
  }, {
@@ -3990,7 +3990,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3990
3990
  _: 1
3991
3991
  /* STABLE */
3992
3992
  })) : j("v-if", !0),
3993
- v("control") ? ($(), F(m(me), {
3993
+ v("control") ? ($(), F(m(ge), {
3994
3994
  key: 2,
3995
3995
  content: "方向控制"
3996
3996
  }, {
@@ -4158,7 +4158,7 @@ const nf = /* @__PURE__ */ ne({
4158
4158
  -1
4159
4159
  /* HOISTED */
4160
4160
  )),
4161
- x(m(me), { content: "页面全屏" }, {
4161
+ x(m(ge), { content: "页面全屏" }, {
4162
4162
  default: R(() => [
4163
4163
  x(m(qe), {
4164
4164
  class: "icon",
@@ -6311,7 +6311,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6311
6311
  "destroy-on-close": ""
6312
6312
  }, {
6313
6313
  header: R(() => [
6314
- ye(
6314
+ Ae(
6315
6315
  se(m(N)("告警处理").value),
6316
6316
  1
6317
6317
  /* TEXT */
@@ -6324,7 +6324,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6324
6324
  onClick: ds
6325
6325
  }, {
6326
6326
  default: R(() => [
6327
- ye(
6327
+ Ae(
6328
6328
  se(m(N)("取消").value),
6329
6329
  1
6330
6330
  /* TEXT */
@@ -6338,7 +6338,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6338
6338
  onClick: P[29] || (P[29] = (L) => so(1))
6339
6339
  }, {
6340
6340
  default: R(() => [
6341
- ye(
6341
+ Ae(
6342
6342
  se(m(N)("结束处理").value),
6343
6343
  1
6344
6344
  /* TEXT */
@@ -6353,7 +6353,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6353
6353
  onClick: P[30] || (P[30] = (L) => so(2))
6354
6354
  }, {
6355
6355
  default: R(() => [
6356
- ye(
6356
+ Ae(
6357
6357
  se(m(N)("继续处理").value),
6358
6358
  1
6359
6359
  /* TEXT */
@@ -6488,7 +6488,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6488
6488
  size: "middle"
6489
6489
  }, {
6490
6490
  default: R(() => [
6491
- ye(
6491
+ Ae(
6492
6492
  se(m(N)("告警对象位置").value),
6493
6493
  1
6494
6494
  /* TEXT */
@@ -6530,7 +6530,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6530
6530
  size: "middle"
6531
6531
  }, {
6532
6532
  default: R(() => [
6533
- ye(
6533
+ Ae(
6534
6534
  se(m(N)("告警对象").value),
6535
6535
  1
6536
6536
  /* TEXT */
@@ -6775,7 +6775,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6775
6775
  size: "middle"
6776
6776
  }, {
6777
6777
  default: R(() => [
6778
- ye(
6778
+ Ae(
6779
6779
  se(m(N)("设备详情").value),
6780
6780
  1
6781
6781
  /* TEXT */
@@ -6792,7 +6792,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6792
6792
  size: "middle"
6793
6793
  }, {
6794
6794
  default: R(() => [
6795
- ye(
6795
+ Ae(
6796
6796
  se(m(N)("处理").value),
6797
6797
  1
6798
6798
  /* TEXT */
@@ -6836,7 +6836,7 @@ const Rh = () => {
6836
6836
  loop: !1
6837
6837
  // 轮播-无限次播放
6838
6838
  });
6839
- ge.addEventListenerFromMicroApp("alarm:change-alarmconfig", (E) => {
6839
+ ye.addEventListenerFromMicroApp("alarm:change-alarmconfig", (E) => {
6840
6840
  const { isRealTimeAlarm: k, audioPlay: Q } = E.data;
6841
6841
  k != null && (l.value = k), Q != null && (c.value = Q, c.value || C());
6842
6842
  });
@@ -6936,7 +6936,7 @@ const Rh = () => {
6936
6936
  B && t.value.send(B);
6937
6937
  },
6938
6938
  message: async (B) => {
6939
- ge.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: B }), window.self === window.top && (B.messageType === "ADD" && (e.value = e.value + 1, B.coverId || g(B)), B.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == B.recordId && C()));
6939
+ ye.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: B }), window.self === window.top && (B.messageType === "ADD" && (e.value = e.value + 1, B.coverId || g(B)), B.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == B.recordId && C()));
6940
6940
  }
6941
6941
  }));
6942
6942
  }
@@ -7029,15 +7029,15 @@ T("@das-fed/web");
7029
7029
  const Uh = [
7030
7030
  {
7031
7031
  path: je,
7032
- component: () => import("./index-6kRVLftK.js")
7032
+ component: () => import("./index-CAO0LRaP.js")
7033
7033
  },
7034
7034
  {
7035
7035
  path: ct,
7036
- component: () => import("./index-Dh0QsqJt.js")
7036
+ component: () => import("./index-ByENyZQn.js")
7037
7037
  },
7038
7038
  {
7039
7039
  path: Cr,
7040
- component: () => import("./index-DGIGwZce.js")
7040
+ component: () => import("./index-DWT7O-tu.js")
7041
7041
  }
7042
7042
  ], Yg = {
7043
7043
  routes: Uh,
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-U3yMWk6z.js";
1
+ import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-sjZbOO0N.js";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,