@jeecg/online 3.7.0-beta → 3.7.4-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 (150) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
  13. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
  14. package/AuthFieldConfig-f1e224cc.mjs +245 -0
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
  17. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/CgformModal-c4a4e0c2.mjs +667 -0
  23. package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
  24. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/CodeFileViewModal-405e2b58.mjs +253 -0
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
  30. package/DbToOnlineModal-f28ff0a3.mjs +168 -0
  31. package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
  36. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.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-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
  46. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
  66. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
  67. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
  73. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
  80. package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.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-53df4c33.mjs +41 -0
  92. package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
  113. package/useTableSync-075826a1.mjs +89 -0
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-fe3988fb.mjs +0 -84
  116. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  117. package/AuthButtonTree-589395ed.mjs +0 -156
  118. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  119. package/AuthFieldTree-b7cd091e.mjs +0 -232
  120. package/CgformCopyList-8077ccc6.mjs +0 -250
  121. package/CgformModal-36faf29a.mjs +0 -621
  122. package/CodeFileListModal-0e26b7e0.mjs +0 -158
  123. package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
  124. package/CodeGeneratorModal-b722d976.mjs +0 -238
  125. package/CustomButtonList-37639061.mjs +0 -381
  126. package/DbToOnlineModal-f49b9530.mjs +0 -166
  127. package/JModalTip-4a83aaed.mjs +0 -49
  128. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  129. package/LeftRole-7d8c5acc.mjs +0 -86
  130. package/OnlCgformErpList-30e416c8.mjs +0 -470
  131. package/OnlCgformErpSubTable-9a876058.mjs +0 -427
  132. package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
  133. package/OnlCgformTabList-7a2f2c03.mjs +0 -408
  134. package/OnlineAutoList-46c6c8b9.mjs +0 -493
  135. package/OnlineAutoModal-971bef13.mjs +0 -236
  136. package/OnlineAutoTreeList-3b92454c.mjs +0 -502
  137. package/OnlineCustomModal-594244f3.mjs +0 -232
  138. package/OnlineForm-018981b2.mjs +0 -924
  139. package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
  140. package/OnlineQueryForm-998c12a4.mjs +0 -444
  141. package/OnlineTabForm-9ad7d29a.mjs +0 -805
  142. package/SetSwitchOptions-a452fa0f.mjs +0 -62
  143. package/SuperQuery-cbfba908.mjs +0 -975
  144. package/auth.api-d3a6c4b3.mjs +0 -39
  145. package/index-173949bb.mjs +0 -57
  146. package/useCgformList-8755a94e.mjs +0 -426
  147. package/useExtendComponent-bb7cca20.mjs +0 -4295
  148. package/useListButton-7ddb9a46.mjs +0 -697
  149. package/useTableSync-f6089e8a.mjs +0 -87
  150. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_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 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
- 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 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(() => {
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-9e1e1e53.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 = we(), 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,13 +287,14 @@ 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" },
287
294
  { title: "日期类型", value: "Date" },
288
295
  { title: "时间类型", value: "Datetime" },
289
- { title: "长整型", value: "Long" }
296
+ { title: "长整型", value: "Long" },
297
+ { title: "图片类型", value: "Image" }
290
298
  ]
291
299
  },
292
300
  {
@@ -294,14 +302,14 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
294
302
  key: "isShow",
295
303
  minWidth: "80px",
296
304
  align: "center",
297
- type: i.checkbox,
305
+ type: n.checkbox,
298
306
  customValue: [1, 0],
299
307
  defaultChecked: !0
300
308
  },
301
309
  {
302
310
  title: "字段href",
303
311
  key: "fieldHref",
304
- type: i.input,
312
+ type: n.input,
305
313
  minWidth: "150px",
306
314
  placeholder: "请输入${title}",
307
315
  defaultValue: ""
@@ -309,7 +317,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
309
317
  {
310
318
  title: "查询模式",
311
319
  key: "searchMode",
312
- type: i.select,
320
+ type: n.select,
313
321
  minWidth: "150px",
314
322
  placeholder: "请选择${title}",
315
323
  options: [
@@ -320,7 +328,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
320
328
  {
321
329
  title: "取值表达式",
322
330
  key: "replaceVal",
323
- type: i.input,
331
+ type: n.input,
324
332
  minWidth: "150px",
325
333
  placeholder: "请输入${title}",
326
334
  defaultValue: ""
@@ -328,7 +336,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
328
336
  {
329
337
  title: "字典code",
330
338
  key: "dictCode",
331
- type: i.input,
339
+ type: n.input,
332
340
  minWidth: "150px",
333
341
  placeholder: "请输入${title}",
334
342
  defaultValue: ""
@@ -336,7 +344,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
336
344
  {
337
345
  title: "分组标题",
338
346
  key: "groupTitle",
339
- type: i.input,
347
+ type: n.input,
340
348
  minWidth: "150px",
341
349
  placeholder: "请输入${title}",
342
350
  defaultValue: ""
@@ -344,7 +352,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
344
352
  {
345
353
  title: "是否查询",
346
354
  key: "isSearch",
347
- type: i.checkbox,
355
+ type: n.checkbox,
348
356
  customValue: ["1", "0"],
349
357
  minWidth: "80px",
350
358
  align: "center",
@@ -354,141 +362,141 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
354
362
  title: "是否合计",
355
363
  align: "center",
356
364
  key: "isTotal",
357
- type: i.checkbox,
365
+ type: n.checkbox,
358
366
  customValue: ["1", "0"],
359
367
  minWidth: "80px",
360
368
  defaultChecked: !1
361
369
  }
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({
370
+ ], De = { style: { flex: "1", "text-align": "left" } }, Me = /* @__PURE__ */ fe({
363
371
  __name: "CgreportModal",
364
372
  emits: ["register", "success"],
365
- setup(t, { emit: o }) {
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({
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({
367
375
  loading: !1,
368
376
  dataSource: [],
369
- columns: Me
370
- }), w = K({
377
+ columns: Fe
378
+ }), I = U({
371
379
  loading: !1,
372
380
  dataSource: [],
373
- columns: Be
374
- }), [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({
375
383
  // labelWidth: 150,
376
- schemas: De,
384
+ schemas: Ne,
377
385
  showActionButtonGroup: !1,
378
386
  // update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
379
387
  labelWidth: 100,
380
388
  wrapperCol: null
381
389
  // update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
382
- }), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
383
- var r, a;
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(
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(
386
394
  ne,
387
395
  ae,
388
- V,
389
- h,
390
- f
391
- ), le = ge(() => b(m) ? "编辑" : "新增");
396
+ j,
397
+ c,
398
+ S
399
+ ), oe = ge(() => h(m) ? "编辑" : "新增");
392
400
  function re() {
393
- return R(this, null, function* () {
394
- yield E(), h.value = "onlCgreportItem", k.dataSource = [], w.dataSource = [];
401
+ return q(this, null, function* () {
402
+ yield E(), c.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
395
403
  });
396
404
  }
397
405
  function ae(e) {
398
- let r = Object.assign({}, e.formValue);
399
- return U(B({}, r), {
406
+ let o = Object.assign({}, e.formValue);
407
+ return J(D({}, o), {
400
408
  // 展开
401
409
  onlCgreportParamList: e.tablesValue[1].tableData,
402
410
  onlCgreportItemList: e.tablesValue[0].tableData
403
411
  });
404
412
  }
405
413
  function ne(e) {
406
- return R(this, null, function* () {
414
+ return q(this, null, function* () {
407
415
  try {
408
- L({ confirmLoading: !0 });
409
- let r = [], a = [], s = {};
410
- Object.keys(e).map((n) => {
411
- n == "onlCgreportItemList" ? a = e[n] : n == "onlCgreportParamList" ? r = e[n] : s[n] = e[n];
412
- }), 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");
413
421
  } finally {
414
- L({ confirmLoading: !1 });
422
+ V({ confirmLoading: !1 });
415
423
  }
416
424
  });
417
425
  }
418
426
  function ie() {
419
- L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
420
- let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
421
- 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) => {
422
430
  if (u) {
423
- l.success("解析成功");
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;
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;
428
436
  }
429
437
  });
430
438
  }).catch(() => {
431
439
  }).finally(() => {
432
- L({ confirmLoading: !1 });
440
+ V({ confirmLoading: !1 });
433
441
  });
434
442
  }
435
- function z(e, r, a) {
443
+ function O(e, o, a) {
436
444
  if (e.length > 0) {
437
- let s = [], u = [], n = 1;
438
- for (let p of r)
439
- for (let g of e)
440
- if (g[a] == p[a]) {
441
- 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);
442
450
  break;
443
451
  }
444
- for (let p of r)
445
- 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));
446
454
  return s;
447
455
  } else {
448
456
  let s = 0;
449
- for (let u of r)
457
+ for (let u of o)
450
458
  u.orderNum || (u.orderNum = ++s);
451
- return r;
459
+ return o;
452
460
  }
453
461
  }
454
- return (e, r) => {
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,
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,
459
467
  width: 1200,
460
468
  maskClosable: !1,
461
469
  defaultFullscreen: !0,
462
- confirmLoading: v.value,
463
- onOk: b(te)
470
+ confirmLoading: g.value,
471
+ onOk: h(te)
464
472
  }), {
465
- default: _(() => [
466
- y(b(Ce), {
467
- onRegister: b(Q),
473
+ default: b(() => [
474
+ y(h(_e), {
475
+ onRegister: h(Q),
468
476
  ref_key: "formRef",
469
- ref: oe
477
+ ref: le
470
478
  }, {
471
- analyseButton: _(() => [
472
- C("div", Fe, [
479
+ analyseButton: b(() => [
480
+ w("div", De, [
473
481
  y(s, {
474
482
  title: "使用指南",
475
483
  trigger: "hover",
476
484
  style: { margin: "0 10px 0 6px" }
477
485
  }, {
478
- content: _(() => [
479
- P(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
480
- Oe,
481
- P(" select * from table where id = ${abc}。"),
482
- We,
483
- P(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
484
- ze,
485
- P(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
486
- Ae,
487
- P(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
488
- Je,
489
- Ue
490
- ]),
491
- 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(() => [
492
500
  y(a, { type: "question-circle" })
493
501
  ]),
494
502
  _: 1
@@ -498,67 +506,73 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
498
506
  type: "primary",
499
507
  onClick: ie
500
508
  }, {
501
- default: _(() => [
502
- P("SQL解析")
503
- ]),
509
+ default: b(() => o[2] || (o[2] = [
510
+ T("SQL解析")
511
+ ])),
504
512
  _: 1
505
513
  })
506
514
  ])
507
515
  ]),
508
516
  _: 1
509
517
  }, 8, ["onRegister"]),
510
- y(n, {
518
+ y(i, {
511
519
  style: { margin: "1px 0" },
512
520
  class: "cust-divider"
513
521
  }),
514
522
  y(N, {
515
- activeKey: h.value,
516
- "onUpdate:activeKey": r[0] || (r[0] = ($) => h.value = $),
523
+ activeKey: c.value,
524
+ "onUpdate:activeKey": o[0] || (o[0] = (L) => c.value = L),
517
525
  animated: "",
518
- onChange: b(ee)
526
+ onChange: h(ee)
519
527
  }, {
520
- default: _(() => [
521
- (F(), O(g, {
528
+ default: b(() => [
529
+ (M(), W(f, {
522
530
  tab: "动态报表配置明细",
523
- key: f.value[0],
531
+ key: S.value[0],
524
532
  forceRender: !0
525
533
  }, {
526
- default: _(() => [
534
+ default: b(() => [
527
535
  y(p, {
528
536
  "keep-source": "",
529
537
  dragSort: "",
530
538
  resizable: "",
531
539
  ref_key: "onlCgreportItem",
532
- ref: d,
533
- loading: w.loading,
534
- columns: w.columns,
535
- dataSource: w.dataSource,
540
+ ref: C,
541
+ loading: I.loading,
542
+ columns: I.columns,
543
+ dataSource: I.dataSource,
536
544
  height: 390,
537
545
  rowNumber: !0,
538
546
  rowSelection: !0,
547
+ dragSortFixed: "none",
548
+ rowNumberFixed: "none",
549
+ rowSelectionFixed: "none",
539
550
  toolbar: !0
540
551
  }, null, 8, ["loading", "columns", "dataSource"])
541
552
  ]),
542
553
  _: 1
543
554
  })),
544
- (F(), O(g, {
555
+ (M(), W(f, {
545
556
  tab: "报表参数",
546
- key: f.value[1],
557
+ key: S.value[1],
547
558
  forceRender: !0
548
559
  }, {
549
- default: _(() => [
560
+ default: b(() => [
550
561
  y(p, {
551
562
  "keep-source": "",
552
563
  resizable: "",
553
564
  dragSort: "",
554
565
  ref_key: "onlCgreportParam",
555
- ref: c,
566
+ ref: d,
556
567
  loading: k.loading,
557
568
  columns: k.columns,
558
569
  dataSource: k.dataSource,
559
570
  height: 390,
560
571
  rowNumber: !0,
561
572
  rowSelection: !0,
573
+ dragSortFixed: "none",
574
+ rowNumberFixed: "none",
575
+ rowSelectionFixed: "none",
562
576
  toolbar: !0
563
577
  }, null, 8, ["loading", "columns", "dataSource"])
564
578
  ]),
@@ -573,17 +587,17 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
573
587
  };
574
588
  }
575
589
  });
576
- const je = /* @__PURE__ */ Ie(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({
577
591
  __proto__: null,
578
- default: je
592
+ default: We
579
593
  }, Symbol.toStringTag, { value: "Module" }));
580
594
  export {
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
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
589
603
  };