@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
var W = Object.defineProperty, G = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var E = (t, s, n) => s in t ? W(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n, N = (t, s) => {
|
|
6
|
+
for (var n in s || (s = {}))
|
|
7
|
+
X.call(s, n) && E(t, n, s[n]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var n of R(s))
|
|
10
|
+
Y.call(s, n) && E(t, n, s[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, $ = (t, s) => G(t, U(s));
|
|
13
|
+
import { defineComponent as Z, ref as ee, resolveComponent as y, openBlock as H, createElementBlock as te, Fragment as le, createVNode as w, mergeProps as ie, withCtx as K, createBlock as ae, createTextVNode as oe, createCommentVNode as de } from "vue";
|
|
14
|
+
import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
+
import { u as ne } from "./useTableSync-dc333087.mjs";
|
|
16
|
+
import se from "./LinkTableConfigModal-77d7c0b9.mjs";
|
|
17
|
+
import ue from "./LinkTableFieldConfigModal-c5689ab0.mjs";
|
|
18
|
+
import re from "./FieldExtendJsonModal-48f7d67f.mjs";
|
|
19
|
+
import { useModal as V } from "/@/components/Modal";
|
|
20
|
+
import { _ as fe } from "./index-6a09a912.mjs";
|
|
21
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
22
|
+
import "/@/utils/dict";
|
|
23
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
24
|
+
import "/@/utils/uuid";
|
|
25
|
+
import "lodash-es";
|
|
26
|
+
import "/@/components/Form/index";
|
|
27
|
+
import "/@/utils/http/axios";
|
|
28
|
+
import "/@/hooks/web/useMessage";
|
|
29
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
30
|
+
import "vue-router";
|
|
31
|
+
const P = [
|
|
32
|
+
{ title: "文本框", value: "text" },
|
|
33
|
+
{ title: "密码", value: "password" },
|
|
34
|
+
{ title: "下拉框", value: "list" },
|
|
35
|
+
{ title: "单选框", value: "radio" },
|
|
36
|
+
{ title: "多选框", value: "checkbox" },
|
|
37
|
+
{ title: "开关", value: "switch" },
|
|
38
|
+
{ title: "日期(年月日)", value: "date" },
|
|
39
|
+
{ title: "日期(年月日时分秒)", value: "datetime" },
|
|
40
|
+
{ title: "时间(HH:mm:ss)", value: "time" },
|
|
41
|
+
{ title: "文件", value: "file" },
|
|
42
|
+
{ title: "图片", value: "image" },
|
|
43
|
+
{ title: "多行文本", value: "textarea" },
|
|
44
|
+
{ title: "富文本", value: "umeditor" },
|
|
45
|
+
{ title: "MarkDown", value: "markdown" },
|
|
46
|
+
{ title: "用户选择", value: "sel_user" },
|
|
47
|
+
{ title: "部门选择", value: "sel_depart" },
|
|
48
|
+
{ title: "关联记录", value: "link_table" },
|
|
49
|
+
{ title: "他表字段", value: "link_table_field" },
|
|
50
|
+
{ title: "省市区组件", value: "pca" },
|
|
51
|
+
{ title: "Popup弹框", value: "popup" },
|
|
52
|
+
{ title: "下拉多选框", value: "list_multi" },
|
|
53
|
+
{ title: "下拉搜索框", value: "sel_search" },
|
|
54
|
+
{ title: "分类字典树", value: "cat_tree" },
|
|
55
|
+
{ title: "自定义树控件", value: "sel_tree" },
|
|
56
|
+
{ title: "联动组件", value: "link_down" }
|
|
57
|
+
], ce = [
|
|
58
|
+
{ title: "文本框", value: "text" },
|
|
59
|
+
{ title: "单选框", value: "radio" },
|
|
60
|
+
{ title: "开关", value: "switch" },
|
|
61
|
+
{ title: "日期(yyyy-MM-dd)", value: "date" },
|
|
62
|
+
{ title: "日期(yyyy-MM-dd HH:mm:ss)", value: "datetime" },
|
|
63
|
+
{ title: "时间(HH:mm:ss)", value: "time" },
|
|
64
|
+
{ title: "文件", value: "file" },
|
|
65
|
+
{ title: "图片", value: "image" },
|
|
66
|
+
{ title: "下拉框", value: "list" },
|
|
67
|
+
{ title: "下拉多选框", value: "list_multi" },
|
|
68
|
+
{ title: "下拉搜索框", value: "sel_search" },
|
|
69
|
+
{ title: "popup弹出框", value: "popup" },
|
|
70
|
+
{ title: "部门选择", value: "sel_depart" },
|
|
71
|
+
{ title: "用户选择", value: "sel_user" },
|
|
72
|
+
{ title: "省市区组件", value: "pca" },
|
|
73
|
+
{ title: "多行文本", value: "textarea" }
|
|
74
|
+
], me = Z({
|
|
75
|
+
name: "PageAttributeTable",
|
|
76
|
+
components: {
|
|
77
|
+
LinkTableConfigModal: se,
|
|
78
|
+
LinkTableFieldConfigModal: ue,
|
|
79
|
+
FieldExtendJsonModal: re
|
|
80
|
+
},
|
|
81
|
+
setup() {
|
|
82
|
+
const t = ee([
|
|
83
|
+
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
84
|
+
{ title: "字段备注", key: "dbFieldTxt", width: 150 },
|
|
85
|
+
{
|
|
86
|
+
title: "表单显示",
|
|
87
|
+
key: "isShowForm",
|
|
88
|
+
width: 80,
|
|
89
|
+
type: r.checkbox,
|
|
90
|
+
align: "center",
|
|
91
|
+
customValue: ["1", "0"],
|
|
92
|
+
defaultChecked: !0
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: "列表显示",
|
|
96
|
+
key: "isShowList",
|
|
97
|
+
width: 80,
|
|
98
|
+
type: r.checkbox,
|
|
99
|
+
align: "center",
|
|
100
|
+
customValue: ["1", "0"],
|
|
101
|
+
defaultChecked: !0
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: "是否排序",
|
|
105
|
+
key: "sortFlag",
|
|
106
|
+
width: 80,
|
|
107
|
+
type: r.checkbox,
|
|
108
|
+
align: "center",
|
|
109
|
+
customValue: ["1", "0"],
|
|
110
|
+
defaultChecked: !1
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: "是否只读",
|
|
114
|
+
key: "isReadOnly",
|
|
115
|
+
width: 80,
|
|
116
|
+
type: r.checkbox,
|
|
117
|
+
align: "center",
|
|
118
|
+
customValue: ["1", "0"],
|
|
119
|
+
defaultChecked: !1
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: "控件类型",
|
|
123
|
+
key: "fieldShowType",
|
|
124
|
+
width: 170,
|
|
125
|
+
type: r.select,
|
|
126
|
+
options: P,
|
|
127
|
+
defaultValue: "text",
|
|
128
|
+
placeholder: "请选择${title}",
|
|
129
|
+
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: C }]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
title: "控件长度",
|
|
133
|
+
key: "fieldLength",
|
|
134
|
+
width: 120,
|
|
135
|
+
titleHelp: { message: "此长度只对子表列字段宽度有效!" },
|
|
136
|
+
type: r.inputNumber,
|
|
137
|
+
defaultValue: 200,
|
|
138
|
+
placeholder: "请输入${title}",
|
|
139
|
+
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
title: "是否查询",
|
|
143
|
+
key: "isQuery",
|
|
144
|
+
width: 80,
|
|
145
|
+
type: r.checkbox,
|
|
146
|
+
align: "center",
|
|
147
|
+
customValue: ["1", "0"],
|
|
148
|
+
defaultChecked: !1
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
title: "查询类型",
|
|
152
|
+
key: "queryMode",
|
|
153
|
+
width: 110,
|
|
154
|
+
type: r.select,
|
|
155
|
+
options: [
|
|
156
|
+
{ title: "普通查询", value: "single" },
|
|
157
|
+
{ title: "范围查询", value: "group" }
|
|
158
|
+
],
|
|
159
|
+
defaultValue: "single",
|
|
160
|
+
placeholder: "请选择${title}",
|
|
161
|
+
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
title: "控件默认值",
|
|
165
|
+
key: "fieldDefaultValue",
|
|
166
|
+
width: 120,
|
|
167
|
+
type: r.input,
|
|
168
|
+
defaultValue: ""
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
title: "定义转换器",
|
|
172
|
+
key: "converter",
|
|
173
|
+
width: 150,
|
|
174
|
+
type: r.input,
|
|
175
|
+
defaultValue: ""
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
title: "扩展参数",
|
|
179
|
+
key: "fieldExtendJson",
|
|
180
|
+
width: 120,
|
|
181
|
+
type: r.input,
|
|
182
|
+
defaultValue: ""
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
title: "更多配置",
|
|
186
|
+
minWidth: 100,
|
|
187
|
+
key: "fieldConfig",
|
|
188
|
+
type: r.slot,
|
|
189
|
+
slotName: "fieldConfig"
|
|
190
|
+
}
|
|
191
|
+
]), s = ne(t), { tableRef: n, tables: b } = s;
|
|
192
|
+
function C({ cellValue: e, row: l }, a) {
|
|
193
|
+
let { dbTable: u } = b, i = u.value.tableRef.getTableData({ rowIds: [l.id] })[0].dbType;
|
|
194
|
+
e === "time" && i !== "string" ? a(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && i !== "Date" && i !== "Datetime" ? a(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && i !== "Datetime" ? a(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : a(!0);
|
|
195
|
+
}
|
|
196
|
+
function D(e) {
|
|
197
|
+
let l = "date";
|
|
198
|
+
e.dbType === "Datetime" && (l = "datetime"), n.value.setValues([
|
|
199
|
+
{
|
|
200
|
+
rowKey: e.id,
|
|
201
|
+
values: { fieldShowType: l }
|
|
202
|
+
}
|
|
203
|
+
]);
|
|
204
|
+
}
|
|
205
|
+
function k(e) {
|
|
206
|
+
for (let l of t.value)
|
|
207
|
+
if (l.key == "fieldShowType") {
|
|
208
|
+
l.options = e ? ce : P;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function F(e) {
|
|
213
|
+
n.value.setValues([
|
|
214
|
+
{
|
|
215
|
+
rowKey: e,
|
|
216
|
+
values: { isQuery: "1" }
|
|
217
|
+
}
|
|
218
|
+
]);
|
|
219
|
+
}
|
|
220
|
+
const [_, { openModal: x }] = V(), [S, { openModal: v }] = V(), [M, { openModal: O }] = V();
|
|
221
|
+
function A(e) {
|
|
222
|
+
return e.row.dbFieldName != "id";
|
|
223
|
+
}
|
|
224
|
+
function L(e) {
|
|
225
|
+
e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : Q(e);
|
|
226
|
+
}
|
|
227
|
+
function J(e) {
|
|
228
|
+
let { row: l } = e, { checkTable: a } = b;
|
|
229
|
+
if (a) {
|
|
230
|
+
let u = a.value.tableRef.getTableData({ rowIds: [l.id] })[0];
|
|
231
|
+
if (e.row.fieldShowType == "link_table") {
|
|
232
|
+
let i = I(l, u);
|
|
233
|
+
x(!0, {
|
|
234
|
+
record: i,
|
|
235
|
+
fieldName: l.dbFieldName
|
|
236
|
+
});
|
|
237
|
+
} else if (e.row.fieldShowType == "link_table_field") {
|
|
238
|
+
let i = B(l, u);
|
|
239
|
+
v(!0, i);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function B(e, l) {
|
|
244
|
+
let u = n.value.getTableData().filter((g) => g.fieldShowType == "link_table"), i = {};
|
|
245
|
+
if (u && u.length > 0) {
|
|
246
|
+
let g = b.checkTable.value.tableRef.getTableData();
|
|
247
|
+
for (let T of u) {
|
|
248
|
+
let h = g.filter((m) => m.dbFieldName == T.dbFieldName);
|
|
249
|
+
if (h && h.length > 0) {
|
|
250
|
+
let m = h[0];
|
|
251
|
+
i[m.dbFieldName] = {
|
|
252
|
+
title: T.dbFieldTxt,
|
|
253
|
+
table: m.dictTable,
|
|
254
|
+
fields: m.dictText
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
const { dictTable: c, dictText: f } = l, { id: o, dbFieldTxt: d } = e;
|
|
260
|
+
return {
|
|
261
|
+
record: {
|
|
262
|
+
rowKey: o,
|
|
263
|
+
dbFieldTxt: d,
|
|
264
|
+
dictText: f,
|
|
265
|
+
dictTable: c
|
|
266
|
+
},
|
|
267
|
+
tableAndFieldsMap: i
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
function I(e, l) {
|
|
271
|
+
const { id: a, dbFieldTxt: u, fieldExtendJson: i } = e, { dictTable: c, dictText: f } = l;
|
|
272
|
+
let o = {
|
|
273
|
+
rowKey: a,
|
|
274
|
+
dbFieldTxt: u,
|
|
275
|
+
dictTable: c
|
|
276
|
+
};
|
|
277
|
+
if (f) {
|
|
278
|
+
let d = f.split(",");
|
|
279
|
+
o.titleField = d[0], d.length > 1 && (o.otherFields = f.substring(f.indexOf(",") + 1));
|
|
280
|
+
} else
|
|
281
|
+
o.titleField = "", o.otherFields = "";
|
|
282
|
+
if (i)
|
|
283
|
+
try {
|
|
284
|
+
let d = JSON.parse(i);
|
|
285
|
+
d.multiSelect ? o.multiSelect = d.multiSelect : o.multiSelect = !1, d.showType ? o.showType = d.showType : o.showType = "card", d.imageField ? o.imageField = d.imageField : o.imageField = "";
|
|
286
|
+
} catch (d) {
|
|
287
|
+
console.error("解析扩展参数出错", i);
|
|
288
|
+
}
|
|
289
|
+
return o;
|
|
290
|
+
}
|
|
291
|
+
function q(e) {
|
|
292
|
+
const { multiSelect: l, showType: a, imageField: u, fieldName: i } = e;
|
|
293
|
+
let c = { showType: a, multiSelect: l, imageField: u }, f = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(c), dbFieldTxt: e.dbFieldTxt } }];
|
|
294
|
+
n.value.setValues(f);
|
|
295
|
+
let { checkTable: o, dbTable: d } = b;
|
|
296
|
+
if (d) {
|
|
297
|
+
let p = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
|
|
298
|
+
d.value.tableRef.setValues(p);
|
|
299
|
+
}
|
|
300
|
+
if (o) {
|
|
301
|
+
let p = e.titleField;
|
|
302
|
+
e.otherFields && (p += "," + e.otherFields);
|
|
303
|
+
const { dictTable: g, dictField: T } = e;
|
|
304
|
+
let h = {
|
|
305
|
+
dictTable: g,
|
|
306
|
+
dictField: T,
|
|
307
|
+
dictText: p,
|
|
308
|
+
dbFieldName: i
|
|
309
|
+
}, m = [{ rowKey: e.rowKey, values: h }];
|
|
310
|
+
o.value.tableRef.setValues(m);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function j(e) {
|
|
314
|
+
const { dbFieldTxt: l, dictTable: a, dictText: u, rowKey: i } = e;
|
|
315
|
+
let c = [{ rowKey: i, values: { dbFieldTxt: l } }];
|
|
316
|
+
n.value.setValues(c);
|
|
317
|
+
let { checkTable: f, dbTable: o } = b;
|
|
318
|
+
if (o) {
|
|
319
|
+
let d = [{ rowKey: i, values: { dbFieldTxt: l, dbIsPersist: "0" } }];
|
|
320
|
+
o.value.tableRef.setValues(d);
|
|
321
|
+
}
|
|
322
|
+
if (f) {
|
|
323
|
+
let d = [{ rowKey: i, values: { dictTable: a, dictText: u } }];
|
|
324
|
+
f.value.tableRef.setValues(d);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
function Q(e) {
|
|
328
|
+
let l = e.row.fieldExtendJson || "", a = e.rowId, u = e.row.fieldShowType || "", i = e.row.sortFlag || "0";
|
|
329
|
+
O(!0, {
|
|
330
|
+
jsonStr: l,
|
|
331
|
+
fieldShowType: u,
|
|
332
|
+
sortFlag: i,
|
|
333
|
+
id: a
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function z(e, l) {
|
|
337
|
+
let a;
|
|
338
|
+
e && Object.keys(e).length > 0 ? a = [{ rowKey: l, values: { fieldExtendJson: JSON.stringify(e) } }] : a = [{ rowKey: l, values: { fieldExtendJson: "" } }], n.value.setValues(a);
|
|
339
|
+
}
|
|
340
|
+
return $(N({}, s), {
|
|
341
|
+
columns: t,
|
|
342
|
+
enableQuery: F,
|
|
343
|
+
syncFieldShowType: D,
|
|
344
|
+
changePageType: k,
|
|
345
|
+
showConfigButton: A,
|
|
346
|
+
showFieldConfig: J,
|
|
347
|
+
registerExtJsonModal: M,
|
|
348
|
+
handleExtJson: z,
|
|
349
|
+
openConfig: L,
|
|
350
|
+
registerModal: _,
|
|
351
|
+
handleConfigData: q,
|
|
352
|
+
registerFieldModal: S,
|
|
353
|
+
handleFieldConfigData: j
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
function be(t, s, n, b, C, D) {
|
|
358
|
+
const k = y("a-button"), F = y("JVxeTable"), _ = y("link-table-config-modal"), x = y("link-table-field-config-modal"), S = y("FieldExtendJsonModal");
|
|
359
|
+
return H(), te(le, null, [
|
|
360
|
+
w(F, ie({
|
|
361
|
+
ref: "tableRef",
|
|
362
|
+
"row-class-name": "online-config-page",
|
|
363
|
+
rowNumber: "",
|
|
364
|
+
keyboardEdit: "",
|
|
365
|
+
maxHeight: t.tableHeight.noToolbar,
|
|
366
|
+
loading: t.loading,
|
|
367
|
+
columns: t.columns,
|
|
368
|
+
dataSource: t.dataSource,
|
|
369
|
+
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
370
|
+
}, t.tableProps), {
|
|
371
|
+
fieldConfig: K((v) => [
|
|
372
|
+
t.showConfigButton(v) ? (H(), ae(k, {
|
|
373
|
+
key: 0,
|
|
374
|
+
type: "primary",
|
|
375
|
+
size: "small",
|
|
376
|
+
ghost: "",
|
|
377
|
+
onClick: (M) => t.openConfig(v)
|
|
378
|
+
}, {
|
|
379
|
+
default: K(() => [
|
|
380
|
+
oe("高级配置")
|
|
381
|
+
]),
|
|
382
|
+
_: 2
|
|
383
|
+
}, 1032, ["onClick"])) : de("", !0)
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 16, ["maxHeight", "loading", "columns", "dataSource"]),
|
|
387
|
+
w(_, {
|
|
388
|
+
onRegister: t.registerModal,
|
|
389
|
+
onSuccess: t.handleConfigData
|
|
390
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
391
|
+
w(x, {
|
|
392
|
+
onRegister: t.registerFieldModal,
|
|
393
|
+
onSuccess: t.handleFieldConfigData
|
|
394
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
395
|
+
w(S, {
|
|
396
|
+
onRegister: t.registerExtJsonModal,
|
|
397
|
+
onSuccess: t.handleExtJson
|
|
398
|
+
}, null, 8, ["onRegister", "onSuccess"])
|
|
399
|
+
], 64);
|
|
400
|
+
}
|
|
401
|
+
const Ne = /* @__PURE__ */ fe(me, [["render", be], ["__scopeId", "data-v-08ae6456"]]);
|
|
402
|
+
export {
|
|
403
|
+
Ne as default
|
|
404
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
var u = (e, r, o) => new Promise((p, d) => {
|
|
2
|
+
var l = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
a(o.next(t));
|
|
5
|
+
} catch (m) {
|
|
6
|
+
d(m);
|
|
7
|
+
}
|
|
8
|
+
}, i = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
a(o.throw(t));
|
|
11
|
+
} catch (m) {
|
|
12
|
+
d(m);
|
|
13
|
+
}
|
|
14
|
+
}, a = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(l, i);
|
|
15
|
+
a((o = o.apply(e, r)).next());
|
|
16
|
+
});
|
|
17
|
+
import { O as S } from "./OnlineForm-630a22c2.mjs";
|
|
18
|
+
import { defineComponent as k, ref as s, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
|
|
19
|
+
import { defHttp as P } from "/@/utils/http/axios";
|
|
20
|
+
import { g as b } from "./useExtendComponent-48d37d9b.mjs";
|
|
21
|
+
import { _ as R } from "./index-6a09a912.mjs";
|
|
22
|
+
import "/@/hooks/web/useMessage";
|
|
23
|
+
import "/@/components/Form/index";
|
|
24
|
+
import "lodash-es";
|
|
25
|
+
import "/@/utils";
|
|
26
|
+
import "/@/components/Loading";
|
|
27
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
28
|
+
import "/@/utils/auth";
|
|
29
|
+
import "@ant-design/icons-vue";
|
|
30
|
+
import "/@/hooks/core/useContext";
|
|
31
|
+
import "/@/utils/mitt";
|
|
32
|
+
import "/@/components/Modal";
|
|
33
|
+
import "/@/utils/cache";
|
|
34
|
+
import "/@/utils/common/compUtils";
|
|
35
|
+
import "/@/store/modules/user";
|
|
36
|
+
import "./constant-fe20103a.mjs";
|
|
37
|
+
import "/@/components/Form/src/componentMap";
|
|
38
|
+
import "/@/utils/propTypes";
|
|
39
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
40
|
+
import "/@/views/system/user/user.api";
|
|
41
|
+
import "/@/utils/desform/customExpression";
|
|
42
|
+
import "/@/store/modules/permission";
|
|
43
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
44
|
+
import "/@/components/Table";
|
|
45
|
+
import "/@/hooks/system/useListPage";
|
|
46
|
+
import "vue-router";
|
|
47
|
+
import "/@/components/Form/src/utils/Area";
|
|
48
|
+
import "/@/components/Preview/index";
|
|
49
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
50
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
51
|
+
import "./JModalTip-abe1515a.mjs";
|
|
52
|
+
import "ant-design-vue";
|
|
53
|
+
import "@vueuse/core";
|
|
54
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
55
|
+
const L = k({
|
|
56
|
+
name: "ProcessOnlineForm",
|
|
57
|
+
inheritAttrs: !1,
|
|
58
|
+
components: {
|
|
59
|
+
OnlineForm: S
|
|
60
|
+
},
|
|
61
|
+
props: {
|
|
62
|
+
dataId: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ""
|
|
65
|
+
},
|
|
66
|
+
tableName: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: ""
|
|
69
|
+
},
|
|
70
|
+
taskId: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: ""
|
|
73
|
+
},
|
|
74
|
+
disabled: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
setup(e) {
|
|
80
|
+
const r = s(), o = s(""), p = s(1), d = s(!1), l = s(""), i = s(!1);
|
|
81
|
+
T(
|
|
82
|
+
() => e.tableName,
|
|
83
|
+
(c) => {
|
|
84
|
+
c && a();
|
|
85
|
+
},
|
|
86
|
+
{ immediate: !0 }
|
|
87
|
+
);
|
|
88
|
+
function a() {
|
|
89
|
+
return u(this, null, function* () {
|
|
90
|
+
i.value = !0;
|
|
91
|
+
const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, I = { taskId: e.taskId };
|
|
92
|
+
try {
|
|
93
|
+
let n = yield P.get({ url: c, params: I });
|
|
94
|
+
console.log("动态表单查询结果是:", n), o.value = n.head.id, p.value = Number(n.head.formTemplate || 1), d.value = n.head.isTree === "Y", l.value = n.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
|
|
95
|
+
(yield b(r)).createRootProperties(n);
|
|
96
|
+
}));
|
|
97
|
+
} catch (n) {
|
|
98
|
+
console.error("流程表单查询异常", n);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function t() {
|
|
103
|
+
return u(this, null, function* () {
|
|
104
|
+
let c = yield b(r);
|
|
105
|
+
i.value = !1, c.show(!0, {
|
|
106
|
+
id: e.dataId
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
const m = s(!1);
|
|
111
|
+
function F() {
|
|
112
|
+
return u(this, null, function* () {
|
|
113
|
+
m.value = !0, r.value.handleSubmit();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function v() {
|
|
117
|
+
m.value = !1;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
onlineFormCompRef: r,
|
|
121
|
+
formId: o,
|
|
122
|
+
formTemplate: p,
|
|
123
|
+
isTreeForm: d,
|
|
124
|
+
pidFieldName: l,
|
|
125
|
+
renderSuccess: t,
|
|
126
|
+
handleSuccess: v,
|
|
127
|
+
handleSubmit: F,
|
|
128
|
+
buttonLoading: m,
|
|
129
|
+
spinLoading: i
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}), O = { class: "cust-onl-form" }, $ = {
|
|
133
|
+
key: 0,
|
|
134
|
+
style: { width: "100%", "text-align": "center", "margin-top": "5px" }
|
|
135
|
+
};
|
|
136
|
+
function B(e, r, o, p, d, l) {
|
|
137
|
+
const i = f("a-button"), a = f("online-form"), t = f("a-spin");
|
|
138
|
+
return h(), y("div", O, [
|
|
139
|
+
_(t, { spinning: e.spinLoading }, {
|
|
140
|
+
default: g(() => [
|
|
141
|
+
_(a, {
|
|
142
|
+
ref: "onlineFormCompRef",
|
|
143
|
+
id: e.formId,
|
|
144
|
+
disabled: e.disabled,
|
|
145
|
+
"form-template": e.formTemplate,
|
|
146
|
+
isTree: e.isTreeForm,
|
|
147
|
+
pidField: e.pidFieldName,
|
|
148
|
+
onRendered: e.renderSuccess,
|
|
149
|
+
onSuccess: e.handleSuccess
|
|
150
|
+
}, {
|
|
151
|
+
bottom: g(() => [
|
|
152
|
+
!e.disabled && !e.spinLoading ? (h(), y("div", $, [
|
|
153
|
+
_(i, {
|
|
154
|
+
preIcon: "ant-design:check",
|
|
155
|
+
style: { width: "126px" },
|
|
156
|
+
type: "primary",
|
|
157
|
+
onClick: e.handleSubmit,
|
|
158
|
+
loading: e.buttonLoading
|
|
159
|
+
}, {
|
|
160
|
+
default: g(() => [
|
|
161
|
+
N(" 提 交 ")
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["onClick", "loading"])
|
|
165
|
+
])) : C("", !0)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["spinning"])
|
|
172
|
+
]);
|
|
173
|
+
}
|
|
174
|
+
const ve = /* @__PURE__ */ R(L, [["render", B], ["__scopeId", "data-v-530d8f91"]]);
|
|
175
|
+
export {
|
|
176
|
+
ve as default
|
|
177
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var y = Object.defineProperty, c = Object.defineProperties;
|
|
2
|
+
var f = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var d = Object.getOwnPropertySymbols;
|
|
4
|
+
var h = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var n = (e, t, l) => t in e ? y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, p = (e, t) => {
|
|
6
|
+
for (var l in t || (t = {}))
|
|
7
|
+
h.call(t, l) && n(e, l, t[l]);
|
|
8
|
+
if (d)
|
|
9
|
+
for (var l of d(t))
|
|
10
|
+
b.call(t, l) && n(e, l, t[l]);
|
|
11
|
+
return e;
|
|
12
|
+
}, s = (e, t) => c(e, f(t));
|
|
13
|
+
import { defineComponent as g, ref as k, resolveComponent as v, openBlock as T, createBlock as _, mergeProps as V } from "vue";
|
|
14
|
+
import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
+
import { u as w } from "./useTableSync-dc333087.mjs";
|
|
16
|
+
import { _ as C } from "./index-6a09a912.mjs";
|
|
17
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
18
|
+
import "/@/utils/dict";
|
|
19
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
20
|
+
import "/@/utils/uuid";
|
|
21
|
+
import "lodash-es";
|
|
22
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
|
+
import "/@/hooks/web/useMessage";
|
|
24
|
+
import "vue-router";
|
|
25
|
+
const q = g({
|
|
26
|
+
name: "QueryTable",
|
|
27
|
+
emits: ["query"],
|
|
28
|
+
setup(e, { emit: t }) {
|
|
29
|
+
const l = k([
|
|
30
|
+
{ title: "字段名称", key: "dbFieldName", width: 130 },
|
|
31
|
+
{ title: "字段备注", key: "dbFieldTxt", width: 130 },
|
|
32
|
+
{
|
|
33
|
+
title: "控件类型",
|
|
34
|
+
key: "queryShowType",
|
|
35
|
+
width: 170,
|
|
36
|
+
type: a.select,
|
|
37
|
+
options: [
|
|
38
|
+
{ title: "文本框", value: "text" },
|
|
39
|
+
{ title: "日期(yyyy-MM-dd)", value: "date" },
|
|
40
|
+
{ title: "日期(yyyy-MM-dd HH:mm:ss)", value: "datetime" },
|
|
41
|
+
{ title: "时间(HH:mm:ss)", value: "time" },
|
|
42
|
+
{ title: "下拉框", value: "list" },
|
|
43
|
+
{ title: "下拉多选框", value: "list_multi" },
|
|
44
|
+
{ title: "下拉搜索框", value: "sel_search" },
|
|
45
|
+
{ title: "分类字典树", value: "cat_tree" },
|
|
46
|
+
{ title: "Popup弹框", value: "popup" },
|
|
47
|
+
{ title: "部门选择", value: "sel_depart" },
|
|
48
|
+
{ title: "用户选择", value: "sel_user" },
|
|
49
|
+
{ title: "省市区组件", value: "pca" },
|
|
50
|
+
{ title: "自定义树控件", value: "sel_tree" }
|
|
51
|
+
],
|
|
52
|
+
defaultValue: "text",
|
|
53
|
+
placeholder: "请选择${title}"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "字典Table",
|
|
57
|
+
key: "queryDictTable",
|
|
58
|
+
width: 130,
|
|
59
|
+
type: a.textarea,
|
|
60
|
+
defaultValue: ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: "字典Code",
|
|
64
|
+
key: "queryDictField",
|
|
65
|
+
width: 130,
|
|
66
|
+
type: a.input,
|
|
67
|
+
defaultValue: ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: "字典Text",
|
|
71
|
+
key: "queryDictText",
|
|
72
|
+
width: 130,
|
|
73
|
+
type: a.input,
|
|
74
|
+
defaultValue: ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title: "默认值",
|
|
78
|
+
key: "queryDefVal",
|
|
79
|
+
width: 130,
|
|
80
|
+
type: a.input,
|
|
81
|
+
defaultValue: ""
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: "是否启用",
|
|
85
|
+
key: "queryConfigFlag",
|
|
86
|
+
minWidth: 80,
|
|
87
|
+
type: a.checkbox,
|
|
88
|
+
customValue: ["1", "0"],
|
|
89
|
+
defaultChecked: !1
|
|
90
|
+
}
|
|
91
|
+
]), o = w(l);
|
|
92
|
+
function u({ row: r, column: i, value: m }) {
|
|
93
|
+
i.key === "queryConfigFlag" && m === "1" && t("query", r.id);
|
|
94
|
+
}
|
|
95
|
+
return s(p({}, o), { columns: l, handleChange: u });
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
function x(e, t, l, o, u, r) {
|
|
99
|
+
const i = v("JVxeTable");
|
|
100
|
+
return T(), _(i, V({
|
|
101
|
+
ref: "tableRef",
|
|
102
|
+
rowNumber: "",
|
|
103
|
+
keyboardEdit: "",
|
|
104
|
+
maxHeight: e.tableHeight.noToolbar,
|
|
105
|
+
loading: e.loading,
|
|
106
|
+
columns: e.columns,
|
|
107
|
+
dataSource: e.dataSource,
|
|
108
|
+
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
109
|
+
onValueChange: e.handleChange
|
|
110
|
+
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]);
|
|
111
|
+
}
|
|
112
|
+
const W = /* @__PURE__ */ C(q, [["render", x]]);
|
|
113
|
+
export {
|
|
114
|
+
W as default
|
|
115
|
+
};
|