super-page-designer 2.0.92 → 2.0.96
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 -2034
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +30 -19
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -3
- 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 +69 -534
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +731 -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/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/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-attr.vue3.js +1 -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/view/components/quick-add-dialog.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +53 -10
- package/dist/es/style.css +726 -107
- package/package.json +5 -5
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
|
});
|
|
@@ -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
|
+
import "../../form/common/dimension-input.vue.js";
|
|
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
|
+
};
|
package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue2.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, isRef, createElementVNode, withDirectives, vShow } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./workflownode-attr-base.vue.js";
|
|
3
|
+
import _sfc_main$2 from "./workflownode-attr-style.vue.js";
|
|
4
|
+
import AttrHeader from "../../form/common/attr-header.vue.js";
|
|
5
|
+
import _sfc_main$3 from "./workflownode-attr-event.vue.js";
|
|
6
|
+
const _hoisted_1 = { class: "amb-design-attr-content" };
|
|
7
|
+
const _hoisted_2 = { class: "amb-design-attr-list" };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "workflownode-attr",
|
|
10
|
+
props: {
|
|
11
|
+
configure: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({ title: "Text", props: { type: "input-text" } })
|
|
14
|
+
// 设置默认值
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
let currentConfigType = ref("base");
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
21
|
+
createVNode(AttrHeader, {
|
|
22
|
+
modelValue: unref(currentConfigType),
|
|
23
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
24
|
+
}, null, 8, ["modelValue"]),
|
|
25
|
+
createElementVNode("div", _hoisted_2, [
|
|
26
|
+
withDirectives(createVNode(_sfc_main$1, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
27
|
+
[vShow, unref(currentConfigType) === "base"]
|
|
28
|
+
]),
|
|
29
|
+
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
30
|
+
[vShow, unref(currentConfigType) === "style"]
|
|
31
|
+
]),
|
|
32
|
+
withDirectives(createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
33
|
+
[vShow, unref(currentConfigType) === "event"]
|
|
34
|
+
])
|
|
35
|
+
])
|
|
36
|
+
]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_sfc_main as default
|
|
42
|
+
};
|
package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-attr.vue3.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString } from "vue";
|
|
2
|
+
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
3
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "xxxxxx", -1);
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "workflownode-design",
|
|
6
|
+
props: {
|
|
7
|
+
configure: Object
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const designStyle = ref({});
|
|
12
|
+
const designClass = ref("");
|
|
13
|
+
const designHeaderStyle = ref({});
|
|
14
|
+
const designProperty = ref({});
|
|
15
|
+
function getRestsParameter() {
|
|
16
|
+
let defineProps = props.configure.props ? props.configure.props : {};
|
|
17
|
+
const propsBase = defineProps.base ? defineProps.base : {};
|
|
18
|
+
propsBase.title ? propsBase.title : "";
|
|
19
|
+
Object.assign(designProperty.value, propsBase);
|
|
20
|
+
}
|
|
21
|
+
watch(
|
|
22
|
+
props.configure.style,
|
|
23
|
+
() => {
|
|
24
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
25
|
+
props.configure.runtime.style = designStyle.value;
|
|
26
|
+
props.configure.runtime.class = designClass.value;
|
|
27
|
+
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
28
|
+
},
|
|
29
|
+
{ immediate: true }
|
|
30
|
+
);
|
|
31
|
+
watch(
|
|
32
|
+
props.configure.props,
|
|
33
|
+
() => {
|
|
34
|
+
caculateComponentProps(props.configure, designProperty);
|
|
35
|
+
console.log("designProperty", designProperty.value);
|
|
36
|
+
getRestsParameter();
|
|
37
|
+
props.configure.runtime.props = designProperty.value;
|
|
38
|
+
},
|
|
39
|
+
{ immediate: true }
|
|
40
|
+
);
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
class: normalizeClass(designClass.value),
|
|
44
|
+
style: normalizeStyle(designStyle.value)
|
|
45
|
+
}, [
|
|
46
|
+
createElementVNode("div", {
|
|
47
|
+
style: normalizeStyle(designHeaderStyle.value)
|
|
48
|
+
}, [
|
|
49
|
+
createElementVNode("span", null, toDisplayString(designProperty.value.title), 1),
|
|
50
|
+
_hoisted_1
|
|
51
|
+
], 4)
|
|
52
|
+
], 6);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
_sfc_main as default
|
|
58
|
+
};
|
|
@@ -266,7 +266,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
266
266
|
if (!tableItem.items) {
|
|
267
267
|
tableItem.items = [];
|
|
268
268
|
}
|
|
269
|
-
debugger;
|
|
270
269
|
let displayOrderStart = 2;
|
|
271
270
|
if (model.fieldInfos) {
|
|
272
271
|
const templateItem = tableItem.items[tableItem.items.length - 1];
|
|
@@ -282,6 +281,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
282
281
|
newColumn.props.base.name = f.title;
|
|
283
282
|
newColumn.props.base.listColumnFixed = "false";
|
|
284
283
|
newColumn.dataType = f.dataType;
|
|
284
|
+
newColumn.props.base.querySettingName = f.querySettingName;
|
|
285
285
|
if (f.align) {
|
|
286
286
|
newColumn.props.base.alignTittle = f.align;
|
|
287
287
|
}
|
|
@@ -7,12 +7,13 @@ import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
|
7
7
|
import { useDraggable } from "vue-draggable-plus";
|
|
8
8
|
const _hoisted_1 = { key: 0 };
|
|
9
9
|
const _hoisted_2 = { key: 0 };
|
|
10
|
-
const _hoisted_3 = {
|
|
11
|
-
const _hoisted_4 = {
|
|
10
|
+
const _hoisted_3 = { key: 0 };
|
|
11
|
+
const _hoisted_4 = { style: { "display": "flex" } };
|
|
12
12
|
const _hoisted_5 = { key: 0 };
|
|
13
|
-
const _hoisted_6 =
|
|
14
|
-
const _hoisted_7 =
|
|
13
|
+
const _hoisted_6 = { key: 0 };
|
|
14
|
+
const _hoisted_7 = ["title"];
|
|
15
15
|
const _hoisted_8 = { key: 0 };
|
|
16
|
+
const _hoisted_9 = { key: 0 };
|
|
16
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
18
|
__name: "quick-add-fields",
|
|
18
19
|
props: {
|
|
@@ -115,6 +116,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
116
|
label: "网址"
|
|
116
117
|
}
|
|
117
118
|
];
|
|
119
|
+
const querySettingOptions = [
|
|
120
|
+
{
|
|
121
|
+
value: "no",
|
|
122
|
+
label: "不查询"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: "normal",
|
|
126
|
+
label: "普通查询"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: "advanced",
|
|
130
|
+
label: "高级查询"
|
|
131
|
+
}
|
|
132
|
+
];
|
|
118
133
|
const formComponents = getFormComponentOptions();
|
|
119
134
|
const selRowUuid = ref(null);
|
|
120
135
|
function onMouseEnter(obj) {
|
|
@@ -420,12 +435,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
420
435
|
]),
|
|
421
436
|
_: 1
|
|
422
437
|
}),
|
|
438
|
+
createVNode(_component_el_table_column, {
|
|
439
|
+
prop: "querySettingName",
|
|
440
|
+
label: "查询",
|
|
441
|
+
width: "140"
|
|
442
|
+
}, {
|
|
443
|
+
default: withCtx((scope) => [
|
|
444
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_3, toDisplayString(scope.row.querySettingName), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
445
|
+
key: 1,
|
|
446
|
+
size: "small",
|
|
447
|
+
modelValue: scope.row.querySettingName,
|
|
448
|
+
"onUpdate:modelValue": ($event) => scope.row.querySettingName = $event,
|
|
449
|
+
clearable: "",
|
|
450
|
+
filterable: "",
|
|
451
|
+
placeholder: "请选择"
|
|
452
|
+
}, {
|
|
453
|
+
default: withCtx(() => [
|
|
454
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(querySettingOptions, (o) => {
|
|
455
|
+
return createVNode(_component_el_option, {
|
|
456
|
+
label: o.label,
|
|
457
|
+
value: o.value
|
|
458
|
+
}, null, 8, ["label", "value"]);
|
|
459
|
+
}), 64))
|
|
460
|
+
]),
|
|
461
|
+
_: 2
|
|
462
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]))
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
}),
|
|
423
466
|
createVNode(_component_el_table_column, {
|
|
424
467
|
prop: "componentName",
|
|
425
468
|
width: "120"
|
|
426
469
|
}, {
|
|
427
470
|
header: withCtx(() => [
|
|
428
|
-
createElementVNode("div",
|
|
471
|
+
createElementVNode("div", _hoisted_4, [
|
|
429
472
|
createTextVNode(" 组件 "),
|
|
430
473
|
withDirectives(createVNode(_component_el_checkbox, {
|
|
431
474
|
modelValue: allEditState.value,
|
|
@@ -441,7 +484,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
441
484
|
])
|
|
442
485
|
]),
|
|
443
486
|
default: withCtx((scope) => [
|
|
444
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
487
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_5, toDisplayString(scope.row.componentName), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
445
488
|
key: 1,
|
|
446
489
|
size: "small",
|
|
447
490
|
modelValue: scope.row.componentName,
|
|
@@ -469,7 +512,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
469
512
|
width: "70"
|
|
470
513
|
}, {
|
|
471
514
|
default: withCtx((scope) => [
|
|
472
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
515
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_6, toDisplayString(scope.row.state), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
473
516
|
key: 1,
|
|
474
517
|
size: "small",
|
|
475
518
|
disabled: !scope.row.componentName,
|
|
@@ -501,7 +544,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
501
544
|
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", {
|
|
502
545
|
key: 0,
|
|
503
546
|
title: scope.row.valid
|
|
504
|
-
}, toDisplayString(scope.row.valid), 9,
|
|
547
|
+
}, toDisplayString(scope.row.valid), 9, _hoisted_7)) : (openBlock(), createBlock(_component_el_select, {
|
|
505
548
|
key: 1,
|
|
506
549
|
disabled: !scope.row.componentName,
|
|
507
550
|
size: "small",
|
|
@@ -533,7 +576,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
533
576
|
width: "75"
|
|
534
577
|
}, {
|
|
535
578
|
default: withCtx((scope) => [
|
|
536
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
579
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_8, toDisplayString(scope.row.width), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
537
580
|
key: 1,
|
|
538
581
|
size: "small",
|
|
539
582
|
modelValue: scope.row.width,
|
|
@@ -561,7 +604,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
561
604
|
width: "70"
|
|
562
605
|
}, {
|
|
563
606
|
default: withCtx((scope) => [
|
|
564
|
-
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label",
|
|
607
|
+
scope.row.uuid != selRowUuid.value ? (openBlock(), createElementBlock("label", _hoisted_9, toDisplayString(scope.row.align), 1)) : (openBlock(), createBlock(_component_el_select, {
|
|
565
608
|
key: 1,
|
|
566
609
|
size: "small",
|
|
567
610
|
modelValue: scope.row.align,
|