@jeecg/online 3.7.0-beta → 3.7.4-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/AccountLoginForm-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
- package/AuthFieldConfig-f1e224cc.mjs +245 -0
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/CgformModal-c4a4e0c2.mjs +667 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/CodeFileViewModal-405e2b58.mjs +253 -0
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
- package/DbToOnlineModal-f28ff0a3.mjs +168 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
- package/JModalTip-a927f85d.mjs +49 -0
- package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
- package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/auth.api-53df4c33.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
- package/useTableSync-075826a1.mjs +89 -0
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-fe3988fb.mjs +0 -84
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthButtonTree-589395ed.mjs +0 -156
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/AuthFieldTree-b7cd091e.mjs +0 -232
- package/CgformCopyList-8077ccc6.mjs +0 -250
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeFileListModal-0e26b7e0.mjs +0 -158
- package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/CustomButtonList-37639061.mjs +0 -381
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JModalTip-4a83aaed.mjs +0 -49
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/LeftRole-7d8c5acc.mjs +0 -86
- package/OnlCgformErpList-30e416c8.mjs +0 -470
- package/OnlCgformErpSubTable-9a876058.mjs +0 -427
- package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
- package/OnlCgformTabList-7a2f2c03.mjs +0 -408
- package/OnlineAutoList-46c6c8b9.mjs +0 -493
- package/OnlineAutoModal-971bef13.mjs +0 -236
- package/OnlineAutoTreeList-3b92454c.mjs +0 -502
- package/OnlineCustomModal-594244f3.mjs +0 -232
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/OnlineTabForm-9ad7d29a.mjs +0 -805
- package/SetSwitchOptions-a452fa0f.mjs +0 -62
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useCgformList-8755a94e.mjs +0 -426
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useListButton-7ddb9a46.mjs +0 -697
- package/useTableSync-f6089e8a.mjs +0 -87
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -34,7 +34,7 @@ function F(d, n, t) {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"three"
|
|
37
|
-
),
|
|
37
|
+
), l = [
|
|
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 F(d, n, t) {
|
|
|
43
43
|
component: "Input",
|
|
44
44
|
required: !0,
|
|
45
45
|
// 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
|
|
46
|
-
dynamicDisabled: ({ model:
|
|
47
|
-
dynamicRules: ({ model:
|
|
46
|
+
dynamicDisabled: ({ model: o }) => o.tableVersion && o.tableVersion != 1,
|
|
47
|
+
dynamicRules: ({ model: o, schema: a }) => [
|
|
48
48
|
{
|
|
49
49
|
validator: (s, p) => new Promise((i, u) => {
|
|
50
50
|
/[\u4E00-\u9FA5]/g.test(p) && u("不允许输入中文"), i();
|
|
@@ -57,7 +57,7 @@ function F(d, n, t) {
|
|
|
57
57
|
})
|
|
58
58
|
},
|
|
59
59
|
// update-end--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
60
|
-
...S.duplicateCheckRule("onl_cgform_head", "table_name",
|
|
60
|
+
...S.duplicateCheckRule("onl_cgform_head", "table_name", o, a, !0)
|
|
61
61
|
]
|
|
62
62
|
}),
|
|
63
63
|
e({
|
|
@@ -66,7 +66,7 @@ function F(d, n, t) {
|
|
|
66
66
|
component: "Input",
|
|
67
67
|
required: !0,
|
|
68
68
|
// update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
69
|
-
dynamicRules: ({ model:
|
|
69
|
+
dynamicRules: ({ model: o, schema: a }) => [
|
|
70
70
|
{
|
|
71
71
|
validator: (s, p) => new Promise((i, u) => {
|
|
72
72
|
p.length > 200 && u("表描述最长200个字"), i();
|
|
@@ -194,17 +194,17 @@ function F(d, n, t) {
|
|
|
194
194
|
allowClear: !1
|
|
195
195
|
},
|
|
196
196
|
// 单表时禁用该字段
|
|
197
|
-
dynamicDisabled: ({ model:
|
|
197
|
+
dynamicDisabled: ({ model: o }) => o.tableType === 1,
|
|
198
198
|
// update-begin--author:liaozhiyang---date:20231123---for:【QQYUN-7073】提示ERP、内嵌子表不支持联合查询
|
|
199
199
|
dynamicRules() {
|
|
200
200
|
return [
|
|
201
201
|
{
|
|
202
|
-
validator({},
|
|
202
|
+
validator({}, o) {
|
|
203
203
|
const a = n.value;
|
|
204
|
-
if (
|
|
204
|
+
if (o === "erp") {
|
|
205
205
|
if (a.joinQuery)
|
|
206
206
|
return Promise.reject("ERP不支持联合查询功能");
|
|
207
|
-
} else if (
|
|
207
|
+
} else if (o === "innerTable" && a.joinQuery)
|
|
208
208
|
return Promise.reject("内嵌子表不支持联合查询功能");
|
|
209
209
|
return Promise.resolve();
|
|
210
210
|
}
|
|
@@ -283,18 +283,18 @@ function F(d, n, t) {
|
|
|
283
283
|
onChange: t.onIsTreeChange,
|
|
284
284
|
allowClear: !1
|
|
285
285
|
},
|
|
286
|
-
dynamicRules({ model:
|
|
286
|
+
dynamicRules({ model: o }) {
|
|
287
287
|
return [
|
|
288
288
|
{
|
|
289
289
|
validator({}, a) {
|
|
290
|
-
return a === "Y" && (
|
|
290
|
+
return a === "Y" && (o.tableType == 2 || o.tableType == 3) ? Promise.reject("主表和附表不支持树类型!") : Promise.resolve();
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
];
|
|
294
294
|
},
|
|
295
295
|
// update-begin--author:liaozhiyang---date:20240604---for:【TV360X-125】选择主表和附表时隐藏树表配置
|
|
296
|
-
show({ model:
|
|
297
|
-
return
|
|
296
|
+
show({ model: o, values: a }) {
|
|
297
|
+
return o.tableType == 2 || o.tableType == 3 ? (o.isTree = "N", t.onIsTreeChange("N"), !1) : !0;
|
|
298
298
|
}
|
|
299
299
|
// update-end--author:liaozhiyang---date:20240604---for:【TV360X-125】选择主表和附表时隐藏树表配置
|
|
300
300
|
}),
|
|
@@ -341,8 +341,8 @@ function F(d, n, t) {
|
|
|
341
341
|
"one"
|
|
342
342
|
)
|
|
343
343
|
];
|
|
344
|
-
function r({ field:
|
|
345
|
-
switch (
|
|
344
|
+
function r({ field: o, model: a }) {
|
|
345
|
+
switch (o) {
|
|
346
346
|
case "relationType":
|
|
347
347
|
case "tabOrderNum":
|
|
348
348
|
return a.tableType === 3;
|
|
@@ -355,7 +355,7 @@ function F(d, n, t) {
|
|
|
355
355
|
}
|
|
356
356
|
return !0;
|
|
357
357
|
}
|
|
358
|
-
return { formSchemas:
|
|
358
|
+
return { formSchemas: l };
|
|
359
359
|
}
|
|
360
360
|
function R(d, n) {
|
|
361
361
|
const t = c(
|
|
@@ -406,7 +406,7 @@ function R(d, n) {
|
|
|
406
406
|
placeholder: "弹窗最小宽度(单位:px)"
|
|
407
407
|
},
|
|
408
408
|
// update-begin--author:liaozhiyang---date:20240520---for:【TV360X-77】弹窗全屏后,输入宽度框禁用
|
|
409
|
-
dynamicDisabled: ({ model:
|
|
409
|
+
dynamicDisabled: ({ model: l }) => l.modelFullscreen
|
|
410
410
|
// update-end--author:liaozhiyang---date:20240520---for:【TV360X-77】弹窗全屏后,输入宽度框禁用
|
|
411
411
|
},
|
|
412
412
|
"right"
|
|
@@ -489,9 +489,9 @@ function R(d, n) {
|
|
|
489
489
|
componentProps: {
|
|
490
490
|
style: "width: 80%"
|
|
491
491
|
},
|
|
492
|
-
dynamicDisabled: ({ model:
|
|
493
|
-
dynamicRules: ({ model:
|
|
494
|
-
{ required: !!
|
|
492
|
+
dynamicDisabled: ({ model: l }) => !l.reportPrintShow,
|
|
493
|
+
dynamicRules: ({ model: l }) => [
|
|
494
|
+
{ required: !!l.reportPrintShow, message: "请输入报表地址!" },
|
|
495
495
|
{
|
|
496
496
|
validator({}, r) {
|
|
497
497
|
return /\/jmreport\/view\/{积木报表ID}/.test(r) ? Promise.reject("请将{积木报表ID}替换为真实的积木报表ID!") : Promise.resolve();
|
|
@@ -564,8 +564,8 @@ function R(d, n) {
|
|
|
564
564
|
style: "width: 80%"
|
|
565
565
|
},
|
|
566
566
|
defaultValue: "right",
|
|
567
|
-
dynamicDisabled: ({ model:
|
|
568
|
-
dynamicRules: ({ model:
|
|
567
|
+
dynamicDisabled: ({ model: l }) => !l.tableFixedAction,
|
|
568
|
+
dynamicRules: ({ model: l }) => [{ required: !!l.tableFixedAction, message: "请选择固定方式!" }]
|
|
569
569
|
},
|
|
570
570
|
"right"
|
|
571
571
|
),
|
|
@@ -596,15 +596,48 @@ function R(d, n) {
|
|
|
596
596
|
style: "width: 80%",
|
|
597
597
|
placeholder: "自定义表单Label长度"
|
|
598
598
|
},
|
|
599
|
-
dynamicDisabled: ({ model:
|
|
600
|
-
dynamicRules: ({ model:
|
|
599
|
+
dynamicDisabled: ({ model: l }) => !l.formLabelLengthShow,
|
|
600
|
+
dynamicRules: ({ model: l }) => [{ required: !!l.formLabelLengthShow, message: "请填写表单label长度" }]
|
|
601
601
|
},
|
|
602
602
|
"right"
|
|
603
603
|
)
|
|
604
604
|
// update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
|
|
605
|
+
// mapFormSchema(
|
|
606
|
+
// {
|
|
607
|
+
// label: '启用外部链接',
|
|
608
|
+
// field: 'enableExternalLink',
|
|
609
|
+
// component: 'RadioButtonGroup',
|
|
610
|
+
// componentProps: {
|
|
611
|
+
// options: [
|
|
612
|
+
// {label: '开启', value: 1},
|
|
613
|
+
// {label: '关闭', value: 0},
|
|
614
|
+
// ],
|
|
615
|
+
// buttonStyle: 'solid',
|
|
616
|
+
// defaultValue: 0,
|
|
617
|
+
// // onChange: handlers.onFormLabelLengthShow,
|
|
618
|
+
// },
|
|
619
|
+
// },
|
|
620
|
+
// 'left'
|
|
621
|
+
// ),
|
|
622
|
+
// mapFormSchema(
|
|
623
|
+
// {
|
|
624
|
+
// label: '允许的操作',
|
|
625
|
+
// field: 'externalLinkActions',
|
|
626
|
+
// component: 'JCheckbox',
|
|
627
|
+
// componentProps: {
|
|
628
|
+
// options: [
|
|
629
|
+
// {label: '新增', value: 'add'},
|
|
630
|
+
// {label: '编辑', value: 'edit'},
|
|
631
|
+
// {label: '详情', value: 'detail'},
|
|
632
|
+
// ],
|
|
633
|
+
// },
|
|
634
|
+
// dynamicDisabled: ({model}) => !model.enableExternalLink,
|
|
635
|
+
// },
|
|
636
|
+
// 'right'
|
|
637
|
+
// ),
|
|
605
638
|
] };
|
|
606
639
|
}
|
|
607
|
-
function
|
|
640
|
+
function N(d, n, t) {
|
|
608
641
|
const e = c(
|
|
609
642
|
{
|
|
610
643
|
// 一列
|
|
@@ -633,18 +666,18 @@ function j(d, n, t) {
|
|
|
633
666
|
}
|
|
634
667
|
},
|
|
635
668
|
"one"
|
|
636
|
-
),
|
|
669
|
+
), l = b(() => t.value ? "one" : "tow");
|
|
637
670
|
return { formSchemas: b(() => [
|
|
638
671
|
e(
|
|
639
672
|
{
|
|
640
673
|
label: "代码生成目录",
|
|
641
674
|
field: "projectPath",
|
|
642
|
-
render: ({ model:
|
|
675
|
+
render: ({ model: o, field: a }) => m(
|
|
643
676
|
f.Search,
|
|
644
677
|
{
|
|
645
|
-
value:
|
|
678
|
+
value: o[a],
|
|
646
679
|
onChange: (s) => {
|
|
647
|
-
|
|
680
|
+
o[a] = s.target.value, n.onProjectPathChange(s);
|
|
648
681
|
},
|
|
649
682
|
onSearch: n.onProjectPathSearch
|
|
650
683
|
},
|
|
@@ -679,7 +712,7 @@ function j(d, n, t) {
|
|
|
679
712
|
// update-end--author:liaozhiyang---date:20240603---for:【TV360X-895】页面风格去掉x
|
|
680
713
|
}
|
|
681
714
|
},
|
|
682
|
-
|
|
715
|
+
l.value
|
|
683
716
|
),
|
|
684
717
|
e(
|
|
685
718
|
{
|
|
@@ -687,7 +720,7 @@ function j(d, n, t) {
|
|
|
687
720
|
field: "ftlDescription",
|
|
688
721
|
component: "Input"
|
|
689
722
|
},
|
|
690
|
-
|
|
723
|
+
l.value
|
|
691
724
|
),
|
|
692
725
|
{ label: "数据模型", field: "jformType", component: "Input", show: !1 },
|
|
693
726
|
e(
|
|
@@ -698,7 +731,7 @@ function j(d, n, t) {
|
|
|
698
731
|
dynamicDisabled: !0,
|
|
699
732
|
component: "Input"
|
|
700
733
|
},
|
|
701
|
-
|
|
734
|
+
l.value
|
|
702
735
|
),
|
|
703
736
|
e(
|
|
704
737
|
{
|
|
@@ -710,16 +743,16 @@ function j(d, n, t) {
|
|
|
710
743
|
placeholder: "请输入实体类名(首字母大写)"
|
|
711
744
|
}
|
|
712
745
|
},
|
|
713
|
-
|
|
746
|
+
l.value
|
|
714
747
|
),
|
|
715
748
|
e(
|
|
716
749
|
{
|
|
717
750
|
label: "包名(小写)",
|
|
718
751
|
field: "entityPackage",
|
|
719
752
|
component: "Input",
|
|
720
|
-
rules: [{ required: !0, pattern: /^[a-zA-Z0-
|
|
753
|
+
rules: [{ required: !0, pattern: /^[a-zA-Z0-9._]*$/, message: "包名必填,且只允许字母、数字、下划线、小数点组合" }]
|
|
721
754
|
},
|
|
722
|
-
|
|
755
|
+
l.value
|
|
723
756
|
),
|
|
724
757
|
e(
|
|
725
758
|
{
|
|
@@ -734,15 +767,16 @@ function j(d, n, t) {
|
|
|
734
767
|
]
|
|
735
768
|
}
|
|
736
769
|
},
|
|
737
|
-
|
|
770
|
+
l.value
|
|
738
771
|
),
|
|
739
772
|
e(
|
|
740
773
|
{
|
|
741
774
|
label: "页面代码",
|
|
742
775
|
field: "vueStyle",
|
|
743
776
|
required: !0,
|
|
744
|
-
component: "
|
|
777
|
+
component: "Input",
|
|
745
778
|
defaultValue: "vue3",
|
|
779
|
+
slot: "pageCode"
|
|
746
780
|
// componentProps: {
|
|
747
781
|
// options: [
|
|
748
782
|
// { label: 'Vue3(BasicForm)', value: 'vue3' },
|
|
@@ -750,21 +784,29 @@ function j(d, n, t) {
|
|
|
750
784
|
// { label: 'Vue2', value: 'vue' },
|
|
751
785
|
// ],
|
|
752
786
|
// },
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
]
|
|
787
|
+
// update-begin--author:liaozhiyang---date:20240612---for:【TV360X-1057】代码生成页面代码鼠标移入给说明
|
|
788
|
+
// dynamicPropskey: 'options',
|
|
789
|
+
// dynamicPropsVal: ({ model }) => {
|
|
790
|
+
// if (model.jspMode && (model.jspMode == 'innerTable' || model.jspMode == 'tab')) {
|
|
791
|
+
// return [
|
|
792
|
+
// { value: 'vue3', label: '封装表单(BasicForm)' },
|
|
793
|
+
// ];
|
|
794
|
+
// } else {
|
|
795
|
+
// return [
|
|
796
|
+
// { value: 'vue3', label: '封装表单(BasicForm)' },
|
|
797
|
+
// { value: 'vue3Native', label: '原生表单(a-form)' },
|
|
798
|
+
// ];
|
|
799
|
+
// }
|
|
800
|
+
// },
|
|
801
|
+
// update-end--author:liaozhiyang---date:20240612---for:【TV360X-1057】代码生成页面代码鼠标移入给说明
|
|
760
802
|
},
|
|
761
|
-
|
|
803
|
+
l.value
|
|
762
804
|
),
|
|
763
805
|
{ label: "需要生成的代码", field: "codeTypes", component: "Input", show: !1 }
|
|
764
806
|
]) };
|
|
765
807
|
}
|
|
766
808
|
export {
|
|
767
809
|
R as a,
|
|
768
|
-
|
|
810
|
+
N as b,
|
|
769
811
|
F as u
|
|
770
812
|
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var w = (f, m, e) => new Promise((d, u) => {
|
|
2
|
+
var n = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
s(e.next(t));
|
|
5
|
+
} catch (b) {
|
|
6
|
+
u(b);
|
|
7
|
+
}
|
|
8
|
+
}, T = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
s(e.throw(t));
|
|
11
|
+
} catch (b) {
|
|
12
|
+
u(b);
|
|
13
|
+
}
|
|
14
|
+
}, s = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(n, T);
|
|
15
|
+
s((e = e.apply(f, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { inject as h, ref as y, computed as g, nextTick as v } from "vue";
|
|
18
|
+
import { V as N } from "./cgform.data-0ca62d09.mjs";
|
|
19
|
+
import { pick as R } from "lodash-es";
|
|
20
|
+
function L(f) {
|
|
21
|
+
const m = h("tables"), e = h("fullScreenRef"), d = y(), u = y(!1), n = y([]), T = g(() => ({
|
|
22
|
+
// 正常表格高度
|
|
23
|
+
normal: e != null && e.value ? 430 : 260,
|
|
24
|
+
// 没有 toolbar 的表格高度
|
|
25
|
+
noToolbar: e != null && e.value ? 480 : 320
|
|
26
|
+
})), s = g(() => ["id"].concat(f.value.map((l) => l.key))), t = g(() => ({
|
|
27
|
+
// 针对Online表单对虚拟滚动做出优化
|
|
28
|
+
// 虚拟滚动配置,y轴(行数)大于xx条数据时启用虚拟滚动
|
|
29
|
+
// update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
|
|
30
|
+
scrollY: {
|
|
31
|
+
enabled: !0,
|
|
32
|
+
gt: 15
|
|
33
|
+
},
|
|
34
|
+
// 列数
|
|
35
|
+
scrollX: {
|
|
36
|
+
enabled: !0,
|
|
37
|
+
gt: 20
|
|
38
|
+
}
|
|
39
|
+
// update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
|
|
40
|
+
}));
|
|
41
|
+
function b(l) {
|
|
42
|
+
return w(this, null, function* () {
|
|
43
|
+
let a = d.value;
|
|
44
|
+
if (yield a.fullValidateTable())
|
|
45
|
+
throw { code: N, activeKey: l };
|
|
46
|
+
let D = a.getTableData().map((c) => R(c, s.value)), F = a.getDeleteData().map((c) => c.id);
|
|
47
|
+
return { tableData: D, deleteIds: F };
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function k(l, a = !1) {
|
|
51
|
+
return w(this, null, function* () {
|
|
52
|
+
a ? (n.value = [], yield v(), yield d.value.addOrInsert(l, 0, null, { setActive: !1 }), yield v(), d.value.recalcDisableRows()) : (n.value = l, yield v(), d.value.recalcDisableRows());
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function E(l) {
|
|
56
|
+
let a = d.value, x = l.value.tableRef, D = l.value.getRemoveIds(), F = x.getXTable().internalData.tableFullData, c = a.getXTable().internalData.tableFullData;
|
|
57
|
+
return F.forEach((r) => {
|
|
58
|
+
let p = !1;
|
|
59
|
+
if (c.forEach((o) => {
|
|
60
|
+
if (r.id === o.id) {
|
|
61
|
+
let i = o.dbFieldName, I = o.dbFieldTxt;
|
|
62
|
+
(r.dbFieldName !== i || r.dbFieldTxt !== I) && a.setValues([
|
|
63
|
+
{
|
|
64
|
+
rowKey: o.id,
|
|
65
|
+
values: {
|
|
66
|
+
dbFieldName: r.dbFieldName,
|
|
67
|
+
dbFieldTxt: r.dbFieldTxt
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]), p = !0;
|
|
71
|
+
} else
|
|
72
|
+
D.forEach((i) => {
|
|
73
|
+
i === o.id && (setTimeout(() => {
|
|
74
|
+
a.removeRowsById(i);
|
|
75
|
+
}, 0), p = !0);
|
|
76
|
+
});
|
|
77
|
+
}), !p) {
|
|
78
|
+
let o = Object.assign({}, r);
|
|
79
|
+
f.value.forEach((i) => {
|
|
80
|
+
i.key !== "dbFieldName" && i.key !== "dbFieldTxt" && (o[i.key] = i.defaultValue);
|
|
81
|
+
}), a.addRows(o);
|
|
82
|
+
}
|
|
83
|
+
}), v();
|
|
84
|
+
}
|
|
85
|
+
return { tables: m, tableRef: d, loading: u, dataSource: n, columnKeys: s, tableHeight: T, tableProps: t, syncTable: E, validateData: b, setDataSource: k };
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
L as u
|
|
89
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { E as e } from "./cgform.data-0ca62d09.mjs";
|
|
2
|
+
function i(s) {
|
|
3
|
+
let o = {};
|
|
4
|
+
if (s.extConfigJson)
|
|
5
|
+
try {
|
|
6
|
+
o = JSON.parse(s.extConfigJson);
|
|
7
|
+
} catch (t) {
|
|
8
|
+
}
|
|
9
|
+
return Object.assign({}, e, o, {
|
|
10
|
+
isDesForm: s.isDesForm || "N",
|
|
11
|
+
desFormCode: s.desFormCode || ""
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
i as p
|
|
16
|
+
};
|
package/AiModal-fe3988fb.mjs
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ref as l, resolveComponent as c, openBlock as x, createBlock as I, unref as r, mergeProps as A, withCtx as p, createElementVNode as e, createVNode as d, createTextVNode as k, pushScopeId as y, popScopeId as B } from "vue";
|
|
2
|
-
import { useModalInner as S, BasicModal as V } from "/@/components/Modal";
|
|
3
|
-
import { useMessage as z } from "/@/hooks/web/useMessage";
|
|
4
|
-
import { defHttp as N } from "/@/utils/http/axios";
|
|
5
|
-
import { _ as $ } from "./index-173949bb.mjs";
|
|
6
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
7
|
-
import "vue-router";
|
|
8
|
-
const u = (o) => (y("data-v-4ab211b3"), o = o(), B(), o), R = { class: "aiWrap" }, U = /* @__PURE__ */ u(() => /* @__PURE__ */ e("div", { class: "titleArea" }, [
|
|
9
|
-
/* @__PURE__ */ e("svg", {
|
|
10
|
-
t: "1707100353985",
|
|
11
|
-
class: "icon",
|
|
12
|
-
viewBox: "0 0 1024 1024",
|
|
13
|
-
version: "1.1",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
-
"p-id": "4235",
|
|
16
|
-
width: "26",
|
|
17
|
-
height: "26"
|
|
18
|
-
}, [
|
|
19
|
-
/* @__PURE__ */ e("path", {
|
|
20
|
-
d: "M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64z m32 704h-64v-64h64v64z m11.2-203.2l-5.6 4.8c-3.2 2.4-5.6 8-5.6 12.8v58.4h-64v-58.4c0-24.8 11.2-48 29.6-63.2l5.6-4.8c56-44.8 83.2-68 83.2-108C598.4 358.4 560 320 512 320c-49.6 0-86.4 36.8-86.4 86.4h-64C361.6 322.4 428 256 512 256c83.2 0 150.4 67.2 150.4 150.4 0 72.8-49.6 112.8-107.2 158.4z",
|
|
21
|
-
"p-id": "4236",
|
|
22
|
-
fill: "currentColor"
|
|
23
|
-
})
|
|
24
|
-
]),
|
|
25
|
-
/* @__PURE__ */ e("h3", null, "创建工作表字段需要专业建议?试试AI智能推荐吧")
|
|
26
|
-
], -1)), E = /* @__PURE__ */ u(() => /* @__PURE__ */ e("p", { class: "tip" }, "可尝试添加修饰词,如:智能家居行业的生产计划表", -1)), H = { class: "content" }, P = {
|
|
27
|
-
__name: "AiModal",
|
|
28
|
-
emits: ["register", "success"],
|
|
29
|
-
setup(o, { emit: _ }) {
|
|
30
|
-
const m = {
|
|
31
|
-
aigc: "/online/cgform/api/aigc"
|
|
32
|
-
}, [v, { closeModal: h }] = S(), { createMessage: f } = z(), t = l(""), a = l(!1), g = l("ai创建表"), i = () => {
|
|
33
|
-
h();
|
|
34
|
-
}, C = () => {
|
|
35
|
-
t.value.trim() === "" ? f.warning("请输入修饰词~") : (a.value = !0, N.post({ url: `${m.aigc}?prompt=${t.value}`, timeout: 1e3 * 60 }).then((s) => {
|
|
36
|
-
a.value = !1, i(), _("success"), t.value = "";
|
|
37
|
-
}).catch((s) => {
|
|
38
|
-
a.value = !1;
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
return (s, n) => {
|
|
42
|
-
const M = c("a-input"), w = c("a-button");
|
|
43
|
-
return x(), I(r(V), A({
|
|
44
|
-
height: 180,
|
|
45
|
-
title: g.value,
|
|
46
|
-
width: 600,
|
|
47
|
-
maskClosable: !1
|
|
48
|
-
}, s.$attrs, {
|
|
49
|
-
onRegister: r(v),
|
|
50
|
-
footer: null,
|
|
51
|
-
onCancel: i
|
|
52
|
-
}), {
|
|
53
|
-
default: p(() => [
|
|
54
|
-
e("div", R, [
|
|
55
|
-
U,
|
|
56
|
-
E,
|
|
57
|
-
e("div", H, [
|
|
58
|
-
d(M, {
|
|
59
|
-
value: t.value,
|
|
60
|
-
"onUpdate:value": n[0] || (n[0] = (b) => t.value = b),
|
|
61
|
-
valueModifiers: { trim: !0 },
|
|
62
|
-
placeholder: "请输入修饰词"
|
|
63
|
-
}, null, 8, ["value"]),
|
|
64
|
-
d(w, {
|
|
65
|
-
loading: a.value,
|
|
66
|
-
type: "primary",
|
|
67
|
-
onClick: C
|
|
68
|
-
}, {
|
|
69
|
-
default: p(() => [
|
|
70
|
-
k("生成表")
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}, 8, ["loading"])
|
|
74
|
-
])
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 16, ["title", "onRegister"]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
}, J = /* @__PURE__ */ $(P, [["__scopeId", "data-v-4ab211b3"]]);
|
|
82
|
-
export {
|
|
83
|
-
J as default
|
|
84
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
var b = (s, l, u) => new Promise((d, p) => {
|
|
2
|
-
var g = (e) => {
|
|
3
|
-
try {
|
|
4
|
-
i(u.next(e));
|
|
5
|
-
} catch (o) {
|
|
6
|
-
p(o);
|
|
7
|
-
}
|
|
8
|
-
}, f = (e) => {
|
|
9
|
-
try {
|
|
10
|
-
i(u.throw(e));
|
|
11
|
-
} catch (o) {
|
|
12
|
-
p(o);
|
|
13
|
-
}
|
|
14
|
-
}, i = (e) => e.done ? d(e.value) : Promise.resolve(e.value).then(g, f);
|
|
15
|
-
i((u = u.apply(s, l)).next());
|
|
16
|
-
});
|
|
17
|
-
import { defineComponent as L, ref as _, watch as S, resolveComponent as C, openBlock as k, createElementBlock as A, createVNode as y, withCtx as T, createTextVNode as E } from "vue";
|
|
18
|
-
import { cloneDeep as N } from "lodash-es";
|
|
19
|
-
import { BasicTable as $, useTable as F } from "/@/components/Table";
|
|
20
|
-
import { d as R, e as j, f as q } from "./auth.api-d3a6c4b3.mjs";
|
|
21
|
-
import { b as z, c as O } from "./auth.data-22948e87.mjs";
|
|
22
|
-
import { _ as U } from "./index-173949bb.mjs";
|
|
23
|
-
import "/@/utils/http/axios";
|
|
24
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
|
-
import "/@/hooks/web/useMessage";
|
|
26
|
-
import "vue-router";
|
|
27
|
-
const V = L({
|
|
28
|
-
name: "AuthButtonConfig",
|
|
29
|
-
components: { BasicTable: $ },
|
|
30
|
-
props: {
|
|
31
|
-
headId: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "",
|
|
34
|
-
required: !0
|
|
35
|
-
},
|
|
36
|
-
// 1单表 2主表 3附表
|
|
37
|
-
tableType: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 1
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
setup(s) {
|
|
43
|
-
const l = _(""), u = _(2), d = _(3), p = _(5), [g, { reload: f, getTableRef: i, setPagination: e }] = F({
|
|
44
|
-
api: o,
|
|
45
|
-
rowKey: "code",
|
|
46
|
-
bordered: !0,
|
|
47
|
-
columns: z,
|
|
48
|
-
showIndexColumn: !1
|
|
49
|
-
});
|
|
50
|
-
S(
|
|
51
|
-
() => s.headId,
|
|
52
|
-
(t) => {
|
|
53
|
-
l.value = t.split("?")[0], i().value && e({ current: 1, pageSize: 10 }), f().catch(() => null);
|
|
54
|
-
},
|
|
55
|
-
{ immediate: !0 }
|
|
56
|
-
);
|
|
57
|
-
function o(t) {
|
|
58
|
-
return b(this, null, function* () {
|
|
59
|
-
let a = yield R(l.value, t), { authList: m, buttonList: c } = a, r = [];
|
|
60
|
-
for (let n of N(O)) {
|
|
61
|
-
let h = {
|
|
62
|
-
status: 0,
|
|
63
|
-
page: d.value
|
|
64
|
-
}, I = m.find((D) => D.code == n.code);
|
|
65
|
-
Object.assign(n, h, I), r.push(n);
|
|
66
|
-
}
|
|
67
|
-
if (s.tableType == 3) {
|
|
68
|
-
const n = r.findIndex((h) => h.code === "super_query");
|
|
69
|
-
n != -1 && r.splice(n, 1);
|
|
70
|
-
}
|
|
71
|
-
return B(m, c, r);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function B(t, a, m) {
|
|
75
|
-
for (let c of a) {
|
|
76
|
-
let r = t.find((h) => h.code == c.buttonCode), n = {
|
|
77
|
-
code: c.buttonCode,
|
|
78
|
-
title: c.buttonName,
|
|
79
|
-
status: 0,
|
|
80
|
-
page: c.buttonStyle == "form" ? p.value : d.value
|
|
81
|
-
};
|
|
82
|
-
m.push(Object.assign(n, r));
|
|
83
|
-
}
|
|
84
|
-
return m;
|
|
85
|
-
}
|
|
86
|
-
function v(t, a) {
|
|
87
|
-
return b(this, null, function* () {
|
|
88
|
-
t ? w(a) : x(a);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function w(t) {
|
|
92
|
-
return b(this, null, function* () {
|
|
93
|
-
let a = yield j({
|
|
94
|
-
id: t.id,
|
|
95
|
-
code: t.code,
|
|
96
|
-
page: t.page,
|
|
97
|
-
cgformId: l.value,
|
|
98
|
-
type: u.value,
|
|
99
|
-
control: 5,
|
|
100
|
-
status: 1
|
|
101
|
-
});
|
|
102
|
-
t.id = a.id, t.status = 1;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
function x(t) {
|
|
106
|
-
return b(this, null, function* () {
|
|
107
|
-
yield q(t.id), t.status = 0;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
return { registerTable: g, onUpdateStatus: v };
|
|
111
|
-
}
|
|
112
|
-
}), K = { class: "auth-field-config" };
|
|
113
|
-
function P(s, l, u, d, p, g) {
|
|
114
|
-
const f = C("a-switch"), i = C("BasicTable");
|
|
115
|
-
return k(), A("div", K, [
|
|
116
|
-
y(i, { onRegister: s.registerTable }, {
|
|
117
|
-
switch: T(({ text: e, record: o }) => [
|
|
118
|
-
y(f, {
|
|
119
|
-
size: "small",
|
|
120
|
-
checked: o.status === 1,
|
|
121
|
-
onChange: (B) => s.onUpdateStatus(B, o)
|
|
122
|
-
}, null, 8, ["checked", "onChange"])
|
|
123
|
-
]),
|
|
124
|
-
control: T(() => [
|
|
125
|
-
E(" 可见 ")
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 8, ["onRegister"])
|
|
129
|
-
]);
|
|
130
|
-
}
|
|
131
|
-
const ot = /* @__PURE__ */ U(V, [["render", P]]);
|
|
132
|
-
export {
|
|
133
|
-
ot as default
|
|
134
|
-
};
|