@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
@@ -1,58 +1,59 @@
1
- var se = Object.defineProperty, ce = Object.defineProperties;
2
- var ue = Object.getOwnPropertyDescriptors;
1
+ var ce = Object.defineProperty, ue = Object.defineProperties;
2
+ var de = Object.getOwnPropertyDescriptors;
3
3
  var A = Object.getOwnPropertySymbols;
4
- var de = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable;
5
- var J = (t, l, o) => l in t ? se(t, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[l] = o, B = (t, l) => {
6
- for (var o in l || (l = {}))
7
- de.call(l, o) && J(t, o, l[o]);
4
+ var pe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
5
+ var J = (t, o, l) => o in t ? ce(t, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[o] = l, B = (t, o) => {
6
+ for (var l in o || (o = {}))
7
+ pe.call(o, l) && J(t, l, o[l]);
8
8
  if (A)
9
- for (var o of A(l))
10
- pe.call(l, o) && J(t, o, l[o]);
9
+ for (var l of A(o))
10
+ me.call(o, l) && J(t, l, o[l]);
11
11
  return t;
12
- }, U = (t, l) => ce(t, ue(l));
13
- var q = (t, l, o) => new Promise((m, v) => {
14
- var f = (d) => {
12
+ }, U = (t, o) => ue(t, de(o));
13
+ var q = (t, o, l) => new Promise((_, m) => {
14
+ var g = (u) => {
15
15
  try {
16
- u(o.next(d));
17
- } catch (V) {
18
- v(V);
16
+ c(l.next(u));
17
+ } catch (C) {
18
+ m(C);
19
19
  }
20
- }, h = (d) => {
20
+ }, S = (u) => {
21
21
  try {
22
- u(o.throw(d));
23
- } catch (V) {
24
- v(V);
22
+ c(l.throw(u));
23
+ } catch (C) {
24
+ m(C);
25
25
  }
26
- }, u = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(f, h);
27
- u((o = o.apply(t, l)).next());
26
+ }, c = (u) => u.done ? _(u.value) : Promise.resolve(u.value).then(g, S);
27
+ c((l = l.apply(t, o)).next());
28
28
  });
29
- import { defineComponent as me, ref as I, reactive as z, unref as b, computed as fe, resolveComponent as S, openBlock as F, createBlock as W, mergeProps as ge, withCtx as y, createVNode as x, createElementVNode as C, createTextVNode as P } from "vue";
30
- import { useModalInner as he, BasicModal as be } from "/@/components/Modal";
31
- import { useForm as ye, BasicForm as xe } from "/@/components/Form/index";
32
- import { useJvxeMethod as _e } from "/@/hooks/system/useJvxeMethods.ts";
33
- import { JVxeTypes as s } from "/@/components/jeecg/JVxeTable/types";
34
- import { duplicateCheck as Se } from "/@/views/system/user/user.api";
35
- import { defHttp as _ } from "/@/utils/http/axios";
29
+ import { defineComponent as fe, ref as P, reactive as z, unref as h, computed as ge, resolveComponent as v, openBlock as F, createBlock as M, mergeProps as he, withCtx as b, createVNode as y, createElementVNode as k, createTextVNode as V } from "vue";
30
+ import { useModalInner as be, BasicModal as ye } from "/@/components/Modal";
31
+ import { useForm as xe, BasicForm as _e } from "/@/components/Form/index";
32
+ import { useJvxeMethod as Se } from "/@/hooks/system/useJvxeMethods.ts";
33
+ import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
34
+ import { duplicateCheck as Ce } from "/@/views/system/user/user.api";
35
+ import { defHttp as x } from "/@/utils/http/axios";
36
36
  import { useMessage as K } from "/@/hooks/web/useMessage";
37
- const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", ke = "/online/cgreport/item/listByHeadId", je = (t) => _.get({ url: "/online/cgreport/head/list", params: t }), Ze = (t, l) => _.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
38
- l();
39
- }), Ge = (t, l) => {
40
- Ce({
37
+ import { usePermissionStore as ve } from "/@/store/modules/permission";
38
+ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", Ie = "/online/cgreport/item/listByHeadId", Ye = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), et = (t, o) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
39
+ o();
40
+ }), tt = (t, o) => {
41
+ ke({
41
42
  title: "确认删除",
42
43
  content: "是否删除选中数据",
43
44
  okText: "确认",
44
45
  cancelText: "取消",
45
46
  iconType: "warning",
46
- onOk: () => _.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
47
- l();
47
+ onOk: () => x.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
48
+ o();
48
49
  })
49
50
  });
50
- }, we = (t, l) => l ? _.put({ url: "/online/cgreport/head/editAll", params: t }) : _.post({ url: "/online/cgreport/head/add", params: t }), Xe = (t) => _.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), Ie = () => _.get({
51
+ }, Pe = (t, o) => o ? x.put({ url: "/online/cgreport/head/editAll", params: t }) : x.post({ url: "/online/cgreport/head/add", params: t }), ot = (t) => x.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), Ve = () => x.get({
51
52
  url: "/sys/dataSource/options"
52
53
  /* getDataSourceList */
53
- }), Pe = (t) => _.get({
54
+ }), Le = (t) => x.get({
54
55
  url: "/online/cgreport/head/parseSql?" + t
55
- }), Ye = [
56
+ }), Te = ve(), lt = [
56
57
  {
57
58
  title: "报表名字",
58
59
  align: "center",
@@ -83,7 +84,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
83
84
  dataIndex: "createTime",
84
85
  width: 120
85
86
  }
86
- ], et = [
87
+ ], rt = [
87
88
  {
88
89
  label: "报表名称",
89
90
  field: "name",
@@ -94,7 +95,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
94
95
  field: "code",
95
96
  component: "JInput"
96
97
  }
97
- ], Ve = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, Le = [
98
+ ], $e = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, qe = [
98
99
  {
99
100
  label: "",
100
101
  field: "id",
@@ -113,28 +114,28 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
113
114
  xl: 8,
114
115
  xxl: 8
115
116
  },
116
- dynamicRules: ({ values: t, model: l }) => (console.log("values:", t), [
117
+ dynamicRules: ({ values: t, model: o }) => [
117
118
  {
118
119
  required: !0,
119
- validator: (o, m) => new Promise((v, f) => {
120
- if (!m)
121
- return f("请输入报表编码!");
122
- if (!Ve.test(m))
123
- return f("编码必须以字母开头,可包含数字、下划线、横杠!");
124
- let h = {
120
+ validator: (l, _) => new Promise((m, g) => {
121
+ if (!_)
122
+ return g("请输入报表编码!");
123
+ if (!$e.test(_))
124
+ return g("编码必须以字母开头,可包含数字、下划线、横杠!");
125
+ let S = {
125
126
  tableName: "onl_cgreport_head",
126
127
  fieldName: "code",
127
- fieldVal: m,
128
- dataId: l.id
128
+ fieldVal: _,
129
+ dataId: o.id
129
130
  };
130
- Se(h).then((u) => {
131
- u.success ? v() : f("报表编码已存在!");
132
- }).catch((u) => {
133
- f(u.message || "校验失败");
131
+ Ce(S).then((c) => {
132
+ c.success ? m() : g("报表编码已存在!");
133
+ }).catch((c) => {
134
+ g(c.message || "校验失败");
134
135
  });
135
136
  })
136
137
  }
137
- ])
138
+ ]
138
139
  },
139
140
  {
140
141
  label: "报表名字",
@@ -162,8 +163,9 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
162
163
  xxl: 8
163
164
  },
164
165
  component: "ApiSelect",
166
+ rules: [{ required: Te.sysSafeMode, message: "请选择数据源!" }],
165
167
  componentProps: {
166
- api: Ie
168
+ api: Ve
167
169
  }
168
170
  },
169
171
  /* {
@@ -211,11 +213,11 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
211
213
  colon: !1
212
214
  }
213
215
  }
214
- ], Te = [
216
+ ], Ne = [
215
217
  {
216
218
  title: "参数字段",
217
219
  key: "paramName",
218
- type: s.input,
220
+ type: i.input,
219
221
  width: "200px",
220
222
  placeholder: "请输入${title}",
221
223
  defaultValue: "",
@@ -224,7 +226,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
224
226
  {
225
227
  title: "参数文本",
226
228
  key: "paramTxt",
227
- type: s.input,
229
+ type: i.input,
228
230
  width: "200px",
229
231
  placeholder: "请输入${title}",
230
232
  defaultValue: "",
@@ -233,16 +235,16 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
233
235
  {
234
236
  title: "参数默认值",
235
237
  key: "paramValue",
236
- type: s.input,
238
+ type: i.input,
237
239
  width: "200px",
238
240
  placeholder: "请输入${title}",
239
241
  defaultValue: ""
240
242
  }
241
- ], $e = [
243
+ ], Re = [
242
244
  {
243
245
  title: "字段名字",
244
246
  key: "fieldName",
245
- type: s.input,
247
+ type: i.input,
246
248
  minWidth: "150px",
247
249
  placeholder: "请输入${title}",
248
250
  defaultValue: "",
@@ -251,7 +253,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
251
253
  {
252
254
  title: "字段文本",
253
255
  key: "fieldTxt",
254
- type: s.input,
256
+ type: i.input,
255
257
  minWidth: "150px",
256
258
  placeholder: "请输入${title}",
257
259
  defaultValue: "",
@@ -264,7 +266,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
264
266
  placeholder: "请输入${title}",
265
267
  defaultValue: "",
266
268
  validateRules: [{ required: !0, message: "${title}不能为空" }],
267
- type: s.select,
269
+ type: i.select,
268
270
  options: [
269
271
  { title: "数值类型", value: "Integer" },
270
272
  { title: "字符类型", value: "String" },
@@ -278,14 +280,14 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
278
280
  key: "isShow",
279
281
  minWidth: "80px",
280
282
  align: "center",
281
- type: s.checkbox,
283
+ type: i.checkbox,
282
284
  customValue: [1, 0],
283
285
  defaultChecked: !0
284
286
  },
285
287
  {
286
288
  title: "字段href",
287
289
  key: "fieldHref",
288
- type: s.input,
290
+ type: i.input,
289
291
  minWidth: "150px",
290
292
  placeholder: "请输入${title}",
291
293
  defaultValue: ""
@@ -293,7 +295,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
293
295
  {
294
296
  title: "查询模式",
295
297
  key: "searchMode",
296
- type: s.select,
298
+ type: i.select,
297
299
  minWidth: "150px",
298
300
  placeholder: "请选择${title}",
299
301
  options: [
@@ -304,7 +306,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
304
306
  {
305
307
  title: "取值表达式",
306
308
  key: "replaceVal",
307
- type: s.input,
309
+ type: i.input,
308
310
  minWidth: "150px",
309
311
  placeholder: "请输入${title}",
310
312
  defaultValue: ""
@@ -312,7 +314,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
312
314
  {
313
315
  title: "字典code",
314
316
  key: "dictCode",
315
- type: s.input,
317
+ type: i.input,
316
318
  minWidth: "150px",
317
319
  placeholder: "请输入${title}",
318
320
  defaultValue: ""
@@ -320,7 +322,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
320
322
  {
321
323
  title: "分组标题",
322
324
  key: "groupTitle",
323
- type: s.input,
325
+ type: i.input,
324
326
  minWidth: "150px",
325
327
  placeholder: "请输入${title}",
326
328
  defaultValue: ""
@@ -328,7 +330,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
328
330
  {
329
331
  title: "是否查询",
330
332
  key: "isSearch",
331
- type: s.checkbox,
333
+ type: i.checkbox,
332
334
  customValue: ["1", "0"],
333
335
  minWidth: "80px",
334
336
  align: "center",
@@ -338,43 +340,43 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
338
340
  title: "是否合计",
339
341
  align: "center",
340
342
  key: "isTotal",
341
- type: s.checkbox,
343
+ type: i.checkbox,
342
344
  customValue: ["1", "0"],
343
345
  minWidth: "80px",
344
346
  defaultChecked: !1
345
347
  }
346
- ], qe = { style: { flex: "1", "text-align": "left" } }, Ne = /* @__PURE__ */ C("br", null, null, -1), Re = /* @__PURE__ */ C("br", null, null, -1), De = /* @__PURE__ */ C("br", null, null, -1), Be = /* @__PURE__ */ C("br", null, null, -1), Fe = /* @__PURE__ */ C("br", null, null, -1), We = /* @__PURE__ */ C("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1), tt = /* @__PURE__ */ me({
348
+ ], De = { style: { flex: "1", "text-align": "left" } }, Be = /* @__PURE__ */ k("br", null, null, -1), Fe = /* @__PURE__ */ k("br", null, null, -1), Me = /* @__PURE__ */ k("br", null, null, -1), We = /* @__PURE__ */ k("br", null, null, -1), Oe = /* @__PURE__ */ k("br", null, null, -1), Ae = /* @__PURE__ */ k("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1), at = /* @__PURE__ */ fe({
347
349
  __name: "CgreportModal",
348
350
  emits: ["register", "success"],
349
- setup(t, { emit: l }) {
350
- const { createMessage: o } = K(), m = I(!0), v = I(!0), f = I(["onlCgreportItem", "onlCgreportParam"]), h = I("onlCgreportItem"), u = I(), d = I(), V = { onlCgreportItem: d, onlCgreportParam: u }, k = z({
351
+ setup(t, { emit: o }) {
352
+ const { createMessage: l } = K(), _ = o, m = P(!0), g = P(!0), S = P(["onlCgreportItem", "onlCgreportParam"]), c = P("onlCgreportItem"), u = P(), C = P(), Q = { onlCgreportItem: C, onlCgreportParam: u }, w = z({
351
353
  loading: !1,
352
354
  dataSource: [],
353
- columns: Te
354
- }), w = z({
355
+ columns: Ne
356
+ }), I = z({
355
357
  loading: !1,
356
358
  dataSource: [],
357
- columns: $e
358
- }), [Q, { setProps: H, resetFields: E, setFieldsValue: j, validate: Me, validateFields: Z }] = ye({
359
+ columns: Re
360
+ }), [H, { setProps: j, resetFields: E, setFieldsValue: Z, validate: Je, validateFields: G }] = xe({
359
361
  // labelWidth: 150,
360
- schemas: Le,
362
+ schemas: qe,
361
363
  showActionButtonGroup: !1
362
- }), [G, { setModalProps: L, closeModal: X }] = he((e) => q(this, null, function* () {
364
+ }), [X, { setModalProps: L, closeModal: Y }] = be((e) => q(this, null, function* () {
363
365
  var r, a;
364
- yield oe(), L({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), b(m) && (yield j(B({}, e.record)), M(ve, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), M(ke, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, w)), H({ disabled: !(e != null && e.showFooter) });
365
- })), [Y, ee, M, te] = _e(
366
+ yield re(), L({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), h(m) && (yield Z(B({}, e.record)), W(we, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, w), W(Ie, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), j({ disabled: !(e != null && e.showFooter) });
367
+ })), [ee, te, W, oe] = Se(
368
+ ne,
366
369
  ae,
367
- re,
368
- V,
369
- h,
370
- f
371
- ), le = fe(() => b(m) ? "编辑" : "新增");
372
- function oe() {
370
+ Q,
371
+ c,
372
+ S
373
+ ), le = ge(() => h(m) ? "编辑" : "新增");
374
+ function re() {
373
375
  return q(this, null, function* () {
374
- yield E(), h.value = "onlCgreportItem", k.dataSource = [], w.dataSource = [];
376
+ yield E(), c.value = "onlCgreportItem", w.dataSource = [], I.dataSource = [];
375
377
  });
376
378
  }
377
- function re(e) {
379
+ function ae(e) {
378
380
  let r = Object.assign({}, e.formValue);
379
381
  return U(B({}, r), {
380
382
  // 展开
@@ -382,107 +384,104 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
382
384
  onlCgreportItemList: e.tablesValue[0].tableData
383
385
  });
384
386
  }
385
- function ae(e) {
387
+ function ne(e) {
386
388
  return q(this, null, function* () {
387
389
  try {
388
390
  L({ confirmLoading: !0 });
389
- let r = [], a = [], n = {};
390
- Object.keys(e).map((i) => {
391
- i == "onlCgreportItemList" ? a = e[i] : i == "onlCgreportParamList" ? r = e[i] : n[i] = e[i];
392
- });
393
- let c = { head: n, params: r, items: a };
394
- console.log("报表配置保存请求参数", c), yield we(c, m.value), X(), l("success");
391
+ let r = [], a = [], s = {};
392
+ Object.keys(e).map((n) => {
393
+ n == "onlCgreportItemList" ? a = e[n] : n == "onlCgreportParamList" ? r = e[n] : s[n] = e[n];
394
+ }), yield Pe({ head: s, params: r, items: a }, m.value), Y(), _("success");
395
395
  } finally {
396
396
  L({ confirmLoading: !1 });
397
397
  }
398
398
  });
399
399
  }
400
- function ne() {
401
- L({ confirmLoading: !0 }), Z(["cgrSql", "dbSource"]).then((e) => {
402
- let { cgrSql: r, dbSource: a } = e, n = "sql=" + encodeURIComponent(r);
403
- a && (n += "&dbKey=" + a), console.log("urlParam----", n), Pe(n).then((c) => {
404
- if (c) {
405
- o.success("解析成功");
406
- let { fields: i, params: p } = c, g = i.filter(($) => $.fieldName != "__row_number__"), N = d.value.getTableData(), T = O(N, g || [], "fieldName");
407
- T = T.sort(($, D) => $.orderNum - D.orderNum), w.dataSource = T;
408
- let ie = u.value.getTableData(), R = O(ie, p || [], "paramName");
409
- R = R.sort(($, D) => $.orderNum - D.orderNum), k.dataSource = R;
400
+ function ie() {
401
+ L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
402
+ let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
403
+ a && (s += "&dbKey=" + a), Le(s).then((d) => {
404
+ if (d) {
405
+ l.success("解析成功");
406
+ let { fields: n, params: p } = d, f = n.filter(($) => $.fieldName != "__row_number__"), N = C.value.getTableData(), T = O(N, f || [], "fieldName");
407
+ T = T.sort(($, D) => $.orderNum - D.orderNum), I.dataSource = T;
408
+ let se = u.value.getTableData(), R = O(se, p || [], "paramName");
409
+ R = R.sort(($, D) => $.orderNum - D.orderNum), w.dataSource = R;
410
410
  }
411
411
  });
412
412
  }).catch(() => {
413
- console.log("解析失败");
414
413
  }).finally(() => {
415
414
  L({ confirmLoading: !1 });
416
415
  });
417
416
  }
418
417
  function O(e, r, a) {
419
418
  if (e.length > 0) {
420
- let n = [], c = [], i = 1;
419
+ let s = [], d = [], n = 1;
421
420
  for (let p of r)
422
- for (let g of e)
423
- if (g[a] == p[a]) {
424
- n.push(g), c.push(p[a]), g.orderNum > i && (i = g.orderNum);
421
+ for (let f of e)
422
+ if (f[a] == p[a]) {
423
+ s.push(f), d.push(p[a]), f.orderNum > n && (n = f.orderNum);
425
424
  break;
426
425
  }
427
426
  for (let p of r)
428
- c.indexOf(p[a]) < 0 && (p.orderNum = ++i, n.push(p));
429
- return n;
427
+ d.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
428
+ return s;
430
429
  } else {
431
- let n = 0;
432
- for (let c of r)
433
- c.orderNum || (c.orderNum = ++n);
430
+ let s = 0;
431
+ for (let d of r)
432
+ d.orderNum || (d.orderNum = ++s);
434
433
  return r;
435
434
  }
436
435
  }
437
436
  return (e, r) => {
438
- const a = S("a-icon"), n = S("a-popover"), c = S("a-button"), i = S("a-divider"), p = S("JVxeTable"), g = S("a-tab-pane"), N = S("a-tabs");
439
- return F(), W(b(be), ge(e.$attrs, {
440
- onRegister: b(G),
437
+ const a = v("a-icon"), s = v("a-popover"), d = v("a-button"), n = v("a-divider"), p = v("JVxeTable"), f = v("a-tab-pane"), N = v("a-tabs");
438
+ return F(), M(h(ye), he(e.$attrs, {
439
+ onRegister: h(X),
441
440
  title: le.value,
442
441
  width: 1200,
443
442
  maskClosable: !1,
444
443
  defaultFullscreen: !0,
445
- confirmLoading: v.value,
446
- onOk: b(ee)
444
+ confirmLoading: g.value,
445
+ onOk: h(te)
447
446
  }), {
448
- default: y(() => [
449
- x(b(xe), {
450
- onRegister: b(Q),
447
+ default: b(() => [
448
+ y(h(_e), {
449
+ onRegister: h(H),
451
450
  ref_key: "formRef",
452
- ref: te
451
+ ref: oe
453
452
  }, {
454
- analyseButton: y(() => [
455
- C("div", qe, [
456
- x(n, {
453
+ analyseButton: b(() => [
454
+ k("div", De, [
455
+ y(s, {
457
456
  title: "使用指南",
458
457
  trigger: "hover",
459
458
  style: { margin: "0 10px 0 6px" }
460
459
  }, {
461
- content: y(() => [
462
- P(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
463
- Ne,
464
- P(" select * from table where id = ${abc}。"),
465
- Re,
466
- P(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
467
- De,
468
- P(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
460
+ content: b(() => [
461
+ V(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
469
462
  Be,
470
- P(" select * from table where id like '%'+${abc}+'%'(sqlserver模糊查询)"),
463
+ V(" select * from table where id = ${abc}。"),
471
464
  Fe,
472
- We
465
+ V(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
466
+ Me,
467
+ V(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
468
+ We,
469
+ V(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
470
+ Oe,
471
+ Ae
473
472
  ]),
474
- default: y(() => [
475
- x(a, { type: "question-circle" })
473
+ default: b(() => [
474
+ y(a, { type: "question-circle" })
476
475
  ]),
477
476
  _: 1
478
477
  }),
479
- x(c, {
478
+ y(d, {
480
479
  style: { "margin-left": "10px" },
481
480
  type: "primary",
482
- onClick: ne
481
+ onClick: ie
483
482
  }, {
484
- default: y(() => [
485
- P("SQL解析")
483
+ default: b(() => [
484
+ V("SQL解析")
486
485
  ]),
487
486
  _: 1
488
487
  })
@@ -490,32 +489,32 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
490
489
  ]),
491
490
  _: 1
492
491
  }, 8, ["onRegister"]),
493
- x(i, {
492
+ y(n, {
494
493
  style: { margin: "1px 0" },
495
494
  class: "cust-divider"
496
495
  }),
497
- x(N, {
498
- activeKey: h.value,
499
- "onUpdate:activeKey": r[0] || (r[0] = (T) => h.value = T),
496
+ y(N, {
497
+ activeKey: c.value,
498
+ "onUpdate:activeKey": r[0] || (r[0] = (T) => c.value = T),
500
499
  animated: "",
501
- onChange: b(Y)
500
+ onChange: h(ee)
502
501
  }, {
503
- default: y(() => [
504
- (F(), W(g, {
502
+ default: b(() => [
503
+ (F(), M(f, {
505
504
  tab: "动态报表配置明细",
506
- key: f.value[0],
505
+ key: S.value[0],
507
506
  forceRender: !0
508
507
  }, {
509
- default: y(() => [
510
- x(p, {
508
+ default: b(() => [
509
+ y(p, {
511
510
  "keep-source": "",
512
511
  dragSort: "",
513
512
  resizable: "",
514
513
  ref_key: "onlCgreportItem",
515
- ref: d,
516
- loading: w.loading,
517
- columns: w.columns,
518
- dataSource: w.dataSource,
514
+ ref: C,
515
+ loading: I.loading,
516
+ columns: I.columns,
517
+ dataSource: I.dataSource,
519
518
  height: 390,
520
519
  rowNumber: !0,
521
520
  rowSelection: !0,
@@ -524,21 +523,21 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
524
523
  ]),
525
524
  _: 1
526
525
  })),
527
- (F(), W(g, {
526
+ (F(), M(f, {
528
527
  tab: "报表参数",
529
- key: f.value[1],
528
+ key: S.value[1],
530
529
  forceRender: !0
531
530
  }, {
532
- default: y(() => [
533
- x(p, {
531
+ default: b(() => [
532
+ y(p, {
534
533
  "keep-source": "",
535
534
  resizable: "",
536
535
  dragSort: "",
537
536
  ref_key: "onlCgreportParam",
538
537
  ref: u,
539
- loading: k.loading,
540
- columns: k.columns,
541
- dataSource: k.dataSource,
538
+ loading: w.loading,
539
+ columns: w.columns,
540
+ dataSource: w.dataSource,
542
541
  height: 390,
543
542
  rowNumber: !0,
544
543
  rowSelection: !0,
@@ -557,11 +556,11 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
557
556
  }
558
557
  });
559
558
  export {
560
- tt as _,
561
- Ge as b,
562
- Ye as c,
563
- Ze as d,
564
- Xe as g,
565
- je as l,
566
- et as s
559
+ at as _,
560
+ tt as b,
561
+ lt as c,
562
+ et as d,
563
+ ot as g,
564
+ Ye as l,
565
+ rt as s
567
566
  };
@@ -12,11 +12,11 @@ var _ = (e, t, l) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writab
12
12
  }, y = (e, t) => x(e, E(t));
13
13
  import { defineComponent as B, ref as k, computed as N, resolveComponent as u, openBlock as D, createBlock as P, mergeProps as $, withCtx as s, createVNode as n, normalizeClass as w, withDirectives as H, createElementVNode as T, vShow as J } from "vue";
14
14
  import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as S } from "./useTableSync-dc333087.mjs";
15
+ import { u as S } from "./useTableSync-774c3774.mjs";
16
16
  import { useMessage as I } from "/@/hooks/web/useMessage";
17
17
  import { useJPrompt as M } from "/@/components/jeecg/JPrompt";
18
18
  import { useDesign as O } from "/@/hooks/web/useDesign";
19
- import { _ as q } from "./index-6a09a912.mjs";
19
+ import { _ as q } from "./index-0e3ab3af.mjs";
20
20
  import "./cgform.data-cbdd88c3.mjs";
21
21
  import "/@/utils/dict";
22
22
  import "/@/utils/dict/JDictSelectUtil";
@@ -205,7 +205,7 @@ function K(e, t, l, g, m, f) {
205
205
  _: 1
206
206
  }, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
207
207
  }
208
- const se = /* @__PURE__ */ q(z, [["render", K], ["__scopeId", "data-v-7693eace"]]);
208
+ const se = /* @__PURE__ */ q(z, [["render", K], ["__scopeId", "data-v-592747d8"]]);
209
209
  export {
210
210
  se as default
211
211
  };
@@ -19,10 +19,10 @@ import { defHttp as R } from "/@/utils/http/axios";
19
19
  import "/@/components/Form";
20
20
  import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
21
21
  import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
22
- import S from "./CodeFileViewModal-5990dac4.mjs";
22
+ import S from "./CodeFileViewModal-373e8058.mjs";
23
23
  import { useMessage as H } from "/@/hooks/web/useMessage";
24
24
  import { downloadByData as I } from "/@/utils/file/download";
25
- import { _ as E } from "./index-6a09a912.mjs";
25
+ import { _ as E } from "./index-0e3ab3af.mjs";
26
26
  import "ant-design-vue";
27
27
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
28
  import "vue-router";