@jeecg/online 3.5.3-vite4 → 3.6.2-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 (101) hide show
  1. package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
  2. package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
  3. package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
  4. package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
  5. package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
  6. package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
  7. package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
  8. package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
  9. package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
  10. package/CgformModal-eccfc38e.mjs +611 -0
  11. package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
  13. package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
  14. package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
  15. package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
  16. package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
  17. package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
  18. package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
  19. package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
  20. package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
  21. package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
  22. package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
  23. package/EnhanceJsModal-05c73a59.mjs +311 -0
  24. package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
  25. package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
  26. package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
  27. package/FileSelectModal-9a02560b.mjs +103 -0
  28. package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
  29. package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
  30. package/JModalTip-33c7dc44.mjs +49 -0
  31. package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
  32. package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
  33. package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
  34. package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
  35. package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
  36. package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
  37. package/LinkTableListPiece-8499a318.mjs +34 -0
  38. package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
  39. package/OnlCgformErpList-db45e22b.mjs +454 -0
  40. package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
  41. package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
  42. package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
  43. package/OnlCgformTabList-a9e1e36a.mjs +395 -0
  44. package/OnlineAutoList-0583a910.mjs +479 -0
  45. package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
  46. package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
  47. package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
  48. package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
  49. package/OnlineForm-1fa2d893.mjs +750 -0
  50. package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
  51. package/OnlineQueryForm-1bfc8320.mjs +386 -0
  52. package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
  53. package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
  54. package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
  55. package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
  56. package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
  57. package/OnlineTabForm-512d3951.mjs +766 -0
  58. package/OnlineTabFormDetail-5a70219d.mjs +324 -0
  59. package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
  60. package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
  61. package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
  62. package/README.md +5 -2
  63. package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
  64. package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
  66. package/cgformState-d9f8ec42.mjs +28 -0
  67. package/constant-754f1a9d.mjs +9 -0
  68. package/index-0e3ab3af.mjs +56 -0
  69. package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
  70. package/index-b7a05eef.mjs +1496 -0
  71. package/main.index.js +1 -1
  72. package/package.json +1 -1
  73. package/style.css +1 -1
  74. package/useCgformList-423282b7.mjs +400 -0
  75. package/useCustomHook-acb00837.mjs +53 -0
  76. package/useExtendComponent-325fe3f1.mjs +3926 -0
  77. package/useListButton-cdbab702.mjs +676 -0
  78. package/useOnlinePopEvent-687070b7.mjs +19 -0
  79. package/useOnlineTest-e4bd8be3.mjs +42 -0
  80. package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
  81. package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
  82. package/CgformModal-6938d8c2.mjs +0 -613
  83. package/EnhanceJsModal-0b133341.mjs +0 -233
  84. package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
  85. package/FileSelectModal-64aaf623.mjs +0 -91
  86. package/JModalTip-abe1515a.mjs +0 -46
  87. package/LinkTableListPiece-34266919.mjs +0 -34
  88. package/OnlCgformErpList-7a0388d8.mjs +0 -425
  89. package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
  90. package/OnlineAutoList-85e6a30d.mjs +0 -472
  91. package/OnlineForm-630a22c2.mjs +0 -778
  92. package/OnlineQueryForm-1c5949a7.mjs +0 -378
  93. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
  94. package/constant-fe20103a.mjs +0 -6
  95. package/index-6a09a912.mjs +0 -58
  96. package/index-9d32ae88.mjs +0 -313
  97. package/useCgformList-2d6a5955.mjs +0 -388
  98. package/useExtendComponent-48d37d9b.mjs +0 -3919
  99. package/useListButton-cef1371a.mjs +0 -656
  100. package/useOnlinePopEvent-e9a042f8.mjs +0 -19
  101. package/useOnlineTest-0df0ae86.mjs +0 -43
@@ -2,30 +2,31 @@ var he = Object.defineProperty, ge = Object.defineProperties;
2
2
  var Ee = Object.getOwnPropertyDescriptors;
3
3
  var se = Object.getOwnPropertySymbols;
4
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]);
5
+ var de = (f, i, y) => i in f ? he(f, i, { enumerable: !0, configurable: !0, writable: !0, value: y }) : f[i] = y, ue = (f, i) => {
6
+ for (var y in i || (i = {}))
7
+ Fe.call(i, y) && de(f, y, i[y]);
8
8
  if (se)
9
- for (var v of se(u))
10
- Ce.call(u, v) && de(f, v, u[v]);
9
+ for (var y of se(i))
10
+ Ce.call(i, y) && de(f, y, i[y]);
11
11
  return f;
12
- }, ie = (f, u) => ge(f, Ee(u));
12
+ }, ie = (f, i) => ge(f, Ee(i));
13
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
14
  import { useModalInner as Be, BasicModal as xe, useModal as Ie } from "/@/components/Modal";
15
15
  import { randomString as oe } from "/@/utils/common/compUtils";
16
16
  import { useMessage as ye } from "/@/hooks/web/useMessage";
17
- import { Modal as Me, Divider as Te, Empty as Ae } from "ant-design-vue";
17
+ import { Modal as Ae, Divider as Te, Empty as Me } from "ant-design-vue";
18
18
  import { createLocalStorage as Re } from "/@/utils/cache";
19
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";
20
+ import { j as Pe, F as Qe } from "./useExtendComponent-325fe3f1.mjs";
21
+ import { _ as je } from "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
22
+ import { MinusCircleOutlined as Ne, PlusOutlined as qe, FileTextOutlined as Le, CloseCircleOutlined as Ue, AppstoreTwoTone as Je } from "@ant-design/icons-vue";
23
+ import { _ as Ke } from "./index-0e3ab3af.mjs";
24
24
  import "/@/components/Form/src/componentMap";
25
25
  import "/@/utils/propTypes";
26
26
  import "/@/components/Form/index";
27
27
  import "/@/utils/http/axios";
28
28
  import "lodash-es";
29
+ import "./constant-754f1a9d.mjs";
29
30
  import "/@/components/Form/src/jeecg/components/JUpload";
30
31
  import "/@/views/system/user/user.api";
31
32
  import "/@/store/modules/user";
@@ -37,15 +38,16 @@ import "/@/components/Table";
37
38
  import "/@/hooks/system/useListPage";
38
39
  import "/@/components/Form/src/utils/Area";
39
40
  import "/@/components/Preview/index";
40
- import "./LinkTableListPiece-34266919.mjs";
41
- import "./OnlineSelectCascade-c7baf52b.mjs";
41
+ import "./LinkTableListPiece-8499a318.mjs";
42
+ import "./OnlineSelectCascade-4265c95d.mjs";
42
43
  import "/@/components/Loading";
43
44
  import "/@/utils/auth";
44
- import "./JModalTip-abe1515a.mjs";
45
+ import "./JModalTip-33c7dc44.mjs";
46
+ import "/@/hooks/web/useAppInject";
45
47
  import "@vueuse/core";
46
48
  import "/@/utils/is";
47
49
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
48
- const We = {
50
+ const He = {
49
51
  password: "text",
50
52
  file: "text",
51
53
  image: "text",
@@ -54,26 +56,24 @@ const We = {
54
56
  markdown: "text",
55
57
  checkbox: "list_multi",
56
58
  radio: "list"
57
- }, ze = "JSuperQuerySaved_";
58
- function Ge() {
59
- const { linkTableCard2Select: f } = Pe(), { createMessage: u } = ye(), v = x(), e = ce({
59
+ }, We = "JSuperQuerySaved_";
60
+ function ze() {
61
+ const { linkTableCard2Select: f } = Pe(), { createMessage: i } = ye(), y = x(), e = ce({
60
62
  values: []
61
- }), I = x("and"), [le, { setModalProps: N }] = Be(() => {
62
- N({ confirmLoading: !1 });
63
- }), j = Object.assign({}, { link_down: "text" }, We);
63
+ }), I = x("and"), [le, { setModalProps: j }] = Be(() => {
64
+ j({ confirmLoading: !1 });
65
+ }), N = Object.assign({}, { link_down: "text" }, He);
64
66
  function E() {
65
- console.log("handleSubmit", e.values);
66
67
  }
67
- function H() {
68
+ function G() {
68
69
  }
69
70
  function Y(t, l, r) {
70
- console.log("setFormModel", t, l), r.val = l;
71
+ r.val = l;
71
72
  }
72
- const M = x({}), T = x([]);
73
+ const A = x({}), T = x([]);
73
74
  function p(t) {
74
- console.log("============="), console.log("=============", t), console.log("=============");
75
75
  let { allFields: l, treeData: r } = b(t);
76
- M.value = l, T.value = r;
76
+ A.value = l, T.value = r;
77
77
  }
78
78
  function q(t) {
79
79
  let l = {
@@ -93,36 +93,36 @@ function Ge() {
93
93
  }
94
94
  r != -1 && e.values.splice(r, 1);
95
95
  }
96
- const U = {
96
+ const L = {
97
97
  field: "val",
98
98
  label: "测试",
99
99
  component: "Input"
100
100
  };
101
- function L(t, l) {
102
- let a = M.value[t.field];
101
+ function U(t, l) {
102
+ let a = A.value[t.field];
103
103
  if (!a)
104
- return U;
105
- j[a.view] && (a.view = j[a.view]);
104
+ return L;
105
+ N[a.view] && (a.view = N[a.view]);
106
106
  let m = Qe.createFormSchema(t.field, a);
107
107
  m.noChange(), m.asSearchForm(), m.updateField(t.field + l);
108
108
  const c = (C) => {
109
109
  t.val = C[t.field];
110
110
  };
111
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;
112
+ let v = m.getFormItemSchema();
113
+ return ["empty", "not_empty"].includes(t.rule) && (v.componentProps = ie(ue({}, v.componentProps), { disabled: !0 })), f(v), v && v.component === "InputNumber" && (t.curLineAlign = "start"), v;
114
114
  }
115
- const J = x(""), A = Re(), F = ce({
115
+ const J = x(""), M = Re(), F = ce({
116
116
  visible: !1,
117
117
  title: "",
118
118
  content: "",
119
119
  saveCode: ""
120
120
  }), X = x(!1), R = Ve();
121
121
  ne(() => R.fullPath, (t) => {
122
- console.log("fullpath", t), K();
122
+ K();
123
123
  });
124
- const y = x([]);
125
- ne(() => y.value, (t) => {
124
+ const h = x([]);
125
+ ne(() => h.value, (t) => {
126
126
  let l = [];
127
127
  t && t.length > 0 && t.map((r) => {
128
128
  let a = oe(16);
@@ -134,16 +134,16 @@ function Ge() {
134
134
  }), J.value = l;
135
135
  }, { immediate: !0, deep: !0 });
136
136
  function K() {
137
- let t = ze + R.fullPath;
137
+ let t = We + R.fullPath;
138
138
  F.saveCode = t;
139
- let l = A.get(t);
140
- l && l instanceof Array && (y.value = l);
139
+ let l = M.get(t);
140
+ l && l instanceof Array && (h.value = l);
141
141
  }
142
142
  K();
143
143
  function Z() {
144
144
  let t = w();
145
145
  if (!t) {
146
- u.warning("空条件不能保存");
146
+ i.warning("空条件不能保存");
147
147
  return;
148
148
  }
149
149
  let l = JSON.stringify(t);
@@ -153,27 +153,27 @@ function Ge() {
153
153
  F.visible = !0, F.title = "", F.content = t;
154
154
  }
155
155
  function P() {
156
- let { title: t, content: l, saveCode: r } = F, a = W(t);
157
- a >= 0 ? Me.confirm({
156
+ let { title: t, content: l, saveCode: r } = F, a = H(t);
157
+ a >= 0 ? Ae.confirm({
158
158
  title: "提示",
159
159
  content: `${t} 已存在,是否覆盖?`,
160
160
  okText: "确认",
161
161
  cancelText: "取消",
162
162
  onOk: () => {
163
- y.value.splice(a, 1, {
163
+ h.value.splice(a, 1, {
164
164
  content: l,
165
165
  title: t,
166
166
  type: I.value
167
- }), A.set(r, y.value), F.visible = !1, u.success("保存成功");
167
+ }), M.set(r, h.value), F.visible = !1, i.success("保存成功");
168
168
  }
169
- }) : (y.value.push({
169
+ }) : (h.value.push({
170
170
  content: l,
171
171
  title: t,
172
172
  type: I.value
173
- }), A.set(r, y.value), F.visible = !1, u.success("保存成功"));
173
+ }), M.set(r, h.value), F.visible = !1, i.success("保存成功"));
174
174
  }
175
- function W(t) {
176
- let l = y.value, r = -1;
175
+ function H(t) {
176
+ let l = h.value, r = -1;
177
177
  for (let a = 0; a < l.length; a++)
178
178
  if (l[a].title == t) {
179
179
  r = a;
@@ -186,22 +186,22 @@ function Ge() {
186
186
  let l = e.values;
187
187
  if (!l || l.length == 0)
188
188
  return !1;
189
- let r = [], a = M.value;
189
+ let r = [], a = A.value;
190
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) {
191
+ let v = ["empty", "not_empty"].includes(c.rule);
192
+ if (c.field && (v || c.val || c.val === 0) && c.rule) {
193
193
  let C = a[c.field], V = (m = C == null ? void 0 : C.formatValue) != null ? m : (Q) => Q, O = fe(c.val);
194
194
  O instanceof Array ? O = O.map((Q) => V(Q)).join(",") : O = V(O);
195
- let G = {
195
+ let z = {
196
196
  field: ee(c),
197
197
  rule: c.rule,
198
198
  val: O
199
199
  };
200
200
  if (t === !0) {
201
201
  let Q = a[c.field];
202
- Q && (G.type = Q.view, G.dbType = Q.type);
202
+ Q && (z.type = Q.view, z.dbType = Q.type);
203
203
  }
204
- r.push(G);
204
+ r.push(z);
205
205
  }
206
206
  }
207
207
  return r.length == 0 ? !1 : r;
@@ -211,55 +211,53 @@ function Ge() {
211
211
  return l.indexOf("@") > 0 && (l = l.replace("@", ",")), l;
212
212
  }
213
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);
214
+ let r = l.dataRef.title, a = h.value.filter((m) => m.title == r);
216
215
  if (a && a.length > 0) {
217
- let { content: m, type: c } = a[0], h = JSON.parse(m), C = [];
218
- for (let V of h)
216
+ let { content: m, type: c } = a[0], v = JSON.parse(m), C = [];
217
+ for (let V of v)
219
218
  C.push(Object.assign({}, { key: oe(16) }, V));
220
219
  e.values = C, I.value = c;
221
220
  }
222
221
  }
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));
222
+ function u(t) {
223
+ let l = H(t);
224
+ l >= 0 && (h.value.splice(l, 1), M.set(F.saveCode, h.value));
227
225
  }
228
226
  function b(t) {
229
227
  let l = {}, r = 1, a = [];
230
228
  return t.properties && (t = t.properties), Object.keys(t).map((m) => {
231
229
  let c = t[m];
232
230
  if (c.view == "table") {
233
- let h = c.properties || c.fields, C = r * 100, V = {
231
+ let v = c.properties || c.fields, C = r * 100, V = {
234
232
  title: c.title,
235
233
  value: m,
236
234
  disabled: !0,
237
235
  children: [],
238
236
  order: C
239
237
  };
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,
238
+ Object.keys(v).map((O) => {
239
+ let W = v[O];
240
+ W.order = C + W.order;
241
+ let z = m + "@" + O;
242
+ l[z] = W, V.children.push({
243
+ title: W.title,
244
+ value: z,
247
245
  isLeaf: !0,
248
- order: z.order
246
+ order: W.order
249
247
  });
250
- }), i(V), a.push(V), r++;
248
+ }), s(V), a.push(V), r++;
251
249
  } else {
252
- let h = m;
253
- l[h] = c, a.push({
250
+ let v = m;
251
+ l[v] = c, a.push({
254
252
  title: c.title,
255
- value: h,
253
+ value: v,
256
254
  isLeaf: !0,
257
255
  order: c.order
258
256
  });
259
257
  }
260
- }), i(a), { allFields: l, treeData: a };
258
+ }), s(a), { allFields: l, treeData: a };
261
259
  }
262
- function i(t) {
260
+ function s(t) {
263
261
  (t.children || t).sort(function(r, a) {
264
262
  return r.order - a.order;
265
263
  });
@@ -274,30 +272,30 @@ function Ge() {
274
272
  }
275
273
  }
276
274
  return {
277
- formRef: v,
275
+ formRef: y,
278
276
  init: p,
279
277
  dynamicRowValues: e,
280
278
  matchType: I,
281
279
  registerModal: le,
282
280
  handleSubmit: E,
283
- handleCancel: H,
281
+ handleCancel: G,
284
282
  handleSave: Z,
285
283
  doSaveQueryInfo: P,
286
284
  saveInfo: F,
287
285
  saveTreeData: J,
288
- handleRemoveSaveInfo: s,
286
+ handleRemoveSaveInfo: u,
289
287
  handleTreeSelect: te,
290
288
  fieldTreeData: T,
291
289
  addOne: q,
292
290
  removeOne: S,
293
291
  setFormModel: Y,
294
- getSchema: L,
292
+ getSchema: U,
295
293
  loading: X,
296
294
  getQueryInfo: w,
297
295
  initDefaultValues: D
298
296
  };
299
297
  }
300
- const He = {
298
+ const Ge = {
301
299
  name: "OnlineSuperQuery",
302
300
  props: {
303
301
  config: {
@@ -315,36 +313,36 @@ const He = {
315
313
  },
316
314
  components: {
317
315
  BasicModal: xe,
318
- MinusCircleOutlined: je,
316
+ MinusCircleOutlined: Ne,
319
317
  PlusOutlined: qe,
320
- OnlineSuperQueryValComponent: Ne,
321
- FileTextOutlined: Ue,
322
- CloseCircleOutlined: Le,
318
+ OnlineSuperQueryValComponent: je,
319
+ FileTextOutlined: Le,
320
+ CloseCircleOutlined: Ue,
323
321
  AppstoreTwoTone: Je,
324
322
  Divider: Te
325
323
  },
326
324
  emits: ["search"],
327
- setup(f, { emit: u }) {
328
- const [v, e] = Ie(), { createMessage: I } = ye(), le = x(!0);
329
- function N() {
325
+ setup(f, { emit: i }) {
326
+ const [y, e] = Ie(), { createMessage: I } = ye(), le = x(!0);
327
+ function j() {
330
328
  e.closeModal();
331
329
  }
332
- function j() {
330
+ function N() {
333
331
  if (f.online === !0) {
334
- let i = P(!0);
335
- i && i.length > 0 ? (u("search", i, p.value), N()) : I.warning("空条件无法查询!");
332
+ let s = P(!0);
333
+ s && s.length > 0 ? (i("search", s, p.value), j()) : I.warning("空条件无法查询!");
336
334
  } else {
337
- let i = P(!0);
338
- if (i && i.length > 0) {
339
- let D = E(i);
340
- u("search", D);
335
+ let s = P(!0);
336
+ if (s && s.length > 0) {
337
+ let D = E(s);
338
+ i("search", D);
341
339
  } else
342
340
  I.warning("空条件无法查询!");
343
341
  }
344
342
  }
345
- function E(i) {
343
+ function E(s) {
346
344
  let D = [];
347
- for (let l of i) {
345
+ for (let l of s) {
348
346
  let r = l.field, a = l.val;
349
347
  a instanceof Array && (a = a.join(",")), D.push(ie(ue({}, l), {
350
348
  field: r,
@@ -356,34 +354,34 @@ const He = {
356
354
  superQueryParams: encodeURI(JSON.stringify(D))
357
355
  };
358
356
  }
359
- function H() {
357
+ function G() {
360
358
  T.values = [], R(!1);
361
- let i = E([]);
362
- u("search", i);
359
+ let s = E([]);
360
+ i("search", s);
363
361
  }
364
362
  const {
365
363
  formRef: Y,
366
- init: M,
364
+ init: A,
367
365
  dynamicRowValues: T,
368
366
  matchType: p,
369
367
  registerModal: q,
370
368
  handleSave: S,
371
- doSaveQueryInfo: U,
372
- saveInfo: L,
369
+ doSaveQueryInfo: L,
370
+ saveInfo: U,
373
371
  saveTreeData: J,
374
- handleTreeSelect: A,
372
+ handleTreeSelect: M,
375
373
  handleRemoveSaveInfo: F,
376
374
  fieldTreeData: X,
377
375
  addOne: R,
378
- removeOne: y,
376
+ removeOne: h,
379
377
  setFormModel: K,
380
378
  getSchema: Z,
381
379
  loading: $,
382
380
  getQueryInfo: P,
383
- initDefaultValues: W
384
- } = Ge(), w = x(!1);
385
- ne(() => f.status, (i) => {
386
- w.value = i;
381
+ initDefaultValues: H
382
+ } = ze(), w = x(!1);
383
+ ne(() => f.status, (s) => {
384
+ w.value = s;
387
385
  }, { immediate: !0 });
388
386
  function ee() {
389
387
  e.openModal(), R(!0);
@@ -391,50 +389,49 @@ const He = {
391
389
  function te() {
392
390
  return document.getElementsByClassName("jee-super-query-form")[0];
393
391
  }
394
- function s(i) {
395
- console.log("onfinish", i);
392
+ function u(s) {
396
393
  }
397
- function b(i) {
398
- i.val = "";
394
+ function b(s) {
395
+ s.val = "";
399
396
  }
400
- return ne(() => f.config, (i) => {
401
- i && M(i);
397
+ return ne(() => f.config, (s) => {
398
+ s && A(s);
402
399
  }, { immediate: !0 }), {
403
400
  formRef: Y,
404
- registerFormModal: v,
405
- init: M,
401
+ registerFormModal: y,
402
+ init: A,
406
403
  handleChangeField: b,
407
404
  dynamicRowValues: T,
408
405
  matchType: p,
409
406
  historyCollapsed: le,
410
407
  registerModal: q,
411
- handleSubmit: j,
412
- handleCancel: N,
408
+ handleSubmit: N,
409
+ handleCancel: j,
413
410
  handleSave: S,
414
- handleReset: H,
415
- doSaveQueryInfo: U,
416
- saveInfo: L,
411
+ handleReset: G,
412
+ doSaveQueryInfo: L,
413
+ saveInfo: U,
417
414
  saveTreeData: J,
418
- handleTreeSelect: A,
415
+ handleTreeSelect: M,
419
416
  handleRemoveSaveInfo: F,
420
417
  fieldTreeData: X,
421
418
  addOne: R,
422
- removeOne: y,
419
+ removeOne: h,
423
420
  setFormModel: K,
424
421
  getSchema: Z,
425
422
  loading: $,
426
- onFinish: s,
423
+ onFinish: u,
427
424
  getPopupContainer: te,
428
425
  superQueryFlag: w,
429
426
  handleOpen: ee,
430
- initDefaultValues: W,
431
- simpleImage: Ae.PRESENTED_IMAGE_SIMPLE
427
+ initDefaultValues: H,
428
+ simpleImage: Me.PRESENTED_IMAGE_SIMPLE
432
429
  };
433
430
  }
434
431
  };
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");
432
+ const ae = (f) => (De("data-v-bc498f51"), 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" } };
433
+ function ut(f, i, y, e, I, le) {
434
+ const j = d("divider"), N = d("AppstoreTwoTone"), E = d("a-button"), G = d("a-button-group"), Y = d("a-tooltip"), A = d("a-divider"), T = d("a-empty"), p = d("a-select-option"), q = d("a-select"), S = d("a-form-item"), L = d("a-col"), U = 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"), h = d("a-form"), K = d("close-circle-outlined"), Z = d("file-text-outlined"), $ = d("a-tree"), P = d("Icon"), H = d("a-card"), w = d("BasicModal"), ee = d("a-input"), te = d("a-modal");
438
435
  return k(), me(pe, null, [
439
436
  g("div", Ye, [
440
437
  e.superQueryFlag ? (k(), B(Y, {
@@ -443,23 +440,23 @@ function ut(f, u, v, e, I, le) {
443
440
  }, {
444
441
  title: n(() => [
445
442
  Xe,
446
- o(N, {
443
+ o(j, {
447
444
  type: "vertical",
448
445
  style: { "background-color": "#fff" }
449
446
  }),
450
447
  g("a", {
451
- onClick: u[0] || (u[0] = (...s) => e.handleReset && e.handleReset(...s))
448
+ onClick: i[0] || (i[0] = (...u) => e.handleReset && e.handleReset(...u))
452
449
  }, "清空")
453
450
  ]),
454
451
  default: n(() => [
455
- o(H, null, {
452
+ o(G, null, {
456
453
  default: n(() => [
457
454
  o(E, {
458
455
  type: "primary",
459
456
  onClick: e.handleOpen
460
457
  }, {
461
458
  default: n(() => [
462
- o(j, { spin: !0 }),
459
+ o(N, { spin: !0 }),
463
460
  Ze
464
461
  ]),
465
462
  _: 1
@@ -535,26 +532,26 @@ function ut(f, u, v, e, I, le) {
535
532
  default: n(() => [
536
533
  g("div", et, [
537
534
  tt,
538
- o(M, { type: "vertical" }),
535
+ o(A, { type: "vertical" }),
539
536
  g("a", {
540
- onClick: u[1] || (u[1] = (s) => e.addOne(-1))
537
+ onClick: i[1] || (i[1] = (u) => e.addOne(-1))
541
538
  }, "点击新增")
542
539
  ])
543
540
  ]),
544
541
  _: 1
545
542
  })) : be("", !0),
546
- o(L, {
543
+ o(U, {
547
544
  class: re("j-super-query-modal-content")
548
545
  }, {
549
546
  default: n(() => [
550
- o(U, {
547
+ o(L, {
551
548
  sm: 24,
552
549
  md: 24
553
550
  }, {
554
551
  default: n(() => [
555
- _e(o(L, null, {
552
+ _e(o(U, null, {
556
553
  default: n(() => [
557
- o(U, {
554
+ o(L, {
558
555
  md: 12,
559
556
  xs: 24
560
557
  }, {
@@ -568,8 +565,8 @@ function ut(f, u, v, e, I, le) {
568
565
  default: n(() => [
569
566
  o(q, {
570
567
  value: e.matchType,
571
- "onUpdate:value": u[2] || (u[2] = (s) => e.matchType = s),
572
- getPopupContainer: (s) => s.parentNode,
568
+ "onUpdate:value": i[2] || (i[2] = (u) => e.matchType = u),
569
+ getPopupContainer: (u) => u == null ? void 0 : u.parentNode,
573
570
  style: { width: "100%" }
574
571
  }, {
575
572
  default: n(() => [
@@ -599,17 +596,17 @@ function ut(f, u, v, e, I, le) {
599
596
  }, 512), [
600
597
  [ve, e.dynamicRowValues.values.length > 0]
601
598
  ]),
602
- _e(o(y, {
599
+ _e(o(h, {
603
600
  ref: "formRef",
604
601
  class: re("jee-super-query-form"),
605
602
  model: e.dynamicRowValues,
606
603
  onFinish: e.onFinish
607
604
  }, {
608
605
  default: n(() => [
609
- (k(!0), me(pe, null, Se(e.dynamicRowValues.values, (s, b) => (k(), B(R, {
610
- key: s.key,
606
+ (k(!0), me(pe, null, Se(e.dynamicRowValues.values, (u, b) => (k(), B(R, {
607
+ key: u.key,
611
608
  style: { display: "flex", "margin-bottom": "8px" },
612
- align: "baseline"
609
+ align: u.curLineAlign ? u.align : "baseline"
613
610
  }, {
614
611
  default: n(() => [
615
612
  o(S, {
@@ -620,14 +617,15 @@ function ut(f, u, v, e, I, le) {
620
617
  o(J, {
621
618
  style: { width: "100%" },
622
619
  placeholder: "请选择字段",
623
- value: s.field,
624
- "onUpdate:value": (i) => s.field = i,
620
+ value: u.field,
621
+ "onUpdate:value": (s) => u.field = s,
625
622
  "show-search": "",
626
623
  "tree-node-filter-prop": "title",
627
624
  "allow-clear": "",
628
625
  "tree-default-expand-all": "",
629
626
  "dropdown-style": { maxHeight: "180px", overflow: "auto" },
630
- onChange: (i) => e.handleChangeField(s),
627
+ listHeight: 160,
628
+ onChange: (s) => e.handleChangeField(u),
631
629
  "tree-data": e.fieldTreeData
632
630
  }, null, 8, ["value", "onUpdate:value", "onChange", "tree-data"])
633
631
  ]),
@@ -641,8 +639,8 @@ function ut(f, u, v, e, I, le) {
641
639
  o(q, {
642
640
  style: { width: "100%" },
643
641
  placeholder: "请选择匹配规则",
644
- value: s.rule,
645
- "onUpdate:value": (i) => s.rule = i
642
+ value: u.rule,
643
+ "onUpdate:value": (s) => u.rule = s
646
644
  }, {
647
645
  default: n(() => [
648
646
  o(p, { value: "eq" }, {
@@ -716,12 +714,12 @@ function ut(f, u, v, e, I, le) {
716
714
  style: { width: "300px" }
717
715
  }, {
718
716
  default: n(() => [
719
- o(A, {
717
+ o(M, {
720
718
  style: { width: "100%" },
721
- schema: e.getSchema(s, b),
722
- formModel: s,
723
- setFormModel: (i, D) => {
724
- e.setFormModel(i, D, s);
719
+ schema: e.getSchema(u, b),
720
+ formModel: u,
721
+ setFormModel: (s, D) => {
722
+ e.setFormModel(s, D, u);
725
723
  },
726
724
  onSubmit: e.handleSubmit
727
725
  }, null, 8, ["schema", "formModel", "setFormModel", "onSubmit"])
@@ -731,7 +729,7 @@ function ut(f, u, v, e, I, le) {
731
729
  o(S, null, {
732
730
  default: n(() => [
733
731
  o(E, {
734
- onClick: (i) => e.addOne(b),
732
+ onClick: (s) => e.addOne(b),
735
733
  style: { "margin-right": "6px" }
736
734
  }, {
737
735
  default: n(() => [
@@ -740,7 +738,7 @@ function ut(f, u, v, e, I, le) {
740
738
  _: 2
741
739
  }, 1032, ["onClick"]),
742
740
  o(E, {
743
- onClick: (i) => e.removeOne(s)
741
+ onClick: (s) => e.removeOne(u)
744
742
  }, {
745
743
  default: n(() => [
746
744
  o(X)
@@ -752,7 +750,7 @@ function ut(f, u, v, e, I, le) {
752
750
  }, 1024)
753
751
  ]),
754
752
  _: 2
755
- }, 1024))), 128))
753
+ }, 1032, ["align"]))), 128))
756
754
  ]),
757
755
  _: 1
758
756
  }, 8, ["model", "onFinish"]), [
@@ -764,7 +762,7 @@ function ut(f, u, v, e, I, le) {
764
762
  ]),
765
763
  _: 1
766
764
  }),
767
- o(W, {
765
+ o(H, {
768
766
  class: re(["j-super-query-history-card", { collapsed: e.historyCollapsed }]),
769
767
  bordered: !1
770
768
  }, {
@@ -785,12 +783,12 @@ function ut(f, u, v, e, I, le) {
785
783
  "show-icon": !0,
786
784
  onSelect: e.handleTreeSelect
787
785
  }, {
788
- title: n(({ title: s }) => [
786
+ title: n(({ title: u }) => [
789
787
  g("div", null, [
790
- g("span", { title: s }, we(s.length > 10 ? s.substring(0, 10) + "..." : s), 9, ot),
788
+ g("span", { title: u }, we(u.length > 10 ? u.substring(0, 10) + "..." : u), 9, ot),
791
789
  g("span", nt, [
792
790
  o(K, {
793
- onClick: (b) => e.handleRemoveSaveInfo(s)
791
+ onClick: (b) => e.handleRemoveSaveInfo(u)
794
792
  }, null, 8, ["onClick"])
795
793
  ])
796
794
  ])
@@ -802,7 +800,7 @@ function ut(f, u, v, e, I, le) {
802
800
  }, 8, ["treeData", "onSelect"])),
803
801
  g("div", {
804
802
  class: "collapse-box",
805
- onClick: u[3] || (u[3] = (s) => e.historyCollapsed = !e.historyCollapsed)
803
+ onClick: i[3] || (i[3] = (u) => e.historyCollapsed = !e.historyCollapsed)
806
804
  }, [
807
805
  e.historyCollapsed ? (k(), B(P, {
808
806
  key: 0,
@@ -821,25 +819,25 @@ function ut(f, u, v, e, I, le) {
821
819
  ])),
822
820
  o(te, {
823
821
  title: "请输入保存的名称",
824
- visible: e.saveInfo.visible,
825
- onCancel: u[5] || (u[5] = (s) => e.saveInfo.visible = !1),
822
+ open: e.saveInfo.visible,
823
+ onCancel: i[5] || (i[5] = (u) => e.saveInfo.visible = !1),
826
824
  onOk: e.doSaveQueryInfo
827
825
  }, {
828
826
  default: n(() => [
829
827
  g("div", at, [
830
828
  o(ee, {
831
829
  value: e.saveInfo.title,
832
- "onUpdate:value": u[4] || (u[4] = (s) => e.saveInfo.title = s),
830
+ "onUpdate:value": i[4] || (i[4] = (u) => e.saveInfo.title = u),
833
831
  style: { width: "90%" },
834
832
  placeholder: "请输入保存的名称"
835
833
  }, null, 8, ["value"])
836
834
  ])
837
835
  ]),
838
836
  _: 1
839
- }, 8, ["visible", "onOk"])
837
+ }, 8, ["open", "onOk"])
840
838
  ], 64);
841
839
  }
842
- const Lt = /* @__PURE__ */ Ke(He, [["render", ut], ["__scopeId", "data-v-b1c9d7e2"]]);
840
+ const Kt = /* @__PURE__ */ Ke(Ge, [["render", ut], ["__scopeId", "data-v-bc498f51"]]);
843
841
  export {
844
- Lt as default
842
+ Kt as default
845
843
  };