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