@jeecg/online 3.5.3-vite4 → 3.6.2-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.
- package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -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
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as m, h as
|
|
2
|
-
import { Input as
|
|
3
|
-
import { FolderOpenOutlined as
|
|
4
|
-
import { bindMapFormSchema as
|
|
5
|
-
import { usePermission as
|
|
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
6
|
import { rules as P } from "/@/utils/helper/validator";
|
|
7
|
-
const { isDisabledAuth:
|
|
8
|
-
function I(
|
|
9
|
-
const e =
|
|
7
|
+
const { isDisabledAuth: h } = f();
|
|
8
|
+
function I(i, r, l) {
|
|
9
|
+
const e = s(
|
|
10
10
|
{
|
|
11
11
|
// 一列
|
|
12
12
|
one: {
|
|
@@ -34,7 +34,7 @@ function I(s, t) {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"three"
|
|
37
|
-
),
|
|
37
|
+
), o = [
|
|
38
38
|
{ label: "", field: "id", component: "Input", show: !1 },
|
|
39
39
|
{ label: "", field: "tableVersion", component: "Input", show: !1 },
|
|
40
40
|
e({
|
|
@@ -43,8 +43,8 @@ function I(s, t) {
|
|
|
43
43
|
component: "Input",
|
|
44
44
|
required: !0,
|
|
45
45
|
// 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
|
|
46
|
-
dynamicDisabled: ({ model:
|
|
47
|
-
dynamicRules: ({ model:
|
|
46
|
+
dynamicDisabled: ({ model: t }) => t.tableVersion && t.tableVersion != 1,
|
|
47
|
+
dynamicRules: ({ model: t, schema: a }) => P.duplicateCheckRule("onl_cgform_head", "table_name", t, a, !0)
|
|
48
48
|
}),
|
|
49
49
|
e({
|
|
50
50
|
label: "表描述",
|
|
@@ -63,7 +63,7 @@ function I(s, t) {
|
|
|
63
63
|
{ label: "主表", value: 2 },
|
|
64
64
|
{ label: "附表", value: 3 }
|
|
65
65
|
],
|
|
66
|
-
onChange:
|
|
66
|
+
onChange: l.onTableTypeChange
|
|
67
67
|
}
|
|
68
68
|
}),
|
|
69
69
|
// 此处为占位符,用于将 relationType 顶到最右边
|
|
@@ -73,7 +73,7 @@ function I(s, t) {
|
|
|
73
73
|
component: "InputNumber",
|
|
74
74
|
render: () => "",
|
|
75
75
|
colProps: { xs: 0, sm: 17 },
|
|
76
|
-
ifShow:
|
|
76
|
+
ifShow: n
|
|
77
77
|
},
|
|
78
78
|
e({
|
|
79
79
|
label: "",
|
|
@@ -92,7 +92,7 @@ function I(s, t) {
|
|
|
92
92
|
labelCol: { xs: 0, sm: 0 },
|
|
93
93
|
wrapperCol: { xs: 24, sm: 24 }
|
|
94
94
|
},
|
|
95
|
-
ifShow:
|
|
95
|
+
ifShow: n
|
|
96
96
|
}),
|
|
97
97
|
e({
|
|
98
98
|
label: "序号",
|
|
@@ -108,7 +108,7 @@ function I(s, t) {
|
|
|
108
108
|
labelCol: { xs: 24, sm: 7 },
|
|
109
109
|
wrapperCol: { xs: 24, sm: 24 - 7 }
|
|
110
110
|
},
|
|
111
|
-
ifShow:
|
|
111
|
+
ifShow: n
|
|
112
112
|
}),
|
|
113
113
|
e({
|
|
114
114
|
label: "表单分类",
|
|
@@ -137,7 +137,7 @@ function I(s, t) {
|
|
|
137
137
|
field: "idSequence",
|
|
138
138
|
component: "Input",
|
|
139
139
|
componentProps: {},
|
|
140
|
-
ifShow:
|
|
140
|
+
ifShow: n
|
|
141
141
|
}),
|
|
142
142
|
e({
|
|
143
143
|
label: "显示复选框",
|
|
@@ -159,13 +159,30 @@ function I(s, t) {
|
|
|
159
159
|
componentProps: {
|
|
160
160
|
options: [
|
|
161
161
|
{ label: "默认主题", value: "normal" },
|
|
162
|
-
{ label: "ERP主题(一对多)", value: "erp" }
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
{ label: "ERP主题(一对多)", value: "erp" },
|
|
163
|
+
{ label: "内嵌子表主题(一对多)", value: "innerTable" },
|
|
164
|
+
{ label: "TAB主题(一对多)", value: "tab" }
|
|
165
165
|
]
|
|
166
166
|
},
|
|
167
167
|
// 单表时禁用该字段
|
|
168
|
-
dynamicDisabled: ({ model:
|
|
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 a = r.value;
|
|
175
|
+
if (t === "erp") {
|
|
176
|
+
if (a.joinQuery)
|
|
177
|
+
return Promise.reject("ERP不支持联合查询功能");
|
|
178
|
+
} else if (t === "innerTable" && a.joinQuery)
|
|
179
|
+
return Promise.reject("内嵌子表不支持联合查询功能");
|
|
180
|
+
return Promise.resolve();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
// update-end--author:liaozhiyang---date:20231123---for:【QQYUN-7073】提示ERP、内嵌子表不支持联合查询
|
|
169
186
|
}),
|
|
170
187
|
e({
|
|
171
188
|
label: "表单风格",
|
|
@@ -231,13 +248,13 @@ function I(s, t) {
|
|
|
231
248
|
{ label: "是", value: "Y" },
|
|
232
249
|
{ label: "否", value: "N" }
|
|
233
250
|
],
|
|
234
|
-
onChange:
|
|
251
|
+
onChange: l.onIsTreeChange
|
|
235
252
|
},
|
|
236
|
-
dynamicRules({ model:
|
|
253
|
+
dynamicRules({ model: t }) {
|
|
237
254
|
return [
|
|
238
255
|
{
|
|
239
256
|
validator({}, a) {
|
|
240
|
-
return a === "Y" && (
|
|
257
|
+
return a === "Y" && (t.tableType == 2 || t.tableType == 3) ? Promise.reject("主表和附表不支持树类型!") : Promise.resolve();
|
|
241
258
|
}
|
|
242
259
|
}
|
|
243
260
|
];
|
|
@@ -256,7 +273,7 @@ function I(s, t) {
|
|
|
256
273
|
label: "树表单父ID",
|
|
257
274
|
field: "treeParentIdField",
|
|
258
275
|
component: "Input",
|
|
259
|
-
ifShow:
|
|
276
|
+
ifShow: n
|
|
260
277
|
}),
|
|
261
278
|
e({
|
|
262
279
|
label: "是否有子节点字段",
|
|
@@ -269,7 +286,7 @@ function I(s, t) {
|
|
|
269
286
|
field: "treeFieldname",
|
|
270
287
|
required: !0,
|
|
271
288
|
component: "Input",
|
|
272
|
-
ifShow:
|
|
289
|
+
ifShow: n
|
|
273
290
|
}),
|
|
274
291
|
e(
|
|
275
292
|
{
|
|
@@ -281,13 +298,13 @@ function I(s, t) {
|
|
|
281
298
|
placeholder: " ",
|
|
282
299
|
allowClear: !1
|
|
283
300
|
},
|
|
284
|
-
ifShow:
|
|
301
|
+
ifShow: l.ifShowOfSubTableStr
|
|
285
302
|
},
|
|
286
303
|
"one"
|
|
287
304
|
)
|
|
288
305
|
];
|
|
289
|
-
function
|
|
290
|
-
switch (
|
|
306
|
+
function n({ field: t, model: a }) {
|
|
307
|
+
switch (t) {
|
|
291
308
|
case "relationType":
|
|
292
309
|
case "tabOrderNum":
|
|
293
310
|
return a.tableType === 3;
|
|
@@ -300,10 +317,10 @@ function I(s, t) {
|
|
|
300
317
|
}
|
|
301
318
|
return !0;
|
|
302
319
|
}
|
|
303
|
-
return { formSchemas:
|
|
320
|
+
return { formSchemas: o };
|
|
304
321
|
}
|
|
305
|
-
function g(
|
|
306
|
-
const
|
|
322
|
+
function g(i, r) {
|
|
323
|
+
const l = s(
|
|
307
324
|
{
|
|
308
325
|
left: {
|
|
309
326
|
colProps: { xs: 24, sm: 7 },
|
|
@@ -326,7 +343,7 @@ function g(s, t) {
|
|
|
326
343
|
);
|
|
327
344
|
return { formSchemas: [
|
|
328
345
|
// 弹窗
|
|
329
|
-
|
|
346
|
+
l(
|
|
330
347
|
{
|
|
331
348
|
label: "弹窗默认全屏",
|
|
332
349
|
field: "modelFullscreen",
|
|
@@ -341,7 +358,7 @@ function g(s, t) {
|
|
|
341
358
|
},
|
|
342
359
|
"left"
|
|
343
360
|
),
|
|
344
|
-
|
|
361
|
+
l(
|
|
345
362
|
{
|
|
346
363
|
label: "弹窗宽度",
|
|
347
364
|
field: "modalMinWidth",
|
|
@@ -354,7 +371,7 @@ function g(s, t) {
|
|
|
354
371
|
"right"
|
|
355
372
|
),
|
|
356
373
|
//----------------------------表单评论 begin-----------------------------------------
|
|
357
|
-
|
|
374
|
+
l(
|
|
358
375
|
{
|
|
359
376
|
label: "开启表单评论",
|
|
360
377
|
field: "commentStatus",
|
|
@@ -370,7 +387,7 @@ function g(s, t) {
|
|
|
370
387
|
"left"
|
|
371
388
|
),
|
|
372
389
|
// 此处为占位符
|
|
373
|
-
|
|
390
|
+
l(
|
|
374
391
|
{
|
|
375
392
|
label: "",
|
|
376
393
|
field: "commentStatus",
|
|
@@ -380,7 +397,7 @@ function g(s, t) {
|
|
|
380
397
|
"right"
|
|
381
398
|
),
|
|
382
399
|
// 启用联合查询
|
|
383
|
-
|
|
400
|
+
l(
|
|
384
401
|
{
|
|
385
402
|
label: "启用联合查询",
|
|
386
403
|
field: "joinQuery",
|
|
@@ -391,13 +408,13 @@ function g(s, t) {
|
|
|
391
408
|
{ label: "关闭", value: 0 }
|
|
392
409
|
],
|
|
393
410
|
buttonStyle: "solid",
|
|
394
|
-
onChange:
|
|
411
|
+
onChange: r.onJoinQueryChange
|
|
395
412
|
}
|
|
396
413
|
},
|
|
397
414
|
"left"
|
|
398
415
|
),
|
|
399
416
|
// 此处为占位符
|
|
400
|
-
|
|
417
|
+
l(
|
|
401
418
|
{
|
|
402
419
|
label: "",
|
|
403
420
|
field: "joinQuery",
|
|
@@ -407,7 +424,7 @@ function g(s, t) {
|
|
|
407
424
|
"right"
|
|
408
425
|
),
|
|
409
426
|
// 积木报表打印
|
|
410
|
-
|
|
427
|
+
l(
|
|
411
428
|
{
|
|
412
429
|
label: "集成积木报表",
|
|
413
430
|
field: "reportPrintShow",
|
|
@@ -418,12 +435,12 @@ function g(s, t) {
|
|
|
418
435
|
{ label: "关闭", value: 0 }
|
|
419
436
|
],
|
|
420
437
|
buttonStyle: "solid",
|
|
421
|
-
onChange:
|
|
438
|
+
onChange: r.onReportPrintShowChange
|
|
422
439
|
}
|
|
423
440
|
},
|
|
424
441
|
"left"
|
|
425
442
|
),
|
|
426
|
-
|
|
443
|
+
l(
|
|
427
444
|
{
|
|
428
445
|
label: "报表地址",
|
|
429
446
|
field: "reportPrintUrl",
|
|
@@ -431,49 +448,53 @@ function g(s, t) {
|
|
|
431
448
|
componentProps: {
|
|
432
449
|
style: "width: 80%"
|
|
433
450
|
},
|
|
434
|
-
dynamicDisabled: ({ model:
|
|
435
|
-
dynamicRules: ({ model:
|
|
436
|
-
{ required: !!
|
|
451
|
+
dynamicDisabled: ({ model: o }) => !o.reportPrintShow,
|
|
452
|
+
dynamicRules: ({ model: o }) => [
|
|
453
|
+
{ required: !!o.reportPrintShow, message: "请输入报表地址!" },
|
|
437
454
|
{
|
|
438
|
-
validator({},
|
|
439
|
-
return /\/jmreport\/view\/{积木报表ID}/.test(
|
|
455
|
+
validator({}, n) {
|
|
456
|
+
return /\/jmreport\/view\/{积木报表ID}/.test(n) ? Promise.reject("请将{积木报表ID}替换为真实的积木报表ID!") : Promise.resolve();
|
|
440
457
|
}
|
|
441
458
|
}
|
|
442
459
|
]
|
|
443
460
|
},
|
|
444
461
|
"right"
|
|
445
462
|
),
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
463
|
+
// update-begin--author:liaozhiyang---date:20231213---for:【QQYUN-7421】vue3先注释集成设计表单功能
|
|
464
|
+
// mapFormSchema(
|
|
465
|
+
// {
|
|
466
|
+
// label: '集成设计表单',
|
|
467
|
+
// field: 'isDesForm',
|
|
468
|
+
// component: 'RadioButtonGroup',
|
|
469
|
+
// componentProps: {
|
|
470
|
+
// options: [
|
|
471
|
+
// { label: '开启', value: 'Y' },
|
|
472
|
+
// { label: '关闭', value: 'N' },
|
|
473
|
+
// ],
|
|
474
|
+
// buttonStyle: 'solid',
|
|
475
|
+
// onChange: handlers.onIsDesformChange,
|
|
476
|
+
// },
|
|
477
|
+
// },
|
|
478
|
+
// 'left'
|
|
479
|
+
// ),
|
|
480
|
+
// mapFormSchema(
|
|
481
|
+
// {
|
|
482
|
+
// label: '表单编码',
|
|
483
|
+
// field: 'desFormCode',
|
|
484
|
+
// component: 'Input',
|
|
485
|
+
// componentProps: {
|
|
486
|
+
// style: 'width: 80%',
|
|
487
|
+
// },
|
|
488
|
+
// dynamicDisabled: ({ model }) => model.isDesForm !== 'Y',
|
|
489
|
+
// dynamicRules: ({ model }) => {
|
|
490
|
+
// return [{ required: model.isDesForm === 'Y', message: '请输入表单编码!' }];
|
|
491
|
+
// },
|
|
492
|
+
// },
|
|
493
|
+
// 'right'
|
|
494
|
+
// ),
|
|
495
|
+
// update-end--author:liaozhiyang---date:20231213---for:【QQYUN-7421】vue3先注释集成设计表单功能
|
|
475
496
|
// 列表操作列
|
|
476
|
-
|
|
497
|
+
l(
|
|
477
498
|
{
|
|
478
499
|
label: "固定操作列",
|
|
479
500
|
field: "tableFixedAction",
|
|
@@ -489,7 +510,7 @@ function g(s, t) {
|
|
|
489
510
|
},
|
|
490
511
|
"left"
|
|
491
512
|
),
|
|
492
|
-
|
|
513
|
+
l(
|
|
493
514
|
{
|
|
494
515
|
label: "固定方式",
|
|
495
516
|
field: "tableFixedActionType",
|
|
@@ -502,16 +523,16 @@ function g(s, t) {
|
|
|
502
523
|
style: "width: 80%"
|
|
503
524
|
},
|
|
504
525
|
defaultValue: "right",
|
|
505
|
-
dynamicDisabled: ({ model:
|
|
506
|
-
dynamicRules: ({ model:
|
|
526
|
+
dynamicDisabled: ({ model: o }) => !o.tableFixedAction,
|
|
527
|
+
dynamicRules: ({ model: o }) => [{ required: !!o.tableFixedAction, message: "请选择固定方式!" }]
|
|
507
528
|
},
|
|
508
529
|
"right"
|
|
509
530
|
)
|
|
510
531
|
//--------------------------表单评论 end-----------------------------------------
|
|
511
532
|
] };
|
|
512
533
|
}
|
|
513
|
-
function T(
|
|
514
|
-
const
|
|
534
|
+
function T(i, r, l) {
|
|
535
|
+
const e = s(
|
|
515
536
|
{
|
|
516
537
|
// 一列
|
|
517
538
|
one: {
|
|
@@ -539,32 +560,31 @@ function T(s, t, e) {
|
|
|
539
560
|
}
|
|
540
561
|
},
|
|
541
562
|
"one"
|
|
542
|
-
),
|
|
563
|
+
), o = m(() => l.value ? "one" : "tow");
|
|
543
564
|
return { formSchemas: m(() => [
|
|
544
|
-
|
|
565
|
+
e(
|
|
545
566
|
{
|
|
546
567
|
label: "代码生成目录",
|
|
547
568
|
field: "projectPath",
|
|
548
|
-
render: ({ model:
|
|
549
|
-
|
|
569
|
+
render: ({ model: t, field: a }) => p(
|
|
570
|
+
c.Search,
|
|
550
571
|
{
|
|
551
|
-
value: a
|
|
572
|
+
value: t[a],
|
|
552
573
|
onChange: (u) => {
|
|
553
|
-
a
|
|
574
|
+
t[a] = u.target.value, r.onProjectPathChange(u);
|
|
554
575
|
},
|
|
555
|
-
onSearch:
|
|
556
|
-
disabled: c("online:codeGenerate:projectPath")
|
|
576
|
+
onSearch: r.onProjectPathSearch
|
|
557
577
|
},
|
|
558
578
|
{
|
|
559
|
-
enterButton: () =>
|
|
560
|
-
|
|
579
|
+
enterButton: () => p(
|
|
580
|
+
d,
|
|
561
581
|
{
|
|
562
582
|
preIcon: "ant-design:folder-open",
|
|
563
|
-
disabled:
|
|
583
|
+
disabled: h("online:codeGenerate:projectPath")
|
|
564
584
|
},
|
|
565
585
|
{
|
|
566
586
|
default: () => "浏览",
|
|
567
|
-
icon: () =>
|
|
587
|
+
icon: () => p(b)
|
|
568
588
|
}
|
|
569
589
|
)
|
|
570
590
|
}
|
|
@@ -573,29 +593,29 @@ function T(s, t, e) {
|
|
|
573
593
|
required: !0
|
|
574
594
|
// 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
|
|
575
595
|
},
|
|
576
|
-
|
|
596
|
+
l.value ? "one" : "towOne"
|
|
577
597
|
),
|
|
578
|
-
|
|
598
|
+
e(
|
|
579
599
|
{
|
|
580
600
|
label: "页面风格",
|
|
581
601
|
field: "jspMode",
|
|
582
602
|
component: "Select",
|
|
583
603
|
componentProps: {
|
|
584
|
-
options:
|
|
604
|
+
options: r.jspModeOptions.value
|
|
585
605
|
}
|
|
586
606
|
},
|
|
587
|
-
|
|
607
|
+
o.value
|
|
588
608
|
),
|
|
589
|
-
|
|
609
|
+
e(
|
|
590
610
|
{
|
|
591
611
|
label: "功能说明",
|
|
592
612
|
field: "ftlDescription",
|
|
593
613
|
component: "Input"
|
|
594
614
|
},
|
|
595
|
-
|
|
615
|
+
o.value
|
|
596
616
|
),
|
|
597
617
|
{ label: "数据模型", field: "jformType", component: "Input", show: !1 },
|
|
598
|
-
|
|
618
|
+
e(
|
|
599
619
|
{
|
|
600
620
|
label: "表名",
|
|
601
621
|
field: "tableName_tmp",
|
|
@@ -603,9 +623,9 @@ function T(s, t, e) {
|
|
|
603
623
|
dynamicDisabled: !0,
|
|
604
624
|
component: "Input"
|
|
605
625
|
},
|
|
606
|
-
|
|
626
|
+
o.value
|
|
607
627
|
),
|
|
608
|
-
|
|
628
|
+
e(
|
|
609
629
|
{
|
|
610
630
|
label: "实体类名",
|
|
611
631
|
field: "entityName",
|
|
@@ -615,18 +635,18 @@ function T(s, t, e) {
|
|
|
615
635
|
placeholder: "请输入实体类名(首字母大写)"
|
|
616
636
|
}
|
|
617
637
|
},
|
|
618
|
-
|
|
638
|
+
o.value
|
|
619
639
|
),
|
|
620
|
-
|
|
640
|
+
e(
|
|
621
641
|
{
|
|
622
642
|
label: "包名(小写)",
|
|
623
643
|
field: "entityPackage",
|
|
624
644
|
required: !0,
|
|
625
645
|
component: "Input"
|
|
626
646
|
},
|
|
627
|
-
|
|
647
|
+
o.value
|
|
628
648
|
),
|
|
629
|
-
|
|
649
|
+
e(
|
|
630
650
|
{
|
|
631
651
|
label: "代码分层样式",
|
|
632
652
|
field: "packageStyle",
|
|
@@ -639,9 +659,9 @@ function T(s, t, e) {
|
|
|
639
659
|
]
|
|
640
660
|
}
|
|
641
661
|
},
|
|
642
|
-
|
|
662
|
+
o.value
|
|
643
663
|
),
|
|
644
|
-
|
|
664
|
+
e(
|
|
645
665
|
{
|
|
646
666
|
label: "页面代码",
|
|
647
667
|
field: "vueStyle",
|
|
@@ -657,7 +677,7 @@ function T(s, t, e) {
|
|
|
657
677
|
]
|
|
658
678
|
}
|
|
659
679
|
},
|
|
660
|
-
|
|
680
|
+
o.value
|
|
661
681
|
),
|
|
662
682
|
{ label: "需要生成的代码", field: "codeTypes", component: "Input", show: !1 }
|
|
663
683
|
]) };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var p = (f, v, e) => new Promise((o, u) => {
|
|
2
2
|
var n = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
r(e.next(t));
|
|
5
5
|
} catch (b) {
|
|
6
6
|
u(b);
|
|
7
7
|
}
|
|
8
8
|
}, m = (t) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
r(e.throw(t));
|
|
11
11
|
} catch (b) {
|
|
12
12
|
u(b);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, r = (t) => t.done ? o(t.value) : Promise.resolve(t.value).then(n, m);
|
|
15
|
+
r((e = e.apply(f, v)).next());
|
|
16
16
|
});
|
|
17
17
|
import { inject as h, ref as y, computed as g, nextTick as w } from "vue";
|
|
18
18
|
import { V as N } from "./cgform.data-cbdd88c3.mjs";
|
|
@@ -23,23 +23,27 @@ function L(f) {
|
|
|
23
23
|
normal: e != null && e.value ? 430 : 260,
|
|
24
24
|
// 没有 toolbar 的表格高度
|
|
25
25
|
noToolbar: e != null && e.value ? 480 : 320
|
|
26
|
-
})),
|
|
26
|
+
})), r = g(() => ["id"].concat(f.value.map((l) => l.key))), t = g(() => ({
|
|
27
27
|
// 针对Online表单对虚拟滚动做出优化
|
|
28
28
|
// 虚拟滚动配置,y轴(行数)大于xx条数据时启用虚拟滚动
|
|
29
|
+
// update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
|
|
29
30
|
scrollY: {
|
|
31
|
+
enabled: !0,
|
|
30
32
|
gt: 15
|
|
31
33
|
},
|
|
32
34
|
// 列数
|
|
33
35
|
scrollX: {
|
|
36
|
+
enabled: !0,
|
|
34
37
|
gt: 20
|
|
35
38
|
}
|
|
39
|
+
// update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
|
|
36
40
|
}));
|
|
37
41
|
function b(l) {
|
|
38
42
|
return p(this, null, function* () {
|
|
39
43
|
let a = o.value;
|
|
40
44
|
if (yield a.fullValidateTable())
|
|
41
45
|
throw { code: N, activeKey: l };
|
|
42
|
-
let T = a.getTableData().map((c) => A(c,
|
|
46
|
+
let T = a.getTableData().map((c) => A(c, r.value)), D = a.getDeleteData().map((c) => c.id);
|
|
43
47
|
return { tableData: T, deleteIds: D };
|
|
44
48
|
});
|
|
45
49
|
}
|
|
@@ -50,17 +54,17 @@ function L(f) {
|
|
|
50
54
|
}
|
|
51
55
|
function E(l) {
|
|
52
56
|
let a = o.value, x = l.value.tableRef, T = l.value.getRemoveIds(), D = x.getXTable().internalData.tableFullData, c = a.getXTable().internalData.tableFullData;
|
|
53
|
-
return D.forEach((
|
|
57
|
+
return D.forEach((s) => {
|
|
54
58
|
let F = !1;
|
|
55
59
|
if (c.forEach((d) => {
|
|
56
|
-
if (
|
|
60
|
+
if (s.id === d.id) {
|
|
57
61
|
let i = d.dbFieldName, I = d.dbFieldTxt;
|
|
58
|
-
(
|
|
62
|
+
(s.dbFieldName !== i || s.dbFieldTxt !== I) && a.setValues([
|
|
59
63
|
{
|
|
60
64
|
rowKey: d.id,
|
|
61
65
|
values: {
|
|
62
|
-
dbFieldName:
|
|
63
|
-
dbFieldTxt:
|
|
66
|
+
dbFieldName: s.dbFieldName,
|
|
67
|
+
dbFieldTxt: s.dbFieldTxt
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
]), F = !0;
|
|
@@ -69,14 +73,14 @@ function L(f) {
|
|
|
69
73
|
i === d.id && (a.removeRowsById(i), F = !0);
|
|
70
74
|
});
|
|
71
75
|
}), !F) {
|
|
72
|
-
let d = Object.assign({},
|
|
76
|
+
let d = Object.assign({}, s);
|
|
73
77
|
f.value.forEach((i) => {
|
|
74
78
|
i.key !== "dbFieldName" && i.key !== "dbFieldTxt" && (d[i.key] = i.defaultValue);
|
|
75
79
|
}), a.addRows(d);
|
|
76
80
|
}
|
|
77
81
|
}), w();
|
|
78
82
|
}
|
|
79
|
-
return { tables: v, tableRef: o, loading: u, dataSource: n, columnKeys:
|
|
83
|
+
return { tables: v, tableRef: o, loading: u, dataSource: n, columnKeys: r, tableHeight: m, tableProps: t, syncTable: E, validateData: b, setDataSource: k };
|
|
80
84
|
}
|
|
81
85
|
export {
|
|
82
86
|
L as u
|