@jeecg/online 3.6.2-beta → 3.7.1-RC
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-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- 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/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- 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/JOnlineSearchSelect-c287af12.mjs +0 -95
- 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/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- 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
- package/useTableSync-774c3774.mjs +0 -87
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
var K = Object.defineProperty;
|
|
2
|
-
var I = Object.getOwnPropertySymbols;
|
|
3
|
-
var x = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var F = (e, o, t) => o in e ? K(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, R = (e, o) => {
|
|
5
|
-
for (var t in o || (o = {}))
|
|
6
|
-
x.call(o, t) && F(e, t, o[t]);
|
|
7
|
-
if (I)
|
|
8
|
-
for (var t of I(o))
|
|
9
|
-
J.call(o, t) && F(e, t, o[t]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
var _ = (e, o, t) => new Promise((C, f) => {
|
|
13
|
-
var b = (i) => {
|
|
14
|
-
try {
|
|
15
|
-
s(t.next(i));
|
|
16
|
-
} catch (u) {
|
|
17
|
-
f(u);
|
|
18
|
-
}
|
|
19
|
-
}, c = (i) => {
|
|
20
|
-
try {
|
|
21
|
-
s(t.throw(i));
|
|
22
|
-
} catch (u) {
|
|
23
|
-
f(u);
|
|
24
|
-
}
|
|
25
|
-
}, s = (i) => i.done ? C(i.value) : Promise.resolve(i.value).then(b, c);
|
|
26
|
-
s((t = t.apply(e, o)).next());
|
|
27
|
-
});
|
|
28
|
-
import { defineComponent as Q, ref as A, reactive as W, computed as X, nextTick as Y, resolveComponent as r, openBlock as M, createBlock as P, withCtx as l, createVNode as a, createTextVNode as B, createElementBlock as Z, createCommentVNode as S, normalizeProps as ee, guardReactiveProps as oe } from "vue";
|
|
29
|
-
import { u as te } from "./useOnlineTest-e4bd8be3.mjs";
|
|
30
|
-
import { useListPage as ne } from "/@/hooks/system/useListPage";
|
|
31
|
-
import { BasicTable as le, TableAction as ae } from "/@/components/Table";
|
|
32
|
-
import { BasicModal as ie, useModalInner as re, useModal as se } from "/@/components/Modal";
|
|
33
|
-
import { BasicForm as ce, useForm as ue } from "/@/components/Form";
|
|
34
|
-
import { defHttp as v } from "/@/utils/http/axios";
|
|
35
|
-
import { _ as de } from "./index-0e3ab3af.mjs";
|
|
36
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
|
-
import "/@/hooks/web/useMessage";
|
|
38
|
-
import "vue-router";
|
|
39
|
-
const me = (e, o) => v.get({ url: "/online/cgform/button/list/" + e, params: o });
|
|
40
|
-
function D(e) {
|
|
41
|
-
return v.delete(
|
|
42
|
-
{
|
|
43
|
-
url: "/online/cgform/button/deleteBatch",
|
|
44
|
-
params: {
|
|
45
|
-
ids: e.join(",")
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{ joinParamsToUrl: !0 }
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
const pe = (e, o) => o ? v.put({ url: "/online/cgform/button/edit", params: e }) : v.post({ url: "/online/cgform/button/add", params: e }), fe = [
|
|
52
|
-
{ title: "按钮编码", align: "center", dataIndex: "buttonCode" },
|
|
53
|
-
{ title: "按钮名称", align: "center", dataIndex: "buttonName" },
|
|
54
|
-
{
|
|
55
|
-
title: "按钮样式",
|
|
56
|
-
align: "center",
|
|
57
|
-
dataIndex: "buttonStyle",
|
|
58
|
-
customRender({ text: e, record: o }) {
|
|
59
|
-
if (e === "form") {
|
|
60
|
-
let t = o.optPosition;
|
|
61
|
-
return e + "(" + (t == "2" ? "底部" : "侧面") + ")";
|
|
62
|
-
} else
|
|
63
|
-
return e;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{ title: "按钮类型", align: "center", dataIndex: "optType" },
|
|
67
|
-
{ title: "排序", align: "center", dataIndex: "orderNum" },
|
|
68
|
-
{ title: "按钮图标", align: "center", dataIndex: "buttonIcon" },
|
|
69
|
-
{ title: "表达式", align: "center", dataIndex: "exp" },
|
|
70
|
-
{
|
|
71
|
-
title: "按钮状态",
|
|
72
|
-
align: "center",
|
|
73
|
-
dataIndex: "buttonStatus",
|
|
74
|
-
customRender({ text: e }) {
|
|
75
|
-
return e == 1 ? "激活" : "未激活";
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
], be = [
|
|
79
|
-
{
|
|
80
|
-
label: "按钮编码",
|
|
81
|
-
field: "buttonCode",
|
|
82
|
-
component: "Input",
|
|
83
|
-
required: !0
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
label: "按钮名称",
|
|
87
|
-
field: "buttonName",
|
|
88
|
-
component: "Input",
|
|
89
|
-
required: !0
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: "按钮样式",
|
|
93
|
-
field: "buttonStyle",
|
|
94
|
-
component: "Select",
|
|
95
|
-
componentProps: {
|
|
96
|
-
options: [
|
|
97
|
-
{ label: "Link", value: "link" },
|
|
98
|
-
{ label: "Button", value: "button" },
|
|
99
|
-
{ label: "Form", value: "form" }
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
defaultValue: "link"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: "按钮位置",
|
|
106
|
-
field: "optPosition",
|
|
107
|
-
component: "Select",
|
|
108
|
-
componentProps: {
|
|
109
|
-
options: [
|
|
110
|
-
{ label: "侧面", value: "1" },
|
|
111
|
-
{ label: "底部", value: "2" }
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
defaultValue: "2",
|
|
115
|
-
show: ({ model: e }) => e.buttonStyle === "form"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
label: "按钮类型",
|
|
119
|
-
field: "optType",
|
|
120
|
-
component: "Select",
|
|
121
|
-
componentProps: {
|
|
122
|
-
options: [
|
|
123
|
-
{ label: "Js", value: "js" },
|
|
124
|
-
{ label: "Action", value: "action" }
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
defaultValue: "js"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: "排序",
|
|
131
|
-
field: "orderNum",
|
|
132
|
-
component: "InputNumber",
|
|
133
|
-
componentProps: {
|
|
134
|
-
style: "width: 100%"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
label: "按钮图标",
|
|
139
|
-
field: "buttonIcon",
|
|
140
|
-
component: "Input",
|
|
141
|
-
helpMessage: "a-icon type"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
label: "表达式",
|
|
145
|
-
field: "exp",
|
|
146
|
-
component: "Input"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
label: "按钮状态",
|
|
150
|
-
field: "buttonStatus",
|
|
151
|
-
component: "RadioButtonGroup",
|
|
152
|
-
componentProps: {
|
|
153
|
-
options: [
|
|
154
|
-
{ label: "激活", value: "1" },
|
|
155
|
-
{ label: "未激活", value: "0" }
|
|
156
|
-
]
|
|
157
|
-
},
|
|
158
|
-
defaultValue: "1"
|
|
159
|
-
}
|
|
160
|
-
], ge = Q({
|
|
161
|
-
name: "CustomButtonList",
|
|
162
|
-
components: { BasicModal: ie, BasicTable: le, TableAction: ae, BasicForm: ce },
|
|
163
|
-
emits: ["register"],
|
|
164
|
-
setup() {
|
|
165
|
-
const e = A(""), { doRequest: o, doDeleteRecord: t, tableContext: C } = ne({
|
|
166
|
-
tableProps: {
|
|
167
|
-
api: (n) => me(e.value, n),
|
|
168
|
-
columns: fe,
|
|
169
|
-
canResize: !1,
|
|
170
|
-
useSearchForm: !1,
|
|
171
|
-
beforeFetch(n) {
|
|
172
|
-
return Object.assign(n, { column: "orderNum", order: "asc" });
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}), [f, { reload: b }, { rowSelection: c, selectedRowKeys: s }] = C, [i, { closeModal: u }] = re((n) => _(this, null, function* () {
|
|
176
|
-
e.value = n.row.id, b();
|
|
177
|
-
})), { aiTestMode: y, genButtons: w } = te(), [k, g] = se(), d = A(!1), m = W({
|
|
178
|
-
onRegister: k,
|
|
179
|
-
title: X(() => d != null && d.value ? "修改" : "新增"),
|
|
180
|
-
width: 800,
|
|
181
|
-
confirmLoading: !1,
|
|
182
|
-
onOk: q,
|
|
183
|
-
onCancel: g.closeModal
|
|
184
|
-
});
|
|
185
|
-
let p = {};
|
|
186
|
-
const [N, { resetFields: E, setFieldsValue: L, validate: V }] = ue({
|
|
187
|
-
schemas: be,
|
|
188
|
-
showActionButtonGroup: !1
|
|
189
|
-
});
|
|
190
|
-
function T(n) {
|
|
191
|
-
return _(this, null, function* () {
|
|
192
|
-
var h;
|
|
193
|
-
d.value = n.isUpdate, p = R({}, (h = n.record) != null ? h : {}), g.openModal(), yield Y(), yield E(), L(p);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
function j() {
|
|
197
|
-
T({ isUpdate: !1 });
|
|
198
|
-
}
|
|
199
|
-
function O(n) {
|
|
200
|
-
T({ isUpdate: !0, record: n });
|
|
201
|
-
}
|
|
202
|
-
function G() {
|
|
203
|
-
u();
|
|
204
|
-
}
|
|
205
|
-
function U() {
|
|
206
|
-
w(e.value);
|
|
207
|
-
}
|
|
208
|
-
function $() {
|
|
209
|
-
return _(this, null, function* () {
|
|
210
|
-
o(() => D(s.value));
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
function q() {
|
|
214
|
-
return _(this, null, function* () {
|
|
215
|
-
try {
|
|
216
|
-
m.confirmLoading = !0;
|
|
217
|
-
let n = yield V();
|
|
218
|
-
n = Object.assign({ cgformHeadId: e.value }, p, n), yield pe(n, d.value), b(), g.closeModal();
|
|
219
|
-
} finally {
|
|
220
|
-
m.confirmLoading = !1;
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
function z(n) {
|
|
225
|
-
return [
|
|
226
|
-
{
|
|
227
|
-
label: "编辑",
|
|
228
|
-
onClick: () => O(n)
|
|
229
|
-
}
|
|
230
|
-
];
|
|
231
|
-
}
|
|
232
|
-
function H(n) {
|
|
233
|
-
return [
|
|
234
|
-
{
|
|
235
|
-
label: "删除",
|
|
236
|
-
popConfirm: {
|
|
237
|
-
title: "确定删除吗?",
|
|
238
|
-
placement: "left",
|
|
239
|
-
confirm: () => t(() => D([n.id]))
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
];
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
onAdd: j,
|
|
246
|
-
onBatchDelete: $,
|
|
247
|
-
aiTestMode: y,
|
|
248
|
-
onGenButtons: U,
|
|
249
|
-
registerModal: i,
|
|
250
|
-
registerTable: f,
|
|
251
|
-
selectedRowKeys: s,
|
|
252
|
-
rowSelection: c,
|
|
253
|
-
onCancel: G,
|
|
254
|
-
getTableAction: z,
|
|
255
|
-
getDropDownAction: H,
|
|
256
|
-
registerForm: N,
|
|
257
|
-
formModalProps: m
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
}), _e = {
|
|
261
|
-
key: 0,
|
|
262
|
-
style: { float: "left" }
|
|
263
|
-
};
|
|
264
|
-
function Be(e, o, t, C, f, b) {
|
|
265
|
-
const c = r("a-button"), s = r("a-icon"), i = r("a-menu-item"), u = r("a-menu"), y = r("a-dropdown"), w = r("TableAction"), k = r("BasicTable"), g = r("BasicForm"), d = r("a-spin"), m = r("BasicModal");
|
|
266
|
-
return M(), P(m, {
|
|
267
|
-
onRegister: e.registerModal,
|
|
268
|
-
title: "自定义按钮",
|
|
269
|
-
width: 1200,
|
|
270
|
-
defaultFullscreen: "",
|
|
271
|
-
onCancel: e.onCancel
|
|
272
|
-
}, {
|
|
273
|
-
footer: l(() => [
|
|
274
|
-
a(c, { onClick: e.onCancel }, {
|
|
275
|
-
default: l(() => [
|
|
276
|
-
B("关闭")
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
}, 8, ["onClick"]),
|
|
280
|
-
e.aiTestMode ? (M(), Z("div", _e, [
|
|
281
|
-
a(c, { onClick: e.onGenButtons }, {
|
|
282
|
-
default: l(() => [
|
|
283
|
-
B("生成测试数据")
|
|
284
|
-
]),
|
|
285
|
-
_: 1
|
|
286
|
-
}, 8, ["onClick"])
|
|
287
|
-
])) : S("", !0)
|
|
288
|
-
]),
|
|
289
|
-
default: l(() => [
|
|
290
|
-
a(k, {
|
|
291
|
-
onRegister: e.registerTable,
|
|
292
|
-
rowSelection: e.rowSelection
|
|
293
|
-
}, {
|
|
294
|
-
tableTitle: l(() => [
|
|
295
|
-
a(c, {
|
|
296
|
-
onClick: e.onAdd,
|
|
297
|
-
type: "primary",
|
|
298
|
-
preIcon: "ant-design:plus"
|
|
299
|
-
}, {
|
|
300
|
-
default: l(() => [
|
|
301
|
-
B("新增")
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
}, 8, ["onClick"]),
|
|
305
|
-
e.selectedRowKeys.length > 0 ? (M(), P(y, { key: 0 }, {
|
|
306
|
-
overlay: l(() => [
|
|
307
|
-
a(u, null, {
|
|
308
|
-
default: l(() => [
|
|
309
|
-
a(i, {
|
|
310
|
-
key: "1",
|
|
311
|
-
onClick: e.onBatchDelete
|
|
312
|
-
}, {
|
|
313
|
-
default: l(() => [
|
|
314
|
-
a(s, { type: "delete" }),
|
|
315
|
-
B(" 删除 ")
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
}, 8, ["onClick"])
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
})
|
|
322
|
-
]),
|
|
323
|
-
default: l(() => [
|
|
324
|
-
a(c, { style: { "margin-left": "8px" } }, {
|
|
325
|
-
default: l(() => [
|
|
326
|
-
B(" 批量操作 "),
|
|
327
|
-
a(s, { type: "down" })
|
|
328
|
-
]),
|
|
329
|
-
_: 1
|
|
330
|
-
})
|
|
331
|
-
]),
|
|
332
|
-
_: 1
|
|
333
|
-
})) : S("", !0)
|
|
334
|
-
]),
|
|
335
|
-
action: l(({ record: p }) => [
|
|
336
|
-
a(w, {
|
|
337
|
-
actions: e.getTableAction(p),
|
|
338
|
-
dropDownActions: e.getDropDownAction(p)
|
|
339
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
340
|
-
]),
|
|
341
|
-
_: 1
|
|
342
|
-
}, 8, ["onRegister", "rowSelection"]),
|
|
343
|
-
a(m, ee(oe(e.formModalProps)), {
|
|
344
|
-
default: l(() => [
|
|
345
|
-
a(d, {
|
|
346
|
-
spinning: e.formModalProps.confirmLoading
|
|
347
|
-
}, {
|
|
348
|
-
default: l(() => [
|
|
349
|
-
a(g, { onRegister: e.registerForm }, null, 8, ["onRegister"])
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}, 8, ["spinning"])
|
|
353
|
-
]),
|
|
354
|
-
_: 1
|
|
355
|
-
}, 16)
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
}, 8, ["onRegister", "onCancel"]);
|
|
359
|
-
}
|
|
360
|
-
const Pe = /* @__PURE__ */ de(ge, [["render", Be]]);
|
|
361
|
-
export {
|
|
362
|
-
Pe as default
|
|
363
|
-
};
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, ref as i, resolveComponent as m, openBlock as k, createBlock as E, withCtx as l, createVNode as f, createTextVNode as g, createElementVNode as C } from "vue";
|
|
2
|
-
import { defHttp as v } from "/@/utils/http/axios";
|
|
3
|
-
import { BasicTable as R } from "/@/components/Table";
|
|
4
|
-
import { BasicModal as S, useModalInner as D } from "/@/components/Modal";
|
|
5
|
-
import { useListTable as I } from "/@/hooks/system/useListPage";
|
|
6
|
-
import { useMessage as N } from "/@/hooks/web/useMessage";
|
|
7
|
-
import { _ as $ } from "./index-0e3ab3af.mjs";
|
|
8
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
9
|
-
import "vue-router";
|
|
10
|
-
const A = F({
|
|
11
|
-
name: "TransDb2Online",
|
|
12
|
-
components: { BasicModal: S, BasicTable: R },
|
|
13
|
-
emits: ["success", "register"],
|
|
14
|
-
setup(e, { emit: h }) {
|
|
15
|
-
const { createMessage: p } = N(), t = i("暂无数据"), u = i(!1), r = i(!1), o = i([]), a = i([]), [c, { closeModal: d }] = D(() => {
|
|
16
|
-
r.value = !1, t.value = "暂无数据", s.value = [], b();
|
|
17
|
-
}), [T, { setPagination: w }, { rowSelection: _, selectedRowKeys: s }] = I({
|
|
18
|
-
bordered: !0,
|
|
19
|
-
columns: [{ title: "表名", align: "left", dataIndex: "id" }],
|
|
20
|
-
dataSource: a,
|
|
21
|
-
maxHeight: 300,
|
|
22
|
-
locale: { emptyText: t },
|
|
23
|
-
pagination: {
|
|
24
|
-
showQuickJumper: !1,
|
|
25
|
-
showSizeChanger: !1
|
|
26
|
-
},
|
|
27
|
-
clickToRowSelect: !0,
|
|
28
|
-
showIndexColumn: !0,
|
|
29
|
-
showActionColumn: !1,
|
|
30
|
-
formConfig: {
|
|
31
|
-
schemas: [
|
|
32
|
-
{
|
|
33
|
-
label: "表名",
|
|
34
|
-
field: "tableName",
|
|
35
|
-
component: "Input",
|
|
36
|
-
componentProps: {
|
|
37
|
-
style: { width: "100%" },
|
|
38
|
-
placeholder: "请输入表名以模糊筛选",
|
|
39
|
-
onChange: (n) => L(n.target.value)
|
|
40
|
-
},
|
|
41
|
-
disabledLabelWidth: !0,
|
|
42
|
-
itemProps: {
|
|
43
|
-
labelCol: { sm: 24, md: 4 },
|
|
44
|
-
wrapperCol: { sm: 24, md: 20 }
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
baseColProps: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
|
|
49
|
-
showActionButtonGroup: !1
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
function b() {
|
|
53
|
-
return u.value = !0, v.get(
|
|
54
|
-
{
|
|
55
|
-
url: "/online/cgform/head/queryTables/"
|
|
56
|
-
/* query */
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
errorMessageMode: "none"
|
|
60
|
-
}
|
|
61
|
-
).then(
|
|
62
|
-
(n) => (a.value = n, o.value = [...n], n),
|
|
63
|
-
(n) => {
|
|
64
|
-
n.message == "noadminauth" && (t.value = "非admin用户无权限操作!", p.warn(t.value)), a.value = [], o.value = [];
|
|
65
|
-
}
|
|
66
|
-
).finally(() => {
|
|
67
|
-
u.value = !1;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function L(n) {
|
|
71
|
-
o.value.length !== 0 && (n ? (a.value = o.value.filter((y) => y.id.toLowerCase().includes(n.toLowerCase())), t.value = a.value.length === 0 ? "无筛选结果" : "暂无数据") : a.value = [...o.value], w({ current: 1 }));
|
|
72
|
-
}
|
|
73
|
-
function M() {
|
|
74
|
-
d();
|
|
75
|
-
}
|
|
76
|
-
function B() {
|
|
77
|
-
if (!s.value || s.value.length == 0) {
|
|
78
|
-
p.warning("请选择一张表");
|
|
79
|
-
return;
|
|
80
|
-
} else {
|
|
81
|
-
r.value = !0;
|
|
82
|
-
let n = s.value.join(",");
|
|
83
|
-
v.post({ url: "/online/cgform/head/transTables/" + n }).then(() => {
|
|
84
|
-
d(), h("success");
|
|
85
|
-
}).finally(() => r.value = !1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
emptyText: t,
|
|
90
|
-
confirmLoading: u,
|
|
91
|
-
btnLoading: r,
|
|
92
|
-
metaSource: o,
|
|
93
|
-
handleTrans: B,
|
|
94
|
-
handleCancel: M,
|
|
95
|
-
queryTables: b,
|
|
96
|
-
registerModal: c,
|
|
97
|
-
registerTable: T,
|
|
98
|
-
rowSelection: _,
|
|
99
|
-
selectedRowKeys: s
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}), P = /* @__PURE__ */ C("div", null, [
|
|
103
|
-
/* @__PURE__ */ g(" 注:导入表会排除配置前缀表 "),
|
|
104
|
-
/* @__PURE__ */ C("a", {
|
|
105
|
-
href: "http://doc.jeecg.com/2043924",
|
|
106
|
-
target: "_blank"
|
|
107
|
-
}, " 参考文档")
|
|
108
|
-
], -1);
|
|
109
|
-
function q(e, h, p, t, u, r) {
|
|
110
|
-
const o = m("BasicTable"), a = m("a-spin"), c = m("a-button"), d = m("BasicModal");
|
|
111
|
-
return k(), E(d, {
|
|
112
|
-
onRegister: e.registerModal,
|
|
113
|
-
width: 500,
|
|
114
|
-
title: "从数据库导入表单",
|
|
115
|
-
confirmLoading: e.confirmLoading,
|
|
116
|
-
onCancel: e.handleCancel
|
|
117
|
-
}, {
|
|
118
|
-
footer: l(() => [
|
|
119
|
-
f(c, { onClick: e.handleCancel }, {
|
|
120
|
-
default: l(() => [
|
|
121
|
-
g("关闭")
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["onClick"]),
|
|
125
|
-
f(c, {
|
|
126
|
-
onClick: e.handleTrans,
|
|
127
|
-
type: "primary",
|
|
128
|
-
preIcon: "ant-design:swap",
|
|
129
|
-
loading: e.confirmLoading || e.btnLoading
|
|
130
|
-
}, {
|
|
131
|
-
default: l(() => [
|
|
132
|
-
g(" 生成表单 ")
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["onClick", "loading"])
|
|
136
|
-
]),
|
|
137
|
-
default: l(() => [
|
|
138
|
-
f(a, { spinning: e.confirmLoading }, {
|
|
139
|
-
default: l(() => [
|
|
140
|
-
f(o, {
|
|
141
|
-
onRegister: e.registerTable,
|
|
142
|
-
rowSelection: e.rowSelection,
|
|
143
|
-
onTableRedo: e.queryTables
|
|
144
|
-
}, {
|
|
145
|
-
tableTitle: l(() => [
|
|
146
|
-
P
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["onRegister", "rowSelection", "onTableRedo"])
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["spinning"])
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
156
|
-
}
|
|
157
|
-
const Q = /* @__PURE__ */ $(A, [["render", q]]);
|
|
158
|
-
export {
|
|
159
|
-
Q as default
|
|
160
|
-
};
|