super-page-designer 2.0.89 → 2.0.93
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/dist/es/components/design/utils/assemblys-config.js +2494 -2033
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/utils/page-table-util.d.ts +2 -1
- package/dist/es/components/design/utils/page-table-util.js +18 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +5 -6
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +79 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +26 -7
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +27 -19
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +30 -18
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +81 -531
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +713 -0
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +44 -13
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/object-design.vue.js +13 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +18 -0
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +24 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -34
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-base.vue.js +85 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-event.vue.js +30 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-style.vue.js +51 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue2.js +42 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +58 -0
- package/dist/es/components/design/views/design/page-design.vue.js +3 -2
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +8 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +55 -11
- package/dist/es/stores/page-store.js +2 -9
- package/dist/es/style.css +627 -8
- package/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/form/common/{icon-set-dialog.vue3.js → icon-set-dialog.vue2.js} +0 -0
|
@@ -173,6 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
173
|
default: withCtx((scope) => [
|
|
174
174
|
createVNode(BindVariable, {
|
|
175
175
|
modelValue: scope.row.target,
|
|
176
|
+
needData: true,
|
|
176
177
|
paramTypes: ["data", "page"],
|
|
177
178
|
"onUpdate:modelValue": (val) => afterBindLabelVariable(val, scope.row)
|
|
178
179
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main from "./icon-set-dialog.
|
|
1
|
+
import _sfc_main from "./icon-set-dialog.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const IconSetDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4aa5ce08"]]);
|
package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js
CHANGED
|
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
default: withCtx(() => [
|
|
81
81
|
createVNode(_component_el_collapse, {
|
|
82
82
|
modelValue: openCollapseItems.value,
|
|
83
|
-
"onUpdate:modelValue": _cache[
|
|
83
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => openCollapseItems.value = $event),
|
|
84
84
|
style: { "margin-top": "6px" }
|
|
85
85
|
}, {
|
|
86
86
|
default: withCtx(() => [
|
|
@@ -176,7 +176,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
176
|
]),
|
|
177
177
|
_: 1
|
|
178
178
|
}, 512), [
|
|
179
|
-
[
|
|
179
|
+
[
|
|
180
|
+
vShow,
|
|
181
|
+
(!__props.configure.props.base.type || __props.configure.props.base.type != "week" && __props.configure.props.base.type != "year") && __props.configure.props.base.dateScope
|
|
182
|
+
]
|
|
180
183
|
]),
|
|
181
184
|
withDirectives(createVNode(_component_el_form_item, {
|
|
182
185
|
label: "默认值2",
|
|
@@ -193,7 +196,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
196
|
]),
|
|
194
197
|
_: 1
|
|
195
198
|
}, 512), [
|
|
196
|
-
[
|
|
199
|
+
[
|
|
200
|
+
vShow,
|
|
201
|
+
(!__props.configure.props.base.type || __props.configure.props.base.type != "week" && __props.configure.props.base.type != "year") && __props.configure.props.base.dateScope
|
|
202
|
+
]
|
|
197
203
|
]),
|
|
198
204
|
!isTable.value ? (openBlock(), createBlock(_component_el_form_item, {
|
|
199
205
|
key: 1,
|
|
@@ -415,7 +421,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
415
421
|
]),
|
|
416
422
|
_: 1
|
|
417
423
|
}, 512), [
|
|
418
|
-
[
|
|
424
|
+
[
|
|
425
|
+
vShow,
|
|
426
|
+
!__props.configure.props.base.type || __props.configure.props.base.type != "week" && __props.configure.props.base.type != "year"
|
|
427
|
+
]
|
|
419
428
|
]),
|
|
420
429
|
withDirectives(createVNode(_component_el_form_item, {
|
|
421
430
|
label: "快捷选项",
|
|
@@ -434,7 +443,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
434
443
|
]),
|
|
435
444
|
_: 1
|
|
436
445
|
}, 512), [
|
|
437
|
-
[
|
|
446
|
+
[
|
|
447
|
+
vShow,
|
|
448
|
+
!__props.configure.props.base.type || __props.configure.props.base.type != "week" && __props.configure.props.base.type != "month" && __props.configure.props.base.type != "year"
|
|
449
|
+
]
|
|
438
450
|
]),
|
|
439
451
|
withDirectives(createVNode(_component_el_checkbox, { value: "yesterday" }, {
|
|
440
452
|
default: withCtx(() => [
|
|
@@ -442,7 +454,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
442
454
|
]),
|
|
443
455
|
_: 1
|
|
444
456
|
}, 512), [
|
|
445
|
-
[
|
|
457
|
+
[
|
|
458
|
+
vShow,
|
|
459
|
+
!__props.configure.props.base.type || __props.configure.props.base.type != "week" && __props.configure.props.base.type != "month" && __props.configure.props.base.type != "year"
|
|
460
|
+
]
|
|
446
461
|
]),
|
|
447
462
|
withDirectives(createVNode(_component_el_checkbox, { value: "oneWeek" }, {
|
|
448
463
|
default: withCtx(() => [
|
|
@@ -450,7 +465,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
450
465
|
]),
|
|
451
466
|
_: 1
|
|
452
467
|
}, 512), [
|
|
453
|
-
[
|
|
468
|
+
[
|
|
469
|
+
vShow,
|
|
470
|
+
!__props.configure.props.base.type || __props.configure.props.base.type != "month" && __props.configure.props.base.type != "year"
|
|
471
|
+
]
|
|
454
472
|
]),
|
|
455
473
|
withDirectives(createVNode(_component_el_checkbox, { value: "oneMonth" }, {
|
|
456
474
|
default: withCtx(() => [
|
|
@@ -547,7 +565,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
547
565
|
[vShow, __props.configure.props.base.type != "time"]
|
|
548
566
|
]),
|
|
549
567
|
createVNode(_component_el_form_item, {
|
|
550
|
-
label: "
|
|
568
|
+
label: "显示格式化",
|
|
551
569
|
class: "amb-design-attr-item"
|
|
552
570
|
}, {
|
|
553
571
|
default: withCtx(() => [
|
|
@@ -559,6 +577,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
559
577
|
]),
|
|
560
578
|
_: 1
|
|
561
579
|
}),
|
|
580
|
+
createVNode(_component_el_form_item, {
|
|
581
|
+
label: "值格式化",
|
|
582
|
+
class: "amb-design-attr-item"
|
|
583
|
+
}, {
|
|
584
|
+
default: withCtx(() => [
|
|
585
|
+
createVNode(_component_el_input, {
|
|
586
|
+
modelValue: __props.configure.props.base.valueFormat,
|
|
587
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.base.valueFormat = $event),
|
|
588
|
+
placeholder: "请输入"
|
|
589
|
+
}, null, 8, ["modelValue"])
|
|
590
|
+
]),
|
|
591
|
+
_: 1
|
|
592
|
+
}),
|
|
562
593
|
createVNode(_component_el_form_item, {
|
|
563
594
|
label: "尺寸",
|
|
564
595
|
class: "amb-design-attr-item"
|
|
@@ -566,7 +597,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
566
597
|
default: withCtx(() => [
|
|
567
598
|
createVNode(_component_el_radio_group, {
|
|
568
599
|
modelValue: __props.configure.props.base.size,
|
|
569
|
-
"onUpdate:modelValue": _cache[
|
|
600
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.base.size = $event),
|
|
570
601
|
class: "ml-4"
|
|
571
602
|
}, {
|
|
572
603
|
default: withCtx(() => [
|
|
@@ -601,7 +632,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
601
632
|
default: withCtx(() => [
|
|
602
633
|
createVNode(_component_el_radio_group, {
|
|
603
634
|
modelValue: __props.configure.props.base.state,
|
|
604
|
-
"onUpdate:modelValue": _cache[
|
|
635
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => __props.configure.props.base.state = $event),
|
|
605
636
|
class: "ml-4"
|
|
606
637
|
}, {
|
|
607
638
|
default: withCtx(() => [
|
|
@@ -651,7 +682,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
651
682
|
default: withCtx(() => [
|
|
652
683
|
createVNode(_component_el_checkbox, {
|
|
653
684
|
modelValue: __props.configure.props.verification.required,
|
|
654
|
-
"onUpdate:modelValue": _cache[
|
|
685
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => __props.configure.props.verification.required = $event),
|
|
655
686
|
label: "必填"
|
|
656
687
|
}, null, 8, ["modelValue"])
|
|
657
688
|
]),
|
|
@@ -667,7 +698,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
667
698
|
createVNode(_component_el_checkbox, {
|
|
668
699
|
label: "自定义",
|
|
669
700
|
modelValue: __props.configure.props.verification.custom,
|
|
670
|
-
"onUpdate:modelValue": _cache[
|
|
701
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => __props.configure.props.verification.custom = $event)
|
|
671
702
|
}, null, 8, ["modelValue"])
|
|
672
703
|
]),
|
|
673
704
|
_: 1
|
|
@@ -679,7 +710,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
679
710
|
clearable: "",
|
|
680
711
|
disabled: !__props.configure.props.verification.custom,
|
|
681
712
|
modelValue: __props.configure.props.verification.customFunc,
|
|
682
|
-
"onUpdate:modelValue": _cache[
|
|
713
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => __props.configure.props.verification.customFunc = $event),
|
|
683
714
|
placeholder: "请选择校验方法",
|
|
684
715
|
filterable: ""
|
|
685
716
|
}, {
|
package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js
CHANGED
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
if (propBase.timestamp) {
|
|
66
66
|
tempProps.valueFormat = "x";
|
|
67
67
|
} else {
|
|
68
|
-
tempProps.valueFormat = null;
|
|
68
|
+
tempProps.valueFormat = propBase.valueFormat ? propBase.valueFormat : null;
|
|
69
69
|
}
|
|
70
70
|
tempProps.sourceType = dateType;
|
|
71
71
|
tempProps.dateScopeDetails = propBase.dateScopeDetails;
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js
CHANGED
|
@@ -79,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
default: withCtx(() => [
|
|
80
80
|
createVNode(unref(FsUploadNew), {
|
|
81
81
|
disabled: designProperty.value.state == "disabled",
|
|
82
|
+
style: { "width": "100%" },
|
|
82
83
|
displayType: designProperty.value.displayType,
|
|
83
84
|
accept: designProperty.value.accept,
|
|
84
85
|
multiple: designProperty.value.multiple,
|
|
@@ -7,7 +7,7 @@ import { PageDimensions } from "../../utils/interfaces/page-design-types.js";
|
|
|
7
7
|
import { batchUpdatePermissions, batchRemovePermissions } from "../../utils/page-permission-util.js";
|
|
8
8
|
import { watchValidate, getRefrencePropMap, removePropFromRefrencePropMap } from "../../utils/form-design-util.js";
|
|
9
9
|
import { usePageContextStore } from "../../../../stores/page-store.js";
|
|
10
|
-
import "
|
|
10
|
+
import { getListCode } from "super-page-runtime";
|
|
11
11
|
const _hoisted_1 = { class: "amb-widget-item-tool" };
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
__name: "object-design",
|
|
@@ -46,11 +46,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
if (!props.pageDesign.tableUuids) {
|
|
47
47
|
props.pageDesign.tableUuids = [];
|
|
48
48
|
}
|
|
49
|
+
if (!props.pageDesign.listCodesMap) {
|
|
50
|
+
props.pageDesign.listCodesMap = {};
|
|
51
|
+
}
|
|
49
52
|
setTimeout(() => {
|
|
50
|
-
var _a, _b, _c, _d;
|
|
53
|
+
var _a, _b, _c, _d, _e;
|
|
51
54
|
if (!((_b = (_a = props.pageDesign) == null ? void 0 : _a.tableUuids) == null ? void 0 : _b.includes(props.configure.uuid))) {
|
|
52
55
|
(_d = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(props.configure.uuid);
|
|
53
56
|
}
|
|
57
|
+
if (!((_e = props.pageDesign) == null ? void 0 : _e.listCodesMap)) {
|
|
58
|
+
const listCode = getListCode(props.pageDesign.code, props.pageDesign.version, props.configure.uuid);
|
|
59
|
+
props.pageDesign.listCodesMap[listCode] = props.configure.code;
|
|
60
|
+
}
|
|
54
61
|
}, 500);
|
|
55
62
|
onUnmounted(() => {
|
|
56
63
|
var _a, _b, _c, _d;
|
|
@@ -58,6 +65,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
65
|
if (uuidIndex != void 0 && uuidIndex > -1) {
|
|
59
66
|
(_d = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(uuidIndex, 1);
|
|
60
67
|
}
|
|
68
|
+
const listCode = getListCode(props.pageDesign.code, props.pageDesign.version, props.configure.uuid);
|
|
69
|
+
if (props.pageDesign.listCodesMap[listCode]) {
|
|
70
|
+
delete props.pageDesign.listCodesMap[listCode];
|
|
71
|
+
}
|
|
61
72
|
});
|
|
62
73
|
}
|
|
63
74
|
}
|
|
@@ -259,12 +259,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
}, null, 8, ["judgeHeavyList", "fieldList", "systemCode", "systemVersion"])) : createCommentVNode("", true),
|
|
260
260
|
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
261
261
|
key: 2,
|
|
262
|
-
|
|
262
|
+
list: _ctx.configure.props.notIdInitializationList,
|
|
263
263
|
fieldNameList: _ctx.configure.modelFields,
|
|
264
264
|
fieldMap: _ctx.configure.modelFieldsMap,
|
|
265
265
|
onClose: closeCombination,
|
|
266
266
|
onSave: saveCondition
|
|
267
|
-
}, null, 8, ["
|
|
267
|
+
}, null, 8, ["list", "fieldNameList", "fieldMap"])) : createCommentVNode("", true)
|
|
268
268
|
]),
|
|
269
269
|
_: 1
|
|
270
270
|
});
|
|
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
const systemVersion = tableInfo.systemVersion ? tableInfo.systemVersion : props.configure.systemVersion;
|
|
72
72
|
queryTableFields(systemCode, systemVersion, tableInfo.name).then((tableFields) => {
|
|
73
73
|
props.configure.modelFields = tableFields;
|
|
74
|
-
changeFeieldToMap(props.configure.modelFieldsMap, tableFields);
|
|
74
|
+
props.configure.modelFieldsMap = changeFeieldToMap(props.configure.modelFieldsMap, tableFields);
|
|
75
75
|
pageContextUtil.setPageContext(props.configure);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -11,6 +11,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
11
11
|
type: ObjectConstructor;
|
|
12
12
|
default: () => void;
|
|
13
13
|
};
|
|
14
|
+
dataFieldNameList: {
|
|
15
|
+
type: ArrayConstructor;
|
|
16
|
+
default: () => any[];
|
|
17
|
+
};
|
|
18
|
+
paramTypes: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
14
22
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
23
|
close: (...args: any[]) => void;
|
|
16
24
|
remove: (...args: any[]) => void;
|
|
@@ -28,13 +36,23 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
36
|
type: ObjectConstructor;
|
|
29
37
|
default: () => void;
|
|
30
38
|
};
|
|
39
|
+
dataFieldNameList: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
default: () => any[];
|
|
42
|
+
};
|
|
43
|
+
paramTypes: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: any;
|
|
46
|
+
};
|
|
31
47
|
}>> & {
|
|
32
48
|
onClose?: (...args: any[]) => any;
|
|
33
49
|
onRemove?: (...args: any[]) => any;
|
|
34
50
|
onSave?: (...args: any[]) => any;
|
|
35
51
|
}, {
|
|
36
52
|
list: unknown[];
|
|
53
|
+
paramTypes: unknown[];
|
|
37
54
|
fieldNameList: unknown[];
|
|
38
55
|
fieldMap: Record<string, any>;
|
|
56
|
+
dataFieldNameList: unknown[];
|
|
39
57
|
}, {}>;
|
|
40
58
|
export default _default;
|
|
@@ -3,6 +3,7 @@ import { CirclePlus, Delete, Top, Bottom } from "@element-plus/icons-vue";
|
|
|
3
3
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
import { getOperators } from "../../../../utils/data-table-util.js";
|
|
6
|
+
import { getModelOptionsByFields } from "../../../../utils/page-table-util.js";
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "combination",
|
|
8
9
|
props: {
|
|
@@ -18,6 +19,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
19
|
type: Object,
|
|
19
20
|
default: () => {
|
|
20
21
|
}
|
|
22
|
+
},
|
|
23
|
+
dataFieldNameList: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: () => []
|
|
26
|
+
},
|
|
27
|
+
paramTypes: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: null
|
|
21
30
|
}
|
|
22
31
|
},
|
|
23
32
|
emits: ["remove", "save", "close"],
|
|
@@ -27,6 +36,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
36
|
const currentRow = ref({});
|
|
28
37
|
const tableData = ref([]);
|
|
29
38
|
const operationArr = ref([]);
|
|
39
|
+
const objModelOptions = ref([]);
|
|
40
|
+
if (props.fieldNameList && props.fieldNameList.length > 0) {
|
|
41
|
+
objModelOptions.value = getModelOptionsByFields(props.fieldNameList);
|
|
42
|
+
}
|
|
43
|
+
const dataModelOptions = ref([]);
|
|
44
|
+
let dataFieldList = props.dataFieldNameList;
|
|
45
|
+
if (!props.dataFieldNameList || props.dataFieldNameList.length === 0) {
|
|
46
|
+
dataModelOptions.value = objModelOptions.value;
|
|
47
|
+
} else {
|
|
48
|
+
dataModelOptions.value = getModelOptionsByFields(dataFieldList);
|
|
49
|
+
}
|
|
30
50
|
initTable();
|
|
31
51
|
function initTable() {
|
|
32
52
|
tableData.value = props.list;
|
|
@@ -288,8 +308,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
288
308
|
createVNode(BindVariable, {
|
|
289
309
|
size: "default",
|
|
290
310
|
modelValue: scope.row.propValue,
|
|
311
|
+
dataModelOptions: dataModelOptions.value,
|
|
312
|
+
objModelOptions: objModelOptions.value,
|
|
313
|
+
paramTypes: __props.paramTypes,
|
|
291
314
|
"onUpdate:modelValue": (data) => afterBindDefaultValue(data, scope.row)
|
|
292
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
315
|
+
}, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])
|
|
293
316
|
]),
|
|
294
317
|
_: 1
|
|
295
318
|
}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
5
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
6
6
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -24,9 +24,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
25
25
|
const _component_el_col = resolveComponent("el-col");
|
|
26
26
|
const _component_el_row = resolveComponent("el-row");
|
|
27
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
28
|
-
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
29
|
-
const _component_el_space = resolveComponent("el-space");
|
|
30
27
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
31
28
|
const _component_el_radio = resolveComponent("el-radio");
|
|
32
29
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
@@ -39,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
36
|
default: withCtx(() => [
|
|
40
37
|
createVNode(_component_el_collapse, {
|
|
41
38
|
modelValue: openCollapseItems.value,
|
|
42
|
-
"onUpdate:modelValue": _cache[
|
|
39
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => openCollapseItems.value = $event),
|
|
43
40
|
style: { "margin-top": "6px" }
|
|
44
41
|
}, {
|
|
45
42
|
default: withCtx(() => [
|
|
@@ -126,30 +123,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
123
|
})
|
|
127
124
|
]),
|
|
128
125
|
_: 1
|
|
129
|
-
}),
|
|
130
|
-
createVNode(_component_el_form_item, {
|
|
131
|
-
label: "环节名称",
|
|
132
|
-
class: "amb-design-attr-item"
|
|
133
|
-
}, {
|
|
134
|
-
default: withCtx(() => [
|
|
135
|
-
createVNode(_component_el_space, { wrap: "" }, {
|
|
136
|
-
default: withCtx(() => [
|
|
137
|
-
createVNode(_component_el_switch, {
|
|
138
|
-
modelValue: __props.configure.props.base.showActivityName,
|
|
139
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.base.showActivityName = $event),
|
|
140
|
-
"active-action-icon": unref(View),
|
|
141
|
-
"inactive-action-icon": unref(Hide)
|
|
142
|
-
}, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]),
|
|
143
|
-
__props.configure.props.base.showActivityName ? (openBlock(), createBlock(_component_el_color_picker, {
|
|
144
|
-
key: 0,
|
|
145
|
-
modelValue: __props.configure.props.base.activityNameColor,
|
|
146
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.activityNameColor = $event)
|
|
147
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
})
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
126
|
})
|
|
154
127
|
])
|
|
155
128
|
]),
|
|
@@ -169,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
169
142
|
default: withCtx(() => [
|
|
170
143
|
createVNode(_component_el_radio_group, {
|
|
171
144
|
modelValue: __props.configure.props.base.text,
|
|
172
|
-
"onUpdate:modelValue": _cache[
|
|
145
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.base.text = $event),
|
|
173
146
|
class: "ml-4"
|
|
174
147
|
}, {
|
|
175
148
|
default: withCtx(() => [
|
|
@@ -198,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
198
171
|
default: withCtx(() => [
|
|
199
172
|
createVNode(_component_el_radio_group, {
|
|
200
173
|
modelValue: __props.configure.props.base.size,
|
|
201
|
-
"onUpdate:modelValue": _cache[
|
|
174
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.size = $event),
|
|
202
175
|
class: "ml-4"
|
|
203
176
|
}, {
|
|
204
177
|
default: withCtx(() => [
|
|
@@ -233,7 +206,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
206
|
default: withCtx(() => [
|
|
234
207
|
createVNode(_component_el_radio_group, {
|
|
235
208
|
modelValue: __props.configure.props.base.plain,
|
|
236
|
-
"onUpdate:modelValue": _cache[
|
|
209
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.plain = $event),
|
|
237
210
|
class: "ml-4"
|
|
238
211
|
}, {
|
|
239
212
|
default: withCtx(() => [
|
|
@@ -262,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
262
235
|
default: withCtx(() => [
|
|
263
236
|
createVNode(_component_el_radio_group, {
|
|
264
237
|
modelValue: __props.configure.props.base.round,
|
|
265
|
-
"onUpdate:modelValue": _cache[
|
|
238
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.round = $event),
|
|
266
239
|
class: "ml-4"
|
|
267
240
|
}, {
|
|
268
241
|
default: withCtx(() => [
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode } from "vue";
|
|
2
|
+
import "../../../../utils/assemblys-config.js";
|
|
3
|
+
import _sfc_main$1 from "../../common/common-attr-size.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import "@element-plus/icons-vue";
|
|
6
|
+
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "workflownode-attr-base",
|
|
9
|
+
props: {
|
|
10
|
+
configure: Object,
|
|
11
|
+
default: () => ({ props: {} })
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const openCollapseItems = ref(["base"]);
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
const _component_el_input = resolveComponent("el-input");
|
|
17
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
18
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
19
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
20
|
+
const _component_el_form = resolveComponent("el-form");
|
|
21
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
22
|
+
"label-width": "80px",
|
|
23
|
+
size: "small"
|
|
24
|
+
}, {
|
|
25
|
+
default: withCtx(() => [
|
|
26
|
+
createVNode(_component_el_collapse, {
|
|
27
|
+
modelValue: openCollapseItems.value,
|
|
28
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => openCollapseItems.value = $event),
|
|
29
|
+
style: { "margin-top": "6px" }
|
|
30
|
+
}, {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
createVNode(_component_el_collapse_item, {
|
|
33
|
+
title: "基本",
|
|
34
|
+
name: "base",
|
|
35
|
+
class: "amb-design-attr-group-header"
|
|
36
|
+
}, {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
createElementVNode("div", _hoisted_1, [
|
|
39
|
+
createVNode(_component_el_form_item, {
|
|
40
|
+
label: "唯一编码",
|
|
41
|
+
class: "amb-design-attr-item"
|
|
42
|
+
}, {
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
createVNode(_component_el_input, {
|
|
45
|
+
modelValue: __props.configure.uuid,
|
|
46
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.uuid = $event),
|
|
47
|
+
readonly: "",
|
|
48
|
+
title: __props.configure.uuid
|
|
49
|
+
}, null, 8, ["modelValue", "title"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}),
|
|
53
|
+
createVNode(_component_el_form_item, {
|
|
54
|
+
label: "标题",
|
|
55
|
+
class: "amb-design-attr-item"
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
createVNode(_component_el_input, {
|
|
59
|
+
modelValue: __props.configure.props.base.title,
|
|
60
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.base.title = $event),
|
|
61
|
+
placeholder: "请输入"
|
|
62
|
+
}, null, 8, ["modelValue"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
])
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
71
|
+
key: __props.configure.uuid,
|
|
72
|
+
size: __props.configure.props.size
|
|
73
|
+
}, null, 8, ["size"]))
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}, 8, ["modelValue"])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
_sfc_main as default
|
|
85
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref } from "vue";
|
|
2
|
+
import AttrEvent from "../../form/common/attr-event.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "workflownode-attr-event",
|
|
5
|
+
props: {
|
|
6
|
+
configure: Object
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const props = __props;
|
|
10
|
+
const events = props.configure.events;
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
const _component_el_form = resolveComponent("el-form");
|
|
13
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
14
|
+
"label-width": "80px",
|
|
15
|
+
size: "small"
|
|
16
|
+
}, {
|
|
17
|
+
default: withCtx(() => [
|
|
18
|
+
createVNode(AttrEvent, {
|
|
19
|
+
configure: __props.configure,
|
|
20
|
+
events: unref(events)
|
|
21
|
+
}, null, 8, ["configure", "events"])
|
|
22
|
+
]),
|
|
23
|
+
_: 1
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_sfc_main as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../common/common-style-font-head.vue.js";
|
|
3
|
+
import _sfc_main$2 from "../../common/common-style-background.vue.js";
|
|
4
|
+
import _sfc_main$3 from "../../common/common-style-position.vue.js";
|
|
5
|
+
import _sfc_main$4 from "../../common/common-style-margin.vue.js";
|
|
6
|
+
import _sfc_main$5 from "../../common/common-style-padding.vue.js";
|
|
7
|
+
import _sfc_main$6 from "../../common/common-style-border.vue.js";
|
|
8
|
+
import _sfc_main$7 from "../../common/common-style-shadow.vue.js";
|
|
9
|
+
import _sfc_main$8 from "../../common/common-style-custom.vue.js";
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "workflownode-attr-style",
|
|
12
|
+
props: {
|
|
13
|
+
configure: Object
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const openCollapseItems = ref([]);
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
19
|
+
const _component_el_form = resolveComponent("el-form");
|
|
20
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
21
|
+
"label-width": "80px",
|
|
22
|
+
size: "small"
|
|
23
|
+
}, {
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
createVNode(_component_el_collapse, {
|
|
26
|
+
modelValue: openCollapseItems.value,
|
|
27
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => openCollapseItems.value = $event),
|
|
28
|
+
style: { "margin-top": "6px" }
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [
|
|
31
|
+
createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"]),
|
|
32
|
+
renderSlot(_ctx.$slots, "font", { row: __props.configure }),
|
|
33
|
+
createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]),
|
|
34
|
+
createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]),
|
|
35
|
+
createVNode(_sfc_main$4, { configure: __props.configure }, null, 8, ["configure"]),
|
|
36
|
+
createVNode(_sfc_main$5, { configure: __props.configure }, null, 8, ["configure"]),
|
|
37
|
+
createVNode(_sfc_main$6, { configure: __props.configure }, null, 8, ["configure"]),
|
|
38
|
+
createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]),
|
|
39
|
+
createVNode(_sfc_main$8, { configure: __props.configure }, null, 8, ["configure"])
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 8, ["modelValue"])
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
_sfc_main as default
|
|
51
|
+
};
|