@jeecg/online 3.5.3-beta3 → 3.6.0-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 (163) hide show
  1. package/AuthButtonConfig-b6a674fa.mjs +125 -0
  2. package/AuthButtonTree-09e57bc4.mjs +156 -0
  3. package/AuthDataConfig-6e7e61ec.mjs +212 -0
  4. package/AuthDataTree-e83286c5.mjs +139 -0
  5. package/AuthFieldConfig-f1ec2708.mjs +139 -0
  6. package/AuthFieldTree-bb72e21f.mjs +232 -0
  7. package/AuthManagerDrawer-28a2d108.mjs +114 -0
  8. package/AuthSetterModal-2990d553.mjs +261 -0
  9. package/CgformCopyList-36a4cbf0.mjs +246 -0
  10. package/CgformModal-7399a5ac.mjs +611 -0
  11. package/CgreportModal-2eb9c9e1.mjs +13 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
  13. package/CheckDictTable-3a8a54b3.mjs +211 -0
  14. package/CodeFileListModal-72f0d3bb.mjs +158 -0
  15. package/CodeFileViewModal-9eb88c47.mjs +244 -0
  16. package/CodeGeneratorModal-a89958f5.mjs +233 -0
  17. package/CustomButtonList-c44aec5a.mjs +363 -0
  18. package/DBAttributeTable-7d285e8d.mjs +473 -0
  19. package/DbToOnlineModal-d23cbeb1.mjs +160 -0
  20. package/DetailForm-2901d215.mjs +461 -0
  21. package/EnhanceJavaModal-153899a9.mjs +264 -0
  22. package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
  23. package/EnhanceJsModal-c2fb75b8.mjs +311 -0
  24. package/EnhanceSqlModal-965e9b0a.mjs +268 -0
  25. package/ExtendConfigModal-8f08466f.mjs +111 -0
  26. package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
  27. package/FileSelectModal-432d4521.mjs +103 -0
  28. package/ForeignKeyTable-faab7ccf.mjs +69 -0
  29. package/IndexTable-0a2d3718.mjs +89 -0
  30. package/JModalTip-e1938b49.mjs +46 -0
  31. package/JOnlineSearchSelect-7e908492.mjs +95 -0
  32. package/LeftDepart-54f245b3.mjs +82 -0
  33. package/LeftRole-c138f892.mjs +86 -0
  34. package/LeftUser-9c812f8a.mjs +105 -0
  35. package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
  36. package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
  37. package/LinkTableListPiece-7f793b08.mjs +34 -0
  38. package/ModalFormDemo-65685b0e.mjs +78 -0
  39. package/OnlCgformErpList-52c87ed3.mjs +449 -0
  40. package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
  41. package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
  42. package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
  43. package/OnlCgformTabList-15516315.mjs +390 -0
  44. package/OnlineAutoList-63a0224f.mjs +474 -0
  45. package/OnlineAutoModal-ffe19c3f.mjs +206 -0
  46. package/OnlineAutoTreeList-317c7105.mjs +495 -0
  47. package/OnlineCustomModal-3939ce78.mjs +227 -0
  48. package/OnlineDetailModal-bfb1375f.mjs +177 -0
  49. package/OnlineForm-069f6092.mjs +749 -0
  50. package/OnlineFormDetail-ad5735fb.mjs +296 -0
  51. package/OnlineQueryForm-0771c80f.mjs +385 -0
  52. package/OnlineSearchFormItem-0db5834f.mjs +348 -0
  53. package/OnlineSelectCascade-a05c30f4.mjs +159 -0
  54. package/OnlineSubFormDetail-583d01eb.mjs +142 -0
  55. package/OnlineTabAutoModal-747e071d.mjs +253 -0
  56. package/OnlineTabDetailModal-887f0174.mjs +222 -0
  57. package/OnlineTabForm-b1dcd4b4.mjs +765 -0
  58. package/OnlineTabFormDetail-8e494a96.mjs +323 -0
  59. package/PageAttributeTable-5966b201.mjs +404 -0
  60. package/ProcessOnlineForm-4382bea7.mjs +177 -0
  61. package/QueryTable-6e8053ad.mjs +115 -0
  62. package/README.md +2 -1
  63. package/SuperQuery-78db6998.mjs +841 -0
  64. package/SuperQueryValComponent-471110b5.mjs +8 -0
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  66. package/auth.api-d3a6c4b3.mjs +39 -0
  67. package/auth.data-8be5c9e3.mjs +141 -0
  68. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  69. package/constant-754f1a9d.mjs +9 -0
  70. package/enhance.api-138e6826.mjs +104 -0
  71. package/enhance.data-efc7e155.mjs +175 -0
  72. package/index-0a93652b.mjs +237 -0
  73. package/index-7e9a23f2.mjs +1494 -0
  74. package/index-b70302f2.mjs +56 -0
  75. package/main.index.js +7 -1
  76. package/package.json +1 -1
  77. package/style.css +1 -1
  78. package/useCgformList-0c603af1.mjs +424 -0
  79. package/useCustomHook-acb00837.mjs +53 -0
  80. package/useExtendComponent-aa1cdfc8.mjs +3917 -0
  81. package/useListButton-0f18bf6a.mjs +671 -0
  82. package/useOnlinePopEvent-687070b7.mjs +19 -0
  83. package/useOnlineTest-e4bd8be3.mjs +42 -0
  84. package/useSchemas-43429d80.mjs +685 -0
  85. package/useTableSync-774c3774.mjs +87 -0
  86. package/AuthButtonConfig.js +0 -147
  87. package/AuthButtonTree.js +0 -183
  88. package/AuthDataConfig.js +0 -246
  89. package/AuthDataTree.js +0 -160
  90. package/AuthFieldConfig.js +0 -170
  91. package/AuthFieldTree.js +0 -281
  92. package/AuthManagerDrawer.js +0 -125
  93. package/AuthSetterModal.js +0 -316
  94. package/CgformCopyList.js +0 -266
  95. package/CgformModal.js +0 -780
  96. package/CgreportModal.js +0 -667
  97. package/CheckDictTable.js +0 -242
  98. package/CodeFileListModal.js +0 -175
  99. package/CodeFileViewModal.js +0 -325
  100. package/CodeGeneratorModal.js +0 -297
  101. package/CustomButtonList.js +0 -410
  102. package/DBAttributeTable.js +0 -526
  103. package/DbToOnlineModal.js +0 -192
  104. package/DetailForm.js +0 -608
  105. package/EnhanceJavaModal.js +0 -298
  106. package/EnhanceJsHistory.js +0 -229
  107. package/EnhanceJsModal.js +0 -293
  108. package/EnhanceSqlModal.js +0 -299
  109. package/ExtendConfigModal.js +0 -151
  110. package/FieldExtendJsonModal.js +0 -283
  111. package/FileSelectModal.js +0 -102
  112. package/ForeignKeyTable.js +0 -79
  113. package/IndexTable.js +0 -97
  114. package/JModalTip.js +0 -54
  115. package/JOnlineSearchSelect.js +0 -115
  116. package/LICENSE +0 -9
  117. package/LeftDepart.js +0 -96
  118. package/LeftRole.js +0 -98
  119. package/LeftUser.js +0 -117
  120. package/LinkTableConfigModal.js +0 -289
  121. package/LinkTableFieldConfigModal.js +0 -218
  122. package/LinkTableListPiece.js +0 -36
  123. package/ModalFormDemo.js +0 -85
  124. package/OnlineAutoList.js +0 -523
  125. package/OnlineAutoModal.js +0 -226
  126. package/OnlineAutoTreeList.js +0 -552
  127. package/OnlineCustomModal.js +0 -286
  128. package/OnlineDetailModal.js +0 -190
  129. package/OnlineForm.js +0 -1016
  130. package/OnlineFormDetail.js +0 -347
  131. package/OnlineQueryForm.js +0 -484
  132. package/OnlineSearchFormItem.js +0 -436
  133. package/OnlineSelectCascade.js +0 -228
  134. package/OnlineSubFormDetail.js +0 -166
  135. package/PageAttributeTable.js +0 -486
  136. package/ProcessOnlineForm.js +0 -208
  137. package/QueryTable.js +0 -129
  138. package/SuperQuery.js +0 -1020
  139. package/SuperQueryValComponent.js +0 -8
  140. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
  141. package/_arrayPush.js +0 -278
  142. package/_baseClone.js +0 -471
  143. package/_baseSlice.js +0 -18
  144. package/_commonjsHelpers.js +0 -5
  145. package/_flatRest.js +0 -174
  146. package/auth.api.js +0 -43
  147. package/auth.data.js +0 -142
  148. package/clipboard.js +0 -565
  149. package/enhance.api.js +0 -129
  150. package/enhance.data.js +0 -196
  151. package/index.js +0 -87
  152. package/index2.js +0 -340
  153. package/index3.js +0 -264
  154. package/isArray.js +0 -47
  155. package/omit.js +0 -60
  156. package/pick.js +0 -68
  157. package/toString.js +0 -31
  158. package/useCgformList.js +0 -470
  159. package/useExtendComponent.js +0 -5205
  160. package/useListButton.js +0 -923
  161. package/useOnlineTest.js +0 -44
  162. package/useSchemas.js +0 -653
  163. package/useTableSync.js +0 -117
@@ -0,0 +1,42 @@
1
+ import { ref as n } from "vue";
2
+ function J(h, g, p) {
3
+ const a = n(!1), o = n([]), i = n([]);
4
+ function c() {
5
+ }
6
+ function f(e) {
7
+ }
8
+ function l(e) {
9
+ }
10
+ function s(e, t, D) {
11
+ }
12
+ function u(e, t) {
13
+ }
14
+ function r() {
15
+ }
16
+ function d(e) {
17
+ }
18
+ function m(e) {
19
+ }
20
+ function T(e, t) {
21
+ }
22
+ function b(e) {
23
+ }
24
+ return {
25
+ aiTestMode: a,
26
+ aiTestTable: o,
27
+ aiTableList: i,
28
+ initVirtualData: c,
29
+ genButtons: f,
30
+ genEnhanceJavaData: l,
31
+ genEnhanceJsData: s,
32
+ genEnhanceSqlData: u,
33
+ setTaleConfig: r,
34
+ tableJsonGetHelper: d,
35
+ fieldsJsonGetHelper: m,
36
+ refreshCacheTableName: T,
37
+ getCacheTableName: b
38
+ };
39
+ }
40
+ export {
41
+ J as u
42
+ };
@@ -0,0 +1,685 @@
1
+ import { computed as m, h as p } from "vue";
2
+ import { Input as c, Button as d } from "ant-design-vue";
3
+ import { FolderOpenOutlined as b } from "@ant-design/icons-vue";
4
+ import { bindMapFormSchema as s } from "/@/utils/common/compUtils";
5
+ import { usePermission as f } from "/@/hooks/web/usePermission";
6
+ import { rules as h } from "/@/utils/helper/validator";
7
+ const { isDisabledAuth: P } = f();
8
+ function I(i, a, o) {
9
+ const e = s(
10
+ {
11
+ // 一列
12
+ one: {
13
+ colProps: { xs: 24, sm: 24 },
14
+ itemProps: {
15
+ labelCol: { xs: 24, sm: 2 },
16
+ wrapperCol: { xs: 24, sm: 22 }
17
+ }
18
+ },
19
+ // 两列
20
+ tow: {
21
+ colProps: { xs: 24, sm: 12 },
22
+ itemProps: {
23
+ labelCol: { xs: 24, sm: 4 },
24
+ wrapperCol: { xs: 24, sm: 20 }
25
+ }
26
+ },
27
+ // 三列
28
+ three: {
29
+ colProps: { xs: 24, sm: 8 },
30
+ itemProps: {
31
+ labelCol: { xs: 24, sm: 6 },
32
+ wrapperCol: { xs: 24, sm: 18 }
33
+ }
34
+ }
35
+ },
36
+ "three"
37
+ ), l = [
38
+ { label: "", field: "id", component: "Input", show: !1 },
39
+ { label: "", field: "tableVersion", component: "Input", show: !1 },
40
+ e({
41
+ label: "表名",
42
+ field: "tableName",
43
+ component: "Input",
44
+ required: !0,
45
+ // 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
46
+ dynamicDisabled: ({ model: t }) => t.tableVersion && t.tableVersion != 1,
47
+ dynamicRules: ({ model: t, schema: n }) => h.duplicateCheckRule("onl_cgform_head", "table_name", t, n, !0)
48
+ }),
49
+ e({
50
+ label: "表描述",
51
+ field: "tableTxt",
52
+ component: "Input",
53
+ required: !0
54
+ }),
55
+ e({
56
+ label: "表类型",
57
+ field: "tableType",
58
+ component: "Select",
59
+ defaultValue: 1,
60
+ componentProps: {
61
+ options: [
62
+ { label: "单表", value: 1 },
63
+ { label: "主表", value: 2 },
64
+ { label: "附表", value: 3 }
65
+ ],
66
+ onChange: o.onTableTypeChange
67
+ }
68
+ }),
69
+ // 此处为占位符,用于将 relationType 顶到最右边
70
+ {
71
+ label: "",
72
+ field: "relationType",
73
+ component: "InputNumber",
74
+ render: () => "",
75
+ colProps: { xs: 0, sm: 17 },
76
+ ifShow: r
77
+ },
78
+ e({
79
+ label: "",
80
+ field: "relationType",
81
+ component: "RadioGroup",
82
+ defaultValue: 0,
83
+ componentProps: {
84
+ options: [
85
+ { label: "一对多", value: 0 },
86
+ { label: "一对一", value: 1 }
87
+ ]
88
+ },
89
+ colProps: { xs: 24, sm: 4 },
90
+ itemProps: {
91
+ colon: !1,
92
+ labelCol: { xs: 0, sm: 0 },
93
+ wrapperCol: { xs: 24, sm: 24 }
94
+ },
95
+ ifShow: r
96
+ }),
97
+ e({
98
+ label: "序号",
99
+ field: "tabOrderNum",
100
+ component: "InputNumber",
101
+ componentProps: {
102
+ style: {
103
+ width: "100%"
104
+ }
105
+ },
106
+ colProps: { xs: 24, sm: 3 },
107
+ itemProps: {
108
+ labelCol: { xs: 24, sm: 7 },
109
+ wrapperCol: { xs: 24, sm: 24 - 7 }
110
+ },
111
+ ifShow: r
112
+ }),
113
+ e({
114
+ label: "表单分类",
115
+ field: "formCategory",
116
+ component: "JDictSelectTag",
117
+ defaultValue: "temp",
118
+ componentProps: {
119
+ dictCode: "ol_form_biz_type"
120
+ }
121
+ }),
122
+ e({
123
+ label: "主键策略",
124
+ field: "idType",
125
+ component: "Select",
126
+ defaultValue: "UUID",
127
+ componentProps: {
128
+ options: [
129
+ { label: "ID_WORKER(分布式自增)", value: "UUID" }
130
+ // { label: 'NATIVE(自增长方式)', value: 'NATIVE' },
131
+ // { label: 'SEQUENCE(序列方式)', value: 'SEQUENCE' },
132
+ ]
133
+ }
134
+ }),
135
+ e({
136
+ label: "序号名称",
137
+ field: "idSequence",
138
+ component: "Input",
139
+ componentProps: {},
140
+ ifShow: r
141
+ }),
142
+ e({
143
+ label: "显示复选框",
144
+ field: "isCheckbox",
145
+ component: "Select",
146
+ defaultValue: "Y",
147
+ componentProps: {
148
+ options: [
149
+ { label: "是", value: "Y" },
150
+ { label: "否", value: "N" }
151
+ ]
152
+ }
153
+ }),
154
+ e({
155
+ label: "主题模板",
156
+ field: "themeTemplate",
157
+ component: "Select",
158
+ defaultValue: "normal",
159
+ componentProps: {
160
+ options: [
161
+ { label: "默认主题", value: "normal" },
162
+ { label: "ERP主题(一对多)", value: "erp" },
163
+ { label: "内嵌子表主题(一对多)", value: "innerTable" },
164
+ { label: "TAB主题(一对多)", value: "tab" }
165
+ ]
166
+ },
167
+ // 单表时禁用该字段
168
+ dynamicDisabled: ({ model: t }) => t.tableType === 1,
169
+ // update-begin--author:liaozhiyang---date:20231123---for:【QQYUN-7073】提示ERP、内嵌子表不支持联合查询
170
+ dynamicRules() {
171
+ return [
172
+ {
173
+ validator({}, t) {
174
+ const n = a.value;
175
+ if (t === "erp") {
176
+ if (n.joinQuery)
177
+ return Promise.reject("ERP不支持联合查询功能");
178
+ } else if (t === "innerTable" && n.joinQuery)
179
+ return Promise.reject("内嵌子表不支持联合查询功能");
180
+ return Promise.resolve();
181
+ }
182
+ }
183
+ ];
184
+ }
185
+ // update-end--author:liaozhiyang---date:20231123---for:【QQYUN-7073】提示ERP、内嵌子表不支持联合查询
186
+ }),
187
+ e({
188
+ label: "表单风格",
189
+ field: "formTemplate",
190
+ component: "Select",
191
+ defaultValue: "1",
192
+ componentProps: {
193
+ options: [
194
+ { label: "一列", value: "1" },
195
+ { label: "两列", value: "2" },
196
+ { label: "三列", value: "3" },
197
+ { label: "四列", value: "4" }
198
+ ],
199
+ placeholder: "请选择PC表单风格"
200
+ }
201
+ }),
202
+ e({
203
+ label: "移动表单风格",
204
+ field: "formTemplateMobile",
205
+ component: "Select",
206
+ defaultValue: "1",
207
+ componentProps: {
208
+ options: [
209
+ { label: "AntDesign模板", value: "1" },
210
+ { label: "Bootstrap模板", value: "2" }
211
+ ],
212
+ placeholder: "请选择移动表单风格"
213
+ },
214
+ // 暂时先隐藏
215
+ ifShow: !1
216
+ }),
217
+ e({
218
+ label: "滚动条",
219
+ field: "scroll",
220
+ component: "Select",
221
+ defaultValue: 1,
222
+ componentProps: {
223
+ options: [
224
+ { label: "有", value: 1 },
225
+ { label: "无", value: 0 }
226
+ ]
227
+ }
228
+ }),
229
+ e({
230
+ label: "是否分页",
231
+ field: "isPage",
232
+ component: "Select",
233
+ defaultValue: "Y",
234
+ componentProps: {
235
+ options: [
236
+ { label: "是", value: "Y" },
237
+ { label: "否", value: "N" }
238
+ ]
239
+ }
240
+ }),
241
+ e({
242
+ label: "是否树",
243
+ field: "isTree",
244
+ component: "Select",
245
+ defaultValue: "N",
246
+ componentProps: {
247
+ options: [
248
+ { label: "是", value: "Y" },
249
+ { label: "否", value: "N" }
250
+ ],
251
+ onChange: o.onIsTreeChange
252
+ },
253
+ dynamicRules({ model: t }) {
254
+ return [
255
+ {
256
+ validator({}, n) {
257
+ return n === "Y" && (t.tableType == 2 || t.tableType == 3) ? Promise.reject("主表和附表不支持树类型!") : Promise.resolve();
258
+ }
259
+ }
260
+ ];
261
+ }
262
+ }),
263
+ e({
264
+ // 空格不要删,否则布局会乱
265
+ label: " ",
266
+ // 扩展配置
267
+ field: "extConfigJson",
268
+ component: "Input",
269
+ slot: "extConfigButton",
270
+ itemProps: { colon: !1 }
271
+ }),
272
+ e({
273
+ label: "树表单父ID",
274
+ field: "treeParentIdField",
275
+ component: "Input",
276
+ ifShow: r
277
+ }),
278
+ e({
279
+ label: "是否有子节点字段",
280
+ field: "treeIdField",
281
+ component: "Input",
282
+ show: !1
283
+ }),
284
+ e({
285
+ label: "树开表单列",
286
+ field: "treeFieldname",
287
+ required: !0,
288
+ component: "Input",
289
+ ifShow: r
290
+ }),
291
+ e(
292
+ {
293
+ label: "附表",
294
+ field: "subTableStr",
295
+ component: "Input",
296
+ componentProps: {
297
+ disabled: !0,
298
+ placeholder: " ",
299
+ allowClear: !1
300
+ },
301
+ ifShow: o.ifShowOfSubTableStr
302
+ },
303
+ "one"
304
+ )
305
+ ];
306
+ function r({ field: t, model: n }) {
307
+ switch (t) {
308
+ case "relationType":
309
+ case "tabOrderNum":
310
+ return n.tableType === 3;
311
+ case "treeParentIdField":
312
+ case "treeIdField":
313
+ case "treeFieldname":
314
+ return n.isTree === "Y";
315
+ case "idSequence":
316
+ return n.idType === "SEQUENCE";
317
+ }
318
+ return !0;
319
+ }
320
+ return { formSchemas: l };
321
+ }
322
+ function g(i, a) {
323
+ const o = s(
324
+ {
325
+ left: {
326
+ colProps: { xs: 24, sm: 7 },
327
+ itemProps: {
328
+ labelCol: { xs: 24, sm: 11 },
329
+ wrapperCol: { xs: 24, sm: 13 }
330
+ },
331
+ style: { width: "100%" }
332
+ },
333
+ right: {
334
+ colProps: { xs: 24, sm: 17 },
335
+ itemProps: {
336
+ labelCol: { xs: 24, sm: 3 },
337
+ wrapperCol: { xs: 24, sm: 20 }
338
+ },
339
+ style: { width: "100%" }
340
+ }
341
+ },
342
+ "left"
343
+ );
344
+ return { formSchemas: [
345
+ // 弹窗
346
+ o(
347
+ {
348
+ label: "弹窗默认全屏",
349
+ field: "modelFullscreen",
350
+ component: "RadioButtonGroup",
351
+ componentProps: {
352
+ options: [
353
+ { label: "开启", value: 1 },
354
+ { label: "关闭", value: 0 }
355
+ ],
356
+ buttonStyle: "solid"
357
+ }
358
+ },
359
+ "left"
360
+ ),
361
+ o(
362
+ {
363
+ label: "弹窗宽度",
364
+ field: "modalMinWidth",
365
+ component: "InputNumber",
366
+ componentProps: {
367
+ style: "width: 80%",
368
+ placeholder: "弹窗最小宽度(单位:px)"
369
+ }
370
+ },
371
+ "right"
372
+ ),
373
+ //----------------------------表单评论 begin-----------------------------------------
374
+ o(
375
+ {
376
+ label: "开启表单评论",
377
+ field: "commentStatus",
378
+ component: "RadioButtonGroup",
379
+ componentProps: {
380
+ options: [
381
+ { label: "开启", value: 1 },
382
+ { label: "关闭", value: 0 }
383
+ ],
384
+ buttonStyle: "solid"
385
+ }
386
+ },
387
+ "left"
388
+ ),
389
+ // 此处为占位符
390
+ o(
391
+ {
392
+ label: "",
393
+ field: "commentStatus",
394
+ component: "InputNumber",
395
+ render: () => ""
396
+ },
397
+ "right"
398
+ ),
399
+ // 启用联合查询
400
+ o(
401
+ {
402
+ label: "启用联合查询",
403
+ field: "joinQuery",
404
+ component: "RadioButtonGroup",
405
+ componentProps: {
406
+ options: [
407
+ { label: "开启", value: 1 },
408
+ { label: "关闭", value: 0 }
409
+ ],
410
+ buttonStyle: "solid",
411
+ onChange: a.onJoinQueryChange
412
+ }
413
+ },
414
+ "left"
415
+ ),
416
+ // 此处为占位符
417
+ o(
418
+ {
419
+ label: "",
420
+ field: "joinQuery",
421
+ component: "InputNumber",
422
+ render: () => ""
423
+ },
424
+ "right"
425
+ ),
426
+ // 积木报表打印
427
+ o(
428
+ {
429
+ label: "集成积木报表",
430
+ field: "reportPrintShow",
431
+ component: "RadioButtonGroup",
432
+ componentProps: {
433
+ options: [
434
+ { label: "开启", value: 1 },
435
+ { label: "关闭", value: 0 }
436
+ ],
437
+ buttonStyle: "solid",
438
+ onChange: a.onReportPrintShowChange
439
+ }
440
+ },
441
+ "left"
442
+ ),
443
+ o(
444
+ {
445
+ label: "报表地址",
446
+ field: "reportPrintUrl",
447
+ component: "Input",
448
+ componentProps: {
449
+ style: "width: 80%"
450
+ },
451
+ dynamicDisabled: ({ model: l }) => !l.reportPrintShow,
452
+ dynamicRules: ({ model: l }) => [
453
+ { required: !!l.reportPrintShow, message: "请输入报表地址!" },
454
+ {
455
+ validator({}, r) {
456
+ return /\/jmreport\/view\/{积木报表ID}/.test(r) ? Promise.reject("请将{积木报表ID}替换为真实的积木报表ID!") : Promise.resolve();
457
+ }
458
+ }
459
+ ]
460
+ },
461
+ "right"
462
+ ),
463
+ o(
464
+ {
465
+ label: "集成设计表单",
466
+ field: "isDesForm",
467
+ component: "RadioButtonGroup",
468
+ componentProps: {
469
+ options: [
470
+ { label: "开启", value: "Y" },
471
+ { label: "关闭", value: "N" }
472
+ ],
473
+ buttonStyle: "solid",
474
+ onChange: a.onIsDesformChange
475
+ }
476
+ },
477
+ "left"
478
+ ),
479
+ o(
480
+ {
481
+ label: "表单编码",
482
+ field: "desFormCode",
483
+ component: "Input",
484
+ componentProps: {
485
+ style: "width: 80%"
486
+ },
487
+ dynamicDisabled: ({ model: l }) => l.isDesForm !== "Y",
488
+ dynamicRules: ({ model: l }) => [{ required: l.isDesForm === "Y", message: "请输入表单编码!" }]
489
+ },
490
+ "right"
491
+ ),
492
+ // 列表操作列
493
+ o(
494
+ {
495
+ label: "固定操作列",
496
+ field: "tableFixedAction",
497
+ component: "RadioButtonGroup",
498
+ componentProps: {
499
+ options: [
500
+ { label: "开启", value: 1 },
501
+ { label: "关闭", value: 0 }
502
+ ],
503
+ buttonStyle: "solid"
504
+ },
505
+ defaultValue: 1
506
+ },
507
+ "left"
508
+ ),
509
+ o(
510
+ {
511
+ label: "固定方式",
512
+ field: "tableFixedActionType",
513
+ component: "Select",
514
+ componentProps: {
515
+ options: [
516
+ { label: "固定到右侧", value: "right" },
517
+ { label: "固定到左侧", value: "left" }
518
+ ],
519
+ style: "width: 80%"
520
+ },
521
+ defaultValue: "right",
522
+ dynamicDisabled: ({ model: l }) => !l.tableFixedAction,
523
+ dynamicRules: ({ model: l }) => [{ required: !!l.tableFixedAction, message: "请选择固定方式!" }]
524
+ },
525
+ "right"
526
+ )
527
+ //--------------------------表单评论 end-----------------------------------------
528
+ ] };
529
+ }
530
+ function T(i, a, o) {
531
+ const e = s(
532
+ {
533
+ // 一列
534
+ one: {
535
+ colProps: { xs: 24, sm: 24 },
536
+ itemProps: {
537
+ labelCol: { xs: 24, sm: 5 },
538
+ wrapperCol: { xs: 24, sm: 16 }
539
+ }
540
+ },
541
+ // 两列中的一列
542
+ towOne: {
543
+ colProps: { xs: 24, sm: 24 },
544
+ itemProps: {
545
+ labelCol: { xs: 24, sm: 3 },
546
+ wrapperCol: { xs: 24, sm: 20 }
547
+ }
548
+ },
549
+ // 两列
550
+ tow: {
551
+ colProps: { xs: 24, sm: 12 },
552
+ itemProps: {
553
+ labelCol: { xs: 24, sm: 6 },
554
+ wrapperCol: { xs: 24, sm: 16 }
555
+ }
556
+ }
557
+ },
558
+ "one"
559
+ ), l = m(() => o.value ? "one" : "tow");
560
+ return { formSchemas: m(() => [
561
+ e(
562
+ {
563
+ label: "代码生成目录",
564
+ field: "projectPath",
565
+ render: ({ model: t, field: n }) => p(
566
+ c.Search,
567
+ {
568
+ value: t[n],
569
+ onChange: (u) => {
570
+ t[n] = u.target.value, a.onProjectPathChange(u);
571
+ },
572
+ onSearch: a.onProjectPathSearch
573
+ },
574
+ {
575
+ enterButton: () => p(
576
+ d,
577
+ {
578
+ preIcon: "ant-design:folder-open",
579
+ disabled: P("online:codeGenerate:projectPath")
580
+ },
581
+ {
582
+ default: () => "浏览",
583
+ icon: () => p(b)
584
+ }
585
+ )
586
+ }
587
+ ),
588
+ component: "InputSearch",
589
+ required: !0
590
+ // 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
591
+ },
592
+ o.value ? "one" : "towOne"
593
+ ),
594
+ e(
595
+ {
596
+ label: "页面风格",
597
+ field: "jspMode",
598
+ component: "Select",
599
+ componentProps: {
600
+ options: a.jspModeOptions.value
601
+ }
602
+ },
603
+ l.value
604
+ ),
605
+ e(
606
+ {
607
+ label: "功能说明",
608
+ field: "ftlDescription",
609
+ component: "Input"
610
+ },
611
+ l.value
612
+ ),
613
+ { label: "数据模型", field: "jformType", component: "Input", show: !1 },
614
+ e(
615
+ {
616
+ label: "表名",
617
+ field: "tableName_tmp",
618
+ required: !0,
619
+ dynamicDisabled: !0,
620
+ component: "Input"
621
+ },
622
+ l.value
623
+ ),
624
+ e(
625
+ {
626
+ label: "实体类名",
627
+ field: "entityName",
628
+ required: !0,
629
+ component: "Input",
630
+ componentProps: {
631
+ placeholder: "请输入实体类名(首字母大写)"
632
+ }
633
+ },
634
+ l.value
635
+ ),
636
+ e(
637
+ {
638
+ label: "包名(小写)",
639
+ field: "entityPackage",
640
+ required: !0,
641
+ component: "Input"
642
+ },
643
+ l.value
644
+ ),
645
+ e(
646
+ {
647
+ label: "代码分层样式",
648
+ field: "packageStyle",
649
+ component: "Select",
650
+ componentProps: {
651
+ disabled: !0,
652
+ options: [
653
+ { label: "业务分层", value: "service" },
654
+ { label: "代码分层", value: "project" }
655
+ ]
656
+ }
657
+ },
658
+ l.value
659
+ ),
660
+ e(
661
+ {
662
+ label: "页面代码",
663
+ field: "vueStyle",
664
+ required: !0,
665
+ component: "RadioGroup",
666
+ defaultValue: "vue3",
667
+ componentProps: {
668
+ // options: handlers.jspModeOptions.value,
669
+ options: [
670
+ { label: "Vue3原生(a-form)", value: "vue3Native" },
671
+ { label: "Vue3(BasicForm)", value: "vue3" },
672
+ { label: "Vue2", value: "vue" }
673
+ ]
674
+ }
675
+ },
676
+ l.value
677
+ ),
678
+ { label: "需要生成的代码", field: "codeTypes", component: "Input", show: !1 }
679
+ ]) };
680
+ }
681
+ export {
682
+ g as a,
683
+ T as b,
684
+ I as u
685
+ };