@jeecg/online 3.5.3-beta3 → 3.6.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/AuthButtonConfig-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
var J = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var $ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var f = Object.getOwnPropertySymbols;
|
|
4
|
+
var v = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var d = (n, t, e) => t in n ? J(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, g = (n, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
v.call(t, e) && d(n, e, t[e]);
|
|
8
|
+
if (f)
|
|
9
|
+
for (var e of f(t))
|
|
10
|
+
y.call(t, e) && d(n, e, t[e]);
|
|
11
|
+
return n;
|
|
12
|
+
}, m = (n, t) => E(n, $(t));
|
|
13
|
+
var u = (n, t, e) => new Promise((a, r) => {
|
|
14
|
+
var l = (o) => {
|
|
15
|
+
try {
|
|
16
|
+
i(e.next(o));
|
|
17
|
+
} catch (h) {
|
|
18
|
+
r(h);
|
|
19
|
+
}
|
|
20
|
+
}, c = (o) => {
|
|
21
|
+
try {
|
|
22
|
+
i(e.throw(o));
|
|
23
|
+
} catch (h) {
|
|
24
|
+
r(h);
|
|
25
|
+
}
|
|
26
|
+
}, i = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(l, c);
|
|
27
|
+
i((e = e.apply(n, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defHttp as s } from "/@/utils/http/axios";
|
|
30
|
+
import { isArray as p } from "/@/utils/is";
|
|
31
|
+
function b(n, t, e) {
|
|
32
|
+
return u(this, null, function* () {
|
|
33
|
+
let { success: a, result: r } = yield s.get(
|
|
34
|
+
{
|
|
35
|
+
url: "/online/cgform/head/enhanceJs/" + n,
|
|
36
|
+
params: m(g({}, e), {
|
|
37
|
+
type: t
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
{ isTransformResponse: !1 }
|
|
41
|
+
);
|
|
42
|
+
return a || (r = { cgJs: "" }), r;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const q = (n, t, e) => {
|
|
46
|
+
let a = `/online/cgform/head/enhanceJs/${n}`;
|
|
47
|
+
return e ? s.put({ url: a, params: t }, { successMessageMode: "none" }) : s.post({ url: a, params: t }, { successMessageMode: "none" });
|
|
48
|
+
};
|
|
49
|
+
function w(n, t) {
|
|
50
|
+
return u(this, null, function* () {
|
|
51
|
+
let e = yield s.get({ url: "/online/cgform/head/enhanceButton/" + n }, { isTransformResponse: !1 }), a = [];
|
|
52
|
+
e.success && p(e.result) && (a = e.result.filter((c) => c.optType == "action"));
|
|
53
|
+
let r = `/online/cgform/head/enhanceJava/${n}`, l = yield s.get({ url: r, params: t });
|
|
54
|
+
return { btnList: a, dataSource: l };
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function R(n) {
|
|
58
|
+
return s.delete(
|
|
59
|
+
{
|
|
60
|
+
url: "/online/cgform/head/deleteBatchEnhanceJava",
|
|
61
|
+
params: {
|
|
62
|
+
ids: n.join(",")
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{ joinParamsToUrl: !0 }
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const j = (n, t, e) => {
|
|
69
|
+
let a = `/online/cgform/head/enhanceJava/${n}`;
|
|
70
|
+
return e ? s.put({ url: a, params: t }) : s.post({ url: a, params: t });
|
|
71
|
+
};
|
|
72
|
+
function M(n, t) {
|
|
73
|
+
return u(this, null, function* () {
|
|
74
|
+
let e = yield s.get({ url: "/online/cgform/head/enhanceButton/" + n }, { isTransformResponse: !1 }), a = [];
|
|
75
|
+
e.success && p(e.result) && (a = e.result.filter((c) => c.optType == "action"));
|
|
76
|
+
let r = `/online/cgform/head/enhanceSql/${n}`, l = yield s.get({ url: r, params: t });
|
|
77
|
+
return { btnList: a, dataSource: l };
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function C(n) {
|
|
81
|
+
return s.delete(
|
|
82
|
+
{
|
|
83
|
+
url: "/online/cgform/head/deletebatchEnhanceSql",
|
|
84
|
+
params: {
|
|
85
|
+
ids: n.join(",")
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{ joinParamsToUrl: !0 }
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
const D = (n, t, e) => {
|
|
92
|
+
let a = `/online/cgform/head/enhanceSql/${n}`;
|
|
93
|
+
return e ? s.put({ url: a, params: t }) : s.post({ url: a, params: t });
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
w as a,
|
|
97
|
+
j as b,
|
|
98
|
+
M as c,
|
|
99
|
+
R as d,
|
|
100
|
+
D as e,
|
|
101
|
+
C as f,
|
|
102
|
+
b as g,
|
|
103
|
+
q as s
|
|
104
|
+
};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { computed as n } from "vue";
|
|
2
|
+
import { o as u } from "./cgform.data-cbdd88c3.mjs";
|
|
3
|
+
function d(l) {
|
|
4
|
+
return { columns: [
|
|
5
|
+
{
|
|
6
|
+
title: "页面按钮",
|
|
7
|
+
align: "center",
|
|
8
|
+
dataIndex: "buttonCode",
|
|
9
|
+
customRender: ({ text: e }) => o(e, l.value)
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: "事件状态",
|
|
13
|
+
align: "center",
|
|
14
|
+
dataIndex: "event",
|
|
15
|
+
customRender: ({ text: e }) => e == "start" ? "开始" : "结束"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: "类型",
|
|
19
|
+
align: "center",
|
|
20
|
+
dataIndex: "cgJavaType",
|
|
21
|
+
customRender: ({ text: e }) => e == "spring" ? "spring-key" : e === "class" ? "java-class" : e === "http" ? "http-api" : e
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "内容",
|
|
25
|
+
align: "center",
|
|
26
|
+
dataIndex: "cgJavaValue"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: "是否生效",
|
|
30
|
+
align: "center",
|
|
31
|
+
dataIndex: "activeStatus",
|
|
32
|
+
customRender: ({ text: e }) => e == "1" ? "有效" : "无效"
|
|
33
|
+
}
|
|
34
|
+
] };
|
|
35
|
+
}
|
|
36
|
+
function i(l) {
|
|
37
|
+
return { formSchemas: n(() => [
|
|
38
|
+
{
|
|
39
|
+
label: "页面按钮",
|
|
40
|
+
field: "buttonCode",
|
|
41
|
+
component: "Select",
|
|
42
|
+
componentProps: {
|
|
43
|
+
options: [
|
|
44
|
+
{ label: "新增", value: "add" },
|
|
45
|
+
{ label: "编辑", value: "edit" },
|
|
46
|
+
{ label: "删除", value: "delete" },
|
|
47
|
+
{ label: "导入", value: "import" },
|
|
48
|
+
{ label: "导出", value: "export" },
|
|
49
|
+
{ label: "查询", value: "query" },
|
|
50
|
+
...l.value.map((e) => ({ label: e.buttonName, value: e.buttonCode }))
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
defaultValue: "add"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "事件状态",
|
|
57
|
+
field: "event",
|
|
58
|
+
component: "RadioButtonGroup",
|
|
59
|
+
componentProps: {
|
|
60
|
+
options: [
|
|
61
|
+
{ label: "开始", value: "start" },
|
|
62
|
+
{ label: "结束", value: "end" }
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
defaultValue: "end"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "类型",
|
|
69
|
+
field: "cgJavaType",
|
|
70
|
+
component: "RadioButtonGroup",
|
|
71
|
+
componentProps: {
|
|
72
|
+
options: [
|
|
73
|
+
{ label: "spring-key", value: "spring" },
|
|
74
|
+
{ label: "java-class", value: "class" },
|
|
75
|
+
{ label: "http-api", value: "http" }
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
defaultValue: "spring"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: "内容",
|
|
82
|
+
field: "cgJavaValue",
|
|
83
|
+
component: "Input",
|
|
84
|
+
required: !0
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "是否生效",
|
|
88
|
+
field: "activeStatus",
|
|
89
|
+
component: "RadioButtonGroup",
|
|
90
|
+
componentProps: {
|
|
91
|
+
options: [
|
|
92
|
+
{ label: "有效", value: "1" },
|
|
93
|
+
{ label: "无效", value: "0" }
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
defaultValue: "1"
|
|
97
|
+
}
|
|
98
|
+
]) };
|
|
99
|
+
}
|
|
100
|
+
function c(l) {
|
|
101
|
+
return { columns: [
|
|
102
|
+
{
|
|
103
|
+
title: "页面按钮",
|
|
104
|
+
align: "center",
|
|
105
|
+
dataIndex: "buttonCode",
|
|
106
|
+
customRender: ({ text: e }) => o(e, l.value)
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "增强SQL",
|
|
110
|
+
align: "center",
|
|
111
|
+
dataIndex: "cgbSql",
|
|
112
|
+
ellipsis: !0
|
|
113
|
+
}
|
|
114
|
+
] };
|
|
115
|
+
}
|
|
116
|
+
function p(l) {
|
|
117
|
+
return { formSchemas: n(() => [
|
|
118
|
+
{
|
|
119
|
+
label: "页面按钮",
|
|
120
|
+
field: "buttonCode",
|
|
121
|
+
component: "Select",
|
|
122
|
+
componentProps: {
|
|
123
|
+
options: [
|
|
124
|
+
{ label: "新增", value: "add" },
|
|
125
|
+
{ label: "编辑", value: "edit" },
|
|
126
|
+
{ label: "删除", value: "delete" },
|
|
127
|
+
...l.value.map((e) => ({ label: e.buttonName, value: e.buttonCode }))
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
defaultValue: "add"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: "增强SQL",
|
|
134
|
+
field: "cgbSql",
|
|
135
|
+
component: "JCodeEditor",
|
|
136
|
+
componentProps: {
|
|
137
|
+
language: "sql",
|
|
138
|
+
placeholder: "请输入SQL语句",
|
|
139
|
+
languageChange: !1,
|
|
140
|
+
lineNumbers: !1,
|
|
141
|
+
fullScreen: !0,
|
|
142
|
+
height: "320px"
|
|
143
|
+
},
|
|
144
|
+
defaultValue: ""
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: "描述",
|
|
148
|
+
field: "content",
|
|
149
|
+
component: "InputTextArea",
|
|
150
|
+
defaultValue: ""
|
|
151
|
+
}
|
|
152
|
+
]) };
|
|
153
|
+
}
|
|
154
|
+
function o(l, t) {
|
|
155
|
+
let e = l;
|
|
156
|
+
for (let a of u)
|
|
157
|
+
if (a.code === l) {
|
|
158
|
+
e = a.title;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
if (!e) {
|
|
162
|
+
for (let a of t)
|
|
163
|
+
if (a.buttonCode === l) {
|
|
164
|
+
e = a.buttonName;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return e;
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
d as a,
|
|
172
|
+
p as b,
|
|
173
|
+
c,
|
|
174
|
+
i as u
|
|
175
|
+
};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
var L = (U, f, s) => new Promise((h, p) => {
|
|
2
|
+
var k = (i) => {
|
|
3
|
+
try {
|
|
4
|
+
n(s.next(i));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
p(u);
|
|
7
|
+
}
|
|
8
|
+
}, g = (i) => {
|
|
9
|
+
try {
|
|
10
|
+
n(s.throw(i));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
p(u);
|
|
13
|
+
}
|
|
14
|
+
}, n = (i) => i.done ? h(i.value) : Promise.resolve(i.value).then(k, g);
|
|
15
|
+
n((s = s.apply(U, f)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as E, resolveComponent as m, openBlock as S, createElementBlock as M, createVNode as r, unref as c, mergeProps as V, withCtx as a, createTextVNode as C, createBlock as q, createCommentVNode as F } from "vue";
|
|
18
|
+
import { BasicTable as K, TableAction as Q } from "/@/components/Table";
|
|
19
|
+
import { useListPage as H } from "/@/hooks/system/useListPage";
|
|
20
|
+
import { l as j, c as z, s as G, _ as J, b as W, g as X, d as Y } from "./CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs";
|
|
21
|
+
import { useModal as Z } from "/@/components/Modal";
|
|
22
|
+
import R from "clipboard";
|
|
23
|
+
import { useRouter as ee } from "vue-router";
|
|
24
|
+
import { buildUUID as te } from "/@/utils/uuid";
|
|
25
|
+
import "/@/components/Form/index";
|
|
26
|
+
import "/@/hooks/system/useJvxeMethods.ts";
|
|
27
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
28
|
+
import "/@/views/system/user/user.api";
|
|
29
|
+
import "/@/utils/http/axios";
|
|
30
|
+
import "/@/hooks/web/useMessage";
|
|
31
|
+
import "/@/store/modules/permission";
|
|
32
|
+
const be = /* @__PURE__ */ E({
|
|
33
|
+
__name: "index",
|
|
34
|
+
setup(U, { expose: f }) {
|
|
35
|
+
let s = ee();
|
|
36
|
+
const [h, { openModal: p }] = Z(), {
|
|
37
|
+
prefixCls: k,
|
|
38
|
+
tableContext: g,
|
|
39
|
+
createMessage: n,
|
|
40
|
+
createConfirm: i
|
|
41
|
+
} = H({
|
|
42
|
+
designScope: "online-cgreport-list",
|
|
43
|
+
pagination: !0,
|
|
44
|
+
tableProps: {
|
|
45
|
+
title: "Online报表",
|
|
46
|
+
api: j,
|
|
47
|
+
rowKey: "id",
|
|
48
|
+
columns: z,
|
|
49
|
+
formConfig: {
|
|
50
|
+
autoSubmitOnEnter: !0,
|
|
51
|
+
showAdvancedButton: !0,
|
|
52
|
+
schemas: G
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}), [u, { reload: b }, { rowSelection: T, selectedRowKeys: w }] = g;
|
|
56
|
+
function x() {
|
|
57
|
+
p(!0, {
|
|
58
|
+
isUpdate: !1,
|
|
59
|
+
showFooter: !0
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function $(t) {
|
|
63
|
+
p(!0, {
|
|
64
|
+
record: t,
|
|
65
|
+
isUpdate: !0,
|
|
66
|
+
showFooter: !0
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function P(t) {
|
|
70
|
+
return L(this, null, function* () {
|
|
71
|
+
yield Y({ id: t.id }, b);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function A() {
|
|
75
|
+
return L(this, null, function* () {
|
|
76
|
+
yield W({ ids: w.value }, () => {
|
|
77
|
+
b(), w.value = [];
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function D() {
|
|
82
|
+
b();
|
|
83
|
+
}
|
|
84
|
+
function B(t) {
|
|
85
|
+
return [
|
|
86
|
+
{
|
|
87
|
+
label: "编辑",
|
|
88
|
+
onClick: $.bind(null, t)
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
function v(t) {
|
|
93
|
+
return [
|
|
94
|
+
{
|
|
95
|
+
label: "功能测试",
|
|
96
|
+
class: ["low-app-hide"],
|
|
97
|
+
onClick: () => I(t.id)
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: "配置地址",
|
|
101
|
+
class: ["low-app-hide"],
|
|
102
|
+
onClick: () => O(t)
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: "删除",
|
|
106
|
+
popConfirm: {
|
|
107
|
+
title: "是否确认删除",
|
|
108
|
+
confirm: P.bind(null, t)
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
function I(t) {
|
|
114
|
+
s.push({ path: "/online/cgreport/" + t });
|
|
115
|
+
}
|
|
116
|
+
function O(t) {
|
|
117
|
+
let y = t.id, l = `/online/cgreport/${y}`, d = `INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
|
|
118
|
+
VALUES ('${te()}', NULL, '${t.name}', '${l}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;
|
|
119
|
+
X(y).then((o) => {
|
|
120
|
+
let e = "";
|
|
121
|
+
if (o && o.length > 0)
|
|
122
|
+
for (let _ of o)
|
|
123
|
+
e += _.paramName + "=${" + _.paramName + "}&";
|
|
124
|
+
e.length > 0 && (e = e.substring(0, e.length - 1), l += "?" + e);
|
|
125
|
+
}).catch(() => {
|
|
126
|
+
n.warning("获取参数失败!");
|
|
127
|
+
}).finally(() => {
|
|
128
|
+
i({
|
|
129
|
+
iconType: "info",
|
|
130
|
+
width: 500,
|
|
131
|
+
title: `菜单链接【${t.name}】`,
|
|
132
|
+
content: l,
|
|
133
|
+
closable: !0,
|
|
134
|
+
maskClosable: !0,
|
|
135
|
+
cancelText: "复制SQL",
|
|
136
|
+
okText: "复制URL",
|
|
137
|
+
cancelButtonProps: {
|
|
138
|
+
class: "copy-this-sql",
|
|
139
|
+
"data-clipboard-text": d
|
|
140
|
+
},
|
|
141
|
+
okButtonProps: {
|
|
142
|
+
class: "copy-this-text",
|
|
143
|
+
"data-clipboard-text": l
|
|
144
|
+
},
|
|
145
|
+
onOk() {
|
|
146
|
+
return new Promise((o) => {
|
|
147
|
+
const e = new R(".copy-this-text");
|
|
148
|
+
e.on("success", () => {
|
|
149
|
+
e.destroy(), n.success("复制URL成功"), o();
|
|
150
|
+
}), e.on("error", () => {
|
|
151
|
+
n.error("该浏览器不支持自动复制"), e.destroy(), o();
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
onCancel() {
|
|
156
|
+
return new Promise((o) => {
|
|
157
|
+
const e = new R(".copy-this-sql");
|
|
158
|
+
e.on("success", () => {
|
|
159
|
+
e.destroy(), n.success("复制插入菜单SQL成功"), o();
|
|
160
|
+
}), e.on("error", () => {
|
|
161
|
+
n.error("该浏览器不支持自动复制"), e.destroy(), o();
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return f({
|
|
169
|
+
handleAdd: x
|
|
170
|
+
}), (t, y) => {
|
|
171
|
+
const l = m("a-button"), d = m("Icon"), o = m("a-menu-item"), e = m("a-menu"), _ = m("a-dropdown");
|
|
172
|
+
return S(), M("div", null, [
|
|
173
|
+
r(c(K), V({
|
|
174
|
+
onRegister: c(u),
|
|
175
|
+
rowSelection: c(T)
|
|
176
|
+
}, t.$attrs), {
|
|
177
|
+
tableTitle: a(() => [
|
|
178
|
+
r(l, {
|
|
179
|
+
preIcon: "ant-design:plus-outlined",
|
|
180
|
+
type: "primary",
|
|
181
|
+
onClick: x,
|
|
182
|
+
style: { "margin-right": "5px" }
|
|
183
|
+
}, {
|
|
184
|
+
default: a(() => [
|
|
185
|
+
C("录入")
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}),
|
|
189
|
+
c(w).length > 0 ? (S(), q(_, { key: 0 }, {
|
|
190
|
+
overlay: a(() => [
|
|
191
|
+
r(e, null, {
|
|
192
|
+
default: a(() => [
|
|
193
|
+
r(o, {
|
|
194
|
+
key: "1",
|
|
195
|
+
onClick: A
|
|
196
|
+
}, {
|
|
197
|
+
default: a(() => [
|
|
198
|
+
r(d, { icon: "ant-design:delete-outlined" }),
|
|
199
|
+
C(" 删除 ")
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
})
|
|
206
|
+
]),
|
|
207
|
+
default: a(() => [
|
|
208
|
+
r(l, null, {
|
|
209
|
+
default: a(() => [
|
|
210
|
+
C("批量操作 "),
|
|
211
|
+
r(d, { icon: "mdi:chevron-down" })
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})) : F("", !0)
|
|
218
|
+
]),
|
|
219
|
+
action: a(({ record: N }) => [
|
|
220
|
+
r(c(Q), {
|
|
221
|
+
actions: B(N),
|
|
222
|
+
dropDownActions: v(N)
|
|
223
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}, 16, ["onRegister", "rowSelection"]),
|
|
227
|
+
r(J, {
|
|
228
|
+
onRegister: c(h),
|
|
229
|
+
onSuccess: D
|
|
230
|
+
}, null, 8, ["onRegister"])
|
|
231
|
+
]);
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
export {
|
|
236
|
+
be as default
|
|
237
|
+
};
|