@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/useSchemas.js CHANGED
@@ -2,30 +2,36 @@ import { computed, h } from "vue";
2
2
  import { Input, Button } from "ant-design-vue";
3
3
  import { FolderOpenOutlined } from "@ant-design/icons-vue";
4
4
  import { bindMapFormSchema } from "/@/utils/common/compUtils";
5
+ import { usePermission } from "/@/hooks/web/usePermission";
6
+ import { rules } from "/@/utils/helper/validator";
7
+ usePermission();
5
8
  function useFormSchemas(_props, handlers) {
6
- const mapFormSchema = bindMapFormSchema({
7
- one: {
8
- colProps: { xs: 24, sm: 24 },
9
- itemProps: {
10
- labelCol: { xs: 24, sm: 2 },
11
- wrapperCol: { xs: 24, sm: 22 }
12
- }
13
- },
14
- tow: {
15
- colProps: { xs: 24, sm: 12 },
16
- itemProps: {
17
- labelCol: { xs: 24, sm: 4 },
18
- wrapperCol: { xs: 24, sm: 20 }
9
+ const mapFormSchema = bindMapFormSchema(
10
+ {
11
+ one: {
12
+ colProps: { xs: 24, sm: 24 },
13
+ itemProps: {
14
+ labelCol: { xs: 24, sm: 2 },
15
+ wrapperCol: { xs: 24, sm: 22 }
16
+ }
17
+ },
18
+ tow: {
19
+ colProps: { xs: 24, sm: 12 },
20
+ itemProps: {
21
+ labelCol: { xs: 24, sm: 4 },
22
+ wrapperCol: { xs: 24, sm: 20 }
23
+ }
24
+ },
25
+ three: {
26
+ colProps: { xs: 24, sm: 8 },
27
+ itemProps: {
28
+ labelCol: { xs: 24, sm: 6 },
29
+ wrapperCol: { xs: 24, sm: 18 }
30
+ }
19
31
  }
20
32
  },
21
- three: {
22
- colProps: { xs: 24, sm: 8 },
23
- itemProps: {
24
- labelCol: { xs: 24, sm: 6 },
25
- wrapperCol: { xs: 24, sm: 18 }
26
- }
27
- }
28
- }, "three");
33
+ "three"
34
+ );
29
35
  const formSchemas = [
30
36
  { label: "", field: "id", component: "Input", show: false },
31
37
  { label: "", field: "tableVersion", component: "Input", show: false },
@@ -34,7 +40,8 @@ function useFormSchemas(_props, handlers) {
34
40
  field: "tableName",
35
41
  component: "Input",
36
42
  required: true,
37
- dynamicDisabled: ({ model }) => model.tableVersion && model.tableVersion != 1
43
+ dynamicDisabled: ({ model }) => model.tableVersion && model.tableVersion != 1,
44
+ dynamicRules: ({ model, schema }) => rules.duplicateCheckRule("onl_cgform_head", "table_name", model, schema, true)
38
45
  }),
39
46
  mapFormSchema({
40
47
  label: "\u8868\u63CF\u8FF0",
@@ -257,17 +264,20 @@ function useFormSchemas(_props, handlers) {
257
264
  component: "Input",
258
265
  ifShow: fieldIfShow
259
266
  }),
260
- mapFormSchema({
261
- label: "\u9644\u8868",
262
- field: "subTableStr",
263
- component: "Input",
264
- componentProps: {
265
- disabled: true,
266
- placeholder: " ",
267
- allowClear: false
267
+ mapFormSchema(
268
+ {
269
+ label: "\u9644\u8868",
270
+ field: "subTableStr",
271
+ component: "Input",
272
+ componentProps: {
273
+ disabled: true,
274
+ placeholder: " ",
275
+ allowClear: false
276
+ },
277
+ ifShow: handlers.ifShowOfSubTableStr
268
278
  },
269
- ifShow: handlers.ifShowOfSubTableStr
270
- }, "one")
279
+ "one"
280
+ )
271
281
  ];
272
282
  function fieldIfShow({ field, model }) {
273
283
  switch (field) {
@@ -286,218 +296,342 @@ function useFormSchemas(_props, handlers) {
286
296
  return { formSchemas };
287
297
  }
288
298
  function useExtendConfigFormSchemas(_props, handlers) {
289
- const mapFormSchema = bindMapFormSchema({
290
- left: {
291
- colProps: { xs: 24, sm: 7 },
292
- itemProps: {
293
- labelCol: { xs: 24, sm: 11 },
294
- wrapperCol: { xs: 24, sm: 13 }
299
+ const mapFormSchema = bindMapFormSchema(
300
+ {
301
+ left: {
302
+ colProps: { xs: 24, sm: 7 },
303
+ itemProps: {
304
+ labelCol: { xs: 24, sm: 11 },
305
+ wrapperCol: { xs: 24, sm: 13 }
306
+ },
307
+ style: { width: "100%" }
295
308
  },
296
- style: { width: "100%" }
309
+ right: {
310
+ colProps: { xs: 24, sm: 17 },
311
+ itemProps: {
312
+ labelCol: { xs: 24, sm: 3 },
313
+ wrapperCol: { xs: 24, sm: 20 }
314
+ },
315
+ style: { width: "100%" }
316
+ }
297
317
  },
298
- right: {
299
- colProps: { xs: 24, sm: 17 },
300
- itemProps: {
301
- labelCol: { xs: 24, sm: 3 },
302
- wrapperCol: { xs: 24, sm: 20 }
303
- },
304
- style: { width: "100%" }
305
- }
306
- }, "left");
318
+ "left"
319
+ );
307
320
  const formSchemas = [
308
- mapFormSchema({
309
- label: "\u96C6\u6210\u8BBE\u8BA1\u8868\u5355",
310
- field: "isDesForm",
311
- component: "RadioButtonGroup",
312
- componentProps: {
313
- options: [
314
- { label: "\u5F00\u542F", value: "Y" },
315
- { label: "\u5173\u95ED", value: "N" }
316
- ],
317
- buttonStyle: "solid",
318
- onChange: handlers.onIsDesformChange
319
- }
320
- }, "left"),
321
- mapFormSchema({
322
- label: "\u8868\u5355\u7F16\u7801",
323
- field: "desFormCode",
324
- component: "Input",
325
- componentProps: {
326
- style: "width: 80%"
321
+ mapFormSchema(
322
+ {
323
+ label: "\u96C6\u6210\u8BBE\u8BA1\u8868\u5355",
324
+ field: "isDesForm",
325
+ component: "RadioButtonGroup",
326
+ componentProps: {
327
+ options: [
328
+ { label: "\u5F00\u542F", value: "Y" },
329
+ { label: "\u5173\u95ED", value: "N" }
330
+ ],
331
+ buttonStyle: "solid",
332
+ onChange: handlers.onIsDesformChange
333
+ }
327
334
  },
328
- dynamicDisabled: ({ model }) => model.isDesForm !== "Y",
329
- dynamicRules: ({ model }) => {
330
- return [
331
- { required: model.isDesForm === "Y", message: "\u8BF7\u8F93\u5165\u8868\u5355\u7F16\u7801\uFF01" }
332
- ];
333
- }
334
- }, "right"),
335
- mapFormSchema({
336
- label: "\u96C6\u6210\u79EF\u6728\u62A5\u8868",
337
- field: "reportPrintShow",
338
- component: "RadioButtonGroup",
339
- componentProps: {
340
- options: [
341
- { label: "\u5F00\u542F", value: 1 },
342
- { label: "\u5173\u95ED", value: 0 }
343
- ],
344
- buttonStyle: "solid",
345
- onChange: handlers.onReportPrintShowChange
346
- }
347
- }, "left"),
348
- mapFormSchema({
349
- label: "\u62A5\u8868\u5730\u5740",
350
- field: "reportPrintUrl",
351
- component: "Input",
352
- componentProps: {
353
- style: "width: 80%"
335
+ "left"
336
+ ),
337
+ mapFormSchema(
338
+ {
339
+ label: "\u8868\u5355\u7F16\u7801",
340
+ field: "desFormCode",
341
+ component: "Input",
342
+ componentProps: {
343
+ style: "width: 80%"
344
+ },
345
+ dynamicDisabled: ({ model }) => model.isDesForm !== "Y",
346
+ dynamicRules: ({ model }) => {
347
+ return [{ required: model.isDesForm === "Y", message: "\u8BF7\u8F93\u5165\u8868\u5355\u7F16\u7801\uFF01" }];
348
+ }
354
349
  },
355
- dynamicDisabled: ({ model }) => !model.reportPrintShow,
356
- dynamicRules: ({ model }) => {
357
- return [
358
- { required: !!model.reportPrintShow, message: "\u8BF7\u8F93\u5165\u62A5\u8868\u5730\u5740\uFF01" }
359
- ];
360
- }
361
- }, "right"),
362
- mapFormSchema({
363
- label: "\u542F\u7528\u8054\u5408\u67E5\u8BE2",
364
- field: "joinQuery",
365
- component: "RadioButtonGroup",
366
- componentProps: {
367
- options: [
368
- { label: "\u5F00\u542F", value: 1 },
369
- { label: "\u5173\u95ED", value: 0 }
370
- ],
371
- buttonStyle: "solid",
372
- onChange: handlers.onJoinQueryChange
373
- }
374
- }, "left"),
375
- mapFormSchema({
376
- label: "",
377
- field: "joinQuery",
378
- component: "InputNumber",
379
- render: () => ""
380
- }, "right"),
381
- mapFormSchema({
382
- label: "\u5F39\u7A97\u9ED8\u8BA4\u5168\u5C4F",
383
- field: "modelFullscreen",
384
- component: "RadioButtonGroup",
385
- componentProps: {
386
- options: [
387
- { label: "\u5F00\u542F", value: 1 },
388
- { label: "\u5173\u95ED", value: 0 }
389
- ],
390
- buttonStyle: "solid"
391
- }
392
- }, "left"),
393
- mapFormSchema({
394
- label: "\u5F39\u7A97\u5BBD\u5EA6",
395
- field: "modalMinWidth",
396
- component: "InputNumber",
397
- componentProps: {
398
- style: "width: 80%",
399
- placeholder: "\u5F39\u7A97\u6700\u5C0F\u5BBD\u5EA6\uFF08\u5355\u4F4D\uFF1Apx\uFF09"
400
- }
401
- }, "right")
350
+ "right"
351
+ ),
352
+ mapFormSchema(
353
+ {
354
+ label: "\u96C6\u6210\u79EF\u6728\u62A5\u8868",
355
+ field: "reportPrintShow",
356
+ component: "RadioButtonGroup",
357
+ componentProps: {
358
+ options: [
359
+ { label: "\u5F00\u542F", value: 1 },
360
+ { label: "\u5173\u95ED", value: 0 }
361
+ ],
362
+ buttonStyle: "solid",
363
+ onChange: handlers.onReportPrintShowChange
364
+ }
365
+ },
366
+ "left"
367
+ ),
368
+ mapFormSchema(
369
+ {
370
+ label: "\u62A5\u8868\u5730\u5740",
371
+ field: "reportPrintUrl",
372
+ component: "Input",
373
+ componentProps: {
374
+ style: "width: 80%"
375
+ },
376
+ dynamicDisabled: ({ model }) => !model.reportPrintShow,
377
+ dynamicRules: ({ model }) => {
378
+ return [
379
+ { required: !!model.reportPrintShow, message: "\u8BF7\u8F93\u5165\u62A5\u8868\u5730\u5740\uFF01" },
380
+ {
381
+ validator({}, value) {
382
+ if (/\/jmreport\/view\/{积木报表ID}/.test(value)) {
383
+ return Promise.reject("\u8BF7\u5C06{\u79EF\u6728\u62A5\u8868ID}\u66FF\u6362\u4E3A\u771F\u5B9E\u7684\u79EF\u6728\u62A5\u8868ID\uFF01");
384
+ }
385
+ return Promise.resolve();
386
+ }
387
+ }
388
+ ];
389
+ }
390
+ },
391
+ "right"
392
+ ),
393
+ mapFormSchema(
394
+ {
395
+ label: "\u56FA\u5B9A\u64CD\u4F5C\u5217",
396
+ field: "tableFixedAction",
397
+ component: "RadioButtonGroup",
398
+ componentProps: {
399
+ options: [
400
+ { label: "\u5F00\u542F", value: 1 },
401
+ { label: "\u5173\u95ED", value: 0 }
402
+ ],
403
+ buttonStyle: "solid"
404
+ },
405
+ defaultValue: 0
406
+ },
407
+ "left"
408
+ ),
409
+ mapFormSchema(
410
+ {
411
+ label: "\u56FA\u5B9A\u65B9\u5F0F",
412
+ field: "tableFixedActionType",
413
+ component: "Select",
414
+ componentProps: {
415
+ options: [
416
+ { label: "\u56FA\u5B9A\u5230\u53F3\u4FA7", value: "right" },
417
+ { label: "\u56FA\u5B9A\u5230\u5DE6\u4FA7", value: "left" }
418
+ ],
419
+ style: "width: 80%"
420
+ },
421
+ defaultValue: "right",
422
+ dynamicDisabled: ({ model }) => !model.tableFixedAction,
423
+ dynamicRules: ({ model }) => {
424
+ return [{ required: !!model.tableFixedAction, message: "\u8BF7\u9009\u62E9\u56FA\u5B9A\u65B9\u5F0F\uFF01" }];
425
+ }
426
+ },
427
+ "right"
428
+ ),
429
+ mapFormSchema(
430
+ {
431
+ label: "\u542F\u7528\u8054\u5408\u67E5\u8BE2",
432
+ field: "joinQuery",
433
+ component: "RadioButtonGroup",
434
+ componentProps: {
435
+ options: [
436
+ { label: "\u5F00\u542F", value: 1 },
437
+ { label: "\u5173\u95ED", value: 0 }
438
+ ],
439
+ buttonStyle: "solid",
440
+ onChange: handlers.onJoinQueryChange
441
+ }
442
+ },
443
+ "left"
444
+ ),
445
+ mapFormSchema(
446
+ {
447
+ label: "",
448
+ field: "joinQuery",
449
+ component: "InputNumber",
450
+ render: () => ""
451
+ },
452
+ "right"
453
+ ),
454
+ mapFormSchema(
455
+ {
456
+ label: "\u5F39\u7A97\u9ED8\u8BA4\u5168\u5C4F",
457
+ field: "modelFullscreen",
458
+ component: "RadioButtonGroup",
459
+ componentProps: {
460
+ options: [
461
+ { label: "\u5F00\u542F", value: 1 },
462
+ { label: "\u5173\u95ED", value: 0 }
463
+ ],
464
+ buttonStyle: "solid"
465
+ }
466
+ },
467
+ "left"
468
+ ),
469
+ mapFormSchema(
470
+ {
471
+ label: "\u5F39\u7A97\u5BBD\u5EA6",
472
+ field: "modalMinWidth",
473
+ component: "InputNumber",
474
+ componentProps: {
475
+ style: "width: 80%",
476
+ placeholder: "\u5F39\u7A97\u6700\u5C0F\u5BBD\u5EA6\uFF08\u5355\u4F4D\uFF1Apx\uFF09"
477
+ }
478
+ },
479
+ "right"
480
+ ),
481
+ mapFormSchema(
482
+ {
483
+ label: "\u5F00\u542F\u8868\u5355\u8BC4\u8BBA",
484
+ field: "commentStatus",
485
+ component: "RadioButtonGroup",
486
+ componentProps: {
487
+ options: [
488
+ { label: "\u5F00\u542F", value: 1 },
489
+ { label: "\u5173\u95ED", value: 0 }
490
+ ],
491
+ buttonStyle: "solid"
492
+ }
493
+ },
494
+ "left"
495
+ ),
496
+ mapFormSchema(
497
+ {
498
+ label: "",
499
+ field: "commentStatus",
500
+ component: "InputNumber",
501
+ render: () => ""
502
+ },
503
+ "right"
504
+ )
402
505
  ];
403
506
  return { formSchemas };
404
507
  }
405
508
  function useCodeGeneratorFormSchemas(_, handlers, single) {
406
- const mapFormSchema = bindMapFormSchema({
407
- one: {
408
- colProps: { xs: 24, sm: 24 },
409
- itemProps: {
410
- labelCol: { xs: 24, sm: 5 },
411
- wrapperCol: { xs: 24, sm: 16 }
412
- }
413
- },
414
- towOne: {
415
- colProps: { xs: 24, sm: 24 },
416
- itemProps: {
417
- labelCol: { xs: 24, sm: 3 },
418
- wrapperCol: { xs: 24, sm: 20 }
509
+ const mapFormSchema = bindMapFormSchema(
510
+ {
511
+ one: {
512
+ colProps: { xs: 24, sm: 24 },
513
+ itemProps: {
514
+ labelCol: { xs: 24, sm: 5 },
515
+ wrapperCol: { xs: 24, sm: 16 }
516
+ }
517
+ },
518
+ towOne: {
519
+ colProps: { xs: 24, sm: 24 },
520
+ itemProps: {
521
+ labelCol: { xs: 24, sm: 3 },
522
+ wrapperCol: { xs: 24, sm: 20 }
523
+ }
524
+ },
525
+ tow: {
526
+ colProps: { xs: 24, sm: 12 },
527
+ itemProps: {
528
+ labelCol: { xs: 24, sm: 6 },
529
+ wrapperCol: { xs: 24, sm: 16 }
530
+ }
419
531
  }
420
532
  },
421
- tow: {
422
- colProps: { xs: 24, sm: 12 },
423
- itemProps: {
424
- labelCol: { xs: 24, sm: 6 },
425
- wrapperCol: { xs: 24, sm: 16 }
426
- }
427
- }
428
- }, "one");
533
+ "one"
534
+ );
429
535
  const getColSize = computed(() => single.value ? "one" : "tow");
430
536
  const formSchemas = computed(() => [
431
- mapFormSchema({
432
- label: "\u4EE3\u7801\u751F\u6210\u76EE\u5F55",
433
- field: "projectPath",
434
- render: ({ model, field }) => h(Input.Search, {
435
- value: model[field],
436
- onChange: (e) => {
437
- model[field] = e.target.value;
438
- handlers.onProjectPathChange(e);
439
- },
440
- onSearch: handlers.onProjectPathSearch
441
- }, {
442
- enterButton: () => h(Button, {
443
- preIcon: "ant-design:folder-open"
444
- }, {
445
- default: () => "\u6D4F\u89C8",
446
- icon: () => h(FolderOpenOutlined)
447
- })
448
- }),
449
- component: "InputSearch",
450
- required: true,
451
- dynamicDisabled: () => false
452
- }, single.value ? "one" : "towOne"),
453
- mapFormSchema({
454
- label: "\u9875\u9762\u98CE\u683C",
455
- field: "jspMode",
456
- component: "Select",
457
- componentProps: {
458
- options: handlers.jspModeOptions.value
459
- }
460
- }, getColSize.value),
461
- mapFormSchema({
462
- label: "\u529F\u80FD\u8BF4\u660E",
463
- field: "ftlDescription",
464
- component: "Input"
465
- }, getColSize.value),
537
+ mapFormSchema(
538
+ {
539
+ label: "\u4EE3\u7801\u751F\u6210\u76EE\u5F55",
540
+ field: "projectPath",
541
+ render: ({ model, field }) => h(
542
+ Input.Search,
543
+ {
544
+ value: model[field],
545
+ onChange: (e) => {
546
+ model[field] = e.target.value;
547
+ handlers.onProjectPathChange(e);
548
+ },
549
+ onSearch: handlers.onProjectPathSearch
550
+ },
551
+ {
552
+ enterButton: () => h(
553
+ Button,
554
+ {
555
+ preIcon: "ant-design:folder-open"
556
+ },
557
+ {
558
+ default: () => "\u6D4F\u89C8",
559
+ icon: () => h(FolderOpenOutlined)
560
+ }
561
+ )
562
+ }
563
+ ),
564
+ component: "InputSearch",
565
+ required: true
566
+ },
567
+ single.value ? "one" : "towOne"
568
+ ),
569
+ mapFormSchema(
570
+ {
571
+ label: "\u9875\u9762\u98CE\u683C",
572
+ field: "jspMode",
573
+ component: "Select",
574
+ componentProps: {
575
+ options: handlers.jspModeOptions.value
576
+ }
577
+ },
578
+ getColSize.value
579
+ ),
580
+ mapFormSchema(
581
+ {
582
+ label: "\u529F\u80FD\u8BF4\u660E",
583
+ field: "ftlDescription",
584
+ component: "Input"
585
+ },
586
+ getColSize.value
587
+ ),
466
588
  { label: "\u6570\u636E\u6A21\u578B", field: "jformType", component: "Input", show: false },
467
- mapFormSchema({
468
- label: "\u8868\u540D",
469
- field: "tableName_tmp",
470
- required: true,
471
- dynamicDisabled: true,
472
- component: "Input"
473
- }, getColSize.value),
474
- mapFormSchema({
475
- label: "\u5B9E\u4F53\u7C7B\u540D",
476
- field: "entityName",
477
- required: true,
478
- component: "Input",
479
- componentProps: {
480
- placeholder: "\u8BF7\u8F93\u5165\u5B9E\u4F53\u7C7B\u540D(\u9996\u5B57\u6BCD\u5927\u5199)"
481
- }
482
- }, getColSize.value),
483
- mapFormSchema({
484
- label: "\u5305\u540D(\u5C0F\u5199)",
485
- field: "entityPackage",
486
- required: true,
487
- component: "Input"
488
- }, getColSize.value),
489
- mapFormSchema({
490
- label: "\u4EE3\u7801\u5206\u5C42\u6837\u5F0F",
491
- field: "packageStyle",
492
- component: "Select",
493
- componentProps: {
494
- disabled: true,
495
- options: [
496
- { label: "\u4E1A\u52A1\u5206\u5C42", value: "service" },
497
- { label: "\u4EE3\u7801\u5206\u5C42", value: "project" }
498
- ]
499
- }
500
- }, getColSize.value),
589
+ mapFormSchema(
590
+ {
591
+ label: "\u8868\u540D",
592
+ field: "tableName_tmp",
593
+ required: true,
594
+ dynamicDisabled: true,
595
+ component: "Input"
596
+ },
597
+ getColSize.value
598
+ ),
599
+ mapFormSchema(
600
+ {
601
+ label: "\u5B9E\u4F53\u7C7B\u540D",
602
+ field: "entityName",
603
+ required: true,
604
+ component: "Input",
605
+ componentProps: {
606
+ placeholder: "\u8BF7\u8F93\u5165\u5B9E\u4F53\u7C7B\u540D(\u9996\u5B57\u6BCD\u5927\u5199)"
607
+ }
608
+ },
609
+ getColSize.value
610
+ ),
611
+ mapFormSchema(
612
+ {
613
+ label: "\u5305\u540D(\u5C0F\u5199)",
614
+ field: "entityPackage",
615
+ required: true,
616
+ component: "Input"
617
+ },
618
+ getColSize.value
619
+ ),
620
+ mapFormSchema(
621
+ {
622
+ label: "\u4EE3\u7801\u5206\u5C42\u6837\u5F0F",
623
+ field: "packageStyle",
624
+ component: "Select",
625
+ componentProps: {
626
+ disabled: true,
627
+ options: [
628
+ { label: "\u4E1A\u52A1\u5206\u5C42", value: "service" },
629
+ { label: "\u4EE3\u7801\u5206\u5C42", value: "project" }
630
+ ]
631
+ }
632
+ },
633
+ getColSize.value
634
+ ),
501
635
  { label: "\u9700\u8981\u751F\u6210\u7684\u4EE3\u7801", field: "codeTypes", component: "Input", show: false }
502
636
  ]);
503
637
  return { formSchemas };