auto-vue-basic 0.0.21 → 0.0.23

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 z, reactive as F, computed as fe, ref as de, resolveComponent as s, createBlock as E, openBlock as A, unref as e, isRef as D, withCtx as n, createVNode as l, withDirectives as N, vShow as j, createTextVNode as B, createElementBlock as I, Fragment as P, renderList as Y, toDisplayString as re, withKeys as Z, createElementVNode as Q, toRef as se, normalizeClass as be, onMounted as _e, watch as ge, nextTick as he, createCommentVNode as Ve } from "vue";
2
- import { createAutoApi as ee, Translate as a, RulesUtils as ye, useForm as H, FormDialog as G, ModifyButton as le, useTablePage as W, useLoading as K, ProTable as ae, DEFAULT_PAGE_KEY as oe, RefreshButton as T, OpenButton as te, SearchButton as ne, DEFAULT_STATUS_KEY as me, AutoApiUtils as ke, useSelect as pe } from "auto-vue-manual";
3
- const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__ */ z({
1
+ import { defineComponent as $, reactive as F, computed as _e, ref as Z, resolveComponent as d, createBlock as L, openBlock as S, unref as e, isRef as I, withCtx as n, createVNode as l, withDirectives as j, vShow as B, createTextVNode as N, createElementBlock as T, Fragment as P, renderList as Y, toDisplayString as ue, withKeys as ee, createElementVNode as Q, toRef as de, normalizeClass as ge, isVNode as he, onMounted as Ve, watch as ye, nextTick as ke, createCommentVNode as ve } from "vue";
2
+ import { createAutoApi as le, Translate as a, RulesUtils as we, useForm as H, FormDialog as G, ModifyButton as ae, useTablePage as W, useLoading as D, ProTable as oe, DEFAULT_PAGE_KEY as te, RefreshButton as K, OpenButton as ne, SearchButton as re, DEFAULT_STATUS_KEY as ce, AutoApiUtils as xe, useSelect as pe, DEFAULT_REMOVE_KEY as Ue } from "auto-vue-manual";
3
+ const se = le("admin", {}, "key"), X = le("role", {}, "key"), Ce = /* @__PURE__ */ $({
4
4
  __name: "info",
5
5
  emits: ["refresh"],
6
- setup(M, { expose: U, emit: k }) {
7
- const S = k, t = F({
6
+ setup(x, { expose: C, emit: y }) {
7
+ const M = y, t = F({
8
8
  key: "",
9
9
  username: "",
10
10
  password: "",
@@ -13,15 +13,15 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
13
13
  language: "zh-CN",
14
14
  remark: "",
15
15
  roles: []
16
- }), f = fe(() => !t.key), c = {
16
+ }), c = _e(() => !t.key), f = {
17
17
  username: [
18
18
  { required: !0, message: a("base.placeholder.input base.username"), trigger: "blur" }
19
19
  ],
20
20
  phone: [
21
- { required: !0, validator: ye.phoneRule, message: a("base.placeholder.input base.phone"), trigger: "blur" }
21
+ { required: !0, validator: we.phoneRule, message: a("base.placeholder.input base.phone"), trigger: "blur" }
22
22
  ],
23
23
  password: [
24
- { required: f, message: a("base.placeholder.input base.password"), trigger: "blur" }
24
+ { required: c, message: a("base.placeholder.input base.password"), trigger: "blur" }
25
25
  ],
26
26
  email: [
27
27
  { required: !0, message: a("base.placeholder.input base.email"), trigger: "blur" }
@@ -32,119 +32,119 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
32
32
  roles: [
33
33
  { required: !0, type: "array", message: a("base.placeholder.select base.roles"), trigger: "change" }
34
34
  ]
35
- }, d = de([]), g = async () => {
36
- const r = await X.list();
37
- d.value = Array.isArray(r == null ? void 0 : r.data) ? r.data : [];
38
- }, { modal: v, title: R, form: h, requesting: V, executing: _, open: q, modify: C, submit: p, closed: o } = H(
39
- S,
35
+ }, s = Z([]), _ = async () => {
36
+ const u = await X.list();
37
+ s.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
38
+ }, { modal: w, title: R, form: h, requesting: V, executing: g, open: O, modify: q, submit: i, closed: o } = H(
39
+ M,
40
40
  t,
41
- ue
41
+ se
42
42
  );
43
- return U({
44
- openOrModify: async (r) => {
45
- d.value.length || await g(), r ? C({ key: r }) : q();
43
+ return C({
44
+ openOrModify: async (u) => {
45
+ s.value.length || await _(), u ? q({ key: u }) : O();
46
46
  }
47
- }), (r, i) => {
48
- const w = s("el-form-item"), x = s("el-input"), m = s("el-radio-button"), y = s("el-radio-group"), b = s("el-checkbox"), L = s("el-checkbox-group"), ce = s("el-form");
49
- return A(), E(e(G), {
50
- modelValue: e(v),
51
- "onUpdate:modelValue": i[7] || (i[7] = (O) => D(v) ? v.value = O : null),
47
+ }), (u, p) => {
48
+ const k = d("el-form-item"), U = d("el-input"), b = d("el-radio-button"), v = d("el-radio-group"), m = d("el-checkbox"), E = d("el-checkbox-group"), be = d("el-form");
49
+ return S(), L(e(G), {
50
+ modelValue: e(w),
51
+ "onUpdate:modelValue": p[7] || (p[7] = (A) => I(w) ? w.value = A : null),
52
52
  title: e(R)(),
53
53
  width: "600px",
54
- executing: e(_),
54
+ executing: e(g),
55
55
  onClosed: e(o),
56
- onSubmit: e(p)
56
+ onSubmit: e(i)
57
57
  }, {
58
58
  default: n(() => [
59
- l(ce, {
59
+ l(be, {
60
60
  ref_key: "form",
61
61
  ref: h,
62
62
  model: t,
63
63
  "label-width": "auto",
64
- rules: c,
65
- disabled: e(V) || e(_)
64
+ rules: f,
65
+ disabled: e(V) || e(g)
66
66
  }, {
67
67
  default: n(() => [
68
- N(l(w, { prop: "key" }, null, 512), [
69
- [j, !1]
68
+ j(l(k, { prop: "key" }, null, 512), [
69
+ [B, !1]
70
70
  ]),
71
- l(w, {
71
+ l(k, {
72
72
  label: e(a)("base.username"),
73
73
  prop: "username"
74
74
  }, {
75
75
  default: n(() => [
76
- l(x, {
76
+ l(U, {
77
77
  modelValue: t.username,
78
- "onUpdate:modelValue": i[0] || (i[0] = (O) => t.username = O),
78
+ "onUpdate:modelValue": p[0] || (p[0] = (A) => t.username = A),
79
79
  placeholder: e(a)("base.placeholder.input"),
80
80
  autocomplete: "off"
81
81
  }, null, 8, ["modelValue", "placeholder"])
82
82
  ]),
83
83
  _: 1
84
84
  }, 8, ["label"]),
85
- l(w, {
85
+ l(k, {
86
86
  label: e(a)("base.phone"),
87
87
  prop: "phone"
88
88
  }, {
89
89
  default: n(() => [
90
- l(x, {
90
+ l(U, {
91
91
  modelValue: t.phone,
92
- "onUpdate:modelValue": i[1] || (i[1] = (O) => t.phone = O),
92
+ "onUpdate:modelValue": p[1] || (p[1] = (A) => t.phone = A),
93
93
  placeholder: e(a)("base.placeholder.input"),
94
94
  autocomplete: "off"
95
95
  }, null, 8, ["modelValue", "placeholder"])
96
96
  ]),
97
97
  _: 1
98
98
  }, 8, ["label"]),
99
- l(w, {
99
+ l(k, {
100
100
  label: e(a)("base.password"),
101
101
  prop: "password",
102
- required: f.value
102
+ required: c.value
103
103
  }, {
104
104
  default: n(() => [
105
- l(x, {
105
+ l(U, {
106
106
  modelValue: t.password,
107
- "onUpdate:modelValue": i[2] || (i[2] = (O) => t.password = O),
107
+ "onUpdate:modelValue": p[2] || (p[2] = (A) => t.password = A),
108
108
  placeholder: e(a)("base.placeholder.input"),
109
- "show-password": "",
110
109
  autocomplete: "off"
111
110
  }, null, 8, ["modelValue", "placeholder"])
112
111
  ]),
113
112
  _: 1
114
113
  }, 8, ["label", "required"]),
115
- l(w, {
114
+ l(k, {
116
115
  label: e(a)("base.email"),
117
116
  prop: "email"
118
117
  }, {
119
118
  default: n(() => [
120
- l(x, {
119
+ l(U, {
121
120
  modelValue: t.email,
122
- "onUpdate:modelValue": i[3] || (i[3] = (O) => t.email = O),
123
- placeholder: e(a)("base.placeholder.input")
121
+ "onUpdate:modelValue": p[3] || (p[3] = (A) => t.email = A),
122
+ placeholder: e(a)("base.placeholder.input"),
123
+ autocomplete: "off"
124
124
  }, null, 8, ["modelValue", "placeholder"])
125
125
  ]),
126
126
  _: 1
127
127
  }, 8, ["label"]),
128
- l(w, {
128
+ l(k, {
129
129
  label: e(a)("base.language"),
130
130
  prop: "language"
131
131
  }, {
132
132
  default: n(() => [
133
- l(y, {
133
+ l(v, {
134
134
  modelValue: t.language,
135
- "onUpdate:modelValue": i[4] || (i[4] = (O) => t.language = O)
135
+ "onUpdate:modelValue": p[4] || (p[4] = (A) => t.language = A)
136
136
  }, {
137
137
  default: n(() => [
138
- l(m, { label: "zh-CN" }, {
139
- default: n(() => i[8] || (i[8] = [
140
- B("zh-CN")
138
+ l(b, { label: "zh-CN" }, {
139
+ default: n(() => p[8] || (p[8] = [
140
+ N("zh-CN")
141
141
  ])),
142
142
  _: 1,
143
143
  __: [8]
144
144
  }),
145
- l(m, { label: "en-US" }, {
146
- default: n(() => i[9] || (i[9] = [
147
- B("en-US")
145
+ l(b, { label: "en-US" }, {
146
+ default: n(() => p[9] || (p[9] = [
147
+ N("en-US")
148
148
  ])),
149
149
  _: 1,
150
150
  __: [9]
@@ -155,22 +155,22 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
155
155
  ]),
156
156
  _: 1
157
157
  }, 8, ["label"]),
158
- l(w, {
158
+ l(k, {
159
159
  label: e(a)("base.roles"),
160
160
  prop: "roles"
161
161
  }, {
162
162
  default: n(() => [
163
- l(L, {
163
+ l(E, {
164
164
  modelValue: t.roles,
165
- "onUpdate:modelValue": i[5] || (i[5] = (O) => t.roles = O)
165
+ "onUpdate:modelValue": p[5] || (p[5] = (A) => t.roles = A)
166
166
  }, {
167
167
  default: n(() => [
168
- (A(!0), I(P, null, Y(d.value, (O) => (A(), E(b, {
169
- key: O.key,
170
- label: O.key
168
+ (S(!0), T(P, null, Y(s.value, (A) => (S(), L(m, {
169
+ key: A.key,
170
+ label: A.key
171
171
  }, {
172
172
  default: n(() => [
173
- B(re(O.translate), 1)
173
+ N(ue(A.translate), 1)
174
174
  ]),
175
175
  _: 2
176
176
  }, 1032, ["label"]))), 128))
@@ -180,14 +180,14 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
180
180
  ]),
181
181
  _: 1
182
182
  }, 8, ["label"]),
183
- l(w, {
183
+ l(k, {
184
184
  label: e(a)("base.remark"),
185
185
  prop: "remark"
186
186
  }, {
187
187
  default: n(() => [
188
- l(x, {
188
+ l(U, {
189
189
  modelValue: t.remark,
190
- "onUpdate:modelValue": i[6] || (i[6] = (O) => t.remark = O),
190
+ "onUpdate:modelValue": p[6] || (p[6] = (A) => t.remark = A),
191
191
  placeholder: e(a)("base.placeholder.input")
192
192
  }, null, 8, ["modelValue", "placeholder"])
193
193
  ]),
@@ -201,18 +201,18 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
201
201
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
202
202
  };
203
203
  }
204
- }), we = /* @__PURE__ */ z({
204
+ }), Re = /* @__PURE__ */ $({
205
205
  __name: "index",
206
- setup(M) {
207
- const U = {
206
+ setup(x) {
207
+ const C = {
208
208
  keyword: ""
209
- }, k = [{
209
+ }, y = [{
210
210
  label: a("base.avatar"),
211
211
  prop: "avatar",
212
212
  width: 60,
213
213
  render: ({
214
214
  row: V
215
- }) => l(s("el-avatar"), {
215
+ }) => l(d("el-avatar"), {
216
216
  size: "default",
217
217
  src: V.avatar
218
218
  }, null)
@@ -222,7 +222,7 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
222
222
  align: "left",
223
223
  render: ({
224
224
  row: V
225
- }) => l(s("el-space"), {
225
+ }) => l(d("el-space"), {
226
226
  direction: "vertical",
227
227
  alignment: "start"
228
228
  }, {
@@ -255,80 +255,80 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
255
255
  align: "center",
256
256
  render: ({
257
257
  row: V
258
- }) => l(le, {
258
+ }) => l(ae, {
259
259
  onModify: () => h(V.key)
260
260
  }, null)
261
261
  }], {
262
- requesting: S
263
- } = K(ue), {
262
+ requesting: M
263
+ } = D(se), {
264
264
  tableRef: t,
265
- infoRef: f,
266
- keyword: c,
267
- search: d,
268
- refresh: g,
269
- reset: v,
265
+ infoRef: c,
266
+ keyword: f,
267
+ search: s,
268
+ refresh: _,
269
+ reset: w,
270
270
  openInfo: R,
271
271
  modifyInfo: h
272
- } = W(U);
273
- return (V, _) => {
274
- const q = s("el-input"), C = s("el-space"), p = s("el-card");
275
- return A(), E(p, {
272
+ } = W(C);
273
+ return (V, g) => {
274
+ const O = d("el-input"), q = d("el-space"), i = d("el-card");
275
+ return S(), L(i, {
276
276
  class: "basic-card flex-full",
277
277
  "body-class": "flex-1"
278
278
  }, {
279
- header: n(() => [l(C, {
279
+ header: n(() => [l(q, {
280
280
  class: "search-bar"
281
281
  }, {
282
- default: n(() => [l(e(T), {
283
- loading: e(S),
284
- onRefresh: e(g)
285
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
282
+ default: n(() => [l(e(K), {
283
+ loading: e(M),
284
+ onRefresh: e(_)
285
+ }, null, 8, ["loading", "onRefresh"]), l(e(ne), {
286
286
  onOpen: e(R)
287
- }, null, 8, ["onOpen"]), l(q, {
287
+ }, null, 8, ["onOpen"]), l(O, {
288
288
  class: "basic-search-input",
289
- modelValue: e(c).keyword,
290
- "onUpdate:modelValue": _[0] || (_[0] = (o) => e(c).keyword = o),
289
+ modelValue: e(f).keyword,
290
+ "onUpdate:modelValue": g[0] || (g[0] = (o) => e(f).keyword = o),
291
291
  placeholder: e(a)("base.placeholder.keyword"),
292
292
  clearable: "",
293
- onKeyup: Z(e(d), ["enter"]),
294
- onClear: e(d)
295
- }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(ne), {
296
- onSearch: e(d)
293
+ onKeyup: ee(e(s), ["enter"]),
294
+ onClear: e(s)
295
+ }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(re), {
296
+ onSearch: e(s)
297
297
  }, null, 8, ["onSearch"])]),
298
298
  _: 1
299
299
  })]),
300
- default: n(() => [l(e(ae), {
300
+ default: n(() => [l(e(oe), {
301
301
  ref_key: "tableRef",
302
302
  ref: t,
303
303
  size: "small",
304
- columns: k,
305
- url: e(ue).urls[e(oe)],
306
- "search-param": e(c),
304
+ columns: y,
305
+ url: e(se).urls[e(te)],
306
+ "search-param": e(f),
307
307
  autoSearch: ""
308
- }, null, 8, ["url", "search-param"]), l(ve, {
308
+ }, null, 8, ["url", "search-param"]), l(Ce, {
309
309
  ref_key: "infoRef",
310
- ref: f,
311
- onRefresh: e(v)
310
+ ref: c,
311
+ onRefresh: e(w)
312
312
  }, null, 8, ["onRefresh"])]),
313
313
  _: 1
314
314
  });
315
315
  };
316
316
  }
317
- }), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
317
+ }), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
318
318
  __proto__: null,
319
- default: we
320
- }, Symbol.toStringTag, { value: "Module" })), J = ee("translate", {}, "key"), Ue = /* @__PURE__ */ z({
319
+ default: Re
320
+ }, Symbol.toStringTag, { value: "Module" })), J = le("translate", {}, "key"), Se = /* @__PURE__ */ $({
321
321
  __name: "info",
322
322
  emits: ["refresh"],
323
- setup(M, { expose: U, emit: k }) {
324
- const S = k, t = F({
323
+ setup(x, { expose: C, emit: y }) {
324
+ const M = y, t = F({
325
325
  id: 0,
326
326
  key: "",
327
327
  module: "",
328
328
  language: "",
329
329
  result: "",
330
330
  remark: ""
331
- }), f = {
331
+ }), c = {
332
332
  module: [
333
333
  { required: !0, message: a("language.placeholder.module"), trigger: "blur" }
334
334
  ],
@@ -341,88 +341,88 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
341
341
  result: [
342
342
  { required: !0, message: a("language.placeholder.result"), trigger: "blur" }
343
343
  ]
344
- }, { modal: c, title: d, form: g, requesting: v, executing: R, open: h, modify: V, submit: _, closed: q } = H(
345
- S,
344
+ }, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: O } = H(
345
+ M,
346
346
  t,
347
347
  J
348
348
  );
349
- return U({
350
- openOrModify: (p) => {
351
- p ? V({ id: p }) : h();
349
+ return C({
350
+ openOrModify: (i) => {
351
+ i ? V({ id: i }) : h();
352
352
  }
353
- }), (p, o) => {
354
- const u = s("el-form-item"), r = s("el-input"), i = s("el-radio-button"), w = s("el-radio-group"), x = s("el-form");
355
- return A(), E(e(G), {
356
- modelValue: e(c),
357
- "onUpdate:modelValue": o[5] || (o[5] = (m) => D(c) ? c.value = m : null),
358
- title: e(d)(),
353
+ }), (i, o) => {
354
+ const r = d("el-form-item"), u = d("el-input"), p = d("el-radio-button"), k = d("el-radio-group"), U = d("el-form");
355
+ return S(), L(e(G), {
356
+ modelValue: e(f),
357
+ "onUpdate:modelValue": o[5] || (o[5] = (b) => I(f) ? f.value = b : null),
358
+ title: e(s)(),
359
359
  width: "600px",
360
360
  executing: e(R),
361
- onClosed: e(q),
362
- onSubmit: e(_)
361
+ onClosed: e(O),
362
+ onSubmit: e(g)
363
363
  }, {
364
364
  default: n(() => [
365
- l(x, {
365
+ l(U, {
366
366
  ref_key: "form",
367
- ref: g,
367
+ ref: _,
368
368
  model: t,
369
369
  "label-width": "auto",
370
- rules: f,
371
- disabled: e(v) || e(R)
370
+ rules: c,
371
+ disabled: e(w) || e(R)
372
372
  }, {
373
373
  default: n(() => [
374
- N(l(u, { prop: "id" }, null, 512), [
375
- [j, !1]
374
+ j(l(r, { prop: "id" }, null, 512), [
375
+ [B, !1]
376
376
  ]),
377
- l(u, {
377
+ l(r, {
378
378
  label: e(a)("language.module"),
379
379
  prop: "module",
380
380
  required: ""
381
381
  }, {
382
382
  default: n(() => [
383
- l(r, {
383
+ l(u, {
384
384
  modelValue: t.module,
385
- "onUpdate:modelValue": o[0] || (o[0] = (m) => t.module = m),
385
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => t.module = b),
386
386
  placeholder: e(a)("language.placeholder.module")
387
387
  }, null, 8, ["modelValue", "placeholder"])
388
388
  ]),
389
389
  _: 1
390
390
  }, 8, ["label"]),
391
- l(u, {
391
+ l(r, {
392
392
  label: e(a)("language.key"),
393
393
  prop: "key",
394
394
  required: ""
395
395
  }, {
396
396
  default: n(() => [
397
- l(r, {
397
+ l(u, {
398
398
  modelValue: t.key,
399
- "onUpdate:modelValue": o[1] || (o[1] = (m) => t.key = m),
399
+ "onUpdate:modelValue": o[1] || (o[1] = (b) => t.key = b),
400
400
  placeholder: e(a)("language.placeholder.key")
401
401
  }, null, 8, ["modelValue", "placeholder"])
402
402
  ]),
403
403
  _: 1
404
404
  }, 8, ["label"]),
405
- l(u, {
405
+ l(r, {
406
406
  label: e(a)("language.language"),
407
407
  prop: "language",
408
408
  required: ""
409
409
  }, {
410
410
  default: n(() => [
411
- l(w, {
411
+ l(k, {
412
412
  modelValue: t.language,
413
- "onUpdate:modelValue": o[2] || (o[2] = (m) => t.language = m)
413
+ "onUpdate:modelValue": o[2] || (o[2] = (b) => t.language = b)
414
414
  }, {
415
415
  default: n(() => [
416
- l(i, { label: "zh-CN" }, {
416
+ l(p, { label: "zh-CN" }, {
417
417
  default: n(() => o[6] || (o[6] = [
418
- B("zh-CN")
418
+ N("zh-CN")
419
419
  ])),
420
420
  _: 1,
421
421
  __: [6]
422
422
  }),
423
- l(i, { label: "en-US" }, {
423
+ l(p, { label: "en-US" }, {
424
424
  default: n(() => o[7] || (o[7] = [
425
- B("en-US")
425
+ N("en-US")
426
426
  ])),
427
427
  _: 1,
428
428
  __: [7]
@@ -433,28 +433,28 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
433
433
  ]),
434
434
  _: 1
435
435
  }, 8, ["label"]),
436
- l(u, {
436
+ l(r, {
437
437
  label: e(a)("language.result"),
438
438
  prop: "result",
439
439
  required: ""
440
440
  }, {
441
441
  default: n(() => [
442
- l(r, {
442
+ l(u, {
443
443
  modelValue: t.result,
444
- "onUpdate:modelValue": o[3] || (o[3] = (m) => t.result = m),
444
+ "onUpdate:modelValue": o[3] || (o[3] = (b) => t.result = b),
445
445
  placeholder: e(a)("language.placeholder.result")
446
446
  }, null, 8, ["modelValue", "placeholder"])
447
447
  ]),
448
448
  _: 1
449
449
  }, 8, ["label"]),
450
- l(u, {
450
+ l(r, {
451
451
  label: e(a)("base.remark"),
452
452
  prop: "remark"
453
453
  }, {
454
454
  default: n(() => [
455
- l(r, {
455
+ l(u, {
456
456
  modelValue: t.remark,
457
- "onUpdate:modelValue": o[4] || (o[4] = (m) => t.remark = m),
457
+ "onUpdate:modelValue": o[4] || (o[4] = (b) => t.remark = b),
458
458
  placeholder: e(a)("base.placeholder.input")
459
459
  }, null, 8, ["modelValue", "placeholder"])
460
460
  ]),
@@ -468,13 +468,13 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
468
468
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
469
469
  };
470
470
  }
471
- }), Re = /* @__PURE__ */ z({
471
+ }), Oe = /* @__PURE__ */ $({
472
472
  __name: "index",
473
- setup(M) {
474
- const U = {
473
+ setup(x) {
474
+ const C = {
475
475
  keyword: "",
476
476
  status: 0
477
- }, k = [{
477
+ }, y = [{
478
478
  label: a("base.module"),
479
479
  prop: "module",
480
480
  width: 120
@@ -498,7 +498,7 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
498
498
  props: {
499
499
  activeValue: 1,
500
500
  inactiveValue: 2,
501
- api: J.urls[me],
501
+ api: J.urls[ce],
502
502
  refresh: !0
503
503
  }
504
504
  }, {
@@ -520,89 +520,89 @@ const ue = ee("admin", {}, "key"), X = ee("role", {}, "key"), ve = /* @__PURE__
520
520
  align: "center",
521
521
  render: ({
522
522
  row: V
523
- }) => l(le, {
523
+ }) => l(ae, {
524
524
  onModify: () => h(V.id)
525
525
  }, null)
526
526
  }], {
527
- requesting: S
528
- } = K(J), {
527
+ requesting: M
528
+ } = D(J), {
529
529
  tableRef: t,
530
- infoRef: f,
531
- keyword: c,
532
- search: d,
533
- refresh: g,
534
- reset: v,
530
+ infoRef: c,
531
+ keyword: f,
532
+ search: s,
533
+ refresh: _,
534
+ reset: w,
535
535
  openInfo: R,
536
536
  modifyInfo: h
537
- } = W(U);
538
- return (V, _) => {
539
- const q = s("el-input"), C = s("el-radio-button"), p = s("el-radio-group"), o = s("el-space"), u = s("el-card");
540
- return A(), E(u, {
537
+ } = W(C);
538
+ return (V, g) => {
539
+ const O = d("el-input"), q = d("el-radio-button"), i = d("el-radio-group"), o = d("el-space"), r = d("el-card");
540
+ return S(), L(r, {
541
541
  class: "basic-card flex-full",
542
542
  "body-class": "flex-1"
543
543
  }, {
544
544
  header: n(() => [l(o, {
545
545
  class: "search-bar"
546
546
  }, {
547
- default: n(() => [l(e(T), {
548
- loading: e(S),
549
- onRefresh: e(g)
550
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
547
+ default: n(() => [l(e(K), {
548
+ loading: e(M),
549
+ onRefresh: e(_)
550
+ }, null, 8, ["loading", "onRefresh"]), l(e(ne), {
551
551
  onOpen: e(R)
552
- }, null, 8, ["onOpen"]), l(q, {
552
+ }, null, 8, ["onOpen"]), l(O, {
553
553
  class: "basic-search-input",
554
- modelValue: e(c).keyword,
555
- "onUpdate:modelValue": _[0] || (_[0] = (r) => e(c).keyword = r),
554
+ modelValue: e(f).keyword,
555
+ "onUpdate:modelValue": g[0] || (g[0] = (u) => e(f).keyword = u),
556
556
  placeholder: e(a)("base.placeholder.keyword"),
557
557
  clearable: "",
558
- onKeyup: Z(e(d), ["enter"]),
559
- onClear: e(d)
560
- }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(p, {
561
- modelValue: e(c).status,
562
- "onUpdate:modelValue": _[1] || (_[1] = (r) => e(c).status = r),
563
- onChange: e(d)
558
+ onKeyup: ee(e(s), ["enter"]),
559
+ onClear: e(s)
560
+ }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(i, {
561
+ modelValue: e(f).status,
562
+ "onUpdate:modelValue": g[1] || (g[1] = (u) => e(f).status = u),
563
+ onChange: e(s)
564
564
  }, {
565
- default: n(() => [(A(), I(P, null, Y([0, 1, 2], (r) => l(C, {
566
- key: r,
567
- label: e(a)(`base.DISABLE_ENABLE.${r}`),
568
- value: r
565
+ default: n(() => [(S(), T(P, null, Y([0, 1, 2], (u) => l(q, {
566
+ key: u,
567
+ label: e(a)(`base.DISABLE_ENABLE.${u}`),
568
+ value: u
569
569
  }, null, 8, ["label", "value"])), 64))]),
570
570
  _: 1
571
- }, 8, ["modelValue", "onChange"]), l(e(ne), {
572
- onSearch: e(d)
571
+ }, 8, ["modelValue", "onChange"]), l(e(re), {
572
+ onSearch: e(s)
573
573
  }, null, 8, ["onSearch"])]),
574
574
  _: 1
575
575
  })]),
576
- default: n(() => [l(e(ae), {
576
+ default: n(() => [l(e(oe), {
577
577
  ref_key: "tableRef",
578
578
  ref: t,
579
579
  size: "small",
580
- columns: k,
581
- url: e(J).urls[e(oe)],
582
- "search-param": e(c),
580
+ columns: y,
581
+ url: e(J).urls[e(te)],
582
+ "search-param": e(f),
583
583
  autoSearch: ""
584
- }, null, 8, ["url", "search-param"]), l(Ue, {
584
+ }, null, 8, ["url", "search-param"]), l(Se, {
585
585
  ref_key: "infoRef",
586
- ref: f,
587
- onRefresh: e(v)
586
+ ref: c,
587
+ onRefresh: e(w)
588
588
  }, null, 8, ["onRefresh"])]),
589
589
  _: 1
590
590
  });
591
591
  };
592
592
  }
593
- }), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
593
+ }), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
594
594
  __proto__: null,
595
- default: Re
595
+ default: Oe
596
596
  }, Symbol.toStringTag, { value: "Module" })), ie = {
597
597
  tops: "tops",
598
598
  rules: "rules"
599
- }, $ = ke.createAutoApi("menu", ie, "id", Object.keys(ie));
599
+ }, z = xe.createAutoApi("menu", ie, "id", Object.keys(ie)), fe = le("rule", {}, "key");
600
600
  /*! Element Plus Icons Vue v2.3.1 */
601
- var Me = /* @__PURE__ */ z({
601
+ var qe = /* @__PURE__ */ $({
602
602
  name: "Key",
603
603
  __name: "key",
604
- setup(M) {
605
- return (U, k) => (A(), I("svg", {
604
+ setup(x) {
605
+ return (C, y) => (S(), T("svg", {
606
606
  xmlns: "http://www.w3.org/2000/svg",
607
607
  viewBox: "0 0 1024 1024"
608
608
  }, [
@@ -612,8 +612,8 @@ var Me = /* @__PURE__ */ z({
612
612
  })
613
613
  ]));
614
614
  }
615
- }), Se = Me;
616
- const Ae = /* @__PURE__ */ z({
615
+ }), Ee = qe;
616
+ const Le = /* @__PURE__ */ $({
617
617
  __name: "topMenuSelect",
618
618
  props: {
619
619
  modelValue: {
@@ -626,51 +626,52 @@ const Ae = /* @__PURE__ */ z({
626
626
  }
627
627
  },
628
628
  emits: ["update:modelValue", "change"],
629
- setup(M, {
630
- emit: U
629
+ setup(x, {
630
+ emit: C
631
631
  }) {
632
- const k = U, S = M, {
632
+ const y = C, M = x, {
633
633
  requesting: t
634
- } = K($), {
635
- value: f,
636
- options: c,
637
- change: d,
638
- refresh: g,
639
- filterOptions: v
640
- } = pe(se(S, "modelValue"), k, {
641
- key: "MENU_LIST",
642
- api: $,
643
- url: $.urls.tops,
634
+ } = D(z), {
635
+ value: c,
636
+ options: f,
637
+ change: s,
638
+ refresh: _,
639
+ filterOptions: w
640
+ } = pe(de(M, "modelValue"), y, {
641
+ key: "TOP_MENU_LIST",
642
+ api: z,
643
+ url: z.urls.tops,
644
644
  isArray: !0
645
645
  });
646
646
  return (R, h) => {
647
- const V = s("el-select-v2");
648
- return A(), E(V, {
649
- modelValue: e(f),
650
- "onUpdate:modelValue": h[1] || (h[1] = (_) => D(f) ? f.value = _ : null),
651
- options: e(c),
652
- multiple: M.multiple,
647
+ const V = d("el-select-v2");
648
+ return S(), L(V, {
649
+ class: "w-full",
650
+ modelValue: e(c),
651
+ "onUpdate:modelValue": h[1] || (h[1] = (g) => I(c) ? c.value = g : null),
652
+ options: e(f),
653
+ multiple: x.multiple,
653
654
  disabled: e(t),
654
655
  placeholder: e(a)("base.placeholder.select"),
655
656
  filterable: "",
656
- filterOptions: e(v),
657
- onChange: e(d)
657
+ filterOptions: e(w),
658
+ onChange: e(s)
658
659
  }, {
659
- prefix: n(() => [l(e(T), {
660
+ prefix: n(() => [l(e(K), {
660
661
  loading: e(t),
661
662
  text: "",
662
663
  size: "small",
663
- onRefresh: h[0] || (h[0] = (_) => e(g)(!0))
664
+ onRefresh: h[0] || (h[0] = (g) => e(_)(!0))
664
665
  }, null, 8, ["loading"])]),
665
666
  _: 1
666
667
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
667
668
  };
668
669
  }
669
- }), qe = /* @__PURE__ */ z({
670
+ }), $e = /* @__PURE__ */ $({
670
671
  __name: "info",
671
672
  emits: ["refresh"],
672
- setup(M, { expose: U, emit: k }) {
673
- const S = k, t = F({
673
+ setup(x, { expose: C, emit: y }) {
674
+ const M = y, t = F({
674
675
  id: 0,
675
676
  menu_id: 0,
676
677
  module: "",
@@ -691,7 +692,7 @@ const Ae = /* @__PURE__ */ z({
691
692
  keep_alive: !1,
692
693
  link: !1
693
694
  }
694
- }), f = {
695
+ }), c = {
695
696
  sort: [
696
697
  { required: !0, type: "number", message: a("base.placeholder.input base.sort"), trigger: "blur" }
697
698
  ],
@@ -710,55 +711,56 @@ const Ae = /* @__PURE__ */ z({
710
711
  component: [
711
712
  { required: !0, message: a("base.placeholder.input menu.component"), trigger: "blur" }
712
713
  ]
713
- }, { modal: c, title: d, form: g, requesting: v, executing: R, open: h, modify: V, submit: _, closed: q } = H(
714
- S,
714
+ }, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: O } = H(
715
+ M,
715
716
  t,
716
- $
717
+ z,
718
+ ["TOP_MENU_LIST", "MENU_LIST"]
717
719
  );
718
- return U({
719
- openOrModify: (p) => {
720
- p ? V({ id: p }) : h();
720
+ return C({
721
+ openOrModify: (i) => {
722
+ i ? V({ id: i }) : h();
721
723
  }
722
- }), (p, o) => {
723
- const u = s("el-form-item"), r = s("el-col"), i = s("el-input-number"), w = s("el-row"), x = s("el-input"), m = s("el-switch"), y = s("el-form");
724
- return A(), E(e(G), {
725
- modelValue: e(c),
726
- "onUpdate:modelValue": o[17] || (o[17] = (b) => D(c) ? c.value = b : null),
727
- title: e(d)(),
724
+ }), (i, o) => {
725
+ const r = d("el-form-item"), u = d("el-col"), p = d("el-input-number"), k = d("el-row"), U = d("el-input"), b = d("el-switch"), v = d("el-form");
726
+ return S(), L(e(G), {
727
+ modelValue: e(f),
728
+ "onUpdate:modelValue": o[17] || (o[17] = (m) => I(f) ? f.value = m : null),
729
+ title: e(s)(),
728
730
  width: "1000px",
729
731
  executing: e(R),
730
- onClosed: e(q),
731
- onSubmit: e(_)
732
+ onClosed: e(O),
733
+ onSubmit: e(g)
732
734
  }, {
733
735
  default: n(() => [
734
- l(y, {
736
+ l(v, {
735
737
  ref_key: "form",
736
- ref: g,
738
+ ref: _,
737
739
  model: t,
738
740
  "label-width": "auto",
739
- rules: f,
740
- disabled: e(v) || e(R)
741
+ rules: c,
742
+ disabled: e(w) || e(R)
741
743
  }, {
742
744
  default: n(() => [
743
- N(l(u, { prop: "id" }, null, 512), [
744
- [j, !1]
745
+ j(l(r, { prop: "id" }, null, 512), [
746
+ [B, !1]
745
747
  ]),
746
- l(w, { gutter: 20 }, {
748
+ l(k, { gutter: 20 }, {
747
749
  default: n(() => [
748
- l(r, { span: 12 }, {
750
+ l(u, { span: 12 }, {
749
751
  default: n(() => [
750
- l(w, { gutter: 10 }, {
752
+ l(k, { gutter: 10 }, {
751
753
  default: n(() => [
752
- l(r, { span: 12 }, {
754
+ l(u, { span: 12 }, {
753
755
  default: n(() => [
754
- l(u, {
756
+ l(r, {
755
757
  label: e(a)("base.parent"),
756
758
  prop: "menu_id"
757
759
  }, {
758
760
  default: n(() => [
759
- l(Ae, {
761
+ l(Le, {
760
762
  modelValue: t.menu_id,
761
- "onUpdate:modelValue": o[0] || (o[0] = (b) => t.menu_id = b)
763
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => t.menu_id = m)
762
764
  }, null, 8, ["modelValue"])
763
765
  ]),
764
766
  _: 1
@@ -766,16 +768,17 @@ const Ae = /* @__PURE__ */ z({
766
768
  ]),
767
769
  _: 1
768
770
  }),
769
- l(r, { span: 12 }, {
771
+ l(u, { span: 12 }, {
770
772
  default: n(() => [
771
- l(u, {
773
+ l(r, {
772
774
  label: e(a)("base.sort"),
773
775
  prop: "sort"
774
776
  }, {
775
777
  default: n(() => [
776
- l(i, {
778
+ l(p, {
779
+ class: "w-full",
777
780
  modelValue: t.sort,
778
- "onUpdate:modelValue": o[1] || (o[1] = (b) => t.sort = b),
781
+ "onUpdate:modelValue": o[1] || (o[1] = (m) => t.sort = m),
779
782
  min: 0,
780
783
  placeholder: e(a)("base.placeholder.input")
781
784
  }, null, 8, ["modelValue", "placeholder"])
@@ -788,79 +791,79 @@ const Ae = /* @__PURE__ */ z({
788
791
  ]),
789
792
  _: 1
790
793
  }),
791
- l(u, {
794
+ l(r, {
792
795
  label: e(a)("menu.module"),
793
796
  prop: "module"
794
797
  }, {
795
798
  default: n(() => [
796
- l(x, {
799
+ l(U, {
797
800
  modelValue: t.module,
798
- "onUpdate:modelValue": o[2] || (o[2] = (b) => t.module = b),
801
+ "onUpdate:modelValue": o[2] || (o[2] = (m) => t.module = m),
799
802
  placeholder: e(a)("base.placeholder.input")
800
803
  }, null, 8, ["modelValue", "placeholder"])
801
804
  ]),
802
805
  _: 1
803
806
  }, 8, ["label"]),
804
- l(u, {
807
+ l(r, {
805
808
  label: e(a)("base.name"),
806
809
  prop: "name"
807
810
  }, {
808
811
  default: n(() => [
809
- l(x, {
812
+ l(U, {
810
813
  modelValue: t.name,
811
- "onUpdate:modelValue": o[3] || (o[3] = (b) => t.name = b),
814
+ "onUpdate:modelValue": o[3] || (o[3] = (m) => t.name = m),
812
815
  placeholder: e(a)("base.placeholder.input")
813
816
  }, null, 8, ["modelValue", "placeholder"])
814
817
  ]),
815
818
  _: 1
816
819
  }, 8, ["label"]),
817
- l(u, {
820
+ l(r, {
818
821
  label: e(a)("base.en_name"),
819
822
  prop: "en_name"
820
823
  }, {
821
824
  default: n(() => [
822
- l(x, {
825
+ l(U, {
823
826
  modelValue: t.en_name,
824
- "onUpdate:modelValue": o[4] || (o[4] = (b) => t.en_name = b),
827
+ "onUpdate:modelValue": o[4] || (o[4] = (m) => t.en_name = m),
825
828
  placeholder: e(a)("base.placeholder.input")
826
829
  }, null, 8, ["modelValue", "placeholder"])
827
830
  ]),
828
831
  _: 1
829
832
  }, 8, ["label"]),
830
- l(u, {
833
+ l(r, {
831
834
  label: e(a)("menu.component"),
832
835
  prop: "component"
833
836
  }, {
834
837
  default: n(() => [
835
- l(x, {
838
+ l(U, {
836
839
  modelValue: t.component,
837
- "onUpdate:modelValue": o[5] || (o[5] = (b) => t.component = b),
840
+ "onUpdate:modelValue": o[5] || (o[5] = (m) => t.component = m),
838
841
  placeholder: e(a)("base.placeholder.input")
839
842
  }, null, 8, ["modelValue", "placeholder"])
840
843
  ]),
841
844
  _: 1
842
845
  }, 8, ["label"]),
843
- l(u, {
846
+ l(r, {
844
847
  label: e(a)("base.url"),
845
848
  prop: "url"
846
849
  }, {
847
850
  default: n(() => [
848
- l(x, {
851
+ l(U, {
849
852
  modelValue: t.url,
850
- "onUpdate:modelValue": o[6] || (o[6] = (b) => t.url = b),
853
+ "onUpdate:modelValue": o[6] || (o[6] = (m) => t.url = m),
851
854
  placeholder: e(a)("base.placeholder.input")
852
855
  }, null, 8, ["modelValue", "placeholder"])
853
856
  ]),
854
857
  _: 1
855
858
  }, 8, ["label"]),
856
- l(u, {
859
+ l(r, {
857
860
  label: e(a)("base.remark"),
858
861
  prop: "remark"
859
862
  }, {
860
863
  default: n(() => [
861
- l(x, {
864
+ l(U, {
862
865
  modelValue: t.remark,
863
- "onUpdate:modelValue": o[7] || (o[7] = (b) => t.remark = b),
866
+ "onUpdate:modelValue": o[7] || (o[7] = (m) => t.remark = m),
864
867
  placeholder: e(a)("base.placeholder.input")
865
868
  }, null, 8, ["modelValue", "placeholder"])
866
869
  ]),
@@ -869,27 +872,27 @@ const Ae = /* @__PURE__ */ z({
869
872
  ]),
870
873
  _: 1
871
874
  }),
872
- l(r, { span: 12 }, {
875
+ l(u, { span: 12 }, {
873
876
  default: n(() => [
874
- N(l(u, { prop: "meta.icon" }, null, 512), [
875
- [j, !1]
877
+ j(l(r, { prop: "meta.icon" }, null, 512), [
878
+ [B, !1]
876
879
  ]),
877
- l(u, {
880
+ l(r, {
878
881
  label: e(a)("base.icon"),
879
882
  prop: "icon"
880
883
  }, {
881
884
  default: n(() => [
882
- l(x, {
885
+ l(U, {
883
886
  modelValue: t.icon,
884
- "onUpdate:modelValue": o[8] || (o[8] = (b) => t.icon = b),
887
+ "onUpdate:modelValue": o[8] || (o[8] = (m) => t.icon = m),
885
888
  placeholder: e(a)("base.placeholder.input"),
886
- onInput: o[9] || (o[9] = (b) => {
887
- t.meta.icon = b;
889
+ onInput: o[9] || (o[9] = (m) => {
890
+ t.meta.icon = m;
888
891
  })
889
892
  }, {
890
893
  prepend: n(() => [
891
894
  Q("span", {
892
- class: be("iconfont " + t.icon)
895
+ class: ge("iconfont " + t.icon)
893
896
  }, null, 2)
894
897
  ]),
895
898
  _: 1
@@ -897,44 +900,44 @@ const Ae = /* @__PURE__ */ z({
897
900
  ]),
898
901
  _: 1
899
902
  }, 8, ["label"]),
900
- l(u, {
903
+ l(r, {
901
904
  label: e(a)("base.title"),
902
905
  prop: "meta.title"
903
906
  }, {
904
907
  default: n(() => [
905
- l(x, {
908
+ l(U, {
906
909
  modelValue: t.meta.title,
907
- "onUpdate:modelValue": o[10] || (o[10] = (b) => t.meta.title = b),
910
+ "onUpdate:modelValue": o[10] || (o[10] = (m) => t.meta.title = m),
908
911
  placeholder: e(a)("base.placeholder.input")
909
912
  }, null, 8, ["modelValue", "placeholder"])
910
913
  ]),
911
914
  _: 1
912
915
  }, 8, ["label"]),
913
- l(u, {
916
+ l(r, {
914
917
  label: e(a)("menu.active"),
915
918
  prop: "meta.active"
916
919
  }, {
917
920
  default: n(() => [
918
- l(x, {
921
+ l(U, {
919
922
  modelValue: t.meta.active,
920
- "onUpdate:modelValue": o[11] || (o[11] = (b) => t.meta.active = b),
923
+ "onUpdate:modelValue": o[11] || (o[11] = (m) => t.meta.active = m),
921
924
  placeholder: e(a)("base.placeholder.input")
922
925
  }, null, 8, ["modelValue", "placeholder"])
923
926
  ]),
924
927
  _: 1
925
928
  }, 8, ["label"]),
926
- l(w, null, {
929
+ l(k, null, {
927
930
  default: n(() => [
928
- l(r, { span: 12 }, {
931
+ l(u, { span: 12 }, {
929
932
  default: n(() => [
930
- l(u, {
933
+ l(r, {
931
934
  label: e(a)("menu.link"),
932
935
  prop: "meta.link"
933
936
  }, {
934
937
  default: n(() => [
935
- l(m, {
938
+ l(b, {
936
939
  modelValue: t.meta.link,
937
- "onUpdate:modelValue": o[12] || (o[12] = (b) => t.meta.link = b)
940
+ "onUpdate:modelValue": o[12] || (o[12] = (m) => t.meta.link = m)
938
941
  }, null, 8, ["modelValue"])
939
942
  ]),
940
943
  _: 1
@@ -942,16 +945,16 @@ const Ae = /* @__PURE__ */ z({
942
945
  ]),
943
946
  _: 1
944
947
  }),
945
- l(r, { span: 12 }, {
948
+ l(u, { span: 12 }, {
946
949
  default: n(() => [
947
- l(u, {
950
+ l(r, {
948
951
  label: e(a)("menu.keep_alive"),
949
952
  prop: "meta.keep_alive"
950
953
  }, {
951
954
  default: n(() => [
952
- l(m, {
955
+ l(b, {
953
956
  modelValue: t.meta.keep_alive,
954
- "onUpdate:modelValue": o[13] || (o[13] = (b) => t.meta.keep_alive = b)
957
+ "onUpdate:modelValue": o[13] || (o[13] = (m) => t.meta.keep_alive = m)
955
958
  }, null, 8, ["modelValue"])
956
959
  ]),
957
960
  _: 1
@@ -959,16 +962,16 @@ const Ae = /* @__PURE__ */ z({
959
962
  ]),
960
963
  _: 1
961
964
  }),
962
- l(r, { span: 12 }, {
965
+ l(u, { span: 12 }, {
963
966
  default: n(() => [
964
- l(u, {
967
+ l(r, {
965
968
  label: e(a)("menu.hide"),
966
969
  prop: "meta.hide"
967
970
  }, {
968
971
  default: n(() => [
969
- l(m, {
972
+ l(b, {
970
973
  modelValue: t.meta.hide,
971
- "onUpdate:modelValue": o[14] || (o[14] = (b) => t.meta.hide = b)
974
+ "onUpdate:modelValue": o[14] || (o[14] = (m) => t.meta.hide = m)
972
975
  }, null, 8, ["modelValue"])
973
976
  ]),
974
977
  _: 1
@@ -976,16 +979,16 @@ const Ae = /* @__PURE__ */ z({
976
979
  ]),
977
980
  _: 1
978
981
  }),
979
- l(r, { span: 12 }, {
982
+ l(u, { span: 12 }, {
980
983
  default: n(() => [
981
- l(u, {
984
+ l(r, {
982
985
  label: e(a)("menu.full"),
983
986
  prop: "meta.full"
984
987
  }, {
985
988
  default: n(() => [
986
- l(m, {
989
+ l(b, {
987
990
  modelValue: t.meta.full,
988
- "onUpdate:modelValue": o[15] || (o[15] = (b) => t.meta.full = b)
991
+ "onUpdate:modelValue": o[15] || (o[15] = (m) => t.meta.full = m)
989
992
  }, null, 8, ["modelValue"])
990
993
  ]),
991
994
  _: 1
@@ -993,16 +996,16 @@ const Ae = /* @__PURE__ */ z({
993
996
  ]),
994
997
  _: 1
995
998
  }),
996
- l(r, { span: 12 }, {
999
+ l(u, { span: 12 }, {
997
1000
  default: n(() => [
998
- l(u, {
1001
+ l(r, {
999
1002
  label: e(a)("menu.affix"),
1000
1003
  prop: "meta.affix"
1001
1004
  }, {
1002
1005
  default: n(() => [
1003
- l(m, {
1006
+ l(b, {
1004
1007
  modelValue: t.meta.affix,
1005
- "onUpdate:modelValue": o[16] || (o[16] = (b) => t.meta.affix = b)
1008
+ "onUpdate:modelValue": o[16] || (o[16] = (m) => t.meta.affix = m)
1006
1009
  }, null, 8, ["modelValue"])
1007
1010
  ]),
1008
1011
  _: 1
@@ -1027,7 +1030,7 @@ const Ae = /* @__PURE__ */ z({
1027
1030
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
1028
1031
  };
1029
1032
  }
1030
- }), Oe = ee("rule", {}, "key"), Le = /* @__PURE__ */ z({
1033
+ }), ze = /* @__PURE__ */ $({
1031
1034
  __name: "menuSelect",
1032
1035
  props: {
1033
1036
  modelValue: {
@@ -1040,50 +1043,51 @@ const Ae = /* @__PURE__ */ z({
1040
1043
  }
1041
1044
  },
1042
1045
  emits: ["update:modelValue", "change"],
1043
- setup(M, {
1044
- emit: U
1046
+ setup(x, {
1047
+ emit: C
1045
1048
  }) {
1046
- const k = U, S = M, {
1049
+ const y = C, M = x, {
1047
1050
  requesting: t
1048
- } = K($), {
1049
- value: f,
1050
- options: c,
1051
- change: d,
1052
- refresh: g,
1053
- filterOptions: v
1054
- } = pe(se(S, "modelValue"), k, {
1051
+ } = D(z), {
1052
+ value: c,
1053
+ options: f,
1054
+ change: s,
1055
+ refresh: _,
1056
+ filterOptions: w
1057
+ } = pe(de(M, "modelValue"), y, {
1055
1058
  key: "MENU_LIST",
1056
- api: $,
1059
+ api: z,
1057
1060
  isArray: !0
1058
1061
  });
1059
1062
  return (R, h) => {
1060
- const V = s("el-select-v2");
1061
- return A(), E(V, {
1062
- modelValue: e(f),
1063
- "onUpdate:modelValue": h[1] || (h[1] = (_) => D(f) ? f.value = _ : null),
1064
- options: e(c),
1065
- multiple: M.multiple,
1063
+ const V = d("el-select-v2");
1064
+ return S(), L(V, {
1065
+ class: "w-full",
1066
+ modelValue: e(c),
1067
+ "onUpdate:modelValue": h[1] || (h[1] = (g) => I(c) ? c.value = g : null),
1068
+ options: e(f),
1069
+ multiple: x.multiple,
1066
1070
  disabled: e(t),
1067
1071
  placeholder: e(a)("base.placeholder.select"),
1068
1072
  filterable: "",
1069
- filterOptions: e(v),
1070
- onChange: e(d)
1073
+ filterOptions: e(w),
1074
+ onChange: e(s)
1071
1075
  }, {
1072
- prefix: n(() => [l(e(T), {
1076
+ prefix: n(() => [l(e(K), {
1073
1077
  loading: e(t),
1074
1078
  text: "",
1075
1079
  size: "small",
1076
- onRefresh: h[0] || (h[0] = (_) => e(g)(!0))
1080
+ onRefresh: h[0] || (h[0] = (g) => e(_)(!0))
1077
1081
  }, null, 8, ["loading"])]),
1078
1082
  _: 1
1079
1083
  }, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
1080
1084
  };
1081
1085
  }
1082
- }), Ee = /* @__PURE__ */ z({
1086
+ }), Te = /* @__PURE__ */ $({
1083
1087
  __name: "rule",
1084
1088
  emits: ["refresh"],
1085
- setup(M, { expose: U, emit: k }) {
1086
- const S = k, t = F({
1089
+ setup(x, { expose: C, emit: y }) {
1090
+ const M = y, t = F({
1087
1091
  key: "",
1088
1092
  menu_id: 0,
1089
1093
  sort: 0,
@@ -1091,7 +1095,7 @@ const Ae = /* @__PURE__ */ z({
1091
1095
  en_name: "",
1092
1096
  urls: "",
1093
1097
  remark: ""
1094
- }), f = {
1098
+ }), c = {
1095
1099
  menu_id: [
1096
1100
  { required: !0, type: "number", message: a("base.placeholder.select menu.Menu"), trigger: "blur" }
1097
1101
  ],
@@ -1107,103 +1111,104 @@ const Ae = /* @__PURE__ */ z({
1107
1111
  urls: [
1108
1112
  { required: !0, message: a("base.placeholder.input base.rules"), trigger: "blur" }
1109
1113
  ]
1110
- }, { modal: c, title: d, form: g, requesting: v, executing: R, open: h, modify: V, submit: _, closed: q } = H(
1111
- S,
1114
+ }, { modal: f, title: s, form: _, requesting: w, executing: R, open: h, modify: V, submit: g, closed: O } = H(
1115
+ M,
1112
1116
  t,
1113
- Oe
1117
+ fe
1114
1118
  );
1115
- return U({
1116
- openOrModify: (p) => {
1117
- p ? V({ key: p }) : h();
1119
+ return C({
1120
+ openOrModify: (i) => {
1121
+ i ? V({ key: i }) : h();
1118
1122
  }
1119
- }), (p, o) => {
1120
- const u = s("el-form-item"), r = s("el-input-number"), i = s("el-input"), w = s("el-col"), x = s("el-row"), m = s("el-form");
1121
- return A(), E(e(G), {
1122
- modelValue: e(c),
1123
- "onUpdate:modelValue": o[6] || (o[6] = (y) => D(c) ? c.value = y : null),
1124
- title: e(d)("base.rules"),
1123
+ }), (i, o) => {
1124
+ const r = d("el-form-item"), u = d("el-input-number"), p = d("el-input"), k = d("el-col"), U = d("el-row"), b = d("el-form");
1125
+ return S(), L(e(G), {
1126
+ modelValue: e(f),
1127
+ "onUpdate:modelValue": o[6] || (o[6] = (v) => I(f) ? f.value = v : null),
1128
+ title: e(s)("base.rules"),
1125
1129
  width: "1000px",
1126
1130
  executing: e(R),
1127
- onClosed: e(q),
1128
- onSubmit: e(_)
1131
+ onClosed: e(O),
1132
+ onSubmit: e(g)
1129
1133
  }, {
1130
1134
  default: n(() => [
1131
- l(m, {
1135
+ l(b, {
1132
1136
  ref_key: "form",
1133
- ref: g,
1137
+ ref: _,
1134
1138
  model: t,
1135
1139
  "label-width": "auto",
1136
- rules: f,
1137
- disabled: e(v) || e(R)
1140
+ rules: c,
1141
+ disabled: e(w) || e(R)
1138
1142
  }, {
1139
1143
  default: n(() => [
1140
- N(l(u, { prop: "key" }, null, 512), [
1141
- [j, !1]
1144
+ j(l(r, { prop: "key" }, null, 512), [
1145
+ [B, !1]
1142
1146
  ]),
1143
- l(x, { gutter: 20 }, {
1147
+ l(U, { gutter: 20 }, {
1144
1148
  default: n(() => [
1145
- l(w, { span: 10 }, {
1149
+ l(k, { span: 10 }, {
1146
1150
  default: n(() => [
1147
- l(u, {
1151
+ l(r, {
1148
1152
  label: e(a)("menu.Menu"),
1149
1153
  prop: "menu_id"
1150
1154
  }, {
1151
1155
  default: n(() => [
1152
- l(Le, {
1156
+ l(ze, {
1153
1157
  modelValue: t.menu_id,
1154
- "onUpdate:modelValue": o[0] || (o[0] = (y) => t.menu_id = y)
1158
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => t.menu_id = v)
1155
1159
  }, null, 8, ["modelValue"])
1156
1160
  ]),
1157
1161
  _: 1
1158
1162
  }, 8, ["label"]),
1159
- l(u, {
1163
+ l(r, {
1160
1164
  label: e(a)("base.sort"),
1161
1165
  prop: "sort"
1162
1166
  }, {
1163
1167
  default: n(() => [
1164
- l(r, {
1168
+ l(u, {
1169
+ class: "w-full",
1165
1170
  modelValue: t.sort,
1166
- "onUpdate:modelValue": o[1] || (o[1] = (y) => t.sort = y),
1171
+ "onUpdate:modelValue": o[1] || (o[1] = (v) => t.sort = v),
1167
1172
  min: 0,
1168
1173
  placeholder: e(a)("base.placeholder.input")
1169
1174
  }, null, 8, ["modelValue", "placeholder"])
1170
1175
  ]),
1171
1176
  _: 1
1172
1177
  }, 8, ["label"]),
1173
- l(u, {
1178
+ l(r, {
1174
1179
  label: e(a)("base.name"),
1175
1180
  prop: "name"
1176
1181
  }, {
1177
1182
  default: n(() => [
1178
- l(i, {
1183
+ l(p, {
1179
1184
  modelValue: t.name,
1180
- "onUpdate:modelValue": o[2] || (o[2] = (y) => t.name = y),
1185
+ "onUpdate:modelValue": o[2] || (o[2] = (v) => t.name = v),
1181
1186
  placeholder: e(a)("base.placeholder.input")
1182
1187
  }, null, 8, ["modelValue", "placeholder"])
1183
1188
  ]),
1184
1189
  _: 1
1185
1190
  }, 8, ["label"]),
1186
- l(u, {
1191
+ l(r, {
1187
1192
  label: e(a)("base.en_name"),
1188
1193
  prop: "en_name"
1189
1194
  }, {
1190
1195
  default: n(() => [
1191
- l(i, {
1196
+ l(p, {
1192
1197
  modelValue: t.en_name,
1193
- "onUpdate:modelValue": o[3] || (o[3] = (y) => t.en_name = y),
1198
+ "onUpdate:modelValue": o[3] || (o[3] = (v) => t.en_name = v),
1194
1199
  placeholder: e(a)("base.placeholder.input")
1195
1200
  }, null, 8, ["modelValue", "placeholder"])
1196
1201
  ]),
1197
1202
  _: 1
1198
1203
  }, 8, ["label"]),
1199
- l(u, {
1204
+ l(r, {
1200
1205
  label: e(a)("base.remark"),
1201
1206
  prop: "remark"
1202
1207
  }, {
1203
1208
  default: n(() => [
1204
- l(i, {
1209
+ l(p, {
1205
1210
  modelValue: t.remark,
1206
- "onUpdate:modelValue": o[4] || (o[4] = (y) => t.remark = y),
1211
+ "onUpdate:modelValue": o[4] || (o[4] = (v) => t.remark = v),
1207
1212
  placeholder: e(a)("base.placeholder.input")
1208
1213
  }, null, 8, ["modelValue", "placeholder"])
1209
1214
  ]),
@@ -1212,16 +1217,16 @@ const Ae = /* @__PURE__ */ z({
1212
1217
  ]),
1213
1218
  _: 1
1214
1219
  }),
1215
- l(w, { span: 14 }, {
1220
+ l(k, { span: 14 }, {
1216
1221
  default: n(() => [
1217
- l(u, {
1222
+ l(r, {
1218
1223
  label: e(a)("base.rules"),
1219
1224
  prop: "urls"
1220
1225
  }, {
1221
1226
  default: n(() => [
1222
- l(i, {
1227
+ l(p, {
1223
1228
  modelValue: t.urls,
1224
- "onUpdate:modelValue": o[5] || (o[5] = (y) => t.urls = y),
1229
+ "onUpdate:modelValue": o[5] || (o[5] = (v) => t.urls = v),
1225
1230
  type: "textarea",
1226
1231
  rows: 11,
1227
1232
  placeholder: e(a)("base.placeholder.input")
@@ -1243,13 +1248,17 @@ const Ae = /* @__PURE__ */ z({
1243
1248
  }, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
1244
1249
  };
1245
1250
  }
1246
- }), ze = /* @__PURE__ */ z({
1251
+ });
1252
+ function me(x) {
1253
+ return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !he(x);
1254
+ }
1255
+ const Ie = /* @__PURE__ */ $({
1247
1256
  __name: "index",
1248
- setup(M) {
1249
- const U = {
1257
+ setup(x) {
1258
+ const C = {
1250
1259
  keyword: "",
1251
1260
  status: 0
1252
- }, k = [
1261
+ }, y = Z(""), M = [
1253
1262
  {
1254
1263
  label: a("base.sort"),
1255
1264
  prop: "sort",
@@ -1260,9 +1269,9 @@ const Ae = /* @__PURE__ */ z({
1260
1269
  prop: "icon",
1261
1270
  width: 60,
1262
1271
  render: ({
1263
- row: C
1272
+ row: o
1264
1273
  }) => l("span", {
1265
- class: "iconfont " + C.icon,
1274
+ class: "iconfont " + o.icon,
1266
1275
  style: "font-size: 16px;"
1267
1276
  }, null)
1268
1277
  },
@@ -1276,10 +1285,10 @@ const Ae = /* @__PURE__ */ z({
1276
1285
  prop: "parent",
1277
1286
  width: 120,
1278
1287
  render: ({
1279
- row: C
1288
+ row: o
1280
1289
  }) => {
1281
- var p;
1282
- return l(P, null, [(p = C.menu) == null ? void 0 : p.name]);
1290
+ var r;
1291
+ return l(P, null, [(r = o.menu) == null ? void 0 : r.name]);
1283
1292
  }
1284
1293
  },
1285
1294
  {
@@ -1304,15 +1313,43 @@ const Ae = /* @__PURE__ */ z({
1304
1313
  width: 0,
1305
1314
  align: "left",
1306
1315
  render: ({
1307
- row: C
1308
- }) => l(s("el-space"), null, {
1316
+ row: o
1317
+ }) => l(d("el-space"), null, {
1309
1318
  default: () => {
1310
- var p;
1311
- return [(p = C.rules) == null ? void 0 : p.map((o) => l(s("el-tag"), {
1312
- key: o.key,
1313
- onClick: () => q(o.key)
1319
+ var r;
1320
+ return [(r = o.rules) == null ? void 0 : r.map((u) => l(d("el-popover"), {
1321
+ visible: y.value === u.key,
1322
+ title: a("message.title.warning"),
1323
+ placement: "top-end",
1324
+ width: 220
1314
1325
  }, {
1315
- default: () => [o.translate]
1326
+ reference: () => l(d("el-tag"), {
1327
+ class: "cursor-pointer",
1328
+ closable: !0,
1329
+ key: u.key,
1330
+ onClick: () => q(u.key),
1331
+ onClose: () => y.value = u.key
1332
+ }, {
1333
+ default: () => [u.translate]
1334
+ }),
1335
+ default: () => {
1336
+ let p, k;
1337
+ return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.delete base.rules")}: ${o.translate}-${u.translate} ?`]), l("div", {
1338
+ style: "text-align: right; margin: 0"
1339
+ }, [l(d("el-button"), {
1340
+ size: "small",
1341
+ text: !0,
1342
+ onClick: () => y.value = ""
1343
+ }, me(p = a("base.cancel")) ? p : {
1344
+ default: () => [p]
1345
+ }), l(d("el-button"), {
1346
+ size: "small",
1347
+ type: "danger",
1348
+ onClick: () => i(u.key)
1349
+ }, me(k = a("base.confirm")) ? k : {
1350
+ default: () => [k]
1351
+ })])]);
1352
+ }
1316
1353
  }))];
1317
1354
  }
1318
1355
  })
@@ -1325,7 +1362,7 @@ const Ae = /* @__PURE__ */ z({
1325
1362
  props: {
1326
1363
  activeValue: 1,
1327
1364
  inactiveValue: 2,
1328
- api: $.urls[me],
1365
+ api: z.urls[ce],
1329
1366
  refresh: !0
1330
1367
  }
1331
1368
  },
@@ -1335,174 +1372,181 @@ const Ae = /* @__PURE__ */ z({
1335
1372
  width: 60,
1336
1373
  align: "center",
1337
1374
  render: ({
1338
- row: C
1339
- }) => l(le, {
1340
- onModify: () => h(C.id)
1375
+ row: o
1376
+ }) => l(ae, {
1377
+ onModify: () => V(o.id)
1341
1378
  }, null)
1342
1379
  }
1343
1380
  ], {
1344
- requesting: S
1345
- } = K($), {
1346
- tableRef: t,
1381
+ requesting: t
1382
+ } = D(z), {
1383
+ tableRef: c,
1347
1384
  infoRef: f,
1348
- keyword: c,
1349
- search: d,
1350
- refresh: g,
1351
- reset: v,
1352
- openInfo: R,
1353
- modifyInfo: h
1354
- } = W(U), {
1355
- infoRef: V,
1356
- openInfo: _,
1385
+ keyword: s,
1386
+ search: _,
1387
+ refresh: w,
1388
+ reset: R,
1389
+ openInfo: h,
1390
+ modifyInfo: V
1391
+ } = W(C), {
1392
+ infoRef: g,
1393
+ openInfo: O,
1357
1394
  modifyInfo: q
1358
- } = W();
1359
- return (C, p) => {
1360
- const o = s("el-button"), u = s("el-input"), r = s("el-radio-button"), i = s("el-radio-group"), w = s("el-space"), x = s("el-card");
1361
- return A(), E(x, {
1395
+ } = W(), i = (o) => {
1396
+ fe[Ue]({
1397
+ key: o
1398
+ }).then(() => {
1399
+ y.value = "", w();
1400
+ });
1401
+ };
1402
+ return (o, r) => {
1403
+ const u = d("el-button"), p = d("el-input"), k = d("el-radio-button"), U = d("el-radio-group"), b = d("el-space"), v = d("el-card");
1404
+ return S(), L(v, {
1362
1405
  class: "basic-card flex-full",
1363
- "body-class": "flex-1"
1406
+ "body-class": "flex-1",
1407
+ onClick: r[2] || (r[2] = () => y.value = "")
1364
1408
  }, {
1365
- header: n(() => [l(w, {
1409
+ header: n(() => [l(b, {
1366
1410
  class: "search-bar"
1367
1411
  }, {
1368
- default: n(() => [l(e(T), {
1369
- loading: e(S),
1370
- onRefresh: e(g)
1371
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
1372
- onOpen: e(R)
1373
- }, null, 8, ["onOpen"]), l(o, {
1412
+ default: n(() => [l(e(K), {
1413
+ loading: e(t),
1414
+ onRefresh: e(w)
1415
+ }, null, 8, ["loading", "onRefresh"]), l(e(ne), {
1416
+ onOpen: e(h)
1417
+ }, null, 8, ["onOpen"]), l(u, {
1374
1418
  circle: "",
1375
- onClick: e(_),
1376
- icon: e(Se)
1377
- }, null, 8, ["onClick", "icon"]), l(u, {
1419
+ onClick: e(O),
1420
+ icon: e(Ee)
1421
+ }, null, 8, ["onClick", "icon"]), l(p, {
1378
1422
  class: "basic-search-input",
1379
- modelValue: e(c).keyword,
1380
- "onUpdate:modelValue": p[0] || (p[0] = (m) => e(c).keyword = m),
1423
+ modelValue: e(s).keyword,
1424
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => e(s).keyword = m),
1381
1425
  placeholder: e(a)("base.placeholder.keyword"),
1382
1426
  clearable: "",
1383
- onKeyup: Z(e(d), ["enter"]),
1384
- onClear: e(d)
1385
- }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(i, {
1386
- modelValue: e(c).status,
1387
- "onUpdate:modelValue": p[1] || (p[1] = (m) => e(c).status = m),
1388
- onChange: e(d)
1427
+ onKeyup: ee(e(_), ["enter"]),
1428
+ onClear: e(_)
1429
+ }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(U, {
1430
+ modelValue: e(s).status,
1431
+ "onUpdate:modelValue": r[1] || (r[1] = (m) => e(s).status = m),
1432
+ onChange: e(_)
1389
1433
  }, {
1390
- default: n(() => [(A(), I(P, null, Y([0, 1, 2], (m) => l(r, {
1434
+ default: n(() => [(S(), T(P, null, Y([0, 1, 2], (m) => l(k, {
1391
1435
  key: m,
1392
1436
  label: e(a)(`base.DISABLE_ENABLE.${m}`),
1393
1437
  value: m
1394
1438
  }, null, 8, ["label", "value"])), 64))]),
1395
1439
  _: 1
1396
- }, 8, ["modelValue", "onChange"]), l(e(ne), {
1397
- onSearch: e(d)
1440
+ }, 8, ["modelValue", "onChange"]), l(e(re), {
1441
+ onSearch: e(_)
1398
1442
  }, null, 8, ["onSearch"])]),
1399
1443
  _: 1
1400
1444
  })]),
1401
- default: n(() => [l(e(ae), {
1445
+ default: n(() => [l(e(oe), {
1402
1446
  ref_key: "tableRef",
1403
- ref: t,
1447
+ ref: c,
1404
1448
  size: "small",
1405
- columns: k,
1406
- url: e($).urls[e(oe)],
1407
- "search-param": e(c),
1449
+ columns: M,
1450
+ url: e(z).urls[e(te)],
1451
+ "search-param": e(s),
1408
1452
  autoSearch: ""
1409
- }, null, 8, ["url", "search-param"]), l(qe, {
1453
+ }, null, 8, ["url", "search-param"]), l($e, {
1410
1454
  ref_key: "infoRef",
1411
1455
  ref: f,
1412
- onRefresh: e(v)
1413
- }, null, 8, ["onRefresh"]), l(Ee, {
1456
+ onRefresh: e(R)
1457
+ }, null, 8, ["onRefresh"]), l(Te, {
1414
1458
  ref_key: "ruleRef",
1415
- ref: V,
1416
- onRefresh: e(g)
1459
+ ref: g,
1460
+ onRefresh: e(w)
1417
1461
  }, null, 8, ["onRefresh"])]),
1418
1462
  _: 1
1419
1463
  });
1420
1464
  };
1421
1465
  }
1422
- }), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1466
+ }), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1423
1467
  __proto__: null,
1424
- default: ze
1425
- }, Symbol.toStringTag, { value: "Module" })), Ie = { class: "rule-check" }, De = { style: { width: "80px", "line-height": "36px" } }, Ke = /* @__PURE__ */ z({
1468
+ default: Ie
1469
+ }, Symbol.toStringTag, { value: "Module" })), Ke = { class: "rule-check" }, Ne = { style: { width: "80px", "line-height": "36px" } }, je = /* @__PURE__ */ $({
1426
1470
  __name: "rulesCheck",
1427
1471
  props: {
1428
1472
  modelValue: { type: Array, required: !0 },
1429
1473
  disabled: { type: Boolean, default: !1 }
1430
1474
  },
1431
1475
  emits: ["update:modelValue"],
1432
- setup(M, { expose: U, emit: k }) {
1433
- const { requesting: S } = K($), t = M, f = k, c = de(!1), d = F({
1476
+ setup(x, { expose: C, emit: y }) {
1477
+ const { requesting: M } = D(z), t = x, c = y, f = Z(!1), s = F({
1434
1478
  checkAll: !1,
1435
1479
  indeterminate: !1,
1436
1480
  MenuAll: {},
1437
1481
  MenuList: {},
1438
1482
  MenuIndeterminate: {}
1439
- }), { options: g, refresh: v } = pe(
1440
- se(t, "modelValue"),
1441
- f,
1442
- { key: "RULE_CHECK", api: $, url: $.urls.rules, isArray: !0 },
1483
+ }), { options: _, refresh: w } = pe(
1484
+ de(t, "modelValue"),
1485
+ c,
1486
+ { key: "RULE_CHECK", api: z, url: z.urls.rules, isArray: !0 },
1443
1487
  !1
1444
1488
  );
1445
1489
  function R() {
1446
- g.value.forEach((p) => {
1490
+ _.value.forEach((i) => {
1447
1491
  var o;
1448
- (o = p.rules) != null && o.length && (d.MenuAll[p.id] = !1, d.MenuIndeterminate[p.id] = !1, d.MenuList[p.id] = []);
1492
+ (o = i.rules) != null && o.length && (s.MenuAll[i.id] = !1, s.MenuIndeterminate[i.id] = !1, s.MenuList[i.id] = []);
1449
1493
  });
1450
1494
  }
1451
- function h(p) {
1452
- g.value.forEach((o) => {
1453
- var u;
1454
- (u = o.rules) != null && u.length && (d.MenuList[o.id] = p ? o.rules.map((r) => r.key) : []);
1455
- }), _();
1495
+ function h(i) {
1496
+ _.value.forEach((o) => {
1497
+ var r;
1498
+ (r = o.rules) != null && r.length && (s.MenuList[o.id] = i ? o.rules.map((u) => u.key) : []);
1499
+ }), g();
1456
1500
  }
1457
- function V(p, o) {
1458
- const u = g.value.find((r) => r.id === o);
1459
- d.MenuList[o] = p && u ? u.rules.map((r) => r.key) : [], _();
1501
+ function V(i, o) {
1502
+ const r = _.value.find((u) => u.id === o);
1503
+ s.MenuList[o] = i && r ? r.rules.map((u) => u.key) : [], g();
1460
1504
  }
1461
- function _() {
1462
- g.value.forEach((p) => {
1463
- var r, i;
1464
- const o = ((r = p.rules) == null ? void 0 : r.length) || 0, u = ((i = d.MenuList[p.id]) == null ? void 0 : i.length) || 0;
1465
- d.MenuAll[p.id] = u === o && o > 0, d.MenuIndeterminate[p.id] = u > 0 && u < o;
1466
- }), d.checkAll = Object.values(d.MenuAll).every(Boolean), d.indeterminate = !d.checkAll && Object.values(d.MenuList).some((p) => p.length > 0), f("update:modelValue", Object.values(d.MenuList).flat());
1505
+ function g() {
1506
+ _.value.forEach((i) => {
1507
+ var u, p;
1508
+ const o = ((u = i.rules) == null ? void 0 : u.length) || 0, r = ((p = s.MenuList[i.id]) == null ? void 0 : p.length) || 0;
1509
+ s.MenuAll[i.id] = r === o && o > 0, s.MenuIndeterminate[i.id] = r > 0 && r < o;
1510
+ }), s.checkAll = Object.values(s.MenuAll).every(Boolean), s.indeterminate = !s.checkAll && Object.values(s.MenuList).some((i) => i.length > 0), c("update:modelValue", Object.values(s.MenuList).flat());
1467
1511
  }
1468
- function q() {
1469
- d.checkAll = !1, d.indeterminate = !1, d.MenuAll = {}, d.MenuList = {}, d.MenuIndeterminate = {}, R(), f("update:modelValue", []), c.value = !1;
1512
+ function O() {
1513
+ s.checkAll = !1, s.indeterminate = !1, s.MenuAll = {}, s.MenuList = {}, s.MenuIndeterminate = {}, R(), c("update:modelValue", []), f.value = !1;
1470
1514
  }
1471
- function C(p) {
1515
+ function q(i) {
1472
1516
  var o;
1473
- if (Array.isArray(g.value) && g.value.length > 0) {
1474
- for (let u of g.value)
1475
- if (Array.isArray(u.rules) && u.rules.length > 0)
1476
- for (let r of u.rules)
1477
- p.some((i) => i === r.key) && (d.MenuList[u.id] = (((o = d.MenuList) == null ? void 0 : o[u.id]) || []).concat([r.key]));
1478
- _(), c.value = !0;
1517
+ if (Array.isArray(_.value) && _.value.length > 0) {
1518
+ for (let r of _.value)
1519
+ if (Array.isArray(r.rules) && r.rules.length > 0)
1520
+ for (let u of r.rules)
1521
+ i.some((p) => p === u.key) && (s.MenuList[r.id] = (((o = s.MenuList) == null ? void 0 : o[r.id]) || []).concat([u.key]));
1522
+ g(), f.value = !0;
1479
1523
  }
1480
1524
  }
1481
- return _e(async () => {
1482
- var p;
1483
- (p = g.value) != null && p.length || await v(), !c.value && t.modelValue && C(t.modelValue);
1484
- }), ge(
1525
+ return Ve(async () => {
1526
+ var i;
1527
+ (i = _.value) != null && i.length || await w(), !f.value && t.modelValue && q(t.modelValue);
1528
+ }), ye(
1485
1529
  () => t.modelValue,
1486
- (p) => {
1487
- he(() => {
1530
+ (i) => {
1531
+ ke(() => {
1488
1532
  var o;
1489
- c.value || !((o = g.value) != null && o.length) || p && p.length > 0 && C(p);
1533
+ f.value || !((o = _.value) != null && o.length) || i && i.length > 0 && q(i);
1490
1534
  });
1491
1535
  },
1492
1536
  { deep: !0, immediate: !0 }
1493
- ), U({
1494
- generateOption: C,
1495
- cleanChecked: q
1496
- }), (p, o) => {
1497
- const u = s("el-checkbox"), r = s("el-space"), i = s("el-text"), w = s("el-divider"), x = s("el-checkbox-group");
1498
- return A(), I("div", Ie, [
1499
- l(r, { style: { "margin-bottom": "6px" } }, {
1537
+ ), C({
1538
+ generateOption: q,
1539
+ cleanChecked: O
1540
+ }), (i, o) => {
1541
+ const r = d("el-checkbox"), u = d("el-space"), p = d("el-text"), k = d("el-divider"), U = d("el-checkbox-group");
1542
+ return S(), T("div", Ke, [
1543
+ l(u, { style: { "margin-bottom": "6px" } }, {
1500
1544
  default: n(() => [
1501
- l(u, {
1502
- "model-value": d.checkAll,
1503
- indeterminate: d.indeterminate,
1545
+ l(r, {
1546
+ "model-value": s.checkAll,
1547
+ indeterminate: s.indeterminate,
1504
1548
  id: "all",
1505
- disabled: M.disabled,
1549
+ disabled: x.disabled,
1506
1550
  onChange: h
1507
1551
  }, {
1508
1552
  default: n(() => o[1] || (o[1] = [
@@ -1511,67 +1555,67 @@ const Ae = /* @__PURE__ */ z({
1511
1555
  _: 1,
1512
1556
  __: [1]
1513
1557
  }, 8, ["model-value", "indeterminate", "disabled"]),
1514
- l(e(T), {
1515
- loading: e(S),
1558
+ l(e(K), {
1559
+ loading: e(M),
1516
1560
  text: "",
1517
1561
  size: "small",
1518
- onRefresh: o[0] || (o[0] = (m) => e(v)(!0))
1562
+ onRefresh: o[0] || (o[0] = (b) => e(w)(!0))
1519
1563
  }, null, 8, ["loading"])
1520
1564
  ]),
1521
1565
  _: 1
1522
1566
  }),
1523
- l(r, {
1567
+ l(u, {
1524
1568
  direction: "vertical",
1525
1569
  alignment: "start"
1526
1570
  }, {
1527
1571
  default: n(() => [
1528
- (A(!0), I(P, null, Y(e(g), (m) => (A(), I("div", {
1529
- key: m.id
1572
+ (S(!0), T(P, null, Y(e(_), (b) => (S(), T("div", {
1573
+ key: b.id
1530
1574
  }, [
1531
- l(r, {
1575
+ l(u, {
1532
1576
  direction: "horizontal",
1533
1577
  size: 2
1534
1578
  }, {
1535
1579
  default: n(() => [
1536
- l(u, {
1580
+ l(r, {
1537
1581
  style: { "min-width": "150px" },
1538
- "model-value": d.MenuAll[m.id],
1539
- disabled: M.disabled || !m.rules || m.rules.length <= 0,
1540
- indeterminate: d.MenuIndeterminate[m.id],
1541
- onChange: (y) => V(y, m.id)
1582
+ "model-value": s.MenuAll[b.id],
1583
+ disabled: x.disabled || !b.rules || b.rules.length <= 0,
1584
+ indeterminate: s.MenuIndeterminate[b.id],
1585
+ onChange: (v) => V(v, b.id)
1542
1586
  }, {
1543
1587
  default: n(() => [
1544
- l(i, { style: { "font-size": "15px" } }, {
1588
+ l(p, { style: { "font-size": "15px" } }, {
1545
1589
  default: n(() => [
1546
- B(re(m.translate), 1)
1590
+ N(ue(b.translate), 1)
1547
1591
  ]),
1548
1592
  _: 2
1549
1593
  }, 1024)
1550
1594
  ]),
1551
1595
  _: 2
1552
1596
  }, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
1553
- l(w, { direction: "vertical" }),
1554
- m.rules ? (A(), E(x, {
1597
+ l(k, { direction: "vertical" }),
1598
+ b.rules ? (S(), L(U, {
1555
1599
  key: 0,
1556
- modelValue: d.MenuList[m.id],
1557
- "onUpdate:modelValue": (y) => d.MenuList[m.id] = y,
1558
- disabled: M.disabled,
1600
+ modelValue: s.MenuList[b.id],
1601
+ "onUpdate:modelValue": (v) => s.MenuList[b.id] = v,
1602
+ disabled: x.disabled,
1559
1603
  style: { margin: "auto" },
1560
- onChange: _
1604
+ onChange: g
1561
1605
  }, {
1562
1606
  default: n(() => [
1563
- (A(!0), I(P, null, Y(m.rules, (y) => (A(), E(u, {
1564
- key: y.key,
1565
- value: y.key
1607
+ (S(!0), T(P, null, Y(b.rules, (v) => (S(), L(r, {
1608
+ key: v.key,
1609
+ value: v.key
1566
1610
  }, {
1567
1611
  default: n(() => [
1568
- Q("div", De, re(y.translate), 1)
1612
+ Q("div", Ne, ue(v.translate), 1)
1569
1613
  ]),
1570
1614
  _: 2
1571
1615
  }, 1032, ["value"]))), 128))
1572
1616
  ]),
1573
1617
  _: 2
1574
- }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Ve("", !0)
1618
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : ve("", !0)
1575
1619
  ]),
1576
1620
  _: 2
1577
1621
  }, 1024)
@@ -1582,11 +1626,11 @@ const Ae = /* @__PURE__ */ z({
1582
1626
  ]);
1583
1627
  };
1584
1628
  }
1585
- }), Te = /* @__PURE__ */ z({
1629
+ }), Be = /* @__PURE__ */ $({
1586
1630
  __name: "info",
1587
1631
  emits: ["refresh"],
1588
- setup(M, { expose: U, emit: k }) {
1589
- const S = k, t = de(), f = F({
1632
+ setup(x, { expose: C, emit: y }) {
1633
+ const M = y, t = Z(), c = F({
1590
1634
  key: "",
1591
1635
  module: "",
1592
1636
  sort: 0,
@@ -1594,61 +1638,61 @@ const Ae = /* @__PURE__ */ z({
1594
1638
  en_name: "",
1595
1639
  remark: "",
1596
1640
  rules: []
1597
- }), c = {
1641
+ }), f = {
1598
1642
  name: [
1599
1643
  { required: !0, message: a("base.placeholder.input base.name"), trigger: "blur" }
1600
1644
  ],
1601
1645
  en_name: [
1602
1646
  { required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }
1603
1647
  ]
1604
- }, { modal: d, title: g, form: v, requesting: R, executing: h, open: V, modify: _, submit: q, closed: C } = H(
1605
- S,
1606
- f,
1648
+ }, { modal: s, title: _, form: w, requesting: R, executing: h, open: V, modify: g, submit: O, closed: q } = H(
1649
+ M,
1650
+ c,
1607
1651
  X
1608
- ), p = (u) => {
1609
- u ? _({ key: u }) : V();
1652
+ ), i = (r) => {
1653
+ r ? g({ key: r }) : V();
1610
1654
  }, o = () => {
1611
- var u;
1612
- (u = t.value) == null || u.cleanChecked(), C();
1655
+ var r;
1656
+ (r = t.value) == null || r.cleanChecked(), q();
1613
1657
  };
1614
- return U({
1615
- openOrModify: p
1616
- }), (u, r) => {
1617
- const i = s("el-form-item"), w = s("el-input"), x = s("el-col"), m = s("el-input-number"), y = s("el-row"), b = s("el-form");
1618
- return A(), E(e(G), {
1619
- modelValue: e(d),
1620
- "onUpdate:modelValue": r[6] || (r[6] = (L) => D(d) ? d.value = L : null),
1621
- title: e(g)(),
1658
+ return C({
1659
+ openOrModify: i
1660
+ }), (r, u) => {
1661
+ const p = d("el-form-item"), k = d("el-input"), U = d("el-col"), b = d("el-input-number"), v = d("el-row"), m = d("el-form");
1662
+ return S(), L(e(G), {
1663
+ modelValue: e(s),
1664
+ "onUpdate:modelValue": u[6] || (u[6] = (E) => I(s) ? s.value = E : null),
1665
+ title: e(_)(),
1622
1666
  width: "1000px",
1623
1667
  executing: e(h),
1624
1668
  onClosed: o,
1625
- onSubmit: e(q)
1669
+ onSubmit: e(O)
1626
1670
  }, {
1627
1671
  default: n(() => [
1628
- l(b, {
1672
+ l(m, {
1629
1673
  ref_key: "form",
1630
- ref: v,
1631
- model: f,
1674
+ ref: w,
1675
+ model: c,
1632
1676
  "label-width": "auto",
1633
- rules: c,
1677
+ rules: f,
1634
1678
  disabled: e(R) || e(h)
1635
1679
  }, {
1636
1680
  default: n(() => [
1637
- N(l(i, { prop: "key" }, null, 512), [
1638
- [j, !1]
1681
+ j(l(p, { prop: "key" }, null, 512), [
1682
+ [B, !1]
1639
1683
  ]),
1640
- l(y, { gutter: 20 }, {
1684
+ l(v, { gutter: 20 }, {
1641
1685
  default: n(() => [
1642
- l(x, { span: 12 }, {
1686
+ l(U, { span: 12 }, {
1643
1687
  default: n(() => [
1644
- l(i, {
1688
+ l(p, {
1645
1689
  label: e(a)("base.module"),
1646
1690
  prop: "module"
1647
1691
  }, {
1648
1692
  default: n(() => [
1649
- l(w, {
1650
- modelValue: f.module,
1651
- "onUpdate:modelValue": r[0] || (r[0] = (L) => f.module = L),
1693
+ l(k, {
1694
+ modelValue: c.module,
1695
+ "onUpdate:modelValue": u[0] || (u[0] = (E) => c.module = E),
1652
1696
  placeholder: e(a)("base.placeholder.input")
1653
1697
  }, null, 8, ["modelValue", "placeholder"])
1654
1698
  ]),
@@ -1657,16 +1701,17 @@ const Ae = /* @__PURE__ */ z({
1657
1701
  ]),
1658
1702
  _: 1
1659
1703
  }),
1660
- l(x, { span: 12 }, {
1704
+ l(U, { span: 12 }, {
1661
1705
  default: n(() => [
1662
- l(i, {
1706
+ l(p, {
1663
1707
  label: e(a)("base.sort"),
1664
1708
  prop: "sort"
1665
1709
  }, {
1666
1710
  default: n(() => [
1667
- l(m, {
1668
- modelValue: f.sort,
1669
- "onUpdate:modelValue": r[1] || (r[1] = (L) => f.sort = L),
1711
+ l(b, {
1712
+ class: "w-full",
1713
+ modelValue: c.sort,
1714
+ "onUpdate:modelValue": u[1] || (u[1] = (E) => c.sort = E),
1670
1715
  min: 0,
1671
1716
  placeholder: e(a)("base.placeholder.input")
1672
1717
  }, null, 8, ["modelValue", "placeholder"])
@@ -1679,55 +1724,55 @@ const Ae = /* @__PURE__ */ z({
1679
1724
  ]),
1680
1725
  _: 1
1681
1726
  }),
1682
- l(i, {
1727
+ l(p, {
1683
1728
  label: e(a)("base.name"),
1684
1729
  prop: "name"
1685
1730
  }, {
1686
1731
  default: n(() => [
1687
- l(w, {
1688
- modelValue: f.name,
1689
- "onUpdate:modelValue": r[2] || (r[2] = (L) => f.name = L),
1732
+ l(k, {
1733
+ modelValue: c.name,
1734
+ "onUpdate:modelValue": u[2] || (u[2] = (E) => c.name = E),
1690
1735
  placeholder: e(a)("base.placeholder.input")
1691
1736
  }, null, 8, ["modelValue", "placeholder"])
1692
1737
  ]),
1693
1738
  _: 1
1694
1739
  }, 8, ["label"]),
1695
- l(i, {
1740
+ l(p, {
1696
1741
  label: e(a)("base.en_name"),
1697
1742
  prop: "en_name"
1698
1743
  }, {
1699
1744
  default: n(() => [
1700
- l(w, {
1701
- modelValue: f.en_name,
1702
- "onUpdate:modelValue": r[3] || (r[3] = (L) => f.en_name = L),
1745
+ l(k, {
1746
+ modelValue: c.en_name,
1747
+ "onUpdate:modelValue": u[3] || (u[3] = (E) => c.en_name = E),
1703
1748
  placeholder: e(a)("base.placeholder.input")
1704
1749
  }, null, 8, ["modelValue", "placeholder"])
1705
1750
  ]),
1706
1751
  _: 1
1707
1752
  }, 8, ["label"]),
1708
- l(i, {
1753
+ l(p, {
1709
1754
  label: e(a)("base.remark"),
1710
1755
  prop: "remark"
1711
1756
  }, {
1712
1757
  default: n(() => [
1713
- l(w, {
1714
- modelValue: f.remark,
1715
- "onUpdate:modelValue": r[4] || (r[4] = (L) => f.remark = L),
1758
+ l(k, {
1759
+ modelValue: c.remark,
1760
+ "onUpdate:modelValue": u[4] || (u[4] = (E) => c.remark = E),
1716
1761
  placeholder: e(a)("base.placeholder.input")
1717
1762
  }, null, 8, ["modelValue", "placeholder"])
1718
1763
  ]),
1719
1764
  _: 1
1720
1765
  }, 8, ["label"]),
1721
- l(i, {
1766
+ l(p, {
1722
1767
  label: e(a)("base.rules"),
1723
1768
  prop: "rules"
1724
1769
  }, {
1725
1770
  default: n(() => [
1726
- l(Ke, {
1771
+ l(je, {
1727
1772
  ref_key: "rulesCheck",
1728
1773
  ref: t,
1729
- modelValue: f.rules,
1730
- "onUpdate:modelValue": r[5] || (r[5] = (L) => f.rules = L),
1774
+ modelValue: c.rules,
1775
+ "onUpdate:modelValue": u[5] || (u[5] = (E) => c.rules = E),
1731
1776
  disabled: e(R) || e(h)
1732
1777
  }, null, 8, ["modelValue", "disabled"])
1733
1778
  ]),
@@ -1741,12 +1786,12 @@ const Ae = /* @__PURE__ */ z({
1741
1786
  }, 8, ["modelValue", "title", "executing", "onSubmit"]);
1742
1787
  };
1743
1788
  }
1744
- }), Be = /* @__PURE__ */ z({
1789
+ }), Pe = /* @__PURE__ */ $({
1745
1790
  __name: "index",
1746
- setup(M) {
1747
- const U = {
1791
+ setup(x) {
1792
+ const C = {
1748
1793
  keyword: ""
1749
- }, k = [
1794
+ }, y = [
1750
1795
  {
1751
1796
  label: a("base.sort"),
1752
1797
  prop: "sort",
@@ -1780,78 +1825,78 @@ const Ae = /* @__PURE__ */ z({
1780
1825
  align: "center",
1781
1826
  render: ({
1782
1827
  row: V
1783
- }) => l(le, {
1828
+ }) => l(ae, {
1784
1829
  onModify: () => h(V.key)
1785
1830
  }, null)
1786
1831
  }
1787
1832
  ], {
1788
- requesting: S
1789
- } = K(X), {
1833
+ requesting: M
1834
+ } = D(X), {
1790
1835
  tableRef: t,
1791
- infoRef: f,
1792
- keyword: c,
1793
- search: d,
1794
- refresh: g,
1795
- reset: v,
1836
+ infoRef: c,
1837
+ keyword: f,
1838
+ search: s,
1839
+ refresh: _,
1840
+ reset: w,
1796
1841
  openInfo: R,
1797
1842
  modifyInfo: h
1798
- } = W(U);
1799
- return (V, _) => {
1800
- const q = s("el-input"), C = s("el-space"), p = s("el-card");
1801
- return A(), E(p, {
1843
+ } = W(C);
1844
+ return (V, g) => {
1845
+ const O = d("el-input"), q = d("el-space"), i = d("el-card");
1846
+ return S(), L(i, {
1802
1847
  class: "basic-card flex-full",
1803
1848
  "body-class": "flex-1"
1804
1849
  }, {
1805
- header: n(() => [l(C, {
1850
+ header: n(() => [l(q, {
1806
1851
  class: "search-bar"
1807
1852
  }, {
1808
- default: n(() => [l(e(T), {
1809
- loading: e(S),
1810
- onRefresh: e(g)
1811
- }, null, 8, ["loading", "onRefresh"]), l(e(te), {
1853
+ default: n(() => [l(e(K), {
1854
+ loading: e(M),
1855
+ onRefresh: e(_)
1856
+ }, null, 8, ["loading", "onRefresh"]), l(e(ne), {
1812
1857
  onOpen: e(R)
1813
- }, null, 8, ["onOpen"]), l(q, {
1858
+ }, null, 8, ["onOpen"]), l(O, {
1814
1859
  class: "basic-search-input",
1815
- modelValue: e(c).keyword,
1816
- "onUpdate:modelValue": _[0] || (_[0] = (o) => e(c).keyword = o),
1860
+ modelValue: e(f).keyword,
1861
+ "onUpdate:modelValue": g[0] || (g[0] = (o) => e(f).keyword = o),
1817
1862
  placeholder: e(a)("base.placeholder.keyword"),
1818
1863
  clearable: "",
1819
- onKeyup: Z(e(d), ["enter"]),
1820
- onClear: e(d)
1821
- }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(ne), {
1822
- onSearch: e(d)
1864
+ onKeyup: ee(e(s), ["enter"]),
1865
+ onClear: e(s)
1866
+ }, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(re), {
1867
+ onSearch: e(s)
1823
1868
  }, null, 8, ["onSearch"])]),
1824
1869
  _: 1
1825
1870
  })]),
1826
- default: n(() => [l(e(ae), {
1871
+ default: n(() => [l(e(oe), {
1827
1872
  ref_key: "tableRef",
1828
1873
  ref: t,
1829
1874
  size: "small",
1830
- columns: k,
1831
- url: e(X).urls[e(oe)],
1832
- "search-param": e(c),
1875
+ columns: y,
1876
+ url: e(X).urls[e(te)],
1877
+ "search-param": e(f),
1833
1878
  autoSearch: ""
1834
- }, null, 8, ["url", "search-param"]), l(Te, {
1879
+ }, null, 8, ["url", "search-param"]), l(Be, {
1835
1880
  ref_key: "infoRef",
1836
- ref: f,
1837
- onRefresh: e(v)
1881
+ ref: c,
1882
+ onRefresh: e(w)
1838
1883
  }, null, 8, ["onRefresh"])]),
1839
1884
  _: 1
1840
1885
  });
1841
1886
  };
1842
1887
  }
1843
- }), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1888
+ }), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1844
1889
  __proto__: null,
1845
- default: Be
1846
- }, Symbol.toStringTag, { value: "Module" })), Fe = {
1847
- install: (M, U) => {
1848
- Reflect.ownKeys(M._context.provides).some((k) => String(k) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.log(Reflect.ownKeys(M._context.provides));
1890
+ default: Pe
1891
+ }, Symbol.toStringTag, { value: "Module" })), He = {
1892
+ install: (x, C) => {
1893
+ Reflect.ownKeys(x._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(x._context.provides));
1849
1894
  },
1850
1895
  version: "__VERSION__"
1851
- }, Ye = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": xe, "./views/language/index.vue": Ce, "./views/menu/index.vue": $e, "./views/role/index.vue": Ne });
1896
+ }, Ge = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": Me, "./views/language/index.vue": Ae, "./views/menu/index.vue": De, "./views/role/index.vue": Fe });
1852
1897
  export {
1853
- ze as MenusPage,
1854
- Be as RolesPage,
1855
- Ye as basicModules,
1856
- Fe as default
1898
+ Ie as MenusPage,
1899
+ Pe as RolesPage,
1900
+ Ge as basicModules,
1901
+ He as default
1857
1902
  };