@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,311 +0,0 @@
|
|
|
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-352b46b1.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-0e3ab3af.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
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
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-0433a403.mjs";
|
|
22
|
-
import { _ as E } from "./index-0e3ab3af.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
|
-
};
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
var C = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
-
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var v = Object.getOwnPropertySymbols;
|
|
4
|
-
var I = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var w = (o, t, l) => t in o ? C(o, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[t] = l, h = (o, t) => {
|
|
6
|
-
for (var l in t || (t = {}))
|
|
7
|
-
I.call(t, l) && w(o, l, t[l]);
|
|
8
|
-
if (v)
|
|
9
|
-
for (var l of v(t))
|
|
10
|
-
G.call(t, l) && w(o, l, t[l]);
|
|
11
|
-
return o;
|
|
12
|
-
}, _ = (o, t) => P(o, k(t));
|
|
13
|
-
var g = (o, t, l) => new Promise((m, n) => {
|
|
14
|
-
var a = (i) => {
|
|
15
|
-
try {
|
|
16
|
-
s(l.next(i));
|
|
17
|
-
} catch (d) {
|
|
18
|
-
n(d);
|
|
19
|
-
}
|
|
20
|
-
}, p = (i) => {
|
|
21
|
-
try {
|
|
22
|
-
s(l.throw(i));
|
|
23
|
-
} catch (d) {
|
|
24
|
-
n(d);
|
|
25
|
-
}
|
|
26
|
-
}, s = (i) => i.done ? m(i.value) : Promise.resolve(i.value).then(a, p);
|
|
27
|
-
s((l = l.apply(o, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { defineComponent as N, ref as f, reactive as V, toRaw as j, toRefs as K, resolveComponent as b, openBlock as $, createBlock as O, mergeProps as T, withCtx as F, createVNode as L } from "vue";
|
|
30
|
-
import { BasicModal as A, useModalInner as J } from "/@/components/Modal";
|
|
31
|
-
import { BasicForm as D, useForm as H } from "/@/components/Form/index";
|
|
32
|
-
import { pick as W } from "lodash-es";
|
|
33
|
-
import { L as S } from "./constant-754f1a9d.mjs";
|
|
34
|
-
import { _ as q } from "./index-0e3ab3af.mjs";
|
|
35
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
|
-
import "/@/hooks/web/useMessage";
|
|
37
|
-
import "vue-router";
|
|
38
|
-
const z = N({
|
|
39
|
-
name: "FieldExtendJsonModal",
|
|
40
|
-
components: {
|
|
41
|
-
BasicModal: A,
|
|
42
|
-
BasicForm: D
|
|
43
|
-
},
|
|
44
|
-
emits: ["success", "register"],
|
|
45
|
-
setup(o, { emit: t }) {
|
|
46
|
-
const l = f(!1);
|
|
47
|
-
function m() {
|
|
48
|
-
n.uploadnum = 0, n.showLength = "", n.popupMulti = !0, n.multiSelect = !0, n.store = "", n.text = "", n.orderRule = "", n.validateError = "", n.labelLength = S;
|
|
49
|
-
}
|
|
50
|
-
const n = V({
|
|
51
|
-
uploadnum: 0,
|
|
52
|
-
showLength: "",
|
|
53
|
-
popupMulti: !0,
|
|
54
|
-
store: "",
|
|
55
|
-
text: "",
|
|
56
|
-
multiSelect: !0,
|
|
57
|
-
orderRule: "",
|
|
58
|
-
validateError: "",
|
|
59
|
-
labelLength: S
|
|
60
|
-
}), a = f(""), p = f(""), s = f("0"), i = [
|
|
61
|
-
{
|
|
62
|
-
label: "rowKey",
|
|
63
|
-
field: "rowKey",
|
|
64
|
-
component: "Input",
|
|
65
|
-
show: !1
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "文件上传数量",
|
|
69
|
-
field: "uploadnum",
|
|
70
|
-
component: "InputNumber",
|
|
71
|
-
componentProps: {
|
|
72
|
-
style: {
|
|
73
|
-
width: "100%"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
ifShow: () => a.value === "file" || a.value === "image"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: "是否多选",
|
|
80
|
-
field: "popupMulti",
|
|
81
|
-
component: "RadioGroup",
|
|
82
|
-
defaultValue: !0,
|
|
83
|
-
componentProps: {
|
|
84
|
-
options: [
|
|
85
|
-
{ label: "否", value: !1 },
|
|
86
|
-
{ label: "是", value: !0 }
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
ifShow: () => a.value === "popup"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: "是否多选",
|
|
93
|
-
field: "multiSelect",
|
|
94
|
-
component: "RadioGroup",
|
|
95
|
-
defaultValue: !0,
|
|
96
|
-
componentProps: {
|
|
97
|
-
options: [
|
|
98
|
-
{ label: "否", value: !1 },
|
|
99
|
-
{ label: "是", value: !0 }
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
ifShow: () => a.value === "sel_user" || a.value === "sel_depart"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: "存储字段",
|
|
106
|
-
field: "store",
|
|
107
|
-
component: "Input",
|
|
108
|
-
ifShow: () => a.value === "sel_user" || a.value === "sel_depart"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: "展示字段",
|
|
112
|
-
field: "text",
|
|
113
|
-
component: "Input",
|
|
114
|
-
ifShow: () => a.value === "sel_user" || a.value === "sel_depart"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: "默认排序",
|
|
118
|
-
field: "orderRule",
|
|
119
|
-
component: "RadioGroup",
|
|
120
|
-
defaultValue: "",
|
|
121
|
-
componentProps: {
|
|
122
|
-
options: [
|
|
123
|
-
{ label: "降序", value: "desc" },
|
|
124
|
-
{ label: "升序", value: "asc" },
|
|
125
|
-
{ label: "不默认排序", value: "" }
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
ifShow: () => s.value === "1"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: "校验提示",
|
|
132
|
-
field: "validateError",
|
|
133
|
-
component: "Input",
|
|
134
|
-
componentProps: {
|
|
135
|
-
placeholder: "请输入校验提示文本"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: "label长度",
|
|
140
|
-
field: "labelLength",
|
|
141
|
-
component: "InputNumber",
|
|
142
|
-
componentProps: {
|
|
143
|
-
placeholder: "请输入label长度"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
label: "是否固定",
|
|
148
|
-
field: "isFixed",
|
|
149
|
-
component: "RadioGroup",
|
|
150
|
-
defaultValue: 0,
|
|
151
|
-
componentProps: {
|
|
152
|
-
options: [
|
|
153
|
-
{ label: "是", value: 1 },
|
|
154
|
-
{ label: "否", value: 0 }
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
], [d, { validate: R, setFieldsValue: x, resetFields: y }] = H({
|
|
159
|
-
schemas: i,
|
|
160
|
-
showActionButtonGroup: !1,
|
|
161
|
-
labelAlign: "right",
|
|
162
|
-
labelWidth: 100
|
|
163
|
-
}), [M, { closeModal: E }] = J((e) => g(this, null, function* () {
|
|
164
|
-
if (m(), e.jsonStr) {
|
|
165
|
-
let r = JSON.parse(e.jsonStr);
|
|
166
|
-
Object.keys(r).map((c) => {
|
|
167
|
-
n[c] = r[c];
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
a.value = e.fieldShowType, p.value = e.id, s.value = e.sortFlag;
|
|
171
|
-
let u = j(n);
|
|
172
|
-
yield y(), yield x(_(h({}, u), {
|
|
173
|
-
rowKey: e.id
|
|
174
|
-
}));
|
|
175
|
-
}));
|
|
176
|
-
function B() {
|
|
177
|
-
return g(this, null, function* () {
|
|
178
|
-
let e = yield R(), u = a.value, r = {};
|
|
179
|
-
u === "file" || u === "image" ? e.uploadnum && e.uploadnum > 0 && (r.uploadnum = e.uploadnum) : u === "textarea" || u === "text" ? e.showLength && e.showLength > 0 && (r.showLength = e.showLength) : u === "sel_user" || u === "sel_depart" ? r = W(e, "store", "text", "multiSelect") : u === "popup" && (r.popupMulti = e.popupMulti), s.value === "1" && e.orderRule && (r.orderRule = e.orderRule), e.validateError && (r.validateError = e.validateError), e.labelLength && (r.labelLength = e.labelLength), e.isFixed && (r.isFixed = e.isFixed);
|
|
180
|
-
for (let c in r)
|
|
181
|
-
r[c] === "" && delete r[c];
|
|
182
|
-
t("success", r, e.rowKey), E();
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
return h({
|
|
186
|
-
spinningLoading: l,
|
|
187
|
-
registerModal: M,
|
|
188
|
-
registerForm: d,
|
|
189
|
-
fieldShowType: a,
|
|
190
|
-
rowKey: p,
|
|
191
|
-
handleSubmit: B
|
|
192
|
-
}, K(n));
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
function Q(o, t, l, m, n, a) {
|
|
196
|
-
const p = b("BasicForm"), s = b("a-spin"), i = b("BasicModal");
|
|
197
|
-
return $(), O(i, T({ wrapClassName: "field-extend-config-modal" }, o.$attrs, {
|
|
198
|
-
title: "扩展参数配置",
|
|
199
|
-
onRegister: o.registerModal,
|
|
200
|
-
keyboard: "",
|
|
201
|
-
canFullscreen: !1,
|
|
202
|
-
cancelText: "关闭",
|
|
203
|
-
onOk: o.handleSubmit
|
|
204
|
-
}), {
|
|
205
|
-
default: F(() => [
|
|
206
|
-
L(s, { spinning: o.spinningLoading }, {
|
|
207
|
-
default: F(() => [
|
|
208
|
-
L(p, { onRegister: o.registerForm }, null, 8, ["onRegister"])
|
|
209
|
-
]),
|
|
210
|
-
_: 1
|
|
211
|
-
}, 8, ["spinning"])
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 16, ["onRegister", "onOk"]);
|
|
215
|
-
}
|
|
216
|
-
const re = /* @__PURE__ */ q(z, [["render", Q]]);
|
|
217
|
-
export {
|
|
218
|
-
re as default
|
|
219
|
-
};
|