@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
package/index-9d32ae88.mjs
DELETED
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, resolveComponent as t, openBlock as p, createElementBlock as y, Fragment as q, createElementVNode as w, normalizeClass as G, createVNode as e, mergeProps as L, withCtx as n, createTextVNode as a, createBlock as N, createCommentVNode as b } from "vue";
|
|
2
|
-
import { BasicTable as O, TableAction as V } from "/@/components/Table";
|
|
3
|
-
import { C as $ } from "./CgformModal-6938d8c2.mjs";
|
|
4
|
-
import K from "./DbToOnlineModal-dc5d2030.mjs";
|
|
5
|
-
import P from "./CodeGeneratorModal-7df9e25d.mjs";
|
|
6
|
-
import z from "./CustomButtonList-1c9bd859.mjs";
|
|
7
|
-
import Q from "./EnhanceJsModal-0b133341.mjs";
|
|
8
|
-
import Y from "./EnhanceJavaModal-7f53d2ca.mjs";
|
|
9
|
-
import j from "./EnhanceSqlModal-33a94c83.mjs";
|
|
10
|
-
import H from "./AuthManagerDrawer-f127b8a2.mjs";
|
|
11
|
-
import U from "./AuthSetterModal-37da78ed.mjs";
|
|
12
|
-
import { u as W, C as X } from "./useCgformList-2d6a5955.mjs";
|
|
13
|
-
import { c as Z, s as x } from "./cgform.data-cbdd88c3.mjs";
|
|
14
|
-
import { _ as oo } from "./index-6a09a912.mjs";
|
|
15
|
-
import "/@/components/Icon";
|
|
16
|
-
import "/@/components/Modal";
|
|
17
|
-
import "/@/components/Form/index";
|
|
18
|
-
import "/@/hooks/web/useMessage";
|
|
19
|
-
import "./useSchemas-fc8d97ce.mjs";
|
|
20
|
-
import "ant-design-vue";
|
|
21
|
-
import "@ant-design/icons-vue";
|
|
22
|
-
import "/@/utils/common/compUtils";
|
|
23
|
-
import "/@/hooks/web/usePermission";
|
|
24
|
-
import "/@/utils/helper/validator";
|
|
25
|
-
import "./DBAttributeTable-cd1c41e5.mjs";
|
|
26
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
27
|
-
import "./useTableSync-dc333087.mjs";
|
|
28
|
-
import "lodash-es";
|
|
29
|
-
import "/@/utils/dict";
|
|
30
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
31
|
-
import "/@/utils/uuid";
|
|
32
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
33
|
-
import "vue-router";
|
|
34
|
-
import "./PageAttributeTable-811185fd.mjs";
|
|
35
|
-
import "./LinkTableConfigModal-77d7c0b9.mjs";
|
|
36
|
-
import "/@/utils/http/axios";
|
|
37
|
-
import "./LinkTableFieldConfigModal-c5689ab0.mjs";
|
|
38
|
-
import "./FieldExtendJsonModal-48f7d67f.mjs";
|
|
39
|
-
import "./CheckDictTable-414313f2.mjs";
|
|
40
|
-
import "/@/components/jeecg/JPrompt";
|
|
41
|
-
import "/@/hooks/web/useDesign";
|
|
42
|
-
import "./ForeignKeyTable-cb1abd1d.mjs";
|
|
43
|
-
import "./IndexTable-4e94cd1f.mjs";
|
|
44
|
-
import "./QueryTable-4ba771ef.mjs";
|
|
45
|
-
import "./ExtendConfigModal-60f2cf86.mjs";
|
|
46
|
-
import "/@/components/Form";
|
|
47
|
-
import "./useOnlineTest-0df0ae86.mjs";
|
|
48
|
-
import "/@/utils";
|
|
49
|
-
import "./useExtendComponent-48d37d9b.mjs";
|
|
50
|
-
import "/@/components/Form/src/componentMap";
|
|
51
|
-
import "/@/utils/propTypes";
|
|
52
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
53
|
-
import "/@/views/system/user/user.api";
|
|
54
|
-
import "/@/store/modules/user";
|
|
55
|
-
import "/@/utils/desform/customExpression";
|
|
56
|
-
import "/@/store/modules/permission";
|
|
57
|
-
import "/@/hooks/system/useListPage";
|
|
58
|
-
import "/@/components/Form/src/utils/Area";
|
|
59
|
-
import "/@/components/Preview/index";
|
|
60
|
-
import "./LinkTableListPiece-34266919.mjs";
|
|
61
|
-
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
62
|
-
import "/@/components/Loading";
|
|
63
|
-
import "/@/utils/auth";
|
|
64
|
-
import "./JModalTip-abe1515a.mjs";
|
|
65
|
-
import "@vueuse/core";
|
|
66
|
-
import "./CodeFileListModal-4831ce3d.mjs";
|
|
67
|
-
import "./CodeFileViewModal-5990dac4.mjs";
|
|
68
|
-
import "/@/utils/file/download";
|
|
69
|
-
import "./FileSelectModal-64aaf623.mjs";
|
|
70
|
-
import "./EnhanceJsHistory-c30805ce.mjs";
|
|
71
|
-
import "/@/utils/dateUtil";
|
|
72
|
-
import "/@/store";
|
|
73
|
-
import "pinia";
|
|
74
|
-
import "/@/utils/cache";
|
|
75
|
-
import "./enhance.api-138e6826.mjs";
|
|
76
|
-
import "/@/utils/is";
|
|
77
|
-
import "./enhance.data-efc7e155.mjs";
|
|
78
|
-
import "/@/components/Drawer";
|
|
79
|
-
import "./AuthFieldConfig-b1217a0c.mjs";
|
|
80
|
-
import "./auth.api-d3a6c4b3.mjs";
|
|
81
|
-
import "./auth.data-8be5c9e3.mjs";
|
|
82
|
-
import "./AuthButtonConfig-2f71787c.mjs";
|
|
83
|
-
import "./AuthDataConfig-32cf23d2.mjs";
|
|
84
|
-
import "./LeftRole-d0fa8398.mjs";
|
|
85
|
-
import "./LeftDepart-ca7a7375.mjs";
|
|
86
|
-
import "/@/api/common/api";
|
|
87
|
-
import "./LeftUser-0c88c240.mjs";
|
|
88
|
-
import "./AuthFieldTree-888e04a9.mjs";
|
|
89
|
-
import "./AuthButtonTree-d73bccf5.mjs";
|
|
90
|
-
import "./AuthDataTree-03d62d3f.mjs";
|
|
91
|
-
import "clipboard";
|
|
92
|
-
const eo = I({
|
|
93
|
-
name: "CgformIndex",
|
|
94
|
-
components: {
|
|
95
|
-
BasicTable: O,
|
|
96
|
-
TableAction: V,
|
|
97
|
-
CgformModal: $,
|
|
98
|
-
DbToOnlineModal: K,
|
|
99
|
-
CodeGeneratorModal: P,
|
|
100
|
-
CustomButtonList: z,
|
|
101
|
-
EnhanceJsModal: Q,
|
|
102
|
-
EnhanceJavaModal: Y,
|
|
103
|
-
EnhanceSqlModal: j,
|
|
104
|
-
AuthManagerDrawer: H,
|
|
105
|
-
AuthSetterModal: U
|
|
106
|
-
},
|
|
107
|
-
setup() {
|
|
108
|
-
const {
|
|
109
|
-
pageContext: o,
|
|
110
|
-
onAdd: k,
|
|
111
|
-
onDeleteBatch: D,
|
|
112
|
-
onImportDbTable: R,
|
|
113
|
-
onGenerateCode: T,
|
|
114
|
-
onShowCustomButton: B,
|
|
115
|
-
onShowEnhanceJs: r,
|
|
116
|
-
onShowEnhanceSql: m,
|
|
117
|
-
onShowEnhanceJava: l,
|
|
118
|
-
getTableAction: s,
|
|
119
|
-
getDropDownAction: c,
|
|
120
|
-
registerAuthManagerDrawer: u,
|
|
121
|
-
registerAuthSetterModal: d,
|
|
122
|
-
registerCustomButtonModal: g,
|
|
123
|
-
registerEnhanceJsModal: h,
|
|
124
|
-
registerEnhanceSqlModal: C,
|
|
125
|
-
registerEnhanceJavaModal: f,
|
|
126
|
-
registerCgformModal: M,
|
|
127
|
-
registerDbToOnlineModal: _,
|
|
128
|
-
registerCodeGeneratorModal: E
|
|
129
|
-
} = W({
|
|
130
|
-
pageType: X.normal,
|
|
131
|
-
designScope: "online-cgform-list",
|
|
132
|
-
columns: Z,
|
|
133
|
-
formSchemas: x
|
|
134
|
-
}), { prefixCls: S, tableContext: A } = o, [i, { reload: J }, { rowSelection: v, selectedRowKeys: F }] = A;
|
|
135
|
-
return {
|
|
136
|
-
prefixCls: S,
|
|
137
|
-
reload: J,
|
|
138
|
-
rowSelection: v,
|
|
139
|
-
selectedRowKeys: F,
|
|
140
|
-
onAdd: k,
|
|
141
|
-
onDeleteBatch: D,
|
|
142
|
-
onImportDbTable: R,
|
|
143
|
-
onGenerateCode: T,
|
|
144
|
-
onShowCustomButton: B,
|
|
145
|
-
onShowEnhanceJs: r,
|
|
146
|
-
onShowEnhanceSql: m,
|
|
147
|
-
onShowEnhanceJava: l,
|
|
148
|
-
getTableAction: s,
|
|
149
|
-
getDropDownAction: c,
|
|
150
|
-
registerAuthManagerDrawer: u,
|
|
151
|
-
registerAuthSetterModal: d,
|
|
152
|
-
registerCustomButtonModal: g,
|
|
153
|
-
registerEnhanceJsModal: h,
|
|
154
|
-
registerEnhanceSqlModal: C,
|
|
155
|
-
registerEnhanceJavaModal: f,
|
|
156
|
-
registerTable: i,
|
|
157
|
-
registerCgformModal: M,
|
|
158
|
-
registerDbToOnlineModal: _,
|
|
159
|
-
registerCodeGeneratorModal: E
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
}), to = /* @__PURE__ */ w("span", null, "删除", -1), no = /* @__PURE__ */ w("span", null, "批量操作", -1), ro = {
|
|
163
|
-
key: 0,
|
|
164
|
-
style: { color: "limegreen" }
|
|
165
|
-
}, io = {
|
|
166
|
-
key: 1,
|
|
167
|
-
style: { color: "red" }
|
|
168
|
-
};
|
|
169
|
-
function ao(o, k, D, R, T, B) {
|
|
170
|
-
const r = t("a-button"), m = t("a-icon"), l = t("a-menu-item"), s = t("a-menu"), c = t("a-dropdown"), u = t("TableAction"), d = t("BasicTable"), g = t("CgformModal"), h = t("DbToOnlineModal"), C = t("CodeGeneratorModal"), f = t("CustomButtonList"), M = t("EnhanceJsModal"), _ = t("EnhanceJavaModal"), E = t("EnhanceSqlModal"), S = t("AuthManagerDrawer"), A = t("AuthSetterModal");
|
|
171
|
-
return p(), y(q, null, [
|
|
172
|
-
w("div", {
|
|
173
|
-
class: G(o.prefixCls)
|
|
174
|
-
}, [
|
|
175
|
-
e(d, L({
|
|
176
|
-
onRegister: o.registerTable,
|
|
177
|
-
rowSelection: o.rowSelection
|
|
178
|
-
}, o.$attrs), {
|
|
179
|
-
tableTitle: n(() => [
|
|
180
|
-
e(r, {
|
|
181
|
-
onClick: o.onAdd,
|
|
182
|
-
type: "primary",
|
|
183
|
-
preIcon: "ant-design:plus"
|
|
184
|
-
}, {
|
|
185
|
-
default: n(() => [
|
|
186
|
-
a("新增")
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["onClick"]),
|
|
190
|
-
e(r, {
|
|
191
|
-
onClick: o.onShowCustomButton,
|
|
192
|
-
type: "primary",
|
|
193
|
-
preIcon: "ant-design:highlight"
|
|
194
|
-
}, {
|
|
195
|
-
default: n(() => [
|
|
196
|
-
a("自定义按钮")
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}, 8, ["onClick"]),
|
|
200
|
-
e(r, {
|
|
201
|
-
onClick: o.onShowEnhanceJs,
|
|
202
|
-
type: "primary",
|
|
203
|
-
preIcon: "ant-design:strikethrough"
|
|
204
|
-
}, {
|
|
205
|
-
default: n(() => [
|
|
206
|
-
a("JS增强")
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["onClick"]),
|
|
210
|
-
e(r, {
|
|
211
|
-
onClick: o.onShowEnhanceSql,
|
|
212
|
-
type: "primary",
|
|
213
|
-
preIcon: "ant-design:filter"
|
|
214
|
-
}, {
|
|
215
|
-
default: n(() => [
|
|
216
|
-
a(" SQL增强 ")
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
}, 8, ["onClick"]),
|
|
220
|
-
e(r, {
|
|
221
|
-
onClick: o.onShowEnhanceJava,
|
|
222
|
-
type: "primary",
|
|
223
|
-
preIcon: "ant-design:tool"
|
|
224
|
-
}, {
|
|
225
|
-
default: n(() => [
|
|
226
|
-
a("JAVA增强")
|
|
227
|
-
]),
|
|
228
|
-
_: 1
|
|
229
|
-
}, 8, ["onClick"]),
|
|
230
|
-
e(r, {
|
|
231
|
-
onClick: o.onImportDbTable,
|
|
232
|
-
type: "primary",
|
|
233
|
-
preIcon: "ant-design:database"
|
|
234
|
-
}, {
|
|
235
|
-
default: n(() => [
|
|
236
|
-
a("导入数据库表")
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
}, 8, ["onClick"]),
|
|
240
|
-
e(r, {
|
|
241
|
-
onClick: o.onGenerateCode,
|
|
242
|
-
type: "primary",
|
|
243
|
-
preIcon: "bx:bx-code-alt"
|
|
244
|
-
}, {
|
|
245
|
-
default: n(() => [
|
|
246
|
-
a(" 代码生成 ")
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}, 8, ["onClick"]),
|
|
250
|
-
o.selectedRowKeys.length > 0 ? (p(), N(c, { key: 0 }, {
|
|
251
|
-
overlay: n(() => [
|
|
252
|
-
e(s, null, {
|
|
253
|
-
default: n(() => [
|
|
254
|
-
e(l, {
|
|
255
|
-
key: "1",
|
|
256
|
-
onClick: o.onDeleteBatch
|
|
257
|
-
}, {
|
|
258
|
-
default: n(() => [
|
|
259
|
-
e(m, { type: "delete" }),
|
|
260
|
-
to
|
|
261
|
-
]),
|
|
262
|
-
_: 1
|
|
263
|
-
}, 8, ["onClick"])
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
})
|
|
267
|
-
]),
|
|
268
|
-
default: n(() => [
|
|
269
|
-
e(r, null, {
|
|
270
|
-
default: n(() => [
|
|
271
|
-
no,
|
|
272
|
-
e(m, { type: "down" })
|
|
273
|
-
]),
|
|
274
|
-
_: 1
|
|
275
|
-
})
|
|
276
|
-
]),
|
|
277
|
-
_: 1
|
|
278
|
-
})) : b("", !0)
|
|
279
|
-
]),
|
|
280
|
-
dbSync: n(({ text: i }) => [
|
|
281
|
-
i === "Y" ? (p(), y("span", ro, "已同步")) : b("", !0),
|
|
282
|
-
i === "N" ? (p(), y("span", io, "未同步")) : b("", !0)
|
|
283
|
-
]),
|
|
284
|
-
action: n(({ record: i }) => [
|
|
285
|
-
e(u, {
|
|
286
|
-
actions: o.getTableAction(i),
|
|
287
|
-
dropDownActions: o.getDropDownAction(i)
|
|
288
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
}, 16, ["onRegister", "rowSelection"])
|
|
292
|
-
], 2),
|
|
293
|
-
e(g, {
|
|
294
|
-
onRegister: o.registerCgformModal,
|
|
295
|
-
onSuccess: o.reload
|
|
296
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
297
|
-
e(h, {
|
|
298
|
-
onRegister: o.registerDbToOnlineModal,
|
|
299
|
-
onSuccess: o.reload
|
|
300
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
301
|
-
e(C, { onRegister: o.registerCodeGeneratorModal }, null, 8, ["onRegister"]),
|
|
302
|
-
e(f, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
303
|
-
e(M, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
304
|
-
e(_, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
305
|
-
e(E, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
306
|
-
e(S, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
307
|
-
e(A, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"])
|
|
308
|
-
], 64);
|
|
309
|
-
}
|
|
310
|
-
const Qe = /* @__PURE__ */ oo(eo, [["render", ao]]);
|
|
311
|
-
export {
|
|
312
|
-
Qe as default
|
|
313
|
-
};
|
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
var me = Object.defineProperty, he = Object.defineProperties;
|
|
2
|
-
var be = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var _ = Object.getOwnPropertySymbols;
|
|
4
|
-
var ge = Object.prototype.hasOwnProperty, ye = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (t, o, a) => o in t ? me(t, o, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[o] = a, w = (t, o) => {
|
|
6
|
-
for (var a in o || (o = {}))
|
|
7
|
-
ge.call(o, a) && x(t, a, o[a]);
|
|
8
|
-
if (_)
|
|
9
|
-
for (var a of _(o))
|
|
10
|
-
ye.call(o, a) && x(t, a, o[a]);
|
|
11
|
-
return t;
|
|
12
|
-
}, T = (t, o) => he(t, be(o));
|
|
13
|
-
var h = (t, o, a) => new Promise((d, m) => {
|
|
14
|
-
var l = (s) => {
|
|
15
|
-
try {
|
|
16
|
-
c(a.next(s));
|
|
17
|
-
} catch (r) {
|
|
18
|
-
m(r);
|
|
19
|
-
}
|
|
20
|
-
}, p = (s) => {
|
|
21
|
-
try {
|
|
22
|
-
c(a.throw(s));
|
|
23
|
-
} catch (r) {
|
|
24
|
-
m(r);
|
|
25
|
-
}
|
|
26
|
-
}, c = (s) => s.done ? d(s.value) : Promise.resolve(s.value).then(l, p);
|
|
27
|
-
c((a = a.apply(t, o)).next());
|
|
28
|
-
});
|
|
29
|
-
import { unref as we, isRef as Te, watch as Me, ref as C, h as b } from "vue";
|
|
30
|
-
import { useRouter as Se } from "vue-router";
|
|
31
|
-
import { RadioGroup as Ce, Radio as D, Input as Le } from "ant-design-vue";
|
|
32
|
-
import { useModal as f } from "/@/components/Modal";
|
|
33
|
-
import { useDrawer as ve } from "/@/components/Drawer";
|
|
34
|
-
import { useListPage as ke } from "/@/hooks/system/useListPage";
|
|
35
|
-
import { l as _e, d as xe, a as De, b as Ue, c as Be, e as Re, f as $e, g as Ne } from "./CgformModal-6938d8c2.mjs";
|
|
36
|
-
import U from "clipboard";
|
|
37
|
-
import { useMessage as Pe } from "/@/hooks/web/useMessage";
|
|
38
|
-
import { buildUUID as Ee } from "/@/utils/uuid";
|
|
39
|
-
import { isArray as Oe } from "/@/utils/is";
|
|
40
|
-
var R = /* @__PURE__ */ ((t) => (t[t.normal = 0] = "normal", t[t.copy = 1] = "copy", t))(R || {});
|
|
41
|
-
const L = "copy-this-text", B = "data-clipboard-text";
|
|
42
|
-
function Ie() {
|
|
43
|
-
return { createCopyModal: Ye };
|
|
44
|
-
}
|
|
45
|
-
const { createMessage: M, createConfirm: Ae } = Pe();
|
|
46
|
-
function Ye(t) {
|
|
47
|
-
var m, l, p, c, s;
|
|
48
|
-
const o = we(t.copyText), a = `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)
|
|
49
|
-
VALUES ('${Ee()}', NULL, '${t.copyTitle}', '${o}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;
|
|
50
|
-
let d = Ae(T(w({}, t), {
|
|
51
|
-
iconType: (m = t.iconType) != null ? m : "info",
|
|
52
|
-
width: (l = t.width) != null ? l : 500,
|
|
53
|
-
title: (p = t.title) != null ? p : "复制",
|
|
54
|
-
closable: !0,
|
|
55
|
-
maskClosable: (c = t.maskClosable) != null ? c : !0,
|
|
56
|
-
cancelText: "复制SQL",
|
|
57
|
-
okText: (s = t.okText) != null ? s : "复制URL",
|
|
58
|
-
cancelButtonProps: {
|
|
59
|
-
class: "copy-this-sql",
|
|
60
|
-
"data-clipboard-text": a
|
|
61
|
-
},
|
|
62
|
-
okButtonProps: T(w({}, t.okButtonProps), {
|
|
63
|
-
class: L,
|
|
64
|
-
[B]: o
|
|
65
|
-
}),
|
|
66
|
-
onOk() {
|
|
67
|
-
return new Promise((r) => {
|
|
68
|
-
const i = new U("." + L);
|
|
69
|
-
i.on("success", () => {
|
|
70
|
-
i.destroy(), M.success("复制URL成功"), r();
|
|
71
|
-
}), i.on("error", () => {
|
|
72
|
-
M.error("该浏览器不支持自动复制"), i.destroy(), r();
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
onCancel() {
|
|
77
|
-
return new Promise((r) => {
|
|
78
|
-
const i = new U(".copy-this-sql");
|
|
79
|
-
i.on("success", () => {
|
|
80
|
-
i.destroy(), M.success("复制插入菜单SQL成功"), r();
|
|
81
|
-
}), i.on("error", () => {
|
|
82
|
-
M.error("该浏览器不支持自动复制"), i.destroy(), r();
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}));
|
|
87
|
-
return Te(t.copyText) && Me(t.copyText, (r) => {
|
|
88
|
-
d.update({
|
|
89
|
-
okButtonProps: T(w({}, t.okButtonProps), {
|
|
90
|
-
class: L,
|
|
91
|
-
[B]: r
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
}), d;
|
|
95
|
-
}
|
|
96
|
-
function Ze(t) {
|
|
97
|
-
const o = t.pageType === R.normal, a = Se(), d = ke({
|
|
98
|
-
designScope: t.designScope,
|
|
99
|
-
tableProps: {
|
|
100
|
-
api: _e,
|
|
101
|
-
columns: t.columns,
|
|
102
|
-
formConfig: {
|
|
103
|
-
//labelWidth: 200,
|
|
104
|
-
schemas: t.formSchemas
|
|
105
|
-
},
|
|
106
|
-
beforeFetch: (e) => {
|
|
107
|
-
let n = o ? 0 : 1, u = o ? void 0 : a.currentRoute.value.params.code;
|
|
108
|
-
return Oe(e.tableType_MultiString) && (e.tableType_MultiString = e.tableType_MultiString.join(",")), Object.assign(e, { copyType: n, physicId: u });
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}), { tableContext: m, createMessage: l, createConfirm: p } = d, [, { reload: c, setLoading: s }, { selectedRowKeys: r, selectedRows: i }] = m, [$, v] = f(), [N, P] = f(), [E, O] = f(), [I, A] = f(), [Y, q] = f(), [J, G] = f(), [j, F] = f(), [Q, V] = ve(), [K, X] = f();
|
|
112
|
-
function z() {
|
|
113
|
-
v.openModal(!0, { isUpdate: !1 });
|
|
114
|
-
}
|
|
115
|
-
function H(e) {
|
|
116
|
-
v.openModal(!0, { isUpdate: !0, record: e });
|
|
117
|
-
}
|
|
118
|
-
function W(e) {
|
|
119
|
-
return h(this, null, function* () {
|
|
120
|
-
yield De(e), c();
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function Z(e) {
|
|
124
|
-
return h(this, null, function* () {
|
|
125
|
-
yield Ue(e), c();
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function ee() {
|
|
129
|
-
let e = r.value;
|
|
130
|
-
if (e.length <= 0) {
|
|
131
|
-
l.warning("请先选择一条记录!");
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
p({
|
|
135
|
-
title: "删除",
|
|
136
|
-
content: "<p>移除只会删除表单配置;<br>删除则会删除对应的数据库表以及子表且不能恢复。<br>请确认您的操作…</p>",
|
|
137
|
-
iconType: "warning",
|
|
138
|
-
closable: !0,
|
|
139
|
-
okText: "移除",
|
|
140
|
-
cancelText: "删除",
|
|
141
|
-
cancelButtonProps: { danger: !0 },
|
|
142
|
-
onOk: () => h(this, null, function* () {
|
|
143
|
-
return k(Be, e, !0);
|
|
144
|
-
}),
|
|
145
|
-
onCancel(n) {
|
|
146
|
-
return n != null && n.triggerCancel ? Promise.resolve() : k(Re, e, !0);
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function k(e, n, u = !1) {
|
|
151
|
-
return h(this, null, function* () {
|
|
152
|
-
try {
|
|
153
|
-
s(!0);
|
|
154
|
-
const S = yield e(n);
|
|
155
|
-
return c(), u && (r.value = []), S;
|
|
156
|
-
} finally {
|
|
157
|
-
s(!1);
|
|
158
|
-
}
|
|
159
|
-
return Promise.reject();
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function te() {
|
|
163
|
-
g(([e]) => A.openModal(!0, { row: e }));
|
|
164
|
-
}
|
|
165
|
-
function ne() {
|
|
166
|
-
g(([e]) => q.openModal(!0, { row: e }));
|
|
167
|
-
}
|
|
168
|
-
function oe() {
|
|
169
|
-
g(([e]) => G.openModal(!0, { row: e }));
|
|
170
|
-
}
|
|
171
|
-
function ae() {
|
|
172
|
-
g(([e]) => F.openModal(!0, { row: e }));
|
|
173
|
-
}
|
|
174
|
-
function le() {
|
|
175
|
-
P.openModal(!0, {});
|
|
176
|
-
}
|
|
177
|
-
function g(e, n = 1, u = 1) {
|
|
178
|
-
i.value.length < n ? l.warning(`请先至少选中 ${n} 条记录`) : i.value.length > u ? l.warning(`最多只能选中 ${n} 条记录`) : e(i.value);
|
|
179
|
-
}
|
|
180
|
-
function ie() {
|
|
181
|
-
if (i.value.length === 0)
|
|
182
|
-
l.warning("请先选中一条记录");
|
|
183
|
-
else if (i.value.length > 1)
|
|
184
|
-
l.warning("代码生成只能选中一条记录");
|
|
185
|
-
else {
|
|
186
|
-
let e = i.value[0];
|
|
187
|
-
e ? e.isDbSynch != "Y" ? l.warning("请先同步数据库!") : e.tableType == 3 ? l.warning("请选中该表对应的主表") : O.openModal(!0, { code: e.id }) : l.warning("请选中当前页的数据!");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function se(e) {
|
|
191
|
-
if (console.log(e), e.isTree == "Y")
|
|
192
|
-
a.push({ path: "/online/cgformTreeList/" + e.id });
|
|
193
|
-
else
|
|
194
|
-
switch (e.themeTemplate) {
|
|
195
|
-
case "erp":
|
|
196
|
-
a.push({ path: "/online/cgformErpList/" + e.id });
|
|
197
|
-
break;
|
|
198
|
-
default:
|
|
199
|
-
a.push({ path: "/online/cgformList/" + e.id });
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
function re(e) {
|
|
204
|
-
const n = C("normal"), u = C(!1), S = p({
|
|
205
|
-
iconType: "info",
|
|
206
|
-
title: "同步数据库",
|
|
207
|
-
content: () => b(
|
|
208
|
-
"div",
|
|
209
|
-
{
|
|
210
|
-
style: "margin: 20px 0;"
|
|
211
|
-
},
|
|
212
|
-
b(
|
|
213
|
-
Ce,
|
|
214
|
-
{
|
|
215
|
-
value: n.value,
|
|
216
|
-
disabled: u.value,
|
|
217
|
-
"onUpdate:value": (y) => n.value = y
|
|
218
|
-
},
|
|
219
|
-
() => [b(D, { value: "normal" }, () => "普通同步(保留表数据)"), b(D, { value: "force" }, () => "强制同步(删除表,重新生成)")]
|
|
220
|
-
)
|
|
221
|
-
),
|
|
222
|
-
maskClosable: !0,
|
|
223
|
-
okText: "开始同步",
|
|
224
|
-
onOk() {
|
|
225
|
-
return h(this, null, function* () {
|
|
226
|
-
u.value = !0, S.update({
|
|
227
|
-
maskClosable: !1,
|
|
228
|
-
keyboard: !1,
|
|
229
|
-
okText: "同步中…",
|
|
230
|
-
okButtonProps: { loading: u.value },
|
|
231
|
-
cancelButtonProps: { disabled: u.value }
|
|
232
|
-
});
|
|
233
|
-
try {
|
|
234
|
-
yield $e(e.id, n.value);
|
|
235
|
-
} catch (y) {
|
|
236
|
-
l.warn(y.message || y);
|
|
237
|
-
} finally {
|
|
238
|
-
c();
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
const { createCopyModal: ce } = Ie();
|
|
245
|
-
function ue(e) {
|
|
246
|
-
let n;
|
|
247
|
-
e.themeTemplate === "erp" ? n = `/online/cgformErpList/${e.id}` : e.themeTemplate === "innerTable" ? n = `/online/cgformInnerTableList/${e.id}` : e.themeTemplate === "tab" ? n = `/online/cgformTabList/${e.id}` : e.isTree == "Y" ? n = `/online/cgformTreeList/${e.id}` : n = `/online/cgformList/${e.id}`, ce({
|
|
248
|
-
title: `菜单链接【${e.tableTxt}】`,
|
|
249
|
-
content: n,
|
|
250
|
-
copyText: n,
|
|
251
|
-
copyTitle: `${e.tableTxt}`
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function pe(e) {
|
|
255
|
-
const n = C(e.tableName + "_copy");
|
|
256
|
-
p({
|
|
257
|
-
title: "复制表",
|
|
258
|
-
content: () => b(
|
|
259
|
-
"div",
|
|
260
|
-
{
|
|
261
|
-
style: "margin: 20px 0;"
|
|
262
|
-
},
|
|
263
|
-
[
|
|
264
|
-
"请输入新表名:",
|
|
265
|
-
b(Le, {
|
|
266
|
-
value: n.value,
|
|
267
|
-
"onUpdate:value": (u) => n.value = u
|
|
268
|
-
})
|
|
269
|
-
]
|
|
270
|
-
),
|
|
271
|
-
iconType: "info",
|
|
272
|
-
closable: !0,
|
|
273
|
-
okText: "复制",
|
|
274
|
-
onOk() {
|
|
275
|
-
n.value ? n.value === e.tableName ? l.warning("新表名和旧表名不能一致") : Ne(e.id, n.value).then(c) : l.warning("请输入新表名");
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
function fe(e) {
|
|
280
|
-
return [
|
|
281
|
-
{
|
|
282
|
-
label: "编辑",
|
|
283
|
-
onClick: () => H(e)
|
|
284
|
-
}
|
|
285
|
-
];
|
|
286
|
-
}
|
|
287
|
-
function de(e) {
|
|
288
|
-
return [
|
|
289
|
-
{
|
|
290
|
-
label: "同步数据库",
|
|
291
|
-
onClick: () => re(e),
|
|
292
|
-
ifShow: () => o && e.isDbSynch != "Y"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
// TODO 功能测试
|
|
296
|
-
label: "功能测试",
|
|
297
|
-
class: ["low-app-hide"],
|
|
298
|
-
onClick: () => se(e),
|
|
299
|
-
ifShow: () => o ? e.isDbSynch == "Y" && e.tableType !== 3 : !0
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
label: "配置地址",
|
|
303
|
-
class: ["low-app-hide"],
|
|
304
|
-
onClick: () => ue(e),
|
|
305
|
-
ifShow: () => o ? e.isDbSynch == "Y" && e.tableType !== 3 : !0
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
label: "权限控制",
|
|
309
|
-
onClick: () => V.openDrawer(!0, { cgformId: e.id })
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
label: "角色授权",
|
|
313
|
-
onClick: () => X.openModal(!0, { cgformId: e.id })
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
label: "视图管理",
|
|
317
|
-
class: ["low-app-hide"],
|
|
318
|
-
onClick: () => a.push(`/online/copyform/${e.id}`),
|
|
319
|
-
ifShow: () => o && e.hascopy == 1
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
label: "生成视图",
|
|
323
|
-
class: ["low-app-hide"],
|
|
324
|
-
popConfirm: {
|
|
325
|
-
title: "确定生成视图吗?",
|
|
326
|
-
placement: "left",
|
|
327
|
-
confirm: () => {
|
|
328
|
-
s(!0), xe(e.id).then(() => {
|
|
329
|
-
l.success("已成功生成视图");
|
|
330
|
-
}).finally(() => {
|
|
331
|
-
s(!1), c();
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
ifShow: () => o
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
label: "复制表",
|
|
339
|
-
onClick: () => pe(e),
|
|
340
|
-
ifShow: () => o
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
label: "移除",
|
|
344
|
-
popConfirm: {
|
|
345
|
-
title: "确定移除吗?",
|
|
346
|
-
placement: "left",
|
|
347
|
-
confirm: () => Z(e.id)
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
label: "删除",
|
|
352
|
-
popConfirm: {
|
|
353
|
-
title: "确定删除吗?",
|
|
354
|
-
placement: "left",
|
|
355
|
-
confirm: () => W(e.id)
|
|
356
|
-
},
|
|
357
|
-
ifShow: () => o
|
|
358
|
-
}
|
|
359
|
-
];
|
|
360
|
-
}
|
|
361
|
-
return {
|
|
362
|
-
router: a,
|
|
363
|
-
pageContext: d,
|
|
364
|
-
onAdd: z,
|
|
365
|
-
onDeleteBatch: ee,
|
|
366
|
-
onImportDbTable: le,
|
|
367
|
-
onGenerateCode: ie,
|
|
368
|
-
onShowCustomButton: te,
|
|
369
|
-
onShowEnhanceJs: ne,
|
|
370
|
-
onShowEnhanceSql: oe,
|
|
371
|
-
onShowEnhanceJava: ae,
|
|
372
|
-
getTableAction: fe,
|
|
373
|
-
getDropDownAction: de,
|
|
374
|
-
registerCustomButtonModal: I,
|
|
375
|
-
registerEnhanceJsModal: Y,
|
|
376
|
-
registerEnhanceSqlModal: J,
|
|
377
|
-
registerEnhanceJavaModal: j,
|
|
378
|
-
registerAuthManagerDrawer: Q,
|
|
379
|
-
registerAuthSetterModal: K,
|
|
380
|
-
registerCgformModal: $,
|
|
381
|
-
registerDbToOnlineModal: N,
|
|
382
|
-
registerCodeGeneratorModal: E
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
export {
|
|
386
|
-
R as C,
|
|
387
|
-
Ze as u
|
|
388
|
-
};
|