act-plus 1.1.44 → 1.1.46
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/act-plus.js +1 -1
- package/act-plus.umd.cjs +68 -68
- package/lib/{dialogAddField-7f034dbc.js → dialogAddField-43f3a8b3.js} +330 -311
- package/lib/{dialogConfigBtn-8d068d2d.js → dialogConfigBtn-298b9b5c.js} +2 -2
- package/lib/{dialogSiteComponentsParams-a46b4c82.js → dialogSiteComponentsParams-fab326d2.js} +1 -1
- package/lib/{index-4e6030dd.js → index-1a957d2f.js} +31556 -31523
- package/lib/{index-43425404.js → index-37ff46df.js} +151 -153
- package/lib/{index-d4f84e7d.js → index-738cbb81.js} +15 -15
- package/lib/{index-ae4aa026.js → index-81b16d7b.js} +1 -1
- package/lib/index-c91a3357.js +291 -0
- package/lib/{index-8c31400c.js → index-ce00842d.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-16e2c7e5.js +0 -283
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as A, inject as T, ref as K, watch as Te, resolveComponent as v, resolveDirective as ee, openBlock as u, createBlock as m, withCtx as
|
|
2
|
-
import { _ as we, u as Ue, P as
|
|
1
|
+
import { defineAsyncComponent as A, inject as T, ref as K, watch as Te, resolveComponent as v, resolveDirective as ee, openBlock as u, createBlock as m, withCtx as C, createElementVNode as le, createVNode as ae, createTextVNode as W, toDisplayString as O, unref as d, withDirectives as oe, createElementBlock as P, Fragment as q, renderList as G, mergeProps as V, createCommentVNode as te, resolveDynamicComponent as De, toRaw as Ke } from "vue";
|
|
2
|
+
import { _ as we, u as Ue, P as Ne, a as Pe, b as ke } from "./index-1a957d2f.js";
|
|
3
3
|
import { ElNotification as Se } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
@@ -13,23 +13,23 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
15
|
setup(w, { emit: se }) {
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
if (l[
|
|
19
|
-
return
|
|
20
|
-
const n = a.postRequestParams.filter((b) => b.submitType === "default").reduce((b, D) => (b[D.submitName] =
|
|
16
|
+
const re = A(() => import("./index-1a957d2f.js").then((l) => l.t)), de = A(() => import("./index-81b16d7b.js")), ie = A(() => import("./index-1a957d2f.js").then((l) => l.s)), ne = A(() => import("./index-1a957d2f.js").then((l) => l.r)), { t: y } = Ue(), x = T("request"), ue = T("loadComponents"), k = T("formatDataType"), J = T("globalProps"), ce = T("stringToBoolean"), h = T("getFieldUiProps"), fe = T("disposeRequestData"), Q = se, f = w, S = K(!1), L = K(!1), M = K(null), R = K([]), o = K({}), E = K({}), pe = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, me = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), ye = async ({ node: l, resolve: c }, a) => {
|
|
17
|
+
const r = h(a), { label: p, value: i, children: g, isLeaf: t } = { ...ke, ...r.treeProps || {} };
|
|
18
|
+
if (l[t])
|
|
19
|
+
return c([]);
|
|
20
|
+
const n = a.postRequestParams.filter((b) => b.submitType === "default").reduce((b, D) => (b[D.submitName] = k(D.paramsType, D.submitValue), b), {}), F = a.postRequestParams.filter((b) => b.submitType === "dynamic").map((b) => ({
|
|
21
21
|
field: b.submitName,
|
|
22
22
|
operate: b.submitMatchType,
|
|
23
|
-
value:
|
|
23
|
+
value: r.loadCode ? l == null ? void 0 : l.data.value : k(b.paramsType, b.submitValue)
|
|
24
24
|
}));
|
|
25
25
|
let _ = {};
|
|
26
|
-
Object.keys(n).length && (_ = { ..._, ...n }),
|
|
27
|
-
const { data:
|
|
26
|
+
Object.keys(n).length && (_ = { ..._, ...n }), F.length && (_.dynamicFilters = F), r.loadCode && Reflect.has(_, r.loadCode) && (_[r.loadCode] = l == null ? void 0 : l.data.value);
|
|
27
|
+
const { data: U } = await x({
|
|
28
28
|
url: a.fieldRequestUrl,
|
|
29
29
|
method: a.fieldRequestType || "GET",
|
|
30
30
|
data: _
|
|
31
|
-
}), B = (
|
|
32
|
-
|
|
31
|
+
}), B = (U || []).map((b) => ({ label: b[p], value: b[i], children: [], isLeaf: b[t] }));
|
|
32
|
+
c(B);
|
|
33
33
|
}, j = (l) => {
|
|
34
34
|
if (!["input", "textarea"].includes(l)) {
|
|
35
35
|
if (["multipleSelect", "dateRange"].includes(l))
|
|
@@ -37,120 +37,118 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
37
37
|
if (["switch"].includes(l))
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
|
-
}, $ = (l,
|
|
41
|
-
if (["string"].includes(
|
|
42
|
-
return l.
|
|
43
|
-
if (["
|
|
40
|
+
}, $ = (l, c) => {
|
|
41
|
+
if (typeof l == "string" && ["string"].includes(c))
|
|
42
|
+
return l.toString();
|
|
43
|
+
if (["string"].includes(c))
|
|
44
|
+
return l.sort((a, r) => a.sort - r.sort).join(";");
|
|
45
|
+
if (["number"].includes(c))
|
|
44
46
|
return Number(l);
|
|
45
|
-
if (["array"].includes(
|
|
46
|
-
return l.sort((a,
|
|
47
|
-
}, Y = (l,
|
|
47
|
+
if (["array"].includes(c))
|
|
48
|
+
return l.sort((a, r) => a.sort - r.sort);
|
|
49
|
+
}, Y = (l, c = !1) => {
|
|
48
50
|
if (["multipleSelect"].includes(l.fieldType))
|
|
49
|
-
return
|
|
51
|
+
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";").map((r) => c ? { value: r } : r) : [];
|
|
50
52
|
if (["virtualizedMultipleSelect"].includes(l.fieldType))
|
|
51
|
-
return
|
|
52
|
-
if (["dateRange"].includes(l.fieldType)) {
|
|
53
|
-
const
|
|
54
|
-
return
|
|
53
|
+
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";") : [];
|
|
54
|
+
if (["dateRange", "provinceCascade"].includes(l.fieldType)) {
|
|
55
|
+
const r = l.fieldKey.split("&");
|
|
56
|
+
return f.data.rowData[l.fieldKey] = r.map((p) => f.data.rowData[p]), f.data.rowData[l.fieldKey];
|
|
55
57
|
}
|
|
56
|
-
let a =
|
|
58
|
+
let a = f.data.rowData[l.fieldKey];
|
|
57
59
|
if (["select"].includes(l.fieldType)) {
|
|
58
|
-
const
|
|
59
|
-
l.dataList && typeof l.dataList[0][
|
|
60
|
+
const r = h(l);
|
|
61
|
+
l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
|
|
60
62
|
}
|
|
61
63
|
if (["virtualizedSelect"].includes(l.fieldType)) {
|
|
62
|
-
const
|
|
63
|
-
l.dataList && typeof l.dataList[0][
|
|
64
|
+
const r = h(l);
|
|
65
|
+
l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
|
|
64
66
|
}
|
|
65
67
|
return (a === "true" || a === "false") && (a = ce(a)), a;
|
|
66
|
-
}, be = (l) => x({ url:
|
|
68
|
+
}, be = (l) => x({ url: f.data.dataItem.requestUrl, method: "post", data: l });
|
|
67
69
|
Te(
|
|
68
|
-
() =>
|
|
69
|
-
async (l,
|
|
70
|
-
var a,
|
|
70
|
+
() => f.visible,
|
|
71
|
+
async (l, c) => {
|
|
72
|
+
var a, r;
|
|
71
73
|
if (l)
|
|
72
74
|
try {
|
|
73
|
-
|
|
74
|
-
const p = await fe(
|
|
75
|
-
console.log("formList", (a =
|
|
76
|
-
(((
|
|
75
|
+
S.value = !0;
|
|
76
|
+
const p = await fe(f.data.formList, f.data.rowData, !1, !0);
|
|
77
|
+
console.log("formList", (a = f.data) == null ? void 0 : a.formList), R.value = await Promise.all(
|
|
78
|
+
(((r = f.data) == null ? void 0 : r.formList) ?? []).sort((i, g) => i.sort - g.sort).map(async (i) => {
|
|
77
79
|
const g = p.find((_) => i.fieldName == _.fieldName && i.fieldKey == _.fieldKey);
|
|
78
|
-
g && (i.dataList = (g == null ? void 0 : g.dataList) ?? []), ["select", "multipleSelect"].includes(i.fieldType) && (o.value[`${i.fieldKey}ActImplicit`] = Object.keys(
|
|
79
|
-
const { isFieldCustom:
|
|
80
|
-
if (
|
|
81
|
-
const _ = await ue(
|
|
80
|
+
g && (i.dataList = (g == null ? void 0 : g.dataList) ?? []), ["select", "multipleSelect"].includes(i.fieldType) && (o.value[`${i.fieldKey}ActImplicit`] = Object.keys(f.data.rowData).length && i.isFormSetValue ? Y(i, !0) : j(i.fieldType)), o.value[i.fieldKey] = Object.keys(f.data.rowData).length && i.isFormSetValue ? Y(i) : j(i.fieldType);
|
|
81
|
+
const { isFieldCustom: t, customComponentName: n, customComponentUrl: F } = i.customFiledsComponentes;
|
|
82
|
+
if (t && !i.customFiledsComponentes[n]) {
|
|
83
|
+
const _ = await ue(F, n);
|
|
82
84
|
i.customFiledsComponentes[n] = _;
|
|
83
85
|
}
|
|
84
86
|
return i;
|
|
85
87
|
})
|
|
86
|
-
),
|
|
88
|
+
), S.value = !1;
|
|
87
89
|
} catch (p) {
|
|
88
|
-
console.error(p),
|
|
90
|
+
console.error(p), S.value = !1;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
);
|
|
92
94
|
const he = (l) => {
|
|
93
95
|
z(), l();
|
|
94
96
|
}, z = () => {
|
|
95
|
-
|
|
96
|
-
}, _e = (l,
|
|
97
|
-
const a = h(
|
|
97
|
+
R.value = [], M.value.resetFields(), Q("update:visible", !1);
|
|
98
|
+
}, _e = (l, c) => {
|
|
99
|
+
const a = h(c), { fieldKey: r, fieldType: p } = c;
|
|
98
100
|
if (p === "multipleSelect") {
|
|
99
|
-
const i = l.filter((
|
|
100
|
-
o.value[a.createFieldKey] = i.length ? $(i, "string") : void 0, o.value[
|
|
101
|
+
const i = l.filter((t) => typeof t == "string"), g = l.filter((t) => typeof t != "string").map((t) => t.value);
|
|
102
|
+
o.value[a.createFieldKey] = i.length ? $(i, "string") : void 0, o.value[r] = g.length ? $(g, "string") : void 0;
|
|
101
103
|
} else
|
|
102
|
-
typeof l == "string" ? (o.value[a.createFieldKey] = l, o.value[
|
|
104
|
+
typeof l == "string" ? (o.value[a.createFieldKey] = l, o.value[r] = void 0) : (o.value[r] = l.value, delete o.value[a.createFieldKey]);
|
|
103
105
|
}, ge = (l) => {
|
|
104
|
-
l && l.validate((
|
|
105
|
-
if (
|
|
106
|
-
const { dataItem: a, rowData:
|
|
106
|
+
l && l.validate((c) => {
|
|
107
|
+
if (c) {
|
|
108
|
+
const { dataItem: a, rowData: r } = f.data;
|
|
107
109
|
let p = { ...Ke(o.value) };
|
|
108
|
-
|
|
109
|
-
if (
|
|
110
|
-
delete p[
|
|
110
|
+
Object.keys(p).forEach((t) => {
|
|
111
|
+
if (t.includes("ActImplicit")) {
|
|
112
|
+
delete p[t];
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
113
|
-
const n =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
p[_] = $(p[d][k], n.fieldSubmitType);
|
|
118
|
-
});
|
|
119
|
-
} else
|
|
120
|
-
Array.isArray(p[d]) && n.fieldSubmitType == "string" && (p[d] = $(p[d], "string"));
|
|
115
|
+
const n = R.value.find((F) => F.fieldKey === t);
|
|
116
|
+
t.includes("&") ? t.split("&").forEach((_, U) => {
|
|
117
|
+
p[_] = p[t] ? $(p[t][U], n.fieldSubmitType) : p[t];
|
|
118
|
+
}) : Array.isArray(p[t]) && n.fieldSubmitType == "string" && (p[t] = $(p[t], "string"));
|
|
121
119
|
});
|
|
122
|
-
const i = a.submitFields.filter((
|
|
120
|
+
const i = a.submitFields.filter((t) => t.matchType == "default").reduce((t, n) => (n.submitFieldType === "string" && (t[n.submitFieldName] = n.matchFieldName.toString()), t), {}), g = a.submitFields.filter((t) => t.matchType == "match").reduce((t, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(J.matchData, n.submitFieldMatchOrigin) && (t[n.submitFieldName] = k(n.submitFieldType, J.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : t[n.submitFieldName] = k(n.submitFieldType, r[n.matchFieldName]), t), {});
|
|
123
121
|
be({
|
|
124
122
|
...p,
|
|
125
123
|
...i,
|
|
126
124
|
...g
|
|
127
|
-
}).then((
|
|
125
|
+
}).then((t) => {
|
|
128
126
|
try {
|
|
129
127
|
Se({ title: y("act.tip"), message: y("act.saveSuccessfully"), type: "success", duration: 2500 }), z(), Q("refresh");
|
|
130
128
|
} catch (n) {
|
|
131
129
|
console.error(n);
|
|
132
130
|
}
|
|
133
|
-
|
|
134
|
-
}).catch((
|
|
135
|
-
console.error(
|
|
131
|
+
L.value = !1;
|
|
132
|
+
}).catch((t) => {
|
|
133
|
+
console.error(t), L.value = !1;
|
|
136
134
|
});
|
|
137
135
|
}
|
|
138
136
|
});
|
|
139
137
|
}, ve = (l) => {
|
|
140
|
-
const
|
|
141
|
-
var
|
|
142
|
-
return (
|
|
138
|
+
const c = Object.keys(E.value).map((a) => {
|
|
139
|
+
var r;
|
|
140
|
+
return (r = E.value[a]) == null ? void 0 : r.updateFormData(o.value);
|
|
143
141
|
}).filter((a) => a);
|
|
144
|
-
Promise.all([l.validate(), ...
|
|
145
|
-
a.every((
|
|
142
|
+
Promise.all([l.validate(), ...c]).then((a) => {
|
|
143
|
+
a.every((r) => r) && ge(l);
|
|
146
144
|
}).catch((a) => (console.error(a), a));
|
|
147
145
|
};
|
|
148
|
-
return (l,
|
|
146
|
+
return (l, c) => {
|
|
149
147
|
var X;
|
|
150
|
-
const a = v("el-input"),
|
|
148
|
+
const a = v("el-input"), r = v("el-option"), p = v("el-select"), i = v("el-select-v2"), g = v("el-tree-select"), t = v("el-date-picker"), n = v("el-cascader"), F = v("el-switch"), _ = v("el-form-item"), U = v("el-col"), B = v("el-row"), b = v("el-form"), D = v("el-button"), Ve = v("el-dialog"), Ce = ee("loading"), Fe = ee("debounce");
|
|
151
149
|
return u(), m(Ve, {
|
|
152
|
-
"model-value":
|
|
153
|
-
title:
|
|
150
|
+
"model-value": f.visible,
|
|
151
|
+
title: f.title,
|
|
154
152
|
top: "5vh",
|
|
155
153
|
width: (X = w.data.formConfig) == null ? void 0 : X.dialogWidth,
|
|
156
154
|
draggable: "",
|
|
@@ -160,24 +158,24 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
160
158
|
"close-on-click-modal": !1,
|
|
161
159
|
"before-close": he
|
|
162
160
|
}, {
|
|
163
|
-
footer:
|
|
161
|
+
footer: C(() => [
|
|
164
162
|
le("span", Re, [
|
|
165
163
|
ae(D, {
|
|
166
|
-
loading:
|
|
164
|
+
loading: L.value,
|
|
167
165
|
onClick: z
|
|
168
166
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
W(O(
|
|
167
|
+
default: C(() => [
|
|
168
|
+
W(O(d(y)("act.cancel")), 1)
|
|
171
169
|
]),
|
|
172
170
|
_: 1
|
|
173
171
|
}, 8, ["loading"]),
|
|
174
172
|
oe((u(), m(D, {
|
|
175
173
|
type: "primary",
|
|
176
|
-
loading:
|
|
177
|
-
onClick:
|
|
174
|
+
loading: L.value,
|
|
175
|
+
onClick: c[1] || (c[1] = (H) => ve(M.value))
|
|
178
176
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
W(O(
|
|
177
|
+
default: C(() => [
|
|
178
|
+
W(O(d(y)("act.save")), 1)
|
|
181
179
|
]),
|
|
182
180
|
_: 1
|
|
183
181
|
}, 8, ["loading"])), [
|
|
@@ -185,7 +183,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
185
183
|
])
|
|
186
184
|
])
|
|
187
185
|
]),
|
|
188
|
-
default:
|
|
186
|
+
default: C(() => {
|
|
189
187
|
var H, Z;
|
|
190
188
|
return [
|
|
191
189
|
oe((u(), m(b, {
|
|
@@ -197,125 +195,125 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
197
195
|
"label-width": (H = w.data.formConfig) == null ? void 0 : H.formLabelWidth,
|
|
198
196
|
"label-position": (Z = w.data.formConfig) == null ? void 0 : Z.formLabelPosition
|
|
199
197
|
}, {
|
|
200
|
-
default:
|
|
198
|
+
default: C(() => [
|
|
201
199
|
ae(B, { gutter: 40 }, {
|
|
202
|
-
default:
|
|
203
|
-
(u(!0), P(q, null, G(
|
|
200
|
+
default: C(() => [
|
|
201
|
+
(u(!0), P(q, null, G(R.value, (e, I) => (u(), m(U, {
|
|
204
202
|
span: pe(e),
|
|
205
203
|
key: I
|
|
206
204
|
}, {
|
|
207
|
-
default:
|
|
205
|
+
default: C(() => [
|
|
208
206
|
e.customFiledsComponentes.isFieldCustom ? (u(), P(q, { key: 1 }, [
|
|
209
207
|
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), m(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
210
208
|
key: 0,
|
|
211
209
|
ref_for: !0,
|
|
212
|
-
ref: (
|
|
210
|
+
ref: (s) => E.value[e.customFiledsComponentes.customComponentName] = s,
|
|
213
211
|
formConfig: w.data.formConfig,
|
|
214
212
|
item: e,
|
|
215
|
-
rowData:
|
|
216
|
-
visible:
|
|
213
|
+
rowData: f.data.rowData,
|
|
214
|
+
visible: f.visible,
|
|
217
215
|
form: o.value,
|
|
218
|
-
"onUpdate:form":
|
|
216
|
+
"onUpdate:form": c[0] || (c[0] = (s) => o.value = s)
|
|
219
217
|
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), P("div", {
|
|
220
218
|
class: "no-config",
|
|
221
219
|
key: I
|
|
222
220
|
}, [
|
|
223
221
|
le("span", Le, "【" + O(e.fieldName) + "】", 1),
|
|
224
|
-
W(O(
|
|
222
|
+
W(O(d(y)("act.fieldCustom")), 1)
|
|
225
223
|
]))
|
|
226
224
|
], 64)) : (u(), m(_, {
|
|
227
225
|
key: 0,
|
|
228
226
|
label: e.fieldName,
|
|
229
227
|
prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
|
|
230
|
-
rules: [{ required: e.isFormFieldRequired, message:
|
|
228
|
+
rules: [{ required: e.isFormFieldRequired, message: d(y)("act.requiredMessage"), trigger: me(e) }]
|
|
231
229
|
}, {
|
|
232
|
-
default:
|
|
230
|
+
default: C(() => [
|
|
233
231
|
e.fieldType === "input" ? (u(), m(a, V({
|
|
234
232
|
key: 0,
|
|
235
233
|
modelValue: o.value[e.fieldKey],
|
|
236
|
-
"onUpdate:modelValue": (
|
|
237
|
-
placeholder: `${
|
|
234
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
235
|
+
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
238
236
|
clearable: "",
|
|
239
237
|
ref_for: !0
|
|
240
|
-
},
|
|
238
|
+
}, d(h)(e), {
|
|
241
239
|
disabled: e.isFormDisabled
|
|
242
240
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : te("", !0),
|
|
243
|
-
e.fieldType === "inputNumber" ? (u(), m(
|
|
241
|
+
e.fieldType === "inputNumber" ? (u(), m(d(re), V({
|
|
244
242
|
key: 1,
|
|
245
243
|
modelValue: o.value[e.fieldKey],
|
|
246
|
-
"onUpdate:modelValue": (
|
|
247
|
-
placeholder: `${
|
|
244
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
245
|
+
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
248
246
|
clearable: "",
|
|
249
247
|
ref_for: !0
|
|
250
|
-
},
|
|
248
|
+
}, d(h)(e), {
|
|
251
249
|
disabled: e.isFormDisabled
|
|
252
250
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), m(a, V({
|
|
253
251
|
key: 2,
|
|
254
252
|
modelValue: o.value[e.fieldKey],
|
|
255
|
-
"onUpdate:modelValue": (
|
|
256
|
-
placeholder: `${
|
|
253
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
254
|
+
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
257
255
|
rows: 4,
|
|
258
256
|
ref_for: !0
|
|
259
|
-
},
|
|
257
|
+
}, d(h)(e), {
|
|
260
258
|
type: "textarea",
|
|
261
259
|
disabled: e.isFormDisabled
|
|
262
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), m(
|
|
260
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), m(d(de), V({
|
|
263
261
|
key: 3,
|
|
264
262
|
modelValue: o.value[e.fieldKey],
|
|
265
|
-
"onUpdate:modelValue": (
|
|
263
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
266
264
|
icons: e.dataList,
|
|
267
|
-
placeholder: `${
|
|
265
|
+
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
268
266
|
ref_for: !0
|
|
269
|
-
},
|
|
267
|
+
}, d(h)(e), {
|
|
270
268
|
disabled: e.isFormDisabled
|
|
271
269
|
}), {
|
|
272
|
-
default:
|
|
273
|
-
(u(!0), P(q, null, G(e.dataList, (
|
|
270
|
+
default: C(() => [
|
|
271
|
+
(u(!0), P(q, null, G(e.dataList, (s, N) => (u(), m(r, {
|
|
274
272
|
key: N,
|
|
275
|
-
label:
|
|
276
|
-
value:
|
|
273
|
+
label: s.key,
|
|
274
|
+
value: s.value
|
|
277
275
|
}, null, 8, ["label", "value"]))), 128))
|
|
278
276
|
]),
|
|
279
277
|
_: 2
|
|
280
278
|
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (u(), m(p, V({
|
|
281
279
|
key: 4,
|
|
282
280
|
modelValue: o.value[`${e.fieldKey}ActImplicit`],
|
|
283
|
-
"onUpdate:modelValue": (
|
|
284
|
-
placeholder: `${
|
|
281
|
+
"onUpdate:modelValue": (s) => o.value[`${e.fieldKey}ActImplicit`] = s,
|
|
282
|
+
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
285
283
|
clearable: "",
|
|
286
284
|
filterable: "",
|
|
287
285
|
"value-key": "value",
|
|
288
286
|
ref_for: !0
|
|
289
|
-
},
|
|
287
|
+
}, d(h)(e), {
|
|
290
288
|
multiple: e.fieldType === "multipleSelect",
|
|
291
289
|
disabled: e.isFormDisabled,
|
|
292
|
-
onChange: (
|
|
290
|
+
onChange: (s) => _e(s, e)
|
|
293
291
|
}), {
|
|
294
|
-
default:
|
|
295
|
-
(u(!0), P(q, null, G(e.dataList, (
|
|
292
|
+
default: C(() => [
|
|
293
|
+
(u(!0), P(q, null, G(e.dataList, (s, N) => (u(), m(r, {
|
|
296
294
|
key: N,
|
|
297
|
-
label:
|
|
298
|
-
value:
|
|
295
|
+
label: s.key,
|
|
296
|
+
value: s
|
|
299
297
|
}, null, 8, ["label", "value"]))), 128))
|
|
300
298
|
]),
|
|
301
299
|
_: 2
|
|
302
300
|
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (u(), m(i, V({
|
|
303
301
|
key: 5,
|
|
304
302
|
modelValue: o.value[e.fieldKey],
|
|
305
|
-
"onUpdate:modelValue": (
|
|
303
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
306
304
|
options: e.dataList,
|
|
307
|
-
props: { ...
|
|
308
|
-
placeholder: `${
|
|
305
|
+
props: { ...d(Ne) },
|
|
306
|
+
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
309
307
|
clearable: "",
|
|
310
308
|
filterable: "",
|
|
311
309
|
ref_for: !0
|
|
312
|
-
},
|
|
310
|
+
}, d(h)(e), {
|
|
313
311
|
disabled: e.isFormDisabled,
|
|
314
312
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
315
313
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (u(), m(g, V({
|
|
316
314
|
key: 6,
|
|
317
315
|
modelValue: o.value[e.fieldKey],
|
|
318
|
-
"onUpdate:modelValue": (
|
|
316
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
319
317
|
placeholder: `请选择${e.fieldName}`,
|
|
320
318
|
props: { isLeaf: "isLeaf" },
|
|
321
319
|
"render-after-expand": !1,
|
|
@@ -326,62 +324,62 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
326
324
|
clearable: "",
|
|
327
325
|
filterable: "",
|
|
328
326
|
lazy: "",
|
|
329
|
-
load: (
|
|
327
|
+
load: (s, N) => ye({ node: s, resolve: N }, e),
|
|
330
328
|
ref_for: !0
|
|
331
|
-
},
|
|
329
|
+
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), m(t, V({
|
|
332
330
|
key: 7,
|
|
333
331
|
modelValue: o.value[e.fieldKey],
|
|
334
|
-
"onUpdate:modelValue": (
|
|
332
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
335
333
|
type: "date",
|
|
336
|
-
placeholder: `${
|
|
334
|
+
placeholder: `${d(y)("act.selectPlaceholder")}${d(y)("act.time")}`,
|
|
337
335
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
338
336
|
ref_for: !0
|
|
339
|
-
},
|
|
337
|
+
}, d(h)(e), {
|
|
340
338
|
disabled: e.isFormDisabled
|
|
341
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), m(
|
|
339
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), m(t, V({
|
|
342
340
|
key: 8,
|
|
343
341
|
modelValue: o.value[e.fieldKey],
|
|
344
|
-
"onUpdate:modelValue": (
|
|
342
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
345
343
|
type: "daterange",
|
|
346
|
-
"start-placeholder":
|
|
347
|
-
"end-placeholder":
|
|
344
|
+
"start-placeholder": d(y)("act.startTime"),
|
|
345
|
+
"end-placeholder": d(y)("act.endTime"),
|
|
348
346
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
349
347
|
ref_for: !0
|
|
350
|
-
},
|
|
348
|
+
}, d(h)(e), {
|
|
351
349
|
disabled: e.isFormDisabled
|
|
352
350
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), m(n, V({
|
|
353
351
|
key: 9,
|
|
354
352
|
modelValue: o.value[e.fieldKey],
|
|
355
|
-
"onUpdate:modelValue": (
|
|
353
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
356
354
|
options: e.dataList,
|
|
357
|
-
props:
|
|
355
|
+
props: d(Pe),
|
|
358
356
|
clearable: "",
|
|
359
357
|
filterable: "",
|
|
360
|
-
placeholder: `${
|
|
358
|
+
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
361
359
|
ref_for: !0
|
|
362
|
-
},
|
|
360
|
+
}, d(h)(e), {
|
|
363
361
|
disabled: e.isFormDisabled
|
|
364
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), m(
|
|
362
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), m(F, {
|
|
365
363
|
key: 10,
|
|
366
364
|
modelValue: o.value[e.fieldKey],
|
|
367
|
-
"onUpdate:modelValue": (
|
|
365
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
368
366
|
"active-value": !0,
|
|
369
367
|
"inactive-value": !1
|
|
370
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), m(
|
|
368
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), m(d(ie), V({
|
|
371
369
|
key: 11,
|
|
372
370
|
class: "form-upload",
|
|
373
371
|
modelValue: o.value[e.fieldKey],
|
|
374
|
-
"onUpdate:modelValue": (
|
|
375
|
-
request:
|
|
372
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
373
|
+
request: d(x),
|
|
376
374
|
ref_for: !0
|
|
377
|
-
},
|
|
375
|
+
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), m(d(ne), V({
|
|
378
376
|
key: 12,
|
|
379
377
|
modelValue: o.value[e.fieldKey],
|
|
380
|
-
"onUpdate:modelValue": (
|
|
378
|
+
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
381
379
|
disabled: e.isFormDisabled,
|
|
382
|
-
placeholder: `${
|
|
380
|
+
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
383
381
|
ref_for: !0
|
|
384
|
-
},
|
|
382
|
+
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : te("", !0)
|
|
385
383
|
]),
|
|
386
384
|
_: 2
|
|
387
385
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -394,7 +392,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
394
392
|
]),
|
|
395
393
|
_: 1
|
|
396
394
|
}, 8, ["model", "label-width", "label-position"])), [
|
|
397
|
-
[Ce,
|
|
395
|
+
[Ce, S.value]
|
|
398
396
|
])
|
|
399
397
|
];
|
|
400
398
|
}),
|
|
@@ -402,7 +400,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
402
400
|
}, 8, ["model-value", "title", "width"]);
|
|
403
401
|
};
|
|
404
402
|
}
|
|
405
|
-
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-
|
|
403
|
+
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-498aa674"]]);
|
|
406
404
|
export {
|
|
407
405
|
je as default
|
|
408
406
|
};
|