ss-component-new 1.3.793 → 1.3.794

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 (57) hide show
  1. package/dist/{MTLLoader-BLW4rBj3.js → MTLLoader-Cm4OrEJG.js} +1 -1
  2. package/dist/{URDFLoader-CJ0eZ787.js → URDFLoader-CaUzDP6L.js} +2 -2
  3. package/dist/{animationData-WcAtIS9e.js → animationData-DMtVc71z.js} +3 -3
  4. package/dist/{array-C4v0WwSQ.js → array-Cxt6s197.js} +3 -3
  5. package/dist/{clone-B58hfp9X.js → clone-B_hYig97.js} +1 -1
  6. package/dist/{iconfont-CDGUReXk.js → iconfont-DVo2KCgG.js} +1 -1
  7. package/dist/{index-DEZSGsHH.js → index-1kfPI0HZ.js} +5 -5
  8. package/dist/{index-DQi7rHI6.js → index-3d-mCOtJ.js} +1 -1
  9. package/dist/{index-Dzn6ZiP-.js → index-B1ueeOJh.js} +4 -4
  10. package/dist/{index-BKO-RXgQ.js → index-BMUbBrMT.js} +2 -2
  11. package/dist/{index-DsnTrY1M.js → index-BOE13QnB.js} +1 -1
  12. package/dist/{index-CXQiVSNJ.js → index-BRIu2-IE.js} +3 -3
  13. package/dist/{index-C53X6G-4.js → index-BRhlI322.js} +4 -4
  14. package/dist/{index-hq3N2pd8.js → index-C3Rd4f4u.js} +25 -16
  15. package/dist/{index-yOnrK71-.js → index-C4IOVZXF.js} +552 -548
  16. package/dist/{index-CDE3W8eV.js → index-Cgw1NH_e.js} +1 -1
  17. package/dist/{index-DuKiR1_e.js → index-CmMesvin.js} +2 -2
  18. package/dist/{index-Cryd-gMS.js → index-CnGSxj-A.js} +1 -1
  19. package/dist/index-Cpq_YbPr.js +222 -0
  20. package/dist/{index-B7PNqrjJ.js → index-D-dZmWkL.js} +4 -4
  21. package/dist/{index-GORssRqa.js → index-D0WImTzt.js} +2 -2
  22. package/dist/{index-DKgaK1z9.js → index-DN2Bi-_7.js} +1 -1
  23. package/dist/{index-BzB2Vn8c.js → index-DVLFYqXK.js} +1 -1
  24. package/dist/{index-BoM2_e4m.js → index-DYSKOp6K.js} +119 -89
  25. package/dist/{index-C-eAXBcR.js → index-DnZw_2yg.js} +1 -1
  26. package/dist/{index-BCem4LDt.js → index-DptQmTpV.js} +1 -1
  27. package/dist/{index-DrOrOkl6.js → index-DwJbhNR9.js} +2 -2
  28. package/dist/{index-A4jWIrmN.js → index-DzD-hl1o.js} +2 -2
  29. package/dist/{index-DDMr3ccr.js → index-FWzKfBqc.js} +4 -4
  30. package/dist/{index-Dl9Q4HHR.js → index-L96TPzzb.js} +8 -8
  31. package/dist/{index-BiiVP9UY.js → index-V1jLZaXg.js} +5 -5
  32. package/dist/{index-DPI8Ng2H.js → index-XTxkN1x_.js} +8 -8
  33. package/dist/{index--HxLl32u.js → index-YcASTwox.js} +3 -3
  34. package/dist/index-u5q1OD1v.js +20657 -0
  35. package/dist/{index-lnvizv_3.js → index-vQGJjhum.js} +20095 -20085
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-BqS9V6jf.js} +17 -12
  37. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D22lZDxk.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-BB_uyHkX.js} +3 -3
  38. package/dist/{main-Oii-OsDl.js → main-CjIJuDpz.js} +4 -4
  39. package/dist/{menuIndex-Cv7pne94.js → menuIndex-DKRjBdPj.js} +1 -1
  40. package/dist/obj/model.mtl +42 -0
  41. package/dist/obj/model.obj +26110 -0
  42. package/dist/ss-component.css +1 -1
  43. package/dist/ss-component.js +11 -11
  44. package/dist/ss-component2.js +12 -12
  45. package/dist/{threeModel-m8uRa9qf.js → threeModel-D2e8eSx9.js} +4 -4
  46. package/dist/{threePreview-BGFPEhB8.js → threePreview-BOzj8puJ.js} +5 -5
  47. package/dist/{threeSceneView-B8AO4V6s.js → threeSceneView-B-clO2h8.js} +12 -12
  48. package/dist/{threeSceneViewForCPMPIP-CqSE9smj.js → threeSceneViewForCPMPIP-BLmrN9DE.js} +9 -9
  49. package/dist/{threeTrackPathView-DpDSwCX_.js → threeTrackPathView-DPauwaCh.js} +4 -4
  50. package/dist/{threeViewerHost-CzBxyrCq.js → threeViewerHost-CQf-xAm_.js} +3 -3
  51. package/dist/{urdfTree-BuDVQq17.js → urdfTree-DezcL6Ot.js} +1 -1
  52. package/dist/{workpieceTreePanel-_uSgHKC_.js → workpieceTreePanel-BHvpwPW_.js} +4 -4
  53. package/package.json +1 -1
  54. package/public/obj/model.mtl +42 -0
  55. package/public/obj/model.obj +26110 -0
  56. package/dist/index-BEEhgR2h.js +0 -20448
  57. package/dist/index-CdnLi1mI.js +0 -201
@@ -1,6 +1,6 @@
1
1
  import { ref as _, computed as A } from "vue";
2
2
  import { a as I, g as M } from "./index-YjBTGOkO.js";
3
- import { E as N } from "./index-yOnrK71-.js";
3
+ import { E as N } from "./index-C4IOVZXF.js";
4
4
  import { E as s } from "./request-1RPa2bBn.js";
5
5
  const K = _([]), T = A(() => [
6
6
  {
@@ -1,6 +1,6 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { W as m } from "./index-lnvizv_3.js";
3
- import { g as d, c as _ } from "./index-CDE3W8eV.js";
2
+ import { W as m } from "./index-vQGJjhum.js";
3
+ import { g as d, c as _ } from "./index-Cgw1NH_e.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -1,4 +1,4 @@
1
- import { s as h, b as l, p as w, B as F } from "./index-yOnrK71-.js";
1
+ import { s as h, b as l, p as w, B as F } from "./index-C4IOVZXF.js";
2
2
  import { s as f } from "./request-1RPa2bBn.js";
3
3
  import { watch as p } from "vue";
4
4
  const P = l(w), { systemUrl: s, extraUrl: o } = h(P);
@@ -0,0 +1,222 @@
1
+ import { defineComponent as N, ref as V, computed as G, watch as C, nextTick as $, onMounted as _, onUnmounted as q, resolveComponent as J, createElementBlock as A, openBlock as I, createBlock as Q } from "vue";
2
+ import { b as X, p as v, s as S, d as Y, a as Z, u as p, g as ee, v as te } from "./index-C4IOVZXF.js";
3
+ import { l as ne } from "./index-DptQmTpV.js";
4
+ import { useRouter as oe } from "vue-router";
5
+ import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const ie = { key: 0 }, se = /* @__PURE__ */ N({
7
+ __name: "index",
8
+ props: {
9
+ windowConfig: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ systemInfo: {
15
+ type: Object,
16
+ default: () => {
17
+ }
18
+ },
19
+ systemKey: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ pathContent: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ mode: {
28
+ type: String,
29
+ default: "view"
30
+ },
31
+ content: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ jsonContents: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ showButton: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ nodeDev: {
44
+ type: String,
45
+ default: ""
46
+ },
47
+ pageKey: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ interfaceContent: {
52
+ type: Array,
53
+ default: () => []
54
+ },
55
+ loginContent: {
56
+ type: Object,
57
+ default: () => {
58
+ }
59
+ },
60
+ menuFiles: {
61
+ type: Array,
62
+ default: () => []
63
+ },
64
+ workspaceHistoryData: {
65
+ type: Array,
66
+ default: () => []
67
+ },
68
+ // 用于打开/拣选工作区
69
+ workspaceInfo: {
70
+ type: Object,
71
+ default: () => []
72
+ }
73
+ },
74
+ emits: [
75
+ "buildContent",
76
+ "openThreeBuild",
77
+ "threeData",
78
+ "setLoginInfo",
79
+ "projectLogin",
80
+ "updateApiUrl",
81
+ "clearFileContent",
82
+ "systemContent",
83
+ "getMenuPathValue",
84
+ "executeWorkspace",
85
+ "updateVersion"
86
+ ],
87
+ setup(f, { emit: D }) {
88
+ const E = oe(), u = X(v), { loginUserInfo: s } = S(u), { initSystemInfo: F } = Y(), j = Z(v), { refreshLogin: B } = S(j), m = p(v), w = V(!0), { activeMenuPath: L } = S(m), e = f, a = D, M = G(() => {
89
+ var t, n;
90
+ return (e == null ? void 0 : e.showButton) || ((n = (t = s.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
91
+ }), T = (t) => {
92
+ a("systemContent", t);
93
+ }, x = () => {
94
+ a("updateVersion");
95
+ }, K = () => {
96
+ a("clearFileContent");
97
+ };
98
+ C(
99
+ () => e == null ? void 0 : e.menuFiles,
100
+ () => {
101
+ var t;
102
+ ((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && m.setLocalFiles(e == null ? void 0 : e.menuFiles);
103
+ },
104
+ { deep: !0, immediate: !0 }
105
+ ), C(
106
+ () => L.value,
107
+ async () => {
108
+ var n, o;
109
+ let t = await ee({
110
+ platId: parseInt((n = s == null ? void 0 : s.value) == null ? void 0 : n.plat_id)
111
+ });
112
+ t = (o = t == null ? void 0 : t.data) == null ? void 0 : o.result, m.setDataFiles(t), a("getMenuPathValue", L.value);
113
+ },
114
+ { deep: !0, immediate: !0 }
115
+ ), C(
116
+ () => e == null ? void 0 : e.loginContent,
117
+ async () => {
118
+ var n, o, d, l;
119
+ w.value = !0;
120
+ let t = e == null ? void 0 : e.loginContent;
121
+ if (t != null && t.account && (t != null && t.password) && !B.value && (await ne(t), status)) {
122
+ let c = await te();
123
+ a("systemContent", c == null ? void 0 : c.allMenuContents), E.push("/"), u.setLogRecordAsync(
124
+ {
125
+ type: "登录",
126
+ data: {
127
+ account: ((n = s.value) == null ? void 0 : n.account) ?? ((o = s.value) == null ? void 0 : o.账号),
128
+ userName: ((d = s.value) == null ? void 0 : d.姓名) || ((l = s.value) == null ? void 0 : l.userName) || "未知"
129
+ }
130
+ },
131
+ "/login",
132
+ "login"
133
+ ), m.setHasClickEditComp(!1);
134
+ }
135
+ w.value = !1, await $();
136
+ },
137
+ { deep: !0, immediate: !0 }
138
+ );
139
+ const P = (t) => {
140
+ a("projectLogin", t);
141
+ }, R = () => {
142
+ a("projectLogin", "");
143
+ };
144
+ C(
145
+ () => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo],
146
+ async ([t, n]) => {
147
+ u.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
148
+ },
149
+ { immediate: !0 }
150
+ ), C(
151
+ () => e == null ? void 0 : e.interfaceContent,
152
+ () => {
153
+ var d, l, c, r, y, g, k;
154
+ if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((d = e == null ? void 0 : e.interfaceContent) == null ? void 0 : d.length) === 0)
155
+ return;
156
+ let t = (l = e == null ? void 0 : e.interfaceContent) == null ? void 0 : l.find((i) => i == null ? void 0 : i.includes("VITE_API_NEW_URL")), n = (c = e == null ? void 0 : e.interfaceContent) == null ? void 0 : c.find((i) => i == null ? void 0 : i.includes("VITE_FACE_RECOGNITION_API_URL")), o = (r = e == null ? void 0 : e.interfaceContent) == null ? void 0 : r.find((i) => i == null ? void 0 : i.includes("VITE_API_URL"));
157
+ n = (y = n == null ? void 0 : n.split("=")) == null ? void 0 : y[1], n = n == null ? void 0 : n.trim(), t = (g = t == null ? void 0 : t.split("=")) == null ? void 0 : g[1], t = t == null ? void 0 : t.trim(), o = (k = o == null ? void 0 : o.split("=")) == null ? void 0 : k[1], o = o == null ? void 0 : o.trim(), u.setPlcUrl(o ?? ""), u.setExtraUrl(n ?? ""), u.setSystemUrl(t ?? "");
158
+ },
159
+ { immediate: !0, deep: !0 }
160
+ ), _(async () => {
161
+ e.systemInfo ? u.setSystemInfo(e.systemInfo) : await F();
162
+ });
163
+ const b = () => {
164
+ a("buildContent");
165
+ }, H = () => {
166
+ a("setLoginInfo");
167
+ }, O = (t) => {
168
+ a("openThreeBuild", t);
169
+ }, U = (t) => {
170
+ a("threeData", t);
171
+ }, W = (t) => {
172
+ a("updateApiUrl", t);
173
+ }, z = (t) => {
174
+ a("executeWorkspace", t);
175
+ }, h = () => {
176
+ var r, y, g;
177
+ const t = e != null && e.windowConfig ? (r = e == null ? void 0 : e.windowConfig) == null ? void 0 : r.width : window.innerWidth, n = (y = e == null ? void 0 : e.windowConfig) != null && y.height ? (g = e == null ? void 0 : e.windowConfig) == null ? void 0 : g.height : window.innerHeight;
178
+ m.setSystemHeight(n);
179
+ const o = 1920, d = 16, l = t / o, c = d * l;
180
+ document.documentElement.style.fontSize = `${c}px`;
181
+ };
182
+ return _(() => {
183
+ h(), window.addEventListener("resize", h);
184
+ }), q(() => {
185
+ window.removeEventListener("resize", h);
186
+ }), (t, n) => {
187
+ const o = J("router-view");
188
+ return I(), A("div", null, [
189
+ w.value ? (I(), A("div", ie)) : (I(), Q(o, {
190
+ key: 1,
191
+ mode: e == null ? void 0 : e.mode,
192
+ content: e == null ? void 0 : e.content,
193
+ jsonContents: e == null ? void 0 : e.jsonContents,
194
+ pathContent: e == null ? void 0 : e.pathContent,
195
+ showButton: M.value,
196
+ nodeDev: e == null ? void 0 : e.nodeDev,
197
+ windowConfig: f.windowConfig,
198
+ systemInfo: f.systemInfo,
199
+ "old-systemKey": f.systemKey,
200
+ onBuildContent: b,
201
+ onProjectLogin: P,
202
+ onClearLogin: R,
203
+ onUpdateApiUrl: W,
204
+ onOpenThreeBuild: O,
205
+ pageKey: f.pageKey,
206
+ onThreeData: U,
207
+ onSetLoginInfo: H,
208
+ loginContent: e == null ? void 0 : e.loginContent,
209
+ onUpdateVersion: x,
210
+ onClearFileContent: K,
211
+ onSystemContent: T,
212
+ onExecuteWorkspace: z,
213
+ workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
214
+ workspaceInfo: e == null ? void 0 : e.workspaceInfo
215
+ }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
216
+ ]);
217
+ };
218
+ }
219
+ }), me = /* @__PURE__ */ ae(se, [["__scopeId", "data-v-2996fc79"]]);
220
+ export {
221
+ me as default
222
+ };
@@ -1,11 +1,11 @@
1
1
  import { ref as h, computed as E, reactive as j, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as x, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
2
2
  import { c8 as fe, c9 as ve, ca as ge, E as T } from "./request-1RPa2bBn.js";
3
- import { s as J, b as ye, u as be, p as G, c as me, e as he } from "./index-yOnrK71-.js";
3
+ import { s as J, b as ye, u as be, p as G, c as me, e as he } from "./index-C4IOVZXF.js";
4
4
  import { g as Q, u as we } from "./index-YjBTGOkO.js";
5
5
  import { J as X } from "./JSEncrypt-B36c1iN5.js";
6
- import { a4 as Se } from "./index-BoM2_e4m.js";
7
- import { A as _e } from "./index-DQi7rHI6.js";
8
- import { u as Y, n as Ce } from "./index-hq3N2pd8.js";
6
+ import { a4 as Se } from "./index-DYSKOp6K.js";
7
+ import { A as _e } from "./index-3d-mCOtJ.js";
8
+ import { u as Y, n as Ce } from "./index-C3Rd4f4u.js";
9
9
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { S as V } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
@@ -1,6 +1,6 @@
1
1
  import { watch as be, ref as h, computed as Le } from "vue";
2
- import { p as w, k as D, w as Te } from "./index-BoM2_e4m.js";
3
- import { s as we, b as N, p as F, u as De, B as Ee, c as E, K as U, E as Be, r as Re, aZ as Ae, a_ as Pe, a$ as Se, b0 as qe, b1 as xe, b2 as Ue } from "./index-yOnrK71-.js";
2
+ import { p as w, k as D, w as Te } from "./index-DYSKOp6K.js";
3
+ import { s as we, b as N, p as F, u as De, B as Ee, c as E, K as U, E as Be, r as Re, aZ as Ae, a_ as Pe, a$ as Se, b0 as qe, b1 as xe, b2 as Ue } from "./index-C4IOVZXF.js";
4
4
  import { s as V } from "./request-1RPa2bBn.js";
5
5
  import { i as ke } from "./fileUtil-UOt_otFo.js";
6
6
  const Ne = N(F), { systemUrl: p } = we(Ne);
@@ -1,5 +1,5 @@
1
1
  import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
2
- import { ag as _ } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D22lZDxk.js";
2
+ import { ag as _ } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-BB_uyHkX.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const z = {
5
5
  __name: "index",
@@ -1,6 +1,6 @@
1
1
  import { ref as A, computed as c, onMounted as _ } from "vue";
2
2
  import { useRouter as C } from "vue-router";
3
- import { u as g, p as h, B as R, c as b, r as S, x as E } from "./index-yOnrK71-.js";
3
+ import { u as g, p as h, B as R, c as b, r as S, x as E } from "./index-C4IOVZXF.js";
4
4
  const l = {
5
5
  ALLOW: {
6
6
  value: "允许"
@@ -1,5 +1,5 @@
1
1
  import { g as pt, b as Ll, e as ni, a as Gh } from "./index-YjBTGOkO.js";
2
- import { s as Lr, c as ae, b as o0, p as Cr, a0 as Wf, u as D0, o as Hf, a as li } from "./index-yOnrK71-.js";
2
+ import { s as Lr, c as ae, b as o0, p as Cr, a0 as Wf, u as D0, o as Hf, a as li } from "./index-C4IOVZXF.js";
3
3
  import { E as J0 } from "./request-1RPa2bBn.js";
4
4
  import { ref as Oa, reactive as oo, computed as ss, watch as uo } from "vue";
5
5
  import "./JSEncrypt-B36c1iN5.js";
@@ -1129,12 +1129,10 @@ const vo = (e, a, r) => {
1129
1129
  if (!t) return [];
1130
1130
  let s = [];
1131
1131
  const f = [];
1132
- t.forEach(
1133
- (x) => {
1134
- var h;
1135
- return (((h = x.names) == null ? void 0 : h.length) > i ? s : f).push(x);
1136
- }
1137
- );
1132
+ t.forEach((x) => {
1133
+ var h;
1134
+ return (((h = x.names) == null ? void 0 : h.length) > i ? s : f).push(x);
1135
+ });
1138
1136
  const c = f.map((x) => x.item), l = /* @__PURE__ */ new Map();
1139
1137
  s = s == null ? void 0 : s.sort((x, h) => {
1140
1138
  var d, p;
@@ -1144,37 +1142,38 @@ const vo = (e, a, r) => {
1144
1142
  const h = x.names[x.names.length - i - 1].value;
1145
1143
  l.has(h) || l.set(h, []), l.get(h).push(x);
1146
1144
  }
1147
- return [...Array.from(l.keys()).map(
1148
- (x) => {
1149
- var g, y, v, E;
1150
- const h = l.get(x);
1151
- if (h[0].names.length === 1 && (h != null && h.every((T) => {
1152
- var S, w;
1153
- return ((w = (S = T == null ? void 0 : T.names) == null ? void 0 : S[0]) == null ? void 0 : w.idx) === -1;
1154
- }))) return h[0].item;
1155
- let d = h == null ? void 0 : h.filter((T) => {
1156
- var S, w;
1157
- return ((w = (S = T == null ? void 0 : T.names) == null ? void 0 : S[0]) == null ? void 0 : w.idx) !== -1;
1158
- }), p = /* @__PURE__ */ new Map();
1159
- d == null || d.forEach((T) => {
1160
- let S = T == null ? void 0 : T.item, w = "";
1161
- for (let B in S)
1162
- B != null && B.includes("name") && (w = w === "" ? S == null ? void 0 : S[B] : w + "/" + (S == null ? void 0 : S[B]));
1163
- for (const [B, D] of p.entries())
1164
- (B.includes(w) || w != null && w.includes(B)) && (w = B);
1165
- p.set(w, T);
1166
- }), d = Array.from(p.values());
1167
- const m = j1(h);
1168
- return {
1169
- name: x,
1170
- isShow: !0,
1171
- comp: "ParentItem",
1172
- collapse: m,
1173
- children: (g = n(d, i + 1)) == null ? void 0 : g.sort((T, S) => (T == null ? void 0 : T.orderId) - (S == null ? void 0 : S.orderId)),
1174
- orderId: (E = (v = (y = n(d, i + 1)) == null ? void 0 : y.sort((T, S) => ((T == null ? void 0 : T.orderId) ?? 0) - ((S == null ? void 0 : S.orderId) ?? 0))) == null ? void 0 : v[0]) == null ? void 0 : E.orderId
1175
- };
1176
- }
1177
- ), ...c];
1145
+ return [...Array.from(l.keys()).map((x) => {
1146
+ var g, y, v, E;
1147
+ const h = l.get(x);
1148
+ if (h[0].names.length === 1 && (h != null && h.every((T) => {
1149
+ var S, w;
1150
+ return ((w = (S = T == null ? void 0 : T.names) == null ? void 0 : S[0]) == null ? void 0 : w.idx) === -1;
1151
+ })))
1152
+ return h[0].item;
1153
+ let d = h == null ? void 0 : h.filter((T) => {
1154
+ var S, w;
1155
+ return ((w = (S = T == null ? void 0 : T.names) == null ? void 0 : S[0]) == null ? void 0 : w.idx) !== -1;
1156
+ }), p = /* @__PURE__ */ new Map();
1157
+ d == null || d.forEach((T) => {
1158
+ let S = T == null ? void 0 : T.item, w = "";
1159
+ for (let B in S)
1160
+ B != null && B.includes("name") && (w = w === "" ? S == null ? void 0 : S[B] : w + "/" + (S == null ? void 0 : S[B]));
1161
+ for (const [B, D] of p.entries())
1162
+ (B.includes(w) || w != null && w.includes(B)) && (w = B);
1163
+ p.set(w, T);
1164
+ }), d = Array.from(p.values());
1165
+ const m = j1(h);
1166
+ return {
1167
+ name: x,
1168
+ isShow: !0,
1169
+ comp: "ParentItem",
1170
+ collapse: m,
1171
+ children: (g = n(d, i + 1)) == null ? void 0 : g.sort((T, S) => (T == null ? void 0 : T.orderId) - (S == null ? void 0 : S.orderId)),
1172
+ orderId: (E = (v = (y = n(d, i + 1)) == null ? void 0 : y.sort(
1173
+ (T, S) => ((T == null ? void 0 : T.orderId) ?? 0) - ((S == null ? void 0 : S.orderId) ?? 0)
1174
+ )) == null ? void 0 : v[0]) == null ? void 0 : E.orderId
1175
+ };
1176
+ }), ...c];
1178
1177
  }
1179
1178
  if (r)
1180
1179
  return n(r, 0);
@@ -1225,8 +1224,8 @@ const vo = (e, a, r) => {
1225
1224
  groupFilter: G0(l == null ? void 0 : l.groupFilter),
1226
1225
  collapseGroupKey: s || (l == null ? void 0 : l.name) || ""
1227
1226
  };
1228
- let u = $h(i.map((h) => h == null ? void 0 : h.nameContents));
1229
- u = parseInt(u);
1227
+ let u = $h(ae(i).map((h) => h == null ? void 0 : h.nameContents));
1228
+ u = parseInt(u ?? 0);
1230
1229
  let x = i.map((h) => {
1231
1230
  var d, p;
1232
1231
  return ((d = h == null ? void 0 : h.nameContents) == null ? void 0 : d[u === 1 ? u : u + 1]) ?? ((p = h == null ? void 0 : h.nameContents) == null ? void 0 : p[0]);
@@ -1234,18 +1233,20 @@ const vo = (e, a, r) => {
1234
1233
  x = [...new Set(x)], x = x == null ? void 0 : x.map((h) => ({
1235
1234
  label: h,
1236
1235
  value: h
1237
- })), r = [{
1238
- comp: "Radio",
1239
- compData: x,
1240
- name: s,
1241
- // 保留 name0 让 Radio 和后续 choice 表能在 archiveByNameX 中归入同一 ParentItem
1242
- ...s ? { name0: s } : {},
1243
- isShow: !0,
1244
- collapse: f.collapse,
1245
- menuFilter: f.menuFilter,
1246
- groupFilter: f.groupFilter,
1247
- collapseGroupKey: f.collapseGroupKey
1248
- }];
1236
+ })), r = [
1237
+ {
1238
+ comp: "Radio",
1239
+ compData: x,
1240
+ name: s,
1241
+ // 保留 name0 让 Radio 和后续 choice 表能在 archiveByNameX 中归入同一 ParentItem
1242
+ ...s ? { name0: s } : {},
1243
+ isShow: !0,
1244
+ collapse: f.collapse,
1245
+ menuFilter: f.menuFilter,
1246
+ groupFilter: f.groupFilter,
1247
+ collapseGroupKey: f.collapseGroupKey
1248
+ }
1249
+ ];
1249
1250
  }
1250
1251
  if (t && (e == null || e.forEach((l) => {
1251
1252
  if (!(l != null && l.tab))
@@ -1315,7 +1316,9 @@ const vo = (e, a, r) => {
1315
1316
  }
1316
1317
  });
1317
1318
  if (((s = (i = a == null ? void 0 : a.data) == null ? void 0 : i.result) == null ? void 0 : s.length) > 0) {
1318
- let kr = (h = (x = (u = (o = (l = (c = (f = a == null ? void 0 : a.data) == null ? void 0 : f.result) == null ? void 0 : c[0]) == null ? void 0 : l.value) == null ? void 0 : o.pageData) == null ? void 0 : u.compData) == null ? void 0 : x.find((xa) => (xa == null ? void 0 : xa.key) === "header")) == null ? void 0 : h.contents;
1319
+ let kr = (h = (x = (u = (o = (l = (c = (f = a == null ? void 0 : a.data) == null ? void 0 : f.result) == null ? void 0 : c[0]) == null ? void 0 : l.value) == null ? void 0 : o.pageData) == null ? void 0 : u.compData) == null ? void 0 : x.find(
1320
+ (xa) => (xa == null ? void 0 : xa.key) === "header"
1321
+ )) == null ? void 0 : h.contents;
1319
1322
  e = (p = (d = ae(kr)) == null ? void 0 : d[0]) == null ? void 0 : p.label;
1320
1323
  }
1321
1324
  let r = t0.value;
@@ -1343,7 +1346,9 @@ const vo = (e, a, r) => {
1343
1346
  let We = [], Vr = [];
1344
1347
  const ia = await pt({
1345
1348
  key: {
1346
- pageKey: (De = t0.value.split(ot + `updateLoading${((P = Pa.value) == null ? void 0 : P.account) || ((Pe = Pa.value) == null ? void 0 : Pe.账号)}`)) == null ? void 0 : De[0],
1349
+ pageKey: (De = t0.value.split(
1350
+ ot + `updateLoading${((P = Pa.value) == null ? void 0 : P.account) || ((Pe = Pa.value) == null ? void 0 : Pe.账号)}`
1351
+ )) == null ? void 0 : De[0],
1347
1352
  systemKey: sessionStorage.getItem("systemKey")
1348
1353
  }
1349
1354
  });
@@ -1353,12 +1358,16 @@ const vo = (e, a, r) => {
1353
1358
  if (((Tr = fr == null ? void 0 : fr.key) == null ? void 0 : Tr.type) === "structure") {
1354
1359
  let O = (ft = (Wa = (Ua = (Ra = fr == null ? void 0 : fr.value) == null ? void 0 : Ra.pageData) == null ? void 0 : Ua.compData) == null ? void 0 : Wa.find((C) => (C == null ? void 0 : C.key) === "parentFormPath")) == null ? void 0 : ft.contents;
1355
1360
  if (O) {
1356
- let C = await Rn(O, sessionStorage.getItem("systemKey"), ""), R = (Pt = (kt = (Nt = (Rt = fr == null ? void 0 : fr.value) == null ? void 0 : Rt.pageData) == null ? void 0 : Nt.compData) == null ? void 0 : kt.find((j) => (j == null ? void 0 : j.key) === "formContent")) == null ? void 0 : Pt.contents, X = C == null ? void 0 : C.filter((j) => (j == null ? void 0 : j.comp) === "Form");
1361
+ let C = await Rn(O, sessionStorage.getItem("systemKey"), ""), R = (Pt = (kt = (Nt = (Rt = fr == null ? void 0 : fr.value) == null ? void 0 : Rt.pageData) == null ? void 0 : Nt.compData) == null ? void 0 : kt.find(
1362
+ (j) => (j == null ? void 0 : j.key) === "formContent"
1363
+ )) == null ? void 0 : Pt.contents, X = C == null ? void 0 : C.filter((j) => (j == null ? void 0 : j.comp) === "Form");
1357
1364
  X == null || X.forEach((j) => {
1358
1365
  var z;
1359
1366
  (z = j == null ? void 0 : j.compData) == null || z.forEach((V) => {
1360
1367
  var Y, ce;
1361
- if ((V == null ? void 0 : V.key) === "formContent" && ((Y = V == null ? void 0 : V.contents) == null ? void 0 : Y.some((Ee) => R == null ? void 0 : R.find((ue) => (ue == null ? void 0 : ue.prop) === (Ee == null ? void 0 : Ee.prop))))) {
1368
+ if ((V == null ? void 0 : V.key) === "formContent" && ((Y = V == null ? void 0 : V.contents) == null ? void 0 : Y.some(
1369
+ (Ee) => R == null ? void 0 : R.find((ue) => (ue == null ? void 0 : ue.prop) === (Ee == null ? void 0 : Ee.prop))
1370
+ ))) {
1362
1371
  let Ee = j;
1363
1372
  Ee.compData = (ce = Ee.compData) == null ? void 0 : ce.map((ge) => {
1364
1373
  var qe;
@@ -1417,18 +1426,26 @@ const vo = (e, a, r) => {
1417
1426
  if ((t == null ? void 0 : t.length) > 0) {
1418
1427
  await Ll({
1419
1428
  dataList: t
1420
- }), (Ia = t == null ? void 0 : t[0]) != null && Ia.key && await Ni.setLogRecordAsync({
1421
- type: "保存",
1422
- data: t
1423
- }, (St = t == null ? void 0 : t[0]) == null ? void 0 : St.key), (We == null ? void 0 : We.length) > 0 && (await ni({
1429
+ }), (Ia = t == null ? void 0 : t[0]) != null && Ia.key && await Ni.setLogRecordAsync(
1430
+ {
1431
+ type: "保存",
1432
+ data: t
1433
+ },
1434
+ (St = t == null ? void 0 : t[0]) == null ? void 0 : St.key
1435
+ ), (We == null ? void 0 : We.length) > 0 && (await ni({
1424
1436
  dataList: We
1425
- }), (Za = We == null ? void 0 : We[0]) != null && Za.key && await Ni.setLogRecordAsync({
1426
- type: "保存",
1427
- data: We
1428
- }, (Ea = We == null ? void 0 : We[0]) == null ? void 0 : Ea.key));
1437
+ }), (Za = We == null ? void 0 : We[0]) != null && Za.key && await Ni.setLogRecordAsync(
1438
+ {
1439
+ type: "保存",
1440
+ data: We
1441
+ },
1442
+ (Ea = We == null ? void 0 : We[0]) == null ? void 0 : Ea.key
1443
+ ));
1429
1444
  const Ta = await pt({
1430
1445
  key: {
1431
- pageKey: (Ce = t0.value.split(ot + `updateLoading${((za = Pa.value) == null ? void 0 : za.account) || ((Se = Pa.value) == null ? void 0 : Se.账号)}`)) == null ? void 0 : Ce[0],
1446
+ pageKey: (Ce = t0.value.split(
1447
+ ot + `updateLoading${((za = Pa.value) == null ? void 0 : za.account) || ((Se = Pa.value) == null ? void 0 : Se.账号)}`
1448
+ )) == null ? void 0 : Ce[0],
1432
1449
  systemKey: sessionStorage.getItem("systemKey")
1433
1450
  }
1434
1451
  });
@@ -1467,10 +1484,13 @@ const vo = (e, a, r) => {
1467
1484
  }
1468
1485
  (Vr == null ? void 0 : Vr.length) > 0 && (await ni({
1469
1486
  dataList: Vr
1470
- }), (Rr = We == null ? void 0 : We[0]) != null && Rr.key && await Ni.setLogRecordAsync({
1471
- type: "保存",
1472
- data: Vr
1473
- }, (hr = Vr == null ? void 0 : Vr[0]) == null ? void 0 : hr.key)), J0.success("保存成功");
1487
+ }), (Rr = We == null ? void 0 : We[0]) != null && Rr.key && await Ni.setLogRecordAsync(
1488
+ {
1489
+ type: "保存",
1490
+ data: Vr
1491
+ },
1492
+ (hr = Vr == null ? void 0 : Vr[0]) == null ? void 0 : hr.key
1493
+ )), J0.success("保存成功");
1474
1494
  }
1475
1495
  } else {
1476
1496
  if ((b = (I = n == null ? void 0 : n.data) == null ? void 0 : I.result) == null || b.forEach((We) => {
@@ -1486,10 +1506,18 @@ const vo = (e, a, r) => {
1486
1506
  }
1487
1507
  (G = t == null ? void 0 : t[0]) != null && G.key && (await Ll({
1488
1508
  dataList: t
1489
- }), await Ni.setLogRecordAsync({
1490
- type: "保存",
1491
- data: t
1492
- }, (ee = t == null ? void 0 : t[0]) == null ? void 0 : ee.key)), await Ao(ae(gn).value + ot + kr, ae(gn).value + ot + kr + ot + `updateLoading${((Q = Pa.value) == null ? void 0 : Q.account) || ((Z = Pa.value) == null ? void 0 : Z.账号)}`), In.setActiveMenuPath(ae(gn).value + ot + kr + ot + `updateLoading${((J = Pa.value) == null ? void 0 : J.account) || ((Te = Pa.value) == null ? void 0 : Te.账号)}`), J0.success("保存成功");
1509
+ }), await Ni.setLogRecordAsync(
1510
+ {
1511
+ type: "保存",
1512
+ data: t
1513
+ },
1514
+ (ee = t == null ? void 0 : t[0]) == null ? void 0 : ee.key
1515
+ )), await Ao(
1516
+ ae(gn).value + ot + kr,
1517
+ ae(gn).value + ot + kr + ot + `updateLoading${((Q = Pa.value) == null ? void 0 : Q.account) || ((Z = Pa.value) == null ? void 0 : Z.账号)}`
1518
+ ), In.setActiveMenuPath(
1519
+ ae(gn).value + ot + kr + ot + `updateLoading${((J = Pa.value) == null ? void 0 : J.account) || ((Te = Pa.value) == null ? void 0 : Te.账号)}`
1520
+ ), J0.success("保存成功");
1493
1521
  }
1494
1522
  }
1495
1523
  In.setImportLoading(!1);
@@ -2489,7 +2517,7 @@ const rx = Gf(Cr), { multipleTableConst: Jl } = Lr(rx), ax = o0(Cr), { loginUser
2489
2517
  if (Q0.value++, Array.isArray(t))
2490
2518
  return Rs(t, a);
2491
2519
  {
2492
- let f = ((i = t == null ? void 0 : t.filter) == null ? void 0 : i.includes("@Readonly=true")) ?? !1;
2520
+ let f = ((i = t == null ? void 0 : t.filter) == null ? void 0 : i.includes("@EditRead=Read")) ?? !1;
2493
2521
  return {
2494
2522
  label: (t == null ? void 0 : t.label) === "操作" ? a ? "操作" : "" : (t == null ? void 0 : t.label) ?? "",
2495
2523
  prop: (t == null ? void 0 : t.label) === "操作" ? "operate" : (t == null ? void 0 : t.prop) ?? "a" + Q0.value,
@@ -2547,7 +2575,7 @@ const rx = Gf(Cr), { multipleTableConst: Jl } = Lr(rx), ax = o0(Cr), { loginUser
2547
2575
  var x, h, d;
2548
2576
  u !== "" && ((d = (h = (x = u == null ? void 0 : u.split(Ff + "updateLoading")) == null ? void 0 : x[0]) == null ? void 0 : h.split(Ff + "loading")) == null || d[0]);
2549
2577
  });
2550
- let s = ((l = i == null ? void 0 : i.filter) == null ? void 0 : l.includes("@Readonly=true")) ?? !1;
2578
+ let s = ((l = i == null ? void 0 : i.filter) == null ? void 0 : l.includes("@EditRead=Read")) ?? !1;
2551
2579
  return Array.isArray(i) ? i = Rs(i, a) : (i = {
2552
2580
  label: (i == null ? void 0 : i.label) === "操作" ? a ? "操作" : "" : (i == null ? void 0 : i.label) ?? "",
2553
2581
  prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : (i == null ? void 0 : i.prop) ?? "a" + Q0.value,
@@ -2779,10 +2807,12 @@ const rx = Gf(Cr), { multipleTableConst: Jl } = Lr(rx), ax = o0(Cr), { loginUser
2779
2807
  if (!t)
2780
2808
  _ = s;
2781
2809
  else {
2782
- const A = s == null ? void 0 : s.find((b) => {
2783
- var G, ee;
2784
- return t == null ? void 0 : t.includes((ee = (G = b == null ? void 0 : b.value) == null ? void 0 : G.pageData) == null ? void 0 : ee.name);
2785
- }), I = /^[A-Za-z]+$/;
2810
+ const A = s == null ? void 0 : s.find(
2811
+ (b) => {
2812
+ var G, ee;
2813
+ return t == null ? void 0 : t.includes((ee = (G = b == null ? void 0 : b.value) == null ? void 0 : G.pageData) == null ? void 0 : ee.name);
2814
+ }
2815
+ ), I = /^[A-Za-z]+$/;
2786
2816
  _ = A ? s == null ? void 0 : s.map((b) => {
2787
2817
  var G, ee, Q, Z, J, Te;
2788
2818
  return t != null && t.includes((ee = (G = b == null ? void 0 : b.value) == null ? void 0 : G.pageData) == null ? void 0 : ee.name) ? {
@@ -2897,12 +2927,10 @@ const rx = Gf(Cr), { multipleTableConst: Jl } = Lr(rx), ax = o0(Cr), { loginUser
2897
2927
  var De, je, Le, ie, ur, ir, ka, Ia;
2898
2928
  return ((je = (De = A == null ? void 0 : A.value) == null ? void 0 : De.pageData) == null ? void 0 : je.name) === ((ie = (Le = Pe == null ? void 0 : Pe.value) == null ? void 0 : Le.pageData) == null ? void 0 : ie.name) && ((ir = (ur = A == null ? void 0 : A.value) == null ? void 0 : ur.pageData) == null ? void 0 : ir.name0) === ((Ia = (ka = Pe == null ? void 0 : Pe.value) == null ? void 0 : ka.pageData) == null ? void 0 : Ia.name0);
2899
2929
  }
2900
- )) == null ? void 0 : ee.value : I = (Q = _ == null ? void 0 : _.find(
2901
- (Pe) => {
2902
- var De, je, Le, ie;
2903
- return ((je = (De = A == null ? void 0 : A.value) == null ? void 0 : De.pageData) == null ? void 0 : je.name) === ((ie = (Le = Pe == null ? void 0 : Pe.value) == null ? void 0 : Le.pageData) == null ? void 0 : ie.name);
2904
- }
2905
- )) == null ? void 0 : Q.value, I ? I = I : I = void 0, s.push({
2930
+ )) == null ? void 0 : ee.value : I = (Q = _ == null ? void 0 : _.find((Pe) => {
2931
+ var De, je, Le, ie;
2932
+ return ((je = (De = A == null ? void 0 : A.value) == null ? void 0 : De.pageData) == null ? void 0 : je.name) === ((ie = (Le = Pe == null ? void 0 : Pe.value) == null ? void 0 : Le.pageData) == null ? void 0 : ie.name);
2933
+ })) == null ? void 0 : Q.value, I ? I = I : I = void 0, s.push({
2906
2934
  key: {
2907
2935
  pageKey: a,
2908
2936
  parentTable: ((Z = I == null ? void 0 : I.key) == null ? void 0 : Z.parentTable) ?? "",
@@ -3231,10 +3259,12 @@ const rx = Gf(Cr), { multipleTableConst: Jl } = Lr(rx), ax = o0(Cr), { loginUser
3231
3259
  }
3232
3260
  let w = [], B = 0;
3233
3261
  for (let be in S)
3234
- ((ne = S[be]) == null ? void 0 : ne[0]) !== "!" ? w = (he = B > 0 ? w : g) == null ? void 0 : he.filter((we) => we[be] === S[be]) : w = (le = B > 0 ? w : g) == null ? void 0 : le.filter((K) => {
3235
- var we;
3236
- return K[be] !== ((we = S[be]) == null ? void 0 : we.replaceAll("!", ""));
3237
- }), B = 1;
3262
+ ((ne = S[be]) == null ? void 0 : ne[0]) !== "!" ? w = (he = B > 0 ? w : g) == null ? void 0 : he.filter((we) => we[be] === S[be]) : w = (le = B > 0 ? w : g) == null ? void 0 : le.filter(
3263
+ (K) => {
3264
+ var we;
3265
+ return K[be] !== ((we = S[be]) == null ? void 0 : we.replaceAll("!", ""));
3266
+ }
3267
+ ), B = 1;
3238
3268
  E = [...E, ...w];
3239
3269
  }), g = [...new Set(E)];
3240
3270
  }
@@ -1,5 +1,5 @@
1
1
  import { watch as n } from "vue";
2
- import { s as o, b as p, p as u } from "./index-yOnrK71-.js";
2
+ import { s as o, b as p, p as u } from "./index-C4IOVZXF.js";
3
3
  import { s as r } from "./request-1RPa2bBn.js";
4
4
  const m = p(u), { systemUrl: a } = o(m);
5
5
  let e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
@@ -1,4 +1,4 @@
1
- import { f as C, h as L, d as b, b as N, p as j, s as R, i as T } from "./index-yOnrK71-.js";
1
+ import { f as C, h as L, d as b, b as N, p as j, s as R, i as T } from "./index-C4IOVZXF.js";
2
2
  import { E as k } from "./request-1RPa2bBn.js";
3
3
  const q = N(j), { isDefaultModel: D } = b(), E = async (m, a) => {
4
4
  var c, o, i, r, l, s, g, f, _, y, h, S, w, A;
@@ -1,6 +1,6 @@
1
1
  import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
2
- import { s as b } from "./index-DKgaK1z9.js";
3
- import { c as s } from "./index-yOnrK71-.js";
2
+ import { s as b } from "./index-DN2Bi-_7.js";
3
+ import { c as s } from "./index-C4IOVZXF.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
6
6
  var r, d, p, m;