@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,484 @@
1
+ var ke = Object.defineProperty, Se = Object.defineProperties;
2
+ var De = Object.getOwnPropertyDescriptors;
3
+ var ee = Object.getOwnPropertySymbols;
4
+ var Ye = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
5
+ var te = (h, f, l) => f in h ? ke(h, f, { enumerable: !0, configurable: !0, writable: !0, value: l }) : h[f] = l, v = (h, f) => {
6
+ for (var l in f || (f = {}))
7
+ Ye.call(f, l) && te(h, l, f[l]);
8
+ if (ee)
9
+ for (var l of ee(f))
10
+ Oe.call(f, l) && te(h, l, f[l]);
11
+ return h;
12
+ }, q = (h, f) => Se(h, De(f));
13
+ var P = (h, f, l) => new Promise((d, b) => {
14
+ var B = (_) => {
15
+ try {
16
+ F(l.next(_));
17
+ } catch (D) {
18
+ b(D);
19
+ }
20
+ }, j = (_) => {
21
+ try {
22
+ F(l.throw(_));
23
+ } catch (D) {
24
+ b(D);
25
+ }
26
+ }, F = (_) => _.done ? d(_.value) : Promise.resolve(_.value).then(B, j);
27
+ F((l = l.apply(h, f)).next());
28
+ });
29
+ import { BasicForm as Fe, useForm as xe } from "/@/components/Form/index";
30
+ import { ref as C, reactive as ve, watch as A, toRaw as G, resolveComponent as M, openBlock as R, createElementBlock as oe, createVNode as N, withCtx as I, mergeProps as re, createElementVNode as H, createBlock as ne, toDisplayString as W, createCommentVNode as Q, createTextVNode as Pe } from "vue";
31
+ import { defHttp as Ce } from "/@/utils/http/axios";
32
+ import { useMessage as Ie } from "/@/hooks/web/useMessage";
33
+ import { i as Ve, g as je, n as ae, o as Me, F as K, p as Ne, q as Le, r as se, j as V } from "./useExtendComponent-bb98e568.mjs";
34
+ import { L as Be } from "./constant-fa63bd66.mjs";
35
+ import "/@/utils/common/compUtils";
36
+ import Ee from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
37
+ import { _ as Je } from "./index-9e1e1e53.mjs";
38
+ import "/@/components/Form/src/componentMap";
39
+ import "/@/utils/propTypes";
40
+ import "@ant-design/icons-vue";
41
+ import "/@/components/Modal";
42
+ import "lodash-es";
43
+ import "/@/components/Form/src/jeecg/components/JUpload";
44
+ import "/@/utils/is";
45
+ import "/@/views/system/user/user.api";
46
+ import "/@/store/modules/user";
47
+ import "/@/utils";
48
+ import "/@/utils/desform/customExpression";
49
+ import "/@/store/modules/permission";
50
+ import "/@/utils/dict/JDictSelectUtil";
51
+ import "/@/components/Table";
52
+ import "/@/hooks/system/useListPage";
53
+ import "vue-router";
54
+ import "/@/components/Form/src/utils/Area";
55
+ import "/@/components/Preview/index";
56
+ import "./LinkTableListPiece-e016b8e6.mjs";
57
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
+ import "/@/utils/auth";
59
+ import "/@/api/common/api";
60
+ import "/@/hooks/web/useAppInject";
61
+ import "/@/assets/images/placeholderImage.png";
62
+ import "./OnlineSelectCascade-d631ed72.mjs";
63
+ import "/@/components/Loading";
64
+ import "./JModalTip-a927f85d.mjs";
65
+ import "ant-design-vue";
66
+ import "@vueuse/core";
67
+ const qe = {
68
+ name: "OnlineQueryForm",
69
+ components: {
70
+ BasicForm: Fe,
71
+ JRangeNumber: Ee
72
+ },
73
+ props: {
74
+ id: {
75
+ type: String,
76
+ default: ""
77
+ },
78
+ queryBtnCfg: {
79
+ type: Object,
80
+ default: () => ({
81
+ enabled: !0,
82
+ buttonName: "查询",
83
+ buttonIcon: "ant-design:search"
84
+ })
85
+ },
86
+ resetBtnCfg: {
87
+ type: Object,
88
+ default: () => ({
89
+ enabled: !0,
90
+ buttonName: "重置",
91
+ buttonIcon: "ant-design:reload"
92
+ })
93
+ }
94
+ },
95
+ emits: ["search", "loaded"],
96
+ setup(h, { emit: f }) {
97
+ const l = "/online/cgform/api/getQueryInfoVue3/", d = C(null), b = C([]), B = C({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), j = C(!1), F = C(!1), _ = C({}), D = C([]), { createMessage: E } = Ie(), { linkTableCard2Select: T } = Ve(), J = C(80), c = ve({
98
+ config: {},
99
+ cache: {},
100
+ param: {},
101
+ status: !1
102
+ });
103
+ A(
104
+ () => c.status,
105
+ (e) => P(this, null, function* () {
106
+ const { config: t, cache: o, param: r } = G(c);
107
+ let n = Object.assign({}, t, o, r);
108
+ yield le(n);
109
+ }),
110
+ { immediate: !0, deep: !0 }
111
+ );
112
+ function y(e, t) {
113
+ return P(this, null, function* () {
114
+ c.cache = v({}, e), c.param = v({}, t), c.status = !c.status;
115
+ });
116
+ }
117
+ A(
118
+ () => h.id,
119
+ (e) => {
120
+ e ? ie() : b.value = [];
121
+ },
122
+ { immediate: !0 }
123
+ );
124
+ function w(e) {
125
+ return P(this, null, function* () {
126
+ var a, g, k, Y;
127
+ let t = [], o = {}, r = Object.keys(e), n = -1;
128
+ for (let p of r) {
129
+ const i = e[p];
130
+ p === "sys_org_code" && (i.fieldExtendJson || (i.fieldExtendJson = '{"store":"orgCode"}'));
131
+ let u = i.view;
132
+ if (i.originView = i.view, ae[u] && (i.view = ae[u]), yield Me(p, i, o), i.mode == "group" && (u == "date" || u == "datetime" || u == "number" || u == "time")) {
133
+ let x = K.createSlotFormSchema(p, i);
134
+ t.push(x);
135
+ } else if (i.view === Ne) {
136
+ let x = Le(i, p);
137
+ for (let O of x) {
138
+ let Z = K.createFormSchema(O.key, O), $ = se(t, O.key);
139
+ $ == -1 ? t.push(Z) : t[$] = Z;
140
+ }
141
+ } else if (se(t, p) == -1) {
142
+ let O = K.createFormSchema(p, i);
143
+ t.push(O);
144
+ }
145
+ let S = i.fieldExtendJson;
146
+ S && (S = JSON.parse(S), S.labelLength && (n > -1 ? n = S.labelLength > n ? S.labelLength : n : n = S.labelLength));
147
+ }
148
+ n == -1 ? n = Be : t.forEach((p) => {
149
+ p.labelLength = n;
150
+ }), t.sort(function(p, i) {
151
+ return p.order - i.order;
152
+ });
153
+ let s = [];
154
+ t.length > 2 && (j.value = !0);
155
+ let m = [];
156
+ for (let p = 0; p < t.length; p++) {
157
+ let i = t[p];
158
+ i.setFormRef(d), i.noChange(), i.asSearchForm(), p > 1 && (m.push(i.field), i.isHidden());
159
+ let u = i.getFormItemSchema();
160
+ if (i.slot == "groupDatetime" && t.length <= 3 && (u.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), u.component === "JSwitch") {
161
+ const O = (a = u.componentProps) != null ? a : {};
162
+ u.componentProps = q(v({}, O), { query: !0 });
163
+ }
164
+ if (T(u), u.component === "LinkTableSelect") {
165
+ let O = (g = u.componentProps) != null ? g : {};
166
+ u.componentProps = q(v({}, O), { editBtnShow: !1 });
167
+ }
168
+ const S = (k = u.componentProps) != null ? k : {};
169
+ S.getPopupContainer || (u.componentProps = q(v({}, S), { getPopupContainer: () => document.body }));
170
+ const x = (Y = e[u.field]) != null ? Y : {};
171
+ x.mode == "like" && x.view === "text" && x.originView === "text" && (u.component = "JInput"), s.push(u);
172
+ }
173
+ D.value = m, b.value = s, c.config = v({}, o), c.status = !c.status, setTimeout(() => {
174
+ const p = n * 14 + n + 24;
175
+ J.value = p;
176
+ }, 0);
177
+ });
178
+ }
179
+ const L = (e) => {
180
+ const t = e.properties;
181
+ t && Object.entries(t).forEach(([o, r]) => {
182
+ const n = r;
183
+ if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
184
+ const s = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
185
+ s.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(s), n.view = "date";
186
+ }
187
+ });
188
+ };
189
+ function ie() {
190
+ return P(this, null, function* () {
191
+ let e = yield ue();
192
+ L(e);
193
+ let t = me(e);
194
+ f("loaded", e);
195
+ let { formProperties: o, hasField: r } = ce(t, e);
196
+ if (r == !1) {
197
+ b.value = [];
198
+ return;
199
+ }
200
+ yield w(o);
201
+ });
202
+ }
203
+ function le(e) {
204
+ return P(this, null, function* () {
205
+ yield je(d);
206
+ const t = he(e);
207
+ yield z(t), Object.keys(t).length > 0 && U();
208
+ });
209
+ }
210
+ function ce(e, t) {
211
+ const { searchFieldList: o, joinQuery: r, table: n } = t;
212
+ let s = !1, m = {};
213
+ return e && Object.keys(e).map((a) => {
214
+ o.indexOf(a) >= 0 && (r == !0 ? a.indexOf("@") < 0 ? (m[n + "@" + a] = e[a], s = !0) : (m[a] = e[a], s = !0) : a.indexOf("@") < 0 && (m[a] = e[a], s = !0));
215
+ }), {
216
+ formProperties: m,
217
+ hasField: s
218
+ };
219
+ }
220
+ function me(e) {
221
+ const { properties: t, searchFieldList: o, joinQuery: r, table: n } = e;
222
+ let s = {}, m = 1;
223
+ return Object.keys(t).map((a) => {
224
+ let g = t[a];
225
+ if (g.view == "table") {
226
+ let k = g.properties, Y = m * 100;
227
+ Object.keys(k).map((p) => {
228
+ let i = k[p];
229
+ i.order = Y + Number(i.order);
230
+ let u = a + "@" + p;
231
+ s[u] = i;
232
+ }), m++;
233
+ } else
234
+ g.order = Number(g.order), s[a] = g;
235
+ }), s;
236
+ }
237
+ function ue() {
238
+ let e = `${l}${h.id}`;
239
+ return new Promise((t) => {
240
+ Ce.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
241
+ o.success ? t(o.result) : (t(!1), E.warning(o.message));
242
+ }).catch(() => {
243
+ E.warning("获取查询条件失败!"), t(!1);
244
+ });
245
+ });
246
+ }
247
+ const [fe, { resetFields: pe, setFieldsValue: z, updateSchema: de, getFieldsValue: ge }] = xe({
248
+ name: "online-query-form",
249
+ schemas: b,
250
+ showActionButtonGroup: !1,
251
+ baseColProps: B,
252
+ autoSubmitOnEnter: !0,
253
+ labelWidth: J,
254
+ wrapperCol: null,
255
+ submitFunc() {
256
+ U();
257
+ }
258
+ /* labelCol: ONL_QUERY_LABEL_COL,
259
+ wrapperCol: ONL_QUERY_WRAPPER_COL*/
260
+ });
261
+ function U() {
262
+ let e = ge();
263
+ be(e), ye(e);
264
+ let t = Object.assign({}, G(c.param), we(e));
265
+ f("search", t, !0);
266
+ }
267
+ const he = (e) => {
268
+ const t = v({}, e), o = b.value.filter((r) => ["groupTime", "groupDatetime", "groupNumber", "groupDate"].includes(r.slot));
269
+ return o.length && Object.keys(t).forEach((r) => {
270
+ let n;
271
+ if (o.find((m) => m.field === r ? (n = r, !0) : !1)) {
272
+ const m = t[n];
273
+ if (typeof m == "string") {
274
+ const a = m.split(",");
275
+ t[n] = [...a];
276
+ }
277
+ }
278
+ }), t;
279
+ }, ye = (e) => {
280
+ if (e) {
281
+ const t = b.value.filter((o) => ["groupTime", "groupDatetime", "groupDate", "groupNumber"].includes(o.slot));
282
+ t.length && Object.keys(e).forEach((o) => {
283
+ let r;
284
+ if (t.find((s) => s.field === o ? (r = o, !0) : !1)) {
285
+ const s = e[r];
286
+ if (typeof s == "string") {
287
+ const m = s.split(",");
288
+ e[`${r}_begin`] = m[0], e[`${r}_end`] = m[1], delete e[r];
289
+ }
290
+ }
291
+ });
292
+ }
293
+ }, be = (e) => {
294
+ const t = b.value.filter((o) => {
295
+ var r;
296
+ return ((r = o.componentProps) == null ? void 0 : r.picker) && o.componentProps.picker != "default";
297
+ });
298
+ t.length && Object.keys(e).forEach((o) => {
299
+ let r;
300
+ const n = t.find((s) => s.field === o || `${s.field}_begin` === o || `${s.field}_end` === o ? (r = o, !0) : !1);
301
+ if (n) {
302
+ const s = e[r];
303
+ if (s) {
304
+ const m = (a, g, k) => {
305
+ const Y = n.componentProps.picker;
306
+ Y === "year" ? k ? e[g] = V(a).endOf("year").format("YYYY-MM-DD") : e[g] = V(a).startOf("year").format("YYYY-MM-DD") : Y === "month" ? k ? e[g] = V(a).endOf("month").format("YYYY-MM-DD") : e[g] = V(a).startOf("month").format("YYYY-MM-DD") : Y === "week" ? k ? e[g] = V(a).endOf("week").format("YYYY-MM-DD") : e[g] = V(a).startOf("week").format("YYYY-MM-DD") : Y === "quarter" && (k ? e[g] = V(a).endOf("quarter").format("YYYY-MM-DD") : e[g] = V(a).startOf("quarter").format("YYYY-MM-DD"));
307
+ };
308
+ if ((n == null ? void 0 : n.slot) === "groupDate") {
309
+ const a = s.split(",");
310
+ m(a[0], `${r}_begin`, !1), m(a[1], `${r}_end`, !0), delete e[r];
311
+ } else
312
+ m(s, r, !1);
313
+ }
314
+ }
315
+ });
316
+ };
317
+ function X() {
318
+ return P(this, null, function* () {
319
+ yield pe();
320
+ const { config: e, param: t } = G(c);
321
+ let o = Object.assign({}, e, t);
322
+ return Object.keys(o).length > 0 && (yield z(o)), o;
323
+ });
324
+ }
325
+ function _e() {
326
+ return P(this, null, function* () {
327
+ const e = yield X();
328
+ f("search", e, !1);
329
+ });
330
+ }
331
+ function we(e) {
332
+ return Object.keys(e).map((t) => {
333
+ e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
334
+ }), e;
335
+ }
336
+ return A(
337
+ () => F.value,
338
+ (e) => {
339
+ let t = D.value;
340
+ if (t && t.length > 0) {
341
+ let o = [];
342
+ for (let r of t)
343
+ o.push({
344
+ field: r,
345
+ show: e
346
+ });
347
+ de(o);
348
+ }
349
+ },
350
+ { immediate: !1 }
351
+ ), {
352
+ onlineQueryFormRef: d,
353
+ registerForm: fe,
354
+ initDefaultValues: y,
355
+ toggleButtonShow: j,
356
+ toggleSearchStatus: F,
357
+ doSearch: U,
358
+ resetSearch: _e,
359
+ queryParams: _,
360
+ formSchemas: b,
361
+ clearSearch: X,
362
+ getGroupDatePlaceholder: (e) => {
363
+ let t = ["开始日期", "结束日期"];
364
+ if (e != null && e.picker)
365
+ switch (e == null ? void 0 : e.picker) {
366
+ case "year":
367
+ t = ["开始年份", "结束年份"];
368
+ break;
369
+ case "month":
370
+ t = ["开始月份", "结束月份"];
371
+ break;
372
+ case "week":
373
+ t = ["开始周", "结束周"];
374
+ break;
375
+ case "quarter":
376
+ t = ["开始季度", "结束季度"];
377
+ break;
378
+ default:
379
+ t = ["开始日期", "结束日期"];
380
+ }
381
+ return t;
382
+ }
383
+ };
384
+ }
385
+ }, Re = {
386
+ key: 0,
387
+ class: "jeecg-basic-table-form-container online-query-form p-0"
388
+ }, Qe = {
389
+ style: { float: "left", overflow: "hidden", "margin-left": "10px" },
390
+ class: "table-page-search-submitButtons"
391
+ };
392
+ function Te(h, f, l, d, b, B) {
393
+ const j = M("a-range-picker"), F = M("a-time-range-picker"), _ = M("JRangeNumber"), D = M("a-button"), E = M("a-icon"), T = M("a-col"), J = M("BasicForm");
394
+ return d.formSchemas && d.formSchemas.length > 0 ? (R(), oe("div", Re, [
395
+ N(J, {
396
+ ref: "onlineQueryFormRef",
397
+ onRegister: d.registerForm
398
+ }, {
399
+ groupDate: I(({ model: c, field: y, schema: w }) => [
400
+ N(j, re({
401
+ style: { width: "100%" },
402
+ value: c[y],
403
+ "onUpdate:value": (L) => c[y] = L
404
+ }, w.componentProps, {
405
+ placeholder: d.getGroupDatePlaceholder(w.componentProps),
406
+ valueFormat: "YYYY-MM-DD"
407
+ }), null, 16, ["value", "onUpdate:value", "placeholder"])
408
+ ]),
409
+ groupDatetime: I(({ model: c, field: y }) => [
410
+ N(j, {
411
+ style: { width: "100%" },
412
+ value: c[y],
413
+ "onUpdate:value": (w) => c[y] = w,
414
+ "show-time": !0,
415
+ valueFormat: "YYYY-MM-DD HH:mm:ss"
416
+ }, null, 8, ["value", "onUpdate:value"])
417
+ ]),
418
+ groupTime: I(({ model: c, field: y }) => [
419
+ N(F, {
420
+ style: { width: "100%" },
421
+ value: c[y],
422
+ "onUpdate:value": (w) => c[y] = w,
423
+ "value-format": "HH:mm:ss"
424
+ }, null, 8, ["value", "onUpdate:value"])
425
+ ]),
426
+ groupNumber: I(({ model: c, field: y, schema: w }) => [
427
+ N(_, re({
428
+ value: c[y],
429
+ "onUpdate:value": (L) => c[y] = L
430
+ }, w.componentProps), null, 16, ["value", "onUpdate:value"])
431
+ ]),
432
+ formFooter: I(() => [
433
+ N(T, {
434
+ md: 6,
435
+ sm: 8
436
+ }, {
437
+ default: I(() => [
438
+ H("span", Qe, [
439
+ l.queryBtnCfg.enabled ? (R(), ne(D, {
440
+ key: 0,
441
+ type: "primary",
442
+ preIcon: l.queryBtnCfg.buttonIcon,
443
+ onClick: d.doSearch
444
+ }, {
445
+ default: I(() => [
446
+ H("span", null, W(l.queryBtnCfg.buttonName), 1)
447
+ ]),
448
+ _: 1
449
+ }, 8, ["preIcon", "onClick"])) : Q("", !0),
450
+ l.resetBtnCfg.enabled ? (R(), ne(D, {
451
+ key: 1,
452
+ type: "primary",
453
+ preIcon: l.resetBtnCfg.buttonIcon,
454
+ style: { "margin-left": "8px" },
455
+ onClick: d.resetSearch
456
+ }, {
457
+ default: I(() => [
458
+ H("span", null, W(l.resetBtnCfg.buttonName), 1)
459
+ ]),
460
+ _: 1
461
+ }, 8, ["preIcon", "onClick"])) : Q("", !0),
462
+ d.toggleButtonShow ? (R(), oe("a", {
463
+ key: 2,
464
+ onClick: f[0] || (f[0] = (c) => d.toggleSearchStatus = !d.toggleSearchStatus),
465
+ style: { "margin-left": "8px" }
466
+ }, [
467
+ Pe(W(d.toggleSearchStatus ? "收起" : "展开") + " ", 1),
468
+ N(E, {
469
+ type: d.toggleSearchStatus ? "up" : "down"
470
+ }, null, 8, ["type"])
471
+ ])) : Q("", !0)
472
+ ])
473
+ ]),
474
+ _: 1
475
+ })
476
+ ]),
477
+ _: 1
478
+ }, 8, ["onRegister"])
479
+ ])) : Q("", !0);
480
+ }
481
+ const Ct = /* @__PURE__ */ Je(qe, [["render", Te], ["__scopeId", "data-v-04f16c27"]]);
482
+ export {
483
+ Ct as default
484
+ };