@das-fed/web 7.0.7-hot.60 → 7.0.7-hot.61

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,19 +1,19 @@
1
- import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as D, createVNode as d, unref as c, withCtx as E, vShow as P } from "vue";
2
- import { layoutData as $ } from "@das-fed/web/packages/layout/index";
3
- import { t as b } from "@das-fed/web/packages/i18n/index";
1
+ import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as b, createVNode as d, unref as c, withCtx as D, vShow as E } from "vue";
2
+ import { layoutData as P } from "@das-fed/web/packages/layout/index";
3
+ import { t as $ } from "@das-fed/web/packages/i18n/index";
4
4
  import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
5
5
  import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as L } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as q } from "@das-fed/utils/common-tools";
8
8
  import { createService as B } from "@das-fed/utils/create-api-service";
9
- import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-DvSOhjci.js";
9
+ import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-q8r7G4BJ.js";
10
10
  const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), ne = /* @__PURE__ */ C({
11
11
  __name: "index",
12
12
  setup(J) {
13
13
  const { beforeEntryApp: g, entryApp: h } = N(), w = () => {
14
14
  const e = sessionStorage.getItem("iwmStationReservePath") || "/";
15
- window.__isAutoCloseApp = !1, location.href = e;
16
- }, _ = p(() => R.value.skinStyle), y = p(() => !!$.menu.items.length), k = p(() => {
15
+ window.__isAutoCloseApp = !1, window.open(e, "_blank");
16
+ }, _ = p(() => R.value.skinStyle), y = p(() => !!P.menu.items.length), k = p(() => {
17
17
  if (!l.value || !l.value.length) return [];
18
18
  const e = m(l.value);
19
19
  return Array.isArray(e) ? e.length ? (e.forEach((r) => {
@@ -31,7 +31,7 @@ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/
31
31
  }, U = async (e, r = !0) => {
32
32
  if (!e) return;
33
33
  if (!sessionStorage.getItem("projectInfo")) {
34
- window.confirm(b("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
34
+ window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
35
35
  return;
36
36
  }
37
37
  const t = m(e);
@@ -73,11 +73,11 @@ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/
73
73
  null,
74
74
  [
75
75
  j("button", { onClick: w }, "测试跳转到工位预定"),
76
- D(d(c(T), {
76
+ b(d(c(T), {
77
77
  full: "",
78
78
  spinning: c(V)
79
79
  }, {
80
- default: E(() => [
80
+ default: D(() => [
81
81
  d(c(x), {
82
82
  theme: _.value,
83
83
  appCategorys: k.value,
@@ -87,7 +87,7 @@ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/
87
87
  _: 1
88
88
  /* STABLE */
89
89
  }, 8, ["spinning"]), [
90
- [P, !y.value]
90
+ [E, !y.value]
91
91
  ])
92
92
  ],
93
93
  64
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-DvSOhjci.js";
2
+ import { _ as c } from "./index-q8r7G4BJ.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
@@ -8175,9 +8175,8 @@ const Sd = async () => {
8175
8175
  isProjectSwitchReload: u
8176
8176
  };
8177
8177
  }, Dm = () => {
8178
- var u;
8179
- const n = new URL(window.location.href), e = n.pathname.replace(/\/+$/, "").toLowerCase().endsWith(Cd.toLowerCase()), r = ((u = n.searchParams.get("cityCode")) == null ? void 0 : u.trim()) ?? "";
8180
- e && r && sessionStorage.setItem(pv, "true");
8178
+ const n = new URL(window.location.href);
8179
+ n.pathname.replace(/\/+$/, "").toLowerCase().endsWith(Cd.toLowerCase()) && (n.searchParams.delete("cityCode"), n.searchParams.delete("reservationTime"), sessionStorage.removeItem(pv), window.history.replaceState(window.history.state, "", `${n.pathname}${n.search}${n.hash}`));
8181
8180
  }, jm = (n) => {
8182
8181
  sessionStorage.setItem(
8183
8182
  Fd,
@@ -14250,7 +14249,7 @@ const dV = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
14250
14249
  const r = e.tenant.id, u = (v == null ? void 0 : v.tenant) ?? "";
14251
14250
  r !== u && await n(u);
14252
14251
  }
14253
- ad(v || { id: 0 }), $6((v == null ? void 0 : v.id) || 0), (e == null ? void 0 : e.flag) !== 4 && (window.__isAutoCloseApp = !1, Dm(), window.location.reload());
14252
+ ad(v || { id: 0 }), $6((v == null ? void 0 : v.id) || 0), (e == null ? void 0 : e.flag) !== 4 && (Dm(), window.__isAutoCloseApp = !1, window.location.reload());
14254
14253
  });
14255
14254
  }, bx = ve.get("/menu/search"), cx = ve.get("/searchhistory"), ax = ve.post("/searchhistory"), ix = ve.delete("/searchhistory"), qx = ve.delete("/searchhistory/deleteone"), sx = () => {
14256
14255
  const n = async () => {
@@ -18226,7 +18225,7 @@ g("@das-fed/web");
18226
18225
  const gN = [
18227
18226
  {
18228
18227
  path: ef,
18229
- component: () => import("./index-srSiACfB.js"),
18228
+ component: () => import("./index-CDxDqvvD.js"),
18230
18229
  meta: {
18231
18230
  layout: {
18232
18231
  minWidth: "0px"
@@ -18235,7 +18234,7 @@ const gN = [
18235
18234
  },
18236
18235
  {
18237
18236
  path: cd,
18238
- component: () => import("./index-CYed9XU6.js")
18237
+ component: () => import("./index-CZNzqhos.js")
18239
18238
  }
18240
18239
  ], iT = {
18241
18240
  routes: gN,
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-8eYS921_.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-q8r7G4BJ.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": "7.0.7-hot.60",
3
+ "version": "7.0.7-hot.61",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "7.0.7-hot.60",
8
- "@das-fed/utils": "7.0.7-hot.60",
9
- "@das-fed/web": "7.0.7-hot.60",
10
- "@das-fed/web-components": "7.0.7-hot.60",
7
+ "@das-fed/ui": "7.0.7-hot.61",
8
+ "@das-fed/utils": "7.0.7-hot.61",
9
+ "@das-fed/web": "7.0.7-hot.61",
10
+ "@das-fed/web-components": "7.0.7-hot.61",
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": "7.0.7-hot.60",
22
+ "@das-fed/cli": "7.0.7-hot.61",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -6711,9 +6711,8 @@ const rp = async () => {
6711
6711
  isProjectSwitchReload: l
6712
6712
  };
6713
6713
  }, R4 = () => {
6714
- var l;
6715
- const o = new URL(window.location.href), n = o.pathname.replace(/\/+$/, "").toLowerCase().endsWith(sp.toLowerCase()), a = ((l = o.searchParams.get("cityCode")) == null ? void 0 : l.trim()) ?? "";
6716
- n && a && sessionStorage.setItem(ji, "true");
6714
+ const o = new URL(window.location.href);
6715
+ o.pathname.replace(/\/+$/, "").toLowerCase().endsWith(sp.toLowerCase()) && (o.searchParams.delete("cityCode"), o.searchParams.delete("reservationTime"), sessionStorage.removeItem(ji), window.history.replaceState(window.history.state, "", `${o.pathname}${o.search}${o.hash}`));
6717
6716
  }, L4 = (o) => {
6718
6717
  sessionStorage.setItem(
6719
6718
  ap,
@@ -12786,7 +12785,7 @@ const hE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, vE = n
12786
12785
  const a = n.tenant.id, l = (r == null ? void 0 : r.tenant) ?? "";
12787
12786
  a !== l && await o(l);
12788
12787
  }
12789
- Ad(r || { id: 0 }), ud((r == null ? void 0 : r.id) || 0), (n == null ? void 0 : n.flag) !== 4 && (window.__isAutoCloseApp = !1, R4(), window.location.reload());
12788
+ Ad(r || { id: 0 }), ud((r == null ? void 0 : r.id) || 0), (n == null ? void 0 : n.flag) !== 4 && (R4(), window.__isAutoCloseApp = !1, window.location.reload());
12790
12789
  });
12791
12790
  }, x3 = jn.get("/menu/search"), m3 = jn.get("/searchhistory"), _3 = jn.post("/searchhistory"), C3 = jn.delete("/searchhistory"), y3 = jn.delete("/searchhistory/deleteone"), b3 = () => {
12792
12791
  const o = async () => {
@@ -16762,7 +16761,7 @@ W("@das-fed/web");
16762
16761
  const jS = [
16763
16762
  {
16764
16763
  path: Vt,
16765
- component: () => import("./index-DLlWagE3.js"),
16764
+ component: () => import("./index-Doc6gRMQ.js"),
16766
16765
  meta: {
16767
16766
  layout: {
16768
16767
  minWidth: "0px"
@@ -16771,7 +16770,7 @@ const jS = [
16771
16770
  },
16772
16771
  {
16773
16772
  path: Cd,
16774
- component: () => import("./index-qekI7fBd.js")
16773
+ component: () => import("./index-DLqeqqIt.js")
16775
16774
  }
16776
16775
  ], Y5 = {
16777
16776
  routes: jS,
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-8eYS921_.js";
2
+ import { _ as c } from "./index-CszZ6ZSo.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
@@ -1,19 +1,19 @@
1
- import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as D, createVNode as d, unref as c, withCtx as E, vShow as P } from "vue";
2
- import { layoutData as $ } from "@das-fed/web/packages/layout/index";
3
- import { t as b } from "@das-fed/web/packages/i18n/index";
1
+ import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as b, createVNode as d, unref as c, withCtx as D, vShow as E } from "vue";
2
+ import { layoutData as P } from "@das-fed/web/packages/layout/index";
3
+ import { t as $ } from "@das-fed/web/packages/i18n/index";
4
4
  import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
5
5
  import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as L } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as q } from "@das-fed/utils/common-tools";
8
8
  import { createService as B } from "@das-fed/utils/create-api-service";
9
- import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-8eYS921_.js";
9
+ import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-CszZ6ZSo.js";
10
10
  const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), ne = /* @__PURE__ */ C({
11
11
  __name: "index",
12
12
  setup(J) {
13
13
  const { beforeEntryApp: g, entryApp: h } = N(), w = () => {
14
14
  const e = sessionStorage.getItem("iwmStationReservePath") || "/";
15
- window.__isAutoCloseApp = !1, location.href = e;
16
- }, _ = p(() => R.value.skinStyle), y = p(() => !!$.menu.items.length), k = p(() => {
15
+ window.__isAutoCloseApp = !1, window.open(e, "_blank");
16
+ }, _ = p(() => R.value.skinStyle), y = p(() => !!P.menu.items.length), k = p(() => {
17
17
  if (!l.value || !l.value.length) return [];
18
18
  const e = m(l.value);
19
19
  return Array.isArray(e) ? e.length ? (e.forEach((r) => {
@@ -31,7 +31,7 @@ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/
31
31
  }, U = async (e, r = !0) => {
32
32
  if (!e) return;
33
33
  if (!sessionStorage.getItem("projectInfo")) {
34
- window.confirm(b("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
34
+ window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
35
35
  return;
36
36
  }
37
37
  const t = m(e);
@@ -73,11 +73,11 @@ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/
73
73
  null,
74
74
  [
75
75
  j("button", { onClick: w }, "测试跳转到工位预定"),
76
- D(d(c(T), {
76
+ b(d(c(T), {
77
77
  full: "",
78
78
  spinning: c(V)
79
79
  }, {
80
- default: E(() => [
80
+ default: D(() => [
81
81
  d(c(x), {
82
82
  theme: _.value,
83
83
  appCategorys: k.value,
@@ -87,7 +87,7 @@ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/
87
87
  _: 1
88
88
  /* STABLE */
89
89
  }, 8, ["spinning"]), [
90
- [P, !y.value]
90
+ [E, !y.value]
91
91
  ])
92
92
  ],
93
93
  64
@@ -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-DvSOhjci.js";
3
+ import { m as a } from "./index-CszZ6ZSo.js";
4
4
  import "@das-fed/web/packages/i18n/index";
5
5
  export {
6
6
  a as mainAppFramework
@@ -38,6 +38,8 @@ export declare const getStationReserveEntryParams: () => StationReserveEntryPara
38
38
  * 外部重新打开同一地址时不会携带该标记,因此仍会按最新 cityCode 重新选择项目。
39
39
  */
40
40
  export declare const markStationReserveProjectSwitchReload: () => void;
41
+ /** 静默移除工位预定入口的城市和预约时间参数,避免项目切换刷新后再次城市匹配。 */
42
+ export declare const clearStationReserveEntryQueryParams: () => void;
41
43
  /**
42
44
  * 保存第三方工位预定入口参数,供 IWM 后续业务读取。
43
45
  * 保留原始城市编码是为了避免下游业务丢失完整的行政区划路径。
Binary file