@jeecg/online 3.7.0-beta → 3.7.1-RC

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -1,15 +1,15 @@
1
- var Pe = Object.defineProperty, Te = Object.defineProperties;
2
- var Oe = Object.getOwnPropertyDescriptors;
1
+ var Pe = Object.defineProperty, Oe = Object.defineProperties;
2
+ var Te = Object.getOwnPropertyDescriptors;
3
3
  var ge = Object.getOwnPropertySymbols;
4
4
  var Re = Object.prototype.hasOwnProperty, ke = Object.prototype.propertyIsEnumerable;
5
- var he = (a, c, o) => c in a ? Pe(a, c, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[c] = o, T = (a, c) => {
5
+ var he = (a, c, o) => c in a ? Pe(a, c, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[c] = o, O = (a, c) => {
6
6
  for (var o in c || (c = {}))
7
7
  Re.call(c, o) && he(a, o, c[o]);
8
8
  if (ge)
9
9
  for (var o of ge(c))
10
10
  ke.call(c, o) && he(a, o, c[o]);
11
11
  return a;
12
- }, X = (a, c) => Te(a, Oe(c));
12
+ }, X = (a, c) => Oe(a, Te(c));
13
13
  var _ = (a, c, o) => new Promise((R, w) => {
14
14
  var v = (m) => {
15
15
  try {
@@ -26,25 +26,25 @@ var _ = (a, c, o) => new Promise((R, w) => {
26
26
  }, y = (m) => m.done ? R(m.value) : Promise.resolve(m.value).then(v, f);
27
27
  y((o = o.apply(a, c)).next());
28
28
  });
29
- import { E as G, r as Fe } from "./useExtendComponent-bb7cca20.mjs";
29
+ import { E as G, r as Fe } from "./useExtendComponent-dcae5c78.mjs";
30
30
  import { useRoute as Me } from "vue-router";
31
31
  import { router as ye } from "/@/router";
32
32
  import { ref as b, provide as Ie, onBeforeUnmount as Be, toRaw as I, nextTick as be, reactive as de } from "vue";
33
- import { defHttp as O } from "/@/utils/http/axios";
33
+ import { defHttp as T } from "/@/utils/http/axios";
34
34
  import { useMessage as ve } from "/@/hooks/web/useMessage";
35
35
  import { filterObj as De } from "/@/utils/common/compUtils";
36
36
  import { u as Ne, G as $e } from "./useCustomHook-acb00837.mjs";
37
37
  import { onMountedOrActivated as Ue } from "/@/hooks/core/onMountedOrActivated";
38
38
  import { useModal as V } from "/@/components/Modal";
39
- import { E as W, b as Ce } from "./constant-fa63bd66.mjs";
40
- import { useMultipleTabStore as _e } from "/@/store/modules/multipleTab";
41
- import { u as Qe } from "./cgformState-d9f8ec42.mjs";
42
- import { pick as Ve } from "lodash-es";
43
- import { Modal as Ke } from "ant-design-vue";
44
- import { useMethods as je } from "/@/hooks/system/useMethods";
45
- import { getToken as Le } from "/@/utils/auth";
46
- import { goJmReportViewPage as ze } from "/@/utils";
47
- const He = {
39
+ import { E as W } from "./constant-fa63bd66.mjs";
40
+ import { useMultipleTabStore as Ce } from "/@/store/modules/multipleTab";
41
+ import { u as _e } from "./cgformState-d9f8ec42.mjs";
42
+ import { pick as Qe } from "lodash-es";
43
+ import { Modal as Ve } from "ant-design-vue";
44
+ import { useMethods as Ke } from "/@/hooks/system/useMethods";
45
+ import { getToken as je } from "/@/utils/auth";
46
+ import { goJmReportViewPage as Le } from "/@/utils";
47
+ const ze = {
48
48
  acceptHrefParams: "<p> 跳转时获取的参数信息",
49
49
  currentPage: "<p> 当前页数",
50
50
  currentTableName: "<p> 当前表名",
@@ -68,7 +68,7 @@ const He = {
68
68
  innerSubTableName: "<p> 内嵌一对多子表名",
69
69
  mTableSelectedRcordId: "<p>内嵌主表展开行的id",
70
70
  innerSubTableFk: "<p>内嵌子表的外键字段"
71
- }, Je = {
71
+ }, He = {
72
72
  getColumns: "/online/cgform/api/getColumns/",
73
73
  getQueryInfo: "/online/cgform/api/getQueryInfo/",
74
74
  getData: "/online/cgform/api/getData/",
@@ -82,7 +82,7 @@ const He = {
82
82
  // 内嵌主题一对多子表数据请求接口
83
83
  list: "/online/cgform/api/subform/list/"
84
84
  };
85
- let Ae = {
85
+ let Je = {
86
86
  sortField: "id",
87
87
  sortType: "asc",
88
88
  currentPage: 1,
@@ -107,12 +107,12 @@ const Se = {
107
107
  showQuickJumper: !0,
108
108
  showSizeChanger: !0,
109
109
  total: 0
110
- }, { createMessage: Q, createErrorModal: qe } = ve();
111
- function dt(a = {}) {
110
+ }, { createMessage: Q, createErrorModal: Ae } = ve();
111
+ function pt(a = {}) {
112
112
  var N;
113
113
  const c = (N = a.code) != null ? N : "", o = b(c);
114
114
  Ie("tableId", o);
115
- const R = Me(), w = b(), v = b(), f = b(!1), y = b([]), m = b(!0), S = b(), K = Qe(), Y = _e();
115
+ const R = Me(), w = b(), v = b(), f = b(!1), y = b([]), m = b(!0), S = b(), K = _e(), Y = Ce();
116
116
  let p = {};
117
117
  const g = {
118
118
  execButtonEnhance: function(e, t) {
@@ -145,7 +145,7 @@ function dt(a = {}) {
145
145
  Z(i, t);
146
146
  }
147
147
  }
148
- const l = new Proxy(He, {
148
+ const l = new Proxy(ze, {
149
149
  get(e, t) {
150
150
  if (typeof g[t] == "function")
151
151
  return g[t];
@@ -174,7 +174,7 @@ function dt(a = {}) {
174
174
  function ee() {
175
175
  let e = p[o.value];
176
176
  if (!e) {
177
- let t = Object.assign({}, Ae, { onlineUrl: Je });
177
+ let t = Object.assign({}, Je, { onlineUrl: He });
178
178
  e = JSON.parse(JSON.stringify(t)), a.themeTemplate == W && (e.pageSize = 5), p[o.value] = e;
179
179
  }
180
180
  return e;
@@ -188,7 +188,7 @@ function dt(a = {}) {
188
188
  function L(e = "") {
189
189
  let t;
190
190
  return e == W ? t = `${l.onlineUrl.getErpColumns}${o.value}` : t = `${l.onlineUrl.getColumns}${o.value}`, new Promise((r, n) => {
191
- O.get(
191
+ T.get(
192
192
  {
193
193
  url: t
194
194
  },
@@ -208,8 +208,8 @@ function dt(a = {}) {
208
208
  d === $ && (f.value.current = Math.ceil((u - t) / h));
209
209
  }
210
210
  let i = z(), s = `${l.onlineUrl.getData}${o.value}`;
211
- l.isTree() === !0 ? s = `${l.onlineUrl.getTreeData}${o.value}` : l.isInnerSubTable === !0 && (s = `${l.onlineUrl.getData}${l.innerSubTableId}`, i = { pageSize: -521 }, l.innerSubTableFk && l.mTableSelectedRcordId && (i[l.innerSubTableFk] = l.mTableSelectedRcordId)), l.isErpSubTable === !0 && (i[l.foreignKeyField] = l.foreignKeyValue, i.tabletype = 3, delete i.hasQuery), O.get({ url: s, params: i }, { isTransformResponse: !1 }).then((u) => {
212
- u.success ? (H(u.result), r(!0)) : (u.message === "NO_DB_SYNC" ? qe({
211
+ l.isTree() === !0 ? s = `${l.onlineUrl.getTreeData}${o.value}` : l.isInnerSubTable === !0 && (s = `${l.onlineUrl.getData}${l.innerSubTableId}`, i = { pageSize: -521 }, l.innerSubTableFk && l.mTableSelectedRcordId && (i[l.innerSubTableFk] = l.mTableSelectedRcordId)), l.isErpSubTable === !0 && (i[l.foreignKeyField] = l.foreignKeyValue, i.tabletype = 3, delete i.hasQuery), T.get({ url: s, params: i }, { isTransformResponse: !1 }).then((u) => {
212
+ u.success ? (H(u.result), r(!0)) : (u.message === "NO_DB_SYNC" ? Ae({
213
213
  title: "数据库未同步",
214
214
  content: "请先同步数据库再查看此页面!",
215
215
  // 点击确定后自动返回上一页
@@ -234,7 +234,7 @@ function dt(a = {}) {
234
234
  let t = 0;
235
235
  Number(e.total) > 0 ? (l.isTree() === !0 ? (y.value = F(e.records), be(() => {
236
236
  J(y.value);
237
- })) : y.value = e.records, t = Number(e.total)) : y.value = [], f.value && (f.value = X(T({}, f.value), { total: t }));
237
+ })) : y.value = e.records, t = Number(e.total)) : y.value = [], f.value && (f.value = X(O({}, f.value), { total: t }));
238
238
  }
239
239
  function te(e, t, r) {
240
240
  r && r.order ? (l.sortField = r.field, l.sortType = r.order == "ascend" ? "asc" : "desc") : (l.sortField = "id", l.sortType = "asc"), f.value && (f.value = e), k();
@@ -244,7 +244,7 @@ function dt(a = {}) {
244
244
  let { acceptHrefParams: t, queryParam: r, superQuery: n, currentPage: i, pageSize: s } = l;
245
245
  if (j(), r ? w.value && w.value.initDefaultValues(r, t) : l.queryParam = {}, n ? v.value && v.value.initDefaultValues(n) : l.superQuery = { params: "", matchType: "" }, e.paginationFlag == "Y") {
246
246
  let u = Se.pageSizeOptions;
247
- a.themeTemplate == W && (u = ["5", "10", "30"]), f.value = X(T({}, Se), { current: i, pageSize: s, pageSizeOptions: u });
247
+ a.themeTemplate == W && (u = ["5", "10", "30"]), f.value = X(O({}, Se), { current: i, pageSize: s, pageSizeOptions: u });
248
248
  } else
249
249
  f.value = !1;
250
250
  }
@@ -264,7 +264,7 @@ function dt(a = {}) {
264
264
  let le = b(!1);
265
265
  function ne() {
266
266
  return _(this, arguments, function* (e = {}) {
267
- f.value && (f.value = X(T({}, f.value), { current: e.mode == "search" || !f.value.current ? 1 : f.value.current })), a.themeTemplate !== W && l.clearSelectedRow(), yield k();
267
+ f.value && (f.value = X(O({}, f.value), { current: e.mode == "search" || !f.value.current ? 1 : f.value.current })), a.themeTemplate !== W && l.clearSelectedRow(), yield k();
268
268
  });
269
269
  }
270
270
  function F(e) {
@@ -291,7 +291,7 @@ function dt(a = {}) {
291
291
  let u = Object.assign({});
292
292
  u.rule = "in", u.type = "text", u.val = t.join(","), u.field = i, u = [u], s.superQueryParams = encodeURI(JSON.stringify(u)), s.superQueryMatchType = "and", s.batchFlag = "true";
293
293
  let h = `${l.onlineUrl.getTreeData}${o.value}`;
294
- O.get({ url: h, params: s }, { isTransformResponse: !1 }).then((d) => {
294
+ T.get({ url: h, params: s }, { isTransformResponse: !1 }).then((d) => {
295
295
  if (d.success && d.result.records && d.result.records.length > 0) {
296
296
  let $ = d.result.records;
297
297
  const U = /* @__PURE__ */ new Map();
@@ -326,7 +326,7 @@ function dt(a = {}) {
326
326
  let n = r + "@", i = [];
327
327
  if (e.length > 0)
328
328
  for (let u of e) {
329
- let h = T({}, u), d = h.field;
329
+ let h = O({}, u), d = h.field;
330
330
  d.startsWith(n) && (h.field = d.replace(n, "")), i.push(h);
331
331
  }
332
332
  let s = i.length > 0 ? JSON.stringify(i) : "";
@@ -364,7 +364,7 @@ function dt(a = {}) {
364
364
  let t = e.head.extConfigJson;
365
365
  t && (S.value = JSON.parse(t));
366
366
  }
367
- return T({
367
+ return O({
368
368
  ID: o,
369
369
  onlineQueryFormOuter: w,
370
370
  superQueryButtonRef: v,
@@ -388,7 +388,7 @@ function dt(a = {}) {
388
388
  }, P);
389
389
  }
390
390
  const we = "onl_";
391
- function mt(a, c, o = {}) {
391
+ function dt(a, c, o = {}) {
392
392
  const R = {
393
393
  add: !0,
394
394
  addSub: !0,
@@ -404,7 +404,7 @@ function mt(a, c, o = {}) {
404
404
  function Z(e) {
405
405
  if (D.length = 0, l.length = 0, e && e.length > 0)
406
406
  for (let t = 0; t < e.length; t++) {
407
- let r = Ve(e[t], "buttonCode", "buttonName", "buttonStyle", "optType", "exp", "buttonIcon");
407
+ let r = Qe(e[t], "buttonCode", "buttonName", "buttonStyle", "optType", "exp", "buttonIcon");
408
408
  r.buttonStyle == "button" ? l.push(r) : r.buttonStyle == "link" && D.push(r);
409
409
  }
410
410
  }
@@ -484,7 +484,7 @@ function mt(a, c, o = {}) {
484
484
  if (I(g.detail) === !0 && r.push({
485
485
  label: "详情",
486
486
  onClick: le.bind(null, e)
487
- }), t.themeTemplate != Ce && a.hasBpmStatus === !0 && I(g.bpm) === !0) {
487
+ }), a.hasBpmStatus === !0 && I(g.bpm) === !0) {
488
488
  let u = P(e);
489
489
  !u || u == "1" ? r.push(H(e)) : r.push(te(e));
490
490
  }
@@ -493,8 +493,8 @@ function mt(a, c, o = {}) {
493
493
  u && h && r.push({
494
494
  label: "打印",
495
495
  onClick() {
496
- let d = h, $ = e.id, U = Le();
497
- ze(d, $, U);
496
+ let d = h, $ = e.id, U = je();
497
+ Le(d, $, U);
498
498
  }
499
499
  });
500
500
  }
@@ -539,7 +539,7 @@ function mt(a, c, o = {}) {
539
539
  }
540
540
  }, s = { isTransformResponse: !1 };
541
541
  return new Promise((u, h) => {
542
- O.post(i, s).then((d) => {
542
+ T.post(i, s).then((d) => {
543
543
  d.success ? (u(d), p.success(d.message)) : (h(), p.warning(d.message));
544
544
  });
545
545
  });
@@ -552,7 +552,7 @@ function mt(a, c, o = {}) {
552
552
  function M(e, t = !0) {
553
553
  let r = `${a.onlineUrl.optPre}${a.ID}/${e}`;
554
554
  return a.isErpSubTable === !0 && (r = `${r}?tabletype=3`), new Promise((n, i) => {
555
- O.delete(
555
+ T.delete(
556
556
  {
557
557
  url: r
558
558
  },
@@ -573,7 +573,7 @@ function mt(a, c, o = {}) {
573
573
  i && i.endsWith("_loadChild") && (i = i.replace("_loadChild", "")), t.indexOf(i) < 0 && t.push(i);
574
574
  });
575
575
  let r = t.join(",");
576
- Ke.confirm({
576
+ Ve.confirm({
577
577
  title: "确认删除",
578
578
  content: "是否删除选中数据",
579
579
  okText: "确认",
@@ -593,7 +593,7 @@ function mt(a, c, o = {}) {
593
593
  buttonCode: t,
594
594
  dataId: e.id
595
595
  }, i = `${a.onlineUrl.buttonAction}`;
596
- O.post(
596
+ T.post(
597
597
  {
598
598
  url: i,
599
599
  params: n
@@ -616,7 +616,7 @@ function mt(a, c, o = {}) {
616
616
  buttonCode: e,
617
617
  dataId: r
618
618
  }, i = `${a.onlineUrl.buttonAction}`;
619
- O.post(
619
+ T.post(
620
620
  {
621
621
  url: i,
622
622
  params: n
@@ -634,7 +634,7 @@ function mt(a, c, o = {}) {
634
634
  const ue = () => {
635
635
  let e = `${a.onlineUrl.importXls}${a.ID}`;
636
636
  return a.isErpSubTable === !0 && (e = `${e}?tabletype=3`), e;
637
- }, { handleExportXlsx: ce } = je();
637
+ }, { handleExportXlsx: ce } = Ke();
638
638
  function fe() {
639
639
  let e = a.getLoadDataParams(), t = a.selectedRowKeys;
640
640
  t && t.length > 0 && (e.selections = t.join(","));
@@ -642,7 +642,7 @@ function mt(a, c, o = {}) {
642
642
  a.isErpSubTable === !0 && (r = { tabletype: 3 }, a.foreignKeyField && a.foreignKeyValue && (e[a.foreignKeyField] = a.foreignKeyValue));
643
643
  let n = JSON.stringify(De(e)), i = `${a.onlineUrl.exportXls}${a.ID}`;
644
644
  const s = a.description;
645
- return ce(s, i, T({ paramsStr: n }, r));
645
+ return ce(s, i, O({ paramsStr: n }, r));
646
646
  }
647
647
  function A(e, t) {
648
648
  const r = [];
@@ -692,6 +692,6 @@ function mt(a, c, o = {}) {
692
692
  };
693
693
  }
694
694
  export {
695
- mt as a,
696
- dt as u
695
+ dt as a,
696
+ pt as u
697
697
  };
@@ -34,7 +34,7 @@ function F(d, n, t) {
34
34
  }
35
35
  },
36
36
  "three"
37
- ), o = [
37
+ ), l = [
38
38
  { label: "", field: "id", component: "Input", show: !1 },
39
39
  { label: "", field: "tableVersion", component: "Input", show: !1 },
40
40
  e({
@@ -43,8 +43,8 @@ function F(d, n, t) {
43
43
  component: "Input",
44
44
  required: !0,
45
45
  // 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
46
- dynamicDisabled: ({ model: l }) => l.tableVersion && l.tableVersion != 1,
47
- dynamicRules: ({ model: l, schema: a }) => [
46
+ dynamicDisabled: ({ model: o }) => o.tableVersion && o.tableVersion != 1,
47
+ dynamicRules: ({ model: o, schema: a }) => [
48
48
  {
49
49
  validator: (s, p) => new Promise((i, u) => {
50
50
  /[\u4E00-\u9FA5]/g.test(p) && u("不允许输入中文"), i();
@@ -57,7 +57,7 @@ function F(d, n, t) {
57
57
  })
58
58
  },
59
59
  // update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
60
- ...S.duplicateCheckRule("onl_cgform_head", "table_name", l, a, !0)
60
+ ...S.duplicateCheckRule("onl_cgform_head", "table_name", o, a, !0)
61
61
  ]
62
62
  }),
63
63
  e({
@@ -66,7 +66,7 @@ function F(d, n, t) {
66
66
  component: "Input",
67
67
  required: !0,
68
68
  // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
69
- dynamicRules: ({ model: l, schema: a }) => [
69
+ dynamicRules: ({ model: o, schema: a }) => [
70
70
  {
71
71
  validator: (s, p) => new Promise((i, u) => {
72
72
  p.length > 200 && u("表描述最长200个字"), i();
@@ -194,17 +194,17 @@ function F(d, n, t) {
194
194
  allowClear: !1
195
195
  },
196
196
  // 单表时禁用该字段
197
- dynamicDisabled: ({ model: l }) => l.tableType === 1,
197
+ dynamicDisabled: ({ model: o }) => o.tableType === 1,
198
198
  // update-begin--author:liaozhiyang---date:20231123---for:【QQYUN-7073】提示ERP、内嵌子表不支持联合查询
199
199
  dynamicRules() {
200
200
  return [
201
201
  {
202
- validator({}, l) {
202
+ validator({}, o) {
203
203
  const a = n.value;
204
- if (l === "erp") {
204
+ if (o === "erp") {
205
205
  if (a.joinQuery)
206
206
  return Promise.reject("ERP不支持联合查询功能");
207
- } else if (l === "innerTable" && a.joinQuery)
207
+ } else if (o === "innerTable" && a.joinQuery)
208
208
  return Promise.reject("内嵌子表不支持联合查询功能");
209
209
  return Promise.resolve();
210
210
  }
@@ -283,18 +283,18 @@ function F(d, n, t) {
283
283
  onChange: t.onIsTreeChange,
284
284
  allowClear: !1
285
285
  },
286
- dynamicRules({ model: l }) {
286
+ dynamicRules({ model: o }) {
287
287
  return [
288
288
  {
289
289
  validator({}, a) {
290
- return a === "Y" && (l.tableType == 2 || l.tableType == 3) ? Promise.reject("主表和附表不支持树类型!") : Promise.resolve();
290
+ return a === "Y" && (o.tableType == 2 || o.tableType == 3) ? Promise.reject("主表和附表不支持树类型!") : Promise.resolve();
291
291
  }
292
292
  }
293
293
  ];
294
294
  },
295
295
  // update-begin--author:liaozhiyang---date:20240604---for:【TV360X-125】选择主表和附表时隐藏树表配置
296
- show({ model: l, values: a }) {
297
- return l.tableType == 2 || l.tableType == 3 ? (l.isTree = "N", t.onIsTreeChange("N"), !1) : !0;
296
+ show({ model: o, values: a }) {
297
+ return o.tableType == 2 || o.tableType == 3 ? (o.isTree = "N", t.onIsTreeChange("N"), !1) : !0;
298
298
  }
299
299
  // update-end--author:liaozhiyang---date:20240604---for:【TV360X-125】选择主表和附表时隐藏树表配置
300
300
  }),
@@ -341,8 +341,8 @@ function F(d, n, t) {
341
341
  "one"
342
342
  )
343
343
  ];
344
- function r({ field: l, model: a }) {
345
- switch (l) {
344
+ function r({ field: o, model: a }) {
345
+ switch (o) {
346
346
  case "relationType":
347
347
  case "tabOrderNum":
348
348
  return a.tableType === 3;
@@ -355,7 +355,7 @@ function F(d, n, t) {
355
355
  }
356
356
  return !0;
357
357
  }
358
- return { formSchemas: o };
358
+ return { formSchemas: l };
359
359
  }
360
360
  function R(d, n) {
361
361
  const t = c(
@@ -406,7 +406,7 @@ function R(d, n) {
406
406
  placeholder: "弹窗最小宽度(单位:px)"
407
407
  },
408
408
  // update-begin--author:liaozhiyang---date:20240520---for:【TV360X-77】弹窗全屏后,输入宽度框禁用
409
- dynamicDisabled: ({ model: o }) => o.modelFullscreen
409
+ dynamicDisabled: ({ model: l }) => l.modelFullscreen
410
410
  // update-end--author:liaozhiyang---date:20240520---for:【TV360X-77】弹窗全屏后,输入宽度框禁用
411
411
  },
412
412
  "right"
@@ -489,9 +489,9 @@ function R(d, n) {
489
489
  componentProps: {
490
490
  style: "width: 80%"
491
491
  },
492
- dynamicDisabled: ({ model: o }) => !o.reportPrintShow,
493
- dynamicRules: ({ model: o }) => [
494
- { required: !!o.reportPrintShow, message: "请输入报表地址!" },
492
+ dynamicDisabled: ({ model: l }) => !l.reportPrintShow,
493
+ dynamicRules: ({ model: l }) => [
494
+ { required: !!l.reportPrintShow, message: "请输入报表地址!" },
495
495
  {
496
496
  validator({}, r) {
497
497
  return /\/jmreport\/view\/{积木报表ID}/.test(r) ? Promise.reject("请将{积木报表ID}替换为真实的积木报表ID!") : Promise.resolve();
@@ -564,8 +564,8 @@ function R(d, n) {
564
564
  style: "width: 80%"
565
565
  },
566
566
  defaultValue: "right",
567
- dynamicDisabled: ({ model: o }) => !o.tableFixedAction,
568
- dynamicRules: ({ model: o }) => [{ required: !!o.tableFixedAction, message: "请选择固定方式!" }]
567
+ dynamicDisabled: ({ model: l }) => !l.tableFixedAction,
568
+ dynamicRules: ({ model: l }) => [{ required: !!l.tableFixedAction, message: "请选择固定方式!" }]
569
569
  },
570
570
  "right"
571
571
  ),
@@ -596,15 +596,15 @@ function R(d, n) {
596
596
  style: "width: 80%",
597
597
  placeholder: "自定义表单Label长度"
598
598
  },
599
- dynamicDisabled: ({ model: o }) => !o.formLabelLengthShow,
600
- dynamicRules: ({ model: o }) => [{ required: !!o.formLabelLengthShow, message: "请填写表单label长度" }]
599
+ dynamicDisabled: ({ model: l }) => !l.formLabelLengthShow,
600
+ dynamicRules: ({ model: l }) => [{ required: !!l.formLabelLengthShow, message: "请填写表单label长度" }]
601
601
  },
602
602
  "right"
603
603
  )
604
604
  // update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
605
605
  ] };
606
606
  }
607
- function j(d, n, t) {
607
+ function N(d, n, t) {
608
608
  const e = c(
609
609
  {
610
610
  // 一列
@@ -633,18 +633,18 @@ function j(d, n, t) {
633
633
  }
634
634
  },
635
635
  "one"
636
- ), o = b(() => t.value ? "one" : "tow");
636
+ ), l = b(() => t.value ? "one" : "tow");
637
637
  return { formSchemas: b(() => [
638
638
  e(
639
639
  {
640
640
  label: "代码生成目录",
641
641
  field: "projectPath",
642
- render: ({ model: l, field: a }) => m(
642
+ render: ({ model: o, field: a }) => m(
643
643
  f.Search,
644
644
  {
645
- value: l[a],
645
+ value: o[a],
646
646
  onChange: (s) => {
647
- l[a] = s.target.value, n.onProjectPathChange(s);
647
+ o[a] = s.target.value, n.onProjectPathChange(s);
648
648
  },
649
649
  onSearch: n.onProjectPathSearch
650
650
  },
@@ -679,7 +679,7 @@ function j(d, n, t) {
679
679
  // update-end--author:liaozhiyang---date:20240603---for:【TV360X-895】页面风格去掉x
680
680
  }
681
681
  },
682
- o.value
682
+ l.value
683
683
  ),
684
684
  e(
685
685
  {
@@ -687,7 +687,7 @@ function j(d, n, t) {
687
687
  field: "ftlDescription",
688
688
  component: "Input"
689
689
  },
690
- o.value
690
+ l.value
691
691
  ),
692
692
  { label: "数据模型", field: "jformType", component: "Input", show: !1 },
693
693
  e(
@@ -698,7 +698,7 @@ function j(d, n, t) {
698
698
  dynamicDisabled: !0,
699
699
  component: "Input"
700
700
  },
701
- o.value
701
+ l.value
702
702
  ),
703
703
  e(
704
704
  {
@@ -710,16 +710,16 @@ function j(d, n, t) {
710
710
  placeholder: "请输入实体类名(首字母大写)"
711
711
  }
712
712
  },
713
- o.value
713
+ l.value
714
714
  ),
715
715
  e(
716
716
  {
717
717
  label: "包名(小写)",
718
718
  field: "entityPackage",
719
719
  component: "Input",
720
- rules: [{ required: !0, pattern: /^[a-zA-Z0-9_]*$/, message: "包名必填,且只允许字母、数字、下划线组合" }]
720
+ rules: [{ required: !0, pattern: /^[a-zA-Z0-9._]*$/, message: "包名必填,且只允许字母、数字、下划线、小数点组合" }]
721
721
  },
722
- o.value
722
+ l.value
723
723
  ),
724
724
  e(
725
725
  {
@@ -734,15 +734,16 @@ function j(d, n, t) {
734
734
  ]
735
735
  }
736
736
  },
737
- o.value
737
+ l.value
738
738
  ),
739
739
  e(
740
740
  {
741
741
  label: "页面代码",
742
742
  field: "vueStyle",
743
743
  required: !0,
744
- component: "RadioGroup",
744
+ component: "Input",
745
745
  defaultValue: "vue3",
746
+ slot: "pageCode"
746
747
  // componentProps: {
747
748
  // options: [
748
749
  // { label: 'Vue3(BasicForm)', value: 'vue3' },
@@ -750,21 +751,29 @@ function j(d, n, t) {
750
751
  // { label: 'Vue2', value: 'vue' },
751
752
  // ],
752
753
  // },
753
- dynamicPropskey: "options",
754
- dynamicPropsVal: ({ model: l }) => l.jspMode && (l.jspMode == "innerTable" || l.jspMode == "tab") ? [
755
- { value: "vue3", label: "封装表单(BasicForm)" }
756
- ] : [
757
- { value: "vue3", label: "封装表单(BasicForm)" },
758
- { value: "vue3Native", label: "原生表单(a-form)" }
759
- ]
754
+ // update-begin--author:liaozhiyang---date:20240612---for:【TV360X-1057】代码生成页面代码鼠标移入给说明
755
+ // dynamicPropskey: 'options',
756
+ // dynamicPropsVal: ({ model }) => {
757
+ // if (model.jspMode && (model.jspMode == 'innerTable' || model.jspMode == 'tab')) {
758
+ // return [
759
+ // { value: 'vue3', label: '封装表单(BasicForm)' },
760
+ // ];
761
+ // } else {
762
+ // return [
763
+ // { value: 'vue3', label: '封装表单(BasicForm)' },
764
+ // { value: 'vue3Native', label: '原生表单(a-form)' },
765
+ // ];
766
+ // }
767
+ // },
768
+ // update-end--author:liaozhiyang---date:20240612---for:【TV360X-1057】代码生成页面代码鼠标移入给说明
760
769
  },
761
- o.value
770
+ l.value
762
771
  ),
763
772
  { label: "需要生成的代码", field: "codeTypes", component: "Input", show: !1 }
764
773
  ]) };
765
774
  }
766
775
  export {
767
776
  R as a,
768
- j as b,
777
+ N as b,
769
778
  F as u
770
779
  };
@@ -0,0 +1,89 @@
1
+ var w = (f, m, e) => new Promise((d, u) => {
2
+ var n = (t) => {
3
+ try {
4
+ s(e.next(t));
5
+ } catch (b) {
6
+ u(b);
7
+ }
8
+ }, T = (t) => {
9
+ try {
10
+ s(e.throw(t));
11
+ } catch (b) {
12
+ u(b);
13
+ }
14
+ }, s = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(n, T);
15
+ s((e = e.apply(f, m)).next());
16
+ });
17
+ import { inject as h, ref as y, computed as g, nextTick as v } from "vue";
18
+ import { V as N } from "./cgform.data-475d4984.mjs";
19
+ import { pick as R } from "lodash-es";
20
+ function L(f) {
21
+ const m = h("tables"), e = h("fullScreenRef"), d = y(), u = y(!1), n = y([]), T = g(() => ({
22
+ // 正常表格高度
23
+ normal: e != null && e.value ? 430 : 260,
24
+ // 没有 toolbar 的表格高度
25
+ noToolbar: e != null && e.value ? 480 : 320
26
+ })), s = g(() => ["id"].concat(f.value.map((l) => l.key))), t = g(() => ({
27
+ // 针对Online表单对虚拟滚动做出优化
28
+ // 虚拟滚动配置,y轴(行数)大于xx条数据时启用虚拟滚动
29
+ // update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
30
+ scrollY: {
31
+ enabled: !0,
32
+ gt: 15
33
+ },
34
+ // 列数
35
+ scrollX: {
36
+ enabled: !0,
37
+ gt: 20
38
+ }
39
+ // update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
40
+ }));
41
+ function b(l) {
42
+ return w(this, null, function* () {
43
+ let a = d.value;
44
+ if (yield a.fullValidateTable())
45
+ throw { code: N, activeKey: l };
46
+ let D = a.getTableData().map((c) => R(c, s.value)), F = a.getDeleteData().map((c) => c.id);
47
+ return { tableData: D, deleteIds: F };
48
+ });
49
+ }
50
+ function k(l, a = !1) {
51
+ return w(this, null, function* () {
52
+ a ? (n.value = [], yield v(), yield d.value.addOrInsert(l, 0, null, { setActive: !1 }), yield v(), d.value.recalcDisableRows()) : (n.value = l, yield v(), d.value.recalcDisableRows());
53
+ });
54
+ }
55
+ function E(l) {
56
+ let a = d.value, x = l.value.tableRef, D = l.value.getRemoveIds(), F = x.getXTable().internalData.tableFullData, c = a.getXTable().internalData.tableFullData;
57
+ return F.forEach((r) => {
58
+ let p = !1;
59
+ if (c.forEach((o) => {
60
+ if (r.id === o.id) {
61
+ let i = o.dbFieldName, I = o.dbFieldTxt;
62
+ (r.dbFieldName !== i || r.dbFieldTxt !== I) && a.setValues([
63
+ {
64
+ rowKey: o.id,
65
+ values: {
66
+ dbFieldName: r.dbFieldName,
67
+ dbFieldTxt: r.dbFieldTxt
68
+ }
69
+ }
70
+ ]), p = !0;
71
+ } else
72
+ D.forEach((i) => {
73
+ i === o.id && (setTimeout(() => {
74
+ a.removeRowsById(i);
75
+ }, 0), p = !0);
76
+ });
77
+ }), !p) {
78
+ let o = Object.assign({}, r);
79
+ f.value.forEach((i) => {
80
+ i.key !== "dbFieldName" && i.key !== "dbFieldTxt" && (o[i.key] = i.defaultValue);
81
+ }), a.addRows(o);
82
+ }
83
+ }), v();
84
+ }
85
+ return { tables: m, tableRef: d, loading: u, dataSource: n, columnKeys: s, tableHeight: T, tableProps: t, syncTable: E, validateData: b, setDataSource: k };
86
+ }
87
+ export {
88
+ L as u
89
+ };