@jeecg/online 3.6.2-beta → 3.7.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-244ec09f.mjs +0 -125
  86. package/AuthDataConfig-83891eea.mjs +0 -212
  87. package/AuthFieldConfig-6b21915c.mjs +0 -139
  88. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  89. package/AuthSetterModal-a414fb35.mjs +0 -267
  90. package/CgreportModal-2065f5a9.mjs +0 -13
  91. package/CheckDictTable-134cbb83.mjs +0 -211
  92. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  93. package/DetailForm-424638eb.mjs +0 -462
  94. package/EnhanceJsModal-05c73a59.mjs +0 -311
  95. package/ExtendConfigModal-1dde390a.mjs +0 -111
  96. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  97. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  98. package/OnlCgformErpList-db45e22b.mjs +0 -454
  99. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  100. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  101. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  102. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  103. package/OnlineAutoList-0583a910.mjs +0 -479
  104. package/OnlineAutoModal-510991eb.mjs +0 -207
  105. package/OnlineForm-1fa2d893.mjs +0 -750
  106. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  107. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  108. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  109. package/OnlineTabForm-512d3951.mjs +0 -766
  110. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  111. package/PageAttributeTable-965dc58e.mjs +0 -404
  112. package/QueryTable-eb9a5b21.mjs +0 -115
  113. package/SuperQuery-5d1ca957.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-0e3ab3af.mjs +0 -56
  116. package/useCgformList-423282b7.mjs +0 -400
  117. package/useExtendComponent-325fe3f1.mjs +0 -3926
  118. package/useListButton-cdbab702.mjs +0 -676
@@ -1,20 +1,20 @@
1
- var Y = Object.defineProperty, $ = Object.defineProperties;
1
+ var $ = Object.defineProperty, x = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
- var D = Object.getOwnPropertySymbols;
4
- var x = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var c = (e, t, d) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: d }) : e[t] = d, L = (e, t) => {
6
- for (var d in t || (t = {}))
7
- x.call(t, d) && c(e, d, t[d]);
8
- if (D)
9
- for (var d of D(t))
10
- K.call(t, d) && c(e, d, t[d]);
3
+ var C = Object.getOwnPropertySymbols;
4
+ var K = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
+ var b = (e, a, d) => a in e ? $(e, a, { enumerable: !0, configurable: !0, writable: !0, value: d }) : e[a] = d, D = (e, a) => {
6
+ for (var d in a || (a = {}))
7
+ K.call(a, d) && b(e, d, a[d]);
8
+ if (C)
9
+ for (var d of C(a))
10
+ W.call(a, d) && b(e, d, a[d]);
11
11
  return e;
12
- }, O = (e, t) => $(e, k(t));
13
- import { defineComponent as W, getCurrentInstance as X, ref as b, resolveComponent as Q, openBlock as q, createBlock as J, mergeProps as Z } from "vue";
14
- import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as z } from "./useTableSync-774c3774.mjs";
16
- import { _ as j } from "./index-0e3ab3af.mjs";
17
- import "./cgform.data-cbdd88c3.mjs";
12
+ }, O = (e, a) => x(e, k(a));
13
+ import { defineComponent as X, getCurrentInstance as Q, ref as c, resolveComponent as q, openBlock as J, createBlock as Z, mergeProps as z } from "vue";
14
+ import { JVxeTypes as E } from "/@/components/jeecg/JVxeTable/types";
15
+ import { u as j } from "./useTableSync-f6089e8a.mjs";
16
+ import { _ as ee } from "./index-173949bb.mjs";
17
+ import "./cgform.data-475d4984.mjs";
18
18
  import "/@/utils/dict";
19
19
  import "/@/utils/dict/JDictSelectUtil";
20
20
  import "/@/utils/uuid";
@@ -22,7 +22,7 @@ import "lodash-es";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
25
- const ee = [
25
+ const te = [
26
26
  "ADD",
27
27
  "ALL",
28
28
  "ALTER",
@@ -248,19 +248,19 @@ const ee = [
248
248
  "XOR",
249
249
  "YEAR_MONTH",
250
250
  "ZEROFILL"
251
- ], te = W({
251
+ ], ae = X({
252
252
  name: "DBAttributeTable",
253
253
  props: {
254
254
  actionButton: { type: Boolean, default: !0 }
255
255
  },
256
- emits: ["added", "removed", "inserted", "dragged", "syncDbType"],
257
- setup(e, { emit: t }) {
258
- const d = X(), T = b(!1), R = b([
256
+ emits: ["added", "removed", "inserted", "dragged", "syncDbType", "syncDbIsPersist", "syncDbIsNull"],
257
+ setup(e, { emit: a }) {
258
+ const d = Q(), I = c(!1), R = c([
259
259
  {
260
260
  title: "字段名称",
261
261
  key: "dbFieldName",
262
262
  width: 140,
263
- type: i.input,
263
+ type: E.input,
264
264
  defaultValue: "",
265
265
  placeholder: "请输入${title}",
266
266
  validateRules: [
@@ -271,11 +271,18 @@ const ee = [
271
271
  },
272
272
  { unique: !0, message: "${title}不能重复" },
273
273
  {
274
- handler({ cellValue: a }, n) {
275
- ee.includes(a.toUpperCase()) ? n(!1, a + "是关键字,不能作为字段名称使用!") : n(!0);
274
+ handler({ cellValue: t }, i) {
275
+ te.includes(t.toUpperCase()) ? i(!1, t + "是关键字,不能作为字段名称使用!") : i(!0);
276
276
  }
277
277
  },
278
- { handler: S }
278
+ { handler: S },
279
+ // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
280
+ {
281
+ handler({ cellValue: t }, i) {
282
+ t.length > 32 ? i(!1, "字段名最长32个字符") : i(!0);
283
+ }
284
+ }
285
+ // update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
279
286
  ],
280
287
  disabled: !e.actionButton
281
288
  },
@@ -283,16 +290,25 @@ const ee = [
283
290
  title: "字段备注",
284
291
  key: "dbFieldTxt",
285
292
  width: 140,
286
- type: i.input,
293
+ type: E.input,
287
294
  defaultValue: "",
288
295
  placeholder: "请输入${title}",
289
- validateRules: [{ required: !0, message: "${title}不能为空" }]
296
+ validateRules: [
297
+ { required: !0, message: "${title}不能为空" },
298
+ // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
299
+ {
300
+ handler({ cellValue: t }, i) {
301
+ t.length > 200 ? i(!1, "字段名最长200个字") : i(!0);
302
+ }
303
+ }
304
+ // update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
305
+ ]
290
306
  },
291
307
  {
292
308
  title: "字段长度",
293
309
  key: "dbLength",
294
310
  width: 120,
295
- type: i.inputNumber,
311
+ type: E.inputNumber,
296
312
  defaultValue: 32,
297
313
  placeholder: "请输入${title}",
298
314
  validateRules: [{ required: !0, message: "${title}不能为空" }],
@@ -302,7 +318,7 @@ const ee = [
302
318
  title: "小数点",
303
319
  key: "dbPointLength",
304
320
  width: 100,
305
- type: i.inputNumber,
321
+ type: E.inputNumber,
306
322
  defaultValue: 0,
307
323
  placeholder: "请输入${title}",
308
324
  validateRules: [{ required: !0, message: "${title}不能为空" }],
@@ -312,7 +328,7 @@ const ee = [
312
328
  title: "默认值",
313
329
  key: "dbDefaultVal",
314
330
  width: 140,
315
- type: i.input,
331
+ type: E.input,
316
332
  defaultValue: "",
317
333
  disabled: !e.actionButton
318
334
  },
@@ -320,7 +336,7 @@ const ee = [
320
336
  title: "字段类型",
321
337
  key: "dbType",
322
338
  width: 140,
323
- type: i.select,
339
+ type: E.select,
324
340
  options: [
325
341
  { title: "String", value: "string" },
326
342
  { title: "Integer", value: "int" },
@@ -334,13 +350,13 @@ const ee = [
334
350
  defaultValue: "string",
335
351
  placeholder: "请选择${title}",
336
352
  disabled: !e.actionButton,
337
- validateRules: [{ required: !0, message: "请选择${title}" }]
353
+ validateRules: [{ required: !0, message: "请选择${title}" }, { handler: w }]
338
354
  },
339
355
  {
340
356
  title: "主键",
341
357
  key: "dbIsKey",
342
358
  width: 80,
343
- type: i.checkbox,
359
+ type: E.checkbox,
344
360
  align: "center",
345
361
  customValue: ["1", "0"],
346
362
  defaultChecked: !1,
@@ -350,7 +366,7 @@ const ee = [
350
366
  title: "允许空值",
351
367
  key: "dbIsNull",
352
368
  width: 80,
353
- type: i.checkbox,
369
+ type: E.checkbox,
354
370
  customValue: ["1", "0"],
355
371
  defaultChecked: !0,
356
372
  disabled: !e.actionButton
@@ -359,97 +375,102 @@ const ee = [
359
375
  title: "同步数据库",
360
376
  key: "dbIsPersist",
361
377
  minWidth: 80,
362
- type: i.checkbox,
378
+ type: E.checkbox,
363
379
  customValue: ["1", "0"],
364
380
  defaultChecked: !0,
365
381
  disabled: !e.actionButton
366
382
  },
367
- { title: "orderNum", key: "orderNum", type: i.hidden }
383
+ { title: "orderNum", key: "orderNum", type: E.hidden }
368
384
  ]);
369
385
  let u = [];
370
- const r = z(R), { tableRef: N, loading: s, dataSource: m, tableHeight: f, tableProps: g, setDataSource: h, validateData: U } = r;
371
- function p() {
372
- t("added", d);
386
+ const T = j(R), { tableRef: N, loading: A, dataSource: f, tableHeight: g, tableProps: h, setDataSource: m, validateData: p } = T;
387
+ function y() {
388
+ a("added", d);
373
389
  }
374
- function B(a) {
375
- u = u.concat(a.deleteRows.map((n) => n.id)), t("removed", O(L({}, a), { removeIds: u, target: d }));
390
+ function U(t) {
391
+ u = u.concat(t.deleteRows.map((i) => i.id)), a("removed", O(D({}, t), { removeIds: u, target: d }));
376
392
  }
377
- function M(a) {
378
- t("dragged", {
379
- oldIndex: a.oldIndex,
380
- newIndex: a.newIndex,
393
+ function B(t) {
394
+ a("dragged", {
395
+ oldIndex: t.oldIndex,
396
+ newIndex: t.newIndex,
381
397
  target: d
382
398
  });
383
399
  }
384
- function y(a) {
385
- t("inserted", O(L({}, a), { target: d }));
400
+ function _(t) {
401
+ a("inserted", O(D({}, t), { target: d }));
386
402
  }
387
- function v() {
403
+ function M() {
388
404
  return u;
389
405
  }
390
- function F(a) {
391
- let { type: n, row: l, col: I, value: E, target: o } = a;
392
- n === i.select && I.key === "dbType" && ((E === "Date" || E === "Datetime") && t("syncDbType", { row: l, value: E, target: d }), E === "Blob" || E === "Text" || E === "Date" ? o.setValues([{ rowKey: l.id, values: { dbLength: "0" } }]) : E === "int" || E === "double" || E === "BigDecimal" ? o.setValues([{ rowKey: l.id, values: { dbLength: "10" } }]) : l.dbLength === "0" && o.setValues([{ rowKey: l.id, values: { dbLength: "32" } }]));
406
+ function v(t) {
407
+ let { type: i, row: l, col: r, value: n, target: o, oldValue: s } = t;
408
+ i === E.select && r.key === "dbType" ? ((n === "Date" || n === "Datetime") && a("syncDbType", { row: l, value: n, target: d }), n === "string" && (s == "Date" || s == "Datetime") && a("syncDbType", { row: l, value: n, target: d }), n === "Blob" || n === "Text" || n === "Date" ? o.setValues([{ rowKey: l.id, values: { dbLength: "0" } }]) : n === "string" ? o.setValues([{ rowKey: l.id, values: { dbLength: "32" } }]) : n === "int" || n === "double" || n === "BigDecimal" ? o.setValues([{ rowKey: l.id, values: { dbLength: "10" } }]) : l.dbLength === "0" && o.setValues([{ rowKey: l.id, values: { dbLength: "32" } }])) : r.key === "dbIsPersist" ? a("syncDbIsPersist", { row: l, value: n, target: d }) : r.key === "dbIsNull" && a("syncDbIsNull", { row: l, value: n, target: d });
393
409
  }
394
- function _(a, n, l) {
395
- return a === "has_child" || a === "id" && l === 0;
410
+ function F(t, i, l) {
411
+ return t === "has_child" || t === "id" && l === 0;
396
412
  }
397
- function V(a) {
398
- N.value.pushRows(a), T.value || t("added", d);
413
+ function V(t) {
414
+ N.value.pushRows(t), I.value || a("added", d);
399
415
  }
400
- function H(a) {
401
- return N.value.removeRowsById(a);
416
+ function P(t) {
417
+ return N.value.removeRowsById(t);
402
418
  }
403
- function G() {
404
- T.value = !0, s.value = !0;
419
+ function H() {
420
+ I.value = !0, A.value = !0;
405
421
  }
406
- function P() {
407
- T.value = !1, s.value = !1, t("added", d);
422
+ function G() {
423
+ I.value = !1, A.value = !1, a("added", d);
408
424
  }
409
- function S({ cellValue: a, row: n }, l) {
410
- const { tables: I } = r;
411
- if (I) {
412
- let o = I.dbTable.value.tableRef.dataSource.filter((A) => A.id === n.id);
425
+ function S({ cellValue: t, row: i }, l) {
426
+ const { tables: r } = T;
427
+ if (r) {
428
+ let o = r.dbTable.value.tableRef.dataSource.filter((L) => L.id === i.id);
413
429
  (!o || o.length <= 0) && l(!0);
414
- let C = o[0].dbFieldName;
415
- C == a && l(!0);
416
- let w = I.idxTable.value.tableRef.getTableData();
417
- for (let A of w)
418
- A.indexField.split(",").indexOf(C) >= 0 && l(!1, "当前字段存在索引配置,请先删除索引再修改字段");
430
+ let s = o[0].dbFieldName;
431
+ s == t && l(!0);
432
+ let Y = r.idxTable.value.tableRef.getTableData();
433
+ for (let L of Y)
434
+ L.indexField.split(",").indexOf(s) >= 0 && l(!1, "当前字段存在索引配置,请先删除索引再修改字段");
419
435
  }
420
436
  l(!0);
421
437
  }
438
+ function w({ cellValue: t, row: i }, l) {
439
+ i.dbType == "int" && i.dbPointLength > 0 && l(!1, "设置了小数点不可设置integer类型"), l(!0);
440
+ }
422
441
  return {
423
442
  tableRef: N,
424
- loading: s,
443
+ loading: A,
425
444
  columns: R,
426
- dataSource: m,
427
- setDataSource: h,
428
- addBatchBegin: G,
429
- addBatchEnd: P,
445
+ dataSource: f,
446
+ setDataSource: m,
447
+ addBatchBegin: H,
448
+ addBatchEnd: G,
430
449
  tableAddLine: V,
431
- tableHeight: f,
432
- tableProps: g,
433
- tableDeleteLines: H,
434
- handleAdded: p,
435
- handleRemoved: B,
436
- handleDragged: M,
437
- handleInserted: y,
438
- handleValueChange: F,
439
- handleDisabledDbFieldName: _,
440
- validateData: U,
441
- getRemoveIds: v,
450
+ tableHeight: g,
451
+ tableProps: h,
452
+ tableDeleteLines: P,
453
+ handleAdded: y,
454
+ handleRemoved: U,
455
+ handleDragged: B,
456
+ handleInserted: _,
457
+ handleValueChange: v,
458
+ handleDisabledDbFieldName: F,
459
+ validateData: p,
460
+ getRemoveIds: M,
442
461
  validateExistIndex: S
443
462
  };
444
463
  }
445
464
  });
446
- function ae(e, t, d, T, R, u) {
447
- const r = Q("JVxeTable");
448
- return q(), J(r, Z({
465
+ function de(e, a, d, I, R, u) {
466
+ const T = q("JVxeTable");
467
+ return J(), Z(T, z({
468
+ class: "dBAttributeTable",
449
469
  ref: "tableRef",
450
470
  rowNumber: "",
451
471
  rowSelection: "",
452
472
  dragSort: "",
473
+ notAllowDrag: [{ key: "dbFieldName", value: "id" }],
453
474
  keyboardEdit: "",
454
475
  sortKey: "orderNum",
455
476
  addButtonSettings: "",
@@ -467,7 +488,7 @@ function ae(e, t, d, T, R, u) {
467
488
  onValueChange: e.handleValueChange
468
489
  }), null, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "disabledRows", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]);
469
490
  }
470
- const Oe = /* @__PURE__ */ j(te, [["render", ae]]);
491
+ const Oe = /* @__PURE__ */ ee(ae, [["render", de], ["__scopeId", "data-v-0cd4f97d"]]);
471
492
  export {
472
493
  Oe as default
473
494
  };
@@ -1,24 +1,25 @@
1
- import { defineComponent as F, ref as i, resolveComponent as m, openBlock as k, createBlock as E, withCtx as l, createVNode as f, createTextVNode as g, createElementVNode as C } from "vue";
2
- import { defHttp as v } from "/@/utils/http/axios";
3
- import { BasicTable as R } from "/@/components/Table";
4
- import { BasicModal as S, useModalInner as D } from "/@/components/Modal";
5
- import { useListTable as I } from "/@/hooks/system/useListPage";
6
- import { useMessage as N } from "/@/hooks/web/useMessage";
7
- import { _ as $ } from "./index-0e3ab3af.mjs";
1
+ import { defineComponent as S, ref as r, resolveComponent as d, openBlock as D, createBlock as H, withCtx as l, createVNode as f, createTextVNode as g, createElementVNode as w } from "vue";
2
+ import { defHttp as _ } from "/@/utils/http/axios";
3
+ import { BasicTable as I } from "/@/components/Table";
4
+ import { BasicModal as $, useModalInner as A } from "/@/components/Modal";
5
+ import { useListTable as P } from "/@/hooks/system/useListPage";
6
+ import { useMessage as q } from "/@/hooks/web/useMessage";
7
+ import { useDesign as O } from "/@/hooks/web/useDesign";
8
+ import { _ as V } from "./index-173949bb.mjs";
8
9
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
9
10
  import "vue-router";
10
- const A = F({
11
+ const j = S({
11
12
  name: "TransDb2Online",
12
- components: { BasicModal: S, BasicTable: R },
13
+ components: { BasicModal: $, BasicTable: I },
13
14
  emits: ["success", "register"],
14
15
  setup(e, { emit: h }) {
15
- const { createMessage: p } = N(), t = i("暂无数据"), u = i(!1), r = i(!1), o = i([]), a = i([]), [c, { closeModal: d }] = D(() => {
16
- r.value = !1, t.value = "暂无数据", s.value = [], b();
17
- }), [T, { setPagination: w }, { rowSelection: _, selectedRowKeys: s }] = I({
16
+ const { createMessage: p } = q(), t = r("暂无数据"), u = r(!1), s = r(!1), n = r([]), a = r([]), [c, { closeModal: m }] = A(() => {
17
+ s.value = !1, t.value = "暂无数据", i.value = [], v();
18
+ }), { prefixCls: T } = O("online-db-import-form-modal"), M = T, C = document.documentElement.clientHeight, b = C - 180, L = b > 690 ? 690 : b, [y, { setPagination: B }, { rowSelection: E, selectedRowKeys: i }] = P({
18
19
  bordered: !0,
19
20
  columns: [{ title: "表名", align: "left", dataIndex: "id" }],
20
21
  dataSource: a,
21
- maxHeight: 300,
22
+ maxHeight: C - 400,
22
23
  locale: { emptyText: t },
23
24
  pagination: {
24
25
  showQuickJumper: !1,
@@ -36,11 +37,11 @@ const A = F({
36
37
  componentProps: {
37
38
  style: { width: "100%" },
38
39
  placeholder: "请输入表名以模糊筛选",
39
- onChange: (n) => L(n.target.value)
40
+ onChange: (o) => F(o.target.value)
40
41
  },
41
42
  disabledLabelWidth: !0,
42
43
  itemProps: {
43
- labelCol: { sm: 24, md: 4 },
44
+ labelCol: { sm: 0, md: 0 },
44
45
  wrapperCol: { sm: 24, md: 20 }
45
46
  }
46
47
  }
@@ -49,71 +50,76 @@ const A = F({
49
50
  showActionButtonGroup: !1
50
51
  }
51
52
  });
52
- function b() {
53
- return u.value = !0, v.get(
53
+ function v() {
54
+ return u.value = !0, _.get(
54
55
  {
55
- url: "/online/cgform/head/queryTables/"
56
+ url: "/online/cgform/head/queryTables"
56
57
  /* query */
57
58
  },
58
59
  {
59
60
  errorMessageMode: "none"
60
61
  }
61
62
  ).then(
62
- (n) => (a.value = n, o.value = [...n], n),
63
- (n) => {
64
- n.message == "noadminauth" && (t.value = "非admin用户无权限操作!", p.warn(t.value)), a.value = [], o.value = [];
63
+ (o) => (a.value = o, n.value = [...o], o),
64
+ (o) => {
65
+ o.message == "noadminauth" && (t.value = "非admin用户无权限操作!", p.warn(t.value)), a.value = [], n.value = [];
65
66
  }
66
67
  ).finally(() => {
67
68
  u.value = !1;
68
69
  });
69
70
  }
70
- function L(n) {
71
- o.value.length !== 0 && (n ? (a.value = o.value.filter((y) => y.id.toLowerCase().includes(n.toLowerCase())), t.value = a.value.length === 0 ? "无筛选结果" : "暂无数据") : a.value = [...o.value], w({ current: 1 }));
71
+ function F(o) {
72
+ n.value.length !== 0 && (o ? (a.value = n.value.filter((R) => R.id.toLowerCase().includes(o.toLowerCase())), t.value = a.value.length === 0 ? "无筛选结果" : "暂无数据") : a.value = [...n.value], B({ current: 1 }));
72
73
  }
73
- function M() {
74
- d();
74
+ function N() {
75
+ m();
75
76
  }
76
- function B() {
77
- if (!s.value || s.value.length == 0) {
77
+ function k() {
78
+ if (!i.value || i.value.length == 0) {
78
79
  p.warning("请选择一张表");
79
80
  return;
80
81
  } else {
81
- r.value = !0;
82
- let n = s.value.join(",");
83
- v.post({ url: "/online/cgform/head/transTables/" + n }).then(() => {
84
- d(), h("success");
85
- }).finally(() => r.value = !1);
82
+ s.value = !0;
83
+ let o = i.value.join(",");
84
+ _.post({ url: "/online/cgform/head/transTables/" + o }).then(() => {
85
+ m(), h("success");
86
+ }).finally(() => s.value = !1);
86
87
  }
87
88
  }
88
89
  return {
89
90
  emptyText: t,
90
91
  confirmLoading: u,
91
- btnLoading: r,
92
- metaSource: o,
93
- handleTrans: B,
94
- handleCancel: M,
95
- queryTables: b,
92
+ btnLoading: s,
93
+ metaSource: n,
94
+ handleTrans: k,
95
+ handleCancel: N,
96
+ queryTables: v,
96
97
  registerModal: c,
97
- registerTable: T,
98
- rowSelection: _,
99
- selectedRowKeys: s
98
+ registerTable: y,
99
+ rowSelection: E,
100
+ selectedRowKeys: i,
101
+ wrapClassName: M,
102
+ modalHeight: L
100
103
  };
101
104
  }
102
- }), P = /* @__PURE__ */ C("div", null, [
105
+ });
106
+ const x = /* @__PURE__ */ w("div", null, [
103
107
  /* @__PURE__ */ g(" 注:导入表会排除配置前缀表 "),
104
- /* @__PURE__ */ C("a", {
108
+ /* @__PURE__ */ w("a", {
105
109
  href: "http://doc.jeecg.com/2043924",
106
110
  target: "_blank"
107
111
  }, " 参考文档")
108
112
  ], -1);
109
- function q(e, h, p, t, u, r) {
110
- const o = m("BasicTable"), a = m("a-spin"), c = m("a-button"), d = m("BasicModal");
111
- return k(), E(d, {
113
+ function z(e, h, p, t, u, s) {
114
+ const n = d("BasicTable"), a = d("a-spin"), c = d("a-button"), m = d("BasicModal");
115
+ return D(), H(m, {
112
116
  onRegister: e.registerModal,
117
+ height: e.modalHeight,
113
118
  width: 500,
114
119
  title: "从数据库导入表单",
115
120
  confirmLoading: e.confirmLoading,
116
- onCancel: e.handleCancel
121
+ onCancel: e.handleCancel,
122
+ wrapClassName: e.wrapClassName
117
123
  }, {
118
124
  footer: l(() => [
119
125
  f(c, { onClick: e.handleCancel }, {
@@ -137,13 +143,13 @@ function q(e, h, p, t, u, r) {
137
143
  default: l(() => [
138
144
  f(a, { spinning: e.confirmLoading }, {
139
145
  default: l(() => [
140
- f(o, {
146
+ f(n, {
141
147
  onRegister: e.registerTable,
142
148
  rowSelection: e.rowSelection,
143
149
  onTableRedo: e.queryTables
144
150
  }, {
145
151
  tableTitle: l(() => [
146
- P
152
+ x
147
153
  ]),
148
154
  _: 1
149
155
  }, 8, ["onRegister", "rowSelection", "onTableRedo"])
@@ -152,9 +158,9 @@ function q(e, h, p, t, u, r) {
152
158
  }, 8, ["spinning"])
153
159
  ]),
154
160
  _: 1
155
- }, 8, ["onRegister", "confirmLoading", "onCancel"]);
161
+ }, 8, ["onRegister", "height", "confirmLoading", "onCancel", "wrapClassName"]);
156
162
  }
157
- const Q = /* @__PURE__ */ $(A, [["render", q]]);
163
+ const oe = /* @__PURE__ */ V(j, [["render", z]]);
158
164
  export {
159
- Q as default
165
+ oe as default
160
166
  };