auto-vue-basic 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-vue-basic.es.js +147 -155
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as z, reactive as N, computed as
|
2
|
-
import { createAutoApi as G, Translate as a, RulesUtils as
|
3
|
-
const
|
1
|
+
import { defineComponent as z, reactive as N, computed as me, ref as oe, resolveComponent as d, createBlock as E, openBlock as O, unref as e, isRef as T, withCtx as n, createVNode as l, createTextVNode as K, createElementBlock as I, Fragment as B, renderList as j, toDisplayString as le, withKeys as H, createElementVNode as W, toRef as te, normalizeClass as ce, onMounted as be, watch as fe, nextTick as _e, createCommentVNode as ge } from "vue";
|
2
|
+
import { createAutoApi as G, Translate as a, RulesUtils as he, useForm as F, FormDialog as Y, ModifyButton as J, useTablePage as P, ProTable as Q, DEFAULT_PAGE_KEY as X, RefreshButton as D, OpenButton as Z, SearchButton as ee, DEFAULT_STATUS_KEY as se, AutoApiUtils as Ve, useLoading as ne, useSelect as re } from "auto-vue-manual";
|
3
|
+
const pe = G("admin", {}, "key"), ue = G("role", {}, "key"), ye = /* @__PURE__ */ z({
|
4
4
|
__name: "info",
|
5
5
|
emits: ["refresh"],
|
6
6
|
setup(S, { expose: R, emit: w }) {
|
@@ -15,12 +15,12 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
15
15
|
language: "zh-CN",
|
16
16
|
remark: "",
|
17
17
|
roles: []
|
18
|
-
}), s =
|
18
|
+
}), s = me(() => !o.key), c = {
|
19
19
|
username: [
|
20
20
|
{ required: !0, message: a("base.placeholder.input base.username"), trigger: "blur" }
|
21
21
|
],
|
22
22
|
phone: [
|
23
|
-
{ required: !0, validator:
|
23
|
+
{ required: !0, validator: he.phoneRule, message: a("base.placeholder.input base.phone"), trigger: "blur" }
|
24
24
|
],
|
25
25
|
password: [
|
26
26
|
{ required: s, message: a("base.placeholder.input base.password"), trigger: "blur" }
|
@@ -34,31 +34,31 @@ const ie = G("admin", {}, "key"), de = G("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 =
|
38
|
-
const u = await
|
37
|
+
}, p = oe([]), h = async () => {
|
38
|
+
const u = await ue.list();
|
39
39
|
p.value = Array.isArray(u == null ? void 0 : u.data) ? u.data : [];
|
40
40
|
}, { modal: x, title: C, form: b, requesting: V, executing: y, open: U, modify: k, submit: i, closed: t } = F(
|
41
41
|
A,
|
42
42
|
o,
|
43
|
-
|
43
|
+
pe
|
44
44
|
);
|
45
45
|
return R({
|
46
46
|
openOrModify: async (u) => {
|
47
|
-
p.value.length || await
|
47
|
+
p.value.length || await h(), u ? (o.key = u, k()) : U();
|
48
48
|
}
|
49
49
|
}), (u, m) => {
|
50
|
-
const M = d("el-input"),
|
50
|
+
const M = d("el-input"), g = d("el-form-item"), _ = d("el-radio-button"), v = d("el-radio-group"), f = d("el-checkbox"), L = d("el-checkbox-group"), ie = d("el-form");
|
51
51
|
return O(), E(e(Y), {
|
52
52
|
modelValue: e(x),
|
53
53
|
"onUpdate:modelValue": m[7] || (m[7] = (q) => T(x) ? x.value = q : null),
|
54
54
|
title: e(C)(),
|
55
|
-
width: "
|
55
|
+
width: "600px",
|
56
56
|
executing: e(y),
|
57
57
|
onClosed: e(t),
|
58
58
|
onSubmit: e(i)
|
59
59
|
}, {
|
60
60
|
default: n(() => [
|
61
|
-
l(
|
61
|
+
l(ie, {
|
62
62
|
ref_key: "form",
|
63
63
|
ref: b,
|
64
64
|
model: o,
|
@@ -67,7 +67,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
67
67
|
disabled: e(V) || e(y)
|
68
68
|
}, {
|
69
69
|
default: n(() => [
|
70
|
-
l(
|
70
|
+
l(g, {
|
71
71
|
label: e(a)("base.username"),
|
72
72
|
prop: "username"
|
73
73
|
}, {
|
@@ -81,7 +81,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
81
81
|
]),
|
82
82
|
_: 1
|
83
83
|
}, 8, ["label"]),
|
84
|
-
l(
|
84
|
+
l(g, {
|
85
85
|
label: e(a)("base.phone"),
|
86
86
|
prop: "phone"
|
87
87
|
}, {
|
@@ -95,7 +95,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
95
95
|
]),
|
96
96
|
_: 1
|
97
97
|
}, 8, ["label"]),
|
98
|
-
l(
|
98
|
+
l(g, {
|
99
99
|
label: e(a)("base.password"),
|
100
100
|
prop: "password",
|
101
101
|
required: s.value
|
@@ -111,7 +111,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
111
111
|
]),
|
112
112
|
_: 1
|
113
113
|
}, 8, ["label", "required"]),
|
114
|
-
l(
|
114
|
+
l(g, {
|
115
115
|
label: e(a)("base.email"),
|
116
116
|
prop: "email"
|
117
117
|
}, {
|
@@ -124,7 +124,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
124
124
|
]),
|
125
125
|
_: 1
|
126
126
|
}, 8, ["label"]),
|
127
|
-
l(
|
127
|
+
l(g, {
|
128
128
|
label: e(a)("base.language"),
|
129
129
|
prop: "language"
|
130
130
|
}, {
|
@@ -154,7 +154,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
154
154
|
]),
|
155
155
|
_: 1
|
156
156
|
}, 8, ["label"]),
|
157
|
-
l(
|
157
|
+
l(g, {
|
158
158
|
label: e(a)("base.roles"),
|
159
159
|
prop: "roles"
|
160
160
|
}, {
|
@@ -169,7 +169,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
169
169
|
label: q.key
|
170
170
|
}, {
|
171
171
|
default: n(() => [
|
172
|
-
K(
|
172
|
+
K(le(q.translate), 1)
|
173
173
|
]),
|
174
174
|
_: 2
|
175
175
|
}, 1032, ["label"]))), 128))
|
@@ -179,7 +179,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
179
179
|
]),
|
180
180
|
_: 1
|
181
181
|
}, 8, ["label"]),
|
182
|
-
l(
|
182
|
+
l(g, {
|
183
183
|
label: e(a)("base.remark"),
|
184
184
|
prop: "remark"
|
185
185
|
}, {
|
@@ -200,7 +200,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
200
200
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
201
201
|
};
|
202
202
|
}
|
203
|
-
}),
|
203
|
+
}), ke = /* @__PURE__ */ z({
|
204
204
|
__name: "index",
|
205
205
|
setup(S) {
|
206
206
|
const R = {
|
@@ -263,7 +263,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
263
263
|
keyword: s,
|
264
264
|
search: c,
|
265
265
|
refresh: p,
|
266
|
-
reset:
|
266
|
+
reset: h,
|
267
267
|
openInfo: x,
|
268
268
|
modifyInfo: C
|
269
269
|
} = P(R);
|
@@ -290,9 +290,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
290
290
|
onClear: e(c)
|
291
291
|
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(ee), {
|
292
292
|
onSearch: e(c)
|
293
|
-
}, null, 8, ["onSearch"])
|
294
|
-
onReset: e(g)
|
295
|
-
}, null, 8, ["onReset"])]),
|
293
|
+
}, null, 8, ["onSearch"])]),
|
296
294
|
_: 1
|
297
295
|
})]),
|
298
296
|
default: n(() => [l(e(Q), {
|
@@ -300,22 +298,22 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
300
298
|
ref: A,
|
301
299
|
size: "small",
|
302
300
|
columns: w,
|
303
|
-
url: e(
|
301
|
+
url: e(pe).urls[e(X)],
|
304
302
|
"search-param": e(s),
|
305
303
|
autoSearch: ""
|
306
|
-
}, null, 8, ["url", "search-param"]), l(
|
304
|
+
}, null, 8, ["url", "search-param"]), l(ye, {
|
307
305
|
ref_key: "infoRef",
|
308
306
|
ref: o,
|
309
|
-
onRefresh: e(
|
307
|
+
onRefresh: e(h)
|
310
308
|
}, null, 8, ["onRefresh"])]),
|
311
309
|
_: 1
|
312
310
|
});
|
313
311
|
};
|
314
312
|
}
|
315
|
-
}),
|
313
|
+
}), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
316
314
|
__proto__: null,
|
317
|
-
default:
|
318
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
315
|
+
default: ke
|
316
|
+
}, Symbol.toStringTag, { value: "Module" })), ae = G("translate", {}, "key"), we = /* @__PURE__ */ z({
|
319
317
|
__name: "info",
|
320
318
|
emits: ["refresh"],
|
321
319
|
setup(S, { expose: R, emit: w }) {
|
@@ -341,30 +339,30 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
341
339
|
result: [
|
342
340
|
{ required: !0, message: a("language.placeholder.result"), trigger: "blur" }
|
343
341
|
]
|
344
|
-
}, { modal: c, title: p, form:
|
342
|
+
}, { modal: c, title: p, form: h, requesting: x, executing: C, open: b, modify: V, submit: y, closed: U } = F(
|
345
343
|
A,
|
346
344
|
o,
|
347
|
-
|
345
|
+
ae
|
348
346
|
);
|
349
347
|
return R({
|
350
348
|
openOrModify: (i) => {
|
351
349
|
i ? (o.key = i, V()) : b();
|
352
350
|
}
|
353
351
|
}), (i, t) => {
|
354
|
-
const r = d("el-input"), u = d("el-form-item"), m = d("el-radio-button"), M = d("el-radio-group"),
|
352
|
+
const r = d("el-input"), u = d("el-form-item"), m = d("el-radio-button"), M = d("el-radio-group"), g = d("el-form");
|
355
353
|
return O(), E(e(Y), {
|
356
354
|
modelValue: e(c),
|
357
355
|
"onUpdate:modelValue": t[5] || (t[5] = (_) => T(c) ? c.value = _ : null),
|
358
356
|
title: e(p)(),
|
359
|
-
width: "
|
357
|
+
width: "600px",
|
360
358
|
executing: e(C),
|
361
359
|
onClosed: e(U),
|
362
360
|
onSubmit: e(y)
|
363
361
|
}, {
|
364
362
|
default: n(() => [
|
365
|
-
l(
|
363
|
+
l(g, {
|
366
364
|
ref_key: "form",
|
367
|
-
ref:
|
365
|
+
ref: h,
|
368
366
|
model: o,
|
369
367
|
"label-width": "auto",
|
370
368
|
rules: s,
|
@@ -465,7 +463,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
465
463
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
466
464
|
};
|
467
465
|
}
|
468
|
-
}),
|
466
|
+
}), xe = /* @__PURE__ */ z({
|
469
467
|
__name: "index",
|
470
468
|
setup(S) {
|
471
469
|
const R = {
|
@@ -495,7 +493,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
495
493
|
props: {
|
496
494
|
activeValue: 1,
|
497
495
|
inactiveValue: 2,
|
498
|
-
api:
|
496
|
+
api: ae.urls[se],
|
499
497
|
refresh: !0
|
500
498
|
}
|
501
499
|
}, {
|
@@ -526,7 +524,7 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
526
524
|
keyword: s,
|
527
525
|
search: c,
|
528
526
|
refresh: p,
|
529
|
-
reset:
|
527
|
+
reset: h,
|
530
528
|
openInfo: x,
|
531
529
|
modifyInfo: C
|
532
530
|
} = P(R);
|
@@ -564,36 +562,34 @@ const ie = G("admin", {}, "key"), de = G("role", {}, "key"), ke = /* @__PURE__ *
|
|
564
562
|
_: 1
|
565
563
|
}, 8, ["modelValue", "onChange"]), l(e(ee), {
|
566
564
|
onSearch: e(c)
|
567
|
-
}, null, 8, ["onSearch"])
|
568
|
-
onReset: e(g)
|
569
|
-
}, null, 8, ["onReset"])]),
|
565
|
+
}, null, 8, ["onSearch"])]),
|
570
566
|
_: 1
|
571
567
|
})]),
|
572
568
|
default: n(() => [l(e(Q), {
|
573
569
|
ref: "proTableRef",
|
574
570
|
size: "small",
|
575
571
|
columns: w,
|
576
|
-
url: e(
|
572
|
+
url: e(ae).urls[e(X)],
|
577
573
|
"search-param": e(s),
|
578
574
|
autoSearch: ""
|
579
|
-
}, null, 8, ["url", "search-param"]), l(
|
575
|
+
}, null, 8, ["url", "search-param"]), l(we, {
|
580
576
|
ref_key: "infoRef",
|
581
577
|
ref: o,
|
582
|
-
onRefresh: e(
|
578
|
+
onRefresh: e(h)
|
583
579
|
}, null, 8, ["onRefresh"])]),
|
584
580
|
_: 1
|
585
581
|
});
|
586
582
|
};
|
587
583
|
}
|
588
|
-
}),
|
584
|
+
}), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
589
585
|
__proto__: null,
|
590
|
-
default:
|
591
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
586
|
+
default: xe
|
587
|
+
}, Symbol.toStringTag, { value: "Module" })), de = {
|
592
588
|
tops: "tops",
|
593
589
|
rules: "rules"
|
594
|
-
}, $ =
|
590
|
+
}, $ = Ve.createAutoApi("menu", de, "id", Object.keys(de));
|
595
591
|
/*! Element Plus Icons Vue v2.3.1 */
|
596
|
-
var
|
592
|
+
var Re = /* @__PURE__ */ z({
|
597
593
|
name: "Key",
|
598
594
|
__name: "key",
|
599
595
|
setup(S) {
|
@@ -607,8 +603,8 @@ var Ce = /* @__PURE__ */ z({
|
|
607
603
|
})
|
608
604
|
]));
|
609
605
|
}
|
610
|
-
}),
|
611
|
-
const
|
606
|
+
}), Ce = Re;
|
607
|
+
const Me = /* @__PURE__ */ z({
|
612
608
|
__name: "topMenuSelect",
|
613
609
|
props: {
|
614
610
|
modelValue: {
|
@@ -626,13 +622,13 @@ const Se = /* @__PURE__ */ z({
|
|
626
622
|
}) {
|
627
623
|
const w = R, A = S, {
|
628
624
|
requesting: o
|
629
|
-
} =
|
625
|
+
} = ne($), {
|
630
626
|
value: s,
|
631
627
|
options: c,
|
632
628
|
change: p,
|
633
|
-
refresh:
|
629
|
+
refresh: h,
|
634
630
|
filterOptions: x
|
635
|
-
} =
|
631
|
+
} = re(te(A, "modelValue"), w, {
|
636
632
|
key: "MENU_LIST",
|
637
633
|
api: $,
|
638
634
|
url: $.urls.tops,
|
@@ -655,13 +651,13 @@ const Se = /* @__PURE__ */ z({
|
|
655
651
|
loading: e(o),
|
656
652
|
text: "",
|
657
653
|
size: "small",
|
658
|
-
onRefresh: b[0] || (b[0] = (y) => e(
|
654
|
+
onRefresh: b[0] || (b[0] = (y) => e(h)(!0))
|
659
655
|
}, null, 8, ["loading"])]),
|
660
656
|
_: 1
|
661
657
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
662
658
|
};
|
663
659
|
}
|
664
|
-
}),
|
660
|
+
}), Se = /* @__PURE__ */ z({
|
665
661
|
__name: "info",
|
666
662
|
emits: ["refresh"],
|
667
663
|
setup(S, { expose: R, emit: w }) {
|
@@ -707,7 +703,7 @@ const Se = /* @__PURE__ */ z({
|
|
707
703
|
component: [
|
708
704
|
{ required: !0, message: a("base.placeholder.input menu.component"), trigger: "blur" }
|
709
705
|
]
|
710
|
-
}, { modal: c, title: p, form:
|
706
|
+
}, { modal: c, title: p, form: h, requesting: x, executing: C, open: b, modify: V, submit: y, closed: U } = F(
|
711
707
|
A,
|
712
708
|
o,
|
713
709
|
$
|
@@ -717,12 +713,12 @@ const Se = /* @__PURE__ */ z({
|
|
717
713
|
i ? (o.id = i, V()) : b();
|
718
714
|
}
|
719
715
|
}), (i, t) => {
|
720
|
-
const r = d("el-form-item"), u = d("el-col"), m = d("el-input-number"), M = d("el-row"),
|
716
|
+
const r = d("el-form-item"), u = d("el-col"), m = d("el-input-number"), M = d("el-row"), g = d("el-input"), _ = d("el-switch"), v = d("el-form");
|
721
717
|
return O(), E(e(Y), {
|
722
718
|
modelValue: e(c),
|
723
719
|
"onUpdate:modelValue": t[17] || (t[17] = (f) => T(c) ? c.value = f : null),
|
724
720
|
title: e(p)(),
|
725
|
-
width: "
|
721
|
+
width: "1000px",
|
726
722
|
executing: e(C),
|
727
723
|
onClosed: e(U),
|
728
724
|
onSubmit: e(y)
|
@@ -730,7 +726,7 @@ const Se = /* @__PURE__ */ z({
|
|
730
726
|
default: n(() => [
|
731
727
|
l(v, {
|
732
728
|
ref_key: "form",
|
733
|
-
ref:
|
729
|
+
ref: h,
|
734
730
|
model: o,
|
735
731
|
"label-width": "auto",
|
736
732
|
rules: s,
|
@@ -750,7 +746,7 @@ const Se = /* @__PURE__ */ z({
|
|
750
746
|
prop: "menu_id"
|
751
747
|
}, {
|
752
748
|
default: n(() => [
|
753
|
-
l(
|
749
|
+
l(Me, {
|
754
750
|
modelValue: o.menu_id,
|
755
751
|
"onUpdate:modelValue": t[0] || (t[0] = (f) => o.menu_id = f)
|
756
752
|
}, null, 8, ["modelValue"])
|
@@ -787,7 +783,7 @@ const Se = /* @__PURE__ */ z({
|
|
787
783
|
prop: "module"
|
788
784
|
}, {
|
789
785
|
default: n(() => [
|
790
|
-
l(
|
786
|
+
l(g, {
|
791
787
|
modelValue: o.module,
|
792
788
|
"onUpdate:modelValue": t[2] || (t[2] = (f) => o.module = f),
|
793
789
|
placeholder: e(a)("base.placeholder.input")
|
@@ -800,7 +796,7 @@ const Se = /* @__PURE__ */ z({
|
|
800
796
|
prop: "name"
|
801
797
|
}, {
|
802
798
|
default: n(() => [
|
803
|
-
l(
|
799
|
+
l(g, {
|
804
800
|
modelValue: o.name,
|
805
801
|
"onUpdate:modelValue": t[3] || (t[3] = (f) => o.name = f),
|
806
802
|
placeholder: e(a)("base.placeholder.input")
|
@@ -813,7 +809,7 @@ const Se = /* @__PURE__ */ z({
|
|
813
809
|
prop: "en_name"
|
814
810
|
}, {
|
815
811
|
default: n(() => [
|
816
|
-
l(
|
812
|
+
l(g, {
|
817
813
|
modelValue: o.en_name,
|
818
814
|
"onUpdate:modelValue": t[4] || (t[4] = (f) => o.en_name = f),
|
819
815
|
placeholder: e(a)("base.placeholder.input")
|
@@ -826,7 +822,7 @@ const Se = /* @__PURE__ */ z({
|
|
826
822
|
prop: "component"
|
827
823
|
}, {
|
828
824
|
default: n(() => [
|
829
|
-
l(
|
825
|
+
l(g, {
|
830
826
|
modelValue: o.component,
|
831
827
|
"onUpdate:modelValue": t[5] || (t[5] = (f) => o.component = f),
|
832
828
|
placeholder: e(a)("base.placeholder.input")
|
@@ -839,7 +835,7 @@ const Se = /* @__PURE__ */ z({
|
|
839
835
|
prop: "url"
|
840
836
|
}, {
|
841
837
|
default: n(() => [
|
842
|
-
l(
|
838
|
+
l(g, {
|
843
839
|
modelValue: o.url,
|
844
840
|
"onUpdate:modelValue": t[6] || (t[6] = (f) => o.url = f),
|
845
841
|
placeholder: e(a)("base.placeholder.input")
|
@@ -852,7 +848,7 @@ const Se = /* @__PURE__ */ z({
|
|
852
848
|
prop: "remark"
|
853
849
|
}, {
|
854
850
|
default: n(() => [
|
855
|
-
l(
|
851
|
+
l(g, {
|
856
852
|
modelValue: o.remark,
|
857
853
|
"onUpdate:modelValue": t[7] || (t[7] = (f) => o.remark = f),
|
858
854
|
placeholder: e(a)("base.placeholder.input")
|
@@ -870,7 +866,7 @@ const Se = /* @__PURE__ */ z({
|
|
870
866
|
prop: "icon"
|
871
867
|
}, {
|
872
868
|
default: n(() => [
|
873
|
-
l(
|
869
|
+
l(g, {
|
874
870
|
modelValue: o.icon,
|
875
871
|
"onUpdate:modelValue": t[8] || (t[8] = (f) => o.icon = f),
|
876
872
|
placeholder: e(a)("base.placeholder.input"),
|
@@ -880,7 +876,7 @@ const Se = /* @__PURE__ */ z({
|
|
880
876
|
}, {
|
881
877
|
prepend: n(() => [
|
882
878
|
W("span", {
|
883
|
-
class:
|
879
|
+
class: ce("iconfont " + o.icon)
|
884
880
|
}, null, 2)
|
885
881
|
]),
|
886
882
|
_: 1
|
@@ -893,7 +889,7 @@ const Se = /* @__PURE__ */ z({
|
|
893
889
|
prop: "meta.title"
|
894
890
|
}, {
|
895
891
|
default: n(() => [
|
896
|
-
l(
|
892
|
+
l(g, {
|
897
893
|
modelValue: o.meta.title,
|
898
894
|
"onUpdate:modelValue": t[10] || (t[10] = (f) => o.meta.title = f),
|
899
895
|
placeholder: e(a)("base.placeholder.input")
|
@@ -906,7 +902,7 @@ const Se = /* @__PURE__ */ z({
|
|
906
902
|
prop: "meta.active"
|
907
903
|
}, {
|
908
904
|
default: n(() => [
|
909
|
-
l(
|
905
|
+
l(g, {
|
910
906
|
modelValue: o.meta.active,
|
911
907
|
"onUpdate:modelValue": t[11] || (t[11] = (f) => o.meta.active = f),
|
912
908
|
placeholder: e(a)("base.placeholder.input")
|
@@ -1018,7 +1014,7 @@ const Se = /* @__PURE__ */ z({
|
|
1018
1014
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1019
1015
|
};
|
1020
1016
|
}
|
1021
|
-
}),
|
1017
|
+
}), Ae = G("rule", {}, "key"), Oe = /* @__PURE__ */ z({
|
1022
1018
|
__name: "menuSelect",
|
1023
1019
|
props: {
|
1024
1020
|
modelValue: {
|
@@ -1036,13 +1032,13 @@ const Se = /* @__PURE__ */ z({
|
|
1036
1032
|
}) {
|
1037
1033
|
const w = R, A = S, {
|
1038
1034
|
requesting: o
|
1039
|
-
} =
|
1035
|
+
} = ne($), {
|
1040
1036
|
value: s,
|
1041
1037
|
options: c,
|
1042
1038
|
change: p,
|
1043
|
-
refresh:
|
1039
|
+
refresh: h,
|
1044
1040
|
filterOptions: x
|
1045
|
-
} =
|
1041
|
+
} = re(te(A, "modelValue"), w, {
|
1046
1042
|
key: "MENU_LIST",
|
1047
1043
|
api: $,
|
1048
1044
|
isArray: !0
|
@@ -1064,13 +1060,13 @@ const Se = /* @__PURE__ */ z({
|
|
1064
1060
|
loading: e(o),
|
1065
1061
|
text: "",
|
1066
1062
|
size: "small",
|
1067
|
-
onRefresh: b[0] || (b[0] = (y) => e(
|
1063
|
+
onRefresh: b[0] || (b[0] = (y) => e(h)(!0))
|
1068
1064
|
}, null, 8, ["loading"])]),
|
1069
1065
|
_: 1
|
1070
1066
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
1071
1067
|
};
|
1072
1068
|
}
|
1073
|
-
}),
|
1069
|
+
}), qe = /* @__PURE__ */ z({
|
1074
1070
|
__name: "rule",
|
1075
1071
|
emits: ["refresh"],
|
1076
1072
|
setup(S, { expose: R, emit: w }) {
|
@@ -1098,22 +1094,22 @@ const Se = /* @__PURE__ */ z({
|
|
1098
1094
|
urls: [
|
1099
1095
|
{ required: !0, message: a("base.placeholder.input base.rules"), trigger: "blur" }
|
1100
1096
|
]
|
1101
|
-
}, { modal: c, title: p, form:
|
1097
|
+
}, { modal: c, title: p, form: h, requesting: x, executing: C, open: b, modify: V, submit: y, closed: U } = F(
|
1102
1098
|
A,
|
1103
1099
|
o,
|
1104
|
-
|
1100
|
+
Ae
|
1105
1101
|
);
|
1106
1102
|
return R({
|
1107
1103
|
openOrModify: (i) => {
|
1108
1104
|
i ? (o.key = i, V()) : b();
|
1109
1105
|
}
|
1110
1106
|
}), (i, t) => {
|
1111
|
-
const r = d("el-form-item"), u = d("el-input-number"), m = d("el-input"), M = d("el-col"),
|
1107
|
+
const r = d("el-form-item"), u = d("el-input-number"), m = d("el-input"), M = d("el-col"), g = d("el-row"), _ = d("el-form");
|
1112
1108
|
return O(), E(e(Y), {
|
1113
1109
|
modelValue: e(c),
|
1114
1110
|
"onUpdate:modelValue": t[6] || (t[6] = (v) => T(c) ? c.value = v : null),
|
1115
|
-
title: e(p)(),
|
1116
|
-
width: "
|
1111
|
+
title: e(p)("base.rules"),
|
1112
|
+
width: "1000px",
|
1117
1113
|
executing: e(C),
|
1118
1114
|
onClosed: e(U),
|
1119
1115
|
onSubmit: e(y)
|
@@ -1121,14 +1117,14 @@ const Se = /* @__PURE__ */ z({
|
|
1121
1117
|
default: n(() => [
|
1122
1118
|
l(_, {
|
1123
1119
|
ref_key: "form",
|
1124
|
-
ref:
|
1120
|
+
ref: h,
|
1125
1121
|
model: o,
|
1126
1122
|
"label-width": "auto",
|
1127
1123
|
rules: s,
|
1128
1124
|
disabled: e(x) || e(C)
|
1129
1125
|
}, {
|
1130
1126
|
default: n(() => [
|
1131
|
-
l(
|
1127
|
+
l(g, { gutter: 20 }, {
|
1132
1128
|
default: n(() => [
|
1133
1129
|
l(M, { span: 10 }, {
|
1134
1130
|
default: n(() => [
|
@@ -1137,7 +1133,7 @@ const Se = /* @__PURE__ */ z({
|
|
1137
1133
|
prop: "menu_id"
|
1138
1134
|
}, {
|
1139
1135
|
default: n(() => [
|
1140
|
-
l(
|
1136
|
+
l(Oe, {
|
1141
1137
|
modelValue: o.menu_id,
|
1142
1138
|
"onUpdate:modelValue": t[0] || (t[0] = (v) => o.menu_id = v)
|
1143
1139
|
}, null, 8, ["modelValue"])
|
@@ -1231,7 +1227,7 @@ const Se = /* @__PURE__ */ z({
|
|
1231
1227
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
1232
1228
|
};
|
1233
1229
|
}
|
1234
|
-
}),
|
1230
|
+
}), Le = /* @__PURE__ */ z({
|
1235
1231
|
__name: "index",
|
1236
1232
|
setup(S) {
|
1237
1233
|
const R = {
|
@@ -1239,8 +1235,8 @@ const Se = /* @__PURE__ */ z({
|
|
1239
1235
|
status: 0
|
1240
1236
|
}, w = [
|
1241
1237
|
{
|
1242
|
-
label: a("base.
|
1243
|
-
|
1238
|
+
label: a("base.sort"),
|
1239
|
+
prop: "sort",
|
1244
1240
|
width: 60
|
1245
1241
|
},
|
1246
1242
|
{
|
@@ -1313,7 +1309,7 @@ const Se = /* @__PURE__ */ z({
|
|
1313
1309
|
props: {
|
1314
1310
|
activeValue: 1,
|
1315
1311
|
inactiveValue: 2,
|
1316
|
-
api: $.urls[
|
1312
|
+
api: $.urls[se],
|
1317
1313
|
refresh: !0
|
1318
1314
|
}
|
1319
1315
|
},
|
@@ -1334,7 +1330,7 @@ const Se = /* @__PURE__ */ z({
|
|
1334
1330
|
keyword: s,
|
1335
1331
|
search: c,
|
1336
1332
|
refresh: p,
|
1337
|
-
reset:
|
1333
|
+
reset: h,
|
1338
1334
|
openInfo: x,
|
1339
1335
|
modifyInfo: C
|
1340
1336
|
} = P(R), {
|
@@ -1358,31 +1354,29 @@ const Se = /* @__PURE__ */ z({
|
|
1358
1354
|
}, null, 8, ["onOpen"]), l(i, {
|
1359
1355
|
circle: "",
|
1360
1356
|
onClick: e(V),
|
1361
|
-
icon: e(
|
1357
|
+
icon: e(Ce)
|
1362
1358
|
}, null, 8, ["onClick", "icon"]), l(t, {
|
1363
1359
|
class: "basic-search-input",
|
1364
1360
|
modelValue: e(s).keyword,
|
1365
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
1361
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => e(s).keyword = g),
|
1366
1362
|
placeholder: e(a)("base.placeholder.keyword"),
|
1367
1363
|
clearable: "",
|
1368
1364
|
onKeyup: H(e(c), ["enter"]),
|
1369
1365
|
onClear: e(c)
|
1370
1366
|
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(u, {
|
1371
1367
|
modelValue: e(s).status,
|
1372
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
1368
|
+
"onUpdate:modelValue": k[1] || (k[1] = (g) => e(s).status = g),
|
1373
1369
|
onChange: e(c)
|
1374
1370
|
}, {
|
1375
|
-
default: n(() => [(O(), I(B, null, j([0, 1, 2], (
|
1376
|
-
key:
|
1377
|
-
label: e(a)(`base.DISABLE_ENABLE.${
|
1378
|
-
value:
|
1371
|
+
default: n(() => [(O(), I(B, null, j([0, 1, 2], (g) => l(r, {
|
1372
|
+
key: g,
|
1373
|
+
label: e(a)(`base.DISABLE_ENABLE.${g}`),
|
1374
|
+
value: g
|
1379
1375
|
}, null, 8, ["label", "value"])), 64))]),
|
1380
1376
|
_: 1
|
1381
1377
|
}, 8, ["modelValue", "onChange"]), l(e(ee), {
|
1382
1378
|
onSearch: e(c)
|
1383
|
-
}, null, 8, ["onSearch"])
|
1384
|
-
onReset: e(g)
|
1385
|
-
}, null, 8, ["onReset"])]),
|
1379
|
+
}, null, 8, ["onSearch"])]),
|
1386
1380
|
_: 1
|
1387
1381
|
})]),
|
1388
1382
|
default: n(() => [l(e(Q), {
|
@@ -1393,11 +1387,11 @@ const Se = /* @__PURE__ */ z({
|
|
1393
1387
|
url: e($).urls[e(X)],
|
1394
1388
|
"search-param": e(s),
|
1395
1389
|
autoSearch: ""
|
1396
|
-
}, null, 8, ["url", "search-param"]), l(
|
1390
|
+
}, null, 8, ["url", "search-param"]), l(Se, {
|
1397
1391
|
ref_key: "infoRef",
|
1398
1392
|
ref: o,
|
1399
|
-
onRefresh: e(
|
1400
|
-
}, null, 8, ["onRefresh"]), l(
|
1393
|
+
onRefresh: e(h)
|
1394
|
+
}, null, 8, ["onRefresh"]), l(qe, {
|
1401
1395
|
ref_key: "ruleRef",
|
1402
1396
|
ref: b,
|
1403
1397
|
onRefresh: e(p)
|
@@ -1406,10 +1400,10 @@ const Se = /* @__PURE__ */ z({
|
|
1406
1400
|
});
|
1407
1401
|
};
|
1408
1402
|
}
|
1409
|
-
}),
|
1403
|
+
}), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1410
1404
|
__proto__: null,
|
1411
|
-
default:
|
1412
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1405
|
+
default: Le
|
1406
|
+
}, Symbol.toStringTag, { value: "Module" })), ze = { class: "rule-check" }, $e = { style: { width: "80px", "line-height": "36px" } }, Ie = /* @__PURE__ */ z({
|
1413
1407
|
__name: "rulesCheck",
|
1414
1408
|
props: {
|
1415
1409
|
modelValue: { type: Array, required: !0 },
|
@@ -1417,36 +1411,36 @@ const Se = /* @__PURE__ */ z({
|
|
1417
1411
|
},
|
1418
1412
|
emits: ["update:modelValue"],
|
1419
1413
|
setup(S, { expose: R, emit: w }) {
|
1420
|
-
const { requesting: A } =
|
1414
|
+
const { requesting: A } = ne($), o = S, s = w, c = oe(!1), p = N({
|
1421
1415
|
checkAll: !1,
|
1422
1416
|
indeterminate: !1,
|
1423
1417
|
MenuAll: {},
|
1424
1418
|
MenuList: {},
|
1425
1419
|
MenuIndeterminate: {}
|
1426
|
-
}), { options:
|
1427
|
-
|
1420
|
+
}), { options: h, refresh: x } = re(
|
1421
|
+
te(o, "modelValue"),
|
1428
1422
|
s,
|
1429
1423
|
{ key: "RULE_CHECK", api: $, url: $.urls.rules, isArray: !0 },
|
1430
1424
|
!1
|
1431
1425
|
);
|
1432
1426
|
function C() {
|
1433
|
-
|
1427
|
+
h.value.forEach((i) => {
|
1434
1428
|
var t;
|
1435
1429
|
(t = i.rules) != null && t.length && (p.MenuAll[i.id] = !1, p.MenuIndeterminate[i.id] = !1, p.MenuList[i.id] = []);
|
1436
1430
|
});
|
1437
1431
|
}
|
1438
1432
|
function b(i) {
|
1439
|
-
|
1433
|
+
h.value.forEach((t) => {
|
1440
1434
|
var r;
|
1441
1435
|
(r = t.rules) != null && r.length && (p.MenuList[t.id] = i ? t.rules.map((u) => u.key) : []);
|
1442
1436
|
}), y();
|
1443
1437
|
}
|
1444
1438
|
function V(i, t) {
|
1445
|
-
const r =
|
1439
|
+
const r = h.value.find((u) => u.id === t);
|
1446
1440
|
p.MenuList[t] = i && r ? r.rules.map((u) => u.key) : [], y();
|
1447
1441
|
}
|
1448
1442
|
function y() {
|
1449
|
-
|
1443
|
+
h.value.forEach((i) => {
|
1450
1444
|
var u, m;
|
1451
1445
|
const t = ((u = i.rules) == null ? void 0 : u.length) || 0, r = ((m = p.MenuList[i.id]) == null ? void 0 : m.length) || 0;
|
1452
1446
|
p.MenuAll[i.id] = r === t && t > 0, p.MenuIndeterminate[i.id] = r > 0 && r < t;
|
@@ -1457,23 +1451,23 @@ const Se = /* @__PURE__ */ z({
|
|
1457
1451
|
}
|
1458
1452
|
function k(i) {
|
1459
1453
|
var t;
|
1460
|
-
if (Array.isArray(
|
1461
|
-
for (let r of
|
1454
|
+
if (Array.isArray(h.value) && h.value.length > 0) {
|
1455
|
+
for (let r of h.value)
|
1462
1456
|
if (Array.isArray(r.rules) && r.rules.length > 0)
|
1463
1457
|
for (let u of r.rules)
|
1464
1458
|
i.some((m) => m === u.key) && (p.MenuList[r.id] = (((t = p.MenuList) == null ? void 0 : t[r.id]) || []).concat([u.key]));
|
1465
1459
|
y(), c.value = !0;
|
1466
1460
|
}
|
1467
1461
|
}
|
1468
|
-
return
|
1462
|
+
return be(async () => {
|
1469
1463
|
var i;
|
1470
|
-
(i =
|
1471
|
-
}),
|
1464
|
+
(i = h.value) != null && i.length || await x(), !c.value && o.modelValue && k(o.modelValue);
|
1465
|
+
}), fe(
|
1472
1466
|
() => o.modelValue,
|
1473
1467
|
(i) => {
|
1474
|
-
|
1468
|
+
_e(() => {
|
1475
1469
|
var t;
|
1476
|
-
c.value || !((t =
|
1470
|
+
c.value || !((t = h.value) != null && t.length) || i && i.length > 0 && k(i);
|
1477
1471
|
});
|
1478
1472
|
},
|
1479
1473
|
{ deep: !0, immediate: !0 }
|
@@ -1481,8 +1475,8 @@ const Se = /* @__PURE__ */ z({
|
|
1481
1475
|
generateOption: k,
|
1482
1476
|
cleanChecked: U
|
1483
1477
|
}), (i, t) => {
|
1484
|
-
const r = d("el-checkbox"), u = d("el-space"), m = d("el-text"), M = d("el-divider"),
|
1485
|
-
return O(), I("div",
|
1478
|
+
const r = d("el-checkbox"), u = d("el-space"), m = d("el-text"), M = d("el-divider"), g = d("el-checkbox-group");
|
1479
|
+
return O(), I("div", ze, [
|
1486
1480
|
l(u, { style: { "margin-bottom": "6px" } }, {
|
1487
1481
|
default: n(() => [
|
1488
1482
|
l(r, {
|
@@ -1512,7 +1506,7 @@ const Se = /* @__PURE__ */ z({
|
|
1512
1506
|
alignment: "start"
|
1513
1507
|
}, {
|
1514
1508
|
default: n(() => [
|
1515
|
-
(O(!0), I(B, null, j(e(
|
1509
|
+
(O(!0), I(B, null, j(e(h), (_) => (O(), I("div", {
|
1516
1510
|
key: _.id
|
1517
1511
|
}, [
|
1518
1512
|
l(u, {
|
@@ -1530,7 +1524,7 @@ const Se = /* @__PURE__ */ z({
|
|
1530
1524
|
default: n(() => [
|
1531
1525
|
l(m, { style: { "font-size": "15px" } }, {
|
1532
1526
|
default: n(() => [
|
1533
|
-
K(
|
1527
|
+
K(le(_.translate), 1)
|
1534
1528
|
]),
|
1535
1529
|
_: 2
|
1536
1530
|
}, 1024)
|
@@ -1538,7 +1532,7 @@ const Se = /* @__PURE__ */ z({
|
|
1538
1532
|
_: 2
|
1539
1533
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
1540
1534
|
l(M, { direction: "vertical" }),
|
1541
|
-
_.rules ? (O(), E(
|
1535
|
+
_.rules ? (O(), E(g, {
|
1542
1536
|
key: 0,
|
1543
1537
|
modelValue: p.MenuList[_.id],
|
1544
1538
|
"onUpdate:modelValue": (v) => p.MenuList[_.id] = v,
|
@@ -1551,13 +1545,13 @@ const Se = /* @__PURE__ */ z({
|
|
1551
1545
|
value: v.key
|
1552
1546
|
}, {
|
1553
1547
|
default: n(() => [
|
1554
|
-
W("div",
|
1548
|
+
W("div", $e, le(v.translate), 1)
|
1555
1549
|
]),
|
1556
1550
|
_: 2
|
1557
1551
|
}, 1032, ["value"]))), 128))
|
1558
1552
|
]),
|
1559
1553
|
_: 2
|
1560
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
1554
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : ge("", !0)
|
1561
1555
|
]),
|
1562
1556
|
_: 2
|
1563
1557
|
}, 1024)
|
@@ -1568,11 +1562,11 @@ const Se = /* @__PURE__ */ z({
|
|
1568
1562
|
]);
|
1569
1563
|
};
|
1570
1564
|
}
|
1571
|
-
}),
|
1565
|
+
}), Te = /* @__PURE__ */ z({
|
1572
1566
|
__name: "info",
|
1573
1567
|
emits: ["refresh"],
|
1574
1568
|
setup(S, { expose: R, emit: w }) {
|
1575
|
-
const A = w, o =
|
1569
|
+
const A = w, o = oe(), s = N({
|
1576
1570
|
key: "",
|
1577
1571
|
module: "",
|
1578
1572
|
sort: 0,
|
@@ -1588,10 +1582,10 @@ const Se = /* @__PURE__ */ z({
|
|
1588
1582
|
en_name: [
|
1589
1583
|
{ required: !0, message: a("base.placeholder.input base.en_name"), trigger: "blur" }
|
1590
1584
|
]
|
1591
|
-
}, { modal: p, title:
|
1585
|
+
}, { modal: p, title: h, form: x, requesting: C, executing: b, open: V, modify: y, submit: U, closed: k } = F(
|
1592
1586
|
A,
|
1593
1587
|
s,
|
1594
|
-
|
1588
|
+
ue
|
1595
1589
|
), i = (r) => {
|
1596
1590
|
r ? (s.key = r, y()) : V();
|
1597
1591
|
}, t = () => {
|
@@ -1601,12 +1595,12 @@ const Se = /* @__PURE__ */ z({
|
|
1601
1595
|
return R({
|
1602
1596
|
openOrModify: i
|
1603
1597
|
}), (r, u) => {
|
1604
|
-
const m = d("el-input"), M = d("el-form-item"),
|
1598
|
+
const m = d("el-input"), M = d("el-form-item"), g = d("el-col"), _ = d("el-input-number"), v = d("el-row"), f = d("el-form");
|
1605
1599
|
return O(), E(e(Y), {
|
1606
1600
|
modelValue: e(p),
|
1607
1601
|
"onUpdate:modelValue": u[6] || (u[6] = (L) => T(p) ? p.value = L : null),
|
1608
|
-
title: e(
|
1609
|
-
width: "
|
1602
|
+
title: e(h)(),
|
1603
|
+
width: "1000px",
|
1610
1604
|
executing: e(b),
|
1611
1605
|
onClosed: t,
|
1612
1606
|
onSubmit: e(U)
|
@@ -1623,7 +1617,7 @@ const Se = /* @__PURE__ */ z({
|
|
1623
1617
|
default: n(() => [
|
1624
1618
|
l(v, { gutter: 20 }, {
|
1625
1619
|
default: n(() => [
|
1626
|
-
l(
|
1620
|
+
l(g, { span: 12 }, {
|
1627
1621
|
default: n(() => [
|
1628
1622
|
l(M, {
|
1629
1623
|
label: e(a)("base.module"),
|
@@ -1641,7 +1635,7 @@ const Se = /* @__PURE__ */ z({
|
|
1641
1635
|
]),
|
1642
1636
|
_: 1
|
1643
1637
|
}),
|
1644
|
-
l(
|
1638
|
+
l(g, { span: 12 }, {
|
1645
1639
|
default: n(() => [
|
1646
1640
|
l(M, {
|
1647
1641
|
label: e(a)("base.sort"),
|
@@ -1707,7 +1701,7 @@ const Se = /* @__PURE__ */ z({
|
|
1707
1701
|
prop: "rules"
|
1708
1702
|
}, {
|
1709
1703
|
default: n(() => [
|
1710
|
-
l(
|
1704
|
+
l(Ie, {
|
1711
1705
|
ref_key: "rulesCheck",
|
1712
1706
|
ref: o,
|
1713
1707
|
modelValue: s.rules,
|
@@ -1725,7 +1719,7 @@ const Se = /* @__PURE__ */ z({
|
|
1725
1719
|
}, 8, ["modelValue", "title", "executing", "onSubmit"]);
|
1726
1720
|
};
|
1727
1721
|
}
|
1728
|
-
}),
|
1722
|
+
}), De = /* @__PURE__ */ z({
|
1729
1723
|
__name: "index",
|
1730
1724
|
setup(S) {
|
1731
1725
|
const R = {
|
@@ -1774,7 +1768,7 @@ const Se = /* @__PURE__ */ z({
|
|
1774
1768
|
keyword: s,
|
1775
1769
|
search: c,
|
1776
1770
|
refresh: p,
|
1777
|
-
reset:
|
1771
|
+
reset: h,
|
1778
1772
|
openInfo: x,
|
1779
1773
|
modifyInfo: C
|
1780
1774
|
} = P(R);
|
@@ -1801,9 +1795,7 @@ const Se = /* @__PURE__ */ z({
|
|
1801
1795
|
onClear: e(c)
|
1802
1796
|
}, null, 8, ["modelValue", "placeholder", "onKeyup", "onClear"]), l(e(ee), {
|
1803
1797
|
onSearch: e(c)
|
1804
|
-
}, null, 8, ["onSearch"])
|
1805
|
-
onReset: e(g)
|
1806
|
-
}, null, 8, ["onReset"])]),
|
1798
|
+
}, null, 8, ["onSearch"])]),
|
1807
1799
|
_: 1
|
1808
1800
|
})]),
|
1809
1801
|
default: n(() => [l(e(Q), {
|
@@ -1811,30 +1803,30 @@ const Se = /* @__PURE__ */ z({
|
|
1811
1803
|
ref: A,
|
1812
1804
|
size: "small",
|
1813
1805
|
columns: w,
|
1814
|
-
url: e(
|
1806
|
+
url: e(ue).urls[e(X)],
|
1815
1807
|
"search-param": e(s),
|
1816
1808
|
autoSearch: ""
|
1817
|
-
}, null, 8, ["url", "search-param"]), l(
|
1809
|
+
}, null, 8, ["url", "search-param"]), l(Te, {
|
1818
1810
|
ref_key: "infoRef",
|
1819
1811
|
ref: o,
|
1820
|
-
onRefresh: e(
|
1812
|
+
onRefresh: e(h)
|
1821
1813
|
}, null, 8, ["onRefresh"])]),
|
1822
1814
|
_: 1
|
1823
1815
|
});
|
1824
1816
|
};
|
1825
1817
|
}
|
1826
|
-
}),
|
1818
|
+
}), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1827
1819
|
__proto__: null,
|
1828
|
-
default:
|
1829
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1820
|
+
default: De
|
1821
|
+
}, Symbol.toStringTag, { value: "Module" })), je = {
|
1830
1822
|
install: (S, R) => {
|
1831
1823
|
Reflect.ownKeys(S._context.provides).some((w) => String(w) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), console.log(Reflect.ownKeys(S._context.provides));
|
1832
1824
|
},
|
1833
1825
|
version: "__VERSION__"
|
1834
|
-
},
|
1826
|
+
}, Pe = /* @__PURE__ */ Object.assign({ "./views/admin/index.vue": ve, "./views/language/index.vue": Ue, "./views/menu/index.vue": Ee, "./views/role/index.vue": Ke });
|
1835
1827
|
export {
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1828
|
+
Le as MenusPage,
|
1829
|
+
De as RolesPage,
|
1830
|
+
Pe as basicModules,
|
1831
|
+
je as default
|
1840
1832
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(A,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("auto-vue-manual")):typeof define=="function"&&define.amd?define(["exports","vue","auto-vue-manual"],e):(A=typeof globalThis<"u"?globalThis:A||self,e(A.AutoVueBasic={},A.Vue,A["auto-vue-manual"]))})(this,function(A,e,l){"use strict";const q=l.createAutoApi("admin",{},"key"),E=l.createAutoApi("role",{},"key"),K=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({key:"",avatar:"",username:"",password:"",salt:"",phone:"",email:"",language:"zh-CN",remark:"",roles:[]}),a=e.computed(()=>!r.key),p={username:[{required:!0,message:l.Translate("base.placeholder.input base.username"),trigger:"blur"}],phone:[{required:!0,validator:l.RulesUtils.phoneRule,message:l.Translate("base.placeholder.input base.phone"),trigger:"blur"}],password:[{required:a,message:l.Translate("base.placeholder.input base.password"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],language:[{required:!0,message:l.Translate("base.placeholder.select base.language"),trigger:"change"}],roles:[{required:!0,type:"array",message:l.Translate("base.placeholder.select base.roles"),trigger:"change"}]},s=e.ref([]),b=async()=>{const n=await E.list();s.value=Array.isArray(n==null?void 0:n.data)?n.data:[]},{modal:k,title:T,form:m,requesting:h,executing:g,open:N,modify:C,submit:d,closed:t}=l.useForm(B,r,q);return y({openOrModify:async n=>{s.value.length||await b(),n?(r.key=n,C()):N()}}),(n,i)=>{const V=e.resolveComponent("el-input"),_=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-radio-button"),w=e.resolveComponent("el-radio-group"),c=e.resolveComponent("el-checkbox"),S=e.resolveComponent("el-checkbox-group"),te=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(k),"onUpdate:modelValue":i[7]||(i[7]=U=>e.isRef(k)?k.value=U:null),title:e.unref(T)(),width:"900px",executing:e.unref(g),onClosed:e.unref(t),onSubmit:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(te,{ref_key:"form",ref:m,model:r,"label-width":"auto",rules:p,disabled:e.unref(h)||e.unref(g)},{default:e.withCtx(()=>[e.createVNode(_,{label:e.unref(l.Translate)("base.username"),prop:"username"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.username,"onUpdate:modelValue":i[0]||(i[0]=U=>r.username=U),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.phone"),prop:"phone"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.phone,"onUpdate:modelValue":i[1]||(i[1]=U=>r.phone=U),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.password"),prop:"password",required:a.value},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.password,"onUpdate:modelValue":i[2]||(i[2]=U=>r.password=U),placeholder:e.unref(l.Translate)("base.placeholder.input"),"show-password":"",autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label","required"]),e.createVNode(_,{label:e.unref(l.Translate)("base.email"),prop:"email"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.email,"onUpdate:modelValue":i[3]||(i[3]=U=>r.email=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.language"),prop:"language"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:r.language,"onUpdate:modelValue":i[4]||(i[4]=U=>r.language=U)},{default:e.withCtx(()=>[e.createVNode(f,{label:"zh-CN"},{default:e.withCtx(()=>i[8]||(i[8]=[e.createTextVNode("zh-CN")])),_:1,__:[8]}),e.createVNode(f,{label:"en-US"},{default:e.withCtx(()=>i[9]||(i[9]=[e.createTextVNode("en-US")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.roles"),prop:"roles"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:r.roles,"onUpdate:modelValue":i[5]||(i[5]=U=>r.roles=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,U=>(e.openBlock(),e.createBlock(c,{key:U.key,label:U.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.translate),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.remark,"onUpdate:modelValue":i[6]||(i[6]=U=>r.remark=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(R){const y={keyword:""},x=[{label:l.Translate("base.avatar"),prop:"avatar",width:60,render:({row:m})=>e.createVNode(e.resolveComponent("el-avatar"),{size:"default",src:m.avatar},null)},{label:l.Translate("base.user"),width:200,align:"left",render:({row:m})=>e.createVNode(e.resolveComponent("el-space"),{direction:"vertical",alignment:"start"},{default:()=>[e.createVNode("div",null,[m.username]),e.createVNode("div",null,[m.email])]})},{label:l.Translate("base.phone"),prop:"phone",width:140},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.login_at"),prop:"login_at",width:160},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-space"),C=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(C,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(N,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=d=>e.unref(a).keyword=d),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(q).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(K,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),O=l.createAutoApi("translate",{},"key"),z=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({module:"",key:"",language:"",result:"",status:1,remark:"",created_at:"",updated_at:""}),a={module:[{required:!0,message:l.Translate("language.placeholder.module"),trigger:"blur"}],key:[{required:!0,message:l.Translate("language.placeholder.key"),trigger:"blur"}],language:[{required:!0,message:l.Translate("language.placeholder.language"),trigger:"change"}],result:[{required:!0,message:l.Translate("language.placeholder.result"),trigger:"blur"}]},{modal:p,title:s,form:b,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,O);return y({openOrModify:d=>{d?(r.key=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-input"),n=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),_=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[5]||(t[5]=f=>e.isRef(p)?p.value=f:null),title:e.unref(s)(),width:"900px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(_,{ref_key:"form",ref:b,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("language.module"),prop:"module",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.module,"onUpdate:modelValue":t[0]||(t[0]=f=>r.module=f),placeholder:e.unref(l.Translate)("language.placeholder.module")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.key"),prop:"key",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.key,"onUpdate:modelValue":t[1]||(t[1]=f=>r.key=f),placeholder:e.unref(l.Translate)("language.placeholder.key")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.language"),prop:"language",required:""},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.language,"onUpdate:modelValue":t[2]||(t[2]=f=>r.language=f)},{default:e.withCtx(()=>[e.createVNode(i,{label:"zh-CN"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("zh-CN")])),_:1,__:[6]}),e.createVNode(i,{label:"en-US"},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("en-US")])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.result"),prop:"result",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.result,"onUpdate:modelValue":t[3]||(t[3]=f=>r.result=f),placeholder:e.unref(l.Translate)("language.placeholder.result")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.remark,"onUpdate:modelValue":t[4]||(t[4]=f=>r.remark=f),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),P=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(R){const y={keyword:"",status:0},x=[{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.language"),prop:"language",width:100},{label:l.Translate("base.key"),prop:"key",width:200},{label:l.Translate("base.result"),prop:"result",width:200},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:O.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-radio-button"),C=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-space"),t=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(t,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(d,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=o=>e.unref(a).keyword=o),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(C,{modelValue:e.unref(a).status,"onUpdate:modelValue":h[1]||(h[1]=o=>e.unref(a).status=o),onChange:e.unref(p)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],o=>e.createVNode(N,{key:o,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${o}`),value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref:"proTableRef",size:"small",columns:x,url:e.unref(O).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(z,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),L={tops:"tops",rules:"rules"},u=l.AutoApiUtils.createAutoApi("menu",L,"id",Object.keys(L));/*! Element Plus Icons Vue v2.3.1 */var I=e.defineComponent({name:"Key",__name:"key",setup(R){return(y,x)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",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"})]))}}),j=I;const Y=e.defineComponent({__name:"topMenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(R,{emit:y}){const x=y,B=R,{requesting:r}=l.useLoading(u),{value:a,options:p,change:s,refresh:b,filterOptions:k}=l.useSelect(e.toRef(B,"modelValue"),x,{key:"MENU_LIST",api:u,url:u.urls.tops,isArray:!0});return(T,m)=>{const h=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(a),"onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(a)?a.value=g:null),options:e.unref(p),multiple:R.multiple,disabled:e.unref(r),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(k),onChange:e.unref(s)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(r),text:"",size:"small",onRefresh:m[0]||(m[0]=g=>e.unref(b)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),G=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({id:0,menu_id:0,level:0,sort:0,name:"",en_name:"",translate:"",url:"",component:"",icon:"",module:"",remark:"",meta:{active:"",icon:"",title:"",affix:!1,full:!1,hide:!1,keep_alive:!1,link:!1}}),a={sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],module:[{required:!0,message:l.Translate("base.placeholder.input menu.module"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],url:[{required:!0,message:l.Translate("base.placeholder.input base.url"),trigger:"blur"}],component:[{required:!0,message:l.Translate("base.placeholder.input menu.component"),trigger:"blur"}]},{modal:p,title:s,form:b,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,u);return y({openOrModify:d=>{d?(r.id=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-col"),i=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-row"),_=e.resolveComponent("el-input"),f=e.resolveComponent("el-switch"),w=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[17]||(t[17]=c=>e.isRef(p)?p.value=c:null),title:e.unref(s)(),width:"900px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(w,{ref_key:"form",ref:b,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(V,{gutter:20},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{gutter:10},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:r.menu_id,"onUpdate:modelValue":t[0]||(t[0]=c=>r.menu_id=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.sort,"onUpdate:modelValue":t[1]||(t[1]=c=>r.sort=c),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(o,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.module,"onUpdate:modelValue":t[2]||(t[2]=c=>r.module=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.name,"onUpdate:modelValue":t[3]||(t[3]=c=>r.name=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.en_name,"onUpdate:modelValue":t[4]||(t[4]=c=>r.en_name=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.component,"onUpdate:modelValue":t[5]||(t[5]=c=>r.component=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.url,"onUpdate:modelValue":t[6]||(t[6]=c=>r.url=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.remark,"onUpdate:modelValue":t[7]||(t[7]=c=>r.remark=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.icon,"onUpdate:modelValue":t[8]||(t[8]=c=>r.icon=c),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:t[9]||(t[9]=c=>{r.meta.icon=c})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+r.icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.meta.title,"onUpdate:modelValue":t[10]||(t[10]=c=>r.meta.title=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.meta.active,"onUpdate:modelValue":t[11]||(t[11]=c=>r.meta.active=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.link,"onUpdate:modelValue":t[12]||(t[12]=c=>r.meta.link=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.keep_alive,"onUpdate:modelValue":t[13]||(t[13]=c=>r.meta.keep_alive=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.hide,"onUpdate:modelValue":t[14]||(t[14]=c=>r.meta.hide=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.full,"onUpdate:modelValue":t[15]||(t[15]=c=>r.meta.full=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.affix,"onUpdate:modelValue":t[16]||(t[16]=c=>r.meta.affix=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),W=l.createAutoApi("rule",{},"key"),H=e.defineComponent({__name:"menuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(R,{emit:y}){const x=y,B=R,{requesting:r}=l.useLoading(u),{value:a,options:p,change:s,refresh:b,filterOptions:k}=l.useSelect(e.toRef(B,"modelValue"),x,{key:"MENU_LIST",api:u,isArray:!0});return(T,m)=>{const h=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(a),"onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(a)?a.value=g:null),options:e.unref(p),multiple:R.multiple,disabled:e.unref(r),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(k),onChange:e.unref(s)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(r),text:"",size:"small",onRefresh:m[0]||(m[0]=g=>e.unref(b)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),J=e.defineComponent({__name:"rule",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({key:"",menu_id:0,sort:0,name:"",en_name:"",urls:"",remark:""}),a={menu_id:[{required:!0,type:"number",message:l.Translate("base.placeholder.select menu.Menu"),trigger:"blur"}],sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],urls:[{required:!0,message:l.Translate("base.placeholder.input base.rules"),trigger:"blur"}]},{modal:p,title:s,form:b,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,W);return y({openOrModify:d=>{d?(r.key=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-input-number"),i=e.resolveComponent("el-input"),V=e.resolveComponent("el-col"),_=e.resolveComponent("el-row"),f=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[6]||(t[6]=w=>e.isRef(p)?p.value=w:null),title:e.unref(s)(),width:"700px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(f,{ref_key:"form",ref:b,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(_,{gutter:20},{default:e.withCtx(()=>[e.createVNode(V,{span:10},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.Menu"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(H,{modelValue:r.menu_id,"onUpdate:modelValue":t[0]||(t[0]=w=>r.menu_id=w)},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:r.sort,"onUpdate:modelValue":t[1]||(t[1]=w=>r.sort=w),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.name,"onUpdate:modelValue":t[2]||(t[2]=w=>r.name=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.en_name,"onUpdate:modelValue":t[3]||(t[3]=w=>r.en_name=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.remark,"onUpdate:modelValue":t[4]||(t[4]=w=>r.remark=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(V,{span:14},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.rules"),prop:"urls"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.urls,"onUpdate:modelValue":t[5]||(t[5]=w=>r.urls=w),type:"textarea",rows:11,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),D=e.defineComponent({__name:"index",setup(R){const y={keyword:"",status:0},x=[{label:l.Translate("base.index"),type:"index",width:60},{label:l.Translate("base.icon"),prop:"icon",width:60,render:({row:N})=>e.createVNode("span",{class:"iconfont "+N.icon,style:"font-size: 16px;"},null)},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:N})=>{var C;return e.createVNode(e.Fragment,null,[(C=N.menu)==null?void 0:C.name])}},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.url"),prop:"url",width:200},{label:l.Translate("menu.component"),prop:"component",width:200},{label:l.Translate("menu.rules"),prop:"rules",width:0,align:"left",render:({row:N})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>{var C;return[(C=N.rules)==null?void 0:C.map(d=>e.createVNode(e.resolveComponent("el-tag"),{key:d.key,onClick:()=>g(d.key)},{default:()=>[d.translate]}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:u.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:N})=>e.createVNode(l.ModifyButton,{onModify:()=>T(N.id)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y),{infoRef:m,openInfo:h,modifyInfo:g}=l.useTablePage();return(N,C)=>{const d=e.resolveComponent("el-button"),t=e.resolveComponent("el-input"),o=e.resolveComponent("el-radio-button"),n=e.resolveComponent("el-radio-group"),i=e.resolveComponent("el-space"),V=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(V,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(i,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(d,{circle:"",onClick:e.unref(h),icon:e.unref(j)},null,8,["onClick","icon"]),e.createVNode(t,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":C[0]||(C[0]=_=>e.unref(a).keyword=_),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(n,{modelValue:e.unref(a).status,"onUpdate:modelValue":C[1]||(C[1]=_=>e.unref(a).status=_),onChange:e.unref(p)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],_=>e.createVNode(o,{key:_,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${_}`),value:_},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(u).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(G,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"]),e.createVNode(J,{ref_key:"ruleRef",ref:m,onRefresh:e.unref(s)},null,8,["onRefresh"])]),_:1})}}}),Q=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),X={class:"rule-check"},Z={style:{width:"80px","line-height":"36px"}},M=e.defineComponent({__name:"rulesCheck",props:{modelValue:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(R,{expose:y,emit:x}){const{requesting:B}=l.useLoading(u),r=R,a=x,p=e.ref(!1),s=e.reactive({checkAll:!1,indeterminate:!1,MenuAll:{},MenuList:{},MenuIndeterminate:{}}),{options:b,refresh:k}=l.useSelect(e.toRef(r,"modelValue"),a,{key:"RULE_CHECK",api:u,url:u.urls.rules,isArray:!0},!1);function T(){b.value.forEach(d=>{var t;(t=d.rules)!=null&&t.length&&(s.MenuAll[d.id]=!1,s.MenuIndeterminate[d.id]=!1,s.MenuList[d.id]=[])})}function m(d){b.value.forEach(t=>{var o;(o=t.rules)!=null&&o.length&&(s.MenuList[t.id]=d?t.rules.map(n=>n.key):[])}),g()}function h(d,t){const o=b.value.find(n=>n.id===t);s.MenuList[t]=d&&o?o.rules.map(n=>n.key):[],g()}function g(){b.value.forEach(d=>{var n,i;const t=((n=d.rules)==null?void 0:n.length)||0,o=((i=s.MenuList[d.id])==null?void 0:i.length)||0;s.MenuAll[d.id]=o===t&&t>0,s.MenuIndeterminate[d.id]=o>0&&o<t}),s.checkAll=Object.values(s.MenuAll).every(Boolean),s.indeterminate=!s.checkAll&&Object.values(s.MenuList).some(d=>d.length>0),a("update:modelValue",Object.values(s.MenuList).flat())}function N(){s.checkAll=!1,s.indeterminate=!1,s.MenuAll={},s.MenuList={},s.MenuIndeterminate={},T(),a("update:modelValue",[]),p.value=!1}function C(d){var t;if(Array.isArray(b.value)&&b.value.length>0){for(let o of b.value)if(Array.isArray(o.rules)&&o.rules.length>0)for(let n of o.rules)d.some(i=>i===n.key)&&(s.MenuList[o.id]=(((t=s.MenuList)==null?void 0:t[o.id])||[]).concat([n.key]));g(),p.value=!0}}return e.onMounted(async()=>{var d;(d=b.value)!=null&&d.length||await k(),!p.value&&r.modelValue&&C(r.modelValue)}),e.watch(()=>r.modelValue,d=>{e.nextTick(()=>{var t;p.value||!((t=b.value)!=null&&t.length)||d&&d.length>0&&C(d)})},{deep:!0,immediate:!0}),y({generateOption:C,cleanChecked:N}),(d,t)=>{const o=e.resolveComponent("el-checkbox"),n=e.resolveComponent("el-space"),i=e.resolveComponent("el-text"),V=e.resolveComponent("el-divider"),_=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(n,{style:{"margin-bottom":"6px"}},{default:e.withCtx(()=>[e.createVNode(o,{"model-value":s.checkAll,indeterminate:s.indeterminate,id:"all",disabled:R.disabled,onChange:m},{default:e.withCtx(()=>t[1]||(t[1]=[e.createElementVNode("span",null,"全选",-1)])),_:1,__:[1]},8,["model-value","indeterminate","disabled"]),e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(B),text:"",size:"small",onRefresh:t[0]||(t[0]=f=>e.unref(k)(!0))},null,8,["loading"])]),_:1}),e.createVNode(n,{direction:"vertical",alignment:"start"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),f=>(e.openBlock(),e.createElementBlock("div",{key:f.id},[e.createVNode(n,{direction:"horizontal",size:2},{default:e.withCtx(()=>[e.createVNode(o,{style:{"min-width":"150px"},"model-value":s.MenuAll[f.id],disabled:R.disabled||!f.rules||f.rules.length<=0,indeterminate:s.MenuIndeterminate[f.id],onChange:w=>h(w,f.id)},{default:e.withCtx(()=>[e.createVNode(i,{style:{"font-size":"15px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.translate),1)]),_:2},1024)]),_:2},1032,["model-value","disabled","indeterminate","onChange"]),e.createVNode(V,{direction:"vertical"}),f.rules?(e.openBlock(),e.createBlock(_,{key:0,modelValue:s.MenuList[f.id],"onUpdate:modelValue":w=>s.MenuList[f.id]=w,disabled:R.disabled,style:{margin:"auto"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.rules,w=>(e.openBlock(),e.createBlock(o,{key:w.key,value:w.key},{default:e.withCtx(()=>[e.createElementVNode("div",Z,e.toDisplayString(w.translate),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1})])}}}),v=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.ref(),a=e.reactive({key:"",module:"",sort:0,name:"",en_name:"",translate:"",remark:"",rules:[]}),p={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:s,title:b,form:k,requesting:T,executing:m,open:h,modify:g,submit:N,closed:C}=l.useForm(B,a,E),d=o=>{o?(a.key=o,g()):h()},t=()=>{var o;(o=r.value)==null||o.cleanChecked(),C()};return y({openOrModify:d}),(o,n)=>{const i=e.resolveComponent("el-input"),V=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-col"),f=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-row"),c=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":n[6]||(n[6]=S=>e.isRef(s)?s.value=S:null),title:e.unref(b)(),width:"900px",executing:e.unref(m),onClosed:t,onSubmit:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(c,{ref_key:"form",ref:k,model:a,"label-width":"auto",rules:p,disabled:e.unref(T)||e.unref(m)},{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[e.createVNode(_,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{label:e.unref(l.Translate)("base.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.module,"onUpdate:modelValue":n[0]||(n[0]=S=>a.module=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(_,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.sort,"onUpdate:modelValue":n[1]||(n[1]=S=>a.sort=S),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(V,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.name,"onUpdate:modelValue":n[2]||(n[2]=S=>a.name=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.en_name,"onUpdate:modelValue":n[3]||(n[3]=S=>a.en_name=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.remark,"onUpdate:modelValue":n[4]||(n[4]=S=>a.remark=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.rules"),prop:"rules"},{default:e.withCtx(()=>[e.createVNode(M,{ref_key:"rulesCheck",ref:r,modelValue:a.rules,"onUpdate:modelValue":n[5]||(n[5]=S=>a.rules=S),disabled:e.unref(T)||e.unref(m)},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onSubmit"])}}}),F=e.defineComponent({__name:"index",setup(R){const y={keyword:""},x=[{label:l.Translate("base.sort"),prop:"sort",width:80},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:180},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-space"),C=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(C,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(N,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=d=>e.unref(a).keyword=d),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(E).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(v,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"])]),_:1})}}}),ee=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),le={install:(R,y)=>{Reflect.ownKeys(R._context.provides).some(x=>String(x)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.log(Reflect.ownKeys(R._context.provides))},version:"__VERSION__"},re=Object.assign({"./views/admin/index.vue":$,"./views/language/index.vue":P,"./views/menu/index.vue":Q,"./views/role/index.vue":ee});A.MenusPage=D,A.RolesPage=F,A.basicModules=re,A.default=le,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
1
|
+
(function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("auto-vue-manual")):typeof define=="function"&&define.amd?define(["exports","vue","auto-vue-manual"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.AutoVueBasic={},S.Vue,S["auto-vue-manual"]))})(this,function(S,e,l){"use strict";const q=l.createAutoApi("admin",{},"key"),E=l.createAutoApi("role",{},"key"),K=e.defineComponent({__name:"info",emits:["refresh"],setup(U,{expose:y,emit:x}){const B=x,r=e.reactive({key:"",avatar:"",username:"",password:"",salt:"",phone:"",email:"",language:"zh-CN",remark:"",roles:[]}),a=e.computed(()=>!r.key),p={username:[{required:!0,message:l.Translate("base.placeholder.input base.username"),trigger:"blur"}],phone:[{required:!0,validator:l.RulesUtils.phoneRule,message:l.Translate("base.placeholder.input base.phone"),trigger:"blur"}],password:[{required:a,message:l.Translate("base.placeholder.input base.password"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],language:[{required:!0,message:l.Translate("base.placeholder.select base.language"),trigger:"change"}],roles:[{required:!0,type:"array",message:l.Translate("base.placeholder.select base.roles"),trigger:"change"}]},s=e.ref([]),_=async()=>{const n=await E.list();s.value=Array.isArray(n==null?void 0:n.data)?n.data:[]},{modal:k,title:T,form:m,requesting:h,executing:g,open:N,modify:C,submit:d,closed:t}=l.useForm(B,r,q);return y({openOrModify:async n=>{s.value.length||await _(),n?(r.key=n,C()):N()}}),(n,i)=>{const V=e.resolveComponent("el-input"),b=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-radio-button"),w=e.resolveComponent("el-radio-group"),c=e.resolveComponent("el-checkbox"),u=e.resolveComponent("el-checkbox-group"),te=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(k),"onUpdate:modelValue":i[7]||(i[7]=R=>e.isRef(k)?k.value=R:null),title:e.unref(T)(),width:"600px",executing:e.unref(g),onClosed:e.unref(t),onSubmit:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(te,{ref_key:"form",ref:m,model:r,"label-width":"auto",rules:p,disabled:e.unref(h)||e.unref(g)},{default:e.withCtx(()=>[e.createVNode(b,{label:e.unref(l.Translate)("base.username"),prop:"username"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.username,"onUpdate:modelValue":i[0]||(i[0]=R=>r.username=R),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(b,{label:e.unref(l.Translate)("base.phone"),prop:"phone"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.phone,"onUpdate:modelValue":i[1]||(i[1]=R=>r.phone=R),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(b,{label:e.unref(l.Translate)("base.password"),prop:"password",required:a.value},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.password,"onUpdate:modelValue":i[2]||(i[2]=R=>r.password=R),placeholder:e.unref(l.Translate)("base.placeholder.input"),"show-password":"",autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label","required"]),e.createVNode(b,{label:e.unref(l.Translate)("base.email"),prop:"email"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.email,"onUpdate:modelValue":i[3]||(i[3]=R=>r.email=R),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(b,{label:e.unref(l.Translate)("base.language"),prop:"language"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:r.language,"onUpdate:modelValue":i[4]||(i[4]=R=>r.language=R)},{default:e.withCtx(()=>[e.createVNode(f,{label:"zh-CN"},{default:e.withCtx(()=>i[8]||(i[8]=[e.createTextVNode("zh-CN")])),_:1,__:[8]}),e.createVNode(f,{label:"en-US"},{default:e.withCtx(()=>i[9]||(i[9]=[e.createTextVNode("en-US")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(b,{label:e.unref(l.Translate)("base.roles"),prop:"roles"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:r.roles,"onUpdate:modelValue":i[5]||(i[5]=R=>r.roles=R)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,R=>(e.openBlock(),e.createBlock(c,{key:R.key,label:R.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(R.translate),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(b,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.remark,"onUpdate:modelValue":i[6]||(i[6]=R=>r.remark=R),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(U){const y={keyword:""},x=[{label:l.Translate("base.avatar"),prop:"avatar",width:60,render:({row:m})=>e.createVNode(e.resolveComponent("el-avatar"),{size:"default",src:m.avatar},null)},{label:l.Translate("base.user"),width:200,align:"left",render:({row:m})=>e.createVNode(e.resolveComponent("el-space"),{direction:"vertical",alignment:"start"},{default:()=>[e.createVNode("div",null,[m.username]),e.createVNode("div",null,[m.email])]})},{label:l.Translate("base.phone"),prop:"phone",width:140},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.login_at"),prop:"login_at",width:160},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:_,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-space"),C=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(C,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(N,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=d=>e.unref(a).keyword=d),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(q).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(K,{ref_key:"infoRef",ref:r,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),O=l.createAutoApi("translate",{},"key"),z=e.defineComponent({__name:"info",emits:["refresh"],setup(U,{expose:y,emit:x}){const B=x,r=e.reactive({module:"",key:"",language:"",result:"",status:1,remark:"",created_at:"",updated_at:""}),a={module:[{required:!0,message:l.Translate("language.placeholder.module"),trigger:"blur"}],key:[{required:!0,message:l.Translate("language.placeholder.key"),trigger:"blur"}],language:[{required:!0,message:l.Translate("language.placeholder.language"),trigger:"change"}],result:[{required:!0,message:l.Translate("language.placeholder.result"),trigger:"blur"}]},{modal:p,title:s,form:_,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,O);return y({openOrModify:d=>{d?(r.key=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-input"),n=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),b=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[5]||(t[5]=f=>e.isRef(p)?p.value=f:null),title:e.unref(s)(),width:"600px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(b,{ref_key:"form",ref:_,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("language.module"),prop:"module",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.module,"onUpdate:modelValue":t[0]||(t[0]=f=>r.module=f),placeholder:e.unref(l.Translate)("language.placeholder.module")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.key"),prop:"key",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.key,"onUpdate:modelValue":t[1]||(t[1]=f=>r.key=f),placeholder:e.unref(l.Translate)("language.placeholder.key")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.language"),prop:"language",required:""},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.language,"onUpdate:modelValue":t[2]||(t[2]=f=>r.language=f)},{default:e.withCtx(()=>[e.createVNode(i,{label:"zh-CN"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("zh-CN")])),_:1,__:[6]}),e.createVNode(i,{label:"en-US"},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("en-US")])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.result"),prop:"result",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.result,"onUpdate:modelValue":t[3]||(t[3]=f=>r.result=f),placeholder:e.unref(l.Translate)("language.placeholder.result")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.remark,"onUpdate:modelValue":t[4]||(t[4]=f=>r.remark=f),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),P=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(U){const y={keyword:"",status:0},x=[{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.language"),prop:"language",width:100},{label:l.Translate("base.key"),prop:"key",width:200},{label:l.Translate("base.result"),prop:"result",width:200},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:O.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:_,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-radio-button"),C=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-space"),t=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(t,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(d,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=o=>e.unref(a).keyword=o),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(C,{modelValue:e.unref(a).status,"onUpdate:modelValue":h[1]||(h[1]=o=>e.unref(a).status=o),onChange:e.unref(p)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],o=>e.createVNode(N,{key:o,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${o}`),value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref:"proTableRef",size:"small",columns:x,url:e.unref(O).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(z,{ref_key:"infoRef",ref:r,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),L={tops:"tops",rules:"rules"},A=l.AutoApiUtils.createAutoApi("menu",L,"id",Object.keys(L));/*! Element Plus Icons Vue v2.3.1 */var I=e.defineComponent({name:"Key",__name:"key",setup(U){return(y,x)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",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"})]))}}),j=I;const Y=e.defineComponent({__name:"topMenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(U,{emit:y}){const x=y,B=U,{requesting:r}=l.useLoading(A),{value:a,options:p,change:s,refresh:_,filterOptions:k}=l.useSelect(e.toRef(B,"modelValue"),x,{key:"MENU_LIST",api:A,url:A.urls.tops,isArray:!0});return(T,m)=>{const h=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(a),"onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(a)?a.value=g:null),options:e.unref(p),multiple:U.multiple,disabled:e.unref(r),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(k),onChange:e.unref(s)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(r),text:"",size:"small",onRefresh:m[0]||(m[0]=g=>e.unref(_)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),G=e.defineComponent({__name:"info",emits:["refresh"],setup(U,{expose:y,emit:x}){const B=x,r=e.reactive({id:0,menu_id:0,level:0,sort:0,name:"",en_name:"",translate:"",url:"",component:"",icon:"",module:"",remark:"",meta:{active:"",icon:"",title:"",affix:!1,full:!1,hide:!1,keep_alive:!1,link:!1}}),a={sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],module:[{required:!0,message:l.Translate("base.placeholder.input menu.module"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],url:[{required:!0,message:l.Translate("base.placeholder.input base.url"),trigger:"blur"}],component:[{required:!0,message:l.Translate("base.placeholder.input menu.component"),trigger:"blur"}]},{modal:p,title:s,form:_,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,A);return y({openOrModify:d=>{d?(r.id=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-col"),i=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-row"),b=e.resolveComponent("el-input"),f=e.resolveComponent("el-switch"),w=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[17]||(t[17]=c=>e.isRef(p)?p.value=c:null),title:e.unref(s)(),width:"1000px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(w,{ref_key:"form",ref:_,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(V,{gutter:20},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{gutter:10},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:r.menu_id,"onUpdate:modelValue":t[0]||(t[0]=c=>r.menu_id=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.sort,"onUpdate:modelValue":t[1]||(t[1]=c=>r.sort=c),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(o,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.module,"onUpdate:modelValue":t[2]||(t[2]=c=>r.module=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.name,"onUpdate:modelValue":t[3]||(t[3]=c=>r.name=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.en_name,"onUpdate:modelValue":t[4]||(t[4]=c=>r.en_name=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.component,"onUpdate:modelValue":t[5]||(t[5]=c=>r.component=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.url,"onUpdate:modelValue":t[6]||(t[6]=c=>r.url=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.remark,"onUpdate:modelValue":t[7]||(t[7]=c=>r.remark=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.icon,"onUpdate:modelValue":t[8]||(t[8]=c=>r.icon=c),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:t[9]||(t[9]=c=>{r.meta.icon=c})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+r.icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.meta.title,"onUpdate:modelValue":t[10]||(t[10]=c=>r.meta.title=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:r.meta.active,"onUpdate:modelValue":t[11]||(t[11]=c=>r.meta.active=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.link,"onUpdate:modelValue":t[12]||(t[12]=c=>r.meta.link=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.keep_alive,"onUpdate:modelValue":t[13]||(t[13]=c=>r.meta.keep_alive=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.hide,"onUpdate:modelValue":t[14]||(t[14]=c=>r.meta.hide=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.full,"onUpdate:modelValue":t[15]||(t[15]=c=>r.meta.full=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.affix,"onUpdate:modelValue":t[16]||(t[16]=c=>r.meta.affix=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),W=l.createAutoApi("rule",{},"key"),H=e.defineComponent({__name:"menuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(U,{emit:y}){const x=y,B=U,{requesting:r}=l.useLoading(A),{value:a,options:p,change:s,refresh:_,filterOptions:k}=l.useSelect(e.toRef(B,"modelValue"),x,{key:"MENU_LIST",api:A,isArray:!0});return(T,m)=>{const h=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(a),"onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(a)?a.value=g:null),options:e.unref(p),multiple:U.multiple,disabled:e.unref(r),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(k),onChange:e.unref(s)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(r),text:"",size:"small",onRefresh:m[0]||(m[0]=g=>e.unref(_)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),J=e.defineComponent({__name:"rule",emits:["refresh"],setup(U,{expose:y,emit:x}){const B=x,r=e.reactive({key:"",menu_id:0,sort:0,name:"",en_name:"",urls:"",remark:""}),a={menu_id:[{required:!0,type:"number",message:l.Translate("base.placeholder.select menu.Menu"),trigger:"blur"}],sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],urls:[{required:!0,message:l.Translate("base.placeholder.input base.rules"),trigger:"blur"}]},{modal:p,title:s,form:_,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,W);return y({openOrModify:d=>{d?(r.key=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-input-number"),i=e.resolveComponent("el-input"),V=e.resolveComponent("el-col"),b=e.resolveComponent("el-row"),f=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[6]||(t[6]=w=>e.isRef(p)?p.value=w:null),title:e.unref(s)("base.rules"),width:"1000px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(f,{ref_key:"form",ref:_,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(b,{gutter:20},{default:e.withCtx(()=>[e.createVNode(V,{span:10},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.Menu"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(H,{modelValue:r.menu_id,"onUpdate:modelValue":t[0]||(t[0]=w=>r.menu_id=w)},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:r.sort,"onUpdate:modelValue":t[1]||(t[1]=w=>r.sort=w),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.name,"onUpdate:modelValue":t[2]||(t[2]=w=>r.name=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.en_name,"onUpdate:modelValue":t[3]||(t[3]=w=>r.en_name=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.remark,"onUpdate:modelValue":t[4]||(t[4]=w=>r.remark=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(V,{span:14},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.rules"),prop:"urls"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.urls,"onUpdate:modelValue":t[5]||(t[5]=w=>r.urls=w),type:"textarea",rows:11,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),D=e.defineComponent({__name:"index",setup(U){const y={keyword:"",status:0},x=[{label:l.Translate("base.sort"),prop:"sort",width:60},{label:l.Translate("base.icon"),prop:"icon",width:60,render:({row:N})=>e.createVNode("span",{class:"iconfont "+N.icon,style:"font-size: 16px;"},null)},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:N})=>{var C;return e.createVNode(e.Fragment,null,[(C=N.menu)==null?void 0:C.name])}},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.url"),prop:"url",width:200},{label:l.Translate("menu.component"),prop:"component",width:200},{label:l.Translate("menu.rules"),prop:"rules",width:0,align:"left",render:({row:N})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>{var C;return[(C=N.rules)==null?void 0:C.map(d=>e.createVNode(e.resolveComponent("el-tag"),{key:d.key,onClick:()=>g(d.key)},{default:()=>[d.translate]}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:A.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:N})=>e.createVNode(l.ModifyButton,{onModify:()=>T(N.id)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:_,openInfo:k,modifyInfo:T}=l.useTablePage(y),{infoRef:m,openInfo:h,modifyInfo:g}=l.useTablePage();return(N,C)=>{const d=e.resolveComponent("el-button"),t=e.resolveComponent("el-input"),o=e.resolveComponent("el-radio-button"),n=e.resolveComponent("el-radio-group"),i=e.resolveComponent("el-space"),V=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(V,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(i,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(d,{circle:"",onClick:e.unref(h),icon:e.unref(j)},null,8,["onClick","icon"]),e.createVNode(t,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":C[0]||(C[0]=b=>e.unref(a).keyword=b),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(n,{modelValue:e.unref(a).status,"onUpdate:modelValue":C[1]||(C[1]=b=>e.unref(a).status=b),onChange:e.unref(p)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],b=>e.createVNode(o,{key:b,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${b}`),value:b},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(A).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(G,{ref_key:"infoRef",ref:r,onRefresh:e.unref(_)},null,8,["onRefresh"]),e.createVNode(J,{ref_key:"ruleRef",ref:m,onRefresh:e.unref(s)},null,8,["onRefresh"])]),_:1})}}}),Q=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),X={class:"rule-check"},Z={style:{width:"80px","line-height":"36px"}},M=e.defineComponent({__name:"rulesCheck",props:{modelValue:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(U,{expose:y,emit:x}){const{requesting:B}=l.useLoading(A),r=U,a=x,p=e.ref(!1),s=e.reactive({checkAll:!1,indeterminate:!1,MenuAll:{},MenuList:{},MenuIndeterminate:{}}),{options:_,refresh:k}=l.useSelect(e.toRef(r,"modelValue"),a,{key:"RULE_CHECK",api:A,url:A.urls.rules,isArray:!0},!1);function T(){_.value.forEach(d=>{var t;(t=d.rules)!=null&&t.length&&(s.MenuAll[d.id]=!1,s.MenuIndeterminate[d.id]=!1,s.MenuList[d.id]=[])})}function m(d){_.value.forEach(t=>{var o;(o=t.rules)!=null&&o.length&&(s.MenuList[t.id]=d?t.rules.map(n=>n.key):[])}),g()}function h(d,t){const o=_.value.find(n=>n.id===t);s.MenuList[t]=d&&o?o.rules.map(n=>n.key):[],g()}function g(){_.value.forEach(d=>{var n,i;const t=((n=d.rules)==null?void 0:n.length)||0,o=((i=s.MenuList[d.id])==null?void 0:i.length)||0;s.MenuAll[d.id]=o===t&&t>0,s.MenuIndeterminate[d.id]=o>0&&o<t}),s.checkAll=Object.values(s.MenuAll).every(Boolean),s.indeterminate=!s.checkAll&&Object.values(s.MenuList).some(d=>d.length>0),a("update:modelValue",Object.values(s.MenuList).flat())}function N(){s.checkAll=!1,s.indeterminate=!1,s.MenuAll={},s.MenuList={},s.MenuIndeterminate={},T(),a("update:modelValue",[]),p.value=!1}function C(d){var t;if(Array.isArray(_.value)&&_.value.length>0){for(let o of _.value)if(Array.isArray(o.rules)&&o.rules.length>0)for(let n of o.rules)d.some(i=>i===n.key)&&(s.MenuList[o.id]=(((t=s.MenuList)==null?void 0:t[o.id])||[]).concat([n.key]));g(),p.value=!0}}return e.onMounted(async()=>{var d;(d=_.value)!=null&&d.length||await k(),!p.value&&r.modelValue&&C(r.modelValue)}),e.watch(()=>r.modelValue,d=>{e.nextTick(()=>{var t;p.value||!((t=_.value)!=null&&t.length)||d&&d.length>0&&C(d)})},{deep:!0,immediate:!0}),y({generateOption:C,cleanChecked:N}),(d,t)=>{const o=e.resolveComponent("el-checkbox"),n=e.resolveComponent("el-space"),i=e.resolveComponent("el-text"),V=e.resolveComponent("el-divider"),b=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(n,{style:{"margin-bottom":"6px"}},{default:e.withCtx(()=>[e.createVNode(o,{"model-value":s.checkAll,indeterminate:s.indeterminate,id:"all",disabled:U.disabled,onChange:m},{default:e.withCtx(()=>t[1]||(t[1]=[e.createElementVNode("span",null,"全选",-1)])),_:1,__:[1]},8,["model-value","indeterminate","disabled"]),e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(B),text:"",size:"small",onRefresh:t[0]||(t[0]=f=>e.unref(k)(!0))},null,8,["loading"])]),_:1}),e.createVNode(n,{direction:"vertical",alignment:"start"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),f=>(e.openBlock(),e.createElementBlock("div",{key:f.id},[e.createVNode(n,{direction:"horizontal",size:2},{default:e.withCtx(()=>[e.createVNode(o,{style:{"min-width":"150px"},"model-value":s.MenuAll[f.id],disabled:U.disabled||!f.rules||f.rules.length<=0,indeterminate:s.MenuIndeterminate[f.id],onChange:w=>h(w,f.id)},{default:e.withCtx(()=>[e.createVNode(i,{style:{"font-size":"15px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.translate),1)]),_:2},1024)]),_:2},1032,["model-value","disabled","indeterminate","onChange"]),e.createVNode(V,{direction:"vertical"}),f.rules?(e.openBlock(),e.createBlock(b,{key:0,modelValue:s.MenuList[f.id],"onUpdate:modelValue":w=>s.MenuList[f.id]=w,disabled:U.disabled,style:{margin:"auto"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.rules,w=>(e.openBlock(),e.createBlock(o,{key:w.key,value:w.key},{default:e.withCtx(()=>[e.createElementVNode("div",Z,e.toDisplayString(w.translate),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1})])}}}),v=e.defineComponent({__name:"info",emits:["refresh"],setup(U,{expose:y,emit:x}){const B=x,r=e.ref(),a=e.reactive({key:"",module:"",sort:0,name:"",en_name:"",translate:"",remark:"",rules:[]}),p={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:s,title:_,form:k,requesting:T,executing:m,open:h,modify:g,submit:N,closed:C}=l.useForm(B,a,E),d=o=>{o?(a.key=o,g()):h()},t=()=>{var o;(o=r.value)==null||o.cleanChecked(),C()};return y({openOrModify:d}),(o,n)=>{const i=e.resolveComponent("el-input"),V=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-col"),f=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-row"),c=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":n[6]||(n[6]=u=>e.isRef(s)?s.value=u:null),title:e.unref(_)(),width:"1000px",executing:e.unref(m),onClosed:t,onSubmit:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(c,{ref_key:"form",ref:k,model:a,"label-width":"auto",rules:p,disabled:e.unref(T)||e.unref(m)},{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{label:e.unref(l.Translate)("base.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.module,"onUpdate:modelValue":n[0]||(n[0]=u=>a.module=u),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.sort,"onUpdate:modelValue":n[1]||(n[1]=u=>a.sort=u),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(V,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.name,"onUpdate:modelValue":n[2]||(n[2]=u=>a.name=u),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.en_name,"onUpdate:modelValue":n[3]||(n[3]=u=>a.en_name=u),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.remark,"onUpdate:modelValue":n[4]||(n[4]=u=>a.remark=u),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.rules"),prop:"rules"},{default:e.withCtx(()=>[e.createVNode(M,{ref_key:"rulesCheck",ref:r,modelValue:a.rules,"onUpdate:modelValue":n[5]||(n[5]=u=>a.rules=u),disabled:e.unref(T)||e.unref(m)},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onSubmit"])}}}),F=e.defineComponent({__name:"index",setup(U){const y={keyword:""},x=[{label:l.Translate("base.sort"),prop:"sort",width:80},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:180},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:_,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-space"),C=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(C,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(N,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=d=>e.unref(a).keyword=d),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(E).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(v,{ref_key:"infoRef",ref:r,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}}),ee=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),le={install:(U,y)=>{Reflect.ownKeys(U._context.provides).some(x=>String(x)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.log(Reflect.ownKeys(U._context.provides))},version:"__VERSION__"},re=Object.assign({"./views/admin/index.vue":$,"./views/language/index.vue":P,"./views/menu/index.vue":Q,"./views/role/index.vue":ee});S.MenusPage=D,S.RolesPage=F,S.basicModules=re,S.default=le,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const __VERSION__ = "0.0.
|
1
|
+
export const __VERSION__ = "0.0.14'
|