act-plus 1.1.53 → 1.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/act-plus.js +1 -1
- package/act-plus.umd.cjs +44 -44
- package/lib/{dialogAddField-53e0fc9f.js → dialogAddField-03dd89f3.js} +2 -2
- package/lib/{dialogConfigBtn-f37d0400.js → dialogConfigBtn-ef3ee544.js} +2 -2
- package/lib/{dialogSiteComponentsParams-07e68191.js → dialogSiteComponentsParams-9ec43656.js} +1 -1
- package/lib/{index-81a254a8.js → index-0565f321.js} +1 -1
- package/lib/{index-2a4396ea.js → index-0dfce03e.js} +1 -1
- package/lib/{index-4d730424.js → index-0fdb6943.js} +135 -135
- package/lib/{index-6c0d996e.js → index-1889e30b.js} +2 -2
- package/lib/{index-6f52659f.js → index-2693b9c5.js} +4757 -4743
- package/lib/{index-9d508c6f.js → index-c932841c.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as re, inject as E, reactive as de, ref as A, watch as se, resolveComponent as C, resolveDirective as ie, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as m, createTextVNode as S, withDirectives as me, createElementBlock as c, Fragment as y, renderList as g, createCommentVNode as U, toDisplayString as pe } from "vue";
|
|
2
|
-
import { _ as fe, U as M, F as be, k as ce, l as ye, S as Ce, T as ge, A as _e, C as Ve, m as ve } from "./index-
|
|
2
|
+
import { _ as fe, U as M, F as be, k as ce, l as ye, S as Ce, T as ge, A as _e, C as Ve, m as ve } from "./index-2693b9c5.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -13,7 +13,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
15
|
setup(Q, { emit: I }) {
|
|
16
|
-
const K = re(() => import("./dialogSiteComponentsParams-
|
|
16
|
+
const K = re(() => import("./dialogSiteComponentsParams-9ec43656.js")), h = I, P = Q, N = E("pageKey")(), O = E("conditionList")(), W = E("configData")();
|
|
17
17
|
let k = de((() => ({
|
|
18
18
|
btnLoading: !1,
|
|
19
19
|
showSiteComponentsParamsDialog: !1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as N, computed as ue, reactive as ne, ref as q, watch as de, resolveComponent as y, resolveDirective as re, openBlock as d, createBlock as m, withCtx as e, createElementVNode as se, createVNode as l, unref as o, createTextVNode as U, withDirectives as ie, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
|
|
2
|
-
import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-
|
|
2
|
+
import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-2693b9c5.js";
|
|
3
3
|
import { useRoute as Ce } from "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -13,7 +13,7 @@ const ve = { class: "dialog-footer" }, Fe = {
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
15
|
setup(x, { emit: D }) {
|
|
16
|
-
const P = O(() => import("./index-
|
|
16
|
+
const P = O(() => import("./index-0dfce03e.js")), E = O(() => import("./index-2693b9c5.js").then((p) => p.q)), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
|
|
17
17
|
let k = ne((() => ({
|
|
18
18
|
btnLoading: !1
|
|
19
19
|
}))());
|
package/lib/{dialogSiteComponentsParams-07e68191.js → dialogSiteComponentsParams-9ec43656.js}
RENAMED
|
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, h = {
|
|
|
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-2693b9c5.js").then((l) => l.q)), n = c, o = f;
|
|
12
12
|
let t = y();
|
|
13
13
|
C(
|
|
14
14
|
() => o.visible,
|
|
@@ -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-2693b9c5.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 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-2693b9c5.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-
|
|
1
|
+
import { defineAsyncComponent as O, inject as K, ref as N, watch as Te, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as D, createElementVNode as ae, createVNode as te, createTextVNode as J, toDisplayString as A, unref as r, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as F, createCommentVNode as se, resolveDynamicComponent as De, toRaw as Ke } from "vue";
|
|
2
|
+
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-2693b9c5.js";
|
|
3
3
|
import { ElNotification as Se } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
@@ -12,27 +12,27 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
12
12
|
data: { type: Object, default: () => ({}) }
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
const
|
|
15
|
+
setup(P, { emit: ie }) {
|
|
16
|
+
const re = O(() => import("./index-2693b9c5.js").then((l) => l.t)), de = O(() => import("./index-0dfce03e.js")), ne = O(() => import("./index-2693b9c5.js").then((l) => l.s)), ue = O(() => import("./index-2693b9c5.js").then((l) => l.r)), { t: b } = Ne(), M = K("request"), ce = K("loadComponents"), w = K("formatDataType"), x = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = ie, f = P, S = N(!1), L = N(!1), E = N(null), R = N([]), t = N({}), j = N({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: p }, a) => {
|
|
17
|
+
const i = h(a), { label: m, value: n, children: g, isLeaf: o } = { ...ke, ...i.treeProps || {} };
|
|
18
18
|
if (l[o])
|
|
19
|
-
return
|
|
20
|
-
const
|
|
19
|
+
return p([]);
|
|
20
|
+
const d = a.postRequestParams.filter((c) => c.submitType === "default").reduce((c, V) => (c[V.submitName] = w(V.paramsType, V.submitValue), c), {}), C = a.postRequestParams.filter((c) => c.submitType === "match").reduce((c, V) => (c[V.submitName] = w(V.paramsType, x.matchData[V.submitValue][V.submitName]), c), {}), T = a.postRequestParams.filter((c) => c.submitType === "dynamic").map((c) => {
|
|
21
21
|
let V = {
|
|
22
22
|
field: c.submitName,
|
|
23
23
|
operate: c.submitMatchType,
|
|
24
|
-
value:
|
|
24
|
+
value: w(c.paramsType, c.submitValue)
|
|
25
25
|
};
|
|
26
|
-
return
|
|
26
|
+
return i.loadCode === c.submitName && (l != null && l.data.value) && (V.value = l == null ? void 0 : l.data.value), V;
|
|
27
27
|
});
|
|
28
28
|
let v = {};
|
|
29
|
-
Object.keys(
|
|
30
|
-
const { data: H } = await
|
|
29
|
+
Object.keys(d).length && (v = { ...v, ...d }), Object.keys(C).length && (v = { ...v, ...C }), T.length && (v.dynamicFilters = T), i.loadCode && Reflect.has(v, i.loadCode) && (v[i.loadCode] = l == null ? void 0 : l.data.value), console.log(v);
|
|
30
|
+
const { data: H } = await M({
|
|
31
31
|
url: a.fieldRequestUrl,
|
|
32
32
|
method: a.fieldRequestType || "GET",
|
|
33
33
|
data: v
|
|
34
|
-
}), W = (H || []).map((c) => ({ label: c[m], value: c[
|
|
35
|
-
|
|
34
|
+
}), W = (H || []).map((c) => ({ label: c[m], value: c[n], children: [], isLeaf: c[o] }));
|
|
35
|
+
p(W);
|
|
36
36
|
}, Y = (l) => {
|
|
37
37
|
if (!["input", "textarea"].includes(l)) {
|
|
38
38
|
if (["multipleSelect", "dateRange"].includes(l))
|
|
@@ -40,53 +40,53 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
40
40
|
if (["switch"].includes(l))
|
|
41
41
|
return !1;
|
|
42
42
|
}
|
|
43
|
-
}, $ = (l,
|
|
44
|
-
if (typeof l == "string" && ["string"].includes(
|
|
43
|
+
}, $ = (l, p) => {
|
|
44
|
+
if (typeof l == "string" && ["string"].includes(p))
|
|
45
45
|
return l.toString();
|
|
46
|
-
if (["string"].includes(
|
|
47
|
-
return l.sort((a,
|
|
48
|
-
if (["number"].includes(
|
|
46
|
+
if (["string"].includes(p))
|
|
47
|
+
return l.sort((a, i) => a.sort - i.sort).join(";");
|
|
48
|
+
if (["number"].includes(p))
|
|
49
49
|
return Number(l);
|
|
50
|
-
if (["array"].includes(
|
|
51
|
-
return l.sort((a,
|
|
52
|
-
}, z = (l,
|
|
50
|
+
if (["array"].includes(p))
|
|
51
|
+
return l.sort((a, i) => a.sort - i.sort);
|
|
52
|
+
}, z = (l, p = !1) => {
|
|
53
53
|
if (["multipleSelect"].includes(l.fieldType))
|
|
54
|
-
return
|
|
54
|
+
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";").map((i) => p ? { value: i } : i) : [];
|
|
55
55
|
if (["virtualizedMultipleSelect"].includes(l.fieldType))
|
|
56
|
-
return
|
|
56
|
+
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";") : [];
|
|
57
57
|
if (["dateRange", "provinceCascade"].includes(l.fieldType)) {
|
|
58
|
-
const
|
|
59
|
-
return
|
|
58
|
+
const i = l.fieldKey.split("&");
|
|
59
|
+
return f.data.rowData[l.fieldKey] = i.map((m) => f.data.rowData[m]), f.data.rowData[l.fieldKey];
|
|
60
60
|
}
|
|
61
|
-
let a =
|
|
61
|
+
let a = f.data.rowData[l.fieldKey];
|
|
62
62
|
if (["select"].includes(l.fieldType)) {
|
|
63
|
-
const
|
|
64
|
-
l.dataList && l.dataList.length && typeof l.dataList[0][
|
|
63
|
+
const i = h(l);
|
|
64
|
+
l.dataList && l.dataList.length && typeof l.dataList[0][i["value-key"] ? i["value-key"] : "value"] == "string" && a !== null && (a = p ? { value: a.toString() } : a.toString());
|
|
65
65
|
}
|
|
66
66
|
if (["virtualizedSelect"].includes(l.fieldType)) {
|
|
67
|
-
const
|
|
68
|
-
l.dataList && l.dataList.length && typeof l.dataList[0][
|
|
67
|
+
const i = h(l);
|
|
68
|
+
l.dataList && l.dataList.length && typeof l.dataList[0][i["value-key"] ? i["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
|
|
69
69
|
}
|
|
70
70
|
return (a === "true" || a === "false") && (a = fe(a)), a;
|
|
71
|
-
}, he = (l) =>
|
|
71
|
+
}, he = (l) => M({ url: f.data.dataItem.requestUrl, method: "post", data: l });
|
|
72
72
|
Te(
|
|
73
|
-
() =>
|
|
74
|
-
async (l,
|
|
75
|
-
var a,
|
|
73
|
+
() => f.visible,
|
|
74
|
+
async (l, p) => {
|
|
75
|
+
var a, i;
|
|
76
76
|
if (l)
|
|
77
77
|
try {
|
|
78
78
|
S.value = !0;
|
|
79
|
-
const m = await pe(
|
|
80
|
-
console.log("formList", (a =
|
|
81
|
-
(((
|
|
82
|
-
const g = m.find((
|
|
83
|
-
g && (
|
|
84
|
-
const { isFieldCustom: o, customComponentName:
|
|
85
|
-
if (o && !
|
|
86
|
-
const
|
|
87
|
-
|
|
79
|
+
const m = await pe(f.data.formList, f.data.rowData, !1, !0);
|
|
80
|
+
console.log("formList", (a = f.data) == null ? void 0 : a.formList), R.value = await Promise.all(
|
|
81
|
+
(((i = f.data) == null ? void 0 : i.formList) ?? []).sort((n, g) => n.sort - g.sort).map(async (n) => {
|
|
82
|
+
const g = m.find((T) => n.fieldName == T.fieldName && n.fieldKey == T.fieldKey);
|
|
83
|
+
g && (n.dataList = (g == null ? void 0 : g.dataList) ?? []), ["select", "multipleSelect"].includes(n.fieldType) && (t.value[`${n.fieldKey}ActImplicit`] = Object.keys(f.data.rowData).length && n.isFormSetValue ? z(n, !0) : Y(n.fieldType)), t.value[n.fieldKey] = Object.keys(f.data.rowData).length && n.isFormSetValue ? z(n) : Y(n.fieldType);
|
|
84
|
+
const { isFieldCustom: o, customComponentName: d, customComponentUrl: C } = n.customFiledsComponentes;
|
|
85
|
+
if (o && !n.customFiledsComponentes[d]) {
|
|
86
|
+
const T = await ce(C, d);
|
|
87
|
+
n.customFiledsComponentes[d] = T;
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return n;
|
|
90
90
|
})
|
|
91
91
|
), S.value = !1;
|
|
92
92
|
} catch (m) {
|
|
@@ -98,38 +98,38 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
98
98
|
B(), l();
|
|
99
99
|
}, B = () => {
|
|
100
100
|
R.value = [], E.value.resetFields(), X("update:visible", !1);
|
|
101
|
-
}, _e = (l,
|
|
102
|
-
const a = h(
|
|
101
|
+
}, _e = (l, p) => {
|
|
102
|
+
const a = h(p), { fieldKey: i, fieldType: m } = p;
|
|
103
103
|
if (m === "multipleSelect") {
|
|
104
|
-
const
|
|
105
|
-
t.value[a.createFieldKey] =
|
|
104
|
+
const n = l.filter((o) => typeof o == "string"), g = l.filter((o) => typeof o != "string").map((o) => o.value);
|
|
105
|
+
t.value[a.createFieldKey] = n.length ? $(n, "string") : void 0, t.value[i] = g.length ? $(g, "string") : void 0;
|
|
106
106
|
} else
|
|
107
|
-
typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[
|
|
107
|
+
typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[i] = void 0) : (t.value[i] = l.value, delete t.value[a.createFieldKey]);
|
|
108
108
|
}, ve = (l) => {
|
|
109
|
-
l && l.validate((
|
|
110
|
-
if (
|
|
111
|
-
const { dataItem: a, rowData:
|
|
109
|
+
l && l.validate((p) => {
|
|
110
|
+
if (p) {
|
|
111
|
+
const { dataItem: a, rowData: i } = f.data;
|
|
112
112
|
let m = { ...Ke(t.value) };
|
|
113
113
|
Object.keys(m).forEach((o) => {
|
|
114
114
|
if (o.includes("ActImplicit")) {
|
|
115
115
|
delete m[o];
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
o.includes("&") ? o.split("&").forEach((
|
|
120
|
-
m[
|
|
121
|
-
}) : Array.isArray(m[o]) &&
|
|
118
|
+
const d = R.value.find((C) => C.fieldKey === o);
|
|
119
|
+
o.includes("&") ? o.split("&").forEach((T, v) => {
|
|
120
|
+
m[T] = m[o] ? $(m[o][v], d.fieldSubmitType) : m[o];
|
|
121
|
+
}) : Array.isArray(m[o]) && d.fieldSubmitType == "string" && (m[o] = $(m[o], "string"));
|
|
122
122
|
});
|
|
123
|
-
const
|
|
123
|
+
const n = a.submitFields.filter((o) => o.matchType == "default").reduce((o, d) => (d.submitFieldType === "string" && (o[d.submitFieldName] = d.matchFieldName.toString()), o), {}), g = a.submitFields.filter((o) => o.matchType == "match").reduce((o, d) => (Reflect.has(d, "submitFieldMatchOrigin") && d.submitFieldMatchOrigin === "selections" ? o[d.submitFieldName] = f.data.selections.map((C) => w(d.submitFieldType, C[d.matchFieldName])) : Reflect.has(d, "submitFieldMatchOrigin") && d.submitFieldMatchOrigin != "rowData" ? Reflect.has(x.matchData, d.submitFieldMatchOrigin) && (o[d.submitFieldName] = w(d.submitFieldType, x.matchData[d.submitFieldMatchOrigin][d.matchFieldName])) : o[d.submitFieldName] = w(d.submitFieldType, i[d.matchFieldName]), o), {});
|
|
124
124
|
he({
|
|
125
125
|
...m,
|
|
126
|
-
...
|
|
126
|
+
...n,
|
|
127
127
|
...g
|
|
128
128
|
}).then((o) => {
|
|
129
129
|
try {
|
|
130
130
|
Se({ title: b("act.tip"), message: b("act.saveSuccessfully"), type: "success", duration: 2500 }), B(), X("refresh", a);
|
|
131
|
-
} catch (
|
|
132
|
-
console.error(
|
|
131
|
+
} catch (d) {
|
|
132
|
+
console.error(d);
|
|
133
133
|
}
|
|
134
134
|
L.value = !1;
|
|
135
135
|
}).catch((o) => {
|
|
@@ -138,22 +138,22 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
}, Ve = (l) => {
|
|
141
|
-
const
|
|
142
|
-
var
|
|
143
|
-
return (
|
|
141
|
+
const p = Object.keys(j.value).map((a) => {
|
|
142
|
+
var i;
|
|
143
|
+
return (i = j.value[a]) == null ? void 0 : i.updateFormData(t.value);
|
|
144
144
|
}).filter((a) => a);
|
|
145
|
-
Promise.all([l.validate(), ...
|
|
146
|
-
a.every((
|
|
145
|
+
Promise.all([l.validate(), ...p]).then((a) => {
|
|
146
|
+
a.every((i) => i) && ve(l);
|
|
147
147
|
}).catch((a) => (console.error(a), a));
|
|
148
148
|
};
|
|
149
|
-
return (l,
|
|
149
|
+
return (l, p) => {
|
|
150
150
|
var Z;
|
|
151
|
-
const a = _("el-input"),
|
|
151
|
+
const a = _("el-input"), i = _("el-option"), m = _("el-select"), n = _("el-select-v2"), g = _("el-tree-select"), o = _("el-date-picker"), d = _("el-cascader"), C = _("el-switch"), T = _("el-form-item"), v = _("el-col"), H = _("el-row"), W = _("el-form"), c = _("el-button"), V = _("el-dialog"), Fe = le("loading"), Ce = le("debounce");
|
|
152
152
|
return u(), y(V, {
|
|
153
|
-
"model-value":
|
|
154
|
-
title:
|
|
153
|
+
"model-value": f.visible,
|
|
154
|
+
title: f.title,
|
|
155
155
|
top: "5vh",
|
|
156
|
-
width: (Z =
|
|
156
|
+
width: (Z = P.data.formConfig) == null ? void 0 : Z.dialogWidth,
|
|
157
157
|
draggable: "",
|
|
158
158
|
overflow: "",
|
|
159
159
|
"append-to-body": "",
|
|
@@ -161,32 +161,32 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
161
161
|
"close-on-click-modal": !1,
|
|
162
162
|
"before-close": ge
|
|
163
163
|
}, {
|
|
164
|
-
footer:
|
|
164
|
+
footer: D(() => [
|
|
165
165
|
ae("span", Re, [
|
|
166
166
|
te(c, {
|
|
167
167
|
loading: L.value,
|
|
168
168
|
onClick: B
|
|
169
169
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
J(
|
|
170
|
+
default: D(() => [
|
|
171
|
+
J(A(r(b)("act.cancel")), 1)
|
|
172
172
|
]),
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["loading"]),
|
|
175
175
|
oe((u(), y(c, {
|
|
176
176
|
type: "primary",
|
|
177
177
|
loading: L.value,
|
|
178
|
-
onClick:
|
|
178
|
+
onClick: p[1] || (p[1] = (G) => Ve(E.value))
|
|
179
179
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
J(
|
|
180
|
+
default: D(() => [
|
|
181
|
+
J(A(r(b)("act.save")), 1)
|
|
182
182
|
]),
|
|
183
183
|
_: 1
|
|
184
184
|
}, 8, ["loading"])), [
|
|
185
|
-
[
|
|
185
|
+
[Ce]
|
|
186
186
|
])
|
|
187
187
|
])
|
|
188
188
|
]),
|
|
189
|
-
default:
|
|
189
|
+
default: D(() => {
|
|
190
190
|
var G, I;
|
|
191
191
|
return [
|
|
192
192
|
oe((u(), y(W, {
|
|
@@ -195,125 +195,125 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
195
195
|
ref: E,
|
|
196
196
|
model: t.value,
|
|
197
197
|
"label-suffix": ":",
|
|
198
|
-
"label-width": (G =
|
|
199
|
-
"label-position": (I =
|
|
198
|
+
"label-width": (G = P.data.formConfig) == null ? void 0 : G.formLabelWidth,
|
|
199
|
+
"label-position": (I = P.data.formConfig) == null ? void 0 : I.formLabelPosition
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
201
|
+
default: D(() => [
|
|
202
202
|
te(H, { gutter: 40 }, {
|
|
203
|
-
default:
|
|
203
|
+
default: D(() => [
|
|
204
204
|
(u(!0), k(q, null, Q(R.value, (e, ee) => (u(), y(v, {
|
|
205
205
|
span: me(e),
|
|
206
206
|
key: ee
|
|
207
207
|
}, {
|
|
208
|
-
default:
|
|
208
|
+
default: D(() => [
|
|
209
209
|
e.customFiledsComponentes.isFieldCustom ? (u(), k(q, { key: 1 }, [
|
|
210
210
|
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
211
211
|
key: 0,
|
|
212
212
|
ref_for: !0,
|
|
213
213
|
ref: (s) => j.value[e.customFiledsComponentes.customComponentName] = s,
|
|
214
|
-
formConfig:
|
|
214
|
+
formConfig: P.data.formConfig,
|
|
215
215
|
item: e,
|
|
216
|
-
rowData:
|
|
217
|
-
visible:
|
|
216
|
+
rowData: f.data.rowData,
|
|
217
|
+
visible: f.visible,
|
|
218
218
|
form: t.value,
|
|
219
|
-
"onUpdate:form":
|
|
219
|
+
"onUpdate:form": p[0] || (p[0] = (s) => t.value = s)
|
|
220
220
|
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), k("div", {
|
|
221
221
|
class: "no-config",
|
|
222
222
|
key: ee
|
|
223
223
|
}, [
|
|
224
|
-
ae("span", Le, "【" +
|
|
225
|
-
J(
|
|
224
|
+
ae("span", Le, "【" + A(e.fieldName) + "】", 1),
|
|
225
|
+
J(A(r(b)("act.fieldCustom")), 1)
|
|
226
226
|
]))
|
|
227
|
-
], 64)) : (u(), y(
|
|
227
|
+
], 64)) : (u(), y(T, {
|
|
228
228
|
key: 0,
|
|
229
229
|
label: e.fieldName,
|
|
230
230
|
prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
|
|
231
|
-
rules: [{ required: e.isFormFieldRequired, message:
|
|
231
|
+
rules: [{ required: e.isFormFieldRequired, message: r(b)("act.requiredMessage"), trigger: ye(e) }]
|
|
232
232
|
}, {
|
|
233
|
-
default:
|
|
234
|
-
e.fieldType === "input" ? (u(), y(a,
|
|
233
|
+
default: D(() => [
|
|
234
|
+
e.fieldType === "input" ? (u(), y(a, F({
|
|
235
235
|
key: 0,
|
|
236
236
|
modelValue: t.value[e.fieldKey],
|
|
237
237
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
238
|
-
placeholder: `${
|
|
238
|
+
placeholder: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
239
239
|
clearable: "",
|
|
240
240
|
ref_for: !0
|
|
241
|
-
},
|
|
241
|
+
}, r(h)(e), {
|
|
242
242
|
disabled: e.isFormDisabled
|
|
243
243
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : se("", !0),
|
|
244
|
-
e.fieldType === "inputNumber" ? (u(), y(
|
|
244
|
+
e.fieldType === "inputNumber" ? (u(), y(r(re), F({
|
|
245
245
|
key: 1,
|
|
246
246
|
modelValue: t.value[e.fieldKey],
|
|
247
247
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
248
|
-
placeholder: `${
|
|
248
|
+
placeholder: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
249
249
|
clearable: "",
|
|
250
250
|
ref_for: !0
|
|
251
|
-
},
|
|
251
|
+
}, r(h)(e), {
|
|
252
252
|
disabled: e.isFormDisabled
|
|
253
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), y(a,
|
|
253
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), y(a, F({
|
|
254
254
|
key: 2,
|
|
255
255
|
modelValue: t.value[e.fieldKey],
|
|
256
256
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
257
|
-
placeholder: `${
|
|
257
|
+
placeholder: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
258
258
|
rows: 4,
|
|
259
259
|
ref_for: !0
|
|
260
|
-
},
|
|
260
|
+
}, r(h)(e), {
|
|
261
261
|
type: "textarea",
|
|
262
262
|
disabled: e.isFormDisabled
|
|
263
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), y(
|
|
263
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), y(r(de), F({
|
|
264
264
|
key: 3,
|
|
265
265
|
modelValue: t.value[e.fieldKey],
|
|
266
266
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
267
267
|
icons: e.dataList,
|
|
268
|
-
placeholder: `${
|
|
268
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
269
269
|
ref_for: !0
|
|
270
|
-
},
|
|
270
|
+
}, r(h)(e), {
|
|
271
271
|
disabled: e.isFormDisabled
|
|
272
272
|
}), {
|
|
273
|
-
default:
|
|
274
|
-
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(
|
|
273
|
+
default: D(() => [
|
|
274
|
+
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(i, {
|
|
275
275
|
key: U,
|
|
276
276
|
label: s.key,
|
|
277
277
|
value: s.value
|
|
278
278
|
}, null, 8, ["label", "value"]))), 128))
|
|
279
279
|
]),
|
|
280
280
|
_: 2
|
|
281
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (u(), y(m,
|
|
281
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (u(), y(m, F({
|
|
282
282
|
key: 4,
|
|
283
283
|
modelValue: t.value[`${e.fieldKey}ActImplicit`],
|
|
284
284
|
"onUpdate:modelValue": (s) => t.value[`${e.fieldKey}ActImplicit`] = s,
|
|
285
|
-
placeholder: `${
|
|
285
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
286
286
|
clearable: "",
|
|
287
287
|
filterable: "",
|
|
288
288
|
"value-key": "value",
|
|
289
289
|
ref_for: !0
|
|
290
|
-
},
|
|
290
|
+
}, r(h)(e), {
|
|
291
291
|
multiple: e.fieldType === "multipleSelect",
|
|
292
292
|
disabled: e.isFormDisabled,
|
|
293
293
|
onChange: (s) => _e(s, e)
|
|
294
294
|
}), {
|
|
295
|
-
default:
|
|
296
|
-
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(
|
|
295
|
+
default: D(() => [
|
|
296
|
+
(u(!0), k(q, null, Q(e.dataList, (s, U) => (u(), y(i, {
|
|
297
297
|
key: U,
|
|
298
298
|
label: s.key,
|
|
299
299
|
value: s
|
|
300
300
|
}, null, 8, ["label", "value"]))), 128))
|
|
301
301
|
]),
|
|
302
302
|
_: 2
|
|
303
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (u(), y(
|
|
303
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (u(), y(n, F({
|
|
304
304
|
key: 5,
|
|
305
305
|
modelValue: t.value[e.fieldKey],
|
|
306
306
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
307
307
|
options: e.dataList,
|
|
308
|
-
props: { ...
|
|
309
|
-
placeholder: `${
|
|
308
|
+
props: { ...r(Pe) },
|
|
309
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
310
310
|
clearable: "",
|
|
311
311
|
filterable: "",
|
|
312
312
|
ref_for: !0
|
|
313
|
-
},
|
|
313
|
+
}, r(h)(e), {
|
|
314
314
|
disabled: e.isFormDisabled,
|
|
315
315
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
316
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (u(), y(g,
|
|
316
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (u(), y(g, F({
|
|
317
317
|
key: 6,
|
|
318
318
|
modelValue: t.value[e.fieldKey],
|
|
319
319
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
@@ -329,60 +329,60 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
329
329
|
lazy: "",
|
|
330
330
|
load: (s, U) => be({ node: s, resolve: U }, e),
|
|
331
331
|
ref_for: !0
|
|
332
|
-
},
|
|
332
|
+
}, r(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(o, F({
|
|
333
333
|
key: 7,
|
|
334
334
|
modelValue: t.value[e.fieldKey],
|
|
335
335
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
336
336
|
type: "date",
|
|
337
|
-
placeholder: `${
|
|
337
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${r(b)("act.time")}`,
|
|
338
338
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
339
339
|
ref_for: !0
|
|
340
|
-
},
|
|
340
|
+
}, r(h)(e), {
|
|
341
341
|
disabled: e.isFormDisabled
|
|
342
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(o,
|
|
342
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(o, F({
|
|
343
343
|
key: 8,
|
|
344
344
|
modelValue: t.value[e.fieldKey],
|
|
345
345
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
346
346
|
type: "daterange",
|
|
347
|
-
"start-placeholder":
|
|
348
|
-
"end-placeholder":
|
|
347
|
+
"start-placeholder": r(b)("act.startTime"),
|
|
348
|
+
"end-placeholder": r(b)("act.endTime"),
|
|
349
349
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
350
350
|
ref_for: !0
|
|
351
|
-
},
|
|
351
|
+
}, r(h)(e), {
|
|
352
352
|
disabled: e.isFormDisabled
|
|
353
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(
|
|
353
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(d, F({
|
|
354
354
|
key: 9,
|
|
355
355
|
modelValue: t.value[e.fieldKey],
|
|
356
356
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
357
357
|
options: e.dataList,
|
|
358
|
-
props:
|
|
358
|
+
props: r(Ue),
|
|
359
359
|
clearable: "",
|
|
360
360
|
filterable: "",
|
|
361
|
-
placeholder: `${
|
|
361
|
+
placeholder: `${r(b)("act.selectPlaceholder")}${e.fieldName}`,
|
|
362
362
|
ref_for: !0
|
|
363
|
-
},
|
|
363
|
+
}, r(h)(e), {
|
|
364
364
|
disabled: e.isFormDisabled
|
|
365
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(
|
|
365
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(C, {
|
|
366
366
|
key: 10,
|
|
367
367
|
modelValue: t.value[e.fieldKey],
|
|
368
368
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
369
369
|
"active-value": !0,
|
|
370
370
|
"inactive-value": !1
|
|
371
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(
|
|
371
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(r(ne), F({
|
|
372
372
|
key: 11,
|
|
373
373
|
class: "form-upload",
|
|
374
374
|
modelValue: t.value[e.fieldKey],
|
|
375
375
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
376
|
-
request:
|
|
376
|
+
request: r(M),
|
|
377
377
|
ref_for: !0
|
|
378
|
-
},
|
|
378
|
+
}, r(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(r(ue), F({
|
|
379
379
|
key: 12,
|
|
380
380
|
modelValue: t.value[e.fieldKey],
|
|
381
381
|
"onUpdate:modelValue": (s) => t.value[e.fieldKey] = s,
|
|
382
382
|
disabled: e.isFormDisabled,
|
|
383
|
-
placeholder: `${
|
|
383
|
+
placeholder: `${r(b)("act.inputPlaceholder")}${e.fieldName}`,
|
|
384
384
|
ref_for: !0
|
|
385
|
-
},
|
|
385
|
+
}, r(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : se("", !0)
|
|
386
386
|
]),
|
|
387
387
|
_: 2
|
|
388
388
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -395,7 +395,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
}, 8, ["model", "label-width", "label-position"])), [
|
|
398
|
-
[
|
|
398
|
+
[Fe, S.value]
|
|
399
399
|
])
|
|
400
400
|
];
|
|
401
401
|
}),
|
|
@@ -403,7 +403,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
403
403
|
}, 8, ["model-value", "title", "width"]);
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-
|
|
406
|
+
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-c6e7e23b"]]);
|
|
407
407
|
export {
|
|
408
408
|
je as default
|
|
409
409
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as re, inject as C, ref as U, watch as ne, resolveComponent as f, resolveDirective as se, unref as t, openBlock as s, createElementBlock as V, createVNode as ue, normalizeStyle as de, withCtx as g, Fragment as q, renderList as L, createBlock as d, mergeProps as _, withKeys as I, withModifiers as B, createCommentVNode as h, resolveDynamicComponent as pe, createElementVNode as ie, toDisplayString as S, createTextVNode as M, withDirectives as ce } from "vue";
|
|
2
|
-
import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-
|
|
2
|
+
import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-2693b9c5.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -14,7 +14,7 @@ const _e = {
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["reset", "search"],
|
|
16
16
|
setup(j, { emit: H }) {
|
|
17
|
-
const K = re(() => import("./index-
|
|
17
|
+
const K = re(() => import("./index-2693b9c5.js").then((r) => r.t)), { t: p } = ye(), W = C("request"), O = C("globalProps"), G = C("loadComponents"), y = C("getFieldUiProps"), x = C("formatDataType"), z = C("disposeDate"), J = C("getDefaultQueryValues"), A = H, m = j, X = U({});
|
|
18
18
|
let b = U([]), Y = U([]), T = U(!0);
|
|
19
19
|
const Z = (r) => m.data.tableConfig.isExpandQuery && T.value ? m.data.tableConfig.tableQueryRowWidth > r + 1 : !0, ee = async (r) => {
|
|
20
20
|
b.value = await Promise.all(
|