auto-vue-basic 0.0.17 → 0.0.18

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