sag-ubmp-pc 1.0.40 → 1.0.42
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/dist/sag-ubmp-pc.es.js +907 -891
- package/dist/sag-ubmp-pc.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Me, { trim as Te, debounce as It } from "xe-utils";
|
|
2
|
-
import { inject as he, ref as
|
|
2
|
+
import { inject as he, ref as M, h as Ve, getCurrentInstance as Rl, nextTick as dt, reactive as ee, defineComponent as Q, createVNode as q, openBlock as x, createElementBlock as W, Fragment as de, createBlock as z, unref as O, createCommentVNode as j, onMounted as ie, resolveComponent as Y, isRef as gt, createSlots as xe, withCtx as I, defineAsyncComponent as El, useCssVars as Ul, useAttrs as Xa, computed as Ct, onUnmounted as Fl, withDirectives as Vt, createElementVNode as K, toDisplayString as ae, createTextVNode as ce, vShow as $t, resolveDynamicComponent as Hl, mergeProps as te, provide as qn, useSlots as Ie, watch as ve, renderList as Ce, renderSlot as oe, toHandlers as Yl, normalizeProps as Wl, guardReactiveProps as Gl, normalizeStyle as ge } from "vue";
|
|
3
3
|
import { Modal as Jl, notification as zt, message as Zl, Spin as Ql } from "ant-design-vue";
|
|
4
|
-
import
|
|
4
|
+
import T from "dayjs";
|
|
5
5
|
const ht = "SAG_UBMP_PC$", ft = {
|
|
6
6
|
set: () => {
|
|
7
7
|
},
|
|
@@ -352,41 +352,43 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
352
352
|
requestType: l,
|
|
353
353
|
requestUrl: r,
|
|
354
354
|
requestTitle: o,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
355
|
+
instanceField: i = "",
|
|
356
|
+
minWidth: u = 120,
|
|
357
|
+
maximize: c = !0,
|
|
358
|
+
componentVue: p = !0,
|
|
359
|
+
componentParams: d = {},
|
|
360
|
+
treeNode: y = !1,
|
|
361
|
+
autoLoad: _ = !1,
|
|
362
|
+
resizable: C = !1,
|
|
363
|
+
showOverflow: m,
|
|
364
|
+
align: f = "center",
|
|
365
|
+
type: v,
|
|
366
|
+
fixed: g,
|
|
367
|
+
width: S
|
|
367
368
|
} = t;
|
|
368
369
|
return {
|
|
369
370
|
field: e,
|
|
370
371
|
title: n,
|
|
371
372
|
sortable: !1,
|
|
372
|
-
width: s(
|
|
373
|
-
minWidth:
|
|
374
|
-
resizable:
|
|
375
|
-
showOverflow: s(
|
|
376
|
-
align:
|
|
373
|
+
width: s(S) ? S : s(v) ? s(u) ? u : 120 : "auto",
|
|
374
|
+
minWidth: u,
|
|
375
|
+
resizable: C,
|
|
376
|
+
showOverflow: s(m) ? m : "title",
|
|
377
|
+
align: f,
|
|
377
378
|
headerAlign: "center",
|
|
378
|
-
type: s(
|
|
379
|
-
fixed: s(
|
|
379
|
+
type: s(v) ? v : null,
|
|
380
|
+
fixed: s(g) ? g : "",
|
|
380
381
|
formatter: s(a) ? a : "",
|
|
381
|
-
treeNode:
|
|
382
|
+
treeNode: y,
|
|
382
383
|
params: {
|
|
383
384
|
requestType: s(l) ? l : "",
|
|
384
385
|
requestUrl: r,
|
|
385
386
|
title: o,
|
|
386
|
-
maximize:
|
|
387
|
-
autoLoad:
|
|
388
|
-
componentVue:
|
|
389
|
-
componentParams:
|
|
387
|
+
maximize: c,
|
|
388
|
+
autoLoad: _,
|
|
389
|
+
componentVue: p,
|
|
390
|
+
componentParams: d,
|
|
391
|
+
instanceField: i
|
|
390
392
|
},
|
|
391
393
|
slots: { default: "operate" }
|
|
392
394
|
};
|
|
@@ -462,7 +464,8 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
462
464
|
width: d,
|
|
463
465
|
height: y,
|
|
464
466
|
auth: _,
|
|
465
|
-
autoLoad: C = !0
|
|
467
|
+
autoLoad: C = !0,
|
|
468
|
+
instanceField: m = ""
|
|
466
469
|
} = n;
|
|
467
470
|
return {
|
|
468
471
|
icon: s(t) ? t : "save",
|
|
@@ -479,7 +482,8 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
479
482
|
autoLoad: C,
|
|
480
483
|
width: s(d) ? d : null,
|
|
481
484
|
height: s(y) ? y : null,
|
|
482
|
-
auth: s(_) ? _ : !0
|
|
485
|
+
auth: s(_) ? _ : !0,
|
|
486
|
+
instanceField: m
|
|
483
487
|
};
|
|
484
488
|
}, Ar = (e = "", n = {}) => {
|
|
485
489
|
const { icon: t, status: a, requestTitle: l, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent: u, auth: c } = n;
|
|
@@ -1039,9 +1043,9 @@ Object.keys(Tt).forEach(function(e) {
|
|
|
1039
1043
|
});
|
|
1040
1044
|
var Gr = rt.blue, Jr = /* @__PURE__ */ Symbol("iconContext"), dl = function() {
|
|
1041
1045
|
return he(Jr, {
|
|
1042
|
-
prefixCls:
|
|
1043
|
-
rootClassName:
|
|
1044
|
-
csp:
|
|
1046
|
+
prefixCls: M("anticon"),
|
|
1047
|
+
rootClassName: M(""),
|
|
1048
|
+
csp: M()
|
|
1045
1049
|
});
|
|
1046
1050
|
};
|
|
1047
1051
|
function Ut() {
|
|
@@ -1439,23 +1443,23 @@ bl(Gr.primary);
|
|
|
1439
1443
|
var J = function(n, t) {
|
|
1440
1444
|
var a, l = Qn({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, u = l.rotate, c = l.tabindex, p = l.twoToneColor, d = l.onClick, y = To(l, _o), _ = dl(), C = _.prefixCls, m = _.rootClassName, f = (a = {}, He(a, m.value, !!m.value), He(a, C.value, !0), He(a, "".concat(C.value, "-").concat(o.name), !!o.name), He(a, "".concat(C.value, "-spin"), !!i || o.name === "loading"), a), v = c;
|
|
1441
1445
|
v === void 0 && d && (v = -1);
|
|
1442
|
-
var
|
|
1446
|
+
var g = u ? {
|
|
1443
1447
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1444
1448
|
transform: "rotate(".concat(u, "deg)")
|
|
1445
|
-
} : void 0,
|
|
1446
|
-
return
|
|
1449
|
+
} : void 0, S = hl(p), h = Co(S, 2), b = h[0], N = h[1];
|
|
1450
|
+
return q("span", Qn({
|
|
1447
1451
|
role: "img",
|
|
1448
1452
|
"aria-label": o.name
|
|
1449
1453
|
}, y, {
|
|
1450
1454
|
onClick: d,
|
|
1451
1455
|
class: [f, r],
|
|
1452
1456
|
tabindex: v
|
|
1453
|
-
}), [
|
|
1457
|
+
}), [q(je, {
|
|
1454
1458
|
icon: o,
|
|
1455
1459
|
primaryColor: b,
|
|
1456
|
-
secondaryColor:
|
|
1457
|
-
style:
|
|
1458
|
-
}, null),
|
|
1460
|
+
secondaryColor: N,
|
|
1461
|
+
style: g
|
|
1462
|
+
}, null), q(wo, null, null)]);
|
|
1459
1463
|
};
|
|
1460
1464
|
J.props = {
|
|
1461
1465
|
spin: Boolean,
|
|
@@ -1484,7 +1488,7 @@ function $o(e, n, t) {
|
|
|
1484
1488
|
}
|
|
1485
1489
|
var Ht = function(n, t) {
|
|
1486
1490
|
var a = Xn({}, n, t.attrs);
|
|
1487
|
-
return
|
|
1491
|
+
return q(J, Xn({}, a, {
|
|
1488
1492
|
icon: Vo
|
|
1489
1493
|
}), null);
|
|
1490
1494
|
};
|
|
@@ -1507,7 +1511,7 @@ function jo(e, n, t) {
|
|
|
1507
1511
|
}
|
|
1508
1512
|
var Yt = function(n, t) {
|
|
1509
1513
|
var a = Kn({}, n, t.attrs);
|
|
1510
|
-
return
|
|
1514
|
+
return q(J, Kn({}, a, {
|
|
1511
1515
|
icon: zo
|
|
1512
1516
|
}), null);
|
|
1513
1517
|
};
|
|
@@ -1530,7 +1534,7 @@ function Do(e, n, t) {
|
|
|
1530
1534
|
}
|
|
1531
1535
|
var Wt = function(n, t) {
|
|
1532
1536
|
var a = ea({}, n, t.attrs);
|
|
1533
|
-
return
|
|
1537
|
+
return q(J, ea({}, a, {
|
|
1534
1538
|
icon: qo
|
|
1535
1539
|
}), null);
|
|
1536
1540
|
};
|
|
@@ -1553,7 +1557,7 @@ function Bo(e, n, t) {
|
|
|
1553
1557
|
}
|
|
1554
1558
|
var Gt = function(n, t) {
|
|
1555
1559
|
var a = ta({}, n, t.attrs);
|
|
1556
|
-
return
|
|
1560
|
+
return q(J, ta({}, a, {
|
|
1557
1561
|
icon: No
|
|
1558
1562
|
}), null);
|
|
1559
1563
|
};
|
|
@@ -1576,7 +1580,7 @@ function Lo(e, n, t) {
|
|
|
1576
1580
|
}
|
|
1577
1581
|
var Jt = function(n, t) {
|
|
1578
1582
|
var a = na({}, n, t.attrs);
|
|
1579
|
-
return
|
|
1583
|
+
return q(J, na({}, a, {
|
|
1580
1584
|
icon: Io
|
|
1581
1585
|
}), null);
|
|
1582
1586
|
};
|
|
@@ -1599,7 +1603,7 @@ function Eo(e, n, t) {
|
|
|
1599
1603
|
}
|
|
1600
1604
|
var Zt = function(n, t) {
|
|
1601
1605
|
var a = aa({}, n, t.attrs);
|
|
1602
|
-
return
|
|
1606
|
+
return q(J, aa({}, a, {
|
|
1603
1607
|
icon: Ro
|
|
1604
1608
|
}), null);
|
|
1605
1609
|
};
|
|
@@ -1622,7 +1626,7 @@ function Fo(e, n, t) {
|
|
|
1622
1626
|
}
|
|
1623
1627
|
var yt = function(n, t) {
|
|
1624
1628
|
var a = la({}, n, t.attrs);
|
|
1625
|
-
return
|
|
1629
|
+
return q(J, la({}, a, {
|
|
1626
1630
|
icon: Uo
|
|
1627
1631
|
}), null);
|
|
1628
1632
|
};
|
|
@@ -1645,7 +1649,7 @@ function Yo(e, n, t) {
|
|
|
1645
1649
|
}
|
|
1646
1650
|
var Qt = function(n, t) {
|
|
1647
1651
|
var a = ra({}, n, t.attrs);
|
|
1648
|
-
return
|
|
1652
|
+
return q(J, ra({}, a, {
|
|
1649
1653
|
icon: Ho
|
|
1650
1654
|
}), null);
|
|
1651
1655
|
};
|
|
@@ -1668,7 +1672,7 @@ function Go(e, n, t) {
|
|
|
1668
1672
|
}
|
|
1669
1673
|
var Xt = function(n, t) {
|
|
1670
1674
|
var a = oa({}, n, t.attrs);
|
|
1671
|
-
return
|
|
1675
|
+
return q(J, oa({}, a, {
|
|
1672
1676
|
icon: Wo
|
|
1673
1677
|
}), null);
|
|
1674
1678
|
};
|
|
@@ -1691,7 +1695,7 @@ function Zo(e, n, t) {
|
|
|
1691
1695
|
}
|
|
1692
1696
|
var Kt = function(n, t) {
|
|
1693
1697
|
var a = ia({}, n, t.attrs);
|
|
1694
|
-
return
|
|
1698
|
+
return q(J, ia({}, a, {
|
|
1695
1699
|
icon: Jo
|
|
1696
1700
|
}), null);
|
|
1697
1701
|
};
|
|
@@ -1714,7 +1718,7 @@ function Xo(e, n, t) {
|
|
|
1714
1718
|
}
|
|
1715
1719
|
var en = function(n, t) {
|
|
1716
1720
|
var a = sa({}, n, t.attrs);
|
|
1717
|
-
return
|
|
1721
|
+
return q(J, sa({}, a, {
|
|
1718
1722
|
icon: Qo
|
|
1719
1723
|
}), null);
|
|
1720
1724
|
};
|
|
@@ -1737,7 +1741,7 @@ function ei(e, n, t) {
|
|
|
1737
1741
|
}
|
|
1738
1742
|
var tn = function(n, t) {
|
|
1739
1743
|
var a = ua({}, n, t.attrs);
|
|
1740
|
-
return
|
|
1744
|
+
return q(J, ua({}, a, {
|
|
1741
1745
|
icon: Ko
|
|
1742
1746
|
}), null);
|
|
1743
1747
|
};
|
|
@@ -1760,7 +1764,7 @@ function ni(e, n, t) {
|
|
|
1760
1764
|
}
|
|
1761
1765
|
var nn = function(n, t) {
|
|
1762
1766
|
var a = ca({}, n, t.attrs);
|
|
1763
|
-
return
|
|
1767
|
+
return q(J, ca({}, a, {
|
|
1764
1768
|
icon: ti
|
|
1765
1769
|
}), null);
|
|
1766
1770
|
};
|
|
@@ -1783,7 +1787,7 @@ function li(e, n, t) {
|
|
|
1783
1787
|
}
|
|
1784
1788
|
var an = function(n, t) {
|
|
1785
1789
|
var a = da({}, n, t.attrs);
|
|
1786
|
-
return
|
|
1790
|
+
return q(J, da({}, a, {
|
|
1787
1791
|
icon: ai
|
|
1788
1792
|
}), null);
|
|
1789
1793
|
};
|
|
@@ -1806,7 +1810,7 @@ function oi(e, n, t) {
|
|
|
1806
1810
|
}
|
|
1807
1811
|
var ln = function(n, t) {
|
|
1808
1812
|
var a = fa({}, n, t.attrs);
|
|
1809
|
-
return
|
|
1813
|
+
return q(J, fa({}, a, {
|
|
1810
1814
|
icon: ri
|
|
1811
1815
|
}), null);
|
|
1812
1816
|
};
|
|
@@ -1829,7 +1833,7 @@ function si(e, n, t) {
|
|
|
1829
1833
|
}
|
|
1830
1834
|
var rn = function(n, t) {
|
|
1831
1835
|
var a = pa({}, n, t.attrs);
|
|
1832
|
-
return
|
|
1836
|
+
return q(J, pa({}, a, {
|
|
1833
1837
|
icon: ii
|
|
1834
1838
|
}), null);
|
|
1835
1839
|
};
|
|
@@ -1852,7 +1856,7 @@ function ci(e, n, t) {
|
|
|
1852
1856
|
}
|
|
1853
1857
|
var on = function(n, t) {
|
|
1854
1858
|
var a = ma({}, n, t.attrs);
|
|
1855
|
-
return
|
|
1859
|
+
return q(J, ma({}, a, {
|
|
1856
1860
|
icon: ui
|
|
1857
1861
|
}), null);
|
|
1858
1862
|
};
|
|
@@ -1875,7 +1879,7 @@ function fi(e, n, t) {
|
|
|
1875
1879
|
}
|
|
1876
1880
|
var sn = function(n, t) {
|
|
1877
1881
|
var a = ga({}, n, t.attrs);
|
|
1878
|
-
return
|
|
1882
|
+
return q(J, ga({}, a, {
|
|
1879
1883
|
icon: di
|
|
1880
1884
|
}), null);
|
|
1881
1885
|
};
|
|
@@ -1898,7 +1902,7 @@ function mi(e, n, t) {
|
|
|
1898
1902
|
}
|
|
1899
1903
|
var un = function(n, t) {
|
|
1900
1904
|
var a = ha({}, n, t.attrs);
|
|
1901
|
-
return
|
|
1905
|
+
return q(J, ha({}, a, {
|
|
1902
1906
|
icon: pi
|
|
1903
1907
|
}), null);
|
|
1904
1908
|
};
|
|
@@ -1921,7 +1925,7 @@ function hi(e, n, t) {
|
|
|
1921
1925
|
}
|
|
1922
1926
|
var cn = function(n, t) {
|
|
1923
1927
|
var a = va({}, n, t.attrs);
|
|
1924
|
-
return
|
|
1928
|
+
return q(J, va({}, a, {
|
|
1925
1929
|
icon: gi
|
|
1926
1930
|
}), null);
|
|
1927
1931
|
};
|
|
@@ -1944,7 +1948,7 @@ function bi(e, n, t) {
|
|
|
1944
1948
|
}
|
|
1945
1949
|
var dn = function(n, t) {
|
|
1946
1950
|
var a = ba({}, n, t.attrs);
|
|
1947
|
-
return
|
|
1951
|
+
return q(J, ba({}, a, {
|
|
1948
1952
|
icon: vi
|
|
1949
1953
|
}), null);
|
|
1950
1954
|
};
|
|
@@ -1967,7 +1971,7 @@ function Si(e, n, t) {
|
|
|
1967
1971
|
}
|
|
1968
1972
|
var fn = function(n, t) {
|
|
1969
1973
|
var a = ya({}, n, t.attrs);
|
|
1970
|
-
return
|
|
1974
|
+
return q(J, ya({}, a, {
|
|
1971
1975
|
icon: yi
|
|
1972
1976
|
}), null);
|
|
1973
1977
|
};
|
|
@@ -1990,7 +1994,7 @@ function wi(e, n, t) {
|
|
|
1990
1994
|
}
|
|
1991
1995
|
var pn = function(n, t) {
|
|
1992
1996
|
var a = Sa({}, n, t.attrs);
|
|
1993
|
-
return
|
|
1997
|
+
return q(J, Sa({}, a, {
|
|
1994
1998
|
icon: Oi
|
|
1995
1999
|
}), null);
|
|
1996
2000
|
};
|
|
@@ -2013,7 +2017,7 @@ function Ci(e, n, t) {
|
|
|
2013
2017
|
}
|
|
2014
2018
|
var mn = function(n, t) {
|
|
2015
2019
|
var a = Oa({}, n, t.attrs);
|
|
2016
|
-
return
|
|
2020
|
+
return q(J, Oa({}, a, {
|
|
2017
2021
|
icon: _i
|
|
2018
2022
|
}), null);
|
|
2019
2023
|
};
|
|
@@ -2036,7 +2040,7 @@ function Pi(e, n, t) {
|
|
|
2036
2040
|
}
|
|
2037
2041
|
var gn = function(n, t) {
|
|
2038
2042
|
var a = wa({}, n, t.attrs);
|
|
2039
|
-
return
|
|
2043
|
+
return q(J, wa({}, a, {
|
|
2040
2044
|
icon: xi
|
|
2041
2045
|
}), null);
|
|
2042
2046
|
};
|
|
@@ -2059,7 +2063,7 @@ function Ai(e, n, t) {
|
|
|
2059
2063
|
}
|
|
2060
2064
|
var hn = function(n, t) {
|
|
2061
2065
|
var a = _a({}, n, t.attrs);
|
|
2062
|
-
return
|
|
2066
|
+
return q(J, _a({}, a, {
|
|
2063
2067
|
icon: ki
|
|
2064
2068
|
}), null);
|
|
2065
2069
|
};
|
|
@@ -2082,7 +2086,7 @@ function Mi(e, n, t) {
|
|
|
2082
2086
|
}
|
|
2083
2087
|
var vn = function(n, t) {
|
|
2084
2088
|
var a = Ca({}, n, t.attrs);
|
|
2085
|
-
return
|
|
2089
|
+
return q(J, Ca({}, a, {
|
|
2086
2090
|
icon: Ti
|
|
2087
2091
|
}), null);
|
|
2088
2092
|
};
|
|
@@ -2105,7 +2109,7 @@ function $i(e, n, t) {
|
|
|
2105
2109
|
}
|
|
2106
2110
|
var bn = function(n, t) {
|
|
2107
2111
|
var a = xa({}, n, t.attrs);
|
|
2108
|
-
return
|
|
2112
|
+
return q(J, xa({}, a, {
|
|
2109
2113
|
icon: Vi
|
|
2110
2114
|
}), null);
|
|
2111
2115
|
};
|
|
@@ -2128,7 +2132,7 @@ function ji(e, n, t) {
|
|
|
2128
2132
|
}
|
|
2129
2133
|
var yn = function(n, t) {
|
|
2130
2134
|
var a = Pa({}, n, t.attrs);
|
|
2131
|
-
return
|
|
2135
|
+
return q(J, Pa({}, a, {
|
|
2132
2136
|
icon: zi
|
|
2133
2137
|
}), null);
|
|
2134
2138
|
};
|
|
@@ -2151,7 +2155,7 @@ function Di(e, n, t) {
|
|
|
2151
2155
|
}
|
|
2152
2156
|
var Sn = function(n, t) {
|
|
2153
2157
|
var a = ka({}, n, t.attrs);
|
|
2154
|
-
return
|
|
2158
|
+
return q(J, ka({}, a, {
|
|
2155
2159
|
icon: qi
|
|
2156
2160
|
}), null);
|
|
2157
2161
|
};
|
|
@@ -2178,7 +2182,7 @@ const Ni = (e) => {
|
|
|
2178
2182
|
]) : e;
|
|
2179
2183
|
Jl.confirm({
|
|
2180
2184
|
title: "操作确认",
|
|
2181
|
-
icon:
|
|
2185
|
+
icon: q(Kt),
|
|
2182
2186
|
content: a,
|
|
2183
2187
|
okText: "确认",
|
|
2184
2188
|
cancelText: "取消",
|
|
@@ -2189,7 +2193,7 @@ const Ni = (e) => {
|
|
|
2189
2193
|
onCancel() {
|
|
2190
2194
|
}
|
|
2191
2195
|
});
|
|
2192
|
-
},
|
|
2196
|
+
}, R = (e, n) => e != null && e !== "" ? e : n, Bi = (e, n, t) => {
|
|
2193
2197
|
e ? zt.success({
|
|
2194
2198
|
message: "操作成功",
|
|
2195
2199
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -2276,119 +2280,125 @@ function Li(e) {
|
|
|
2276
2280
|
const v = f.params.requestType;
|
|
2277
2281
|
!s(v) || typeof v == "string" ? v === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, column: f, row: m }) : d(m, f) : v({ gridRef: n, gridOptions: l, formData: o, column: f, row: m });
|
|
2278
2282
|
}, d = (m, f) => {
|
|
2279
|
-
if (
|
|
2280
|
-
const v = {}
|
|
2281
|
-
v.instanceId = Ne +
|
|
2282
|
-
const w = a.value.findIndex((g) => g.instanceId === v.instanceId && g.visible);
|
|
2283
|
-
if (s(w) && w >= 0) {
|
|
2284
|
-
Oe("已经打开该数据弹窗信息");
|
|
2285
|
-
return;
|
|
2286
|
-
}
|
|
2287
|
-
if (v.title = L(f.params.title, i.title), v.width = L(f.params.width, i.width), v.height = L(f.params.height, i.height), v.maximize = L(f.params.maximize, !1), v.autoLoad = L(f.params.autoLoad, !1), v.componentVue = L(f.params.componentVue, i.componentVue), v.componentUrl = f.params.requestUrl, v.componentVue)
|
|
2283
|
+
if (s(f.params.instanceField)) {
|
|
2284
|
+
const v = {};
|
|
2285
|
+
if (v.instanceValue = m[f.params.instanceField], v.instanceId = Ne + v.instanceValue, v.title = R(f.params.title, i.title), v.width = R(f.params.width, i.width), v.height = R(f.params.height, i.height), v.maximize = R(f.params.maximize, !1), v.autoLoad = R(f.params.autoLoad, !1), v.componentVue = R(f.params.componentVue, i.componentVue), v.componentUrl = f.params.requestUrl, v.componentVue)
|
|
2288
2286
|
m[A.buttonKeyName] = f.params;
|
|
2289
2287
|
else {
|
|
2290
|
-
let
|
|
2291
|
-
for (const
|
|
2292
|
-
|
|
2293
|
-
v.componentUrl =
|
|
2288
|
+
let S = ne(r.ctxPath, v.componentUrl);
|
|
2289
|
+
for (const h in m)
|
|
2290
|
+
S = S.replace("{" + h + "}", m[h]);
|
|
2291
|
+
v.componentUrl = S;
|
|
2294
2292
|
}
|
|
2295
|
-
v.componentParams = m, v.visible = !0
|
|
2293
|
+
v.componentParams = m, v.visible = !0;
|
|
2294
|
+
const g = a.value.findIndex((S) => S.instanceId === v.instanceId);
|
|
2295
|
+
if (s(g) && g >= 0)
|
|
2296
|
+
if (a.value[g].visible) {
|
|
2297
|
+
Oe("已经打开该数据弹窗信息");
|
|
2298
|
+
return;
|
|
2299
|
+
} else
|
|
2300
|
+
a.value[g] = v;
|
|
2301
|
+
else
|
|
2302
|
+
a.value.push(v);
|
|
2296
2303
|
} else {
|
|
2297
|
-
if (t.title =
|
|
2304
|
+
if (t.title = R(f.params.title, i.title), t.width = R(f.params.width, i.width), t.height = R(f.params.height, i.height), t.maximize = R(f.params.maximize, !1), t.autoLoad = R(f.params.autoLoad, !1), t.componentVue = R(f.params.componentVue, i.componentVue), t.componentUrl = f.params.requestUrl, t.componentVue)
|
|
2298
2305
|
m[A.buttonKeyName] = f.params;
|
|
2299
2306
|
else {
|
|
2300
2307
|
let v = ne(r.ctxPath, t.componentUrl);
|
|
2301
|
-
for (const
|
|
2302
|
-
v = v.replace("{" +
|
|
2308
|
+
for (const g in m)
|
|
2309
|
+
v = v.replace("{" + g + "}", m[g]);
|
|
2303
2310
|
t.componentUrl = v;
|
|
2304
2311
|
}
|
|
2305
2312
|
t.componentParams = m, t.visible = !0;
|
|
2306
2313
|
}
|
|
2307
2314
|
}, y = async (m, f) => {
|
|
2308
2315
|
if (n.value) {
|
|
2309
|
-
const
|
|
2310
|
-
if (f.requestRow && !s(
|
|
2316
|
+
const g = await C(f);
|
|
2317
|
+
if (f.requestRow && !s(g))
|
|
2311
2318
|
return;
|
|
2312
2319
|
if (f.requestType === Fe || f.requestType === lt) {
|
|
2313
|
-
let
|
|
2314
|
-
const
|
|
2315
|
-
if ((!
|
|
2316
|
-
const b = Ii(
|
|
2317
|
-
for (const
|
|
2318
|
-
const U = b[
|
|
2320
|
+
let S = f.requestUrl;
|
|
2321
|
+
const h = R(f.componentVue, i.componentVue);
|
|
2322
|
+
if ((!h || f.requestType === lt) && (S = ne(r.ctxPath, S), f.requestRow && S.split("?").length > 1)) {
|
|
2323
|
+
const b = Ii(S.split("?")[1]);
|
|
2324
|
+
for (const N in b) {
|
|
2325
|
+
const U = b[N];
|
|
2319
2326
|
if (l.checkboxConfig) {
|
|
2320
|
-
let
|
|
2321
|
-
for (const E in
|
|
2322
|
-
for (const F in
|
|
2323
|
-
F === U &&
|
|
2324
|
-
let
|
|
2325
|
-
for (const E in
|
|
2326
|
-
|
|
2327
|
-
|
|
2327
|
+
let L = [];
|
|
2328
|
+
for (const E in g)
|
|
2329
|
+
for (const F in g[E])
|
|
2330
|
+
F === U && g[E][F] && (L[g[E][F]] = g[E][F]);
|
|
2331
|
+
let D = "";
|
|
2332
|
+
for (const E in L)
|
|
2333
|
+
D = (D ? D + "," : "") + E;
|
|
2334
|
+
S = S.replace("{" + U + "}", D);
|
|
2328
2335
|
} else
|
|
2329
|
-
|
|
2336
|
+
S = S.replace("{" + U + "}", g[U]);
|
|
2330
2337
|
}
|
|
2331
2338
|
}
|
|
2332
2339
|
if (f.requestType === Fe)
|
|
2333
|
-
if (
|
|
2340
|
+
if (s(f.instanceField)) {
|
|
2334
2341
|
const b = {};
|
|
2335
|
-
b.title =
|
|
2336
|
-
const
|
|
2342
|
+
b.title = R(f.title, i.title), b.width = R(f.width, i.width), b.height = R(f.height, i.height), b.maximize = R(f.maximize, !1), b.autoLoad = R(f.autoLoad, !0), b.componentVue = h, b.componentUrl = S, b.componentParams = {};
|
|
2343
|
+
const N = Math.round(Math.random() * 1e8);
|
|
2337
2344
|
if (f.requestRow)
|
|
2338
2345
|
if (l.checkboxConfig)
|
|
2339
2346
|
if (f.requestRadio)
|
|
2340
|
-
|
|
2347
|
+
g[0][A.buttonKeyName] = f, b.componentParams = g[0], b.instanceValue = g[0][f.instanceField], b.instanceId = Ne + b.instanceValue;
|
|
2341
2348
|
else {
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2349
|
+
const L = {};
|
|
2350
|
+
L[A.buttonKeyName] = f, L._X_ROWS = g, b.componentParams = L, b.instanceId = Ne + N;
|
|
2344
2351
|
}
|
|
2345
2352
|
else
|
|
2346
|
-
|
|
2353
|
+
g[A.buttonKeyName] = f, b.componentParams = g, b.instanceValue = g[f.instanceField], b.instanceId = Ne + b.instanceValue;
|
|
2347
2354
|
else
|
|
2348
|
-
b.instanceId = Ne +
|
|
2355
|
+
b.instanceId = Ne + N, b.componentParams[A.buttonKeyName] = f;
|
|
2349
2356
|
b.visible = !0;
|
|
2350
|
-
const U = a.value.findIndex((
|
|
2351
|
-
if (s(U) && U >= 0)
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2357
|
+
const U = a.value.findIndex((L) => L.instanceId === b.instanceId);
|
|
2358
|
+
if (s(U) && U >= 0)
|
|
2359
|
+
if (a.value[U].visible) {
|
|
2360
|
+
Oe("已经打开该数据弹窗信息");
|
|
2361
|
+
return;
|
|
2362
|
+
} else
|
|
2363
|
+
a.value[U] = b;
|
|
2364
|
+
else
|
|
2365
|
+
a.value.push(b);
|
|
2356
2366
|
} else {
|
|
2357
|
-
if (t.title =
|
|
2367
|
+
if (t.title = R(f.title, i.title), t.width = R(f.width, i.width), t.height = R(f.height, i.height), t.maximize = R(f.maximize, !1), t.autoLoad = R(f.autoLoad, !0), t.componentVue = h, t.componentUrl = S, t.componentParams = {}, f.requestRow)
|
|
2358
2368
|
if (l.checkboxConfig)
|
|
2359
2369
|
if (f.requestRadio)
|
|
2360
|
-
|
|
2370
|
+
g[0][A.buttonKeyName] = f, t.componentParams = g[0];
|
|
2361
2371
|
else {
|
|
2362
2372
|
const b = {};
|
|
2363
|
-
b[A.buttonKeyName] = f, b._X_ROWS =
|
|
2373
|
+
b[A.buttonKeyName] = f, b._X_ROWS = g, t.componentParams = b;
|
|
2364
2374
|
}
|
|
2365
2375
|
else
|
|
2366
|
-
|
|
2376
|
+
g[A.buttonKeyName] = f, t.componentParams = g;
|
|
2367
2377
|
else
|
|
2368
2378
|
t.componentParams[A.buttonKeyName] = f;
|
|
2369
2379
|
t.visible = !0;
|
|
2370
2380
|
}
|
|
2371
2381
|
else
|
|
2372
|
-
window.open(
|
|
2382
|
+
window.open(S, "_blank");
|
|
2373
2383
|
} else
|
|
2374
2384
|
pt(
|
|
2375
2385
|
f.requestTitle,
|
|
2376
2386
|
() => {
|
|
2377
|
-
let
|
|
2378
|
-
if (
|
|
2387
|
+
let S = ne(r.ctxPath, f.requestUrl);
|
|
2388
|
+
if (S.split("?").length > 1) {
|
|
2379
2389
|
if (l.radioConfig)
|
|
2380
|
-
for (const
|
|
2381
|
-
|
|
2390
|
+
for (const h in g)
|
|
2391
|
+
S = S.replace("{" + h + "}", g[h]);
|
|
2382
2392
|
else if (l.checkboxConfig && f.requestRadio)
|
|
2383
|
-
for (const
|
|
2384
|
-
|
|
2393
|
+
for (const h in g[0])
|
|
2394
|
+
S = S.replace("{" + h + "}", g[0][h]);
|
|
2385
2395
|
}
|
|
2386
2396
|
Aa(
|
|
2387
2397
|
n,
|
|
2388
2398
|
l,
|
|
2389
|
-
|
|
2390
|
-
f.requestRow ?
|
|
2391
|
-
!!(l.checkboxConfig && f.requestRow &&
|
|
2399
|
+
S,
|
|
2400
|
+
f.requestRow ? g : m,
|
|
2401
|
+
!!(l.checkboxConfig && f.requestRow && g.length !== 1)
|
|
2392
2402
|
);
|
|
2393
2403
|
},
|
|
2394
2404
|
f.requestConfirmContent
|
|
@@ -2397,33 +2407,36 @@ function Li(e) {
|
|
|
2397
2407
|
}, _ = (m, f) => {
|
|
2398
2408
|
if (m.requestType === Fe || m.requestType === lt) {
|
|
2399
2409
|
let v = m.requestUrl;
|
|
2400
|
-
const
|
|
2401
|
-
let
|
|
2402
|
-
if (
|
|
2403
|
-
|
|
2410
|
+
const g = R(m.componentVue, i.componentVue);
|
|
2411
|
+
let S = !1;
|
|
2412
|
+
if (g)
|
|
2413
|
+
S = !0;
|
|
2404
2414
|
else if (v = ne(r.ctxPath, v), v.split("?").length > 1)
|
|
2405
|
-
for (const
|
|
2406
|
-
if (v.indexOf("{" +
|
|
2415
|
+
for (const h in f) {
|
|
2416
|
+
if (v.indexOf("{" + h + "}") > -1 && (S = !0, f[h] === "")) {
|
|
2407
2417
|
Oe("该单据没有相应数据,无法进行本次操作");
|
|
2408
2418
|
return;
|
|
2409
2419
|
}
|
|
2410
|
-
v = v.replace("{" +
|
|
2420
|
+
v = v.replace("{" + h + "}", f[h]);
|
|
2411
2421
|
}
|
|
2412
2422
|
else
|
|
2413
|
-
|
|
2414
|
-
if (
|
|
2423
|
+
S = !0;
|
|
2424
|
+
if (S)
|
|
2415
2425
|
if (m.requestType === Fe)
|
|
2416
|
-
if (f[A.buttonKeyName] = m,
|
|
2417
|
-
const
|
|
2418
|
-
|
|
2419
|
-
const
|
|
2420
|
-
if (s(
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2426
|
+
if (f[A.buttonKeyName] = m, s(m.instanceField)) {
|
|
2427
|
+
const h = {};
|
|
2428
|
+
h.instanceValue = f[m.instanceField], h.instanceId = Ne + h.instanceValue, h.title = R(m.title, i.title), h.width = R(m.width, i.width), h.height = R(m.height, i.height), h.maximize = R(m.maximize, !1), h.autoLoad = R(m.autoLoad, !0), h.componentVue = g, h.componentUrl = v, h.componentParams = f, h.visible = !0;
|
|
2429
|
+
const b = a.value.findIndex((N) => N.instanceId === h.instanceId);
|
|
2430
|
+
if (s(b) && b >= 0)
|
|
2431
|
+
if (a.value[b].visible) {
|
|
2432
|
+
Oe("已经打开该数据弹窗信息");
|
|
2433
|
+
return;
|
|
2434
|
+
} else
|
|
2435
|
+
a.value[b] = h;
|
|
2436
|
+
else
|
|
2437
|
+
a.value.push(h);
|
|
2425
2438
|
} else
|
|
2426
|
-
t.title =
|
|
2439
|
+
t.title = R(m.title, i.title), t.width = R(m.width, i.width), t.height = R(m.height, i.height), t.maximize = R(m.maximize, !1), t.autoLoad = R(m.autoLoad, !0), t.componentVue = g, t.componentUrl = v, t.componentParams = f, t.visible = !0;
|
|
2427
2440
|
else
|
|
2428
2441
|
window.open(v, "_blank");
|
|
2429
2442
|
else {
|
|
@@ -2435,8 +2448,8 @@ function Li(e) {
|
|
|
2435
2448
|
m.requestTitle,
|
|
2436
2449
|
() => {
|
|
2437
2450
|
let v = ne(r.ctxPath, m.requestUrl);
|
|
2438
|
-
for (const
|
|
2439
|
-
v = v.replace("{" +
|
|
2451
|
+
for (const g in f)
|
|
2452
|
+
v = v.replace("{" + g + "}", f[g]);
|
|
2440
2453
|
Aa(n, l, v, f);
|
|
2441
2454
|
},
|
|
2442
2455
|
m.requestConfirmContent
|
|
@@ -2478,18 +2491,18 @@ function Ri(e) {
|
|
|
2478
2491
|
const f = n.value;
|
|
2479
2492
|
f && f.validate().then((v) => {
|
|
2480
2493
|
if (!v || v.length === 0) {
|
|
2481
|
-
let
|
|
2482
|
-
if (s(
|
|
2494
|
+
let g = d.requestDownload;
|
|
2495
|
+
if (s(g)) {
|
|
2483
2496
|
if (l.loading) {
|
|
2484
2497
|
Oe("正在导出中,请不要重复点击!");
|
|
2485
2498
|
return;
|
|
2486
2499
|
}
|
|
2487
|
-
if (p.isMerge && typeof
|
|
2500
|
+
if (p.isMerge && typeof g != "object") {
|
|
2488
2501
|
Oe("合并列模式请设置requestDownload参数为表格列格式");
|
|
2489
2502
|
return;
|
|
2490
2503
|
}
|
|
2491
2504
|
pt("确定要导出表格所有内容吗?", () => {
|
|
2492
|
-
const
|
|
2505
|
+
const S = Zl.loading(
|
|
2493
2506
|
{
|
|
2494
2507
|
content: () => "下载中,请稍后... 不要连续点击下载",
|
|
2495
2508
|
style: {
|
|
@@ -2498,21 +2511,21 @@ function Ri(e) {
|
|
|
2498
2511
|
},
|
|
2499
2512
|
0
|
|
2500
2513
|
);
|
|
2501
|
-
setTimeout(
|
|
2502
|
-
const
|
|
2503
|
-
if (
|
|
2504
|
-
const { filter: b, form:
|
|
2514
|
+
setTimeout(S, 2e3);
|
|
2515
|
+
const h = a.value;
|
|
2516
|
+
if (h) {
|
|
2517
|
+
const { filter: b, form: N, sort: U } = h.getProxyInfo(), D = jt({
|
|
2505
2518
|
currentPage: 1,
|
|
2506
2519
|
pageSize: 25e3
|
|
2507
|
-
}, U, b,
|
|
2508
|
-
if (typeof
|
|
2509
|
-
|
|
2520
|
+
}, U, b, N, t, o);
|
|
2521
|
+
if (typeof g == "string") {
|
|
2522
|
+
g = ne(u.ctxPath, d.requestDownload);
|
|
2510
2523
|
let E = "";
|
|
2511
|
-
Object.keys(
|
|
2512
|
-
s(
|
|
2513
|
-
}), le("导出表格参数", [
|
|
2524
|
+
Object.keys(D).forEach((F) => {
|
|
2525
|
+
s(D[F]) && (typeof D[F] == "string" && (E += "&" + F + "=" + D[F]), typeof D[F] == "object" && Array.isArray(D[F]) && (E += "&" + F + "=" + D[F].join(",")));
|
|
2526
|
+
}), le("导出表格参数", [g, E]), Ni(g + E);
|
|
2514
2527
|
} else
|
|
2515
|
-
l.loading = !0,
|
|
2528
|
+
l.loading = !0, D.exportFlag = !0, r(D, d.requestData, !0).then(async (E) => {
|
|
2516
2529
|
if (E == null || E.rows.length == 0) {
|
|
2517
2530
|
l.loading = !1;
|
|
2518
2531
|
return;
|
|
@@ -2527,7 +2540,7 @@ function Ri(e) {
|
|
|
2527
2540
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2528
2541
|
sheetName: u.templateTitle,
|
|
2529
2542
|
data: E.rows,
|
|
2530
|
-
columns: s(l.params.exportColumns) ? l.params.exportColumns :
|
|
2543
|
+
columns: s(l.params.exportColumns) ? l.params.exportColumns : g,
|
|
2531
2544
|
mergeCells: i(E.rows)
|
|
2532
2545
|
};
|
|
2533
2546
|
m(F), l.loading = !1;
|
|
@@ -2545,7 +2558,7 @@ function Ri(e) {
|
|
|
2545
2558
|
return !A.templateTable.ignoreExportColumnsTitle.includes(G?.column?.title);
|
|
2546
2559
|
}
|
|
2547
2560
|
};
|
|
2548
|
-
le("导出参数", re),
|
|
2561
|
+
le("导出参数", re), h.exportData(re).then(() => {
|
|
2549
2562
|
l.loading = !1;
|
|
2550
2563
|
});
|
|
2551
2564
|
}
|
|
@@ -2568,12 +2581,12 @@ function Ri(e) {
|
|
|
2568
2581
|
},
|
|
2569
2582
|
switchColumsEvent: (m, f = !1) => {
|
|
2570
2583
|
if (s(c.tableColumnsExtra)) {
|
|
2571
|
-
const v = c.tableColumns,
|
|
2584
|
+
const v = c.tableColumns, g = c.tableColumnsExtra;
|
|
2572
2585
|
if (f) {
|
|
2573
|
-
const
|
|
2574
|
-
s(
|
|
2586
|
+
const S = tr(m, u.templateType);
|
|
2587
|
+
s(S) ? (l.params.switchType = S.switchType, l.columns = S.switchType === "1" ? v : g, l.showOverflow = S.switchShowOverflow) : (l.params.switchType = "1", l.columns = v, l.showOverflow = R(c.showOverflow, !0));
|
|
2575
2588
|
} else
|
|
2576
|
-
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ?
|
|
2589
|
+
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? g : v, l.showOverflow = !l.showOverflow, er(m, u.templateType, {
|
|
2577
2590
|
switchType: l.params.switchType,
|
|
2578
2591
|
switchShowOverflow: l.showOverflow
|
|
2579
2592
|
});
|
|
@@ -2593,35 +2606,35 @@ const ze = /* @__PURE__ */ Q({
|
|
|
2593
2606
|
setup(e) {
|
|
2594
2607
|
const n = e;
|
|
2595
2608
|
return (t, a) => (x(), W(de, null, [
|
|
2596
|
-
n.icon === "user" ? (x(), z(
|
|
2597
|
-
n.icon === "excel" ? (x(), z(
|
|
2598
|
-
n.icon === "download" ? (x(), z(
|
|
2599
|
-
n.icon === "save" ? (x(), z(
|
|
2600
|
-
n.icon === "edit" ? (x(), z(
|
|
2601
|
-
n.icon === "delete" ? (x(), z(
|
|
2602
|
-
n.icon === "down" ? (x(), z(
|
|
2603
|
-
n.icon === "up" ? (x(), z(
|
|
2604
|
-
n.icon === "undo" ? (x(), z(
|
|
2605
|
-
n.icon === "redo" ? (x(), z(
|
|
2606
|
-
n.icon === "copy" ? (x(), z(
|
|
2607
|
-
n.icon === "print" ? (x(), z(
|
|
2608
|
-
n.icon === "plus" ? (x(), z(
|
|
2609
|
-
n.icon === "minus" ? (x(), z(
|
|
2610
|
-
n.icon === "info" ? (x(), z(
|
|
2611
|
-
n.icon === "audit" ? (x(), z(
|
|
2612
|
-
n.icon === "schedule" ? (x(), z(
|
|
2613
|
-
n.icon === "close" ? (x(), z(
|
|
2614
|
-
n.icon === "stop" ? (x(), z(
|
|
2615
|
-
n.icon === "check" ? (x(), z(
|
|
2616
|
-
n.icon === "setting" ? (x(), z(
|
|
2617
|
-
n.icon === "menu" ? (x(), z(
|
|
2618
|
-
n.icon === "pdf" ? (x(), z(
|
|
2619
|
-
n.icon === "push" ? (x(), z(
|
|
2620
|
-
n.icon === "upload" ? (x(), z(
|
|
2621
|
-
n.icon === "search" ? (x(), z(
|
|
2622
|
-
n.icon === "sync" ? (x(), z(
|
|
2623
|
-
n.icon === "link" ? (x(), z(
|
|
2624
|
-
!n.icon || n.icon === "" ? (x(), z(
|
|
2609
|
+
n.icon === "user" ? (x(), z(O(Sn), { key: 0 })) : j("", !0),
|
|
2610
|
+
n.icon === "excel" ? (x(), z(O(en), { key: 1 })) : j("", !0),
|
|
2611
|
+
n.icon === "download" ? (x(), z(O(Qt), { key: 2 })) : j("", !0),
|
|
2612
|
+
n.icon === "save" ? (x(), z(O(dn), { key: 3 })) : j("", !0),
|
|
2613
|
+
n.icon === "edit" ? (x(), z(O(Xt), { key: 4 })) : j("", !0),
|
|
2614
|
+
n.icon === "delete" ? (x(), z(O(Zt), { key: 5 })) : j("", !0),
|
|
2615
|
+
n.icon === "down" ? (x(), z(O(yt), { key: 6 })) : j("", !0),
|
|
2616
|
+
n.icon === "up" ? (x(), z(O(bn), { key: 7 })) : j("", !0),
|
|
2617
|
+
n.icon === "undo" ? (x(), z(O(vn), { key: 8 })) : j("", !0),
|
|
2618
|
+
n.icon === "redo" ? (x(), z(O(cn), { key: 9 })) : j("", !0),
|
|
2619
|
+
n.icon === "copy" ? (x(), z(O(Jt), { key: 10 })) : j("", !0),
|
|
2620
|
+
n.icon === "print" ? (x(), z(O(un), { key: 11 })) : j("", !0),
|
|
2621
|
+
n.icon === "plus" ? (x(), z(O(sn), { key: 12 })) : j("", !0),
|
|
2622
|
+
n.icon === "minus" ? (x(), z(O(on), { key: 13 })) : j("", !0),
|
|
2623
|
+
n.icon === "info" ? (x(), z(O(an), { key: 14 })) : j("", !0),
|
|
2624
|
+
n.icon === "audit" ? (x(), z(O(Ht), { key: 15 })) : j("", !0),
|
|
2625
|
+
n.icon === "schedule" ? (x(), z(O(fn), { key: 16 })) : j("", !0),
|
|
2626
|
+
n.icon === "close" ? (x(), z(O(Wt), { key: 17 })) : j("", !0),
|
|
2627
|
+
n.icon === "stop" ? (x(), z(O(gn), { key: 18 })) : j("", !0),
|
|
2628
|
+
n.icon === "check" ? (x(), z(O(Yt), { key: 19 })) : j("", !0),
|
|
2629
|
+
n.icon === "setting" ? (x(), z(O(mn), { key: 20 })) : j("", !0),
|
|
2630
|
+
n.icon === "menu" ? (x(), z(O(rn), { key: 21 })) : j("", !0),
|
|
2631
|
+
n.icon === "pdf" ? (x(), z(O(tn), { key: 22 })) : j("", !0),
|
|
2632
|
+
n.icon === "push" ? (x(), z(O(Gt), { key: 23 })) : j("", !0),
|
|
2633
|
+
n.icon === "upload" ? (x(), z(O(yn), { key: 24 })) : j("", !0),
|
|
2634
|
+
n.icon === "search" ? (x(), z(O(pn), { key: 25 })) : j("", !0),
|
|
2635
|
+
n.icon === "sync" ? (x(), z(O(hn), { key: 26 })) : j("", !0),
|
|
2636
|
+
n.icon === "link" ? (x(), z(O(ln), { key: 27 })) : j("", !0),
|
|
2637
|
+
!n.icon || n.icon === "" ? (x(), z(O(nn), { key: 28 })) : j("", !0)
|
|
2625
2638
|
], 64));
|
|
2626
2639
|
}
|
|
2627
2640
|
});
|
|
@@ -2632,7 +2645,7 @@ var it = { exports: {} }, Ei = it.exports, Ta;
|
|
|
2632
2645
|
function Ui() {
|
|
2633
2646
|
return Ta || (Ta = 1, (function(e, n) {
|
|
2634
2647
|
(function(t, a) {
|
|
2635
|
-
e.exports = a(
|
|
2648
|
+
e.exports = a(T);
|
|
2636
2649
|
})(Ei, (function(t) {
|
|
2637
2650
|
function a(o) {
|
|
2638
2651
|
return o && typeof o == "object" && "default" in o ? o : { default: o };
|
|
@@ -2730,13 +2743,13 @@ function Zi() {
|
|
|
2730
2743
|
var r = a.prototype, o = function(d) {
|
|
2731
2744
|
return d && (d.indexOf ? d : d.s);
|
|
2732
2745
|
}, i = function(d, y, _, C, m) {
|
|
2733
|
-
var f = d.name ? d : d.$locale(), v = o(f[y]),
|
|
2746
|
+
var f = d.name ? d : d.$locale(), v = o(f[y]), g = o(f[_]), S = v || g.map((function(b) {
|
|
2734
2747
|
return b.slice(0, C);
|
|
2735
2748
|
}));
|
|
2736
|
-
if (!m) return
|
|
2737
|
-
var
|
|
2738
|
-
return
|
|
2739
|
-
return
|
|
2749
|
+
if (!m) return S;
|
|
2750
|
+
var h = f.weekStart;
|
|
2751
|
+
return S.map((function(b, N) {
|
|
2752
|
+
return S[(N + (h || 0)) % 7];
|
|
2740
2753
|
}));
|
|
2741
2754
|
}, u = function() {
|
|
2742
2755
|
return l.Ls[l.locale()];
|
|
@@ -2799,7 +2812,7 @@ function Zi() {
|
|
|
2799
2812
|
})(ut)), ut.exports;
|
|
2800
2813
|
}
|
|
2801
2814
|
var Qi = Zi();
|
|
2802
|
-
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0), Bt = (e, n) => (n = s(n) ? n : 2, s(e) ? `${Me.commafy(Number(e), { digits: n })}` : e), wl = (e) => _n(e, "yyyy-MM-dd"), _l = (e) => _n(e, "yyyy-MM-dd HH:mm:ss"), _n = (e, n) => Me.toDateString(e, n), ct = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, ts = (e, n) => typeof n == "string" ? n === "number" ? Bt(e) : n === "date" ? wl(e) : n === "datetime" ? _l(e) : ct(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Bt(e, n[1]) : ct(e, 200),
|
|
2815
|
+
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0), Bt = (e, n) => (n = s(n) ? n : 2, s(e) ? `${Me.commafy(Number(e), { digits: n })}` : e), wl = (e) => _n(e, "yyyy-MM-dd"), _l = (e) => _n(e, "yyyy-MM-dd HH:mm:ss"), _n = (e, n) => Me.toDateString(e, n), ct = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, ts = (e, n) => typeof n == "string" ? n === "number" ? Bt(e) : n === "date" ? wl(e) : n === "datetime" ? _l(e) : ct(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Bt(e, n[1]) : ct(e, 200), V = {
|
|
2803
2816
|
toString: Ki,
|
|
2804
2817
|
toDateString: wl,
|
|
2805
2818
|
toDatetimeString: _l,
|
|
@@ -2823,65 +2836,65 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2823
2836
|
},
|
|
2824
2837
|
emits: ["update:value"],
|
|
2825
2838
|
setup(e, { expose: n, emit: t }) {
|
|
2826
|
-
|
|
2827
|
-
const a = e, l =
|
|
2828
|
-
let c =
|
|
2839
|
+
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
2840
|
+
const a = e, l = V.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = V.toString(a.format, "YYYY-MM-DD"), i = he(be), u = qe(i?.size);
|
|
2841
|
+
let c = M();
|
|
2829
2842
|
const p = [
|
|
2830
|
-
{ label: "当天", value: [
|
|
2831
|
-
{ label: "近7天", value: [
|
|
2832
|
-
{ label: "近两周", value: [
|
|
2833
|
-
{ label: "近一个月", value: [
|
|
2834
|
-
{ label: "近三个月", value: [
|
|
2835
|
-
{ label: "近六个月", value: [
|
|
2836
|
-
{ label: "近一年", value: [
|
|
2837
|
-
{ label: "近三年", value: [
|
|
2843
|
+
{ label: "当天", value: [T().add(0, r)] },
|
|
2844
|
+
{ label: "近7天", value: [T().add(-7, r)] },
|
|
2845
|
+
{ label: "近两周", value: [T().add(-14, r)] },
|
|
2846
|
+
{ label: "近一个月", value: [T().add(-30, r)] },
|
|
2847
|
+
{ label: "近三个月", value: [T().add(-90, r)] },
|
|
2848
|
+
{ label: "近六个月", value: [T().add(-180, r)] },
|
|
2849
|
+
{ label: "近一年", value: [T().add(-365, r)] },
|
|
2850
|
+
{ label: "近三年", value: [T().add(-1095, r)] }
|
|
2838
2851
|
], d = [
|
|
2839
|
-
{ label: "本月", value: [
|
|
2840
|
-
{ label: "近一个月", value: [
|
|
2841
|
-
{ label: "近三个月", value: [
|
|
2842
|
-
{ label: "近六个月", value: [
|
|
2843
|
-
{ label: "近一年", value: [
|
|
2844
|
-
{ label: "近两年", value: [
|
|
2845
|
-
{ label: "近三年", value: [
|
|
2852
|
+
{ label: "本月", value: [T().add(0, r)] },
|
|
2853
|
+
{ label: "近一个月", value: [T().add(-1, r)] },
|
|
2854
|
+
{ label: "近三个月", value: [T().add(-3, r)] },
|
|
2855
|
+
{ label: "近六个月", value: [T().add(-5, r)] },
|
|
2856
|
+
{ label: "近一年", value: [T().add(-12, r)] },
|
|
2857
|
+
{ label: "近两年", value: [T().add(-24, r)] },
|
|
2858
|
+
{ label: "近三年", value: [T().add(-36, r)] }
|
|
2846
2859
|
], y = [
|
|
2847
|
-
{ label: "本年", value: [
|
|
2848
|
-
{ label: "近一年", value: [
|
|
2849
|
-
{ label: "近两年", value: [
|
|
2850
|
-
{ label: "近三年", value: [
|
|
2851
|
-
{ label: "近五年", value: [
|
|
2852
|
-
], _ =
|
|
2860
|
+
{ label: "本年", value: [T().add(0, r)] },
|
|
2861
|
+
{ label: "近一年", value: [T().add(-1, r)] },
|
|
2862
|
+
{ label: "近两年", value: [T().add(-2, r)] },
|
|
2863
|
+
{ label: "近三年", value: [T().add(-3, r)] },
|
|
2864
|
+
{ label: "近五年", value: [T().add(-5, r)] }
|
|
2865
|
+
], _ = M(l === "year" ? y : l === "month" ? d : p), C = t, m = (h, b) => {
|
|
2853
2866
|
le("日期区间选值", b), b && b[0] == "" && b[1] == "" ? C("update:value", null) : C("update:value", b);
|
|
2854
2867
|
}, f = () => {
|
|
2855
|
-
let
|
|
2856
|
-
return c.value && c.value[0] && (
|
|
2857
|
-
}, v = (
|
|
2858
|
-
const b =
|
|
2859
|
-
typeof b == "number" || typeof
|
|
2860
|
-
s(b) ?
|
|
2861
|
-
s(
|
|
2862
|
-
] : c.value = [s(b) ?
|
|
2863
|
-
},
|
|
2868
|
+
let h = null, b = null;
|
|
2869
|
+
return c.value && c.value[0] && (h = T(c.value[0]).format(o)), c.value && c.value[1] && (b = T(c.value[1]).format(o)), !h && !b ? null : [h, b];
|
|
2870
|
+
}, v = (h) => {
|
|
2871
|
+
const b = h ? h[0] : null, N = h ? h[1] : null;
|
|
2872
|
+
typeof b == "number" || typeof N == "number" ? c.value = [
|
|
2873
|
+
s(b) ? T().add(b, r) : null,
|
|
2874
|
+
s(N) ? T().add(N, r) : null
|
|
2875
|
+
] : c.value = [s(b) ? T(b) : null, s(N) ? T(N) : null], C("update:value", f());
|
|
2876
|
+
}, g = () => {
|
|
2864
2877
|
s(a.defaultValue) ? v([a.defaultValue, null]) : v(null);
|
|
2865
|
-
},
|
|
2878
|
+
}, S = () => "dateRange";
|
|
2866
2879
|
return ie(() => {
|
|
2867
|
-
|
|
2880
|
+
g();
|
|
2868
2881
|
}), n({
|
|
2869
2882
|
setValue: v,
|
|
2870
2883
|
getValue: f,
|
|
2871
|
-
resetValue:
|
|
2872
|
-
getRefType:
|
|
2873
|
-
}), (
|
|
2874
|
-
const
|
|
2875
|
-
return x(), z(
|
|
2876
|
-
value:
|
|
2884
|
+
resetValue: g,
|
|
2885
|
+
getRefType: S
|
|
2886
|
+
}), (h, b) => {
|
|
2887
|
+
const N = Y("a-range-picker");
|
|
2888
|
+
return x(), z(N, {
|
|
2889
|
+
value: O(c),
|
|
2877
2890
|
"onUpdate:value": b[0] || (b[0] = (U) => gt(c) ? c.value = U : c = U),
|
|
2878
2891
|
onChange: m,
|
|
2879
2892
|
presets: _.value,
|
|
2880
|
-
locale:
|
|
2893
|
+
locale: O(Ge),
|
|
2881
2894
|
allowEmpty: [!0, !0],
|
|
2882
|
-
format:
|
|
2883
|
-
picker:
|
|
2884
|
-
size:
|
|
2895
|
+
format: O(o),
|
|
2896
|
+
picker: O(l),
|
|
2897
|
+
size: O(u),
|
|
2885
2898
|
style: { width: "100%" }
|
|
2886
2899
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2887
2900
|
};
|
|
@@ -2901,16 +2914,16 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2901
2914
|
},
|
|
2902
2915
|
emits: ["update:value"],
|
|
2903
2916
|
setup(e, { expose: n, emit: t }) {
|
|
2904
|
-
|
|
2905
|
-
const a = e, l = he(be), r = qe(l?.size), o =
|
|
2906
|
-
let c =
|
|
2917
|
+
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
2918
|
+
const a = e, l = he(be), r = qe(l?.size), o = V.toString(a.picker, "date"), i = V.toString(a.format, "YYYY-MM-DD"), u = t;
|
|
2919
|
+
let c = M();
|
|
2907
2920
|
const p = (C, m) => {
|
|
2908
2921
|
le("日期选值", m), !m || m == "" ? u("update:value", null) : u("update:value", m);
|
|
2909
2922
|
}, d = () => {
|
|
2910
2923
|
let C = null;
|
|
2911
|
-
return c.value && (C =
|
|
2924
|
+
return c.value && (C = T(c.value).format(i)), C || null;
|
|
2912
2925
|
}, y = (C) => {
|
|
2913
|
-
typeof C == "number" ? c.value = s(C) ?
|
|
2926
|
+
typeof C == "number" ? c.value = s(C) ? T().add(C, o) : null : c.value = s(C) ? T(C) : null, u("update:value", d());
|
|
2914
2927
|
}, _ = () => {
|
|
2915
2928
|
s(a.defaultValue) ? y(a.defaultValue) : y(null);
|
|
2916
2929
|
};
|
|
@@ -2923,13 +2936,13 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2923
2936
|
}), (C, m) => {
|
|
2924
2937
|
const f = Y("a-date-picker");
|
|
2925
2938
|
return x(), z(f, {
|
|
2926
|
-
value:
|
|
2939
|
+
value: O(c),
|
|
2927
2940
|
"onUpdate:value": m[0] || (m[0] = (v) => gt(c) ? c.value = v : c = v),
|
|
2928
2941
|
onChange: p,
|
|
2929
|
-
locale:
|
|
2930
|
-
format:
|
|
2931
|
-
picker:
|
|
2932
|
-
size:
|
|
2942
|
+
locale: O(Ge),
|
|
2943
|
+
format: O(i),
|
|
2944
|
+
picker: O(o),
|
|
2945
|
+
size: O(r),
|
|
2933
2946
|
allowClear: a.clearable,
|
|
2934
2947
|
style: { width: "100%" }
|
|
2935
2948
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
@@ -2949,7 +2962,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2949
2962
|
},
|
|
2950
2963
|
emits: ["update:value"],
|
|
2951
2964
|
setup(e, { expose: n, emit: t }) {
|
|
2952
|
-
const a = e, l = he(be), r = qe(l?.size), o =
|
|
2965
|
+
const a = e, l = he(be), r = qe(l?.size), o = M(null), i = R(a.placeholder, "请输入" + a.title), u = t, c = () => {
|
|
2953
2966
|
u("update:value", o.value);
|
|
2954
2967
|
};
|
|
2955
2968
|
return n({
|
|
@@ -2967,11 +2980,11 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2967
2980
|
return x(), z(m, {
|
|
2968
2981
|
value: o.value,
|
|
2969
2982
|
"onUpdate:value": C[0] || (C[0] = (f) => o.value = f),
|
|
2970
|
-
placeholder:
|
|
2983
|
+
placeholder: O(i),
|
|
2971
2984
|
disabled: a.disabled,
|
|
2972
2985
|
type: a.inputType,
|
|
2973
2986
|
onChange: c,
|
|
2974
|
-
size:
|
|
2987
|
+
size: O(r),
|
|
2975
2988
|
style: { width: "100%" }
|
|
2976
2989
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2977
2990
|
};
|
|
@@ -2992,13 +3005,13 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2992
3005
|
},
|
|
2993
3006
|
emits: ["update:value"],
|
|
2994
3007
|
setup(e, { expose: n, emit: t }) {
|
|
2995
|
-
const a = e, l = he(be), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", u = qe(l?.size), c =
|
|
2996
|
-
let
|
|
2997
|
-
return !
|
|
2998
|
-
}, _ = (
|
|
3008
|
+
const a = e, l = he(be), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", u = qe(l?.size), c = M(a.multiple ? [] : null), p = t, d = M([]), y = async () => {
|
|
3009
|
+
let g = a.request.requestUrl;
|
|
3010
|
+
return !g && r && (g = i), g ? (g = ne(o, g), await On(r, g, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3011
|
+
}, _ = (g, S) => S.label.toLowerCase().indexOf(g.toLowerCase()) >= 0, C = () => {
|
|
2999
3012
|
p("update:value", c.value);
|
|
3000
|
-
}, m = () => c.value, f = (
|
|
3001
|
-
c.value =
|
|
3013
|
+
}, m = () => c.value, f = (g) => {
|
|
3014
|
+
c.value = g, p("update:value", c.value);
|
|
3002
3015
|
};
|
|
3003
3016
|
return n({
|
|
3004
3017
|
getValue: m,
|
|
@@ -3007,15 +3020,15 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3007
3020
|
a.multiple ? f(a.defaultValue || []) : f(a.defaultValue || null);
|
|
3008
3021
|
}
|
|
3009
3022
|
}), ie(() => {
|
|
3010
|
-
p("update:value", c.value), y().then((
|
|
3011
|
-
d.value =
|
|
3023
|
+
p("update:value", c.value), y().then((g) => {
|
|
3024
|
+
d.value = g;
|
|
3012
3025
|
});
|
|
3013
|
-
}), (
|
|
3014
|
-
const
|
|
3026
|
+
}), (g, S) => {
|
|
3027
|
+
const h = Y("a-select");
|
|
3015
3028
|
return x(), W("div", rs, [
|
|
3016
|
-
|
|
3029
|
+
q(h, {
|
|
3017
3030
|
value: c.value,
|
|
3018
|
-
"onUpdate:value":
|
|
3031
|
+
"onUpdate:value": S[0] || (S[0] = (b) => c.value = b),
|
|
3019
3032
|
onChange: C,
|
|
3020
3033
|
placeholder: "--请选择--",
|
|
3021
3034
|
allowClear: a.clearable,
|
|
@@ -3027,7 +3040,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3027
3040
|
defaultActiveFirstOption: !a.multiple,
|
|
3028
3041
|
autoClearSearchValue: !a.filterable,
|
|
3029
3042
|
disabled: a.disabled,
|
|
3030
|
-
size:
|
|
3043
|
+
size: O(u),
|
|
3031
3044
|
style: { width: "100%" }
|
|
3032
3045
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "disabled", "size"])
|
|
3033
3046
|
]);
|
|
@@ -3052,61 +3065,61 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3052
3065
|
},
|
|
3053
3066
|
emits: ["update:value"],
|
|
3054
3067
|
setup(e, { expose: n, emit: t }) {
|
|
3055
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u =
|
|
3056
|
-
if (p.value = [],
|
|
3068
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = M(""), c = M(""), p = M([]), d = t, y = M(!1), _ = async (h) => {
|
|
3069
|
+
if (p.value = [], h) {
|
|
3057
3070
|
y.value = !0;
|
|
3058
3071
|
const b = {
|
|
3059
|
-
searchValue: Te(
|
|
3060
|
-
},
|
|
3072
|
+
searchValue: Te(h)
|
|
3073
|
+
}, N = await Re(ne(r, a.requestUrl), {
|
|
3061
3074
|
...a.requestParams,
|
|
3062
3075
|
...b
|
|
3063
3076
|
});
|
|
3064
|
-
return y.value = !1,
|
|
3077
|
+
return y.value = !1, N;
|
|
3065
3078
|
} else
|
|
3066
3079
|
return [];
|
|
3067
|
-
}, C = It((
|
|
3068
|
-
_(
|
|
3080
|
+
}, C = It((h) => {
|
|
3081
|
+
_(h).then((b) => {
|
|
3069
3082
|
p.value = b;
|
|
3070
3083
|
});
|
|
3071
|
-
}, 500), m = (
|
|
3072
|
-
u.value =
|
|
3073
|
-
}, f = () => c.value, v = () => u.value,
|
|
3074
|
-
u.value =
|
|
3075
|
-
let
|
|
3076
|
-
|
|
3084
|
+
}, 500), m = (h) => {
|
|
3085
|
+
u.value = h, d("update:value", h);
|
|
3086
|
+
}, f = () => c.value, v = () => u.value, g = (h, b = null) => {
|
|
3087
|
+
u.value = h, c.value = b;
|
|
3088
|
+
let N = p.value.filter((U) => U.value === u.value);
|
|
3089
|
+
N.length === 1 ? c.value = N[0].label : _(h).then((U) => {
|
|
3077
3090
|
p.value = U;
|
|
3078
|
-
}), d("update:value",
|
|
3091
|
+
}), d("update:value", h);
|
|
3079
3092
|
};
|
|
3080
3093
|
return n({
|
|
3081
3094
|
getName: f,
|
|
3082
3095
|
getValue: v,
|
|
3083
|
-
setValue:
|
|
3096
|
+
setValue: g,
|
|
3084
3097
|
resetValue: () => {
|
|
3085
|
-
|
|
3098
|
+
g(a.defaultValue, a.defaultName);
|
|
3086
3099
|
}
|
|
3087
|
-
}), (
|
|
3088
|
-
const
|
|
3100
|
+
}), (h, b) => {
|
|
3101
|
+
const N = Y("a-spin"), U = Y("a-select");
|
|
3089
3102
|
return x(), W("div", is, [
|
|
3090
|
-
|
|
3103
|
+
q(U, {
|
|
3091
3104
|
value: u.value,
|
|
3092
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
3105
|
+
"onUpdate:value": b[0] || (b[0] = (L) => u.value = L),
|
|
3093
3106
|
placeholder: i,
|
|
3094
3107
|
disabled: a.disabled,
|
|
3095
3108
|
"filter-option": !1,
|
|
3096
3109
|
options: p.value,
|
|
3097
|
-
size:
|
|
3110
|
+
size: O(o),
|
|
3098
3111
|
"default-active-first-option": !1,
|
|
3099
3112
|
"show-arrow": !1,
|
|
3100
3113
|
onChange: m,
|
|
3101
|
-
onSearch:
|
|
3114
|
+
onSearch: O(C),
|
|
3102
3115
|
"allow-clear": "",
|
|
3103
3116
|
"show-search": "",
|
|
3104
3117
|
style: { width: "100%" }
|
|
3105
3118
|
}, xe({ _: 2 }, [
|
|
3106
3119
|
y.value ? {
|
|
3107
3120
|
name: "notFoundContent",
|
|
3108
|
-
fn:
|
|
3109
|
-
|
|
3121
|
+
fn: I(() => [
|
|
3122
|
+
q(N, { size: "small" })
|
|
3110
3123
|
]),
|
|
3111
3124
|
key: "0"
|
|
3112
3125
|
} : void 0
|
|
@@ -3133,32 +3146,32 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3133
3146
|
},
|
|
3134
3147
|
emits: ["update:value"],
|
|
3135
3148
|
setup(e, { expose: n, emit: t }) {
|
|
3136
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u =
|
|
3137
|
-
y("update:value",
|
|
3138
|
-
}, f = () => c.value, v = () => u.value,
|
|
3139
|
-
u.value =
|
|
3140
|
-
let b = d.value.filter((
|
|
3149
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = M(a.multiple ? [] : null), c = M(""), p = M([]), d = M([]), y = t, _ = (h, b) => b.label.toLowerCase().indexOf(Te(h).toLowerCase()) >= 0, C = async () => await Re(ne(r, a.requestUrl), a.requestParams), m = (h) => {
|
|
3150
|
+
y("update:value", h);
|
|
3151
|
+
}, f = () => c.value, v = () => u.value, g = (h) => {
|
|
3152
|
+
u.value = h, y("update:value", u.value);
|
|
3153
|
+
let b = d.value.filter((N) => N.value === u.value);
|
|
3141
3154
|
if (a.multiple) {
|
|
3142
|
-
let
|
|
3155
|
+
let N = "";
|
|
3143
3156
|
b.forEach((U) => {
|
|
3144
|
-
|
|
3145
|
-
}), c.value =
|
|
3157
|
+
N += U.label + ",";
|
|
3158
|
+
}), c.value = N;
|
|
3146
3159
|
} else
|
|
3147
3160
|
b.length === 1 && (c.value = b[0].label);
|
|
3148
3161
|
};
|
|
3149
3162
|
return n({
|
|
3150
3163
|
getName: f,
|
|
3151
3164
|
getValue: v,
|
|
3152
|
-
setValue:
|
|
3165
|
+
setValue: g,
|
|
3153
3166
|
resetValue: () => {
|
|
3154
|
-
a.multiple ?
|
|
3167
|
+
a.multiple ? g(a.defaultValue || []) : g(a.defaultValue || null);
|
|
3155
3168
|
}
|
|
3156
|
-
}), C().then((
|
|
3157
|
-
d.value =
|
|
3158
|
-
}), (
|
|
3159
|
-
const
|
|
3169
|
+
}), C().then((h) => {
|
|
3170
|
+
d.value = h, p.value = h;
|
|
3171
|
+
}), (h, b) => {
|
|
3172
|
+
const N = Y("a-select");
|
|
3160
3173
|
return x(), W("div", us, [
|
|
3161
|
-
|
|
3174
|
+
q(N, {
|
|
3162
3175
|
value: u.value,
|
|
3163
3176
|
"onUpdate:value": b[0] || (b[0] = (U) => u.value = U),
|
|
3164
3177
|
placeholder: i,
|
|
@@ -3167,7 +3180,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3167
3180
|
defaultActiveFirstOption: !a.multiple,
|
|
3168
3181
|
"filter-option": _,
|
|
3169
3182
|
options: p.value,
|
|
3170
|
-
size:
|
|
3183
|
+
size: O(o),
|
|
3171
3184
|
onChange: m,
|
|
3172
3185
|
"allow-clear": "",
|
|
3173
3186
|
"show-search": "",
|
|
@@ -3199,7 +3212,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3199
3212
|
},
|
|
3200
3213
|
emits: ["update:value", "change"],
|
|
3201
3214
|
setup(e, { expose: n, emit: t }) {
|
|
3202
|
-
const a = e, l = he(be), r = l?.application || "", o = l?.ctxPath || "", i = qe(l?.size), u = "请输入" + a.title + "搜索", c = a.fieldNames.label, p = a.fieldNames.value, d =
|
|
3215
|
+
const a = e, l = he(be), r = l?.application || "", o = l?.ctxPath || "", i = qe(l?.size), u = "请输入" + a.title + "搜索", c = a.fieldNames.label, p = a.fieldNames.value, d = M([]), y = M([]), _ = async () => {
|
|
3203
3216
|
const b = await yl(
|
|
3204
3217
|
ne(o, a.requestUrl),
|
|
3205
3218
|
a.requestParams,
|
|
@@ -3207,26 +3220,26 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3207
3220
|
"CASCADER_" + a.cacheKey
|
|
3208
3221
|
);
|
|
3209
3222
|
y.value = b;
|
|
3210
|
-
}, C = t, m = (b,
|
|
3211
|
-
s(
|
|
3212
|
-
}, f = (b,
|
|
3223
|
+
}, C = t, m = (b, N) => {
|
|
3224
|
+
s(N) ? (C("update:value", b[b.length - 1]), C("change", N[N.length - 1])) : (C("update:value", null), C("change", null));
|
|
3225
|
+
}, f = (b, N) => N.some((U) => U[c].indexOf(b) > -1), v = () => y.value.filter((N) => N[p] === d.value[d.value.length - 1])[c], g = () => d.value, S = (b) => {
|
|
3213
3226
|
d.value = b, C("update:value", b);
|
|
3214
|
-
},
|
|
3227
|
+
}, h = () => {
|
|
3215
3228
|
d.value = null, C("update:value", null), C("change", null);
|
|
3216
3229
|
};
|
|
3217
3230
|
return ie(() => {
|
|
3218
3231
|
_();
|
|
3219
3232
|
}), n({
|
|
3220
3233
|
getName: v,
|
|
3221
|
-
getValue:
|
|
3222
|
-
setValue:
|
|
3223
|
-
resetValue:
|
|
3224
|
-
}), (b,
|
|
3234
|
+
getValue: g,
|
|
3235
|
+
setValue: S,
|
|
3236
|
+
resetValue: h
|
|
3237
|
+
}), (b, N) => {
|
|
3225
3238
|
const U = Y("a-cascader");
|
|
3226
3239
|
return x(), W("div", ds, [
|
|
3227
|
-
|
|
3240
|
+
q(U, {
|
|
3228
3241
|
value: d.value,
|
|
3229
|
-
"onUpdate:value":
|
|
3242
|
+
"onUpdate:value": N[0] || (N[0] = (L) => d.value = L),
|
|
3230
3243
|
options: y.value,
|
|
3231
3244
|
fieldNames: a.fieldNames,
|
|
3232
3245
|
"show-search": { filter: f },
|
|
@@ -3234,7 +3247,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3234
3247
|
clearable: a.clearable,
|
|
3235
3248
|
changeOnSelect: a.changeOnSelect,
|
|
3236
3249
|
placeholder: u,
|
|
3237
|
-
size:
|
|
3250
|
+
size: O(i),
|
|
3238
3251
|
onChange: m,
|
|
3239
3252
|
style: { width: "100%" }
|
|
3240
3253
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "size"])
|
|
@@ -3299,19 +3312,20 @@ function hs(e) {
|
|
|
3299
3312
|
} else
|
|
3300
3313
|
return $a(e);
|
|
3301
3314
|
}
|
|
3302
|
-
const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }, ys = { style: { color: "red", "padding-left": "5px" } }, Ss = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px", "margin-top": "-2px" } }, Os = ["src"], ws = /* @__PURE__ */ Q({
|
|
3315
|
+
const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-title" }, ys = { style: { color: "red", "padding-left": "5px" } }, Ss = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px", "margin-top": "-2px" } }, Os = ["src"], ws = /* @__PURE__ */ Q({
|
|
3303
3316
|
name: "SagVxeDialog",
|
|
3304
3317
|
inheritAttrs: !1,
|
|
3305
3318
|
__name: "AntdModal",
|
|
3306
3319
|
emits: ["cancel", "submit"],
|
|
3307
3320
|
setup(e, { emit: n }) {
|
|
3308
|
-
Ul((
|
|
3309
|
-
"
|
|
3310
|
-
"
|
|
3311
|
-
|
|
3321
|
+
Ul((D) => ({
|
|
3322
|
+
"761c0466": f.value,
|
|
3323
|
+
"1ad0f4ad": v.value,
|
|
3324
|
+
dfcbabf2: 500 + g()
|
|
3312
3325
|
}));
|
|
3313
3326
|
const t = ee({
|
|
3314
3327
|
instanceId: "",
|
|
3328
|
+
instanceValue: "",
|
|
3315
3329
|
visible: !1,
|
|
3316
3330
|
// 默认值
|
|
3317
3331
|
maximize: !1,
|
|
@@ -3326,23 +3340,23 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3326
3340
|
mountainTop: A.targetModal.mountainTop
|
|
3327
3341
|
});
|
|
3328
3342
|
Object.assign(t, Xa());
|
|
3329
|
-
const a =
|
|
3343
|
+
const a = M(!0);
|
|
3330
3344
|
window.__sagUbmpPcModalMinimizedStack || (window.__sagUbmpPcModalMinimizedStack = ee({
|
|
3331
3345
|
count: [],
|
|
3332
3346
|
positions: {}
|
|
3333
3347
|
}));
|
|
3334
|
-
const l = window.__sagUbmpPcModalMinimizedStack, r =
|
|
3348
|
+
const l = window.__sagUbmpPcModalMinimizedStack, r = M("sag-vxe-page-dialog-default " + (t.mountainTop ? "" : "sag-dialog-wrap")), o = (D) => t.mountainTop ? document.body : A.targetModal.getDialogContainer != null && typeof A.targetModal.getDialogContainer == "function" ? A.targetModal.getDialogContainer(D) : D.parentNode, i = Ct(() => t.componentVue && typeof t.componentUrl == "string" ? hs(t.componentUrl) : t.componentUrl), u = t.componentVue ? "" : t.componentUrl, c = t.mountainTop ? "calc(100vh - 88px)" : "calc(100vh - 188px)", p = n, d = () => {
|
|
3335
3349
|
a.value = !0, p("cancel");
|
|
3336
|
-
}, y = (
|
|
3337
|
-
p("submit",
|
|
3338
|
-
}, _ =
|
|
3350
|
+
}, y = (D) => {
|
|
3351
|
+
p("submit", D);
|
|
3352
|
+
}, _ = M(null), C = M(!1), m = ee({
|
|
3339
3353
|
width: t.maximize ? "100%" : t.width,
|
|
3340
3354
|
height: t.maximize ? c : t.height,
|
|
3341
3355
|
minIcon: "vxe-icon-minus",
|
|
3342
3356
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3343
|
-
}), f = Ct(() => "20px"), v = Ct(() => (l.positions[t.instanceId] ?? 0) *
|
|
3344
|
-
const
|
|
3345
|
-
if (!s(
|
|
3357
|
+
}), f = Ct(() => "20px"), v = Ct(() => (l.positions[t.instanceId] ?? 0) * 100 + 20 + "px"), g = () => l.positions[t.instanceId] ?? 0, S = () => {
|
|
3358
|
+
const D = l.positions[t.instanceId];
|
|
3359
|
+
if (!s(D) || D === -1) {
|
|
3346
3360
|
let E = -1;
|
|
3347
3361
|
for (let F = 0; F <= 4; F++)
|
|
3348
3362
|
if (!l.count.includes(F)) {
|
|
@@ -3356,40 +3370,40 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3356
3370
|
l.positions[t.instanceId] = E;
|
|
3357
3371
|
}
|
|
3358
3372
|
C.value = !0, a.value = !1, t.visible = !1;
|
|
3359
|
-
},
|
|
3373
|
+
}, h = () => {
|
|
3360
3374
|
C.value = !1, t.visible = !0;
|
|
3361
|
-
const
|
|
3362
|
-
let E = l.count.findIndex((F) => F ===
|
|
3375
|
+
const D = l.positions;
|
|
3376
|
+
let E = l.count.findIndex((F) => F === D[t.instanceId]);
|
|
3363
3377
|
E !== -1 && l.count.splice(E, 1), delete l.positions[t.instanceId];
|
|
3364
3378
|
}, b = () => {
|
|
3365
|
-
let
|
|
3366
|
-
|
|
3367
|
-
},
|
|
3368
|
-
console.log("iframe加载完毕",
|
|
3369
|
-
console.log("iframe关闭触发",
|
|
3379
|
+
let D = !_.value.fullScreen;
|
|
3380
|
+
D ? (m.maxZoomIcon = "vxe-icon-maximize", m.width = "100%", m.height = c) : (m.maxZoomIcon = "vxe-icon-square", m.width = t.width, m.height = t.height), _.value.fullScreen = D;
|
|
3381
|
+
}, N = "vue_iframe_" + Math.round(Math.random() * 1e8), U = M(), L = () => {
|
|
3382
|
+
console.log("iframe加载完毕", N), U.value.contentWindow.addEventListener("closeSagDialogModal", function(D) {
|
|
3383
|
+
console.log("iframe关闭触发", D), d();
|
|
3370
3384
|
});
|
|
3371
3385
|
};
|
|
3372
3386
|
return ie(() => {
|
|
3373
3387
|
le("SagVxeDialog弹出参数", t), t.maximize && (_.value.fullScreen = !0);
|
|
3374
3388
|
}), Fl(() => {
|
|
3375
3389
|
if (l && l.count.length > 0) {
|
|
3376
|
-
let
|
|
3377
|
-
|
|
3390
|
+
let D = l.count.findIndex((E) => E === l.positions[t.instanceId]);
|
|
3391
|
+
D !== -1 && l.count.splice(D, 1);
|
|
3378
3392
|
}
|
|
3379
|
-
}), (
|
|
3393
|
+
}), (D, E) => {
|
|
3380
3394
|
const F = Y("vxe-button"), re = Y("a-modal");
|
|
3381
3395
|
return x(), W("div", vs, [
|
|
3382
3396
|
Vt(K("div", {
|
|
3383
|
-
class: "sag-modal-minimized-bar",
|
|
3384
|
-
onClick:
|
|
3397
|
+
class: "sag-ubmp-pc-modal-minimized-bar",
|
|
3398
|
+
onClick: h
|
|
3385
3399
|
}, [
|
|
3386
|
-
K("span", bs, ae(t.title), 1),
|
|
3387
|
-
|
|
3400
|
+
K("span", bs, ae(t.title + (O(s)(t.instanceValue) ? "【" + t.instanceValue + "】" : "")), 1),
|
|
3401
|
+
q(F, {
|
|
3388
3402
|
mode: "text",
|
|
3389
3403
|
icon: "vxe-icon-square",
|
|
3390
3404
|
size: "small"
|
|
3391
3405
|
}, {
|
|
3392
|
-
default:
|
|
3406
|
+
default: I(() => E[0] || (E[0] = [
|
|
3393
3407
|
ce("还原")
|
|
3394
3408
|
])),
|
|
3395
3409
|
_: 1
|
|
@@ -3397,7 +3411,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3397
3411
|
], 512), [
|
|
3398
3412
|
[$t, C.value]
|
|
3399
3413
|
]),
|
|
3400
|
-
|
|
3414
|
+
q(re, {
|
|
3401
3415
|
ref_key: "gridModal",
|
|
3402
3416
|
ref: _,
|
|
3403
3417
|
open: t.visible,
|
|
@@ -3417,17 +3431,17 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3417
3431
|
destroyOnClose: a.value,
|
|
3418
3432
|
centered: ""
|
|
3419
3433
|
}, {
|
|
3420
|
-
title:
|
|
3434
|
+
title: I(() => [
|
|
3421
3435
|
K("span", ys, ae(t.title), 1),
|
|
3422
3436
|
K("span", Ss, [
|
|
3423
|
-
|
|
3437
|
+
O(s)(t.instanceId) && t.componentVue ? (x(), z(F, {
|
|
3424
3438
|
key: 0,
|
|
3425
3439
|
mode: "text",
|
|
3426
3440
|
icon: m.minIcon,
|
|
3427
|
-
onClick:
|
|
3441
|
+
onClick: S,
|
|
3428
3442
|
title: "缩小"
|
|
3429
|
-
}, null, 8, ["icon"])) :
|
|
3430
|
-
|
|
3443
|
+
}, null, 8, ["icon"])) : j("", !0),
|
|
3444
|
+
q(F, {
|
|
3431
3445
|
mode: "text",
|
|
3432
3446
|
icon: m.maxZoomIcon,
|
|
3433
3447
|
onClick: b,
|
|
@@ -3435,18 +3449,18 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3435
3449
|
}, null, 8, ["icon"])
|
|
3436
3450
|
])
|
|
3437
3451
|
]),
|
|
3438
|
-
default:
|
|
3452
|
+
default: I(() => [
|
|
3439
3453
|
t.componentVue ? (x(), z(Hl(i.value), te({ key: 0 }, t.componentParams, {
|
|
3440
3454
|
onCancel: d,
|
|
3441
3455
|
onSubmit: y
|
|
3442
|
-
}), null, 16)) :
|
|
3443
|
-
t.componentVue ?
|
|
3456
|
+
}), null, 16)) : j("", !0),
|
|
3457
|
+
t.componentVue ? j("", !0) : (x(), W("iframe", {
|
|
3444
3458
|
key: 1,
|
|
3445
3459
|
ref_key: "iframeRef",
|
|
3446
3460
|
ref: U,
|
|
3447
|
-
id:
|
|
3448
|
-
src:
|
|
3449
|
-
onLoad:
|
|
3461
|
+
id: N,
|
|
3462
|
+
src: O(u),
|
|
3463
|
+
onLoad: L,
|
|
3450
3464
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
3451
3465
|
}, null, 40, Os))
|
|
3452
3466
|
]),
|
|
@@ -3455,7 +3469,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3455
3469
|
]);
|
|
3456
3470
|
};
|
|
3457
3471
|
}
|
|
3458
|
-
}), za = /* @__PURE__ */ Cl(ws, [["__scopeId", "data-v-
|
|
3472
|
+
}), za = /* @__PURE__ */ Cl(ws, [["__scopeId", "data-v-fe6ed740"]]), _s = /* @__PURE__ */ Q({
|
|
3459
3473
|
__name: "VxeInput",
|
|
3460
3474
|
props: {
|
|
3461
3475
|
value: { type: String, default: null },
|
|
@@ -3468,7 +3482,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3468
3482
|
},
|
|
3469
3483
|
emits: ["update:value"],
|
|
3470
3484
|
setup(e, { expose: n, emit: t }) {
|
|
3471
|
-
const a = e, l = he(be), r =
|
|
3485
|
+
const a = e, l = he(be), r = M(null), o = R(a.placeholder, "请输入" + a.title), i = t, u = (y) => {
|
|
3472
3486
|
p(y.value);
|
|
3473
3487
|
}, c = () => r.value, p = (y) => {
|
|
3474
3488
|
r.value = y, i("update:value", r.value);
|
|
@@ -3485,9 +3499,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3485
3499
|
const C = Y("vxe-input", !0);
|
|
3486
3500
|
return x(), z(C, {
|
|
3487
3501
|
"model-value": r.value,
|
|
3488
|
-
placeholder:
|
|
3502
|
+
placeholder: O(o),
|
|
3489
3503
|
disabled: a.disabled,
|
|
3490
|
-
size:
|
|
3504
|
+
size: O(l)?.size,
|
|
3491
3505
|
onChange: u,
|
|
3492
3506
|
style: { width: "100%" }
|
|
3493
3507
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
@@ -3513,7 +3527,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3513
3527
|
},
|
|
3514
3528
|
emits: ["update:value"],
|
|
3515
3529
|
setup(e, { expose: n, emit: t }) {
|
|
3516
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", u = "请输入" + a.title + "搜索", c =
|
|
3530
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", u = "请输入" + a.title + "搜索", c = M(""), p = M(""), d = M([]), y = t, _ = ee({
|
|
3517
3531
|
multiple: a.multiple,
|
|
3518
3532
|
filterable: a.filterable,
|
|
3519
3533
|
clearable: a.clearable,
|
|
@@ -3521,37 +3535,37 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3521
3535
|
transfer: a.transfer,
|
|
3522
3536
|
placeholder: a.filterable ? u : "",
|
|
3523
3537
|
options: [],
|
|
3524
|
-
filterMethod({ searchValue:
|
|
3525
|
-
return b.label.toLowerCase().indexOf(Te(
|
|
3538
|
+
filterMethod({ searchValue: h, option: b }) {
|
|
3539
|
+
return b.label.toLowerCase().indexOf(Te(h).toLowerCase()) >= 0;
|
|
3526
3540
|
}
|
|
3527
3541
|
}), C = async () => {
|
|
3528
|
-
let
|
|
3529
|
-
return !
|
|
3530
|
-
}, m = ({ value:
|
|
3531
|
-
y("update:value",
|
|
3532
|
-
}, f = () => p.value, v = () => c.value,
|
|
3533
|
-
c.value =
|
|
3534
|
-
let b = d.value.filter((
|
|
3542
|
+
let h = a.request.requestUrl;
|
|
3543
|
+
return !h && o && (h = i), h ? (h = ne(r, h), await On(o, h, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3544
|
+
}, m = ({ value: h }) => {
|
|
3545
|
+
y("update:value", h);
|
|
3546
|
+
}, f = () => p.value, v = () => c.value, g = (h) => {
|
|
3547
|
+
c.value = h, y("update:value", c.value);
|
|
3548
|
+
let b = d.value.filter((N) => N.value === c.value);
|
|
3535
3549
|
b.length === 1 && (p.value = b[0].label);
|
|
3536
3550
|
};
|
|
3537
3551
|
return n({
|
|
3538
3552
|
getName: f,
|
|
3539
3553
|
getValue: v,
|
|
3540
|
-
setValue:
|
|
3554
|
+
setValue: g,
|
|
3541
3555
|
resetValue: () => {
|
|
3542
|
-
|
|
3556
|
+
g(a.defaultValue);
|
|
3543
3557
|
}
|
|
3544
3558
|
}), ie(() => {
|
|
3545
|
-
C().then((
|
|
3546
|
-
!a.multiple && a.selectAll && (
|
|
3559
|
+
C().then((h) => {
|
|
3560
|
+
!a.multiple && a.selectAll && (h = [{ label: "--全部--", value: "" }].concat(h)), d.value = h, _.options = h;
|
|
3547
3561
|
});
|
|
3548
|
-
}), (
|
|
3549
|
-
const
|
|
3550
|
-
return x(), z(
|
|
3562
|
+
}), (h, b) => {
|
|
3563
|
+
const N = Y("vxe-select", !0);
|
|
3564
|
+
return x(), z(N, te({
|
|
3551
3565
|
modelValue: c.value,
|
|
3552
3566
|
"onUpdate:modelValue": b[0] || (b[0] = (U) => c.value = U)
|
|
3553
3567
|
}, _, {
|
|
3554
|
-
size:
|
|
3568
|
+
size: O(l)?.size,
|
|
3555
3569
|
onChange: m,
|
|
3556
3570
|
style: { width: "100%" }
|
|
3557
3571
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3576,7 +3590,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3576
3590
|
},
|
|
3577
3591
|
emits: ["update:value"],
|
|
3578
3592
|
setup(e, { expose: n, emit: t }) {
|
|
3579
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i =
|
|
3593
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = M(""), u = M(""), c = M([]), p = t, d = ee({
|
|
3580
3594
|
clearable: !0,
|
|
3581
3595
|
filterable: !0,
|
|
3582
3596
|
disabled: a.disabled,
|
|
@@ -3586,29 +3600,29 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3586
3600
|
options: [],
|
|
3587
3601
|
remoteConfig: {
|
|
3588
3602
|
autoLoad: !1,
|
|
3589
|
-
async queryMethod({ searchValue:
|
|
3590
|
-
const
|
|
3591
|
-
d.options =
|
|
3603
|
+
async queryMethod({ searchValue: g }) {
|
|
3604
|
+
const S = await y(g);
|
|
3605
|
+
d.options = S, c.value = S;
|
|
3592
3606
|
}
|
|
3593
3607
|
}
|
|
3594
|
-
}), y = async (
|
|
3595
|
-
if (c.value = [],
|
|
3596
|
-
const
|
|
3597
|
-
searchValue: Te(
|
|
3608
|
+
}), y = async (g) => {
|
|
3609
|
+
if (c.value = [], g) {
|
|
3610
|
+
const S = {
|
|
3611
|
+
searchValue: Te(g)
|
|
3598
3612
|
};
|
|
3599
3613
|
return await Re(ne(r, a.requestUrl), {
|
|
3600
3614
|
...a.requestParams,
|
|
3601
|
-
...
|
|
3615
|
+
...S
|
|
3602
3616
|
});
|
|
3603
3617
|
} else
|
|
3604
3618
|
return [];
|
|
3605
|
-
}, _ = ({ value:
|
|
3606
|
-
p("update:value",
|
|
3607
|
-
}, C = () => u.value, m = () => i.value, f = (
|
|
3608
|
-
i.value =
|
|
3609
|
-
let
|
|
3610
|
-
|
|
3611
|
-
c.value =
|
|
3619
|
+
}, _ = ({ value: g }) => {
|
|
3620
|
+
p("update:value", g);
|
|
3621
|
+
}, C = () => u.value, m = () => i.value, f = (g) => {
|
|
3622
|
+
i.value = g;
|
|
3623
|
+
let S = c.value.filter((h) => h.value === i.value);
|
|
3624
|
+
S.length === 1 ? u.value = S[0].label : y(g).then((h) => {
|
|
3625
|
+
c.value = h;
|
|
3612
3626
|
}), p("update:value", i.value);
|
|
3613
3627
|
};
|
|
3614
3628
|
return n({
|
|
@@ -3618,13 +3632,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3618
3632
|
resetValue: () => {
|
|
3619
3633
|
f(a.defaultValue);
|
|
3620
3634
|
}
|
|
3621
|
-
}), (
|
|
3622
|
-
const
|
|
3623
|
-
return x(), z(
|
|
3635
|
+
}), (g, S) => {
|
|
3636
|
+
const h = Y("vxe-select");
|
|
3637
|
+
return x(), z(h, te({
|
|
3624
3638
|
modelValue: i.value,
|
|
3625
|
-
"onUpdate:modelValue":
|
|
3639
|
+
"onUpdate:modelValue": S[0] || (S[0] = (b) => i.value = b)
|
|
3626
3640
|
}, d, {
|
|
3627
|
-
size:
|
|
3641
|
+
size: O(l)?.size,
|
|
3628
3642
|
onChange: _,
|
|
3629
3643
|
style: { width: "100%" }
|
|
3630
3644
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3649,22 +3663,22 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3649
3663
|
},
|
|
3650
3664
|
emits: ["update:value"],
|
|
3651
3665
|
setup(e, { expose: n, emit: t }) {
|
|
3652
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i =
|
|
3666
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = M(""), u = M(""), c = M([]), p = t, d = ee({
|
|
3653
3667
|
filterable: !0,
|
|
3654
3668
|
clearable: !0,
|
|
3655
3669
|
disabled: a.disabled,
|
|
3656
3670
|
transfer: a.transfer,
|
|
3657
3671
|
placeholder: o,
|
|
3658
3672
|
options: [],
|
|
3659
|
-
filterMethod({ searchValue:
|
|
3660
|
-
return
|
|
3673
|
+
filterMethod({ searchValue: g, option: S }) {
|
|
3674
|
+
return S.label.toLowerCase().indexOf(Te(g).toLowerCase()) >= 0;
|
|
3661
3675
|
}
|
|
3662
|
-
}), y = async () => await Re(ne(r, a.requestUrl), a.requestParams), _ = ({ value:
|
|
3663
|
-
p("update:value",
|
|
3664
|
-
}, C = () => u.value, m = () => i.value, f = (
|
|
3665
|
-
i.value =
|
|
3666
|
-
let
|
|
3667
|
-
|
|
3676
|
+
}), y = async () => await Re(ne(r, a.requestUrl), a.requestParams), _ = ({ value: g }) => {
|
|
3677
|
+
p("update:value", g);
|
|
3678
|
+
}, C = () => u.value, m = () => i.value, f = (g) => {
|
|
3679
|
+
i.value = g, p("update:value", i.value);
|
|
3680
|
+
let S = c.value.filter((h) => h.value === i.value);
|
|
3681
|
+
S.length === 1 && (u.value = S[0].label);
|
|
3668
3682
|
};
|
|
3669
3683
|
return n({
|
|
3670
3684
|
getName: C,
|
|
@@ -3674,16 +3688,16 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3674
3688
|
f(a.defaultValue);
|
|
3675
3689
|
}
|
|
3676
3690
|
}), ie(() => {
|
|
3677
|
-
y().then((
|
|
3678
|
-
c.value =
|
|
3691
|
+
y().then((g) => {
|
|
3692
|
+
c.value = g, d.options = g;
|
|
3679
3693
|
});
|
|
3680
|
-
}), (
|
|
3681
|
-
const
|
|
3682
|
-
return x(), z(
|
|
3694
|
+
}), (g, S) => {
|
|
3695
|
+
const h = Y("vxe-select");
|
|
3696
|
+
return x(), z(h, te({
|
|
3683
3697
|
modelValue: i.value,
|
|
3684
|
-
"onUpdate:modelValue":
|
|
3698
|
+
"onUpdate:modelValue": S[0] || (S[0] = (b) => i.value = b)
|
|
3685
3699
|
}, d, {
|
|
3686
|
-
size:
|
|
3700
|
+
size: O(l)?.size,
|
|
3687
3701
|
onChange: _,
|
|
3688
3702
|
style: { width: "100%" }
|
|
3689
3703
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3796,7 +3810,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3796
3810
|
onClick: o[0] || (o[0] = (u) => a()),
|
|
3797
3811
|
title: "导出"
|
|
3798
3812
|
}, {
|
|
3799
|
-
default:
|
|
3813
|
+
default: I(() => o[1] || (o[1] = [
|
|
3800
3814
|
K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
3801
3815
|
])),
|
|
3802
3816
|
_: 1
|
|
@@ -3821,136 +3835,135 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3821
3835
|
height: A.targetModal.height,
|
|
3822
3836
|
maskClosable: A.targetModal.maskClosable,
|
|
3823
3837
|
mountainTop: A.targetModal.mountainTop
|
|
3824
|
-
}), l =
|
|
3825
|
-
application:
|
|
3826
|
-
ctxPath:
|
|
3827
|
-
size:
|
|
3828
|
-
requestDictUrl:
|
|
3829
|
-
templateType:
|
|
3830
|
-
templateTitle:
|
|
3831
|
-
onMountedModule:
|
|
3838
|
+
}), l = M([]), r = Xa(), o = ee({
|
|
3839
|
+
application: V.toString(r.application, A.application),
|
|
3840
|
+
ctxPath: V.toString(r.ctxPath, A.ctxPath),
|
|
3841
|
+
size: V.toString(r.size, A.size),
|
|
3842
|
+
requestDictUrl: V.toString(r.requestDictUrl, A.requestDictUrl),
|
|
3843
|
+
templateType: V.toString(r.templateType, null),
|
|
3844
|
+
templateTitle: V.toString(r.templateTitle, null),
|
|
3845
|
+
onMountedModule: V.toString(r.onMountedModule, null),
|
|
3832
3846
|
//页面加载时触发
|
|
3833
|
-
onLoadBeforeModule:
|
|
3847
|
+
onLoadBeforeModule: V.toString(r.onLoadBeforeModule, null),
|
|
3834
3848
|
//查询前触发
|
|
3835
|
-
onLoadAfterModule:
|
|
3849
|
+
onLoadAfterModule: V.toString(r.onLoadAfterModule, null),
|
|
3836
3850
|
//查询后触发
|
|
3837
|
-
onButtonClickModule:
|
|
3851
|
+
onButtonClickModule: V.toString(r.onButtonClickModule, null)
|
|
3838
3852
|
//按钮自定义事件
|
|
3839
3853
|
}), i = ee({
|
|
3840
|
-
requestData:
|
|
3841
|
-
requestDownload:
|
|
3842
|
-
requestImport:
|
|
3854
|
+
requestData: V.toString(r?.templateRequest?.requestData, null),
|
|
3855
|
+
requestDownload: V.toString(r?.templateRequest?.requestDownload, null),
|
|
3856
|
+
requestImport: V.toString(r?.templateRequest?.requestImport, null)
|
|
3843
3857
|
}), u = ee({
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
maskClosable: T.toString(r?.targetModal?.maskClosable, A.targetModal.maskClosable)
|
|
3858
|
+
title: V.toString(r?.targetModal?.title, A.targetModal.title),
|
|
3859
|
+
width: V.toString(r?.targetModal?.width, A.targetModal.width),
|
|
3860
|
+
height: V.toString(r?.targetModal?.height, A.targetModal.height),
|
|
3861
|
+
mountainTop: V.toString(r?.targetModal?.mountainTop, A.targetModal.mountainTop),
|
|
3862
|
+
componentVue: V.toString(r?.targetModal?.componentVue, A.targetModal.componentVue),
|
|
3863
|
+
maskClosable: V.toString(r?.targetModal?.maskClosable, A.targetModal.maskClosable)
|
|
3851
3864
|
}), c = ee({
|
|
3852
|
-
vxeSlot:
|
|
3853
|
-
storage:
|
|
3865
|
+
vxeSlot: V.toString(r?.templateForm?.vxeSlot, A.templateForm.vxeSlot),
|
|
3866
|
+
storage: V.toString(r?.templateForm?.storage, A.templateForm.storage),
|
|
3854
3867
|
formProps: {
|
|
3855
|
-
vertical:
|
|
3868
|
+
vertical: V.toString(
|
|
3856
3869
|
r?.templateForm?.formProps?.vertical,
|
|
3857
3870
|
A.templateForm.formProps.vertical
|
|
3858
3871
|
),
|
|
3859
|
-
titleColon:
|
|
3872
|
+
titleColon: V.toString(
|
|
3860
3873
|
r?.templateForm?.formProps?.titleColon,
|
|
3861
3874
|
A.templateForm.formProps.titleColon
|
|
3862
3875
|
),
|
|
3863
|
-
titleWidth:
|
|
3876
|
+
titleWidth: V.toString(
|
|
3864
3877
|
r?.templateForm?.formProps?.titleWidth,
|
|
3865
3878
|
A.templateForm.formProps.titleWidth
|
|
3866
3879
|
),
|
|
3867
|
-
titleAlign:
|
|
3880
|
+
titleAlign: V.toString(
|
|
3868
3881
|
r?.templateForm?.formProps?.titleAlign,
|
|
3869
3882
|
A.templateForm.formProps.titleAlign
|
|
3870
3883
|
),
|
|
3871
|
-
buttonAlign:
|
|
3884
|
+
buttonAlign: V.toString(
|
|
3872
3885
|
r?.templateForm?.formProps?.buttonAlign,
|
|
3873
3886
|
A.templateForm.formProps.buttonAlign
|
|
3874
3887
|
),
|
|
3875
|
-
foldingLength:
|
|
3888
|
+
foldingLength: V.toString(
|
|
3876
3889
|
r?.templateForm?.formProps?.foldingLength,
|
|
3877
3890
|
A.templateForm.formProps.foldingLength
|
|
3878
3891
|
)
|
|
3879
3892
|
},
|
|
3880
|
-
formItems:
|
|
3881
|
-
formRules:
|
|
3893
|
+
formItems: V.toString(r?.templateForm?.formItems, []),
|
|
3894
|
+
formRules: V.toString(r?.templateForm?.formRules, {})
|
|
3882
3895
|
}), p = ee({
|
|
3883
|
-
rowType:
|
|
3884
|
-
editConfig:
|
|
3885
|
-
showFooter:
|
|
3886
|
-
showButtonLink:
|
|
3887
|
-
showOverflow:
|
|
3896
|
+
rowType: V.toString(r?.templateTable?.rowType, null),
|
|
3897
|
+
editConfig: V.toString(r?.templateTable?.editConfig, !1),
|
|
3898
|
+
showFooter: V.toString(r?.templateTable?.showFooter, !1),
|
|
3899
|
+
showButtonLink: V.toString(r?.templateTable?.showButtonLink, A.templateTable.showButtonLink),
|
|
3900
|
+
showOverflow: V.toString(r?.templateTable?.showOverflow, A.templateTable.showOverflow),
|
|
3888
3901
|
tableColumns: r?.templateTable?.tableColumns,
|
|
3889
|
-
tableColumnsExtra:
|
|
3890
|
-
clientScale:
|
|
3891
|
-
minHeight:
|
|
3892
|
-
maxHeight:
|
|
3893
|
-
pageSizes:
|
|
3894
|
-
layouts:
|
|
3895
|
-
footerMethod:
|
|
3902
|
+
tableColumnsExtra: V.toString(r?.templateTable?.tableColumnsExtra, null),
|
|
3903
|
+
clientScale: V.toString(r?.templateTable?.clientScale, A.templateTable.clientScale),
|
|
3904
|
+
minHeight: V.toString(r?.templateTable?.minHeight, A.templateTable.minHeight),
|
|
3905
|
+
maxHeight: V.toString(r?.templateTable?.maxHeight, A.templateTable.maxHeight),
|
|
3906
|
+
pageSizes: V.toString(r?.templateTable?.pageSizes, []),
|
|
3907
|
+
layouts: V.toString(r?.templateTable?.layouts, null),
|
|
3908
|
+
footerMethod: V.toString(r?.templateTable?.footerMethod, null)
|
|
3896
3909
|
}), d = ee({
|
|
3897
|
-
mergeKey:
|
|
3898
|
-
seqKey:
|
|
3899
|
-
isMerge:
|
|
3900
|
-
isFooter:
|
|
3901
|
-
fields:
|
|
3902
|
-
backgroundColor:
|
|
3910
|
+
mergeKey: V.toString(r?.templateTable?.tableColumnMerge?.mergeKey, null),
|
|
3911
|
+
seqKey: V.toString(r?.templateTable?.tableColumnMerge?.seqKey, null),
|
|
3912
|
+
isMerge: V.toString(r?.templateTable?.tableColumnMerge?.isMerge, !1),
|
|
3913
|
+
isFooter: V.toString(r?.templateTable?.tableColumnMerge?.isFooter, !1),
|
|
3914
|
+
fields: V.toString(r?.templateTable?.tableColumnMerge?.fields, []),
|
|
3915
|
+
backgroundColor: V.toString(
|
|
3903
3916
|
r?.templateTable?.tableColumnMerge?.backgroundColor,
|
|
3904
3917
|
A?.templateTable?.tableColumnMerge?.backgroundColor
|
|
3905
3918
|
)
|
|
3906
3919
|
}), y = ee({
|
|
3907
|
-
formButtons:
|
|
3908
|
-
tableButtons:
|
|
3909
|
-
tableMoreButtons:
|
|
3920
|
+
formButtons: V.toString(r?.templateTable?.tableButtons?.formButtons, []),
|
|
3921
|
+
tableButtons: V.toString(r?.templateTable?.tableButtons?.tableButtons, []),
|
|
3922
|
+
tableMoreButtons: V.toString(r?.templateTable?.tableButtons?.tableMoreButtons, [])
|
|
3910
3923
|
}), _ = ee({
|
|
3911
|
-
className:
|
|
3924
|
+
className: V.toString(
|
|
3912
3925
|
r?.templateTable?.toolbarConfig?.className,
|
|
3913
3926
|
A.templateTable.toolbarConfig.className
|
|
3914
3927
|
),
|
|
3915
|
-
perfect:
|
|
3928
|
+
perfect: V.toString(
|
|
3916
3929
|
r?.templateTable?.toolbarConfig?.perfect,
|
|
3917
3930
|
A.templateTable.toolbarConfig.perfect
|
|
3918
3931
|
),
|
|
3919
|
-
print:
|
|
3932
|
+
print: V.toString(
|
|
3920
3933
|
r?.templateTable?.toolbarConfig?.print,
|
|
3921
3934
|
A.templateTable.toolbarConfig.print
|
|
3922
3935
|
),
|
|
3923
|
-
refresh:
|
|
3936
|
+
refresh: V.toString(
|
|
3924
3937
|
r?.templateTable?.toolbarConfig?.refresh,
|
|
3925
3938
|
A.templateTable.toolbarConfig.refresh
|
|
3926
3939
|
),
|
|
3927
|
-
custom:
|
|
3940
|
+
custom: V.toString(
|
|
3928
3941
|
r?.templateTable?.toolbarConfig?.custom,
|
|
3929
3942
|
A.templateTable.toolbarConfig.custom
|
|
3930
3943
|
),
|
|
3931
|
-
zoom:
|
|
3944
|
+
zoom: V.toString(r?.templateTable?.toolbarConfig?.zoom, A.templateTable.toolbarConfig.zoom),
|
|
3932
3945
|
slots: {
|
|
3933
|
-
buttons:
|
|
3946
|
+
buttons: V.toString(
|
|
3934
3947
|
r?.templateTable?.toolbarConfig?.slots?.buttons,
|
|
3935
3948
|
A.templateTable.toolbarConfig.slots.buttons
|
|
3936
3949
|
),
|
|
3937
|
-
tools:
|
|
3950
|
+
tools: V.toString(
|
|
3938
3951
|
r?.templateTable?.toolbarConfig?.slots?.tools,
|
|
3939
3952
|
A.templateTable.toolbarConfig.slots.tools
|
|
3940
3953
|
)
|
|
3941
3954
|
}
|
|
3942
3955
|
}), C = ee({
|
|
3943
|
-
pageSizePlacement:
|
|
3956
|
+
pageSizePlacement: V.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3944
3957
|
}), m = A.application + "_" + o.templateType, f = "sag_vxe_page_div_panel_" + m;
|
|
3945
|
-
qn(be, o), qn(Xi, () => document.getElementById(
|
|
3946
|
-
const v = Object.keys(Ie()),
|
|
3947
|
-
we.value[
|
|
3958
|
+
qn(be, o), qn(Xi, () => document.getElementById(O(f)));
|
|
3959
|
+
const v = Object.keys(Ie()), g = v.filter((P) => P.startsWith("items_")), S = v.filter((P) => P.startsWith("cols_")), h = v.filter((P) => P.startsWith("tools_")), b = M(), N = M(!0), U = M(!1), L = M("none"), D = M(["1"]), E = M(0), F = qe(o.size), re = M(), G = ee({}), we = M([]), Je = M(), Ot = M([]), Ze = t, ye = (P, w) => {
|
|
3960
|
+
we.value[w] = P;
|
|
3948
3961
|
}, De = async () => {
|
|
3949
3962
|
const P = b.value;
|
|
3950
3963
|
if (!U.value && P) {
|
|
3951
|
-
const
|
|
3952
|
-
|
|
3953
|
-
(!
|
|
3964
|
+
const w = Je.value;
|
|
3965
|
+
w ? w.validate().then((B) => {
|
|
3966
|
+
(!B || B.length === 0) && P.commitProxy("query");
|
|
3954
3967
|
}) : P.commitProxy("query");
|
|
3955
3968
|
}
|
|
3956
3969
|
}, Cn = () => {
|
|
@@ -4001,36 +4014,36 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4001
4014
|
ajax: {
|
|
4002
4015
|
// 接收 Promise 对象
|
|
4003
4016
|
query: (P) => {
|
|
4004
|
-
const { page:
|
|
4017
|
+
const { page: w, sorts: B, filters: H, form: X } = P, fe = jt(w, B, H, X, G, we);
|
|
4005
4018
|
if (c.storage) {
|
|
4006
|
-
const Pe = Vr(
|
|
4019
|
+
const Pe = Vr(B, H, X, G);
|
|
4007
4020
|
Dn(o.application, o.templateType, Pe);
|
|
4008
4021
|
}
|
|
4009
4022
|
return xn(fe, i.requestData, !1);
|
|
4010
4023
|
},
|
|
4011
4024
|
querySuccess: (P) => {
|
|
4012
|
-
const { page:
|
|
4025
|
+
const { page: w, sort: B, sorts: H, filters: X, form: fe, response: Pe } = P;
|
|
4013
4026
|
d?.isMerge && (Z.mergeCells = kn(Pe?.rows)), Ze("search", Pe, { $gridRef: b.value, gridOptions: Z });
|
|
4014
4027
|
}
|
|
4015
4028
|
}
|
|
4016
4029
|
},
|
|
4017
4030
|
footerMethod: p.footerMethod
|
|
4018
|
-
}), wt =
|
|
4031
|
+
}), wt = M(!1), Pl = () => {
|
|
4019
4032
|
pt("确定要强制显示数据内容吗?", () => {
|
|
4020
4033
|
d?.isMerge ? Z.mergeCells = null : Z.spanMethod = Nn({}), Z.virtualYConfig = { enabled: !0 }, wt.value = !0, De();
|
|
4021
4034
|
});
|
|
4022
|
-
}, xn = async (P,
|
|
4023
|
-
if (
|
|
4035
|
+
}, xn = async (P, w, B) => {
|
|
4036
|
+
if (L.value = "none", wt.value)
|
|
4024
4037
|
return wt.value = !1, Z.params.data;
|
|
4025
4038
|
{
|
|
4026
4039
|
U.value = !0, o.onLoadBeforeModule && o.onLoadBeforeModule({
|
|
4027
4040
|
$gridRef: b.value,
|
|
4028
4041
|
gridOptions: Z,
|
|
4029
4042
|
queryParams: P,
|
|
4030
|
-
exportFlag:
|
|
4043
|
+
exportFlag: B
|
|
4031
4044
|
});
|
|
4032
4045
|
const H = await We(
|
|
4033
|
-
ne(o.ctxPath,
|
|
4046
|
+
ne(o.ctxPath, w),
|
|
4034
4047
|
P
|
|
4035
4048
|
).finally(() => {
|
|
4036
4049
|
setTimeout(() => {
|
|
@@ -4039,38 +4052,38 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4039
4052
|
});
|
|
4040
4053
|
if (H.success) {
|
|
4041
4054
|
if (Z.params.dataSum = H.data?.dataSum, d?.mergeKey) {
|
|
4042
|
-
if (!
|
|
4043
|
-
return
|
|
4055
|
+
if (!B && H.data.rows.length > 800)
|
|
4056
|
+
return L.value = "more", Z.params.data = Pn(H.data), null;
|
|
4044
4057
|
d?.isMerge || (Z.virtualYConfig = { enabled: !1 });
|
|
4045
4058
|
}
|
|
4046
4059
|
return Pn(H.data);
|
|
4047
4060
|
} else
|
|
4048
|
-
return
|
|
4061
|
+
return L.value = "error", null;
|
|
4049
4062
|
}
|
|
4050
4063
|
}, kl = (P) => {
|
|
4051
4064
|
if (p.rowType === "checkbox") {
|
|
4052
4065
|
le("checkboxChange", P);
|
|
4053
|
-
const
|
|
4054
|
-
if (
|
|
4055
|
-
const
|
|
4056
|
-
if (
|
|
4057
|
-
const H =
|
|
4066
|
+
const w = d?.mergeKey;
|
|
4067
|
+
if (w) {
|
|
4068
|
+
const B = b.value;
|
|
4069
|
+
if (B) {
|
|
4070
|
+
const H = B.getTableData();
|
|
4058
4071
|
for (let X in H.tableData)
|
|
4059
|
-
P.row[
|
|
4072
|
+
P.row[w] === H.tableData[X][w] && B.setCheckboxRow(H.tableData[X], P.checked);
|
|
4060
4073
|
}
|
|
4061
4074
|
}
|
|
4062
4075
|
}
|
|
4063
4076
|
}, Al = (P) => {
|
|
4064
4077
|
if (p.rowType === "radio") {
|
|
4065
4078
|
le("radioChange", P);
|
|
4066
|
-
const
|
|
4067
|
-
if (
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
const H =
|
|
4079
|
+
const w = d?.mergeKey;
|
|
4080
|
+
if (w) {
|
|
4081
|
+
const B = b.value;
|
|
4082
|
+
if (B) {
|
|
4083
|
+
const H = B.getTableData();
|
|
4071
4084
|
for (let X in H.tableData)
|
|
4072
|
-
if (P.row[
|
|
4073
|
-
|
|
4085
|
+
if (P.row[w] === H.tableData[X][w]) {
|
|
4086
|
+
B.setRadioRow(H.tableData[X]);
|
|
4074
4087
|
break;
|
|
4075
4088
|
}
|
|
4076
4089
|
}
|
|
@@ -4081,11 +4094,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4081
4094
|
}, Ml = () => {
|
|
4082
4095
|
Z.params.currentRow = null;
|
|
4083
4096
|
}, Pn = (P) => {
|
|
4084
|
-
const
|
|
4085
|
-
if (
|
|
4097
|
+
const w = d?.seqKey, B = d?.mergeKey;
|
|
4098
|
+
if (B && w) {
|
|
4086
4099
|
let H = [""], X = 0 + P.pageSize * (P.pageNo - 1);
|
|
4087
4100
|
for (let fe in P.rows)
|
|
4088
|
-
H.includes(P.rows[fe][
|
|
4101
|
+
H.includes(P.rows[fe][B]) || (X++, H.push(P.rows[fe][B])), P.rows[fe][w] = X;
|
|
4089
4102
|
}
|
|
4090
4103
|
return o.onLoadAfterModule ? o.onLoadAfterModule({
|
|
4091
4104
|
$gridRef: b.value,
|
|
@@ -4093,18 +4106,18 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4093
4106
|
data: P
|
|
4094
4107
|
}) : P;
|
|
4095
4108
|
}, kn = (P) => {
|
|
4096
|
-
const
|
|
4097
|
-
if (
|
|
4098
|
-
const
|
|
4109
|
+
const w = d?.mergeKey;
|
|
4110
|
+
if (w && d.isMerge) {
|
|
4111
|
+
const B = b.value;
|
|
4099
4112
|
let H = [], X = {}, fe = {};
|
|
4100
4113
|
for (let _e = 0; _e < P.length; _e++) {
|
|
4101
4114
|
const se = P[_e], Be = P[_e - 1];
|
|
4102
4115
|
let ke = P[_e + 1];
|
|
4103
|
-
s(fe[se[
|
|
4116
|
+
s(fe[se[w]]) || (fe[se[w]] = _e + 0), s(X[se[w]]) ? (s(ke) && ke[w] === se[w] || s(Be) && Be[w] === se[w]) && (X[se[w]] = X[se[w]] + 1) : X[se[w]] = 1;
|
|
4104
4117
|
}
|
|
4105
4118
|
let Pe = d?.fields;
|
|
4106
4119
|
for (let _e in Pe) {
|
|
4107
|
-
let se =
|
|
4120
|
+
let se = B?.getColumnByField(Pe[_e]), Be = B?.getColumnIndex(se);
|
|
4108
4121
|
for (let ke in fe)
|
|
4109
4122
|
H = H.concat([
|
|
4110
4123
|
{ row: fe[ke], col: Be, rowspan: X[ke], colspan: 1 }
|
|
@@ -4115,23 +4128,23 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4115
4128
|
return null;
|
|
4116
4129
|
}, Vl = ee({
|
|
4117
4130
|
cellMenu(P) {
|
|
4118
|
-
const
|
|
4119
|
-
|
|
4131
|
+
const w = b.value;
|
|
4132
|
+
w && w.setCurrentRow(P.row);
|
|
4120
4133
|
},
|
|
4121
4134
|
menuClick(P) {
|
|
4122
4135
|
Qe(P.menu, P.row);
|
|
4123
4136
|
}
|
|
4124
4137
|
}), An = ({ row: P }) => {
|
|
4125
|
-
const
|
|
4126
|
-
if (P?.[
|
|
4138
|
+
const w = d?.mergeKey;
|
|
4139
|
+
if (P?.[w] === Z.params.currentRow?.[w])
|
|
4127
4140
|
return {
|
|
4128
4141
|
backgroundColor: d?.backgroundColor
|
|
4129
4142
|
};
|
|
4130
4143
|
}, $l = () => {
|
|
4131
4144
|
const P = document.getElementById(f);
|
|
4132
4145
|
if (P) {
|
|
4133
|
-
const
|
|
4134
|
-
|
|
4146
|
+
const w = P.getElementsByTagName("form");
|
|
4147
|
+
w && w.length > 0 && (w[0].submit = () => (a.visible = !1, De(), !1));
|
|
4135
4148
|
}
|
|
4136
4149
|
}, { clickFormButton: zl, clickTableButton: Qe, clickHerf: Tn } = Li({
|
|
4137
4150
|
gridRef: b,
|
|
@@ -4155,24 +4168,24 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4155
4168
|
pageRequest: i
|
|
4156
4169
|
}), ql = async () => {
|
|
4157
4170
|
if (s(c.formItems)) {
|
|
4158
|
-
const
|
|
4159
|
-
Object.keys(
|
|
4160
|
-
|
|
4171
|
+
const w = c.formItems, B = c.formProps.foldingLength;
|
|
4172
|
+
Object.keys(w).forEach((H, X) => {
|
|
4173
|
+
w[X].folding = !(X < B);
|
|
4161
4174
|
}), Ot.value = [
|
|
4162
|
-
{ span: 24, align: "right", children:
|
|
4175
|
+
{ span: 24, align: "right", children: w },
|
|
4163
4176
|
{
|
|
4164
4177
|
span: 24,
|
|
4165
4178
|
align: c.formProps.buttonAlign,
|
|
4166
|
-
collapseNode:
|
|
4179
|
+
collapseNode: w.length > B,
|
|
4167
4180
|
slots: { default: "toolbar_tools" }
|
|
4168
4181
|
}
|
|
4169
4182
|
];
|
|
4170
4183
|
}
|
|
4171
4184
|
if (document.documentElement.clientHeight < 680) {
|
|
4172
|
-
const
|
|
4173
|
-
Object.keys(
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4185
|
+
const w = p.tableColumns;
|
|
4186
|
+
Object.keys(w).forEach((H) => w[H].fixed = !1);
|
|
4187
|
+
const B = p.tableColumnsExtra;
|
|
4188
|
+
B && Object.keys(B).forEach((H) => B[H].fixed = !1);
|
|
4176
4189
|
}
|
|
4177
4190
|
Vn(o.application, !0), p.rowType === "checkbox" ? Z.checkboxConfig = { highlight: !0 } : p.rowType === "radio" ? Z.radioConfig = { highlight: !0 } : Z.rowConfig.isCurrent = !0;
|
|
4178
4191
|
const P = p.pageSizes;
|
|
@@ -4180,20 +4193,20 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4180
4193
|
trigger: "click",
|
|
4181
4194
|
mode: "row",
|
|
4182
4195
|
showStatus: !0
|
|
4183
|
-
}), s(d) && s(d.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = d.mergeKey, d.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod = Nn(d))),
|
|
4184
|
-
}, Dl = (P,
|
|
4196
|
+
}), s(d) && s(d.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = d.mergeKey, d.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod = Nn(d))), N.value = !1;
|
|
4197
|
+
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((B) => Ee(w[B.buttonName]) && Ee(B.auth)) : !0 : !1;
|
|
4185
4198
|
ie(async () => {
|
|
4186
4199
|
if (le("加载页面模板", o), await ql(), c.storage) {
|
|
4187
4200
|
const P = nr(o.application, o.templateType);
|
|
4188
4201
|
if (s(P)) {
|
|
4189
|
-
let
|
|
4202
|
+
let w = [];
|
|
4190
4203
|
Me.arrayEach(c.formItems, (H, X) => {
|
|
4191
|
-
|
|
4204
|
+
w.push(H.field);
|
|
4192
4205
|
});
|
|
4193
|
-
let
|
|
4206
|
+
let B = [];
|
|
4194
4207
|
Me.objectEach(P, (H, X) => {
|
|
4195
|
-
|
|
4196
|
-
}), Me.includeArrays(
|
|
4208
|
+
B.push(X);
|
|
4209
|
+
}), Me.includeArrays(w, B) ? jn(P) : await Ke(c.formItems, we, G);
|
|
4197
4210
|
} else
|
|
4198
4211
|
await Ke(c.formItems, we, G);
|
|
4199
4212
|
} else
|
|
@@ -4214,7 +4227,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4214
4227
|
});
|
|
4215
4228
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4216
4229
|
p.clientScale === 1 && ve(
|
|
4217
|
-
[
|
|
4230
|
+
[D, E],
|
|
4218
4231
|
() => {
|
|
4219
4232
|
$n();
|
|
4220
4233
|
},
|
|
@@ -4222,45 +4235,48 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4222
4235
|
);
|
|
4223
4236
|
const Nl = (P) => {
|
|
4224
4237
|
if (s(P.instanceId)) {
|
|
4225
|
-
const
|
|
4226
|
-
|
|
4227
|
-
const
|
|
4228
|
-
if (s(
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4238
|
+
const w = {};
|
|
4239
|
+
w.instanceId = Ne + P.instanceId, w.title = R(P.title, A.targetModal.title), w.width = R(P.width, A.targetModal.width), w.height = R(P.height, A.targetModal.height), w.maximize = R(P.maximize, !1), w.autoLoad = R(P.autoLoad, !1), w.componentVue = R(P.componentVue, A.targetModal.componentVue), w.componentParams = P.componentParams, w.componentUrl = P.componentUrl, w.visible = !0;
|
|
4240
|
+
const B = l.value.findIndex((H) => H.instanceId === w.instanceId);
|
|
4241
|
+
if (s(B) && B >= 0)
|
|
4242
|
+
if (l.value[B].visible) {
|
|
4243
|
+
Oe("已经打开该数据弹窗信息");
|
|
4244
|
+
return;
|
|
4245
|
+
} else
|
|
4246
|
+
l.value[B] = w;
|
|
4247
|
+
else
|
|
4248
|
+
l.value.push(w);
|
|
4233
4249
|
} else
|
|
4234
|
-
a.title =
|
|
4250
|
+
a.title = R(P.title, A.targetModal.title), a.width = R(P.width, A.targetModal.width), a.height = R(P.height, A.targetModal.height), a.maximize = R(P.maximize, !1), a.autoLoad = R(P.autoLoad, !1), a.componentVue = R(P.componentVue, A.targetModal.componentVue), a.componentParams = P.componentParams, a.componentUrl = P.componentUrl, a.visible = !0;
|
|
4235
4251
|
}, _t = (P) => {
|
|
4236
4252
|
if (s(P)) {
|
|
4237
|
-
const
|
|
4238
|
-
|
|
4253
|
+
const w = l.value.findIndex((B) => B.instanceId === P);
|
|
4254
|
+
w !== -1 && (l.value[w].visible = !1, l.value[w].autoLoad && De());
|
|
4239
4255
|
} else
|
|
4240
4256
|
a.visible = !1, a.autoLoad && De();
|
|
4241
|
-
}, zn = (P,
|
|
4242
|
-
if (s(
|
|
4243
|
-
const
|
|
4244
|
-
if (
|
|
4245
|
-
l.value[
|
|
4246
|
-
const H = l.value[
|
|
4257
|
+
}, zn = (P, w) => {
|
|
4258
|
+
if (s(w)) {
|
|
4259
|
+
const B = l.value.findIndex((H) => H.instanceId === w);
|
|
4260
|
+
if (B !== -1) {
|
|
4261
|
+
l.value[B].visible = !1;
|
|
4262
|
+
const H = l.value[B].componentParams;
|
|
4247
4263
|
Ze("submit", { data: P, params: H, button: H[A.buttonKeyName] });
|
|
4248
4264
|
}
|
|
4249
4265
|
} else {
|
|
4250
4266
|
a.visible = !1;
|
|
4251
|
-
const
|
|
4252
|
-
Ze("submit", { data: P, params:
|
|
4267
|
+
const B = a.componentParams;
|
|
4268
|
+
Ze("submit", { data: P, params: B, button: B[A.buttonKeyName] });
|
|
4253
4269
|
}
|
|
4254
4270
|
}, Bl = async () => await Sl(b, Z), Il = async () => {
|
|
4255
4271
|
const P = b.value;
|
|
4256
4272
|
if (P) {
|
|
4257
|
-
const { pager:
|
|
4258
|
-
return jt(
|
|
4273
|
+
const { pager: w, filter: B, form: H, sort: X } = P.getProxyInfo();
|
|
4274
|
+
return jt(w, X, B, H, G, we);
|
|
4259
4275
|
} else
|
|
4260
4276
|
return null;
|
|
4261
4277
|
}, jn = (P) => {
|
|
4262
|
-
for (let
|
|
4263
|
-
we.value[
|
|
4278
|
+
for (let w in P)
|
|
4279
|
+
we.value[w] ? we.value[w].setValue(P[w]) : G[w] = P[w];
|
|
4264
4280
|
};
|
|
4265
4281
|
return n({
|
|
4266
4282
|
doSearch: De,
|
|
@@ -4274,21 +4290,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4274
4290
|
setExportColumns: (P) => {
|
|
4275
4291
|
Z.params.exportColumns = P;
|
|
4276
4292
|
}
|
|
4277
|
-
}), (P,
|
|
4278
|
-
const
|
|
4293
|
+
}), (P, w) => {
|
|
4294
|
+
const B = Y("a-button"), H = Y("a-space"), X = Y("vxe-form"), fe = Y("a-collapse-panel"), Pe = Y("a-collapse"), _e = Y("a-menu-item"), se = Y("a-menu"), Be = Y("a-dropdown"), ke = Y("vxe-button"), Ll = Y("vxe-grid");
|
|
4279
4295
|
return Vt((x(), W("div", {
|
|
4280
4296
|
id: f,
|
|
4281
4297
|
class: "sag-vxe-page-wrapper"
|
|
4282
4298
|
}, [
|
|
4283
4299
|
Vt(K("div", As, [
|
|
4284
|
-
|
|
4285
|
-
activeKey:
|
|
4286
|
-
"onUpdate:activeKey":
|
|
4300
|
+
q(Pe, {
|
|
4301
|
+
activeKey: D.value,
|
|
4302
|
+
"onUpdate:activeKey": w[2] || (w[2] = (k) => D.value = k),
|
|
4287
4303
|
expandIconPosition: "end",
|
|
4288
4304
|
accordion: ""
|
|
4289
4305
|
}, {
|
|
4290
|
-
default:
|
|
4291
|
-
|
|
4306
|
+
default: I(() => [
|
|
4307
|
+
q(fe, {
|
|
4292
4308
|
ref_key: "formCardRef",
|
|
4293
4309
|
ref: re,
|
|
4294
4310
|
key: "1",
|
|
@@ -4296,8 +4312,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4296
4312
|
align: "left",
|
|
4297
4313
|
forceRender: ""
|
|
4298
4314
|
}, {
|
|
4299
|
-
default:
|
|
4300
|
-
|
|
4315
|
+
default: I(() => [
|
|
4316
|
+
q(X, {
|
|
4301
4317
|
ref_key: "formRef",
|
|
4302
4318
|
ref: Je,
|
|
4303
4319
|
data: G,
|
|
@@ -4311,25 +4327,25 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4311
4327
|
onCollapse: xl,
|
|
4312
4328
|
class: "sag-vxe-page-form"
|
|
4313
4329
|
}, xe({
|
|
4314
|
-
toolbar_tools:
|
|
4315
|
-
|
|
4316
|
-
default:
|
|
4317
|
-
|
|
4330
|
+
toolbar_tools: I(() => [
|
|
4331
|
+
q(H, null, {
|
|
4332
|
+
default: I(() => [
|
|
4333
|
+
q(B, {
|
|
4318
4334
|
type: "primary",
|
|
4319
|
-
size:
|
|
4320
|
-
onClick:
|
|
4335
|
+
size: O(F),
|
|
4336
|
+
onClick: w[0] || (w[0] = (k) => De()),
|
|
4321
4337
|
disabled: U.value
|
|
4322
4338
|
}, {
|
|
4323
|
-
default:
|
|
4339
|
+
default: I(() => w[5] || (w[5] = [
|
|
4324
4340
|
ce(" 查询 ")
|
|
4325
4341
|
])),
|
|
4326
4342
|
_: 1
|
|
4327
4343
|
}, 8, ["size", "disabled"]),
|
|
4328
|
-
|
|
4329
|
-
size:
|
|
4330
|
-
onClick:
|
|
4344
|
+
q(B, {
|
|
4345
|
+
size: O(F),
|
|
4346
|
+
onClick: w[1] || (w[1] = (k) => Cn())
|
|
4331
4347
|
}, {
|
|
4332
|
-
default:
|
|
4348
|
+
default: I(() => w[6] || (w[6] = [
|
|
4333
4349
|
ce("重置")
|
|
4334
4350
|
])),
|
|
4335
4351
|
_: 1
|
|
@@ -4338,29 +4354,29 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4338
4354
|
_: 1
|
|
4339
4355
|
})
|
|
4340
4356
|
]),
|
|
4341
|
-
dateRange:
|
|
4342
|
-
|
|
4357
|
+
dateRange: I((k) => [
|
|
4358
|
+
q(ns, te({
|
|
4343
4359
|
value: G[k.field],
|
|
4344
4360
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4345
4361
|
ref: ($) => ye($, k.field)
|
|
4346
4362
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4347
4363
|
]),
|
|
4348
|
-
date:
|
|
4349
|
-
|
|
4364
|
+
date: I((k) => [
|
|
4365
|
+
q(as, te({
|
|
4350
4366
|
value: G[k.field],
|
|
4351
4367
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4352
4368
|
ref: ($) => ye($, k.field)
|
|
4353
4369
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4354
4370
|
]),
|
|
4355
|
-
input:
|
|
4371
|
+
input: I((k) => [
|
|
4356
4372
|
c.vxeSlot ? (x(), z(_s, te({
|
|
4357
4373
|
key: 0,
|
|
4358
4374
|
value: G[k.field],
|
|
4359
4375
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4360
4376
|
ref: ($) => ye($, k.field),
|
|
4361
4377
|
title: k?.item?.title
|
|
4362
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) :
|
|
4363
|
-
c.vxeSlot ?
|
|
4378
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4379
|
+
c.vxeSlot ? j("", !0) : (x(), z(ls, te({
|
|
4364
4380
|
key: 1,
|
|
4365
4381
|
value: G[k.field],
|
|
4366
4382
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
@@ -4368,29 +4384,29 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4368
4384
|
title: k?.item?.title
|
|
4369
4385
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4370
4386
|
]),
|
|
4371
|
-
select:
|
|
4387
|
+
select: I((k) => [
|
|
4372
4388
|
c.vxeSlot ? (x(), z(Cs, te({
|
|
4373
4389
|
key: 0,
|
|
4374
4390
|
value: G[k.field],
|
|
4375
4391
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4376
4392
|
ref: ($) => ye($, k.field)
|
|
4377
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) :
|
|
4378
|
-
c.vxeSlot ?
|
|
4393
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : j("", !0),
|
|
4394
|
+
c.vxeSlot ? j("", !0) : (x(), z(os, te({
|
|
4379
4395
|
key: 1,
|
|
4380
4396
|
value: G[k.field],
|
|
4381
4397
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4382
4398
|
ref: ($) => ye($, k.field)
|
|
4383
4399
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4384
4400
|
]),
|
|
4385
|
-
selectList:
|
|
4401
|
+
selectList: I((k) => [
|
|
4386
4402
|
c.vxeSlot ? (x(), z(Ps, te({
|
|
4387
4403
|
key: 0,
|
|
4388
4404
|
value: G[k.field],
|
|
4389
4405
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4390
4406
|
ref: ($) => ye($, k.field),
|
|
4391
4407
|
title: k?.item?.title
|
|
4392
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) :
|
|
4393
|
-
c.vxeSlot ?
|
|
4408
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4409
|
+
c.vxeSlot ? j("", !0) : (x(), z(cs, te({
|
|
4394
4410
|
key: 1,
|
|
4395
4411
|
value: G[k.field],
|
|
4396
4412
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
@@ -4398,15 +4414,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4398
4414
|
title: k?.item?.title
|
|
4399
4415
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4400
4416
|
]),
|
|
4401
|
-
selectPull:
|
|
4417
|
+
selectPull: I((k) => [
|
|
4402
4418
|
c.vxeSlot ? (x(), z(xs, te({
|
|
4403
4419
|
key: 0,
|
|
4404
4420
|
value: G[k.field],
|
|
4405
4421
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4406
4422
|
ref: ($) => ye($, k.field),
|
|
4407
4423
|
title: k?.item?.title
|
|
4408
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) :
|
|
4409
|
-
c.vxeSlot ?
|
|
4424
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4425
|
+
c.vxeSlot ? j("", !0) : (x(), z(ss, te({
|
|
4410
4426
|
key: 1,
|
|
4411
4427
|
value: G[k.field],
|
|
4412
4428
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
@@ -4414,8 +4430,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4414
4430
|
title: k?.item?.title
|
|
4415
4431
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4416
4432
|
]),
|
|
4417
|
-
cascader:
|
|
4418
|
-
|
|
4433
|
+
cascader: I((k) => [
|
|
4434
|
+
q(fs, te({
|
|
4419
4435
|
value: G[k.field],
|
|
4420
4436
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4421
4437
|
title: k?.item?.title,
|
|
@@ -4424,9 +4440,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4424
4440
|
]),
|
|
4425
4441
|
_: 2
|
|
4426
4442
|
}, [
|
|
4427
|
-
Ce(
|
|
4443
|
+
Ce(O(g), (k) => ({
|
|
4428
4444
|
name: k,
|
|
4429
|
-
fn:
|
|
4445
|
+
fn: I(($) => [
|
|
4430
4446
|
oe(P.$slots, k, te($, {
|
|
4431
4447
|
value: G[$.field]
|
|
4432
4448
|
}))
|
|
@@ -4440,10 +4456,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4440
4456
|
_: 3
|
|
4441
4457
|
}, 8, ["activeKey"])
|
|
4442
4458
|
], 512), [
|
|
4443
|
-
[$t,
|
|
4459
|
+
[$t, O(s)(c.formItems)]
|
|
4444
4460
|
]),
|
|
4445
4461
|
K("div", Ts, [
|
|
4446
|
-
|
|
4462
|
+
q(Ll, te({
|
|
4447
4463
|
ref_key: "gridRef",
|
|
4448
4464
|
ref: b
|
|
4449
4465
|
}, Z, Yl(Vl), {
|
|
@@ -4456,44 +4472,44 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4456
4472
|
onCheckboxChange: kl,
|
|
4457
4473
|
onRadioChange: Al
|
|
4458
4474
|
}), xe({
|
|
4459
|
-
operate:
|
|
4475
|
+
operate: I(({ row: k, column: $ }) => [
|
|
4460
4476
|
K("a", {
|
|
4461
4477
|
href: "javascript:void(0)",
|
|
4462
4478
|
class: "sag-vxe-page-link",
|
|
4463
|
-
onClick: (ue) =>
|
|
4479
|
+
onClick: (ue) => O(Tn)(k, $)
|
|
4464
4480
|
}, ae(k[$.property]), 9, Ms)
|
|
4465
4481
|
]),
|
|
4466
|
-
vertical:
|
|
4482
|
+
vertical: I(({ row: k, column: $ }) => [
|
|
4467
4483
|
(x(!0), W(de, null, Ce($.params.childColumns, (ue) => (x(), W("div", {
|
|
4468
4484
|
key: ue.value
|
|
4469
4485
|
}, [
|
|
4470
4486
|
K("span", Vs, ae(ue.title) + ":", 1),
|
|
4471
|
-
|
|
4487
|
+
w[7] || (w[7] = ce(" ")),
|
|
4472
4488
|
ue.formatter === "operate" ? (x(), W("span", $s, [
|
|
4473
4489
|
K("a", {
|
|
4474
4490
|
href: "javascript:void(0)",
|
|
4475
4491
|
class: "sag-vxe-page-link",
|
|
4476
|
-
onClick: (eu) =>
|
|
4492
|
+
onClick: (eu) => O(Tn)(k, ue)
|
|
4477
4493
|
}, ae(k[ue.field]), 9, zs)
|
|
4478
|
-
])) : (x(), W("span", js, ae(
|
|
4494
|
+
])) : (x(), W("span", js, ae(O(V).stringFormat(k[ue.field], ue.formatter)), 1))
|
|
4479
4495
|
]))), 128))
|
|
4480
4496
|
]),
|
|
4481
|
-
button:
|
|
4497
|
+
button: I(({ row: k }) => [
|
|
4482
4498
|
K("div", qs, [
|
|
4483
4499
|
(x(!0), W(de, null, Ce(y.tableButtons, ($) => (x(), W(de, { key: $ }, [
|
|
4484
|
-
|
|
4485
|
-
p.showButtonLink ?
|
|
4500
|
+
O(V).toString(k[$.buttonName], !0) && O(Ee)($.auth) ? (x(), W("span", Ds, [
|
|
4501
|
+
p.showButtonLink ? j("", !0) : (x(), z(B, {
|
|
4486
4502
|
key: 0,
|
|
4487
4503
|
size: "small",
|
|
4488
|
-
type:
|
|
4489
|
-
onClick: (ue) =>
|
|
4504
|
+
type: O(V).toString($.status, "primary"),
|
|
4505
|
+
onClick: (ue) => O(Qe)($, k)
|
|
4490
4506
|
}, {
|
|
4491
|
-
icon:
|
|
4492
|
-
|
|
4507
|
+
icon: I(() => [
|
|
4508
|
+
q(ze, {
|
|
4493
4509
|
icon: $.icon
|
|
4494
4510
|
}, null, 8, ["icon"])
|
|
4495
4511
|
]),
|
|
4496
|
-
default:
|
|
4512
|
+
default: I(() => [
|
|
4497
4513
|
ce(" " + ae($.buttonName), 1)
|
|
4498
4514
|
]),
|
|
4499
4515
|
_: 2
|
|
@@ -4502,161 +4518,161 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4502
4518
|
key: 1,
|
|
4503
4519
|
href: "javascript:void(0)",
|
|
4504
4520
|
class: "sag-vxe-page-button-link",
|
|
4505
|
-
onClick: (ue) =>
|
|
4521
|
+
onClick: (ue) => O(Qe)($, k)
|
|
4506
4522
|
}, [
|
|
4507
|
-
|
|
4523
|
+
q(ze, {
|
|
4508
4524
|
icon: $.icon
|
|
4509
4525
|
}, null, 8, ["icon"]),
|
|
4510
4526
|
ce(" " + ae($.buttonName), 1)
|
|
4511
|
-
], 8, Ns)) :
|
|
4512
|
-
|
|
4513
|
-
])) :
|
|
4527
|
+
], 8, Ns)) : j("", !0),
|
|
4528
|
+
w[8] || (w[8] = ce(" "))
|
|
4529
|
+
])) : j("", !0)
|
|
4514
4530
|
], 64))), 128))
|
|
4515
4531
|
]),
|
|
4516
4532
|
Dl(y.tableMoreButtons, k) ? (x(), z(Be, {
|
|
4517
4533
|
key: 0,
|
|
4518
4534
|
destroyPopupOnHide: !0
|
|
4519
4535
|
}, {
|
|
4520
|
-
overlay:
|
|
4521
|
-
|
|
4522
|
-
default:
|
|
4536
|
+
overlay: I(() => [
|
|
4537
|
+
q(se, null, {
|
|
4538
|
+
default: I(() => [
|
|
4523
4539
|
(x(!0), W(de, null, Ce(y.tableMoreButtons, ($) => (x(), W(de, { key: $ }, [
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
default:
|
|
4540
|
+
O(Ee)($.auth) ? (x(), W(de, { key: 0 }, [
|
|
4541
|
+
O(V).toString(k[$.buttonName], !0) ? (x(), z(_e, { key: 0 }, {
|
|
4542
|
+
default: I(() => [
|
|
4527
4543
|
K("a", {
|
|
4528
|
-
onClick: (ue) =>
|
|
4544
|
+
onClick: (ue) => O(Qe)($, k)
|
|
4529
4545
|
}, [
|
|
4530
|
-
|
|
4546
|
+
q(ze, {
|
|
4531
4547
|
icon: $.icon
|
|
4532
4548
|
}, null, 8, ["icon"]),
|
|
4533
4549
|
ce(" " + ae($.buttonName), 1)
|
|
4534
4550
|
], 8, Bs)
|
|
4535
4551
|
]),
|
|
4536
4552
|
_: 2
|
|
4537
|
-
}, 1024)) :
|
|
4538
|
-
], 64)) :
|
|
4553
|
+
}, 1024)) : j("", !0)
|
|
4554
|
+
], 64)) : j("", !0)
|
|
4539
4555
|
], 64))), 128))
|
|
4540
4556
|
]),
|
|
4541
4557
|
_: 2
|
|
4542
4558
|
}, 1024)
|
|
4543
4559
|
]),
|
|
4544
|
-
default:
|
|
4545
|
-
|
|
4560
|
+
default: I(() => [
|
|
4561
|
+
q(B, {
|
|
4546
4562
|
type: p.showButtonLink ? "link" : "default",
|
|
4547
4563
|
size: "small"
|
|
4548
4564
|
}, {
|
|
4549
|
-
default:
|
|
4550
|
-
|
|
4551
|
-
|
|
4565
|
+
default: I(() => [
|
|
4566
|
+
w[9] || (w[9] = ce(" 更多操作 ")),
|
|
4567
|
+
q(O(yt))
|
|
4552
4568
|
]),
|
|
4553
4569
|
_: 1
|
|
4554
4570
|
}, 8, ["type"])
|
|
4555
4571
|
]),
|
|
4556
4572
|
_: 2
|
|
4557
|
-
}, 1024)) :
|
|
4573
|
+
}, 1024)) : j("", !0)
|
|
4558
4574
|
]),
|
|
4559
|
-
toolbar_buttons:
|
|
4560
|
-
|
|
4575
|
+
toolbar_buttons: I(() => [
|
|
4576
|
+
O(s)(y.formButtons) && y.formButtons.length > 0 ? (x(), z(H, {
|
|
4561
4577
|
key: 0,
|
|
4562
4578
|
wrap: !0,
|
|
4563
4579
|
style: { "margin-bottom": "0px" }
|
|
4564
4580
|
}, {
|
|
4565
|
-
default:
|
|
4581
|
+
default: I(() => [
|
|
4566
4582
|
(x(!0), W(de, null, Ce(y.formButtons, (k) => (x(), W("span", { key: k }, [
|
|
4567
|
-
|
|
4583
|
+
O(Ee)(k.auth) ? (x(), z(B, {
|
|
4568
4584
|
key: 0,
|
|
4569
4585
|
round: "",
|
|
4570
|
-
size:
|
|
4571
|
-
type:
|
|
4572
|
-
onClick: ($) =>
|
|
4586
|
+
size: O(F),
|
|
4587
|
+
type: O(V).toString(k.status, "primary"),
|
|
4588
|
+
onClick: ($) => O(zl)(k)
|
|
4573
4589
|
}, {
|
|
4574
|
-
icon:
|
|
4575
|
-
|
|
4590
|
+
icon: I(() => [
|
|
4591
|
+
q(ze, {
|
|
4576
4592
|
icon: k.icon
|
|
4577
4593
|
}, null, 8, ["icon"])
|
|
4578
4594
|
]),
|
|
4579
|
-
default:
|
|
4595
|
+
default: I(() => [
|
|
4580
4596
|
ce(" " + ae(k.buttonName), 1)
|
|
4581
4597
|
]),
|
|
4582
4598
|
_: 2
|
|
4583
|
-
}, 1032, ["size", "type", "onClick"])) :
|
|
4599
|
+
}, 1032, ["size", "type", "onClick"])) : j("", !0)
|
|
4584
4600
|
]))), 128))
|
|
4585
4601
|
]),
|
|
4586
4602
|
_: 1
|
|
4587
|
-
})) :
|
|
4588
|
-
(x(!0), W(de, null, Ce(
|
|
4603
|
+
})) : j("", !0),
|
|
4604
|
+
(x(!0), W(de, null, Ce(O(h), (k) => oe(P.$slots, k)), 256))
|
|
4589
4605
|
]),
|
|
4590
|
-
toolbar_tools:
|
|
4591
|
-
|
|
4606
|
+
toolbar_tools: I(() => [
|
|
4607
|
+
O(s)(p.tableColumnsExtra) ? (x(), z(ke, {
|
|
4592
4608
|
key: 0,
|
|
4593
4609
|
size: "small",
|
|
4594
4610
|
circle: !0,
|
|
4595
|
-
onClick:
|
|
4611
|
+
onClick: w[3] || (w[3] = (k) => O(Vn)(o.application, !1)),
|
|
4596
4612
|
title: "切换"
|
|
4597
4613
|
}, {
|
|
4598
|
-
default:
|
|
4614
|
+
default: I(() => w[10] || (w[10] = [
|
|
4599
4615
|
K("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1)
|
|
4600
4616
|
])),
|
|
4601
4617
|
_: 1
|
|
4602
|
-
})) :
|
|
4603
|
-
|
|
4618
|
+
})) : j("", !0),
|
|
4619
|
+
O(s)(i.requestDownload) && typeof i.requestDownload == "object" ? (x(), z(ks, {
|
|
4604
4620
|
key: 1,
|
|
4605
|
-
onExport:
|
|
4606
|
-
}, null, 8, ["onExport"])) :
|
|
4621
|
+
onExport: O(Mn)
|
|
4622
|
+
}, null, 8, ["onExport"])) : j("", !0),
|
|
4607
4623
|
i.requestDownload === !0 || typeof i.requestDownload == "string" ? (x(), z(ke, {
|
|
4608
4624
|
key: 2,
|
|
4609
4625
|
size: "small",
|
|
4610
4626
|
circle: !0,
|
|
4611
|
-
onClick:
|
|
4627
|
+
onClick: O(Mn),
|
|
4612
4628
|
title: "下载"
|
|
4613
4629
|
}, {
|
|
4614
|
-
default:
|
|
4630
|
+
default: I(() => w[11] || (w[11] = [
|
|
4615
4631
|
K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
4616
4632
|
])),
|
|
4617
4633
|
_: 1
|
|
4618
|
-
}, 8, ["onClick"])) :
|
|
4634
|
+
}, 8, ["onClick"])) : j("", !0),
|
|
4619
4635
|
i.requestImport ? (x(), z(ke, {
|
|
4620
4636
|
key: 3,
|
|
4621
4637
|
size: "small",
|
|
4622
4638
|
circle: !0,
|
|
4623
|
-
onClick:
|
|
4639
|
+
onClick: w[4] || (w[4] = (k) => O(jl)()),
|
|
4624
4640
|
title: "导入"
|
|
4625
4641
|
}, {
|
|
4626
|
-
default:
|
|
4642
|
+
default: I(() => w[12] || (w[12] = [
|
|
4627
4643
|
K("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1)
|
|
4628
4644
|
])),
|
|
4629
4645
|
_: 1
|
|
4630
|
-
})) :
|
|
4646
|
+
})) : j("", !0)
|
|
4631
4647
|
]),
|
|
4632
|
-
empty:
|
|
4633
|
-
|
|
4648
|
+
empty: I(() => [
|
|
4649
|
+
L.value === "error" ? (x(), W("h2", Is, w[13] || (w[13] = [
|
|
4634
4650
|
K("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4635
|
-
]))) :
|
|
4636
|
-
|
|
4651
|
+
]))) : j("", !0),
|
|
4652
|
+
L.value === "none" ? (x(), W("h2", Ls, w[14] || (w[14] = [
|
|
4637
4653
|
K("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4638
|
-
]))) :
|
|
4639
|
-
|
|
4640
|
-
|
|
4654
|
+
]))) : j("", !0),
|
|
4655
|
+
L.value === "more" ? (x(), W("h2", Rs, [
|
|
4656
|
+
w[16] || (w[16] = K("span", { style: { "font-size": "16px" } }, [
|
|
4641
4657
|
ce(" 您好,因数据量过大,强制显示将会 "),
|
|
4642
4658
|
K("span", { style: { color: "red" } }, "取消合并列"),
|
|
4643
4659
|
ce(" 模式,建议您调整查询条件后重新查询! ")
|
|
4644
4660
|
], -1)),
|
|
4645
|
-
|
|
4661
|
+
w[17] || (w[17] = K("br", null, null, -1)),
|
|
4646
4662
|
K("a", {
|
|
4647
4663
|
onClick: Pl,
|
|
4648
4664
|
href: "javascript:void(0)",
|
|
4649
4665
|
class: "link"
|
|
4650
|
-
},
|
|
4666
|
+
}, w[15] || (w[15] = [
|
|
4651
4667
|
K("span", { style: { "font-size": "24px", color: "red" } }, "是否强制显示?", -1)
|
|
4652
4668
|
]))
|
|
4653
|
-
])) :
|
|
4669
|
+
])) : j("", !0)
|
|
4654
4670
|
]),
|
|
4655
4671
|
_: 2
|
|
4656
4672
|
}, [
|
|
4657
|
-
Ce(S
|
|
4673
|
+
Ce(O(S), (k) => ({
|
|
4658
4674
|
name: k,
|
|
4659
|
-
fn:
|
|
4675
|
+
fn: I(($) => [
|
|
4660
4676
|
oe(P.$slots, k, Wl(Gl($)))
|
|
4661
4677
|
])
|
|
4662
4678
|
}))
|
|
@@ -4669,14 +4685,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4669
4685
|
}, k, {
|
|
4670
4686
|
onCancel: (ue) => _t(k.instanceId),
|
|
4671
4687
|
onSubmit: (ue) => zn(ue, k.instanceId)
|
|
4672
|
-
}), null, 16, ["onCancel", "onSubmit"])) :
|
|
4688
|
+
}), null, 16, ["onCancel", "onSubmit"])) : j("", !0)
|
|
4673
4689
|
], 64))), 256)),
|
|
4674
4690
|
a.visible ? (x(), z(za, te({ key: 0 }, a, {
|
|
4675
4691
|
onCancel: _t,
|
|
4676
4692
|
onSubmit: zn
|
|
4677
|
-
}), null, 16)) :
|
|
4693
|
+
}), null, 16)) : j("", !0)
|
|
4678
4694
|
], 512)), [
|
|
4679
|
-
[$t, !
|
|
4695
|
+
[$t, !N.value]
|
|
4680
4696
|
]);
|
|
4681
4697
|
};
|
|
4682
4698
|
}
|
|
@@ -4711,22 +4727,22 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4711
4727
|
},
|
|
4712
4728
|
emits: ["update:value", "change"],
|
|
4713
4729
|
setup(e, { expose: n, emit: t }) {
|
|
4714
|
-
|
|
4730
|
+
T.locale("zh-cn"), T.extend(St);
|
|
4715
4731
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD";
|
|
4716
|
-
let o =
|
|
4732
|
+
let o = M();
|
|
4717
4733
|
const i = (C, m) => {
|
|
4718
4734
|
_(m, !0);
|
|
4719
|
-
}, u = () => s(o.value) ?
|
|
4720
|
-
o.value =
|
|
4735
|
+
}, u = () => s(o.value) ? T(o.value).format(r) : null, c = (C) => {
|
|
4736
|
+
o.value = T(C), _();
|
|
4721
4737
|
}, p = (C) => {
|
|
4722
|
-
o.value =
|
|
4723
|
-
}, d = (C) => !!(s(a.max) &&
|
|
4738
|
+
o.value = T().add(C || 0, l), _();
|
|
4739
|
+
}, d = (C) => !!(s(a.max) && T(C).format(r) > a.max || s(a.min) && T(C).format(r) < a.min), y = t, _ = (C, m = !1) => {
|
|
4724
4740
|
s(C) ? (y("update:value", C), m && y("change", C)) : (y("update:value", u()), m && y("change", u()));
|
|
4725
4741
|
};
|
|
4726
4742
|
return ve(
|
|
4727
4743
|
() => a.value,
|
|
4728
4744
|
(C, m) => {
|
|
4729
|
-
o.value = C ?
|
|
4745
|
+
o.value = C ? T(C) : null;
|
|
4730
4746
|
}
|
|
4731
4747
|
), ie(() => {
|
|
4732
4748
|
s(a.value) && c(a.value);
|
|
@@ -4737,16 +4753,16 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4737
4753
|
}), (C, m) => {
|
|
4738
4754
|
const f = Y("a-date-picker");
|
|
4739
4755
|
return x(), z(f, {
|
|
4740
|
-
value:
|
|
4756
|
+
value: O(o),
|
|
4741
4757
|
"onUpdate:value": m[0] || (m[0] = (v) => gt(o) ? o.value = v : o = v),
|
|
4742
4758
|
"show-time": a.showTime,
|
|
4743
4759
|
disabled: a.disabled,
|
|
4744
|
-
locale:
|
|
4745
|
-
format:
|
|
4760
|
+
locale: O(Ge),
|
|
4761
|
+
format: O(r),
|
|
4746
4762
|
disabledDate: d,
|
|
4747
|
-
picker:
|
|
4763
|
+
picker: O(l) === "day" ? "date" : O(l),
|
|
4748
4764
|
style: ge(a.style),
|
|
4749
|
-
getPopupContainer: (v) =>
|
|
4765
|
+
getPopupContainer: (v) => O(Le)(a.mountainTop, e.getPopupContainer, v),
|
|
4750
4766
|
onChange: i
|
|
4751
4767
|
}, null, 8, ["value", "show-time", "disabled", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4752
4768
|
};
|
|
@@ -4774,48 +4790,48 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4774
4790
|
},
|
|
4775
4791
|
emits: ["update:value", "change"],
|
|
4776
4792
|
setup(e, { expose: n, emit: t }) {
|
|
4777
|
-
|
|
4778
|
-
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD", o = t, i =
|
|
4779
|
-
{ label: "当天", value: [
|
|
4780
|
-
{ label: "近7天", value: [
|
|
4781
|
-
{ label: "近两周", value: [
|
|
4782
|
-
{ label: "近一个月", value: [
|
|
4783
|
-
{ label: "近三个月", value: [
|
|
4784
|
-
{ label: "近六个月", value: [
|
|
4785
|
-
{ label: "近一年", value: [
|
|
4786
|
-
{ label: "近三年", value: [
|
|
4793
|
+
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
4794
|
+
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD", o = t, i = M(), u = [
|
|
4795
|
+
{ label: "当天", value: [T().add(0, l)] },
|
|
4796
|
+
{ label: "近7天", value: [T().add(-7, l)] },
|
|
4797
|
+
{ label: "近两周", value: [T().add(-14, l)] },
|
|
4798
|
+
{ label: "近一个月", value: [T().add(-30, l)] },
|
|
4799
|
+
{ label: "近三个月", value: [T().add(-90, l)] },
|
|
4800
|
+
{ label: "近六个月", value: [T().add(-180, l)] },
|
|
4801
|
+
{ label: "近一年", value: [T().add(-365, l)] },
|
|
4802
|
+
{ label: "近三年", value: [T().add(-1095, l)] }
|
|
4787
4803
|
], c = [
|
|
4788
|
-
{ label: "本月", value: [
|
|
4789
|
-
{ label: "近一个月", value: [
|
|
4790
|
-
{ label: "近三个月", value: [
|
|
4791
|
-
{ label: "近六个月", value: [
|
|
4792
|
-
{ label: "近一年", value: [
|
|
4793
|
-
{ label: "近两年", value: [
|
|
4794
|
-
{ label: "近三年", value: [
|
|
4804
|
+
{ label: "本月", value: [T().add(0, l)] },
|
|
4805
|
+
{ label: "近一个月", value: [T().add(-1, l)] },
|
|
4806
|
+
{ label: "近三个月", value: [T().add(-3, l)] },
|
|
4807
|
+
{ label: "近六个月", value: [T().add(-5, l)] },
|
|
4808
|
+
{ label: "近一年", value: [T().add(-12, l)] },
|
|
4809
|
+
{ label: "近两年", value: [T().add(-24, l)] },
|
|
4810
|
+
{ label: "近三年", value: [T().add(-36, l)] }
|
|
4795
4811
|
], p = [
|
|
4796
|
-
{ label: "本年", value: [
|
|
4797
|
-
{ label: "近一年", value: [
|
|
4798
|
-
{ label: "近两年", value: [
|
|
4799
|
-
{ label: "近三年", value: [
|
|
4800
|
-
{ label: "近五年", value: [
|
|
4801
|
-
], d =
|
|
4812
|
+
{ label: "本年", value: [T().add(0, l)] },
|
|
4813
|
+
{ label: "近一年", value: [T().add(-1, l)] },
|
|
4814
|
+
{ label: "近两年", value: [T().add(-2, l)] },
|
|
4815
|
+
{ label: "近三年", value: [T().add(-3, l)] },
|
|
4816
|
+
{ label: "近五年", value: [T().add(-5, l)] }
|
|
4817
|
+
], d = M(l === "day" ? u : l === "month" ? c : p), y = (f, v) => {
|
|
4802
4818
|
m(v, !0);
|
|
4803
4819
|
}, _ = () => {
|
|
4804
4820
|
let f = null, v = null;
|
|
4805
|
-
return i.value && i.value[0] && (f =
|
|
4821
|
+
return i.value && i.value[0] && (f = T(i.value[0]).format(r)), i.value && i.value[1] && (v = T(i.value[1]).format(r)), !f && !v ? null : [f, v];
|
|
4806
4822
|
}, C = (f, v) => {
|
|
4807
4823
|
typeof f == "number" || typeof v == "number" ? i.value = [
|
|
4808
|
-
s(f) ?
|
|
4809
|
-
s(v) ?
|
|
4810
|
-
] : i.value = [s(f) ?
|
|
4824
|
+
s(f) ? T().add(f, l) : null,
|
|
4825
|
+
s(v) ? T().add(v, l) : null
|
|
4826
|
+
] : i.value = [s(f) ? T(f) : null, s(v) ? T(v) : null], m();
|
|
4811
4827
|
}, m = (f, v = !1) => {
|
|
4812
4828
|
s(f) ? (o("update:value", f), v && o("change", f)) : (o("update:value", _()), v && o("change", _()));
|
|
4813
4829
|
};
|
|
4814
4830
|
return ve(
|
|
4815
4831
|
() => a.value,
|
|
4816
4832
|
(f, v) => {
|
|
4817
|
-
let
|
|
4818
|
-
s(f) && (s(f[0]) && (
|
|
4833
|
+
let g = null, S = null;
|
|
4834
|
+
s(f) && (s(f[0]) && (g = T(f[0])), s(f[1]) && (S = T(f[1]))), i.value = [g, S];
|
|
4819
4835
|
}
|
|
4820
4836
|
), ie(() => {
|
|
4821
4837
|
s(a.value) && C(a.value[0], a.value[1]);
|
|
@@ -4823,17 +4839,17 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4823
4839
|
setValue: C,
|
|
4824
4840
|
getValue: _
|
|
4825
4841
|
}), (f, v) => {
|
|
4826
|
-
const
|
|
4827
|
-
return x(), z(
|
|
4842
|
+
const g = Y("a-range-picker");
|
|
4843
|
+
return x(), z(g, {
|
|
4828
4844
|
value: i.value,
|
|
4829
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
4845
|
+
"onUpdate:value": v[0] || (v[0] = (S) => i.value = S),
|
|
4830
4846
|
presets: d.value,
|
|
4831
|
-
locale:
|
|
4847
|
+
locale: O(Ge),
|
|
4832
4848
|
allowEmpty: [!0, !0],
|
|
4833
|
-
format:
|
|
4834
|
-
picker:
|
|
4849
|
+
format: O(r),
|
|
4850
|
+
picker: O(l) === "day" ? "date" : O(l),
|
|
4835
4851
|
style: ge(a.style),
|
|
4836
|
-
getPopupContainer: (
|
|
4852
|
+
getPopupContainer: (S) => O(Le)(a.mountainTop, e.getPopupContainer, S),
|
|
4837
4853
|
onChange: y
|
|
4838
4854
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4839
4855
|
};
|
|
@@ -4872,13 +4888,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4872
4888
|
onClick: l,
|
|
4873
4889
|
disabled: t.disabled
|
|
4874
4890
|
}, {
|
|
4875
|
-
icon:
|
|
4891
|
+
icon: I(() => [
|
|
4876
4892
|
t.icon !== "none" ? (x(), z(ze, {
|
|
4877
4893
|
key: 0,
|
|
4878
4894
|
icon: t.icon
|
|
4879
|
-
}, null, 8, ["icon"])) :
|
|
4895
|
+
}, null, 8, ["icon"])) : j("", !0)
|
|
4880
4896
|
]),
|
|
4881
|
-
default:
|
|
4897
|
+
default: I(() => [
|
|
4882
4898
|
ce(" " + ae(t.name), 1)
|
|
4883
4899
|
]),
|
|
4884
4900
|
_: 1
|
|
@@ -4920,18 +4936,18 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4920
4936
|
},
|
|
4921
4937
|
emits: ["update:value", "change"],
|
|
4922
4938
|
setup(e, { expose: n, emit: t }) {
|
|
4923
|
-
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, u = a.fieldNames.value, c =
|
|
4924
|
-
const
|
|
4939
|
+
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, u = a.fieldNames.value, c = M([]), p = M([]), d = async () => {
|
|
4940
|
+
const g = await yl(
|
|
4925
4941
|
ne(r, a.requestUrl),
|
|
4926
4942
|
a.requestParams,
|
|
4927
4943
|
l,
|
|
4928
4944
|
"CASCADER_" + a.cacheKey
|
|
4929
4945
|
);
|
|
4930
|
-
p.value =
|
|
4931
|
-
}, y = t, _ = (
|
|
4932
|
-
s(
|
|
4933
|
-
}, C = (
|
|
4934
|
-
c.value =
|
|
4946
|
+
p.value = g;
|
|
4947
|
+
}, y = t, _ = (g, S) => {
|
|
4948
|
+
s(S) ? (y("update:value", g[g.length - 1]), y("change", S[S.length - 1])) : (y("update:value", null), y("change", null));
|
|
4949
|
+
}, C = (g, S) => S.some((h) => h[i].indexOf(g) > -1), m = () => p.value.filter((S) => S[u] === c.value[c.value.length - 1])[i], f = () => c.value, v = (g) => {
|
|
4950
|
+
c.value = g, y("update:value", g);
|
|
4935
4951
|
};
|
|
4936
4952
|
return ie(() => {
|
|
4937
4953
|
d();
|
|
@@ -4939,12 +4955,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4939
4955
|
getName: m,
|
|
4940
4956
|
getValue: f,
|
|
4941
4957
|
setValue: v
|
|
4942
|
-
}), (
|
|
4943
|
-
const
|
|
4958
|
+
}), (g, S) => {
|
|
4959
|
+
const h = Y("a-cascader");
|
|
4944
4960
|
return x(), W("div", Es, [
|
|
4945
|
-
|
|
4961
|
+
q(h, {
|
|
4946
4962
|
value: c.value,
|
|
4947
|
-
"onUpdate:value":
|
|
4963
|
+
"onUpdate:value": S[0] || (S[0] = (b) => c.value = b),
|
|
4948
4964
|
options: p.value,
|
|
4949
4965
|
fieldNames: a.fieldNames,
|
|
4950
4966
|
"show-search": { filter: C },
|
|
@@ -4953,7 +4969,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4953
4969
|
changeOnSelect: a.changeOnSelect,
|
|
4954
4970
|
placeholder: o,
|
|
4955
4971
|
style: ge(a.style),
|
|
4956
|
-
getPopupContainer: (b) =>
|
|
4972
|
+
getPopupContainer: (b) => O(Le)(a.mountainTop, e.getPopupContainer, b),
|
|
4957
4973
|
onChange: _
|
|
4958
4974
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "style", "getPopupContainer"])
|
|
4959
4975
|
]);
|
|
@@ -4993,22 +5009,22 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4993
5009
|
hoverable: n.hoverable,
|
|
4994
5010
|
loading: n.loading
|
|
4995
5011
|
}, xe({
|
|
4996
|
-
default:
|
|
5012
|
+
default: I(() => [
|
|
4997
5013
|
oe(r.$slots, "default")
|
|
4998
5014
|
]),
|
|
4999
5015
|
_: 2
|
|
5000
5016
|
}, [
|
|
5001
|
-
|
|
5017
|
+
O(l).length === 1 || O(s)(n.title) ? {
|
|
5002
5018
|
name: "title",
|
|
5003
|
-
fn:
|
|
5004
|
-
|
|
5005
|
-
|
|
5019
|
+
fn: I(() => [
|
|
5020
|
+
O(l).length === 1 ? oe(r.$slots, "title", { key: 0 }) : j("", !0),
|
|
5021
|
+
O(l).length !== 1 ? (x(), W("span", Us, ae(n.title), 1)) : j("", !0)
|
|
5006
5022
|
]),
|
|
5007
5023
|
key: "0"
|
|
5008
5024
|
} : void 0,
|
|
5009
|
-
|
|
5025
|
+
O(a).length === 1 ? {
|
|
5010
5026
|
name: "extra",
|
|
5011
|
-
fn:
|
|
5027
|
+
fn: I(() => [
|
|
5012
5028
|
oe(r.$slots, "extra")
|
|
5013
5029
|
]),
|
|
5014
5030
|
key: "1"
|
|
@@ -5048,10 +5064,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5048
5064
|
},
|
|
5049
5065
|
emits: ["update:value", "change"],
|
|
5050
5066
|
setup(e, { expose: n, emit: t }) {
|
|
5051
|
-
const a = e, l = V
|
|
5067
|
+
const a = e, l = M(V.toString(a.value, null)), r = t, o = Object.keys(Ie()), i = o.filter((_) => _ === "addonAfter"), u = o.filter((_) => _ === "addonBefore"), c = () => {
|
|
5052
5068
|
y(!0);
|
|
5053
5069
|
}, p = () => l.value, d = (_) => {
|
|
5054
|
-
a.formatter === "date" ? l.value =
|
|
5070
|
+
a.formatter === "date" ? l.value = V.toDateString(_) : a.formatter === "datetime" ? l.value = V.toDatetimeString(_) : l.value = _, y();
|
|
5055
5071
|
};
|
|
5056
5072
|
ve(
|
|
5057
5073
|
() => a.value,
|
|
@@ -5077,19 +5093,19 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5077
5093
|
style: ge(a.style),
|
|
5078
5094
|
onChange: c
|
|
5079
5095
|
}, xe({ _: 2 }, [
|
|
5080
|
-
|
|
5096
|
+
O(i).length === 1 || O(s)(a.addonAfter) ? {
|
|
5081
5097
|
name: "addonAfter",
|
|
5082
|
-
fn:
|
|
5083
|
-
|
|
5084
|
-
|
|
5098
|
+
fn: I(() => [
|
|
5099
|
+
O(i).length === 1 ? oe(_.$slots, "addonAfter", { key: 0 }) : j("", !0),
|
|
5100
|
+
O(i).length !== 1 ? (x(), W("span", Fs, ae(a.addonAfter), 1)) : j("", !0)
|
|
5085
5101
|
]),
|
|
5086
5102
|
key: "0"
|
|
5087
5103
|
} : void 0,
|
|
5088
|
-
|
|
5104
|
+
O(u).length === 1 || O(s)(a.addonBefore) ? {
|
|
5089
5105
|
name: "addonBefore",
|
|
5090
|
-
fn:
|
|
5091
|
-
|
|
5092
|
-
|
|
5106
|
+
fn: I(() => [
|
|
5107
|
+
O(u).length === 1 ? oe(_.$slots, "addonBefore", { key: 0 }) : j("", !0),
|
|
5108
|
+
O(u).length !== 1 ? (x(), W("span", Hs, ae(a.addonBefore), 1)) : j("", !0)
|
|
5093
5109
|
]),
|
|
5094
5110
|
key: "1"
|
|
5095
5111
|
} : void 0
|
|
@@ -5134,7 +5150,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5134
5150
|
},
|
|
5135
5151
|
emits: ["update:value", "change"],
|
|
5136
5152
|
setup(e, { expose: n, emit: t }) {
|
|
5137
|
-
const a = e, l = V
|
|
5153
|
+
const a = e, l = M(V.toString(a.value, null)), r = t, o = Object.keys(Ie()), i = o.filter((_) => _ === "addonAfter"), u = o.filter((_) => _ === "addonBefore"), c = () => {
|
|
5138
5154
|
y(!0);
|
|
5139
5155
|
}, p = () => l.value, d = (_) => {
|
|
5140
5156
|
l.value = _, y();
|
|
@@ -5167,19 +5183,19 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5167
5183
|
style: ge(a.style),
|
|
5168
5184
|
onChange: c
|
|
5169
5185
|
}, xe({ _: 2 }, [
|
|
5170
|
-
|
|
5186
|
+
O(i).length === 1 || O(s)(a.addonAfter) ? {
|
|
5171
5187
|
name: "addonAfter",
|
|
5172
|
-
fn:
|
|
5173
|
-
|
|
5174
|
-
|
|
5188
|
+
fn: I(() => [
|
|
5189
|
+
O(i).length === 1 ? oe(_.$slots, "addonAfter", { key: 0 }) : j("", !0),
|
|
5190
|
+
O(i).length !== 1 ? (x(), W("span", Ys, ae(a.addonAfter), 1)) : j("", !0)
|
|
5175
5191
|
]),
|
|
5176
5192
|
key: "0"
|
|
5177
5193
|
} : void 0,
|
|
5178
|
-
|
|
5194
|
+
O(u).length === 1 || O(s)(a.addonBefore) ? {
|
|
5179
5195
|
name: "addonBefore",
|
|
5180
|
-
fn:
|
|
5181
|
-
|
|
5182
|
-
|
|
5196
|
+
fn: I(() => [
|
|
5197
|
+
O(u).length === 1 ? oe(_.$slots, "addonBefore", { key: 0 }) : j("", !0),
|
|
5198
|
+
O(u).length !== 1 ? (x(), W("span", Ws, ae(a.addonBefore), 1)) : j("", !0)
|
|
5183
5199
|
]),
|
|
5184
5200
|
key: "1"
|
|
5185
5201
|
} : void 0
|
|
@@ -5208,7 +5224,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5208
5224
|
},
|
|
5209
5225
|
emits: ["update:value", "search", "suffix"],
|
|
5210
5226
|
setup(e, { emit: n }) {
|
|
5211
|
-
const t = e, a =
|
|
5227
|
+
const t = e, a = M(t.value), l = n, r = () => {
|
|
5212
5228
|
l("search");
|
|
5213
5229
|
}, o = () => {
|
|
5214
5230
|
a.value = "", l("update:value", a.value), l("suffix");
|
|
@@ -5230,9 +5246,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5230
5246
|
}, xe({ _: 2 }, [
|
|
5231
5247
|
t.showSuffix && !t.disabled ? {
|
|
5232
5248
|
name: "suffix",
|
|
5233
|
-
fn:
|
|
5249
|
+
fn: I(() => [
|
|
5234
5250
|
K("a", { onClick: o }, [
|
|
5235
|
-
|
|
5251
|
+
q(ze, { icon: "close" })
|
|
5236
5252
|
])
|
|
5237
5253
|
]),
|
|
5238
5254
|
key: "0"
|
|
@@ -5272,7 +5288,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5272
5288
|
},
|
|
5273
5289
|
emits: ["update:value", "change"],
|
|
5274
5290
|
setup(e, { expose: n, emit: t }) {
|
|
5275
|
-
const a = e, l = V
|
|
5291
|
+
const a = e, l = M(V.toString(a.value, null)), r = t, o = () => {
|
|
5276
5292
|
c(!0);
|
|
5277
5293
|
}, i = () => l.value, u = (p) => {
|
|
5278
5294
|
l.value = p, c();
|
|
@@ -5342,10 +5358,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5342
5358
|
},
|
|
5343
5359
|
emits: ["update:value", "update:label", "change"],
|
|
5344
5360
|
setup(e, { expose: n, emit: t }) {
|
|
5345
|
-
const a = e, l = t, r =
|
|
5361
|
+
const a = e, l = t, r = V.toString(a.value, null), o = a.multiple ? M(s(r) ? r.split(",") : []) : M(r), i = M(a.multiple ? [] : null), u = M(a.multiple ? {} : null), c = M([]), p = async () => {
|
|
5346
5362
|
const v = ne(A.ctxPath, A.requestDictUrl);
|
|
5347
5363
|
return await On(A.application, v, a.requestParams);
|
|
5348
|
-
}, d = (v,
|
|
5364
|
+
}, d = (v, g) => g.label.toLowerCase().indexOf(v.toLowerCase()) >= 0, y = (v, g) => {
|
|
5349
5365
|
m(!0);
|
|
5350
5366
|
}, _ = () => o.value, C = (v) => {
|
|
5351
5367
|
a.multiple ? o.value = s(v) ? v : [] : o.value = s(v) ? v : "", m();
|
|
@@ -5361,14 +5377,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5361
5377
|
}, f = (v = !1) => {
|
|
5362
5378
|
if (s(o.value))
|
|
5363
5379
|
if (a.multiple) {
|
|
5364
|
-
const
|
|
5365
|
-
o.value.forEach((
|
|
5366
|
-
let
|
|
5367
|
-
|
|
5368
|
-
}), i.value =
|
|
5380
|
+
const g = [];
|
|
5381
|
+
o.value.forEach((S) => {
|
|
5382
|
+
let h = c.value.filter((b) => b.value === S);
|
|
5383
|
+
h.length === 1 && (g.push(h[0].label), u.value[S] = h[0]);
|
|
5384
|
+
}), i.value = g;
|
|
5369
5385
|
} else {
|
|
5370
|
-
const
|
|
5371
|
-
s(
|
|
5386
|
+
const g = c.value.filter((S) => S.value === o.value);
|
|
5387
|
+
s(g) && (i.value = g[0].label, u.value = g[0]);
|
|
5372
5388
|
}
|
|
5373
5389
|
else
|
|
5374
5390
|
i.value = a.multiple ? [] : null, u.value = a.multiple ? {} : null;
|
|
@@ -5381,12 +5397,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5381
5397
|
p().then((v) => {
|
|
5382
5398
|
c.value = v, s(a.extraOptions) && a.extraOptions?.length > 0 && c.value.unshift(...a.extraOptions), s(o.value) && !s(i.value) && f();
|
|
5383
5399
|
});
|
|
5384
|
-
}), (v,
|
|
5385
|
-
const
|
|
5400
|
+
}), (v, g) => {
|
|
5401
|
+
const S = Y("a-select");
|
|
5386
5402
|
return x(), W("div", Gs, [
|
|
5387
|
-
|
|
5388
|
-
value:
|
|
5389
|
-
"onUpdate:value":
|
|
5403
|
+
q(S, {
|
|
5404
|
+
value: O(o),
|
|
5405
|
+
"onUpdate:value": g[0] || (g[0] = (h) => gt(o) ? o.value = h : null),
|
|
5390
5406
|
onChange: y,
|
|
5391
5407
|
placeholder: "--请选择--",
|
|
5392
5408
|
allowClear: a.clearable,
|
|
@@ -5398,7 +5414,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5398
5414
|
defaultActiveFirstOption: !a.multiple,
|
|
5399
5415
|
autoClearSearchValue: !a.filterable,
|
|
5400
5416
|
listHeight: a.listHeight,
|
|
5401
|
-
getPopupContainer: (
|
|
5417
|
+
getPopupContainer: (h) => O(Le)(a.mountainTop, e.getPopupContainer, h),
|
|
5402
5418
|
disabled: e.disabled,
|
|
5403
5419
|
style: ge(a.style),
|
|
5404
5420
|
size: "medium"
|
|
@@ -5448,65 +5464,65 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5448
5464
|
},
|
|
5449
5465
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5450
5466
|
setup(e, { expose: n, emit: t }) {
|
|
5451
|
-
const a = e, l =
|
|
5467
|
+
const a = e, l = M(a.value ? a.value : a.multiple ? [] : null), r = M(a.label ? a.label : a.multiple ? [] : null), o = M(a.multiple ? {} : null), i = M([]), u = M(!1), c = t, p = "请输入" + a.title + "搜索", d = async (L, D = "0") => {
|
|
5452
5468
|
if (a.corpFilter && !s(a.corpId))
|
|
5453
5469
|
return i.value = [], [];
|
|
5454
|
-
let E = { corpId: a.corpId, searchValue:
|
|
5470
|
+
let E = { corpId: a.corpId, searchValue: L, searchByKey: D };
|
|
5455
5471
|
Object.assign(E, a.requestParams), i.value = [], u.value = !0;
|
|
5456
5472
|
const F = await Re(a.requestUrl, E);
|
|
5457
5473
|
return u.value = !1, i.value = F, F;
|
|
5458
5474
|
}, y = It(() => {
|
|
5459
|
-
d(null).then((
|
|
5460
|
-
c("query",
|
|
5475
|
+
d(null).then((L) => {
|
|
5476
|
+
c("query", L);
|
|
5461
5477
|
});
|
|
5462
|
-
}, 300), _ = (
|
|
5463
|
-
m(
|
|
5464
|
-
|
|
5478
|
+
}, 300), _ = (L) => {
|
|
5479
|
+
m(L).then(() => {
|
|
5480
|
+
N(!0);
|
|
5465
5481
|
});
|
|
5466
|
-
}, C = (
|
|
5467
|
-
if (l.value =
|
|
5468
|
-
const
|
|
5482
|
+
}, C = (L, D) => D.label.toLowerCase().indexOf(Te(L).toLowerCase()) >= 0, m = async (L) => {
|
|
5483
|
+
if (l.value = L, a.multiple) {
|
|
5484
|
+
const D = [];
|
|
5469
5485
|
l.value.forEach((E) => {
|
|
5470
5486
|
let F = i.value.filter((re) => re.value === E);
|
|
5471
|
-
F.length === 1 && (
|
|
5472
|
-
}), r.value =
|
|
5487
|
+
F.length === 1 && (D.push(F[0].label), o.value[E] = F[0]);
|
|
5488
|
+
}), r.value = D;
|
|
5473
5489
|
} else {
|
|
5474
|
-
let
|
|
5475
|
-
|
|
5490
|
+
let D = i.value.filter((E) => E.value === L);
|
|
5491
|
+
D.length === 1 ? (r.value = D[0].label, o.value = D[0]) : (r.value = null, o.value = null);
|
|
5476
5492
|
}
|
|
5477
|
-
}, f = () => r.value, v = () => l.value,
|
|
5478
|
-
m(
|
|
5479
|
-
|
|
5493
|
+
}, f = () => r.value, v = () => l.value, g = (L) => {
|
|
5494
|
+
m(L).then(() => {
|
|
5495
|
+
N();
|
|
5480
5496
|
});
|
|
5481
|
-
},
|
|
5482
|
-
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null,
|
|
5483
|
-
},
|
|
5484
|
-
|
|
5497
|
+
}, S = () => {
|
|
5498
|
+
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null, N();
|
|
5499
|
+
}, h = async () => {
|
|
5500
|
+
S(), i.value = [];
|
|
5485
5501
|
}, b = async () => {
|
|
5486
|
-
|
|
5487
|
-
},
|
|
5488
|
-
c("update:value", l.value), c("update:label", r.value),
|
|
5489
|
-
}, U = (
|
|
5502
|
+
S(), i.value = [], await y();
|
|
5503
|
+
}, N = (L = !1) => {
|
|
5504
|
+
c("update:value", l.value), c("update:label", r.value), L && c("change", o.value);
|
|
5505
|
+
}, U = (L, D) => a.multiple ? s(L) && !s(D) || !s(L) && s(D) ? !0 : !s(L) && !s(D) || L.length !== D.length ? !1 : !L.every((E, F) => E === D[F]) : L !== D;
|
|
5490
5506
|
return ve(
|
|
5491
5507
|
() => [a.corpId, a.value],
|
|
5492
|
-
async ([
|
|
5493
|
-
const re =
|
|
5494
|
-
re && (
|
|
5508
|
+
async ([L, D], [E, F]) => {
|
|
5509
|
+
const re = L !== E, G = U(D, l.value);
|
|
5510
|
+
re && (S(), await d(D, "1")), G && g(D);
|
|
5495
5511
|
}
|
|
5496
5512
|
), ie(async () => {
|
|
5497
5513
|
d(null);
|
|
5498
5514
|
}), n({
|
|
5499
5515
|
getName: f,
|
|
5500
5516
|
getValue: v,
|
|
5501
|
-
setValue:
|
|
5502
|
-
clear:
|
|
5517
|
+
setValue: g,
|
|
5518
|
+
clear: h,
|
|
5503
5519
|
reload: b
|
|
5504
|
-
}), (
|
|
5520
|
+
}), (L, D) => {
|
|
5505
5521
|
const E = Y("a-spin"), F = Y("a-select");
|
|
5506
5522
|
return x(), W("div", Js, [
|
|
5507
|
-
|
|
5523
|
+
q(F, {
|
|
5508
5524
|
value: l.value,
|
|
5509
|
-
"onUpdate:value":
|
|
5525
|
+
"onUpdate:value": D[0] || (D[0] = (re) => l.value = re),
|
|
5510
5526
|
placeholder: p,
|
|
5511
5527
|
style: ge(a.style),
|
|
5512
5528
|
"filter-option": C,
|
|
@@ -5516,14 +5532,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5516
5532
|
options: i.value,
|
|
5517
5533
|
allowClear: a.clearable,
|
|
5518
5534
|
listHeight: a.listHeight,
|
|
5519
|
-
getPopupContainer: (re) =>
|
|
5535
|
+
getPopupContainer: (re) => O(Le)(a.mountainTop, e.getPopupContainer, re),
|
|
5520
5536
|
onChange: _,
|
|
5521
5537
|
"show-search": ""
|
|
5522
5538
|
}, xe({ _: 2 }, [
|
|
5523
5539
|
u.value ? {
|
|
5524
5540
|
name: "notFoundContent",
|
|
5525
|
-
fn:
|
|
5526
|
-
|
|
5541
|
+
fn: I(() => [
|
|
5542
|
+
q(E, { size: "small" })
|
|
5527
5543
|
]),
|
|
5528
5544
|
key: "0"
|
|
5529
5545
|
} : void 0
|
|
@@ -5569,42 +5585,42 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5569
5585
|
},
|
|
5570
5586
|
emits: ["update:value", "update:label", "change"],
|
|
5571
5587
|
setup(e, { expose: n, emit: t }) {
|
|
5572
|
-
const a = e, l =
|
|
5588
|
+
const a = e, l = M(a.value || null), r = M(a.label || ""), o = M({}), i = M([]), u = M(!1), c = t, p = "请输入" + a.title + "搜索", d = async (S, h = "0") => {
|
|
5573
5589
|
if (i.value = [], a.corpFilter && !s(a.corpId))
|
|
5574
5590
|
return [];
|
|
5575
|
-
if (s(
|
|
5576
|
-
let b = { corpId: a.corpId, searchValue: Te(
|
|
5591
|
+
if (s(S)) {
|
|
5592
|
+
let b = { corpId: a.corpId, searchValue: Te(S), searchByKey: h };
|
|
5577
5593
|
Object.assign(b, a.requestParams), u.value = !0;
|
|
5578
|
-
const
|
|
5579
|
-
return u.value = !1, i.value =
|
|
5594
|
+
const N = await Re(a.requestUrl, b);
|
|
5595
|
+
return u.value = !1, i.value = N, N;
|
|
5580
5596
|
} else
|
|
5581
5597
|
return [];
|
|
5582
|
-
}, y = (
|
|
5583
|
-
l.value =
|
|
5584
|
-
|
|
5598
|
+
}, y = (S) => {
|
|
5599
|
+
l.value = S, C(S).then((h) => {
|
|
5600
|
+
g(!0);
|
|
5585
5601
|
});
|
|
5586
|
-
}, _ = It((
|
|
5587
|
-
d(
|
|
5588
|
-
}, 500), C = async (
|
|
5589
|
-
if (s(
|
|
5590
|
-
let
|
|
5591
|
-
return
|
|
5602
|
+
}, _ = It((S) => {
|
|
5603
|
+
d(S);
|
|
5604
|
+
}, 500), C = async (S) => {
|
|
5605
|
+
if (s(S)) {
|
|
5606
|
+
let h = i.value.filter((b) => b.value === S);
|
|
5607
|
+
return h.length === 1 ? (l.value = h[0].value, r.value = h[0].label, o.value = h[0], !0) : (l.value = null, r.value = "", o.value = null, !1);
|
|
5592
5608
|
} else
|
|
5593
5609
|
return l.value = null, r.value = "", o.value = null, !0;
|
|
5594
|
-
}, m = () => r.value, f = () => l.value, v = (
|
|
5595
|
-
l.value =
|
|
5596
|
-
|
|
5610
|
+
}, m = () => r.value, f = () => l.value, v = (S) => {
|
|
5611
|
+
l.value = S, C(S).then((h) => {
|
|
5612
|
+
h && g();
|
|
5597
5613
|
});
|
|
5598
|
-
},
|
|
5599
|
-
c("update:value", l.value), c("update:label", r.value),
|
|
5614
|
+
}, g = (S = !1) => {
|
|
5615
|
+
c("update:value", l.value), c("update:label", r.value), S && c("change", o.value);
|
|
5600
5616
|
};
|
|
5601
5617
|
return ve(
|
|
5602
5618
|
() => [a.corpId, a.value],
|
|
5603
|
-
async ([
|
|
5604
|
-
const U =
|
|
5605
|
-
U && (i.value = [], r.value = null, l.value = null, o.value = null,
|
|
5606
|
-
|
|
5607
|
-
v(
|
|
5619
|
+
async ([S, h], [b, N]) => {
|
|
5620
|
+
const U = S !== b, L = h !== l.value;
|
|
5621
|
+
U && (i.value = [], r.value = null, l.value = null, o.value = null, g()), L && C(h).then((D) => {
|
|
5622
|
+
D || d(h, "1").then(() => {
|
|
5623
|
+
v(h);
|
|
5608
5624
|
});
|
|
5609
5625
|
});
|
|
5610
5626
|
}
|
|
@@ -5619,12 +5635,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5619
5635
|
getName: m,
|
|
5620
5636
|
getValue: f,
|
|
5621
5637
|
setValue: v
|
|
5622
|
-
}), (
|
|
5623
|
-
const b = Y("a-spin"),
|
|
5638
|
+
}), (S, h) => {
|
|
5639
|
+
const b = Y("a-spin"), N = Y("a-select");
|
|
5624
5640
|
return x(), W("div", Zs, [
|
|
5625
|
-
|
|
5641
|
+
q(N, {
|
|
5626
5642
|
value: l.value,
|
|
5627
|
-
"onUpdate:value":
|
|
5643
|
+
"onUpdate:value": h[0] || (h[0] = (U) => l.value = U),
|
|
5628
5644
|
placeholder: p,
|
|
5629
5645
|
style: ge(a.style),
|
|
5630
5646
|
"filter-option": !1,
|
|
@@ -5634,15 +5650,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5634
5650
|
listHeight: a.listHeight,
|
|
5635
5651
|
"default-active-first-option": !1,
|
|
5636
5652
|
"show-arrow": !1,
|
|
5637
|
-
getPopupContainer: (U) =>
|
|
5653
|
+
getPopupContainer: (U) => O(Le)(a.mountainTop, e.getPopupContainer, U),
|
|
5638
5654
|
onChange: y,
|
|
5639
|
-
onSearch:
|
|
5655
|
+
onSearch: O(_),
|
|
5640
5656
|
"show-search": ""
|
|
5641
5657
|
}, xe({ _: 2 }, [
|
|
5642
5658
|
u.value ? {
|
|
5643
5659
|
name: "notFoundContent",
|
|
5644
|
-
fn:
|
|
5645
|
-
|
|
5660
|
+
fn: I(() => [
|
|
5661
|
+
q(b, { size: "small" })
|
|
5646
5662
|
]),
|
|
5647
5663
|
key: "0"
|
|
5648
5664
|
} : void 0
|
|
@@ -5667,7 +5683,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5667
5683
|
//
|
|
5668
5684
|
},
|
|
5669
5685
|
setup(e) {
|
|
5670
|
-
const n = e, t = Object.keys(Ie()), a = t.filter((i) => i !== "header"), l = t.filter((i) => i === "header"), r =
|
|
5686
|
+
const n = e, t = Object.keys(Ie()), a = t.filter((i) => i !== "header"), l = t.filter((i) => i === "header"), r = M(n.activeKey), o = M(n.header instanceof Object ? n.header : { default: n.header });
|
|
5671
5687
|
return (i, u) => {
|
|
5672
5688
|
const c = Y("a-collapse-panel"), p = Y("a-collapse");
|
|
5673
5689
|
return x(), z(p, {
|
|
@@ -5677,16 +5693,16 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5677
5693
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5678
5694
|
accordion: ""
|
|
5679
5695
|
}, {
|
|
5680
|
-
default:
|
|
5681
|
-
(x(!0), W(de, null, Ce(
|
|
5696
|
+
default: I(() => [
|
|
5697
|
+
(x(!0), W(de, null, Ce(O(a), (d) => (x(), z(c, {
|
|
5682
5698
|
key: d,
|
|
5683
5699
|
forceRender: "",
|
|
5684
5700
|
showArrow: n.showArrow
|
|
5685
5701
|
}, {
|
|
5686
|
-
header:
|
|
5687
|
-
|
|
5702
|
+
header: I(() => [
|
|
5703
|
+
O(l).length === 1 ? oe(i.$slots, "header", { key: 0 }) : (x(), W("span", Qs, ae(o.value[d]), 1))
|
|
5688
5704
|
]),
|
|
5689
|
-
default:
|
|
5705
|
+
default: I(() => [
|
|
5690
5706
|
oe(i.$slots, d)
|
|
5691
5707
|
]),
|
|
5692
5708
|
_: 2
|
|
@@ -5731,7 +5747,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5731
5747
|
},
|
|
5732
5748
|
emits: ["update:checked", "change"],
|
|
5733
5749
|
setup(e, { emit: n }) {
|
|
5734
|
-
const t = e, a =
|
|
5750
|
+
const t = e, a = M(t.checked), l = n, r = (o) => {
|
|
5735
5751
|
l("update:checked", o), l("change", o);
|
|
5736
5752
|
};
|
|
5737
5753
|
return ve(
|
|
@@ -5778,7 +5794,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5778
5794
|
},
|
|
5779
5795
|
emits: ["update:activeKey", "change"],
|
|
5780
5796
|
setup(e, { emit: n }) {
|
|
5781
|
-
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Ie()), r = l.filter((p) => p != "rightExtra" && p != "header"), o =
|
|
5797
|
+
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Ie()), r = l.filter((p) => p != "rightExtra" && p != "header"), o = M(t.activeKey), i = M(t.header instanceof Object ? t.header : { default: t.header }), u = n, c = (p) => {
|
|
5782
5798
|
u("update:activeKey", p), u("change", p);
|
|
5783
5799
|
};
|
|
5784
5800
|
return ve(
|
|
@@ -5794,29 +5810,29 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5794
5810
|
type: t.type,
|
|
5795
5811
|
"tab-position": t.position,
|
|
5796
5812
|
tabBarGutter: t.position === "left" ? 4 : 25,
|
|
5797
|
-
tabBarStyle: { margin: 0, backgroundColor:
|
|
5813
|
+
tabBarStyle: { margin: 0, backgroundColor: O(a) },
|
|
5798
5814
|
onChange: c
|
|
5799
5815
|
}, xe({
|
|
5800
|
-
default:
|
|
5801
|
-
(x(!0), W(de, null, Ce(
|
|
5816
|
+
default: I(() => [
|
|
5817
|
+
(x(!0), W(de, null, Ce(O(r), (C, m) => (x(), z(y, {
|
|
5802
5818
|
key: C,
|
|
5803
5819
|
forceRender: t.forceRender && !t.notForceRender?.includes(C),
|
|
5804
5820
|
style: ge(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5805
5821
|
}, {
|
|
5806
|
-
tab:
|
|
5822
|
+
tab: I(() => [
|
|
5807
5823
|
K("span", {
|
|
5808
5824
|
style: ge(m === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5809
5825
|
}, [
|
|
5810
|
-
|
|
5826
|
+
O(l).includes("header") ? oe(p.$slots, "header", {
|
|
5811
5827
|
key: 0,
|
|
5812
5828
|
tabKey: C
|
|
5813
5829
|
}) : (x(), W(de, { key: 1 }, [
|
|
5814
|
-
|
|
5830
|
+
q(ze, { icon: "menu" }),
|
|
5815
5831
|
ce(" " + ae(i.value[C]), 1)
|
|
5816
5832
|
], 64))
|
|
5817
5833
|
], 4)
|
|
5818
5834
|
]),
|
|
5819
|
-
default:
|
|
5835
|
+
default: I(() => [
|
|
5820
5836
|
oe(p.$slots, C)
|
|
5821
5837
|
]),
|
|
5822
5838
|
_: 2
|
|
@@ -5824,9 +5840,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5824
5840
|
]),
|
|
5825
5841
|
_: 2
|
|
5826
5842
|
}, [
|
|
5827
|
-
|
|
5843
|
+
O(l).includes("rightExtra") ? {
|
|
5828
5844
|
name: "rightExtra",
|
|
5829
|
-
fn:
|
|
5845
|
+
fn: I(() => [
|
|
5830
5846
|
oe(p.$slots, "rightExtra")
|
|
5831
5847
|
]),
|
|
5832
5848
|
key: "0"
|