halo-pc 1.0.27 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
- package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
- package/dist/Autocomplete-CD6CsF2X.js +54 -0
- package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
- package/dist/Autocomplete-DkkUx0lx.js +53 -0
- package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
- package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
- package/dist/Callback-BRrShVCU.js +26 -0
- package/dist/Cascader-CurlPJsQ.js +87 -0
- package/dist/Cascader-i3KkCfFF.js +47 -0
- package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
- package/dist/Checkbox-CNMzO79X.js +76 -0
- package/dist/Code-BdDjNSqs.js +42 -0
- package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
- package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
- package/dist/Code-CqA6bVSZ.js +60 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
- package/dist/Column-BCz-Xp-3.js +75 -0
- package/dist/Comment-BoOQfrxv.js +104 -0
- package/dist/Compare-ChJu8LUo.js +44 -0
- package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
- package/dist/Copy-DBUSr3OW.js +49 -0
- package/dist/Custom-CNQIPMHT.js +57 -0
- package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
- package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
- package/dist/Date-BnRTPDSJ.js +43 -0
- package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
- package/dist/DateRange-BPQ2TOXk.js +63 -0
- package/dist/DateTime-CsZdXjmB.js +44 -0
- package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
- package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
- package/dist/Daterange-DCyMLI8G.js +63 -0
- package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
- package/dist/Delete-Di56R5Tf.js +62 -0
- package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
- package/dist/Dictionary-B8OMis9G.js +59 -0
- package/dist/Email-CCZH8SDT.js +54 -0
- package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
- package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
- package/dist/Index-B6sevgc6.js +4 -0
- package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
- package/dist/Index-CZYVZtFI.js +178 -0
- package/dist/Index-Cch9emdC.js +4 -0
- package/dist/Index-CfpZf8By.js +4 -0
- package/dist/Index-Cn3HXkPm.js +4 -0
- package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
- package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
- package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
- package/dist/Int-C5AxmjK0.js +46 -0
- package/dist/Int-RoCJiPje.js +44 -0
- package/dist/List-DJuE2QHL.js +79 -0
- package/dist/Maintaince-CdqWSHAZ.js +20 -0
- package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
- package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
- package/dist/Month-OH6snasK.js +43 -0
- package/dist/Month-iU9F-vQ5.js +44 -0
- package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
- package/dist/Paging-CYU3sSbD.js +99 -0
- package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
- package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
- package/dist/QueryApi-C3h4tWd0.js +20 -0
- package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
- package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
- package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
- package/dist/RichText-BkhW8muI.js +47 -0
- package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-BDe_uXW2.js} +1 -1
- package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
- package/dist/Select-BEgPZsaR.js +117 -0
- package/dist/Select-CY1CA4pv.js +86 -0
- package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
- package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
- package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
- package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
- package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
- package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
- package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
- package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
- package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
- package/dist/Text-BefOYKkr.js +4 -0
- package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
- package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
- package/dist/TextLink-DoArgh5L.js +65 -0
- package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
- package/dist/Time-D8Ikb-KB.js +43 -0
- package/dist/Timeline-BEt6ygzA.js +59 -0
- package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
- package/dist/Tree-ftxBqmRQ.js +122 -0
- package/dist/TreeNode-XITOvihe.js +42 -0
- package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
- package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
- package/dist/Upload-BlnOvJFg.js +150 -0
- package/dist/Upload-kUYBfIS2.js +72 -0
- package/dist/UploadApi-RRAsIVG7.js +20 -0
- package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
- package/dist/Year-Cre43mQI.js +47 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-KTzfgTac.js +9105 -0
- package/dist/main.js +139 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Autocomplete-C9RS9-qw.js +0 -48
- package/dist/Autocomplete-DIucpEpj.js +0 -49
- package/dist/Callback-D6G_933H.js +0 -20
- package/dist/Cascader-C6t8Q18c.js +0 -41
- package/dist/Cascader-F_XWwXKY.js +0 -81
- package/dist/Checkbox-ipHs0O-8.js +0 -70
- package/dist/Code-DKtqow6y.js +0 -36
- package/dist/Code-LeguA9RL.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
- package/dist/Column-BeQwafyN.js +0 -70
- package/dist/Comment-DIcCHP9F.js +0 -98
- package/dist/Compare-Dzqm7kPE.js +0 -38
- package/dist/Copy-iLieXx22.js +0 -43
- package/dist/Custom-BGtEDHlD.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
- package/dist/Date-CNOCOcNz.js +0 -37
- package/dist/DateRange-CaIiObxN.js +0 -57
- package/dist/DateTime-CH6J1GoP.js +0 -38
- package/dist/Daterange-BUSKAGlK.js +0 -57
- package/dist/Delete-BeFC0gjD.js +0 -57
- package/dist/Dictionary-CsBiv-CI.js +0 -55
- package/dist/Email-Dwa6x3jW.js +0 -48
- package/dist/Index-Bpe7pY2Z.js +0 -4
- package/dist/Index-CUYQxzNd.js +0 -174
- package/dist/Index-DMnL8F7Y.js +0 -4
- package/dist/Index-DNG25ox2.js +0 -4
- package/dist/Index-DqUNI6MV.js +0 -4
- package/dist/Int-BFv18KXi.js +0 -38
- package/dist/Int-C0ijmdYS.js +0 -41
- package/dist/List-CfQzWq_5.js +0 -74
- package/dist/Maintaince-BzDEwQcU.js +0 -14
- package/dist/Month-Bp_Pfi_b.js +0 -37
- package/dist/Month-CKkjwzza.js +0 -38
- package/dist/Paging-DpoBp7x_.js +0 -95
- package/dist/QueryApi-VwISnk96.js +0 -13
- package/dist/RichText-CNahMrfb.js +0 -41
- package/dist/Select-BeNZqAP1.js +0 -112
- package/dist/Select-CqOE6uI8.js +0 -80
- package/dist/Text-5803XWI6.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
- package/dist/TextLink-TYXcDAlo.js +0 -59
- package/dist/Time-Dd-Trib4.js +0 -37
- package/dist/Timeline-D6LCIkQp.js +0 -53
- package/dist/Tree-BKmFZrK3.js +0 -118
- package/dist/TreeNode-L_A5ZKy0.js +0 -37
- package/dist/Upload-DJRh4a7g.js +0 -68
- package/dist/Upload-Ozg_nOpI.js +0 -147
- package/dist/UploadApi-DVx69g-F.js +0 -13
- package/dist/Year-D7XGe2So.js +0 -41
- package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
- package/dist/main-DB_sVyZe.js +0 -3620
@@ -0,0 +1,62 @@
|
|
1
|
+
import { defineComponent as x, toRefs as g, ref as y, resolveComponent as B, openBlock as D, createElementBlock as N, createElementVNode as i, toDisplayString as o, unref as e, createVNode as a, withCtx as m, createTextVNode as d } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { t as l, h as V, m as w, r as E } from "./main-KTzfgTac.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const S = { class: "delete" }, q = { class: "delete-title" }, R = { class: "delete-buttons" }, J = /* @__PURE__ */ x({
|
10
|
+
__name: "Delete",
|
11
|
+
props: {
|
12
|
+
base: {},
|
13
|
+
route: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
16
|
+
},
|
17
|
+
emits: ["navigate", "succeed", "close"],
|
18
|
+
setup(u, { emit: p }) {
|
19
|
+
let n = p, _ = u, { base: f, route: v } = g(_), s = y(), h = (t) => {
|
20
|
+
s.value = t.next;
|
21
|
+
};
|
22
|
+
(() => {
|
23
|
+
h(f.value.data);
|
24
|
+
})();
|
25
|
+
let k = () => {
|
26
|
+
let t = [v.value.query.id];
|
27
|
+
V.post(s.value.delete.route, t).then((c) => {
|
28
|
+
w.success(c.message), C();
|
29
|
+
});
|
30
|
+
}, C = () => {
|
31
|
+
E.toBackUrl(), n("succeed", "delete");
|
32
|
+
}, b = () => {
|
33
|
+
n("close");
|
34
|
+
};
|
35
|
+
return (t, c) => {
|
36
|
+
const r = B("el-button");
|
37
|
+
return D(), N("div", S, [
|
38
|
+
i("div", q, o(e(l)("common.confirm_delete")), 1),
|
39
|
+
i("div", R, [
|
40
|
+
a(r, {
|
41
|
+
type: "danger",
|
42
|
+
onClick: e(k)
|
43
|
+
}, {
|
44
|
+
default: m(() => [
|
45
|
+
d(o(e(l)("common.confirm")), 1)
|
46
|
+
]),
|
47
|
+
_: 1
|
48
|
+
}, 8, ["onClick"]),
|
49
|
+
a(r, { onClick: e(b) }, {
|
50
|
+
default: m(() => [
|
51
|
+
d(o(e(l)("common.cancel")), 1)
|
52
|
+
]),
|
53
|
+
_: 1
|
54
|
+
}, 8, ["onClick"])
|
55
|
+
])
|
56
|
+
]);
|
57
|
+
};
|
58
|
+
}
|
59
|
+
});
|
60
|
+
export {
|
61
|
+
J as default
|
62
|
+
};
|
@@ -1,10 +1,15 @@
|
|
1
|
-
import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as l, createTextVNode as c, toDisplayString as a, createElementVNode as r } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { N, t as m } from "./main-KTzfgTac.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "element-plus";
|
5
10
|
import "vue-router";
|
6
11
|
import "./assets/intro.js-DxWjEdp_.js";
|
7
|
-
const V = /* @__PURE__ */
|
12
|
+
const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__PURE__ */ r("i", { class: "fa fa-copy" }, null, -1), B = /* @__PURE__ */ r("i", { class: "fa fa-chevron-left" }, null, -1), I = /* @__PURE__ */ C({
|
8
13
|
__name: "Detail",
|
9
14
|
props: {
|
10
15
|
route: {},
|
@@ -13,19 +18,19 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
13
18
|
set: {}
|
14
19
|
},
|
15
20
|
emits: ["copy", "edit", "close"],
|
16
|
-
setup(
|
17
|
-
let
|
18
|
-
|
21
|
+
setup(_, { emit: f }) {
|
22
|
+
let i = f, u = _, { route: D, table: p, set: s, next: w } = h(u), d = (o) => {
|
23
|
+
i("copy", s.value[p.value.name][0], o);
|
19
24
|
}, y = (o) => {
|
20
|
-
|
25
|
+
i("edit", s.value[p.value.name][0], o);
|
21
26
|
}, k = () => {
|
22
|
-
|
27
|
+
i("close");
|
23
28
|
};
|
24
|
-
return (o,
|
29
|
+
return (o, E) => {
|
25
30
|
const n = v("el-button");
|
26
31
|
return x(), b(e(N), { padding: 5 }, {
|
27
32
|
default: t(() => [
|
28
|
-
|
33
|
+
l(n, {
|
29
34
|
type: "primary",
|
30
35
|
onClick: e(y)
|
31
36
|
}, {
|
@@ -33,11 +38,11 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
33
38
|
V
|
34
39
|
]),
|
35
40
|
default: t(() => [
|
36
|
-
|
41
|
+
c(" " + a(e(m)("common.modify")), 1)
|
37
42
|
]),
|
38
43
|
_: 1
|
39
44
|
}, 8, ["onClick"]),
|
40
|
-
|
45
|
+
l(n, {
|
41
46
|
type: "primary",
|
42
47
|
plain: "",
|
43
48
|
onClick: e(d)
|
@@ -46,16 +51,16 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
46
51
|
g
|
47
52
|
]),
|
48
53
|
default: t(() => [
|
49
|
-
|
54
|
+
c(" " + a(e(m)("common.copy")), 1)
|
50
55
|
]),
|
51
56
|
_: 1
|
52
57
|
}, 8, ["onClick"]),
|
53
|
-
|
58
|
+
l(n, { onClick: e(k) }, {
|
54
59
|
icon: t(() => [
|
55
60
|
B
|
56
61
|
]),
|
57
62
|
default: t(() => [
|
58
|
-
|
63
|
+
c(" " + a(e(m)("common.back")), 1)
|
59
64
|
]),
|
60
65
|
_: 1
|
61
66
|
}, 8, ["onClick"])
|
@@ -66,5 +71,5 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
|
|
66
71
|
}
|
67
72
|
});
|
68
73
|
export {
|
69
|
-
|
74
|
+
I as default
|
70
75
|
};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { defineComponent as g, toRefs as x, computed as o, resolveComponent as h, openBlock as r, createElementBlock as a, Fragment as V, renderList as S, unref as b, createBlock as k, normalizeStyle as B, withCtx as C, createTextVNode as N, toDisplayString as u, createCommentVNode as w } from "vue";
|
2
|
+
import { w as s, S as H, A } from "./main-KTzfgTac.js";
|
3
|
+
import "./assets/clone-BZn0cTAu.js";
|
4
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
5
|
+
import "./assets/moment-h96o7c8I.js";
|
6
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
7
|
+
const D = { class: "text-dictionary" }, E = {
|
8
|
+
key: 0,
|
9
|
+
class: "suffix"
|
10
|
+
}, J = /* @__PURE__ */ g({
|
11
|
+
__name: "Dictionary",
|
12
|
+
props: {
|
13
|
+
schema: {},
|
14
|
+
table: {},
|
15
|
+
field: {},
|
16
|
+
set: {},
|
17
|
+
row: {},
|
18
|
+
modelValue: { type: [String, Number, Boolean] }
|
19
|
+
},
|
20
|
+
emits: ["submit", "change", "update:modelValue"],
|
21
|
+
setup(i, { emit: m }) {
|
22
|
+
let n = m, p = i, { table: T, field: c, set: z, modelValue: d } = x(p), t = o({
|
23
|
+
get() {
|
24
|
+
return d.value;
|
25
|
+
},
|
26
|
+
set(e) {
|
27
|
+
n("update:modelValue", e), n("change", e);
|
28
|
+
}
|
29
|
+
}), f = o(() => {
|
30
|
+
if (t.value == null)
|
31
|
+
return [];
|
32
|
+
if (s.isNumber(t.value))
|
33
|
+
return [t.value];
|
34
|
+
if (s.isBoolean(t.value))
|
35
|
+
return [t.value];
|
36
|
+
let e = t.value.toString();
|
37
|
+
return H.isEmpty(e) ? [] : e.split(",");
|
38
|
+
}), _ = o(() => A.fromValues(f.value, c.value.control.data.data, "value", "text"));
|
39
|
+
return (e, F) => {
|
40
|
+
const v = h("el-tag");
|
41
|
+
return r(), a("div", D, [
|
42
|
+
(r(!0), a(V, null, S(b(_), (l, y) => (r(), k(v, {
|
43
|
+
type: "info",
|
44
|
+
style: B({ color: l.color }),
|
45
|
+
key: y
|
46
|
+
}, {
|
47
|
+
default: C(() => [
|
48
|
+
N(u(l.text) + " ", 1),
|
49
|
+
l.suffix ? (r(), a("span", E, "(" + u(l.suffix) + ")", 1)) : w("", !0)
|
50
|
+
]),
|
51
|
+
_: 2
|
52
|
+
}, 1032, ["style"]))), 128))
|
53
|
+
]);
|
54
|
+
};
|
55
|
+
}
|
56
|
+
});
|
57
|
+
export {
|
58
|
+
J as default
|
59
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { defineComponent as f, toRefs as _, computed as V, resolveComponent as b, openBlock as h, createBlock as y, unref as e, withKeys as x, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { j as K } from "./main-KTzfgTac.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const q = /* @__PURE__ */ f({
|
10
|
+
__name: "Email",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
emits: ["submit", "change", "update:modelValue"],
|
20
|
+
setup(p, { emit: n }) {
|
21
|
+
let l = n, r = p, { table: d, field: t, set: B, modelValue: u } = _(r), s = () => {
|
22
|
+
l("submit");
|
23
|
+
}, o = V({
|
24
|
+
get() {
|
25
|
+
return u.value;
|
26
|
+
},
|
27
|
+
set(a) {
|
28
|
+
l("update:modelValue", a), l("change", a);
|
29
|
+
}
|
30
|
+
});
|
31
|
+
return (a, m) => {
|
32
|
+
const c = b("el-input");
|
33
|
+
return h(), y(c, {
|
34
|
+
type: "email",
|
35
|
+
disabled: e(t).control.readonly,
|
36
|
+
placeholder: e(K)(e(d).name, e(t).name),
|
37
|
+
onKeyup: x(e(s), ["enter", "native"]),
|
38
|
+
modelValue: e(o),
|
39
|
+
"onUpdate:modelValue": m[0] || (m[0] = (i) => g(o) ? o.value = i : o = i)
|
40
|
+
}, k({ _: 2 }, [
|
41
|
+
e(t).suffix ? {
|
42
|
+
name: "append",
|
43
|
+
fn: v(() => [
|
44
|
+
w(C(e(t).suffix), 1)
|
45
|
+
]),
|
46
|
+
key: "0"
|
47
|
+
} : void 0
|
48
|
+
]), 1032, ["disabled", "placeholder", "onKeyup", "modelValue"]);
|
49
|
+
};
|
50
|
+
}
|
51
|
+
});
|
52
|
+
export {
|
53
|
+
q as default
|
54
|
+
};
|
@@ -1,12 +1,17 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { defineComponent as K, toRefs as P, ref as T, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as h, unref as e, withCtx as r, createElementVNode as s, normalizeClass as x, Fragment as L, renderList as q, createBlock as g, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
|
2
|
+
import { useRoute as A, useRouter as G } from "vue-router";
|
3
|
+
import "./assets/underscore-B0BCaBxV.js";
|
4
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
5
|
+
import "./assets/clone-BZn0cTAu.js";
|
6
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import { K as H, b as I, D as c, t as J, h as M, c as O } from "./main-KTzfgTac.js";
|
9
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
5
10
|
import "element-plus";
|
6
11
|
import "./assets/intro.js-DxWjEdp_.js";
|
7
|
-
import { _ as
|
8
|
-
const
|
9
|
-
|
12
|
+
import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js";
|
13
|
+
const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), Y = [
|
14
|
+
X
|
10
15
|
], Z = /* @__PURE__ */ s("i", { class: "fa fa-image" }, null, -1), ee = [
|
11
16
|
Z
|
12
17
|
], te = {
|
@@ -15,7 +20,7 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
|
|
15
20
|
}, oe = { class: "file-image" }, ae = ["src"], le = { class: "file-title" }, se = { class: "file-name" }, ne = ["src", "alt"], re = { class: "file-title" }, ie = {
|
16
21
|
key: 2,
|
17
22
|
class: "not-support"
|
18
|
-
},
|
23
|
+
}, Ce = /* @__PURE__ */ K({
|
19
24
|
__name: "File",
|
20
25
|
props: {
|
21
26
|
searchData: {},
|
@@ -27,32 +32,32 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
|
|
27
32
|
set: {}
|
28
33
|
},
|
29
34
|
setup(z) {
|
30
|
-
let
|
35
|
+
let D = z, { schema: F, table: n, layout: i, next: d, set: b, searchData: ue } = P(D), f = A(), v = G(), k = T(), C = (o) => {
|
31
36
|
let a = { type: "fileLayout", value: o };
|
32
|
-
|
37
|
+
M.post("/user/config", a).then((y) => {
|
33
38
|
c.fileLayout = o;
|
34
39
|
});
|
35
|
-
},
|
40
|
+
}, N = (o) => {
|
36
41
|
let a = { ...f.query };
|
37
42
|
a.page = o, v.push({ path: d.value.paging.route, query: a });
|
38
|
-
},
|
43
|
+
}, V = () => {
|
39
44
|
let o = { ...f.query };
|
40
|
-
o.page = "1", o.condition =
|
45
|
+
o.page = "1", o.condition = O.encode(k.value);
|
41
46
|
let a = { path: d.value.paging.route, query: o };
|
42
47
|
v.push(a);
|
43
48
|
};
|
44
49
|
return (o, a) => {
|
45
|
-
const y = p("router-link"),
|
46
|
-
return l(), u("div",
|
47
|
-
h(e(
|
48
|
-
title: e(
|
50
|
+
const y = p("router-link"), B = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
|
51
|
+
return l(), u("div", U, [
|
52
|
+
h(e(H), {
|
53
|
+
title: e(I)(o.module.type, o.module.name)
|
49
54
|
}, {
|
50
55
|
operation: r(() => [
|
51
|
-
s("div",
|
56
|
+
s("div", W, [
|
52
57
|
s("a", {
|
53
58
|
class: x({ active: e(c).fileLayout == "list" }),
|
54
59
|
onClick: a[0] || (a[0] = (t) => e(C)("list"))
|
55
|
-
},
|
60
|
+
}, Y, 2),
|
56
61
|
s("a", {
|
57
62
|
class: x({ active: e(c).fileLayout == "image" }),
|
58
63
|
onClick: a[1] || (a[1] = (t) => e(C)("image"))
|
@@ -84,10 +89,10 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
|
|
84
89
|
data: e(b)[e(n).name]
|
85
90
|
}, {
|
86
91
|
empty: r(() => [
|
87
|
-
w(_(e(
|
92
|
+
w(_(e(J)("common.no_data")), 1)
|
88
93
|
]),
|
89
94
|
default: r(() => [
|
90
|
-
(l(!0), u(L, null, q(e(n).show, (t, $) => (l(), g(
|
95
|
+
(l(!0), u(L, null, q(e(n).show, (t, $) => (l(), g(B, {
|
91
96
|
"show-overflow-tooltip": "",
|
92
97
|
sortable: e(n) ? "custom" : !1,
|
93
98
|
"min-width": "180",
|
@@ -114,12 +119,12 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
|
|
114
119
|
}, 8, ["data"])) : (l(), u("div", ie, "未支持的文件布局:" + _(e(c).fileLayout), 1))
|
115
120
|
]),
|
116
121
|
default: r(() => [
|
117
|
-
e(n).search.length > 0 ? (l(), g(
|
122
|
+
e(n).search.length > 0 ? (l(), g(Q, {
|
118
123
|
key: 0,
|
119
|
-
schema: e(
|
124
|
+
schema: e(F),
|
120
125
|
table: e(n),
|
121
126
|
search: e(k),
|
122
|
-
onSubmit: e(
|
127
|
+
onSubmit: e(V)
|
123
128
|
}, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
|
124
129
|
]),
|
125
130
|
_: 1
|
@@ -140,18 +145,18 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
|
|
140
145
|
]),
|
141
146
|
_: 1
|
142
147
|
}),
|
143
|
-
h(
|
148
|
+
h(j, {
|
144
149
|
background: "",
|
145
150
|
layout: "total, prev, pager, next, jumper",
|
146
151
|
"current-page": e(i).page,
|
147
152
|
"page-size": e(i).pageSize,
|
148
153
|
total: e(i).count,
|
149
|
-
onCurrentChange: e(
|
154
|
+
onCurrentChange: e(N)
|
150
155
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
|
151
156
|
]);
|
152
157
|
};
|
153
158
|
}
|
154
159
|
});
|
155
160
|
export {
|
156
|
-
|
161
|
+
Ce as default
|
157
162
|
};
|
@@ -0,0 +1,178 @@
|
|
1
|
+
import { defineComponent as z, ref as u, onMounted as j, computed as D, watch as P, resolveComponent as c, openBlock as d, createElementBlock as U, createVNode as g, unref as o, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as C, isRef as L, withKeys as T, normalizeClass as Q, withModifiers as W, createTextVNode as $, Fragment as Y, renderList as Z, nextTick as F } from "vue";
|
2
|
+
import { useRoute as G } from "vue-router";
|
3
|
+
import "./assets/underscore-B0BCaBxV.js";
|
4
|
+
import { i as J, B as w, Y as X, t as i, S as ee, W as K, U as te, r as S, y as oe } from "./main-KTzfgTac.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const le = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
10
|
+
/* @__PURE__ */ n("i", { class: "fa fa-user" })
|
11
|
+
], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
12
|
+
/* @__PURE__ */ n("i", { class: "fa fa-key" })
|
13
|
+
], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], we = /* @__PURE__ */ z({
|
14
|
+
__name: "Index",
|
15
|
+
setup(pe) {
|
16
|
+
let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), R = u(), V = u(), h = u(), B = G(), H = {
|
17
|
+
id: [{
|
18
|
+
required: !0,
|
19
|
+
trigger: "blur",
|
20
|
+
validator: (t, e, r) => {
|
21
|
+
e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
|
22
|
+
}
|
23
|
+
}]
|
24
|
+
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
25
|
+
}, M = (t) => {
|
26
|
+
t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
|
27
|
+
}, x = () => {
|
28
|
+
p.value == "password" ? p.value = "" : p.value = "password", F(() => {
|
29
|
+
h.value.focus();
|
30
|
+
});
|
31
|
+
}, E = async (t) => {
|
32
|
+
_.value = !0, R.value.validate(async (e) => {
|
33
|
+
if (!e)
|
34
|
+
return _.value = !1, !1;
|
35
|
+
(await K.sso.create(t)).login(a.value).then(({ data: f }) => {
|
36
|
+
te.getBackUrl() ? S.toBackUrl() : S.to("/");
|
37
|
+
}).finally(() => {
|
38
|
+
F(() => {
|
39
|
+
_.value = !1;
|
40
|
+
});
|
41
|
+
});
|
42
|
+
});
|
43
|
+
}, N = async (t) => {
|
44
|
+
let e = await K.sso.create(t), r = B.query.return_url, f = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
|
45
|
+
return e.loginUrl(oe.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(f));
|
46
|
+
}, O = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
|
47
|
+
j(async () => {
|
48
|
+
J.setI18nTitle("common.login");
|
49
|
+
for (let t = 0; t < w.ssos.length; t++) {
|
50
|
+
let e = w.ssos[t];
|
51
|
+
e.loginUrl = await N(e.type);
|
52
|
+
}
|
53
|
+
y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
|
54
|
+
});
|
55
|
+
let y = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
|
56
|
+
return P(() => B, (t) => {
|
57
|
+
debugger;
|
58
|
+
const e = t.query;
|
59
|
+
e && O(e);
|
60
|
+
}), (t, e) => {
|
61
|
+
const r = c("el-input"), f = c("el-form-item"), b = c("el-tooltip"), q = c("el-button"), A = c("router-link"), I = c("el-form");
|
62
|
+
return d(), U("div", le, [
|
63
|
+
g(I, {
|
64
|
+
ref_key: "loginFormRef",
|
65
|
+
ref: R,
|
66
|
+
autocomplete: "on",
|
67
|
+
"label-position": "left",
|
68
|
+
model: o(a),
|
69
|
+
rules: o(H)
|
70
|
+
}, {
|
71
|
+
default: m(() => [
|
72
|
+
n("div", re, [
|
73
|
+
n("h3", se, k(o(X)("title")), 1)
|
74
|
+
]),
|
75
|
+
o(y) ? (d(), v(f, {
|
76
|
+
key: 0,
|
77
|
+
prop: "id"
|
78
|
+
}, {
|
79
|
+
default: m(() => [
|
80
|
+
ne,
|
81
|
+
g(r, {
|
82
|
+
ref_key: "idRef",
|
83
|
+
ref: V,
|
84
|
+
placeholder: o(i)("common.username_or_email"),
|
85
|
+
name: "id",
|
86
|
+
type: "text",
|
87
|
+
tabindex: "1",
|
88
|
+
autocomplete: "on",
|
89
|
+
modelValue: o(a).id,
|
90
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o(a).id = l)
|
91
|
+
}, null, 8, ["placeholder", "modelValue"])
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
})) : C("", !0),
|
95
|
+
o(y) ? (d(), v(b, {
|
96
|
+
key: 1,
|
97
|
+
content: "Caps lock is On",
|
98
|
+
placement: "right",
|
99
|
+
manual: "",
|
100
|
+
modelValue: o(s),
|
101
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => L(s) ? s.value = l : s = l)
|
102
|
+
}, {
|
103
|
+
default: m(() => [
|
104
|
+
g(f, { prop: "secret" }, {
|
105
|
+
default: m(() => [
|
106
|
+
ae,
|
107
|
+
(d(), v(r, {
|
108
|
+
ref_key: "secretRef",
|
109
|
+
ref: h,
|
110
|
+
key: o(p),
|
111
|
+
type: o(p),
|
112
|
+
placeholder: o(i)("common.password"),
|
113
|
+
name: "secret",
|
114
|
+
tabindex: "2",
|
115
|
+
autocomplete: "on",
|
116
|
+
onKeyup: [
|
117
|
+
T(o(M), ["native"]),
|
118
|
+
e[2] || (e[2] = T((l) => o(E)("Bearer"), ["enter", "native"]))
|
119
|
+
],
|
120
|
+
onBlur: e[1] || (e[1] = (l) => L(s) ? s.value = !1 : s = !1),
|
121
|
+
modelValue: o(a).secret,
|
122
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => o(a).secret = l)
|
123
|
+
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
124
|
+
n("span", {
|
125
|
+
class: "btn-pwd",
|
126
|
+
onClick: e[4] || (e[4] = //@ts-ignore
|
127
|
+
(...l) => o(x) && o(x)(...l))
|
128
|
+
}, [
|
129
|
+
n("i", {
|
130
|
+
class: Q(o(p) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
131
|
+
}, null, 2)
|
132
|
+
])
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
})
|
136
|
+
]),
|
137
|
+
_: 1
|
138
|
+
}, 8, ["modelValue"])) : C("", !0),
|
139
|
+
o(y) ? (d(), v(q, {
|
140
|
+
key: 2,
|
141
|
+
type: "primary",
|
142
|
+
class: "btn-login",
|
143
|
+
loading: o(_),
|
144
|
+
onClick: e[6] || (e[6] = W((l) => o(E)("Bearer"), ["prevent"]))
|
145
|
+
}, {
|
146
|
+
default: m(() => [
|
147
|
+
$(k(o(i)("common.login")), 1)
|
148
|
+
]),
|
149
|
+
_: 1
|
150
|
+
}, 8, ["loading"])) : C("", !0),
|
151
|
+
n("div", ie, [
|
152
|
+
(d(!0), U(Y, null, Z(o(w).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), U("a", {
|
153
|
+
href: l.loginUrl
|
154
|
+
}, k(o(i)(l.text)), 9, ue))), 256)),
|
155
|
+
g(A, {
|
156
|
+
class: "btn-register",
|
157
|
+
to: "/register"
|
158
|
+
}, {
|
159
|
+
default: m(() => [
|
160
|
+
$(k(o(i)("common.register")), 1)
|
161
|
+
]),
|
162
|
+
_: 1
|
163
|
+
})
|
164
|
+
])
|
165
|
+
]),
|
166
|
+
_: 1
|
167
|
+
}, 8, ["model", "rules"]),
|
168
|
+
n("div", {
|
169
|
+
class: "powered-by",
|
170
|
+
innerHTML: o(i)("sys.powered_by")
|
171
|
+
}, null, 8, de)
|
172
|
+
]);
|
173
|
+
};
|
174
|
+
}
|
175
|
+
});
|
176
|
+
export {
|
177
|
+
we as default
|
178
|
+
};
|