act-plus 1.1.77 → 1.1.78
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 +6 -6
- package/lib/{dialogAddField-20b4a7ee.js → dialogAddField-6b36374f.js} +2 -2
- package/lib/{dialogConfigBtn-ab76d05a.js → dialogConfigBtn-bc3654e4.js} +2 -2
- package/lib/{dialogSiteComponentsParams-8d86835d.js → dialogSiteComponentsParams-50ddae0f.js} +1 -1
- package/lib/{index-1d041fe2.js → index-07ea7c6f.js} +1 -1
- package/lib/{index-24a86341.js → index-4b01c50e.js} +1 -1
- package/lib/{index-314fcc0c.js → index-7c99a393.js} +2 -2
- package/lib/{index-ccf27673.js → index-96a5d15c.js} +1 -1
- package/lib/{index-3f829e79.js → index-9b985e07.js} +1 -1
- package/lib/{index-c8107847.js → index-ada2bff9.js} +1 -1
- package/lib/{index-b65589b8.js → index-c5b44aa1.js} +1 -1
- package/lib/{index-ee35054a.js → index-c69e0f9a.js} +239 -234
- package/lib/{index-990a6ca9.js → index-d37c9fc1.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -167,7 +167,7 @@ const io = /<\/?[\w\s="/.':;#-\/]+>/, uo = (e) => io.test(e), st = " ", co = "\r
|
|
|
167
167
|
function po(e) {
|
|
168
168
|
const t = e;
|
|
169
169
|
let n = 0, a = 1, l = 1, o = 0;
|
|
170
|
-
const r = (_) => t[_] === co && t[_ + 1] === De, s = (_) => t[_] === De, i = (_) => t[_] === mo, g = (_) => t[_] === fo, T = (_) => r(_) || s(_) || i(_) || g(_), h = () => n, p = () => a,
|
|
170
|
+
const r = (_) => t[_] === co && t[_ + 1] === De, s = (_) => t[_] === De, i = (_) => t[_] === mo, g = (_) => t[_] === fo, T = (_) => r(_) || s(_) || i(_) || g(_), h = () => n, p = () => a, S = () => l, I = () => o, O = (_) => r(_) || i(_) || g(_) ? De : t[_], R = () => O(n), m = () => O(n + o);
|
|
171
171
|
function A() {
|
|
172
172
|
return o = 0, T(n) && (a++, l = 0), r(n) && n++, n++, l++, t[n];
|
|
173
173
|
}
|
|
@@ -189,8 +189,8 @@ function po(e) {
|
|
|
189
189
|
return {
|
|
190
190
|
index: h,
|
|
191
191
|
line: p,
|
|
192
|
-
column:
|
|
193
|
-
peekOffset:
|
|
192
|
+
column: S,
|
|
193
|
+
peekOffset: I,
|
|
194
194
|
charAt: O,
|
|
195
195
|
currentChar: R,
|
|
196
196
|
currentPeek: m,
|
|
@@ -231,12 +231,12 @@ function Ao(e, t = {}) {
|
|
|
231
231
|
const K = { type: c };
|
|
232
232
|
return n && (K.loc = Ln(d.startLoc, d.endLoc)), L != null && (K.value = L), K;
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const S = (d) => p(
|
|
235
235
|
d,
|
|
236
236
|
13
|
|
237
237
|
/* TokenTypes.EOF */
|
|
238
238
|
);
|
|
239
|
-
function
|
|
239
|
+
function I(d, c) {
|
|
240
240
|
return d.currentChar() === c ? (d.next(), c) : (h(ee.EXPECTED_TOKEN, o(), 0, c), "");
|
|
241
241
|
}
|
|
242
242
|
function O(d) {
|
|
@@ -417,12 +417,12 @@ function Ao(e, t = {}) {
|
|
|
417
417
|
return d !== ca && d !== De;
|
|
418
418
|
}
|
|
419
419
|
function fe(d) {
|
|
420
|
-
R(d),
|
|
420
|
+
R(d), I(d, "'");
|
|
421
421
|
let c = "", L = "";
|
|
422
422
|
for (; c = te(d, Ct); )
|
|
423
423
|
c === "\\" ? L += Kt(d) : L += c;
|
|
424
424
|
const K = d.currentChar();
|
|
425
|
-
return K === De || K === pt ? (h(ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), K === De && (d.next(),
|
|
425
|
+
return K === De || K === pt ? (h(ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), K === De && (d.next(), I(d, "'")), L) : (I(d, "'"), L);
|
|
426
426
|
}
|
|
427
427
|
function Kt(d) {
|
|
428
428
|
const c = d.currentChar();
|
|
@@ -439,7 +439,7 @@ function Ao(e, t = {}) {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
function Dt(d, c, L) {
|
|
442
|
-
|
|
442
|
+
I(d, c);
|
|
443
443
|
let K = "";
|
|
444
444
|
for (let ge = 0; ge < L; ge++) {
|
|
445
445
|
const be = we(d);
|
|
@@ -476,7 +476,7 @@ function Ao(e, t = {}) {
|
|
|
476
476
|
}
|
|
477
477
|
function Ze(d) {
|
|
478
478
|
R(d);
|
|
479
|
-
const c =
|
|
479
|
+
const c = I(
|
|
480
480
|
d,
|
|
481
481
|
"|"
|
|
482
482
|
/* TokenChars.Pipe */
|
|
@@ -501,7 +501,7 @@ function Ao(e, t = {}) {
|
|
|
501
501
|
/* TokenChars.BraceRight */
|
|
502
502
|
), c.braceNest--, c.braceNest > 0 && R(d), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), L;
|
|
503
503
|
case "@":
|
|
504
|
-
return c.braceNest > 0 && h(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Ke(d, c) ||
|
|
504
|
+
return c.braceNest > 0 && h(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Ke(d, c) || S(c), c.braceNest = 0, L;
|
|
505
505
|
default: {
|
|
506
506
|
let ge = !0, be = !0, se = !0;
|
|
507
507
|
if (G(d))
|
|
@@ -557,12 +557,12 @@ function Ao(e, t = {}) {
|
|
|
557
557
|
/* TokenTypes.EOF */
|
|
558
558
|
};
|
|
559
559
|
if (c.braceNest > 0)
|
|
560
|
-
return ze(d, c) ||
|
|
560
|
+
return ze(d, c) || S(c);
|
|
561
561
|
if (c.inLinked)
|
|
562
|
-
return Ke(d, c) ||
|
|
562
|
+
return Ke(d, c) || S(c);
|
|
563
563
|
switch (d.currentChar()) {
|
|
564
564
|
case "{":
|
|
565
|
-
return ze(d, c) ||
|
|
565
|
+
return ze(d, c) || S(c);
|
|
566
566
|
case "}":
|
|
567
567
|
return h(ee.UNBALANCED_CLOSING_BRACE, o(), 0), d.next(), p(
|
|
568
568
|
c,
|
|
@@ -571,7 +571,7 @@ function Ao(e, t = {}) {
|
|
|
571
571
|
/* TokenChars.BraceRight */
|
|
572
572
|
);
|
|
573
573
|
case "@":
|
|
574
|
-
return Ke(d, c) ||
|
|
574
|
+
return Ke(d, c) || S(c);
|
|
575
575
|
default: {
|
|
576
576
|
if (G(d))
|
|
577
577
|
return L = p(c, 1, Ze(d)), c.braceNest = 0, c.inLinked = !1, L;
|
|
@@ -691,7 +691,7 @@ function yo(e = {}) {
|
|
|
691
691
|
node: b
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function S(m) {
|
|
695
695
|
const A = m.context(), b = A.currentType === 1 ? m.currentOffset() : A.offset, f = A.currentType === 1 ? A.endLoc : A.startLoc, v = l(2, b, f);
|
|
696
696
|
v.items = [];
|
|
697
697
|
let w = null;
|
|
@@ -720,20 +720,20 @@ function yo(e = {}) {
|
|
|
720
720
|
const _ = A.currentType === 1 ? A.lastOffset : m.currentOffset(), P = A.currentType === 1 ? A.lastEndLoc : m.currentPosition();
|
|
721
721
|
return o(v, _, P), v;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function I(m, A, b, f) {
|
|
724
724
|
const v = m.context();
|
|
725
725
|
let w = f.items.length === 0;
|
|
726
726
|
const _ = l(1, A, b);
|
|
727
727
|
_.cases = [], _.cases.push(f);
|
|
728
728
|
do {
|
|
729
|
-
const P =
|
|
729
|
+
const P = S(m);
|
|
730
730
|
w || (w = P.items.length === 0), _.cases.push(P);
|
|
731
731
|
} while (v.currentType !== 13);
|
|
732
732
|
return w && a(m, ee.MUST_HAVE_MESSAGES_IN_PLURAL, b, 0), o(_, m.currentOffset(), m.currentPosition()), _;
|
|
733
733
|
}
|
|
734
734
|
function O(m) {
|
|
735
|
-
const A = m.context(), { offset: b, startLoc: f } = A, v =
|
|
736
|
-
return A.currentType === 13 ? v :
|
|
735
|
+
const A = m.context(), { offset: b, startLoc: f } = A, v = S(m);
|
|
736
|
+
return A.currentType === 13 ? v : I(m, b, f, v);
|
|
737
737
|
}
|
|
738
738
|
function R(m) {
|
|
739
739
|
const A = Ao(m, Ne({}, e)), b = A.context(), f = l(0, b.offset, b.startLoc);
|
|
@@ -917,7 +917,7 @@ function So(e, t) {
|
|
|
917
917
|
const m = --s.indentLevel;
|
|
918
918
|
R && T(m);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function S() {
|
|
921
921
|
T(s.indentLevel);
|
|
922
922
|
}
|
|
923
923
|
return {
|
|
@@ -925,7 +925,7 @@ function So(e, t) {
|
|
|
925
925
|
push: g,
|
|
926
926
|
indent: h,
|
|
927
927
|
deindent: p,
|
|
928
|
-
newline:
|
|
928
|
+
newline: S,
|
|
929
929
|
helper: (R) => `_${R}`,
|
|
930
930
|
needIndent: () => s.needIndent
|
|
931
931
|
};
|
|
@@ -1545,16 +1545,16 @@ function gr(e) {
|
|
|
1545
1545
|
]();
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
function
|
|
1549
|
-
const
|
|
1550
|
-
if (a === 5 &&
|
|
1551
|
-
return n++, s = "\\" +
|
|
1548
|
+
function S() {
|
|
1549
|
+
const I = e[n + 1];
|
|
1550
|
+
if (a === 5 && I === "'" || a === 6 && I === '"')
|
|
1551
|
+
return n++, s = "\\" + I, p[
|
|
1552
1552
|
0
|
|
1553
1553
|
/* Actions.APPEND */
|
|
1554
1554
|
](), !0;
|
|
1555
1555
|
}
|
|
1556
1556
|
for (; a !== null; )
|
|
1557
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
1557
|
+
if (n++, o = e[n], !(o === "\\" && S())) {
|
|
1558
1558
|
if (i = mr(o), h = ht[a], g = h[i] || h.l || 8, g === 8 || (a = g[0], g[1] !== void 0 && (T = p[g[1]], T && (s = o, T() === !1))))
|
|
1559
1559
|
return;
|
|
1560
1560
|
if (a === 7)
|
|
@@ -1631,7 +1631,7 @@ const ba = (e) => {
|
|
|
1631
1631
|
}, Sr = () => al;
|
|
1632
1632
|
let Ea = 0;
|
|
1633
1633
|
function vr(e = {}) {
|
|
1634
|
-
const t = pe(e.onWarn) ? e.onWarn : bt, n = B(e.version) ? e.version : hr, a = B(e.locale) || pe(e.locale) ? e.locale : tn, l = pe(a) ? tn : a, o = Ee(e.fallbackLocale) || ne(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = ne(e.messages) ? e.messages : Sn(l), s = ne(e.datetimeFormats) ? e.datetimeFormats : Sn(l), i = ne(e.numberFormats) ? e.numberFormats : Sn(l), g = Ne(de(), e.modifiers, yr()), T = e.pluralRules || de(), h = pe(e.missing) ? e.missing : null, p = ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0,
|
|
1634
|
+
const t = pe(e.onWarn) ? e.onWarn : bt, n = B(e.version) ? e.version : hr, a = B(e.locale) || pe(e.locale) ? e.locale : tn, l = pe(a) ? tn : a, o = Ee(e.fallbackLocale) || ne(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = ne(e.messages) ? e.messages : Sn(l), s = ne(e.datetimeFormats) ? e.datetimeFormats : Sn(l), i = ne(e.numberFormats) ? e.numberFormats : Sn(l), g = Ne(de(), e.modifiers, yr()), T = e.pluralRules || de(), h = pe(e.missing) ? e.missing : null, p = ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0, S = ce(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, I = !!e.fallbackFormat, O = !!e.unresolving, R = pe(e.postTranslation) ? e.postTranslation : null, m = ne(e.processor) ? e.processor : null, A = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, f = pe(e.messageCompiler) ? e.messageCompiler : za;
|
|
1635
1635
|
process.env.NODE_ENV !== "production" && pe(e.messageCompiler) && Xa(Lt(Ue.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1636
1636
|
const v = pe(e.messageResolver) ? e.messageResolver : el || _r, w = pe(e.localeFallbacker) ? e.localeFallbacker : tl || sr, _ = ue(e.fallbackContext) ? e.fallbackContext : void 0, P = e, F = ue(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), G = ue(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), Y = ue(P.__meta) ? P.__meta : {};
|
|
1637
1637
|
Ea++;
|
|
@@ -1645,8 +1645,8 @@ function vr(e = {}) {
|
|
|
1645
1645
|
pluralRules: T,
|
|
1646
1646
|
missing: h,
|
|
1647
1647
|
missingWarn: p,
|
|
1648
|
-
fallbackWarn:
|
|
1649
|
-
fallbackFormat:
|
|
1648
|
+
fallbackWarn: S,
|
|
1649
|
+
fallbackFormat: I,
|
|
1650
1650
|
unresolving: O,
|
|
1651
1651
|
postTranslation: R,
|
|
1652
1652
|
processor: m,
|
|
@@ -1709,7 +1709,7 @@ function ya(e, ...t) {
|
|
|
1709
1709
|
const { datetimeFormats: n, unresolving: a, fallbackLocale: l, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: s } = e;
|
|
1710
1710
|
if (process.env.NODE_ENV !== "production" && !rl.dateTimeFormat)
|
|
1711
1711
|
return o(Lt(Ue.CANNOT_FORMAT_DATE)), gn;
|
|
1712
|
-
const [i, g, T, h] = wn(...t), p = ce(T.missingWarn) ? T.missingWarn : e.missingWarn,
|
|
1712
|
+
const [i, g, T, h] = wn(...t), p = ce(T.missingWarn) ? T.missingWarn : e.missingWarn, S = ce(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, I = !!T.part, O = qn(e, T), R = r(
|
|
1713
1713
|
e,
|
|
1714
1714
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1715
1715
|
l,
|
|
@@ -1720,7 +1720,7 @@ function ya(e, ...t) {
|
|
|
1720
1720
|
let m = {}, A, b = null, f = O, v = null;
|
|
1721
1721
|
const w = "datetime format";
|
|
1722
1722
|
for (let F = 0; F < R.length; F++) {
|
|
1723
|
-
if (A = v = R[F], process.env.NODE_ENV !== "production" && O !== A && yn(
|
|
1723
|
+
if (A = v = R[F], process.env.NODE_ENV !== "production" && O !== A && yn(S, i) && o(Lt(Ue.FALLBACK_TO_DATE_FORMAT, {
|
|
1724
1724
|
key: i,
|
|
1725
1725
|
target: A
|
|
1726
1726
|
})), process.env.NODE_ENV !== "production" && O !== A) {
|
|
@@ -1742,7 +1742,7 @@ function ya(e, ...t) {
|
|
|
1742
1742
|
let _ = `${A}__${i}`;
|
|
1743
1743
|
En(h) || (_ = `${_}__${JSON.stringify(h)}`);
|
|
1744
1744
|
let P = s.get(_);
|
|
1745
|
-
return P || (P = new Intl.DateTimeFormat(A, Ne({}, b, h)), s.set(_, P)),
|
|
1745
|
+
return P || (P = new Intl.DateTimeFormat(A, Ne({}, b, h)), s.set(_, P)), I ? P.formatToParts(g) : P.format(g);
|
|
1746
1746
|
}
|
|
1747
1747
|
const sl = [
|
|
1748
1748
|
"localeMatcher",
|
|
@@ -1803,7 +1803,7 @@ function Ta(e, ...t) {
|
|
|
1803
1803
|
const { numberFormats: n, unresolving: a, fallbackLocale: l, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: s } = e;
|
|
1804
1804
|
if (process.env.NODE_ENV !== "production" && !rl.numberFormat)
|
|
1805
1805
|
return o(Lt(Ue.CANNOT_FORMAT_NUMBER)), gn;
|
|
1806
|
-
const [i, g, T, h] = Dn(...t), p = ce(T.missingWarn) ? T.missingWarn : e.missingWarn,
|
|
1806
|
+
const [i, g, T, h] = Dn(...t), p = ce(T.missingWarn) ? T.missingWarn : e.missingWarn, S = ce(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, I = !!T.part, O = qn(e, T), R = r(
|
|
1807
1807
|
e,
|
|
1808
1808
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1809
1809
|
l,
|
|
@@ -1814,7 +1814,7 @@ function Ta(e, ...t) {
|
|
|
1814
1814
|
let m = {}, A, b = null, f = O, v = null;
|
|
1815
1815
|
const w = "number format";
|
|
1816
1816
|
for (let F = 0; F < R.length; F++) {
|
|
1817
|
-
if (A = v = R[F], process.env.NODE_ENV !== "production" && O !== A && yn(
|
|
1817
|
+
if (A = v = R[F], process.env.NODE_ENV !== "production" && O !== A && yn(S, i) && o(Lt(Ue.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1818
1818
|
key: i,
|
|
1819
1819
|
target: A
|
|
1820
1820
|
})), process.env.NODE_ENV !== "production" && O !== A) {
|
|
@@ -1836,7 +1836,7 @@ function Ta(e, ...t) {
|
|
|
1836
1836
|
let _ = `${A}__${i}`;
|
|
1837
1837
|
En(h) || (_ = `${_}__${JSON.stringify(h)}`);
|
|
1838
1838
|
let P = s.get(_);
|
|
1839
|
-
return P || (P = new Intl.NumberFormat(A, Ne({}, b, h)), s.set(_, P)),
|
|
1839
|
+
return P || (P = new Intl.NumberFormat(A, Ne({}, b, h)), s.set(_, P)), I ? P.formatToParts(g) : P.format(g);
|
|
1840
1840
|
}
|
|
1841
1841
|
const il = [
|
|
1842
1842
|
"localeMatcher",
|
|
@@ -1896,7 +1896,7 @@ function Mr(e = {}) {
|
|
|
1896
1896
|
const b = pe(e.messages) ? e.messages(m, !!A) : ue(e.messages) ? e.messages[m] : !1;
|
|
1897
1897
|
return b || (e.parent ? e.parent.message(m) : wr);
|
|
1898
1898
|
}
|
|
1899
|
-
const h = (m) => e.modifiers ? e.modifiers[m] : Or, p = ne(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : Rr,
|
|
1899
|
+
const h = (m) => e.modifiers ? e.modifiers[m] : Or, p = ne(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : Rr, S = ne(e.processor) && pe(e.processor.interpolate) ? e.processor.interpolate : Fr, I = ne(e.processor) && B(e.processor.type) ? e.processor.type : Dr, R = {
|
|
1900
1900
|
list: s,
|
|
1901
1901
|
named: g,
|
|
1902
1902
|
plural: o,
|
|
@@ -1911,8 +1911,8 @@ function Mr(e = {}) {
|
|
|
1911
1911
|
return w ? h(w)(P, v) : P;
|
|
1912
1912
|
},
|
|
1913
1913
|
message: T,
|
|
1914
|
-
type:
|
|
1915
|
-
interpolate:
|
|
1914
|
+
type: I,
|
|
1915
|
+
interpolate: S,
|
|
1916
1916
|
normalize: p,
|
|
1917
1917
|
values: Ne(de(), r, i)
|
|
1918
1918
|
};
|
|
@@ -1920,14 +1920,14 @@ function Mr(e = {}) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
const Ia = () => "", We = (e) => pe(e);
|
|
1922
1922
|
function Sa(e, ...t) {
|
|
1923
|
-
const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: o, fallbackLocale: r, messages: s } = e, [i, g] = Rn(...t), T = ce(g.missingWarn) ? g.missingWarn : e.missingWarn, h = ce(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, p = ce(g.escapeParameter) ? g.escapeParameter : e.escapeParameter,
|
|
1923
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: o, fallbackLocale: r, messages: s } = e, [i, g] = Rn(...t), T = ce(g.missingWarn) ? g.missingWarn : e.missingWarn, h = ce(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, p = ce(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, S = !!g.resolvedMessage, I = B(g.default) || ce(g.default) ? ce(g.default) ? o ? i : () => i : g.default : n ? o ? i : () => i : null, O = n || I != null && (B(I) || pe(I)), R = qn(e, g);
|
|
1924
1924
|
p && Br(g);
|
|
1925
|
-
let [m, A, b] =
|
|
1925
|
+
let [m, A, b] = S ? [
|
|
1926
1926
|
i,
|
|
1927
1927
|
R,
|
|
1928
1928
|
s[R] || de()
|
|
1929
1929
|
] : ul(e, i, R, r, h, T), f = m, v = i;
|
|
1930
|
-
if (!
|
|
1930
|
+
if (!S && !(B(f) || _t(f) || We(f)) && O && (f = I, v = f), !S && (!(B(f) || _t(f) || We(f)) || !B(A)))
|
|
1931
1931
|
return l ? hn : i;
|
|
1932
1932
|
if (process.env.NODE_ENV !== "production" && B(f) && 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;
|
|
@@ -1957,7 +1957,7 @@ function Br(e) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
function ul(e, t, n, a, l, o) {
|
|
1959
1959
|
const { messages: r, onWarn: s, messageResolver: i, localeFallbacker: g } = e, T = g(e, a, n);
|
|
1960
|
-
let h = de(), p,
|
|
1960
|
+
let h = de(), p, S = null, I = n, O = null;
|
|
1961
1961
|
const R = "translate";
|
|
1962
1962
|
for (let m = 0; m < T.length; m++) {
|
|
1963
1963
|
if (p = O = T[m], process.env.NODE_ENV !== "production" && n !== p && !ol(n, p) && yn(l, t) && s(Lt(Ue.FALLBACK_TO_TRANSLATE, {
|
|
@@ -1968,24 +1968,24 @@ function ul(e, t, n, a, l, o) {
|
|
|
1968
1968
|
v && v.emit("fallback", {
|
|
1969
1969
|
type: R,
|
|
1970
1970
|
key: t,
|
|
1971
|
-
from:
|
|
1971
|
+
from: I,
|
|
1972
1972
|
to: O,
|
|
1973
1973
|
groupId: `${R}:${t}`
|
|
1974
1974
|
});
|
|
1975
1975
|
}
|
|
1976
1976
|
h = r[p] || de();
|
|
1977
1977
|
let A = null, b, f;
|
|
1978
|
-
if (process.env.NODE_ENV !== "production" && Xe && (A = window.performance.now(), b = "intlify-message-resolve-start", f = "intlify-message-resolve-end", Me && Me(b)), (
|
|
1978
|
+
if (process.env.NODE_ENV !== "production" && Xe && (A = window.performance.now(), b = "intlify-message-resolve-start", f = "intlify-message-resolve-end", Me && Me(b)), (S = i(h, t)) === null && (S = h[t]), process.env.NODE_ENV !== "production" && Xe) {
|
|
1979
1979
|
const v = window.performance.now(), w = e.__v_emitter;
|
|
1980
|
-
w && A &&
|
|
1980
|
+
w && A && S && w.emit("message-resolve", {
|
|
1981
1981
|
type: "message-resolve",
|
|
1982
1982
|
key: t,
|
|
1983
|
-
message:
|
|
1983
|
+
message: S,
|
|
1984
1984
|
time: v - A,
|
|
1985
1985
|
groupId: `${R}:${t}`
|
|
1986
1986
|
}), b && f && Me && vt && (Me(f), vt("intlify message resolve", b, f));
|
|
1987
1987
|
}
|
|
1988
|
-
if (B(
|
|
1988
|
+
if (B(S) || _t(S) || We(S))
|
|
1989
1989
|
break;
|
|
1990
1990
|
if (!Lr(p, T)) {
|
|
1991
1991
|
const v = Jn(
|
|
@@ -1996,11 +1996,11 @@ function ul(e, t, n, a, l, o) {
|
|
|
1996
1996
|
o,
|
|
1997
1997
|
R
|
|
1998
1998
|
);
|
|
1999
|
-
v !== t && (
|
|
1999
|
+
v !== t && (S = v);
|
|
2000
2000
|
}
|
|
2001
|
-
|
|
2001
|
+
I = O;
|
|
2002
2002
|
}
|
|
2003
|
-
return [
|
|
2003
|
+
return [S, p, h];
|
|
2004
2004
|
}
|
|
2005
2005
|
function cl(e, t, n, a, l, o) {
|
|
2006
2006
|
const { messageCompiler: r, warnHtmlMessage: s } = e;
|
|
@@ -2016,8 +2016,8 @@ function cl(e, t, n, a, l, o) {
|
|
|
2016
2016
|
process.env.NODE_ENV !== "production" && Xe && (i = window.performance.now(), g = "intlify-message-compilation-start", T = "intlify-message-compilation-end", Me && Me(g));
|
|
2017
2017
|
const h = r(a, Vr(e, n, l, a, s, o));
|
|
2018
2018
|
if (process.env.NODE_ENV !== "production" && Xe) {
|
|
2019
|
-
const p = window.performance.now(),
|
|
2020
|
-
|
|
2019
|
+
const p = window.performance.now(), S = e.__v_emitter;
|
|
2020
|
+
S && i && S.emit("message-compilation", {
|
|
2021
2021
|
type: "message-compilation",
|
|
2022
2022
|
message: a,
|
|
2023
2023
|
time: p - i,
|
|
@@ -2081,23 +2081,23 @@ function Wr(e, t, n, a) {
|
|
|
2081
2081
|
locale: t,
|
|
2082
2082
|
modifiers: l,
|
|
2083
2083
|
pluralRules: o,
|
|
2084
|
-
messages: (
|
|
2085
|
-
let O = r(n,
|
|
2086
|
-
if (O == null && (T ||
|
|
2084
|
+
messages: (S, I) => {
|
|
2085
|
+
let O = r(n, S);
|
|
2086
|
+
if (O == null && (T || I)) {
|
|
2087
2087
|
const [, , R] = ul(
|
|
2088
2088
|
T || e,
|
|
2089
2089
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2090
|
-
|
|
2090
|
+
S,
|
|
2091
2091
|
t,
|
|
2092
2092
|
s,
|
|
2093
2093
|
i,
|
|
2094
2094
|
g
|
|
2095
2095
|
);
|
|
2096
|
-
O = r(R,
|
|
2096
|
+
O = r(R, S);
|
|
2097
2097
|
}
|
|
2098
2098
|
if (B(O) || _t(O)) {
|
|
2099
2099
|
let R = !1;
|
|
2100
|
-
const A = cl(e,
|
|
2100
|
+
const A = cl(e, S, t, O, S, () => {
|
|
2101
2101
|
R = !0;
|
|
2102
2102
|
});
|
|
2103
2103
|
return R ? Ia : A;
|
|
@@ -2347,7 +2347,7 @@ function Xn(e = {}) {
|
|
|
2347
2347
|
// prettier-ignore
|
|
2348
2348
|
t && r ? t.fallbackLocale.value : B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
|
|
2349
2349
|
), g = o($n(s.value, e)), T = o(ne(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), h = o(ne(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
|
|
2350
|
-
let p = t ? t.missingWarn : ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0,
|
|
2350
|
+
let p = t ? t.missingWarn : ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : ce(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, I = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, R = pe(e.missing) ? e.missing : null, m = pe(e.missing) ? Da(e.missing) : null, A = pe(e.postTranslation) ? e.postTranslation : null, b = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, f = !!e.escapeParameter;
|
|
2351
2351
|
const v = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
2352
2352
|
let w = e.pluralRules || t && t.pluralRules, _;
|
|
2353
2353
|
_ = (() => {
|
|
@@ -2361,7 +2361,7 @@ function Xn(e = {}) {
|
|
|
2361
2361
|
pluralRules: w,
|
|
2362
2362
|
missing: m === null ? void 0 : m,
|
|
2363
2363
|
missingWarn: p,
|
|
2364
|
-
fallbackWarn:
|
|
2364
|
+
fallbackWarn: S,
|
|
2365
2365
|
fallbackFormat: O,
|
|
2366
2366
|
unresolving: !0,
|
|
2367
2367
|
postTranslation: A === null ? void 0 : A,
|
|
@@ -2421,19 +2421,19 @@ function Xn(e = {}) {
|
|
|
2421
2421
|
if (ie !== "translate exists" && // for not `te` (e.g `t`)
|
|
2422
2422
|
Ce(mt) && mt === hn || ie === "translate exists" && !mt) {
|
|
2423
2423
|
const [rt, on] = D();
|
|
2424
|
-
if (process.env.NODE_ENV !== "production" && t && B(rt) && dt(ie, on) && (
|
|
2424
|
+
if (process.env.NODE_ENV !== "production" && t && B(rt) && dt(ie, on) && (I && (yn(S, rt) || ll(p, rt)) && bt(Cn(gt.FALLBACK_TO_ROOT, {
|
|
2425
2425
|
key: rt,
|
|
2426
2426
|
type: ie
|
|
2427
2427
|
})), process.env.NODE_ENV !== "production")) {
|
|
2428
2428
|
const { __v_emitter: Pt } = _;
|
|
2429
|
-
Pt &&
|
|
2429
|
+
Pt && I && Pt.emit("fallback", {
|
|
2430
2430
|
type: ie,
|
|
2431
2431
|
key: rt,
|
|
2432
2432
|
to: "global",
|
|
2433
2433
|
groupId: `${ie}:${rt}`
|
|
2434
2434
|
});
|
|
2435
2435
|
}
|
|
2436
|
-
return t &&
|
|
2436
|
+
return t && I ? _e(t) : ot(rt);
|
|
2437
2437
|
} else {
|
|
2438
2438
|
if (Ft(mt))
|
|
2439
2439
|
return mt;
|
|
@@ -2581,16 +2581,16 @@ function Xn(e = {}) {
|
|
|
2581
2581
|
p = C, _.missingWarn = p;
|
|
2582
2582
|
},
|
|
2583
2583
|
get fallbackWarn() {
|
|
2584
|
-
return
|
|
2584
|
+
return S;
|
|
2585
2585
|
},
|
|
2586
2586
|
set fallbackWarn(C) {
|
|
2587
|
-
|
|
2587
|
+
S = C, _.fallbackWarn = S;
|
|
2588
2588
|
},
|
|
2589
2589
|
get fallbackRoot() {
|
|
2590
|
-
return
|
|
2590
|
+
return I;
|
|
2591
2591
|
},
|
|
2592
2592
|
set fallbackRoot(C) {
|
|
2593
|
-
|
|
2593
|
+
I = C;
|
|
2594
2594
|
},
|
|
2595
2595
|
get fallbackFormat() {
|
|
2596
2596
|
return O;
|
|
@@ -2887,20 +2887,20 @@ function gs(e, t) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
}
|
|
2889
2889
|
function _s(e) {
|
|
2890
|
-
const t = B(e.locale) ? e.locale : tn, n = B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = pe(e.missing) ? e.missing : void 0, l = ce(e.silentTranslationWarn) || Qt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ce(e.silentFallbackWarn) || Qt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ce(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = ne(e.modifiers) ? e.modifiers : {}, g = e.pluralizationRules, T = pe(e.postTranslation) ? e.postTranslation : void 0, h = B(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml,
|
|
2891
|
-
let
|
|
2890
|
+
const t = B(e.locale) ? e.locale : tn, n = B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = pe(e.missing) ? e.missing : void 0, l = ce(e.silentTranslationWarn) || Qt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ce(e.silentFallbackWarn) || Qt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ce(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = ne(e.modifiers) ? e.modifiers : {}, g = e.pluralizationRules, T = pe(e.postTranslation) ? e.postTranslation : void 0, h = B(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, S = ce(e.sync) ? e.sync : !0;
|
|
2891
|
+
let I = e.messages;
|
|
2892
2892
|
if (ne(e.sharedMessages)) {
|
|
2893
2893
|
const v = e.sharedMessages;
|
|
2894
|
-
|
|
2894
|
+
I = Object.keys(v).reduce((_, P) => {
|
|
2895
2895
|
const F = _[P] || (_[P] = {});
|
|
2896
2896
|
return Ne(F, v[P]), _;
|
|
2897
|
-
},
|
|
2897
|
+
}, I || {});
|
|
2898
2898
|
}
|
|
2899
2899
|
const { __i18n: O, __root: R, __injectWithOption: m } = e, A = e.datetimeFormats, b = e.numberFormats, f = e.flatJson;
|
|
2900
2900
|
return {
|
|
2901
2901
|
locale: t,
|
|
2902
2902
|
fallbackLocale: n,
|
|
2903
|
-
messages:
|
|
2903
|
+
messages: I,
|
|
2904
2904
|
flatJson: f,
|
|
2905
2905
|
datetimeFormats: A,
|
|
2906
2906
|
numberFormats: b,
|
|
@@ -2915,7 +2915,7 @@ function _s(e) {
|
|
|
2915
2915
|
warnHtmlMessage: h,
|
|
2916
2916
|
escapeParameter: p,
|
|
2917
2917
|
messageResolver: e.messageResolver,
|
|
2918
|
-
inheritLocale:
|
|
2918
|
+
inheritLocale: S,
|
|
2919
2919
|
__i18n: O,
|
|
2920
2920
|
__root: R,
|
|
2921
2921
|
__injectWithOption: m
|
|
@@ -3228,12 +3228,12 @@ 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), B(e.format) ? r.key = e.format : ue(e.format) && (B(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((p,
|
|
3231
|
+
e.locale && (r.locale = e.locale), B(e.format) ? r.key = e.format : ue(e.format) && (B(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((p, S) => n.includes(S) ? Ne(de(), p, { [S]: e.format[S] }) : p, de()));
|
|
3232
3232
|
const i = a(e.value, r, s);
|
|
3233
3233
|
let g = [r.key];
|
|
3234
|
-
Ee(i) ? g = i.map((p,
|
|
3235
|
-
const
|
|
3236
|
-
return hs(O) && (O[0].key = `${p.type}-${
|
|
3234
|
+
Ee(i) ? g = i.map((p, S) => {
|
|
3235
|
+
const I = l[p.type], O = I ? I({ [p.type]: p.value, index: S, parts: i }) : [p.value];
|
|
3236
|
+
return hs(O) && (O[0].key = `${p.type}-${S}`), O;
|
|
3237
3237
|
}) : B(i) && (g = [i]);
|
|
3238
3238
|
const T = Ne(de(), o), h = B(e.tag) || ue(e.tag) ? e.tag : El();
|
|
3239
3239
|
return ja(h, T, g);
|
|
@@ -3356,8 +3356,8 @@ function yl(e = {}, t) {
|
|
|
3356
3356
|
function i(p) {
|
|
3357
3357
|
return l.get(p) || null;
|
|
3358
3358
|
}
|
|
3359
|
-
function g(p,
|
|
3360
|
-
l.set(p,
|
|
3359
|
+
function g(p, S) {
|
|
3360
|
+
l.set(p, S);
|
|
3361
3361
|
}
|
|
3362
3362
|
function T(p) {
|
|
3363
3363
|
l.delete(p);
|
|
@@ -3368,16 +3368,16 @@ function yl(e = {}, t) {
|
|
|
3368
3368
|
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
3369
3369
|
},
|
|
3370
3370
|
// install plugin
|
|
3371
|
-
async install(p, ...
|
|
3372
|
-
if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = h), p.__VUE_I18N_SYMBOL__ = s, p.provide(p.__VUE_I18N_SYMBOL__, h), ne(
|
|
3373
|
-
const R =
|
|
3371
|
+
async install(p, ...S) {
|
|
3372
|
+
if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = h), p.__VUE_I18N_SYMBOL__ = s, p.provide(p.__VUE_I18N_SYMBOL__, h), ne(S[0])) {
|
|
3373
|
+
const R = S[0];
|
|
3374
3374
|
h.__composerExtend = R.__composerExtend, h.__vueI18nExtend = R.__vueI18nExtend;
|
|
3375
3375
|
}
|
|
3376
|
-
let
|
|
3377
|
-
!n && a && (
|
|
3376
|
+
let I = null;
|
|
3377
|
+
!n && a && (I = Ps(p, h.global)), __VUE_I18N_FULL_INSTALL__ && ks(p, h, ...S), __VUE_I18N_LEGACY_API__ && n && p.mixin(As(r, r.__composer, h));
|
|
3378
3378
|
const O = p.unmount;
|
|
3379
3379
|
if (p.unmount = () => {
|
|
3380
|
-
|
|
3380
|
+
I && I(), h.dispose(), O();
|
|
3381
3381
|
}, process.env.NODE_ENV !== "production") {
|
|
3382
3382
|
if (!await os(p, h))
|
|
3383
3383
|
throw Fe(me.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
@@ -3702,10 +3702,10 @@ const Cl = "3.7.7", Us = Cl, Yt = typeof Buffer == "function", Qa = typeof TextD
|
|
|
3702
3702
|
try {
|
|
3703
3703
|
const i = decodeURI(r.headers["content-disposition"]);
|
|
3704
3704
|
let g = s || i.split("filename*=utf-8")[1];
|
|
3705
|
-
const T = g.substring(g.lastIndexOf(".") + 1), h = new Blob([r.data], { type: Xs[T] ?? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }),
|
|
3706
|
-
|
|
3705
|
+
const T = g.substring(g.lastIndexOf(".") + 1), h = new Blob([r.data], { type: Xs[T] ?? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), S = (window.URL || window.webkitURL).createObjectURL(h), I = document.createElement("a");
|
|
3706
|
+
I.setAttribute("href", S);
|
|
3707
3707
|
const O = g.lastIndexOf(".");
|
|
3708
|
-
g = `${g.slice(0, O)}_${xe().format("YYYYMMDD") + g.slice(O)}`,
|
|
3708
|
+
g = `${g.slice(0, O)}_${xe().format("YYYYMMDD") + g.slice(O)}`, I.setAttribute("download", g), document.body.appendChild(I), I.click(), document.body.removeChild(I), window.URL.revokeObjectURL(S);
|
|
3709
3709
|
} catch (i) {
|
|
3710
3710
|
console.error(i);
|
|
3711
3711
|
}
|
|
@@ -3728,8 +3728,8 @@ const Cl = "3.7.7", Us = Cl, Yt = typeof Buffer == "function", Qa = typeof TextD
|
|
|
3728
3728
|
let g = i || n(s);
|
|
3729
3729
|
const T = g.lastIndexOf(".");
|
|
3730
3730
|
g = `${g.slice(0, T)}_${Date.now() + g.slice(T)}`, r({ url: s, method: "GET", responseType: "blob" }).then((h) => {
|
|
3731
|
-
const p = URL.createObjectURL(h.data),
|
|
3732
|
-
|
|
3731
|
+
const p = URL.createObjectURL(h.data), S = document.createElement("a");
|
|
3732
|
+
S.style.display = "none", S.setAttribute("href", p), S.setAttribute("target", "_blank"), S.setAttribute("download", g), document.body.appendChild(S), S.click(), document.body.removeChild(S), window.URL.revokeObjectURL(p);
|
|
3733
3733
|
});
|
|
3734
3734
|
}
|
|
3735
3735
|
function o(r) {
|
|
@@ -3865,18 +3865,18 @@ const ii = {
|
|
|
3865
3865
|
emits: ["onClickRow", "changeExpansionRow", "refresh", "load", "operate"],
|
|
3866
3866
|
setup(e, { expose: t, emit: n }) {
|
|
3867
3867
|
const a = it({
|
|
3868
|
-
loader: () => import("./index-
|
|
3868
|
+
loader: () => import("./index-9b985e07.js"),
|
|
3869
3869
|
loadingComponent: fn,
|
|
3870
3870
|
delay: 20
|
|
3871
3871
|
}), l = it({
|
|
3872
|
-
loader: () => import("./index-
|
|
3872
|
+
loader: () => import("./index-07ea7c6f.js"),
|
|
3873
3873
|
loadingComponent: fn,
|
|
3874
3874
|
delay: 20
|
|
3875
3875
|
}), o = it({
|
|
3876
|
-
loader: () => import("./index-
|
|
3876
|
+
loader: () => import("./index-96a5d15c.js"),
|
|
3877
3877
|
loadingComponent: fn,
|
|
3878
3878
|
delay: 20
|
|
3879
|
-
}), r = it(() => import("./index-
|
|
3879
|
+
}), r = it(() => import("./index-7c99a393.js")), s = it(() => import("./index-4b01c50e.js")), { t: i } = Tn(), g = Re("actModules"), T = Re("apiPrefix"), h = Re("request"), p = Re("themeColor"), S = Re("cacheTokenType"), I = Re("cookieStorage"), O = An(), R = Ja(), m = n, A = e, b = () => ({
|
|
3880
3880
|
pageLoading: !1,
|
|
3881
3881
|
tableLoading: !1,
|
|
3882
3882
|
tableTotal: 0,
|
|
@@ -3899,8 +3899,8 @@ const ii = {
|
|
|
3899
3899
|
}, ft = () => {
|
|
3900
3900
|
jl(() => {
|
|
3901
3901
|
setTimeout(() => {
|
|
3902
|
-
var W,
|
|
3903
|
-
const u = ((
|
|
3902
|
+
var W, V, x, M, U, X, J;
|
|
3903
|
+
const u = ((V = (W = Be.value) == null ? void 0 : W.$el) == null ? void 0 : V.offsetHeight) || 0, E = ((M = (x = le.value) == null ? void 0 : x.$el) == null ? void 0 : M.offsetHeight) || 0, Q = ((X = (U = z.value) == null ? void 0 : U.$el) == null ? void 0 : X.offsetHeight) || 0, j = u - E - Q - 6;
|
|
3904
3904
|
dt.value = A.maxHeight > 0 ? A.maxHeight : (J = _ == null ? void 0 : _.tableConfig) != null && J.isPagination ? j - 48 : j;
|
|
3905
3905
|
}, 500);
|
|
3906
3906
|
});
|
|
@@ -3911,24 +3911,24 @@ const ii = {
|
|
|
3911
3911
|
}, Rt = (u) => {
|
|
3912
3912
|
if (!u || !u.tableQueryDefaultValue)
|
|
3913
3913
|
return;
|
|
3914
|
-
const
|
|
3914
|
+
const Q = ze(u)["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
3915
3915
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "nowYear")
|
|
3916
|
-
return xe().format(
|
|
3916
|
+
return xe().format(Q);
|
|
3917
3917
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "yearAgo")
|
|
3918
|
-
return xe().subtract(1, "year").format(
|
|
3918
|
+
return xe().subtract(1, "year").format(Q);
|
|
3919
3919
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue.includes("&")) {
|
|
3920
3920
|
const j = u.tableQueryDefaultValue.split("&");
|
|
3921
|
-
return [xe(j[0]).subtract(6, "month").format(
|
|
3921
|
+
return [xe(j[0]).subtract(6, "month").format(Q), xe(j[1]).format(Q)];
|
|
3922
3922
|
}
|
|
3923
3923
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "yearAgo")
|
|
3924
|
-
return [xe().subtract(1, "year").format(
|
|
3924
|
+
return [xe().subtract(1, "year").format(Q), xe().format(Q)];
|
|
3925
3925
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "sixMonthsAgo")
|
|
3926
|
-
return [xe().subtract(6, "month").format(
|
|
3926
|
+
return [xe().subtract(6, "month").format(Q), xe().format(Q)];
|
|
3927
3927
|
}, Gt = (u, E) => {
|
|
3928
3928
|
if (!(E.row && Object.keys(E.row).length))
|
|
3929
3929
|
return;
|
|
3930
|
-
const j = (E.row[u.fieldKey] ?? "").split(";"), W = j && j.length ? j[0] : "",
|
|
3931
|
-
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(
|
|
3930
|
+
const j = (E.row[u.fieldKey] ?? "").split(";"), W = j && j.length ? j[0] : "", V = W.substring(W.lastIndexOf(".") + 1);
|
|
3931
|
+
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(V);
|
|
3932
3932
|
}, jt = (u, E) => {
|
|
3933
3933
|
if (!(E.row && Object.keys(E.row).length))
|
|
3934
3934
|
return;
|
|
@@ -3937,8 +3937,8 @@ const ii = {
|
|
|
3937
3937
|
}, qt = (u, E) => {
|
|
3938
3938
|
if (!(E.row && Object.keys(E.row).length))
|
|
3939
3939
|
return;
|
|
3940
|
-
const
|
|
3941
|
-
return
|
|
3940
|
+
const Q = E.row[u.fieldKey] ?? null;
|
|
3941
|
+
return Q ? Q.split(";") : [];
|
|
3942
3942
|
}, Ze = (u) => u === "true", ze = (u) => new Function("", u.fieldUiProps)() || {}, Ke = async (u, E) => Reflect.has(g, `/src/views${u}.vue`) ? oa(it(g[`/src/views${u}.vue`])) : null, Tt = async (u, E) => Reflect.has(g, `/src/views${u}.vue`) ? oa(
|
|
3943
3943
|
it({
|
|
3944
3944
|
loader: g[`/src/views${u}.vue`],
|
|
@@ -3949,18 +3949,18 @@ const ii = {
|
|
|
3949
3949
|
_.buttons = await Promise.all(
|
|
3950
3950
|
_.buttons.map(async (u) => {
|
|
3951
3951
|
if (u.isCustomBtn && u.customType == "component") {
|
|
3952
|
-
const { customComponentUrl: E, customComponentName:
|
|
3953
|
-
u[
|
|
3952
|
+
const { customComponentUrl: E, customComponentName: Q } = u, j = await Ke(E);
|
|
3953
|
+
u[Q] = j;
|
|
3954
3954
|
}
|
|
3955
3955
|
return u;
|
|
3956
3956
|
})
|
|
3957
3957
|
);
|
|
3958
3958
|
}, d = async () => {
|
|
3959
|
-
const u = _.fields.filter((E) => (E.formCustomComponentes ?? []).some((
|
|
3959
|
+
const u = _.fields.filter((E) => (E.formCustomComponentes ?? []).some((Q) => Q.permissionCode == "tableShow" && Q.isFieldCustom));
|
|
3960
3960
|
he.value = await Promise.all(
|
|
3961
3961
|
u.map(async (E) => {
|
|
3962
|
-
const
|
|
3963
|
-
return E.customTableHeaderName = W, E.customTableHeaderUrl = j, E[`customTableHeaderInstance_${W}`] =
|
|
3962
|
+
const Q = E.formCustomComponentes.find((x) => x.permissionCode == "tableShow"), { customComponentUrl: j, customComponentName: W } = Q, V = await Ke(j);
|
|
3963
|
+
return E.customTableHeaderName = W, E.customTableHeaderUrl = j, E[`customTableHeaderInstance_${W}`] = V, E.headerItem = {
|
|
3964
3964
|
label: E.fieldName,
|
|
3965
3965
|
prop: E.fieldKey,
|
|
3966
3966
|
align: E.tableCellAlignType,
|
|
@@ -3974,7 +3974,7 @@ const ii = {
|
|
|
3974
3974
|
}, c = (u, E) => {
|
|
3975
3975
|
switch (u) {
|
|
3976
3976
|
case "array":
|
|
3977
|
-
return typeof E == "string" ? E.toString().split().sort((
|
|
3977
|
+
return typeof E == "string" ? E.toString().split().sort((Q, j) => Q.sort - j.sort) : [E];
|
|
3978
3978
|
case "number":
|
|
3979
3979
|
return Number(E);
|
|
3980
3980
|
case "boolean":
|
|
@@ -3984,58 +3984,58 @@ const ii = {
|
|
|
3984
3984
|
}
|
|
3985
3985
|
}, L = (u, E) => E[u.fieldKey] ? E[u.fieldKey].toString().includes("T") ? xe(E[u.fieldKey]).format("YYYY-MM-DD HH:mm:ss") : E[u.fieldKey] : "";
|
|
3986
3986
|
function K(u, E = {}) {
|
|
3987
|
-
return u.replace(/\{([^}]+)\}/g, (
|
|
3987
|
+
return u.replace(/\{([^}]+)\}/g, (Q, j) => {
|
|
3988
3988
|
const W = j.trim().split(".");
|
|
3989
|
-
let
|
|
3989
|
+
let V = E;
|
|
3990
3990
|
for (const x of W) {
|
|
3991
|
-
if (!
|
|
3991
|
+
if (!V || typeof V != "object")
|
|
3992
3992
|
break;
|
|
3993
|
-
|
|
3993
|
+
V = V[x];
|
|
3994
3994
|
}
|
|
3995
|
-
return
|
|
3995
|
+
return V !== void 0 ? V : Q;
|
|
3996
3996
|
});
|
|
3997
3997
|
}
|
|
3998
|
-
const ge = (u) => u ? K(u, A.matchData) : "", be = (u, E,
|
|
3998
|
+
const ge = (u) => u ? K(u, A.matchData) : "", be = (u, E, Q) => {
|
|
3999
3999
|
switch (u) {
|
|
4000
4000
|
case "LessThanOrEqual":
|
|
4001
|
-
return E <=
|
|
4001
|
+
return E <= Q;
|
|
4002
4002
|
case "LessThan":
|
|
4003
|
-
return E <
|
|
4003
|
+
return E < Q;
|
|
4004
4004
|
case "GreaterThanOrEqual":
|
|
4005
|
-
return E >=
|
|
4005
|
+
return E >= Q;
|
|
4006
4006
|
case "GreaterThan":
|
|
4007
|
-
return E >
|
|
4007
|
+
return E > Q;
|
|
4008
4008
|
case "NotEqual":
|
|
4009
|
-
return E !=
|
|
4009
|
+
return E != Q;
|
|
4010
4010
|
case "Equal":
|
|
4011
|
-
return E ==
|
|
4011
|
+
return E == Q;
|
|
4012
4012
|
default:
|
|
4013
|
-
return E ==
|
|
4013
|
+
return E == Q;
|
|
4014
4014
|
}
|
|
4015
4015
|
}, se = (u, E) => {
|
|
4016
4016
|
if (!u.matchFields.length)
|
|
4017
4017
|
return !0;
|
|
4018
|
-
const
|
|
4018
|
+
const Q = (x) => x.matchType == "default" ? E[x.matchFieldName] : A.matchData[x.matchType][x.matchFieldName];
|
|
4019
4019
|
let W = u.matchFields.reduce((x, M, U) => {
|
|
4020
|
-
const X =
|
|
4020
|
+
const X = Q(M), J = be(
|
|
4021
4021
|
M.matchCondition,
|
|
4022
4022
|
X,
|
|
4023
4023
|
M.fieldValue == "" ? null : M.fieldValue == "true" || M.fieldValue == "false" ? Ze(M.fieldValue) : M.fieldValue
|
|
4024
4024
|
);
|
|
4025
4025
|
return x += J, U !== u.matchFields.length - 1 && (x += M.spliceCondition || "&&"), x;
|
|
4026
|
-
}, "").split("||"),
|
|
4027
|
-
return new Function(`return ${
|
|
4028
|
-
}, C = (u, E) => Object.keys(E).length ? w.value.some((
|
|
4026
|
+
}, "").split("||"), V = W.reduce((x, M, U) => (x += `(${M})`, U < W.length - 1 && (x += "||"), x), "");
|
|
4027
|
+
return new Function(`return ${V}`)();
|
|
4028
|
+
}, C = (u, E) => Object.keys(E).length ? w.value.some((Q) => Q.unique == u.permissionCode) && se(u, E) : !1, D = async (u) => {
|
|
4029
4029
|
try {
|
|
4030
4030
|
f.pageLoading = !0;
|
|
4031
4031
|
const E = A.pageKey ?? O.params.key, {
|
|
4032
|
-
data: { pageConfigs:
|
|
4032
|
+
data: { pageConfigs: Q }
|
|
4033
4033
|
} = await Ye(E);
|
|
4034
|
-
return _ =
|
|
4034
|
+
return _ = Q.pageConfig ? JSON.parse(Q.pageConfig) : {}, f.tableQuery.pageSize = _.tableConfig.pageSize || 10, f.pageLoading = !1, Promise.resolve(Object.keys(_).length);
|
|
4035
4035
|
} catch (E) {
|
|
4036
4036
|
f.pageLoading = !1, console.error(E);
|
|
4037
4037
|
}
|
|
4038
|
-
}, ie = async (u = [], E = {},
|
|
4038
|
+
}, ie = async (u = [], E = {}, Q = !0, j = !1) => {
|
|
4039
4039
|
try {
|
|
4040
4040
|
const W = u.filter(
|
|
4041
4041
|
(M) => [
|
|
@@ -4068,7 +4068,7 @@ const ii = {
|
|
|
4068
4068
|
});
|
|
4069
4069
|
})
|
|
4070
4070
|
)).filter((M) => M.status === "fulfilled" && Reflect.has(M, "value")).map((M) => M.value);
|
|
4071
|
-
return
|
|
4071
|
+
return Q && _.fields.forEach((M) => {
|
|
4072
4072
|
const U = x.find((X) => M.fieldName == X.fieldName && M.fieldKey == X.fieldKey);
|
|
4073
4073
|
U && (M.dataList = (U == null ? void 0 : U.dataList) ?? []);
|
|
4074
4074
|
}), x;
|
|
@@ -4093,25 +4093,25 @@ const ii = {
|
|
|
4093
4093
|
return _e.value ? [] : G.value.slice(u, (E = G.value) == null ? void 0 : E.length);
|
|
4094
4094
|
}, mt = async (u) => {
|
|
4095
4095
|
try {
|
|
4096
|
-
const E = (u || []).filter((
|
|
4097
|
-
let j = E.map((
|
|
4098
|
-
const x =
|
|
4096
|
+
const E = (u || []).filter((V) => V.useScenes.some((x) => ["tableShow"].includes(x))).sort((V, x) => V.sort - x.sort), Q = ["editor", "upload", "date"];
|
|
4097
|
+
let j = E.map((V) => {
|
|
4098
|
+
const x = V.formCustomComponentes.some((M) => M.permissionCode == "tableShow" && M.isFieldCustom);
|
|
4099
4099
|
return {
|
|
4100
|
-
label:
|
|
4101
|
-
prop:
|
|
4102
|
-
align:
|
|
4103
|
-
width:
|
|
4104
|
-
minWidth:
|
|
4105
|
-
showOverflowTooltip:
|
|
4106
|
-
sort:
|
|
4107
|
-
render: !!
|
|
4100
|
+
label: V.fieldName,
|
|
4101
|
+
prop: V.fieldKey,
|
|
4102
|
+
align: V.tableCellAlignType,
|
|
4103
|
+
width: V.tableCellWidthType == "default" ? V.tableCellWidth : "",
|
|
4104
|
+
minWidth: V.tableCellWidthType == "min" ? V.tableCellWidth : "",
|
|
4105
|
+
showOverflowTooltip: V.isTableCellOverflowTooltip || !1,
|
|
4106
|
+
sort: V.isTableCellSort || !1,
|
|
4107
|
+
render: !!V.fieldRequestUrl || V.tableCellContentType == "link" || Q.includes(V.fieldType),
|
|
4108
4108
|
isCustomTableHeader: x
|
|
4109
4109
|
};
|
|
4110
4110
|
});
|
|
4111
4111
|
_.tableConfig.isSerialNumber && j.unshift({ prop: "serialNumber", width: 80 }), _.tableConfig.isCheckRow && j.unshift({ prop: "checkbox", width: 50 });
|
|
4112
|
-
const W = G.value.filter((
|
|
4112
|
+
const W = G.value.filter((V) => w.value.some((x) => x.unique == V.permissionCode));
|
|
4113
4113
|
_.tableConfig.isOperateRow && W.length && j.push({ label: i("act.operate"), prop: "operate", width: _.tableConfig.tableOperateCellWidth, render: !0, fixed: "right" }), te.value = E.filter(
|
|
4114
|
-
(
|
|
4114
|
+
(V) => !!V.fieldRequestUrl && V.useScenes.includes("tableShow") || V.tableCellContentType == "link" || Q.includes(V.fieldType)
|
|
4115
4115
|
), F.value = j;
|
|
4116
4116
|
} catch (E) {
|
|
4117
4117
|
console.error(E);
|
|
@@ -4122,9 +4122,9 @@ const ii = {
|
|
|
4122
4122
|
E.field == u.fieldKey && E.operate === u.tableQueryCondition && (u.queryValue = E.value);
|
|
4123
4123
|
}), u)), Pt = (u, E = "queryValue") => u ? (u || []).filter((j) => !!j[E]).reduce((j, W) => {
|
|
4124
4124
|
var x;
|
|
4125
|
-
const
|
|
4126
|
-
if (W.fieldType === "date" &&
|
|
4127
|
-
const M =
|
|
4125
|
+
const V = ze(W);
|
|
4126
|
+
if (W.fieldType === "date" && V["value-format"] !== "YYYY") {
|
|
4127
|
+
const M = V != null && V.dayJsType ? zs[(x = W.fieldUiProps) == null ? void 0 : x.dayJsType] : "day", U = V["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
4128
4128
|
j = [
|
|
4129
4129
|
...j,
|
|
4130
4130
|
{ field: W.fieldKey, operate: "GreaterThanOrEqual", value: xe(W[E]).startOf(M).format(U) },
|
|
@@ -4160,24 +4160,24 @@ const ii = {
|
|
|
4160
4160
|
}, []) : [], Ml = (u, E) => {
|
|
4161
4161
|
if (!u.dataList || !Reflect.has(E, u.fieldKey))
|
|
4162
4162
|
return "";
|
|
4163
|
-
const
|
|
4164
|
-
if (!
|
|
4163
|
+
const Q = E[u.fieldKey];
|
|
4164
|
+
if (!Q && Q !== 0 && Q !== !1)
|
|
4165
4165
|
return "";
|
|
4166
4166
|
const j = ze(u), W = Object.assign({ key: "key", value: "value" }, j.props || {});
|
|
4167
|
-
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (W.key = W.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(u.fieldType) ? (u.dataList || []).filter((
|
|
4168
|
-
const x = u.fieldType === "selectIcon" ? `btn-${
|
|
4169
|
-
return Array.isArray(
|
|
4170
|
-
}).map((
|
|
4167
|
+
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (W.key = W.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(u.fieldType) ? (u.dataList || []).filter((V) => {
|
|
4168
|
+
const x = u.fieldType === "selectIcon" ? `btn-${V[W.value]}` : V[W.value], M = x == "true" || x == "false" ? Ze(x) : x;
|
|
4169
|
+
return Array.isArray(Q) ? Q.some((U) => U == x == U) : typeof Q == "string" ? Q.split(";").includes(M) : Q == M;
|
|
4170
|
+
}).map((V) => V[W.key]).join(";") : Q;
|
|
4171
4171
|
}, Ge = async (u = []) => {
|
|
4172
4172
|
try {
|
|
4173
4173
|
f.tableLoading = !0;
|
|
4174
4174
|
const E = A.defaultParams.filter(
|
|
4175
|
-
(
|
|
4176
|
-
),
|
|
4177
|
-
field:
|
|
4178
|
-
operate:
|
|
4179
|
-
value: c(
|
|
4180
|
-
})), j = [...E, ...
|
|
4175
|
+
(V) => !(_.fields ?? []).some((x) => x.fieldKey === V.field && x.tableQueryCondition === V.operate && x.useScenes.includes("tableSearch"))
|
|
4176
|
+
), Q = _.tableConfig.defaultParams.map((V) => ({
|
|
4177
|
+
field: V.submitFieldName,
|
|
4178
|
+
operate: V.matchValue,
|
|
4179
|
+
value: c(V.submitFieldType, V.defaultValue)
|
|
4180
|
+
})), j = [...E, ...Q, ...Pt(u)];
|
|
4181
4181
|
_.tableConfig.isPagination || (f.tableQuery.pageSize = 9999);
|
|
4182
4182
|
const { data: W } = await h({
|
|
4183
4183
|
url: _.tableConfig.dataUrl,
|
|
@@ -4199,10 +4199,15 @@ const ii = {
|
|
|
4199
4199
|
v.value = "end";
|
|
4200
4200
|
return;
|
|
4201
4201
|
}
|
|
4202
|
-
await d(), await Jt(), await ie(_.fields.filter((
|
|
4203
|
-
let
|
|
4204
|
-
|
|
4205
|
-
|
|
4202
|
+
await d(), await Jt(), await ie(_.fields.filter((V) => V.useScenes.some((x) => ["tableSearch", "tableShow"].includes(x)))), v.value = "success";
|
|
4203
|
+
let Q = "";
|
|
4204
|
+
if (S === "sessionStorage")
|
|
4205
|
+
Q = sessionStorage.getItem("accessToken");
|
|
4206
|
+
else {
|
|
4207
|
+
const V = I.getPrefix();
|
|
4208
|
+
Q = I.getItemValue(`${V}accessToken`);
|
|
4209
|
+
}
|
|
4210
|
+
const W = JSON.parse(Gs.decode(Q.split(".")[1]))["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];
|
|
4206
4211
|
w.value = (await lt({ roleId: W, key: u })).data.datas || [], rt(), mt(_.fields), ft(), P = on(), (!Reflect.has(_.tableConfig, "isExecuteImmediatelyTableApi") || _.tableConfig.isExecuteImmediatelyTableApi) && await Ge(P), m("load"), console.log(_);
|
|
4207
4212
|
} catch (u) {
|
|
4208
4213
|
console.error(u), v.value = "end";
|
|
@@ -4220,7 +4225,7 @@ const ii = {
|
|
|
4220
4225
|
}, Bl = (u) => {
|
|
4221
4226
|
m("operate", u), Ge(P);
|
|
4222
4227
|
}, rn = (u, E) => {
|
|
4223
|
-
const { exportFile:
|
|
4228
|
+
const { exportFile: Q, importFile: j, downloadFile: W } = Zs();
|
|
4224
4229
|
if (u.isCustomBtn) {
|
|
4225
4230
|
if (u.customType == "component" && !Reflect.has(u, [u.customComponentName])) {
|
|
4226
4231
|
Pe({
|
|
@@ -4233,7 +4238,7 @@ const ii = {
|
|
|
4233
4238
|
}
|
|
4234
4239
|
if (u.customType == "code") {
|
|
4235
4240
|
try {
|
|
4236
|
-
new Function("router", "route", "data", "configItem", u.codeStr)(R, O, E, u);
|
|
4241
|
+
new Function("router", "route", "data", "configItem", "cookieStorage", u.codeStr)(R, O, E, u, I);
|
|
4237
4242
|
} catch (M) {
|
|
4238
4243
|
console.error(M);
|
|
4239
4244
|
}
|
|
@@ -4291,7 +4296,7 @@ const ii = {
|
|
|
4291
4296
|
},
|
|
4292
4297
|
responseType: ["exportUrl"].includes(u.submitWay) ? "json" : "blob"
|
|
4293
4298
|
}).then((X) => {
|
|
4294
|
-
u.submitWay == "exportUrl" ? W(h, X.data) :
|
|
4299
|
+
u.submitWay == "exportUrl" ? W(h, X.data) : Q(X), m("operate", u), u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4295
4300
|
}).catch((X) => {
|
|
4296
4301
|
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4297
4302
|
});
|
|
@@ -4423,8 +4428,8 @@ const ii = {
|
|
|
4423
4428
|
}
|
|
4424
4429
|
return;
|
|
4425
4430
|
}
|
|
4426
|
-
let
|
|
4427
|
-
if (!
|
|
4431
|
+
let V = (_.fields || []).filter((x) => x.useScenes.includes(u.permissionCode)).map((x) => (x.customFiledsComponentes = x.formCustomComponentes.find((M) => M.permissionCode == u.permissionCode) || {}, x));
|
|
4432
|
+
if (!V.length) {
|
|
4428
4433
|
Pe({ title: i("act.tip"), message: i("act.buttonBindField"), type: "warning", duration: 2500 });
|
|
4429
4434
|
return;
|
|
4430
4435
|
}
|
|
@@ -4434,19 +4439,19 @@ const ii = {
|
|
|
4434
4439
|
rowData: { ...E },
|
|
4435
4440
|
selections: f.tableSelection || [],
|
|
4436
4441
|
formConfig: _.formConfig,
|
|
4437
|
-
formList:
|
|
4442
|
+
formList: V
|
|
4438
4443
|
}, f.showFormDialog = !0;
|
|
4439
4444
|
return;
|
|
4440
4445
|
}
|
|
4441
|
-
}, xl = (u, E,
|
|
4442
|
-
m("onClickRow", u, E,
|
|
4446
|
+
}, xl = (u, E, Q) => {
|
|
4447
|
+
m("onClickRow", u, E, Q);
|
|
4443
4448
|
}, Vl = (u, E) => {
|
|
4444
4449
|
we.value = u, m("changeExpansionRow", u, E);
|
|
4445
4450
|
}, Ql = (u, E) => {
|
|
4446
4451
|
f.editorDialogTitle = `${i("act.preview")}${u.fieldName}`, f.dialogData = { ...E, editorContent: E[u.fieldKey] }, f.showEditorPreDialog = !0;
|
|
4447
4452
|
};
|
|
4448
4453
|
return t({ loadData: na, getDynamicFiltersData: Ct, getTableData: Ge, getTableSelection: Kt, setTableSelection: fe }), (u, E) => {
|
|
4449
|
-
const
|
|
4454
|
+
const Q = q("el-table-column"), j = q("el-image"), W = q("el-link"), V = q("a-svg-icon"), x = q("el-button"), M = q("el-dropdown-item"), U = q("el-dropdown-menu"), X = q("el-dropdown"), J = q("el-empty"), ye = q("el-card"), et = Vt("debounce"), ke = Vt("loading");
|
|
4450
4455
|
return nt((H(), oe(ye, {
|
|
4451
4456
|
class: "act-module",
|
|
4452
4457
|
ref_key: "actModuleRef",
|
|
@@ -4509,7 +4514,7 @@ const ii = {
|
|
|
4509
4514
|
onClick: (Nt) => rn($, Z.row)
|
|
4510
4515
|
}, {
|
|
4511
4516
|
default: k(() => [
|
|
4512
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4517
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4513
4518
|
key: 0,
|
|
4514
4519
|
class: "mr2",
|
|
4515
4520
|
name: $.btnIcon,
|
|
@@ -4535,7 +4540,7 @@ const ii = {
|
|
|
4535
4540
|
onClick: (Nt) => rn($, Z.row)
|
|
4536
4541
|
}, {
|
|
4537
4542
|
default: k(() => [
|
|
4538
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4543
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4539
4544
|
key: 0,
|
|
4540
4545
|
class: "mr2",
|
|
4541
4546
|
name: $.btnIcon,
|
|
@@ -4581,7 +4586,7 @@ const ii = {
|
|
|
4581
4586
|
loading: Z.row[`loading${$.permissionCode}`]
|
|
4582
4587
|
}, {
|
|
4583
4588
|
default: k(() => [
|
|
4584
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4589
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4585
4590
|
key: 0,
|
|
4586
4591
|
class: "mr2",
|
|
4587
4592
|
name: $.btnIcon,
|
|
@@ -4606,7 +4611,7 @@ const ii = {
|
|
|
4606
4611
|
loading: Z.row[`loading${$.permissionCode}`]
|
|
4607
4612
|
}, {
|
|
4608
4613
|
default: k(() => [
|
|
4609
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4614
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4610
4615
|
key: 0,
|
|
4611
4616
|
class: "mr2",
|
|
4612
4617
|
name: $.btnIcon,
|
|
@@ -4649,7 +4654,7 @@ const ii = {
|
|
|
4649
4654
|
data: Z,
|
|
4650
4655
|
configData: y(_),
|
|
4651
4656
|
rowData: y(we)
|
|
4652
|
-
}, null, 8, ["data", "configData", "rowData"])) : (H(), oe(
|
|
4657
|
+
}, null, 8, ["data", "configData", "rowData"])) : (H(), oe(Q, {
|
|
4653
4658
|
key: 1,
|
|
4654
4659
|
label: Z.fieldName + y(i)("act.customTableHeader"),
|
|
4655
4660
|
width: "260"
|
|
@@ -4705,7 +4710,7 @@ const ii = {
|
|
|
4705
4710
|
description: y(i)("act.noConfigPage")
|
|
4706
4711
|
}, {
|
|
4707
4712
|
image: k(() => [
|
|
4708
|
-
N(
|
|
4713
|
+
N(V, {
|
|
4709
4714
|
name: "config-nodata",
|
|
4710
4715
|
width: "200",
|
|
4711
4716
|
height: "200"
|
|
@@ -4721,7 +4726,7 @@ const ii = {
|
|
|
4721
4726
|
]);
|
|
4722
4727
|
};
|
|
4723
4728
|
}
|
|
4724
|
-
}, Pl = /* @__PURE__ */ wt(fi, [["__scopeId", "data-v-
|
|
4729
|
+
}, Pl = /* @__PURE__ */ wt(fi, [["__scopeId", "data-v-5e51a3ae"]]), Hi = [
|
|
4725
4730
|
{ key: "按钮形式", value: "default" },
|
|
4726
4731
|
{ key: "文字形式", value: "text" }
|
|
4727
4732
|
], Yi = [
|
|
@@ -4848,7 +4853,7 @@ const ii = {
|
|
|
4848
4853
|
},
|
|
4849
4854
|
{ deep: !0, immediate: !0 }
|
|
4850
4855
|
), t({ formRef: o, form: r }), (s, i) => {
|
|
4851
|
-
const g = q("el-input-number"), T = q("el-form-item"), h = q("el-col"), p = q("el-option"),
|
|
4856
|
+
const g = q("el-input-number"), T = q("el-form-item"), h = q("el-col"), p = q("el-option"), S = q("el-select"), I = q("el-row"), O = q("el-form"), R = q("el-card");
|
|
4852
4857
|
return H(), oe(R, {
|
|
4853
4858
|
class: "form-card",
|
|
4854
4859
|
shadow: "hover",
|
|
@@ -4863,7 +4868,7 @@ const ii = {
|
|
|
4863
4868
|
"label-width": "110px"
|
|
4864
4869
|
}, {
|
|
4865
4870
|
default: k(() => [
|
|
4866
|
-
N(
|
|
4871
|
+
N(I, null, {
|
|
4867
4872
|
default: k(() => [
|
|
4868
4873
|
N(h, { span: 8 }, {
|
|
4869
4874
|
default: k(() => [
|
|
@@ -4919,7 +4924,7 @@ const ii = {
|
|
|
4919
4924
|
prop: "formLabelPosition"
|
|
4920
4925
|
}, {
|
|
4921
4926
|
default: k(() => [
|
|
4922
|
-
N(
|
|
4927
|
+
N(S, {
|
|
4923
4928
|
modelValue: y(r).formLabelPosition,
|
|
4924
4929
|
"onUpdate:modelValue": i[3] || (i[3] = (m) => y(r).formLabelPosition = m),
|
|
4925
4930
|
placeholder: "请选择"
|
|
@@ -4982,9 +4987,9 @@ const bi = {
|
|
|
4982
4987
|
if (h) {
|
|
4983
4988
|
if (!Object.keys(h).length)
|
|
4984
4989
|
return;
|
|
4985
|
-
const
|
|
4986
|
-
Object.keys(s.value).forEach((
|
|
4987
|
-
["defaultParams"].includes(
|
|
4990
|
+
const S = { ...h, defaultParams: [...h.defaultParams || []] };
|
|
4991
|
+
Object.keys(s.value).forEach((I) => {
|
|
4992
|
+
["defaultParams"].includes(I) ? s.value[I] = [...S[I] || []] : I === "tableMoreBtnSplitNumber" ? s.value[I] = Reflect.has(S, "tableMoreBtnSplitNumber") ? S[I] : 0 : I === "headerMoreBtnSplitNumber" ? s.value[I] = Reflect.has(S, "headerMoreBtnSplitNumber") ? S[I] : 0 : I === "isExecuteImmediatelyTableApi" ? s.value[I] = Reflect.has(S, "isExecuteImmediatelyTableApi") ? S[I] : !0 : s.value[I] = S[I];
|
|
4988
4993
|
});
|
|
4989
4994
|
}
|
|
4990
4995
|
},
|
|
@@ -4998,7 +5003,7 @@ const bi = {
|
|
|
4998
5003
|
h || (s.value.pageSize = 10);
|
|
4999
5004
|
};
|
|
5000
5005
|
return t({ formRef: r, form: s }), (h, p) => {
|
|
5001
|
-
const
|
|
5006
|
+
const S = q("el-input"), I = q("el-form-item"), O = q("el-col"), R = q("el-row"), m = q("el-button"), A = q("el-divider"), b = q("el-option"), f = q("el-select"), v = q("el-switch"), w = q("el-input-number"), _ = q("el-form"), P = q("el-card");
|
|
5002
5007
|
return H(), oe(P, {
|
|
5003
5008
|
class: "form-card",
|
|
5004
5009
|
shadow: "hover",
|
|
@@ -5017,13 +5022,13 @@ const bi = {
|
|
|
5017
5022
|
default: k(() => [
|
|
5018
5023
|
N(O, { span: 24 }, {
|
|
5019
5024
|
default: k(() => [
|
|
5020
|
-
N(
|
|
5025
|
+
N(I, {
|
|
5021
5026
|
label: "表格数据url",
|
|
5022
5027
|
prop: "dataUrl",
|
|
5023
5028
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }]
|
|
5024
5029
|
}, {
|
|
5025
5030
|
default: k(() => [
|
|
5026
|
-
N(
|
|
5031
|
+
N(S, {
|
|
5027
5032
|
modelValue: y(s).dataUrl,
|
|
5028
5033
|
"onUpdate:modelValue": p[0] || (p[0] = (F) => y(s).dataUrl = F),
|
|
5029
5034
|
placeholder: "请输入",
|
|
@@ -5058,13 +5063,13 @@ const bi = {
|
|
|
5058
5063
|
default: k(() => [
|
|
5059
5064
|
N(O, { span: 12 }, {
|
|
5060
5065
|
default: k(() => [
|
|
5061
|
-
N(
|
|
5066
|
+
N(I, {
|
|
5062
5067
|
label: "字段",
|
|
5063
5068
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }],
|
|
5064
5069
|
prop: "defaultParams." + G + ".submitFieldName"
|
|
5065
5070
|
}, {
|
|
5066
5071
|
default: k(() => [
|
|
5067
|
-
N(
|
|
5072
|
+
N(S, {
|
|
5068
5073
|
modelValue: F.submitFieldName,
|
|
5069
5074
|
"onUpdate:modelValue": (Y) => F.submitFieldName = Y,
|
|
5070
5075
|
placeholder: "请输入",
|
|
@@ -5078,7 +5083,7 @@ const bi = {
|
|
|
5078
5083
|
}, 1024),
|
|
5079
5084
|
N(O, { span: 12 }, {
|
|
5080
5085
|
default: k(() => [
|
|
5081
|
-
N(
|
|
5086
|
+
N(I, {
|
|
5082
5087
|
label: "匹配条件",
|
|
5083
5088
|
rules: [{ required: !0, message: "必填项", trigger: "change" }],
|
|
5084
5089
|
prop: "defaultParams." + G + ".matchValue"
|
|
@@ -5108,13 +5113,13 @@ const bi = {
|
|
|
5108
5113
|
}, 1024),
|
|
5109
5114
|
N(O, { span: 12 }, {
|
|
5110
5115
|
default: k(() => [
|
|
5111
|
-
N(
|
|
5116
|
+
N(I, {
|
|
5112
5117
|
label: "默认值",
|
|
5113
5118
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }],
|
|
5114
5119
|
prop: "defaultParams." + G + ".defaultValue"
|
|
5115
5120
|
}, {
|
|
5116
5121
|
default: k(() => [
|
|
5117
|
-
N(
|
|
5122
|
+
N(S, {
|
|
5118
5123
|
modelValue: F.defaultValue,
|
|
5119
5124
|
"onUpdate:modelValue": (Y) => F.defaultValue = Y,
|
|
5120
5125
|
placeholder: "请输入",
|
|
@@ -5128,7 +5133,7 @@ const bi = {
|
|
|
5128
5133
|
}, 1024),
|
|
5129
5134
|
N(O, { span: 12 }, {
|
|
5130
5135
|
default: k(() => [
|
|
5131
|
-
N(
|
|
5136
|
+
N(I, {
|
|
5132
5137
|
label: "提交类型",
|
|
5133
5138
|
rules: [{ required: !0, message: "必填项", trigger: "change" }],
|
|
5134
5139
|
prop: "defaultParams." + G + ".submitFieldType"
|
|
@@ -5179,7 +5184,7 @@ const bi = {
|
|
|
5179
5184
|
default: k(() => [
|
|
5180
5185
|
N(O, { span: 6 }, {
|
|
5181
5186
|
default: k(() => [
|
|
5182
|
-
N(
|
|
5187
|
+
N(I, { label: "多选列" }, {
|
|
5183
5188
|
default: k(() => [
|
|
5184
5189
|
N(v, {
|
|
5185
5190
|
modelValue: y(s).isCheckRow,
|
|
@@ -5193,7 +5198,7 @@ const bi = {
|
|
|
5193
5198
|
}),
|
|
5194
5199
|
N(O, { span: 6 }, {
|
|
5195
5200
|
default: k(() => [
|
|
5196
|
-
N(
|
|
5201
|
+
N(I, { label: "操作列" }, {
|
|
5197
5202
|
default: k(() => [
|
|
5198
5203
|
N(v, {
|
|
5199
5204
|
modelValue: y(s).isOperateRow,
|
|
@@ -5207,7 +5212,7 @@ const bi = {
|
|
|
5207
5212
|
}),
|
|
5208
5213
|
N(O, { span: 6 }, {
|
|
5209
5214
|
default: k(() => [
|
|
5210
|
-
N(
|
|
5215
|
+
N(I, { label: "分页" }, {
|
|
5211
5216
|
default: k(() => [
|
|
5212
5217
|
N(v, {
|
|
5213
5218
|
modelValue: y(s).isPagination,
|
|
@@ -5222,7 +5227,7 @@ const bi = {
|
|
|
5222
5227
|
}),
|
|
5223
5228
|
N(O, { span: 6 }, {
|
|
5224
5229
|
default: k(() => [
|
|
5225
|
-
N(
|
|
5230
|
+
N(I, { label: "序号列" }, {
|
|
5226
5231
|
default: k(() => [
|
|
5227
5232
|
N(v, {
|
|
5228
5233
|
modelValue: y(s).isSerialNumber,
|
|
@@ -5236,7 +5241,7 @@ const bi = {
|
|
|
5236
5241
|
}),
|
|
5237
5242
|
N(O, { span: 6 }, {
|
|
5238
5243
|
default: k(() => [
|
|
5239
|
-
N(
|
|
5244
|
+
N(I, { label: "排序" }, {
|
|
5240
5245
|
default: k(() => [
|
|
5241
5246
|
N(v, {
|
|
5242
5247
|
modelValue: y(s).isSort,
|
|
@@ -5250,7 +5255,7 @@ const bi = {
|
|
|
5250
5255
|
}),
|
|
5251
5256
|
N(O, { span: 6 }, {
|
|
5252
5257
|
default: k(() => [
|
|
5253
|
-
N(
|
|
5258
|
+
N(I, { label: "展/收查询条件" }, {
|
|
5254
5259
|
default: k(() => [
|
|
5255
5260
|
N(v, {
|
|
5256
5261
|
modelValue: y(s).isExpandQuery,
|
|
@@ -5265,7 +5270,7 @@ const bi = {
|
|
|
5265
5270
|
}),
|
|
5266
5271
|
N(O, { span: 6 }, {
|
|
5267
5272
|
default: k(() => [
|
|
5268
|
-
N(
|
|
5273
|
+
N(I, { label: "立即执行接口" }, {
|
|
5269
5274
|
default: k(() => [
|
|
5270
5275
|
N(v, {
|
|
5271
5276
|
modelValue: y(s).isExecuteImmediatelyTableApi,
|
|
@@ -5287,7 +5292,7 @@ const bi = {
|
|
|
5287
5292
|
span: 8
|
|
5288
5293
|
}, {
|
|
5289
5294
|
default: k(() => [
|
|
5290
|
-
N(
|
|
5295
|
+
N(I, {
|
|
5291
5296
|
label: "操作列宽度",
|
|
5292
5297
|
"label-width": "150"
|
|
5293
5298
|
}, {
|
|
@@ -5308,7 +5313,7 @@ const bi = {
|
|
|
5308
5313
|
span: 8
|
|
5309
5314
|
}, {
|
|
5310
5315
|
default: k(() => [
|
|
5311
|
-
N(
|
|
5316
|
+
N(I, {
|
|
5312
5317
|
label: "分页页数",
|
|
5313
5318
|
prop: "pageSize",
|
|
5314
5319
|
"label-width": "150",
|
|
@@ -5328,7 +5333,7 @@ const bi = {
|
|
|
5328
5333
|
})) : Ve("", !0),
|
|
5329
5334
|
N(O, { span: 8 }, {
|
|
5330
5335
|
default: k(() => [
|
|
5331
|
-
N(
|
|
5336
|
+
N(I, {
|
|
5332
5337
|
label: "查询条件label宽度",
|
|
5333
5338
|
"label-width": "150"
|
|
5334
5339
|
}, {
|
|
@@ -5346,7 +5351,7 @@ const bi = {
|
|
|
5346
5351
|
}),
|
|
5347
5352
|
N(O, { span: 8 }, {
|
|
5348
5353
|
default: k(() => [
|
|
5349
|
-
N(
|
|
5354
|
+
N(I, {
|
|
5350
5355
|
label: "查询条件列数",
|
|
5351
5356
|
"label-width": "150"
|
|
5352
5357
|
}, {
|
|
@@ -5364,7 +5369,7 @@ const bi = {
|
|
|
5364
5369
|
}),
|
|
5365
5370
|
N(O, { span: 8 }, {
|
|
5366
5371
|
default: k(() => [
|
|
5367
|
-
N(
|
|
5372
|
+
N(I, {
|
|
5368
5373
|
label: "表格更多按钮分割数",
|
|
5369
5374
|
"label-width": "150"
|
|
5370
5375
|
}, {
|
|
@@ -5382,7 +5387,7 @@ const bi = {
|
|
|
5382
5387
|
}),
|
|
5383
5388
|
N(O, { span: 8 }, {
|
|
5384
5389
|
default: k(() => [
|
|
5385
|
-
N(
|
|
5390
|
+
N(I, {
|
|
5386
5391
|
label: "顶部更多按钮分割数",
|
|
5387
5392
|
"label-width": "150"
|
|
5388
5393
|
}, {
|
|
@@ -5417,7 +5422,7 @@ const hi = {
|
|
|
5417
5422
|
},
|
|
5418
5423
|
emits: ["update:modelValue"],
|
|
5419
5424
|
setup(e, { expose: t, emit: n }) {
|
|
5420
|
-
const a = An(), l = Re("apiPrefix"), o = Re("request"), r = it(() => import("./dialogConfigBtn-
|
|
5425
|
+
const a = An(), l = Re("apiPrefix"), o = Re("request"), r = it(() => import("./dialogConfigBtn-bc3654e4.js")), s = e, i = () => ({
|
|
5421
5426
|
sort: 0,
|
|
5422
5427
|
permissionCode: null,
|
|
5423
5428
|
requestUrl: "",
|
|
@@ -5444,7 +5449,7 @@ const hi = {
|
|
|
5444
5449
|
tableLoading: !1,
|
|
5445
5450
|
showConfigBtnDialog: !1,
|
|
5446
5451
|
dialogData: {}
|
|
5447
|
-
}))()), h = ae(null), p = 0,
|
|
5452
|
+
}))()), h = ae(null), p = 0, S = ae([]), I = ae([]), O = [
|
|
5448
5453
|
{ prop: "checkbox", width: 60 },
|
|
5449
5454
|
{ prop: "serialNumber", width: 80 },
|
|
5450
5455
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -5456,12 +5461,12 @@ const hi = {
|
|
|
5456
5461
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
5457
5462
|
], R = ae([]);
|
|
5458
5463
|
const m = (_) => o({ url: `${l}/sysMenus/getAllList`, method: "post", data: _ }), A = (_) => o({ url: `${l}/sysMenus/getMenuOfOperate`, method: "get", params: _ }), b = (_, P) => {
|
|
5459
|
-
|
|
5464
|
+
I.value.includes(_.permissionCode) || I.value.push(_.permissionCode), Object.assign(R.value[p], _), P(!0);
|
|
5460
5465
|
}, f = async (_) => {
|
|
5461
5466
|
try {
|
|
5462
5467
|
T.tableLoading = !0;
|
|
5463
5468
|
const P = s.id ? s.id : a.params.id, { data: F } = await A({ id: P });
|
|
5464
|
-
|
|
5469
|
+
I.value = (F || []).filter((G) => (_ || []).some((Y) => Y.permissionCode == G.unique)).map((G) => G.unique), R.value = (F || []).map((G, Y) => {
|
|
5465
5470
|
let te = i(), he = (_ || []).find((re) => re.permissionCode == G.unique) || {};
|
|
5466
5471
|
return { ...te, btnIcon: G.icon || "", ...he, btnName: G.name, permissionCode: G.unique, sort: he.sort ? he.sort : (Y + 1) * 10 };
|
|
5467
5472
|
}).sort((G, Y) => G.sort - Y.sort), T.tableLoading = !1;
|
|
@@ -5469,12 +5474,12 @@ const hi = {
|
|
|
5469
5474
|
T.tableLoading = !1, console.error(P);
|
|
5470
5475
|
}
|
|
5471
5476
|
}, v = () => h.value.getSelectionRows() || [];
|
|
5472
|
-
Ie("associationMenuList",
|
|
5477
|
+
Ie("associationMenuList", S), Ie("createDefaultButtonItem", i), ct(
|
|
5473
5478
|
() => s.modelValue,
|
|
5474
5479
|
async (_, P) => {
|
|
5475
5480
|
try {
|
|
5476
5481
|
const F = s.id ? s.id : a.params.id;
|
|
5477
|
-
|
|
5482
|
+
S.value = (await m({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: F }] })).data || [], await f(_);
|
|
5478
5483
|
} catch (F) {
|
|
5479
5484
|
T.tableLoading = !1, console.error(F);
|
|
5480
5485
|
}
|
|
@@ -5501,8 +5506,8 @@ const hi = {
|
|
|
5501
5506
|
ref: h,
|
|
5502
5507
|
loading: y(T).tableLoading,
|
|
5503
5508
|
rowKey: "permissionCode",
|
|
5504
|
-
selection: y(
|
|
5505
|
-
"onUpdate:selection": P[0] || (P[0] = (re) => It(
|
|
5509
|
+
selection: y(I),
|
|
5510
|
+
"onUpdate:selection": P[0] || (P[0] = (re) => It(I) ? I.value = re : I = re),
|
|
5506
5511
|
headers: y(O),
|
|
5507
5512
|
data: y(R),
|
|
5508
5513
|
showPagination: !1
|
|
@@ -5562,7 +5567,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5562
5567
|
},
|
|
5563
5568
|
emits: ["update:modelValue"],
|
|
5564
5569
|
setup(e, { emit: t }) {
|
|
5565
|
-
const n = it(() => import("./dialogAddField-
|
|
5570
|
+
const n = it(() => import("./dialogAddField-6b36374f.js")), a = t, l = e;
|
|
5566
5571
|
Re("configData")();
|
|
5567
5572
|
let r = xt((() => ({
|
|
5568
5573
|
tableLoading: !1,
|
|
@@ -5586,7 +5591,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5586
5591
|
return "";
|
|
5587
5592
|
const f = mi.find((v) => v.value == b.fieldType);
|
|
5588
5593
|
return (f == null ? void 0 : f.key) || "";
|
|
5589
|
-
}, h = (b) => Reflect.has(b, "useScenes") ? (b.formCustomComponentes ?? []).filter((f) => b.useScenes.includes(f.permissionCode)) : [], p = (b) => (b.formCustomComponentes || []).filter((f) => f.isFieldCustom).map((f) => `${f.btnName}:是`).join(),
|
|
5594
|
+
}, h = (b) => Reflect.has(b, "useScenes") ? (b.formCustomComponentes ?? []).filter((f) => b.useScenes.includes(f.permissionCode)) : [], p = (b) => (b.formCustomComponentes || []).filter((f) => f.isFieldCustom).map((f) => `${f.btnName}:是`).join(), S = (b, f) => {
|
|
5590
5595
|
if (s == null) {
|
|
5591
5596
|
const v = g.value.length;
|
|
5592
5597
|
g.value.push({ ...b, sort: (v + 1) * 10 });
|
|
@@ -5598,7 +5603,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5598
5603
|
formCustomComponentes: [...b.formCustomComponentes]
|
|
5599
5604
|
};
|
|
5600
5605
|
a("update:modelValue", g.value), f(!0);
|
|
5601
|
-
},
|
|
5606
|
+
}, I = async () => {
|
|
5602
5607
|
try {
|
|
5603
5608
|
r.tableLoading = !0, g.value = (l.modelValue || []).map((b) => ({ ...b, sort: b.sort ? b.sort : 0 })).sort((b, f) => b.sort - f.sort), r.tableLoading = !1;
|
|
5604
5609
|
} catch (b) {
|
|
@@ -5608,7 +5613,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5608
5613
|
ct(
|
|
5609
5614
|
() => l.modelValue,
|
|
5610
5615
|
async (b, f) => {
|
|
5611
|
-
await
|
|
5616
|
+
await I();
|
|
5612
5617
|
},
|
|
5613
5618
|
{ deep: !0, immediate: !0 }
|
|
5614
5619
|
);
|
|
@@ -5730,7 +5735,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5730
5735
|
title: y(r).dialogTitle,
|
|
5731
5736
|
configData: l.data,
|
|
5732
5737
|
data: y(r).dialogData,
|
|
5733
|
-
onRefresh:
|
|
5738
|
+
onRefresh: S
|
|
5734
5739
|
}, null, 8, ["visible", "title", "configData", "data"])
|
|
5735
5740
|
]),
|
|
5736
5741
|
_: 1
|
|
@@ -5757,10 +5762,10 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5757
5762
|
loading: !1,
|
|
5758
5763
|
btnLoading: !1
|
|
5759
5764
|
}))()), T = ae([]), h = ae(null), p = ae(s());
|
|
5760
|
-
const
|
|
5765
|
+
const S = (b) => l({ url: `${a}/scripts/getAllDatabaseTable`, method: "get", data: b }), I = async () => {
|
|
5761
5766
|
try {
|
|
5762
5767
|
g.loading = !0;
|
|
5763
|
-
const { data: b } = await
|
|
5768
|
+
const { data: b } = await S();
|
|
5764
5769
|
T.value = b || [], g.loading = !1;
|
|
5765
5770
|
} catch (b) {
|
|
5766
5771
|
console.error(b), g.loading = !1;
|
|
@@ -5769,7 +5774,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5769
5774
|
ct(
|
|
5770
5775
|
() => r.visible,
|
|
5771
5776
|
async (b, f) => {
|
|
5772
|
-
b && await
|
|
5777
|
+
b && await I();
|
|
5773
5778
|
}
|
|
5774
5779
|
);
|
|
5775
5780
|
const O = () => ({
|
|
@@ -5925,7 +5930,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5925
5930
|
},
|
|
5926
5931
|
setup(e) {
|
|
5927
5932
|
const t = An(), n = Ja(), a = Re("apiPrefix"), l = Re("request"), o = e;
|
|
5928
|
-
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = ae([]), g = ae(), T = ae([]), h = ae({}), p = ae(null),
|
|
5933
|
+
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = ae([]), g = ae(), T = ae([]), h = ae({}), p = ae(null), S = ae(null), I = ae(null), O = ae({}), R = ae({}), m = ae([]), A = ae([]), b = xt({
|
|
5929
5934
|
pageLoading: !1,
|
|
5930
5935
|
saveBtnLoading: !1,
|
|
5931
5936
|
showDialogInitConfig: !1
|
|
@@ -5965,8 +5970,8 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5965
5970
|
key: s,
|
|
5966
5971
|
pageConfig: {
|
|
5967
5972
|
tableConfig: p.value.form,
|
|
5968
|
-
formConfig:
|
|
5969
|
-
buttons:
|
|
5973
|
+
formConfig: S.value.form,
|
|
5974
|
+
buttons: I.value.getTableSelectionRows(),
|
|
5970
5975
|
fields: A.value
|
|
5971
5976
|
}
|
|
5972
5977
|
};
|
|
@@ -5976,7 +5981,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5976
5981
|
b.saveBtnLoading = !1;
|
|
5977
5982
|
});
|
|
5978
5983
|
}, Be = async () => {
|
|
5979
|
-
Promise.all([p.value.formRef.validate(),
|
|
5984
|
+
Promise.all([p.value.formRef.validate(), S.value.formRef.validate()]).then((le) => {
|
|
5980
5985
|
le.every((z) => z) && re();
|
|
5981
5986
|
}).catch((le) => le);
|
|
5982
5987
|
};
|
|
@@ -6074,7 +6079,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6074
6079
|
default: k(() => [
|
|
6075
6080
|
N(Ai, {
|
|
6076
6081
|
ref_key: "configFormRef",
|
|
6077
|
-
ref:
|
|
6082
|
+
ref: S,
|
|
6078
6083
|
modelValue: y(R),
|
|
6079
6084
|
"onUpdate:modelValue": z[4] || (z[4] = (fe) => It(R) ? R.value = fe : R = fe)
|
|
6080
6085
|
}, null, 8, ["modelValue"])
|
|
@@ -6088,7 +6093,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6088
6093
|
default: k(() => [
|
|
6089
6094
|
N(yi, {
|
|
6090
6095
|
ref_key: "configBtnsRef",
|
|
6091
|
-
ref:
|
|
6096
|
+
ref: I,
|
|
6092
6097
|
modelValue: y(m),
|
|
6093
6098
|
"onUpdate:modelValue": z[5] || (z[5] = (fe) => It(m) ? m.value = fe : m = fe)
|
|
6094
6099
|
}, null, 8, ["modelValue"])
|
|
@@ -6231,8 +6236,8 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6231
6236
|
fallbackLocale: g,
|
|
6232
6237
|
messages: { ..._n, [g]: T }
|
|
6233
6238
|
});
|
|
6234
|
-
e.use(h), e.provide("actModules", n), e.provide("themeColor", o), e.provide("apiPrefix", a || "/api/v1"), e.provide("request", l), e.provide("cacheTokenType", r), e.provide("cookieStorage", s), e.directive("debounce", Di), Object.keys(Ga).forEach((
|
|
6235
|
-
e.component(
|
|
6239
|
+
e.use(h), e.provide("actModules", n), e.provide("themeColor", o), e.provide("apiPrefix", a || "/api/v1"), e.provide("request", l), e.provide("cacheTokenType", r), e.provide("cookieStorage", s), e.directive("debounce", Di), Object.keys(Ga).forEach((S) => {
|
|
6240
|
+
e.component(S, Ga[S]);
|
|
6236
6241
|
});
|
|
6237
6242
|
}
|
|
6238
6243
|
}, ru = {
|