@jeecg/online 3.7.4 → 3.8.2-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 (113) hide show
  1. package/{AccountLoginForm-d2fed52f.mjs → AccountLoginForm-79fa7b01.mjs} +1 -1
  2. package/{AiModal-fbe4b68a.mjs → AiModal-942b59ec.mjs} +1 -1
  3. package/{AppForgetPassword-3b3bec82.mjs → AppForgetPassword-d762e5b3.mjs} +2 -2
  4. package/{AppLogin-cd2e2a87.mjs → AppLogin-41372985.mjs} +9 -9
  5. package/{AppLoginHeader-9b5be678.mjs → AppLoginHeader-3b6fa33d.mjs} +1 -1
  6. package/{AppNameEmail-b4e32ae8.mjs → AppNameEmail-8dfbad62.mjs} +2 -2
  7. package/{AppRegister-7117b66a.mjs → AppRegister-433c54db.mjs} +3 -3
  8. package/{AppTenant-5817729b.mjs → AppTenant-e49dfa9b.mjs} +2 -2
  9. package/{AppThirdForm-d14fb5e5.mjs → AppThirdForm-7b75b4fc.mjs} +1 -1
  10. package/{AuthButtonConfig-5e3b6d72.mjs → AuthButtonConfig-a0f59cb5.mjs} +50 -46
  11. package/{AuthButtonTree-7b4ec967.mjs → AuthButtonTree-f0a5cc0b.mjs} +2 -2
  12. package/{AuthDataConfig-48ee9228.mjs → AuthDataConfig-647c4a27.mjs} +2 -2
  13. package/{AuthDataTree-02b3ba05.mjs → AuthDataTree-b80a3ea5.mjs} +1 -1
  14. package/{AuthFieldConfig-562cc6b6.mjs → AuthFieldConfig-d36a1b2d.mjs} +2 -2
  15. package/{AuthFieldTree-2d458c0c.mjs → AuthFieldTree-dba6af79.mjs} +1 -1
  16. package/{AuthManagerDrawer-38299230.mjs → AuthManagerDrawer-5acbd451.mjs} +5 -5
  17. package/{AuthSetterModal-78b06703.mjs → AuthSetterModal-95b5f616.mjs} +8 -8
  18. package/CgformAddressModal-5d889870.mjs +263 -0
  19. package/CgformCopyList-cc5f76cd.mjs +259 -0
  20. package/{CgformModal-12951453.mjs → CgformModal-cebc698b.mjs} +73 -70
  21. package/CgreportAigcModal-d1e62385.mjs +211 -0
  22. package/{CgreportModal-bfeb93ed.mjs → CgreportModal-2e4421e6.mjs} +103 -103
  23. package/{CheckDictTable-3c1e59e0.mjs → CheckDictTable-8fb7299c.mjs} +2 -2
  24. package/{CodeFileListModal-71752603.mjs → CodeFileListModal-25fad54f.mjs} +2 -2
  25. package/{CodeFileViewModal-eb803769.mjs → CodeFileViewModal-12299ab5.mjs} +1 -1
  26. package/{CodeGeneratorModal-2fe1e920.mjs → CodeGeneratorModal-791b1695.mjs} +5 -5
  27. package/{CustomButtonList-22b5cdb3.mjs → CustomButtonList-26490688.mjs} +1 -1
  28. package/DBAttributeTable-dea8ab11.mjs +546 -0
  29. package/{DbToOnlineModal-049b4bbd.mjs → DbToOnlineModal-60317a16.mjs} +1 -1
  30. package/{DetailForm-c127c27f.mjs → DetailForm-b92a5e9d.mjs} +6 -6
  31. package/{DropMenuItem-b1a8f47d.mjs → DropMenuItem-82213be6.mjs} +1 -1
  32. package/{EnhanceJavaModal-1a4d696b.mjs → EnhanceJavaModal-6ebefc8b.mjs} +1 -1
  33. package/{EnhanceJsHistory-48cf43ad.mjs → EnhanceJsHistory-8d9b86ca.mjs} +2 -2
  34. package/{EnhanceJsModal-0e1f15f8.mjs → EnhanceJsModal-9439e6f8.mjs} +17 -16
  35. package/{EnhanceSqlModal-6a1aa471.mjs → EnhanceSqlModal-ea4592bf.mjs} +1 -1
  36. package/{ExtendConfigModal-37af21a5.mjs → ExtendConfigModal-f509db46.mjs} +2 -2
  37. package/{FieldExtendJsonModal-9441e08e.mjs → FieldExtendJsonModal-73bab5b5.mjs} +2 -2
  38. package/{FileSelectModal-04490919.mjs → FileSelectModal-49d6dade.mjs} +1 -1
  39. package/{ForeignKeyTable-06300a47.mjs → ForeignKeyTable-330963c1.mjs} +2 -2
  40. package/{IndexTable-79bddd5c.mjs → IndexTable-c0478faa.mjs} +2 -2
  41. package/{JModalTip-192fafa1.mjs → JModalTip-b1d19eaa.mjs} +1 -1
  42. package/{JOnlineSearchSelect-9abcf657.mjs → JOnlineSearchSelect-97662e1b.mjs} +1 -1
  43. package/{LeftDepart-35d78655.mjs → LeftDepart-4b1003f0.mjs} +1 -1
  44. package/{LeftRole-9d88976d.mjs → LeftRole-8486ba4f.mjs} +1 -1
  45. package/{LeftUser-04c89aea.mjs → LeftUser-09894a2f.mjs} +1 -1
  46. package/{LinkTableConfigModal-5f94ef13.mjs → LinkTableConfigModal-cd0980e9.mjs} +1 -1
  47. package/{LinkTableFieldConfigModal-40753de5.mjs → LinkTableFieldConfigModal-f4106ab7.mjs} +1 -1
  48. package/{LinkTableListPiece-179035c7.mjs → LinkTableListPiece-4187ad7d.mjs} +1 -1
  49. package/{ModalFormDemo-3a85920c.mjs → ModalFormDemo-4ec79769.mjs} +1 -1
  50. package/OnlCgformErpList-63089149.mjs +498 -0
  51. package/{OnlCgformErpSubTable-3515150b.mjs → OnlCgformErpSubTable-421e2051.mjs} +18 -17
  52. package/{OnlCgformInnerSubTable-13e888c6.mjs → OnlCgformInnerSubTable-9616ebf2.mjs} +16 -15
  53. package/{OnlCgformInnerTableList-2e8f853c.mjs → OnlCgformInnerTableList-5ed887e4.mjs} +160 -154
  54. package/{OnlCgformTabList-583ac15f.mjs → OnlCgformTabList-c03a1d0a.mjs} +160 -154
  55. package/OnlineAutoList-e5a61211.mjs +557 -0
  56. package/{OnlineAutoModal-c0743caf.mjs → OnlineAutoModal-38f2d522.mjs} +7 -7
  57. package/OnlineAutoTreeList-16fa962f.mjs +531 -0
  58. package/{OnlineCustomModal-661ee850.mjs → OnlineCustomModal-7e31297e.mjs} +7 -7
  59. package/{OnlineDetailModal-785e848e.mjs → OnlineDetailModal-79085ba8.mjs} +8 -8
  60. package/{OnlineForm-c1fb38eb.mjs → OnlineForm-0438f4bf.mjs} +6 -6
  61. package/{OnlineFormDetail-50186870.mjs → OnlineFormDetail-76d243ed.mjs} +89 -83
  62. package/{OnlineFormUrlAdd-905bf251.mjs → OnlineFormUrlAdd-2e05ba0f.mjs} +12 -11
  63. package/{OnlineFormUrlDetail-a9dd2bfa.mjs → OnlineFormUrlDetail-06b2d9e6.mjs} +19 -18
  64. package/{OnlineFormUrlEdit-b8941f05.mjs → OnlineFormUrlEdit-77ac4bba.mjs} +12 -11
  65. package/{OnlineFormUrlSuccess-ecaf6a21.mjs → OnlineFormUrlSuccess-cb3f7be4.mjs} +1 -1
  66. package/{OnlineQueryForm-ca6186a3.mjs → OnlineQueryForm-528af6ed.mjs} +5 -5
  67. package/{OnlineSearchFormItem-5c503a51.mjs → OnlineSearchFormItem-51eefaf4.mjs} +2 -2
  68. package/{OnlineSelectCascade-a3e686b3.mjs → OnlineSelectCascade-b218691c.mjs} +1 -1
  69. package/{OnlineSubFormDetail-be1ad3b9.mjs → OnlineSubFormDetail-a1b7f33f.mjs} +6 -6
  70. package/{OnlineTabAutoModal-fb59b573.mjs → OnlineTabAutoModal-1c7c4ed2.mjs} +7 -7
  71. package/{OnlineTabDetailModal-4b9c4838.mjs → OnlineTabDetailModal-7c45e727.mjs} +8 -8
  72. package/{OnlineTabForm-89389384.mjs → OnlineTabForm-9682158f.mjs} +7 -7
  73. package/{OnlineTabFormDetail-72173ae4.mjs → OnlineTabFormDetail-b8650175.mjs} +7 -7
  74. package/{PageAttributeTable-345b97fe.mjs → PageAttributeTable-21314341.mjs} +6 -6
  75. package/{PhoneLoginForm-8ca7e2d4.mjs → PhoneLoginForm-c3c16f16.mjs} +62 -62
  76. package/{ProcessOnlineForm-485b5679.mjs → ProcessOnlineForm-d6113dec.mjs} +7 -7
  77. package/{QueryTable-f0a88d78.mjs → QueryTable-413d1366.mjs} +2 -2
  78. package/{SetSwitchOptions-cdcb22a1.mjs → SetSwitchOptions-82fd6265.mjs} +1 -1
  79. package/{ShareAddView-f713c0a5.mjs → ShareAddView-a2dba2ef.mjs} +22 -21
  80. package/{ShareEditView-691764ad.mjs → ShareEditView-ecd590dc.mjs} +22 -21
  81. package/{ShareView-df344a8d.mjs → ShareView-84f333e7.mjs} +20 -19
  82. package/{ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs → ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs} +2 -2
  83. package/{SingleView-ad0287d6.mjs → SingleView-d4f29169.mjs} +15 -14
  84. package/{SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs → SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs} +4 -4
  85. package/{SuperQuery-2b293e3b.mjs → SuperQuery-290f5080.mjs} +39 -38
  86. package/aiModal-6e338c79.mjs +175 -0
  87. package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
  88. package/button.data-fe45d43b.mjs +12 -0
  89. package/{index-3c7392a4.mjs → index-254a82b7.mjs} +50 -49
  90. package/index-30c0a14f.mjs +57 -0
  91. package/{index-bef7fe2d.mjs → index-7890e2b4.mjs} +1 -1
  92. package/{index-181f8344.mjs → index-7bab525f.mjs} +3 -3
  93. package/{index-d6f9ada7.mjs → index-9bebbfe5.mjs} +2 -2
  94. package/{index-93341e02.mjs → index-bc0d747e.mjs} +2 -2
  95. package/index-c5737cbb.mjs +268 -0
  96. package/main.index.js +1 -1
  97. package/package.json +1 -1
  98. package/style.css +1 -1
  99. package/{useCgformList-13c8aab7.mjs → useCgformList-52631580.mjs} +105 -88
  100. package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
  101. package/{useExtendComponent-3f5734ca.mjs → useExtendComponent-d1db211d.mjs} +252 -251
  102. package/useListButton-7f9674a0.mjs +765 -0
  103. package/{useSchemas-f1819e54.mjs → useSchemas-b074f3a1.mjs} +72 -72
  104. package/{useTableSync-075826a1.mjs → useTableSync-dbfba20e.mjs} +31 -31
  105. package/CgformAddressModal-1b9cbe19.mjs +0 -260
  106. package/CgformCopyList-580bba0f.mjs +0 -252
  107. package/DBAttributeTable-eb25565c.mjs +0 -502
  108. package/OnlCgformErpList-8fd15fc1.mjs +0 -488
  109. package/OnlineAutoList-36ec0957.mjs +0 -513
  110. package/OnlineAutoTreeList-1cd718be.mjs +0 -523
  111. package/index-3ccda826.mjs +0 -239
  112. package/index-f3683351.mjs +0 -57
  113. package/useListButton-ee23874a.mjs +0 -719
@@ -0,0 +1,546 @@
1
+ var J = Object.defineProperty, Z = Object.defineProperties;
2
+ var z = Object.getOwnPropertyDescriptors;
3
+ var m = Object.getOwnPropertySymbols;
4
+ var j = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
5
+ var g = (e, t, l) => t in e ? J(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, D = (e, t) => {
6
+ for (var l in t || (t = {}))
7
+ j.call(t, l) && g(e, l, t[l]);
8
+ if (m)
9
+ for (var l of m(t))
10
+ ee.call(t, l) && g(e, l, t[l]);
11
+ return e;
12
+ }, L = (e, t) => Z(e, z(t));
13
+ import { defineComponent as te, getCurrentInstance as ae, ref as O, resolveComponent as b, openBlock as p, createElementBlock as le, Fragment as de, createVNode as h, mergeProps as ne, withCtx as y, createTextVNode as ie, createBlock as oe, createCommentVNode as re } from "vue";
14
+ import { JVxeTypes as o } from "/@/components/jeecg/JVxeTable/types";
15
+ import { u as ue } from "./useTableSync-dbfba20e.mjs";
16
+ import Ee from "./aiModal-6e338c79.mjs";
17
+ import { useModal as se } from "/@/components/Modal";
18
+ import { _ as Ie } from "./index-30c0a14f.mjs";
19
+ import "./cgform.data-0ca62d09.mjs";
20
+ import "/@/utils/dict";
21
+ import "/@/utils/dict/JDictSelectUtil";
22
+ import "/@/utils/uuid";
23
+ import "lodash-es";
24
+ import "/@/components/Icon";
25
+ import "/@/hooks/web/useMessage";
26
+ import "/@/utils/http/axios";
27
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
+ import "vue-router";
29
+ const Te = [
30
+ "ADD",
31
+ "ALL",
32
+ "ALTER",
33
+ "ANALYZE",
34
+ "AND",
35
+ "AS",
36
+ "ASC",
37
+ "ASENSITIVE",
38
+ "BEFORE",
39
+ "BETWEEN",
40
+ "BIGINT",
41
+ "BINARY",
42
+ "BLOB",
43
+ "BOTH",
44
+ "BY",
45
+ "CALL",
46
+ "CASCADE",
47
+ "CASE",
48
+ "CHANGE",
49
+ "CHAR",
50
+ "CHARACTER",
51
+ "CHECK",
52
+ "COLLATE",
53
+ "COLUMN",
54
+ "CONDITION",
55
+ "CONNECTION",
56
+ "CONSTRAINT",
57
+ "CONTINUE",
58
+ "CONVERT",
59
+ "CREATE",
60
+ "CROSS",
61
+ "CURRENT_DATE",
62
+ "CURRENT_TIME",
63
+ "CURRENT_TIMESTAMP",
64
+ "CURRENT_USER",
65
+ "CURSOR",
66
+ "DATABASE",
67
+ "DATABASES",
68
+ "DAY_HOUR",
69
+ "DAY_MICROSECOND",
70
+ "DAY_MINUTE",
71
+ "DAY_SECOND",
72
+ "DEC",
73
+ "DECIMAL",
74
+ "DECLARE",
75
+ "DEFAULT",
76
+ "DELAYED",
77
+ "DELETE",
78
+ "DESC",
79
+ "DESCRIBE",
80
+ "DETERMINISTIC",
81
+ "DISTINCT",
82
+ "DISTINCTROW",
83
+ "DIV",
84
+ "DOUBLE",
85
+ "DROP",
86
+ "DUAL",
87
+ "EACH",
88
+ "ELSE",
89
+ "ELSEIF",
90
+ "ENCLOSED",
91
+ "ESCAPED",
92
+ "EXISTS",
93
+ "EXIT",
94
+ "EXPLAIN",
95
+ "FALSE",
96
+ "FETCH",
97
+ "FLOAT",
98
+ "FLOAT4",
99
+ "FLOAT8",
100
+ "FOR",
101
+ "FORCE",
102
+ "FOREIGN",
103
+ "FROM",
104
+ "FULLTEXT",
105
+ "GOTO",
106
+ "GRANT",
107
+ "GROUP",
108
+ "HAVING",
109
+ "HIGH_PRIORITY",
110
+ "HOUR_MICROSECOND",
111
+ "HOUR_MINUTE",
112
+ "HOUR_SECOND",
113
+ "IF",
114
+ "IGNORE",
115
+ "IN",
116
+ "INDEX",
117
+ "INFILE",
118
+ "INNER",
119
+ "INOUT",
120
+ "INSENSITIVE",
121
+ "INSERT",
122
+ "INT",
123
+ "INT1",
124
+ "INT2",
125
+ "INT3",
126
+ "INT4",
127
+ "INT8",
128
+ "INTEGER",
129
+ "INTERVAL",
130
+ "INTO",
131
+ "IS",
132
+ "ITERATE",
133
+ "JOIN",
134
+ "KEY",
135
+ "KEYS",
136
+ "KILL",
137
+ "LABEL",
138
+ "LEADING",
139
+ "LEAVE",
140
+ "LEFT",
141
+ "LIKE",
142
+ "LIMIT",
143
+ "LINEAR",
144
+ "LINES",
145
+ "LOAD",
146
+ "LOCALTIME",
147
+ "LOCALTIMESTAMP",
148
+ "LOCK",
149
+ "LONG",
150
+ "LONGBLOB",
151
+ "LONGTEXT",
152
+ "LOOP",
153
+ "LOW_PRIORITY",
154
+ "MATCH",
155
+ "MEDIUMBLOB",
156
+ "MEDIUMINT",
157
+ "MEDIUMTEXT",
158
+ "MIDDLEINT",
159
+ "MINUTE_MICROSECOND",
160
+ "MINUTE_SECOND",
161
+ "MOD",
162
+ "MODIFIES",
163
+ "NATURAL",
164
+ "NOT",
165
+ "NO_WRITE_TO_BINLOG",
166
+ "NULL",
167
+ "NUMERIC",
168
+ "ON",
169
+ "OPTIMIZE",
170
+ "OPTION",
171
+ "OPTIONALLY",
172
+ "OR",
173
+ "ORDER",
174
+ "OUT",
175
+ "OUTER",
176
+ "OUTFILE",
177
+ "PRECISION",
178
+ "PRIMARY",
179
+ "PROCEDURE",
180
+ "PURGE",
181
+ "RAID0",
182
+ "RANGE",
183
+ "READ",
184
+ "READS",
185
+ "REAL",
186
+ "REFERENCES",
187
+ "REGEXP",
188
+ "RELEASE",
189
+ "RENAME",
190
+ "REPEAT",
191
+ "REPLACE",
192
+ "REQUIRE",
193
+ "RESTRICT",
194
+ "RETURN",
195
+ "REVOKE",
196
+ "RIGHT",
197
+ "RLIKE",
198
+ "SCHEMA",
199
+ "SCHEMAS",
200
+ "SECOND_MICROSECOND",
201
+ "SELECT",
202
+ "SENSITIVE",
203
+ "SEPARATOR",
204
+ "SET",
205
+ "SHOW",
206
+ "SMALLINT",
207
+ "SPATIAL",
208
+ "SPECIFIC",
209
+ "SQL",
210
+ "SQLEXCEPTION",
211
+ "SQLSTATE",
212
+ "SQLWARNING",
213
+ "SQL_BIG_RESULT",
214
+ "SQL_CALC_FOUND_ROWS",
215
+ "SQL_SMALL_RESULT",
216
+ "SSL",
217
+ "STARTING",
218
+ "STRAIGHT_JOIN",
219
+ "TABLE",
220
+ "TERMINATED",
221
+ "THEN",
222
+ "TINYBLOB",
223
+ "TINYINT",
224
+ "TINYTEXT",
225
+ "TO",
226
+ "TRAILING",
227
+ "TRIGGER",
228
+ "TRUE",
229
+ "UNDO",
230
+ "UNION",
231
+ "UNIQUE",
232
+ "UNLOCK",
233
+ "UNSIGNED",
234
+ "UPDATE",
235
+ "USAGE",
236
+ "USE",
237
+ "USING",
238
+ "UTC_DATE",
239
+ "UTC_TIME",
240
+ "UTC_TIMESTAMP",
241
+ "VALUES",
242
+ "VARBINARY",
243
+ "VARCHAR",
244
+ "VARCHARACTER",
245
+ "VARYING",
246
+ "WHEN",
247
+ "WHERE",
248
+ "WHILE",
249
+ "WITH",
250
+ "WRITE",
251
+ "X509",
252
+ "XOR",
253
+ "YEAR_MONTH",
254
+ "ZEROFILL"
255
+ ], Re = te({
256
+ name: "DBAttributeTable",
257
+ props: {
258
+ actionButton: { type: Boolean, default: !0 },
259
+ tableName: { type: String, default: "" },
260
+ isUpdate: { type: Boolean, default: !1 }
261
+ },
262
+ components: {
263
+ AiModal: Ee
264
+ },
265
+ emits: ["added", "removed", "inserted", "dragged", "syncDbType", "syncDbIsPersist", "syncDbIsNull"],
266
+ setup(e, { emit: t }) {
267
+ const l = ae(), A = O(!1), S = O([
268
+ {
269
+ title: "字段名称",
270
+ key: "dbFieldName",
271
+ width: 140,
272
+ type: o.input,
273
+ defaultValue: "",
274
+ placeholder: "请输入${title}",
275
+ validateRules: [
276
+ { required: !0, message: "${title}不能为空" },
277
+ {
278
+ pattern: /^[a-zA-Z]{1}(?!_)[a-zA-Z0-9_\\$]+$/,
279
+ message: "命名规则:只能由字母、数字、下划线、$符号组成;必须以字母开头;不能以单个字母加下滑线开头"
280
+ },
281
+ { unique: !0, message: "${title}不能重复" },
282
+ {
283
+ handler({ cellValue: a }, n) {
284
+ Te.includes(a.toUpperCase()) ? n(!1, a + "是关键字,不能作为字段名称使用!") : n(!0);
285
+ }
286
+ },
287
+ { handler: C },
288
+ // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
289
+ {
290
+ handler({ cellValue: a }, n) {
291
+ a.length > 32 ? n(!1, "字段名最长32个字符") : n(!0);
292
+ }
293
+ }
294
+ // update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
295
+ ],
296
+ disabled: !e.actionButton
297
+ },
298
+ {
299
+ title: "字段备注",
300
+ key: "dbFieldTxt",
301
+ width: 140,
302
+ type: o.input,
303
+ defaultValue: "",
304
+ placeholder: "请输入${title}",
305
+ validateRules: [
306
+ { required: !0, message: "${title}不能为空" },
307
+ // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
308
+ {
309
+ handler({ cellValue: a }, n) {
310
+ a.length > 200 ? n(!1, "字段名最长200个字") : n(!0);
311
+ }
312
+ }
313
+ // update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
314
+ ]
315
+ },
316
+ {
317
+ title: "字段长度",
318
+ key: "dbLength",
319
+ width: 120,
320
+ type: o.inputNumber,
321
+ defaultValue: 32,
322
+ placeholder: "请输入${title}",
323
+ validateRules: [{ required: !0, message: "${title}不能为空" }],
324
+ disabled: !e.actionButton
325
+ },
326
+ {
327
+ title: "小数点",
328
+ key: "dbPointLength",
329
+ width: 100,
330
+ type: o.inputNumber,
331
+ defaultValue: 0,
332
+ placeholder: "请输入${title}",
333
+ validateRules: [{ required: !0, message: "${title}不能为空" }],
334
+ disabled: !e.actionButton
335
+ },
336
+ {
337
+ title: "默认值",
338
+ key: "dbDefaultVal",
339
+ width: 140,
340
+ type: o.input,
341
+ defaultValue: "",
342
+ disabled: !e.actionButton
343
+ },
344
+ {
345
+ title: "字段类型",
346
+ key: "dbType",
347
+ width: 140,
348
+ type: o.select,
349
+ options: [
350
+ { title: "String", value: "string" },
351
+ { title: "Integer", value: "int" },
352
+ { title: "Double", value: "double" },
353
+ { title: "Date", value: "Date" },
354
+ { title: "Datetime", value: "Datetime" },
355
+ { title: "BigDecimal", value: "BigDecimal" },
356
+ { title: "Text", value: "Text" },
357
+ { title: "Blob", value: "Blob" }
358
+ ],
359
+ defaultValue: "string",
360
+ placeholder: "请选择${title}",
361
+ disabled: !e.actionButton,
362
+ validateRules: [{ required: !0, message: "请选择${title}" }, { handler: q }]
363
+ },
364
+ {
365
+ title: "主键",
366
+ key: "dbIsKey",
367
+ width: 80,
368
+ type: o.checkbox,
369
+ align: "center",
370
+ customValue: ["1", "0"],
371
+ defaultChecked: !1,
372
+ disabled: !e.actionButton
373
+ },
374
+ {
375
+ title: "允许空值",
376
+ key: "dbIsNull",
377
+ width: 80,
378
+ type: o.checkbox,
379
+ customValue: ["1", "0"],
380
+ defaultChecked: !0,
381
+ disabled: !e.actionButton
382
+ },
383
+ {
384
+ title: "同步数据库",
385
+ key: "dbIsPersist",
386
+ minWidth: 80,
387
+ type: o.checkbox,
388
+ customValue: ["1", "0"],
389
+ defaultChecked: !0,
390
+ disabled: !e.actionButton
391
+ },
392
+ { title: "orderNum", key: "orderNum", type: o.hidden }
393
+ ]);
394
+ let I = [];
395
+ const T = ue(S), { tableRef: s, loading: R, dataSource: B, tableHeight: U, tableProps: M, setDataSource: v, validateData: _ } = T, f = O(!1), [F, { openModal: V }] = se(), G = (a) => {
396
+ s.value.addRows(a);
397
+ };
398
+ function P() {
399
+ t("added", l);
400
+ }
401
+ function H(a) {
402
+ I = I.concat(a.deleteRows.map((n) => n.id)), t("removed", L(D({}, a), { removeIds: I, target: l }));
403
+ }
404
+ function w(a) {
405
+ t("dragged", {
406
+ oldIndex: a.oldIndex,
407
+ newIndex: a.newIndex,
408
+ target: l
409
+ });
410
+ }
411
+ function k(a) {
412
+ t("inserted", L(D({}, a), { target: l }));
413
+ }
414
+ function Y() {
415
+ return I;
416
+ }
417
+ function $(a) {
418
+ let { type: n, row: d, col: r, value: i, target: u, oldValue: E } = a;
419
+ n === o.select && r.key === "dbType" ? ((i === "Date" || i === "Datetime") && t("syncDbType", { row: d, value: i, target: l }), (i !== "Date" || i !== "Datetime") && (E == "Date" || E == "Datetime") && t("syncDbType", { row: d, value: i, target: l }), i === "Blob" || i === "Text" || i === "Date" ? u.setValues([{ rowKey: d.id, values: { dbLength: "0" } }]) : i === "string" ? u.setValues([{ rowKey: d.id, values: { dbLength: "32" } }]) : i === "int" || i === "double" || i === "BigDecimal" ? u.setValues([{ rowKey: d.id, values: { dbLength: "10" } }]) : d.dbLength === "0" && u.setValues([{ rowKey: d.id, values: { dbLength: "32" } }])) : r.key === "dbIsPersist" ? t("syncDbIsPersist", { row: d, value: i, target: l }) : r.key === "dbIsNull" && t("syncDbIsNull", { row: d, value: i, target: l });
420
+ }
421
+ function x(a, n, d) {
422
+ var r;
423
+ if (a === "has_child")
424
+ return !0;
425
+ if (a === "id") {
426
+ const { tables: i } = T, E = ((r = i.dbTable.value.tableRef.getTableData()) != null ? r : []).findIndex((N) => N.dbFieldName === "id");
427
+ if ((E === -1 ? 0 : E) === d)
428
+ return !0;
429
+ }
430
+ return !1;
431
+ }
432
+ function K(a) {
433
+ s.value.pushRows(a), A.value || t("added", l);
434
+ }
435
+ function W(a) {
436
+ return s.value.removeRowsById(a);
437
+ }
438
+ function X() {
439
+ A.value = !0, R.value = !0;
440
+ }
441
+ function Q() {
442
+ A.value = !1, R.value = !1, t("added", l);
443
+ }
444
+ function C({ cellValue: a, row: n }, d) {
445
+ const { tables: r } = T;
446
+ if (r) {
447
+ let u = r.dbTable.value.tableRef.dataSource.filter((N) => N.id === n.id);
448
+ (!u || u.length <= 0) && d(!0);
449
+ let E = u[0].dbFieldName;
450
+ E == a && d(!0);
451
+ let c = r.idxTable.value.tableRef.getTableData();
452
+ for (let N of c)
453
+ N.indexField.split(",").indexOf(E) >= 0 && d(!1, "当前字段存在索引配置,请先删除索引再修改字段");
454
+ }
455
+ d(!0);
456
+ }
457
+ function q({ cellValue: a, row: n }, d) {
458
+ n.dbType == "int" && n.dbPointLength > 0 && d(!1, "设置了小数点不可设置integer类型"), d(!0);
459
+ }
460
+ return {
461
+ tableRef: s,
462
+ loading: R,
463
+ columns: S,
464
+ dataSource: B,
465
+ setDataSource: v,
466
+ addBatchBegin: X,
467
+ addBatchEnd: Q,
468
+ tableAddLine: K,
469
+ tableHeight: U,
470
+ tableProps: M,
471
+ tableDeleteLines: W,
472
+ handleAdded: P,
473
+ handleRemoved: H,
474
+ handleDragged: w,
475
+ handleInserted: k,
476
+ handleValueChange: $,
477
+ handleDisabledDbFieldName: x,
478
+ validateData: _,
479
+ getRemoveIds: Y,
480
+ validateExistIndex: C,
481
+ openAiModal: () => {
482
+ f.value = !0, setTimeout(() => {
483
+ V(!0);
484
+ }, 0);
485
+ },
486
+ registerAiModal: F,
487
+ aiModalShow: f,
488
+ handleGenerate: G
489
+ };
490
+ }
491
+ });
492
+ function Ne(e, t, l, A, S, I) {
493
+ const T = b("a-button"), s = b("JVxeTable"), R = b("AiModal");
494
+ return p(), le(de, null, [
495
+ h(s, ne({
496
+ class: "dBAttributeTable",
497
+ ref: "tableRef",
498
+ rowNumber: "",
499
+ rowSelection: "",
500
+ dragSort: "",
501
+ notAllowDrag: [{ key: "dbFieldName", value: "id" }],
502
+ keyboardEdit: "",
503
+ sortKey: "orderNum",
504
+ addButtonSettings: "",
505
+ loading: e.loading,
506
+ columns: e.columns,
507
+ dataSource: e.dataSource,
508
+ toolbar: e.actionButton,
509
+ maxHeight: e.tableHeight.normal,
510
+ disabledRows: { dbFieldName: e.handleDisabledDbFieldName }
511
+ }, e.tableProps, {
512
+ onAdded: e.handleAdded,
513
+ onRemoved: e.handleRemoved,
514
+ onDragged: e.handleDragged,
515
+ onInserted: e.handleInserted,
516
+ onValueChange: e.handleValueChange
517
+ }), {
518
+ toolbarSuffix: y(() => [
519
+ h(T, {
520
+ type: "primary",
521
+ preIcon: "ant-design:robot-outlined",
522
+ onClick: e.openAiModal
523
+ }, {
524
+ default: y(() => t[1] || (t[1] = [
525
+ ie("AI字段建议")
526
+ ])),
527
+ _: 1
528
+ }, 8, ["onClick"])
529
+ ]),
530
+ _: 1
531
+ }, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "disabledRows", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]),
532
+ e.aiModalShow ? (p(), oe(R, {
533
+ key: 0,
534
+ tableName: e.tableName,
535
+ isUpdate: e.isUpdate,
536
+ onRegister: e.registerAiModal,
537
+ onClose: t[0] || (t[0] = () => e.aiModalShow = !1),
538
+ DBtableRef: e.tableRef,
539
+ onGenerate: e.handleGenerate
540
+ }, null, 8, ["tableName", "isUpdate", "onRegister", "DBtableRef", "onGenerate"])) : re("", !0)
541
+ ], 64);
542
+ }
543
+ const Ve = /* @__PURE__ */ Ie(Re, [["render", Ne], ["__scopeId", "data-v-f472c6ed"]]);
544
+ export {
545
+ Ve as default
546
+ };
@@ -5,7 +5,7 @@ import { BasicModal as A, useModalInner as P } from "/@/components/Modal";
5
5
  import { useListTable as q } from "/@/hooks/system/useListPage";
6
6
  import { useMessage as O } from "/@/hooks/web/useMessage";
7
7
  import { useDesign as V } from "/@/hooks/web/useDesign";
8
- import { _ as j } from "./index-f3683351.mjs";
8
+ import { _ as j } from "./index-30c0a14f.mjs";
9
9
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
10
10
  import "vue-router";
11
11
  const x = D({
@@ -37,10 +37,10 @@ import { getFileAccessHttpUrl as he } from "/@/utils/common/compUtils";
37
37
  import { createImgPreview as ge } from "/@/components/Preview/index";
38
38
  import { useMessage as ve } from "/@/hooks/web/useMessage";
39
39
  import { DownloadOutlined as we, EyeOutlined as ye, PaperClipOutlined as ke } from "@ant-design/icons-vue";
40
- import { L as De } from "./useExtendComponent-3f5734ca.mjs";
40
+ import { L as De } from "./useExtendComponent-d1db211d.mjs";
41
41
  import { MarkdownViewer as Fe } from "/@/components/Markdown";
42
42
  import { getWeekMonthQuarterYear as Ce } from "/@/utils";
43
- import { _ as be } from "./index-f3683351.mjs";
43
+ import { _ as be } from "./index-30c0a14f.mjs";
44
44
  import "/@/components/Form/src/componentMap";
45
45
  import "/@/components/Modal";
46
46
  import "/@/components/Form/index";
@@ -55,14 +55,14 @@ import "/@/store/modules/permission";
55
55
  import "/@/components/Table";
56
56
  import "/@/hooks/system/useListPage";
57
57
  import "vue-router";
58
- import "./LinkTableListPiece-179035c7.mjs";
58
+ import "./LinkTableListPiece-4187ad7d.mjs";
59
59
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
60
60
  import "/@/utils/auth";
61
61
  import "/@/hooks/web/useAppInject";
62
62
  import "/@/assets/images/placeholderImage.png";
63
- import "./OnlineSelectCascade-a3e686b3.mjs";
63
+ import "./OnlineSelectCascade-b218691c.mjs";
64
64
  import "/@/components/Loading";
65
- import "./JModalTip-192fafa1.mjs";
65
+ import "./JModalTip-b1d19eaa.mjs";
66
66
  import "ant-design-vue";
67
67
  import "@vueuse/core";
68
68
  function xe(a) {
@@ -480,7 +480,7 @@ function Xe(a, s, d, k, b, L) {
480
480
  })
481
481
  ], 2);
482
482
  }
483
- const Ut = /* @__PURE__ */ be(Te, [["render", Xe], ["__scopeId", "data-v-05ca0a61"]]);
483
+ const Ut = /* @__PURE__ */ be(Te, [["render", Xe], ["__scopeId", "data-v-61e06388"]]);
484
484
  export {
485
485
  Ut as default
486
486
  };
@@ -2,7 +2,7 @@ import { Menu as a } from "ant-design-vue";
2
2
  import { defineComponent as u, getCurrentInstance as l, computed as f, resolveComponent as m, openBlock as _, createBlock as d, withCtx as I, createElementVNode as p, createVNode as y, toDisplayString as K } from "vue";
3
3
  import M from "/@/components/Icon/index";
4
4
  import { propTypes as r } from "/@/utils/propTypes";
5
- import { _ as g } from "./index-f3683351.mjs";
5
+ import { _ as g } from "./index-30c0a14f.mjs";
6
6
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
7
  import "/@/hooks/web/useMessage";
8
8
  import "vue-router";
@@ -33,7 +33,7 @@ import { useListPage as de } from "/@/hooks/system/useListPage";
33
33
  import { u as pe } from "./useOnlineTest-e4bd8be3.mjs";
34
34
  import { u as fe, a as ge } from "./enhance.data-6601ff44.mjs";
35
35
  import { a as be, b as Ce, d as L } from "./enhance.api-138e6826.mjs";
36
- import { _ as ve } from "./index-f3683351.mjs";
36
+ import { _ as ve } from "./index-30c0a14f.mjs";
37
37
  import "./cgform.data-0ca62d09.mjs";
38
38
  import "/@/utils/dict";
39
39
  import "/@/utils/dict/JDictSelectUtil";
@@ -32,7 +32,7 @@ import { JCodeEditor as z } from "/@/components/Form";
32
32
  import "/@/store";
33
33
  import { defineStore as P } from "pinia";
34
34
  import { createLocalStorage as q } from "/@/utils/cache";
35
- import { _ as G } from "./index-f3683351.mjs";
35
+ import { _ as G } from "./index-30c0a14f.mjs";
36
36
  const B = q(), H = "enhance_", K = P({
37
37
  id: "online-cgform-enhance",
38
38
  state: () => ({
@@ -173,7 +173,7 @@ function W(e, n, t, u, f, m) {
173
173
  _: 1
174
174
  }, 8, ["onRegister", "confirmLoading", "onCancel"]);
175
175
  }
176
- const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-a2408ade"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
176
+ const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-f79a0535"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
177
177
  __proto__: null,
178
178
  default: X
179
179
  }, Symbol.toStringTag, { value: "Module" }));