auto-vue-basic 0.0.35 → 0.0.37

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