@jeecg/online 3.5.3-beta3 → 3.6.0-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 (163) hide show
  1. package/AuthButtonConfig-b6a674fa.mjs +125 -0
  2. package/AuthButtonTree-09e57bc4.mjs +156 -0
  3. package/AuthDataConfig-6e7e61ec.mjs +212 -0
  4. package/AuthDataTree-e83286c5.mjs +139 -0
  5. package/AuthFieldConfig-f1ec2708.mjs +139 -0
  6. package/AuthFieldTree-bb72e21f.mjs +232 -0
  7. package/AuthManagerDrawer-28a2d108.mjs +114 -0
  8. package/AuthSetterModal-2990d553.mjs +261 -0
  9. package/CgformCopyList-36a4cbf0.mjs +246 -0
  10. package/CgformModal-7399a5ac.mjs +611 -0
  11. package/CgreportModal-2eb9c9e1.mjs +13 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
  13. package/CheckDictTable-3a8a54b3.mjs +211 -0
  14. package/CodeFileListModal-72f0d3bb.mjs +158 -0
  15. package/CodeFileViewModal-9eb88c47.mjs +244 -0
  16. package/CodeGeneratorModal-a89958f5.mjs +233 -0
  17. package/CustomButtonList-c44aec5a.mjs +363 -0
  18. package/DBAttributeTable-7d285e8d.mjs +473 -0
  19. package/DbToOnlineModal-d23cbeb1.mjs +160 -0
  20. package/DetailForm-2901d215.mjs +461 -0
  21. package/EnhanceJavaModal-153899a9.mjs +264 -0
  22. package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
  23. package/EnhanceJsModal-c2fb75b8.mjs +311 -0
  24. package/EnhanceSqlModal-965e9b0a.mjs +268 -0
  25. package/ExtendConfigModal-8f08466f.mjs +111 -0
  26. package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
  27. package/FileSelectModal-432d4521.mjs +103 -0
  28. package/ForeignKeyTable-faab7ccf.mjs +69 -0
  29. package/IndexTable-0a2d3718.mjs +89 -0
  30. package/JModalTip-e1938b49.mjs +46 -0
  31. package/JOnlineSearchSelect-7e908492.mjs +95 -0
  32. package/LeftDepart-54f245b3.mjs +82 -0
  33. package/LeftRole-c138f892.mjs +86 -0
  34. package/LeftUser-9c812f8a.mjs +105 -0
  35. package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
  36. package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
  37. package/LinkTableListPiece-7f793b08.mjs +34 -0
  38. package/ModalFormDemo-65685b0e.mjs +78 -0
  39. package/OnlCgformErpList-52c87ed3.mjs +449 -0
  40. package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
  41. package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
  42. package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
  43. package/OnlCgformTabList-15516315.mjs +390 -0
  44. package/OnlineAutoList-63a0224f.mjs +474 -0
  45. package/OnlineAutoModal-ffe19c3f.mjs +206 -0
  46. package/OnlineAutoTreeList-317c7105.mjs +495 -0
  47. package/OnlineCustomModal-3939ce78.mjs +227 -0
  48. package/OnlineDetailModal-bfb1375f.mjs +177 -0
  49. package/OnlineForm-069f6092.mjs +749 -0
  50. package/OnlineFormDetail-ad5735fb.mjs +296 -0
  51. package/OnlineQueryForm-0771c80f.mjs +385 -0
  52. package/OnlineSearchFormItem-0db5834f.mjs +348 -0
  53. package/OnlineSelectCascade-a05c30f4.mjs +159 -0
  54. package/OnlineSubFormDetail-583d01eb.mjs +142 -0
  55. package/OnlineTabAutoModal-747e071d.mjs +253 -0
  56. package/OnlineTabDetailModal-887f0174.mjs +222 -0
  57. package/OnlineTabForm-b1dcd4b4.mjs +765 -0
  58. package/OnlineTabFormDetail-8e494a96.mjs +323 -0
  59. package/PageAttributeTable-5966b201.mjs +404 -0
  60. package/ProcessOnlineForm-4382bea7.mjs +177 -0
  61. package/QueryTable-6e8053ad.mjs +115 -0
  62. package/README.md +2 -1
  63. package/SuperQuery-78db6998.mjs +841 -0
  64. package/SuperQueryValComponent-471110b5.mjs +8 -0
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  66. package/auth.api-d3a6c4b3.mjs +39 -0
  67. package/auth.data-8be5c9e3.mjs +141 -0
  68. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  69. package/constant-754f1a9d.mjs +9 -0
  70. package/enhance.api-138e6826.mjs +104 -0
  71. package/enhance.data-efc7e155.mjs +175 -0
  72. package/index-0a93652b.mjs +237 -0
  73. package/index-7e9a23f2.mjs +1494 -0
  74. package/index-b70302f2.mjs +56 -0
  75. package/main.index.js +7 -1
  76. package/package.json +1 -1
  77. package/style.css +1 -1
  78. package/useCgformList-0c603af1.mjs +424 -0
  79. package/useCustomHook-acb00837.mjs +53 -0
  80. package/useExtendComponent-aa1cdfc8.mjs +3917 -0
  81. package/useListButton-0f18bf6a.mjs +671 -0
  82. package/useOnlinePopEvent-687070b7.mjs +19 -0
  83. package/useOnlineTest-e4bd8be3.mjs +42 -0
  84. package/useSchemas-43429d80.mjs +685 -0
  85. package/useTableSync-774c3774.mjs +87 -0
  86. package/AuthButtonConfig.js +0 -147
  87. package/AuthButtonTree.js +0 -183
  88. package/AuthDataConfig.js +0 -246
  89. package/AuthDataTree.js +0 -160
  90. package/AuthFieldConfig.js +0 -170
  91. package/AuthFieldTree.js +0 -281
  92. package/AuthManagerDrawer.js +0 -125
  93. package/AuthSetterModal.js +0 -316
  94. package/CgformCopyList.js +0 -266
  95. package/CgformModal.js +0 -780
  96. package/CgreportModal.js +0 -667
  97. package/CheckDictTable.js +0 -242
  98. package/CodeFileListModal.js +0 -175
  99. package/CodeFileViewModal.js +0 -325
  100. package/CodeGeneratorModal.js +0 -297
  101. package/CustomButtonList.js +0 -410
  102. package/DBAttributeTable.js +0 -526
  103. package/DbToOnlineModal.js +0 -192
  104. package/DetailForm.js +0 -608
  105. package/EnhanceJavaModal.js +0 -298
  106. package/EnhanceJsHistory.js +0 -229
  107. package/EnhanceJsModal.js +0 -293
  108. package/EnhanceSqlModal.js +0 -299
  109. package/ExtendConfigModal.js +0 -151
  110. package/FieldExtendJsonModal.js +0 -283
  111. package/FileSelectModal.js +0 -102
  112. package/ForeignKeyTable.js +0 -79
  113. package/IndexTable.js +0 -97
  114. package/JModalTip.js +0 -54
  115. package/JOnlineSearchSelect.js +0 -115
  116. package/LICENSE +0 -9
  117. package/LeftDepart.js +0 -96
  118. package/LeftRole.js +0 -98
  119. package/LeftUser.js +0 -117
  120. package/LinkTableConfigModal.js +0 -289
  121. package/LinkTableFieldConfigModal.js +0 -218
  122. package/LinkTableListPiece.js +0 -36
  123. package/ModalFormDemo.js +0 -85
  124. package/OnlineAutoList.js +0 -523
  125. package/OnlineAutoModal.js +0 -226
  126. package/OnlineAutoTreeList.js +0 -552
  127. package/OnlineCustomModal.js +0 -286
  128. package/OnlineDetailModal.js +0 -190
  129. package/OnlineForm.js +0 -1016
  130. package/OnlineFormDetail.js +0 -347
  131. package/OnlineQueryForm.js +0 -484
  132. package/OnlineSearchFormItem.js +0 -436
  133. package/OnlineSelectCascade.js +0 -228
  134. package/OnlineSubFormDetail.js +0 -166
  135. package/PageAttributeTable.js +0 -486
  136. package/ProcessOnlineForm.js +0 -208
  137. package/QueryTable.js +0 -129
  138. package/SuperQuery.js +0 -1020
  139. package/SuperQueryValComponent.js +0 -8
  140. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
  141. package/_arrayPush.js +0 -278
  142. package/_baseClone.js +0 -471
  143. package/_baseSlice.js +0 -18
  144. package/_commonjsHelpers.js +0 -5
  145. package/_flatRest.js +0 -174
  146. package/auth.api.js +0 -43
  147. package/auth.data.js +0 -142
  148. package/clipboard.js +0 -565
  149. package/enhance.api.js +0 -129
  150. package/enhance.data.js +0 -196
  151. package/index.js +0 -87
  152. package/index2.js +0 -340
  153. package/index3.js +0 -264
  154. package/isArray.js +0 -47
  155. package/omit.js +0 -60
  156. package/pick.js +0 -68
  157. package/toString.js +0 -31
  158. package/useCgformList.js +0 -470
  159. package/useExtendComponent.js +0 -5205
  160. package/useListButton.js +0 -923
  161. package/useOnlineTest.js +0 -44
  162. package/useSchemas.js +0 -653
  163. package/useTableSync.js +0 -117
@@ -1,484 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- var __async = (__this, __arguments, generator) => {
18
- return new Promise((resolve, reject) => {
19
- var fulfilled = (value) => {
20
- try {
21
- step(generator.next(value));
22
- } catch (e) {
23
- reject(e);
24
- }
25
- };
26
- var rejected = (value) => {
27
- try {
28
- step(generator.throw(value));
29
- } catch (e) {
30
- reject(e);
31
- }
32
- };
33
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
34
- step((generator = generator.apply(__this, __arguments)).next());
35
- });
36
- };
37
- import { BasicForm, useForm } from "/@/components/Form/index";
38
- import { ref, reactive, watch, toRaw, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, pushScopeId, popScopeId } from "vue";
39
- import { defHttp } from "/@/utils/http/axios";
40
- import { useMessage } from "/@/hooks/web/useMessage";
41
- import { u as useExtendComponent, g as getRefPromise, i as FORM_VIEW_TO_QUERY_VIEW, j as loadOneFieldDefVal, F as FormSchemaFactory, k as LINK_DOWN, m as handleLinkDown, n as getFieldIndex } from "./useExtendComponent.js";
42
- import { _ as _export_sfc } from "./index.js";
43
- import "/@/components/Form/src/componentMap";
44
- import "/@/utils/propTypes";
45
- import "@ant-design/icons-vue";
46
- import "/@/components/Modal";
47
- import "/@/components/Form/src/jeecg/components/JUpload";
48
- import "/@/views/system/user/user.api";
49
- import "./_commonjsHelpers.js";
50
- import "/@/store/modules/user";
51
- import "/@/utils";
52
- import "/@/utils/desform/customExpression";
53
- import "/@/store/modules/permission";
54
- import "/@/utils/dict/JDictSelectUtil";
55
- import "/@/utils/common/compUtils";
56
- import "./pick.js";
57
- import "./_flatRest.js";
58
- import "./isArray.js";
59
- import "./toString.js";
60
- import "./_arrayPush.js";
61
- import "/@/components/Table";
62
- import "/@/hooks/system/useListPage";
63
- import "vue-router";
64
- import "/@/components/Form/src/utils/Area";
65
- import "/@/components/Preview/index";
66
- import "./LinkTableListPiece.js";
67
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
68
- import "./OnlineSelectCascade.js";
69
- import "/@/components/Loading";
70
- import "/@/utils/auth";
71
- import "./JModalTip.js";
72
- import "ant-design-vue";
73
- import "@vueuse/core";
74
- var OnlineQueryForm_vue_vue_type_style_index_0_scoped_true_lang = "";
75
- const _sfc_main = {
76
- name: "OnlineQueryForm",
77
- components: {
78
- BasicForm
79
- },
80
- props: {
81
- id: {
82
- type: String,
83
- default: ""
84
- }
85
- },
86
- emits: ["search", "loaded"],
87
- setup(props, { emit }) {
88
- const LOAD_URL = "/online/cgform/api/getQueryInfoVue3/";
89
- const onlineQueryFormRef = ref(null);
90
- const formSchemas = ref([]);
91
- const baseColProps = ref({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 });
92
- const toggleButtonShow = ref(false);
93
- const toggleSearchStatus = ref(false);
94
- const queryParams = ref({});
95
- const hideList = ref([]);
96
- const { createMessage: $message } = useMessage();
97
- const { linkTableCard2Select } = useExtendComponent();
98
- const defaultValues = reactive({
99
- config: {},
100
- cache: {},
101
- param: {},
102
- status: false
103
- });
104
- watch(
105
- () => defaultValues.status,
106
- (val) => __async(this, null, function* () {
107
- console.log("-------------defaultValues\u53D1\u751F\u6539\u53D8,\u9700\u8981\u91CD\u7F6E\u8868\u5355---------------");
108
- const { config, cache, param } = toRaw(defaultValues);
109
- let rawValues = Object.assign({}, config, cache, param);
110
- yield customSetFieldsValue(rawValues);
111
- }),
112
- { immediate: true, deep: true }
113
- );
114
- function initDefaultValues(cache, param) {
115
- return __async(this, null, function* () {
116
- defaultValues.cache = __spreadValues({}, cache);
117
- defaultValues.param = __spreadValues({}, param);
118
- defaultValues.status = !defaultValues.status;
119
- });
120
- }
121
- watch(
122
- () => props.id,
123
- (val) => {
124
- if (val) {
125
- resetForm();
126
- } else {
127
- formSchemas.value = [];
128
- }
129
- },
130
- { immediate: true }
131
- );
132
- function initSchemas(formProperties) {
133
- return __async(this, null, function* () {
134
- let arr = [];
135
- let configValue = {};
136
- let keys = Object.keys(formProperties);
137
- for (let key of keys) {
138
- const item = formProperties[key];
139
- if (key === "sys_org_code") {
140
- if (!item.fieldExtendJson) {
141
- item.fieldExtendJson = '{"store":"orgCode"}';
142
- }
143
- }
144
- let view = item.view;
145
- if (FORM_VIEW_TO_QUERY_VIEW[view]) {
146
- item.view = FORM_VIEW_TO_QUERY_VIEW[view];
147
- }
148
- yield loadOneFieldDefVal(key, item, configValue);
149
- if (item.mode == "group" && ("date" == view || "datetime" == view || "number" == view)) {
150
- let temp = FormSchemaFactory.createSlotFormSchema(key, item);
151
- arr.push(temp);
152
- } else {
153
- if (item.view === LINK_DOWN) {
154
- let array = handleLinkDown(item, key);
155
- for (let linkDownItem of array) {
156
- let temp = FormSchemaFactory.createFormSchema(linkDownItem.key, linkDownItem);
157
- let tempIndex = getFieldIndex(arr, linkDownItem.key);
158
- if (tempIndex == -1) {
159
- arr.push(temp);
160
- } else {
161
- arr[tempIndex] = temp;
162
- }
163
- }
164
- } else {
165
- let tempIndex = getFieldIndex(arr, key);
166
- if (tempIndex == -1) {
167
- let temp = FormSchemaFactory.createFormSchema(key, item);
168
- arr.push(temp);
169
- }
170
- }
171
- }
172
- }
173
- arr.sort(function(a, b) {
174
- return a.order - b.order;
175
- });
176
- let schemaArray = [];
177
- if (arr.length > 2) {
178
- toggleButtonShow.value = true;
179
- }
180
- let hideFieldName = [];
181
- for (let i = 0; i < arr.length; i++) {
182
- let item = arr[i];
183
- item.setFormRef(onlineQueryFormRef);
184
- item.noChange();
185
- item.asSearchForm();
186
- if (i > 1) {
187
- hideFieldName.push(item.field);
188
- item.isHidden();
189
- }
190
- let tempSchema = item.getFormItemSchema();
191
- if (item.slot == "groupDatetime") {
192
- tempSchema["colProps"] = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 };
193
- }
194
- linkTableCard2Select(tempSchema);
195
- schemaArray.push(tempSchema);
196
- }
197
- hideList.value = hideFieldName;
198
- formSchemas.value = schemaArray;
199
- defaultValues.config = __spreadValues({}, configValue);
200
- defaultValues.status = !defaultValues.status;
201
- });
202
- }
203
- function resetForm() {
204
- return __async(this, null, function* () {
205
- let json = yield loadQueryInfo();
206
- let allFields = getAllFields(json);
207
- emit("loaded", json);
208
- let { formProperties, hasField } = getQueryFormProperties(allFields, json);
209
- if (hasField == false) {
210
- formSchemas.value = [];
211
- return;
212
- }
213
- yield initSchemas(formProperties);
214
- });
215
- }
216
- function customSetFieldsValue(rawValues) {
217
- return __async(this, null, function* () {
218
- yield getRefPromise(onlineQueryFormRef);
219
- console.log("rawValues", rawValues);
220
- yield setFieldsValue(rawValues);
221
- if (Object.keys(rawValues).length > 0) {
222
- doSearch();
223
- }
224
- });
225
- }
226
- function getQueryFormProperties(allFields, json) {
227
- const { searchFieldList, joinQuery, table } = json;
228
- let hasField = false;
229
- let formProperties = {};
230
- if (allFields) {
231
- Object.keys(allFields).map((field) => {
232
- if (searchFieldList.indexOf(field) >= 0) {
233
- if (joinQuery == true) {
234
- if (field.indexOf("@") < 0) {
235
- formProperties[table + "@" + field] = allFields[field];
236
- hasField = true;
237
- } else {
238
- formProperties[field] = allFields[field];
239
- hasField = true;
240
- }
241
- } else {
242
- if (field.indexOf("@") < 0) {
243
- formProperties[field] = allFields[field];
244
- hasField = true;
245
- }
246
- }
247
- }
248
- });
249
- }
250
- return {
251
- formProperties,
252
- hasField
253
- };
254
- }
255
- function getAllFields(json) {
256
- const { properties, searchFieldList, joinQuery, table } = json;
257
- let allFields = {};
258
- let order = 1;
259
- Object.keys(properties).map((field) => {
260
- let item = properties[field];
261
- if (item.view == "table") {
262
- let subProps = item["properties"];
263
- let subTableOrder = order * 100;
264
- Object.keys(subProps).map((subField) => {
265
- let subItem = subProps[subField];
266
- subItem["order"] = subTableOrder + Number(subItem["order"]);
267
- let subFieldKey = field + "@" + subField;
268
- allFields[subFieldKey] = subItem;
269
- });
270
- order++;
271
- } else {
272
- item["order"] = Number(item["order"]);
273
- allFields[field] = item;
274
- }
275
- });
276
- return allFields;
277
- }
278
- function loadQueryInfo() {
279
- let url = `${LOAD_URL}${props.id}`;
280
- return new Promise((resolve) => {
281
- defHttp.get({ url }, { isTransformResponse: false }).then((res) => {
282
- if (res.success) {
283
- resolve(res.result);
284
- } else {
285
- resolve(false);
286
- $message.warning(res.message);
287
- }
288
- }).catch(() => {
289
- $message.warning("\u83B7\u53D6\u67E5\u8BE2\u6761\u4EF6\u5931\u8D25!");
290
- resolve(false);
291
- });
292
- });
293
- }
294
- const [registerForm, { resetFields, setFieldsValue, updateSchema, getFieldsValue }] = useForm({
295
- schemas: formSchemas,
296
- showActionButtonGroup: false,
297
- baseColProps,
298
- autoSubmitOnEnter: true,
299
- submitFunc() {
300
- doSearch();
301
- }
302
- });
303
- function doSearch() {
304
- let formValues = getFieldsValue();
305
- let data = Object.assign({}, toRaw(defaultValues.param), changeDataIfArray2String(formValues));
306
- emit("search", data, true);
307
- }
308
- function resetSearch() {
309
- return __async(this, null, function* () {
310
- yield resetFields();
311
- const { config, param } = toRaw(defaultValues);
312
- let rawValues = Object.assign({}, config, param);
313
- if (Object.keys(rawValues).length > 0) {
314
- yield setFieldsValue(rawValues);
315
- }
316
- emit("search", rawValues, false);
317
- });
318
- }
319
- function changeDataIfArray2String(data) {
320
- Object.keys(data).map((k) => {
321
- if (data[k]) {
322
- if (data[k] instanceof Array) {
323
- data[k] = data[k].join(",");
324
- }
325
- }
326
- });
327
- return data;
328
- }
329
- watch(
330
- () => toggleSearchStatus.value,
331
- (status) => {
332
- let names = hideList.value;
333
- if (names && names.length > 0) {
334
- let arr = [];
335
- for (let name of names) {
336
- arr.push({
337
- field: name,
338
- show: status
339
- });
340
- }
341
- updateSchema(arr);
342
- }
343
- },
344
- { immediate: false }
345
- );
346
- return {
347
- onlineQueryFormRef,
348
- registerForm,
349
- initDefaultValues,
350
- toggleButtonShow,
351
- toggleSearchStatus,
352
- doSearch,
353
- resetSearch,
354
- queryParams,
355
- formSchemas
356
- };
357
- }
358
- };
359
- const _withScopeId = (n) => (pushScopeId("data-v-4b8f6d7a"), n = n(), popScopeId(), n);
360
- const _hoisted_1 = {
361
- key: 0,
362
- class: "jeecg-basic-table-form-container p-0"
363
- };
364
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "group-query-string" }, "~", -1));
365
- const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "group-query-string" }, "~", -1));
366
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "group-query-string" }, "~", -1));
367
- const _hoisted_5 = {
368
- style: { "float": "left", "overflow": "hidden", "margin-left": "10px" },
369
- class: "table-page-search-submitButtons"
370
- };
371
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
372
- const _component_a_date_picker = resolveComponent("a-date-picker");
373
- const _component_a_input_number = resolveComponent("a-input-number");
374
- const _component_a_button = resolveComponent("a-button");
375
- const _component_a_icon = resolveComponent("a-icon");
376
- const _component_a_col = resolveComponent("a-col");
377
- const _component_BasicForm = resolveComponent("BasicForm");
378
- return $setup.formSchemas && $setup.formSchemas.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
379
- createVNode(_component_BasicForm, {
380
- ref: "onlineQueryFormRef",
381
- onRegister: $setup.registerForm
382
- }, {
383
- groupDate: withCtx(({ model, field }) => [
384
- createVNode(_component_a_date_picker, {
385
- showTime: false,
386
- valueFormat: "YYYY-MM-DD",
387
- placeholder: "\u5F00\u59CB\u65E5\u671F",
388
- value: model[field + "_begin"],
389
- "onUpdate:value": ($event) => model[field + "_begin"] = $event,
390
- style: { "width": "calc(50% - 15px)", "min-width": "100px" }
391
- }, null, 8, ["value", "onUpdate:value"]),
392
- _hoisted_2,
393
- createVNode(_component_a_date_picker, {
394
- showTime: false,
395
- valueFormat: "YYYY-MM-DD",
396
- placeholder: "\u7ED3\u675F\u65E5\u671F",
397
- value: model[field + "_end"],
398
- "onUpdate:value": ($event) => model[field + "_end"] = $event,
399
- style: { "width": "calc(50% - 15px)", "min-width": "100px" }
400
- }, null, 8, ["value", "onUpdate:value"])
401
- ]),
402
- groupDatetime: withCtx(({ model, field }) => [
403
- createVNode(_component_a_date_picker, {
404
- showTime: true,
405
- valueFormat: "YYYY-MM-DD HH:mm:ss",
406
- placeholder: "\u5F00\u59CB\u65F6\u95F4",
407
- value: model[field + "_begin"],
408
- "onUpdate:value": ($event) => model[field + "_begin"] = $event,
409
- style: { "min-width": "100px", "width": "calc(50% - 15px)" }
410
- }, null, 8, ["value", "onUpdate:value"]),
411
- _hoisted_3,
412
- createVNode(_component_a_date_picker, {
413
- showTime: true,
414
- valueFormat: "YYYY-MM-DD HH:mm:ss",
415
- placeholder: "\u7ED3\u675F\u65F6\u95F4",
416
- value: model[field + "_end"],
417
- "onUpdate:value": ($event) => model[field + "_end"] = $event,
418
- style: { "min-width": "100px", "width": "calc(50% - 15px)" }
419
- }, null, 8, ["value", "onUpdate:value"])
420
- ]),
421
- groupNumber: withCtx(({ model, field }) => [
422
- createVNode(_component_a_input_number, {
423
- placeholder: "\u5F00\u59CB\u503C",
424
- value: model[field + "_begin"],
425
- "onUpdate:value": ($event) => model[field + "_begin"] = $event,
426
- style: { "width": "calc(50% - 15px)" }
427
- }, null, 8, ["value", "onUpdate:value"]),
428
- _hoisted_4,
429
- createVNode(_component_a_input_number, {
430
- placeholder: "\u7ED3\u675F\u503C",
431
- value: model[field + "_end"],
432
- "onUpdate:value": ($event) => model[field + "_end"] = $event,
433
- style: { "width": "calc(50% - 15px)" }
434
- }, null, 8, ["value", "onUpdate:value"])
435
- ]),
436
- formFooter: withCtx(() => [
437
- createVNode(_component_a_col, {
438
- md: 6,
439
- sm: 8
440
- }, {
441
- default: withCtx(() => [
442
- createElementVNode("span", _hoisted_5, [
443
- createVNode(_component_a_button, {
444
- preIcon: "ant-design:search",
445
- type: "primary",
446
- onClick: $setup.doSearch
447
- }, {
448
- default: withCtx(() => [
449
- createTextVNode("\u67E5\u8BE2")
450
- ]),
451
- _: 1
452
- }, 8, ["onClick"]),
453
- createVNode(_component_a_button, {
454
- preIcon: "ant-design:reload",
455
- type: "primary",
456
- onClick: $setup.resetSearch,
457
- style: { "margin-left": "8px" }
458
- }, {
459
- default: withCtx(() => [
460
- createTextVNode("\u91CD\u7F6E")
461
- ]),
462
- _: 1
463
- }, 8, ["onClick"]),
464
- $setup.toggleButtonShow ? (openBlock(), createElementBlock("a", {
465
- key: 0,
466
- onClick: _cache[0] || (_cache[0] = ($event) => $setup.toggleSearchStatus = !$setup.toggleSearchStatus),
467
- style: { "margin-left": "8px" }
468
- }, [
469
- createTextVNode(toDisplayString($setup.toggleSearchStatus ? "\u6536\u8D77" : "\u5C55\u5F00") + " ", 1),
470
- createVNode(_component_a_icon, {
471
- type: $setup.toggleSearchStatus ? "up" : "down"
472
- }, null, 8, ["type"])
473
- ])) : createCommentVNode("", true)
474
- ])
475
- ]),
476
- _: 1
477
- })
478
- ]),
479
- _: 1
480
- }, 8, ["onRegister"])
481
- ])) : createCommentVNode("", true);
482
- }
483
- var OnlineQueryForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4b8f6d7a"]]);
484
- export { OnlineQueryForm as default };