@jeecg/online 1.0.1 → 3.4.3
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.js +15 -9
- package/AuthButtonTree.js +4 -7
- package/AuthDataConfig.js +10 -8
- package/AuthDataTree.js +4 -7
- package/AuthFieldConfig.js +16 -14
- package/AuthFieldTree.js +25 -20
- package/AuthManagerDrawer.js +2 -3
- package/AuthSetterModal.js +2 -2
- package/CgformCopyList.js +34 -24
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +146 -26
- package/CodeFileListModal.js +174 -0
- package/CodeFileViewModal.js +324 -0
- package/CodeGeneratorModal.js +42 -40
- package/CustomButtonList.js +19 -23
- package/DBAttributeTable.js +250 -14
- package/DbToOnlineModal.js +28 -27
- package/DetailForm.js +607 -0
- package/EnhanceJavaModal.js +12 -19
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +17 -18
- package/EnhanceSqlModal.js +12 -19
- package/ExtendConfigModal.js +26 -17
- package/FileSelectModal.js +1 -2
- package/ForeignKeyTable.js +6 -5
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +8 -7
- package/JModalTip.js +54 -0
- package/LeftDepart.js +3 -3
- package/LeftRole.js +8 -6
- package/LeftUser.js +8 -6
- package/LinkTableConfigModal.js +288 -0
- package/LinkTableFieldConfigModal.js +217 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +4 -4
- package/OnlCgReportList.js +34 -0
- package/OnlineAutoList.js +155 -58
- package/OnlineAutoModal.js +91 -132
- package/OnlineAutoTreeList.js +92 -54
- package/OnlineCustomModal.js +31 -17
- package/OnlineDetailModal.js +182 -0
- package/OnlineForm.js +272 -141
- package/OnlineFormDetail.js +324 -0
- package/OnlineQueryForm.js +72 -42
- package/OnlineSearchFormItem.js +28 -23
- package/OnlineSubFormDetail.js +165 -0
- package/OnlineSuperQuery.js +72 -76
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -31
- package/ProcessOnlineForm.js +41 -18
- package/QueryTable.js +6 -5
- package/README.md +3 -8
- package/_arrayPush.js +5 -3
- package/{cloneDeep.js → _baseClone.js} +5 -9
- package/_baseSlice.js +18 -0
- package/_commonjsHelpers.js +5 -0
- package/_flatRest.js +174 -0
- package/auth.data.js +1 -3
- package/cgform.data.js +18 -9
- package/enhance.api.js +27 -18
- package/index.js +358 -34
- package/index2.js +49 -48
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +3 -3
- package/omit.js +60 -0
- package/package.json +1 -1
- package/pick.js +3 -173
- package/style.css +1 -1
- package/toString.js +2 -2
- package/useAutoForm.js +3457 -3792
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +218 -409
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +382 -234
- package/useTableSync.js +19 -7
- package/ChartAutoRender.js +0 -69
- package/ChartDoubleRender.js +0 -154
- package/ChartSingleRender.js +0 -132
- package/ChartTabsRender.js +0 -218
- package/ErrorTip.js +0 -21
- package/FieldTable.js +0 -185
- package/GraphreportAutoChart.js +0 -352
- package/GraphreportList.js +0 -239
- package/GraphreportModal.js +0 -559
- package/JOnlineSearchSelect.js +0 -107
- package/LICENSE +0 -7
- package/OnlineSelectCascade.js +0 -217
- package/OnlineSubForm.js +0 -200
- package/ParamsTable.js +0 -71
- package/graphreport.api.js +0 -23
- package/useChartRender.js +0 -405
- package/useMessageOnline.js +0 -71
package/PageAttributeTable.js
CHANGED
|
@@ -17,21 +17,30 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock } from "vue";
|
|
20
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, mergeProps, withCtx, createBlock, createTextVNode, createCommentVNode } from "vue";
|
|
21
21
|
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
22
22
|
import { u as useTableSync } from "./useTableSync.js";
|
|
23
|
+
import LinkTableConfigModal from "./LinkTableConfigModal.js";
|
|
24
|
+
import LinkTableFieldConfigModal from "./LinkTableFieldConfigModal.js";
|
|
25
|
+
import { useModal } from "/@/components/Modal";
|
|
23
26
|
import { _ as _export_sfc } from "./index.js";
|
|
24
27
|
import "./cgform.data.js";
|
|
25
28
|
import "/@/utils/dict";
|
|
26
29
|
import "/@/utils/dict/JDictSelectUtil";
|
|
27
30
|
import "/@/utils/uuid";
|
|
28
31
|
import "./pick.js";
|
|
32
|
+
import "./_flatRest.js";
|
|
29
33
|
import "./isArray.js";
|
|
30
34
|
import "./toString.js";
|
|
31
35
|
import "./_arrayPush.js";
|
|
32
|
-
import "/@/components/
|
|
36
|
+
import "/@/components/Form/index";
|
|
37
|
+
import "/@/utils/http/axios";
|
|
38
|
+
import "./omit.js";
|
|
39
|
+
import "./_baseClone.js";
|
|
40
|
+
import "./_baseSlice.js";
|
|
33
41
|
import "/@/hooks/web/useMessage";
|
|
34
|
-
import "
|
|
42
|
+
import "@vueuse/core";
|
|
43
|
+
var PageAttributeTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
35
44
|
const commonPageOptions = [
|
|
36
45
|
{ title: "\u6587\u672C\u6846", value: "text" },
|
|
37
46
|
{ title: "\u5BC6\u7801", value: "password" },
|
|
@@ -48,6 +57,8 @@ const commonPageOptions = [
|
|
|
48
57
|
{ title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
|
|
49
58
|
{ title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
|
|
50
59
|
{ title: "Popup\u5F39\u6846", value: "popup" },
|
|
60
|
+
{ title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
|
|
61
|
+
{ title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
|
|
51
62
|
{ title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
|
|
52
63
|
{ title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
|
|
53
64
|
{ title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
|
|
@@ -76,7 +87,10 @@ const subTablePageOptions = [
|
|
|
76
87
|
];
|
|
77
88
|
const _sfc_main = defineComponent({
|
|
78
89
|
name: "PageAttributeTable",
|
|
79
|
-
components: {
|
|
90
|
+
components: {
|
|
91
|
+
LinkTableConfigModal,
|
|
92
|
+
LinkTableFieldConfigModal
|
|
93
|
+
},
|
|
80
94
|
setup() {
|
|
81
95
|
const columns = ref([
|
|
82
96
|
{ title: "\u5B57\u6BB5\u540D\u79F0", key: "dbFieldName", width: 100 },
|
|
@@ -125,10 +139,7 @@ const _sfc_main = defineComponent({
|
|
|
125
139
|
options: commonPageOptions,
|
|
126
140
|
defaultValue: "text",
|
|
127
141
|
placeholder: "\u8BF7\u9009\u62E9${title}",
|
|
128
|
-
validateRules: [
|
|
129
|
-
{ required: true, message: "\u8BF7\u9009\u62E9${title}" },
|
|
130
|
-
{ handler: validateFieldShowType }
|
|
131
|
-
]
|
|
142
|
+
validateRules: [{ required: true, message: "\u8BF7\u9009\u62E9${title}" }, { handler: validateFieldShowType }]
|
|
132
143
|
},
|
|
133
144
|
{
|
|
134
145
|
title: "\u63A7\u4EF6\u957F\u5EA6",
|
|
@@ -164,23 +175,30 @@ const _sfc_main = defineComponent({
|
|
|
164
175
|
{
|
|
165
176
|
title: "\u63A7\u4EF6\u9ED8\u8BA4\u503C",
|
|
166
177
|
key: "fieldDefaultValue",
|
|
167
|
-
width:
|
|
178
|
+
width: 120,
|
|
168
179
|
type: JVxeTypes.input,
|
|
169
180
|
defaultValue: ""
|
|
170
181
|
},
|
|
171
182
|
{
|
|
172
183
|
title: "\u6269\u5C55\u53C2\u6570",
|
|
173
184
|
key: "fieldExtendJson",
|
|
174
|
-
width:
|
|
185
|
+
width: 120,
|
|
175
186
|
type: JVxeTypes.input,
|
|
176
187
|
defaultValue: ""
|
|
177
188
|
},
|
|
178
189
|
{
|
|
179
|
-
title: "\
|
|
190
|
+
title: "\u5B9A\u4E49\u8F6C\u6362\u5668",
|
|
180
191
|
key: "converter",
|
|
181
|
-
|
|
192
|
+
width: 150,
|
|
182
193
|
type: JVxeTypes.input,
|
|
183
194
|
defaultValue: ""
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
title: "\u4E2A\u6027\u914D\u7F6E",
|
|
198
|
+
minWidth: 100,
|
|
199
|
+
key: "fieldConfig",
|
|
200
|
+
type: JVxeTypes.slot,
|
|
201
|
+
slotName: "fieldConfig"
|
|
184
202
|
}
|
|
185
203
|
]);
|
|
186
204
|
const setup = useTableSync(columns);
|
|
@@ -203,10 +221,12 @@ const _sfc_main = defineComponent({
|
|
|
203
221
|
if (row.dbType === "Datetime") {
|
|
204
222
|
showType = "datetime";
|
|
205
223
|
}
|
|
206
|
-
tableRef.value.setValues([
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
224
|
+
tableRef.value.setValues([
|
|
225
|
+
{
|
|
226
|
+
rowKey: row.id,
|
|
227
|
+
values: { fieldShowType: showType }
|
|
228
|
+
}
|
|
229
|
+
]);
|
|
210
230
|
}
|
|
211
231
|
function changePageType(flag) {
|
|
212
232
|
for (let col of columns.value) {
|
|
@@ -217,26 +237,208 @@ const _sfc_main = defineComponent({
|
|
|
217
237
|
}
|
|
218
238
|
}
|
|
219
239
|
function enableQuery(id) {
|
|
220
|
-
tableRef.value.setValues([
|
|
240
|
+
tableRef.value.setValues([
|
|
241
|
+
{
|
|
242
|
+
rowKey: id,
|
|
243
|
+
values: { isQuery: "1" }
|
|
244
|
+
}
|
|
245
|
+
]);
|
|
246
|
+
}
|
|
247
|
+
const [registerModal, { openModal }] = useModal();
|
|
248
|
+
const [registerFieldModal, { openModal: openFieldModal }] = useModal();
|
|
249
|
+
function showConfigButton(props) {
|
|
250
|
+
if (props.row.fieldShowType.indexOf("link_table") >= 0) {
|
|
251
|
+
return true;
|
|
252
|
+
} else {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function showFieldConfig(props) {
|
|
257
|
+
let { row } = props;
|
|
258
|
+
let { checkTable } = tables;
|
|
259
|
+
if (checkTable) {
|
|
260
|
+
let checkTableValue = checkTable.value.tableRef.getTableData({ rowIds: [row.id] })[0];
|
|
261
|
+
if (props.row.fieldShowType == "link_table") {
|
|
262
|
+
let record = getLinkTableModalData(row, checkTableValue);
|
|
263
|
+
openModal(true, {
|
|
264
|
+
record,
|
|
265
|
+
fieldName: row.dbFieldName
|
|
266
|
+
});
|
|
267
|
+
} else if (props.row.fieldShowType == "link_table_field") {
|
|
268
|
+
let data = getLinkTableFieldData(row, checkTableValue);
|
|
269
|
+
openFieldModal(true, data);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function getLinkTableFieldData(row, checkTableValue) {
|
|
274
|
+
let tableData = tableRef.value.getTableData();
|
|
275
|
+
let pageTableData = tableData.filter((item) => item.fieldShowType == "link_table");
|
|
276
|
+
let tableAndFieldsMap = {};
|
|
277
|
+
if (pageTableData && pageTableData.length > 0) {
|
|
278
|
+
let checkTableData = tables.checkTable.value.tableRef.getTableData();
|
|
279
|
+
for (let pageTable of pageTableData) {
|
|
280
|
+
let tempArray = checkTableData.filter((i) => i.dbFieldName == pageTable.dbFieldName);
|
|
281
|
+
if (tempArray && tempArray.length > 0) {
|
|
282
|
+
let item = tempArray[0];
|
|
283
|
+
tableAndFieldsMap[item.dbFieldName] = {
|
|
284
|
+
title: pageTable.dbFieldTxt,
|
|
285
|
+
table: item.dictTable,
|
|
286
|
+
fields: item.dictText
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
const { dictTable, dictText } = checkTableValue;
|
|
292
|
+
const { id, dbFieldTxt } = row;
|
|
293
|
+
let record = {
|
|
221
294
|
rowKey: id,
|
|
222
|
-
|
|
223
|
-
|
|
295
|
+
dbFieldTxt,
|
|
296
|
+
dictText,
|
|
297
|
+
dictTable
|
|
298
|
+
};
|
|
299
|
+
return {
|
|
300
|
+
record,
|
|
301
|
+
tableAndFieldsMap
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function getLinkTableModalData(row, checkTableValue) {
|
|
305
|
+
const { id, dbFieldTxt, fieldExtendJson } = row;
|
|
306
|
+
const { dictTable, dictText } = checkTableValue;
|
|
307
|
+
let result = {
|
|
308
|
+
rowKey: id,
|
|
309
|
+
dbFieldTxt,
|
|
310
|
+
dictTable
|
|
311
|
+
};
|
|
312
|
+
if (dictText) {
|
|
313
|
+
let arr = dictText.split(",");
|
|
314
|
+
result["titleField"] = arr[0];
|
|
315
|
+
if (arr.length > 1) {
|
|
316
|
+
result["otherFields"] = dictText.substring(dictText.indexOf(",") + 1);
|
|
317
|
+
}
|
|
318
|
+
} else {
|
|
319
|
+
result["titleField"] = "";
|
|
320
|
+
result["otherFields"] = "";
|
|
321
|
+
}
|
|
322
|
+
if (fieldExtendJson) {
|
|
323
|
+
try {
|
|
324
|
+
let json = JSON.parse(fieldExtendJson);
|
|
325
|
+
if (json.multiSelect) {
|
|
326
|
+
result["multiSelect"] = json.multiSelect;
|
|
327
|
+
} else {
|
|
328
|
+
result["multiSelect"] = false;
|
|
329
|
+
}
|
|
330
|
+
if (json.showType) {
|
|
331
|
+
result["showType"] = json.showType;
|
|
332
|
+
} else {
|
|
333
|
+
result["showType"] = "card";
|
|
334
|
+
}
|
|
335
|
+
if (json.imageField) {
|
|
336
|
+
result["imageField"] = json.imageField;
|
|
337
|
+
} else {
|
|
338
|
+
result["imageField"] = "";
|
|
339
|
+
}
|
|
340
|
+
} catch (e) {
|
|
341
|
+
console.error("\u89E3\u6790\u6269\u5C55\u53C2\u6570\u51FA\u9519", fieldExtendJson);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
function handleConfigData(record) {
|
|
347
|
+
const { multiSelect, showType, imageField, fieldName } = record;
|
|
348
|
+
let extJson = { showType, multiSelect, imageField };
|
|
349
|
+
let values = [{ rowKey: record.rowKey, values: { fieldExtendJson: JSON.stringify(extJson), dbFieldTxt: record.dbFieldTxt } }];
|
|
350
|
+
tableRef.value.setValues(values);
|
|
351
|
+
let { checkTable, dbTable } = tables;
|
|
352
|
+
if (dbTable) {
|
|
353
|
+
let dbTableValues = [{ rowKey: record.rowKey, values: { dbFieldTxt: record.dbFieldTxt } }];
|
|
354
|
+
dbTable.value.tableRef.setValues(dbTableValues);
|
|
355
|
+
}
|
|
356
|
+
if (checkTable) {
|
|
357
|
+
let dictText = record.titleField;
|
|
358
|
+
if (record.otherFields) {
|
|
359
|
+
dictText += "," + record.otherFields;
|
|
360
|
+
}
|
|
361
|
+
const { dictTable, dictField } = record;
|
|
362
|
+
let temp = {
|
|
363
|
+
dictTable,
|
|
364
|
+
dictField,
|
|
365
|
+
dictText,
|
|
366
|
+
dbFieldName: fieldName
|
|
367
|
+
};
|
|
368
|
+
let dbTableValues = [{ rowKey: record.rowKey, values: temp }];
|
|
369
|
+
checkTable.value.tableRef.setValues(dbTableValues);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
function handleFieldConfigData(record) {
|
|
373
|
+
const { dbFieldTxt, dictTable, dictText, rowKey } = record;
|
|
374
|
+
let values = [{ rowKey, values: { dbFieldTxt } }];
|
|
375
|
+
tableRef.value.setValues(values);
|
|
376
|
+
let { checkTable, dbTable } = tables;
|
|
377
|
+
if (dbTable) {
|
|
378
|
+
let tableValues = [{ rowKey, values: { dbFieldTxt, dbIsPersist: "0" } }];
|
|
379
|
+
dbTable.value.tableRef.setValues(tableValues);
|
|
380
|
+
}
|
|
381
|
+
if (checkTable) {
|
|
382
|
+
let tableValues = [{ rowKey, values: { dictTable, dictText } }];
|
|
383
|
+
checkTable.value.tableRef.setValues(tableValues);
|
|
384
|
+
}
|
|
224
385
|
}
|
|
225
|
-
return __spreadProps(__spreadValues({}, setup), {
|
|
386
|
+
return __spreadProps(__spreadValues({}, setup), {
|
|
387
|
+
columns,
|
|
388
|
+
enableQuery,
|
|
389
|
+
syncFieldShowType,
|
|
390
|
+
changePageType,
|
|
391
|
+
showConfigButton,
|
|
392
|
+
showFieldConfig,
|
|
393
|
+
registerModal,
|
|
394
|
+
handleConfigData,
|
|
395
|
+
registerFieldModal,
|
|
396
|
+
handleFieldConfigData
|
|
397
|
+
});
|
|
226
398
|
}
|
|
227
399
|
});
|
|
228
400
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
401
|
+
const _component_a_button = resolveComponent("a-button");
|
|
229
402
|
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
403
|
+
const _component_link_table_config_modal = resolveComponent("link-table-config-modal");
|
|
404
|
+
const _component_link_table_field_config_modal = resolveComponent("link-table-field-config-modal");
|
|
405
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
406
|
+
createVNode(_component_JVxeTable, mergeProps({
|
|
407
|
+
ref: "tableRef",
|
|
408
|
+
"row-class-name": "online-config-page",
|
|
409
|
+
rowNumber: "",
|
|
410
|
+
keyboardEdit: "",
|
|
411
|
+
maxHeight: _ctx.tableHeight.noToolbar,
|
|
412
|
+
loading: _ctx.loading,
|
|
413
|
+
columns: _ctx.columns,
|
|
414
|
+
dataSource: _ctx.dataSource,
|
|
415
|
+
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
416
|
+
}, _ctx.tableProps), {
|
|
417
|
+
fieldConfig: withCtx((props) => [
|
|
418
|
+
_ctx.showConfigButton(props) ? (openBlock(), createBlock(_component_a_button, {
|
|
419
|
+
key: 0,
|
|
420
|
+
type: "primary",
|
|
421
|
+
size: "small",
|
|
422
|
+
ghost: "",
|
|
423
|
+
onClick: ($event) => _ctx.showFieldConfig(props)
|
|
424
|
+
}, {
|
|
425
|
+
default: withCtx(() => [
|
|
426
|
+
createTextVNode("\u6253\u5F00\u914D\u7F6E")
|
|
427
|
+
]),
|
|
428
|
+
_: 2
|
|
429
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
}, 16, ["maxHeight", "loading", "columns", "dataSource"]),
|
|
433
|
+
createVNode(_component_link_table_config_modal, {
|
|
434
|
+
onRegister: _ctx.registerModal,
|
|
435
|
+
onSuccess: _ctx.handleConfigData
|
|
436
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
437
|
+
createVNode(_component_link_table_field_config_modal, {
|
|
438
|
+
onRegister: _ctx.registerFieldModal,
|
|
439
|
+
onSuccess: _ctx.handleFieldConfigData
|
|
440
|
+
}, null, 8, ["onRegister", "onSuccess"])
|
|
441
|
+
], 64);
|
|
240
442
|
}
|
|
241
|
-
var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
443
|
+
var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eb3d4aa4"]]);
|
|
242
444
|
export { PageAttributeTable as default };
|
package/ProcessOnlineForm.js
CHANGED
|
@@ -18,8 +18,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import
|
|
22
|
-
import { defineComponent, ref, watch, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, withCtx,
|
|
21
|
+
import OnlineForm from "./OnlineForm.js";
|
|
22
|
+
import { defineComponent, ref, watch, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
|
|
23
23
|
import { defHttp } from "/@/utils/http/axios";
|
|
24
24
|
import { g as getRefPromise } from "./useAutoForm.js";
|
|
25
25
|
import { _ as _export_sfc } from "./index.js";
|
|
@@ -27,20 +27,40 @@ import "/@/hooks/web/useMessage";
|
|
|
27
27
|
import "/@/components/Form/index";
|
|
28
28
|
import "./FormSchemaFactory.js";
|
|
29
29
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
30
|
+
import "/@/utils";
|
|
30
31
|
import "/@/components/Loading";
|
|
31
|
-
import "
|
|
32
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
33
|
+
import "/@/utils/auth";
|
|
34
|
+
import "@ant-design/icons-vue";
|
|
35
|
+
import "/@/hooks/core/useContext";
|
|
36
|
+
import "/@/utils/mitt";
|
|
37
|
+
import "/@/components/Modal";
|
|
38
|
+
import "./pick.js";
|
|
39
|
+
import "./_flatRest.js";
|
|
40
|
+
import "./isArray.js";
|
|
41
|
+
import "./toString.js";
|
|
42
|
+
import "./_arrayPush.js";
|
|
43
|
+
import "./omit.js";
|
|
44
|
+
import "./_baseClone.js";
|
|
45
|
+
import "./_baseSlice.js";
|
|
32
46
|
import "/@/views/system/user/user.api";
|
|
47
|
+
import "./_commonjsHelpers.js";
|
|
33
48
|
import "/@/store/modules/user";
|
|
34
|
-
import "/@/utils";
|
|
35
49
|
import "/@/utils/desform/customExpression";
|
|
36
50
|
import "/@/components/Form/src/componentMap";
|
|
37
|
-
import "
|
|
38
|
-
import "/@/
|
|
51
|
+
import "/@/store/modules/permission";
|
|
52
|
+
import "/@/utils/propTypes";
|
|
53
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
54
|
+
import "/@/utils/common/compUtils";
|
|
55
|
+
import "/@/components/Table";
|
|
56
|
+
import "/@/hooks/system/useListPage";
|
|
39
57
|
import "vue-router";
|
|
40
|
-
import "
|
|
41
|
-
import "
|
|
42
|
-
import "./
|
|
43
|
-
import "
|
|
58
|
+
import "/@/components/Form/src/utils/Area";
|
|
59
|
+
import "/@/components/Preview/index";
|
|
60
|
+
import "./LinkTableListPiece.js";
|
|
61
|
+
import "@vueuse/core";
|
|
62
|
+
import "./JModalTip.js";
|
|
63
|
+
import "ant-design-vue";
|
|
44
64
|
var ProcessOnlineForm_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
45
65
|
const _sfc_main = defineComponent({
|
|
46
66
|
name: "ProcessOnlineForm",
|
|
@@ -73,12 +93,16 @@ const _sfc_main = defineComponent({
|
|
|
73
93
|
const isTreeForm = ref(false);
|
|
74
94
|
const pidFieldName = ref("");
|
|
75
95
|
const spinLoading = ref(false);
|
|
76
|
-
watch(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
96
|
+
watch(
|
|
97
|
+
() => props.tableName,
|
|
98
|
+
(val) => {
|
|
99
|
+
if (!val) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
loadFormItems();
|
|
103
|
+
},
|
|
104
|
+
{ immediate: true }
|
|
105
|
+
);
|
|
82
106
|
function loadFormItems() {
|
|
83
107
|
return __async(this, null, function* () {
|
|
84
108
|
spinLoading.value = true;
|
|
@@ -138,7 +162,6 @@ const _hoisted_2 = {
|
|
|
138
162
|
key: 0,
|
|
139
163
|
style: { "width": "100%", "text-align": "center", "margin-top": "5px" }
|
|
140
164
|
};
|
|
141
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u63D0 \u4EA4 ");
|
|
142
165
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
143
166
|
const _component_a_button = resolveComponent("a-button");
|
|
144
167
|
const _component_online_form = resolveComponent("online-form");
|
|
@@ -166,7 +189,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
189
|
loading: _ctx.buttonLoading
|
|
167
190
|
}, {
|
|
168
191
|
default: withCtx(() => [
|
|
169
|
-
|
|
192
|
+
createTextVNode(" \u63D0 \u4EA4 ")
|
|
170
193
|
]),
|
|
171
194
|
_: 1
|
|
172
195
|
}, 8, ["onClick", "loading"])
|
package/QueryTable.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock } from "vue";
|
|
20
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
|
|
21
21
|
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
22
22
|
import { u as useTableSync } from "./useTableSync.js";
|
|
23
23
|
import { _ as _export_sfc } from "./index.js";
|
|
@@ -26,12 +26,13 @@ import "/@/utils/dict";
|
|
|
26
26
|
import "/@/utils/dict/JDictSelectUtil";
|
|
27
27
|
import "/@/utils/uuid";
|
|
28
28
|
import "./pick.js";
|
|
29
|
+
import "./_flatRest.js";
|
|
29
30
|
import "./isArray.js";
|
|
30
31
|
import "./toString.js";
|
|
31
32
|
import "./_arrayPush.js";
|
|
32
|
-
import "/@/
|
|
33
|
+
import "/@/utils/http/axios";
|
|
33
34
|
import "/@/hooks/web/useMessage";
|
|
34
|
-
import "
|
|
35
|
+
import "@vueuse/core";
|
|
35
36
|
const _sfc_main = defineComponent({
|
|
36
37
|
name: "QueryTable",
|
|
37
38
|
emits: ["query"],
|
|
@@ -112,7 +113,7 @@ const _sfc_main = defineComponent({
|
|
|
112
113
|
});
|
|
113
114
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
114
115
|
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
115
|
-
return openBlock(), createBlock(_component_JVxeTable, {
|
|
116
|
+
return openBlock(), createBlock(_component_JVxeTable, mergeProps({
|
|
116
117
|
ref: "tableRef",
|
|
117
118
|
rowNumber: "",
|
|
118
119
|
keyboardEdit: "",
|
|
@@ -122,7 +123,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122
123
|
dataSource: _ctx.dataSource,
|
|
123
124
|
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
124
125
|
onValueChange: _ctx.handleChange
|
|
125
|
-
}, null,
|
|
126
|
+
}, _ctx.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]);
|
|
126
127
|
}
|
|
127
128
|
var QueryTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
128
129
|
export { QueryTable as default };
|
package/README.md
CHANGED
|
@@ -7,17 +7,12 @@
|
|
|
7
7
|
yarn add @jeecg/online
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
```javascript
|
|
11
|
-
src/main.js
|
|
12
10
|
|
|
13
|
-
require('@jeecg/antd-online-mini')
|
|
14
|
-
require('@jeecg/antd-online-mini/dist/OnlineForm.css')
|
|
15
|
-
```
|
|
16
11
|
|
|
17
12
|
## Description
|
|
18
13
|
|
|
19
14
|
```
|
|
20
|
-
|
|
21
|
-
1
|
|
22
|
-
2
|
|
15
|
+
JeecgBoot 在线低代码功能
|
|
16
|
+
1、在线表单开发
|
|
17
|
+
2、在线报表开发
|
|
23
18
|
```
|
package/_arrayPush.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as baseGetTag, r as root,
|
|
1
|
+
import { b as baseGetTag, r as root, a as isObjectLike } from "./isArray.js";
|
|
2
2
|
function isObject(value) {
|
|
3
3
|
var type = typeof value;
|
|
4
4
|
return value != null && (type == "object" || type == "function");
|
|
@@ -40,7 +40,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
40
40
|
var funcProto = Function.prototype, objectProto$4 = Object.prototype;
|
|
41
41
|
var funcToString = funcProto.toString;
|
|
42
42
|
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
43
|
-
var reIsNative = RegExp(
|
|
43
|
+
var reIsNative = RegExp(
|
|
44
|
+
"^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
45
|
+
);
|
|
44
46
|
function baseIsNative(value) {
|
|
45
47
|
if (!isObject(value) || isMasked(value)) {
|
|
46
48
|
return false;
|
|
@@ -273,4 +275,4 @@ function arrayPush(array, values) {
|
|
|
273
275
|
}
|
|
274
276
|
return array;
|
|
275
277
|
}
|
|
276
|
-
export { ListCache as L,
|
|
278
|
+
export { ListCache as L, MapCache as M, isIndex as a, isArguments$1 as b, isObject as c, assignValue as d, defineProperty$1 as e, arrayPush as f, getNative as g, baseAssignValue as h, isLength as i, isFunction as j, Map$1 as k, toSource as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getNative,
|
|
2
|
-
import { r as root,
|
|
1
|
+
import { g as getNative, c as isObject, h as baseAssignValue, d as assignValue, i as isLength, j as isFunction, b as isArguments, a as isIndex, L as ListCache, k as Map, M as MapCache, f as arrayPush, t as toSource } from "./_arrayPush.js";
|
|
2
|
+
import { r as root, a as isObjectLike, b as baseGetTag, f as freeGlobal, i as isArray, S as Symbol$1 } from "./isArray.js";
|
|
3
3
|
var WeakMap = getNative(root, "WeakMap");
|
|
4
4
|
var WeakMap$1 = WeakMap;
|
|
5
5
|
var objectCreate = Object.create;
|
|
@@ -402,14 +402,14 @@ function baseIsSet(value) {
|
|
|
402
402
|
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
|
|
403
403
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
404
404
|
var isSet$1 = isSet;
|
|
405
|
-
var CLONE_DEEP_FLAG
|
|
405
|
+
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
|
|
406
406
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
407
407
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
408
408
|
var cloneableTags = {};
|
|
409
409
|
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
410
410
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
411
411
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
412
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG
|
|
412
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
|
413
413
|
if (customizer) {
|
|
414
414
|
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
415
415
|
}
|
|
@@ -468,8 +468,4 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
468
468
|
});
|
|
469
469
|
return result;
|
|
470
470
|
}
|
|
471
|
-
|
|
472
|
-
function cloneDeep(value) {
|
|
473
|
-
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
474
|
-
}
|
|
475
|
-
export { cloneDeep as c };
|
|
471
|
+
export { getAllKeysIn as a, baseClone as b, copyObject as c, getPrototype$1 as g };
|
package/_baseSlice.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function baseSlice(array, start, end) {
|
|
2
|
+
var index = -1, length = array.length;
|
|
3
|
+
if (start < 0) {
|
|
4
|
+
start = -start > length ? 0 : length + start;
|
|
5
|
+
}
|
|
6
|
+
end = end > length ? length : end;
|
|
7
|
+
if (end < 0) {
|
|
8
|
+
end += length;
|
|
9
|
+
}
|
|
10
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
11
|
+
start >>>= 0;
|
|
12
|
+
var result = Array(length);
|
|
13
|
+
while (++index < length) {
|
|
14
|
+
result[index] = array[index + start];
|
|
15
|
+
}
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
export { baseSlice as b };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
export { commonjsGlobal as c, getDefaultExportFromCjs as g };
|