@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,287 @@
1
+ var L = (P, x, u) => new Promise((a, d) => {
2
+ var s = (c) => {
3
+ try {
4
+ g(u.next(c));
5
+ } catch (l) {
6
+ d(l);
7
+ }
8
+ }, w = (c) => {
9
+ try {
10
+ g(u.throw(c));
11
+ } catch (l) {
12
+ d(l);
13
+ }
14
+ }, g = (c) => c.done ? a(c.value) : Promise.resolve(c.value).then(s, w);
15
+ g((u = u.apply(P, x)).next());
16
+ });
17
+ import { defineComponent as Q, ref as r, reactive as X, onMounted as Y, resolveComponent as T, openBlock as S, createElementBlock as F, Fragment as Z, createElementVNode as e, createVNode as t, toDisplayString as R, unref as p, withDirectives as m, vShow as f, createCommentVNode as U, withCtx as v, withModifiers as oo, createTextVNode as eo, toRaw as no, nextTick as to } from "vue";
18
+ import io from "./AppLoginHeader-4432c584.mjs";
19
+ import lo from "./AppRegister-79a62c59.mjs";
20
+ import ro from "./AccountLoginForm-84cbd344.mjs";
21
+ import so from "./PhoneLoginForm-86437a9d.mjs";
22
+ import co from "./AppForgetPassword-52443f23.mjs";
23
+ import { useI18n as ao } from "/@/hooks/web/useI18n";
24
+ import { createFromIconfontCN as uo, WechatFilled as go } from "@ant-design/icons-vue";
25
+ import { useMessage as po } from "/@/hooks/web/useMessage";
26
+ import { useUserStore as mo } from "/@/store/modules/user";
27
+ import fo from "./AppTenant-f0bef7ca.mjs";
28
+ import { router as V } from "/@/router";
29
+ import vo from "./AppThirdForm-fd8b4604.mjs";
30
+ import { useLocale as _o } from "/@/locales/useLocale";
31
+ import { PageEnum as ho } from "/@/enums/pageEnum";
32
+ import { _ as yo } from "./index-9e1e1e53.mjs";
33
+ import "/@/assets/images/logo.png";
34
+ import "/@/api/sys/user";
35
+ import "/@/views/sys/login/useLogin";
36
+ import "./AppNameEmail-3303a037.mjs";
37
+ import "/@/components/jeecg/captcha/CaptchaModal.vue";
38
+ import "/@/components/Modal";
39
+ import "/@/enums/exceptionEnum";
40
+ import "/@/assets/images/checkcode.png";
41
+ import "/@/utils/http/axios";
42
+ import "ant-design-vue";
43
+ import "/@/components/CountDown";
44
+ import "/@/hooks/setting";
45
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
46
+ import "vue-router";
47
+ const Lo = {
48
+ key: 0,
49
+ class: "login-box"
50
+ }, To = { class: "login-subject" }, wo = { class: "flex-row align-items-center margin-top10" }, Ao = { class: "login-title" }, bo = { class: "content-box" }, ko = {
51
+ key: 0,
52
+ class: "text-center"
53
+ }, Co = { class: "login-other" }, Ro = { style: { width: "100%", display: "flex" } }, xo = { class: "aui-third-login" }, Io = { class: "login-language" }, So = /* @__PURE__ */ Q({
54
+ __name: "AppLogin",
55
+ setup(P) {
56
+ const { changeLocale: x, getLocale: u } = _o(), a = r(), d = mo(), s = r("accountLogin");
57
+ uo({
58
+ scriptUrl: "//at.alicdn.com/t/font_2316098_umqusozousr.js"
59
+ });
60
+ const w = r(), g = r(), c = r(), { t: l } = ao(), i = r("login");
61
+ r(), X({
62
+ phone: "",
63
+ smscode: ""
64
+ });
65
+ const { notification: D, createErrorModal: Fo } = po(), A = r("zh_CN"), b = r(!1), _ = r(!1);
66
+ function H() {
67
+ i.value = "register", setTimeout(() => {
68
+ w.value.clearValidate();
69
+ }, 300);
70
+ }
71
+ function E() {
72
+ i.value = "login", s.value = "accountLogin";
73
+ }
74
+ function N(o) {
75
+ i.value = "login", s.value = "accountLogin", setTimeout(() => {
76
+ g.value.setAccountData(o);
77
+ }, 300);
78
+ }
79
+ function B(o) {
80
+ s.value = o;
81
+ }
82
+ function $() {
83
+ i.value = "forgetPwd";
84
+ }
85
+ function I(o) {
86
+ return L(this, null, function* () {
87
+ var h, y;
88
+ const n = no(d.getLoginInfo), { tenantList: k } = n;
89
+ if (!k || k.length === 0)
90
+ i.value = "tenant";
91
+ else {
92
+ D.success({
93
+ message: l("sys.login.loginSuccessTitle"),
94
+ description: `${l("sys.login.loginSuccessDesc")}: ${o}`,
95
+ duration: 3
96
+ });
97
+ let C = (y = (h = V.currentRoute.value) == null ? void 0 : h.query) == null ? void 0 : y.redirect;
98
+ if (C) {
99
+ window.open(decodeURIComponent(C), "_self");
100
+ return;
101
+ }
102
+ yield V.replace(d.getUserInfo && d.getUserInfo.homePath || ho.BASE_HOME), M();
103
+ }
104
+ });
105
+ }
106
+ function M() {
107
+ window.location.reload();
108
+ }
109
+ function j(o) {
110
+ a.value.onThirdLogin(o);
111
+ }
112
+ function q(o) {
113
+ return L(this, null, function* () {
114
+ yield x(o);
115
+ });
116
+ }
117
+ function O({ key: o }) {
118
+ A.value = o, p(u) !== o && q(o);
119
+ }
120
+ function W(o) {
121
+ to(() => {
122
+ o.loginType != "thirdLogin" && (b.value = !0, a.value.hideBindThirdAccount()), o.loginType === "login" && (s.value = "phoneLogin"), i.value = o.loginType;
123
+ });
124
+ }
125
+ function G(o) {
126
+ return L(this, null, function* () {
127
+ _.value = !0, yield a.value.bindThirdAccount(o), _.value = !1;
128
+ });
129
+ }
130
+ function J(o) {
131
+ return L(this, null, function* () {
132
+ _.value = !0, yield a.value.createAccountBindThird(o), _.value = !1;
133
+ });
134
+ }
135
+ return Y(() => {
136
+ let o = document.getElementById("app");
137
+ o.style.height = "auto";
138
+ let n = document.getElementsByTagName("body")[0].style;
139
+ n.backgroundColor = "#f2f5f7";
140
+ }), (o, n) => {
141
+ const k = T("a-spin"), h = T("Icon"), y = T("a-menu-item"), C = T("a-menu"), K = T("a-dropdown");
142
+ return S(), F(Z, null, [
143
+ i.value === "login" ? (S(), F("div", Lo, [
144
+ e("div", To, [
145
+ t(io),
146
+ e("div", wo, [
147
+ e("div", Ao, R(s.value === "accountLogin" ? p(l)("sys.login.signInFormTitle") : p(l)("sys.login.mobileSignInFormTitle")), 1)
148
+ ]),
149
+ e("div", bo, [
150
+ m(e("div", null, [
151
+ t(ro, {
152
+ ref_key: "accountLoginRef",
153
+ ref: g,
154
+ onLogin: B,
155
+ onForgetPwd: $,
156
+ onLoginSuccess: I
157
+ }, null, 512)
158
+ ], 512), [
159
+ [f, s.value === "accountLogin"]
160
+ ]),
161
+ m(e("div", null, [
162
+ t(so, {
163
+ onLogin: B,
164
+ onLoginSuccess: I,
165
+ bindThirdAccount: b.value,
166
+ onBindThirdPhone: G
167
+ }, null, 8, ["bindThirdAccount"])
168
+ ], 512), [
169
+ [f, s.value === "phoneLogin"]
170
+ ]),
171
+ b.value ? U("", !0) : (S(), F("div", ko, [
172
+ e("div", Co, R(p(l)("sys.login.otherSignIn")), 1),
173
+ e("div", Ro, [
174
+ e("div", xo, [
175
+ e("a", {
176
+ title: "微信",
177
+ onClick: n[0] || (n[0] = (z) => j("wechat_open"))
178
+ }, [
179
+ t(p(go), { style: { color: "rgb(75, 176, 79)" } })
180
+ ])
181
+ ])
182
+ ]),
183
+ n[3] || (n[3] = e("div", { class: "line" }, null, -1)),
184
+ e("div", {
185
+ class: "register-account pointer",
186
+ onClick: H
187
+ }, R(p(l)("sys.login.registerButton")), 1)
188
+ ]))
189
+ ])
190
+ ])
191
+ ])) : U("", !0),
192
+ m(e("div", null, [
193
+ t(k, { spinning: _.value }, {
194
+ default: v(() => [
195
+ t(lo, {
196
+ ref_key: "appRegisterRef",
197
+ ref: w,
198
+ onReturnLogin: E,
199
+ bindThirdAccount: b.value,
200
+ onLoginAccount: N,
201
+ onBindThirdAccount: J
202
+ }, null, 8, ["bindThirdAccount"])
203
+ ]),
204
+ _: 1
205
+ }, 8, ["spinning"])
206
+ ], 512), [
207
+ [f, i.value === "register"]
208
+ ]),
209
+ m(e("div", null, [
210
+ t(co, {
211
+ ref_key: "appForgetPwdRef",
212
+ ref: c,
213
+ onReturnLogin: E,
214
+ onLoginAccount: N
215
+ }, null, 512)
216
+ ], 512), [
217
+ [f, i.value === "forgetPwd"]
218
+ ]),
219
+ m(e("div", null, [
220
+ t(fo, { onSuccess: M })
221
+ ], 512), [
222
+ [f, i.value === "tenant"]
223
+ ]),
224
+ m(e("div", Io, [
225
+ t(h, {
226
+ icon: "ant-design:global-outlined",
227
+ style: { "font-size": "13px", color: "#9e9e9e" }
228
+ }),
229
+ t(K, {
230
+ trigger: ["click"],
231
+ placement: "top"
232
+ }, {
233
+ overlay: v(() => [
234
+ t(C, {
235
+ value: A.value,
236
+ "onUpdate:value": n[2] || (n[2] = (z) => A.value = z),
237
+ onClick: O
238
+ }, {
239
+ default: v(() => [
240
+ t(y, { key: "zh_CN" }, {
241
+ default: v(() => n[4] || (n[4] = [
242
+ e("span", null, "简体中文", -1)
243
+ ])),
244
+ _: 1
245
+ }),
246
+ t(y, { key: "en" }, {
247
+ default: v(() => n[5] || (n[5] = [
248
+ e("span", null, "English", -1)
249
+ ])),
250
+ _: 1
251
+ })
252
+ ]),
253
+ _: 1
254
+ }, 8, ["value"])
255
+ ]),
256
+ default: v(() => [
257
+ e("span", {
258
+ class: "language-drop pointer",
259
+ onClick: n[1] || (n[1] = oo(() => {
260
+ }, ["prevent"]))
261
+ }, [
262
+ eo(R(A.value === "zh_CN" ? "CN" : "EN") + " ", 1),
263
+ t(h, {
264
+ icon: "ant-design:down-outlined",
265
+ style: { color: "#9e9e9e", "font-size": "13px" }
266
+ })
267
+ ])
268
+ ]),
269
+ _: 1
270
+ })
271
+ ], 512), [
272
+ [f, i.value !== "thirdLogin"]
273
+ ]),
274
+ t(vo, {
275
+ ref_key: "thirdModalRef",
276
+ ref: a,
277
+ onType: W,
278
+ onLoginSuccess: I
279
+ }, null, 512)
280
+ ], 64);
281
+ };
282
+ }
283
+ });
284
+ const ae = /* @__PURE__ */ yo(So, [["__scopeId", "data-v-1103e34e"]]);
285
+ export {
286
+ ae as default
287
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as t, openBlock as i, createElementBlock as r, createElementVNode as o, unref as s } from "vue";
2
+ import p from "/@/assets/images/logo.png";
3
+ import { _ } from "./index-9e1e1e53.mjs";
4
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
+ import "/@/hooks/web/useMessage";
6
+ import "vue-router";
7
+ const a = { class: "login-header" }, l = ["src"], c = /* @__PURE__ */ t({
8
+ __name: "AppLoginHeader",
9
+ setup(m) {
10
+ function n() {
11
+ window.open("https://www.qiaoqiaoyun.com/", "_target");
12
+ }
13
+ return (d, e) => (i(), r("div", a, [
14
+ o("img", {
15
+ src: s(p),
16
+ alt: "敲敲云",
17
+ class: "login-image",
18
+ onClick: n
19
+ }, null, 8, l),
20
+ e[0] || (e[0] = o("span", { class: "login-header-name" }, null, -1))
21
+ ]));
22
+ }
23
+ });
24
+ const v = /* @__PURE__ */ _(c, [["__scopeId", "data-v-6df6e301"]]);
25
+ export {
26
+ v as default
27
+ };
@@ -0,0 +1,180 @@
1
+ var h = (E, x, m) => new Promise((o, r) => {
2
+ var v = (i) => {
3
+ try {
4
+ c(m.next(i));
5
+ } catch (d) {
6
+ r(d);
7
+ }
8
+ }, _ = (i) => {
9
+ try {
10
+ c(m.throw(i));
11
+ } catch (d) {
12
+ r(d);
13
+ }
14
+ }, c = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(v, _);
15
+ c((m = m.apply(E, x)).next());
16
+ });
17
+ import { defineComponent as q, reactive as L, ref as p, computed as g, unref as t, resolveComponent as y, openBlock as $, createElementBlock as j, createVNode as l, createElementVNode as n, withCtx as k, normalizeClass as w, toDisplayString as z, createTextVNode as H, toRaw as G } from "vue";
18
+ import J from "./AppLoginHeader-4432c584.mjs";
19
+ import { useI18n as K } from "/@/hooks/web/useI18n";
20
+ import { register as O } from "/@/api/sys/user";
21
+ import { useMessage as P } from "/@/hooks/web/useMessage";
22
+ import { _ as Q } from "./index-9e1e1e53.mjs";
23
+ import "/@/assets/images/logo.png";
24
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
25
+ import "vue-router";
26
+ const W = { class: "name-email-subject" }, X = { class: "name-email-content" }, Y = /* @__PURE__ */ q({
27
+ __name: "AppNameEmail",
28
+ emits: ["login-account", "bind-third-account"],
29
+ setup(E, { expose: x, emit: m }) {
30
+ const o = L({
31
+ realname: "",
32
+ email: ""
33
+ }), { t: r } = K(), v = p(), _ = p(), c = p(), i = g(() => [{ required: !0, message: "请填写邮箱", trigger: "change" }, { type: "email", message: "请填写正确的邮箱" }]), d = g(() => [{ required: !0, message: "请填写昵称", trigger: "change" }]), M = g(() => ({
34
+ realname: t(d),
35
+ email: t(i)
36
+ })), u = p(""), F = g(() => o.realname || t(u) === "realname" ? "current-active" : ""), S = g(() => o.email != "" || t(u) === "email" ? "current-active" : ""), a = p({}), N = m, { notification: C, createErrorModal: Z } = P(), R = p(!1);
37
+ function b(s) {
38
+ u.value = s, s === "realname" ? v.value.focus() : _.value.focus();
39
+ }
40
+ function A() {
41
+ u.value = "";
42
+ }
43
+ function T() {
44
+ return h(this, null, function* () {
45
+ c.value.validateFields().then((s) => h(this, null, function* () {
46
+ if (t(a).bindThirdAccount)
47
+ N("bind-third-account", {
48
+ username: t(a).phone,
49
+ email: s.email,
50
+ realname: s.realname,
51
+ password: t(a).password,
52
+ phone: t(a).phone,
53
+ smscode: t(a).smscode
54
+ });
55
+ else
56
+ try {
57
+ R.value = !0;
58
+ const e = yield O(
59
+ G({
60
+ username: t(a).phone,
61
+ email: s.email,
62
+ realname: s.realname,
63
+ password: t(a).password,
64
+ phone: t(a).phone,
65
+ smscode: t(a).smscode
66
+ })
67
+ );
68
+ e && e.data.success ? (N("login-account", { account: t(a).phone, password: t(a).password }), C.success({
69
+ message: void 0,
70
+ description: e.data.message || r("sys.api.registerMsg"),
71
+ duration: 3
72
+ })) : C.warning({
73
+ message: r("sys.api.errorTip"),
74
+ description: e.data.message || r("sys.api.networkExceptionMsg"),
75
+ duration: 3
76
+ });
77
+ } catch (e) {
78
+ C.error({
79
+ message: r("sys.api.errorTip"),
80
+ description: e.message || r("sys.api.networkExceptionMsg"),
81
+ duration: 3
82
+ });
83
+ } finally {
84
+ R.value = !1;
85
+ }
86
+ }));
87
+ });
88
+ }
89
+ function U(s) {
90
+ a.value = s;
91
+ }
92
+ return x({
93
+ setRegisterData: U
94
+ }), (s, e) => {
95
+ const B = y("a-input"), I = y("a-form-item"), D = y("a-button"), V = y("a-form");
96
+ return $(), j("div", W, [
97
+ l(J),
98
+ e[5] || (e[5] = n("div", { class: "flex-row align-items-center margin-top40" }, [
99
+ n("div", { class: "register-title" }, " 请填写昵称和邮箱 ")
100
+ ], -1)),
101
+ e[6] || (e[6] = n("div", { class: "name-email-desc align-items-center" }, [
102
+ n("span", { style: { color: "#9e9e9e" } }, "请填写昵称和邮箱,方便大家与您联系")
103
+ ], -1)),
104
+ n("div", X, [
105
+ l(V, {
106
+ ref_key: "formRef",
107
+ ref: c,
108
+ model: o,
109
+ rules: M.value
110
+ }, {
111
+ default: k(() => [
112
+ n("div", {
113
+ class: w(["content-item", F.value]),
114
+ onClick: e[1] || (e[1] = (f) => b("realname"))
115
+ }, [
116
+ l(I, { name: "realname" }, {
117
+ default: k(() => [
118
+ l(B, {
119
+ ref_key: "realNameRef",
120
+ ref: v,
121
+ value: o.realname,
122
+ "onUpdate:value": e[0] || (e[0] = (f) => o.realname = f),
123
+ style: { height: "40px" },
124
+ onBlur: A
125
+ }, null, 8, ["value"]),
126
+ n("div", {
127
+ class: w(["form-title", u.value === "username" ? "active-title" : ""])
128
+ }, " 昵称 ", 2)
129
+ ]),
130
+ _: 1
131
+ })
132
+ ], 2),
133
+ n("div", {
134
+ class: w(["content-item", S.value]),
135
+ onClick: e[3] || (e[3] = (f) => b("email"))
136
+ }, [
137
+ l(I, { name: "email" }, {
138
+ default: k(() => [
139
+ l(B, {
140
+ ref_key: "emailRef",
141
+ ref: _,
142
+ value: o.email,
143
+ "onUpdate:value": e[2] || (e[2] = (f) => o.email = f),
144
+ style: { height: "40px" },
145
+ onBlur: A
146
+ }, null, 8, ["value"]),
147
+ n("div", {
148
+ class: w(["form-title", u.value === "email" ? "active-title" : ""])
149
+ }, z(t(r)("sys.login.email")), 3)
150
+ ]),
151
+ _: 1
152
+ })
153
+ ], 2),
154
+ n("div", {
155
+ class: "pointer",
156
+ onClick: T
157
+ }, [
158
+ l(D, {
159
+ type: "primary",
160
+ class: "next-step",
161
+ loading: R.value
162
+ }, {
163
+ default: k(() => e[4] || (e[4] = [
164
+ H("完成")
165
+ ])),
166
+ _: 1
167
+ }, 8, ["loading"])
168
+ ])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["model", "rules"])
172
+ ])
173
+ ]);
174
+ };
175
+ }
176
+ });
177
+ const ce = /* @__PURE__ */ Q(Y, [["__scopeId", "data-v-f3b40873"]]);
178
+ export {
179
+ ce as default
180
+ };