@jeecg/online 3.7.1-RC → 3.7.4

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 (142) hide show
  1. package/AccountLoginForm-d2fed52f.mjs +254 -0
  2. package/AiModal-fbe4b68a.mjs +84 -0
  3. package/AppForgetPassword-3b3bec82.mjs +310 -0
  4. package/AppLogin-cd2e2a87.mjs +287 -0
  5. package/AppLoginHeader-9b5be678.mjs +27 -0
  6. package/AppNameEmail-b4e32ae8.mjs +180 -0
  7. package/AppRegister-7117b66a.mjs +303 -0
  8. package/AppTenant-5817729b.mjs +373 -0
  9. package/AppThirdForm-d14fb5e5.mjs +189 -0
  10. package/AuthButtonConfig-5e3b6d72.mjs +156 -0
  11. package/AuthButtonTree-7b4ec967.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
  15. package/AuthFieldTree-2d458c0c.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1b9cbe19.mjs +260 -0
  21. package/CgformCopyList-580bba0f.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
  25. package/CodeFileListModal-71752603.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
  27. package/CodeGeneratorModal-2fe1e920.mjs +281 -0
  28. package/CustomButtonList-22b5cdb3.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
  32. package/DropMenuItem-b1a8f47d.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.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-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
  44. package/JModalTip-192fafa1.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
  47. package/LeftRole-9d88976d.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
  53. package/OnlCgformErpList-8fd15fc1.mjs +488 -0
  54. package/OnlCgformErpSubTable-3515150b.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
  56. package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
  57. package/OnlCgformTabList-583ac15f.mjs +424 -0
  58. package/OnlineAutoList-36ec0957.mjs +513 -0
  59. package/OnlineAutoModal-c0743caf.mjs +260 -0
  60. package/OnlineAutoTreeList-1cd718be.mjs +523 -0
  61. package/OnlineCustomModal-661ee850.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
  63. package/OnlineForm-c1fb38eb.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
  69. package/OnlineQueryForm-ca6186a3.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
  75. package/OnlineTabForm-89389384.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
  78. package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
  81. package/SetSwitchOptions-cdcb22a1.mjs +62 -0
  82. package/ShareAddView-f713c0a5.mjs +86 -0
  83. package/ShareEditView-691764ad.mjs +92 -0
  84. package/ShareView-df344a8d.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
  86. package/SingleView-ad0287d6.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
  88. package/SuperQuery-2b293e3b.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-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  94. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  95. package/index-181f8344.mjs +219 -0
  96. package/index-19eaef11.mjs +11 -0
  97. package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
  98. package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-93341e02.mjs +110 -0
  101. package/index-bef7fe2d.mjs +74 -0
  102. package/index-d6f9ada7.mjs +135 -0
  103. package/index-f3683351.mjs +57 -0
  104. package/main.index.js +1 -1
  105. package/package.json +1 -1
  106. package/shareStore-7de6c7a6.mjs +67 -0
  107. package/style.css +1 -1
  108. package/useCgformList-13c8aab7.mjs +378 -0
  109. package/useExtendComponent-3f5734ca.mjs +4459 -0
  110. package/useListButton-ee23874a.mjs +719 -0
  111. package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
  112. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  113. package/utils-9fce7606.mjs +16 -0
  114. package/AiModal-6de335e3.mjs +0 -84
  115. package/AuthButtonConfig-89763932.mjs +0 -154
  116. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  117. package/AuthFieldTree-e326fc38.mjs +0 -232
  118. package/CgformCopyList-365b3e8f.mjs +0 -251
  119. package/CodeFileListModal-24601898.mjs +0 -159
  120. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  121. package/CustomButtonList-f07bc695.mjs +0 -397
  122. package/JModalTip-b055ab60.mjs +0 -49
  123. package/LeftRole-2ed8a2bf.mjs +0 -86
  124. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  125. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  126. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  127. package/OnlCgformTabList-019ad753.mjs +0 -408
  128. package/OnlineAutoList-48589d09.mjs +0 -493
  129. package/OnlineAutoModal-c2928847.mjs +0 -239
  130. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  131. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  132. package/OnlineForm-9f1153ba.mjs +0 -985
  133. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  134. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  135. package/OnlineTabForm-27655c83.mjs +0 -817
  136. package/SetSwitchOptions-b2af757f.mjs +0 -62
  137. package/SuperQuery-a8592995.mjs +0 -967
  138. package/index-1d1a6e56.mjs +0 -57
  139. package/useCgformList-f41d4dc1.mjs +0 -426
  140. package/useExtendComponent-dcae5c78.mjs +0 -4399
  141. package/useListButton-bfac4ecf.mjs +0 -697
  142. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,303 @@
1
+ var T = (x, A, f) => new Promise((E, o) => {
2
+ var n = (c) => {
3
+ try {
4
+ g(f.next(c));
5
+ } catch (b) {
6
+ o(b);
7
+ }
8
+ }, k = (c) => {
9
+ try {
10
+ g(f.throw(c));
11
+ } catch (b) {
12
+ o(b);
13
+ }
14
+ }, g = (c) => c.done ? E(c.value) : Promise.resolve(c.value).then(n, k);
15
+ g((f = f.apply(x, A)).next());
16
+ });
17
+ import { defineComponent as ge, reactive as ve, ref as a, computed as u, unref as s, resolveComponent as h, openBlock as w, createElementBlock as F, Fragment as _e, withDirectives as q, createElementVNode as i, createVNode as l, toDisplayString as _, withCtx as p, normalizeClass as y, createBlock as z, createTextVNode as H, createCommentVNode as G, vShow as Z } from "vue";
18
+ import ye from "./AppLoginHeader-9b5be678.mjs";
19
+ import { useI18n as be } from "/@/hooks/web/useI18n";
20
+ import { useMessage as J } from "/@/hooks/web/useMessage";
21
+ import { getCaptcha as he, phoneVerify as we } from "/@/api/sys/user";
22
+ import { SmsEnum as ke } from "/@/views/sys/login/useLogin";
23
+ import Ce from "./AppNameEmail-b4e32ae8.mjs";
24
+ import Re from "/@/components/jeecg/captcha/CaptchaModal.vue";
25
+ import { useModal as Pe } from "/@/components/Modal";
26
+ import { ExceptionEnum as Te } from "/@/enums/exceptionEnum";
27
+ import { _ as xe } from "./index-f3683351.mjs";
28
+ import "/@/assets/images/logo.png";
29
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
30
+ import "vue-router";
31
+ const Ae = { class: "register-box" }, Ee = { class: "register-subject" }, Me = { class: "flex-row align-items-center margin-top40" }, Ie = { class: "register-title" }, Ue = { class: "register-content" }, Be = { class: "register-rule" }, Ne = {
32
+ key: 0,
33
+ class: "line"
34
+ }, Se = /* @__PURE__ */ ge({
35
+ __name: "AppRegister",
36
+ props: {
37
+ bindThirdAccount: { type: Boolean, default: !1 }
38
+ },
39
+ emits: ["return-login", "login-account", "bind-third-account"],
40
+ setup(x, { expose: A, emit: f }) {
41
+ const { createMessage: E } = J(), { t: o } = be(), n = ve({
42
+ mobile: "",
43
+ sms: "",
44
+ regPassword: "",
45
+ policy: !0
46
+ }), k = a(), g = a(), c = a(), b = a(), M = a(!1), d = a(""), K = u(() => n.mobile != "" || s(d) === "mobile" ? "current-active" : "");
47
+ u(() => n.username != "" || s(d) === "username" ? "current-active" : "");
48
+ const Q = u(() => n.sms != "" || s(d) === "sms" ? "current-active" : ""), W = u(() => n.regPassword != "" || s(d) === "regPassword" ? "current-active" : ""), I = f, U = a(!0), v = a(60), C = a(null), B = a(), X = u(() => re(o("sys.login.mobilePlaceholder"))), Y = u(() => ne(o("sys.login.smsPlaceholder"))), ee = u(() => [{ required: !0, validator: ie }, { pattern: /^(?=.*[0-9])(?=.*[a-zA-Z])(.{8,20})$/, message: "8-20位,需包含字母和数字" }]), te = u(() => ({
49
+ mobile: s(X),
50
+ sms: s(Y),
51
+ regPassword: s(ee)
52
+ })), { notification: L, createErrorModal: De } = J(), O = u(() => o("component.countdown.normalText")), V = u(() => o("component.countdown.sendText", [s(v)])), R = a("register"), $ = a(), N = x, [oe, { openModal: se }] = Pe();
53
+ function ne(t) {
54
+ return [
55
+ {
56
+ required: !0,
57
+ message: t,
58
+ trigger: "change"
59
+ }
60
+ ];
61
+ }
62
+ function re(t) {
63
+ return [
64
+ {
65
+ required: !0,
66
+ message: t,
67
+ trigger: "change"
68
+ },
69
+ {
70
+ pattern: /^1[3456789]\d{9}$/,
71
+ message: o("sys.login.mobileCorrectPlaceholder")
72
+ }
73
+ ];
74
+ }
75
+ function S(t) {
76
+ d.value = t, t === "mobile" ? k.value.focus() : t === "sms" ? c.value.focus() : t === "username" ? b.value.focus() : g.value.focus();
77
+ }
78
+ function D() {
79
+ d.value = "";
80
+ }
81
+ function j() {
82
+ return T(this, null, function* () {
83
+ if (!n.mobile) {
84
+ E.warn(o("sys.login.mobilePlaceholder"));
85
+ return;
86
+ }
87
+ (yield he({ mobile: n.mobile, smsmode: ke.REGISTER }).catch((e) => {
88
+ e.code === Te.PHONE_SMS_FAIL_CODE && se(!0, {});
89
+ })) && (s(C) || (v.value = 60, U.value = !1, C.value = setInterval(() => {
90
+ s(v) > 0 && s(v) <= 60 ? v.value = v.value - 1 : (U.value = !0, clearInterval(s(C)), C.value = null);
91
+ }, 1e3)));
92
+ });
93
+ }
94
+ function ie(t, e) {
95
+ return e === "" ? Promise.reject(o("sys.login.passwordPlaceholder")) : Promise.resolve();
96
+ }
97
+ function le() {
98
+ I("return-login");
99
+ }
100
+ function ae() {
101
+ return T(this, null, function* () {
102
+ B.value.validateFields().then((t) => T(this, null, function* () {
103
+ M.value = !0, yield we({ phone: t.mobile, smscode: t.sms }).then((e) => {
104
+ if (e.success)
105
+ e.result && e.result.username && L.warning({
106
+ message: o("sys.api.errorTip"),
107
+ description: "手机号已注册",
108
+ duration: 3
109
+ });
110
+ else if (e.message === "用户信息不存在") {
111
+ let m = { password: t.regPassword, phone: t.mobile, smscode: t.sms, bindThirdAccount: !1, thirdUserUuid: "", thirdType: "" };
112
+ R.value = "email", setTimeout(() => {
113
+ m.bindThirdAccount = N.bindThirdAccount, $.value.setRegisterData(m);
114
+ }, 300);
115
+ } else
116
+ L.warning({
117
+ message: o("sys.api.errorTip"),
118
+ description: e.message || o("sys.api.networkExceptionMsg"),
119
+ duration: 3
120
+ });
121
+ }).finally(() => {
122
+ M.value = !1;
123
+ });
124
+ }));
125
+ });
126
+ }
127
+ function ce() {
128
+ R.value = "register", Object.assign(n, { mobile: "", sms: "", regPassword: "", policy: !0 }), B.value.clearValidate();
129
+ }
130
+ function ue(t) {
131
+ I("login-account", t);
132
+ }
133
+ function de(t) {
134
+ I("bind-third-account", t);
135
+ }
136
+ return A({
137
+ clearValidate: ce
138
+ }), (t, e) => {
139
+ const m = h("a-input"), P = h("a-form-item"), me = h("a-checkbox"), pe = h("a-button"), fe = h("a-form");
140
+ return w(), F(_e, null, [
141
+ q(i("div", Ae, [
142
+ i("div", Ee, [
143
+ l(ye),
144
+ i("div", Me, [
145
+ i("div", Ie, _(s(o)("sys.login.signUpFormTitle")), 1)
146
+ ]),
147
+ i("div", Ue, [
148
+ l(fe, {
149
+ ref_key: "registerRef",
150
+ ref: B,
151
+ model: n,
152
+ rules: te.value
153
+ }, {
154
+ default: p(() => [
155
+ i("div", {
156
+ class: y(["content-item", K.value]),
157
+ onClick: e[1] || (e[1] = (r) => S("mobile"))
158
+ }, [
159
+ l(P, { name: "mobile" }, {
160
+ default: p(() => [
161
+ l(m, {
162
+ ref_key: "phoneRef",
163
+ ref: k,
164
+ value: n.mobile,
165
+ "onUpdate:value": e[0] || (e[0] = (r) => n.mobile = r),
166
+ style: { height: "40px" },
167
+ onBlur: D
168
+ }, null, 8, ["value"]),
169
+ i("div", {
170
+ class: y(["form-title", d.value === "mobile" ? "active-title" : ""])
171
+ }, _(s(o)("sys.login.mobile")), 3)
172
+ ]),
173
+ _: 1
174
+ })
175
+ ], 2),
176
+ i("div", {
177
+ class: y(["content-item", Q.value])
178
+ }, [
179
+ l(P, {
180
+ name: "sms",
181
+ onClick: e[3] || (e[3] = (r) => S("sms"))
182
+ }, {
183
+ default: p(() => [
184
+ l(m, {
185
+ ref_key: "smscodeRef",
186
+ ref: c,
187
+ maxLength: 6,
188
+ value: n.sms,
189
+ "onUpdate:value": e[2] || (e[2] = (r) => n.sms = r),
190
+ style: { height: "40px" },
191
+ onBlur: D
192
+ }, null, 8, ["value"]),
193
+ i("div", {
194
+ class: y(["form-title", d.value === "sms" ? "active-title" : ""])
195
+ }, _(s(o)("sys.login.smsCode")), 3)
196
+ ]),
197
+ _: 1
198
+ }),
199
+ U.value ? (w(), z(m, {
200
+ key: 0,
201
+ type: "button",
202
+ class: "aui-code-line pointer",
203
+ bordered: !1,
204
+ onClick: j,
205
+ value: O.value,
206
+ "onUpdate:value": e[4] || (e[4] = (r) => O.value = r)
207
+ }, null, 8, ["value"])) : (w(), z(m, {
208
+ key: 1,
209
+ type: "button",
210
+ class: "aui-code-line disabled-btn",
211
+ bordered: !1,
212
+ value: V.value,
213
+ "onUpdate:value": e[5] || (e[5] = (r) => V.value = r)
214
+ }, null, 8, ["value"]))
215
+ ], 2),
216
+ i("div", {
217
+ class: y(["content-item", W.value]),
218
+ onClick: e[7] || (e[7] = (r) => S("regPassword"))
219
+ }, [
220
+ l(P, { name: "regPassword" }, {
221
+ default: p(() => [
222
+ l(m, {
223
+ ref_key: "pwdRef",
224
+ ref: g,
225
+ type: "password",
226
+ value: n.regPassword,
227
+ "onUpdate:value": e[6] || (e[6] = (r) => n.regPassword = r),
228
+ style: { height: "40px" },
229
+ onBlur: D,
230
+ autocomplete: "new-password"
231
+ }, null, 8, ["value"]),
232
+ i("div", {
233
+ class: y(["form-title", d.value === "regPassword" ? "active-title" : ""])
234
+ }, " 8-20位,需包含字母和数字 ", 2)
235
+ ]),
236
+ _: 1
237
+ })
238
+ ], 2),
239
+ i("p", Be, [
240
+ l(P, { name: "policy" }, {
241
+ default: p(() => [
242
+ l(me, {
243
+ checked: n.policy,
244
+ "onUpdate:checked": e[8] || (e[8] = (r) => n.policy = r)
245
+ }, {
246
+ default: p(() => [
247
+ H(_(s(o)("sys.login.policy")), 1)
248
+ ]),
249
+ _: 1
250
+ }, 8, ["checked"])
251
+ ]),
252
+ _: 1
253
+ })
254
+ ]),
255
+ i("div", null, [
256
+ l(pe, {
257
+ type: "primary",
258
+ loading: M.value,
259
+ class: "registr-btn pointer",
260
+ onClick: ae
261
+ }, {
262
+ default: p(() => [
263
+ H(_(s(o)("sys.login.nextStep")), 1)
264
+ ]),
265
+ _: 1
266
+ }, 8, ["loading"])
267
+ ]),
268
+ N.bindThirdAccount ? G("", !0) : (w(), F("div", Ne)),
269
+ N.bindThirdAccount ? G("", !0) : (w(), F("span", {
270
+ key: 1,
271
+ class: "to-login pointer",
272
+ onClick: le
273
+ }, _(s(o)("sys.exception.backLogin")), 1))
274
+ ]),
275
+ _: 1
276
+ }, 8, ["model", "rules"])
277
+ ])
278
+ ])
279
+ ], 512), [
280
+ [Z, R.value === "register"]
281
+ ]),
282
+ q(i("div", null, [
283
+ l(Ce, {
284
+ ref_key: "emailRef",
285
+ ref: $,
286
+ onLoginAccount: ue,
287
+ onBindThirdAccount: de
288
+ }, null, 512)
289
+ ], 512), [
290
+ [Z, R.value === "email"]
291
+ ]),
292
+ l(Re, {
293
+ onRegister: s(oe),
294
+ onOk: j
295
+ }, null, 8, ["onRegister"])
296
+ ], 64);
297
+ };
298
+ }
299
+ });
300
+ const Xe = /* @__PURE__ */ xe(Se, [["__scopeId", "data-v-288dafe5"]]);
301
+ export {
302
+ Xe as default
303
+ };
@@ -0,0 +1,373 @@
1
+ var T = (s, _, p) => new Promise((c, g) => {
2
+ var C = (l) => {
3
+ try {
4
+ m(p.next(l));
5
+ } catch (i) {
6
+ g(i);
7
+ }
8
+ }, u = (l) => {
9
+ try {
10
+ m(p.throw(l));
11
+ } catch (i) {
12
+ g(i);
13
+ }
14
+ }, m = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(C, u);
15
+ m((p = p.apply(s, _)).next());
16
+ });
17
+ import { defineComponent as ae, ref as r, reactive as J, computed as R, unref as U, watch as ne, resolveComponent as k, openBlock as f, createElementBlock as b, createElementVNode as t, normalizeClass as x, createVNode as a, Fragment as h, createTextVNode as S, createCommentVNode as j, withCtx as v } from "vue";
18
+ import oe from "./AppLoginHeader-9b5be678.mjs";
19
+ import { useI18n as se } from "/@/hooks/web/useI18n";
20
+ import { defHttp as q } from "/@/utils/http/axios";
21
+ import { useMessage as ie } from "/@/hooks/web/useMessage";
22
+ import { router as P } from "/@/router";
23
+ import { PageEnum as V } from "/@/enums/pageEnum";
24
+ import { useUserStore as re } from "/@/store/modules/user";
25
+ import { _ as ue } from "./index-f3683351.mjs";
26
+ import "/@/assets/images/logo.png";
27
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
+ import "vue-router";
29
+ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, { isTransformResponse: !1 }), ve = (s) => q.post({ url: "/sys/tenant/joinTenantByHouseNumber", params: s }, { isTransformResponse: !1 }), pe = { class: "organ-box" }, ce = {
30
+ class: "align-items-center",
31
+ style: { "margin-top": "20px" }
32
+ }, de = {
33
+ class: "align-items-center",
34
+ style: { "margin-top": "20px" }
35
+ }, fe = { class: "content-item" }, be = { class: "content-item" }, ge = { class: "content-item" }, ye = { class: "content-item" }, ke = /* @__PURE__ */ ae({
36
+ __name: "AppTenant",
37
+ props: {
38
+ tenantType: { type: String, default: "" }
39
+ },
40
+ emits: ["success"],
41
+ setup(s, { emit: _ }) {
42
+ const p = s, { createMessage: c } = ie(), g = r(), C = r(), u = r("home"), m = J({
43
+ houseNumber: ""
44
+ }), l = J({
45
+ name: "",
46
+ trade: void 0,
47
+ companySize: void 0,
48
+ position: void 0,
49
+ department: void 0
50
+ }), i = r(""), M = R(() => m.houseNumber != "" || U(i) === "houseNumber" ? "current-active" : ""), L = R(() => l.name != "" || U(i) === "name" ? "current-active" : ""), w = r(), I = r(), $ = {
51
+ houseNumber: [{ required: !0, message: "请输入组织门牌号" }]
52
+ };
53
+ se();
54
+ const K = R(() => Y("请输入组织名称")), D = R(() => ({
55
+ name: U(K)
56
+ })), G = r([
57
+ { label: "信息传输、软件和信息技术服务业", value: "1" },
58
+ { label: "制造业", value: "2" },
59
+ { label: "租赁和商务服务业", value: "3" },
60
+ { label: "教育", value: "4" },
61
+ { label: "金融业", value: "5" },
62
+ { label: "建筑业", value: "6" },
63
+ { label: "科学研究和技术服务业", value: "7" },
64
+ { label: "批发和零售业", value: "8" },
65
+ { label: "住宿和餐饮业", value: "9" },
66
+ { label: "电子商务", value: "10" },
67
+ { label: "线下零售与服务业", value: "11" },
68
+ { label: "文化、体育和娱乐业", value: "12" },
69
+ { label: "房地产业", value: "13" },
70
+ { label: "交通运输、仓储和邮政业", value: "14" },
71
+ { label: "卫生和社会工作", value: "15" },
72
+ { label: "公共管理、社会保障和社会组织", value: "16" },
73
+ { label: "电力、热力、燃气及水生产和供应业", value: "17" },
74
+ { label: "水利、环境和公共设施管理业", value: "18" },
75
+ { label: "居民服务、修理和其他服务业", value: "19" },
76
+ { label: "政府机构", value: "20" },
77
+ { label: "农、林、牧、渔业", value: "21" },
78
+ { label: "采矿业", value: "22" },
79
+ { label: "国际组织", value: "23" },
80
+ { label: "其他", value: "24" }
81
+ ]), Q = r([
82
+ { label: "20人以下", value: "1" },
83
+ { label: "21-99人", value: "2" },
84
+ { label: "100-499人", value: "3" },
85
+ { label: "500-999人", value: "4" },
86
+ { label: "1000-9999人", value: "5" },
87
+ { label: "10000人以上", value: "6" }
88
+ ]), W = r([
89
+ { label: "总裁/总经理/CEO", value: "1" },
90
+ { label: "副总裁/副总经理/VP", value: "2" },
91
+ { label: "总监/主管/经理", value: "3" },
92
+ { label: "员工/专员/执行", value: "4" },
93
+ { label: "其他", value: "5" }
94
+ ]), X = r([
95
+ { label: "总经办", value: "1" },
96
+ { label: "技术/IT/研发", value: "2" },
97
+ { label: "产品/设计", value: "3" },
98
+ { label: "销售/市场/运营", value: "4" },
99
+ { label: "人事/财务/行政", value: "5" },
100
+ { label: "资源/仓储/采购", value: "6" },
101
+ { label: "其他", value: "7" }
102
+ ]), O = _, y = re();
103
+ function Y(n) {
104
+ return [
105
+ {
106
+ required: !0,
107
+ message: n,
108
+ trigger: "change"
109
+ }
110
+ ];
111
+ }
112
+ function Z() {
113
+ u.value = "join";
114
+ }
115
+ function ee() {
116
+ u.value = "create";
117
+ }
118
+ function B(n) {
119
+ i.value = n, n === "houseNumber" ? w.value.focus() : I.value.focus();
120
+ }
121
+ function E() {
122
+ i.value = "";
123
+ }
124
+ function te() {
125
+ return T(this, null, function* () {
126
+ g.value.validateFields().then((n) => T(this, null, function* () {
127
+ n.status = "1", yield me(n).then((e) => {
128
+ e.success ? (c.success(e.message), y.setTenant(e.result), P.replace(y.getUserInfo && y.getUserInfo.homePath || V.BASE_HOME), O("success")) : c.warning(e.message);
129
+ });
130
+ }));
131
+ });
132
+ }
133
+ function le() {
134
+ C.value.validateFields().then((n) => T(this, null, function* () {
135
+ yield ve(n).then((e) => {
136
+ e.success ? (c.success(e.message), p.tenantType || P.replace(y.getUserInfo && y.getUserInfo.homePath || V.BASE_HOME), O("success")) : c.warning(e.message);
137
+ }).catch((e) => {
138
+ c.warning(e.message);
139
+ });
140
+ }));
141
+ }
142
+ function H() {
143
+ u.value = "home";
144
+ }
145
+ return ne(
146
+ () => p.tenantType,
147
+ (n) => {
148
+ n && (u.value = n);
149
+ },
150
+ { immediate: !0 }
151
+ ), (n, e) => {
152
+ const z = k("Icon"), A = k("a-input"), d = k("a-form-item"), F = k("a-form"), N = k("a-select");
153
+ return f(), b("div", pe, [
154
+ t("div", {
155
+ class: x(["organ-subject", s.tenantType !== "" ? "subject-margin" : ""])
156
+ }, [
157
+ a(oe, { showLocalePicker: !1 }),
158
+ u.value === "home" ? (f(), b(h, { key: 0 }, [
159
+ e[10] || (e[10] = t("div", {
160
+ class: "flex-row align-items-center",
161
+ style: { "margin-top": "20px" }
162
+ }, [
163
+ t("div", { class: "organ-title" }, " 创建或者加入组织 ")
164
+ ], -1)),
165
+ t("div", { class: "organ-desc align-items-center" }, [
166
+ t("div", {
167
+ class: "content-box pointer",
168
+ onClick: Z
169
+ }, e[8] || (e[8] = [
170
+ t("div", { class: "organ-title-desc" }, [
171
+ S(" 加入"),
172
+ t("span", { style: { color: "rgb(141, 198, 216)" } }, "已有"),
173
+ S("组织 ")
174
+ ], -1),
175
+ t("div", null, " 如果被告知要使用,或有同事已经在用,请选择此项。 ", -1)
176
+ ])),
177
+ t("div", {
178
+ class: "content-box pointer",
179
+ style: { "margin-top": "35px" },
180
+ onClick: ee
181
+ }, e[9] || (e[9] = [
182
+ t("div", { class: "organ-title-desc" }, [
183
+ S(" 创建"),
184
+ t("span", { style: { color: "rgb(74, 79, 175)" } }, "新的"),
185
+ S("组织 ")
186
+ ], -1),
187
+ t("div", null, " 如果想为企业或者组织创建账号,请选择此项。 ", -1)
188
+ ]))
189
+ ])
190
+ ], 64)) : u.value === "join" ? (f(), b(h, { key: 1 }, [
191
+ s.tenantType === "" ? (f(), b("div", {
192
+ key: 0,
193
+ class: "margin-top40 pointer",
194
+ style: { display: "flex" },
195
+ onClick: H
196
+ }, [
197
+ a(z, {
198
+ icon: "ant-design:arrow-left-outlined",
199
+ style: { color: "#757575", "margin-top": "2px" }
200
+ }),
201
+ e[11] || (e[11] = t("span", { style: { "margin-left": "10px" } }, "返回", -1))
202
+ ])) : j("", !0),
203
+ t("div", ce, [
204
+ e[13] || (e[13] = t("div", { class: "organ-title" }, " 请填写组织门牌号 ", -1)),
205
+ e[14] || (e[14] = t("div", { class: "organ-join-desc" }, [
206
+ t("span", { style: { color: "#9e9e9e" } }, "组织门牌号可以通过管理员获取")
207
+ ], -1)),
208
+ a(F, {
209
+ ref_key: "joinRef",
210
+ ref: C,
211
+ model: m,
212
+ rules: $
213
+ }, {
214
+ default: v(() => [
215
+ t("div", {
216
+ class: x(["content-item", M.value]),
217
+ onClick: e[1] || (e[1] = (o) => B("houseNumber"))
218
+ }, [
219
+ a(d, { name: "houseNumber" }, {
220
+ default: v(() => [
221
+ a(A, {
222
+ ref_key: "hoseNumberRef",
223
+ ref: w,
224
+ value: m.houseNumber,
225
+ "onUpdate:value": e[0] || (e[0] = (o) => m.houseNumber = o),
226
+ style: { height: "40px" },
227
+ onBlur: E
228
+ }, null, 8, ["value"]),
229
+ t("div", {
230
+ class: x(["form-title", i.value === "houseNumber" ? "active-title" : ""])
231
+ }, " 示例: J9A2K8R ", 2)
232
+ ]),
233
+ _: 1
234
+ })
235
+ ], 2),
236
+ e[12] || (e[12] = t("div", { class: "tenant-number" }, [
237
+ t("a", {
238
+ href: "http://help.qiaoqiaoyun.com/org/new.html",
239
+ target: "_blank"
240
+ }, "没有组织门牌号?")
241
+ ], -1)),
242
+ t("div", {
243
+ class: "create-btn pointer",
244
+ onClick: le
245
+ }, " 加入 ")
246
+ ]),
247
+ _: 1
248
+ }, 8, ["model"])
249
+ ])
250
+ ], 64)) : u.value === "create" ? (f(), b(h, { key: 2 }, [
251
+ s.tenantType === "" ? (f(), b("div", {
252
+ key: 0,
253
+ class: "margin-top40 pointer",
254
+ style: { display: "flex" },
255
+ onClick: H
256
+ }, [
257
+ a(z, {
258
+ icon: "ant-design:arrow-left-outlined",
259
+ style: { color: "#757575", "margin-top": "2px" }
260
+ }),
261
+ e[15] || (e[15] = t("span", { style: { "margin-left": "10px" } }, "返回", -1))
262
+ ])) : j("", !0),
263
+ t("div", de, [
264
+ e[20] || (e[20] = t("div", { class: "organ-title" }, " 创建组织 ", -1)),
265
+ e[21] || (e[21] = t("div", { class: "organ-join-desc" }, [
266
+ t("span", { style: { color: "#9e9e9e" } }, "您当前账号默认成为组织的管理员")
267
+ ], -1)),
268
+ a(F, {
269
+ ref_key: "createRef",
270
+ ref: g,
271
+ model: l,
272
+ rules: D.value
273
+ }, {
274
+ default: v(() => [
275
+ t("div", {
276
+ class: x(["content-item", L.value]),
277
+ onClick: e[3] || (e[3] = (o) => B("name"))
278
+ }, [
279
+ a(d, { name: "name" }, {
280
+ default: v(() => [
281
+ a(A, {
282
+ ref_key: "nameRef",
283
+ ref: I,
284
+ value: l.name,
285
+ "onUpdate:value": e[2] || (e[2] = (o) => l.name = o),
286
+ style: { height: "40px", "font-size": "13px", color: "rgba(0, 0, 0, 0.65)" },
287
+ onBlur: E
288
+ }, null, 8, ["value"]),
289
+ t("div", {
290
+ class: x(["form-title", i.value === "name" ? "active-title" : ""])
291
+ }, " 组织名称 ", 2)
292
+ ]),
293
+ _: 1
294
+ })
295
+ ], 2),
296
+ t("div", fe, [
297
+ a(d, { name: "trade" }, {
298
+ default: v(() => [
299
+ a(N, {
300
+ placeholder: "请选择",
301
+ style: { height: "40px" },
302
+ options: G.value,
303
+ value: l.trade,
304
+ "onUpdate:value": e[4] || (e[4] = (o) => l.trade = o)
305
+ }, null, 8, ["options", "value"]),
306
+ e[16] || (e[16] = t("div", { class: "active-form-title" }, " 行业 ", -1))
307
+ ]),
308
+ _: 1
309
+ })
310
+ ]),
311
+ t("div", be, [
312
+ a(d, { name: "companySize" }, {
313
+ default: v(() => [
314
+ a(N, {
315
+ placeholder: "请选择",
316
+ style: { height: "40px" },
317
+ options: Q.value,
318
+ value: l.companySize,
319
+ "onUpdate:value": e[5] || (e[5] = (o) => l.companySize = o)
320
+ }, null, 8, ["options", "value"]),
321
+ e[17] || (e[17] = t("div", { class: "active-form-title" }, " 规模 ", -1))
322
+ ]),
323
+ _: 1
324
+ })
325
+ ]),
326
+ t("div", ge, [
327
+ a(d, { name: "position" }, {
328
+ default: v(() => [
329
+ a(N, {
330
+ placeholder: "请选择",
331
+ style: { height: "40px" },
332
+ options: W.value,
333
+ value: l.position,
334
+ "onUpdate:value": e[6] || (e[6] = (o) => l.position = o)
335
+ }, null, 8, ["options", "value"]),
336
+ e[18] || (e[18] = t("div", { class: "active-form-title" }, " 您的职级 ", -1))
337
+ ]),
338
+ _: 1
339
+ })
340
+ ]),
341
+ t("div", ye, [
342
+ a(d, { name: "department" }, {
343
+ default: v(() => [
344
+ a(N, {
345
+ placeholder: "请选择",
346
+ style: { height: "40px" },
347
+ options: X.value,
348
+ value: l.department,
349
+ "onUpdate:value": e[7] || (e[7] = (o) => l.department = o)
350
+ }, null, 8, ["options", "value"]),
351
+ e[19] || (e[19] = t("div", { class: "active-form-title" }, " 您的部门 ", -1))
352
+ ]),
353
+ _: 1
354
+ })
355
+ ]),
356
+ t("div", {
357
+ class: "create-btn pointer",
358
+ onClick: te
359
+ }, " 创建 ")
360
+ ]),
361
+ _: 1
362
+ }, 8, ["model", "rules"])
363
+ ])
364
+ ], 64)) : j("", !0)
365
+ ], 2)
366
+ ]);
367
+ };
368
+ }
369
+ });
370
+ const Be = /* @__PURE__ */ ue(ke, [["__scopeId", "data-v-5bf68799"]]);
371
+ export {
372
+ Be as default
373
+ };