@jeecg/online 3.6.2-beta → 3.7.1-RC

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 (127) hide show
  1. package/AiModal-6de335e3.mjs +84 -0
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/AuthDataConfig-5c3a8e6b.mjs +238 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/AuthManagerDrawer-76f15e8d.mjs +119 -0
  9. package/AuthSetterModal-f5d2e87f.mjs +274 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
  13. package/CheckDictTable-1bc8322d.mjs +229 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/CodeFileViewModal-2fe911f4.mjs +253 -0
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/CustomButtonList-f07bc695.mjs +397 -0
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/DetailForm-deecbf3d.mjs +486 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
  23. package/EnhanceJsModal-175357a1.mjs +548 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
  25. package/ExtendConfigModal-a89ae052.mjs +117 -0
  26. package/FieldExtendJsonModal-32135634.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
  35. package/LinkTableConfigModal-9242d750.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/OnlCgformErpList-58acdfa0.mjs +470 -0
  40. package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
  41. package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
  42. package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
  43. package/OnlCgformTabList-019ad753.mjs +408 -0
  44. package/OnlineAutoList-48589d09.mjs +493 -0
  45. package/OnlineAutoModal-c2928847.mjs +239 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-022ca117.mjs +342 -0
  52. package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
  53. package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
  54. package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
  55. package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
  56. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
  60. package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
  62. package/OnlineTabForm-27655c83.mjs +817 -0
  63. package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
  64. package/PageAttributeTable-25e3b7da.mjs +466 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
  66. package/QueryTable-f7bfca7f.mjs +147 -0
  67. package/SetSwitchOptions-b2af757f.mjs +62 -0
  68. package/SuperQuery-a8592995.mjs +967 -0
  69. package/auth.api-ea1d33d4.mjs +41 -0
  70. package/auth.data-511e5197.mjs +217 -0
  71. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  72. package/constant-fa63bd66.mjs +10 -0
  73. package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
  74. package/index-1d1a6e56.mjs +57 -0
  75. package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
  76. package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
  77. package/main.index.js +1 -1
  78. package/package.json +1 -1
  79. package/style.css +1 -1
  80. package/useCgformList-f41d4dc1.mjs +426 -0
  81. package/useExtendComponent-dcae5c78.mjs +4399 -0
  82. package/useFormUrl-2ee1a82d.mjs +24 -0
  83. package/useListButton-bfac4ecf.mjs +697 -0
  84. package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
  85. package/useTableSync-d7e9f18d.mjs +89 -0
  86. package/AuthButtonConfig-244ec09f.mjs +0 -125
  87. package/AuthDataConfig-83891eea.mjs +0 -212
  88. package/AuthFieldConfig-6b21915c.mjs +0 -139
  89. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  90. package/AuthSetterModal-a414fb35.mjs +0 -267
  91. package/CgformModal-eccfc38e.mjs +0 -611
  92. package/CgreportModal-2065f5a9.mjs +0 -13
  93. package/CheckDictTable-134cbb83.mjs +0 -211
  94. package/CodeFileViewModal-373e8058.mjs +0 -244
  95. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  96. package/CustomButtonList-02e3d897.mjs +0 -363
  97. package/DbToOnlineModal-9f13956f.mjs +0 -160
  98. package/DetailForm-424638eb.mjs +0 -462
  99. package/EnhanceJsModal-05c73a59.mjs +0 -311
  100. package/ExtendConfigModal-1dde390a.mjs +0 -111
  101. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  102. package/JOnlineSearchSelect-c287af12.mjs +0 -95
  103. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  104. package/OnlCgformErpList-db45e22b.mjs +0 -454
  105. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  106. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  107. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  108. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  109. package/OnlineAutoList-0583a910.mjs +0 -479
  110. package/OnlineAutoModal-510991eb.mjs +0 -207
  111. package/OnlineForm-1fa2d893.mjs +0 -750
  112. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  113. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  114. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  115. package/OnlineTabForm-512d3951.mjs +0 -766
  116. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  117. package/PageAttributeTable-965dc58e.mjs +0 -404
  118. package/QueryTable-eb9a5b21.mjs +0 -115
  119. package/SuperQuery-5d1ca957.mjs +0 -843
  120. package/auth.api-d3a6c4b3.mjs +0 -39
  121. package/auth.data-8be5c9e3.mjs +0 -141
  122. package/constant-754f1a9d.mjs +0 -9
  123. package/index-0e3ab3af.mjs +0 -56
  124. package/useCgformList-423282b7.mjs +0 -400
  125. package/useExtendComponent-325fe3f1.mjs +0 -3926
  126. package/useListButton-cdbab702.mjs +0 -676
  127. package/useTableSync-774c3774.mjs +0 -87
@@ -1,5 +1,5 @@
1
- var ce = Object.defineProperty, ue = Object.defineProperties;
2
- var de = Object.getOwnPropertyDescriptors;
1
+ var ce = Object.defineProperty, de = Object.defineProperties;
2
+ var ue = Object.getOwnPropertyDescriptors;
3
3
  var A = Object.getOwnPropertySymbols;
4
4
  var pe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
5
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) => {
@@ -9,36 +9,37 @@ var J = (t, o, l) => o in t ? ce(t, o, { enumerable: !0, configurable: !0, writa
9
9
  for (var l of A(o))
10
10
  me.call(o, l) && J(t, l, o[l]);
11
11
  return t;
12
- }, U = (t, o) => ue(t, de(o));
13
- var q = (t, o, l) => new Promise((_, m) => {
14
- var g = (u) => {
12
+ }, U = (t, o) => de(t, ue(o));
13
+ var R = (t, o, l) => new Promise((m, v) => {
14
+ var f = (d) => {
15
15
  try {
16
- c(l.next(u));
17
- } catch (C) {
18
- m(C);
16
+ c(l.next(d));
17
+ } catch (V) {
18
+ v(V);
19
19
  }
20
- }, S = (u) => {
20
+ }, h = (d) => {
21
21
  try {
22
- c(l.throw(u));
23
- } catch (C) {
24
- m(C);
22
+ c(l.throw(d));
23
+ } catch (V) {
24
+ v(V);
25
25
  }
26
- }, c = (u) => u.done ? _(u.value) : Promise.resolve(u.value).then(g, S);
26
+ }, c = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(f, h);
27
27
  c((l = l.apply(t, o)).next());
28
28
  });
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";
29
+ import { defineComponent as fe, ref as w, reactive as K, unref as b, computed as ge, resolveComponent as S, openBlock as F, createBlock as O, mergeProps as he, withCtx as _, createVNode as y, createElementVNode as C, createTextVNode as P, pushScopeId as be, popScopeId as _e } from "vue";
30
+ import { useModalInner as ye, BasicModal as xe } from "/@/components/Modal";
31
+ import { useForm as Se, BasicForm as Ce } from "/@/components/Form/index";
32
+ import { useJvxeMethod as ve } from "/@/hooks/system/useJvxeMethods.ts";
33
33
  import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
34
- import { duplicateCheck as Ce } from "/@/views/system/user/user.api";
34
+ import { duplicateCheckDelay as ke } from "/@/views/system/user/user.api";
35
35
  import { defHttp as x } from "/@/utils/http/axios";
36
- import { useMessage as K } from "/@/hooks/web/useMessage";
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(() => {
36
+ import { useMessage as j } from "/@/hooks/web/useMessage";
37
+ import { usePermissionStore as Ie } from "/@/store/modules/permission";
38
+ import { _ as we } from "./index-1d1a6e56.mjs";
39
+ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", Ve = "/online/cgreport/item/listByHeadId", at = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), nt = (t, o) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
39
40
  o();
40
- }), tt = (t, o) => {
41
- ke({
41
+ }), it = (t, o) => {
42
+ Pe({
42
43
  title: "确认删除",
43
44
  content: "是否删除选中数据",
44
45
  okText: "确认",
@@ -48,12 +49,12 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
48
49
  o();
49
50
  })
50
51
  });
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({
52
+ }, Le = (t, o) => o ? x.put({ url: "/online/cgreport/head/editAll", params: t }) : x.post({ url: "/online/cgreport/head/add", params: t }), st = (t) => x.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), $e = () => x.get({
52
53
  url: "/sys/dataSource/options"
53
54
  /* getDataSourceList */
54
- }), Le = (t) => x.get({
55
+ }), qe = (t) => x.get({
55
56
  url: "/online/cgreport/head/parseSql?" + t
56
- }), Te = ve(), lt = [
57
+ }), Re = Ie(), ct = [
57
58
  {
58
59
  title: "报表名字",
59
60
  align: "center",
@@ -76,6 +77,7 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
76
77
  title: "数据源",
77
78
  align: "center",
78
79
  dataIndex: "dbSource",
80
+ customRender: ({ text: t, record: o }) => o.dbSource_dictText ? o.dbSource_dictText : t,
79
81
  width: 120
80
82
  },
81
83
  {
@@ -84,7 +86,7 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
84
86
  dataIndex: "createTime",
85
87
  width: 120
86
88
  }
87
- ], rt = [
89
+ ], dt = [
88
90
  {
89
91
  label: "报表名称",
90
92
  field: "name",
@@ -95,7 +97,7 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
95
97
  field: "code",
96
98
  component: "JInput"
97
99
  }
98
- ], $e = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, qe = [
100
+ ], Ne = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, De = [
99
101
  {
100
102
  label: "",
101
103
  field: "id",
@@ -117,21 +119,21 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
117
119
  dynamicRules: ({ values: t, model: o }) => [
118
120
  {
119
121
  required: !0,
120
- validator: (l, _) => new Promise((m, g) => {
121
- if (!_)
122
- return g("请输入报表编码!");
123
- if (!$e.test(_))
124
- return g("编码必须以字母开头,可包含数字、下划线、横杠!");
125
- let S = {
122
+ validator: (l, m) => new Promise((v, f) => {
123
+ if (!m)
124
+ return f("请输入报表编码!");
125
+ if (!Ne.test(m))
126
+ return f("编码必须以字母开头,可包含数字、下划线、横杠!");
127
+ let h = {
126
128
  tableName: "onl_cgreport_head",
127
129
  fieldName: "code",
128
- fieldVal: _,
130
+ fieldVal: m,
129
131
  dataId: o.id
130
132
  };
131
- Ce(S).then((c) => {
132
- c.success ? m() : g("报表编码已存在!");
133
+ ke(h).then((c) => {
134
+ c.success ? v() : f("报表编码已存在!");
133
135
  }).catch((c) => {
134
- g(c.message || "校验失败");
136
+ f(c.message || "校验失败");
135
137
  });
136
138
  })
137
139
  }
@@ -163,9 +165,9 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
163
165
  xxl: 8
164
166
  },
165
167
  component: "ApiSelect",
166
- rules: [{ required: Te.sysSafeMode, message: "请选择数据源!" }],
168
+ rules: [{ required: Re.sysSafeMode, message: "请选择数据源!" }],
167
169
  componentProps: {
168
- api: Ve
170
+ api: $e
169
171
  }
170
172
  },
171
173
  /* {
@@ -187,16 +189,23 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
187
189
  field: "cgrSql",
188
190
  component: "JCodeEditor",
189
191
  rules: [{ required: !0, message: "请填写报表SQL" }],
190
- itemProps: {
191
- labelCol: { xs: 24, sm: 2 },
192
- wrapperCol: { xs: 24, sm: 22 }
193
- },
192
+ // update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
193
+ // itemProps: {
194
+ // labelCol: { xs: 24, sm: 4, md: 2, lg: 2, xl: 3, xxl: 2 },
195
+ // wrapperCol: { xs: { span: 24 }, sm: { span: 18 }, md: { span: 24 } },
196
+ // },
197
+ // update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
194
198
  componentProps: {
195
199
  height: "200px",
196
200
  fullScreen: !0
197
201
  },
198
202
  colProps: {
199
- span: 20
203
+ sm: 24,
204
+ xs: 24,
205
+ md: 18,
206
+ lg: 16,
207
+ xl: 16,
208
+ xxl: 16
200
209
  }
201
210
  },
202
211
  {
@@ -205,7 +214,12 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
205
214
  component: "Input",
206
215
  slot: "analyseButton",
207
216
  colProps: {
208
- span: 4
217
+ xs: 24,
218
+ sm: 24,
219
+ md: 6,
220
+ lg: 8,
221
+ xl: 8,
222
+ xxl: 8
209
223
  },
210
224
  itemProps: {
211
225
  labelCol: { xs: 1, sm: 1 },
@@ -213,7 +227,7 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
213
227
  colon: !1
214
228
  }
215
229
  }
216
- ], Ne = [
230
+ ], Me = [
217
231
  {
218
232
  title: "参数字段",
219
233
  key: "paramName",
@@ -240,7 +254,7 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
240
254
  placeholder: "请输入${title}",
241
255
  defaultValue: ""
242
256
  }
243
- ], Re = [
257
+ ], Be = [
244
258
  {
245
259
  title: "字段名字",
246
260
  key: "fieldName",
@@ -272,7 +286,8 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
272
286
  { title: "字符类型", value: "String" },
273
287
  { title: "日期类型", value: "Date" },
274
288
  { title: "时间类型", value: "Datetime" },
275
- { title: "长整型", value: "Long" }
289
+ { title: "长整型", value: "Long" },
290
+ { title: "图片类型", value: "Image" }
276
291
  ]
277
292
  },
278
293
  {
@@ -345,35 +360,39 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
345
360
  minWidth: "80px",
346
361
  defaultChecked: !1
347
362
  }
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({
363
+ ], T = (t) => (be("data-v-f79bfba3"), t = t(), _e(), t), Fe = { style: { flex: "1", "text-align": "left" } }, Oe = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), We = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), ze = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), Ae = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), Je = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), Ue = /* @__PURE__ */ T(() => /* @__PURE__ */ C("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1)), Ke = /* @__PURE__ */ fe({
349
364
  __name: "CgreportModal",
350
365
  emits: ["register", "success"],
351
366
  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({
367
+ const { createMessage: l } = j(), m = w(!0), v = w(!0), f = w(["onlCgreportItem", "onlCgreportParam"]), h = w("onlCgreportItem"), c = w(), d = w(), V = { onlCgreportItem: d, onlCgreportParam: c }, k = K({
353
368
  loading: !1,
354
369
  dataSource: [],
355
- columns: Ne
356
- }), I = z({
370
+ columns: Me
371
+ }), I = K({
357
372
  loading: !1,
358
373
  dataSource: [],
359
- columns: Re
360
- }), [H, { setProps: j, resetFields: E, setFieldsValue: Z, validate: Je, validateFields: G }] = xe({
374
+ columns: Be
375
+ }), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate: Qe, validateFields: G }] = Se({
361
376
  // labelWidth: 150,
362
- schemas: qe,
363
- showActionButtonGroup: !1
364
- }), [X, { setModalProps: L, closeModal: Y }] = be((e) => q(this, null, function* () {
377
+ schemas: De,
378
+ showActionButtonGroup: !1,
379
+ // update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
380
+ labelWidth: 100,
381
+ wrapperCol: null
382
+ // update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
383
+ }), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
365
384
  var r, a;
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(
385
+ 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), b(m) && (yield Z(B({}, e.record)), W(Te, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(Ve, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), H({ disabled: !(e != null && e.showFooter) });
386
+ })), [ee, te, W, oe] = ve(
368
387
  ne,
369
388
  ae,
370
- Q,
371
- c,
372
- S
373
- ), le = ge(() => h(m) ? "编辑" : "新增");
389
+ V,
390
+ h,
391
+ f
392
+ ), le = ge(() => b(m) ? "编辑" : "新增");
374
393
  function re() {
375
- return q(this, null, function* () {
376
- yield E(), c.value = "onlCgreportItem", w.dataSource = [], I.dataSource = [];
394
+ return R(this, null, function* () {
395
+ yield E(), h.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
377
396
  });
378
397
  }
379
398
  function ae(e) {
@@ -385,13 +404,13 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
385
404
  });
386
405
  }
387
406
  function ne(e) {
388
- return q(this, null, function* () {
407
+ return R(this, null, function* () {
389
408
  try {
390
409
  L({ confirmLoading: !0 });
391
410
  let r = [], a = [], s = {};
392
411
  Object.keys(e).map((n) => {
393
412
  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");
413
+ }), yield Le({ head: s, params: r, items: a }, m.value), Y(), o("success");
395
414
  } finally {
396
415
  L({ confirmLoading: !1 });
397
416
  }
@@ -400,13 +419,13 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
400
419
  function ie() {
401
420
  L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
402
421
  let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
403
- a && (s += "&dbKey=" + a), Le(s).then((d) => {
404
- if (d) {
422
+ a && (s += "&dbKey=" + a), qe(s).then((u) => {
423
+ if (u) {
405
424
  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;
425
+ let { fields: n, params: p } = u, g = n.filter((q) => q.fieldName != "__row_number__"), N = d.value.getTableData(), $ = z(N, g || [], "fieldName");
426
+ $ = $.sort((q, M) => q.orderNum - M.orderNum), I.dataSource = $;
427
+ let se = c.value.getTableData(), D = z(se, p || [], "paramName");
428
+ D = D.sort((q, M) => q.orderNum - M.orderNum), k.dataSource = D;
410
429
  }
411
430
  });
412
431
  }).catch(() => {
@@ -414,74 +433,74 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
414
433
  L({ confirmLoading: !1 });
415
434
  });
416
435
  }
417
- function O(e, r, a) {
436
+ function z(e, r, a) {
418
437
  if (e.length > 0) {
419
- let s = [], d = [], n = 1;
438
+ let s = [], u = [], n = 1;
420
439
  for (let p of r)
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);
440
+ for (let g of e)
441
+ if (g[a] == p[a]) {
442
+ s.push(g), u.push(p[a]), g.orderNum > n && (n = g.orderNum);
424
443
  break;
425
444
  }
426
445
  for (let p of r)
427
- d.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
446
+ u.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
428
447
  return s;
429
448
  } else {
430
449
  let s = 0;
431
- for (let d of r)
432
- d.orderNum || (d.orderNum = ++s);
450
+ for (let u of r)
451
+ u.orderNum || (u.orderNum = ++s);
433
452
  return r;
434
453
  }
435
454
  }
436
455
  return (e, r) => {
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),
456
+ const a = S("a-icon"), s = S("a-popover"), u = S("a-button"), n = S("a-divider"), p = S("JVxeTable"), g = S("a-tab-pane"), N = S("a-tabs");
457
+ return F(), O(b(xe), he(e.$attrs, {
458
+ onRegister: b(X),
440
459
  title: le.value,
441
460
  width: 1200,
442
461
  maskClosable: !1,
443
462
  defaultFullscreen: !0,
444
- confirmLoading: g.value,
445
- onOk: h(te)
463
+ confirmLoading: v.value,
464
+ onOk: b(te)
446
465
  }), {
447
- default: b(() => [
448
- y(h(_e), {
449
- onRegister: h(H),
466
+ default: _(() => [
467
+ y(b(Ce), {
468
+ onRegister: b(Q),
450
469
  ref_key: "formRef",
451
470
  ref: oe
452
471
  }, {
453
- analyseButton: b(() => [
454
- k("div", De, [
472
+ analyseButton: _(() => [
473
+ C("div", Fe, [
455
474
  y(s, {
456
475
  title: "使用指南",
457
476
  trigger: "hover",
458
477
  style: { margin: "0 10px 0 6px" }
459
478
  }, {
460
- content: b(() => [
461
- V(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
462
- Be,
463
- V(" select * from table where id = ${abc}。"),
464
- Fe,
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模糊查询)"),
479
+ content: _(() => [
480
+ P(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
470
481
  Oe,
471
- Ae
482
+ P(" select * from table where id = ${abc}。"),
483
+ We,
484
+ P(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
485
+ ze,
486
+ P(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
487
+ Ae,
488
+ P(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
489
+ Je,
490
+ Ue
472
491
  ]),
473
- default: b(() => [
492
+ default: _(() => [
474
493
  y(a, { type: "question-circle" })
475
494
  ]),
476
495
  _: 1
477
496
  }),
478
- y(d, {
497
+ y(u, {
479
498
  style: { "margin-left": "10px" },
480
499
  type: "primary",
481
500
  onClick: ie
482
501
  }, {
483
- default: b(() => [
484
- V("SQL解析")
502
+ default: _(() => [
503
+ P("SQL解析")
485
504
  ]),
486
505
  _: 1
487
506
  })
@@ -494,24 +513,24 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
494
513
  class: "cust-divider"
495
514
  }),
496
515
  y(N, {
497
- activeKey: c.value,
498
- "onUpdate:activeKey": r[0] || (r[0] = (T) => c.value = T),
516
+ activeKey: h.value,
517
+ "onUpdate:activeKey": r[0] || (r[0] = ($) => h.value = $),
499
518
  animated: "",
500
- onChange: h(ee)
519
+ onChange: b(ee)
501
520
  }, {
502
- default: b(() => [
503
- (F(), M(f, {
521
+ default: _(() => [
522
+ (F(), O(g, {
504
523
  tab: "动态报表配置明细",
505
- key: S.value[0],
524
+ key: f.value[0],
506
525
  forceRender: !0
507
526
  }, {
508
- default: b(() => [
527
+ default: _(() => [
509
528
  y(p, {
510
529
  "keep-source": "",
511
530
  dragSort: "",
512
531
  resizable: "",
513
532
  ref_key: "onlCgreportItem",
514
- ref: C,
533
+ ref: d,
515
534
  loading: I.loading,
516
535
  columns: I.columns,
517
536
  dataSource: I.dataSource,
@@ -523,21 +542,21 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
523
542
  ]),
524
543
  _: 1
525
544
  })),
526
- (F(), M(f, {
545
+ (F(), O(g, {
527
546
  tab: "报表参数",
528
- key: S.value[1],
547
+ key: f.value[1],
529
548
  forceRender: !0
530
549
  }, {
531
- default: b(() => [
550
+ default: _(() => [
532
551
  y(p, {
533
552
  "keep-source": "",
534
553
  resizable: "",
535
554
  dragSort: "",
536
555
  ref_key: "onlCgreportParam",
537
- ref: u,
538
- loading: w.loading,
539
- columns: w.columns,
540
- dataSource: w.dataSource,
556
+ ref: c,
557
+ loading: k.loading,
558
+ columns: k.columns,
559
+ dataSource: k.dataSource,
541
560
  height: 390,
542
561
  rowNumber: !0,
543
562
  rowSelection: !0,
@@ -555,12 +574,17 @@ const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", I
555
574
  };
556
575
  }
557
576
  });
577
+ const je = /* @__PURE__ */ we(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
578
+ __proto__: null,
579
+ default: je
580
+ }, Symbol.toStringTag, { value: "Module" }));
558
581
  export {
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
582
+ je as C,
583
+ ut as a,
584
+ it as b,
585
+ ct as c,
586
+ nt as d,
587
+ st as g,
588
+ at as l,
589
+ dt as s
566
590
  };