auto-vue-basic 0.0.43 → 0.0.45

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