act-plus 1.1.67 → 1.1.68
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 +16 -16
- package/lib/{dialogAddField-2bf7099b.js → dialogAddField-8464a455.js} +2 -2
- package/lib/{dialogConfigBtn-e8996e6f.js → dialogConfigBtn-6f3155f8.js} +2 -2
- package/lib/{dialogSiteComponentsParams-986817f9.js → dialogSiteComponentsParams-640c349d.js} +1 -1
- package/lib/{index-b070e0e7.js → index-3895516f.js} +1 -1
- package/lib/{index-c3453d46.js → index-534e552d.js} +1 -1
- package/lib/{index-cdc84eef.js → index-623a9365.js} +1 -1
- package/lib/{index-3f781ab3.js → index-62706177.js} +2 -2
- package/lib/{index-25a3ec3c.js → index-6a5a9e19.js} +1 -1
- package/lib/{index-45ae7ac4.js → index-c7a56aee.js} +1 -1
- package/lib/{index-15f94311.js → index-dc66e108.js} +1 -1
- package/lib/{index-edf5e609.js → index-dd68417c.js} +1 -1
- package/lib/{index-d78ddced.js → index-e8f5d9bc.js} +126 -126
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -219,11 +219,11 @@ function io(e, t = {}) {
|
|
|
219
219
|
function y(c, d, L, ...K) {
|
|
220
220
|
const pe = p();
|
|
221
221
|
if (d.column += L, d.offset += L, C) {
|
|
222
|
-
const ge = n ? Tn(pe.startLoc, d) : null,
|
|
222
|
+
const ge = n ? Tn(pe.startLoc, d) : null, le = Mt(c, ge, {
|
|
223
223
|
domain: so,
|
|
224
224
|
args: K
|
|
225
225
|
});
|
|
226
|
-
C(
|
|
226
|
+
C(le);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
function _(c, d, L) {
|
|
@@ -328,8 +328,8 @@ function io(e, t = {}) {
|
|
|
328
328
|
}
|
|
329
329
|
function Y(c, d = !0) {
|
|
330
330
|
const L = (pe = !1, ge = "") => {
|
|
331
|
-
const
|
|
332
|
-
return
|
|
331
|
+
const le = c.currentPeek();
|
|
332
|
+
return le === "{" || le === "@" || !le ? pe : le === "|" ? !(ge === tt || ge === ve) : le === tt ? (c.peek(), L(!0, tt)) : le === ve ? (c.peek(), L(!0, ve)) : !0;
|
|
333
333
|
}, K = L();
|
|
334
334
|
return d && c.resetPeek(), K;
|
|
335
335
|
}
|
|
@@ -503,7 +503,7 @@ function io(e, t = {}) {
|
|
|
503
503
|
case "@":
|
|
504
504
|
return d.braceNest > 0 && y($.UNTERMINATED_CLOSING_BRACE, o(), 0), L = et(c, d) || S(d), d.braceNest = 0, L;
|
|
505
505
|
default: {
|
|
506
|
-
let pe = !0, ge = !0,
|
|
506
|
+
let pe = !0, ge = !0, le = !0;
|
|
507
507
|
if (j(c))
|
|
508
508
|
return d.braceNest > 0 && y($.UNTERMINATED_CLOSING_BRACE, o(), 0), L = _(d, 1, ze(c)), d.braceNest = 0, d.inLinked = !1, L;
|
|
509
509
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
@@ -512,9 +512,9 @@ function io(e, t = {}) {
|
|
|
512
512
|
return L = _(d, 4, bt(c)), D(c), L;
|
|
513
513
|
if (ge = g(c, d))
|
|
514
514
|
return L = _(d, 5, ot(c)), D(c), L;
|
|
515
|
-
if (
|
|
515
|
+
if (le = b(c, d))
|
|
516
516
|
return L = _(d, 6, de(c)), D(c), L;
|
|
517
|
-
if (!pe && !ge && !
|
|
517
|
+
if (!pe && !ge && !le)
|
|
518
518
|
return L = _(d, 12, Qt(c)), y($.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), D(c), L;
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
@@ -2551,7 +2551,7 @@ function Gn(e = {}) {
|
|
|
2551
2551
|
}), lt(t.fallbackLocale, (T) => {
|
|
2552
2552
|
r && (i.value = T, E.fallbackLocale = T, Ht(E, s.value, i.value));
|
|
2553
2553
|
}));
|
|
2554
|
-
const
|
|
2554
|
+
const le = {
|
|
2555
2555
|
id: Ia,
|
|
2556
2556
|
locale: j,
|
|
2557
2557
|
fallbackLocale: Y,
|
|
@@ -2620,11 +2620,11 @@ function Gn(e = {}) {
|
|
|
2620
2620
|
setMissingHandler: xe,
|
|
2621
2621
|
[rl]: rt
|
|
2622
2622
|
};
|
|
2623
|
-
return
|
|
2623
|
+
return le.datetimeFormats = be, le.numberFormats = ie, le.rt = Ye, le.te = st, le.tm = ht, le.d = bt, le.n = ot, le.getDateTimeFormat = c, le.setDateTimeFormat = d, le.mergeDateTimeFormat = L, le.getNumberFormat = K, le.setNumberFormat = pe, le.mergeNumberFormat = ge, le[sl] = n, le[On] = Ot, le[vn] = Qt, le[Dn] = Vt, process.env.NODE_ENV !== "production" && (le[kt] = (T) => {
|
|
2624
2624
|
E.__v_emitter = T;
|
|
2625
|
-
},
|
|
2625
|
+
}, le[$t] = () => {
|
|
2626
2626
|
E.__v_emitter = void 0;
|
|
2627
|
-
}),
|
|
2627
|
+
}), le;
|
|
2628
2628
|
}
|
|
2629
2629
|
const ul = "vue-i18n: composer properties", Cn = {
|
|
2630
2630
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
@@ -3793,18 +3793,18 @@ const Js = {
|
|
|
3793
3793
|
emits: ["onClickRow", "changeExpansionRow", "refresh", "load", "operate"],
|
|
3794
3794
|
setup(e, { expose: t, emit: n }) {
|
|
3795
3795
|
const a = nt({
|
|
3796
|
-
loader: () => import("./index-
|
|
3796
|
+
loader: () => import("./index-dd68417c.js"),
|
|
3797
3797
|
loadingComponent: on,
|
|
3798
3798
|
delay: 20
|
|
3799
3799
|
}), l = nt({
|
|
3800
|
-
loader: () => import("./index-
|
|
3800
|
+
loader: () => import("./index-3895516f.js"),
|
|
3801
3801
|
loadingComponent: on,
|
|
3802
3802
|
delay: 20
|
|
3803
3803
|
}), o = nt({
|
|
3804
|
-
loader: () => import("./index-
|
|
3804
|
+
loader: () => import("./index-dc66e108.js"),
|
|
3805
3805
|
loadingComponent: on,
|
|
3806
3806
|
delay: 20
|
|
3807
|
-
}), r = nt(() => import("./index-
|
|
3807
|
+
}), r = nt(() => import("./index-62706177.js")), s = nt(() => import("./index-534e552d.js")), { t: i } = An(), p = Ue("actModules"), C = Ue("apiPrefix"), y = Ue("request"), _ = Ue("themeColor"), S = dn(), v = Ha(), k = n, D = e, m = () => ({
|
|
3808
3808
|
pageLoading: !1,
|
|
3809
3809
|
tableLoading: !1,
|
|
3810
3810
|
tableTotal: 0,
|
|
@@ -3827,9 +3827,9 @@ const Js = {
|
|
|
3827
3827
|
}, Ye = () => {
|
|
3828
3828
|
Vl(() => {
|
|
3829
3829
|
setTimeout(() => {
|
|
3830
|
-
var x, F, H, V,
|
|
3831
|
-
const u = ((F = (x = be.value) == null ? void 0 : x.$el) == null ? void 0 : F.offsetHeight) || 0, h = ((V = (H = ie.value) == null ? void 0 : H.$el) == null ? void 0 : V.offsetHeight) || 0, B = ((
|
|
3832
|
-
J.value = D.maxHeight > 0 ? D.maxHeight : (he = b == null ? void 0 : b.tableConfig) != null && he.isPagination ?
|
|
3830
|
+
var x, F, H, V, Q, te, he;
|
|
3831
|
+
const u = ((F = (x = be.value) == null ? void 0 : x.$el) == null ? void 0 : F.offsetHeight) || 0, h = ((V = (H = ie.value) == null ? void 0 : H.$el) == null ? void 0 : V.offsetHeight) || 0, B = ((te = (Q = Me.value) == null ? void 0 : Q.$el) == null ? void 0 : te.offsetHeight) || 0, W = u - h - B - 6;
|
|
3832
|
+
J.value = D.maxHeight > 0 ? D.maxHeight : (he = b == null ? void 0 : b.tableConfig) != null && he.isPagination ? W - 48 : W;
|
|
3833
3833
|
}, 500);
|
|
3834
3834
|
});
|
|
3835
3835
|
}, bt = () => [...it(R)], ot = (u) => {
|
|
@@ -3845,8 +3845,8 @@ const Js = {
|
|
|
3845
3845
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "yearAgo")
|
|
3846
3846
|
return Qe().subtract(1, "year").format(B);
|
|
3847
3847
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue.includes("&")) {
|
|
3848
|
-
const
|
|
3849
|
-
return [Qe(
|
|
3848
|
+
const W = u.tableQueryDefaultValue.split("&");
|
|
3849
|
+
return [Qe(W[0]).subtract(6, "month").format(B), Qe(W[1]).format(B)];
|
|
3850
3850
|
}
|
|
3851
3851
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "yearAgo")
|
|
3852
3852
|
return [Qe().subtract(1, "year").format(B), Qe().format(B)];
|
|
@@ -3855,13 +3855,13 @@ const Js = {
|
|
|
3855
3855
|
}, Ot = (u, h) => {
|
|
3856
3856
|
if (!(h.row && Object.keys(h.row).length))
|
|
3857
3857
|
return;
|
|
3858
|
-
const
|
|
3858
|
+
const W = (h.row[u.fieldKey] ?? "").split(";"), x = W && W.length ? W[0] : "", F = x.substring(x.lastIndexOf(".") + 1);
|
|
3859
3859
|
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(F);
|
|
3860
3860
|
}, Vt = (u, h) => {
|
|
3861
3861
|
if (!(h.row && Object.keys(h.row).length))
|
|
3862
3862
|
return;
|
|
3863
|
-
const
|
|
3864
|
-
return
|
|
3863
|
+
const W = (h.row[u.fieldKey] ?? "").split(";");
|
|
3864
|
+
return W && W.length ? W[0] : "";
|
|
3865
3865
|
}, Qt = (u, h) => {
|
|
3866
3866
|
if (!(h.row && Object.keys(h.row).length))
|
|
3867
3867
|
return;
|
|
@@ -3877,8 +3877,8 @@ const Js = {
|
|
|
3877
3877
|
b.buttons = await Promise.all(
|
|
3878
3878
|
b.buttons.map(async (u) => {
|
|
3879
3879
|
if (u.isCustomBtn && u.customType == "component") {
|
|
3880
|
-
const { customComponentUrl: h, customComponentName: B } = u,
|
|
3881
|
-
u[B] =
|
|
3880
|
+
const { customComponentUrl: h, customComponentName: B } = u, W = await ze(h);
|
|
3881
|
+
u[B] = W;
|
|
3882
3882
|
}
|
|
3883
3883
|
return u;
|
|
3884
3884
|
})
|
|
@@ -3887,8 +3887,8 @@ const Js = {
|
|
|
3887
3887
|
const u = b.fields.filter((h) => (h.formCustomComponentes ?? []).some((B) => B.permissionCode == "tableShow" && B.isFieldCustom));
|
|
3888
3888
|
Y.value = await Promise.all(
|
|
3889
3889
|
u.map(async (h) => {
|
|
3890
|
-
const B = h.formCustomComponentes.find((H) => H.permissionCode == "tableShow"), { customComponentUrl:
|
|
3891
|
-
return h.customTableHeaderName = x, h.customTableHeaderUrl =
|
|
3890
|
+
const B = h.formCustomComponentes.find((H) => H.permissionCode == "tableShow"), { customComponentUrl: W, customComponentName: x } = B, F = await ze(W);
|
|
3891
|
+
return h.customTableHeaderName = x, h.customTableHeaderUrl = W, h[`customTableHeaderInstance_${x}`] = F, h.headerItem = {
|
|
3892
3892
|
label: h.fieldName,
|
|
3893
3893
|
prop: h.fieldKey,
|
|
3894
3894
|
align: h.tableCellAlignType,
|
|
@@ -3902,7 +3902,7 @@ const Js = {
|
|
|
3902
3902
|
}, ke = (u, h) => {
|
|
3903
3903
|
switch (u) {
|
|
3904
3904
|
case "array":
|
|
3905
|
-
return typeof h == "string" ? h.toString().split().sort((B,
|
|
3905
|
+
return typeof h == "string" ? h.toString().split().sort((B, W) => B.sort - W.sort) : [h];
|
|
3906
3906
|
case "number":
|
|
3907
3907
|
return Number(h);
|
|
3908
3908
|
case "boolean":
|
|
@@ -3912,8 +3912,8 @@ const Js = {
|
|
|
3912
3912
|
}
|
|
3913
3913
|
}, c = (u, h) => h[u.fieldKey] ? h[u.fieldKey].toString().includes("T") ? Qe(h[u.fieldKey]).format("YYYY-MM-DD HH:mm:ss") : h[u.fieldKey] : "";
|
|
3914
3914
|
function d(u, h = {}) {
|
|
3915
|
-
return u.replace(/\{([^}]+)\}/g, (B,
|
|
3916
|
-
const x =
|
|
3915
|
+
return u.replace(/\{([^}]+)\}/g, (B, W) => {
|
|
3916
|
+
const x = W.trim().split(".");
|
|
3917
3917
|
let F = h;
|
|
3918
3918
|
for (const H of x) {
|
|
3919
3919
|
if (!F || typeof F != "object")
|
|
@@ -3944,18 +3944,18 @@ const Js = {
|
|
|
3944
3944
|
if (!u.matchFields.length)
|
|
3945
3945
|
return !0;
|
|
3946
3946
|
const B = (H) => H.matchType == "default" ? h[H.matchFieldName] : D.matchData[H.matchType][H.matchFieldName];
|
|
3947
|
-
let x = u.matchFields.reduce((H, V,
|
|
3948
|
-
const
|
|
3947
|
+
let x = u.matchFields.reduce((H, V, Q) => {
|
|
3948
|
+
const te = B(V), he = K(
|
|
3949
3949
|
V.matchCondition,
|
|
3950
|
-
|
|
3950
|
+
te,
|
|
3951
3951
|
V.fieldValue == "" ? null : V.fieldValue == "true" || V.fieldValue == "false" ? rt(V.fieldValue) : V.fieldValue
|
|
3952
3952
|
);
|
|
3953
|
-
return H += he,
|
|
3954
|
-
}, "").split("||"), F = x.reduce((H, V,
|
|
3953
|
+
return H += he, Q !== u.matchFields.length - 1 && (H += V.spliceCondition || "&&"), H;
|
|
3954
|
+
}, "").split("||"), F = x.reduce((H, V, Q) => (H += `(${V})`, Q < x.length - 1 && (H += "||"), H), "");
|
|
3955
3955
|
return new Function(`return ${F}`)();
|
|
3956
|
-
}, ge = (u, h) => Object.keys(h).length ? g.value.some((B) => B.unique == u.permissionCode) && pe(u, h) : !1,
|
|
3956
|
+
}, ge = (u, h) => Object.keys(h).length ? g.value.some((B) => B.unique == u.permissionCode) && pe(u, h) : !1, le = (u, h) => {
|
|
3957
3957
|
try {
|
|
3958
|
-
return u.length ? u.reduce((B,
|
|
3958
|
+
return u.length ? u.reduce((B, W) => (B[W.submitFieldName] = ke(W.submitFieldType, W.matchType === "default" || !h ? W.matchFieldName : h[W.matchFieldName]), B), {}) : {};
|
|
3959
3959
|
} catch (B) {
|
|
3960
3960
|
console.error(B);
|
|
3961
3961
|
}
|
|
@@ -3969,33 +3969,33 @@ const Js = {
|
|
|
3969
3969
|
} catch (h) {
|
|
3970
3970
|
f.pageLoading = !1, console.error(h);
|
|
3971
3971
|
}
|
|
3972
|
-
}, w = async (u = [], h = {}, B = !0,
|
|
3972
|
+
}, w = async (u = [], h = {}, B = !0, W = !1) => {
|
|
3973
3973
|
try {
|
|
3974
3974
|
const x = u.filter(
|
|
3975
|
-
(V) => ["select", "multipleSelect", "selectIcon", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "provinceCascade"].includes(V.fieldType) && (!Reflect.has(V, "dataList") || !V.dataList.length ||
|
|
3975
|
+
(V) => ["select", "multipleSelect", "selectIcon", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "provinceCascade"].includes(V.fieldType) && (!Reflect.has(V, "dataList") || !V.dataList.length || W)
|
|
3976
3976
|
), H = (await Promise.allSettled(
|
|
3977
3977
|
x.map(async (V) => {
|
|
3978
|
-
const
|
|
3979
|
-
field:
|
|
3980
|
-
operate:
|
|
3981
|
-
value: ke(
|
|
3978
|
+
const Q = V.postRequestParams.filter((ae) => ae.submitType === "default").reduce((ae, Te) => (ae[Te.submitName] = ke(Te.paramsType, Te.submitValue), ae), {}), te = V.postRequestParams.filter((ae) => ae.submitType === "match").reduce((ae, Te) => (ae[Te.submitName] = ke(Te.paramsType, h[Te.submitValue][Te.submitName]), ae), {}), he = V.postRequestParams.filter((ae) => ae.submitType === "dynamic").map((ae) => ({
|
|
3979
|
+
field: ae.submitName,
|
|
3980
|
+
operate: ae.submitMatchType,
|
|
3981
|
+
value: ke(ae.paramsType, ae.submitValue)
|
|
3982
3982
|
}));
|
|
3983
3983
|
let Ve = {};
|
|
3984
|
-
Object.keys(
|
|
3985
|
-
const { data:
|
|
3984
|
+
Object.keys(Q).length && (Ve = { ...Ve, ...Q }), Object.keys(te).length && (Ve = { ...Ve, ...te }), he.length && (Ve.dynamicFilters = he);
|
|
3985
|
+
const { data: ne } = await y({
|
|
3986
3986
|
url: V.fieldRequestUrl,
|
|
3987
3987
|
method: V.fieldRequestType || "GET",
|
|
3988
3988
|
data: Ve
|
|
3989
3989
|
});
|
|
3990
3990
|
return Promise.resolve({
|
|
3991
3991
|
...V,
|
|
3992
|
-
dataList:
|
|
3992
|
+
dataList: ne || []
|
|
3993
3993
|
});
|
|
3994
3994
|
})
|
|
3995
3995
|
)).filter((V) => V.status === "fulfilled" && Reflect.has(V, "value")).map((V) => V.value);
|
|
3996
3996
|
return B && b.fields.forEach((V) => {
|
|
3997
|
-
const
|
|
3998
|
-
|
|
3997
|
+
const Q = H.find((te) => V.fieldName == te.fieldName && V.fieldKey == te.fieldKey);
|
|
3998
|
+
Q && (V.dataList = (Q == null ? void 0 : Q.dataList) ?? []);
|
|
3999
3999
|
}), H;
|
|
4000
4000
|
} catch (x) {
|
|
4001
4001
|
console.error(x);
|
|
@@ -4003,7 +4003,7 @@ const Js = {
|
|
|
4003
4003
|
}, re = async (u) => {
|
|
4004
4004
|
try {
|
|
4005
4005
|
const h = (u || []).filter((F) => F.useScenes.some((H) => ["tableShow"].includes(H))).sort((F, H) => F.sort - H.sort), B = ["editor", "upload", "date"];
|
|
4006
|
-
let
|
|
4006
|
+
let W = h.map((F) => {
|
|
4007
4007
|
const H = F.formCustomComponentes.some((V) => V.permissionCode == "tableShow" && V.isFieldCustom);
|
|
4008
4008
|
return {
|
|
4009
4009
|
label: F.fieldName,
|
|
@@ -4017,11 +4017,11 @@ const Js = {
|
|
|
4017
4017
|
isCustomTableHeader: H
|
|
4018
4018
|
};
|
|
4019
4019
|
});
|
|
4020
|
-
b.tableConfig.isSerialNumber &&
|
|
4020
|
+
b.tableConfig.isSerialNumber && W.unshift({ prop: "serialNumber", width: 80 }), b.tableConfig.isCheckRow && W.unshift({ prop: "checkbox", width: 50 });
|
|
4021
4021
|
const x = M.value.filter((F) => g.value.some((H) => H.unique == F.permissionCode));
|
|
4022
|
-
b.tableConfig.isOperateRow && x.length &&
|
|
4022
|
+
b.tableConfig.isOperateRow && x.length && W.push({ label: i("act.operate"), prop: "operate", width: b.tableConfig.tableOperateCellWidth, render: !0, fixed: "right" }), j.value = h.filter(
|
|
4023
4023
|
(F) => !!F.fieldRequestUrl && F.useScenes.includes("tableShow") || F.tableCellContentType == "link" || B.includes(F.fieldType)
|
|
4024
|
-
), E.value =
|
|
4024
|
+
), E.value = W;
|
|
4025
4025
|
} catch (h) {
|
|
4026
4026
|
console.error(h);
|
|
4027
4027
|
}
|
|
@@ -4029,53 +4029,53 @@ const Js = {
|
|
|
4029
4029
|
M.value = (b.buttons || []).filter((u) => u.permissionCode !== 1001 && u.btnPostion.includes("table")).sort((u, h) => u.sort - h.sort).map((u) => (u.loading = !1, u.btnAlias && (u.btnName = u.btnAlias), u));
|
|
4030
4030
|
}, je = () => b.fields.filter((u) => u.useScenes.includes("tableSearch")).map((u) => (["date", "dateRange"].includes(u.fieldType) ? u.queryValue = u.tableQueryDefaultValue ? u.tableQueryDefaultValue : St(u) : u.queryValue = (u == null ? void 0 : u.tableQueryDefaultValue) || void 0, D.defaultParams.some((h) => {
|
|
4031
4031
|
h.field == u.fieldKey && h.operate === u.tableQueryCondition && (u.queryValue = h.value);
|
|
4032
|
-
}), u)), it = (u, h = "queryValue") => u ? (u || []).filter((
|
|
4032
|
+
}), u)), it = (u, h = "queryValue") => u ? (u || []).filter((W) => !!W[h]).reduce((W, x) => {
|
|
4033
4033
|
var H;
|
|
4034
4034
|
const F = st(x);
|
|
4035
4035
|
if (x.fieldType === "date" && F["value-format"] !== "YYYY") {
|
|
4036
|
-
const V = F != null && F.dayJsType ? Ks[(H = x.fieldUiProps) == null ? void 0 : H.dayJsType] : "day",
|
|
4037
|
-
|
|
4038
|
-
...
|
|
4039
|
-
{ field: x.fieldKey, operate: "GreaterThanOrEqual", value: Qe(x[h]).startOf(V).format(
|
|
4040
|
-
{ field: x.fieldKey, operate: "LessThanOrEqual", value: Qe(x[h]).endOf(V).format(
|
|
4036
|
+
const V = F != null && F.dayJsType ? Ks[(H = x.fieldUiProps) == null ? void 0 : H.dayJsType] : "day", Q = F["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
4037
|
+
W = [
|
|
4038
|
+
...W,
|
|
4039
|
+
{ field: x.fieldKey, operate: "GreaterThanOrEqual", value: Qe(x[h]).startOf(V).format(Q) },
|
|
4040
|
+
{ field: x.fieldKey, operate: "LessThanOrEqual", value: Qe(x[h]).endOf(V).format(Q) }
|
|
4041
4041
|
];
|
|
4042
4042
|
} else if (x.fieldType === "dateRange" && x[h].length)
|
|
4043
4043
|
if (x.fieldKey.includes("&")) {
|
|
4044
4044
|
const V = x.fieldKey.split("&") || [];
|
|
4045
|
-
|
|
4046
|
-
...
|
|
4045
|
+
W = [
|
|
4046
|
+
...W,
|
|
4047
4047
|
{ field: V[0], operate: "GreaterThanOrEqual", value: x.queryValue[0] },
|
|
4048
4048
|
{ field: V[1], operate: "LessThanOrEqual", value: x.queryValue[1] }
|
|
4049
4049
|
];
|
|
4050
4050
|
} else
|
|
4051
|
-
|
|
4052
|
-
...
|
|
4051
|
+
W = [
|
|
4052
|
+
...W,
|
|
4053
4053
|
{ field: x.fieldKey, operate: "GreaterThanOrEqual", value: x.queryValue[0] },
|
|
4054
4054
|
{ field: x.fieldKey, operate: "LessThanOrEqual", value: x.queryValue[1] }
|
|
4055
4055
|
];
|
|
4056
4056
|
else if (["provinceCascade"].includes(x.fieldType) && x[h].length) {
|
|
4057
|
-
const V = (x.fieldKey.split("&") || []).map((
|
|
4058
|
-
|
|
4057
|
+
const V = (x.fieldKey.split("&") || []).map((Q, te) => ({ field: Q, operate: "Equal", value: x.queryValue[te] }));
|
|
4058
|
+
W = [...W, ...V];
|
|
4059
4059
|
} else
|
|
4060
|
-
return Array.isArray(x[h]) && !x[h].length ? [...
|
|
4061
|
-
...
|
|
4060
|
+
return Array.isArray(x[h]) && !x[h].length ? [...W] : [
|
|
4061
|
+
...W,
|
|
4062
4062
|
{
|
|
4063
4063
|
field: x.fieldKey,
|
|
4064
4064
|
operate: x.tableQueryCondition,
|
|
4065
4065
|
value: x.tableQueryCondition === "In" && x[h] && typeof x[h] == "string" ? x[h].split(";") : x[h] == "true" || x[h] == "false" ? rt(x[h]) : x[h]
|
|
4066
4066
|
}
|
|
4067
4067
|
];
|
|
4068
|
-
return
|
|
4068
|
+
return W;
|
|
4069
4069
|
}, []) : [], ct = (u, h) => {
|
|
4070
4070
|
if (!u.dataList || !Reflect.has(h, u.fieldKey))
|
|
4071
4071
|
return "";
|
|
4072
4072
|
const B = h[u.fieldKey];
|
|
4073
4073
|
if (!B && B !== 0 && B !== !1)
|
|
4074
4074
|
return "";
|
|
4075
|
-
const
|
|
4075
|
+
const W = st(u), x = Object.assign({ key: "key", value: "value" }, W.props || {});
|
|
4076
4076
|
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (x.key = x.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(u.fieldType) ? (u.dataList || []).filter((F) => {
|
|
4077
4077
|
const H = u.fieldType === "selectIcon" ? `btn-${F[x.value]}` : F[x.value], V = H == "true" || H == "false" ? rt(H) : H;
|
|
4078
|
-
return Array.isArray(B) ? B.some((
|
|
4078
|
+
return Array.isArray(B) ? B.some((Q) => Q == H == Q) : typeof B == "string" ? B.split(";").includes(V) : B == V;
|
|
4079
4079
|
}).map((F) => F[x.key]).join(";") : B;
|
|
4080
4080
|
}, Ce = async (u = []) => {
|
|
4081
4081
|
try {
|
|
@@ -4086,14 +4086,14 @@ const Js = {
|
|
|
4086
4086
|
field: F.submitFieldName,
|
|
4087
4087
|
operate: F.matchValue,
|
|
4088
4088
|
value: ke(F.submitFieldType, F.defaultValue)
|
|
4089
|
-
})),
|
|
4090
|
-
console.log("dynamicFilters",
|
|
4089
|
+
})), W = [...h, ...B, ...it(u)];
|
|
4090
|
+
console.log("dynamicFilters", W), b.tableConfig.isPagination || (f.tableQuery.pageSize = 9999);
|
|
4091
4091
|
const { data: x } = await y({
|
|
4092
4092
|
url: b.tableConfig.dataUrl,
|
|
4093
4093
|
method: "POST",
|
|
4094
4094
|
data: {
|
|
4095
4095
|
...f.tableQuery,
|
|
4096
|
-
dynamicFilters:
|
|
4096
|
+
dynamicFilters: W
|
|
4097
4097
|
}
|
|
4098
4098
|
});
|
|
4099
4099
|
f.tableTotal = x.totalCount || 0, P.value = x.datas || [], f.tableLoading = !1;
|
|
@@ -4127,7 +4127,7 @@ const Js = {
|
|
|
4127
4127
|
}, Dl = (u) => {
|
|
4128
4128
|
k("operate", u), Ce(R);
|
|
4129
4129
|
}, bn = (u, h) => {
|
|
4130
|
-
const { exportFile: B, importFile:
|
|
4130
|
+
const { exportFile: B, importFile: W } = Ys();
|
|
4131
4131
|
if (u.isCustomBtn) {
|
|
4132
4132
|
if (u.customType == "component" && !Reflect.has(u, [u.customComponentName])) {
|
|
4133
4133
|
We({
|
|
@@ -4158,25 +4158,25 @@ const Js = {
|
|
|
4158
4158
|
u.opeateLoading = !0;
|
|
4159
4159
|
const F = [...D.defaultParams, ...it(R)];
|
|
4160
4160
|
console.log(F);
|
|
4161
|
-
const H = (u.submitFields || []).filter((
|
|
4161
|
+
const H = (u.submitFields || []).filter((Q) => Q.matchType == "match").reduce((Q, te) => (Q[te.submitFieldName] = ke(te.submitFieldType, h[te.matchFieldName]), Q), {}), V = (u.submitFields || []).filter((Q) => Q.matchType == "default").reduce((Q, te) => (Q[te.submitFieldName] = f.tableSelection.reduce((he, Ve) => (te.submitFieldType === "array" ? he = [...he, ...ke(te.submitFieldType, Ve[te.matchFieldName])] : he = [...he, ke(te.submitFieldType, Ve[te.matchFieldName])], he), []), te.submitFieldType === "string" && (Q[te.submitFieldName] = te.matchFieldName.toString()), te.submitFieldType === "number" && (Q[te.submitFieldName] = Number(te.matchFieldName)), Q), {});
|
|
4162
4162
|
y({
|
|
4163
4163
|
url: L(u.requestUrl),
|
|
4164
4164
|
method: "post",
|
|
4165
4165
|
data: { ...H, ...V, dynamicFilters: F },
|
|
4166
4166
|
responseType: "blob"
|
|
4167
|
-
}).then((
|
|
4168
|
-
B(
|
|
4169
|
-
}).catch((
|
|
4167
|
+
}).then((Q) => {
|
|
4168
|
+
Q instanceof Blob ? B(Q) : downloadFile(y, Q.data), k("operate", u), u.opeateLoading = !1;
|
|
4169
|
+
}).catch((Q) => {
|
|
4170
4170
|
u.opeateLoading = !1;
|
|
4171
4171
|
});
|
|
4172
4172
|
return;
|
|
4173
4173
|
}
|
|
4174
4174
|
if (u.submitWay == "import") {
|
|
4175
|
-
|
|
4175
|
+
W({}, (F) => {
|
|
4176
4176
|
u.opeateLoading = !0;
|
|
4177
4177
|
const H = new FormData();
|
|
4178
|
-
return (u.submitFields || []).filter((
|
|
4179
|
-
H.append(
|
|
4178
|
+
return (u.submitFields || []).filter((Q) => Q.matchType == "default").forEach((Q) => {
|
|
4179
|
+
H.append(Q.submitFieldName, ke(Q.submitFieldType, Q.matchFieldName));
|
|
4180
4180
|
}), H.append("file", F.target.files[0]), y({
|
|
4181
4181
|
url: L(u.requestUrl),
|
|
4182
4182
|
method: "post",
|
|
@@ -4184,8 +4184,8 @@ const Js = {
|
|
|
4184
4184
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4185
4185
|
},
|
|
4186
4186
|
data: H
|
|
4187
|
-
}).then((
|
|
4188
|
-
We({ title: i("act.tip"), message: `${
|
|
4187
|
+
}).then((Q) => {
|
|
4188
|
+
We({ title: i("act.tip"), message: `${Q.msg}`, type: "success", duration: 2500 }), k("operate", u), Ce(R), u.opeateLoading = !1;
|
|
4189
4189
|
}).catch(() => {
|
|
4190
4190
|
u.opeateLoading = !1;
|
|
4191
4191
|
});
|
|
@@ -4202,7 +4202,7 @@ const Js = {
|
|
|
4202
4202
|
return;
|
|
4203
4203
|
}
|
|
4204
4204
|
u.opeateLoading = !0;
|
|
4205
|
-
const F = (u.submitFields || []).filter((V) => V.matchType == "default").reduce((V,
|
|
4205
|
+
const F = (u.submitFields || []).filter((V) => V.matchType == "default").reduce((V, Q) => (V[Q.submitFieldName] = ke(Q.submitFieldType, Q.matchFieldName), V), {}), H = (u.submitFields || []).filter((V) => V.matchType == "match").reduce((V, Q) => (V[Q.submitFieldName] = f.tableSelection.reduce((te, he) => (Q.submitFieldType === "array" ? te = [...te, ...ke(Q.submitFieldType, he[Q.matchFieldName])] : te = [...te, ke(Q.submitFieldType, he[Q.matchFieldName])], te), []), Q.submitFieldType === "string" && (V[Q.submitFieldName] = V[Q.submitFieldName].join()), V), {});
|
|
4206
4206
|
zn.confirm(`${i("act.isExecuteOperate")}?`, i("act.tip"), {
|
|
4207
4207
|
confirmButtonText: i("act.enter"),
|
|
4208
4208
|
cancelButtonText: i("act.cancel"),
|
|
@@ -4230,7 +4230,7 @@ const Js = {
|
|
|
4230
4230
|
u.opeateLoading = !0, y({
|
|
4231
4231
|
url: L(u.requestUrl),
|
|
4232
4232
|
method: "post",
|
|
4233
|
-
data: { ...
|
|
4233
|
+
data: { ...le(u.submitFields, h) }
|
|
4234
4234
|
}).then((F) => {
|
|
4235
4235
|
u.opeateLoading = !1, We({ type: "success", title: i("act.tip"), message: `${u.btnName}${i("act.success")}`, duration: 2500 }), k("operate", u), Ce(R);
|
|
4236
4236
|
}).catch((F) => {
|
|
@@ -4274,8 +4274,8 @@ const Js = {
|
|
|
4274
4274
|
f.editorDialogTitle = `${i("act.preview")}${u.fieldName}`, f.dialogData = { ...h, editorContent: h[u.fieldKey] }, f.showEditorPreDialog = !0;
|
|
4275
4275
|
};
|
|
4276
4276
|
return t({ loadData: zt, getDynamicFiltersData: bt, getTableData: Ce, getTableSelection: Et, setTableSelection: ot }), (u, h) => {
|
|
4277
|
-
const B = G("el-table-column"),
|
|
4278
|
-
return wt((q(), ce(
|
|
4277
|
+
const B = G("el-table-column"), W = G("el-image"), x = G("el-link"), F = G("a-svg-icon"), H = G("el-button"), V = G("el-empty"), Q = G("el-card"), te = Gt("loading");
|
|
4278
|
+
return wt((q(), ce(Q, {
|
|
4279
4279
|
class: "act-module",
|
|
4280
4280
|
ref_key: "actModuleRef",
|
|
4281
4281
|
ref: be,
|
|
@@ -4304,9 +4304,9 @@ const Js = {
|
|
|
4304
4304
|
loading: N(f).tableLoading,
|
|
4305
4305
|
total: N(f).tableTotal,
|
|
4306
4306
|
tableQuery: N(f).tableQuery,
|
|
4307
|
-
"onUpdate:tableQuery": h[0] || (h[0] = (
|
|
4307
|
+
"onUpdate:tableQuery": h[0] || (h[0] = (ne) => N(f).tableQuery = ne),
|
|
4308
4308
|
selection: N(f).tableSelection,
|
|
4309
|
-
"onUpdate:selection": h[1] || (h[1] = (
|
|
4309
|
+
"onUpdate:selection": h[1] || (h[1] = (ne) => N(f).tableSelection = ne),
|
|
4310
4310
|
headers: N(E),
|
|
4311
4311
|
data: N(P),
|
|
4312
4312
|
showPagination: (Ve = (he = N(b)) == null ? void 0 : he.tableConfig) == null ? void 0 : Ve.isPagination,
|
|
@@ -4316,15 +4316,15 @@ const Js = {
|
|
|
4316
4316
|
onOnRowClick: Rl,
|
|
4317
4317
|
onChangeExpand: wl
|
|
4318
4318
|
}, xl({
|
|
4319
|
-
operate: O(({ scope:
|
|
4320
|
-
(q(!0), Ie(De, null, $e(N(M), (
|
|
4321
|
-
ge(
|
|
4322
|
-
|
|
4319
|
+
operate: O(({ scope: ne }) => [
|
|
4320
|
+
(q(!0), Ie(De, null, $e(N(M), (ae, Te) => (q(), Ie(De, { key: Te }, [
|
|
4321
|
+
ge(ae, ne.row) ? (q(), Ie(De, { key: 0 }, [
|
|
4322
|
+
ae.isCustomBtn && ae.customType == "component" ? (q(), ce(Xn(ae[ae.customComponentName]), {
|
|
4323
4323
|
key: 0,
|
|
4324
4324
|
ref_for: !0,
|
|
4325
|
-
ref: (en) => N(X)[`${
|
|
4326
|
-
buttonData:
|
|
4327
|
-
scope:
|
|
4325
|
+
ref: (en) => N(X)[`${ae.customComponentName}-${ae.permissionCode}`] = en,
|
|
4326
|
+
buttonData: ae,
|
|
4327
|
+
scope: ne,
|
|
4328
4328
|
onRefresh: Ce
|
|
4329
4329
|
}, {
|
|
4330
4330
|
default: O(() => [
|
|
@@ -4333,18 +4333,18 @@ const Js = {
|
|
|
4333
4333
|
type: "primary",
|
|
4334
4334
|
link: "",
|
|
4335
4335
|
size: "small",
|
|
4336
|
-
onClick: (en) => bn(
|
|
4336
|
+
onClick: (en) => bn(ae, ne.row)
|
|
4337
4337
|
}, {
|
|
4338
4338
|
default: O(() => [
|
|
4339
|
-
|
|
4339
|
+
ae.btnIcon ? (q(), ce(F, {
|
|
4340
4340
|
key: 0,
|
|
4341
4341
|
class: "mr2",
|
|
4342
|
-
name:
|
|
4342
|
+
name: ae.btnIcon,
|
|
4343
4343
|
width: "12",
|
|
4344
4344
|
height: "12",
|
|
4345
4345
|
color: N(_)
|
|
4346
4346
|
}, null, 8, ["name", "color"])) : dt("", !0),
|
|
4347
|
-
Oe(" " + qe(
|
|
4347
|
+
Oe(" " + qe(ae.btnName), 1)
|
|
4348
4348
|
]),
|
|
4349
4349
|
_: 2
|
|
4350
4350
|
}, 1032, ["onClick"])
|
|
@@ -4356,18 +4356,18 @@ const Js = {
|
|
|
4356
4356
|
type: "primary",
|
|
4357
4357
|
link: "",
|
|
4358
4358
|
size: "small",
|
|
4359
|
-
onClick: (en) => bn(
|
|
4359
|
+
onClick: (en) => bn(ae, ne.row)
|
|
4360
4360
|
}, {
|
|
4361
4361
|
default: O(() => [
|
|
4362
|
-
|
|
4362
|
+
ae.btnIcon ? (q(), ce(F, {
|
|
4363
4363
|
key: 0,
|
|
4364
4364
|
class: "mr2",
|
|
4365
|
-
name:
|
|
4365
|
+
name: ae.btnIcon,
|
|
4366
4366
|
width: "12",
|
|
4367
4367
|
height: "12",
|
|
4368
4368
|
color: N(_)
|
|
4369
4369
|
}, null, 8, ["name", "color"])) : dt("", !0),
|
|
4370
|
-
Oe(" " + qe(
|
|
4370
|
+
Oe(" " + qe(ae.btnName), 1)
|
|
4371
4371
|
]),
|
|
4372
4372
|
_: 2
|
|
4373
4373
|
}, 1032, ["onClick"]))
|
|
@@ -4376,62 +4376,62 @@ const Js = {
|
|
|
4376
4376
|
]),
|
|
4377
4377
|
_: 2
|
|
4378
4378
|
}, [
|
|
4379
|
-
$e(N(Y), (
|
|
4380
|
-
name:
|
|
4379
|
+
$e(N(Y), (ne, ae) => ({
|
|
4380
|
+
name: ne.fieldKey,
|
|
4381
4381
|
fn: O(() => [
|
|
4382
|
-
|
|
4382
|
+
ne[`customTableHeaderInstance_${ne.customTableHeaderName}`] ? (q(), ce(Xn(ne[`customTableHeaderInstance_${ne.customTableHeaderName}`]), {
|
|
4383
4383
|
key: 0,
|
|
4384
|
-
data:
|
|
4384
|
+
data: ne,
|
|
4385
4385
|
configData: N(b),
|
|
4386
4386
|
rowData: N(xe)
|
|
4387
4387
|
}, null, 8, ["data", "configData", "rowData"])) : (q(), ce(B, {
|
|
4388
4388
|
key: 1,
|
|
4389
|
-
label:
|
|
4389
|
+
label: ne.fieldName + N(i)("act.customTableHeader"),
|
|
4390
4390
|
width: "260"
|
|
4391
4391
|
}, null, 8, ["label"]))
|
|
4392
4392
|
])
|
|
4393
4393
|
})),
|
|
4394
|
-
$e(N(j), (
|
|
4395
|
-
name:
|
|
4394
|
+
$e(N(j), (ne, ae) => ({
|
|
4395
|
+
name: ne.fieldKey,
|
|
4396
4396
|
fn: O(({ scope: Te }) => [
|
|
4397
|
-
|
|
4397
|
+
ne.tableCellContentType == "link" ? (q(), Ie("span", Js, qe(Te.row[ne.fieldKey]), 1)) : ne.fieldType == "editor" ? (q(), Ie("span", {
|
|
4398
4398
|
key: 1,
|
|
4399
4399
|
class: "table-link",
|
|
4400
|
-
onClick: (en) => Fl(
|
|
4401
|
-
}, "点击预览", 8, qs)) :
|
|
4402
|
-
Ot(
|
|
4400
|
+
onClick: (en) => Fl(ne, Te.row)
|
|
4401
|
+
}, "点击预览", 8, qs)) : ne.fieldType == "upload" ? (q(), Ie(De, { key: 2 }, [
|
|
4402
|
+
Ot(ne, Te) ? (q(), ce(W, {
|
|
4403
4403
|
key: 0,
|
|
4404
4404
|
class: "file-image",
|
|
4405
4405
|
fit: "cover",
|
|
4406
|
-
"preview-src-list": Qt(
|
|
4406
|
+
"preview-src-list": Qt(ne, Te),
|
|
4407
4407
|
"preview-teleported": "",
|
|
4408
|
-
src: Vt(
|
|
4408
|
+
src: Vt(ne, Te)
|
|
4409
4409
|
}, {
|
|
4410
4410
|
error: O(() => [
|
|
4411
|
-
Fe("div", $s, qe(
|
|
4411
|
+
Fe("div", $s, qe(ne("act.noImage")), 1)
|
|
4412
4412
|
]),
|
|
4413
4413
|
_: 2
|
|
4414
4414
|
}, 1032, ["preview-src-list", "src"])) : (q(), ce(x, {
|
|
4415
4415
|
key: 1,
|
|
4416
4416
|
type: "primary"
|
|
4417
4417
|
}))
|
|
4418
|
-
], 64)) :
|
|
4419
|
-
Oe(qe(c(
|
|
4420
|
-
], 64)) : (q(), Ie("span", Xs, qe(ct(
|
|
4418
|
+
], 64)) : ne.fieldType == "date" ? (q(), Ie(De, { key: 3 }, [
|
|
4419
|
+
Oe(qe(c(ne, Te.row)), 1)
|
|
4420
|
+
], 64)) : (q(), Ie("span", Xs, qe(ct(ne, Te.row)), 1))
|
|
4421
4421
|
])
|
|
4422
4422
|
}))
|
|
4423
4423
|
]), 1032, ["loading", "total", "tableQuery", "selection", "headers", "data", "showPagination", "tableConfig", "maxHeight"])
|
|
4424
4424
|
], 64)) : dt("", !0),
|
|
4425
4425
|
I(N(r), {
|
|
4426
4426
|
visible: N(f).showFormDialog,
|
|
4427
|
-
"onUpdate:visible": h[2] || (h[2] = (
|
|
4427
|
+
"onUpdate:visible": h[2] || (h[2] = (ne) => N(f).showFormDialog = ne),
|
|
4428
4428
|
title: N(f).dialogTitle,
|
|
4429
4429
|
data: N(f).dialogData,
|
|
4430
4430
|
onRefresh: Dl
|
|
4431
4431
|
}, null, 8, ["visible", "title", "data"]),
|
|
4432
4432
|
I(N(s), {
|
|
4433
4433
|
visible: N(f).showEditorPreDialog,
|
|
4434
|
-
"onUpdate:visible": h[3] || (h[3] = (
|
|
4434
|
+
"onUpdate:visible": h[3] || (h[3] = (ne) => N(f).showEditorPreDialog = ne),
|
|
4435
4435
|
title: N(f).editorDialogTitle,
|
|
4436
4436
|
data: N(f).dialogData
|
|
4437
4437
|
}, null, 8, ["visible", "title", "data"]),
|
|
@@ -4452,11 +4452,11 @@ const Js = {
|
|
|
4452
4452
|
}),
|
|
4453
4453
|
_: 1
|
|
4454
4454
|
})), [
|
|
4455
|
-
[
|
|
4455
|
+
[te, N(f).pageLoading]
|
|
4456
4456
|
]);
|
|
4457
4457
|
};
|
|
4458
4458
|
}
|
|
4459
|
-
}, Ol = /* @__PURE__ */ Lt(Zs, [["__scopeId", "data-v-
|
|
4459
|
+
}, Ol = /* @__PURE__ */ Lt(Zs, [["__scopeId", "data-v-bdc39e81"]]), Ii = [
|
|
4460
4460
|
{ key: "按钮形式", value: "default" },
|
|
4461
4461
|
{ key: "文字形式", value: "text" }
|
|
4462
4462
|
], ki = [
|
|
@@ -5105,7 +5105,7 @@ const ri = {
|
|
|
5105
5105
|
},
|
|
5106
5106
|
emits: ["update:modelValue"],
|
|
5107
5107
|
setup(e, { expose: t, emit: n }) {
|
|
5108
|
-
const a = dn(), l = Ue("apiPrefix"), o = Ue("request"), r = nt(() => import("./dialogConfigBtn-
|
|
5108
|
+
const a = dn(), l = Ue("apiPrefix"), o = Ue("request"), r = nt(() => import("./dialogConfigBtn-6f3155f8.js")), s = e, i = () => ({
|
|
5109
5109
|
sort: 0,
|
|
5110
5110
|
permissionCode: null,
|
|
5111
5111
|
requestUrl: "",
|
|
@@ -5248,7 +5248,7 @@ const ii = { class: "card-header" }, ci = {
|
|
|
5248
5248
|
},
|
|
5249
5249
|
emits: ["update:modelValue"],
|
|
5250
5250
|
setup(e, { emit: t }) {
|
|
5251
|
-
const n = nt(() => import("./dialogAddField-
|
|
5251
|
+
const n = nt(() => import("./dialogAddField-8464a455.js")), a = t, l = e;
|
|
5252
5252
|
Ue("configData")();
|
|
5253
5253
|
let r = Pt((() => ({
|
|
5254
5254
|
tableLoading: !1,
|