@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,311 @@
|
|
|
1
|
+
var w = (e, l, c) => new Promise((y, g) => {
|
|
2
|
+
var a = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
u(c.next(t));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
g(n);
|
|
7
|
+
}
|
|
8
|
+
}, r = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
u(c.throw(t));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
g(n);
|
|
13
|
+
}
|
|
14
|
+
}, u = (t) => t.done ? y(t.value) : Promise.resolve(t.value).then(a, r);
|
|
15
|
+
u((c = c.apply(e, l)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as I, ref as m, reactive as H, resolveComponent as v, openBlock as E, createBlock as T, withCtx as i, createVNode as f, createTextVNode as J, createCommentVNode as k } from "vue";
|
|
18
|
+
import { BasicModal as q, useModalInner as G, useModal as z } from "/@/components/Modal";
|
|
19
|
+
import { JCodeEditor as L } from "/@/components/Form";
|
|
20
|
+
import { u as Q } from "./useOnlineTest-e4bd8be3.mjs";
|
|
21
|
+
import { E as X, u as Y } from "./EnhanceJsHistory-7f5db3b1.mjs";
|
|
22
|
+
import { g as Z, s as x } from "./enhance.api-138e6826.mjs";
|
|
23
|
+
import { useMessage as ee } from "/@/hooks/web/useMessage";
|
|
24
|
+
import { _ as oe } from "./index-b70302f2.mjs";
|
|
25
|
+
import "/@/utils/dateUtil";
|
|
26
|
+
import "/@/store";
|
|
27
|
+
import "pinia";
|
|
28
|
+
import "/@/utils/cache";
|
|
29
|
+
import "/@/utils/http/axios";
|
|
30
|
+
import "/@/utils/is";
|
|
31
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
32
|
+
import "vue-router";
|
|
33
|
+
const R = {
|
|
34
|
+
list: [
|
|
35
|
+
//------ 列表api -------
|
|
36
|
+
// 属性
|
|
37
|
+
".acceptHrefParams",
|
|
38
|
+
".currentPage",
|
|
39
|
+
".currentTableName",
|
|
40
|
+
".currentTableName",
|
|
41
|
+
".description",
|
|
42
|
+
".hasChildrenField",
|
|
43
|
+
".ID",
|
|
44
|
+
".pageSize",
|
|
45
|
+
".queryParam",
|
|
46
|
+
".selectedRowKeys",
|
|
47
|
+
".selectedRows",
|
|
48
|
+
".sortField",
|
|
49
|
+
".sortType",
|
|
50
|
+
".total",
|
|
51
|
+
// 方法
|
|
52
|
+
".loadData()",
|
|
53
|
+
".clearSelectedRow()",
|
|
54
|
+
".getLoadDataParams()",
|
|
55
|
+
".isTree()",
|
|
56
|
+
// 事件(前置)
|
|
57
|
+
"beforeEdit(row){ }",
|
|
58
|
+
"beforeDelete(row){ }",
|
|
59
|
+
"console.log()"
|
|
60
|
+
],
|
|
61
|
+
form: [
|
|
62
|
+
//------ 表单api -------
|
|
63
|
+
// 属性
|
|
64
|
+
".loading",
|
|
65
|
+
".isUpdate",
|
|
66
|
+
".onlineFormRef",
|
|
67
|
+
".refMap",
|
|
68
|
+
".subActiveKey",
|
|
69
|
+
".sh",
|
|
70
|
+
".submitFlowFlag",
|
|
71
|
+
".subFormHeight",
|
|
72
|
+
".subTableHeight",
|
|
73
|
+
".tableName",
|
|
74
|
+
".$nextTick",
|
|
75
|
+
// 方法
|
|
76
|
+
".addSubRows(tableName, rows)",
|
|
77
|
+
".changeOptions(field, options)",
|
|
78
|
+
".clearSubRows(tableName)",
|
|
79
|
+
".clearThenAddRows(tableName, rows)",
|
|
80
|
+
".getFieldsValue()",
|
|
81
|
+
".getSubTableInstance(tableName)",
|
|
82
|
+
".setFieldsValue(row)",
|
|
83
|
+
".triggleChangeValues(values,id,target)",
|
|
84
|
+
".triggleChangeValue(field, value)",
|
|
85
|
+
".onlineFormValueChange(field, value, otherValus)",
|
|
86
|
+
// 提交前置事件
|
|
87
|
+
"beforeSubmit(row){ }",
|
|
88
|
+
// 表单加载事件
|
|
89
|
+
"loaded(){ }",
|
|
90
|
+
// 单表#表单值改变事件
|
|
91
|
+
"onlChange(){ }",
|
|
92
|
+
// 子表#表单值改变事件
|
|
93
|
+
"子表名_onlChange(){ }",
|
|
94
|
+
// js增强实现下拉联动
|
|
95
|
+
".changeOptions()",
|
|
96
|
+
// JS增强 触发弹窗
|
|
97
|
+
// JS增强 http请求
|
|
98
|
+
"getAction(url, param)",
|
|
99
|
+
"postAction(url, param)",
|
|
100
|
+
"putAction(url, param)",
|
|
101
|
+
"deleteAction(url, param)",
|
|
102
|
+
"console.log()"
|
|
103
|
+
],
|
|
104
|
+
common: [
|
|
105
|
+
"this",
|
|
106
|
+
".openCustomModal(title,width,row,formComponent,requestUrl,hide,show)"
|
|
107
|
+
]
|
|
108
|
+
}, ae = I({
|
|
109
|
+
name: "EnhanceJs",
|
|
110
|
+
components: { BasicModal: q, JCodeEditor: L, EnhanceJsHistory: X },
|
|
111
|
+
emits: ["register"],
|
|
112
|
+
setup() {
|
|
113
|
+
const { createMessage: e } = ee(), l = Y(), c = m(), y = m(), g = H({ form: {}, list: {} }), a = m("list"), r = m(""), u = m(!1), t = m(!1), n = m(""), d = H({ form: "", list: "" }), p = { form: !1, list: !1 }, b = m(!1), h = [...R.list, ...R.common], B = [...R.form, ...R.common], [D, { closeModal: N }] = G((o) => w(this, null, function* () {
|
|
114
|
+
U(o.row);
|
|
115
|
+
})), [_, K] = z(), { aiTestMode: A, genEnhanceJsData: M } = Q();
|
|
116
|
+
function U(o) {
|
|
117
|
+
r.value = o.id, t.value = !1, n.value = o.tableName;
|
|
118
|
+
let s = l.getEnhanceJs(r.value);
|
|
119
|
+
(s == null ? void 0 : s.length) > 0 ? (a.value = s[s.length - 1].type, u.value = !0) : u.value = !1, p.form = !1, p.list = !1, a.value ? S(a.value) : S("form"), b.value = !0, setTimeout(() => b.value = !1, 150);
|
|
120
|
+
}
|
|
121
|
+
function $() {
|
|
122
|
+
return w(this, null, function* () {
|
|
123
|
+
yield Promise.all([V("form"), V("list")]), N(), e.success("保存成功");
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function V(o) {
|
|
127
|
+
return w(this, null, function* () {
|
|
128
|
+
let s = g[o], C = {
|
|
129
|
+
cgJs: d[o],
|
|
130
|
+
cgJsType: o
|
|
131
|
+
};
|
|
132
|
+
if (!p[o] || s.cgJs === C.cgJs)
|
|
133
|
+
return;
|
|
134
|
+
let F = !!s.id;
|
|
135
|
+
F && (C = Object.assign({}, s, C)), yield x(r.value, C, F), l.addEnhanceJs({
|
|
136
|
+
code: r.value,
|
|
137
|
+
str: C.cgJs,
|
|
138
|
+
type: C.cgJsType,
|
|
139
|
+
date: (/* @__PURE__ */ new Date()).getTime()
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function O() {
|
|
144
|
+
N();
|
|
145
|
+
}
|
|
146
|
+
function S(o) {
|
|
147
|
+
return w(this, null, function* () {
|
|
148
|
+
a.value = o;
|
|
149
|
+
try {
|
|
150
|
+
if (!p[o]) {
|
|
151
|
+
let s = yield Z(r.value, o);
|
|
152
|
+
Object.assign(g[o], { id: null }, s), d[o] = g[o].cgJs, p[o] = !0;
|
|
153
|
+
}
|
|
154
|
+
} catch (s) {
|
|
155
|
+
}
|
|
156
|
+
setTimeout(() => {
|
|
157
|
+
o == "list" ? y.value.refresh() : c.value.refresh();
|
|
158
|
+
}, 150);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function P() {
|
|
162
|
+
K.openModal(!0, {
|
|
163
|
+
code: r.value,
|
|
164
|
+
type: a.value
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function j(o) {
|
|
168
|
+
d[a.value] != o && (t.value = !0, d[a.value] = o);
|
|
169
|
+
}
|
|
170
|
+
function W() {
|
|
171
|
+
a.value === "form" ? M(n.value, a.value, c.value) : M(n.value, a.value, y.value);
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
formEditorRef: c,
|
|
175
|
+
listEditorRef: y,
|
|
176
|
+
reloading: b,
|
|
177
|
+
enhanceValues: d,
|
|
178
|
+
enhanceType: a,
|
|
179
|
+
showHistory: u,
|
|
180
|
+
aiTestMode: A,
|
|
181
|
+
tableName: n,
|
|
182
|
+
genEnhanceJsData: M,
|
|
183
|
+
onGenTestData: W,
|
|
184
|
+
onChangeType: S,
|
|
185
|
+
onCodeChange: j,
|
|
186
|
+
onShowHistory: P,
|
|
187
|
+
onSubmit: $,
|
|
188
|
+
onCancel: O,
|
|
189
|
+
registerModal: D,
|
|
190
|
+
registerEnhanceJsHistory: _,
|
|
191
|
+
listKeyWords: h,
|
|
192
|
+
formKeyWords: B
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
function ne(e, l, c, y, g, a) {
|
|
197
|
+
const r = v("JCodeEditor"), u = v("a-tab-pane"), t = v("a-tabs"), n = v("a-button"), d = v("a-space"), p = v("EnhanceJsHistory"), b = v("BasicModal");
|
|
198
|
+
return E(), T(b, {
|
|
199
|
+
onRegister: e.registerModal,
|
|
200
|
+
title: "JS增强",
|
|
201
|
+
width: 800,
|
|
202
|
+
bodyStyle: { height: "360px" }
|
|
203
|
+
}, {
|
|
204
|
+
footer: i(() => [
|
|
205
|
+
f(d, null, {
|
|
206
|
+
default: i(() => [
|
|
207
|
+
f(n, { onClick: e.onCancel }, {
|
|
208
|
+
default: i(() => [
|
|
209
|
+
J("关闭")
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["onClick"]),
|
|
213
|
+
f(n, {
|
|
214
|
+
type: "primary",
|
|
215
|
+
onClick: e.onSubmit
|
|
216
|
+
}, {
|
|
217
|
+
default: i(() => [
|
|
218
|
+
J("确定")
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["onClick"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
f(d, { style: { float: "left" } }, {
|
|
226
|
+
default: i(() => [
|
|
227
|
+
e.showHistory ? (E(), T(n, {
|
|
228
|
+
key: 0,
|
|
229
|
+
onClick: e.onShowHistory
|
|
230
|
+
}, {
|
|
231
|
+
default: i(() => [
|
|
232
|
+
J("查看历史版本")
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 8, ["onClick"])) : k("", !0),
|
|
236
|
+
e.aiTestMode ? (E(), T(n, {
|
|
237
|
+
key: 1,
|
|
238
|
+
onClick: e.onGenTestData
|
|
239
|
+
}, {
|
|
240
|
+
default: i(() => [
|
|
241
|
+
J("生成测试数据")
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["onClick"])) : k("", !0)
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
})
|
|
248
|
+
]),
|
|
249
|
+
default: i(() => [
|
|
250
|
+
f(t, {
|
|
251
|
+
activeKey: e.enhanceType,
|
|
252
|
+
"onUpdate:activeKey": l[2] || (l[2] = (h) => e.enhanceType = h),
|
|
253
|
+
onChange: e.onChangeType
|
|
254
|
+
}, {
|
|
255
|
+
default: i(() => [
|
|
256
|
+
f(u, {
|
|
257
|
+
tab: "form",
|
|
258
|
+
key: "form",
|
|
259
|
+
forceRender: ""
|
|
260
|
+
}, {
|
|
261
|
+
default: i(() => [
|
|
262
|
+
!e.reloading && e.enhanceType === "form" ? (E(), T(r, {
|
|
263
|
+
key: 0,
|
|
264
|
+
ref: "formEditorRef",
|
|
265
|
+
value: e.enhanceValues.form,
|
|
266
|
+
"onUpdate:value": l[0] || (l[0] = (h) => e.enhanceValues.form = h),
|
|
267
|
+
language: "javascript",
|
|
268
|
+
fullScreen: !0,
|
|
269
|
+
lineNumbers: !1,
|
|
270
|
+
height: "240px",
|
|
271
|
+
"language-change": !1,
|
|
272
|
+
onChange: e.onCodeChange,
|
|
273
|
+
keywords: e.formKeyWords
|
|
274
|
+
}, null, 8, ["value", "onChange", "keywords"])) : k("", !0)
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}),
|
|
278
|
+
f(u, {
|
|
279
|
+
tab: "list",
|
|
280
|
+
key: "list",
|
|
281
|
+
forceRender: ""
|
|
282
|
+
}, {
|
|
283
|
+
default: i(() => [
|
|
284
|
+
!e.reloading && e.enhanceType === "list" ? (E(), T(r, {
|
|
285
|
+
key: 0,
|
|
286
|
+
ref: "listEditorRef",
|
|
287
|
+
value: e.enhanceValues.list,
|
|
288
|
+
"onUpdate:value": l[1] || (l[1] = (h) => e.enhanceValues.list = h),
|
|
289
|
+
language: "javascript",
|
|
290
|
+
fullScreen: !0,
|
|
291
|
+
lineNumbers: !1,
|
|
292
|
+
height: "240px",
|
|
293
|
+
"language-change": !1,
|
|
294
|
+
onChange: e.onCodeChange,
|
|
295
|
+
keywords: e.listKeyWords
|
|
296
|
+
}, null, 8, ["value", "onChange", "keywords"])) : k("", !0)
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
})
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["activeKey", "onChange"]),
|
|
303
|
+
f(p, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["onRegister"]);
|
|
307
|
+
}
|
|
308
|
+
const we = /* @__PURE__ */ oe(ae, [["render", ne]]);
|
|
309
|
+
export {
|
|
310
|
+
we as default
|
|
311
|
+
};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
var X = Object.defineProperty;
|
|
2
|
+
var E = Object.getOwnPropertySymbols;
|
|
3
|
+
var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var R = (e, t, o) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, A = (e, t) => {
|
|
5
|
+
for (var o in t || (t = {}))
|
|
6
|
+
Y.call(t, o) && R(e, o, t[o]);
|
|
7
|
+
if (E)
|
|
8
|
+
for (var o of E(t))
|
|
9
|
+
Z.call(t, o) && R(e, o, t[o]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
var d = (e, t, o) => new Promise((g, p) => {
|
|
13
|
+
var b = (i) => {
|
|
14
|
+
try {
|
|
15
|
+
c(o.next(i));
|
|
16
|
+
} catch (u) {
|
|
17
|
+
p(u);
|
|
18
|
+
}
|
|
19
|
+
}, s = (i) => {
|
|
20
|
+
try {
|
|
21
|
+
c(o.throw(i));
|
|
22
|
+
} catch (u) {
|
|
23
|
+
p(u);
|
|
24
|
+
}
|
|
25
|
+
}, c = (i) => i.done ? g(i.value) : Promise.resolve(i.value).then(b, s);
|
|
26
|
+
c((o = o.apply(e, t)).next());
|
|
27
|
+
});
|
|
28
|
+
import { defineComponent as x, ref as y, reactive as ee, computed as oe, nextTick as ne, resolveComponent as r, openBlock as D, createBlock as q, withCtx as a, createVNode as l, createTextVNode as _, createElementBlock as te, createCommentVNode as L, normalizeProps as ae, guardReactiveProps as le } from "vue";
|
|
29
|
+
import { BasicModal as ie, useModalInner as re, useModal as se } from "/@/components/Modal";
|
|
30
|
+
import { BasicForm as ce, useForm as ue } from "/@/components/Form";
|
|
31
|
+
import { BasicTable as me, TableAction as de } from "/@/components/Table";
|
|
32
|
+
import { useListPage as pe } from "/@/hooks/system/useListPage";
|
|
33
|
+
import { u as fe } from "./useOnlineTest-e4bd8be3.mjs";
|
|
34
|
+
import { b as _e, c as ge } from "./enhance.data-efc7e155.mjs";
|
|
35
|
+
import { c as be, e as he, f as P } from "./enhance.api-138e6826.mjs";
|
|
36
|
+
import { _ as Ce } from "./index-b70302f2.mjs";
|
|
37
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
38
|
+
import "/@/utils/dict";
|
|
39
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
40
|
+
import "/@/utils/uuid";
|
|
41
|
+
import "/@/utils/http/axios";
|
|
42
|
+
import "/@/utils/is";
|
|
43
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
44
|
+
import "/@/hooks/web/useMessage";
|
|
45
|
+
import "vue-router";
|
|
46
|
+
const we = x({
|
|
47
|
+
name: "EnhanceSqlModal",
|
|
48
|
+
components: { BasicModal: ie, BasicTable: me, BasicForm: ce, TableAction: de },
|
|
49
|
+
emits: ["register"],
|
|
50
|
+
setup() {
|
|
51
|
+
const e = y(""), t = y(""), o = y([]), { columns: g } = ge(o), { doRequest: p, doDeleteRecord: b, tableContext: s } = pe({
|
|
52
|
+
tableProps: {
|
|
53
|
+
api: (n) => d(this, null, function* () {
|
|
54
|
+
let { dataSource: w, btnList: J } = yield be(e.value, n);
|
|
55
|
+
return o.value = J, w;
|
|
56
|
+
}),
|
|
57
|
+
columns: g,
|
|
58
|
+
canResize: !1,
|
|
59
|
+
useSearchForm: !1,
|
|
60
|
+
beforeFetch(n) {
|
|
61
|
+
return Object.assign(n, { column: "orderNum", order: "asc" });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}), [c, { reload: i }, { rowSelection: u, selectedRowKeys: h }] = s, [v, { closeModal: M }] = re((n) => d(this, null, function* () {
|
|
65
|
+
e.value = n.row.id, t.value = n.row.tableName, i();
|
|
66
|
+
})), { aiTestMode: S, genEnhanceSqlData: B } = fe(), [C, m] = se(), f = y(!1), F = ee({
|
|
67
|
+
onRegister: C,
|
|
68
|
+
title: oe(() => f != null && f.value ? "修改" : "新增"),
|
|
69
|
+
width: 800,
|
|
70
|
+
confirmLoading: !1,
|
|
71
|
+
onOk: H,
|
|
72
|
+
onCancel: m.closeModal
|
|
73
|
+
});
|
|
74
|
+
let k = {};
|
|
75
|
+
const { formSchemas: N } = _e(o), [$, { resetFields: O, setFieldsValue: V, validate: G }] = ue({
|
|
76
|
+
schemas: N,
|
|
77
|
+
showActionButtonGroup: !1,
|
|
78
|
+
// update-begin--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
|
|
79
|
+
labelWidth: 80,
|
|
80
|
+
labelCol: null,
|
|
81
|
+
wrapperCol: null
|
|
82
|
+
// update-end--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
|
|
83
|
+
});
|
|
84
|
+
function I() {
|
|
85
|
+
M();
|
|
86
|
+
}
|
|
87
|
+
function T(n) {
|
|
88
|
+
return d(this, null, function* () {
|
|
89
|
+
var w;
|
|
90
|
+
f.value = n.isUpdate, k = A({}, (w = n.record) != null ? w : {}), m.openModal(), yield ne(), yield O(), V(k);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function j() {
|
|
94
|
+
T({ isUpdate: !1 });
|
|
95
|
+
}
|
|
96
|
+
function z(n) {
|
|
97
|
+
T({ isUpdate: !0, record: n });
|
|
98
|
+
}
|
|
99
|
+
function K() {
|
|
100
|
+
B(e.value, t.value);
|
|
101
|
+
}
|
|
102
|
+
function U() {
|
|
103
|
+
return d(this, null, function* () {
|
|
104
|
+
p(() => P(h.value));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function H() {
|
|
108
|
+
return d(this, null, function* () {
|
|
109
|
+
try {
|
|
110
|
+
F.confirmLoading = !0;
|
|
111
|
+
let n = yield G();
|
|
112
|
+
n = Object.assign({}, k, n), yield he(e.value, n, f.value), i(), m.closeModal();
|
|
113
|
+
} finally {
|
|
114
|
+
F.confirmLoading = !1;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function Q(n) {
|
|
119
|
+
return [
|
|
120
|
+
{
|
|
121
|
+
label: "编辑",
|
|
122
|
+
onClick: () => z(n)
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
function W(n) {
|
|
127
|
+
return [
|
|
128
|
+
{
|
|
129
|
+
label: "删除",
|
|
130
|
+
popConfirm: {
|
|
131
|
+
title: "确定删除吗?",
|
|
132
|
+
placement: "left",
|
|
133
|
+
confirm: () => b(() => P([n.id]))
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
rowSelection: u,
|
|
140
|
+
selectedRowKeys: h,
|
|
141
|
+
aiTestMode: S,
|
|
142
|
+
onCancel: I,
|
|
143
|
+
onAdd: j,
|
|
144
|
+
onGenEnhanceSqlData: K,
|
|
145
|
+
onBatchDelete: U,
|
|
146
|
+
getTableAction: Q,
|
|
147
|
+
getDropDownAction: W,
|
|
148
|
+
formModalProps: F,
|
|
149
|
+
registerModal: v,
|
|
150
|
+
registerTable: c,
|
|
151
|
+
registerForm: $
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
computed: {
|
|
155
|
+
tableScroll() {
|
|
156
|
+
return {
|
|
157
|
+
y: window.innerHeight - 320
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
const ye = {
|
|
163
|
+
key: 0,
|
|
164
|
+
style: { float: "left" }
|
|
165
|
+
};
|
|
166
|
+
function ve(e, t, o, g, p, b) {
|
|
167
|
+
const s = r("a-button"), c = r("a-icon"), i = r("a-menu-item"), u = r("a-menu"), h = r("a-dropdown"), v = r("TableAction"), M = r("BasicTable"), S = r("BasicForm"), B = r("a-spin"), C = r("BasicModal");
|
|
168
|
+
return D(), q(C, {
|
|
169
|
+
onRegister: e.registerModal,
|
|
170
|
+
title: "SQL增强",
|
|
171
|
+
width: 1200,
|
|
172
|
+
defaultFullscreen: "",
|
|
173
|
+
onCancel: e.onCancel
|
|
174
|
+
}, {
|
|
175
|
+
footer: a(() => [
|
|
176
|
+
l(s, { onClick: e.onCancel }, {
|
|
177
|
+
default: a(() => [
|
|
178
|
+
_("关闭")
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["onClick"]),
|
|
182
|
+
e.aiTestMode ? (D(), te("div", ye, [
|
|
183
|
+
l(s, { onClick: e.onGenEnhanceSqlData }, {
|
|
184
|
+
default: a(() => [
|
|
185
|
+
_("生成测试数据")
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["onClick"])
|
|
189
|
+
])) : L("", !0)
|
|
190
|
+
]),
|
|
191
|
+
default: a(() => [
|
|
192
|
+
l(M, {
|
|
193
|
+
onRegister: e.registerTable,
|
|
194
|
+
rowSelection: e.rowSelection
|
|
195
|
+
}, {
|
|
196
|
+
tableTitle: a(() => [
|
|
197
|
+
l(s, {
|
|
198
|
+
onClick: e.onAdd,
|
|
199
|
+
type: "primary",
|
|
200
|
+
preIcon: "ant-design:plus"
|
|
201
|
+
}, {
|
|
202
|
+
default: a(() => [
|
|
203
|
+
_("新增")
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["onClick"]),
|
|
207
|
+
e.selectedRowKeys.length > 0 ? (D(), q(h, { key: 0 }, {
|
|
208
|
+
overlay: a(() => [
|
|
209
|
+
l(u, null, {
|
|
210
|
+
default: a(() => [
|
|
211
|
+
l(i, {
|
|
212
|
+
key: "1",
|
|
213
|
+
onClick: e.onBatchDelete
|
|
214
|
+
}, {
|
|
215
|
+
default: a(() => [
|
|
216
|
+
l(c, { type: "delete" }),
|
|
217
|
+
_(" 删除 ")
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["onClick"])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
})
|
|
224
|
+
]),
|
|
225
|
+
default: a(() => [
|
|
226
|
+
l(s, { style: { "margin-left": "8px" } }, {
|
|
227
|
+
default: a(() => [
|
|
228
|
+
_(" 批量操作 "),
|
|
229
|
+
l(c, { type: "down" })
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
})
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
})) : L("", !0)
|
|
236
|
+
]),
|
|
237
|
+
action: a(({ record: m }) => [
|
|
238
|
+
l(v, {
|
|
239
|
+
actions: e.getTableAction(m),
|
|
240
|
+
dropDownActions: e.getDropDownAction(m)
|
|
241
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["onRegister", "rowSelection"]),
|
|
245
|
+
l(C, ae(le(e.formModalProps)), {
|
|
246
|
+
default: a(() => [
|
|
247
|
+
l(B, {
|
|
248
|
+
spinning: e.formModalProps.confirmLoading
|
|
249
|
+
}, {
|
|
250
|
+
default: a(() => [
|
|
251
|
+
l(S, {
|
|
252
|
+
class: "popupForm",
|
|
253
|
+
onRegister: e.registerForm
|
|
254
|
+
}, null, 8, ["onRegister"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["spinning"])
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 16)
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}, 8, ["onRegister", "onCancel"]);
|
|
264
|
+
}
|
|
265
|
+
const je = /* @__PURE__ */ Ce(we, [["render", ve], ["__scopeId", "data-v-0a46f791"]]);
|
|
266
|
+
export {
|
|
267
|
+
je as default
|
|
268
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
var d = (o, m, e) => new Promise((c, s) => {
|
|
2
|
+
var p = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
i(e.next(r));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
s(l);
|
|
7
|
+
}
|
|
8
|
+
}, t = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
i(e.throw(r));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
s(l);
|
|
13
|
+
}
|
|
14
|
+
}, i = (r) => r.done ? c(r.value) : Promise.resolve(r.value).then(p, t);
|
|
15
|
+
i((e = e.apply(o, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as k, nextTick as B, resolveComponent as h, openBlock as j, createBlock as x, withCtx as P, createVNode as R } from "vue";
|
|
18
|
+
import { BasicModal as U, useModalInner as V } from "/@/components/Modal";
|
|
19
|
+
import { BasicForm as v, useForm as O } from "/@/components/Form";
|
|
20
|
+
import { useMessage as Q } from "/@/hooks/web/useMessage";
|
|
21
|
+
import { a as b } from "./useSchemas-43429d80.mjs";
|
|
22
|
+
import { _ as E } from "./index-b70302f2.mjs";
|
|
23
|
+
import "ant-design-vue";
|
|
24
|
+
import "@ant-design/icons-vue";
|
|
25
|
+
import "/@/utils/common/compUtils";
|
|
26
|
+
import "/@/hooks/web/usePermission";
|
|
27
|
+
import "/@/utils/helper/validator";
|
|
28
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
29
|
+
import "vue-router";
|
|
30
|
+
const I = k({
|
|
31
|
+
name: "CgformExtConfigModel",
|
|
32
|
+
components: { BasicModal: U, BasicForm: v },
|
|
33
|
+
props: {
|
|
34
|
+
parentForm: {
|
|
35
|
+
type: Object,
|
|
36
|
+
required: !0
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["register", "ok"],
|
|
40
|
+
setup(o, { emit: m }) {
|
|
41
|
+
const { createMessage: e } = Q(), { formSchemas: c } = b(o, {
|
|
42
|
+
onIsDesformChange: C,
|
|
43
|
+
onJoinQueryChange: M,
|
|
44
|
+
onReportPrintShowChange: y
|
|
45
|
+
}), [s, { resetFields: p, setFieldsValue: t, getFieldsValue: i, clearValidate: r, validate: l }] = O({
|
|
46
|
+
schemas: c,
|
|
47
|
+
showActionButtonGroup: !1,
|
|
48
|
+
labelAlign: "right"
|
|
49
|
+
}), [_, { closeModal: f }] = V((n) => d(this, null, function* () {
|
|
50
|
+
yield p(), yield t(n.extConfigJson);
|
|
51
|
+
}));
|
|
52
|
+
function w() {
|
|
53
|
+
return d(this, null, function* () {
|
|
54
|
+
yield r(), yield B();
|
|
55
|
+
try {
|
|
56
|
+
const n = yield l();
|
|
57
|
+
m("ok", n), f();
|
|
58
|
+
} catch (n) {
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function F() {
|
|
63
|
+
f();
|
|
64
|
+
}
|
|
65
|
+
function C(n) {
|
|
66
|
+
if (n === "Y") {
|
|
67
|
+
let { themeTemplate: a } = o.parentForm.getFieldsValue(["themeTemplate"]);
|
|
68
|
+
a === "erp" && (o.parentForm.setFieldsValue({ themeTemplate: "normal" }), e.warning("请注意:erp风格不支持对接表单设计,已自动改为默认风格!"));
|
|
69
|
+
} else
|
|
70
|
+
r("desFormCode");
|
|
71
|
+
}
|
|
72
|
+
const u = "{{ window._CONFIG['domianURL'] }}/jmreport/view/{积木报表ID}";
|
|
73
|
+
function y(n) {
|
|
74
|
+
return d(this, null, function* () {
|
|
75
|
+
let a = i().reportPrintUrl;
|
|
76
|
+
n === 0 ? a === u && (yield t({ reportPrintUrl: "" })) : n === 1 && a === "" && (yield t({ reportPrintUrl: u })), r("reportPrintUrl");
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function M(n) {
|
|
80
|
+
if (n === 1) {
|
|
81
|
+
let { themeTemplate: a, isTree: T, tableType: g } = o.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
|
|
82
|
+
a === "erp" && (e.warning("请注意:erp风格不支持联合查询,配置无效!"), t({ joinQuery: 0 })), a === "innerTable" && (e.warning("请注意:内嵌风格不支持联合查询,配置无效!"), t({ joinQuery: 0 })), g === 1 ? (e.warning("请注意:单表不支持联合查询,配置无效!"), t({ joinQuery: 0 })) : g === 3 ? (e.warning("请注意:当前表为附表,请在对应主表配置!"), t({ joinQuery: 0 })) : T === "Y" && (e.warning("请注意:树形列表不支持联合查询,配置无效!"), t({ joinQuery: 0 }));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
handleOk: w,
|
|
87
|
+
handleCancel: F,
|
|
88
|
+
registerModal: _,
|
|
89
|
+
registerForm: s
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
function $(o, m, e, c, s, p) {
|
|
94
|
+
const t = h("BasicForm"), i = h("BasicModal");
|
|
95
|
+
return j(), x(i, {
|
|
96
|
+
onRegister: o.registerModal,
|
|
97
|
+
title: "扩展配置",
|
|
98
|
+
width: 1e3,
|
|
99
|
+
onOk: o.handleOk,
|
|
100
|
+
onCancel: o.handleCancel
|
|
101
|
+
}, {
|
|
102
|
+
default: P(() => [
|
|
103
|
+
R(t, { onRegister: o.registerForm }, null, 8, ["onRegister"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
107
|
+
}
|
|
108
|
+
const Z = /* @__PURE__ */ E(I, [["render", $], ["__scopeId", "data-v-07f7580c"]]);
|
|
109
|
+
export {
|
|
110
|
+
Z as default
|
|
111
|
+
};
|