auto-vue-basic 0.0.91 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,46 +1,27 @@
|
|
|
1
|
-
import { defineComponent as O, toRef as ne, resolveComponent as r, openBlock as
|
|
2
|
-
import { ApiUtils as
|
|
1
|
+
import { defineComponent as O, toRef as ne, resolveComponent as r, openBlock as M, createBlock as T, unref as e, isRef as E, withCtx as o, createVNode as l, createElementVNode as P, normalizeClass as Ae, toDisplayString as z, ref as G, Fragment as j, withKeys as Ve, createElementBlock as N, renderList as le, isVNode as Ce, reactive as je, onMounted as We, watch as Le, nextTick as Ge, createTextVNode as ee, createCommentVNode as Ye, shallowRef as He, onBeforeMount as Qe } from "vue";
|
|
2
|
+
import { ApiUtils as W, useLoading as F, useSelect as te, Translate as a, InlineRefreshButton as fe, useForm as Z, FormDialog as ae, DEFAULT_STATUS_KEY as De, ModifyButton as re, useCrudPage as Q, useSingleFormModal as Te, DEFAULT_REMOVE_KEY as Je, ProTable as be, DEFAULT_PAGE_KEY as ye, SearchButton as de, RefreshButton as K, OpenButton as B, useCacheStore as Xe, useDialog as xe, BasicDrawer as _e, BasicRadioButton as qe, RequestButton as X, RulesUtils as Ze, BasicAvatar as el, TimeUtils as $, ProTableList as ie, useSingleDialog as ve, AssetsUtils as Oe, useSingleTable as ll, notification as al, DEFAULT_LIST_URL as ol, REQUEST_LOG_URL as nl, ERROR_LOG_URL as tl, SQL_LOG_URL as rl } from "auto-vue-manual";
|
|
3
3
|
import { Key as dl, Search as sl } from "@element-plus/icons-vue";
|
|
4
4
|
const ul = {
|
|
5
5
|
tops: "tops",
|
|
6
6
|
rules: "rules"
|
|
7
|
-
},
|
|
7
|
+
}, Y = W.routineApi("menu", "id", ul, {}, ["TOP_MENU_LIST", "MENU_LIST"]), $e = W.routineApi("rule", "key"), il = /* @__PURE__ */ O({
|
|
8
8
|
__name: "TopMenuSelect",
|
|
9
9
|
props: {
|
|
10
|
-
modelValue: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
multiple: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
disabled: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !1
|
|
21
|
-
}
|
|
10
|
+
modelValue: { type: [Number, Array, void 0], required: !0, default: void 0 },
|
|
11
|
+
multiple: { type: Boolean, default: !1 },
|
|
12
|
+
disabled: { type: Boolean, default: !1 }
|
|
22
13
|
},
|
|
23
14
|
emits: ["update:modelValue", "change"],
|
|
24
|
-
setup(x, {
|
|
25
|
-
|
|
26
|
-
}) {
|
|
27
|
-
const v = U, h = x, {
|
|
28
|
-
requesting: g
|
|
29
|
-
} = F(H), {
|
|
30
|
-
value: b,
|
|
31
|
-
options: c,
|
|
32
|
-
change: p,
|
|
33
|
-
refresh: i,
|
|
34
|
-
filterOptions: n
|
|
35
|
-
} = te(ne(h, "modelValue"), v, {
|
|
15
|
+
setup(x, { emit: U }) {
|
|
16
|
+
const v = U, h = x, { requesting: g } = F(Y), { value: b, options: c, change: p, refresh: i, filterOptions: n } = te(ne(h, "modelValue"), v, {
|
|
36
17
|
key: "TOP_MENU_LIST",
|
|
37
|
-
api:
|
|
38
|
-
url:
|
|
18
|
+
api: Y,
|
|
19
|
+
url: Y.urls.tops,
|
|
39
20
|
isArray: !0
|
|
40
21
|
});
|
|
41
22
|
return (w, u) => {
|
|
42
23
|
const m = r("el-space"), f = r("el-select-v2");
|
|
43
|
-
return
|
|
24
|
+
return M(), T(f, {
|
|
44
25
|
class: "w-full",
|
|
45
26
|
modelValue: e(b),
|
|
46
27
|
"onUpdate:modelValue": u[1] || (u[1] = (_) => E(b) ? b.value = _ : null),
|
|
@@ -50,20 +31,26 @@ const ul = {
|
|
|
50
31
|
placeholder: e(a)("placeholder.select"),
|
|
51
32
|
filterable: "",
|
|
52
33
|
filterOptions: e(n),
|
|
34
|
+
"empty-values": [void 0],
|
|
53
35
|
onChange: e(p)
|
|
54
36
|
}, {
|
|
55
|
-
prefix: o(() => [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}) => [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
37
|
+
prefix: o(() => [
|
|
38
|
+
l(e(fe), {
|
|
39
|
+
loading: e(g),
|
|
40
|
+
onRefresh: u[0] || (u[0] = (_) => e(i)(!0))
|
|
41
|
+
}, null, 8, ["loading"])
|
|
42
|
+
]),
|
|
43
|
+
default: o(({ item: _ }) => [
|
|
44
|
+
l(m, null, {
|
|
45
|
+
default: o(() => [
|
|
46
|
+
P("i", {
|
|
47
|
+
class: Ae(`icon iconfont ${_.icon}`)
|
|
48
|
+
}, null, 2),
|
|
49
|
+
P("span", null, z(_.translate), 1)
|
|
50
|
+
]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1024)
|
|
53
|
+
]),
|
|
67
54
|
_: 1
|
|
68
55
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
|
69
56
|
};
|
|
@@ -137,13 +124,13 @@ const ul = {
|
|
|
137
124
|
trigger: "blur"
|
|
138
125
|
}
|
|
139
126
|
]
|
|
140
|
-
}, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g,
|
|
127
|
+
}, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, Y);
|
|
141
128
|
return U({
|
|
142
129
|
open: m,
|
|
143
130
|
modify: f
|
|
144
131
|
}), (R, t) => {
|
|
145
|
-
const d = r("el-form-item"), s = r("el-col"),
|
|
146
|
-
return
|
|
132
|
+
const d = r("el-form-item"), s = r("el-col"), S = r("el-input-number"), k = r("el-row"), A = r("el-input"), V = r("el-switch"), L = r("el-form");
|
|
133
|
+
return M(), T(e(ae), {
|
|
147
134
|
modelValue: e(c),
|
|
148
135
|
"onUpdate:modelValue": t[17] || (t[17] = (y) => E(c) ? c.value = y : null),
|
|
149
136
|
title: e(p)(),
|
|
@@ -194,7 +181,7 @@ const ul = {
|
|
|
194
181
|
prop: "sort"
|
|
195
182
|
}, {
|
|
196
183
|
default: o(() => [
|
|
197
|
-
l(
|
|
184
|
+
l(S, {
|
|
198
185
|
class: "w-full",
|
|
199
186
|
modelValue: e(n).sort,
|
|
200
187
|
"onUpdate:modelValue": t[1] || (t[1] = (y) => e(n).sort = y),
|
|
@@ -449,39 +436,16 @@ const ul = {
|
|
|
449
436
|
}), ml = /* @__PURE__ */ O({
|
|
450
437
|
__name: "MenuSelect",
|
|
451
438
|
props: {
|
|
452
|
-
modelValue: {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
},
|
|
456
|
-
multiple: {
|
|
457
|
-
type: Boolean,
|
|
458
|
-
default: !1
|
|
459
|
-
},
|
|
460
|
-
disabled: {
|
|
461
|
-
type: Boolean,
|
|
462
|
-
default: !1
|
|
463
|
-
}
|
|
439
|
+
modelValue: { type: [Number, Array], required: !0 },
|
|
440
|
+
multiple: { type: Boolean, default: !1 },
|
|
441
|
+
disabled: { type: Boolean, default: !1 }
|
|
464
442
|
},
|
|
465
443
|
emits: ["update:modelValue", "change"],
|
|
466
|
-
setup(x, {
|
|
467
|
-
|
|
468
|
-
}) {
|
|
469
|
-
const v = U, h = x, {
|
|
470
|
-
requesting: g
|
|
471
|
-
} = F(H), {
|
|
472
|
-
value: b,
|
|
473
|
-
options: c,
|
|
474
|
-
change: p,
|
|
475
|
-
refresh: i,
|
|
476
|
-
filterOptions: n
|
|
477
|
-
} = te(ne(h, "modelValue"), v, {
|
|
478
|
-
key: "MENU_LIST",
|
|
479
|
-
api: H,
|
|
480
|
-
isArray: !0
|
|
481
|
-
});
|
|
444
|
+
setup(x, { emit: U }) {
|
|
445
|
+
const v = U, h = x, { requesting: g } = F(Y), { value: b, options: c, change: p, refresh: i, filterOptions: n } = te(ne(h, "modelValue"), v, { key: "MENU_LIST", api: Y, isArray: !0 });
|
|
482
446
|
return (w, u) => {
|
|
483
447
|
const m = r("el-space"), f = r("el-select-v2");
|
|
484
|
-
return
|
|
448
|
+
return M(), T(f, {
|
|
485
449
|
class: "w-full",
|
|
486
450
|
modelValue: e(b),
|
|
487
451
|
"onUpdate:modelValue": u[1] || (u[1] = (_) => E(b) ? b.value = _ : null),
|
|
@@ -491,20 +455,26 @@ const ul = {
|
|
|
491
455
|
placeholder: e(a)("placeholder.select"),
|
|
492
456
|
filterable: "",
|
|
493
457
|
filterOptions: e(n),
|
|
458
|
+
"empty-values": [void 0],
|
|
494
459
|
onChange: e(p)
|
|
495
460
|
}, {
|
|
496
|
-
prefix: o(() => [
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}) => [
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
461
|
+
prefix: o(() => [
|
|
462
|
+
l(e(fe), {
|
|
463
|
+
loading: e(g),
|
|
464
|
+
onRefresh: u[0] || (u[0] = (_) => e(i)(!0))
|
|
465
|
+
}, null, 8, ["loading"])
|
|
466
|
+
]),
|
|
467
|
+
default: o(({ item: _ }) => [
|
|
468
|
+
l(m, null, {
|
|
469
|
+
default: o(() => [
|
|
470
|
+
P("i", {
|
|
471
|
+
class: Ae(`icon iconfont ${_.icon}`)
|
|
472
|
+
}, null, 2),
|
|
473
|
+
P("span", null, z(_.translate), 1)
|
|
474
|
+
]),
|
|
475
|
+
_: 2
|
|
476
|
+
}, 1024)
|
|
477
|
+
]),
|
|
508
478
|
_: 1
|
|
509
479
|
}, 8, ["modelValue", "options", "multiple", "disabled", "placeholder", "filterOptions", "onChange"]);
|
|
510
480
|
};
|
|
@@ -559,13 +529,13 @@ const ul = {
|
|
|
559
529
|
trigger: "blur"
|
|
560
530
|
}
|
|
561
531
|
]
|
|
562
|
-
}, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g,
|
|
532
|
+
}, { modal: c, title: p, form: i, formData: n, requesting: w, executing: u, open: m, modify: f, submit: _, closed: D } = Z(h, g, $e);
|
|
563
533
|
return U({
|
|
564
534
|
open: m,
|
|
565
535
|
modify: f
|
|
566
536
|
}), (R, t) => {
|
|
567
|
-
const d = r("el-form-item"), s = r("el-input-number"),
|
|
568
|
-
return
|
|
537
|
+
const d = r("el-form-item"), s = r("el-input-number"), S = r("el-input"), k = r("el-col"), A = r("el-row"), V = r("el-form");
|
|
538
|
+
return M(), T(e(ae), {
|
|
569
539
|
modelValue: e(c),
|
|
570
540
|
"onUpdate:modelValue": t[6] || (t[6] = (L) => E(c) ? c.value = L : null),
|
|
571
541
|
title: e(p)("menu.rules"),
|
|
@@ -621,7 +591,7 @@ const ul = {
|
|
|
621
591
|
prop: "name"
|
|
622
592
|
}, {
|
|
623
593
|
default: o(() => [
|
|
624
|
-
l(
|
|
594
|
+
l(S, {
|
|
625
595
|
modelValue: e(n).name,
|
|
626
596
|
"onUpdate:modelValue": t[2] || (t[2] = (L) => e(n).name = L),
|
|
627
597
|
placeholder: e(a)("placeholder.input")
|
|
@@ -634,7 +604,7 @@ const ul = {
|
|
|
634
604
|
prop: "en_name"
|
|
635
605
|
}, {
|
|
636
606
|
default: o(() => [
|
|
637
|
-
l(
|
|
607
|
+
l(S, {
|
|
638
608
|
modelValue: e(n).en_name,
|
|
639
609
|
"onUpdate:modelValue": t[3] || (t[3] = (L) => e(n).en_name = L),
|
|
640
610
|
placeholder: e(a)("placeholder.input")
|
|
@@ -647,7 +617,7 @@ const ul = {
|
|
|
647
617
|
prop: "remark"
|
|
648
618
|
}, {
|
|
649
619
|
default: o(() => [
|
|
650
|
-
l(
|
|
620
|
+
l(S, {
|
|
651
621
|
modelValue: e(n).remark,
|
|
652
622
|
"onUpdate:modelValue": t[4] || (t[4] = (L) => e(n).remark = L),
|
|
653
623
|
placeholder: e(a)("placeholder.input")
|
|
@@ -665,7 +635,7 @@ const ul = {
|
|
|
665
635
|
prop: "urls"
|
|
666
636
|
}, {
|
|
667
637
|
default: o(() => [
|
|
668
|
-
l(
|
|
638
|
+
l(S, {
|
|
669
639
|
modelValue: e(n).urls,
|
|
670
640
|
"onUpdate:modelValue": t[5] || (t[5] = (L) => e(n).urls = L),
|
|
671
641
|
type: "textarea",
|
|
@@ -690,7 +660,7 @@ const ul = {
|
|
|
690
660
|
};
|
|
691
661
|
}
|
|
692
662
|
});
|
|
693
|
-
function
|
|
663
|
+
function Se(x) {
|
|
694
664
|
return typeof x == "function" || Object.prototype.toString.call(x) === "[object Object]" && !Ce(x);
|
|
695
665
|
}
|
|
696
666
|
const Gl = /* @__PURE__ */ O({
|
|
@@ -699,7 +669,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
699
669
|
const U = {
|
|
700
670
|
keyword: "",
|
|
701
671
|
status: 0
|
|
702
|
-
}, v =
|
|
672
|
+
}, v = G(""), h = [
|
|
703
673
|
{
|
|
704
674
|
label: a("base.sort"),
|
|
705
675
|
prop: "sort",
|
|
@@ -773,21 +743,21 @@ const Gl = /* @__PURE__ */ O({
|
|
|
773
743
|
default: () => [d.translate]
|
|
774
744
|
}),
|
|
775
745
|
default: () => {
|
|
776
|
-
let s,
|
|
746
|
+
let s, S;
|
|
777
747
|
return l("div", null, [l("p", null, null), l("p", null, [`${a("base.confirm base.space base.delete base.space menu.rules")}: ${t.translate}-${d.translate} ?`]), l("div", {
|
|
778
748
|
style: "text-align: right; margin: 0"
|
|
779
749
|
}, [l(r("el-button"), {
|
|
780
750
|
size: "small",
|
|
781
751
|
text: !0,
|
|
782
752
|
onClick: () => v.value = ""
|
|
783
|
-
},
|
|
753
|
+
}, Se(s = a("base.cancel")) ? s : {
|
|
784
754
|
default: () => [s]
|
|
785
755
|
}), l(r("el-button"), {
|
|
786
756
|
size: "small",
|
|
787
757
|
type: "danger",
|
|
788
758
|
onClick: () => R(d.key)
|
|
789
|
-
},
|
|
790
|
-
default: () => [
|
|
759
|
+
}, Se(S = a("base.confirm")) ? S : {
|
|
760
|
+
default: () => [S]
|
|
791
761
|
})])]);
|
|
792
762
|
}
|
|
793
763
|
}))]
|
|
@@ -801,7 +771,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
801
771
|
props: {
|
|
802
772
|
activeValue: 1,
|
|
803
773
|
inactiveValue: 2,
|
|
804
|
-
api:
|
|
774
|
+
api: Y.urls[De],
|
|
805
775
|
refresh: !0
|
|
806
776
|
}
|
|
807
777
|
},
|
|
@@ -821,7 +791,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
821
791
|
}
|
|
822
792
|
], {
|
|
823
793
|
requesting: g
|
|
824
|
-
} = F(
|
|
794
|
+
} = F(Y), {
|
|
825
795
|
tableRef: b,
|
|
826
796
|
formModalRef: c,
|
|
827
797
|
keyword: p,
|
|
@@ -830,20 +800,20 @@ const Gl = /* @__PURE__ */ O({
|
|
|
830
800
|
reset: w,
|
|
831
801
|
openFormModal: u,
|
|
832
802
|
editFormModal: m
|
|
833
|
-
} =
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
} =
|
|
838
|
-
|
|
803
|
+
} = Q(U), {
|
|
804
|
+
formRef: f,
|
|
805
|
+
open: _,
|
|
806
|
+
edit: D
|
|
807
|
+
} = Te(), R = (t) => {
|
|
808
|
+
$e[Je]({
|
|
839
809
|
key: t
|
|
840
810
|
}).then(() => {
|
|
841
811
|
v.value = "", n();
|
|
842
812
|
});
|
|
843
813
|
};
|
|
844
814
|
return (t, d) => {
|
|
845
|
-
const s = r("el-button"),
|
|
846
|
-
return
|
|
815
|
+
const s = r("el-button"), S = r("el-input"), k = r("el-radio-button"), A = r("el-radio-group"), V = r("el-space"), L = r("el-page-header"), y = r("el-card");
|
|
816
|
+
return M(), T(y, {
|
|
847
817
|
class: "basic-card flex-full",
|
|
848
818
|
"body-class": "flex-1",
|
|
849
819
|
onClick: d[5] || (d[5] = () => v.value = "")
|
|
@@ -864,7 +834,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
864
834
|
content: o(() => [l(V, {
|
|
865
835
|
class: "search-bar"
|
|
866
836
|
}, {
|
|
867
|
-
default: o(() => [l(
|
|
837
|
+
default: o(() => [l(S, {
|
|
868
838
|
class: "basic-search-input",
|
|
869
839
|
modelValue: e(p).keyword,
|
|
870
840
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => e(p).keyword = C),
|
|
@@ -877,7 +847,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
877
847
|
"onUpdate:modelValue": d[3] || (d[3] = (C) => e(p).status = C),
|
|
878
848
|
onChange: d[4] || (d[4] = (C) => e(i)())
|
|
879
849
|
}, {
|
|
880
|
-
default: o(() => [(
|
|
850
|
+
default: o(() => [(M(), N(j, null, le([0, 1, 2], (C) => l(k, {
|
|
881
851
|
key: C,
|
|
882
852
|
label: e(a)(`status.${C}`),
|
|
883
853
|
value: C
|
|
@@ -895,7 +865,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
895
865
|
ref_key: "tableRef",
|
|
896
866
|
ref: b,
|
|
897
867
|
columns: h,
|
|
898
|
-
url: e(
|
|
868
|
+
url: e(Y).urls[e(ye)],
|
|
899
869
|
"search-param": e(p),
|
|
900
870
|
"auto-search": ""
|
|
901
871
|
}, null, 8, ["url", "search-param"]), l(pl, {
|
|
@@ -911,7 +881,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
911
881
|
});
|
|
912
882
|
};
|
|
913
883
|
}
|
|
914
|
-
}), we =
|
|
884
|
+
}), we = W.routineApi("role", "key"), fl = { class: "rule-check" }, bl = { style: { width: "80px", "line-height": "36px" } }, _l = /* @__PURE__ */ O({
|
|
915
885
|
__name: "RulesCheck",
|
|
916
886
|
props: {
|
|
917
887
|
modelValue: { type: Array, required: !0 },
|
|
@@ -919,13 +889,13 @@ const Gl = /* @__PURE__ */ O({
|
|
|
919
889
|
},
|
|
920
890
|
emits: ["update:modelValue"],
|
|
921
891
|
setup(x, { expose: U, emit: v }) {
|
|
922
|
-
const { requesting: h } = F(
|
|
892
|
+
const { requesting: h } = F(Y), g = x, b = v, c = G(!1), p = je({
|
|
923
893
|
checkAll: !1,
|
|
924
894
|
indeterminate: !1,
|
|
925
895
|
MenuAll: {},
|
|
926
896
|
MenuList: {},
|
|
927
897
|
MenuIndeterminate: {}
|
|
928
|
-
}), { options: i, refresh: n } = te(ne(g, "modelValue"), b, { key: "RULE_CHECK", api:
|
|
898
|
+
}), { options: i, refresh: n } = te(ne(g, "modelValue"), b, { key: "RULE_CHECK", api: Y, url: Y.urls.rules, isArray: !0 }, { autoRefresh: !1 });
|
|
929
899
|
function w() {
|
|
930
900
|
i.value.forEach((R) => {
|
|
931
901
|
R.rules?.length && (p.MenuAll[R.id] = !1, p.MenuIndeterminate[R.id] = !1, p.MenuList[R.id] = []);
|
|
@@ -958,12 +928,12 @@ const Gl = /* @__PURE__ */ O({
|
|
|
958
928
|
f(), c.value = !0;
|
|
959
929
|
}
|
|
960
930
|
}
|
|
961
|
-
return
|
|
931
|
+
return We(async () => {
|
|
962
932
|
i.value?.length || await n(), !c.value && g.modelValue && D(g.modelValue);
|
|
963
933
|
}), Le(
|
|
964
934
|
() => g.modelValue,
|
|
965
935
|
(R) => {
|
|
966
|
-
|
|
936
|
+
Ge(() => {
|
|
967
937
|
c.value || !i.value?.length || R && R.length > 0 && D(R);
|
|
968
938
|
});
|
|
969
939
|
},
|
|
@@ -972,8 +942,8 @@ const Gl = /* @__PURE__ */ O({
|
|
|
972
942
|
generateOption: D,
|
|
973
943
|
cleanChecked: _
|
|
974
944
|
}), (R, t) => {
|
|
975
|
-
const d = r("el-checkbox"), s = r("el-space"),
|
|
976
|
-
return
|
|
945
|
+
const d = r("el-checkbox"), s = r("el-space"), S = r("el-text"), k = r("el-divider"), A = r("el-checkbox-group");
|
|
946
|
+
return M(), N("div", fl, [
|
|
977
947
|
l(s, { style: { "margin-bottom": "6px" } }, {
|
|
978
948
|
default: o(() => [
|
|
979
949
|
l(d, {
|
|
@@ -1003,7 +973,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1003
973
|
class: "rule-check-content"
|
|
1004
974
|
}, {
|
|
1005
975
|
default: o(() => [
|
|
1006
|
-
(
|
|
976
|
+
(M(!0), N(j, null, le(e(i), (V) => (M(), N("div", {
|
|
1007
977
|
key: V.id
|
|
1008
978
|
}, [
|
|
1009
979
|
l(s, {
|
|
@@ -1019,7 +989,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1019
989
|
onChange: (L) => m(L, V.id)
|
|
1020
990
|
}, {
|
|
1021
991
|
default: o(() => [
|
|
1022
|
-
l(
|
|
992
|
+
l(S, { style: { "font-size": "15px" } }, {
|
|
1023
993
|
default: o(() => [
|
|
1024
994
|
ee(z(V.translate), 1)
|
|
1025
995
|
]),
|
|
@@ -1029,7 +999,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1029
999
|
_: 2
|
|
1030
1000
|
}, 1032, ["model-value", "disabled", "indeterminate", "onChange"]),
|
|
1031
1001
|
l(k, { direction: "vertical" }),
|
|
1032
|
-
V.rules ? (
|
|
1002
|
+
V.rules ? (M(), T(A, {
|
|
1033
1003
|
key: 0,
|
|
1034
1004
|
modelValue: p.MenuList[V.id],
|
|
1035
1005
|
"onUpdate:modelValue": (L) => p.MenuList[V.id] = L,
|
|
@@ -1038,7 +1008,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1038
1008
|
onChange: f
|
|
1039
1009
|
}, {
|
|
1040
1010
|
default: o(() => [
|
|
1041
|
-
(
|
|
1011
|
+
(M(!0), N(j, null, le(V.rules, (L) => (M(), T(d, {
|
|
1042
1012
|
key: L.key,
|
|
1043
1013
|
value: L.key
|
|
1044
1014
|
}, {
|
|
@@ -1049,7 +1019,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1049
1019
|
}, 1032, ["value"]))), 128))
|
|
1050
1020
|
]),
|
|
1051
1021
|
_: 2
|
|
1052
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) :
|
|
1022
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])) : Ye("", !0)
|
|
1053
1023
|
]),
|
|
1054
1024
|
_: 2
|
|
1055
1025
|
}, 1024)
|
|
@@ -1060,16 +1030,16 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1060
1030
|
]);
|
|
1061
1031
|
};
|
|
1062
1032
|
}
|
|
1063
|
-
}),
|
|
1033
|
+
}), Ee = (x, U) => {
|
|
1064
1034
|
const v = x.__vccOpts || x;
|
|
1065
1035
|
for (const [h, g] of U)
|
|
1066
1036
|
v[h] = g;
|
|
1067
1037
|
return v;
|
|
1068
|
-
}, gl = /* @__PURE__ */
|
|
1038
|
+
}, gl = /* @__PURE__ */ Ee(_l, [["__scopeId", "data-v-7adb5f76"]]), hl = /* @__PURE__ */ O({
|
|
1069
1039
|
__name: "RoleFormModal",
|
|
1070
1040
|
emits: ["refresh"],
|
|
1071
1041
|
setup(x, { expose: U, emit: v }) {
|
|
1072
|
-
const h = v, g =
|
|
1042
|
+
const h = v, g = G(), b = {
|
|
1073
1043
|
key: "",
|
|
1074
1044
|
module: "",
|
|
1075
1045
|
sort: 0,
|
|
@@ -1099,8 +1069,8 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1099
1069
|
open: f,
|
|
1100
1070
|
modify: _
|
|
1101
1071
|
}), (d, s) => {
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1072
|
+
const S = r("el-input"), k = r("el-form-item"), A = r("el-col"), V = r("el-input-number"), L = r("el-row"), y = r("el-form");
|
|
1073
|
+
return M(), T(e(ae), {
|
|
1104
1074
|
modelValue: e(p),
|
|
1105
1075
|
"onUpdate:modelValue": s[6] || (s[6] = (C) => E(p) ? p.value = C : null),
|
|
1106
1076
|
title: e(i)(),
|
|
@@ -1128,7 +1098,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1128
1098
|
prop: "module"
|
|
1129
1099
|
}, {
|
|
1130
1100
|
default: o(() => [
|
|
1131
|
-
l(
|
|
1101
|
+
l(S, {
|
|
1132
1102
|
modelValue: e(w).module,
|
|
1133
1103
|
"onUpdate:modelValue": s[0] || (s[0] = (C) => e(w).module = C),
|
|
1134
1104
|
placeholder: e(a)("placeholder.input")
|
|
@@ -1167,7 +1137,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1167
1137
|
prop: "name"
|
|
1168
1138
|
}, {
|
|
1169
1139
|
default: o(() => [
|
|
1170
|
-
l(
|
|
1140
|
+
l(S, {
|
|
1171
1141
|
modelValue: e(w).name,
|
|
1172
1142
|
"onUpdate:modelValue": s[2] || (s[2] = (C) => e(w).name = C),
|
|
1173
1143
|
placeholder: e(a)("placeholder.input")
|
|
@@ -1180,7 +1150,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1180
1150
|
prop: "en_name"
|
|
1181
1151
|
}, {
|
|
1182
1152
|
default: o(() => [
|
|
1183
|
-
l(
|
|
1153
|
+
l(S, {
|
|
1184
1154
|
modelValue: e(w).en_name,
|
|
1185
1155
|
"onUpdate:modelValue": s[3] || (s[3] = (C) => e(w).en_name = C),
|
|
1186
1156
|
placeholder: e(a)("placeholder.input")
|
|
@@ -1193,7 +1163,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1193
1163
|
prop: "remark"
|
|
1194
1164
|
}, {
|
|
1195
1165
|
default: o(() => [
|
|
1196
|
-
l(
|
|
1166
|
+
l(S, {
|
|
1197
1167
|
modelValue: e(w).remark,
|
|
1198
1168
|
"onUpdate:modelValue": s[4] || (s[4] = (C) => e(w).remark = C),
|
|
1199
1169
|
placeholder: e(a)("placeholder.input")
|
|
@@ -1281,10 +1251,10 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1281
1251
|
refresh: n,
|
|
1282
1252
|
openFormModal: w,
|
|
1283
1253
|
editFormModal: u
|
|
1284
|
-
} =
|
|
1254
|
+
} = Q(U);
|
|
1285
1255
|
return (m, f) => {
|
|
1286
1256
|
const _ = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
|
|
1287
|
-
return
|
|
1257
|
+
return M(), T(t, {
|
|
1288
1258
|
class: "basic-card flex-full",
|
|
1289
1259
|
"body-class": "flex-1"
|
|
1290
1260
|
}, {
|
|
@@ -1332,12 +1302,12 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1332
1302
|
});
|
|
1333
1303
|
};
|
|
1334
1304
|
}
|
|
1335
|
-
}),
|
|
1305
|
+
}), H = W.routineApi("I18N", "uuid", {
|
|
1336
1306
|
modules: "modules",
|
|
1337
1307
|
languages: "languages"
|
|
1338
|
-
}, { gen: "gen" }, ["I18N_MODULES"]), ue =
|
|
1308
|
+
}, { gen: "gen" }, ["I18N_MODULES"]), ue = W.routineApi("I18N_template", "uuid", {
|
|
1339
1309
|
apps: "apps"
|
|
1340
|
-
}),
|
|
1310
|
+
}), Fe = /* @__PURE__ */ O({
|
|
1341
1311
|
__name: "ModuleSelect",
|
|
1342
1312
|
props: {
|
|
1343
1313
|
modelValue: {
|
|
@@ -1368,7 +1338,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1368
1338
|
}) {
|
|
1369
1339
|
const v = U, h = x, {
|
|
1370
1340
|
requesting: g
|
|
1371
|
-
} = F(
|
|
1341
|
+
} = F(H), {
|
|
1372
1342
|
value: b,
|
|
1373
1343
|
options: c,
|
|
1374
1344
|
change: p,
|
|
@@ -1376,13 +1346,13 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1376
1346
|
filterOptions: n
|
|
1377
1347
|
} = te(ne(h, "modelValue"), v, {
|
|
1378
1348
|
key: "I18N_MODULES",
|
|
1379
|
-
url:
|
|
1380
|
-
api:
|
|
1349
|
+
url: H.urls.modules,
|
|
1350
|
+
api: H,
|
|
1381
1351
|
isArray: !0
|
|
1382
1352
|
});
|
|
1383
1353
|
return (w, u) => {
|
|
1384
1354
|
const m = r("el-space"), f = r("el-select-v2");
|
|
1385
|
-
return
|
|
1355
|
+
return M(), T(f, {
|
|
1386
1356
|
class: "w-full",
|
|
1387
1357
|
modelValue: e(b),
|
|
1388
1358
|
"onUpdate:modelValue": u[1] || (u[1] = (_) => E(b) ? b.value = _ : null),
|
|
@@ -1446,28 +1416,28 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1446
1416
|
trigger: "change"
|
|
1447
1417
|
}
|
|
1448
1418
|
]
|
|
1449
|
-
}, c =
|
|
1419
|
+
}, c = G([]), p = Xe();
|
|
1450
1420
|
function i() {
|
|
1451
1421
|
const s = {
|
|
1452
1422
|
isArray: !0,
|
|
1453
1423
|
key: "I18N_LANGUAGES",
|
|
1454
|
-
url:
|
|
1424
|
+
url: H.urls.languages,
|
|
1455
1425
|
params: {}
|
|
1456
1426
|
};
|
|
1457
|
-
p.GET_CACHE({ ...s, force: !0 }).then((
|
|
1458
|
-
c.value =
|
|
1427
|
+
p.GET_CACHE({ ...s, force: !0 }).then((S) => {
|
|
1428
|
+
c.value = S;
|
|
1459
1429
|
});
|
|
1460
1430
|
}
|
|
1461
1431
|
i();
|
|
1462
|
-
const { modal: n, title: w, form: u, formData: m, requesting: f, executing: _, open: D, modify: R, submit: t, closed: d } = Z(h, g,
|
|
1432
|
+
const { modal: n, title: w, form: u, formData: m, requesting: f, executing: _, open: D, modify: R, submit: t, closed: d } = Z(h, g, H);
|
|
1463
1433
|
return U({
|
|
1464
1434
|
open: D,
|
|
1465
1435
|
modify: R
|
|
1466
|
-
}), (s,
|
|
1436
|
+
}), (s, S) => {
|
|
1467
1437
|
const k = r("el-form-item"), A = r("el-input"), V = r("el-space"), L = r("el-form");
|
|
1468
|
-
return
|
|
1438
|
+
return M(), T(e(ae), {
|
|
1469
1439
|
modelValue: e(n),
|
|
1470
|
-
"onUpdate:modelValue":
|
|
1440
|
+
"onUpdate:modelValue": S[3] || (S[3] = (y) => E(n) ? n.value = y : null),
|
|
1471
1441
|
title: e(w)(),
|
|
1472
1442
|
width: "600px",
|
|
1473
1443
|
executing: e(_),
|
|
@@ -1490,9 +1460,9 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1490
1460
|
required: ""
|
|
1491
1461
|
}, {
|
|
1492
1462
|
default: o(() => [
|
|
1493
|
-
l(
|
|
1463
|
+
l(Fe, {
|
|
1494
1464
|
modelValue: e(m).module,
|
|
1495
|
-
"onUpdate:modelValue":
|
|
1465
|
+
"onUpdate:modelValue": S[0] || (S[0] = (y) => e(m).module = y),
|
|
1496
1466
|
disabled: e(_),
|
|
1497
1467
|
"allow-create": ""
|
|
1498
1468
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -1507,7 +1477,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1507
1477
|
default: o(() => [
|
|
1508
1478
|
l(A, {
|
|
1509
1479
|
modelValue: e(m).key,
|
|
1510
|
-
"onUpdate:modelValue":
|
|
1480
|
+
"onUpdate:modelValue": S[1] || (S[1] = (y) => e(m).key = y),
|
|
1511
1481
|
placeholder: e(a)("i18n.placeholder.key")
|
|
1512
1482
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1513
1483
|
]),
|
|
@@ -1525,7 +1495,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1525
1495
|
style: { width: "100%" }
|
|
1526
1496
|
}, {
|
|
1527
1497
|
default: o(() => [
|
|
1528
|
-
(
|
|
1498
|
+
(M(!0), N(j, null, le(c.value, (y) => (M(), N("div", { key: y }, [
|
|
1529
1499
|
l(A, {
|
|
1530
1500
|
modelValue: e(m).language[y],
|
|
1531
1501
|
"onUpdate:modelValue": (C) => e(m).language[y] = C,
|
|
@@ -1550,7 +1520,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1550
1520
|
default: o(() => [
|
|
1551
1521
|
l(A, {
|
|
1552
1522
|
modelValue: e(m).remark,
|
|
1553
|
-
"onUpdate:modelValue":
|
|
1523
|
+
"onUpdate:modelValue": S[2] || (S[2] = (y) => e(m).remark = y),
|
|
1554
1524
|
placeholder: e(a)("placeholder.remark")
|
|
1555
1525
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1556
1526
|
]),
|
|
@@ -1564,7 +1534,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1564
1534
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
1565
1535
|
};
|
|
1566
1536
|
}
|
|
1567
|
-
}),
|
|
1537
|
+
}), ze = /* @__PURE__ */ O({
|
|
1568
1538
|
__name: "I18N",
|
|
1569
1539
|
emits: ["closed", "choosed"],
|
|
1570
1540
|
setup(x, { expose: U, emit: v }) {
|
|
@@ -1589,7 +1559,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1589
1559
|
props: {
|
|
1590
1560
|
activeValue: 1,
|
|
1591
1561
|
inactiveValue: 2,
|
|
1592
|
-
api:
|
|
1562
|
+
api: H.urls[De],
|
|
1593
1563
|
refresh: !0
|
|
1594
1564
|
}
|
|
1595
1565
|
},
|
|
@@ -1600,15 +1570,15 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1600
1570
|
align: "center"
|
|
1601
1571
|
// render: renderAction
|
|
1602
1572
|
}
|
|
1603
|
-
], { requesting: n } = F(
|
|
1573
|
+
], { requesting: n } = F(H), { tableRef: w, formModalRef: u, keyword: m, search: f, reset: _, refresh: D, openFormModal: R } = Q(p);
|
|
1604
1574
|
function t(d) {
|
|
1605
1575
|
h("choosed", d);
|
|
1606
1576
|
}
|
|
1607
1577
|
return U({
|
|
1608
1578
|
open: b
|
|
1609
1579
|
}), (d, s) => {
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1580
|
+
const S = r("el-input"), k = r("el-radio-button"), A = r("el-radio-group"), V = r("el-space"), L = r("el-page-header");
|
|
1581
|
+
return M(), T(e(_e), {
|
|
1612
1582
|
class: "basic-drawer",
|
|
1613
1583
|
modelValue: e(g),
|
|
1614
1584
|
"onUpdate:modelValue": s[7] || (s[7] = (y) => E(g) ? g.value = y : null),
|
|
@@ -1631,7 +1601,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1631
1601
|
content: o(() => [
|
|
1632
1602
|
l(V, { class: "search-bar" }, {
|
|
1633
1603
|
default: o(() => [
|
|
1634
|
-
l(
|
|
1604
|
+
l(S, {
|
|
1635
1605
|
style: { width: "160px" },
|
|
1636
1606
|
modelValue: e(m).keyword,
|
|
1637
1607
|
"onUpdate:modelValue": s[0] || (s[0] = (y) => e(m).keyword = y),
|
|
@@ -1641,7 +1611,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1641
1611
|
onKeyup: s[1] || (s[1] = Ve((y) => e(f)(), ["enter"])),
|
|
1642
1612
|
onClear: s[2] || (s[2] = (y) => e(f)())
|
|
1643
1613
|
}, null, 8, ["modelValue", "disabled", "placeholder"]),
|
|
1644
|
-
l(
|
|
1614
|
+
l(Fe, {
|
|
1645
1615
|
modelValue: e(m).module,
|
|
1646
1616
|
"onUpdate:modelValue": s[3] || (s[3] = (y) => e(m).module = y),
|
|
1647
1617
|
clearable: !0,
|
|
@@ -1655,7 +1625,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1655
1625
|
disabled: e(n)
|
|
1656
1626
|
}, {
|
|
1657
1627
|
default: o(() => [
|
|
1658
|
-
(
|
|
1628
|
+
(M(), N(j, null, le([0, 1, 2], (y) => l(k, {
|
|
1659
1629
|
key: y,
|
|
1660
1630
|
label: e(a)(`status.${y}`),
|
|
1661
1631
|
value: y
|
|
@@ -1679,7 +1649,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1679
1649
|
ref_key: "tableRef",
|
|
1680
1650
|
ref: w,
|
|
1681
1651
|
columns: i,
|
|
1682
|
-
url: e(
|
|
1652
|
+
url: e(H).urls[e(ye)],
|
|
1683
1653
|
"search-param": e(m),
|
|
1684
1654
|
onRowDblclick: t,
|
|
1685
1655
|
"auto-search": ""
|
|
@@ -1698,10 +1668,10 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1698
1668
|
__name: "template",
|
|
1699
1669
|
emits: ["refresh"],
|
|
1700
1670
|
setup(x, { expose: U, emit: v }) {
|
|
1701
|
-
const h =
|
|
1671
|
+
const h = He(), g = () => h.value?.open(), b = v, c = G("600px"), p = G({
|
|
1702
1672
|
"zh-CN": "primary",
|
|
1703
1673
|
"en-US": "success"
|
|
1704
|
-
}), i =
|
|
1674
|
+
}), i = G({}), n = {
|
|
1705
1675
|
uuid: "",
|
|
1706
1676
|
app: 1,
|
|
1707
1677
|
keys: "",
|
|
@@ -1729,7 +1699,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1729
1699
|
trigger: "change"
|
|
1730
1700
|
}
|
|
1731
1701
|
]
|
|
1732
|
-
}, { modal: u, title: m, form: f, formData: _, requesting: D, executing: R, open: t, modify: d, submit: s, closed:
|
|
1702
|
+
}, { modal: u, title: m, form: f, formData: _, requesting: D, executing: R, open: t, modify: d, submit: s, closed: S } = Z(b, n, ue);
|
|
1733
1703
|
function k() {
|
|
1734
1704
|
c.value = "1080px", g();
|
|
1735
1705
|
}
|
|
@@ -1752,13 +1722,13 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1752
1722
|
};
|
|
1753
1723
|
}
|
|
1754
1724
|
return Le(() => u.value, (C) => {
|
|
1755
|
-
C ? L() :
|
|
1725
|
+
C ? L() : S();
|
|
1756
1726
|
}), U({
|
|
1757
1727
|
open: t,
|
|
1758
1728
|
modify: d
|
|
1759
1729
|
}), (C, q) => {
|
|
1760
|
-
const oe = r("el-page-header"), se = r("el-form-item"), Re = r("el-button"), I = r("el-input"),
|
|
1761
|
-
return
|
|
1730
|
+
const oe = r("el-page-header"), se = r("el-form-item"), Re = r("el-button"), I = r("el-input"), Be = r("el-tag"), Pe = r("el-space"), Ke = r("el-form");
|
|
1731
|
+
return M(), T(e(_e), {
|
|
1762
1732
|
modelValue: e(u),
|
|
1763
1733
|
"onUpdate:modelValue": q[3] || (q[3] = (J) => E(u) ? u.value = J : null),
|
|
1764
1734
|
width: c.value,
|
|
@@ -1792,7 +1762,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1792
1762
|
})
|
|
1793
1763
|
]),
|
|
1794
1764
|
default: o(() => [
|
|
1795
|
-
l(
|
|
1765
|
+
l(Ke, {
|
|
1796
1766
|
ref_key: "form",
|
|
1797
1767
|
ref: f,
|
|
1798
1768
|
model: e(_),
|
|
@@ -1807,7 +1777,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1807
1777
|
required: ""
|
|
1808
1778
|
}, {
|
|
1809
1779
|
default: o(() => [
|
|
1810
|
-
l(e(
|
|
1780
|
+
l(e(qe), {
|
|
1811
1781
|
modelValue: e(_).app,
|
|
1812
1782
|
"onUpdate:modelValue": q[0] || (q[0] = (J) => e(_).app = J),
|
|
1813
1783
|
"cache-key": "I18NAPPS",
|
|
@@ -1853,13 +1823,13 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1853
1823
|
label: e(a)("i18n.values")
|
|
1854
1824
|
}, {
|
|
1855
1825
|
default: o(() => [
|
|
1856
|
-
(
|
|
1826
|
+
(M(!0), N(j, null, le(i.value, (J, ke) => (M(), N("div", {
|
|
1857
1827
|
key: ke,
|
|
1858
1828
|
class: "w-full"
|
|
1859
1829
|
}, [
|
|
1860
|
-
l(
|
|
1830
|
+
l(Pe, null, {
|
|
1861
1831
|
default: o(() => [
|
|
1862
|
-
l(
|
|
1832
|
+
l(Be, {
|
|
1863
1833
|
type: p.value[ke],
|
|
1864
1834
|
style: { "min-width": "80px" }
|
|
1865
1835
|
}, {
|
|
@@ -1868,7 +1838,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1868
1838
|
]),
|
|
1869
1839
|
_: 2
|
|
1870
1840
|
}, 1032, ["type"]),
|
|
1871
|
-
ke == "zh-CN" ? (
|
|
1841
|
+
ke == "zh-CN" ? (M(), N("span", yl, z(J.join("")), 1)) : (M(), N("span", kl, z(J.join(" ")), 1))
|
|
1872
1842
|
]),
|
|
1873
1843
|
_: 2
|
|
1874
1844
|
}, 1024)
|
|
@@ -1892,7 +1862,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1892
1862
|
]),
|
|
1893
1863
|
_: 1
|
|
1894
1864
|
}, 8, ["model", "disabled"]),
|
|
1895
|
-
l(
|
|
1865
|
+
l(ze, {
|
|
1896
1866
|
ref_key: "I18nTableDrawerRef",
|
|
1897
1867
|
ref: h,
|
|
1898
1868
|
onChoosed: V,
|
|
@@ -1903,7 +1873,7 @@ const Gl = /* @__PURE__ */ O({
|
|
|
1903
1873
|
}, 8, ["modelValue", "width"]);
|
|
1904
1874
|
};
|
|
1905
1875
|
}
|
|
1906
|
-
}), wl =
|
|
1876
|
+
}), wl = W.routineApi("gateway", "id", {
|
|
1907
1877
|
gen: "gen_translation"
|
|
1908
1878
|
});
|
|
1909
1879
|
function xl(x) {
|
|
@@ -1912,7 +1882,7 @@ function xl(x) {
|
|
|
1912
1882
|
const Hl = /* @__PURE__ */ O({
|
|
1913
1883
|
__name: "index",
|
|
1914
1884
|
setup(x) {
|
|
1915
|
-
const U =
|
|
1885
|
+
const U = ze, v = vl, h = {
|
|
1916
1886
|
keyword: "",
|
|
1917
1887
|
app: 0,
|
|
1918
1888
|
status: 0
|
|
@@ -1998,7 +1968,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
1998
1968
|
openFormModal: R,
|
|
1999
1969
|
editFormModal: t,
|
|
2000
1970
|
openDialog: d
|
|
2001
|
-
} =
|
|
1971
|
+
} = Q(h);
|
|
2002
1972
|
function s(A) {
|
|
2003
1973
|
return ue.remove({
|
|
2004
1974
|
uuid: A
|
|
@@ -2006,8 +1976,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2006
1976
|
D();
|
|
2007
1977
|
});
|
|
2008
1978
|
}
|
|
2009
|
-
function
|
|
2010
|
-
return
|
|
1979
|
+
function S() {
|
|
1980
|
+
return H.gen().finally(() => {
|
|
2011
1981
|
D();
|
|
2012
1982
|
});
|
|
2013
1983
|
}
|
|
@@ -2018,7 +1988,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2018
1988
|
}
|
|
2019
1989
|
return (A, V) => {
|
|
2020
1990
|
const L = r("el-input"), y = r("el-radio-button"), C = r("el-radio-group"), q = r("el-space"), oe = r("el-divider"), se = r("el-page-header"), Re = r("el-card");
|
|
2021
|
-
return
|
|
1991
|
+
return M(), T(Re, {
|
|
2022
1992
|
class: "basic-card flex-full",
|
|
2023
1993
|
"body-class": "flex-1"
|
|
2024
1994
|
}, {
|
|
@@ -2043,7 +2013,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2043
2013
|
clearable: "",
|
|
2044
2014
|
onKeyup: V[1] || (V[1] = Ve((I) => e(f)(), ["enter"])),
|
|
2045
2015
|
onClear: V[2] || (V[2] = (I) => e(f)())
|
|
2046
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(
|
|
2016
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"]), l(e(qe), {
|
|
2047
2017
|
modelValue: e(m).app,
|
|
2048
2018
|
"onUpdate:modelValue": V[3] || (V[3] = (I) => e(m).app = I),
|
|
2049
2019
|
"cache-key": "I18NAPPS",
|
|
@@ -2056,7 +2026,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2056
2026
|
disabled: e(p) || e(i),
|
|
2057
2027
|
onChange: V[6] || (V[6] = (I) => e(f)())
|
|
2058
2028
|
}, {
|
|
2059
|
-
default: o(() => [(
|
|
2029
|
+
default: o(() => [(M(), N(j, null, le([0, 1, 2], (I) => l(y, {
|
|
2060
2030
|
key: I,
|
|
2061
2031
|
label: e(a)(`status.${I}`),
|
|
2062
2032
|
value: I
|
|
@@ -2074,7 +2044,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2074
2044
|
icon: "icon-cloud-upload",
|
|
2075
2045
|
plain: !1,
|
|
2076
2046
|
loading: e(i),
|
|
2077
|
-
onClick:
|
|
2047
|
+
onClick: S
|
|
2078
2048
|
}, null, 8, ["loading"]), l(e(X), {
|
|
2079
2049
|
size: "default",
|
|
2080
2050
|
type: "danger",
|
|
@@ -2109,7 +2079,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2109
2079
|
});
|
|
2110
2080
|
};
|
|
2111
2081
|
}
|
|
2112
|
-
}), Ue =
|
|
2082
|
+
}), Ue = W.routineApi("admin", "key"), Rl = /* @__PURE__ */ O({
|
|
2113
2083
|
__name: "AdminFormModal",
|
|
2114
2084
|
emits: ["refresh"],
|
|
2115
2085
|
setup(x, { expose: U, emit: v }) {
|
|
@@ -2133,7 +2103,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2133
2103
|
phone: [
|
|
2134
2104
|
{
|
|
2135
2105
|
required: !0,
|
|
2136
|
-
validator:
|
|
2106
|
+
validator: Ze.phoneRule,
|
|
2137
2107
|
message: a("placeholder.input base.phone"),
|
|
2138
2108
|
trigger: "blur"
|
|
2139
2109
|
}
|
|
@@ -2167,18 +2137,18 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2167
2137
|
trigger: "change"
|
|
2168
2138
|
}
|
|
2169
2139
|
]
|
|
2170
|
-
}, R =
|
|
2140
|
+
}, R = G([]), t = async () => {
|
|
2171
2141
|
const d = await we.list();
|
|
2172
2142
|
R.value = Array.isArray(d?.data) ? d.data : [];
|
|
2173
2143
|
};
|
|
2174
|
-
return
|
|
2144
|
+
return Qe(async () => {
|
|
2175
2145
|
await t();
|
|
2176
2146
|
}), U({
|
|
2177
2147
|
open: u,
|
|
2178
2148
|
modify: m
|
|
2179
2149
|
}), (d, s) => {
|
|
2180
|
-
const
|
|
2181
|
-
return
|
|
2150
|
+
const S = r("el-input"), k = r("el-form-item"), A = r("el-radio-button"), V = r("el-radio-group"), L = r("el-checkbox"), y = r("el-checkbox-group"), C = r("el-form");
|
|
2151
|
+
return M(), T(e(ae), {
|
|
2182
2152
|
modelValue: e(b),
|
|
2183
2153
|
"onUpdate:modelValue": s[7] || (s[7] = (q) => E(b) ? b.value = q : null),
|
|
2184
2154
|
title: e(c)(),
|
|
@@ -2202,7 +2172,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2202
2172
|
prop: "username"
|
|
2203
2173
|
}, {
|
|
2204
2174
|
default: o(() => [
|
|
2205
|
-
l(
|
|
2175
|
+
l(S, {
|
|
2206
2176
|
modelValue: e(i).username,
|
|
2207
2177
|
"onUpdate:modelValue": s[0] || (s[0] = (q) => e(i).username = q),
|
|
2208
2178
|
placeholder: e(a)("placeholder.input"),
|
|
@@ -2216,7 +2186,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2216
2186
|
prop: "phone"
|
|
2217
2187
|
}, {
|
|
2218
2188
|
default: o(() => [
|
|
2219
|
-
l(
|
|
2189
|
+
l(S, {
|
|
2220
2190
|
modelValue: e(i).phone,
|
|
2221
2191
|
"onUpdate:modelValue": s[1] || (s[1] = (q) => e(i).phone = q),
|
|
2222
2192
|
placeholder: e(a)("placeholder.input"),
|
|
@@ -2231,7 +2201,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2231
2201
|
required: !e(i).key
|
|
2232
2202
|
}, {
|
|
2233
2203
|
default: o(() => [
|
|
2234
|
-
l(
|
|
2204
|
+
l(S, {
|
|
2235
2205
|
modelValue: e(i).password,
|
|
2236
2206
|
"onUpdate:modelValue": s[2] || (s[2] = (q) => e(i).password = q),
|
|
2237
2207
|
placeholder: e(a)("placeholder.input"),
|
|
@@ -2245,7 +2215,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2245
2215
|
prop: "email"
|
|
2246
2216
|
}, {
|
|
2247
2217
|
default: o(() => [
|
|
2248
|
-
l(
|
|
2218
|
+
l(S, {
|
|
2249
2219
|
modelValue: e(i).email,
|
|
2250
2220
|
"onUpdate:modelValue": s[3] || (s[3] = (q) => e(i).email = q),
|
|
2251
2221
|
placeholder: e(a)("placeholder.input"),
|
|
@@ -2292,7 +2262,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2292
2262
|
"onUpdate:modelValue": s[5] || (s[5] = (q) => e(i).roles = q)
|
|
2293
2263
|
}, {
|
|
2294
2264
|
default: o(() => [
|
|
2295
|
-
(
|
|
2265
|
+
(M(!0), N(j, null, le(R.value, (q) => (M(), T(L, {
|
|
2296
2266
|
key: q.key,
|
|
2297
2267
|
value: q.key
|
|
2298
2268
|
}, {
|
|
@@ -2312,7 +2282,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2312
2282
|
prop: "remark"
|
|
2313
2283
|
}, {
|
|
2314
2284
|
default: o(() => [
|
|
2315
|
-
l(
|
|
2285
|
+
l(S, {
|
|
2316
2286
|
modelValue: e(i).remark,
|
|
2317
2287
|
"onUpdate:modelValue": s[6] || (s[6] = (q) => e(i).remark = q),
|
|
2318
2288
|
placeholder: e(a)("placeholder.input")
|
|
@@ -2339,7 +2309,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2339
2309
|
width: 60,
|
|
2340
2310
|
render: ({
|
|
2341
2311
|
row: m
|
|
2342
|
-
}) => l(
|
|
2312
|
+
}) => l(el, {
|
|
2343
2313
|
src: m.avatar
|
|
2344
2314
|
}, null)
|
|
2345
2315
|
}, {
|
|
@@ -2397,10 +2367,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2397
2367
|
refresh: n,
|
|
2398
2368
|
openFormModal: w,
|
|
2399
2369
|
editFormModal: u
|
|
2400
|
-
} =
|
|
2370
|
+
} = Q(U);
|
|
2401
2371
|
return (m, f) => {
|
|
2402
2372
|
const _ = r("el-input"), D = r("el-space"), R = r("el-page-header"), t = r("el-card");
|
|
2403
|
-
return
|
|
2373
|
+
return M(), T(t, {
|
|
2404
2374
|
class: "basic-card flex-full",
|
|
2405
2375
|
"body-class": "flex-1"
|
|
2406
2376
|
}, {
|
|
@@ -2451,7 +2421,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2451
2421
|
}
|
|
2452
2422
|
}), Ul = {
|
|
2453
2423
|
check: "check"
|
|
2454
|
-
}, pe =
|
|
2424
|
+
}, pe = W.routineApi("site", "id", Ul), ge = W.routineApi("domain"), Ie = /* @__PURE__ */ O({
|
|
2455
2425
|
__name: "DomainSelect",
|
|
2456
2426
|
props: {
|
|
2457
2427
|
modelValue: {
|
|
@@ -2484,7 +2454,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2484
2454
|
refresh: i
|
|
2485
2455
|
}), (w, u) => {
|
|
2486
2456
|
const m = r("el-select-v2");
|
|
2487
|
-
return
|
|
2457
|
+
return M(), T(m, {
|
|
2488
2458
|
modelValue: e(c),
|
|
2489
2459
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
|
|
2490
2460
|
options: e(p),
|
|
@@ -2524,8 +2494,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2524
2494
|
open: m,
|
|
2525
2495
|
modify: f
|
|
2526
2496
|
}), (R, t) => {
|
|
2527
|
-
const d = r("el-form-item"), s = r("el-input"),
|
|
2528
|
-
return
|
|
2497
|
+
const d = r("el-form-item"), s = r("el-input"), S = r("el-form");
|
|
2498
|
+
return M(), T(e(ae), {
|
|
2529
2499
|
modelValue: e(c),
|
|
2530
2500
|
"onUpdate:modelValue": t[7] || (t[7] = (k) => E(c) ? c.value = k : null),
|
|
2531
2501
|
title: e(p)("config.site"),
|
|
@@ -2535,7 +2505,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2535
2505
|
onSubmit: e(_)
|
|
2536
2506
|
}, {
|
|
2537
2507
|
default: o(() => [
|
|
2538
|
-
l(
|
|
2508
|
+
l(S, {
|
|
2539
2509
|
ref_key: "form",
|
|
2540
2510
|
ref: i,
|
|
2541
2511
|
model: e(n),
|
|
@@ -2549,7 +2519,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2549
2519
|
label: e(a)("config.domain")
|
|
2550
2520
|
}, {
|
|
2551
2521
|
default: o(() => [
|
|
2552
|
-
l(
|
|
2522
|
+
l(Ie, {
|
|
2553
2523
|
modelValue: e(n).domain_id,
|
|
2554
2524
|
"onUpdate:modelValue": t[0] || (t[0] = (k) => e(n).domain_id = k),
|
|
2555
2525
|
disabled: e(u)
|
|
@@ -2649,7 +2619,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2649
2619
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2650
2620
|
};
|
|
2651
2621
|
}
|
|
2652
|
-
}), he =
|
|
2622
|
+
}), he = W.routineApi("domain_provider"), Dl = /* @__PURE__ */ O({
|
|
2653
2623
|
__name: "DomainProviderSelect",
|
|
2654
2624
|
props: {
|
|
2655
2625
|
modelValue: {
|
|
@@ -2682,7 +2652,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2682
2652
|
refresh: i
|
|
2683
2653
|
}), (w, u) => {
|
|
2684
2654
|
const m = r("el-select-v2");
|
|
2685
|
-
return
|
|
2655
|
+
return M(), T(m, {
|
|
2686
2656
|
modelValue: e(c),
|
|
2687
2657
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
|
|
2688
2658
|
options: e(p),
|
|
@@ -2698,7 +2668,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2698
2668
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2699
2669
|
};
|
|
2700
2670
|
}
|
|
2701
|
-
}),
|
|
2671
|
+
}), Sl = /* @__PURE__ */ O({
|
|
2702
2672
|
__name: "DomainFormModal",
|
|
2703
2673
|
emits: ["refresh"],
|
|
2704
2674
|
setup(x, { expose: U, emit: v }) {
|
|
@@ -2717,8 +2687,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2717
2687
|
open: m,
|
|
2718
2688
|
modify: f
|
|
2719
2689
|
}), (R, t) => {
|
|
2720
|
-
const d = r("el-form-item"), s = r("el-input"),
|
|
2721
|
-
return
|
|
2690
|
+
const d = r("el-form-item"), s = r("el-input"), S = r("el-date-picker"), k = r("el-form");
|
|
2691
|
+
return M(), T(e(ae), {
|
|
2722
2692
|
modelValue: e(c),
|
|
2723
2693
|
"onUpdate:modelValue": t[4] || (t[4] = (A) => E(c) ? c.value = A : null),
|
|
2724
2694
|
title: e(p)("config.domain"),
|
|
@@ -2770,7 +2740,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2770
2740
|
label: e(a)("time.expired_at")
|
|
2771
2741
|
}, {
|
|
2772
2742
|
default: o(() => [
|
|
2773
|
-
l(
|
|
2743
|
+
l(S, {
|
|
2774
2744
|
type: "date",
|
|
2775
2745
|
style: { width: "100%" },
|
|
2776
2746
|
modelValue: e(n).expired_at,
|
|
@@ -2805,9 +2775,9 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2805
2775
|
}, 8, ["modelValue", "title", "executing", "onClosed", "onSubmit"]);
|
|
2806
2776
|
};
|
|
2807
2777
|
}
|
|
2808
|
-
}),
|
|
2778
|
+
}), Ml = {
|
|
2809
2779
|
gen: "gen"
|
|
2810
|
-
}, me =
|
|
2780
|
+
}, me = W.routineApi("SSL", "id", Ml), Cl = /* @__PURE__ */ O({
|
|
2811
2781
|
__name: "SiteSelect",
|
|
2812
2782
|
props: {
|
|
2813
2783
|
modelValue: {
|
|
@@ -2846,7 +2816,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2846
2816
|
refresh: i
|
|
2847
2817
|
}), (w, u) => {
|
|
2848
2818
|
const m = r("el-select-v2");
|
|
2849
|
-
return
|
|
2819
|
+
return M(), T(m, {
|
|
2850
2820
|
modelValue: e(c),
|
|
2851
2821
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => E(c) ? c.value = f : null),
|
|
2852
2822
|
options: e(p),
|
|
@@ -2862,7 +2832,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2862
2832
|
}, 8, ["modelValue", "options", "disabled", "placeholder", "onChange"]);
|
|
2863
2833
|
};
|
|
2864
2834
|
}
|
|
2865
|
-
}),
|
|
2835
|
+
}), Ne = /* @__PURE__ */ O({
|
|
2866
2836
|
__name: "SSLFormModal",
|
|
2867
2837
|
emits: ["refresh"],
|
|
2868
2838
|
setup(x, { expose: U, emit: v }) {
|
|
@@ -2889,8 +2859,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2889
2859
|
modify: f,
|
|
2890
2860
|
formData: n
|
|
2891
2861
|
}), (R, t) => {
|
|
2892
|
-
const d = r("el-form-item"), s = r("el-radio-button"),
|
|
2893
|
-
return
|
|
2862
|
+
const d = r("el-form-item"), s = r("el-radio-button"), S = r("el-radio-group"), k = r("el-input"), A = r("el-form");
|
|
2863
|
+
return M(), T(e(ae), {
|
|
2894
2864
|
modelValue: e(c),
|
|
2895
2865
|
"onUpdate:modelValue": t[8] || (t[8] = (V) => E(c) ? c.value = V : null),
|
|
2896
2866
|
title: e(p)("ssl.ssl"),
|
|
@@ -2914,7 +2884,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2914
2884
|
label: e(a)("config.domain")
|
|
2915
2885
|
}, {
|
|
2916
2886
|
default: o(() => [
|
|
2917
|
-
l(
|
|
2887
|
+
l(Ie, {
|
|
2918
2888
|
modelValue: e(n).domain_id,
|
|
2919
2889
|
"onUpdate:modelValue": t[0] || (t[0] = (V) => e(n).domain_id = V),
|
|
2920
2890
|
disabled: e(u)
|
|
@@ -2927,7 +2897,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
2927
2897
|
label: e(a)("ssl.client")
|
|
2928
2898
|
}, {
|
|
2929
2899
|
default: o(() => [
|
|
2930
|
-
l(
|
|
2900
|
+
l(S, {
|
|
2931
2901
|
modelValue: e(n).client,
|
|
2932
2902
|
"onUpdate:modelValue": t[1] || (t[1] = (V) => e(n).client = V)
|
|
2933
2903
|
}, {
|
|
@@ -3002,7 +2972,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3002
2972
|
label: e(a)("config.encryption")
|
|
3003
2973
|
}, {
|
|
3004
2974
|
default: o(() => [
|
|
3005
|
-
l(
|
|
2975
|
+
l(S, {
|
|
3006
2976
|
modelValue: e(n).encryption,
|
|
3007
2977
|
"onUpdate:modelValue": t[6] || (t[6] = (V) => e(n).encryption = V)
|
|
3008
2978
|
}, {
|
|
@@ -3063,8 +3033,8 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3063
3033
|
open: m,
|
|
3064
3034
|
modify: f
|
|
3065
3035
|
}), (R, t) => {
|
|
3066
|
-
const d = r("el-input"), s = r("el-form-item"),
|
|
3067
|
-
return
|
|
3036
|
+
const d = r("el-input"), s = r("el-form-item"), S = r("el-form");
|
|
3037
|
+
return M(), T(e(ae), {
|
|
3068
3038
|
modelValue: e(c),
|
|
3069
3039
|
"onUpdate:modelValue": t[6] || (t[6] = (k) => E(c) ? c.value = k : null),
|
|
3070
3040
|
title: e(p)("config.domain"),
|
|
@@ -3074,7 +3044,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3074
3044
|
onSubmit: e(_)
|
|
3075
3045
|
}, {
|
|
3076
3046
|
default: o(() => [
|
|
3077
|
-
l(
|
|
3047
|
+
l(S, {
|
|
3078
3048
|
ref_key: "form",
|
|
3079
3049
|
ref: i,
|
|
3080
3050
|
model: e(n),
|
|
@@ -3182,13 +3152,13 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3182
3152
|
}) {
|
|
3183
3153
|
const {
|
|
3184
3154
|
requesting: v
|
|
3185
|
-
} = F(he), h =
|
|
3155
|
+
} = F(he), h = G(!1), {
|
|
3186
3156
|
tableRef: g,
|
|
3187
3157
|
formModalRef: b,
|
|
3188
3158
|
refresh: c,
|
|
3189
3159
|
openFormModal: p,
|
|
3190
3160
|
editFormModal: i
|
|
3191
|
-
} =
|
|
3161
|
+
} = Q({}), n = [{
|
|
3192
3162
|
prop: "name",
|
|
3193
3163
|
label: a("base.name"),
|
|
3194
3164
|
width: 0,
|
|
@@ -3220,7 +3190,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3220
3190
|
}
|
|
3221
3191
|
}), (u, m) => {
|
|
3222
3192
|
const f = r("el-page-header");
|
|
3223
|
-
return
|
|
3193
|
+
return M(), T(e(_e), {
|
|
3224
3194
|
modelValue: h.value,
|
|
3225
3195
|
"onUpdate:modelValue": m[0] || (m[0] = (_) => h.value = _),
|
|
3226
3196
|
width: "400px",
|
|
@@ -3274,11 +3244,11 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3274
3244
|
refresh: p,
|
|
3275
3245
|
openFormModal: i,
|
|
3276
3246
|
editFormModal: n
|
|
3277
|
-
} =
|
|
3247
|
+
} = Q(), {
|
|
3278
3248
|
formRef: w,
|
|
3279
3249
|
open: u,
|
|
3280
3250
|
edit: m
|
|
3281
|
-
} =
|
|
3251
|
+
} = Te(), {
|
|
3282
3252
|
dialogRef: f,
|
|
3283
3253
|
open: _
|
|
3284
3254
|
} = ve(), D = [{
|
|
@@ -3330,9 +3300,9 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3330
3300
|
open: g
|
|
3331
3301
|
}), (R, t) => {
|
|
3332
3302
|
const d = r("el-space"), s = r("el-page-header");
|
|
3333
|
-
return
|
|
3303
|
+
return M(), T(e(_e), {
|
|
3334
3304
|
modelValue: e(h),
|
|
3335
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3305
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => E(h) ? h.value = S : null),
|
|
3336
3306
|
width: "600px",
|
|
3337
3307
|
"show-close": !1,
|
|
3338
3308
|
class: "basic-drawer"
|
|
@@ -3368,11 +3338,11 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3368
3338
|
url: e(ge).urls.list,
|
|
3369
3339
|
columns: D,
|
|
3370
3340
|
loading: e(v)
|
|
3371
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3341
|
+
}, null, 8, ["url", "loading"]), l(Sl, {
|
|
3372
3342
|
ref_key: "formModalRef",
|
|
3373
3343
|
ref: c,
|
|
3374
3344
|
onRefresh: e(p)
|
|
3375
|
-
}, null, 8, ["onRefresh"]), l(
|
|
3345
|
+
}, null, 8, ["onRefresh"]), l(Ne, {
|
|
3376
3346
|
ref_key: "sslFormModalRef",
|
|
3377
3347
|
ref: w,
|
|
3378
3348
|
onRefresh: e(p)
|
|
@@ -3392,7 +3362,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3392
3362
|
const {
|
|
3393
3363
|
requesting: v,
|
|
3394
3364
|
executing: h
|
|
3395
|
-
} = F(me), g =
|
|
3365
|
+
} = F(me), g = G(0), {
|
|
3396
3366
|
visible: b,
|
|
3397
3367
|
open: c
|
|
3398
3368
|
} = xe(), {
|
|
@@ -3401,7 +3371,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3401
3371
|
refresh: n,
|
|
3402
3372
|
openFormModal: w,
|
|
3403
3373
|
editFormModal: u
|
|
3404
|
-
} =
|
|
3374
|
+
} = Q(), m = [
|
|
3405
3375
|
{
|
|
3406
3376
|
prop: "client",
|
|
3407
3377
|
label: a("ssl.client"),
|
|
@@ -3477,7 +3447,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3477
3447
|
});
|
|
3478
3448
|
};
|
|
3479
3449
|
function _(D) {
|
|
3480
|
-
const R =
|
|
3450
|
+
const R = Oe.getDownloadUrl(D.path + ".zip");
|
|
3481
3451
|
fetch(R).then((t) => t.blob()).then((t) => {
|
|
3482
3452
|
let d = URL.createObjectURL(t), s = document.createElement("a");
|
|
3483
3453
|
s.style.display = "none", s.href = d, s.download = D.name + ".zip", s.click(), URL.revokeObjectURL(t);
|
|
@@ -3487,7 +3457,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3487
3457
|
open: c
|
|
3488
3458
|
}), (D, R) => {
|
|
3489
3459
|
const t = r("el-page-header");
|
|
3490
|
-
return
|
|
3460
|
+
return M(), T(e(_e), {
|
|
3491
3461
|
modelValue: e(b),
|
|
3492
3462
|
"onUpdate:modelValue": R[0] || (R[0] = (d) => E(b) ? b.value = d : null),
|
|
3493
3463
|
width: "1000px",
|
|
@@ -3515,7 +3485,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3515
3485
|
url: e(me).urls.list,
|
|
3516
3486
|
columns: m,
|
|
3517
3487
|
loading: e(v)
|
|
3518
|
-
}, null, 8, ["url", "loading"]), l(
|
|
3488
|
+
}, null, 8, ["url", "loading"]), l(Ne, {
|
|
3519
3489
|
ref_key: "formModalRef",
|
|
3520
3490
|
ref: i,
|
|
3521
3491
|
onRefresh: e(n)
|
|
@@ -3524,13 +3494,13 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3524
3494
|
}, 8, ["modelValue"]);
|
|
3525
3495
|
};
|
|
3526
3496
|
}
|
|
3527
|
-
}),
|
|
3497
|
+
}), Me = W.routineApi("SSLLog", "id"), $l = /* @__PURE__ */ O({
|
|
3528
3498
|
__name: "SSLLogTableDrawer",
|
|
3529
3499
|
props: {
|
|
3530
3500
|
ssl: { type: Object, default: () => ({}) }
|
|
3531
3501
|
},
|
|
3532
3502
|
setup(x, { expose: U }) {
|
|
3533
|
-
const v = x, { requesting: h, executing: g } = F([
|
|
3503
|
+
const v = x, { requesting: h, executing: g } = F([Me, me]), { visible: b, open: c } = xe(), { tableRef: p, refresh: i } = ll(), n = [
|
|
3534
3504
|
{ prop: "status.label", label: a("base.status"), width: 100 },
|
|
3535
3505
|
{ prop: "at", label: a("base.time"), width: 180 },
|
|
3536
3506
|
{ prop: "type_text", label: a("base.type"), width: 80 },
|
|
@@ -3542,7 +3512,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3542
3512
|
});
|
|
3543
3513
|
}
|
|
3544
3514
|
function u() {
|
|
3545
|
-
const m =
|
|
3515
|
+
const m = Oe.getDownloadUrl(v.ssl.path + ".zip");
|
|
3546
3516
|
fetch(m).then((f) => f.blob()).then((f) => {
|
|
3547
3517
|
let _ = URL.createObjectURL(f), D = document.createElement("a");
|
|
3548
3518
|
D.style.display = "none", D.href = _, D.download = v.ssl.name + ".zip", D.click(), URL.revokeObjectURL(f);
|
|
@@ -3552,7 +3522,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3552
3522
|
open: c
|
|
3553
3523
|
}), (m, f) => {
|
|
3554
3524
|
const _ = r("el-page-header");
|
|
3555
|
-
return
|
|
3525
|
+
return M(), T(e(_e), {
|
|
3556
3526
|
modelValue: e(b),
|
|
3557
3527
|
"onUpdate:modelValue": f[0] || (f[0] = (D) => E(b) ? b.value = D : null),
|
|
3558
3528
|
width: "600px",
|
|
@@ -3598,7 +3568,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3598
3568
|
ref: p,
|
|
3599
3569
|
size: "small",
|
|
3600
3570
|
"row-key": "id",
|
|
3601
|
-
url: e(
|
|
3571
|
+
url: e(Me).urls.search,
|
|
3602
3572
|
columns: n,
|
|
3603
3573
|
loading: e(h)
|
|
3604
3574
|
}, null, 8, ["url", "loading"])
|
|
@@ -3610,7 +3580,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3610
3580
|
}), El = /* @__PURE__ */ O({
|
|
3611
3581
|
__name: "index",
|
|
3612
3582
|
setup(x) {
|
|
3613
|
-
const U = ql, v = Ol, h = $l, g =
|
|
3583
|
+
const U = ql, v = Ol, h = $l, g = G(), {
|
|
3614
3584
|
requesting: b,
|
|
3615
3585
|
executing: c
|
|
3616
3586
|
} = F(pe), {
|
|
@@ -3620,7 +3590,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3620
3590
|
refresh: w,
|
|
3621
3591
|
openFormModal: u,
|
|
3622
3592
|
editFormModal: m
|
|
3623
|
-
} =
|
|
3593
|
+
} = Q(), {
|
|
3624
3594
|
dialogRef: f,
|
|
3625
3595
|
open: _
|
|
3626
3596
|
} = ve(), {
|
|
@@ -3696,22 +3666,22 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3696
3666
|
size: "small",
|
|
3697
3667
|
link: !0,
|
|
3698
3668
|
disabled: c.value,
|
|
3699
|
-
loading:
|
|
3669
|
+
loading: S.value == A.id && c.value,
|
|
3700
3670
|
onClick: () => k(A)
|
|
3701
3671
|
}, null)]
|
|
3702
3672
|
})
|
|
3703
|
-
}],
|
|
3704
|
-
|
|
3673
|
+
}], S = G(0), k = (A) => {
|
|
3674
|
+
S.value = A.id, pe.check({
|
|
3705
3675
|
id: A.id
|
|
3706
3676
|
}).then((V) => {
|
|
3707
3677
|
V.data && (al(V), w());
|
|
3708
3678
|
}).finally(() => {
|
|
3709
|
-
|
|
3679
|
+
S.value = 0;
|
|
3710
3680
|
});
|
|
3711
3681
|
};
|
|
3712
3682
|
return (A, V) => {
|
|
3713
3683
|
const L = r("el-space"), y = r("el-page-header"), C = r("el-card");
|
|
3714
|
-
return
|
|
3684
|
+
return M(), T(C, {
|
|
3715
3685
|
"body-style": {
|
|
3716
3686
|
padding: "12px",
|
|
3717
3687
|
height: "450px"
|
|
@@ -3772,14 +3742,14 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3772
3742
|
});
|
|
3773
3743
|
};
|
|
3774
3744
|
}
|
|
3775
|
-
}), Fl = /* @__PURE__ */
|
|
3745
|
+
}), Fl = /* @__PURE__ */ Ee(El, [["__scopeId", "data-v-34e18506"]]), zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3776
3746
|
__proto__: null,
|
|
3777
3747
|
default: Fl
|
|
3778
3748
|
}, Symbol.toStringTag, { value: "Module" })), Il = {
|
|
3779
3749
|
request: "request",
|
|
3780
3750
|
error: "error",
|
|
3781
3751
|
sql: "SQL"
|
|
3782
|
-
}, ce =
|
|
3752
|
+
}, ce = W.routineApi("log", "id", Il), Jl = /* @__PURE__ */ O({
|
|
3783
3753
|
__name: "index",
|
|
3784
3754
|
setup(x) {
|
|
3785
3755
|
const U = {
|
|
@@ -3807,10 +3777,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3807
3777
|
keyword: b,
|
|
3808
3778
|
search: c,
|
|
3809
3779
|
reset: p
|
|
3810
|
-
} =
|
|
3780
|
+
} = Q(U);
|
|
3811
3781
|
return (i, n) => {
|
|
3812
3782
|
const w = r("el-date-picker"), u = r("el-space"), m = r("el-page-header"), f = r("el-card");
|
|
3813
|
-
return
|
|
3783
|
+
return M(), T(f, {
|
|
3814
3784
|
class: "basic-card flex-full",
|
|
3815
3785
|
"body-class": "flex-1"
|
|
3816
3786
|
}, {
|
|
@@ -3885,10 +3855,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3885
3855
|
keyword: b,
|
|
3886
3856
|
search: c,
|
|
3887
3857
|
reset: p
|
|
3888
|
-
} =
|
|
3858
|
+
} = Q(U);
|
|
3889
3859
|
return (i, n) => {
|
|
3890
3860
|
const w = r("el-date-picker"), u = r("el-space"), m = r("el-page-header"), f = r("el-card");
|
|
3891
|
-
return
|
|
3861
|
+
return M(), T(f, {
|
|
3892
3862
|
class: "basic-card flex-full",
|
|
3893
3863
|
"body-class": "flex-1"
|
|
3894
3864
|
}, {
|
|
@@ -3963,10 +3933,10 @@ const Hl = /* @__PURE__ */ O({
|
|
|
3963
3933
|
keyword: b,
|
|
3964
3934
|
search: c,
|
|
3965
3935
|
reset: p
|
|
3966
|
-
} =
|
|
3936
|
+
} = Q(U);
|
|
3967
3937
|
return (i, n) => {
|
|
3968
3938
|
const w = r("el-date-picker"), u = r("el-space"), m = r("el-page-header"), f = r("el-card");
|
|
3969
|
-
return
|
|
3939
|
+
return M(), T(f, {
|
|
3970
3940
|
class: "basic-card flex-full",
|
|
3971
3941
|
"body-class": "flex-1"
|
|
3972
3942
|
}, {
|
|
@@ -4040,14 +4010,14 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4040
4010
|
}) {
|
|
4041
4011
|
const v = U, h = x, {
|
|
4042
4012
|
requesting: g
|
|
4043
|
-
} = F(
|
|
4013
|
+
} = F(H), {
|
|
4044
4014
|
value: b,
|
|
4045
4015
|
options: c,
|
|
4046
4016
|
change: p
|
|
4047
4017
|
} = te(ne(h, "modelValue"), v, {
|
|
4048
4018
|
key: "LANGUAGE_SELECT",
|
|
4049
|
-
url:
|
|
4050
|
-
api:
|
|
4019
|
+
url: H.urls.languages,
|
|
4020
|
+
api: H,
|
|
4051
4021
|
isArray: !0
|
|
4052
4022
|
}, {
|
|
4053
4023
|
formatOptions: (i) => i.map((n) => ({
|
|
@@ -4057,13 +4027,13 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4057
4027
|
});
|
|
4058
4028
|
return (i, n) => {
|
|
4059
4029
|
const w = r("el-radio-button"), u = r("el-radio-group");
|
|
4060
|
-
return
|
|
4030
|
+
return M(), T(u, {
|
|
4061
4031
|
modelValue: e(b),
|
|
4062
4032
|
"onUpdate:modelValue": n[0] || (n[0] = (m) => E(b) ? b.value = m : null),
|
|
4063
4033
|
disabled: e(g),
|
|
4064
4034
|
onChange: e(p)
|
|
4065
4035
|
}, {
|
|
4066
|
-
default: o(() => [(
|
|
4036
|
+
default: o(() => [(M(!0), N(j, null, le(e(c), (m) => (M(), T(w, {
|
|
4067
4037
|
key: m.value,
|
|
4068
4038
|
value: m.value
|
|
4069
4039
|
}, {
|
|
@@ -4108,7 +4078,7 @@ const Hl = /* @__PURE__ */ O({
|
|
|
4108
4078
|
export {
|
|
4109
4079
|
Ql as AdminsPage,
|
|
4110
4080
|
Dl as DomainProviderSelect,
|
|
4111
|
-
|
|
4081
|
+
Ie as DomainSelect,
|
|
4112
4082
|
Xl as ErrorLogsPage,
|
|
4113
4083
|
ea as LanguageSelect,
|
|
4114
4084
|
Hl as LanguagesPage,
|