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
|
@@ -6,37 +6,39 @@ import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
|
6
6
|
import "../../../node_modules/element-plus/theme-chalk/el-form.css.js";
|
|
7
7
|
import "../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
8
8
|
import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
9
|
-
import { computed as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import z from "../../
|
|
16
|
-
import
|
|
9
|
+
import { computed as g, ref as v, reactive as I, openBlock as y, createBlock as D, withCtx as m, createElementVNode as o, toDisplayString as f, unref as r, createVNode as t, resolveDynamicComponent as U, isRef as H, createTextVNode as N } from "vue";
|
|
10
|
+
import R from "../../assets/logo.png.js";
|
|
11
|
+
import { UploadFilled as T, Edit as h } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
12
|
+
import { ElMessage as q } from "element-plus";
|
|
13
|
+
import J from "../../packages/table/headerBtn.vue.js";
|
|
14
|
+
import S from "../../packages/form/headerBtn.vue.js";
|
|
15
|
+
import { getEditConfigData as z } from "../../packages/utils/common.js";
|
|
16
|
+
import M from "../../api/index.js";
|
|
17
|
+
import O from "../../store/index.js";
|
|
18
|
+
import $ from "../../../package.json.js";
|
|
17
19
|
import "./index.vue2.js";
|
|
18
|
-
import { ElIcon as
|
|
19
|
-
import { ElInput as
|
|
20
|
-
import { ElFormItem as
|
|
21
|
-
import { ElButton as
|
|
22
|
-
import { ElDialog as
|
|
23
|
-
import { ElHeader as
|
|
24
|
-
const
|
|
20
|
+
import { ElIcon as j } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
21
|
+
import { ElInput as A } from "../../../node_modules/element-plus/es/components/input/index.js";
|
|
22
|
+
import { ElFormItem as G, ElForm as L } from "../../../node_modules/element-plus/es/components/form/index.js";
|
|
23
|
+
import { ElButton as P } from "../../../node_modules/element-plus/es/components/button/index.js";
|
|
24
|
+
import { ElDialog as Q } from "../../../node_modules/element-plus/es/components/dialog/index.js";
|
|
25
|
+
import { ElHeader as W } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
26
|
+
const X = { class: "dev-title" }, Y = { class: "logo" }, Z = { class: "version" }, ee = { class: "header-title" }, te = { class: "title-row" }, le = { class: "template-name" }, oe = { class: "template-key" }, ae = { class: "opt-btn-content" }, me = { class: "dialog-footer" }, Ue = {
|
|
25
27
|
__name: "index",
|
|
26
|
-
setup(
|
|
27
|
-
const V =
|
|
28
|
-
switch (
|
|
28
|
+
setup(re) {
|
|
29
|
+
const V = g(() => {
|
|
30
|
+
switch (O.getters.editingType) {
|
|
29
31
|
case "table":
|
|
30
|
-
return
|
|
32
|
+
return J;
|
|
31
33
|
case "form":
|
|
32
|
-
return
|
|
34
|
+
return S;
|
|
33
35
|
}
|
|
34
36
|
return null;
|
|
35
|
-
}), b =
|
|
37
|
+
}), b = g(() => z()), E = $.version, p = () => b.value || {}, i = v(!1), c = v(null), l = I({
|
|
36
38
|
templateName: "",
|
|
37
39
|
templateKey: "",
|
|
38
40
|
templateDesc: ""
|
|
39
|
-
}),
|
|
41
|
+
}), K = {
|
|
40
42
|
templateKey: [{ required: !0, message: "请输入模板标识", trigger: "blur" }],
|
|
41
43
|
templateName: [
|
|
42
44
|
{ required: !0, message: "请输入模板名称", trigger: "blur" }
|
|
@@ -45,70 +47,79 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
|
|
|
45
47
|
{ max: 200, message: "长度不能超过 200 个字符", trigger: "blur" }
|
|
46
48
|
]
|
|
47
49
|
};
|
|
48
|
-
function
|
|
49
|
-
const
|
|
50
|
-
l.templateName =
|
|
50
|
+
function k() {
|
|
51
|
+
const a = p();
|
|
52
|
+
l.templateName = a.templateName || "", l.templateKey = a.templateKey || "", l.templateDesc = a.templateDesc || "", i.value = !0;
|
|
51
53
|
}
|
|
52
54
|
function x() {
|
|
53
|
-
var
|
|
54
|
-
(
|
|
55
|
+
var a;
|
|
56
|
+
(a = c.value) == null || a.validate((e) => {
|
|
55
57
|
if (e) {
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
+
const n = p();
|
|
59
|
+
n.templateName = l.templateName, n.templateKey = l.templateKey, n.templateDesc = l.templateDesc, i.value = !1;
|
|
58
60
|
} else
|
|
59
61
|
return !1;
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
|
-
function
|
|
63
|
-
const
|
|
64
|
-
pkId:
|
|
65
|
-
templateKey:
|
|
66
|
-
templateName:
|
|
67
|
-
context: JSON.stringify(
|
|
64
|
+
function w() {
|
|
65
|
+
const a = p(), e = {
|
|
66
|
+
pkId: a.pkId,
|
|
67
|
+
templateKey: a.templateKey,
|
|
68
|
+
templateName: a.templateName,
|
|
69
|
+
context: JSON.stringify(a)
|
|
68
70
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
M.updateById(e).then(() => {
|
|
72
|
+
q.success("保存成功");
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
return (
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
-
default:
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
return (a, e) => {
|
|
76
|
+
const n = j, d = A, u = G, C = L, _ = P, B = Q, F = W;
|
|
77
|
+
return y(), D(F, { class: "dev-root-header" }, {
|
|
78
|
+
default: m(() => [
|
|
79
|
+
o("div", X, [
|
|
80
|
+
o("div", Y, [
|
|
81
|
+
e[5] || (e[5] = o("img", {
|
|
82
|
+
src: R,
|
|
83
|
+
alt: "logo",
|
|
84
|
+
class: "logo-img"
|
|
85
|
+
}, null, -1)),
|
|
86
|
+
e[6] || (e[6] = o("div", { class: "title" }, "表单设计器", -1)),
|
|
87
|
+
o("div", Z, "v" + f(r(E)), 1)
|
|
88
|
+
]),
|
|
89
|
+
o("div", {
|
|
79
90
|
class: "btn-item",
|
|
80
|
-
onClick:
|
|
91
|
+
onClick: w
|
|
81
92
|
}, [
|
|
82
|
-
t(
|
|
83
|
-
default:
|
|
84
|
-
t(
|
|
93
|
+
t(n, null, {
|
|
94
|
+
default: m(() => [
|
|
95
|
+
t(r(T))
|
|
85
96
|
]),
|
|
86
97
|
_: 1
|
|
87
98
|
}),
|
|
88
|
-
e[
|
|
99
|
+
e[7] || (e[7] = o("span", null, "保存", -1))
|
|
89
100
|
])
|
|
90
101
|
]),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
t(
|
|
102
|
+
o("div", ee, [
|
|
103
|
+
o("div", te, [
|
|
104
|
+
o("div", le, f(p().templateName), 1),
|
|
105
|
+
t(n, {
|
|
95
106
|
class: "edit-icon",
|
|
96
|
-
onClick:
|
|
107
|
+
onClick: k
|
|
97
108
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
t(
|
|
109
|
+
default: m(() => [
|
|
110
|
+
t(r(h))
|
|
100
111
|
]),
|
|
101
112
|
_: 1
|
|
102
113
|
})
|
|
103
114
|
]),
|
|
104
|
-
|
|
115
|
+
o("div", oe, f(p().templateKey), 1)
|
|
105
116
|
]),
|
|
106
|
-
|
|
107
|
-
(
|
|
117
|
+
o("div", ae, [
|
|
118
|
+
(y(), D(U(V.value)))
|
|
108
119
|
]),
|
|
109
|
-
t(
|
|
110
|
-
modelValue:
|
|
111
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
120
|
+
t(B, {
|
|
121
|
+
modelValue: r(i),
|
|
122
|
+
"onUpdate:modelValue": e[4] || (e[4] = (s) => H(i) ? i.value = s : null),
|
|
112
123
|
title: "编辑模板信息",
|
|
113
124
|
width: "500px",
|
|
114
125
|
draggable: "",
|
|
@@ -116,44 +127,44 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
|
|
|
116
127
|
"append-to-body": "",
|
|
117
128
|
class: "fec-dev-designer-dialog"
|
|
118
129
|
}, {
|
|
119
|
-
footer:
|
|
120
|
-
|
|
121
|
-
t(
|
|
122
|
-
onClick: e[3] || (e[3] = (
|
|
130
|
+
footer: m(() => [
|
|
131
|
+
o("div", me, [
|
|
132
|
+
t(_, {
|
|
133
|
+
onClick: e[3] || (e[3] = (s) => i.value = !1)
|
|
123
134
|
}, {
|
|
124
|
-
default:
|
|
135
|
+
default: m(() => [...e[8] || (e[8] = [
|
|
125
136
|
N("取消", -1)
|
|
126
137
|
])]),
|
|
127
138
|
_: 1
|
|
128
139
|
}),
|
|
129
|
-
t(
|
|
140
|
+
t(_, {
|
|
130
141
|
type: "primary",
|
|
131
142
|
onClick: x
|
|
132
143
|
}, {
|
|
133
|
-
default:
|
|
144
|
+
default: m(() => [...e[9] || (e[9] = [
|
|
134
145
|
N("确定", -1)
|
|
135
146
|
])]),
|
|
136
147
|
_: 1
|
|
137
148
|
})
|
|
138
149
|
])
|
|
139
150
|
]),
|
|
140
|
-
default:
|
|
141
|
-
t(
|
|
142
|
-
model:
|
|
143
|
-
rules:
|
|
151
|
+
default: m(() => [
|
|
152
|
+
t(C, {
|
|
153
|
+
model: r(l),
|
|
154
|
+
rules: K,
|
|
144
155
|
ref_key: "editFormRef",
|
|
145
|
-
ref:
|
|
156
|
+
ref: c,
|
|
146
157
|
"label-width": "100px"
|
|
147
158
|
}, {
|
|
148
|
-
default:
|
|
159
|
+
default: m(() => [
|
|
149
160
|
t(u, {
|
|
150
161
|
label: "模板标识",
|
|
151
162
|
prop: "templateKey"
|
|
152
163
|
}, {
|
|
153
|
-
default:
|
|
164
|
+
default: m(() => [
|
|
154
165
|
t(d, {
|
|
155
|
-
modelValue:
|
|
156
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
166
|
+
modelValue: r(l).templateKey,
|
|
167
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => r(l).templateKey = s),
|
|
157
168
|
placeholder: "请输入模板标识"
|
|
158
169
|
}, null, 8, ["modelValue"])
|
|
159
170
|
]),
|
|
@@ -163,10 +174,10 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
|
|
|
163
174
|
label: "模板名称",
|
|
164
175
|
prop: "templateName"
|
|
165
176
|
}, {
|
|
166
|
-
default:
|
|
177
|
+
default: m(() => [
|
|
167
178
|
t(d, {
|
|
168
|
-
modelValue:
|
|
169
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
179
|
+
modelValue: r(l).templateName,
|
|
180
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => r(l).templateName = s),
|
|
170
181
|
placeholder: "请输入模板名称"
|
|
171
182
|
}, null, 8, ["modelValue"])
|
|
172
183
|
]),
|
|
@@ -176,10 +187,10 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
|
|
|
176
187
|
label: "模板描述",
|
|
177
188
|
prop: "templateDesc"
|
|
178
189
|
}, {
|
|
179
|
-
default:
|
|
190
|
+
default: m(() => [
|
|
180
191
|
t(d, {
|
|
181
|
-
modelValue:
|
|
182
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
192
|
+
modelValue: r(l).templateDesc,
|
|
193
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => r(l).templateDesc = s),
|
|
183
194
|
type: "textarea",
|
|
184
195
|
rows: 4,
|
|
185
196
|
placeholder: "请输入模板描述",
|
|
@@ -203,5 +214,5 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
|
|
|
203
214
|
}
|
|
204
215
|
};
|
|
205
216
|
export {
|
|
206
|
-
|
|
217
|
+
Ue as default
|
|
207
218
|
};
|
|
@@ -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
|
};
|