@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
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ce = Object.defineProperty, ue = Object.defineProperties;
|
|
2
|
+
var de = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var J = (t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var pe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var J = (t, o, l) => o in t ? ce(t, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[o] = l, B = (t, o) => {
|
|
6
|
+
for (var l in o || (o = {}))
|
|
7
|
+
pe.call(o, l) && J(t, l, o[l]);
|
|
8
8
|
if (A)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var l of A(o))
|
|
10
|
+
me.call(o, l) && J(t, l, o[l]);
|
|
11
11
|
return t;
|
|
12
|
-
}, U = (t,
|
|
13
|
-
var q = (t,
|
|
14
|
-
var
|
|
12
|
+
}, U = (t, o) => ue(t, de(o));
|
|
13
|
+
var q = (t, o, l) => new Promise((_, m) => {
|
|
14
|
+
var g = (u) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
c(l.next(u));
|
|
17
|
+
} catch (C) {
|
|
18
|
+
m(C);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, S = (u) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
c(l.throw(u));
|
|
23
|
+
} catch (C) {
|
|
24
|
+
m(C);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, c = (u) => u.done ? _(u.value) : Promise.resolve(u.value).then(g, S);
|
|
27
|
+
c((l = l.apply(t, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as
|
|
30
|
-
import { useModalInner as
|
|
31
|
-
import { useForm as
|
|
32
|
-
import { useJvxeMethod as
|
|
33
|
-
import { JVxeTypes as
|
|
34
|
-
import { duplicateCheck as
|
|
35
|
-
import { defHttp as
|
|
29
|
+
import { defineComponent as fe, ref as P, reactive as z, unref as h, computed as ge, resolveComponent as v, openBlock as F, createBlock as M, mergeProps as he, withCtx as b, createVNode as y, createElementVNode as k, createTextVNode as V } from "vue";
|
|
30
|
+
import { useModalInner as be, BasicModal as ye } from "/@/components/Modal";
|
|
31
|
+
import { useForm as xe, BasicForm as _e } from "/@/components/Form/index";
|
|
32
|
+
import { useJvxeMethod as Se } from "/@/hooks/system/useJvxeMethods.ts";
|
|
33
|
+
import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
|
|
34
|
+
import { duplicateCheck as Ce } from "/@/views/system/user/user.api";
|
|
35
|
+
import { defHttp as x } from "/@/utils/http/axios";
|
|
36
36
|
import { useMessage as K } from "/@/hooks/web/useMessage";
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
import { usePermissionStore as ve } from "/@/store/modules/permission";
|
|
38
|
+
const { createConfirm: ke } = K(), we = "/online/cgreport/param/listByHeadId", Ie = "/online/cgreport/item/listByHeadId", Ye = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), et = (t, o) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
39
|
+
o();
|
|
40
|
+
}), tt = (t, o) => {
|
|
41
|
+
ke({
|
|
41
42
|
title: "确认删除",
|
|
42
43
|
content: "是否删除选中数据",
|
|
43
44
|
okText: "确认",
|
|
44
45
|
cancelText: "取消",
|
|
45
46
|
iconType: "warning",
|
|
46
|
-
onOk: () =>
|
|
47
|
-
|
|
47
|
+
onOk: () => x.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
48
|
+
o();
|
|
48
49
|
})
|
|
49
50
|
});
|
|
50
|
-
},
|
|
51
|
+
}, Pe = (t, o) => o ? x.put({ url: "/online/cgreport/head/editAll", params: t }) : x.post({ url: "/online/cgreport/head/add", params: t }), ot = (t) => x.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), Ve = () => x.get({
|
|
51
52
|
url: "/sys/dataSource/options"
|
|
52
53
|
/* getDataSourceList */
|
|
53
|
-
}),
|
|
54
|
+
}), Le = (t) => x.get({
|
|
54
55
|
url: "/online/cgreport/head/parseSql?" + t
|
|
55
|
-
}),
|
|
56
|
+
}), Te = ve(), lt = [
|
|
56
57
|
{
|
|
57
58
|
title: "报表名字",
|
|
58
59
|
align: "center",
|
|
@@ -83,7 +84,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
83
84
|
dataIndex: "createTime",
|
|
84
85
|
width: 120
|
|
85
86
|
}
|
|
86
|
-
],
|
|
87
|
+
], rt = [
|
|
87
88
|
{
|
|
88
89
|
label: "报表名称",
|
|
89
90
|
field: "name",
|
|
@@ -94,7 +95,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
94
95
|
field: "code",
|
|
95
96
|
component: "JInput"
|
|
96
97
|
}
|
|
97
|
-
],
|
|
98
|
+
], $e = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, qe = [
|
|
98
99
|
{
|
|
99
100
|
label: "",
|
|
100
101
|
field: "id",
|
|
@@ -113,28 +114,28 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
113
114
|
xl: 8,
|
|
114
115
|
xxl: 8
|
|
115
116
|
},
|
|
116
|
-
dynamicRules: ({ values: t, model:
|
|
117
|
+
dynamicRules: ({ values: t, model: o }) => [
|
|
117
118
|
{
|
|
118
119
|
required: !0,
|
|
119
|
-
validator: (
|
|
120
|
-
if (!
|
|
121
|
-
return
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
124
|
-
let
|
|
120
|
+
validator: (l, _) => new Promise((m, g) => {
|
|
121
|
+
if (!_)
|
|
122
|
+
return g("请输入报表编码!");
|
|
123
|
+
if (!$e.test(_))
|
|
124
|
+
return g("编码必须以字母开头,可包含数字、下划线、横杠!");
|
|
125
|
+
let S = {
|
|
125
126
|
tableName: "onl_cgreport_head",
|
|
126
127
|
fieldName: "code",
|
|
127
|
-
fieldVal:
|
|
128
|
-
dataId:
|
|
128
|
+
fieldVal: _,
|
|
129
|
+
dataId: o.id
|
|
129
130
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}).catch((
|
|
133
|
-
|
|
131
|
+
Ce(S).then((c) => {
|
|
132
|
+
c.success ? m() : g("报表编码已存在!");
|
|
133
|
+
}).catch((c) => {
|
|
134
|
+
g(c.message || "校验失败");
|
|
134
135
|
});
|
|
135
136
|
})
|
|
136
137
|
}
|
|
137
|
-
]
|
|
138
|
+
]
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
label: "报表名字",
|
|
@@ -162,8 +163,9 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
162
163
|
xxl: 8
|
|
163
164
|
},
|
|
164
165
|
component: "ApiSelect",
|
|
166
|
+
rules: [{ required: Te.sysSafeMode, message: "请选择数据源!" }],
|
|
165
167
|
componentProps: {
|
|
166
|
-
api:
|
|
168
|
+
api: Ve
|
|
167
169
|
}
|
|
168
170
|
},
|
|
169
171
|
/* {
|
|
@@ -211,11 +213,11 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
211
213
|
colon: !1
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
|
-
],
|
|
216
|
+
], Ne = [
|
|
215
217
|
{
|
|
216
218
|
title: "参数字段",
|
|
217
219
|
key: "paramName",
|
|
218
|
-
type:
|
|
220
|
+
type: i.input,
|
|
219
221
|
width: "200px",
|
|
220
222
|
placeholder: "请输入${title}",
|
|
221
223
|
defaultValue: "",
|
|
@@ -224,7 +226,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
224
226
|
{
|
|
225
227
|
title: "参数文本",
|
|
226
228
|
key: "paramTxt",
|
|
227
|
-
type:
|
|
229
|
+
type: i.input,
|
|
228
230
|
width: "200px",
|
|
229
231
|
placeholder: "请输入${title}",
|
|
230
232
|
defaultValue: "",
|
|
@@ -233,16 +235,16 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
233
235
|
{
|
|
234
236
|
title: "参数默认值",
|
|
235
237
|
key: "paramValue",
|
|
236
|
-
type:
|
|
238
|
+
type: i.input,
|
|
237
239
|
width: "200px",
|
|
238
240
|
placeholder: "请输入${title}",
|
|
239
241
|
defaultValue: ""
|
|
240
242
|
}
|
|
241
|
-
],
|
|
243
|
+
], Re = [
|
|
242
244
|
{
|
|
243
245
|
title: "字段名字",
|
|
244
246
|
key: "fieldName",
|
|
245
|
-
type:
|
|
247
|
+
type: i.input,
|
|
246
248
|
minWidth: "150px",
|
|
247
249
|
placeholder: "请输入${title}",
|
|
248
250
|
defaultValue: "",
|
|
@@ -251,7 +253,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
251
253
|
{
|
|
252
254
|
title: "字段文本",
|
|
253
255
|
key: "fieldTxt",
|
|
254
|
-
type:
|
|
256
|
+
type: i.input,
|
|
255
257
|
minWidth: "150px",
|
|
256
258
|
placeholder: "请输入${title}",
|
|
257
259
|
defaultValue: "",
|
|
@@ -264,7 +266,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
264
266
|
placeholder: "请输入${title}",
|
|
265
267
|
defaultValue: "",
|
|
266
268
|
validateRules: [{ required: !0, message: "${title}不能为空" }],
|
|
267
|
-
type:
|
|
269
|
+
type: i.select,
|
|
268
270
|
options: [
|
|
269
271
|
{ title: "数值类型", value: "Integer" },
|
|
270
272
|
{ title: "字符类型", value: "String" },
|
|
@@ -278,14 +280,14 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
278
280
|
key: "isShow",
|
|
279
281
|
minWidth: "80px",
|
|
280
282
|
align: "center",
|
|
281
|
-
type:
|
|
283
|
+
type: i.checkbox,
|
|
282
284
|
customValue: [1, 0],
|
|
283
285
|
defaultChecked: !0
|
|
284
286
|
},
|
|
285
287
|
{
|
|
286
288
|
title: "字段href",
|
|
287
289
|
key: "fieldHref",
|
|
288
|
-
type:
|
|
290
|
+
type: i.input,
|
|
289
291
|
minWidth: "150px",
|
|
290
292
|
placeholder: "请输入${title}",
|
|
291
293
|
defaultValue: ""
|
|
@@ -293,7 +295,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
293
295
|
{
|
|
294
296
|
title: "查询模式",
|
|
295
297
|
key: "searchMode",
|
|
296
|
-
type:
|
|
298
|
+
type: i.select,
|
|
297
299
|
minWidth: "150px",
|
|
298
300
|
placeholder: "请选择${title}",
|
|
299
301
|
options: [
|
|
@@ -304,7 +306,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
304
306
|
{
|
|
305
307
|
title: "取值表达式",
|
|
306
308
|
key: "replaceVal",
|
|
307
|
-
type:
|
|
309
|
+
type: i.input,
|
|
308
310
|
minWidth: "150px",
|
|
309
311
|
placeholder: "请输入${title}",
|
|
310
312
|
defaultValue: ""
|
|
@@ -312,7 +314,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
312
314
|
{
|
|
313
315
|
title: "字典code",
|
|
314
316
|
key: "dictCode",
|
|
315
|
-
type:
|
|
317
|
+
type: i.input,
|
|
316
318
|
minWidth: "150px",
|
|
317
319
|
placeholder: "请输入${title}",
|
|
318
320
|
defaultValue: ""
|
|
@@ -320,7 +322,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
320
322
|
{
|
|
321
323
|
title: "分组标题",
|
|
322
324
|
key: "groupTitle",
|
|
323
|
-
type:
|
|
325
|
+
type: i.input,
|
|
324
326
|
minWidth: "150px",
|
|
325
327
|
placeholder: "请输入${title}",
|
|
326
328
|
defaultValue: ""
|
|
@@ -328,7 +330,7 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
328
330
|
{
|
|
329
331
|
title: "是否查询",
|
|
330
332
|
key: "isSearch",
|
|
331
|
-
type:
|
|
333
|
+
type: i.checkbox,
|
|
332
334
|
customValue: ["1", "0"],
|
|
333
335
|
minWidth: "80px",
|
|
334
336
|
align: "center",
|
|
@@ -338,43 +340,43 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
338
340
|
title: "是否合计",
|
|
339
341
|
align: "center",
|
|
340
342
|
key: "isTotal",
|
|
341
|
-
type:
|
|
343
|
+
type: i.checkbox,
|
|
342
344
|
customValue: ["1", "0"],
|
|
343
345
|
minWidth: "80px",
|
|
344
346
|
defaultChecked: !1
|
|
345
347
|
}
|
|
346
|
-
],
|
|
348
|
+
], De = { style: { flex: "1", "text-align": "left" } }, Be = /* @__PURE__ */ k("br", null, null, -1), Fe = /* @__PURE__ */ k("br", null, null, -1), Me = /* @__PURE__ */ k("br", null, null, -1), We = /* @__PURE__ */ k("br", null, null, -1), Oe = /* @__PURE__ */ k("br", null, null, -1), Ae = /* @__PURE__ */ k("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1), at = /* @__PURE__ */ fe({
|
|
347
349
|
__name: "CgreportModal",
|
|
348
350
|
emits: ["register", "success"],
|
|
349
|
-
setup(t, { emit:
|
|
350
|
-
const { createMessage:
|
|
351
|
+
setup(t, { emit: o }) {
|
|
352
|
+
const { createMessage: l } = K(), _ = o, m = P(!0), g = P(!0), S = P(["onlCgreportItem", "onlCgreportParam"]), c = P("onlCgreportItem"), u = P(), C = P(), Q = { onlCgreportItem: C, onlCgreportParam: u }, w = z({
|
|
351
353
|
loading: !1,
|
|
352
354
|
dataSource: [],
|
|
353
|
-
columns:
|
|
354
|
-
}),
|
|
355
|
+
columns: Ne
|
|
356
|
+
}), I = z({
|
|
355
357
|
loading: !1,
|
|
356
358
|
dataSource: [],
|
|
357
|
-
columns:
|
|
358
|
-
}), [
|
|
359
|
+
columns: Re
|
|
360
|
+
}), [H, { setProps: j, resetFields: E, setFieldsValue: Z, validate: Je, validateFields: G }] = xe({
|
|
359
361
|
// labelWidth: 150,
|
|
360
|
-
schemas:
|
|
362
|
+
schemas: qe,
|
|
361
363
|
showActionButtonGroup: !1
|
|
362
|
-
}), [
|
|
364
|
+
}), [X, { setModalProps: L, closeModal: Y }] = be((e) => q(this, null, function* () {
|
|
363
365
|
var r, a;
|
|
364
|
-
yield
|
|
365
|
-
})), [
|
|
366
|
+
yield re(), L({ 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 Z(B({}, e.record)), W(we, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, w), W(Ie, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), j({ disabled: !(e != null && e.showFooter) });
|
|
367
|
+
})), [ee, te, W, oe] = Se(
|
|
368
|
+
ne,
|
|
366
369
|
ae,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
function oe() {
|
|
370
|
+
Q,
|
|
371
|
+
c,
|
|
372
|
+
S
|
|
373
|
+
), le = ge(() => h(m) ? "编辑" : "新增");
|
|
374
|
+
function re() {
|
|
373
375
|
return q(this, null, function* () {
|
|
374
|
-
yield E(),
|
|
376
|
+
yield E(), c.value = "onlCgreportItem", w.dataSource = [], I.dataSource = [];
|
|
375
377
|
});
|
|
376
378
|
}
|
|
377
|
-
function
|
|
379
|
+
function ae(e) {
|
|
378
380
|
let r = Object.assign({}, e.formValue);
|
|
379
381
|
return U(B({}, r), {
|
|
380
382
|
// 展开
|
|
@@ -382,107 +384,104 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
382
384
|
onlCgreportItemList: e.tablesValue[0].tableData
|
|
383
385
|
});
|
|
384
386
|
}
|
|
385
|
-
function
|
|
387
|
+
function ne(e) {
|
|
386
388
|
return q(this, null, function* () {
|
|
387
389
|
try {
|
|
388
390
|
L({ confirmLoading: !0 });
|
|
389
|
-
let r = [], a = [],
|
|
390
|
-
Object.keys(e).map((
|
|
391
|
-
|
|
392
|
-
});
|
|
393
|
-
let c = { head: n, params: r, items: a };
|
|
394
|
-
console.log("报表配置保存请求参数", c), yield we(c, m.value), X(), l("success");
|
|
391
|
+
let r = [], a = [], s = {};
|
|
392
|
+
Object.keys(e).map((n) => {
|
|
393
|
+
n == "onlCgreportItemList" ? a = e[n] : n == "onlCgreportParamList" ? r = e[n] : s[n] = e[n];
|
|
394
|
+
}), yield Pe({ head: s, params: r, items: a }, m.value), Y(), _("success");
|
|
395
395
|
} finally {
|
|
396
396
|
L({ confirmLoading: !1 });
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
L({ confirmLoading: !0 }),
|
|
402
|
-
let { cgrSql: r, dbSource: a } = e,
|
|
403
|
-
a && (
|
|
404
|
-
if (
|
|
405
|
-
|
|
406
|
-
let { fields:
|
|
407
|
-
T = T.sort(($, D) => $.orderNum - D.orderNum),
|
|
408
|
-
let
|
|
409
|
-
R = R.sort(($, D) => $.orderNum - D.orderNum),
|
|
400
|
+
function ie() {
|
|
401
|
+
L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
|
|
402
|
+
let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
|
|
403
|
+
a && (s += "&dbKey=" + a), Le(s).then((d) => {
|
|
404
|
+
if (d) {
|
|
405
|
+
l.success("解析成功");
|
|
406
|
+
let { fields: n, params: p } = d, f = n.filter(($) => $.fieldName != "__row_number__"), N = C.value.getTableData(), T = O(N, f || [], "fieldName");
|
|
407
|
+
T = T.sort(($, D) => $.orderNum - D.orderNum), I.dataSource = T;
|
|
408
|
+
let se = u.value.getTableData(), R = O(se, p || [], "paramName");
|
|
409
|
+
R = R.sort(($, D) => $.orderNum - D.orderNum), w.dataSource = R;
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}).catch(() => {
|
|
413
|
-
console.log("解析失败");
|
|
414
413
|
}).finally(() => {
|
|
415
414
|
L({ confirmLoading: !1 });
|
|
416
415
|
});
|
|
417
416
|
}
|
|
418
417
|
function O(e, r, a) {
|
|
419
418
|
if (e.length > 0) {
|
|
420
|
-
let
|
|
419
|
+
let s = [], d = [], n = 1;
|
|
421
420
|
for (let p of r)
|
|
422
|
-
for (let
|
|
423
|
-
if (
|
|
424
|
-
|
|
421
|
+
for (let f of e)
|
|
422
|
+
if (f[a] == p[a]) {
|
|
423
|
+
s.push(f), d.push(p[a]), f.orderNum > n && (n = f.orderNum);
|
|
425
424
|
break;
|
|
426
425
|
}
|
|
427
426
|
for (let p of r)
|
|
428
|
-
|
|
429
|
-
return
|
|
427
|
+
d.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
|
|
428
|
+
return s;
|
|
430
429
|
} else {
|
|
431
|
-
let
|
|
432
|
-
for (let
|
|
433
|
-
|
|
430
|
+
let s = 0;
|
|
431
|
+
for (let d of r)
|
|
432
|
+
d.orderNum || (d.orderNum = ++s);
|
|
434
433
|
return r;
|
|
435
434
|
}
|
|
436
435
|
}
|
|
437
436
|
return (e, r) => {
|
|
438
|
-
const a =
|
|
439
|
-
return F(),
|
|
440
|
-
onRegister:
|
|
437
|
+
const a = v("a-icon"), s = v("a-popover"), d = v("a-button"), n = v("a-divider"), p = v("JVxeTable"), f = v("a-tab-pane"), N = v("a-tabs");
|
|
438
|
+
return F(), M(h(ye), he(e.$attrs, {
|
|
439
|
+
onRegister: h(X),
|
|
441
440
|
title: le.value,
|
|
442
441
|
width: 1200,
|
|
443
442
|
maskClosable: !1,
|
|
444
443
|
defaultFullscreen: !0,
|
|
445
|
-
confirmLoading:
|
|
446
|
-
onOk:
|
|
444
|
+
confirmLoading: g.value,
|
|
445
|
+
onOk: h(te)
|
|
447
446
|
}), {
|
|
448
|
-
default:
|
|
449
|
-
|
|
450
|
-
onRegister:
|
|
447
|
+
default: b(() => [
|
|
448
|
+
y(h(_e), {
|
|
449
|
+
onRegister: h(H),
|
|
451
450
|
ref_key: "formRef",
|
|
452
|
-
ref:
|
|
451
|
+
ref: oe
|
|
453
452
|
}, {
|
|
454
|
-
analyseButton:
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
analyseButton: b(() => [
|
|
454
|
+
k("div", De, [
|
|
455
|
+
y(s, {
|
|
457
456
|
title: "使用指南",
|
|
458
457
|
trigger: "hover",
|
|
459
458
|
style: { margin: "0 10px 0 6px" }
|
|
460
459
|
}, {
|
|
461
|
-
content:
|
|
462
|
-
|
|
463
|
-
Ne,
|
|
464
|
-
P(" select * from table where id = ${abc}。"),
|
|
465
|
-
Re,
|
|
466
|
-
P(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
|
|
467
|
-
De,
|
|
468
|
-
P(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
|
|
460
|
+
content: b(() => [
|
|
461
|
+
V(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
|
|
469
462
|
Be,
|
|
470
|
-
|
|
463
|
+
V(" select * from table where id = ${abc}。"),
|
|
471
464
|
Fe,
|
|
472
|
-
|
|
465
|
+
V(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
|
|
466
|
+
Me,
|
|
467
|
+
V(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
|
|
468
|
+
We,
|
|
469
|
+
V(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
|
|
470
|
+
Oe,
|
|
471
|
+
Ae
|
|
473
472
|
]),
|
|
474
|
-
default:
|
|
475
|
-
|
|
473
|
+
default: b(() => [
|
|
474
|
+
y(a, { type: "question-circle" })
|
|
476
475
|
]),
|
|
477
476
|
_: 1
|
|
478
477
|
}),
|
|
479
|
-
|
|
478
|
+
y(d, {
|
|
480
479
|
style: { "margin-left": "10px" },
|
|
481
480
|
type: "primary",
|
|
482
|
-
onClick:
|
|
481
|
+
onClick: ie
|
|
483
482
|
}, {
|
|
484
|
-
default:
|
|
485
|
-
|
|
483
|
+
default: b(() => [
|
|
484
|
+
V("SQL解析")
|
|
486
485
|
]),
|
|
487
486
|
_: 1
|
|
488
487
|
})
|
|
@@ -490,32 +489,32 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
490
489
|
]),
|
|
491
490
|
_: 1
|
|
492
491
|
}, 8, ["onRegister"]),
|
|
493
|
-
|
|
492
|
+
y(n, {
|
|
494
493
|
style: { margin: "1px 0" },
|
|
495
494
|
class: "cust-divider"
|
|
496
495
|
}),
|
|
497
|
-
|
|
498
|
-
activeKey:
|
|
499
|
-
"onUpdate:activeKey": r[0] || (r[0] = (T) =>
|
|
496
|
+
y(N, {
|
|
497
|
+
activeKey: c.value,
|
|
498
|
+
"onUpdate:activeKey": r[0] || (r[0] = (T) => c.value = T),
|
|
500
499
|
animated: "",
|
|
501
|
-
onChange:
|
|
500
|
+
onChange: h(ee)
|
|
502
501
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
(F(),
|
|
502
|
+
default: b(() => [
|
|
503
|
+
(F(), M(f, {
|
|
505
504
|
tab: "动态报表配置明细",
|
|
506
|
-
key:
|
|
505
|
+
key: S.value[0],
|
|
507
506
|
forceRender: !0
|
|
508
507
|
}, {
|
|
509
|
-
default:
|
|
510
|
-
|
|
508
|
+
default: b(() => [
|
|
509
|
+
y(p, {
|
|
511
510
|
"keep-source": "",
|
|
512
511
|
dragSort: "",
|
|
513
512
|
resizable: "",
|
|
514
513
|
ref_key: "onlCgreportItem",
|
|
515
|
-
ref:
|
|
516
|
-
loading:
|
|
517
|
-
columns:
|
|
518
|
-
dataSource:
|
|
514
|
+
ref: C,
|
|
515
|
+
loading: I.loading,
|
|
516
|
+
columns: I.columns,
|
|
517
|
+
dataSource: I.dataSource,
|
|
519
518
|
height: 390,
|
|
520
519
|
rowNumber: !0,
|
|
521
520
|
rowSelection: !0,
|
|
@@ -524,21 +523,21 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
524
523
|
]),
|
|
525
524
|
_: 1
|
|
526
525
|
})),
|
|
527
|
-
(F(),
|
|
526
|
+
(F(), M(f, {
|
|
528
527
|
tab: "报表参数",
|
|
529
|
-
key:
|
|
528
|
+
key: S.value[1],
|
|
530
529
|
forceRender: !0
|
|
531
530
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
|
|
531
|
+
default: b(() => [
|
|
532
|
+
y(p, {
|
|
534
533
|
"keep-source": "",
|
|
535
534
|
resizable: "",
|
|
536
535
|
dragSort: "",
|
|
537
536
|
ref_key: "onlCgreportParam",
|
|
538
537
|
ref: u,
|
|
539
|
-
loading:
|
|
540
|
-
columns:
|
|
541
|
-
dataSource:
|
|
538
|
+
loading: w.loading,
|
|
539
|
+
columns: w.columns,
|
|
540
|
+
dataSource: w.dataSource,
|
|
542
541
|
height: 390,
|
|
543
542
|
rowNumber: !0,
|
|
544
543
|
rowSelection: !0,
|
|
@@ -557,11 +556,11 @@ const { createConfirm: Ce } = K(), ve = "/online/cgreport/param/listByHeadId", k
|
|
|
557
556
|
}
|
|
558
557
|
});
|
|
559
558
|
export {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
559
|
+
at as _,
|
|
560
|
+
tt as b,
|
|
561
|
+
lt as c,
|
|
562
|
+
et as d,
|
|
563
|
+
ot as g,
|
|
564
|
+
Ye as l,
|
|
565
|
+
rt as s
|
|
567
566
|
};
|
|
@@ -12,11 +12,11 @@ var _ = (e, t, l) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, y = (e, t) => x(e, E(t));
|
|
13
13
|
import { defineComponent as B, ref as k, computed as N, resolveComponent as u, openBlock as D, createBlock as P, mergeProps as $, withCtx as s, createVNode as n, normalizeClass as w, withDirectives as H, createElementVNode as T, vShow as J } from "vue";
|
|
14
14
|
import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as S } from "./useTableSync-
|
|
15
|
+
import { u as S } from "./useTableSync-774c3774.mjs";
|
|
16
16
|
import { useMessage as I } from "/@/hooks/web/useMessage";
|
|
17
17
|
import { useJPrompt as M } from "/@/components/jeecg/JPrompt";
|
|
18
18
|
import { useDesign as O } from "/@/hooks/web/useDesign";
|
|
19
|
-
import { _ as q } from "./index-
|
|
19
|
+
import { _ as q } from "./index-0e3ab3af.mjs";
|
|
20
20
|
import "./cgform.data-cbdd88c3.mjs";
|
|
21
21
|
import "/@/utils/dict";
|
|
22
22
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -205,7 +205,7 @@ function K(e, t, l, g, m, f) {
|
|
|
205
205
|
_: 1
|
|
206
206
|
}, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
|
|
207
207
|
}
|
|
208
|
-
const se = /* @__PURE__ */ q(z, [["render", K], ["__scopeId", "data-v-
|
|
208
|
+
const se = /* @__PURE__ */ q(z, [["render", K], ["__scopeId", "data-v-592747d8"]]);
|
|
209
209
|
export {
|
|
210
210
|
se as default
|
|
211
211
|
};
|
|
@@ -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-373e8058.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-0e3ab3af.mjs";
|
|
26
26
|
import "ant-design-vue";
|
|
27
27
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
28
|
import "vue-router";
|