fec-dev-designer 1.1.0 → 1.1.1
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/src/layout/index.vue.js +61 -61
- package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue2.js +18 -16
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +54 -48
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +1 -1
- package/es/src/store/designer.js +1 -1
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -7,92 +7,92 @@ import "../../node_modules/element-plus/theme-chalk/el-footer.css.js";
|
|
|
7
7
|
import "../../node_modules/element-plus/theme-chalk/el-header.css.js";
|
|
8
8
|
import "../../node_modules/element-plus/theme-chalk/el-main.css.js";
|
|
9
9
|
import "../../node_modules/element-plus/theme-chalk/el-config-provider.css.js";
|
|
10
|
-
import { ref as
|
|
11
|
-
import { useStore as
|
|
10
|
+
import { ref as s, computed as b, openBlock as f, createBlock as _, withCtx as r, createVNode as o, unref as a, resolveDynamicComponent as w, createElementBlock as D, createTextVNode as E, createCommentVNode as N } from "vue";
|
|
11
|
+
import { useStore as B } from "vuex";
|
|
12
12
|
import { useRoute as O, useRouter as R } from "vue-router";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { setEditConfigData as
|
|
13
|
+
import T from "./aside/index.vue.js";
|
|
14
|
+
import A from "./header/index.vue.js";
|
|
15
|
+
import F from "./property/index.vue.js";
|
|
16
|
+
import M from "../packages/table/index.vue.js";
|
|
17
|
+
import S from "../packages/form/index.vue.js";
|
|
18
|
+
import V from "../../node_modules/element-plus/dist/locale/zh-cn.js";
|
|
19
|
+
import { setEditConfigData as d, setSelectedItem as J, setHoverItem as K } from "../packages/utils/common.js";
|
|
20
20
|
import y from "../api/index.js";
|
|
21
|
-
import { defaultTableConfig as
|
|
22
|
-
import { defaultFormConfig as
|
|
21
|
+
import { defaultTableConfig as L } from "../packages/table/default.js";
|
|
22
|
+
import { defaultFormConfig as P } from "../packages/form/default.js";
|
|
23
23
|
import "./index.vue2.js";
|
|
24
|
-
import
|
|
25
|
-
import { ElConfigProvider as
|
|
26
|
-
import { ElMain as
|
|
27
|
-
import { ElButton as
|
|
28
|
-
import { ElResult as
|
|
29
|
-
const
|
|
24
|
+
import W from "../../_virtual/_plugin-vue_export-helper.js";
|
|
25
|
+
import { ElConfigProvider as q } from "../../node_modules/element-plus/es/components/config-provider/index.js";
|
|
26
|
+
import { ElMain as z, ElContainer as H } from "../../node_modules/element-plus/es/components/container/index.js";
|
|
27
|
+
import { ElButton as $ } from "../../node_modules/element-plus/es/components/button/index.js";
|
|
28
|
+
import { ElResult as j } from "../../node_modules/element-plus/es/components/result/index.js";
|
|
29
|
+
const G = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "init-error-container"
|
|
32
|
-
},
|
|
32
|
+
}, Q = {
|
|
33
33
|
__name: "index",
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
window.history.length > 1 ?
|
|
34
|
+
setup(U) {
|
|
35
|
+
const m = B(), v = O(), g = R(), l = v.query.pkId, n = s(0), u = s(null);
|
|
36
|
+
function k() {
|
|
37
|
+
window.history.length > 1 ? g.back() : window.close();
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const t =
|
|
44
|
-
pkId:
|
|
45
|
-
templateName:
|
|
46
|
-
templateKey:
|
|
47
|
-
...
|
|
39
|
+
l ? y.login4dev().then((i) => {
|
|
40
|
+
m.commit("set_token", i.token), m.commit("set_refreshToken", i.refreshToken), y.getById(l).then((e) => {
|
|
41
|
+
const c = e.templateName, p = e.templateKey;
|
|
42
|
+
if (e.type == "table") {
|
|
43
|
+
const t = s({
|
|
44
|
+
pkId: l,
|
|
45
|
+
templateName: c,
|
|
46
|
+
templateKey: p,
|
|
47
|
+
...L,
|
|
48
48
|
...JSON.parse(e.context)
|
|
49
49
|
});
|
|
50
|
-
|
|
51
|
-
} else if (
|
|
52
|
-
const t =
|
|
53
|
-
pkId:
|
|
54
|
-
templateName:
|
|
55
|
-
templateKey:
|
|
56
|
-
...
|
|
50
|
+
d(t.value), n.value = 1;
|
|
51
|
+
} else if (e.type == "form") {
|
|
52
|
+
const t = s({
|
|
53
|
+
pkId: l,
|
|
54
|
+
templateName: c,
|
|
55
|
+
templateKey: p,
|
|
56
|
+
...P,
|
|
57
57
|
...JSON.parse(e.context)
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
d(t.value), n.value = 1;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
m.commit("set_editing_type", e.type);
|
|
62
62
|
});
|
|
63
63
|
}) : n.value = -1;
|
|
64
|
-
const
|
|
65
|
-
switch (
|
|
64
|
+
const h = b(() => {
|
|
65
|
+
switch (m.getters.editingType) {
|
|
66
66
|
case "table":
|
|
67
|
-
return
|
|
67
|
+
return M;
|
|
68
68
|
case "form":
|
|
69
|
-
return
|
|
69
|
+
return S;
|
|
70
70
|
}
|
|
71
71
|
return null;
|
|
72
72
|
});
|
|
73
|
-
|
|
73
|
+
J(null), K(null);
|
|
74
74
|
function x(i) {
|
|
75
75
|
var e;
|
|
76
|
-
(e =
|
|
76
|
+
(e = u.value) == null || e.onFormDragMove(i);
|
|
77
77
|
}
|
|
78
78
|
return (i, e) => {
|
|
79
|
-
const
|
|
80
|
-
return n.value == 1 ? (
|
|
79
|
+
const c = q, p = z, t = H, C = $, I = j;
|
|
80
|
+
return n.value == 1 ? (f(), _(t, {
|
|
81
81
|
key: 0,
|
|
82
82
|
style: { "flex-direction": "column", height: "100%" }
|
|
83
83
|
}, {
|
|
84
84
|
default: r(() => [
|
|
85
|
-
o(
|
|
85
|
+
o(a(A)),
|
|
86
86
|
o(t, { class: "inner-container" }, {
|
|
87
87
|
default: r(() => [
|
|
88
|
-
o(
|
|
89
|
-
o(
|
|
88
|
+
o(a(T), { onOnFormDragMove: x }),
|
|
89
|
+
o(p, { class: "root-main" }, {
|
|
90
90
|
default: r(() => [
|
|
91
|
-
o(
|
|
91
|
+
o(c, { locale: a(V) }, {
|
|
92
92
|
default: r(() => [
|
|
93
|
-
(
|
|
93
|
+
(f(), _(w(h.value), {
|
|
94
94
|
ref_key: "compRef",
|
|
95
|
-
ref:
|
|
95
|
+
ref: u
|
|
96
96
|
}, null, 512))
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
@@ -100,13 +100,13 @@ const Q = {
|
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
}),
|
|
103
|
-
o(
|
|
103
|
+
o(a(F))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
|
-
})) : n.value == -1 ? (
|
|
109
|
+
})) : n.value == -1 ? (f(), D("div", G, [
|
|
110
110
|
o(I, {
|
|
111
111
|
icon: "warning",
|
|
112
112
|
title: "缺少模板ID",
|
|
@@ -115,20 +115,20 @@ const Q = {
|
|
|
115
115
|
extra: r(() => [
|
|
116
116
|
o(C, {
|
|
117
117
|
type: "primary",
|
|
118
|
-
onClick:
|
|
118
|
+
onClick: k
|
|
119
119
|
}, {
|
|
120
120
|
default: r(() => [...e[0] || (e[0] = [
|
|
121
|
-
|
|
121
|
+
E("返回", -1)
|
|
122
122
|
])]),
|
|
123
123
|
_: 1
|
|
124
124
|
})
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
127
|
})
|
|
128
|
-
])) :
|
|
128
|
+
])) : N("", !0);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, we = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-c751811d"]]);
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
we as default
|
|
134
134
|
};
|
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
import "../../../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
3
|
-
import { openBlock as
|
|
3
|
+
import { openBlock as d, createElementBlock as n, Fragment as i, createVNode as o, withCtx as m, createElementVNode as r } from "vue";
|
|
4
4
|
import f from "../../../../components/DataSourceSelect.vue.js";
|
|
5
5
|
import u from "../../../../components/FieldMapping.vue2.js";
|
|
6
6
|
import "./FormSetValue.vue.js";
|
|
7
7
|
import p from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
import { ElFormItem as c } from "../../../../../node_modules/element-plus/es/components/form/index.js";
|
|
9
|
-
const s = {
|
|
9
|
+
const s = { class: "desc-content" }, V = {
|
|
10
10
|
__name: "FormSetValue",
|
|
11
11
|
props: {
|
|
12
12
|
formData: Object
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (
|
|
14
|
+
setup(t) {
|
|
15
|
+
return (_, e) => {
|
|
16
16
|
const l = c;
|
|
17
|
-
return
|
|
18
|
-
|
|
17
|
+
return d(), n(i, null, [
|
|
18
|
+
o(l, { label: "选择数据源" }, {
|
|
19
19
|
default: m(() => [
|
|
20
|
-
|
|
21
|
-
modelValue:
|
|
22
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
20
|
+
o(f, {
|
|
21
|
+
modelValue: t.formData.dataSourceId,
|
|
22
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => t.formData.dataSourceId = a)
|
|
23
23
|
}, null, 8, ["modelValue"])
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
o(l, { label: "字段映射" }, {
|
|
28
28
|
default: m(() => [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
r("div", s, [
|
|
30
|
+
e[2] || (e[2] = r("div", { class: "condition-desc" }, " 当返回的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
|
|
31
|
+
o(u, {
|
|
32
|
+
modelValue: t.formData.fieldMapping,
|
|
33
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => t.formData.fieldMapping = a)
|
|
34
|
+
}, null, 8, ["modelValue"])
|
|
35
|
+
])
|
|
34
36
|
]),
|
|
35
37
|
_: 1
|
|
36
38
|
})
|
|
37
39
|
], 64);
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
|
-
}, E = /* @__PURE__ */ p(
|
|
42
|
+
}, E = /* @__PURE__ */ p(V, [["__scopeId", "data-v-52671c1b"]]);
|
|
41
43
|
export {
|
|
42
44
|
E as default
|
|
43
45
|
};
|
|
@@ -1,84 +1,90 @@
|
|
|
1
1
|
import "../../../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
3
3
|
import "../../../../../node_modules/element-plus/theme-chalk/el-switch.css.js";
|
|
4
|
-
import { computed as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { getEditConfigDataFields as
|
|
4
|
+
import { computed as f, openBlock as s, createElementBlock as u, Fragment as V, createVNode as o, withCtx as m, createElementVNode as a, unref as p } from "vue";
|
|
5
|
+
import c from "../../../../components/DataSourceSelect.vue.js";
|
|
6
|
+
import b from "../../../../components/FieldMapping.vue2.js";
|
|
7
|
+
import D from "../../../../components/ParamsConfig.vue2.js";
|
|
8
|
+
import { getEditConfigDataFields as v } from "../../../utils/common.js";
|
|
9
9
|
import "./FormSubmit.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import { ElSwitch as
|
|
12
|
-
import { ElFormItem as
|
|
13
|
-
const E = {
|
|
10
|
+
import F from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
import { ElSwitch as g } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
12
|
+
import { ElFormItem as x } from "../../../../../node_modules/element-plus/es/components/form/index.js";
|
|
13
|
+
const E = { class: "desc-content" }, S = { class: "desc-content" }, U = { class: "desc-content" }, w = {
|
|
14
14
|
__name: "FormSubmit",
|
|
15
15
|
props: {
|
|
16
16
|
formData: Object
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
id:
|
|
21
|
-
label:
|
|
22
|
-
fieldName:
|
|
23
|
-
fieldType:
|
|
18
|
+
setup(l) {
|
|
19
|
+
const r = f(() => (v() || []).map((e) => ({
|
|
20
|
+
id: e.id,
|
|
21
|
+
label: e.label,
|
|
22
|
+
fieldName: e.fieldName,
|
|
23
|
+
fieldType: e.fieldType
|
|
24
24
|
})));
|
|
25
|
-
return (
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
-
|
|
25
|
+
return (n, e) => {
|
|
26
|
+
const i = g, d = x;
|
|
27
|
+
return s(), u(V, null, [
|
|
28
|
+
o(d, { label: "表单校验" }, {
|
|
29
29
|
default: m(() => [
|
|
30
|
-
|
|
31
|
-
modelValue:
|
|
32
|
-
"onUpdate:modelValue":
|
|
30
|
+
o(i, {
|
|
31
|
+
modelValue: l.formData.formValidate,
|
|
32
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.formData.formValidate = t)
|
|
33
33
|
}, null, 8, ["modelValue"])
|
|
34
34
|
]),
|
|
35
35
|
_: 1
|
|
36
36
|
}),
|
|
37
|
-
|
|
37
|
+
o(d, { label: "选择数据源" }, {
|
|
38
38
|
default: m(() => [
|
|
39
|
-
|
|
40
|
-
modelValue:
|
|
41
|
-
"onUpdate:modelValue":
|
|
39
|
+
o(c, {
|
|
40
|
+
modelValue: l.formData.dataSourceId,
|
|
41
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.formData.dataSourceId = t)
|
|
42
42
|
}, null, 8, ["modelValue"])
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
45
|
}),
|
|
46
|
-
|
|
46
|
+
o(d, { label: "扩展参数" }, {
|
|
47
47
|
default: m(() => [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
a("div", E, [
|
|
49
|
+
e[5] || (e[5] = a("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
|
|
50
|
+
o(D, {
|
|
51
|
+
modelValue: l.formData.extraParams,
|
|
52
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.formData.extraParams = t),
|
|
53
|
+
"available-fields": p(r)
|
|
54
|
+
}, null, 8, ["modelValue", "available-fields"])
|
|
55
|
+
])
|
|
54
56
|
]),
|
|
55
57
|
_: 1
|
|
56
58
|
}),
|
|
57
|
-
|
|
59
|
+
o(d, { label: "字段映射" }, {
|
|
58
60
|
default: m(() => [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
a("div", S, [
|
|
62
|
+
e[6] || (e[6] = a("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
|
|
63
|
+
o(b, {
|
|
64
|
+
modelValue: l.formData.fieldMapping,
|
|
65
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.formData.fieldMapping = t)
|
|
66
|
+
}, null, 8, ["modelValue"])
|
|
67
|
+
])
|
|
64
68
|
]),
|
|
65
69
|
_: 1
|
|
66
70
|
}),
|
|
67
|
-
|
|
71
|
+
o(d, { label: "赋值表单" }, {
|
|
68
72
|
default: m(() => [
|
|
69
|
-
a(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
a("div", U, [
|
|
74
|
+
o(i, {
|
|
75
|
+
modelValue: l.formData.returnToForm,
|
|
76
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.formData.returnToForm = t),
|
|
77
|
+
style: { width: "100%" }
|
|
78
|
+
}, null, 8, ["modelValue"]),
|
|
79
|
+
e[7] || (e[7] = a("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
|
|
80
|
+
])
|
|
75
81
|
]),
|
|
76
82
|
_: 1
|
|
77
83
|
})
|
|
78
84
|
], 64);
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
|
-
},
|
|
87
|
+
}, q = /* @__PURE__ */ F(w, [["__scopeId", "data-v-24a7b471"]]);
|
|
82
88
|
export {
|
|
83
|
-
|
|
89
|
+
q as default
|
|
84
90
|
};
|
|
@@ -212,7 +212,7 @@ const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }
|
|
|
212
212
|
]);
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
}, Oe = /* @__PURE__ */ ee(ue, [["__scopeId", "data-v-
|
|
215
|
+
}, Oe = /* @__PURE__ */ ee(ue, [["__scopeId", "data-v-d6b0cd25"]]);
|
|
216
216
|
export {
|
|
217
217
|
Oe as default
|
|
218
218
|
};
|
package/es/src/store/designer.js
CHANGED