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