@jeecg/online 3.6.2-beta → 3.7.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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
- package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
var K = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
-
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var M = Object.getOwnPropertySymbols;
|
|
4
|
-
var U = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var k = (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
|
-
U.call(t, a) && k(e, a, t[a]);
|
|
8
|
-
if (M)
|
|
9
|
-
for (var a of M(t))
|
|
10
|
-
F.call(t, a) && k(e, a, t[a]);
|
|
11
|
-
return e;
|
|
12
|
-
}, D = (e, t) => w(e, E(t));
|
|
13
|
-
var b = (e, t, a) => new Promise((p, r) => {
|
|
14
|
-
var n = (f) => {
|
|
15
|
-
try {
|
|
16
|
-
u(a.next(f));
|
|
17
|
-
} catch (m) {
|
|
18
|
-
r(m);
|
|
19
|
-
}
|
|
20
|
-
}, i = (f) => {
|
|
21
|
-
try {
|
|
22
|
-
u(a.throw(f));
|
|
23
|
-
} catch (m) {
|
|
24
|
-
r(m);
|
|
25
|
-
}
|
|
26
|
-
}, u = (f) => f.done ? p(f.value) : Promise.resolve(f.value).then(n, i);
|
|
27
|
-
u((a = a.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import N from "./LeftRole-8b8dfe21.mjs";
|
|
30
|
-
import $ from "./LeftDepart-fa85523d.mjs";
|
|
31
|
-
import O from "./LeftUser-dc24ef2f.mjs";
|
|
32
|
-
import V from "./AuthFieldTree-69864163.mjs";
|
|
33
|
-
import P from "./AuthButtonTree-3aa0ed49.mjs";
|
|
34
|
-
import j from "./AuthDataTree-94e026e3.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-0e3ab3af.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: N,
|
|
53
|
-
LeftDepart: $,
|
|
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), p = 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
|
-
}, i = s(""), u = z(() => e.tableType == 1 || e.tableType == 2), [f, { closeModal: m }] = X((d) => {
|
|
72
|
-
p.value = "field", t.value = d.cgformId, h();
|
|
73
|
-
});
|
|
74
|
-
function v(d = p.value) {
|
|
75
|
-
var C;
|
|
76
|
-
return (C = n[d + "Ref"]) == null ? void 0 : C.value;
|
|
77
|
-
}
|
|
78
|
-
function h() {
|
|
79
|
-
return b(this, null, function* () {
|
|
80
|
-
yield I(), y(), v().clear();
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function S(d) {
|
|
84
|
-
i.value = d, _(p.value), R();
|
|
85
|
-
}
|
|
86
|
-
function A(d) {
|
|
87
|
-
i.value = d, _(p.value), R();
|
|
88
|
-
}
|
|
89
|
-
function T(d) {
|
|
90
|
-
i.value = d, _(p.value), R();
|
|
91
|
-
}
|
|
92
|
-
function R() {
|
|
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(), i.value = "";
|
|
97
|
-
}
|
|
98
|
-
function _(d) {
|
|
99
|
-
return b(this, null, function* () {
|
|
100
|
-
yield I(), i.value && v(d).loadChecked(i.value, r.value);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function g() {
|
|
104
|
-
y();
|
|
105
|
-
}
|
|
106
|
-
return D(B({}, n), {
|
|
107
|
-
cgformId: t,
|
|
108
|
-
loading: a,
|
|
109
|
-
activeKey: p,
|
|
110
|
-
hasDataAuth: u,
|
|
111
|
-
authMode: r,
|
|
112
|
-
onAuthModeChange: g,
|
|
113
|
-
onAuthTypeChange: _,
|
|
114
|
-
closeModal: m,
|
|
115
|
-
onSelectRole: S,
|
|
116
|
-
onSelectDepart: A,
|
|
117
|
-
onSelectUser: T,
|
|
118
|
-
registerModal: f
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
function x(e, t, a, p, r, n) {
|
|
123
|
-
const i = c("LeftRole"), u = c("a-tab-pane"), f = c("LeftDepart"), m = c("LeftUser"), v = c("a-tabs"), h = c("a-col"), S = c("AuthFieldTree"), A = c("AuthButtonTree"), T = c("AuthDataTree"), R = c("a-row"), y = c("a-spin"), _ = c("BasicModal");
|
|
124
|
-
return L(), G(_, {
|
|
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, {
|
|
136
|
-
wrapperClassName: "authsetting-container",
|
|
137
|
-
spinning: e.loading
|
|
138
|
-
}, {
|
|
139
|
-
default: l(() => [
|
|
140
|
-
o(R, null, {
|
|
141
|
-
default: l(() => [
|
|
142
|
-
o(h, { span: 12 }, {
|
|
143
|
-
default: l(() => [
|
|
144
|
-
o(v, {
|
|
145
|
-
activeKey: e.authMode,
|
|
146
|
-
"onUpdate:activeKey": t[0] || (t[0] = (g) => e.authMode = g),
|
|
147
|
-
onChange: e.onAuthModeChange
|
|
148
|
-
}, {
|
|
149
|
-
default: l(() => [
|
|
150
|
-
o(u, {
|
|
151
|
-
tab: "角色授权",
|
|
152
|
-
key: "role",
|
|
153
|
-
forceRender: ""
|
|
154
|
-
}, {
|
|
155
|
-
default: l(() => [
|
|
156
|
-
o(i, {
|
|
157
|
-
ref: "roleRef",
|
|
158
|
-
onSelect: e.onSelectRole
|
|
159
|
-
}, null, 8, ["onSelect"])
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}),
|
|
163
|
-
o(u, {
|
|
164
|
-
tab: "部门授权",
|
|
165
|
-
key: "depart",
|
|
166
|
-
forceRender: ""
|
|
167
|
-
}, {
|
|
168
|
-
default: l(() => [
|
|
169
|
-
o(f, {
|
|
170
|
-
ref: "departRef",
|
|
171
|
-
onSelect: e.onSelectDepart
|
|
172
|
-
}, null, 8, ["onSelect"])
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
}),
|
|
176
|
-
o(u, {
|
|
177
|
-
tab: "人员授权",
|
|
178
|
-
key: "user",
|
|
179
|
-
forceRender: ""
|
|
180
|
-
}, {
|
|
181
|
-
default: l(() => [
|
|
182
|
-
o(m, {
|
|
183
|
-
ref: "userRef",
|
|
184
|
-
onSelect: e.onSelectUser
|
|
185
|
-
}, null, 8, ["onSelect"])
|
|
186
|
-
]),
|
|
187
|
-
_: 1
|
|
188
|
-
})
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}, 8, ["activeKey", "onChange"])
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}),
|
|
195
|
-
o(h, { span: 1 }),
|
|
196
|
-
o(h, { span: 11 }, {
|
|
197
|
-
default: l(() => [
|
|
198
|
-
o(v, {
|
|
199
|
-
activeKey: e.activeKey,
|
|
200
|
-
"onUpdate:activeKey": t[1] || (t[1] = (g) => e.activeKey = g),
|
|
201
|
-
onChange: e.onAuthTypeChange
|
|
202
|
-
}, {
|
|
203
|
-
default: l(() => [
|
|
204
|
-
o(u, {
|
|
205
|
-
tab: "字段权限",
|
|
206
|
-
key: "field",
|
|
207
|
-
forceRender: ""
|
|
208
|
-
}, {
|
|
209
|
-
default: l(() => [
|
|
210
|
-
o(S, {
|
|
211
|
-
class: "authFieldTree",
|
|
212
|
-
ref: "fieldRef",
|
|
213
|
-
cgformId: e.cgformId
|
|
214
|
-
}, null, 8, ["cgformId"])
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}),
|
|
218
|
-
e.hasDataAuth ? (L(), H(J, { key: 0 }, [
|
|
219
|
-
o(u, {
|
|
220
|
-
tab: "按钮权限",
|
|
221
|
-
key: "button",
|
|
222
|
-
forceRender: ""
|
|
223
|
-
}, {
|
|
224
|
-
default: l(() => [
|
|
225
|
-
o(A, {
|
|
226
|
-
class: "authButtonTree",
|
|
227
|
-
ref: "buttonRef",
|
|
228
|
-
cgformId: e.cgformId
|
|
229
|
-
}, null, 8, ["cgformId"])
|
|
230
|
-
]),
|
|
231
|
-
_: 1
|
|
232
|
-
}),
|
|
233
|
-
o(u, {
|
|
234
|
-
tab: "数据权限",
|
|
235
|
-
key: "data",
|
|
236
|
-
forceRender: ""
|
|
237
|
-
}, {
|
|
238
|
-
default: l(() => [
|
|
239
|
-
o(T, {
|
|
240
|
-
class: "authDataTree",
|
|
241
|
-
ref: "dataRef",
|
|
242
|
-
cgformId: e.cgformId
|
|
243
|
-
}, null, 8, ["cgformId"])
|
|
244
|
-
]),
|
|
245
|
-
_: 1
|
|
246
|
-
})
|
|
247
|
-
], 64)) : Q("", !0)
|
|
248
|
-
]),
|
|
249
|
-
_: 1
|
|
250
|
-
}, 8, ["activeKey", "onChange"])
|
|
251
|
-
]),
|
|
252
|
-
_: 1
|
|
253
|
-
})
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
})
|
|
257
|
-
]),
|
|
258
|
-
_: 1
|
|
259
|
-
}, 8, ["spinning"])
|
|
260
|
-
]),
|
|
261
|
-
_: 1
|
|
262
|
-
}, 8, ["onCancel", "onRegister"]);
|
|
263
|
-
}
|
|
264
|
-
const ye = /* @__PURE__ */ Y(Z, [["render", x], ["__scopeId", "data-v-aee70da5"]]);
|
|
265
|
-
export {
|
|
266
|
-
ye as default
|
|
267
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "/@/components/Modal";
|
|
4
|
-
import "/@/components/Form/index";
|
|
5
|
-
import "/@/hooks/system/useJvxeMethods.ts";
|
|
6
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
7
|
-
import "/@/views/system/user/user.api";
|
|
8
|
-
import "/@/utils/http/axios";
|
|
9
|
-
import "/@/hooks/web/useMessage";
|
|
10
|
-
import "/@/store/modules/permission";
|
|
11
|
-
export {
|
|
12
|
-
o as default
|
|
13
|
-
};
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
var F = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
-
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var h = Object.getOwnPropertySymbols;
|
|
4
|
-
var R = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var _ = (e, t, l) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, C = (e, t) => {
|
|
6
|
-
for (var l in t || (t = {}))
|
|
7
|
-
R.call(t, l) && _(e, l, t[l]);
|
|
8
|
-
if (h)
|
|
9
|
-
for (var l of h(t))
|
|
10
|
-
A.call(t, l) && _(e, l, t[l]);
|
|
11
|
-
return e;
|
|
12
|
-
}, y = (e, t) => x(e, E(t));
|
|
13
|
-
import { defineComponent as B, ref as k, computed as N, resolveComponent as u, openBlock as D, createBlock as P, mergeProps as $, withCtx as s, createVNode as n, normalizeClass as w, withDirectives as H, createElementVNode as T, vShow as J } from "vue";
|
|
14
|
-
import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as S } from "./useTableSync-774c3774.mjs";
|
|
16
|
-
import { useMessage as I } from "/@/hooks/web/useMessage";
|
|
17
|
-
import { useJPrompt as M } from "/@/components/jeecg/JPrompt";
|
|
18
|
-
import { useDesign as O } from "/@/hooks/web/useDesign";
|
|
19
|
-
import { _ as q } from "./index-0e3ab3af.mjs";
|
|
20
|
-
import "./cgform.data-cbdd88c3.mjs";
|
|
21
|
-
import "/@/utils/dict";
|
|
22
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
23
|
-
import "/@/utils/uuid";
|
|
24
|
-
import "lodash-es";
|
|
25
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
26
|
-
import "vue-router";
|
|
27
|
-
const z = B({
|
|
28
|
-
name: "CheckDictTable",
|
|
29
|
-
components: {
|
|
30
|
-
VNodes: (e, { attrs: t }) => t.vnodes
|
|
31
|
-
},
|
|
32
|
-
setup() {
|
|
33
|
-
const { prefixCls: e } = O("cgform-check-dict-table"), { createMessage: t } = I(), l = k([
|
|
34
|
-
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
35
|
-
{ title: "字段备注", key: "dbFieldTxt", width: 100 },
|
|
36
|
-
{
|
|
37
|
-
title: "字段Href",
|
|
38
|
-
key: "fieldHref",
|
|
39
|
-
width: 130,
|
|
40
|
-
type: i.input,
|
|
41
|
-
defaultValue: ""
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: "验证规则",
|
|
45
|
-
key: "fieldValidType",
|
|
46
|
-
width: 170,
|
|
47
|
-
type: i.slot,
|
|
48
|
-
slotName: "fieldValidType",
|
|
49
|
-
allowInput: !0,
|
|
50
|
-
defaultValue: "",
|
|
51
|
-
placeholder: "空"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
title: "校验必填",
|
|
55
|
-
key: "fieldMustInput",
|
|
56
|
-
width: 80,
|
|
57
|
-
type: i.checkbox,
|
|
58
|
-
align: "center",
|
|
59
|
-
customValue: ["1", "0"],
|
|
60
|
-
defaultChecked: !1
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: "字典Table",
|
|
64
|
-
key: "dictTable",
|
|
65
|
-
width: 280,
|
|
66
|
-
type: i.textarea,
|
|
67
|
-
defaultValue: ""
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
title: "字典Code",
|
|
71
|
-
key: "dictField",
|
|
72
|
-
width: 280,
|
|
73
|
-
type: i.input,
|
|
74
|
-
defaultValue: ""
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
title: "字典Text",
|
|
78
|
-
key: "dictText",
|
|
79
|
-
width: 280,
|
|
80
|
-
type: i.input,
|
|
81
|
-
defaultValue: ""
|
|
82
|
-
}
|
|
83
|
-
]), g = S(l), m = k([
|
|
84
|
-
{ label: "空", value: "" },
|
|
85
|
-
{ label: "唯一校验", value: "only" },
|
|
86
|
-
{ label: "6到16位数字", value: "n6-16" },
|
|
87
|
-
{ label: "6到18位字母", value: "s6-18" },
|
|
88
|
-
{ label: "6到16位任意字符", value: "*6-16" },
|
|
89
|
-
{ label: "网址", value: "url" },
|
|
90
|
-
{ label: "电子邮件", value: "e" },
|
|
91
|
-
{ label: "手机号码", value: "m" },
|
|
92
|
-
{ label: "邮政编码", value: "p" },
|
|
93
|
-
{ label: "字母", value: "s" },
|
|
94
|
-
{ label: "数字", value: "n" },
|
|
95
|
-
{ label: "整数", value: "z" },
|
|
96
|
-
{ label: "非空", value: "*" },
|
|
97
|
-
{ label: "金额", value: "money" }
|
|
98
|
-
]), f = N(() => m.value.map((o) => o.value)), { createJPrompt: d } = M();
|
|
99
|
-
function r(o) {
|
|
100
|
-
return o != null && !f.value.includes(o);
|
|
101
|
-
}
|
|
102
|
-
function c(o) {
|
|
103
|
-
d({
|
|
104
|
-
title: "自定义正则表达式",
|
|
105
|
-
placeholder: "请输入正则表达式",
|
|
106
|
-
rules: [{ required: !0, message: "正则表达式不能为空!" }, { validator: p }],
|
|
107
|
-
onOk: (a) => {
|
|
108
|
-
o.triggerChange(a), t.success("添加成功");
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function v(o) {
|
|
113
|
-
d({
|
|
114
|
-
title: "修改自定义正则表达式",
|
|
115
|
-
defaultValue: o.value,
|
|
116
|
-
placeholder: "请输入正则表达式",
|
|
117
|
-
rules: [{ required: !0, message: "正则表达式不能为空!" }, { validator: p }],
|
|
118
|
-
onOk: (a) => {
|
|
119
|
-
o.triggerChange(a), a !== o.value && t.success("修改成功");
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function p(o, a) {
|
|
124
|
-
return r(a) ? Promise.resolve() : Promise.reject("当前校验已存在");
|
|
125
|
-
}
|
|
126
|
-
return y(C({}, g), {
|
|
127
|
-
prefixCls: e,
|
|
128
|
-
columns: l,
|
|
129
|
-
isCustomRegexp: r,
|
|
130
|
-
validTypeOptions: m,
|
|
131
|
-
validTypeValues: f,
|
|
132
|
-
onAddCustomRegexp: c,
|
|
133
|
-
onChangeCustomRegexp: v
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
const j = {
|
|
138
|
-
class: "custom-option-list rc-virtual-list-holder-inner",
|
|
139
|
-
style: { "border-top": "1px solid #dfdfdf" }
|
|
140
|
-
}, G = ["onClick"];
|
|
141
|
-
function K(e, t, l, g, m, f) {
|
|
142
|
-
const d = u("VNodes"), r = u("a-select"), c = u("a-col"), v = u("a-button"), p = u("a-row"), o = u("JVxeTable");
|
|
143
|
-
return D(), P(o, $({
|
|
144
|
-
ref: "tableRef",
|
|
145
|
-
rowNumber: "",
|
|
146
|
-
keyboardEdit: "",
|
|
147
|
-
class: [e.prefixCls],
|
|
148
|
-
maxHeight: e.tableHeight.noToolbar,
|
|
149
|
-
loading: e.loading,
|
|
150
|
-
columns: e.columns,
|
|
151
|
-
dataSource: e.dataSource,
|
|
152
|
-
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
153
|
-
}, e.tableProps), {
|
|
154
|
-
fieldValidType: s((a) => [
|
|
155
|
-
n(p, {
|
|
156
|
-
type: "flex",
|
|
157
|
-
class: w(["row-valid-type", { full: !e.isCustomRegexp(a.value) }])
|
|
158
|
-
}, {
|
|
159
|
-
default: s(() => [
|
|
160
|
-
n(c, {
|
|
161
|
-
class: w(["left"])
|
|
162
|
-
}, {
|
|
163
|
-
default: s(() => [
|
|
164
|
-
n(r, {
|
|
165
|
-
value: a.value,
|
|
166
|
-
options: e.validTypeOptions,
|
|
167
|
-
placeholder: "空",
|
|
168
|
-
style: { width: "100%" },
|
|
169
|
-
onChange: a.triggerChange
|
|
170
|
-
}, {
|
|
171
|
-
dropdownRender: s(({ menuNode: V }) => [
|
|
172
|
-
n(d, { vnodes: V }, null, 8, ["vnodes"]),
|
|
173
|
-
H(T("div", j, [
|
|
174
|
-
T("div", {
|
|
175
|
-
class: "ant-select-item ant-select-item-option",
|
|
176
|
-
title: "使用自定义正则表达式作为校验规则",
|
|
177
|
-
onClick: (b) => e.onAddCustomRegexp(a),
|
|
178
|
-
onMousedown: t[0] || (t[0] = (b) => b.preventDefault())
|
|
179
|
-
}, " 正则表达式 ", 40, G)
|
|
180
|
-
], 512), [
|
|
181
|
-
[J, !e.isCustomRegexp(a.value)]
|
|
182
|
-
])
|
|
183
|
-
]),
|
|
184
|
-
_: 2
|
|
185
|
-
}, 1032, ["value", "options", "onChange"])
|
|
186
|
-
]),
|
|
187
|
-
_: 2
|
|
188
|
-
}, 1024),
|
|
189
|
-
n(c, {
|
|
190
|
-
class: "right",
|
|
191
|
-
title: "修改自定义正则表达式"
|
|
192
|
-
}, {
|
|
193
|
-
default: s(() => [
|
|
194
|
-
n(v, {
|
|
195
|
-
preIcon: "ant-design:edit",
|
|
196
|
-
onClick: () => e.onChangeCustomRegexp(a)
|
|
197
|
-
}, null, 8, ["onClick"])
|
|
198
|
-
]),
|
|
199
|
-
_: 2
|
|
200
|
-
}, 1024)
|
|
201
|
-
]),
|
|
202
|
-
_: 2
|
|
203
|
-
}, 1032, ["class"])
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
}, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
|
|
207
|
-
}
|
|
208
|
-
const se = /* @__PURE__ */ q(z, [["render", K], ["__scopeId", "data-v-592747d8"]]);
|
|
209
|
-
export {
|
|
210
|
-
se as default
|
|
211
|
-
};
|