@jeecg/online 3.7.0-beta → 3.7.1-RC

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 (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -1,444 +0,0 @@
1
- var he = Object.defineProperty, _e = Object.defineProperties;
2
- var ye = Object.getOwnPropertyDescriptors;
3
- var $ = Object.getOwnPropertySymbols;
4
- var be = Object.prototype.hasOwnProperty, we = Object.prototype.propertyIsEnumerable;
5
- var K = (h, m, f) => m in h ? he(h, m, { enumerable: !0, configurable: !0, writable: !0, value: f }) : h[m] = f, j = (h, m) => {
6
- for (var f in m || (m = {}))
7
- be.call(m, f) && K(h, f, m[f]);
8
- if ($)
9
- for (var f of $(m))
10
- we.call(m, f) && K(h, f, m[f]);
11
- return h;
12
- }, B = (h, m) => _e(h, ye(m));
13
- var D = (h, m, f) => new Promise((u, b) => {
14
- var N = (w) => {
15
- try {
16
- F(f.next(w));
17
- } catch (k) {
18
- b(k);
19
- }
20
- }, v = (w) => {
21
- try {
22
- F(f.throw(w));
23
- } catch (k) {
24
- b(k);
25
- }
26
- }, F = (w) => w.done ? u(w.value) : Promise.resolve(w.value).then(N, v);
27
- F((f = f.apply(h, m)).next());
28
- });
29
- import { BasicForm as Se, useForm as ke } from "/@/components/Form/index";
30
- import { ref as Y, reactive as Oe, watch as Q, toRaw as q, resolveComponent as V, openBlock as z, createElementBlock as X, createVNode as O, withCtx as x, mergeProps as Z, createElementVNode as Fe, createTextVNode as T, toDisplayString as De, createCommentVNode as ee } from "vue";
31
- import { defHttp as Ye } from "/@/utils/http/axios";
32
- import { useMessage as xe } from "/@/hooks/web/useMessage";
33
- import { i as Pe, g as ve, m as te, n as Ve, F as U, o as Le, p as je, q as oe, j as P } from "./useExtendComponent-bb7cca20.mjs";
34
- import { L as Ee } from "./constant-fa63bd66.mjs";
35
- import Me from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
36
- import { _ as Ne } from "./index-173949bb.mjs";
37
- import "/@/components/Form/src/componentMap";
38
- import "/@/utils/propTypes";
39
- import "@ant-design/icons-vue";
40
- import "/@/components/Modal";
41
- import "lodash-es";
42
- import "/@/components/Form/src/jeecg/components/JUpload";
43
- import "/@/utils/is";
44
- import "/@/views/system/user/user.api";
45
- import "/@/store/modules/user";
46
- import "/@/utils";
47
- import "/@/utils/desform/customExpression";
48
- import "/@/store/modules/permission";
49
- import "/@/utils/dict/JDictSelectUtil";
50
- import "/@/utils/common/compUtils";
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-2660d709.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-471fcc76.mjs";
63
- import "/@/components/Loading";
64
- import "./JModalTip-4a83aaed.mjs";
65
- import "ant-design-vue";
66
- import "@vueuse/core";
67
- const Ie = {
68
- name: "OnlineQueryForm",
69
- components: {
70
- BasicForm: Se,
71
- JRangeNumber: Me
72
- },
73
- props: {
74
- id: {
75
- type: String,
76
- default: ""
77
- }
78
- },
79
- emits: ["search", "loaded"],
80
- setup(h, { emit: m }) {
81
- const f = "/online/cgform/api/getQueryInfoVue3/", u = Y(null), b = Y([]), N = Y({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), v = Y(!1), F = Y(!1), w = Y({}), k = Y([]), { createMessage: I } = xe(), { linkTableCard2Select: J } = Pe(), C = Y(80), c = Oe({
82
- config: {},
83
- cache: {},
84
- param: {},
85
- status: !1
86
- });
87
- Q(
88
- () => c.status,
89
- (e) => D(this, null, function* () {
90
- const { config: t, cache: o, param: a } = q(c);
91
- let n = Object.assign({}, t, o, a);
92
- yield ne(n);
93
- }),
94
- { immediate: !0, deep: !0 }
95
- );
96
- function y(e, t) {
97
- return D(this, null, function* () {
98
- c.cache = j({}, e), c.param = j({}, t), c.status = !c.status;
99
- });
100
- }
101
- Q(
102
- () => h.id,
103
- (e) => {
104
- e ? re() : b.value = [];
105
- },
106
- { immediate: !0 }
107
- );
108
- function S(e) {
109
- return D(this, null, function* () {
110
- var s, g;
111
- let t = [], o = {}, a = Object.keys(e), n = -1;
112
- for (let i of a) {
113
- const r = e[i];
114
- i === "sys_org_code" && (r.fieldExtendJson || (r.fieldExtendJson = '{"store":"orgCode"}'));
115
- let p = r.view;
116
- if (r.originView = r.view, te[p] && (r.view = te[p]), yield Ve(i, r, o), r.mode == "group" && (p == "date" || p == "datetime" || p == "number" || p == "time")) {
117
- let L = U.createSlotFormSchema(i, r);
118
- t.push(L);
119
- } else if (r.view === Le) {
120
- let L = je(r, i);
121
- for (let M of L) {
122
- let H = U.createFormSchema(M.key, M), W = oe(t, M.key);
123
- W == -1 ? t.push(H) : t[W] = H;
124
- }
125
- } else if (oe(t, i) == -1) {
126
- let M = U.createFormSchema(i, r);
127
- t.push(M);
128
- }
129
- let _ = r.fieldExtendJson;
130
- _ && (_ = JSON.parse(_), _.labelLength && (n > -1 ? n = _.labelLength > n ? _.labelLength : n : n = _.labelLength));
131
- }
132
- n == -1 ? n = Ee : t.forEach((i) => {
133
- i.labelLength = n;
134
- }), t.sort(function(i, r) {
135
- return i.order - r.order;
136
- });
137
- let l = [];
138
- t.length > 2 && (v.value = !0);
139
- let d = [];
140
- for (let i = 0; i < t.length; i++) {
141
- let r = t[i];
142
- r.setFormRef(u), r.noChange(), r.asSearchForm(), i > 1 && (d.push(r.field), r.isHidden());
143
- let p = r.getFormItemSchema();
144
- if (r.slot == "groupDatetime" && t.length <= 3 && (p.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), p.component === "JSwitch") {
145
- const _ = (s = p.componentProps) != null ? s : {};
146
- p.componentProps = B(j({}, _), { query: !0 });
147
- }
148
- if (J(p), p.component === "LinkTableSelect") {
149
- let _ = (g = p.componentProps) != null ? g : {};
150
- p.componentProps = B(j({}, _), { editBtnShow: !1 });
151
- }
152
- l.push(p);
153
- }
154
- k.value = d, b.value = l, c.config = j({}, o), c.status = !c.status, setTimeout(() => {
155
- const i = n * 14 + n + 24;
156
- C.value = i;
157
- }, 0);
158
- });
159
- }
160
- const E = (e) => {
161
- const t = e.properties;
162
- t && Object.entries(t).forEach(([o, a]) => {
163
- const n = a;
164
- if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
165
- const l = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
166
- l.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(l), n.view = "date";
167
- }
168
- });
169
- };
170
- function re() {
171
- return D(this, null, function* () {
172
- let e = yield ie();
173
- E(e);
174
- let t = se(e);
175
- m("loaded", e);
176
- let { formProperties: o, hasField: a } = ae(t, e);
177
- if (a == !1) {
178
- b.value = [];
179
- return;
180
- }
181
- yield S(o);
182
- });
183
- }
184
- function ne(e) {
185
- return D(this, null, function* () {
186
- yield ve(u), yield A(e), Object.keys(e).length > 0 && R();
187
- });
188
- }
189
- function ae(e, t) {
190
- const { searchFieldList: o, joinQuery: a, table: n } = t;
191
- let l = !1, d = {};
192
- return e && Object.keys(e).map((s) => {
193
- o.indexOf(s) >= 0 && (a == !0 ? s.indexOf("@") < 0 ? (d[n + "@" + s] = e[s], l = !0) : (d[s] = e[s], l = !0) : s.indexOf("@") < 0 && (d[s] = e[s], l = !0));
194
- }), {
195
- formProperties: d,
196
- hasField: l
197
- };
198
- }
199
- function se(e) {
200
- const { properties: t, searchFieldList: o, joinQuery: a, table: n } = e;
201
- let l = {}, d = 1;
202
- return Object.keys(t).map((s) => {
203
- let g = t[s];
204
- if (g.view == "table") {
205
- let i = g.properties, r = d * 100;
206
- Object.keys(i).map((p) => {
207
- let _ = i[p];
208
- _.order = r + Number(_.order);
209
- let L = s + "@" + p;
210
- l[L] = _;
211
- }), d++;
212
- } else
213
- g.order = Number(g.order), l[s] = g;
214
- }), l;
215
- }
216
- function ie() {
217
- let e = `${f}${h.id}`;
218
- return new Promise((t) => {
219
- Ye.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
220
- o.success ? t(o.result) : (t(!1), I.warning(o.message));
221
- }).catch(() => {
222
- I.warning("获取查询条件失败!"), t(!1);
223
- });
224
- });
225
- }
226
- const [le, { resetFields: ce, setFieldsValue: A, updateSchema: me, getFieldsValue: pe }] = ke({
227
- name: "online-query-form",
228
- schemas: b,
229
- showActionButtonGroup: !1,
230
- baseColProps: N,
231
- autoSubmitOnEnter: !0,
232
- labelWidth: C,
233
- wrapperCol: null,
234
- submitFunc() {
235
- R();
236
- }
237
- /* labelCol: ONL_QUERY_LABEL_COL,
238
- wrapperCol: ONL_QUERY_WRAPPER_COL*/
239
- });
240
- function R() {
241
- let e = pe();
242
- ue(e), fe(e);
243
- let t = Object.assign({}, q(c.param), ge(e));
244
- m("search", t, !0);
245
- }
246
- const fe = (e) => {
247
- if (e) {
248
- const t = b.value.filter((o) => ["groupTime", "groupDatetime", "groupNumber"].includes(o.slot));
249
- t.length && Object.keys(e).forEach((o) => {
250
- let a;
251
- if (t.find((l) => l.field === o ? (a = o, !0) : !1)) {
252
- const d = e[a].split(",");
253
- e[`${a}_begin`] = d[0], e[`${a}_end`] = d[1], delete e[a];
254
- }
255
- });
256
- }
257
- }, ue = (e) => {
258
- const t = b.value.filter((o) => {
259
- var a;
260
- return ((a = o.componentProps) == null ? void 0 : a.picker) && o.componentProps.picker != "default";
261
- });
262
- t.length && Object.keys(e).forEach((o) => {
263
- let a;
264
- const n = t.find((l) => l.field === o || `${l.field}_begin` === o || `${l.field}_end` === o ? (a = o, !0) : !1);
265
- if (n) {
266
- const l = e[a];
267
- if (l) {
268
- const d = (s, g, i) => {
269
- const r = n.componentProps.picker;
270
- r === "year" ? i ? e[g] = P(s).endOf("year").format("YYYY-MM-DD") : e[g] = P(s).startOf("year").format("YYYY-MM-DD") : r === "month" ? i ? e[g] = P(s).endOf("month").format("YYYY-MM-DD") : e[g] = P(s).startOf("month").format("YYYY-MM-DD") : r === "week" ? i ? e[g] = P(s).endOf("week").format("YYYY-MM-DD") : e[g] = P(s).startOf("week").format("YYYY-MM-DD") : r === "quarter" && (i ? e[g] = P(s).endOf("quarter").format("YYYY-MM-DD") : e[g] = P(s).startOf("quarter").format("YYYY-MM-DD"));
271
- };
272
- if ((n == null ? void 0 : n.slot) === "groupDate") {
273
- const s = l.split(",");
274
- d(s[0], `${a}_begin`, !1), d(s[1], `${a}_end`, !0), delete e[a];
275
- } else
276
- d(l, a, !1);
277
- }
278
- }
279
- });
280
- };
281
- function G() {
282
- return D(this, null, function* () {
283
- yield ce();
284
- const { config: e, param: t } = q(c);
285
- let o = Object.assign({}, e, t);
286
- return Object.keys(o).length > 0 && (yield A(o)), o;
287
- });
288
- }
289
- function de() {
290
- return D(this, null, function* () {
291
- const e = yield G();
292
- m("search", e, !1);
293
- });
294
- }
295
- function ge(e) {
296
- return Object.keys(e).map((t) => {
297
- e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
298
- }), e;
299
- }
300
- return Q(
301
- () => F.value,
302
- (e) => {
303
- let t = k.value;
304
- if (t && t.length > 0) {
305
- let o = [];
306
- for (let a of t)
307
- o.push({
308
- field: a,
309
- show: e
310
- });
311
- me(o);
312
- }
313
- },
314
- { immediate: !1 }
315
- ), {
316
- onlineQueryFormRef: u,
317
- registerForm: le,
318
- initDefaultValues: y,
319
- toggleButtonShow: v,
320
- toggleSearchStatus: F,
321
- doSearch: R,
322
- resetSearch: de,
323
- queryParams: w,
324
- formSchemas: b,
325
- clearSearch: G,
326
- getGroupDatePlaceholder: (e) => {
327
- let t = ["开始日期", "结束日期"];
328
- if (e != null && e.picker)
329
- switch (e == null ? void 0 : e.picker) {
330
- case "year":
331
- t = ["开始年份", "结束年份"];
332
- break;
333
- case "month":
334
- t = ["开始月份", "结束月份"];
335
- break;
336
- case "week":
337
- t = ["开始周", "结束周"];
338
- break;
339
- case "quarter":
340
- t = ["开始季度", "结束季度"];
341
- break;
342
- default:
343
- t = ["开始日期", "结束日期"];
344
- }
345
- return t;
346
- }
347
- };
348
- }
349
- }, Ce = {
350
- key: 0,
351
- class: "jeecg-basic-table-form-container online-query-form p-0"
352
- }, Je = {
353
- style: { float: "left", overflow: "hidden", "margin-left": "10px" },
354
- class: "table-page-search-submitButtons"
355
- };
356
- function Re(h, m, f, u, b, N) {
357
- const v = V("a-range-picker"), F = V("a-time-range-picker"), w = V("JRangeNumber"), k = V("a-button"), I = V("a-icon"), J = V("a-col"), C = V("BasicForm");
358
- return u.formSchemas && u.formSchemas.length > 0 ? (z(), X("div", Ce, [
359
- O(C, {
360
- ref: "onlineQueryFormRef",
361
- onRegister: u.registerForm
362
- }, {
363
- groupDate: x(({ model: c, field: y, schema: S }) => [
364
- O(v, Z({
365
- style: { width: "100%" },
366
- value: c[y],
367
- "onUpdate:value": (E) => c[y] = E
368
- }, S.componentProps, {
369
- placeholder: u.getGroupDatePlaceholder(S.componentProps)
370
- }), null, 16, ["value", "onUpdate:value", "placeholder"])
371
- ]),
372
- groupDatetime: x(({ model: c, field: y }) => [
373
- O(v, {
374
- style: { width: "100%" },
375
- value: c[y],
376
- "onUpdate:value": (S) => c[y] = S,
377
- "show-time": !0
378
- }, null, 8, ["value", "onUpdate:value"])
379
- ]),
380
- groupTime: x(({ model: c, field: y }) => [
381
- O(F, {
382
- style: { width: "100%" },
383
- value: c[y],
384
- "onUpdate:value": (S) => c[y] = S,
385
- "value-format": "HH:mm:ss"
386
- }, null, 8, ["value", "onUpdate:value"])
387
- ]),
388
- groupNumber: x(({ model: c, field: y, schema: S }) => [
389
- O(w, Z({
390
- value: c[y],
391
- "onUpdate:value": (E) => c[y] = E
392
- }, S.componentProps), null, 16, ["value", "onUpdate:value"])
393
- ]),
394
- formFooter: x(() => [
395
- O(J, {
396
- md: 6,
397
- sm: 8
398
- }, {
399
- default: x(() => [
400
- Fe("span", Je, [
401
- O(k, {
402
- preIcon: "ant-design:search",
403
- type: "primary",
404
- onClick: u.doSearch
405
- }, {
406
- default: x(() => [
407
- T("查询")
408
- ]),
409
- _: 1
410
- }, 8, ["onClick"]),
411
- O(k, {
412
- preIcon: "ant-design:reload",
413
- type: "primary",
414
- onClick: u.resetSearch,
415
- style: { "margin-left": "8px" }
416
- }, {
417
- default: x(() => [
418
- T("重置")
419
- ]),
420
- _: 1
421
- }, 8, ["onClick"]),
422
- u.toggleButtonShow ? (z(), X("a", {
423
- key: 0,
424
- onClick: m[0] || (m[0] = (c) => u.toggleSearchStatus = !u.toggleSearchStatus),
425
- style: { "margin-left": "8px" }
426
- }, [
427
- T(De(u.toggleSearchStatus ? "收起" : "展开") + " ", 1),
428
- O(I, {
429
- type: u.toggleSearchStatus ? "up" : "down"
430
- }, null, 8, ["type"])
431
- ])) : ee("", !0)
432
- ])
433
- ]),
434
- _: 1
435
- })
436
- ]),
437
- _: 1
438
- }, 8, ["onRegister"])
439
- ])) : ee("", !0);
440
- }
441
- const Yt = /* @__PURE__ */ Ne(Ie, [["render", Re], ["__scopeId", "data-v-e39ff2e6"]]);
442
- export {
443
- Yt as default
444
- };