@jeecg/online 3.4.3-beta → 3.4.4-RC
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AuthFieldConfig.js +1 -1
- package/CgformCopyList.js +3 -1
- package/CgformModal.js +19 -2
- package/CgreportModal.js +1 -0
- package/CheckDictTable.js +1 -1
- package/DetailForm.js +14 -10
- package/EnhanceJsHistory.js +1 -1
- package/EnhanceJsModal.js +7 -0
- package/ExtendConfigModal.js +1 -1
- package/FieldExtendJsonModal.js +270 -0
- package/FormSchemaFactory.js +150 -10
- package/LinkTableConfigModal.js +1 -1
- package/OnlineAutoList.js +3 -3
- package/OnlineAutoModal.js +7 -3
- package/OnlineAutoTreeList.js +3 -3
- package/OnlineDetailModal.js +1 -1
- package/OnlineForm.js +64 -41
- package/OnlineFormDetail.js +1 -1
- package/OnlineQueryForm.js +8 -4
- package/OnlineSearchFormItem.js +3 -3
- package/OnlineSelectCascade.js +27 -30
- package/PageAttributeTable.js +68 -27
- package/README.md +6 -1
- package/{OnlineSuperQuery.js → SuperQuery.js} +215 -127
- package/SuperQueryValComponent.js +8 -0
- package/{OnlineSuperQueryValComponent.vue_vue_type_script_lang.js → SuperQueryValComponent.vue_vue_type_script_lang.js} +15 -3
- package/_arrayPush.js +1 -1
- package/_baseClone.js +1 -1
- package/_flatRest.js +1 -1
- package/cgform.data.js +8 -8
- package/clipboard.js +565 -0
- package/index.js +16 -5
- package/index2.js +3 -1
- package/index3.js +33 -571
- package/isArray.js +1 -1
- package/main.index.js +2 -2
- package/omit.js +1 -1
- package/package.json +1 -1
- package/pick.js +1 -1
- package/style.css +1 -1
- package/toString.js +1 -1
- package/useAutoForm.js +84 -48
- package/useCgformList.js +97 -5
- package/useListButton.js +8 -4
- package/useSchemas.js +18 -4
- package/OnlineSuperQueryValComponent.js +0 -9
package/OnlineSelectCascade.js
CHANGED
|
@@ -18,7 +18,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock,
|
|
21
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
|
|
22
22
|
import { defHttp } from "/@/utils/http/axios";
|
|
23
23
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
24
24
|
import { _ as _export_sfc } from "./index.js";
|
|
@@ -38,7 +38,7 @@ const _sfc_main = defineComponent({
|
|
|
38
38
|
condition: { type: String, default: "" },
|
|
39
39
|
value: { type: String, default: "" },
|
|
40
40
|
isNumber: { type: Boolean, default: false },
|
|
41
|
-
placeholder: { type: String, default: "\u8BF7\u9009\
|
|
41
|
+
placeholder: { type: String, default: "\u8BF7\u9009\u62E9" }
|
|
42
42
|
},
|
|
43
43
|
emits: ["change", "next"],
|
|
44
44
|
setup(props, { emit }) {
|
|
@@ -198,34 +198,31 @@ const _hoisted_1 = ["title"];
|
|
|
198
198
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
199
199
|
const _component_a_select_option = resolveComponent("a-select-option");
|
|
200
200
|
const _component_a_select = resolveComponent("a-select");
|
|
201
|
-
return openBlock(),
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
_: 1
|
|
227
|
-
}, 8, ["placeholder", "value", "onChange"])
|
|
228
|
-
], 64);
|
|
201
|
+
return openBlock(), createBlock(_component_a_select, {
|
|
202
|
+
placeholder: _ctx.placeholder,
|
|
203
|
+
value: _ctx.selectedValue,
|
|
204
|
+
onChange: _ctx.handleChange,
|
|
205
|
+
allowClear: "",
|
|
206
|
+
style: { "width": "100%" }
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dictOptions, (item, index) => {
|
|
210
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
211
|
+
key: index,
|
|
212
|
+
value: item.store
|
|
213
|
+
}, {
|
|
214
|
+
default: withCtx(() => [
|
|
215
|
+
createElementVNode("span", {
|
|
216
|
+
style: { "display": "inline-block", "width": "100%" },
|
|
217
|
+
title: item.label
|
|
218
|
+
}, toDisplayString(item.label), 9, _hoisted_1)
|
|
219
|
+
]),
|
|
220
|
+
_: 2
|
|
221
|
+
}, 1032, ["value"]);
|
|
222
|
+
}), 128))
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["placeholder", "value", "onChange"]);
|
|
229
226
|
}
|
|
230
227
|
var OnlineSelectCascade = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
231
228
|
export { OnlineSelectCascade as default };
|
package/PageAttributeTable.js
CHANGED
|
@@ -22,6 +22,7 @@ import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
|
22
22
|
import { u as useTableSync } from "./useTableSync.js";
|
|
23
23
|
import LinkTableConfigModal from "./LinkTableConfigModal.js";
|
|
24
24
|
import LinkTableFieldConfigModal from "./LinkTableFieldConfigModal.js";
|
|
25
|
+
import FieldExtendJsonModal from "./FieldExtendJsonModal.js";
|
|
25
26
|
import { useModal } from "/@/components/Modal";
|
|
26
27
|
import { _ as _export_sfc } from "./index.js";
|
|
27
28
|
import "./cgform.data.js";
|
|
@@ -49,25 +50,25 @@ const commonPageOptions = [
|
|
|
49
50
|
{ title: "\u5355\u9009\u6846", value: "radio" },
|
|
50
51
|
{ title: "\u591A\u9009\u6846", value: "checkbox" },
|
|
51
52
|
{ title: "\u5F00\u5173", value: "switch" },
|
|
52
|
-
{ title: "\u65E5\u671F(
|
|
53
|
-
{ title: "\u65E5\u671F\
|
|
54
|
-
{ title: "\u65F6\u95F4
|
|
53
|
+
{ title: "\u65E5\u671F(\u5E74\u6708\u65E5)", value: "date" },
|
|
54
|
+
{ title: "\u65E5\u671F(\u5E74\u6708\u65E5\u65F6\u5206\u79D2)", value: "datetime" },
|
|
55
|
+
{ title: "\u65F6\u95F4(HH:mm:ss)", value: "time" },
|
|
55
56
|
{ title: "\u6587\u4EF6", value: "file" },
|
|
56
57
|
{ title: "\u56FE\u7247", value: "image" },
|
|
57
58
|
{ title: "\u591A\u884C\u6587\u672C", value: "textarea" },
|
|
58
|
-
{ title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
|
|
59
|
-
{ title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
|
|
60
|
-
{ title: "Popup\u5F39\u6846", value: "popup" },
|
|
61
|
-
{ title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
|
|
62
|
-
{ title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
|
|
63
|
-
{ title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
|
|
64
|
-
{ title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
|
|
65
|
-
{ title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
|
|
66
59
|
{ title: "\u5BCC\u6587\u672C", value: "umeditor" },
|
|
67
60
|
{ title: "MarkDown", value: "markdown" },
|
|
61
|
+
{ title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
|
|
62
|
+
{ title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
|
|
63
|
+
{ title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
|
|
64
|
+
{ title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
|
|
68
65
|
{ title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
|
|
69
|
-
{ title: "\
|
|
70
|
-
{ title: "\
|
|
66
|
+
{ title: "Popup\u5F39\u6846", value: "popup" },
|
|
67
|
+
{ title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
|
|
68
|
+
{ title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
|
|
69
|
+
{ title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
|
|
70
|
+
{ title: "\u81EA\u5B9A\u4E49\u6811\u63A7\u4EF6", value: "sel_tree" },
|
|
71
|
+
{ title: "\u8054\u52A8\u7EC4\u4EF6", value: "link_down" }
|
|
71
72
|
];
|
|
72
73
|
const subTablePageOptions = [
|
|
73
74
|
{ title: "\u6587\u672C\u6846", value: "text" },
|
|
@@ -84,13 +85,15 @@ const subTablePageOptions = [
|
|
|
84
85
|
{ title: "popup\u5F39\u51FA\u6846", value: "popup" },
|
|
85
86
|
{ title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
|
|
86
87
|
{ title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
|
|
88
|
+
{ title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
|
|
87
89
|
{ title: "\u591A\u884C\u6587\u672C", value: "textarea" }
|
|
88
90
|
];
|
|
89
91
|
const _sfc_main = defineComponent({
|
|
90
92
|
name: "PageAttributeTable",
|
|
91
93
|
components: {
|
|
92
94
|
LinkTableConfigModal,
|
|
93
|
-
LinkTableFieldConfigModal
|
|
95
|
+
LinkTableFieldConfigModal,
|
|
96
|
+
FieldExtendJsonModal
|
|
94
97
|
},
|
|
95
98
|
setup() {
|
|
96
99
|
const columns = ref([
|
|
@@ -146,8 +149,9 @@ const _sfc_main = defineComponent({
|
|
|
146
149
|
title: "\u63A7\u4EF6\u957F\u5EA6",
|
|
147
150
|
key: "fieldLength",
|
|
148
151
|
width: 120,
|
|
152
|
+
titleHelp: { message: "\u6B64\u957F\u5EA6\u53EA\u5BF9\u5B50\u8868\u5217\u5B57\u6BB5\u5BBD\u5EA6\u6709\u6548\uFF01" },
|
|
149
153
|
type: JVxeTypes.inputNumber,
|
|
150
|
-
defaultValue:
|
|
154
|
+
defaultValue: 200,
|
|
151
155
|
placeholder: "\u8BF7\u8F93\u5165${title}",
|
|
152
156
|
validateRules: [{ required: true, message: "${title}\u4E0D\u80FD\u4E3A\u7A7A" }]
|
|
153
157
|
},
|
|
@@ -181,21 +185,21 @@ const _sfc_main = defineComponent({
|
|
|
181
185
|
defaultValue: ""
|
|
182
186
|
},
|
|
183
187
|
{
|
|
184
|
-
title: "\
|
|
185
|
-
key: "
|
|
186
|
-
width:
|
|
188
|
+
title: "\u5B9A\u4E49\u8F6C\u6362\u5668",
|
|
189
|
+
key: "converter",
|
|
190
|
+
width: 150,
|
|
187
191
|
type: JVxeTypes.input,
|
|
188
192
|
defaultValue: ""
|
|
189
193
|
},
|
|
190
194
|
{
|
|
191
|
-
title: "\
|
|
192
|
-
key: "
|
|
193
|
-
width:
|
|
195
|
+
title: "\u6269\u5C55\u53C2\u6570",
|
|
196
|
+
key: "fieldExtendJson",
|
|
197
|
+
width: 120,
|
|
194
198
|
type: JVxeTypes.input,
|
|
195
199
|
defaultValue: ""
|
|
196
200
|
},
|
|
197
201
|
{
|
|
198
|
-
title: "\
|
|
202
|
+
title: "\u66F4\u591A\u914D\u7F6E",
|
|
199
203
|
minWidth: 100,
|
|
200
204
|
key: "fieldConfig",
|
|
201
205
|
type: JVxeTypes.slot,
|
|
@@ -247,11 +251,19 @@ const _sfc_main = defineComponent({
|
|
|
247
251
|
}
|
|
248
252
|
const [registerModal, { openModal }] = useModal();
|
|
249
253
|
const [registerFieldModal, { openModal: openFieldModal }] = useModal();
|
|
254
|
+
const [registerExtJsonModal, { openModal: openExtJsonModal }] = useModal();
|
|
250
255
|
function showConfigButton(props) {
|
|
251
|
-
if (props.row.
|
|
256
|
+
if (props.row.dbFieldName == "id") {
|
|
257
|
+
return false;
|
|
258
|
+
} else {
|
|
252
259
|
return true;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function openConfig(props) {
|
|
263
|
+
if (props.row.fieldShowType.indexOf("link_table") >= 0) {
|
|
264
|
+
showFieldConfig(props);
|
|
253
265
|
} else {
|
|
254
|
-
|
|
266
|
+
showExtJsonConfig(props);
|
|
255
267
|
}
|
|
256
268
|
}
|
|
257
269
|
function showFieldConfig(props) {
|
|
@@ -384,6 +396,27 @@ const _sfc_main = defineComponent({
|
|
|
384
396
|
checkTable.value.tableRef.setValues(tableValues);
|
|
385
397
|
}
|
|
386
398
|
}
|
|
399
|
+
function showExtJsonConfig(props) {
|
|
400
|
+
let jsonStr = props.row.fieldExtendJson || "";
|
|
401
|
+
let id = props.rowId;
|
|
402
|
+
let fieldShowType = props.row.fieldShowType || "";
|
|
403
|
+
let sortFlag = props.row.sortFlag || "0";
|
|
404
|
+
openExtJsonModal(true, {
|
|
405
|
+
jsonStr,
|
|
406
|
+
fieldShowType,
|
|
407
|
+
sortFlag,
|
|
408
|
+
id
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
function handleExtJson(data, rowKey) {
|
|
412
|
+
let values;
|
|
413
|
+
if (data && Object.keys(data).length > 0) {
|
|
414
|
+
values = [{ rowKey, values: { fieldExtendJson: JSON.stringify(data) } }];
|
|
415
|
+
} else {
|
|
416
|
+
values = [{ rowKey, values: { fieldExtendJson: "" } }];
|
|
417
|
+
}
|
|
418
|
+
tableRef.value.setValues(values);
|
|
419
|
+
}
|
|
387
420
|
return __spreadProps(__spreadValues({}, setup), {
|
|
388
421
|
columns,
|
|
389
422
|
enableQuery,
|
|
@@ -391,6 +424,9 @@ const _sfc_main = defineComponent({
|
|
|
391
424
|
changePageType,
|
|
392
425
|
showConfigButton,
|
|
393
426
|
showFieldConfig,
|
|
427
|
+
registerExtJsonModal,
|
|
428
|
+
handleExtJson,
|
|
429
|
+
openConfig,
|
|
394
430
|
registerModal,
|
|
395
431
|
handleConfigData,
|
|
396
432
|
registerFieldModal,
|
|
@@ -403,6 +439,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
403
439
|
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
404
440
|
const _component_link_table_config_modal = resolveComponent("link-table-config-modal");
|
|
405
441
|
const _component_link_table_field_config_modal = resolveComponent("link-table-field-config-modal");
|
|
442
|
+
const _component_FieldExtendJsonModal = resolveComponent("FieldExtendJsonModal");
|
|
406
443
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
407
444
|
createVNode(_component_JVxeTable, mergeProps({
|
|
408
445
|
ref: "tableRef",
|
|
@@ -421,10 +458,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
421
458
|
type: "primary",
|
|
422
459
|
size: "small",
|
|
423
460
|
ghost: "",
|
|
424
|
-
onClick: ($event) => _ctx.
|
|
461
|
+
onClick: ($event) => _ctx.openConfig(props)
|
|
425
462
|
}, {
|
|
426
463
|
default: withCtx(() => [
|
|
427
|
-
createTextVNode("\
|
|
464
|
+
createTextVNode("\u9AD8\u7EA7\u914D\u7F6E")
|
|
428
465
|
]),
|
|
429
466
|
_: 2
|
|
430
467
|
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
@@ -438,8 +475,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
475
|
createVNode(_component_link_table_field_config_modal, {
|
|
439
476
|
onRegister: _ctx.registerFieldModal,
|
|
440
477
|
onSuccess: _ctx.handleFieldConfigData
|
|
478
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
479
|
+
createVNode(_component_FieldExtendJsonModal, {
|
|
480
|
+
onRegister: _ctx.registerExtJsonModal,
|
|
481
|
+
onSuccess: _ctx.handleExtJson
|
|
441
482
|
}, null, 8, ["onRegister", "onSuccess"])
|
|
442
483
|
], 64);
|
|
443
484
|
}
|
|
444
|
-
var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
485
|
+
var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-58928976"]]);
|
|
445
486
|
export { PageAttributeTable as default };
|