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