act-plus 1.1.79 → 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 +49 -49
- package/lib/{dialogAddField-5f14fddc.js → dialogAddField-1b4d441e.js} +2 -2
- package/lib/{dialogConfigBtn-a5954155.js → dialogConfigBtn-4dc93e00.js} +2 -2
- package/lib/{dialogSiteComponentsParams-2524289e.js → dialogSiteComponentsParams-9070381c.js} +1 -1
- package/lib/{index-80a6ed89.js → index-0127dfa0.js} +1 -1
- package/lib/{index-16fe3b49.js → index-0e9525ae.js} +67 -64
- package/lib/{index-a65addb1.js → index-10266335.js} +1 -1
- package/lib/{index-1b2ea391.js → index-3085f325.js} +39 -39
- package/lib/{index-07377f1f.js → index-4147f9fd.js} +1738 -1733
- package/lib/{index-3c586d22.js → index-7644271a.js} +1 -1
- package/lib/index-8f6183e7.js +277 -0
- package/lib/{index-93eae228.js → index-90a48da8.js} +1 -1
- package/lib/{index-a8a38c71.js → index-e14178fa.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-7fbc8aef.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-2524289e.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,8 +1,8 @@
|
|
|
1
|
-
import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as
|
|
2
|
-
import { _ as
|
|
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-4147f9fd.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
|
-
const
|
|
5
|
+
const F = { class: "act-table" }, L = {
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
loading: { type: Boolean, default: !1 },
|
|
@@ -18,69 +18,72 @@ const $ = { class: "act-table" }, F = {
|
|
|
18
18
|
treeProps: { type: Object, default: () => ({ children: "children", hasChildren: "hasChildren" }) },
|
|
19
19
|
tableConfig: { type: Object, default: () => ({}) }
|
|
20
20
|
},
|
|
21
|
-
emits: ["update:tableQuery", "update:selection", "refresh", "onRowClick", "changeExpand"],
|
|
22
|
-
setup(
|
|
23
|
-
const { t:
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
emits: ["update:tableQuery", "update:selection", "changeSelection", "refresh", "onRowClick", "changeExpand"],
|
|
22
|
+
setup(h, { expose: x, emit: _ }) {
|
|
23
|
+
const { t: f } = $(), r = _, t = h;
|
|
24
|
+
let d = N(null);
|
|
25
|
+
const S = (o) => t.showPagination ? o + 1 + (t.tableQuery.pageIndex - 1) * t.tableQuery.pageSize : o + 1, C = (o) => {
|
|
26
|
+
b(() => {
|
|
27
|
+
t.data.forEach((a) => {
|
|
28
|
+
o.includes(a[t.rowKey]) && d.value.toggleRowSelection(a, !0);
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
},
|
|
31
|
+
}, k = () => {
|
|
32
|
+
d.value.clearSelection();
|
|
33
|
+
}, m = (o) => d.value.getSelectionRows();
|
|
32
34
|
O(
|
|
33
|
-
() =>
|
|
34
|
-
(
|
|
35
|
-
|
|
35
|
+
() => t.selection,
|
|
36
|
+
(o, a) => {
|
|
37
|
+
o && o.length && C(o);
|
|
36
38
|
},
|
|
37
39
|
{ deep: !0, immediate: !0 }
|
|
38
40
|
);
|
|
39
|
-
const
|
|
40
|
-
r("update:selection",
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
const v = (o) => {
|
|
42
|
+
r("update:selection", o), r("changeSelection", o);
|
|
43
|
+
}, z = (o, a) => {
|
|
44
|
+
o && b(() => {
|
|
45
|
+
let n = a;
|
|
46
|
+
t.data.forEach((s) => {
|
|
47
|
+
t.rowKey && (n = t.rowKey), t.tableConfig.rowKey && (n = t.tableConfig.rowKey), o.includes(s[n]) && d.value.toggleRowSelection(s, !0);
|
|
45
48
|
});
|
|
46
49
|
});
|
|
47
|
-
},
|
|
48
|
-
r("update:tableQuery", { ...
|
|
49
|
-
},
|
|
50
|
-
r("update:tableQuery", { ...
|
|
51
|
-
},
|
|
52
|
-
r("onRowClick",
|
|
53
|
-
},
|
|
54
|
-
r("changeExpand",
|
|
50
|
+
}, Q = (o) => {
|
|
51
|
+
r("update:tableQuery", { ...t.tableQuery, pageSize: o }), r("refresh", []);
|
|
52
|
+
}, R = (o) => {
|
|
53
|
+
r("update:tableQuery", { ...t.tableQuery, pageIndex: o }), r("refresh", []);
|
|
54
|
+
}, K = (o, a, n) => {
|
|
55
|
+
r("onRowClick", o, a, n);
|
|
56
|
+
}, E = (o, a) => {
|
|
57
|
+
r("changeExpand", o, a);
|
|
55
58
|
};
|
|
56
|
-
return
|
|
57
|
-
const n = u("el-table-column"),
|
|
58
|
-
return l(),
|
|
59
|
-
j((l(), i(
|
|
59
|
+
return x({ getSelectionRows: m, updateSelection: z, clearSelection: k }), (o, a) => {
|
|
60
|
+
const n = u("el-table-column"), s = u("el-table"), I = u("el-pagination"), P = T("loading");
|
|
61
|
+
return l(), p("div", F, [
|
|
62
|
+
j((l(), i(s, D({
|
|
60
63
|
style: { width: "100%" },
|
|
61
64
|
ref_key: "tableRef",
|
|
62
|
-
ref:
|
|
63
|
-
data:
|
|
65
|
+
ref: d,
|
|
66
|
+
data: t.data,
|
|
64
67
|
stripe: "",
|
|
65
68
|
border: "",
|
|
66
69
|
"highlight-current-row": "",
|
|
67
|
-
"max-height":
|
|
68
|
-
"row-key":
|
|
70
|
+
"max-height": t.maxHeight,
|
|
71
|
+
"row-key": t.rowKey,
|
|
69
72
|
"default-expand-all": "",
|
|
70
|
-
"tree-props":
|
|
71
|
-
},
|
|
72
|
-
onSelectionChange:
|
|
73
|
-
onRowClick:
|
|
74
|
-
onExpandChange:
|
|
73
|
+
"tree-props": h.treeProps
|
|
74
|
+
}, t.tableConfig, {
|
|
75
|
+
onSelectionChange: v,
|
|
76
|
+
onRowClick: K,
|
|
77
|
+
onExpandChange: E
|
|
75
78
|
}), {
|
|
76
|
-
empty:
|
|
77
|
-
|
|
79
|
+
empty: g(() => [
|
|
80
|
+
W(A(t.data.length || t.data.length == 0 ? y(f)("act.noData") : ""), 1)
|
|
78
81
|
]),
|
|
79
|
-
default:
|
|
80
|
-
(l(!0),
|
|
82
|
+
default: g(() => [
|
|
83
|
+
(l(!0), p(c, null, H(t.headers, (e) => (l(), p(c, {
|
|
81
84
|
key: e.prop
|
|
82
85
|
}, [
|
|
83
|
-
e.isCustomTableHeader ? w(
|
|
86
|
+
e.isCustomTableHeader ? w(o.$slots, e.prop, { key: 0 }, void 0, !0) : (l(), p(c, { key: 1 }, [
|
|
84
87
|
e.render ? (l(), i(n, {
|
|
85
88
|
key: 0,
|
|
86
89
|
label: e.label,
|
|
@@ -91,11 +94,11 @@ const $ = { class: "act-table" }, F = {
|
|
|
91
94
|
"show-overflow-tooltip": e.prop == "operate" ? !1 : e.showOverflowTooltip,
|
|
92
95
|
fixed: e.fixed
|
|
93
96
|
}, {
|
|
94
|
-
default:
|
|
95
|
-
w(
|
|
97
|
+
default: g((B) => [
|
|
98
|
+
w(o.$slots, e.prop, { scope: B }, void 0, !0)
|
|
96
99
|
]),
|
|
97
100
|
_: 2
|
|
98
|
-
}, 1032, ["label", "align", "width", "minWidth", "sortable", "show-overflow-tooltip", "fixed"])) : (l(),
|
|
101
|
+
}, 1032, ["label", "align", "width", "minWidth", "sortable", "show-overflow-tooltip", "fixed"])) : (l(), p(c, { key: 1 }, [
|
|
99
102
|
e.prop == "checkbox" ? (l(), i(n, {
|
|
100
103
|
key: 0,
|
|
101
104
|
type: "selection",
|
|
@@ -104,11 +107,11 @@ const $ = { class: "act-table" }, F = {
|
|
|
104
107
|
fixed: ""
|
|
105
108
|
}, null, 8, ["width"])) : e.prop == "serialNumber" ? (l(), i(n, {
|
|
106
109
|
key: 1,
|
|
107
|
-
index:
|
|
110
|
+
index: S,
|
|
108
111
|
type: "index",
|
|
109
112
|
align: "center",
|
|
110
113
|
width: e.width,
|
|
111
|
-
label: f
|
|
114
|
+
label: y(f)("act.sort"),
|
|
112
115
|
fixed: ""
|
|
113
116
|
}, null, 8, ["width", "label"])) : (l(), i(n, {
|
|
114
117
|
key: 2,
|
|
@@ -127,26 +130,26 @@ const $ = { class: "act-table" }, F = {
|
|
|
127
130
|
]),
|
|
128
131
|
_: 3
|
|
129
132
|
}, 16, ["data", "max-height", "row-key", "tree-props"])), [
|
|
130
|
-
[P,
|
|
133
|
+
[P, t.loading]
|
|
131
134
|
]),
|
|
132
|
-
|
|
135
|
+
t.showPagination ? (l(), i(I, {
|
|
133
136
|
key: 0,
|
|
134
137
|
class: "table-pagination",
|
|
135
|
-
"current-page":
|
|
136
|
-
"onUpdate:currentPage": a[0] || (a[0] = (e) =>
|
|
137
|
-
"page-size":
|
|
138
|
-
"onUpdate:pageSize": a[1] || (a[1] = (e) =>
|
|
138
|
+
"current-page": t.tableQuery.pageIndex,
|
|
139
|
+
"onUpdate:currentPage": a[0] || (a[0] = (e) => t.tableQuery.pageIndex = e),
|
|
140
|
+
"page-size": t.tableQuery.pageSize,
|
|
141
|
+
"onUpdate:pageSize": a[1] || (a[1] = (e) => t.tableQuery.pageSize = e),
|
|
139
142
|
"page-sizes": [10, 20, 50, 75, 100, 200, 500],
|
|
140
143
|
background: "",
|
|
141
144
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
142
|
-
total:
|
|
143
|
-
onSizeChange:
|
|
144
|
-
onCurrentChange:
|
|
145
|
-
}, null, 8, ["current-page", "page-size", "total"])) :
|
|
145
|
+
total: t.total,
|
|
146
|
+
onSizeChange: Q,
|
|
147
|
+
onCurrentChange: R
|
|
148
|
+
}, null, 8, ["current-page", "page-size", "total"])) : U("", !0)
|
|
146
149
|
]);
|
|
147
150
|
};
|
|
148
151
|
}
|
|
149
|
-
},
|
|
152
|
+
}, X = /* @__PURE__ */ V(L, [["__scopeId", "data-v-b5ec4a41"]]);
|
|
150
153
|
export {
|
|
151
|
-
|
|
154
|
+
X as default
|
|
152
155
|
};
|
|
@@ -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
|
-
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
|
|
2
|
-
import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-
|
|
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-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) => {
|
|
@@ -73,29 +73,29 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
73
73
|
var a, r;
|
|
74
74
|
if (l)
|
|
75
75
|
try {
|
|
76
|
-
|
|
76
|
+
R.value = !0;
|
|
77
77
|
const m = await me(p.data.formList, p.data.rowData, !1, !0);
|
|
78
|
-
console.log("formList", (a = p.data) == null ? void 0 : a.formList),
|
|
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
|
})
|
|
89
|
-
),
|
|
89
|
+
), R.value = !1;
|
|
90
90
|
} catch (m) {
|
|
91
|
-
console.error(m),
|
|
91
|
+
console.error(m), R.value = !1;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
const _e = (l) => {
|
|
96
96
|
B(), l();
|
|
97
97
|
}, B = () => {
|
|
98
|
-
|
|
98
|
+
P.value = [], E.value.resetFields(), X("update:visible", !1);
|
|
99
99
|
}, ve = (l, c) => {
|
|
100
100
|
const a = b(c), { fieldKey: r, fieldType: m } = c;
|
|
101
101
|
if (console.log(l), console.log(c), console.log(a), console.log(o.value), m === "multipleSelect") {
|
|
@@ -106,22 +106,22 @@ 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;
|
|
113
113
|
let m = { ...Ne(o.value) };
|
|
114
|
-
U.value = !0, Object.keys(m).forEach((s) => {
|
|
114
|
+
U.value = !0, console.log(m), console.log(P.value), Object.keys(m).forEach((s) => {
|
|
115
115
|
if (s.includes("ActImplicit")) {
|
|
116
116
|
delete m[s];
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const i =
|
|
120
|
-
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,12 +202,12 @@ 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),
|
|
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
|
}, {
|
|
209
209
|
default: K(() => [
|
|
210
|
-
e.customFiledsComponentes.isFieldCustom ? (u(),
|
|
210
|
+
e.customFiledsComponentes.isFieldCustom ? (u(), L(x, { key: 1 }, [
|
|
211
211
|
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(we(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
212
212
|
key: 0,
|
|
213
213
|
ref_for: !0,
|
|
@@ -218,14 +218,14 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
218
218
|
visible: p.visible,
|
|
219
219
|
form: o.value,
|
|
220
220
|
"onUpdate:form": c[0] || (c[0] = (t) => o.value = t)
|
|
221
|
-
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(),
|
|
221
|
+
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), L("div", {
|
|
222
222
|
class: "no-config",
|
|
223
223
|
key: ee
|
|
224
224
|
}, [
|
|
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,
|
|
@@ -268,8 +268,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
268
268
|
disabled: e.isFormDisabled
|
|
269
269
|
}), {
|
|
270
270
|
default: K(() => [
|
|
271
|
-
(u(!0),
|
|
272
|
-
key:
|
|
271
|
+
(u(!0), L(x, null, Q(e.dataList, (t, S) => (u(), y(r, {
|
|
272
|
+
key: S,
|
|
273
273
|
label: t.key,
|
|
274
274
|
value: t.value
|
|
275
275
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -289,8 +289,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
289
289
|
onChange: (t) => ve(t, e)
|
|
290
290
|
}), {
|
|
291
291
|
default: K(() => [
|
|
292
|
-
(u(!0),
|
|
293
|
-
key:
|
|
292
|
+
(u(!0), L(x, null, Q(e.dataList, (t, S) => (u(), y(r, {
|
|
293
|
+
key: S,
|
|
294
294
|
label: t.key,
|
|
295
295
|
value: t
|
|
296
296
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -337,7 +337,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
337
337
|
clearable: "",
|
|
338
338
|
filterable: "",
|
|
339
339
|
lazy: "",
|
|
340
|
-
load: (t,
|
|
340
|
+
load: (t, S) => he({ node: t, resolve: S }, e)
|
|
341
341
|
}, { ref_for: !0 }, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(s, v({
|
|
342
342
|
key: 8,
|
|
343
343
|
modelValue: o.value[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
|
};
|