act-plus 1.1.40 → 1.1.41
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 +4 -4
- package/act-plus.umd.cjs +62 -62
- package/lib/{dialogAddField-37d23c28.js → dialogAddField-3c740262.js} +11 -12
- package/lib/{dialogConfigBtn-2a5b29d3.js → dialogConfigBtn-8bfd8dd7.js} +108 -111
- package/lib/{dialogSiteComponentsParams-2aaba180.js → dialogSiteComponentsParams-b6c8001c.js} +1 -1
- package/lib/{index-2d22f3f2.js → index-0c36aa40.js} +2 -2
- package/lib/{index-a6e33b82.js → index-266b8842.js} +90 -92
- package/lib/{index-bc3b48a4.js → index-333a11e5.js} +1 -1
- package/lib/{index-c18badb4.js → index-40115216.js} +32413 -31266
- package/lib/{index-a2d322cf.js → index-4398f116.js} +1 -1
- package/lib/index-e9d31e0d.js +107 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/configBtns-a589fc35.js +0 -155
- package/lib/configFileds-b6de7bc4.js +0 -199
- package/lib/configForm-e91a1aa7.js +0 -129
- package/lib/configTable-6ac94e24.js +0 -416
- package/lib/dialogInitConfig-0f352fa9.js +0 -188
- package/lib/enum-d734222c.js +0 -119
- package/lib/index-00de9d7d.js +0 -102
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, inject as T, ref as K, watch as Te, resolveComponent as _, resolveDirective as ee, openBlock as
|
|
2
|
-
import { _ as we, u as
|
|
1
|
+
import { defineAsyncComponent as L, inject as T, ref as K, watch as Te, resolveComponent as _, resolveDirective as ee, openBlock as u, createBlock as p, withCtx as C, createElementVNode as le, createVNode as ae, createTextVNode as W, toDisplayString as $, unref as i, withDirectives as oe, createElementBlock as k, Fragment as A, renderList as G, mergeProps as g, createCommentVNode as te, resolveDynamicComponent as De, toRaw as Ke } from "vue";
|
|
2
|
+
import { _ as we, u as Ne, P as Ue, a as ke, b as Pe } from "./index-40115216.js";
|
|
3
3
|
import { ElNotification as Se } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
@@ -13,27 +13,22 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
15
|
setup(w, { emit: se }) {
|
|
16
|
-
const de = L(() => import("./index-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType))
|
|
20
|
-
return "change";
|
|
21
|
-
}, ye = async ({ node: l, resolve: c }, a) => {
|
|
22
|
-
const r = b(a), { label: t, value: h, children: F, isLeaf: d } = { ...Pe, ...r.treeProps || {} };
|
|
23
|
-
if (l[d])
|
|
16
|
+
const de = L(() => import("./index-40115216.js").then((l) => l.t)), re = L(() => import("./index-4398f116.js")), ie = L(() => import("./index-40115216.js").then((l) => l.s)), ne = L(() => import("./index-40115216.js").then((l) => l.r)), { t: m } = Ne(), O = T("request"), ue = T("loadComponents"), P = T("formatDataType"), J = T("globalProps"), ce = T("stringToBoolean"), b = T("getFieldUiProps"), fe = T("disposeRequestData"), Q = se, f = w, S = K(!1), R = K(!1), q = K(null), N = K([]), o = K({}), x = K({}), pe = (l) => l.formColumnCol == null || l.customFiledsComponentes[l.customFiledsComponentes.customComponentName] ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, me = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), ye = async ({ node: l, resolve: c }, a) => {
|
|
17
|
+
const r = b(a), { label: t, value: h, children: F, isLeaf: s } = { ...Pe, ...r.treeProps || {} };
|
|
18
|
+
if (l[s])
|
|
24
19
|
return c([]);
|
|
25
|
-
const
|
|
20
|
+
const n = a.postRequestParams.filter((y) => y.submitType === "default").reduce((y, D) => (y[D.submitName] = P(D.paramsType, D.submitValue), y), {}), v = a.postRequestParams.filter((y) => y.submitType === "dynamic").map((y) => ({
|
|
26
21
|
field: y.submitName,
|
|
27
22
|
operate: y.submitMatchType,
|
|
28
|
-
value: r.loadCode ? l == null ? void 0 : l.data.value :
|
|
23
|
+
value: r.loadCode ? l == null ? void 0 : l.data.value : P(y.paramsType, y.submitValue)
|
|
29
24
|
}));
|
|
30
25
|
let V = {};
|
|
31
|
-
Object.keys(
|
|
26
|
+
Object.keys(n).length && (V = { ...V, ...n }), v.length && (V.dynamicFilters = v), r.loadCode && Reflect.has(V, r.loadCode) && (V[r.loadCode] = l == null ? void 0 : l.data.value);
|
|
32
27
|
const { data: z } = await O({
|
|
33
28
|
url: a.fieldRequestUrl,
|
|
34
29
|
method: a.fieldRequestType || "GET",
|
|
35
30
|
data: V
|
|
36
|
-
}), B = (z || []).map((y) => ({ label: y[t], value: y[h], children: [], isLeaf: y[
|
|
31
|
+
}), B = (z || []).map((y) => ({ label: y[t], value: y[h], children: [], isLeaf: y[s] }));
|
|
37
32
|
c(B);
|
|
38
33
|
}, M = (l) => {
|
|
39
34
|
if (!["input", "textarea"].includes(l)) {
|
|
@@ -75,33 +70,33 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
75
70
|
var a;
|
|
76
71
|
if (l)
|
|
77
72
|
try {
|
|
78
|
-
|
|
73
|
+
S.value = !0;
|
|
79
74
|
const r = await fe(f.data.formList, f.data.rowData, !1, !0);
|
|
80
|
-
|
|
75
|
+
N.value = await Promise.all(
|
|
81
76
|
(((a = f.data) == null ? void 0 : a.formList) ?? []).sort((t, h) => t.sort - h.sort).map(async (t) => {
|
|
82
77
|
const h = r.find((v) => t.fieldName == v.fieldName && t.fieldKey == v.fieldKey);
|
|
83
78
|
h && (t.dataList = (h == null ? void 0 : h.dataList) ?? []), ["select", "multipleSelect"].includes(t.fieldType) && (o.value[`${t.fieldKey}ActImplicit`] = Object.keys(f.data.rowData).length && t.isFormSetValue ? j(t, !0) : M(t.fieldType)), o.value[t.fieldKey] = Object.keys(f.data.rowData).length && t.isFormSetValue ? j(t) : M(t.fieldType);
|
|
84
|
-
const { isFiledCustom: F, customComponentName:
|
|
85
|
-
if (F && !t.customFiledsComponentes[
|
|
86
|
-
const v = await ue(
|
|
87
|
-
t.customFiledsComponentes[
|
|
79
|
+
const { isFiledCustom: F, customComponentName: s, customComponentUrl: n } = t.customFiledsComponentes;
|
|
80
|
+
if (F && !t.customFiledsComponentes[s]) {
|
|
81
|
+
const v = await ue(n, s);
|
|
82
|
+
t.customFiledsComponentes[s] = v;
|
|
88
83
|
}
|
|
89
84
|
return t;
|
|
90
85
|
})
|
|
91
|
-
), console.log(
|
|
86
|
+
), console.log(N.value), S.value = !1;
|
|
92
87
|
} catch (r) {
|
|
93
|
-
console.error(r),
|
|
88
|
+
console.error(r), S.value = !1;
|
|
94
89
|
}
|
|
95
90
|
}
|
|
96
91
|
);
|
|
97
92
|
const he = (l) => {
|
|
98
93
|
Y(), l();
|
|
99
94
|
}, Y = () => {
|
|
100
|
-
|
|
95
|
+
N.value = [], q.value.resetFields(), Q("update:visible", !1);
|
|
101
96
|
}, _e = (l, c) => {
|
|
102
97
|
const a = b(c), { fieldKey: r, fieldType: t } = c;
|
|
103
98
|
if (t === "multipleSelect") {
|
|
104
|
-
const h = l.filter((
|
|
99
|
+
const h = l.filter((s) => typeof s == "string"), F = l.filter((s) => typeof s != "string").map((s) => s.value);
|
|
105
100
|
o.value[a.createFieldKey] = h.length ? E(h, "string") : void 0, o.value[r] = F.length ? E(F, "string") : void 0;
|
|
106
101
|
} else
|
|
107
102
|
typeof l == "string" ? (o.value[a.createFieldKey] = l, o.value[r] = void 0) : (o.value[r] = l.value, delete o.value[a.createFieldKey]);
|
|
@@ -110,42 +105,45 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
110
105
|
if (c) {
|
|
111
106
|
const { dataItem: a, rowData: r } = f.data;
|
|
112
107
|
let t = { ...Ke(o.value) };
|
|
113
|
-
Object.keys(t).forEach((
|
|
114
|
-
if (
|
|
115
|
-
delete t[
|
|
108
|
+
Object.keys(t).forEach((s) => {
|
|
109
|
+
if (s.includes("ActImplicit")) {
|
|
110
|
+
delete t[s];
|
|
116
111
|
return;
|
|
117
112
|
}
|
|
118
|
-
|
|
119
|
-
t[v] = t[
|
|
120
|
-
}) : Array.isArray(t[
|
|
113
|
+
s.includes("&") ? s.split("&").forEach((v, V) => {
|
|
114
|
+
t[v] = t[s][V];
|
|
115
|
+
}) : Array.isArray(t[s]) && N.value.some((n) => n.fieldKey === s && !n.customFiledsComponentes.isFiledCustom) && (t[s] = E(t[s], "string"));
|
|
121
116
|
});
|
|
122
|
-
const h = a.submitFields.filter((
|
|
117
|
+
const h = a.submitFields.filter((s) => s.matchType == "default").reduce((s, n) => (n.submitFieldType === "string" && (s[n.submitFieldName] = n.matchFieldName.toString()), s), {}), F = a.submitFields.filter((s) => s.matchType == "match").reduce((s, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(J.matchData, n.submitFieldMatchOrigin) && (s[n.submitFieldName] = P(n.submitFieldType, J.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : s[n.submitFieldName] = P(n.submitFieldType, r[n.matchFieldName]), s), {});
|
|
123
118
|
be({
|
|
124
119
|
...t,
|
|
125
120
|
...h,
|
|
126
121
|
...F
|
|
127
|
-
}).then((
|
|
122
|
+
}).then((s) => {
|
|
128
123
|
try {
|
|
129
124
|
Se({ title: m("act.tip"), message: m("act.saveSuccessfully"), type: "success", duration: 2500 }), Y(), Q("refresh");
|
|
130
|
-
} catch (
|
|
131
|
-
console.error(
|
|
125
|
+
} catch (n) {
|
|
126
|
+
console.error(n);
|
|
132
127
|
}
|
|
133
|
-
|
|
134
|
-
}).catch((
|
|
135
|
-
console.error(
|
|
128
|
+
R.value = !1;
|
|
129
|
+
}).catch((s) => {
|
|
130
|
+
console.error(s), R.value = !1;
|
|
136
131
|
});
|
|
137
132
|
}
|
|
138
133
|
});
|
|
139
134
|
}, ve = (l) => {
|
|
140
|
-
const c = Object.keys(x.value).map((a) =>
|
|
135
|
+
const c = Object.keys(x.value).map((a) => {
|
|
136
|
+
var r;
|
|
137
|
+
return (r = x.value[a]) == null ? void 0 : r.updateFormData(o.value);
|
|
138
|
+
}).filter((a) => a);
|
|
141
139
|
Promise.all([l.validate(), ...c]).then((a) => {
|
|
142
|
-
|
|
140
|
+
a.every((r) => r) && ge(l);
|
|
143
141
|
}).catch((a) => (console.error(a), a));
|
|
144
142
|
};
|
|
145
143
|
return (l, c) => {
|
|
146
144
|
var X;
|
|
147
|
-
const a = _("el-input"), r = _("el-option"), t = _("el-select"), h = _("el-select-v2"), F = _("el-tree-select"),
|
|
148
|
-
return
|
|
145
|
+
const a = _("el-input"), r = _("el-option"), t = _("el-select"), h = _("el-select-v2"), F = _("el-tree-select"), s = _("el-date-picker"), n = _("el-cascader"), v = _("el-switch"), V = _("el-form-item"), z = _("el-col"), B = _("el-row"), y = _("el-form"), D = _("el-button"), Ve = _("el-dialog"), Ce = ee("loading"), Fe = ee("debounce");
|
|
146
|
+
return u(), p(Ve, {
|
|
149
147
|
"model-value": f.visible,
|
|
150
148
|
title: f.title,
|
|
151
149
|
top: "5vh",
|
|
@@ -160,7 +158,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
160
158
|
footer: C(() => [
|
|
161
159
|
le("span", Le, [
|
|
162
160
|
ae(D, {
|
|
163
|
-
loading:
|
|
161
|
+
loading: R.value,
|
|
164
162
|
onClick: Y
|
|
165
163
|
}, {
|
|
166
164
|
default: C(() => [
|
|
@@ -168,9 +166,9 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
168
166
|
]),
|
|
169
167
|
_: 1
|
|
170
168
|
}, 8, ["loading"]),
|
|
171
|
-
oe((
|
|
169
|
+
oe((u(), p(D, {
|
|
172
170
|
type: "primary",
|
|
173
|
-
loading:
|
|
171
|
+
loading: R.value,
|
|
174
172
|
onClick: c[1] || (c[1] = (H) => ve(q.value))
|
|
175
173
|
}, {
|
|
176
174
|
default: C(() => [
|
|
@@ -185,7 +183,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
185
183
|
default: C(() => {
|
|
186
184
|
var H, Z;
|
|
187
185
|
return [
|
|
188
|
-
oe((
|
|
186
|
+
oe((u(), p(y, {
|
|
189
187
|
class: "a-form",
|
|
190
188
|
ref_key: "formRef",
|
|
191
189
|
ref: q,
|
|
@@ -197,69 +195,69 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
197
195
|
default: C(() => [
|
|
198
196
|
ae(B, { gutter: 40 }, {
|
|
199
197
|
default: C(() => [
|
|
200
|
-
(
|
|
198
|
+
(u(!0), k(A, null, G(N.value, (e, I) => (u(), p(z, {
|
|
201
199
|
span: pe(e),
|
|
202
200
|
key: I
|
|
203
201
|
}, {
|
|
204
202
|
default: C(() => [
|
|
205
|
-
e.customFiledsComponentes.isFiledCustom ? (
|
|
206
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (
|
|
203
|
+
e.customFiledsComponentes.isFiledCustom ? (u(), k(A, { key: 1 }, [
|
|
204
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), p(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
207
205
|
key: 0,
|
|
208
206
|
ref_for: !0,
|
|
209
|
-
ref: (
|
|
207
|
+
ref: (d) => x.value[e.customFiledsComponentes.customComponentName] = d,
|
|
210
208
|
formConfig: w.data.formConfig,
|
|
211
209
|
item: e,
|
|
212
210
|
rowData: f.data.rowData,
|
|
213
211
|
visible: f.visible,
|
|
214
212
|
form: o.value,
|
|
215
|
-
"onUpdate:form": c[0] || (c[0] = (
|
|
216
|
-
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (
|
|
213
|
+
"onUpdate:form": c[0] || (c[0] = (d) => o.value = d)
|
|
214
|
+
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), k("div", {
|
|
217
215
|
class: "no-config",
|
|
218
216
|
key: I
|
|
219
217
|
}, [
|
|
220
218
|
le("span", Re, "【" + $(e.fieldName) + "】", 1),
|
|
221
219
|
W($(i(m)("act.fieldCustom")), 1)
|
|
222
220
|
]))
|
|
223
|
-
], 64)) : (
|
|
221
|
+
], 64)) : (u(), p(V, {
|
|
224
222
|
key: 0,
|
|
225
223
|
label: e.fieldName,
|
|
226
224
|
prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
|
|
227
225
|
rules: [{ required: e.isFormFieldRequired, message: i(m)("act.requiredMessage"), trigger: me(e) }]
|
|
228
226
|
}, {
|
|
229
227
|
default: C(() => [
|
|
230
|
-
e.fieldType === "input" ? (
|
|
228
|
+
e.fieldType === "input" ? (u(), p(a, g({
|
|
231
229
|
key: 0,
|
|
232
230
|
modelValue: o.value[e.fieldKey],
|
|
233
|
-
"onUpdate:modelValue": (
|
|
231
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
234
232
|
placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
|
|
235
233
|
clearable: "",
|
|
236
234
|
ref_for: !0
|
|
237
235
|
}, i(b)(e), {
|
|
238
236
|
disabled: e.isFormDisabled
|
|
239
237
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : te("", !0),
|
|
240
|
-
e.fieldType === "inputNumber" ? (
|
|
238
|
+
e.fieldType === "inputNumber" ? (u(), p(i(de), g({
|
|
241
239
|
key: 1,
|
|
242
240
|
modelValue: o.value[e.fieldKey],
|
|
243
|
-
"onUpdate:modelValue": (
|
|
241
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
244
242
|
placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
|
|
245
243
|
clearable: "",
|
|
246
244
|
ref_for: !0
|
|
247
245
|
}, i(b)(e), {
|
|
248
246
|
disabled: e.isFormDisabled
|
|
249
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (
|
|
247
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), p(a, g({
|
|
250
248
|
key: 2,
|
|
251
249
|
modelValue: o.value[e.fieldKey],
|
|
252
|
-
"onUpdate:modelValue": (
|
|
250
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
253
251
|
placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
|
|
254
252
|
rows: 4,
|
|
255
253
|
ref_for: !0
|
|
256
254
|
}, i(b)(e), {
|
|
257
255
|
type: "textarea",
|
|
258
256
|
disabled: e.isFormDisabled
|
|
259
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (
|
|
257
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), p(i(re), g({
|
|
260
258
|
key: 3,
|
|
261
259
|
modelValue: o.value[e.fieldKey],
|
|
262
|
-
"onUpdate:modelValue": (
|
|
260
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
263
261
|
icons: e.dataList,
|
|
264
262
|
placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
|
|
265
263
|
ref_for: !0
|
|
@@ -267,17 +265,17 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
267
265
|
disabled: e.isFormDisabled
|
|
268
266
|
}), {
|
|
269
267
|
default: C(() => [
|
|
270
|
-
(
|
|
271
|
-
key:
|
|
272
|
-
label:
|
|
273
|
-
value:
|
|
268
|
+
(u(!0), k(A, null, G(e.dataList, (d, U) => (u(), p(r, {
|
|
269
|
+
key: U,
|
|
270
|
+
label: d.key,
|
|
271
|
+
value: d.value
|
|
274
272
|
}, null, 8, ["label", "value"]))), 128))
|
|
275
273
|
]),
|
|
276
274
|
_: 2
|
|
277
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (
|
|
275
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (u(), p(t, g({
|
|
278
276
|
key: 4,
|
|
279
277
|
modelValue: o.value[`${e.fieldKey}ActImplicit`],
|
|
280
|
-
"onUpdate:modelValue": (
|
|
278
|
+
"onUpdate:modelValue": (d) => o.value[`${e.fieldKey}ActImplicit`] = d,
|
|
281
279
|
placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
|
|
282
280
|
clearable: "",
|
|
283
281
|
filterable: "",
|
|
@@ -286,22 +284,22 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
286
284
|
}, i(b)(e), {
|
|
287
285
|
multiple: e.fieldType === "multipleSelect",
|
|
288
286
|
disabled: e.isFormDisabled,
|
|
289
|
-
onChange: (
|
|
287
|
+
onChange: (d) => _e(d, e)
|
|
290
288
|
}), {
|
|
291
289
|
default: C(() => [
|
|
292
|
-
(
|
|
293
|
-
key:
|
|
294
|
-
label:
|
|
295
|
-
value:
|
|
290
|
+
(u(!0), k(A, null, G(e.dataList, (d, U) => (u(), p(r, {
|
|
291
|
+
key: U,
|
|
292
|
+
label: d.key,
|
|
293
|
+
value: d
|
|
296
294
|
}, null, 8, ["label", "value"]))), 128))
|
|
297
295
|
]),
|
|
298
296
|
_: 2
|
|
299
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (
|
|
297
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (u(), p(h, g({
|
|
300
298
|
key: 5,
|
|
301
299
|
modelValue: o.value[e.fieldKey],
|
|
302
|
-
"onUpdate:modelValue": (
|
|
300
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
303
301
|
options: e.dataList,
|
|
304
|
-
props: { ...i(
|
|
302
|
+
props: { ...i(Ue) },
|
|
305
303
|
placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
|
|
306
304
|
clearable: "",
|
|
307
305
|
filterable: "",
|
|
@@ -309,10 +307,10 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
309
307
|
}, i(b)(e), {
|
|
310
308
|
disabled: e.isFormDisabled,
|
|
311
309
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
312
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (
|
|
310
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (u(), p(F, g({
|
|
313
311
|
key: 6,
|
|
314
312
|
modelValue: o.value[e.fieldKey],
|
|
315
|
-
"onUpdate:modelValue": (
|
|
313
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
316
314
|
placeholder: `请选择${e.fieldName}`,
|
|
317
315
|
props: { isLeaf: "isLeaf" },
|
|
318
316
|
"render-after-expand": !1,
|
|
@@ -323,22 +321,22 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
323
321
|
clearable: "",
|
|
324
322
|
filterable: "",
|
|
325
323
|
lazy: "",
|
|
326
|
-
load: (
|
|
324
|
+
load: (d, U) => ye({ node: d, resolve: U }, e),
|
|
327
325
|
ref_for: !0
|
|
328
|
-
}, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (
|
|
326
|
+
}, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), p(s, g({
|
|
329
327
|
key: 7,
|
|
330
328
|
modelValue: o.value[e.fieldKey],
|
|
331
|
-
"onUpdate:modelValue": (
|
|
329
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
332
330
|
type: "date",
|
|
333
331
|
placeholder: `${i(m)("act.selectPlaceholder")}${i(m)("act.time")}`,
|
|
334
332
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
335
333
|
ref_for: !0
|
|
336
334
|
}, i(b)(e), {
|
|
337
335
|
disabled: e.isFormDisabled
|
|
338
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (
|
|
336
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), p(s, g({
|
|
339
337
|
key: 8,
|
|
340
338
|
modelValue: o.value[e.fieldKey],
|
|
341
|
-
"onUpdate:modelValue": (
|
|
339
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
342
340
|
type: "daterange",
|
|
343
341
|
"start-placeholder": i(m)("act.startTime"),
|
|
344
342
|
"end-placeholder": i(m)("act.endTime"),
|
|
@@ -346,35 +344,35 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
346
344
|
ref_for: !0
|
|
347
345
|
}, i(b)(e), {
|
|
348
346
|
disabled: e.isFormDisabled
|
|
349
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (
|
|
347
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), p(n, g({
|
|
350
348
|
key: 9,
|
|
351
349
|
modelValue: o.value[e.fieldKey],
|
|
352
|
-
"onUpdate:modelValue": (
|
|
350
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
353
351
|
options: e.dataList,
|
|
354
|
-
props: i(
|
|
352
|
+
props: i(ke),
|
|
355
353
|
clearable: "",
|
|
356
354
|
filterable: "",
|
|
357
355
|
placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
|
|
358
356
|
ref_for: !0
|
|
359
357
|
}, i(b)(e), {
|
|
360
358
|
disabled: e.isFormDisabled
|
|
361
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (
|
|
359
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), p(v, {
|
|
362
360
|
key: 10,
|
|
363
361
|
modelValue: o.value[e.fieldKey],
|
|
364
|
-
"onUpdate:modelValue": (
|
|
362
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
365
363
|
"active-value": !0,
|
|
366
364
|
"inactive-value": !1
|
|
367
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (
|
|
365
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), p(i(ie), g({
|
|
368
366
|
key: 11,
|
|
369
367
|
class: "form-upload",
|
|
370
368
|
modelValue: o.value[e.fieldKey],
|
|
371
|
-
"onUpdate:modelValue": (
|
|
369
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
372
370
|
request: i(O),
|
|
373
371
|
ref_for: !0
|
|
374
|
-
}, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (
|
|
372
|
+
}, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), p(i(ne), g({
|
|
375
373
|
key: 12,
|
|
376
374
|
modelValue: o.value[e.fieldKey],
|
|
377
|
-
"onUpdate:modelValue": (
|
|
375
|
+
"onUpdate:modelValue": (d) => o.value[e.fieldKey] = d,
|
|
378
376
|
disabled: e.isFormDisabled,
|
|
379
377
|
placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
|
|
380
378
|
ref_for: !0
|
|
@@ -391,7 +389,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
391
389
|
]),
|
|
392
390
|
_: 1
|
|
393
391
|
}, 8, ["model", "label-width", "label-position"])), [
|
|
394
|
-
[Ce,
|
|
392
|
+
[Ce, S.value]
|
|
395
393
|
])
|
|
396
394
|
];
|
|
397
395
|
}),
|
|
@@ -399,7 +397,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
|
399
397
|
}, 8, ["model-value", "title", "width"]);
|
|
400
398
|
};
|
|
401
399
|
}
|
|
402
|
-
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-
|
|
400
|
+
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-4ec013fe"]]);
|
|
403
401
|
export {
|
|
404
402
|
je as default
|
|
405
403
|
};
|
|
@@ -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-40115216.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|