@jeecg/online 1.0.1 → 3.4.3-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 (91) hide show
  1. package/AuthButtonConfig.js +14 -7
  2. package/AuthButtonTree.js +3 -5
  3. package/AuthDataConfig.js +9 -6
  4. package/AuthDataTree.js +3 -5
  5. package/AuthFieldConfig.js +15 -12
  6. package/AuthFieldTree.js +24 -18
  7. package/AuthManagerDrawer.js +1 -1
  8. package/AuthSetterModal.js +1 -0
  9. package/CgformCopyList.js +34 -22
  10. package/CgformModal.js +57 -50
  11. package/CgreportModal.js +32 -39
  12. package/CheckDictTable.js +144 -24
  13. package/CodeFileListModal.js +175 -0
  14. package/CodeFileViewModal.js +325 -0
  15. package/CodeGeneratorModal.js +41 -38
  16. package/CustomButtonList.js +19 -22
  17. package/DBAttributeTable.js +248 -12
  18. package/DbToOnlineModal.js +27 -25
  19. package/DetailForm.js +605 -0
  20. package/EnhanceJavaModal.js +11 -17
  21. package/EnhanceJsHistory.js +6 -8
  22. package/EnhanceJsModal.js +9 -16
  23. package/EnhanceSqlModal.js +11 -17
  24. package/ExtendConfigModal.js +24 -15
  25. package/ForeignKeyTable.js +4 -3
  26. package/FormSchemaFactory.js +163 -30
  27. package/IndexTable.js +6 -5
  28. package/JModalTip.js +54 -0
  29. package/JOnlineSearchSelect.js +18 -10
  30. package/LeftDepart.js +1 -1
  31. package/LeftRole.js +7 -4
  32. package/LeftUser.js +7 -4
  33. package/LinkTableConfigModal.js +289 -0
  34. package/LinkTableFieldConfigModal.js +218 -0
  35. package/LinkTableListPiece.js +36 -0
  36. package/ModalFormDemo.js +3 -2
  37. package/OnlineAutoList.js +154 -55
  38. package/OnlineAutoModal.js +88 -131
  39. package/OnlineAutoTreeList.js +93 -53
  40. package/OnlineCustomModal.js +30 -14
  41. package/OnlineDetailModal.js +184 -0
  42. package/OnlineForm.js +259 -141
  43. package/OnlineFormDetail.js +326 -0
  44. package/OnlineQueryForm.js +72 -40
  45. package/OnlineSearchFormItem.js +26 -18
  46. package/OnlineSelectCascade.js +67 -53
  47. package/OnlineSubFormDetail.js +167 -0
  48. package/OnlineSuperQuery.js +69 -74
  49. package/OnlineSuperQueryValComponent.js +1 -0
  50. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
  51. package/PageAttributeTable.js +233 -30
  52. package/ProcessOnlineForm.js +41 -16
  53. package/QueryTable.js +4 -3
  54. package/README.md +3 -8
  55. package/_arrayPush.js +5 -3
  56. package/{cloneDeep.js → _baseClone.js} +5 -9
  57. package/_baseSlice.js +18 -0
  58. package/_commonjsHelpers.js +5 -0
  59. package/_flatRest.js +174 -0
  60. package/auth.data.js +1 -3
  61. package/cgform.data.js +18 -9
  62. package/enhance.api.js +27 -18
  63. package/index.js +16 -6
  64. package/index2.js +48 -45
  65. package/index3.js +29 -26
  66. package/isArray.js +1 -1
  67. package/omit.js +60 -0
  68. package/package.json +1 -1
  69. package/pick.js +3 -173
  70. package/style.css +1 -1
  71. package/toString.js +2 -2
  72. package/useAutoForm.js +3437 -3791
  73. package/useCgformList.js +44 -31
  74. package/{useTableColumns.js → useListButton.js} +212 -407
  75. package/useOnlineTest.js +5 -26827
  76. package/useSchemas.js +364 -230
  77. package/useTableSync.js +19 -7
  78. package/ChartAutoRender.js +0 -69
  79. package/ChartDoubleRender.js +0 -154
  80. package/ChartSingleRender.js +0 -132
  81. package/ChartTabsRender.js +0 -218
  82. package/ErrorTip.js +0 -21
  83. package/FieldTable.js +0 -185
  84. package/GraphreportAutoChart.js +0 -352
  85. package/GraphreportList.js +0 -239
  86. package/GraphreportModal.js +0 -559
  87. package/OnlineSubForm.js +0 -200
  88. package/ParamsTable.js +0 -71
  89. package/graphreport.api.js +0 -23
  90. package/useChartRender.js +0 -405
  91. package/useMessageOnline.js +0 -71
@@ -34,7 +34,7 @@ var __async = (__this, __arguments, generator) => {
34
34
  step((generator = generator.apply(__this, __arguments)).next());
35
35
  });
36
36
  };
37
- import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, createTextVNode, nextTick } from "vue";
37
+ import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
38
38
  import { u as useOnlineTest } from "./useOnlineTest.js";
39
39
  import { useListPage } from "/@/hooks/system/useListPage";
40
40
  import { BasicTable, TableAction } from "/@/components/Table";
@@ -42,18 +42,20 @@ import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
42
42
  import { BasicForm, useForm } from "/@/components/Form";
43
43
  import { defHttp } from "/@/utils/http/axios";
44
44
  import { _ as _export_sfc } from "./index.js";
45
- import "/@/hooks/web/useMessage";
46
- import "/@/utils/cache";
47
45
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
46
+ import "/@/hooks/web/useMessage";
48
47
  import "vue-router";
49
48
  const list = (code, params) => defHttp.get({ url: "/online/cgform/button/list/" + code, params });
50
49
  function doBatchDelete(idList) {
51
- return defHttp.delete({
52
- url: "/online/cgform/button/deleteBatch",
53
- params: {
54
- ids: idList.join(",")
55
- }
56
- }, { joinParamsToUrl: true });
50
+ return defHttp.delete(
51
+ {
52
+ url: "/online/cgform/button/deleteBatch",
53
+ params: {
54
+ ids: idList.join(",")
55
+ }
56
+ },
57
+ { joinParamsToUrl: true }
58
+ );
57
59
  }
58
60
  const saveOrUpdate = (params, isUpdate) => {
59
61
  if (isUpdate) {
@@ -200,7 +202,7 @@ const _sfc_main = defineComponent({
200
202
  code.value = data.row.id;
201
203
  reload();
202
204
  }));
203
- const { aiTestMode, genButtons } = useOnlineTest({}, { reload }, null);
205
+ const { aiTestMode, genButtons } = useOnlineTest();
204
206
  const [registerFormModal, formModal] = useModal();
205
207
  const isUpdate = ref(false);
206
208
  const formModalProps = reactive({
@@ -295,15 +297,10 @@ const _sfc_main = defineComponent({
295
297
  };
296
298
  }
297
299
  });
298
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
299
- const _hoisted_2 = {
300
+ const _hoisted_1 = {
300
301
  key: 0,
301
302
  style: { "float": "left" }
302
303
  };
303
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
304
- const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
305
- const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
306
- const _hoisted_6 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
307
304
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
308
305
  const _component_a_button = resolveComponent("a-button");
309
306
  const _component_a_icon = resolveComponent("a-icon");
@@ -325,14 +322,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
325
322
  footer: withCtx(() => [
326
323
  createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
327
324
  default: withCtx(() => [
328
- _hoisted_1
325
+ createTextVNode("\u5173\u95ED")
329
326
  ]),
330
327
  _: 1
331
328
  }, 8, ["onClick"]),
332
- _ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_2, [
329
+ _ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
333
330
  createVNode(_component_a_button, { onClick: _ctx.onGenButtons }, {
334
331
  default: withCtx(() => [
335
- _hoisted_3
332
+ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
336
333
  ]),
337
334
  _: 1
338
335
  }, 8, ["onClick"])
@@ -350,7 +347,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
350
347
  preIcon: "ant-design:plus"
351
348
  }, {
352
349
  default: withCtx(() => [
353
- _hoisted_4
350
+ createTextVNode("\u65B0\u589E")
354
351
  ]),
355
352
  _: 1
356
353
  }, 8, ["onClick"]),
@@ -364,7 +361,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
364
361
  }, {
365
362
  default: withCtx(() => [
366
363
  createVNode(_component_a_icon, { type: "delete" }),
367
- _hoisted_5
364
+ createTextVNode(" \u5220\u9664 ")
368
365
  ]),
369
366
  _: 1
370
367
  }, 8, ["onClick"])
@@ -375,7 +372,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
375
372
  default: withCtx(() => [
376
373
  createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
377
374
  default: withCtx(() => [
378
- _hoisted_6,
375
+ createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
379
376
  createVNode(_component_a_icon, { type: "down" })
380
377
  ]),
381
378
  _: 1
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, getCurrentInstance, ref, resolveComponent, openBlock, createBlock } from "vue";
20
+ import { defineComponent, getCurrentInstance, ref, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
21
21
  import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
22
22
  import { u as useTableSync } from "./useTableSync.js";
23
23
  import { _ as _export_sfc } from "./index.js";
@@ -26,13 +26,240 @@ import "/@/utils/dict";
26
26
  import "/@/utils/dict/JDictSelectUtil";
27
27
  import "/@/utils/uuid";
28
28
  import "./pick.js";
29
+ import "./_flatRest.js";
29
30
  import "./isArray.js";
30
31
  import "./toString.js";
31
32
  import "./_arrayPush.js";
32
33
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
33
34
  import "/@/hooks/web/useMessage";
34
35
  import "vue-router";
35
- const MySQLKeywords = ["ADD", "ALL", "ALTER", "ANALYZE", "AND", "AS", "ASC", "ASENSITIVE", "BEFORE", "BETWEEN", "BIGINT", "BINARY", "BLOB", "BOTH", "BY", "CALL", "CASCADE", "CASE", "CHANGE", "CHAR", "CHARACTER", "CHECK", "COLLATE", "COLUMN", "CONDITION", "CONNECTION", "CONSTRAINT", "CONTINUE", "CONVERT", "CREATE", "CROSS", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURSOR", "DATABASE", "DATABASES", "DAY_HOUR", "DAY_MICROSECOND", "DAY_MINUTE", "DAY_SECOND", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DELAYED", "DELETE", "DESC", "DESCRIBE", "DETERMINISTIC", "DISTINCT", "DISTINCTROW", "DIV", "DOUBLE", "DROP", "DUAL", "EACH", "ELSE", "ELSEIF", "ENCLOSED", "ESCAPED", "EXISTS", "EXIT", "EXPLAIN", "FALSE", "FETCH", "FLOAT", "FLOAT4", "FLOAT8", "FOR", "FORCE", "FOREIGN", "FROM", "FULLTEXT", "GOTO", "GRANT", "GROUP", "HAVING", "HIGH_PRIORITY", "HOUR_MICROSECOND", "HOUR_MINUTE", "HOUR_SECOND", "IF", "IGNORE", "IN", "INDEX", "INFILE", "INNER", "INOUT", "INSENSITIVE", "INSERT", "INT", "INT1", "INT2", "INT3", "INT4", "INT8", "INTEGER", "INTERVAL", "INTO", "IS", "ITERATE", "JOIN", "KEY", "KEYS", "KILL", "LABEL", "LEADING", "LEAVE", "LEFT", "LIKE", "LIMIT", "LINEAR", "LINES", "LOAD", "LOCALTIME", "LOCALTIMESTAMP", "LOCK", "LONG", "LONGBLOB", "LONGTEXT", "LOOP", "LOW_PRIORITY", "MATCH", "MEDIUMBLOB", "MEDIUMINT", "MEDIUMTEXT", "MIDDLEINT", "MINUTE_MICROSECOND", "MINUTE_SECOND", "MOD", "MODIFIES", "NATURAL", "NOT", "NO_WRITE_TO_BINLOG", "NULL", "NUMERIC", "ON", "OPTIMIZE", "OPTION", "OPTIONALLY", "OR", "ORDER", "OUT", "OUTER", "OUTFILE", "PRECISION", "PRIMARY", "PROCEDURE", "PURGE", "RAID0", "RANGE", "READ", "READS", "REAL", "REFERENCES", "REGEXP", "RELEASE", "RENAME", "REPEAT", "REPLACE", "REQUIRE", "RESTRICT", "RETURN", "REVOKE", "RIGHT", "RLIKE", "SCHEMA", "SCHEMAS", "SECOND_MICROSECOND", "SELECT", "SENSITIVE", "SEPARATOR", "SET", "SHOW", "SMALLINT", "SPATIAL", "SPECIFIC", "SQL", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "SQL_BIG_RESULT", "SQL_CALC_FOUND_ROWS", "SQL_SMALL_RESULT", "SSL", "STARTING", "STRAIGHT_JOIN", "TABLE", "TERMINATED", "THEN", "TINYBLOB", "TINYINT", "TINYTEXT", "TO", "TRAILING", "TRIGGER", "TRUE", "UNDO", "UNION", "UNIQUE", "UNLOCK", "UNSIGNED", "UPDATE", "USAGE", "USE", "USING", "UTC_DATE", "UTC_TIME", "UTC_TIMESTAMP", "VALUES", "VARBINARY", "VARCHAR", "VARCHARACTER", "VARYING", "WHEN", "WHERE", "WHILE", "WITH", "WRITE", "X509", "XOR", "YEAR_MONTH", "ZEROFILL"];
36
+ const MySQLKeywords = [
37
+ "ADD",
38
+ "ALL",
39
+ "ALTER",
40
+ "ANALYZE",
41
+ "AND",
42
+ "AS",
43
+ "ASC",
44
+ "ASENSITIVE",
45
+ "BEFORE",
46
+ "BETWEEN",
47
+ "BIGINT",
48
+ "BINARY",
49
+ "BLOB",
50
+ "BOTH",
51
+ "BY",
52
+ "CALL",
53
+ "CASCADE",
54
+ "CASE",
55
+ "CHANGE",
56
+ "CHAR",
57
+ "CHARACTER",
58
+ "CHECK",
59
+ "COLLATE",
60
+ "COLUMN",
61
+ "CONDITION",
62
+ "CONNECTION",
63
+ "CONSTRAINT",
64
+ "CONTINUE",
65
+ "CONVERT",
66
+ "CREATE",
67
+ "CROSS",
68
+ "CURRENT_DATE",
69
+ "CURRENT_TIME",
70
+ "CURRENT_TIMESTAMP",
71
+ "CURRENT_USER",
72
+ "CURSOR",
73
+ "DATABASE",
74
+ "DATABASES",
75
+ "DAY_HOUR",
76
+ "DAY_MICROSECOND",
77
+ "DAY_MINUTE",
78
+ "DAY_SECOND",
79
+ "DEC",
80
+ "DECIMAL",
81
+ "DECLARE",
82
+ "DEFAULT",
83
+ "DELAYED",
84
+ "DELETE",
85
+ "DESC",
86
+ "DESCRIBE",
87
+ "DETERMINISTIC",
88
+ "DISTINCT",
89
+ "DISTINCTROW",
90
+ "DIV",
91
+ "DOUBLE",
92
+ "DROP",
93
+ "DUAL",
94
+ "EACH",
95
+ "ELSE",
96
+ "ELSEIF",
97
+ "ENCLOSED",
98
+ "ESCAPED",
99
+ "EXISTS",
100
+ "EXIT",
101
+ "EXPLAIN",
102
+ "FALSE",
103
+ "FETCH",
104
+ "FLOAT",
105
+ "FLOAT4",
106
+ "FLOAT8",
107
+ "FOR",
108
+ "FORCE",
109
+ "FOREIGN",
110
+ "FROM",
111
+ "FULLTEXT",
112
+ "GOTO",
113
+ "GRANT",
114
+ "GROUP",
115
+ "HAVING",
116
+ "HIGH_PRIORITY",
117
+ "HOUR_MICROSECOND",
118
+ "HOUR_MINUTE",
119
+ "HOUR_SECOND",
120
+ "IF",
121
+ "IGNORE",
122
+ "IN",
123
+ "INDEX",
124
+ "INFILE",
125
+ "INNER",
126
+ "INOUT",
127
+ "INSENSITIVE",
128
+ "INSERT",
129
+ "INT",
130
+ "INT1",
131
+ "INT2",
132
+ "INT3",
133
+ "INT4",
134
+ "INT8",
135
+ "INTEGER",
136
+ "INTERVAL",
137
+ "INTO",
138
+ "IS",
139
+ "ITERATE",
140
+ "JOIN",
141
+ "KEY",
142
+ "KEYS",
143
+ "KILL",
144
+ "LABEL",
145
+ "LEADING",
146
+ "LEAVE",
147
+ "LEFT",
148
+ "LIKE",
149
+ "LIMIT",
150
+ "LINEAR",
151
+ "LINES",
152
+ "LOAD",
153
+ "LOCALTIME",
154
+ "LOCALTIMESTAMP",
155
+ "LOCK",
156
+ "LONG",
157
+ "LONGBLOB",
158
+ "LONGTEXT",
159
+ "LOOP",
160
+ "LOW_PRIORITY",
161
+ "MATCH",
162
+ "MEDIUMBLOB",
163
+ "MEDIUMINT",
164
+ "MEDIUMTEXT",
165
+ "MIDDLEINT",
166
+ "MINUTE_MICROSECOND",
167
+ "MINUTE_SECOND",
168
+ "MOD",
169
+ "MODIFIES",
170
+ "NATURAL",
171
+ "NOT",
172
+ "NO_WRITE_TO_BINLOG",
173
+ "NULL",
174
+ "NUMERIC",
175
+ "ON",
176
+ "OPTIMIZE",
177
+ "OPTION",
178
+ "OPTIONALLY",
179
+ "OR",
180
+ "ORDER",
181
+ "OUT",
182
+ "OUTER",
183
+ "OUTFILE",
184
+ "PRECISION",
185
+ "PRIMARY",
186
+ "PROCEDURE",
187
+ "PURGE",
188
+ "RAID0",
189
+ "RANGE",
190
+ "READ",
191
+ "READS",
192
+ "REAL",
193
+ "REFERENCES",
194
+ "REGEXP",
195
+ "RELEASE",
196
+ "RENAME",
197
+ "REPEAT",
198
+ "REPLACE",
199
+ "REQUIRE",
200
+ "RESTRICT",
201
+ "RETURN",
202
+ "REVOKE",
203
+ "RIGHT",
204
+ "RLIKE",
205
+ "SCHEMA",
206
+ "SCHEMAS",
207
+ "SECOND_MICROSECOND",
208
+ "SELECT",
209
+ "SENSITIVE",
210
+ "SEPARATOR",
211
+ "SET",
212
+ "SHOW",
213
+ "SMALLINT",
214
+ "SPATIAL",
215
+ "SPECIFIC",
216
+ "SQL",
217
+ "SQLEXCEPTION",
218
+ "SQLSTATE",
219
+ "SQLWARNING",
220
+ "SQL_BIG_RESULT",
221
+ "SQL_CALC_FOUND_ROWS",
222
+ "SQL_SMALL_RESULT",
223
+ "SSL",
224
+ "STARTING",
225
+ "STRAIGHT_JOIN",
226
+ "TABLE",
227
+ "TERMINATED",
228
+ "THEN",
229
+ "TINYBLOB",
230
+ "TINYINT",
231
+ "TINYTEXT",
232
+ "TO",
233
+ "TRAILING",
234
+ "TRIGGER",
235
+ "TRUE",
236
+ "UNDO",
237
+ "UNION",
238
+ "UNIQUE",
239
+ "UNLOCK",
240
+ "UNSIGNED",
241
+ "UPDATE",
242
+ "USAGE",
243
+ "USE",
244
+ "USING",
245
+ "UTC_DATE",
246
+ "UTC_TIME",
247
+ "UTC_TIMESTAMP",
248
+ "VALUES",
249
+ "VARBINARY",
250
+ "VARCHAR",
251
+ "VARCHARACTER",
252
+ "VARYING",
253
+ "WHEN",
254
+ "WHERE",
255
+ "WHILE",
256
+ "WITH",
257
+ "WRITE",
258
+ "X509",
259
+ "XOR",
260
+ "YEAR_MONTH",
261
+ "ZEROFILL"
262
+ ];
36
263
  const _sfc_main = defineComponent({
37
264
  name: "DBAttributeTable",
38
265
  props: {
@@ -125,9 +352,7 @@ const _sfc_main = defineComponent({
125
352
  defaultValue: "string",
126
353
  placeholder: "\u8BF7\u9009\u62E9${title}",
127
354
  disabled: !props.actionButton,
128
- validateRules: [
129
- { required: true, message: "\u8BF7\u9009\u62E9${title}" }
130
- ]
355
+ validateRules: [{ required: true, message: "\u8BF7\u9009\u62E9${title}" }]
131
356
  },
132
357
  {
133
358
  title: "\u4E3B\u952E",
@@ -142,6 +367,15 @@ const _sfc_main = defineComponent({
142
367
  {
143
368
  title: "\u5141\u8BB8\u7A7A\u503C",
144
369
  key: "dbIsNull",
370
+ width: 80,
371
+ type: JVxeTypes.checkbox,
372
+ customValue: ["1", "0"],
373
+ defaultChecked: true,
374
+ disabled: !props.actionButton
375
+ },
376
+ {
377
+ title: "\u540C\u6B65\u6570\u636E\u5E93",
378
+ key: "dbIsPersist",
145
379
  minWidth: 80,
146
380
  type: JVxeTypes.checkbox,
147
381
  customValue: ["1", "0"],
@@ -152,7 +386,7 @@ const _sfc_main = defineComponent({
152
386
  ]);
153
387
  let removeIds = [];
154
388
  const setup = useTableSync(columns);
155
- const { tableRef, loading, dataSource, tableHeight, setDataSource, validateData } = setup;
389
+ const { tableRef, loading, dataSource, tableHeight, tableProps, setDataSource, validateData } = setup;
156
390
  function handleAdded() {
157
391
  emit("added", instance);
158
392
  }
@@ -180,11 +414,11 @@ const _sfc_main = defineComponent({
180
414
  emit("syncDbType", { row, value, target: instance });
181
415
  }
182
416
  if (value === "Blob" || value === "Text" || value === "Date") {
183
- target.ctx.setValues([{ rowKey: row.id, values: { dbLength: "0" } }]);
417
+ target.setValues([{ rowKey: row.id, values: { dbLength: "0" } }]);
184
418
  } else if (value === "int" || value === "double" || value === "BigDecimal") {
185
- target.ctx.setValues([{ rowKey: row.id, values: { dbLength: "10" } }]);
419
+ target.setValues([{ rowKey: row.id, values: { dbLength: "10" } }]);
186
420
  } else if (row["dbLength"] === "0") {
187
- target.ctx.setValues([{ rowKey: row.id, values: { dbLength: "32" } }]);
421
+ target.setValues([{ rowKey: row.id, values: { dbLength: "32" } }]);
188
422
  }
189
423
  }
190
424
  }
@@ -239,6 +473,7 @@ const _sfc_main = defineComponent({
239
473
  addBatchEnd,
240
474
  tableAddLine,
241
475
  tableHeight,
476
+ tableProps,
242
477
  tableDeleteLines,
243
478
  handleAdded,
244
479
  handleRemoved,
@@ -253,7 +488,7 @@ const _sfc_main = defineComponent({
253
488
  });
254
489
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
255
490
  const _component_JVxeTable = resolveComponent("JVxeTable");
256
- return openBlock(), createBlock(_component_JVxeTable, {
491
+ return openBlock(), createBlock(_component_JVxeTable, mergeProps({
257
492
  ref: "tableRef",
258
493
  rowNumber: "",
259
494
  rowSelection: "",
@@ -266,13 +501,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
266
501
  dataSource: _ctx.dataSource,
267
502
  toolbar: _ctx.actionButton,
268
503
  maxHeight: _ctx.tableHeight.normal,
269
- disabledRows: { dbFieldName: ["id", "has_child"] },
504
+ disabledRows: { dbFieldName: ["id", "has_child"] }
505
+ }, _ctx.tableProps, {
270
506
  onAdded: _ctx.handleAdded,
271
507
  onRemoved: _ctx.handleRemoved,
272
508
  onDragged: _ctx.handleDragged,
273
509
  onInserted: _ctx.handleInserted,
274
510
  onValueChange: _ctx.handleValueChange
275
- }, null, 8, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]);
511
+ }), null, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]);
276
512
  }
277
513
  var DBAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
278
514
  export { DBAttributeTable as default };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode } from "vue";
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementVNode } from "vue";
2
2
  import { defHttp } from "/@/utils/http/axios";
3
3
  import { BasicTable } from "/@/components/Table";
4
4
  import { BasicModal, useModalInner } from "/@/components/Modal";
@@ -26,9 +26,7 @@ const _sfc_main = defineComponent({
26
26
  });
27
27
  const [registerTable, { setPagination }, { rowSelection, selectedRowKeys }] = useListTable({
28
28
  bordered: true,
29
- columns: [
30
- { title: "\u8868\u540D", align: "left", dataIndex: "id" }
31
- ],
29
+ columns: [{ title: "\u8868\u540D", align: "left", dataIndex: "id" }],
32
30
  dataSource,
33
31
  maxHeight: 300,
34
32
  locale: { emptyText },
@@ -63,24 +61,30 @@ const _sfc_main = defineComponent({
63
61
  });
64
62
  function queryTables() {
65
63
  confirmLoading.value = true;
66
- return defHttp.get({
67
- url: "/online/cgform/head/queryTables/"
68
- }, {
69
- errorMessageMode: "none"
70
- }).then((result) => {
71
- dataSource.value = result;
72
- metaSource.value = [...result];
73
- return result;
74
- }, (e) => {
75
- if (e.message == "noadminauth") {
76
- emptyText.value = "\u975Eadmin\u7528\u6237\u65E0\u6743\u9650\u64CD\u4F5C\uFF01";
77
- $message.warn(emptyText.value);
78
- } else {
79
- console.error(e);
64
+ return defHttp.get(
65
+ {
66
+ url: "/online/cgform/head/queryTables/"
67
+ },
68
+ {
69
+ errorMessageMode: "none"
70
+ }
71
+ ).then(
72
+ (result) => {
73
+ dataSource.value = result;
74
+ metaSource.value = [...result];
75
+ return result;
76
+ },
77
+ (e) => {
78
+ if (e.message == "noadminauth") {
79
+ emptyText.value = "\u975Eadmin\u7528\u6237\u65E0\u6743\u9650\u64CD\u4F5C\uFF01";
80
+ $message.warn(emptyText.value);
81
+ } else {
82
+ console.error(e);
83
+ }
84
+ dataSource.value = [];
85
+ metaSource.value = [];
80
86
  }
81
- dataSource.value = [];
82
- metaSource.value = [];
83
- }).finally(() => {
87
+ ).finally(() => {
84
88
  confirmLoading.value = false;
85
89
  });
86
90
  }
@@ -133,8 +137,6 @@ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", null, [
133
137
  target: "_blank"
134
138
  }, " \u53C2\u8003\u6587\u6863")
135
139
  ], -1);
136
- const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
137
- const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u751F\u6210\u8868\u5355 ");
138
140
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
139
141
  const _component_BasicTable = resolveComponent("BasicTable");
140
142
  const _component_a_spin = resolveComponent("a-spin");
@@ -150,7 +152,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
150
152
  footer: withCtx(() => [
151
153
  createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {
152
154
  default: withCtx(() => [
153
- _hoisted_2
155
+ createTextVNode("\u5173\u95ED")
154
156
  ]),
155
157
  _: 1
156
158
  }, 8, ["onClick"]),
@@ -161,7 +163,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
161
163
  loading: _ctx.confirmLoading || _ctx.btnLoading
162
164
  }, {
163
165
  default: withCtx(() => [
164
- _hoisted_3
166
+ createTextVNode(" \u751F\u6210\u8868\u5355 ")
165
167
  ]),
166
168
  _: 1
167
169
  }, 8, ["onClick", "loading"])