act-plus 1.1.91 → 1.1.93
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 +3 -3
- package/act-plus.umd.cjs +50 -50
- package/lib/{dialogAddField-44777711.js → dialogAddField-9c964889.js} +134 -114
- package/lib/{dialogConfigBtn-d1689521.js → dialogConfigBtn-dff385f4.js} +321 -283
- package/lib/{dialogSiteComponentsParams-20202897.js → dialogSiteComponentsParams-ff85fff1.js} +1 -1
- package/lib/{index-102a66e3.js → index-1683f054.js} +123 -123
- package/lib/{index-faf7bfa8.js → index-87379c99.js} +153 -153
- package/lib/{index-ab23fa70.js → index-8b829da2.js} +1 -1
- package/lib/{index-d8903caa.js → index-9bb0a4a8.js} +1 -1
- package/lib/{index-dd0e4184.js → index-a1705d25.js} +2444 -2413
- package/lib/index-aa0662e4.js +215 -0
- package/lib/{index-ddb4ce93.js → index-b941f8eb.js} +1 -1
- package/lib/{index-815a580b.js → index-d3b35914.js} +1 -1
- package/lib/{index-66d3a947.js → index-fbe3414d.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-141f7eb5.js +0 -215
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { ElNotification as
|
|
1
|
+
import { defineAsyncComponent as x, inject as w, ref as k, watch as Pe, resolveComponent as _, resolveDirective as ae, openBlock as u, createBlock as y, withCtx as D, createElementVNode as te, createVNode as oe, createTextVNode as Q, toDisplayString as A, unref as s, withDirectives as se, createElementBlock as $, Fragment as q, renderList as X, mergeProps as v, createCommentVNode as re, resolveDynamicComponent as ke, toRaw as Ue } from "vue";
|
|
2
|
+
import { _ as Se, u as Le, P as Ne, b as de, a as Re, c as $e } from "./index-a1705d25.js";
|
|
3
|
+
import { ElNotification as Oe } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
const
|
|
5
|
+
const xe = { class: "no-config-field" }, Ae = { class: "dialog-footer" }, qe = {
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
visible: { type: Boolean, default: !1 },
|
|
@@ -10,35 +10,35 @@ 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(
|
|
14
|
-
const
|
|
15
|
-
const d =
|
|
16
|
-
if (l[
|
|
13
|
+
setup(U, { emit: ie }) {
|
|
14
|
+
const ne = x(() => import("./index-e2f2023d.js")), ue = x(() => import("./index-b941f8eb.js")), ce = x(() => import("./index-8b829da2.js")), fe = x(() => import("./index-2cdc185b.js")), { t: b, locale: pe } = Le(), T = (l) => $e(l, pe.value), M = w("request"), me = w("loadComponents"), P = w("formatDataType"), E = w("globalProps"), ye = w("stringToBoolean"), h = w("getFieldUiProps"), be = w("disposeRequestData"), Z = ie, p = U, O = k(!1), S = k(!1), j = k(null), L = k([]), t = k({}), Y = k({}), he = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ge = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), _e = async ({ node: l, resolve: c }, a) => {
|
|
15
|
+
const d = h(a), { label: m, value: i, children: g, isLeaf: r } = { ...de, ...d.treeProps || {} };
|
|
16
|
+
if (l[r])
|
|
17
17
|
return c([]);
|
|
18
|
-
const n = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, V) => (f[V.submitName] =
|
|
18
|
+
const n = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, V) => (f[V.submitName] = P(V.paramsType, V.submitValue), f), {}), C = a.postRequestParams.filter((f) => f.submitType === "match").reduce((f, V) => (f[V.submitName] = P(V.paramsType, E.matchData[V.submitValue][V.submitName]), f), {}), K = a.postRequestParams.filter((f) => f.submitType === "dynamic").map((f) => {
|
|
19
19
|
let V = {
|
|
20
20
|
field: f.submitName,
|
|
21
21
|
operate: f.submitMatchType,
|
|
22
|
-
value:
|
|
22
|
+
value: P(f.paramsType, f.submitValue)
|
|
23
23
|
};
|
|
24
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(n).length && (
|
|
28
|
-
const { data:
|
|
26
|
+
let F = {};
|
|
27
|
+
Object.keys(n).length && (F = { ...F, ...n }), Object.keys(C).length && (F = { ...F, ...C }), K.length && (F.dynamicFilters = K), d.loadCode && Reflect.has(F, d.loadCode) && (F[d.loadCode] = l == null ? void 0 : l.data.value);
|
|
28
|
+
const { data: W } = await M({
|
|
29
29
|
url: a.fieldRequestUrl,
|
|
30
30
|
method: a.fieldRequestType || "GET",
|
|
31
|
-
data:
|
|
32
|
-
}),
|
|
33
|
-
c(
|
|
34
|
-
},
|
|
31
|
+
data: F
|
|
32
|
+
}), G = (W || []).map((f) => ({ label: f[m], value: f[i], children: [], isLeaf: f[r] }));
|
|
33
|
+
c(G);
|
|
34
|
+
}, z = (l) => {
|
|
35
35
|
if (!["input", "textarea"].includes(l)) {
|
|
36
36
|
if (["multipleSelect", "dateRange"].includes(l))
|
|
37
37
|
return [];
|
|
38
38
|
if (["switch"].includes(l))
|
|
39
39
|
return !1;
|
|
40
40
|
}
|
|
41
|
-
},
|
|
41
|
+
}, N = (l, c) => {
|
|
42
42
|
if (typeof l == "string" && ["string"].includes(c))
|
|
43
43
|
return l.toString();
|
|
44
44
|
if (["string"].includes(c))
|
|
@@ -47,7 +47,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
47
47
|
return Number(l);
|
|
48
48
|
if (["array"].includes(c))
|
|
49
49
|
return l.sort((a, d) => a.sort - d.sort);
|
|
50
|
-
},
|
|
50
|
+
}, B = (l, c = !1) => {
|
|
51
51
|
if (["multipleSelect"].includes(l.fieldType))
|
|
52
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))
|
|
@@ -58,218 +58,218 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
58
58
|
}
|
|
59
59
|
let a = p.data.rowData[l.fieldKey];
|
|
60
60
|
if (["select"].includes(l.fieldType)) {
|
|
61
|
-
const d =
|
|
61
|
+
const d = h(l);
|
|
62
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 d =
|
|
65
|
+
const d = h(l);
|
|
66
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
|
-
return (a === "true" || a === "false") && (a =
|
|
69
|
-
},
|
|
70
|
-
|
|
68
|
+
return (a === "true" || a === "false") && (a = ye(a)), a;
|
|
69
|
+
}, ve = (l) => M({ url: p.data.dataItem.requestUrl, method: "post", data: l });
|
|
70
|
+
Pe(
|
|
71
71
|
() => p.visible,
|
|
72
72
|
async (l, c) => {
|
|
73
73
|
var a, d;
|
|
74
74
|
if (l)
|
|
75
75
|
try {
|
|
76
|
-
|
|
77
|
-
const m = await
|
|
78
|
-
console.log("formList", (a = p.data) == null ? void 0 : a.formList),
|
|
76
|
+
O.value = !0;
|
|
77
|
+
const m = await be(p.data.formList, p.data.rowData, !1, !0);
|
|
78
|
+
console.log("formList", (a = p.data) == null ? void 0 : a.formList), L.value = await Promise.all(
|
|
79
79
|
(((d = p.data) == null ? void 0 : d.formList) ?? []).sort((i, g) => i.sort - g.sort).map(async (i) => {
|
|
80
|
-
const g = m.find((
|
|
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 ?
|
|
82
|
-
const { isFieldCustom:
|
|
83
|
-
if (
|
|
84
|
-
const
|
|
85
|
-
i.customFiledsComponentes[n] =
|
|
80
|
+
const g = m.find((K) => i.fieldName == K.fieldName && i.fieldKey == K.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 ? B(i, !0) : z(i.fieldType)), t.value[i.fieldKey] = Object.keys(p.data.rowData).length && i.isFormSetValue ? B(i) : z(i.fieldType), t.value[i.fieldKey] = i.fieldDefaultValue && !t.value[i.fieldKey] ? N(i.fieldDefaultValue, i.fieldSubmitType) : t.value[i.fieldKey];
|
|
82
|
+
const { isFieldCustom: r, customComponentName: n, customComponentUrl: C } = i.customFiledsComponentes;
|
|
83
|
+
if (r && !i.customFiledsComponentes[n]) {
|
|
84
|
+
const K = await me(C, n);
|
|
85
|
+
i.customFiledsComponentes[n] = K;
|
|
86
86
|
}
|
|
87
87
|
return i;
|
|
88
88
|
})
|
|
89
|
-
),
|
|
89
|
+
), O.value = !1;
|
|
90
90
|
} catch (m) {
|
|
91
|
-
console.error(m),
|
|
91
|
+
console.error(m), O.value = !1;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
const a =
|
|
95
|
+
const Ve = (l) => {
|
|
96
|
+
H(), l();
|
|
97
|
+
}, H = () => {
|
|
98
|
+
L.value = [], j.value.resetFields(), Z("update:visible", !1);
|
|
99
|
+
}, Te = (l, c) => {
|
|
100
|
+
const a = h(c), { fieldKey: d, fieldType: m } = c;
|
|
101
101
|
if (m === "multipleSelect") {
|
|
102
|
-
const i = l.filter((
|
|
103
|
-
t.value[a.createFieldKey] = i.length ?
|
|
102
|
+
const i = l.filter((r) => typeof r == "string"), g = l.filter((r) => typeof r != "string").map((r) => r.value);
|
|
103
|
+
t.value[a.createFieldKey] = i.length ? N(i, "string") : "", t.value[d] = g.length ? N(g, "string") : "";
|
|
104
104
|
} else
|
|
105
105
|
typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[d] = "") : (t.value[d] = l.value, delete t.value[a.createFieldKey]);
|
|
106
|
-
},
|
|
106
|
+
}, Fe = (l, c) => {
|
|
107
107
|
const { fieldKey: a, fieldType: d } = c;
|
|
108
108
|
d === "multipleSelect" ? l === void 0 && (t.value[a] = []) : l === void 0 && (t.value[a] = "");
|
|
109
|
-
},
|
|
109
|
+
}, Ce = (l) => {
|
|
110
110
|
l && l.validate((c) => {
|
|
111
111
|
if (c) {
|
|
112
112
|
const { dataItem: a, rowData: d } = p.data;
|
|
113
|
-
let m = { ...
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
delete m[
|
|
113
|
+
let m = { ...Ue(t.value) };
|
|
114
|
+
S.value = !0, console.log(m), console.log(L.value), Object.keys(m).forEach((r) => {
|
|
115
|
+
if (r.includes("ActImplicit")) {
|
|
116
|
+
delete m[r];
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const n =
|
|
120
|
-
console.log(n),
|
|
121
|
-
m[
|
|
122
|
-
}) : Array.isArray(m[
|
|
119
|
+
const n = L.value.find((C) => C.fieldKey === r);
|
|
120
|
+
console.log(n), r.includes("&") ? r.split("&").forEach((K, F) => {
|
|
121
|
+
m[K] = m[r] ? N(m[r][F], n.fieldSubmitType) : m[r];
|
|
122
|
+
}) : Array.isArray(m[r]) && (n == null ? void 0 : n.fieldSubmitType) == "string" && (m[r] = N(m[r], "string"));
|
|
123
123
|
});
|
|
124
|
-
const i = a.submitFields.filter((
|
|
125
|
-
|
|
124
|
+
const i = a.submitFields.filter((r) => r.matchType == "default").reduce((r, n) => (n.submitFieldType === "string" && (r[n.submitFieldName] = n.matchFieldName.toString()), r), {}), g = a.submitFields.filter((r) => r.matchType == "match").reduce((r, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin === "selections" ? r[n.submitFieldName] = p.data.selections.map((C) => P(n.submitFieldType, C[n.matchFieldName])) : Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, n.submitFieldMatchOrigin) && (r[n.submitFieldName] = P(n.submitFieldType, E.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : r[n.submitFieldName] = P(n.submitFieldType, d[n.matchFieldName]), r), {});
|
|
125
|
+
ve({
|
|
126
126
|
...m,
|
|
127
127
|
...i,
|
|
128
128
|
...g
|
|
129
|
-
}).then((
|
|
129
|
+
}).then((r) => {
|
|
130
130
|
try {
|
|
131
|
-
|
|
131
|
+
Oe({ title: b("act.tip"), message: b("act.saveSuccessfully"), type: "success", duration: 2500 }), H(), Z("refresh", a);
|
|
132
132
|
} catch (n) {
|
|
133
133
|
console.error(n);
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
}).catch((
|
|
137
|
-
console.error(
|
|
135
|
+
S.value = !1;
|
|
136
|
+
}).catch((r) => {
|
|
137
|
+
console.error(r), S.value = !1;
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
},
|
|
142
|
-
const c = Object.keys(
|
|
141
|
+
}, Ke = (l) => {
|
|
142
|
+
const c = Object.keys(Y.value).map((a) => {
|
|
143
143
|
var d;
|
|
144
|
-
return (d =
|
|
144
|
+
return (d = Y.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((d) => d) &&
|
|
147
|
+
a.every((d) => d) && Ce(l);
|
|
148
148
|
}).catch((a) => (console.error(a), a));
|
|
149
149
|
};
|
|
150
150
|
return (l, c) => {
|
|
151
|
-
var
|
|
152
|
-
const a = _("el-input"), d = _("el-option"), m = _("el-select"), i = _("el-select-v2"), g = _("el-tree-select"),
|
|
151
|
+
var I;
|
|
152
|
+
const a = _("el-input"), d = _("el-option"), m = _("el-select"), i = _("el-select-v2"), g = _("el-tree-select"), r = _("el-date-picker"), n = _("el-cascader"), C = _("el-switch"), K = _("el-form-item"), F = _("el-col"), W = _("el-row"), G = _("el-form"), f = _("el-button"), V = _("el-dialog"), De = ae("loading"), we = ae("debounce");
|
|
153
153
|
return u(), y(V, {
|
|
154
154
|
"model-value": p.visible,
|
|
155
155
|
title: p.title,
|
|
156
156
|
top: "5vh",
|
|
157
|
-
width: (
|
|
157
|
+
width: (I = U.data.formConfig) == null ? void 0 : I.dialogWidth,
|
|
158
158
|
draggable: "",
|
|
159
159
|
overflow: "",
|
|
160
160
|
"append-to-body": "",
|
|
161
161
|
"destroy-on-close": "",
|
|
162
162
|
"close-on-click-modal": !1,
|
|
163
|
-
"before-close":
|
|
163
|
+
"before-close": Ve
|
|
164
164
|
}, {
|
|
165
|
-
footer:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
loading:
|
|
169
|
-
onClick:
|
|
165
|
+
footer: D(() => [
|
|
166
|
+
te("span", Ae, [
|
|
167
|
+
oe(f, {
|
|
168
|
+
loading: S.value,
|
|
169
|
+
onClick: H
|
|
170
170
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
171
|
+
default: D(() => [
|
|
172
|
+
Q(A(s(b)("act.cancel")), 1)
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
175
175
|
}, 8, ["loading"]),
|
|
176
|
-
|
|
176
|
+
se((u(), y(f, {
|
|
177
177
|
type: "primary",
|
|
178
|
-
loading:
|
|
179
|
-
onClick: c[1] || (c[1] = (
|
|
178
|
+
loading: S.value,
|
|
179
|
+
onClick: c[1] || (c[1] = (J) => Ke(j.value))
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
182
|
-
|
|
181
|
+
default: D(() => [
|
|
182
|
+
Q(A(s(b)("act.save")), 1)
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["loading"])), [
|
|
186
|
-
[
|
|
186
|
+
[we]
|
|
187
187
|
])
|
|
188
188
|
])
|
|
189
189
|
]),
|
|
190
|
-
default:
|
|
191
|
-
var
|
|
190
|
+
default: D(() => {
|
|
191
|
+
var J, ee;
|
|
192
192
|
return [
|
|
193
|
-
|
|
193
|
+
se((u(), y(G, {
|
|
194
194
|
class: "a-form",
|
|
195
195
|
ref_key: "formRef",
|
|
196
|
-
ref:
|
|
196
|
+
ref: j,
|
|
197
197
|
model: t.value,
|
|
198
198
|
"label-suffix": ":",
|
|
199
|
-
"label-width": (
|
|
200
|
-
"label-position": (
|
|
199
|
+
"label-width": (J = U.data.formConfig) == null ? void 0 : J.formLabelWidth,
|
|
200
|
+
"label-position": (ee = U.data.formConfig) == null ? void 0 : ee.formLabelPosition
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
|
|
204
|
-
default:
|
|
205
|
-
(u(!0),
|
|
206
|
-
span:
|
|
207
|
-
key:
|
|
202
|
+
default: D(() => [
|
|
203
|
+
oe(W, { gutter: 40 }, {
|
|
204
|
+
default: D(() => [
|
|
205
|
+
(u(!0), $(q, null, X(L.value, (e, le) => (u(), y(F, {
|
|
206
|
+
span: he(e),
|
|
207
|
+
key: le
|
|
208
208
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
e.customFiledsComponentes.isFieldCustom ? (u(),
|
|
211
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(
|
|
209
|
+
default: D(() => [
|
|
210
|
+
e.customFiledsComponentes.isFieldCustom ? (u(), $(q, { key: 1 }, [
|
|
211
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(ke(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
212
212
|
key: 0,
|
|
213
213
|
ref_for: !0,
|
|
214
|
-
ref: (o) =>
|
|
215
|
-
formConfig:
|
|
214
|
+
ref: (o) => Y.value[e.customFiledsComponentes.customComponentName] = o,
|
|
215
|
+
formConfig: U.data.formConfig,
|
|
216
216
|
item: e,
|
|
217
217
|
rowData: p.data.rowData,
|
|
218
218
|
visible: p.visible,
|
|
219
219
|
form: t.value,
|
|
220
220
|
"onUpdate:form": c[0] || (c[0] = (o) => t.value = o)
|
|
221
|
-
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(),
|
|
221
|
+
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), $("div", {
|
|
222
222
|
class: "no-config",
|
|
223
|
-
key:
|
|
223
|
+
key: le
|
|
224
224
|
}, [
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
te("span", xe, "【" + A(T(e)) + "】", 1),
|
|
226
|
+
Q(A(s(b)("act.fieldCustom")), 1)
|
|
227
227
|
]))
|
|
228
|
-
], 64)) : (u(), y(
|
|
228
|
+
], 64)) : (u(), y(K, {
|
|
229
229
|
key: 0,
|
|
230
|
-
label: e
|
|
230
|
+
label: T(e),
|
|
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: s(b)("act.requiredMessage"), trigger: ge(e) }]
|
|
233
233
|
}, {
|
|
234
|
-
default:
|
|
234
|
+
default: D(() => [
|
|
235
235
|
e.fieldType === "input" ? (u(), y(a, v({
|
|
236
236
|
key: 0,
|
|
237
237
|
modelValue: t.value[e.fieldKey],
|
|
238
238
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
239
|
-
placeholder: `${
|
|
239
|
+
placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`,
|
|
240
240
|
clearable: ""
|
|
241
|
-
}, { ref_for: !0 },
|
|
241
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
242
242
|
disabled: e.isFormDisabled
|
|
243
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
244
|
-
e.fieldType === "inputNumber" ? (u(), y(
|
|
243
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : re("", !0),
|
|
244
|
+
e.fieldType === "inputNumber" ? (u(), y(s(ne), v({
|
|
245
245
|
key: 1,
|
|
246
246
|
modelValue: t.value[e.fieldKey],
|
|
247
247
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
248
|
-
placeholder: `${
|
|
248
|
+
placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`,
|
|
249
249
|
clearable: ""
|
|
250
|
-
}, { ref_for: !0 },
|
|
250
|
+
}, { ref_for: !0 }, s(h)(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
254
|
modelValue: t.value[e.fieldKey],
|
|
255
255
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
256
|
-
placeholder: `${
|
|
256
|
+
placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`,
|
|
257
257
|
rows: 4
|
|
258
|
-
}, { ref_for: !0 },
|
|
258
|
+
}, { ref_for: !0 }, s(h)(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(s(ue), v({
|
|
262
262
|
key: 3,
|
|
263
263
|
modelValue: t.value[e.fieldKey],
|
|
264
264
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
265
265
|
icons: e.dataList,
|
|
266
|
-
placeholder: `${
|
|
267
|
-
}, { ref_for: !0 },
|
|
266
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`
|
|
267
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
268
268
|
disabled: e.isFormDisabled
|
|
269
269
|
}), {
|
|
270
|
-
default:
|
|
271
|
-
(u(!0),
|
|
272
|
-
key:
|
|
270
|
+
default: D(() => [
|
|
271
|
+
(u(!0), $(q, null, X(e.dataList, (o, R) => (u(), y(d, {
|
|
272
|
+
key: R,
|
|
273
273
|
label: o.key,
|
|
274
274
|
value: o.value
|
|
275
275
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -279,18 +279,18 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
279
279
|
key: 4,
|
|
280
280
|
modelValue: t.value[`${e.fieldKey}ActImplicit`],
|
|
281
281
|
"onUpdate:modelValue": (o) => t.value[`${e.fieldKey}ActImplicit`] = o,
|
|
282
|
-
placeholder: `${
|
|
282
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
|
|
283
283
|
clearable: "",
|
|
284
284
|
filterable: "",
|
|
285
285
|
"value-key": "value"
|
|
286
|
-
}, { ref_for: !0 },
|
|
286
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
287
287
|
multiple: e.fieldType === "multipleSelect",
|
|
288
288
|
disabled: e.isFormDisabled,
|
|
289
|
-
onChange: (o) =>
|
|
289
|
+
onChange: (o) => Te(o, e)
|
|
290
290
|
}), {
|
|
291
|
-
default:
|
|
292
|
-
(u(!0),
|
|
293
|
-
key:
|
|
291
|
+
default: D(() => [
|
|
292
|
+
(u(!0), $(q, null, X(e.dataList, (o, R) => (u(), y(d, {
|
|
293
|
+
key: R,
|
|
294
294
|
label: o.key,
|
|
295
295
|
value: o
|
|
296
296
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -301,33 +301,33 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
301
301
|
modelValue: t.value[e.fieldKey],
|
|
302
302
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
303
303
|
options: e.dataList,
|
|
304
|
-
props: { ...
|
|
305
|
-
placeholder: `${
|
|
304
|
+
props: { ...s(Ne) },
|
|
305
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
|
|
306
306
|
clearable: "",
|
|
307
307
|
filterable: ""
|
|
308
|
-
}, { ref_for: !0 },
|
|
308
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
309
309
|
disabled: e.isFormDisabled,
|
|
310
310
|
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
311
|
-
onChange: (o) =>
|
|
311
|
+
onChange: (o) => Fe(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
314
|
modelValue: t.value[e.fieldKey],
|
|
315
315
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
316
316
|
data: e.dataList,
|
|
317
317
|
"default-expanded-keys": [t.value[e.fieldKey] || null],
|
|
318
|
-
placeholder:
|
|
319
|
-
props: { ...
|
|
318
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
|
|
319
|
+
props: { ...s(de), ...s(h)(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 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "data", "default-expanded-keys", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (u(), y(g, v({
|
|
327
327
|
key: 7,
|
|
328
328
|
modelValue: t.value[e.fieldKey],
|
|
329
329
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
330
|
-
placeholder:
|
|
330
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
|
|
331
331
|
props: { isLeaf: "isLeaf" },
|
|
332
332
|
"render-after-expand": !1,
|
|
333
333
|
"collapse-tags": "",
|
|
@@ -337,36 +337,36 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
337
337
|
clearable: "",
|
|
338
338
|
filterable: "",
|
|
339
339
|
lazy: "",
|
|
340
|
-
load: (o,
|
|
341
|
-
}, { ref_for: !0 },
|
|
340
|
+
load: (o, R) => _e({ node: o, resolve: R }, e)
|
|
341
|
+
}, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(r, v({
|
|
342
342
|
key: 8,
|
|
343
343
|
modelValue: t.value[e.fieldKey],
|
|
344
344
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
345
345
|
type: "date",
|
|
346
|
-
placeholder: `${
|
|
346
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${s(b)("act.time")}`,
|
|
347
347
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
348
|
-
}, { ref_for: !0 },
|
|
348
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
349
349
|
disabled: e.isFormDisabled
|
|
350
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(
|
|
350
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(r, v({
|
|
351
351
|
key: 9,
|
|
352
352
|
modelValue: t.value[e.fieldKey],
|
|
353
353
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
354
354
|
type: "daterange",
|
|
355
|
-
"start-placeholder":
|
|
356
|
-
"end-placeholder":
|
|
355
|
+
"start-placeholder": s(b)("act.startTime"),
|
|
356
|
+
"end-placeholder": s(b)("act.endTime"),
|
|
357
357
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
358
|
-
}, { ref_for: !0 },
|
|
358
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
359
359
|
disabled: e.isFormDisabled
|
|
360
360
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(n, v({
|
|
361
361
|
key: 10,
|
|
362
362
|
modelValue: t.value[e.fieldKey],
|
|
363
363
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
364
364
|
options: e.dataList,
|
|
365
|
-
props:
|
|
365
|
+
props: s(Re),
|
|
366
366
|
clearable: "",
|
|
367
367
|
filterable: "",
|
|
368
|
-
placeholder: `${
|
|
369
|
-
}, { ref_for: !0 },
|
|
368
|
+
placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`
|
|
369
|
+
}, { ref_for: !0 }, s(h)(e), {
|
|
370
370
|
disabled: e.isFormDisabled
|
|
371
371
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(C, v({
|
|
372
372
|
key: 11,
|
|
@@ -374,19 +374,19 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
374
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 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(s(ce), v({
|
|
378
378
|
key: 12,
|
|
379
379
|
class: "form-upload",
|
|
380
380
|
modelValue: t.value[e.fieldKey],
|
|
381
381
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
382
|
-
request:
|
|
383
|
-
}, { ref_for: !0 },
|
|
382
|
+
request: s(M)
|
|
383
|
+
}, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(s(fe), v({
|
|
384
384
|
key: 13,
|
|
385
385
|
modelValue: t.value[e.fieldKey],
|
|
386
386
|
"onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
|
|
387
387
|
disabled: e.isFormDisabled,
|
|
388
|
-
placeholder: `${
|
|
389
|
-
}, { ref_for: !0 },
|
|
388
|
+
placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`
|
|
389
|
+
}, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : re("", !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
|
-
[
|
|
402
|
+
[De, O.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
|
-
},
|
|
410
|
+
}, ze = /* @__PURE__ */ Se(qe, [["__scopeId", "data-v-d287f7a8"]]);
|
|
411
411
|
export {
|
|
412
|
-
|
|
412
|
+
ze as default
|
|
413
413
|
};
|
|
@@ -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,
|
|
3
|
+
import { _ as fe, u as ge, z as ye, q as _e, r as he, s as ve } from "./index-a1705d25.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
let L;
|
|
6
6
|
const we = new Uint8Array(16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as vd, shallowRef as jn, inject as kd, computed as ec, toRaw as Qd, onMounted as Pd, watch as le, onBeforeUnmount as $d, h as Td, ref as Ql, resolveComponent as Cd, resolveDirective as Ad, openBlock as Pl, createElementBlock as Rd, withDirectives as Zd, createBlock as Md, withCtx as Ed, createTextVNode as Xd, toDisplayString as Ld, unref as $l, createVNode as Dd, normalizeStyle as zd } from "vue";
|
|
2
|
-
import { _ as Wd, u as Bd } from "./index-
|
|
2
|
+
import { _ as Wd, u as Bd } from "./index-a1705d25.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
let Xr = [], ic = [];
|