auto-vue-basic 0.0.17 → 0.0.19

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