auto-vue-basic 0.0.42 → 0.0.43

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