@jeecg/online 3.4.3 → 3.4.4-beta2

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 (75) hide show
  1. package/AuthButtonConfig.js +2 -1
  2. package/AuthButtonTree.js +2 -1
  3. package/AuthDataConfig.js +2 -1
  4. package/AuthDataTree.js +2 -1
  5. package/AuthFieldConfig.js +3 -2
  6. package/AuthFieldTree.js +2 -1
  7. package/AuthManagerDrawer.js +2 -1
  8. package/AuthSetterModal.js +2 -1
  9. package/CgformCopyList.js +5 -1
  10. package/CgformModal.js +19 -2
  11. package/CgreportModal.js +1 -0
  12. package/CheckDictTable.js +2 -2
  13. package/CodeFileListModal.js +2 -1
  14. package/CodeFileViewModal.js +2 -1
  15. package/CodeGeneratorModal.js +2 -1
  16. package/CustomButtonList.js +2 -1
  17. package/DBAttributeTable.js +2 -2
  18. package/DbToOnlineModal.js +2 -1
  19. package/DetailForm.js +4 -2
  20. package/EnhanceJavaModal.js +2 -1
  21. package/EnhanceJsHistory.js +1 -1
  22. package/EnhanceJsModal.js +2 -1
  23. package/EnhanceSqlModal.js +2 -1
  24. package/ExtendConfigModal.js +3 -3
  25. package/FieldExtendJsonModal.js +270 -0
  26. package/FileSelectModal.js +2 -1
  27. package/ForeignKeyTable.js +2 -2
  28. package/FormSchemaFactory.js +150 -10
  29. package/IndexTable.js +2 -2
  30. package/JModalTip.js +2 -2
  31. package/JOnlineSearchSelect.js +115 -0
  32. package/LICENSE +7 -0
  33. package/LeftDepart.js +2 -2
  34. package/LeftRole.js +2 -1
  35. package/LeftUser.js +2 -1
  36. package/LinkTableConfigModal.js +2 -1
  37. package/LinkTableFieldConfigModal.js +2 -1
  38. package/LinkTableListPiece.js +2 -2
  39. package/ModalFormDemo.js +2 -1
  40. package/OnlineAutoList.js +7 -4
  41. package/OnlineAutoModal.js +4 -2
  42. package/OnlineAutoTreeList.js +7 -4
  43. package/OnlineCustomModal.js +5 -3
  44. package/OnlineDetailModal.js +5 -3
  45. package/OnlineForm.js +49 -39
  46. package/OnlineFormDetail.js +4 -2
  47. package/OnlineQueryForm.js +12 -6
  48. package/OnlineSearchFormItem.js +8 -5
  49. package/OnlineSelectCascade.js +228 -0
  50. package/OnlineSubFormDetail.js +4 -2
  51. package/PageAttributeTable.js +70 -28
  52. package/ProcessOnlineForm.js +4 -2
  53. package/QueryTable.js +2 -2
  54. package/README.md +6 -1
  55. package/{OnlineSuperQuery.js → SuperQuery.js} +216 -128
  56. package/{OnlineSuperQueryValComponent.js → SuperQueryValComponent.js} +2 -2
  57. package/{OnlineSuperQueryValComponent.vue_vue_type_script_lang.js → SuperQueryValComponent.vue_vue_type_script_lang.js} +8 -2
  58. package/_arrayPush.js +1 -1
  59. package/_baseClone.js +1 -1
  60. package/_flatRest.js +1 -1
  61. package/cgform.data.js +8 -8
  62. package/clipboard.js +565 -0
  63. package/index.js +37 -340
  64. package/index2.js +8 -4
  65. package/index3.js +33 -571
  66. package/isArray.js +1 -1
  67. package/main.index.js +3 -3
  68. package/omit.js +1 -1
  69. package/package.json +1 -1
  70. package/pick.js +1 -1
  71. package/style.css +1 -1
  72. package/toString.js +1 -1
  73. package/useAutoForm.js +22 -5
  74. package/useCgformList.js +97 -5
  75. package/OnlCgReportList.js +0 -34
@@ -22,6 +22,7 @@ import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
22
22
  import { u as useTableSync } from "./useTableSync.js";
23
23
  import LinkTableConfigModal from "./LinkTableConfigModal.js";
24
24
  import LinkTableFieldConfigModal from "./LinkTableFieldConfigModal.js";
25
+ import FieldExtendJsonModal from "./FieldExtendJsonModal.js";
25
26
  import { useModal } from "/@/components/Modal";
26
27
  import { _ as _export_sfc } from "./index.js";
27
28
  import "./cgform.data.js";
@@ -39,7 +40,8 @@ import "./omit.js";
39
40
  import "./_baseClone.js";
40
41
  import "./_baseSlice.js";
41
42
  import "/@/hooks/web/useMessage";
42
- import "@vueuse/core";
43
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
44
+ import "vue-router";
43
45
  var PageAttributeTable_vue_vue_type_style_index_0_scoped_true_lang = "";
44
46
  const commonPageOptions = [
45
47
  { title: "\u6587\u672C\u6846", value: "text" },
@@ -48,25 +50,25 @@ const commonPageOptions = [
48
50
  { title: "\u5355\u9009\u6846", value: "radio" },
49
51
  { title: "\u591A\u9009\u6846", value: "checkbox" },
50
52
  { title: "\u5F00\u5173", value: "switch" },
51
- { title: "\u65E5\u671F(yyyy-MM-dd)", value: "date" },
52
- { title: "\u65E5\u671F\uFF08yyyy-MM-dd HH:mm:ss\uFF09", value: "datetime" },
53
- { title: "\u65F6\u95F4\uFF08HH:mm:ss\uFF09", value: "time" },
53
+ { title: "\u65E5\u671F(\u5E74\u6708\u65E5)", value: "date" },
54
+ { title: "\u65E5\u671F(\u5E74\u6708\u65E5\u65F6\u5206\u79D2)", value: "datetime" },
55
+ { title: "\u65F6\u95F4(HH:mm:ss)", value: "time" },
54
56
  { title: "\u6587\u4EF6", value: "file" },
55
57
  { title: "\u56FE\u7247", value: "image" },
56
58
  { title: "\u591A\u884C\u6587\u672C", value: "textarea" },
57
- { title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
58
- { title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
59
- { title: "Popup\u5F39\u6846", value: "popup" },
60
- { title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
61
- { title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
62
- { title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
63
- { title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
64
- { title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
65
59
  { title: "\u5BCC\u6587\u672C", value: "umeditor" },
66
60
  { title: "MarkDown", value: "markdown" },
61
+ { title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
62
+ { title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
63
+ { title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
64
+ { title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
67
65
  { title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
68
- { title: "\u8054\u52A8\u7EC4\u4EF6", value: "link_down" },
69
- { title: "\u81EA\u5B9A\u4E49\u6811\u63A7\u4EF6", value: "sel_tree" }
66
+ { title: "Popup\u5F39\u6846", value: "popup" },
67
+ { title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
68
+ { title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
69
+ { title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
70
+ { title: "\u81EA\u5B9A\u4E49\u6811\u63A7\u4EF6", value: "sel_tree" },
71
+ { title: "\u8054\u52A8\u7EC4\u4EF6", value: "link_down" }
70
72
  ];
71
73
  const subTablePageOptions = [
72
74
  { title: "\u6587\u672C\u6846", value: "text" },
@@ -83,13 +85,15 @@ const subTablePageOptions = [
83
85
  { title: "popup\u5F39\u51FA\u6846", value: "popup" },
84
86
  { title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
85
87
  { title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
88
+ { title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
86
89
  { title: "\u591A\u884C\u6587\u672C", value: "textarea" }
87
90
  ];
88
91
  const _sfc_main = defineComponent({
89
92
  name: "PageAttributeTable",
90
93
  components: {
91
94
  LinkTableConfigModal,
92
- LinkTableFieldConfigModal
95
+ LinkTableFieldConfigModal,
96
+ FieldExtendJsonModal
93
97
  },
94
98
  setup() {
95
99
  const columns = ref([
@@ -145,8 +149,9 @@ const _sfc_main = defineComponent({
145
149
  title: "\u63A7\u4EF6\u957F\u5EA6",
146
150
  key: "fieldLength",
147
151
  width: 120,
152
+ titleHelp: { message: "\u6B64\u957F\u5EA6\u53EA\u5BF9\u5B50\u8868\u5217\u5B57\u6BB5\u5BBD\u5EA6\u6709\u6548\uFF01" },
148
153
  type: JVxeTypes.inputNumber,
149
- defaultValue: 120,
154
+ defaultValue: 200,
150
155
  placeholder: "\u8BF7\u8F93\u5165${title}",
151
156
  validateRules: [{ required: true, message: "${title}\u4E0D\u80FD\u4E3A\u7A7A" }]
152
157
  },
@@ -180,21 +185,21 @@ const _sfc_main = defineComponent({
180
185
  defaultValue: ""
181
186
  },
182
187
  {
183
- title: "\u6269\u5C55\u53C2\u6570",
184
- key: "fieldExtendJson",
185
- width: 120,
188
+ title: "\u5B9A\u4E49\u8F6C\u6362\u5668",
189
+ key: "converter",
190
+ width: 150,
186
191
  type: JVxeTypes.input,
187
192
  defaultValue: ""
188
193
  },
189
194
  {
190
- title: "\u5B9A\u4E49\u8F6C\u6362\u5668",
191
- key: "converter",
192
- width: 150,
195
+ title: "\u6269\u5C55\u53C2\u6570",
196
+ key: "fieldExtendJson",
197
+ width: 120,
193
198
  type: JVxeTypes.input,
194
199
  defaultValue: ""
195
200
  },
196
201
  {
197
- title: "\u4E2A\u6027\u914D\u7F6E",
202
+ title: "\u66F4\u591A\u914D\u7F6E",
198
203
  minWidth: 100,
199
204
  key: "fieldConfig",
200
205
  type: JVxeTypes.slot,
@@ -246,11 +251,19 @@ const _sfc_main = defineComponent({
246
251
  }
247
252
  const [registerModal, { openModal }] = useModal();
248
253
  const [registerFieldModal, { openModal: openFieldModal }] = useModal();
254
+ const [registerExtJsonModal, { openModal: openExtJsonModal }] = useModal();
249
255
  function showConfigButton(props) {
250
- if (props.row.fieldShowType.indexOf("link_table") >= 0) {
256
+ if (props.row.dbFieldName == "id") {
257
+ return false;
258
+ } else {
251
259
  return true;
260
+ }
261
+ }
262
+ function openConfig(props) {
263
+ if (props.row.fieldShowType.indexOf("link_table") >= 0) {
264
+ showFieldConfig(props);
252
265
  } else {
253
- return false;
266
+ showExtJsonConfig(props);
254
267
  }
255
268
  }
256
269
  function showFieldConfig(props) {
@@ -383,6 +396,27 @@ const _sfc_main = defineComponent({
383
396
  checkTable.value.tableRef.setValues(tableValues);
384
397
  }
385
398
  }
399
+ function showExtJsonConfig(props) {
400
+ let jsonStr = props.row.fieldExtendJson || "";
401
+ let id = props.rowId;
402
+ let fieldShowType = props.row.fieldShowType || "";
403
+ let sortFlag = props.row.sortFlag || "0";
404
+ openExtJsonModal(true, {
405
+ jsonStr,
406
+ fieldShowType,
407
+ sortFlag,
408
+ id
409
+ });
410
+ }
411
+ function handleExtJson(data, rowKey) {
412
+ let values;
413
+ if (data && Object.keys(data).length > 0) {
414
+ values = [{ rowKey, values: { fieldExtendJson: JSON.stringify(data) } }];
415
+ } else {
416
+ values = [{ rowKey, values: { fieldExtendJson: "" } }];
417
+ }
418
+ tableRef.value.setValues(values);
419
+ }
386
420
  return __spreadProps(__spreadValues({}, setup), {
387
421
  columns,
388
422
  enableQuery,
@@ -390,6 +424,9 @@ const _sfc_main = defineComponent({
390
424
  changePageType,
391
425
  showConfigButton,
392
426
  showFieldConfig,
427
+ registerExtJsonModal,
428
+ handleExtJson,
429
+ openConfig,
393
430
  registerModal,
394
431
  handleConfigData,
395
432
  registerFieldModal,
@@ -402,6 +439,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
402
439
  const _component_JVxeTable = resolveComponent("JVxeTable");
403
440
  const _component_link_table_config_modal = resolveComponent("link-table-config-modal");
404
441
  const _component_link_table_field_config_modal = resolveComponent("link-table-field-config-modal");
442
+ const _component_FieldExtendJsonModal = resolveComponent("FieldExtendJsonModal");
405
443
  return openBlock(), createElementBlock(Fragment, null, [
406
444
  createVNode(_component_JVxeTable, mergeProps({
407
445
  ref: "tableRef",
@@ -420,10 +458,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
420
458
  type: "primary",
421
459
  size: "small",
422
460
  ghost: "",
423
- onClick: ($event) => _ctx.showFieldConfig(props)
461
+ onClick: ($event) => _ctx.openConfig(props)
424
462
  }, {
425
463
  default: withCtx(() => [
426
- createTextVNode("\u6253\u5F00\u914D\u7F6E")
464
+ createTextVNode("\u9AD8\u7EA7\u914D\u7F6E")
427
465
  ]),
428
466
  _: 2
429
467
  }, 1032, ["onClick"])) : createCommentVNode("", true)
@@ -437,8 +475,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
437
475
  createVNode(_component_link_table_field_config_modal, {
438
476
  onRegister: _ctx.registerFieldModal,
439
477
  onSuccess: _ctx.handleFieldConfigData
478
+ }, null, 8, ["onRegister", "onSuccess"]),
479
+ createVNode(_component_FieldExtendJsonModal, {
480
+ onRegister: _ctx.registerExtJsonModal,
481
+ onSuccess: _ctx.handleExtJson
440
482
  }, null, 8, ["onRegister", "onSuccess"])
441
483
  ], 64);
442
484
  }
443
- var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eb3d4aa4"]]);
485
+ var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-58928976"]]);
444
486
  export { PageAttributeTable as default };
@@ -48,19 +48,21 @@ import "./_commonjsHelpers.js";
48
48
  import "/@/store/modules/user";
49
49
  import "/@/utils/desform/customExpression";
50
50
  import "/@/components/Form/src/componentMap";
51
+ import "./OnlineSelectCascade.js";
52
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
53
+ import "vue-router";
51
54
  import "/@/store/modules/permission";
52
55
  import "/@/utils/propTypes";
53
56
  import "/@/utils/dict/JDictSelectUtil";
54
57
  import "/@/utils/common/compUtils";
55
58
  import "/@/components/Table";
56
59
  import "/@/hooks/system/useListPage";
57
- import "vue-router";
58
60
  import "/@/components/Form/src/utils/Area";
59
61
  import "/@/components/Preview/index";
60
62
  import "./LinkTableListPiece.js";
61
- import "@vueuse/core";
62
63
  import "./JModalTip.js";
63
64
  import "ant-design-vue";
65
+ import "@vueuse/core";
64
66
  var ProcessOnlineForm_vue_vue_type_style_index_0_scoped_true_lang = "";
65
67
  const _sfc_main = defineComponent({
66
68
  name: "ProcessOnlineForm",
package/QueryTable.js CHANGED
@@ -30,9 +30,9 @@ import "./_flatRest.js";
30
30
  import "./isArray.js";
31
31
  import "./toString.js";
32
32
  import "./_arrayPush.js";
33
- import "/@/utils/http/axios";
33
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
34
34
  import "/@/hooks/web/useMessage";
35
- import "@vueuse/core";
35
+ import "vue-router";
36
36
  const _sfc_main = defineComponent({
37
37
  name: "QueryTable",
38
38
  emits: ["query"],
package/README.md CHANGED
@@ -15,4 +15,9 @@ yarn add @jeecg/online
15
15
  JeecgBoot 在线低代码功能
16
16
  1、在线表单开发
17
17
  2、在线报表开发
18
- ```
18
+ 3、在线代码生成
19
+ ```
20
+
21
+ ## 官网
22
+
23
+ - http://www.jeecg.com