fec-dev-designer 1.0.4 → 1.1.0
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/es/config-dev.js +7 -5
- package/es/node_modules/@element-plus/icons-vue/dist/index.js +126 -92
- package/es/node_modules/element-plus/es/components/result/index.js +7 -0
- package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
- package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
- package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
- package/es/src/api/index.js +5 -5
- package/es/src/components/EventConfigButton.vue.js +2 -2
- package/es/src/components/FieldSetMapping.vue.js +211 -0
- package/es/src/components/FieldSetMapping.vue2.js +4 -0
- package/es/src/components/FormulaEditorInput.vue.js +43 -38
- package/es/src/components/JsonDataDrawer.vue.js +1 -1
- package/es/src/components/OnlyFLowConfigButton.vue.js +102 -0
- package/es/src/components/OnlyFLowConfigButton.vue2.js +4 -0
- package/es/src/components/OptionConfig.vue.js +1 -1
- package/es/src/components/TemplateSelector.vue.js +45 -45
- package/es/src/components/ValueSelector.vue2.js +30 -24
- package/es/src/components/ValueSelectorPopover.vue2.js +1 -1
- package/es/src/layout/aside/index.vue.js +64 -60
- package/es/src/layout/index.vue.js +91 -54
- package/es/src/packages/dataSource/dataSource.vue.js +122 -118
- package/es/src/packages/dialog/index.vue.js +718 -0
- package/es/src/packages/dialog/index.vue2.js +4 -0
- package/es/src/packages/dialog/useDialogDialog.js +15 -0
- package/es/src/packages/event/index.vue2.js +1 -1
- package/es/src/packages/event/onlyFlow.vue.js +91 -0
- package/es/src/packages/event/onlyFlow.vue2.js +4 -0
- package/es/src/packages/event/useOnlyFlowDialog.js +15 -0
- package/es/src/packages/eventFlow/dialog/action/Dialog.vue.js +48 -0
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
- package/es/src/packages/eventFlow/dialog/action/config.js +12 -11
- package/es/src/packages/form/PageFooterSetting.vue.js +53 -58
- package/es/src/packages/form/aside/index.js +20 -4
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +70 -52
- package/es/src/packages/form/default.js +20 -19
- package/es/src/packages/form/formSetting.vue.js +72 -50
- package/es/src/packages/form/headerBtn.vue.js +84 -65
- package/es/src/packages/form/index.vue.js +247 -202
- package/es/src/packages/form/property/blank.vue.js +62 -0
- package/es/src/packages/form/property/index.vue.js +21 -20
- package/es/src/packages/form/property/pageFooterBtn.vue.js +39 -39
- package/es/src/packages/form/property/subTable.vue.js +61 -52
- package/es/src/packages/form/property/widgets.vue.js +385 -200
- package/es/src/packages/table/aside/index.js +1 -0
- package/es/src/packages/table/default.js +9 -1
- package/es/src/packages/table/headerBtn.vue.js +72 -54
- package/es/src/packages/table/property/widgets.vue.js +96 -85
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
- package/es/src/packages/table/tablePagination.vue.js +37 -45
- package/es/src/packages/table/tableSetting.vue.js +197 -196
- package/es/src/packages/utils/common.js +44 -35
- package/es/style.css +1 -1
- package/package.json +1 -1
package/es/src/api/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { post as r, get as
|
|
2
|
-
const
|
|
1
|
+
import { post as r, get as t, postForm as a } from "../axios/index.js";
|
|
2
|
+
const p = {
|
|
3
3
|
login4dev: () => r(`${$servers.base}/login4dev`),
|
|
4
|
-
getById: (e) =>
|
|
4
|
+
getById: (e, s = !0) => t(`${$servers.base}/design/getById/${e}`, s),
|
|
5
5
|
updateById: (e) => r(`${$servers.base}/template/sysTemplate/update4DesignerV5`, e),
|
|
6
6
|
findAllDic: () => r(`${$servers.base}/parm/sysParmDic/findAllDic`),
|
|
7
|
-
getDicDataByKey: (e) =>
|
|
7
|
+
getDicDataByKey: (e) => a(`${$servers.base}/parm/sysParmDic/getDicListByKeyFromCache`, { keyName: e }),
|
|
8
8
|
findTemplateByPagePop: (e) => r(`${$servers.base}/template/sysTemplate/findByPagePopV5`, e)
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
p as default
|
|
12
12
|
};
|
|
@@ -36,7 +36,7 @@ const O = { class: "condition-config-wrapper" }, T = {
|
|
|
36
36
|
onConfirm: Function
|
|
37
37
|
},
|
|
38
38
|
setup(e) {
|
|
39
|
-
const n = e, o = r(() => n.config), { eventDialogVisible: l, openEventDialog: p, EventDialog: g } = j(), c = r(() => o.value && o.value.length > 0), v = r(() => c.value ? `已设置(${o.value.length})
|
|
39
|
+
const n = e, o = r(() => n.config), { eventDialogVisible: l, openEventDialog: p, EventDialog: g } = j(), c = r(() => o.value && o.value.length > 0), v = r(() => c.value ? `已设置(${o.value.length})个事件` : "点击配置事件");
|
|
40
40
|
function C(s) {
|
|
41
41
|
n.onConfirm && n.onConfirm(s, n.item);
|
|
42
42
|
}
|
|
@@ -73,7 +73,7 @@ const O = { class: "condition-config-wrapper" }, T = {
|
|
|
73
73
|
], 64);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
}, M = /* @__PURE__ */ z(R, [["__scopeId", "data-v-
|
|
76
|
+
}, M = /* @__PURE__ */ z(R, [["__scopeId", "data-v-db416ffc"]]);
|
|
77
77
|
export {
|
|
78
78
|
M as default
|
|
79
79
|
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import "../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
|
+
import "../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
|
|
3
|
+
import "../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
4
|
+
import "../../node_modules/element-plus/theme-chalk/el-tag.css.js";
|
|
5
|
+
import "../../node_modules/element-plus/theme-chalk/el-option.css.js";
|
|
6
|
+
import "../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
7
|
+
import "../../node_modules/element-plus/theme-chalk/el-popper.css.js";
|
|
8
|
+
import "../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
9
|
+
import "../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
10
|
+
import { computed as g, watch as I, openBlock as o, createElementBlock as p, unref as d, createBlock as u, withCtx as r, createTextVNode as S, createElementVNode as n, toDisplayString as w, Fragment as f, renderList as m, createVNode as h, createCommentVNode as L } from "vue";
|
|
11
|
+
import { Plus as x, Delete as U } from "../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
12
|
+
import { getEditConfigDataFields as B, getEditConfigData as O } from "../packages/utils/common.js";
|
|
13
|
+
import "./FieldSetMapping.vue2.js";
|
|
14
|
+
import D from "../../_virtual/_plugin-vue_export-helper.js";
|
|
15
|
+
import { ElButton as $ } from "../../node_modules/element-plus/es/components/button/index.js";
|
|
16
|
+
import { ElOption as A, ElSelect as G, ElOptionGroup as P } from "../../node_modules/element-plus/es/components/select/index.js";
|
|
17
|
+
import { ElInput as T } from "../../node_modules/element-plus/es/components/input/index.js";
|
|
18
|
+
const j = { class: "field-mapping-container" }, q = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "mapping-table"
|
|
21
|
+
}, H = { class: "mapping-header" }, J = { class: "mapping-cell value-header" }, K = { class: "mapping-cell field-header" }, Q = { class: "mapping-body" }, R = { class: "mapping-cell value-cell" }, W = { class: "mapping-cell field-cell" }, X = { class: "mapping-cell action-cell" }, Y = { class: "mapping-footer" }, Z = {
|
|
22
|
+
__name: "FieldSetMapping",
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
// 表单字段的描述文本
|
|
29
|
+
fieldLabel: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "表单字段"
|
|
32
|
+
},
|
|
33
|
+
// 映射字段的描述文本
|
|
34
|
+
valueLabel: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "映射字段"
|
|
37
|
+
},
|
|
38
|
+
// 映射字段支持的选择项列表(可选)
|
|
39
|
+
valueOptions: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default: () => []
|
|
42
|
+
},
|
|
43
|
+
// 映射字段是否为选择模式(true: 下拉选择,false: 手动输入)
|
|
44
|
+
valueSelectMode: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:modelValue"],
|
|
50
|
+
setup(i, { emit: C }) {
|
|
51
|
+
const v = i, c = g({
|
|
52
|
+
get: () => v.modelValue,
|
|
53
|
+
set: (t) => F("update:modelValue", t)
|
|
54
|
+
}), F = C, y = g(() => (B() || []).map((e) => ({
|
|
55
|
+
id: e == null ? void 0 : e.id,
|
|
56
|
+
fieldId: e == null ? void 0 : e.id,
|
|
57
|
+
label: e == null ? void 0 : e.label
|
|
58
|
+
}))), b = g(() => {
|
|
59
|
+
const t = O();
|
|
60
|
+
return ((t == null ? void 0 : t.hiddenFields) || []).map((l) => ({
|
|
61
|
+
id: l == null ? void 0 : l.id,
|
|
62
|
+
fieldId: l == null ? void 0 : l.id,
|
|
63
|
+
label: l == null ? void 0 : l.label
|
|
64
|
+
}));
|
|
65
|
+
});
|
|
66
|
+
I(() => v.valueOptions, (t) => {
|
|
67
|
+
if (!v.valueSelectMode)
|
|
68
|
+
return;
|
|
69
|
+
const e = new Set(t.map((l) => l.fieldName));
|
|
70
|
+
c.value.forEach((l) => {
|
|
71
|
+
l.value && !e.has(l.value) && (l.value = "");
|
|
72
|
+
});
|
|
73
|
+
}, { deep: !0 });
|
|
74
|
+
function V() {
|
|
75
|
+
c.value.push({
|
|
76
|
+
id: Date.now(),
|
|
77
|
+
field: "",
|
|
78
|
+
value: ""
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function M(t) {
|
|
82
|
+
c.value.splice(t, 1);
|
|
83
|
+
}
|
|
84
|
+
return (t, e) => {
|
|
85
|
+
const l = $, _ = A, k = G, N = T, E = P;
|
|
86
|
+
return o(), p("div", j, [
|
|
87
|
+
d(c).length === 0 ? (o(), u(l, {
|
|
88
|
+
key: 0,
|
|
89
|
+
type: "primary",
|
|
90
|
+
size: "small",
|
|
91
|
+
icon: d(x),
|
|
92
|
+
link: "",
|
|
93
|
+
onClick: V
|
|
94
|
+
}, {
|
|
95
|
+
default: r(() => [...e[0] || (e[0] = [
|
|
96
|
+
S(" 新增字段映射 ", -1)
|
|
97
|
+
])]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["icon"])) : (o(), p("div", q, [
|
|
100
|
+
n("div", H, [
|
|
101
|
+
n("div", J, w(i.valueLabel), 1),
|
|
102
|
+
n("div", K, w(i.fieldLabel), 1),
|
|
103
|
+
e[1] || (e[1] = n("div", {
|
|
104
|
+
class: "mapping-cell action-header",
|
|
105
|
+
style: { width: "50px" }
|
|
106
|
+
}, null, -1))
|
|
107
|
+
]),
|
|
108
|
+
n("div", Q, [
|
|
109
|
+
(o(!0), p(f, null, m(d(c), (s, z) => (o(), p("div", {
|
|
110
|
+
key: s.id,
|
|
111
|
+
class: "mapping-row"
|
|
112
|
+
}, [
|
|
113
|
+
n("div", R, [
|
|
114
|
+
i.valueSelectMode ? (o(), u(k, {
|
|
115
|
+
key: 0,
|
|
116
|
+
modelValue: s.value,
|
|
117
|
+
"onUpdate:modelValue": (a) => s.value = a,
|
|
118
|
+
placeholder: `选择${i.valueLabel}`,
|
|
119
|
+
size: "small",
|
|
120
|
+
style: { width: "100%" },
|
|
121
|
+
filterable: "",
|
|
122
|
+
"allow-create": ""
|
|
123
|
+
}, {
|
|
124
|
+
default: r(() => [
|
|
125
|
+
(o(!0), p(f, null, m(i.valueOptions, (a) => (o(), u(_, {
|
|
126
|
+
key: a.fieldName,
|
|
127
|
+
label: a.label,
|
|
128
|
+
value: a.fieldName
|
|
129
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (o(), u(N, {
|
|
133
|
+
key: 1,
|
|
134
|
+
modelValue: s.value,
|
|
135
|
+
"onUpdate:modelValue": (a) => s.value = a,
|
|
136
|
+
placeholder: `输入${i.valueLabel}`,
|
|
137
|
+
size: "small"
|
|
138
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]))
|
|
139
|
+
]),
|
|
140
|
+
n("div", W, [
|
|
141
|
+
h(k, {
|
|
142
|
+
modelValue: s.field,
|
|
143
|
+
"onUpdate:modelValue": (a) => s.field = a,
|
|
144
|
+
placeholder: `选择${i.fieldLabel}`,
|
|
145
|
+
size: "small",
|
|
146
|
+
style: { width: "100%" }
|
|
147
|
+
}, {
|
|
148
|
+
default: r(() => [
|
|
149
|
+
d(y).length > 0 ? (o(), u(E, {
|
|
150
|
+
key: 0,
|
|
151
|
+
label: "表单字段"
|
|
152
|
+
}, {
|
|
153
|
+
default: r(() => [
|
|
154
|
+
(o(!0), p(f, null, m(d(y), (a) => (o(), u(_, {
|
|
155
|
+
key: a.fieldId,
|
|
156
|
+
label: a.label,
|
|
157
|
+
value: a.fieldId
|
|
158
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})) : L("", !0),
|
|
162
|
+
d(b).length > 0 ? (o(), u(E, {
|
|
163
|
+
key: 1,
|
|
164
|
+
label: "隐藏域"
|
|
165
|
+
}, {
|
|
166
|
+
default: r(() => [
|
|
167
|
+
(o(!0), p(f, null, m(d(b), (a) => (o(), u(_, {
|
|
168
|
+
key: a.id,
|
|
169
|
+
label: a.label,
|
|
170
|
+
value: a.id
|
|
171
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})) : L("", !0)
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
178
|
+
]),
|
|
179
|
+
n("div", X, [
|
|
180
|
+
h(l, {
|
|
181
|
+
type: "danger",
|
|
182
|
+
size: "small",
|
|
183
|
+
icon: d(U),
|
|
184
|
+
text: "",
|
|
185
|
+
onClick: (a) => M(z)
|
|
186
|
+
}, null, 8, ["icon", "onClick"])
|
|
187
|
+
])
|
|
188
|
+
]))), 128))
|
|
189
|
+
]),
|
|
190
|
+
n("div", Y, [
|
|
191
|
+
h(l, {
|
|
192
|
+
type: "primary",
|
|
193
|
+
size: "small",
|
|
194
|
+
icon: d(x),
|
|
195
|
+
link: "",
|
|
196
|
+
onClick: V
|
|
197
|
+
}, {
|
|
198
|
+
default: r(() => [...e[2] || (e[2] = [
|
|
199
|
+
S(" 新增字段映射 ", -1)
|
|
200
|
+
])]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["icon"])
|
|
203
|
+
])
|
|
204
|
+
]))
|
|
205
|
+
]);
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}, ge = /* @__PURE__ */ D(Z, [["__scopeId", "data-v-210d7584"]]);
|
|
209
|
+
export {
|
|
210
|
+
ge as default
|
|
211
|
+
};
|
|
@@ -3,11 +3,11 @@ import "../../node_modules/element-plus/theme-chalk/el-dialog.css.js";
|
|
|
3
3
|
import "../../node_modules/element-plus/theme-chalk/el-overlay.css.js";
|
|
4
4
|
import "../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
5
5
|
import "../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
6
|
-
import { computed as g, ref as s, openBlock as D, createElementBlock as b, Fragment as
|
|
7
|
-
import { Setting as
|
|
8
|
-
import
|
|
6
|
+
import { computed as g, ref as s, openBlock as D, createElementBlock as b, Fragment as L, createVNode as a, unref as n, isRef as V, withCtx as r, createElementVNode as F, createTextVNode as y } from "vue";
|
|
7
|
+
import { Setting as N } from "../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
8
|
+
import w from "../packages/formulaEditor/index.vue.js";
|
|
9
9
|
import "../packages/formulaEditor/core/functionCore.js";
|
|
10
|
-
import { getEditConfigDataFields as
|
|
10
|
+
import { getEditConfigDataFields as B } from "../packages/utils/common.js";
|
|
11
11
|
import { ElButton as S } from "../../node_modules/element-plus/es/components/button/index.js";
|
|
12
12
|
import { ElInput as T } from "../../node_modules/element-plus/es/components/input/index.js";
|
|
13
13
|
import { ElDialog as z } from "../../node_modules/element-plus/es/components/dialog/index.js";
|
|
@@ -29,92 +29,97 @@ const I = { class: "dialog-footer" }, Q = {
|
|
|
29
29
|
text: "",
|
|
30
30
|
marks: []
|
|
31
31
|
})
|
|
32
|
+
},
|
|
33
|
+
// 字段列表(可选,不传则从表单中获取)
|
|
34
|
+
fieldList: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default: null
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
emits: ["update:modelValue", "update:formulaConf"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
get: () =>
|
|
38
|
-
set: (l) =>
|
|
40
|
+
setup(p, { emit: C }) {
|
|
41
|
+
const t = p, m = C, u = g({
|
|
42
|
+
get: () => t.modelValue,
|
|
43
|
+
set: (l) => m("update:modelValue", l)
|
|
39
44
|
}), o = s(!1), f = s(null), c = s({
|
|
40
45
|
text: "",
|
|
41
46
|
marks: []
|
|
42
|
-
}),
|
|
47
|
+
}), v = g(() => t.fieldList && t.fieldList.length > 0 ? t.fieldList : (B() || []).map((e) => ({
|
|
43
48
|
id: e == null ? void 0 : e.id,
|
|
44
49
|
label: e == null ? void 0 : e.label,
|
|
45
50
|
fieldType: e == null ? void 0 : e.fieldType,
|
|
46
51
|
fieldName: e == null ? void 0 : e.fieldName
|
|
47
52
|
})));
|
|
48
|
-
function
|
|
53
|
+
function k() {
|
|
49
54
|
var l, e;
|
|
50
55
|
c.value = {
|
|
51
|
-
text: ((l =
|
|
52
|
-
marks: ((e =
|
|
56
|
+
text: ((l = t.formulaConf) == null ? void 0 : l.text) || "",
|
|
57
|
+
marks: ((e = t.formulaConf) == null ? void 0 : e.marks) || []
|
|
53
58
|
}, o.value = !0;
|
|
54
59
|
}
|
|
55
60
|
function x() {
|
|
56
61
|
const l = f.value.getData(), e = f.value.getDisplayData();
|
|
57
|
-
|
|
62
|
+
u.value = e, m("update:formulaConf", {
|
|
58
63
|
text: l.text,
|
|
59
64
|
marks: l.marks
|
|
60
65
|
}), o.value = !1;
|
|
61
66
|
}
|
|
62
67
|
return (l, e) => {
|
|
63
68
|
const i = S, _ = T, E = z;
|
|
64
|
-
return D(), b(
|
|
65
|
-
|
|
66
|
-
modelValue:
|
|
67
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
69
|
+
return D(), b(L, null, [
|
|
70
|
+
a(_, {
|
|
71
|
+
modelValue: n(u),
|
|
72
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => V(u) ? u.value = d : null),
|
|
68
73
|
placeholder: "配置公式",
|
|
69
74
|
readonly: ""
|
|
70
75
|
}, {
|
|
71
|
-
append:
|
|
72
|
-
|
|
73
|
-
icon:
|
|
74
|
-
onClick:
|
|
76
|
+
append: r(() => [
|
|
77
|
+
a(i, {
|
|
78
|
+
icon: n(N),
|
|
79
|
+
onClick: k
|
|
75
80
|
}, null, 8, ["icon"])
|
|
76
81
|
]),
|
|
77
82
|
_: 1
|
|
78
83
|
}, 8, ["modelValue"]),
|
|
79
|
-
|
|
80
|
-
modelValue:
|
|
81
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
84
|
+
a(E, {
|
|
85
|
+
modelValue: n(o),
|
|
86
|
+
"onUpdate:modelValue": e[2] || (e[2] = (d) => V(o) ? o.value = d : null),
|
|
82
87
|
width: "800px",
|
|
83
|
-
title:
|
|
88
|
+
title: p.title,
|
|
84
89
|
draggable: "",
|
|
85
90
|
overflow: "",
|
|
86
91
|
"append-to-body": "",
|
|
87
92
|
class: "fec-dev-designer-dialog"
|
|
88
93
|
}, {
|
|
89
|
-
footer:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
onClick: e[1] || (e[1] = (
|
|
94
|
+
footer: r(() => [
|
|
95
|
+
F("div", I, [
|
|
96
|
+
a(i, {
|
|
97
|
+
onClick: e[1] || (e[1] = (d) => o.value = !1),
|
|
93
98
|
size: "default"
|
|
94
99
|
}, {
|
|
95
|
-
default:
|
|
96
|
-
|
|
100
|
+
default: r(() => [...e[3] || (e[3] = [
|
|
101
|
+
y("取消", -1)
|
|
97
102
|
])]),
|
|
98
103
|
_: 1
|
|
99
104
|
}),
|
|
100
|
-
|
|
105
|
+
a(i, {
|
|
101
106
|
type: "primary",
|
|
102
107
|
onClick: x,
|
|
103
108
|
size: "default"
|
|
104
109
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
|
|
110
|
+
default: r(() => [...e[4] || (e[4] = [
|
|
111
|
+
y("确定", -1)
|
|
107
112
|
])]),
|
|
108
113
|
_: 1
|
|
109
114
|
})
|
|
110
115
|
])
|
|
111
116
|
]),
|
|
112
|
-
default:
|
|
113
|
-
|
|
117
|
+
default: r(() => [
|
|
118
|
+
a(n(w), {
|
|
114
119
|
ref_key: "formulaEditor",
|
|
115
120
|
ref: f,
|
|
116
|
-
formulaConf:
|
|
117
|
-
fieldList:
|
|
121
|
+
formulaConf: n(c),
|
|
122
|
+
fieldList: n(v)
|
|
118
123
|
}, null, 8, ["formulaConf", "fieldList"])
|
|
119
124
|
]),
|
|
120
125
|
_: 1
|
|
@@ -76,7 +76,7 @@ const B = { class: "drawer-header" }, S = { class: "json-stats" }, j = { class:
|
|
|
76
76
|
}, 8, ["modelValue"]);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
}, O = /* @__PURE__ */ D(C, [["__scopeId", "data-v-
|
|
79
|
+
}, O = /* @__PURE__ */ D(C, [["__scopeId", "data-v-c5c9ff2a"]]);
|
|
80
80
|
export {
|
|
81
81
|
O as default
|
|
82
82
|
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import "../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
|
+
import "../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
3
|
+
import { computed as a, resolveComponent as b, openBlock as f, createElementBlock as m, Fragment as B, createElementVNode as F, createVNode as n, normalizeStyle as V, unref as t, normalizeClass as D, withCtx as s, createTextVNode as E, toDisplayString as p, withModifiers as O, createCommentVNode as k, isRef as S } from "vue";
|
|
4
|
+
import { Setting as N, Delete as T } from "../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
5
|
+
import { useOnlyFlowDialog as j } from "../packages/event/useOnlyFlowDialog.js";
|
|
6
|
+
import { ElMessageBox as z } from "element-plus";
|
|
7
|
+
import "./OnlyFLowConfigButton.vue2.js";
|
|
8
|
+
import I from "../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
import { ElIcon as L } from "../../node_modules/element-plus/es/components/icon/index.js";
|
|
10
|
+
import { ElButton as M } from "../../node_modules/element-plus/es/components/button/index.js";
|
|
11
|
+
const R = { class: "condition-config-wrapper" }, U = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "condition-desc"
|
|
14
|
+
}, q = {
|
|
15
|
+
__name: "OnlyFLowConfigButton",
|
|
16
|
+
props: {
|
|
17
|
+
item: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: null
|
|
20
|
+
},
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: null
|
|
24
|
+
},
|
|
25
|
+
title: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "事件配置"
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
width: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "100%"
|
|
36
|
+
},
|
|
37
|
+
onConfirm: Function
|
|
38
|
+
},
|
|
39
|
+
setup(o) {
|
|
40
|
+
const e = o, l = a(() => e.config), { onlyFlowDialogVisible: r, openOnlyFlowDialog: g, OnlyFlowDialog: C } = j(), c = a(() => {
|
|
41
|
+
var i;
|
|
42
|
+
return l.value && ((i = l.value.next) == null ? void 0 : i.id) != "end";
|
|
43
|
+
}), y = a(() => c.value ? "已设置事件" : "点击配置事件");
|
|
44
|
+
function _(i) {
|
|
45
|
+
e.onConfirm && e.onConfirm(i, e.item);
|
|
46
|
+
}
|
|
47
|
+
function v() {
|
|
48
|
+
c.value && z.confirm("确定要删除当前的事件配置吗?", "提示", {
|
|
49
|
+
confirmButtonText: "确定",
|
|
50
|
+
cancelButtonText: "取消",
|
|
51
|
+
type: "warning"
|
|
52
|
+
}).then(() => {
|
|
53
|
+
e.onConfirm && e.onConfirm(null, e.item);
|
|
54
|
+
}).catch(() => {
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return (i, u) => {
|
|
58
|
+
const w = b("Edit"), d = L, x = M;
|
|
59
|
+
return f(), m(B, null, [
|
|
60
|
+
F("div", R, [
|
|
61
|
+
n(x, {
|
|
62
|
+
style: V({ width: o.width }),
|
|
63
|
+
icon: t(N),
|
|
64
|
+
class: D(["setting-btn", { "is-configured": t(c) }]),
|
|
65
|
+
onClick: t(g)
|
|
66
|
+
}, {
|
|
67
|
+
default: s(() => [
|
|
68
|
+
E(p(t(y)) + " ", 1),
|
|
69
|
+
n(d, { class: "edit-btn" }, {
|
|
70
|
+
default: s(() => [
|
|
71
|
+
n(w)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
n(d, {
|
|
76
|
+
class: "delete-btn",
|
|
77
|
+
onClick: O(v, ["stop"])
|
|
78
|
+
}, {
|
|
79
|
+
default: s(() => [
|
|
80
|
+
n(t(T))
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["style", "icon", "class", "onClick"]),
|
|
87
|
+
o.description ? (f(), m("div", U, p(o.description), 1)) : k("", !0)
|
|
88
|
+
]),
|
|
89
|
+
n(t(C), {
|
|
90
|
+
modelValue: t(r),
|
|
91
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => S(r) ? r.value = h : null),
|
|
92
|
+
eventConfig: t(l),
|
|
93
|
+
onConfirm: _,
|
|
94
|
+
title: o.title
|
|
95
|
+
}, null, 8, ["modelValue", "eventConfig", "title"])
|
|
96
|
+
], 64);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}, Z = /* @__PURE__ */ I(q, [["__scopeId", "data-v-5371fade"]]);
|
|
100
|
+
export {
|
|
101
|
+
Z as default
|
|
102
|
+
};
|
|
@@ -232,7 +232,7 @@ const ee = { class: "custom-options" }, le = { class: "option-header" }, oe = {
|
|
|
232
232
|
], 64);
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
}, Oe = /* @__PURE__ */ Q(ne, [["__scopeId", "data-v-
|
|
235
|
+
}, Oe = /* @__PURE__ */ Q(ne, [["__scopeId", "data-v-9e29e75e"]]);
|
|
236
236
|
export {
|
|
237
237
|
Oe as default
|
|
238
238
|
};
|