act-plus 1.1.80 → 1.1.81
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 +31 -31
- package/lib/{dialogAddField-356c0203.js → dialogAddField-1b4d441e.js} +2 -2
- package/lib/{dialogConfigBtn-b826fbbd.js → dialogConfigBtn-4dc93e00.js} +2 -2
- package/lib/{dialogSiteComponentsParams-2bd207be.js → dialogSiteComponentsParams-9070381c.js} +1 -1
- package/lib/{index-5cf4016d.js → index-0127dfa0.js} +1 -1
- package/lib/{index-bb510fb9.js → index-0e9525ae.js} +1 -1
- package/lib/{index-083d66b1.js → index-10266335.js} +1 -1
- package/lib/{index-a1929e12.js → index-3085f325.js} +25 -25
- package/lib/{index-0ca10994.js → index-4147f9fd.js} +470 -470
- package/lib/{index-07af7560.js → index-7644271a.js} +1 -1
- package/lib/index-8f6183e7.js +277 -0
- package/lib/{index-b42134dd.js → index-90a48da8.js} +1 -1
- package/lib/{index-a1576e42.js → index-e14178fa.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-ddd5b9be.js +0 -249
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as ne, inject as D, reactive as re, ref as A, watch as de, resolveComponent as V, resolveDirective as se, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as p, createTextVNode as v, withDirectives as ie, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as pe } from "vue";
|
|
2
|
-
import { _ as me, F as fe, l as be, m as ce, S as _e, T as Ve, A as ge, C as ye, n as Ce, U as ve } from "./index-
|
|
2
|
+
import { _ as me, F as fe, l as be, m as ce, S as _e, T as Ve, A as ge, C as ye, n as Ce, U as ve } from "./index-4147f9fd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
|
|
@@ -11,7 +11,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:visible", "refresh"],
|
|
13
13
|
setup(M, { emit: Q }) {
|
|
14
|
-
const W = ne(() => import("./dialogSiteComponentsParams-
|
|
14
|
+
const W = ne(() => import("./dialogSiteComponentsParams-9070381c.js")), E = Q, P = M, h = D("pageKey")(), O = D("conditionList")(), Y = D("configData")();
|
|
15
15
|
let S = re((() => ({
|
|
16
16
|
btnLoading: !1,
|
|
17
17
|
showSiteComponentsParamsDialog: !1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, inject as k, computed as de, reactive as re, ref as q, watch as ie, resolveComponent as y, resolveDirective as se, openBlock as n, createBlock as m, withCtx as e, createElementVNode as me, createVNode as l, unref as o, createTextVNode as U, withDirectives as pe, toDisplayString as O, createElementBlock as b, Fragment as f, renderList as _, createCommentVNode as C } from "vue";
|
|
2
|
-
import { _ as ce, B as be, d as fe, e as _e, f as ge, Y as Ve, g as ye, h as he, i as Ce, j as Fe, k as ve } from "./index-
|
|
2
|
+
import { _ as ce, B as be, d as fe, e as _e, f as ge, Y as Ve, g as ye, h as he, i as Ce, j as Fe, k as ve } from "./index-4147f9fd.js";
|
|
3
3
|
import { useRoute as Ue } from "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const Te = { class: "dialog-footer" }, ke = {
|
|
@@ -11,7 +11,7 @@ const Te = { class: "dialog-footer" }, ke = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:visible", "refresh"],
|
|
13
13
|
setup(x, { emit: A }) {
|
|
14
|
-
const D = L(() => import("./index-
|
|
14
|
+
const D = L(() => import("./index-10266335.js")), E = L(() => import("./index-0127dfa0.js")), W = Ue(), Y = k("apiPrefix"), R = k("request"), I = A, N = x, j = de(() => W.params.key);
|
|
15
15
|
let T = re((() => ({
|
|
16
16
|
btnLoading: !1
|
|
17
17
|
}))());
|
package/lib/{dialogSiteComponentsParams-2bd207be.js → dialogSiteComponentsParams-9070381c.js}
RENAMED
|
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, A = {
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:visible", "refresh", "update:modelValue"],
|
|
10
10
|
setup(f, { emit: c }) {
|
|
11
|
-
const v = _(() => import("./index-
|
|
11
|
+
const v = _(() => import("./index-0127dfa0.js")), n = c, o = f;
|
|
12
12
|
let t = C();
|
|
13
13
|
y(
|
|
14
14
|
() => o.visible,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as vd, shallowRef as jn, inject as kd, computed as ec, toRaw as Qd, onMounted as Pd, watch as le, onBeforeUnmount as $d, h as Td, ref as Ql, resolveComponent as Cd, resolveDirective as Ad, openBlock as Pl, createElementBlock as Rd, withDirectives as Zd, createBlock as Md, withCtx as Ed, createTextVNode as Xd, toDisplayString as Ld, unref as $l, createVNode as Dd, normalizeStyle as zd } from "vue";
|
|
2
|
-
import { _ as Wd, u as Bd } from "./index-
|
|
2
|
+
import { _ as Wd, u as Bd } from "./index-4147f9fd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
let Xr = [], ic = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as p, withDirectives as j, createBlock as i, mergeProps as D, withCtx as g, createTextVNode as W, toDisplayString as A, unref as y, Fragment as c, renderList as H, renderSlot as w, createCommentVNode as U, nextTick as b } from "vue";
|
|
2
|
-
import { _ as V, u as $ } from "./index-
|
|
2
|
+
import { _ as V, u as $ } from "./index-4147f9fd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const F = { class: "act-table" }, L = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as p, watch as h, resolveComponent as _, openBlock as r, createElementBlock as m, 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-4147f9fd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as D, ref as N, watch as De, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as K, createElementVNode as ae, createVNode as oe, createTextVNode as J, toDisplayString as A, unref as d, withDirectives as te, createElementBlock as L, Fragment as x, renderList as Q, mergeProps as v, createCommentVNode as se, resolveDynamicComponent as we, toRaw as Ne } from "vue";
|
|
2
|
-
import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-
|
|
2
|
+
import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-4147f9fd.js";
|
|
3
3
|
import { ElNotification as Le } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
@@ -11,11 +11,11 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:visible", "refresh"],
|
|
13
13
|
setup(k, { emit: de }) {
|
|
14
|
-
const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-
|
|
14
|
+
const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-10266335.js")), ue = O(() => import("./index-8f6183e7.js")), ce = O(() => import("./index-35e3b49c.js")), { t: h } = Ue(), q = D("request"), fe = D("loadComponents"), w = D("formatDataType"), M = D("globalProps"), pe = D("stringToBoolean"), b = D("getFieldUiProps"), me = D("disposeRequestData"), X = de, p = k, R = N(!1), U = N(!1), E = N(null), P = N([]), o = N({}), j = N({}), ye = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, be = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), he = async ({ node: l, resolve: c }, a) => {
|
|
15
15
|
const r = b(a), { label: m, value: n, children: g, isLeaf: s } = { ...re, ...r.treeProps || {} };
|
|
16
16
|
if (l[s])
|
|
17
17
|
return c([]);
|
|
18
|
-
const i = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, V) => (f[V.submitName] = w(V.paramsType, V.submitValue), f), {}),
|
|
18
|
+
const i = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, V) => (f[V.submitName] = w(V.paramsType, V.submitValue), f), {}), T = a.postRequestParams.filter((f) => f.submitType === "match").reduce((f, V) => (f[V.submitName] = w(V.paramsType, M.matchData[V.submitValue][V.submitName]), f), {}), F = a.postRequestParams.filter((f) => f.submitType === "dynamic").map((f) => {
|
|
19
19
|
let V = {
|
|
20
20
|
field: f.submitName,
|
|
21
21
|
operate: f.submitMatchType,
|
|
@@ -23,12 +23,12 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
23
23
|
};
|
|
24
24
|
return r.loadCode === f.submitName && (l != null && l.data.value) && (V.value = l == null ? void 0 : l.data.value), V;
|
|
25
25
|
});
|
|
26
|
-
let
|
|
27
|
-
Object.keys(i).length && (
|
|
26
|
+
let C = {};
|
|
27
|
+
Object.keys(i).length && (C = { ...C, ...i }), Object.keys(T).length && (C = { ...C, ...T }), F.length && (C.dynamicFilters = F), r.loadCode && Reflect.has(C, r.loadCode) && (C[r.loadCode] = l == null ? void 0 : l.data.value);
|
|
28
28
|
const { data: H } = await q({
|
|
29
29
|
url: a.fieldRequestUrl,
|
|
30
30
|
method: a.fieldRequestType || "GET",
|
|
31
|
-
data:
|
|
31
|
+
data: C
|
|
32
32
|
}), W = (H || []).map((f) => ({ label: f[m], value: f[n], children: [], isLeaf: f[s] }));
|
|
33
33
|
c(W);
|
|
34
34
|
}, Y = (l) => {
|
|
@@ -77,12 +77,12 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
77
77
|
const m = await me(p.data.formList, p.data.rowData, !1, !0);
|
|
78
78
|
console.log("formList", (a = p.data) == null ? void 0 : a.formList), P.value = await Promise.all(
|
|
79
79
|
(((r = p.data) == null ? void 0 : r.formList) ?? []).sort((n, g) => n.sort - g.sort).map(async (n) => {
|
|
80
|
-
const g = m.find((
|
|
80
|
+
const g = m.find((F) => n.fieldName == F.fieldName && n.fieldKey == F.fieldKey);
|
|
81
81
|
g && (n.dataList = (g == null ? void 0 : g.dataList) ?? []), ["select", "multipleSelect"].includes(n.fieldType) && (o.value[`${n.fieldKey}ActImplicit`] = Object.keys(p.data.rowData).length && n.isFormSetValue ? z(n, !0) : Y(n.fieldType)), o.value[n.fieldKey] = Object.keys(p.data.rowData).length && n.isFormSetValue ? z(n) : Y(n.fieldType);
|
|
82
|
-
const { isFieldCustom: s, customComponentName: i, customComponentUrl:
|
|
82
|
+
const { isFieldCustom: s, customComponentName: i, customComponentUrl: T } = n.customFiledsComponentes;
|
|
83
83
|
if (s && !n.customFiledsComponentes[i]) {
|
|
84
|
-
const
|
|
85
|
-
n.customFiledsComponentes[i] =
|
|
84
|
+
const F = await fe(T, i);
|
|
85
|
+
n.customFiledsComponentes[i] = F;
|
|
86
86
|
}
|
|
87
87
|
return n;
|
|
88
88
|
})
|
|
@@ -106,7 +106,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
106
106
|
}, Ve = (l, c) => {
|
|
107
107
|
const { fieldKey: a, fieldType: r } = c;
|
|
108
108
|
r === "multipleSelect" ? l === void 0 && (o.value[a] = []) : l === void 0 && (o.value[a] = "");
|
|
109
|
-
},
|
|
109
|
+
}, Ce = (l) => {
|
|
110
110
|
l && l.validate((c) => {
|
|
111
111
|
if (c) {
|
|
112
112
|
const { dataItem: a, rowData: r } = p.data;
|
|
@@ -116,12 +116,12 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
116
116
|
delete m[s];
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const i = P.value.find((
|
|
120
|
-
console.log(i), s.includes("&") ? s.split("&").forEach((
|
|
121
|
-
m[
|
|
122
|
-
}) : Array.isArray(m[s]) && i.fieldSubmitType == "string" && (m[s] = $(m[s], "string"));
|
|
119
|
+
const i = P.value.find((T) => T.fieldKey === s);
|
|
120
|
+
console.log(i), s.includes("&") ? s.split("&").forEach((F, C) => {
|
|
121
|
+
m[F] = m[s] ? $(m[s][C], i.fieldSubmitType) : m[s];
|
|
122
|
+
}) : Array.isArray(m[s]) && (i == null ? void 0 : i.fieldSubmitType) == "string" && (m[s] = $(m[s], "string"));
|
|
123
123
|
});
|
|
124
|
-
const n = a.submitFields.filter((s) => s.matchType == "default").reduce((s, i) => (i.submitFieldType === "string" && (s[i.submitFieldName] = i.matchFieldName.toString()), s), {}), g = a.submitFields.filter((s) => s.matchType == "match").reduce((s, i) => (Reflect.has(i, "submitFieldMatchOrigin") && i.submitFieldMatchOrigin === "selections" ? s[i.submitFieldName] = p.data.selections.map((
|
|
124
|
+
const n = a.submitFields.filter((s) => s.matchType == "default").reduce((s, i) => (i.submitFieldType === "string" && (s[i.submitFieldName] = i.matchFieldName.toString()), s), {}), g = a.submitFields.filter((s) => s.matchType == "match").reduce((s, i) => (Reflect.has(i, "submitFieldMatchOrigin") && i.submitFieldMatchOrigin === "selections" ? s[i.submitFieldName] = p.data.selections.map((T) => w(i.submitFieldType, T[i.matchFieldName])) : Reflect.has(i, "submitFieldMatchOrigin") && i.submitFieldMatchOrigin != "rowData" ? Reflect.has(M.matchData, i.submitFieldMatchOrigin) && (s[i.submitFieldName] = w(i.submitFieldType, M.matchData[i.submitFieldMatchOrigin][i.matchFieldName])) : s[i.submitFieldName] = w(i.submitFieldType, r[i.matchFieldName]), s), {});
|
|
125
125
|
ge({
|
|
126
126
|
...m,
|
|
127
127
|
...n,
|
|
@@ -138,18 +138,18 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
},
|
|
141
|
+
}, Te = (l) => {
|
|
142
142
|
const c = Object.keys(j.value).map((a) => {
|
|
143
143
|
var r;
|
|
144
144
|
return (r = j.value[a]) == null ? void 0 : r.updateFormData(o.value);
|
|
145
145
|
}).filter((a) => a);
|
|
146
146
|
Promise.all([l.validate(), ...c]).then((a) => {
|
|
147
|
-
a.every((r) => r) &&
|
|
147
|
+
a.every((r) => r) && Ce(l);
|
|
148
148
|
}).catch((a) => (console.error(a), a));
|
|
149
149
|
};
|
|
150
150
|
return (l, c) => {
|
|
151
151
|
var Z;
|
|
152
|
-
const a = _("el-input"), r = _("el-option"), m = _("el-select"), n = _("el-select-v2"), g = _("el-tree-select"), s = _("el-date-picker"), i = _("el-cascader"),
|
|
152
|
+
const a = _("el-input"), r = _("el-option"), m = _("el-select"), n = _("el-select-v2"), g = _("el-tree-select"), s = _("el-date-picker"), i = _("el-cascader"), T = _("el-switch"), F = _("el-form-item"), C = _("el-col"), H = _("el-row"), W = _("el-form"), f = _("el-button"), V = _("el-dialog"), Fe = le("loading"), Ke = le("debounce");
|
|
153
153
|
return u(), y(V, {
|
|
154
154
|
"model-value": p.visible,
|
|
155
155
|
title: p.title,
|
|
@@ -176,7 +176,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
176
176
|
te((u(), y(f, {
|
|
177
177
|
type: "primary",
|
|
178
178
|
loading: U.value,
|
|
179
|
-
onClick: c[1] || (c[1] = (G) =>
|
|
179
|
+
onClick: c[1] || (c[1] = (G) => Te(E.value))
|
|
180
180
|
}, {
|
|
181
181
|
default: K(() => [
|
|
182
182
|
J(A(d(h)("act.save")), 1)
|
|
@@ -202,7 +202,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
202
202
|
default: K(() => [
|
|
203
203
|
oe(H, { gutter: 40 }, {
|
|
204
204
|
default: K(() => [
|
|
205
|
-
(u(!0), L(x, null, Q(P.value, (e, ee) => (u(), y(
|
|
205
|
+
(u(!0), L(x, null, Q(P.value, (e, ee) => (u(), y(C, {
|
|
206
206
|
span: ye(e),
|
|
207
207
|
key: ee
|
|
208
208
|
}, {
|
|
@@ -225,7 +225,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
225
225
|
ae("span", Re, "【" + A(e.fieldName) + "】", 1),
|
|
226
226
|
J(A(d(h)("act.fieldCustom")), 1)
|
|
227
227
|
]))
|
|
228
|
-
], 64)) : (u(), y(
|
|
228
|
+
], 64)) : (u(), y(F, {
|
|
229
229
|
key: 0,
|
|
230
230
|
label: e.fieldName,
|
|
231
231
|
prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
|
|
@@ -368,7 +368,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
368
368
|
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}`
|
|
369
369
|
}, { ref_for: !0 }, d(b)(e), {
|
|
370
370
|
disabled: e.isFormDisabled
|
|
371
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(
|
|
371
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(T, v({
|
|
372
372
|
key: 11,
|
|
373
373
|
modelValue: o.value[e.fieldKey],
|
|
374
374
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
@@ -399,7 +399,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
399
399
|
]),
|
|
400
400
|
_: 1
|
|
401
401
|
}, 8, ["model", "label-width", "label-position"])), [
|
|
402
|
-
[
|
|
402
|
+
[Fe, R.value]
|
|
403
403
|
])
|
|
404
404
|
];
|
|
405
405
|
}),
|
|
@@ -407,7 +407,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
407
407
|
}, 8, ["model-value", "title", "width"]);
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
}, Ee = /* @__PURE__ */ ke(Oe, [["__scopeId", "data-v-
|
|
410
|
+
}, Ee = /* @__PURE__ */ ke(Oe, [["__scopeId", "data-v-0b8b3885"]]);
|
|
411
411
|
export {
|
|
412
412
|
Ee as default
|
|
413
413
|
};
|