@jeecg/online 3.6.2-GA → 3.7.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-f142147a.mjs +0 -125
  86. package/AuthDataConfig-8e5c7b0c.mjs +0 -212
  87. package/AuthFieldConfig-e9a45f94.mjs +0 -139
  88. package/AuthManagerDrawer-5b558c23.mjs +0 -114
  89. package/AuthSetterModal-0cc557cf.mjs +0 -267
  90. package/CgreportModal-2eb9c9e1.mjs +0 -13
  91. package/CheckDictTable-27102064.mjs +0 -211
  92. package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
  93. package/DetailForm-cdeb54e3.mjs +0 -462
  94. package/EnhanceJsModal-6158804c.mjs +0 -311
  95. package/ExtendConfigModal-0564ef83.mjs +0 -111
  96. package/FieldExtendJsonModal-40d961c1.mjs +0 -219
  97. package/LinkTableConfigModal-5edaa08d.mjs +0 -230
  98. package/OnlCgformErpList-4c51cdb3.mjs +0 -454
  99. package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
  100. package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
  101. package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
  102. package/OnlCgformTabList-c59c7cc7.mjs +0 -395
  103. package/OnlineAutoList-a7a9de5d.mjs +0 -479
  104. package/OnlineAutoModal-a33f1a63.mjs +0 -207
  105. package/OnlineForm-fb3a2379.mjs +0 -750
  106. package/OnlineFormDetail-52b1c303.mjs +0 -297
  107. package/OnlineQueryForm-7c70734e.mjs +0 -386
  108. package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
  109. package/OnlineTabForm-29ca07f7.mjs +0 -766
  110. package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
  111. package/PageAttributeTable-d82946c5.mjs +0 -404
  112. package/QueryTable-d4599fca.mjs +0 -115
  113. package/SuperQuery-07162778.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-73993b18.mjs +0 -56
  116. package/useCgformList-b135794d.mjs +0 -400
  117. package/useExtendComponent-f4e29152.mjs +0 -3926
  118. package/useListButton-4dd33e7a.mjs +0 -676
@@ -1,59 +1,60 @@
1
- var se = Object.defineProperty, ce = Object.defineProperties;
1
+ var ce = Object.defineProperty, de = Object.defineProperties;
2
2
  var ue = Object.getOwnPropertyDescriptors;
3
3
  var A = Object.getOwnPropertySymbols;
4
- var de = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable;
5
- var J = (t, o, l) => o in t ? se(t, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[o] = l, B = (t, 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
6
  for (var l in o || (o = {}))
7
- de.call(o, l) && J(t, l, o[l]);
7
+ pe.call(o, l) && J(t, l, o[l]);
8
8
  if (A)
9
9
  for (var l of A(o))
10
- pe.call(o, l) && J(t, l, o[l]);
10
+ me.call(o, l) && J(t, l, o[l]);
11
11
  return t;
12
- }, U = (t, o) => ce(t, ue(o));
13
- var q = (t, o, l) => new Promise((m, v) => {
14
- var f = (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));
16
+ c(l.next(d));
17
17
  } catch (V) {
18
18
  v(V);
19
19
  }
20
- }, h = (u) => {
20
+ }, h = (d) => {
21
21
  try {
22
- c(l.throw(u));
22
+ c(l.throw(d));
23
23
  } catch (V) {
24
24
  v(V);
25
25
  }
26
- }, c = (u) => u.done ? m(u.value) : Promise.resolve(u.value).then(f, h);
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 me, ref as I, reactive as z, unref as b, computed as fe, resolveComponent as S, openBlock as F, createBlock as M, 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";
29
+ import { defineComponent as fe, ref as I, 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 Se } from "/@/views/system/user/user.api";
35
- import { defHttp as _ } from "/@/utils/http/axios";
36
- import { useMessage as K } from "/@/hooks/web/useMessage";
37
- import { usePermissionStore as Ce } from "/@/store/modules/permission";
38
- const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", we = "/online/cgreport/item/listByHeadId", Xe = (t) => _.get({ url: "/online/cgreport/head/list", params: t }), Ye = (t, o) => _.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
34
+ import { duplicateCheckDelay as ke } from "/@/views/system/user/user.api";
35
+ import { defHttp as x } from "/@/utils/http/axios";
36
+ import { useMessage as j } from "/@/hooks/web/useMessage";
37
+ import { usePermissionStore as we } from "/@/store/modules/permission";
38
+ import { _ as Ie } from "./index-173949bb.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
- }), et = (t, o) => {
41
- ve({
41
+ }), it = (t, o) => {
42
+ Pe({
42
43
  title: "确认删除",
43
44
  content: "是否删除选中数据",
44
45
  okText: "确认",
45
46
  cancelText: "取消",
46
47
  iconType: "warning",
47
- onOk: () => _.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
48
+ onOk: () => x.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
48
49
  o();
49
50
  })
50
51
  });
51
- }, Ie = (t, o) => o ? _.put({ url: "/online/cgreport/head/editAll", params: t }) : _.post({ url: "/online/cgreport/head/add", params: t }), tt = (t) => _.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), Pe = () => _.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
- }), Ve = (t) => _.get({
55
+ }), qe = (t) => x.get({
55
56
  url: "/online/cgreport/head/parseSql?" + t
56
- }), Le = Ce(), ot = [
57
+ }), Re = we(), ct = [
57
58
  {
58
59
  title: "报表名字",
59
60
  align: "center",
@@ -76,6 +77,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
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: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
84
86
  dataIndex: "createTime",
85
87
  width: 120
86
88
  }
87
- ], lt = [
89
+ ], dt = [
88
90
  {
89
91
  label: "报表名称",
90
92
  field: "name",
@@ -95,7 +97,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
95
97
  field: "code",
96
98
  component: "JInput"
97
99
  }
98
- ], Te = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, $e = [
100
+ ], Ne = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, De = [
99
101
  {
100
102
  label: "",
101
103
  field: "id",
@@ -120,7 +122,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
120
122
  validator: (l, m) => new Promise((v, f) => {
121
123
  if (!m)
122
124
  return f("请输入报表编码!");
123
- if (!Te.test(m))
125
+ if (!Ne.test(m))
124
126
  return f("编码必须以字母开头,可包含数字、下划线、横杠!");
125
127
  let h = {
126
128
  tableName: "onl_cgreport_head",
@@ -128,7 +130,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
128
130
  fieldVal: m,
129
131
  dataId: o.id
130
132
  };
131
- Se(h).then((c) => {
133
+ ke(h).then((c) => {
132
134
  c.success ? v() : f("报表编码已存在!");
133
135
  }).catch((c) => {
134
136
  f(c.message || "校验失败");
@@ -163,9 +165,9 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
163
165
  xxl: 8
164
166
  },
165
167
  component: "ApiSelect",
166
- rules: [{ required: Le.sysSafeMode, message: "请选择数据源!" }],
168
+ rules: [{ required: Re.sysSafeMode, message: "请选择数据源!" }],
167
169
  componentProps: {
168
- api: Pe
170
+ api: $e
169
171
  }
170
172
  },
171
173
  /* {
@@ -187,16 +189,23 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
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: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
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: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
213
227
  colon: !1
214
228
  }
215
229
  }
216
- ], qe = [
230
+ ], Me = [
217
231
  {
218
232
  title: "参数字段",
219
233
  key: "paramName",
@@ -240,7 +254,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
240
254
  placeholder: "请输入${title}",
241
255
  defaultValue: ""
242
256
  }
243
- ], Ne = [
257
+ ], Be = [
244
258
  {
245
259
  title: "字段名字",
246
260
  key: "fieldName",
@@ -345,38 +359,42 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
345
359
  minWidth: "80px",
346
360
  defaultChecked: !1
347
361
  }
348
- ], Re = { style: { flex: "1", "text-align": "left" } }, De = /* @__PURE__ */ C("br", null, null, -1), Be = /* @__PURE__ */ C("br", null, null, -1), Fe = /* @__PURE__ */ C("br", null, null, -1), Me = /* @__PURE__ */ C("br", null, null, -1), We = /* @__PURE__ */ C("br", null, null, -1), Oe = /* @__PURE__ */ C("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1), rt = /* @__PURE__ */ me({
362
+ ], 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
363
  __name: "CgreportModal",
350
364
  emits: ["register", "success"],
351
365
  setup(t, { emit: o }) {
352
- const { createMessage: l } = K(), m = I(!0), v = I(!0), f = I(["onlCgreportItem", "onlCgreportParam"]), h = I("onlCgreportItem"), c = I(), u = I(), V = { onlCgreportItem: u, onlCgreportParam: c }, k = z({
366
+ const { createMessage: l } = j(), m = I(!0), v = I(!0), f = I(["onlCgreportItem", "onlCgreportParam"]), h = I("onlCgreportItem"), c = I(), d = I(), V = { onlCgreportItem: d, onlCgreportParam: c }, k = K({
353
367
  loading: !1,
354
368
  dataSource: [],
355
- columns: qe
356
- }), w = z({
369
+ columns: Me
370
+ }), w = K({
357
371
  loading: !1,
358
372
  dataSource: [],
359
- columns: Ne
360
- }), [Q, { setProps: H, resetFields: j, setFieldsValue: E, validate: Ae, validateFields: Z }] = ye({
373
+ columns: Be
374
+ }), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate: Qe, validateFields: G }] = Se({
361
375
  // labelWidth: 150,
362
- schemas: $e,
363
- showActionButtonGroup: !1
364
- }), [G, { setModalProps: L, closeModal: X }] = he((e) => q(this, null, function* () {
376
+ schemas: De,
377
+ showActionButtonGroup: !1,
378
+ // update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
379
+ labelWidth: 100,
380
+ wrapperCol: null
381
+ // update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
382
+ }), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
365
383
  var r, a;
366
- yield le(), 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 E(B({}, e.record)), W(ke, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(we, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, w)), H({ disabled: !(e != null && e.showFooter) });
367
- })), [Y, ee, W, te] = _e(
384
+ 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 }, w)), H({ disabled: !(e != null && e.showFooter) });
385
+ })), [ee, te, W, oe] = ve(
386
+ ne,
368
387
  ae,
369
- re,
370
388
  V,
371
389
  h,
372
390
  f
373
- ), oe = fe(() => b(m) ? "编辑" : "新增");
374
- function le() {
375
- return q(this, null, function* () {
376
- yield j(), h.value = "onlCgreportItem", k.dataSource = [], w.dataSource = [];
391
+ ), le = ge(() => b(m) ? "编辑" : "新增");
392
+ function re() {
393
+ return R(this, null, function* () {
394
+ yield E(), h.value = "onlCgreportItem", k.dataSource = [], w.dataSource = [];
377
395
  });
378
396
  }
379
- function re(e) {
397
+ function ae(e) {
380
398
  let r = Object.assign({}, e.formValue);
381
399
  return U(B({}, r), {
382
400
  // 展开
@@ -384,29 +402,29 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
384
402
  onlCgreportItemList: e.tablesValue[0].tableData
385
403
  });
386
404
  }
387
- function ae(e) {
388
- return q(this, null, function* () {
405
+ function ne(e) {
406
+ return R(this, null, function* () {
389
407
  try {
390
408
  L({ confirmLoading: !0 });
391
409
  let r = [], a = [], s = {};
392
410
  Object.keys(e).map((n) => {
393
411
  n == "onlCgreportItemList" ? a = e[n] : n == "onlCgreportParamList" ? r = e[n] : s[n] = e[n];
394
- }), yield Ie({ head: s, params: r, items: a }, m.value), X(), o("success");
412
+ }), yield Le({ head: s, params: r, items: a }, m.value), Y(), o("success");
395
413
  } finally {
396
414
  L({ confirmLoading: !1 });
397
415
  }
398
416
  });
399
417
  }
400
- function ne() {
401
- L({ confirmLoading: !0 }), Z(["cgrSql", "dbSource"]).then((e) => {
418
+ function ie() {
419
+ L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
402
420
  let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
403
- a && (s += "&dbKey=" + a), Ve(s).then((d) => {
404
- if (d) {
421
+ a && (s += "&dbKey=" + a), qe(s).then((u) => {
422
+ if (u) {
405
423
  l.success("解析成功");
406
- let { fields: n, params: p } = d, g = n.filter(($) => $.fieldName != "__row_number__"), N = u.value.getTableData(), T = O(N, g || [], "fieldName");
407
- T = T.sort(($, D) => $.orderNum - D.orderNum), w.dataSource = T;
408
- let ie = c.value.getTableData(), R = O(ie, p || [], "paramName");
409
- R = R.sort(($, D) => $.orderNum - D.orderNum), k.dataSource = R;
424
+ let { fields: n, params: p } = u, g = n.filter((q) => q.fieldName != "__row_number__"), N = d.value.getTableData(), $ = z(N, g || [], "fieldName");
425
+ $ = $.sort((q, M) => q.orderNum - M.orderNum), w.dataSource = $;
426
+ let se = c.value.getTableData(), D = z(se, p || [], "paramName");
427
+ D = D.sort((q, M) => q.orderNum - M.orderNum), k.dataSource = D;
410
428
  }
411
429
  });
412
430
  }).catch(() => {
@@ -414,73 +432,73 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
414
432
  L({ confirmLoading: !1 });
415
433
  });
416
434
  }
417
- function O(e, r, a) {
435
+ function z(e, r, a) {
418
436
  if (e.length > 0) {
419
- let s = [], d = [], n = 1;
437
+ let s = [], u = [], n = 1;
420
438
  for (let p of r)
421
439
  for (let g of e)
422
440
  if (g[a] == p[a]) {
423
- s.push(g), d.push(p[a]), g.orderNum > n && (n = g.orderNum);
441
+ s.push(g), u.push(p[a]), g.orderNum > n && (n = g.orderNum);
424
442
  break;
425
443
  }
426
444
  for (let p of r)
427
- d.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
445
+ u.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
428
446
  return s;
429
447
  } else {
430
448
  let s = 0;
431
- for (let d of r)
432
- d.orderNum || (d.orderNum = ++s);
449
+ for (let u of r)
450
+ u.orderNum || (u.orderNum = ++s);
433
451
  return r;
434
452
  }
435
453
  }
436
454
  return (e, r) => {
437
- const a = S("a-icon"), s = S("a-popover"), d = S("a-button"), n = S("a-divider"), p = S("JVxeTable"), g = S("a-tab-pane"), N = S("a-tabs");
438
- return F(), M(b(be), ge(e.$attrs, {
439
- onRegister: b(G),
440
- title: oe.value,
455
+ 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");
456
+ return F(), O(b(xe), he(e.$attrs, {
457
+ onRegister: b(X),
458
+ title: le.value,
441
459
  width: 1200,
442
460
  maskClosable: !1,
443
461
  defaultFullscreen: !0,
444
462
  confirmLoading: v.value,
445
- onOk: b(ee)
463
+ onOk: b(te)
446
464
  }), {
447
- default: y(() => [
448
- x(b(xe), {
465
+ default: _(() => [
466
+ y(b(Ce), {
449
467
  onRegister: b(Q),
450
468
  ref_key: "formRef",
451
- ref: te
469
+ ref: oe
452
470
  }, {
453
- analyseButton: y(() => [
454
- C("div", Re, [
455
- x(s, {
471
+ analyseButton: _(() => [
472
+ C("div", Fe, [
473
+ y(s, {
456
474
  title: "使用指南",
457
475
  trigger: "hover",
458
476
  style: { margin: "0 10px 0 6px" }
459
477
  }, {
460
- content: y(() => [
478
+ content: _(() => [
461
479
  P(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
462
- De,
480
+ Oe,
463
481
  P(" select * from table where id = ${abc}。"),
464
- Be,
482
+ We,
465
483
  P(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
466
- Fe,
484
+ ze,
467
485
  P(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
468
- Me,
486
+ Ae,
469
487
  P(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
470
- We,
471
- Oe
488
+ Je,
489
+ Ue
472
490
  ]),
473
- default: y(() => [
474
- x(a, { type: "question-circle" })
491
+ default: _(() => [
492
+ y(a, { type: "question-circle" })
475
493
  ]),
476
494
  _: 1
477
495
  }),
478
- x(d, {
496
+ y(u, {
479
497
  style: { "margin-left": "10px" },
480
498
  type: "primary",
481
- onClick: ne
499
+ onClick: ie
482
500
  }, {
483
- default: y(() => [
501
+ default: _(() => [
484
502
  P("SQL解析")
485
503
  ]),
486
504
  _: 1
@@ -489,29 +507,29 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
489
507
  ]),
490
508
  _: 1
491
509
  }, 8, ["onRegister"]),
492
- x(n, {
510
+ y(n, {
493
511
  style: { margin: "1px 0" },
494
512
  class: "cust-divider"
495
513
  }),
496
- x(N, {
514
+ y(N, {
497
515
  activeKey: h.value,
498
- "onUpdate:activeKey": r[0] || (r[0] = (T) => h.value = T),
516
+ "onUpdate:activeKey": r[0] || (r[0] = ($) => h.value = $),
499
517
  animated: "",
500
- onChange: b(Y)
518
+ onChange: b(ee)
501
519
  }, {
502
- default: y(() => [
503
- (F(), M(g, {
520
+ default: _(() => [
521
+ (F(), O(g, {
504
522
  tab: "动态报表配置明细",
505
523
  key: f.value[0],
506
524
  forceRender: !0
507
525
  }, {
508
- default: y(() => [
509
- x(p, {
526
+ default: _(() => [
527
+ y(p, {
510
528
  "keep-source": "",
511
529
  dragSort: "",
512
530
  resizable: "",
513
531
  ref_key: "onlCgreportItem",
514
- ref: u,
532
+ ref: d,
515
533
  loading: w.loading,
516
534
  columns: w.columns,
517
535
  dataSource: w.dataSource,
@@ -523,13 +541,13 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
523
541
  ]),
524
542
  _: 1
525
543
  })),
526
- (F(), M(g, {
544
+ (F(), O(g, {
527
545
  tab: "报表参数",
528
546
  key: f.value[1],
529
547
  forceRender: !0
530
548
  }, {
531
- default: y(() => [
532
- x(p, {
549
+ default: _(() => [
550
+ y(p, {
533
551
  "keep-source": "",
534
552
  resizable: "",
535
553
  dragSort: "",
@@ -555,12 +573,17 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
555
573
  };
556
574
  }
557
575
  });
576
+ const je = /* @__PURE__ */ Ie(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
577
+ __proto__: null,
578
+ default: je
579
+ }, Symbol.toStringTag, { value: "Module" }));
558
580
  export {
559
- rt as _,
560
- et as b,
561
- ot as c,
562
- Ye as d,
563
- tt as g,
564
- Xe as l,
565
- lt as s
581
+ je as C,
582
+ ut as a,
583
+ it as b,
584
+ ct as c,
585
+ nt as d,
586
+ st as g,
587
+ at as l,
588
+ dt as s
566
589
  };