@jeecg/online 3.7.0-beta → 3.7.4-beta

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 (150) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
  13. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
  14. package/AuthFieldConfig-f1e224cc.mjs +245 -0
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
  17. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/CgformModal-c4a4e0c2.mjs +667 -0
  23. package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
  24. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/CodeFileViewModal-405e2b58.mjs +253 -0
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
  30. package/DbToOnlineModal-f28ff0a3.mjs +168 -0
  31. package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
  36. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
  46. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
  66. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
  67. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
  73. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
  80. package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/auth.api-53df4c33.mjs +41 -0
  92. package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
  113. package/useTableSync-075826a1.mjs +89 -0
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-fe3988fb.mjs +0 -84
  116. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  117. package/AuthButtonTree-589395ed.mjs +0 -156
  118. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  119. package/AuthFieldTree-b7cd091e.mjs +0 -232
  120. package/CgformCopyList-8077ccc6.mjs +0 -250
  121. package/CgformModal-36faf29a.mjs +0 -621
  122. package/CodeFileListModal-0e26b7e0.mjs +0 -158
  123. package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
  124. package/CodeGeneratorModal-b722d976.mjs +0 -238
  125. package/CustomButtonList-37639061.mjs +0 -381
  126. package/DbToOnlineModal-f49b9530.mjs +0 -166
  127. package/JModalTip-4a83aaed.mjs +0 -49
  128. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  129. package/LeftRole-7d8c5acc.mjs +0 -86
  130. package/OnlCgformErpList-30e416c8.mjs +0 -470
  131. package/OnlCgformErpSubTable-9a876058.mjs +0 -427
  132. package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
  133. package/OnlCgformTabList-7a2f2c03.mjs +0 -408
  134. package/OnlineAutoList-46c6c8b9.mjs +0 -493
  135. package/OnlineAutoModal-971bef13.mjs +0 -236
  136. package/OnlineAutoTreeList-3b92454c.mjs +0 -502
  137. package/OnlineCustomModal-594244f3.mjs +0 -232
  138. package/OnlineForm-018981b2.mjs +0 -924
  139. package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
  140. package/OnlineQueryForm-998c12a4.mjs +0 -444
  141. package/OnlineTabForm-9ad7d29a.mjs +0 -805
  142. package/SetSwitchOptions-a452fa0f.mjs +0 -62
  143. package/SuperQuery-cbfba908.mjs +0 -975
  144. package/auth.api-d3a6c4b3.mjs +0 -39
  145. package/index-173949bb.mjs +0 -57
  146. package/useCgformList-8755a94e.mjs +0 -426
  147. package/useExtendComponent-bb7cca20.mjs +0 -4295
  148. package/useListButton-7ddb9a46.mjs +0 -697
  149. package/useTableSync-f6089e8a.mjs +0 -87
  150. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,254 @@
1
+ var U = (L, y, _) => new Promise((k, C) => {
2
+ var s = (l) => {
3
+ try {
4
+ p(_.next(l));
5
+ } catch (i) {
6
+ C(i);
7
+ }
8
+ }, r = (l) => {
9
+ try {
10
+ p(_.throw(l));
11
+ } catch (i) {
12
+ C(i);
13
+ }
14
+ }, p = (l) => l.done ? k(l.value) : Promise.resolve(l.value).then(s, r);
15
+ p((_ = _.apply(L, y)).next());
16
+ });
17
+ import { defineComponent as J, ref as m, reactive as A, computed as S, unref as n, onMounted as Q, resolveComponent as f, openBlock as B, createBlock as W, withKeys as X, withCtx as d, createElementVNode as t, createVNode as c, normalizeClass as F, toDisplayString as g, createElementBlock as D, createTextVNode as E, toRaw as Y } from "vue";
18
+ import { useUserStore as Z } from "/@/store/modules/user";
19
+ import { useFormRules as ee, useFormValid as oe } from "/@/views/sys/login/useLogin";
20
+ import { useI18n as te } from "/@/hooks/web/useI18n";
21
+ import { getCodeInfo as ne } from "/@/api/sys/user";
22
+ import { useMessage as se } from "/@/hooks/web/useMessage";
23
+ import ie from "/@/assets/images/checkcode.png";
24
+ import { _ as ae } from "./index-9e1e1e53.mjs";
25
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
26
+ import "vue-router";
27
+ const ce = { class: "content-item current-active" }, re = { class: "code-image" }, le = ["src"], ue = ["src"], de = { class: "forget-pwd" }, pe = {
28
+ style: { float: "left" },
29
+ class: "pointer forget-login-pwd"
30
+ }, me = {
31
+ class: "remember-password pointer",
32
+ style: { float: "right" }
33
+ }, fe = /* @__PURE__ */ J({
34
+ __name: "AccountLoginForm",
35
+ emits: ["login", "forget-pwd", "login-success"],
36
+ setup(L, { expose: y, emit: _ }) {
37
+ const k = m(), C = m();
38
+ m();
39
+ const { t: s } = te(), r = m(""), p = m(!1), l = m(), i = A({
40
+ randCodeImage: "",
41
+ requestCodeSuccess: !1,
42
+ checkKey: -1
43
+ }), o = A({
44
+ account: "",
45
+ password: "",
46
+ inputCode: ""
47
+ }), { getFormRules: N } = ee(o), { validForm: T } = oe(l), V = Z(), R = m(!1);
48
+ S(() => o.account != "" || n(r) === "account" ? "current-active" : ""), S(() => o.password != "" || n(r) === "password" ? "current-active" : ""), S(() => o.inputCode != "" || n(r) === "inputCode" ? "current-active" : "");
49
+ const { notification: q, createErrorModal: ge } = se(), w = _;
50
+ function h(a) {
51
+ r.value = a;
52
+ }
53
+ function x() {
54
+ r.value = "";
55
+ }
56
+ function K() {
57
+ return U(this, null, function* () {
58
+ let a = yield T();
59
+ if (a)
60
+ try {
61
+ p.value = !0;
62
+ const { userInfo: e } = yield V.login(
63
+ Y({
64
+ password: a.password,
65
+ username: a.account,
66
+ captcha: a.inputCode,
67
+ checkKey: i.checkKey,
68
+ mode: "none",
69
+ //不要默认的错误提示
70
+ goHome: !1
71
+ //不跳转到首页
72
+ })
73
+ );
74
+ e && w("login-success", e.realname);
75
+ } catch (e) {
76
+ q.error({
77
+ message: s("sys.api.errorTip"),
78
+ description: e.message || s("sys.api.networkExceptionMsg"),
79
+ duration: 3
80
+ }), v();
81
+ } finally {
82
+ p.value = !1;
83
+ }
84
+ });
85
+ }
86
+ function v() {
87
+ o.inputCode = "", i.checkKey = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-4), ne(i.checkKey).then((a) => {
88
+ i.randCodeImage = a, i.requestCodeSuccess = !0;
89
+ });
90
+ }
91
+ function $() {
92
+ w("login", "phoneLogin");
93
+ }
94
+ function P() {
95
+ w("forget-pwd");
96
+ }
97
+ function j(a) {
98
+ Object.assign(o, a), v();
99
+ }
100
+ return Q(() => {
101
+ v();
102
+ }), y({
103
+ setAccountData: j
104
+ }), (a, e) => {
105
+ const b = f("a-input"), I = f("a-form-item"), M = f("a-col"), z = f("a-row"), H = f("a-checkbox"), O = f("a-button"), G = f("a-form");
106
+ return B(), W(G, {
107
+ id: "loginContentForm",
108
+ ref_key: "loginRef",
109
+ ref: l,
110
+ model: o,
111
+ rules: n(N),
112
+ onKeyup: X(K, ["enter", "native"])
113
+ }, {
114
+ default: d(() => [
115
+ t("div", {
116
+ class: "content-item current-active",
117
+ onClick: e[1] || (e[1] = (u) => h("account"))
118
+ }, [
119
+ c(I, { name: "account" }, {
120
+ default: d(() => [
121
+ c(b, {
122
+ ref_key: "accountRef",
123
+ ref: k,
124
+ id: "accountLogin",
125
+ value: o.account,
126
+ "onUpdate:value": e[0] || (e[0] = (u) => o.account = u),
127
+ style: { height: "40px" },
128
+ onBlur: x
129
+ }, null, 8, ["value"]),
130
+ t("div", {
131
+ class: F(["form-title", r.value === "account" ? "active-title" : ""])
132
+ }, g(n(s)("sys.login.userName")), 3)
133
+ ]),
134
+ _: 1
135
+ })
136
+ ]),
137
+ t("div", {
138
+ class: "content-item current-active",
139
+ onClick: e[3] || (e[3] = (u) => h("password"))
140
+ }, [
141
+ c(I, { name: "password" }, {
142
+ default: d(() => [
143
+ c(b, {
144
+ id: "pwdLogin",
145
+ ref: "",
146
+ type: "password",
147
+ value: o.password,
148
+ "onUpdate:value": e[2] || (e[2] = (u) => o.password = u),
149
+ style: { height: "40px" },
150
+ onBlur: x
151
+ }, null, 8, ["value"]),
152
+ t("div", {
153
+ class: F(["form-title", r.value === "password" ? "active-title" : ""])
154
+ }, g(n(s)("sys.login.password")), 3)
155
+ ]),
156
+ _: 1
157
+ })
158
+ ]),
159
+ t("div", ce, [
160
+ c(z, { span: 24 }, {
161
+ default: d(() => [
162
+ c(M, { span: 15 }, {
163
+ default: d(() => [
164
+ c(I, {
165
+ name: "inputCode",
166
+ onClick: e[5] || (e[5] = (u) => h("inputCode"))
167
+ }, {
168
+ default: d(() => [
169
+ c(b, {
170
+ ref_key: "codeRef",
171
+ ref: C,
172
+ value: o.inputCode,
173
+ "onUpdate:value": e[4] || (e[4] = (u) => o.inputCode = u),
174
+ style: { height: "40px" },
175
+ onBlur: x
176
+ }, null, 8, ["value"]),
177
+ t("div", {
178
+ class: F(["form-title", r.value === "inputCode" ? "active-title" : ""])
179
+ }, g(n(s)("sys.login.inputCode")), 3)
180
+ ]),
181
+ _: 1
182
+ })
183
+ ]),
184
+ _: 1
185
+ }),
186
+ c(M, { span: 8 }, {
187
+ default: d(() => [
188
+ t("div", re, [
189
+ i.requestCodeSuccess ? (B(), D("img", {
190
+ key: 0,
191
+ class: "pointer",
192
+ style: { "margin-top": "2px", "max-width": "initial" },
193
+ src: i.randCodeImage,
194
+ onClick: v
195
+ }, null, 8, le)) : (B(), D("img", {
196
+ key: 1,
197
+ style: { "margin-top": "2px", "max-width": "initial" },
198
+ src: n(ie),
199
+ onClick: v
200
+ }, null, 8, ue))
201
+ ])
202
+ ]),
203
+ _: 1
204
+ })
205
+ ]),
206
+ _: 1
207
+ })
208
+ ]),
209
+ t("div", de, [
210
+ t("div", pe, [
211
+ t("span", {
212
+ style: { color: "#757575" },
213
+ onClick: P
214
+ }, g(n(s)("sys.login.forgetPassword")), 1)
215
+ ]),
216
+ t("div", me, [
217
+ c(H, {
218
+ checked: R.value,
219
+ "onUpdate:checked": e[6] || (e[6] = (u) => R.value = u)
220
+ }, {
221
+ default: d(() => [
222
+ E(g(n(s)("sys.login.rememberMe")), 1)
223
+ ]),
224
+ _: 1
225
+ }, 8, ["checked"])
226
+ ])
227
+ ]),
228
+ t("div", null, [
229
+ c(O, {
230
+ type: "primary",
231
+ onClick: K,
232
+ loading: p.value,
233
+ class: "login-btn"
234
+ }, {
235
+ default: d(() => [
236
+ E(g(n(s)("sys.login.loginButton")), 1)
237
+ ]),
238
+ _: 1
239
+ }, 8, ["loading"])
240
+ ]),
241
+ t("div", {
242
+ class: "phone-login-btn pointer",
243
+ onClick: $
244
+ }, g(n(s)("sys.login.mobileSignInFormTitle")), 1)
245
+ ]),
246
+ _: 1
247
+ }, 8, ["model", "rules"]);
248
+ };
249
+ }
250
+ });
251
+ const Be = /* @__PURE__ */ ae(fe, [["__scopeId", "data-v-ffc0558b"]]);
252
+ export {
253
+ Be as default
254
+ };
@@ -0,0 +1,84 @@
1
+ import { ref as l, resolveComponent as i, openBlock as x, createBlock as A, unref as r, mergeProps as k, withCtx as c, createElementVNode as t, createVNode as u, createTextVNode as y } from "vue";
2
+ import { useModalInner as B, BasicModal as V } from "/@/components/Modal";
3
+ import { useMessage as b } from "/@/hooks/web/useMessage";
4
+ import { defHttp as z } from "/@/utils/http/axios";
5
+ import { _ as I } from "./index-9e1e1e53.mjs";
6
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
+ import "vue-router";
8
+ const N = { class: "aiWrap" }, $ = { class: "content" }, R = {
9
+ __name: "AiModal",
10
+ emits: ["register", "success"],
11
+ setup(U, { emit: p }) {
12
+ const d = {
13
+ aigc: "/online/cgform/api/aigc"
14
+ }, m = p, [v, { closeModal: _ }] = B(), { createMessage: f } = b(), o = l(""), s = l(!1), g = l("ai创建表"), n = () => {
15
+ _();
16
+ }, h = () => {
17
+ o.value.trim() === "" ? f.warning("请输入修饰词~") : (s.value = !0, z.post({ url: `${d.aigc}?prompt=${o.value}`, timeout: 1e3 * 60 * 5 }).then((a) => {
18
+ s.value = !1, n(), m("success"), o.value = "";
19
+ }).catch((a) => {
20
+ s.value = !1;
21
+ }));
22
+ };
23
+ return (a, e) => {
24
+ const C = i("a-input"), M = i("a-button");
25
+ return x(), A(r(V), k({
26
+ height: 180,
27
+ title: g.value,
28
+ width: 600,
29
+ maskClosable: !1
30
+ }, a.$attrs, {
31
+ onRegister: r(v),
32
+ footer: null,
33
+ onCancel: n
34
+ }), {
35
+ default: c(() => [
36
+ t("div", N, [
37
+ e[2] || (e[2] = t("div", { class: "titleArea" }, [
38
+ t("svg", {
39
+ t: "1707100353985",
40
+ class: "icon",
41
+ viewBox: "0 0 1024 1024",
42
+ version: "1.1",
43
+ xmlns: "http://www.w3.org/2000/svg",
44
+ "p-id": "4235",
45
+ width: "26",
46
+ height: "26"
47
+ }, [
48
+ t("path", {
49
+ d: "M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64z m32 704h-64v-64h64v64z m11.2-203.2l-5.6 4.8c-3.2 2.4-5.6 8-5.6 12.8v58.4h-64v-58.4c0-24.8 11.2-48 29.6-63.2l5.6-4.8c56-44.8 83.2-68 83.2-108C598.4 358.4 560 320 512 320c-49.6 0-86.4 36.8-86.4 86.4h-64C361.6 322.4 428 256 512 256c83.2 0 150.4 67.2 150.4 150.4 0 72.8-49.6 112.8-107.2 158.4z",
50
+ "p-id": "4236",
51
+ fill: "currentColor"
52
+ })
53
+ ]),
54
+ t("h3", null, "创建工作表字段需要专业建议?试试AI智能推荐吧")
55
+ ], -1)),
56
+ e[3] || (e[3] = t("p", { class: "tip" }, "可尝试添加修饰词,如:智能家居行业的生产计划表", -1)),
57
+ t("div", $, [
58
+ u(C, {
59
+ value: o.value,
60
+ "onUpdate:value": e[0] || (e[0] = (w) => o.value = w),
61
+ valueModifiers: { trim: !0 },
62
+ placeholder: "请输入修饰词"
63
+ }, null, 8, ["value"]),
64
+ u(M, {
65
+ loading: s.value,
66
+ type: "primary",
67
+ onClick: h
68
+ }, {
69
+ default: c(() => e[1] || (e[1] = [
70
+ y("生成表")
71
+ ])),
72
+ _: 1
73
+ }, 8, ["loading"])
74
+ ])
75
+ ])
76
+ ]),
77
+ _: 1
78
+ }, 16, ["title", "onRegister"]);
79
+ };
80
+ }
81
+ }, q = /* @__PURE__ */ I(R, [["__scopeId", "data-v-a85052cc"]]);
82
+ export {
83
+ q as default
84
+ };
@@ -0,0 +1,310 @@
1
+ var h = (O, M, P) => new Promise((U, k) => {
2
+ var s = (m) => {
3
+ try {
4
+ g(P.next(m));
5
+ } catch (y) {
6
+ k(y);
7
+ }
8
+ }, d = (m) => {
9
+ try {
10
+ g(P.throw(m));
11
+ } catch (y) {
12
+ k(y);
13
+ }
14
+ }, g = (m) => m.done ? U(m.value) : Promise.resolve(m.value).then(s, d);
15
+ g((P = P.apply(O, M)).next());
16
+ });
17
+ import { defineComponent as ue, reactive as de, ref as u, computed as c, unref as o, resolveComponent as T, openBlock as B, createElementBlock as ce, Fragment as me, createElementVNode as t, createVNode as a, toDisplayString as v, withDirectives as q, withCtx as w, normalizeClass as f, createBlock as z, vShow as G, toRaw as K } from "vue";
18
+ import pe from "./AppLoginHeader-4432c584.mjs";
19
+ import { useI18n as fe } from "/@/hooks/web/useI18n";
20
+ import { useMessage as W } from "/@/hooks/web/useMessage";
21
+ import { getCaptcha as ve, phoneVerify as ge, passwordChange as we } from "/@/api/sys/user";
22
+ import { SmsEnum as Pe } from "/@/views/sys/login/useLogin";
23
+ import ye from "/@/components/jeecg/captcha/CaptchaModal.vue";
24
+ import { useModal as _e } from "/@/components/Modal";
25
+ import { ExceptionEnum as he } from "/@/enums/exceptionEnum";
26
+ import { _ as Ce } from "./index-9e1e1e53.mjs";
27
+ import "/@/assets/images/logo.png";
28
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
29
+ import "vue-router";
30
+ const ke = { class: "forget-pwd-box" }, Re = { class: "forget-pwd-subject" }, be = { class: "flex-row align-items-center margin-top40" }, xe = { class: "register-title" }, Fe = { class: "register-content" }, Me = { class: "active-form-title" }, Ue = /* @__PURE__ */ ue({
31
+ __name: "AppForgetPassword",
32
+ emits: ["return-login", "login-account"],
33
+ setup(O, { emit: M }) {
34
+ const [P, { openModal: U }] = _e(), { createMessage: k } = W(), { t: s } = fe(), d = de({
35
+ phone: "",
36
+ smscode: "",
37
+ forgetPassword: "",
38
+ policy: !0
39
+ }), g = u(), m = u(), y = u(), N = u(), A = u(), R = u("vailPhone"), p = u(""), J = c(() => E(s("sys.login.mobilePlaceholder"))), Q = c(() => E(s("sys.login.smsPlaceholder"))), X = c(() => E(s("sys.login.passwordPlaceholder"))), Y = c(() => ({
40
+ phone: o(J),
41
+ smscode: o(Q)
42
+ })), Z = c(() => ({
43
+ forgetPassword: o(X),
44
+ confirmPassword: [{ validator: se(o(l).forgetPassword), trigger: "change" }]
45
+ })), { notification: ee, createErrorModal: oe } = W(), D = c(() => s("component.countdown.normalText")), L = c(() => s("component.countdown.sendText", [o(_)])), se = (n) => (e, i) => h(this, null, function* () {
46
+ return i ? i !== n ? Promise.reject(s("sys.login.diffPwd")) : Promise.resolve() : Promise.reject(s("sys.login.passwordPlaceholder"));
47
+ });
48
+ function E(n) {
49
+ return [
50
+ {
51
+ required: !0,
52
+ message: n,
53
+ trigger: "change"
54
+ }
55
+ ];
56
+ }
57
+ const $ = c(() => d.phone != "" || o(p) === "phone" ? "current-active" : ""), te = c(() => d.smscode != "" || o(p) === "smscode" ? "current-active" : ""), ne = c(() => o(l).forgetPassword != "" || o(p) === "forgetPassword" ? "current-active" : ""), re = c(() => o(l).confirmPassword != "" || o(p) === "confirmPassword" ? "current-active" : ""), j = M, I = u(!0), _ = u(60), b = u(null), S = u(), l = u([]);
58
+ function x(n) {
59
+ p.value = n, n === "phone" ? g.value.focus() : n === "smscode" ? y.value.focus() : n === "confirmPassword" ? A.value.focus() : m.value.focus();
60
+ }
61
+ function F() {
62
+ p.value = "";
63
+ }
64
+ function V() {
65
+ return h(this, null, function* () {
66
+ if (!d.phone) {
67
+ k.warn(s("sys.login.mobilePlaceholder"));
68
+ return;
69
+ }
70
+ (yield ve({ mobile: d.phone, smsmode: Pe.FORGET_PASSWORD }).catch((e) => {
71
+ e.code === he.PHONE_SMS_FAIL_CODE && U(!0, {});
72
+ })) && (o(b) || (_.value = 60, I.value = !1, b.value = setInterval(() => {
73
+ o(_) > 0 && o(_) <= 60 ? _.value = _.value - 1 : (I.value = !0, clearInterval(o(b)), b.value = null);
74
+ }, 1e3)));
75
+ });
76
+ }
77
+ function le() {
78
+ S.value.validateFields().then((n) => h(this, null, function* () {
79
+ const e = yield ge(
80
+ K({
81
+ phone: n.phone,
82
+ smscode: n.smscode
83
+ })
84
+ );
85
+ if (e.success) {
86
+ let i = {
87
+ username: e.result.username,
88
+ phone: n.phone,
89
+ smscode: e.result.smscode
90
+ };
91
+ l.value = i, R.value = "vailPwd";
92
+ } else
93
+ ee.error({
94
+ message: s("sys.api.errorTip"),
95
+ description: e.message || s("sys.api.networkExceptionMsg"),
96
+ duration: 3
97
+ });
98
+ }));
99
+ }
100
+ function ae() {
101
+ return h(this, null, function* () {
102
+ N.value.validateFields().then((n) => h(this, null, function* () {
103
+ const e = yield we(
104
+ K({
105
+ username: n.username,
106
+ password: n.forgetPassword,
107
+ smscode: o(l).smscode,
108
+ phone: o(l).phone
109
+ })
110
+ );
111
+ e.success ? (j("login-account", { account: n.username, password: n.forgetPassword }), S.value.resetFields(), l.value = {}, R.value = "vailPhone") : oe({
112
+ title: s("sys.api.errorTip"),
113
+ content: e.message || s("sys.api.networkExceptionMsg")
114
+ });
115
+ }));
116
+ });
117
+ }
118
+ function ie() {
119
+ j("return-login");
120
+ }
121
+ return (n, e) => {
122
+ const i = T("a-input"), C = T("a-form-item"), H = T("a-form");
123
+ return B(), ce(me, null, [
124
+ t("div", ke, [
125
+ t("div", Re, [
126
+ a(pe),
127
+ t("div", be, [
128
+ t("div", xe, v(o(s)("sys.login.forgetFormTitle")), 1)
129
+ ]),
130
+ t("div", Fe, [
131
+ q(a(H, {
132
+ ref_key: "phoneUpdateRef",
133
+ ref: S,
134
+ model: d,
135
+ rules: Y.value
136
+ }, {
137
+ default: w(() => [
138
+ t("div", {
139
+ class: f(["content-item", $.value]),
140
+ onClick: e[1] || (e[1] = (r) => x("phone"))
141
+ }, [
142
+ a(C, { name: "phone" }, {
143
+ default: w(() => [
144
+ a(i, {
145
+ ref_key: "phoneRef",
146
+ ref: g,
147
+ value: d.phone,
148
+ "onUpdate:value": e[0] || (e[0] = (r) => d.phone = r),
149
+ style: { height: "40px" },
150
+ onBlur: F
151
+ }, null, 8, ["value"]),
152
+ t("div", {
153
+ class: f(["form-title", p.value === "phone" ? "active-title" : ""])
154
+ }, v(o(s)("sys.login.mobile")), 3)
155
+ ]),
156
+ _: 1
157
+ })
158
+ ], 2),
159
+ t("div", {
160
+ class: f(["content-item", te.value])
161
+ }, [
162
+ a(C, {
163
+ name: "smscode",
164
+ onClick: e[3] || (e[3] = (r) => x("smscode"))
165
+ }, {
166
+ default: w(() => [
167
+ a(i, {
168
+ ref_key: "smscodeRef",
169
+ ref: y,
170
+ maxLength: 6,
171
+ value: d.smscode,
172
+ "onUpdate:value": e[2] || (e[2] = (r) => d.smscode = r),
173
+ style: { height: "40px" },
174
+ onBlur: F
175
+ }, null, 8, ["value"]),
176
+ t("div", {
177
+ class: f(["form-title", p.value === "smscode" ? "active-title" : ""])
178
+ }, v(o(s)("sys.login.smsCode")), 3)
179
+ ]),
180
+ _: 1
181
+ }),
182
+ I.value ? (B(), z(i, {
183
+ key: 0,
184
+ type: "button",
185
+ class: "aui-code-line pointer",
186
+ bordered: !1,
187
+ onClick: V,
188
+ value: D.value,
189
+ "onUpdate:value": e[4] || (e[4] = (r) => D.value = r)
190
+ }, null, 8, ["value"])) : (B(), z(i, {
191
+ key: 1,
192
+ type: "button",
193
+ class: "aui-code-line disabled-btn",
194
+ bordered: !1,
195
+ value: L.value,
196
+ "onUpdate:value": e[5] || (e[5] = (r) => L.value = r)
197
+ }, null, 8, ["value"]))
198
+ ], 2),
199
+ t("div", {
200
+ class: "forget-btn pointer",
201
+ onClick: le
202
+ }, [
203
+ t("span", null, v(o(s)("sys.login.nextStep")), 1)
204
+ ]),
205
+ e[11] || (e[11] = t("div", { class: "line" }, null, -1))
206
+ ]),
207
+ _: 1
208
+ }, 8, ["model", "rules"]), [
209
+ [G, R.value === "vailPhone"]
210
+ ]),
211
+ q(a(H, {
212
+ ref_key: "pwdUpdateRef",
213
+ ref: N,
214
+ model: l.value,
215
+ rules: Z.value
216
+ }, {
217
+ default: w(() => [
218
+ t("div", {
219
+ class: f(["content-item", $.value])
220
+ }, [
221
+ a(C, { name: "username" }, {
222
+ default: w(() => [
223
+ a(i, {
224
+ ref_key: "phoneRef",
225
+ ref: g,
226
+ value: l.value.username,
227
+ "onUpdate:value": e[6] || (e[6] = (r) => l.value.username = r),
228
+ style: { height: "40px" },
229
+ disabled: ""
230
+ }, null, 8, ["value"]),
231
+ t("div", Me, v(o(s)("sys.login.userName")), 1)
232
+ ]),
233
+ _: 1
234
+ })
235
+ ], 2),
236
+ t("div", {
237
+ class: f(["content-item", ne.value]),
238
+ onClick: e[8] || (e[8] = (r) => x("forgetPassword"))
239
+ }, [
240
+ a(C, { name: "forgetPassword" }, {
241
+ default: w(() => [
242
+ a(i, {
243
+ ref_key: "pwdRef",
244
+ ref: m,
245
+ type: "password",
246
+ value: l.value.forgetPassword,
247
+ "onUpdate:value": e[7] || (e[7] = (r) => l.value.forgetPassword = r),
248
+ style: { height: "40px" },
249
+ onBlur: F
250
+ }, null, 8, ["value"]),
251
+ t("div", {
252
+ class: f(["form-title", p.value === "password" ? "active-title" : ""])
253
+ }, v(o(s)("sys.login.password")), 3)
254
+ ]),
255
+ _: 1
256
+ })
257
+ ], 2),
258
+ t("div", {
259
+ class: f(["content-item", re.value]),
260
+ onClick: e[10] || (e[10] = (r) => x("confirmPassword"))
261
+ }, [
262
+ a(C, { name: "confirmPassword" }, {
263
+ default: w(() => [
264
+ a(i, {
265
+ ref_key: "conPwdRef",
266
+ ref: A,
267
+ type: "password",
268
+ value: l.value.confirmPassword,
269
+ "onUpdate:value": e[9] || (e[9] = (r) => l.value.confirmPassword = r),
270
+ style: { height: "40px" },
271
+ onBlur: F
272
+ }, null, 8, ["value"]),
273
+ t("div", {
274
+ class: f(["form-title", p.value === "password" ? "active-title" : ""])
275
+ }, v(o(s)("sys.login.confirmPassword")), 3)
276
+ ]),
277
+ _: 1
278
+ })
279
+ ], 2),
280
+ t("div", {
281
+ class: "forget-btn pointer",
282
+ onClick: ae
283
+ }, e[12] || (e[12] = [
284
+ t("span", null, "完成", -1)
285
+ ])),
286
+ e[13] || (e[13] = t("div", { class: "line" }, null, -1))
287
+ ]),
288
+ _: 1
289
+ }, 8, ["model", "rules"]), [
290
+ [G, R.value === "vailPwd"]
291
+ ]),
292
+ t("span", {
293
+ class: "to-login pointer",
294
+ onClick: ie
295
+ }, v(o(s)("sys.exception.backLogin")), 1)
296
+ ])
297
+ ])
298
+ ]),
299
+ a(ye, {
300
+ onRegister: o(P),
301
+ onOk: V
302
+ }, null, 8, ["onRegister"])
303
+ ], 64);
304
+ };
305
+ }
306
+ });
307
+ const qe = /* @__PURE__ */ Ce(Ue, [["__scopeId", "data-v-b3303144"]]);
308
+ export {
309
+ qe as default
310
+ };