@das-fed/web 6.4.0-dev.75 → 6.4.0-dev.76

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.
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as T } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as b } from "@das-fed/utils/common-tools";
8
8
  import { createService as E } from "@das-fed/utils/create-api-service";
9
- import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-Dft0asRl.js";
9
+ import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-D1nPlP-x.js";
10
10
  const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
11
  __name: "index",
12
12
  setup(F) {
Binary file
@@ -22,7 +22,7 @@ import { login as kv, getTokenParams as Qv, real_uri as Yv, tokenStorage as Sr }
22
22
  import { getAccessToken as Kr, removeAccessToken as Cr } from "@das-fed/utils/token-tools";
23
23
  import { DasSpin as J9 } from "@das-fed/ui/packages/components/spin/index";
24
24
  import { DasDialog as Je } from "@das-fed/ui/packages/components/dialog/index";
25
- import { DasButton as hA } from "@das-fed/ui/packages/components/button/index";
25
+ import { DasButton as FA } from "@das-fed/ui/packages/components/button/index";
26
26
  import { vDasTooltip as _r } from "@das-fed/ui/packages/components/text-tooltip/index";
27
27
  import { microFrontend as re } from "@das-fed/web/packages/micro-frontend/index";
28
28
  import { setPersonalInfo as $r } from "@das-fed/utils/common-info/set-personal-info";
@@ -1662,9 +1662,9 @@ const mP = ["src", "entry", "name"], lP = /* @__PURE__ */ sA({
1662
1662
  T9.value = !0, Z9.value = [];
1663
1663
  }, 100));
1664
1664
  });
1665
- }, qe = "/home", FA = "/application", _v = [
1665
+ }, qe = "/home", UA = "/application", _v = [
1666
1666
  { value: qe, label: "首页", path: qe, fixed: !0 },
1667
- { value: FA, label: "应用", path: FA, fixed: !0 }
1667
+ { value: UA, label: "应用", path: UA, fixed: !0 }
1668
1668
  ], Ve = "/outerView", $v = "/placeholder", NP = [
1669
1669
  { value: "0", label: "个性化设置" },
1670
1670
  { value: "1", label: "个人中心" },
@@ -1828,7 +1828,7 @@ const mP = ["src", "entry", "name"], lP = /* @__PURE__ */ sA({
1828
1828
  }, {
1829
1829
  footer: Q(() => [
1830
1830
  g("div", yP, [
1831
- B(N(hA), {
1831
+ B(N(FA), {
1832
1832
  btnType: "default",
1833
1833
  size: "small",
1834
1834
  onClick: f.closeCallback
@@ -1940,7 +1940,7 @@ const EP = (e = {}) => {
1940
1940
  }), sessionStorage.setItem("tabs", JSON.stringify(A));
1941
1941
  }, en = () => {
1942
1942
  sessionStorage.removeItem("tabs");
1943
- }, UA = (e) => {
1943
+ }, JA = (e) => {
1944
1944
  let A = cA();
1945
1945
  e.forEach((f) => {
1946
1946
  if (f.key === "subAppList" && !Array.isArray(f.value)) {
@@ -1950,7 +1950,7 @@ const EP = (e = {}) => {
1950
1950
  Object.assign(A, { [f.key]: f.value });
1951
1951
  }), sessionStorage.setItem("subApps", JSON.stringify(A));
1952
1952
  }, p7 = () => {
1953
- UA([
1953
+ JA([
1954
1954
  { key: "currentSubApp", value: {} },
1955
1955
  { key: "currentSubAppCode", value: "" },
1956
1956
  { key: "subAppList", value: [] },
@@ -3382,8 +3382,8 @@ function tn() {
3382
3382
  var g7 = X[ee - 15], Ee = g7.high, n9 = g7.low, er = (Ee >>> 1 | n9 << 31) ^ (Ee >>> 8 | n9 << 24) ^ Ee >>> 7, M7 = (n9 >>> 1 | Ee << 31) ^ (n9 >>> 8 | Ee << 24) ^ (n9 >>> 7 | Ee << 25), B7 = X[ee - 2], Ie = B7.high, r9 = B7.low, fr = (Ie >>> 19 | r9 << 13) ^ (Ie << 3 | r9 >>> 29) ^ Ie >>> 6, k7 = (r9 >>> 19 | Ie << 13) ^ (r9 << 3 | Ie >>> 29) ^ (r9 >>> 6 | Ie << 26), Q7 = X[ee - 7], vr = Q7.high, nr = Q7.low, Y7 = X[ee - 16], rr = Y7.high, G7 = Y7.low;
3383
3383
  KA = M7 + nr, ie = er + vr + (KA >>> 0 < M7 >>> 0 ? 1 : 0), KA = KA + k7, ie = ie + fr + (KA >>> 0 < k7 >>> 0 ? 1 : 0), KA = KA + G7, ie = ie + rr + (KA >>> 0 < G7 >>> 0 ? 1 : 0), o9.high = ie, o9.low = KA;
3384
3384
  }
3385
- var tr = E & WA ^ ~E & j9, U7 = M & ze ^ ~M & f9, Pr = aA & jA ^ aA & $ ^ jA & $, ur = bA & C ^ bA & nA ^ C & nA, zr = (aA >>> 28 | bA << 4) ^ (aA << 30 | bA >>> 2) ^ (aA << 25 | bA >>> 7), J7 = (bA >>> 28 | aA << 4) ^ (bA << 30 | aA >>> 2) ^ (bA << 25 | aA >>> 7), dr = (E >>> 14 | M << 18) ^ (E >>> 18 | M << 14) ^ (E << 23 | M >>> 9), Xr = (M >>> 14 | E << 18) ^ (M >>> 18 | E << 14) ^ (M << 23 | E >>> 9), h7 = p[ee], cr = h7.high, F7 = h7.low, JA = v9 + Xr, se = vf + dr + (JA >>> 0 < v9 >>> 0 ? 1 : 0), JA = JA + U7, se = se + tr + (JA >>> 0 < U7 >>> 0 ? 1 : 0), JA = JA + F7, se = se + cr + (JA >>> 0 < F7 >>> 0 ? 1 : 0), JA = JA + KA, se = se + ie + (JA >>> 0 < KA >>> 0 ? 1 : 0), S7 = J7 + ur, br = zr + Pr + (S7 >>> 0 < J7 >>> 0 ? 1 : 0);
3386
- vf = j9, v9 = f9, j9 = WA, f9 = ze, WA = E, ze = M, M = J + JA | 0, E = xe + se + (M >>> 0 < J >>> 0 ? 1 : 0) | 0, xe = $, J = nA, $ = jA, nA = C, jA = aA, C = bA, bA = JA + S7 | 0, aA = se + br + (bA >>> 0 < JA >>> 0 ? 1 : 0) | 0;
3385
+ var tr = E & WA ^ ~E & j9, U7 = M & ze ^ ~M & f9, Pr = aA & jA ^ aA & $ ^ jA & $, ur = bA & C ^ bA & nA ^ C & nA, zr = (aA >>> 28 | bA << 4) ^ (aA << 30 | bA >>> 2) ^ (aA << 25 | bA >>> 7), J7 = (bA >>> 28 | aA << 4) ^ (bA << 30 | aA >>> 2) ^ (bA << 25 | aA >>> 7), dr = (E >>> 14 | M << 18) ^ (E >>> 18 | M << 14) ^ (E << 23 | M >>> 9), Xr = (M >>> 14 | E << 18) ^ (M >>> 18 | E << 14) ^ (M << 23 | E >>> 9), h7 = p[ee], cr = h7.high, F7 = h7.low, hA = v9 + Xr, se = vf + dr + (hA >>> 0 < v9 >>> 0 ? 1 : 0), hA = hA + U7, se = se + tr + (hA >>> 0 < U7 >>> 0 ? 1 : 0), hA = hA + F7, se = se + cr + (hA >>> 0 < F7 >>> 0 ? 1 : 0), hA = hA + KA, se = se + ie + (hA >>> 0 < KA >>> 0 ? 1 : 0), S7 = J7 + ur, br = zr + Pr + (S7 >>> 0 < J7 >>> 0 ? 1 : 0);
3386
+ vf = j9, v9 = f9, j9 = WA, f9 = ze, WA = E, ze = M, M = J + hA | 0, E = xe + se + (M >>> 0 < J >>> 0 ? 1 : 0) | 0, xe = $, J = nA, $ = jA, nA = C, jA = aA, C = bA, bA = hA + S7 | 0, aA = se + br + (bA >>> 0 < hA >>> 0 ? 1 : 0) | 0;
3387
3387
  }
3388
3388
  l = H.low = l + bA, H.high = j + aA + (l >>> 0 < bA >>> 0 ? 1 : 0), Z = s.low = Z + C, s.high = R + jA + (Z >>> 0 < C >>> 0 ? 1 : 0), F = q.low = F + nA, q.high = T + $ + (F >>> 0 < nA >>> 0 ? 1 : 0), U = m.low = U + J, m.high = _ + xe + (U >>> 0 < J >>> 0 ? 1 : 0), G = D.low = G + M, D.high = K + E + (G >>> 0 < M >>> 0 ? 1 : 0), vA = x.low = vA + ze, x.high = h + WA + (vA >>> 0 < ze >>> 0 ? 1 : 0), w = V.low = w + f9, V.high = L + j9 + (w >>> 0 < f9 >>> 0 ? 1 : 0), W = O.low = W + v9, O.high = I + vf + (W >>> 0 < v9 >>> 0 ? 1 : 0);
3389
3389
  },
@@ -7913,12 +7913,12 @@ const k9 = (e, A = "") => {
7913
7913
  }, d7 = (e) => {
7914
7914
  const A = cA().subAppList ?? [];
7915
7915
  let { index: f, target: v } = T6(A, e);
7916
- return A.splice(f, 1), A.length ? UA([{ key: "subAppList", value: A }]) : p7(), BA([
7916
+ return A.splice(f, 1), A.length ? JA([{ key: "subAppList", value: A }]) : p7(), BA([
7917
7917
  { key: "currentCode", value: "" },
7918
7918
  { key: "currentTab", value: {} },
7919
7919
  { key: `preTab:${e}`, value: {} },
7920
7920
  { key: `tabMap:${e}`, value: [] }
7921
- ]), v || (v = { fixed: !0, path: FA }), { currentApp: v };
7921
+ ]), v || (v = { fixed: !0, path: UA }), { currentApp: v };
7922
7922
  }, L6 = (e, A) => {
7923
7923
  const f = e.findIndex((n) => n.code === A), v = e.slice(0, f), r = e.slice(f + 1);
7924
7924
  return { left: v, right: r };
@@ -8040,7 +8040,7 @@ const k9 = (e, A = "") => {
8040
8040
  const c = y6(A.code, z, f);
8041
8041
  c != null && c.currentApp && (A = c.currentApp), c != null && c.currentMenu && (p = c.currentMenu), c != null && c.currentTab && (r.query = ((i = c.currentTab) == null ? void 0 : i.query) ?? {});
8042
8042
  }
8043
- if ((A == null ? void 0 : A.routeUrl) === FA)
8043
+ if ((A == null ? void 0 : A.routeUrl) === UA)
8044
8044
  return { menuConfig: [], currentApp: A, currentMenu: null, query: null };
8045
8045
  if (p) {
8046
8046
  const c = `/${p.applicationPath}${p.routeUrl}`;
@@ -8049,7 +8049,7 @@ const k9 = (e, A = "") => {
8049
8049
  const s = { ...r.query, app: u, menu: p.code };
8050
8050
  if (n && P) {
8051
8051
  const q = { ...A, currentMenuCode: p.code, menus: z, originalMenus: t };
8052
- UA([
8052
+ JA([
8053
8053
  { key: "currentSubApp", value: q },
8054
8054
  { key: "currentSubAppCode", value: u },
8055
8055
  { key: "subAppList", value: q }
@@ -8089,7 +8089,7 @@ const k9 = (e, A = "") => {
8089
8089
  }, W6 = me.get("/appcategory"), E6 = me.get("/app/common"), Hv = o(!1), pv = o([]), Yn = async () => {
8090
8090
  Hv.value = !0;
8091
8091
  const [e, A] = await W6().run({ userType: 1 });
8092
- return Hv.value = !1, e ? (pv.value = [], { navConfig: [] }) : (pv.value = A, UA([{ key: "appcategorys", value: A }]), { navConfig: A });
8092
+ return Hv.value = !1, e ? (pv.value = [], { navConfig: [] }) : (pv.value = A, JA([{ key: "appcategorys", value: A }]), { navConfig: A });
8093
8093
  }, mv = o([]), I6 = async () => {
8094
8094
  var n;
8095
8095
  const [e, A] = await E6().run();
@@ -8097,7 +8097,7 @@ const k9 = (e, A = "") => {
8097
8097
  return mv.value = [], { fixedAppsConfig: [] };
8098
8098
  mv.value = A;
8099
8099
  const f = ((n = cA()) == null ? void 0 : n.subAppList) || [], v = f.map((P) => P.code), r = A.filter((P) => !v.includes(P.code));
8100
- return UA([{ key: "subAppList", value: [...f, ...r] }]), { fixedAppsConfig: A };
8100
+ return JA([{ key: "subAppList", value: [...f, ...r] }]), { fixedAppsConfig: A };
8101
8101
  }, Gn = "v1", g6 = i7.get("/organization/authProjectTree"), M6 = kA(`/api/customer/customer/${Gn}`), B6 = M6.get("/project/list"), k6 = kA(`/api/project/project-server/${Gn}`), Q6 = k6.get("/list/message"), Y6 = async () => {
8102
8102
  var P, u;
8103
8103
  const e = Y9();
@@ -8783,7 +8783,7 @@ const $1 = (e) => {
8783
8783
  "margin-right": "0"
8784
8784
  }, {
8785
8785
  default: Q(() => [
8786
- B(N(hA), {
8786
+ B(N(FA), {
8787
8787
  btnType: "primary",
8788
8788
  ghost: "",
8789
8789
  size: "middle",
@@ -8825,7 +8825,7 @@ const $1 = (e) => {
8825
8825
  }, {
8826
8826
  footer: Q(() => [
8827
8827
  g("div", null, [
8828
- B(N(hA), {
8828
+ B(N(FA), {
8829
8829
  size: "middle",
8830
8830
  onClick: $[8] || ($[8] = (nA) => X.value = !1)
8831
8831
  }, {
@@ -8839,7 +8839,7 @@ const $1 = (e) => {
8839
8839
  _: 1
8840
8840
  /* STABLE */
8841
8841
  }),
8842
- B(N(hA), {
8842
+ B(N(FA), {
8843
8843
  btnType: "primary",
8844
8844
  size: "middle",
8845
8845
  style: { "margin-left": "12px" },
@@ -8892,7 +8892,7 @@ const $1 = (e) => {
8892
8892
  }, {
8893
8893
  footer: Q(() => [
8894
8894
  g("div", null, [
8895
- B(N(hA), {
8895
+ B(N(FA), {
8896
8896
  size: "middle",
8897
8897
  onClick: $[15] || ($[15] = (nA) => O.value = !1)
8898
8898
  }, {
@@ -8906,7 +8906,7 @@ const $1 = (e) => {
8906
8906
  _: 1
8907
8907
  /* STABLE */
8908
8908
  }),
8909
- B(N(hA), {
8909
+ B(N(FA), {
8910
8910
  btnType: "primary",
8911
8911
  size: "middle",
8912
8912
  style: { "margin-left": "12px" },
@@ -9064,7 +9064,7 @@ const $1 = (e) => {
9064
9064
  }, {
9065
9065
  footer: Q(() => [
9066
9066
  g("div", H8, [
9067
- B(N(hA), {
9067
+ B(N(FA), {
9068
9068
  size: "middle",
9069
9069
  onClick: X[2] || (X[2] = (b) => f.value = !1),
9070
9070
  style: { "margin-right": "12px" }
@@ -9079,7 +9079,7 @@ const $1 = (e) => {
9079
9079
  _: 1
9080
9080
  /* STABLE */
9081
9081
  }),
9082
- B(N(hA), {
9082
+ B(N(FA), {
9083
9083
  btnType: "primary",
9084
9084
  size: "middle",
9085
9085
  loading: v.value,
@@ -9249,8 +9249,8 @@ const $1 = (e) => {
9249
9249
  ...s,
9250
9250
  label: k(s.label)
9251
9251
  }));
9252
- c.forEach((s) => (i != null && i.appAlias && s.value === FA && (s.label = i.appAlias), i != null && i.homeAlias && s.value === qe && (s.label = i.homeAlias), s)), i != null && i.enable ? ((i == null ? void 0 : i.displayPosition) === 2 && (c = R8(c, 0, 1)), u.value = c) : (u.value = c.filter((s) => s.path === FA), f.path === qe && await A.replace(FA));
9253
- const H = i != null && i.enable && (i == null ? void 0 : i.displayPosition) !== 2 ? qe : FA;
9252
+ c.forEach((s) => (i != null && i.appAlias && s.value === UA && (s.label = i.appAlias), i != null && i.homeAlias && s.value === qe && (s.label = i.homeAlias), s)), i != null && i.enable ? ((i == null ? void 0 : i.displayPosition) === 2 && (c = R8(c, 0, 1)), u.value = c) : (u.value = c.filter((s) => s.path === UA), f.path === qe && await A.replace(UA));
9253
+ const H = i != null && i.enable && (i == null ? void 0 : i.displayPosition) !== 2 ? qe : UA;
9254
9254
  sessionStorage.getItem("defalt-page") || f.path !== H && await A.replace(H), sessionStorage.setItem("defalt-page", H), S.nav.setItems(u.value);
9255
9255
  }, b = o(!1);
9256
9256
  return S.nav.addEventListener("onBeforeMount", async () => {
@@ -9279,7 +9279,7 @@ const $1 = (e) => {
9279
9279
  const D = cA().subAppList ?? [];
9280
9280
  D.length && (D.forEach((V) => {
9281
9281
  V.menus = [], V.originalMenus = [];
9282
- }), UA([{ key: "subAppList", value: D }])), b.value = !0;
9282
+ }), JA([{ key: "subAppList", value: D }])), b.value = !0;
9283
9283
  }), { loading: P, innerPage: u, commandList: z, layoutInited: b, initNextTick: () => new Promise((i) => {
9284
9284
  const c = async () => {
9285
9285
  var q;
@@ -9317,7 +9317,7 @@ const $1 = (e) => {
9317
9317
  }), S.menu.addEventListener("toggleCollapse", (A) => {
9318
9318
  const f = Wv.nav.activeItem;
9319
9319
  let v = cA().menuCollapses || [];
9320
- A ? v = Array.from(/* @__PURE__ */ new Set([...v, f])) : v = v.filter((r) => r !== f), UA([{ key: "menuCollapses", value: v }]);
9320
+ A ? v = Array.from(/* @__PURE__ */ new Set([...v, f])) : v = v.filter((r) => r !== f), JA([{ key: "menuCollapses", value: v }]);
9321
9321
  });
9322
9322
  }, T8 = () => {
9323
9323
  const { changeApp: e, deleteApp: A, beforeEntryApp: f } = e9();
@@ -9457,8 +9457,8 @@ const $1 = (e) => {
9457
9457
  }
9458
9458
  const f = cA();
9459
9459
  f.subAppList && f.subAppList.length && sessionStorage.setItem("has-subapp", "true"), e();
9460
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + FA), sessionStorage.removeItem("has-subapp")), re.addEventListenerFromMicroApp("system-reload", () => {
9461
- e(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + FA);
9460
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + UA), sessionStorage.removeItem("has-subapp")), re.addEventListenerFromMicroApp("system-reload", () => {
9461
+ e(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + UA);
9462
9462
  });
9463
9463
  }, e9 = () => {
9464
9464
  const e = Ze(), { entryMenu: A } = $9(), { unloadRoute: f } = Fn();
@@ -9480,7 +9480,7 @@ const $1 = (e) => {
9480
9480
  content: k("此应用菜单已过期/已收回/配置有误") + "<br/>" + k("无法使用")
9481
9481
  }), s = !0) : (await i9({ title: k("提示"), content: k("此应用未配置菜单/无菜单权限") + "<br/>" + k("无法使用") }), s = !0), s) return !1;
9482
9482
  const q = { ...X, menus: c, originalMenus: H };
9483
- return UA([{ key: "subAppList", value: q }]), !0;
9483
+ return JA([{ key: "subAppList", value: q }]), !0;
9484
9484
  }, t = async (X) => {
9485
9485
  var Z, T, F, _, U;
9486
9486
  const { microApp: b = null, menuCode: a = "", menuPath: i = "", route: c = {} } = X;
@@ -9500,7 +9500,7 @@ const $1 = (e) => {
9500
9500
  displayAppName: b.name
9501
9501
  }), u();
9502
9502
  const K = ((F = cA()) == null ? void 0 : F.subAppList) ?? [];
9503
- if ((K == null ? void 0 : K.find((h) => h.code === b.code)) || K == null || K.push(b), UA([
9503
+ if ((K == null ? void 0 : K.find((h) => h.code === b.code)) || K == null || K.push(b), JA([
9504
9504
  { key: "currentSubApp", value: b },
9505
9505
  { key: "currentSubAppCode", value: b.code },
9506
9506
  { key: "subAppList", value: K }
@@ -9582,7 +9582,7 @@ const $1 = (e) => {
9582
9582
  }, d = async (X) => {
9583
9583
  var b;
9584
9584
  if (NA.innerSet = !0, X.fixed) {
9585
- await e.push(X.path), S.menu.setItems([]), S.tab.setItems([]), S.nav.setActiveItem(X.path), UA([
9585
+ await e.push(X.path), S.menu.setItems([]), S.tab.setItems([]), S.nav.setActiveItem(X.path), JA([
9586
9586
  { key: "currentSubAppCode", value: "" },
9587
9587
  { key: "currentSubApp", value: {} }
9588
9588
  ]), BA([
@@ -9612,7 +9612,7 @@ const $1 = (e) => {
9612
9612
  s && s.length && f(s), i.forEach((q) => S.iframeView.triggerEventListener("onUnloadPage", q.path));
9613
9613
  }
9614
9614
  let c = null;
9615
- if (b.currentSubAppCode === X.code && (a + 1 !== b.subAppList.length ? b.subAppList[a + 1] && (c = b.subAppList[a + 1]) : b.subAppList[a - 1] && (c = b.subAppList[a - 1])), b.subAppList.splice(a, 1), UA([{ key: "subAppList", value: b.subAppList }]), BA([
9615
+ if (b.currentSubAppCode === X.code && (a + 1 !== b.subAppList.length ? b.subAppList[a + 1] && (c = b.subAppList[a + 1]) : b.subAppList[a - 1] && (c = b.subAppList[a - 1])), b.subAppList.splice(a, 1), JA([{ key: "subAppList", value: b.subAppList }]), BA([
9616
9616
  { key: `preTab:${X.code}`, value: {} },
9617
9617
  { key: `tabMap:${X.code}`, value: [] }
9618
9618
  ]), c) {
@@ -9620,8 +9620,8 @@ const $1 = (e) => {
9620
9620
  await d(s), S.nav.setActiveItem(c.code);
9621
9621
  }
9622
9622
  if (!b.subAppList.length) {
9623
- if (S.menu.setItems([]), S.tab.setItems([]), location.pathname !== FA && location.pathname !== qe) {
9624
- const s = _v.find((q) => q.value === FA);
9623
+ if (S.menu.setItems([]), S.tab.setItems([]), location.pathname !== UA && location.pathname !== qe) {
9624
+ const s = _v.find((q) => q.value === UA);
9625
9625
  s && d(s);
9626
9626
  }
9627
9627
  p7(), en();
@@ -9761,7 +9761,7 @@ const $1 = (e) => {
9761
9761
  const O = q.filter((l) => l.code !== s && !H.includes(l.code)), j = q.filter(
9762
9762
  (l) => s === l.code || H.includes(l.code)
9763
9763
  );
9764
- UA([{ key: "subAppList", value: j }]), O && O.length && O.forEach((l) => {
9764
+ JA([{ key: "subAppList", value: j }]), O && O.length && O.forEach((l) => {
9765
9765
  BA([
9766
9766
  { key: `preTab:${l.code}`, value: {} },
9767
9767
  { key: `tabMap:${l.code}`, value: [] }
@@ -9803,7 +9803,7 @@ const $1 = (e) => {
9803
9803
  S.nav.appendItem(l);
9804
9804
  });
9805
9805
  const O = e.value.find((j) => j.path === location.pathname);
9806
- O && (S.nav.setActiveItem(O.path), S.menu.setItems([]), S.tab.setItems([]), UA([
9806
+ O && (S.nav.setActiveItem(O.path), S.menu.setItems([]), S.tab.setItems([]), JA([
9807
9807
  { key: "currentSubAppCode", value: "" },
9808
9808
  { key: "currentSubApp", value: {} }
9809
9809
  ]), BA([
@@ -9880,7 +9880,7 @@ const $1 = (e) => {
9880
9880
  r();
9881
9881
  });
9882
9882
  const n = () => {
9883
- vn(), kP(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
9883
+ vn(), kP(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + UA);
9884
9884
  };
9885
9885
  return {
9886
9886
  changeEnterprisesVisible: A,
@@ -9973,7 +9973,7 @@ const $1 = (e) => {
9973
9973
  const r = A.subAppList;
9974
9974
  r == null || r.forEach((n) => {
9975
9975
  n.code === f && (n.menus = v);
9976
- }), UA([
9976
+ }), JA([
9977
9977
  {
9978
9978
  key: "currentSubApp",
9979
9979
  value: r == null ? void 0 : r.find((n) => n.code === f)
@@ -12808,7 +12808,7 @@ const b2 = kA(`/api/tool/event-bus/${ef}/`), Sf = b2.post("/publish"), a2 = i7.g
12808
12808
  ]),
12809
12809
  footer: Q(() => [
12810
12810
  g("div", y2, [
12811
- B(N(hA), {
12811
+ B(N(FA), {
12812
12812
  size: "middle",
12813
12813
  onClick: jA
12814
12814
  }, {
@@ -12822,7 +12822,7 @@ const b2 = kA(`/api/tool/event-bus/${ef}/`), Sf = b2.post("/publish"), a2 = i7.g
12822
12822
  _: 1
12823
12823
  /* STABLE */
12824
12824
  }),
12825
- B(N(hA), {
12825
+ B(N(FA), {
12826
12826
  block: "",
12827
12827
  size: "middle",
12828
12828
  onClick: E[29] || (E[29] = (M) => C(1))
@@ -12837,7 +12837,7 @@ const b2 = kA(`/api/tool/event-bus/${ef}/`), Sf = b2.post("/publish"), a2 = i7.g
12837
12837
  _: 1
12838
12838
  /* STABLE */
12839
12839
  }),
12840
- B(N(hA), {
12840
+ B(N(FA), {
12841
12841
  block: "",
12842
12842
  btnType: "primary",
12843
12843
  size: "middle",
@@ -13258,7 +13258,7 @@ const b2 = kA(`/api/tool/event-bus/${ef}/`), Sf = b2.post("/publish"), a2 = i7.g
13258
13258
  )
13259
13259
  ]),
13260
13260
  g("div", C2, [
13261
- P.msgItem.equipmentCode && P.msgItem.equipmentPanelCode ? (Y(), tA(N(hA), {
13261
+ P.msgItem.equipmentCode && P.msgItem.equipmentPanelCode ? (Y(), tA(N(FA), {
13262
13262
  key: 0,
13263
13263
  block: "",
13264
13264
  onClick: oA(n, ["stop"]),
@@ -13275,7 +13275,7 @@ const b2 = kA(`/api/tool/event-bus/${ef}/`), Sf = b2.post("/publish"), a2 = i7.g
13275
13275
  _: 1
13276
13276
  /* STABLE */
13277
13277
  })) : AA("v-if", !0),
13278
- P.alarmhandle ? (Y(), tA(N(hA), {
13278
+ P.alarmhandle ? (Y(), tA(N(FA), {
13279
13279
  key: 1,
13280
13280
  block: "",
13281
13281
  btnType: "primary-text",
@@ -13682,12 +13682,12 @@ or(Pc);
13682
13682
  o("@das-fed/web");
13683
13683
  const uc = [
13684
13684
  {
13685
- path: FA,
13686
- component: () => import("./index-PPFRahDs.js")
13685
+ path: UA,
13686
+ component: () => import("./index-C0YjmyLI.js")
13687
13687
  },
13688
13688
  {
13689
13689
  path: $v,
13690
- component: () => import("./index-Bhh7gbZp.js")
13690
+ component: () => import("./index-DRjmVgWp.js")
13691
13691
  }
13692
13692
  ], jb = {
13693
13693
  routes: uc,
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-Dft0asRl.js";
2
+ import { _ as c } from "./index-D1nPlP-x.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-3y9GV9to.js";
1
+ import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-D1nPlP-x.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-dev.75",
3
+ "version": "6.4.0-dev.76",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-dev.75",
8
- "@das-fed/utils": "6.4.0-dev.75",
9
- "@das-fed/web": "6.4.0-dev.75",
10
- "@das-fed/web-components": "6.4.0-dev.75",
7
+ "@das-fed/ui": "6.4.0-dev.76",
8
+ "@das-fed/utils": "6.4.0-dev.76",
9
+ "@das-fed/web": "6.4.0-dev.76",
10
+ "@das-fed/web-components": "6.4.0-dev.76",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,7 +19,7 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/cli": "6.4.0-dev.75",
22
+ "@das-fed/cli": "6.4.0-dev.76",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as T } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as b } from "@das-fed/utils/common-tools";
8
8
  import { createService as E } from "@das-fed/utils/create-api-service";
9
- import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-3y9GV9to.js";
9
+ import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-B9hDz0K5.js";
10
10
  const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
11
  __name: "index",
12
12
  setup(F) {
@@ -1,4 +1,4 @@
1
- import { defineComponent as lA, computed as MA, openBlock as eA, createBlock as XA, unref as V, mergeProps as mn, withCtx as Y, renderSlot as d9, createVNode as k, getCurrentScope as ln, onScopeDispose as Dn, getCurrentInstance as Vn, onMounted as CA, nextTick as N9, ref as o, watch as mA, reactive as k3, createElementVNode as B, createTextVNode as iA, toDisplayString as nA, createElementBlock as VA, Fragment as a9, renderList as Q3, withDirectives as cf, createCommentVNode as PA, h as NA, render as tf, vShow as Ze, normalizeClass as Y3, isRef as UA, onBeforeUnmount as S9, useCssVars as Nn, withModifiers as OA, toRefs as Rn, normalizeStyle as c7 } from "vue";
1
+ import { defineComponent as lA, computed as gA, openBlock as eA, createBlock as XA, unref as V, mergeProps as mn, withCtx as Y, renderSlot as d9, createVNode as k, getCurrentScope as ln, onScopeDispose as Dn, getCurrentInstance as Vn, onMounted as CA, nextTick as N9, ref as o, watch as mA, reactive as k3, createElementVNode as B, createTextVNode as iA, toDisplayString as nA, createElementBlock as VA, Fragment as a9, renderList as Q3, withDirectives as cf, createCommentVNode as PA, h as NA, render as tf, vShow as Ze, normalizeClass as Y3, isRef as UA, onBeforeUnmount as S9, useCssVars as Nn, withModifiers as OA, toRefs as Rn, normalizeStyle as c7 } from "vue";
2
2
  import { DasWebLayout as jn, DasWebNav as Zn, DasWebMenu as Tn, DasWebTabs as Ln, layout as F, layoutData as G3 } from "@das-fed/web/packages/layout/index";
3
3
  import { DasChangePwdRef as on, DasChangePwd as yn } from "@das-fed/ui/packages/business-components/change-pwd/index";
4
4
  import { DasChangeEnterprises as Wn } from "@das-fed/ui/packages/business-components/change-enterprises/index";
@@ -19,7 +19,7 @@ import { login as K3, getTokenParams as C3, real_uri as _3, tokenStorage as hn }
19
19
  import { getAccessToken as Kn, removeAccessToken as Cn } from "@das-fed/utils/token-tools";
20
20
  import { DasSpin as Hf } from "@das-fed/ui/packages/components/spin/index";
21
21
  import { DasDialog as R9 } from "@das-fed/ui/packages/components/dialog/index";
22
- import { DasButton as IA } from "@das-fed/ui/packages/components/button/index";
22
+ import { DasButton as MA } from "@das-fed/ui/packages/components/button/index";
23
23
  import { vDasTooltip as _n } from "@das-fed/ui/packages/components/text-tooltip/index";
24
24
  import { microFrontend as FA } from "@das-fed/web/packages/micro-frontend/index";
25
25
  import { setPersonalInfo as $n } from "@das-fed/utils/common-info/set-personal-info";
@@ -48,9 +48,9 @@ import { DasSearch as ir } from "@das-fed/ui/packages/components/search/index";
48
48
  import { DasInput as Oe } from "@das-fed/ui/packages/components/input/index";
49
49
  import { DasTreeSelect as sr } from "@das-fed/ui/packages/components/tree-select/index";
50
50
  import { DasCheckbox as s7 } from "@das-fed/ui/packages/components/checkbox/index";
51
- const v9 = "/home", gA = "/application", vv = [
51
+ const v9 = "/home", wA = "/application", vv = [
52
52
  { value: v9, label: "首页", path: v9, fixed: !0 },
53
- { value: gA, label: "应用", path: gA, fixed: !0 }
53
+ { value: wA, label: "应用", path: wA, fixed: !0 }
54
54
  ], X9 = "/outerView", nv = "/placeholder", qr = [
55
55
  { value: "0", label: "个性化设置" },
56
56
  { value: "1", label: "个人中心" },
@@ -70,10 +70,10 @@ const v9 = "/home", gA = "/application", vv = [
70
70
  routeKeepAliveVisible: { type: Boolean, default: !0 }
71
71
  },
72
72
  setup(e) {
73
- const A = e, f = MA(() => ({
73
+ const A = e, f = gA(() => ({
74
74
  "enter-active-class": "animate__animated animate__fadeInLeft",
75
75
  ...A.transitionConfig
76
- })), v = MA(() => ({
76
+ })), v = gA(() => ({
77
77
  showLayout: A.showLayout,
78
78
  showAside: A.showAside,
79
79
  showTabs: A.showTabs,
@@ -380,7 +380,7 @@ const or = Fn.get("watermark"), yr = /* @__PURE__ */ lA({
380
380
  }, {
381
381
  footer: Y(() => [
382
382
  B("div", Ir, [
383
- k(V(IA), {
383
+ k(V(MA), {
384
384
  btnType: "default",
385
385
  size: "small",
386
386
  onClick: f.closeCallback
@@ -492,7 +492,7 @@ const Br = (e = {}) => {
492
492
  }), sessionStorage.setItem("tabs", JSON.stringify(A));
493
493
  }, zv = () => {
494
494
  sessionStorage.removeItem("tabs");
495
- }, wA = (e) => {
495
+ }, EA = (e) => {
496
496
  let A = uA();
497
497
  e.forEach((f) => {
498
498
  if (f.key === "subAppList" && !Array.isArray(f.value)) {
@@ -502,7 +502,7 @@ const Br = (e = {}) => {
502
502
  Object.assign(A, { [f.key]: f.value });
503
503
  }), sessionStorage.setItem("subApps", JSON.stringify(A));
504
504
  }, Ee = () => {
505
- wA([
505
+ EA([
506
506
  { key: "currentSubApp", value: {} },
507
507
  { key: "currentSubAppCode", value: "" },
508
508
  { key: "subAppList", value: [] },
@@ -1934,8 +1934,8 @@ function av() {
1934
1934
  var f7 = b[GA - 15], m9 = f7.high, g9 = f7.low, un = (m9 >>> 1 | g9 << 31) ^ (m9 >>> 8 | g9 << 24) ^ m9 >>> 7, e7 = (g9 >>> 1 | m9 << 31) ^ (g9 >>> 8 | m9 << 24) ^ (g9 >>> 7 | m9 << 25), v7 = b[GA - 2], l9 = v7.high, B9 = v7.low, zn = (l9 >>> 19 | B9 << 13) ^ (l9 << 3 | B9 >>> 29) ^ l9 >>> 6, n7 = (B9 >>> 19 | l9 << 13) ^ (B9 << 3 | l9 >>> 29) ^ (B9 >>> 6 | l9 << 26), r7 = b[GA - 7], dn = r7.high, Xn = r7.low, P7 = b[GA - 16], bn = P7.high, t7 = P7.low;
1935
1935
  kA = e7 + Xn, f9 = un + dn + (kA >>> 0 < e7 >>> 0 ? 1 : 0), kA = kA + n7, f9 = f9 + zn + (kA >>> 0 < n7 >>> 0 ? 1 : 0), kA = kA + t7, f9 = f9 + bn + (kA >>> 0 < t7 >>> 0 ? 1 : 0), ef.high = f9, ef.low = kA;
1936
1936
  }
1937
- var cn = E & jA ^ ~E & ff, u7 = M & KA ^ ~M & I9, an = dA & xA ^ dA & _ ^ xA & _, sn = zA & h ^ zA & fA ^ h & fA, qn = (dA >>> 28 | zA << 4) ^ (dA << 30 | zA >>> 2) ^ (dA << 25 | zA >>> 7), z7 = (zA >>> 28 | dA << 4) ^ (zA << 30 | dA >>> 2) ^ (zA << 25 | dA >>> 7), Hn = (E >>> 14 | M << 18) ^ (E >>> 18 | M << 14) ^ (E << 23 | M >>> 9), pn = (M >>> 14 | E << 18) ^ (M >>> 18 | E << 14) ^ (M << 23 | E >>> 9), d7 = p[GA], xn = d7.high, X7 = d7.low, EA = M9 + pn, e9 = Zf + Hn + (EA >>> 0 < M9 >>> 0 ? 1 : 0), EA = EA + u7, e9 = e9 + cn + (EA >>> 0 < u7 >>> 0 ? 1 : 0), EA = EA + X7, e9 = e9 + xn + (EA >>> 0 < X7 >>> 0 ? 1 : 0), EA = EA + kA, e9 = e9 + f9 + (EA >>> 0 < kA >>> 0 ? 1 : 0), b7 = z7 + sn, On = qn + an + (b7 >>> 0 < z7 >>> 0 ? 1 : 0);
1938
- Zf = ff, M9 = I9, ff = jA, I9 = KA, jA = E, KA = M, M = U + EA | 0, E = u9 + e9 + (M >>> 0 < U >>> 0 ? 1 : 0) | 0, u9 = _, U = fA, _ = xA, fA = h, xA = dA, h = zA, zA = EA + b7 | 0, dA = e9 + On + (zA >>> 0 < EA >>> 0 ? 1 : 0) | 0;
1937
+ var cn = E & jA ^ ~E & ff, u7 = M & KA ^ ~M & I9, an = dA & xA ^ dA & _ ^ xA & _, sn = zA & h ^ zA & fA ^ h & fA, qn = (dA >>> 28 | zA << 4) ^ (dA << 30 | zA >>> 2) ^ (dA << 25 | zA >>> 7), z7 = (zA >>> 28 | dA << 4) ^ (zA << 30 | dA >>> 2) ^ (zA << 25 | dA >>> 7), Hn = (E >>> 14 | M << 18) ^ (E >>> 18 | M << 14) ^ (E << 23 | M >>> 9), pn = (M >>> 14 | E << 18) ^ (M >>> 18 | E << 14) ^ (M << 23 | E >>> 9), d7 = p[GA], xn = d7.high, X7 = d7.low, IA = M9 + pn, e9 = Zf + Hn + (IA >>> 0 < M9 >>> 0 ? 1 : 0), IA = IA + u7, e9 = e9 + cn + (IA >>> 0 < u7 >>> 0 ? 1 : 0), IA = IA + X7, e9 = e9 + xn + (IA >>> 0 < X7 >>> 0 ? 1 : 0), IA = IA + kA, e9 = e9 + f9 + (IA >>> 0 < kA >>> 0 ? 1 : 0), b7 = z7 + sn, On = qn + an + (b7 >>> 0 < z7 >>> 0 ? 1 : 0);
1938
+ Zf = ff, M9 = I9, ff = jA, I9 = KA, jA = E, KA = M, M = U + IA | 0, E = u9 + e9 + (M >>> 0 < U >>> 0 ? 1 : 0) | 0, u9 = _, U = fA, _ = xA, fA = h, xA = dA, h = zA, zA = IA + b7 | 0, dA = e9 + On + (zA >>> 0 < IA >>> 0 ? 1 : 0) | 0;
1939
1939
  }
1940
1940
  O = H.low = O + zA, H.high = j + dA + (O >>> 0 < zA >>> 0 ? 1 : 0), Z = c.low = Z + h, c.high = R + xA + (Z >>> 0 < h >>> 0 ? 1 : 0), K = q.low = K + fA, q.high = L + _ + (K >>> 0 < fA >>> 0 ? 1 : 0), G = x.low = G + U, x.high = C + u9 + (G >>> 0 < U >>> 0 ? 1 : 0), Q = l.low = Q + M, l.high = S + E + (Q >>> 0 < M >>> 0 ? 1 : 0), AA = D.low = AA + KA, D.high = J + jA + (AA >>> 0 < KA >>> 0 ? 1 : 0), W = N.low = W + I9, N.high = T + ff + (W >>> 0 < I9 >>> 0 ? 1 : 0), w = m.low = w + M9, m.high = I + Zf + (w >>> 0 < M9 >>> 0 ? 1 : 0);
1941
1941
  },
@@ -6465,12 +6465,12 @@ const Xf = (e, A = "") => {
6465
6465
  }, Re = (e) => {
6466
6466
  const A = uA().subAppList ?? [];
6467
6467
  let { index: f, target: v } = wd(A, e);
6468
- return A.splice(f, 1), A.length ? wA([{ key: "subAppList", value: A }]) : Ee(), oA([
6468
+ return A.splice(f, 1), A.length ? EA([{ key: "subAppList", value: A }]) : Ee(), oA([
6469
6469
  { key: "currentCode", value: "" },
6470
6470
  { key: "currentTab", value: {} },
6471
6471
  { key: `preTab:${e}`, value: {} },
6472
6472
  { key: `tabMap:${e}`, value: [] }
6473
- ]), v || (v = { fixed: !0, path: gA }), { currentApp: v };
6473
+ ]), v || (v = { fixed: !0, path: wA }), { currentApp: v };
6474
6474
  }, Ed = (e, A) => {
6475
6475
  const f = e.findIndex((P) => P.code === A), v = e.slice(0, f), r = e.slice(f + 1);
6476
6476
  return { left: v, right: r };
@@ -6592,7 +6592,7 @@ const Xf = (e, A = "") => {
6592
6592
  const X = Id(A.code, d, f);
6593
6593
  X != null && X.currentApp && (A = X.currentApp), X != null && X.currentMenu && (p = X.currentMenu), X != null && X.currentTab && (r.query = ((a = X.currentTab) == null ? void 0 : a.query) ?? {});
6594
6594
  }
6595
- if ((A == null ? void 0 : A.routeUrl) === gA)
6595
+ if ((A == null ? void 0 : A.routeUrl) === wA)
6596
6596
  return { menuConfig: [], currentApp: A, currentMenu: null, query: null };
6597
6597
  if (p) {
6598
6598
  const X = `/${p.applicationPath}${p.routeUrl}`;
@@ -6601,7 +6601,7 @@ const Xf = (e, A = "") => {
6601
6601
  const c = { ...r.query, app: z, menu: p.code };
6602
6602
  if (P && t) {
6603
6603
  const q = { ...A, currentMenuCode: p.code, menus: d, originalMenus: n };
6604
- wA([
6604
+ EA([
6605
6605
  { key: "currentSubApp", value: q },
6606
6606
  { key: "currentSubAppCode", value: z },
6607
6607
  { key: "subAppList", value: q }
@@ -6641,7 +6641,7 @@ const Xf = (e, A = "") => {
6641
6641
  }, gd = P9.get("/appcategory"), Bd = P9.get("/app/common"), j3 = o(!1), Z3 = o([]), Kv = async () => {
6642
6642
  j3.value = !0;
6643
6643
  const [e, A] = await gd().run({ userType: 1 });
6644
- return j3.value = !1, e ? (Z3.value = [], { navConfig: [] }) : (Z3.value = A, wA([{ key: "appcategorys", value: A }]), { navConfig: A });
6644
+ return j3.value = !1, e ? (Z3.value = [], { navConfig: [] }) : (Z3.value = A, EA([{ key: "appcategorys", value: A }]), { navConfig: A });
6645
6645
  }, T3 = o([]), kd = async () => {
6646
6646
  var P;
6647
6647
  const [e, A] = await Bd().run();
@@ -6649,7 +6649,7 @@ const Xf = (e, A = "") => {
6649
6649
  return T3.value = [], { fixedAppsConfig: [] };
6650
6650
  T3.value = A;
6651
6651
  const f = ((P = uA()) == null ? void 0 : P.subAppList) || [], v = f.map((t) => t.code), r = A.filter((t) => !v.includes(t.code));
6652
- return wA([{ key: "subAppList", value: [...f, ...r] }]), { fixedAppsConfig: A };
6652
+ return EA([{ key: "subAppList", value: [...f, ...r] }]), { fixedAppsConfig: A };
6653
6653
  }, Cv = "v1", Qd = Le.get("/organization/authProjectTree"), Yd = yA(`/api/customer/customer/${Cv}`), Gd = Yd.get("/project/list"), Ud = yA(`/api/project/project-server/${Cv}`), Jd = Ud.get("/list/message"), Fd = async () => {
6654
6654
  var t, z;
6655
6655
  const e = af();
@@ -6714,7 +6714,7 @@ const Xf = (e, A = "") => {
6714
6714
  }, p = () => ({
6715
6715
  style: f.value ? 1 : 2,
6716
6716
  skinStyle: u()
6717
- }), b = MA(() => {
6717
+ }), b = gA(() => {
6718
6718
  const a = wn.value === "zh-cn";
6719
6719
  return {
6720
6720
  default: a ? d5 : a5,
@@ -6999,7 +6999,7 @@ const Xf = (e, A = "") => {
6999
6999
  }, e6 = "/enterpriseadmin/ioc-server/ioc-server/ws";
7000
7000
  let vf = null;
7001
7001
  const v6 = (e) => {
7002
- const { information: A, orgInfo: f } = e, v = MA(() => A.value.orgId), r = o(!1), P = o(0), t = o([
7002
+ const { information: A, orgInfo: f } = e, v = gA(() => A.value.orgId), r = o(!1), P = o(0), t = o([
7003
7003
  { value: 0, label: g("图纸") },
7004
7004
  { value: 1, label: g("图纸编排") },
7005
7005
  { value: 2, label: g("设备编排") },
@@ -7129,7 +7129,7 @@ const v6 = (e) => {
7129
7129
  __name: "index",
7130
7130
  emits: ["confirm", "cancel"],
7131
7131
  setup(e, { expose: A, emit: f }) {
7132
- const v = f, r = o(!1), P = MA(() => {
7132
+ const v = f, r = o(!1), P = gA(() => {
7133
7133
  var n;
7134
7134
  return (n = n9.value) != null && n.homeAlias ? n9.value.homeAlias : g("首页");
7135
7135
  }), t = () => {
@@ -7335,7 +7335,7 @@ const v6 = (e) => {
7335
7335
  "margin-right": "0"
7336
7336
  }, {
7337
7337
  default: Y(() => [
7338
- k(V(IA), {
7338
+ k(V(MA), {
7339
7339
  btnType: "primary",
7340
7340
  ghost: "",
7341
7341
  size: "middle",
@@ -7377,7 +7377,7 @@ const v6 = (e) => {
7377
7377
  }, {
7378
7378
  footer: Y(() => [
7379
7379
  B("div", null, [
7380
- k(V(IA), {
7380
+ k(V(MA), {
7381
7381
  size: "middle",
7382
7382
  onClick: _[8] || (_[8] = (fA) => b.value = !1)
7383
7383
  }, {
@@ -7391,7 +7391,7 @@ const v6 = (e) => {
7391
7391
  _: 1
7392
7392
  /* STABLE */
7393
7393
  }),
7394
- k(V(IA), {
7394
+ k(V(MA), {
7395
7395
  btnType: "primary",
7396
7396
  size: "middle",
7397
7397
  style: { "margin-left": "12px" },
@@ -7444,7 +7444,7 @@ const v6 = (e) => {
7444
7444
  }, {
7445
7445
  footer: Y(() => [
7446
7446
  B("div", null, [
7447
- k(V(IA), {
7447
+ k(V(MA), {
7448
7448
  size: "middle",
7449
7449
  onClick: _[15] || (_[15] = (fA) => m.value = !1)
7450
7450
  }, {
@@ -7458,7 +7458,7 @@ const v6 = (e) => {
7458
7458
  _: 1
7459
7459
  /* STABLE */
7460
7460
  }),
7461
- k(V(IA), {
7461
+ k(V(MA), {
7462
7462
  btnType: "primary",
7463
7463
  size: "middle",
7464
7464
  style: { "margin-left": "12px" },
@@ -7576,7 +7576,7 @@ const v6 = (e) => {
7576
7576
  }), i6 = /* @__PURE__ */ YA(a6, [["__scopeId", "data-v-acf77da9"]]), s6 = "v1", q6 = `/api/portal/user/${s6}`, H6 = yA(q6), p6 = Sn.post("/menu/personal-setting"), x6 = H6.put("/home"), O6 = { class: "preson-style-drawer" }, m6 = { class: "preson-style-footer" }, l6 = /* @__PURE__ */ lA({
7577
7577
  __name: "index",
7578
7578
  setup(e, { expose: A }) {
7579
- const f = o(!1), v = o(!1), r = o(null), P = o(null), t = o("theme"), z = o(""), d = MA(() => [
7579
+ const f = o(!1), v = o(!1), r = o(null), P = o(null), t = o("theme"), z = o(""), d = gA(() => [
7580
7580
  {
7581
7581
  key: "theme",
7582
7582
  tab: g("主题设置")
@@ -7616,7 +7616,7 @@ const v6 = (e) => {
7616
7616
  }, {
7617
7617
  footer: Y(() => [
7618
7618
  B("div", m6, [
7619
- k(V(IA), {
7619
+ k(V(MA), {
7620
7620
  size: "middle",
7621
7621
  onClick: b[2] || (b[2] = (i) => f.value = !1),
7622
7622
  style: { "margin-right": "12px" }
@@ -7631,7 +7631,7 @@ const v6 = (e) => {
7631
7631
  _: 1
7632
7632
  /* STABLE */
7633
7633
  }),
7634
- k(V(IA), {
7634
+ k(V(MA), {
7635
7635
  btnType: "primary",
7636
7636
  size: "middle",
7637
7637
  loading: v.value,
@@ -7801,8 +7801,8 @@ const v6 = (e) => {
7801
7801
  ...c,
7802
7802
  label: g(c.label)
7803
7803
  }));
7804
- X.forEach((c) => (a != null && a.appAlias && c.value === gA && (c.label = a.appAlias), a != null && a.homeAlias && c.value === v9 && (c.label = a.homeAlias), c)), a != null && a.enable ? ((a == null ? void 0 : a.displayPosition) === 2 && (X = L6(X, 0, 1)), z.value = X) : (z.value = X.filter((c) => c.path === gA), f.path === v9 && await A.replace(gA));
7805
- const H = a != null && a.enable && (a == null ? void 0 : a.displayPosition) !== 2 ? v9 : gA;
7804
+ X.forEach((c) => (a != null && a.appAlias && c.value === wA && (c.label = a.appAlias), a != null && a.homeAlias && c.value === v9 && (c.label = a.homeAlias), c)), a != null && a.enable ? ((a == null ? void 0 : a.displayPosition) === 2 && (X = L6(X, 0, 1)), z.value = X) : (z.value = X.filter((c) => c.path === wA), f.path === v9 && await A.replace(wA));
7805
+ const H = a != null && a.enable && (a == null ? void 0 : a.displayPosition) !== 2 ? v9 : wA;
7806
7806
  sessionStorage.getItem("defalt-page") || f.path !== H && await A.replace(H), sessionStorage.setItem("defalt-page", H), F.nav.setItems(z.value);
7807
7807
  }, i = o(!1);
7808
7808
  return F.nav.addEventListener("onBeforeMount", async () => {
@@ -7831,7 +7831,7 @@ const v6 = (e) => {
7831
7831
  const l = uA().subAppList ?? [];
7832
7832
  l.length && (l.forEach((N) => {
7833
7833
  N.menus = [], N.originalMenus = [];
7834
- }), wA([{ key: "subAppList", value: l }])), i.value = !0;
7834
+ }), EA([{ key: "subAppList", value: l }])), i.value = !0;
7835
7835
  }), { loading: t, innerPage: z, commandList: d, layoutInited: i, initNextTick: () => new Promise((a) => {
7836
7836
  const X = async () => {
7837
7837
  var q;
@@ -7869,7 +7869,7 @@ const v6 = (e) => {
7869
7869
  }), F.menu.addEventListener("toggleCollapse", (A) => {
7870
7870
  const f = G3.nav.activeItem;
7871
7871
  let v = uA().menuCollapses || [];
7872
- A ? v = Array.from(/* @__PURE__ */ new Set([...v, f])) : v = v.filter((r) => r !== f), wA([{ key: "menuCollapses", value: v }]);
7872
+ A ? v = Array.from(/* @__PURE__ */ new Set([...v, f])) : v = v.filter((r) => r !== f), EA([{ key: "menuCollapses", value: v }]);
7873
7873
  });
7874
7874
  }, w6 = () => {
7875
7875
  const { changeApp: e, deleteApp: A, beforeEntryApp: f } = E9();
@@ -8009,8 +8009,8 @@ const v6 = (e) => {
8009
8009
  }
8010
8010
  const f = uA();
8011
8011
  f.subAppList && f.subAppList.length && sessionStorage.setItem("has-subapp", "true"), e();
8012
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + gA), sessionStorage.removeItem("has-subapp")), FA.addEventListenerFromMicroApp("system-reload", () => {
8013
- e(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + gA);
8012
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + wA), sessionStorage.removeItem("has-subapp")), FA.addEventListenerFromMicroApp("system-reload", () => {
8013
+ e(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + wA);
8014
8014
  });
8015
8015
  }, E9 = () => {
8016
8016
  const e = o9(), { entryMenu: A } = Vf(), { unloadRoute: f } = fn();
@@ -8032,7 +8032,7 @@ const v6 = (e) => {
8032
8032
  content: g("此应用菜单已过期/已收回/配置有误") + "<br/>" + g("无法使用")
8033
8033
  }), c = !0) : (await Y9({ title: g("提示"), content: g("此应用未配置菜单/无菜单权限") + "<br/>" + g("无法使用") }), c = !0), c) return !1;
8034
8034
  const q = { ...b, menus: X, originalMenus: H };
8035
- return wA([{ key: "subAppList", value: q }]), !0;
8035
+ return EA([{ key: "subAppList", value: q }]), !0;
8036
8036
  }, n = async (b) => {
8037
8037
  var Z, L, K, C, G;
8038
8038
  const { microApp: i = null, menuCode: s = "", menuPath: a = "", route: X = {} } = b;
@@ -8052,7 +8052,7 @@ const v6 = (e) => {
8052
8052
  displayAppName: i.name
8053
8053
  }), z();
8054
8054
  const S = ((K = uA()) == null ? void 0 : K.subAppList) ?? [];
8055
- if ((S == null ? void 0 : S.find((J) => J.code === i.code)) || S == null || S.push(i), wA([
8055
+ if ((S == null ? void 0 : S.find((J) => J.code === i.code)) || S == null || S.push(i), EA([
8056
8056
  { key: "currentSubApp", value: i },
8057
8057
  { key: "currentSubAppCode", value: i.code },
8058
8058
  { key: "subAppList", value: S }
@@ -8134,7 +8134,7 @@ const v6 = (e) => {
8134
8134
  }, u = async (b) => {
8135
8135
  var i;
8136
8136
  if (pA.innerSet = !0, b.fixed) {
8137
- await e.push(b.path), F.menu.setItems([]), F.tab.setItems([]), F.nav.setActiveItem(b.path), wA([
8137
+ await e.push(b.path), F.menu.setItems([]), F.tab.setItems([]), F.nav.setActiveItem(b.path), EA([
8138
8138
  { key: "currentSubAppCode", value: "" },
8139
8139
  { key: "currentSubApp", value: {} }
8140
8140
  ]), oA([
@@ -8164,7 +8164,7 @@ const v6 = (e) => {
8164
8164
  c && c.length && f(c), a.forEach((q) => F.iframeView.triggerEventListener("onUnloadPage", q.path));
8165
8165
  }
8166
8166
  let X = null;
8167
- if (i.currentSubAppCode === b.code && (s + 1 !== i.subAppList.length ? i.subAppList[s + 1] && (X = i.subAppList[s + 1]) : i.subAppList[s - 1] && (X = i.subAppList[s - 1])), i.subAppList.splice(s, 1), wA([{ key: "subAppList", value: i.subAppList }]), oA([
8167
+ if (i.currentSubAppCode === b.code && (s + 1 !== i.subAppList.length ? i.subAppList[s + 1] && (X = i.subAppList[s + 1]) : i.subAppList[s - 1] && (X = i.subAppList[s - 1])), i.subAppList.splice(s, 1), EA([{ key: "subAppList", value: i.subAppList }]), oA([
8168
8168
  { key: `preTab:${b.code}`, value: {} },
8169
8169
  { key: `tabMap:${b.code}`, value: [] }
8170
8170
  ]), X) {
@@ -8172,8 +8172,8 @@ const v6 = (e) => {
8172
8172
  await u(c), F.nav.setActiveItem(X.code);
8173
8173
  }
8174
8174
  if (!i.subAppList.length) {
8175
- if (F.menu.setItems([]), F.tab.setItems([]), location.pathname !== gA && location.pathname !== v9) {
8176
- const c = vv.find((q) => q.value === gA);
8175
+ if (F.menu.setItems([]), F.tab.setItems([]), location.pathname !== wA && location.pathname !== v9) {
8176
+ const c = vv.find((q) => q.value === wA);
8177
8177
  c && u(c);
8178
8178
  }
8179
8179
  Ee(), zv();
@@ -8313,7 +8313,7 @@ const v6 = (e) => {
8313
8313
  const m = q.filter((O) => O.code !== c && !H.includes(O.code)), j = q.filter(
8314
8314
  (O) => c === O.code || H.includes(O.code)
8315
8315
  );
8316
- wA([{ key: "subAppList", value: j }]), m && m.length && m.forEach((O) => {
8316
+ EA([{ key: "subAppList", value: j }]), m && m.length && m.forEach((O) => {
8317
8317
  oA([
8318
8318
  { key: `preTab:${O.code}`, value: {} },
8319
8319
  { key: `tabMap:${O.code}`, value: [] }
@@ -8355,7 +8355,7 @@ const v6 = (e) => {
8355
8355
  F.nav.appendItem(O);
8356
8356
  });
8357
8357
  const m = e.value.find((j) => j.path === location.pathname);
8358
- m && (F.nav.setActiveItem(m.path), F.menu.setItems([]), F.tab.setItems([]), wA([
8358
+ m && (F.nav.setActiveItem(m.path), F.menu.setItems([]), F.tab.setItems([]), EA([
8359
8359
  { key: "currentSubAppCode", value: "" },
8360
8360
  { key: "currentSubApp", value: {} }
8361
8361
  ]), oA([
@@ -8432,7 +8432,7 @@ const v6 = (e) => {
8432
8432
  r();
8433
8433
  });
8434
8434
  const P = () => {
8435
- Xv(), Ur(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
8435
+ Xv(), Ur(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + wA);
8436
8436
  };
8437
8437
  return {
8438
8438
  changeEnterprisesVisible: A,
@@ -8525,7 +8525,7 @@ const v6 = (e) => {
8525
8525
  const r = A.subAppList;
8526
8526
  r == null || r.forEach((P) => {
8527
8527
  P.code === f && (P.menus = v);
8528
- }), wA([
8528
+ }), EA([
8529
8529
  {
8530
8530
  key: "currentSubApp",
8531
8531
  value: r == null ? void 0 : r.find((P) => P.code === f)
@@ -8642,7 +8642,7 @@ const r1 = f1.post("data/device-auth"), P1 = /* @__PURE__ */ lA({
8642
8642
  })) : P());
8643
8643
  }, d = () => {
8644
8644
  v("itemClick");
8645
- }, n = MA(() => `calc(100% / ${Math.sqrt(f.gridNum)})`);
8645
+ }, n = gA(() => `calc(100% / ${Math.sqrt(f.gridNum)})`);
8646
8646
  return (u, p) => (eA(), VA(
8647
8647
  "div",
8648
8648
  {
@@ -8847,7 +8847,7 @@ const r1 = f1.post("data/device-auth"), P1 = /* @__PURE__ */ lA({
8847
8847
  enlarge: import("@das-fed/ui/packages/icons/enlarge"),
8848
8848
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
8849
8849
  });
8850
- const f = e, v = A, r = o(!0), P = o(), t = o(!1), z = o(), d = MA(() => {
8850
+ const f = e, v = A, r = o(!0), P = o(), t = o(!1), z = o(), d = gA(() => {
8851
8851
  var q;
8852
8852
  return (q = z.value) == null ? void 0 : q.video;
8853
8853
  }), n = o(!1), u = o(!0), p = (q) => {
@@ -9161,7 +9161,7 @@ const N1 = /* @__PURE__ */ lA({
9161
9161
  Av({
9162
9162
  fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
9163
9163
  });
9164
- const A = e, f = o(!0), { render: v, toggleFullscreen: r } = V1(A), P = MA(() => {
9164
+ const A = e, f = o(!0), { render: v, toggleFullscreen: r } = V1(A), P = gA(() => {
9165
9165
  let t = {};
9166
9166
  switch (A.gridNum) {
9167
9167
  case 1:
@@ -11360,7 +11360,7 @@ const q8 = yA(`/api/tool/event-bus/${Rf}/`), se = q8.post("/publish"), H8 = Le.g
11360
11360
  ]),
11361
11361
  footer: Y(() => [
11362
11362
  B("div", I8, [
11363
- k(V(IA), {
11363
+ k(V(MA), {
11364
11364
  size: "middle",
11365
11365
  onClick: xA
11366
11366
  }, {
@@ -11374,7 +11374,7 @@ const q8 = yA(`/api/tool/event-bus/${Rf}/`), se = q8.post("/publish"), H8 = Le.g
11374
11374
  _: 1
11375
11375
  /* STABLE */
11376
11376
  }),
11377
- k(V(IA), {
11377
+ k(V(MA), {
11378
11378
  block: "",
11379
11379
  size: "middle",
11380
11380
  onClick: E[29] || (E[29] = (M) => h(1))
@@ -11389,7 +11389,7 @@ const q8 = yA(`/api/tool/event-bus/${Rf}/`), se = q8.post("/publish"), H8 = Le.g
11389
11389
  _: 1
11390
11390
  /* STABLE */
11391
11391
  }),
11392
- k(V(IA), {
11392
+ k(V(MA), {
11393
11393
  block: "",
11394
11394
  btnType: "primary",
11395
11395
  size: "middle",
@@ -11810,7 +11810,7 @@ const q8 = yA(`/api/tool/event-bus/${Rf}/`), se = q8.post("/publish"), H8 = Le.g
11810
11810
  )
11811
11811
  ]),
11812
11812
  B("div", fX, [
11813
- t.msgItem.equipmentCode && t.msgItem.equipmentPanelCode ? (eA(), XA(V(IA), {
11813
+ t.msgItem.equipmentCode && t.msgItem.equipmentPanelCode ? (eA(), XA(V(MA), {
11814
11814
  key: 0,
11815
11815
  block: "",
11816
11816
  onClick: OA(P, ["stop"]),
@@ -11827,7 +11827,7 @@ const q8 = yA(`/api/tool/event-bus/${Rf}/`), se = q8.post("/publish"), H8 = Le.g
11827
11827
  _: 1
11828
11828
  /* STABLE */
11829
11829
  })) : PA("v-if", !0),
11830
- t.alarmhandle ? (eA(), XA(V(IA), {
11830
+ t.alarmhandle ? (eA(), XA(V(MA), {
11831
11831
  key: 1,
11832
11832
  block: "",
11833
11833
  btnType: "primary-text",
@@ -12012,7 +12012,7 @@ const rX = () => {
12012
12012
  }), uX = { class: "das-main-app-container" }, zX = /* @__PURE__ */ lA({
12013
12013
  __name: "index",
12014
12014
  setup(e) {
12015
- const { isFullscreen: A } = K9(), f = MA(() => !A.value), v = MA(() => pA.excludeRoutes), r = MA(() => pA.routeKeepAliveVisible), P = MA(() => ({ mode: JA.value.style === 1 ? "vertical" : "inline" }));
12015
+ const { isFullscreen: A } = K9(), f = gA(() => !A.value), v = gA(() => pA.excludeRoutes), r = gA(() => pA.routeKeepAliveVisible), P = gA(() => ({ mode: JA.value.style === 1 ? "vertical" : "inline" }));
12016
12016
  mA(
12017
12017
  () => G3.nav.activeItem,
12018
12018
  (x) => {
@@ -12234,12 +12234,12 @@ En(XX);
12234
12234
  o("@das-fed/web");
12235
12235
  const bX = [
12236
12236
  {
12237
- path: gA,
12238
- component: () => import("./index-DG71Etl8.js")
12237
+ path: wA,
12238
+ component: () => import("./index-B21me_RQ.js")
12239
12239
  },
12240
12240
  {
12241
12241
  path: nv,
12242
- component: () => import("./index-CJmPuTeC.js")
12242
+ component: () => import("./index-C7__SEV7.js")
12243
12243
  }
12244
12244
  ], d2 = {
12245
12245
  routes: bX,
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-3y9GV9to.js";
2
+ import { _ as c } from "./index-B9hDz0K5.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/web/packages/main-app-framework/style.css';
2
2
  import "vue";
3
- import { m as a } from "./index-Dft0asRl.js";
3
+ import { m as a } from "./index-B9hDz0K5.js";
4
4
  import "@das-fed/web/packages/i18n/index";
5
5
  export {
6
6
  a as mainAppFramework
Binary file
Binary file
Binary file