@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,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-d0fa8398.mjs";
|
|
30
|
+
import N from "./LeftDepart-ca7a7375.mjs";
|
|
31
|
+
import O from "./LeftUser-0c88c240.mjs";
|
|
32
|
+
import V from "./AuthFieldTree-888e04a9.mjs";
|
|
33
|
+
import P from "./AuthButtonTree-d73bccf5.mjs";
|
|
34
|
+
import j from "./AuthDataTree-03d62d3f.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-6a09a912.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,245 @@
|
|
|
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-6938d8c2.mjs";
|
|
4
|
+
import F from "./DbToOnlineModal-dc5d2030.mjs";
|
|
5
|
+
import O from "./CustomButtonList-1c9bd859.mjs";
|
|
6
|
+
import $ from "./EnhanceJsModal-0b133341.mjs";
|
|
7
|
+
import P from "./EnhanceJavaModal-7f53d2ca.mjs";
|
|
8
|
+
import z from "./EnhanceSqlModal-33a94c83.mjs";
|
|
9
|
+
import Q from "./AuthManagerDrawer-f127b8a2.mjs";
|
|
10
|
+
import Y from "./AuthSetterModal-37da78ed.mjs";
|
|
11
|
+
import { C as j, u as G } from "./useCgformList-2d6a5955.mjs";
|
|
12
|
+
import { _ as H } from "./index-6a09a912.mjs";
|
|
13
|
+
import "/@/components/Icon";
|
|
14
|
+
import "/@/components/Modal";
|
|
15
|
+
import "/@/components/Form/index";
|
|
16
|
+
import "/@/hooks/web/useMessage";
|
|
17
|
+
import "./useSchemas-fc8d97ce.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-cd1c41e5.mjs";
|
|
24
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
25
|
+
import "./useTableSync-dc333087.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-811185fd.mjs";
|
|
32
|
+
import "./LinkTableConfigModal-77d7c0b9.mjs";
|
|
33
|
+
import "/@/utils/http/axios";
|
|
34
|
+
import "./LinkTableFieldConfigModal-c5689ab0.mjs";
|
|
35
|
+
import "./FieldExtendJsonModal-48f7d67f.mjs";
|
|
36
|
+
import "./CheckDictTable-414313f2.mjs";
|
|
37
|
+
import "/@/components/jeecg/JPrompt";
|
|
38
|
+
import "/@/hooks/web/useDesign";
|
|
39
|
+
import "./ForeignKeyTable-cb1abd1d.mjs";
|
|
40
|
+
import "./IndexTable-4e94cd1f.mjs";
|
|
41
|
+
import "./QueryTable-4ba771ef.mjs";
|
|
42
|
+
import "./ExtendConfigModal-60f2cf86.mjs";
|
|
43
|
+
import "/@/components/Form";
|
|
44
|
+
import "./useOnlineTest-0df0ae86.mjs";
|
|
45
|
+
import "/@/utils";
|
|
46
|
+
import "./useExtendComponent-48d37d9b.mjs";
|
|
47
|
+
import "/@/components/Form/src/componentMap";
|
|
48
|
+
import "/@/utils/propTypes";
|
|
49
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
50
|
+
import "/@/views/system/user/user.api";
|
|
51
|
+
import "/@/store/modules/user";
|
|
52
|
+
import "/@/utils/desform/customExpression";
|
|
53
|
+
import "/@/store/modules/permission";
|
|
54
|
+
import "/@/hooks/system/useListPage";
|
|
55
|
+
import "vue-router";
|
|
56
|
+
import "/@/components/Form/src/utils/Area";
|
|
57
|
+
import "/@/components/Preview/index";
|
|
58
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
59
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
60
|
+
import "/@/components/Loading";
|
|
61
|
+
import "/@/utils/auth";
|
|
62
|
+
import "./JModalTip-abe1515a.mjs";
|
|
63
|
+
import "@vueuse/core";
|
|
64
|
+
import "./EnhanceJsHistory-c30805ce.mjs";
|
|
65
|
+
import "/@/utils/dateUtil";
|
|
66
|
+
import "/@/store";
|
|
67
|
+
import "pinia";
|
|
68
|
+
import "/@/utils/cache";
|
|
69
|
+
import "./enhance.api-138e6826.mjs";
|
|
70
|
+
import "/@/utils/is";
|
|
71
|
+
import "./enhance.data-efc7e155.mjs";
|
|
72
|
+
import "/@/components/Drawer";
|
|
73
|
+
import "./AuthFieldConfig-b1217a0c.mjs";
|
|
74
|
+
import "./auth.api-d3a6c4b3.mjs";
|
|
75
|
+
import "./auth.data-8be5c9e3.mjs";
|
|
76
|
+
import "./AuthButtonConfig-2f71787c.mjs";
|
|
77
|
+
import "./AuthDataConfig-32cf23d2.mjs";
|
|
78
|
+
import "./LeftRole-d0fa8398.mjs";
|
|
79
|
+
import "./LeftDepart-ca7a7375.mjs";
|
|
80
|
+
import "/@/api/common/api";
|
|
81
|
+
import "./LeftUser-0c88c240.mjs";
|
|
82
|
+
import "./AuthFieldTree-888e04a9.mjs";
|
|
83
|
+
import "./AuthButtonTree-d73bccf5.mjs";
|
|
84
|
+
import "./AuthDataTree-03d62d3f.mjs";
|
|
85
|
+
import "clipboard";
|
|
86
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
87
|
+
const K = J({
|
|
88
|
+
name: "CgformCopyList",
|
|
89
|
+
components: {
|
|
90
|
+
BasicTable: L,
|
|
91
|
+
TableAction: N,
|
|
92
|
+
CgformModal: V,
|
|
93
|
+
DbToOnlineModal: F,
|
|
94
|
+
CustomButtonList: O,
|
|
95
|
+
EnhanceJsModal: $,
|
|
96
|
+
EnhanceJavaModal: P,
|
|
97
|
+
EnhanceSqlModal: z,
|
|
98
|
+
AuthManagerDrawer: Q,
|
|
99
|
+
AuthSetterModal: Y
|
|
100
|
+
},
|
|
101
|
+
setup() {
|
|
102
|
+
const o = j.copy;
|
|
103
|
+
B("cgformPageType", o);
|
|
104
|
+
const {
|
|
105
|
+
router: S,
|
|
106
|
+
pageContext: E,
|
|
107
|
+
getTableAction: A,
|
|
108
|
+
getDropDownAction: b,
|
|
109
|
+
onShowCustomButton: w,
|
|
110
|
+
onShowEnhanceJs: i,
|
|
111
|
+
onShowEnhanceSql: m,
|
|
112
|
+
onShowEnhanceJava: p,
|
|
113
|
+
registerCustomButtonModal: l,
|
|
114
|
+
registerEnhanceJsModal: s,
|
|
115
|
+
registerEnhanceSqlModal: c,
|
|
116
|
+
registerEnhanceJavaModal: u,
|
|
117
|
+
registerAuthManagerDrawer: g,
|
|
118
|
+
registerAuthSetterModal: d,
|
|
119
|
+
registerCgformModal: h,
|
|
120
|
+
registerDbToOnlineModal: f
|
|
121
|
+
} = G({
|
|
122
|
+
pageType: o,
|
|
123
|
+
designScope: "online-cgform-list",
|
|
124
|
+
columns: [
|
|
125
|
+
{ title: "视图表名", dataIndex: "tableName" },
|
|
126
|
+
{ title: "视图表描述", dataIndex: "tableTxt" },
|
|
127
|
+
{ title: "原表版本", dataIndex: "copyVersion" },
|
|
128
|
+
{ title: "视图版本", dataIndex: "tableVersion" }
|
|
129
|
+
],
|
|
130
|
+
formSchemas: [{ label: "表名", field: "tableName", component: "JInput" }]
|
|
131
|
+
}), { prefixCls: r, tableContext: y } = E, [R, { reload: _ }, { rowSelection: D }] = y;
|
|
132
|
+
return k(S.currentRoute, () => _()), {
|
|
133
|
+
prefixCls: r,
|
|
134
|
+
reload: _,
|
|
135
|
+
rowSelection: D,
|
|
136
|
+
getTableAction: A,
|
|
137
|
+
getDropDownAction: b,
|
|
138
|
+
onShowCustomButton: w,
|
|
139
|
+
onShowEnhanceJs: i,
|
|
140
|
+
onShowEnhanceSql: m,
|
|
141
|
+
onShowEnhanceJava: p,
|
|
142
|
+
registerCustomButtonModal: l,
|
|
143
|
+
registerEnhanceJsModal: s,
|
|
144
|
+
registerEnhanceSqlModal: c,
|
|
145
|
+
registerEnhanceJavaModal: u,
|
|
146
|
+
registerAuthManagerDrawer: g,
|
|
147
|
+
registerAuthSetterModal: d,
|
|
148
|
+
registerTable: R,
|
|
149
|
+
registerCgformModal: h,
|
|
150
|
+
registerDbToOnlineModal: f
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}), U = {
|
|
154
|
+
key: 0,
|
|
155
|
+
style: { color: "limegreen" }
|
|
156
|
+
}, W = {
|
|
157
|
+
key: 1,
|
|
158
|
+
style: { color: "red" }
|
|
159
|
+
};
|
|
160
|
+
function X(o, S, E, A, b, w) {
|
|
161
|
+
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");
|
|
162
|
+
return C(), M(v, null, [
|
|
163
|
+
I("div", {
|
|
164
|
+
class: q(o.prefixCls)
|
|
165
|
+
}, [
|
|
166
|
+
t(p, {
|
|
167
|
+
onRegister: o.registerTable,
|
|
168
|
+
rowSelection: o.rowSelection
|
|
169
|
+
}, {
|
|
170
|
+
tableTitle: n(() => [
|
|
171
|
+
t(i, {
|
|
172
|
+
onClick: o.onShowCustomButton,
|
|
173
|
+
type: "primary",
|
|
174
|
+
preIcon: "ant-design:highlight"
|
|
175
|
+
}, {
|
|
176
|
+
default: n(() => [
|
|
177
|
+
a("自定义按钮")
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["onClick"]),
|
|
181
|
+
t(i, {
|
|
182
|
+
onClick: o.onShowEnhanceJs,
|
|
183
|
+
type: "primary",
|
|
184
|
+
preIcon: "ant-design:strikethrough"
|
|
185
|
+
}, {
|
|
186
|
+
default: n(() => [
|
|
187
|
+
a("JS增强")
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["onClick"]),
|
|
191
|
+
t(i, {
|
|
192
|
+
onClick: o.onShowEnhanceSql,
|
|
193
|
+
type: "primary",
|
|
194
|
+
preIcon: "ant-design:filter"
|
|
195
|
+
}, {
|
|
196
|
+
default: n(() => [
|
|
197
|
+
a("SQL增强")
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["onClick"]),
|
|
201
|
+
t(i, {
|
|
202
|
+
onClick: o.onShowEnhanceJava,
|
|
203
|
+
type: "primary",
|
|
204
|
+
preIcon: "ant-design:tool"
|
|
205
|
+
}, {
|
|
206
|
+
default: n(() => [
|
|
207
|
+
a("Java增强")
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["onClick"])
|
|
211
|
+
]),
|
|
212
|
+
dbSync: n(({ text: r }) => [
|
|
213
|
+
r === "Y" ? (C(), M("span", U, "已同步")) : T("", !0),
|
|
214
|
+
r === "N" ? (C(), M("span", W, "未同步")) : T("", !0)
|
|
215
|
+
]),
|
|
216
|
+
action: n(({ record: r }) => [
|
|
217
|
+
t(m, {
|
|
218
|
+
actions: o.getTableAction(r),
|
|
219
|
+
dropDownActions: o.getDropDownAction(r)
|
|
220
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["onRegister", "rowSelection"])
|
|
224
|
+
], 2),
|
|
225
|
+
t(l, {
|
|
226
|
+
onRegister: o.registerCgformModal,
|
|
227
|
+
actionButton: !1,
|
|
228
|
+
onSuccess: o.reload
|
|
229
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
230
|
+
t(s, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
231
|
+
t(c, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
232
|
+
t(u, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
233
|
+
t(g, {
|
|
234
|
+
onRegister: o.registerDbToOnlineModal,
|
|
235
|
+
onSuccess: o.reload
|
|
236
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
237
|
+
t(d, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
238
|
+
t(h, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
239
|
+
t(f, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"])
|
|
240
|
+
], 64);
|
|
241
|
+
}
|
|
242
|
+
const kt = /* @__PURE__ */ H(K, [["render", X]]);
|
|
243
|
+
export {
|
|
244
|
+
kt as default
|
|
245
|
+
};
|