ss-component-new 1.1.121 → 1.1.124

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 (74) hide show
  1. package/dist/array-0K26SSg4.cjs +7 -0
  2. package/dist/{array-GKiq_tn9.js → array-BxjTOqMI.js} +8 -8
  3. package/dist/{cloneDeep-vZFEDRrU.js → cloneDeep-BY7jbyTA.js} +1 -1
  4. package/dist/{cloneDeep-tQf7WEs8.cjs → cloneDeep-TacB4EZO.cjs} +1 -1
  5. package/dist/index-B350Jd1Q.cjs +1 -0
  6. package/dist/{index-0UA233-u.js → index-B5RsyhWe.js} +5 -5
  7. package/dist/{index-VcwAdA78.js → index-BKjdsboN.js} +17 -17
  8. package/dist/{index-DXryG-nG.js → index-BNWaoj6Z.js} +45 -45
  9. package/dist/{index-Du-CR9HQ.cjs → index-BRbFWayD.cjs} +1 -1
  10. package/dist/index-BWmd705R.js +2769 -0
  11. package/dist/{request-BeuBq-N8.js → index-BcFYdS3F.js} +273 -242
  12. package/dist/index-BpwVKq24.js +333 -0
  13. package/dist/index-C-aZvFRW.cjs +1 -0
  14. package/dist/index-C6RYDjmq.cjs +6 -0
  15. package/dist/index-CDx9lK-r.js +327 -0
  16. package/dist/{index-q-zIPTnT.js → index-CNVW_6cz.js} +1 -1
  17. package/dist/index-CxGJFuX5.cjs +1 -0
  18. package/dist/{index-BXwd1P4x.js → index-D01NwDB8.js} +11 -10
  19. package/dist/{index-q0VupmyF.js → index-DJjfdv-n.js} +20 -19
  20. package/dist/index-DMXwpYH6.cjs +1 -0
  21. package/dist/index-DR-Tl8gC.cjs +1 -0
  22. package/dist/{index-Det__boR.cjs → index-DS-uNvzB.cjs} +1 -1
  23. package/dist/{index-BdcBWc99.cjs → index-DZ5z3tU0.cjs} +1 -1
  24. package/dist/{index-DJjZ5Toi.cjs → index-DcJlzFm_.cjs} +1 -1
  25. package/dist/index-De3a9oEY.cjs +1 -0
  26. package/dist/{index-D14rmyEv.cjs → index-DehKbitZ.cjs} +1 -1
  27. package/dist/{index-B6iYjA8R.cjs → index-DlaRK5AT.cjs} +1 -1
  28. package/dist/{index-h8YlWO3M.cjs → index-DlkIx2Ch.cjs} +1 -1
  29. package/dist/{index-CrN82Jcz.js → index-DwhBlmrq.js} +6 -6
  30. package/dist/{index-CYO_2UDB.js → index-H6qiNlh1.js} +1 -1
  31. package/dist/index-JeDCqfyX.cjs +6 -0
  32. package/dist/{index-Bhm8MhJf.js → index-NiXp6EjT.js} +1 -1
  33. package/dist/{index-CE7jgmab.js → index-ReulmnrK.js} +9 -9
  34. package/dist/{index-pF_8OJOJ.js → index-g1lOxgn5.js} +1 -1
  35. package/dist/{index-EV28Lju3.cjs → index-gGDczXNR.cjs} +1 -1
  36. package/dist/{index-1YFwWhIC.cjs → index-iJAEvjVl.cjs} +1 -1
  37. package/dist/index-q4qf3gNt.js +627 -0
  38. package/dist/{index-DzARWpFJ.js → index-xmI6kE3E.js} +4 -4
  39. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-D7-HhkPl.cjs +1 -0
  40. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DlcscNze.js +238 -0
  41. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cik8OFj7.js +179 -0
  42. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DH217tni.cjs +1 -0
  43. package/dist/login-6xi181Q5.cjs +1 -0
  44. package/dist/{login-CChMyF5j.js → login-A-LN2ivr.js} +10 -42
  45. package/dist/{main-DYXrqtiX.cjs → main-CfDsaDSE.cjs} +1 -1
  46. package/dist/{main-ChxgD0Un.js → main-DGayymHA.js} +6 -6
  47. package/dist/{menu-CS1eT20u.cjs → menu-BiId5weS.cjs} +5 -5
  48. package/dist/{menu-wU4DAZfH.js → menu-Dk3VihkR.js} +703 -654
  49. package/dist/{modelComp-d1h-HYNv.js → modelComp-BmaHE37I.js} +1 -1
  50. package/dist/{modelComp-pHwtS2H5.cjs → modelComp-ChjHbjpK.cjs} +1 -1
  51. package/dist/ss-component.cjs +1 -1
  52. package/dist/ss-component.css +1 -1
  53. package/dist/ss-component.js +6 -6
  54. package/dist/ss-component2.cjs +1 -1
  55. package/dist/ss-component2.js +1 -1
  56. package/package.json +1 -1
  57. package/dist/array-CXhFwwqo.cjs +0 -7
  58. package/dist/index-BpKjooqU.cjs +0 -6
  59. package/dist/index-CFrbpfv0.cjs +0 -1
  60. package/dist/index-CJ1zMvM-.cjs +0 -1
  61. package/dist/index-CM3HIKOQ.js +0 -328
  62. package/dist/index-CSFiZEGP.js +0 -405
  63. package/dist/index-CXDfgoDy.js +0 -2876
  64. package/dist/index-CqCD6Ycw.cjs +0 -1
  65. package/dist/index-DfmdUHnV.js +0 -445
  66. package/dist/index-Dm1zenUu.cjs +0 -1
  67. package/dist/index-iOl5iPFq.cjs +0 -1
  68. package/dist/index-y0RxrCA_.cjs +0 -1
  69. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-90CEE-zx.cjs +0 -1
  70. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-CvWM7pc-.js +0 -226
  71. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CVZbqzna.cjs +0 -1
  72. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cem7_S_Q.js +0 -226
  73. package/dist/login-BVmf8RMZ.cjs +0 -1
  74. package/dist/request-C1So2YgV.cjs +0 -6
@@ -0,0 +1,327 @@
1
+ import { ref as h, onMounted as Z, watch as D, createElementBlock as m, openBlock as i, Fragment as G, renderList as H, createElementVNode as S, createCommentVNode as A, toDisplayString as J, resolveComponent as B, createVNode as I, withCtx as L, createBlock as E, unref as p, resolveDynamicComponent as ee } from "vue";
2
+ import { m as te, a as ae, b as se } from "./index-DwhBlmrq.js";
3
+ import ne from "./index-NiXp6EjT.js";
4
+ import { p as j } from "./index-g1lOxgn5.js";
5
+ import { u as Q } from "./modelComp-BmaHE37I.js";
6
+ import { u as X, s as M } from "./menu-Dk3VihkR.js";
7
+ import { i as le, e as re, b as z, c as oe, g as ie, a as ue } from "./array-BxjTOqMI.js";
8
+ import { u as ce, a as de, g as O, d as me, b as ge, f as ye } from "./index-q4qf3gNt.js";
9
+ import { s as ve } from "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-DlcscNze.js";
10
+ import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import { c as he } from "./cloneDeep-BY7jbyTA.js";
12
+ const _e = { class: "bread-content" }, Ce = ["onClick"], fe = { key: 0 }, we = {
13
+ __name: "index",
14
+ props: {
15
+ breadArray: {
16
+ type: Array,
17
+ default: () => []
18
+ }
19
+ },
20
+ emits: ["click"],
21
+ setup(T, { emit: N }) {
22
+ const t = T, c = h([]), k = N;
23
+ Z(() => {
24
+ c.value = t == null ? void 0 : t.breadArray;
25
+ }), D(
26
+ () => t == null ? void 0 : t.breadArray,
27
+ () => {
28
+ c.value = t == null ? void 0 : t.breadArray;
29
+ },
30
+ { deep: !0, immediate: !0 }
31
+ );
32
+ const w = (b) => {
33
+ k("click", b);
34
+ };
35
+ return (b, d) => (i(), m("div", _e, [
36
+ (i(!0), m(G, null, H(c.value, (_, $) => (i(), m("div", {
37
+ key: $,
38
+ class: "bread-item"
39
+ }, [
40
+ S("div", {
41
+ class: "bread-title",
42
+ onClick: (W) => w(_)
43
+ }, J(_.value), 9, Ce),
44
+ $ !== c.value.length - 1 && Array.isArray(c.value) ? (i(), m("div", fe, J("/"))) : A("", !0)
45
+ ]))), 128))
46
+ ]));
47
+ }
48
+ }, pe = /* @__PURE__ */ U(we, [["__scopeId", "data-v-ebb4c8e5"]]), ke = { class: "system-wrap" }, Se = {
49
+ key: 0,
50
+ class: "show-content"
51
+ }, Ie = {
52
+ key: 0,
53
+ class: "item-menu-content"
54
+ }, be = { class: "item-view-group" }, xe = {
55
+ __name: "index",
56
+ props: {
57
+ content: String,
58
+ jsonContents: Array
59
+ },
60
+ emits: ["change", "contentChange"],
61
+ setup(T, { emit: N }) {
62
+ const t = T, c = Q(j);
63
+ ce(j);
64
+ const k = h(!0), w = X();
65
+ h(!0);
66
+ const { itemData: b } = M(c), d = de(j), { activeMenuPath: _, activeMenuOpenPaths: $, menuTriggerType: W, menus: q } = M(w), { selectIndex: Y, selectTitle: u } = M(d);
67
+ h([]);
68
+ const g = h([]), x = async (e) => {
69
+ var C, a, s, o, n, v;
70
+ if ((e == null ? void 0 : e.type) === "delete")
71
+ await me((C = e == null ? void 0 : e.singleContent) == null ? void 0 : C.id);
72
+ else if ((e == null ? void 0 : e.buttonName) === "新增") {
73
+ let r = {};
74
+ for (let f in e == null ? void 0 : e.singleContent)
75
+ f !== "id" && f !== "index" && (r[f] = e == null ? void 0 : e.singleContent[f]);
76
+ await ge("data", _.value, e == null ? void 0 : e.index, sessionStorage.getItem("systemKey"), Object.values(r));
77
+ } else if ((e == null ? void 0 : e.buttonName) === "编辑") {
78
+ let r = {}, f = (a = e == null ? void 0 : e.singleContent) == null ? void 0 : a.id;
79
+ for (let l in e == null ? void 0 : e.singleContent)
80
+ l !== "id" && l !== "index" && (r[l] = e == null ? void 0 : e.singleContent[l]);
81
+ await ye("data", _.value, e == null ? void 0 : e.index, f, sessionStorage.getItem("systemKey"), Object.values(r));
82
+ }
83
+ let y = (o = (s = u.value) == null ? void 0 : s[u.value.length - 1]) != null && o.key ? parseInt((v = (n = u.value) == null ? void 0 : n[u.value.length - 1]) == null ? void 0 : v.key) : "";
84
+ g.value = await O(_.value, sessionStorage.getItem("systemKey"), y), c.setItemData(g.value);
85
+ }, F = (e) => {
86
+ g.value = e, c.setItemData(g.value);
87
+ }, P = (e) => {
88
+ }, K = async (e) => {
89
+ var y;
90
+ if ((e == null ? void 0 : e.key) === "main" || u.value.length === 1)
91
+ g.value = await O(_.value, sessionStorage.getItem("systemKey")), d.setSelectIndex(""), d.setSelectMenu(""), d.setSelectTitle([]);
92
+ else {
93
+ const C = [];
94
+ g.value = await O(_.value, sessionStorage.getItem("systemKey"), e == null ? void 0 : e.key);
95
+ let a = -1;
96
+ (y = u.value) == null || y.forEach((s, o) => {
97
+ (s == null ? void 0 : s.key) === (e == null ? void 0 : e.key) && (a = o), (a === -1 || a >= o) && C.push(s);
98
+ }), d.setSelectTitle(C), d.setSelectMenu(e == null ? void 0 : e.key);
99
+ }
100
+ c.setItemData(g.value);
101
+ };
102
+ D(() => _.value, async (e) => {
103
+ e && (g.value = await O(e, sessionStorage.getItem("systemKey")), c.setItemData(g.value), d.setSelectTitle([]), d.setSelectIndex(""), d.setSelectMenu(""));
104
+ }, {
105
+ immediate: !0
106
+ }), D(
107
+ () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
108
+ () => {
109
+ var C, a, s, o;
110
+ if (((C = t == null ? void 0 : t.jsonContents) == null ? void 0 : C.length) > 0) {
111
+ c.setOriginalData(t == null ? void 0 : t.jsonContents);
112
+ return;
113
+ }
114
+ if (!(t != null && t.content) || ((a = t == null ? void 0 : t.content) == null ? void 0 : a.length) === 0) return;
115
+ k.value = !0;
116
+ let e = [], y = [];
117
+ d.setSelectTitle([]), d.setSelectIndex(""), d.setSelectMenu(""), (o = (s = t == null ? void 0 : t.content) == null ? void 0 : s.filter((n) => n !== "")) == null || o.forEach((n) => {
118
+ le(n) ? y.push(re(n)) : z(n) ? y.push(z(n)) : y.push(oe(n));
119
+ }), e = y == null ? void 0 : y[0], ve(e), c.setOriginalData(e);
120
+ },
121
+ { deep: !0, immediate: !0 }
122
+ );
123
+ const V = (e) => ie(e);
124
+ return (e, y) => {
125
+ const C = B("el-aside"), a = B("router-view"), s = B("el-main"), o = B("el-container");
126
+ return i(), m("div", ke, [
127
+ I(o, null, {
128
+ default: L(() => [
129
+ I(C, { width: "250px" }, {
130
+ default: L(() => [
131
+ I(ne)
132
+ ]),
133
+ _: 1
134
+ }),
135
+ I(s, null, {
136
+ default: L(() => {
137
+ var n, v, r, f;
138
+ return [
139
+ e.$route.path === "/" && ((n = g.value) == null ? void 0 : n.length) > 0 ? (i(), m("div", Se, [
140
+ Array.isArray(p(u)) && ((v = p(u)) == null ? void 0 : v.length) > 1 || Array.isArray(p(u)) && !((r = p(u)) != null && r.find((l) => (l == null ? void 0 : l.key) === "main")) && ((f = p(u)) == null ? void 0 : f.length) === 1 || !Array.isArray(p(u)) && p(u).key !== "main" ? (i(), m("div", Ie, [
141
+ (i(), E(pe, {
142
+ key: p(u),
143
+ breadArray: p(u),
144
+ onClick: K
145
+ }, null, 8, ["breadArray"]))
146
+ ])) : A("", !0),
147
+ S("div", null, [
148
+ (i(!0), m(G, null, H(g.value, (l, R) => (i(), m("div", {
149
+ class: "item-content",
150
+ key: R
151
+ }, [
152
+ S("div", be, J(l.name), 1),
153
+ (i(), E(ee(V(l.comp)), {
154
+ itemData: l == null ? void 0 : l.compData,
155
+ childItemData: l == null ? void 0 : l.itemChildData,
156
+ key: (l == null ? void 0 : l.id) ?? R,
157
+ onChange: x,
158
+ index: (l == null ? void 0 : l.id) ?? R,
159
+ onContentChange: P,
160
+ onPageChange: F
161
+ }, null, 40, ["itemData", "childItemData", "index"]))
162
+ ]))), 128))
163
+ ])
164
+ ])) : (i(), E(a, { key: 1 }))
165
+ ];
166
+ }),
167
+ _: 1
168
+ })
169
+ ]),
170
+ _: 1
171
+ })
172
+ ]);
173
+ };
174
+ }
175
+ }, Ae = /* @__PURE__ */ U(xe, [["__scopeId", "data-v-f7aa7253"]]), De = { class: "add-model-content" }, Te = {
176
+ key: 0,
177
+ class: "model-import-data"
178
+ }, $e = { class: "import-button" }, je = { key: 0 }, Me = {
179
+ key: 1,
180
+ class: "model-operate"
181
+ }, Ne = { class: "model-select" }, Fe = { class: "model-fill" }, Pe = {
182
+ key: 2,
183
+ class: "model-view"
184
+ }, Be = {
185
+ __name: "index",
186
+ props: {
187
+ mode: {
188
+ type: String,
189
+ default: "view"
190
+ },
191
+ content: {
192
+ type: String,
193
+ default: ""
194
+ },
195
+ jsonContents: {
196
+ type: Array,
197
+ default: () => []
198
+ },
199
+ showButton: {
200
+ type: Boolean,
201
+ default: !0
202
+ }
203
+ },
204
+ emits: ["change", "contentChange"],
205
+ setup(T, { emit: N }) {
206
+ const t = T, c = N, k = h([]), w = h([]), b = h([]), d = h(0), _ = Q(j), $ = X(j), { itemData: W, originalData: q } = M(_), { activeMenuPath: Y } = M($), u = h(null), g = h(0), x = h([]), F = h(""), P = h(0), K = (a) => {
207
+ c("contentChange", a);
208
+ }, V = (a) => {
209
+ var o;
210
+ const s = (o = he(a == null ? void 0 : a.wholeValue)) == null ? void 0 : o.map((n) => {
211
+ var v;
212
+ return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (v = n.compData) == null ? void 0 : v.map((r) => ((r == null ? void 0 : r.key) === "formContent" && (r.contents = ue(r == null ? void 0 : r.contents)), r))), n;
213
+ });
214
+ c("change", {
215
+ originalContents: q.value,
216
+ currentContents: a == null ? void 0 : a.wholeValue,
217
+ editContent: a == null ? void 0 : a.editValue,
218
+ arrayToContents: s
219
+ });
220
+ };
221
+ D(
222
+ () => w.value,
223
+ () => {
224
+ P.value === w.value.length && w.value.length !== 0 && (k.value = w.value);
225
+ },
226
+ { deep: !0, immediate: !0 }
227
+ );
228
+ const e = () => {
229
+ u.value.click();
230
+ }, y = async (a) => {
231
+ const s = a.target.files;
232
+ if (!s) return;
233
+ new FileReader(), k.value = [], w.value = [], P.value = s.length;
234
+ const o = Array.from(s).map(async (n) => await new Promise((v) => {
235
+ const r = new FileReader();
236
+ r.onload = (f) => {
237
+ try {
238
+ w.value.push(f.target.result), x.value = C(f.target.result), g.value++;
239
+ } catch (l) {
240
+ console.error("解析失败:", l);
241
+ return;
242
+ }
243
+ }, r.onerror = () => v(`读取 ${n.name} 失败`), r.readAsText(n);
244
+ }));
245
+ await Promise.all(o);
246
+ };
247
+ D(
248
+ () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
249
+ () => {
250
+ k.value = t.content, b.value = t == null ? void 0 : t.jsonContents;
251
+ },
252
+ { deep: !0, immediate: !0 }
253
+ ), D(
254
+ () => g.value,
255
+ () => {
256
+ var a;
257
+ ((a = x.value) == null ? void 0 : a.length) !== 0 && (_.setOriginalData(x.value), _.setItemData(x.value));
258
+ },
259
+ { deep: !0, immediate: !0 }
260
+ );
261
+ const C = (a) => {
262
+ let s = a.replace(/,/g, ",").replace(/;/g, ";").replace(/:/g, ":");
263
+ s = s.replace(/(\w+)\s*:/g, "$1:"), s = s.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), s = s.replace(/,\s*([}\]])/g, "$1"), s = s.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
264
+ try {
265
+ return JSON.parse(s);
266
+ } catch (o) {
267
+ try {
268
+ const v = new Function(`return ${s}`)();
269
+ if (Array.isArray(v) || typeof v == "object")
270
+ return v;
271
+ throw new Error(`解析结果不是有效的数组或对象: ${o}`);
272
+ } catch (n) {
273
+ throw new Error(`无法解析JSON: ${n.message}`);
274
+ }
275
+ }
276
+ };
277
+ return (a, s) => {
278
+ var o;
279
+ return i(), m("div", De, [
280
+ ((o = t == null ? void 0 : t.jsonContents) == null ? void 0 : o.length) === 0 && (t != null && t.showButton) ? (i(), m("div", Te, [
281
+ S("div", $e, [
282
+ S("input", {
283
+ type: "file",
284
+ ref_key: "fileInput",
285
+ ref: u,
286
+ accept: ".txt, .inm",
287
+ onChange: y,
288
+ style: { display: "none" },
289
+ multiple: ""
290
+ }, null, 544),
291
+ S("button", {
292
+ onClick: e,
293
+ class: "import-button-content"
294
+ }, "导入文件"),
295
+ F.value ? (i(), m("span", je, J(F.value), 1)) : A("", !0)
296
+ ])
297
+ ])) : A("", !0),
298
+ (t == null ? void 0 : t.mode) === "edit" ? (i(), m("div", Me, [
299
+ S("div", Ne, [
300
+ I(te)
301
+ ]),
302
+ (i(), m("div", {
303
+ class: "model-show",
304
+ key: d.value
305
+ }, [
306
+ I(ae)
307
+ ])),
308
+ S("div", Fe, [
309
+ I(se)
310
+ ])
311
+ ])) : A("", !0),
312
+ (t == null ? void 0 : t.mode) === "view" ? (i(), m("div", Pe, [
313
+ (i(), E(Ae, {
314
+ content: k.value,
315
+ onChange: V,
316
+ jsonContents: b.value,
317
+ onContentChange: K,
318
+ key: d.value
319
+ }, null, 8, ["content", "jsonContents"]))
320
+ ])) : A("", !0)
321
+ ]);
322
+ };
323
+ }
324
+ }, Ge = /* @__PURE__ */ U(Be, [["__scopeId", "data-v-77dec451"]]);
325
+ export {
326
+ Ge as default
327
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
2
2
  import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { c as Ki } from "./cloneDeep-vZFEDRrU.js";
3
+ import { c as Ki } from "./cloneDeep-BY7jbyTA.js";
4
4
  /*! *****************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("./index-JeDCqfyX.cjs"),V=require("./index-DMXwpYH6.cjs"),g=require("./index-DR-Tl8gC.cjs"),u=require("./menu-BiId5weS.cjs"),v=require("./modelComp-ChjHbjpK.cjs"),w=require("vue-router"),m=require("./cloneDeep-TacB4EZO.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B={class:"role-wrapper"},N={class:"role-dialog-header"},S={class:"node-text"},q={class:"dialog-footer"},T=e.defineComponent({__name:"index",setup(R){const C=u.useMenuState(),{menus:_,activeMenuPath:d}=u.storeToRefs(C),t=e.reactive({...g.State}),{treeRef:k}=g.State,h=v.useModelComp(),{itemData:x}=u.storeToRefs(h),f=w.useRoute();return e.onMounted(()=>{console.log(1234,t.structureButtons);const l=m.cloneDeep(x.value),o={comp:"Group",name:f.path,compData:t.pageData};h.setItemData([...l,o]),d.value&&t.getPageDataAsync(d.value).then(s=>{var r;t.pageData=(r=t.pageData)==null?void 0:r.map(a=>a.key==="tableContents"?{...a,contents:s}:a)})}),e.watch(()=>_.value,l=>{e.nextTick(()=>{const o=m.cloneDeep(l);t.menuData=t.addButtonsToTree(o,t.structureButtons),console.log("menus123",o)})},{immediate:!0,deep:!0}),(l,o)=>{const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group"),a=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",B,[e.createVNode(b.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!0,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(V.ssTable,{class:"role-body",itemData:t.pageDataFiltered,changedContent:t.changedRow,onChange:t.handleItemDataChange,onContentChange:t.handleContentChange,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","onChange","onContentChange","onOnButtonClick"])]),e.createVNode(D,{modelValue:t.authorizeDialog.show,"onUpdate:modelValue":o[0]||(o[0]=i=>t.authorizeDialog.show=i),width:t.authorizeDialog.width,draggable:t.authorizeDialog.draggable,"before-close":t.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(t.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(p,{onClick:t.closeAuthorizeDialog},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{type:"primary",onClick:t.clickSubmitAuthority},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(a,{class:"role-tree",ref_key:"treeRef",ref:k,data:t.menuData,"show-checkbox":"","expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onCheckChange:t.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:i,data:c})=>[e.createElementVNode("span",S,e.toDisplayString(i.label),1),e.createVNode(r,{modelValue:c.checkedButtons,"onUpdate:modelValue":n=>c.checkedButtons=n,onChange:n=>t.handleNodeBtnChange(n,c),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.renderButtons,n=>(e.openBlock(),e.createBlock(s,{key:n.title,label:n.title,value:n.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])],64)}}}),E=y._export_sfc(T,[["__scopeId","data-v-a7127b6e"]]);exports.default=E;
@@ -1,11 +1,12 @@
1
1
  import { resolveComponent as n, createElementBlock as r, openBlock as c, createVNode as m } from "vue";
2
- import "./array-GKiq_tn9.js";
3
- import "./index-pF_8OJOJ.js";
4
- import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cem7_S_Q.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-CvWM7pc-.js";
7
- import "./request-BeuBq-N8.js";
8
- const u = {
2
+ import "./array-BxjTOqMI.js";
3
+ import "./index-g1lOxgn5.js";
4
+ import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Cik8OFj7.js";
6
+ import "./menu-Dk3VihkR.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-DlcscNze.js";
8
+ import "./index-BcFYdS3F.js";
9
+ const s = {
9
10
  __name: "index",
10
11
  props: {
11
12
  mode: {
@@ -27,7 +28,7 @@ const u = {
27
28
  },
28
29
  setup(e) {
29
30
  const t = e;
30
- return (a, i) => {
31
+ return (u, a) => {
31
32
  const o = n("router-view");
32
33
  return c(), r("div", null, [
33
34
  m(o, {
@@ -39,7 +40,7 @@ const u = {
39
40
  ]);
40
41
  };
41
42
  }
42
- }, v = /* @__PURE__ */ s(u, [["__scopeId", "data-v-885fe329"]]);
43
+ }, h = /* @__PURE__ */ i(s, [["__scopeId", "data-v-885fe329"]]);
43
44
  export {
44
- v as default
45
+ h as default
45
46
  };