ss-component-new 1.3.795 → 1.3.797

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 (62) hide show
  1. package/dist/{MTLLoader-Cm4OrEJG.js → MTLLoader-qj8FNKcl.js} +1 -1
  2. package/dist/{URDFLoader-CaUzDP6L.js → URDFLoader-BrHQm-js.js} +2 -2
  3. package/dist/{animationData-DMtVc71z.js → animationData-qMZz55jN.js} +3 -3
  4. package/dist/{array-DtFPjHfz.js → array-DZQ3dqSi.js} +4 -4
  5. package/dist/{clone-B_hYig97.js → clone-DpmcrUNP.js} +1 -1
  6. package/dist/{eleIcon-qStmsM1q.js → eleIcon-BUlmhh1Q.js} +1 -1
  7. package/dist/{iconfont-DVo2KCgG.js → iconfont-u5M3UA1x.js} +1 -1
  8. package/dist/{index-V1jLZaXg.js → index-8YS9ZJTa.js} +5 -5
  9. package/dist/{index-C9FaWM1n.js → index-B-fvSKvM.js} +6 -6
  10. package/dist/{index-C-c_pJ-U.js → index-BXBXagTa.js} +2 -2
  11. package/dist/{index-BwbSUH-Y.js → index-BXuOO_q9.js} +4 -4
  12. package/dist/{index-DoHDgrqS.js → index-BlsTExYc.js} +2 -2
  13. package/dist/{index-Cpq_YbPr.js → index-Bs_z7GI2.js} +2 -2
  14. package/dist/{index-Cgw1NH_e.js → index-C4JRH2bS.js} +3 -3
  15. package/dist/{index-DYSKOp6K.js → index-CAiJC2Mp.js} +75 -103
  16. package/dist/{index-DptQmTpV.js → index-CSCFEbMn.js} +2 -2
  17. package/dist/index-CTJ70_hf.js +483 -0
  18. package/dist/{index-DVLFYqXK.js → index-CYiiVUoE.js} +1 -1
  19. package/dist/{index-BRIu2-IE.js → index-CYzYIJ9E.js} +2 -2
  20. package/dist/{index-DlZhAqIf.js → index-Ca-vPm5y.js} +26 -26
  21. package/dist/{index-BRhlI322.js → index-Clit5YEb.js} +4 -4
  22. package/dist/{index-BcdANJy4.js → index-ClyApUfj.js} +1 -1
  23. package/dist/{index-3d-mCOtJ.js → index-CoXqB8FL.js} +16 -16
  24. package/dist/{index-CiSgZbft.js → index-CuzUuZid.js} +6 -6
  25. package/dist/{index-DN2Bi-_7.js → index-Cvi-tSQN.js} +1 -1
  26. package/dist/{index-DUbk5m5P.js → index-CxNCh2uA.js} +2 -2
  27. package/dist/{index-C4IOVZXF.js → index-D1VswI-c.js} +1 -1
  28. package/dist/{index-BWV3TLgn.js → index-D5LCgfvq.js} +28856 -28757
  29. package/dist/{index-DwJbhNR9.js → index-D6nsNYLY.js} +2 -2
  30. package/dist/{index-CWOXvFfD.js → index-DNIDO-x3.js} +1 -1
  31. package/dist/{index-D0WImTzt.js → index-Dd2wE6ad.js} +3 -3
  32. package/dist/{index-YcASTwox.js → index-DifeHTkx.js} +5 -5
  33. package/dist/{index-DXdoLLnu.js → index-DkJCja5q.js} +4 -4
  34. package/dist/{index-B1ueeOJh.js → index-Doj4Q1x1.js} +30 -30
  35. package/dist/index-F0m02ROJ.js +20925 -0
  36. package/dist/{index-YjBTGOkO.js → index-JzyzdVhr.js} +9 -9
  37. package/dist/{index-Blaerap8.js → index-ixfXSjGU.js} +6355 -6317
  38. package/dist/{index-DnZw_2yg.js → index-jnr3jv8h.js} +2 -2
  39. package/dist/{index-CnGSxj-A.js → index-y4IdSOLI.js} +2 -2
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-BB_uyHkX.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Bxor3Tau.js} +4 -4
  41. package/dist/{isString-0ZglyOfu.js → isString-xtGUjaiC.js} +1 -1
  42. package/dist/{main-C4okxFnx.js → main-CTMH3hCb.js} +4 -4
  43. package/dist/{menuIndex-DKRjBdPj.js → menuIndex-4XVUtQvt.js} +1 -1
  44. package/dist/{request-1RPa2bBn.js → request-DUCugy3B.js} +192 -186
  45. package/dist/ss-component.css +2 -2
  46. package/dist/ss-component.js +12 -12
  47. package/dist/ss-component2.js +13 -13
  48. package/dist/{threeModel-DHdfM4rx.js → threeModel-DrSp_rH1.js} +5 -5
  49. package/dist/{threePreview-I8gUSp9r.js → threePreview-CIa7ZsHC.js} +6 -6
  50. package/dist/{threeSceneView-Cvd3g2xU.js → threeSceneView-ChNRBtn1.js} +75 -75
  51. package/dist/{threeSceneViewForCPMPIP-GztmRkPg.js → threeSceneViewForCPMPIP-CdWQH-31.js} +9 -9
  52. package/dist/{threeTrackPathView-DPauwaCh.js → threeTrackPathView-Bup5awpS.js} +6 -6
  53. package/dist/{threeViewerHost-B1ykYP9J.js → threeViewerHost-CBqbbuiG.js} +3 -3
  54. package/dist/{urdfTree-DezcL6Ot.js → urdfTree-Djjzq3gO.js} +1 -1
  55. package/dist/{workpieceTreePanel-BHvpwPW_.js → workpieceTreePanel-D3WYCFFL.js} +4 -4
  56. package/package.json +1 -1
  57. package/dist/index-C6S9Q-gu.js +0 -470
  58. package/dist/index-CojoXE61.js +0 -20657
  59. package/dist/obj/model.mtl +0 -42
  60. package/dist/obj/model.obj +0 -26110
  61. package/public/obj/model.mtl +0 -42
  62. package/public/obj/model.obj +0 -26110
@@ -0,0 +1,483 @@
1
+ import { defineAsyncComponent as vt, computed as _e, onMounted as Ne, resolveComponent as Z, createBlock as Pe, openBlock as O, withCtx as V, resolveDynamicComponent as qe, defineComponent as yt, defineProps as gt, ref as U, watch as Ue, reactive as Ct, nextTick as kt, createElementBlock as X, Fragment as Oe, createVNode as Y, createCommentVNode as Me, normalizeStyle as Dt, toDisplayString as St, createElementVNode as $e, createTextVNode as je, renderList as _t } from "vue";
2
+ import { u as It, a as bt, p as Re, b as Mt, s as Te, c as we, v as ue } from "./index-D1VswI-c.js";
3
+ import { S as Tt } from "./index-BHtNKL1L.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Bxor3Tau.js";
5
+ import { I as ut } from "./request-DUCugy3B.js";
6
+ import { s as Pt } from "./index-11kpzK0A.js";
7
+ import { d as At } from "./index-ixfXSjGU.js";
8
+ import { useRouter as wt } from "vue-router";
9
+ import { a as Bt, e as Et, f as Ft, g as Lt, h as Ut } from "./index-ChNfRlIP.js";
10
+ import { g as ze, u as Ot, b as Ke, c as $t, a as jt } from "./index-JzyzdVhr.js";
11
+ import { g as Rt } from "./index-D5LCgfvq.js";
12
+ import { f as zt } from "./menuIndex-4XVUtQvt.js";
13
+ import { e as We, f as Je, n as Kt } from "./index-CAiJC2Mp.js";
14
+ import { u as Wt } from "./index-Dd2wE6ad.js";
15
+ import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Ae = vt(() => import("./index-ixfXSjGU.js").then((i) => i.r));
17
+ Ae.install = (i) => {
18
+ i.component("ssMenu", Ae);
19
+ };
20
+ const Nt = {
21
+ __name: "index",
22
+ props: {
23
+ name: String
24
+ },
25
+ setup(i) {
26
+ const c = i, _ = _e(() => ut[c.name]);
27
+ return Ne(() => {
28
+ }), (f, o) => {
29
+ const l = Z("el-icon");
30
+ return O(), Pe(l, null, {
31
+ default: V(() => [
32
+ (O(), Pe(qe(_.value)))
33
+ ]),
34
+ _: 1
35
+ });
36
+ };
37
+ }
38
+ }, xe = (i, c, _ = 0) => {
39
+ let f = i;
40
+ return f != null && f.every((o) => Array.isArray(o)) && (f != null && f.every((o) => Array.isArray(o) && o.length === 1) ? f = f == null ? void 0 : f.filter((o) => (o == null ? void 0 : o[0]) !== (c == null ? void 0 : c[_])) : f = f == null ? void 0 : f.map((o) => {
41
+ if (o != null && o.find((l) => l === (c == null ? void 0 : c[_])) && (c == null ? void 0 : c.length) !== 1) {
42
+ let l = we(c), r = o == null ? void 0 : o.filter((g) => g !== (l == null ? void 0 : l[_])), T = _ + 1, P = xe(r, l, T), I = [];
43
+ I.push(o == null ? void 0 : o[0]), P == null || P.forEach((g) => {
44
+ I.push(g);
45
+ }), o = I;
46
+ }
47
+ return o;
48
+ })), f;
49
+ }, Ge = (i, c, _, f = 0) => {
50
+ let o = i;
51
+ return o != null && o.every((l) => Array.isArray(l)) && (o != null && o.every((l) => Array.isArray(l) && l.length === 1) ? o.push([_]) : o = o == null ? void 0 : o.map((l) => {
52
+ if (l != null && l.find((r) => r === (c == null ? void 0 : c[f])) && (c == null ? void 0 : c.length) !== 1) {
53
+ let r = we(c), T = l == null ? void 0 : l.filter((u) => u !== (r == null ? void 0 : r[f])), P = f + 1, I = Ge(T, r, _, P), g = [];
54
+ g.push(l == null ? void 0 : l[0]), I == null || I.forEach((u) => {
55
+ g.push(u);
56
+ }), l = g;
57
+ }
58
+ return l;
59
+ })), o;
60
+ }, Be = (i, c, _, f, o = 0) => {
61
+ let l = i;
62
+ return l != null && l.every((r) => Array.isArray(r)) && (l != null && l.every((r) => Array.isArray(r) && r.length === 1) ? l = l == null ? void 0 : l.map((r) => ((r == null ? void 0 : r[0]) === _ && (r = [f]), r)) : l = l == null ? void 0 : l.map((r) => {
63
+ if (r != null && r.find((T) => T === (c == null ? void 0 : c[o])) && (c == null ? void 0 : c.length) !== 1) {
64
+ let T = we(c), P = r == null ? void 0 : r.filter((a) => a !== (T == null ? void 0 : T[o])), I = o + 1, g = Be(P, T, _, f, I), u = [];
65
+ u.push(r == null ? void 0 : r[0]), g == null || g.forEach((a) => {
66
+ u.push(a);
67
+ }), r = u;
68
+ }
69
+ return r;
70
+ })), l;
71
+ };
72
+ function Qe(i = "menu") {
73
+ return {
74
+ name: i,
75
+ components: {
76
+ SvgIcon: Tt,
77
+ ssMenu: Ae,
78
+ DynamicIcon: Nt,
79
+ ssDialog: Pt,
80
+ ssInput: At
81
+ },
82
+ setup(c, { emit: _ }) {
83
+ const f = gt({
84
+ mode: {
85
+ type: String,
86
+ default: "vertical"
87
+ }
88
+ }), o = U([
89
+ {
90
+ allowInherit: !1,
91
+ operateType: "复制新增",
92
+ operateIcon: "CopyAddMenu"
93
+ },
94
+ {
95
+ allowInherit: !1,
96
+ operateType: "删除",
97
+ operateIcon: "DeleteMenu"
98
+ },
99
+ {
100
+ allowInherit: !1,
101
+ operateType: "修改菜单名",
102
+ operateIcon: "FixedMenu"
103
+ }
104
+ ]), l = It(), r = bt(Re), T = Mt(Re), { loginUserInfo: P } = Te(T), I = U(0), g = wt(), u = U(), { asideMenus: a, menuTriggerType: H, platform: Se, jumpMenuInform: $ } = Te(l), { fixMenuStatus: Ie } = Te(r), { isSuperAdmin: Xe } = Wt(), Ye = _e(() => f == null ? void 0 : f.mode), Ee = (t) => t == null ? void 0 : t.map((e) => {
105
+ var n, h;
106
+ return !(e != null && e.children) || ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) === 0 ? e.config = o.value : e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && (e.children = Ee(e.children)), e;
107
+ }), Fe = _e(() => {
108
+ let t = [...a.value];
109
+ if ((t == null ? void 0 : t.length) === 0)
110
+ return g.push("/"), [];
111
+ const s = et(t, me.value);
112
+ return s.isFlag || (t = s == null ? void 0 : s.data), t = t == null ? void 0 : t.map((e) => {
113
+ var n, h;
114
+ return !(e != null && e.children) || ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) === 0 ? e.config = o.value : e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && (e.children = Ee(e.children)), e;
115
+ }), t;
116
+ }), Ze = async (t, s) => {
117
+ r.setRouteToChildPath(""), l.setMenuTriggerType("click"), l.setActiveMenuPath(t == null ? void 0 : t.path), l.setActiveAsideMenu(t), t.isRouter ? g.push(t.path) : g.push("/"), _("node-click", t, s);
118
+ }, Ve = async (t) => {
119
+ const s = zt(Fe.value, "path", t), e = String(t ?? "").replace(/^\/+|\/+$/g, ""), n = String(l.activeMenuPath ?? "").replace(/^\/+|\/+$/g, ""), h = n.startsWith(`${e}/`);
120
+ l.setActiveAsideMenu(s), r.setRouteToChildPath(""), Ie.value ? r.setFixMenuStatus(!1) : (q.value && (H.value = "open"), H.value === "click" ? !$.value && !h ? l.setActiveMenuPath(t) : h && e.startsWith("试验任务/试验准备") && console.info("[TaskPreparationNavigation] ancestor menu open preserved leaf path", {
121
+ openedPath: e,
122
+ activeMenuPath: n
123
+ }) : q.value || (l.setMenuTriggerType("click"), !$.value && !h && l.setActiveMenuPath(t))), t != null && t.startsWith("/") ? g.push(t) : g.push("/"), I.value++;
124
+ }, He = (t) => {
125
+ if (q.value)
126
+ return;
127
+ const s = String(t ?? "").replace(/^\/+|\/+$/g, ""), e = String(l.activeMenuPath ?? "").replace(/^\/+|\/+$/g, "");
128
+ if (e.startsWith(`${s}/`)) {
129
+ s.startsWith("试验任务/试验准备") && console.info("[TaskPreparationNavigation] ancestor menu close preserved leaf path", {
130
+ closedPath: s,
131
+ activeMenuPath: e
132
+ });
133
+ return;
134
+ }
135
+ l.setActiveMenuPath(t);
136
+ }, J = (t) => {
137
+ const s = document.documentElement;
138
+ t == null || t.forEach((e) => {
139
+ s.style.setProperty(e.name, e.value);
140
+ });
141
+ };
142
+ Ne(() => {
143
+ I.value = 1;
144
+ });
145
+ const me = _e(() => {
146
+ const t = sessionStorage.getItem("authority");
147
+ return t ? JSON.parse(t) : [];
148
+ });
149
+ Ue(
150
+ () => Se.value,
151
+ (t) => {
152
+ t === "browser" ? J(Bt) : t === "client" ? (J(Et), J(Ft)) : t === "three" && (J(Lt), J(Ut));
153
+ },
154
+ { immediate: !0 }
155
+ );
156
+ const et = (t, s) => ({
157
+ isFlag: !0
158
+ }), j = Ct({
159
+ show: !1,
160
+ title: "菜单配置",
161
+ width: "30%",
162
+ type: "create"
163
+ }), tt = (t) => Rt(t), lt = U({}), st = U([]), m = U({}), N = U({}), ot = (t) => {
164
+ switch (t) {
165
+ case "复制新增":
166
+ return "create";
167
+ case "修改菜单名":
168
+ return "update";
169
+ case "删除":
170
+ return "delete";
171
+ }
172
+ }, Le = U({}), at = (t) => {
173
+ l.setCacheInputMenu({
174
+ type: j.type,
175
+ data: t
176
+ }), l.setIsRefreshMenus(!0);
177
+ }, it = async (t, s, e) => {
178
+ var n, h, C, z, b, x, B, ee, te, le, se, oe, ae, ie, re, ne, ce, pe, fe, he, de, ve, ye, ge, Ce, ke, De;
179
+ if (s === "create") {
180
+ let E = (e == null ? void 0 : e.title) + "(1)", L = (h = (n = e == null ? void 0 : e.path) == null ? void 0 : n.split("/")) == null ? void 0 : h.filter((D, v) => {
181
+ var k, M;
182
+ return v !== ((M = (k = e == null ? void 0 : e.path) == null ? void 0 : k.split("/")) == null ? void 0 : M.length) - 1;
183
+ }), F = await We(
184
+ (b = (z = (C = e == null ? void 0 : e.path) == null ? void 0 : C.split("/")) == null ? void 0 : z.filter((D, v) => {
185
+ var k, M;
186
+ return v !== ((M = (k = e == null ? void 0 : e.path) == null ? void 0 : k.split("/")) == null ? void 0 : M.length) - 1;
187
+ })) == null ? void 0 : b.join("/"),
188
+ sessionStorage.getItem("systemKey"),
189
+ ""
190
+ );
191
+ if (L.push(E), L = L == null ? void 0 : L.join("/"), (F == null ? void 0 : F.length) > 0) {
192
+ let D = F == null ? void 0 : F[0], v = (B = (x = D == null ? void 0 : D.compData) == null ? void 0 : x.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : B.contents;
193
+ if (((ee = v == null ? void 0 : v[0]) == null ? void 0 : ee.directiveLabel) === "#isMain") {
194
+ let k = (te = v == null ? void 0 : v[0]) == null ? void 0 : te.prop, M = (se = (le = D == null ? void 0 : D.compData) == null ? void 0 : le.find(
195
+ (S) => (S == null ? void 0 : S.key) === "tableContents"
196
+ )) == null ? void 0 : se.contents, K;
197
+ M == null || M.forEach((S) => {
198
+ var W, R;
199
+ if (S.length === 1)
200
+ ((W = S == null ? void 0 : S[0]) == null ? void 0 : W[k]) === (e == null ? void 0 : e.title) && (K = S == null ? void 0 : S[0], K[k] = E);
201
+ else {
202
+ let p = (R = v == null ? void 0 : v.filter((d) => d !== "操作")) == null ? void 0 : R.map((d) => d == null ? void 0 : d.prop), w = S == null ? void 0 : S.filter((d) => !(d != null && d.id)), A = Je(w, p);
203
+ A[k] = E, K = A;
204
+ }
205
+ }), await $t({
206
+ key: {
207
+ type: "data",
208
+ pageKey: (ie = (ae = (oe = e == null ? void 0 : e.path) == null ? void 0 : oe.split("/")) == null ? void 0 : ae.filter((S, W) => {
209
+ var R, p;
210
+ return W !== ((p = (R = e == null ? void 0 : e.path) == null ? void 0 : R.split("/")) == null ? void 0 : p.length) - 1;
211
+ })) == null ? void 0 : ie.join("/"),
212
+ tableId: D == null ? void 0 : D.id,
213
+ systemKey: sessionStorage.getItem("systemKey"),
214
+ createUserId: (re = P.value) == null ? void 0 : re.id,
215
+ createUserLayer: ((ne = P.value) == null ? void 0 : ne.dept) || ((ce = P.value) == null ? void 0 : ce.部门名称)
216
+ },
217
+ value: {
218
+ tableData: K
219
+ }
220
+ });
221
+ }
222
+ }
223
+ await Kt(e == null ? void 0 : e.path, L), l.setUpdateMenuStatus(!1), await ue(), l.setActiveMenuPath(
224
+ (he = (fe = (pe = e == null ? void 0 : e.path) == null ? void 0 : pe.split("/")) == null ? void 0 : fe.filter((D, v) => {
225
+ var k, M;
226
+ return v !== ((M = (k = e == null ? void 0 : e.path) == null ? void 0 : k.split("/")) == null ? void 0 : M.length) - 1;
227
+ })) == null ? void 0 : he.join("/")
228
+ ), l.setActiveTopMenuPath((ve = (de = e == null ? void 0 : e.path) == null ? void 0 : de.split("/")) == null ? void 0 : ve[0]), l.setIsRefreshMenus(!1), l.setIsRefreshMenus(!0);
229
+ } else if (s === "update")
230
+ u.value = e;
231
+ else if (s === "delete") {
232
+ let E = [];
233
+ (E == null ? void 0 : E.length) > 0 && await jt({
234
+ ids: E
235
+ }), l.setUpdateMenuStatus(!1), await ue(), l.setActiveMenuPath(
236
+ (Ce = (ge = (ye = e == null ? void 0 : e.path) == null ? void 0 : ye.split("/")) == null ? void 0 : ge.filter((L, F) => {
237
+ var D, v;
238
+ return F !== ((v = (D = e == null ? void 0 : e.path) == null ? void 0 : D.split("/")) == null ? void 0 : v.length) - 1;
239
+ })) == null ? void 0 : Ce.join("/")
240
+ ), l.setActiveTopMenuPath((De = (ke = e == null ? void 0 : e.path) == null ? void 0 : ke.split("/")) == null ? void 0 : De[0]), l.setIsRefreshMenus(!1), l.setIsRefreshMenus(!0);
241
+ }
242
+ }, rt = async (t, s) => {
243
+ var ee, te, le, se, oe, ae, ie, re, ne, ce, pe, fe, he, de, ve, ye, ge, Ce, ke, De, E, L, F, D, v, k, M, K, S, W, R;
244
+ let e = await ze({
245
+ key: {
246
+ systemKey: sessionStorage.getItem("systemKey"),
247
+ pageKey: "menu"
248
+ }
249
+ }), n = (te = (ee = e == null ? void 0 : e.data) == null ? void 0 : ee.result) == null ? void 0 : te[0], h = (le = n == null ? void 0 : n.value) == null ? void 0 : le.pageData;
250
+ h.compData = (se = h.compData) == null ? void 0 : se.map((p) => {
251
+ var w, A;
252
+ return (p == null ? void 0 : p.key) === "menuContents" && (p.contents = Be(p.contents, (w = s == null ? void 0 : s.path) == null ? void 0 : w.split("/"), s == null ? void 0 : s.title, (A = t == null ? void 0 : t.target) == null ? void 0 : A.value)), p;
253
+ }), n != null && n.id && await Ot({
254
+ id: n == null ? void 0 : n.id,
255
+ value: {
256
+ pageData: h
257
+ }
258
+ });
259
+ let C = (ae = (oe = s == null ? void 0 : s.path) == null ? void 0 : oe.split("/")) == null ? void 0 : ae.filter((p, w) => {
260
+ var A, d;
261
+ return w !== ((d = (A = s == null ? void 0 : s.path) == null ? void 0 : A.split("/")) == null ? void 0 : d.length) - 1;
262
+ }), z = C == null ? void 0 : C.join("/");
263
+ C.push((ie = t == null ? void 0 : t.target) == null ? void 0 : ie.value), C = C == null ? void 0 : C.join("/");
264
+ let b = await We(z, sessionStorage.getItem("systemKey"), "");
265
+ if (((fe = (pe = (ce = (ne = (re = b == null ? void 0 : b[0]) == null ? void 0 : re.compData) == null ? void 0 : ne.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : ce.contents) == null ? void 0 : pe[0]) == null ? void 0 : fe.directiveLabel) === "#isMain") {
266
+ let p = (ge = (ye = (ve = (de = (he = b == null ? void 0 : b[0]) == null ? void 0 : he.compData) == null ? void 0 : de.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : ve.contents) == null ? void 0 : ye[0]) == null ? void 0 : ge.prop, w = (De = (ke = (Ce = b == null ? void 0 : b[0]) == null ? void 0 : Ce.compData) == null ? void 0 : ke.find(
267
+ (y) => (y == null ? void 0 : y.key) === "tableContents"
268
+ )) == null ? void 0 : De.contents, A = (D = (F = (L = (E = b == null ? void 0 : b[0]) == null ? void 0 : E.compData) == null ? void 0 : L.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : D.map((y) => y == null ? void 0 : y.prop), d;
269
+ if (w == null || w.forEach((y) => {
270
+ var Q;
271
+ let G = Je(y, A);
272
+ (G == null ? void 0 : G[p]) === s.title && (d = G, d[p] = (Q = t == null ? void 0 : t.target) == null ? void 0 : Q.value);
273
+ }), d) {
274
+ let y = {};
275
+ for (let Q in d)
276
+ Q !== "id" && (y[Q] = d == null ? void 0 : d[Q]);
277
+ let G = [
278
+ {
279
+ id: d == null ? void 0 : d.id,
280
+ value: {
281
+ tableData: y
282
+ }
283
+ }
284
+ ];
285
+ await Ke({
286
+ dataList: G
287
+ });
288
+ }
289
+ }
290
+ let x = await ze({
291
+ key: {
292
+ systemKey: sessionStorage.getItem("systemKey"),
293
+ pageKey: s == null ? void 0 : s.path
294
+ }
295
+ }), B = (k = (v = x == null ? void 0 : x.data) == null ? void 0 : v.result) == null ? void 0 : k.map((p) => ({
296
+ id: p == null ? void 0 : p.id,
297
+ key: p == null ? void 0 : p.key
298
+ }));
299
+ B = B == null ? void 0 : B.map((p) => (p.key.pageKey = C, p)), (B == null ? void 0 : B.length) > 0 && await Ke({
300
+ dataList: B
301
+ }), l.setUpdateMenuStatus(!1), await ue(), l.setActiveMenuPath(
302
+ (S = (K = (M = s == null ? void 0 : s.path) == null ? void 0 : M.split("/")) == null ? void 0 : K.filter((p, w) => {
303
+ var A, d;
304
+ return w !== ((d = (A = s == null ? void 0 : s.path) == null ? void 0 : A.split("/")) == null ? void 0 : d.length) - 1;
305
+ })) == null ? void 0 : S.join("/")
306
+ ), l.setActiveTopMenuPath((R = (W = s == null ? void 0 : s.path) == null ? void 0 : W.split("/")) == null ? void 0 : R[0]), l.setIsRefreshMenus(!1), l.setIsRefreshMenus(!0), u.value = void 0;
307
+ }, nt = async (t, s) => {
308
+ j.type = ot(s == null ? void 0 : s.operateType), await it(s, j.type, t), N.value = t, Le.value = s;
309
+ }, ct = () => {
310
+ j.show = !1;
311
+ }, pt = (t) => t == null ? void 0 : t.filter((s) => s.allowInherit), ft = () => {
312
+ var e, n, h, C, z;
313
+ let t;
314
+ j.type === "create" && (t = ((e = N.value) == null ? void 0 : e.path) + "/" + m.value[(n = m.value) == null ? void 0 : n.prop]), j.type === "update" && (t = (h = N.value) == null ? void 0 : h.path);
315
+ const s = {
316
+ ...N.value,
317
+ //是否继承父菜单的配置
318
+ config: pt((C = N.value) == null ? void 0 : C.config),
319
+ children: [],
320
+ childMenus: [],
321
+ title: m.value[(z = m.value) == null ? void 0 : z.prop],
322
+ path: t
323
+ };
324
+ console.log("clickSubmitForm", Le.value, N.value, s), at(s), j.show = !1;
325
+ }, ht = (t) => {
326
+ var e, n;
327
+ const s = (e = t == null ? void 0 : t.contents) == null ? void 0 : e.find((h) => h.key === "formContent");
328
+ s && (m.value = (n = s == null ? void 0 : s.contents) == null ? void 0 : n.reduce(
329
+ (h, C) => (h[C.key] = C.value, h.prop = C.key, h),
330
+ {}
331
+ ));
332
+ }, q = U(!1), dt = () => {
333
+ q.value = !q.value;
334
+ }, be = U(null);
335
+ return Ue(() => a.value, async (t) => {
336
+ var s, e;
337
+ if (t) {
338
+ await kt();
339
+ const n = t == null ? void 0 : t[0];
340
+ if (((s = n == null ? void 0 : n.children) == null ? void 0 : s.length) > 0) {
341
+ const h = n == null ? void 0 : n.path;
342
+ be.value && ((e = be.value) == null || e.openMenuRefByIndex(h));
343
+ } else
344
+ $ != null && $.value ? l.setJumpMenuInform(!1) : l.setActiveMenuPath((n == null ? void 0 : n.path) ?? "");
345
+ }
346
+ }, { immediate: !0 }), {
347
+ menuRef: be,
348
+ isCollapse: q,
349
+ handleMenuCollapse: dt,
350
+ handleCompChange: ht,
351
+ dialogForm: lt,
352
+ dialogRenderComps: st,
353
+ getComponents: tt,
354
+ clickSubmitForm: ft,
355
+ dialogInfo: j,
356
+ beforeDialogDestroy: ct,
357
+ clickMenuIcon: nt,
358
+ mode: Ye,
359
+ renderMenuList: Fe,
360
+ clickMenu: Ze,
361
+ openMenu: Ve,
362
+ closeMenu: He,
363
+ changeMenuStyle: J,
364
+ fixElement: u,
365
+ onBlur: rt,
366
+ isSuperAdmin: Xe
367
+ };
368
+ }
369
+ };
370
+ }
371
+ const qt = yt(Qe()), xt = ["title"], Gt = {
372
+ key: 1,
373
+ class: "menu-title",
374
+ style: { display: "flex", width: "100px" }
375
+ }, Qt = { class: "module-dialog-content" };
376
+ function Xt(i, c, _, f, o, l) {
377
+ var u;
378
+ const r = Z("ss-input"), T = Z("ss-menu"), P = Z("svg-icon"), I = Z("el-button"), g = Z("ss-dialog");
379
+ return O(), X(Oe, null, [
380
+ Y(T, {
381
+ ref: "menuRef",
382
+ class: "vertical-menu",
383
+ mode: i.mode,
384
+ menuList: i.renderMenuList,
385
+ isCollapse: i.isCollapse,
386
+ uniqueOpened: !0,
387
+ onClickMenu: i.clickMenu,
388
+ onOpenMenu: i.openMenu,
389
+ onCloseMenu: i.closeMenu
390
+ }, {
391
+ title: V(({ menu: a }) => {
392
+ var H, Se, $;
393
+ return [
394
+ !i.fixElement || (a == null ? void 0 : a.path) !== ((H = i.fixElement) == null ? void 0 : H.path) ? (O(), X("span", {
395
+ key: 0,
396
+ title: a.title,
397
+ class: "menu-title",
398
+ style: Dt({ marginRight: a != null && a.config && ((Se = a == null ? void 0 : a.config) == null ? void 0 : Se.length) > 0 ? "25px" : "1px" })
399
+ }, St(a.title ?? ""), 13, xt)) : Me("", !0),
400
+ i.fixElement && (a == null ? void 0 : a.path) === (($ = i.fixElement) == null ? void 0 : $.path) ? (O(), X("span", Gt, [
401
+ Y(r, {
402
+ value: a.title,
403
+ onBlur: (Ie) => i.onBlur(Ie, a)
404
+ }, null, 8, ["value", "onBlur"])
405
+ ])) : Me("", !0)
406
+ ];
407
+ }),
408
+ _: 1
409
+ }, 8, ["mode", "menuList", "isCollapse", "onClickMenu", "onOpenMenu", "onCloseMenu"]),
410
+ ((u = i.renderMenuList) == null ? void 0 : u.length) > 0 ? (O(), X("div", {
411
+ key: 0,
412
+ class: "fold-icon",
413
+ onClick: c[0] || (c[0] = (...a) => i.handleMenuCollapse && i.handleMenuCollapse(...a))
414
+ }, [
415
+ Y(P, {
416
+ name: i.isCollapse ? "expand" : "pack",
417
+ style: { width: "15px", height: "15px" }
418
+ }, null, 8, ["name"])
419
+ ])) : Me("", !0),
420
+ Y(g, {
421
+ class: "module-dialog",
422
+ title: i.dialogInfo.title,
423
+ visible: i.dialogInfo.show,
424
+ width: i.dialogInfo.width,
425
+ onBeforeDestroy: i.beforeDialogDestroy
426
+ }, {
427
+ default: V(() => [
428
+ $e("div", Qt, [
429
+ (O(!0), X(Oe, null, _t(i.dialogRenderComps, (a) => (O(), X("div", {
430
+ key: a.id
431
+ }, [
432
+ (O(), Pe(qe(i.getComponents((a == null ? void 0 : a.comp) ?? "Input")), {
433
+ itemData: a == null ? void 0 : a.compData,
434
+ key: a == null ? void 0 : a.id,
435
+ content: (a == null ? void 0 : a.contents) ?? [],
436
+ config: a == null ? void 0 : a.config,
437
+ onContentChange: i.handleCompChange
438
+ }, null, 40, ["itemData", "content", "config", "onContentChange"]))
439
+ ]))), 128))
440
+ ])
441
+ ]),
442
+ footer: V(() => [
443
+ $e("div", null, [
444
+ Y(I, {
445
+ id: "themeBorderButton",
446
+ onClick: i.beforeDialogDestroy
447
+ }, {
448
+ default: V(() => c[1] || (c[1] = [
449
+ je("取消")
450
+ ])),
451
+ _: 1,
452
+ __: [1]
453
+ }, 8, ["onClick"]),
454
+ Y(I, {
455
+ id: "themeButton",
456
+ onClick: i.clickSubmitForm
457
+ }, {
458
+ default: V(() => c[2] || (c[2] = [
459
+ je(" 确认 ")
460
+ ])),
461
+ _: 1,
462
+ __: [2]
463
+ }, 8, ["onClick"])
464
+ ])
465
+ ]),
466
+ _: 1
467
+ }, 8, ["title", "visible", "width", "onBeforeDestroy"])
468
+ ], 64);
469
+ }
470
+ const Yt = /* @__PURE__ */ Jt(qt, [["render", Xt], ["__scopeId", "data-v-591def66"]]), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
+ __proto__: null,
472
+ addSelectMenu: Ge,
473
+ default: Yt,
474
+ deleteSelectMenu: xe,
475
+ fixSelectMenu: Be,
476
+ setComponent: Qe
477
+ }, Symbol.toStringTag, { value: "Module" }));
478
+ export {
479
+ Nt as _,
480
+ Yt as a,
481
+ fl as i,
482
+ Ae as s
483
+ };
@@ -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-C4IOVZXF.js";
3
+ import { u as g, p as h, B as R, c as b, r as S, x as E } from "./index-D1VswI-c.js";
4
4
  const l = {
5
5
  ALLOW: {
6
6
  value: "允许"
@@ -1,6 +1,6 @@
1
1
  import { ref as v, computed as Ce, defineComponent as Ve, onMounted as Ae, reactive as ze, resolveComponent as u, createElementBlock as P, openBlock as _, createElementVNode as s, createVNode as o, unref as c, withCtx as i, createTextVNode as N, toDisplayString as le, Fragment as oe, renderList as se, withModifiers as xe, createBlock as re, createCommentVNode as qe } from "vue";
2
- import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-DnZw_2yg.js";
3
- import { B as Qe, E as $e, K as we, c as Ye, r as je, u as Ke, p as Ze } from "./index-C4IOVZXF.js";
2
+ import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-jnr3jv8h.js";
3
+ import { B as Qe, E as $e, K as we, c as Ye, r as je, u as Ke, p as Ze } from "./index-D1VswI-c.js";
4
4
  import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BqS9V6jf.js";
5
5
  import { s as He } from "./index-11kpzK0A.js";
6
6
  import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n, createElementBlock as D, openBlock as k, createElementVNode as o, createVNode as t, withCtx as s, toDisplayString as A, createBlock as ue, reactive as De, Fragment as pe, renderList as xe, unref as c, createTextVNode as h, onMounted as it, watch as dt, withModifiers as ct, createCommentVNode as H } from "vue";
2
- import { u as ut, k as pt, l as mt } from "./request-1RPa2bBn.js";
3
- import { u as Se, o as _t, s as de, f as ce } from "./index-D0WImTzt.js";
4
- import { N as Le, O as ft, u as vt, p as gt } from "./index-C4IOVZXF.js";
2
+ import { z as ut, v as pt, s as mt } from "./request-DUCugy3B.js";
3
+ import { u as Se, o as _t, s as de, f as ce } from "./index-Dd2wE6ad.js";
4
+ import { N as Le, O as ft, u as vt, p as gt } from "./index-D1VswI-c.js";
5
5
  import { s as _e } from "./index-11kpzK0A.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-BB_uyHkX.js";
7
- import "./index-BWV3TLgn.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Bxor3Tau.js";
7
+ import "./index-D5LCgfvq.js";
8
8
  import "./index-BHtNKL1L.js";
9
9
  import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-BqS9V6jf.js";
10
- import "./index-DYSKOp6K.js";
11
- import "./index-C9FaWM1n.js";
10
+ import "./index-CAiJC2Mp.js";
11
+ import "./index-B-fvSKvM.js";
12
12
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- import { c as me } from "./clone-B_hYig97.js";
13
+ import { c as me } from "./clone-DpmcrUNP.js";
14
14
  const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
15
15
  __name: "index",
16
16
  props: {
@@ -258,7 +258,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
258
258
  }, 8, ["visible"]);
259
259
  };
260
260
  }
261
- }), Ft = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-40d37c72"]]), Ot = { class: "role-management" }, zt = { class: "header" }, Ut = { class: "header-left" }, qt = { class: "query-wrapper" }, Mt = { class: "header-right" }, Kt = { class: "body" }, Gt = { class: "role-table-wrapper" }, Qt = { class: "operate-list" }, jt = ["onClick"], Ht = { class: "pagination-wrapper" }, Jt = { class: "role-management-wrapper" }, Wt = { class: "role-management-body" }, Xt = { class: "role-form-wrapper" }, Yt = { class: "auth-tree-wrapper" }, Zt = { class: "node-content-wrapper" }, ea = { class: "node-label-wrapper" }, ta = { class: "node-label" }, aa = {
261
+ }), Ft = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-40d37c72"]]), zt = { class: "role-management" }, Ot = { class: "header" }, Ut = { class: "header-left" }, qt = { class: "query-wrapper" }, Mt = { class: "header-right" }, Kt = { class: "body" }, Gt = { class: "role-table-wrapper" }, Qt = { class: "operate-list" }, jt = ["onClick"], Ht = { class: "pagination-wrapper" }, Jt = { class: "role-management-wrapper" }, Wt = { class: "role-management-body" }, Xt = { class: "role-form-wrapper" }, Yt = { class: "auth-tree-wrapper" }, Zt = { class: "node-content-wrapper" }, ea = { class: "node-label-wrapper" }, ta = { class: "node-label" }, aa = {
262
262
  key: 0,
263
263
  class: "status-tag"
264
264
  }, oa = {
@@ -314,7 +314,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
314
314
  b(a), F();
315
315
  }, Fe = (a) => {
316
316
  f(a), F();
317
- }, Oe = async () => {
317
+ }, ze = async () => {
318
318
  m(), _.setImportLoading(!0), await F().finally(() => {
319
319
  _.setImportLoading(!1);
320
320
  });
@@ -324,7 +324,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
324
324
  it(() => {
325
325
  R();
326
326
  });
327
- const ve = u(), ze = De({
327
+ const ve = u(), Oe = De({
328
328
  name: [
329
329
  { required: !0, message: "请输入角色名称", trigger: "blur" }
330
330
  ]
@@ -434,10 +434,10 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
434
434
  };
435
435
  return (a, e) => {
436
436
  var we, Pe, Te, Ee;
437
- const l = n("el-input"), p = n("el-button"), P = n("el-icon"), L = n("el-dropdown-item"), ne = n("el-dropdown-menu"), ot = n("el-dropdown"), O = n("el-table-column"), z = n("el-tag"), st = n("el-table"), lt = n("el-pagination"), Q = n("el-form-item"), j = n("el-col"), re = n("el-row"), nt = n("el-tree"), rt = n("el-form");
437
+ const l = n("el-input"), p = n("el-button"), P = n("el-icon"), L = n("el-dropdown-item"), ne = n("el-dropdown-menu"), ot = n("el-dropdown"), z = n("el-table-column"), O = n("el-tag"), st = n("el-table"), lt = n("el-pagination"), Q = n("el-form-item"), j = n("el-col"), re = n("el-row"), nt = n("el-tree"), rt = n("el-form");
438
438
  return k(), D(pe, null, [
439
- o("div", Ot, [
440
- o("div", zt, [
439
+ o("div", zt, [
440
+ o("div", Ot, [
441
441
  o("div", Ut, [
442
442
  o("div", qt, [
443
443
  t(l, {
@@ -459,7 +459,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
459
459
  t(p, {
460
460
  type: "primary",
461
461
  plain: "",
462
- onClick: Oe
462
+ onClick: ze
463
463
  }, {
464
464
  default: s(() => e[7] || (e[7] = [
465
465
  h("重置")
@@ -541,28 +541,28 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
541
541
  "empty-text": ""
542
542
  }, {
543
543
  default: s(() => [
544
- t(O, {
544
+ t(z, {
545
545
  prop: "name",
546
546
  label: "名称",
547
547
  align: "center"
548
548
  }),
549
- t(O, {
549
+ t(z, {
550
550
  prop: "code",
551
551
  label: "编码",
552
552
  align: "center"
553
553
  }),
554
- t(O, {
554
+ t(z, {
555
555
  prop: "remark",
556
556
  label: "备注",
557
557
  align: "center"
558
558
  }),
559
- t(O, {
559
+ t(z, {
560
560
  prop: "status",
561
561
  label: "状态",
562
562
  align: "center"
563
563
  }, {
564
564
  default: s((r) => [
565
- t(z, {
565
+ t(O, {
566
566
  class: "status-tag",
567
567
  type: c(Z)(r.row.status),
568
568
  title: "点击切换",
@@ -576,7 +576,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
576
576
  ]),
577
577
  _: 1
578
578
  }),
579
- t(O, {
579
+ t(z, {
580
580
  label: "操作",
581
581
  align: "center"
582
582
  }, {
@@ -638,7 +638,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
638
638
  ref_key: "roleFormRef",
639
639
  ref: ve,
640
640
  model: d.value,
641
- rules: ze
641
+ rules: Oe
642
642
  }, {
643
643
  default: s(() => [
644
644
  t(re, { gutter: 20 }, {
@@ -756,7 +756,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
756
756
  o("div", ta, A(r.label), 1)
757
757
  ]),
758
758
  i.isPropertyLeaf && se(i) ? (k(), D("div", aa, [
759
- t(z, {
759
+ t(O, {
760
760
  class: "status-tag",
761
761
  type: c(te)(i.status),
762
762
  title: "点击切换",
@@ -769,7 +769,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
769
769
  }, 1032, ["type", "onClick"])
770
770
  ])) : H("", !0),
771
771
  i.isProperty && se(i) && ((ie = i.params) == null ? void 0 : ie.length) > 0 ? (k(), D("div", oa, [
772
- t(z, {
772
+ t(O, {
773
773
  class: "status-tag",
774
774
  type: "success",
775
775
  onClick: (I) => qe(I, i)
@@ -782,7 +782,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
782
782
  }, 1032, ["onClick"])
783
783
  ])) : H("", !0),
784
784
  i.isPropertyLeaf && se(i) && c($e)(i) ? (k(), D("div", sa, [
785
- t(z, {
785
+ t(O, {
786
786
  class: "status-tag",
787
787
  type: "warning",
788
788
  onClick: (I) => be(I, i)
@@ -795,7 +795,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
795
795
  }, 1032, ["onClick"])
796
796
  ])) : H("", !0),
797
797
  r.level == 1 && r.checked && !i.isProperty ? (k(), D("div", la, [
798
- t(z, {
798
+ t(O, {
799
799
  class: "status-tag",
800
800
  type: "warning",
801
801
  onClick: (I) => be(I, i)