auto-vue-basic 0.0.21 → 0.0.22

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