fec-dev-designer 1.1.1 → 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/aside/index.vue.js +51 -51
- package/es/src/layout/header/index.vue.js +88 -77
- package/es/src/layout/index.vue.js +48 -48
- package/es/src/layout/property/index.vue.js +16 -16
- 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
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import "../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../node_modules/element-plus/theme-chalk/el-aside.css.js";
|
|
3
|
-
import { computed as
|
|
4
|
-
import
|
|
5
|
-
import i from "../../packages/
|
|
6
|
-
import
|
|
3
|
+
import { computed as m, openBlock as t, createBlock as o, withCtx as p, resolveDynamicComponent as c } from "vue";
|
|
4
|
+
import n from "../../packages/table/property/index.vue.js";
|
|
5
|
+
import i from "../../packages/form/property/index.vue.js";
|
|
6
|
+
import s from "../../store/index.js";
|
|
7
7
|
import "./index.vue2.js";
|
|
8
8
|
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
-
import { ElAside as
|
|
10
|
-
const
|
|
9
|
+
import { ElAside as _ } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
10
|
+
const f = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(l) {
|
|
13
|
-
const r =
|
|
14
|
-
switch (
|
|
13
|
+
const r = m(() => {
|
|
14
|
+
switch (s.getters.editingType) {
|
|
15
15
|
case "table":
|
|
16
|
-
return
|
|
16
|
+
return n;
|
|
17
17
|
case "form":
|
|
18
|
-
return
|
|
18
|
+
return i;
|
|
19
19
|
}
|
|
20
20
|
return null;
|
|
21
21
|
});
|
|
22
|
-
return (
|
|
23
|
-
const
|
|
24
|
-
return t(), o(
|
|
22
|
+
return (u, d) => {
|
|
23
|
+
const e = _;
|
|
24
|
+
return t(), o(e, { class: "root-property" }, {
|
|
25
25
|
default: p(() => [
|
|
26
|
-
(t(), o(
|
|
26
|
+
(t(), o(c(r.value)))
|
|
27
27
|
]),
|
|
28
28
|
_: 1
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, P = /* @__PURE__ */ a(f, [["__scopeId", "data-v-e88c3a83"]]);
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
P as default
|
|
35
35
|
};
|
|
@@ -11,7 +11,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js";
|
|
|
11
11
|
import "../../../node_modules/element-plus/theme-chalk/el-date-picker-panel.css.js";
|
|
12
12
|
import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
13
13
|
import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
14
|
-
import { computed as
|
|
14
|
+
import { computed as v, watch as h, ref as z, unref as u, openBlock as r, createElementBlock as w, createBlock as f, isRef as i, createVNode as V, createElementVNode as D, withCtx as E, Fragment as O, renderList as $ } from "vue";
|
|
15
15
|
import { useVModel as K } from "../../../node_modules/@vueuse/core/index.js";
|
|
16
16
|
import U from "../../components/ValueSelector.vue2.js";
|
|
17
17
|
import L from "../../api/index.js";
|
|
@@ -54,28 +54,28 @@ const _ = { key: 0 }, ee = {
|
|
|
54
54
|
"update:isField",
|
|
55
55
|
"update:showText"
|
|
56
56
|
],
|
|
57
|
-
setup(
|
|
58
|
-
const
|
|
57
|
+
setup(s, { emit: j }) {
|
|
58
|
+
const d = s, Y = j, l = v({
|
|
59
59
|
get() {
|
|
60
|
-
return
|
|
60
|
+
return d.modelValue;
|
|
61
61
|
},
|
|
62
62
|
set(t) {
|
|
63
63
|
Y("update:modelValue", t);
|
|
64
64
|
}
|
|
65
|
-
}), T = K(
|
|
65
|
+
}), T = K(d, "isField", Y);
|
|
66
66
|
h(T, (t, e) => {
|
|
67
67
|
t !== e && (l.value = null);
|
|
68
68
|
});
|
|
69
69
|
const S = z(!1);
|
|
70
70
|
h(
|
|
71
|
-
() =>
|
|
71
|
+
() => d.operator,
|
|
72
72
|
(t) => {
|
|
73
73
|
const e = ["in_any", "ni_any", "contains", "not_contains"];
|
|
74
74
|
S.value = e.includes(t);
|
|
75
75
|
},
|
|
76
76
|
{ immediate: !0 }
|
|
77
77
|
), h(
|
|
78
|
-
() =>
|
|
78
|
+
() => d.operator,
|
|
79
79
|
(t, e) => {
|
|
80
80
|
const o = [
|
|
81
81
|
"in_any",
|
|
@@ -98,7 +98,7 @@ const _ = { key: 0 }, ee = {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
|
-
const x =
|
|
101
|
+
const x = v(() => d.operator === "range"), C = v(() => !["is_null", "is_not_null"].includes(d.operator)), H = v(() => d.fieldType === "input" && S.value && !T.value), p = v({
|
|
102
102
|
get: () => {
|
|
103
103
|
let t = l.value;
|
|
104
104
|
return t && typeof t == "object" && t.type === "field" && (t = t.value), Array.isArray(t) ? t[0] : "";
|
|
@@ -110,14 +110,14 @@ const _ = { key: 0 }, ee = {
|
|
|
110
110
|
if (t === "" && o === "")
|
|
111
111
|
l.value = null;
|
|
112
112
|
else {
|
|
113
|
-
const n =
|
|
113
|
+
const n = d.fieldType === "number" && !T.value;
|
|
114
114
|
l.value = [
|
|
115
115
|
t === "" ? null : n ? Number(t) : t,
|
|
116
116
|
o === "" ? null : n ? Number(o) : o
|
|
117
117
|
];
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
}), y =
|
|
120
|
+
}), y = v({
|
|
121
121
|
get: () => {
|
|
122
122
|
let t = l.value;
|
|
123
123
|
return t && typeof t == "object" && t.type === "field" && (t = t.value), Array.isArray(t) && t.length > 1 ? t[1] : "";
|
|
@@ -129,16 +129,16 @@ const _ = { key: 0 }, ee = {
|
|
|
129
129
|
if (o === "" && t === "")
|
|
130
130
|
l.value = null;
|
|
131
131
|
else {
|
|
132
|
-
const n =
|
|
132
|
+
const n = d.fieldType === "number" && !T.value;
|
|
133
133
|
l.value = [
|
|
134
134
|
o === "" ? null : n ? Number(o) : o,
|
|
135
135
|
t === "" ? null : n ? Number(t) : t
|
|
136
136
|
];
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
}), M = z([]), R =
|
|
139
|
+
}), M = z([]), R = v(() => P());
|
|
140
140
|
h(
|
|
141
|
-
() =>
|
|
141
|
+
() => d.field,
|
|
142
142
|
(t) => {
|
|
143
143
|
const e = t.fieldType;
|
|
144
144
|
if ((e === "select" || e === "multipleSelection" || e === "radio" || e === "checkbox") && t.optionConfig) {
|
|
@@ -157,12 +157,12 @@ const _ = { key: 0 }, ee = {
|
|
|
157
157
|
currentDataSourceId: n
|
|
158
158
|
});
|
|
159
159
|
g.fetch().then((m) => {
|
|
160
|
-
var
|
|
161
|
-
let
|
|
162
|
-
Array.isArray(m) ?
|
|
160
|
+
var N, F;
|
|
161
|
+
let c = [];
|
|
162
|
+
Array.isArray(m) ? c = m : typeof m == "object" && (c = Array.isArray(m.data) ? m.data : ((N = m.data) == null ? void 0 : N.records) || ((F = m.data) == null ? void 0 : F.list) || []), c = c.map((I) => ({
|
|
163
163
|
label: I[A],
|
|
164
164
|
value: I[a]
|
|
165
|
-
})), M.value =
|
|
165
|
+
})), M.value = c, g.destroy();
|
|
166
166
|
});
|
|
167
167
|
} catch (g) {
|
|
168
168
|
console.error(`Failed to load data source ${dataSourceId}:`, g);
|
|
@@ -170,18 +170,18 @@ const _ = { key: 0 }, ee = {
|
|
|
170
170
|
else
|
|
171
171
|
o === "dictionary" && b ? L.getDicDataByKey(b).then((g) => {
|
|
172
172
|
const m = [];
|
|
173
|
-
for (const
|
|
174
|
-
m.push({ label: g[
|
|
173
|
+
for (const c in g)
|
|
174
|
+
m.push({ label: g[c], value: c });
|
|
175
175
|
M.value = m;
|
|
176
176
|
}) : M.value = k || [];
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
{ deep: !0, immediate: !0 }
|
|
180
180
|
);
|
|
181
|
-
const B =
|
|
181
|
+
const B = v(() => {
|
|
182
182
|
if (!l.value)
|
|
183
183
|
return "";
|
|
184
|
-
if (
|
|
184
|
+
if (d.fieldType === "select") {
|
|
185
185
|
const t = M.value || [];
|
|
186
186
|
if (S.value && Array.isArray(l.value))
|
|
187
187
|
return l.value.map((o) => {
|
|
@@ -193,7 +193,7 @@ const _ = { key: 0 }, ee = {
|
|
|
193
193
|
return e ? e.label : l.value;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
return
|
|
196
|
+
return d.fieldType === "boolean" ? l.value === !0 ? "是" : l.value === !1 ? "否" : "" : String(l.value);
|
|
197
197
|
});
|
|
198
198
|
return h(
|
|
199
199
|
B,
|
|
@@ -203,36 +203,33 @@ const _ = { key: 0 }, ee = {
|
|
|
203
203
|
{ immediate: !0, deep: !0 }
|
|
204
204
|
), (t, e) => {
|
|
205
205
|
const o = J, n = Q, b = W, k = X, A = Z;
|
|
206
|
-
return u(C) ? (
|
|
207
|
-
u(T) && !u(x) ? (
|
|
206
|
+
return u(C) ? (r(), w("div", ee, [
|
|
207
|
+
u(T) && !u(x) ? (r(), f(U, {
|
|
208
208
|
key: 0,
|
|
209
209
|
modelValue: u(l),
|
|
210
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
211
|
-
"available-fields": r.allFields,
|
|
210
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => i(l) ? l.value = a : null),
|
|
212
211
|
multiple: u(S),
|
|
213
212
|
placeholder: "请选择字段",
|
|
214
213
|
style: { width: "100%" }
|
|
215
|
-
}, null, 8, ["modelValue", "
|
|
214
|
+
}, null, 8, ["modelValue", "multiple"])) : u(T) && u(x) ? (r(), w("div", le, [
|
|
216
215
|
V(U, {
|
|
217
216
|
modelValue: u(p),
|
|
218
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) =>
|
|
219
|
-
"available-fields": r.allFields,
|
|
217
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => i(p) ? p.value = a : null),
|
|
220
218
|
placeholder: "请选择最小值字段",
|
|
221
219
|
style: { width: "calc(50% - 20px)" }
|
|
222
|
-
}, null, 8, ["modelValue"
|
|
220
|
+
}, null, 8, ["modelValue"]),
|
|
223
221
|
e[14] || (e[14] = D("span", { style: { margin: "0 5px" } }, "-", -1)),
|
|
224
222
|
V(U, {
|
|
225
223
|
modelValue: u(y),
|
|
226
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) =>
|
|
227
|
-
"available-fields": r.allFields,
|
|
224
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => i(y) ? y.value = a : null),
|
|
228
225
|
placeholder: "请选择最大值字段",
|
|
229
226
|
style: { width: "50%" }
|
|
230
|
-
}, null, 8, ["modelValue"
|
|
231
|
-
])) : (
|
|
232
|
-
u(x) &&
|
|
227
|
+
}, null, 8, ["modelValue"])
|
|
228
|
+
])) : (r(), w("div", te, [
|
|
229
|
+
u(x) && s.fieldType === "number" ? (r(), w("div", ae, [
|
|
233
230
|
V(o, {
|
|
234
231
|
modelValue: u(p),
|
|
235
|
-
"onUpdate:modelValue": e[3] || (e[3] = (a) =>
|
|
232
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => i(p) ? p.value = a : null),
|
|
236
233
|
modelModifiers: { number: !0 },
|
|
237
234
|
placeholder: "最小值",
|
|
238
235
|
type: "number",
|
|
@@ -242,18 +239,18 @@ const _ = { key: 0 }, ee = {
|
|
|
242
239
|
e[15] || (e[15] = D("span", { style: { margin: "0 5px" } }, "-", -1)),
|
|
243
240
|
V(o, {
|
|
244
241
|
modelValue: u(y),
|
|
245
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) =>
|
|
242
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => i(y) ? y.value = a : null),
|
|
246
243
|
modelModifiers: { number: !0 },
|
|
247
244
|
placeholder: "最大值",
|
|
248
245
|
type: "number",
|
|
249
246
|
size: "default",
|
|
250
247
|
style: { width: "50%" }
|
|
251
248
|
}, null, 8, ["modelValue"])
|
|
252
|
-
])) : u(x) && (
|
|
249
|
+
])) : u(x) && (s.fieldType === "date" || s.fieldType === "datetime") ? (r(), w("div", oe, [
|
|
253
250
|
V(n, {
|
|
254
251
|
modelValue: u(p),
|
|
255
|
-
"onUpdate:modelValue": e[5] || (e[5] = (a) =>
|
|
256
|
-
type:
|
|
252
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => i(p) ? p.value = a : null),
|
|
253
|
+
type: s.fieldType === "datetime" ? "datetime" : "date",
|
|
257
254
|
placeholder: "开始日期",
|
|
258
255
|
size: "default",
|
|
259
256
|
style: { width: "calc(50% - 20px)" },
|
|
@@ -262,68 +259,68 @@ const _ = { key: 0 }, ee = {
|
|
|
262
259
|
e[16] || (e[16] = D("span", { style: { margin: "0 5px" } }, "-", -1)),
|
|
263
260
|
V(n, {
|
|
264
261
|
modelValue: u(y),
|
|
265
|
-
"onUpdate:modelValue": e[6] || (e[6] = (a) =>
|
|
266
|
-
type:
|
|
262
|
+
"onUpdate:modelValue": e[6] || (e[6] = (a) => i(y) ? y.value = a : null),
|
|
263
|
+
type: s.fieldType === "datetime" ? "datetime" : "date",
|
|
267
264
|
placeholder: "结束日期",
|
|
268
265
|
size: "default",
|
|
269
266
|
style: { width: "50%" },
|
|
270
267
|
"value-format": "YYYYMMDDHHmmss"
|
|
271
268
|
}, null, 8, ["modelValue", "type"])
|
|
272
|
-
])) : u(H) ? (
|
|
269
|
+
])) : u(H) ? (r(), f(b, {
|
|
273
270
|
key: 2,
|
|
274
271
|
modelValue: u(l),
|
|
275
|
-
"onUpdate:modelValue": e[7] || (e[7] = (a) =>
|
|
272
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => i(l) ? l.value = a : null),
|
|
276
273
|
trigger: "Space",
|
|
277
274
|
placeholder: "输入后空格或失去焦点添加",
|
|
278
275
|
style: { width: "100%" }
|
|
279
|
-
}, null, 8, ["modelValue"])) :
|
|
276
|
+
}, null, 8, ["modelValue"])) : s.fieldType === "select" ? (r(), f(A, {
|
|
280
277
|
key: 3,
|
|
281
278
|
modelValue: u(l),
|
|
282
|
-
"onUpdate:modelValue": e[8] || (e[8] = (a) =>
|
|
279
|
+
"onUpdate:modelValue": e[8] || (e[8] = (a) => i(l) ? l.value = a : null),
|
|
283
280
|
multiple: u(S),
|
|
284
281
|
filterable: "",
|
|
285
282
|
placeholder: "请选择",
|
|
286
283
|
style: { width: "100%" }
|
|
287
284
|
}, {
|
|
288
285
|
default: E(() => [
|
|
289
|
-
(
|
|
286
|
+
(r(!0), w(O, null, $(u(M), (a) => (r(), f(k, {
|
|
290
287
|
key: a.value,
|
|
291
288
|
label: a.label,
|
|
292
289
|
value: a.value
|
|
293
290
|
}, null, 8, ["label", "value"]))), 128))
|
|
294
291
|
]),
|
|
295
292
|
_: 1
|
|
296
|
-
}, 8, ["modelValue", "multiple"])) :
|
|
293
|
+
}, 8, ["modelValue", "multiple"])) : s.fieldType === "number" ? (r(), f(o, {
|
|
297
294
|
key: 4,
|
|
298
295
|
modelValue: u(l),
|
|
299
|
-
"onUpdate:modelValue": e[9] || (e[9] = (a) =>
|
|
296
|
+
"onUpdate:modelValue": e[9] || (e[9] = (a) => i(l) ? l.value = a : null),
|
|
300
297
|
modelModifiers: { number: !0 },
|
|
301
298
|
type: "number",
|
|
302
299
|
placeholder: "请输入数值",
|
|
303
300
|
size: "default",
|
|
304
301
|
style: { width: "100%" }
|
|
305
|
-
}, null, 8, ["modelValue"])) :
|
|
302
|
+
}, null, 8, ["modelValue"])) : s.fieldType === "date" ? (r(), f(n, {
|
|
306
303
|
key: 5,
|
|
307
304
|
modelValue: u(l),
|
|
308
|
-
"onUpdate:modelValue": e[10] || (e[10] = (a) =>
|
|
305
|
+
"onUpdate:modelValue": e[10] || (e[10] = (a) => i(l) ? l.value = a : null),
|
|
309
306
|
type: "date",
|
|
310
307
|
placeholder: "请选择日期",
|
|
311
308
|
size: "default",
|
|
312
309
|
style: { width: "100%" },
|
|
313
310
|
"value-format": "YYYYMMDD"
|
|
314
|
-
}, null, 8, ["modelValue"])) :
|
|
311
|
+
}, null, 8, ["modelValue"])) : s.fieldType === "datetime" ? (r(), f(n, {
|
|
315
312
|
key: 6,
|
|
316
313
|
modelValue: u(l),
|
|
317
|
-
"onUpdate:modelValue": e[11] || (e[11] = (a) =>
|
|
314
|
+
"onUpdate:modelValue": e[11] || (e[11] = (a) => i(l) ? l.value = a : null),
|
|
318
315
|
type: "datetime",
|
|
319
316
|
placeholder: "请选择日期时间",
|
|
320
317
|
size: "default",
|
|
321
318
|
style: { width: "100%" },
|
|
322
319
|
"value-format": "YYYYMMDDHHmmss"
|
|
323
|
-
}, null, 8, ["modelValue"])) :
|
|
320
|
+
}, null, 8, ["modelValue"])) : s.fieldType === "boolean" ? (r(), f(A, {
|
|
324
321
|
key: 7,
|
|
325
322
|
modelValue: u(l),
|
|
326
|
-
"onUpdate:modelValue": e[12] || (e[12] = (a) =>
|
|
323
|
+
"onUpdate:modelValue": e[12] || (e[12] = (a) => i(l) ? l.value = a : null),
|
|
327
324
|
placeholder: "请选择",
|
|
328
325
|
style: { width: "100%" }
|
|
329
326
|
}, {
|
|
@@ -338,19 +335,19 @@ const _ = { key: 0 }, ee = {
|
|
|
338
335
|
})
|
|
339
336
|
]),
|
|
340
337
|
_: 1
|
|
341
|
-
}, 8, ["modelValue"])) : (
|
|
338
|
+
}, 8, ["modelValue"])) : (r(), f(o, {
|
|
342
339
|
key: 8,
|
|
343
340
|
modelValue: u(l),
|
|
344
|
-
"onUpdate:modelValue": e[13] || (e[13] = (a) =>
|
|
341
|
+
"onUpdate:modelValue": e[13] || (e[13] = (a) => i(l) ? l.value = a : null),
|
|
345
342
|
placeholder: "请输入",
|
|
346
343
|
size: "default",
|
|
347
344
|
style: { width: "100%" }
|
|
348
345
|
}, null, 8, ["modelValue"]))
|
|
349
346
|
]))
|
|
350
|
-
])) : (
|
|
347
|
+
])) : (r(), w("div", _));
|
|
351
348
|
};
|
|
352
349
|
}
|
|
353
|
-
},
|
|
350
|
+
}, Ne = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-d103ec3f"]]);
|
|
354
351
|
export {
|
|
355
|
-
|
|
352
|
+
Ne as default
|
|
356
353
|
};
|