auto-vue-basic 0.0.41 → 0.0.42

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 S, 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";
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
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
3
  const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */ O({
4
4
  __name: "AdminFormModal",
5
5
  emits: ["refresh"],
6
- setup(w, { expose: A, emit: y }) {
7
- const M = y, k = {
6
+ setup(x, { expose: R, emit: k }) {
7
+ const M = k, v = {
8
8
  key: "",
9
9
  username: "",
10
10
  password: "",
@@ -20,11 +20,11 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
20
20
  formData: p,
21
21
  requesting: r,
22
22
  executing: g,
23
- open: b,
24
- modify: m,
25
- submit: x,
26
- closed: R
27
- } = I(M, k, ne), q = {
23
+ open: m,
24
+ modify: i,
25
+ submit: U,
26
+ closed: C
27
+ } = I(M, v, ne), E = {
28
28
  username: [
29
29
  {
30
30
  required: !0,
@@ -69,65 +69,65 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
69
69
  trigger: "change"
70
70
  }
71
71
  ]
72
- }, i = Q([]), o = async () => {
72
+ }, c = Q([]), o = async () => {
73
73
  const u = await J.list();
74
- i.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
74
+ c.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
75
75
  };
76
76
  return be(async () => {
77
77
  await o();
78
- }), A({
79
- open: b,
80
- modify: m
78
+ }), R({
79
+ open: m,
80
+ modify: i
81
81
  }), (u, n) => {
82
- const h = d("el-input"), U = d("el-form-item"), C = d("el-radio-button"), f = d("el-radio-group"), v = d("el-checkbox"), c = d("el-checkbox-group"), L = d("el-form");
83
- return S(), $(e(Y), {
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
84
  modelValue: e(V),
85
- "onUpdate:modelValue": n[7] || (n[7] = (E) => D(V) ? V.value = E : null),
85
+ "onUpdate:modelValue": n[7] || (n[7] = (L) => D(V) ? V.value = L : null),
86
86
  title: e(_)(),
87
87
  width: "600px",
88
88
  executing: e(g),
89
- onClosed: e(R),
90
- onSubmit: e(x)
89
+ onClosed: e(C),
90
+ onSubmit: e(U)
91
91
  }, {
92
92
  default: t(() => [
93
- l(L, {
93
+ l(A, {
94
94
  ref_key: "form",
95
95
  ref: s,
96
96
  model: e(p),
97
97
  "label-width": "auto",
98
- rules: q,
98
+ rules: E,
99
99
  disabled: e(r) || e(g)
100
100
  }, {
101
101
  default: t(() => [
102
- l(U, {
102
+ l(y, {
103
103
  label: e(a)("base.username"),
104
104
  prop: "username"
105
105
  }, {
106
106
  default: t(() => [
107
107
  l(h, {
108
108
  modelValue: e(p).username,
109
- "onUpdate:modelValue": n[0] || (n[0] = (E) => e(p).username = E),
109
+ "onUpdate:modelValue": n[0] || (n[0] = (L) => e(p).username = L),
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(U, {
116
+ l(y, {
117
117
  label: e(a)("base.phone"),
118
118
  prop: "phone"
119
119
  }, {
120
120
  default: t(() => [
121
121
  l(h, {
122
122
  modelValue: e(p).phone,
123
- "onUpdate:modelValue": n[1] || (n[1] = (E) => e(p).phone = E),
123
+ "onUpdate:modelValue": n[1] || (n[1] = (L) => e(p).phone = L),
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(U, {
130
+ l(y, {
131
131
  label: e(a)("base.password"),
132
132
  prop: "password",
133
133
  required: !e(p).key
@@ -135,45 +135,45 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
135
135
  default: t(() => [
136
136
  l(h, {
137
137
  modelValue: e(p).password,
138
- "onUpdate:modelValue": n[2] || (n[2] = (E) => e(p).password = E),
138
+ "onUpdate:modelValue": n[2] || (n[2] = (L) => e(p).password = L),
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(U, {
145
+ l(y, {
146
146
  label: e(a)("base.email"),
147
147
  prop: "email"
148
148
  }, {
149
149
  default: t(() => [
150
150
  l(h, {
151
151
  modelValue: e(p).email,
152
- "onUpdate:modelValue": n[3] || (n[3] = (E) => e(p).email = E),
152
+ "onUpdate:modelValue": n[3] || (n[3] = (L) => e(p).email = L),
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(U, {
159
+ l(y, {
160
160
  label: e(a)("base.language"),
161
161
  prop: "language"
162
162
  }, {
163
163
  default: t(() => [
164
164
  l(f, {
165
165
  modelValue: e(p).language,
166
- "onUpdate:modelValue": n[4] || (n[4] = (E) => e(p).language = E)
166
+ "onUpdate:modelValue": n[4] || (n[4] = (L) => e(p).language = L)
167
167
  }, {
168
168
  default: t(() => [
169
- l(C, { value: "zh-CN" }, {
169
+ l(S, { value: "zh-CN" }, {
170
170
  default: t(() => n[8] || (n[8] = [
171
171
  B("zh-CN")
172
172
  ])),
173
173
  _: 1,
174
174
  __: [8]
175
175
  }),
176
- l(C, { value: "en-US" }, {
176
+ l(S, { value: "en-US" }, {
177
177
  default: t(() => n[9] || (n[9] = [
178
178
  B("en-US")
179
179
  ])),
@@ -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(U, {
189
+ l(y, {
190
190
  label: e(a)("menu.Role"),
191
191
  prop: "roles"
192
192
  }, {
193
193
  default: t(() => [
194
- l(c, {
194
+ l(b, {
195
195
  modelValue: e(p).roles,
196
- "onUpdate:modelValue": n[5] || (n[5] = (E) => e(p).roles = E)
196
+ "onUpdate:modelValue": n[5] || (n[5] = (L) => e(p).roles = L)
197
197
  }, {
198
198
  default: t(() => [
199
- (S(!0), T(N, null, j(i.value, (E) => (S(), $(v, {
200
- key: E.key,
201
- value: E.key
199
+ (q(!0), T(N, null, j(c.value, (L) => (q(), $(w, {
200
+ key: L.key,
201
+ value: L.key
202
202
  }, {
203
203
  default: t(() => [
204
- B(G(E.translate), 1)
204
+ B(G(L.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(U, {
214
+ l(y, {
215
215
  label: e(a)("base.remark"),
216
216
  prop: "remark"
217
217
  }, {
218
218
  default: t(() => [
219
219
  l(h, {
220
220
  modelValue: e(p).remark,
221
- "onUpdate:modelValue": n[6] || (n[6] = (E) => e(p).remark = E),
221
+ "onUpdate:modelValue": n[6] || (n[6] = (L) => e(p).remark = L),
222
222
  placeholder: e(a)("base.placeholder.input")
223
223
  }, null, 8, ["modelValue", "placeholder"])
224
224
  ]),
@@ -234,29 +234,29 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
234
234
  }
235
235
  }), Me = /* @__PURE__ */ O({
236
236
  __name: "index",
237
- setup(w) {
238
- const A = {
237
+ setup(x) {
238
+ const R = {
239
239
  keyword: ""
240
- }, y = [{
240
+ }, k = [{
241
241
  label: a("base.avatar"),
242
242
  prop: "avatar",
243
243
  width: 60,
244
244
  render: ({
245
- row: b
245
+ row: m
246
246
  }) => l(ve, {
247
- src: b.avatar
247
+ src: m.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: b
254
+ row: m
255
255
  }) => l(d("el-space"), {
256
256
  direction: "vertical",
257
257
  alignment: "start"
258
258
  }, {
259
- default: () => [l("div", null, [b.username]), l("div", null, [b.email])]
259
+ default: () => [l("div", null, [m.username]), l("div", null, [m.email])]
260
260
  })
261
261
  }, {
262
262
  label: a("base.phone"),
@@ -284,30 +284,30 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
284
284
  width: 80,
285
285
  align: "center",
286
286
  render: ({
287
- row: b
287
+ row: m
288
288
  }) => l(ee, {
289
289
  onModify: () => g({
290
- key: b.key
290
+ key: m.key
291
291
  })
292
292
  }, null)
293
293
  }], {
294
294
  requesting: M
295
295
  } = z(ne), {
296
- tableRef: k,
296
+ tableRef: v,
297
297
  formModalRef: V,
298
298
  keyword: _,
299
299
  search: s,
300
300
  reset: p,
301
301
  openFormModal: r,
302
302
  editFormModal: g
303
- } = P(A);
304
- return (b, m) => {
305
- const x = d("el-input"), R = d("el-space"), q = d("el-page-header"), i = d("el-card");
306
- return S(), $(i, {
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, {
307
307
  class: "basic-card flex-full",
308
308
  "body-class": "flex-1"
309
309
  }, {
310
- header: t(() => [l(q, {
310
+ header: t(() => [l(E, {
311
311
  class: "basic-header"
312
312
  }, {
313
313
  title: t(() => [l(e(W), {
@@ -316,20 +316,20 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
316
316
  }, null, 8, ["loading", "onRefresh"]), l(e(te), {
317
317
  onOpen: e(r)
318
318
  }, null, 8, ["onOpen"])]),
319
- content: t(() => [l(R, {
319
+ content: t(() => [l(C, {
320
320
  class: "search-bar"
321
321
  }, {
322
- default: t(() => [l(x, {
322
+ default: t(() => [l(U, {
323
323
  class: "basic-search-input",
324
324
  modelValue: e(_).keyword,
325
- "onUpdate:modelValue": m[0] || (m[0] = (o) => e(_).keyword = o),
325
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => e(_).keyword = o),
326
326
  placeholder: e(a)("base.placeholder.keyword"),
327
327
  clearable: "",
328
- onKeyup: m[1] || (m[1] = X((o) => e(s)(), ["enter"])),
329
- onClear: m[2] || (m[2] = (o) => e(s)())
328
+ onKeyup: i[1] || (i[1] = X((o) => e(s)(), ["enter"])),
329
+ onClear: i[2] || (i[2] = (o) => e(s)())
330
330
  }, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
331
331
  disabled: e(M),
332
- onSearch: m[3] || (m[3] = (o) => e(s)())
332
+ onSearch: i[3] || (i[3] = (o) => e(s)())
333
333
  }, null, 8, ["disabled"])]),
334
334
  _: 1
335
335
  })]),
@@ -337,9 +337,9 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
337
337
  })]),
338
338
  default: t(() => [l(e(le), {
339
339
  ref_key: "tableRef",
340
- ref: k,
340
+ ref: v,
341
341
  size: "small",
342
- columns: y,
342
+ columns: k,
343
343
  url: e(ne).urls[e(ae)],
344
344
  "search-param": e(_),
345
345
  autoSearch: ""
@@ -358,8 +358,8 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
358
358
  }, Symbol.toStringTag, { value: "Module" })), H = Z("translation", {}, "key"), Re = /* @__PURE__ */ O({
359
359
  __name: "LangFormModal",
360
360
  emits: ["refresh"],
361
- setup(w, { expose: A, emit: y }) {
362
- const M = y, k = {
361
+ setup(x, { expose: R, emit: k }) {
362
+ const M = k, v = {
363
363
  id: 0,
364
364
  key: "",
365
365
  module: "",
@@ -401,34 +401,34 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
401
401
  form: p,
402
402
  formData: r,
403
403
  requesting: g,
404
- executing: b,
405
- open: m,
406
- modify: x,
407
- submit: R,
408
- closed: q
409
- } = I(M, k, H);
410
- return A({
411
- open: m,
412
- modify: x
413
- }), (i, o) => {
414
- const u = d("el-input"), n = d("el-form-item"), h = d("el-radio-button"), U = d("el-radio-group"), C = d("el-form");
415
- return S(), $(e(Y), {
404
+ executing: m,
405
+ open: i,
406
+ modify: U,
407
+ submit: C,
408
+ closed: E
409
+ } = I(M, v, H);
410
+ return R({
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
416
  modelValue: e(_),
417
417
  "onUpdate:modelValue": o[5] || (o[5] = (f) => D(_) ? _.value = f : null),
418
418
  title: e(s)(),
419
419
  width: "600px",
420
- executing: e(b),
421
- onClosed: e(q),
422
- onSubmit: e(R)
420
+ executing: e(m),
421
+ onClosed: e(E),
422
+ onSubmit: e(C)
423
423
  }, {
424
424
  default: t(() => [
425
- l(C, {
425
+ l(S, {
426
426
  ref_key: "form",
427
427
  ref: p,
428
428
  model: e(r),
429
429
  "label-width": "auto",
430
430
  rules: V,
431
- disabled: e(g) || e(b)
431
+ disabled: e(g) || e(m)
432
432
  }, {
433
433
  default: t(() => [
434
434
  l(n, {
@@ -465,7 +465,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
465
465
  required: ""
466
466
  }, {
467
467
  default: t(() => [
468
- l(U, {
468
+ l(y, {
469
469
  modelValue: e(r).language,
470
470
  "onUpdate:modelValue": o[2] || (o[2] = (f) => e(r).language = f)
471
471
  }, {
@@ -527,11 +527,11 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
527
527
  }
528
528
  }), Ce = /* @__PURE__ */ O({
529
529
  __name: "index",
530
- setup(w) {
531
- const A = {
530
+ setup(x) {
531
+ const R = {
532
532
  keyword: "",
533
533
  status: 0
534
- }, y = [{
534
+ }, k = [{
535
535
  label: a("base.module"),
536
536
  prop: "module",
537
537
  width: 120
@@ -576,26 +576,26 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
576
576
  width: 80,
577
577
  align: "center",
578
578
  render: ({
579
- row: b
579
+ row: m
580
580
  }) => l(ee, {
581
581
  onModify: () => g({
582
- id: b.id
582
+ id: m.id
583
583
  })
584
584
  }, null)
585
585
  }], {
586
586
  requesting: M
587
587
  } = z(H), {
588
- tableRef: k,
588
+ tableRef: v,
589
589
  formModalRef: V,
590
590
  keyword: _,
591
591
  search: s,
592
592
  reset: p,
593
593
  openFormModal: r,
594
594
  editFormModal: g
595
- } = P(A);
596
- return (b, m) => {
597
- const x = d("el-input"), R = d("el-radio-button"), q = d("el-radio-group"), i = d("el-space"), o = d("el-page-header"), u = d("el-card");
598
- return S(), $(u, {
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, {
599
599
  class: "basic-card flex-full",
600
600
  "body-class": "flex-1"
601
601
  }, {
@@ -608,23 +608,23 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
608
608
  }, null, 8, ["loading", "onRefresh"]), l(e(te), {
609
609
  onOpen: e(r)
610
610
  }, null, 8, ["onOpen"])]),
611
- content: t(() => [l(i, {
611
+ content: t(() => [l(c, {
612
612
  class: "search-bar"
613
613
  }, {
614
- default: t(() => [l(x, {
614
+ default: t(() => [l(U, {
615
615
  class: "basic-search-input",
616
616
  modelValue: e(_).keyword,
617
- "onUpdate:modelValue": m[0] || (m[0] = (n) => e(_).keyword = n),
617
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => e(_).keyword = n),
618
618
  placeholder: e(a)("base.placeholder.keyword"),
619
619
  clearable: "",
620
- onKeyup: m[1] || (m[1] = X((n) => e(s)(), ["enter"])),
621
- onClear: m[2] || (m[2] = (n) => e(s)())
622
- }, null, 8, ["modelValue", "placeholder"]), l(q, {
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
623
  modelValue: e(_).status,
624
- "onUpdate:modelValue": m[3] || (m[3] = (n) => e(_).status = n),
625
- onChange: m[4] || (m[4] = (n) => e(s)())
624
+ "onUpdate:modelValue": i[3] || (i[3] = (n) => e(_).status = n),
625
+ onChange: i[4] || (i[4] = (n) => e(s)())
626
626
  }, {
627
- default: t(() => [(S(), T(N, null, j([0, 1, 2], (n) => l(R, {
627
+ default: t(() => [(q(), T(N, null, j([0, 1, 2], (n) => l(C, {
628
628
  key: n,
629
629
  label: e(a)(`base.DISABLE_ENABLE.${n}`),
630
630
  value: n
@@ -632,7 +632,7 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
632
632
  _: 1
633
633
  }, 8, ["modelValue"]), l(e(oe), {
634
634
  disabled: e(M),
635
- onSearch: m[5] || (m[5] = (n) => e(s)())
635
+ onSearch: i[5] || (i[5] = (n) => e(s)())
636
636
  }, null, 8, ["disabled"])]),
637
637
  _: 1
638
638
  })]),
@@ -640,9 +640,9 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
640
640
  })]),
641
641
  default: t(() => [l(e(le), {
642
642
  ref_key: "tableRef",
643
- ref: k,
643
+ ref: v,
644
644
  size: "small",
645
- columns: y,
645
+ columns: k,
646
646
  url: e(H).urls[e(ae)],
647
647
  "search-param": e(_),
648
648
  autoSearch: ""
@@ -666,8 +666,8 @@ const ne = Z("admin", {}, "key"), J = Z("role", {}, "key"), Ue = /* @__PURE__ */
666
666
  var qe = /* @__PURE__ */ O({
667
667
  name: "Key",
668
668
  __name: "key",
669
- setup(w) {
670
- return (A, y) => (S(), T("svg", {
669
+ setup(x) {
670
+ return (R, k) => (q(), T("svg", {
671
671
  xmlns: "http://www.w3.org/2000/svg",
672
672
  viewBox: "0 0 1024 1024"
673
673
  }, [
@@ -691,40 +691,40 @@ const Le = /* @__PURE__ */ O({
691
691
  }
692
692
  },
693
693
  emits: ["update:modelValue", "change"],
694
- setup(w, {
695
- emit: A
694
+ setup(x, {
695
+ emit: R
696
696
  }) {
697
- const y = A, M = w, {
698
- requesting: k
697
+ const k = R, M = x, {
698
+ requesting: v
699
699
  } = z(F), {
700
700
  value: V,
701
701
  options: _,
702
702
  change: s,
703
703
  refresh: p,
704
704
  filterOptions: r
705
- } = ue(re(M, "modelValue"), y, {
705
+ } = ue(re(M, "modelValue"), k, {
706
706
  key: "TOP_MENU_LIST",
707
707
  api: F,
708
708
  url: F.urls.tops,
709
709
  isArray: !0
710
710
  });
711
- return (g, b) => {
712
- const m = d("el-select-v2");
713
- return S(), $(m, {
711
+ return (g, m) => {
712
+ const i = d("el-select-v2");
713
+ return q(), $(i, {
714
714
  class: "w-full",
715
715
  modelValue: e(V),
716
- "onUpdate:modelValue": b[1] || (b[1] = (x) => D(V) ? V.value = x : null),
716
+ "onUpdate:modelValue": m[1] || (m[1] = (U) => D(V) ? V.value = U : null),
717
717
  options: e(_),
718
- multiple: w.multiple,
719
- disabled: e(k),
718
+ multiple: x.multiple,
719
+ disabled: e(v),
720
720
  placeholder: e(a)("base.placeholder.select"),
721
721
  filterable: "",
722
722
  filterOptions: e(r),
723
723
  onChange: e(s)
724
724
  }, {
725
725
  prefix: t(() => [l(e(me), {
726
- loading: e(k),
727
- onRefresh: b[0] || (b[0] = (x) => e(p)(!0))
726
+ loading: e(v),
727
+ onRefresh: m[0] || (m[0] = (U) => e(p)(!0))
728
728
  }, null, 8, ["loading"])]),
729
729
  _: 1
730
730
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
@@ -733,8 +733,8 @@ const Le = /* @__PURE__ */ O({
733
733
  }), $e = /* @__PURE__ */ O({
734
734
  __name: "MenuFormModal",
735
735
  emits: ["refresh"],
736
- setup(w, { expose: A, emit: y }) {
737
- const M = y, k = {
736
+ setup(x, { expose: R, emit: k }) {
737
+ const M = k, v = {
738
738
  id: 0,
739
739
  menu_id: 0,
740
740
  module: "",
@@ -805,41 +805,41 @@ const Le = /* @__PURE__ */ O({
805
805
  form: p,
806
806
  formData: r,
807
807
  requesting: g,
808
- executing: b,
809
- open: m,
810
- modify: x,
811
- submit: R,
812
- closed: q
813
- } = I(M, k, F);
814
- return A({
815
- open: m,
816
- modify: x
817
- }), (i, o) => {
818
- const u = d("el-form-item"), n = d("el-col"), h = d("el-input-number"), U = d("el-row"), C = d("el-input"), f = d("el-switch"), v = d("el-form");
819
- return S(), $(e(Y), {
808
+ executing: m,
809
+ open: i,
810
+ modify: U,
811
+ submit: C,
812
+ closed: E
813
+ } = I(M, v, F);
814
+ return R({
815
+ open: i,
816
+ modify: U
817
+ }), (c, o) => {
818
+ const u = d("el-form-item"), n = d("el-col"), h = d("el-input-number"), y = d("el-row"), S = d("el-input"), f = d("el-switch"), w = d("el-form");
819
+ return q(), $(e(Y), {
820
820
  modelValue: e(_),
821
- "onUpdate:modelValue": o[17] || (o[17] = (c) => D(_) ? _.value = c : null),
821
+ "onUpdate:modelValue": o[17] || (o[17] = (b) => D(_) ? _.value = b : null),
822
822
  title: e(s)(),
823
823
  width: "1000px",
824
- executing: e(b),
825
- onClosed: e(q),
826
- onSubmit: e(R)
824
+ executing: e(m),
825
+ onClosed: e(E),
826
+ onSubmit: e(C)
827
827
  }, {
828
828
  default: t(() => [
829
- l(v, {
829
+ l(w, {
830
830
  ref_key: "form",
831
831
  ref: p,
832
832
  model: e(r),
833
833
  "label-width": "auto",
834
834
  rules: V,
835
- disabled: e(g) || e(b)
835
+ disabled: e(g) || e(m)
836
836
  }, {
837
837
  default: t(() => [
838
- l(U, { gutter: 20 }, {
838
+ l(y, { gutter: 20 }, {
839
839
  default: t(() => [
840
840
  l(n, { span: 12 }, {
841
841
  default: t(() => [
842
- l(U, { gutter: 10 }, {
842
+ l(y, { gutter: 10 }, {
843
843
  default: t(() => [
844
844
  l(n, { span: 12 }, {
845
845
  default: t(() => [
@@ -850,7 +850,7 @@ const Le = /* @__PURE__ */ O({
850
850
  default: t(() => [
851
851
  l(Le, {
852
852
  modelValue: e(r).menu_id,
853
- "onUpdate:modelValue": o[0] || (o[0] = (c) => e(r).menu_id = c)
853
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => e(r).menu_id = b)
854
854
  }, null, 8, ["modelValue"])
855
855
  ]),
856
856
  _: 1
@@ -868,7 +868,7 @@ const Le = /* @__PURE__ */ O({
868
868
  l(h, {
869
869
  class: "w-full",
870
870
  modelValue: e(r).sort,
871
- "onUpdate:modelValue": o[1] || (o[1] = (c) => e(r).sort = c),
871
+ "onUpdate:modelValue": o[1] || (o[1] = (b) => e(r).sort = b),
872
872
  min: 0,
873
873
  placeholder: e(a)("base.placeholder.input")
874
874
  }, null, 8, ["modelValue", "placeholder"])
@@ -886,9 +886,9 @@ const Le = /* @__PURE__ */ O({
886
886
  prop: "module"
887
887
  }, {
888
888
  default: t(() => [
889
- l(C, {
889
+ l(S, {
890
890
  modelValue: e(r).module,
891
- "onUpdate:modelValue": o[2] || (o[2] = (c) => e(r).module = c),
891
+ "onUpdate:modelValue": o[2] || (o[2] = (b) => e(r).module = b),
892
892
  placeholder: e(a)("base.placeholder.input")
893
893
  }, null, 8, ["modelValue", "placeholder"])
894
894
  ]),
@@ -899,9 +899,9 @@ const Le = /* @__PURE__ */ O({
899
899
  prop: "name"
900
900
  }, {
901
901
  default: t(() => [
902
- l(C, {
902
+ l(S, {
903
903
  modelValue: e(r).name,
904
- "onUpdate:modelValue": o[3] || (o[3] = (c) => e(r).name = c),
904
+ "onUpdate:modelValue": o[3] || (o[3] = (b) => e(r).name = b),
905
905
  placeholder: e(a)("base.placeholder.input")
906
906
  }, null, 8, ["modelValue", "placeholder"])
907
907
  ]),
@@ -912,9 +912,9 @@ const Le = /* @__PURE__ */ O({
912
912
  prop: "en_name"
913
913
  }, {
914
914
  default: t(() => [
915
- l(C, {
915
+ l(S, {
916
916
  modelValue: e(r).en_name,
917
- "onUpdate:modelValue": o[4] || (o[4] = (c) => e(r).en_name = c),
917
+ "onUpdate:modelValue": o[4] || (o[4] = (b) => e(r).en_name = b),
918
918
  placeholder: e(a)("base.placeholder.input")
919
919
  }, null, 8, ["modelValue", "placeholder"])
920
920
  ]),
@@ -925,9 +925,9 @@ const Le = /* @__PURE__ */ O({
925
925
  prop: "component"
926
926
  }, {
927
927
  default: t(() => [
928
- l(C, {
928
+ l(S, {
929
929
  modelValue: e(r).component,
930
- "onUpdate:modelValue": o[5] || (o[5] = (c) => e(r).component = c),
930
+ "onUpdate:modelValue": o[5] || (o[5] = (b) => e(r).component = b),
931
931
  placeholder: e(a)("base.placeholder.input")
932
932
  }, null, 8, ["modelValue", "placeholder"])
933
933
  ]),
@@ -938,9 +938,9 @@ const Le = /* @__PURE__ */ O({
938
938
  prop: "url"
939
939
  }, {
940
940
  default: t(() => [
941
- l(C, {
941
+ l(S, {
942
942
  modelValue: e(r).url,
943
- "onUpdate:modelValue": o[6] || (o[6] = (c) => e(r).url = c),
943
+ "onUpdate:modelValue": o[6] || (o[6] = (b) => e(r).url = b),
944
944
  placeholder: e(a)("base.placeholder.input")
945
945
  }, null, 8, ["modelValue", "placeholder"])
946
946
  ]),
@@ -951,9 +951,9 @@ const Le = /* @__PURE__ */ O({
951
951
  prop: "remark"
952
952
  }, {
953
953
  default: t(() => [
954
- l(C, {
954
+ l(S, {
955
955
  modelValue: e(r).remark,
956
- "onUpdate:modelValue": o[7] || (o[7] = (c) => e(r).remark = c),
956
+ "onUpdate:modelValue": o[7] || (o[7] = (b) => e(r).remark = b),
957
957
  placeholder: e(a)("base.placeholder.input")
958
958
  }, null, 8, ["modelValue", "placeholder"])
959
959
  ]),
@@ -969,12 +969,12 @@ const Le = /* @__PURE__ */ O({
969
969
  prop: "icon"
970
970
  }, {
971
971
  default: t(() => [
972
- l(C, {
972
+ l(S, {
973
973
  modelValue: e(r).icon,
974
- "onUpdate:modelValue": o[8] || (o[8] = (c) => e(r).icon = c),
974
+ "onUpdate:modelValue": o[8] || (o[8] = (b) => e(r).icon = b),
975
975
  placeholder: e(a)("base.placeholder.input"),
976
- onInput: o[9] || (o[9] = (c) => {
977
- e(r).meta.icon = c;
976
+ onInput: o[9] || (o[9] = (b) => {
977
+ e(r).meta.icon = b;
978
978
  })
979
979
  }, {
980
980
  prepend: t(() => [
@@ -992,9 +992,9 @@ const Le = /* @__PURE__ */ O({
992
992
  prop: "meta.title"
993
993
  }, {
994
994
  default: t(() => [
995
- l(C, {
995
+ l(S, {
996
996
  modelValue: e(r).meta.title,
997
- "onUpdate:modelValue": o[10] || (o[10] = (c) => e(r).meta.title = c),
997
+ "onUpdate:modelValue": o[10] || (o[10] = (b) => e(r).meta.title = b),
998
998
  placeholder: e(a)("base.placeholder.input")
999
999
  }, null, 8, ["modelValue", "placeholder"])
1000
1000
  ]),
@@ -1005,15 +1005,15 @@ const Le = /* @__PURE__ */ O({
1005
1005
  prop: "meta.active"
1006
1006
  }, {
1007
1007
  default: t(() => [
1008
- l(C, {
1008
+ l(S, {
1009
1009
  modelValue: e(r).meta.active,
1010
- "onUpdate:modelValue": o[11] || (o[11] = (c) => e(r).meta.active = c),
1010
+ "onUpdate:modelValue": o[11] || (o[11] = (b) => e(r).meta.active = b),
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(U, null, {
1016
+ l(y, null, {
1017
1017
  default: t(() => [
1018
1018
  l(n, { span: 12 }, {
1019
1019
  default: t(() => [
@@ -1024,7 +1024,7 @@ const Le = /* @__PURE__ */ O({
1024
1024
  default: t(() => [
1025
1025
  l(f, {
1026
1026
  modelValue: e(r).meta.link,
1027
- "onUpdate:modelValue": o[12] || (o[12] = (c) => e(r).meta.link = c)
1027
+ "onUpdate:modelValue": o[12] || (o[12] = (b) => e(r).meta.link = b)
1028
1028
  }, null, 8, ["modelValue"])
1029
1029
  ]),
1030
1030
  _: 1
@@ -1041,7 +1041,7 @@ const Le = /* @__PURE__ */ O({
1041
1041
  default: t(() => [
1042
1042
  l(f, {
1043
1043
  modelValue: e(r).meta.keep_alive,
1044
- "onUpdate:modelValue": o[13] || (o[13] = (c) => e(r).meta.keep_alive = c)
1044
+ "onUpdate:modelValue": o[13] || (o[13] = (b) => e(r).meta.keep_alive = b)
1045
1045
  }, null, 8, ["modelValue"])
1046
1046
  ]),
1047
1047
  _: 1
@@ -1058,7 +1058,7 @@ const Le = /* @__PURE__ */ O({
1058
1058
  default: t(() => [
1059
1059
  l(f, {
1060
1060
  modelValue: e(r).meta.hide,
1061
- "onUpdate:modelValue": o[14] || (o[14] = (c) => e(r).meta.hide = c)
1061
+ "onUpdate:modelValue": o[14] || (o[14] = (b) => e(r).meta.hide = b)
1062
1062
  }, null, 8, ["modelValue"])
1063
1063
  ]),
1064
1064
  _: 1
@@ -1075,7 +1075,7 @@ const Le = /* @__PURE__ */ O({
1075
1075
  default: t(() => [
1076
1076
  l(f, {
1077
1077
  modelValue: e(r).meta.full,
1078
- "onUpdate:modelValue": o[15] || (o[15] = (c) => e(r).meta.full = c)
1078
+ "onUpdate:modelValue": o[15] || (o[15] = (b) => e(r).meta.full = b)
1079
1079
  }, null, 8, ["modelValue"])
1080
1080
  ]),
1081
1081
  _: 1
@@ -1092,7 +1092,7 @@ const Le = /* @__PURE__ */ O({
1092
1092
  default: t(() => [
1093
1093
  l(f, {
1094
1094
  modelValue: e(r).meta.affix,
1095
- "onUpdate:modelValue": o[16] || (o[16] = (c) => e(r).meta.affix = c)
1095
+ "onUpdate:modelValue": o[16] || (o[16] = (b) => e(r).meta.affix = b)
1096
1096
  }, null, 8, ["modelValue"])
1097
1097
  ]),
1098
1098
  _: 1
@@ -1130,46 +1130,46 @@ const Le = /* @__PURE__ */ O({
1130
1130
  }
1131
1131
  },
1132
1132
  emits: ["update:modelValue", "change"],
1133
- setup(w, {
1134
- emit: A
1133
+ setup(x, {
1134
+ emit: R
1135
1135
  }) {
1136
- const y = A, M = w, {
1137
- requesting: k
1136
+ const k = R, M = x, {
1137
+ requesting: v
1138
1138
  } = z(F), {
1139
1139
  value: V,
1140
1140
  options: _,
1141
1141
  change: s,
1142
1142
  refresh: p,
1143
1143
  filterOptions: r
1144
- } = ue(re(M, "modelValue"), y, {
1144
+ } = ue(re(M, "modelValue"), k, {
1145
1145
  key: "MENU_LIST",
1146
1146
  api: F,
1147
1147
  isArray: !0
1148
1148
  });
1149
- return (g, b) => {
1150
- const m = d("el-space"), x = d("el-select-v2");
1151
- return S(), $(x, {
1149
+ return (g, m) => {
1150
+ const i = d("el-space"), U = d("el-select-v2");
1151
+ return q(), $(U, {
1152
1152
  class: "w-full",
1153
1153
  modelValue: e(V),
1154
- "onUpdate:modelValue": b[1] || (b[1] = (R) => D(V) ? V.value = R : null),
1154
+ "onUpdate:modelValue": m[1] || (m[1] = (C) => D(V) ? V.value = C : null),
1155
1155
  options: e(_),
1156
- multiple: w.multiple,
1157
- disabled: e(k),
1156
+ multiple: x.multiple,
1157
+ disabled: e(v),
1158
1158
  placeholder: e(a)("base.placeholder.select"),
1159
1159
  filterable: "",
1160
1160
  filterOptions: e(r),
1161
1161
  onChange: e(s)
1162
1162
  }, {
1163
1163
  prefix: t(() => [l(e(me), {
1164
- loading: e(k),
1165
- onRefresh: b[0] || (b[0] = (R) => e(p)(!0))
1164
+ loading: e(v),
1165
+ onRefresh: m[0] || (m[0] = (C) => e(p)(!0))
1166
1166
  }, null, 8, ["loading"])]),
1167
1167
  default: t(({
1168
- item: R
1169
- }) => [l(m, null, {
1168
+ item: C
1169
+ }) => [l(i, null, {
1170
1170
  default: t(() => [K("i", {
1171
- class: pe(`icon iconfont ${R.icon}`)
1172
- }, null, 2), K("span", null, G(R.translate), 1)]),
1171
+ class: pe(`icon iconfont ${C.icon}`)
1172
+ }, null, 2), K("span", null, G(C.translate), 1)]),
1173
1173
  _: 2
1174
1174
  }, 1024)]),
1175
1175
  _: 1
@@ -1179,8 +1179,8 @@ const Le = /* @__PURE__ */ O({
1179
1179
  }), Fe = /* @__PURE__ */ O({
1180
1180
  __name: "MenuRuleFormModal",
1181
1181
  emits: ["refresh"],
1182
- setup(w, { expose: A, emit: y }) {
1183
- const M = y, k = {
1182
+ setup(x, { expose: R, emit: k }) {
1183
+ const M = k, v = {
1184
1184
  key: "",
1185
1185
  menu_id: 0,
1186
1186
  sort: 0,
@@ -1232,25 +1232,25 @@ const Le = /* @__PURE__ */ O({
1232
1232
  form: p,
1233
1233
  formData: r,
1234
1234
  requesting: g,
1235
- executing: b,
1236
- open: m,
1237
- modify: x,
1238
- submit: R,
1239
- closed: q
1240
- } = I(M, k, ce);
1241
- return A({
1242
- open: m,
1243
- modify: x
1244
- }), (i, o) => {
1245
- const u = d("el-form-item"), n = d("el-input-number"), h = d("el-input"), U = d("el-col"), C = d("el-row"), f = d("el-form");
1246
- return S(), $(e(Y), {
1235
+ executing: m,
1236
+ open: i,
1237
+ modify: U,
1238
+ submit: C,
1239
+ closed: E
1240
+ } = I(M, v, ce);
1241
+ return R({
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
1247
  modelValue: e(_),
1248
- "onUpdate:modelValue": o[6] || (o[6] = (v) => D(_) ? _.value = v : null),
1248
+ "onUpdate:modelValue": o[6] || (o[6] = (w) => D(_) ? _.value = w : null),
1249
1249
  title: e(s)("menu.rules"),
1250
1250
  width: "1000px",
1251
- executing: e(b),
1252
- onClosed: e(q),
1253
- onSubmit: e(R)
1251
+ executing: e(m),
1252
+ onClosed: e(E),
1253
+ onSubmit: e(C)
1254
1254
  }, {
1255
1255
  default: t(() => [
1256
1256
  l(f, {
@@ -1259,12 +1259,12 @@ const Le = /* @__PURE__ */ O({
1259
1259
  model: e(r),
1260
1260
  "label-width": "auto",
1261
1261
  rules: V,
1262
- disabled: e(g) || e(b)
1262
+ disabled: e(g) || e(m)
1263
1263
  }, {
1264
1264
  default: t(() => [
1265
- l(C, { gutter: 20 }, {
1265
+ l(S, { gutter: 20 }, {
1266
1266
  default: t(() => [
1267
- l(U, { span: 10 }, {
1267
+ l(y, { span: 10 }, {
1268
1268
  default: t(() => [
1269
1269
  l(u, {
1270
1270
  label: e(a)("menu.Menu"),
@@ -1273,7 +1273,7 @@ const Le = /* @__PURE__ */ O({
1273
1273
  default: t(() => [
1274
1274
  l(Oe, {
1275
1275
  modelValue: e(r).menu_id,
1276
- "onUpdate:modelValue": o[0] || (o[0] = (v) => e(r).menu_id = v)
1276
+ "onUpdate:modelValue": o[0] || (o[0] = (w) => e(r).menu_id = w)
1277
1277
  }, null, 8, ["modelValue"])
1278
1278
  ]),
1279
1279
  _: 1
@@ -1286,7 +1286,7 @@ const Le = /* @__PURE__ */ O({
1286
1286
  l(n, {
1287
1287
  class: "w-full",
1288
1288
  modelValue: e(r).sort,
1289
- "onUpdate:modelValue": o[1] || (o[1] = (v) => e(r).sort = v),
1289
+ "onUpdate:modelValue": o[1] || (o[1] = (w) => e(r).sort = w),
1290
1290
  min: 0,
1291
1291
  placeholder: e(a)("base.placeholder.input")
1292
1292
  }, null, 8, ["modelValue", "placeholder"])
@@ -1300,7 +1300,7 @@ const Le = /* @__PURE__ */ O({
1300
1300
  default: t(() => [
1301
1301
  l(h, {
1302
1302
  modelValue: e(r).name,
1303
- "onUpdate:modelValue": o[2] || (o[2] = (v) => e(r).name = v),
1303
+ "onUpdate:modelValue": o[2] || (o[2] = (w) => e(r).name = w),
1304
1304
  placeholder: e(a)("base.placeholder.input")
1305
1305
  }, null, 8, ["modelValue", "placeholder"])
1306
1306
  ]),
@@ -1313,7 +1313,7 @@ const Le = /* @__PURE__ */ O({
1313
1313
  default: t(() => [
1314
1314
  l(h, {
1315
1315
  modelValue: e(r).en_name,
1316
- "onUpdate:modelValue": o[3] || (o[3] = (v) => e(r).en_name = v),
1316
+ "onUpdate:modelValue": o[3] || (o[3] = (w) => e(r).en_name = w),
1317
1317
  placeholder: e(a)("base.placeholder.input")
1318
1318
  }, null, 8, ["modelValue", "placeholder"])
1319
1319
  ]),
@@ -1326,7 +1326,7 @@ const Le = /* @__PURE__ */ O({
1326
1326
  default: t(() => [
1327
1327
  l(h, {
1328
1328
  modelValue: e(r).remark,
1329
- "onUpdate:modelValue": o[4] || (o[4] = (v) => e(r).remark = v),
1329
+ "onUpdate:modelValue": o[4] || (o[4] = (w) => e(r).remark = w),
1330
1330
  placeholder: e(a)("base.placeholder.input")
1331
1331
  }, null, 8, ["modelValue", "placeholder"])
1332
1332
  ]),
@@ -1335,7 +1335,7 @@ const Le = /* @__PURE__ */ O({
1335
1335
  ]),
1336
1336
  _: 1
1337
1337
  }),
1338
- l(U, { span: 14 }, {
1338
+ l(y, { span: 14 }, {
1339
1339
  default: t(() => [
1340
1340
  l(u, {
1341
1341
  label: e(a)("base.rules"),
@@ -1344,7 +1344,7 @@ const Le = /* @__PURE__ */ O({
1344
1344
  default: t(() => [
1345
1345
  l(h, {
1346
1346
  modelValue: e(r).urls,
1347
- "onUpdate:modelValue": o[5] || (o[5] = (v) => e(r).urls = v),
1347
+ "onUpdate:modelValue": o[5] || (o[5] = (w) => e(r).urls = w),
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(w) {
1371
- return typeof w == "function" || Object.prototype.toString.call(w) === "[object Object]" && !_e(w);
1370
+ function se(x) {
1371
+ return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !_e(x);
1372
1372
  }
1373
1373
  const Te = /* @__PURE__ */ O({
1374
1374
  __name: "index",
1375
- setup(w) {
1376
- const A = {
1375
+ setup(x) {
1376
+ const R = {
1377
1377
  keyword: "",
1378
1378
  status: 0
1379
- }, y = Q(""), M = [
1379
+ }, k = Q(""), M = [
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: i
1390
+ row: o
1391
1391
  }) => l("span", {
1392
- class: "iconfont " + i.icon,
1392
+ class: "iconfont " + o.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: i
1406
+ row: o
1407
1407
  }) => {
1408
- var o;
1409
- return l(N, null, [(o = i.menu) == null ? void 0 : o.name]);
1408
+ var u;
1409
+ return l(N, null, [(u = o.menu) == null ? void 0 : u.name]);
1410
1410
  }
1411
1411
  },
1412
1412
  {
@@ -1433,12 +1433,12 @@ const Te = /* @__PURE__ */ O({
1433
1433
  width: 0,
1434
1434
  align: "left",
1435
1435
  render: ({
1436
- row: i
1436
+ row: o
1437
1437
  }) => l(d("el-space"), null, {
1438
1438
  default: () => {
1439
- var o;
1440
- return [(o = i.rules) == null ? void 0 : o.map((u) => l(d("el-popover"), {
1441
- visible: y.value === u.key,
1439
+ var u;
1440
+ return [(u = o.rules) == null ? void 0 : u.map((n) => l(d("el-popover"), {
1441
+ visible: k.value === n.key,
1442
1442
  title: a("message.title.warning"),
1443
1443
  placement: "top-end",
1444
1444
  width: 220
@@ -1446,30 +1446,30 @@ const Te = /* @__PURE__ */ O({
1446
1446
  reference: () => l(d("el-tag"), {
1447
1447
  class: "cursor-pointer",
1448
1448
  closable: !0,
1449
- key: u.key,
1450
- onClick: () => R({
1451
- key: u.key
1449
+ key: n.key,
1450
+ onClick: () => E({
1451
+ key: n.key
1452
1452
  }),
1453
- onClose: () => y.value = u.key
1453
+ onClose: () => k.value = n.key
1454
1454
  }, {
1455
- default: () => [u.translate]
1455
+ default: () => [n.translate]
1456
1456
  }),
1457
1457
  default: () => {
1458
- let n, h;
1459
- return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete menu.rules")}: ${i.translate}-${u.translate} ?`]), l("div", {
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", {
1460
1460
  style: "text-align: right; margin: 0"
1461
1461
  }, [l(d("el-button"), {
1462
1462
  size: "small",
1463
1463
  text: !0,
1464
- onClick: () => y.value = ""
1465
- }, se(n = a("base.cancel")) ? n : {
1466
- default: () => [n]
1464
+ onClick: () => k.value = ""
1465
+ }, se(h = a("base.cancel")) ? h : {
1466
+ default: () => [h]
1467
1467
  }), l(d("el-button"), {
1468
1468
  size: "small",
1469
1469
  type: "danger",
1470
- onClick: () => q(u.key)
1471
- }, se(h = a("base.confirm")) ? h : {
1472
- default: () => [h]
1470
+ onClick: () => c(n.key)
1471
+ }, se(y = a("base.confirm")) ? y : {
1472
+ default: () => [y]
1473
1473
  })])]);
1474
1474
  }
1475
1475
  }))];
@@ -1494,78 +1494,79 @@ const Te = /* @__PURE__ */ O({
1494
1494
  width: 60,
1495
1495
  align: "center",
1496
1496
  render: ({
1497
- row: i
1497
+ row: o
1498
1498
  }) => l(ee, {
1499
- onModify: () => b({
1500
- id: i.id
1499
+ onModify: () => i({
1500
+ id: o.id
1501
1501
  })
1502
1502
  }, null)
1503
1503
  }
1504
1504
  ], {
1505
- requesting: k
1505
+ requesting: v
1506
1506
  } = z(F), {
1507
1507
  tableRef: V,
1508
1508
  formModalRef: _,
1509
1509
  keyword: s,
1510
1510
  search: p,
1511
- reset: r,
1512
- openFormModal: g,
1513
- editFormModal: b
1514
- } = P(A), {
1515
- formModalRef: m,
1516
- openFormModal: x,
1517
- editFormModal: R
1518
- } = P(), q = (i) => {
1511
+ refresh: r,
1512
+ reset: g,
1513
+ openFormModal: m,
1514
+ editFormModal: i
1515
+ } = P(R), {
1516
+ formModalRef: U,
1517
+ openFormModal: C,
1518
+ editFormModal: E
1519
+ } = P(), c = (o) => {
1519
1520
  ce[xe]({
1520
- key: i
1521
+ key: o
1521
1522
  }).then(() => {
1522
- y.value = "", r();
1523
+ k.value = "", r();
1523
1524
  });
1524
1525
  };
1525
- return (i, o) => {
1526
- const u = d("el-button"), n = d("el-input"), h = d("el-radio-button"), U = d("el-radio-group"), C = d("el-space"), f = d("el-page-header"), v = d("el-card");
1527
- return S(), $(v, {
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, {
1528
1529
  class: "basic-card flex-full",
1529
1530
  "body-class": "flex-1",
1530
- onClick: o[5] || (o[5] = () => y.value = "")
1531
+ onClick: u[5] || (u[5] = () => k.value = "")
1531
1532
  }, {
1532
- header: t(() => [l(f, {
1533
+ header: t(() => [l(w, {
1533
1534
  class: "basic-header"
1534
1535
  }, {
1535
1536
  title: t(() => [l(e(W), {
1536
- loading: e(k),
1537
- onRefresh: e(r)
1537
+ loading: e(v),
1538
+ onRefresh: e(g)
1538
1539
  }, null, 8, ["loading", "onRefresh"]), l(e(te), {
1539
- onOpen: e(g)
1540
- }, null, 8, ["onOpen"]), l(u, {
1540
+ onOpen: e(m)
1541
+ }, null, 8, ["onOpen"]), l(n, {
1541
1542
  circle: "",
1542
1543
  icon: e(Ee),
1543
- onClick: e(x)
1544
+ onClick: e(C)
1544
1545
  }, null, 8, ["icon", "onClick"])]),
1545
- content: t(() => [l(C, {
1546
+ content: t(() => [l(f, {
1546
1547
  class: "search-bar"
1547
1548
  }, {
1548
- default: t(() => [l(n, {
1549
+ default: t(() => [l(h, {
1549
1550
  class: "basic-search-input",
1550
1551
  modelValue: e(s).keyword,
1551
- "onUpdate:modelValue": o[0] || (o[0] = (c) => e(s).keyword = c),
1552
+ "onUpdate:modelValue": u[0] || (u[0] = (A) => e(s).keyword = A),
1552
1553
  placeholder: e(a)("base.placeholder.keyword"),
1553
1554
  clearable: "",
1554
- onKeyup: o[1] || (o[1] = X((c) => e(p)(), ["enter"])),
1555
- onClear: o[2] || (o[2] = (c) => e(p)())
1556
- }, null, 8, ["modelValue", "placeholder"]), l(U, {
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, {
1557
1558
  modelValue: e(s).status,
1558
- "onUpdate:modelValue": o[3] || (o[3] = (c) => e(s).status = c),
1559
- onChange: o[4] || (o[4] = (c) => e(p)())
1559
+ "onUpdate:modelValue": u[3] || (u[3] = (A) => e(s).status = A),
1560
+ onChange: u[4] || (u[4] = (A) => e(p)())
1560
1561
  }, {
1561
- default: t(() => [(S(), T(N, null, j([0, 1, 2], (c) => l(h, {
1562
- key: c,
1563
- label: e(a)(`base.DISABLE_ENABLE.${c}`),
1564
- value: c
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
1565
1566
  }, null, 8, ["label", "value"])), 64))]),
1566
1567
  _: 1
1567
1568
  }, 8, ["modelValue"]), l(e(oe), {
1568
- disabled: e(k),
1569
+ disabled: e(v),
1569
1570
  onSearch: e(p)
1570
1571
  }, null, 8, ["disabled", "onSearch"])]),
1571
1572
  _: 1
@@ -1583,10 +1584,10 @@ const Te = /* @__PURE__ */ O({
1583
1584
  }, null, 8, ["url", "search-param"]), l($e, {
1584
1585
  ref_key: "formModalRef",
1585
1586
  ref: _,
1586
- onRefresh: e(r)
1587
+ onRefresh: e(g)
1587
1588
  }, null, 8, ["onRefresh"]), l(Fe, {
1588
1589
  ref_key: "ruleFormModalRef",
1589
- ref: m,
1590
+ ref: U,
1590
1591
  onRefresh: e(r)
1591
1592
  }, null, 8, ["onRefresh"])]),
1592
1593
  _: 1
@@ -1603,83 +1604,83 @@ const Te = /* @__PURE__ */ O({
1603
1604
  disabled: { type: Boolean, default: !1 }
1604
1605
  },
1605
1606
  emits: ["update:modelValue"],
1606
- setup(w, { expose: A, emit: y }) {
1607
- const { requesting: M } = z(F), k = w, V = y, _ = Q(!1), s = fe({
1607
+ setup(x, { expose: R, emit: k }) {
1608
+ const { requesting: M } = z(F), v = x, V = k, _ = Q(!1), s = fe({
1608
1609
  checkAll: !1,
1609
1610
  indeterminate: !1,
1610
1611
  MenuAll: {},
1611
1612
  MenuList: {},
1612
1613
  MenuIndeterminate: {}
1613
1614
  }), { options: p, refresh: r } = ue(
1614
- re(k, "modelValue"),
1615
+ re(v, "modelValue"),
1615
1616
  V,
1616
1617
  { key: "RULE_CHECK", api: F, url: F.urls.rules, isArray: !0 },
1617
1618
  !1
1618
1619
  );
1619
1620
  function g() {
1620
- p.value.forEach((i) => {
1621
+ p.value.forEach((c) => {
1621
1622
  var o;
1622
- (o = i.rules) != null && o.length && (s.MenuAll[i.id] = !1, s.MenuIndeterminate[i.id] = !1, s.MenuList[i.id] = []);
1623
+ (o = c.rules) != null && o.length && (s.MenuAll[c.id] = !1, s.MenuIndeterminate[c.id] = !1, s.MenuList[c.id] = []);
1623
1624
  });
1624
1625
  }
1625
- function b(i) {
1626
+ function m(c) {
1626
1627
  p.value.forEach((o) => {
1627
1628
  var u;
1628
- (u = o.rules) != null && u.length && (s.MenuList[o.id] = i ? o.rules.map((n) => n.key) : []);
1629
- }), x();
1629
+ (u = o.rules) != null && u.length && (s.MenuList[o.id] = c ? o.rules.map((n) => n.key) : []);
1630
+ }), U();
1630
1631
  }
1631
- function m(i, o) {
1632
+ function i(c, o) {
1632
1633
  const u = p.value.find((n) => n.id === o);
1633
- s.MenuList[o] = i && u ? u.rules.map((n) => n.key) : [], x();
1634
+ s.MenuList[o] = c && u ? u.rules.map((n) => n.key) : [], U();
1634
1635
  }
1635
- function x() {
1636
- p.value.forEach((i) => {
1636
+ function U() {
1637
+ p.value.forEach((c) => {
1637
1638
  var n, h;
1638
- const o = ((n = i.rules) == null ? void 0 : n.length) || 0, u = ((h = s.MenuList[i.id]) == null ? void 0 : h.length) || 0;
1639
- s.MenuAll[i.id] = u === o && o > 0, s.MenuIndeterminate[i.id] = u > 0 && u < o;
1640
- }), s.checkAll = Object.values(s.MenuAll).every(Boolean), s.indeterminate = !s.checkAll && Object.values(s.MenuList).some((i) => i.length > 0), V("update:modelValue", Object.values(s.MenuList).flat());
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());
1641
1642
  }
1642
- function R() {
1643
+ function C() {
1643
1644
  s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {}, g(), V("update:modelValue", []), _.value = !1;
1644
1645
  }
1645
- function q(i) {
1646
+ function E(c) {
1646
1647
  var o;
1647
1648
  if (Array.isArray(p.value) && p.value.length > 0) {
1648
1649
  for (let u of p.value)
1649
1650
  if (Array.isArray(u.rules) && u.rules.length > 0)
1650
1651
  for (let n of u.rules)
1651
- i.some((h) => h === n.key) && (s.MenuList[u.id] = (((o = s.MenuList) == null ? void 0 : o[u.id]) || []).concat([
1652
+ c.some((h) => h === n.key) && (s.MenuList[u.id] = (((o = s.MenuList) == null ? void 0 : o[u.id]) || []).concat([
1652
1653
  n.key
1653
1654
  ]));
1654
- x(), _.value = !0;
1655
+ U(), _.value = !0;
1655
1656
  }
1656
1657
  }
1657
1658
  return ge(async () => {
1658
- var i;
1659
- (i = p.value) != null && i.length || await r(), !_.value && k.modelValue && q(k.modelValue);
1659
+ var c;
1660
+ (c = p.value) != null && c.length || await r(), !_.value && v.modelValue && E(v.modelValue);
1660
1661
  }), he(
1661
- () => k.modelValue,
1662
- (i) => {
1662
+ () => v.modelValue,
1663
+ (c) => {
1663
1664
  Ve(() => {
1664
1665
  var o;
1665
- _.value || !((o = p.value) != null && o.length) || i && i.length > 0 && q(i);
1666
+ _.value || !((o = p.value) != null && o.length) || c && c.length > 0 && E(c);
1666
1667
  });
1667
1668
  },
1668
1669
  { deep: !0, immediate: !0 }
1669
- ), A({
1670
- generateOption: q,
1671
- cleanChecked: R
1672
- }), (i, o) => {
1673
- const u = d("el-checkbox"), n = d("el-space"), h = d("el-text"), U = d("el-divider"), C = d("el-checkbox-group");
1674
- return S(), T("div", ze, [
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, [
1675
1676
  l(n, { style: { "margin-bottom": "6px" } }, {
1676
1677
  default: t(() => [
1677
1678
  l(u, {
1678
1679
  "model-value": s.checkAll,
1679
1680
  indeterminate: s.indeterminate,
1680
1681
  id: "all",
1681
- disabled: w.disabled,
1682
- onChange: b
1682
+ disabled: x.disabled,
1683
+ onChange: m
1683
1684
  }, {
1684
1685
  default: t(() => o[1] || (o[1] = [
1685
1686
  K("span", null, "全选", -1)
@@ -1702,7 +1703,7 @@ const Te = /* @__PURE__ */ O({
1702
1703
  class: "rule-check-content"
1703
1704
  }, {
1704
1705
  default: t(() => [
1705
- (S(!0), T(N, null, j(e(p), (f) => (S(), T("div", {
1706
+ (q(!0), T(N, null, j(e(p), (f) => (q(), T("div", {
1706
1707
  key: f.id
1707
1708
  }, [
1708
1709
  l(n, {
@@ -1713,9 +1714,9 @@ const Te = /* @__PURE__ */ O({
1713
1714
  l(u, {
1714
1715
  style: { "min-width": "150px" },
1715
1716
  "model-value": s.MenuAll[f.id],
1716
- disabled: w.disabled || !f.rules || f.rules.length <= 0,
1717
+ disabled: x.disabled || !f.rules || f.rules.length <= 0,
1717
1718
  indeterminate: s.MenuIndeterminate[f.id],
1718
- onChange: (v) => m(v, f.id)
1719
+ onChange: (w) => i(w, f.id)
1719
1720
  }, {
1720
1721
  default: t(() => [
1721
1722
  l(h, { style: { "font-size": "15px" } }, {
@@ -1727,22 +1728,22 @@ const Te = /* @__PURE__ */ O({
1727
1728
  ]),
1728
1729
  _: 2
1729
1730
  }, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
1730
- l(U, { direction: "vertical" }),
1731
- f.rules ? (S(), $(C, {
1731
+ l(y, { direction: "vertical" }),
1732
+ f.rules ? (q(), $(S, {
1732
1733
  key: 0,
1733
1734
  modelValue: s.MenuList[f.id],
1734
- "onUpdate:modelValue": (v) => s.MenuList[f.id] = v,
1735
- disabled: w.disabled,
1735
+ "onUpdate:modelValue": (w) => s.MenuList[f.id] = w,
1736
+ disabled: x.disabled,
1736
1737
  style: { margin: "auto" },
1737
- onChange: x
1738
+ onChange: U
1738
1739
  }, {
1739
1740
  default: t(() => [
1740
- (S(!0), T(N, null, j(f.rules, (v) => (S(), $(u, {
1741
- key: v.key,
1742
- value: v.key
1741
+ (q(!0), T(N, null, j(f.rules, (w) => (q(), $(u, {
1742
+ key: w.key,
1743
+ value: w.key
1743
1744
  }, {
1744
1745
  default: t(() => [
1745
- K("div", Be, G(v.translate), 1)
1746
+ K("div", Be, G(w.translate), 1)
1746
1747
  ]),
1747
1748
  _: 2
1748
1749
  }, 1032, ["value"]))), 128))
@@ -1762,8 +1763,8 @@ const Te = /* @__PURE__ */ O({
1762
1763
  }), Ke = /* @__PURE__ */ O({
1763
1764
  __name: "RoleFormModal",
1764
1765
  emits: ["refresh"],
1765
- setup(w, { expose: A, emit: y }) {
1766
- const M = y, k = Q(), V = {
1766
+ setup(x, { expose: R, emit: k }) {
1767
+ const M = k, v = Q(), V = {
1767
1768
  key: "",
1768
1769
  module: "",
1769
1770
  sort: 0,
@@ -1791,52 +1792,52 @@ const Te = /* @__PURE__ */ O({
1791
1792
  title: p,
1792
1793
  form: r,
1793
1794
  formData: g,
1794
- requesting: b,
1795
- executing: m,
1796
- open: x,
1797
- modify: R,
1798
- submit: q,
1799
- closed: i
1795
+ requesting: m,
1796
+ executing: i,
1797
+ open: U,
1798
+ modify: C,
1799
+ submit: E,
1800
+ closed: c
1800
1801
  } = I(M, V, J), o = () => {
1801
1802
  var u;
1802
- (u = k.value) == null || u.cleanChecked(), i();
1803
+ (u = v.value) == null || u.cleanChecked(), c();
1803
1804
  };
1804
- return A({
1805
- open: x,
1806
- modify: R
1805
+ return R({
1806
+ open: U,
1807
+ modify: C
1807
1808
  }), (u, n) => {
1808
- const h = d("el-input"), U = d("el-form-item"), C = d("el-col"), f = d("el-input-number"), v = d("el-row"), c = d("el-form");
1809
- return S(), $(e(Y), {
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), {
1810
1811
  modelValue: e(s),
1811
- "onUpdate:modelValue": n[6] || (n[6] = (L) => D(s) ? s.value = L : null),
1812
+ "onUpdate:modelValue": n[6] || (n[6] = (A) => D(s) ? s.value = A : null),
1812
1813
  title: e(p)(),
1813
1814
  width: "1000px",
1814
- executing: e(m),
1815
+ executing: e(i),
1815
1816
  onClosed: o,
1816
- onSubmit: e(q)
1817
+ onSubmit: e(E)
1817
1818
  }, {
1818
1819
  default: t(() => [
1819
- l(c, {
1820
+ l(b, {
1820
1821
  ref_key: "form",
1821
1822
  ref: r,
1822
1823
  model: e(g),
1823
1824
  "label-width": "auto",
1824
1825
  rules: _,
1825
- disabled: e(b) || e(m)
1826
+ disabled: e(m) || e(i)
1826
1827
  }, {
1827
1828
  default: t(() => [
1828
- l(v, { gutter: 20 }, {
1829
+ l(w, { gutter: 20 }, {
1829
1830
  default: t(() => [
1830
- l(C, { span: 12 }, {
1831
+ l(S, { span: 12 }, {
1831
1832
  default: t(() => [
1832
- l(U, {
1833
+ l(y, {
1833
1834
  label: e(a)("base.module"),
1834
1835
  prop: "module"
1835
1836
  }, {
1836
1837
  default: t(() => [
1837
1838
  l(h, {
1838
1839
  modelValue: e(g).module,
1839
- "onUpdate:modelValue": n[0] || (n[0] = (L) => e(g).module = L),
1840
+ "onUpdate:modelValue": n[0] || (n[0] = (A) => e(g).module = A),
1840
1841
  placeholder: e(a)("base.placeholder.input")
1841
1842
  }, null, 8, ["modelValue", "placeholder"])
1842
1843
  ]),
@@ -1845,9 +1846,9 @@ const Te = /* @__PURE__ */ O({
1845
1846
  ]),
1846
1847
  _: 1
1847
1848
  }),
1848
- l(C, { span: 12 }, {
1849
+ l(S, { span: 12 }, {
1849
1850
  default: t(() => [
1850
- l(U, {
1851
+ l(y, {
1851
1852
  label: e(a)("base.sort"),
1852
1853
  prop: "sort"
1853
1854
  }, {
@@ -1855,7 +1856,7 @@ const Te = /* @__PURE__ */ O({
1855
1856
  l(f, {
1856
1857
  class: "w-full",
1857
1858
  modelValue: e(g).sort,
1858
- "onUpdate:modelValue": n[1] || (n[1] = (L) => e(g).sort = L),
1859
+ "onUpdate:modelValue": n[1] || (n[1] = (A) => e(g).sort = A),
1859
1860
  min: 0,
1860
1861
  placeholder: e(a)("base.placeholder.input")
1861
1862
  }, null, 8, ["modelValue", "placeholder"])
@@ -1868,56 +1869,56 @@ const Te = /* @__PURE__ */ O({
1868
1869
  ]),
1869
1870
  _: 1
1870
1871
  }),
1871
- l(U, {
1872
+ l(y, {
1872
1873
  label: e(a)("base.name"),
1873
1874
  prop: "name"
1874
1875
  }, {
1875
1876
  default: t(() => [
1876
1877
  l(h, {
1877
1878
  modelValue: e(g).name,
1878
- "onUpdate:modelValue": n[2] || (n[2] = (L) => e(g).name = L),
1879
+ "onUpdate:modelValue": n[2] || (n[2] = (A) => e(g).name = A),
1879
1880
  placeholder: e(a)("base.placeholder.input")
1880
1881
  }, null, 8, ["modelValue", "placeholder"])
1881
1882
  ]),
1882
1883
  _: 1
1883
1884
  }, 8, ["label"]),
1884
- l(U, {
1885
+ l(y, {
1885
1886
  label: e(a)("base.en_name"),
1886
1887
  prop: "en_name"
1887
1888
  }, {
1888
1889
  default: t(() => [
1889
1890
  l(h, {
1890
1891
  modelValue: e(g).en_name,
1891
- "onUpdate:modelValue": n[3] || (n[3] = (L) => e(g).en_name = L),
1892
+ "onUpdate:modelValue": n[3] || (n[3] = (A) => e(g).en_name = A),
1892
1893
  placeholder: e(a)("base.placeholder.input")
1893
1894
  }, null, 8, ["modelValue", "placeholder"])
1894
1895
  ]),
1895
1896
  _: 1
1896
1897
  }, 8, ["label"]),
1897
- l(U, {
1898
+ l(y, {
1898
1899
  label: e(a)("base.remark"),
1899
1900
  prop: "remark"
1900
1901
  }, {
1901
1902
  default: t(() => [
1902
1903
  l(h, {
1903
1904
  modelValue: e(g).remark,
1904
- "onUpdate:modelValue": n[4] || (n[4] = (L) => e(g).remark = L),
1905
+ "onUpdate:modelValue": n[4] || (n[4] = (A) => e(g).remark = A),
1905
1906
  placeholder: e(a)("base.placeholder.input")
1906
1907
  }, null, 8, ["modelValue", "placeholder"])
1907
1908
  ]),
1908
1909
  _: 1
1909
1910
  }, 8, ["label"]),
1910
- l(U, {
1911
+ l(y, {
1911
1912
  label: e(a)("base.rules"),
1912
1913
  prop: "rules"
1913
1914
  }, {
1914
1915
  default: t(() => [
1915
1916
  l(Ne, {
1916
1917
  ref_key: "rulesCheck",
1917
- ref: k,
1918
+ ref: v,
1918
1919
  modelValue: e(g).rules,
1919
- "onUpdate:modelValue": n[5] || (n[5] = (L) => e(g).rules = L),
1920
- disabled: e(b) || e(m)
1920
+ "onUpdate:modelValue": n[5] || (n[5] = (A) => e(g).rules = A),
1921
+ disabled: e(m) || e(i)
1921
1922
  }, null, 8, ["modelValue", "disabled"])
1922
1923
  ]),
1923
1924
  _: 1
@@ -1932,10 +1933,10 @@ const Te = /* @__PURE__ */ O({
1932
1933
  }
1933
1934
  }), je = /* @__PURE__ */ O({
1934
1935
  __name: "index",
1935
- setup(w) {
1936
- const A = {
1936
+ setup(x) {
1937
+ const R = {
1937
1938
  keyword: ""
1938
- }, y = [
1939
+ }, k = [
1939
1940
  {
1940
1941
  label: a("base.sort"),
1941
1942
  prop: "sort",
@@ -1968,31 +1969,31 @@ const Te = /* @__PURE__ */ O({
1968
1969
  width: 60,
1969
1970
  align: "center",
1970
1971
  render: ({
1971
- row: b
1972
+ row: m
1972
1973
  }) => l(ee, {
1973
1974
  onModify: () => g({
1974
- key: b.key
1975
+ key: m.key
1975
1976
  })
1976
1977
  }, null)
1977
1978
  }
1978
1979
  ], {
1979
1980
  requesting: M
1980
1981
  } = z(J), {
1981
- tableRef: k,
1982
+ tableRef: v,
1982
1983
  formModalRef: V,
1983
1984
  keyword: _,
1984
1985
  search: s,
1985
1986
  reset: p,
1986
1987
  openFormModal: r,
1987
1988
  editFormModal: g
1988
- } = P(A);
1989
- return (b, m) => {
1990
- const x = d("el-input"), R = d("el-space"), q = d("el-page-header"), i = d("el-card");
1991
- return S(), $(i, {
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, {
1992
1993
  class: "basic-card flex-full",
1993
1994
  "body-class": "flex-1"
1994
1995
  }, {
1995
- header: t(() => [l(q, {
1996
+ header: t(() => [l(E, {
1996
1997
  class: "basic-header"
1997
1998
  }, {
1998
1999
  title: t(() => [l(e(W), {
@@ -2001,20 +2002,20 @@ const Te = /* @__PURE__ */ O({
2001
2002
  }, null, 8, ["loading", "onRefresh"]), l(e(te), {
2002
2003
  onOpen: e(r)
2003
2004
  }, null, 8, ["onOpen"])]),
2004
- content: t(() => [l(R, {
2005
+ content: t(() => [l(C, {
2005
2006
  class: "search-bar"
2006
2007
  }, {
2007
- default: t(() => [l(x, {
2008
+ default: t(() => [l(U, {
2008
2009
  class: "basic-search-input",
2009
2010
  modelValue: e(_).keyword,
2010
- "onUpdate:modelValue": m[0] || (m[0] = (o) => e(_).keyword = o),
2011
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => e(_).keyword = o),
2011
2012
  placeholder: e(a)("base.placeholder.keyword"),
2012
2013
  clearable: "",
2013
- onKeyup: m[1] || (m[1] = X((o) => e(s)(), ["enter"])),
2014
- onClear: m[2] || (m[2] = (o) => e(s)())
2014
+ onKeyup: i[1] || (i[1] = X((o) => e(s)(), ["enter"])),
2015
+ onClear: i[2] || (i[2] = (o) => e(s)())
2015
2016
  }, null, 8, ["modelValue", "placeholder"]), l(e(oe), {
2016
2017
  disabled: e(M),
2017
- onSearch: m[3] || (m[3] = (o) => e(s)())
2018
+ onSearch: i[3] || (i[3] = (o) => e(s)())
2018
2019
  }, null, 8, ["disabled"])]),
2019
2020
  _: 1
2020
2021
  })]),
@@ -2022,9 +2023,9 @@ const Te = /* @__PURE__ */ O({
2022
2023
  })]),
2023
2024
  default: t(() => [l(e(le), {
2024
2025
  ref_key: "tableRef",
2025
- ref: k,
2026
+ ref: v,
2026
2027
  size: "small",
2027
- columns: y,
2028
+ columns: k,
2028
2029
  url: e(J).urls[e(ae)],
2029
2030
  "search-param": e(_),
2030
2031
  autoSearch: ""
@@ -2041,11 +2042,20 @@ const Te = /* @__PURE__ */ O({
2041
2042
  __proto__: null,
2042
2043
  default: je
2043
2044
  }, Symbol.toStringTag, { value: "Module" })), We = {
2044
- install: (w, A) => {
2045
- Reflect.ownKeys(w._context.provides).some((y) => String(y) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.log(Reflect.ownKeys(w._context.provides));
2045
+ install: (x, R) => {
2046
+ Reflect.ownKeys(x._context.provides).some(
2047
+ (k) => String(k) === "Symbol(pinia)"
2048
+ ) || console.warn(
2049
+ "Pinia is not provided. Please install and provide Pinia in your app."
2050
+ ), console.log(Reflect.ownKeys(x._context.provides));
2046
2051
  },
2047
2052
  version: "__VERSION__"
2048
- }, He = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": Ae, "./views/language/index.vue": Se, "./views/menu/index.vue": De, "./views/role/index.vue": Pe });
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
2058
+ });
2049
2059
  export {
2050
2060
  Me as AdminsPage,
2051
2061
  Ce as LanguagesPage,