act-plus 1.1.69 → 1.1.70
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-50888f78.js → dialogAddField-d5464c68.js} +2 -2
- package/lib/{dialogConfigBtn-b00c088c.js → dialogConfigBtn-a040c8a8.js} +2 -2
- package/lib/{dialogSiteComponentsParams-8b3cf16d.js → dialogSiteComponentsParams-4a1bc1cc.js} +1 -1
- package/lib/{index-bf11ca50.js → index-1eb62bcb.js} +1 -1
- package/lib/{index-2eafd229.js → index-2a4b41ad.js} +1 -1
- package/lib/{index-fa69ad05.js → index-307d804a.js} +1 -1
- package/lib/{index-7e0022be.js → index-33623979.js} +457 -455
- package/lib/{index-ddd16ee1.js → index-566f70f9.js} +1 -1
- package/lib/{index-39365eec.js → index-b4512e42.js} +1 -1
- package/lib/{index-cad52b3b.js → index-d473d428.js} +1 -1
- package/lib/{index-29b2d73c.js → index-fb59c468.js} +1 -1
- package/lib/{index-eea3cb2d.js → index-fe6488e8.js} +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as wt, h as ja, getCurrentInstance as Zt, effectScope as Ql, inject as Ue, onMounted as Ja, onUnmounted as Wl, computed as kt, watch as ut, Fragment as Oe, isRef as vt, ref as
|
|
1
|
+
import { defineComponent as wt, h as ja, getCurrentInstance as Zt, effectScope as Ql, inject as Ue, onMounted as Ja, onUnmounted as Wl, computed as kt, watch as ut, Fragment as Oe, isRef as vt, ref as te, shallowRef as Hl, createVNode as I, Text as Yl, openBlock as H, createElementBlock as Ae, createElementVNode as Le, defineAsyncComponent as st, reactive as Qt, provide as ke, resolveComponent as G, resolveDirective as zt, withDirectives as xt, createBlock as re, withCtx as k, unref as N, createSlots as Kl, renderList as qe, resolveDynamicComponent as Nn, createCommentVNode as We, createTextVNode as ve, toDisplayString as He, markRaw as la, nextTick as Gl } from "vue";
|
|
2
2
|
import { useRoute as An, useRouter as qa } from "vue-router";
|
|
3
3
|
import { dayjs as Ve, ElNotification as Qe, ElMessageBox as oa } from "element-plus";
|
|
4
4
|
/*!
|
|
@@ -21,7 +21,7 @@ const jl = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
21
21
|
function bn(e, ...t) {
|
|
22
22
|
return t.length === 1 && ie(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(jl, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
23
23
|
}
|
|
24
|
-
const et = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Jl = (e, t, n) => ql({ l: e, k: t, s: n }), ql = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Te = (e) => typeof e == "number" && isFinite(e), $l = (e) => Hn(e) === "[object Date]", Wt = (e) => Hn(e) === "[object RegExp]", En = (e) =>
|
|
24
|
+
const et = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Jl = (e, t, n) => ql({ l: e, k: t, s: n }), ql = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Te = (e) => typeof e == "number" && isFinite(e), $l = (e) => Hn(e) === "[object Date]", Wt = (e) => Hn(e) === "[object RegExp]", En = (e) => z(e) && Object.keys(e).length === 0, Ie = Object.assign, Xl = Object.create, de = (e = null) => Xl(e);
|
|
25
25
|
let ra;
|
|
26
26
|
const Lt = () => ra || (ra = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : de());
|
|
27
27
|
function sa(e) {
|
|
@@ -31,7 +31,7 @@ const Zl = Object.prototype.hasOwnProperty;
|
|
|
31
31
|
function $e(e, t) {
|
|
32
32
|
return Zl.call(e, t);
|
|
33
33
|
}
|
|
34
|
-
const he = Array.isArray, pe = (e) => typeof e == "function", U = (e) => typeof e == "string", ue = (e) => typeof e == "boolean", ie = (e) => e !== null && typeof e == "object", zl = (e) => ie(e) && pe(e.then) && pe(e.catch), $a = Object.prototype.toString, Hn = (e) => $a.call(e),
|
|
34
|
+
const he = Array.isArray, pe = (e) => typeof e == "function", U = (e) => typeof e == "string", ue = (e) => typeof e == "boolean", ie = (e) => e !== null && typeof e == "object", zl = (e) => ie(e) && pe(e.then) && pe(e.catch), $a = Object.prototype.toString, Hn = (e) => $a.call(e), z = (e) => Hn(e) === "[object Object]", eo = (e) => e == null ? "" : he(e) || z(e) && e.toString === $a ? JSON.stringify(e, null, 2) : String(e);
|
|
35
35
|
function Yn(e, t = "") {
|
|
36
36
|
return e.reduce((n, a, l) => l === 0 ? n + a : n + t + a, "");
|
|
37
37
|
}
|
|
@@ -177,7 +177,7 @@ function fo(e) {
|
|
|
177
177
|
function g() {
|
|
178
178
|
n = 0, a = 1, l = 1, o = 0;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function E(h = 0) {
|
|
181
181
|
o = h;
|
|
182
182
|
}
|
|
183
183
|
function w() {
|
|
@@ -197,7 +197,7 @@ function fo(e) {
|
|
|
197
197
|
next: f,
|
|
198
198
|
peek: A,
|
|
199
199
|
reset: g,
|
|
200
|
-
resetPeek:
|
|
200
|
+
resetPeek: E,
|
|
201
201
|
skipToPeek: w
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -219,11 +219,11 @@ function _o(e, t = {}) {
|
|
|
219
219
|
function y(u, d, O, ...K) {
|
|
220
220
|
const be = p();
|
|
221
221
|
if (d.column += O, d.offset += O, C) {
|
|
222
|
-
const ge = n ? Sn(be.startLoc, d) : null,
|
|
222
|
+
const ge = n ? Sn(be.startLoc, d) : null, se = Yt(u, ge, {
|
|
223
223
|
domain: po,
|
|
224
224
|
args: K
|
|
225
225
|
});
|
|
226
|
-
C(
|
|
226
|
+
C(se);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
function _(u, d, O) {
|
|
@@ -279,7 +279,7 @@ function _o(e, t = {}) {
|
|
|
279
279
|
const K = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), be = f(K);
|
|
280
280
|
return u.resetPeek(), be;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function E(u, d) {
|
|
283
283
|
const { currentType: O } = d;
|
|
284
284
|
if (O !== 2)
|
|
285
285
|
return !1;
|
|
@@ -328,8 +328,8 @@ function _o(e, t = {}) {
|
|
|
328
328
|
}
|
|
329
329
|
function Y(u, d = !0) {
|
|
330
330
|
const O = (be = !1, ge = "") => {
|
|
331
|
-
const
|
|
332
|
-
return
|
|
331
|
+
const se = u.currentPeek();
|
|
332
|
+
return se === "{" || se === "@" || !se ? be : se === "|" ? !(ge === rt || ge === we) : se === rt ? (u.peek(), O(!0, rt)) : se === we ? (u.peek(), O(!0, we)) : !0;
|
|
333
333
|
}, K = O();
|
|
334
334
|
return d && u.resetPeek(), K;
|
|
335
335
|
}
|
|
@@ -357,7 +357,7 @@ function _o(e, t = {}) {
|
|
|
357
357
|
d === 36 || // $
|
|
358
358
|
d === 45;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function ae(u) {
|
|
361
361
|
return $(u, Me);
|
|
362
362
|
}
|
|
363
363
|
function J(u) {
|
|
@@ -404,7 +404,7 @@ function _o(e, t = {}) {
|
|
|
404
404
|
function Ct(u) {
|
|
405
405
|
D(u);
|
|
406
406
|
let d = "", O = "";
|
|
407
|
-
for (; d =
|
|
407
|
+
for (; d = ae(u); )
|
|
408
408
|
O += d;
|
|
409
409
|
return u.currentChar() === _t && y(q.UNTERMINATED_CLOSING_BRACE, o(), 0), O;
|
|
410
410
|
}
|
|
@@ -503,7 +503,7 @@ function _o(e, t = {}) {
|
|
|
503
503
|
case "@":
|
|
504
504
|
return d.braceNest > 0 && y(q.UNTERMINATED_CLOSING_BRACE, o(), 0), O = at(u, d) || L(d), d.braceNest = 0, O;
|
|
505
505
|
default: {
|
|
506
|
-
let be = !0, ge = !0,
|
|
506
|
+
let be = !0, ge = !0, se = !0;
|
|
507
507
|
if (j(u))
|
|
508
508
|
return d.braceNest > 0 && y(q.UNTERMINATED_CLOSING_BRACE, o(), 0), O = _(d, 1, nt(u)), d.braceNest = 0, d.inLinked = !1, O;
|
|
509
509
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
@@ -512,9 +512,9 @@ function _o(e, t = {}) {
|
|
|
512
512
|
return O = _(d, 4, Ct(u)), D(u), O;
|
|
513
513
|
if (ge = g(u, d))
|
|
514
514
|
return O = _(d, 5, ct(u)), D(u), O;
|
|
515
|
-
if (
|
|
515
|
+
if (se = E(u, d))
|
|
516
516
|
return O = _(d, 6, fe(u)), D(u), O;
|
|
517
|
-
if (!be && !ge && !
|
|
517
|
+
if (!be && !ge && !se)
|
|
518
518
|
return O = _(d, 12, jt(u)), y(q.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, O.value), D(u), O;
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
@@ -582,7 +582,7 @@ function _o(e, t = {}) {
|
|
|
582
582
|
}
|
|
583
583
|
return O;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Ne() {
|
|
586
586
|
const { currentType: u, offset: d, startLoc: O, endLoc: K } = i;
|
|
587
587
|
return i.lastType = u, i.lastOffset = d, i.lastStartLoc = O, i.lastEndLoc = K, i.offset = l(), i.startLoc = o(), a.currentChar() === _t ? _(
|
|
588
588
|
i,
|
|
@@ -591,7 +591,7 @@ function _o(e, t = {}) {
|
|
|
591
591
|
) : It(a, i);
|
|
592
592
|
}
|
|
593
593
|
return {
|
|
594
|
-
nextToken:
|
|
594
|
+
nextToken: Ne,
|
|
595
595
|
currentOffset: l,
|
|
596
596
|
currentPosition: o,
|
|
597
597
|
context: p
|
|
@@ -612,12 +612,12 @@ function bo(e, t, n) {
|
|
|
612
612
|
}
|
|
613
613
|
function Eo(e = {}) {
|
|
614
614
|
const t = e.location !== !1, { onError: n } = e;
|
|
615
|
-
function a(m, f, A, g, ...
|
|
615
|
+
function a(m, f, A, g, ...E) {
|
|
616
616
|
const w = m.currentPosition();
|
|
617
617
|
if (w.offset += g, w.column += g, n) {
|
|
618
618
|
const h = t ? Sn(A, w) : null, P = Yt(f, h, {
|
|
619
619
|
domain: go,
|
|
620
|
-
args:
|
|
620
|
+
args: E
|
|
621
621
|
});
|
|
622
622
|
n(P);
|
|
623
623
|
}
|
|
@@ -634,20 +634,20 @@ function Eo(e = {}) {
|
|
|
634
634
|
return g.value = f, o(g, m.currentOffset(), m.currentPosition()), g;
|
|
635
635
|
}
|
|
636
636
|
function s(m, f) {
|
|
637
|
-
const A = m.context(), { lastOffset: g, lastStartLoc:
|
|
637
|
+
const A = m.context(), { lastOffset: g, lastStartLoc: E } = A, w = l(5, g, E);
|
|
638
638
|
return w.index = parseInt(f, 10), m.nextToken(), o(w, m.currentOffset(), m.currentPosition()), w;
|
|
639
639
|
}
|
|
640
640
|
function i(m, f) {
|
|
641
|
-
const A = m.context(), { lastOffset: g, lastStartLoc:
|
|
641
|
+
const A = m.context(), { lastOffset: g, lastStartLoc: E } = A, w = l(4, g, E);
|
|
642
642
|
return w.key = f, m.nextToken(), o(w, m.currentOffset(), m.currentPosition()), w;
|
|
643
643
|
}
|
|
644
644
|
function p(m, f) {
|
|
645
|
-
const A = m.context(), { lastOffset: g, lastStartLoc:
|
|
645
|
+
const A = m.context(), { lastOffset: g, lastStartLoc: E } = A, w = l(9, g, E);
|
|
646
646
|
return w.value = f.replace(Ao, bo), m.nextToken(), o(w, m.currentOffset(), m.currentPosition()), w;
|
|
647
647
|
}
|
|
648
648
|
function C(m) {
|
|
649
|
-
const f = m.nextToken(), A = m.context(), { lastOffset: g, lastStartLoc:
|
|
650
|
-
return f.type !== 11 ? (a(m, q.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), w.value = "", o(w, g,
|
|
649
|
+
const f = m.nextToken(), A = m.context(), { lastOffset: g, lastStartLoc: E } = A, w = l(8, g, E);
|
|
650
|
+
return f.type !== 11 ? (a(m, q.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), w.value = "", o(w, g, E), {
|
|
651
651
|
nextConsumeToken: f,
|
|
652
652
|
node: w
|
|
653
653
|
}) : (f.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, ze(f)), w.value = f.value || "", o(w, m.currentOffset(), m.currentPosition()), {
|
|
@@ -662,8 +662,8 @@ function Eo(e = {}) {
|
|
|
662
662
|
const f = m.context(), A = l(6, f.offset, f.startLoc);
|
|
663
663
|
let g = m.nextToken();
|
|
664
664
|
if (g.type === 8) {
|
|
665
|
-
const
|
|
666
|
-
A.modifier =
|
|
665
|
+
const E = C(m);
|
|
666
|
+
A.modifier = E.node, g = E.nextConsumeToken || m.nextToken();
|
|
667
667
|
}
|
|
668
668
|
switch (g.type !== 9 && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(g)), g = m.nextToken(), g.type === 2 && (g = m.nextToken()), g.type) {
|
|
669
669
|
case 10:
|
|
@@ -680,8 +680,8 @@ function Eo(e = {}) {
|
|
|
680
680
|
break;
|
|
681
681
|
default: {
|
|
682
682
|
a(m, q.UNEXPECTED_EMPTY_LINKED_KEY, f.lastStartLoc, 0);
|
|
683
|
-
const
|
|
684
|
-
return w.value = "", o(w,
|
|
683
|
+
const E = m.context(), w = l(7, E.offset, E.startLoc);
|
|
684
|
+
return w.value = "", o(w, E.offset, E.startLoc), A.key = w, o(A, E.offset, E.startLoc), {
|
|
685
685
|
nextConsumeToken: g,
|
|
686
686
|
node: A
|
|
687
687
|
};
|
|
@@ -692,51 +692,51 @@ function Eo(e = {}) {
|
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
694
|
function L(m) {
|
|
695
|
-
const f = m.context(), A = f.currentType === 1 ? m.currentOffset() : f.offset, g = f.currentType === 1 ? f.endLoc : f.startLoc,
|
|
696
|
-
|
|
695
|
+
const f = m.context(), A = f.currentType === 1 ? m.currentOffset() : f.offset, g = f.currentType === 1 ? f.endLoc : f.startLoc, E = l(2, A, g);
|
|
696
|
+
E.items = [];
|
|
697
697
|
let w = null;
|
|
698
698
|
do {
|
|
699
699
|
const F = w || m.nextToken();
|
|
700
700
|
switch (w = null, F.type) {
|
|
701
701
|
case 0:
|
|
702
|
-
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)),
|
|
702
|
+
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)), E.items.push(r(m, F.value || ""));
|
|
703
703
|
break;
|
|
704
704
|
case 5:
|
|
705
|
-
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)),
|
|
705
|
+
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)), E.items.push(s(m, F.value || ""));
|
|
706
706
|
break;
|
|
707
707
|
case 4:
|
|
708
|
-
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)),
|
|
708
|
+
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)), E.items.push(i(m, F.value || ""));
|
|
709
709
|
break;
|
|
710
710
|
case 6:
|
|
711
|
-
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)),
|
|
711
|
+
F.value == null && a(m, q.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, ze(F)), E.items.push(p(m, F.value || ""));
|
|
712
712
|
break;
|
|
713
713
|
case 7: {
|
|
714
714
|
const j = _(m);
|
|
715
|
-
|
|
715
|
+
E.items.push(j.node), w = j.nextConsumeToken || null;
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
} while (f.currentType !== 13 && f.currentType !== 1);
|
|
720
720
|
const h = f.currentType === 1 ? f.lastOffset : m.currentOffset(), P = f.currentType === 1 ? f.lastEndLoc : m.currentPosition();
|
|
721
|
-
return o(
|
|
721
|
+
return o(E, h, P), E;
|
|
722
722
|
}
|
|
723
723
|
function S(m, f, A, g) {
|
|
724
|
-
const
|
|
724
|
+
const E = m.context();
|
|
725
725
|
let w = g.items.length === 0;
|
|
726
726
|
const h = l(1, f, A);
|
|
727
727
|
h.cases = [], h.cases.push(g);
|
|
728
728
|
do {
|
|
729
729
|
const P = L(m);
|
|
730
730
|
w || (w = P.items.length === 0), h.cases.push(P);
|
|
731
|
-
} while (
|
|
731
|
+
} while (E.currentType !== 13);
|
|
732
732
|
return w && a(m, q.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), o(h, m.currentOffset(), m.currentPosition()), h;
|
|
733
733
|
}
|
|
734
734
|
function v(m) {
|
|
735
|
-
const f = m.context(), { offset: A, startLoc: g } = f,
|
|
736
|
-
return f.currentType === 13 ?
|
|
735
|
+
const f = m.context(), { offset: A, startLoc: g } = f, E = L(m);
|
|
736
|
+
return f.currentType === 13 ? E : S(m, A, g, E);
|
|
737
737
|
}
|
|
738
738
|
function D(m) {
|
|
739
|
-
const f = _o(m,
|
|
739
|
+
const f = _o(m, Ie({}, e)), A = f.context(), g = l(0, A.offset, A.startLoc);
|
|
740
740
|
return t && g.loc && (g.loc.source = m), g.body = v(f), e.onCacheKey && (g.cacheKey = e.onCacheKey(m)), A.currentType !== 13 && a(f, q.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, m[A.offset] || ""), o(g, f.currentOffset(), f.currentPosition()), g;
|
|
741
741
|
}
|
|
742
742
|
return { parse: D };
|
|
@@ -1036,7 +1036,7 @@ const Oo = (e, t = {}) => {
|
|
|
1036
1036
|
};
|
|
1037
1037
|
};
|
|
1038
1038
|
function Do(e, t = {}) {
|
|
1039
|
-
const n =
|
|
1039
|
+
const n = Ie({}, t), a = !!n.jit, l = !!n.minify, o = n.optimize == null ? !0 : n.optimize, s = Eo(n).parse(e);
|
|
1040
1040
|
return a ? (o && Co(s), l && Mt(s), { ast: s, code: "" }) : (yo(s, n), Oo(s, n));
|
|
1041
1041
|
}
|
|
1042
1042
|
/*!
|
|
@@ -1276,7 +1276,7 @@ function Za(e, t, n) {
|
|
|
1276
1276
|
let r = [n];
|
|
1277
1277
|
for (; he(r); )
|
|
1278
1278
|
r = _a(o, r, t);
|
|
1279
|
-
const s = he(t) || !
|
|
1279
|
+
const s = he(t) || !z(t) ? t : t.default ? t.default : null;
|
|
1280
1280
|
r = U(s) ? [s] : s, he(r) && _a(o, r, !1), l.__localeChainCache.set(a, o);
|
|
1281
1281
|
}
|
|
1282
1282
|
return o;
|
|
@@ -1303,7 +1303,7 @@ function sr(e, t, n) {
|
|
|
1303
1303
|
if (!e.includes(t) && (a = !0, t)) {
|
|
1304
1304
|
a = t[t.length - 1] !== "!";
|
|
1305
1305
|
const l = t.replace(/!/g, "");
|
|
1306
|
-
e.push(l), (he(n) ||
|
|
1306
|
+
e.push(l), (he(n) || z(n)) && n[l] && (a = n[l]);
|
|
1307
1307
|
}
|
|
1308
1308
|
return a;
|
|
1309
1309
|
}
|
|
@@ -1631,9 +1631,9 @@ const ba = (e) => {
|
|
|
1631
1631
|
}, Ir = () => al;
|
|
1632
1632
|
let Ea = 0;
|
|
1633
1633
|
function kr(e = {}) {
|
|
1634
|
-
const t = pe(e.onWarn) ? e.onWarn : bt, n = U(e.version) ? e.version : br, a = U(e.locale) || pe(e.locale) ? e.locale : nn, l = pe(a) ? nn : a, o = he(e.fallbackLocale) ||
|
|
1634
|
+
const t = pe(e.onWarn) ? e.onWarn : bt, n = U(e.version) ? e.version : br, a = U(e.locale) || pe(e.locale) ? e.locale : nn, l = pe(a) ? nn : a, o = he(e.fallbackLocale) || z(e.fallbackLocale) || U(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = z(e.messages) ? e.messages : vn(l), s = z(e.datetimeFormats) ? e.datetimeFormats : vn(l), i = z(e.numberFormats) ? e.numberFormats : vn(l), p = Ie(de(), e.modifiers, Er()), C = e.pluralRules || de(), y = pe(e.missing) ? e.missing : null, _ = ue(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = ue(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, S = !!e.fallbackFormat, v = !!e.unresolving, D = pe(e.postTranslation) ? e.postTranslation : null, m = z(e.processor) ? e.processor : null, f = ue(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, g = pe(e.messageCompiler) ? e.messageCompiler : za;
|
|
1635
1635
|
process.env.NODE_ENV !== "production" && pe(e.messageCompiler) && Xa(Ot(Fe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1636
|
-
const
|
|
1636
|
+
const E = pe(e.messageResolver) ? e.messageResolver : el || pr, w = pe(e.localeFallbacker) ? e.localeFallbacker : tl || or, h = ie(e.fallbackContext) ? e.fallbackContext : void 0, P = e, F = ie(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), j = ie(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), Y = ie(P.__meta) ? P.__meta : {};
|
|
1637
1637
|
Ea++;
|
|
1638
1638
|
const $ = {
|
|
1639
1639
|
version: n,
|
|
@@ -1653,7 +1653,7 @@ function kr(e = {}) {
|
|
|
1653
1653
|
warnHtmlMessage: f,
|
|
1654
1654
|
escapeParameter: A,
|
|
1655
1655
|
messageCompiler: g,
|
|
1656
|
-
messageResolver:
|
|
1656
|
+
messageResolver: E,
|
|
1657
1657
|
localeFallbacker: w,
|
|
1658
1658
|
fallbackContext: h,
|
|
1659
1659
|
onWarn: t,
|
|
@@ -1717,10 +1717,10 @@ function ya(e, ...t) {
|
|
|
1717
1717
|
);
|
|
1718
1718
|
if (!U(i) || i === "")
|
|
1719
1719
|
return new Intl.DateTimeFormat(v, y).format(p);
|
|
1720
|
-
let m = {}, f, A = null, g = v,
|
|
1720
|
+
let m = {}, f, A = null, g = v, E = null;
|
|
1721
1721
|
const w = "datetime format";
|
|
1722
1722
|
for (let F = 0; F < D.length; F++) {
|
|
1723
|
-
if (f =
|
|
1723
|
+
if (f = E = D[F], process.env.NODE_ENV !== "production" && v !== f && yn(L, i) && o(Ot(Fe.FALLBACK_TO_DATE_FORMAT, {
|
|
1724
1724
|
key: i,
|
|
1725
1725
|
target: f
|
|
1726
1726
|
})), process.env.NODE_ENV !== "production" && v !== f) {
|
|
@@ -1729,20 +1729,20 @@ function ya(e, ...t) {
|
|
|
1729
1729
|
type: w,
|
|
1730
1730
|
key: i,
|
|
1731
1731
|
from: g,
|
|
1732
|
-
to:
|
|
1732
|
+
to: E,
|
|
1733
1733
|
groupId: `${w}:${i}`
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
1736
|
-
if (m = n[f] || {}, A = m[i],
|
|
1736
|
+
if (m = n[f] || {}, A = m[i], z(A))
|
|
1737
1737
|
break;
|
|
1738
|
-
qn(e, i, f, _, w), g =
|
|
1738
|
+
qn(e, i, f, _, w), g = E;
|
|
1739
1739
|
}
|
|
1740
|
-
if (!
|
|
1740
|
+
if (!z(A) || !U(f))
|
|
1741
1741
|
return a ? hn : i;
|
|
1742
1742
|
let h = `${f}__${i}`;
|
|
1743
1743
|
En(y) || (h = `${h}__${JSON.stringify(y)}`);
|
|
1744
1744
|
let P = s.get(h);
|
|
1745
|
-
return P || (P = new Intl.DateTimeFormat(f,
|
|
1745
|
+
return P || (P = new Intl.DateTimeFormat(f, Ie({}, A, y)), s.set(h, P)), S ? P.formatToParts(p) : P.format(p);
|
|
1746
1746
|
}
|
|
1747
1747
|
const sl = [
|
|
1748
1748
|
"localeMatcher",
|
|
@@ -1788,9 +1788,9 @@ function Dn(...e) {
|
|
|
1788
1788
|
s = t;
|
|
1789
1789
|
else
|
|
1790
1790
|
throw it(De.INVALID_ARGUMENT);
|
|
1791
|
-
return U(n) ? o.key = n :
|
|
1791
|
+
return U(n) ? o.key = n : z(n) && Object.keys(n).forEach((i) => {
|
|
1792
1792
|
sl.includes(i) ? r[i] = n[i] : o[i] = n[i];
|
|
1793
|
-
}), U(a) ? o.locale = a :
|
|
1793
|
+
}), U(a) ? o.locale = a : z(a) && (r = a), z(l) && (r = l), [o.key || "", s, o, r];
|
|
1794
1794
|
}
|
|
1795
1795
|
function Ca(e, t, n) {
|
|
1796
1796
|
const a = e;
|
|
@@ -1811,10 +1811,10 @@ function Ta(e, ...t) {
|
|
|
1811
1811
|
);
|
|
1812
1812
|
if (!U(i) || i === "")
|
|
1813
1813
|
return new Intl.NumberFormat(v, y).format(p);
|
|
1814
|
-
let m = {}, f, A = null, g = v,
|
|
1814
|
+
let m = {}, f, A = null, g = v, E = null;
|
|
1815
1815
|
const w = "number format";
|
|
1816
1816
|
for (let F = 0; F < D.length; F++) {
|
|
1817
|
-
if (f =
|
|
1817
|
+
if (f = E = D[F], process.env.NODE_ENV !== "production" && v !== f && yn(L, i) && o(Ot(Fe.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1818
1818
|
key: i,
|
|
1819
1819
|
target: f
|
|
1820
1820
|
})), process.env.NODE_ENV !== "production" && v !== f) {
|
|
@@ -1823,20 +1823,20 @@ function Ta(e, ...t) {
|
|
|
1823
1823
|
type: w,
|
|
1824
1824
|
key: i,
|
|
1825
1825
|
from: g,
|
|
1826
|
-
to:
|
|
1826
|
+
to: E,
|
|
1827
1827
|
groupId: `${w}:${i}`
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
|
-
if (m = n[f] || {}, A = m[i],
|
|
1830
|
+
if (m = n[f] || {}, A = m[i], z(A))
|
|
1831
1831
|
break;
|
|
1832
|
-
qn(e, i, f, _, w), g =
|
|
1832
|
+
qn(e, i, f, _, w), g = E;
|
|
1833
1833
|
}
|
|
1834
|
-
if (!
|
|
1834
|
+
if (!z(A) || !U(f))
|
|
1835
1835
|
return a ? hn : i;
|
|
1836
1836
|
let h = `${f}__${i}`;
|
|
1837
1837
|
En(y) || (h = `${h}__${JSON.stringify(y)}`);
|
|
1838
1838
|
let P = s.get(h);
|
|
1839
|
-
return P || (P = new Intl.NumberFormat(f,
|
|
1839
|
+
return P || (P = new Intl.NumberFormat(f, Ie({}, A, y)), s.set(h, P)), S ? P.formatToParts(p) : P.format(p);
|
|
1840
1840
|
}
|
|
1841
1841
|
const il = [
|
|
1842
1842
|
"localeMatcher",
|
|
@@ -1866,9 +1866,9 @@ function wn(...e) {
|
|
|
1866
1866
|
if (!Te(t))
|
|
1867
1867
|
throw it(De.INVALID_ARGUMENT);
|
|
1868
1868
|
const s = t;
|
|
1869
|
-
return U(n) ? o.key = n :
|
|
1869
|
+
return U(n) ? o.key = n : z(n) && Object.keys(n).forEach((i) => {
|
|
1870
1870
|
il.includes(i) ? r[i] = n[i] : o[i] = n[i];
|
|
1871
|
-
}), U(a) ? o.locale = a :
|
|
1871
|
+
}), U(a) ? o.locale = a : z(a) && (r = a), z(l) && (r = l), [o.key || "", s, o, r];
|
|
1872
1872
|
}
|
|
1873
1873
|
function Na(e, t, n) {
|
|
1874
1874
|
const a = e;
|
|
@@ -1896,25 +1896,25 @@ function Pr(e = {}) {
|
|
|
1896
1896
|
const A = pe(e.messages) ? e.messages(m, !!f) : ie(e.messages) ? e.messages[m] : !1;
|
|
1897
1897
|
return A || (e.parent ? e.parent.message(m) : Sr);
|
|
1898
1898
|
}
|
|
1899
|
-
const y = (m) => e.modifiers ? e.modifiers[m] : Lr, _ =
|
|
1899
|
+
const y = (m) => e.modifiers ? e.modifiers[m] : Lr, _ = z(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : Dr, L = z(e.processor) && pe(e.processor.interpolate) ? e.processor.interpolate : wr, S = z(e.processor) && U(e.processor.type) ? e.processor.type : Or, D = {
|
|
1900
1900
|
list: s,
|
|
1901
1901
|
named: p,
|
|
1902
1902
|
plural: o,
|
|
1903
1903
|
linked: (m, ...f) => {
|
|
1904
1904
|
const [A, g] = f;
|
|
1905
|
-
let
|
|
1906
|
-
f.length === 1 ? ie(A) ? (w = A.modifier || w,
|
|
1905
|
+
let E = "text", w = "";
|
|
1906
|
+
f.length === 1 ? ie(A) ? (w = A.modifier || w, E = A.type || E) : U(A) && (w = A || w) : f.length === 2 && (U(A) && (w = A || w), U(g) && (E = g || E));
|
|
1907
1907
|
const h = C(m, !0)(D), P = (
|
|
1908
1908
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1909
|
-
|
|
1909
|
+
E === "vnode" && he(h) && w ? h[0] : h
|
|
1910
1910
|
);
|
|
1911
|
-
return w ? y(w)(P,
|
|
1911
|
+
return w ? y(w)(P, E) : P;
|
|
1912
1912
|
},
|
|
1913
1913
|
message: C,
|
|
1914
1914
|
type: S,
|
|
1915
1915
|
interpolate: L,
|
|
1916
1916
|
normalize: _,
|
|
1917
|
-
values:
|
|
1917
|
+
values: Ie(de(), r, i)
|
|
1918
1918
|
};
|
|
1919
1919
|
return D;
|
|
1920
1920
|
}
|
|
@@ -1926,15 +1926,15 @@ function va(e, ...t) {
|
|
|
1926
1926
|
i,
|
|
1927
1927
|
D,
|
|
1928
1928
|
s[D] || de()
|
|
1929
|
-
] : ul(e, i, D, r, y, C), g = m,
|
|
1930
|
-
if (!L && !(U(g) || At(g) || Ye(g)) && v && (g = S,
|
|
1929
|
+
] : ul(e, i, D, r, y, C), g = m, E = i;
|
|
1930
|
+
if (!L && !(U(g) || At(g) || Ye(g)) && v && (g = S, E = g), !L && (!(U(g) || At(g) || Ye(g)) || !U(f)))
|
|
1931
1931
|
return l ? hn : i;
|
|
1932
1932
|
if (process.env.NODE_ENV !== "production" && U(g) && e.messageCompiler == null)
|
|
1933
1933
|
return bt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
1934
1934
|
let w = !1;
|
|
1935
1935
|
const h = () => {
|
|
1936
1936
|
w = !0;
|
|
1937
|
-
}, P = Ye(g) ? g : cl(e, i, f, g,
|
|
1937
|
+
}, P = Ye(g) ? g : cl(e, i, f, g, E, h);
|
|
1938
1938
|
if (w)
|
|
1939
1939
|
return g;
|
|
1940
1940
|
const F = Vr(e, f, A, p), j = Pr(F), Y = Br(e, P, j), $ = a ? a(Y, i) : Y;
|
|
@@ -1946,7 +1946,7 @@ function va(e, ...t) {
|
|
|
1946
1946
|
format: U(g) ? g : Ye(g) ? g.source : "",
|
|
1947
1947
|
message: $
|
|
1948
1948
|
};
|
|
1949
|
-
Ce.meta =
|
|
1949
|
+
Ce.meta = Ie({}, e.__meta, /* @__PURE__ */ Nr() || {}), tr(Ce);
|
|
1950
1950
|
}
|
|
1951
1951
|
return $;
|
|
1952
1952
|
}
|
|
@@ -1964,8 +1964,8 @@ function ul(e, t, n, a, l, o) {
|
|
|
1964
1964
|
key: t,
|
|
1965
1965
|
target: _
|
|
1966
1966
|
})), process.env.NODE_ENV !== "production" && n !== _) {
|
|
1967
|
-
const
|
|
1968
|
-
|
|
1967
|
+
const E = e.__v_emitter;
|
|
1968
|
+
E && E.emit("fallback", {
|
|
1969
1969
|
type: D,
|
|
1970
1970
|
key: t,
|
|
1971
1971
|
from: S,
|
|
@@ -1976,19 +1976,19 @@ function ul(e, t, n, a, l, o) {
|
|
|
1976
1976
|
y = r[_] || de();
|
|
1977
1977
|
let f = null, A, g;
|
|
1978
1978
|
if (process.env.NODE_ENV !== "production" && Xe && (f = window.performance.now(), A = "intlify-message-resolve-start", g = "intlify-message-resolve-end", Be && Be(A)), (L = i(y, t)) === null && (L = y[t]), process.env.NODE_ENV !== "production" && Xe) {
|
|
1979
|
-
const
|
|
1979
|
+
const E = window.performance.now(), w = e.__v_emitter;
|
|
1980
1980
|
w && f && L && w.emit("message-resolve", {
|
|
1981
1981
|
type: "message-resolve",
|
|
1982
1982
|
key: t,
|
|
1983
1983
|
message: L,
|
|
1984
|
-
time:
|
|
1984
|
+
time: E - f,
|
|
1985
1985
|
groupId: `${D}:${t}`
|
|
1986
1986
|
}), A && g && Be && St && (Be(g), St("intlify message resolve", A, g));
|
|
1987
1987
|
}
|
|
1988
1988
|
if (U(L) || At(L) || Ye(L))
|
|
1989
1989
|
break;
|
|
1990
1990
|
if (!vr(_, C)) {
|
|
1991
|
-
const
|
|
1991
|
+
const E = qn(
|
|
1992
1992
|
e,
|
|
1993
1993
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1994
1994
|
t,
|
|
@@ -1996,7 +1996,7 @@ function ul(e, t, n, a, l, o) {
|
|
|
1996
1996
|
o,
|
|
1997
1997
|
D
|
|
1998
1998
|
);
|
|
1999
|
-
|
|
1999
|
+
E !== t && (L = E);
|
|
2000
2000
|
}
|
|
2001
2001
|
S = v;
|
|
2002
2002
|
}
|
|
@@ -2046,7 +2046,7 @@ function Rn(...e) {
|
|
|
2046
2046
|
if (!U(t) && !Te(t) && !Ye(t) && !At(t))
|
|
2047
2047
|
throw it(De.INVALID_ARGUMENT);
|
|
2048
2048
|
const o = Te(t) ? String(t) : (Ye(t), t);
|
|
2049
|
-
return Te(n) ? l.plural = n : U(n) ? l.default = n :
|
|
2049
|
+
return Te(n) ? l.plural = n : U(n) ? l.default = n : z(n) && !En(n) ? l.named = n : he(n) && (l.list = n), Te(a) ? l.plural = a : U(a) ? l.default = a : z(a) && Ie(l, a), [o, l];
|
|
2050
2050
|
}
|
|
2051
2051
|
function Mr(e, t, n, a, l, o) {
|
|
2052
2052
|
return {
|
|
@@ -2284,7 +2284,7 @@ function ln(e) {
|
|
|
2284
2284
|
return e;
|
|
2285
2285
|
}
|
|
2286
2286
|
function $n(e, t) {
|
|
2287
|
-
const { messages: n, __i18n: a, messageResolver: l, flatJson: o } = t, r =
|
|
2287
|
+
const { messages: n, __i18n: a, messageResolver: l, flatJson: o } = t, r = z(n) ? n : he(a) ? de() : { [e]: de() };
|
|
2288
2288
|
if (he(a) && a.forEach((s) => {
|
|
2289
2289
|
if ("locale" in s && "resource" in s) {
|
|
2290
2290
|
const { locale: i, resource: p } = s;
|
|
@@ -2338,17 +2338,17 @@ const es = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2338
2338
|
return e && (t = pl(e)[Sa]) ? { [Sa]: t } : null;
|
|
2339
2339
|
};
|
|
2340
2340
|
function Xn(e = {}) {
|
|
2341
|
-
const { __root: t, __injectWithOption: n } = e, a = t === void 0, l = e.flatJson, o = Xe ?
|
|
2341
|
+
const { __root: t, __injectWithOption: n } = e, a = t === void 0, l = e.flatJson, o = Xe ? te : Hl;
|
|
2342
2342
|
let r = ue(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2343
2343
|
const s = o(
|
|
2344
2344
|
// prettier-ignore
|
|
2345
2345
|
t && r ? t.locale.value : U(e.locale) ? e.locale : nn
|
|
2346
2346
|
), i = o(
|
|
2347
2347
|
// prettier-ignore
|
|
2348
|
-
t && r ? t.fallbackLocale.value : U(e.fallbackLocale) || he(e.fallbackLocale) ||
|
|
2349
|
-
), p = o($n(s.value, e)), C = o(
|
|
2348
|
+
t && r ? t.fallbackLocale.value : U(e.fallbackLocale) || he(e.fallbackLocale) || z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
|
|
2349
|
+
), p = o($n(s.value, e)), C = o(z(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), y = o(z(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
|
|
2350
2350
|
let _ = t ? t.missingWarn : ue(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = t ? t.fallbackWarn : ue(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, S = t ? t.fallbackRoot : ue(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, D = pe(e.missing) ? e.missing : null, m = pe(e.missing) ? wa(e.missing) : null, f = pe(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : ue(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter;
|
|
2351
|
-
const
|
|
2351
|
+
const E = t ? t.modifiers : z(e.modifiers) ? e.modifiers : {};
|
|
2352
2352
|
let w = e.pluralRules || t && t.pluralRules, h;
|
|
2353
2353
|
h = (() => {
|
|
2354
2354
|
a && ba(null);
|
|
@@ -2357,7 +2357,7 @@ function Xn(e = {}) {
|
|
|
2357
2357
|
locale: s.value,
|
|
2358
2358
|
fallbackLocale: i.value,
|
|
2359
2359
|
messages: p.value,
|
|
2360
|
-
modifiers:
|
|
2360
|
+
modifiers: E,
|
|
2361
2361
|
pluralRules: w,
|
|
2362
2362
|
missing: m === null ? void 0 : m,
|
|
2363
2363
|
missingWarn: _,
|
|
@@ -2371,7 +2371,7 @@ function Xn(e = {}) {
|
|
|
2371
2371
|
messageCompiler: e.messageCompiler,
|
|
2372
2372
|
__meta: { framework: "vue" }
|
|
2373
2373
|
};
|
|
2374
|
-
T.datetimeFormats = C.value, T.numberFormats = y.value, T.__datetimeFormatters =
|
|
2374
|
+
T.datetimeFormats = C.value, T.numberFormats = y.value, T.__datetimeFormatters = z(h) ? h.__datetimeFormatters : void 0, T.__numberFormatters = z(h) ? h.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (T.__v_emitter = z(h) ? h.__v_emitter : void 0);
|
|
2375
2375
|
const R = kr(T);
|
|
2376
2376
|
return a && ba(R), R;
|
|
2377
2377
|
})(), $t(h, s.value, i.value);
|
|
@@ -2398,7 +2398,7 @@ function Xn(e = {}) {
|
|
|
2398
2398
|
function Me() {
|
|
2399
2399
|
return pe(f) ? f : null;
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function ae(T) {
|
|
2402
2402
|
f = T, h.postTranslation = T;
|
|
2403
2403
|
}
|
|
2404
2404
|
function J() {
|
|
@@ -2410,7 +2410,7 @@ function Xn(e = {}) {
|
|
|
2410
2410
|
function yt(T, R) {
|
|
2411
2411
|
return T !== "translate" || !R.resolvedMessage;
|
|
2412
2412
|
}
|
|
2413
|
-
const Pe = (T, R,
|
|
2413
|
+
const Pe = (T, R, le, Ee, lt, Ut) => {
|
|
2414
2414
|
F();
|
|
2415
2415
|
let mt;
|
|
2416
2416
|
try {
|
|
@@ -2418,19 +2418,19 @@ function Xn(e = {}) {
|
|
|
2418
2418
|
} finally {
|
|
2419
2419
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (h.fallbackContext = void 0);
|
|
2420
2420
|
}
|
|
2421
|
-
if (
|
|
2422
|
-
Te(mt) && mt === hn ||
|
|
2421
|
+
if (le !== "translate exists" && // for not `te` (e.g `t`)
|
|
2422
|
+
Te(mt) && mt === hn || le === "translate exists" && !mt) {
|
|
2423
2423
|
const [Ze, Jt] = R();
|
|
2424
|
-
if (process.env.NODE_ENV !== "production" && t && U(Ze) && yt(
|
|
2424
|
+
if (process.env.NODE_ENV !== "production" && t && U(Ze) && yt(le, Jt) && (S && (yn(L, Ze) || ll(_, Ze)) && bt(Cn(gt.FALLBACK_TO_ROOT, {
|
|
2425
2425
|
key: Ze,
|
|
2426
|
-
type:
|
|
2426
|
+
type: le
|
|
2427
2427
|
})), process.env.NODE_ENV !== "production")) {
|
|
2428
2428
|
const { __v_emitter: rn } = h;
|
|
2429
2429
|
rn && S && rn.emit("fallback", {
|
|
2430
|
-
type:
|
|
2430
|
+
type: le,
|
|
2431
2431
|
key: Ze,
|
|
2432
2432
|
to: "global",
|
|
2433
|
-
groupId: `${
|
|
2433
|
+
groupId: `${le}:${Ze}`
|
|
2434
2434
|
});
|
|
2435
2435
|
}
|
|
2436
2436
|
return t && S ? Ee(t) : lt(Ze);
|
|
@@ -2444,10 +2444,10 @@ function Xn(e = {}) {
|
|
|
2444
2444
|
return Pe((R) => Reflect.apply(va, null, [R, ...T]), () => Rn(...T), "translate", (R) => Reflect.apply(R.t, R, [...T]), (R) => R, (R) => U(R));
|
|
2445
2445
|
}
|
|
2446
2446
|
function Ke(...T) {
|
|
2447
|
-
const [R,
|
|
2447
|
+
const [R, le, Ee] = T;
|
|
2448
2448
|
if (Ee && !ie(Ee))
|
|
2449
2449
|
throw Re(me.INVALID_ARGUMENT);
|
|
2450
|
-
return tt(R,
|
|
2450
|
+
return tt(R, le, Ie({ resolvedMessage: !0 }, Ee || {}));
|
|
2451
2451
|
}
|
|
2452
2452
|
function Ct(...T) {
|
|
2453
2453
|
return Pe((R) => Reflect.apply(ya, null, [R, ...T]), () => Dn(...T), "datetime format", (R) => Reflect.apply(R.d, R, [...T]), () => _n, (R) => U(R));
|
|
@@ -2465,14 +2465,14 @@ function Xn(e = {}) {
|
|
|
2465
2465
|
};
|
|
2466
2466
|
function Pt(...T) {
|
|
2467
2467
|
return Pe((R) => {
|
|
2468
|
-
let
|
|
2468
|
+
let le;
|
|
2469
2469
|
const Ee = R;
|
|
2470
2470
|
try {
|
|
2471
|
-
Ee.processor = Ft,
|
|
2471
|
+
Ee.processor = Ft, le = Reflect.apply(va, null, [Ee, ...T]);
|
|
2472
2472
|
} finally {
|
|
2473
2473
|
Ee.processor = null;
|
|
2474
2474
|
}
|
|
2475
|
-
return
|
|
2475
|
+
return le;
|
|
2476
2476
|
}, () => Rn(...T), "translate", (R) => R[Pn](...T), (R) => [La(R)], (R) => he(R));
|
|
2477
2477
|
}
|
|
2478
2478
|
function Gt(...T) {
|
|
@@ -2488,15 +2488,15 @@ function Xn(e = {}) {
|
|
|
2488
2488
|
return Pe(() => {
|
|
2489
2489
|
if (!T)
|
|
2490
2490
|
return !1;
|
|
2491
|
-
const
|
|
2491
|
+
const le = U(R) ? R : s.value, Ee = at(le), lt = h.messageResolver(Ee, T);
|
|
2492
2492
|
return At(lt) || Ye(lt) || U(lt);
|
|
2493
|
-
}, () => [T], "translate exists", (
|
|
2493
|
+
}, () => [T], "translate exists", (le) => Reflect.apply(le.te, le, [T, R]), zr, (le) => ue(le));
|
|
2494
2494
|
}
|
|
2495
2495
|
function nt(T) {
|
|
2496
2496
|
let R = null;
|
|
2497
|
-
const
|
|
2498
|
-
for (let Ee = 0; Ee <
|
|
2499
|
-
const lt = p.value[
|
|
2497
|
+
const le = Za(h, i.value, s.value);
|
|
2498
|
+
for (let Ee = 0; Ee < le.length; Ee++) {
|
|
2499
|
+
const lt = p.value[le[Ee]] || {}, Ut = h.messageResolver(lt, T);
|
|
2500
2500
|
if (Ut != null) {
|
|
2501
2501
|
R = Ut;
|
|
2502
2502
|
break;
|
|
@@ -2513,20 +2513,20 @@ function Xn(e = {}) {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
function It(T, R) {
|
|
2515
2515
|
if (l) {
|
|
2516
|
-
const
|
|
2517
|
-
for (const Ee in
|
|
2518
|
-
$e(
|
|
2519
|
-
R =
|
|
2516
|
+
const le = { [T]: R };
|
|
2517
|
+
for (const Ee in le)
|
|
2518
|
+
$e(le, Ee) && ln(le[Ee]);
|
|
2519
|
+
R = le[T];
|
|
2520
2520
|
}
|
|
2521
2521
|
p.value[T] = R, h.messages = p.value;
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function Ne(T, R) {
|
|
2524
2524
|
p.value[T] = p.value[T] || {};
|
|
2525
|
-
const
|
|
2525
|
+
const le = { [T]: R };
|
|
2526
2526
|
if (l)
|
|
2527
|
-
for (const Ee in
|
|
2528
|
-
$e(
|
|
2529
|
-
R =
|
|
2527
|
+
for (const Ee in le)
|
|
2528
|
+
$e(le, Ee) && ln(le[Ee]);
|
|
2529
|
+
R = le[T], mn(R, p.value[T]), h.messages = p.value;
|
|
2530
2530
|
}
|
|
2531
2531
|
function u(T) {
|
|
2532
2532
|
return C.value[T] || {};
|
|
@@ -2535,7 +2535,7 @@ function Xn(e = {}) {
|
|
|
2535
2535
|
C.value[T] = R, h.datetimeFormats = C.value, Ca(h, T, R);
|
|
2536
2536
|
}
|
|
2537
2537
|
function O(T, R) {
|
|
2538
|
-
C.value[T] =
|
|
2538
|
+
C.value[T] = Ie(C.value[T] || {}, R), h.datetimeFormats = C.value, Ca(h, T, R);
|
|
2539
2539
|
}
|
|
2540
2540
|
function K(T) {
|
|
2541
2541
|
return y.value[T] || {};
|
|
@@ -2544,14 +2544,14 @@ function Xn(e = {}) {
|
|
|
2544
2544
|
y.value[T] = R, h.numberFormats = y.value, Na(h, T, R);
|
|
2545
2545
|
}
|
|
2546
2546
|
function ge(T, R) {
|
|
2547
|
-
y.value[T] =
|
|
2547
|
+
y.value[T] = Ie(y.value[T] || {}, R), h.numberFormats = y.value, Na(h, T, R);
|
|
2548
2548
|
}
|
|
2549
2549
|
Da++, t && Xe && (ut(t.locale, (T) => {
|
|
2550
2550
|
r && (s.value = T, h.locale = T, $t(h, s.value, i.value));
|
|
2551
2551
|
}), ut(t.fallbackLocale, (T) => {
|
|
2552
2552
|
r && (i.value = T, h.fallbackLocale = T, $t(h, s.value, i.value));
|
|
2553
2553
|
}));
|
|
2554
|
-
const
|
|
2554
|
+
const se = {
|
|
2555
2555
|
id: Da,
|
|
2556
2556
|
locale: j,
|
|
2557
2557
|
fallbackLocale: Y,
|
|
@@ -2566,7 +2566,7 @@ function Xn(e = {}) {
|
|
|
2566
2566
|
},
|
|
2567
2567
|
messages: $,
|
|
2568
2568
|
get modifiers() {
|
|
2569
|
-
return
|
|
2569
|
+
return E;
|
|
2570
2570
|
},
|
|
2571
2571
|
get pluralRules() {
|
|
2572
2572
|
return w || {};
|
|
@@ -2613,18 +2613,18 @@ function Xn(e = {}) {
|
|
|
2613
2613
|
t: tt,
|
|
2614
2614
|
getLocaleMessage: at,
|
|
2615
2615
|
setLocaleMessage: It,
|
|
2616
|
-
mergeLocaleMessage:
|
|
2616
|
+
mergeLocaleMessage: Ne,
|
|
2617
2617
|
getPostTranslationHandler: Me,
|
|
2618
|
-
setPostTranslationHandler:
|
|
2618
|
+
setPostTranslationHandler: ae,
|
|
2619
2619
|
getMissingHandler: J,
|
|
2620
2620
|
setMissingHandler: xe,
|
|
2621
2621
|
[fl]: dt
|
|
2622
2622
|
};
|
|
2623
|
-
return
|
|
2623
|
+
return se.datetimeFormats = Ce, se.numberFormats = ce, se.rt = Ke, se.te = ft, se.tm = Nt, se.d = Ct, se.n = ct, se.getDateTimeFormat = u, se.setDateTimeFormat = d, se.mergeDateTimeFormat = O, se.getNumberFormat = K, se.setNumberFormat = be, se.mergeNumberFormat = ge, se[ml] = n, se[Pn] = Pt, se[Un] = jt, se[Bn] = Gt, process.env.NODE_ENV !== "production" && (se[Dt] = (T) => {
|
|
2624
2624
|
h.__v_emitter = T;
|
|
2625
|
-
},
|
|
2625
|
+
}, se[an] = () => {
|
|
2626
2626
|
h.__v_emitter = void 0;
|
|
2627
|
-
}),
|
|
2627
|
+
}), se;
|
|
2628
2628
|
}
|
|
2629
2629
|
const gl = "vue-i18n: composer properties", Ln = {
|
|
2630
2630
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
@@ -2887,13 +2887,13 @@ function ms(e, t) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
}
|
|
2889
2889
|
function ps(e) {
|
|
2890
|
-
const t = U(e.locale) ? e.locale : nn, n = U(e.fallbackLocale) || he(e.fallbackLocale) ||
|
|
2890
|
+
const t = U(e.locale) ? e.locale : nn, n = U(e.fallbackLocale) || he(e.fallbackLocale) || z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = pe(e.missing) ? e.missing : void 0, l = ue(e.silentTranslationWarn) || Wt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ue(e.silentFallbackWarn) || Wt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ue(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = z(e.modifiers) ? e.modifiers : {}, p = e.pluralizationRules, C = pe(e.postTranslation) ? e.postTranslation : void 0, y = U(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, _ = !!e.escapeParameterHtml, L = ue(e.sync) ? e.sync : !0;
|
|
2891
2891
|
let S = e.messages;
|
|
2892
|
-
if (
|
|
2893
|
-
const
|
|
2894
|
-
S = Object.keys(
|
|
2892
|
+
if (z(e.sharedMessages)) {
|
|
2893
|
+
const E = e.sharedMessages;
|
|
2894
|
+
S = Object.keys(E).reduce((h, P) => {
|
|
2895
2895
|
const F = h[P] || (h[P] = {});
|
|
2896
|
-
return
|
|
2896
|
+
return Ie(F, E[P]), h;
|
|
2897
2897
|
}, S || {});
|
|
2898
2898
|
}
|
|
2899
2899
|
const { __i18n: v, __root: D, __injectWithOption: m } = e, f = e.datetimeFormats, A = e.numberFormats, g = e.flatJson;
|
|
@@ -3036,7 +3036,7 @@ function Vn(e = {}) {
|
|
|
3036
3036
|
if (process.env.NODE_ENV !== "production" && Xa(Cn(gt.DEPRECATE_TC)), !U(o))
|
|
3037
3037
|
throw Re(me.INVALID_ARGUMENT);
|
|
3038
3038
|
const y = o;
|
|
3039
|
-
return U(r) ? i.locale = r : Te(r) ? i.plural = r : he(r) ? p = r :
|
|
3039
|
+
return U(r) ? i.locale = r : Te(r) ? i.plural = r : he(r) ? p = r : z(r) && (C = r), U(s) ? i.locale = s : he(s) ? p = s : z(s) && (C = s), Reflect.apply(t.t, t, [
|
|
3040
3040
|
y,
|
|
3041
3041
|
p || C || {},
|
|
3042
3042
|
i
|
|
@@ -3195,7 +3195,7 @@ function El() {
|
|
|
3195
3195
|
const As = /* @__PURE__ */ wt({
|
|
3196
3196
|
/* eslint-disable */
|
|
3197
3197
|
name: "i18n-t",
|
|
3198
|
-
props:
|
|
3198
|
+
props: Ie({
|
|
3199
3199
|
keypath: {
|
|
3200
3200
|
type: String,
|
|
3201
3201
|
required: !0
|
|
@@ -3215,7 +3215,7 @@ const As = /* @__PURE__ */ wt({
|
|
|
3215
3215
|
return () => {
|
|
3216
3216
|
const o = Object.keys(n).filter((y) => y !== "_"), r = de();
|
|
3217
3217
|
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = U(e.plural) ? +e.plural : e.plural);
|
|
3218
|
-
const s = gs(t, o), i = l[Pn](e.keypath, s, r), p =
|
|
3218
|
+
const s = gs(t, o), i = l[Pn](e.keypath, s, r), p = Ie(de(), a), C = U(e.tag) || ie(e.tag) ? e.tag : El();
|
|
3219
3219
|
return ja(C, p, i);
|
|
3220
3220
|
};
|
|
3221
3221
|
}
|
|
@@ -3228,21 +3228,21 @@ function hl(e, t, n, a) {
|
|
|
3228
3228
|
return () => {
|
|
3229
3229
|
const r = { part: !0 };
|
|
3230
3230
|
let s = de();
|
|
3231
|
-
e.locale && (r.locale = e.locale), U(e.format) ? r.key = e.format : ie(e.format) && (U(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((_, L) => n.includes(L) ?
|
|
3231
|
+
e.locale && (r.locale = e.locale), U(e.format) ? r.key = e.format : ie(e.format) && (U(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((_, L) => n.includes(L) ? Ie(de(), _, { [L]: e.format[L] }) : _, de()));
|
|
3232
3232
|
const i = a(e.value, r, s);
|
|
3233
3233
|
let p = [r.key];
|
|
3234
3234
|
he(i) ? p = i.map((_, L) => {
|
|
3235
3235
|
const S = l[_.type], v = S ? S({ [_.type]: _.value, index: L, parts: i }) : [_.value];
|
|
3236
3236
|
return bs(v) && (v[0].key = `${_.type}-${L}`), v;
|
|
3237
3237
|
}) : U(i) && (p = [i]);
|
|
3238
|
-
const C =
|
|
3238
|
+
const C = Ie(de(), o), y = U(e.tag) || ie(e.tag) ? e.tag : El();
|
|
3239
3239
|
return ja(y, C, p);
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
3242
|
const Es = /* @__PURE__ */ wt({
|
|
3243
3243
|
/* eslint-disable */
|
|
3244
3244
|
name: "i18n-n",
|
|
3245
|
-
props:
|
|
3245
|
+
props: Ie({
|
|
3246
3246
|
value: {
|
|
3247
3247
|
type: Number,
|
|
3248
3248
|
required: !0
|
|
@@ -3266,7 +3266,7 @@ const Es = /* @__PURE__ */ wt({
|
|
|
3266
3266
|
}), Ua = Es, hs = /* @__PURE__ */ wt({
|
|
3267
3267
|
/* eslint-disable */
|
|
3268
3268
|
name: "i18n-d",
|
|
3269
|
-
props:
|
|
3269
|
+
props: Ie({
|
|
3270
3270
|
value: {
|
|
3271
3271
|
type: [Number, Date],
|
|
3272
3272
|
required: !0
|
|
@@ -3335,7 +3335,7 @@ function Cs(e) {
|
|
|
3335
3335
|
function Ma(e) {
|
|
3336
3336
|
if (U(e))
|
|
3337
3337
|
return { path: e };
|
|
3338
|
-
if (
|
|
3338
|
+
if (z(e)) {
|
|
3339
3339
|
if (!("path" in e))
|
|
3340
3340
|
throw Re(me.REQUIRED_VALUE, "path");
|
|
3341
3341
|
return e;
|
|
@@ -3347,7 +3347,7 @@ function xa(e) {
|
|
|
3347
3347
|
return U(n) && (r.locale = n), Te(l) && (r.plural = l), Te(o) && (r.plural = o), [t, s, r];
|
|
3348
3348
|
}
|
|
3349
3349
|
function Ts(e, t, ...n) {
|
|
3350
|
-
const a =
|
|
3350
|
+
const a = z(n[0]) ? n[0] : {};
|
|
3351
3351
|
(ue(a.globalInstall) ? a.globalInstall : !0) && ([Pa.name, "I18nT"].forEach((o) => e.component(o, Pa)), [Ua.name, "I18nN"].forEach((o) => e.component(o, Ua)), [Ba.name, "I18nD"].forEach((o) => e.component(o, Ba))), e.directive("t", Cs(t));
|
|
3352
3352
|
}
|
|
3353
3353
|
const Ns = /* @__PURE__ */ et("global-vue-i18n");
|
|
@@ -3369,7 +3369,7 @@ function yl(e = {}, t) {
|
|
|
3369
3369
|
},
|
|
3370
3370
|
// install plugin
|
|
3371
3371
|
async install(_, ...L) {
|
|
3372
|
-
if (process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ = y), _.__VUE_I18N_SYMBOL__ = s, _.provide(_.__VUE_I18N_SYMBOL__, y),
|
|
3372
|
+
if (process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ = y), _.__VUE_I18N_SYMBOL__ = s, _.provide(_.__VUE_I18N_SYMBOL__, y), z(L[0])) {
|
|
3373
3373
|
const D = L[0];
|
|
3374
3374
|
y.__composerExtend = D.__composerExtend, y.__vueI18nExtend = D.__vueI18nExtend;
|
|
3375
3375
|
}
|
|
@@ -3426,7 +3426,7 @@ function Tn(e = {}) {
|
|
|
3426
3426
|
const r = n;
|
|
3427
3427
|
let s = r.__getInstance(t);
|
|
3428
3428
|
if (s == null) {
|
|
3429
|
-
const i =
|
|
3429
|
+
const i = Ie({}, e);
|
|
3430
3430
|
"__i18n" in l && (i.__i18n = l.__i18n), a && (i.__root = a), s = Xn(i), r.__composerExtend && (s[Mn] = r.__composerExtend(s)), Ds(r, t, s), r.__setInstance(t, s);
|
|
3431
3431
|
}
|
|
3432
3432
|
return s;
|
|
@@ -3851,18 +3851,18 @@ const oi = {
|
|
|
3851
3851
|
emits: ["onClickRow", "changeExpansionRow", "refresh", "load", "operate"],
|
|
3852
3852
|
setup(e, { expose: t, emit: n }) {
|
|
3853
3853
|
const a = st({
|
|
3854
|
-
loader: () => import("./index-
|
|
3854
|
+
loader: () => import("./index-b4512e42.js"),
|
|
3855
3855
|
loadingComponent: fn,
|
|
3856
3856
|
delay: 20
|
|
3857
3857
|
}), l = st({
|
|
3858
|
-
loader: () => import("./index-
|
|
3858
|
+
loader: () => import("./index-1eb62bcb.js"),
|
|
3859
3859
|
loadingComponent: fn,
|
|
3860
3860
|
delay: 20
|
|
3861
3861
|
}), o = st({
|
|
3862
|
-
loader: () => import("./index-
|
|
3862
|
+
loader: () => import("./index-2a4b41ad.js"),
|
|
3863
3863
|
loadingComponent: fn,
|
|
3864
3864
|
delay: 20
|
|
3865
|
-
}), r = st(() => import("./index-
|
|
3865
|
+
}), r = st(() => import("./index-fe6488e8.js")), s = st(() => import("./index-307d804a.js")), { t: i } = Tn(), p = Ue("actModules"), C = Ue("apiPrefix"), y = Ue("request"), _ = Ue("themeColor"), L = An(), S = qa(), v = n, D = e, m = () => ({
|
|
3866
3866
|
pageLoading: !1,
|
|
3867
3867
|
tableLoading: !1,
|
|
3868
3868
|
tableTotal: 0,
|
|
@@ -3877,21 +3877,21 @@ const oi = {
|
|
|
3877
3877
|
editorDialogTitle: "",
|
|
3878
3878
|
dialogData: {}
|
|
3879
3879
|
});
|
|
3880
|
-
let f = Qt(m()), A =
|
|
3881
|
-
const Ce =
|
|
3882
|
-
let xe =
|
|
3880
|
+
let f = Qt(m()), A = te("loading"), g = te([]), E = {}, w = [], h = te([]), P = te([]), F = te([]), j = te([]), Y = te([]), $ = te({});
|
|
3881
|
+
const Ce = te(null), ce = te(null), Me = te(null), ae = te(null), J = te(0);
|
|
3882
|
+
let xe = te({});
|
|
3883
3883
|
const yt = (c) => y({ url: `${C}/sysOperate/getMenuOfOperateByRole`, method: "post", data: c }), Pe = (c) => y({ url: `${C}/pages/getPageDetail?key=${c}`, method: "get" }), tt = () => {
|
|
3884
|
-
f = Qt(m()), A.value = "loading", g.value = [],
|
|
3884
|
+
f = Qt(m()), A.value = "loading", g.value = [], E = {}, w = [], h.value = [], P.value = [], F.value = [], j.value = [], Y.value = [], xe.value = {};
|
|
3885
3885
|
}, Ke = () => {
|
|
3886
3886
|
Gl(() => {
|
|
3887
3887
|
setTimeout(() => {
|
|
3888
|
-
var V, x, M,
|
|
3889
|
-
const c = ((x = (V = Ce.value) == null ? void 0 : V.$el) == null ? void 0 : x.offsetHeight) || 0,
|
|
3890
|
-
J.value = D.maxHeight > 0 ? D.maxHeight : (
|
|
3888
|
+
var V, x, M, Q, X, ee, Z;
|
|
3889
|
+
const c = ((x = (V = Ce.value) == null ? void 0 : V.$el) == null ? void 0 : x.offsetHeight) || 0, b = ((Q = (M = ce.value) == null ? void 0 : M.$el) == null ? void 0 : Q.offsetHeight) || 0, B = ((ee = (X = Me.value) == null ? void 0 : X.$el) == null ? void 0 : ee.offsetHeight) || 0, W = c - b - B - 6;
|
|
3890
|
+
J.value = D.maxHeight > 0 ? D.maxHeight : (Z = E == null ? void 0 : E.tableConfig) != null && Z.isPagination ? W - 48 : W;
|
|
3891
3891
|
}, 500);
|
|
3892
3892
|
});
|
|
3893
3893
|
}, Ct = () => [...Jt(w)], ct = (c) => {
|
|
3894
|
-
|
|
3894
|
+
ae.value.updateSelection(c);
|
|
3895
3895
|
}, Tt = () => f.tableSelection, fe = async () => {
|
|
3896
3896
|
await Ge(w), v("refresh");
|
|
3897
3897
|
}, Ft = (c) => {
|
|
@@ -3903,76 +3903,76 @@ const oi = {
|
|
|
3903
3903
|
if (c.fieldType == "date" && c.tableQueryDefaultValue == "yearAgo")
|
|
3904
3904
|
return Ve().subtract(1, "year").format(B);
|
|
3905
3905
|
if (c.fieldType == "dateRange" && c.tableQueryDefaultValue.includes("&")) {
|
|
3906
|
-
const
|
|
3907
|
-
return [Ve(
|
|
3906
|
+
const W = c.tableQueryDefaultValue.split("&");
|
|
3907
|
+
return [Ve(W[0]).subtract(6, "month").format(B), Ve(W[1]).format(B)];
|
|
3908
3908
|
}
|
|
3909
3909
|
if (c.fieldType == "dateRange" && c.tableQueryDefaultValue == "yearAgo")
|
|
3910
3910
|
return [Ve().subtract(1, "year").format(B), Ve().format(B)];
|
|
3911
3911
|
if (c.fieldType == "dateRange" && c.tableQueryDefaultValue == "sixMonthsAgo")
|
|
3912
3912
|
return [Ve().subtract(6, "month").format(B), Ve().format(B)];
|
|
3913
|
-
}, Pt = (c,
|
|
3914
|
-
if (!(
|
|
3913
|
+
}, Pt = (c, b) => {
|
|
3914
|
+
if (!(b.row && Object.keys(b.row).length))
|
|
3915
3915
|
return;
|
|
3916
|
-
const
|
|
3916
|
+
const W = (b.row[c.fieldKey] ?? "").split(";"), V = W && W.length ? W[0] : "", x = V.substring(V.lastIndexOf(".") + 1);
|
|
3917
3917
|
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(x);
|
|
3918
|
-
}, Gt = (c,
|
|
3919
|
-
if (!(
|
|
3918
|
+
}, Gt = (c, b) => {
|
|
3919
|
+
if (!(b.row && Object.keys(b.row).length))
|
|
3920
3920
|
return;
|
|
3921
|
-
const
|
|
3922
|
-
return
|
|
3923
|
-
}, jt = (c,
|
|
3924
|
-
if (!(
|
|
3921
|
+
const W = (b.row[c.fieldKey] ?? "").split(";");
|
|
3922
|
+
return W && W.length ? W[0] : "";
|
|
3923
|
+
}, jt = (c, b) => {
|
|
3924
|
+
if (!(b.row && Object.keys(b.row).length))
|
|
3925
3925
|
return;
|
|
3926
|
-
const B =
|
|
3926
|
+
const B = b.row[c.fieldKey] ?? null;
|
|
3927
3927
|
return B ? B.split(";") : [];
|
|
3928
|
-
}, dt = (c) => c === "true", ft = (c) => new Function("", c.fieldUiProps)() || {}, nt = async (c,
|
|
3928
|
+
}, dt = (c) => c === "true", ft = (c) => new Function("", c.fieldUiProps)() || {}, nt = async (c, b) => Reflect.has(p, `/src/views${c}.vue`) ? la(st(p[`/src/views${c}.vue`])) : null, Nt = async (c, b) => Reflect.has(p, `/src/views${c}.vue`) ? la(
|
|
3929
3929
|
st({
|
|
3930
3930
|
loader: p[`/src/views${c}.vue`],
|
|
3931
3931
|
loadingComponent: fn,
|
|
3932
3932
|
delay: 20
|
|
3933
3933
|
})
|
|
3934
3934
|
) : null, at = async () => {
|
|
3935
|
-
|
|
3936
|
-
|
|
3935
|
+
E.buttons = await Promise.all(
|
|
3936
|
+
E.buttons.map(async (c) => {
|
|
3937
3937
|
if (c.isCustomBtn && c.customType == "component") {
|
|
3938
|
-
const { customComponentUrl:
|
|
3939
|
-
c[B] =
|
|
3938
|
+
const { customComponentUrl: b, customComponentName: B } = c, W = await nt(b);
|
|
3939
|
+
c[B] = W;
|
|
3940
3940
|
}
|
|
3941
3941
|
return c;
|
|
3942
3942
|
})
|
|
3943
3943
|
);
|
|
3944
3944
|
}, It = async () => {
|
|
3945
|
-
const c =
|
|
3945
|
+
const c = E.fields.filter((b) => (b.formCustomComponentes ?? []).some((B) => B.permissionCode == "tableShow" && B.isFieldCustom));
|
|
3946
3946
|
Y.value = await Promise.all(
|
|
3947
|
-
c.map(async (
|
|
3948
|
-
const B =
|
|
3949
|
-
return
|
|
3950
|
-
label:
|
|
3951
|
-
prop:
|
|
3952
|
-
align:
|
|
3953
|
-
width:
|
|
3954
|
-
minWidth:
|
|
3955
|
-
showOverflowTooltip:
|
|
3956
|
-
sort:
|
|
3957
|
-
},
|
|
3947
|
+
c.map(async (b) => {
|
|
3948
|
+
const B = b.formCustomComponentes.find((M) => M.permissionCode == "tableShow"), { customComponentUrl: W, customComponentName: V } = B, x = await nt(W);
|
|
3949
|
+
return b.customTableHeaderName = V, b.customTableHeaderUrl = W, b[`customTableHeaderInstance_${V}`] = x, b.headerItem = {
|
|
3950
|
+
label: b.fieldName,
|
|
3951
|
+
prop: b.fieldKey,
|
|
3952
|
+
align: b.tableCellAlignType,
|
|
3953
|
+
width: b.tableCellWidthType == "default" ? b.tableCellWidth : "",
|
|
3954
|
+
minWidth: b.tableCellWidthType == "min" ? b.tableCellWidth : "",
|
|
3955
|
+
showOverflowTooltip: b.isTableCellOverflowTooltip || !1,
|
|
3956
|
+
sort: b.isTableCellSort || !1
|
|
3957
|
+
}, b;
|
|
3958
3958
|
})
|
|
3959
3959
|
);
|
|
3960
|
-
},
|
|
3960
|
+
}, Ne = (c, b) => {
|
|
3961
3961
|
switch (c) {
|
|
3962
3962
|
case "array":
|
|
3963
|
-
return typeof
|
|
3963
|
+
return typeof b == "string" ? b.toString().split().sort((B, W) => B.sort - W.sort) : [b];
|
|
3964
3964
|
case "number":
|
|
3965
|
-
return Number(
|
|
3965
|
+
return Number(b);
|
|
3966
3966
|
case "boolean":
|
|
3967
|
-
return !!
|
|
3967
|
+
return !!b;
|
|
3968
3968
|
default:
|
|
3969
|
-
return
|
|
3969
|
+
return b;
|
|
3970
3970
|
}
|
|
3971
|
-
}, u = (c,
|
|
3972
|
-
function d(c,
|
|
3973
|
-
return c.replace(/\{([^}]+)\}/g, (B,
|
|
3974
|
-
const V =
|
|
3975
|
-
let x =
|
|
3971
|
+
}, u = (c, b) => b[c.fieldKey] ? b[c.fieldKey].toString().includes("T") ? Ve(b[c.fieldKey]).format("YYYY-MM-DD HH:mm:ss") : b[c.fieldKey] : "";
|
|
3972
|
+
function d(c, b = {}) {
|
|
3973
|
+
return c.replace(/\{([^}]+)\}/g, (B, W) => {
|
|
3974
|
+
const V = W.trim().split(".");
|
|
3975
|
+
let x = b;
|
|
3976
3976
|
for (const M of V) {
|
|
3977
3977
|
if (!x || typeof x != "object")
|
|
3978
3978
|
break;
|
|
@@ -3981,104 +3981,104 @@ const oi = {
|
|
|
3981
3981
|
return x !== void 0 ? x : B;
|
|
3982
3982
|
});
|
|
3983
3983
|
}
|
|
3984
|
-
const O = (c) => c ? d(c, D.matchData) : "", K = (c,
|
|
3984
|
+
const O = (c) => c ? d(c, D.matchData) : "", K = (c, b, B) => {
|
|
3985
3985
|
switch (c) {
|
|
3986
3986
|
case "LessThanOrEqual":
|
|
3987
|
-
return
|
|
3987
|
+
return b <= B;
|
|
3988
3988
|
case "LessThan":
|
|
3989
|
-
return
|
|
3989
|
+
return b < B;
|
|
3990
3990
|
case "GreaterThanOrEqual":
|
|
3991
|
-
return
|
|
3991
|
+
return b >= B;
|
|
3992
3992
|
case "GreaterThan":
|
|
3993
|
-
return
|
|
3993
|
+
return b > B;
|
|
3994
3994
|
case "NotEqual":
|
|
3995
|
-
return
|
|
3995
|
+
return b != B;
|
|
3996
3996
|
case "Equal":
|
|
3997
|
-
return
|
|
3997
|
+
return b == B;
|
|
3998
3998
|
default:
|
|
3999
|
-
return
|
|
3999
|
+
return b == B;
|
|
4000
4000
|
}
|
|
4001
|
-
}, be = (c,
|
|
4001
|
+
}, be = (c, b) => {
|
|
4002
4002
|
if (!c.matchFields.length)
|
|
4003
4003
|
return !0;
|
|
4004
|
-
const B = (M) => M.matchType == "default" ?
|
|
4005
|
-
let V = c.matchFields.reduce((M,
|
|
4006
|
-
const ee = B(
|
|
4007
|
-
|
|
4004
|
+
const B = (M) => M.matchType == "default" ? b[M.matchFieldName] : D.matchData[M.matchType][M.matchFieldName];
|
|
4005
|
+
let V = c.matchFields.reduce((M, Q, X) => {
|
|
4006
|
+
const ee = B(Q), Z = K(
|
|
4007
|
+
Q.matchCondition,
|
|
4008
4008
|
ee,
|
|
4009
|
-
|
|
4009
|
+
Q.fieldValue == "" ? null : Q.fieldValue == "true" || Q.fieldValue == "false" ? dt(Q.fieldValue) : Q.fieldValue
|
|
4010
4010
|
);
|
|
4011
|
-
return M +=
|
|
4012
|
-
}, "").split("||"), x = V.reduce((M,
|
|
4011
|
+
return M += Z, X !== c.matchFields.length - 1 && (M += Q.spliceCondition || "&&"), M;
|
|
4012
|
+
}, "").split("||"), x = V.reduce((M, Q, X) => (M += `(${Q})`, X < V.length - 1 && (M += "||"), M), "");
|
|
4013
4013
|
return new Function(`return ${x}`)();
|
|
4014
|
-
}, ge = (c,
|
|
4014
|
+
}, ge = (c, b) => Object.keys(b).length ? g.value.some((B) => B.unique == c.permissionCode) && be(c, b) : !1, se = (c, b) => {
|
|
4015
4015
|
try {
|
|
4016
|
-
return c.length ? c.reduce((B,
|
|
4016
|
+
return c.length ? c.reduce((B, W) => (B[W.submitFieldName] = Ne(W.submitFieldType, W.matchType === "default" || !b ? W.matchFieldName : b[W.matchFieldName]), B), {}) : {};
|
|
4017
4017
|
} catch (B) {
|
|
4018
4018
|
console.error(B);
|
|
4019
4019
|
}
|
|
4020
4020
|
}, T = async (c) => {
|
|
4021
4021
|
try {
|
|
4022
4022
|
f.pageLoading = !0;
|
|
4023
|
-
const
|
|
4023
|
+
const b = D.pageKey ?? L.params.key, {
|
|
4024
4024
|
data: { pageConfigs: B }
|
|
4025
|
-
} = await Pe(
|
|
4026
|
-
return
|
|
4027
|
-
} catch (
|
|
4028
|
-
f.pageLoading = !1, console.error(
|
|
4025
|
+
} = await Pe(b);
|
|
4026
|
+
return E = B.pageConfig ? JSON.parse(B.pageConfig) : {}, f.tableQuery.pageSize = E.tableConfig.pageSize || 10, f.pageLoading = !1, Promise.resolve(Object.keys(E).length);
|
|
4027
|
+
} catch (b) {
|
|
4028
|
+
f.pageLoading = !1, console.error(b);
|
|
4029
4029
|
}
|
|
4030
|
-
}, R = async (c = [],
|
|
4030
|
+
}, R = async (c = [], b = {}, B = !0, W = !1) => {
|
|
4031
4031
|
try {
|
|
4032
4032
|
const V = c.filter(
|
|
4033
|
-
(
|
|
4033
|
+
(Q) => ["select", "multipleSelect", "selectIcon", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "provinceCascade"].includes(Q.fieldType) && (!Reflect.has(Q, "dataList") || !Q.dataList.length || W)
|
|
4034
4034
|
), M = (await Promise.allSettled(
|
|
4035
|
-
V.map(async (
|
|
4036
|
-
const X =
|
|
4035
|
+
V.map(async (Q) => {
|
|
4036
|
+
const X = Q.postRequestParams.filter((ye) => ye.submitType === "default").reduce((ye, je) => (ye[je.submitName] = Ne(je.paramsType, je.submitValue), ye), {}), ee = Q.postRequestParams.filter((ye) => ye.submitType === "match").reduce((ye, je) => (ye[je.submitName] = Ne(je.paramsType, b[je.submitValue][je.submitName]), ye), {}), Z = Q.postRequestParams.filter((ye) => ye.submitType === "dynamic").map((ye) => ({
|
|
4037
4037
|
field: ye.submitName,
|
|
4038
4038
|
operate: ye.submitMatchType,
|
|
4039
|
-
value:
|
|
4039
|
+
value: Ne(ye.paramsType, ye.submitValue)
|
|
4040
4040
|
}));
|
|
4041
4041
|
let _e = {};
|
|
4042
|
-
Object.keys(X).length && (_e = { ..._e, ...X }), Object.keys(ee).length && (_e = { ..._e, ...ee }),
|
|
4042
|
+
Object.keys(X).length && (_e = { ..._e, ...X }), Object.keys(ee).length && (_e = { ..._e, ...ee }), Z.length && (_e.dynamicFilters = Z);
|
|
4043
4043
|
const { data: ot } = await y({
|
|
4044
|
-
url:
|
|
4045
|
-
method:
|
|
4044
|
+
url: Q.fieldRequestUrl,
|
|
4045
|
+
method: Q.fieldRequestType || "GET",
|
|
4046
4046
|
data: _e
|
|
4047
4047
|
});
|
|
4048
4048
|
return Promise.resolve({
|
|
4049
|
-
...
|
|
4049
|
+
...Q,
|
|
4050
4050
|
dataList: ot || []
|
|
4051
4051
|
});
|
|
4052
4052
|
})
|
|
4053
|
-
)).filter((
|
|
4054
|
-
return B &&
|
|
4055
|
-
const X = M.find((ee) =>
|
|
4056
|
-
X && (
|
|
4053
|
+
)).filter((Q) => Q.status === "fulfilled" && Reflect.has(Q, "value")).map((Q) => Q.value);
|
|
4054
|
+
return B && E.fields.forEach((Q) => {
|
|
4055
|
+
const X = M.find((ee) => Q.fieldName == ee.fieldName && Q.fieldKey == ee.fieldKey);
|
|
4056
|
+
X && (Q.dataList = (X == null ? void 0 : X.dataList) ?? []);
|
|
4057
4057
|
}), M;
|
|
4058
4058
|
} catch (V) {
|
|
4059
4059
|
console.error(V);
|
|
4060
4060
|
}
|
|
4061
|
-
},
|
|
4061
|
+
}, le = kt(() => {
|
|
4062
4062
|
const {
|
|
4063
4063
|
tableConfig: { tableMoreBtnSplitNumber: c }
|
|
4064
|
-
} =
|
|
4064
|
+
} = E;
|
|
4065
4065
|
return !c || c >= P.value.length;
|
|
4066
4066
|
}), Ee = () => {
|
|
4067
4067
|
const {
|
|
4068
4068
|
tableConfig: { tableMoreBtnSplitNumber: c }
|
|
4069
|
-
} =
|
|
4070
|
-
return
|
|
4069
|
+
} = E;
|
|
4070
|
+
return le.value ? P.value : P.value.slice(0, c);
|
|
4071
4071
|
}, lt = () => {
|
|
4072
|
-
var
|
|
4072
|
+
var b;
|
|
4073
4073
|
const {
|
|
4074
4074
|
tableConfig: { tableMoreBtnSplitNumber: c }
|
|
4075
|
-
} =
|
|
4076
|
-
return
|
|
4075
|
+
} = E;
|
|
4076
|
+
return le.value ? [] : P.value.slice(c, (b = P.value) == null ? void 0 : b.length);
|
|
4077
4077
|
}, Ut = async (c) => {
|
|
4078
4078
|
try {
|
|
4079
|
-
const
|
|
4080
|
-
let
|
|
4081
|
-
const M = x.formCustomComponentes.some((
|
|
4079
|
+
const b = (c || []).filter((x) => x.useScenes.some((M) => ["tableShow"].includes(M))).sort((x, M) => x.sort - M.sort), B = ["editor", "upload", "date"];
|
|
4080
|
+
let W = b.map((x) => {
|
|
4081
|
+
const M = x.formCustomComponentes.some((Q) => Q.permissionCode == "tableShow" && Q.isFieldCustom);
|
|
4082
4082
|
return {
|
|
4083
4083
|
label: x.fieldName,
|
|
4084
4084
|
prop: x.fieldKey,
|
|
@@ -4091,88 +4091,88 @@ const oi = {
|
|
|
4091
4091
|
isCustomTableHeader: M
|
|
4092
4092
|
};
|
|
4093
4093
|
});
|
|
4094
|
-
|
|
4094
|
+
E.tableConfig.isSerialNumber && W.unshift({ prop: "serialNumber", width: 80 }), E.tableConfig.isCheckRow && W.unshift({ prop: "checkbox", width: 50 });
|
|
4095
4095
|
const V = P.value.filter((x) => g.value.some((M) => M.unique == x.permissionCode));
|
|
4096
|
-
|
|
4096
|
+
E.tableConfig.isOperateRow && V.length && W.push({ label: i("act.operate"), prop: "operate", width: E.tableConfig.tableOperateCellWidth, render: !0, fixed: "right" }), j.value = b.filter(
|
|
4097
4097
|
(x) => !!x.fieldRequestUrl && x.useScenes.includes("tableShow") || x.tableCellContentType == "link" || B.includes(x.fieldType)
|
|
4098
|
-
), h.value =
|
|
4099
|
-
} catch (
|
|
4100
|
-
console.error(
|
|
4098
|
+
), h.value = W;
|
|
4099
|
+
} catch (b) {
|
|
4100
|
+
console.error(b);
|
|
4101
4101
|
}
|
|
4102
4102
|
}, mt = () => {
|
|
4103
|
-
P.value = (
|
|
4104
|
-
}, Ze = () =>
|
|
4105
|
-
|
|
4106
|
-
}), c)), Jt = (c,
|
|
4103
|
+
P.value = (E.buttons || []).filter((c) => c.permissionCode !== 1001 && c.btnPostion.includes("table")).sort((c, b) => c.sort - b.sort).map((c) => (c.loading = !1, c.btnAlias && (c.btnName = c.btnAlias), c));
|
|
4104
|
+
}, Ze = () => E.fields.filter((c) => c.useScenes.includes("tableSearch")).map((c) => (["date", "dateRange"].includes(c.fieldType) ? c.queryValue = c.tableQueryDefaultValue ? c.tableQueryDefaultValue : Ft(c) : c.queryValue = (c == null ? void 0 : c.tableQueryDefaultValue) || void 0, D.defaultParams.some((b) => {
|
|
4105
|
+
b.field == c.fieldKey && b.operate === c.tableQueryCondition && (c.queryValue = b.value);
|
|
4106
|
+
}), c)), Jt = (c, b = "queryValue") => c ? (c || []).filter((W) => !!W[b]).reduce((W, V) => {
|
|
4107
4107
|
var M;
|
|
4108
4108
|
const x = ft(V);
|
|
4109
4109
|
if (V.fieldType === "date" && x["value-format"] !== "YYYY") {
|
|
4110
|
-
const
|
|
4111
|
-
|
|
4112
|
-
...
|
|
4113
|
-
{ field: V.fieldKey, operate: "GreaterThanOrEqual", value: Ve(V[
|
|
4114
|
-
{ field: V.fieldKey, operate: "LessThanOrEqual", value: Ve(V[
|
|
4110
|
+
const Q = x != null && x.dayJsType ? Xs[(M = V.fieldUiProps) == null ? void 0 : M.dayJsType] : "day", X = x["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
4111
|
+
W = [
|
|
4112
|
+
...W,
|
|
4113
|
+
{ field: V.fieldKey, operate: "GreaterThanOrEqual", value: Ve(V[b]).startOf(Q).format(X) },
|
|
4114
|
+
{ field: V.fieldKey, operate: "LessThanOrEqual", value: Ve(V[b]).endOf(Q).format(X) }
|
|
4115
4115
|
];
|
|
4116
|
-
} else if (V.fieldType === "dateRange" && V[
|
|
4116
|
+
} else if (V.fieldType === "dateRange" && V[b].length)
|
|
4117
4117
|
if (V.fieldKey.includes("&")) {
|
|
4118
|
-
const
|
|
4119
|
-
|
|
4120
|
-
...
|
|
4121
|
-
{ field:
|
|
4122
|
-
{ field:
|
|
4118
|
+
const Q = V.fieldKey.split("&") || [];
|
|
4119
|
+
W = [
|
|
4120
|
+
...W,
|
|
4121
|
+
{ field: Q[0], operate: "GreaterThanOrEqual", value: V.queryValue[0] },
|
|
4122
|
+
{ field: Q[1], operate: "LessThanOrEqual", value: V.queryValue[1] }
|
|
4123
4123
|
];
|
|
4124
4124
|
} else
|
|
4125
|
-
|
|
4126
|
-
...
|
|
4125
|
+
W = [
|
|
4126
|
+
...W,
|
|
4127
4127
|
{ field: V.fieldKey, operate: "GreaterThanOrEqual", value: V.queryValue[0] },
|
|
4128
4128
|
{ field: V.fieldKey, operate: "LessThanOrEqual", value: V.queryValue[1] }
|
|
4129
4129
|
];
|
|
4130
|
-
else if (["provinceCascade"].includes(V.fieldType) && V[
|
|
4131
|
-
const
|
|
4132
|
-
|
|
4130
|
+
else if (["provinceCascade"].includes(V.fieldType) && V[b].length) {
|
|
4131
|
+
const Q = (V.fieldKey.split("&") || []).map((X, ee) => ({ field: X, operate: "Equal", value: V.queryValue[ee] }));
|
|
4132
|
+
W = [...W, ...Q];
|
|
4133
4133
|
} else
|
|
4134
|
-
return Array.isArray(V[
|
|
4135
|
-
...
|
|
4134
|
+
return Array.isArray(V[b]) && !V[b].length ? [...W] : [
|
|
4135
|
+
...W,
|
|
4136
4136
|
{
|
|
4137
4137
|
field: V.fieldKey,
|
|
4138
4138
|
operate: V.tableQueryCondition,
|
|
4139
|
-
value: V.tableQueryCondition === "In" && V[
|
|
4139
|
+
value: V.tableQueryCondition === "In" && V[b] && typeof V[b] == "string" ? V[b].split(";") : V[b] == "true" || V[b] == "false" ? dt(V[b]) : V[b]
|
|
4140
4140
|
}
|
|
4141
4141
|
];
|
|
4142
|
-
return
|
|
4143
|
-
}, []) : [], rn = (c,
|
|
4144
|
-
if (!c.dataList || !Reflect.has(
|
|
4142
|
+
return W;
|
|
4143
|
+
}, []) : [], rn = (c, b) => {
|
|
4144
|
+
if (!c.dataList || !Reflect.has(b, c.fieldKey))
|
|
4145
4145
|
return "";
|
|
4146
|
-
const B =
|
|
4146
|
+
const B = b[c.fieldKey];
|
|
4147
4147
|
if (!B && B !== 0 && B !== !1)
|
|
4148
4148
|
return "";
|
|
4149
|
-
const
|
|
4149
|
+
const W = ft(c), V = Object.assign({ key: "key", value: "value" }, W.props || {});
|
|
4150
4150
|
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(c.fieldType) && (V.key = V.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(c.fieldType) ? (c.dataList || []).filter((x) => {
|
|
4151
|
-
const M = c.fieldType === "selectIcon" ? `btn-${x[V.value]}` : x[V.value],
|
|
4152
|
-
return Array.isArray(B) ? B.some((X) => X == M == X) : typeof B == "string" ? B.split(";").includes(
|
|
4151
|
+
const M = c.fieldType === "selectIcon" ? `btn-${x[V.value]}` : x[V.value], Q = M == "true" || M == "false" ? dt(M) : M;
|
|
4152
|
+
return Array.isArray(B) ? B.some((X) => X == M == X) : typeof B == "string" ? B.split(";").includes(Q) : B == Q;
|
|
4153
4153
|
}).map((x) => x[V.key]).join(";") : B;
|
|
4154
4154
|
}, Ge = async (c = []) => {
|
|
4155
4155
|
try {
|
|
4156
4156
|
f.tableLoading = !0;
|
|
4157
|
-
const
|
|
4158
|
-
(x) => !(
|
|
4159
|
-
), B =
|
|
4157
|
+
const b = D.defaultParams.filter(
|
|
4158
|
+
(x) => !(E.fields ?? []).some((M) => M.fieldKey === x.field && M.tableQueryCondition === x.operate && M.useScenes.includes("tableSearch"))
|
|
4159
|
+
), B = E.tableConfig.defaultParams.map((x) => ({
|
|
4160
4160
|
field: x.submitFieldName,
|
|
4161
4161
|
operate: x.matchValue,
|
|
4162
|
-
value:
|
|
4163
|
-
})),
|
|
4164
|
-
console.log("dynamicFilters",
|
|
4162
|
+
value: Ne(x.submitFieldType, x.defaultValue)
|
|
4163
|
+
})), W = [...b, ...B, ...Jt(c)];
|
|
4164
|
+
console.log("dynamicFilters", W), E.tableConfig.isPagination || (f.tableQuery.pageSize = 9999);
|
|
4165
4165
|
const { data: V } = await y({
|
|
4166
|
-
url:
|
|
4166
|
+
url: E.tableConfig.dataUrl,
|
|
4167
4167
|
method: "POST",
|
|
4168
4168
|
data: {
|
|
4169
4169
|
...f.tableQuery,
|
|
4170
|
-
dynamicFilters:
|
|
4170
|
+
dynamicFilters: W
|
|
4171
4171
|
}
|
|
4172
4172
|
});
|
|
4173
4173
|
f.tableTotal = V.totalCount || 0, F.value = V.datas || [], f.tableLoading = !1;
|
|
4174
|
-
} catch (
|
|
4175
|
-
f.tableLoading = !1, console.error(
|
|
4174
|
+
} catch (b) {
|
|
4175
|
+
f.tableLoading = !1, console.error(b);
|
|
4176
4176
|
}
|
|
4177
4177
|
}, na = async () => {
|
|
4178
4178
|
try {
|
|
@@ -4182,26 +4182,26 @@ const oi = {
|
|
|
4182
4182
|
A.value = "end";
|
|
4183
4183
|
return;
|
|
4184
4184
|
}
|
|
4185
|
-
await It(), await at(), await R(
|
|
4185
|
+
await It(), await at(), await R(E.fields.filter((x) => x.useScenes.some((M) => ["tableSearch", "tableShow"].includes(M)))), A.value = "success";
|
|
4186
4186
|
const B = sessionStorage.getItem("accessToken"), V = JSON.parse(Ys.decode(B.split(".")[1]))["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];
|
|
4187
|
-
g.value = (await yt({ roleId: V, key: c })).data.datas || [], mt(), Ut(
|
|
4187
|
+
g.value = (await yt({ roleId: V, key: c })).data.datas || [], mt(), Ut(E.fields), Ke(), w = Ze(), (!Reflect.has(E.tableConfig, "isExecuteImmediatelyTableApi") || E.tableConfig.isExecuteImmediatelyTableApi) && await Ge(w), v("load"), console.log(E);
|
|
4188
4188
|
} catch (c) {
|
|
4189
4189
|
console.error(c), A.value = "end";
|
|
4190
4190
|
}
|
|
4191
4191
|
};
|
|
4192
|
-
ke("globalProps", D), ke("loadComponents", nt), ke("defineAsyncLoadComponents", Nt), ke("stringToBoolean", dt), ke("matchCondition", K), ke("menuPermissionBtns", g), ke("getTableData", Ge), ke("tableBtnRefs", $.value), ke("formatDataType",
|
|
4192
|
+
ke("globalProps", D), ke("loadComponents", nt), ke("defineAsyncLoadComponents", Nt), ke("stringToBoolean", dt), ke("matchCondition", K), ke("menuPermissionBtns", g), ke("getTableData", Ge), ke("tableBtnRefs", $.value), ke("formatDataType", Ne), ke("getFieldUiProps", ft), ke("disposeRequestData", R), ke("disposeDate", Ft), ke("getDefaultQueryValues", Ze), ut(
|
|
4193
4193
|
() => D.pageKey,
|
|
4194
|
-
(c,
|
|
4194
|
+
(c, b) => {
|
|
4195
4195
|
tt(), na();
|
|
4196
4196
|
},
|
|
4197
4197
|
{ immediate: !0 }
|
|
4198
4198
|
);
|
|
4199
|
-
const aa = async (c,
|
|
4200
|
-
w = c, await Ge(c), v("refresh"),
|
|
4199
|
+
const aa = async (c, b) => {
|
|
4200
|
+
w = c, await Ge(c), v("refresh"), b(!0);
|
|
4201
4201
|
}, Bl = (c) => {
|
|
4202
4202
|
v("operate", c), Ge(w);
|
|
4203
|
-
}, qt = (c,
|
|
4204
|
-
const { exportFile: B, importFile:
|
|
4203
|
+
}, qt = (c, b) => {
|
|
4204
|
+
const { exportFile: B, importFile: W, downloadFile: V } = $s();
|
|
4205
4205
|
if (c.isCustomBtn) {
|
|
4206
4206
|
if (c.customType == "component" && !Reflect.has(c, [c.customComponentName])) {
|
|
4207
4207
|
Qe({
|
|
@@ -4214,14 +4214,14 @@ const oi = {
|
|
|
4214
4214
|
}
|
|
4215
4215
|
if (c.customType == "code") {
|
|
4216
4216
|
try {
|
|
4217
|
-
new Function("router", "route", "data", "configItem", c.codeStr)(S, L,
|
|
4218
|
-
} catch (
|
|
4219
|
-
console.error(
|
|
4217
|
+
new Function("router", "route", "data", "configItem", c.codeStr)(S, L, b, c);
|
|
4218
|
+
} catch (Q) {
|
|
4219
|
+
console.error(Q);
|
|
4220
4220
|
}
|
|
4221
4221
|
return;
|
|
4222
4222
|
}
|
|
4223
4223
|
const M = `${c.customComponentName}-${c.permissionCode}`;
|
|
4224
|
-
$.value[M] && $.value[M].onTigger({ rowData:
|
|
4224
|
+
$.value[M] && $.value[M].onTigger({ rowData: b, tableSelection: f.tableSelection });
|
|
4225
4225
|
return;
|
|
4226
4226
|
}
|
|
4227
4227
|
if (c.submitWay == "associationSubTable") {
|
|
@@ -4232,32 +4232,34 @@ const oi = {
|
|
|
4232
4232
|
c.opeateLoading = !0;
|
|
4233
4233
|
const M = [...D.defaultParams, ...Jt(w)];
|
|
4234
4234
|
console.log(M);
|
|
4235
|
-
const
|
|
4235
|
+
const Q = (c.submitFields || []).filter((Z) => Z.matchType == "match").reduce((Z, _e) => (Z[_e.submitFieldName] = Ne(_e.submitFieldType, b[_e.matchFieldName]), Z), {}), X = (c.submitFields || []).filter((Z) => Z.matchType == "default").reduce((Z, _e) => (Z[_e.submitFieldName] = Ne(_e.submitFieldType, _e.matchFieldName), Z), {}), ee = (c.submitFields || []).filter((Z) => Z.matchType == "selection").reduce((Z, _e) => (Z[_e.submitFieldName] = f.tableSelection.reduce((ot, ye) => (_e.submitFieldType === "array" ? ot = [...ot, ...Ne(_e.submitFieldType, ye[_e.matchFieldName])] : ot = [...ot, Ne(_e.submitFieldType, ye[_e.matchFieldName])], ot), []), Z), {});
|
|
4236
4236
|
y({
|
|
4237
4237
|
url: O(c.requestUrl),
|
|
4238
4238
|
method: "post",
|
|
4239
|
-
data: { ...
|
|
4239
|
+
data: { ...Q, ...X, ...ee, dynamicFilters: M },
|
|
4240
4240
|
responseType: ["exportUrl"].includes(c.submitWay) ? "json" : "blob"
|
|
4241
|
-
}).then((
|
|
4242
|
-
c.submitWay == "exportUrl" ? V(y,
|
|
4243
|
-
}).catch((
|
|
4241
|
+
}).then((Z) => {
|
|
4242
|
+
c.submitWay == "exportUrl" ? V(y, Z.data) : B(Z), v("operate", c), c.opeateLoading = !1;
|
|
4243
|
+
}).catch((Z) => {
|
|
4244
4244
|
c.opeateLoading = !1;
|
|
4245
4245
|
});
|
|
4246
4246
|
return;
|
|
4247
4247
|
}
|
|
4248
4248
|
if (c.submitWay == "import") {
|
|
4249
|
-
|
|
4249
|
+
W({}, (M) => {
|
|
4250
4250
|
c.opeateLoading = !0;
|
|
4251
|
-
const
|
|
4251
|
+
const Q = new FormData();
|
|
4252
4252
|
return (c.submitFields || []).filter((ee) => ee.matchType == "default").forEach((ee) => {
|
|
4253
|
-
|
|
4254
|
-
}),
|
|
4253
|
+
Q.append(ee.submitFieldName, Ne(ee.submitFieldType, ee.matchFieldName));
|
|
4254
|
+
}), Object.keys(b) && (c.submitFields || []).filter((Z) => Z.matchType == "match").forEach((Z) => {
|
|
4255
|
+
Q.append(Z.submitFieldName, Ne(Z.submitFieldType, b[Z.matchFieldName]));
|
|
4256
|
+
}), Q.append("file", M.target.files[0]), y({
|
|
4255
4257
|
url: O(c.requestUrl),
|
|
4256
4258
|
method: "post",
|
|
4257
4259
|
headers: {
|
|
4258
4260
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4259
4261
|
},
|
|
4260
|
-
data:
|
|
4262
|
+
data: Q
|
|
4261
4263
|
}).then((ee) => {
|
|
4262
4264
|
Qe({ title: i("act.tip"), message: `${ee.msg}`, type: "success", duration: 2500 }), v("operate", c), Ge(w), c.opeateLoading = !1;
|
|
4263
4265
|
}).catch(() => {
|
|
@@ -4267,7 +4269,7 @@ const oi = {
|
|
|
4267
4269
|
return;
|
|
4268
4270
|
}
|
|
4269
4271
|
if (c.btnPostion === "header" && c.submitWay === "messageBox") {
|
|
4270
|
-
if (!
|
|
4272
|
+
if (!E.tableConfig.isCheckRow) {
|
|
4271
4273
|
Qe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4272
4274
|
return;
|
|
4273
4275
|
}
|
|
@@ -4276,7 +4278,7 @@ const oi = {
|
|
|
4276
4278
|
return;
|
|
4277
4279
|
}
|
|
4278
4280
|
c.opeateLoading = !0;
|
|
4279
|
-
const M = (c.submitFields || []).filter((X) => X.matchType == "default").reduce((X, ee) => (X[ee.submitFieldName] =
|
|
4281
|
+
const M = (c.submitFields || []).filter((X) => X.matchType == "default").reduce((X, ee) => (X[ee.submitFieldName] = Ne(ee.submitFieldType, ee.matchFieldName), X), {}), Q = (c.submitFields || []).filter((X) => X.matchType == "match").reduce((X, ee) => (X[ee.submitFieldName] = f.tableSelection.reduce((Z, _e) => (ee.submitFieldType === "array" ? Z = [...Z, ...Ne(ee.submitFieldType, _e[ee.matchFieldName])] : Z = [...Z, Ne(ee.submitFieldType, _e[ee.matchFieldName])], Z), []), ee.submitFieldType === "string" && (X[ee.submitFieldName] = X[ee.submitFieldName].join()), X), {});
|
|
4280
4282
|
oa.confirm(`${i("act.isExecuteOperate")}?`, i("act.tip"), {
|
|
4281
4283
|
confirmButtonText: i("act.enter"),
|
|
4282
4284
|
cancelButtonText: i("act.cancel"),
|
|
@@ -4285,7 +4287,7 @@ const oi = {
|
|
|
4285
4287
|
y({
|
|
4286
4288
|
url: O(c.requestUrl),
|
|
4287
4289
|
method: "post",
|
|
4288
|
-
data: { ...
|
|
4290
|
+
data: { ...Q, ...M }
|
|
4289
4291
|
}).then((X) => {
|
|
4290
4292
|
c.opeateLoading = !1, Qe({ type: "success", title: i("act.tip"), message: `${c.btnName}${i("act.success")}`, duration: 2500 }), v("operate", c), Ge(w);
|
|
4291
4293
|
}).catch((X) => {
|
|
@@ -4304,7 +4306,7 @@ const oi = {
|
|
|
4304
4306
|
c.opeateLoading = !0, y({
|
|
4305
4307
|
url: O(c.requestUrl),
|
|
4306
4308
|
method: "post",
|
|
4307
|
-
data: { ...
|
|
4309
|
+
data: { ...se(c.submitFields, b) }
|
|
4308
4310
|
}).then((M) => {
|
|
4309
4311
|
c.opeateLoading = !1, Qe({ type: "success", title: i("act.tip"), message: `${c.btnName}${i("act.success")}`, duration: 2500 }), v("operate", c), Ge(w);
|
|
4310
4312
|
}).catch((M) => {
|
|
@@ -4315,7 +4317,7 @@ const oi = {
|
|
|
4315
4317
|
return;
|
|
4316
4318
|
}
|
|
4317
4319
|
if (c.btnPostion === "header" && c.submitWay === "dialog" && (c.submitFields || []).some((M) => M.submitFieldMatchOrigin === "selections") && !f.tableSelection.length) {
|
|
4318
|
-
if (!
|
|
4320
|
+
if (!E.tableConfig.isCheckRow) {
|
|
4319
4321
|
Qe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4320
4322
|
return;
|
|
4321
4323
|
}
|
|
@@ -4325,7 +4327,7 @@ const oi = {
|
|
|
4325
4327
|
}
|
|
4326
4328
|
return;
|
|
4327
4329
|
}
|
|
4328
|
-
let x = (
|
|
4330
|
+
let x = (E.fields || []).filter((M) => M.useScenes.includes(c.permissionCode)).map((M) => (M.customFiledsComponentes = M.formCustomComponentes.find((Q) => Q.permissionCode == c.permissionCode) || {}, M));
|
|
4329
4331
|
if (!x.length) {
|
|
4330
4332
|
Qe({ title: i("act.tip"), message: i("act.buttonBindField"), type: "warning", duration: 2500 });
|
|
4331
4333
|
return;
|
|
@@ -4333,23 +4335,23 @@ const oi = {
|
|
|
4333
4335
|
if (c.submitWay === "dialog") {
|
|
4334
4336
|
f.dialogTitle = c.btnName, f.dialogData = {
|
|
4335
4337
|
dataItem: { ...c },
|
|
4336
|
-
rowData: { ...
|
|
4338
|
+
rowData: { ...b },
|
|
4337
4339
|
selections: f.tableSelection || [],
|
|
4338
|
-
formConfig:
|
|
4340
|
+
formConfig: E.formConfig,
|
|
4339
4341
|
formList: x
|
|
4340
4342
|
}, f.showFormDialog = !0;
|
|
4341
4343
|
return;
|
|
4342
4344
|
}
|
|
4343
|
-
}, Ml = (c,
|
|
4344
|
-
v("onClickRow", c,
|
|
4345
|
-
}, xl = (c,
|
|
4346
|
-
xe.value = c, v("changeExpansionRow", c,
|
|
4347
|
-
}, Vl = (c,
|
|
4348
|
-
f.editorDialogTitle = `${i("act.preview")}${c.fieldName}`, f.dialogData = { ...
|
|
4345
|
+
}, Ml = (c, b, B) => {
|
|
4346
|
+
v("onClickRow", c, b, B);
|
|
4347
|
+
}, xl = (c, b) => {
|
|
4348
|
+
xe.value = c, v("changeExpansionRow", c, b);
|
|
4349
|
+
}, Vl = (c, b) => {
|
|
4350
|
+
f.editorDialogTitle = `${i("act.preview")}${c.fieldName}`, f.dialogData = { ...b, editorContent: b[c.fieldKey] }, f.showEditorPreDialog = !0;
|
|
4349
4351
|
};
|
|
4350
|
-
return t({ loadData: na, getDynamicFiltersData: Ct, getTableData: Ge, getTableSelection: Tt, setTableSelection: ct }), (c,
|
|
4351
|
-
const B = G("el-table-column"),
|
|
4352
|
-
return xt((H(),
|
|
4352
|
+
return t({ loadData: na, getDynamicFiltersData: Ct, getTableData: Ge, getTableSelection: Tt, setTableSelection: ct }), (c, b) => {
|
|
4353
|
+
const B = G("el-table-column"), W = G("el-image"), V = G("el-link"), x = G("a-svg-icon"), M = G("el-button"), Q = G("el-dropdown-item"), X = G("el-dropdown-menu"), ee = G("el-dropdown"), Z = G("el-empty"), _e = G("el-card"), ot = zt("loading");
|
|
4354
|
+
return xt((H(), re(_e, {
|
|
4353
4355
|
class: "act-module",
|
|
4354
4356
|
ref_key: "actModuleRef",
|
|
4355
4357
|
ref: Ce,
|
|
@@ -4362,43 +4364,43 @@ const oi = {
|
|
|
4362
4364
|
I(N(a), {
|
|
4363
4365
|
ref_key: "queryModuleRef",
|
|
4364
4366
|
ref: ce,
|
|
4365
|
-
data: N(
|
|
4367
|
+
data: N(E),
|
|
4366
4368
|
onReset: aa,
|
|
4367
4369
|
onSearch: aa
|
|
4368
4370
|
}, null, 8, ["data"]),
|
|
4369
4371
|
I(N(l), {
|
|
4370
4372
|
ref_key: "headerButtonsModuleRef",
|
|
4371
4373
|
ref: Me,
|
|
4372
|
-
data: N(
|
|
4374
|
+
data: N(E),
|
|
4373
4375
|
onOnOperate: qt
|
|
4374
4376
|
}, null, 8, ["data"]),
|
|
4375
4377
|
I(N(o), {
|
|
4376
4378
|
ref_key: "aTableRef",
|
|
4377
|
-
ref:
|
|
4379
|
+
ref: ae,
|
|
4378
4380
|
loading: N(f).tableLoading,
|
|
4379
4381
|
total: N(f).tableTotal,
|
|
4380
4382
|
tableQuery: N(f).tableQuery,
|
|
4381
|
-
"onUpdate:tableQuery":
|
|
4383
|
+
"onUpdate:tableQuery": b[0] || (b[0] = (ne) => N(f).tableQuery = ne),
|
|
4382
4384
|
selection: N(f).tableSelection,
|
|
4383
|
-
"onUpdate:selection":
|
|
4385
|
+
"onUpdate:selection": b[1] || (b[1] = (ne) => N(f).tableSelection = ne),
|
|
4384
4386
|
headers: N(h),
|
|
4385
4387
|
data: N(F),
|
|
4386
|
-
showPagination: (je = (ye = N(
|
|
4388
|
+
showPagination: (je = (ye = N(E)) == null ? void 0 : ye.tableConfig) == null ? void 0 : je.isPagination,
|
|
4387
4389
|
tableConfig: D.tableConfig,
|
|
4388
4390
|
maxHeight: J.value,
|
|
4389
4391
|
onRefresh: fe,
|
|
4390
4392
|
onOnRowClick: Ml,
|
|
4391
4393
|
onChangeExpand: xl
|
|
4392
4394
|
}, Kl({
|
|
4393
|
-
operate: k(({ scope:
|
|
4394
|
-
(H(!0), Ae(Oe, null, qe(Ee(), (
|
|
4395
|
-
ge(
|
|
4396
|
-
|
|
4395
|
+
operate: k(({ scope: ne }) => [
|
|
4396
|
+
(H(!0), Ae(Oe, null, qe(Ee(), (oe, Je) => (H(), Ae(Oe, { key: Je }, [
|
|
4397
|
+
ge(oe, ne.row) ? (H(), Ae(Oe, { key: 0 }, [
|
|
4398
|
+
oe.isCustomBtn && oe.customType == "component" ? (H(), re(Nn(oe[oe.customComponentName]), {
|
|
4397
4399
|
key: 0,
|
|
4398
4400
|
ref_for: !0,
|
|
4399
|
-
ref: (pt) => N($)[`${
|
|
4400
|
-
buttonData:
|
|
4401
|
-
scope:
|
|
4401
|
+
ref: (pt) => N($)[`${oe.customComponentName}-${oe.permissionCode}`] = pt,
|
|
4402
|
+
buttonData: oe,
|
|
4403
|
+
scope: ne,
|
|
4402
4404
|
onRefresh: Ge
|
|
4403
4405
|
}, {
|
|
4404
4406
|
default: k(() => [
|
|
@@ -4407,62 +4409,62 @@ const oi = {
|
|
|
4407
4409
|
type: "primary",
|
|
4408
4410
|
link: "",
|
|
4409
4411
|
size: "small",
|
|
4410
|
-
onClick: (pt) => qt(
|
|
4412
|
+
onClick: (pt) => qt(oe, ne.row)
|
|
4411
4413
|
}, {
|
|
4412
4414
|
default: k(() => [
|
|
4413
|
-
|
|
4415
|
+
oe.btnIcon ? (H(), re(x, {
|
|
4414
4416
|
key: 0,
|
|
4415
4417
|
class: "mr2",
|
|
4416
|
-
name:
|
|
4418
|
+
name: oe.btnIcon,
|
|
4417
4419
|
width: "12",
|
|
4418
4420
|
height: "12",
|
|
4419
4421
|
color: N(_)
|
|
4420
4422
|
}, null, 8, ["name", "color"])) : We("", !0),
|
|
4421
|
-
ve(" " + He(
|
|
4423
|
+
ve(" " + He(oe.btnName), 1)
|
|
4422
4424
|
]),
|
|
4423
4425
|
_: 2
|
|
4424
4426
|
}, 1032, ["onClick"])
|
|
4425
4427
|
]),
|
|
4426
4428
|
_: 2
|
|
4427
|
-
}, 1064, ["buttonData", "scope"])) : (H(),
|
|
4429
|
+
}, 1064, ["buttonData", "scope"])) : (H(), re(M, {
|
|
4428
4430
|
key: 1,
|
|
4429
4431
|
class: "ml4",
|
|
4430
4432
|
type: "primary",
|
|
4431
4433
|
link: "",
|
|
4432
4434
|
size: "small",
|
|
4433
|
-
onClick: (pt) => qt(
|
|
4435
|
+
onClick: (pt) => qt(oe, ne.row)
|
|
4434
4436
|
}, {
|
|
4435
4437
|
default: k(() => [
|
|
4436
|
-
|
|
4438
|
+
oe.btnIcon ? (H(), re(x, {
|
|
4437
4439
|
key: 0,
|
|
4438
4440
|
class: "mr2",
|
|
4439
|
-
name:
|
|
4441
|
+
name: oe.btnIcon,
|
|
4440
4442
|
width: "12",
|
|
4441
4443
|
height: "12",
|
|
4442
4444
|
color: N(_)
|
|
4443
4445
|
}, null, 8, ["name", "color"])) : We("", !0),
|
|
4444
|
-
ve(" " + He(
|
|
4446
|
+
ve(" " + He(oe.btnName), 1)
|
|
4445
4447
|
]),
|
|
4446
4448
|
_: 2
|
|
4447
4449
|
}, 1032, ["onClick"]))
|
|
4448
4450
|
], 64)) : We("", !0)
|
|
4449
4451
|
], 64))), 128)),
|
|
4450
|
-
|
|
4452
|
+
le.value ? We("", !0) : (H(), re(ee, {
|
|
4451
4453
|
key: 0,
|
|
4452
4454
|
class: "table-opreate-dropdown"
|
|
4453
4455
|
}, {
|
|
4454
4456
|
dropdown: k(() => [
|
|
4455
4457
|
I(X, null, {
|
|
4456
4458
|
default: k(() => [
|
|
4457
|
-
(H(!0), Ae(Oe, null, qe(lt(), (
|
|
4459
|
+
(H(!0), Ae(Oe, null, qe(lt(), (oe, Je) => (H(), re(Q, { key: Je }, {
|
|
4458
4460
|
default: k(() => [
|
|
4459
|
-
ge(
|
|
4460
|
-
|
|
4461
|
+
ge(oe, ne.row) ? (H(), Ae(Oe, { key: 0 }, [
|
|
4462
|
+
oe.isCustomBtn && oe.customType == "component" ? (H(), re(Nn(oe[oe.customComponentName]), {
|
|
4461
4463
|
key: 0,
|
|
4462
4464
|
ref_for: !0,
|
|
4463
|
-
ref: (pt) => N($)[`${
|
|
4464
|
-
buttonData:
|
|
4465
|
-
scope:
|
|
4465
|
+
ref: (pt) => N($)[`${oe.customComponentName}-${oe.permissionCode}`] = pt,
|
|
4466
|
+
buttonData: oe,
|
|
4467
|
+
scope: ne,
|
|
4466
4468
|
onRefresh: Ge
|
|
4467
4469
|
}, {
|
|
4468
4470
|
default: k(() => [
|
|
@@ -4471,41 +4473,41 @@ const oi = {
|
|
|
4471
4473
|
type: "primary",
|
|
4472
4474
|
link: "",
|
|
4473
4475
|
size: "small",
|
|
4474
|
-
onClick: (pt) => qt(
|
|
4476
|
+
onClick: (pt) => qt(oe, ne.row)
|
|
4475
4477
|
}, {
|
|
4476
4478
|
default: k(() => [
|
|
4477
|
-
|
|
4479
|
+
oe.btnIcon ? (H(), re(x, {
|
|
4478
4480
|
key: 0,
|
|
4479
4481
|
class: "mr2",
|
|
4480
|
-
name:
|
|
4482
|
+
name: oe.btnIcon,
|
|
4481
4483
|
width: "12",
|
|
4482
4484
|
height: "12",
|
|
4483
4485
|
color: N(_)
|
|
4484
4486
|
}, null, 8, ["name", "color"])) : We("", !0),
|
|
4485
|
-
ve(" " + He(
|
|
4487
|
+
ve(" " + He(oe.btnName), 1)
|
|
4486
4488
|
]),
|
|
4487
4489
|
_: 2
|
|
4488
4490
|
}, 1032, ["onClick"])
|
|
4489
4491
|
]),
|
|
4490
4492
|
_: 2
|
|
4491
|
-
}, 1064, ["buttonData", "scope"])) : (H(),
|
|
4493
|
+
}, 1064, ["buttonData", "scope"])) : (H(), re(M, {
|
|
4492
4494
|
key: 1,
|
|
4493
4495
|
class: "ml4",
|
|
4494
4496
|
type: "primary",
|
|
4495
4497
|
link: "",
|
|
4496
4498
|
size: "small",
|
|
4497
|
-
onClick: (pt) => qt(
|
|
4499
|
+
onClick: (pt) => qt(oe, ne.row)
|
|
4498
4500
|
}, {
|
|
4499
4501
|
default: k(() => [
|
|
4500
|
-
|
|
4502
|
+
oe.btnIcon ? (H(), re(x, {
|
|
4501
4503
|
key: 0,
|
|
4502
4504
|
class: "mr2",
|
|
4503
|
-
name:
|
|
4505
|
+
name: oe.btnIcon,
|
|
4504
4506
|
width: "12",
|
|
4505
4507
|
height: "12",
|
|
4506
4508
|
color: N(_)
|
|
4507
4509
|
}, null, 8, ["name", "color"])) : We("", !0),
|
|
4508
|
-
ve(" " + He(
|
|
4510
|
+
ve(" " + He(oe.btnName), 1)
|
|
4509
4511
|
]),
|
|
4510
4512
|
_: 2
|
|
4511
4513
|
}, 1032, ["onClick"]))
|
|
@@ -4530,66 +4532,66 @@ const oi = {
|
|
|
4530
4532
|
]),
|
|
4531
4533
|
_: 2
|
|
4532
4534
|
}, [
|
|
4533
|
-
qe(N(Y), (
|
|
4534
|
-
name:
|
|
4535
|
+
qe(N(Y), (ne, oe) => ({
|
|
4536
|
+
name: ne.fieldKey,
|
|
4535
4537
|
fn: k(() => [
|
|
4536
|
-
|
|
4538
|
+
ne[`customTableHeaderInstance_${ne.customTableHeaderName}`] ? (H(), re(Nn(ne[`customTableHeaderInstance_${ne.customTableHeaderName}`]), {
|
|
4537
4539
|
key: 0,
|
|
4538
|
-
data:
|
|
4539
|
-
configData: N(
|
|
4540
|
+
data: ne,
|
|
4541
|
+
configData: N(E),
|
|
4540
4542
|
rowData: N(xe)
|
|
4541
|
-
}, null, 8, ["data", "configData", "rowData"])) : (H(),
|
|
4543
|
+
}, null, 8, ["data", "configData", "rowData"])) : (H(), re(B, {
|
|
4542
4544
|
key: 1,
|
|
4543
|
-
label:
|
|
4545
|
+
label: ne.fieldName + N(i)("act.customTableHeader"),
|
|
4544
4546
|
width: "260"
|
|
4545
4547
|
}, null, 8, ["label"]))
|
|
4546
4548
|
])
|
|
4547
4549
|
})),
|
|
4548
|
-
qe(N(j), (
|
|
4549
|
-
name:
|
|
4550
|
+
qe(N(j), (ne, oe) => ({
|
|
4551
|
+
name: ne.fieldKey,
|
|
4550
4552
|
fn: k(({ scope: Je }) => [
|
|
4551
|
-
|
|
4553
|
+
ne.tableCellContentType == "link" ? (H(), Ae("span", oi, He(Je.row[ne.fieldKey]), 1)) : ne.fieldType == "editor" ? (H(), Ae("span", {
|
|
4552
4554
|
key: 1,
|
|
4553
4555
|
class: "table-link",
|
|
4554
|
-
onClick: (pt) => Vl(
|
|
4555
|
-
}, "点击预览", 8, ri)) :
|
|
4556
|
-
Pt(
|
|
4556
|
+
onClick: (pt) => Vl(ne, Je.row)
|
|
4557
|
+
}, "点击预览", 8, ri)) : ne.fieldType == "upload" ? (H(), Ae(Oe, { key: 2 }, [
|
|
4558
|
+
Pt(ne, Je) ? (H(), re(W, {
|
|
4557
4559
|
key: 0,
|
|
4558
4560
|
class: "file-image",
|
|
4559
4561
|
fit: "cover",
|
|
4560
|
-
"preview-src-list": jt(
|
|
4562
|
+
"preview-src-list": jt(ne, Je),
|
|
4561
4563
|
"preview-teleported": "",
|
|
4562
|
-
src: Gt(
|
|
4564
|
+
src: Gt(ne, Je)
|
|
4563
4565
|
}, {
|
|
4564
4566
|
error: k(() => [
|
|
4565
|
-
Le("div", si, He(
|
|
4567
|
+
Le("div", si, He(ne("act.noImage")), 1)
|
|
4566
4568
|
]),
|
|
4567
4569
|
_: 2
|
|
4568
|
-
}, 1032, ["preview-src-list", "src"])) : (H(),
|
|
4570
|
+
}, 1032, ["preview-src-list", "src"])) : (H(), re(V, {
|
|
4569
4571
|
key: 1,
|
|
4570
4572
|
type: "primary"
|
|
4571
4573
|
}))
|
|
4572
|
-
], 64)) :
|
|
4573
|
-
ve(He(u(
|
|
4574
|
-
], 64)) : (H(), Ae("span", ii, He(rn(
|
|
4574
|
+
], 64)) : ne.fieldType == "date" ? (H(), Ae(Oe, { key: 3 }, [
|
|
4575
|
+
ve(He(u(ne, Je.row)), 1)
|
|
4576
|
+
], 64)) : (H(), Ae("span", ii, He(rn(ne, Je.row)), 1))
|
|
4575
4577
|
])
|
|
4576
4578
|
}))
|
|
4577
4579
|
]), 1032, ["loading", "total", "tableQuery", "selection", "headers", "data", "showPagination", "tableConfig", "maxHeight"])
|
|
4578
4580
|
], 64)) : We("", !0),
|
|
4579
4581
|
I(N(r), {
|
|
4580
4582
|
visible: N(f).showFormDialog,
|
|
4581
|
-
"onUpdate:visible":
|
|
4583
|
+
"onUpdate:visible": b[2] || (b[2] = (ne) => N(f).showFormDialog = ne),
|
|
4582
4584
|
title: N(f).dialogTitle,
|
|
4583
4585
|
data: N(f).dialogData,
|
|
4584
4586
|
onRefresh: Bl
|
|
4585
4587
|
}, null, 8, ["visible", "title", "data"]),
|
|
4586
4588
|
I(N(s), {
|
|
4587
4589
|
visible: N(f).showEditorPreDialog,
|
|
4588
|
-
"onUpdate:visible":
|
|
4590
|
+
"onUpdate:visible": b[3] || (b[3] = (ne) => N(f).showEditorPreDialog = ne),
|
|
4589
4591
|
title: N(f).editorDialogTitle,
|
|
4590
4592
|
data: N(f).dialogData
|
|
4591
4593
|
}, null, 8, ["visible", "title", "data"]),
|
|
4592
|
-
N(A) === "end" ? (H(),
|
|
4594
|
+
N(A) === "end" ? (H(), re(Z, {
|
|
4593
4595
|
key: 1,
|
|
4594
4596
|
description: N(i)("act.noConfigPage")
|
|
4595
4597
|
}, {
|
|
@@ -4610,7 +4612,7 @@ const oi = {
|
|
|
4610
4612
|
]);
|
|
4611
4613
|
};
|
|
4612
4614
|
}
|
|
4613
|
-
}, Pl = /* @__PURE__ */ Rt(ui, [["__scopeId", "data-v-
|
|
4615
|
+
}, Pl = /* @__PURE__ */ Rt(ui, [["__scopeId", "data-v-14befbef"]]), xi = [
|
|
4614
4616
|
{ key: "按钮形式", value: "default" },
|
|
4615
4617
|
{ key: "文字形式", value: "text" }
|
|
4616
4618
|
], Vi = [
|
|
@@ -4722,7 +4724,7 @@ const oi = {
|
|
|
4722
4724
|
formLabelWidth: 120,
|
|
4723
4725
|
formLabelPosition: "top"
|
|
4724
4726
|
});
|
|
4725
|
-
let o =
|
|
4727
|
+
let o = te(null), r = te(l());
|
|
4726
4728
|
return ut(
|
|
4727
4729
|
() => a.modelValue,
|
|
4728
4730
|
(s, i) => {
|
|
@@ -4731,7 +4733,7 @@ const oi = {
|
|
|
4731
4733
|
{ deep: !0, immediate: !0 }
|
|
4732
4734
|
), t({ formRef: o, form: r }), (s, i) => {
|
|
4733
4735
|
const p = G("el-input-number"), C = G("el-form-item"), y = G("el-col"), _ = G("el-option"), L = G("el-select"), S = G("el-row"), v = G("el-form"), D = G("el-card");
|
|
4734
|
-
return H(),
|
|
4736
|
+
return H(), re(D, {
|
|
4735
4737
|
class: "form-card",
|
|
4736
4738
|
shadow: "hover",
|
|
4737
4739
|
header: "表单配置"
|
|
@@ -4807,7 +4809,7 @@ const oi = {
|
|
|
4807
4809
|
placeholder: "请选择"
|
|
4808
4810
|
}, {
|
|
4809
4811
|
default: k(() => [
|
|
4810
|
-
(H(!0), Ae(Oe, null, qe(N(fi), (m, f) => (H(),
|
|
4812
|
+
(H(!0), Ae(Oe, null, qe(N(fi), (m, f) => (H(), re(_, {
|
|
4811
4813
|
key: f + "labelPosition",
|
|
4812
4814
|
label: m.key,
|
|
4813
4815
|
value: m.value
|
|
@@ -4856,7 +4858,7 @@ const _i = {
|
|
|
4856
4858
|
tableQueryRowWidth: 5,
|
|
4857
4859
|
tableMoreBtnSplitNumber: 0
|
|
4858
4860
|
}), o = Ue("conditionList")();
|
|
4859
|
-
let r =
|
|
4861
|
+
let r = te(null), s = te(l());
|
|
4860
4862
|
ut(
|
|
4861
4863
|
() => a.modelValue,
|
|
4862
4864
|
(y, _) => {
|
|
@@ -4879,8 +4881,8 @@ const _i = {
|
|
|
4879
4881
|
y || (s.value.pageSize = 10);
|
|
4880
4882
|
};
|
|
4881
4883
|
return t({ formRef: r, form: s }), (y, _) => {
|
|
4882
|
-
const L = G("el-input"), S = G("el-form-item"), v = G("el-col"), D = G("el-row"), m = G("el-button"), f = G("el-divider"), A = G("el-option"), g = G("el-select"),
|
|
4883
|
-
return H(),
|
|
4884
|
+
const L = G("el-input"), S = G("el-form-item"), v = G("el-col"), D = G("el-row"), m = G("el-button"), f = G("el-divider"), A = G("el-option"), g = G("el-select"), E = G("el-switch"), w = G("el-input-number"), h = G("el-form"), P = G("el-card");
|
|
4885
|
+
return H(), re(P, {
|
|
4884
4886
|
class: "form-card",
|
|
4885
4887
|
shadow: "hover",
|
|
4886
4888
|
header: "表格配置"
|
|
@@ -4932,7 +4934,7 @@ const _i = {
|
|
|
4932
4934
|
]),
|
|
4933
4935
|
_: 1
|
|
4934
4936
|
}),
|
|
4935
|
-
(H(!0), Ae(Oe, null, qe(N(s).defaultParams, (F, j) => (H(),
|
|
4937
|
+
(H(!0), Ae(Oe, null, qe(N(s).defaultParams, (F, j) => (H(), re(D, {
|
|
4936
4938
|
class: "table-post-params",
|
|
4937
4939
|
key: j
|
|
4938
4940
|
}, {
|
|
@@ -4973,7 +4975,7 @@ const _i = {
|
|
|
4973
4975
|
clearable: ""
|
|
4974
4976
|
}, {
|
|
4975
4977
|
default: k(() => [
|
|
4976
|
-
(H(!0), Ae(Oe, null, qe(N(o), (Y, $) => (H(),
|
|
4978
|
+
(H(!0), Ae(Oe, null, qe(N(o), (Y, $) => (H(), re(A, {
|
|
4977
4979
|
key: $,
|
|
4978
4980
|
label: Y.key,
|
|
4979
4981
|
value: Y.value
|
|
@@ -5023,7 +5025,7 @@ const _i = {
|
|
|
5023
5025
|
clearable: ""
|
|
5024
5026
|
}, {
|
|
5025
5027
|
default: k(() => [
|
|
5026
|
-
(H(!0), Ae(Oe, null, qe(N(di), (Y, $) => (H(),
|
|
5028
|
+
(H(!0), Ae(Oe, null, qe(N(di), (Y, $) => (H(), re(A, {
|
|
5027
5029
|
key: $,
|
|
5028
5030
|
label: Y.key,
|
|
5029
5031
|
value: Y.value
|
|
@@ -5062,7 +5064,7 @@ const _i = {
|
|
|
5062
5064
|
default: k(() => [
|
|
5063
5065
|
I(S, { label: "多选列" }, {
|
|
5064
5066
|
default: k(() => [
|
|
5065
|
-
I(
|
|
5067
|
+
I(E, {
|
|
5066
5068
|
modelValue: N(s).isCheckRow,
|
|
5067
5069
|
"onUpdate:modelValue": _[1] || (_[1] = (F) => N(s).isCheckRow = F)
|
|
5068
5070
|
}, null, 8, ["modelValue"])
|
|
@@ -5076,7 +5078,7 @@ const _i = {
|
|
|
5076
5078
|
default: k(() => [
|
|
5077
5079
|
I(S, { label: "操作列" }, {
|
|
5078
5080
|
default: k(() => [
|
|
5079
|
-
I(
|
|
5081
|
+
I(E, {
|
|
5080
5082
|
modelValue: N(s).isOperateRow,
|
|
5081
5083
|
"onUpdate:modelValue": _[2] || (_[2] = (F) => N(s).isOperateRow = F)
|
|
5082
5084
|
}, null, 8, ["modelValue"])
|
|
@@ -5090,7 +5092,7 @@ const _i = {
|
|
|
5090
5092
|
default: k(() => [
|
|
5091
5093
|
I(S, { label: "分页" }, {
|
|
5092
5094
|
default: k(() => [
|
|
5093
|
-
I(
|
|
5095
|
+
I(E, {
|
|
5094
5096
|
modelValue: N(s).isPagination,
|
|
5095
5097
|
"onUpdate:modelValue": _[3] || (_[3] = (F) => N(s).isPagination = F),
|
|
5096
5098
|
onChange: C
|
|
@@ -5105,7 +5107,7 @@ const _i = {
|
|
|
5105
5107
|
default: k(() => [
|
|
5106
5108
|
I(S, { label: "序号列" }, {
|
|
5107
5109
|
default: k(() => [
|
|
5108
|
-
I(
|
|
5110
|
+
I(E, {
|
|
5109
5111
|
modelValue: N(s).isSerialNumber,
|
|
5110
5112
|
"onUpdate:modelValue": _[4] || (_[4] = (F) => N(s).isSerialNumber = F)
|
|
5111
5113
|
}, null, 8, ["modelValue"])
|
|
@@ -5119,7 +5121,7 @@ const _i = {
|
|
|
5119
5121
|
default: k(() => [
|
|
5120
5122
|
I(S, { label: "排序" }, {
|
|
5121
5123
|
default: k(() => [
|
|
5122
|
-
I(
|
|
5124
|
+
I(E, {
|
|
5123
5125
|
modelValue: N(s).isSort,
|
|
5124
5126
|
"onUpdate:modelValue": _[5] || (_[5] = (F) => N(s).isSort = F)
|
|
5125
5127
|
}, null, 8, ["modelValue"])
|
|
@@ -5133,7 +5135,7 @@ const _i = {
|
|
|
5133
5135
|
default: k(() => [
|
|
5134
5136
|
I(S, { label: "展/收查询条件" }, {
|
|
5135
5137
|
default: k(() => [
|
|
5136
|
-
I(
|
|
5138
|
+
I(E, {
|
|
5137
5139
|
modelValue: N(s).isExpandQuery,
|
|
5138
5140
|
"onUpdate:modelValue": _[6] || (_[6] = (F) => N(s).isExpandQuery = F),
|
|
5139
5141
|
onChange: C
|
|
@@ -5148,7 +5150,7 @@ const _i = {
|
|
|
5148
5150
|
default: k(() => [
|
|
5149
5151
|
I(S, { label: "立即执行接口" }, {
|
|
5150
5152
|
default: k(() => [
|
|
5151
|
-
I(
|
|
5153
|
+
I(E, {
|
|
5152
5154
|
modelValue: N(s).isExecuteImmediatelyTableApi,
|
|
5153
5155
|
"onUpdate:modelValue": _[7] || (_[7] = (F) => N(s).isExecuteImmediatelyTableApi = F)
|
|
5154
5156
|
}, null, 8, ["modelValue"])
|
|
@@ -5163,7 +5165,7 @@ const _i = {
|
|
|
5163
5165
|
}),
|
|
5164
5166
|
I(D, null, {
|
|
5165
5167
|
default: k(() => [
|
|
5166
|
-
N(s).isOperateRow ? (H(),
|
|
5168
|
+
N(s).isOperateRow ? (H(), re(v, {
|
|
5167
5169
|
key: 0,
|
|
5168
5170
|
span: 8
|
|
5169
5171
|
}, {
|
|
@@ -5184,7 +5186,7 @@ const _i = {
|
|
|
5184
5186
|
]),
|
|
5185
5187
|
_: 1
|
|
5186
5188
|
})) : We("", !0),
|
|
5187
|
-
N(s).isPagination ? (H(),
|
|
5189
|
+
N(s).isPagination ? (H(), re(v, {
|
|
5188
5190
|
key: 1,
|
|
5189
5191
|
span: 8
|
|
5190
5192
|
}, {
|
|
@@ -5280,7 +5282,7 @@ const Ai = {
|
|
|
5280
5282
|
},
|
|
5281
5283
|
emits: ["update:modelValue"],
|
|
5282
5284
|
setup(e, { expose: t, emit: n }) {
|
|
5283
|
-
const a = An(), l = Ue("apiPrefix"), o = Ue("request"), r = st(() => import("./dialogConfigBtn-
|
|
5285
|
+
const a = An(), l = Ue("apiPrefix"), o = Ue("request"), r = st(() => import("./dialogConfigBtn-a040c8a8.js")), s = e, i = () => ({
|
|
5284
5286
|
sort: 0,
|
|
5285
5287
|
permissionCode: null,
|
|
5286
5288
|
requestUrl: "",
|
|
@@ -5305,7 +5307,7 @@ const Ai = {
|
|
|
5305
5307
|
tableLoading: !1,
|
|
5306
5308
|
showConfigBtnDialog: !1,
|
|
5307
5309
|
dialogData: {}
|
|
5308
|
-
}))()), y =
|
|
5310
|
+
}))()), y = te(null), _ = 0, L = te([]), S = te([]), v = [
|
|
5309
5311
|
{ prop: "checkbox", width: 60 },
|
|
5310
5312
|
{ prop: "serialNumber", width: 80 },
|
|
5311
5313
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -5315,7 +5317,7 @@ const Ai = {
|
|
|
5315
5317
|
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
5316
5318
|
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
5317
5319
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
5318
|
-
], D =
|
|
5320
|
+
], D = te([]);
|
|
5319
5321
|
const m = (h) => o({ url: `${l}/sysMenus/getAllList`, method: "post", data: h }), f = (h) => o({ url: `${l}/sysMenus/getMenuOfOperate`, method: "get", params: h }), A = (h, P) => {
|
|
5320
5322
|
S.value.includes(h.permissionCode) || S.value.push(h.permissionCode), Object.assign(D.value[_], h), P(!0);
|
|
5321
5323
|
}, g = async (h) => {
|
|
@@ -5329,7 +5331,7 @@ const Ai = {
|
|
|
5329
5331
|
} catch (P) {
|
|
5330
5332
|
C.tableLoading = !1, console.error(P);
|
|
5331
5333
|
}
|
|
5332
|
-
},
|
|
5334
|
+
}, E = () => y.value.getSelectionRows() || [];
|
|
5333
5335
|
ke("associationMenuList", L), ke("createDefaultButtonItem", i), ut(
|
|
5334
5336
|
() => s.modelValue,
|
|
5335
5337
|
async (h, P) => {
|
|
@@ -5345,9 +5347,9 @@ const Ai = {
|
|
|
5345
5347
|
const w = (h) => {
|
|
5346
5348
|
C.dialogData = h.row, _ = h.$index, C.showConfigBtnDialog = !0;
|
|
5347
5349
|
};
|
|
5348
|
-
return t({ getTableSelectionRows:
|
|
5350
|
+
return t({ getTableSelectionRows: E }), (h, P) => {
|
|
5349
5351
|
const F = G("el-tag"), j = G("el-input-number"), Y = G("el-button"), $ = G("a-table"), Ce = G("el-card");
|
|
5350
|
-
return H(),
|
|
5352
|
+
return H(), re(Ce, {
|
|
5351
5353
|
class: "form-card",
|
|
5352
5354
|
shadow: "hover"
|
|
5353
5355
|
}, {
|
|
@@ -5423,7 +5425,7 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5423
5425
|
},
|
|
5424
5426
|
emits: ["update:modelValue"],
|
|
5425
5427
|
setup(e, { emit: t }) {
|
|
5426
|
-
const n = st(() => import("./dialogAddField-
|
|
5428
|
+
const n = st(() => import("./dialogAddField-d5464c68.js")), a = t, l = e;
|
|
5427
5429
|
Ue("configData")();
|
|
5428
5430
|
let r = Qt((() => ({
|
|
5429
5431
|
tableLoading: !1,
|
|
@@ -5440,17 +5442,17 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5440
5442
|
// { label: '场景自定义', prop: 'formCustomComponentes', width: 200, render: true },
|
|
5441
5443
|
{ label: "排序", prop: "sort", width: 200, render: !0 },
|
|
5442
5444
|
{ label: "操作", prop: "operate", width: 170, render: !0, fixed: "right" }
|
|
5443
|
-
], p =
|
|
5445
|
+
], p = te([]);
|
|
5444
5446
|
mi[0].options.map((A) => ({ btnName: A.key, permissionCode: A.value }));
|
|
5445
5447
|
const C = (A) => {
|
|
5446
5448
|
if (!Reflect.has(A, "fieldType"))
|
|
5447
5449
|
return "";
|
|
5448
|
-
const g = ci.find((
|
|
5450
|
+
const g = ci.find((E) => E.value == A.fieldType);
|
|
5449
5451
|
return (g == null ? void 0 : g.key) || "";
|
|
5450
5452
|
}, y = (A) => Reflect.has(A, "useScenes") ? (A.formCustomComponentes ?? []).filter((g) => A.useScenes.includes(g.permissionCode)) : [], _ = (A) => (A.formCustomComponentes || []).filter((g) => g.isFieldCustom).map((g) => `${g.btnName}:是`).join(), L = (A, g) => {
|
|
5451
5453
|
if (s == null) {
|
|
5452
|
-
const
|
|
5453
|
-
p.value.push({ ...A, sort: (
|
|
5454
|
+
const E = p.value.length;
|
|
5455
|
+
p.value.push({ ...A, sort: (E + 1) * 10 });
|
|
5454
5456
|
} else
|
|
5455
5457
|
p.value[s] = {
|
|
5456
5458
|
...A,
|
|
@@ -5483,15 +5485,15 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5483
5485
|
p.value.splice(A.$index, 1), a("update:modelValue", p.value);
|
|
5484
5486
|
};
|
|
5485
5487
|
return (A, g) => {
|
|
5486
|
-
const
|
|
5487
|
-
return H(),
|
|
5488
|
+
const E = G("el-button"), w = G("el-tag"), h = G("el-badge"), P = G("el-input-number"), F = G("a-table"), j = G("el-card");
|
|
5489
|
+
return H(), re(j, {
|
|
5488
5490
|
class: "form-card",
|
|
5489
5491
|
shadow: "hover"
|
|
5490
5492
|
}, {
|
|
5491
5493
|
header: k(() => [
|
|
5492
5494
|
Le("div", Ei, [
|
|
5493
5495
|
g[3] || (g[3] = Le("div", { class: "card-header-title" }, "字段配置", -1)),
|
|
5494
|
-
I(
|
|
5496
|
+
I(E, {
|
|
5495
5497
|
class: "card-header-operate",
|
|
5496
5498
|
type: "primary",
|
|
5497
5499
|
icon: "Plus",
|
|
@@ -5515,7 +5517,7 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5515
5517
|
ve(He(C(Y.row)), 1)
|
|
5516
5518
|
]),
|
|
5517
5519
|
useScenes: k(({ scope: Y }) => [
|
|
5518
|
-
(H(!0), Ae(Oe, null, qe(y(Y.row), ($, Ce) => (H(),
|
|
5520
|
+
(H(!0), Ae(Oe, null, qe(y(Y.row), ($, Ce) => (H(), re(h, {
|
|
5519
5521
|
key: Ce,
|
|
5520
5522
|
value: $.isFieldCustom ? "C" : "",
|
|
5521
5523
|
offset: [-5, 5]
|
|
@@ -5537,7 +5539,7 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5537
5539
|
}, 1032, ["value"]))), 128))
|
|
5538
5540
|
]),
|
|
5539
5541
|
formCustomComponentes: k(({ scope: Y }) => [
|
|
5540
|
-
_(Y.row) ? (H(),
|
|
5542
|
+
_(Y.row) ? (H(), re(w, {
|
|
5541
5543
|
key: 0,
|
|
5542
5544
|
type: "primary",
|
|
5543
5545
|
effect: "dark",
|
|
@@ -5558,7 +5560,7 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5558
5560
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5559
5561
|
]),
|
|
5560
5562
|
operate: k(({ scope: Y }) => [
|
|
5561
|
-
I(
|
|
5563
|
+
I(E, {
|
|
5562
5564
|
type: "primary",
|
|
5563
5565
|
text: "",
|
|
5564
5566
|
size: "small",
|
|
@@ -5570,7 +5572,7 @@ const Ei = { class: "card-header" }, hi = {
|
|
|
5570
5572
|
])),
|
|
5571
5573
|
_: 2
|
|
5572
5574
|
}, 1032, ["onClick"]),
|
|
5573
|
-
I(
|
|
5575
|
+
I(E, {
|
|
5574
5576
|
type: "danger",
|
|
5575
5577
|
text: "",
|
|
5576
5578
|
size: "small",
|
|
@@ -5617,7 +5619,7 @@ const Ci = { class: "dialog-footer" }, Ti = {
|
|
|
5617
5619
|
let p = Qt((() => ({
|
|
5618
5620
|
loading: !1,
|
|
5619
5621
|
btnLoading: !1
|
|
5620
|
-
}))()), C =
|
|
5622
|
+
}))()), C = te([]), y = te(null), _ = te(s());
|
|
5621
5623
|
const L = (A) => l({ url: `${a}/scripts/getAllDatabaseTable`, method: "get", data: A }), S = async () => {
|
|
5622
5624
|
try {
|
|
5623
5625
|
p.loading = !0;
|
|
@@ -5667,21 +5669,21 @@ const Ci = { class: "dialog-footer" }, Ti = {
|
|
|
5667
5669
|
if (g)
|
|
5668
5670
|
try {
|
|
5669
5671
|
p.btnLoading = !0;
|
|
5670
|
-
const { data:
|
|
5672
|
+
const { data: E } = await l({ url: `${a}/scripts/getAllColumnsByTableName`, method: "get", params: { tableName: _.value.dataBase } }), w = (E || []).map((h) => {
|
|
5671
5673
|
let P = v();
|
|
5672
5674
|
return P.fieldName = h.comment, P.fieldKey = h.name, P.fieldType = "string", P;
|
|
5673
5675
|
});
|
|
5674
5676
|
o("refresh", { formList: w }, () => {
|
|
5675
5677
|
m();
|
|
5676
5678
|
}), p.btnLoading = !1;
|
|
5677
|
-
} catch (
|
|
5678
|
-
console.error(
|
|
5679
|
+
} catch (E) {
|
|
5680
|
+
console.error(E), p.btnLoading = !1;
|
|
5679
5681
|
}
|
|
5680
5682
|
});
|
|
5681
5683
|
};
|
|
5682
5684
|
return (A, g) => {
|
|
5683
|
-
const
|
|
5684
|
-
return H(),
|
|
5685
|
+
const E = G("el-option"), w = G("el-select"), h = G("el-form-item"), P = G("el-input"), F = G("el-form"), j = G("el-button"), Y = G("el-dialog"), $ = zt("loading"), Ce = zt("debounce");
|
|
5686
|
+
return H(), re(Y, {
|
|
5685
5687
|
"model-value": r.visible,
|
|
5686
5688
|
title: r.title,
|
|
5687
5689
|
top: "10vh",
|
|
@@ -5702,7 +5704,7 @@ const Ci = { class: "dialog-footer" }, Ti = {
|
|
|
5702
5704
|
])),
|
|
5703
5705
|
_: 1
|
|
5704
5706
|
}, 8, ["loading"]),
|
|
5705
|
-
xt((H(),
|
|
5707
|
+
xt((H(), re(j, {
|
|
5706
5708
|
type: "primary",
|
|
5707
5709
|
loading: N(p).btnLoading,
|
|
5708
5710
|
onClick: g[2] || (g[2] = (ce) => f(N(y)))
|
|
@@ -5717,7 +5719,7 @@ const Ci = { class: "dialog-footer" }, Ti = {
|
|
|
5717
5719
|
])
|
|
5718
5720
|
]),
|
|
5719
5721
|
default: k(() => [
|
|
5720
|
-
xt((H(),
|
|
5722
|
+
xt((H(), re(F, {
|
|
5721
5723
|
ref_key: "formRef",
|
|
5722
5724
|
ref: y,
|
|
5723
5725
|
model: N(_),
|
|
@@ -5740,7 +5742,7 @@ const Ci = { class: "dialog-footer" }, Ti = {
|
|
|
5740
5742
|
filterable: ""
|
|
5741
5743
|
}, {
|
|
5742
5744
|
default: k(() => [
|
|
5743
|
-
(H(!0), Ae(Oe, null, qe(N(C), (ce, Me) => (H(),
|
|
5745
|
+
(H(!0), Ae(Oe, null, qe(N(C), (ce, Me) => (H(), re(E, {
|
|
5744
5746
|
key: ce,
|
|
5745
5747
|
label: `${ce.tableComment}【${ce.tableName}】`,
|
|
5746
5748
|
value: ce.tableName
|
|
@@ -5786,42 +5788,42 @@ const Ii = { class: "page-container" }, ki = { class: "submit-box" }, vi = { cla
|
|
|
5786
5788
|
},
|
|
5787
5789
|
setup(e) {
|
|
5788
5790
|
const t = An(), n = qa(), a = Ue("apiPrefix"), l = Ue("request"), o = e;
|
|
5789
|
-
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i =
|
|
5791
|
+
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = te([]), p = te(), C = te([]), y = te({}), _ = te(null), L = te(null), S = te(null), v = te({}), D = te({}), m = te([]), f = te([]), A = Qt({
|
|
5790
5792
|
pageLoading: !1,
|
|
5791
5793
|
saveBtnLoading: !1,
|
|
5792
5794
|
showDialogInitConfig: !1
|
|
5793
5795
|
});
|
|
5794
|
-
const g = (
|
|
5795
|
-
const { data:
|
|
5796
|
-
i.value =
|
|
5796
|
+
const g = (ae) => l({ url: `${a}/pages/getPageDetail?key=${ae}`, method: "get" }), E = (ae) => l({ url: `${a}/pageConfigs/createOrEdit`, method: "post", data: ae }), w = (ae) => l({ url: `${a}/sysMenus/getAllList`, method: "post", data: ae }), h = (ae) => l({ url: `${a}/sysDataDictionaries/getDictionaryByGroup?groupName=${ae}`, method: "get" }), P = async () => {
|
|
5797
|
+
const { data: ae } = await w({ dynamicFilters: [{ field: "url", operate: "Equal", value: "/pages" }] });
|
|
5798
|
+
i.value = ae || [];
|
|
5797
5799
|
}, F = async () => {
|
|
5798
5800
|
try {
|
|
5799
5801
|
const {
|
|
5800
|
-
data: { pageConfigs:
|
|
5801
|
-
} = await g(s), J = JSON.parse(
|
|
5802
|
-
r =
|
|
5803
|
-
} catch (
|
|
5804
|
-
console.error(
|
|
5802
|
+
data: { pageConfigs: ae }
|
|
5803
|
+
} = await g(s), J = JSON.parse(ae.pageConfig) || {};
|
|
5804
|
+
r = ae.pageId, console.log("pageConfigData", J), y.value = J, v.value = { ...J.tableConfig ?? {} }, D.value = { ...J.formConfig ?? {} }, m.value = [...J.buttons ?? []], f.value = [...J.fields ?? []];
|
|
5805
|
+
} catch (ae) {
|
|
5806
|
+
console.error(ae);
|
|
5805
5807
|
}
|
|
5806
5808
|
}, j = () => {
|
|
5807
5809
|
v.value = {}, D.value = {}, m.value = [], f.value = [], F();
|
|
5808
5810
|
};
|
|
5809
|
-
ke("conditionList", () => C), ke("pageKey", () =>
|
|
5811
|
+
ke("conditionList", () => C), ke("pageKey", () => te(s)), ke("configData", () => y), Ja(async () => {
|
|
5810
5812
|
try {
|
|
5811
5813
|
A.pageLoading = !0, await P(), p.value = t.params.id, C.value = (await h("Condition")).data || [], await F(), A.pageLoading = !1;
|
|
5812
|
-
} catch (
|
|
5813
|
-
A.pageLoading = !1, console.error(
|
|
5814
|
+
} catch (ae) {
|
|
5815
|
+
A.pageLoading = !1, console.error(ae);
|
|
5814
5816
|
}
|
|
5815
5817
|
});
|
|
5816
|
-
const Y = (
|
|
5817
|
-
const J = i.value.find((xe) => xe.id ==
|
|
5818
|
+
const Y = (ae) => {
|
|
5819
|
+
const J = i.value.find((xe) => xe.id == ae);
|
|
5818
5820
|
n.replace({ path: `/actConfig/${J.key}/${J.id}` }), p.value = J.id, s = J.key, F();
|
|
5819
5821
|
}, $ = () => {
|
|
5820
5822
|
A.showDialogInitConfig = !0;
|
|
5821
|
-
}, Ce = ({ formList:
|
|
5822
|
-
f.value = [...
|
|
5823
|
+
}, Ce = ({ formList: ae }, J) => {
|
|
5824
|
+
f.value = [...ae], J(!0);
|
|
5823
5825
|
}, ce = () => {
|
|
5824
|
-
let
|
|
5826
|
+
let ae = {
|
|
5825
5827
|
id: r,
|
|
5826
5828
|
key: s,
|
|
5827
5829
|
pageConfig: {
|
|
@@ -5831,17 +5833,17 @@ const Ii = { class: "page-container" }, ki = { class: "submit-box" }, vi = { cla
|
|
|
5831
5833
|
fields: f.value
|
|
5832
5834
|
}
|
|
5833
5835
|
};
|
|
5834
|
-
|
|
5836
|
+
ae.pageConfig = JSON.stringify(ae.pageConfig), A.saveBtnLoading = !0, E(ae).then((J) => {
|
|
5835
5837
|
Qe({ title: "提示", message: "保存成功", type: "success", duration: 2500 }), j(), A.saveBtnLoading = !1;
|
|
5836
5838
|
}).catch((J) => {
|
|
5837
5839
|
A.saveBtnLoading = !1;
|
|
5838
5840
|
});
|
|
5839
5841
|
}, Me = async () => {
|
|
5840
|
-
Promise.all([_.value.formRef.validate(), L.value.formRef.validate()]).then((
|
|
5841
|
-
|
|
5842
|
-
}).catch((
|
|
5842
|
+
Promise.all([_.value.formRef.validate(), L.value.formRef.validate()]).then((ae) => {
|
|
5843
|
+
ae.every((J) => J) && ce();
|
|
5844
|
+
}).catch((ae) => ae);
|
|
5843
5845
|
};
|
|
5844
|
-
return (
|
|
5846
|
+
return (ae, J) => {
|
|
5845
5847
|
const xe = G("el-button"), yt = G("el-option"), Pe = G("el-select"), tt = G("el-card"), Ke = G("el-col"), Ct = G("el-row"), ct = zt("debounce"), Tt = zt("loading");
|
|
5846
5848
|
return xt((H(), Ae("div", Ii, [
|
|
5847
5849
|
I(Ct, {
|
|
@@ -5862,7 +5864,7 @@ const Ii = { class: "page-container" }, ki = { class: "submit-box" }, vi = { cla
|
|
|
5862
5864
|
Le("div", ki, [
|
|
5863
5865
|
J[10] || (J[10] = Le("div", { class: "submit-box-l" }, null, -1)),
|
|
5864
5866
|
Le("div", vi, [
|
|
5865
|
-
xt((H(),
|
|
5867
|
+
xt((H(), re(xe, {
|
|
5866
5868
|
style: { width: "120px" },
|
|
5867
5869
|
type: "primary",
|
|
5868
5870
|
loading: N(A).initBtnLoading,
|
|
@@ -5885,7 +5887,7 @@ const Ii = { class: "page-container" }, ki = { class: "submit-box" }, vi = { cla
|
|
|
5885
5887
|
onChange: Y
|
|
5886
5888
|
}, {
|
|
5887
5889
|
default: k(() => [
|
|
5888
|
-
(H(!0), Ae(Oe, null, qe(N(i), (fe) => (H(),
|
|
5890
|
+
(H(!0), Ae(Oe, null, qe(N(i), (fe) => (H(), re(yt, {
|
|
5889
5891
|
key: fe.id,
|
|
5890
5892
|
label: fe.name,
|
|
5891
5893
|
value: fe.id
|
|
@@ -5893,11 +5895,11 @@ const Ii = { class: "page-container" }, ki = { class: "submit-box" }, vi = { cla
|
|
|
5893
5895
|
]),
|
|
5894
5896
|
_: 1
|
|
5895
5897
|
}, 8, ["modelValue"]),
|
|
5896
|
-
xt((H(),
|
|
5898
|
+
xt((H(), re(xe, {
|
|
5897
5899
|
style: { width: "120px" },
|
|
5898
5900
|
type: "success",
|
|
5899
5901
|
loading: N(A).saveBtnLoading,
|
|
5900
|
-
onClick: J[2] || (J[2] = (fe) => Me(
|
|
5902
|
+
onClick: J[2] || (J[2] = (fe) => Me(ae.formRef))
|
|
5901
5903
|
}, {
|
|
5902
5904
|
default: k(() => J[9] || (J[9] = [
|
|
5903
5905
|
ve("保存")
|