ss-component-new 1.1.729 → 1.1.730

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 (89) hide show
  1. package/dist/{array-DvKDOIGB.js → array-Chq56wY-.js} +1 -1
  2. package/dist/{array-CU_OZlOe.cjs → array-urs2YM9W.cjs} +1 -1
  3. package/dist/{index-DseGoh_s.js → index--OiS672d.js} +315 -289
  4. package/dist/{index-jyMi9q-0.js → index-B-DZgyTe.js} +6 -6
  5. package/dist/{index-DIkHqhPG.js → index-B-NNykYn.js} +580 -506
  6. package/dist/{index-BkJD7I2W.js → index-B0LTdJlU.js} +2 -2
  7. package/dist/{index-BJoAo4eR.js → index-BANcWFX4.js} +3 -3
  8. package/dist/{index-CfhtlRJh.cjs → index-BF2AID8M.cjs} +1 -1
  9. package/dist/{index-5xG1mLNc.js → index-BIzz2S2T.js} +3 -3
  10. package/dist/{index-CTZvW8Fg.cjs → index-BJY6k2v6.cjs} +12 -12
  11. package/dist/{index-1AJPd78t.cjs → index-BLMCHl98.cjs} +1 -1
  12. package/dist/{index-D3uzrMDn.js → index-BMan7fYQ.js} +9 -9
  13. package/dist/{index-BUh0LsYj.js → index-BP6Mj3YQ.js} +11346 -9341
  14. package/dist/{index-Dw_5h9yW.cjs → index-BVGMndWJ.cjs} +1 -1
  15. package/dist/{index-CANwR7cK.js → index-BWIWTxcq.js} +1 -1
  16. package/dist/{index-CNRvK4Xj.cjs → index-B_M7VblC.cjs} +1 -1
  17. package/dist/{index-Bdu-6tUy.cjs → index-BrA6bnq-.cjs} +1 -1
  18. package/dist/{index-DiHh_qmY.cjs → index-BuMToqKz.cjs} +1 -1
  19. package/dist/{index-nmKxXFXJ.js → index-C1kpJhrP.js} +89 -89
  20. package/dist/{index-BSJ39FNj.cjs → index-C57QK6aw.cjs} +1 -1
  21. package/dist/{index-C9ygF_9Z.js → index-CRcGWRXi.js} +2540 -2546
  22. package/dist/{index-CTmW7rWz.js → index-CUtfKRih.js} +6 -6
  23. package/dist/{index-BTK655Rt.cjs → index-CaoCX-Ef.cjs} +1 -1
  24. package/dist/{index-Cb3t0lj_.js → index-Cd2Qugmv.js} +87 -87
  25. package/dist/{index-Cg9bDrdL.js → index-CfOA8FTm.js} +1 -1
  26. package/dist/{index-D6FDC2OT.js → index-CkIhXpWC.js} +3 -3
  27. package/dist/index-CqTZkhZ6.cjs +1 -0
  28. package/dist/{index-8yPe_ZIm.cjs → index-CvbK1Ahp.cjs} +1 -1
  29. package/dist/{index-DtAFpiBz.js → index-CzTzYbhX.js} +7 -7
  30. package/dist/{index-CGu6YgDp.cjs → index-D0oNUC1D.cjs} +1 -1
  31. package/dist/index-D1dxQDMI.cjs +1 -0
  32. package/dist/{index-SwW4eSXB.js → index-D3wrt7DE.js} +1 -1
  33. package/dist/index-D40pqfbc.cjs +4207 -0
  34. package/dist/{index-CTA-V8kI.js → index-D5OU6MsR.js} +4 -4
  35. package/dist/{index-DUEUaonl.js → index-D8zx1S0X.js} +4 -4
  36. package/dist/{index-CYfIkC78.js → index-DDVPb6Bw.js} +6 -6
  37. package/dist/{index-BC2VbTNW.cjs → index-DJdGrZgK.cjs} +1 -1
  38. package/dist/{index-BDARIJzh.cjs → index-DNC5xRwP.cjs} +1 -1
  39. package/dist/index-DRf6O2_0.cjs +1 -0
  40. package/dist/{index-B6dg_ENP.js → index-DfuXEj6A.js} +3 -3
  41. package/dist/{index-BWSzs3A-.js → index-DiKEBwKK.js} +4 -4
  42. package/dist/{index-B5aAw-C5.cjs → index-DitWZL9U.cjs} +1 -1
  43. package/dist/index-DjS_rbXu.cjs +1 -0
  44. package/dist/{index-2X8ZJCBr.js → index-DmQobvLH.js} +5 -5
  45. package/dist/index-Dmbs_wb1.js +4915 -0
  46. package/dist/{index-CdZvcMjf.cjs → index-GkKxkxkq.cjs} +1 -1
  47. package/dist/{index-DkT1FEwR.cjs → index-O1YgbETS.cjs} +1 -1
  48. package/dist/{index-CH66t2vt.js → index-P65GinRI.js} +2 -2
  49. package/dist/{index-w4bBY3bg.cjs → index-UpKpeILM.cjs} +1 -1
  50. package/dist/{index-CKOHeMkR.js → index-fwyOQTrU.js} +5 -5
  51. package/dist/{index-CLci5Czv.cjs → index-kCt_G9AN.cjs} +1 -1
  52. package/dist/{index-B9Vdectg.cjs → index-lQvEwTHJ.cjs} +1 -1
  53. package/dist/{index-9FgR1N_g.js → index-rZa-VsMt.js} +1 -1
  54. package/dist/{index.vue_vue_type_script_setup_true_lang-CyDSZn-Q.js → index.vue_vue_type_script_setup_true_lang-87y_319I.js} +14 -14
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-BRlh6QO_.cjs → index.vue_vue_type_script_setup_true_lang-cLhH0csh.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-VzL4xNxw.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BA84T8Xo.cjs} +58 -58
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DZM6EJDg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CteU-qco.js} +1729 -1723
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-Bj0CmLCT.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-CaduV9Gk.cjs} +13 -13
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-CSrw2Qin.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-Ct9waiYK.js} +9155 -9109
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BvckNB-n.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DBheYjn6.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BtGNhyQV.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-IC5LRNwO.js} +8 -8
  62. package/dist/{login-DTNO3Kcx.cjs → login-BH0_LUL8.cjs} +4 -4
  63. package/dist/{login-tuTXg0Re.js → login-BKPwNp6e.js} +410 -410
  64. package/dist/{main-DdSI8q3y.cjs → main-BhCgs8VF.cjs} +1 -1
  65. package/dist/{main-DZ3x6_Gx.js → main-C-JC9Azq.js} +5 -5
  66. package/dist/{modelComp-BwgAaNtJ.js → modelComp-D0KFt81W.js} +1 -1
  67. package/dist/{modelComp-BAkwstz-.cjs → modelComp-DiHxFQC8.cjs} +1 -1
  68. package/dist/obj/model.mtl +42 -0
  69. package/dist/obj/model.obj +26110 -0
  70. package/dist/ss-component.cjs +1 -1
  71. package/dist/ss-component.css +2 -2
  72. package/dist/ss-component.js +10 -10
  73. package/dist/ss-component2.cjs +1 -1
  74. package/dist/ss-component2.js +10 -10
  75. package/dist/{threeModel-BXxpDTWW.cjs → threeModel-BPKTvLAF.cjs} +1 -1
  76. package/dist/{threeModel-PYPOqSkk.js → threeModel-CqhC0vxK.js} +3 -3
  77. package/dist/threePreview-B4bdjjLv.cjs +1 -0
  78. package/dist/threePreview-HolW2L13.js +197 -0
  79. package/dist/threeSceneView-CcWzv8VC.js +353 -0
  80. package/dist/threeSceneView-XuA69kfg.cjs +1 -0
  81. package/package.json +1 -1
  82. package/public/obj/model.mtl +42 -0
  83. package/public/obj/model.obj +26110 -0
  84. package/dist/index-BZ9F30cB.js +0 -4828
  85. package/dist/index-D1IAgzys.cjs +0 -4207
  86. package/dist/index-DKCAoA0f.cjs +0 -1
  87. package/dist/index-DTKR6eas.cjs +0 -1
  88. package/dist/index-DW7Dagux.cjs +0 -1
  89. package/dist/index-GtHPQTxX.cjs +0 -1
@@ -1,10 +1,10 @@
1
- import { ref as u, computed as R, reactive as J, nextTick as H, watch as X } from "vue";
2
- import { g as j, E as b, bm as Y, bk as Z, bn as m } from "./index-Cb3t0lj_.js";
3
- import { l as we, s as C, a as ee, c as N, p as A, u as te } from "./login-tuTXg0Re.js";
4
- import { u as De } from "./modelComp-BwgAaNtJ.js";
5
- import { d as se, i as Ie, e as V } from "./crypto-BRyGpjGR.js";
6
- import { E as Ee } from "./index-nmKxXFXJ.js";
7
- const re = we("authorityState", {
1
+ import { ref as l, computed as x, reactive as X, nextTick as Y, watch as Z } from "vue";
2
+ import { g as W, E as A, bm as m, bk as ee, b as te, bn as se } from "./index-Cd2Qugmv.js";
3
+ import { l as we, s as T, c as F, p as v, u as re, a as ne } from "./login-BKPwNp6e.js";
4
+ import { u as ae } from "./modelComp-D0KFt81W.js";
5
+ import { d as ce, i as Ee, e as q } from "./crypto-BRyGpjGR.js";
6
+ import { E as Me } from "./index-C1kpJhrP.js";
7
+ const oe = we("authorityState", {
8
8
  state: () => ({
9
9
  routerPageStructures: []
10
10
  }),
@@ -13,25 +13,25 @@ const re = we("authorityState", {
13
13
  this.routerPageStructures = e;
14
14
  }
15
15
  }
16
- }), Me = te(A), { activeMenuPath: v } = C(Me), ne = ee(A), { structureData: Re } = C(ne), Ne = re(A), { routerPageStructures: Oe } = C(Ne), ae = De(A), je = u([
16
+ }), Ne = re(v), { activeMenuPath: S } = T(Ne), Re = ne(v), { structureData: xe } = T(Re), Fe = oe(v), { routerPageStructures: Oe } = T(Fe), j = ae(v), je = l([
17
17
  {
18
18
  label: "角色名称",
19
19
  value: "",
20
20
  name: "roleName"
21
21
  }
22
- ]), xe = u([
22
+ ]), We = l([
23
23
  {
24
24
  label: "查询"
25
25
  },
26
26
  {
27
27
  label: "重置"
28
28
  }
29
- ]), q = J({
29
+ ]), H = X({
30
30
  isFilter: !1,
31
31
  filterForm: {}
32
- }), Fe = u(!1), We = (e) => {
33
- q.isFilter = !0, q.filterForm = e;
34
- }, ce = u([
32
+ }), Ue = l(!1), _e = (e) => {
33
+ H.isFilter = !0, H.filterForm = e;
34
+ }, ue = l([
35
35
  // {
36
36
  // key: "extraButton",
37
37
  // contents: [
@@ -119,41 +119,51 @@ const re = we("authorityState", {
119
119
  // // ],
120
120
  // // ]
121
121
  // }
122
- ]), oe = u([]), le = u(""), Le = R(() => {
122
+ ]), le = l([]), he = l(""), Le = x(() => {
123
123
  var r, s, t, n, a;
124
124
  const e = (r = Oe.value) == null ? void 0 : r.find((o) => {
125
125
  var c;
126
126
  return ((c = o == null ? void 0 : o.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
127
127
  });
128
128
  if (e) {
129
- le.value = e.name, oe.value = (n = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.label) !== "操作");
129
+ he.value = e.name, le.value = (n = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.label) !== "操作");
130
130
  const o = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
131
+ var h;
131
132
  if ((c == null ? void 0 : c.key) === "rowButton") {
132
- let l = [];
133
- return P.value ? l = [...c == null ? void 0 : c.contents, { label: "授权" }] : l = c == null ? void 0 : c.contents, {
133
+ let u = [];
134
+ return P.value ? u = [...c == null ? void 0 : c.contents, { label: "授权" }] : u = c == null ? void 0 : c.contents, {
134
135
  ...c,
135
- contents: l
136
+ contents: u
136
137
  };
137
138
  }
138
- return c;
139
+ return (c == null ? void 0 : c.key) === "header" ? {
140
+ ...c,
141
+ contents: (h = c == null ? void 0 : c.contents) == null ? void 0 : h.map((u) => {
142
+ var i, f;
143
+ return {
144
+ ...u,
145
+ isTableColHidden: (i = u == null ? void 0 : u.prop) == null ? void 0 : i.includes("授权"),
146
+ isFormColHidden: (f = u == null ? void 0 : u.prop) == null ? void 0 : f.includes("授权")
147
+ };
148
+ })
149
+ } : c;
139
150
  });
140
- return ve(o), o;
151
+ return de(o), o;
141
152
  }
142
153
  return [];
143
- }), _e = (e) => {
144
- L(e.singleContent, e.buttonName, O.value);
145
- }, k = u({}), x = u(), T = async (e, r, s) => {
154
+ }), ze = (e) => {
155
+ z(e.singleContent, e.buttonName, O.value, e == null ? void 0 : e.selectItems);
156
+ }, C = l({}), U = l(), D = async (e, r, s) => {
146
157
  var t, n;
147
158
  try {
148
159
  const a = await e(r);
149
- return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await ne.setLogRecordAsync({
150
- type: s,
151
- data: r
152
- }, v.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
160
+ return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (j.setRefreshCurStructure(!0), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
153
161
  } catch (a) {
154
- b.error(a);
162
+ A.error(a);
163
+ } finally {
164
+ j.setCacheUpdatingData(null);
155
165
  }
156
- }, Ue = (e, r) => {
166
+ }, Ie = (e, r) => {
157
167
  const s = new Map(r.map((n) => [n.path, n.checkedButtons]));
158
168
  function t(n) {
159
169
  var o, c;
@@ -161,25 +171,25 @@ const re = we("authorityState", {
161
171
  s.has(a) && (n.checkedButtons = s.get(a)), n.children && n.children.length > 0 && n.children.forEach(t);
162
172
  }
163
173
  e.forEach(t);
164
- }, ue = (e) => e == null ? void 0 : e.map((r) => {
174
+ }, ie = (e) => e == null ? void 0 : e.map((r) => {
165
175
  var t;
166
176
  const s = {
167
177
  ...r,
168
178
  checkedButtons: []
169
179
  };
170
- return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children = ue(s.children)), s;
171
- }), he = (e) => {
180
+ return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children = ie(s.children)), s;
181
+ }), fe = (e) => {
172
182
  for (const r in e)
173
183
  if (Array.isArray(e[r]))
174
184
  return r;
175
185
  return "";
176
- }, ie = (e) => {
186
+ }, pe = (e) => {
177
187
  const r = [];
178
188
  let s = 0;
179
189
  for (; s < e.length; )
180
190
  if (typeof e[s] == "string") {
181
191
  const t = { title: e[s] };
182
- s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = ie(e[s + 1]), s += 2) : s += 1, r.push(t);
192
+ s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = pe(e[s + 1]), s += 2) : s += 1, r.push(t);
183
193
  }
184
194
  return r;
185
195
  }, ye = (e) => {
@@ -187,10 +197,10 @@ const re = we("authorityState", {
187
197
  let s = 0;
188
198
  for (; s < (e == null ? void 0 : e.length); ) {
189
199
  const t = { title: e == null ? void 0 : e[s] };
190
- s + 1 < (e == null ? void 0 : e.length) && Array.isArray(e == null ? void 0 : e[s + 1]) ? (t.children = ie(e == null ? void 0 : e[s + 1]), s += 2) : s += 1, r.push(t);
200
+ s + 1 < (e == null ? void 0 : e.length) && Array.isArray(e == null ? void 0 : e[s + 1]) ? (t.children = pe(e == null ? void 0 : e[s + 1]), s += 2) : s += 1, r.push(t);
191
201
  }
192
202
  return r;
193
- }, F = (e, r = "", s = /* @__PURE__ */ new Map()) => e == null ? void 0 : e.map((t) => {
203
+ }, _ = (e, r = "", s = /* @__PURE__ */ new Map()) => e == null ? void 0 : e.map((t) => {
194
204
  const n = r ? `${r}/${t.title}` : t.title;
195
205
  if (s.has(n))
196
206
  return s.get(n);
@@ -198,11 +208,11 @@ const re = we("authorityState", {
198
208
  ...t,
199
209
  path: n
200
210
  };
201
- return t.children && t.children.length > 0 && (a.children = F(t.children, n, s)), s.set(n, a), a;
202
- }), fe = (e, r) => e.reduce((s, t) => {
211
+ return t.children && t.children.length > 0 && (a.children = _(t.children, n, s)), s.set(n, a), a;
212
+ }), ge = (e, r) => e.reduce((s, t) => {
203
213
  const n = t[r];
204
214
  return s[n] || (s[n] = []), s[n].push(t), s;
205
- }, {}), pe = (e) => {
215
+ }, {}), ve = (e) => {
206
216
  const r = [];
207
217
  function s(t, n) {
208
218
  !t.children || t.children.length === 0 ? r.push({
@@ -211,26 +221,25 @@ const re = we("authorityState", {
211
221
  }) : t.children.forEach((a) => s(a, t.path || n));
212
222
  }
213
223
  return e.forEach((t) => s(t, "")), r;
214
- }, ge = (e) => Object.entries(e).map(([s, t]) => ({
224
+ }, be = (e) => Object.entries(e).map(([s, t]) => ({
215
225
  path: s,
216
226
  checkedButtons: t == null ? void 0 : t.map((n) => n == null ? void 0 : n.path)
217
- })), ze = (e) => Object.prototype.toString.call(e) === "[object Object]" && e !== null, Qe = (e) => {
218
- const r = {}, s = Array.isArray(e) ? e == null ? void 0 : e.filter((t) => {
219
- var n;
220
- return !(ze(t) && ((n = Object.keys(t)) != null && n.includes("id")));
227
+ })), Qe = (e) => Object.prototype.toString.call(e) === "[object Object]" && e !== null, Ve = (e, r) => {
228
+ const s = {}, t = Array.isArray(e) ? e == null ? void 0 : e.filter((n) => {
229
+ var a;
230
+ return !(Qe(n) && ((a = Object.keys(n)) != null && a.includes("id")));
221
231
  }) : null;
222
- return s && (s == null || s.forEach((t, n) => {
223
- if (n <= 0) return;
224
- const a = `a${n}`;
225
- r[a] = t;
226
- })), r;
227
- }, S = u(""), ve = (e) => {
228
- var n;
229
- const r = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "tableContents");
230
- if (!r) return "";
231
- const s = (n = r == null ? void 0 : r.contents) == null ? void 0 : n[0], t = Qe(s);
232
- S.value = he(t);
233
- }, Ve = (e) => {
232
+ return t && (t == null || t.forEach((n, a) => {
233
+ var o;
234
+ s[(o = r[a]) == null ? void 0 : o.prop] = n;
235
+ })), console.log("用到a为键的地方", s, t, r), s;
236
+ }, B = l(""), de = (e) => {
237
+ var a;
238
+ const r = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "tableContents"), s = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "header");
239
+ if (!r || !s) return "";
240
+ const t = (a = r == null ? void 0 : r.contents) == null ? void 0 : a[0], n = Ve(t, s == null ? void 0 : s.contents);
241
+ B.value = fe(n);
242
+ }, qe = (e) => {
234
243
  if (!Array.isArray(e))
235
244
  return !1;
236
245
  for (let r of e) {
@@ -241,16 +250,16 @@ const re = we("authorityState", {
241
250
  return !1;
242
251
  }
243
252
  return !0;
244
- }, qe = (e) => {
253
+ }, He = (e) => {
245
254
  const r = [];
246
255
  for (const s in e)
247
256
  e[s].forEach((n) => {
248
- var l, h;
249
- const a = (l = n.path) != null && l.startsWith("/") ? (h = n.path) == null ? void 0 : h.substring(1) : n.path, o = a == null ? void 0 : a.split("/");
257
+ var h, u;
258
+ const a = (h = n.path) != null && h.startsWith("/") ? (u = n.path) == null ? void 0 : u.substring(1) : n.path, o = a == null ? void 0 : a.split("/");
250
259
  let c = r;
251
- o.forEach((y) => {
252
- let f = c.find((g) => g.title === y);
253
- f || (f = { title: y, path: n.path, children: [] }, c.push(f)), c = f.children;
260
+ o.forEach((i) => {
261
+ let f = c.find((p) => p.title === i);
262
+ f || (f = { title: i, path: n.path, children: [] }, c.push(f)), c = f.children;
254
263
  });
255
264
  });
256
265
  return r;
@@ -264,12 +273,12 @@ const re = we("authorityState", {
264
273
  }));
265
274
  r[a] = o;
266
275
  }), r;
267
- }, be = (e) => {
276
+ }, Ae = (e) => {
268
277
  let r = [];
269
278
  for (const s of e) {
270
279
  let t = [s.title];
271
280
  if (s.children && Array.isArray(s.children)) {
272
- let n = be(s.children);
281
+ let n = Ae(s.children);
273
282
  n.length > 0 && t.push(n);
274
283
  }
275
284
  r.push(t);
@@ -279,11 +288,11 @@ const re = we("authorityState", {
279
288
  const r = [];
280
289
  for (const s of e) {
281
290
  if (!Array.isArray(s) || s.length !== 2) continue;
282
- const [t, n] = s, a = de(n), o = r.indexOf(t);
283
- o === -1 ? r.push(t, a) : r[o + 1] = Ae(r[o + 1], a);
291
+ const [t, n] = s, a = ke(n), o = r.indexOf(t);
292
+ o === -1 ? r.push(t, a) : r[o + 1] = Se(r[o + 1], a);
284
293
  }
285
294
  return r;
286
- }, de = (e) => {
295
+ }, ke = (e) => {
287
296
  const r = [];
288
297
  for (const s of e)
289
298
  if (Array.isArray(s)) {
@@ -291,55 +300,55 @@ const re = we("authorityState", {
291
300
  r.push(s[0]);
292
301
  else if (s.length === 2 && typeof s[0] == "string") {
293
302
  const [t, n] = s;
294
- r.push(t, de(n));
303
+ r.push(t, ke(n));
295
304
  }
296
305
  }
297
306
  return r;
298
- }, Ae = (e, r) => {
307
+ }, Se = (e, r) => {
299
308
  const s = [...e];
300
309
  let t = 0;
301
310
  for (; t < r.length; ) {
302
311
  const n = r[t];
303
312
  if (typeof n == "string") {
304
313
  const a = s.indexOf(n);
305
- a === -1 ? s.push(n, r[t + 1]) : s[a + 1] = Ae(s[a + 1], r[t + 1]), t += 2;
314
+ a === -1 ? s.push(n, r[t + 1]) : s[a + 1] = Se(s[a + 1], r[t + 1]), t += 2;
306
315
  } else
307
316
  s.push(n), t += 1;
308
317
  }
309
318
  return s;
310
- }, He = async (e, r) => {
319
+ }, Xe = async (e, r) => {
311
320
  var s, t;
312
- if (k.value = N(r), ae.setRefreshCurStructure(!1), (s = B.value) == null || s.splice(0), e === "授权") {
313
- if (!S.value) {
314
- b.error("请正确定义角色权限");
321
+ if (C.value = F(r), j.setRefreshCurStructure(!1), (s = K.value) == null || s.splice(0), e === "授权") {
322
+ if (!B.value) {
323
+ A.error("请正确定义角色权限");
315
324
  return;
316
325
  }
317
- const n = Ve(k.value[S.value]);
326
+ const n = qe(C.value[B.value]);
318
327
  let a;
319
328
  if (n)
320
- a = k.value[S.value];
329
+ a = C.value[B.value];
321
330
  else {
322
- const c = ye(k.value[S.value]), l = F(c), h = pe(l), y = fe(h, "parentPath");
323
- a = ge(y);
331
+ const c = ye(C.value[B.value]), h = _(c), u = ve(h), i = ge(u, "parentPath");
332
+ a = be(i);
324
333
  }
325
334
  if (!a || !Array.isArray(a)) {
326
- b.error("权限数据处理出错了,请联系管理员");
335
+ A.error("权限数据处理出错了,请联系管理员");
327
336
  return;
328
337
  }
329
- d.title = `【${r.a0}】授权`, d.show = !0, await H();
338
+ k.title = `【${r.a0}】授权`, k.show = !0, await Y();
330
339
  const o = a == null ? void 0 : a.map((c) => c == null ? void 0 : c.path);
331
- (t = x.value) == null || t.setCheckedKeys(o), Ue(w.value, a);
340
+ (t = U.value) == null || t.setCheckedKeys(o), Ie(w.value, a);
332
341
  }
333
- }, Xe = () => {
334
- d.show = !1;
335
- }, D = u(), Ye = async (e) => {
336
- const r = await T(j, {
342
+ }, Ye = () => {
343
+ k.show = !1;
344
+ }, E = l(), Ze = async (e) => {
345
+ const r = await D(W, {
337
346
  key: {
338
347
  systemKey: sessionStorage.getItem("systemKey"),
339
348
  type: "data",
340
349
  pageKey: e
341
350
  }
342
- }, "查询"), s = r == null ? void 0 : r.map((t) => {
351
+ }), s = r == null ? void 0 : r.map((t) => {
343
352
  var n;
344
353
  return {
345
354
  id: t.id,
@@ -359,50 +368,59 @@ const re = we("authorityState", {
359
368
  id: t.id
360
369
  };
361
370
  });
362
- }, W = (e, r) => {
371
+ }, L = (e, r) => {
363
372
  let s = {};
364
- return r == null || r.forEach((t, n) => {
365
- t.label && e && (s[t.label] = (e == null ? void 0 : e[`a${n}`]) ?? null);
373
+ return r == null || r.forEach((t) => {
374
+ t.label && e && (s[t.label] = (e == null ? void 0 : e[t == null ? void 0 : t.prop]) ?? null);
366
375
  }), s;
367
- }, L = (e, r, s) => {
368
- var a, o, c, l;
369
- const t = N(e);
370
- t != null && t.id && delete t.id;
371
- const n = W(t, oe.value);
372
- r === "新增" ? T(Y, {
373
- key: {
374
- type: "data",
375
- systemKey: sessionStorage.getItem("systemKey"),
376
- pageKey: (a = v.value) != null && a.startsWith("/") ? (o = v.value) == null ? void 0 : o.substring(1) : v.value,
377
- tableId: s
378
- },
379
- value: {
380
- tableData: n
381
- }
382
- }, r).then((h) => {
383
- D.value = {
384
- ...e,
385
- newId: h
376
+ }, z = (e, r, s, t) => {
377
+ var o, c, h, u;
378
+ const n = F(e);
379
+ n != null && n.id && delete n.id;
380
+ const a = L(n, le.value);
381
+ if (r === "新增")
382
+ D(m, {
383
+ key: {
384
+ type: "data",
385
+ systemKey: sessionStorage.getItem("systemKey"),
386
+ pageKey: (o = S.value) != null && o.startsWith("/") ? (c = S.value) == null ? void 0 : c.substring(1) : S.value,
387
+ tableId: s
388
+ },
389
+ value: {
390
+ tableData: a
391
+ }
392
+ }).then((i) => {
393
+ E.value = {
394
+ ...e,
395
+ newId: i
396
+ };
397
+ });
398
+ else if (r === "编辑")
399
+ D(ee, {
400
+ id: e.id,
401
+ key: {
402
+ type: "data",
403
+ systemKey: sessionStorage.getItem("systemKey"),
404
+ pageKey: (h = S.value) != null && h.startsWith("/") ? (u = S.value) == null ? void 0 : u.substring(1) : S.value,
405
+ tableId: s
406
+ },
407
+ value: {
408
+ tableData: a
409
+ }
410
+ }).then((i) => {
411
+ k.show = !1;
412
+ });
413
+ else if (r != null && r.includes("删除")) {
414
+ const i = r != null && r.includes("批量") ? te : se, f = r != null && r.includes("批量") ? {
415
+ ids: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((p) => p == null ? void 0 : p.id) : []
416
+ } : {
417
+ id: e.id
386
418
  };
387
- }) : r === "编辑" ? T(Z, {
388
- id: e.id,
389
- key: {
390
- type: "data",
391
- systemKey: sessionStorage.getItem("systemKey"),
392
- pageKey: (c = v.value) != null && c.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value,
393
- tableId: s
394
- },
395
- value: {
396
- tableData: n
397
- }
398
- }, r).then((h) => {
399
- d.show = !1;
400
- }) : r === "删除" && T(m, {
401
- id: e.id
402
- }, r).then((h) => {
403
- r && h && b.success(r + "成功");
404
- }), ae.setRefreshCurStructure(!0);
405
- }, ke = (e) => {
419
+ D(i, f).then((p) => {
420
+ r && p && A.success(r + "成功");
421
+ });
422
+ }
423
+ }, Ce = (e) => {
406
424
  let r = [];
407
425
  return e == null || e.forEach((s) => {
408
426
  var t;
@@ -414,31 +432,31 @@ const re = we("authorityState", {
414
432
  };
415
433
  r = r.concat(n);
416
434
  }
417
- s.children && (r = r.concat(ke(s.children)));
435
+ s.children && (r = r.concat(Ce(s.children)));
418
436
  }), r;
419
- }, Ze = () => {
420
- const e = ke(w.value), r = Ge(e), s = qe(r), t = be(s), n = Je(t);
421
- D.value = {
422
- ...k.value,
437
+ }, me = () => {
438
+ const e = Ce(w.value), r = Ge(e), s = He(r), t = Ae(s), n = Je(t);
439
+ E.value = {
440
+ ...C.value,
423
441
  // roleAuthority: extractCheckedButtonPaths(menuData.value)
424
442
  // ['a' + authorityIndex]: checkedKeys
425
443
  // todo 模型驱动
426
- [S.value]: n
427
- }, H(() => {
428
- L(D.value, "编辑", O.value);
444
+ [B.value]: n
445
+ }, Y(() => {
446
+ z(E.value, "编辑", O.value);
429
447
  });
430
- }, d = J({
448
+ }, k = X({
431
449
  show: !1,
432
450
  title: "角色授权",
433
451
  width: "50%",
434
452
  draggable: !0
435
- }), me = ({ isPenultimate: e }, r) => {
453
+ }), et = ({ isPenultimate: e }, r) => {
436
454
  var s, t;
437
455
  return console.log("isPenultimate", e, r), ((t = (s = r == null ? void 0 : r.data) == null ? void 0 : s.renderButtons) == null ? void 0 : t.length) > 0 ? "is-penultimate" : "";
438
- }, O = u(0), et = async (e) => {
456
+ }, O = l(0), tt = async (e) => {
439
457
  var t, n, a, o, c;
440
458
  let r;
441
- const s = await j({
459
+ const s = await W({
442
460
  key: {
443
461
  systemKey: sessionStorage.getItem("systemKey"),
444
462
  type: "structure",
@@ -447,7 +465,7 @@ const re = we("authorityState", {
447
465
  }
448
466
  });
449
467
  return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (n = s == null ? void 0 : s.data) != null && n.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (r = (c = (o = s == null ? void 0 : s.data.result) == null ? void 0 : o[0]) == null ? void 0 : c.id, O.value = r), r;
450
- }, w = u([]), tt = u([
468
+ }, w = l([]), st = l([
451
469
  {
452
470
  path: "资源管理",
453
471
  buttons: ["查询", "新增", "编辑", "删除"]
@@ -456,43 +474,43 @@ const re = we("authorityState", {
456
474
  path: "资源管理/人员",
457
475
  buttons: ["查询", "新增", "编辑", "删除"]
458
476
  }
459
- ]), st = (e, r) => {
477
+ ]), rt = (e, r) => {
460
478
  var s;
461
479
  e.checkedButtons = r ? (s = e.renderButtons) == null ? void 0 : s.map((t) => t.path) : [];
462
- }, B = u([]), rt = (e, r) => {
480
+ }, K = l([]), nt = (e, r) => {
463
481
  var s, t, n;
464
- r.checkedButtons = e, ((s = r.checkedButtons) == null ? void 0 : s.length) === ((t = r.renderButtons) == null ? void 0 : t.length) ? B.value.push(r.path) : (e == null ? void 0 : e.length) === 0 && (B.value = (n = B.value) == null ? void 0 : n.filter((a) => a !== r.path));
482
+ r.checkedButtons = e, ((s = r.checkedButtons) == null ? void 0 : s.length) === ((t = r.renderButtons) == null ? void 0 : t.length) ? K.value.push(r.path) : (e == null ? void 0 : e.length) === 0 && (K.value = (n = K.value) == null ? void 0 : n.filter((a) => a !== r.path));
465
483
  };
466
- X(() => B.value.length, () => {
484
+ Z(() => K.value.length, () => {
467
485
  var e;
468
- (e = x.value) == null || e.setCheckedKeys([...B.value]);
486
+ (e = U.value) == null || e.setCheckedKeys([...K.value]);
469
487
  });
470
- X(() => d.show, (e) => {
471
- e || (w.value = ue(w.value));
488
+ Z(() => k.show, (e) => {
489
+ e || (w.value = ie(w.value));
472
490
  });
473
- const Se = R(() => {
491
+ const Be = x(() => {
474
492
  var s;
475
- const e = (s = N(Re.value)) == null ? void 0 : s.filter((t) => {
493
+ const e = (s = F(xe.value)) == null ? void 0 : s.filter((t) => {
476
494
  var n, a;
477
495
  return ((a = (n = t == null ? void 0 : t.key) == null ? void 0 : n.pageKey) == null ? void 0 : a.toUpperCase()) !== "MENU";
478
496
  });
479
497
  return e == null ? void 0 : e.map((t) => {
480
- var o, c, l, h, y, f, g, Q;
498
+ var o, c, h, u, i, f, p, b;
481
499
  const n = /button/i;
482
- let a = (l = (c = (o = t == null ? void 0 : t.value) == null ? void 0 : o.pageData) == null ? void 0 : c.compData) == null ? void 0 : l.filter((K) => n.test(K == null ? void 0 : K.key));
500
+ let a = (h = (c = (o = t == null ? void 0 : t.value) == null ? void 0 : o.pageData) == null ? void 0 : c.compData) == null ? void 0 : h.filter((g) => n.test(g == null ? void 0 : g.key));
483
501
  return a = Array.from(
484
- new Set(a == null ? void 0 : a.flatMap((K) => K.contents.map(($e) => $e.label)))
502
+ new Set(a == null ? void 0 : a.flatMap((g) => g.contents.map(($e) => $e.label)))
485
503
  ), {
486
- path: (y = (h = t == null ? void 0 : t.key) == null ? void 0 : h.pageKey) != null && y.startsWith("/") ? (g = (f = t == null ? void 0 : t.key) == null ? void 0 : f.pageKey) == null ? void 0 : g.substring(1) : (Q = t == null ? void 0 : t.key) == null ? void 0 : Q.pageKey,
504
+ path: (i = (u = t == null ? void 0 : t.key) == null ? void 0 : u.pageKey) != null && i.startsWith("/") ? (p = (f = t == null ? void 0 : t.key) == null ? void 0 : f.pageKey) == null ? void 0 : p.substring(1) : (b = t == null ? void 0 : t.key) == null ? void 0 : b.pageKey,
487
505
  buttons: a
488
506
  };
489
507
  });
490
- }), nt = u([]), at = (e) => {
508
+ }), at = l([]), ct = (e) => {
491
509
  const s = [e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.title) === "平台管理")].flatMap((t) => t == null ? void 0 : t.children);
492
510
  return s == null ? void 0 : s.map((t) => {
493
511
  var n, a;
494
512
  return {
495
- path: (n = t == null ? void 0 : t.path) != null && n.startsWith("/") ? (a = t == null ? void 0 : t.path) == null ? void 0 : a.substring(1) : t.path,
513
+ path: (n = t == null ? void 0 : t.path) != null && n.startsWith("/") ? (a = t == null ? void 0 : t.path) == null ? void 0 : a.substring(1) : t == null ? void 0 : t.path,
496
514
  // buttons: item?.path === '/系统管理/个人中心' ? ['基本信息', '上传头像', '签名', '修改密码'] : ['新增', '查看', '编辑', '删除']
497
515
  buttons: ["新增", "查看", "编辑", "删除"]
498
516
  };
@@ -520,7 +538,7 @@ const Se = R(() => {
520
538
  });
521
539
  }
522
540
  return [];
523
- }, Be = (e, r) => {
541
+ }, Ke = (e, r) => {
524
542
  if (Array.isArray(e))
525
543
  return e == null ? void 0 : e.map((s) => {
526
544
  var a, o;
@@ -529,14 +547,14 @@ const Se = R(() => {
529
547
  ...s,
530
548
  renderButtons: G(s, n),
531
549
  checkedButtons: [],
532
- children: Be(s.children, Se.value)
550
+ children: Ke(s.children, Be.value)
533
551
  } : {
534
552
  ...s,
535
553
  renderButtons: G(s, n),
536
554
  checkedButtons: []
537
555
  };
538
556
  });
539
- }, ct = {
557
+ }, ot = {
540
558
  comp: "Group",
541
559
  name: "/系统管理/角色管理",
542
560
  compData: [
@@ -545,85 +563,85 @@ const Se = R(() => {
545
563
  contents: [
546
564
  {
547
565
  comp: "Table",
548
- compData: ce.value,
566
+ compData: ue.value,
549
567
  name: ""
550
568
  }
551
569
  ]
552
570
  }
553
571
  ]
554
- }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
572
+ }, Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
555
573
  __proto__: null,
556
- addButtonsToTree: Be,
557
- addPathToTree: F,
558
- authorizeDialog: d,
559
- buttonValue: xe,
560
- changedRow: D,
561
- clickRow: k,
562
- clickRowButton: He,
563
- clickSubmitAuthority: Ze,
564
- closeAuthorizeDialog: Xe,
565
- compName: le,
574
+ addButtonsToTree: Ke,
575
+ addPathToTree: _,
576
+ authorizeDialog: k,
577
+ buttonValue: We,
578
+ changedRow: E,
579
+ clickRow: C,
580
+ clickRowButton: Xe,
581
+ clickSubmitAuthority: me,
582
+ closeAuthorizeDialog: Ye,
583
+ compName: he,
566
584
  convertArrayToTree: ye,
567
- convertIndexToLabel: W,
568
- customNodeClass: me,
569
- getActivePageStructureId: et,
570
- getAuthorityKey: ve,
571
- getFirstArrayProperty: he,
572
- getLeafNodesRecursive: pe,
573
- getPageDataAsync: Ye,
574
- groupByField: fe,
575
- handleAddSysMenusButtons: at,
576
- handleItemDataChange: _e,
577
- handleNodeBtnChange: rt,
578
- handleNodeCheckChange: st,
579
- handleQueryChange: We,
580
- handleRowAuthorityRender: ge,
581
- handleSubmitAsync: T,
582
- isPageDataExist: Fe,
585
+ convertIndexToLabel: L,
586
+ customNodeClass: et,
587
+ getActivePageStructureId: tt,
588
+ getAuthorityKey: de,
589
+ getFirstArrayProperty: fe,
590
+ getLeafNodesRecursive: ve,
591
+ getPageDataAsync: Ze,
592
+ groupByField: ge,
593
+ handleAddSysMenusButtons: ct,
594
+ handleItemDataChange: ze,
595
+ handleNodeBtnChange: nt,
596
+ handleNodeCheckChange: rt,
597
+ handleQueryChange: _e,
598
+ handleRowAuthorityRender: be,
599
+ handleSubmitAsync: D,
600
+ isPageDataExist: Ue,
583
601
  menuData: w,
584
- menusButtons: tt,
585
- pageData: ce,
602
+ menusButtons: st,
603
+ pageData: ue,
586
604
  pageDataFiltered: Le,
587
605
  queryFormData: je,
588
- structureButtons: Se,
606
+ structureButtons: Be,
589
607
  structureId: O,
590
- submitTableAsyncByVerify: L,
591
- tempRolePageData: ct,
592
- tempSysMenus: nt,
593
- treeRef: x
594
- }, Symbol.toStringTag, { value: "Module" })), Ce = ee(A), { superAdminInfo: ot, cryptoInfo: i } = C(Ce), lt = te(A), { activeMenuPath: p } = C(lt), I = "123456", ut = re(A), { routerPageStructures: ht } = C(ut), _ = u(0), it = u([
608
+ submitTableAsyncByVerify: z,
609
+ tempRolePageData: ot,
610
+ tempSysMenus: at,
611
+ treeRef: U
612
+ }, Symbol.toStringTag, { value: "Module" })), ut = ne(v), { superAdminInfo: lt, cryptoInfo: y } = T(ut), ht = re(v), { activeMenuPath: d } = T(ht), J = ae(v), M = "123456", it = oe(v), { routerPageStructures: ft } = T(it), I = l(0), pt = l([
595
613
  {
596
614
  label: "用户名称",
597
615
  value: "",
598
616
  name: "userName"
599
617
  }
600
- ]), P = R(() => {
618
+ ]), P = x(() => {
601
619
  const e = sessionStorage.getItem("isSuperAdmin");
602
620
  return e ? JSON.parse(e) : !1;
603
621
  }), yt = (e) => {
604
622
  console.log("handleQueryChange", e);
605
- }, U = u([]), Ke = u(""), E = R(() => {
623
+ }, Q = l([]), Te = l(""), N = x(() => {
606
624
  var r, s, t, n, a;
607
- const e = (r = ht.value) == null ? void 0 : r.find((o) => {
625
+ const e = (r = ft.value) == null ? void 0 : r.find((o) => {
608
626
  var c;
609
627
  return ((c = o == null ? void 0 : o.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
610
628
  });
611
- return e ? (Ke.value = e.name, U.value = (n = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.label) !== "操作"), (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
629
+ return e ? (Te.value = e.name, Q.value = (n = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.label) !== "操作"), (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
612
630
  if ((c == null ? void 0 : c.key) === "rowButton") {
613
- const l = [...c == null ? void 0 : c.contents, { label: "重置密码" }];
631
+ const h = [...c == null ? void 0 : c.contents, { label: "重置密码" }];
614
632
  return {
615
633
  ...c,
616
- contents: l
634
+ contents: h
617
635
  };
618
636
  }
619
637
  return c;
620
638
  })) : [];
621
- }), ft = (e) => {
622
- z(e.singleContent, e.buttonName, _.value);
623
- }, M = u(), pt = (e) => {
639
+ }), gt = (e) => {
640
+ V(e.singleContent, e.buttonName, I.value, e == null ? void 0 : e.selectItems);
641
+ }, R = l(), vt = (e) => {
624
642
  console.log("onDoubleClick", e);
625
- }, gt = (e, r) => {
626
- e === "重置密码" && Ee.confirm(
643
+ }, bt = (e, r) => {
644
+ e === "重置密码" && Me.confirm(
627
645
  `该操作将会重置【${r == null ? void 0 : r.account}】的密码,确认重置?`,
628
646
  "警告",
629
647
  {
@@ -632,18 +650,18 @@ const Se = R(() => {
632
650
  type: "warning"
633
651
  }
634
652
  ).then(() => {
635
- M.value = {
653
+ R.value = {
636
654
  ...r,
637
- password: I
638
- }, z(M.value, e, _.value);
655
+ password: M
656
+ }, V(R.value, e, I.value);
639
657
  }).catch(() => {
640
- b.info("取消重置");
658
+ A.info("取消重置");
641
659
  });
642
- }, Te = () => {
643
- Pe(p.value).then((e) => {
660
+ }, De = () => {
661
+ Pe(d.value).then((e) => {
644
662
  var s;
645
- const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !== ot.value.account));
646
- E.value = (s = E.value) == null ? void 0 : s.map((t) => t.key === "tableContents" ? {
663
+ const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !== lt.value.account));
664
+ N.value = (s = N.value) == null ? void 0 : s.map((t) => t.key === "tableContents" ? {
647
665
  ...t,
648
666
  // 不显示超管
649
667
  contents: r == null ? void 0 : r.map((n) => {
@@ -652,7 +670,7 @@ const Se = R(() => {
652
670
  ...n,
653
671
  // 登录用户是超管才给解密
654
672
  // password: loginUserIsSuper.value ? decryptData(d?.password, cryptoInfo?.value?.privateKey) : d?.password
655
- password: se(n == null ? void 0 : n.password, (a = i == null ? void 0 : i.value) == null ? void 0 : a.privateKey)
673
+ password: ce(n == null ? void 0 : n.password, (a = y == null ? void 0 : y.value) == null ? void 0 : a.privateKey)
656
674
  };
657
675
  })
658
676
  } : t);
@@ -661,63 +679,71 @@ const Se = R(() => {
661
679
  var t, n;
662
680
  try {
663
681
  const a = await e(r);
664
- return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await Ce.setLogRecordAsync({
665
- type: s,
666
- data: r
667
- }, p.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
682
+ return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (J.setRefreshCurStructure(!0), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
668
683
  } catch (a) {
669
- b.error(a);
684
+ A.error(a);
685
+ } finally {
686
+ J.setCacheUpdatingData(null);
670
687
  }
671
- }, z = (e, r, s) => {
672
- var a, o, c, l, h, y;
673
- const t = N(e);
674
- t != null && t.id && delete t.id;
675
- const n = W(t, U.value);
676
- Ie() && n && (!n.password && P.value ? n.password = V(I, (a = i == null ? void 0 : i.value) == null ? void 0 : a.publicKey) : n.password && P.value && (n.password = V(n == null ? void 0 : n.password, (o = i == null ? void 0 : i.value) == null ? void 0 : o.publicKey))), r === "新增" ? $(Y, {
677
- key: {
678
- type: "data",
679
- layer: n == null ? void 0 : n.layer,
680
- systemKey: sessionStorage.getItem("systemKey"),
681
- pageKey: (c = p.value) != null && c.startsWith("/") ? (l = p.value) == null ? void 0 : l.substring(1) : p.value,
682
- tableId: s
683
- },
684
- value: {
685
- tableData: n
686
- }
687
- }, r).then((f) => {
688
- var g;
689
- M.value = {
690
- ...e,
691
- newId: f,
692
- password: P.value ? se((e == null ? void 0 : e.password) ?? I, (g = i == null ? void 0 : i.value) == null ? void 0 : g.privateKey) : e == null ? void 0 : e.password
688
+ }, V = (e, r, s, t) => {
689
+ var o, c, h, u, i, f;
690
+ const n = F(e);
691
+ n != null && n.id && delete n.id;
692
+ const a = L(n, Q.value);
693
+ if (Ee() && a && (!a.password && P.value ? a.password = q(M, (o = y == null ? void 0 : y.value) == null ? void 0 : o.publicKey) : a.password && P.value && (a.password = q(a == null ? void 0 : a.password, (c = y == null ? void 0 : y.value) == null ? void 0 : c.publicKey))), r === "新增")
694
+ $(m, {
695
+ key: {
696
+ type: "data",
697
+ layer: a == null ? void 0 : a.layer,
698
+ systemKey: sessionStorage.getItem("systemKey"),
699
+ pageKey: (h = d.value) != null && h.startsWith("/") ? (u = d.value) == null ? void 0 : u.substring(1) : d.value,
700
+ tableId: s
701
+ },
702
+ value: {
703
+ tableData: a
704
+ }
705
+ }).then((p) => {
706
+ var b;
707
+ R.value = {
708
+ ...e,
709
+ newId: p,
710
+ password: P.value ? ce((e == null ? void 0 : e.password) ?? M, (b = y == null ? void 0 : y.value) == null ? void 0 : b.privateKey) : e == null ? void 0 : e.password
711
+ };
712
+ });
713
+ else if (r === "编辑" || r === "重置密码")
714
+ $(ee, {
715
+ id: e.id,
716
+ key: {
717
+ type: "data",
718
+ layer: a == null ? void 0 : a.layer,
719
+ systemKey: sessionStorage.getItem("systemKey"),
720
+ pageKey: (i = d.value) != null && i.startsWith("/") ? (f = d.value) == null ? void 0 : f.substring(1) : d.value,
721
+ tableId: s
722
+ },
723
+ value: {
724
+ tableData: a
725
+ }
726
+ }).then(() => {
727
+ r === "重置密码" && De(), k.show = !1;
728
+ });
729
+ else if (r != null && r.includes("删除")) {
730
+ const p = r != null && r.includes("批量") ? te : se, b = r != null && r.includes("批量") ? {
731
+ ids: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((g) => g == null ? void 0 : g.id) : []
732
+ } : {
733
+ id: e.id
693
734
  };
694
- }) : r === "编辑" || r === "重置密码" ? $(Z, {
695
- id: e.id,
696
- key: {
697
- type: "data",
698
- layer: n == null ? void 0 : n.layer,
699
- systemKey: sessionStorage.getItem("systemKey"),
700
- pageKey: (h = p.value) != null && h.startsWith("/") ? (y = p.value) == null ? void 0 : y.substring(1) : p.value,
701
- tableId: s
702
- },
703
- value: {
704
- tableData: n
705
- }
706
- }, r).then(() => {
707
- r === "重置密码" && Te(), d.show = !1;
708
- }) : r === "删除" && $(m, {
709
- id: e.id
710
- }, r).then(() => {
711
- r && b.success(r + "成功");
712
- });
735
+ $(p, b).then((g) => {
736
+ r && g && A.success(r + "成功");
737
+ });
738
+ }
713
739
  }, Pe = async (e) => {
714
- const r = await $(j, {
740
+ const r = await $(W, {
715
741
  key: {
716
742
  systemKey: sessionStorage.getItem("systemKey"),
717
743
  type: "data",
718
744
  pageKey: e
719
745
  }
720
- }, "查询"), s = r == null ? void 0 : r.map((t) => {
746
+ }), s = r == null ? void 0 : r.map((t) => {
721
747
  var n, a;
722
748
  return {
723
749
  id: t.id,
@@ -733,7 +759,7 @@ const Se = R(() => {
733
759
  id: t.id
734
760
  };
735
761
  });
736
- }, vt = {
762
+ }, dt = {
737
763
  comp: "Group",
738
764
  name: "/系统管理/用户管理",
739
765
  compData: [
@@ -742,45 +768,45 @@ const Se = R(() => {
742
768
  contents: [
743
769
  {
744
770
  comp: "Table",
745
- compData: E.value,
771
+ compData: N.value,
746
772
  name: ""
747
773
  }
748
774
  ]
749
775
  }
750
776
  ]
751
- }, Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
777
+ }, Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
752
778
  __proto__: null,
753
- changedRow: M,
754
- clickRowButton: gt,
755
- columns: U,
756
- compName: Ke,
779
+ changedRow: R,
780
+ clickRowButton: bt,
781
+ columns: Q,
782
+ compName: Te,
757
783
  getPageDataAsync: Pe,
758
- handleItemDataChange: ft,
784
+ handleItemDataChange: gt,
759
785
  handleQueryChange: yt,
760
786
  handleSubmitAsync: $,
761
787
  loginUserIsSuper: P,
762
- onDoubleClick: pt,
763
- pageData: E,
764
- queryFormData: it,
765
- refreshUserTableData: Te,
766
- resetPassword: I,
767
- structureId: _,
768
- submitTableAsyncByVerify: z,
769
- tempUserPageData: vt
788
+ onDoubleClick: vt,
789
+ pageData: N,
790
+ queryFormData: pt,
791
+ refreshUserTableData: De,
792
+ resetPassword: M,
793
+ structureId: I,
794
+ submitTableAsyncByVerify: V,
795
+ tempUserPageData: dt
770
796
  }, Symbol.toStringTag, { value: "Module" }));
771
797
  export {
772
- Kt as S,
773
- F as a,
774
- pe as b,
798
+ Dt as S,
799
+ _ as a,
800
+ ve as b,
775
801
  ye as c,
776
- fe as d,
802
+ ge as d,
777
803
  Pe as e,
778
804
  $ as f,
779
- he as g,
780
- ge as h,
781
- et as i,
782
- Ct as j,
783
- I as r,
784
- z as s,
785
- re as u
805
+ fe as g,
806
+ be as h,
807
+ tt as i,
808
+ Tt as j,
809
+ M as r,
810
+ V as s,
811
+ oe as u
786
812
  };