sag-vxe-pc 1.2.1 → 1.2.2
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-vxe-pc.es.js +369 -359
- package/dist/sag-vxe-pc.umd.js +4 -4
- package/package.json +1 -1
package/dist/sag-vxe-pc.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { inject as de, ref as q, h as Pe, getCurrentInstance as pl, nextTick as Qe, reactive as te, defineComponent as le, createVNode as
|
|
1
|
+
import { inject as de, ref as q, h as Pe, getCurrentInstance as pl, nextTick as Qe, reactive as te, defineComponent as le, createVNode as j, openBlock as S, createElementBlock as W, Fragment as xe, createBlock as $, unref as _, createCommentVNode as E, onMounted as ye, resolveComponent as G, isRef as Sr, createSlots as mt, withCtx as N, mergeProps as ee, defineAsyncComponent as gl, computed as hl, createElementVNode as K, toDisplayString as Se, resolveDynamicComponent as vl, useAttrs as bl, provide as Ma, useSlots as yl, watch as Ol, withDirectives as ja, createTextVNode as ve, renderList as $e, renderSlot as za, vShow as $a, toHandlers as wl, normalizeProps as _l, guardReactiveProps as Sl } from "vue";
|
|
2
2
|
import Le, { trim as Me, debounce as Cl } from "xe-utils";
|
|
3
3
|
import { Modal as xl, notification as pt, message as Pl, Spin as Tl } from "ant-design-vue";
|
|
4
4
|
import R from "dayjs";
|
|
5
|
-
const
|
|
5
|
+
const z = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Ve = (e) => e === void 0 || e === null ? !0 : e;
|
|
6
6
|
function Ot(e) {
|
|
7
7
|
return function(n, t) {
|
|
8
8
|
console[e]("[sag-vxe-pc]" + n, t);
|
|
@@ -27,7 +27,7 @@ const ue = Ot("log"), Cr = Ot("warn"), et = Ot("error"), Aa = (e) => {
|
|
|
27
27
|
if (d > 1)
|
|
28
28
|
return { rowspan: d, colspan: 1 };
|
|
29
29
|
}
|
|
30
|
-
} else if (!
|
|
30
|
+
} else if (!z(u.field) || u.field === t) {
|
|
31
31
|
const m = i[o - 1];
|
|
32
32
|
let p = i[o + 1];
|
|
33
33
|
if (m && m[n] === l[n])
|
|
@@ -40,7 +40,7 @@ const ue = Ot("log"), Cr = Ot("warn"), et = Ot("error"), Aa = (e) => {
|
|
|
40
40
|
return { rowspan: g, colspan: 1 };
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
} else if (
|
|
43
|
+
} else if (z(r[u.field])) {
|
|
44
44
|
const m = r[u.field], p = i[o - 1], g = p && p[u.field] ? p[u.field] : "";
|
|
45
45
|
let k = i[o + 1];
|
|
46
46
|
const d = k && k[u.field] ? k[u.field] : "";
|
|
@@ -59,7 +59,7 @@ const ue = Ot("log"), Cr = Ot("warn"), et = Ot("error"), Aa = (e) => {
|
|
|
59
59
|
}, gt = (e, n, t, r, a, l) => {
|
|
60
60
|
const o = Object.assign({}, r);
|
|
61
61
|
Object.assign(o, a), Object.keys(o).forEach((i) => {
|
|
62
|
-
typeof o[i] == "string" && (o[i] = Me(o[i])), typeof a[i] == "object" &&
|
|
62
|
+
typeof o[i] == "string" && (o[i] = Me(o[i])), typeof a[i] == "object" && z(a[i]) && l && l.value[i] && l.value[i].getRefType && l.value[i].getRefType() === "dateRange" && (o["begin" + i.substring(0, 1).toUpperCase() + i.substring(1, i.length)] = a[i][0], o["end" + i.substring(0, 1).toUpperCase() + i.substring(1, i.length)] = a[i][1], o[i] = null);
|
|
63
63
|
}), o.pageModel = {
|
|
64
64
|
pageNo: e.currentPage,
|
|
65
65
|
pageSize: e.pageSize,
|
|
@@ -91,7 +91,7 @@ const ue = Ot("log"), Cr = Ot("warn"), et = Ot("error"), Aa = (e) => {
|
|
|
91
91
|
n.height = l > n.minHeight ? l : n.minHeight;
|
|
92
92
|
}, lt = (e, n, t) => {
|
|
93
93
|
var r, a, l;
|
|
94
|
-
if (
|
|
94
|
+
if (z(e))
|
|
95
95
|
for (const o in e) {
|
|
96
96
|
const u = e[o].field;
|
|
97
97
|
if (u) {
|
|
@@ -162,16 +162,16 @@ const ue = Ot("log"), Cr = Ot("warn"), et = Ot("error"), Aa = (e) => {
|
|
|
162
162
|
}, Fe = async (e, n) => x.requestPlugin != null && typeof x.requestPlugin == "function" ? await x.requestPlugin(e, n) : (et("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null);
|
|
163
163
|
function me(e, n) {
|
|
164
164
|
Ml(e) && (e = "100%");
|
|
165
|
-
var t =
|
|
165
|
+
var t = jl(e);
|
|
166
166
|
return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
|
|
167
167
|
}
|
|
168
168
|
function Ml(e) {
|
|
169
169
|
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function jl(e) {
|
|
172
172
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function zl(e) {
|
|
175
175
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
176
176
|
}
|
|
177
177
|
function He(e) {
|
|
@@ -392,7 +392,7 @@ var Va = {
|
|
|
392
392
|
};
|
|
393
393
|
function qe(e) {
|
|
394
394
|
var n = { r: 0, g: 0, b: 0 }, t = 1, r = null, a = null, l = null, o = !1, u = !1;
|
|
395
|
-
return typeof e == "string" && (e = Rl(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = $l(e.r, e.g, e.b), o = !0, u = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : _e(e.h) && _e(e.s) && _e(e.v) ? (r = He(e.s), a = He(e.v), n = El(e.h, r, a), o = !0, u = "hsv") : _e(e.h) && _e(e.s) && _e(e.l) && (r = He(e.s), l = He(e.l), n = Al(e.h, r, l), o = !0, u = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t =
|
|
395
|
+
return typeof e == "string" && (e = Rl(e)), typeof e == "object" && (_e(e.r) && _e(e.g) && _e(e.b) ? (n = $l(e.r, e.g, e.b), o = !0, u = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : _e(e.h) && _e(e.s) && _e(e.v) ? (r = He(e.s), a = He(e.v), n = El(e.h, r, a), o = !0, u = "hsv") : _e(e.h) && _e(e.s) && _e(e.l) && (r = He(e.s), l = He(e.l), n = Al(e.h, r, l), o = !0, u = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = zl(t), {
|
|
396
396
|
ok: o,
|
|
397
397
|
format: e.format || u,
|
|
398
398
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -591,7 +591,7 @@ function Mr(e) {
|
|
|
591
591
|
return n.tagName === "STYLE";
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function jr(e) {
|
|
595
595
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
596
596
|
if (!wt())
|
|
597
597
|
return null;
|
|
@@ -620,7 +620,7 @@ function Ql(e) {
|
|
|
620
620
|
function Xl(e, n) {
|
|
621
621
|
var t = vt.get(e);
|
|
622
622
|
if (!t || !Wl(document, t)) {
|
|
623
|
-
var r =
|
|
623
|
+
var r = jr("", n), a = r.parentNode;
|
|
624
624
|
vt.set(e, a), e.removeChild(r);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
@@ -630,7 +630,7 @@ function Zl(e, n) {
|
|
|
630
630
|
var a = Ql(n, t);
|
|
631
631
|
if (a)
|
|
632
632
|
return t.csp && t.csp.nonce && a.nonce !== t.csp.nonce && (a.nonce = t.csp.nonce), a.innerHTML !== e && (a.innerHTML = e), a;
|
|
633
|
-
var l =
|
|
633
|
+
var l = jr(e, t);
|
|
634
634
|
return l.setAttribute(kr(t), n), l;
|
|
635
635
|
}
|
|
636
636
|
function Ha(e) {
|
|
@@ -667,7 +667,7 @@ function bt(e, n, t) {
|
|
|
667
667
|
return bt(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
|
|
668
668
|
}));
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function zr(e) {
|
|
671
671
|
return ht(e)[0];
|
|
672
672
|
}
|
|
673
673
|
function $r(e) {
|
|
@@ -790,7 +790,7 @@ var Re = te({
|
|
|
790
790
|
});
|
|
791
791
|
function co(e) {
|
|
792
792
|
var n = e.primaryColor, t = e.secondaryColor;
|
|
793
|
-
Re.primaryColor = n, Re.secondaryColor = t ||
|
|
793
|
+
Re.primaryColor = n, Re.secondaryColor = t || zr(n), Re.calculated = !!t;
|
|
794
794
|
}
|
|
795
795
|
function fo() {
|
|
796
796
|
return Je({}, Re);
|
|
@@ -799,7 +799,7 @@ var De = function(n, t) {
|
|
|
799
799
|
var r = Je({}, n, t.attrs), a = r.icon, l = r.primaryColor, o = r.secondaryColor, u = io(r, oo), i = Re;
|
|
800
800
|
if (l && (i = {
|
|
801
801
|
primaryColor: l,
|
|
802
|
-
secondaryColor: o ||
|
|
802
|
+
secondaryColor: o || zr(l)
|
|
803
803
|
}), to(Ua(a), "icon should be icon definiton, but got ".concat(a)), !Ua(a))
|
|
804
804
|
return null;
|
|
805
805
|
var s = a;
|
|
@@ -979,20 +979,20 @@ var Ee = function(n, t) {
|
|
|
979
979
|
var h = i ? {
|
|
980
980
|
msTransform: "rotate(".concat(i, "deg)"),
|
|
981
981
|
transform: "rotate(".concat(i, "deg)")
|
|
982
|
-
} : void 0, P = $r(m), v = wo(P, 2),
|
|
983
|
-
return
|
|
982
|
+
} : void 0, P = $r(m), v = wo(P, 2), O = v[0], M = v[1];
|
|
983
|
+
return j("span", Wa({
|
|
984
984
|
role: "img",
|
|
985
985
|
"aria-label": o.name
|
|
986
986
|
}, g, {
|
|
987
987
|
onClick: p,
|
|
988
988
|
class: [b, l],
|
|
989
989
|
tabindex: C
|
|
990
|
-
}), [
|
|
990
|
+
}), [j(St, {
|
|
991
991
|
icon: o,
|
|
992
|
-
primaryColor:
|
|
993
|
-
secondaryColor:
|
|
992
|
+
primaryColor: O,
|
|
993
|
+
secondaryColor: M,
|
|
994
994
|
style: h
|
|
995
|
-
}, null),
|
|
995
|
+
}, null), j(yo, null, null)]);
|
|
996
996
|
};
|
|
997
997
|
Ee.props = {
|
|
998
998
|
spin: Boolean,
|
|
@@ -1013,23 +1013,23 @@ function Ga(e) {
|
|
|
1013
1013
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
1014
1014
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
1015
1015
|
}))), r.forEach(function(a) {
|
|
1016
|
-
|
|
1016
|
+
jo(e, a, t[a]);
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
1019
|
return e;
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function jo(e, n, t) {
|
|
1022
1022
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1023
1023
|
}
|
|
1024
1024
|
var Ct = function(n, t) {
|
|
1025
1025
|
var r = Ga({}, n, t.attrs);
|
|
1026
|
-
return
|
|
1026
|
+
return j(J, Ga({}, r, {
|
|
1027
1027
|
icon: Mo
|
|
1028
1028
|
}), null);
|
|
1029
1029
|
};
|
|
1030
1030
|
Ct.displayName = "AuditOutlined";
|
|
1031
1031
|
Ct.inheritAttrs = !1;
|
|
1032
|
-
const
|
|
1032
|
+
const zo = Ct;
|
|
1033
1033
|
var $o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" };
|
|
1034
1034
|
const Ao = $o;
|
|
1035
1035
|
function Ja(e) {
|
|
@@ -1048,7 +1048,7 @@ function Do(e, n, t) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
var xt = function(n, t) {
|
|
1050
1050
|
var r = Ja({}, n, t.attrs);
|
|
1051
|
-
return
|
|
1051
|
+
return j(J, Ja({}, r, {
|
|
1052
1052
|
icon: Ao
|
|
1053
1053
|
}), null);
|
|
1054
1054
|
};
|
|
@@ -1073,7 +1073,7 @@ function No(e, n, t) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
var Pt = function(n, t) {
|
|
1075
1075
|
var r = Qa({}, n, t.attrs);
|
|
1076
|
-
return
|
|
1076
|
+
return j(J, Qa({}, r, {
|
|
1077
1077
|
icon: qo
|
|
1078
1078
|
}), null);
|
|
1079
1079
|
};
|
|
@@ -1098,7 +1098,7 @@ function Bo(e, n, t) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
var Tt = function(n, t) {
|
|
1100
1100
|
var r = Xa({}, n, t.attrs);
|
|
1101
|
-
return
|
|
1101
|
+
return j(J, Xa({}, r, {
|
|
1102
1102
|
icon: Fo
|
|
1103
1103
|
}), null);
|
|
1104
1104
|
};
|
|
@@ -1123,7 +1123,7 @@ function Yo(e, n, t) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
var kt = function(n, t) {
|
|
1125
1125
|
var r = Za({}, n, t.attrs);
|
|
1126
|
-
return
|
|
1126
|
+
return j(J, Za({}, r, {
|
|
1127
1127
|
icon: Io
|
|
1128
1128
|
}), null);
|
|
1129
1129
|
};
|
|
@@ -1148,7 +1148,7 @@ function Qo(e, n, t) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
var Mt = function(n, t) {
|
|
1150
1150
|
var r = Ka({}, n, t.attrs);
|
|
1151
|
-
return
|
|
1151
|
+
return j(J, Ka({}, r, {
|
|
1152
1152
|
icon: Jo
|
|
1153
1153
|
}), null);
|
|
1154
1154
|
};
|
|
@@ -1171,15 +1171,15 @@ function er(e) {
|
|
|
1171
1171
|
function Ko(e, n, t) {
|
|
1172
1172
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1173
1173
|
}
|
|
1174
|
-
var
|
|
1174
|
+
var jt = function(n, t) {
|
|
1175
1175
|
var r = er({}, n, t.attrs);
|
|
1176
|
-
return
|
|
1176
|
+
return j(J, er({}, r, {
|
|
1177
1177
|
icon: Zo
|
|
1178
1178
|
}), null);
|
|
1179
1179
|
};
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
const ei =
|
|
1180
|
+
jt.displayName = "DownloadOutlined";
|
|
1181
|
+
jt.inheritAttrs = !1;
|
|
1182
|
+
const ei = jt;
|
|
1183
1183
|
var ti = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" };
|
|
1184
1184
|
const ni = ti;
|
|
1185
1185
|
function tr(e) {
|
|
@@ -1196,15 +1196,15 @@ function tr(e) {
|
|
|
1196
1196
|
function ai(e, n, t) {
|
|
1197
1197
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1198
1198
|
}
|
|
1199
|
-
var
|
|
1199
|
+
var zt = function(n, t) {
|
|
1200
1200
|
var r = tr({}, n, t.attrs);
|
|
1201
|
-
return
|
|
1201
|
+
return j(J, tr({}, r, {
|
|
1202
1202
|
icon: ni
|
|
1203
1203
|
}), null);
|
|
1204
1204
|
};
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
const ri =
|
|
1205
|
+
zt.displayName = "EditOutlined";
|
|
1206
|
+
zt.inheritAttrs = !1;
|
|
1207
|
+
const ri = zt;
|
|
1208
1208
|
var li = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
|
|
1209
1209
|
const oi = li;
|
|
1210
1210
|
function nr(e) {
|
|
@@ -1223,7 +1223,7 @@ function ii(e, n, t) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
var $t = function(n, t) {
|
|
1225
1225
|
var r = nr({}, n, t.attrs);
|
|
1226
|
-
return
|
|
1226
|
+
return j(J, nr({}, r, {
|
|
1227
1227
|
icon: oi
|
|
1228
1228
|
}), null);
|
|
1229
1229
|
};
|
|
@@ -1248,7 +1248,7 @@ function fi(e, n, t) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
var At = function(n, t) {
|
|
1250
1250
|
var r = ar({}, n, t.attrs);
|
|
1251
|
-
return
|
|
1251
|
+
return j(J, ar({}, r, {
|
|
1252
1252
|
icon: ci
|
|
1253
1253
|
}), null);
|
|
1254
1254
|
};
|
|
@@ -1273,7 +1273,7 @@ function gi(e, n, t) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
var Dt = function(n, t) {
|
|
1275
1275
|
var r = rr({}, n, t.attrs);
|
|
1276
|
-
return
|
|
1276
|
+
return j(J, rr({}, r, {
|
|
1277
1277
|
icon: pi
|
|
1278
1278
|
}), null);
|
|
1279
1279
|
};
|
|
@@ -1298,7 +1298,7 @@ function yi(e, n, t) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
var Et = function(n, t) {
|
|
1300
1300
|
var r = lr({}, n, t.attrs);
|
|
1301
|
-
return
|
|
1301
|
+
return j(J, lr({}, r, {
|
|
1302
1302
|
icon: bi
|
|
1303
1303
|
}), null);
|
|
1304
1304
|
};
|
|
@@ -1323,7 +1323,7 @@ function Si(e, n, t) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
var Vt = function(n, t) {
|
|
1325
1325
|
var r = or({}, n, t.attrs);
|
|
1326
|
-
return
|
|
1326
|
+
return j(J, or({}, r, {
|
|
1327
1327
|
icon: _i
|
|
1328
1328
|
}), null);
|
|
1329
1329
|
};
|
|
@@ -1348,7 +1348,7 @@ function Ti(e, n, t) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
var qt = function(n, t) {
|
|
1350
1350
|
var r = ir({}, n, t.attrs);
|
|
1351
|
-
return
|
|
1351
|
+
return j(J, ir({}, r, {
|
|
1352
1352
|
icon: Pi
|
|
1353
1353
|
}), null);
|
|
1354
1354
|
};
|
|
@@ -1356,25 +1356,25 @@ qt.displayName = "MenuOutlined";
|
|
|
1356
1356
|
qt.inheritAttrs = !1;
|
|
1357
1357
|
const ki = qt;
|
|
1358
1358
|
var Mi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "minus", theme: "outlined" };
|
|
1359
|
-
const
|
|
1359
|
+
const ji = Mi;
|
|
1360
1360
|
function ur(e) {
|
|
1361
1361
|
for (var n = 1; n < arguments.length; n++) {
|
|
1362
1362
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
|
|
1363
1363
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
1364
1364
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
1365
1365
|
}))), r.forEach(function(a) {
|
|
1366
|
-
|
|
1366
|
+
zi(e, a, t[a]);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
1369
|
return e;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function zi(e, n, t) {
|
|
1372
1372
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1373
1373
|
}
|
|
1374
1374
|
var Nt = function(n, t) {
|
|
1375
1375
|
var r = ur({}, n, t.attrs);
|
|
1376
|
-
return
|
|
1377
|
-
icon:
|
|
1376
|
+
return j(J, ur({}, r, {
|
|
1377
|
+
icon: ji
|
|
1378
1378
|
}), null);
|
|
1379
1379
|
};
|
|
1380
1380
|
Nt.displayName = "MinusOutlined";
|
|
@@ -1398,7 +1398,7 @@ function Ei(e, n, t) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
var Rt = function(n, t) {
|
|
1400
1400
|
var r = sr({}, n, t.attrs);
|
|
1401
|
-
return
|
|
1401
|
+
return j(J, sr({}, r, {
|
|
1402
1402
|
icon: Di
|
|
1403
1403
|
}), null);
|
|
1404
1404
|
};
|
|
@@ -1423,7 +1423,7 @@ function Ri(e, n, t) {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
var Lt = function(n, t) {
|
|
1425
1425
|
var r = cr({}, n, t.attrs);
|
|
1426
|
-
return
|
|
1426
|
+
return j(J, cr({}, r, {
|
|
1427
1427
|
icon: Ni
|
|
1428
1428
|
}), null);
|
|
1429
1429
|
};
|
|
@@ -1448,7 +1448,7 @@ function Hi(e, n, t) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
var Ft = function(n, t) {
|
|
1450
1450
|
var r = fr({}, n, t.attrs);
|
|
1451
|
-
return
|
|
1451
|
+
return j(J, fr({}, r, {
|
|
1452
1452
|
icon: Bi
|
|
1453
1453
|
}), null);
|
|
1454
1454
|
};
|
|
@@ -1473,7 +1473,7 @@ function Wi(e, n, t) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
var Bt = function(n, t) {
|
|
1475
1475
|
var r = dr({}, n, t.attrs);
|
|
1476
|
-
return
|
|
1476
|
+
return j(J, dr({}, r, {
|
|
1477
1477
|
icon: Yi
|
|
1478
1478
|
}), null);
|
|
1479
1479
|
};
|
|
@@ -1498,7 +1498,7 @@ function Xi(e, n, t) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
var Ht = function(n, t) {
|
|
1500
1500
|
var r = mr({}, n, t.attrs);
|
|
1501
|
-
return
|
|
1501
|
+
return j(J, mr({}, r, {
|
|
1502
1502
|
icon: Qi
|
|
1503
1503
|
}), null);
|
|
1504
1504
|
};
|
|
@@ -1523,7 +1523,7 @@ function tu(e, n, t) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
var Ut = function(n, t) {
|
|
1525
1525
|
var r = pr({}, n, t.attrs);
|
|
1526
|
-
return
|
|
1526
|
+
return j(J, pr({}, r, {
|
|
1527
1527
|
icon: eu
|
|
1528
1528
|
}), null);
|
|
1529
1529
|
};
|
|
@@ -1548,7 +1548,7 @@ function lu(e, n, t) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
var It = function(n, t) {
|
|
1550
1550
|
var r = gr({}, n, t.attrs);
|
|
1551
|
-
return
|
|
1551
|
+
return j(J, gr({}, r, {
|
|
1552
1552
|
icon: ru
|
|
1553
1553
|
}), null);
|
|
1554
1554
|
};
|
|
@@ -1573,7 +1573,7 @@ function su(e, n, t) {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
var Yt = function(n, t) {
|
|
1575
1575
|
var r = hr({}, n, t.attrs);
|
|
1576
|
-
return
|
|
1576
|
+
return j(J, hr({}, r, {
|
|
1577
1577
|
icon: uu
|
|
1578
1578
|
}), null);
|
|
1579
1579
|
};
|
|
@@ -1598,7 +1598,7 @@ function mu(e, n, t) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
var Wt = function(n, t) {
|
|
1600
1600
|
var r = vr({}, n, t.attrs);
|
|
1601
|
-
return
|
|
1601
|
+
return j(J, vr({}, r, {
|
|
1602
1602
|
icon: du
|
|
1603
1603
|
}), null);
|
|
1604
1604
|
};
|
|
@@ -1623,13 +1623,13 @@ function vu(e, n, t) {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
var Gt = function(n, t) {
|
|
1625
1625
|
var r = br({}, n, t.attrs);
|
|
1626
|
-
return
|
|
1626
|
+
return j(J, br({}, r, {
|
|
1627
1627
|
icon: hu
|
|
1628
1628
|
}), null);
|
|
1629
1629
|
};
|
|
1630
1630
|
Gt.displayName = "UserOutlined";
|
|
1631
1631
|
Gt.inheritAttrs = !1;
|
|
1632
|
-
const bu = Gt, re = (e, n) =>
|
|
1632
|
+
const bu = Gt, re = (e, n) => z(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e + n : e + "/" + n : "", yu = (e) => {
|
|
1633
1633
|
const n = document.createElement("iframe");
|
|
1634
1634
|
n.style.display = "none", n.style.height = "0", n.src = e, document.body.appendChild(n), setTimeout(() => {
|
|
1635
1635
|
n.remove();
|
|
@@ -1650,7 +1650,7 @@ const bu = Gt, re = (e, n) => j(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e
|
|
|
1650
1650
|
]) : e;
|
|
1651
1651
|
xl.confirm({
|
|
1652
1652
|
title: "操作确认",
|
|
1653
|
-
icon:
|
|
1653
|
+
icon: j(ui),
|
|
1654
1654
|
content: r,
|
|
1655
1655
|
okText: "确认",
|
|
1656
1656
|
cancelText: "取消",
|
|
@@ -1661,7 +1661,7 @@ const bu = Gt, re = (e, n) => j(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e
|
|
|
1661
1661
|
onCancel() {
|
|
1662
1662
|
}
|
|
1663
1663
|
});
|
|
1664
|
-
},
|
|
1664
|
+
}, Y = (e, n) => e != null && e !== "" ? e : n, Ou = (e, n, t) => {
|
|
1665
1665
|
e ? (pt.success({
|
|
1666
1666
|
message: "操作成功",
|
|
1667
1667
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -1688,7 +1688,7 @@ const bu = Gt, re = (e, n) => j(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e
|
|
|
1688
1688
|
let a = null;
|
|
1689
1689
|
if (n.checkboxConfig ? a = t.getCheckboxRecords(!1) : n.radioConfig && (a = t.getRadioRecord(!1)), a && n.checkboxConfig) {
|
|
1690
1690
|
const l = (r = n == null ? void 0 : n.params) == null ? void 0 : r.mergeField;
|
|
1691
|
-
if (
|
|
1691
|
+
if (z(l)) {
|
|
1692
1692
|
const o = [""], u = [];
|
|
1693
1693
|
for (const i in a)
|
|
1694
1694
|
o.includes(a[i][l]) || u.push(a[i]), o.push(a[i][l]);
|
|
@@ -1710,27 +1710,27 @@ const bu = Gt, re = (e, n) => j(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e
|
|
|
1710
1710
|
};
|
|
1711
1711
|
function _u(e) {
|
|
1712
1712
|
const { gridRef: n, targetModal: t, gridOptions: r, pageOptions: a, formData: l, pageModal: o } = e, u = async (d) => {
|
|
1713
|
-
if (!
|
|
1713
|
+
if (!z(d.requestType) || typeof d.requestType == "string")
|
|
1714
1714
|
if (d.requestType === "custom") {
|
|
1715
1715
|
const c = await k(d);
|
|
1716
|
-
if (d.requestRow && !
|
|
1716
|
+
if (d.requestRow && !z(c))
|
|
1717
1717
|
return;
|
|
1718
1718
|
a.onButtonClickModule({ gridRef: n, gridOptions: r, formData: l, item: d, data: c });
|
|
1719
1719
|
} else
|
|
1720
1720
|
p(l, d);
|
|
1721
1721
|
else {
|
|
1722
1722
|
const c = await k(d);
|
|
1723
|
-
if (d.requestRow && !
|
|
1723
|
+
if (d.requestRow && !z(c))
|
|
1724
1724
|
return;
|
|
1725
1725
|
d.requestType({ gridRef: n, gridOptions: r, formData: l, item: d, data: c });
|
|
1726
1726
|
}
|
|
1727
1727
|
}, i = (d, c) => {
|
|
1728
|
-
!
|
|
1728
|
+
!z(d.requestType) || typeof d.requestType == "string" ? d.requestType === "custom" ? a.onButtonClickModule({ gridRef: n, gridOptions: r, formData: l, item: d, row: c }) : g(d, c) : d.requestType({ gridRef: n, gridOptions: r, formData: l, item: d, row: c });
|
|
1729
1729
|
}, s = (d, c) => {
|
|
1730
1730
|
const b = c.params.requestType;
|
|
1731
|
-
!
|
|
1731
|
+
!z(b) || typeof b == "string" ? b === "custom" ? a.onButtonClickModule({ gridRef: n, gridOptions: r, formData: l, column: c, row: d }) : m(d, c) : b({ gridRef: n, gridOptions: r, formData: l, column: c, row: d });
|
|
1732
1732
|
}, m = (d, c) => {
|
|
1733
|
-
if (t.title =
|
|
1733
|
+
if (t.title = Y(c.params.title, o.title), t.width = Y(c.params.width, o.width), t.height = Y(c.params.height, o.height), t.maximize = Y(c.params.maximize, !1), t.autoLoad = Y(c.params.autoLoad, !1), t.componentType = Y(c.params.componentType, o.componentType), t.componentUrl = c.params.requestUrl, t.componentType === "iframe") {
|
|
1734
1734
|
let b = re(a.ctxPath, t.componentUrl);
|
|
1735
1735
|
for (const C in d)
|
|
1736
1736
|
b = b.replace("{" + C + "}", d[C]);
|
|
@@ -1741,30 +1741,30 @@ function _u(e) {
|
|
|
1741
1741
|
}, p = async (d, c) => {
|
|
1742
1742
|
if (n.value) {
|
|
1743
1743
|
const C = await k(c);
|
|
1744
|
-
if (c.requestRow && !
|
|
1744
|
+
if (c.requestRow && !z(C))
|
|
1745
1745
|
return;
|
|
1746
1746
|
if (c.requestType === "modal" || c.requestType === "open") {
|
|
1747
1747
|
let h = c.requestUrl;
|
|
1748
|
-
const P =
|
|
1748
|
+
const P = Y(c.componentType, o.componentType);
|
|
1749
1749
|
if ((P === "iframe" || c.requestType === "open") && (h = re(a.ctxPath, h), c.requestRow && h.split("?").length > 1)) {
|
|
1750
1750
|
const v = wu(h.split("?")[1]);
|
|
1751
|
-
for (const
|
|
1752
|
-
const
|
|
1751
|
+
for (const O in v) {
|
|
1752
|
+
const M = v[O];
|
|
1753
1753
|
if (r.checkboxConfig) {
|
|
1754
|
-
let
|
|
1755
|
-
for (const
|
|
1756
|
-
for (const Z in C[
|
|
1757
|
-
Z ===
|
|
1754
|
+
let U = [];
|
|
1755
|
+
for (const I in C)
|
|
1756
|
+
for (const Z in C[I])
|
|
1757
|
+
Z === M && C[I][Z] && (U[C[I][Z]] = C[I][Z]);
|
|
1758
1758
|
let V = "";
|
|
1759
|
-
for (const
|
|
1760
|
-
V = (V ? V + "," : "") +
|
|
1761
|
-
h = h.replace("{" +
|
|
1759
|
+
for (const I in U)
|
|
1760
|
+
V = (V ? V + "," : "") + I;
|
|
1761
|
+
h = h.replace("{" + M + "}", V);
|
|
1762
1762
|
} else
|
|
1763
|
-
h = h.replace("{" +
|
|
1763
|
+
h = h.replace("{" + M + "}", C[M]);
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
if (c.requestType === "modal") {
|
|
1767
|
-
if (t.title =
|
|
1767
|
+
if (t.title = Y(c.title, o.title), t.width = Y(c.width, o.width), t.height = Y(c.height, o.height), t.maximize = Y(c.maximize, !1), t.autoLoad = Y(c.autoLoad, !0), t.componentType = P, t.componentUrl = h, t.componentParams = {}, c.requestRow)
|
|
1768
1768
|
if (r.checkboxConfig)
|
|
1769
1769
|
if (c.requestRadio)
|
|
1770
1770
|
C[0][x.buttonKeyName] = c, t.componentParams = C[0];
|
|
@@ -1806,7 +1806,7 @@ function _u(e) {
|
|
|
1806
1806
|
}, g = (d, c) => {
|
|
1807
1807
|
if (d.requestType === "modal" || d.requestType === "open") {
|
|
1808
1808
|
let b = d.requestUrl;
|
|
1809
|
-
const C =
|
|
1809
|
+
const C = Y(d.componentType, o.componentType);
|
|
1810
1810
|
let h = !1;
|
|
1811
1811
|
if (C === "iframe")
|
|
1812
1812
|
if (b = re(a.ctxPath, b), b.split("?").length > 1)
|
|
@@ -1822,7 +1822,7 @@ function _u(e) {
|
|
|
1822
1822
|
else
|
|
1823
1823
|
h = !0;
|
|
1824
1824
|
if (h)
|
|
1825
|
-
d.requestType === "modal" ? (c[x.buttonKeyName] = d, t.title =
|
|
1825
|
+
d.requestType === "modal" ? (c[x.buttonKeyName] = d, t.title = Y(d.title, o.title), t.width = Y(d.width, o.width), t.height = Y(d.height, o.height), t.maximize = Y(d.maximize, !1), t.autoLoad = Y(d.autoLoad, !0), t.componentType = C, t.componentUrl = b, t.componentParams = c, t.visible = !0) : window.open(b, "_blank");
|
|
1826
1826
|
else {
|
|
1827
1827
|
Ae("该单据没有相应数据,无法进行本次操作");
|
|
1828
1828
|
return;
|
|
@@ -1908,26 +1908,26 @@ const tt = "SAG_VXE_PAGE$", Ze = {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
});
|
|
1910
1910
|
Object.assign(Ze, Cu(window.localStorage));
|
|
1911
|
-
const nt = (e) =>
|
|
1911
|
+
const nt = (e) => z(e) ? e + "$" : "", qr = "DICT_TYPE", Jt = (e, n, t) => {
|
|
1912
1912
|
Mu(e, qr, n, t);
|
|
1913
|
-
}, Qt = (e, n) =>
|
|
1913
|
+
}, Qt = (e, n) => ju(e, qr, n), Nr = "COLUMNS_SWITCH", xu = (e, n, t) => {
|
|
1914
1914
|
Lr(e, Nr, n, t);
|
|
1915
1915
|
}, Pu = (e, n) => Fr(e, Nr, n), Rr = "FORM_PARAMS", Tu = (e, n, t) => {
|
|
1916
1916
|
Lr(e, Rr, n, t);
|
|
1917
1917
|
}, ku = (e, n) => Fr(e, Rr, n), Mu = (e, n, t, r) => {
|
|
1918
|
-
const a = tt + nt(e) + n, l = sessionStorage.getItem(a), o =
|
|
1918
|
+
const a = tt + nt(e) + n, l = sessionStorage.getItem(a), o = z(l) ? JSON.parse(l) : {};
|
|
1919
1919
|
o[t] = r, sessionStorage.setItem(a, JSON.stringify(o));
|
|
1920
|
-
},
|
|
1920
|
+
}, ju = (e, n, t) => {
|
|
1921
1921
|
const r = tt + nt(e) + n, a = sessionStorage.getItem(r);
|
|
1922
|
-
return
|
|
1922
|
+
return z(a) ? JSON.parse(a)[t] : null;
|
|
1923
1923
|
}, Lr = (e, n, t, r) => {
|
|
1924
|
-
const a = nt(e) + n, l = Ze.get(a), o =
|
|
1924
|
+
const a = nt(e) + n, l = Ze.get(a), o = z(l) ? l : {};
|
|
1925
1925
|
o[t] = r, Ze.set(a, o);
|
|
1926
1926
|
}, Fr = (e, n, t) => {
|
|
1927
1927
|
const r = nt(e) + n, a = Ze.get(r);
|
|
1928
|
-
return
|
|
1928
|
+
return z(a) ? a[t] : null;
|
|
1929
1929
|
};
|
|
1930
|
-
function
|
|
1930
|
+
function zu(e) {
|
|
1931
1931
|
const {
|
|
1932
1932
|
formRef: n,
|
|
1933
1933
|
formData: t,
|
|
@@ -1947,7 +1947,7 @@ function ju(e) {
|
|
|
1947
1947
|
b && b.validate().then((C) => {
|
|
1948
1948
|
if (!C || C.length === 0) {
|
|
1949
1949
|
let h = p.requestDownload;
|
|
1950
|
-
if (
|
|
1950
|
+
if (z(h)) {
|
|
1951
1951
|
if (a.loading) {
|
|
1952
1952
|
Ae("正在导出中,请不要重复点击!");
|
|
1953
1953
|
return;
|
|
@@ -1969,18 +1969,18 @@ function ju(e) {
|
|
|
1969
1969
|
setTimeout(P, 2e3);
|
|
1970
1970
|
const v = r.value;
|
|
1971
1971
|
if (v) {
|
|
1972
|
-
const { filter:
|
|
1972
|
+
const { filter: O, form: M, sort: U } = v.getProxyInfo(), I = gt({
|
|
1973
1973
|
currentPage: 1,
|
|
1974
1974
|
pageSize: 25e3
|
|
1975
|
-
},
|
|
1975
|
+
}, U, O, M, t, o);
|
|
1976
1976
|
if (typeof h == "string") {
|
|
1977
1977
|
h = re(i.ctxPath, p.requestDownload);
|
|
1978
1978
|
let Z = "";
|
|
1979
|
-
Object.keys(
|
|
1980
|
-
|
|
1979
|
+
Object.keys(I).forEach((ne) => {
|
|
1980
|
+
z(I[ne]) && (typeof I[ne] == "string" && (Z += "&" + ne + "=" + I[ne]), typeof I[ne] == "object" && Array.isArray(I[ne]) && (Z += "&" + ne + "=" + I[ne].join(",")));
|
|
1981
1981
|
}), ue("导出表格参数", [h, Z]), yu(h + Z);
|
|
1982
1982
|
} else
|
|
1983
|
-
a.loading = !0,
|
|
1983
|
+
a.loading = !0, I.exportFlag = !0, l(I, p.requestData, !0).then(async (Z) => {
|
|
1984
1984
|
if (Z == null || Z.rows.length == 0) {
|
|
1985
1985
|
a.loading = !1;
|
|
1986
1986
|
return;
|
|
@@ -1995,18 +1995,18 @@ function ju(e) {
|
|
|
1995
1995
|
filename: i.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
1996
1996
|
sheetName: i.templateTitle,
|
|
1997
1997
|
data: Z.rows,
|
|
1998
|
-
columns:
|
|
1998
|
+
columns: z(a.params.exportColumns) ? a.params.exportColumns : h,
|
|
1999
1999
|
mergeCells: u(Z.rows)
|
|
2000
2000
|
};
|
|
2001
2001
|
c(ne), a.loading = !1;
|
|
2002
2002
|
} else {
|
|
2003
|
-
const ne = Z.rows.concat([]),
|
|
2003
|
+
const ne = Z.rows.concat([]), je = {
|
|
2004
2004
|
filename: i.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2005
2005
|
sheetName: i.templateTitle,
|
|
2006
2006
|
type: "xlsx",
|
|
2007
2007
|
data: ne,
|
|
2008
2008
|
message: !1,
|
|
2009
|
-
columns:
|
|
2009
|
+
columns: z(a.params.exportColumns) ? a.params.exportColumns : a.columns,
|
|
2010
2010
|
isFooter: m.isFooter,
|
|
2011
2011
|
isMerge: m.isMerge,
|
|
2012
2012
|
columnFilterMethod(oe) {
|
|
@@ -2014,7 +2014,7 @@ function ju(e) {
|
|
|
2014
2014
|
return !x.templateTable.ignoreExportColumnsTitle.includes((Oe = oe == null ? void 0 : oe.column) == null ? void 0 : Oe.title);
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
ue("导出参数",
|
|
2017
|
+
ue("导出参数", je), v.exportData(je).then(() => {
|
|
2018
2018
|
a.loading = !1;
|
|
2019
2019
|
});
|
|
2020
2020
|
}
|
|
@@ -2036,11 +2036,11 @@ function ju(e) {
|
|
|
2036
2036
|
) : window.open(re(i.ctxPath, p.requestImport), "_blank");
|
|
2037
2037
|
},
|
|
2038
2038
|
switchColumsEvent: (c, b = !1) => {
|
|
2039
|
-
if (
|
|
2039
|
+
if (z(s.tableColumnsExtra)) {
|
|
2040
2040
|
const C = s.tableColumns, h = s.tableColumnsExtra;
|
|
2041
2041
|
if (b) {
|
|
2042
2042
|
const P = Pu(c, i.templateType);
|
|
2043
|
-
|
|
2043
|
+
z(P) ? (a.params.switchType = P.switchType, a.columns = P.switchType === "1" ? C : h, a.showOverflow = P.switchShowOverflow) : (a.params.switchType = "1", a.columns = C, a.showOverflow = Y(s.showOverflow, !0));
|
|
2044
2044
|
} else
|
|
2045
2045
|
a.params.switchType = a.params.switchType === "1" ? "2" : "1", a.columns = a.params.switchType === "2" ? h : C, a.showOverflow = !a.showOverflow, xu(c, i.templateType, {
|
|
2046
2046
|
switchType: a.params.switchType,
|
|
@@ -2062,30 +2062,30 @@ const We = /* @__PURE__ */ le({
|
|
|
2062
2062
|
setup(e) {
|
|
2063
2063
|
const n = e;
|
|
2064
2064
|
return (t, r) => (S(), W(xe, null, [
|
|
2065
|
-
n.icon === "user" ? (S(), $(
|
|
2066
|
-
n.icon === "excel" ? (S(), $(
|
|
2067
|
-
n.icon === "download" ? (S(), $(
|
|
2068
|
-
n.icon === "save" ? (S(), $(
|
|
2069
|
-
n.icon === "edit" ? (S(), $(
|
|
2070
|
-
n.icon === "delete" ? (S(), $(
|
|
2071
|
-
n.icon === "down" ? (S(), $(
|
|
2072
|
-
n.icon === "up" ? (S(), $(
|
|
2073
|
-
n.icon === "undo" ? (S(), $(
|
|
2074
|
-
n.icon === "redo" ? (S(), $(
|
|
2075
|
-
n.icon === "copy" ? (S(), $(
|
|
2076
|
-
n.icon === "print" ? (S(), $(
|
|
2077
|
-
n.icon === "plus" ? (S(), $(
|
|
2078
|
-
n.icon === "minus" ? (S(), $(
|
|
2079
|
-
n.icon === "info" ? (S(), $(
|
|
2080
|
-
n.icon === "audit" ? (S(), $(
|
|
2081
|
-
n.icon === "schedule" ? (S(), $(
|
|
2082
|
-
n.icon === "close" ? (S(), $(
|
|
2083
|
-
n.icon === "stop" ? (S(), $(
|
|
2084
|
-
n.icon === "check" ? (S(), $(
|
|
2085
|
-
n.icon === "setting" ? (S(), $(
|
|
2086
|
-
n.icon === "menu" ? (S(), $(
|
|
2087
|
-
n.icon === "pdf" ? (S(), $(
|
|
2088
|
-
!n.icon || n.icon === "" ? (S(), $(
|
|
2065
|
+
n.icon === "user" ? (S(), $(_(bu), { key: 0 })) : E("", !0),
|
|
2066
|
+
n.icon === "excel" ? (S(), $(_(di), { key: 1 })) : E("", !0),
|
|
2067
|
+
n.icon === "download" ? (S(), $(_(ei), { key: 2 })) : E("", !0),
|
|
2068
|
+
n.icon === "save" ? (S(), $(_(Gi), { key: 3 })) : E("", !0),
|
|
2069
|
+
n.icon === "edit" ? (S(), $(_(ri), { key: 4 })) : E("", !0),
|
|
2070
|
+
n.icon === "delete" ? (S(), $(_(Wo), { key: 5 })) : E("", !0),
|
|
2071
|
+
n.icon === "down" ? (S(), $(_(Er), { key: 6 })) : E("", !0),
|
|
2072
|
+
n.icon === "up" ? (S(), $(_(pu), { key: 7 })) : E("", !0),
|
|
2073
|
+
n.icon === "undo" ? (S(), $(_(cu), { key: 8 })) : E("", !0),
|
|
2074
|
+
n.icon === "redo" ? (S(), $(_(Ui), { key: 9 })) : E("", !0),
|
|
2075
|
+
n.icon === "copy" ? (S(), $(_(Ho), { key: 10 })) : E("", !0),
|
|
2076
|
+
n.icon === "print" ? (S(), $(_(Li), { key: 11 })) : E("", !0),
|
|
2077
|
+
n.icon === "plus" ? (S(), $(_(Vi), { key: 12 })) : E("", !0),
|
|
2078
|
+
n.icon === "minus" ? (S(), $(_($i), { key: 13 })) : E("", !0),
|
|
2079
|
+
n.icon === "info" ? (S(), $(_(Ci), { key: 14 })) : E("", !0),
|
|
2080
|
+
n.icon === "audit" ? (S(), $(_(zo), { key: 15 })) : E("", !0),
|
|
2081
|
+
n.icon === "schedule" ? (S(), $(_(Zi), { key: 16 })) : E("", !0),
|
|
2082
|
+
n.icon === "close" ? (S(), $(_(Ro), { key: 17 })) : E("", !0),
|
|
2083
|
+
n.icon === "stop" ? (S(), $(_(ou), { key: 18 })) : E("", !0),
|
|
2084
|
+
n.icon === "check" ? (S(), $(_(Eo), { key: 19 })) : E("", !0),
|
|
2085
|
+
n.icon === "setting" ? (S(), $(_(nu), { key: 20 })) : E("", !0),
|
|
2086
|
+
n.icon === "menu" ? (S(), $(_(ki), { key: 21 })) : E("", !0),
|
|
2087
|
+
n.icon === "pdf" ? (S(), $(_(hi), { key: 22 })) : E("", !0),
|
|
2088
|
+
!n.icon || n.icon === "" ? (S(), $(_(Oi), { key: 23 })) : E("", !0)
|
|
2089
2089
|
], 64));
|
|
2090
2090
|
}
|
|
2091
2091
|
});
|
|
@@ -2191,14 +2191,14 @@ var Wr = { exports: {} };
|
|
|
2191
2191
|
var l = r.prototype, o = function(p) {
|
|
2192
2192
|
return p && (p.indexOf ? p : p.s);
|
|
2193
2193
|
}, u = function(p, g, k, d, c) {
|
|
2194
|
-
var b = p.name ? p : p.$locale(), C = o(b[g]), h = o(b[k]), P = C || h.map(function(
|
|
2195
|
-
return
|
|
2194
|
+
var b = p.name ? p : p.$locale(), C = o(b[g]), h = o(b[k]), P = C || h.map(function(O) {
|
|
2195
|
+
return O.slice(0, d);
|
|
2196
2196
|
});
|
|
2197
2197
|
if (!c)
|
|
2198
2198
|
return P;
|
|
2199
2199
|
var v = b.weekStart;
|
|
2200
|
-
return P.map(function(
|
|
2201
|
-
return P[(
|
|
2200
|
+
return P.map(function(O, M) {
|
|
2201
|
+
return P[(M + (v || 0)) % 7];
|
|
2202
2202
|
});
|
|
2203
2203
|
}, i = function() {
|
|
2204
2204
|
return a.Ls[a.locale()];
|
|
@@ -2260,7 +2260,7 @@ var Wr = { exports: {} };
|
|
|
2260
2260
|
});
|
|
2261
2261
|
})(Wr);
|
|
2262
2262
|
var Nu = Wr.exports;
|
|
2263
|
-
const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONSTANT_PAGE_OPTIONS", T = (e, n) =>
|
|
2263
|
+
const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONSTANT_PAGE_OPTIONS", T = (e, n) => z(e) ? e : n, Ru = (e, n) => typeof n == "string" ? n === "number" ? Or(e) : n === "date" ? Lu(e) : n === "datetime" ? Fu(e) : dt(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Or(e, n[1]) : dt(e, 200), Or = (e, n = 2) => z(e) ? `${Le.commafy(Number(e), { digits: n })}` : e, Lu = (e) => Le.toDateString(e, "yyyy-MM-dd"), Fu = (e) => Le.toDateString(e, "yyyy-MM-dd HH:mm:ss"), dt = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, Bu = /* @__PURE__ */ le({
|
|
2264
2264
|
__name: "AntDateRange",
|
|
2265
2265
|
props: {
|
|
2266
2266
|
value: {
|
|
@@ -2301,19 +2301,19 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2301
2301
|
{ label: "近两年", value: [R().add(-2, l)] },
|
|
2302
2302
|
{ label: "近三年", value: [R().add(-3, l)] },
|
|
2303
2303
|
{ label: "近五年", value: [R().add(-5, l)] }
|
|
2304
|
-
], k = q(a === "year" ? g : a === "month" ? p : m), d = t, c = (v,
|
|
2305
|
-
ue("日期区间选值",
|
|
2304
|
+
], k = q(a === "year" ? g : a === "month" ? p : m), d = t, c = (v, O) => {
|
|
2305
|
+
ue("日期区间选值", O), O && O[0] == "" && O[1] == "" ? d("update:value", null) : d("update:value", O);
|
|
2306
2306
|
}, b = () => {
|
|
2307
|
-
let v = null,
|
|
2308
|
-
return s.value && s.value[0] && (v = R(s.value[0]).format(o)), s.value && s.value[1] && (
|
|
2307
|
+
let v = null, O = null;
|
|
2308
|
+
return s.value && s.value[0] && (v = R(s.value[0]).format(o)), s.value && s.value[1] && (O = R(s.value[1]).format(o)), !v && !O ? null : [v, O];
|
|
2309
2309
|
}, C = (v) => {
|
|
2310
|
-
const
|
|
2311
|
-
typeof
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
] : s.value = [
|
|
2310
|
+
const O = v ? v[0] : null, M = v ? v[1] : null;
|
|
2311
|
+
typeof O == "number" || typeof M == "number" ? s.value = [
|
|
2312
|
+
z(O) ? R().add(O, l) : null,
|
|
2313
|
+
z(M) ? R().add(M, l) : null
|
|
2314
|
+
] : s.value = [z(O) ? R(O) : null, z(M) ? R(M) : null], d("update:value", b());
|
|
2315
2315
|
}, h = () => {
|
|
2316
|
-
|
|
2316
|
+
z(r.defaultValue) ? C([r.defaultValue, null]) : C(null);
|
|
2317
2317
|
}, P = () => "dateRange";
|
|
2318
2318
|
return ye(() => {
|
|
2319
2319
|
h();
|
|
@@ -2322,18 +2322,18 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2322
2322
|
getValue: b,
|
|
2323
2323
|
resetValue: h,
|
|
2324
2324
|
getRefType: P
|
|
2325
|
-
}), (v,
|
|
2326
|
-
const
|
|
2327
|
-
return S(), $(
|
|
2328
|
-
value:
|
|
2329
|
-
"onUpdate:value":
|
|
2325
|
+
}), (v, O) => {
|
|
2326
|
+
const M = G("a-range-picker");
|
|
2327
|
+
return S(), $(M, {
|
|
2328
|
+
value: _(s),
|
|
2329
|
+
"onUpdate:value": O[0] || (O[0] = (U) => Sr(s) ? s.value = U : s = U),
|
|
2330
2330
|
onChange: c,
|
|
2331
2331
|
presets: k.value,
|
|
2332
|
-
locale:
|
|
2332
|
+
locale: _(Ur),
|
|
2333
2333
|
allowEmpty: [!0, !0],
|
|
2334
|
-
format:
|
|
2335
|
-
picker:
|
|
2336
|
-
size:
|
|
2334
|
+
format: _(o),
|
|
2335
|
+
picker: _(a),
|
|
2336
|
+
size: _(i),
|
|
2337
2337
|
style: { width: "100%" }
|
|
2338
2338
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2339
2339
|
};
|
|
@@ -2362,9 +2362,9 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2362
2362
|
let d = null;
|
|
2363
2363
|
return s.value && (d = R(s.value).format(u)), d || null;
|
|
2364
2364
|
}, g = (d) => {
|
|
2365
|
-
typeof d == "number" ? s.value =
|
|
2365
|
+
typeof d == "number" ? s.value = z(d) ? R().add(d, o) : null : s.value = z(d) ? R(d) : null, i("update:value", p());
|
|
2366
2366
|
}, k = () => {
|
|
2367
|
-
|
|
2367
|
+
z(r.defaultValue) ? g(r.defaultValue) : g(null);
|
|
2368
2368
|
};
|
|
2369
2369
|
return ye(() => {
|
|
2370
2370
|
k();
|
|
@@ -2375,13 +2375,13 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2375
2375
|
}), (d, c) => {
|
|
2376
2376
|
const b = G("a-date-picker");
|
|
2377
2377
|
return S(), $(b, {
|
|
2378
|
-
value:
|
|
2378
|
+
value: _(s),
|
|
2379
2379
|
"onUpdate:value": c[0] || (c[0] = (C) => Sr(s) ? s.value = C : s = C),
|
|
2380
2380
|
onChange: m,
|
|
2381
|
-
locale:
|
|
2382
|
-
format:
|
|
2383
|
-
picker:
|
|
2384
|
-
size:
|
|
2381
|
+
locale: _(Ur),
|
|
2382
|
+
format: _(u),
|
|
2383
|
+
picker: _(o),
|
|
2384
|
+
size: _(l),
|
|
2385
2385
|
allowClear: r.clearable,
|
|
2386
2386
|
style: { width: "100%" }
|
|
2387
2387
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
@@ -2401,7 +2401,7 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2401
2401
|
},
|
|
2402
2402
|
emits: ["update:value"],
|
|
2403
2403
|
setup(e, { expose: n, emit: t }) {
|
|
2404
|
-
const r = e, a = de(pe), l = ke(a == null ? void 0 : a.size), o = q(null), u =
|
|
2404
|
+
const r = e, a = de(pe), l = ke(a == null ? void 0 : a.size), o = q(null), u = Y(r.placeholder, "请输入" + r.title), i = t, s = () => {
|
|
2405
2405
|
i("update:value", o.value);
|
|
2406
2406
|
};
|
|
2407
2407
|
return n({
|
|
@@ -2419,18 +2419,18 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2419
2419
|
return S(), $(c, {
|
|
2420
2420
|
value: o.value,
|
|
2421
2421
|
"onUpdate:value": d[0] || (d[0] = (b) => o.value = b),
|
|
2422
|
-
placeholder:
|
|
2422
|
+
placeholder: _(u),
|
|
2423
2423
|
disabled: r.disabled,
|
|
2424
2424
|
type: r.inputType,
|
|
2425
2425
|
onChange: s,
|
|
2426
|
-
size:
|
|
2426
|
+
size: _(l),
|
|
2427
2427
|
style: { width: "100%" }
|
|
2428
2428
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2429
2429
|
};
|
|
2430
2430
|
}
|
|
2431
2431
|
}), Qr = async (e, n, t) => {
|
|
2432
2432
|
const r = Qt(e, t.dictType);
|
|
2433
|
-
if (
|
|
2433
|
+
if (z(r))
|
|
2434
2434
|
return r;
|
|
2435
2435
|
{
|
|
2436
2436
|
const a = await Fe(n, t);
|
|
@@ -2458,8 +2458,8 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2458
2458
|
} else
|
|
2459
2459
|
return [];
|
|
2460
2460
|
}, Iu = async (e, n, t, r) => {
|
|
2461
|
-
const a =
|
|
2462
|
-
if (
|
|
2461
|
+
const a = z(r) ? Qt(t, r) : [];
|
|
2462
|
+
if (z(a))
|
|
2463
2463
|
return a;
|
|
2464
2464
|
{
|
|
2465
2465
|
const l = await Fe(e, n);
|
|
@@ -2502,9 +2502,9 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2502
2502
|
}), (h, P) => {
|
|
2503
2503
|
const v = G("a-select");
|
|
2504
2504
|
return S(), W("div", Yu, [
|
|
2505
|
-
|
|
2505
|
+
j(v, {
|
|
2506
2506
|
value: s.value,
|
|
2507
|
-
"onUpdate:value": P[0] || (P[0] = (
|
|
2507
|
+
"onUpdate:value": P[0] || (P[0] = (O) => s.value = O),
|
|
2508
2508
|
onChange: d,
|
|
2509
2509
|
placeholder: "--请选择--",
|
|
2510
2510
|
allowClear: r.clearable,
|
|
@@ -2516,7 +2516,7 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2516
2516
|
defaultActiveFirstOption: !r.multiple,
|
|
2517
2517
|
autoClearSearchValue: !r.filterable,
|
|
2518
2518
|
disabled: r.disabled,
|
|
2519
|
-
size:
|
|
2519
|
+
size: _(i),
|
|
2520
2520
|
style: { width: "100%" }
|
|
2521
2521
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "disabled", "size"])
|
|
2522
2522
|
]);
|
|
@@ -2544,26 +2544,26 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2544
2544
|
const r = e, a = de(pe), l = (a == null ? void 0 : a.ctxPath) || "", o = ke(a == null ? void 0 : a.size), u = "请输入" + r.title + "搜索", i = q(""), s = q(""), m = q([]), p = t, g = q(!1), k = async (v) => {
|
|
2545
2545
|
if (m.value = [], v) {
|
|
2546
2546
|
g.value = !0;
|
|
2547
|
-
const
|
|
2547
|
+
const O = {
|
|
2548
2548
|
searchValue: Me(v)
|
|
2549
|
-
},
|
|
2549
|
+
}, M = await at(re(l, r.requestUrl), {
|
|
2550
2550
|
...r.requestParams,
|
|
2551
|
-
...
|
|
2551
|
+
...O
|
|
2552
2552
|
});
|
|
2553
|
-
return g.value = !1,
|
|
2553
|
+
return g.value = !1, M;
|
|
2554
2554
|
} else
|
|
2555
2555
|
return [];
|
|
2556
2556
|
}, d = Cl((v) => {
|
|
2557
|
-
k(v).then((
|
|
2558
|
-
m.value =
|
|
2557
|
+
k(v).then((O) => {
|
|
2558
|
+
m.value = O;
|
|
2559
2559
|
});
|
|
2560
2560
|
}, 500), c = (v) => {
|
|
2561
2561
|
i.value = v, p("update:value", v);
|
|
2562
|
-
}, b = () => s.value, C = () => i.value, h = (v,
|
|
2563
|
-
i.value = v, s.value =
|
|
2564
|
-
let
|
|
2565
|
-
|
|
2566
|
-
m.value =
|
|
2562
|
+
}, b = () => s.value, C = () => i.value, h = (v, O = null) => {
|
|
2563
|
+
i.value = v, s.value = O;
|
|
2564
|
+
let M = m.value.filter((U) => U.value === i.value);
|
|
2565
|
+
M.length === 1 ? s.value = M[0].label : k(v).then((U) => {
|
|
2566
|
+
m.value = U;
|
|
2567
2567
|
}), p("update:value", v);
|
|
2568
2568
|
};
|
|
2569
2569
|
return n({
|
|
@@ -2573,21 +2573,21 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2573
2573
|
resetValue: () => {
|
|
2574
2574
|
h(r.defaultValue, r.defaultName);
|
|
2575
2575
|
}
|
|
2576
|
-
}), (v,
|
|
2577
|
-
const
|
|
2576
|
+
}), (v, O) => {
|
|
2577
|
+
const M = G("a-spin"), U = G("a-select");
|
|
2578
2578
|
return S(), W("div", Gu, [
|
|
2579
|
-
|
|
2579
|
+
j(U, {
|
|
2580
2580
|
value: i.value,
|
|
2581
|
-
"onUpdate:value":
|
|
2581
|
+
"onUpdate:value": O[0] || (O[0] = (V) => i.value = V),
|
|
2582
2582
|
placeholder: u,
|
|
2583
2583
|
disabled: r.disabled,
|
|
2584
2584
|
"filter-option": !1,
|
|
2585
2585
|
options: m.value,
|
|
2586
|
-
size:
|
|
2586
|
+
size: _(o),
|
|
2587
2587
|
"default-active-first-option": !1,
|
|
2588
2588
|
"show-arrow": !1,
|
|
2589
2589
|
onChange: c,
|
|
2590
|
-
onSearch:
|
|
2590
|
+
onSearch: _(d),
|
|
2591
2591
|
"allow-clear": "",
|
|
2592
2592
|
"show-search": "",
|
|
2593
2593
|
style: { width: "100%" }
|
|
@@ -2595,7 +2595,7 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2595
2595
|
g.value ? {
|
|
2596
2596
|
name: "notFoundContent",
|
|
2597
2597
|
fn: N(() => [
|
|
2598
|
-
M
|
|
2598
|
+
j(M, { size: "small" })
|
|
2599
2599
|
]),
|
|
2600
2600
|
key: "0"
|
|
2601
2601
|
} : void 0
|
|
@@ -2606,52 +2606,62 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2606
2606
|
}), Qu = { class: "sag-vxe-page-ant-selectPull" }, Xu = /* @__PURE__ */ le({
|
|
2607
2607
|
__name: "AntSelectList",
|
|
2608
2608
|
props: {
|
|
2609
|
-
value: { type: String, default: null },
|
|
2609
|
+
value: { type: [String, Array, Object], default: null },
|
|
2610
2610
|
// 默认值
|
|
2611
2611
|
title: { type: String, default: "" },
|
|
2612
2612
|
//
|
|
2613
2613
|
requestUrl: { type: String, default: "" },
|
|
2614
2614
|
//
|
|
2615
2615
|
requestParams: { type: Object, default: {} },
|
|
2616
|
-
defaultValue: { type: String, default: null },
|
|
2616
|
+
defaultValue: { type: [String, Array, Object], default: null },
|
|
2617
2617
|
//
|
|
2618
|
+
multiple: { type: Boolean, default: !1 },
|
|
2619
|
+
maxTagCount: { type: Number, default: 10 },
|
|
2618
2620
|
disabled: { type: Boolean, default: !1 }
|
|
2619
2621
|
//
|
|
2620
2622
|
},
|
|
2621
2623
|
emits: ["update:value"],
|
|
2622
2624
|
setup(e, { expose: n, emit: t }) {
|
|
2623
|
-
const r = e, a = de(pe), l = (a == null ? void 0 : a.ctxPath) || "", o = ke(a == null ? void 0 : a.size), u = "请输入" + r.title + "搜索", i = q(
|
|
2625
|
+
const r = e, a = de(pe), l = (a == null ? void 0 : a.ctxPath) || "", o = ke(a == null ? void 0 : a.size), u = "请输入" + r.title + "搜索", i = q(r.multiple ? [] : null), s = q(""), m = q([]), p = q([]), g = t, k = (v, O) => O.label.toLowerCase().indexOf(Me(v).toLowerCase()) >= 0, d = async () => await at(re(l, r.requestUrl), r.requestParams), c = (v) => {
|
|
2624
2626
|
g("update:value", v);
|
|
2625
2627
|
}, b = () => s.value, C = () => i.value, h = (v) => {
|
|
2626
2628
|
i.value = v, g("update:value", i.value);
|
|
2627
|
-
let
|
|
2628
|
-
|
|
2629
|
+
let O = p.value.filter((M) => M.value === i.value);
|
|
2630
|
+
if (r.multiple) {
|
|
2631
|
+
let M = "";
|
|
2632
|
+
O.forEach((U) => {
|
|
2633
|
+
M += U.label + ",";
|
|
2634
|
+
}), s.value = M;
|
|
2635
|
+
} else
|
|
2636
|
+
O.length === 1 && (s.value = O[0].label);
|
|
2629
2637
|
};
|
|
2630
2638
|
return n({
|
|
2631
2639
|
getName: b,
|
|
2632
2640
|
getValue: C,
|
|
2633
2641
|
setValue: h,
|
|
2634
2642
|
resetValue: () => {
|
|
2635
|
-
h(r.defaultValue);
|
|
2643
|
+
r.multiple ? h(r.defaultValue || []) : h(r.defaultValue || null);
|
|
2636
2644
|
}
|
|
2637
2645
|
}), d().then((v) => {
|
|
2638
2646
|
p.value = v, m.value = v;
|
|
2639
|
-
}), (v,
|
|
2640
|
-
const
|
|
2647
|
+
}), (v, O) => {
|
|
2648
|
+
const M = G("a-select");
|
|
2641
2649
|
return S(), W("div", Qu, [
|
|
2642
|
-
M
|
|
2650
|
+
j(M, {
|
|
2643
2651
|
value: i.value,
|
|
2644
|
-
"onUpdate:value":
|
|
2652
|
+
"onUpdate:value": O[0] || (O[0] = (U) => i.value = U),
|
|
2645
2653
|
placeholder: u,
|
|
2646
2654
|
disabled: r.disabled,
|
|
2655
|
+
mode: r.multiple ? "multiple" : "",
|
|
2656
|
+
defaultActiveFirstOption: !r.multiple,
|
|
2647
2657
|
"filter-option": k,
|
|
2648
2658
|
options: m.value,
|
|
2649
|
-
size:
|
|
2659
|
+
size: _(o),
|
|
2650
2660
|
onChange: c,
|
|
2651
2661
|
"allow-clear": "",
|
|
2652
2662
|
"show-search": "",
|
|
2653
2663
|
style: { width: "100%" }
|
|
2654
|
-
}, null, 8, ["value", "disabled", "options", "size"])
|
|
2664
|
+
}, null, 8, ["value", "disabled", "mode", "defaultActiveFirstOption", "options", "size"])
|
|
2655
2665
|
]);
|
|
2656
2666
|
};
|
|
2657
2667
|
}
|
|
@@ -2679,17 +2689,17 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2679
2689
|
emits: ["update:value", "change"],
|
|
2680
2690
|
setup(e, { expose: n, emit: t }) {
|
|
2681
2691
|
const r = e, a = de(pe), l = (a == null ? void 0 : a.application) || "", o = (a == null ? void 0 : a.ctxPath) || "", u = ke(a == null ? void 0 : a.size), i = "请输入" + r.title + "搜索", s = r.fieldNames.label, m = r.fieldNames.value, p = q([]), g = q([]), k = async () => {
|
|
2682
|
-
const
|
|
2692
|
+
const O = await Iu(
|
|
2683
2693
|
re(o, r.requestUrl),
|
|
2684
2694
|
r.requestParams,
|
|
2685
2695
|
l,
|
|
2686
2696
|
"CASCADER_" + r.cacheKey
|
|
2687
2697
|
);
|
|
2688
|
-
g.value =
|
|
2689
|
-
}, d = t, c = (
|
|
2690
|
-
|
|
2691
|
-
}, b = (
|
|
2692
|
-
p.value =
|
|
2698
|
+
g.value = O;
|
|
2699
|
+
}, d = t, c = (O, M) => {
|
|
2700
|
+
z(M) ? (d("update:value", O[O.length - 1]), d("change", M[M.length - 1])) : (d("update:value", null), d("change", null));
|
|
2701
|
+
}, b = (O, M) => M.some((U) => U[s].indexOf(O) > -1), C = () => g.value.filter((M) => M[m] === p.value[p.value.length - 1])[s], h = () => p.value, P = (O) => {
|
|
2702
|
+
p.value = O, d("update:value", O);
|
|
2693
2703
|
}, v = () => {
|
|
2694
2704
|
p.value = null, d("update:value", null), d("change", null);
|
|
2695
2705
|
};
|
|
@@ -2700,12 +2710,12 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2700
2710
|
getValue: h,
|
|
2701
2711
|
setValue: P,
|
|
2702
2712
|
resetValue: v
|
|
2703
|
-
}), (
|
|
2704
|
-
const
|
|
2713
|
+
}), (O, M) => {
|
|
2714
|
+
const U = G("a-cascader");
|
|
2705
2715
|
return S(), W("div", Zu, [
|
|
2706
|
-
|
|
2716
|
+
j(U, {
|
|
2707
2717
|
value: p.value,
|
|
2708
|
-
"onUpdate:value":
|
|
2718
|
+
"onUpdate:value": M[0] || (M[0] = (V) => p.value = V),
|
|
2709
2719
|
options: g.value,
|
|
2710
2720
|
fieldNames: r.fieldNames,
|
|
2711
2721
|
"show-search": { filter: b },
|
|
@@ -2713,7 +2723,7 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2713
2723
|
clearable: r.clearable,
|
|
2714
2724
|
changeOnSelect: r.changeOnSelect,
|
|
2715
2725
|
placeholder: i,
|
|
2716
|
-
size:
|
|
2726
|
+
size: _(u),
|
|
2717
2727
|
onChange: c,
|
|
2718
2728
|
style: { width: "100%" }
|
|
2719
2729
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "size"])
|
|
@@ -2733,7 +2743,7 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2733
2743
|
},
|
|
2734
2744
|
emits: ["update:value"],
|
|
2735
2745
|
setup(e, { expose: n, emit: t }) {
|
|
2736
|
-
const r = e, a = de(pe), l = q(null), o =
|
|
2746
|
+
const r = e, a = de(pe), l = q(null), o = Y(r.placeholder, "请输入" + r.title), u = t, i = (g) => {
|
|
2737
2747
|
m(g.value);
|
|
2738
2748
|
}, s = () => l.value, m = (g) => {
|
|
2739
2749
|
l.value = g, u("update:value", l.value);
|
|
@@ -2751,9 +2761,9 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2751
2761
|
const d = G("vxe-input", !0);
|
|
2752
2762
|
return S(), $(d, {
|
|
2753
2763
|
"model-value": l.value,
|
|
2754
|
-
placeholder:
|
|
2764
|
+
placeholder: _(o),
|
|
2755
2765
|
disabled: r.disabled,
|
|
2756
|
-
size: (c =
|
|
2766
|
+
size: (c = _(a)) == null ? void 0 : c.size,
|
|
2757
2767
|
onChange: i,
|
|
2758
2768
|
style: { width: "100%" }
|
|
2759
2769
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
@@ -2787,8 +2797,8 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2787
2797
|
transfer: r.transfer,
|
|
2788
2798
|
placeholder: r.filterable ? i : "",
|
|
2789
2799
|
options: [],
|
|
2790
|
-
filterMethod({ searchValue: v, option:
|
|
2791
|
-
return
|
|
2800
|
+
filterMethod({ searchValue: v, option: O }) {
|
|
2801
|
+
return O.label.toLowerCase().indexOf(Me(v).toLowerCase()) >= 0;
|
|
2792
2802
|
}
|
|
2793
2803
|
}), d = async () => {
|
|
2794
2804
|
let v = r.request.requestUrl;
|
|
@@ -2797,8 +2807,8 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2797
2807
|
g("update:value", v);
|
|
2798
2808
|
}, b = () => m.value, C = () => s.value, h = (v) => {
|
|
2799
2809
|
s.value = v, g("update:value", s.value);
|
|
2800
|
-
let
|
|
2801
|
-
|
|
2810
|
+
let O = p.value.filter((M) => M.value === s.value);
|
|
2811
|
+
O.length === 1 && (m.value = O[0].label);
|
|
2802
2812
|
};
|
|
2803
2813
|
return n({
|
|
2804
2814
|
getName: b,
|
|
@@ -2811,14 +2821,14 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2811
2821
|
d().then((v) => {
|
|
2812
2822
|
!r.multiple && r.selectAll && (v = [{ label: "--全部--", value: "" }].concat(v)), p.value = v, k.options = v;
|
|
2813
2823
|
});
|
|
2814
|
-
}), (v,
|
|
2815
|
-
var
|
|
2816
|
-
const
|
|
2817
|
-
return S(), $(
|
|
2824
|
+
}), (v, O) => {
|
|
2825
|
+
var U;
|
|
2826
|
+
const M = G("vxe-select", !0);
|
|
2827
|
+
return S(), $(M, ee({
|
|
2818
2828
|
modelValue: s.value,
|
|
2819
|
-
"onUpdate:modelValue":
|
|
2829
|
+
"onUpdate:modelValue": O[0] || (O[0] = (V) => s.value = V)
|
|
2820
2830
|
}, k, {
|
|
2821
|
-
size: (
|
|
2831
|
+
size: (U = _(a)) == null ? void 0 : U.size,
|
|
2822
2832
|
onChange: c,
|
|
2823
2833
|
style: { width: "100%" }
|
|
2824
2834
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -2886,13 +2896,13 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2886
2896
|
b(r.defaultValue);
|
|
2887
2897
|
}
|
|
2888
2898
|
}), (h, P) => {
|
|
2889
|
-
var
|
|
2899
|
+
var O;
|
|
2890
2900
|
const v = G("vxe-select");
|
|
2891
2901
|
return S(), $(v, ee({
|
|
2892
2902
|
modelValue: u.value,
|
|
2893
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
2903
|
+
"onUpdate:modelValue": P[0] || (P[0] = (M) => u.value = M)
|
|
2894
2904
|
}, p, {
|
|
2895
|
-
size: (
|
|
2905
|
+
size: (O = _(a)) == null ? void 0 : O.size,
|
|
2896
2906
|
onChange: k,
|
|
2897
2907
|
style: { width: "100%" }
|
|
2898
2908
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -2946,13 +2956,13 @@ const Gr = /* @__PURE__ */ Br(Nu), Jr = "CONSTANT_DIALOG_CONTAINER", pe = "CONST
|
|
|
2946
2956
|
s.value = h, p.options = h;
|
|
2947
2957
|
});
|
|
2948
2958
|
}), (h, P) => {
|
|
2949
|
-
var
|
|
2959
|
+
var O;
|
|
2950
2960
|
const v = G("vxe-select");
|
|
2951
2961
|
return S(), $(v, ee({
|
|
2952
2962
|
modelValue: u.value,
|
|
2953
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
2963
|
+
"onUpdate:modelValue": P[0] || (P[0] = (M) => u.value = M)
|
|
2954
2964
|
}, p, {
|
|
2955
|
-
size: (
|
|
2965
|
+
size: (O = _(a)) == null ? void 0 : O.size,
|
|
2956
2966
|
onChange: k,
|
|
2957
2967
|
style: { width: "100%" }
|
|
2958
2968
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3057,11 +3067,11 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3057
3067
|
}), (C, h) => {
|
|
3058
3068
|
const P = G("vxe-button"), v = G("a-modal");
|
|
3059
3069
|
return S(), W("div", ss, [
|
|
3060
|
-
|
|
3070
|
+
j(v, {
|
|
3061
3071
|
ref_key: "gridModal",
|
|
3062
3072
|
ref: p,
|
|
3063
3073
|
open: t.visible,
|
|
3064
|
-
"get-container":
|
|
3074
|
+
"get-container": _(a),
|
|
3065
3075
|
width: g.width,
|
|
3066
3076
|
"body-style": {
|
|
3067
3077
|
height: g.height,
|
|
@@ -3080,7 +3090,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3080
3090
|
title: N(() => [
|
|
3081
3091
|
K("span", cs, Se(t.title), 1),
|
|
3082
3092
|
K("span", fs, [
|
|
3083
|
-
|
|
3093
|
+
j(P, {
|
|
3084
3094
|
mode: "text",
|
|
3085
3095
|
icon: g.maxZoomIcon,
|
|
3086
3096
|
onClick: k
|
|
@@ -3088,7 +3098,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3088
3098
|
])
|
|
3089
3099
|
]),
|
|
3090
3100
|
default: N(() => [
|
|
3091
|
-
t.componentType === "vue" ? (S(), $(vl(
|
|
3101
|
+
t.componentType === "vue" ? (S(), $(vl(_(l)), ee({ key: 0 }, t.componentParams, {
|
|
3092
3102
|
onCancel: s,
|
|
3093
3103
|
onSubmit: m
|
|
3094
3104
|
}), null, 16)) : E("", !0),
|
|
@@ -3097,7 +3107,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3097
3107
|
ref_key: "iframeRef",
|
|
3098
3108
|
ref: c,
|
|
3099
3109
|
id: d,
|
|
3100
|
-
src:
|
|
3110
|
+
src: _(o),
|
|
3101
3111
|
onLoad: b,
|
|
3102
3112
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
3103
3113
|
}, null, 40, ds)) : E("", !0)
|
|
@@ -3122,20 +3132,20 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3122
3132
|
x.templateTable.ignoreExportColumnsTitle.includes(g.title) ? p++ : m.push({
|
|
3123
3133
|
key: g.field,
|
|
3124
3134
|
header: g.title,
|
|
3125
|
-
width:
|
|
3135
|
+
width: z(g.exportWidth) ? g.exportWidth : g.title.length * 2 + 4
|
|
3126
3136
|
});
|
|
3127
3137
|
}), s.columns = m, s.addRows(l.data), s.eachRow(function(g, k) {
|
|
3128
3138
|
g.eachCell({ includeEmpty: !0 }, function(d, c) {
|
|
3129
|
-
|
|
3139
|
+
z(d.value) && (d.value.toString().includes(`
|
|
3130
3140
|
`) ? d.alignment = { wrapText: !0 } : d.value.toString().includes("\\n") && (d.value = d.value.toString().replaceAll("\\n", `
|
|
3131
3141
|
`), d.alignment = { wrapText: !0 }));
|
|
3132
3142
|
});
|
|
3133
|
-
}),
|
|
3143
|
+
}), z(l.mergeCells)) {
|
|
3134
3144
|
let g = {};
|
|
3135
3145
|
l.mergeCells.forEach((k) => {
|
|
3136
3146
|
let d = k.col - p;
|
|
3137
3147
|
const c = a[d];
|
|
3138
|
-
if (
|
|
3148
|
+
if (z(g[c]) ? g[c] = g[c] + k.rowspan : g[c] = k.rowspan + 1, k.col >= p && k.rowspan != 1) {
|
|
3139
3149
|
let b = k.row + 2;
|
|
3140
3150
|
const C = "'" + c + b + ":" + c + g[c] + "'";
|
|
3141
3151
|
s.mergeCells(C);
|
|
@@ -3221,8 +3231,8 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3221
3231
|
});
|
|
3222
3232
|
};
|
|
3223
3233
|
}
|
|
3224
|
-
}), gs = { class: "sag-vxe-page-search-wrapper" }, hs = { class: "sag-vxe-page-table-wrapper" }, vs = ["onClick"], bs = { style: { "font-weight": "bold" } }, ys = { key: 0 }, Os = ["onClick"], ws = { key: 1 }, _s = { style: { display: "inline" } }, Ss = { key: 0 }, Cs = ["onClick"], xs = ["onClick"], Ps = /* @__PURE__ */ K("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1), Ts = /* @__PURE__ */ K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1), ks = /* @__PURE__ */ K("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1), Ms = { key: 0 },
|
|
3225
|
-
|
|
3234
|
+
}), gs = { class: "sag-vxe-page-search-wrapper" }, hs = { class: "sag-vxe-page-table-wrapper" }, vs = ["onClick"], bs = { style: { "font-weight": "bold" } }, ys = { key: 0 }, Os = ["onClick"], ws = { key: 1 }, _s = { style: { display: "inline" } }, Ss = { key: 0 }, Cs = ["onClick"], xs = ["onClick"], Ps = /* @__PURE__ */ K("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1), Ts = /* @__PURE__ */ K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1), ks = /* @__PURE__ */ K("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1), Ms = { key: 0 }, js = /* @__PURE__ */ K("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1), zs = [
|
|
3235
|
+
js
|
|
3226
3236
|
], $s = { key: 1 }, As = /* @__PURE__ */ K("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1), Ds = [
|
|
3227
3237
|
As
|
|
3228
3238
|
], Es = { key: 2 }, Vs = /* @__PURE__ */ K("span", { style: { "font-size": "16px" } }, [
|
|
@@ -3237,7 +3247,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3237
3247
|
__name: "SagVxePage",
|
|
3238
3248
|
emits: ["submit", "resetValue", "search"],
|
|
3239
3249
|
setup(e, { expose: n, emit: t }) {
|
|
3240
|
-
var cn, fn, dn, mn, pn, gn, hn, vn, bn, yn, On, wn, _n, Sn, Cn, xn, Pn, Tn, kn, Mn,
|
|
3250
|
+
var cn, fn, dn, mn, pn, gn, hn, vn, bn, yn, On, wn, _n, Sn, Cn, xn, Pn, Tn, kn, Mn, jn, zn, $n, An, Dn, En, Vn, qn, Nn, Rn, Ln, Fn, Bn, Hn, Un, In, Yn, Wn, Gn, Jn, Qn, Xn, Zn, Kn, ea, ta, na, aa, ra, la, oa, ia, ua, sa, ca, fa, da, ma, pa, ga, ha, va, ba, ya, Oa, wa, _a, Sa, Ca, xa, Pa, Ta, ka;
|
|
3241
3251
|
const r = te({
|
|
3242
3252
|
visible: !1,
|
|
3243
3253
|
maximize: !1,
|
|
@@ -3285,11 +3295,11 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3285
3295
|
titleWidth: T((Pn = (xn = a == null ? void 0 : a.templateForm) == null ? void 0 : xn.formProps) == null ? void 0 : Pn.titleWidth, x.templateForm.formProps.titleWidth),
|
|
3286
3296
|
titleAlign: T((kn = (Tn = a == null ? void 0 : a.templateForm) == null ? void 0 : Tn.formProps) == null ? void 0 : kn.titleAlign, x.templateForm.formProps.titleAlign),
|
|
3287
3297
|
buttonAlign: T(
|
|
3288
|
-
(
|
|
3298
|
+
(jn = (Mn = a == null ? void 0 : a.templateForm) == null ? void 0 : Mn.formProps) == null ? void 0 : jn.buttonAlign,
|
|
3289
3299
|
x.templateForm.formProps.buttonAlign
|
|
3290
3300
|
),
|
|
3291
3301
|
foldingLength: T(
|
|
3292
|
-
($n = (
|
|
3302
|
+
($n = (zn = a == null ? void 0 : a.templateForm) == null ? void 0 : zn.formProps) == null ? void 0 : $n.foldingLength,
|
|
3293
3303
|
x.templateForm.formProps.foldingLength
|
|
3294
3304
|
)
|
|
3295
3305
|
},
|
|
@@ -3342,22 +3352,22 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3342
3352
|
)
|
|
3343
3353
|
}
|
|
3344
3354
|
}), k = x.application + "_" + l.templateType, d = "sag_vxe_page_div_panel_" + k;
|
|
3345
|
-
Ma(pe, l), Ma(Jr, () => document.getElementById(
|
|
3346
|
-
const c = Object.keys(yl()), b = q(), C = q(!0), h = q(!1), P = q("none"), v = q(["1"]),
|
|
3347
|
-
|
|
3355
|
+
Ma(pe, l), Ma(Jr, () => document.getElementById(_(d)));
|
|
3356
|
+
const c = Object.keys(yl()), b = q(), C = q(!0), h = q(!1), P = q("none"), v = q(["1"]), O = q(0), M = ke(l.size), U = q(), V = te({}), I = q([]), Z = q(), ne = q([]), je = t, oe = (y, w) => {
|
|
3357
|
+
I.value[w] = y;
|
|
3348
3358
|
}, Oe = async () => {
|
|
3349
3359
|
const y = b.value;
|
|
3350
3360
|
if (!h.value && y) {
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3361
|
+
const w = Z.value;
|
|
3362
|
+
w ? w.validate().then((A) => {
|
|
3353
3363
|
(!A || A.length === 0) && y.commitProxy("query");
|
|
3354
3364
|
}) : y.commitProxy("query");
|
|
3355
3365
|
}
|
|
3356
3366
|
}, Zt = () => {
|
|
3357
|
-
lt(ne.value[0].children,
|
|
3367
|
+
lt(ne.value[0].children, I, V), je("resetValue");
|
|
3358
3368
|
}, Xr = () => {
|
|
3359
3369
|
Qe(() => {
|
|
3360
|
-
Da(
|
|
3370
|
+
Da(U.value, B, s.clientScale);
|
|
3361
3371
|
});
|
|
3362
3372
|
}, B = te({
|
|
3363
3373
|
size: l.size,
|
|
@@ -3399,7 +3409,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3399
3409
|
ajax: {
|
|
3400
3410
|
// 接收 Promise 对象
|
|
3401
3411
|
query: (y) => {
|
|
3402
|
-
const { page:
|
|
3412
|
+
const { page: w, sorts: A, filters: H, form: L } = y, ce = gt(w, A, H, L, V, I);
|
|
3403
3413
|
if (i.storage) {
|
|
3404
3414
|
const ge = kl(A, H, L, V);
|
|
3405
3415
|
Tu(l.application, l.templateType, ge);
|
|
@@ -3407,8 +3417,8 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3407
3417
|
return Kt(ce, o.requestData, !1);
|
|
3408
3418
|
},
|
|
3409
3419
|
querySuccess: (y) => {
|
|
3410
|
-
const { page:
|
|
3411
|
-
m != null && m.isMerge && (B.mergeCells = tn(ge == null ? void 0 : ge.rows)),
|
|
3420
|
+
const { page: w, sort: A, sorts: H, filters: L, form: ce, response: ge } = y;
|
|
3421
|
+
m != null && m.isMerge && (B.mergeCells = tn(ge == null ? void 0 : ge.rows)), je("search", ge);
|
|
3412
3422
|
}
|
|
3413
3423
|
}
|
|
3414
3424
|
},
|
|
@@ -3417,7 +3427,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3417
3427
|
Xe("确定要强制显示数据内容吗?", () => {
|
|
3418
3428
|
m != null && m.isMerge ? B.mergeCells = null : B.spanMethod = Aa({}), B.virtualYConfig = { enabled: !0 }, rt.value = !0, Oe();
|
|
3419
3429
|
});
|
|
3420
|
-
}, Kt = async (y,
|
|
3430
|
+
}, Kt = async (y, w, A) => {
|
|
3421
3431
|
var H;
|
|
3422
3432
|
if (P.value = "none", rt.value)
|
|
3423
3433
|
return rt.value = !1, B.params.data;
|
|
@@ -3429,7 +3439,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3429
3439
|
exportFlag: A
|
|
3430
3440
|
});
|
|
3431
3441
|
const L = await Fe(
|
|
3432
|
-
re(l.ctxPath,
|
|
3442
|
+
re(l.ctxPath, w),
|
|
3433
3443
|
y
|
|
3434
3444
|
).finally(() => {
|
|
3435
3445
|
setTimeout(() => {
|
|
@@ -3449,26 +3459,26 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3449
3459
|
}, Kr = (y) => {
|
|
3450
3460
|
if (s.rowType === "checkbox") {
|
|
3451
3461
|
ue("checkboxChange", y);
|
|
3452
|
-
const
|
|
3453
|
-
if (
|
|
3462
|
+
const w = m == null ? void 0 : m.mergeKey;
|
|
3463
|
+
if (w) {
|
|
3454
3464
|
const A = b.value;
|
|
3455
3465
|
if (A) {
|
|
3456
3466
|
const H = A.getTableData();
|
|
3457
3467
|
for (let L in H.tableData)
|
|
3458
|
-
y.row[
|
|
3468
|
+
y.row[w] === H.tableData[L][w] && A.setCheckboxRow(H.tableData[L], y.checked);
|
|
3459
3469
|
}
|
|
3460
3470
|
}
|
|
3461
3471
|
}
|
|
3462
3472
|
}, el = (y) => {
|
|
3463
3473
|
if (s.rowType === "radio") {
|
|
3464
3474
|
ue("radioChange", y);
|
|
3465
|
-
const
|
|
3466
|
-
if (
|
|
3475
|
+
const w = m == null ? void 0 : m.mergeKey;
|
|
3476
|
+
if (w) {
|
|
3467
3477
|
const A = b.value;
|
|
3468
3478
|
if (A) {
|
|
3469
3479
|
const H = A.getTableData();
|
|
3470
3480
|
for (let L in H.tableData)
|
|
3471
|
-
if (y.row[
|
|
3481
|
+
if (y.row[w] === H.tableData[L][w]) {
|
|
3472
3482
|
A.setRadioRow(H.tableData[L]);
|
|
3473
3483
|
break;
|
|
3474
3484
|
}
|
|
@@ -3480,11 +3490,11 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3480
3490
|
}, nl = () => {
|
|
3481
3491
|
B.params.currentRow = null;
|
|
3482
3492
|
}, en = (y) => {
|
|
3483
|
-
const
|
|
3484
|
-
if (A &&
|
|
3493
|
+
const w = m == null ? void 0 : m.seqKey, A = m == null ? void 0 : m.mergeKey;
|
|
3494
|
+
if (A && w) {
|
|
3485
3495
|
let H = [""], L = 0 + y.pageSize * (y.pageNo - 1);
|
|
3486
3496
|
for (let ce in y.rows)
|
|
3487
|
-
H.includes(y.rows[ce][A]) || (L++, H.push(y.rows[ce][A])), y.rows[ce][
|
|
3497
|
+
H.includes(y.rows[ce][A]) || (L++, H.push(y.rows[ce][A])), y.rows[ce][w] = L;
|
|
3488
3498
|
}
|
|
3489
3499
|
return l.onLoadAfterModule ? l.onLoadAfterModule({
|
|
3490
3500
|
gridRef: b,
|
|
@@ -3492,21 +3502,21 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3492
3502
|
data: y
|
|
3493
3503
|
}) : y;
|
|
3494
3504
|
}, tn = (y) => {
|
|
3495
|
-
const
|
|
3496
|
-
if (
|
|
3505
|
+
const w = m == null ? void 0 : m.mergeKey;
|
|
3506
|
+
if (w && m.isMerge) {
|
|
3497
3507
|
const A = b.value;
|
|
3498
3508
|
let H = [], L = {}, ce = {};
|
|
3499
3509
|
for (let be = 0; be < y.length; be++) {
|
|
3500
|
-
const se = y[be],
|
|
3510
|
+
const se = y[be], ze = y[be - 1];
|
|
3501
3511
|
let we = y[be + 1];
|
|
3502
|
-
|
|
3512
|
+
z(ce[se[w]]) || (ce[se[w]] = be + 0), z(L[se[w]]) ? (z(we) && we[w] === se[w] || z(ze) && ze[w] === se[w]) && (L[se[w]] = L[se[w]] + 1) : L[se[w]] = 1;
|
|
3503
3513
|
}
|
|
3504
3514
|
let ge = m == null ? void 0 : m.fields;
|
|
3505
3515
|
for (let be in ge) {
|
|
3506
|
-
let se = A == null ? void 0 : A.getColumnByField(ge[be]),
|
|
3516
|
+
let se = A == null ? void 0 : A.getColumnByField(ge[be]), ze = A == null ? void 0 : A.getColumnIndex(se);
|
|
3507
3517
|
for (let we in ce)
|
|
3508
3518
|
H = H.concat([
|
|
3509
|
-
{ row: ce[we], col:
|
|
3519
|
+
{ row: ce[we], col: ze, rowspan: L[we], colspan: 1 }
|
|
3510
3520
|
]);
|
|
3511
3521
|
}
|
|
3512
3522
|
return H;
|
|
@@ -3514,24 +3524,24 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3514
3524
|
return null;
|
|
3515
3525
|
}, al = te({
|
|
3516
3526
|
cellMenu(y) {
|
|
3517
|
-
const
|
|
3518
|
-
|
|
3527
|
+
const w = b.value;
|
|
3528
|
+
w && w.setCurrentRow(y.row);
|
|
3519
3529
|
},
|
|
3520
3530
|
menuClick(y) {
|
|
3521
3531
|
Be(y.menu, y.row);
|
|
3522
3532
|
}
|
|
3523
3533
|
}), nn = ({ row: y }) => {
|
|
3524
3534
|
var A;
|
|
3525
|
-
const
|
|
3526
|
-
if ((y == null ? void 0 : y[
|
|
3535
|
+
const w = m == null ? void 0 : m.mergeKey;
|
|
3536
|
+
if ((y == null ? void 0 : y[w]) === ((A = B.params.currentRow) == null ? void 0 : A[w]))
|
|
3527
3537
|
return {
|
|
3528
3538
|
backgroundColor: m == null ? void 0 : m.backgroundColor
|
|
3529
3539
|
};
|
|
3530
3540
|
}, rl = () => {
|
|
3531
3541
|
const y = document.getElementById(d);
|
|
3532
3542
|
if (y) {
|
|
3533
|
-
const
|
|
3534
|
-
|
|
3543
|
+
const w = y.getElementsByTagName("form");
|
|
3544
|
+
w && w.length > 0 && (w[0].submit = () => (r.visible = !1, Oe(), !1));
|
|
3535
3545
|
}
|
|
3536
3546
|
}, { clickFormButton: ll, clickTableButton: Be, clickHerf: an } = _u({
|
|
3537
3547
|
gridRef: b,
|
|
@@ -3543,37 +3553,37 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3543
3553
|
pageModal: u,
|
|
3544
3554
|
pageTableMerge: m,
|
|
3545
3555
|
pageRequest: o
|
|
3546
|
-
}), { downloadEvent: rn, importEvent: ol, switchColumsEvent: ln } =
|
|
3556
|
+
}), { downloadEvent: rn, importEvent: ol, switchColumsEvent: ln } = zu({
|
|
3547
3557
|
formRef: Z,
|
|
3548
3558
|
formData: V,
|
|
3549
3559
|
gridRef: b,
|
|
3550
3560
|
gridOptions: B,
|
|
3551
3561
|
loadData: Kt,
|
|
3552
3562
|
pageOptions: l,
|
|
3553
|
-
templateItemRefs:
|
|
3563
|
+
templateItemRefs: I,
|
|
3554
3564
|
doMergeCells: tn,
|
|
3555
3565
|
pageTable: s,
|
|
3556
3566
|
pageModal: u,
|
|
3557
3567
|
pageTableMerge: m,
|
|
3558
3568
|
pageRequest: o
|
|
3559
3569
|
}), il = async () => {
|
|
3560
|
-
if (
|
|
3561
|
-
const
|
|
3562
|
-
Object.keys(
|
|
3563
|
-
|
|
3570
|
+
if (z(i.formItems)) {
|
|
3571
|
+
const w = i.formItems, A = i.formProps.foldingLength;
|
|
3572
|
+
Object.keys(w).forEach((H, L) => {
|
|
3573
|
+
w[L].folding = !(L < A);
|
|
3564
3574
|
}), ne.value = [
|
|
3565
|
-
{ span: 24, align: "right", children:
|
|
3575
|
+
{ span: 24, align: "right", children: w },
|
|
3566
3576
|
{
|
|
3567
3577
|
span: 24,
|
|
3568
3578
|
align: i.formProps.buttonAlign,
|
|
3569
|
-
collapseNode:
|
|
3579
|
+
collapseNode: w.length > A,
|
|
3570
3580
|
slots: { default: "toolbar_tools" }
|
|
3571
3581
|
}
|
|
3572
3582
|
];
|
|
3573
3583
|
}
|
|
3574
3584
|
if (document.documentElement.clientHeight < 680) {
|
|
3575
|
-
const
|
|
3576
|
-
Object.keys(
|
|
3585
|
+
const w = s.tableColumns;
|
|
3586
|
+
Object.keys(w).forEach((H) => w[H].fixed = !1);
|
|
3577
3587
|
const A = s.tableColumnsExtra;
|
|
3578
3588
|
A && Object.keys(A).forEach((H) => A[H].fixed = !1);
|
|
3579
3589
|
}
|
|
@@ -3583,48 +3593,48 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3583
3593
|
trigger: "click",
|
|
3584
3594
|
mode: "row",
|
|
3585
3595
|
showStatus: !0
|
|
3586
|
-
}),
|
|
3587
|
-
}, ul = (y,
|
|
3596
|
+
}), z(m) && z(m.mergeKey) && (B.cellStyle = nn, B.params.mergeField = m.mergeKey, m.isMerge ? B.columnDragConfig.dragStartMethod = () => !1 : (B.virtualYConfig = { enabled: !1 }, B.spanMethod = Aa(m))), C.value = !1;
|
|
3597
|
+
}, ul = (y, w) => y && y.length > 0 ? y && w ? y.some((A) => Ve(w[A.buttonName]) && Ve(A.auth)) : !0 : !1;
|
|
3588
3598
|
ye(async () => {
|
|
3589
3599
|
if (ue("加载页面模板", l), await il(), i.storage) {
|
|
3590
3600
|
const y = ku(l.application, l.templateType);
|
|
3591
|
-
|
|
3601
|
+
z(y) ? sn(y) : await lt(i.formItems, I, V);
|
|
3592
3602
|
} else
|
|
3593
|
-
await lt(i.formItems,
|
|
3594
|
-
l.onMountedModule && await l.onMountedModule({ formRef: Z, gridRef: b, gridOptions: B, templateItemRefs:
|
|
3603
|
+
await lt(i.formItems, I, V);
|
|
3604
|
+
l.onMountedModule && await l.onMountedModule({ formRef: Z, gridRef: b, gridOptions: B, templateItemRefs: I, pageOptions: l, formData: V }), rl(), await Oe(), on();
|
|
3595
3605
|
});
|
|
3596
3606
|
const on = Le.debounce(() => {
|
|
3597
|
-
ue("屏幕高度出现变化,重新计算表格高度"), s.clientScale === 1 &&
|
|
3598
|
-
|
|
3607
|
+
ue("屏幕高度出现变化,重新计算表格高度"), s.clientScale === 1 && O.value == 0 && (window.onresize = () => {
|
|
3608
|
+
O.value = document.body.clientWidth;
|
|
3599
3609
|
}), Qe(() => {
|
|
3600
|
-
Da(
|
|
3610
|
+
Da(U.value, B, s.clientScale);
|
|
3601
3611
|
});
|
|
3602
3612
|
}, x.templateTable.lazyComputdHeightTime);
|
|
3603
3613
|
s.clientScale === 1 && Ol(
|
|
3604
|
-
[v,
|
|
3614
|
+
[v, O],
|
|
3605
3615
|
() => {
|
|
3606
3616
|
on();
|
|
3607
3617
|
},
|
|
3608
3618
|
{ deep: !0, immediate: !0 }
|
|
3609
3619
|
);
|
|
3610
3620
|
const sl = (y) => {
|
|
3611
|
-
r.title =
|
|
3621
|
+
r.title = Y(y.title, x.targetModal.title), r.width = Y(y.width, x.targetModal.width), r.height = Y(y.height, x.targetModal.height), r.maximize = Y(y.maximize, !1), r.autoLoad = Y(y.autoLoad, !1), r.componentType = Y(y.componentType, x.targetModal.componentType), r.componentParams = y.componentParams, r.componentUrl = y.componentUrl, r.visible = !0;
|
|
3612
3622
|
}, un = () => {
|
|
3613
3623
|
r.visible = !1, r.autoLoad && Oe();
|
|
3614
3624
|
}, cl = (y) => {
|
|
3615
3625
|
r.visible = !1;
|
|
3616
|
-
const
|
|
3617
|
-
|
|
3626
|
+
const w = r.componentParams;
|
|
3627
|
+
je("submit", { data: y, params: w, button: w[x.buttonKeyName] });
|
|
3618
3628
|
}, fl = async () => await Vr(b, B), dl = async () => {
|
|
3619
3629
|
const y = b.value;
|
|
3620
3630
|
if (y) {
|
|
3621
|
-
const { pager:
|
|
3622
|
-
return gt(
|
|
3631
|
+
const { pager: w, filter: A, form: H, sort: L } = y.getProxyInfo();
|
|
3632
|
+
return gt(w, L, A, H, V, I);
|
|
3623
3633
|
} else
|
|
3624
3634
|
return null;
|
|
3625
3635
|
}, sn = (y) => {
|
|
3626
|
-
for (let
|
|
3627
|
-
|
|
3636
|
+
for (let w in y)
|
|
3637
|
+
I.value[w] ? I.value[w].setValue(y[w]) : V[w] = y[w];
|
|
3628
3638
|
};
|
|
3629
3639
|
return n({
|
|
3630
3640
|
doSearch: Oe,
|
|
@@ -3638,30 +3648,30 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3638
3648
|
setExportColumns: (y) => {
|
|
3639
3649
|
B.params.exportColumns = y;
|
|
3640
3650
|
}
|
|
3641
|
-
}), (y,
|
|
3642
|
-
const A = G("a-button"), H = G("a-space"), L = G("vxe-form"), ce = G("a-collapse-panel"), ge = G("a-collapse"), be = G("a-menu-item"), se = G("a-menu"),
|
|
3643
|
-
return
|
|
3651
|
+
}), (y, w) => {
|
|
3652
|
+
const A = G("a-button"), H = G("a-space"), L = G("vxe-form"), ce = G("a-collapse-panel"), ge = G("a-collapse"), be = G("a-menu-item"), se = G("a-menu"), ze = G("a-dropdown"), we = G("vxe-button"), ml = G("vxe-grid");
|
|
3653
|
+
return ja((S(), W("div", {
|
|
3644
3654
|
id: d,
|
|
3645
3655
|
class: "sag-vxe-page-wrapper"
|
|
3646
3656
|
}, [
|
|
3647
|
-
|
|
3648
|
-
|
|
3657
|
+
ja(K("div", gs, [
|
|
3658
|
+
j(ge, {
|
|
3649
3659
|
activeKey: v.value,
|
|
3650
|
-
"onUpdate:activeKey":
|
|
3660
|
+
"onUpdate:activeKey": w[2] || (w[2] = (f) => v.value = f),
|
|
3651
3661
|
expandIconPosition: "end",
|
|
3652
3662
|
accordion: ""
|
|
3653
3663
|
}, {
|
|
3654
3664
|
default: N(() => [
|
|
3655
|
-
|
|
3665
|
+
j(ce, {
|
|
3656
3666
|
ref_key: "formCardRef",
|
|
3657
|
-
ref:
|
|
3667
|
+
ref: U,
|
|
3658
3668
|
key: "1",
|
|
3659
3669
|
header: "查询条件",
|
|
3660
3670
|
align: "left",
|
|
3661
3671
|
forceRender: ""
|
|
3662
3672
|
}, {
|
|
3663
3673
|
default: N(() => [
|
|
3664
|
-
|
|
3674
|
+
j(L, {
|
|
3665
3675
|
ref_key: "formRef",
|
|
3666
3676
|
ref: Z,
|
|
3667
3677
|
data: V,
|
|
@@ -3676,12 +3686,12 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3676
3686
|
class: "sag-vxe-page-form"
|
|
3677
3687
|
}, mt({
|
|
3678
3688
|
toolbar_tools: N(() => [
|
|
3679
|
-
|
|
3689
|
+
j(H, null, {
|
|
3680
3690
|
default: N(() => [
|
|
3681
|
-
|
|
3691
|
+
j(A, {
|
|
3682
3692
|
type: "primary",
|
|
3683
|
-
size:
|
|
3684
|
-
onClick:
|
|
3693
|
+
size: _(M),
|
|
3694
|
+
onClick: w[0] || (w[0] = (f) => Oe()),
|
|
3685
3695
|
disabled: h.value
|
|
3686
3696
|
}, {
|
|
3687
3697
|
default: N(() => [
|
|
@@ -3689,9 +3699,9 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3689
3699
|
]),
|
|
3690
3700
|
_: 1
|
|
3691
3701
|
}, 8, ["size", "disabled"]),
|
|
3692
|
-
|
|
3693
|
-
size:
|
|
3694
|
-
onClick:
|
|
3702
|
+
j(A, {
|
|
3703
|
+
size: _(M),
|
|
3704
|
+
onClick: w[1] || (w[1] = (f) => Zt())
|
|
3695
3705
|
}, {
|
|
3696
3706
|
default: N(() => [
|
|
3697
3707
|
ve("重置")
|
|
@@ -3705,7 +3715,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3705
3715
|
dateRange: N((f) => {
|
|
3706
3716
|
var D, F;
|
|
3707
3717
|
return [
|
|
3708
|
-
|
|
3718
|
+
j(Bu, ee({
|
|
3709
3719
|
value: V[f.field],
|
|
3710
3720
|
"onUpdate:value": (Q) => V[f.field] = Q,
|
|
3711
3721
|
ref: (Q) => oe(Q, f.field)
|
|
@@ -3715,7 +3725,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3715
3725
|
date: N((f) => {
|
|
3716
3726
|
var D, F;
|
|
3717
3727
|
return [
|
|
3718
|
-
|
|
3728
|
+
j(Hu, ee({
|
|
3719
3729
|
value: V[f.field],
|
|
3720
3730
|
"onUpdate:value": (Q) => V[f.field] = Q,
|
|
3721
3731
|
ref: (Q) => oe(Q, f.field)
|
|
@@ -3799,7 +3809,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3799
3809
|
cascader: N((f) => {
|
|
3800
3810
|
var D, F, Q;
|
|
3801
3811
|
return [
|
|
3802
|
-
|
|
3812
|
+
j(Ku, ee({
|
|
3803
3813
|
value: V[f.field],
|
|
3804
3814
|
"onUpdate:value": (ie) => V[f.field] = ie,
|
|
3805
3815
|
title: (D = f == null ? void 0 : f.item) == null ? void 0 : D.title,
|
|
@@ -3809,10 +3819,10 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3809
3819
|
}),
|
|
3810
3820
|
_: 2
|
|
3811
3821
|
}, [
|
|
3812
|
-
$e(
|
|
3822
|
+
$e(_(c), (f) => ({
|
|
3813
3823
|
name: f,
|
|
3814
3824
|
fn: N((D) => [
|
|
3815
|
-
|
|
3825
|
+
za(y.$slots, f, ee(D, {
|
|
3816
3826
|
value: V[D.field]
|
|
3817
3827
|
}))
|
|
3818
3828
|
])
|
|
@@ -3825,10 +3835,10 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3825
3835
|
_: 3
|
|
3826
3836
|
}, 8, ["activeKey"])
|
|
3827
3837
|
], 512), [
|
|
3828
|
-
[$a,
|
|
3838
|
+
[$a, _(z)(i.formItems)]
|
|
3829
3839
|
]),
|
|
3830
3840
|
K("div", hs, [
|
|
3831
|
-
|
|
3841
|
+
j(ml, ee({
|
|
3832
3842
|
ref_key: "gridRef",
|
|
3833
3843
|
ref: b
|
|
3834
3844
|
}, B, wl(al), {
|
|
@@ -3845,7 +3855,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3845
3855
|
K("a", {
|
|
3846
3856
|
href: "javascript:void(0)",
|
|
3847
3857
|
class: "sag-vxe-page-link",
|
|
3848
|
-
onClick: (F) =>
|
|
3858
|
+
onClick: (F) => _(an)(f, D)
|
|
3849
3859
|
}, Se(f[D.property]), 9, vs)
|
|
3850
3860
|
]),
|
|
3851
3861
|
vertical: N(({ row: f, column: D }) => [
|
|
@@ -3858,23 +3868,23 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3858
3868
|
K("a", {
|
|
3859
3869
|
href: "javascript:void(0)",
|
|
3860
3870
|
class: "sag-vxe-page-link",
|
|
3861
|
-
onClick: (Q) =>
|
|
3871
|
+
onClick: (Q) => _(an)(f, F)
|
|
3862
3872
|
}, Se(f[F.field]), 9, Os)
|
|
3863
|
-
])) : (S(), W("span", ws, Se(
|
|
3873
|
+
])) : (S(), W("span", ws, Se(_(Ru)(f[F.field], F.formatter)), 1))
|
|
3864
3874
|
]))), 128))
|
|
3865
3875
|
]),
|
|
3866
3876
|
button: N(({ row: f }) => [
|
|
3867
3877
|
K("div", _s, [
|
|
3868
3878
|
(S(!0), W(xe, null, $e(p.tableButtons, (D) => (S(), W(xe, { key: D }, [
|
|
3869
|
-
|
|
3879
|
+
_(T)(f[D.buttonName], !0) && _(Ve)(D.auth) ? (S(), W("span", Ss, [
|
|
3870
3880
|
s.showButtonLink ? E("", !0) : (S(), $(A, {
|
|
3871
3881
|
key: 0,
|
|
3872
3882
|
size: "small",
|
|
3873
|
-
type:
|
|
3874
|
-
onClick: (F) =>
|
|
3883
|
+
type: _(T)(D.status, "primary"),
|
|
3884
|
+
onClick: (F) => _(Be)(D, f)
|
|
3875
3885
|
}, {
|
|
3876
3886
|
icon: N(() => [
|
|
3877
|
-
|
|
3887
|
+
j(We, {
|
|
3878
3888
|
icon: D.icon
|
|
3879
3889
|
}, null, 8, ["icon"])
|
|
3880
3890
|
]),
|
|
@@ -3887,9 +3897,9 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3887
3897
|
key: 1,
|
|
3888
3898
|
href: "javascript:void(0)",
|
|
3889
3899
|
class: "sag-vxe-page-button-link",
|
|
3890
|
-
onClick: (F) =>
|
|
3900
|
+
onClick: (F) => _(Be)(D, f)
|
|
3891
3901
|
}, [
|
|
3892
|
-
|
|
3902
|
+
j(We, {
|
|
3893
3903
|
icon: D.icon
|
|
3894
3904
|
}, null, 8, ["icon"]),
|
|
3895
3905
|
ve(" " + Se(D.buttonName), 1)
|
|
@@ -3898,21 +3908,21 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3898
3908
|
])) : E("", !0)
|
|
3899
3909
|
], 64))), 128))
|
|
3900
3910
|
]),
|
|
3901
|
-
ul(p.tableMoreButtons, f) ? (S(), $(
|
|
3911
|
+
ul(p.tableMoreButtons, f) ? (S(), $(ze, {
|
|
3902
3912
|
key: 0,
|
|
3903
3913
|
destroyPopupOnHide: !0
|
|
3904
3914
|
}, {
|
|
3905
3915
|
overlay: N(() => [
|
|
3906
|
-
|
|
3916
|
+
j(se, null, {
|
|
3907
3917
|
default: N(() => [
|
|
3908
3918
|
(S(!0), W(xe, null, $e(p.tableMoreButtons, (D) => (S(), W(xe, { key: D }, [
|
|
3909
|
-
|
|
3910
|
-
|
|
3919
|
+
_(Ve)(D.auth) ? (S(), W(xe, { key: 0 }, [
|
|
3920
|
+
_(T)(f[D.buttonName], !0) ? (S(), $(be, { key: 0 }, {
|
|
3911
3921
|
default: N(() => [
|
|
3912
3922
|
K("a", {
|
|
3913
|
-
onClick: (F) =>
|
|
3923
|
+
onClick: (F) => _(Be)(D, f)
|
|
3914
3924
|
}, [
|
|
3915
|
-
|
|
3925
|
+
j(We, {
|
|
3916
3926
|
icon: D.icon
|
|
3917
3927
|
}, null, 8, ["icon"]),
|
|
3918
3928
|
ve(" " + Se(D.buttonName), 1)
|
|
@@ -3927,13 +3937,13 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3927
3937
|
}, 1024)
|
|
3928
3938
|
]),
|
|
3929
3939
|
default: N(() => [
|
|
3930
|
-
|
|
3940
|
+
j(A, {
|
|
3931
3941
|
type: s.showButtonLink ? "link" : "default",
|
|
3932
3942
|
size: "small"
|
|
3933
3943
|
}, {
|
|
3934
3944
|
default: N(() => [
|
|
3935
3945
|
ve(" 更多操作 "),
|
|
3936
|
-
|
|
3946
|
+
j(_(Er))
|
|
3937
3947
|
]),
|
|
3938
3948
|
_: 1
|
|
3939
3949
|
}, 8, ["type"])
|
|
@@ -3942,21 +3952,21 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3942
3952
|
}, 1024)) : E("", !0)
|
|
3943
3953
|
]),
|
|
3944
3954
|
toolbar_buttons: N(() => [
|
|
3945
|
-
|
|
3955
|
+
j(H, {
|
|
3946
3956
|
wrap: !0,
|
|
3947
3957
|
style: { "margin-bottom": "0px" }
|
|
3948
3958
|
}, {
|
|
3949
3959
|
default: N(() => [
|
|
3950
3960
|
(S(!0), W(xe, null, $e(p.formButtons, (f) => (S(), W("span", { key: f }, [
|
|
3951
|
-
|
|
3961
|
+
_(Ve)(f.auth) ? (S(), $(A, {
|
|
3952
3962
|
key: 0,
|
|
3953
3963
|
round: "",
|
|
3954
|
-
size:
|
|
3955
|
-
type:
|
|
3956
|
-
onClick: (D) =>
|
|
3964
|
+
size: _(M),
|
|
3965
|
+
type: _(T)(f.status, "primary"),
|
|
3966
|
+
onClick: (D) => _(ll)(f)
|
|
3957
3967
|
}, {
|
|
3958
3968
|
icon: N(() => [
|
|
3959
|
-
|
|
3969
|
+
j(We, {
|
|
3960
3970
|
icon: f.icon
|
|
3961
3971
|
}, null, 8, ["icon"])
|
|
3962
3972
|
]),
|
|
@@ -3971,11 +3981,11 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3971
3981
|
})
|
|
3972
3982
|
]),
|
|
3973
3983
|
toolbar_tools: N(() => [
|
|
3974
|
-
|
|
3984
|
+
_(z)(s.tableColumnsExtra) ? (S(), $(we, {
|
|
3975
3985
|
key: 0,
|
|
3976
3986
|
size: "small",
|
|
3977
3987
|
circle: !0,
|
|
3978
|
-
onClick:
|
|
3988
|
+
onClick: w[3] || (w[3] = (f) => _(ln)(l.application, !1)),
|
|
3979
3989
|
title: "切换"
|
|
3980
3990
|
}, {
|
|
3981
3991
|
default: N(() => [
|
|
@@ -3983,15 +3993,15 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
3983
3993
|
]),
|
|
3984
3994
|
_: 1
|
|
3985
3995
|
})) : E("", !0),
|
|
3986
|
-
|
|
3996
|
+
_(z)(o.requestDownload) && typeof o.requestDownload == "object" ? (S(), $(ps, {
|
|
3987
3997
|
key: 1,
|
|
3988
|
-
onExport:
|
|
3998
|
+
onExport: _(rn)
|
|
3989
3999
|
}, null, 8, ["onExport"])) : E("", !0),
|
|
3990
4000
|
o.requestDownload === !0 || typeof o.requestDownload == "string" ? (S(), $(we, {
|
|
3991
4001
|
key: 2,
|
|
3992
4002
|
size: "small",
|
|
3993
4003
|
circle: !0,
|
|
3994
|
-
onClick:
|
|
4004
|
+
onClick: _(rn),
|
|
3995
4005
|
title: "下载"
|
|
3996
4006
|
}, {
|
|
3997
4007
|
default: N(() => [
|
|
@@ -4003,7 +4013,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
4003
4013
|
key: 3,
|
|
4004
4014
|
size: "small",
|
|
4005
4015
|
circle: !0,
|
|
4006
|
-
onClick:
|
|
4016
|
+
onClick: w[4] || (w[4] = (f) => _(ol)()),
|
|
4007
4017
|
title: "导入"
|
|
4008
4018
|
}, {
|
|
4009
4019
|
default: N(() => [
|
|
@@ -4013,7 +4023,7 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
4013
4023
|
})) : E("", !0)
|
|
4014
4024
|
]),
|
|
4015
4025
|
empty: N(() => [
|
|
4016
|
-
P.value === "error" ? (S(), W("h2", Ms,
|
|
4026
|
+
P.value === "error" ? (S(), W("h2", Ms, zs)) : E("", !0),
|
|
4017
4027
|
P.value === "none" ? (S(), W("h2", $s, Ds)) : E("", !0),
|
|
4018
4028
|
P.value === "more" ? (S(), W("h2", Es, [
|
|
4019
4029
|
Vs,
|
|
@@ -4027,10 +4037,10 @@ const ss = { id: "div_view_modal" }, cs = { style: { color: "red", "padding-left
|
|
|
4027
4037
|
]),
|
|
4028
4038
|
_: 2
|
|
4029
4039
|
}, [
|
|
4030
|
-
$e(
|
|
4040
|
+
$e(_(c), (f) => ({
|
|
4031
4041
|
name: f,
|
|
4032
4042
|
fn: N((D) => [
|
|
4033
|
-
|
|
4043
|
+
za(y.$slots, f, _l(Sl(D)))
|
|
4034
4044
|
])
|
|
4035
4045
|
}))
|
|
4036
4046
|
]), 1040, ["size"])
|