auto-vue-basic 0.0.42 → 0.0.44

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.
@@ -1,10 +1,10 @@
1
- import { defineComponent as O, ref as Q, onBeforeMount as be, resolveComponent as d, createBlock as $, openBlock as q, unref as e, isRef as D, withCtx as t, createVNode as l, createTextVNode as B, createElementBlock as T, Fragment as N, renderList as j, toDisplayString as G, withKeys as X, createElementVNode as K, toRef as re, normalizeClass as pe, isVNode as _e, reactive as fe, onMounted as ge, watch as he, nextTick as Ve, createCommentVNode as ye } from "vue";
2
- import { createAutoApi as Z, useForm as I, Translate as a, RulesUtils as ke, FormDialog as Y, BasicAvatar as ve, ModifyButton as ee, useCrudPage as P, useLoading as z, ProTable as le, DEFAULT_PAGE_KEY as ae, SearchButton as oe, RefreshButton as W, OpenButton as te, DEFAULT_STATUS_KEY as ie, AutoApiUtils as we, useSelect as ue, InlineRefreshButton as me, DEFAULT_REMOVE_KEY as xe } from "auto-vue-manual";
3
- const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */ O({
1
+ import { defineComponent as D, ref as ee, onBeforeMount as Ve, resolveComponent as s, createBlock as q, openBlock as E, unref as e, isRef as N, withCtx as o, createVNode as l, createTextVNode as I, createElementBlock as K, Fragment as z, renderList as W, toDisplayString as X, withKeys as le, createElementVNode as Y, toRef as se, normalizeClass as _e, isVNode as ye, reactive as ke, onMounted as ve, watch as we, nextTick as xe, createCommentVNode as Re } from "vue";
2
+ import { createAutoApi as ae, useForm as G, Translate as a, RulesUtils as Ae, FormDialog as Q, BasicAvatar as Ue, ModifyButton as oe, useCrudPage as P, useLoading as F, ProTable as te, DEFAULT_PAGE_KEY as ne, SearchButton as j, RefreshButton as B, OpenButton as re, DEFAULT_STATUS_KEY as be, AutoApiUtils as fe, useSelect as de, InlineRefreshButton as ge, DEFAULT_REMOVE_KEY as Me, TimeUtils as T, ProTableList as pe, REQUEST_LOG_URL as Le, ERROR_LOG_URL as Ee, SQL_LOG_URL as Se } from "auto-vue-manual";
3
+ const ue = ae("admin", {}, "key"), Z = ae("role", {}, "key"), Ce = /* @__PURE__ */ D({
4
4
  __name: "AdminFormModal",
5
5
  emits: ["refresh"],
6
- setup(x, { expose: R, emit: k }) {
7
- const M = k, v = {
6
+ setup(x, { expose: w, emit: y }) {
7
+ const k = y, h = {
8
8
  key: "",
9
9
  username: "",
10
10
  password: "",
@@ -13,18 +13,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
13
13
  language: "zh-CN",
14
14
  remark: "",
15
15
  roles: []
16
- }, {
17
- modal: V,
18
- title: _,
19
- form: s,
20
- formData: p,
21
- requesting: r,
22
- executing: g,
23
- open: m,
24
- modify: i,
25
- submit: U,
26
- closed: C
27
- } = I(M, v, ne), E = {
16
+ }, { modal: _, title: m, form: d, formData: p, requesting: n, executing: b, open: c, modify: i, submit: R, closed: v } = G(k, h, ue), C = {
28
17
  username: [
29
18
  {
30
19
  required: !0,
@@ -35,7 +24,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
35
24
  phone: [
36
25
  {
37
26
  required: !0,
38
- validator: ke.phoneRule,
27
+ validator: Ae.phoneRule,
39
28
  message: a("base.placeholder.input base.phone"),
40
29
  trigger: "blur"
41
30
  }
@@ -69,113 +58,113 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
69
58
  trigger: "change"
70
59
  }
71
60
  ]
72
- }, c = Q([]), o = async () => {
73
- const u = await J.list();
74
- c.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
61
+ }, f = ee([]), t = async () => {
62
+ const u = await Z.list();
63
+ f.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
75
64
  };
76
- return be(async () => {
77
- await o();
78
- }), R({
79
- open: m,
65
+ return Ve(async () => {
66
+ await t();
67
+ }), w({
68
+ open: c,
80
69
  modify: i
81
- }), (u, n) => {
82
- const h = d("el-input"), y = d("el-form-item"), S = d("el-radio-button"), f = d("el-radio-group"), w = d("el-checkbox"), b = d("el-checkbox-group"), A = d("el-form");
83
- return q(), $(e(Y), {
84
- modelValue: e(V),
85
- "onUpdate:modelValue": n[7] || (n[7] = (L) => D(V) ? V.value = L : null),
86
- title: e(_)(),
70
+ }), (u, r) => {
71
+ const A = s("el-input"), U = s("el-form-item"), S = s("el-radio-button"), V = s("el-radio-group"), M = s("el-checkbox"), g = s("el-checkbox-group"), L = s("el-form");
72
+ return E(), q(e(Q), {
73
+ modelValue: e(_),
74
+ "onUpdate:modelValue": r[7] || (r[7] = (O) => N(_) ? _.value = O : null),
75
+ title: e(m)(),
87
76
  width: "600px",
88
- executing: e(g),
89
- onClosed: e(C),
90
- onSubmit: e(U)
77
+ executing: e(b),
78
+ onClosed: e(v),
79
+ onSubmit: e(R)
91
80
  }, {
92
- default: t(() => [
93
- l(A, {
81
+ default: o(() => [
82
+ l(L, {
94
83
  ref_key: "form",
95
- ref: s,
84
+ ref: d,
96
85
  model: e(p),
97
86
  "label-width": "auto",
98
- rules: E,
99
- disabled: e(r) || e(g)
87
+ rules: C,
88
+ disabled: e(n) || e(b)
100
89
  }, {
101
- default: t(() => [
102
- l(y, {
90
+ default: o(() => [
91
+ l(U, {
103
92
  label: e(a)("base.username"),
104
93
  prop: "username"
105
94
  }, {
106
- default: t(() => [
107
- l(h, {
95
+ default: o(() => [
96
+ l(A, {
108
97
  modelValue: e(p).username,
109
- "onUpdate:modelValue": n[0] || (n[0] = (L) => e(p).username = L),
98
+ "onUpdate:modelValue": r[0] || (r[0] = (O) => e(p).username = O),
110
99
  placeholder: e(a)("base.placeholder.input"),
111
100
  autocomplete: "off"
112
101
  }, null, 8, ["modelValue", "placeholder"])
113
102
  ]),
114
103
  _: 1
115
104
  }, 8, ["label"]),
116
- l(y, {
105
+ l(U, {
117
106
  label: e(a)("base.phone"),
118
107
  prop: "phone"
119
108
  }, {
120
- default: t(() => [
121
- l(h, {
109
+ default: o(() => [
110
+ l(A, {
122
111
  modelValue: e(p).phone,
123
- "onUpdate:modelValue": n[1] || (n[1] = (L) => e(p).phone = L),
112
+ "onUpdate:modelValue": r[1] || (r[1] = (O) => e(p).phone = O),
124
113
  placeholder: e(a)("base.placeholder.input"),
125
114
  autocomplete: "off"
126
115
  }, null, 8, ["modelValue", "placeholder"])
127
116
  ]),
128
117
  _: 1
129
118
  }, 8, ["label"]),
130
- l(y, {
119
+ l(U, {
131
120
  label: e(a)("base.password"),
132
121
  prop: "password",
133
122
  required: !e(p).key
134
123
  }, {
135
- default: t(() => [
136
- l(h, {
124
+ default: o(() => [
125
+ l(A, {
137
126
  modelValue: e(p).password,
138
- "onUpdate:modelValue": n[2] || (n[2] = (L) => e(p).password = L),
127
+ "onUpdate:modelValue": r[2] || (r[2] = (O) => e(p).password = O),
139
128
  placeholder: e(a)("base.placeholder.input"),
140
129
  autocomplete: "off"
141
130
  }, null, 8, ["modelValue", "placeholder"])
142
131
  ]),
143
132
  _: 1
144
133
  }, 8, ["label", "required"]),
145
- l(y, {
134
+ l(U, {
146
135
  label: e(a)("base.email"),
147
136
  prop: "email"
148
137
  }, {
149
- default: t(() => [
150
- l(h, {
138
+ default: o(() => [
139
+ l(A, {
151
140
  modelValue: e(p).email,
152
- "onUpdate:modelValue": n[3] || (n[3] = (L) => e(p).email = L),
141
+ "onUpdate:modelValue": r[3] || (r[3] = (O) => e(p).email = O),
153
142
  placeholder: e(a)("base.placeholder.input"),
154
143
  autocomplete: "off"
155
144
  }, null, 8, ["modelValue", "placeholder"])
156
145
  ]),
157
146
  _: 1
158
147
  }, 8, ["label"]),
159
- l(y, {
148
+ l(U, {
160
149
  label: e(a)("base.language"),
161
150
  prop: "language"
162
151
  }, {
163
- default: t(() => [
164
- l(f, {
152
+ default: o(() => [
153
+ l(V, {
165
154
  modelValue: e(p).language,
166
- "onUpdate:modelValue": n[4] || (n[4] = (L) => e(p).language = L)
155
+ "onUpdate:modelValue": r[4] || (r[4] = (O) => e(p).language = O)
167
156
  }, {
168
- default: t(() => [
157
+ default: o(() => [
169
158
  l(S, { value: "zh-CN" }, {
170
- default: t(() => n[8] || (n[8] = [
171
- B("zh-CN")
159
+ default: o(() => r[8] || (r[8] = [
160
+ I("zh-CN")
172
161
  ])),
173
162
  _: 1,
174
163
  __: [8]
175
164
  }),
176
165
  l(S, { value: "en-US" }, {
177
- default: t(() => n[9] || (n[9] = [
178
- B("en-US")
166
+ default: o(() => r[9] || (r[9] = [
167
+ I("en-US")
179
168
  ])),
180
169
  _: 1,
181
170
  __: [9]
@@ -186,22 +175,22 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
186
175
  ]),
187
176
  _: 1
188
177
  }, 8, ["label"]),
189
- l(y, {
178
+ l(U, {
190
179
  label: e(a)("menu.Role"),
191
180
  prop: "roles"
192
181
  }, {
193
- default: t(() => [
194
- l(b, {
182
+ default: o(() => [
183
+ l(g, {
195
184
  modelValue: e(p).roles,
196
- "onUpdate:modelValue": n[5] || (n[5] = (L) => e(p).roles = L)
185
+ "onUpdate:modelValue": r[5] || (r[5] = (O) => e(p).roles = O)
197
186
  }, {
198
- default: t(() => [
199
- (q(!0), T(N, null, j(c.value, (L) => (q(), $(w, {
200
- key: L.key,
201
- value: L.key
187
+ default: o(() => [
188
+ (E(!0), K(z, null, W(f.value, (O) => (E(), q(M, {
189
+ key: O.key,
190
+ value: O.key
202
191
  }, {
203
- default: t(() => [
204
- B(G(L.translate), 1)
192
+ default: o(() => [
193
+ I(X(O.translate), 1)
205
194
  ]),
206
195
  _: 2
207
196
  }, 1032, ["value"]))), 128))
@@ -211,14 +200,14 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
211
200
  ]),
212
201
  _: 1
213
202
  }, 8, ["label"]),
214
- l(y, {
203
+ l(U, {
215
204
  label: e(a)("base.remark"),
216
205
  prop: "remark"
217
206
  }, {
218
- default: t(() => [
219
- l(h, {
207
+ default: o(() => [
208
+ l(A, {
220
209
  modelValue: e(p).remark,
221
- "onUpdate:modelValue": n[6] || (n[6] = (L) => e(p).remark = L),
210
+ "onUpdate:modelValue": r[6] || (r[6] = (O) => e(p).remark = O),
222
211
  placeholder: e(a)("base.placeholder.input")
223
212
  }, null, 8, ["modelValue", "placeholder"])
224
213
  ]),
@@ -232,31 +221,31 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
232
221
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
233
222
  };
234
223
  }
235
- }), Me = /* @__PURE__ */ O({
224
+ }), Te = /* @__PURE__ */ D({
236
225
  __name: "index",
237
226
  setup(x) {
238
- const R = {
227
+ const w = {
239
228
  keyword: ""
240
- }, k = [{
229
+ }, y = [{
241
230
  label: a("base.avatar"),
242
231
  prop: "avatar",
243
232
  width: 60,
244
233
  render: ({
245
- row: m
246
- }) => l(ve, {
247
- src: m.avatar
234
+ row: c
235
+ }) => l(Ue, {
236
+ src: c.avatar
248
237
  }, null)
249
238
  }, {
250
239
  label: a("base.user"),
251
240
  width: 200,
252
241
  align: "left",
253
242
  render: ({
254
- row: m
255
- }) => l(d("el-space"), {
243
+ row: c
244
+ }) => l(s("el-space"), {
256
245
  direction: "vertical",
257
246
  alignment: "start"
258
247
  }, {
259
- default: () => [l("div", null, [m.username]), l("div", null, [m.email])]
248
+ default: () => [l("div", null, [c.username]), l("div", null, [c.email])]
260
249
  })
261
250
  }, {
262
251
  label: a("base.phone"),
@@ -284,89 +273,89 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
284
273
  width: 80,
285
274
  align: "center",
286
275
  render: ({
287
- row: m
288
- }) => l(ee, {
289
- onModify: () => g({
290
- key: m.key
276
+ row: c
277
+ }) => l(oe, {
278
+ onModify: () => b({
279
+ key: c.key
291
280
  })
292
281
  }, null)
293
282
  }], {
294
- requesting: M
295
- } = z(ne), {
296
- tableRef: v,
297
- formModalRef: V,
298
- keyword: _,
299
- search: s,
283
+ requesting: k
284
+ } = F(ue), {
285
+ tableRef: h,
286
+ formModalRef: _,
287
+ keyword: m,
288
+ search: d,
300
289
  reset: p,
301
- openFormModal: r,
302
- editFormModal: g
303
- } = P(R);
304
- return (m, i) => {
305
- const U = d("el-input"), C = d("el-space"), E = d("el-page-header"), c = d("el-card");
306
- return q(), $(c, {
290
+ openFormModal: n,
291
+ editFormModal: b
292
+ } = P(w);
293
+ return (c, i) => {
294
+ const R = s("el-input"), v = s("el-space"), C = s("el-page-header"), f = s("el-card");
295
+ return E(), q(f, {
307
296
  class: "basic-card flex-full",
308
297
  "body-class": "flex-1"
309
298
  }, {
310
- header: t(() => [l(E, {
299
+ header: o(() => [l(C, {
311
300
  class: "basic-header"
312
301
  }, {
313
- title: t(() => [l(e(W), {
314
- loading: e(M),
302
+ title: o(() => [l(e(B), {
303
+ loading: e(k),
315
304
  onRefresh: e(p)
316
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
317
- onOpen: e(r)
305
+ }, null, 8, ["loading", "onRefresh"]), l(e(re), {
306
+ onOpen: e(n)
318
307
  }, null, 8, ["onOpen"])]),
319
- content: t(() => [l(C, {
308
+ content: o(() => [l(v, {
320
309
  class: "search-bar"
321
310
  }, {
322
- default: t(() => [l(U, {
311
+ default: o(() => [l(R, {
323
312
  class: "basic-search-input",
324
- modelValue: e(_).keyword,
325
- "onUpdate:modelValue": i[0] || (i[0] = (o) => e(_).keyword = o),
313
+ modelValue: e(m).keyword,
314
+ "onUpdate:modelValue": i[0] || (i[0] = (t) => e(m).keyword = t),
326
315
  placeholder: e(a)("base.placeholder.keyword"),
327
316
  clearable: "",
328
- onKeyup: i[1] || (i[1] = X((o) => e(s)(), ["enter"])),
329
- onClear: i[2] || (i[2] = (o) => e(s)())
330
- }, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
331
- disabled: e(M),
332
- onSearch: i[3] || (i[3] = (o) => e(s)())
317
+ onKeyup: i[1] || (i[1] = le((t) => e(d)(), ["enter"])),
318
+ onClear: i[2] || (i[2] = (t) => e(d)())
319
+ }, null, 8, ["modelValue", "placeholder"]), l(e(j), {
320
+ disabled: e(k),
321
+ onSearch: i[3] || (i[3] = (t) => e(d)())
333
322
  }, null, 8, ["disabled"])]),
334
323
  _: 1
335
324
  })]),
336
325
  _: 1
337
326
  })]),
338
- default: t(() => [l(e(le), {
327
+ default: o(() => [l(e(te), {
339
328
  ref_key: "tableRef",
340
- ref: v,
329
+ ref: h,
341
330
  size: "small",
342
- columns: k,
343
- url: e(ne).urls[e(ae)],
344
- "search-param": e(_),
331
+ columns: y,
332
+ url: e(ue).urls[e(ne)],
333
+ "search-param": e(m),
345
334
  autoSearch: ""
346
- }, null, 8, ["url", "search-param"]), l(Ue, {
335
+ }, null, 8, ["url", "search-param"]), l(Ce, {
347
336
  ref_key: "formModalRef",
348
- ref: V,
337
+ ref: _,
349
338
  onRefresh: e(p)
350
339
  }, null, 8, ["onRefresh"])]),
351
340
  _: 1
352
341
  });
353
342
  };
354
343
  }
355
- }), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
344
+ }), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
356
345
  __proto__: null,
357
- default: Me
358
- }, Symbol.toStringTag, { value: "Module" })), H = Z("translation", {}, "key"), Re = /* @__PURE__ */ O({
346
+ default: Te
347
+ }, Symbol.toStringTag, { value: "Module" })), J = ae("translation", {}, "key"), qe = /* @__PURE__ */ D({
359
348
  __name: "LangFormModal",
360
349
  emits: ["refresh"],
361
- setup(x, { expose: R, emit: k }) {
362
- const M = k, v = {
350
+ setup(x, { expose: w, emit: y }) {
351
+ const k = y, h = {
363
352
  id: 0,
364
353
  key: "",
365
354
  module: "",
366
355
  language: "",
367
356
  result: "",
368
357
  remark: ""
369
- }, V = {
358
+ }, _ = {
370
359
  module: [
371
360
  {
372
361
  required: !0,
@@ -395,91 +384,80 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
395
384
  trigger: "blur"
396
385
  }
397
386
  ]
398
- }, {
399
- modal: _,
400
- title: s,
401
- form: p,
402
- formData: r,
403
- requesting: g,
404
- executing: m,
405
- open: i,
406
- modify: U,
407
- submit: C,
408
- closed: E
409
- } = I(M, v, H);
410
- return R({
387
+ }, { modal: m, title: d, form: p, formData: n, requesting: b, executing: c, open: i, modify: R, submit: v, closed: C } = G(k, h, J);
388
+ return w({
411
389
  open: i,
412
- modify: U
413
- }), (c, o) => {
414
- const u = d("el-input"), n = d("el-form-item"), h = d("el-radio-button"), y = d("el-radio-group"), S = d("el-form");
415
- return q(), $(e(Y), {
416
- modelValue: e(_),
417
- "onUpdate:modelValue": o[5] || (o[5] = (f) => D(_) ? _.value = f : null),
418
- title: e(s)(),
390
+ modify: R
391
+ }), (f, t) => {
392
+ const u = s("el-input"), r = s("el-form-item"), A = s("el-radio-button"), U = s("el-radio-group"), S = s("el-form");
393
+ return E(), q(e(Q), {
394
+ modelValue: e(m),
395
+ "onUpdate:modelValue": t[5] || (t[5] = (V) => N(m) ? m.value = V : null),
396
+ title: e(d)(),
419
397
  width: "600px",
420
- executing: e(m),
421
- onClosed: e(E),
422
- onSubmit: e(C)
398
+ executing: e(c),
399
+ onClosed: e(C),
400
+ onSubmit: e(v)
423
401
  }, {
424
- default: t(() => [
402
+ default: o(() => [
425
403
  l(S, {
426
404
  ref_key: "form",
427
405
  ref: p,
428
- model: e(r),
406
+ model: e(n),
429
407
  "label-width": "auto",
430
- rules: V,
431
- disabled: e(g) || e(m)
408
+ rules: _,
409
+ disabled: e(b) || e(c)
432
410
  }, {
433
- default: t(() => [
434
- l(n, {
411
+ default: o(() => [
412
+ l(r, {
435
413
  label: e(a)("language.module"),
436
414
  prop: "module",
437
415
  required: ""
438
416
  }, {
439
- default: t(() => [
417
+ default: o(() => [
440
418
  l(u, {
441
- modelValue: e(r).module,
442
- "onUpdate:modelValue": o[0] || (o[0] = (f) => e(r).module = f),
419
+ modelValue: e(n).module,
420
+ "onUpdate:modelValue": t[0] || (t[0] = (V) => e(n).module = V),
443
421
  placeholder: e(a)("language.placeholder.module")
444
422
  }, null, 8, ["modelValue", "placeholder"])
445
423
  ]),
446
424
  _: 1
447
425
  }, 8, ["label"]),
448
- l(n, {
426
+ l(r, {
449
427
  label: e(a)("language.key"),
450
428
  prop: "key",
451
429
  required: ""
452
430
  }, {
453
- default: t(() => [
431
+ default: o(() => [
454
432
  l(u, {
455
- modelValue: e(r).key,
456
- "onUpdate:modelValue": o[1] || (o[1] = (f) => e(r).key = f),
433
+ modelValue: e(n).key,
434
+ "onUpdate:modelValue": t[1] || (t[1] = (V) => e(n).key = V),
457
435
  placeholder: e(a)("language.placeholder.key")
458
436
  }, null, 8, ["modelValue", "placeholder"])
459
437
  ]),
460
438
  _: 1
461
439
  }, 8, ["label"]),
462
- l(n, {
440
+ l(r, {
463
441
  label: e(a)("language.language"),
464
442
  prop: "language",
465
443
  required: ""
466
444
  }, {
467
- default: t(() => [
468
- l(y, {
469
- modelValue: e(r).language,
470
- "onUpdate:modelValue": o[2] || (o[2] = (f) => e(r).language = f)
445
+ default: o(() => [
446
+ l(U, {
447
+ modelValue: e(n).language,
448
+ "onUpdate:modelValue": t[2] || (t[2] = (V) => e(n).language = V)
471
449
  }, {
472
- default: t(() => [
473
- l(h, { label: "zh-CN" }, {
474
- default: t(() => o[6] || (o[6] = [
475
- B("zh-CN")
450
+ default: o(() => [
451
+ l(A, { label: "zh-CN" }, {
452
+ default: o(() => t[6] || (t[6] = [
453
+ I("zh-CN")
476
454
  ])),
477
455
  _: 1,
478
456
  __: [6]
479
457
  }),
480
- l(h, { label: "en-US" }, {
481
- default: t(() => o[7] || (o[7] = [
482
- B("en-US")
458
+ l(A, { label: "en-US" }, {
459
+ default: o(() => t[7] || (t[7] = [
460
+ I("en-US")
483
461
  ])),
484
462
  _: 1,
485
463
  __: [7]
@@ -490,28 +468,28 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
490
468
  ]),
491
469
  _: 1
492
470
  }, 8, ["label"]),
493
- l(n, {
471
+ l(r, {
494
472
  label: e(a)("language.result"),
495
473
  prop: "result",
496
474
  required: ""
497
475
  }, {
498
- default: t(() => [
476
+ default: o(() => [
499
477
  l(u, {
500
- modelValue: e(r).result,
501
- "onUpdate:modelValue": o[3] || (o[3] = (f) => e(r).result = f),
478
+ modelValue: e(n).result,
479
+ "onUpdate:modelValue": t[3] || (t[3] = (V) => e(n).result = V),
502
480
  placeholder: e(a)("language.placeholder.result")
503
481
  }, null, 8, ["modelValue", "placeholder"])
504
482
  ]),
505
483
  _: 1
506
484
  }, 8, ["label"]),
507
- l(n, {
485
+ l(r, {
508
486
  label: e(a)("base.remark"),
509
487
  prop: "remark"
510
488
  }, {
511
- default: t(() => [
489
+ default: o(() => [
512
490
  l(u, {
513
- modelValue: e(r).remark,
514
- "onUpdate:modelValue": o[4] || (o[4] = (f) => e(r).remark = f),
491
+ modelValue: e(n).remark,
492
+ "onUpdate:modelValue": t[4] || (t[4] = (V) => e(n).remark = V),
515
493
  placeholder: e(a)("base.placeholder.input")
516
494
  }, null, 8, ["modelValue", "placeholder"])
517
495
  ]),
@@ -525,13 +503,13 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
525
503
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
526
504
  };
527
505
  }
528
- }), Ce = /* @__PURE__ */ O({
506
+ }), De = /* @__PURE__ */ D({
529
507
  __name: "index",
530
508
  setup(x) {
531
- const R = {
509
+ const w = {
532
510
  keyword: "",
533
511
  status: 0
534
- }, k = [{
512
+ }, y = [{
535
513
  label: a("base.module"),
536
514
  prop: "module",
537
515
  width: 120
@@ -555,7 +533,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
555
533
  props: {
556
534
  activeValue: 1,
557
535
  inactiveValue: 2,
558
- api: H.urls[ie],
536
+ api: J.urls[be],
559
537
  refresh: !0
560
538
  }
561
539
  }, {
@@ -576,109 +554,109 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
576
554
  width: 80,
577
555
  align: "center",
578
556
  render: ({
579
- row: m
580
- }) => l(ee, {
581
- onModify: () => g({
582
- id: m.id
557
+ row: c
558
+ }) => l(oe, {
559
+ onModify: () => b({
560
+ id: c.id
583
561
  })
584
562
  }, null)
585
563
  }], {
586
- requesting: M
587
- } = z(H), {
588
- tableRef: v,
589
- formModalRef: V,
590
- keyword: _,
591
- search: s,
564
+ requesting: k
565
+ } = F(J), {
566
+ tableRef: h,
567
+ formModalRef: _,
568
+ keyword: m,
569
+ search: d,
592
570
  reset: p,
593
- openFormModal: r,
594
- editFormModal: g
595
- } = P(R);
596
- return (m, i) => {
597
- const U = d("el-input"), C = d("el-radio-button"), E = d("el-radio-group"), c = d("el-space"), o = d("el-page-header"), u = d("el-card");
598
- return q(), $(u, {
571
+ openFormModal: n,
572
+ editFormModal: b
573
+ } = P(w);
574
+ return (c, i) => {
575
+ const R = s("el-input"), v = s("el-radio-button"), C = s("el-radio-group"), f = s("el-space"), t = s("el-page-header"), u = s("el-card");
576
+ return E(), q(u, {
599
577
  class: "basic-card flex-full",
600
578
  "body-class": "flex-1"
601
579
  }, {
602
- header: t(() => [l(o, {
580
+ header: o(() => [l(t, {
603
581
  class: "basic-header"
604
582
  }, {
605
- title: t(() => [l(e(W), {
606
- loading: e(M),
583
+ title: o(() => [l(e(B), {
584
+ loading: e(k),
607
585
  onRefresh: e(p)
608
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
609
- onOpen: e(r)
586
+ }, null, 8, ["loading", "onRefresh"]), l(e(re), {
587
+ onOpen: e(n)
610
588
  }, null, 8, ["onOpen"])]),
611
- content: t(() => [l(c, {
589
+ content: o(() => [l(f, {
612
590
  class: "search-bar"
613
591
  }, {
614
- default: t(() => [l(U, {
592
+ default: o(() => [l(R, {
615
593
  class: "basic-search-input",
616
- modelValue: e(_).keyword,
617
- "onUpdate:modelValue": i[0] || (i[0] = (n) => e(_).keyword = n),
594
+ modelValue: e(m).keyword,
595
+ "onUpdate:modelValue": i[0] || (i[0] = (r) => e(m).keyword = r),
618
596
  placeholder: e(a)("base.placeholder.keyword"),
619
597
  clearable: "",
620
- onKeyup: i[1] || (i[1] = X((n) => e(s)(), ["enter"])),
621
- onClear: i[2] || (i[2] = (n) => e(s)())
622
- }, null, 8, ["modelValue", "placeholder"]), l(E, {
623
- modelValue: e(_).status,
624
- "onUpdate:modelValue": i[3] || (i[3] = (n) => e(_).status = n),
625
- onChange: i[4] || (i[4] = (n) => e(s)())
598
+ onKeyup: i[1] || (i[1] = le((r) => e(d)(), ["enter"])),
599
+ onClear: i[2] || (i[2] = (r) => e(d)())
600
+ }, null, 8, ["modelValue", "placeholder"]), l(C, {
601
+ modelValue: e(m).status,
602
+ "onUpdate:modelValue": i[3] || (i[3] = (r) => e(m).status = r),
603
+ onChange: i[4] || (i[4] = (r) => e(d)())
626
604
  }, {
627
- default: t(() => [(q(), T(N, null, j([0, 1, 2], (n) => l(C, {
628
- key: n,
629
- label: e(a)(`base.DISABLE_ENABLE.${n}`),
630
- value: n
605
+ default: o(() => [(E(), K(z, null, W([0, 1, 2], (r) => l(v, {
606
+ key: r,
607
+ label: e(a)(`base.DISABLE_ENABLE.${r}`),
608
+ value: r
631
609
  }, null, 8, ["label", "value"])), 64))]),
632
610
  _: 1
633
- }, 8, ["modelValue"]), l(e(oe), {
634
- disabled: e(M),
635
- onSearch: i[5] || (i[5] = (n) => e(s)())
611
+ }, 8, ["modelValue"]), l(e(j), {
612
+ disabled: e(k),
613
+ onSearch: i[5] || (i[5] = (r) => e(d)())
636
614
  }, null, 8, ["disabled"])]),
637
615
  _: 1
638
616
  })]),
639
617
  _: 1
640
618
  })]),
641
- default: t(() => [l(e(le), {
619
+ default: o(() => [l(e(te), {
642
620
  ref_key: "tableRef",
643
- ref: v,
621
+ ref: h,
644
622
  size: "small",
645
- columns: k,
646
- url: e(H).urls[e(ae)],
647
- "search-param": e(_),
623
+ columns: y,
624
+ url: e(J).urls[e(ne)],
625
+ "search-param": e(m),
648
626
  autoSearch: ""
649
- }, null, 8, ["url", "search-param"]), l(Re, {
627
+ }, null, 8, ["url", "search-param"]), l(qe, {
650
628
  ref_key: "formModalRef",
651
- ref: V,
629
+ ref: _,
652
630
  onRefresh: e(p)
653
631
  }, null, 8, ["onRefresh"])]),
654
632
  _: 1
655
633
  });
656
634
  };
657
635
  }
658
- }), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
636
+ }), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
659
637
  __proto__: null,
660
- default: Ce
661
- }, Symbol.toStringTag, { value: "Module" })), de = {
638
+ default: De
639
+ }, Symbol.toStringTag, { value: "Module" })), ie = {
662
640
  tops: "tops",
663
641
  rules: "rules"
664
- }, F = we.createAutoApi("menu", de, "id", Object.keys(de), [], ["TOP_MENU_LIST", "MENU_LIST"]), ce = Z("rule", {}, "key");
642
+ }, $ = fe.createAutoApi("menu", ie, "id", Object.keys(ie), [], ["TOP_MENU_LIST", "MENU_LIST"]), he = ae("rule", {}, "key");
665
643
  /*! Element Plus Icons Vue v2.3.1 */
666
- var qe = /* @__PURE__ */ O({
644
+ var Fe = /* @__PURE__ */ D({
667
645
  name: "Key",
668
646
  __name: "key",
669
647
  setup(x) {
670
- return (R, k) => (q(), T("svg", {
648
+ return (w, y) => (E(), K("svg", {
671
649
  xmlns: "http://www.w3.org/2000/svg",
672
650
  viewBox: "0 0 1024 1024"
673
651
  }, [
674
- K("path", {
652
+ Y("path", {
675
653
  fill: "currentColor",
676
654
  d: "M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"
677
655
  })
678
656
  ]));
679
657
  }
680
- }), Ee = qe;
681
- const Le = /* @__PURE__ */ O({
658
+ }), ze = Fe;
659
+ const Ke = /* @__PURE__ */ D({
682
660
  __name: "TopMenuSelect",
683
661
  props: {
684
662
  modelValue: {
@@ -692,49 +670,49 @@ const Le = /* @__PURE__ */ O({
692
670
  },
693
671
  emits: ["update:modelValue", "change"],
694
672
  setup(x, {
695
- emit: R
673
+ emit: w
696
674
  }) {
697
- const k = R, M = x, {
698
- requesting: v
699
- } = z(F), {
700
- value: V,
701
- options: _,
702
- change: s,
675
+ const y = w, k = x, {
676
+ requesting: h
677
+ } = F($), {
678
+ value: _,
679
+ options: m,
680
+ change: d,
703
681
  refresh: p,
704
- filterOptions: r
705
- } = ue(re(M, "modelValue"), k, {
682
+ filterOptions: n
683
+ } = de(se(k, "modelValue"), y, {
706
684
  key: "TOP_MENU_LIST",
707
- api: F,
708
- url: F.urls.tops,
685
+ api: $,
686
+ url: $.urls.tops,
709
687
  isArray: !0
710
688
  });
711
- return (g, m) => {
712
- const i = d("el-select-v2");
713
- return q(), $(i, {
689
+ return (b, c) => {
690
+ const i = s("el-select-v2");
691
+ return E(), q(i, {
714
692
  class: "w-full",
715
- modelValue: e(V),
716
- "onUpdate:modelValue": m[1] || (m[1] = (U) => D(V) ? V.value = U : null),
717
- options: e(_),
693
+ modelValue: e(_),
694
+ "onUpdate:modelValue": c[1] || (c[1] = (R) => N(_) ? _.value = R : null),
695
+ options: e(m),
718
696
  multiple: x.multiple,
719
- disabled: e(v),
697
+ disabled: e(h),
720
698
  placeholder: e(a)("base.placeholder.select"),
721
699
  filterable: "",
722
- filterOptions: e(r),
723
- onChange: e(s)
700
+ filterOptions: e(n),
701
+ onChange: e(d)
724
702
  }, {
725
- prefix: t(() => [l(e(me), {
726
- loading: e(v),
727
- onRefresh: m[0] || (m[0] = (U) => e(p)(!0))
703
+ prefix: o(() => [l(e(ge), {
704
+ loading: e(h),
705
+ onRefresh: c[0] || (c[0] = (R) => e(p)(!0))
728
706
  }, null, 8, ["loading"])]),
729
707
  _: 1
730
708
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
731
709
  };
732
710
  }
733
- }), $e = /* @__PURE__ */ O({
711
+ }), Pe = /* @__PURE__ */ D({
734
712
  __name: "MenuFormModal",
735
713
  emits: ["refresh"],
736
- setup(x, { expose: R, emit: k }) {
737
- const M = k, v = {
714
+ setup(x, { expose: w, emit: y }) {
715
+ const k = y, h = {
738
716
  id: 0,
739
717
  menu_id: 0,
740
718
  module: "",
@@ -755,7 +733,7 @@ const Le = /* @__PURE__ */ O({
755
733
  keep_alive: !1,
756
734
  link: !1
757
735
  }
758
- }, V = {
736
+ }, _ = {
759
737
  sort: [
760
738
  {
761
739
  required: !0,
@@ -799,58 +777,47 @@ const Le = /* @__PURE__ */ O({
799
777
  trigger: "blur"
800
778
  }
801
779
  ]
802
- }, {
803
- modal: _,
804
- title: s,
805
- form: p,
806
- formData: r,
807
- requesting: g,
808
- executing: m,
780
+ }, { modal: m, title: d, form: p, formData: n, requesting: b, executing: c, open: i, modify: R, submit: v, closed: C } = G(k, h, $);
781
+ return w({
809
782
  open: i,
810
- modify: U,
811
- submit: C,
812
- closed: E
813
- } = I(M, v, F);
814
- return R({
815
- open: i,
816
- modify: U
817
- }), (c, o) => {
818
- const u = d("el-form-item"), n = d("el-col"), h = d("el-input-number"), y = d("el-row"), S = d("el-input"), f = d("el-switch"), w = d("el-form");
819
- return q(), $(e(Y), {
820
- modelValue: e(_),
821
- "onUpdate:modelValue": o[17] || (o[17] = (b) => D(_) ? _.value = b : null),
822
- title: e(s)(),
783
+ modify: R
784
+ }), (f, t) => {
785
+ const u = s("el-form-item"), r = s("el-col"), A = s("el-input-number"), U = s("el-row"), S = s("el-input"), V = s("el-switch"), M = s("el-form");
786
+ return E(), q(e(Q), {
787
+ modelValue: e(m),
788
+ "onUpdate:modelValue": t[17] || (t[17] = (g) => N(m) ? m.value = g : null),
789
+ title: e(d)(),
823
790
  width: "1000px",
824
- executing: e(m),
825
- onClosed: e(E),
826
- onSubmit: e(C)
791
+ executing: e(c),
792
+ onClosed: e(C),
793
+ onSubmit: e(v)
827
794
  }, {
828
- default: t(() => [
829
- l(w, {
795
+ default: o(() => [
796
+ l(M, {
830
797
  ref_key: "form",
831
798
  ref: p,
832
- model: e(r),
799
+ model: e(n),
833
800
  "label-width": "auto",
834
- rules: V,
835
- disabled: e(g) || e(m)
801
+ rules: _,
802
+ disabled: e(b) || e(c)
836
803
  }, {
837
- default: t(() => [
838
- l(y, { gutter: 20 }, {
839
- default: t(() => [
840
- l(n, { span: 12 }, {
841
- default: t(() => [
842
- l(y, { gutter: 10 }, {
843
- default: t(() => [
844
- l(n, { span: 12 }, {
845
- default: t(() => [
804
+ default: o(() => [
805
+ l(U, { gutter: 20 }, {
806
+ default: o(() => [
807
+ l(r, { span: 12 }, {
808
+ default: o(() => [
809
+ l(U, { gutter: 10 }, {
810
+ default: o(() => [
811
+ l(r, { span: 12 }, {
812
+ default: o(() => [
846
813
  l(u, {
847
814
  label: e(a)("base.parent"),
848
815
  prop: "menu_id"
849
816
  }, {
850
- default: t(() => [
851
- l(Le, {
852
- modelValue: e(r).menu_id,
853
- "onUpdate:modelValue": o[0] || (o[0] = (b) => e(r).menu_id = b)
817
+ default: o(() => [
818
+ l(Ke, {
819
+ modelValue: e(n).menu_id,
820
+ "onUpdate:modelValue": t[0] || (t[0] = (g) => e(n).menu_id = g)
854
821
  }, null, 8, ["modelValue"])
855
822
  ]),
856
823
  _: 1
@@ -858,17 +825,17 @@ const Le = /* @__PURE__ */ O({
858
825
  ]),
859
826
  _: 1
860
827
  }),
861
- l(n, { span: 12 }, {
862
- default: t(() => [
828
+ l(r, { span: 12 }, {
829
+ default: o(() => [
863
830
  l(u, {
864
831
  label: e(a)("base.sort"),
865
832
  prop: "sort"
866
833
  }, {
867
- default: t(() => [
868
- l(h, {
834
+ default: o(() => [
835
+ l(A, {
869
836
  class: "w-full",
870
- modelValue: e(r).sort,
871
- "onUpdate:modelValue": o[1] || (o[1] = (b) => e(r).sort = b),
837
+ modelValue: e(n).sort,
838
+ "onUpdate:modelValue": t[1] || (t[1] = (g) => e(n).sort = g),
872
839
  min: 0,
873
840
  placeholder: e(a)("base.placeholder.input")
874
841
  }, null, 8, ["modelValue", "placeholder"])
@@ -885,10 +852,10 @@ const Le = /* @__PURE__ */ O({
885
852
  label: e(a)("menu.module"),
886
853
  prop: "module"
887
854
  }, {
888
- default: t(() => [
855
+ default: o(() => [
889
856
  l(S, {
890
- modelValue: e(r).module,
891
- "onUpdate:modelValue": o[2] || (o[2] = (b) => e(r).module = b),
857
+ modelValue: e(n).module,
858
+ "onUpdate:modelValue": t[2] || (t[2] = (g) => e(n).module = g),
892
859
  placeholder: e(a)("base.placeholder.input")
893
860
  }, null, 8, ["modelValue", "placeholder"])
894
861
  ]),
@@ -898,10 +865,10 @@ const Le = /* @__PURE__ */ O({
898
865
  label: e(a)("base.name"),
899
866
  prop: "name"
900
867
  }, {
901
- default: t(() => [
868
+ default: o(() => [
902
869
  l(S, {
903
- modelValue: e(r).name,
904
- "onUpdate:modelValue": o[3] || (o[3] = (b) => e(r).name = b),
870
+ modelValue: e(n).name,
871
+ "onUpdate:modelValue": t[3] || (t[3] = (g) => e(n).name = g),
905
872
  placeholder: e(a)("base.placeholder.input")
906
873
  }, null, 8, ["modelValue", "placeholder"])
907
874
  ]),
@@ -911,10 +878,10 @@ const Le = /* @__PURE__ */ O({
911
878
  label: e(a)("base.en_name"),
912
879
  prop: "en_name"
913
880
  }, {
914
- default: t(() => [
881
+ default: o(() => [
915
882
  l(S, {
916
- modelValue: e(r).en_name,
917
- "onUpdate:modelValue": o[4] || (o[4] = (b) => e(r).en_name = b),
883
+ modelValue: e(n).en_name,
884
+ "onUpdate:modelValue": t[4] || (t[4] = (g) => e(n).en_name = g),
918
885
  placeholder: e(a)("base.placeholder.input")
919
886
  }, null, 8, ["modelValue", "placeholder"])
920
887
  ]),
@@ -924,10 +891,10 @@ const Le = /* @__PURE__ */ O({
924
891
  label: e(a)("menu.component"),
925
892
  prop: "component"
926
893
  }, {
927
- default: t(() => [
894
+ default: o(() => [
928
895
  l(S, {
929
- modelValue: e(r).component,
930
- "onUpdate:modelValue": o[5] || (o[5] = (b) => e(r).component = b),
896
+ modelValue: e(n).component,
897
+ "onUpdate:modelValue": t[5] || (t[5] = (g) => e(n).component = g),
931
898
  placeholder: e(a)("base.placeholder.input")
932
899
  }, null, 8, ["modelValue", "placeholder"])
933
900
  ]),
@@ -937,10 +904,10 @@ const Le = /* @__PURE__ */ O({
937
904
  label: e(a)("base.url"),
938
905
  prop: "url"
939
906
  }, {
940
- default: t(() => [
907
+ default: o(() => [
941
908
  l(S, {
942
- modelValue: e(r).url,
943
- "onUpdate:modelValue": o[6] || (o[6] = (b) => e(r).url = b),
909
+ modelValue: e(n).url,
910
+ "onUpdate:modelValue": t[6] || (t[6] = (g) => e(n).url = g),
944
911
  placeholder: e(a)("base.placeholder.input")
945
912
  }, null, 8, ["modelValue", "placeholder"])
946
913
  ]),
@@ -950,10 +917,10 @@ const Le = /* @__PURE__ */ O({
950
917
  label: e(a)("base.remark"),
951
918
  prop: "remark"
952
919
  }, {
953
- default: t(() => [
920
+ default: o(() => [
954
921
  l(S, {
955
- modelValue: e(r).remark,
956
- "onUpdate:modelValue": o[7] || (o[7] = (b) => e(r).remark = b),
922
+ modelValue: e(n).remark,
923
+ "onUpdate:modelValue": t[7] || (t[7] = (g) => e(n).remark = g),
957
924
  placeholder: e(a)("base.placeholder.input")
958
925
  }, null, 8, ["modelValue", "placeholder"])
959
926
  ]),
@@ -962,24 +929,24 @@ const Le = /* @__PURE__ */ O({
962
929
  ]),
963
930
  _: 1
964
931
  }),
965
- l(n, { span: 12 }, {
966
- default: t(() => [
932
+ l(r, { span: 12 }, {
933
+ default: o(() => [
967
934
  l(u, {
968
935
  label: e(a)("base.icon"),
969
936
  prop: "icon"
970
937
  }, {
971
- default: t(() => [
938
+ default: o(() => [
972
939
  l(S, {
973
- modelValue: e(r).icon,
974
- "onUpdate:modelValue": o[8] || (o[8] = (b) => e(r).icon = b),
940
+ modelValue: e(n).icon,
941
+ "onUpdate:modelValue": t[8] || (t[8] = (g) => e(n).icon = g),
975
942
  placeholder: e(a)("base.placeholder.input"),
976
- onInput: o[9] || (o[9] = (b) => {
977
- e(r).meta.icon = b;
943
+ onInput: t[9] || (t[9] = (g) => {
944
+ e(n).meta.icon = g;
978
945
  })
979
946
  }, {
980
- prepend: t(() => [
981
- K("span", {
982
- class: pe("iconfont " + e(r).icon)
947
+ prepend: o(() => [
948
+ Y("span", {
949
+ class: _e("iconfont " + e(n).icon)
983
950
  }, null, 2)
984
951
  ]),
985
952
  _: 1
@@ -991,10 +958,10 @@ const Le = /* @__PURE__ */ O({
991
958
  label: e(a)("base.title"),
992
959
  prop: "meta.title"
993
960
  }, {
994
- default: t(() => [
961
+ default: o(() => [
995
962
  l(S, {
996
- modelValue: e(r).meta.title,
997
- "onUpdate:modelValue": o[10] || (o[10] = (b) => e(r).meta.title = b),
963
+ modelValue: e(n).meta.title,
964
+ "onUpdate:modelValue": t[10] || (t[10] = (g) => e(n).meta.title = g),
998
965
  placeholder: e(a)("base.placeholder.input")
999
966
  }, null, 8, ["modelValue", "placeholder"])
1000
967
  ]),
@@ -1004,27 +971,27 @@ const Le = /* @__PURE__ */ O({
1004
971
  label: e(a)("menu.active"),
1005
972
  prop: "meta.active"
1006
973
  }, {
1007
- default: t(() => [
974
+ default: o(() => [
1008
975
  l(S, {
1009
- modelValue: e(r).meta.active,
1010
- "onUpdate:modelValue": o[11] || (o[11] = (b) => e(r).meta.active = b),
976
+ modelValue: e(n).meta.active,
977
+ "onUpdate:modelValue": t[11] || (t[11] = (g) => e(n).meta.active = g),
1011
978
  placeholder: e(a)("base.placeholder.input")
1012
979
  }, null, 8, ["modelValue", "placeholder"])
1013
980
  ]),
1014
981
  _: 1
1015
982
  }, 8, ["label"]),
1016
- l(y, null, {
1017
- default: t(() => [
1018
- l(n, { span: 12 }, {
1019
- default: t(() => [
983
+ l(U, null, {
984
+ default: o(() => [
985
+ l(r, { span: 12 }, {
986
+ default: o(() => [
1020
987
  l(u, {
1021
988
  label: e(a)("menu.link"),
1022
989
  prop: "meta.link"
1023
990
  }, {
1024
- default: t(() => [
1025
- l(f, {
1026
- modelValue: e(r).meta.link,
1027
- "onUpdate:modelValue": o[12] || (o[12] = (b) => e(r).meta.link = b)
991
+ default: o(() => [
992
+ l(V, {
993
+ modelValue: e(n).meta.link,
994
+ "onUpdate:modelValue": t[12] || (t[12] = (g) => e(n).meta.link = g)
1028
995
  }, null, 8, ["modelValue"])
1029
996
  ]),
1030
997
  _: 1
@@ -1032,16 +999,16 @@ const Le = /* @__PURE__ */ O({
1032
999
  ]),
1033
1000
  _: 1
1034
1001
  }),
1035
- l(n, { span: 12 }, {
1036
- default: t(() => [
1002
+ l(r, { span: 12 }, {
1003
+ default: o(() => [
1037
1004
  l(u, {
1038
1005
  label: e(a)("menu.keep_alive"),
1039
1006
  prop: "meta.keep_alive"
1040
1007
  }, {
1041
- default: t(() => [
1042
- l(f, {
1043
- modelValue: e(r).meta.keep_alive,
1044
- "onUpdate:modelValue": o[13] || (o[13] = (b) => e(r).meta.keep_alive = b)
1008
+ default: o(() => [
1009
+ l(V, {
1010
+ modelValue: e(n).meta.keep_alive,
1011
+ "onUpdate:modelValue": t[13] || (t[13] = (g) => e(n).meta.keep_alive = g)
1045
1012
  }, null, 8, ["modelValue"])
1046
1013
  ]),
1047
1014
  _: 1
@@ -1049,16 +1016,16 @@ const Le = /* @__PURE__ */ O({
1049
1016
  ]),
1050
1017
  _: 1
1051
1018
  }),
1052
- l(n, { span: 12 }, {
1053
- default: t(() => [
1019
+ l(r, { span: 12 }, {
1020
+ default: o(() => [
1054
1021
  l(u, {
1055
1022
  label: e(a)("menu.hide"),
1056
1023
  prop: "meta.hide"
1057
1024
  }, {
1058
- default: t(() => [
1059
- l(f, {
1060
- modelValue: e(r).meta.hide,
1061
- "onUpdate:modelValue": o[14] || (o[14] = (b) => e(r).meta.hide = b)
1025
+ default: o(() => [
1026
+ l(V, {
1027
+ modelValue: e(n).meta.hide,
1028
+ "onUpdate:modelValue": t[14] || (t[14] = (g) => e(n).meta.hide = g)
1062
1029
  }, null, 8, ["modelValue"])
1063
1030
  ]),
1064
1031
  _: 1
@@ -1066,16 +1033,16 @@ const Le = /* @__PURE__ */ O({
1066
1033
  ]),
1067
1034
  _: 1
1068
1035
  }),
1069
- l(n, { span: 12 }, {
1070
- default: t(() => [
1036
+ l(r, { span: 12 }, {
1037
+ default: o(() => [
1071
1038
  l(u, {
1072
1039
  label: e(a)("menu.full"),
1073
1040
  prop: "meta.full"
1074
1041
  }, {
1075
- default: t(() => [
1076
- l(f, {
1077
- modelValue: e(r).meta.full,
1078
- "onUpdate:modelValue": o[15] || (o[15] = (b) => e(r).meta.full = b)
1042
+ default: o(() => [
1043
+ l(V, {
1044
+ modelValue: e(n).meta.full,
1045
+ "onUpdate:modelValue": t[15] || (t[15] = (g) => e(n).meta.full = g)
1079
1046
  }, null, 8, ["modelValue"])
1080
1047
  ]),
1081
1048
  _: 1
@@ -1083,16 +1050,16 @@ const Le = /* @__PURE__ */ O({
1083
1050
  ]),
1084
1051
  _: 1
1085
1052
  }),
1086
- l(n, { span: 12 }, {
1087
- default: t(() => [
1053
+ l(r, { span: 12 }, {
1054
+ default: o(() => [
1088
1055
  l(u, {
1089
1056
  label: e(a)("menu.affix"),
1090
1057
  prop: "meta.affix"
1091
1058
  }, {
1092
- default: t(() => [
1093
- l(f, {
1094
- modelValue: e(r).meta.affix,
1095
- "onUpdate:modelValue": o[16] || (o[16] = (b) => e(r).meta.affix = b)
1059
+ default: o(() => [
1060
+ l(V, {
1061
+ modelValue: e(n).meta.affix,
1062
+ "onUpdate:modelValue": t[16] || (t[16] = (g) => e(n).meta.affix = g)
1096
1063
  }, null, 8, ["modelValue"])
1097
1064
  ]),
1098
1065
  _: 1
@@ -1117,7 +1084,7 @@ const Le = /* @__PURE__ */ O({
1117
1084
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
1118
1085
  };
1119
1086
  }
1120
- }), Oe = /* @__PURE__ */ O({
1087
+ }), Be = /* @__PURE__ */ D({
1121
1088
  __name: "MenuSelect",
1122
1089
  props: {
1123
1090
  modelValue: {
@@ -1131,56 +1098,56 @@ const Le = /* @__PURE__ */ O({
1131
1098
  },
1132
1099
  emits: ["update:modelValue", "change"],
1133
1100
  setup(x, {
1134
- emit: R
1101
+ emit: w
1135
1102
  }) {
1136
- const k = R, M = x, {
1137
- requesting: v
1138
- } = z(F), {
1139
- value: V,
1140
- options: _,
1141
- change: s,
1103
+ const y = w, k = x, {
1104
+ requesting: h
1105
+ } = F($), {
1106
+ value: _,
1107
+ options: m,
1108
+ change: d,
1142
1109
  refresh: p,
1143
- filterOptions: r
1144
- } = ue(re(M, "modelValue"), k, {
1110
+ filterOptions: n
1111
+ } = de(se(k, "modelValue"), y, {
1145
1112
  key: "MENU_LIST",
1146
- api: F,
1113
+ api: $,
1147
1114
  isArray: !0
1148
1115
  });
1149
- return (g, m) => {
1150
- const i = d("el-space"), U = d("el-select-v2");
1151
- return q(), $(U, {
1116
+ return (b, c) => {
1117
+ const i = s("el-space"), R = s("el-select-v2");
1118
+ return E(), q(R, {
1152
1119
  class: "w-full",
1153
- modelValue: e(V),
1154
- "onUpdate:modelValue": m[1] || (m[1] = (C) => D(V) ? V.value = C : null),
1155
- options: e(_),
1120
+ modelValue: e(_),
1121
+ "onUpdate:modelValue": c[1] || (c[1] = (v) => N(_) ? _.value = v : null),
1122
+ options: e(m),
1156
1123
  multiple: x.multiple,
1157
- disabled: e(v),
1124
+ disabled: e(h),
1158
1125
  placeholder: e(a)("base.placeholder.select"),
1159
1126
  filterable: "",
1160
- filterOptions: e(r),
1161
- onChange: e(s)
1127
+ filterOptions: e(n),
1128
+ onChange: e(d)
1162
1129
  }, {
1163
- prefix: t(() => [l(e(me), {
1164
- loading: e(v),
1165
- onRefresh: m[0] || (m[0] = (C) => e(p)(!0))
1130
+ prefix: o(() => [l(e(ge), {
1131
+ loading: e(h),
1132
+ onRefresh: c[0] || (c[0] = (v) => e(p)(!0))
1166
1133
  }, null, 8, ["loading"])]),
1167
- default: t(({
1168
- item: C
1134
+ default: o(({
1135
+ item: v
1169
1136
  }) => [l(i, null, {
1170
- default: t(() => [K("i", {
1171
- class: pe(`icon iconfont ${C.icon}`)
1172
- }, null, 2), K("span", null, G(C.translate), 1)]),
1137
+ default: o(() => [Y("i", {
1138
+ class: _e(`icon iconfont ${v.icon}`)
1139
+ }, null, 2), Y("span", null, X(v.translate), 1)]),
1173
1140
  _: 2
1174
1141
  }, 1024)]),
1175
1142
  _: 1
1176
1143
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
1177
1144
  };
1178
1145
  }
1179
- }), Fe = /* @__PURE__ */ O({
1146
+ }), Ne = /* @__PURE__ */ D({
1180
1147
  __name: "MenuRuleFormModal",
1181
1148
  emits: ["refresh"],
1182
- setup(x, { expose: R, emit: k }) {
1183
- const M = k, v = {
1149
+ setup(x, { expose: w, emit: y }) {
1150
+ const k = y, h = {
1184
1151
  key: "",
1185
1152
  menu_id: 0,
1186
1153
  sort: 0,
@@ -1188,7 +1155,7 @@ const Le = /* @__PURE__ */ O({
1188
1155
  en_name: "",
1189
1156
  urls: "",
1190
1157
  remark: ""
1191
- }, V = {
1158
+ }, _ = {
1192
1159
  menu_id: [
1193
1160
  {
1194
1161
  required: !0,
@@ -1226,54 +1193,43 @@ const Le = /* @__PURE__ */ O({
1226
1193
  trigger: "blur"
1227
1194
  }
1228
1195
  ]
1229
- }, {
1230
- modal: _,
1231
- title: s,
1232
- form: p,
1233
- formData: r,
1234
- requesting: g,
1235
- executing: m,
1236
- open: i,
1237
- modify: U,
1238
- submit: C,
1239
- closed: E
1240
- } = I(M, v, ce);
1241
- return R({
1196
+ }, { modal: m, title: d, form: p, formData: n, requesting: b, executing: c, open: i, modify: R, submit: v, closed: C } = G(k, h, he);
1197
+ return w({
1242
1198
  open: i,
1243
- modify: U
1244
- }), (c, o) => {
1245
- const u = d("el-form-item"), n = d("el-input-number"), h = d("el-input"), y = d("el-col"), S = d("el-row"), f = d("el-form");
1246
- return q(), $(e(Y), {
1247
- modelValue: e(_),
1248
- "onUpdate:modelValue": o[6] || (o[6] = (w) => D(_) ? _.value = w : null),
1249
- title: e(s)("menu.rules"),
1199
+ modify: R
1200
+ }), (f, t) => {
1201
+ const u = s("el-form-item"), r = s("el-input-number"), A = s("el-input"), U = s("el-col"), S = s("el-row"), V = s("el-form");
1202
+ return E(), q(e(Q), {
1203
+ modelValue: e(m),
1204
+ "onUpdate:modelValue": t[6] || (t[6] = (M) => N(m) ? m.value = M : null),
1205
+ title: e(d)("menu.rules"),
1250
1206
  width: "1000px",
1251
- executing: e(m),
1252
- onClosed: e(E),
1253
- onSubmit: e(C)
1207
+ executing: e(c),
1208
+ onClosed: e(C),
1209
+ onSubmit: e(v)
1254
1210
  }, {
1255
- default: t(() => [
1256
- l(f, {
1211
+ default: o(() => [
1212
+ l(V, {
1257
1213
  ref_key: "form",
1258
1214
  ref: p,
1259
- model: e(r),
1215
+ model: e(n),
1260
1216
  "label-width": "auto",
1261
- rules: V,
1262
- disabled: e(g) || e(m)
1217
+ rules: _,
1218
+ disabled: e(b) || e(c)
1263
1219
  }, {
1264
- default: t(() => [
1220
+ default: o(() => [
1265
1221
  l(S, { gutter: 20 }, {
1266
- default: t(() => [
1267
- l(y, { span: 10 }, {
1268
- default: t(() => [
1222
+ default: o(() => [
1223
+ l(U, { span: 10 }, {
1224
+ default: o(() => [
1269
1225
  l(u, {
1270
1226
  label: e(a)("menu.Menu"),
1271
1227
  prop: "menu_id"
1272
1228
  }, {
1273
- default: t(() => [
1274
- l(Oe, {
1275
- modelValue: e(r).menu_id,
1276
- "onUpdate:modelValue": o[0] || (o[0] = (w) => e(r).menu_id = w)
1229
+ default: o(() => [
1230
+ l(Be, {
1231
+ modelValue: e(n).menu_id,
1232
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => e(n).menu_id = M)
1277
1233
  }, null, 8, ["modelValue"])
1278
1234
  ]),
1279
1235
  _: 1
@@ -1282,11 +1238,11 @@ const Le = /* @__PURE__ */ O({
1282
1238
  label: e(a)("base.sort"),
1283
1239
  prop: "sort"
1284
1240
  }, {
1285
- default: t(() => [
1286
- l(n, {
1241
+ default: o(() => [
1242
+ l(r, {
1287
1243
  class: "w-full",
1288
- modelValue: e(r).sort,
1289
- "onUpdate:modelValue": o[1] || (o[1] = (w) => e(r).sort = w),
1244
+ modelValue: e(n).sort,
1245
+ "onUpdate:modelValue": t[1] || (t[1] = (M) => e(n).sort = M),
1290
1246
  min: 0,
1291
1247
  placeholder: e(a)("base.placeholder.input")
1292
1248
  }, null, 8, ["modelValue", "placeholder"])
@@ -1297,10 +1253,10 @@ const Le = /* @__PURE__ */ O({
1297
1253
  label: e(a)("base.name"),
1298
1254
  prop: "name"
1299
1255
  }, {
1300
- default: t(() => [
1301
- l(h, {
1302
- modelValue: e(r).name,
1303
- "onUpdate:modelValue": o[2] || (o[2] = (w) => e(r).name = w),
1256
+ default: o(() => [
1257
+ l(A, {
1258
+ modelValue: e(n).name,
1259
+ "onUpdate:modelValue": t[2] || (t[2] = (M) => e(n).name = M),
1304
1260
  placeholder: e(a)("base.placeholder.input")
1305
1261
  }, null, 8, ["modelValue", "placeholder"])
1306
1262
  ]),
@@ -1310,10 +1266,10 @@ const Le = /* @__PURE__ */ O({
1310
1266
  label: e(a)("base.en_name"),
1311
1267
  prop: "en_name"
1312
1268
  }, {
1313
- default: t(() => [
1314
- l(h, {
1315
- modelValue: e(r).en_name,
1316
- "onUpdate:modelValue": o[3] || (o[3] = (w) => e(r).en_name = w),
1269
+ default: o(() => [
1270
+ l(A, {
1271
+ modelValue: e(n).en_name,
1272
+ "onUpdate:modelValue": t[3] || (t[3] = (M) => e(n).en_name = M),
1317
1273
  placeholder: e(a)("base.placeholder.input")
1318
1274
  }, null, 8, ["modelValue", "placeholder"])
1319
1275
  ]),
@@ -1323,10 +1279,10 @@ const Le = /* @__PURE__ */ O({
1323
1279
  label: e(a)("base.remark"),
1324
1280
  prop: "remark"
1325
1281
  }, {
1326
- default: t(() => [
1327
- l(h, {
1328
- modelValue: e(r).remark,
1329
- "onUpdate:modelValue": o[4] || (o[4] = (w) => e(r).remark = w),
1282
+ default: o(() => [
1283
+ l(A, {
1284
+ modelValue: e(n).remark,
1285
+ "onUpdate:modelValue": t[4] || (t[4] = (M) => e(n).remark = M),
1330
1286
  placeholder: e(a)("base.placeholder.input")
1331
1287
  }, null, 8, ["modelValue", "placeholder"])
1332
1288
  ]),
@@ -1335,16 +1291,16 @@ const Le = /* @__PURE__ */ O({
1335
1291
  ]),
1336
1292
  _: 1
1337
1293
  }),
1338
- l(y, { span: 14 }, {
1339
- default: t(() => [
1294
+ l(U, { span: 14 }, {
1295
+ default: o(() => [
1340
1296
  l(u, {
1341
1297
  label: e(a)("base.rules"),
1342
1298
  prop: "urls"
1343
1299
  }, {
1344
- default: t(() => [
1345
- l(h, {
1346
- modelValue: e(r).urls,
1347
- "onUpdate:modelValue": o[5] || (o[5] = (w) => e(r).urls = w),
1300
+ default: o(() => [
1301
+ l(A, {
1302
+ modelValue: e(n).urls,
1303
+ "onUpdate:modelValue": t[5] || (t[5] = (M) => e(n).urls = M),
1348
1304
  type: "textarea",
1349
1305
  rows: 11,
1350
1306
  placeholder: e(a)("base.placeholder.input")
@@ -1367,16 +1323,16 @@ const Le = /* @__PURE__ */ O({
1367
1323
  };
1368
1324
  }
1369
1325
  });
1370
- function se(x) {
1371
- return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !_e(x);
1326
+ function me(x) {
1327
+ return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !ye(x);
1372
1328
  }
1373
- const Te = /* @__PURE__ */ O({
1329
+ const je = /* @__PURE__ */ D({
1374
1330
  __name: "index",
1375
1331
  setup(x) {
1376
- const R = {
1332
+ const w = {
1377
1333
  keyword: "",
1378
1334
  status: 0
1379
- }, k = Q(""), M = [
1335
+ }, y = ee(""), k = [
1380
1336
  {
1381
1337
  label: a("base.sort"),
1382
1338
  prop: "sort",
@@ -1387,9 +1343,9 @@ const Te = /* @__PURE__ */ O({
1387
1343
  prop: "icon",
1388
1344
  width: 60,
1389
1345
  render: ({
1390
- row: o
1346
+ row: t
1391
1347
  }) => l("span", {
1392
- class: "iconfont " + o.icon,
1348
+ class: "iconfont " + t.icon,
1393
1349
  style: "font-size: 16px;"
1394
1350
  }, null)
1395
1351
  },
@@ -1403,10 +1359,10 @@ const Te = /* @__PURE__ */ O({
1403
1359
  prop: "parent",
1404
1360
  width: 120,
1405
1361
  render: ({
1406
- row: o
1362
+ row: t
1407
1363
  }) => {
1408
1364
  var u;
1409
- return l(N, null, [(u = o.menu) == null ? void 0 : u.name]);
1365
+ return l(z, null, [(u = t.menu) == null ? void 0 : u.name]);
1410
1366
  }
1411
1367
  },
1412
1368
  {
@@ -1433,43 +1389,43 @@ const Te = /* @__PURE__ */ O({
1433
1389
  width: 0,
1434
1390
  align: "left",
1435
1391
  render: ({
1436
- row: o
1437
- }) => l(d("el-space"), null, {
1392
+ row: t
1393
+ }) => l(s("el-space"), null, {
1438
1394
  default: () => {
1439
1395
  var u;
1440
- return [(u = o.rules) == null ? void 0 : u.map((n) => l(d("el-popover"), {
1441
- visible: k.value === n.key,
1396
+ return [(u = t.rules) == null ? void 0 : u.map((r) => l(s("el-popover"), {
1397
+ visible: y.value === r.key,
1442
1398
  title: a("message.title.warning"),
1443
1399
  placement: "top-end",
1444
1400
  width: 220
1445
1401
  }, {
1446
- reference: () => l(d("el-tag"), {
1402
+ reference: () => l(s("el-tag"), {
1447
1403
  class: "cursor-pointer",
1448
1404
  closable: !0,
1449
- key: n.key,
1450
- onClick: () => E({
1451
- key: n.key
1405
+ key: r.key,
1406
+ onClick: () => C({
1407
+ key: r.key
1452
1408
  }),
1453
- onClose: () => k.value = n.key
1409
+ onClose: () => y.value = r.key
1454
1410
  }, {
1455
- default: () => [n.translate]
1411
+ default: () => [r.translate]
1456
1412
  }),
1457
1413
  default: () => {
1458
- let h, y;
1459
- return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${o.translate}-${n.translate} ?`]), l("div", {
1414
+ let A, U;
1415
+ return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${t.translate}-${r.translate} ?`]), l("div", {
1460
1416
  style: "text-align: right; margin: 0"
1461
- }, [l(d("el-button"), {
1417
+ }, [l(s("el-button"), {
1462
1418
  size: "small",
1463
1419
  text: !0,
1464
- onClick: () => k.value = ""
1465
- }, se(h = a("base.cancel")) ? h : {
1466
- default: () => [h]
1467
- }), l(d("el-button"), {
1420
+ onClick: () => y.value = ""
1421
+ }, me(A = a("base.cancel")) ? A : {
1422
+ default: () => [A]
1423
+ }), l(s("el-button"), {
1468
1424
  size: "small",
1469
1425
  type: "danger",
1470
- onClick: () => c(n.key)
1471
- }, se(y = a("base.confirm")) ? y : {
1472
- default: () => [y]
1426
+ onClick: () => f(r.key)
1427
+ }, me(U = a("base.confirm")) ? U : {
1428
+ default: () => [U]
1473
1429
  })])]);
1474
1430
  }
1475
1431
  }))];
@@ -1484,7 +1440,7 @@ const Te = /* @__PURE__ */ O({
1484
1440
  props: {
1485
1441
  activeValue: 1,
1486
1442
  inactiveValue: 2,
1487
- api: F.urls[ie],
1443
+ api: $.urls[be],
1488
1444
  refresh: !0
1489
1445
  }
1490
1446
  },
@@ -1494,262 +1450,255 @@ const Te = /* @__PURE__ */ O({
1494
1450
  width: 60,
1495
1451
  align: "center",
1496
1452
  render: ({
1497
- row: o
1498
- }) => l(ee, {
1453
+ row: t
1454
+ }) => l(oe, {
1499
1455
  onModify: () => i({
1500
- id: o.id
1456
+ id: t.id
1501
1457
  })
1502
1458
  }, null)
1503
1459
  }
1504
1460
  ], {
1505
- requesting: v
1506
- } = z(F), {
1507
- tableRef: V,
1508
- formModalRef: _,
1509
- keyword: s,
1461
+ requesting: h
1462
+ } = F($), {
1463
+ tableRef: _,
1464
+ formModalRef: m,
1465
+ keyword: d,
1510
1466
  search: p,
1511
- refresh: r,
1512
- reset: g,
1513
- openFormModal: m,
1467
+ refresh: n,
1468
+ reset: b,
1469
+ openFormModal: c,
1514
1470
  editFormModal: i
1515
- } = P(R), {
1516
- formModalRef: U,
1517
- openFormModal: C,
1518
- editFormModal: E
1519
- } = P(), c = (o) => {
1520
- ce[xe]({
1521
- key: o
1471
+ } = P(w), {
1472
+ formModalRef: R,
1473
+ openFormModal: v,
1474
+ editFormModal: C
1475
+ } = P(), f = (t) => {
1476
+ he[Me]({
1477
+ key: t
1522
1478
  }).then(() => {
1523
- k.value = "", r();
1479
+ y.value = "", n();
1524
1480
  });
1525
1481
  };
1526
- return (o, u) => {
1527
- const n = d("el-button"), h = d("el-input"), y = d("el-radio-button"), S = d("el-radio-group"), f = d("el-space"), w = d("el-page-header"), b = d("el-card");
1528
- return q(), $(b, {
1482
+ return (t, u) => {
1483
+ const r = s("el-button"), A = s("el-input"), U = s("el-radio-button"), S = s("el-radio-group"), V = s("el-space"), M = s("el-page-header"), g = s("el-card");
1484
+ return E(), q(g, {
1529
1485
  class: "basic-card flex-full",
1530
1486
  "body-class": "flex-1",
1531
- onClick: u[5] || (u[5] = () => k.value = "")
1487
+ onClick: u[5] || (u[5] = () => y.value = "")
1532
1488
  }, {
1533
- header: t(() => [l(w, {
1489
+ header: o(() => [l(M, {
1534
1490
  class: "basic-header"
1535
1491
  }, {
1536
- title: t(() => [l(e(W), {
1537
- loading: e(v),
1538
- onRefresh: e(g)
1539
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
1540
- onOpen: e(m)
1541
- }, null, 8, ["onOpen"]), l(n, {
1492
+ title: o(() => [l(e(B), {
1493
+ loading: e(h),
1494
+ onRefresh: e(b)
1495
+ }, null, 8, ["loading", "onRefresh"]), l(e(re), {
1496
+ onOpen: e(c)
1497
+ }, null, 8, ["onOpen"]), l(r, {
1542
1498
  circle: "",
1543
- icon: e(Ee),
1544
- onClick: e(C)
1499
+ icon: e(ze),
1500
+ onClick: e(v)
1545
1501
  }, null, 8, ["icon", "onClick"])]),
1546
- content: t(() => [l(f, {
1502
+ content: o(() => [l(V, {
1547
1503
  class: "search-bar"
1548
1504
  }, {
1549
- default: t(() => [l(h, {
1505
+ default: o(() => [l(A, {
1550
1506
  class: "basic-search-input",
1551
- modelValue: e(s).keyword,
1552
- "onUpdate:modelValue": u[0] || (u[0] = (A) => e(s).keyword = A),
1507
+ modelValue: e(d).keyword,
1508
+ "onUpdate:modelValue": u[0] || (u[0] = (L) => e(d).keyword = L),
1553
1509
  placeholder: e(a)("base.placeholder.keyword"),
1554
1510
  clearable: "",
1555
- onKeyup: u[1] || (u[1] = X((A) => e(p)(), ["enter"])),
1556
- onClear: u[2] || (u[2] = (A) => e(p)())
1511
+ onKeyup: u[1] || (u[1] = le((L) => e(p)(), ["enter"])),
1512
+ onClear: u[2] || (u[2] = (L) => e(p)())
1557
1513
  }, null, 8, ["modelValue", "placeholder"]), l(S, {
1558
- modelValue: e(s).status,
1559
- "onUpdate:modelValue": u[3] || (u[3] = (A) => e(s).status = A),
1560
- onChange: u[4] || (u[4] = (A) => e(p)())
1514
+ modelValue: e(d).status,
1515
+ "onUpdate:modelValue": u[3] || (u[3] = (L) => e(d).status = L),
1516
+ onChange: u[4] || (u[4] = (L) => e(p)())
1561
1517
  }, {
1562
- default: t(() => [(q(), T(N, null, j([0, 1, 2], (A) => l(y, {
1563
- key: A,
1564
- label: e(a)(`base.DISABLE_ENABLE.${A}`),
1565
- value: A
1518
+ default: o(() => [(E(), K(z, null, W([0, 1, 2], (L) => l(U, {
1519
+ key: L,
1520
+ label: e(a)(`base.DISABLE_ENABLE.${L}`),
1521
+ value: L
1566
1522
  }, null, 8, ["label", "value"])), 64))]),
1567
1523
  _: 1
1568
- }, 8, ["modelValue"]), l(e(oe), {
1569
- disabled: e(v),
1524
+ }, 8, ["modelValue"]), l(e(j), {
1525
+ disabled: e(h),
1570
1526
  onSearch: e(p)
1571
1527
  }, null, 8, ["disabled", "onSearch"])]),
1572
1528
  _: 1
1573
1529
  })]),
1574
1530
  _: 1
1575
1531
  })]),
1576
- default: t(() => [l(e(le), {
1532
+ default: o(() => [l(e(te), {
1577
1533
  ref_key: "tableRef",
1578
- ref: V,
1534
+ ref: _,
1579
1535
  size: "small",
1580
- columns: M,
1581
- url: e(F).urls[e(ae)],
1582
- "search-param": e(s),
1536
+ columns: k,
1537
+ url: e($).urls[e(ne)],
1538
+ "search-param": e(d),
1583
1539
  autoSearch: ""
1584
- }, null, 8, ["url", "search-param"]), l($e, {
1540
+ }, null, 8, ["url", "search-param"]), l(Pe, {
1585
1541
  ref_key: "formModalRef",
1586
- ref: _,
1587
- onRefresh: e(g)
1588
- }, null, 8, ["onRefresh"]), l(Fe, {
1542
+ ref: m,
1543
+ onRefresh: e(b)
1544
+ }, null, 8, ["onRefresh"]), l(Ne, {
1589
1545
  ref_key: "ruleFormModalRef",
1590
- ref: U,
1591
- onRefresh: e(r)
1546
+ ref: R,
1547
+ onRefresh: e(n)
1592
1548
  }, null, 8, ["onRefresh"])]),
1593
1549
  _: 1
1594
1550
  });
1595
1551
  };
1596
1552
  }
1597
- }), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1553
+ }), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1598
1554
  __proto__: null,
1599
- default: Te
1600
- }, Symbol.toStringTag, { value: "Module" })), ze = { class: "rule-check" }, Be = { style: { width: "80px", "line-height": "36px" } }, Ne = /* @__PURE__ */ O({
1601
- __name: "RulesCheck",
1555
+ default: je
1556
+ }, Symbol.toStringTag, { value: "Module" })), Ye = { class: "rule-check" }, He = { style: { width: "80px", "line-height": "36px" } }, We = /* @__PURE__ */ D({
1557
+ __name: "rulesCheck",
1602
1558
  props: {
1603
1559
  modelValue: { type: Array, required: !0 },
1604
1560
  disabled: { type: Boolean, default: !1 }
1605
1561
  },
1606
1562
  emits: ["update:modelValue"],
1607
- setup(x, { expose: R, emit: k }) {
1608
- const { requesting: M } = z(F), v = x, V = k, _ = Q(!1), s = fe({
1563
+ setup(x, { expose: w, emit: y }) {
1564
+ const { requesting: k } = F($), h = x, _ = y, m = ee(!1), d = ke({
1609
1565
  checkAll: !1,
1610
1566
  indeterminate: !1,
1611
1567
  MenuAll: {},
1612
1568
  MenuList: {},
1613
1569
  MenuIndeterminate: {}
1614
- }), { options: p, refresh: r } = ue(
1615
- re(v, "modelValue"),
1616
- V,
1617
- { key: "RULE_CHECK", api: F, url: F.urls.rules, isArray: !0 },
1618
- !1
1619
- );
1620
- function g() {
1621
- p.value.forEach((c) => {
1622
- var o;
1623
- (o = c.rules) != null && o.length && (s.MenuAll[c.id] = !1, s.MenuIndeterminate[c.id] = !1, s.MenuList[c.id] = []);
1570
+ }), { options: p, refresh: n } = de(se(h, "modelValue"), _, { key: "RULE_CHECK", api: $, url: $.urls.rules, isArray: !0 }, !1);
1571
+ function b() {
1572
+ p.value.forEach((f) => {
1573
+ var t;
1574
+ (t = f.rules) != null && t.length && (d.MenuAll[f.id] = !1, d.MenuIndeterminate[f.id] = !1, d.MenuList[f.id] = []);
1624
1575
  });
1625
1576
  }
1626
- function m(c) {
1627
- p.value.forEach((o) => {
1577
+ function c(f) {
1578
+ p.value.forEach((t) => {
1628
1579
  var u;
1629
- (u = o.rules) != null && u.length && (s.MenuList[o.id] = c ? o.rules.map((n) => n.key) : []);
1630
- }), U();
1580
+ (u = t.rules) != null && u.length && (d.MenuList[t.id] = f ? t.rules.map((r) => r.key) : []);
1581
+ }), R();
1631
1582
  }
1632
- function i(c, o) {
1633
- const u = p.value.find((n) => n.id === o);
1634
- s.MenuList[o] = c && u ? u.rules.map((n) => n.key) : [], U();
1583
+ function i(f, t) {
1584
+ const u = p.value.find((r) => r.id === t);
1585
+ d.MenuList[t] = f && u ? u.rules.map((r) => r.key) : [], R();
1635
1586
  }
1636
- function U() {
1637
- p.value.forEach((c) => {
1638
- var n, h;
1639
- const o = ((n = c.rules) == null ? void 0 : n.length) || 0, u = ((h = s.MenuList[c.id]) == null ? void 0 : h.length) || 0;
1640
- s.MenuAll[c.id] = u === o && o > 0, s.MenuIndeterminate[c.id] = u > 0 && u < o;
1641
- }), s.checkAll = Object.values(s.MenuAll).every(Boolean), s.indeterminate = !s.checkAll && Object.values(s.MenuList).some((c) => c.length > 0), V("update:modelValue", Object.values(s.MenuList).flat());
1587
+ function R() {
1588
+ p.value.forEach((f) => {
1589
+ var r, A;
1590
+ const t = ((r = f.rules) == null ? void 0 : r.length) || 0, u = ((A = d.MenuList[f.id]) == null ? void 0 : A.length) || 0;
1591
+ d.MenuAll[f.id] = u === t && t > 0, d.MenuIndeterminate[f.id] = u > 0 && u < t;
1592
+ }), d.checkAll = Object.values(d.MenuAll).every(Boolean), d.indeterminate = !d.checkAll && Object.values(d.MenuList).some((f) => f.length > 0), _("update:modelValue", Object.values(d.MenuList).flat());
1642
1593
  }
1643
- function C() {
1644
- s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {}, g(), V("update:modelValue", []), _.value = !1;
1594
+ function v() {
1595
+ d.checkAll = !1, d.indeterminate = !1, d.MenuAll = {}, d.MenuList = {}, d.MenuIndeterminate = {}, b(), _("update:modelValue", []), m.value = !1;
1645
1596
  }
1646
- function E(c) {
1647
- var o;
1597
+ function C(f) {
1598
+ var t;
1648
1599
  if (Array.isArray(p.value) && p.value.length > 0) {
1649
1600
  for (let u of p.value)
1650
1601
  if (Array.isArray(u.rules) && u.rules.length > 0)
1651
- for (let n of u.rules)
1652
- c.some((h) => h === n.key) && (s.MenuList[u.id] = (((o = s.MenuList) == null ? void 0 : o[u.id]) || []).concat([
1653
- n.key
1654
- ]));
1655
- U(), _.value = !0;
1602
+ for (let r of u.rules)
1603
+ f.some((A) => A === r.key) && (d.MenuList[u.id] = (((t = d.MenuList) == null ? void 0 : t[u.id]) || []).concat([r.key]));
1604
+ R(), m.value = !0;
1656
1605
  }
1657
1606
  }
1658
- return ge(async () => {
1659
- var c;
1660
- (c = p.value) != null && c.length || await r(), !_.value && v.modelValue && E(v.modelValue);
1661
- }), he(
1662
- () => v.modelValue,
1663
- (c) => {
1664
- Ve(() => {
1665
- var o;
1666
- _.value || !((o = p.value) != null && o.length) || c && c.length > 0 && E(c);
1607
+ return ve(async () => {
1608
+ var f;
1609
+ (f = p.value) != null && f.length || await n(), !m.value && h.modelValue && C(h.modelValue);
1610
+ }), we(
1611
+ () => h.modelValue,
1612
+ (f) => {
1613
+ xe(() => {
1614
+ var t;
1615
+ m.value || !((t = p.value) != null && t.length) || f && f.length > 0 && C(f);
1667
1616
  });
1668
1617
  },
1669
1618
  { deep: !0, immediate: !0 }
1670
- ), R({
1671
- generateOption: E,
1672
- cleanChecked: C
1673
- }), (c, o) => {
1674
- const u = d("el-checkbox"), n = d("el-space"), h = d("el-text"), y = d("el-divider"), S = d("el-checkbox-group");
1675
- return q(), T("div", ze, [
1676
- l(n, { style: { "margin-bottom": "6px" } }, {
1677
- default: t(() => [
1619
+ ), w({
1620
+ generateOption: C,
1621
+ cleanChecked: v
1622
+ }), (f, t) => {
1623
+ const u = s("el-checkbox"), r = s("el-space"), A = s("el-text"), U = s("el-divider"), S = s("el-checkbox-group");
1624
+ return E(), K("div", Ye, [
1625
+ l(r, { style: { "margin-bottom": "6px" } }, {
1626
+ default: o(() => [
1678
1627
  l(u, {
1679
- "model-value": s.checkAll,
1680
- indeterminate: s.indeterminate,
1628
+ "model-value": d.checkAll,
1629
+ indeterminate: d.indeterminate,
1681
1630
  id: "all",
1682
1631
  disabled: x.disabled,
1683
- onChange: m
1632
+ onChange: c
1684
1633
  }, {
1685
- default: t(() => o[1] || (o[1] = [
1686
- K("span", null, "全选", -1)
1634
+ default: o(() => t[1] || (t[1] = [
1635
+ Y("span", null, "全选", -1)
1687
1636
  ])),
1688
1637
  _: 1,
1689
1638
  __: [1]
1690
1639
  }, 8, ["model-value", "indeterminate", "disabled"]),
1691
- l(e(W), {
1692
- loading: e(M),
1640
+ l(e(B), {
1641
+ loading: e(k),
1693
1642
  text: "",
1694
1643
  size: "small",
1695
- onRefresh: o[0] || (o[0] = (f) => e(r)(!0))
1644
+ onRefresh: t[0] || (t[0] = (V) => e(n)(!0))
1696
1645
  }, null, 8, ["loading"])
1697
1646
  ]),
1698
1647
  _: 1
1699
1648
  }),
1700
- l(n, {
1649
+ l(r, {
1701
1650
  direction: "vertical",
1702
1651
  alignment: "start",
1703
1652
  class: "rule-check-content"
1704
1653
  }, {
1705
- default: t(() => [
1706
- (q(!0), T(N, null, j(e(p), (f) => (q(), T("div", {
1707
- key: f.id
1654
+ default: o(() => [
1655
+ (E(!0), K(z, null, W(e(p), (V) => (E(), K("div", {
1656
+ key: V.id
1708
1657
  }, [
1709
- l(n, {
1658
+ l(r, {
1710
1659
  direction: "horizontal",
1711
1660
  size: 2
1712
1661
  }, {
1713
- default: t(() => [
1662
+ default: o(() => [
1714
1663
  l(u, {
1715
1664
  style: { "min-width": "150px" },
1716
- "model-value": s.MenuAll[f.id],
1717
- disabled: x.disabled || !f.rules || f.rules.length <= 0,
1718
- indeterminate: s.MenuIndeterminate[f.id],
1719
- onChange: (w) => i(w, f.id)
1665
+ "model-value": d.MenuAll[V.id],
1666
+ disabled: x.disabled || !V.rules || V.rules.length <= 0,
1667
+ indeterminate: d.MenuIndeterminate[V.id],
1668
+ onChange: (M) => i(M, V.id)
1720
1669
  }, {
1721
- default: t(() => [
1722
- l(h, { style: { "font-size": "15px" } }, {
1723
- default: t(() => [
1724
- B(G(f.translate), 1)
1670
+ default: o(() => [
1671
+ l(A, { style: { "font-size": "15px" } }, {
1672
+ default: o(() => [
1673
+ I(X(V.translate), 1)
1725
1674
  ]),
1726
1675
  _: 2
1727
1676
  }, 1024)
1728
1677
  ]),
1729
1678
  _: 2
1730
1679
  }, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
1731
- l(y, { direction: "vertical" }),
1732
- f.rules ? (q(), $(S, {
1680
+ l(U, { direction: "vertical" }),
1681
+ V.rules ? (E(), q(S, {
1733
1682
  key: 0,
1734
- modelValue: s.MenuList[f.id],
1735
- "onUpdate:modelValue": (w) => s.MenuList[f.id] = w,
1683
+ modelValue: d.MenuList[V.id],
1684
+ "onUpdate:modelValue": (M) => d.MenuList[V.id] = M,
1736
1685
  disabled: x.disabled,
1737
1686
  style: { margin: "auto" },
1738
- onChange: U
1687
+ onChange: R
1739
1688
  }, {
1740
- default: t(() => [
1741
- (q(!0), T(N, null, j(f.rules, (w) => (q(), $(u, {
1742
- key: w.key,
1743
- value: w.key
1689
+ default: o(() => [
1690
+ (E(!0), K(z, null, W(V.rules, (M) => (E(), q(u, {
1691
+ key: M.key,
1692
+ value: M.key
1744
1693
  }, {
1745
- default: t(() => [
1746
- K("div", Be, G(w.translate), 1)
1694
+ default: o(() => [
1695
+ Y("div", He, X(M.translate), 1)
1747
1696
  ]),
1748
1697
  _: 2
1749
1698
  }, 1032, ["value"]))), 128))
1750
1699
  ]),
1751
1700
  _: 2
1752
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : ye("", !0)
1701
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Re("", !0)
1753
1702
  ]),
1754
1703
  _: 2
1755
1704
  }, 1024)
@@ -1760,11 +1709,16 @@ const Te = /* @__PURE__ */ O({
1760
1709
  ]);
1761
1710
  };
1762
1711
  }
1763
- }), Ke = /* @__PURE__ */ O({
1712
+ }), Ge = (x, w) => {
1713
+ const y = x.__vccOpts || x;
1714
+ for (const [k, h] of w)
1715
+ y[k] = h;
1716
+ return y;
1717
+ }, Qe = /* @__PURE__ */ Ge(We, [["__scopeId", "data-v-f4f07023"]]), Je = /* @__PURE__ */ D({
1764
1718
  __name: "RoleFormModal",
1765
1719
  emits: ["refresh"],
1766
- setup(x, { expose: R, emit: k }) {
1767
- const M = k, v = Q(), V = {
1720
+ setup(x, { expose: w, emit: y }) {
1721
+ const k = y, h = ee(), _ = {
1768
1722
  key: "",
1769
1723
  module: "",
1770
1724
  sort: 0,
@@ -1772,7 +1726,7 @@ const Te = /* @__PURE__ */ O({
1772
1726
  en_name: "",
1773
1727
  remark: "",
1774
1728
  rules: []
1775
- }, _ = {
1729
+ }, m = {
1776
1730
  name: [
1777
1731
  {
1778
1732
  required: !0,
@@ -1787,57 +1741,46 @@ const Te = /* @__PURE__ */ O({
1787
1741
  trigger: "blur"
1788
1742
  }
1789
1743
  ]
1790
- }, {
1791
- modal: s,
1792
- title: p,
1793
- form: r,
1794
- formData: g,
1795
- requesting: m,
1796
- executing: i,
1797
- open: U,
1798
- modify: C,
1799
- submit: E,
1800
- closed: c
1801
- } = I(M, V, J), o = () => {
1744
+ }, { modal: d, title: p, form: n, formData: b, requesting: c, executing: i, open: R, modify: v, submit: C, closed: f } = G(k, _, Z), t = () => {
1802
1745
  var u;
1803
- (u = v.value) == null || u.cleanChecked(), c();
1746
+ (u = h.value) == null || u.cleanChecked(), f();
1804
1747
  };
1805
- return R({
1806
- open: U,
1807
- modify: C
1808
- }), (u, n) => {
1809
- const h = d("el-input"), y = d("el-form-item"), S = d("el-col"), f = d("el-input-number"), w = d("el-row"), b = d("el-form");
1810
- return q(), $(e(Y), {
1811
- modelValue: e(s),
1812
- "onUpdate:modelValue": n[6] || (n[6] = (A) => D(s) ? s.value = A : null),
1748
+ return w({
1749
+ open: R,
1750
+ modify: v
1751
+ }), (u, r) => {
1752
+ const A = s("el-input"), U = s("el-form-item"), S = s("el-col"), V = s("el-input-number"), M = s("el-row"), g = s("el-form");
1753
+ return E(), q(e(Q), {
1754
+ modelValue: e(d),
1755
+ "onUpdate:modelValue": r[6] || (r[6] = (L) => N(d) ? d.value = L : null),
1813
1756
  title: e(p)(),
1814
1757
  width: "1000px",
1815
1758
  executing: e(i),
1816
- onClosed: o,
1817
- onSubmit: e(E)
1759
+ onClosed: t,
1760
+ onSubmit: e(C)
1818
1761
  }, {
1819
- default: t(() => [
1820
- l(b, {
1762
+ default: o(() => [
1763
+ l(g, {
1821
1764
  ref_key: "form",
1822
- ref: r,
1823
- model: e(g),
1765
+ ref: n,
1766
+ model: e(b),
1824
1767
  "label-width": "auto",
1825
- rules: _,
1826
- disabled: e(m) || e(i)
1768
+ rules: m,
1769
+ disabled: e(c) || e(i)
1827
1770
  }, {
1828
- default: t(() => [
1829
- l(w, { gutter: 20 }, {
1830
- default: t(() => [
1771
+ default: o(() => [
1772
+ l(M, { gutter: 20 }, {
1773
+ default: o(() => [
1831
1774
  l(S, { span: 12 }, {
1832
- default: t(() => [
1833
- l(y, {
1775
+ default: o(() => [
1776
+ l(U, {
1834
1777
  label: e(a)("base.module"),
1835
1778
  prop: "module"
1836
1779
  }, {
1837
- default: t(() => [
1838
- l(h, {
1839
- modelValue: e(g).module,
1840
- "onUpdate:modelValue": n[0] || (n[0] = (A) => e(g).module = A),
1780
+ default: o(() => [
1781
+ l(A, {
1782
+ modelValue: e(b).module,
1783
+ "onUpdate:modelValue": r[0] || (r[0] = (L) => e(b).module = L),
1841
1784
  placeholder: e(a)("base.placeholder.input")
1842
1785
  }, null, 8, ["modelValue", "placeholder"])
1843
1786
  ]),
@@ -1847,16 +1790,16 @@ const Te = /* @__PURE__ */ O({
1847
1790
  _: 1
1848
1791
  }),
1849
1792
  l(S, { span: 12 }, {
1850
- default: t(() => [
1851
- l(y, {
1793
+ default: o(() => [
1794
+ l(U, {
1852
1795
  label: e(a)("base.sort"),
1853
1796
  prop: "sort"
1854
1797
  }, {
1855
- default: t(() => [
1856
- l(f, {
1798
+ default: o(() => [
1799
+ l(V, {
1857
1800
  class: "w-full",
1858
- modelValue: e(g).sort,
1859
- "onUpdate:modelValue": n[1] || (n[1] = (A) => e(g).sort = A),
1801
+ modelValue: e(b).sort,
1802
+ "onUpdate:modelValue": r[1] || (r[1] = (L) => e(b).sort = L),
1860
1803
  min: 0,
1861
1804
  placeholder: e(a)("base.placeholder.input")
1862
1805
  }, null, 8, ["modelValue", "placeholder"])
@@ -1869,56 +1812,56 @@ const Te = /* @__PURE__ */ O({
1869
1812
  ]),
1870
1813
  _: 1
1871
1814
  }),
1872
- l(y, {
1815
+ l(U, {
1873
1816
  label: e(a)("base.name"),
1874
1817
  prop: "name"
1875
1818
  }, {
1876
- default: t(() => [
1877
- l(h, {
1878
- modelValue: e(g).name,
1879
- "onUpdate:modelValue": n[2] || (n[2] = (A) => e(g).name = A),
1819
+ default: o(() => [
1820
+ l(A, {
1821
+ modelValue: e(b).name,
1822
+ "onUpdate:modelValue": r[2] || (r[2] = (L) => e(b).name = L),
1880
1823
  placeholder: e(a)("base.placeholder.input")
1881
1824
  }, null, 8, ["modelValue", "placeholder"])
1882
1825
  ]),
1883
1826
  _: 1
1884
1827
  }, 8, ["label"]),
1885
- l(y, {
1828
+ l(U, {
1886
1829
  label: e(a)("base.en_name"),
1887
1830
  prop: "en_name"
1888
1831
  }, {
1889
- default: t(() => [
1890
- l(h, {
1891
- modelValue: e(g).en_name,
1892
- "onUpdate:modelValue": n[3] || (n[3] = (A) => e(g).en_name = A),
1832
+ default: o(() => [
1833
+ l(A, {
1834
+ modelValue: e(b).en_name,
1835
+ "onUpdate:modelValue": r[3] || (r[3] = (L) => e(b).en_name = L),
1893
1836
  placeholder: e(a)("base.placeholder.input")
1894
1837
  }, null, 8, ["modelValue", "placeholder"])
1895
1838
  ]),
1896
1839
  _: 1
1897
1840
  }, 8, ["label"]),
1898
- l(y, {
1841
+ l(U, {
1899
1842
  label: e(a)("base.remark"),
1900
1843
  prop: "remark"
1901
1844
  }, {
1902
- default: t(() => [
1903
- l(h, {
1904
- modelValue: e(g).remark,
1905
- "onUpdate:modelValue": n[4] || (n[4] = (A) => e(g).remark = A),
1845
+ default: o(() => [
1846
+ l(A, {
1847
+ modelValue: e(b).remark,
1848
+ "onUpdate:modelValue": r[4] || (r[4] = (L) => e(b).remark = L),
1906
1849
  placeholder: e(a)("base.placeholder.input")
1907
1850
  }, null, 8, ["modelValue", "placeholder"])
1908
1851
  ]),
1909
1852
  _: 1
1910
1853
  }, 8, ["label"]),
1911
- l(y, {
1854
+ l(U, {
1912
1855
  label: e(a)("base.rules"),
1913
1856
  prop: "rules"
1914
1857
  }, {
1915
- default: t(() => [
1916
- l(Ne, {
1858
+ default: o(() => [
1859
+ l(Qe, {
1917
1860
  ref_key: "rulesCheck",
1918
- ref: v,
1919
- modelValue: e(g).rules,
1920
- "onUpdate:modelValue": n[5] || (n[5] = (A) => e(g).rules = A),
1921
- disabled: e(m) || e(i)
1861
+ ref: h,
1862
+ modelValue: e(b).rules,
1863
+ "onUpdate:modelValue": r[5] || (r[5] = (L) => e(b).rules = L),
1864
+ disabled: e(c) || e(i)
1922
1865
  }, null, 8, ["modelValue", "disabled"])
1923
1866
  ]),
1924
1867
  _: 1
@@ -1931,12 +1874,12 @@ const Te = /* @__PURE__ */ O({
1931
1874
  }, 8, ["modelValue", "title", "executing", "onSubmit"]);
1932
1875
  };
1933
1876
  }
1934
- }), je = /* @__PURE__ */ O({
1877
+ }), Xe = /* @__PURE__ */ D({
1935
1878
  __name: "index",
1936
1879
  setup(x) {
1937
- const R = {
1880
+ const w = {
1938
1881
  keyword: ""
1939
- }, k = [
1882
+ }, y = [
1940
1883
  {
1941
1884
  label: a("base.sort"),
1942
1885
  prop: "sort",
@@ -1969,98 +1912,361 @@ const Te = /* @__PURE__ */ O({
1969
1912
  width: 60,
1970
1913
  align: "center",
1971
1914
  render: ({
1972
- row: m
1973
- }) => l(ee, {
1974
- onModify: () => g({
1975
- key: m.key
1915
+ row: c
1916
+ }) => l(oe, {
1917
+ onModify: () => b({
1918
+ key: c.key
1976
1919
  })
1977
1920
  }, null)
1978
1921
  }
1979
1922
  ], {
1980
- requesting: M
1981
- } = z(J), {
1982
- tableRef: v,
1983
- formModalRef: V,
1984
- keyword: _,
1985
- search: s,
1923
+ requesting: k
1924
+ } = F(Z), {
1925
+ tableRef: h,
1926
+ formModalRef: _,
1927
+ keyword: m,
1928
+ search: d,
1986
1929
  reset: p,
1987
- openFormModal: r,
1988
- editFormModal: g
1989
- } = P(R);
1990
- return (m, i) => {
1991
- const U = d("el-input"), C = d("el-space"), E = d("el-page-header"), c = d("el-card");
1992
- return q(), $(c, {
1930
+ openFormModal: n,
1931
+ editFormModal: b
1932
+ } = P(w);
1933
+ return (c, i) => {
1934
+ const R = s("el-input"), v = s("el-space"), C = s("el-page-header"), f = s("el-card");
1935
+ return E(), q(f, {
1993
1936
  class: "basic-card flex-full",
1994
1937
  "body-class": "flex-1"
1995
1938
  }, {
1996
- header: t(() => [l(E, {
1939
+ header: o(() => [l(C, {
1997
1940
  class: "basic-header"
1998
1941
  }, {
1999
- title: t(() => [l(e(W), {
2000
- loading: e(M),
1942
+ title: o(() => [l(e(B), {
1943
+ loading: e(k),
2001
1944
  onRefresh: e(p)
2002
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
2003
- onOpen: e(r)
1945
+ }, null, 8, ["loading", "onRefresh"]), l(e(re), {
1946
+ onOpen: e(n)
2004
1947
  }, null, 8, ["onOpen"])]),
2005
- content: t(() => [l(C, {
1948
+ content: o(() => [l(v, {
2006
1949
  class: "search-bar"
2007
1950
  }, {
2008
- default: t(() => [l(U, {
1951
+ default: o(() => [l(R, {
2009
1952
  class: "basic-search-input",
2010
- modelValue: e(_).keyword,
2011
- "onUpdate:modelValue": i[0] || (i[0] = (o) => e(_).keyword = o),
1953
+ modelValue: e(m).keyword,
1954
+ "onUpdate:modelValue": i[0] || (i[0] = (t) => e(m).keyword = t),
2012
1955
  placeholder: e(a)("base.placeholder.keyword"),
2013
1956
  clearable: "",
2014
- onKeyup: i[1] || (i[1] = X((o) => e(s)(), ["enter"])),
2015
- onClear: i[2] || (i[2] = (o) => e(s)())
2016
- }, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
2017
- disabled: e(M),
2018
- onSearch: i[3] || (i[3] = (o) => e(s)())
1957
+ onKeyup: i[1] || (i[1] = le((t) => e(d)(), ["enter"])),
1958
+ onClear: i[2] || (i[2] = (t) => e(d)())
1959
+ }, null, 8, ["modelValue", "placeholder"]), l(e(j), {
1960
+ disabled: e(k),
1961
+ onSearch: i[3] || (i[3] = (t) => e(d)())
2019
1962
  }, null, 8, ["disabled"])]),
2020
1963
  _: 1
2021
1964
  })]),
2022
1965
  _: 1
2023
1966
  })]),
2024
- default: t(() => [l(e(le), {
1967
+ default: o(() => [l(e(te), {
2025
1968
  ref_key: "tableRef",
2026
- ref: v,
1969
+ ref: h,
2027
1970
  size: "small",
2028
- columns: k,
2029
- url: e(J).urls[e(ae)],
2030
- "search-param": e(_),
1971
+ columns: y,
1972
+ url: e(Z).urls[e(ne)],
1973
+ "search-param": e(m),
2031
1974
  autoSearch: ""
2032
- }, null, 8, ["url", "search-param"]), l(Ke, {
1975
+ }, null, 8, ["url", "search-param"]), l(Je, {
2033
1976
  ref_key: "formModalRef",
2034
- ref: V,
1977
+ ref: _,
2035
1978
  onRefresh: e(p)
2036
1979
  }, null, 8, ["onRefresh"])]),
2037
1980
  _: 1
2038
1981
  });
2039
1982
  };
2040
1983
  }
2041
- }), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1984
+ }), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2042
1985
  __proto__: null,
2043
- default: je
2044
- }, Symbol.toStringTag, { value: "Module" })), We = {
2045
- install: (x, R) => {
2046
- Reflect.ownKeys(x._context.provides).some(
2047
- (k) => String(k) === "Symbol(pinia)"
2048
- ) || console.warn(
2049
- "Pinia is not provided. Please install and provide Pinia in your app."
2050
- ), console.log(Reflect.ownKeys(x._context.provides));
1986
+ default: Xe
1987
+ }, Symbol.toStringTag, { value: "Module" })), ce = {
1988
+ request: "request",
1989
+ error: "error",
1990
+ sql: "SQL"
1991
+ }, H = fe.createAutoApi("log", ce, "id", Object.keys(ce), [], []), nl = /* @__PURE__ */ D({
1992
+ __name: "index",
1993
+ setup(x) {
1994
+ const w = {
1995
+ dates: [T.getCurrentHour().format(T.DATE_VALUE_FORMAT), T.getCurrentHour(1).format(T.DATE_VALUE_FORMAT)]
1996
+ }, y = [{
1997
+ label: a("base.sort"),
1998
+ type: "index",
1999
+ width: 60
2000
+ }, {
2001
+ label: a("base.time"),
2002
+ prop: "time",
2003
+ width: 180,
2004
+ render: ({
2005
+ rowData: p
2006
+ }) => l(z, null, [T.formatDate(p.time)])
2007
+ }, {
2008
+ label: a("base.url"),
2009
+ prop: "url",
2010
+ align: "left",
2011
+ width: 200
2012
+ }], {
2013
+ requesting: k
2014
+ } = F(H), {
2015
+ tableRef: h,
2016
+ keyword: _,
2017
+ search: m,
2018
+ reset: d
2019
+ } = P(w);
2020
+ return (p, n) => {
2021
+ const b = s("el-date-picker"), c = s("el-space"), i = s("el-page-header"), R = s("el-card");
2022
+ return E(), q(R, {
2023
+ class: "basic-card flex-full",
2024
+ "body-class": "flex-1"
2025
+ }, {
2026
+ header: o(() => [l(i, {
2027
+ class: "basic-header"
2028
+ }, {
2029
+ title: o(() => [l(e(B), {
2030
+ loading: e(k),
2031
+ onRefresh: e(d)
2032
+ }, null, 8, ["loading", "onRefresh"])]),
2033
+ content: o(() => [l(c, {
2034
+ class: "search-bar"
2035
+ }, {
2036
+ default: o(() => [l(b, {
2037
+ modelValue: e(_).dates,
2038
+ "onUpdate:modelValue": n[0] || (n[0] = (v) => e(_).dates = v),
2039
+ class: "basic-search-datetimerange",
2040
+ "value-format": e(T).DATE_HOUR_FORMAT,
2041
+ format: e(T).DATE_SHOW_FORMAT,
2042
+ type: "datetimerange",
2043
+ "range-separator": "-",
2044
+ "start-placeholder": e(a)("base.start_at"),
2045
+ "end-placeholder": e(a)("base.end_at"),
2046
+ clearable: !1,
2047
+ onChange: n[1] || (n[1] = (v) => e(m)())
2048
+ }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(j), {
2049
+ disabled: e(k),
2050
+ onSearch: n[2] || (n[2] = (v) => e(m)())
2051
+ }, null, 8, ["disabled"])]),
2052
+ _: 1
2053
+ })]),
2054
+ _: 1
2055
+ })]),
2056
+ default: o(() => [l(e(pe), {
2057
+ ref_key: "tableRef",
2058
+ ref: h,
2059
+ size: "small",
2060
+ columns: y,
2061
+ url: e(H).urls.request,
2062
+ "search-param": e(_),
2063
+ autoSearch: ""
2064
+ }, null, 8, ["url", "search-param"])]),
2065
+ _: 1
2066
+ });
2067
+ };
2068
+ }
2069
+ }), rl = /* @__PURE__ */ D({
2070
+ __name: "index",
2071
+ setup(x) {
2072
+ const w = {
2073
+ dates: [T.getCurrentDate(-7).format(T.DATE_VALUE_FORMAT), T.getCurrentDate(0).format(T.DATE_VALUE_FORMAT)]
2074
+ }, y = [{
2075
+ label: a("base.sort"),
2076
+ type: "index",
2077
+ width: 60
2078
+ }, {
2079
+ label: a("base.time"),
2080
+ prop: "time",
2081
+ width: 180,
2082
+ render: ({
2083
+ rowData: p
2084
+ }) => l(z, null, [T.formatDate(p.time)])
2085
+ }, {
2086
+ label: a("base.url"),
2087
+ prop: "url",
2088
+ align: "left",
2089
+ width: 200
2090
+ }], {
2091
+ requesting: k
2092
+ } = F(H), {
2093
+ tableRef: h,
2094
+ keyword: _,
2095
+ search: m,
2096
+ reset: d
2097
+ } = P(w);
2098
+ return (p, n) => {
2099
+ const b = s("el-date-picker"), c = s("el-space"), i = s("el-page-header"), R = s("el-card");
2100
+ return E(), q(R, {
2101
+ class: "basic-card flex-full",
2102
+ "body-class": "flex-1"
2103
+ }, {
2104
+ header: o(() => [l(i, {
2105
+ class: "basic-header"
2106
+ }, {
2107
+ title: o(() => [l(e(B), {
2108
+ loading: e(k),
2109
+ onRefresh: e(d)
2110
+ }, null, 8, ["loading", "onRefresh"])]),
2111
+ content: o(() => [l(c, {
2112
+ class: "search-bar"
2113
+ }, {
2114
+ default: o(() => [l(b, {
2115
+ modelValue: e(_).dates,
2116
+ "onUpdate:modelValue": n[0] || (n[0] = (v) => e(_).dates = v),
2117
+ class: "basic-search-daterange",
2118
+ "value-format": e(T).DATE_VALUE_FORMAT,
2119
+ format: e(T).DATE_FORMAT,
2120
+ type: "daterange",
2121
+ "range-separator": "-",
2122
+ "start-placeholder": e(a)("base.start_at"),
2123
+ "end-placeholder": e(a)("base.end_at"),
2124
+ clearable: !1,
2125
+ onChange: n[1] || (n[1] = (v) => e(m)())
2126
+ }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(j), {
2127
+ disabled: e(k),
2128
+ onSearch: n[2] || (n[2] = (v) => e(m)())
2129
+ }, null, 8, ["disabled"])]),
2130
+ _: 1
2131
+ })]),
2132
+ _: 1
2133
+ })]),
2134
+ default: o(() => [l(e(pe), {
2135
+ ref_key: "tableRef",
2136
+ ref: h,
2137
+ size: "small",
2138
+ columns: y,
2139
+ url: e(H).urls.error,
2140
+ "search-param": e(_),
2141
+ autoSearch: ""
2142
+ }, null, 8, ["url", "search-param"])]),
2143
+ _: 1
2144
+ });
2145
+ };
2146
+ }
2147
+ }), ul = /* @__PURE__ */ D({
2148
+ __name: "index",
2149
+ setup(x) {
2150
+ const w = {
2151
+ dates: [T.getCurrentDate(-7).format(T.DATE_VALUE_FORMAT), T.getCurrentDate().format(T.DATE_VALUE_FORMAT)]
2152
+ }, y = [{
2153
+ label: a("base.sort"),
2154
+ type: "index",
2155
+ width: 60
2156
+ }, {
2157
+ label: a("base.time"),
2158
+ prop: "time",
2159
+ width: 180,
2160
+ render: ({
2161
+ rowData: p
2162
+ }) => l(z, null, [T.formatDate(p.time)])
2163
+ }, {
2164
+ label: a("base.url"),
2165
+ prop: "url",
2166
+ align: "left",
2167
+ width: 200
2168
+ }], {
2169
+ requesting: k
2170
+ } = F(H), {
2171
+ tableRef: h,
2172
+ keyword: _,
2173
+ search: m,
2174
+ reset: d
2175
+ } = P(w);
2176
+ return (p, n) => {
2177
+ const b = s("el-date-picker"), c = s("el-space"), i = s("el-page-header"), R = s("el-card");
2178
+ return E(), q(R, {
2179
+ class: "basic-card flex-full",
2180
+ "body-class": "flex-1"
2181
+ }, {
2182
+ header: o(() => [l(i, {
2183
+ class: "basic-header"
2184
+ }, {
2185
+ title: o(() => [l(e(B), {
2186
+ loading: e(k),
2187
+ onRefresh: e(d)
2188
+ }, null, 8, ["loading", "onRefresh"])]),
2189
+ content: o(() => [l(c, {
2190
+ class: "search-bar"
2191
+ }, {
2192
+ default: o(() => [l(b, {
2193
+ modelValue: e(_).dates,
2194
+ "onUpdate:modelValue": n[0] || (n[0] = (v) => e(_).dates = v),
2195
+ class: "basic-search-daterange",
2196
+ "value-format": e(T).DATE_HOUR_FORMAT,
2197
+ format: e(T).DATE_FORMAT,
2198
+ type: "daterange",
2199
+ "range-separator": "-",
2200
+ "start-placeholder": e(a)("base.start_at"),
2201
+ "end-placeholder": e(a)("base.end_at"),
2202
+ clearable: !1,
2203
+ onChange: n[1] || (n[1] = (v) => e(m)())
2204
+ }, null, 8, ["modelValue", "value-format", "format", "start-placeholder", "end-placeholder"]), l(e(j), {
2205
+ disabled: e(k),
2206
+ onSearch: n[2] || (n[2] = (v) => e(m)())
2207
+ }, null, 8, ["disabled"])]),
2208
+ _: 1
2209
+ })]),
2210
+ _: 1
2211
+ })]),
2212
+ default: o(() => [l(e(pe), {
2213
+ ref_key: "tableRef",
2214
+ ref: h,
2215
+ size: "small",
2216
+ columns: y,
2217
+ url: e(H).urls.sql,
2218
+ "search-param": e(_),
2219
+ autoSearch: ""
2220
+ }, null, 8, ["url", "search-param"])]),
2221
+ _: 1
2222
+ });
2223
+ };
2224
+ }
2225
+ }), el = () => import("./index-SHsqnbNG.js"), ll = () => import("./index-CJMTIvHk.js"), al = () => import("./index-BMn8mAns.js"), sl = [
2226
+ {
2227
+ path: Le,
2228
+ name: "RequestLog",
2229
+ component: el,
2230
+ meta: {
2231
+ title: a("menu.RequestLog")
2232
+ }
2233
+ },
2234
+ {
2235
+ path: Ee,
2236
+ name: "ErrorLog",
2237
+ component: ll,
2238
+ meta: {
2239
+ title: a("menu.ErrorLog")
2240
+ }
2241
+ },
2242
+ {
2243
+ path: Se,
2244
+ name: "SqlLog",
2245
+ component: al,
2246
+ meta: {
2247
+ title: a("menu.SqlLog")
2248
+ }
2249
+ }
2250
+ ], dl = {
2251
+ install: (x) => {
2252
+ Reflect.ownKeys(x._context.provides).some((w) => String(w) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.warn(Reflect.ownKeys(x._context.provides));
2051
2253
  },
2052
2254
  version: "__VERSION__"
2053
- }, He = /* @__PURE__ */ Object.assign({
2054
- "./views/admin/index.vue": Ae,
2055
- "./views/language/index.vue": Se,
2056
- "./views/menu/index.vue": De,
2057
- "./views/role/index.vue": Pe
2255
+ }, pl = /* @__PURE__ */ Object.assign({
2256
+ "./views/admin/index.vue": Oe,
2257
+ "./views/language/index.vue": $e,
2258
+ "./views/menu/index.vue": Ie,
2259
+ "./views/role/index.vue": Ze
2058
2260
  });
2059
2261
  export {
2060
- Me as AdminsPage,
2061
- Ce as LanguagesPage,
2062
- Te as MenusPage,
2063
- je as RolesPage,
2064
- He as basicModules,
2065
- We as default
2262
+ Te as AdminsPage,
2263
+ rl as ErrorLogsPage,
2264
+ De as LanguagesPage,
2265
+ sl as LogRoutes,
2266
+ je as MenusPage,
2267
+ nl as RequestLogsPage,
2268
+ Xe as RolesPage,
2269
+ ul as SQLLogsPage,
2270
+ pl as basicModules,
2271
+ dl as default
2066
2272
  };