@das-fed/web 6.4.0-dev.34 → 6.4.0-dev.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/esm-map.json +2 -1
  2. package/{index-B3Zo7C9d.js → index-CRBeP89z.js} +204 -205
  3. package/index-CRBeP89z.js.gz +0 -0
  4. package/{packages/main-app-framework/index-BYJ_iw6e.js → index-CzrTf6x-.js} +1 -1
  5. package/index-CzrTf6x-.js.gz +0 -0
  6. package/index-DQLhHoNj.js +74 -0
  7. package/index-DQLhHoNj.js.gz +0 -0
  8. package/{index-DKcYM4y1.js → index-MmUsuVm6.js} +1 -1
  9. package/index.js +17 -16
  10. package/package.json +6 -6
  11. package/packages/layout/index.js +2 -1
  12. package/packages/layout/index.js.gz +0 -0
  13. package/packages/main-app-framework/{index-BGqxNwVK.js → index-BH90O_oP.js} +174 -176
  14. package/packages/main-app-framework/index-BH90O_oP.js.gz +0 -0
  15. package/{index-DJ8zDx6p.js → packages/main-app-framework/index-CwKf8xGn.js} +1 -1
  16. package/packages/main-app-framework/index-CwKf8xGn.js.gz +0 -0
  17. package/packages/main-app-framework/{index-FJjkdoP_.js → index-OD7R3sDR.js} +1 -1
  18. package/packages/main-app-framework/index-yWjHN1Jc.js +74 -0
  19. package/packages/main-app-framework/index-yWjHN1Jc.js.gz +0 -0
  20. package/packages/main-app-framework/index.js +1 -1
  21. package/types/layout/index.d.ts +1 -1
  22. package/index-B3Zo7C9d.js.gz +0 -0
  23. package/index-DJ8zDx6p.js.gz +0 -0
  24. package/index-XC7gVyAV.js +0 -71
  25. package/index-XC7gVyAV.js.gz +0 -0
  26. package/packages/main-app-framework/index-BGqxNwVK.js.gz +0 -0
  27. package/packages/main-app-framework/index-BYJ_iw6e.js.gz +0 -0
  28. package/packages/main-app-framework/index-C2gtyFHH.js +0 -71
  29. package/packages/main-app-framework/index-C2gtyFHH.js.gz +0 -0
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as
2
2
  import { useRoute as P } from "vue-router";
3
3
  import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
4
4
  import { layout as C } from "@das-fed/web/packages/layout/index";
5
- import { I as R, e as b, _ as L } from "./index-B3Zo7C9d.js";
5
+ import { I as R, e as b, _ as L } from "./index-BH90O_oP.js";
6
6
  import { getToken as M, getPersonalInfo as j, getProjectInfo as B } from "@das-fed/utils/common-info";
7
7
  import { getUrlParams as D } from "@das-fed/utils/common-tools";
8
8
  const E = {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-BGqxNwVK.js";
2
+ import { _ as c } from "./index-BH90O_oP.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -0,0 +1,74 @@
1
+ import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
2
+ import { DasAppContainer as I } from "@das-fed/ui/packages/business-components/app-container/index";
3
+ import { DasSpin as j } from "@das-fed/ui/packages/components/spin/index";
4
+ import { layoutData as D } from "@das-fed/web/packages/layout/index";
5
+ import { getTabInfo as $ } from "@das-fed/utils/common-info";
6
+ import { setShowLayout as x } from "@das-fed/utils/common-tools";
7
+ import { createService as T } from "@das-fed/utils/create-api-service";
8
+ import { u as b, a as c, c as f, b as E, l as L, d as q } from "./index-BH90O_oP.js";
9
+ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/auth/user/auth_code"), R = /* @__PURE__ */ _({
10
+ __name: "index",
11
+ setup(N) {
12
+ const { beforeEntryApp: d, entryApp: g } = b(), h = l(() => !!D.menu.items.length), m = l(() => {
13
+ if (!c.value || !c.value.length) return [];
14
+ const o = f(c.value);
15
+ return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
16
+ }), w = (o, n) => {
17
+ const t = [];
18
+ for (let r = 0; r < o.length; r += n)
19
+ t.push(o.slice(r, r + n));
20
+ return t;
21
+ }, y = async (o) => {
22
+ if (!o) return;
23
+ if (!sessionStorage.getItem("projectInfo")) {
24
+ window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
25
+ return;
26
+ }
27
+ const t = f(o);
28
+ if (L.innerSet = !0, t.routeUrl) {
29
+ if (o.code === "Ioc") {
30
+ window.open(t.routeUrl, "_blank");
31
+ return;
32
+ }
33
+ if (o.code === "wojiacloud") {
34
+ const e = sessionStorage.getItem("kingdee_token") || "";
35
+ if (e) {
36
+ const [i, a] = await K().run({ accessToken: e });
37
+ if (a) {
38
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
39
+ t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
45
+ if (r === 1) {
46
+ if (!await d(o)) return;
47
+ const i = $().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
48
+ g({ microApp: t, menuCode: a, route: { query: s } });
49
+ }
50
+ if (r === 2 && t.routeUrl) {
51
+ let e = "";
52
+ u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = x(e)) : u === 2 && (e = q(t.routeUrl)), window.open(e, "_blank");
53
+ }
54
+ };
55
+ return (o, n) => k((v(), A(p(j), {
56
+ full: "",
57
+ spinning: p(E)
58
+ }, {
59
+ default: U(() => [
60
+ C(p(I), {
61
+ appCategorys: m.value,
62
+ onOpenApp: y
63
+ }, null, 8, ["appCategorys"])
64
+ ]),
65
+ _: 1
66
+ /* STABLE */
67
+ }, 8, ["spinning"])), [
68
+ [S, !h.value]
69
+ ]);
70
+ }
71
+ });
72
+ export {
73
+ R as default
74
+ };
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/web/packages/main-app-framework/style.css';
2
2
  import "vue";
3
- import { m as p } from "./index-BGqxNwVK.js";
3
+ import { m as p } from "./index-BH90O_oP.js";
4
4
  export {
5
5
  p as mainAppFramework
6
6
  };
@@ -2,4 +2,4 @@ export { default as DasWebLayout } from './components/das-web-layout.vue';
2
2
  export { default as DasWebNav } from './components/das-web-nav.vue';
3
3
  export { default as DasWebMenu } from './components/das-web-menu.vue';
4
4
  export { default as DasWebTabs } from './components/das-web-tabs.vue';
5
- export { layout } from './store';
5
+ export { layout, layoutData } from './store';
Binary file
Binary file
package/index-XC7gVyAV.js DELETED
@@ -1,71 +0,0 @@
1
- import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
2
- import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
4
- import { getTabInfo as I } from "@das-fed/utils/common-info";
5
- import { setShowLayout as S } from "@das-fed/utils/common-tools";
6
- import { createService as j } from "@das-fed/utils/create-api-service";
7
- import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-B3Zo7C9d.js";
8
- const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
9
- __name: "index",
10
- setup(q) {
11
- const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
12
- if (!c.value || !c.value.length) return [];
13
- const o = l(c.value);
14
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
15
- }), h = (o, n) => {
16
- const e = [];
17
- for (let r = 0; r < o.length; r += n)
18
- e.push(o.slice(r, r + n));
19
- return e;
20
- }, m = async (o) => {
21
- if (!o) return;
22
- if (!sessionStorage.getItem("projectInfo")) {
23
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
24
- return;
25
- }
26
- const e = l(o);
27
- if (T.innerSet = !0, e.routeUrl) {
28
- if (o.code === "Ioc") {
29
- window.open(e.routeUrl, "_blank");
30
- return;
31
- }
32
- if (o.code === "wojiacloud") {
33
- const t = sessionStorage.getItem("kingdee_token") || "";
34
- if (t) {
35
- const [i, a] = await L().run({ accessToken: t });
36
- if (a) {
37
- const s = (a == null ? void 0 : a.auth_code) ?? "";
38
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
39
- }
40
- }
41
- }
42
- }
43
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
44
- if (r === 1) {
45
- if (!await f(o)) return;
46
- const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
- d({ microApp: e, menuCode: a, route: { query: s } });
48
- }
49
- if (r === 2 && e.routeUrl) {
50
- let t = "";
51
- u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
52
- }
53
- };
54
- return (o, n) => (y(), k(p(v), {
55
- full: "",
56
- spinning: p(x)
57
- }, {
58
- default: U(() => [
59
- A(p(C), {
60
- appCategorys: g.value,
61
- onOpenApp: m
62
- }, null, 8, ["appCategorys"])
63
- ]),
64
- _: 1
65
- /* STABLE */
66
- }, 8, ["spinning"]));
67
- }
68
- });
69
- export {
70
- G as default
71
- };
Binary file
@@ -1,71 +0,0 @@
1
- import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
2
- import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
4
- import { getTabInfo as I } from "@das-fed/utils/common-info";
5
- import { setShowLayout as S } from "@das-fed/utils/common-tools";
6
- import { createService as j } from "@das-fed/utils/create-api-service";
7
- import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-BGqxNwVK.js";
8
- const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
9
- __name: "index",
10
- setup(q) {
11
- const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
12
- if (!c.value || !c.value.length) return [];
13
- const o = l(c.value);
14
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
15
- }), h = (o, n) => {
16
- const e = [];
17
- for (let r = 0; r < o.length; r += n)
18
- e.push(o.slice(r, r + n));
19
- return e;
20
- }, m = async (o) => {
21
- if (!o) return;
22
- if (!sessionStorage.getItem("projectInfo")) {
23
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
24
- return;
25
- }
26
- const e = l(o);
27
- if (T.innerSet = !0, e.routeUrl) {
28
- if (o.code === "Ioc") {
29
- window.open(e.routeUrl, "_blank");
30
- return;
31
- }
32
- if (o.code === "wojiacloud") {
33
- const t = sessionStorage.getItem("kingdee_token") || "";
34
- if (t) {
35
- const [i, a] = await L().run({ accessToken: t });
36
- if (a) {
37
- const s = (a == null ? void 0 : a.auth_code) ?? "";
38
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
39
- }
40
- }
41
- }
42
- }
43
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
44
- if (r === 1) {
45
- if (!await f(o)) return;
46
- const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
- d({ microApp: e, menuCode: a, route: { query: s } });
48
- }
49
- if (r === 2 && e.routeUrl) {
50
- let t = "";
51
- u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
52
- }
53
- };
54
- return (o, n) => (y(), k(p(v), {
55
- full: "",
56
- spinning: p(x)
57
- }, {
58
- default: U(() => [
59
- A(p(C), {
60
- appCategorys: g.value,
61
- onOpenApp: m
62
- }, null, 8, ["appCategorys"])
63
- ]),
64
- _: 1
65
- /* STABLE */
66
- }, 8, ["spinning"]));
67
- }
68
- });
69
- export {
70
- G as default
71
- };