@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,214 @@
1
+ var y = (M, T, d) => new Promise((t, s) => {
2
+ var p = (i) => {
3
+ try {
4
+ n(d.next(i));
5
+ } catch (u) {
6
+ s(u);
7
+ }
8
+ }, g = (i) => {
9
+ try {
10
+ n(d.throw(i));
11
+ } catch (u) {
12
+ s(u);
13
+ }
14
+ }, n = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(p, g);
15
+ n((d = d.apply(M, T)).next());
16
+ });
17
+ import { defineComponent as ee, ref as r, reactive as A, computed as c, unref as o, resolveComponent as C, openBlock as h, createElementBlock as V, Fragment as oe, createVNode as m, withKeys as te, withCtx as k, createElementVNode as v, normalizeClass as R, toDisplayString as I, createBlock as H, createTextVNode as ne, createCommentVNode as le, toRaw as se } from "vue";
18
+ import { useUserStore as ie } from "/@/store/modules/user";
19
+ import { SmsEnum as ae } from "/@/views/sys/login/useLogin";
20
+ import { useI18n as re } from "/@/hooks/web/useI18n";
21
+ import { getCaptcha as ue } from "/@/api/sys/user";
22
+ import { useMessage as K } from "/@/hooks/web/useMessage";
23
+ import ce from "/@/components/jeecg/captcha/CaptchaModal.vue";
24
+ import { useModal as me } from "/@/components/Modal";
25
+ import { ExceptionEnum as de } from "/@/enums/exceptionEnum";
26
+ import { _ as fe } from "./index-9e1e1e53.mjs";
27
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
+ import "vue-router";
29
+ const pe = /* @__PURE__ */ ee({
30
+ __name: "PhoneLoginForm",
31
+ props: { bindThirdAccount: { type: Boolean, default: !1 } },
32
+ emits: ["login", "login-success", "bind-third-phone"],
33
+ setup(M, { emit: T }) {
34
+ const { createMessage: d } = K(), { t } = re(), s = r(""), p = r(!1), g = r();
35
+ A({
36
+ randCodeImage: "",
37
+ requestCodeSuccess: !1,
38
+ checkKey: -1
39
+ });
40
+ const n = A({
41
+ mobile: "",
42
+ sms: ""
43
+ }), i = ie(), u = T;
44
+ r(!1);
45
+ const q = c(() => n.mobile != "" || o(s) === "mobile" ? "current-active" : ""), $ = c(() => n.sms != "" || o(s) === "sms" ? "current-active" : ""), { notification: z, createErrorModal: ve } = K(), x = r(!0), f = r(60), b = r(null), E = r(), S = r(), G = c(() => P(t("sys.login.accountPlaceholder"))), W = c(() => P(t("sys.login.smsPlaceholder"))), j = c(() => ({
46
+ mobile: o(G),
47
+ sms: o(W)
48
+ })), L = c(() => t("component.countdown.normalText")), w = c(() => t("component.countdown.sendText", [o(f)])), F = M, [J, { openModal: Q }] = me();
49
+ function P(l) {
50
+ return [
51
+ {
52
+ required: !0,
53
+ message: l,
54
+ trigger: "change"
55
+ }
56
+ ];
57
+ }
58
+ function B(l) {
59
+ s.value = l, l === "sms" ? E.value.focus() : S.value.focus();
60
+ }
61
+ function N() {
62
+ s.value = "";
63
+ }
64
+ function O() {
65
+ return y(this, null, function* () {
66
+ g.value.validateFields().then((l) => y(this, null, function* () {
67
+ if (F.bindThirdAccount)
68
+ u("bind-third-phone", l);
69
+ else
70
+ try {
71
+ p.value = !0;
72
+ const { userInfo: e } = yield i.phoneLogin(
73
+ se({
74
+ mobile: l.mobile,
75
+ captcha: l.sms,
76
+ mode: "none",
77
+ //不要默认的错误提示
78
+ goHome: !1
79
+ })
80
+ );
81
+ e && u("login-success", e.realname);
82
+ } catch (e) {
83
+ z.error({
84
+ message: t("sys.api.errorTip"),
85
+ description: e.message || t("sys.api.networkExceptionMsg"),
86
+ duration: 3
87
+ });
88
+ } finally {
89
+ p.value = !1;
90
+ }
91
+ }));
92
+ });
93
+ }
94
+ function U() {
95
+ return y(this, null, function* () {
96
+ if (!n.mobile) {
97
+ d.warn(t("sys.login.mobilePlaceholder"));
98
+ return;
99
+ }
100
+ (yield ue({ mobile: n.mobile, smsmode: ae.FORGET_PASSWORD }).catch((e) => {
101
+ e.code === de.PHONE_SMS_FAIL_CODE && Q(!0, {});
102
+ })) && (o(b) || (f.value = 60, x.value = !1, b.value = setInterval(() => {
103
+ o(f) > 0 && o(f) <= 60 ? f.value = f.value - 1 : (x.value = !0, clearInterval(o(b)), b.value = null);
104
+ }, 1e3)));
105
+ });
106
+ }
107
+ function X() {
108
+ u("login", "accountLogin");
109
+ }
110
+ return (l, e) => {
111
+ const _ = C("a-input"), D = C("a-form-item"), Y = C("a-button"), Z = C("a-form");
112
+ return h(), V(oe, null, [
113
+ m(Z, {
114
+ ref_key: "loginPhoneRef",
115
+ ref: g,
116
+ model: n,
117
+ rules: j.value,
118
+ onKeyup: te(O, ["enter", "native"])
119
+ }, {
120
+ default: k(() => [
121
+ v("div", {
122
+ class: R(["content-item", q.value]),
123
+ onClick: e[1] || (e[1] = (a) => B("mobile"))
124
+ }, [
125
+ m(D, { name: "mobile" }, {
126
+ default: k(() => [
127
+ m(_, {
128
+ ref_key: "mobileRef",
129
+ ref: S,
130
+ value: n.mobile,
131
+ "onUpdate:value": e[0] || (e[0] = (a) => n.mobile = a),
132
+ style: { height: "40px" },
133
+ onBlur: N
134
+ }, null, 8, ["value"]),
135
+ v("div", {
136
+ class: R(["form-title", s.value === "mobile" ? "active-title" : ""])
137
+ }, I(o(t)("sys.login.mobile")), 3)
138
+ ]),
139
+ _: 1
140
+ })
141
+ ], 2),
142
+ v("div", {
143
+ class: R(["content-item", $.value])
144
+ }, [
145
+ m(D, {
146
+ name: "sms",
147
+ onClick: e[3] || (e[3] = (a) => B("sms"))
148
+ }, {
149
+ default: k(() => [
150
+ m(_, {
151
+ ref_key: "smsCodeRef",
152
+ ref: E,
153
+ maxLength: 6,
154
+ value: n.sms,
155
+ "onUpdate:value": e[2] || (e[2] = (a) => n.sms = a),
156
+ style: { height: "40px" },
157
+ onBlur: N
158
+ }, null, 8, ["value"]),
159
+ v("div", {
160
+ class: R(["form-title", s.value === "sms" ? "active-title" : ""])
161
+ }, I(o(t)("sys.login.smsCode")), 3)
162
+ ]),
163
+ _: 1
164
+ }),
165
+ x.value ? (h(), H(_, {
166
+ key: 0,
167
+ type: "button",
168
+ class: "aui-code-line pointer",
169
+ bordered: !1,
170
+ onClick: U,
171
+ value: L.value,
172
+ "onUpdate:value": e[4] || (e[4] = (a) => L.value = a)
173
+ }, null, 8, ["value"])) : (h(), H(_, {
174
+ key: 1,
175
+ type: "button",
176
+ class: "aui-code-line disabled-btn",
177
+ bordered: !1,
178
+ value: w.value,
179
+ "onUpdate:value": e[5] || (e[5] = (a) => w.value = a)
180
+ }, null, 8, ["value"]))
181
+ ], 2),
182
+ v("div", null, [
183
+ m(Y, {
184
+ type: "primary",
185
+ onClick: O,
186
+ loading: p.value,
187
+ class: "login-btn"
188
+ }, {
189
+ default: k(() => [
190
+ ne(I(o(t)("sys.login.loginButton")), 1)
191
+ ]),
192
+ _: 1
193
+ }, 8, ["loading"])
194
+ ]),
195
+ F.bindThirdAccount ? le("", !0) : (h(), V("div", {
196
+ key: 0,
197
+ class: "phone-login-btn pointer",
198
+ onClick: X
199
+ }, I(o(t)("sys.login.backSignIn")), 1))
200
+ ]),
201
+ _: 1
202
+ }, 8, ["model", "rules"]),
203
+ m(ce, {
204
+ onRegister: o(J),
205
+ onOk: U
206
+ }, null, 8, ["onRegister"])
207
+ ], 64);
208
+ };
209
+ }
210
+ });
211
+ const Se = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-471134ff"]]);
212
+ export {
213
+ Se as default
214
+ };
@@ -1,24 +1,24 @@
1
- var u = (e, r, o) => new Promise((d, s) => {
2
- var l = (t) => {
1
+ var u = (e, t, n) => new Promise((p, s) => {
2
+ var d = (o) => {
3
3
  try {
4
- n(o.next(t));
5
- } catch (m) {
6
- s(m);
4
+ a(n.next(o));
5
+ } catch (r) {
6
+ s(r);
7
7
  }
8
- }, i = (t) => {
8
+ }, i = (o) => {
9
9
  try {
10
- n(o.throw(t));
11
- } catch (m) {
12
- s(m);
10
+ a(n.throw(o));
11
+ } catch (r) {
12
+ s(r);
13
13
  }
14
- }, n = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(l, i);
15
- n((o = o.apply(e, r)).next());
14
+ }, a = (o) => o.done ? p(o.value) : Promise.resolve(o.value).then(d, i);
15
+ a((n = n.apply(e, t)).next());
16
16
  });
17
- import S from "./OnlineForm-018981b2.mjs";
18
- import { defineComponent as k, ref as a, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
19
- import { defHttp as P } from "/@/utils/http/axios";
20
- import { g as b } from "./useExtendComponent-bb7cca20.mjs";
21
- import { _ as R } from "./index-173949bb.mjs";
17
+ import C from "./OnlineForm-58282699.mjs";
18
+ import { defineComponent as S, ref as m, watch as T, nextTick as w, resolveComponent as f, openBlock as y, createElementBlock as _, createVNode as g, withCtx as h, createTextVNode as N, createCommentVNode as P } from "vue";
19
+ import { defHttp as R } from "/@/utils/http/axios";
20
+ import { g as b } from "./useExtendComponent-bb98e568.mjs";
21
+ import { _ as L } from "./index-9e1e1e53.mjs";
22
22
  import "/@/hooks/web/useMessage";
23
23
  import "/@/components/Form/index";
24
24
  import "lodash-es";
@@ -37,32 +37,32 @@ import "/@/store/modules/user";
37
37
  import "./constant-fa63bd66.mjs";
38
38
  import "/@/hooks/web/useAppInject";
39
39
  import "/@/utils/is";
40
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
40
+ import "/@/store/modules/permission";
41
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs";
41
42
  import "/@/components/Form/src/componentMap";
42
43
  import "/@/utils/propTypes";
43
44
  import "/@/components/Form/src/jeecg/components/JUpload";
44
45
  import "/@/views/system/user/user.api";
45
46
  import "/@/utils/desform/customExpression";
46
- import "/@/store/modules/permission";
47
47
  import "/@/utils/dict/JDictSelectUtil";
48
48
  import "/@/components/Table";
49
49
  import "/@/hooks/system/useListPage";
50
50
  import "vue-router";
51
51
  import "/@/components/Form/src/utils/Area";
52
52
  import "/@/components/Preview/index";
53
- import "./LinkTableListPiece-2660d709.mjs";
53
+ import "./LinkTableListPiece-e016b8e6.mjs";
54
54
  import "/@/api/common/api";
55
55
  import "/@/assets/images/placeholderImage.png";
56
- import "./OnlineSelectCascade-471fcc76.mjs";
57
- import "./JModalTip-4a83aaed.mjs";
56
+ import "./OnlineSelectCascade-d631ed72.mjs";
57
+ import "./JModalTip-a927f85d.mjs";
58
58
  import "ant-design-vue";
59
59
  import "@vueuse/core";
60
60
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
61
- const L = k({
61
+ const $ = S({
62
62
  name: "ProcessOnlineForm",
63
63
  inheritAttrs: !1,
64
64
  components: {
65
- OnlineForm: S
65
+ OnlineForm: C
66
66
  },
67
67
  props: {
68
68
  dataId: {
@@ -83,100 +83,106 @@ const L = k({
83
83
  }
84
84
  },
85
85
  setup(e) {
86
- const r = a(), o = a(""), d = a(1), s = a(!1), l = a(""), i = a(!1);
86
+ const t = m(), n = m(""), p = m(1), s = m(!1), d = m(""), i = m(!1);
87
87
  T(
88
88
  () => e.tableName,
89
89
  (c) => {
90
- c && n();
90
+ c && a();
91
91
  },
92
92
  { immediate: !0 }
93
93
  );
94
- function n() {
94
+ function a() {
95
95
  return u(this, null, function* () {
96
96
  i.value = !0;
97
- const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, I = { taskId: e.taskId };
97
+ const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, k = { taskId: e.taskId };
98
98
  try {
99
- let p = yield P.get({ url: c, params: I });
100
- o.value = p.head.id, d.value = Number(p.head.formTemplate || 1), s.value = p.head.isTree === "Y", l.value = p.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
101
- (yield b(r)).createRootProperties(p);
99
+ let l = yield R.get({ url: c, params: k });
100
+ n.value = l.head.id, p.value = Number(l.head.formTemplate || 1), s.value = l.head.isTree === "Y", d.value = l.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
101
+ (yield b(t)).createRootProperties(l);
102
102
  }));
103
- } catch (p) {
103
+ } catch (l) {
104
104
  }
105
105
  });
106
106
  }
107
- function t() {
107
+ function o() {
108
108
  return u(this, null, function* () {
109
- let c = yield b(r);
109
+ let c = yield b(t);
110
110
  i.value = !1, c.show(!0, {
111
111
  id: e.dataId
112
112
  });
113
113
  });
114
114
  }
115
- const m = a(!1);
115
+ const r = m(!1);
116
116
  function F() {
117
117
  return u(this, null, function* () {
118
- m.value = !0, r.value.handleSubmit();
118
+ r.value = !0, t.value.handleSubmit();
119
119
  });
120
120
  }
121
121
  function v() {
122
- m.value = !1;
122
+ r.value = !1;
123
+ }
124
+ function I() {
125
+ r.value = !1;
123
126
  }
124
127
  return {
125
- onlineFormCompRef: r,
126
- formId: o,
127
- formTemplate: d,
128
+ onlineFormCompRef: t,
129
+ formId: n,
130
+ formTemplate: p,
128
131
  isTreeForm: s,
129
- pidFieldName: l,
130
- renderSuccess: t,
132
+ pidFieldName: d,
133
+ renderSuccess: o,
131
134
  handleSuccess: v,
135
+ handleClose: I,
132
136
  handleSubmit: F,
133
- buttonLoading: m,
137
+ buttonLoading: r,
134
138
  spinLoading: i
135
139
  };
136
140
  }
137
- }), $ = { class: "cust-onl-form" }, B = {
141
+ }), B = { class: "cust-onl-form" }, O = {
138
142
  key: 0,
139
143
  style: { width: "100%", "text-align": "center", "margin-top": "5px" }
140
144
  };
141
- function O(e, r, o, d, s, l) {
142
- const i = f("a-button"), n = f("online-form"), t = f("a-spin");
143
- return h(), y("div", $, [
144
- _(t, { spinning: e.spinLoading }, {
145
- default: g(() => [
146
- _(n, {
145
+ function V(e, t, n, p, s, d) {
146
+ const i = f("a-button"), a = f("online-form"), o = f("a-spin");
147
+ return y(), _("div", B, [
148
+ g(o, { spinning: e.spinLoading }, {
149
+ default: h(() => [
150
+ g(a, {
147
151
  ref: "onlineFormCompRef",
148
152
  id: e.formId,
149
153
  disabled: e.disabled,
150
154
  "form-template": e.formTemplate,
151
155
  isTree: e.isTreeForm,
152
156
  pidField: e.pidFieldName,
157
+ taskId: e.taskId,
153
158
  onRendered: e.renderSuccess,
154
- onSuccess: e.handleSuccess
159
+ onSuccess: e.handleSuccess,
160
+ onClose: e.handleClose
155
161
  }, {
156
- bottom: g(() => [
157
- !e.disabled && !e.spinLoading ? (h(), y("div", B, [
158
- _(i, {
162
+ bottom: h(() => [
163
+ !e.disabled && !e.spinLoading ? (y(), _("div", O, [
164
+ g(i, {
159
165
  preIcon: "ant-design:check",
160
166
  style: { width: "126px" },
161
167
  type: "primary",
162
168
  onClick: e.handleSubmit,
163
169
  loading: e.buttonLoading
164
170
  }, {
165
- default: g(() => [
171
+ default: h(() => t[0] || (t[0] = [
166
172
  N(" 提 交 ")
167
- ]),
173
+ ])),
168
174
  _: 1
169
175
  }, 8, ["onClick", "loading"])
170
- ])) : C("", !0)
176
+ ])) : P("", !0)
171
177
  ]),
172
178
  _: 1
173
- }, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
179
+ }, 8, ["id", "disabled", "form-template", "isTree", "pidField", "taskId", "onRendered", "onSuccess", "onClose"])
174
180
  ]),
175
181
  _: 1
176
182
  }, 8, ["spinning"])
177
183
  ]);
178
184
  }
179
- const Ne = /* @__PURE__ */ R(L, [["render", O], ["__scopeId", "data-v-530d8f91"]]);
185
+ const Ne = /* @__PURE__ */ L($, [["render", V], ["__scopeId", "data-v-a4356798"]]);
180
186
  export {
181
187
  Ne as default
182
188
  };
@@ -1,20 +1,20 @@
1
- var v = Object.defineProperty, g = Object.defineProperties;
2
- var T = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
5
- var c = (e, t, l) => t in e ? v(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, f = (e, t) => {
1
+ var T = Object.defineProperty, _ = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
+ var c = Object.getOwnPropertySymbols;
4
+ var k = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
+ var f = (e, t, l) => t in e ? T(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, b = (e, t) => {
6
6
  for (var l in t || (t = {}))
7
- _.call(t, l) && c(e, l, t[l]);
8
- if (m)
9
- for (var l of m(t))
10
- k.call(t, l) && c(e, l, t[l]);
7
+ k.call(t, l) && f(e, l, t[l]);
8
+ if (c)
9
+ for (var l of c(t))
10
+ q.call(t, l) && f(e, l, t[l]);
11
11
  return e;
12
- }, h = (e, t) => g(e, T(t));
13
- import { defineComponent as C, ref as q, resolveComponent as V, openBlock as w, createBlock as x, mergeProps as F } from "vue";
14
- import { JVxeTypes as u } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as H } from "./useTableSync-f6089e8a.mjs";
16
- import { _ as S } from "./index-173949bb.mjs";
17
- import "./cgform.data-475d4984.mjs";
12
+ }, h = (e, t) => _(e, C(t));
13
+ import { defineComponent as V, ref as F, resolveComponent as x, openBlock as w, createBlock as H, mergeProps as S } from "vue";
14
+ import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
15
+ import { u as P } from "./useTableSync-075826a1.mjs";
16
+ import { _ as $ } from "./index-9e1e1e53.mjs";
17
+ import "./cgform.data-0ca62d09.mjs";
18
18
  import "/@/utils/dict";
19
19
  import "/@/utils/dict/JDictSelectUtil";
20
20
  import "/@/utils/uuid";
@@ -22,18 +22,18 @@ import "lodash-es";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
25
- const D = C({
25
+ const I = V({
26
26
  name: "QueryTable",
27
27
  emits: ["query"],
28
28
  setup(e, { emit: t }) {
29
- const l = q([
29
+ const l = F([
30
30
  { title: "字段名称", key: "dbFieldName", width: 130 },
31
31
  { title: "字段备注", key: "dbFieldTxt", width: 130 },
32
32
  {
33
33
  title: "控件类型",
34
34
  key: "queryShowType",
35
35
  width: 170,
36
- type: u.select,
36
+ type: r.select,
37
37
  options: [
38
38
  { title: "文本框", value: "text" },
39
39
  { title: "日期(yyyy-MM-dd)", value: "date" },
@@ -64,69 +64,72 @@ const D = C({
64
64
  ],
65
65
  defaultValue: "text",
66
66
  placeholder: "请选择${title}",
67
- validateRules: [{ handler: d }]
67
+ validateRules: [{ handler: n }]
68
68
  },
69
69
  {
70
70
  title: "字典Table",
71
71
  key: "queryDictTable",
72
72
  width: 130,
73
- type: u.textarea,
73
+ type: r.textarea,
74
74
  defaultValue: ""
75
75
  },
76
76
  {
77
77
  title: "字典Code",
78
78
  key: "queryDictField",
79
79
  width: 130,
80
- type: u.input,
80
+ type: r.input,
81
81
  defaultValue: ""
82
82
  },
83
83
  {
84
84
  title: "字典Text",
85
85
  key: "queryDictText",
86
86
  width: 130,
87
- type: u.input,
87
+ type: r.input,
88
88
  defaultValue: ""
89
89
  },
90
90
  {
91
91
  title: "默认值",
92
92
  key: "queryDefVal",
93
93
  width: 130,
94
- type: u.input,
94
+ type: r.input,
95
95
  defaultValue: ""
96
96
  },
97
97
  {
98
98
  title: "是否启用",
99
99
  key: "queryConfigFlag",
100
100
  minWidth: 80,
101
- type: u.checkbox,
101
+ type: r.checkbox,
102
102
  customValue: ["1", "0"],
103
103
  defaultChecked: !1,
104
104
  // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-816】如果是关联记录或者没勾选数据库字段个性化查询checkbox禁用
105
105
  props: {
106
106
  isDisabledCell({ row: a, column: o }) {
107
- let { pageTable: i, dbTable: b } = p;
108
- const n = i.value.tableRef.getTableData({ rowIds: [a.id] })[0];
109
- if (["link_table"].includes(n == null ? void 0 : n.fieldShowType))
107
+ let { pageTable: i, dbTable: v, fkTable: g } = m;
108
+ const s = i.value.tableRef.getTableData({ rowIds: [a.id] })[0];
109
+ if (["link_table"].includes(s == null ? void 0 : s.fieldShowType))
110
110
  return a.queryConfigFlag = "0", !0;
111
- const s = b.value.tableRef.getTableData({ rowIds: [a.id] })[0];
112
- return (s == null ? void 0 : s.dbIsPersist) == "0" ? (a.queryConfigFlag = "0", !0) : !1;
111
+ const p = v.value.tableRef.getTableData({ rowIds: [a.id] })[0];
112
+ if ((p == null ? void 0 : p.dbIsPersist) == "0")
113
+ return a.queryConfigFlag = "0", !0;
114
+ const u = g.value.tableRef.getTableData({ rowIds: [a.id] })[0];
115
+ return !!(u != null && u.mainTable && (u != null && u.mainField));
113
116
  }
114
117
  }
115
118
  // update-end--author:liaozhiyang---date:20240603---for:【TV360X-816】如果是关联记录或者没勾选数据库字段个性化查询checkbox禁用
116
119
  }
117
- ]), r = H(l), { tables: p } = r;
120
+ ]), d = P(l), { tables: m } = d;
118
121
  function y({ row: a, column: o, value: i }) {
119
122
  o.key === "queryConfigFlag" && i === "1" && t("query", a.id);
120
123
  }
121
- function d({ cellValue: a, row: o }, i) {
124
+ function n({ cellValue: a, row: o }, i) {
122
125
  a == null && o.queryConfigFlag == "1" && i(!1, "查询启用状态下,控件类型必选~"), i(!0);
123
126
  }
124
- return h(f({}, r), { columns: l, handleChange: y });
127
+ return h(b({}, d), { columns: l, handleChange: y });
125
128
  }
126
129
  });
127
- function P(e, t, l, r, p, y) {
128
- const d = V("JVxeTable");
129
- return w(), x(d, F({
130
+ function M(e, t, l, d, m, y) {
131
+ const n = x("JVxeTable");
132
+ return w(), H(n, S({
130
133
  ref: "tableRef",
131
134
  rowNumber: "",
132
135
  keyboardEdit: "",
@@ -138,7 +141,7 @@ function P(e, t, l, r, p, y) {
138
141
  onValueChange: e.handleChange
139
142
  }, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]);
140
143
  }
141
- const G = /* @__PURE__ */ S(D, [["render", P]]);
144
+ const L = /* @__PURE__ */ $(I, [["render", M]]);
142
145
  export {
143
- G as default
146
+ L as default
144
147
  };
@@ -0,0 +1,62 @@
1
+ import { ref as r, watch as _, onMounted as f, resolveComponent as N, openBlock as g, createElementBlock as S, createElementVNode as o, createVNode as v } from "vue";
2
+ import { isArray as b } from "/@/utils/is";
3
+ import { _ as y } from "./index-9e1e1e53.mjs";
4
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
+ import "/@/hooks/web/useMessage";
6
+ import "vue-router";
7
+ const h = { class: "setSwitchOptions" }, w = "Y", Y = "N", x = {
8
+ __name: "SetSwitchOptions",
9
+ props: {
10
+ value: {
11
+ type: [Array, String],
12
+ default: ["Y", "N"]
13
+ }
14
+ },
15
+ emits: "change",
16
+ setup(m, { emit: c }) {
17
+ const d = m, u = c, n = r(w), a = r(Y);
18
+ _(
19
+ () => d.value,
20
+ (t) => {
21
+ if (typeof t == "string") {
22
+ const e = t.split(",");
23
+ n.value = e[0], a.value = e[1];
24
+ } else
25
+ b(t) && (n.value = t[0], a.value = t[1]);
26
+ },
27
+ { immediate: !0 }
28
+ );
29
+ const s = () => {
30
+ n.value != "" && a.value != "" && i();
31
+ }, i = () => {
32
+ let t = Number(n.value), e = Number(a.value);
33
+ (Number.isNaN(t) || Number.isNaN(e)) && (t = n.value, e = a.value), u("change", [t, e]), u("update:value", [t, e]);
34
+ };
35
+ return f(() => {
36
+ i();
37
+ }), (t, e) => {
38
+ const p = N("a-input");
39
+ return g(), S("div", h, [
40
+ o("p", null, [
41
+ e[2] || (e[2] = o("span", null, "是", -1)),
42
+ v(p, {
43
+ value: n.value,
44
+ "onUpdate:value": e[0] || (e[0] = (l) => n.value = l),
45
+ onChange: s
46
+ }, null, 8, ["value"])
47
+ ]),
48
+ o("p", null, [
49
+ e[3] || (e[3] = o("span", null, "否", -1)),
50
+ v(p, {
51
+ value: a.value,
52
+ "onUpdate:value": e[1] || (e[1] = (l) => a.value = l),
53
+ onChange: s
54
+ }, null, 8, ["value"])
55
+ ])
56
+ ]);
57
+ };
58
+ }
59
+ }, U = /* @__PURE__ */ y(x, [["__scopeId", "data-v-b718aa7e"]]);
60
+ export {
61
+ U as default
62
+ };