@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
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 +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -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-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -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 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- 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 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- 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,388 @@
|
|
|
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
|
+
};
|