halo-pc 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/dist/Article-CjlnxF__.js +196 -0
  2. package/dist/ArticleFooter-BAf1rKUX.js +78 -0
  3. package/dist/Autocomplete-BnQpnnyK.js +27 -0
  4. package/dist/Autocomplete-C2FkoM3g.js +52 -0
  5. package/dist/Autocomplete-Da3h7NqJ.js +53 -0
  6. package/dist/CSharp-Dxc7debp.js +27 -0
  7. package/dist/Calender-CZajLEjs.js +10 -0
  8. package/dist/Callback-txUuqwa4.js +24 -0
  9. package/dist/Cascader-Bm6ZjZBu.js +84 -0
  10. package/dist/Cascader-CWljbVzB.js +45 -0
  11. package/dist/Checkbox-CYpA0Abh.js +69 -0
  12. package/dist/Checkbox-DvjA_jtM.js +27 -0
  13. package/dist/Code--QwKtfhx.js +4 -0
  14. package/dist/Code-BO3eZKLy.js +58 -0
  15. package/dist/Code-Dh_cfHCX.js +40 -0
  16. package/dist/Code-Dn68YB2V.js +28 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-DcAjaZOQ.js +63 -0
  18. package/dist/Color-CfXtJFUo.js +22 -0
  19. package/dist/Color-Da69pnQg.js +34 -0
  20. package/dist/Column-DGnsLHim.js +69 -0
  21. package/dist/Comment--Tr_kWBl.js +102 -0
  22. package/dist/Compare-C3rlbp4P.js +60 -0
  23. package/dist/Compare-DaSyOFIe.js +30 -0
  24. package/dist/Copy-C5yEC9dX.js +43 -0
  25. package/dist/Custom-K9vfVRxn.js +53 -0
  26. package/dist/DataExport-GCZvxEp5.js +4 -0
  27. package/dist/DataExport.vue_vue_type_script_setup_true_lang-CqT0RHF6.js +112 -0
  28. package/dist/DataImport-BofV1eCR.js +4 -0
  29. package/dist/DataImport.vue_vue_type_script_setup_true_lang-WCH5ToC7.js +174 -0
  30. package/dist/Date-BeHsQ2Ow.js +36 -0
  31. package/dist/Date-DgpsRJon.js +27 -0
  32. package/dist/DateRange-DrYK_l0Y.js +19 -0
  33. package/dist/DateRange-UHosLXP9.js +61 -0
  34. package/dist/DateTime-BfNjKDfI.js +37 -0
  35. package/dist/DateTime-CHn5T-FB.js +27 -0
  36. package/dist/DateTimeRange-6TctUiMd.js +65 -0
  37. package/dist/Daterange-DISQqOFM.js +61 -0
  38. package/dist/Decimal-BB2w4V2o.js +27 -0
  39. package/dist/Decimal-C38-N54B.js +36 -0
  40. package/dist/Delete-C7gIYWP8.js +59 -0
  41. package/dist/Detail-D-6vJTGF.js +70 -0
  42. package/dist/Dictionary-DfEacdox.js +59 -0
  43. package/dist/Email-BKW9GRcH.js +19 -0
  44. package/dist/Email-ME_MU94C.js +47 -0
  45. package/dist/File-CMCYSg30.js +158 -0
  46. package/dist/Image-BL458jPH.js +9 -0
  47. package/dist/Index-8lbvVECt.js +4 -0
  48. package/dist/Index-B1ZfzgLV.js +4 -0
  49. package/dist/Index-C_HCipwv.js +4 -0
  50. package/dist/Index-Ch59SxF3.js +74 -0
  51. package/dist/Index-CopnEHli.js +4 -0
  52. package/dist/Index-Cp7EDm0u.js +173 -0
  53. package/dist/Index-DZkeSKKp.js +4 -0
  54. package/dist/Index-tbCW5R6_.js +4 -0
  55. package/dist/Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js +36 -0
  56. package/dist/Index.vue_vue_type_script_setup_true_lang-DOibFo1_.js +70 -0
  57. package/dist/Index.vue_vue_type_script_setup_true_lang-Dwm5MQ9l.js +82 -0
  58. package/dist/Index.vue_vue_type_style_index_0_lang-D9Jt6Of_.js +113 -0
  59. package/dist/Install-CJbpeRw0.js +130 -0
  60. package/dist/Int-B-t8edhd.js +19 -0
  61. package/dist/Int-C-0RMDmy.js +37 -0
  62. package/dist/Int-CkzuFSk2.js +45 -0
  63. package/dist/List-V1uPlNfP.js +77 -0
  64. package/dist/Maintaince-BM4tthS_.js +19 -0
  65. package/dist/Markdown-BzMP3m7o.js +37 -0
  66. package/dist/Markdown-Dq7L9EMQ.js +27 -0
  67. package/dist/Month-B_SzKf02.js +36 -0
  68. package/dist/Month-CUX-EnU_.js +27 -0
  69. package/dist/Month-DfemgHac.js +37 -0
  70. package/dist/Normal-B2w0Isvm.js +255 -0
  71. package/dist/Paging-Bnpq9uSh.js +95 -0
  72. package/dist/PagingHeader-CBXHiUXR.js +140 -0
  73. package/dist/PagingRow-tny-wHwu.js +66 -0
  74. package/dist/Password-DuyYEgzR.js +55 -0
  75. package/dist/Password-yHtlY-Qa.js +24 -0
  76. package/dist/Progress-C3D821AQ.js +34 -0
  77. package/dist/Progress-CKVzMO-W.js +25 -0
  78. package/dist/QueryApi-BLc_au6L.js +18 -0
  79. package/dist/Racebar-DqWtIQm-.js +166 -0
  80. package/dist/Radio-DkcBKBvX.js +47 -0
  81. package/dist/Radio-xLd4l78I.js +27 -0
  82. package/dist/Rate-B7jKTFKT.js +34 -0
  83. package/dist/Rate-BmC4gw_0.js +34 -0
  84. package/dist/Register-Bio0HxyZ.js +203 -0
  85. package/dist/RichText-BYNi_iMx.js +105 -0
  86. package/dist/RichText-Bk0Msyhl.js +22 -0
  87. package/dist/SearchFooter-BAPlMiuj.js +4 -0
  88. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-Bp7M7_IY.js +55 -0
  89. package/dist/SearchForm-BaPwWOch.js +4 -0
  90. package/dist/SearchForm.vue_vue_type_style_index_0_lang-BJeXUISp.js +150 -0
  91. package/dist/Select-DMDcHdlD.js +116 -0
  92. package/dist/Select-Dlx4Tg2X.js +27 -0
  93. package/dist/Select-Doyr8ioF.js +84 -0
  94. package/dist/Single-B4EEi5Bm.js +323 -0
  95. package/dist/Statistic-AY1NP5tM.js +161 -0
  96. package/dist/Statistic-CTxHNeof.js +76 -0
  97. package/dist/Stock-CcBqUgOB.js +28 -0
  98. package/dist/Stock-Sh2UHojP.js +4 -0
  99. package/dist/Stock.vue_vue_type_style_index_0_lang-CcHVxdzc.js +302 -0
  100. package/dist/Switch-BOsRzAW-.js +27 -0
  101. package/dist/Switch-DhFaku5L.js +50 -0
  102. package/dist/Table-C9IrdZEj.js +241 -0
  103. package/dist/Table-CrMo5L6q.js +318 -0
  104. package/dist/Text-BRRmmXYV.js +52 -0
  105. package/dist/Text-DKpPIUcY.js +51 -0
  106. package/dist/Text-vz76Xb4X.js +4 -0
  107. package/dist/Text.vue_vue_type_style_index_0_lang-BMxOYNEI.js +56 -0
  108. package/dist/TextLink-DKm6XbeF.js +66 -0
  109. package/dist/Textarea-D9TgF9ig.js +37 -0
  110. package/dist/Textarea-WPLyT7XC.js +28 -0
  111. package/dist/Time-BcQzBDX-.js +36 -0
  112. package/dist/Timeline-Dolubd-b.js +57 -0
  113. package/dist/Tree-Bv5eVC8s.js +122 -0
  114. package/dist/Tree-KwP6ais4.js +295 -0
  115. package/dist/TreeNode-rHeuE2ot.js +38 -0
  116. package/dist/Tree_Old-h__WmqFA.js +11 -0
  117. package/dist/Update-C5bPCalk.js +65 -0
  118. package/dist/UpdateChild-B2A3hP6m.js +85 -0
  119. package/dist/Upload-BSbIQu56.js +147 -0
  120. package/dist/Upload-heb0FQTh.js +72 -0
  121. package/dist/UploadApi-vYU0Jda6.js +18 -0
  122. package/dist/Year-1ug2_a1g.js +40 -0
  123. package/dist/Year-Dlp5PKhI.js +27 -0
  124. package/dist/main-Bs5Q5ZLl.js +6535 -0
  125. package/dist/main.js +110 -0
  126. package/dist/style.css +1 -0
  127. package/dist/vendor-@intlify-BISCQg1h.js +2189 -0
  128. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  129. package/dist/vendor-@vue-aVYGocXp.js +93 -0
  130. package/dist/vendor-clipboard-BqjesuiY.js +521 -0
  131. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  132. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  133. package/dist/vendor-element-plus-Z7vJFrsh.js +456 -0
  134. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  135. package/dist/vendor-intro.js-CZkClzQO.js +1695 -0
  136. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  137. package/dist/vendor-pinia-C-_fm-ER.js +1167 -0
  138. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  139. package/dist/vendor-state-local-CEworIRt.js +131 -0
  140. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  141. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  142. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  143. package/dist/vendor-vue-demi-DdR-Jw7p.js +31 -0
  144. package/dist/vendor-vue-i18n-C3KH15Qn.js +1670 -0
  145. package/package.json +1 -1
@@ -0,0 +1,203 @@
1
+ import { defineComponent as F, ref as i, onMounted as G, watch as J, resolveComponent as m, openBlock as c, createElementBlock as W, createVNode as p, unref as t, withCtx as d, createElementVNode as r, toDisplayString as X, isRef as h, createBlock as v, withKeys as E, normalizeClass as j, withModifiers as Y, createTextVNode as ee, nextTick as B } from "vue";
2
+ import { useRoute as te, useRouter as le } from "vue-router";
3
+ import { d as oe, u as se, z as ae, P as re, B as ne, S as k, h as T, I as K } from "./main-Bs5Q5ZLl.js";
4
+ import "xlsx-js-style";
5
+ import "./vendor-crypto-js-ftX_aBC-.js";
6
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
7
+ import "./vendor-moment-h96o7c8I.js";
8
+ import "element-plus";
9
+ const ie = { class: "login-container" }, ue = { class: "title-container" }, pe = { class: "title" }, de = /* @__PURE__ */ r("span", { class: "svg-container" }, [
10
+ /* @__PURE__ */ r("i", { class: "fa fa-user" })
11
+ ], -1), fe = /* @__PURE__ */ r("span", { class: "svg-container" }, [
12
+ /* @__PURE__ */ r("i", { class: "fa fa-key" })
13
+ ], -1), me = /* @__PURE__ */ r("span", { class: "svg-container" }, [
14
+ /* @__PURE__ */ r("i", { class: "fa fa-key" })
15
+ ], -1), ce = ["innerHTML"], be = /* @__PURE__ */ F({
16
+ __name: "Register",
17
+ setup(we) {
18
+ oe();
19
+ let { t_sys: U } = se(), q = ae(), 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 }), R = i(), b = i(), _ = i(), C = i(), H = te();
20
+ le();
21
+ let I = (o, e, l) => {
22
+ k.isEmail(e) ? l() : l(new Error("邮箱格式不正确"));
23
+ }, M = (o, e, l) => {
24
+ k.isPassword(e) ? l() : l(new Error("密码格式不正确"));
25
+ }, z = (o, e, l, f) => {
26
+ k.isPassword(e) ? e != f.password ? l(new Error("两次密码不一致")) : l() : l(new Error("密码格式不正确"));
27
+ }, P = (o) => {
28
+ let { shiftKey: e, key: l } = o;
29
+ l && l.length == 1 && (e && l >= "a" && l <= "z" || !e && l >= "A" && l <= "Z" ? a.value = !0 : a.value = !1), l == "CapsLock" && a.value == !0 && (a.value = !1);
30
+ }, g = () => {
31
+ u.value == "password" ? u.value = "" : u.value = "password", B(() => {
32
+ _.value.focus();
33
+ });
34
+ }, L = () => {
35
+ R.value.validate((o) => {
36
+ if (!o)
37
+ return !1;
38
+ V.value = !0;
39
+ });
40
+ }, S = () => {
41
+ x();
42
+ }, N = (o) => {
43
+ y.value = !0, n.value.position = o, T.post("/user/register", n.value).then(({ data: e }) => {
44
+ q.toBackUrl();
45
+ }).catch((e) => {
46
+ throw S(), C.value.error(), e;
47
+ }).finally(() => {
48
+ B(() => {
49
+ y.value = !1;
50
+ });
51
+ });
52
+ }, O = (o) => Object.keys(o).reduce((e, l) => (e[l] = o[l], e), {}), x = () => {
53
+ T.get("/user/captcha").then(({ data: o, message: e }) => {
54
+ w.value.jigsaw = K.base64(o.jigsaw), w.value.content = K.base64(o.content);
55
+ });
56
+ };
57
+ return G(() => {
58
+ re.setI18nTitle("common.register"), x(), n.value.email == "" ? b.value.focus() : n.value.password == "" && _.value.focus();
59
+ }), J(H, function(o) {
60
+ const e = o.query;
61
+ e && O(e);
62
+ }), (o, e) => {
63
+ const l = m("el-input"), f = m("el-form-item"), $ = m("el-tooltip"), A = m("el-button"), D = m("el-form");
64
+ return c(), W("div", ie, [
65
+ p(D, {
66
+ ref_key: "formRef",
67
+ ref: R,
68
+ class: "login-form",
69
+ autocomplete: "on",
70
+ "label-position": "left",
71
+ model: t(n)
72
+ }, {
73
+ default: d(() => [
74
+ r("div", ue, [
75
+ r("h3", pe, X(t(U)("title")), 1)
76
+ ]),
77
+ p(f, {
78
+ prop: "email",
79
+ rules: [{ required: !0, trigger: "blur", message: "邮箱不能为空" }, { trigger: "blur", validator: t(I) }]
80
+ }, {
81
+ default: d(() => [
82
+ de,
83
+ p(l, {
84
+ ref_key: "emailRef",
85
+ ref: b,
86
+ modelValue: t(n).email,
87
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => t(n).email = s),
88
+ placeholder: "邮箱",
89
+ name: "email",
90
+ type: "text",
91
+ tabindex: "1",
92
+ autocomplete: "on"
93
+ }, null, 8, ["modelValue"])
94
+ ]),
95
+ _: 1
96
+ }, 8, ["rules"]),
97
+ p($, {
98
+ modelValue: t(a),
99
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => h(a) ? a.value = s : a = s),
100
+ content: "Caps lock is On",
101
+ placement: "right",
102
+ manual: ""
103
+ }, {
104
+ default: d(() => [
105
+ p(f, {
106
+ prop: "password",
107
+ rules: [{ required: !0, trigger: "blur", message: "密码不能为空" }, { trigger: "blur", validator: t(M) }]
108
+ }, {
109
+ default: d(() => [
110
+ fe,
111
+ (c(), v(l, {
112
+ ref: "password",
113
+ key: t(u),
114
+ type: t(u),
115
+ placeholder: "密码",
116
+ name: "password",
117
+ tabindex: "2",
118
+ autocomplete: "on",
119
+ onKeyup: E(t(P), ["native"]),
120
+ onBlur: e[1] || (e[1] = (s) => h(a) ? a.value = !1 : a = !1),
121
+ modelValue: t(n).password,
122
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => t(n).password = s)
123
+ }, null, 8, ["type", "onKeyup", "modelValue"])),
124
+ r("span", {
125
+ class: "show-pwd",
126
+ onClick: e[3] || (e[3] = //@ts-ignore
127
+ (...s) => t(g) && t(g)(...s))
128
+ }, [
129
+ r("i", {
130
+ class: j(t(u) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
131
+ }, null, 2)
132
+ ])
133
+ ]),
134
+ _: 1
135
+ }, 8, ["rules"])
136
+ ]),
137
+ _: 1
138
+ }, 8, ["modelValue"]),
139
+ p(f, {
140
+ prop: "confirmPassword",
141
+ rules: [{ required: !0, trigger: "blur", message: "确认密码不能为空" }, { trigger: "blur", validator: (s, Q, Z) => t(z)(s, Q, Z, t(n)) }]
142
+ }, {
143
+ default: d(() => [
144
+ me,
145
+ (c(), v(l, {
146
+ ref_key: "passwordRef",
147
+ ref: _,
148
+ key: t(u),
149
+ type: t(u),
150
+ placeholder: "确认密码",
151
+ name: "password",
152
+ tabindex: "2",
153
+ autocomplete: "on",
154
+ onKeyup: E(t(P), ["native"]),
155
+ onBlur: e[5] || (e[5] = (s) => h(a) ? a.value = !1 : a = !1),
156
+ modelValue: t(n).confirmPassword,
157
+ "onUpdate:modelValue": e[6] || (e[6] = (s) => t(n).confirmPassword = s)
158
+ }, null, 8, ["type", "onKeyup", "modelValue"])),
159
+ r("span", {
160
+ class: "show-pwd",
161
+ onClick: e[7] || (e[7] = //@ts-ignore
162
+ (...s) => t(g) && t(g)(...s))
163
+ }, [
164
+ r("i", {
165
+ class: j(t(u) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
166
+ }, null, 2)
167
+ ])
168
+ ]),
169
+ _: 1
170
+ }, 8, ["rules"]),
171
+ t(V) ? (c(), v(t(ne), {
172
+ key: 1,
173
+ ref_key: "captchaRef",
174
+ ref: C,
175
+ content: t(w).content,
176
+ jigsaw: t(w).jigsaw,
177
+ onRefresh: t(S),
178
+ onValidate: t(N)
179
+ }, null, 8, ["content", "jigsaw", "onRefresh", "onValidate"])) : (c(), v(A, {
180
+ key: 0,
181
+ type: "primary",
182
+ loading: t(y),
183
+ onClick: Y(t(L), ["prevent"])
184
+ }, {
185
+ default: d(() => [
186
+ ee("注册 ")
187
+ ]),
188
+ _: 1
189
+ }, 8, ["loading", "onClick"]))
190
+ ]),
191
+ _: 1
192
+ }, 8, ["model"]),
193
+ r("div", {
194
+ class: "powered-by",
195
+ innerHTML: o.t("sys.powered_by")
196
+ }, null, 8, ce)
197
+ ]);
198
+ };
199
+ }
200
+ });
201
+ export {
202
+ be as default
203
+ };
@@ -0,0 +1,105 @@
1
+ import { defineComponent as E, toRefs as I, ref as a, onUnmounted as U, computed as S, watch as V, resolveComponent as $, openBlock as j, createElementBlock as F, normalizeStyle as D, unref as f, withDirectives as P, createElementVNode as H, vShow as Q, createVNode as G, withCtx as J, nextTick as K, createStaticVNode as W } from "vue";
2
+ import { a as X, D as Y } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const Z = /* @__PURE__ */ W('<div class="ql-formats"><button class="ql-bold" data-toggle="tooltip" data-placement="bottom" title="Bold"></button><button class="ql-italic" data-toggle="tooltip" data-placement="bottom" title="Italic &lt;ctrl+i&gt;"></button><button class="ql-date" data-toggle="tooltip" data-placement="bottom" title="Date"></button><button class="ql-underline" data-toggle="tooltip" data-placement="bottom" title="Underline"></button><button class="ql-strike" data-toggle="tooltip" data-placement="bottom" title="Strike"></button></div><div class="ql-formats"><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="ordered"></button><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="bullet"></button><select class="ql-color"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select><select class="ql-background"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select></div><div class="ql-formats"><button class="ql-code-block" data-toggle="tooltip" data-placement="bottom" title="Code"></button><button class="ql-blockquote" data-toggle="tooltip" data-placement="bottom" title="Block quote"></button><button class="ql-link" data-toggle="tooltip" data-placement="bottom" title="Link"></button></div><div class="ql-formats"><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="1"></button><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="2"></button><select class="ql-align"><option selected></option><option value="center"></option><option value="right"></option><option value="justify"></option></select></div><div class="ql-formats"><select class="ql-size"><option value="small"></option><option selected></option><option value="large"></option><option value="huge"></option></select><select class="ql-header"><option value=""></option><option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option></select></div><div class="ql-formats"><select class="ql-font"><option selected></option><option value="serif"></option><option value="monospace"></option></select></div><div class="ql-formats"><button class="ql-image" data-toggle="tooltip" data-placement="bottom" title="Image"></button><button class="ql-video" data-toggle="tooltip" data-placement="bottom" title="Video"></button><button class="ql-clean" data-toggle="tooltip" data-placement="bottom" title="Clean"></button></div>', 7), tt = [
8
+ Z
9
+ ], ct = /* @__PURE__ */ E({
10
+ __name: "RichText",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["change", "update:modelValue"],
20
+ setup(w, { emit: N }) {
21
+ let T = N, L = w, { field: i, table: B, set: ot, row: _, modelValue: x } = I(L), s = null, l = null, r = null, b = !1, m = !1, g = a(), h = a(), p = a(), y = a(!1), R = a(), k = a(), M = (t) => {
22
+ let o = X.getDateString(), e = getSelection(), n = e.getRangeAt(0), c = n.startContainer;
23
+ if (c.nodeName == "#text")
24
+ c.insertData(n.startOffset, o), n.setStart(c, n.startOffset + o.length), e.removeAllRanges(), e.addRange(n);
25
+ else {
26
+ let q = document.createTextNode(o);
27
+ c.appendChild(q);
28
+ let d = document.createRange();
29
+ d.selectNodeContents(q), d.setStart(q, d.startOffset + o.length), e.removeAllRanges(), e.addRange(d);
30
+ }
31
+ }, A = (t) => {
32
+ if (b || m) {
33
+ u.value != null && p.value.setScrollTop(u.value), b = !1, m = !1;
34
+ return;
35
+ }
36
+ r = t, _.value[v.value.name] = t.scrollTop;
37
+ }, O = () => i.value.control.height ? `height: ${i.value.control.height}px` : "min-height: 300px;", z = () => `height: calc(100% - ${Y.getHeight(h.value)}px)`;
38
+ (() => {
39
+ R.value = O(), import("quill").then((t) => {
40
+ let o = t.default;
41
+ s = new o(g.value, {
42
+ modules: {
43
+ toolbar: {
44
+ container: h.value,
45
+ handlers: { date: M }
46
+ }
47
+ },
48
+ theme: "snow"
49
+ }), y.value = !0, K(() => {
50
+ k.value = z();
51
+ }), i.value.control.readonly && s.disable(), l = g.value.querySelector(".ql-editor"), l.innerHTML = C.value, p.value.update(), v.value && u.value != null && p.value.setScrollTop(u.value), s.on("text-change", (e, n, c) => {
52
+ b = !0, C.value = l.innerHTML;
53
+ }), l.addEventListener("paste", (e) => {
54
+ m = !0;
55
+ });
56
+ });
57
+ })(), U(() => {
58
+ s = null;
59
+ });
60
+ let v = S(() => i.value.control.scrollTop ? B.value.fields.find((o) => o.name == i.value.control.scrollTop) : null), u = S(() => v.value ? _.value[v.value.name] : null), C = S({
61
+ get() {
62
+ return x.value || "";
63
+ },
64
+ set(t) {
65
+ T("update:modelValue", t), T("change", t);
66
+ }
67
+ });
68
+ return V(() => x.value, (t, o) => {
69
+ l.innerHTML != t && (l.innerHTML = t);
70
+ }), V(() => u.value, (t, o) => {
71
+ t != null && (r == null ? void 0 : r.scrollTop) != t && p.value.setScrollTop(t);
72
+ }), (t, o) => {
73
+ const e = $("el-scrollbar");
74
+ return j(), F("div", {
75
+ class: "control-rich-text",
76
+ style: D(f(R))
77
+ }, [
78
+ P(H("div", {
79
+ ref_key: "toolbarRef",
80
+ ref: h
81
+ }, tt, 512), [
82
+ [Q, f(y)]
83
+ ]),
84
+ G(e, {
85
+ ref_key: "scrollbarRef",
86
+ ref: p,
87
+ class: "ql-body",
88
+ onScroll: f(A),
89
+ style: D(f(k))
90
+ }, {
91
+ default: J(() => [
92
+ H("div", {
93
+ ref_key: "editorRef",
94
+ ref: g
95
+ }, null, 512)
96
+ ]),
97
+ _: 1
98
+ }, 8, ["onScroll", "style"])
99
+ ], 4);
100
+ };
101
+ }
102
+ });
103
+ export {
104
+ ct as default
105
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as l, toRefs as n, openBlock as r, createElementBlock as s, unref as c } from "vue";
2
+ const a = ["innerHTML"], h = /* @__PURE__ */ l({
3
+ __name: "RichText",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ setup(e) {
13
+ let t = e, { table: i, field: m, set: p, row: d, modelValue: o } = n(t);
14
+ return (f, u) => (r(), s("div", {
15
+ class: "text-rich-text",
16
+ innerHTML: c(o)
17
+ }, null, 8, a));
18
+ }
19
+ });
20
+ export {
21
+ h as default
22
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./SearchFooter.vue_vue_type_style_index_0_lang-Bp7M7_IY.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as g, toRefs as C, computed as j, openBlock as n, createElementBlock as O, createBlock as q, resolveDynamicComponent as A, unref as e } from "vue";
2
+ import { l as E } from "./main-Bs5Q5ZLl.js";
3
+ const k = { class: "search-footer" }, R = /* @__PURE__ */ g({
4
+ __name: "SearchFooter",
5
+ props: {
6
+ schema: { type: Array },
7
+ table: { type: Object, required: !0 },
8
+ layout: { type: Object, required: !0 },
9
+ set: { type: Object, required: !0 },
10
+ next: { type: Object, required: !0 },
11
+ selection: { type: Array },
12
+ searchData: { type: Object }
13
+ },
14
+ emits: ["search", "succeed", "add", "remove", "copy", "show-import", "show-export"],
15
+ setup(a, { emit: c }) {
16
+ let o = c, s = a, { schema: p, table: r, layout: l, set: m, next: u, selection: d, searchData: B } = C(s), h = E(), i = (t) => {
17
+ o("search", t);
18
+ }, y = () => {
19
+ o("succeed");
20
+ }, b = (t) => {
21
+ o("add", t);
22
+ }, x = (t) => {
23
+ o("remove", t);
24
+ }, S = () => {
25
+ o("copy");
26
+ }, w = () => {
27
+ o("show-import");
28
+ }, _ = () => {
29
+ o("show-export");
30
+ }, v = j(() => {
31
+ let t = `/${r.value.name}/paging-header`;
32
+ return h.getComponent(t, "partial", "paging-header");
33
+ });
34
+ return (t, f) => (n(), O("div", k, [
35
+ (n(), q(A(e(v)), {
36
+ schema: e(p),
37
+ table: e(r),
38
+ layout: e(l),
39
+ next: e(u),
40
+ set: e(m),
41
+ selection: e(d),
42
+ onAdd: e(b),
43
+ onRemove: e(x),
44
+ onCopy: e(S),
45
+ onShowImport: e(w),
46
+ onShowExport: e(_),
47
+ onSucceed: e(y),
48
+ onSubmit: e(i)
49
+ }, null, 40, ["schema", "table", "layout", "next", "set", "selection", "onAdd", "onRemove", "onCopy", "onShowImport", "onShowExport", "onSucceed", "onSubmit"]))
50
+ ]));
51
+ }
52
+ });
53
+ export {
54
+ R as _
55
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./SearchForm.vue_vue_type_style_index_0_lang-BJeXUISp.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,150 @@
1
+ import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as q, watch as Q, resolveComponent as m, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as y, createVNode as x, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
+ import { O as ee, j as D } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ import "element-plus";
8
+ import { _ as te } from "./Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js";
9
+ const ie = /* @__PURE__ */ I({
10
+ __name: "SearchForm",
11
+ props: {
12
+ schema: { type: Array, required: !0 },
13
+ table: { type: Object, required: !0 },
14
+ layout: { type: Object, required: !0 },
15
+ searchData: { type: Object, required: !0 }
16
+ },
17
+ emits: ["change", "submit", "mounted"],
18
+ setup(M, { expose: N, emit: T }) {
19
+ let w = T, W = M, { schema: k, table: u, layout: C, searchData: h } = J(W), S = p(), V = p(), E = p(), d = p(), L = (e) => {
20
+ w("change", e);
21
+ }, F = (e = null) => {
22
+ w("submit");
23
+ }, U = (e, t) => {
24
+ let l = e == "*" ? null : e;
25
+ h.value[u.value.name][t.name] = l, F();
26
+ }, O = () => {
27
+ S.value && (V.value = S.value.$el.clientWidth);
28
+ }, $ = (e) => {
29
+ O();
30
+ }, R = () => {
31
+ let e = C.value.tabs;
32
+ if (e)
33
+ for (let t = 0; t < e.length; t++) {
34
+ let l = e[t];
35
+ d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
36
+ }
37
+ };
38
+ d.value = ee.clone(h.value), R(), K(() => {
39
+ O(), P(() => {
40
+ w("mounted");
41
+ });
42
+ });
43
+ let z = q(() => {
44
+ if (!V.value)
45
+ return [];
46
+ let e = Math.ceil(V.value / 200), t = D.expandSearch(k.value), l = C.value.tabs ?? [], c = t.filter((b) => l.indexOf(b.name) == -1);
47
+ return D.getLines(c, e, (b) => b, () => 1);
48
+ }), j = q(() => {
49
+ let e = [], t = C.value.tabs;
50
+ return t && t.forEach((l) => {
51
+ let c = u.value.fields.find((_) => _.name == l);
52
+ e.push(c);
53
+ }), e;
54
+ });
55
+ return Q(() => h.value, (e, t) => {
56
+ R();
57
+ }), N({ resize: $ }), (e, t) => {
58
+ const l = m("el-radio-button"), c = m("el-radio-group"), _ = m("el-form-item"), b = m("el-col"), A = m("el-row"), H = m("el-form"), G = m("el-scrollbar");
59
+ return r(), i(G, {
60
+ "max-height": "200px",
61
+ class: "search-form"
62
+ }, {
63
+ default: n(() => [
64
+ a(u).search.length > 0 ? (r(), i(H, {
65
+ key: 0,
66
+ ref_key: "searchFormRef",
67
+ ref: S,
68
+ "label-position": "left",
69
+ inline: "",
70
+ onSubmit: t[0] || (t[0] = X(() => {
71
+ }, ["prevent"]))
72
+ }, {
73
+ default: n(() => [
74
+ (r(!0), v(g, null, y(a(j), (s, f) => (r(), i(_, {
75
+ class: "search-tab",
76
+ label: s.label,
77
+ "label-width": 50
78
+ }, {
79
+ default: n(() => [
80
+ x(c, {
81
+ ref_for: !0,
82
+ ref_key: "tabRefs",
83
+ ref: E,
84
+ onChange: (o) => a(U)(o, s),
85
+ modelValue: a(d)[a(u).name][s.name],
86
+ "onUpdate:modelValue": (o) => a(d)[a(u).name][s.name] = o
87
+ }, {
88
+ default: n(() => [
89
+ x(l, { value: "*" }, {
90
+ default: n(() => [
91
+ B("全部")
92
+ ]),
93
+ _: 1
94
+ }),
95
+ (r(!0), v(g, null, y(s.control.data.data, (o) => (r(), i(l, {
96
+ value: o.value
97
+ }, {
98
+ default: n(() => [
99
+ B(Y(o.text), 1)
100
+ ]),
101
+ _: 2
102
+ }, 1032, ["value"]))), 256))
103
+ ]),
104
+ _: 2
105
+ }, 1032, ["onChange", "modelValue", "onUpdate:modelValue"])
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["label"]))), 256)),
109
+ (r(!0), v(g, null, y(a(z), (s) => (r(), i(A, {
110
+ class: "search-row",
111
+ label: a(j).length ? "其它" : "",
112
+ "label-width": 50,
113
+ gutter: 5
114
+ }, {
115
+ default: n(() => [
116
+ (r(!0), v(g, null, y(s, ({ data: f, span: o }, ae) => (r(), i(b, { span: o }, {
117
+ default: n(() => [
118
+ x(_, {
119
+ label: e.t_field(f.table.name, f.name)
120
+ }, {
121
+ default: n(() => [
122
+ x(te, {
123
+ schema: a(k),
124
+ table: f.table,
125
+ field: f,
126
+ "search-data": a(h),
127
+ onChange: a(L),
128
+ onSubmit: a(F)
129
+ }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
130
+ ]),
131
+ _: 2
132
+ }, 1032, ["label"])
133
+ ]),
134
+ _: 2
135
+ }, 1032, ["span"]))), 256))
136
+ ]),
137
+ _: 2
138
+ }, 1032, ["label"]))), 256))
139
+ ]),
140
+ _: 1
141
+ }, 512)) : Z("", !0)
142
+ ]),
143
+ _: 1
144
+ });
145
+ };
146
+ }
147
+ });
148
+ export {
149
+ ie as _
150
+ };
@@ -0,0 +1,116 @@
1
+ import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as _, openBlock as c, createBlock as y, unref as r, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as C, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as k, createCommentVNode as G, nextTick as I } from "vue";
2
+ import { c as J, C as P, h as Q } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ import "element-plus";
8
+ const W = { class: "option-text" }, X = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, ne = /* @__PURE__ */ A({
12
+ __name: "Select",
13
+ props: {
14
+ schema: {},
15
+ table: {},
16
+ field: {},
17
+ set: {},
18
+ row: {},
19
+ modelValue: { type: [String, Number, Boolean, Array] }
20
+ },
21
+ emits: ["submit", "change", "update:modelValue"],
22
+ setup(w, { emit: E }) {
23
+ let s = E, B = w, { schema: S, field: n, table: p, set: v, row: R, modelValue: m } = D(B), x = f(), g = f(), h = f(!1), d = f(n.value.control.data.data), K = (t) => {
24
+ t == "" && (t = null);
25
+ let e;
26
+ if (J.isString(t) && n.value.control.multiple ? e = t.join(",") : e = t, u.value = e, n.value.control.text) {
27
+ let a = p.value.fields.find((l) => l.name == n.value.control.text), o;
28
+ e && (o = d.value.find((i) => i.value == e).text);
29
+ debugger;
30
+ R.value[a.name] = o;
31
+ }
32
+ b(p.value, n.value), s("change", t);
33
+ }, N = () => {
34
+ s("submit");
35
+ }, T = () => {
36
+ }, j = () => {
37
+ h.value = !0;
38
+ let t = { text: g.value, conditions: [] };
39
+ n.value.control.data.conditions.forEach((e) => {
40
+ let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
41
+ t.conditions.push({ name: e.name, value: o });
42
+ }), Q.post(n.value.control.data.route, t).then(({ data: e }) => {
43
+ d.value = e;
44
+ }).finally(() => {
45
+ h.value = !1, I(() => {
46
+ let e = d.value.find((a) => a.value == u.value);
47
+ x.value.scrollToOption(e);
48
+ });
49
+ });
50
+ }, F = (t) => {
51
+ g.value = t, j();
52
+ }, M = (t, e) => {
53
+ let a = [];
54
+ return S.value.forEach((o) => {
55
+ o.fields.forEach((l) => {
56
+ l.dictionary && l.dictionary.conditions.forEach((i) => {
57
+ i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
58
+ });
59
+ });
60
+ }), a;
61
+ }, b = (t, e) => {
62
+ M(t, e).forEach((o) => {
63
+ P.setRowsValue(null, v.value, o.table, o.field), b(o.table, o.field);
64
+ });
65
+ }, u = H({
66
+ get() {
67
+ return n.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
68
+ },
69
+ set(t) {
70
+ s("update:modelValue", t), s("change", t);
71
+ }
72
+ });
73
+ return (t, e) => {
74
+ const a = _("el-option"), o = _("el-select");
75
+ return c(), y(o, {
76
+ ref_key: "selectRef",
77
+ ref: x,
78
+ filterable: "",
79
+ remote: "",
80
+ "reserve-keyword": "",
81
+ "default-first-option": "",
82
+ "remote-show-suffix": "",
83
+ "loading-text": "加载中",
84
+ clearable: "",
85
+ placeholder: t.t_field_choose_placeholder(r(p).name, r(n).name),
86
+ multiple: r(n).control.multiple,
87
+ "remote-method": r(F),
88
+ loading: r(h),
89
+ disabled: r(n).control.readonly,
90
+ onKeyup: L(O(r(N), ["alt"]), ["enter", "native"]),
91
+ onBlur: r(T),
92
+ onChange: r(K),
93
+ modelValue: r(u),
94
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
95
+ }, {
96
+ default: V(() => [
97
+ (c(!0), C($, null, q(r(d), (l, i) => (c(), y(a, {
98
+ label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
99
+ value: l.value,
100
+ key: l.value
101
+ }, {
102
+ default: V(() => [
103
+ z("span", W, k(l.text), 1),
104
+ l.suffix ? (c(), C("span", X, "(" + k(l.suffix) + ")", 1)) : G("", !0)
105
+ ]),
106
+ _: 2
107
+ }, 1032, ["label", "value"]))), 128))
108
+ ]),
109
+ _: 1
110
+ }, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
111
+ };
112
+ }
113
+ });
114
+ export {
115
+ ne as default
116
+ };