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