halo-pc 1.0.13 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-BdLz8uVu.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-oAwc2PqM.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-AhGw1lSI.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-1ATMHoXy.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/{Index-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
- package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
- package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
- package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
- package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-CzUa7wZ2.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-BOHAM_TM.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +47 -49
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +2 -2
- package/dist/Article-X51Oz1hI.js +0 -198
- package/dist/Autocomplete-Ci1CXGQE.js +0 -55
- package/dist/Autocomplete-Co_6LMOR.js +0 -54
- package/dist/Callback-DwiifiR-.js +0 -27
- package/dist/Cascader-BrjhyzSI.js +0 -88
- package/dist/Cascader-DuG1TFF-.js +0 -48
- package/dist/Checkbox-DAsy2Gtb.js +0 -77
- package/dist/Code-CNioVNv0.js +0 -4
- package/dist/Code-CQQJJ5Jx.js +0 -61
- package/dist/Code-DAMTIprA.js +0 -43
- package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
- package/dist/Column-DMN_0BnR.js +0 -75
- package/dist/Comment-D4gvdlOG.js +0 -105
- package/dist/Compare-B9ms7AkH.js +0 -63
- package/dist/Compare-OHWeHehJ.js +0 -33
- package/dist/Copy-B6pQ--3T.js +0 -50
- package/dist/Custom-Dt_-KfRY.js +0 -58
- package/dist/Date-DAud0Tf9.js +0 -44
- package/dist/DateRange-ClHpJNRt.js +0 -64
- package/dist/DateTime-BO1c3xG2.js +0 -45
- package/dist/Daterange-BlMa4jnq.js +0 -64
- package/dist/Delete-BVH0G9h3.js +0 -63
- package/dist/Dictionary-DwcOV9xl.js +0 -60
- package/dist/Email-BljE8jDr.js +0 -55
- package/dist/Image-Bv2Ducoj.js +0 -9
- package/dist/Index-BFuHqDAs.js +0 -4
- package/dist/Index-D-TyDnGW.js +0 -4
- package/dist/Index-D2H5yTHn.js +0 -4
- package/dist/Index-YG1SBeIv.js +0 -76
- package/dist/Int-g8pM8ZyY.js +0 -47
- package/dist/List-ow09enu_.js +0 -80
- package/dist/Maintaince-Ctz2-ztL.js +0 -21
- package/dist/Month-CPMc1YrA.js +0 -45
- package/dist/Month-bDRWnCLy.js +0 -44
- package/dist/Paging-668tf97P.js +0 -100
- package/dist/QueryApi-UJNYVuJd.js +0 -21
- package/dist/RichText-BDRC1veI.js +0 -48
- package/dist/Select-RlOWoUwz.js +0 -118
- package/dist/Text-McD2Rcic.js +0 -59
- package/dist/Text-Stj6-whX.js +0 -4
- package/dist/Text-V0WQUxoe.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
- package/dist/TextLink-DmRFUHgF.js +0 -66
- package/dist/Time-CgOW3aic.js +0 -44
- package/dist/Timeline-BV-wfL2F.js +0 -60
- package/dist/Tree-r6FMB9WN.js +0 -123
- package/dist/TreeNode-Y4ktCxAQ.js +0 -43
- package/dist/Upload-BGYLdPIM.js +0 -151
- package/dist/Upload-Df16iaP1.js +0 -73
- package/dist/UploadApi-CnAUAXVp.js +0 -21
- package/dist/Year-OqMhzqjx.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-RpQODrQa.js +0 -8936
@@ -1,67 +1,61 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as I, ref as i, onMounted as Q, watch as X, resolveComponent as m, openBlock as c, createElementBlock as Z, createVNode as d, unref as l, withCtx as f, createElementVNode as r, toDisplayString as F, isRef as h, createBlock as g, withKeys as T, normalizeClass as j, withModifiers as J, createTextVNode as W, nextTick as U } from "vue";
|
2
2
|
import { useRoute as Y } from "vue-router";
|
3
|
-
import "./
|
4
|
-
import { i as ee, V as le, W as te, t as oe, S as k, h as K, r as se, X as S } from "./main-RpQODrQa.js";
|
5
|
-
import "./assets/clone-BZn0cTAu.js";
|
6
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
7
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
8
|
-
import "./assets/moment-h96o7c8I.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
3
|
+
import { G as ee, P as le, S as se, U as te, X as k, L as B, r as oe, T as K } from "./main-65efBfek.js";
|
10
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
11
5
|
const ae = { class: "login-container" }, re = { class: "title-container" }, ne = { class: "title" }, ie = /* @__PURE__ */ r("span", { class: "svg-container" }, [
|
12
6
|
/* @__PURE__ */ r("i", { class: "fa fa-user" })
|
13
7
|
], -1), ue = /* @__PURE__ */ r("span", { class: "svg-container" }, [
|
14
8
|
/* @__PURE__ */ r("i", { class: "fa fa-key" })
|
15
|
-
], -1),
|
9
|
+
], -1), de = /* @__PURE__ */ r("span", { class: "svg-container" }, [
|
16
10
|
/* @__PURE__ */ r("i", { class: "fa fa-key" })
|
17
|
-
], -1),
|
11
|
+
], -1), fe = ["innerHTML"], ge = /* @__PURE__ */ I({
|
18
12
|
__name: "Register",
|
19
|
-
setup(
|
20
|
-
let V = i(!1), n = i({ email: "", password: "", confirmPassword: "", position: 0 }), u = i("password"), a = i(!1), y = i(!1), w = i({ jigsaw: null, content: null }), b = i(), R = i(), _ = i(), C = i(),
|
21
|
-
k.isEmail(e) ?
|
22
|
-
},
|
23
|
-
k.isPassword(e) ?
|
24
|
-
},
|
25
|
-
k.isPassword(e) ? e !=
|
26
|
-
},
|
27
|
-
let { shiftKey: e, key:
|
28
|
-
|
13
|
+
setup(pe) {
|
14
|
+
let V = i(!1), n = i({ email: "", password: "", confirmPassword: "", position: 0 }), u = i("password"), a = i(!1), y = i(!1), w = i({ jigsaw: null, content: null }), b = i(), R = i(), _ = i(), C = i(), M = Y(), q = (t, e, s) => {
|
15
|
+
k.isEmail(e) ? s() : s(new Error("邮箱格式不正确"));
|
16
|
+
}, L = (t, e, s) => {
|
17
|
+
k.isPassword(e) ? s() : s(new Error("密码格式不正确"));
|
18
|
+
}, N = (t, e, s, p) => {
|
19
|
+
k.isPassword(e) ? e != p.password ? s(new Error("两次密码不一致")) : s() : s(new Error("密码格式不正确"));
|
20
|
+
}, P = (t) => {
|
21
|
+
let { shiftKey: e, key: s } = t;
|
22
|
+
s && s.length == 1 && (e && s >= "a" && s <= "z" || !e && s >= "A" && s <= "Z" ? a.value = !0 : a.value = !1), s == "CapsLock" && a.value == !0 && (a.value = !1);
|
29
23
|
}, v = () => {
|
30
|
-
u.value == "password" ? u.value = "" : u.value = "password",
|
24
|
+
u.value == "password" ? u.value = "" : u.value = "password", U(() => {
|
31
25
|
_.value.focus();
|
32
26
|
});
|
33
|
-
},
|
34
|
-
b.value.validate((
|
35
|
-
if (!
|
27
|
+
}, O = () => {
|
28
|
+
b.value.validate((t) => {
|
29
|
+
if (!t)
|
36
30
|
return !1;
|
37
31
|
V.value = !0;
|
38
32
|
});
|
39
|
-
},
|
33
|
+
}, x = () => {
|
40
34
|
E();
|
41
|
-
},
|
42
|
-
y.value = !0, n.value.position =
|
43
|
-
|
35
|
+
}, S = (t) => {
|
36
|
+
y.value = !0, n.value.position = t, B.post("/user/register", n.value).then(({ data: e }) => {
|
37
|
+
oe.toBackUrl();
|
44
38
|
}).catch((e) => {
|
45
|
-
throw
|
39
|
+
throw x(), C.value.error(), e;
|
46
40
|
}).finally(() => {
|
47
|
-
|
41
|
+
U(() => {
|
48
42
|
y.value = !1;
|
49
43
|
});
|
50
44
|
});
|
51
|
-
},
|
52
|
-
|
53
|
-
w.value.jigsaw =
|
45
|
+
}, $ = (t) => Object.keys(t).reduce((e, s) => (e[s] = t[s], e), {}), E = () => {
|
46
|
+
B.get("/user/captcha").then(({ data: t, message: e }) => {
|
47
|
+
w.value.jigsaw = K.base64(t.jigsaw), w.value.content = K.base64(t.content);
|
54
48
|
});
|
55
49
|
};
|
56
|
-
return
|
50
|
+
return Q(() => {
|
57
51
|
ee.setI18nTitle("common.register"), E(), n.value.email == "" ? R.value.focus() : n.value.password == "" && _.value.focus();
|
58
|
-
}), X(
|
59
|
-
const e =
|
60
|
-
e &&
|
61
|
-
}), (
|
62
|
-
const
|
52
|
+
}), X(M, function(t) {
|
53
|
+
const e = t.query;
|
54
|
+
e && $(e);
|
55
|
+
}), (t, e) => {
|
56
|
+
const s = m("el-input"), p = m("el-form-item"), z = m("el-tooltip"), D = m("el-button"), H = m("el-form");
|
63
57
|
return c(), Z("div", ae, [
|
64
|
-
|
58
|
+
d(H, {
|
65
59
|
ref_key: "formRef",
|
66
60
|
ref: b,
|
67
61
|
class: "login-form",
|
@@ -69,21 +63,21 @@ const ae = { class: "login-container" }, re = { class: "title-container" }, ne =
|
|
69
63
|
"label-position": "left",
|
70
64
|
model: l(n)
|
71
65
|
}, {
|
72
|
-
default:
|
66
|
+
default: f(() => [
|
73
67
|
r("div", re, [
|
74
68
|
r("h3", ne, F(l(le)("title")), 1)
|
75
69
|
]),
|
76
|
-
p
|
70
|
+
d(p, {
|
77
71
|
prop: "email",
|
78
72
|
rules: [{ required: !0, trigger: "blur", message: "邮箱不能为空" }, { trigger: "blur", validator: l(q) }]
|
79
73
|
}, {
|
80
|
-
default:
|
74
|
+
default: f(() => [
|
81
75
|
ie,
|
82
|
-
|
76
|
+
d(s, {
|
83
77
|
ref_key: "emailRef",
|
84
78
|
ref: R,
|
85
79
|
modelValue: l(n).email,
|
86
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
80
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => l(n).email = o),
|
87
81
|
placeholder: "邮箱",
|
88
82
|
name: "email",
|
89
83
|
type: "text",
|
@@ -93,21 +87,21 @@ const ae = { class: "login-container" }, re = { class: "title-container" }, ne =
|
|
93
87
|
]),
|
94
88
|
_: 1
|
95
89
|
}, 8, ["rules"]),
|
96
|
-
|
90
|
+
d(z, {
|
97
91
|
modelValue: l(a),
|
98
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
92
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => h(a) ? a.value = o : a = o),
|
99
93
|
content: "Caps lock is On",
|
100
94
|
placement: "right",
|
101
95
|
manual: ""
|
102
96
|
}, {
|
103
|
-
default:
|
104
|
-
p
|
97
|
+
default: f(() => [
|
98
|
+
d(p, {
|
105
99
|
prop: "password",
|
106
|
-
rules: [{ required: !0, trigger: "blur", message: "密码不能为空" }, { trigger: "blur", validator: l(
|
100
|
+
rules: [{ required: !0, trigger: "blur", message: "密码不能为空" }, { trigger: "blur", validator: l(L) }]
|
107
101
|
}, {
|
108
|
-
default:
|
102
|
+
default: f(() => [
|
109
103
|
ue,
|
110
|
-
(c(), g(
|
104
|
+
(c(), g(s, {
|
111
105
|
ref: "password",
|
112
106
|
key: l(u),
|
113
107
|
type: l(u),
|
@@ -115,18 +109,18 @@ const ae = { class: "login-container" }, re = { class: "title-container" }, ne =
|
|
115
109
|
name: "password",
|
116
110
|
tabindex: "2",
|
117
111
|
autocomplete: "on",
|
118
|
-
onKeyup:
|
119
|
-
onBlur: e[1] || (e[1] = (
|
112
|
+
onKeyup: T(l(P), ["native"]),
|
113
|
+
onBlur: e[1] || (e[1] = (o) => h(a) ? a.value = !1 : a = !1),
|
120
114
|
modelValue: l(n).password,
|
121
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
115
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => l(n).password = o)
|
122
116
|
}, null, 8, ["type", "onKeyup", "modelValue"])),
|
123
117
|
r("span", {
|
124
118
|
class: "show-pwd",
|
125
119
|
onClick: e[3] || (e[3] = //@ts-ignore
|
126
|
-
(...
|
120
|
+
(...o) => l(v) && l(v)(...o))
|
127
121
|
}, [
|
128
122
|
r("i", {
|
129
|
-
class:
|
123
|
+
class: j(l(u) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
130
124
|
}, null, 2)
|
131
125
|
])
|
132
126
|
]),
|
@@ -135,13 +129,13 @@ const ae = { class: "login-container" }, re = { class: "title-container" }, ne =
|
|
135
129
|
]),
|
136
130
|
_: 1
|
137
131
|
}, 8, ["modelValue"]),
|
138
|
-
p
|
132
|
+
d(p, {
|
139
133
|
prop: "confirmPassword",
|
140
|
-
rules: [{ required: !0, trigger: "blur", message: "确认密码不能为空" }, { trigger: "blur", validator: (
|
134
|
+
rules: [{ required: !0, trigger: "blur", message: "确认密码不能为空" }, { trigger: "blur", validator: (o, A, G) => l(N)(o, A, G, l(n)) }]
|
141
135
|
}, {
|
142
|
-
default:
|
143
|
-
|
144
|
-
(c(), g(
|
136
|
+
default: f(() => [
|
137
|
+
de,
|
138
|
+
(c(), g(s, {
|
145
139
|
ref_key: "passwordRef",
|
146
140
|
ref: _,
|
147
141
|
key: l(u),
|
@@ -150,39 +144,39 @@ const ae = { class: "login-container" }, re = { class: "title-container" }, ne =
|
|
150
144
|
name: "password",
|
151
145
|
tabindex: "2",
|
152
146
|
autocomplete: "on",
|
153
|
-
onKeyup:
|
154
|
-
onBlur: e[5] || (e[5] = (
|
147
|
+
onKeyup: T(l(P), ["native"]),
|
148
|
+
onBlur: e[5] || (e[5] = (o) => h(a) ? a.value = !1 : a = !1),
|
155
149
|
modelValue: l(n).confirmPassword,
|
156
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
150
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => l(n).confirmPassword = o)
|
157
151
|
}, null, 8, ["type", "onKeyup", "modelValue"])),
|
158
152
|
r("span", {
|
159
153
|
class: "show-pwd",
|
160
154
|
onClick: e[7] || (e[7] = //@ts-ignore
|
161
|
-
(...
|
155
|
+
(...o) => l(v) && l(v)(...o))
|
162
156
|
}, [
|
163
157
|
r("i", {
|
164
|
-
class:
|
158
|
+
class: j(l(u) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
165
159
|
}, null, 2)
|
166
160
|
])
|
167
161
|
]),
|
168
162
|
_: 1
|
169
163
|
}, 8, ["rules"]),
|
170
|
-
l(V) ? (c(), g(l(
|
164
|
+
l(V) ? (c(), g(l(se), {
|
171
165
|
key: 1,
|
172
166
|
ref_key: "captchaRef",
|
173
167
|
ref: C,
|
174
168
|
content: l(w).content,
|
175
169
|
jigsaw: l(w).jigsaw,
|
176
|
-
onRefresh: l(
|
177
|
-
onValidate: l(
|
178
|
-
}, null, 8, ["content", "jigsaw", "onRefresh", "onValidate"])) : (c(), g(
|
170
|
+
onRefresh: l(x),
|
171
|
+
onValidate: l(S)
|
172
|
+
}, null, 8, ["content", "jigsaw", "onRefresh", "onValidate"])) : (c(), g(D, {
|
179
173
|
key: 0,
|
180
174
|
type: "primary",
|
181
175
|
loading: l(y),
|
182
|
-
onClick:
|
176
|
+
onClick: J(l(O), ["prevent"])
|
183
177
|
}, {
|
184
|
-
default:
|
185
|
-
|
178
|
+
default: f(() => [
|
179
|
+
W("注册 ")
|
186
180
|
]),
|
187
181
|
_: 1
|
188
182
|
}, 8, ["loading", "onClick"]))
|
@@ -191,12 +185,12 @@ const ae = { class: "login-container" }, re = { class: "title-container" }, ne =
|
|
191
185
|
}, 8, ["model"]),
|
192
186
|
r("div", {
|
193
187
|
class: "powered-by",
|
194
|
-
innerHTML: l(
|
195
|
-
}, null, 8,
|
188
|
+
innerHTML: l(te)("sys.powered_by")
|
189
|
+
}, null, 8, fe)
|
196
190
|
]);
|
197
191
|
};
|
198
192
|
}
|
199
193
|
});
|
200
194
|
export {
|
201
|
-
|
195
|
+
ge as default
|
202
196
|
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent as V, mergeModels as x, toRefs as S, useModel as M, ref as p, onMounted as w, computed as m, watch as v, openBlock as R, createBlock as b, unref as r, normalizeStyle as k, isRef as B } from "vue";
|
2
|
+
import { g as C } from "./main-65efBfek.js";
|
3
|
+
const O = /* @__PURE__ */ V({
|
4
|
+
__name: "RichText",
|
5
|
+
props: /* @__PURE__ */ x({
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {}
|
11
|
+
}, {
|
12
|
+
modelValue: {},
|
13
|
+
modelModifiers: {}
|
14
|
+
}),
|
15
|
+
emits: ["update:modelValue"],
|
16
|
+
setup(n) {
|
17
|
+
let f = n, { field: e, table: h, set: _, row: s } = S(f), u = M(n, "modelValue"), t = p({ readonly: !1, scrollTop: 0 }), i = p(), y = (l) => {
|
18
|
+
a.value != null && (s.value[a.value.name] = l.scrollTop);
|
19
|
+
}, T = () => e.value.control.height ? `height: ${e.value.control.height}px` : "min-height: 300px;", g = () => {
|
20
|
+
t.value.readonly = e.value.control.readonly, t.value.scrollTop = d.value, i.value = T();
|
21
|
+
};
|
22
|
+
w(() => {
|
23
|
+
g();
|
24
|
+
});
|
25
|
+
let d = m(() => a.value ? s.value[a.value.name] : null), a = m(() => e.value.control.scrollTop ? h.value.fields.find((o) => o.name == e.value.control.scrollTop) : null);
|
26
|
+
return v(() => d.value, (l, o) => {
|
27
|
+
t.value.scrollTop = l;
|
28
|
+
}), v(() => e.value.control.readonly, (l, o) => {
|
29
|
+
t.value.readonly = l;
|
30
|
+
}), (l, o) => (R(), b(r(C), {
|
31
|
+
style: k(r(i)),
|
32
|
+
options: r(t),
|
33
|
+
onScroll: r(y),
|
34
|
+
modelValue: r(u),
|
35
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => B(u) ? u.value = c : u = c)
|
36
|
+
}, null, 8, ["style", "options", "onScroll", "modelValue"]));
|
37
|
+
}
|
38
|
+
});
|
39
|
+
export {
|
40
|
+
O as default
|
41
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as f, toRefs as g, computed as j, openBlock as c, createElementBlock as C, createBlock as O, resolveDynamicComponent as q, unref as e } from "vue";
|
2
|
-
import {
|
2
|
+
import { c as A } from "./main-65efBfek.js";
|
3
3
|
const E = { class: "search-footer" }, I = /* @__PURE__ */ f({
|
4
4
|
__name: "SearchFooter",
|
5
5
|
props: {
|
@@ -1,12 +1,6 @@
|
|
1
|
-
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as
|
2
|
-
import "./
|
3
|
-
|
4
|
-
import { O as ee, s as D, f as te, C as ae } from "./main-RpQODrQa.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
-
const de = /* @__PURE__ */ I({
|
1
|
+
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as j, watch as Q, resolveComponent as c, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as y, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
|
2
|
+
import { t as ee, s as D, q as te, p as ae } from "./main-65efBfek.js";
|
3
|
+
const oe = /* @__PURE__ */ I({
|
10
4
|
__name: "SearchForm",
|
11
5
|
props: {
|
12
6
|
schema: { type: Array, required: !0 },
|
@@ -16,52 +10,52 @@ const de = /* @__PURE__ */ I({
|
|
16
10
|
},
|
17
11
|
emits: ["change", "submit", "mounted"],
|
18
12
|
setup(M, { expose: N, emit: T }) {
|
19
|
-
let
|
20
|
-
|
13
|
+
let w = T, W = M, { schema: F, table: u, layout: C, searchData: f } = J(W), V = p(), k = p(), E = p(), d = p(), L = (e) => {
|
14
|
+
w("change", e);
|
21
15
|
}, S = (e = null) => {
|
22
|
-
|
16
|
+
w("submit");
|
23
17
|
}, U = (e, t) => {
|
24
18
|
let l = e == "*" ? null : e;
|
25
|
-
|
26
|
-
},
|
19
|
+
f.value[u.value.name][t.name] = l, S();
|
20
|
+
}, q = () => {
|
27
21
|
V.value && (k.value = V.value.$el.clientWidth);
|
28
22
|
}, $ = (e) => {
|
29
|
-
|
23
|
+
q();
|
30
24
|
}, R = () => {
|
31
|
-
let e =
|
25
|
+
let e = C.value.tabs;
|
32
26
|
if (e)
|
33
27
|
for (let t = 0; t < e.length; t++) {
|
34
28
|
let l = e[t];
|
35
29
|
d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
|
36
30
|
}
|
37
31
|
};
|
38
|
-
d.value = ee.clone(
|
39
|
-
|
40
|
-
|
32
|
+
d.value = ee.clone(f.value), R(), K(() => {
|
33
|
+
q(), P(() => {
|
34
|
+
w("mounted");
|
41
35
|
});
|
42
36
|
});
|
43
|
-
let z =
|
37
|
+
let z = j(() => {
|
44
38
|
if (!k.value)
|
45
39
|
return [];
|
46
|
-
let e = Math.ceil(k.value / 200), t = D.expandSearch(F.value), l =
|
47
|
-
return D.getLines(
|
48
|
-
}),
|
49
|
-
let e = [], t =
|
40
|
+
let e = Math.ceil(k.value / 200), t = D.expandSearch(F.value), l = C.value.tabs ?? [], m = t.filter((_) => l.indexOf(_.name) == -1);
|
41
|
+
return D.getLines(m, e, (_) => _, () => 1);
|
42
|
+
}), O = j(() => {
|
43
|
+
let e = [], t = C.value.tabs;
|
50
44
|
return t && t.forEach((l) => {
|
51
|
-
let
|
52
|
-
e.push(
|
45
|
+
let m = u.value.fields.find((h) => h.name == l);
|
46
|
+
e.push(m);
|
53
47
|
}), e;
|
54
48
|
});
|
55
|
-
return Q(() =>
|
49
|
+
return Q(() => f.value, (e, t) => {
|
56
50
|
R();
|
57
51
|
}), N({ resize: $ }), (e, t) => {
|
58
|
-
const l =
|
59
|
-
return r(), i(
|
52
|
+
const l = c("el-radio-button"), m = c("el-radio-group"), h = c("el-form-item"), _ = c("el-col"), A = c("el-row"), G = c("el-form"), H = c("el-scrollbar");
|
53
|
+
return r(), i(H, {
|
60
54
|
"max-height": "200px",
|
61
55
|
class: "search-form"
|
62
56
|
}, {
|
63
57
|
default: n(() => [
|
64
|
-
a(u).search.length > 0 ? (r(), i(
|
58
|
+
a(u).search.length > 0 ? (r(), i(G, {
|
65
59
|
key: 0,
|
66
60
|
ref_key: "searchFormRef",
|
67
61
|
ref: V,
|
@@ -71,13 +65,13 @@ const de = /* @__PURE__ */ I({
|
|
71
65
|
}, ["prevent"]))
|
72
66
|
}, {
|
73
67
|
default: n(() => [
|
74
|
-
(r(!0), v(g, null, x(a(
|
68
|
+
(r(!0), v(g, null, x(a(O), (s, b) => (r(), i(h, {
|
75
69
|
class: "search-tab",
|
76
70
|
label: s.label,
|
77
71
|
"label-width": 50
|
78
72
|
}, {
|
79
73
|
default: n(() => [
|
80
|
-
y(
|
74
|
+
y(m, {
|
81
75
|
ref_for: !0,
|
82
76
|
ref_key: "tabRefs",
|
83
77
|
ref: E,
|
@@ -108,22 +102,22 @@ const de = /* @__PURE__ */ I({
|
|
108
102
|
}, 1032, ["label"]))), 256)),
|
109
103
|
(r(!0), v(g, null, x(a(z), (s) => (r(), i(A, {
|
110
104
|
class: "search-row",
|
111
|
-
label: a(
|
105
|
+
label: a(O).length ? "其它" : "",
|
112
106
|
"label-width": 50,
|
113
107
|
gutter: 5
|
114
108
|
}, {
|
115
109
|
default: n(() => [
|
116
|
-
(r(!0), v(g, null, x(s, ({ data:
|
110
|
+
(r(!0), v(g, null, x(s, ({ data: b, span: o }, le) => (r(), i(_, { span: o }, {
|
117
111
|
default: n(() => [
|
118
|
-
y(
|
119
|
-
label: a(te)(
|
112
|
+
y(h, {
|
113
|
+
label: a(te)(b.table.name, b.name)
|
120
114
|
}, {
|
121
115
|
default: n(() => [
|
122
116
|
y(ae, {
|
123
117
|
schema: a(F),
|
124
|
-
table:
|
125
|
-
field:
|
126
|
-
"search-data": a(
|
118
|
+
table: b.table,
|
119
|
+
field: b,
|
120
|
+
"search-data": a(f),
|
127
121
|
onChange: a(L),
|
128
122
|
onSubmit: a(S)
|
129
123
|
}, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
|
@@ -146,5 +140,5 @@ const de = /* @__PURE__ */ I({
|
|
146
140
|
}
|
147
141
|
});
|
148
142
|
export {
|
149
|
-
|
143
|
+
oe as _
|
150
144
|
};
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import { defineComponent as T, toRefs as U, ref as d, computed as A, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as D, withModifiers as O, isRef as $, withCtx as V, createElementBlock as k, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
|
2
|
+
import { V as J, f as P, i as Q, L as W } from "./main-65efBfek.js";
|
3
|
+
const X = { class: "option-text" }, Y = {
|
4
|
+
key: 0,
|
5
|
+
class: "option-suffix"
|
6
|
+
}, le = /* @__PURE__ */ T({
|
7
|
+
__name: "Select",
|
8
|
+
props: {
|
9
|
+
schema: {},
|
10
|
+
table: {},
|
11
|
+
field: {},
|
12
|
+
set: {},
|
13
|
+
row: {},
|
14
|
+
modelValue: { type: [String, Number, Boolean, Array] }
|
15
|
+
},
|
16
|
+
emits: ["submit", "change", "update:modelValue"],
|
17
|
+
setup(C, { emit: E }) {
|
18
|
+
let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = U(B), x = d(), g = d(), v = d(!1), f = d(u.value.control.data.data), K = (t) => {
|
19
|
+
t == "" && (t = null);
|
20
|
+
let e;
|
21
|
+
if (P.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
|
22
|
+
let a = m.value.fields.find((l) => l.name == u.value.control.text), o;
|
23
|
+
e && (o = f.value.find((i) => i.value == e).text);
|
24
|
+
debugger;
|
25
|
+
R.value[a.name] = o;
|
26
|
+
}
|
27
|
+
b(m.value, u.value), s("change", t);
|
28
|
+
}, N = () => {
|
29
|
+
s("submit");
|
30
|
+
}, j = () => {
|
31
|
+
}, F = () => {
|
32
|
+
v.value = !0;
|
33
|
+
let t = { text: g.value, conditions: [] };
|
34
|
+
u.value.control.data.conditions.forEach((e) => {
|
35
|
+
let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
36
|
+
t.conditions.push({ name: e.name, value: o });
|
37
|
+
}), W.post(u.value.control.data.route, t).then(({ data: e }) => {
|
38
|
+
f.value = e;
|
39
|
+
}).finally(() => {
|
40
|
+
v.value = !1, I(() => {
|
41
|
+
let e = f.value.find((a) => a.value == r.value);
|
42
|
+
x.value.scrollToOption(e);
|
43
|
+
});
|
44
|
+
});
|
45
|
+
}, L = (t) => {
|
46
|
+
g.value = t, F();
|
47
|
+
}, M = (t, e) => {
|
48
|
+
let a = [];
|
49
|
+
return S.value.forEach((o) => {
|
50
|
+
o.fields.forEach((l) => {
|
51
|
+
l.dictionary && l.dictionary.conditions.forEach((i) => {
|
52
|
+
i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
|
53
|
+
});
|
54
|
+
});
|
55
|
+
}), a;
|
56
|
+
}, b = (t, e) => {
|
57
|
+
M(t, e).forEach((o) => {
|
58
|
+
Q.setRowsValue(null, h.value, o.table, o.field), b(o.table, o.field);
|
59
|
+
});
|
60
|
+
}, r = A({
|
61
|
+
get() {
|
62
|
+
return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
|
63
|
+
},
|
64
|
+
set(t) {
|
65
|
+
s("update:modelValue", t), s("change", t);
|
66
|
+
}
|
67
|
+
});
|
68
|
+
return (t, e) => {
|
69
|
+
const a = _("el-option"), o = _("el-select");
|
70
|
+
return c(), y(o, {
|
71
|
+
ref_key: "selectRef",
|
72
|
+
ref: x,
|
73
|
+
filterable: "",
|
74
|
+
remote: "",
|
75
|
+
"reserve-keyword": "",
|
76
|
+
"default-first-option": "",
|
77
|
+
"remote-show-suffix": "",
|
78
|
+
"loading-text": "加载中",
|
79
|
+
clearable: "",
|
80
|
+
placeholder: n(J)(n(m).name, n(u).name),
|
81
|
+
multiple: n(u).control.multiple,
|
82
|
+
"remote-method": n(L),
|
83
|
+
loading: n(v),
|
84
|
+
disabled: n(u).control.readonly,
|
85
|
+
onKeyup: D(O(n(N), ["alt"]), ["enter", "native"]),
|
86
|
+
onBlur: n(j),
|
87
|
+
onChange: n(K),
|
88
|
+
modelValue: n(r),
|
89
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
|
90
|
+
}, {
|
91
|
+
default: V(() => [
|
92
|
+
(c(!0), k(q, null, z(n(f), (l, i) => (c(), y(a, {
|
93
|
+
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
94
|
+
value: l.value,
|
95
|
+
key: l.value
|
96
|
+
}, {
|
97
|
+
default: V(() => [
|
98
|
+
G("span", X, w(l.text), 1),
|
99
|
+
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
|
100
|
+
]),
|
101
|
+
_: 2
|
102
|
+
}, 1032, ["label", "value"]))), 128))
|
103
|
+
]),
|
104
|
+
_: 1
|
105
|
+
}, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
|
106
|
+
};
|
107
|
+
}
|
108
|
+
});
|
109
|
+
export {
|
110
|
+
le as default
|
111
|
+
};
|