@jeecg/online 3.7.1-RC → 3.7.4

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 (142) hide show
  1. package/AccountLoginForm-d2fed52f.mjs +254 -0
  2. package/AiModal-fbe4b68a.mjs +84 -0
  3. package/AppForgetPassword-3b3bec82.mjs +310 -0
  4. package/AppLogin-cd2e2a87.mjs +287 -0
  5. package/AppLoginHeader-9b5be678.mjs +27 -0
  6. package/AppNameEmail-b4e32ae8.mjs +180 -0
  7. package/AppRegister-7117b66a.mjs +303 -0
  8. package/AppTenant-5817729b.mjs +373 -0
  9. package/AppThirdForm-d14fb5e5.mjs +189 -0
  10. package/AuthButtonConfig-5e3b6d72.mjs +156 -0
  11. package/AuthButtonTree-7b4ec967.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
  15. package/AuthFieldTree-2d458c0c.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1b9cbe19.mjs +260 -0
  21. package/CgformCopyList-580bba0f.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
  25. package/CodeFileListModal-71752603.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
  27. package/CodeGeneratorModal-2fe1e920.mjs +281 -0
  28. package/CustomButtonList-22b5cdb3.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
  32. package/DropMenuItem-b1a8f47d.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
  44. package/JModalTip-192fafa1.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
  47. package/LeftRole-9d88976d.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
  53. package/OnlCgformErpList-8fd15fc1.mjs +488 -0
  54. package/OnlCgformErpSubTable-3515150b.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
  56. package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
  57. package/OnlCgformTabList-583ac15f.mjs +424 -0
  58. package/OnlineAutoList-36ec0957.mjs +513 -0
  59. package/OnlineAutoModal-c0743caf.mjs +260 -0
  60. package/OnlineAutoTreeList-1cd718be.mjs +523 -0
  61. package/OnlineCustomModal-661ee850.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
  63. package/OnlineForm-c1fb38eb.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
  69. package/OnlineQueryForm-ca6186a3.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
  75. package/OnlineTabForm-89389384.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
  78. package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
  81. package/SetSwitchOptions-cdcb22a1.mjs +62 -0
  82. package/ShareAddView-f713c0a5.mjs +86 -0
  83. package/ShareEditView-691764ad.mjs +92 -0
  84. package/ShareView-df344a8d.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
  86. package/SingleView-ad0287d6.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
  88. package/SuperQuery-2b293e3b.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  94. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  95. package/index-181f8344.mjs +219 -0
  96. package/index-19eaef11.mjs +11 -0
  97. package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
  98. package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-93341e02.mjs +110 -0
  101. package/index-bef7fe2d.mjs +74 -0
  102. package/index-d6f9ada7.mjs +135 -0
  103. package/index-f3683351.mjs +57 -0
  104. package/main.index.js +1 -1
  105. package/package.json +1 -1
  106. package/shareStore-7de6c7a6.mjs +67 -0
  107. package/style.css +1 -1
  108. package/useCgformList-13c8aab7.mjs +378 -0
  109. package/useExtendComponent-3f5734ca.mjs +4459 -0
  110. package/useListButton-ee23874a.mjs +719 -0
  111. package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
  112. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  113. package/utils-9fce7606.mjs +16 -0
  114. package/AiModal-6de335e3.mjs +0 -84
  115. package/AuthButtonConfig-89763932.mjs +0 -154
  116. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  117. package/AuthFieldTree-e326fc38.mjs +0 -232
  118. package/CgformCopyList-365b3e8f.mjs +0 -251
  119. package/CodeFileListModal-24601898.mjs +0 -159
  120. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  121. package/CustomButtonList-f07bc695.mjs +0 -397
  122. package/JModalTip-b055ab60.mjs +0 -49
  123. package/LeftRole-2ed8a2bf.mjs +0 -86
  124. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  125. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  126. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  127. package/OnlCgformTabList-019ad753.mjs +0 -408
  128. package/OnlineAutoList-48589d09.mjs +0 -493
  129. package/OnlineAutoModal-c2928847.mjs +0 -239
  130. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  131. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  132. package/OnlineForm-9f1153ba.mjs +0 -985
  133. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  134. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  135. package/OnlineTabForm-27655c83.mjs +0 -817
  136. package/SetSwitchOptions-b2af757f.mjs +0 -62
  137. package/SuperQuery-a8592995.mjs +0 -967
  138. package/index-1d1a6e56.mjs +0 -57
  139. package/useCgformList-f41d4dc1.mjs +0 -426
  140. package/useExtendComponent-dcae5c78.mjs +0 -4399
  141. package/useListButton-bfac4ecf.mjs +0 -697
  142. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -1,60 +1,60 @@
1
1
  var ce = Object.defineProperty, de = Object.defineProperties;
2
2
  var ue = Object.getOwnPropertyDescriptors;
3
- var A = Object.getOwnPropertySymbols;
3
+ var z = Object.getOwnPropertySymbols;
4
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
- if (A)
9
- for (var l of A(o))
10
- me.call(o, l) && J(t, l, o[l]);
5
+ var A = (t, l, r) => l in t ? ce(t, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[l] = r, D = (t, l) => {
6
+ for (var r in l || (l = {}))
7
+ pe.call(l, r) && A(t, r, l[r]);
8
+ if (z)
9
+ for (var r of z(l))
10
+ me.call(l, r) && A(t, r, l[r]);
11
11
  return t;
12
- }, U = (t, o) => de(t, ue(o));
13
- var R = (t, o, l) => new Promise((m, v) => {
14
- var f = (d) => {
12
+ }, J = (t, l) => de(t, ue(l));
13
+ var q = (t, l, r) => new Promise((_, m) => {
14
+ var g = (d) => {
15
15
  try {
16
- c(l.next(d));
17
- } catch (V) {
18
- v(V);
16
+ c(r.next(d));
17
+ } catch (C) {
18
+ m(C);
19
19
  }
20
- }, h = (d) => {
20
+ }, S = (d) => {
21
21
  try {
22
- c(l.throw(d));
23
- } catch (V) {
24
- v(V);
22
+ c(r.throw(d));
23
+ } catch (C) {
24
+ m(C);
25
25
  }
26
- }, c = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(f, h);
27
- c((l = l.apply(t, o)).next());
26
+ }, c = (d) => d.done ? _(d.value) : Promise.resolve(d.value).then(g, S);
27
+ c((r = r.apply(t, l)).next());
28
28
  });
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
- import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
34
- import { duplicateCheckDelay as ke } from "/@/views/system/user/user.api";
29
+ import { defineComponent as fe, ref as P, reactive as U, unref as h, computed as ge, resolveComponent as v, openBlock as M, createBlock as W, mergeProps as he, withCtx as b, createVNode as y, createElementVNode as w, createTextVNode as T } 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 n } from "/@/components/jeecg/JVxeTable/types";
34
+ import { duplicateCheckDelay as Ce } from "/@/views/system/user/user.api";
35
35
  import { defHttp as x } from "/@/utils/http/axios";
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(() => {
40
- o();
41
- }), it = (t, o) => {
42
- Pe({
36
+ import { useMessage as K } from "/@/hooks/web/useMessage";
37
+ import { usePermissionStore as ve } from "/@/store/modules/permission";
38
+ import { _ as we } from "./index-f3683351.mjs";
39
+ const { createConfirm: ke } = K(), Ie = "/online/cgreport/param/listByHeadId", Pe = "/online/cgreport/item/listByHeadId", Ge = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), Xe = (t, l) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
40
+ l();
41
+ }), Ye = (t, l) => {
42
+ ke({
43
43
  title: "确认删除",
44
44
  content: "是否删除选中数据",
45
45
  okText: "确认",
46
46
  cancelText: "取消",
47
47
  iconType: "warning",
48
48
  onOk: () => x.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
49
- o();
49
+ l();
50
50
  })
51
51
  });
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
+ }, Te = (t, l) => l ? x.put({ url: "/online/cgreport/head/editAll", params: t }) : x.post({ url: "/online/cgreport/head/add", params: t }), et = (t) => x.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), Ve = () => x.get({
53
53
  url: "/sys/dataSource/options"
54
54
  /* getDataSourceList */
55
- }), qe = (t) => x.get({
55
+ }), Le = (t) => x.get({
56
56
  url: "/online/cgreport/head/parseSql?" + t
57
- }), Re = Ie(), ct = [
57
+ }), $e = ve(), tt = [
58
58
  {
59
59
  title: "报表名字",
60
60
  align: "center",
@@ -77,7 +77,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
77
77
  title: "数据源",
78
78
  align: "center",
79
79
  dataIndex: "dbSource",
80
- customRender: ({ text: t, record: o }) => o.dbSource_dictText ? o.dbSource_dictText : t,
80
+ customRender: ({ text: t, record: l }) => l.dbSource_dictText ? l.dbSource_dictText : t,
81
81
  width: 120
82
82
  },
83
83
  {
@@ -86,7 +86,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
86
86
  dataIndex: "createTime",
87
87
  width: 120
88
88
  }
89
- ], dt = [
89
+ ], lt = [
90
90
  {
91
91
  label: "报表名称",
92
92
  field: "name",
@@ -97,7 +97,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
97
97
  field: "code",
98
98
  component: "JInput"
99
99
  }
100
- ], Ne = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, De = [
100
+ ], qe = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, Ne = [
101
101
  {
102
102
  label: "",
103
103
  field: "id",
@@ -116,24 +116,24 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
116
116
  xl: 8,
117
117
  xxl: 8
118
118
  },
119
- dynamicRules: ({ values: t, model: o }) => [
119
+ dynamicRules: ({ values: t, model: l }) => [
120
120
  {
121
121
  required: !0,
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 = {
122
+ validator: (r, _) => new Promise((m, g) => {
123
+ if (!_)
124
+ return g("请输入报表编码!");
125
+ if (!qe.test(_))
126
+ return g("编码必须以字母开头,可包含数字、下划线、横杠!");
127
+ let S = {
128
128
  tableName: "onl_cgreport_head",
129
129
  fieldName: "code",
130
- fieldVal: m,
131
- dataId: o.id
130
+ fieldVal: _,
131
+ dataId: l.id
132
132
  };
133
- ke(h).then((c) => {
134
- c.success ? v() : f("报表编码已存在!");
133
+ Ce(S).then((c) => {
134
+ c.success ? m() : g("报表编码已存在!");
135
135
  }).catch((c) => {
136
- f(c.message || "校验失败");
136
+ g(c.message || "校验失败");
137
137
  });
138
138
  })
139
139
  }
@@ -165,9 +165,9 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
165
165
  xxl: 8
166
166
  },
167
167
  component: "ApiSelect",
168
- rules: [{ required: Re.sysSafeMode, message: "请选择数据源!" }],
168
+ rules: [{ required: $e.sysSafeMode, message: "请选择数据源!" }],
169
169
  componentProps: {
170
- api: $e
170
+ api: Ve
171
171
  }
172
172
  },
173
173
  /* {
@@ -227,11 +227,11 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
227
227
  colon: !1
228
228
  }
229
229
  }
230
- ], Me = [
230
+ ], Fe = [
231
231
  {
232
232
  title: "参数字段",
233
233
  key: "paramName",
234
- type: i.input,
234
+ type: n.input,
235
235
  width: "200px",
236
236
  placeholder: "请输入${title}",
237
237
  defaultValue: "",
@@ -240,7 +240,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
240
240
  {
241
241
  title: "参数文本",
242
242
  key: "paramTxt",
243
- type: i.input,
243
+ type: n.input,
244
244
  width: "200px",
245
245
  placeholder: "请输入${title}",
246
246
  defaultValue: "",
@@ -249,16 +249,16 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
249
249
  {
250
250
  title: "参数默认值",
251
251
  key: "paramValue",
252
- type: i.input,
252
+ type: n.input,
253
253
  width: "200px",
254
254
  placeholder: "请输入${title}",
255
255
  defaultValue: ""
256
256
  }
257
- ], Be = [
257
+ ], Re = [
258
258
  {
259
259
  title: "字段名字",
260
260
  key: "fieldName",
261
- type: i.input,
261
+ type: n.input,
262
262
  minWidth: "150px",
263
263
  placeholder: "请输入${title}",
264
264
  defaultValue: "",
@@ -267,12 +267,19 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
267
267
  {
268
268
  title: "字段文本",
269
269
  key: "fieldTxt",
270
- type: i.input,
270
+ type: n.input,
271
271
  minWidth: "150px",
272
272
  placeholder: "请输入${title}",
273
273
  defaultValue: "",
274
274
  validateRules: [{ required: !0, message: "${title}不能为空" }]
275
275
  },
276
+ {
277
+ title: "字段宽度",
278
+ key: "fieldWidth",
279
+ type: n.input,
280
+ minWidth: "100px",
281
+ defaultValue: ""
282
+ },
276
283
  {
277
284
  title: "字段类型",
278
285
  key: "fieldType",
@@ -280,7 +287,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
280
287
  placeholder: "请输入${title}",
281
288
  defaultValue: "",
282
289
  validateRules: [{ required: !0, message: "${title}不能为空" }],
283
- type: i.select,
290
+ type: n.select,
284
291
  options: [
285
292
  { title: "数值类型", value: "Integer" },
286
293
  { title: "字符类型", value: "String" },
@@ -295,14 +302,14 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
295
302
  key: "isShow",
296
303
  minWidth: "80px",
297
304
  align: "center",
298
- type: i.checkbox,
305
+ type: n.checkbox,
299
306
  customValue: [1, 0],
300
307
  defaultChecked: !0
301
308
  },
302
309
  {
303
310
  title: "字段href",
304
311
  key: "fieldHref",
305
- type: i.input,
312
+ type: n.input,
306
313
  minWidth: "150px",
307
314
  placeholder: "请输入${title}",
308
315
  defaultValue: ""
@@ -310,7 +317,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
310
317
  {
311
318
  title: "查询模式",
312
319
  key: "searchMode",
313
- type: i.select,
320
+ type: n.select,
314
321
  minWidth: "150px",
315
322
  placeholder: "请选择${title}",
316
323
  options: [
@@ -321,7 +328,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
321
328
  {
322
329
  title: "取值表达式",
323
330
  key: "replaceVal",
324
- type: i.input,
331
+ type: n.input,
325
332
  minWidth: "150px",
326
333
  placeholder: "请输入${title}",
327
334
  defaultValue: ""
@@ -329,7 +336,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
329
336
  {
330
337
  title: "字典code",
331
338
  key: "dictCode",
332
- type: i.input,
339
+ type: n.input,
333
340
  minWidth: "150px",
334
341
  placeholder: "请输入${title}",
335
342
  defaultValue: ""
@@ -337,7 +344,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
337
344
  {
338
345
  title: "分组标题",
339
346
  key: "groupTitle",
340
- type: i.input,
347
+ type: n.input,
341
348
  minWidth: "150px",
342
349
  placeholder: "请输入${title}",
343
350
  defaultValue: ""
@@ -345,7 +352,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
345
352
  {
346
353
  title: "是否查询",
347
354
  key: "isSearch",
348
- type: i.checkbox,
355
+ type: n.checkbox,
349
356
  customValue: ["1", "0"],
350
357
  minWidth: "80px",
351
358
  align: "center",
@@ -355,141 +362,141 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
355
362
  title: "是否合计",
356
363
  align: "center",
357
364
  key: "isTotal",
358
- type: i.checkbox,
365
+ type: n.checkbox,
359
366
  customValue: ["1", "0"],
360
367
  minWidth: "80px",
361
368
  defaultChecked: !1
362
369
  }
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({
370
+ ], De = { style: { flex: "1", "text-align": "left" } }, Me = /* @__PURE__ */ fe({
364
371
  __name: "CgreportModal",
365
372
  emits: ["register", "success"],
366
- setup(t, { emit: o }) {
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({
373
+ setup(t, { emit: l }) {
374
+ const { createMessage: r } = K(), _ = l, m = P(!0), g = P(!0), S = P(["onlCgreportItem", "onlCgreportParam"]), c = P("onlCgreportItem"), d = P(), C = P(), j = { onlCgreportItem: C, onlCgreportParam: d }, k = U({
368
375
  loading: !1,
369
376
  dataSource: [],
370
- columns: Me
371
- }), I = K({
377
+ columns: Fe
378
+ }), I = U({
372
379
  loading: !1,
373
380
  dataSource: [],
374
- columns: Be
375
- }), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate: Qe, validateFields: G }] = Se({
381
+ columns: Re
382
+ }), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate: Be, validateFields: G }] = xe({
376
383
  // labelWidth: 150,
377
- schemas: De,
384
+ schemas: Ne,
378
385
  showActionButtonGroup: !1,
379
386
  // update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
380
387
  labelWidth: 100,
381
388
  wrapperCol: null
382
389
  // update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
383
- }), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
384
- var r, a;
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(
390
+ }), [X, { setModalProps: V, closeModal: Y }] = be((e) => q(this, null, function* () {
391
+ var o, a;
392
+ yield re(), V({ 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(D({}, e.record)), B(Ie, { headId: (o = e == null ? void 0 : e.record) == null ? void 0 : o.id }, k), B(Pe, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), H({ disabled: !(e != null && e.showFooter) });
393
+ })), [ee, te, B, le] = Se(
387
394
  ne,
388
395
  ae,
389
- V,
390
- h,
391
- f
392
- ), le = ge(() => b(m) ? "编辑" : "新增");
396
+ j,
397
+ c,
398
+ S
399
+ ), oe = ge(() => h(m) ? "编辑" : "新增");
393
400
  function re() {
394
- return R(this, null, function* () {
395
- yield E(), h.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
401
+ return q(this, null, function* () {
402
+ yield E(), c.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
396
403
  });
397
404
  }
398
405
  function ae(e) {
399
- let r = Object.assign({}, e.formValue);
400
- return U(B({}, r), {
406
+ let o = Object.assign({}, e.formValue);
407
+ return J(D({}, o), {
401
408
  // 展开
402
409
  onlCgreportParamList: e.tablesValue[1].tableData,
403
410
  onlCgreportItemList: e.tablesValue[0].tableData
404
411
  });
405
412
  }
406
413
  function ne(e) {
407
- return R(this, null, function* () {
414
+ return q(this, null, function* () {
408
415
  try {
409
- L({ confirmLoading: !0 });
410
- let r = [], a = [], s = {};
411
- Object.keys(e).map((n) => {
412
- n == "onlCgreportItemList" ? a = e[n] : n == "onlCgreportParamList" ? r = e[n] : s[n] = e[n];
413
- }), yield Le({ head: s, params: r, items: a }, m.value), Y(), o("success");
416
+ V({ confirmLoading: !0 });
417
+ let o = [], a = [], s = {};
418
+ Object.keys(e).map((i) => {
419
+ i == "onlCgreportItemList" ? a = e[i] : i == "onlCgreportParamList" ? o = e[i] : s[i] = e[i];
420
+ }), yield Te({ head: s, params: o, items: a }, m.value), Y(), _("success");
414
421
  } finally {
415
- L({ confirmLoading: !1 });
422
+ V({ confirmLoading: !1 });
416
423
  }
417
424
  });
418
425
  }
419
426
  function ie() {
420
- L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
421
- let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
422
- a && (s += "&dbKey=" + a), qe(s).then((u) => {
427
+ V({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
428
+ let { cgrSql: o, dbSource: a } = e, s = "sql=" + encodeURIComponent(o);
429
+ a && (s += "&dbKey=" + a), Le(s).then((u) => {
423
430
  if (u) {
424
- l.success("解析成功");
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;
431
+ r.success("解析成功");
432
+ let { fields: i, params: p } = u, f = i.filter(($) => $.fieldName != "__row_number__"), N = C.value.getTableData(), L = O(N, f || [], "fieldName");
433
+ L = L.sort(($, R) => $.orderNum - R.orderNum), I.dataSource = L;
434
+ let se = d.value.getTableData(), F = O(se, p || [], "paramName");
435
+ F = F.sort(($, R) => $.orderNum - R.orderNum), k.dataSource = F;
429
436
  }
430
437
  });
431
438
  }).catch(() => {
432
439
  }).finally(() => {
433
- L({ confirmLoading: !1 });
440
+ V({ confirmLoading: !1 });
434
441
  });
435
442
  }
436
- function z(e, r, a) {
443
+ function O(e, o, a) {
437
444
  if (e.length > 0) {
438
- let s = [], u = [], n = 1;
439
- for (let p of r)
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);
445
+ let s = [], u = [], i = 1;
446
+ for (let p of o)
447
+ for (let f of e)
448
+ if (f[a] == p[a]) {
449
+ s.push(f), u.push(p[a]), f.orderNum > i && (i = f.orderNum);
443
450
  break;
444
451
  }
445
- for (let p of r)
446
- u.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
452
+ for (let p of o)
453
+ u.indexOf(p[a]) < 0 && (p.orderNum = ++i, s.push(p));
447
454
  return s;
448
455
  } else {
449
456
  let s = 0;
450
- for (let u of r)
457
+ for (let u of o)
451
458
  u.orderNum || (u.orderNum = ++s);
452
- return r;
459
+ return o;
453
460
  }
454
461
  }
455
- return (e, r) => {
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),
459
- title: le.value,
462
+ return (e, o) => {
463
+ const a = v("a-icon"), s = v("a-popover"), u = v("a-button"), i = v("a-divider"), p = v("JVxeTable"), f = v("a-tab-pane"), N = v("a-tabs");
464
+ return M(), W(h(ye), he(e.$attrs, {
465
+ onRegister: h(X),
466
+ title: oe.value,
460
467
  width: 1200,
461
468
  maskClosable: !1,
462
469
  defaultFullscreen: !0,
463
- confirmLoading: v.value,
464
- onOk: b(te)
470
+ confirmLoading: g.value,
471
+ onOk: h(te)
465
472
  }), {
466
- default: _(() => [
467
- y(b(Ce), {
468
- onRegister: b(Q),
473
+ default: b(() => [
474
+ y(h(_e), {
475
+ onRegister: h(Q),
469
476
  ref_key: "formRef",
470
- ref: oe
477
+ ref: le
471
478
  }, {
472
- analyseButton: _(() => [
473
- C("div", Fe, [
479
+ analyseButton: b(() => [
480
+ w("div", De, [
474
481
  y(s, {
475
482
  title: "使用指南",
476
483
  trigger: "hover",
477
484
  style: { margin: "0 10px 0 6px" }
478
485
  }, {
479
- content: _(() => [
480
- P(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
481
- Oe,
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
491
- ]),
492
- default: _(() => [
486
+ content: b(() => o[1] || (o[1] = [
487
+ T(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
488
+ w("br", null, null, -1),
489
+ T(" select * from table where id = ${abc}。"),
490
+ w("br", null, null, -1),
491
+ T(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
492
+ w("br", null, null, -1),
493
+ T(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
494
+ w("br", null, null, -1),
495
+ T(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
496
+ w("br", null, null, -1),
497
+ w("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1)
498
+ ])),
499
+ default: b(() => [
493
500
  y(a, { type: "question-circle" })
494
501
  ]),
495
502
  _: 1
@@ -499,67 +506,73 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
499
506
  type: "primary",
500
507
  onClick: ie
501
508
  }, {
502
- default: _(() => [
503
- P("SQL解析")
504
- ]),
509
+ default: b(() => o[2] || (o[2] = [
510
+ T("SQL解析")
511
+ ])),
505
512
  _: 1
506
513
  })
507
514
  ])
508
515
  ]),
509
516
  _: 1
510
517
  }, 8, ["onRegister"]),
511
- y(n, {
518
+ y(i, {
512
519
  style: { margin: "1px 0" },
513
520
  class: "cust-divider"
514
521
  }),
515
522
  y(N, {
516
- activeKey: h.value,
517
- "onUpdate:activeKey": r[0] || (r[0] = ($) => h.value = $),
523
+ activeKey: c.value,
524
+ "onUpdate:activeKey": o[0] || (o[0] = (L) => c.value = L),
518
525
  animated: "",
519
- onChange: b(ee)
526
+ onChange: h(ee)
520
527
  }, {
521
- default: _(() => [
522
- (F(), O(g, {
528
+ default: b(() => [
529
+ (M(), W(f, {
523
530
  tab: "动态报表配置明细",
524
- key: f.value[0],
531
+ key: S.value[0],
525
532
  forceRender: !0
526
533
  }, {
527
- default: _(() => [
534
+ default: b(() => [
528
535
  y(p, {
529
536
  "keep-source": "",
530
537
  dragSort: "",
531
538
  resizable: "",
532
539
  ref_key: "onlCgreportItem",
533
- ref: d,
540
+ ref: C,
534
541
  loading: I.loading,
535
542
  columns: I.columns,
536
543
  dataSource: I.dataSource,
537
544
  height: 390,
538
545
  rowNumber: !0,
539
546
  rowSelection: !0,
547
+ dragSortFixed: "none",
548
+ rowNumberFixed: "none",
549
+ rowSelectionFixed: "none",
540
550
  toolbar: !0
541
551
  }, null, 8, ["loading", "columns", "dataSource"])
542
552
  ]),
543
553
  _: 1
544
554
  })),
545
- (F(), O(g, {
555
+ (M(), W(f, {
546
556
  tab: "报表参数",
547
- key: f.value[1],
557
+ key: S.value[1],
548
558
  forceRender: !0
549
559
  }, {
550
- default: _(() => [
560
+ default: b(() => [
551
561
  y(p, {
552
562
  "keep-source": "",
553
563
  resizable: "",
554
564
  dragSort: "",
555
565
  ref_key: "onlCgreportParam",
556
- ref: c,
566
+ ref: d,
557
567
  loading: k.loading,
558
568
  columns: k.columns,
559
569
  dataSource: k.dataSource,
560
570
  height: 390,
561
571
  rowNumber: !0,
562
572
  rowSelection: !0,
573
+ dragSortFixed: "none",
574
+ rowNumberFixed: "none",
575
+ rowSelectionFixed: "none",
563
576
  toolbar: !0
564
577
  }, null, 8, ["loading", "columns", "dataSource"])
565
578
  ]),
@@ -574,17 +587,17 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
574
587
  };
575
588
  }
576
589
  });
577
- const je = /* @__PURE__ */ we(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
+ const We = /* @__PURE__ */ we(Me, [["__scopeId", "data-v-e89d83a0"]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
578
591
  __proto__: null,
579
- default: je
592
+ default: We
580
593
  }, Symbol.toStringTag, { value: "Module" }));
581
594
  export {
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
595
+ We as C,
596
+ ot as a,
597
+ Ye as b,
598
+ tt as c,
599
+ Xe as d,
600
+ et as g,
601
+ Ge as l,
602
+ lt as s
590
603
  };