@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
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 };