auto-vue-basic 0.0.13 → 0.0.15

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