sag-ubmp-pc 1.0.28 → 1.0.29
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 +454 -454
- package/dist/sag-ubmp-pc.umd.js +5 -5
- package/package.json +2 -2
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Ae, { trim as ke, debounce as $t } from "xe-utils";
|
|
2
|
-
import { inject as fe, ref as $, h as Te, getCurrentInstance as Cl, nextTick as it, reactive as
|
|
2
|
+
import { inject as fe, ref as $, h as Te, getCurrentInstance as Cl, nextTick as it, reactive as ne, defineComponent as W, createVNode as D, openBlock as O, createElementBlock as I, Fragment as pe, createBlock as z, unref as y, createCommentVNode as q, onMounted as ie, resolveComponent as U, isRef as dt, createSlots as _e, withCtx as B, defineAsyncComponent as Pl, computed as kl, resolveDynamicComponent as Al, mergeProps as te, createElementVNode as Q, toDisplayString as le, useAttrs as Tl, provide as On, useSlots as Ne, watch as ve, withDirectives as xn, createTextVNode as de, renderList as Pe, renderSlot as oe, vShow as Cn, toHandlers as Ml, normalizeProps as Vl, guardReactiveProps as $l, normalizeStyle as ge } from "vue";
|
|
3
3
|
import { Modal as jl, notification as Pt, message as zl, Spin as ql } from "ant-design-vue";
|
|
4
4
|
import M from "dayjs";
|
|
5
5
|
const ft = "SAG_UBMP_PC$", st = {
|
|
@@ -54,7 +54,7 @@ const ft = "SAG_UBMP_PC$", st = {
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
Object.assign(st, Bl(window.localStorage));
|
|
57
|
-
const c = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0),
|
|
57
|
+
const c = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Ee = (e) => e === void 0 || e === null ? !0 : e, ae = (e, n) => c(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e + n : e + "/" + n : "", pt = (e) => c(e) ? e + "$" : "", Da = "DICT_TYPE", jt = (e, n, t) => {
|
|
58
58
|
Ll(e, Da, n, t);
|
|
59
59
|
}, zt = (e, n) => Ul(e, Da, n), Ba = "COLUMNS_SWITCH", Nl = (e, n, t) => {
|
|
60
60
|
Ra(e, Ba, n, t);
|
|
@@ -78,7 +78,7 @@ function qt(e) {
|
|
|
78
78
|
console[e]("[sag-ubmp-pc]" + n, t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const re = qt("log"), La = qt("warn"), mt = qt("error"), Xe = {
|
|
82
82
|
ExcelJS: null,
|
|
83
83
|
FileSaver: null
|
|
84
84
|
}, A = {
|
|
@@ -146,13 +146,13 @@ const le = qt("log"), La = qt("warn"), mt = qt("error"), Xe = {
|
|
|
146
146
|
}
|
|
147
147
|
}, $s = {
|
|
148
148
|
setupConfig: function(e) {
|
|
149
|
-
Ae.merge(A, e),
|
|
149
|
+
Ae.merge(A, e), re("加载公共参数完毕", A);
|
|
150
150
|
},
|
|
151
151
|
setupExcelConfig: function(e, n) {
|
|
152
152
|
Ae.merge(Xe, {
|
|
153
153
|
ExcelJS: e,
|
|
154
154
|
FileSaver: n
|
|
155
|
-
}),
|
|
155
|
+
}), re("加载excel组件完毕");
|
|
156
156
|
},
|
|
157
157
|
getDictDetail: function(e, n = A.application) {
|
|
158
158
|
return zt(n, e);
|
|
@@ -160,7 +160,7 @@ const le = qt("log"), La = qt("warn"), mt = qt("error"), Xe = {
|
|
|
160
160
|
setDictDetail: function(e, n, t = A.application) {
|
|
161
161
|
return jt(t, e, n);
|
|
162
162
|
}
|
|
163
|
-
},
|
|
163
|
+
}, Ue = "modal", et = "open", Il = "confirm", Fl = (e) => Ua(e, "buttonName"), Hl = (e) => Ua(e, "componentParams"), Ua = (e, n) => c(e) && c(e[A.buttonKeyName]) ? e[A.buttonKeyName][n] : null, Yl = (e) => c(e) && c(e[A.buttonKeyName]) ? e[A.buttonKeyName] : {}, Wl = (e) => e._X_ROWS, Gl = (e, n, t = {}) => {
|
|
164
164
|
const { span: a, placeholder: l, defaultValue: r, disabled: o } = t;
|
|
165
165
|
return {
|
|
166
166
|
field: e,
|
|
@@ -463,7 +463,7 @@ const le = qt("log"), La = qt("warn"), mt = qt("error"), Xe = {
|
|
|
463
463
|
icon: c(t) ? t : "save",
|
|
464
464
|
status: c(a) ? a : "primary",
|
|
465
465
|
buttonName: e,
|
|
466
|
-
requestType:
|
|
466
|
+
requestType: Ue,
|
|
467
467
|
requestRow: o,
|
|
468
468
|
requestRadio: i,
|
|
469
469
|
requestUrl: c(r) ? r : "",
|
|
@@ -605,7 +605,7 @@ const le = qt("log"), La = qt("warn"), mt = qt("error"), Xe = {
|
|
|
605
605
|
}), t && t.forEach((s) => {
|
|
606
606
|
const { field: u, datas: p, values: f } = s;
|
|
607
607
|
o[u] = p ? p.join(",") : f ? f.join(",") : "";
|
|
608
|
-
}),
|
|
608
|
+
}), re("表单查询参数:", o), o;
|
|
609
609
|
}, gr = (e, n, t, a) => {
|
|
610
610
|
const l = Object.assign({}, t);
|
|
611
611
|
Object.assign(l, a), Object.keys(l).forEach((o) => {
|
|
@@ -862,7 +862,7 @@ var Mn = {
|
|
|
862
862
|
yellow: "#ffff00",
|
|
863
863
|
yellowgreen: "#9acd32"
|
|
864
864
|
};
|
|
865
|
-
function
|
|
865
|
+
function Le(e) {
|
|
866
866
|
var n = { r: 0, g: 0, b: 0 }, t = 1, a = null, l = null, r = null, o = !1, i = !1;
|
|
867
867
|
return typeof e == "string" && (e = Pr(e)), typeof e == "object" && (Ce(e.r) && Ce(e.g) && Ce(e.b) ? (n = yr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ce(e.h) && Ce(e.s) && Ce(e.v) ? (a = Ze(e.s), l = Ze(e.v), n = _r(e.h, a, l), o = !0, i = "hsv") : Ce(e.h) && Ce(e.s) && Ce(e.l) && (a = Ze(e.s), r = Ze(e.l), n = Sr(e.h, a, r), o = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = br(t), {
|
|
868
868
|
ok: o,
|
|
@@ -988,8 +988,8 @@ function qn(e, n, t) {
|
|
|
988
988
|
return t ? a = e.v + Ar * n : a = e.v - Tr * n, a > 1 && (a = 1), Number(a.toFixed(2));
|
|
989
989
|
}
|
|
990
990
|
function At(e) {
|
|
991
|
-
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a =
|
|
992
|
-
var r = $n(a), o = Qe(
|
|
991
|
+
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Le(e), l = Ya; l > 0; l -= 1) {
|
|
992
|
+
var r = $n(a), o = Qe(Le({
|
|
993
993
|
h: jn(r, l, !0),
|
|
994
994
|
s: zn(r, l, !0),
|
|
995
995
|
v: qn(r, l, !0)
|
|
@@ -998,7 +998,7 @@ function At(e) {
|
|
|
998
998
|
}
|
|
999
999
|
t.push(Qe(a));
|
|
1000
1000
|
for (var i = 1; i <= Wa; i += 1) {
|
|
1001
|
-
var s = $n(a), u = Qe(
|
|
1001
|
+
var s = $n(a), u = Qe(Le({
|
|
1002
1002
|
h: jn(s, i),
|
|
1003
1003
|
s: zn(s, i),
|
|
1004
1004
|
v: qn(s, i)
|
|
@@ -1006,7 +1006,7 @@ function At(e) {
|
|
|
1006
1006
|
t.push(u);
|
|
1007
1007
|
}
|
|
1008
1008
|
return n.theme === "dark" ? Mr.map(function(p) {
|
|
1009
|
-
var f = p.index, v = p.opacity, h = Qe(Vr(
|
|
1009
|
+
var f = p.index, v = p.opacity, h = Qe(Vr(Le(n.backgroundColor || "#141414"), Le(t[f]), v * 100));
|
|
1010
1010
|
return h;
|
|
1011
1011
|
}) : t;
|
|
1012
1012
|
}
|
|
@@ -1253,20 +1253,20 @@ function nt(e) {
|
|
|
1253
1253
|
function Zr(e, n, t) {
|
|
1254
1254
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1255
1255
|
}
|
|
1256
|
-
var
|
|
1256
|
+
var Fe = ne({
|
|
1257
1257
|
primaryColor: "#333",
|
|
1258
1258
|
secondaryColor: "#E6E6E6",
|
|
1259
1259
|
calculated: !1
|
|
1260
1260
|
});
|
|
1261
1261
|
function Kr(e) {
|
|
1262
1262
|
var n = e.primaryColor, t = e.secondaryColor;
|
|
1263
|
-
|
|
1263
|
+
Fe.primaryColor = n, Fe.secondaryColor = t || Qa(n), Fe.calculated = !!t;
|
|
1264
1264
|
}
|
|
1265
1265
|
function Qr() {
|
|
1266
|
-
return nt({},
|
|
1266
|
+
return nt({}, Fe);
|
|
1267
1267
|
}
|
|
1268
1268
|
var $e = function(n, t) {
|
|
1269
|
-
var a = nt({}, n, t.attrs), l = a.icon, r = a.primaryColor, o = a.secondaryColor, i = Gr(a, Wr), s =
|
|
1269
|
+
var a = nt({}, n, t.attrs), l = a.icon, r = a.primaryColor, o = a.secondaryColor, i = Gr(a, Wr), s = Fe;
|
|
1270
1270
|
if (r && (s = {
|
|
1271
1271
|
primaryColor: r,
|
|
1272
1272
|
secondaryColor: o || Qa(r)
|
|
@@ -1404,12 +1404,12 @@ function Ln(e) {
|
|
|
1404
1404
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1405
1405
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1406
1406
|
}))), a.forEach(function(l) {
|
|
1407
|
-
|
|
1407
|
+
Ie(e, l, t[l]);
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
return e;
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Ie(e, n, t) {
|
|
1413
1413
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1414
1414
|
}
|
|
1415
1415
|
function po(e, n) {
|
|
@@ -1430,8 +1430,8 @@ function mo(e, n) {
|
|
|
1430
1430
|
return t;
|
|
1431
1431
|
}
|
|
1432
1432
|
tl($r.primary);
|
|
1433
|
-
var
|
|
1434
|
-
var a, l = Ln({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, s = l.rotate, u = l.tabindex, p = l.twoToneColor, f = l.onClick, v = po(l, oo), h = Ga(), d = h.prefixCls, m = h.rootClassName, S = (a = {},
|
|
1433
|
+
var J = function(n, t) {
|
|
1434
|
+
var a, l = Ln({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, s = l.rotate, u = l.tabindex, p = l.twoToneColor, f = l.onClick, v = po(l, oo), h = Ga(), d = h.prefixCls, m = h.rootClassName, S = (a = {}, Ie(a, m.value, !!m.value), Ie(a, d.value, !0), Ie(a, "".concat(d.value, "-").concat(o.name), !!o.name), Ie(a, "".concat(d.value, "-spin"), !!i || o.name === "loading"), a), C = u;
|
|
1435
1435
|
C === void 0 && f && (C = -1);
|
|
1436
1436
|
var b = s ? {
|
|
1437
1437
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
@@ -1451,16 +1451,16 @@ var Z = function(n, t) {
|
|
|
1451
1451
|
style: b
|
|
1452
1452
|
}, null), D(ro, null, null)]);
|
|
1453
1453
|
};
|
|
1454
|
-
|
|
1454
|
+
J.props = {
|
|
1455
1455
|
spin: Boolean,
|
|
1456
1456
|
rotate: Number,
|
|
1457
1457
|
icon: Object,
|
|
1458
1458
|
twoToneColor: [String, Array]
|
|
1459
1459
|
};
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1460
|
+
J.displayName = "AntdIcon";
|
|
1461
|
+
J.inheritAttrs = !1;
|
|
1462
|
+
J.getTwoToneColor = lo;
|
|
1463
|
+
J.setTwoToneColor = tl;
|
|
1464
1464
|
var go = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" } }] }, name: "audit", theme: "outlined" };
|
|
1465
1465
|
function Un(e) {
|
|
1466
1466
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -1478,7 +1478,7 @@ function vo(e, n, t) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
var Nt = function(n, t) {
|
|
1480
1480
|
var a = Un({}, n, t.attrs);
|
|
1481
|
-
return D(
|
|
1481
|
+
return D(J, Un({}, a, {
|
|
1482
1482
|
icon: go
|
|
1483
1483
|
}), null);
|
|
1484
1484
|
};
|
|
@@ -1501,7 +1501,7 @@ function bo(e, n, t) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
var Rt = function(n, t) {
|
|
1503
1503
|
var a = In({}, n, t.attrs);
|
|
1504
|
-
return D(
|
|
1504
|
+
return D(J, In({}, a, {
|
|
1505
1505
|
icon: ho
|
|
1506
1506
|
}), null);
|
|
1507
1507
|
};
|
|
@@ -1524,7 +1524,7 @@ function So(e, n, t) {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
var Et = function(n, t) {
|
|
1526
1526
|
var a = Fn({}, n, t.attrs);
|
|
1527
|
-
return D(
|
|
1527
|
+
return D(J, Fn({}, a, {
|
|
1528
1528
|
icon: yo
|
|
1529
1529
|
}), null);
|
|
1530
1530
|
};
|
|
@@ -1547,7 +1547,7 @@ function _o(e, n, t) {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
var Lt = function(n, t) {
|
|
1549
1549
|
var a = Hn({}, n, t.attrs);
|
|
1550
|
-
return D(
|
|
1550
|
+
return D(J, Hn({}, a, {
|
|
1551
1551
|
icon: wo
|
|
1552
1552
|
}), null);
|
|
1553
1553
|
};
|
|
@@ -1570,7 +1570,7 @@ function xo(e, n, t) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
var Ut = function(n, t) {
|
|
1572
1572
|
var a = Yn({}, n, t.attrs);
|
|
1573
|
-
return D(
|
|
1573
|
+
return D(J, Yn({}, a, {
|
|
1574
1574
|
icon: Oo
|
|
1575
1575
|
}), null);
|
|
1576
1576
|
};
|
|
@@ -1593,7 +1593,7 @@ function Po(e, n, t) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
var gt = function(n, t) {
|
|
1595
1595
|
var a = Wn({}, n, t.attrs);
|
|
1596
|
-
return D(
|
|
1596
|
+
return D(J, Wn({}, a, {
|
|
1597
1597
|
icon: Co
|
|
1598
1598
|
}), null);
|
|
1599
1599
|
};
|
|
@@ -1616,7 +1616,7 @@ function Ao(e, n, t) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
var It = function(n, t) {
|
|
1618
1618
|
var a = Gn({}, n, t.attrs);
|
|
1619
|
-
return D(
|
|
1619
|
+
return D(J, Gn({}, a, {
|
|
1620
1620
|
icon: ko
|
|
1621
1621
|
}), null);
|
|
1622
1622
|
};
|
|
@@ -1639,7 +1639,7 @@ function Mo(e, n, t) {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
var Ft = function(n, t) {
|
|
1641
1641
|
var a = Jn({}, n, t.attrs);
|
|
1642
|
-
return D(
|
|
1642
|
+
return D(J, Jn({}, a, {
|
|
1643
1643
|
icon: To
|
|
1644
1644
|
}), null);
|
|
1645
1645
|
};
|
|
@@ -1662,7 +1662,7 @@ function $o(e, n, t) {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
var Ht = function(n, t) {
|
|
1664
1664
|
var a = Zn({}, n, t.attrs);
|
|
1665
|
-
return D(
|
|
1665
|
+
return D(J, Zn({}, a, {
|
|
1666
1666
|
icon: Vo
|
|
1667
1667
|
}), null);
|
|
1668
1668
|
};
|
|
@@ -1685,7 +1685,7 @@ function zo(e, n, t) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
var Yt = function(n, t) {
|
|
1687
1687
|
var a = Kn({}, n, t.attrs);
|
|
1688
|
-
return D(
|
|
1688
|
+
return D(J, Kn({}, a, {
|
|
1689
1689
|
icon: jo
|
|
1690
1690
|
}), null);
|
|
1691
1691
|
};
|
|
@@ -1708,7 +1708,7 @@ function Do(e, n, t) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
var Wt = function(n, t) {
|
|
1710
1710
|
var a = Qn({}, n, t.attrs);
|
|
1711
|
-
return D(
|
|
1711
|
+
return D(J, Qn({}, a, {
|
|
1712
1712
|
icon: qo
|
|
1713
1713
|
}), null);
|
|
1714
1714
|
};
|
|
@@ -1731,7 +1731,7 @@ function No(e, n, t) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
var Gt = function(n, t) {
|
|
1733
1733
|
var a = Xn({}, n, t.attrs);
|
|
1734
|
-
return D(
|
|
1734
|
+
return D(J, Xn({}, a, {
|
|
1735
1735
|
icon: Bo
|
|
1736
1736
|
}), null);
|
|
1737
1737
|
};
|
|
@@ -1754,7 +1754,7 @@ function Eo(e, n, t) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
var Jt = function(n, t) {
|
|
1756
1756
|
var a = ea({}, n, t.attrs);
|
|
1757
|
-
return D(
|
|
1757
|
+
return D(J, ea({}, a, {
|
|
1758
1758
|
icon: Ro
|
|
1759
1759
|
}), null);
|
|
1760
1760
|
};
|
|
@@ -1777,7 +1777,7 @@ function Uo(e, n, t) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
var Zt = function(n, t) {
|
|
1779
1779
|
var a = ta({}, n, t.attrs);
|
|
1780
|
-
return D(
|
|
1780
|
+
return D(J, ta({}, a, {
|
|
1781
1781
|
icon: Lo
|
|
1782
1782
|
}), null);
|
|
1783
1783
|
};
|
|
@@ -1800,7 +1800,7 @@ function Fo(e, n, t) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
var Kt = function(n, t) {
|
|
1802
1802
|
var a = na({}, n, t.attrs);
|
|
1803
|
-
return D(
|
|
1803
|
+
return D(J, na({}, a, {
|
|
1804
1804
|
icon: Io
|
|
1805
1805
|
}), null);
|
|
1806
1806
|
};
|
|
@@ -1823,7 +1823,7 @@ function Yo(e, n, t) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
var Qt = function(n, t) {
|
|
1825
1825
|
var a = aa({}, n, t.attrs);
|
|
1826
|
-
return D(
|
|
1826
|
+
return D(J, aa({}, a, {
|
|
1827
1827
|
icon: Ho
|
|
1828
1828
|
}), null);
|
|
1829
1829
|
};
|
|
@@ -1846,7 +1846,7 @@ function Go(e, n, t) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
var Xt = function(n, t) {
|
|
1848
1848
|
var a = la({}, n, t.attrs);
|
|
1849
|
-
return D(
|
|
1849
|
+
return D(J, la({}, a, {
|
|
1850
1850
|
icon: Wo
|
|
1851
1851
|
}), null);
|
|
1852
1852
|
};
|
|
@@ -1869,7 +1869,7 @@ function Zo(e, n, t) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
var en = function(n, t) {
|
|
1871
1871
|
var a = ra({}, n, t.attrs);
|
|
1872
|
-
return D(
|
|
1872
|
+
return D(J, ra({}, a, {
|
|
1873
1873
|
icon: Jo
|
|
1874
1874
|
}), null);
|
|
1875
1875
|
};
|
|
@@ -1892,7 +1892,7 @@ function Qo(e, n, t) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
var tn = function(n, t) {
|
|
1894
1894
|
var a = oa({}, n, t.attrs);
|
|
1895
|
-
return D(
|
|
1895
|
+
return D(J, oa({}, a, {
|
|
1896
1896
|
icon: Ko
|
|
1897
1897
|
}), null);
|
|
1898
1898
|
};
|
|
@@ -1915,7 +1915,7 @@ function ei(e, n, t) {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
var nn = function(n, t) {
|
|
1917
1917
|
var a = ia({}, n, t.attrs);
|
|
1918
|
-
return D(
|
|
1918
|
+
return D(J, ia({}, a, {
|
|
1919
1919
|
icon: Xo
|
|
1920
1920
|
}), null);
|
|
1921
1921
|
};
|
|
@@ -1938,7 +1938,7 @@ function ni(e, n, t) {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
var an = function(n, t) {
|
|
1940
1940
|
var a = sa({}, n, t.attrs);
|
|
1941
|
-
return D(
|
|
1941
|
+
return D(J, sa({}, a, {
|
|
1942
1942
|
icon: ti
|
|
1943
1943
|
}), null);
|
|
1944
1944
|
};
|
|
@@ -1961,7 +1961,7 @@ function li(e, n, t) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
var ln = function(n, t) {
|
|
1963
1963
|
var a = ua({}, n, t.attrs);
|
|
1964
|
-
return D(
|
|
1964
|
+
return D(J, ua({}, a, {
|
|
1965
1965
|
icon: ai
|
|
1966
1966
|
}), null);
|
|
1967
1967
|
};
|
|
@@ -1984,7 +1984,7 @@ function oi(e, n, t) {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
var rn = function(n, t) {
|
|
1986
1986
|
var a = ca({}, n, t.attrs);
|
|
1987
|
-
return D(
|
|
1987
|
+
return D(J, ca({}, a, {
|
|
1988
1988
|
icon: ri
|
|
1989
1989
|
}), null);
|
|
1990
1990
|
};
|
|
@@ -2007,7 +2007,7 @@ function si(e, n, t) {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
var on = function(n, t) {
|
|
2009
2009
|
var a = da({}, n, t.attrs);
|
|
2010
|
-
return D(
|
|
2010
|
+
return D(J, da({}, a, {
|
|
2011
2011
|
icon: ii
|
|
2012
2012
|
}), null);
|
|
2013
2013
|
};
|
|
@@ -2030,7 +2030,7 @@ function ci(e, n, t) {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
var sn = function(n, t) {
|
|
2032
2032
|
var a = fa({}, n, t.attrs);
|
|
2033
|
-
return D(
|
|
2033
|
+
return D(J, fa({}, a, {
|
|
2034
2034
|
icon: ui
|
|
2035
2035
|
}), null);
|
|
2036
2036
|
};
|
|
@@ -2080,7 +2080,7 @@ const di = (e) => {
|
|
|
2080
2080
|
whiteSpace: "pre-wrap"
|
|
2081
2081
|
}
|
|
2082
2082
|
});
|
|
2083
|
-
},
|
|
2083
|
+
}, Be = (e) => {
|
|
2084
2084
|
Pt.warning({
|
|
2085
2085
|
message: "操作提示",
|
|
2086
2086
|
description: e
|
|
@@ -2088,23 +2088,23 @@ const di = (e) => {
|
|
|
2088
2088
|
}, je = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle", pi = (e) => {
|
|
2089
2089
|
const n = /{([^}]+)}/g, t = e.match(n);
|
|
2090
2090
|
return t ? t.map((a) => a.slice(1, -1)) : [];
|
|
2091
|
-
},
|
|
2091
|
+
}, He = async (e, n) => A.requestPlugin != null && typeof A.requestPlugin == "function" ? await A.requestPlugin(e, n) : (mt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null), un = async (e, n, t) => {
|
|
2092
2092
|
const a = zt(e, t.dictType);
|
|
2093
2093
|
if (c(a))
|
|
2094
2094
|
return a;
|
|
2095
2095
|
{
|
|
2096
|
-
const l = await
|
|
2096
|
+
const l = await He(n, t);
|
|
2097
2097
|
return l.success && l.data && l.data.length > 0 ? (jt(e, t.dictType, l.data), l.data) : [];
|
|
2098
2098
|
}
|
|
2099
|
-
},
|
|
2100
|
-
const t = await
|
|
2099
|
+
}, Re = async (e, n) => {
|
|
2100
|
+
const t = await He(e, n);
|
|
2101
2101
|
return t.success && t.data && t.data.length > 0 ? t.data : [];
|
|
2102
2102
|
}, nl = async (e, n, t, a) => {
|
|
2103
2103
|
const l = c(a) ? zt(t, a) : [];
|
|
2104
2104
|
if (c(l))
|
|
2105
2105
|
return l;
|
|
2106
2106
|
{
|
|
2107
|
-
const r = await
|
|
2107
|
+
const r = await He(e, n);
|
|
2108
2108
|
return r.success && r.data && r.data.length > 0 ? (jt(t, a, r.data), r.data) : [];
|
|
2109
2109
|
}
|
|
2110
2110
|
}, al = (e, n) => {
|
|
@@ -2124,7 +2124,7 @@ const di = (e) => {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
return null;
|
|
2126
2126
|
}, pa = (e, n, t, a, l = !1) => {
|
|
2127
|
-
n.loading = !0,
|
|
2127
|
+
n.loading = !0, He(t, a).then((r) => {
|
|
2128
2128
|
if (n.loading = !1, (A.messageResp || r.success) && fi(r.success, r.message), r.success || l) {
|
|
2129
2129
|
const o = e.value;
|
|
2130
2130
|
o && o.commitProxy("query");
|
|
@@ -2158,7 +2158,7 @@ function mi(e) {
|
|
|
2158
2158
|
if (t.title = K(m.params.title, o.title), t.width = K(m.params.width, o.width), t.height = K(m.params.height, o.height), t.maximize = K(m.params.maximize, !1), t.autoLoad = K(m.params.autoLoad, !1), t.componentVue = K(m.params.componentVue, o.componentVue), t.componentUrl = m.params.requestUrl, t.componentVue)
|
|
2159
2159
|
d[A.buttonKeyName] = m.params;
|
|
2160
2160
|
else {
|
|
2161
|
-
let S =
|
|
2161
|
+
let S = ae(l.ctxPath, t.componentUrl);
|
|
2162
2162
|
for (const C in d)
|
|
2163
2163
|
S = S.replace("{" + C + "}", d[C]);
|
|
2164
2164
|
t.componentUrl = S;
|
|
@@ -2169,27 +2169,27 @@ function mi(e) {
|
|
|
2169
2169
|
const C = await h(m);
|
|
2170
2170
|
if (m.requestRow && !c(C))
|
|
2171
2171
|
return;
|
|
2172
|
-
if (m.requestType ===
|
|
2172
|
+
if (m.requestType === Ue || m.requestType === et) {
|
|
2173
2173
|
let b = m.requestUrl;
|
|
2174
2174
|
const w = K(m.componentVue, o.componentVue);
|
|
2175
|
-
if ((!w || m.requestType === et) && (b =
|
|
2175
|
+
if ((!w || m.requestType === et) && (b = ae(l.ctxPath, b), m.requestRow && b.split("?").length > 1)) {
|
|
2176
2176
|
const g = pi(b.split("?")[1]);
|
|
2177
2177
|
for (const x in g) {
|
|
2178
2178
|
const j = g[x];
|
|
2179
2179
|
if (a.checkboxConfig) {
|
|
2180
|
-
let
|
|
2181
|
-
for (const
|
|
2182
|
-
for (const
|
|
2183
|
-
|
|
2184
|
-
let
|
|
2185
|
-
for (const
|
|
2186
|
-
|
|
2187
|
-
b = b.replace("{" + j + "}",
|
|
2180
|
+
let F = [];
|
|
2181
|
+
for (const N in C)
|
|
2182
|
+
for (const R in C[N])
|
|
2183
|
+
R === j && C[N][R] && (F[C[N][R]] = C[N][R]);
|
|
2184
|
+
let X = "";
|
|
2185
|
+
for (const N in F)
|
|
2186
|
+
X = (X ? X + "," : "") + N;
|
|
2187
|
+
b = b.replace("{" + j + "}", X);
|
|
2188
2188
|
} else
|
|
2189
2189
|
b = b.replace("{" + j + "}", C[j]);
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
|
-
if (m.requestType ===
|
|
2192
|
+
if (m.requestType === Ue) {
|
|
2193
2193
|
if (t.title = K(m.title, o.title), t.width = K(m.width, o.width), t.height = K(m.height, o.height), t.maximize = K(m.maximize, !1), t.autoLoad = K(m.autoLoad, !0), t.componentVue = w, t.componentUrl = b, t.componentParams = {}, m.requestRow)
|
|
2194
2194
|
if (a.checkboxConfig)
|
|
2195
2195
|
if (m.requestRadio)
|
|
@@ -2209,7 +2209,7 @@ function mi(e) {
|
|
|
2209
2209
|
ut(
|
|
2210
2210
|
m.requestTitle,
|
|
2211
2211
|
() => {
|
|
2212
|
-
let b =
|
|
2212
|
+
let b = ae(l.ctxPath, m.requestUrl);
|
|
2213
2213
|
if (b.split("?").length > 1) {
|
|
2214
2214
|
if (a.radioConfig)
|
|
2215
2215
|
for (const w in C)
|
|
@@ -2230,16 +2230,16 @@ function mi(e) {
|
|
|
2230
2230
|
);
|
|
2231
2231
|
}
|
|
2232
2232
|
}, v = (d, m) => {
|
|
2233
|
-
if (d.requestType ===
|
|
2233
|
+
if (d.requestType === Ue || d.requestType === et) {
|
|
2234
2234
|
let S = d.requestUrl;
|
|
2235
2235
|
const C = K(d.componentVue, o.componentVue);
|
|
2236
2236
|
let b = !1;
|
|
2237
2237
|
if (C)
|
|
2238
2238
|
b = !0;
|
|
2239
|
-
else if (S =
|
|
2239
|
+
else if (S = ae(l.ctxPath, S), S.split("?").length > 1)
|
|
2240
2240
|
for (const w in m) {
|
|
2241
2241
|
if (S.indexOf("{" + w + "}") > -1 && (b = !0, m[w] === "")) {
|
|
2242
|
-
|
|
2242
|
+
Be("该单据没有相应数据,无法进行本次操作");
|
|
2243
2243
|
return;
|
|
2244
2244
|
}
|
|
2245
2245
|
S = S.replace("{" + w + "}", m[w]);
|
|
@@ -2247,16 +2247,16 @@ function mi(e) {
|
|
|
2247
2247
|
else
|
|
2248
2248
|
b = !0;
|
|
2249
2249
|
if (b)
|
|
2250
|
-
d.requestType ===
|
|
2250
|
+
d.requestType === Ue ? (m[A.buttonKeyName] = d, t.title = K(d.title, o.title), t.width = K(d.width, o.width), t.height = K(d.height, o.height), t.maximize = K(d.maximize, !1), t.autoLoad = K(d.autoLoad, !0), t.componentVue = C, t.componentUrl = S, t.componentParams = m, t.visible = !0) : window.open(S, "_blank");
|
|
2251
2251
|
else {
|
|
2252
|
-
|
|
2252
|
+
Be("该单据没有相应数据,无法进行本次操作");
|
|
2253
2253
|
return;
|
|
2254
2254
|
}
|
|
2255
2255
|
} else
|
|
2256
2256
|
ut(
|
|
2257
2257
|
d.requestTitle,
|
|
2258
2258
|
() => {
|
|
2259
|
-
let S =
|
|
2259
|
+
let S = ae(l.ctxPath, d.requestUrl);
|
|
2260
2260
|
for (const C in m)
|
|
2261
2261
|
S = S.replace("{" + C + "}", m[C]);
|
|
2262
2262
|
pa(n, a, S, m);
|
|
@@ -2268,7 +2268,7 @@ function mi(e) {
|
|
|
2268
2268
|
const m = await al(n, a);
|
|
2269
2269
|
let S = null;
|
|
2270
2270
|
if (a.checkboxConfig ? !m || m.length === 0 ? S = "请至少选择一行数据" : d.requestRadio && m.length !== 1 && (S = "请只选择一条数据") : a.radioConfig ? m || (S = "请选择一行数据") : S = "请设置表格【rowType】类型参数", S) {
|
|
2271
|
-
|
|
2271
|
+
Be(S);
|
|
2272
2272
|
return;
|
|
2273
2273
|
}
|
|
2274
2274
|
return m;
|
|
@@ -2303,11 +2303,11 @@ function gi(e) {
|
|
|
2303
2303
|
let b = f.requestDownload;
|
|
2304
2304
|
if (c(b)) {
|
|
2305
2305
|
if (l.loading) {
|
|
2306
|
-
|
|
2306
|
+
Be("正在导出中,请不要重复点击!");
|
|
2307
2307
|
return;
|
|
2308
2308
|
}
|
|
2309
2309
|
if (p.isMerge && typeof b != "object") {
|
|
2310
|
-
|
|
2310
|
+
Be("合并列模式请设置requestDownload参数为表格列格式");
|
|
2311
2311
|
return;
|
|
2312
2312
|
}
|
|
2313
2313
|
ut("确定要导出表格所有内容吗?", () => {
|
|
@@ -2323,51 +2323,51 @@ function gi(e) {
|
|
|
2323
2323
|
setTimeout(w, 2e3);
|
|
2324
2324
|
const g = a.value;
|
|
2325
2325
|
if (g) {
|
|
2326
|
-
const { filter: x, form: j, sort:
|
|
2326
|
+
const { filter: x, form: j, sort: F } = g.getProxyInfo(), N = kt({
|
|
2327
2327
|
currentPage: 1,
|
|
2328
2328
|
pageSize: 25e3
|
|
2329
|
-
},
|
|
2329
|
+
}, F, x, j, t, o);
|
|
2330
2330
|
if (typeof b == "string") {
|
|
2331
|
-
b =
|
|
2332
|
-
let
|
|
2333
|
-
Object.keys(
|
|
2334
|
-
c(
|
|
2335
|
-
}),
|
|
2331
|
+
b = ae(s.ctxPath, f.requestDownload);
|
|
2332
|
+
let R = "";
|
|
2333
|
+
Object.keys(N).forEach((Z) => {
|
|
2334
|
+
c(N[Z]) && (typeof N[Z] == "string" && (R += "&" + Z + "=" + N[Z]), typeof N[Z] == "object" && Array.isArray(N[Z]) && (R += "&" + Z + "=" + N[Z].join(",")));
|
|
2335
|
+
}), re("导出表格参数", [b, R]), di(b + R);
|
|
2336
2336
|
} else
|
|
2337
|
-
l.loading = !0,
|
|
2338
|
-
if (
|
|
2337
|
+
l.loading = !0, N.exportFlag = !0, r(N, f.requestData, !0).then(async (R) => {
|
|
2338
|
+
if (R == null || R.rows.length == 0) {
|
|
2339
2339
|
l.loading = !1;
|
|
2340
2340
|
return;
|
|
2341
2341
|
}
|
|
2342
|
-
if (
|
|
2343
|
-
l.loading = !1,
|
|
2342
|
+
if (R.recordCount >= 25e3) {
|
|
2343
|
+
l.loading = !1, Be("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2344
2344
|
return;
|
|
2345
2345
|
}
|
|
2346
2346
|
setTimeout(() => {
|
|
2347
2347
|
if (m && typeof m == "function") {
|
|
2348
|
-
const
|
|
2348
|
+
const Z = {
|
|
2349
2349
|
filename: s.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2350
2350
|
sheetName: s.templateTitle,
|
|
2351
|
-
data:
|
|
2351
|
+
data: R.rows,
|
|
2352
2352
|
columns: c(l.params.exportColumns) ? l.params.exportColumns : b,
|
|
2353
|
-
mergeCells: i(
|
|
2353
|
+
mergeCells: i(R.rows)
|
|
2354
2354
|
};
|
|
2355
|
-
m(
|
|
2355
|
+
m(Z), l.loading = !1;
|
|
2356
2356
|
} else {
|
|
2357
|
-
const
|
|
2357
|
+
const Z = R.rows.concat([]), E = {
|
|
2358
2358
|
filename: s.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2359
2359
|
sheetName: s.templateTitle,
|
|
2360
2360
|
type: "xlsx",
|
|
2361
|
-
data:
|
|
2361
|
+
data: Z,
|
|
2362
2362
|
message: !1,
|
|
2363
2363
|
columns: c(l.params.exportColumns) ? l.params.exportColumns : l.columns,
|
|
2364
2364
|
isFooter: p.isFooter,
|
|
2365
2365
|
isMerge: p.isMerge,
|
|
2366
|
-
columnFilterMethod(
|
|
2367
|
-
return !A.templateTable.ignoreExportColumnsTitle.includes(
|
|
2366
|
+
columnFilterMethod(ee) {
|
|
2367
|
+
return !A.templateTable.ignoreExportColumnsTitle.includes(ee?.column?.title);
|
|
2368
2368
|
}
|
|
2369
2369
|
};
|
|
2370
|
-
|
|
2370
|
+
re("导出参数", E), g.exportData(E).then(() => {
|
|
2371
2371
|
l.loading = !1;
|
|
2372
2372
|
});
|
|
2373
2373
|
}
|
|
@@ -2382,11 +2382,11 @@ function gi(e) {
|
|
|
2382
2382
|
importEvent: () => {
|
|
2383
2383
|
top && top.openOtherPages ? top.openOtherPages(
|
|
2384
2384
|
"VIEW_QUERY_" + s.templateTitle,
|
|
2385
|
-
|
|
2385
|
+
ae(s.ctxPath, f.requestImport),
|
|
2386
2386
|
s.templateTitle + "导入",
|
|
2387
2387
|
!1,
|
|
2388
2388
|
!1
|
|
2389
|
-
) : window.open(
|
|
2389
|
+
) : window.open(ae(s.ctxPath, f.requestImport), "_blank");
|
|
2390
2390
|
},
|
|
2391
2391
|
switchColumsEvent: (m, S = !1) => {
|
|
2392
2392
|
if (c(u.tableColumnsExtra)) {
|
|
@@ -2414,7 +2414,7 @@ const Ve = /* @__PURE__ */ W({
|
|
|
2414
2414
|
},
|
|
2415
2415
|
setup(e) {
|
|
2416
2416
|
const n = e;
|
|
2417
|
-
return (t, a) => (O(),
|
|
2417
|
+
return (t, a) => (O(), I(pe, null, [
|
|
2418
2418
|
n.icon === "user" ? (O(), z(y(sn), { key: 0 })) : q("", !0),
|
|
2419
2419
|
n.icon === "excel" ? (O(), z(y(Yt), { key: 1 })) : q("", !0),
|
|
2420
2420
|
n.icon === "download" ? (O(), z(y(It), { key: 2 })) : q("", !0),
|
|
@@ -2504,7 +2504,7 @@ const bi = {
|
|
|
2504
2504
|
}, yi = {
|
|
2505
2505
|
placeholder: "请选择时间",
|
|
2506
2506
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
2507
|
-
},
|
|
2507
|
+
}, Ye = {
|
|
2508
2508
|
lang: ct({
|
|
2509
2509
|
placeholder: "请选择日期",
|
|
2510
2510
|
yearPlaceholder: "请选择年份",
|
|
@@ -2519,7 +2519,7 @@ const bi = {
|
|
|
2519
2519
|
}, bi),
|
|
2520
2520
|
timePickerLocale: ct({}, yi)
|
|
2521
2521
|
};
|
|
2522
|
-
|
|
2522
|
+
Ye.lang.ok = "确定";
|
|
2523
2523
|
var lt = { exports: {} }, Si = lt.exports, ga;
|
|
2524
2524
|
function wi() {
|
|
2525
2525
|
return ga || (ga = 1, (function(e, n) {
|
|
@@ -2667,7 +2667,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2667
2667
|
{ label: "近三年", value: [M().add(-3, r)] },
|
|
2668
2668
|
{ label: "近五年", value: [M().add(-5, r)] }
|
|
2669
2669
|
], h = $(l === "year" ? v : l === "month" ? f : p), d = t, m = (g, x) => {
|
|
2670
|
-
|
|
2670
|
+
re("日期区间选值", x), x && x[0] == "" && x[1] == "" ? d("update:value", null) : d("update:value", x);
|
|
2671
2671
|
}, S = () => {
|
|
2672
2672
|
let g = null, x = null;
|
|
2673
2673
|
return u.value && u.value[0] && (g = M(u.value[0]).format(o)), u.value && u.value[1] && (x = M(u.value[1]).format(o)), !g && !x ? null : [g, x];
|
|
@@ -2680,7 +2680,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2680
2680
|
}, b = () => {
|
|
2681
2681
|
c(a.defaultValue) ? C([a.defaultValue, null]) : C(null);
|
|
2682
2682
|
}, w = () => "dateRange";
|
|
2683
|
-
return
|
|
2683
|
+
return ie(() => {
|
|
2684
2684
|
b();
|
|
2685
2685
|
}), n({
|
|
2686
2686
|
setValue: C,
|
|
@@ -2688,13 +2688,13 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2688
2688
|
resetValue: b,
|
|
2689
2689
|
getRefType: w
|
|
2690
2690
|
}), (g, x) => {
|
|
2691
|
-
const j =
|
|
2691
|
+
const j = U("a-range-picker");
|
|
2692
2692
|
return O(), z(j, {
|
|
2693
2693
|
value: y(u),
|
|
2694
|
-
"onUpdate:value": x[0] || (x[0] = (
|
|
2694
|
+
"onUpdate:value": x[0] || (x[0] = (F) => dt(u) ? u.value = F : u = F),
|
|
2695
2695
|
onChange: m,
|
|
2696
2696
|
presets: h.value,
|
|
2697
|
-
locale: y(
|
|
2697
|
+
locale: y(Ye),
|
|
2698
2698
|
allowEmpty: [!0, !0],
|
|
2699
2699
|
format: y(o),
|
|
2700
2700
|
picker: y(l),
|
|
@@ -2722,7 +2722,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2722
2722
|
const a = e, l = fe(he), r = je(l?.size), o = T.toString(a.picker, "date"), i = T.toString(a.format, "YYYY-MM-DD"), s = t;
|
|
2723
2723
|
let u = $();
|
|
2724
2724
|
const p = (d, m) => {
|
|
2725
|
-
|
|
2725
|
+
re("日期选值", m), !m || m == "" ? s("update:value", null) : s("update:value", m);
|
|
2726
2726
|
}, f = () => {
|
|
2727
2727
|
let d = null;
|
|
2728
2728
|
return u.value && (d = M(u.value).format(i)), d || null;
|
|
@@ -2731,19 +2731,19 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2731
2731
|
}, h = () => {
|
|
2732
2732
|
c(a.defaultValue) ? v(a.defaultValue) : v(null);
|
|
2733
2733
|
};
|
|
2734
|
-
return
|
|
2734
|
+
return ie(() => {
|
|
2735
2735
|
h();
|
|
2736
2736
|
}), n({
|
|
2737
2737
|
setValue: v,
|
|
2738
2738
|
getValue: f,
|
|
2739
2739
|
resetValue: h
|
|
2740
2740
|
}), (d, m) => {
|
|
2741
|
-
const S =
|
|
2741
|
+
const S = U("a-date-picker");
|
|
2742
2742
|
return O(), z(S, {
|
|
2743
2743
|
value: y(u),
|
|
2744
2744
|
"onUpdate:value": m[0] || (m[0] = (C) => dt(u) ? u.value = C : u = C),
|
|
2745
2745
|
onChange: p,
|
|
2746
|
-
locale: y(
|
|
2746
|
+
locale: y(Ye),
|
|
2747
2747
|
format: y(i),
|
|
2748
2748
|
picker: y(o),
|
|
2749
2749
|
size: y(r),
|
|
@@ -2777,10 +2777,10 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2777
2777
|
resetValue: () => {
|
|
2778
2778
|
o.value = a.defaultValue || "", s("update:value", o.value);
|
|
2779
2779
|
}
|
|
2780
|
-
}),
|
|
2780
|
+
}), ie(() => {
|
|
2781
2781
|
s("update:value", o.value);
|
|
2782
2782
|
}), (h, d) => {
|
|
2783
|
-
const m =
|
|
2783
|
+
const m = U("a-input");
|
|
2784
2784
|
return O(), z(m, {
|
|
2785
2785
|
value: o.value,
|
|
2786
2786
|
"onUpdate:value": d[0] || (d[0] = (S) => o.value = S),
|
|
@@ -2811,7 +2811,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2811
2811
|
setup(e, { expose: n, emit: t }) {
|
|
2812
2812
|
const a = e, l = fe(he), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", s = je(l?.size), u = $(a.multiple ? [] : null), p = t, f = $([]), v = async () => {
|
|
2813
2813
|
let b = a.request.requestUrl;
|
|
2814
|
-
return !b && r && (b = i), b ? (b =
|
|
2814
|
+
return !b && r && (b = i), b ? (b = ae(o, b), await un(r, b, a.request)) : (re("下拉框插槽未获取到请求地址"), []);
|
|
2815
2815
|
}, h = (b, w) => w.label.toLowerCase().indexOf(b.toLowerCase()) >= 0, d = () => {
|
|
2816
2816
|
p("update:value", u.value);
|
|
2817
2817
|
}, m = () => u.value, S = (b) => {
|
|
@@ -2823,13 +2823,13 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2823
2823
|
resetValue: () => {
|
|
2824
2824
|
a.multiple ? S(a.defaultValue || []) : S(a.defaultValue || null);
|
|
2825
2825
|
}
|
|
2826
|
-
}),
|
|
2826
|
+
}), ie(() => {
|
|
2827
2827
|
p("update:value", u.value), v().then((b) => {
|
|
2828
2828
|
f.value = b;
|
|
2829
2829
|
});
|
|
2830
2830
|
}), (b, w) => {
|
|
2831
|
-
const g =
|
|
2832
|
-
return O(),
|
|
2831
|
+
const g = U("a-select");
|
|
2832
|
+
return O(), I("div", $i, [
|
|
2833
2833
|
D(g, {
|
|
2834
2834
|
value: u.value,
|
|
2835
2835
|
"onUpdate:value": w[0] || (w[0] = (x) => u.value = x),
|
|
@@ -2874,7 +2874,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2874
2874
|
v.value = !0;
|
|
2875
2875
|
const x = {
|
|
2876
2876
|
searchValue: ke(g)
|
|
2877
|
-
}, j = await
|
|
2877
|
+
}, j = await Re(ae(r, a.requestUrl), {
|
|
2878
2878
|
...a.requestParams,
|
|
2879
2879
|
...x
|
|
2880
2880
|
});
|
|
@@ -2889,9 +2889,9 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2889
2889
|
s.value = g, f("update:value", g);
|
|
2890
2890
|
}, S = () => u.value, C = () => s.value, b = (g, x = null) => {
|
|
2891
2891
|
s.value = g, u.value = x;
|
|
2892
|
-
let j = p.value.filter((
|
|
2893
|
-
j.length === 1 ? u.value = j[0].label : h(g).then((
|
|
2894
|
-
p.value =
|
|
2892
|
+
let j = p.value.filter((F) => F.value === s.value);
|
|
2893
|
+
j.length === 1 ? u.value = j[0].label : h(g).then((F) => {
|
|
2894
|
+
p.value = F;
|
|
2895
2895
|
}), f("update:value", g);
|
|
2896
2896
|
};
|
|
2897
2897
|
return n({
|
|
@@ -2902,11 +2902,11 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2902
2902
|
b(a.defaultValue, a.defaultName);
|
|
2903
2903
|
}
|
|
2904
2904
|
}), (g, x) => {
|
|
2905
|
-
const j =
|
|
2906
|
-
return O(),
|
|
2907
|
-
D(
|
|
2905
|
+
const j = U("a-spin"), F = U("a-select");
|
|
2906
|
+
return O(), I("div", zi, [
|
|
2907
|
+
D(F, {
|
|
2908
2908
|
value: s.value,
|
|
2909
|
-
"onUpdate:value": x[0] || (x[0] = (
|
|
2909
|
+
"onUpdate:value": x[0] || (x[0] = (X) => s.value = X),
|
|
2910
2910
|
placeholder: i,
|
|
2911
2911
|
disabled: a.disabled,
|
|
2912
2912
|
"filter-option": !1,
|
|
@@ -2950,15 +2950,15 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2950
2950
|
},
|
|
2951
2951
|
emits: ["update:value"],
|
|
2952
2952
|
setup(e, { expose: n, emit: t }) {
|
|
2953
|
-
const a = e, l = fe(he), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", s = $(a.multiple ? [] : null), u = $(""), p = $([]), f = $([]), v = t, h = (g, x) => x.label.toLowerCase().indexOf(ke(g).toLowerCase()) >= 0, d = async () => await
|
|
2953
|
+
const a = e, l = fe(he), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", s = $(a.multiple ? [] : null), u = $(""), p = $([]), f = $([]), v = t, h = (g, x) => x.label.toLowerCase().indexOf(ke(g).toLowerCase()) >= 0, d = async () => await Re(ae(r, a.requestUrl), a.requestParams), m = (g) => {
|
|
2954
2954
|
v("update:value", g);
|
|
2955
2955
|
}, S = () => u.value, C = () => s.value, b = (g) => {
|
|
2956
2956
|
s.value = g, v("update:value", s.value);
|
|
2957
2957
|
let x = f.value.filter((j) => j.value === s.value);
|
|
2958
2958
|
if (a.multiple) {
|
|
2959
2959
|
let j = "";
|
|
2960
|
-
x.forEach((
|
|
2961
|
-
j +=
|
|
2960
|
+
x.forEach((F) => {
|
|
2961
|
+
j += F.label + ",";
|
|
2962
2962
|
}), u.value = j;
|
|
2963
2963
|
} else
|
|
2964
2964
|
x.length === 1 && (u.value = x[0].label);
|
|
@@ -2973,11 +2973,11 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
2973
2973
|
}), d().then((g) => {
|
|
2974
2974
|
f.value = g, p.value = g;
|
|
2975
2975
|
}), (g, x) => {
|
|
2976
|
-
const j =
|
|
2977
|
-
return O(),
|
|
2976
|
+
const j = U("a-select");
|
|
2977
|
+
return O(), I("div", Di, [
|
|
2978
2978
|
D(j, {
|
|
2979
2979
|
value: s.value,
|
|
2980
|
-
"onUpdate:value": x[0] || (x[0] = (
|
|
2980
|
+
"onUpdate:value": x[0] || (x[0] = (F) => s.value = F),
|
|
2981
2981
|
placeholder: i,
|
|
2982
2982
|
disabled: a.disabled,
|
|
2983
2983
|
mode: a.multiple ? "multiple" : "",
|
|
@@ -3018,7 +3018,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
3018
3018
|
setup(e, { expose: n, emit: t }) {
|
|
3019
3019
|
const a = e, l = fe(he), r = l?.application || "", o = l?.ctxPath || "", i = je(l?.size), s = "请输入" + a.title + "搜索", u = a.fieldNames.label, p = a.fieldNames.value, f = $([]), v = $([]), h = async () => {
|
|
3020
3020
|
const x = await nl(
|
|
3021
|
-
|
|
3021
|
+
ae(o, a.requestUrl),
|
|
3022
3022
|
a.requestParams,
|
|
3023
3023
|
r,
|
|
3024
3024
|
"CASCADER_" + a.cacheKey
|
|
@@ -3026,12 +3026,12 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
3026
3026
|
v.value = x;
|
|
3027
3027
|
}, d = t, m = (x, j) => {
|
|
3028
3028
|
c(j) ? (d("update:value", x[x.length - 1]), d("change", j[j.length - 1])) : (d("update:value", null), d("change", null));
|
|
3029
|
-
}, S = (x, j) => j.some((
|
|
3029
|
+
}, S = (x, j) => j.some((F) => F[u].indexOf(x) > -1), C = () => v.value.filter((j) => j[p] === f.value[f.value.length - 1])[u], b = () => f.value, w = (x) => {
|
|
3030
3030
|
f.value = x, d("update:value", x);
|
|
3031
3031
|
}, g = () => {
|
|
3032
3032
|
f.value = null, d("update:value", null), d("change", null);
|
|
3033
3033
|
};
|
|
3034
|
-
return
|
|
3034
|
+
return ie(() => {
|
|
3035
3035
|
h();
|
|
3036
3036
|
}), n({
|
|
3037
3037
|
getName: C,
|
|
@@ -3039,11 +3039,11 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
3039
3039
|
setValue: w,
|
|
3040
3040
|
resetValue: g
|
|
3041
3041
|
}), (x, j) => {
|
|
3042
|
-
const
|
|
3043
|
-
return O(),
|
|
3044
|
-
D(
|
|
3042
|
+
const F = U("a-cascader");
|
|
3043
|
+
return O(), I("div", Ni, [
|
|
3044
|
+
D(F, {
|
|
3045
3045
|
value: f.value,
|
|
3046
|
-
"onUpdate:value": j[0] || (j[0] = (
|
|
3046
|
+
"onUpdate:value": j[0] || (j[0] = (X) => f.value = X),
|
|
3047
3047
|
options: v.value,
|
|
3048
3048
|
fieldNames: a.fieldNames,
|
|
3049
3049
|
"show-search": { filter: S },
|
|
@@ -3065,7 +3065,7 @@ const vt = /* @__PURE__ */ ll(Ci), rl = "CONSTANT_DIALOG_CONTAINER", he = "CONST
|
|
|
3065
3065
|
return t;
|
|
3066
3066
|
}, Li = {};
|
|
3067
3067
|
function Ui(e, n) {
|
|
3068
|
-
return O(),
|
|
3068
|
+
return O(), I("h2", null, "未获取到页面信息,请联系管理员!");
|
|
3069
3069
|
}
|
|
3070
3070
|
const Ii = /* @__PURE__ */ Ei(Li, [["render", Ui]]);
|
|
3071
3071
|
function ha(e, n = {}) {
|
|
@@ -3140,7 +3140,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3140
3140
|
s("cancel");
|
|
3141
3141
|
}, p = (C) => {
|
|
3142
3142
|
s("submit", C);
|
|
3143
|
-
}, f = $(null), v =
|
|
3143
|
+
}, f = $(null), v = ne({
|
|
3144
3144
|
width: t.maximize ? "100%" : t.width,
|
|
3145
3145
|
height: t.maximize ? i : t.height,
|
|
3146
3146
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
@@ -3152,11 +3152,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3152
3152
|
console.log("iframe关闭触发", C), u();
|
|
3153
3153
|
});
|
|
3154
3154
|
};
|
|
3155
|
-
return
|
|
3156
|
-
|
|
3155
|
+
return ie(() => {
|
|
3156
|
+
re("SagVxeDialog弹出参数", t), t.maximize && (f.value.fullScreen = !0);
|
|
3157
3157
|
}), (C, b) => {
|
|
3158
|
-
const w =
|
|
3159
|
-
return O(),
|
|
3158
|
+
const w = U("vxe-button"), g = U("a-modal");
|
|
3159
|
+
return O(), I("div", Hi, [
|
|
3160
3160
|
D(g, {
|
|
3161
3161
|
ref_key: "gridModal",
|
|
3162
3162
|
ref: f,
|
|
@@ -3178,8 +3178,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3178
3178
|
"destroy-on-close": ""
|
|
3179
3179
|
}, {
|
|
3180
3180
|
title: B(() => [
|
|
3181
|
-
|
|
3182
|
-
|
|
3181
|
+
Q("span", Yi, le(t.title), 1),
|
|
3182
|
+
Q("span", Wi, [
|
|
3183
3183
|
D(w, {
|
|
3184
3184
|
mode: "text",
|
|
3185
3185
|
icon: v.maxZoomIcon,
|
|
@@ -3188,11 +3188,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3188
3188
|
])
|
|
3189
3189
|
]),
|
|
3190
3190
|
default: B(() => [
|
|
3191
|
-
t.componentVue ? (O(), z(Al(r.value),
|
|
3191
|
+
t.componentVue ? (O(), z(Al(r.value), te({ key: 0 }, t.componentParams, {
|
|
3192
3192
|
onCancel: u,
|
|
3193
3193
|
onSubmit: p
|
|
3194
3194
|
}), null, 16)) : q("", !0),
|
|
3195
|
-
t.componentVue ? q("", !0) : (O(),
|
|
3195
|
+
t.componentVue ? q("", !0) : (O(), I("iframe", {
|
|
3196
3196
|
key: 1,
|
|
3197
3197
|
ref_key: "iframeRef",
|
|
3198
3198
|
ref: m,
|
|
@@ -3231,10 +3231,10 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3231
3231
|
resetValue: () => {
|
|
3232
3232
|
p(a.defaultValue || null);
|
|
3233
3233
|
}
|
|
3234
|
-
}),
|
|
3234
|
+
}), ie(() => {
|
|
3235
3235
|
i("update:value", u());
|
|
3236
3236
|
}), (v, h) => {
|
|
3237
|
-
const d =
|
|
3237
|
+
const d = U("vxe-input", !0);
|
|
3238
3238
|
return O(), z(d, {
|
|
3239
3239
|
"model-value": r.value,
|
|
3240
3240
|
placeholder: y(o),
|
|
@@ -3265,7 +3265,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3265
3265
|
},
|
|
3266
3266
|
emits: ["update:value"],
|
|
3267
3267
|
setup(e, { expose: n, emit: t }) {
|
|
3268
|
-
const a = e, l = fe(he), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", s = "请输入" + a.title + "搜索", u = $(""), p = $(""), f = $([]), v = t, h =
|
|
3268
|
+
const a = e, l = fe(he), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", s = "请输入" + a.title + "搜索", u = $(""), p = $(""), f = $([]), v = t, h = ne({
|
|
3269
3269
|
multiple: a.multiple,
|
|
3270
3270
|
filterable: a.filterable,
|
|
3271
3271
|
clearable: a.clearable,
|
|
@@ -3278,7 +3278,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3278
3278
|
}
|
|
3279
3279
|
}), d = async () => {
|
|
3280
3280
|
let g = a.request.requestUrl;
|
|
3281
|
-
return !g && o && (g = i), g ? (g =
|
|
3281
|
+
return !g && o && (g = i), g ? (g = ae(r, g), await un(o, g, a.request)) : (re("下拉框插槽未获取到请求地址"), []);
|
|
3282
3282
|
}, m = ({ value: g }) => {
|
|
3283
3283
|
v("update:value", g);
|
|
3284
3284
|
}, S = () => p.value, C = () => u.value, b = (g) => {
|
|
@@ -3293,15 +3293,15 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3293
3293
|
resetValue: () => {
|
|
3294
3294
|
b(a.defaultValue);
|
|
3295
3295
|
}
|
|
3296
|
-
}),
|
|
3296
|
+
}), ie(() => {
|
|
3297
3297
|
d().then((g) => {
|
|
3298
3298
|
!a.multiple && a.selectAll && (g = [{ label: "--全部--", value: "" }].concat(g)), f.value = g, h.options = g;
|
|
3299
3299
|
});
|
|
3300
3300
|
}), (g, x) => {
|
|
3301
|
-
const j =
|
|
3302
|
-
return O(), z(j,
|
|
3301
|
+
const j = U("vxe-select", !0);
|
|
3302
|
+
return O(), z(j, te({
|
|
3303
3303
|
modelValue: u.value,
|
|
3304
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
3304
|
+
"onUpdate:modelValue": x[0] || (x[0] = (F) => u.value = F)
|
|
3305
3305
|
}, h, {
|
|
3306
3306
|
size: y(l)?.size,
|
|
3307
3307
|
onChange: m,
|
|
@@ -3328,7 +3328,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3328
3328
|
},
|
|
3329
3329
|
emits: ["update:value"],
|
|
3330
3330
|
setup(e, { expose: n, emit: t }) {
|
|
3331
|
-
const a = e, l = fe(he), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = $(""), s = $(""), u = $([]), p = t, f =
|
|
3331
|
+
const a = e, l = fe(he), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = $(""), s = $(""), u = $([]), p = t, f = ne({
|
|
3332
3332
|
clearable: !0,
|
|
3333
3333
|
filterable: !0,
|
|
3334
3334
|
disabled: a.disabled,
|
|
@@ -3348,7 +3348,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3348
3348
|
const w = {
|
|
3349
3349
|
searchValue: ke(b)
|
|
3350
3350
|
};
|
|
3351
|
-
return await
|
|
3351
|
+
return await Re(ae(r, a.requestUrl), {
|
|
3352
3352
|
...a.requestParams,
|
|
3353
3353
|
...w
|
|
3354
3354
|
});
|
|
@@ -3371,8 +3371,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3371
3371
|
S(a.defaultValue);
|
|
3372
3372
|
}
|
|
3373
3373
|
}), (b, w) => {
|
|
3374
|
-
const g =
|
|
3375
|
-
return O(), z(g,
|
|
3374
|
+
const g = U("vxe-select");
|
|
3375
|
+
return O(), z(g, te({
|
|
3376
3376
|
modelValue: i.value,
|
|
3377
3377
|
"onUpdate:modelValue": w[0] || (w[0] = (x) => i.value = x)
|
|
3378
3378
|
}, f, {
|
|
@@ -3401,7 +3401,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3401
3401
|
},
|
|
3402
3402
|
emits: ["update:value"],
|
|
3403
3403
|
setup(e, { expose: n, emit: t }) {
|
|
3404
|
-
const a = e, l = fe(he), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = $(""), s = $(""), u = $([]), p = t, f =
|
|
3404
|
+
const a = e, l = fe(he), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = $(""), s = $(""), u = $([]), p = t, f = ne({
|
|
3405
3405
|
filterable: !0,
|
|
3406
3406
|
clearable: !0,
|
|
3407
3407
|
disabled: a.disabled,
|
|
@@ -3411,7 +3411,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3411
3411
|
filterMethod({ searchValue: b, option: w }) {
|
|
3412
3412
|
return w.label.toLowerCase().indexOf(ke(b).toLowerCase()) >= 0;
|
|
3413
3413
|
}
|
|
3414
|
-
}), v = async () => await
|
|
3414
|
+
}), v = async () => await Re(ae(r, a.requestUrl), a.requestParams), h = ({ value: b }) => {
|
|
3415
3415
|
p("update:value", b);
|
|
3416
3416
|
}, d = () => s.value, m = () => i.value, S = (b) => {
|
|
3417
3417
|
i.value = b, p("update:value", i.value);
|
|
@@ -3425,13 +3425,13 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3425
3425
|
resetValue: () => {
|
|
3426
3426
|
S(a.defaultValue);
|
|
3427
3427
|
}
|
|
3428
|
-
}),
|
|
3428
|
+
}), ie(() => {
|
|
3429
3429
|
v().then((b) => {
|
|
3430
3430
|
u.value = b, f.options = b;
|
|
3431
3431
|
});
|
|
3432
3432
|
}), (b, w) => {
|
|
3433
|
-
const g =
|
|
3434
|
-
return O(), z(g,
|
|
3433
|
+
const g = U("vxe-select");
|
|
3434
|
+
return O(), z(g, te({
|
|
3435
3435
|
modelValue: i.value,
|
|
3436
3436
|
"onUpdate:modelValue": w[0] || (w[0] = (x) => i.value = x)
|
|
3437
3437
|
}, f, {
|
|
@@ -3448,8 +3448,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3448
3448
|
const t = n, a = () => {
|
|
3449
3449
|
t("export", (r) => {
|
|
3450
3450
|
try {
|
|
3451
|
-
if (
|
|
3452
|
-
|
|
3451
|
+
if (re("excel下载参数", r), !c(Xe.ExcelJS)) {
|
|
3452
|
+
re("需配置加载exceljs和file-saver组件");
|
|
3453
3453
|
return;
|
|
3454
3454
|
}
|
|
3455
3455
|
const o = new Xe.ExcelJS.Workbook(), i = o.addWorksheet(r.sheetName);
|
|
@@ -3481,7 +3481,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3481
3481
|
o.xlsx.writeBuffer().then((p) => {
|
|
3482
3482
|
let f = new Blob([p], { type: "application/octet-stream" });
|
|
3483
3483
|
Xe.FileSaver.saveAs(f, r.filename + ".xlsx");
|
|
3484
|
-
}).catch((p) =>
|
|
3484
|
+
}).catch((p) => re("Error writing excel export", p));
|
|
3485
3485
|
} catch (o) {
|
|
3486
3486
|
mt("下载失败", o);
|
|
3487
3487
|
}
|
|
@@ -3541,7 +3541,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3541
3541
|
51: "AZ"
|
|
3542
3542
|
};
|
|
3543
3543
|
return (r, o) => {
|
|
3544
|
-
const i =
|
|
3544
|
+
const i = U("vxe-button");
|
|
3545
3545
|
return O(), z(i, {
|
|
3546
3546
|
size: "small",
|
|
3547
3547
|
circle: !0,
|
|
@@ -3549,7 +3549,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3549
3549
|
title: "导出"
|
|
3550
3550
|
}, {
|
|
3551
3551
|
default: B(() => o[1] || (o[1] = [
|
|
3552
|
-
|
|
3552
|
+
Q("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
3553
3553
|
])),
|
|
3554
3554
|
_: 1
|
|
3555
3555
|
});
|
|
@@ -3561,7 +3561,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3561
3561
|
__name: "SagVxePage",
|
|
3562
3562
|
emits: ["submit", "resetValue", "search"],
|
|
3563
3563
|
setup(e, { expose: n, emit: t }) {
|
|
3564
|
-
const a =
|
|
3564
|
+
const a = ne({
|
|
3565
3565
|
visible: !1,
|
|
3566
3566
|
maximize: !1,
|
|
3567
3567
|
autoLoad: !0,
|
|
@@ -3573,7 +3573,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3573
3573
|
height: A.targetModal.height,
|
|
3574
3574
|
maskClosable: A.targetModal.maskClosable,
|
|
3575
3575
|
mountainTop: A.targetModal.mountainTop
|
|
3576
|
-
}), l = Tl(), r =
|
|
3576
|
+
}), l = Tl(), r = ne({
|
|
3577
3577
|
application: T.toString(l.application, A.application),
|
|
3578
3578
|
ctxPath: T.toString(l.ctxPath, A.ctxPath),
|
|
3579
3579
|
size: T.toString(l.size, A.size),
|
|
@@ -3588,18 +3588,18 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3588
3588
|
//查询后触发
|
|
3589
3589
|
onButtonClickModule: T.toString(l.onButtonClickModule, null)
|
|
3590
3590
|
//按钮自定义事件
|
|
3591
|
-
}), o =
|
|
3591
|
+
}), o = ne({
|
|
3592
3592
|
requestData: T.toString(l?.templateRequest?.requestData, null),
|
|
3593
3593
|
requestDownload: T.toString(l?.templateRequest?.requestDownload, null),
|
|
3594
3594
|
requestImport: T.toString(l?.templateRequest?.requestImport, null)
|
|
3595
|
-
}), i =
|
|
3595
|
+
}), i = ne({
|
|
3596
3596
|
title: T.toString(l?.targetModal?.title, A.targetModal.title),
|
|
3597
3597
|
width: T.toString(l?.targetModal?.width, A.targetModal.width),
|
|
3598
3598
|
height: T.toString(l?.targetModal?.height, A.targetModal.height),
|
|
3599
3599
|
mountainTop: T.toString(l?.targetModal?.mountainTop, A.targetModal.mountainTop),
|
|
3600
3600
|
componentVue: T.toString(l?.targetModal?.componentVue, A.targetModal.componentVue),
|
|
3601
3601
|
maskClosable: T.toString(l?.targetModal?.maskClosable, A.targetModal.maskClosable)
|
|
3602
|
-
}), s =
|
|
3602
|
+
}), s = ne({
|
|
3603
3603
|
vxeSlot: T.toString(l?.templateForm?.vxeSlot, A.templateForm.vxeSlot),
|
|
3604
3604
|
storage: T.toString(l?.templateForm?.storage, A.templateForm.storage),
|
|
3605
3605
|
formProps: {
|
|
@@ -3630,7 +3630,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3630
3630
|
},
|
|
3631
3631
|
formItems: T.toString(l?.templateForm?.formItems, []),
|
|
3632
3632
|
formRules: T.toString(l?.templateForm?.formRules, {})
|
|
3633
|
-
}), u =
|
|
3633
|
+
}), u = ne({
|
|
3634
3634
|
rowType: T.toString(l?.templateTable?.rowType, null),
|
|
3635
3635
|
editConfig: T.toString(l?.templateTable?.editConfig, !1),
|
|
3636
3636
|
showFooter: T.toString(l?.templateTable?.showFooter, !1),
|
|
@@ -3644,7 +3644,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3644
3644
|
pageSizes: T.toString(l?.templateTable?.pageSizes, []),
|
|
3645
3645
|
layouts: T.toString(l?.templateTable?.layouts, null),
|
|
3646
3646
|
footerMethod: T.toString(l?.templateTable?.footerMethod, null)
|
|
3647
|
-
}), p =
|
|
3647
|
+
}), p = ne({
|
|
3648
3648
|
mergeKey: T.toString(l?.templateTable?.tableColumnMerge?.mergeKey, null),
|
|
3649
3649
|
seqKey: T.toString(l?.templateTable?.tableColumnMerge?.seqKey, null),
|
|
3650
3650
|
isMerge: T.toString(l?.templateTable?.tableColumnMerge?.isMerge, !1),
|
|
@@ -3654,11 +3654,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3654
3654
|
l?.templateTable?.tableColumnMerge?.backgroundColor,
|
|
3655
3655
|
A?.templateTable?.tableColumnMerge?.backgroundColor
|
|
3656
3656
|
)
|
|
3657
|
-
}), f =
|
|
3657
|
+
}), f = ne({
|
|
3658
3658
|
formButtons: T.toString(l?.templateTable?.tableButtons?.formButtons, []),
|
|
3659
3659
|
tableButtons: T.toString(l?.templateTable?.tableButtons?.tableButtons, []),
|
|
3660
3660
|
tableMoreButtons: T.toString(l?.templateTable?.tableButtons?.tableMoreButtons, [])
|
|
3661
|
-
}), v =
|
|
3661
|
+
}), v = ne({
|
|
3662
3662
|
className: T.toString(
|
|
3663
3663
|
l?.templateTable?.toolbarConfig?.className,
|
|
3664
3664
|
A.templateTable.toolbarConfig.className
|
|
@@ -3690,27 +3690,27 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3690
3690
|
A.templateTable.toolbarConfig.slots.tools
|
|
3691
3691
|
)
|
|
3692
3692
|
}
|
|
3693
|
-
}), h =
|
|
3693
|
+
}), h = ne({
|
|
3694
3694
|
pageSizePlacement: T.toString(l?.templateTable?.pagerConfig?.pageSizePlacement, null)
|
|
3695
3695
|
}), d = A.application + "_" + r.templateType, m = "sag_vxe_page_div_panel_" + d;
|
|
3696
3696
|
On(he, r), On(rl, () => document.getElementById(y(m)));
|
|
3697
|
-
const S = Object.keys(
|
|
3698
|
-
|
|
3699
|
-
},
|
|
3697
|
+
const S = Object.keys(Ne()), C = S.filter((k) => k.startsWith("items_")), b = S.filter((k) => k.startsWith("cols_")), w = S.filter((k) => k.startsWith("tools_")), g = $(), x = $(!0), j = $(!1), F = $("none"), X = $(["1"]), N = $(0), R = je(r.size), Z = $(), E = ne({}), ee = $([]), ze = $(), ht = $([]), bt = t, be = (k, _) => {
|
|
3698
|
+
ee.value[_] = k;
|
|
3699
|
+
}, qe = async () => {
|
|
3700
3700
|
const k = g.value;
|
|
3701
3701
|
if (!j.value && k) {
|
|
3702
|
-
const _ =
|
|
3703
|
-
_ ? _.validate().then((
|
|
3704
|
-
(!
|
|
3702
|
+
const _ = ze.value;
|
|
3703
|
+
_ ? _.validate().then((L) => {
|
|
3704
|
+
(!L || L.length === 0) && k.commitProxy("query");
|
|
3705
3705
|
}) : k.commitProxy("query");
|
|
3706
3706
|
}
|
|
3707
3707
|
}, fn = () => {
|
|
3708
|
-
s.storage && Pn(r.application, r.templateType, {}), Je(ht.value[0].children,
|
|
3708
|
+
s.storage && Pn(r.application, r.templateType, {}), Je(ht.value[0].children, ee, E), bt("resetValue");
|
|
3709
3709
|
}, sl = () => {
|
|
3710
3710
|
it(() => {
|
|
3711
|
-
An(
|
|
3711
|
+
An(Z.value, Y, u.clientScale);
|
|
3712
3712
|
});
|
|
3713
|
-
}, Y =
|
|
3713
|
+
}, Y = ne({
|
|
3714
3714
|
size: r.size,
|
|
3715
3715
|
minHeight: u.minHeight,
|
|
3716
3716
|
maxHeight: u.maxHeight,
|
|
@@ -3752,15 +3752,15 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3752
3752
|
ajax: {
|
|
3753
3753
|
// 接收 Promise 对象
|
|
3754
3754
|
query: (k) => {
|
|
3755
|
-
const { page: _, sorts:
|
|
3755
|
+
const { page: _, sorts: L, filters: H, form: G } = k, ue = kt(_, L, H, G, E, ee);
|
|
3756
3756
|
if (s.storage) {
|
|
3757
|
-
const Oe = gr(
|
|
3757
|
+
const Oe = gr(L, H, G, E);
|
|
3758
3758
|
Pn(r.application, r.templateType, Oe);
|
|
3759
3759
|
}
|
|
3760
3760
|
return pn(ue, o.requestData, !1);
|
|
3761
3761
|
},
|
|
3762
3762
|
querySuccess: (k) => {
|
|
3763
|
-
const { page: _, sort:
|
|
3763
|
+
const { page: _, sort: L, sorts: H, filters: G, form: ue, response: Oe } = k;
|
|
3764
3764
|
p?.isMerge && (Y.mergeCells = gn(Oe?.rows)), bt("search", Oe, { $gridRef: g.value, gridOptions: Y });
|
|
3765
3765
|
}
|
|
3766
3766
|
}
|
|
@@ -3768,20 +3768,20 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3768
3768
|
footerMethod: u.footerMethod
|
|
3769
3769
|
}), yt = $(!1), ul = () => {
|
|
3770
3770
|
ut("确定要强制显示数据内容吗?", () => {
|
|
3771
|
-
p?.isMerge ? Y.mergeCells = null : Y.spanMethod = kn({}), Y.virtualYConfig = { enabled: !0 }, yt.value = !0,
|
|
3771
|
+
p?.isMerge ? Y.mergeCells = null : Y.spanMethod = kn({}), Y.virtualYConfig = { enabled: !0 }, yt.value = !0, qe();
|
|
3772
3772
|
});
|
|
3773
|
-
}, pn = async (k, _,
|
|
3774
|
-
if (
|
|
3773
|
+
}, pn = async (k, _, L) => {
|
|
3774
|
+
if (F.value = "none", yt.value)
|
|
3775
3775
|
return yt.value = !1, Y.params.data;
|
|
3776
3776
|
{
|
|
3777
3777
|
j.value = !0, r.onLoadBeforeModule && r.onLoadBeforeModule({
|
|
3778
3778
|
$gridRef: g.value,
|
|
3779
3779
|
gridOptions: Y,
|
|
3780
3780
|
queryParams: k,
|
|
3781
|
-
exportFlag:
|
|
3781
|
+
exportFlag: L
|
|
3782
3782
|
});
|
|
3783
|
-
const H = await
|
|
3784
|
-
|
|
3783
|
+
const H = await He(
|
|
3784
|
+
ae(r.ctxPath, _),
|
|
3785
3785
|
k
|
|
3786
3786
|
).finally(() => {
|
|
3787
3787
|
setTimeout(() => {
|
|
@@ -3790,38 +3790,38 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3790
3790
|
});
|
|
3791
3791
|
if (H.success) {
|
|
3792
3792
|
if (Y.params.dataSum = H.data?.dataSum, p?.mergeKey) {
|
|
3793
|
-
if (!
|
|
3794
|
-
return
|
|
3793
|
+
if (!L && H.data.rows.length > 800)
|
|
3794
|
+
return F.value = "more", Y.params.data = mn(H.data), null;
|
|
3795
3795
|
p?.isMerge || (Y.virtualYConfig = { enabled: !1 });
|
|
3796
3796
|
}
|
|
3797
3797
|
return mn(H.data);
|
|
3798
3798
|
} else
|
|
3799
|
-
return
|
|
3799
|
+
return F.value = "error", null;
|
|
3800
3800
|
}
|
|
3801
3801
|
}, cl = (k) => {
|
|
3802
3802
|
if (u.rowType === "checkbox") {
|
|
3803
|
-
|
|
3803
|
+
re("checkboxChange", k);
|
|
3804
3804
|
const _ = p?.mergeKey;
|
|
3805
3805
|
if (_) {
|
|
3806
|
-
const
|
|
3807
|
-
if (
|
|
3808
|
-
const H =
|
|
3809
|
-
for (let
|
|
3810
|
-
k.row[_] === H.tableData[
|
|
3806
|
+
const L = g.value;
|
|
3807
|
+
if (L) {
|
|
3808
|
+
const H = L.getTableData();
|
|
3809
|
+
for (let G in H.tableData)
|
|
3810
|
+
k.row[_] === H.tableData[G][_] && L.setCheckboxRow(H.tableData[G], k.checked);
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
3813
|
}
|
|
3814
3814
|
}, dl = (k) => {
|
|
3815
3815
|
if (u.rowType === "radio") {
|
|
3816
|
-
|
|
3816
|
+
re("radioChange", k);
|
|
3817
3817
|
const _ = p?.mergeKey;
|
|
3818
3818
|
if (_) {
|
|
3819
|
-
const
|
|
3820
|
-
if (
|
|
3821
|
-
const H =
|
|
3822
|
-
for (let
|
|
3823
|
-
if (k.row[_] === H.tableData[
|
|
3824
|
-
|
|
3819
|
+
const L = g.value;
|
|
3820
|
+
if (L) {
|
|
3821
|
+
const H = L.getTableData();
|
|
3822
|
+
for (let G in H.tableData)
|
|
3823
|
+
if (k.row[_] === H.tableData[G][_]) {
|
|
3824
|
+
L.setRadioRow(H.tableData[G]);
|
|
3825
3825
|
break;
|
|
3826
3826
|
}
|
|
3827
3827
|
}
|
|
@@ -3832,11 +3832,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3832
3832
|
}, pl = () => {
|
|
3833
3833
|
Y.params.currentRow = null;
|
|
3834
3834
|
}, mn = (k) => {
|
|
3835
|
-
const _ = p?.seqKey,
|
|
3836
|
-
if (
|
|
3837
|
-
let H = [""],
|
|
3835
|
+
const _ = p?.seqKey, L = p?.mergeKey;
|
|
3836
|
+
if (L && _) {
|
|
3837
|
+
let H = [""], G = 0 + k.pageSize * (k.pageNo - 1);
|
|
3838
3838
|
for (let ue in k.rows)
|
|
3839
|
-
H.includes(k.rows[ue][
|
|
3839
|
+
H.includes(k.rows[ue][L]) || (G++, H.push(k.rows[ue][L])), k.rows[ue][_] = G;
|
|
3840
3840
|
}
|
|
3841
3841
|
return r.onLoadAfterModule ? r.onLoadAfterModule({
|
|
3842
3842
|
$gridRef: g.value,
|
|
@@ -3846,25 +3846,25 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3846
3846
|
}, gn = (k) => {
|
|
3847
3847
|
const _ = p?.mergeKey;
|
|
3848
3848
|
if (_ && p.isMerge) {
|
|
3849
|
-
const
|
|
3850
|
-
let H = [],
|
|
3849
|
+
const L = g.value;
|
|
3850
|
+
let H = [], G = {}, ue = {};
|
|
3851
3851
|
for (let we = 0; we < k.length; we++) {
|
|
3852
|
-
const se = k[we],
|
|
3852
|
+
const se = k[we], De = k[we - 1];
|
|
3853
3853
|
let xe = k[we + 1];
|
|
3854
|
-
c(ue[se[_]]) || (ue[se[_]] = we + 0), c(
|
|
3854
|
+
c(ue[se[_]]) || (ue[se[_]] = we + 0), c(G[se[_]]) ? (c(xe) && xe[_] === se[_] || c(De) && De[_] === se[_]) && (G[se[_]] = G[se[_]] + 1) : G[se[_]] = 1;
|
|
3855
3855
|
}
|
|
3856
3856
|
let Oe = p?.fields;
|
|
3857
3857
|
for (let we in Oe) {
|
|
3858
|
-
let se =
|
|
3858
|
+
let se = L?.getColumnByField(Oe[we]), De = L?.getColumnIndex(se);
|
|
3859
3859
|
for (let xe in ue)
|
|
3860
3860
|
H = H.concat([
|
|
3861
|
-
{ row: ue[xe], col:
|
|
3861
|
+
{ row: ue[xe], col: De, rowspan: G[xe], colspan: 1 }
|
|
3862
3862
|
]);
|
|
3863
3863
|
}
|
|
3864
3864
|
return H;
|
|
3865
3865
|
}
|
|
3866
3866
|
return null;
|
|
3867
|
-
}, ml =
|
|
3867
|
+
}, ml = ne({
|
|
3868
3868
|
cellMenu(k) {
|
|
3869
3869
|
const _ = g.value;
|
|
3870
3870
|
_ && _.setCurrentRow(k.row);
|
|
@@ -3882,38 +3882,38 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3882
3882
|
const k = document.getElementById(m);
|
|
3883
3883
|
if (k) {
|
|
3884
3884
|
const _ = k.getElementsByTagName("form");
|
|
3885
|
-
_ && _.length > 0 && (_[0].submit = () => (a.visible = !1,
|
|
3885
|
+
_ && _.length > 0 && (_[0].submit = () => (a.visible = !1, qe(), !1));
|
|
3886
3886
|
}
|
|
3887
3887
|
}, { clickFormButton: vl, clickTableButton: We, clickHerf: hn } = mi({
|
|
3888
3888
|
gridRef: g,
|
|
3889
3889
|
targetModal: a,
|
|
3890
3890
|
gridOptions: Y,
|
|
3891
3891
|
pageOptions: r,
|
|
3892
|
-
formData:
|
|
3892
|
+
formData: E,
|
|
3893
3893
|
pageModal: i
|
|
3894
3894
|
}), { downloadEvent: bn, importEvent: hl, switchColumsEvent: yn } = gi({
|
|
3895
|
-
formRef:
|
|
3896
|
-
formData:
|
|
3895
|
+
formRef: ze,
|
|
3896
|
+
formData: E,
|
|
3897
3897
|
gridRef: g,
|
|
3898
3898
|
gridOptions: Y,
|
|
3899
3899
|
loadData: pn,
|
|
3900
3900
|
pageOptions: r,
|
|
3901
|
-
templateItemRefs:
|
|
3901
|
+
templateItemRefs: ee,
|
|
3902
3902
|
doMergeCells: gn,
|
|
3903
3903
|
pageTable: u,
|
|
3904
3904
|
pageTableMerge: p,
|
|
3905
3905
|
pageRequest: o
|
|
3906
3906
|
}), bl = async () => {
|
|
3907
3907
|
if (c(s.formItems)) {
|
|
3908
|
-
const _ = s.formItems,
|
|
3909
|
-
Object.keys(_).forEach((H,
|
|
3910
|
-
_[
|
|
3908
|
+
const _ = s.formItems, L = s.formProps.foldingLength;
|
|
3909
|
+
Object.keys(_).forEach((H, G) => {
|
|
3910
|
+
_[G].folding = !(G < L);
|
|
3911
3911
|
}), ht.value = [
|
|
3912
3912
|
{ span: 24, align: "right", children: _ },
|
|
3913
3913
|
{
|
|
3914
3914
|
span: 24,
|
|
3915
3915
|
align: s.formProps.buttonAlign,
|
|
3916
|
-
collapseNode: _.length >
|
|
3916
|
+
collapseNode: _.length > L,
|
|
3917
3917
|
slots: { default: "toolbar_tools" }
|
|
3918
3918
|
}
|
|
3919
3919
|
];
|
|
@@ -3921,8 +3921,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3921
3921
|
if (document.documentElement.clientHeight < 680) {
|
|
3922
3922
|
const _ = u.tableColumns;
|
|
3923
3923
|
Object.keys(_).forEach((H) => _[H].fixed = !1);
|
|
3924
|
-
const
|
|
3925
|
-
|
|
3924
|
+
const L = u.tableColumnsExtra;
|
|
3925
|
+
L && Object.keys(L).forEach((H) => L[H].fixed = !1);
|
|
3926
3926
|
}
|
|
3927
3927
|
yn(r.application, !0), u.rowType === "checkbox" ? Y.checkboxConfig = { highlight: !0 } : u.rowType === "radio" ? Y.radioConfig = { highlight: !0 } : Y.rowConfig.isCurrent = !0;
|
|
3928
3928
|
const k = u.pageSizes;
|
|
@@ -3931,40 +3931,40 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3931
3931
|
mode: "row",
|
|
3932
3932
|
showStatus: !0
|
|
3933
3933
|
}), c(p) && c(p.mergeKey) && (Y.cellStyle = vn, Y.params.mergeField = p.mergeKey, p.isMerge ? Y.columnDragConfig.dragStartMethod = () => !1 : (Y.virtualYConfig = { enabled: !1 }, Y.spanMethod = kn(p))), x.value = !1;
|
|
3934
|
-
}, yl = (k, _) => k && k.length > 0 ? k && _ ? k.some((
|
|
3935
|
-
|
|
3936
|
-
if (
|
|
3934
|
+
}, yl = (k, _) => k && k.length > 0 ? k && _ ? k.some((L) => Ee(_[L.buttonName]) && Ee(L.auth)) : !0 : !1;
|
|
3935
|
+
ie(async () => {
|
|
3936
|
+
if (re("加载页面模板", r), await bl(), s.storage) {
|
|
3937
3937
|
const k = El(r.application, r.templateType);
|
|
3938
3938
|
if (c(k)) {
|
|
3939
3939
|
let _ = [];
|
|
3940
|
-
Ae.arrayEach(s.formItems, (H,
|
|
3940
|
+
Ae.arrayEach(s.formItems, (H, G) => {
|
|
3941
3941
|
_.push(H.field);
|
|
3942
3942
|
});
|
|
3943
|
-
let
|
|
3944
|
-
Ae.objectEach(k, (H,
|
|
3945
|
-
|
|
3946
|
-
}), Ae.includeArrays(_,
|
|
3943
|
+
let L = [];
|
|
3944
|
+
Ae.objectEach(k, (H, G) => {
|
|
3945
|
+
L.push(G);
|
|
3946
|
+
}), Ae.includeArrays(_, L) ? _n(k) : await Je(s.formItems, ee, E);
|
|
3947
3947
|
} else
|
|
3948
|
-
await Je(s.formItems,
|
|
3948
|
+
await Je(s.formItems, ee, E);
|
|
3949
3949
|
} else
|
|
3950
|
-
await Je(s.formItems,
|
|
3950
|
+
await Je(s.formItems, ee, E);
|
|
3951
3951
|
r.onMountedModule && await r.onMountedModule({
|
|
3952
|
-
$formRef:
|
|
3952
|
+
$formRef: ze.value,
|
|
3953
3953
|
$gridRef: g.value,
|
|
3954
3954
|
gridOptions: Y,
|
|
3955
3955
|
pageOptions: r,
|
|
3956
|
-
formData:
|
|
3957
|
-
}), gl(), await
|
|
3956
|
+
formData: E
|
|
3957
|
+
}), gl(), await qe(), Sn();
|
|
3958
3958
|
});
|
|
3959
3959
|
const Sn = Ae.debounce(() => {
|
|
3960
|
-
|
|
3961
|
-
|
|
3960
|
+
re("屏幕高度出现变化,重新计算表格高度"), u.clientScale === 1 && N.value == 0 && (window.onresize = () => {
|
|
3961
|
+
N.value = document.body.clientWidth;
|
|
3962
3962
|
}), it(() => {
|
|
3963
|
-
An(
|
|
3963
|
+
An(Z.value, Y, u.clientScale);
|
|
3964
3964
|
});
|
|
3965
3965
|
}, A.templateTable.lazyComputdHeightTime);
|
|
3966
3966
|
u.clientScale === 1 && ve(
|
|
3967
|
-
[
|
|
3967
|
+
[X, N],
|
|
3968
3968
|
() => {
|
|
3969
3969
|
Sn();
|
|
3970
3970
|
},
|
|
@@ -3973,7 +3973,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3973
3973
|
const Sl = (k) => {
|
|
3974
3974
|
a.title = K(k.title, A.targetModal.title), a.width = K(k.width, A.targetModal.width), a.height = K(k.height, A.targetModal.height), a.maximize = K(k.maximize, !1), a.autoLoad = K(k.autoLoad, !1), a.componentVue = K(k.componentVue, A.targetModal.componentVue), a.componentParams = k.componentParams, a.componentUrl = k.componentUrl, a.visible = !0;
|
|
3975
3975
|
}, wn = () => {
|
|
3976
|
-
a.visible = !1, a.autoLoad &&
|
|
3976
|
+
a.visible = !1, a.autoLoad && qe();
|
|
3977
3977
|
}, wl = (k) => {
|
|
3978
3978
|
a.visible = !1;
|
|
3979
3979
|
const _ = a.componentParams;
|
|
@@ -3981,16 +3981,16 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
3981
3981
|
}, _l = async () => await al(g, Y), Ol = async () => {
|
|
3982
3982
|
const k = g.value;
|
|
3983
3983
|
if (k) {
|
|
3984
|
-
const { pager: _, filter:
|
|
3985
|
-
return kt(_,
|
|
3984
|
+
const { pager: _, filter: L, form: H, sort: G } = k.getProxyInfo();
|
|
3985
|
+
return kt(_, G, L, H, E, ee);
|
|
3986
3986
|
} else
|
|
3987
3987
|
return null;
|
|
3988
3988
|
}, _n = (k) => {
|
|
3989
3989
|
for (let _ in k)
|
|
3990
|
-
|
|
3990
|
+
ee.value[_] ? ee.value[_].setValue(k[_]) : E[_] = k[_];
|
|
3991
3991
|
};
|
|
3992
3992
|
return n({
|
|
3993
|
-
doSearch:
|
|
3993
|
+
doSearch: qe,
|
|
3994
3994
|
resetFrom: fn,
|
|
3995
3995
|
showViewModal: Sl,
|
|
3996
3996
|
hideViewModal: wn,
|
|
@@ -4002,32 +4002,32 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4002
4002
|
Y.params.exportColumns = k;
|
|
4003
4003
|
}
|
|
4004
4004
|
}), (k, _) => {
|
|
4005
|
-
const
|
|
4006
|
-
return xn((O(),
|
|
4005
|
+
const L = U("a-button"), H = U("a-space"), G = U("vxe-form"), ue = U("a-collapse-panel"), Oe = U("a-collapse"), we = U("a-menu-item"), se = U("a-menu"), De = U("a-dropdown"), xe = U("vxe-button"), xl = U("vxe-grid");
|
|
4006
|
+
return xn((O(), I("div", {
|
|
4007
4007
|
id: m,
|
|
4008
4008
|
class: "sag-vxe-page-wrapper"
|
|
4009
4009
|
}, [
|
|
4010
|
-
xn(
|
|
4010
|
+
xn(Q("div", ts, [
|
|
4011
4011
|
D(Oe, {
|
|
4012
|
-
activeKey:
|
|
4013
|
-
"onUpdate:activeKey": _[2] || (_[2] = (P) =>
|
|
4012
|
+
activeKey: X.value,
|
|
4013
|
+
"onUpdate:activeKey": _[2] || (_[2] = (P) => X.value = P),
|
|
4014
4014
|
expandIconPosition: "end",
|
|
4015
4015
|
accordion: ""
|
|
4016
4016
|
}, {
|
|
4017
4017
|
default: B(() => [
|
|
4018
4018
|
D(ue, {
|
|
4019
4019
|
ref_key: "formCardRef",
|
|
4020
|
-
ref:
|
|
4020
|
+
ref: Z,
|
|
4021
4021
|
key: "1",
|
|
4022
4022
|
header: "查询条件",
|
|
4023
4023
|
align: "left",
|
|
4024
4024
|
forceRender: ""
|
|
4025
4025
|
}, {
|
|
4026
4026
|
default: B(() => [
|
|
4027
|
-
D(
|
|
4027
|
+
D(G, {
|
|
4028
4028
|
ref_key: "formRef",
|
|
4029
|
-
ref:
|
|
4030
|
-
data:
|
|
4029
|
+
ref: ze,
|
|
4030
|
+
data: E,
|
|
4031
4031
|
items: ht.value,
|
|
4032
4032
|
size: r.size,
|
|
4033
4033
|
rules: s.formRules,
|
|
@@ -4041,10 +4041,10 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4041
4041
|
toolbar_tools: B(() => [
|
|
4042
4042
|
D(H, null, {
|
|
4043
4043
|
default: B(() => [
|
|
4044
|
-
D(
|
|
4044
|
+
D(L, {
|
|
4045
4045
|
type: "primary",
|
|
4046
|
-
size: y(
|
|
4047
|
-
onClick: _[0] || (_[0] = (P) =>
|
|
4046
|
+
size: y(R),
|
|
4047
|
+
onClick: _[0] || (_[0] = (P) => qe()),
|
|
4048
4048
|
disabled: j.value
|
|
4049
4049
|
}, {
|
|
4050
4050
|
default: B(() => _[5] || (_[5] = [
|
|
@@ -4052,8 +4052,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4052
4052
|
])),
|
|
4053
4053
|
_: 1
|
|
4054
4054
|
}, 8, ["size", "disabled"]),
|
|
4055
|
-
D(
|
|
4056
|
-
size: y(
|
|
4055
|
+
D(L, {
|
|
4056
|
+
size: y(R),
|
|
4057
4057
|
onClick: _[1] || (_[1] = (P) => fn())
|
|
4058
4058
|
}, {
|
|
4059
4059
|
default: B(() => _[6] || (_[6] = [
|
|
@@ -4066,85 +4066,85 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4066
4066
|
})
|
|
4067
4067
|
]),
|
|
4068
4068
|
dateRange: B((P) => [
|
|
4069
|
-
D(Ti,
|
|
4070
|
-
value:
|
|
4071
|
-
"onUpdate:value": (V) =>
|
|
4069
|
+
D(Ti, te({
|
|
4070
|
+
value: E[P.field],
|
|
4071
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4072
4072
|
ref: (V) => be(V, P.field)
|
|
4073
4073
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4074
4074
|
]),
|
|
4075
4075
|
date: B((P) => [
|
|
4076
|
-
D(Mi,
|
|
4077
|
-
value:
|
|
4078
|
-
"onUpdate:value": (V) =>
|
|
4076
|
+
D(Mi, te({
|
|
4077
|
+
value: E[P.field],
|
|
4078
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4079
4079
|
ref: (V) => be(V, P.field)
|
|
4080
4080
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4081
4081
|
]),
|
|
4082
4082
|
input: B((P) => [
|
|
4083
|
-
s.vxeSlot ? (O(), z(Zi,
|
|
4083
|
+
s.vxeSlot ? (O(), z(Zi, te({
|
|
4084
4084
|
key: 0,
|
|
4085
|
-
value:
|
|
4086
|
-
"onUpdate:value": (V) =>
|
|
4085
|
+
value: E[P.field],
|
|
4086
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4087
4087
|
ref: (V) => be(V, P.field),
|
|
4088
4088
|
title: P?.item?.title
|
|
4089
4089
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : q("", !0),
|
|
4090
|
-
s.vxeSlot ? q("", !0) : (O(), z(Vi,
|
|
4090
|
+
s.vxeSlot ? q("", !0) : (O(), z(Vi, te({
|
|
4091
4091
|
key: 1,
|
|
4092
|
-
value:
|
|
4093
|
-
"onUpdate:value": (V) =>
|
|
4092
|
+
value: E[P.field],
|
|
4093
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4094
4094
|
ref: (V) => be(V, P.field),
|
|
4095
4095
|
title: P?.item?.title
|
|
4096
4096
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4097
4097
|
]),
|
|
4098
4098
|
select: B((P) => [
|
|
4099
|
-
s.vxeSlot ? (O(), z(Ki,
|
|
4099
|
+
s.vxeSlot ? (O(), z(Ki, te({
|
|
4100
4100
|
key: 0,
|
|
4101
|
-
value:
|
|
4102
|
-
"onUpdate:value": (V) =>
|
|
4101
|
+
value: E[P.field],
|
|
4102
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4103
4103
|
ref: (V) => be(V, P.field)
|
|
4104
4104
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : q("", !0),
|
|
4105
|
-
s.vxeSlot ? q("", !0) : (O(), z(ji,
|
|
4105
|
+
s.vxeSlot ? q("", !0) : (O(), z(ji, te({
|
|
4106
4106
|
key: 1,
|
|
4107
|
-
value:
|
|
4108
|
-
"onUpdate:value": (V) =>
|
|
4107
|
+
value: E[P.field],
|
|
4108
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4109
4109
|
ref: (V) => be(V, P.field)
|
|
4110
4110
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4111
4111
|
]),
|
|
4112
4112
|
selectList: B((P) => [
|
|
4113
|
-
s.vxeSlot ? (O(), z(Xi,
|
|
4113
|
+
s.vxeSlot ? (O(), z(Xi, te({
|
|
4114
4114
|
key: 0,
|
|
4115
|
-
value:
|
|
4116
|
-
"onUpdate:value": (V) =>
|
|
4115
|
+
value: E[P.field],
|
|
4116
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4117
4117
|
ref: (V) => be(V, P.field),
|
|
4118
4118
|
title: P?.item?.title
|
|
4119
4119
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : q("", !0),
|
|
4120
|
-
s.vxeSlot ? q("", !0) : (O(), z(Bi,
|
|
4120
|
+
s.vxeSlot ? q("", !0) : (O(), z(Bi, te({
|
|
4121
4121
|
key: 1,
|
|
4122
|
-
value:
|
|
4123
|
-
"onUpdate:value": (V) =>
|
|
4122
|
+
value: E[P.field],
|
|
4123
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4124
4124
|
ref: (V) => be(V, P.field),
|
|
4125
4125
|
title: P?.item?.title
|
|
4126
4126
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4127
4127
|
]),
|
|
4128
4128
|
selectPull: B((P) => [
|
|
4129
|
-
s.vxeSlot ? (O(), z(Qi,
|
|
4129
|
+
s.vxeSlot ? (O(), z(Qi, te({
|
|
4130
4130
|
key: 0,
|
|
4131
|
-
value:
|
|
4132
|
-
"onUpdate:value": (V) =>
|
|
4131
|
+
value: E[P.field],
|
|
4132
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4133
4133
|
ref: (V) => be(V, P.field),
|
|
4134
4134
|
title: P?.item?.title
|
|
4135
4135
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : q("", !0),
|
|
4136
|
-
s.vxeSlot ? q("", !0) : (O(), z(qi,
|
|
4136
|
+
s.vxeSlot ? q("", !0) : (O(), z(qi, te({
|
|
4137
4137
|
key: 1,
|
|
4138
|
-
value:
|
|
4139
|
-
"onUpdate:value": (V) =>
|
|
4138
|
+
value: E[P.field],
|
|
4139
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4140
4140
|
ref: (V) => be(V, P.field),
|
|
4141
4141
|
title: P?.item?.title
|
|
4142
4142
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4143
4143
|
]),
|
|
4144
4144
|
cascader: B((P) => [
|
|
4145
|
-
D(Ri,
|
|
4146
|
-
value:
|
|
4147
|
-
"onUpdate:value": (V) =>
|
|
4145
|
+
D(Ri, te({
|
|
4146
|
+
value: E[P.field],
|
|
4147
|
+
"onUpdate:value": (V) => E[P.field] = V,
|
|
4148
4148
|
title: P?.item?.title,
|
|
4149
4149
|
ref: (V) => be(V, P.field)
|
|
4150
4150
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])
|
|
@@ -4154,8 +4154,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4154
4154
|
Pe(y(C), (P) => ({
|
|
4155
4155
|
name: P,
|
|
4156
4156
|
fn: B((V) => [
|
|
4157
|
-
|
|
4158
|
-
value:
|
|
4157
|
+
oe(k.$slots, P, te(V, {
|
|
4158
|
+
value: E[V.field]
|
|
4159
4159
|
}))
|
|
4160
4160
|
])
|
|
4161
4161
|
}))
|
|
@@ -4169,8 +4169,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4169
4169
|
], 512), [
|
|
4170
4170
|
[Cn, y(c)(s.formItems)]
|
|
4171
4171
|
]),
|
|
4172
|
-
|
|
4173
|
-
D(xl,
|
|
4172
|
+
Q("div", ns, [
|
|
4173
|
+
D(xl, te({
|
|
4174
4174
|
ref_key: "gridRef",
|
|
4175
4175
|
ref: g
|
|
4176
4176
|
}, Y, Ml(ml), {
|
|
@@ -4184,32 +4184,32 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4184
4184
|
onRadioChange: dl
|
|
4185
4185
|
}), _e({
|
|
4186
4186
|
operate: B(({ row: P, column: V }) => [
|
|
4187
|
-
|
|
4187
|
+
Q("a", {
|
|
4188
4188
|
href: "javascript:void(0)",
|
|
4189
4189
|
class: "sag-vxe-page-link",
|
|
4190
4190
|
onClick: (ye) => y(hn)(P, V)
|
|
4191
|
-
},
|
|
4191
|
+
}, le(P[V.property]), 9, as)
|
|
4192
4192
|
]),
|
|
4193
4193
|
vertical: B(({ row: P, column: V }) => [
|
|
4194
|
-
(O(!0),
|
|
4194
|
+
(O(!0), I(pe, null, Pe(V.params.childColumns, (ye) => (O(), I("div", {
|
|
4195
4195
|
key: ye.value
|
|
4196
4196
|
}, [
|
|
4197
|
-
|
|
4197
|
+
Q("span", ls, le(ye.title) + ":", 1),
|
|
4198
4198
|
_[7] || (_[7] = de(" ")),
|
|
4199
|
-
ye.formatter === "operate" ? (O(),
|
|
4200
|
-
|
|
4199
|
+
ye.formatter === "operate" ? (O(), I("span", rs, [
|
|
4200
|
+
Q("a", {
|
|
4201
4201
|
href: "javascript:void(0)",
|
|
4202
4202
|
class: "sag-vxe-page-link",
|
|
4203
4203
|
onClick: (ks) => y(hn)(P, ye)
|
|
4204
|
-
},
|
|
4205
|
-
])) : (O(),
|
|
4204
|
+
}, le(P[ye.field]), 9, os)
|
|
4205
|
+
])) : (O(), I("span", is, le(y(T).stringFormat(P[ye.field], ye.formatter)), 1))
|
|
4206
4206
|
]))), 128))
|
|
4207
4207
|
]),
|
|
4208
4208
|
button: B(({ row: P }) => [
|
|
4209
|
-
|
|
4210
|
-
(O(!0),
|
|
4211
|
-
y(T).toString(P[V.buttonName], !0) && y(
|
|
4212
|
-
u.showButtonLink ? q("", !0) : (O(), z(
|
|
4209
|
+
Q("div", ss, [
|
|
4210
|
+
(O(!0), I(pe, null, Pe(f.tableButtons, (V) => (O(), I(pe, { key: V }, [
|
|
4211
|
+
y(T).toString(P[V.buttonName], !0) && y(Ee)(V.auth) ? (O(), I("span", us, [
|
|
4212
|
+
u.showButtonLink ? q("", !0) : (O(), z(L, {
|
|
4213
4213
|
key: 0,
|
|
4214
4214
|
size: "small",
|
|
4215
4215
|
type: y(T).toString(V.status, "primary"),
|
|
@@ -4221,11 +4221,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4221
4221
|
}, null, 8, ["icon"])
|
|
4222
4222
|
]),
|
|
4223
4223
|
default: B(() => [
|
|
4224
|
-
de(" " +
|
|
4224
|
+
de(" " + le(V.buttonName), 1)
|
|
4225
4225
|
]),
|
|
4226
4226
|
_: 2
|
|
4227
4227
|
}, 1032, ["type", "onClick"])),
|
|
4228
|
-
u.showButtonLink ? (O(),
|
|
4228
|
+
u.showButtonLink ? (O(), I("a", {
|
|
4229
4229
|
key: 1,
|
|
4230
4230
|
href: "javascript:void(0)",
|
|
4231
4231
|
class: "sag-vxe-page-button-link",
|
|
@@ -4234,30 +4234,30 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4234
4234
|
D(Ve, {
|
|
4235
4235
|
icon: V.icon
|
|
4236
4236
|
}, null, 8, ["icon"]),
|
|
4237
|
-
de(" " +
|
|
4237
|
+
de(" " + le(V.buttonName), 1)
|
|
4238
4238
|
], 8, cs)) : q("", !0),
|
|
4239
4239
|
_[8] || (_[8] = de(" "))
|
|
4240
4240
|
])) : q("", !0)
|
|
4241
4241
|
], 64))), 128))
|
|
4242
4242
|
]),
|
|
4243
|
-
yl(f.tableMoreButtons, P) ? (O(), z(
|
|
4243
|
+
yl(f.tableMoreButtons, P) ? (O(), z(De, {
|
|
4244
4244
|
key: 0,
|
|
4245
4245
|
destroyPopupOnHide: !0
|
|
4246
4246
|
}, {
|
|
4247
4247
|
overlay: B(() => [
|
|
4248
4248
|
D(se, null, {
|
|
4249
4249
|
default: B(() => [
|
|
4250
|
-
(O(!0),
|
|
4251
|
-
y(
|
|
4250
|
+
(O(!0), I(pe, null, Pe(f.tableMoreButtons, (V) => (O(), I(pe, { key: V }, [
|
|
4251
|
+
y(Ee)(V.auth) ? (O(), I(pe, { key: 0 }, [
|
|
4252
4252
|
y(T).toString(P[V.buttonName], !0) ? (O(), z(we, { key: 0 }, {
|
|
4253
4253
|
default: B(() => [
|
|
4254
|
-
|
|
4254
|
+
Q("a", {
|
|
4255
4255
|
onClick: (ye) => y(We)(V, P)
|
|
4256
4256
|
}, [
|
|
4257
4257
|
D(Ve, {
|
|
4258
4258
|
icon: V.icon
|
|
4259
4259
|
}, null, 8, ["icon"]),
|
|
4260
|
-
de(" " +
|
|
4260
|
+
de(" " + le(V.buttonName), 1)
|
|
4261
4261
|
], 8, ds)
|
|
4262
4262
|
]),
|
|
4263
4263
|
_: 2
|
|
@@ -4269,7 +4269,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4269
4269
|
}, 1024)
|
|
4270
4270
|
]),
|
|
4271
4271
|
default: B(() => [
|
|
4272
|
-
D(
|
|
4272
|
+
D(L, {
|
|
4273
4273
|
type: u.showButtonLink ? "link" : "default",
|
|
4274
4274
|
size: "small"
|
|
4275
4275
|
}, {
|
|
@@ -4290,11 +4290,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4290
4290
|
style: { "margin-bottom": "0px" }
|
|
4291
4291
|
}, {
|
|
4292
4292
|
default: B(() => [
|
|
4293
|
-
(O(!0),
|
|
4294
|
-
y(
|
|
4293
|
+
(O(!0), I(pe, null, Pe(f.formButtons, (P) => (O(), I("span", { key: P }, [
|
|
4294
|
+
y(Ee)(P.auth) ? (O(), z(L, {
|
|
4295
4295
|
key: 0,
|
|
4296
4296
|
round: "",
|
|
4297
|
-
size: y(
|
|
4297
|
+
size: y(R),
|
|
4298
4298
|
type: y(T).toString(P.status, "primary"),
|
|
4299
4299
|
onClick: (V) => y(vl)(P)
|
|
4300
4300
|
}, {
|
|
@@ -4304,7 +4304,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4304
4304
|
}, null, 8, ["icon"])
|
|
4305
4305
|
]),
|
|
4306
4306
|
default: B(() => [
|
|
4307
|
-
de(" " +
|
|
4307
|
+
de(" " + le(P.buttonName), 1)
|
|
4308
4308
|
]),
|
|
4309
4309
|
_: 2
|
|
4310
4310
|
}, 1032, ["size", "type", "onClick"])) : q("", !0)
|
|
@@ -4312,7 +4312,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4312
4312
|
]),
|
|
4313
4313
|
_: 1
|
|
4314
4314
|
})) : q("", !0),
|
|
4315
|
-
(O(!0),
|
|
4315
|
+
(O(!0), I(pe, null, Pe(y(w), (P) => oe(k.$slots, P)), 256))
|
|
4316
4316
|
]),
|
|
4317
4317
|
toolbar_tools: B(() => [
|
|
4318
4318
|
y(c)(u.tableColumnsExtra) ? (O(), z(xe, {
|
|
@@ -4323,7 +4323,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4323
4323
|
title: "切换"
|
|
4324
4324
|
}, {
|
|
4325
4325
|
default: B(() => _[10] || (_[10] = [
|
|
4326
|
-
|
|
4326
|
+
Q("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1)
|
|
4327
4327
|
])),
|
|
4328
4328
|
_: 1
|
|
4329
4329
|
})) : q("", !0),
|
|
@@ -4339,7 +4339,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4339
4339
|
title: "下载"
|
|
4340
4340
|
}, {
|
|
4341
4341
|
default: B(() => _[11] || (_[11] = [
|
|
4342
|
-
|
|
4342
|
+
Q("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
4343
4343
|
])),
|
|
4344
4344
|
_: 1
|
|
4345
4345
|
}, 8, ["onClick"])) : q("", !0),
|
|
@@ -4351,31 +4351,31 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4351
4351
|
title: "导入"
|
|
4352
4352
|
}, {
|
|
4353
4353
|
default: B(() => _[12] || (_[12] = [
|
|
4354
|
-
|
|
4354
|
+
Q("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1)
|
|
4355
4355
|
])),
|
|
4356
4356
|
_: 1
|
|
4357
4357
|
})) : q("", !0)
|
|
4358
4358
|
]),
|
|
4359
4359
|
empty: B(() => [
|
|
4360
|
-
|
|
4361
|
-
|
|
4360
|
+
F.value === "error" ? (O(), I("h2", fs, _[13] || (_[13] = [
|
|
4361
|
+
Q("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4362
4362
|
]))) : q("", !0),
|
|
4363
|
-
|
|
4364
|
-
|
|
4363
|
+
F.value === "none" ? (O(), I("h2", ps, _[14] || (_[14] = [
|
|
4364
|
+
Q("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4365
4365
|
]))) : q("", !0),
|
|
4366
|
-
|
|
4367
|
-
_[16] || (_[16] =
|
|
4366
|
+
F.value === "more" ? (O(), I("h2", ms, [
|
|
4367
|
+
_[16] || (_[16] = Q("span", { style: { "font-size": "16px" } }, [
|
|
4368
4368
|
de(" 您好,因数据量过大,强制显示将会 "),
|
|
4369
|
-
|
|
4369
|
+
Q("span", { style: { color: "red" } }, "取消合并列"),
|
|
4370
4370
|
de(" 模式,建议您调整查询条件后重新查询! ")
|
|
4371
4371
|
], -1)),
|
|
4372
|
-
_[17] || (_[17] =
|
|
4373
|
-
|
|
4372
|
+
_[17] || (_[17] = Q("br", null, null, -1)),
|
|
4373
|
+
Q("a", {
|
|
4374
4374
|
onClick: ul,
|
|
4375
4375
|
href: "javascript:void(0)",
|
|
4376
4376
|
class: "link"
|
|
4377
4377
|
}, _[15] || (_[15] = [
|
|
4378
|
-
|
|
4378
|
+
Q("span", { style: { "font-size": "24px", color: "red" } }, "是否强制显示?", -1)
|
|
4379
4379
|
]))
|
|
4380
4380
|
])) : q("", !0)
|
|
4381
4381
|
]),
|
|
@@ -4384,12 +4384,12 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4384
4384
|
Pe(y(b), (P) => ({
|
|
4385
4385
|
name: P,
|
|
4386
4386
|
fn: B((V) => [
|
|
4387
|
-
|
|
4387
|
+
oe(k.$slots, P, Vl($l(V)))
|
|
4388
4388
|
])
|
|
4389
4389
|
}))
|
|
4390
4390
|
]), 1040, ["size"])
|
|
4391
4391
|
]),
|
|
4392
|
-
a.visible ? (O(), z(Ji,
|
|
4392
|
+
a.visible ? (O(), z(Ji, te({ key: 0 }, a, {
|
|
4393
4393
|
onCancel: wn,
|
|
4394
4394
|
onSubmit: wl
|
|
4395
4395
|
}), null, 16)) : q("", !0)
|
|
@@ -4442,20 +4442,20 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4442
4442
|
(d, m) => {
|
|
4443
4443
|
o.value = d ? M(d) : null;
|
|
4444
4444
|
}
|
|
4445
|
-
),
|
|
4445
|
+
), ie(() => {
|
|
4446
4446
|
c(a.value) && u(a.value);
|
|
4447
4447
|
}), n({
|
|
4448
4448
|
setDate: u,
|
|
4449
4449
|
setValue: p,
|
|
4450
4450
|
getValue: s
|
|
4451
4451
|
}), (d, m) => {
|
|
4452
|
-
const S =
|
|
4452
|
+
const S = U("a-date-picker");
|
|
4453
4453
|
return O(), z(S, {
|
|
4454
4454
|
value: y(o),
|
|
4455
4455
|
"onUpdate:value": m[0] || (m[0] = (C) => dt(o) ? o.value = C : o = C),
|
|
4456
4456
|
"show-time": a.showTime,
|
|
4457
4457
|
disabled: a.disabled,
|
|
4458
|
-
locale: y(
|
|
4458
|
+
locale: y(Ye),
|
|
4459
4459
|
format: y(r),
|
|
4460
4460
|
disabledDate: f,
|
|
4461
4461
|
picker: y(l) === "day" ? "date" : y(l),
|
|
@@ -4526,18 +4526,18 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4526
4526
|
let b = null, w = null;
|
|
4527
4527
|
c(S) && (c(S[0]) && (b = M(S[0])), c(S[1]) && (w = M(S[1]))), i.value = [b, w];
|
|
4528
4528
|
}
|
|
4529
|
-
),
|
|
4529
|
+
), ie(() => {
|
|
4530
4530
|
c(a.value) && d(a.value[0], a.value[1]);
|
|
4531
4531
|
}), n({
|
|
4532
4532
|
setValue: d,
|
|
4533
4533
|
getValue: h
|
|
4534
4534
|
}), (S, C) => {
|
|
4535
|
-
const b =
|
|
4535
|
+
const b = U("a-range-picker");
|
|
4536
4536
|
return O(), z(b, {
|
|
4537
4537
|
value: i.value,
|
|
4538
4538
|
"onUpdate:value": C[0] || (C[0] = (w) => i.value = w),
|
|
4539
4539
|
presets: f.value,
|
|
4540
|
-
locale: y(
|
|
4540
|
+
locale: y(Ye),
|
|
4541
4541
|
allowEmpty: [!0, !0],
|
|
4542
4542
|
format: y(r),
|
|
4543
4543
|
picker: y(l) === "day" ? "date" : y(l),
|
|
@@ -4572,7 +4572,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4572
4572
|
a("click", t.name);
|
|
4573
4573
|
};
|
|
4574
4574
|
return (r, o) => {
|
|
4575
|
-
const i =
|
|
4575
|
+
const i = U("a-button");
|
|
4576
4576
|
return O(), z(i, {
|
|
4577
4577
|
round: "",
|
|
4578
4578
|
size: t.size,
|
|
@@ -4587,7 +4587,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4587
4587
|
}, null, 8, ["icon"])) : q("", !0)
|
|
4588
4588
|
]),
|
|
4589
4589
|
default: B(() => [
|
|
4590
|
-
de(" " +
|
|
4590
|
+
de(" " + le(t.name), 1)
|
|
4591
4591
|
]),
|
|
4592
4592
|
_: 1
|
|
4593
4593
|
}, 8, ["size", "type", "disabled"]);
|
|
@@ -4626,7 +4626,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4626
4626
|
setup(e, { expose: n, emit: t }) {
|
|
4627
4627
|
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, s = a.fieldNames.value, u = $([]), p = $([]), f = async () => {
|
|
4628
4628
|
const b = await nl(
|
|
4629
|
-
|
|
4629
|
+
ae(r, a.requestUrl),
|
|
4630
4630
|
a.requestParams,
|
|
4631
4631
|
l,
|
|
4632
4632
|
"CASCADER_" + a.cacheKey
|
|
@@ -4637,15 +4637,15 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4637
4637
|
}, d = (b, w) => w.some((g) => g[i].indexOf(b) > -1), m = () => p.value.filter((w) => w[s] === u.value[u.value.length - 1])[i], S = () => u.value, C = (b) => {
|
|
4638
4638
|
u.value = b, v("update:value", b);
|
|
4639
4639
|
};
|
|
4640
|
-
return
|
|
4640
|
+
return ie(() => {
|
|
4641
4641
|
f();
|
|
4642
4642
|
}), n({
|
|
4643
4643
|
getName: m,
|
|
4644
4644
|
getValue: S,
|
|
4645
4645
|
setValue: C
|
|
4646
4646
|
}), (b, w) => {
|
|
4647
|
-
const g =
|
|
4648
|
-
return O(),
|
|
4647
|
+
const g = U("a-cascader");
|
|
4648
|
+
return O(), I("div", gs, [
|
|
4649
4649
|
D(g, {
|
|
4650
4650
|
value: u.value,
|
|
4651
4651
|
"onUpdate:value": w[0] || (w[0] = (x) => u.value = x),
|
|
@@ -4685,9 +4685,9 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4685
4685
|
//
|
|
4686
4686
|
},
|
|
4687
4687
|
setup(e) {
|
|
4688
|
-
const n = e, t = Object.keys(
|
|
4688
|
+
const n = e, t = Object.keys(Ne()), a = t.filter((r) => r === "extra"), l = t.filter((r) => r === "title");
|
|
4689
4689
|
return (r, o) => {
|
|
4690
|
-
const i =
|
|
4690
|
+
const i = U("a-card");
|
|
4691
4691
|
return O(), z(i, {
|
|
4692
4692
|
size: "small",
|
|
4693
4693
|
headStyle: n.headStyle,
|
|
@@ -4697,22 +4697,22 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4697
4697
|
loading: n.loading
|
|
4698
4698
|
}, _e({
|
|
4699
4699
|
default: B(() => [
|
|
4700
|
-
|
|
4700
|
+
oe(r.$slots, "default")
|
|
4701
4701
|
]),
|
|
4702
4702
|
_: 2
|
|
4703
4703
|
}, [
|
|
4704
4704
|
y(l).length === 1 || y(c)(n.title) ? {
|
|
4705
4705
|
name: "title",
|
|
4706
4706
|
fn: B(() => [
|
|
4707
|
-
y(l).length === 1 ?
|
|
4708
|
-
y(l).length !== 1 ? (O(),
|
|
4707
|
+
y(l).length === 1 ? oe(r.$slots, "title", { key: 0 }) : q("", !0),
|
|
4708
|
+
y(l).length !== 1 ? (O(), I("span", vs, le(n.title), 1)) : q("", !0)
|
|
4709
4709
|
]),
|
|
4710
4710
|
key: "0"
|
|
4711
4711
|
} : void 0,
|
|
4712
4712
|
y(a).length === 1 ? {
|
|
4713
4713
|
name: "extra",
|
|
4714
4714
|
fn: B(() => [
|
|
4715
|
-
|
|
4715
|
+
oe(r.$slots, "extra")
|
|
4716
4716
|
]),
|
|
4717
4717
|
key: "1"
|
|
4718
4718
|
} : void 0
|
|
@@ -4751,7 +4751,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4751
4751
|
},
|
|
4752
4752
|
emits: ["update:value", "change"],
|
|
4753
4753
|
setup(e, { expose: n, emit: t }) {
|
|
4754
|
-
const a = e, l = $(T.toString(a.value, null)), r = t, o = Object.keys(
|
|
4754
|
+
const a = e, l = $(T.toString(a.value, null)), r = t, o = Object.keys(Ne()), i = o.filter((h) => h === "addonAfter"), s = o.filter((h) => h === "addonBefore"), u = () => {
|
|
4755
4755
|
v(!0);
|
|
4756
4756
|
}, p = () => l.value, f = (h) => {
|
|
4757
4757
|
a.formatter === "date" ? l.value = T.toDateString(h) : a.formatter === "datetime" ? l.value = T.toDatetimeString(h) : l.value = h, v();
|
|
@@ -4769,7 +4769,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4769
4769
|
getValue: p,
|
|
4770
4770
|
setValue: f
|
|
4771
4771
|
}), (h, d) => {
|
|
4772
|
-
const m =
|
|
4772
|
+
const m = U("a-input");
|
|
4773
4773
|
return O(), z(m, {
|
|
4774
4774
|
value: l.value,
|
|
4775
4775
|
"onUpdate:value": d[0] || (d[0] = (S) => l.value = S),
|
|
@@ -4783,16 +4783,16 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4783
4783
|
y(i).length === 1 || y(c)(a.addonAfter) ? {
|
|
4784
4784
|
name: "addonAfter",
|
|
4785
4785
|
fn: B(() => [
|
|
4786
|
-
y(i).length === 1 ?
|
|
4787
|
-
y(i).length !== 1 ? (O(),
|
|
4786
|
+
y(i).length === 1 ? oe(h.$slots, "addonAfter", { key: 0 }) : q("", !0),
|
|
4787
|
+
y(i).length !== 1 ? (O(), I("span", hs, le(a.addonAfter), 1)) : q("", !0)
|
|
4788
4788
|
]),
|
|
4789
4789
|
key: "0"
|
|
4790
4790
|
} : void 0,
|
|
4791
4791
|
y(s).length === 1 || y(c)(a.addonBefore) ? {
|
|
4792
4792
|
name: "addonBefore",
|
|
4793
4793
|
fn: B(() => [
|
|
4794
|
-
y(s).length === 1 ?
|
|
4795
|
-
y(s).length !== 1 ? (O(),
|
|
4794
|
+
y(s).length === 1 ? oe(h.$slots, "addonBefore", { key: 0 }) : q("", !0),
|
|
4795
|
+
y(s).length !== 1 ? (O(), I("span", bs, le(a.addonBefore), 1)) : q("", !0)
|
|
4796
4796
|
]),
|
|
4797
4797
|
key: "1"
|
|
4798
4798
|
} : void 0
|
|
@@ -4837,7 +4837,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4837
4837
|
},
|
|
4838
4838
|
emits: ["update:value", "change"],
|
|
4839
4839
|
setup(e, { expose: n, emit: t }) {
|
|
4840
|
-
const a = e, l = $(T.toString(a.value, null)), r = t, o = Object.keys(
|
|
4840
|
+
const a = e, l = $(T.toString(a.value, null)), r = t, o = Object.keys(Ne()), i = o.filter((h) => h === "addonAfter"), s = o.filter((h) => h === "addonBefore"), u = () => {
|
|
4841
4841
|
v(!0);
|
|
4842
4842
|
}, p = () => l.value, f = (h) => {
|
|
4843
4843
|
l.value = h, v();
|
|
@@ -4855,7 +4855,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4855
4855
|
getValue: p,
|
|
4856
4856
|
setValue: f
|
|
4857
4857
|
}), (h, d) => {
|
|
4858
|
-
const m =
|
|
4858
|
+
const m = U("a-input-number");
|
|
4859
4859
|
return O(), z(m, {
|
|
4860
4860
|
value: l.value,
|
|
4861
4861
|
"onUpdate:value": d[0] || (d[0] = (S) => l.value = S),
|
|
@@ -4873,16 +4873,16 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4873
4873
|
y(i).length === 1 || y(c)(a.addonAfter) ? {
|
|
4874
4874
|
name: "addonAfter",
|
|
4875
4875
|
fn: B(() => [
|
|
4876
|
-
y(i).length === 1 ?
|
|
4877
|
-
y(i).length !== 1 ? (O(),
|
|
4876
|
+
y(i).length === 1 ? oe(h.$slots, "addonAfter", { key: 0 }) : q("", !0),
|
|
4877
|
+
y(i).length !== 1 ? (O(), I("span", ys, le(a.addonAfter), 1)) : q("", !0)
|
|
4878
4878
|
]),
|
|
4879
4879
|
key: "0"
|
|
4880
4880
|
} : void 0,
|
|
4881
4881
|
y(s).length === 1 || y(c)(a.addonBefore) ? {
|
|
4882
4882
|
name: "addonBefore",
|
|
4883
4883
|
fn: B(() => [
|
|
4884
|
-
y(s).length === 1 ?
|
|
4885
|
-
y(s).length !== 1 ? (O(),
|
|
4884
|
+
y(s).length === 1 ? oe(h.$slots, "addonBefore", { key: 0 }) : q("", !0),
|
|
4885
|
+
y(s).length !== 1 ? (O(), I("span", Ss, le(a.addonBefore), 1)) : q("", !0)
|
|
4886
4886
|
]),
|
|
4887
4887
|
key: "1"
|
|
4888
4888
|
} : void 0
|
|
@@ -4922,7 +4922,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4922
4922
|
a.value = i;
|
|
4923
4923
|
}
|
|
4924
4924
|
), (i, s) => {
|
|
4925
|
-
const u =
|
|
4925
|
+
const u = U("a-input-search");
|
|
4926
4926
|
return O(), z(u, {
|
|
4927
4927
|
value: a.value,
|
|
4928
4928
|
"onUpdate:value": s[0] || (s[0] = (p) => a.value = p),
|
|
@@ -4934,7 +4934,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4934
4934
|
t.showSuffix && !t.disabled ? {
|
|
4935
4935
|
name: "suffix",
|
|
4936
4936
|
fn: B(() => [
|
|
4937
|
-
|
|
4937
|
+
Q("a", { onClick: o }, [
|
|
4938
4938
|
D(Ve, { icon: "close" })
|
|
4939
4939
|
])
|
|
4940
4940
|
]),
|
|
@@ -4993,7 +4993,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
4993
4993
|
getValue: i,
|
|
4994
4994
|
setValue: s
|
|
4995
4995
|
}), (p, f) => {
|
|
4996
|
-
const v =
|
|
4996
|
+
const v = U("a-textarea");
|
|
4997
4997
|
return O(), z(v, {
|
|
4998
4998
|
value: l.value,
|
|
4999
4999
|
"onUpdate:value": f[0] || (f[0] = (h) => l.value = h),
|
|
@@ -5042,7 +5042,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5042
5042
|
emits: ["update:value", "update:label", "change"],
|
|
5043
5043
|
setup(e, { expose: n, emit: t }) {
|
|
5044
5044
|
const a = e, l = t, r = T.toString(a.value, null), o = a.multiple ? $(c(r) ? r.split(",") : []) : $(r), i = $(a.multiple ? [] : null), s = $(a.multiple ? {} : null), u = $([]), p = a.maxTagCount || 10, f = (w) => a.mountainTop ? document.body : w.parentNode, v = async () => {
|
|
5045
|
-
const w =
|
|
5045
|
+
const w = ae(A.ctxPath, A.requestDictUrl);
|
|
5046
5046
|
return await un(A.application, w, a.requestParams);
|
|
5047
5047
|
}, h = (w, g) => g.label.toLowerCase().indexOf(w.toLowerCase()) >= 0, d = (w, g) => {
|
|
5048
5048
|
C(!0);
|
|
@@ -5062,7 +5062,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5062
5062
|
if (a.multiple) {
|
|
5063
5063
|
const g = [];
|
|
5064
5064
|
o.value.forEach((x) => {
|
|
5065
|
-
let j = u.value.filter((
|
|
5065
|
+
let j = u.value.filter((F) => F.value === x);
|
|
5066
5066
|
j.length === 1 && (g.push(j[0].label), s.value[x] = j[0]);
|
|
5067
5067
|
}), i.value = g;
|
|
5068
5068
|
} else {
|
|
@@ -5076,13 +5076,13 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5076
5076
|
return n({
|
|
5077
5077
|
getValue: m,
|
|
5078
5078
|
setValue: S
|
|
5079
|
-
}),
|
|
5079
|
+
}), ie(() => {
|
|
5080
5080
|
v().then((w) => {
|
|
5081
5081
|
u.value = w, c(a.extraOptions) && a.extraOptions?.length > 0 && u.value.unshift(...a.extraOptions), c(o.value) && !c(i.value) && b();
|
|
5082
5082
|
});
|
|
5083
5083
|
}), (w, g) => {
|
|
5084
|
-
const x =
|
|
5085
|
-
return O(),
|
|
5084
|
+
const x = U("a-select");
|
|
5085
|
+
return O(), I("div", ws, [
|
|
5086
5086
|
D(x, {
|
|
5087
5087
|
value: y(o),
|
|
5088
5088
|
"onUpdate:value": g[0] || (g[0] = (j) => dt(o) ? o.value = j : null),
|
|
@@ -5142,52 +5142,52 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5142
5142
|
},
|
|
5143
5143
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5144
5144
|
setup(e, { expose: n, emit: t }) {
|
|
5145
|
-
const a = e, l = $(a.value ? a.value : a.multiple ? [] : null), r = $(a.label ? a.label : a.multiple ? [] : null), o = $(a.multiple ? {} : null), i = $([]), s = $(!1), u = t, p = "请输入" + a.title + "搜索", f = (
|
|
5145
|
+
const a = e, l = $(a.value ? a.value : a.multiple ? [] : null), r = $(a.label ? a.label : a.multiple ? [] : null), o = $(a.multiple ? {} : null), i = $([]), s = $(!1), u = t, p = "请输入" + a.title + "搜索", f = (N) => a.mountainTop ? document.body : N.parentNode, v = async () => {
|
|
5146
5146
|
if (a.corpFilter && !c(a.corpId))
|
|
5147
5147
|
return i.value = [], [];
|
|
5148
|
-
let
|
|
5149
|
-
Object.assign(
|
|
5150
|
-
const
|
|
5151
|
-
return s.value = !1, i.value =
|
|
5148
|
+
let N = { corpId: a.corpId };
|
|
5149
|
+
Object.assign(N, a.requestParams), i.value = [], s.value = !0;
|
|
5150
|
+
const R = await Re(a.requestUrl, N);
|
|
5151
|
+
return s.value = !1, i.value = R, R;
|
|
5152
5152
|
}, h = $t(() => {
|
|
5153
|
-
v().then((
|
|
5154
|
-
u("query",
|
|
5153
|
+
v().then((N) => {
|
|
5154
|
+
u("query", N);
|
|
5155
5155
|
});
|
|
5156
|
-
}, 300), d = (
|
|
5157
|
-
S(
|
|
5158
|
-
|
|
5156
|
+
}, 300), d = (N) => {
|
|
5157
|
+
S(N).then(() => {
|
|
5158
|
+
F(!0);
|
|
5159
5159
|
});
|
|
5160
|
-
}, m = (
|
|
5161
|
-
if (l.value =
|
|
5162
|
-
const
|
|
5163
|
-
l.value.forEach((
|
|
5164
|
-
let
|
|
5165
|
-
|
|
5166
|
-
}), r.value =
|
|
5160
|
+
}, m = (N, R) => R.label.toLowerCase().indexOf(ke(N).toLowerCase()) >= 0, S = async (N) => {
|
|
5161
|
+
if (l.value = N, a.multiple) {
|
|
5162
|
+
const R = [];
|
|
5163
|
+
l.value.forEach((Z) => {
|
|
5164
|
+
let E = i.value.filter((ee) => ee.value === Z);
|
|
5165
|
+
E.length === 1 && (R.push(E[0].label), o.value[Z] = E[0]);
|
|
5166
|
+
}), r.value = R;
|
|
5167
5167
|
} else {
|
|
5168
|
-
let
|
|
5169
|
-
|
|
5168
|
+
let R = i.value.filter((Z) => Z.value === N);
|
|
5169
|
+
R.length === 1 ? (r.value = R[0].label, o.value = R[0]) : (r.value = null, o.value = null);
|
|
5170
5170
|
}
|
|
5171
|
-
}, C = () => r.value, b = () => l.value, w = (
|
|
5172
|
-
S(
|
|
5173
|
-
|
|
5171
|
+
}, C = () => r.value, b = () => l.value, w = (N) => {
|
|
5172
|
+
S(N).then(() => {
|
|
5173
|
+
F();
|
|
5174
5174
|
});
|
|
5175
5175
|
}, g = () => {
|
|
5176
|
-
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null,
|
|
5176
|
+
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null, F();
|
|
5177
5177
|
}, x = async () => {
|
|
5178
5178
|
g(), i.value = [];
|
|
5179
5179
|
}, j = async () => {
|
|
5180
5180
|
g(), i.value = [], await h();
|
|
5181
|
-
},
|
|
5182
|
-
u("update:value", l.value), u("update:label", r.value),
|
|
5183
|
-
};
|
|
5181
|
+
}, F = (N = !1) => {
|
|
5182
|
+
u("update:value", l.value), u("update:label", r.value), N && u("change", o.value);
|
|
5183
|
+
}, X = (N, R) => a.multiple ? c(N) && !c(R) || !c(N) && c(R) ? !0 : !c(N) && !c(R) || N.length !== R.length ? !1 : !N.every((Z, E) => Z === R[E]) : N !== R;
|
|
5184
5184
|
return ve(
|
|
5185
5185
|
() => [a.corpId, a.value],
|
|
5186
|
-
async ([
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5186
|
+
async ([N, R], [Z, E]) => {
|
|
5187
|
+
const ee = N !== Z, ze = X(R, l.value);
|
|
5188
|
+
ee && (g(), await v()), ze && w(R);
|
|
5189
5189
|
}
|
|
5190
|
-
),
|
|
5190
|
+
), ie(async () => {
|
|
5191
5191
|
v();
|
|
5192
5192
|
}), n({
|
|
5193
5193
|
getName: C,
|
|
@@ -5195,12 +5195,12 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5195
5195
|
setValue: w,
|
|
5196
5196
|
clear: x,
|
|
5197
5197
|
reload: j
|
|
5198
|
-
}), (
|
|
5199
|
-
const
|
|
5200
|
-
return O(),
|
|
5201
|
-
D(
|
|
5198
|
+
}), (N, R) => {
|
|
5199
|
+
const Z = U("a-spin"), E = U("a-select");
|
|
5200
|
+
return O(), I("div", _s, [
|
|
5201
|
+
D(E, {
|
|
5202
5202
|
value: l.value,
|
|
5203
|
-
"onUpdate:value":
|
|
5203
|
+
"onUpdate:value": R[0] || (R[0] = (ee) => l.value = ee),
|
|
5204
5204
|
placeholder: p,
|
|
5205
5205
|
style: ge(a.style),
|
|
5206
5206
|
"filter-option": m,
|
|
@@ -5216,7 +5216,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5216
5216
|
s.value ? {
|
|
5217
5217
|
name: "notFoundContent",
|
|
5218
5218
|
fn: B(() => [
|
|
5219
|
-
D(
|
|
5219
|
+
D(Z, { size: "small" })
|
|
5220
5220
|
]),
|
|
5221
5221
|
key: "0"
|
|
5222
5222
|
} : void 0
|
|
@@ -5264,7 +5264,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5264
5264
|
if (c(g)) {
|
|
5265
5265
|
let x = { corpId: a.corpId, searchValue: ke(g) };
|
|
5266
5266
|
Object.assign(x, a.requestParams), s.value = !0;
|
|
5267
|
-
const j = await
|
|
5267
|
+
const j = await Re(a.requestUrl, x);
|
|
5268
5268
|
return s.value = !1, i.value = j, j;
|
|
5269
5269
|
} else
|
|
5270
5270
|
return [];
|
|
@@ -5289,15 +5289,15 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5289
5289
|
};
|
|
5290
5290
|
return ve(
|
|
5291
5291
|
() => [a.corpId, a.value],
|
|
5292
|
-
async ([g, x], [j,
|
|
5293
|
-
const
|
|
5294
|
-
|
|
5295
|
-
|
|
5292
|
+
async ([g, x], [j, F]) => {
|
|
5293
|
+
const X = g !== j, N = x !== l.value;
|
|
5294
|
+
X && (i.value = [], r.value = null, l.value = null, o.value = null, w()), N && m(x).then((R) => {
|
|
5295
|
+
R || v(x).then(() => {
|
|
5296
5296
|
b(x);
|
|
5297
5297
|
});
|
|
5298
5298
|
});
|
|
5299
5299
|
}
|
|
5300
|
-
),
|
|
5300
|
+
), ie(async () => {
|
|
5301
5301
|
c(l.value) && (c(r.value) ? i.value = [
|
|
5302
5302
|
{
|
|
5303
5303
|
value: l.value,
|
|
@@ -5309,11 +5309,11 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5309
5309
|
getValue: C,
|
|
5310
5310
|
setValue: b
|
|
5311
5311
|
}), (g, x) => {
|
|
5312
|
-
const j =
|
|
5313
|
-
return O(),
|
|
5314
|
-
D(
|
|
5312
|
+
const j = U("a-spin"), F = U("a-select");
|
|
5313
|
+
return O(), I("div", Os, [
|
|
5314
|
+
D(F, {
|
|
5315
5315
|
value: l.value,
|
|
5316
|
-
"onUpdate:value": x[0] || (x[0] = (
|
|
5316
|
+
"onUpdate:value": x[0] || (x[0] = (X) => l.value = X),
|
|
5317
5317
|
placeholder: p,
|
|
5318
5318
|
style: ge(a.style),
|
|
5319
5319
|
"filter-option": !1,
|
|
@@ -5355,9 +5355,9 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5355
5355
|
//
|
|
5356
5356
|
},
|
|
5357
5357
|
setup(e) {
|
|
5358
|
-
const n = e, t = Object.keys(
|
|
5358
|
+
const n = e, t = Object.keys(Ne()), a = t.filter((i) => i !== "header"), l = t.filter((i) => i === "header"), r = $(n.activeKey), o = $(n.header instanceof Object ? n.header : { default: n.header });
|
|
5359
5359
|
return (i, s) => {
|
|
5360
|
-
const u =
|
|
5360
|
+
const u = U("a-collapse-panel"), p = U("a-collapse");
|
|
5361
5361
|
return O(), z(p, {
|
|
5362
5362
|
activeKey: r.value,
|
|
5363
5363
|
"onUpdate:activeKey": s[0] || (s[0] = (f) => r.value = f),
|
|
@@ -5366,16 +5366,16 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5366
5366
|
accordion: ""
|
|
5367
5367
|
}, {
|
|
5368
5368
|
default: B(() => [
|
|
5369
|
-
(O(!0),
|
|
5369
|
+
(O(!0), I(pe, null, Pe(y(a), (f) => (O(), z(u, {
|
|
5370
5370
|
key: f,
|
|
5371
5371
|
forceRender: "",
|
|
5372
5372
|
showArrow: n.showArrow
|
|
5373
5373
|
}, {
|
|
5374
5374
|
header: B(() => [
|
|
5375
|
-
y(l).length === 1 ?
|
|
5375
|
+
y(l).length === 1 ? oe(i.$slots, "header", { key: 0 }) : (O(), I("span", xs, le(o.value[f]), 1))
|
|
5376
5376
|
]),
|
|
5377
5377
|
default: B(() => [
|
|
5378
|
-
|
|
5378
|
+
oe(i.$slots, f)
|
|
5379
5379
|
]),
|
|
5380
5380
|
_: 2
|
|
5381
5381
|
}, 1032, ["showArrow"]))), 128))
|
|
@@ -5393,8 +5393,8 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5393
5393
|
inheritAttrs: !1,
|
|
5394
5394
|
__name: "SagAntdSpace",
|
|
5395
5395
|
setup(e) {
|
|
5396
|
-
return (n, t) => (O(),
|
|
5397
|
-
|
|
5396
|
+
return (n, t) => (O(), I("div", Cs, [
|
|
5397
|
+
oe(n.$slots, "default")
|
|
5398
5398
|
]));
|
|
5399
5399
|
}
|
|
5400
5400
|
}), Gs = {
|
|
@@ -5428,7 +5428,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5428
5428
|
a.value = o;
|
|
5429
5429
|
}
|
|
5430
5430
|
), (o, i) => {
|
|
5431
|
-
const s =
|
|
5431
|
+
const s = U("a-switch");
|
|
5432
5432
|
return O(), z(s, {
|
|
5433
5433
|
checked: a.value,
|
|
5434
5434
|
"onUpdate:checked": i[0] || (i[0] = (u) => a.value = u),
|
|
@@ -5466,7 +5466,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5466
5466
|
},
|
|
5467
5467
|
emits: ["update:activeKey", "change"],
|
|
5468
5468
|
setup(e, { emit: n }) {
|
|
5469
|
-
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(
|
|
5469
|
+
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Ne()), r = l.filter((p) => p != "rightExtra" && p != "header"), o = $(t.activeKey), i = $(t.header instanceof Object ? t.header : { default: t.header }), s = n, u = (p) => {
|
|
5470
5470
|
s("update:activeKey", p), s("change", p);
|
|
5471
5471
|
};
|
|
5472
5472
|
return ve(
|
|
@@ -5475,7 +5475,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5475
5475
|
o.value = p;
|
|
5476
5476
|
}
|
|
5477
5477
|
), (p, f) => {
|
|
5478
|
-
const v =
|
|
5478
|
+
const v = U("a-tab-pane"), h = U("a-tabs");
|
|
5479
5479
|
return O(), z(h, {
|
|
5480
5480
|
activeKey: o.value,
|
|
5481
5481
|
"onUpdate:activeKey": f[0] || (f[0] = (d) => o.value = d),
|
|
@@ -5486,26 +5486,26 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5486
5486
|
onChange: u
|
|
5487
5487
|
}, _e({
|
|
5488
5488
|
default: B(() => [
|
|
5489
|
-
(O(!0),
|
|
5489
|
+
(O(!0), I(pe, null, Pe(y(r), (d, m) => (O(), z(v, {
|
|
5490
5490
|
key: d,
|
|
5491
5491
|
forceRender: t.forceRender && !t.notForceRender?.includes(d),
|
|
5492
5492
|
style: ge(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5493
5493
|
}, {
|
|
5494
5494
|
tab: B(() => [
|
|
5495
|
-
|
|
5495
|
+
Q("span", {
|
|
5496
5496
|
style: ge(m === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5497
5497
|
}, [
|
|
5498
|
-
y(l).includes("header") ?
|
|
5498
|
+
y(l).includes("header") ? oe(p.$slots, "header", {
|
|
5499
5499
|
key: 0,
|
|
5500
5500
|
tabKey: d
|
|
5501
|
-
}) : (O(),
|
|
5501
|
+
}) : (O(), I(pe, { key: 1 }, [
|
|
5502
5502
|
D(Ve, { icon: "menu" }),
|
|
5503
|
-
de(" " +
|
|
5503
|
+
de(" " + le(i.value[d]), 1)
|
|
5504
5504
|
], 64))
|
|
5505
5505
|
], 4)
|
|
5506
5506
|
]),
|
|
5507
5507
|
default: B(() => [
|
|
5508
|
-
|
|
5508
|
+
oe(p.$slots, d)
|
|
5509
5509
|
]),
|
|
5510
5510
|
_: 2
|
|
5511
5511
|
}, 1032, ["forceRender", "style"]))), 128))
|
|
@@ -5515,7 +5515,7 @@ const Hi = { id: "div_view_modal" }, Yi = { style: { color: "red", "padding-left
|
|
|
5515
5515
|
y(l).includes("rightExtra") ? {
|
|
5516
5516
|
name: "rightExtra",
|
|
5517
5517
|
fn: B(() => [
|
|
5518
|
-
|
|
5518
|
+
oe(p.$slots, "rightExtra")
|
|
5519
5519
|
]),
|
|
5520
5520
|
key: "0"
|
|
5521
5521
|
} : void 0
|