@jeecg/online 3.8.2-beta → 3.9.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.
- package/{AccountLoginForm-79fa7b01.mjs → AccountLoginForm-cbc75a49.mjs} +1 -1
- package/{AiModal-942b59ec.mjs → AiModal-5bec5218.mjs} +1 -1
- package/{AppForgetPassword-d762e5b3.mjs → AppForgetPassword-dbc8377e.mjs} +2 -2
- package/{AppLogin-41372985.mjs → AppLogin-786949d3.mjs} +9 -9
- package/{AppLoginHeader-3b6fa33d.mjs → AppLoginHeader-37034b2f.mjs} +1 -1
- package/{AppNameEmail-8dfbad62.mjs → AppNameEmail-7c6a1406.mjs} +2 -2
- package/{AppRegister-433c54db.mjs → AppRegister-29a00a9d.mjs} +3 -3
- package/{AppTenant-e49dfa9b.mjs → AppTenant-92890383.mjs} +2 -2
- package/{AppThirdForm-7b75b4fc.mjs → AppThirdForm-760064e5.mjs} +1 -1
- package/{AuthButtonConfig-a0f59cb5.mjs → AuthButtonConfig-78180aec.mjs} +1 -1
- package/{AuthButtonTree-f0a5cc0b.mjs → AuthButtonTree-62c8e70c.mjs} +1 -1
- package/{AuthDataConfig-647c4a27.mjs → AuthDataConfig-c978c469.mjs} +1 -1
- package/{AuthDataTree-b80a3ea5.mjs → AuthDataTree-0647a06c.mjs} +1 -1
- package/{AuthFieldConfig-d36a1b2d.mjs → AuthFieldConfig-558283bc.mjs} +1 -1
- package/{AuthFieldTree-dba6af79.mjs → AuthFieldTree-106db4e2.mjs} +1 -1
- package/{AuthManagerDrawer-5acbd451.mjs → AuthManagerDrawer-ec5190d2.mjs} +4 -4
- package/{AuthSetterModal-95b5f616.mjs → AuthSetterModal-90a76886.mjs} +7 -7
- package/{CgformAddressModal-5d889870.mjs → CgformAddressModal-690b8940.mjs} +1 -1
- package/{CgformCopyList-cc5f76cd.mjs → CgformCopyList-af9c99a4.mjs} +40 -39
- package/{CgformModal-cebc698b.mjs → CgformModal-b04a492a.mjs} +10 -10
- package/{CgreportAigcModal-d1e62385.mjs → CgreportAigcModal-8fdcbd31.mjs} +1 -1
- package/{CgreportModal-2e4421e6.mjs → CgreportModal-da62724c.mjs} +143 -139
- package/{CheckDictTable-8fb7299c.mjs → CheckDictTable-7320189b.mjs} +1 -1
- package/{CodeFileListModal-25fad54f.mjs → CodeFileListModal-e5ec210d.mjs} +2 -2
- package/CodeFileViewModal-09053f3a.mjs +269 -0
- package/CodeGeneratorModal-aba790e3.mjs +298 -0
- package/{CustomButtonList-26490688.mjs → CustomButtonList-704e6d1c.mjs} +1 -1
- package/{DBAttributeTable-dea8ab11.mjs → DBAttributeTable-4a65c897.mjs} +40 -39
- package/{DbToOnlineModal-60317a16.mjs → DbToOnlineModal-cc398c70.mjs} +1 -1
- package/{DetailForm-b92a5e9d.mjs → DetailForm-a2bf8c33.mjs} +165 -153
- package/{DropMenuItem-82213be6.mjs → DropMenuItem-884f9464.mjs} +1 -1
- package/{EnhanceJavaModal-6ebefc8b.mjs → EnhanceJavaModal-fe8d475d.mjs} +1 -1
- package/{EnhanceJsHistory-8d9b86ca.mjs → EnhanceJsHistory-95ca545c.mjs} +1 -1
- package/{EnhanceJsModal-9439e6f8.mjs → EnhanceJsModal-742b0ee2.mjs} +2 -2
- package/{EnhanceSqlModal-ea4592bf.mjs → EnhanceSqlModal-6e36bc4f.mjs} +1 -1
- package/{ExtendConfigModal-f509db46.mjs → ExtendConfigModal-74d657c7.mjs} +1 -1
- package/{FieldExtendJsonModal-73bab5b5.mjs → FieldExtendJsonModal-fe7f7902.mjs} +2 -2
- package/{FileSelectModal-49d6dade.mjs → FileSelectModal-cf41604b.mjs} +1 -1
- package/{ForeignKeyTable-330963c1.mjs → ForeignKeyTable-4a59ded1.mjs} +1 -1
- package/{IndexTable-c0478faa.mjs → IndexTable-87d67830.mjs} +1 -1
- package/{JModalTip-b1d19eaa.mjs → JModalTip-5401f43d.mjs} +1 -1
- package/{JOnlineSearchSelect-97662e1b.mjs → JOnlineSearchSelect-d8c57973.mjs} +1 -1
- package/{LeftDepart-4b1003f0.mjs → LeftDepart-463bf432.mjs} +1 -1
- package/{LeftRole-8486ba4f.mjs → LeftRole-1631d3d4.mjs} +1 -1
- package/{LeftUser-09894a2f.mjs → LeftUser-5774a5db.mjs} +1 -1
- package/{LinkTableConfigModal-cd0980e9.mjs → LinkTableConfigModal-1bab1423.mjs} +1 -1
- package/{LinkTableFieldConfigModal-f4106ab7.mjs → LinkTableFieldConfigModal-49470140.mjs} +1 -1
- package/{LinkTableListPiece-4187ad7d.mjs → LinkTableListPiece-47f4286c.mjs} +1 -1
- package/{ModalFormDemo-4ec79769.mjs → ModalFormDemo-dbd0aa28.mjs} +1 -1
- package/OnlCgformErpList-35ad1d6e.mjs +528 -0
- package/{OnlCgformErpSubTable-421e2051.mjs → OnlCgformErpSubTable-5093d438.mjs} +43 -41
- package/{OnlCgformInnerSubTable-9616ebf2.mjs → OnlCgformInnerSubTable-f1dc90db.mjs} +106 -102
- package/{OnlCgformInnerTableList-5ed887e4.mjs → OnlCgformInnerTableList-1b82a7da.mjs} +21 -19
- package/{OnlCgformTabList-c03a1d0a.mjs → OnlCgformTabList-d66d1261.mjs} +21 -19
- package/{OnlineAutoList-e5a61211.mjs → OnlineAutoList-fbba2a52.mjs} +20 -18
- package/{OnlineAutoModal-38f2d522.mjs → OnlineAutoModal-68909692.mjs} +10 -9
- package/{OnlineAutoTreeList-16fa962f.mjs → OnlineAutoTreeList-5153f09d.mjs} +20 -18
- package/OnlineCustomModal-b5f8c799.mjs +247 -0
- package/{OnlineDetailModal-79085ba8.mjs → OnlineDetailModal-ac078a9a.mjs} +45 -43
- package/OnlineForm-20604e4f.mjs +1080 -0
- package/OnlineFormDetail-719118b6.mjs +350 -0
- package/{OnlineFormUrlAdd-2e05ba0f.mjs → OnlineFormUrlAdd-5b675f48.mjs} +12 -11
- package/{OnlineFormUrlDetail-06b2d9e6.mjs → OnlineFormUrlDetail-91156bf2.mjs} +15 -13
- package/{OnlineFormUrlEdit-77ac4bba.mjs → OnlineFormUrlEdit-fb810de6.mjs} +12 -11
- package/{OnlineFormUrlSuccess-cb3f7be4.mjs → OnlineFormUrlSuccess-302ecb21.mjs} +1 -1
- package/{OnlineQueryForm-528af6ed.mjs → OnlineQueryForm-5eeceb51.mjs} +120 -120
- package/{OnlineSearchFormItem-51eefaf4.mjs → OnlineSearchFormItem-5536a1a6.mjs} +2 -2
- package/{OnlineSelectCascade-b218691c.mjs → OnlineSelectCascade-180e8c9a.mjs} +61 -55
- package/{OnlineSubFormDetail-a1b7f33f.mjs → OnlineSubFormDetail-4d64e7be.mjs} +48 -44
- package/{OnlineTabAutoModal-1c7c4ed2.mjs → OnlineTabAutoModal-c127ed50.mjs} +9 -8
- package/{OnlineTabDetailModal-7c45e727.mjs → OnlineTabDetailModal-e4e9f7e3.mjs} +39 -37
- package/{OnlineTabForm-9682158f.mjs → OnlineTabForm-827e7089.mjs} +25 -24
- package/OnlineTabFormDetail-0f96377e.mjs +329 -0
- package/{PageAttributeTable-21314341.mjs → PageAttributeTable-5703e2f1.mjs} +5 -5
- package/{PhoneLoginForm-c3c16f16.mjs → PhoneLoginForm-15dc68ed.mjs} +18 -18
- package/ProcessOnlineForm-1fcbe0af.mjs +219 -0
- package/{QueryTable-413d1366.mjs → QueryTable-26c9ee22.mjs} +1 -1
- package/{SetSwitchOptions-82fd6265.mjs → SetSwitchOptions-a3428177.mjs} +1 -1
- package/{ShareAddView-a2dba2ef.mjs → ShareAddView-0512e884.mjs} +23 -21
- package/{ShareEditView-ecd590dc.mjs → ShareEditView-b89dfbd3.mjs} +23 -21
- package/{ShareView-84f333e7.mjs → ShareView-faf1a0ab.mjs} +21 -19
- package/{ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs → ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs} +2 -2
- package/{SingleView-d4f29169.mjs → SingleView-21d3a558.mjs} +16 -14
- package/{SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs → SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs} +4 -4
- package/{SuperQuery-290f5080.mjs → SuperQuery-c95f86ee.mjs} +41 -40
- package/TaskOpinionList-73ecb3c8.mjs +101 -0
- package/{aiModal-6e338c79.mjs → aiModal-b44fa135.mjs} +2 -2
- package/dayjs.min-eea532a3.mjs +301 -0
- package/{index-9bebbfe5.mjs → index-02f6dc7d.mjs} +2 -2
- package/{index-7890e2b4.mjs → index-22a99f2e.mjs} +1 -1
- package/{index-7bab525f.mjs → index-26940246.mjs} +3 -3
- package/{index-254a82b7.mjs → index-30da2fc0.mjs} +130 -123
- package/{index-c5737cbb.mjs → index-391aec04.mjs} +4 -4
- package/index-94b6319e.mjs +57 -0
- package/{index-bc0d747e.mjs → index-abbfd327.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-aaa30c8c.mjs +410 -0
- package/useExtendComponent-ad499dff.mjs +4164 -0
- package/{useListButton-7f9674a0.mjs → useListButton-308458cd.mjs} +21 -21
- package/CodeFileViewModal-12299ab5.mjs +0 -253
- package/CodeGeneratorModal-791b1695.mjs +0 -281
- package/OnlCgformErpList-63089149.mjs +0 -498
- package/OnlineCustomModal-7e31297e.mjs +0 -232
- package/OnlineForm-0438f4bf.mjs +0 -1012
- package/OnlineFormDetail-76d243ed.mjs +0 -348
- package/OnlineTabFormDetail-b8650175.mjs +0 -327
- package/ProcessOnlineForm-d6113dec.mjs +0 -188
- package/README.md +0 -26
- package/index-30c0a14f.mjs +0 -57
- package/useCgformList-52631580.mjs +0 -395
- package/useExtendComponent-d1db211d.mjs +0 -4460
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
var ce = Object.defineProperty, ue = Object.defineProperties;
|
|
2
2
|
var de = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var U = Object.getOwnPropertySymbols;
|
|
4
4
|
var pe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var r in
|
|
7
|
-
pe.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
me.call(
|
|
5
|
+
var K = (t, l, r) => l in t ? ce(t, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[l] = r, q = (t, l) => {
|
|
6
|
+
for (var r in l || (l = {}))
|
|
7
|
+
pe.call(l, r) && K(t, r, l[r]);
|
|
8
|
+
if (U)
|
|
9
|
+
for (var r of U(l))
|
|
10
|
+
me.call(l, r) && K(t, r, l[r]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var N = (t,
|
|
12
|
+
}, j = (t, l) => ue(t, de(l));
|
|
13
|
+
var N = (t, l, r) => new Promise((_, m) => {
|
|
14
14
|
var g = (u) => {
|
|
15
15
|
try {
|
|
16
16
|
c(r.next(u));
|
|
17
|
-
} catch (
|
|
18
|
-
m(
|
|
17
|
+
} catch (w) {
|
|
18
|
+
m(w);
|
|
19
19
|
}
|
|
20
20
|
}, S = (u) => {
|
|
21
21
|
try {
|
|
22
22
|
c(r.throw(u));
|
|
23
|
-
} catch (
|
|
24
|
-
m(
|
|
23
|
+
} catch (w) {
|
|
24
|
+
m(w);
|
|
25
25
|
}
|
|
26
26
|
}, c = (u) => u.done ? _(u.value) : Promise.resolve(u.value).then(g, S);
|
|
27
|
-
c((r = r.apply(t,
|
|
27
|
+
c((r = r.apply(t, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as fe, ref as P, reactive as
|
|
29
|
+
import { defineComponent as fe, ref as P, reactive as Q, unref as h, computed as ge, resolveComponent as C, openBlock as M, createBlock as B, mergeProps as he, withCtx as b, createVNode as y, createElementVNode as v, createTextVNode as T } from "vue";
|
|
30
30
|
import { useModalInner as be, BasicModal as ye } from "/@/components/Modal";
|
|
31
31
|
import { useForm as xe, BasicForm as _e } from "/@/components/Form/index";
|
|
32
|
-
import { useJvxeMethod as Se } from "/@/hooks/system/useJvxeMethods
|
|
33
|
-
import { JVxeTypes as
|
|
34
|
-
import { duplicateCheckDelay as
|
|
32
|
+
import { useJvxeMethod as Se } from "/@/hooks/system/useJvxeMethods";
|
|
33
|
+
import { JVxeTypes as n } from "/@/components/jeecg/JVxeTable/types";
|
|
34
|
+
import { duplicateCheckDelay as we } from "/@/views/system/user/user.api";
|
|
35
35
|
import { defHttp as x } from "/@/utils/http/axios";
|
|
36
|
-
import { useMessage as
|
|
37
|
-
import { usePermissionStore as
|
|
38
|
-
import { _ as
|
|
39
|
-
const { createConfirm: ke } =
|
|
40
|
-
|
|
41
|
-
}),
|
|
36
|
+
import { useMessage as H } from "/@/hooks/web/useMessage";
|
|
37
|
+
import { usePermissionStore as Ce } from "/@/store/modules/permission";
|
|
38
|
+
import { _ as ve } from "./index-94b6319e.mjs";
|
|
39
|
+
const { createConfirm: ke } = H(), Ie = "/online/cgreport/param/listByHeadId", Pe = "/online/cgreport/item/listByHeadId", Ye = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), Ze = (t, l) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
40
|
+
l();
|
|
41
|
+
}), Ge = (t, l) => {
|
|
42
42
|
ke({
|
|
43
43
|
title: "确认删除",
|
|
44
44
|
content: "是否删除选中数据",
|
|
@@ -46,15 +46,15 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
46
46
|
cancelText: "取消",
|
|
47
47
|
iconType: "warning",
|
|
48
48
|
onOk: () => x.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
49
|
-
|
|
49
|
+
l();
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
|
-
}, Te = (t,
|
|
52
|
+
}, Te = (t, l) => l ? x.put({ url: "/online/cgreport/head/editAll", params: t }) : x.post({ url: "/online/cgreport/head/add", params: t }), et = (t) => x.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), Ve = () => x.get({
|
|
53
53
|
url: "/sys/dataSource/options"
|
|
54
54
|
/* getDataSourceList */
|
|
55
55
|
}), Le = (t) => x.get({
|
|
56
56
|
url: "/online/cgreport/head/parseSql?" + t
|
|
57
|
-
}), $e =
|
|
57
|
+
}), $e = Ce(), tt = [
|
|
58
58
|
{
|
|
59
59
|
title: "报表名字",
|
|
60
60
|
align: "center",
|
|
@@ -77,7 +77,7 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
77
77
|
title: "数据源",
|
|
78
78
|
align: "center",
|
|
79
79
|
dataIndex: "dbSource",
|
|
80
|
-
customRender: ({ text: t, record:
|
|
80
|
+
customRender: ({ text: t, record: l }) => l.dbSource_dictText ? l.dbSource_dictText : t,
|
|
81
81
|
width: 120
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -86,7 +86,7 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
86
86
|
dataIndex: "createTime",
|
|
87
87
|
width: 120
|
|
88
88
|
}
|
|
89
|
-
],
|
|
89
|
+
], lt = [
|
|
90
90
|
{
|
|
91
91
|
label: "报表名称",
|
|
92
92
|
field: "name",
|
|
@@ -116,7 +116,7 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
116
116
|
xl: 8,
|
|
117
117
|
xxl: 8
|
|
118
118
|
},
|
|
119
|
-
dynamicRules: ({ values: t, model:
|
|
119
|
+
dynamicRules: ({ values: t, model: l }) => [
|
|
120
120
|
{
|
|
121
121
|
required: !0,
|
|
122
122
|
validator: (r, _) => new Promise((m, g) => {
|
|
@@ -128,9 +128,9 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
128
128
|
tableName: "onl_cgreport_head",
|
|
129
129
|
fieldName: "code",
|
|
130
130
|
fieldVal: _,
|
|
131
|
-
dataId:
|
|
131
|
+
dataId: l.id
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
we(S).then((c) => {
|
|
134
134
|
c.success ? m() : g("报表编码已存在!");
|
|
135
135
|
}).catch((c) => {
|
|
136
136
|
g(c.message || "校验失败");
|
|
@@ -231,8 +231,8 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
231
231
|
{
|
|
232
232
|
title: "参数字段",
|
|
233
233
|
key: "paramName",
|
|
234
|
-
type:
|
|
235
|
-
width: "
|
|
234
|
+
type: n.input,
|
|
235
|
+
width: "150px",
|
|
236
236
|
placeholder: "请输入${title}",
|
|
237
237
|
defaultValue: "",
|
|
238
238
|
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
@@ -240,17 +240,17 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
240
240
|
{
|
|
241
241
|
title: "参数文本",
|
|
242
242
|
key: "paramTxt",
|
|
243
|
-
type:
|
|
244
|
-
width: "
|
|
243
|
+
type: n.input,
|
|
244
|
+
width: "150px",
|
|
245
245
|
placeholder: "请输入${title}",
|
|
246
246
|
defaultValue: "",
|
|
247
247
|
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
title: "
|
|
250
|
+
title: "默认值",
|
|
251
251
|
key: "paramValue",
|
|
252
|
-
type:
|
|
253
|
-
width: "
|
|
252
|
+
type: n.input,
|
|
253
|
+
width: "150px",
|
|
254
254
|
placeholder: "请输入${title}",
|
|
255
255
|
defaultValue: ""
|
|
256
256
|
}
|
|
@@ -258,8 +258,8 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
258
258
|
{
|
|
259
259
|
title: "字段名字",
|
|
260
260
|
key: "fieldName",
|
|
261
|
-
type:
|
|
262
|
-
|
|
261
|
+
type: n.input,
|
|
262
|
+
width: "160px",
|
|
263
263
|
placeholder: "请输入${title}",
|
|
264
264
|
defaultValue: "",
|
|
265
265
|
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
@@ -267,27 +267,27 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
267
267
|
{
|
|
268
268
|
title: "字段文本",
|
|
269
269
|
key: "fieldTxt",
|
|
270
|
-
type:
|
|
271
|
-
|
|
270
|
+
type: n.input,
|
|
271
|
+
width: "160px",
|
|
272
272
|
placeholder: "请输入${title}",
|
|
273
273
|
defaultValue: "",
|
|
274
274
|
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
title: "
|
|
277
|
+
title: "宽度",
|
|
278
278
|
key: "fieldWidth",
|
|
279
|
-
type:
|
|
280
|
-
|
|
279
|
+
type: n.input,
|
|
280
|
+
width: "80px",
|
|
281
281
|
defaultValue: ""
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
|
-
title: "
|
|
284
|
+
title: "类型",
|
|
285
285
|
key: "fieldType",
|
|
286
|
-
|
|
286
|
+
width: "120px",
|
|
287
287
|
placeholder: "请输入${title}",
|
|
288
288
|
defaultValue: "",
|
|
289
289
|
validateRules: [{ required: !0, message: "${title}不能为空" }],
|
|
290
|
-
type:
|
|
290
|
+
type: n.select,
|
|
291
291
|
options: [
|
|
292
292
|
{ title: "数值类型", value: "Integer" },
|
|
293
293
|
{ title: "字符类型", value: "String" },
|
|
@@ -298,88 +298,88 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
298
298
|
]
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
title: "
|
|
301
|
+
title: "列显示",
|
|
302
302
|
key: "isShow",
|
|
303
|
-
|
|
303
|
+
width: "80px",
|
|
304
304
|
align: "center",
|
|
305
|
-
type:
|
|
305
|
+
type: n.checkbox,
|
|
306
306
|
customValue: [1, 0],
|
|
307
307
|
defaultChecked: !0
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
title: "字段href",
|
|
311
311
|
key: "fieldHref",
|
|
312
|
-
type:
|
|
313
|
-
|
|
312
|
+
type: n.input,
|
|
313
|
+
width: "120px",
|
|
314
314
|
placeholder: "请输入${title}",
|
|
315
315
|
defaultValue: ""
|
|
316
316
|
},
|
|
317
|
+
{
|
|
318
|
+
title: "查询",
|
|
319
|
+
key: "isSearch",
|
|
320
|
+
type: n.checkbox,
|
|
321
|
+
customValue: ["1", "0"],
|
|
322
|
+
width: "80px",
|
|
323
|
+
align: "center",
|
|
324
|
+
defaultChecked: !1
|
|
325
|
+
},
|
|
317
326
|
{
|
|
318
327
|
title: "查询模式",
|
|
319
328
|
key: "searchMode",
|
|
320
|
-
type:
|
|
321
|
-
|
|
329
|
+
type: n.select,
|
|
330
|
+
width: "120px",
|
|
322
331
|
placeholder: "请选择${title}",
|
|
323
332
|
options: [
|
|
324
|
-
{ title: "
|
|
333
|
+
{ title: "单值查询", value: "single" },
|
|
325
334
|
{ title: "范围查询", value: "group" }
|
|
326
335
|
]
|
|
327
336
|
},
|
|
328
337
|
{
|
|
329
338
|
title: "取值表达式",
|
|
330
339
|
key: "replaceVal",
|
|
331
|
-
type:
|
|
332
|
-
|
|
340
|
+
type: n.input,
|
|
341
|
+
width: "120px",
|
|
333
342
|
placeholder: "请输入${title}",
|
|
334
343
|
defaultValue: ""
|
|
335
344
|
},
|
|
336
345
|
{
|
|
337
346
|
title: "字典code",
|
|
338
347
|
key: "dictCode",
|
|
339
|
-
type:
|
|
340
|
-
|
|
348
|
+
type: n.input,
|
|
349
|
+
width: "120px",
|
|
341
350
|
placeholder: "请输入${title}",
|
|
342
351
|
defaultValue: ""
|
|
343
352
|
},
|
|
344
353
|
{
|
|
345
354
|
title: "分组标题",
|
|
346
355
|
key: "groupTitle",
|
|
347
|
-
type:
|
|
348
|
-
|
|
356
|
+
type: n.input,
|
|
357
|
+
width: "120px",
|
|
349
358
|
placeholder: "请输入${title}",
|
|
350
359
|
defaultValue: ""
|
|
351
360
|
},
|
|
352
361
|
{
|
|
353
|
-
title: "
|
|
354
|
-
key: "isSearch",
|
|
355
|
-
type: a.checkbox,
|
|
356
|
-
customValue: ["1", "0"],
|
|
357
|
-
minWidth: "80px",
|
|
358
|
-
align: "center",
|
|
359
|
-
defaultChecked: !1
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
title: "是否合计",
|
|
362
|
+
title: "合计列",
|
|
363
363
|
align: "center",
|
|
364
364
|
key: "isTotal",
|
|
365
|
-
type:
|
|
365
|
+
type: n.checkbox,
|
|
366
366
|
customValue: ["1", "0"],
|
|
367
|
-
|
|
367
|
+
width: "80px",
|
|
368
368
|
defaultChecked: !1
|
|
369
369
|
}
|
|
370
370
|
], De = { style: { flex: "1", "text-align": "left" } }, Me = /* @__PURE__ */ fe({
|
|
371
371
|
__name: "CgreportModal",
|
|
372
372
|
emits: ["register", "success"],
|
|
373
|
-
setup(t, { emit:
|
|
374
|
-
const { createMessage: r } =
|
|
373
|
+
setup(t, { emit: l }) {
|
|
374
|
+
const { createMessage: r } = H(), _ = l, m = P(!0), g = P(!0), S = P(["onlCgreportItem", "onlCgreportParam"]), c = P("onlCgreportItem"), u = P(), w = P(), E = { onlCgreportItem: w, onlCgreportParam: u }, k = Q({
|
|
375
375
|
loading: !1,
|
|
376
376
|
dataSource: [],
|
|
377
377
|
columns: Fe
|
|
378
|
-
}), I =
|
|
378
|
+
}), I = Q({
|
|
379
379
|
loading: !1,
|
|
380
380
|
dataSource: [],
|
|
381
381
|
columns: Re
|
|
382
|
-
}), [
|
|
382
|
+
}), [W, { setProps: X, resetFields: Y, setFieldsValue: O, validate: Oe, validateFields: Z }] = xe({
|
|
383
383
|
// labelWidth: 150,
|
|
384
384
|
schemas: Ne,
|
|
385
385
|
showActionButtonGroup: !1,
|
|
@@ -387,24 +387,24 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
387
387
|
labelWidth: 100,
|
|
388
388
|
wrapperCol: null
|
|
389
389
|
// update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
390
|
-
}), [
|
|
391
|
-
var
|
|
392
|
-
yield
|
|
393
|
-
})), [te,
|
|
390
|
+
}), [G, { setModalProps: V, closeModal: ee }] = be((e) => N(this, null, function* () {
|
|
391
|
+
var o, a;
|
|
392
|
+
yield ae(), V({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), h(m) && (yield O(q({}, e.record)), z(Ie, { headId: (o = e == null ? void 0 : e.record) == null ? void 0 : o.id }, k), z(Pe, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), X({ disabled: !(e != null && e.showFooter) }), e != null && e.aigc && (yield O(q({}, e.aigc)), setTimeout(() => A()));
|
|
393
|
+
})), [te, le, z, oe] = Se(
|
|
394
394
|
ie,
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
ne,
|
|
396
|
+
E,
|
|
397
397
|
c,
|
|
398
398
|
S
|
|
399
399
|
), re = ge(() => h(m) ? "编辑" : "新增");
|
|
400
|
-
function
|
|
400
|
+
function ae() {
|
|
401
401
|
return N(this, null, function* () {
|
|
402
|
-
yield
|
|
402
|
+
yield Y(), c.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
let
|
|
407
|
-
return
|
|
405
|
+
function ne(e) {
|
|
406
|
+
let o = Object.assign({}, e.formValue);
|
|
407
|
+
return j(q({}, o), {
|
|
408
408
|
// 展开
|
|
409
409
|
onlCgreportParamList: e.tablesValue[1].tableData,
|
|
410
410
|
onlCgreportItemList: e.tablesValue[0].tableData
|
|
@@ -414,24 +414,24 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
414
414
|
return N(this, null, function* () {
|
|
415
415
|
try {
|
|
416
416
|
V({ confirmLoading: !0 });
|
|
417
|
-
let
|
|
417
|
+
let o = [], a = [], s = {};
|
|
418
418
|
Object.keys(e).map((i) => {
|
|
419
|
-
i == "onlCgreportItemList" ?
|
|
420
|
-
}), yield Te({ head: s, params:
|
|
419
|
+
i == "onlCgreportItemList" ? a = e[i] : i == "onlCgreportParamList" ? o = e[i] : s[i] = e[i];
|
|
420
|
+
}), yield Te({ head: s, params: o, items: a }, m.value), ee(), _("success");
|
|
421
421
|
} finally {
|
|
422
422
|
V({ confirmLoading: !1 });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
V({ confirmLoading: !0 }),
|
|
428
|
-
let { cgrSql:
|
|
429
|
-
|
|
426
|
+
function A() {
|
|
427
|
+
V({ confirmLoading: !0 }), Z(["cgrSql", "dbSource"]).then((e) => {
|
|
428
|
+
let { cgrSql: o, dbSource: a } = e, s = "sql=" + encodeURIComponent(o);
|
|
429
|
+
a && (s += "&dbKey=" + a), Le(s).then((d) => {
|
|
430
430
|
if (d) {
|
|
431
431
|
r.success("解析成功");
|
|
432
|
-
let { fields: i, params: p } = d, f = i.filter(($) => $.fieldName != "__row_number__"), F =
|
|
432
|
+
let { fields: i, params: p } = d, f = i.filter(($) => $.fieldName != "__row_number__"), F = w.value.getTableData(), L = J(F, f || [], "fieldName");
|
|
433
433
|
L = L.sort(($, D) => $.orderNum - D.orderNum), I.dataSource = L;
|
|
434
|
-
let se = u.value.getTableData(), R =
|
|
434
|
+
let se = u.value.getTableData(), R = J(se, p || [], "paramName");
|
|
435
435
|
R = R.sort(($, D) => $.orderNum - D.orderNum), k.dataSource = R;
|
|
436
436
|
}
|
|
437
437
|
});
|
|
@@ -440,73 +440,73 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
440
440
|
V({ confirmLoading: !1 });
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function J(e, o, a) {
|
|
444
444
|
if (e.length > 0) {
|
|
445
445
|
let s = [], d = [], i = 1;
|
|
446
|
-
for (let p of
|
|
446
|
+
for (let p of o)
|
|
447
447
|
for (let f of e)
|
|
448
|
-
if (f[
|
|
449
|
-
s.push(f), d.push(p[
|
|
448
|
+
if (f[a] == p[a]) {
|
|
449
|
+
s.push(f), d.push(p[a]), f.orderNum > i && (i = f.orderNum);
|
|
450
450
|
break;
|
|
451
451
|
}
|
|
452
|
-
for (let p of
|
|
453
|
-
d.indexOf(p[
|
|
452
|
+
for (let p of o)
|
|
453
|
+
d.indexOf(p[a]) < 0 && (p.orderNum = ++i, s.push(p));
|
|
454
454
|
return s;
|
|
455
455
|
} else {
|
|
456
456
|
let s = 0;
|
|
457
|
-
for (let d of
|
|
457
|
+
for (let d of o)
|
|
458
458
|
d.orderNum || (d.orderNum = ++s);
|
|
459
|
-
return
|
|
459
|
+
return o;
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
return (e,
|
|
463
|
-
const
|
|
464
|
-
return M(),
|
|
465
|
-
onRegister: h(
|
|
462
|
+
return (e, o) => {
|
|
463
|
+
const a = C("a-icon"), s = C("a-popover"), d = C("a-button"), i = C("a-divider"), p = C("JVxeTable"), f = C("a-tab-pane"), F = C("a-tabs");
|
|
464
|
+
return M(), B(h(ye), he(e.$attrs, {
|
|
465
|
+
onRegister: h(G),
|
|
466
466
|
title: re.value,
|
|
467
467
|
width: 1200,
|
|
468
468
|
maskClosable: !1,
|
|
469
469
|
defaultFullscreen: !0,
|
|
470
470
|
confirmLoading: g.value,
|
|
471
|
-
onOk: h(
|
|
471
|
+
onOk: h(le)
|
|
472
472
|
}), {
|
|
473
473
|
default: b(() => [
|
|
474
474
|
y(h(_e), {
|
|
475
|
-
onRegister: h(
|
|
475
|
+
onRegister: h(W),
|
|
476
476
|
ref_key: "formRef",
|
|
477
|
-
ref:
|
|
477
|
+
ref: oe
|
|
478
478
|
}, {
|
|
479
479
|
analyseButton: b(() => [
|
|
480
|
-
|
|
480
|
+
v("div", De, [
|
|
481
481
|
y(s, {
|
|
482
482
|
title: "使用指南",
|
|
483
483
|
trigger: "hover",
|
|
484
484
|
style: { margin: "0 10px 0 6px" }
|
|
485
485
|
}, {
|
|
486
|
-
content: b(() =>
|
|
486
|
+
content: b(() => o[1] || (o[1] = [
|
|
487
487
|
T(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
|
|
488
|
-
|
|
488
|
+
v("br", null, null, -1),
|
|
489
489
|
T(" select * from table where id = ${abc}。"),
|
|
490
|
-
|
|
490
|
+
v("br", null, null, -1),
|
|
491
491
|
T(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
|
|
492
|
-
|
|
492
|
+
v("br", null, null, -1),
|
|
493
493
|
T(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
|
|
494
|
-
|
|
494
|
+
v("br", null, null, -1),
|
|
495
495
|
T(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
v("br", null, null, -1),
|
|
497
|
+
v("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1)
|
|
498
498
|
])),
|
|
499
499
|
default: b(() => [
|
|
500
|
-
y(
|
|
500
|
+
y(a, { type: "question-circle" })
|
|
501
501
|
]),
|
|
502
502
|
_: 1
|
|
503
503
|
}),
|
|
504
504
|
y(d, {
|
|
505
505
|
style: { "margin-left": "10px" },
|
|
506
506
|
type: "primary",
|
|
507
|
-
onClick:
|
|
507
|
+
onClick: A
|
|
508
508
|
}, {
|
|
509
|
-
default: b(() =>
|
|
509
|
+
default: b(() => o[2] || (o[2] = [
|
|
510
510
|
T("SQL解析")
|
|
511
511
|
])),
|
|
512
512
|
_: 1
|
|
@@ -521,12 +521,12 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
521
521
|
}),
|
|
522
522
|
y(F, {
|
|
523
523
|
activeKey: c.value,
|
|
524
|
-
"onUpdate:activeKey":
|
|
524
|
+
"onUpdate:activeKey": o[0] || (o[0] = (L) => c.value = L),
|
|
525
525
|
animated: "",
|
|
526
526
|
onChange: h(te)
|
|
527
527
|
}, {
|
|
528
528
|
default: b(() => [
|
|
529
|
-
(M(),
|
|
529
|
+
(M(), B(f, {
|
|
530
530
|
tab: "动态报表配置明细",
|
|
531
531
|
key: S.value[0],
|
|
532
532
|
forceRender: !0
|
|
@@ -537,7 +537,7 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
537
537
|
dragSort: "",
|
|
538
538
|
resizable: "",
|
|
539
539
|
ref_key: "onlCgreportItem",
|
|
540
|
-
ref:
|
|
540
|
+
ref: w,
|
|
541
541
|
loading: I.loading,
|
|
542
542
|
columns: I.columns,
|
|
543
543
|
dataSource: I.dataSource,
|
|
@@ -547,12 +547,14 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
547
547
|
dragSortFixed: "none",
|
|
548
548
|
rowNumberFixed: "none",
|
|
549
549
|
rowSelectionFixed: "none",
|
|
550
|
-
toolbar: !0
|
|
550
|
+
toolbar: !0,
|
|
551
|
+
scrollX: { enabled: !0, gt: 0 },
|
|
552
|
+
scrollY: { enabled: !0, gt: 10 }
|
|
551
553
|
}, null, 8, ["loading", "columns", "dataSource"])
|
|
552
554
|
]),
|
|
553
555
|
_: 1
|
|
554
556
|
})),
|
|
555
|
-
(M(),
|
|
557
|
+
(M(), B(f, {
|
|
556
558
|
tab: "报表参数",
|
|
557
559
|
key: S.value[1],
|
|
558
560
|
forceRender: !0
|
|
@@ -573,7 +575,9 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
573
575
|
dragSortFixed: "none",
|
|
574
576
|
rowNumberFixed: "none",
|
|
575
577
|
rowSelectionFixed: "none",
|
|
576
|
-
toolbar: !0
|
|
578
|
+
toolbar: !0,
|
|
579
|
+
scrollX: { enabled: !0, gt: 0 },
|
|
580
|
+
scrollY: { enabled: !0, gt: 10 }
|
|
577
581
|
}, null, 8, ["loading", "columns", "dataSource"])
|
|
578
582
|
]),
|
|
579
583
|
_: 1
|
|
@@ -587,17 +591,17 @@ const { createConfirm: ke } = Q(), Ie = "/online/cgreport/param/listByHeadId", P
|
|
|
587
591
|
};
|
|
588
592
|
}
|
|
589
593
|
});
|
|
590
|
-
const
|
|
594
|
+
const Be = /* @__PURE__ */ ve(Me, [["__scopeId", "data-v-f50c9cde"]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
591
595
|
__proto__: null,
|
|
592
|
-
default:
|
|
596
|
+
default: Be
|
|
593
597
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
594
598
|
export {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
599
|
+
Be as C,
|
|
600
|
+
ot as a,
|
|
601
|
+
Ge as b,
|
|
598
602
|
tt as c,
|
|
599
|
-
|
|
603
|
+
Ze as d,
|
|
600
604
|
et as g,
|
|
601
|
-
|
|
602
|
-
|
|
605
|
+
Ye as l,
|
|
606
|
+
lt as s
|
|
603
607
|
};
|
|
@@ -16,7 +16,7 @@ import { u as K } from "./useTableSync-dbfba20e.mjs";
|
|
|
16
16
|
import { useMessage as G } from "/@/hooks/web/useMessage";
|
|
17
17
|
import { useJPrompt as L } from "/@/components/jeecg/JPrompt";
|
|
18
18
|
import { useDesign as Q } from "/@/hooks/web/useDesign";
|
|
19
|
-
import { _ as U } from "./index-
|
|
19
|
+
import { _ as U } from "./index-94b6319e.mjs";
|
|
20
20
|
import "./cgform.data-0ca62d09.mjs";
|
|
21
21
|
import "/@/utils/dict";
|
|
22
22
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -19,10 +19,10 @@ import { defHttp as R } from "/@/utils/http/axios";
|
|
|
19
19
|
import "/@/components/Form";
|
|
20
20
|
import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
|
|
21
21
|
import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
|
|
22
|
-
import S from "./CodeFileViewModal-
|
|
22
|
+
import S from "./CodeFileViewModal-09053f3a.mjs";
|
|
23
23
|
import { useMessage as H } from "/@/hooks/web/useMessage";
|
|
24
24
|
import { downloadByData as I } from "/@/utils/file/download";
|
|
25
|
-
import { _ as E } from "./index-
|
|
25
|
+
import { _ as E } from "./index-94b6319e.mjs";
|
|
26
26
|
import "ant-design-vue";
|
|
27
27
|
import "/@/hooks/web/useDesign";
|
|
28
28
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|