@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
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
var ce = Object.defineProperty, de = Object.defineProperties;
|
|
2
2
|
var ue = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var z = Object.getOwnPropertySymbols;
|
|
4
4
|
var pe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
pe.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
me.call(
|
|
5
|
+
var A = (t, l, r) => l in t ? ce(t, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[l] = r, D = (t, l) => {
|
|
6
|
+
for (var r in l || (l = {}))
|
|
7
|
+
pe.call(l, r) && A(t, r, l[r]);
|
|
8
|
+
if (z)
|
|
9
|
+
for (var r of z(l))
|
|
10
|
+
me.call(l, r) && A(t, r, l[r]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, J = (t, l) => de(t, ue(l));
|
|
13
|
+
var q = (t, l, r) => new Promise((_, m) => {
|
|
14
|
+
var g = (d) => {
|
|
15
15
|
try {
|
|
16
|
-
c(
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
c(r.next(d));
|
|
17
|
+
} catch (C) {
|
|
18
|
+
m(C);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, S = (d) => {
|
|
21
21
|
try {
|
|
22
|
-
c(
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
c(r.throw(d));
|
|
23
|
+
} catch (C) {
|
|
24
|
+
m(C);
|
|
25
25
|
}
|
|
26
|
-
}, c = (d) => d.done ?
|
|
27
|
-
c((
|
|
26
|
+
}, c = (d) => d.done ? _(d.value) : Promise.resolve(d.value).then(g, S);
|
|
27
|
+
c((r = r.apply(t, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as fe, ref as
|
|
30
|
-
import { useModalInner as
|
|
31
|
-
import { useForm as
|
|
32
|
-
import { useJvxeMethod as
|
|
33
|
-
import { JVxeTypes as
|
|
34
|
-
import { duplicateCheckDelay as
|
|
29
|
+
import { defineComponent as fe, ref as P, reactive as U, unref as h, computed as ge, resolveComponent as v, openBlock as M, createBlock as W, mergeProps as he, withCtx as b, createVNode as y, createElementVNode as w, createTextVNode as T } 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 n } from "/@/components/jeecg/JVxeTable/types";
|
|
34
|
+
import { duplicateCheckDelay as Ce } 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:
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
|
|
36
|
+
import { useMessage as K } from "/@/hooks/web/useMessage";
|
|
37
|
+
import { usePermissionStore as ve } from "/@/store/modules/permission";
|
|
38
|
+
import { _ as we } from "./index-9e1e1e53.mjs";
|
|
39
|
+
const { createConfirm: ke } = K(), Ie = "/online/cgreport/param/listByHeadId", Pe = "/online/cgreport/item/listByHeadId", Ge = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), Xe = (t, l) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
40
|
+
l();
|
|
41
|
+
}), Ye = (t, l) => {
|
|
42
|
+
ke({
|
|
43
43
|
title: "确认删除",
|
|
44
44
|
content: "是否删除选中数据",
|
|
45
45
|
okText: "确认",
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
57
|
+
}), $e = ve(), tt = [
|
|
58
58
|
{
|
|
59
59
|
title: "报表名字",
|
|
60
60
|
align: "center",
|
|
@@ -77,7 +77,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
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: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
86
86
|
dataIndex: "createTime",
|
|
87
87
|
width: 120
|
|
88
88
|
}
|
|
89
|
-
],
|
|
89
|
+
], lt = [
|
|
90
90
|
{
|
|
91
91
|
label: "报表名称",
|
|
92
92
|
field: "name",
|
|
@@ -97,7 +97,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
97
97
|
field: "code",
|
|
98
98
|
component: "JInput"
|
|
99
99
|
}
|
|
100
|
-
],
|
|
100
|
+
], qe = /^[a-z|A-Z][a-z|A-Z|\d|_|-]{0,}$/, Ne = [
|
|
101
101
|
{
|
|
102
102
|
label: "",
|
|
103
103
|
field: "id",
|
|
@@ -116,24 +116,24 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
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
|
-
validator: (
|
|
123
|
-
if (!
|
|
124
|
-
return
|
|
125
|
-
if (!
|
|
126
|
-
return
|
|
127
|
-
let
|
|
122
|
+
validator: (r, _) => new Promise((m, g) => {
|
|
123
|
+
if (!_)
|
|
124
|
+
return g("请输入报表编码!");
|
|
125
|
+
if (!qe.test(_))
|
|
126
|
+
return g("编码必须以字母开头,可包含数字、下划线、横杠!");
|
|
127
|
+
let S = {
|
|
128
128
|
tableName: "onl_cgreport_head",
|
|
129
129
|
fieldName: "code",
|
|
130
|
-
fieldVal:
|
|
131
|
-
dataId:
|
|
130
|
+
fieldVal: _,
|
|
131
|
+
dataId: l.id
|
|
132
132
|
};
|
|
133
|
-
|
|
134
|
-
c.success ?
|
|
133
|
+
Ce(S).then((c) => {
|
|
134
|
+
c.success ? m() : g("报表编码已存在!");
|
|
135
135
|
}).catch((c) => {
|
|
136
|
-
|
|
136
|
+
g(c.message || "校验失败");
|
|
137
137
|
});
|
|
138
138
|
})
|
|
139
139
|
}
|
|
@@ -165,9 +165,9 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
165
165
|
xxl: 8
|
|
166
166
|
},
|
|
167
167
|
component: "ApiSelect",
|
|
168
|
-
rules: [{ required:
|
|
168
|
+
rules: [{ required: $e.sysSafeMode, message: "请选择数据源!" }],
|
|
169
169
|
componentProps: {
|
|
170
|
-
api:
|
|
170
|
+
api: Ve
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
/* {
|
|
@@ -227,11 +227,11 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
227
227
|
colon: !1
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
],
|
|
230
|
+
], Fe = [
|
|
231
231
|
{
|
|
232
232
|
title: "参数字段",
|
|
233
233
|
key: "paramName",
|
|
234
|
-
type:
|
|
234
|
+
type: n.input,
|
|
235
235
|
width: "200px",
|
|
236
236
|
placeholder: "请输入${title}",
|
|
237
237
|
defaultValue: "",
|
|
@@ -240,7 +240,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
240
240
|
{
|
|
241
241
|
title: "参数文本",
|
|
242
242
|
key: "paramTxt",
|
|
243
|
-
type:
|
|
243
|
+
type: n.input,
|
|
244
244
|
width: "200px",
|
|
245
245
|
placeholder: "请输入${title}",
|
|
246
246
|
defaultValue: "",
|
|
@@ -249,16 +249,16 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
249
249
|
{
|
|
250
250
|
title: "参数默认值",
|
|
251
251
|
key: "paramValue",
|
|
252
|
-
type:
|
|
252
|
+
type: n.input,
|
|
253
253
|
width: "200px",
|
|
254
254
|
placeholder: "请输入${title}",
|
|
255
255
|
defaultValue: ""
|
|
256
256
|
}
|
|
257
|
-
],
|
|
257
|
+
], Re = [
|
|
258
258
|
{
|
|
259
259
|
title: "字段名字",
|
|
260
260
|
key: "fieldName",
|
|
261
|
-
type:
|
|
261
|
+
type: n.input,
|
|
262
262
|
minWidth: "150px",
|
|
263
263
|
placeholder: "请输入${title}",
|
|
264
264
|
defaultValue: "",
|
|
@@ -267,12 +267,19 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
267
267
|
{
|
|
268
268
|
title: "字段文本",
|
|
269
269
|
key: "fieldTxt",
|
|
270
|
-
type:
|
|
270
|
+
type: n.input,
|
|
271
271
|
minWidth: "150px",
|
|
272
272
|
placeholder: "请输入${title}",
|
|
273
273
|
defaultValue: "",
|
|
274
274
|
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
275
275
|
},
|
|
276
|
+
{
|
|
277
|
+
title: "字段宽度",
|
|
278
|
+
key: "fieldWidth",
|
|
279
|
+
type: n.input,
|
|
280
|
+
minWidth: "100px",
|
|
281
|
+
defaultValue: ""
|
|
282
|
+
},
|
|
276
283
|
{
|
|
277
284
|
title: "字段类型",
|
|
278
285
|
key: "fieldType",
|
|
@@ -280,13 +287,14 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
280
287
|
placeholder: "请输入${title}",
|
|
281
288
|
defaultValue: "",
|
|
282
289
|
validateRules: [{ required: !0, message: "${title}不能为空" }],
|
|
283
|
-
type:
|
|
290
|
+
type: n.select,
|
|
284
291
|
options: [
|
|
285
292
|
{ title: "数值类型", value: "Integer" },
|
|
286
293
|
{ title: "字符类型", value: "String" },
|
|
287
294
|
{ title: "日期类型", value: "Date" },
|
|
288
295
|
{ title: "时间类型", value: "Datetime" },
|
|
289
|
-
{ title: "长整型", value: "Long" }
|
|
296
|
+
{ title: "长整型", value: "Long" },
|
|
297
|
+
{ title: "图片类型", value: "Image" }
|
|
290
298
|
]
|
|
291
299
|
},
|
|
292
300
|
{
|
|
@@ -294,14 +302,14 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
294
302
|
key: "isShow",
|
|
295
303
|
minWidth: "80px",
|
|
296
304
|
align: "center",
|
|
297
|
-
type:
|
|
305
|
+
type: n.checkbox,
|
|
298
306
|
customValue: [1, 0],
|
|
299
307
|
defaultChecked: !0
|
|
300
308
|
},
|
|
301
309
|
{
|
|
302
310
|
title: "字段href",
|
|
303
311
|
key: "fieldHref",
|
|
304
|
-
type:
|
|
312
|
+
type: n.input,
|
|
305
313
|
minWidth: "150px",
|
|
306
314
|
placeholder: "请输入${title}",
|
|
307
315
|
defaultValue: ""
|
|
@@ -309,7 +317,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
309
317
|
{
|
|
310
318
|
title: "查询模式",
|
|
311
319
|
key: "searchMode",
|
|
312
|
-
type:
|
|
320
|
+
type: n.select,
|
|
313
321
|
minWidth: "150px",
|
|
314
322
|
placeholder: "请选择${title}",
|
|
315
323
|
options: [
|
|
@@ -320,7 +328,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
320
328
|
{
|
|
321
329
|
title: "取值表达式",
|
|
322
330
|
key: "replaceVal",
|
|
323
|
-
type:
|
|
331
|
+
type: n.input,
|
|
324
332
|
minWidth: "150px",
|
|
325
333
|
placeholder: "请输入${title}",
|
|
326
334
|
defaultValue: ""
|
|
@@ -328,7 +336,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
328
336
|
{
|
|
329
337
|
title: "字典code",
|
|
330
338
|
key: "dictCode",
|
|
331
|
-
type:
|
|
339
|
+
type: n.input,
|
|
332
340
|
minWidth: "150px",
|
|
333
341
|
placeholder: "请输入${title}",
|
|
334
342
|
defaultValue: ""
|
|
@@ -336,7 +344,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
336
344
|
{
|
|
337
345
|
title: "分组标题",
|
|
338
346
|
key: "groupTitle",
|
|
339
|
-
type:
|
|
347
|
+
type: n.input,
|
|
340
348
|
minWidth: "150px",
|
|
341
349
|
placeholder: "请输入${title}",
|
|
342
350
|
defaultValue: ""
|
|
@@ -344,7 +352,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
344
352
|
{
|
|
345
353
|
title: "是否查询",
|
|
346
354
|
key: "isSearch",
|
|
347
|
-
type:
|
|
355
|
+
type: n.checkbox,
|
|
348
356
|
customValue: ["1", "0"],
|
|
349
357
|
minWidth: "80px",
|
|
350
358
|
align: "center",
|
|
@@ -354,141 +362,141 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
354
362
|
title: "是否合计",
|
|
355
363
|
align: "center",
|
|
356
364
|
key: "isTotal",
|
|
357
|
-
type:
|
|
365
|
+
type: n.checkbox,
|
|
358
366
|
customValue: ["1", "0"],
|
|
359
367
|
minWidth: "80px",
|
|
360
368
|
defaultChecked: !1
|
|
361
369
|
}
|
|
362
|
-
],
|
|
370
|
+
], De = { style: { flex: "1", "text-align": "left" } }, Me = /* @__PURE__ */ fe({
|
|
363
371
|
__name: "CgreportModal",
|
|
364
372
|
emits: ["register", "success"],
|
|
365
|
-
setup(t, { emit:
|
|
366
|
-
const { createMessage:
|
|
373
|
+
setup(t, { emit: l }) {
|
|
374
|
+
const { createMessage: r } = K(), _ = l, m = P(!0), g = P(!0), S = P(["onlCgreportItem", "onlCgreportParam"]), c = P("onlCgreportItem"), d = P(), C = P(), j = { onlCgreportItem: C, onlCgreportParam: d }, k = U({
|
|
367
375
|
loading: !1,
|
|
368
376
|
dataSource: [],
|
|
369
|
-
columns:
|
|
370
|
-
}),
|
|
377
|
+
columns: Fe
|
|
378
|
+
}), I = U({
|
|
371
379
|
loading: !1,
|
|
372
380
|
dataSource: [],
|
|
373
|
-
columns:
|
|
374
|
-
}), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate:
|
|
381
|
+
columns: Re
|
|
382
|
+
}), [Q, { setProps: H, resetFields: E, setFieldsValue: Z, validate: Be, validateFields: G }] = xe({
|
|
375
383
|
// labelWidth: 150,
|
|
376
|
-
schemas:
|
|
384
|
+
schemas: Ne,
|
|
377
385
|
showActionButtonGroup: !1,
|
|
378
386
|
// update-begin--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
379
387
|
labelWidth: 100,
|
|
380
388
|
wrapperCol: null
|
|
381
389
|
// update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
382
|
-
}), [X, { setModalProps:
|
|
383
|
-
var
|
|
384
|
-
yield re(),
|
|
385
|
-
})), [ee, te,
|
|
390
|
+
}), [X, { setModalProps: V, closeModal: Y }] = be((e) => q(this, null, function* () {
|
|
391
|
+
var o, a;
|
|
392
|
+
yield re(), 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 Z(D({}, e.record)), B(Ie, { headId: (o = e == null ? void 0 : e.record) == null ? void 0 : o.id }, k), B(Pe, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), H({ disabled: !(e != null && e.showFooter) });
|
|
393
|
+
})), [ee, te, B, le] = Se(
|
|
386
394
|
ne,
|
|
387
395
|
ae,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
),
|
|
396
|
+
j,
|
|
397
|
+
c,
|
|
398
|
+
S
|
|
399
|
+
), oe = ge(() => h(m) ? "编辑" : "新增");
|
|
392
400
|
function re() {
|
|
393
|
-
return
|
|
394
|
-
yield E(),
|
|
401
|
+
return q(this, null, function* () {
|
|
402
|
+
yield E(), c.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
|
|
395
403
|
});
|
|
396
404
|
}
|
|
397
405
|
function ae(e) {
|
|
398
|
-
let
|
|
399
|
-
return
|
|
406
|
+
let o = Object.assign({}, e.formValue);
|
|
407
|
+
return J(D({}, o), {
|
|
400
408
|
// 展开
|
|
401
409
|
onlCgreportParamList: e.tablesValue[1].tableData,
|
|
402
410
|
onlCgreportItemList: e.tablesValue[0].tableData
|
|
403
411
|
});
|
|
404
412
|
}
|
|
405
413
|
function ne(e) {
|
|
406
|
-
return
|
|
414
|
+
return q(this, null, function* () {
|
|
407
415
|
try {
|
|
408
|
-
|
|
409
|
-
let
|
|
410
|
-
Object.keys(e).map((
|
|
411
|
-
|
|
412
|
-
}), yield
|
|
416
|
+
V({ confirmLoading: !0 });
|
|
417
|
+
let o = [], a = [], s = {};
|
|
418
|
+
Object.keys(e).map((i) => {
|
|
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), Y(), _("success");
|
|
413
421
|
} finally {
|
|
414
|
-
|
|
422
|
+
V({ confirmLoading: !1 });
|
|
415
423
|
}
|
|
416
424
|
});
|
|
417
425
|
}
|
|
418
426
|
function ie() {
|
|
419
|
-
|
|
420
|
-
let { cgrSql:
|
|
421
|
-
a && (s += "&dbKey=" + a),
|
|
427
|
+
V({ confirmLoading: !0 }), G(["cgrSql", "dbSource"]).then((e) => {
|
|
428
|
+
let { cgrSql: o, dbSource: a } = e, s = "sql=" + encodeURIComponent(o);
|
|
429
|
+
a && (s += "&dbKey=" + a), Le(s).then((u) => {
|
|
422
430
|
if (u) {
|
|
423
|
-
|
|
424
|
-
let { fields:
|
|
425
|
-
|
|
426
|
-
let se =
|
|
427
|
-
|
|
431
|
+
r.success("解析成功");
|
|
432
|
+
let { fields: i, params: p } = u, f = i.filter(($) => $.fieldName != "__row_number__"), N = C.value.getTableData(), L = O(N, f || [], "fieldName");
|
|
433
|
+
L = L.sort(($, R) => $.orderNum - R.orderNum), I.dataSource = L;
|
|
434
|
+
let se = d.value.getTableData(), F = O(se, p || [], "paramName");
|
|
435
|
+
F = F.sort(($, R) => $.orderNum - R.orderNum), k.dataSource = F;
|
|
428
436
|
}
|
|
429
437
|
});
|
|
430
438
|
}).catch(() => {
|
|
431
439
|
}).finally(() => {
|
|
432
|
-
|
|
440
|
+
V({ confirmLoading: !1 });
|
|
433
441
|
});
|
|
434
442
|
}
|
|
435
|
-
function
|
|
443
|
+
function O(e, o, a) {
|
|
436
444
|
if (e.length > 0) {
|
|
437
|
-
let s = [], u = [],
|
|
438
|
-
for (let p of
|
|
439
|
-
for (let
|
|
440
|
-
if (
|
|
441
|
-
s.push(
|
|
445
|
+
let s = [], u = [], i = 1;
|
|
446
|
+
for (let p of o)
|
|
447
|
+
for (let f of e)
|
|
448
|
+
if (f[a] == p[a]) {
|
|
449
|
+
s.push(f), u.push(p[a]), f.orderNum > i && (i = f.orderNum);
|
|
442
450
|
break;
|
|
443
451
|
}
|
|
444
|
-
for (let p of
|
|
445
|
-
u.indexOf(p[a]) < 0 && (p.orderNum = ++
|
|
452
|
+
for (let p of o)
|
|
453
|
+
u.indexOf(p[a]) < 0 && (p.orderNum = ++i, s.push(p));
|
|
446
454
|
return s;
|
|
447
455
|
} else {
|
|
448
456
|
let s = 0;
|
|
449
|
-
for (let u of
|
|
457
|
+
for (let u of o)
|
|
450
458
|
u.orderNum || (u.orderNum = ++s);
|
|
451
|
-
return
|
|
459
|
+
return o;
|
|
452
460
|
}
|
|
453
461
|
}
|
|
454
|
-
return (e,
|
|
455
|
-
const a =
|
|
456
|
-
return
|
|
457
|
-
onRegister:
|
|
458
|
-
title:
|
|
462
|
+
return (e, o) => {
|
|
463
|
+
const a = v("a-icon"), s = v("a-popover"), u = v("a-button"), i = v("a-divider"), p = v("JVxeTable"), f = v("a-tab-pane"), N = v("a-tabs");
|
|
464
|
+
return M(), W(h(ye), he(e.$attrs, {
|
|
465
|
+
onRegister: h(X),
|
|
466
|
+
title: oe.value,
|
|
459
467
|
width: 1200,
|
|
460
468
|
maskClosable: !1,
|
|
461
469
|
defaultFullscreen: !0,
|
|
462
|
-
confirmLoading:
|
|
463
|
-
onOk:
|
|
470
|
+
confirmLoading: g.value,
|
|
471
|
+
onOk: h(te)
|
|
464
472
|
}), {
|
|
465
|
-
default:
|
|
466
|
-
y(
|
|
467
|
-
onRegister:
|
|
473
|
+
default: b(() => [
|
|
474
|
+
y(h(_e), {
|
|
475
|
+
onRegister: h(Q),
|
|
468
476
|
ref_key: "formRef",
|
|
469
|
-
ref:
|
|
477
|
+
ref: le
|
|
470
478
|
}, {
|
|
471
|
-
analyseButton:
|
|
472
|
-
|
|
479
|
+
analyseButton: b(() => [
|
|
480
|
+
w("div", De, [
|
|
473
481
|
y(s, {
|
|
474
482
|
title: "使用指南",
|
|
475
483
|
trigger: "hover",
|
|
476
484
|
style: { margin: "0 10px 0 6px" }
|
|
477
485
|
}, {
|
|
478
|
-
content:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
]),
|
|
491
|
-
default:
|
|
486
|
+
content: b(() => o[1] || (o[1] = [
|
|
487
|
+
T(" 您可以键入“”作为一个参数,这里abc是参数的名称。例如:"),
|
|
488
|
+
w("br", null, null, -1),
|
|
489
|
+
T(" select * from table where id = ${abc}。"),
|
|
490
|
+
w("br", null, null, -1),
|
|
491
|
+
T(" select * from table where id like concat('%',${abc},'%')。(mysql模糊查询)"),
|
|
492
|
+
w("br", null, null, -1),
|
|
493
|
+
T(" select * from table where id like '%'||${abc}||'%'。(oracle模糊查询)"),
|
|
494
|
+
w("br", null, null, -1),
|
|
495
|
+
T(" select * from table where id like '%'+${abc}+'%'。(sqlserver模糊查询)"),
|
|
496
|
+
w("br", null, null, -1),
|
|
497
|
+
w("span", { style: { color: "red" } }, "注:参数只支持动态报表,popup暂不支持", -1)
|
|
498
|
+
])),
|
|
499
|
+
default: b(() => [
|
|
492
500
|
y(a, { type: "question-circle" })
|
|
493
501
|
]),
|
|
494
502
|
_: 1
|
|
@@ -498,67 +506,73 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
498
506
|
type: "primary",
|
|
499
507
|
onClick: ie
|
|
500
508
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
|
|
503
|
-
]),
|
|
509
|
+
default: b(() => o[2] || (o[2] = [
|
|
510
|
+
T("SQL解析")
|
|
511
|
+
])),
|
|
504
512
|
_: 1
|
|
505
513
|
})
|
|
506
514
|
])
|
|
507
515
|
]),
|
|
508
516
|
_: 1
|
|
509
517
|
}, 8, ["onRegister"]),
|
|
510
|
-
y(
|
|
518
|
+
y(i, {
|
|
511
519
|
style: { margin: "1px 0" },
|
|
512
520
|
class: "cust-divider"
|
|
513
521
|
}),
|
|
514
522
|
y(N, {
|
|
515
|
-
activeKey:
|
|
516
|
-
"onUpdate:activeKey":
|
|
523
|
+
activeKey: c.value,
|
|
524
|
+
"onUpdate:activeKey": o[0] || (o[0] = (L) => c.value = L),
|
|
517
525
|
animated: "",
|
|
518
|
-
onChange:
|
|
526
|
+
onChange: h(ee)
|
|
519
527
|
}, {
|
|
520
|
-
default:
|
|
521
|
-
(
|
|
528
|
+
default: b(() => [
|
|
529
|
+
(M(), W(f, {
|
|
522
530
|
tab: "动态报表配置明细",
|
|
523
|
-
key:
|
|
531
|
+
key: S.value[0],
|
|
524
532
|
forceRender: !0
|
|
525
533
|
}, {
|
|
526
|
-
default:
|
|
534
|
+
default: b(() => [
|
|
527
535
|
y(p, {
|
|
528
536
|
"keep-source": "",
|
|
529
537
|
dragSort: "",
|
|
530
538
|
resizable: "",
|
|
531
539
|
ref_key: "onlCgreportItem",
|
|
532
|
-
ref:
|
|
533
|
-
loading:
|
|
534
|
-
columns:
|
|
535
|
-
dataSource:
|
|
540
|
+
ref: C,
|
|
541
|
+
loading: I.loading,
|
|
542
|
+
columns: I.columns,
|
|
543
|
+
dataSource: I.dataSource,
|
|
536
544
|
height: 390,
|
|
537
545
|
rowNumber: !0,
|
|
538
546
|
rowSelection: !0,
|
|
547
|
+
dragSortFixed: "none",
|
|
548
|
+
rowNumberFixed: "none",
|
|
549
|
+
rowSelectionFixed: "none",
|
|
539
550
|
toolbar: !0
|
|
540
551
|
}, null, 8, ["loading", "columns", "dataSource"])
|
|
541
552
|
]),
|
|
542
553
|
_: 1
|
|
543
554
|
})),
|
|
544
|
-
(
|
|
555
|
+
(M(), W(f, {
|
|
545
556
|
tab: "报表参数",
|
|
546
|
-
key:
|
|
557
|
+
key: S.value[1],
|
|
547
558
|
forceRender: !0
|
|
548
559
|
}, {
|
|
549
|
-
default:
|
|
560
|
+
default: b(() => [
|
|
550
561
|
y(p, {
|
|
551
562
|
"keep-source": "",
|
|
552
563
|
resizable: "",
|
|
553
564
|
dragSort: "",
|
|
554
565
|
ref_key: "onlCgreportParam",
|
|
555
|
-
ref:
|
|
566
|
+
ref: d,
|
|
556
567
|
loading: k.loading,
|
|
557
568
|
columns: k.columns,
|
|
558
569
|
dataSource: k.dataSource,
|
|
559
570
|
height: 390,
|
|
560
571
|
rowNumber: !0,
|
|
561
572
|
rowSelection: !0,
|
|
573
|
+
dragSortFixed: "none",
|
|
574
|
+
rowNumberFixed: "none",
|
|
575
|
+
rowSelectionFixed: "none",
|
|
562
576
|
toolbar: !0
|
|
563
577
|
}, null, 8, ["loading", "columns", "dataSource"])
|
|
564
578
|
]),
|
|
@@ -573,17 +587,17 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
573
587
|
};
|
|
574
588
|
}
|
|
575
589
|
});
|
|
576
|
-
const
|
|
590
|
+
const We = /* @__PURE__ */ we(Me, [["__scopeId", "data-v-e89d83a0"]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
577
591
|
__proto__: null,
|
|
578
|
-
default:
|
|
592
|
+
default: We
|
|
579
593
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
580
594
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
595
|
+
We as C,
|
|
596
|
+
ot as a,
|
|
597
|
+
Ye as b,
|
|
598
|
+
tt as c,
|
|
599
|
+
Xe as d,
|
|
600
|
+
et as g,
|
|
601
|
+
Ge as l,
|
|
602
|
+
lt as s
|
|
589
603
|
};
|