gs-eant-comp 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/gs-eant-comp.css +1 -1
  2. package/dist/gs-eant-comp.js +5213 -26
  3. package/dist/gs-eant-comp.umd.cjs +4 -18
  4. package/package.json +1 -1
  5. package/dist/Activate-CfIQc-Zp.js +0 -169
  6. package/dist/ActivateForm-Cfmxf7JB.js +0 -134
  7. package/dist/AuthCallbackCAS-CLg-ACaV.js +0 -26
  8. package/dist/AuthCallbackOauth-DlRCCsJV.js +0 -30
  9. package/dist/AutoTaskEList-wQ6PdTlr.js +0 -291
  10. package/dist/AutoTaskEditor-BHiZevKj.js +0 -275
  11. package/dist/AutoTaskLog-DDKrty5r.js +0 -48
  12. package/dist/AutoTaskViewer-CYvggIGV.js +0 -33
  13. package/dist/DepartmentEList-CF6bKecL.js +0 -209
  14. package/dist/DepartmentETable-mct60T1p.js +0 -135
  15. package/dist/DepartmentETree-e6bJiA4U.js +0 -46
  16. package/dist/DepartmentETree-vL3HbFkn.js +0 -44
  17. package/dist/DepartmentEditor-CU5XTCf2.js +0 -214
  18. package/dist/DepartmentUserEList-BvYeoku6.js +0 -171
  19. package/dist/DepartmentViewer-CXMXe42a.js +0 -34
  20. package/dist/FlowCenter-CdrOcmJ3.js +0 -52
  21. package/dist/IconPicker-BplgUQ5t.js +0 -129
  22. package/dist/IconSelect-NuAXvxVh.js +0 -70
  23. package/dist/LogETable-B28F96I_.js +0 -221
  24. package/dist/LogETable-BkLXbzIJ.js +0 -220
  25. package/dist/LogETable-D938B_TI.js +0 -231
  26. package/dist/LogEditor-5nlkOAyR.js +0 -136
  27. package/dist/LogEditor-C2rGmjR_.js +0 -130
  28. package/dist/LogEditor-Dde9DlwW.js +0 -138
  29. package/dist/LoginForm-B-DefUdK.js +0 -346
  30. package/dist/LoginLogViewer-BrlSaCPp.js +0 -33
  31. package/dist/LoginPageClassic-D2a8kWiH.js +0 -91
  32. package/dist/LoginPagePortal-Q-Lwwpbu.js +0 -140
  33. package/dist/LoginViewer-Dxx6tjuD.js +0 -39
  34. package/dist/MenuApi-DzYTJysM.js +0 -162
  35. package/dist/MenuDrag-tjmY7o1N.js +0 -108
  36. package/dist/MenuETable-BAgUF0iO.js +0 -415
  37. package/dist/MenuEditor-luvfizeH.js +0 -431
  38. package/dist/MenuViewer-CpGhh20J.js +0 -35
  39. package/dist/OauthCallback-B_GjYhqd.js +0 -30
  40. package/dist/OperationLogViewer-DR9PO9Ea.js +0 -32
  41. package/dist/RegisterForm-C1c1SEvn.js +0 -134
  42. package/dist/RoleETree-CKy46-Zn.js +0 -150
  43. package/dist/RoleEditor-CNS3Qk8w.js +0 -168
  44. package/dist/RoleFacePermission-DEpiV8Zt.js +0 -92
  45. package/dist/RoleInterfacePermissionETable-Co773S1r.js +0 -115
  46. package/dist/RoleInterfacePermissionTree-ClUoM85L.js +0 -90
  47. package/dist/RoleMenuPermissionTree-D5UQJvZR.js +0 -81
  48. package/dist/RoleUserAddEditor-BlvKzs8m.js +0 -164
  49. package/dist/RoleUserEList-My5QAm8G.js +0 -106
  50. package/dist/RoleUserETable-Os7RJeik.js +0 -189
  51. package/dist/RoleUserManagerViewer-BduFxkpG.js +0 -109
  52. package/dist/RoleV2Viewer-DQzjP589.js +0 -139
  53. package/dist/RoleViewer-Dcg3qCCk.js +0 -74
  54. package/dist/SystemLogViewer-CTYfCAD0.js +0 -33
  55. package/dist/TaskCenter-CiUnpJ8A.js +0 -251
  56. package/dist/TaskCenter_v1-D9AxQsFj.js +0 -55
  57. package/dist/UserEList-BZOI6u_o.js +0 -279
  58. package/dist/UserEditor-CMaL_euI.js +0 -330
  59. package/dist/UserViewer-DI_f9xYf.js +0 -55
  60. package/dist/iconfont-CXJEu-zK.js +0 -7
  61. package/dist/index-C3Fr-kGd.js +0 -7899
  62. package/dist/useExComponentActions-BBBV87vq.js +0 -18
@@ -1,346 +0,0 @@
1
- import { defineComponent as oe, ref as p, reactive as J, onMounted as te, onBeforeUnmount as se, createElementBlock as be, openBlock as j, normalizeStyle as Ce, createElementVNode as U, createCommentVNode as V, normalizeClass as ae, toDisplayString as ke, inject as G, computed as le, resolveComponent as B, createBlock as Y, unref as y, withCtx as S, createVNode as _, createTextVNode as re } from "vue";
2
- import { useStore as ie } from "vuex";
3
- import { useRouter as ce } from "vue-router";
4
- import { useRequest as ue } from "vue-request";
5
- import { t as de, D as W } from "./index-C3Fr-kGd.js";
6
- import { notification as fe } from "ant-design-vue";
7
- import Z from "axios";
8
- const I = Math.PI;
9
- function x(e, t) {
10
- return e + t;
11
- }
12
- function ve(e) {
13
- return e * e;
14
- }
15
- function ee(e, t, o, s, n, l) {
16
- e.beginPath(), e.moveTo(t, o), e.arc(t + s / 2, o - n + 2, n, 0.72 * I, 2.26 * I), e.lineTo(t + s, o), e.arc(t + s + n - 2, o + s / 2, n, 1.21 * I, 2.78 * I), e.lineTo(t + s, o + s), e.lineTo(t, o + s), e.arc(t + n - 2, o + s / 2, n + 0.4, 2.76 * I, 1.24 * I, !0), e.lineTo(t, o), e.lineWidth = 2, e.fillStyle = "rgba(255, 255, 255, 0.7)", e.strokeStyle = "rgba(255, 255, 255, 0.7)", e.stroke(), e[l](), e.globalCompositeOperation = "destination-over";
17
- }
18
- function me(e, t) {
19
- const o = document.createElement("img");
20
- return o.crossOrigin = "Anonymous", o.onload = t, o.onerror = () => {
21
- o.src = K(e);
22
- }, o.src = K(e), o;
23
- }
24
- function O(e, t) {
25
- return Math.round(Math.random() * (t - e) + e);
26
- }
27
- function K(e) {
28
- const t = e.length;
29
- return t > 0 ? e[O(0, t - 1)] : "https://picsum.photos/300/150?image=" + O(0, 1084);
30
- }
31
- function pe(e, t, o = { leading: !0, trailing: !0 }) {
32
- const { leading: s, trailing: n, resultCallback: l } = o;
33
- let v = 0, m = null;
34
- const D = function(...a) {
35
- return new Promise((u, d) => {
36
- const r = (/* @__PURE__ */ new Date()).getTime();
37
- !v && !s && (v = r);
38
- const i = t - (r - v);
39
- if (i <= 0) {
40
- m && (clearTimeout(m), m = null);
41
- const c = e.apply(this, a);
42
- l && l(c), u(c), v = r;
43
- return;
44
- }
45
- n && !m && (m = setTimeout(() => {
46
- m = null, v = s ? (/* @__PURE__ */ new Date()).getTime() : 0;
47
- const c = e.apply(this, a);
48
- l && l(c), u(c);
49
- }, i));
50
- });
51
- };
52
- return D.cancel = function() {
53
- m && clearTimeout(m), m = null, v = 0;
54
- }, D;
55
- }
56
- function he() {
57
- const e = J({
58
- x: 0,
59
- y: 0
60
- }), t = p(!1), o = p(!1), s = p(0), n = p([]);
61
- return { origin: e, success: t, isMouseDown: o, timestamp: s, trail: n, start: (a) => {
62
- t.value || (a instanceof MouseEvent ? (e.x = a.clientX, e.y = a.clientY) : (e.x = a.changedTouches[0].pageX, e.y = a.changedTouches[0].pageY), o.value = !0, s.value = Date.now());
63
- }, move: (a, u, d) => {
64
- if (!o.value)
65
- return !1;
66
- let r = 0, i = 0;
67
- if (u instanceof MouseEvent ? (r = u.clientX - e.x, i = u.clientY - e.y) : (r = u.changedTouches[0].pageX - e.x, i = u.changedTouches[0].pageY - e.y), r < 0 || r + 38 >= a)
68
- return !1;
69
- d(r), n.value.push(i);
70
- }, end: (a, u) => {
71
- if (!o.value || (o.value = !1, (a instanceof MouseEvent ? a.clientX : a.changedTouches[0].pageX) === e.x))
72
- return !1;
73
- s.value = Date.now() - s.value, u(s.value);
74
- }, verify: (a, u, d) => {
75
- const r = n.value, i = r.reduce(x) / r.length, c = r.map((N) => N - i), g = Math.sqrt(c.map(ve).reduce(x) / r.length), C = parseInt(a);
76
- return d = d <= 1 ? 1 : d > 10 ? 10 : d, {
77
- spliced: Math.abs(C - u) <= d,
78
- TuringTest: i !== g
79
- };
80
- } };
81
- }
82
- const Be = oe({
83
- name: "SlideVerify",
84
- props: {
85
- l: {
86
- type: Number,
87
- default: 42
88
- },
89
- r: {
90
- type: Number,
91
- default: 10
92
- },
93
- w: {
94
- type: Number,
95
- default: 310
96
- },
97
- h: {
98
- type: Number,
99
- default: 155
100
- },
101
- sliderText: {
102
- type: String,
103
- default: "Slide filled right"
104
- },
105
- accuracy: {
106
- type: Number,
107
- default: 5
108
- },
109
- show: {
110
- type: Boolean,
111
- default: !0
112
- },
113
- imgs: {
114
- type: Array,
115
- default: () => []
116
- },
117
- interval: {
118
- type: Number,
119
- default: 50
120
- },
121
- offset: {
122
- type: Number,
123
- default: 0
124
- }
125
- },
126
- emits: ["success", "again", "fail", "refresh"],
127
- setup(e, { emit: t }) {
128
- const { imgs: o, l: s, r: n, w: l, h: v, accuracy: m, interval: D, offset: a } = e, u = p(!0), d = p(0), r = p(0), i = J({
129
- containerActive: !1,
130
- containerSuccess: !1,
131
- containerFail: !1
132
- }), c = J({
133
- iconCls: "arrow-right",
134
- width: "0",
135
- left: "0"
136
- }), g = p(), C = p(), N = p(), L = p();
137
- let M;
138
- const { success: P, start: h, move: w, end: R, verify: X } = he(), F = () => {
139
- var f, b;
140
- P.value = !1, i.containerActive = !1, i.containerSuccess = !1, i.containerFail = !1, c.iconCls = "arrow-right", c.left = "0", c.width = "0", g.value.style.left = "0", (f = L.value) == null || f.clearRect(0, 0, l, v), (b = C.value) == null || b.clearRect(0, 0, l, v), g.value.width = l, M.src = K(o);
141
- }, q = () => {
142
- F(), t("refresh");
143
- };
144
- function H(f) {
145
- c.left = f + "px";
146
- let b = (l - 40 - 20) / (l - 40) * f;
147
- g.value.style.left = b + "px", i.containerActive = !0, c.width = f + "px";
148
- }
149
- function z(f) {
150
- const b = g.value.style.left, { spliced: A, TuringTest: E } = X(b, d.value, m);
151
- if (A) {
152
- if (m === -1) {
153
- i.containerSuccess = !0, c.iconCls = "success", P.value = !0, t("success", { timestamp: f, left: parseFloat(b) });
154
- return;
155
- }
156
- E ? (i.containerSuccess = !0, c.iconCls = "success", P.value = !0, t("success", { timestamp: f, left: parseFloat(b) })) : (i.containerFail = !0, c.iconCls = "fail", t("again"));
157
- } else
158
- i.containerFail = !0, c.iconCls = "fail", t("fail"), setTimeout(() => {
159
- F();
160
- }, 1e3);
161
- }
162
- const $ = pe((f) => {
163
- w(l, f, H);
164
- }, D), T = (f) => {
165
- R(f, z);
166
- };
167
- return te(() => {
168
- var f, b;
169
- const A = (f = N.value) == null ? void 0 : f.getContext("2d"), E = (b = g.value) == null ? void 0 : b.getContext("2d", { willReadFrequently: !0 });
170
- L.value = A, C.value = E, M = me(o, () => {
171
- u.value = !1;
172
- const k = s + n * 2 + 3;
173
- if (a > 0)
174
- if (a >= k + 10 && a <= l - (k + 10))
175
- d.value = a;
176
- else
177
- throw new Error(`offset must be greater than ${k + 10} and less than ${l - (k + 10)}`);
178
- else
179
- d.value = O(k + 10, l - (k + 10));
180
- if (r.value = O(10 + n * 2, v - (k + 10)), A && E) {
181
- ee(A, d.value, r.value, s, n, "fill"), ee(E, d.value, r.value, s, n, "clip"), A.drawImage(M, 0, 0, l, v), E.drawImage(M, 0, 0, l, v);
182
- const Q = r.value - n * 2 - 1, ne = E.getImageData(d.value, Q, k, k);
183
- g.value.width = k, E.putImageData(ne, 0, Q);
184
- }
185
- }), document.addEventListener("mousemove", $), document.addEventListener("mouseup", T);
186
- }), se(() => {
187
- document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", T);
188
- }), {
189
- block: g,
190
- canvas: N,
191
- loadBlock: u,
192
- containerCls: i,
193
- sliderBox: c,
194
- refresh: q,
195
- sliderDown: h,
196
- touchStartEvent: h,
197
- touchMoveEvent: $,
198
- touchEndEvent: T
199
- };
200
- }
201
- });
202
- const ge = { class: "flex-fill d-flex flex-column justify-content-between" }, ye = ["src"], Ne = {
203
- __name: "LoginForm",
204
- setup(e) {
205
- const t = ie(), o = ce(), s = G("$API"), n = G("formState"), l = p(!1), v = (h) => s.auth.login.post(n), { run: m } = ue(v, {
206
- manual: !0,
207
- onSuccess: (h) => {
208
- h && (t.commit("LOGIN_IN", h.data.token), o.push({ path: "/" }), setTimeout(() => {
209
- fe.success({
210
- top: "60px",
211
- placement: "topRight",
212
- message: "欢迎",
213
- description: `${de()},欢迎回来`
214
- });
215
- }, 1500));
216
- },
217
- onError: (h) => {
218
- g();
219
- }
220
- }), D = () => {
221
- m();
222
- }, a = () => {
223
- }, u = G("isPasswordFocused"), d = () => {
224
- u.value = !0;
225
- }, r = () => {
226
- u.value = !1;
227
- }, i = !1, c = p("captcha/captcha.jpg?" + (/* @__PURE__ */ new Date()).getTime()), g = () => {
228
- c.value = "captcha/captcha.jpg?" + +(/* @__PURE__ */ new Date()).getTime();
229
- }, C = p(null), N = p(), L = async () => {
230
- try {
231
- const h = await Z.get((i ? "api/" : "") + "captcha/slider");
232
- C.value = h.data;
233
- } catch (h) {
234
- console.error("验证码加载失败", h);
235
- }
236
- }, M = async (h) => {
237
- (await Z.post("captcha/slider/verify", {
238
- x: h,
239
- uuid: C.value?.uuid
240
- })).data.success ? l.value = !0 : (l.value = !1, alert("❌ 滑动验证失败,请重试"), L(), N.value?.reset());
241
- };
242
- te(() => {
243
- L();
244
- });
245
- const P = le(() => t.state.app.loginLayoutType === "classic");
246
- return (h, w) => {
247
- const R = B("a-icon"), X = B("a-input"), F = B("a-form-item"), q = B("a-input-password"), H = B("a-divider"), z = B("a-button"), $ = B("a-form");
248
- return j(), Y($, {
249
- class: "h-100 d-flex flex-column justify-content-between bg-transparent",
250
- layout: "vertical",
251
- model: y(n),
252
- onFinish: D,
253
- onFinishFailed: a
254
- }, {
255
- default: S(() => [
256
- U("div", ge, [
257
- U("div", {
258
- class: ae(["flex-fill py-3", P.value ? "ofa" : ""])
259
- }, [
260
- _(F, { label: "账号" }, {
261
- default: S(() => [
262
- _(X, {
263
- value: y(n).username,
264
- "onUpdate:value": w[0] || (w[0] = (T) => y(n).username = T),
265
- placeholder: "请输入账号"
266
- }, {
267
- prefix: S(() => [
268
- _(R, { type: "icon-user" })
269
- ]),
270
- _: 1
271
- }, 8, ["value"])
272
- ]),
273
- _: 1
274
- }),
275
- _(F, { label: "密码" }, {
276
- default: S(() => [
277
- _(q, {
278
- value: y(n).password,
279
- "onUpdate:value": w[1] || (w[1] = (T) => y(n).password = T),
280
- placeholder: "请输入密码",
281
- onFocus: d,
282
- onBlur: r
283
- }, {
284
- prefix: S(() => [
285
- _(R, { type: "icon-lock" })
286
- ]),
287
- _: 1
288
- }, 8, ["value"])
289
- ]),
290
- _: 1
291
- }),
292
- y(W).CAPTCHA_ENABLED ? (j(), Y(F, {
293
- key: 0,
294
- label: "验证码"
295
- }, {
296
- default: S(() => [
297
- _(X, {
298
- value: y(n).captcha,
299
- "onUpdate:value": w[2] || (w[2] = (T) => y(n).captcha = T),
300
- placeholder: "验证码",
301
- class: "w-50"
302
- }, {
303
- prefix: S(() => [
304
- _(R, { type: "icon-key" })
305
- ]),
306
- _: 1
307
- }, 8, ["value"]),
308
- U("img", {
309
- src: c.value,
310
- onClick: g,
311
- onError: g
312
- }, null, 40, ye)
313
- ]),
314
- _: 1
315
- })) : V("", !0),
316
- (C.value && C.value.bg && C.value.slider, V("", !0)),
317
- y(W).CAPTCHA_ENABLED ? (j(), Y(F, { key: 2 })) : V("", !0)
318
- ], 2),
319
- U("div", null, [
320
- V("", !0),
321
- y(W).CAPTCHA_ENABLED ? V("", !0) : (j(), Y(H, {
322
- key: 1,
323
- class: "d-none d-xxl-block"
324
- })),
325
- _(z, {
326
- block: "",
327
- type: "primary",
328
- "html-type": "submit",
329
- disabled: y(n).username === "" || y(n).password === ""
330
- }, {
331
- default: S(() => [...w[4] || (w[4] = [
332
- re("立即登陆", -1)
333
- ])]),
334
- _: 1
335
- }, 8, ["disabled"])
336
- ])
337
- ])
338
- ]),
339
- _: 1
340
- }, 8, ["model"]);
341
- };
342
- }
343
- };
344
- export {
345
- Ne as default
346
- };
@@ -1,33 +0,0 @@
1
- import { defineComponent as l, resolveComponent as e, createElementBlock as a, openBlock as p, createVNode as o, withCtx as n, ref as _, provide as d } from "vue";
2
- import f from "./LogETable-B28F96I_.js";
3
- import { _ as m } from "./index-C3Fr-kGd.js";
4
- const i = l({
5
- components: { LogETable: f },
6
- setup() {
7
- const t = _([]);
8
- return d("selectedKeys", t), {};
9
- }
10
- }), u = { class: "pt-3 ps-3 bg-light h-100 d-flex flex-column overflow-hidden" };
11
- function h(t, x, g, w, L, b) {
12
- const c = e("LogETable"), s = e("a-col"), r = e("a-row");
13
- return p(), a("div", u, [
14
- o(r, { class: "h-100" }, {
15
- default: n(() => [
16
- o(s, {
17
- span: 24,
18
- class: "h-100 d-flex flex-column"
19
- }, {
20
- default: n(() => [
21
- o(c)
22
- ]),
23
- _: 1
24
- })
25
- ]),
26
- _: 1
27
- })
28
- ]);
29
- }
30
- const C = /* @__PURE__ */ m(i, [["render", h]]);
31
- export {
32
- C as default
33
- };