@jeecg/online 3.6.2-GA → 3.7.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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ce = Object.defineProperty, de = Object.defineProperties;
|
|
2
2
|
var ue = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var J = (t, o, l) => o in t ?
|
|
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
6
|
for (var l in o || (o = {}))
|
|
7
|
-
|
|
7
|
+
pe.call(o, l) && J(t, l, o[l]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var l of A(o))
|
|
10
|
-
|
|
10
|
+
me.call(o, l) && J(t, l, o[l]);
|
|
11
11
|
return t;
|
|
12
|
-
}, U = (t, o) =>
|
|
13
|
-
var
|
|
14
|
-
var f = (
|
|
12
|
+
}, U = (t, o) => de(t, ue(o));
|
|
13
|
+
var R = (t, o, l) => new Promise((m, v) => {
|
|
14
|
+
var f = (d) => {
|
|
15
15
|
try {
|
|
16
|
-
c(l.next(
|
|
16
|
+
c(l.next(d));
|
|
17
17
|
} catch (V) {
|
|
18
18
|
v(V);
|
|
19
19
|
}
|
|
20
|
-
}, h = (
|
|
20
|
+
}, h = (d) => {
|
|
21
21
|
try {
|
|
22
|
-
c(l.throw(
|
|
22
|
+
c(l.throw(d));
|
|
23
23
|
} catch (V) {
|
|
24
24
|
v(V);
|
|
25
25
|
}
|
|
26
|
-
}, c = (
|
|
26
|
+
}, c = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(f, h);
|
|
27
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
|
|
29
|
+
import { defineComponent as fe, ref as I, reactive as K, unref as b, computed as ge, resolveComponent as S, openBlock as F, createBlock as O, mergeProps as he, withCtx as _, createVNode as y, createElementVNode as C, createTextVNode as P, pushScopeId as be, popScopeId as _e } from "vue";
|
|
30
|
+
import { useModalInner as ye, BasicModal as xe } from "/@/components/Modal";
|
|
31
|
+
import { useForm as Se, BasicForm as Ce } from "/@/components/Form/index";
|
|
32
|
+
import { useJvxeMethod as ve } from "/@/hooks/system/useJvxeMethods.ts";
|
|
33
33
|
import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
|
|
34
|
-
import {
|
|
35
|
-
import { defHttp as
|
|
36
|
-
import { useMessage as
|
|
37
|
-
import { usePermissionStore as
|
|
38
|
-
|
|
34
|
+
import { duplicateCheckDelay as ke } from "/@/views/system/user/user.api";
|
|
35
|
+
import { defHttp as x } from "/@/utils/http/axios";
|
|
36
|
+
import { useMessage as j } from "/@/hooks/web/useMessage";
|
|
37
|
+
import { usePermissionStore as we } from "/@/store/modules/permission";
|
|
38
|
+
import { _ as Ie } from "./index-173949bb.mjs";
|
|
39
|
+
const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", Ve = "/online/cgreport/item/listByHeadId", at = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), nt = (t, o) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
39
40
|
o();
|
|
40
|
-
}),
|
|
41
|
-
|
|
41
|
+
}), it = (t, o) => {
|
|
42
|
+
Pe({
|
|
42
43
|
title: "确认删除",
|
|
43
44
|
content: "是否删除选中数据",
|
|
44
45
|
okText: "确认",
|
|
45
46
|
cancelText: "取消",
|
|
46
47
|
iconType: "warning",
|
|
47
|
-
onOk: () =>
|
|
48
|
+
onOk: () => x.delete({ url: "/online/cgreport/head/deleteBatch", data: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
48
49
|
o();
|
|
49
50
|
})
|
|
50
51
|
});
|
|
51
|
-
},
|
|
52
|
+
}, Le = (t, o) => o ? x.put({ url: "/online/cgreport/head/editAll", params: t }) : x.post({ url: "/online/cgreport/head/add", params: t }), st = (t) => x.get({ url: "/online/cgreport/api/getParamsInfo/" + t }), $e = () => x.get({
|
|
52
53
|
url: "/sys/dataSource/options"
|
|
53
54
|
/* getDataSourceList */
|
|
54
|
-
}),
|
|
55
|
+
}), qe = (t) => x.get({
|
|
55
56
|
url: "/online/cgreport/head/parseSql?" + t
|
|
56
|
-
}),
|
|
57
|
+
}), Re = we(), ct = [
|
|
57
58
|
{
|
|
58
59
|
title: "报表名字",
|
|
59
60
|
align: "center",
|
|
@@ -76,6 +77,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
76
77
|
title: "数据源",
|
|
77
78
|
align: "center",
|
|
78
79
|
dataIndex: "dbSource",
|
|
80
|
+
customRender: ({ text: t, record: o }) => o.dbSource_dictText ? o.dbSource_dictText : t,
|
|
79
81
|
width: 120
|
|
80
82
|
},
|
|
81
83
|
{
|
|
@@ -84,7 +86,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
84
86
|
dataIndex: "createTime",
|
|
85
87
|
width: 120
|
|
86
88
|
}
|
|
87
|
-
],
|
|
89
|
+
], dt = [
|
|
88
90
|
{
|
|
89
91
|
label: "报表名称",
|
|
90
92
|
field: "name",
|
|
@@ -95,7 +97,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
95
97
|
field: "code",
|
|
96
98
|
component: "JInput"
|
|
97
99
|
}
|
|
98
|
-
],
|
|
100
|
+
], Ne = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, De = [
|
|
99
101
|
{
|
|
100
102
|
label: "",
|
|
101
103
|
field: "id",
|
|
@@ -120,7 +122,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
120
122
|
validator: (l, m) => new Promise((v, f) => {
|
|
121
123
|
if (!m)
|
|
122
124
|
return f("请输入报表编码!");
|
|
123
|
-
if (!
|
|
125
|
+
if (!Ne.test(m))
|
|
124
126
|
return f("编码必须以字母开头,可包含数字、下划线、横杠!");
|
|
125
127
|
let h = {
|
|
126
128
|
tableName: "onl_cgreport_head",
|
|
@@ -128,7 +130,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
128
130
|
fieldVal: m,
|
|
129
131
|
dataId: o.id
|
|
130
132
|
};
|
|
131
|
-
|
|
133
|
+
ke(h).then((c) => {
|
|
132
134
|
c.success ? v() : f("报表编码已存在!");
|
|
133
135
|
}).catch((c) => {
|
|
134
136
|
f(c.message || "校验失败");
|
|
@@ -163,9 +165,9 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
163
165
|
xxl: 8
|
|
164
166
|
},
|
|
165
167
|
component: "ApiSelect",
|
|
166
|
-
rules: [{ required:
|
|
168
|
+
rules: [{ required: Re.sysSafeMode, message: "请选择数据源!" }],
|
|
167
169
|
componentProps: {
|
|
168
|
-
api:
|
|
170
|
+
api: $e
|
|
169
171
|
}
|
|
170
172
|
},
|
|
171
173
|
/* {
|
|
@@ -187,16 +189,23 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
187
189
|
field: "cgrSql",
|
|
188
190
|
component: "JCodeEditor",
|
|
189
191
|
rules: [{ required: !0, message: "请填写报表SQL" }],
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
},
|
|
192
|
+
// update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
193
|
+
// itemProps: {
|
|
194
|
+
// labelCol: { xs: 24, sm: 4, md: 2, lg: 2, xl: 3, xxl: 2 },
|
|
195
|
+
// wrapperCol: { xs: { span: 24 }, sm: { span: 18 }, md: { span: 24 } },
|
|
196
|
+
// },
|
|
197
|
+
// update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
194
198
|
componentProps: {
|
|
195
199
|
height: "200px",
|
|
196
200
|
fullScreen: !0
|
|
197
201
|
},
|
|
198
202
|
colProps: {
|
|
199
|
-
|
|
203
|
+
sm: 24,
|
|
204
|
+
xs: 24,
|
|
205
|
+
md: 18,
|
|
206
|
+
lg: 16,
|
|
207
|
+
xl: 16,
|
|
208
|
+
xxl: 16
|
|
200
209
|
}
|
|
201
210
|
},
|
|
202
211
|
{
|
|
@@ -205,7 +214,12 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
205
214
|
component: "Input",
|
|
206
215
|
slot: "analyseButton",
|
|
207
216
|
colProps: {
|
|
208
|
-
|
|
217
|
+
xs: 24,
|
|
218
|
+
sm: 24,
|
|
219
|
+
md: 6,
|
|
220
|
+
lg: 8,
|
|
221
|
+
xl: 8,
|
|
222
|
+
xxl: 8
|
|
209
223
|
},
|
|
210
224
|
itemProps: {
|
|
211
225
|
labelCol: { xs: 1, sm: 1 },
|
|
@@ -213,7 +227,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
213
227
|
colon: !1
|
|
214
228
|
}
|
|
215
229
|
}
|
|
216
|
-
],
|
|
230
|
+
], Me = [
|
|
217
231
|
{
|
|
218
232
|
title: "参数字段",
|
|
219
233
|
key: "paramName",
|
|
@@ -240,7 +254,7 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
240
254
|
placeholder: "请输入${title}",
|
|
241
255
|
defaultValue: ""
|
|
242
256
|
}
|
|
243
|
-
],
|
|
257
|
+
], Be = [
|
|
244
258
|
{
|
|
245
259
|
title: "字段名字",
|
|
246
260
|
key: "fieldName",
|
|
@@ -345,38 +359,42 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
345
359
|
minWidth: "80px",
|
|
346
360
|
defaultChecked: !1
|
|
347
361
|
}
|
|
348
|
-
],
|
|
362
|
+
], T = (t) => (be("data-v-f79bfba3"), t = t(), _e(), t), Fe = { style: { flex: "1", "text-align": "left" } }, Oe = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), We = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), ze = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), Ae = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), Je = /* @__PURE__ */ T(() => /* @__PURE__ */ C("br", null, null, -1)), Ue = /* @__PURE__ */ T(() => /* @__PURE__ */ C("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1)), Ke = /* @__PURE__ */ fe({
|
|
349
363
|
__name: "CgreportModal",
|
|
350
364
|
emits: ["register", "success"],
|
|
351
365
|
setup(t, { emit: o }) {
|
|
352
|
-
const { createMessage: l } =
|
|
366
|
+
const { createMessage: l } = j(), m = I(!0), v = I(!0), f = I(["onlCgreportItem", "onlCgreportParam"]), h = I("onlCgreportItem"), c = I(), d = I(), V = { onlCgreportItem: d, onlCgreportParam: c }, k = K({
|
|
353
367
|
loading: !1,
|
|
354
368
|
dataSource: [],
|
|
355
|
-
columns:
|
|
356
|
-
}), w =
|
|
369
|
+
columns: Me
|
|
370
|
+
}), w = K({
|
|
357
371
|
loading: !1,
|
|
358
372
|
dataSource: [],
|
|
359
|
-
columns:
|
|
360
|
-
}), [Q, { setProps: H, resetFields:
|
|
373
|
+
columns: Be
|
|
374
|
+
}), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate: Qe, validateFields: G }] = Se({
|
|
361
375
|
// labelWidth: 150,
|
|
362
|
-
schemas:
|
|
363
|
-
showActionButtonGroup: !1
|
|
364
|
-
|
|
376
|
+
schemas: De,
|
|
377
|
+
showActionButtonGroup: !1,
|
|
378
|
+
// update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
379
|
+
labelWidth: 100,
|
|
380
|
+
wrapperCol: null
|
|
381
|
+
// update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
382
|
+
}), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
|
|
365
383
|
var r, a;
|
|
366
|
-
yield
|
|
367
|
-
})), [
|
|
384
|
+
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), b(m) && (yield Z(B({}, e.record)), W(Te, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(Ve, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, w)), H({ disabled: !(e != null && e.showFooter) });
|
|
385
|
+
})), [ee, te, W, oe] = ve(
|
|
386
|
+
ne,
|
|
368
387
|
ae,
|
|
369
|
-
re,
|
|
370
388
|
V,
|
|
371
389
|
h,
|
|
372
390
|
f
|
|
373
|
-
),
|
|
374
|
-
function
|
|
375
|
-
return
|
|
376
|
-
yield
|
|
391
|
+
), le = ge(() => b(m) ? "编辑" : "新增");
|
|
392
|
+
function re() {
|
|
393
|
+
return R(this, null, function* () {
|
|
394
|
+
yield E(), h.value = "onlCgreportItem", k.dataSource = [], w.dataSource = [];
|
|
377
395
|
});
|
|
378
396
|
}
|
|
379
|
-
function
|
|
397
|
+
function ae(e) {
|
|
380
398
|
let r = Object.assign({}, e.formValue);
|
|
381
399
|
return U(B({}, r), {
|
|
382
400
|
// 展开
|
|
@@ -384,29 +402,29 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
384
402
|
onlCgreportItemList: e.tablesValue[0].tableData
|
|
385
403
|
});
|
|
386
404
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
405
|
+
function ne(e) {
|
|
406
|
+
return R(this, null, function* () {
|
|
389
407
|
try {
|
|
390
408
|
L({ confirmLoading: !0 });
|
|
391
409
|
let r = [], a = [], s = {};
|
|
392
410
|
Object.keys(e).map((n) => {
|
|
393
411
|
n == "onlCgreportItemList" ? a = e[n] : n == "onlCgreportParamList" ? r = e[n] : s[n] = e[n];
|
|
394
|
-
}), yield
|
|
412
|
+
}), yield Le({ head: s, params: r, items: a }, m.value), Y(), o("success");
|
|
395
413
|
} finally {
|
|
396
414
|
L({ confirmLoading: !1 });
|
|
397
415
|
}
|
|
398
416
|
});
|
|
399
417
|
}
|
|
400
|
-
function
|
|
401
|
-
L({ confirmLoading: !0 }),
|
|
418
|
+
function ie() {
|
|
419
|
+
L({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
|
|
402
420
|
let { cgrSql: r, dbSource: a } = e, s = "sql=" + encodeURIComponent(r);
|
|
403
|
-
a && (s += "&dbKey=" + a),
|
|
404
|
-
if (
|
|
421
|
+
a && (s += "&dbKey=" + a), qe(s).then((u) => {
|
|
422
|
+
if (u) {
|
|
405
423
|
l.success("解析成功");
|
|
406
|
-
let { fields: n, params: p } =
|
|
407
|
-
|
|
408
|
-
let
|
|
409
|
-
|
|
424
|
+
let { fields: n, params: p } = u, g = n.filter((q) => q.fieldName != "__row_number__"), N = d.value.getTableData(), $ = z(N, g || [], "fieldName");
|
|
425
|
+
$ = $.sort((q, M) => q.orderNum - M.orderNum), w.dataSource = $;
|
|
426
|
+
let se = c.value.getTableData(), D = z(se, p || [], "paramName");
|
|
427
|
+
D = D.sort((q, M) => q.orderNum - M.orderNum), k.dataSource = D;
|
|
410
428
|
}
|
|
411
429
|
});
|
|
412
430
|
}).catch(() => {
|
|
@@ -414,73 +432,73 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
414
432
|
L({ confirmLoading: !1 });
|
|
415
433
|
});
|
|
416
434
|
}
|
|
417
|
-
function
|
|
435
|
+
function z(e, r, a) {
|
|
418
436
|
if (e.length > 0) {
|
|
419
|
-
let s = [],
|
|
437
|
+
let s = [], u = [], n = 1;
|
|
420
438
|
for (let p of r)
|
|
421
439
|
for (let g of e)
|
|
422
440
|
if (g[a] == p[a]) {
|
|
423
|
-
s.push(g),
|
|
441
|
+
s.push(g), u.push(p[a]), g.orderNum > n && (n = g.orderNum);
|
|
424
442
|
break;
|
|
425
443
|
}
|
|
426
444
|
for (let p of r)
|
|
427
|
-
|
|
445
|
+
u.indexOf(p[a]) < 0 && (p.orderNum = ++n, s.push(p));
|
|
428
446
|
return s;
|
|
429
447
|
} else {
|
|
430
448
|
let s = 0;
|
|
431
|
-
for (let
|
|
432
|
-
|
|
449
|
+
for (let u of r)
|
|
450
|
+
u.orderNum || (u.orderNum = ++s);
|
|
433
451
|
return r;
|
|
434
452
|
}
|
|
435
453
|
}
|
|
436
454
|
return (e, r) => {
|
|
437
|
-
const a = S("a-icon"), s = S("a-popover"),
|
|
438
|
-
return F(),
|
|
439
|
-
onRegister: b(
|
|
440
|
-
title:
|
|
455
|
+
const a = S("a-icon"), s = S("a-popover"), u = S("a-button"), n = S("a-divider"), p = S("JVxeTable"), g = S("a-tab-pane"), N = S("a-tabs");
|
|
456
|
+
return F(), O(b(xe), he(e.$attrs, {
|
|
457
|
+
onRegister: b(X),
|
|
458
|
+
title: le.value,
|
|
441
459
|
width: 1200,
|
|
442
460
|
maskClosable: !1,
|
|
443
461
|
defaultFullscreen: !0,
|
|
444
462
|
confirmLoading: v.value,
|
|
445
|
-
onOk: b(
|
|
463
|
+
onOk: b(te)
|
|
446
464
|
}), {
|
|
447
|
-
default:
|
|
448
|
-
|
|
465
|
+
default: _(() => [
|
|
466
|
+
y(b(Ce), {
|
|
449
467
|
onRegister: b(Q),
|
|
450
468
|
ref_key: "formRef",
|
|
451
|
-
ref:
|
|
469
|
+
ref: oe
|
|
452
470
|
}, {
|
|
453
|
-
analyseButton:
|
|
454
|
-
C("div",
|
|
455
|
-
|
|
471
|
+
analyseButton: _(() => [
|
|
472
|
+
C("div", Fe, [
|
|
473
|
+
y(s, {
|
|
456
474
|
title: "使用指南",
|
|
457
475
|
trigger: "hover",
|
|
458
476
|
style: { margin: "0 10px 0 6px" }
|
|
459
477
|
}, {
|
|
460
|
-
content:
|
|
478
|
+
content: _(() => [
|
|
461
479
|
P(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
|
|
462
|
-
|
|
480
|
+
Oe,
|
|
463
481
|
P(" select * from table where id = ${abc}。"),
|
|
464
|
-
|
|
482
|
+
We,
|
|
465
483
|
P(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
|
|
466
|
-
|
|
484
|
+
ze,
|
|
467
485
|
P(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
|
|
468
|
-
|
|
486
|
+
Ae,
|
|
469
487
|
P(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
|
|
470
|
-
|
|
471
|
-
|
|
488
|
+
Je,
|
|
489
|
+
Ue
|
|
472
490
|
]),
|
|
473
|
-
default:
|
|
474
|
-
|
|
491
|
+
default: _(() => [
|
|
492
|
+
y(a, { type: "question-circle" })
|
|
475
493
|
]),
|
|
476
494
|
_: 1
|
|
477
495
|
}),
|
|
478
|
-
|
|
496
|
+
y(u, {
|
|
479
497
|
style: { "margin-left": "10px" },
|
|
480
498
|
type: "primary",
|
|
481
|
-
onClick:
|
|
499
|
+
onClick: ie
|
|
482
500
|
}, {
|
|
483
|
-
default:
|
|
501
|
+
default: _(() => [
|
|
484
502
|
P("SQL解析")
|
|
485
503
|
]),
|
|
486
504
|
_: 1
|
|
@@ -489,29 +507,29 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
489
507
|
]),
|
|
490
508
|
_: 1
|
|
491
509
|
}, 8, ["onRegister"]),
|
|
492
|
-
|
|
510
|
+
y(n, {
|
|
493
511
|
style: { margin: "1px 0" },
|
|
494
512
|
class: "cust-divider"
|
|
495
513
|
}),
|
|
496
|
-
|
|
514
|
+
y(N, {
|
|
497
515
|
activeKey: h.value,
|
|
498
|
-
"onUpdate:activeKey": r[0] || (r[0] = (
|
|
516
|
+
"onUpdate:activeKey": r[0] || (r[0] = ($) => h.value = $),
|
|
499
517
|
animated: "",
|
|
500
|
-
onChange: b(
|
|
518
|
+
onChange: b(ee)
|
|
501
519
|
}, {
|
|
502
|
-
default:
|
|
503
|
-
(F(),
|
|
520
|
+
default: _(() => [
|
|
521
|
+
(F(), O(g, {
|
|
504
522
|
tab: "动态报表配置明细",
|
|
505
523
|
key: f.value[0],
|
|
506
524
|
forceRender: !0
|
|
507
525
|
}, {
|
|
508
|
-
default:
|
|
509
|
-
|
|
526
|
+
default: _(() => [
|
|
527
|
+
y(p, {
|
|
510
528
|
"keep-source": "",
|
|
511
529
|
dragSort: "",
|
|
512
530
|
resizable: "",
|
|
513
531
|
ref_key: "onlCgreportItem",
|
|
514
|
-
ref:
|
|
532
|
+
ref: d,
|
|
515
533
|
loading: w.loading,
|
|
516
534
|
columns: w.columns,
|
|
517
535
|
dataSource: w.dataSource,
|
|
@@ -523,13 +541,13 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
523
541
|
]),
|
|
524
542
|
_: 1
|
|
525
543
|
})),
|
|
526
|
-
(F(),
|
|
544
|
+
(F(), O(g, {
|
|
527
545
|
tab: "报表参数",
|
|
528
546
|
key: f.value[1],
|
|
529
547
|
forceRender: !0
|
|
530
548
|
}, {
|
|
531
|
-
default:
|
|
532
|
-
|
|
549
|
+
default: _(() => [
|
|
550
|
+
y(p, {
|
|
533
551
|
"keep-source": "",
|
|
534
552
|
resizable: "",
|
|
535
553
|
dragSort: "",
|
|
@@ -555,12 +573,17 @@ const { createConfirm: ve } = K(), ke = "/online/cgreport/param/listByHeadId", w
|
|
|
555
573
|
};
|
|
556
574
|
}
|
|
557
575
|
});
|
|
576
|
+
const je = /* @__PURE__ */ Ie(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
577
|
+
__proto__: null,
|
|
578
|
+
default: je
|
|
579
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
558
580
|
export {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
581
|
+
je as C,
|
|
582
|
+
ut as a,
|
|
583
|
+
it as b,
|
|
584
|
+
ct as c,
|
|
585
|
+
nt as d,
|
|
586
|
+
st as g,
|
|
587
|
+
at as l,
|
|
588
|
+
dt as s
|
|
566
589
|
};
|