halo-pc 1.0.38 → 1.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-H_clf90b.js → Article-DZlstqWL.js} +32 -31
- package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-BkduiKh8.js} +4 -3
- package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-0Yf6lJQ7.js} +12 -11
- package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-DMKnFezN.js} +1 -1
- package/dist/Autocomplete-bc-9LfGa.js +50 -0
- package/dist/{CSharp-CZOchOE-.js → CSharp-q8eOBm4y.js} +1 -1
- package/dist/{Calender-BoQV7bhA.js → Calender-CseGNCuW.js} +4 -4
- package/dist/Callback-D_dFJlfv.js +21 -0
- package/dist/{Cascader-DMhl98vw.js → Cascader-BG5ev35M.js} +28 -27
- package/dist/Cascader-Dzeoz7ss.js +47 -0
- package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CsCA6iQb.js} +1 -1
- package/dist/{Checkbox-DtrXMDBR.js → Checkbox-dw8RNAGt.js} +14 -13
- package/dist/{Code-DDacfgvl.js → Code-BE8YLGaE.js} +1 -1
- package/dist/Code-BRe68AIa.js +42 -0
- package/dist/Code-C5QfTMNw.js +60 -0
- package/dist/Code-_XoN6vQE.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +63 -0
- package/dist/Column-C-NHhT2v.js +75 -0
- package/dist/{Comment-Ixu0gPk3.js → Comment-kTmfTlbF.js} +25 -19
- package/dist/{Compare-C1uq4lgK.js → Compare-DVWaiCUC.js} +10 -9
- package/dist/{Compare-NN40QJWm.js → Compare-DlyQBCat.js} +11 -10
- package/dist/{Copy-BcfSvyWG.js → Copy-DQFJy3uX.js} +12 -11
- package/dist/{Custom-Dn9_vPuD.js → Custom-D5HoD0nQ.js} +22 -21
- package/dist/{DataExport-DNGgWqsx.js → DataExport-Um1wXyRe.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js} +25 -24
- package/dist/{DataImport-CI9eM5T1.js → DataImport-CPMLup4P.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js} +40 -39
- package/dist/{Date-CZGbZKjB.js → Date-BhZ8ltgp.js} +9 -8
- package/dist/{Date-CGyzi8yX.js → Date-Cj9lCW_Y.js} +1 -1
- package/dist/{DateRange-MbbkmZ_Y.js → DateRange-Bw_Oyawz.js} +10 -9
- package/dist/{DateTime-DqUOXGWH.js → DateTime-BU6JaBPk.js} +9 -8
- package/dist/{DateTime-DHrHmRLL.js → DateTime-Cv-SRE88.js} +1 -1
- package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-B4Ah6LQY.js} +12 -11
- package/dist/{Daterange-DLHJuRur.js → Daterange-CSZe4XGO.js} +9 -8
- package/dist/{Decimal-BUJuuvfr.js → Decimal-DSDuwW9Z.js} +1 -1
- package/dist/{Delete-BGMk0orl.js → Delete-CjPgg-5G.js} +20 -19
- package/dist/{Detail-D4KzWdHQ.js → Detail-gj--ICe8.js} +8 -7
- package/dist/{Dictionary-Esd3ERAq.js → Dictionary-Ck_02mWa.js} +15 -9
- package/dist/{Email-C9K09hwC.js → Email-BSQbDvh1.js} +12 -11
- package/dist/{File-ai1eYO7v.js → File-FW4usX43.js} +44 -43
- package/dist/{Image-CfY4G1Yn.js → Image-DiAw_6jM.js} +1 -1
- package/dist/Index-B_5hshjJ.js +4 -0
- package/dist/{Index-DYHrSEZ5.js → Index-BibWDRoP.js} +1 -1
- package/dist/Index-BtlD6ocN.js +4 -0
- package/dist/Index-C3f38zw0.js +4 -0
- package/dist/Index-CB_TnEaw.js +4 -0
- package/dist/{Index-B5o7uf36.js → Index-Dq5Vp-ts.js} +16 -15
- package/dist/{Index-S1btGSGD.js → Index-MUgqP8jJ.js} +1 -1
- package/dist/Index-hgTZyQps.js +174 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js → Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js} +20 -14
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js} +7 -6
- package/dist/{Install-D-MgafyF.js → Install-Cpp3BDCS.js} +14 -13
- package/dist/{Int-CnvfCxgn.js → Int-Ck1SvK7R.js} +10 -9
- package/dist/{Int-D3RqVcmN.js → Int-DcQsipaO.js} +14 -13
- package/dist/{List-DA4SO_le.js → List-hWB41wF_.js} +19 -18
- package/dist/Maintaince-l-Tdveur.js +20 -0
- package/dist/{Markdown-hax8By5O.js → Markdown-BEUz4VZ7.js} +1 -1
- package/dist/{Month-BDkwv-vc.js → Month-DJGGGrZr.js} +12 -11
- package/dist/Month-DkafiRHq.js +38 -0
- package/dist/{Month-CnVTSnyK.js → Month-DmUiyF1G.js} +1 -1
- package/dist/{Normal-DoE9t7d7.js → Normal-ACcTHsXb.js} +53 -52
- package/dist/Paging-Vfz2RDBo.js +93 -0
- package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-DDkmqv98.js} +36 -35
- package/dist/{PagingRow-CSB-kwMz.js → PagingRow-B4Nfa2Vk.js} +20 -19
- package/dist/{Racebar-Bc-dDRss.js → Racebar-LfnPLNOY.js} +31 -25
- package/dist/{Radio-CMGOtMnx.js → Radio-DcEZI4m7.js} +1 -1
- package/dist/{Register-8wi0uixs.js → Register-B4x_zgyH.js} +61 -60
- package/dist/RichText-B1Iogpgr.js +47 -0
- package/dist/{SearchFooter-DOC21dmS.js → SearchFooter-CmM8qnxP.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js → SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js} +3 -3
- package/dist/{SearchForm-BMTSPce_.js → SearchForm-DU5QLTbe.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js} +32 -31
- package/dist/{Select-DAxdpZlO.js → Select-C3gUeHmu.js} +16 -15
- package/dist/{Select-MBD4Simw.js → Select-CMxubJIV.js} +1 -1
- package/dist/{Select-DnFyey0n.js → Select-DrDDVJtz.js} +22 -21
- package/dist/{Single-D6x6VV_B.js → Single-De-YyuVk.js} +75 -74
- package/dist/{Statistic-BS_DA72m.js → Statistic-SvjQ7uGI.js} +30 -29
- package/dist/{Stock-CtmevqBK.js → Stock-C2b9p3-N.js} +1 -1
- package/dist/{Stock-CbucObTu.js → Stock-XZkBSQw1.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js} +18 -17
- package/dist/{Switch-BlXAy9qH.js → Switch-PJT-5dDt.js} +1 -1
- package/dist/{Table-Da9gan1Y.js → Table-CkoZ8OjZ.js} +62 -61
- package/dist/{Table-CqsfAMh7.js → Table-Dy1H2IHN.js} +74 -73
- package/dist/Text-Bt5jL_KV.js +49 -0
- package/dist/{Text-CbZlEVTJ.js → Text-CytgR_l_.js} +12 -11
- package/dist/Text-vHouxGHU.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +59 -0
- package/dist/{TextLink-SAnZ7BfX.js → TextLink-DINdFWzs.js} +11 -10
- package/dist/{Textarea-DphCUpXp.js → Textarea-DakZXfN6.js} +1 -1
- package/dist/{Time-DjE8yYdK.js → Time-Bn1Av2wo.js} +11 -10
- package/dist/{Timeline-D11vjkpZ.js → Timeline-B32cUvwI.js} +19 -13
- package/dist/{Tree-kich05vY.js → Tree-BGfHm4k_.js} +80 -79
- package/dist/{Tree-DK73Ou_F.js → Tree-BItAXuSC.js} +41 -35
- package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-DmiM_a2n.js} +11 -10
- package/dist/{Update-D2Plm_AG.js → Update-DSTmaeT8.js} +15 -14
- package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-BgBJJwT3.js} +21 -20
- package/dist/{Upload-B87EDynn.js → Upload-DMqlcxCt.js} +47 -46
- package/dist/Upload-DpQu3z1T.js +71 -0
- package/dist/{Year-C93IJgc8.js → Year-Cv92J5pF.js} +9 -8
- package/dist/{Year-BPFmIiPX.js → Year-DckBNPK_.js} +1 -1
- package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C2HVw1Ra.js +2901 -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-KNkwb0pq.js +10515 -0
- package/dist/main.js +46 -45
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Autocomplete-BF9x0F4f.js +0 -49
- package/dist/Callback-79Bw4RwY.js +0 -20
- package/dist/Cascader-D1Ou5OSg.js +0 -41
- package/dist/Code-B8ISTTYK.js +0 -54
- package/dist/Code-BMlBvnqa.js +0 -4
- package/dist/Code-DIGn8Raz.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
- package/dist/Column-DjA11efs.js +0 -69
- package/dist/Index-CH3nwnPZ.js +0 -4
- package/dist/Index-CTjDkp7e.js +0 -4
- package/dist/Index-DSZ8wa7U.js +0 -4
- package/dist/Index-DVdiF3gr.js +0 -4
- package/dist/Index-DsZPtDYE.js +0 -173
- package/dist/Maintaince-BIgEbjrq.js +0 -14
- package/dist/Month-5lTUiWin.js +0 -37
- package/dist/Paging-5qsCTRWy.js +0 -92
- package/dist/RichText-BR4Kvx0J.js +0 -41
- package/dist/Text-C72NLZMt.js +0 -48
- package/dist/Text-CHvsKR9H.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +0 -53
- package/dist/Upload-CHPjMGFZ.js +0 -65
- package/dist/main-nvsTmKXH.js +0 -16321
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent as f, toRefs as
|
2
|
-
import {
|
3
|
-
|
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 { l as K } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const E = /* @__PURE__ */ f({
|
4
5
|
__name: "Email",
|
5
6
|
props: {
|
6
7
|
schema: {},
|
@@ -11,12 +12,12 @@ const D = /* @__PURE__ */ f({
|
|
11
12
|
modelValue: {}
|
12
13
|
},
|
13
14
|
emits: ["submit", "change", "update:modelValue"],
|
14
|
-
setup(i, { emit:
|
15
|
-
let o =
|
15
|
+
setup(i, { emit: d }) {
|
16
|
+
let o = d, p = i, { table: r, field: t, set: B, modelValue: u } = _(p), s = () => {
|
16
17
|
o("submit");
|
17
|
-
}, l =
|
18
|
+
}, l = V({
|
18
19
|
get() {
|
19
|
-
return
|
20
|
+
return u.value;
|
20
21
|
},
|
21
22
|
set(a) {
|
22
23
|
o("update:modelValue", a), o("change", a);
|
@@ -24,11 +25,11 @@ const D = /* @__PURE__ */ f({
|
|
24
25
|
});
|
25
26
|
return (a, n) => {
|
26
27
|
const c = b("el-input");
|
27
|
-
return h(),
|
28
|
+
return h(), y(c, {
|
28
29
|
type: "email",
|
29
30
|
disabled: e(t).control.readonly,
|
30
|
-
placeholder: e(K)(e(
|
31
|
-
onKeyup:
|
31
|
+
placeholder: e(K)(e(r).name, e(t).name),
|
32
|
+
onKeyup: x(e(s), ["enter", "native"]),
|
32
33
|
modelValue: e(l),
|
33
34
|
"onUpdate:modelValue": n[0] || (n[0] = (m) => g(l) ? l.value = m : l = m)
|
34
35
|
}, k({ _: 2 }, [
|
@@ -44,5 +45,5 @@ const D = /* @__PURE__ */ f({
|
|
44
45
|
}
|
45
46
|
});
|
46
47
|
export {
|
47
|
-
|
48
|
+
E as default
|
48
49
|
};
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import { defineComponent as P, toRefs as T, ref as
|
2
|
-
import { useRoute as
|
3
|
-
import {
|
1
|
+
import { defineComponent as P, toRefs as T, ref as A, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as n, normalizeClass as x, Fragment as L, renderList as q, createBlock as y, toDisplayString as d, createTextVNode as w, createCommentVNode as F } from "vue";
|
2
|
+
import { useRoute as G, useRouter as H } from "vue-router";
|
3
|
+
import { F as I, c as J, C as m, t as K, h as M, e as O } from "./main-KNkwb0pq.js";
|
4
|
+
import "./assets/moment-h96o7c8I.js";
|
4
5
|
import "element-plus";
|
5
6
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
import { _ as
|
7
|
-
const
|
7
|
+
import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js";
|
8
|
+
const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
8
9
|
key: 0,
|
9
10
|
class: "files-image"
|
10
|
-
},
|
11
|
+
}, Y = { class: "file-image" }, Z = ["src"], ee = { class: "file-title" }, te = { class: "file-name" }, ae = ["src", "alt"], oe = { class: "file-title" }, le = {
|
11
12
|
key: 2,
|
12
13
|
class: "not-support"
|
13
|
-
},
|
14
|
+
}, de = /* @__PURE__ */ P({
|
14
15
|
__name: "File",
|
15
16
|
props: {
|
16
17
|
searchData: {},
|
@@ -21,58 +22,58 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = {
|
|
21
22
|
next: {},
|
22
23
|
set: {}
|
23
24
|
},
|
24
|
-
setup(
|
25
|
-
let
|
25
|
+
setup(S) {
|
26
|
+
let z = S, { schema: N, table: s, layout: i, next: _, set: b, searchData: ne } = T(z), f = G(), v = H(), k = A(), C = (o) => {
|
26
27
|
let t = { type: "fileLayout", value: o };
|
27
|
-
|
28
|
+
M.post("/config/save", t).then((h) => {
|
28
29
|
m.fileLayout = o;
|
29
30
|
});
|
30
31
|
}, V = (o) => {
|
31
32
|
let t = { ...f.query };
|
32
|
-
t.page = o, v.push({ path:
|
33
|
+
t.page = o, v.push({ path: _.value.paging.route, query: t });
|
33
34
|
}, B = () => {
|
34
35
|
let o = { ...f.query };
|
35
|
-
o.page = "1", o.condition =
|
36
|
-
let t = { path:
|
36
|
+
o.page = "1", o.condition = O.encode(k.value);
|
37
|
+
let t = { path: _.value.paging.route, query: o };
|
37
38
|
v.push(t);
|
38
39
|
};
|
39
40
|
return (o, t) => {
|
40
41
|
const h = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
|
41
|
-
return l(), u("div",
|
42
|
-
g(e(
|
43
|
-
title: e(
|
42
|
+
return l(), u("div", U, [
|
43
|
+
g(e(I), {
|
44
|
+
title: e(J)(o.module.type, o.module.name)
|
44
45
|
}, {
|
45
46
|
operation: r(() => [
|
46
|
-
|
47
|
-
|
47
|
+
n("div", W, [
|
48
|
+
n("a", {
|
48
49
|
class: x({ active: e(m).fileLayout == "list" }),
|
49
50
|
onClick: t[0] || (t[0] = (a) => e(C)("list"))
|
50
51
|
}, t[2] || (t[2] = [
|
51
|
-
|
52
|
+
n("i", { class: "fa fa-list" }, null, -1)
|
52
53
|
]), 2),
|
53
|
-
|
54
|
+
n("a", {
|
54
55
|
class: x({ active: e(m).fileLayout == "image" }),
|
55
56
|
onClick: t[1] || (t[1] = (a) => e(C)("image"))
|
56
57
|
}, t[3] || (t[3] = [
|
57
|
-
|
58
|
+
n("i", { class: "fa fa-image" }, null, -1)
|
58
59
|
]), 2)
|
59
60
|
])
|
60
61
|
]),
|
61
62
|
append: r(() => [
|
62
|
-
e(m).fileLayout == "image" ? (l(), u("div",
|
63
|
-
(l(!0), u(L, null, q(e(b)[e(
|
63
|
+
e(m).fileLayout == "image" ? (l(), u("div", X, [
|
64
|
+
(l(!0), u(L, null, q(e(b)[e(s).name], (a, $) => (l(), y(h, {
|
64
65
|
class: "file",
|
65
|
-
to: { path: e(
|
66
|
+
to: { path: e(_).detail.route, query: { id: a[e(s).key.name], m: e(f).query.m } },
|
66
67
|
key: $
|
67
68
|
}, {
|
68
69
|
default: r(() => [
|
69
|
-
|
70
|
-
|
70
|
+
n("div", Y, [
|
71
|
+
n("img", {
|
71
72
|
src: a[e(i).url],
|
72
73
|
alt: ""
|
73
|
-
}, null, 8,
|
74
|
+
}, null, 8, Z)
|
74
75
|
]),
|
75
|
-
|
76
|
+
n("div", ee, d(a[e(i).name]), 1)
|
76
77
|
]),
|
77
78
|
_: 2
|
78
79
|
}, 1032, ["to"]))), 128))
|
@@ -80,46 +81,46 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = {
|
|
80
81
|
key: 1,
|
81
82
|
class: "files-list",
|
82
83
|
border: "",
|
83
|
-
data: e(b)[e(
|
84
|
+
data: e(b)[e(s).name]
|
84
85
|
}, {
|
85
86
|
empty: r(() => [
|
86
|
-
w(
|
87
|
+
w(d(e(K)("common.no_data")), 1)
|
87
88
|
]),
|
88
89
|
default: r(() => [
|
89
|
-
(l(!0), u(L, null, q(e(
|
90
|
+
(l(!0), u(L, null, q(e(s).show, (a, $) => (l(), y(D, {
|
90
91
|
"show-overflow-tooltip": "",
|
91
|
-
sortable: e(
|
92
|
+
sortable: e(s) ? "custom" : !1,
|
92
93
|
"min-width": "180",
|
93
94
|
"sort-orders": ["descending", "ascending"],
|
94
95
|
prop: a.name,
|
95
96
|
label: `${a.label}${a.prefix || a.suffix ? "(" + (a.prefix || a.suffix) + ")" : ""}`,
|
96
|
-
key: `${e(
|
97
|
+
key: `${e(s).name}.${a.name}`
|
97
98
|
}, {
|
98
99
|
default: r((c) => [
|
99
|
-
|
100
|
+
n("div", te, [
|
100
101
|
c.column.property == e(i).name ? (l(), u("img", {
|
101
102
|
key: 0,
|
102
103
|
class: "file-image",
|
103
104
|
src: c.row[e(i).url],
|
104
105
|
alt: c.row[e(i).name]
|
105
|
-
}, null, 8, ae)) :
|
106
|
-
|
106
|
+
}, null, 8, ae)) : F("", !0),
|
107
|
+
n("div", oe, d(c.row[c.column.property]), 1)
|
107
108
|
])
|
108
109
|
]),
|
109
110
|
_: 2
|
110
111
|
}, 1032, ["sortable", "prop", "label"]))), 128))
|
111
112
|
]),
|
112
113
|
_: 1
|
113
|
-
}, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" +
|
114
|
+
}, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + d(e(m).fileLayout), 1))
|
114
115
|
]),
|
115
116
|
default: r(() => [
|
116
|
-
e(
|
117
|
+
e(s).search.length > 0 ? (l(), y(Q, {
|
117
118
|
key: 0,
|
118
119
|
schema: e(N),
|
119
|
-
table: e(
|
120
|
+
table: e(s),
|
120
121
|
search: e(k),
|
121
122
|
onSubmit: e(B)
|
122
|
-
}, null, 8, ["schema", "table", "search", "onSubmit"])) :
|
123
|
+
}, null, 8, ["schema", "table", "search", "onSubmit"])) : F("", !0)
|
123
124
|
]),
|
124
125
|
_: 1
|
125
126
|
}, 8, ["title"]),
|
@@ -129,10 +130,10 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = {
|
|
129
130
|
}, {
|
130
131
|
default: r(() => [
|
131
132
|
g(h, {
|
132
|
-
to: { path: e(
|
133
|
+
to: { path: e(_).insert.route, query: { m: e(f).query.m } }
|
133
134
|
}, {
|
134
135
|
default: r(() => [
|
135
|
-
w("添加新" +
|
136
|
+
w("添加新" + d(e(s).title), 1)
|
136
137
|
]),
|
137
138
|
_: 1
|
138
139
|
}, 8, ["to"])
|
@@ -152,5 +153,5 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = {
|
|
152
153
|
}
|
153
154
|
});
|
154
155
|
export {
|
155
|
-
|
156
|
+
de as default
|
156
157
|
};
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as C, defineAsyncComponent as U, toRefs as D, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
|
2
|
+
import { U as N, t as x } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const E = /* @__PURE__ */ C({
|
4
5
|
__name: "Index",
|
5
6
|
props: {
|
6
7
|
schema: {},
|
@@ -11,11 +12,11 @@ const A = /* @__PURE__ */ C({
|
|
11
12
|
config: {}
|
12
13
|
},
|
13
14
|
emits: ["submit", "change"],
|
14
|
-
setup(g, { emit:
|
15
|
-
let V =
|
15
|
+
setup(g, { emit: B }) {
|
16
|
+
let V = U(() => import("./TextLink-DINdFWzs.js")), k = g, { schema: u, table: s, field: l, set: i, row: a, config: m } = D(k), d = p(() => {
|
16
17
|
let o = l.value.control.type;
|
17
18
|
return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
|
18
|
-
}), _ = p(() => `text-${
|
19
|
+
}), _ = p(() => `text-${N.string.getDashName(d.value)}`), t = p({
|
19
20
|
get() {
|
20
21
|
return a.value[l.value.name];
|
21
22
|
},
|
@@ -23,12 +24,12 @@ const A = /* @__PURE__ */ C({
|
|
23
24
|
a.value[l.value.name] = o;
|
24
25
|
}
|
25
26
|
});
|
26
|
-
return (o,
|
27
|
+
return (o, r) => e(l).link ? (c(), f(e(V), {
|
27
28
|
key: 0,
|
28
29
|
schema: e(u),
|
29
30
|
table: e(s),
|
30
31
|
field: e(l),
|
31
|
-
set: e(
|
32
|
+
set: e(i),
|
32
33
|
row: e(a)
|
33
34
|
}, {
|
34
35
|
default: v(() => [
|
@@ -36,13 +37,13 @@ const A = /* @__PURE__ */ C({
|
|
36
37
|
schema: e(u),
|
37
38
|
table: e(s),
|
38
39
|
field: e(l),
|
39
|
-
set: e(
|
40
|
+
set: e(i),
|
40
41
|
row: e(a),
|
41
42
|
modelValue: e(t),
|
42
|
-
"onUpdate:modelValue":
|
43
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => b(t) ? t.value = n : t = n)
|
43
44
|
}, {
|
44
45
|
default: v(() => [
|
45
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
46
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
|
46
47
|
]),
|
47
48
|
_: 1
|
48
49
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
|
@@ -53,18 +54,18 @@ const A = /* @__PURE__ */ C({
|
|
53
54
|
schema: e(u),
|
54
55
|
table: e(s),
|
55
56
|
field: e(l),
|
56
|
-
set: e(
|
57
|
+
set: e(i),
|
57
58
|
row: e(a),
|
58
59
|
modelValue: e(t),
|
59
|
-
"onUpdate:modelValue":
|
60
|
+
"onUpdate:modelValue": r[1] || (r[1] = (n) => b(t) ? t.value = n : t = n)
|
60
61
|
}, {
|
61
62
|
default: v(() => [
|
62
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
63
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
|
63
64
|
]),
|
64
65
|
_: 1
|
65
66
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
|
66
67
|
}
|
67
68
|
});
|
68
69
|
export {
|
69
|
-
|
70
|
+
E as default
|
70
71
|
};
|
@@ -0,0 +1,174 @@
|
|
1
|
+
import { defineComponent as j, ref as u, onMounted as D, computed as P, watch as Q, resolveComponent as p, openBlock as d, createElementBlock as C, createVNode as g, unref as l, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as R, isRef as L, withKeys as T, normalizeClass as Z, withModifiers as G, createTextVNode as $, Fragment as J, renderList as W, nextTick as A } from "vue";
|
2
|
+
import { useRoute as X } from "vue-router";
|
3
|
+
import { i as Y, z as w, O as ee, t as i, U as F, N as K, r as N, x as te } from "./main-KNkwb0pq.js";
|
4
|
+
import "./assets/moment-h96o7c8I.js";
|
5
|
+
const le = { class: "login-container" }, oe = { class: "title-container" }, se = { class: "title" }, re = { class: "btn-others" }, ne = ["href"], ae = ["innerHTML"], me = /* @__PURE__ */ j({
|
6
|
+
__name: "Index",
|
7
|
+
setup(ie) {
|
8
|
+
let a = u({ id: "", secret: "" }), f = u("password"), r = u(!1), y = u(!1), V = u(), h = u(), b = u(), x = X(), O = {
|
9
|
+
id: [{
|
10
|
+
required: !0,
|
11
|
+
trigger: "blur",
|
12
|
+
validator: (t, e, s) => {
|
13
|
+
e ? e.indexOf("@") > -1 ? F.string.isEmail(e) ? s() : s(new Error("邮箱格式不正确")) : s() : s(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
|
14
|
+
}
|
15
|
+
}]
|
16
|
+
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
17
|
+
}, M = (t) => {
|
18
|
+
t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? r.value = !0 : r.value = !1), t.key == "CapsLock" && r.value == !0 && (r.value = !1);
|
19
|
+
}, B = () => {
|
20
|
+
f.value == "password" ? f.value = "" : f.value = "password", A(() => {
|
21
|
+
b.value.focus();
|
22
|
+
});
|
23
|
+
}, E = async (t) => {
|
24
|
+
y.value = !0, V.value.validate(async (e) => {
|
25
|
+
if (!e)
|
26
|
+
return y.value = !1, !1;
|
27
|
+
(await K.sso.createAsync(t)).login(a.value).then(({ data: c }) => {
|
28
|
+
F.url.getBackUrl() ? N.toBackUrl() : N.to("/");
|
29
|
+
}).finally(() => {
|
30
|
+
A(() => {
|
31
|
+
y.value = !1;
|
32
|
+
});
|
33
|
+
});
|
34
|
+
});
|
35
|
+
}, q = async (t) => {
|
36
|
+
let e = await K.sso.createAsync(t), s = x.query.return_url, c = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${s}`;
|
37
|
+
return e.loginUrl(te.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(c));
|
38
|
+
}, z = (t) => Object.keys(t).reduce((e, s) => (e[s] = t[s], e), {});
|
39
|
+
D(async () => {
|
40
|
+
Y.setI18nTitle("common.login");
|
41
|
+
for (let t = 0; t < w.ssos.length; t++) {
|
42
|
+
let e = w.ssos[t];
|
43
|
+
e.loginUrl = await q(e.type);
|
44
|
+
}
|
45
|
+
_.value != null && (a.value.id == "" ? h.value.focus() : a.value.secret == "" && b.value.focus());
|
46
|
+
});
|
47
|
+
let _ = P(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
|
48
|
+
return Q(() => x, (t) => {
|
49
|
+
debugger;
|
50
|
+
const e = t.query;
|
51
|
+
e && z(e);
|
52
|
+
}), (t, e) => {
|
53
|
+
const s = p("el-input"), c = p("el-form-item"), U = p("el-tooltip"), I = p("el-button"), S = p("router-link"), H = p("el-form");
|
54
|
+
return d(), C("div", le, [
|
55
|
+
g(H, {
|
56
|
+
ref_key: "loginFormRef",
|
57
|
+
ref: V,
|
58
|
+
autocomplete: "on",
|
59
|
+
"label-position": "left",
|
60
|
+
model: l(a),
|
61
|
+
rules: l(O)
|
62
|
+
}, {
|
63
|
+
default: m(() => [
|
64
|
+
n("div", oe, [
|
65
|
+
n("h3", se, k(l(ee)("title")), 1)
|
66
|
+
]),
|
67
|
+
l(_) ? (d(), v(c, {
|
68
|
+
key: 0,
|
69
|
+
prop: "id"
|
70
|
+
}, {
|
71
|
+
default: m(() => [
|
72
|
+
e[7] || (e[7] = n("span", { class: "svg-container" }, [
|
73
|
+
n("i", { class: "fa fa-user" })
|
74
|
+
], -1)),
|
75
|
+
g(s, {
|
76
|
+
ref_key: "idRef",
|
77
|
+
ref: h,
|
78
|
+
placeholder: l(i)("common.username_or_email"),
|
79
|
+
name: "id",
|
80
|
+
type: "text",
|
81
|
+
tabindex: "1",
|
82
|
+
autocomplete: "on",
|
83
|
+
modelValue: l(a).id,
|
84
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => l(a).id = o)
|
85
|
+
}, null, 8, ["placeholder", "modelValue"])
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
})) : R("", !0),
|
89
|
+
l(_) ? (d(), v(U, {
|
90
|
+
key: 1,
|
91
|
+
content: "Caps lock is On",
|
92
|
+
placement: "right",
|
93
|
+
manual: "",
|
94
|
+
modelValue: l(r),
|
95
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => L(r) ? r.value = o : r = o)
|
96
|
+
}, {
|
97
|
+
default: m(() => [
|
98
|
+
g(c, { prop: "secret" }, {
|
99
|
+
default: m(() => [
|
100
|
+
e[8] || (e[8] = n("span", { class: "svg-container" }, [
|
101
|
+
n("i", { class: "fa fa-key" })
|
102
|
+
], -1)),
|
103
|
+
(d(), v(s, {
|
104
|
+
ref_key: "secretRef",
|
105
|
+
ref: b,
|
106
|
+
key: l(f),
|
107
|
+
type: l(f),
|
108
|
+
placeholder: l(i)("common.password"),
|
109
|
+
name: "secret",
|
110
|
+
tabindex: "2",
|
111
|
+
autocomplete: "on",
|
112
|
+
onKeyup: [
|
113
|
+
T(l(M), ["native"]),
|
114
|
+
e[2] || (e[2] = T((o) => l(E)("Bearer"), ["enter", "native"]))
|
115
|
+
],
|
116
|
+
onBlur: e[1] || (e[1] = (o) => L(r) ? r.value = !1 : r = !1),
|
117
|
+
modelValue: l(a).secret,
|
118
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => l(a).secret = o)
|
119
|
+
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
120
|
+
n("span", {
|
121
|
+
class: "btn-pwd",
|
122
|
+
onClick: e[4] || (e[4] = //@ts-ignore
|
123
|
+
(...o) => l(B) && l(B)(...o))
|
124
|
+
}, [
|
125
|
+
n("i", {
|
126
|
+
class: Z(l(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
127
|
+
}, null, 2)
|
128
|
+
])
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
})
|
132
|
+
]),
|
133
|
+
_: 1
|
134
|
+
}, 8, ["modelValue"])) : R("", !0),
|
135
|
+
l(_) ? (d(), v(I, {
|
136
|
+
key: 2,
|
137
|
+
type: "primary",
|
138
|
+
class: "btn-login",
|
139
|
+
loading: l(y),
|
140
|
+
onClick: e[6] || (e[6] = G((o) => l(E)("Bearer"), ["prevent"]))
|
141
|
+
}, {
|
142
|
+
default: m(() => [
|
143
|
+
$(k(l(i)("common.login")), 1)
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}, 8, ["loading"])) : R("", !0),
|
147
|
+
n("div", re, [
|
148
|
+
(d(!0), C(J, null, W(l(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), C("a", {
|
149
|
+
href: o.loginUrl
|
150
|
+
}, k(l(i)(o.text)), 9, ne))), 256)),
|
151
|
+
g(S, {
|
152
|
+
class: "btn-register",
|
153
|
+
to: "/register"
|
154
|
+
}, {
|
155
|
+
default: m(() => [
|
156
|
+
$(k(l(i)("common.register")), 1)
|
157
|
+
]),
|
158
|
+
_: 1
|
159
|
+
})
|
160
|
+
])
|
161
|
+
]),
|
162
|
+
_: 1
|
163
|
+
}, 8, ["model", "rules"]),
|
164
|
+
n("div", {
|
165
|
+
class: "powered-by",
|
166
|
+
innerHTML: l(i)("sys.powered_by")
|
167
|
+
}, null, 8, ae)
|
168
|
+
]);
|
169
|
+
};
|
170
|
+
}
|
171
|
+
});
|
172
|
+
export {
|
173
|
+
me as default
|
174
|
+
};
|
@@ -1,9 +1,15 @@
|
|
1
|
-
import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as
|
2
|
-
import {
|
1
|
+
import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as R, Fragment as B, createVNode as H, unref as e, createBlock as L, resolveDynamicComponent as w, withCtx as E, createElementVNode as P, toDisplayString as V } from "vue";
|
2
|
+
import { v as $, a as F } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/liquidjs-C2HVw1Ra.js";
|
4
|
+
import "./assets/underscore-B0BCaBxV.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
8
|
+
import "./assets/moment-h96o7c8I.js";
|
3
9
|
import "element-plus";
|
4
10
|
import "vue-router";
|
5
11
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const
|
12
|
+
const I = { class: "not-support" }, Y = /* @__PURE__ */ k({
|
7
13
|
__name: "Index",
|
8
14
|
props: {
|
9
15
|
searchData: {},
|
@@ -16,7 +22,7 @@ const F = { class: "not-support" }, O = /* @__PURE__ */ k({
|
|
16
22
|
},
|
17
23
|
emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
|
18
24
|
setup(c, { expose: i, emit: u }) {
|
19
|
-
let o = u, g = c, { module:
|
25
|
+
let o = u, g = c, { module: m, schema: p, table: r, layout: l, next: h, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
|
20
26
|
o("navigate", a, t);
|
21
27
|
}, C = (a, t) => {
|
22
28
|
o("sort", a, t);
|
@@ -38,21 +44,21 @@ const F = { class: "not-support" }, O = /* @__PURE__ */ k({
|
|
38
44
|
return !1;
|
39
45
|
n.value.resize(a);
|
40
46
|
}, keyboardHandler: (a, t) => {
|
41
|
-
|
42
|
-
} }), (a, t) => (s(), B
|
43
|
-
|
47
|
+
F.triggerKeyboardHandler(n.value, a, t);
|
48
|
+
} }), (a, t) => (s(), R(B, null, [
|
49
|
+
H(e($), {
|
44
50
|
layout: e(l),
|
45
51
|
table: e(r),
|
46
52
|
onLayoutChange: e(S)
|
47
53
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
48
|
-
(s(),
|
54
|
+
(s(), L(w(`paging-${e(l).type.toLowerCase()}`), {
|
49
55
|
ref_key: "pagingRef",
|
50
56
|
ref: n,
|
51
|
-
module: e(
|
52
|
-
schema: e(
|
57
|
+
module: e(m),
|
58
|
+
schema: e(p),
|
53
59
|
table: e(r),
|
54
60
|
layout: e(l),
|
55
|
-
next: e(
|
61
|
+
next: e(h),
|
56
62
|
set: e(d),
|
57
63
|
"search-data": e(y),
|
58
64
|
onNavigate: e(f),
|
@@ -63,8 +69,8 @@ const F = { class: "not-support" }, O = /* @__PURE__ */ k({
|
|
63
69
|
onSucceed: e(x),
|
64
70
|
onClose: e(z)
|
65
71
|
}, {
|
66
|
-
default:
|
67
|
-
|
72
|
+
default: E(() => [
|
73
|
+
P("div", I, "未支持的分页布局方式:" + V(e(l).type), 1)
|
68
74
|
]),
|
69
75
|
_: 1
|
70
76
|
}, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
|
@@ -72,5 +78,5 @@ const F = { class: "not-support" }, O = /* @__PURE__ */ k({
|
|
72
78
|
}
|
73
79
|
});
|
74
80
|
export {
|
75
|
-
|
81
|
+
Y as _
|
76
82
|
};
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
-
import {
|
2
|
+
import { v as F, t as I } from "./main-KNkwb0pq.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
3
4
|
import "element-plus";
|
4
5
|
import "vue-router";
|
5
6
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const M = { class: "not-support" },
|
7
|
+
const M = { class: "not-support" }, K = /* @__PURE__ */ x({
|
7
8
|
__name: "Index",
|
8
9
|
props: {
|
9
10
|
route: {},
|
@@ -17,7 +18,7 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
|
|
17
18
|
},
|
18
19
|
emits: ["layout-change", "row-edit", "change", "submit"],
|
19
20
|
setup(s, { expose: i, emit: m }) {
|
20
|
-
let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set:
|
21
|
+
let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set: h } = E(d), l = R(), f = (t) => {
|
21
22
|
o("layout-change", t);
|
22
23
|
}, g = (t, n, w) => {
|
23
24
|
o("row-edit", t, n, w);
|
@@ -36,7 +37,7 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
|
|
36
37
|
L(e(F), {
|
37
38
|
layout: e(a),
|
38
39
|
table: e(r),
|
39
|
-
onLayoutChange: e(
|
40
|
+
onLayoutChange: e(f)
|
40
41
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
41
42
|
(u(), S(D(`update-${e(a).type.toLowerCase()}`), {
|
42
43
|
ref_key: "layoutRef",
|
@@ -46,7 +47,7 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
|
|
46
47
|
table: e(r),
|
47
48
|
layout: e(a),
|
48
49
|
next: e(y),
|
49
|
-
set: e(
|
50
|
+
set: e(h),
|
50
51
|
route: t.route,
|
51
52
|
"validate-errors": t.validateErrors,
|
52
53
|
onRowEdit: e(g),
|
@@ -62,5 +63,5 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
|
|
62
63
|
}
|
63
64
|
});
|
64
65
|
export {
|
65
|
-
|
66
|
+
K as _
|
66
67
|
};
|