act-plus 1.1.46 → 1.1.48
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 +47 -47
- package/lib/{dialogAddField-43f3a8b3.js → dialogAddField-d98f117c.js} +2 -2
- package/lib/{dialogConfigBtn-298b9b5c.js → dialogConfigBtn-d2f39e31.js} +2 -2
- package/lib/{dialogSiteComponentsParams-fab326d2.js → dialogSiteComponentsParams-680354b0.js} +1 -1
- package/lib/{index-ce00842d.js → index-1b503cfa.js} +1 -1
- package/lib/{index-c91a3357.js → index-4e179352.js} +87 -87
- package/lib/{index-1a957d2f.js → index-56bc95ef.js} +2682 -2679
- package/lib/index-5b45c0ed.js +406 -0
- package/lib/{index-81b16d7b.js → index-aede2df5.js} +1 -1
- package/lib/{index-738cbb81.js → index-bfbf9bcd.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-37ff46df.js +0 -406
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { defineAsyncComponent as A, inject as K, ref as w, watch as Te, resolveComponent as g, 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 d, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as V, 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-56bc95ef.js";
|
|
3
|
+
import { ElNotification as Se } from "element-plus";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
import "js-base64";
|
|
6
|
+
import "monaco-editor";
|
|
7
|
+
const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
visible: { type: Boolean, default: !1 },
|
|
11
|
+
title: { type: String, default: "" },
|
|
12
|
+
data: { type: Object, default: () => ({}) }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:visible", "refresh"],
|
|
15
|
+
setup(N, { emit: re }) {
|
|
16
|
+
const de = A(() => import("./index-56bc95ef.js").then((l) => l.t)), ie = A(() => import("./index-aede2df5.js")), ne = A(() => import("./index-56bc95ef.js").then((l) => l.s)), ue = A(() => import("./index-56bc95ef.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), R = w(!1), E = w(null), L = 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: c }, a) => {
|
|
17
|
+
const r = h(a), { label: m, value: i, children: _, isLeaf: o } = { ...ke, ...r.treeProps || {} };
|
|
18
|
+
if (l[o])
|
|
19
|
+
return c([]);
|
|
20
|
+
const n = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, F) => (f[F.submitName] = P(F.paramsType, F.submitValue), f), {}), D = a.postRequestParams.filter((f) => f.submitType === "match").reduce((f, F) => (f[F.submitName] = P(F.paramsType, M.matchData[F.submitValue][F.submitName]), f), {}), C = a.postRequestParams.filter((f) => f.submitType === "dynamic").map((f) => ({
|
|
21
|
+
field: f.submitName,
|
|
22
|
+
operate: f.submitMatchType,
|
|
23
|
+
value: r.loadCode ? l == null ? void 0 : l.data.value : P(f.paramsType, f.submitValue)
|
|
24
|
+
}));
|
|
25
|
+
let v = {};
|
|
26
|
+
Object.keys(n).length && (v = { ...v, ...n }), Object.keys(D).length && (v = { ...v, ...D }), C.length && (v.dynamicFilters = C), r.loadCode && Reflect.has(v, r.loadCode) && (v[r.loadCode] = l == null ? void 0 : l.data.value);
|
|
27
|
+
const { data: H } = await x({
|
|
28
|
+
url: a.fieldRequestUrl,
|
|
29
|
+
method: a.fieldRequestType || "GET",
|
|
30
|
+
data: v
|
|
31
|
+
}), W = (H || []).map((f) => ({ label: f[m], value: f[i], children: [], isLeaf: f[o] }));
|
|
32
|
+
c(W);
|
|
33
|
+
}, Y = (l) => {
|
|
34
|
+
if (!["input", "textarea"].includes(l)) {
|
|
35
|
+
if (["multipleSelect", "dateRange"].includes(l))
|
|
36
|
+
return [];
|
|
37
|
+
if (["switch"].includes(l))
|
|
38
|
+
return !1;
|
|
39
|
+
}
|
|
40
|
+
}, $ = (l, c) => {
|
|
41
|
+
if (typeof l == "string" && ["string"].includes(c))
|
|
42
|
+
return l.toString();
|
|
43
|
+
if (["string"].includes(c))
|
|
44
|
+
return l.sort((a, r) => a.sort - r.sort).join(";");
|
|
45
|
+
if (["number"].includes(c))
|
|
46
|
+
return Number(l);
|
|
47
|
+
if (["array"].includes(c))
|
|
48
|
+
return l.sort((a, r) => a.sort - r.sort);
|
|
49
|
+
}, z = (l, c = !1) => {
|
|
50
|
+
if (["multipleSelect"].includes(l.fieldType))
|
|
51
|
+
return p.data.rowData[l.fieldKey] ? p.data.rowData[l.fieldKey].split(";").map((r) => c ? { value: r } : r) : [];
|
|
52
|
+
if (["virtualizedMultipleSelect"].includes(l.fieldType))
|
|
53
|
+
return p.data.rowData[l.fieldKey] ? p.data.rowData[l.fieldKey].split(";") : [];
|
|
54
|
+
if (["dateRange", "provinceCascade"].includes(l.fieldType)) {
|
|
55
|
+
const r = l.fieldKey.split("&");
|
|
56
|
+
return p.data.rowData[l.fieldKey] = r.map((m) => p.data.rowData[m]), p.data.rowData[l.fieldKey];
|
|
57
|
+
}
|
|
58
|
+
let a = p.data.rowData[l.fieldKey];
|
|
59
|
+
if (["select"].includes(l.fieldType)) {
|
|
60
|
+
const r = h(l);
|
|
61
|
+
l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
|
|
62
|
+
}
|
|
63
|
+
if (["virtualizedSelect"].includes(l.fieldType)) {
|
|
64
|
+
const r = h(l);
|
|
65
|
+
l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
|
|
66
|
+
}
|
|
67
|
+
return (a === "true" || a === "false") && (a = fe(a)), a;
|
|
68
|
+
}, he = (l) => x({ url: p.data.dataItem.requestUrl, method: "post", data: l });
|
|
69
|
+
Te(
|
|
70
|
+
() => p.visible,
|
|
71
|
+
async (l, c) => {
|
|
72
|
+
var a, r;
|
|
73
|
+
if (l)
|
|
74
|
+
try {
|
|
75
|
+
S.value = !0;
|
|
76
|
+
const m = await pe(p.data.formList, p.data.rowData, !1, !0);
|
|
77
|
+
console.log("formList", (a = p.data) == null ? void 0 : a.formList), L.value = await Promise.all(
|
|
78
|
+
(((r = p.data) == null ? void 0 : r.formList) ?? []).sort((i, _) => i.sort - _.sort).map(async (i) => {
|
|
79
|
+
const _ = m.find((C) => i.fieldName == C.fieldName && i.fieldKey == C.fieldKey);
|
|
80
|
+
_ && (i.dataList = (_ == null ? void 0 : _.dataList) ?? []), ["select", "multipleSelect"].includes(i.fieldType) && (t.value[`${i.fieldKey}ActImplicit`] = Object.keys(p.data.rowData).length && i.isFormSetValue ? z(i, !0) : Y(i.fieldType)), t.value[i.fieldKey] = Object.keys(p.data.rowData).length && i.isFormSetValue ? z(i) : Y(i.fieldType);
|
|
81
|
+
const { isFieldCustom: o, customComponentName: n, customComponentUrl: D } = i.customFiledsComponentes;
|
|
82
|
+
if (o && !i.customFiledsComponentes[n]) {
|
|
83
|
+
const C = await ce(D, n);
|
|
84
|
+
i.customFiledsComponentes[n] = C;
|
|
85
|
+
}
|
|
86
|
+
return i;
|
|
87
|
+
})
|
|
88
|
+
), S.value = !1;
|
|
89
|
+
} catch (m) {
|
|
90
|
+
console.error(m), S.value = !1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
const _e = (l) => {
|
|
95
|
+
B(), l();
|
|
96
|
+
}, B = () => {
|
|
97
|
+
L.value = [], E.value.resetFields(), X("update:visible", !1);
|
|
98
|
+
}, ge = (l, c) => {
|
|
99
|
+
const a = h(c), { fieldKey: r, fieldType: m } = c;
|
|
100
|
+
if (m === "multipleSelect") {
|
|
101
|
+
const i = l.filter((o) => typeof o == "string"), _ = l.filter((o) => typeof o != "string").map((o) => o.value);
|
|
102
|
+
t.value[a.createFieldKey] = i.length ? $(i, "string") : void 0, t.value[r] = _.length ? $(_, "string") : void 0;
|
|
103
|
+
} else
|
|
104
|
+
typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[r] = void 0) : (t.value[r] = l.value, delete t.value[a.createFieldKey]);
|
|
105
|
+
}, ve = (l) => {
|
|
106
|
+
l && l.validate((c) => {
|
|
107
|
+
if (c) {
|
|
108
|
+
const { dataItem: a, rowData: r } = p.data;
|
|
109
|
+
let m = { ...Ke(t.value) };
|
|
110
|
+
Object.keys(m).forEach((o) => {
|
|
111
|
+
if (o.includes("ActImplicit")) {
|
|
112
|
+
delete m[o];
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const n = L.value.find((D) => D.fieldKey === o);
|
|
116
|
+
o.includes("&") ? o.split("&").forEach((C, v) => {
|
|
117
|
+
m[C] = m[o] ? $(m[o][v], n.fieldSubmitType) : m[o];
|
|
118
|
+
}) : Array.isArray(m[o]) && n.fieldSubmitType == "string" && (m[o] = $(m[o], "string"));
|
|
119
|
+
});
|
|
120
|
+
const i = a.submitFields.filter((o) => o.matchType == "default").reduce((o, n) => (n.submitFieldType === "string" && (o[n.submitFieldName] = n.matchFieldName.toString()), o), {}), _ = 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
|
+
he({
|
|
122
|
+
...m,
|
|
123
|
+
...i,
|
|
124
|
+
..._
|
|
125
|
+
}).then((o) => {
|
|
126
|
+
try {
|
|
127
|
+
Se({ title: b("act.tip"), message: b("act.saveSuccessfully"), type: "success", duration: 2500 }), B(), X("refresh");
|
|
128
|
+
} catch (n) {
|
|
129
|
+
console.error(n);
|
|
130
|
+
}
|
|
131
|
+
R.value = !1;
|
|
132
|
+
}).catch((o) => {
|
|
133
|
+
console.error(o), R.value = !1;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}, Ve = (l) => {
|
|
138
|
+
const c = Object.keys(j.value).map((a) => {
|
|
139
|
+
var r;
|
|
140
|
+
return (r = j.value[a]) == null ? void 0 : r.updateFormData(t.value);
|
|
141
|
+
}).filter((a) => a);
|
|
142
|
+
Promise.all([l.validate(), ...c]).then((a) => {
|
|
143
|
+
a.every((r) => r) && ve(l);
|
|
144
|
+
}).catch((a) => (console.error(a), a));
|
|
145
|
+
};
|
|
146
|
+
return (l, c) => {
|
|
147
|
+
var Z;
|
|
148
|
+
const a = g("el-input"), r = g("el-option"), m = g("el-select"), i = g("el-select-v2"), _ = g("el-tree-select"), o = g("el-date-picker"), n = g("el-cascader"), D = g("el-switch"), C = g("el-form-item"), v = g("el-col"), H = g("el-row"), W = g("el-form"), f = g("el-button"), F = g("el-dialog"), Ce = le("loading"), Fe = le("debounce");
|
|
149
|
+
return u(), y(F, {
|
|
150
|
+
"model-value": p.visible,
|
|
151
|
+
title: p.title,
|
|
152
|
+
top: "5vh",
|
|
153
|
+
width: (Z = N.data.formConfig) == null ? void 0 : Z.dialogWidth,
|
|
154
|
+
draggable: "",
|
|
155
|
+
overflow: "",
|
|
156
|
+
"append-to-body": "",
|
|
157
|
+
"destroy-on-close": "",
|
|
158
|
+
"close-on-click-modal": !1,
|
|
159
|
+
"before-close": _e
|
|
160
|
+
}, {
|
|
161
|
+
footer: T(() => [
|
|
162
|
+
ae("span", Le, [
|
|
163
|
+
te(f, {
|
|
164
|
+
loading: R.value,
|
|
165
|
+
onClick: B
|
|
166
|
+
}, {
|
|
167
|
+
default: T(() => [
|
|
168
|
+
J(O(d(b)("act.cancel")), 1)
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["loading"]),
|
|
172
|
+
oe((u(), y(f, {
|
|
173
|
+
type: "primary",
|
|
174
|
+
loading: R.value,
|
|
175
|
+
onClick: c[1] || (c[1] = (G) => Ve(E.value))
|
|
176
|
+
}, {
|
|
177
|
+
default: T(() => [
|
|
178
|
+
J(O(d(b)("act.save")), 1)
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["loading"])), [
|
|
182
|
+
[Fe]
|
|
183
|
+
])
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
default: T(() => {
|
|
187
|
+
var G, I;
|
|
188
|
+
return [
|
|
189
|
+
oe((u(), y(W, {
|
|
190
|
+
class: "a-form",
|
|
191
|
+
ref_key: "formRef",
|
|
192
|
+
ref: E,
|
|
193
|
+
model: t.value,
|
|
194
|
+
"label-suffix": ":",
|
|
195
|
+
"label-width": (G = N.data.formConfig) == null ? void 0 : G.formLabelWidth,
|
|
196
|
+
"label-position": (I = N.data.formConfig) == null ? void 0 : I.formLabelPosition
|
|
197
|
+
}, {
|
|
198
|
+
default: T(() => [
|
|
199
|
+
te(H, { gutter: 40 }, {
|
|
200
|
+
default: T(() => [
|
|
201
|
+
(u(!0), k(q, null, Q(L.value, (e, ee) => (u(), y(v, {
|
|
202
|
+
span: me(e),
|
|
203
|
+
key: ee
|
|
204
|
+
}, {
|
|
205
|
+
default: T(() => [
|
|
206
|
+
e.customFiledsComponentes.isFieldCustom ? (u(), k(q, { key: 1 }, [
|
|
207
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
208
|
+
key: 0,
|
|
209
|
+
ref_for: !0,
|
|
210
|
+
ref: (s) => j.value[e.customFiledsComponentes.customComponentName] = s,
|
|
211
|
+
formConfig: N.data.formConfig,
|
|
212
|
+
item: e,
|
|
213
|
+
rowData: p.data.rowData,
|
|
214
|
+
visible: p.visible,
|
|
215
|
+
form: t.value,
|
|
216
|
+
"onUpdate:form": c[0] || (c[0] = (s) => t.value = s)
|
|
217
|
+
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), k("div", {
|
|
218
|
+
class: "no-config",
|
|
219
|
+
key: ee
|
|
220
|
+
}, [
|
|
221
|
+
ae("span", Re, "【" + O(e.fieldName) + "】", 1),
|
|
222
|
+
J(O(d(b)("act.fieldCustom")), 1)
|
|
223
|
+
]))
|
|
224
|
+
], 64)) : (u(), y(C, {
|
|
225
|
+
key: 0,
|
|
226
|
+
label: e.fieldName,
|
|
227
|
+
prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
|
|
228
|
+
rules: [{ required: e.isFormFieldRequired, message: d(b)("act.requiredMessage"), trigger: ye(e) }]
|
|
229
|
+
}, {
|
|
230
|
+
default: T(() => [
|
|
231
|
+
e.fieldType === "input" ? (u(), y(a, V({
|
|
232
|
+
key: 0,
|
|
233
|
+
modelValue: t.value[e.fieldKey],
|
|
234
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
235
|
+
placeholder: `${d(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
236
|
+
clearable: "",
|
|
237
|
+
ref_for: !0
|
|
238
|
+
}, d(h)(e), {
|
|
239
|
+
disabled: e.isFormDisabled
|
|
240
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : se("", !0),
|
|
241
|
+
e.fieldType === "inputNumber" ? (u(), y(d(de), V({
|
|
242
|
+
key: 1,
|
|
243
|
+
modelValue: t.value[e.fieldKey],
|
|
244
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
245
|
+
placeholder: `${d(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
246
|
+
clearable: "",
|
|
247
|
+
ref_for: !0
|
|
248
|
+
}, d(h)(e), {
|
|
249
|
+
disabled: e.isFormDisabled
|
|
250
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), y(a, V({
|
|
251
|
+
key: 2,
|
|
252
|
+
modelValue: t.value[e.fieldKey],
|
|
253
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
254
|
+
placeholder: `${d(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
255
|
+
rows: 4,
|
|
256
|
+
ref_for: !0
|
|
257
|
+
}, d(h)(e), {
|
|
258
|
+
type: "textarea",
|
|
259
|
+
disabled: e.isFormDisabled
|
|
260
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), y(d(ie), V({
|
|
261
|
+
key: 3,
|
|
262
|
+
modelValue: t.value[e.fieldKey],
|
|
263
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
264
|
+
icons: e.dataList,
|
|
265
|
+
placeholder: `${d(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
266
|
+
ref_for: !0
|
|
267
|
+
}, d(h)(e), {
|
|
268
|
+
disabled: e.isFormDisabled
|
|
269
|
+
}), {
|
|
270
|
+
default: T(() => [
|
|
271
|
+
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(r, {
|
|
272
|
+
key: U,
|
|
273
|
+
label: s.key,
|
|
274
|
+
value: s.value
|
|
275
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
276
|
+
]),
|
|
277
|
+
_: 2
|
|
278
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (u(), y(m, V({
|
|
279
|
+
key: 4,
|
|
280
|
+
modelValue: t.value[`${e.fieldKey}ActImplicit`],
|
|
281
|
+
"onUpdate:modelValue": (s) => t.value[`${e.fieldKey}ActImplicit`] = s,
|
|
282
|
+
placeholder: `${d(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
283
|
+
clearable: "",
|
|
284
|
+
filterable: "",
|
|
285
|
+
"value-key": "value",
|
|
286
|
+
ref_for: !0
|
|
287
|
+
}, d(h)(e), {
|
|
288
|
+
multiple: e.fieldType === "multipleSelect",
|
|
289
|
+
disabled: e.isFormDisabled,
|
|
290
|
+
onChange: (s) => ge(s, e)
|
|
291
|
+
}), {
|
|
292
|
+
default: T(() => [
|
|
293
|
+
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(r, {
|
|
294
|
+
key: U,
|
|
295
|
+
label: s.key,
|
|
296
|
+
value: s
|
|
297
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
298
|
+
]),
|
|
299
|
+
_: 2
|
|
300
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (u(), y(i, V({
|
|
301
|
+
key: 5,
|
|
302
|
+
modelValue: t.value[e.fieldKey],
|
|
303
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
304
|
+
options: e.dataList,
|
|
305
|
+
props: { ...d(Pe) },
|
|
306
|
+
placeholder: `${d(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
307
|
+
clearable: "",
|
|
308
|
+
filterable: "",
|
|
309
|
+
ref_for: !0
|
|
310
|
+
}, d(h)(e), {
|
|
311
|
+
disabled: e.isFormDisabled,
|
|
312
|
+
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
313
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (u(), y(_, V({
|
|
314
|
+
key: 6,
|
|
315
|
+
modelValue: t.value[e.fieldKey],
|
|
316
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
317
|
+
placeholder: `请选择${e.fieldName}`,
|
|
318
|
+
props: { isLeaf: "isLeaf" },
|
|
319
|
+
"render-after-expand": !1,
|
|
320
|
+
"collapse-tags": "",
|
|
321
|
+
"collapse-tags-tooltip": "",
|
|
322
|
+
multiple: "",
|
|
323
|
+
"show-checkbox": "",
|
|
324
|
+
clearable: "",
|
|
325
|
+
filterable: "",
|
|
326
|
+
lazy: "",
|
|
327
|
+
load: (s, U) => be({ node: s, resolve: U }, e),
|
|
328
|
+
ref_for: !0
|
|
329
|
+
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(o, V({
|
|
330
|
+
key: 7,
|
|
331
|
+
modelValue: t.value[e.fieldKey],
|
|
332
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
333
|
+
type: "date",
|
|
334
|
+
placeholder: `${d(b)("act.selectPlaceholder")}${d(b)("act.time")}`,
|
|
335
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
336
|
+
ref_for: !0
|
|
337
|
+
}, d(h)(e), {
|
|
338
|
+
disabled: e.isFormDisabled
|
|
339
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(o, V({
|
|
340
|
+
key: 8,
|
|
341
|
+
modelValue: t.value[e.fieldKey],
|
|
342
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
343
|
+
type: "daterange",
|
|
344
|
+
"start-placeholder": d(b)("act.startTime"),
|
|
345
|
+
"end-placeholder": d(b)("act.endTime"),
|
|
346
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
347
|
+
ref_for: !0
|
|
348
|
+
}, d(h)(e), {
|
|
349
|
+
disabled: e.isFormDisabled
|
|
350
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(n, V({
|
|
351
|
+
key: 9,
|
|
352
|
+
modelValue: t.value[e.fieldKey],
|
|
353
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
354
|
+
options: e.dataList,
|
|
355
|
+
props: d(Ue),
|
|
356
|
+
clearable: "",
|
|
357
|
+
filterable: "",
|
|
358
|
+
placeholder: `${d(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
359
|
+
ref_for: !0
|
|
360
|
+
}, d(h)(e), {
|
|
361
|
+
disabled: e.isFormDisabled
|
|
362
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(D, {
|
|
363
|
+
key: 10,
|
|
364
|
+
modelValue: t.value[e.fieldKey],
|
|
365
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
366
|
+
"active-value": !0,
|
|
367
|
+
"inactive-value": !1
|
|
368
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(d(ne), V({
|
|
369
|
+
key: 11,
|
|
370
|
+
class: "form-upload",
|
|
371
|
+
modelValue: t.value[e.fieldKey],
|
|
372
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
373
|
+
request: d(x),
|
|
374
|
+
ref_for: !0
|
|
375
|
+
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(d(ue), V({
|
|
376
|
+
key: 12,
|
|
377
|
+
modelValue: t.value[e.fieldKey],
|
|
378
|
+
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
379
|
+
disabled: e.isFormDisabled,
|
|
380
|
+
placeholder: `${d(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
381
|
+
ref_for: !0
|
|
382
|
+
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : se("", !0)
|
|
383
|
+
]),
|
|
384
|
+
_: 2
|
|
385
|
+
}, 1032, ["label", "prop", "rules"]))
|
|
386
|
+
]),
|
|
387
|
+
_: 2
|
|
388
|
+
}, 1032, ["span"]))), 128))
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
})
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
394
|
+
}, 8, ["model", "label-width", "label-position"])), [
|
|
395
|
+
[Ce, S.value]
|
|
396
|
+
])
|
|
397
|
+
];
|
|
398
|
+
}),
|
|
399
|
+
_: 1
|
|
400
|
+
}, 8, ["model-value", "title", "width"]);
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-734a1d62"]]);
|
|
404
|
+
export {
|
|
405
|
+
je as default
|
|
406
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as d, watch as h, resolveComponent as m, openBlock as r, createElementBlock as _, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
-
import { _ as P } from "./index-
|
|
2
|
+
import { _ as P } from "./index-56bc95ef.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 j, inject as l, watch as q, resolveComponent as y, resolveDirective as O, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as _, withDirectives as C, createCommentVNode as b, 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-56bc95ef.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-
|
|
1
|
+
@charset "UTF-8";.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-6555c18f] .el-empty__image{width:100%}.file-image[data-v-6555c18f]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-6555c18f]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-6555c18f]{padding:0;margin:0;border:none}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-399814c2]{display:flex;align-items:center}.card-header -operate[data-v-399814c2]{margin-left:auto}.form-list[data-v-399814c2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-399814c2]:last-child{border:none}.config-list-operate[data-v-399814c2]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-75e750d2]{display:flex;align-items:center}.card-header-operate[data-v-75e750d2]{margin-left:auto}.form-list[data-v-75e750d2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-75e750d2]:last-child{border:none}.config-list-operate[data-v-75e750d2]{display:flex;align-items:center;justify-content:flex-end}[data-v-75e750d2] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.page-container[data-v-4ec549a6]{position:relative}.page-container .header-operate[data-v-4ec549a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-4ec549a6]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-4ec549a6]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-4ec549a6]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-651542d6]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-425e86c9] .el-form-item{margin-bottom:8px}.search-module-container[data-v-425e86c9] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-425e86c9]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-425e86c9]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-425e86c9]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-66a50743]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-66a50743]{margin:2px}.no-config[data-v-734a1d62]{line-height:32px;font-weight:700}.no-config-field[data-v-734a1d62]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-75eab9b4]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-75eab9b4]{display:flex;justify-content:center}.condition-box[data-v-75eab9b4] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-75eab9b4]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-75eab9b4]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-3da504a4]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-3da504a4]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-3da504a4]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}
|