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