auto-vue-basic 0.0.13 → 0.0.14

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