act-plus 1.1.52 → 1.1.54
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 +44 -44
- package/lib/{dialogAddField-3e7ab338.js → dialogAddField-48e19d59.js} +74 -74
- package/lib/{dialogConfigBtn-b6625b2d.js → dialogConfigBtn-4ea8453a.js} +2 -2
- package/lib/{dialogSiteComponentsParams-d82a76fd.js → dialogSiteComponentsParams-21b5f208.js} +1 -1
- package/lib/{index-ec6f916c.js → index-3cff2b9e.js} +1 -1
- package/lib/{index-6789c178.js → index-511381d1.js} +2 -2
- package/lib/{index-9e047760.js → index-bb44e45a.js} +147 -144
- package/lib/{index-5a545acc.js → index-bdaf5a29.js} +1 -1
- package/lib/{index-f0b70454.js → index-c7dd6516.js} +1 -1
- package/lib/{index-fa25c385.js → index-cae98a27.js} +3910 -3895
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-
|
|
1
|
+
import { defineAsyncComponent as O, inject as K, ref as N, watch as Te, 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 r, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as F, 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-cae98a27.js";
|
|
3
3
|
import { ElNotification as Se } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
@@ -12,24 +12,27 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
12
12
|
data: { type: Object, default: () => ({}) }
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
const
|
|
15
|
+
setup(P, { emit: ie }) {
|
|
16
|
+
const re = O(() => import("./index-cae98a27.js").then((l) => l.t)), de = O(() => import("./index-3cff2b9e.js")), ne = O(() => import("./index-cae98a27.js").then((l) => l.s)), ue = O(() => import("./index-cae98a27.js").then((l) => l.r)), { t: b } = Ne(), M = K("request"), ce = K("loadComponents"), w = K("formatDataType"), x = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = ie, f = P, S = N(!1), L = N(!1), E = N(null), R = N([]), t = N({}), j = N({}), 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: p }, a) => {
|
|
17
|
+
const i = h(a), { label: m, value: n, children: g, isLeaf: o } = { ...ke, ...i.treeProps || {} };
|
|
18
18
|
if (l[o])
|
|
19
|
-
return
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
return p([]);
|
|
20
|
+
const d = a.postRequestParams.filter((c) => c.submitType === "default").reduce((c, V) => (c[V.submitName] = w(V.paramsType, V.submitValue), c), {}), C = a.postRequestParams.filter((c) => c.submitType === "match").reduce((c, V) => (c[V.submitName] = w(V.paramsType, x.matchData[V.submitValue][V.submitName]), c), {}), T = a.postRequestParams.filter((c) => c.submitType === "dynamic").map((c) => {
|
|
21
|
+
let V = {
|
|
22
|
+
field: c.submitName,
|
|
23
|
+
operate: c.submitMatchType,
|
|
24
|
+
value: w(c.paramsType, c.submitValue)
|
|
25
|
+
};
|
|
26
|
+
return i.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(
|
|
27
|
-
const { data: H } = await
|
|
29
|
+
Object.keys(d).length && (v = { ...v, ...d }), Object.keys(C).length && (v = { ...v, ...C }), T.length && (v.dynamicFilters = T), i.loadCode && Reflect.has(v, i.loadCode) && (v[i.loadCode] = l == null ? void 0 : l.data.value), console.log(v);
|
|
30
|
+
const { data: H } = await M({
|
|
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[n], children: [], isLeaf: c[o] }));
|
|
35
|
+
p(W);
|
|
33
36
|
}, Y = (l) => {
|
|
34
37
|
if (!["input", "textarea"].includes(l)) {
|
|
35
38
|
if (["multipleSelect", "dateRange"].includes(l))
|
|
@@ -37,53 +40,53 @@ 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, p) => {
|
|
44
|
+
if (typeof l == "string" && ["string"].includes(p))
|
|
42
45
|
return l.toString();
|
|
43
|
-
if (["string"].includes(
|
|
44
|
-
return l.sort((a,
|
|
45
|
-
if (["number"].includes(
|
|
46
|
+
if (["string"].includes(p))
|
|
47
|
+
return l.sort((a, i) => a.sort - i.sort).join(";");
|
|
48
|
+
if (["number"].includes(p))
|
|
46
49
|
return Number(l);
|
|
47
|
-
if (["array"].includes(
|
|
48
|
-
return l.sort((a,
|
|
49
|
-
}, z = (l,
|
|
50
|
+
if (["array"].includes(p))
|
|
51
|
+
return l.sort((a, i) => a.sort - i.sort);
|
|
52
|
+
}, z = (l, p = !1) => {
|
|
50
53
|
if (["multipleSelect"].includes(l.fieldType))
|
|
51
|
-
return
|
|
54
|
+
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";").map((i) => p ? { value: i } : i) : [];
|
|
52
55
|
if (["virtualizedMultipleSelect"].includes(l.fieldType))
|
|
53
|
-
return
|
|
56
|
+
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";") : [];
|
|
54
57
|
if (["dateRange", "provinceCascade"].includes(l.fieldType)) {
|
|
55
|
-
const
|
|
56
|
-
return
|
|
58
|
+
const i = l.fieldKey.split("&");
|
|
59
|
+
return f.data.rowData[l.fieldKey] = i.map((m) => f.data.rowData[m]), f.data.rowData[l.fieldKey];
|
|
57
60
|
}
|
|
58
|
-
let a =
|
|
61
|
+
let a = f.data.rowData[l.fieldKey];
|
|
59
62
|
if (["select"].includes(l.fieldType)) {
|
|
60
|
-
const
|
|
61
|
-
l.dataList && l.dataList.length && typeof l.dataList[0][
|
|
63
|
+
const i = h(l);
|
|
64
|
+
l.dataList && l.dataList.length && typeof l.dataList[0][i["value-key"] ? i["value-key"] : "value"] == "string" && a !== null && (a = p ? { value: a.toString() } : a.toString());
|
|
62
65
|
}
|
|
63
66
|
if (["virtualizedSelect"].includes(l.fieldType)) {
|
|
64
|
-
const
|
|
65
|
-
l.dataList && l.dataList.length && typeof l.dataList[0][
|
|
67
|
+
const i = h(l);
|
|
68
|
+
l.dataList && l.dataList.length && typeof l.dataList[0][i["value-key"] ? i["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
|
|
66
69
|
}
|
|
67
70
|
return (a === "true" || a === "false") && (a = fe(a)), a;
|
|
68
|
-
}, he = (l) =>
|
|
71
|
+
}, he = (l) => M({ url: f.data.dataItem.requestUrl, method: "post", data: l });
|
|
69
72
|
Te(
|
|
70
|
-
() =>
|
|
71
|
-
async (l,
|
|
72
|
-
var a,
|
|
73
|
+
() => f.visible,
|
|
74
|
+
async (l, p) => {
|
|
75
|
+
var a, i;
|
|
73
76
|
if (l)
|
|
74
77
|
try {
|
|
75
78
|
S.value = !0;
|
|
76
|
-
const m = await pe(
|
|
77
|
-
console.log("formList", (a =
|
|
78
|
-
(((
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
const { isFieldCustom: o, customComponentName:
|
|
82
|
-
if (o && !
|
|
83
|
-
const
|
|
84
|
-
|
|
79
|
+
const m = await pe(f.data.formList, f.data.rowData, !1, !0);
|
|
80
|
+
console.log("formList", (a = f.data) == null ? void 0 : a.formList), R.value = await Promise.all(
|
|
81
|
+
(((i = f.data) == null ? void 0 : i.formList) ?? []).sort((n, g) => n.sort - g.sort).map(async (n) => {
|
|
82
|
+
const g = m.find((T) => n.fieldName == T.fieldName && n.fieldKey == T.fieldKey);
|
|
83
|
+
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);
|
|
84
|
+
const { isFieldCustom: o, customComponentName: d, customComponentUrl: C } = n.customFiledsComponentes;
|
|
85
|
+
if (o && !n.customFiledsComponentes[d]) {
|
|
86
|
+
const T = await ce(C, d);
|
|
87
|
+
n.customFiledsComponentes[d] = T;
|
|
85
88
|
}
|
|
86
|
-
return
|
|
89
|
+
return n;
|
|
87
90
|
})
|
|
88
91
|
), S.value = !1;
|
|
89
92
|
} catch (m) {
|
|
@@ -91,42 +94,42 @@ 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, p) => {
|
|
102
|
+
const a = h(p), { fieldKey: i, fieldType: m } = p;
|
|
100
103
|
if (m === "multipleSelect") {
|
|
101
|
-
const
|
|
102
|
-
t.value[a.createFieldKey] =
|
|
104
|
+
const n = l.filter((o) => typeof o == "string"), g = l.filter((o) => typeof o != "string").map((o) => o.value);
|
|
105
|
+
t.value[a.createFieldKey] = n.length ? $(n, "string") : void 0, t.value[i] = g.length ? $(g, "string") : void 0;
|
|
103
106
|
} else
|
|
104
|
-
typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[
|
|
107
|
+
typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[i] = void 0) : (t.value[i] = l.value, delete t.value[a.createFieldKey]);
|
|
105
108
|
}, ve = (l) => {
|
|
106
|
-
l && l.validate((
|
|
107
|
-
if (
|
|
108
|
-
const { dataItem: a, rowData:
|
|
109
|
+
l && l.validate((p) => {
|
|
110
|
+
if (p) {
|
|
111
|
+
const { dataItem: a, rowData: i } = f.data;
|
|
109
112
|
let m = { ...Ke(t.value) };
|
|
110
113
|
Object.keys(m).forEach((o) => {
|
|
111
114
|
if (o.includes("ActImplicit")) {
|
|
112
115
|
delete m[o];
|
|
113
116
|
return;
|
|
114
117
|
}
|
|
115
|
-
const
|
|
116
|
-
o.includes("&") ? o.split("&").forEach((
|
|
117
|
-
m[
|
|
118
|
-
}) : Array.isArray(m[o]) &&
|
|
118
|
+
const d = R.value.find((C) => C.fieldKey === o);
|
|
119
|
+
o.includes("&") ? o.split("&").forEach((T, v) => {
|
|
120
|
+
m[T] = m[o] ? $(m[o][v], d.fieldSubmitType) : m[o];
|
|
121
|
+
}) : Array.isArray(m[o]) && d.fieldSubmitType == "string" && (m[o] = $(m[o], "string"));
|
|
119
122
|
});
|
|
120
|
-
const
|
|
123
|
+
const n = a.submitFields.filter((o) => o.matchType == "default").reduce((o, d) => (d.submitFieldType === "string" && (o[d.submitFieldName] = d.matchFieldName.toString()), o), {}), g = a.submitFields.filter((o) => o.matchType == "match").reduce((o, d) => (Reflect.has(d, "submitFieldMatchOrigin") && d.submitFieldMatchOrigin === "selections" ? o[d.submitFieldName] = f.data.selections.map((C) => w(d.submitFieldType, C[d.matchFieldName])) : Reflect.has(d, "submitFieldMatchOrigin") && d.submitFieldMatchOrigin != "rowData" ? Reflect.has(x.matchData, d.submitFieldMatchOrigin) && (o[d.submitFieldName] = w(d.submitFieldType, x.matchData[d.submitFieldMatchOrigin][d.matchFieldName])) : o[d.submitFieldName] = w(d.submitFieldType, i[d.matchFieldName]), o), {});
|
|
121
124
|
he({
|
|
122
125
|
...m,
|
|
123
|
-
...
|
|
124
|
-
...
|
|
126
|
+
...n,
|
|
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);
|
|
128
|
-
} catch (
|
|
129
|
-
console.error(
|
|
131
|
+
} catch (d) {
|
|
132
|
+
console.error(d);
|
|
130
133
|
}
|
|
131
134
|
L.value = !1;
|
|
132
135
|
}).catch((o) => {
|
|
@@ -135,55 +138,55 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
135
138
|
}
|
|
136
139
|
});
|
|
137
140
|
}, Ve = (l) => {
|
|
138
|
-
const
|
|
139
|
-
var
|
|
140
|
-
return (
|
|
141
|
+
const p = Object.keys(j.value).map((a) => {
|
|
142
|
+
var i;
|
|
143
|
+
return (i = j.value[a]) == null ? void 0 : i.updateFormData(t.value);
|
|
141
144
|
}).filter((a) => a);
|
|
142
|
-
Promise.all([l.validate(), ...
|
|
143
|
-
a.every((
|
|
145
|
+
Promise.all([l.validate(), ...p]).then((a) => {
|
|
146
|
+
a.every((i) => i) && ve(l);
|
|
144
147
|
}).catch((a) => (console.error(a), a));
|
|
145
148
|
};
|
|
146
|
-
return (l,
|
|
149
|
+
return (l, p) => {
|
|
147
150
|
var Z;
|
|
148
|
-
const a =
|
|
149
|
-
return u(), y(
|
|
150
|
-
"model-value":
|
|
151
|
-
title:
|
|
151
|
+
const a = _("el-input"), i = _("el-option"), m = _("el-select"), n = _("el-select-v2"), g = _("el-tree-select"), o = _("el-date-picker"), d = _("el-cascader"), C = _("el-switch"), T = _("el-form-item"), v = _("el-col"), H = _("el-row"), W = _("el-form"), c = _("el-button"), V = _("el-dialog"), Fe = le("loading"), Ce = le("debounce");
|
|
152
|
+
return u(), y(V, {
|
|
153
|
+
"model-value": f.visible,
|
|
154
|
+
title: f.title,
|
|
152
155
|
top: "5vh",
|
|
153
|
-
width: (Z =
|
|
156
|
+
width: (Z = P.data.formConfig) == null ? void 0 : Z.dialogWidth,
|
|
154
157
|
draggable: "",
|
|
155
158
|
overflow: "",
|
|
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
|
-
footer:
|
|
164
|
+
footer: D(() => [
|
|
162
165
|
ae("span", Re, [
|
|
163
|
-
te(
|
|
166
|
+
te(c, {
|
|
164
167
|
loading: L.value,
|
|
165
168
|
onClick: B
|
|
166
169
|
}, {
|
|
167
|
-
default:
|
|
168
|
-
J(
|
|
170
|
+
default: D(() => [
|
|
171
|
+
J(A(r(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: p[1] || (p[1] = (G) => Ve(E.value))
|
|
176
179
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
J(
|
|
180
|
+
default: D(() => [
|
|
181
|
+
J(A(r(b)("act.save")), 1)
|
|
179
182
|
]),
|
|
180
183
|
_: 1
|
|
181
184
|
}, 8, ["loading"])), [
|
|
182
|
-
[
|
|
185
|
+
[Ce]
|
|
183
186
|
])
|
|
184
187
|
])
|
|
185
188
|
]),
|
|
186
|
-
default:
|
|
189
|
+
default: D(() => {
|
|
187
190
|
var G, I;
|
|
188
191
|
return [
|
|
189
192
|
oe((u(), y(W, {
|
|
@@ -192,125 +195,125 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
192
195
|
ref: E,
|
|
193
196
|
model: t.value,
|
|
194
197
|
"label-suffix": ":",
|
|
195
|
-
"label-width": (G =
|
|
196
|
-
"label-position": (I =
|
|
198
|
+
"label-width": (G = P.data.formConfig) == null ? void 0 : G.formLabelWidth,
|
|
199
|
+
"label-position": (I = P.data.formConfig) == null ? void 0 : I.formLabelPosition
|
|
197
200
|
}, {
|
|
198
|
-
default:
|
|
201
|
+
default: D(() => [
|
|
199
202
|
te(H, { gutter: 40 }, {
|
|
200
|
-
default:
|
|
203
|
+
default: D(() => [
|
|
201
204
|
(u(!0), k(q, null, Q(R.value, (e, ee) => (u(), y(v, {
|
|
202
205
|
span: me(e),
|
|
203
206
|
key: ee
|
|
204
207
|
}, {
|
|
205
|
-
default:
|
|
208
|
+
default: D(() => [
|
|
206
209
|
e.customFiledsComponentes.isFieldCustom ? (u(), k(q, { key: 1 }, [
|
|
207
210
|
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
208
211
|
key: 0,
|
|
209
212
|
ref_for: !0,
|
|
210
213
|
ref: (s) => j.value[e.customFiledsComponentes.customComponentName] = s,
|
|
211
|
-
formConfig:
|
|
214
|
+
formConfig: P.data.formConfig,
|
|
212
215
|
item: e,
|
|
213
|
-
rowData:
|
|
214
|
-
visible:
|
|
216
|
+
rowData: f.data.rowData,
|
|
217
|
+
visible: f.visible,
|
|
215
218
|
form: t.value,
|
|
216
|
-
"onUpdate:form":
|
|
219
|
+
"onUpdate:form": p[0] || (p[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
|
-
ae("span", Le, "【" +
|
|
222
|
-
J(
|
|
224
|
+
ae("span", Le, "【" + A(e.fieldName) + "】", 1),
|
|
225
|
+
J(A(r(b)("act.fieldCustom")), 1)
|
|
223
226
|
]))
|
|
224
|
-
], 64)) : (u(), y(
|
|
227
|
+
], 64)) : (u(), y(T, {
|
|
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: r(b)("act.requiredMessage"), trigger: ye(e) }]
|
|
229
232
|
}, {
|
|
230
|
-
default:
|
|
231
|
-
e.fieldType === "input" ? (u(), y(a,
|
|
233
|
+
default: D(() => [
|
|
234
|
+
e.fieldType === "input" ? (u(), y(a, F({
|
|
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: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
236
239
|
clearable: "",
|
|
237
240
|
ref_for: !0
|
|
238
|
-
},
|
|
241
|
+
}, r(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(r(re), F({
|
|
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: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
246
249
|
clearable: "",
|
|
247
250
|
ref_for: !0
|
|
248
|
-
},
|
|
251
|
+
}, r(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, F({
|
|
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: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
255
258
|
rows: 4,
|
|
256
259
|
ref_for: !0
|
|
257
|
-
},
|
|
260
|
+
}, r(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(r(de), F({
|
|
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: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
266
269
|
ref_for: !0
|
|
267
|
-
},
|
|
270
|
+
}, r(h)(e), {
|
|
268
271
|
disabled: e.isFormDisabled
|
|
269
272
|
}), {
|
|
270
|
-
default:
|
|
271
|
-
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(
|
|
273
|
+
default: D(() => [
|
|
274
|
+
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(i, {
|
|
272
275
|
key: U,
|
|
273
276
|
label: s.key,
|
|
274
277
|
value: s.value
|
|
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, F({
|
|
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: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
283
286
|
clearable: "",
|
|
284
287
|
filterable: "",
|
|
285
288
|
"value-key": "value",
|
|
286
289
|
ref_for: !0
|
|
287
|
-
},
|
|
290
|
+
}, r(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
|
-
default:
|
|
293
|
-
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(
|
|
295
|
+
default: D(() => [
|
|
296
|
+
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(i, {
|
|
294
297
|
key: U,
|
|
295
298
|
label: s.key,
|
|
296
299
|
value: s
|
|
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(n, F({
|
|
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: { ...r(Pe) },
|
|
309
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
307
310
|
clearable: "",
|
|
308
311
|
filterable: "",
|
|
309
312
|
ref_for: !0
|
|
310
|
-
},
|
|
313
|
+
}, r(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, F({
|
|
314
317
|
key: 6,
|
|
315
318
|
modelValue: t.value[e.fieldKey],
|
|
316
319
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
@@ -326,60 +329,60 @@ 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
|
+
}, r(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(o, F({
|
|
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: `${r(b)("act.selectPlaceholder")}${r(b)("act.time")}`,
|
|
335
338
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
336
339
|
ref_for: !0
|
|
337
|
-
},
|
|
340
|
+
}, r(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, F({
|
|
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": r(b)("act.startTime"),
|
|
348
|
+
"end-placeholder": r(b)("act.endTime"),
|
|
346
349
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
347
350
|
ref_for: !0
|
|
348
|
-
},
|
|
351
|
+
}, r(h)(e), {
|
|
349
352
|
disabled: e.isFormDisabled
|
|
350
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(
|
|
353
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(d, F({
|
|
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: r(Ue),
|
|
356
359
|
clearable: "",
|
|
357
360
|
filterable: "",
|
|
358
|
-
placeholder: `${
|
|
361
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
359
362
|
ref_for: !0
|
|
360
|
-
},
|
|
363
|
+
}, r(h)(e), {
|
|
361
364
|
disabled: e.isFormDisabled
|
|
362
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(
|
|
365
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(C, {
|
|
363
366
|
key: 10,
|
|
364
367
|
modelValue: t.value[e.fieldKey],
|
|
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(r(ne), F({
|
|
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: r(M),
|
|
374
377
|
ref_for: !0
|
|
375
|
-
},
|
|
378
|
+
}, r(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(r(ue), F({
|
|
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: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
381
384
|
ref_for: !0
|
|
382
|
-
},
|
|
385
|
+
}, r(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : se("", !0)
|
|
383
386
|
]),
|
|
384
387
|
_: 2
|
|
385
388
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -392,7 +395,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
392
395
|
]),
|
|
393
396
|
_: 1
|
|
394
397
|
}, 8, ["model", "label-width", "label-position"])), [
|
|
395
|
-
[
|
|
398
|
+
[Fe, S.value]
|
|
396
399
|
])
|
|
397
400
|
];
|
|
398
401
|
}),
|
|
@@ -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-c6e7e23b"]]);
|
|
404
407
|
export {
|
|
405
408
|
je as default
|
|
406
409
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive as m, watch as b, resolveComponent as s, openBlock as v, 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-cae98a27.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as R, inject as l, watch as j, resolveComponent as y, resolveDirective as q, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as b, withDirectives as C, createCommentVNode as _, createTextVNode as k, toDisplayString as B } from "vue";
|
|
2
|
-
import { _ as M, u as z } from "./index-
|
|
2
|
+
import { _ as M, u as z } from "./index-cae98a27.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|