fec-dev-designer 1.1.2 → 5.1.2
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/package.json.js +66 -0
- package/es/src/assets/approvalHistory.png.js +4 -0
- package/es/src/assets/logo.png.js +4 -0
- package/es/src/components/DataSourceSelect.vue.js +2 -1
- package/es/src/components/OptionConfig.vue.js +3 -2
- package/es/src/components/OptionConfig.vue2.js +2 -2
- package/es/src/components/ParamsConfig.vue.js +2 -2
- package/es/src/components/ParamsConfig.vue2.js +31 -32
- package/es/src/components/ValueSelector.vue2.js +49 -39
- package/es/src/layout/header/index.vue.js +95 -84
- package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
- package/es/src/packages/dataSource/dataSource.vue.js +98 -105
- package/es/src/packages/dialog/index.vue.js +443 -322
- package/es/src/packages/event/index.vue2.js +44 -44
- package/es/src/packages/event/useEventDialog.js +2 -2
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
- package/es/src/packages/form/aside/index.js +27 -2
- package/es/src/packages/form/aside/roleSelect.js +156 -0
- package/es/src/packages/form/aside/userSelect.js +206 -0
- package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
- package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
- package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
- package/es/src/packages/form/index.vue.js +140 -130
- package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
- package/es/src/packages/form/property/index.vue.js +23 -22
- package/es/src/packages/form/property/subTable.vue.js +37 -43
- package/es/src/packages/form/property/widgets.vue.js +258 -202
- package/es/src/packages/table/aside/index.js +2 -1
- package/es/src/packages/table/default.js +24 -21
- package/es/src/packages/table/property/widgets.vue.js +63 -47
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
|
15
15
|
import "../../../node_modules/element-plus/theme-chalk/el-dropdown.css.js";
|
|
16
16
|
import "../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js";
|
|
17
17
|
import "../../../node_modules/element-plus/theme-chalk/el-dropdown-item.css.js";
|
|
18
|
-
import { mergeModels as K, useModel as Q, ref as p, watch as W, resolveComponent as $, openBlock as d, createBlock as w, withCtx as o, createElementVNode as a, createVNode as
|
|
18
|
+
import { mergeModels as K, useModel as Q, ref as p, watch as W, resolveComponent as $, openBlock as d, createBlock as w, withCtx as o, createElementVNode as a, createVNode as n, createTextVNode as g, createElementBlock as _, Fragment as V, renderList as D, toDisplayString as b, normalizeClass as X, normalizeStyle as Y } from "vue";
|
|
19
19
|
import Z from "../eventFlow/index.vue.js";
|
|
20
20
|
import ee from "../eventFlow/defaultProcessData.js";
|
|
21
21
|
import { cloneDeep as B } from "../utils/common.js";
|
|
@@ -24,8 +24,8 @@ import "../../../node_modules/element-plus/theme-chalk/el-message.css.js";
|
|
|
24
24
|
import "./index.vue.js";
|
|
25
25
|
import te from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
26
26
|
import { ElMessage as oe } from "../../../node_modules/element-plus/es/components/message/index.js";
|
|
27
|
-
import { ElIcon as
|
|
28
|
-
import { ElDropdownItem as
|
|
27
|
+
import { ElIcon as ne } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
28
|
+
import { ElDropdownItem as le, ElDropdownMenu as ae, ElDropdown as se } from "../../../node_modules/element-plus/es/components/dropdown/index.js";
|
|
29
29
|
import { ElHeader as re, ElMain as ie, ElContainer as de, ElAside as me } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
30
30
|
import { ElTabPane as ce, ElTabs as ue } from "../../../node_modules/element-plus/es/components/tabs/index.js";
|
|
31
31
|
import { ElButton as pe } from "../../../node_modules/element-plus/es/components/button/index.js";
|
|
@@ -33,7 +33,7 @@ import { ElDialog as ve } from "../../../node_modules/element-plus/es/components
|
|
|
33
33
|
const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event-title" }, ge = { class: "event-method" }, be = { class: "event-label" }, ye = { class: "tab-content" }, Ee = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "empty-selection"
|
|
36
|
-
},
|
|
36
|
+
}, Ce = { class: "dialog-footer" }, ke = {
|
|
37
37
|
__name: "index",
|
|
38
38
|
props: /* @__PURE__ */ K({
|
|
39
39
|
eventConfig: Object,
|
|
@@ -75,17 +75,17 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
75
75
|
W(v, (t) => {
|
|
76
76
|
t && (s.value = B(E.eventConfig) || [], s.value.length > 0 && (r.value = 0));
|
|
77
77
|
});
|
|
78
|
-
const f = p("eventFlow"),
|
|
79
|
-
t && (
|
|
78
|
+
const f = p("eventFlow"), C = p({}), k = p({}), O = (t, e) => {
|
|
79
|
+
t && (C.value[e] = t);
|
|
80
80
|
}, T = async () => {
|
|
81
81
|
var e;
|
|
82
|
-
|
|
82
|
+
k.value = {};
|
|
83
83
|
const t = [];
|
|
84
|
-
for (const [m, u] of Object.entries(
|
|
84
|
+
for (const [m, u] of Object.entries(C.value))
|
|
85
85
|
try {
|
|
86
86
|
u != null && u.validate && await u.validate();
|
|
87
87
|
} catch (F) {
|
|
88
|
-
|
|
88
|
+
k.value[m] = !0, t.push({
|
|
89
89
|
event: (e = s.value[m]) == null ? void 0 : e.name,
|
|
90
90
|
errors: F
|
|
91
91
|
});
|
|
@@ -99,7 +99,7 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
99
99
|
eventFlow: c()
|
|
100
100
|
}), r.value = s.value.length - 1, f.value = "eventFlow");
|
|
101
101
|
}, R = (t) => {
|
|
102
|
-
s.value.splice(t, 1), delete
|
|
102
|
+
s.value.splice(t, 1), delete C.value[t], r.value === t ? (r.value = -1, f.value = "eventFlow") : r.value > t && r.value--;
|
|
103
103
|
}, z = async () => {
|
|
104
104
|
try {
|
|
105
105
|
f.value === "eventFlow" && await T(), E.onConfirm && E.onConfirm(B(s.value)), v.value = !1;
|
|
@@ -110,10 +110,10 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
return (t, e) => {
|
|
113
|
-
const m = $("arrow-down"), u =
|
|
113
|
+
const m = $("arrow-down"), u = ne, F = le, J = ae, P = se, U = re, q = $("Delete"), x = ie, M = de, H = me, N = ce, L = ue, S = pe, G = ve;
|
|
114
114
|
return d(), w(G, {
|
|
115
115
|
modelValue: v.value,
|
|
116
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
116
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => v.value = l),
|
|
117
117
|
width: "70%",
|
|
118
118
|
title: y.title,
|
|
119
119
|
draggable: "",
|
|
@@ -122,16 +122,16 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
122
122
|
class: "fec-dev-designer-dialog"
|
|
123
123
|
}, {
|
|
124
124
|
footer: o(() => [
|
|
125
|
-
a("div",
|
|
126
|
-
|
|
127
|
-
onClick: e[1] || (e[1] = (
|
|
125
|
+
a("div", Ce, [
|
|
126
|
+
n(S, {
|
|
127
|
+
onClick: e[1] || (e[1] = (l) => v.value = !1)
|
|
128
128
|
}, {
|
|
129
129
|
default: o(() => [...e[6] || (e[6] = [
|
|
130
130
|
g("取消", -1)
|
|
131
131
|
])]),
|
|
132
132
|
_: 1
|
|
133
133
|
}),
|
|
134
|
-
|
|
134
|
+
n(S, {
|
|
135
135
|
type: "primary",
|
|
136
136
|
onClick: z
|
|
137
137
|
}, {
|
|
@@ -143,34 +143,34 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
143
143
|
])
|
|
144
144
|
]),
|
|
145
145
|
default: o(() => [
|
|
146
|
-
|
|
146
|
+
n(M, { style: { border: "1px solid #ebeef5", "border-radius": "4px" } }, {
|
|
147
147
|
default: o(() => [
|
|
148
|
-
|
|
148
|
+
n(H, { width: "300px" }, {
|
|
149
149
|
default: o(() => [
|
|
150
|
-
|
|
150
|
+
n(M, { style: { height: "600px" } }, {
|
|
151
151
|
default: o(() => [
|
|
152
|
-
|
|
152
|
+
n(U, {
|
|
153
153
|
height: "40px",
|
|
154
154
|
style: { "background-color": "#f2f2f2" }
|
|
155
155
|
}, {
|
|
156
156
|
default: o(() => [
|
|
157
|
-
|
|
157
|
+
n(P, {
|
|
158
158
|
trigger: "click",
|
|
159
159
|
placement: "bottom-start",
|
|
160
160
|
style: { height: "100%" }
|
|
161
161
|
}, {
|
|
162
162
|
dropdown: o(() => [
|
|
163
|
-
|
|
163
|
+
n(J, null, {
|
|
164
164
|
default: o(() => [
|
|
165
|
-
(d(!0), _(V, null, D(I.value, (
|
|
166
|
-
key:
|
|
167
|
-
disabled: j(
|
|
168
|
-
onClick: (i) => A(
|
|
165
|
+
(d(!0), _(V, null, D(I.value, (l) => (d(), w(F, {
|
|
166
|
+
key: l.name,
|
|
167
|
+
disabled: j(l.name),
|
|
168
|
+
onClick: (i) => A(l)
|
|
169
169
|
}, {
|
|
170
170
|
default: o(() => [
|
|
171
171
|
a("div", null, [
|
|
172
|
-
a("span", null, b(
|
|
173
|
-
a("span", null, b(
|
|
172
|
+
a("span", null, b(l.name), 1),
|
|
173
|
+
a("span", null, b(l.description), 1)
|
|
174
174
|
])
|
|
175
175
|
]),
|
|
176
176
|
_: 2
|
|
@@ -182,9 +182,9 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
182
182
|
default: o(() => [
|
|
183
183
|
a("span", fe, [
|
|
184
184
|
e[3] || (e[3] = g(" 新增事件 ", -1)),
|
|
185
|
-
|
|
185
|
+
n(u, { class: "el-icon--right" }, {
|
|
186
186
|
default: o(() => [
|
|
187
|
-
|
|
187
|
+
n(m)
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
190
|
})
|
|
@@ -195,15 +195,15 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}),
|
|
198
|
-
|
|
198
|
+
n(x, { style: { padding: "10px" } }, {
|
|
199
199
|
default: o(() => [
|
|
200
|
-
(d(!0), _(V, null, D(s.value, (
|
|
200
|
+
(d(!0), _(V, null, D(s.value, (l, i) => (d(), _("div", {
|
|
201
201
|
key: i,
|
|
202
202
|
class: X([
|
|
203
203
|
"event-menu-item",
|
|
204
204
|
{
|
|
205
205
|
"is-active": r.value === i,
|
|
206
|
-
"is-error":
|
|
206
|
+
"is-error": k.value[i]
|
|
207
207
|
}
|
|
208
208
|
]),
|
|
209
209
|
onClick: (h) => r.value = i
|
|
@@ -212,16 +212,16 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
212
212
|
a("div", ge, [
|
|
213
213
|
a("span", null, [
|
|
214
214
|
e[4] || (e[4] = g("function ", -1)),
|
|
215
|
-
a("span", null, b(
|
|
215
|
+
a("span", null, b(l.name), 1)
|
|
216
216
|
]),
|
|
217
|
-
a("span", be, b(
|
|
217
|
+
a("span", be, b(l.description), 1)
|
|
218
218
|
]),
|
|
219
|
-
|
|
219
|
+
n(u, {
|
|
220
220
|
class: "delete-icon",
|
|
221
221
|
onClick: (h) => R(i)
|
|
222
222
|
}, {
|
|
223
223
|
default: o(() => [
|
|
224
|
-
|
|
224
|
+
n(q)
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
}, 8, ["onClick"])
|
|
@@ -236,26 +236,26 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
236
236
|
]),
|
|
237
237
|
_: 1
|
|
238
238
|
}),
|
|
239
|
-
|
|
239
|
+
n(x, { style: { "border-left": "1px solid #ebeef5", padding: "0" } }, {
|
|
240
240
|
default: o(() => [
|
|
241
241
|
r.value !== -1 ? (d(), w(L, {
|
|
242
242
|
key: 0,
|
|
243
243
|
modelValue: f.value,
|
|
244
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
244
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => f.value = l),
|
|
245
245
|
class: "event-tabs"
|
|
246
246
|
}, {
|
|
247
247
|
default: o(() => [
|
|
248
|
-
|
|
248
|
+
n(N, {
|
|
249
249
|
label: "事件流",
|
|
250
250
|
name: "eventFlow"
|
|
251
251
|
}, {
|
|
252
252
|
default: o(() => [
|
|
253
253
|
a("div", ye, [
|
|
254
|
-
(d(!0), _(V, null, D(s.value, (
|
|
254
|
+
(d(!0), _(V, null, D(s.value, (l, i) => (d(), w(Z, {
|
|
255
255
|
key: i,
|
|
256
256
|
ref_for: !0,
|
|
257
257
|
ref: (h) => O(h, i),
|
|
258
|
-
process:
|
|
258
|
+
process: l.eventFlow,
|
|
259
259
|
style: Y({
|
|
260
260
|
display: r.value === i ? "block" : "none"
|
|
261
261
|
})
|
|
@@ -264,7 +264,7 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
264
264
|
]),
|
|
265
265
|
_: 1
|
|
266
266
|
}),
|
|
267
|
-
|
|
267
|
+
n(N, {
|
|
268
268
|
label: "自定义",
|
|
269
269
|
name: "custom"
|
|
270
270
|
}, {
|
|
@@ -289,7 +289,7 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
|
|
|
289
289
|
}, 8, ["modelValue", "title"]);
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
}, ot = /* @__PURE__ */ te(
|
|
292
|
+
}, ot = /* @__PURE__ */ te(ke, [["__scopeId", "data-v-e45fecb2"]]);
|
|
293
293
|
export {
|
|
294
294
|
ot as default
|
|
295
295
|
};
|
|
@@ -1,82 +1,75 @@
|
|
|
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 {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import { openBlock as n, createElementBlock as i, Fragment as u, createVNode as e, withCtx as d, createElementVNode as a } from "vue";
|
|
5
|
+
import f from "../../../../components/DataSourceSelect.vue.js";
|
|
6
|
+
import s from "../../../../components/FieldMapping.vue2.js";
|
|
7
|
+
import V from "../../../../components/ParamsConfig.vue2.js";
|
|
8
|
+
import "../../../../store/index.js";
|
|
9
9
|
import "./FormSubmit.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import { ElSwitch as
|
|
12
|
-
import { ElFormItem as
|
|
13
|
-
const
|
|
10
|
+
import p from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
import { ElSwitch as c } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
12
|
+
import { ElFormItem as D } from "../../../../../node_modules/element-plus/es/components/form/index.js";
|
|
13
|
+
const b = { class: "desc-content" }, v = { class: "desc-content" }, F = { class: "desc-content" }, x = {
|
|
14
14
|
__name: "FormSubmit",
|
|
15
15
|
props: {
|
|
16
16
|
formData: Object
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return s(), u(V, null, [
|
|
28
|
-
o(d, { label: "表单校验" }, {
|
|
29
|
-
default: m(() => [
|
|
30
|
-
o(i, {
|
|
31
|
-
modelValue: l.formData.formValidate,
|
|
32
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.formData.formValidate = t)
|
|
18
|
+
setup(o) {
|
|
19
|
+
return (g, t) => {
|
|
20
|
+
const r = c, m = D;
|
|
21
|
+
return n(), i(u, null, [
|
|
22
|
+
e(m, { label: "表单校验" }, {
|
|
23
|
+
default: d(() => [
|
|
24
|
+
e(r, {
|
|
25
|
+
modelValue: o.formData.formValidate,
|
|
26
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => o.formData.formValidate = l)
|
|
33
27
|
}, null, 8, ["modelValue"])
|
|
34
28
|
]),
|
|
35
29
|
_: 1
|
|
36
30
|
}),
|
|
37
|
-
|
|
38
|
-
default:
|
|
39
|
-
|
|
40
|
-
modelValue:
|
|
41
|
-
"onUpdate:modelValue":
|
|
31
|
+
e(m, { label: "选择数据源" }, {
|
|
32
|
+
default: d(() => [
|
|
33
|
+
e(f, {
|
|
34
|
+
modelValue: o.formData.dataSourceId,
|
|
35
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => o.formData.dataSourceId = l)
|
|
42
36
|
}, null, 8, ["modelValue"])
|
|
43
37
|
]),
|
|
44
38
|
_: 1
|
|
45
39
|
}),
|
|
46
|
-
|
|
47
|
-
default:
|
|
48
|
-
a("div",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
modelValue:
|
|
52
|
-
"onUpdate:modelValue":
|
|
53
|
-
|
|
54
|
-
}, null, 8, ["modelValue", "available-fields"])
|
|
40
|
+
e(m, { label: "扩展参数" }, {
|
|
41
|
+
default: d(() => [
|
|
42
|
+
a("div", b, [
|
|
43
|
+
t[5] || (t[5] = a("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
|
|
44
|
+
e(V, {
|
|
45
|
+
modelValue: o.formData.extraParams,
|
|
46
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => o.formData.extraParams = l)
|
|
47
|
+
}, null, 8, ["modelValue"])
|
|
55
48
|
])
|
|
56
49
|
]),
|
|
57
50
|
_: 1
|
|
58
51
|
}),
|
|
59
|
-
|
|
60
|
-
default:
|
|
61
|
-
a("div",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
modelValue:
|
|
65
|
-
"onUpdate:modelValue":
|
|
52
|
+
e(m, { label: "字段映射" }, {
|
|
53
|
+
default: d(() => [
|
|
54
|
+
a("div", v, [
|
|
55
|
+
t[6] || (t[6] = a("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
|
|
56
|
+
e(s, {
|
|
57
|
+
modelValue: o.formData.fieldMapping,
|
|
58
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => o.formData.fieldMapping = l)
|
|
66
59
|
}, null, 8, ["modelValue"])
|
|
67
60
|
])
|
|
68
61
|
]),
|
|
69
62
|
_: 1
|
|
70
63
|
}),
|
|
71
|
-
|
|
72
|
-
default:
|
|
73
|
-
a("div",
|
|
74
|
-
|
|
75
|
-
modelValue:
|
|
76
|
-
"onUpdate:modelValue":
|
|
64
|
+
e(m, { label: "赋值表单" }, {
|
|
65
|
+
default: d(() => [
|
|
66
|
+
a("div", F, [
|
|
67
|
+
e(r, {
|
|
68
|
+
modelValue: o.formData.returnToForm,
|
|
69
|
+
"onUpdate:modelValue": t[4] || (t[4] = (l) => o.formData.returnToForm = l),
|
|
77
70
|
style: { width: "100%" }
|
|
78
71
|
}, null, 8, ["modelValue"]),
|
|
79
|
-
|
|
72
|
+
t[7] || (t[7] = a("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
|
|
80
73
|
])
|
|
81
74
|
]),
|
|
82
75
|
_: 1
|
|
@@ -84,7 +77,7 @@ const E = { class: "desc-content" }, S = { class: "desc-content" }, U = { class:
|
|
|
84
77
|
], 64);
|
|
85
78
|
};
|
|
86
79
|
}
|
|
87
|
-
},
|
|
80
|
+
}, j = /* @__PURE__ */ p(x, [["__scopeId", "data-v-fca821f2"]]);
|
|
88
81
|
export {
|
|
89
|
-
|
|
82
|
+
j as default
|
|
90
83
|
};
|
|
@@ -5,41 +5,35 @@ import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js
|
|
|
5
5
|
import "../../../../../node_modules/element-plus/theme-chalk/el-radio.css.js";
|
|
6
6
|
import "../../../../../node_modules/element-plus/theme-chalk/el-radio-group.css.js";
|
|
7
7
|
import "../../../../../node_modules/element-plus/theme-chalk/el-radio-button.css.js";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { ElRadioButton as
|
|
12
|
-
import { ElFormItem as
|
|
13
|
-
import { ElSwitch as
|
|
14
|
-
import { ElInput as
|
|
15
|
-
const
|
|
8
|
+
import { openBlock as i, createElementBlock as f, Fragment as p, createVNode as o, withCtx as l } from "vue";
|
|
9
|
+
import V from "../../../../components/ParamsConfig.vue2.js";
|
|
10
|
+
import "../../../../store/index.js";
|
|
11
|
+
import { ElRadioButton as D, ElRadioGroup as b } from "../../../../../node_modules/element-plus/es/components/radio/index.js";
|
|
12
|
+
import { ElFormItem as s } from "../../../../../node_modules/element-plus/es/components/form/index.js";
|
|
13
|
+
import { ElSwitch as P } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
14
|
+
import { ElInput as g } from "../../../../../node_modules/element-plus/es/components/input/index.js";
|
|
15
|
+
const T = {
|
|
16
16
|
__name: "Page",
|
|
17
17
|
props: {
|
|
18
18
|
formData: Object
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return s(), V(b, null, [
|
|
30
|
-
l(m, { label: "跳转方式" }, {
|
|
31
|
-
default: t(() => [
|
|
32
|
-
l(i, {
|
|
33
|
-
modelValue: a.formData.transitionType,
|
|
34
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => a.formData.transitionType = o),
|
|
20
|
+
setup(e) {
|
|
21
|
+
return (c, t) => {
|
|
22
|
+
const n = D, u = b, m = s, r = P, d = g;
|
|
23
|
+
return i(), f(p, null, [
|
|
24
|
+
o(m, { label: "跳转方式" }, {
|
|
25
|
+
default: l(() => [
|
|
26
|
+
o(u, {
|
|
27
|
+
modelValue: e.formData.transitionType,
|
|
28
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.formData.transitionType = a),
|
|
35
29
|
size: "small"
|
|
36
30
|
}, {
|
|
37
|
-
default:
|
|
38
|
-
|
|
31
|
+
default: l(() => [
|
|
32
|
+
o(n, {
|
|
39
33
|
label: "路由跳转",
|
|
40
34
|
value: "page"
|
|
41
35
|
}),
|
|
42
|
-
|
|
36
|
+
o(n, {
|
|
43
37
|
label: "外部链接",
|
|
44
38
|
value: "external"
|
|
45
39
|
})
|
|
@@ -49,40 +43,39 @@ const O = {
|
|
|
49
43
|
]),
|
|
50
44
|
_: 1
|
|
51
45
|
}),
|
|
52
|
-
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue":
|
|
46
|
+
o(m, { label: "打开新页面" }, {
|
|
47
|
+
default: l(() => [
|
|
48
|
+
o(r, {
|
|
49
|
+
modelValue: e.formData.openNewPage,
|
|
50
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.formData.openNewPage = a)
|
|
57
51
|
}, null, 8, ["modelValue"])
|
|
58
52
|
]),
|
|
59
53
|
_: 1
|
|
60
54
|
}),
|
|
61
|
-
|
|
62
|
-
default:
|
|
63
|
-
|
|
64
|
-
modelValue:
|
|
65
|
-
"onUpdate:modelValue":
|
|
55
|
+
o(m, { label: "不可回退当前页" }, {
|
|
56
|
+
default: l(() => [
|
|
57
|
+
o(r, {
|
|
58
|
+
modelValue: e.formData.canNotGoBack,
|
|
59
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.formData.canNotGoBack = a)
|
|
66
60
|
}, null, 8, ["modelValue"])
|
|
67
61
|
]),
|
|
68
62
|
_: 1
|
|
69
63
|
}),
|
|
70
|
-
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
modelValue:
|
|
74
|
-
"onUpdate:modelValue":
|
|
64
|
+
o(m, { label: "页面地址" }, {
|
|
65
|
+
default: l(() => [
|
|
66
|
+
o(d, {
|
|
67
|
+
modelValue: e.formData.routePath,
|
|
68
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.formData.routePath = a)
|
|
75
69
|
}, null, 8, ["modelValue"])
|
|
76
70
|
]),
|
|
77
71
|
_: 1
|
|
78
72
|
}),
|
|
79
|
-
|
|
80
|
-
default:
|
|
81
|
-
|
|
82
|
-
modelValue:
|
|
83
|
-
"onUpdate:modelValue":
|
|
84
|
-
|
|
85
|
-
}, null, 8, ["modelValue", "available-fields"])
|
|
73
|
+
o(m, { label: "页面参数" }, {
|
|
74
|
+
default: l(() => [
|
|
75
|
+
o(V, {
|
|
76
|
+
modelValue: e.formData.routeParams,
|
|
77
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.formData.routeParams = a)
|
|
78
|
+
}, null, 8, ["modelValue"])
|
|
86
79
|
]),
|
|
87
80
|
_: 1
|
|
88
81
|
})
|
|
@@ -91,5 +84,5 @@ const O = {
|
|
|
91
84
|
}
|
|
92
85
|
};
|
|
93
86
|
export {
|
|
94
|
-
|
|
87
|
+
T as default
|
|
95
88
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import l from "./userSelect.js";
|
|
2
|
+
import a from "./roleSelect.js";
|
|
1
3
|
const e = {
|
|
2
4
|
fieldName: "fieldName",
|
|
3
5
|
format: "number",
|
|
@@ -8,7 +10,7 @@ const e = {
|
|
|
8
10
|
dateType: "date",
|
|
9
11
|
suffixButton: "none",
|
|
10
12
|
suffixDialogName: "选择"
|
|
11
|
-
},
|
|
13
|
+
}, d = [
|
|
12
14
|
{
|
|
13
15
|
title: "基础组件",
|
|
14
16
|
name: "basic",
|
|
@@ -130,10 +132,33 @@ const e = {
|
|
|
130
132
|
...e,
|
|
131
133
|
showFullPath: !0,
|
|
132
134
|
maxLevel: 10
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
fieldType: "userSelect",
|
|
138
|
+
label: "用户选择",
|
|
139
|
+
...e,
|
|
140
|
+
dialogConfig: l
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
fieldType: "roleSelect",
|
|
144
|
+
label: "角色选择",
|
|
145
|
+
...e,
|
|
146
|
+
dialogConfig: a
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
fieldType: "orgSelect",
|
|
150
|
+
label: "机构选择",
|
|
151
|
+
...e
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
fieldType: "approvalHistory",
|
|
155
|
+
label: "审批历史",
|
|
156
|
+
titleMode: "label",
|
|
157
|
+
appHisDefault: "timeLine"
|
|
133
158
|
}
|
|
134
159
|
]
|
|
135
160
|
}
|
|
136
161
|
];
|
|
137
162
|
export {
|
|
138
|
-
|
|
163
|
+
d as default
|
|
139
164
|
};
|