@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,261 @@
|
|
|
1
|
+
var K = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (e, t, a) => t in e ? K(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, B = (e, t) => {
|
|
6
|
+
for (var a in t || (t = {}))
|
|
7
|
+
w.call(t, a) && M(e, a, t[a]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var a of k(t))
|
|
10
|
+
F.call(t, a) && M(e, a, t[a]);
|
|
11
|
+
return e;
|
|
12
|
+
}, D = (e, t) => E(e, U(t));
|
|
13
|
+
var C = (e, t, a) => new Promise((i, r) => {
|
|
14
|
+
var n = (f) => {
|
|
15
|
+
try {
|
|
16
|
+
u(a.next(f));
|
|
17
|
+
} catch (m) {
|
|
18
|
+
r(m);
|
|
19
|
+
}
|
|
20
|
+
}, p = (f) => {
|
|
21
|
+
try {
|
|
22
|
+
u(a.throw(f));
|
|
23
|
+
} catch (m) {
|
|
24
|
+
r(m);
|
|
25
|
+
}
|
|
26
|
+
}, u = (f) => f.done ? i(f.value) : Promise.resolve(f.value).then(n, p);
|
|
27
|
+
u((a = a.apply(e, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import $ from "./LeftRole-c138f892.mjs";
|
|
30
|
+
import N from "./LeftDepart-54f245b3.mjs";
|
|
31
|
+
import O from "./LeftUser-9c812f8a.mjs";
|
|
32
|
+
import V from "./AuthFieldTree-bb72e21f.mjs";
|
|
33
|
+
import P from "./AuthButtonTree-09e57bc4.mjs";
|
|
34
|
+
import j from "./AuthDataTree-e83286c5.mjs";
|
|
35
|
+
import { defineComponent as q, ref as s, computed as z, nextTick as I, resolveComponent as c, openBlock as L, createBlock as G, withCtx as l, createVNode as o, createElementBlock as H, Fragment as J, createCommentVNode as Q } from "vue";
|
|
36
|
+
import { BasicModal as W, useModalInner as X } from "/@/components/Modal";
|
|
37
|
+
import { _ as Y } from "./index-b70302f2.mjs";
|
|
38
|
+
import "/@/utils/http/axios";
|
|
39
|
+
import "/@/components/Table";
|
|
40
|
+
import "/@/hooks/system/useListPage";
|
|
41
|
+
import "/@/api/common/api";
|
|
42
|
+
import "/@/hooks/web/useMessage";
|
|
43
|
+
import "./auth.api-d3a6c4b3.mjs";
|
|
44
|
+
import "@ant-design/icons-vue";
|
|
45
|
+
import "./auth.data-8be5c9e3.mjs";
|
|
46
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
47
|
+
import "vue-router";
|
|
48
|
+
const Z = q({
|
|
49
|
+
name: "AuthSetterModal",
|
|
50
|
+
components: {
|
|
51
|
+
BasicModal: W,
|
|
52
|
+
LeftRole: $,
|
|
53
|
+
LeftDepart: N,
|
|
54
|
+
LeftUser: O,
|
|
55
|
+
AuthFieldTree: V,
|
|
56
|
+
AuthButtonTree: P,
|
|
57
|
+
AuthDataTree: j
|
|
58
|
+
},
|
|
59
|
+
props: {
|
|
60
|
+
// 1单表 2主表 3附表
|
|
61
|
+
tableType: { type: Number, default: 1 }
|
|
62
|
+
},
|
|
63
|
+
setup(e) {
|
|
64
|
+
const t = s(""), a = s(!1), i = s("field"), r = s("role"), n = {
|
|
65
|
+
fieldRef: s(),
|
|
66
|
+
buttonRef: s(),
|
|
67
|
+
dataRef: s(),
|
|
68
|
+
roleRef: s(),
|
|
69
|
+
userRef: s(),
|
|
70
|
+
departRef: s()
|
|
71
|
+
}, p = s(""), u = z(() => e.tableType == 1 || e.tableType == 2), [f, { closeModal: m }] = X((d) => {
|
|
72
|
+
i.value = "field", t.value = d.cgformId, h();
|
|
73
|
+
});
|
|
74
|
+
function v(d = i.value) {
|
|
75
|
+
var T;
|
|
76
|
+
return (T = n[d + "Ref"]) == null ? void 0 : T.value;
|
|
77
|
+
}
|
|
78
|
+
function h() {
|
|
79
|
+
return C(this, null, function* () {
|
|
80
|
+
yield I(), y(), v().clear();
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function S(d) {
|
|
84
|
+
p.value = d, R(i.value), _();
|
|
85
|
+
}
|
|
86
|
+
function b(d) {
|
|
87
|
+
p.value = d, R(i.value), _();
|
|
88
|
+
}
|
|
89
|
+
function A(d) {
|
|
90
|
+
p.value = d, R(i.value), _();
|
|
91
|
+
}
|
|
92
|
+
function _() {
|
|
93
|
+
r.value == "role" ? (n.departRef.value.clearSelected(), n.userRef.value.clearSelected()) : r.value == "depart" ? (n.roleRef.value.clearSelected(), n.userRef.value.clearSelected()) : r.value == "user" && (n.departRef.value.clearSelected(), n.roleRef.value.clearSelected());
|
|
94
|
+
}
|
|
95
|
+
function y() {
|
|
96
|
+
r.value == "role" ? n.roleRef.value.clearSelected() : r.value == "depart" ? n.departRef.value.clearSelected() : r.value == "user" && n.userRef.value.clearSelected(), v().clearChecked();
|
|
97
|
+
}
|
|
98
|
+
function R(d) {
|
|
99
|
+
return C(this, null, function* () {
|
|
100
|
+
yield I(), p.value && v(d).loadChecked(p.value, r.value);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function g() {
|
|
104
|
+
y();
|
|
105
|
+
}
|
|
106
|
+
return D(B({}, n), {
|
|
107
|
+
cgformId: t,
|
|
108
|
+
loading: a,
|
|
109
|
+
activeKey: i,
|
|
110
|
+
hasDataAuth: u,
|
|
111
|
+
authMode: r,
|
|
112
|
+
onAuthModeChange: g,
|
|
113
|
+
onAuthTypeChange: R,
|
|
114
|
+
closeModal: m,
|
|
115
|
+
onSelectRole: S,
|
|
116
|
+
onSelectDepart: b,
|
|
117
|
+
onSelectUser: A,
|
|
118
|
+
registerModal: f
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
function x(e, t, a, i, r, n) {
|
|
123
|
+
const p = c("LeftRole"), u = c("a-tab-pane"), f = c("LeftDepart"), m = c("LeftUser"), v = c("a-tabs"), h = c("a-col"), S = c("AuthFieldTree"), b = c("AuthButtonTree"), A = c("AuthDataTree"), _ = c("a-row"), y = c("a-spin"), R = c("BasicModal");
|
|
124
|
+
return L(), G(R, {
|
|
125
|
+
title: "Online权限授权",
|
|
126
|
+
width: 900,
|
|
127
|
+
maskClosable: !1,
|
|
128
|
+
defaultFullscreen: "",
|
|
129
|
+
okButtonProps: { style: { display: "none" } },
|
|
130
|
+
cancelText: "关闭",
|
|
131
|
+
onCancel: e.closeModal,
|
|
132
|
+
onRegister: e.registerModal
|
|
133
|
+
}, {
|
|
134
|
+
default: l(() => [
|
|
135
|
+
o(y, { spinning: e.loading }, {
|
|
136
|
+
default: l(() => [
|
|
137
|
+
o(_, null, {
|
|
138
|
+
default: l(() => [
|
|
139
|
+
o(h, { span: 12 }, {
|
|
140
|
+
default: l(() => [
|
|
141
|
+
o(v, {
|
|
142
|
+
activeKey: e.authMode,
|
|
143
|
+
"onUpdate:activeKey": t[0] || (t[0] = (g) => e.authMode = g),
|
|
144
|
+
onChange: e.onAuthModeChange
|
|
145
|
+
}, {
|
|
146
|
+
default: l(() => [
|
|
147
|
+
o(u, {
|
|
148
|
+
tab: "角色授权",
|
|
149
|
+
key: "role",
|
|
150
|
+
forceRender: ""
|
|
151
|
+
}, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
o(p, {
|
|
154
|
+
ref: "roleRef",
|
|
155
|
+
onSelect: e.onSelectRole
|
|
156
|
+
}, null, 8, ["onSelect"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
o(u, {
|
|
161
|
+
tab: "部门授权",
|
|
162
|
+
key: "depart",
|
|
163
|
+
forceRender: ""
|
|
164
|
+
}, {
|
|
165
|
+
default: l(() => [
|
|
166
|
+
o(f, {
|
|
167
|
+
ref: "departRef",
|
|
168
|
+
onSelect: e.onSelectDepart
|
|
169
|
+
}, null, 8, ["onSelect"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}),
|
|
173
|
+
o(u, {
|
|
174
|
+
tab: "人员授权",
|
|
175
|
+
key: "user",
|
|
176
|
+
forceRender: ""
|
|
177
|
+
}, {
|
|
178
|
+
default: l(() => [
|
|
179
|
+
o(m, {
|
|
180
|
+
ref: "userRef",
|
|
181
|
+
onSelect: e.onSelectUser
|
|
182
|
+
}, null, 8, ["onSelect"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
})
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["activeKey", "onChange"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
o(h, { span: 1 }),
|
|
193
|
+
o(h, { span: 11 }, {
|
|
194
|
+
default: l(() => [
|
|
195
|
+
o(v, {
|
|
196
|
+
activeKey: e.activeKey,
|
|
197
|
+
"onUpdate:activeKey": t[1] || (t[1] = (g) => e.activeKey = g),
|
|
198
|
+
onChange: e.onAuthTypeChange
|
|
199
|
+
}, {
|
|
200
|
+
default: l(() => [
|
|
201
|
+
o(u, {
|
|
202
|
+
tab: "字段权限",
|
|
203
|
+
key: "field",
|
|
204
|
+
forceRender: ""
|
|
205
|
+
}, {
|
|
206
|
+
default: l(() => [
|
|
207
|
+
o(S, {
|
|
208
|
+
ref: "fieldRef",
|
|
209
|
+
cgformId: e.cgformId
|
|
210
|
+
}, null, 8, ["cgformId"])
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}),
|
|
214
|
+
e.hasDataAuth ? (L(), H(J, { key: 0 }, [
|
|
215
|
+
o(u, {
|
|
216
|
+
tab: "按钮权限",
|
|
217
|
+
key: "button",
|
|
218
|
+
forceRender: ""
|
|
219
|
+
}, {
|
|
220
|
+
default: l(() => [
|
|
221
|
+
o(b, {
|
|
222
|
+
ref: "buttonRef",
|
|
223
|
+
cgformId: e.cgformId
|
|
224
|
+
}, null, 8, ["cgformId"])
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
o(u, {
|
|
229
|
+
tab: "数据权限",
|
|
230
|
+
key: "data",
|
|
231
|
+
forceRender: ""
|
|
232
|
+
}, {
|
|
233
|
+
default: l(() => [
|
|
234
|
+
o(A, {
|
|
235
|
+
ref: "dataRef",
|
|
236
|
+
cgformId: e.cgformId
|
|
237
|
+
}, null, 8, ["cgformId"])
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
})
|
|
241
|
+
], 64)) : Q("", !0)
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["activeKey", "onChange"])
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
})
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
})
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["spinning"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["onCancel", "onRegister"]);
|
|
257
|
+
}
|
|
258
|
+
const ye = /* @__PURE__ */ Y(Z, [["render", x]]);
|
|
259
|
+
export {
|
|
260
|
+
ye as default
|
|
261
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { defineComponent as J, provide as B, watch as k, resolveComponent as e, openBlock as C, createElementBlock as M, Fragment as v, createElementVNode as I, normalizeClass as q, createVNode as t, withCtx as n, createTextVNode as a, createCommentVNode as T } from "vue";
|
|
2
|
+
import { BasicTable as L, TableAction as N } from "/@/components/Table";
|
|
3
|
+
import { C as V } from "./CgformModal-7399a5ac.mjs";
|
|
4
|
+
import F from "./DbToOnlineModal-d23cbeb1.mjs";
|
|
5
|
+
import O from "./CustomButtonList-c44aec5a.mjs";
|
|
6
|
+
import $ from "./EnhanceJsModal-c2fb75b8.mjs";
|
|
7
|
+
import P from "./EnhanceJavaModal-153899a9.mjs";
|
|
8
|
+
import z from "./EnhanceSqlModal-965e9b0a.mjs";
|
|
9
|
+
import Q from "./AuthManagerDrawer-28a2d108.mjs";
|
|
10
|
+
import Y from "./AuthSetterModal-2990d553.mjs";
|
|
11
|
+
import { C as j, u as G } from "./useCgformList-0c603af1.mjs";
|
|
12
|
+
import { _ as H } from "./index-b70302f2.mjs";
|
|
13
|
+
import "/@/components/Icon";
|
|
14
|
+
import "/@/components/Modal";
|
|
15
|
+
import "/@/components/Form/index";
|
|
16
|
+
import "/@/hooks/web/useMessage";
|
|
17
|
+
import "./useSchemas-43429d80.mjs";
|
|
18
|
+
import "ant-design-vue";
|
|
19
|
+
import "@ant-design/icons-vue";
|
|
20
|
+
import "/@/utils/common/compUtils";
|
|
21
|
+
import "/@/hooks/web/usePermission";
|
|
22
|
+
import "/@/utils/helper/validator";
|
|
23
|
+
import "./DBAttributeTable-7d285e8d.mjs";
|
|
24
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
25
|
+
import "./useTableSync-774c3774.mjs";
|
|
26
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
27
|
+
import "/@/utils/dict";
|
|
28
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
29
|
+
import "/@/utils/uuid";
|
|
30
|
+
import "lodash-es";
|
|
31
|
+
import "./PageAttributeTable-5966b201.mjs";
|
|
32
|
+
import "./LinkTableConfigModal-c2c5c7e6.mjs";
|
|
33
|
+
import "/@/utils/http/axios";
|
|
34
|
+
import "./LinkTableFieldConfigModal-a3553b1f.mjs";
|
|
35
|
+
import "./FieldExtendJsonModal-adfcf5a7.mjs";
|
|
36
|
+
import "./constant-754f1a9d.mjs";
|
|
37
|
+
import "./CheckDictTable-3a8a54b3.mjs";
|
|
38
|
+
import "/@/components/jeecg/JPrompt";
|
|
39
|
+
import "/@/hooks/web/useDesign";
|
|
40
|
+
import "./ForeignKeyTable-faab7ccf.mjs";
|
|
41
|
+
import "./IndexTable-0a2d3718.mjs";
|
|
42
|
+
import "./QueryTable-6e8053ad.mjs";
|
|
43
|
+
import "./ExtendConfigModal-8f08466f.mjs";
|
|
44
|
+
import "/@/components/Form";
|
|
45
|
+
import "./useOnlineTest-e4bd8be3.mjs";
|
|
46
|
+
import "/@/utils";
|
|
47
|
+
import "./useExtendComponent-aa1cdfc8.mjs";
|
|
48
|
+
import "/@/components/Form/src/componentMap";
|
|
49
|
+
import "/@/utils/propTypes";
|
|
50
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
51
|
+
import "/@/views/system/user/user.api";
|
|
52
|
+
import "/@/store/modules/user";
|
|
53
|
+
import "/@/utils/desform/customExpression";
|
|
54
|
+
import "/@/store/modules/permission";
|
|
55
|
+
import "/@/hooks/system/useListPage";
|
|
56
|
+
import "vue-router";
|
|
57
|
+
import "/@/components/Form/src/utils/Area";
|
|
58
|
+
import "/@/components/Preview/index";
|
|
59
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
60
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
61
|
+
import "/@/components/Loading";
|
|
62
|
+
import "/@/utils/auth";
|
|
63
|
+
import "./JModalTip-e1938b49.mjs";
|
|
64
|
+
import "@vueuse/core";
|
|
65
|
+
import "./EnhanceJsHistory-7f5db3b1.mjs";
|
|
66
|
+
import "/@/utils/dateUtil";
|
|
67
|
+
import "/@/store";
|
|
68
|
+
import "pinia";
|
|
69
|
+
import "/@/utils/cache";
|
|
70
|
+
import "./enhance.api-138e6826.mjs";
|
|
71
|
+
import "/@/utils/is";
|
|
72
|
+
import "./enhance.data-efc7e155.mjs";
|
|
73
|
+
import "/@/components/Drawer";
|
|
74
|
+
import "./AuthFieldConfig-f1ec2708.mjs";
|
|
75
|
+
import "./auth.api-d3a6c4b3.mjs";
|
|
76
|
+
import "./auth.data-8be5c9e3.mjs";
|
|
77
|
+
import "./AuthButtonConfig-b6a674fa.mjs";
|
|
78
|
+
import "./AuthDataConfig-6e7e61ec.mjs";
|
|
79
|
+
import "./LeftRole-c138f892.mjs";
|
|
80
|
+
import "./LeftDepart-54f245b3.mjs";
|
|
81
|
+
import "/@/api/common/api";
|
|
82
|
+
import "./LeftUser-9c812f8a.mjs";
|
|
83
|
+
import "./AuthFieldTree-bb72e21f.mjs";
|
|
84
|
+
import "./AuthButtonTree-09e57bc4.mjs";
|
|
85
|
+
import "./AuthDataTree-e83286c5.mjs";
|
|
86
|
+
import "clipboard";
|
|
87
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
88
|
+
const K = J({
|
|
89
|
+
name: "CgformCopyList",
|
|
90
|
+
components: {
|
|
91
|
+
BasicTable: L,
|
|
92
|
+
TableAction: N,
|
|
93
|
+
CgformModal: V,
|
|
94
|
+
DbToOnlineModal: F,
|
|
95
|
+
CustomButtonList: O,
|
|
96
|
+
EnhanceJsModal: $,
|
|
97
|
+
EnhanceJavaModal: P,
|
|
98
|
+
EnhanceSqlModal: z,
|
|
99
|
+
AuthManagerDrawer: Q,
|
|
100
|
+
AuthSetterModal: Y
|
|
101
|
+
},
|
|
102
|
+
setup() {
|
|
103
|
+
const o = j.copy;
|
|
104
|
+
B("cgformPageType", o);
|
|
105
|
+
const {
|
|
106
|
+
router: S,
|
|
107
|
+
pageContext: E,
|
|
108
|
+
getTableAction: A,
|
|
109
|
+
getDropDownAction: b,
|
|
110
|
+
onShowCustomButton: w,
|
|
111
|
+
onShowEnhanceJs: i,
|
|
112
|
+
onShowEnhanceSql: m,
|
|
113
|
+
onShowEnhanceJava: p,
|
|
114
|
+
registerCustomButtonModal: l,
|
|
115
|
+
registerEnhanceJsModal: s,
|
|
116
|
+
registerEnhanceSqlModal: c,
|
|
117
|
+
registerEnhanceJavaModal: u,
|
|
118
|
+
registerAuthManagerDrawer: g,
|
|
119
|
+
registerAuthSetterModal: d,
|
|
120
|
+
registerCgformModal: h,
|
|
121
|
+
registerDbToOnlineModal: f
|
|
122
|
+
} = G({
|
|
123
|
+
pageType: o,
|
|
124
|
+
designScope: "online-cgform-list",
|
|
125
|
+
columns: [
|
|
126
|
+
{ title: "视图表名", dataIndex: "tableName" },
|
|
127
|
+
{ title: "视图表描述", dataIndex: "tableTxt" },
|
|
128
|
+
{ title: "原表版本", dataIndex: "copyVersion" },
|
|
129
|
+
{ title: "视图版本", dataIndex: "tableVersion" }
|
|
130
|
+
],
|
|
131
|
+
formSchemas: [{ label: "表名", field: "tableName", component: "JInput" }]
|
|
132
|
+
}), { prefixCls: r, tableContext: y } = E, [R, { reload: _ }, { rowSelection: D }] = y;
|
|
133
|
+
return k(S.currentRoute, () => _()), {
|
|
134
|
+
prefixCls: r,
|
|
135
|
+
reload: _,
|
|
136
|
+
rowSelection: D,
|
|
137
|
+
getTableAction: A,
|
|
138
|
+
getDropDownAction: b,
|
|
139
|
+
onShowCustomButton: w,
|
|
140
|
+
onShowEnhanceJs: i,
|
|
141
|
+
onShowEnhanceSql: m,
|
|
142
|
+
onShowEnhanceJava: p,
|
|
143
|
+
registerCustomButtonModal: l,
|
|
144
|
+
registerEnhanceJsModal: s,
|
|
145
|
+
registerEnhanceSqlModal: c,
|
|
146
|
+
registerEnhanceJavaModal: u,
|
|
147
|
+
registerAuthManagerDrawer: g,
|
|
148
|
+
registerAuthSetterModal: d,
|
|
149
|
+
registerTable: R,
|
|
150
|
+
registerCgformModal: h,
|
|
151
|
+
registerDbToOnlineModal: f
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}), U = {
|
|
155
|
+
key: 0,
|
|
156
|
+
style: { color: "limegreen" }
|
|
157
|
+
}, W = {
|
|
158
|
+
key: 1,
|
|
159
|
+
style: { color: "red" }
|
|
160
|
+
};
|
|
161
|
+
function X(o, S, E, A, b, w) {
|
|
162
|
+
const i = e("a-button"), m = e("TableAction"), p = e("BasicTable"), l = e("CgformModal"), s = e("EnhanceJsModal"), c = e("EnhanceJavaModal"), u = e("EnhanceSqlModal"), g = e("DbToOnlineModal"), d = e("CustomButtonList"), h = e("AuthManagerDrawer"), f = e("AuthSetterModal");
|
|
163
|
+
return C(), M(v, null, [
|
|
164
|
+
I("div", {
|
|
165
|
+
class: q(o.prefixCls)
|
|
166
|
+
}, [
|
|
167
|
+
t(p, {
|
|
168
|
+
onRegister: o.registerTable,
|
|
169
|
+
rowSelection: o.rowSelection
|
|
170
|
+
}, {
|
|
171
|
+
tableTitle: n(() => [
|
|
172
|
+
t(i, {
|
|
173
|
+
onClick: o.onShowCustomButton,
|
|
174
|
+
type: "primary",
|
|
175
|
+
preIcon: "ant-design:highlight"
|
|
176
|
+
}, {
|
|
177
|
+
default: n(() => [
|
|
178
|
+
a("自定义按钮")
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["onClick"]),
|
|
182
|
+
t(i, {
|
|
183
|
+
onClick: o.onShowEnhanceJs,
|
|
184
|
+
type: "primary",
|
|
185
|
+
preIcon: "ant-design:strikethrough"
|
|
186
|
+
}, {
|
|
187
|
+
default: n(() => [
|
|
188
|
+
a("JS增强")
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["onClick"]),
|
|
192
|
+
t(i, {
|
|
193
|
+
onClick: o.onShowEnhanceSql,
|
|
194
|
+
type: "primary",
|
|
195
|
+
preIcon: "ant-design:filter"
|
|
196
|
+
}, {
|
|
197
|
+
default: n(() => [
|
|
198
|
+
a("SQL增强")
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["onClick"]),
|
|
202
|
+
t(i, {
|
|
203
|
+
onClick: o.onShowEnhanceJava,
|
|
204
|
+
type: "primary",
|
|
205
|
+
preIcon: "ant-design:tool"
|
|
206
|
+
}, {
|
|
207
|
+
default: n(() => [
|
|
208
|
+
a("Java增强")
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["onClick"])
|
|
212
|
+
]),
|
|
213
|
+
dbSync: n(({ text: r }) => [
|
|
214
|
+
r === "Y" ? (C(), M("span", U, "已同步")) : T("", !0),
|
|
215
|
+
r === "N" ? (C(), M("span", W, "未同步")) : T("", !0)
|
|
216
|
+
]),
|
|
217
|
+
action: n(({ record: r }) => [
|
|
218
|
+
t(m, {
|
|
219
|
+
actions: o.getTableAction(r),
|
|
220
|
+
dropDownActions: o.getDropDownAction(r)
|
|
221
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["onRegister", "rowSelection"])
|
|
225
|
+
], 2),
|
|
226
|
+
t(l, {
|
|
227
|
+
onRegister: o.registerCgformModal,
|
|
228
|
+
actionButton: !1,
|
|
229
|
+
onSuccess: o.reload
|
|
230
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
231
|
+
t(s, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
232
|
+
t(c, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
233
|
+
t(u, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
234
|
+
t(g, {
|
|
235
|
+
onRegister: o.registerDbToOnlineModal,
|
|
236
|
+
onSuccess: o.reload
|
|
237
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
238
|
+
t(d, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
239
|
+
t(h, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
240
|
+
t(f, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"])
|
|
241
|
+
], 64);
|
|
242
|
+
}
|
|
243
|
+
const vt = /* @__PURE__ */ H(K, [["render", X]]);
|
|
244
|
+
export {
|
|
245
|
+
vt as default
|
|
246
|
+
};
|