@jeecg/online 1.0.1 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/AuthButtonConfig.js +15 -9
  2. package/AuthButtonTree.js +4 -7
  3. package/AuthDataConfig.js +10 -8
  4. package/AuthDataTree.js +4 -7
  5. package/AuthFieldConfig.js +16 -14
  6. package/AuthFieldTree.js +25 -20
  7. package/AuthManagerDrawer.js +2 -3
  8. package/AuthSetterModal.js +2 -2
  9. package/CgformCopyList.js +34 -24
  10. package/CgformModal.js +57 -50
  11. package/CgreportModal.js +32 -39
  12. package/CheckDictTable.js +146 -26
  13. package/CodeFileListModal.js +174 -0
  14. package/CodeFileViewModal.js +324 -0
  15. package/CodeGeneratorModal.js +42 -40
  16. package/CustomButtonList.js +19 -23
  17. package/DBAttributeTable.js +250 -14
  18. package/DbToOnlineModal.js +28 -27
  19. package/DetailForm.js +607 -0
  20. package/EnhanceJavaModal.js +12 -19
  21. package/EnhanceJsHistory.js +6 -8
  22. package/EnhanceJsModal.js +17 -18
  23. package/EnhanceSqlModal.js +12 -19
  24. package/ExtendConfigModal.js +26 -17
  25. package/FileSelectModal.js +1 -2
  26. package/ForeignKeyTable.js +6 -5
  27. package/FormSchemaFactory.js +163 -30
  28. package/IndexTable.js +8 -7
  29. package/JModalTip.js +54 -0
  30. package/LeftDepart.js +3 -3
  31. package/LeftRole.js +8 -6
  32. package/LeftUser.js +8 -6
  33. package/LinkTableConfigModal.js +288 -0
  34. package/LinkTableFieldConfigModal.js +217 -0
  35. package/LinkTableListPiece.js +36 -0
  36. package/ModalFormDemo.js +4 -4
  37. package/OnlCgReportList.js +34 -0
  38. package/OnlineAutoList.js +155 -58
  39. package/OnlineAutoModal.js +91 -132
  40. package/OnlineAutoTreeList.js +92 -54
  41. package/OnlineCustomModal.js +31 -17
  42. package/OnlineDetailModal.js +182 -0
  43. package/OnlineForm.js +272 -141
  44. package/OnlineFormDetail.js +324 -0
  45. package/OnlineQueryForm.js +72 -42
  46. package/OnlineSearchFormItem.js +28 -23
  47. package/OnlineSubFormDetail.js +165 -0
  48. package/OnlineSuperQuery.js +72 -76
  49. package/OnlineSuperQueryValComponent.js +1 -0
  50. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
  51. package/PageAttributeTable.js +233 -31
  52. package/ProcessOnlineForm.js +41 -18
  53. package/QueryTable.js +6 -5
  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 +358 -34
  64. package/index2.js +49 -48
  65. package/index3.js +29 -26
  66. package/isArray.js +1 -1
  67. package/main.index.js +3 -3
  68. package/omit.js +60 -0
  69. package/package.json +1 -1
  70. package/pick.js +3 -173
  71. package/style.css +1 -1
  72. package/toString.js +2 -2
  73. package/useAutoForm.js +3457 -3792
  74. package/useCgformList.js +44 -31
  75. package/{useTableColumns.js → useListButton.js} +218 -409
  76. package/useOnlineTest.js +5 -26827
  77. package/useSchemas.js +382 -234
  78. package/useTableSync.js +19 -7
  79. package/ChartAutoRender.js +0 -69
  80. package/ChartDoubleRender.js +0 -154
  81. package/ChartSingleRender.js +0 -132
  82. package/ChartTabsRender.js +0 -218
  83. package/ErrorTip.js +0 -21
  84. package/FieldTable.js +0 -185
  85. package/GraphreportAutoChart.js +0 -352
  86. package/GraphreportList.js +0 -239
  87. package/GraphreportModal.js +0 -559
  88. package/JOnlineSearchSelect.js +0 -107
  89. package/LICENSE +0 -7
  90. package/OnlineSelectCascade.js +0 -217
  91. package/OnlineSubForm.js +0 -200
  92. package/ParamsTable.js +0 -71
  93. package/graphreport.api.js +0 -23
  94. package/useChartRender.js +0 -405
  95. package/useMessageOnline.js +0 -71
package/useCgformList.js CHANGED
@@ -23,12 +23,15 @@ import { useRouter } from "vue-router";
23
23
  import { RadioGroup, Radio, Input } from "ant-design-vue";
24
24
  import { useModal } from "/@/components/Modal";
25
25
  import { useDrawer } from "/@/components/Drawer";
26
- import { C as CgformPageType } from "./useOnlineTest.js";
27
26
  import { useListPage } from "/@/hooks/system/useListPage";
28
- import { useMessageOnline } from "./useMessageOnline.js";
29
27
  import { l as list, d as doCopyOnlineView, a as doBatchRemove, b as doBatchDelete, c as doDatabaseSync, e as doCopyTable } from "./CgformModal.js";
30
28
  import { useCopyModal } from "/@/hooks/web/useCopyModal";
31
29
  import { isArray } from "/@/utils/is";
30
+ var CgformPageType = /* @__PURE__ */ ((CgformPageType2) => {
31
+ CgformPageType2[CgformPageType2["normal"] = 0] = "normal";
32
+ CgformPageType2[CgformPageType2["copy"] = 1] = "copy";
33
+ return CgformPageType2;
34
+ })(CgformPageType || {});
32
35
  function useCgformList(options) {
33
36
  const isNormalPage = options.pageType === CgformPageType.normal;
34
37
  const router = useRouter();
@@ -38,7 +41,6 @@ function useCgformList(options) {
38
41
  api: list,
39
42
  columns: options.columns,
40
43
  formConfig: {
41
- labelWidth: 200,
42
44
  schemas: options.formSchemas
43
45
  },
44
46
  beforeFetch: (params) => {
@@ -51,9 +53,7 @@ function useCgformList(options) {
51
53
  }
52
54
  }
53
55
  });
54
- const { tableContext, createMessage: $message } = pageContext;
55
- console.log("my message is update ...");
56
- const { createConfirm: $confirm } = useMessageOnline();
56
+ const { tableContext, createMessage: $message, createConfirm: $confirm } = pageContext;
57
57
  const [, { reload, setLoading }, { selectedRowKeys, selectedRows }] = tableContext;
58
58
  const [registerCgformModal, cgformModal] = useModal();
59
59
  const [registerDbToOnlineModal, dbToOnlineModal] = useModal();
@@ -167,16 +167,21 @@ function useCgformList(options) {
167
167
  const modalFunc = $confirm({
168
168
  iconType: "info",
169
169
  title: "\u540C\u6B65\u6570\u636E\u5E93",
170
- content: () => h("div", {
171
- style: "margin: 20px 0;"
172
- }, h(RadioGroup, {
173
- value: syncMethod.value,
174
- disabled: disabled.value,
175
- "onUpdate:value": (v) => syncMethod.value = v
176
- }, () => [
177
- h(Radio, { value: "normal" }, () => "\u666E\u901A\u540C\u6B65\uFF08\u4FDD\u7559\u8868\u6570\u636E\uFF09"),
178
- h(Radio, { value: "force" }, () => "\u5F3A\u5236\u540C\u6B65\uFF08\u5220\u9664\u8868\uFF0C\u91CD\u65B0\u751F\u6210\uFF09")
179
- ])),
170
+ content: () => h(
171
+ "div",
172
+ {
173
+ style: "margin: 20px 0;"
174
+ },
175
+ h(
176
+ RadioGroup,
177
+ {
178
+ value: syncMethod.value,
179
+ disabled: disabled.value,
180
+ "onUpdate:value": (v) => syncMethod.value = v
181
+ },
182
+ () => [h(Radio, { value: "normal" }, () => "\u666E\u901A\u540C\u6B65\uFF08\u4FDD\u7559\u8868\u6570\u636E\uFF09"), h(Radio, { value: "force" }, () => "\u5F3A\u5236\u540C\u6B65\uFF08\u5220\u9664\u8868\uFF0C\u91CD\u65B0\u751F\u6210\uFF09")]
183
+ )
184
+ ),
180
185
  maskClosable: true,
181
186
  okText: "\u5F00\u59CB\u540C\u6B65",
182
187
  onOk() {
@@ -224,15 +229,19 @@ function useCgformList(options) {
224
229
  const tableName = ref(record.tableName + "_copy");
225
230
  $confirm({
226
231
  title: "\u590D\u5236\u8868",
227
- content: () => h("div", {
228
- style: "margin: 20px 0;"
229
- }, [
230
- "\u8BF7\u8F93\u5165\u65B0\u8868\u540D\uFF1A",
231
- h(Input, {
232
- value: tableName.value,
233
- "onUpdate:value": (v) => tableName.value = v
234
- })
235
- ]),
232
+ content: () => h(
233
+ "div",
234
+ {
235
+ style: "margin: 20px 0;"
236
+ },
237
+ [
238
+ "\u8BF7\u8F93\u5165\u65B0\u8868\u540D\uFF1A",
239
+ h(Input, {
240
+ value: tableName.value,
241
+ "onUpdate:value": (v) => tableName.value = v
242
+ })
243
+ ]
244
+ ),
236
245
  iconType: "info",
237
246
  closable: true,
238
247
  okText: "\u590D\u5236",
@@ -264,11 +273,13 @@ function useCgformList(options) {
264
273
  },
265
274
  {
266
275
  label: "\u529F\u80FD\u6D4B\u8BD5",
276
+ class: ["low-app-hide"],
267
277
  onClick: () => onGoToTest(record),
268
278
  ifShow: () => isNormalPage ? record.isDbSynch == "Y" && record.tableType !== 3 : true
269
279
  },
270
280
  {
271
281
  label: "\u914D\u7F6E\u5730\u5740",
282
+ class: ["low-app-hide"],
272
283
  onClick: () => onShowOnlineUrl(record),
273
284
  ifShow: () => isNormalPage ? record.isDbSynch == "Y" && record.tableType !== 3 : true
274
285
  },
@@ -280,8 +291,15 @@ function useCgformList(options) {
280
291
  label: "\u89D2\u8272\u6388\u6743",
281
292
  onClick: () => authSetterModal.openModal(true, { cgformId: record.id })
282
293
  },
294
+ {
295
+ label: "\u89C6\u56FE\u7BA1\u7406",
296
+ class: ["low-app-hide"],
297
+ onClick: () => router.push(`/online/copyform/${record.id}`),
298
+ ifShow: () => isNormalPage && record.hascopy == 1
299
+ },
283
300
  {
284
301
  label: "\u751F\u6210\u89C6\u56FE",
302
+ class: ["low-app-hide"],
285
303
  popConfirm: {
286
304
  title: "\u786E\u5B9A\u751F\u6210\u89C6\u56FE\u5417\uFF1F",
287
305
  placement: "left",
@@ -297,11 +315,6 @@ function useCgformList(options) {
297
315
  },
298
316
  ifShow: () => isNormalPage
299
317
  },
300
- {
301
- label: "\u89C6\u56FE\u7BA1\u7406",
302
- onClick: () => router.push(`/online/copyform/${record.id}`),
303
- ifShow: () => isNormalPage && record.hascopy == 1
304
- },
305
318
  {
306
319
  label: "\u590D\u5236\u8868",
307
320
  onClick: () => onCopyTable(record),
@@ -350,4 +363,4 @@ function useCgformList(options) {
350
363
  registerCodeGeneratorModal
351
364
  };
352
365
  }
353
- export { useCgformList as u };
366
+ export { CgformPageType as C, useCgformList as u };