@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -0,0 +1,845 @@
1
+ var he = Object.defineProperty, ge = Object.defineProperties;
2
+ var Ee = Object.getOwnPropertyDescriptors;
3
+ var se = Object.getOwnPropertySymbols;
4
+ var Fe = Object.prototype.hasOwnProperty, Ce = Object.prototype.propertyIsEnumerable;
5
+ var de = (f, u, v) => u in f ? he(f, u, { enumerable: !0, configurable: !0, writable: !0, value: v }) : f[u] = v, ue = (f, u) => {
6
+ for (var v in u || (u = {}))
7
+ Fe.call(u, v) && de(f, v, u[v]);
8
+ if (se)
9
+ for (var v of se(u))
10
+ Ce.call(u, v) && de(f, v, u[v]);
11
+ return f;
12
+ }, ie = (f, u) => ge(f, Ee(u));
13
+ import { ref as x, reactive as ce, watch as ne, toRaw as fe, resolveComponent as d, openBlock as k, createElementBlock as me, Fragment as pe, createElementVNode as g, createBlock as B, withCtx as n, createVNode as o, createTextVNode as _, Teleport as ke, createCommentVNode as be, normalizeClass as re, withDirectives as _e, vShow as ve, renderList as Se, toDisplayString as we, pushScopeId as De, popScopeId as Oe } from "vue";
14
+ import { useModalInner as Be, BasicModal as xe, useModal as Ie } from "/@/components/Modal";
15
+ import { randomString as oe } from "/@/utils/common/compUtils";
16
+ import { useMessage as ye } from "/@/hooks/web/useMessage";
17
+ import { Modal as Me, Divider as Te, Empty as Ae } from "ant-design-vue";
18
+ import { createLocalStorage as Re } from "/@/utils/cache";
19
+ import { useRoute as Ve } from "vue-router";
20
+ import { b as Pe, F as Qe } from "./useExtendComponent-48d37d9b.mjs";
21
+ import { _ as Ne } from "./SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs";
22
+ import { MinusCircleOutlined as je, PlusOutlined as qe, FileTextOutlined as Ue, CloseCircleOutlined as Le, AppstoreTwoTone as Je } from "@ant-design/icons-vue";
23
+ import { _ as Ke } from "./index-6a09a912.mjs";
24
+ import "/@/components/Form/src/componentMap";
25
+ import "/@/utils/propTypes";
26
+ import "/@/components/Form/index";
27
+ import "/@/utils/http/axios";
28
+ import "lodash-es";
29
+ import "/@/components/Form/src/jeecg/components/JUpload";
30
+ import "/@/views/system/user/user.api";
31
+ import "/@/store/modules/user";
32
+ import "/@/utils";
33
+ import "/@/utils/desform/customExpression";
34
+ import "/@/store/modules/permission";
35
+ import "/@/utils/dict/JDictSelectUtil";
36
+ import "/@/components/Table";
37
+ import "/@/hooks/system/useListPage";
38
+ import "/@/components/Form/src/utils/Area";
39
+ import "/@/components/Preview/index";
40
+ import "./LinkTableListPiece-34266919.mjs";
41
+ import "./OnlineSelectCascade-c7baf52b.mjs";
42
+ import "/@/components/Loading";
43
+ import "/@/utils/auth";
44
+ import "./JModalTip-abe1515a.mjs";
45
+ import "@vueuse/core";
46
+ import "/@/utils/is";
47
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
48
+ const We = {
49
+ password: "text",
50
+ file: "text",
51
+ image: "text",
52
+ textarea: "text",
53
+ umeditor: "text",
54
+ markdown: "text",
55
+ checkbox: "list_multi",
56
+ radio: "list"
57
+ }, ze = "JSuperQuerySaved_";
58
+ function Ge() {
59
+ const { linkTableCard2Select: f } = Pe(), { createMessage: u } = ye(), v = x(), e = ce({
60
+ values: []
61
+ }), I = x("and"), [le, { setModalProps: N }] = Be(() => {
62
+ N({ confirmLoading: !1 });
63
+ }), j = Object.assign({}, { link_down: "text" }, We);
64
+ function E() {
65
+ console.log("handleSubmit", e.values);
66
+ }
67
+ function H() {
68
+ }
69
+ function Y(t, l, r) {
70
+ console.log("setFormModel", t, l), r.val = l;
71
+ }
72
+ const M = x({}), T = x([]);
73
+ function p(t) {
74
+ console.log("============="), console.log("=============", t), console.log("=============");
75
+ let { allFields: l, treeData: r } = b(t);
76
+ M.value = l, T.value = r;
77
+ }
78
+ function q(t) {
79
+ let l = {
80
+ field: void 0,
81
+ rule: "eq",
82
+ val: "",
83
+ key: oe(16)
84
+ };
85
+ t === !1 ? (e.values = [], e.values.push(l)) : t === !0 ? e.values.length == 0 && e.values.push(l) : e.values.splice(++t, 0, l);
86
+ }
87
+ function S(t) {
88
+ let l = fe(e.values), r = -1;
89
+ for (let a = 0; a < l.length; a++)
90
+ if (t.key == l[a].key) {
91
+ r = a;
92
+ break;
93
+ }
94
+ r != -1 && e.values.splice(r, 1);
95
+ }
96
+ const U = {
97
+ field: "val",
98
+ label: "测试",
99
+ component: "Input"
100
+ };
101
+ function L(t, l) {
102
+ let a = M.value[t.field];
103
+ if (!a)
104
+ return U;
105
+ j[a.view] && (a.view = j[a.view]);
106
+ let m = Qe.createFormSchema(t.field, a);
107
+ m.noChange(), m.asSearchForm(), m.updateField(t.field + l);
108
+ const c = (C) => {
109
+ t.val = C[t.field];
110
+ };
111
+ m.setFunctionForFieldValue(c);
112
+ let h = m.getFormItemSchema();
113
+ return ["empty", "not_empty"].includes(t.rule) && (h.componentProps = ie(ue({}, h.componentProps), { disabled: !0 })), f(h), h;
114
+ }
115
+ const J = x(""), A = Re(), F = ce({
116
+ visible: !1,
117
+ title: "",
118
+ content: "",
119
+ saveCode: ""
120
+ }), X = x(!1), R = Ve();
121
+ ne(() => R.fullPath, (t) => {
122
+ console.log("fullpath", t), K();
123
+ });
124
+ const y = x([]);
125
+ ne(() => y.value, (t) => {
126
+ let l = [];
127
+ t && t.length > 0 && t.map((r) => {
128
+ let a = oe(16);
129
+ l.push({
130
+ title: r.title,
131
+ slots: { icon: "custom" },
132
+ value: a
133
+ });
134
+ }), J.value = l;
135
+ }, { immediate: !0, deep: !0 });
136
+ function K() {
137
+ let t = ze + R.fullPath;
138
+ F.saveCode = t;
139
+ let l = A.get(t);
140
+ l && l instanceof Array && (y.value = l);
141
+ }
142
+ K();
143
+ function Z() {
144
+ let t = w();
145
+ if (!t) {
146
+ u.warning("空条件不能保存");
147
+ return;
148
+ }
149
+ let l = JSON.stringify(t);
150
+ $(l);
151
+ }
152
+ function $(t) {
153
+ F.visible = !0, F.title = "", F.content = t;
154
+ }
155
+ function P() {
156
+ let { title: t, content: l, saveCode: r } = F, a = W(t);
157
+ a >= 0 ? Me.confirm({
158
+ title: "提示",
159
+ content: `${t} 已存在,是否覆盖?`,
160
+ okText: "确认",
161
+ cancelText: "取消",
162
+ onOk: () => {
163
+ y.value.splice(a, 1, {
164
+ content: l,
165
+ title: t,
166
+ type: I.value
167
+ }), A.set(r, y.value), F.visible = !1, u.success("保存成功");
168
+ }
169
+ }) : (y.value.push({
170
+ content: l,
171
+ title: t,
172
+ type: I.value
173
+ }), A.set(r, y.value), F.visible = !1, u.success("保存成功"));
174
+ }
175
+ function W(t) {
176
+ let l = y.value, r = -1;
177
+ for (let a = 0; a < l.length; a++)
178
+ if (l[a].title == t) {
179
+ r = a;
180
+ break;
181
+ }
182
+ return r;
183
+ }
184
+ function w(t = !1) {
185
+ var m;
186
+ let l = e.values;
187
+ if (!l || l.length == 0)
188
+ return !1;
189
+ let r = [], a = M.value;
190
+ for (let c of l) {
191
+ let h = ["empty", "not_empty"].includes(c.rule);
192
+ if (c.field && (h || c.val || c.val === 0) && c.rule) {
193
+ let C = a[c.field], V = (m = C == null ? void 0 : C.formatValue) != null ? m : (Q) => Q, O = fe(c.val);
194
+ O instanceof Array ? O = O.map((Q) => V(Q)).join(",") : O = V(O);
195
+ let G = {
196
+ field: ee(c),
197
+ rule: c.rule,
198
+ val: O
199
+ };
200
+ if (t === !0) {
201
+ let Q = a[c.field];
202
+ Q && (G.type = Q.view, G.dbType = Q.type);
203
+ }
204
+ r.push(G);
205
+ }
206
+ }
207
+ return r.length == 0 ? !1 : r;
208
+ }
209
+ function ee(t) {
210
+ let l = t.field;
211
+ return l.indexOf("@") > 0 && (l = l.replace("@", ",")), l;
212
+ }
213
+ function te(t, { node: l }) {
214
+ console.log(t, l);
215
+ let r = l.dataRef.title, a = y.value.filter((m) => m.title == r);
216
+ if (a && a.length > 0) {
217
+ let { content: m, type: c } = a[0], h = JSON.parse(m), C = [];
218
+ for (let V of h)
219
+ C.push(Object.assign({}, { key: oe(16) }, V));
220
+ e.values = C, I.value = c;
221
+ }
222
+ }
223
+ function s(t) {
224
+ console.log(t);
225
+ let l = W(t);
226
+ l >= 0 && (y.value.splice(l, 1), A.set(F.saveCode, y.value));
227
+ }
228
+ function b(t) {
229
+ let l = {}, r = 1, a = [];
230
+ return t.properties && (t = t.properties), Object.keys(t).map((m) => {
231
+ let c = t[m];
232
+ if (c.view == "table") {
233
+ let h = c.properties || c.fields, C = r * 100, V = {
234
+ title: c.title,
235
+ value: m,
236
+ disabled: !0,
237
+ children: [],
238
+ order: C
239
+ };
240
+ Object.keys(h).map((O) => {
241
+ let z = h[O];
242
+ z.order = C + z.order;
243
+ let G = m + "@" + O;
244
+ l[G] = z, V.children.push({
245
+ title: z.title,
246
+ value: G,
247
+ isLeaf: !0,
248
+ order: z.order
249
+ });
250
+ }), i(V), a.push(V), r++;
251
+ } else {
252
+ let h = m;
253
+ l[h] = c, a.push({
254
+ title: c.title,
255
+ value: h,
256
+ isLeaf: !0,
257
+ order: c.order
258
+ });
259
+ }
260
+ }), i(a), { allFields: l, treeData: a };
261
+ }
262
+ function i(t) {
263
+ (t.children || t).sort(function(r, a) {
264
+ return r.order - a.order;
265
+ });
266
+ }
267
+ function D(t) {
268
+ const { params: l, matchType: r } = t;
269
+ if (l) {
270
+ let a = [];
271
+ for (let m of l)
272
+ a.push(Object.assign({}, { key: oe(16) }, m));
273
+ e.values = a, r.value = r;
274
+ }
275
+ }
276
+ return {
277
+ formRef: v,
278
+ init: p,
279
+ dynamicRowValues: e,
280
+ matchType: I,
281
+ registerModal: le,
282
+ handleSubmit: E,
283
+ handleCancel: H,
284
+ handleSave: Z,
285
+ doSaveQueryInfo: P,
286
+ saveInfo: F,
287
+ saveTreeData: J,
288
+ handleRemoveSaveInfo: s,
289
+ handleTreeSelect: te,
290
+ fieldTreeData: T,
291
+ addOne: q,
292
+ removeOne: S,
293
+ setFormModel: Y,
294
+ getSchema: L,
295
+ loading: X,
296
+ getQueryInfo: w,
297
+ initDefaultValues: D
298
+ };
299
+ }
300
+ const He = {
301
+ name: "OnlineSuperQuery",
302
+ props: {
303
+ config: {
304
+ type: Object,
305
+ default: []
306
+ },
307
+ status: {
308
+ type: Boolean,
309
+ default: !1
310
+ },
311
+ online: {
312
+ type: Boolean,
313
+ default: !1
314
+ }
315
+ },
316
+ components: {
317
+ BasicModal: xe,
318
+ MinusCircleOutlined: je,
319
+ PlusOutlined: qe,
320
+ OnlineSuperQueryValComponent: Ne,
321
+ FileTextOutlined: Ue,
322
+ CloseCircleOutlined: Le,
323
+ AppstoreTwoTone: Je,
324
+ Divider: Te
325
+ },
326
+ emits: ["search"],
327
+ setup(f, { emit: u }) {
328
+ const [v, e] = Ie(), { createMessage: I } = ye(), le = x(!0);
329
+ function N() {
330
+ e.closeModal();
331
+ }
332
+ function j() {
333
+ if (f.online === !0) {
334
+ let i = P(!0);
335
+ i && i.length > 0 ? (u("search", i, p.value), N()) : I.warning("空条件无法查询!");
336
+ } else {
337
+ let i = P(!0);
338
+ if (i && i.length > 0) {
339
+ let D = E(i);
340
+ u("search", D);
341
+ } else
342
+ I.warning("空条件无法查询!");
343
+ }
344
+ }
345
+ function E(i) {
346
+ let D = [];
347
+ for (let l of i) {
348
+ let r = l.field, a = l.val;
349
+ a instanceof Array && (a = a.join(",")), D.push(ie(ue({}, l), {
350
+ field: r,
351
+ val: a
352
+ }));
353
+ }
354
+ return D.length > 0 ? w.value = !0 : w.value = !1, {
355
+ superQueryMatchType: p.value,
356
+ superQueryParams: encodeURI(JSON.stringify(D))
357
+ };
358
+ }
359
+ function H() {
360
+ T.values = [], R(!1);
361
+ let i = E([]);
362
+ u("search", i);
363
+ }
364
+ const {
365
+ formRef: Y,
366
+ init: M,
367
+ dynamicRowValues: T,
368
+ matchType: p,
369
+ registerModal: q,
370
+ handleSave: S,
371
+ doSaveQueryInfo: U,
372
+ saveInfo: L,
373
+ saveTreeData: J,
374
+ handleTreeSelect: A,
375
+ handleRemoveSaveInfo: F,
376
+ fieldTreeData: X,
377
+ addOne: R,
378
+ removeOne: y,
379
+ setFormModel: K,
380
+ getSchema: Z,
381
+ loading: $,
382
+ getQueryInfo: P,
383
+ initDefaultValues: W
384
+ } = Ge(), w = x(!1);
385
+ ne(() => f.status, (i) => {
386
+ w.value = i;
387
+ }, { immediate: !0 });
388
+ function ee() {
389
+ e.openModal(), R(!0);
390
+ }
391
+ function te() {
392
+ return document.getElementsByClassName("jee-super-query-form")[0];
393
+ }
394
+ function s(i) {
395
+ console.log("onfinish", i);
396
+ }
397
+ function b(i) {
398
+ i.val = "";
399
+ }
400
+ return ne(() => f.config, (i) => {
401
+ i && M(i);
402
+ }, { immediate: !0 }), {
403
+ formRef: Y,
404
+ registerFormModal: v,
405
+ init: M,
406
+ handleChangeField: b,
407
+ dynamicRowValues: T,
408
+ matchType: p,
409
+ historyCollapsed: le,
410
+ registerModal: q,
411
+ handleSubmit: j,
412
+ handleCancel: N,
413
+ handleSave: S,
414
+ handleReset: H,
415
+ doSaveQueryInfo: U,
416
+ saveInfo: L,
417
+ saveTreeData: J,
418
+ handleTreeSelect: A,
419
+ handleRemoveSaveInfo: F,
420
+ fieldTreeData: X,
421
+ addOne: R,
422
+ removeOne: y,
423
+ setFormModel: K,
424
+ getSchema: Z,
425
+ loading: $,
426
+ onFinish: s,
427
+ getPopupContainer: te,
428
+ superQueryFlag: w,
429
+ handleOpen: ee,
430
+ initDefaultValues: W,
431
+ simpleImage: Ae.PRESENTED_IMAGE_SIMPLE
432
+ };
433
+ }
434
+ };
435
+ const ae = (f) => (De("data-v-b1c9d7e2"), f = f(), Oe(), f), Ye = { class: "j-super-query-button" }, Xe = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("span", null, "已有高级查询条件生效", -1)), Ze = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("span", null, "高级查询", -1)), $e = { style: { float: "left" } }, et = { slot: "description" }, tt = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("span", null, "没有任何查询条件", -1)), lt = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("div", null, "保存的查询", -1)), ot = ["title"], nt = { class: "icon-cancle" }, at = { style: { height: "80px", "line-height": "75px", width: "100%", "text-align": "center" } };
436
+ function ut(f, u, v, e, I, le) {
437
+ const N = d("divider"), j = d("AppstoreTwoTone"), E = d("a-button"), H = d("a-button-group"), Y = d("a-tooltip"), M = d("a-divider"), T = d("a-empty"), p = d("a-select-option"), q = d("a-select"), S = d("a-form-item"), U = d("a-col"), L = d("a-row"), J = d("a-tree-select"), A = d("online-super-query-val-component"), F = d("PlusOutlined"), X = d("MinusCircleOutlined"), R = d("a-space"), y = d("a-form"), K = d("close-circle-outlined"), Z = d("file-text-outlined"), $ = d("a-tree"), P = d("Icon"), W = d("a-card"), w = d("BasicModal"), ee = d("a-input"), te = d("a-modal");
438
+ return k(), me(pe, null, [
439
+ g("div", Ye, [
440
+ e.superQueryFlag ? (k(), B(Y, {
441
+ key: 0,
442
+ mouseLeaveDelay: 0.2
443
+ }, {
444
+ title: n(() => [
445
+ Xe,
446
+ o(N, {
447
+ type: "vertical",
448
+ style: { "background-color": "#fff" }
449
+ }),
450
+ g("a", {
451
+ onClick: u[0] || (u[0] = (...s) => e.handleReset && e.handleReset(...s))
452
+ }, "清空")
453
+ ]),
454
+ default: n(() => [
455
+ o(H, null, {
456
+ default: n(() => [
457
+ o(E, {
458
+ type: "primary",
459
+ onClick: e.handleOpen
460
+ }, {
461
+ default: n(() => [
462
+ o(j, { spin: !0 }),
463
+ Ze
464
+ ]),
465
+ _: 1
466
+ }, 8, ["onClick"])
467
+ ]),
468
+ _: 1
469
+ })
470
+ ]),
471
+ _: 1
472
+ })) : (k(), B(E, {
473
+ key: 1,
474
+ type: "primary",
475
+ preIcon: "ant-design:filter-outlined",
476
+ onClick: e.handleOpen
477
+ }, {
478
+ default: n(() => [
479
+ _(" 高级查询 ")
480
+ ]),
481
+ _: 1
482
+ }, 8, ["onClick"]))
483
+ ]),
484
+ (k(), B(ke, { to: "body" }, [
485
+ o(w, {
486
+ title: "高级查询构造器",
487
+ canFullscreen: !1,
488
+ width: 750,
489
+ onRegister: e.registerFormModal,
490
+ onOk: e.handleSubmit
491
+ }, {
492
+ footer: n(() => [
493
+ g("div", $e, [
494
+ o(E, {
495
+ loading: e.loading,
496
+ onClick: e.handleReset
497
+ }, {
498
+ default: n(() => [
499
+ _("重置")
500
+ ]),
501
+ _: 1
502
+ }, 8, ["loading", "onClick"]),
503
+ o(E, {
504
+ loading: e.loading,
505
+ onClick: e.handleSave
506
+ }, {
507
+ default: n(() => [
508
+ _("保存查询")
509
+ ]),
510
+ _: 1
511
+ }, 8, ["loading", "onClick"])
512
+ ]),
513
+ o(E, {
514
+ key: "submit",
515
+ type: "primary",
516
+ onClick: e.handleSubmit
517
+ }, {
518
+ default: n(() => [
519
+ _("确定")
520
+ ]),
521
+ _: 1
522
+ }, 8, ["onClick"]),
523
+ o(E, {
524
+ key: "back",
525
+ onClick: e.handleCancel
526
+ }, {
527
+ default: n(() => [
528
+ _("关闭")
529
+ ]),
530
+ _: 1
531
+ }, 8, ["onClick"])
532
+ ]),
533
+ default: n(() => [
534
+ e.dynamicRowValues.values.length == 0 ? (k(), B(T, { key: 0 }, {
535
+ default: n(() => [
536
+ g("div", et, [
537
+ tt,
538
+ o(M, { type: "vertical" }),
539
+ g("a", {
540
+ onClick: u[1] || (u[1] = (s) => e.addOne(-1))
541
+ }, "点击新增")
542
+ ])
543
+ ]),
544
+ _: 1
545
+ })) : be("", !0),
546
+ o(L, {
547
+ class: re("j-super-query-modal-content")
548
+ }, {
549
+ default: n(() => [
550
+ o(U, {
551
+ sm: 24,
552
+ md: 24
553
+ }, {
554
+ default: n(() => [
555
+ _e(o(L, null, {
556
+ default: n(() => [
557
+ o(U, {
558
+ md: 12,
559
+ xs: 24
560
+ }, {
561
+ default: n(() => [
562
+ o(S, {
563
+ label: "匹配模式",
564
+ labelCol: { md: 6, xs: 24 },
565
+ wrapperCol: { md: 18, xs: 24 },
566
+ style: { width: "100%" }
567
+ }, {
568
+ default: n(() => [
569
+ o(q, {
570
+ value: e.matchType,
571
+ "onUpdate:value": u[2] || (u[2] = (s) => e.matchType = s),
572
+ getPopupContainer: (s) => s.parentNode,
573
+ style: { width: "100%" }
574
+ }, {
575
+ default: n(() => [
576
+ o(p, { value: "and" }, {
577
+ default: n(() => [
578
+ _("AND(所有条件匹配)")
579
+ ]),
580
+ _: 1
581
+ }),
582
+ o(p, { value: "or" }, {
583
+ default: n(() => [
584
+ _("OR(任意一个匹配)")
585
+ ]),
586
+ _: 1
587
+ })
588
+ ]),
589
+ _: 1
590
+ }, 8, ["value", "getPopupContainer"])
591
+ ]),
592
+ _: 1
593
+ })
594
+ ]),
595
+ _: 1
596
+ })
597
+ ]),
598
+ _: 1
599
+ }, 512), [
600
+ [ve, e.dynamicRowValues.values.length > 0]
601
+ ]),
602
+ _e(o(y, {
603
+ ref: "formRef",
604
+ class: re("jee-super-query-form"),
605
+ model: e.dynamicRowValues,
606
+ onFinish: e.onFinish
607
+ }, {
608
+ default: n(() => [
609
+ (k(!0), me(pe, null, Se(e.dynamicRowValues.values, (s, b) => (k(), B(R, {
610
+ key: s.key,
611
+ style: { display: "flex", "margin-bottom": "8px" },
612
+ align: "baseline"
613
+ }, {
614
+ default: n(() => [
615
+ o(S, {
616
+ name: ["values", b, "field"],
617
+ style: { width: "150px" }
618
+ }, {
619
+ default: n(() => [
620
+ o(J, {
621
+ style: { width: "100%" },
622
+ placeholder: "请选择字段",
623
+ value: s.field,
624
+ "onUpdate:value": (i) => s.field = i,
625
+ "show-search": "",
626
+ "tree-node-filter-prop": "title",
627
+ "allow-clear": "",
628
+ "tree-default-expand-all": "",
629
+ "dropdown-style": { maxHeight: "180px", overflow: "auto" },
630
+ onChange: (i) => e.handleChangeField(s),
631
+ "tree-data": e.fieldTreeData
632
+ }, null, 8, ["value", "onUpdate:value", "onChange", "tree-data"])
633
+ ]),
634
+ _: 2
635
+ }, 1032, ["name"]),
636
+ o(S, {
637
+ name: ["values", b, "rule"],
638
+ style: { width: "100px" }
639
+ }, {
640
+ default: n(() => [
641
+ o(q, {
642
+ style: { width: "100%" },
643
+ placeholder: "请选择匹配规则",
644
+ value: s.rule,
645
+ "onUpdate:value": (i) => s.rule = i
646
+ }, {
647
+ default: n(() => [
648
+ o(p, { value: "eq" }, {
649
+ default: n(() => [
650
+ _("等于")
651
+ ]),
652
+ _: 1
653
+ }),
654
+ o(p, { value: "like" }, {
655
+ default: n(() => [
656
+ _("模糊")
657
+ ]),
658
+ _: 1
659
+ }),
660
+ o(p, { value: "right_like" }, {
661
+ default: n(() => [
662
+ _("以..开始")
663
+ ]),
664
+ _: 1
665
+ }),
666
+ o(p, { value: "left_like" }, {
667
+ default: n(() => [
668
+ _("以..结尾")
669
+ ]),
670
+ _: 1
671
+ }),
672
+ o(p, { value: "in" }, {
673
+ default: n(() => [
674
+ _("在...中")
675
+ ]),
676
+ _: 1
677
+ }),
678
+ o(p, { value: "ne" }, {
679
+ default: n(() => [
680
+ _("不等于")
681
+ ]),
682
+ _: 1
683
+ }),
684
+ o(p, { value: "gt" }, {
685
+ default: n(() => [
686
+ _("大于")
687
+ ]),
688
+ _: 1
689
+ }),
690
+ o(p, { value: "ge" }, {
691
+ default: n(() => [
692
+ _("大于等于")
693
+ ]),
694
+ _: 1
695
+ }),
696
+ o(p, { value: "lt" }, {
697
+ default: n(() => [
698
+ _("小于")
699
+ ]),
700
+ _: 1
701
+ }),
702
+ o(p, { value: "le" }, {
703
+ default: n(() => [
704
+ _("小于等于")
705
+ ]),
706
+ _: 1
707
+ })
708
+ ]),
709
+ _: 2
710
+ }, 1032, ["value", "onUpdate:value"])
711
+ ]),
712
+ _: 2
713
+ }, 1032, ["name"]),
714
+ o(S, {
715
+ name: ["values", b, "val"],
716
+ style: { width: "300px" }
717
+ }, {
718
+ default: n(() => [
719
+ o(A, {
720
+ style: { width: "100%" },
721
+ schema: e.getSchema(s, b),
722
+ formModel: s,
723
+ setFormModel: (i, D) => {
724
+ e.setFormModel(i, D, s);
725
+ },
726
+ onSubmit: e.handleSubmit
727
+ }, null, 8, ["schema", "formModel", "setFormModel", "onSubmit"])
728
+ ]),
729
+ _: 2
730
+ }, 1032, ["name"]),
731
+ o(S, null, {
732
+ default: n(() => [
733
+ o(E, {
734
+ onClick: (i) => e.addOne(b),
735
+ style: { "margin-right": "6px" }
736
+ }, {
737
+ default: n(() => [
738
+ o(F)
739
+ ]),
740
+ _: 2
741
+ }, 1032, ["onClick"]),
742
+ o(E, {
743
+ onClick: (i) => e.removeOne(s)
744
+ }, {
745
+ default: n(() => [
746
+ o(X)
747
+ ]),
748
+ _: 2
749
+ }, 1032, ["onClick"])
750
+ ]),
751
+ _: 2
752
+ }, 1024)
753
+ ]),
754
+ _: 2
755
+ }, 1024))), 128))
756
+ ]),
757
+ _: 1
758
+ }, 8, ["model", "onFinish"]), [
759
+ [ve, e.dynamicRowValues.values.length > 0]
760
+ ])
761
+ ]),
762
+ _: 1
763
+ })
764
+ ]),
765
+ _: 1
766
+ }),
767
+ o(W, {
768
+ class: re(["j-super-query-history-card", { collapsed: e.historyCollapsed }]),
769
+ bordered: !1
770
+ }, {
771
+ title: n(() => [
772
+ lt
773
+ ]),
774
+ default: n(() => [
775
+ e.saveTreeData.length === 0 ? (k(), B(T, {
776
+ key: 0,
777
+ class: "j-super-query-history-empty",
778
+ image: e.simpleImage,
779
+ description: "没有保存的查询"
780
+ }, null, 8, ["image"])) : (k(), B($, {
781
+ key: 1,
782
+ class: "j-super-query-history-tree",
783
+ treeData: e.saveTreeData,
784
+ selectedKeys: [],
785
+ "show-icon": !0,
786
+ onSelect: e.handleTreeSelect
787
+ }, {
788
+ title: n(({ title: s }) => [
789
+ g("div", null, [
790
+ g("span", { title: s }, we(s.length > 10 ? s.substring(0, 10) + "..." : s), 9, ot),
791
+ g("span", nt, [
792
+ o(K, {
793
+ onClick: (b) => e.handleRemoveSaveInfo(s)
794
+ }, null, 8, ["onClick"])
795
+ ])
796
+ ])
797
+ ]),
798
+ custom: n(() => [
799
+ o(Z)
800
+ ]),
801
+ _: 1
802
+ }, 8, ["treeData", "onSelect"])),
803
+ g("div", {
804
+ class: "collapse-box",
805
+ onClick: u[3] || (u[3] = (s) => e.historyCollapsed = !e.historyCollapsed)
806
+ }, [
807
+ e.historyCollapsed ? (k(), B(P, {
808
+ key: 0,
809
+ icon: "ant-design:caret-left"
810
+ })) : (k(), B(P, {
811
+ key: 1,
812
+ icon: "ant-design:caret-right"
813
+ }))
814
+ ])
815
+ ]),
816
+ _: 1
817
+ }, 8, ["class"])
818
+ ]),
819
+ _: 1
820
+ }, 8, ["onRegister", "onOk"])
821
+ ])),
822
+ o(te, {
823
+ title: "请输入保存的名称",
824
+ visible: e.saveInfo.visible,
825
+ onCancel: u[5] || (u[5] = (s) => e.saveInfo.visible = !1),
826
+ onOk: e.doSaveQueryInfo
827
+ }, {
828
+ default: n(() => [
829
+ g("div", at, [
830
+ o(ee, {
831
+ value: e.saveInfo.title,
832
+ "onUpdate:value": u[4] || (u[4] = (s) => e.saveInfo.title = s),
833
+ style: { width: "90%" },
834
+ placeholder: "请输入保存的名称"
835
+ }, null, 8, ["value"])
836
+ ])
837
+ ]),
838
+ _: 1
839
+ }, 8, ["visible", "onOk"])
840
+ ], 64);
841
+ }
842
+ const Lt = /* @__PURE__ */ Ke(He, [["render", ut], ["__scopeId", "data-v-b1c9d7e2"]]);
843
+ export {
844
+ Lt as default
845
+ };