sag-ubmp-pc 1.0.3 → 1.0.4
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 +1014 -1005
- package/dist/sag-ubmp-pc.umd.js +6 -6
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { inject as ge, ref as V, h as Ve, getCurrentInstance as Wr, nextTick as
|
|
1
|
+
import Ge, { trim as Me, debounce as Mt } from "xe-utils";
|
|
2
|
+
import { inject as ge, ref as V, h as Ve, getCurrentInstance as Wr, nextTick as rt, reactive as le, defineComponent as Y, createVNode as q, openBlock as O, createElementBlock as F, Fragment as we, createBlock as z, unref as _, createCommentVNode as R, onMounted as ie, resolveComponent as L, isRef as st, createSlots as qe, withCtx as N, defineAsyncComponent as Gr, computed as Jr, createElementVNode as te, toDisplayString as me, resolveDynamicComponent as Qr, mergeProps as ne, useAttrs as Xr, provide as Ua, useSlots as ct, watch as be, withDirectives as Fa, createTextVNode as pe, renderList as Ae, renderSlot as xe, vShow as Ha, toHandlers as Zr, normalizeProps as Kr, guardReactiveProps as eo, normalizeStyle as Ya } from "vue";
|
|
3
3
|
import { Modal as to, notification as xt, message as no, Spin as ao } from "ant-design-vue";
|
|
4
4
|
import M from "dayjs";
|
|
5
|
-
const
|
|
5
|
+
const dt = "SAG_VXE_PAGE$", ot = {
|
|
6
6
|
set: () => {
|
|
7
7
|
},
|
|
8
8
|
get: () => "",
|
|
@@ -16,9 +16,9 @@ const ct = "SAG_VXE_PAGE$", rt = {
|
|
|
16
16
|
}, lo = (e) => {
|
|
17
17
|
const n = (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
return e.addTime + e.expires >= n;
|
|
19
|
-
},
|
|
19
|
+
}, Xe = (e) => `${dt}${e}`, ro = (e) => ({
|
|
20
20
|
set(n, t, l) {
|
|
21
|
-
const a =
|
|
21
|
+
const a = Xe(n);
|
|
22
22
|
if (l)
|
|
23
23
|
e.setItem(
|
|
24
24
|
a,
|
|
@@ -35,42 +35,42 @@ const ct = "SAG_VXE_PAGE$", rt = {
|
|
|
35
35
|
t == null && e.removeItem(a);
|
|
36
36
|
},
|
|
37
37
|
get(n) {
|
|
38
|
-
const t =
|
|
38
|
+
const t = Xe(n), l = JSON.parse(e.getItem(t));
|
|
39
39
|
return l && l.addTime ? lo(l) ? l.value : (e.removeItem(t), null) : l;
|
|
40
40
|
},
|
|
41
41
|
has(n) {
|
|
42
|
-
const t =
|
|
42
|
+
const t = Xe(n);
|
|
43
43
|
return !!e.getItem(t);
|
|
44
44
|
},
|
|
45
45
|
remove: (n) => {
|
|
46
|
-
const t =
|
|
46
|
+
const t = Xe(n);
|
|
47
47
|
e.removeItem(t);
|
|
48
48
|
},
|
|
49
49
|
clear: () => {
|
|
50
50
|
e.clear();
|
|
51
51
|
},
|
|
52
52
|
clearSelf: () => {
|
|
53
|
-
Array.from({ length: e.length }, (t, l) => e.key(l)).filter((t) => t == null ? void 0 : t.startsWith(
|
|
53
|
+
Array.from({ length: e.length }, (t, l) => e.key(l)).filter((t) => t == null ? void 0 : t.startsWith(dt)).forEach((t) => e.removeItem(t));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
Object.assign(
|
|
57
|
-
const s = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0),
|
|
56
|
+
Object.assign(ot, ro(window.localStorage));
|
|
57
|
+
const s = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Fe = (e) => e === void 0 || e === null ? !0 : e, ae = (e, n) => s(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e + n : e + "/" + n : "", ft = (e) => s(e) ? e + "$" : "", er = "DICT_TYPE", $t = (e, n, t) => {
|
|
58
58
|
so(e, er, n, t);
|
|
59
59
|
}, Vt = (e, n) => co(e, er, n), tr = "COLUMNS_SWITCH", oo = (e, n, t) => {
|
|
60
60
|
ar(e, tr, n, t);
|
|
61
61
|
}, io = (e, n) => lr(e, tr, n), nr = "FORM_PARAMS", Wa = (e, n, t) => {
|
|
62
62
|
ar(e, nr, n, t);
|
|
63
63
|
}, uo = (e, n) => lr(e, nr, n), so = (e, n, t, l) => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = dt + ft(e) + n, r = sessionStorage.getItem(a), o = s(r) ? JSON.parse(r) : {};
|
|
65
65
|
o[t] = l, sessionStorage.setItem(a, JSON.stringify(o));
|
|
66
66
|
}, co = (e, n, t) => {
|
|
67
|
-
const l =
|
|
67
|
+
const l = dt + ft(e) + n, a = sessionStorage.getItem(l);
|
|
68
68
|
return s(a) ? JSON.parse(a)[t] : null;
|
|
69
69
|
}, ar = (e, n, t, l) => {
|
|
70
|
-
const a =
|
|
71
|
-
o[t] = l,
|
|
70
|
+
const a = ft(e) + n, r = ot.get(a), o = s(r) ? r : {};
|
|
71
|
+
o[t] = l, ot.set(a, o);
|
|
72
72
|
}, lr = (e, n, t) => {
|
|
73
|
-
const l =
|
|
73
|
+
const l = ft(e) + n, a = ot.get(l);
|
|
74
74
|
return s(a) ? a[t] : null;
|
|
75
75
|
};
|
|
76
76
|
function zt(e) {
|
|
@@ -78,7 +78,7 @@ function zt(e) {
|
|
|
78
78
|
console[e]("[sag-ubmp-pc]" + n, t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
const re = zt("log"), rr = zt("warn"),
|
|
81
|
+
const re = zt("log"), rr = zt("warn"), pt = zt("error"), tt = {
|
|
82
82
|
ExcelJS: null,
|
|
83
83
|
FileSaver: null
|
|
84
84
|
}, T = {
|
|
@@ -89,7 +89,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
89
89
|
buttonKeyName: "_X_BUTTON_INFO",
|
|
90
90
|
messageResp: !0,
|
|
91
91
|
dynamicViewsModules: {},
|
|
92
|
-
requestPlugin: () => (
|
|
92
|
+
requestPlugin: () => (pt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null),
|
|
93
93
|
templateForm: {
|
|
94
94
|
vxeSlot: !0,
|
|
95
95
|
storage: !1,
|
|
@@ -143,10 +143,10 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
143
143
|
}
|
|
144
144
|
}, Xc = {
|
|
145
145
|
setupConfig: function(e) {
|
|
146
|
-
|
|
146
|
+
Ge.merge(T, e), re("加载公共参数完毕", T);
|
|
147
147
|
},
|
|
148
148
|
setupExcelConfig: function(e, n) {
|
|
149
|
-
|
|
149
|
+
Ge.merge(tt, {
|
|
150
150
|
ExcelJS: e,
|
|
151
151
|
FileSaver: n
|
|
152
152
|
}), re("加载excel组件完毕");
|
|
@@ -211,7 +211,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
211
211
|
defaultValue: d,
|
|
212
212
|
dictRoleType: f,
|
|
213
213
|
selectAll: g,
|
|
214
|
-
parentNode:
|
|
214
|
+
parentNode: x
|
|
215
215
|
} = l;
|
|
216
216
|
return {
|
|
217
217
|
field: e,
|
|
@@ -222,7 +222,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
222
222
|
props: {
|
|
223
223
|
request: {
|
|
224
224
|
dictType: t,
|
|
225
|
-
parentNode: s(
|
|
225
|
+
parentNode: s(x) ? x : null,
|
|
226
226
|
dictRoleType: s(f) ? f : null
|
|
227
227
|
},
|
|
228
228
|
multiple: s(o) ? o : !1,
|
|
@@ -338,24 +338,24 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
338
338
|
componentParams: d = {},
|
|
339
339
|
treeNode: f,
|
|
340
340
|
autoLoad: g,
|
|
341
|
-
resizable:
|
|
341
|
+
resizable: x,
|
|
342
342
|
showOverflow: p,
|
|
343
343
|
align: m,
|
|
344
|
-
type:
|
|
345
|
-
fixed:
|
|
344
|
+
type: C,
|
|
345
|
+
fixed: S,
|
|
346
346
|
width: b
|
|
347
347
|
} = t;
|
|
348
348
|
return {
|
|
349
349
|
field: e,
|
|
350
350
|
title: n,
|
|
351
351
|
sortable: !1,
|
|
352
|
-
width: s(b) ? b : s(
|
|
352
|
+
width: s(b) ? b : s(C) ? s(i) ? i : 120 : "auto",
|
|
353
353
|
minWidth: s(i) ? i : 120,
|
|
354
|
-
resizable: s(
|
|
354
|
+
resizable: s(x) ? x : !1,
|
|
355
355
|
showOverflow: s(p) ? p : "title",
|
|
356
356
|
align: s(m) ? m : "center",
|
|
357
|
-
type: s(
|
|
358
|
-
fixed: s(
|
|
357
|
+
type: s(C) ? C : null,
|
|
358
|
+
fixed: s(S) ? S : "",
|
|
359
359
|
formatter: s(l) ? l : "",
|
|
360
360
|
treeNode: s(f) ? f : !1,
|
|
361
361
|
params: {
|
|
@@ -440,7 +440,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
440
440
|
maximize: d,
|
|
441
441
|
width: f,
|
|
442
442
|
height: g,
|
|
443
|
-
auth:
|
|
443
|
+
auth: x,
|
|
444
444
|
autoLoad: p
|
|
445
445
|
} = n;
|
|
446
446
|
return {
|
|
@@ -458,7 +458,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
458
458
|
autoLoad: s(p) ? p : !0,
|
|
459
459
|
width: s(f) ? f : null,
|
|
460
460
|
height: s(g) ? g : null,
|
|
461
|
-
auth: s(
|
|
461
|
+
auth: s(x) ? x : !0
|
|
462
462
|
};
|
|
463
463
|
}, jo = (e = "", n = {}) => {
|
|
464
464
|
const { icon: t, status: l, requestTitle: a, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent: u, auth: c } = n;
|
|
@@ -534,12 +534,12 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
534
534
|
if (l && l.includes(i.field)) {
|
|
535
535
|
const d = u[o - 1], f = d && d[i.field] ? d[i.field] : "";
|
|
536
536
|
let g = u[o + 1];
|
|
537
|
-
const
|
|
537
|
+
const x = g && g[i.field] ? g[i.field] : "";
|
|
538
538
|
if (d && f === c && d[n] === r[n])
|
|
539
539
|
return { rowspan: 0, colspan: 0 };
|
|
540
540
|
{
|
|
541
541
|
let p = 1;
|
|
542
|
-
for (; g &&
|
|
542
|
+
for (; g && x === c && g[n] === r[n]; )
|
|
543
543
|
g = u[++p + o];
|
|
544
544
|
if (p > 1)
|
|
545
545
|
return { rowspan: p, colspan: 1 };
|
|
@@ -559,14 +559,14 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
559
559
|
}
|
|
560
560
|
} else if (s(l[i.field])) {
|
|
561
561
|
const d = l[i.field], f = u[o - 1], g = f && f[i.field] ? f[i.field] : "";
|
|
562
|
-
let
|
|
563
|
-
const p =
|
|
562
|
+
let x = u[o + 1];
|
|
563
|
+
const p = x && x[i.field] ? x[i.field] : "";
|
|
564
564
|
if (f && g === c && f[d] === r[d])
|
|
565
565
|
return { rowspan: 0, colspan: 0 };
|
|
566
566
|
{
|
|
567
567
|
let m = 1;
|
|
568
|
-
for (;
|
|
569
|
-
|
|
568
|
+
for (; x && p === c && x[d] === r[d]; )
|
|
569
|
+
x = u[++m + o];
|
|
570
570
|
if (m > 1)
|
|
571
571
|
return { rowspan: m, colspan: 1 };
|
|
572
572
|
}
|
|
@@ -576,7 +576,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
576
576
|
}, Ct = (e, n, t, l, a, r) => {
|
|
577
577
|
const o = Object.assign({}, l);
|
|
578
578
|
Object.assign(o, a), Object.keys(o).forEach((u) => {
|
|
579
|
-
typeof o[u] == "string" && (o[u] =
|
|
579
|
+
typeof o[u] == "string" && (o[u] = Me(o[u])), typeof a[u] == "object" && s(a[u]) && r && r.value[u] && r.value[u].getRefType && r.value[u].getRefType() === "dateRange" && (o["begin" + u.substring(0, 1).toUpperCase() + u.substring(1, u.length)] = a[u][0], o["end" + u.substring(0, 1).toUpperCase() + u.substring(1, u.length)] = a[u][1], o[u] = null);
|
|
580
580
|
}), o.pageModel = {
|
|
581
581
|
pageNo: e.currentPage,
|
|
582
582
|
pageSize: e.pageSize,
|
|
@@ -593,7 +593,7 @@ const re = zt("log"), rr = zt("warn"), ft = zt("error"), et = {
|
|
|
593
593
|
}, No = (e, n, t, l) => {
|
|
594
594
|
const a = Object.assign({}, t);
|
|
595
595
|
Object.assign(a, l), Object.keys(a).forEach((o) => {
|
|
596
|
-
typeof a[o] == "string" && (a[o] =
|
|
596
|
+
typeof a[o] == "string" && (a[o] = Me(a[o]));
|
|
597
597
|
});
|
|
598
598
|
const r = e[0];
|
|
599
599
|
return r && (a.sorts = {
|
|
@@ -631,7 +631,7 @@ function Eo(e) {
|
|
|
631
631
|
function Bo(e) {
|
|
632
632
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Ze(e) {
|
|
635
635
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
636
636
|
}
|
|
637
637
|
function bt(e) {
|
|
@@ -847,9 +847,9 @@ var Xa = {
|
|
|
847
847
|
yellow: "#ffff00",
|
|
848
848
|
yellowgreen: "#9acd32"
|
|
849
849
|
};
|
|
850
|
-
function
|
|
850
|
+
function He(e) {
|
|
851
851
|
var n = { r: 0, g: 0, b: 0 }, t = 1, l = null, a = null, r = null, o = !1, i = !1;
|
|
852
|
-
return typeof e == "string" && (e = Go(e)), typeof e == "object" && (
|
|
852
|
+
return typeof e == "string" && (e = Go(e)), typeof e == "object" && (Te(e.r) && Te(e.g) && Te(e.b) ? (n = Lo(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Te(e.h) && Te(e.s) && Te(e.v) ? (l = Ze(e.s), a = Ze(e.v), n = Fo(e.h, l, a), o = !0, i = "hsv") : Te(e.h) && Te(e.s) && Te(e.l) && (l = Ze(e.s), r = Ze(e.l), n = Io(e.h, l, r), o = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = Bo(t), {
|
|
853
853
|
ok: o,
|
|
854
854
|
format: e.format || i,
|
|
855
855
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -904,10 +904,10 @@ function Go(e) {
|
|
|
904
904
|
format: n ? "name" : "hex"
|
|
905
905
|
} : !1)))))))));
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Te(e) {
|
|
908
908
|
return !!Oe.CSS_UNIT.exec(String(e));
|
|
909
909
|
}
|
|
910
|
-
var
|
|
910
|
+
var Ke = 2, Za = 0.16, Jo = 0.05, Qo = 0.05, Xo = 0.15, cr = 5, dr = 4, Zo = [{
|
|
911
911
|
index: 7,
|
|
912
912
|
opacity: 0.15
|
|
913
913
|
}, {
|
|
@@ -946,7 +946,7 @@ function Ka(e) {
|
|
|
946
946
|
v: a.v
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function et(e) {
|
|
950
950
|
var n = e.r, t = e.g, l = e.b;
|
|
951
951
|
return "#".concat(Ho(n, t, l, !1));
|
|
952
952
|
}
|
|
@@ -960,7 +960,7 @@ function Ko(e, n, t) {
|
|
|
960
960
|
}
|
|
961
961
|
function el(e, n, t) {
|
|
962
962
|
var l;
|
|
963
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? l = t ? Math.round(e.h) -
|
|
963
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? l = t ? Math.round(e.h) - Ke * n : Math.round(e.h) + Ke * n : l = t ? Math.round(e.h) + Ke * n : Math.round(e.h) - Ke * n, l < 0 ? l += 360 : l >= 360 && (l -= 360), l;
|
|
964
964
|
}
|
|
965
965
|
function tl(e, n, t) {
|
|
966
966
|
if (e.h === 0 && e.s === 0)
|
|
@@ -973,17 +973,17 @@ function nl(e, n, t) {
|
|
|
973
973
|
return t ? l = e.v + Qo * n : l = e.v - Xo * n, l > 1 && (l = 1), Number(l.toFixed(2));
|
|
974
974
|
}
|
|
975
975
|
function Pt(e) {
|
|
976
|
-
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], l =
|
|
977
|
-
var r = Ka(l), o =
|
|
976
|
+
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], l = He(e), a = cr; a > 0; a -= 1) {
|
|
977
|
+
var r = Ka(l), o = et(He({
|
|
978
978
|
h: el(r, a, !0),
|
|
979
979
|
s: tl(r, a, !0),
|
|
980
980
|
v: nl(r, a, !0)
|
|
981
981
|
}));
|
|
982
982
|
t.push(o);
|
|
983
983
|
}
|
|
984
|
-
t.push(
|
|
984
|
+
t.push(et(l));
|
|
985
985
|
for (var i = 1; i <= dr; i += 1) {
|
|
986
|
-
var u = Ka(l), c =
|
|
986
|
+
var u = Ka(l), c = et(He({
|
|
987
987
|
h: el(u, i),
|
|
988
988
|
s: tl(u, i),
|
|
989
989
|
v: nl(u, i)
|
|
@@ -991,8 +991,8 @@ function Pt(e) {
|
|
|
991
991
|
t.push(c);
|
|
992
992
|
}
|
|
993
993
|
return n.theme === "dark" ? Zo.map(function(d) {
|
|
994
|
-
var f = d.index, g = d.opacity,
|
|
995
|
-
return
|
|
994
|
+
var f = d.index, g = d.opacity, x = et(Ko(He(n.backgroundColor || "#141414"), He(t[f]), g * 100));
|
|
995
|
+
return x;
|
|
996
996
|
}) : t;
|
|
997
997
|
}
|
|
998
998
|
var Ot = {
|
|
@@ -1009,14 +1009,14 @@ var Ot = {
|
|
|
1009
1009
|
purple: "#722ED1",
|
|
1010
1010
|
magenta: "#EB2F96",
|
|
1011
1011
|
grey: "#666666"
|
|
1012
|
-
},
|
|
1012
|
+
}, nt = {}, wt = {};
|
|
1013
1013
|
Object.keys(Ot).forEach(function(e) {
|
|
1014
|
-
|
|
1014
|
+
nt[e] = Pt(Ot[e]), nt[e].primary = nt[e][5], wt[e] = Pt(Ot[e], {
|
|
1015
1015
|
theme: "dark",
|
|
1016
1016
|
backgroundColor: "#141414"
|
|
1017
1017
|
}), wt[e].primary = wt[e][5];
|
|
1018
1018
|
});
|
|
1019
|
-
var ei =
|
|
1019
|
+
var ei = nt.blue, ti = Symbol("iconContext"), fr = function() {
|
|
1020
1020
|
return ge(ti, {
|
|
1021
1021
|
prefixCls: V("anticon"),
|
|
1022
1022
|
rootClassName: V(""),
|
|
@@ -1196,7 +1196,7 @@ function pi(e) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
var mi = function() {
|
|
1198
1198
|
var n = fr(), t = n.prefixCls, l = n.csp, a = Wr(), r = di;
|
|
1199
|
-
t && (r = r.replace(/anticon/g, t.value)),
|
|
1199
|
+
t && (r = r.replace(/anticon/g, t.value)), rt(function() {
|
|
1200
1200
|
if (jt()) {
|
|
1201
1201
|
var o = a.vnode.el, i = pi(o);
|
|
1202
1202
|
ii(r, "@ant-design-vue-icons", {
|
|
@@ -1226,7 +1226,7 @@ function hi(e, n) {
|
|
|
1226
1226
|
a = l[r], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
1227
1227
|
return t;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function at(e) {
|
|
1230
1230
|
for (var n = 1; n < arguments.length; n++) {
|
|
1231
1231
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, l = Object.keys(t);
|
|
1232
1232
|
typeof Object.getOwnPropertySymbols == "function" && (l = l.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -1240,29 +1240,29 @@ function nt(e) {
|
|
|
1240
1240
|
function bi(e, n, t) {
|
|
1241
1241
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1242
1242
|
}
|
|
1243
|
-
var
|
|
1243
|
+
var We = le({
|
|
1244
1244
|
primaryColor: "#333",
|
|
1245
1245
|
secondaryColor: "#E6E6E6",
|
|
1246
1246
|
calculated: !1
|
|
1247
1247
|
});
|
|
1248
1248
|
function yi(e) {
|
|
1249
1249
|
var n = e.primaryColor, t = e.secondaryColor;
|
|
1250
|
-
|
|
1250
|
+
We.primaryColor = n, We.secondaryColor = t || vr(n), We.calculated = !!t;
|
|
1251
1251
|
}
|
|
1252
1252
|
function Si() {
|
|
1253
|
-
return
|
|
1253
|
+
return at({}, We);
|
|
1254
1254
|
}
|
|
1255
1255
|
var Be = function(n, t) {
|
|
1256
|
-
var l =
|
|
1256
|
+
var l = at({}, n, t.attrs), a = l.icon, r = l.primaryColor, o = l.secondaryColor, i = vi(l, gi), u = We;
|
|
1257
1257
|
if (r && (u = {
|
|
1258
1258
|
primaryColor: r,
|
|
1259
1259
|
secondaryColor: o || vr(r)
|
|
1260
1260
|
}), ci(rl(a), "icon should be icon definiton, but got ".concat(a)), !rl(a))
|
|
1261
1261
|
return null;
|
|
1262
1262
|
var c = a;
|
|
1263
|
-
return c && typeof c.icon == "function" && (c =
|
|
1263
|
+
return c && typeof c.icon == "function" && (c = at({}, c, {
|
|
1264
1264
|
icon: c.icon(u.primaryColor, u.secondaryColor)
|
|
1265
|
-
})), Tt(c.icon, "svg-".concat(c.name),
|
|
1265
|
+
})), Tt(c.icon, "svg-".concat(c.name), at({}, i, {
|
|
1266
1266
|
"data-icon": c.name,
|
|
1267
1267
|
width: "1em",
|
|
1268
1268
|
height: "1em",
|
|
@@ -1340,7 +1340,7 @@ function Pi() {
|
|
|
1340
1340
|
var e = Dt.getTwoToneColors();
|
|
1341
1341
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1342
1342
|
}
|
|
1343
|
-
var ki =
|
|
1343
|
+
var ki = Y({
|
|
1344
1344
|
name: "InsertStyles",
|
|
1345
1345
|
setup: function() {
|
|
1346
1346
|
return mi(), function() {
|
|
@@ -1402,12 +1402,12 @@ function ul(e) {
|
|
|
1402
1402
|
typeof Object.getOwnPropertySymbols == "function" && (l = l.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
1403
1403
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
1404
1404
|
}))), l.forEach(function(a) {
|
|
1405
|
-
|
|
1405
|
+
Ye(e, a, t[a]);
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
return e;
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function Ye(e, n, t) {
|
|
1411
1411
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1412
1412
|
}
|
|
1413
1413
|
function ji(e, n) {
|
|
@@ -1431,25 +1431,25 @@ function qi(e, n) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
yr(ei.primary);
|
|
1433
1433
|
var Le = function(n, t) {
|
|
1434
|
-
var l, a = ul({}, n, t.attrs), r = a.class, o = a.icon, i = a.spin, u = a.rotate, c = a.tabindex, d = a.twoToneColor, f = a.onClick, g = ji(a, Ti),
|
|
1435
|
-
|
|
1434
|
+
var l, a = ul({}, n, t.attrs), r = a.class, o = a.icon, i = a.spin, u = a.rotate, c = a.tabindex, d = a.twoToneColor, f = a.onClick, g = ji(a, Ti), x = fr(), p = x.prefixCls, m = x.rootClassName, C = (l = {}, Ye(l, m.value, !!m.value), Ye(l, p.value, !0), Ye(l, "".concat(p.value, "-").concat(o.name), !!o.name), Ye(l, "".concat(p.value, "-spin"), !!i || o.name === "loading"), l), S = c;
|
|
1435
|
+
S === void 0 && f && (S = -1);
|
|
1436
1436
|
var b = u ? {
|
|
1437
1437
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1438
1438
|
transform: "rotate(".concat(u, "deg)")
|
|
1439
|
-
} : void 0,
|
|
1440
|
-
return
|
|
1439
|
+
} : void 0, w = hr(d), v = Ai(w, 2), y = v[0], k = v[1];
|
|
1440
|
+
return q("span", ul({
|
|
1441
1441
|
role: "img",
|
|
1442
1442
|
"aria-label": o.name
|
|
1443
1443
|
}, g, {
|
|
1444
1444
|
onClick: f,
|
|
1445
|
-
class: [
|
|
1446
|
-
tabindex:
|
|
1447
|
-
}), [
|
|
1445
|
+
class: [C, r],
|
|
1446
|
+
tabindex: S
|
|
1447
|
+
}), [q(Dt, {
|
|
1448
1448
|
icon: o,
|
|
1449
|
-
primaryColor:
|
|
1450
|
-
secondaryColor:
|
|
1449
|
+
primaryColor: y,
|
|
1450
|
+
secondaryColor: k,
|
|
1451
1451
|
style: b
|
|
1452
|
-
}, null),
|
|
1452
|
+
}, null), q(ki, null, null)]);
|
|
1453
1453
|
};
|
|
1454
1454
|
Le.props = {
|
|
1455
1455
|
spin: Boolean,
|
|
@@ -1480,7 +1480,7 @@ function Ri(e, n, t) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
var Nt = function(n, t) {
|
|
1482
1482
|
var l = sl({}, n, t.attrs);
|
|
1483
|
-
return
|
|
1483
|
+
return q(Z, sl({}, l, {
|
|
1484
1484
|
icon: Ni
|
|
1485
1485
|
}), null);
|
|
1486
1486
|
};
|
|
@@ -1505,7 +1505,7 @@ function Ii(e, n, t) {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
var Rt = function(n, t) {
|
|
1507
1507
|
var l = cl({}, n, t.attrs);
|
|
1508
|
-
return
|
|
1508
|
+
return q(Z, cl({}, l, {
|
|
1509
1509
|
icon: Li
|
|
1510
1510
|
}), null);
|
|
1511
1511
|
};
|
|
@@ -1530,7 +1530,7 @@ function Yi(e, n, t) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
var Et = function(n, t) {
|
|
1532
1532
|
var l = dl({}, n, t.attrs);
|
|
1533
|
-
return
|
|
1533
|
+
return q(Z, dl({}, l, {
|
|
1534
1534
|
icon: Hi
|
|
1535
1535
|
}), null);
|
|
1536
1536
|
};
|
|
@@ -1555,7 +1555,7 @@ function Qi(e, n, t) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
var Bt = function(n, t) {
|
|
1557
1557
|
var l = fl({}, n, t.attrs);
|
|
1558
|
-
return
|
|
1558
|
+
return q(Z, fl({}, l, {
|
|
1559
1559
|
icon: Ji
|
|
1560
1560
|
}), null);
|
|
1561
1561
|
};
|
|
@@ -1580,7 +1580,7 @@ function eu(e, n, t) {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
var Lt = function(n, t) {
|
|
1582
1582
|
var l = pl({}, n, t.attrs);
|
|
1583
|
-
return
|
|
1583
|
+
return q(Z, pl({}, l, {
|
|
1584
1584
|
icon: Ki
|
|
1585
1585
|
}), null);
|
|
1586
1586
|
};
|
|
@@ -1605,7 +1605,7 @@ function lu(e, n, t) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
var It = function(n, t) {
|
|
1607
1607
|
var l = ml({}, n, t.attrs);
|
|
1608
|
-
return
|
|
1608
|
+
return q(Z, ml({}, l, {
|
|
1609
1609
|
icon: au
|
|
1610
1610
|
}), null);
|
|
1611
1611
|
};
|
|
@@ -1630,7 +1630,7 @@ function iu(e, n, t) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
var Ut = function(n, t) {
|
|
1632
1632
|
var l = gl({}, n, t.attrs);
|
|
1633
|
-
return
|
|
1633
|
+
return q(Z, gl({}, l, {
|
|
1634
1634
|
icon: ou
|
|
1635
1635
|
}), null);
|
|
1636
1636
|
};
|
|
@@ -1655,7 +1655,7 @@ function du(e, n, t) {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
var Ft = function(n, t) {
|
|
1657
1657
|
var l = vl({}, n, t.attrs);
|
|
1658
|
-
return
|
|
1658
|
+
return q(Z, vl({}, l, {
|
|
1659
1659
|
icon: cu
|
|
1660
1660
|
}), null);
|
|
1661
1661
|
};
|
|
@@ -1680,7 +1680,7 @@ function gu(e, n, t) {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
var Ht = function(n, t) {
|
|
1682
1682
|
var l = hl({}, n, t.attrs);
|
|
1683
|
-
return
|
|
1683
|
+
return q(Z, hl({}, l, {
|
|
1684
1684
|
icon: mu
|
|
1685
1685
|
}), null);
|
|
1686
1686
|
};
|
|
@@ -1705,7 +1705,7 @@ function yu(e, n, t) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
var Yt = function(n, t) {
|
|
1707
1707
|
var l = bl({}, n, t.attrs);
|
|
1708
|
-
return
|
|
1708
|
+
return q(Z, bl({}, l, {
|
|
1709
1709
|
icon: bu
|
|
1710
1710
|
}), null);
|
|
1711
1711
|
};
|
|
@@ -1730,7 +1730,7 @@ function wu(e, n, t) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
var Wt = function(n, t) {
|
|
1732
1732
|
var l = yl({}, n, t.attrs);
|
|
1733
|
-
return
|
|
1733
|
+
return q(Z, yl({}, l, {
|
|
1734
1734
|
icon: Ou
|
|
1735
1735
|
}), null);
|
|
1736
1736
|
};
|
|
@@ -1755,7 +1755,7 @@ function ku(e, n, t) {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
var Gt = function(n, t) {
|
|
1757
1757
|
var l = Sl({}, n, t.attrs);
|
|
1758
|
-
return
|
|
1758
|
+
return q(Z, Sl({}, l, {
|
|
1759
1759
|
icon: Pu
|
|
1760
1760
|
}), null);
|
|
1761
1761
|
};
|
|
@@ -1780,7 +1780,7 @@ function $u(e, n, t) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
var Jt = function(n, t) {
|
|
1782
1782
|
var l = _l({}, n, t.attrs);
|
|
1783
|
-
return
|
|
1783
|
+
return q(Z, _l({}, l, {
|
|
1784
1784
|
icon: Mu
|
|
1785
1785
|
}), null);
|
|
1786
1786
|
};
|
|
@@ -1805,7 +1805,7 @@ function qu(e, n, t) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
var Qt = function(n, t) {
|
|
1807
1807
|
var l = Ol({}, n, t.attrs);
|
|
1808
|
-
return
|
|
1808
|
+
return q(Z, Ol({}, l, {
|
|
1809
1809
|
icon: ju
|
|
1810
1810
|
}), null);
|
|
1811
1811
|
};
|
|
@@ -1830,7 +1830,7 @@ function Eu(e, n, t) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
var Xt = function(n, t) {
|
|
1832
1832
|
var l = wl({}, n, t.attrs);
|
|
1833
|
-
return
|
|
1833
|
+
return q(Z, wl({}, l, {
|
|
1834
1834
|
icon: Ru
|
|
1835
1835
|
}), null);
|
|
1836
1836
|
};
|
|
@@ -1855,7 +1855,7 @@ function Uu(e, n, t) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
var Zt = function(n, t) {
|
|
1857
1857
|
var l = xl({}, n, t.attrs);
|
|
1858
|
-
return
|
|
1858
|
+
return q(Z, xl({}, l, {
|
|
1859
1859
|
icon: Iu
|
|
1860
1860
|
}), null);
|
|
1861
1861
|
};
|
|
@@ -1880,7 +1880,7 @@ function Wu(e, n, t) {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
var Kt = function(n, t) {
|
|
1882
1882
|
var l = Cl({}, n, t.attrs);
|
|
1883
|
-
return
|
|
1883
|
+
return q(Z, Cl({}, l, {
|
|
1884
1884
|
icon: Yu
|
|
1885
1885
|
}), null);
|
|
1886
1886
|
};
|
|
@@ -1905,7 +1905,7 @@ function Xu(e, n, t) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
var en = function(n, t) {
|
|
1907
1907
|
var l = Pl({}, n, t.attrs);
|
|
1908
|
-
return
|
|
1908
|
+
return q(Z, Pl({}, l, {
|
|
1909
1909
|
icon: Qu
|
|
1910
1910
|
}), null);
|
|
1911
1911
|
};
|
|
@@ -1930,7 +1930,7 @@ function ts(e, n, t) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
var tn = function(n, t) {
|
|
1932
1932
|
var l = kl({}, n, t.attrs);
|
|
1933
|
-
return
|
|
1933
|
+
return q(Z, kl({}, l, {
|
|
1934
1934
|
icon: es
|
|
1935
1935
|
}), null);
|
|
1936
1936
|
};
|
|
@@ -1955,7 +1955,7 @@ function rs(e, n, t) {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
var nn = function(n, t) {
|
|
1957
1957
|
var l = Tl({}, n, t.attrs);
|
|
1958
|
-
return
|
|
1958
|
+
return q(Z, Tl({}, l, {
|
|
1959
1959
|
icon: ls
|
|
1960
1960
|
}), null);
|
|
1961
1961
|
};
|
|
@@ -1980,7 +1980,7 @@ function ss(e, n, t) {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
var an = function(n, t) {
|
|
1982
1982
|
var l = Al({}, n, t.attrs);
|
|
1983
|
-
return
|
|
1983
|
+
return q(Z, Al({}, l, {
|
|
1984
1984
|
icon: us
|
|
1985
1985
|
}), null);
|
|
1986
1986
|
};
|
|
@@ -2005,7 +2005,7 @@ function ps(e, n, t) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
var ln = function(n, t) {
|
|
2007
2007
|
var l = Ml({}, n, t.attrs);
|
|
2008
|
-
return
|
|
2008
|
+
return q(Z, Ml({}, l, {
|
|
2009
2009
|
icon: fs
|
|
2010
2010
|
}), null);
|
|
2011
2011
|
};
|
|
@@ -2030,7 +2030,7 @@ function hs(e, n, t) {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
var rn = function(n, t) {
|
|
2032
2032
|
var l = $l({}, n, t.attrs);
|
|
2033
|
-
return
|
|
2033
|
+
return q(Z, $l({}, l, {
|
|
2034
2034
|
icon: vs
|
|
2035
2035
|
}), null);
|
|
2036
2036
|
};
|
|
@@ -2055,7 +2055,7 @@ function _s(e, n, t) {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
var on = function(n, t) {
|
|
2057
2057
|
var l = Vl({}, n, t.attrs);
|
|
2058
|
-
return
|
|
2058
|
+
return q(Z, Vl({}, l, {
|
|
2059
2059
|
icon: Ss
|
|
2060
2060
|
}), null);
|
|
2061
2061
|
};
|
|
@@ -2080,7 +2080,7 @@ function Cs(e, n, t) {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
var un = function(n, t) {
|
|
2082
2082
|
var l = zl({}, n, t.attrs);
|
|
2083
|
-
return
|
|
2083
|
+
return q(Z, zl({}, l, {
|
|
2084
2084
|
icon: xs
|
|
2085
2085
|
}), null);
|
|
2086
2086
|
};
|
|
@@ -2091,7 +2091,7 @@ const Ps = un, ks = (e) => {
|
|
|
2091
2091
|
n.style.display = "none", n.style.height = "0", n.src = e, document.body.appendChild(n), setTimeout(() => {
|
|
2092
2092
|
n.remove();
|
|
2093
2093
|
}, 3e4);
|
|
2094
|
-
},
|
|
2094
|
+
}, it = (e, n, t) => {
|
|
2095
2095
|
const l = t ? Ve("span", {}, [
|
|
2096
2096
|
Ve("span", ""),
|
|
2097
2097
|
Ve(
|
|
@@ -2107,7 +2107,7 @@ const Ps = un, ks = (e) => {
|
|
|
2107
2107
|
]) : e;
|
|
2108
2108
|
to.confirm({
|
|
2109
2109
|
title: "操作确认",
|
|
2110
|
-
icon:
|
|
2110
|
+
icon: q(vu),
|
|
2111
2111
|
content: l,
|
|
2112
2112
|
okText: "确认",
|
|
2113
2113
|
cancelText: "取消",
|
|
@@ -2118,7 +2118,7 @@ const Ps = un, ks = (e) => {
|
|
|
2118
2118
|
onCancel() {
|
|
2119
2119
|
}
|
|
2120
2120
|
});
|
|
2121
|
-
},
|
|
2121
|
+
}, X = (e, n) => e != null && e !== "" ? e : n, Ts = (e, n, t) => {
|
|
2122
2122
|
e ? (xt.success({
|
|
2123
2123
|
message: "操作成功",
|
|
2124
2124
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -2138,23 +2138,23 @@ const Ps = un, ks = (e) => {
|
|
|
2138
2138
|
}, De = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle", As = (e) => {
|
|
2139
2139
|
const n = /{([^}]+)}/g, t = e.match(n);
|
|
2140
2140
|
return t ? t.map((l) => l.slice(1, -1)) : [];
|
|
2141
|
-
},
|
|
2141
|
+
}, Je = async (e, n) => T.requestPlugin != null && typeof T.requestPlugin == "function" ? await T.requestPlugin(e, n) : (pt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null), sn = async (e, n, t) => {
|
|
2142
2142
|
const l = Vt(e, t.dictType);
|
|
2143
2143
|
if (s(l))
|
|
2144
2144
|
return l;
|
|
2145
2145
|
{
|
|
2146
|
-
const a = await
|
|
2146
|
+
const a = await Je(n, t);
|
|
2147
2147
|
return a.success && a.data && a.data.length > 0 ? ($t(e, t.dictType, a.data), a.data) : [];
|
|
2148
2148
|
}
|
|
2149
2149
|
}, Ie = async (e, n) => {
|
|
2150
|
-
const t = await
|
|
2150
|
+
const t = await Je(e, n);
|
|
2151
2151
|
return t.success && t.data && t.data.length > 0 ? t.data : [];
|
|
2152
2152
|
}, _r = async (e, n, t, l) => {
|
|
2153
2153
|
const a = s(l) ? Vt(t, l) : [];
|
|
2154
2154
|
if (s(a))
|
|
2155
2155
|
return a;
|
|
2156
2156
|
{
|
|
2157
|
-
const r = await
|
|
2157
|
+
const r = await Je(e, n);
|
|
2158
2158
|
return r.success && r.data && r.data.length > 0 ? ($t(t, l, r.data), r.data) : [];
|
|
2159
2159
|
}
|
|
2160
2160
|
}, Or = (e, n) => {
|
|
@@ -2175,7 +2175,7 @@ const Ps = un, ks = (e) => {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
return null;
|
|
2177
2177
|
}, jl = (e, n, t, l, a = !1) => {
|
|
2178
|
-
n.loading = !0,
|
|
2178
|
+
n.loading = !0, Je(t, l).then((r) => {
|
|
2179
2179
|
if (n.loading = !1, (T.messageResp || r.success) && Ts(r.success, r.message), r.success || a) {
|
|
2180
2180
|
const o = e.value;
|
|
2181
2181
|
o && o.commitProxy("query");
|
|
@@ -2188,14 +2188,14 @@ function Ms(e) {
|
|
|
2188
2188
|
const { gridRef: n, targetModal: t, gridOptions: l, pageOptions: a, formData: r, pageModal: o } = e, i = async (p) => {
|
|
2189
2189
|
if (!s(p.requestType) || typeof p.requestType == "string")
|
|
2190
2190
|
if (p.requestType === "custom") {
|
|
2191
|
-
const m = await
|
|
2191
|
+
const m = await x(p);
|
|
2192
2192
|
if (p.requestRow && !s(m))
|
|
2193
2193
|
return;
|
|
2194
2194
|
a.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: r, item: p, data: m });
|
|
2195
2195
|
} else
|
|
2196
2196
|
f(r, p);
|
|
2197
2197
|
else {
|
|
2198
|
-
const m = await
|
|
2198
|
+
const m = await x(p);
|
|
2199
2199
|
if (p.requestRow && !s(m))
|
|
2200
2200
|
return;
|
|
2201
2201
|
p.requestType({ gridRef: n, gridOptions: l, formData: r, item: p, data: m });
|
|
@@ -2203,77 +2203,77 @@ function Ms(e) {
|
|
|
2203
2203
|
}, u = (p, m) => {
|
|
2204
2204
|
!s(p.requestType) || typeof p.requestType == "string" ? p.requestType === "custom" ? a.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: r, item: p, row: m }) : g(p, m) : p.requestType({ gridRef: n, gridOptions: l, formData: r, item: p, row: m });
|
|
2205
2205
|
}, c = (p, m) => {
|
|
2206
|
-
const
|
|
2207
|
-
!s(
|
|
2206
|
+
const C = m.params.requestType;
|
|
2207
|
+
!s(C) || typeof C == "string" ? C === "custom" ? a.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: r, column: m, row: p }) : d(p, m) : C({ gridRef: n, gridOptions: l, formData: r, column: m, row: p });
|
|
2208
2208
|
}, d = (p, m) => {
|
|
2209
|
-
if (t.title =
|
|
2210
|
-
let
|
|
2211
|
-
for (const
|
|
2212
|
-
|
|
2213
|
-
t.componentUrl =
|
|
2209
|
+
if (t.title = X(m.params.title, o.title), t.width = X(m.params.width, o.width), t.height = X(m.params.height, o.height), t.maximize = X(m.params.maximize, !1), t.autoLoad = X(m.params.autoLoad, !1), t.componentType = X(m.params.componentType, o.componentType), t.componentUrl = m.params.requestUrl, t.componentType === "iframe") {
|
|
2210
|
+
let C = ae(a.ctxPath, t.componentUrl);
|
|
2211
|
+
for (const S in p)
|
|
2212
|
+
C = C.replace("{" + S + "}", p[S]);
|
|
2213
|
+
t.componentUrl = C;
|
|
2214
2214
|
} else
|
|
2215
2215
|
p[T.buttonKeyName] = m.params;
|
|
2216
2216
|
t.componentParams = p, t.visible = !0;
|
|
2217
2217
|
}, f = async (p, m) => {
|
|
2218
2218
|
if (n.value) {
|
|
2219
|
-
const
|
|
2220
|
-
if (m.requestRow && !s(
|
|
2219
|
+
const S = await x(m);
|
|
2220
|
+
if (m.requestRow && !s(S))
|
|
2221
2221
|
return;
|
|
2222
2222
|
if (m.requestType === "modal" || m.requestType === "open") {
|
|
2223
2223
|
let b = m.requestUrl;
|
|
2224
|
-
const
|
|
2225
|
-
if ((
|
|
2224
|
+
const w = X(m.componentType, o.componentType);
|
|
2225
|
+
if ((w === "iframe" || m.requestType === "open") && (b = ae(a.ctxPath, b), m.requestRow && b.split("?").length > 1)) {
|
|
2226
2226
|
const v = As(b.split("?")[1]);
|
|
2227
|
-
for (const
|
|
2228
|
-
const
|
|
2227
|
+
for (const y in v) {
|
|
2228
|
+
const k = v[y];
|
|
2229
2229
|
if (l.checkboxConfig) {
|
|
2230
|
-
let
|
|
2231
|
-
for (const
|
|
2232
|
-
for (const
|
|
2233
|
-
|
|
2234
|
-
let
|
|
2235
|
-
for (const
|
|
2236
|
-
|
|
2237
|
-
b = b.replace("{" +
|
|
2230
|
+
let j = [];
|
|
2231
|
+
for (const U in S)
|
|
2232
|
+
for (const Q in S[U])
|
|
2233
|
+
Q === k && S[U][Q] && (j[S[U][Q]] = S[U][Q]);
|
|
2234
|
+
let I = "";
|
|
2235
|
+
for (const U in j)
|
|
2236
|
+
I = (I ? I + "," : "") + U;
|
|
2237
|
+
b = b.replace("{" + k + "}", I);
|
|
2238
2238
|
} else
|
|
2239
|
-
b = b.replace("{" +
|
|
2239
|
+
b = b.replace("{" + k + "}", S[k]);
|
|
2240
2240
|
}
|
|
2241
2241
|
}
|
|
2242
2242
|
if (m.requestType === "modal") {
|
|
2243
|
-
if (t.title =
|
|
2243
|
+
if (t.title = X(m.title, o.title), t.width = X(m.width, o.width), t.height = X(m.height, o.height), t.maximize = X(m.maximize, !1), t.autoLoad = X(m.autoLoad, !0), t.componentType = w, t.componentUrl = b, t.componentParams = {}, m.requestRow)
|
|
2244
2244
|
if (l.checkboxConfig)
|
|
2245
2245
|
if (m.requestRadio)
|
|
2246
|
-
|
|
2246
|
+
S[0][T.buttonKeyName] = m, t.componentParams = S[0];
|
|
2247
2247
|
else {
|
|
2248
2248
|
const v = {};
|
|
2249
|
-
v[T.buttonKeyName] = m, v._X_ROWS =
|
|
2249
|
+
v[T.buttonKeyName] = m, v._X_ROWS = S, t.componentParams = v;
|
|
2250
2250
|
}
|
|
2251
2251
|
else
|
|
2252
|
-
|
|
2252
|
+
S[T.buttonKeyName] = m, t.componentParams = S;
|
|
2253
2253
|
else
|
|
2254
2254
|
t.componentParams[T.buttonKeyName] = m;
|
|
2255
2255
|
t.visible = !0;
|
|
2256
2256
|
} else
|
|
2257
2257
|
window.open(b, "_blank");
|
|
2258
2258
|
} else
|
|
2259
|
-
|
|
2259
|
+
it(
|
|
2260
2260
|
m.requestTitle,
|
|
2261
2261
|
() => {
|
|
2262
2262
|
let b = ae(a.ctxPath, m.requestUrl);
|
|
2263
2263
|
if (b.split("?").length > 1) {
|
|
2264
2264
|
if (l.radioConfig)
|
|
2265
|
-
for (const
|
|
2266
|
-
b = b.replace("{" +
|
|
2265
|
+
for (const w in S)
|
|
2266
|
+
b = b.replace("{" + w + "}", S[w]);
|
|
2267
2267
|
else if (l.checkboxConfig && m.requestRadio)
|
|
2268
|
-
for (const
|
|
2269
|
-
b = b.replace("{" +
|
|
2268
|
+
for (const w in S[0])
|
|
2269
|
+
b = b.replace("{" + w + "}", S[0][w]);
|
|
2270
2270
|
}
|
|
2271
2271
|
jl(
|
|
2272
2272
|
n,
|
|
2273
2273
|
l,
|
|
2274
2274
|
b,
|
|
2275
|
-
m.requestRow ?
|
|
2276
|
-
!!(l.checkboxConfig && m.requestRow &&
|
|
2275
|
+
m.requestRow ? S : p,
|
|
2276
|
+
!!(l.checkboxConfig && m.requestRow && S.length !== 1)
|
|
2277
2277
|
);
|
|
2278
2278
|
},
|
|
2279
2279
|
m.requestConfirmContent
|
|
@@ -2281,45 +2281,45 @@ function Ms(e) {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
}, g = (p, m) => {
|
|
2283
2283
|
if (p.requestType === "modal" || p.requestType === "open") {
|
|
2284
|
-
let
|
|
2285
|
-
const
|
|
2284
|
+
let C = p.requestUrl;
|
|
2285
|
+
const S = X(p.componentType, o.componentType);
|
|
2286
2286
|
let b = !1;
|
|
2287
|
-
if (
|
|
2288
|
-
if (
|
|
2289
|
-
for (const
|
|
2290
|
-
if (
|
|
2287
|
+
if (S === "iframe")
|
|
2288
|
+
if (C = ae(a.ctxPath, C), C.split("?").length > 1)
|
|
2289
|
+
for (const w in m) {
|
|
2290
|
+
if (C.indexOf("{" + w + "}") > -1 && (b = !0, m[w] === "")) {
|
|
2291
2291
|
Ee("该单据没有相应数据,无法进行本次操作");
|
|
2292
2292
|
return;
|
|
2293
2293
|
}
|
|
2294
|
-
|
|
2294
|
+
C = C.replace("{" + w + "}", m[w]);
|
|
2295
2295
|
}
|
|
2296
2296
|
else
|
|
2297
2297
|
b = !0;
|
|
2298
2298
|
else
|
|
2299
2299
|
b = !0;
|
|
2300
2300
|
if (b)
|
|
2301
|
-
p.requestType === "modal" ? (m[T.buttonKeyName] = p, t.title =
|
|
2301
|
+
p.requestType === "modal" ? (m[T.buttonKeyName] = p, t.title = X(p.title, o.title), t.width = X(p.width, o.width), t.height = X(p.height, o.height), t.maximize = X(p.maximize, !1), t.autoLoad = X(p.autoLoad, !0), t.componentType = S, t.componentUrl = C, t.componentParams = m, t.visible = !0) : window.open(C, "_blank");
|
|
2302
2302
|
else {
|
|
2303
2303
|
Ee("该单据没有相应数据,无法进行本次操作");
|
|
2304
2304
|
return;
|
|
2305
2305
|
}
|
|
2306
2306
|
} else
|
|
2307
|
-
|
|
2307
|
+
it(
|
|
2308
2308
|
p.requestTitle,
|
|
2309
2309
|
() => {
|
|
2310
|
-
let
|
|
2311
|
-
for (const
|
|
2312
|
-
|
|
2313
|
-
jl(n, l,
|
|
2310
|
+
let C = ae(a.ctxPath, p.requestUrl);
|
|
2311
|
+
for (const S in m)
|
|
2312
|
+
C = C.replace("{" + S + "}", m[S]);
|
|
2313
|
+
jl(n, l, C, m);
|
|
2314
2314
|
},
|
|
2315
2315
|
p.requestConfirmContent
|
|
2316
2316
|
);
|
|
2317
|
-
},
|
|
2317
|
+
}, x = async (p) => {
|
|
2318
2318
|
if (p.requestRow) {
|
|
2319
2319
|
const m = await Or(n, l);
|
|
2320
|
-
let
|
|
2321
|
-
if (l.checkboxConfig ? !m || m.length === 0 ?
|
|
2322
|
-
Ee(
|
|
2320
|
+
let C = null;
|
|
2321
|
+
if (l.checkboxConfig ? !m || m.length === 0 ? C = "请至少选择一行数据" : p.requestRadio && m.length !== 1 && (C = "请只选择一条数据") : l.radioConfig ? m || (C = "请选择一行数据") : C = "请设置表格【rowType】类型参数", C) {
|
|
2322
|
+
Ee(C);
|
|
2323
2323
|
return;
|
|
2324
2324
|
}
|
|
2325
2325
|
return m;
|
|
@@ -2348,9 +2348,9 @@ function $s(e) {
|
|
|
2348
2348
|
} = e;
|
|
2349
2349
|
return {
|
|
2350
2350
|
downloadEvent: (m) => {
|
|
2351
|
-
const
|
|
2352
|
-
|
|
2353
|
-
if (!
|
|
2351
|
+
const C = n.value;
|
|
2352
|
+
C && C.validate().then((S) => {
|
|
2353
|
+
if (!S || S.length === 0) {
|
|
2354
2354
|
let b = f.requestDownload;
|
|
2355
2355
|
if (s(b)) {
|
|
2356
2356
|
if (a.loading) {
|
|
@@ -2361,8 +2361,8 @@ function $s(e) {
|
|
|
2361
2361
|
Ee("合并列模式请设置requestDownload参数为表格列格式");
|
|
2362
2362
|
return;
|
|
2363
2363
|
}
|
|
2364
|
-
|
|
2365
|
-
const
|
|
2364
|
+
it("确定要导出表格所有内容吗?", () => {
|
|
2365
|
+
const w = no.loading(
|
|
2366
2366
|
{
|
|
2367
2367
|
content: () => "下载中,请稍后... 不要连续点击下载",
|
|
2368
2368
|
style: {
|
|
@@ -2371,55 +2371,55 @@ function $s(e) {
|
|
|
2371
2371
|
},
|
|
2372
2372
|
0
|
|
2373
2373
|
);
|
|
2374
|
-
setTimeout(
|
|
2374
|
+
setTimeout(w, 2e3);
|
|
2375
2375
|
const v = l.value;
|
|
2376
2376
|
if (v) {
|
|
2377
|
-
const { filter:
|
|
2377
|
+
const { filter: y, form: k, sort: j } = v.getProxyInfo(), U = Ct({
|
|
2378
2378
|
currentPage: 1,
|
|
2379
2379
|
pageSize: 25e3
|
|
2380
|
-
},
|
|
2380
|
+
}, j, y, k, t, o);
|
|
2381
2381
|
if (typeof b == "string") {
|
|
2382
2382
|
b = ae(u.ctxPath, f.requestDownload);
|
|
2383
|
-
let
|
|
2384
|
-
Object.keys(
|
|
2385
|
-
s(
|
|
2386
|
-
}), re("导出表格参数", [b,
|
|
2383
|
+
let Q = "";
|
|
2384
|
+
Object.keys(U).forEach((D) => {
|
|
2385
|
+
s(U[D]) && (typeof U[D] == "string" && (Q += "&" + D + "=" + U[D]), typeof U[D] == "object" && Array.isArray(U[D]) && (Q += "&" + D + "=" + U[D].join(",")));
|
|
2386
|
+
}), re("导出表格参数", [b, Q]), ks(b + Q);
|
|
2387
2387
|
} else
|
|
2388
|
-
a.loading = !0,
|
|
2389
|
-
if (
|
|
2388
|
+
a.loading = !0, U.exportFlag = !0, r(U, f.requestData, !0).then(async (Q) => {
|
|
2389
|
+
if (Q == null || Q.rows.length == 0) {
|
|
2390
2390
|
a.loading = !1;
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
|
-
if (
|
|
2393
|
+
if (Q.recordCount >= 25e3) {
|
|
2394
2394
|
a.loading = !1, Ee("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2395
2395
|
return;
|
|
2396
2396
|
}
|
|
2397
2397
|
setTimeout(() => {
|
|
2398
2398
|
if (m && typeof m == "function") {
|
|
2399
|
-
const
|
|
2399
|
+
const D = {
|
|
2400
2400
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2401
2401
|
sheetName: u.templateTitle,
|
|
2402
|
-
data:
|
|
2402
|
+
data: Q.rows,
|
|
2403
2403
|
columns: s(a.params.exportColumns) ? a.params.exportColumns : b,
|
|
2404
|
-
mergeCells: i(
|
|
2404
|
+
mergeCells: i(Q.rows)
|
|
2405
2405
|
};
|
|
2406
|
-
m(
|
|
2406
|
+
m(D), a.loading = !1;
|
|
2407
2407
|
} else {
|
|
2408
|
-
const
|
|
2408
|
+
const D = Q.rows.concat([]), ue = {
|
|
2409
2409
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2410
2410
|
sheetName: u.templateTitle,
|
|
2411
2411
|
type: "xlsx",
|
|
2412
|
-
data:
|
|
2412
|
+
data: D,
|
|
2413
2413
|
message: !1,
|
|
2414
2414
|
columns: s(a.params.exportColumns) ? a.params.exportColumns : a.columns,
|
|
2415
2415
|
isFooter: d.isFooter,
|
|
2416
2416
|
isMerge: d.isMerge,
|
|
2417
2417
|
columnFilterMethod(ve) {
|
|
2418
|
-
var
|
|
2419
|
-
return !T.templateTable.ignoreExportColumnsTitle.includes((
|
|
2418
|
+
var Ce;
|
|
2419
|
+
return !T.templateTable.ignoreExportColumnsTitle.includes((Ce = ve == null ? void 0 : ve.column) == null ? void 0 : Ce.title);
|
|
2420
2420
|
}
|
|
2421
2421
|
};
|
|
2422
|
-
re("导出参数",
|
|
2422
|
+
re("导出参数", ue), v.exportData(ue).then(() => {
|
|
2423
2423
|
a.loading = !1;
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
@@ -2440,57 +2440,57 @@ function $s(e) {
|
|
|
2440
2440
|
!1
|
|
2441
2441
|
) : window.open(ae(u.ctxPath, f.requestImport), "_blank");
|
|
2442
2442
|
},
|
|
2443
|
-
switchColumsEvent: (m,
|
|
2443
|
+
switchColumsEvent: (m, C = !1) => {
|
|
2444
2444
|
if (s(c.tableColumnsExtra)) {
|
|
2445
|
-
const
|
|
2446
|
-
if (
|
|
2447
|
-
const
|
|
2448
|
-
s(
|
|
2445
|
+
const S = c.tableColumns, b = c.tableColumnsExtra;
|
|
2446
|
+
if (C) {
|
|
2447
|
+
const w = io(m, u.templateType);
|
|
2448
|
+
s(w) ? (a.params.switchType = w.switchType, a.columns = w.switchType === "1" ? S : b, a.showOverflow = w.switchShowOverflow) : (a.params.switchType = "1", a.columns = S, a.showOverflow = X(c.showOverflow, !0));
|
|
2449
2449
|
} else
|
|
2450
|
-
a.params.switchType = a.params.switchType === "1" ? "2" : "1", a.columns = a.params.switchType === "2" ? b :
|
|
2450
|
+
a.params.switchType = a.params.switchType === "1" ? "2" : "1", a.columns = a.params.switchType === "2" ? b : S, a.showOverflow = !a.showOverflow, oo(m, u.templateType, {
|
|
2451
2451
|
switchType: a.params.switchType,
|
|
2452
2452
|
switchShowOverflow: a.showOverflow
|
|
2453
2453
|
});
|
|
2454
2454
|
} else
|
|
2455
2455
|
a.params.switchType = "2", a.columns = c.tableColumns;
|
|
2456
|
-
|
|
2456
|
+
rt(() => {
|
|
2457
2457
|
a.height = a.params.switchType === "2" ? a.height + 1 : a.height - 1;
|
|
2458
2458
|
});
|
|
2459
2459
|
}
|
|
2460
2460
|
};
|
|
2461
2461
|
}
|
|
2462
|
-
const je = /* @__PURE__ */
|
|
2462
|
+
const je = /* @__PURE__ */ Y({
|
|
2463
2463
|
__name: "AntdOutlind",
|
|
2464
2464
|
props: {
|
|
2465
2465
|
icon: { type: String, default: null }
|
|
2466
2466
|
},
|
|
2467
2467
|
setup(e) {
|
|
2468
2468
|
const n = e;
|
|
2469
|
-
return (t, l) => (
|
|
2470
|
-
n.icon === "user" ? (
|
|
2471
|
-
n.icon === "excel" ? (
|
|
2472
|
-
n.icon === "download" ? (
|
|
2473
|
-
n.icon === "save" ? (
|
|
2474
|
-
n.icon === "edit" ? (
|
|
2475
|
-
n.icon === "delete" ? (
|
|
2476
|
-
n.icon === "down" ? (
|
|
2477
|
-
n.icon === "up" ? (
|
|
2478
|
-
n.icon === "undo" ? (
|
|
2479
|
-
n.icon === "redo" ? (
|
|
2480
|
-
n.icon === "copy" ? (
|
|
2481
|
-
n.icon === "print" ? (
|
|
2482
|
-
n.icon === "plus" ? (
|
|
2483
|
-
n.icon === "minus" ? (
|
|
2484
|
-
n.icon === "info" ? (
|
|
2485
|
-
n.icon === "audit" ? (
|
|
2486
|
-
n.icon === "schedule" ? (
|
|
2487
|
-
n.icon === "close" ? (
|
|
2488
|
-
n.icon === "stop" ? (
|
|
2489
|
-
n.icon === "check" ? (
|
|
2490
|
-
n.icon === "setting" ? (
|
|
2491
|
-
n.icon === "menu" ? (
|
|
2492
|
-
n.icon === "pdf" ? (
|
|
2493
|
-
!n.icon || n.icon === "" ? (
|
|
2469
|
+
return (t, l) => (O(), F(we, null, [
|
|
2470
|
+
n.icon === "user" ? (O(), z(_(Ps), { key: 0 })) : R("", !0),
|
|
2471
|
+
n.icon === "excel" ? (O(), z(_(Su), { key: 1 })) : R("", !0),
|
|
2472
|
+
n.icon === "download" ? (O(), z(_(uu), { key: 2 })) : R("", !0),
|
|
2473
|
+
n.icon === "save" ? (O(), z(_(ns), { key: 3 })) : R("", !0),
|
|
2474
|
+
n.icon === "edit" ? (O(), z(_(fu), { key: 4 })) : R("", !0),
|
|
2475
|
+
n.icon === "delete" ? (O(), z(_(tu), { key: 5 })) : R("", !0),
|
|
2476
|
+
n.icon === "down" ? (O(), z(_(Sr), { key: 6 })) : R("", !0),
|
|
2477
|
+
n.icon === "up" ? (O(), z(_(Os), { key: 7 })) : R("", !0),
|
|
2478
|
+
n.icon === "undo" ? (O(), z(_(bs), { key: 8 })) : R("", !0),
|
|
2479
|
+
n.icon === "redo" ? (O(), z(_(Zu), { key: 9 })) : R("", !0),
|
|
2480
|
+
n.icon === "copy" ? (O(), z(_(Xi), { key: 10 })) : R("", !0),
|
|
2481
|
+
n.icon === "print" ? (O(), z(_(Gu), { key: 11 })) : R("", !0),
|
|
2482
|
+
n.icon === "plus" ? (O(), z(_(Fu), { key: 12 })) : R("", !0),
|
|
2483
|
+
n.icon === "minus" ? (O(), z(_(Bu), { key: 13 })) : R("", !0),
|
|
2484
|
+
n.icon === "info" ? (O(), z(_(Vu), { key: 14 })) : R("", !0),
|
|
2485
|
+
n.icon === "audit" ? (O(), z(_(Ei), { key: 15 })) : R("", !0),
|
|
2486
|
+
n.icon === "schedule" ? (O(), z(_(os), { key: 16 })) : R("", !0),
|
|
2487
|
+
n.icon === "close" ? (O(), z(_(Wi), { key: 17 })) : R("", !0),
|
|
2488
|
+
n.icon === "stop" ? (O(), z(_(ms), { key: 18 })) : R("", !0),
|
|
2489
|
+
n.icon === "check" ? (O(), z(_(Ui), { key: 19 })) : R("", !0),
|
|
2490
|
+
n.icon === "setting" ? (O(), z(_(cs), { key: 20 })) : R("", !0),
|
|
2491
|
+
n.icon === "menu" ? (O(), z(_(Du), { key: 21 })) : R("", !0),
|
|
2492
|
+
n.icon === "pdf" ? (O(), z(_(xu), { key: 22 })) : R("", !0),
|
|
2493
|
+
!n.icon || n.icon === "" ? (O(), z(_(Tu), { key: 23 })) : R("", !0)
|
|
2494
2494
|
], 64));
|
|
2495
2495
|
}
|
|
2496
2496
|
});
|
|
@@ -2515,15 +2515,15 @@ var Vs = { exports: {} };
|
|
|
2515
2515
|
return a.default.locale(r, null, !0), r;
|
|
2516
2516
|
});
|
|
2517
2517
|
})(Vs);
|
|
2518
|
-
function
|
|
2519
|
-
return
|
|
2518
|
+
function ut() {
|
|
2519
|
+
return ut = Object.assign ? Object.assign.bind() : function(e) {
|
|
2520
2520
|
for (var n = 1; n < arguments.length; n++) {
|
|
2521
2521
|
var t = arguments[n];
|
|
2522
2522
|
for (var l in t)
|
|
2523
2523
|
({}).hasOwnProperty.call(t, l) && (e[l] = t[l]);
|
|
2524
2524
|
}
|
|
2525
2525
|
return e;
|
|
2526
|
-
},
|
|
2526
|
+
}, ut.apply(null, arguments);
|
|
2527
2527
|
}
|
|
2528
2528
|
const zs = {
|
|
2529
2529
|
locale: "zh_CN",
|
|
@@ -2556,7 +2556,7 @@ const zs = {
|
|
|
2556
2556
|
placeholder: "请选择时间",
|
|
2557
2557
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
2558
2558
|
}, Ds = qs, xr = {
|
|
2559
|
-
lang:
|
|
2559
|
+
lang: ut({
|
|
2560
2560
|
placeholder: "请选择日期",
|
|
2561
2561
|
yearPlaceholder: "请选择年份",
|
|
2562
2562
|
quarterPlaceholder: "请选择季度",
|
|
@@ -2568,10 +2568,10 @@ const zs = {
|
|
|
2568
2568
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
2569
2569
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
2570
2570
|
}, js),
|
|
2571
|
-
timePickerLocale:
|
|
2571
|
+
timePickerLocale: ut({}, Ds)
|
|
2572
2572
|
};
|
|
2573
2573
|
xr.lang.ok = "确定";
|
|
2574
|
-
const
|
|
2574
|
+
const mt = xr;
|
|
2575
2575
|
var Cr = { exports: {} };
|
|
2576
2576
|
(function(e, n) {
|
|
2577
2577
|
(function(t, l) {
|
|
@@ -2595,22 +2595,22 @@ var Pr = { exports: {} };
|
|
|
2595
2595
|
return function(t, l, a) {
|
|
2596
2596
|
var r = l.prototype, o = function(f) {
|
|
2597
2597
|
return f && (f.indexOf ? f : f.s);
|
|
2598
|
-
}, i = function(f, g,
|
|
2599
|
-
var
|
|
2600
|
-
return
|
|
2598
|
+
}, i = function(f, g, x, p, m) {
|
|
2599
|
+
var C = f.name ? f : f.$locale(), S = o(C[g]), b = o(C[x]), w = S || b.map(function(y) {
|
|
2600
|
+
return y.slice(0, p);
|
|
2601
2601
|
});
|
|
2602
2602
|
if (!m)
|
|
2603
|
-
return
|
|
2604
|
-
var v =
|
|
2605
|
-
return
|
|
2606
|
-
return
|
|
2603
|
+
return w;
|
|
2604
|
+
var v = C.weekStart;
|
|
2605
|
+
return w.map(function(y, k) {
|
|
2606
|
+
return w[(k + (v || 0)) % 7];
|
|
2607
2607
|
});
|
|
2608
2608
|
}, u = function() {
|
|
2609
2609
|
return a.Ls[a.locale()];
|
|
2610
2610
|
}, c = function(f, g) {
|
|
2611
|
-
return f.formats[g] || function(
|
|
2612
|
-
return
|
|
2613
|
-
return m ||
|
|
2611
|
+
return f.formats[g] || function(x) {
|
|
2612
|
+
return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, m, C) {
|
|
2613
|
+
return m || C.slice(1);
|
|
2614
2614
|
});
|
|
2615
2615
|
}(f.formats[g.toUpperCase()]);
|
|
2616
2616
|
}, d = function() {
|
|
@@ -2665,7 +2665,7 @@ var Pr = { exports: {} };
|
|
|
2665
2665
|
});
|
|
2666
2666
|
})(Pr);
|
|
2667
2667
|
var Rs = Pr.exports;
|
|
2668
|
-
const
|
|
2668
|
+
const gt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONSTANT_PAGE_OPTIONS", Es = (e, n = "") => s(e) ? e : n, Bs = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0), At = (e, n) => (n = s(n) ? n : 2, s(e) ? `${Ge.commafy(Number(e), { digits: n })}` : e), Tr = (e) => fn(e, "yyyy-MM-dd"), Ar = (e) => fn(e, "yyyy-MM-dd HH:mm:ss"), fn = (e, n) => Ge.toDateString(e, n), lt = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, Ls = (e, n) => typeof n == "string" ? n === "number" ? At(e) : n === "date" ? Tr(e) : n === "datetime" ? Ar(e) : lt(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? At(e, n[1]) : lt(e, 200), $ = {
|
|
2669
2669
|
toString: Es,
|
|
2670
2670
|
toDateString: Tr,
|
|
2671
2671
|
toDatetimeString: Ar,
|
|
@@ -2673,8 +2673,8 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2673
2673
|
toNumber: Bs,
|
|
2674
2674
|
toMoney: At,
|
|
2675
2675
|
stringFormat: Ls,
|
|
2676
|
-
truncateFormat:
|
|
2677
|
-
}, Is = /* @__PURE__ */
|
|
2676
|
+
truncateFormat: lt
|
|
2677
|
+
}, Is = /* @__PURE__ */ Y({
|
|
2678
2678
|
__name: "AntdDateRange",
|
|
2679
2679
|
props: {
|
|
2680
2680
|
value: {
|
|
@@ -2689,7 +2689,7 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2689
2689
|
},
|
|
2690
2690
|
emits: ["update:value"],
|
|
2691
2691
|
setup(e, { expose: n, emit: t }) {
|
|
2692
|
-
M.locale("zh-cn"), M.extend(dn), M.extend(
|
|
2692
|
+
M.locale("zh-cn"), M.extend(dn), M.extend(gt);
|
|
2693
2693
|
const l = e, a = $.toString(l.picker, "date"), r = l.picker === "date" ? "day" : l.picker, o = $.toString(l.format, "YYYY-MM-DD"), i = ge(ye), u = De(i == null ? void 0 : i.size);
|
|
2694
2694
|
let c = V();
|
|
2695
2695
|
const d = [
|
|
@@ -2715,44 +2715,44 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2715
2715
|
{ label: "近两年", value: [M().add(-2, r)] },
|
|
2716
2716
|
{ label: "近三年", value: [M().add(-3, r)] },
|
|
2717
2717
|
{ label: "近五年", value: [M().add(-5, r)] }
|
|
2718
|
-
],
|
|
2719
|
-
re("日期区间选值",
|
|
2720
|
-
},
|
|
2721
|
-
let v = null,
|
|
2722
|
-
return c.value && c.value[0] && (v = M(c.value[0]).format(o)), c.value && c.value[1] && (
|
|
2723
|
-
},
|
|
2724
|
-
const
|
|
2725
|
-
typeof
|
|
2726
|
-
s(
|
|
2727
|
-
s(
|
|
2728
|
-
] : c.value = [s(
|
|
2718
|
+
], x = V(a === "year" ? g : a === "month" ? f : d), p = t, m = (v, y) => {
|
|
2719
|
+
re("日期区间选值", y), y && y[0] == "" && y[1] == "" ? p("update:value", null) : p("update:value", y);
|
|
2720
|
+
}, C = () => {
|
|
2721
|
+
let v = null, y = null;
|
|
2722
|
+
return c.value && c.value[0] && (v = M(c.value[0]).format(o)), c.value && c.value[1] && (y = M(c.value[1]).format(o)), !v && !y ? null : [v, y];
|
|
2723
|
+
}, S = (v) => {
|
|
2724
|
+
const y = v ? v[0] : null, k = v ? v[1] : null;
|
|
2725
|
+
typeof y == "number" || typeof k == "number" ? c.value = [
|
|
2726
|
+
s(y) ? M().add(y, r) : null,
|
|
2727
|
+
s(k) ? M().add(k, r) : null
|
|
2728
|
+
] : c.value = [s(y) ? M(y) : null, s(k) ? M(k) : null], p("update:value", C());
|
|
2729
2729
|
}, b = () => {
|
|
2730
|
-
s(l.defaultValue) ?
|
|
2731
|
-
},
|
|
2732
|
-
return
|
|
2730
|
+
s(l.defaultValue) ? S([l.defaultValue, null]) : S(null);
|
|
2731
|
+
}, w = () => "dateRange";
|
|
2732
|
+
return ie(() => {
|
|
2733
2733
|
b();
|
|
2734
2734
|
}), n({
|
|
2735
|
-
setValue:
|
|
2736
|
-
getValue:
|
|
2735
|
+
setValue: S,
|
|
2736
|
+
getValue: C,
|
|
2737
2737
|
resetValue: b,
|
|
2738
|
-
getRefType:
|
|
2739
|
-
}), (v,
|
|
2740
|
-
const
|
|
2741
|
-
return
|
|
2742
|
-
value:
|
|
2743
|
-
"onUpdate:value":
|
|
2738
|
+
getRefType: w
|
|
2739
|
+
}), (v, y) => {
|
|
2740
|
+
const k = L("a-range-picker");
|
|
2741
|
+
return O(), z(k, {
|
|
2742
|
+
value: _(c),
|
|
2743
|
+
"onUpdate:value": y[0] || (y[0] = (j) => st(c) ? c.value = j : c = j),
|
|
2744
2744
|
onChange: m,
|
|
2745
|
-
presets:
|
|
2746
|
-
locale:
|
|
2745
|
+
presets: x.value,
|
|
2746
|
+
locale: _(mt),
|
|
2747
2747
|
allowEmpty: [!0, !0],
|
|
2748
|
-
format:
|
|
2749
|
-
picker:
|
|
2750
|
-
size:
|
|
2748
|
+
format: _(o),
|
|
2749
|
+
picker: _(a),
|
|
2750
|
+
size: _(u),
|
|
2751
2751
|
style: { width: "100%" }
|
|
2752
2752
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2753
2753
|
};
|
|
2754
2754
|
}
|
|
2755
|
-
}), Us = /* @__PURE__ */
|
|
2755
|
+
}), Us = /* @__PURE__ */ Y({
|
|
2756
2756
|
__name: "AntdDatePicker",
|
|
2757
2757
|
props: {
|
|
2758
2758
|
value: {
|
|
@@ -2767,7 +2767,7 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2767
2767
|
},
|
|
2768
2768
|
emits: ["update:value"],
|
|
2769
2769
|
setup(e, { expose: n, emit: t }) {
|
|
2770
|
-
M.locale("zh-cn"), M.extend(dn), M.extend(
|
|
2770
|
+
M.locale("zh-cn"), M.extend(dn), M.extend(gt);
|
|
2771
2771
|
const l = e, a = ge(ye), r = De(a == null ? void 0 : a.size), o = $.toString(l.picker, "date"), i = $.toString(l.format, "YYYY-MM-DD"), u = t;
|
|
2772
2772
|
let c = V();
|
|
2773
2773
|
const d = (p, m) => {
|
|
@@ -2777,31 +2777,31 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2777
2777
|
return c.value && (p = M(c.value).format(i)), p || null;
|
|
2778
2778
|
}, g = (p) => {
|
|
2779
2779
|
typeof p == "number" ? c.value = s(p) ? M().add(p, o) : null : c.value = s(p) ? M(p) : null, u("update:value", f());
|
|
2780
|
-
},
|
|
2780
|
+
}, x = () => {
|
|
2781
2781
|
s(l.defaultValue) ? g(l.defaultValue) : g(null);
|
|
2782
2782
|
};
|
|
2783
|
-
return
|
|
2784
|
-
|
|
2783
|
+
return ie(() => {
|
|
2784
|
+
x();
|
|
2785
2785
|
}), n({
|
|
2786
2786
|
setValue: g,
|
|
2787
2787
|
getValue: f,
|
|
2788
|
-
resetValue:
|
|
2788
|
+
resetValue: x
|
|
2789
2789
|
}), (p, m) => {
|
|
2790
|
-
const
|
|
2791
|
-
return
|
|
2792
|
-
value:
|
|
2793
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
2790
|
+
const C = L("a-date-picker");
|
|
2791
|
+
return O(), z(C, {
|
|
2792
|
+
value: _(c),
|
|
2793
|
+
"onUpdate:value": m[0] || (m[0] = (S) => st(c) ? c.value = S : c = S),
|
|
2794
2794
|
onChange: d,
|
|
2795
|
-
locale:
|
|
2796
|
-
format:
|
|
2797
|
-
picker:
|
|
2798
|
-
size:
|
|
2795
|
+
locale: _(mt),
|
|
2796
|
+
format: _(i),
|
|
2797
|
+
picker: _(o),
|
|
2798
|
+
size: _(r),
|
|
2799
2799
|
allowClear: l.clearable,
|
|
2800
2800
|
style: { width: "100%" }
|
|
2801
2801
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
2804
|
-
}), Fs = /* @__PURE__ */
|
|
2804
|
+
}), Fs = /* @__PURE__ */ Y({
|
|
2805
2805
|
__name: "AntdInput",
|
|
2806
2806
|
props: {
|
|
2807
2807
|
value: { type: String, default: null },
|
|
@@ -2815,34 +2815,34 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2815
2815
|
},
|
|
2816
2816
|
emits: ["update:value"],
|
|
2817
2817
|
setup(e, { expose: n, emit: t }) {
|
|
2818
|
-
const l = e, a = ge(ye), r = De(a == null ? void 0 : a.size), o = V(null), i =
|
|
2818
|
+
const l = e, a = ge(ye), r = De(a == null ? void 0 : a.size), o = V(null), i = X(l.placeholder, "请输入" + l.title), u = t, c = () => {
|
|
2819
2819
|
u("update:value", o.value);
|
|
2820
2820
|
};
|
|
2821
2821
|
return n({
|
|
2822
2822
|
getValue: () => o.value,
|
|
2823
|
-
setValue: (
|
|
2824
|
-
o.value =
|
|
2823
|
+
setValue: (x) => {
|
|
2824
|
+
o.value = x, u("update:value", o.value);
|
|
2825
2825
|
},
|
|
2826
2826
|
resetValue: () => {
|
|
2827
2827
|
o.value = l.defaultValue || "", u("update:value", o.value);
|
|
2828
2828
|
}
|
|
2829
|
-
}),
|
|
2829
|
+
}), ie(() => {
|
|
2830
2830
|
u("update:value", o.value);
|
|
2831
|
-
}), (
|
|
2831
|
+
}), (x, p) => {
|
|
2832
2832
|
const m = L("a-input");
|
|
2833
|
-
return
|
|
2833
|
+
return O(), z(m, {
|
|
2834
2834
|
value: o.value,
|
|
2835
|
-
"onUpdate:value": p[0] || (p[0] = (
|
|
2836
|
-
placeholder:
|
|
2835
|
+
"onUpdate:value": p[0] || (p[0] = (C) => o.value = C),
|
|
2836
|
+
placeholder: _(i),
|
|
2837
2837
|
disabled: l.disabled,
|
|
2838
2838
|
type: l.inputType,
|
|
2839
2839
|
onChange: c,
|
|
2840
|
-
size:
|
|
2840
|
+
size: _(r),
|
|
2841
2841
|
style: { width: "100%" }
|
|
2842
2842
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2843
2843
|
};
|
|
2844
2844
|
}
|
|
2845
|
-
}), Hs = { class: "sag-vxe-page-ant-selectPull" }, Ys = /* @__PURE__ */
|
|
2845
|
+
}), Hs = { class: "sag-vxe-page-ant-selectPull" }, Ys = /* @__PURE__ */ Y({
|
|
2846
2846
|
__name: "AntdSelect",
|
|
2847
2847
|
props: {
|
|
2848
2848
|
value: { type: [String, Array, Object], default: null },
|
|
@@ -2861,27 +2861,27 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2861
2861
|
const l = e, a = ge(ye), r = (a == null ? void 0 : a.application) || "", o = (a == null ? void 0 : a.ctxPath) || "", i = (a == null ? void 0 : a.requestDictUrl) || "", u = De(a == null ? void 0 : a.size), c = V(l.multiple ? [] : null), d = t, f = V([]), g = async () => {
|
|
2862
2862
|
let b = l.request.requestUrl;
|
|
2863
2863
|
return !b && r && (b = i), b ? (b = ae(o, b), await sn(r, b, l.request)) : (re("下拉框插槽未获取到请求地址"), []);
|
|
2864
|
-
},
|
|
2864
|
+
}, x = (b, w) => w.label.toLowerCase().indexOf(b.toLowerCase()) >= 0, p = () => {
|
|
2865
2865
|
d("update:value", c.value);
|
|
2866
|
-
}, m = () => c.value,
|
|
2866
|
+
}, m = () => c.value, C = (b) => {
|
|
2867
2867
|
c.value = b, d("update:value", c.value);
|
|
2868
2868
|
};
|
|
2869
2869
|
return n({
|
|
2870
2870
|
getValue: m,
|
|
2871
|
-
setValue:
|
|
2871
|
+
setValue: C,
|
|
2872
2872
|
resetValue: () => {
|
|
2873
|
-
l.multiple ?
|
|
2873
|
+
l.multiple ? C(l.defaultValue || []) : C(l.defaultValue || null);
|
|
2874
2874
|
}
|
|
2875
|
-
}),
|
|
2875
|
+
}), ie(() => {
|
|
2876
2876
|
d("update:value", c.value), g().then((b) => {
|
|
2877
2877
|
f.value = b;
|
|
2878
2878
|
});
|
|
2879
|
-
}), (b,
|
|
2879
|
+
}), (b, w) => {
|
|
2880
2880
|
const v = L("a-select");
|
|
2881
|
-
return
|
|
2882
|
-
|
|
2881
|
+
return O(), F("div", Hs, [
|
|
2882
|
+
q(v, {
|
|
2883
2883
|
value: c.value,
|
|
2884
|
-
"onUpdate:value":
|
|
2884
|
+
"onUpdate:value": w[0] || (w[0] = (y) => c.value = y),
|
|
2885
2885
|
onChange: p,
|
|
2886
2886
|
placeholder: "--请选择--",
|
|
2887
2887
|
allowClear: l.clearable,
|
|
@@ -2889,17 +2889,17 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2889
2889
|
"max-tag-count": l.maxTagCount,
|
|
2890
2890
|
options: f.value,
|
|
2891
2891
|
"show-search": l.filterable,
|
|
2892
|
-
"filter-option":
|
|
2892
|
+
"filter-option": x,
|
|
2893
2893
|
defaultActiveFirstOption: !l.multiple,
|
|
2894
2894
|
autoClearSearchValue: !l.filterable,
|
|
2895
2895
|
disabled: l.disabled,
|
|
2896
|
-
size:
|
|
2896
|
+
size: _(u),
|
|
2897
2897
|
style: { width: "100%" }
|
|
2898
2898
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "disabled", "size"])
|
|
2899
2899
|
]);
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
2902
|
-
}), Ws = { class: "sag-vxe-page-ant-selectPull" }, Gs = /* @__PURE__ */
|
|
2902
|
+
}), Ws = { class: "sag-vxe-page-ant-selectPull" }, Gs = /* @__PURE__ */ Y({
|
|
2903
2903
|
__name: "AntdSelectPull",
|
|
2904
2904
|
props: {
|
|
2905
2905
|
value: { type: String, default: null },
|
|
@@ -2918,61 +2918,61 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2918
2918
|
},
|
|
2919
2919
|
emits: ["update:value"],
|
|
2920
2920
|
setup(e, { expose: n, emit: t }) {
|
|
2921
|
-
const l = e, a = ge(ye), r = (a == null ? void 0 : a.ctxPath) || "", o = De(a == null ? void 0 : a.size), i = "请输入" + l.title + "搜索", u = V(""), c = V(""), d = V([]), f = t, g = V(!1),
|
|
2921
|
+
const l = e, a = ge(ye), r = (a == null ? void 0 : a.ctxPath) || "", o = De(a == null ? void 0 : a.size), i = "请输入" + l.title + "搜索", u = V(""), c = V(""), d = V([]), f = t, g = V(!1), x = async (v) => {
|
|
2922
2922
|
if (d.value = [], v) {
|
|
2923
2923
|
g.value = !0;
|
|
2924
|
-
const
|
|
2925
|
-
searchValue:
|
|
2926
|
-
},
|
|
2924
|
+
const y = {
|
|
2925
|
+
searchValue: Me(v)
|
|
2926
|
+
}, k = await Ie(ae(r, l.requestUrl), {
|
|
2927
2927
|
...l.requestParams,
|
|
2928
|
-
...
|
|
2928
|
+
...y
|
|
2929
2929
|
});
|
|
2930
|
-
return g.value = !1,
|
|
2930
|
+
return g.value = !1, k;
|
|
2931
2931
|
} else
|
|
2932
2932
|
return [];
|
|
2933
2933
|
}, p = Mt((v) => {
|
|
2934
|
-
|
|
2935
|
-
d.value =
|
|
2934
|
+
x(v).then((y) => {
|
|
2935
|
+
d.value = y;
|
|
2936
2936
|
});
|
|
2937
2937
|
}, 500), m = (v) => {
|
|
2938
2938
|
u.value = v, f("update:value", v);
|
|
2939
|
-
},
|
|
2940
|
-
u.value = v, c.value =
|
|
2941
|
-
let
|
|
2942
|
-
|
|
2943
|
-
d.value =
|
|
2939
|
+
}, C = () => c.value, S = () => u.value, b = (v, y = null) => {
|
|
2940
|
+
u.value = v, c.value = y;
|
|
2941
|
+
let k = d.value.filter((j) => j.value === u.value);
|
|
2942
|
+
k.length === 1 ? c.value = k[0].label : x(v).then((j) => {
|
|
2943
|
+
d.value = j;
|
|
2944
2944
|
}), f("update:value", v);
|
|
2945
2945
|
};
|
|
2946
2946
|
return n({
|
|
2947
|
-
getName:
|
|
2948
|
-
getValue:
|
|
2947
|
+
getName: C,
|
|
2948
|
+
getValue: S,
|
|
2949
2949
|
setValue: b,
|
|
2950
2950
|
resetValue: () => {
|
|
2951
2951
|
b(l.defaultValue, l.defaultName);
|
|
2952
2952
|
}
|
|
2953
|
-
}), (v,
|
|
2954
|
-
const
|
|
2955
|
-
return
|
|
2956
|
-
j
|
|
2953
|
+
}), (v, y) => {
|
|
2954
|
+
const k = L("a-spin"), j = L("a-select");
|
|
2955
|
+
return O(), F("div", Ws, [
|
|
2956
|
+
q(j, {
|
|
2957
2957
|
value: u.value,
|
|
2958
|
-
"onUpdate:value":
|
|
2958
|
+
"onUpdate:value": y[0] || (y[0] = (I) => u.value = I),
|
|
2959
2959
|
placeholder: i,
|
|
2960
2960
|
disabled: l.disabled,
|
|
2961
2961
|
"filter-option": !1,
|
|
2962
2962
|
options: d.value,
|
|
2963
|
-
size:
|
|
2963
|
+
size: _(o),
|
|
2964
2964
|
"default-active-first-option": !1,
|
|
2965
2965
|
"show-arrow": !1,
|
|
2966
2966
|
onChange: m,
|
|
2967
|
-
onSearch:
|
|
2967
|
+
onSearch: _(p),
|
|
2968
2968
|
"allow-clear": "",
|
|
2969
2969
|
"show-search": "",
|
|
2970
2970
|
style: { width: "100%" }
|
|
2971
2971
|
}, qe({ _: 2 }, [
|
|
2972
2972
|
g.value ? {
|
|
2973
2973
|
name: "notFoundContent",
|
|
2974
|
-
fn:
|
|
2975
|
-
|
|
2974
|
+
fn: N(() => [
|
|
2975
|
+
q(k, { size: "small" })
|
|
2976
2976
|
]),
|
|
2977
2977
|
key: "0"
|
|
2978
2978
|
} : void 0
|
|
@@ -2980,7 +2980,7 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2980
2980
|
]);
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
|
-
}), Js = { class: "sag-vxe-page-ant-selectPull" }, Qs = /* @__PURE__ */
|
|
2983
|
+
}), Js = { class: "sag-vxe-page-ant-selectPull" }, Qs = /* @__PURE__ */ Y({
|
|
2984
2984
|
__name: "AntdSelectList",
|
|
2985
2985
|
props: {
|
|
2986
2986
|
value: { type: [String, Array, Object], default: null },
|
|
@@ -2999,41 +2999,41 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
2999
2999
|
},
|
|
3000
3000
|
emits: ["update:value"],
|
|
3001
3001
|
setup(e, { expose: n, emit: t }) {
|
|
3002
|
-
const l = e, a = ge(ye), r = (a == null ? void 0 : a.ctxPath) || "", o = De(a == null ? void 0 : a.size), i = "请输入" + l.title + "搜索", u = V(l.multiple ? [] : null), c = V(""), d = V([]), f = V([]), g = t,
|
|
3002
|
+
const l = e, a = ge(ye), r = (a == null ? void 0 : a.ctxPath) || "", o = De(a == null ? void 0 : a.size), i = "请输入" + l.title + "搜索", u = V(l.multiple ? [] : null), c = V(""), d = V([]), f = V([]), g = t, x = (v, y) => y.label.toLowerCase().indexOf(Me(v).toLowerCase()) >= 0, p = async () => await Ie(ae(r, l.requestUrl), l.requestParams), m = (v) => {
|
|
3003
3003
|
g("update:value", v);
|
|
3004
|
-
},
|
|
3004
|
+
}, C = () => c.value, S = () => u.value, b = (v) => {
|
|
3005
3005
|
u.value = v, g("update:value", u.value);
|
|
3006
|
-
let
|
|
3006
|
+
let y = f.value.filter((k) => k.value === u.value);
|
|
3007
3007
|
if (l.multiple) {
|
|
3008
|
-
let
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
}), c.value =
|
|
3008
|
+
let k = "";
|
|
3009
|
+
y.forEach((j) => {
|
|
3010
|
+
k += j.label + ",";
|
|
3011
|
+
}), c.value = k;
|
|
3012
3012
|
} else
|
|
3013
|
-
|
|
3013
|
+
y.length === 1 && (c.value = y[0].label);
|
|
3014
3014
|
};
|
|
3015
3015
|
return n({
|
|
3016
|
-
getName:
|
|
3017
|
-
getValue:
|
|
3016
|
+
getName: C,
|
|
3017
|
+
getValue: S,
|
|
3018
3018
|
setValue: b,
|
|
3019
3019
|
resetValue: () => {
|
|
3020
3020
|
l.multiple ? b(l.defaultValue || []) : b(l.defaultValue || null);
|
|
3021
3021
|
}
|
|
3022
3022
|
}), p().then((v) => {
|
|
3023
3023
|
f.value = v, d.value = v;
|
|
3024
|
-
}), (v,
|
|
3025
|
-
const
|
|
3026
|
-
return
|
|
3027
|
-
|
|
3024
|
+
}), (v, y) => {
|
|
3025
|
+
const k = L("a-select");
|
|
3026
|
+
return O(), F("div", Js, [
|
|
3027
|
+
q(k, {
|
|
3028
3028
|
value: u.value,
|
|
3029
|
-
"onUpdate:value":
|
|
3029
|
+
"onUpdate:value": y[0] || (y[0] = (j) => u.value = j),
|
|
3030
3030
|
placeholder: i,
|
|
3031
3031
|
disabled: l.disabled,
|
|
3032
3032
|
mode: l.multiple ? "multiple" : "",
|
|
3033
3033
|
defaultActiveFirstOption: !l.multiple,
|
|
3034
|
-
"filter-option":
|
|
3034
|
+
"filter-option": x,
|
|
3035
3035
|
options: d.value,
|
|
3036
|
-
size:
|
|
3036
|
+
size: _(o),
|
|
3037
3037
|
onChange: m,
|
|
3038
3038
|
"allow-clear": "",
|
|
3039
3039
|
"show-search": "",
|
|
@@ -3042,7 +3042,7 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
3042
3042
|
]);
|
|
3043
3043
|
};
|
|
3044
3044
|
}
|
|
3045
|
-
}), Xs = { class: "sag-vxe-page-ant-selectPull" }, Zs = /* @__PURE__ */
|
|
3045
|
+
}), Xs = { class: "sag-vxe-page-ant-selectPull" }, Zs = /* @__PURE__ */ Y({
|
|
3046
3046
|
__name: "AntdCascader",
|
|
3047
3047
|
props: {
|
|
3048
3048
|
value: { type: String, default: null },
|
|
@@ -3065,42 +3065,42 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
3065
3065
|
},
|
|
3066
3066
|
emits: ["update:value", "change"],
|
|
3067
3067
|
setup(e, { expose: n, emit: t }) {
|
|
3068
|
-
const l = e, a = ge(ye), r = (a == null ? void 0 : a.application) || "", o = (a == null ? void 0 : a.ctxPath) || "", i = De(a == null ? void 0 : a.size), u = "请输入" + l.title + "搜索", c = l.fieldNames.label, d = l.fieldNames.value, f = V([]), g = V([]),
|
|
3069
|
-
const
|
|
3068
|
+
const l = e, a = ge(ye), r = (a == null ? void 0 : a.application) || "", o = (a == null ? void 0 : a.ctxPath) || "", i = De(a == null ? void 0 : a.size), u = "请输入" + l.title + "搜索", c = l.fieldNames.label, d = l.fieldNames.value, f = V([]), g = V([]), x = async () => {
|
|
3069
|
+
const y = await _r(
|
|
3070
3070
|
ae(o, l.requestUrl),
|
|
3071
3071
|
l.requestParams,
|
|
3072
3072
|
r,
|
|
3073
3073
|
"CASCADER_" + l.cacheKey
|
|
3074
3074
|
);
|
|
3075
|
-
g.value =
|
|
3076
|
-
}, p = t, m = (
|
|
3077
|
-
s(
|
|
3078
|
-
},
|
|
3079
|
-
f.value =
|
|
3075
|
+
g.value = y;
|
|
3076
|
+
}, p = t, m = (y, k) => {
|
|
3077
|
+
s(k) ? (p("update:value", y[y.length - 1]), p("change", k[k.length - 1])) : (p("update:value", null), p("change", null));
|
|
3078
|
+
}, C = (y, k) => k.some((j) => j[c].indexOf(y) > -1), S = () => g.value.filter((k) => k[d] === f.value[f.value.length - 1])[c], b = () => f.value, w = (y) => {
|
|
3079
|
+
f.value = y, p("update:value", y);
|
|
3080
3080
|
}, v = () => {
|
|
3081
3081
|
f.value = null, p("update:value", null), p("change", null);
|
|
3082
3082
|
};
|
|
3083
|
-
return
|
|
3084
|
-
|
|
3083
|
+
return ie(() => {
|
|
3084
|
+
x();
|
|
3085
3085
|
}), n({
|
|
3086
|
-
getName:
|
|
3086
|
+
getName: S,
|
|
3087
3087
|
getValue: b,
|
|
3088
|
-
setValue:
|
|
3088
|
+
setValue: w,
|
|
3089
3089
|
resetValue: v
|
|
3090
|
-
}), (
|
|
3091
|
-
const
|
|
3092
|
-
return
|
|
3093
|
-
j
|
|
3090
|
+
}), (y, k) => {
|
|
3091
|
+
const j = L("a-cascader");
|
|
3092
|
+
return O(), F("div", Xs, [
|
|
3093
|
+
q(j, {
|
|
3094
3094
|
value: f.value,
|
|
3095
|
-
"onUpdate:value":
|
|
3095
|
+
"onUpdate:value": k[0] || (k[0] = (I) => f.value = I),
|
|
3096
3096
|
options: g.value,
|
|
3097
3097
|
fieldNames: l.fieldNames,
|
|
3098
|
-
"show-search": { filter:
|
|
3098
|
+
"show-search": { filter: C },
|
|
3099
3099
|
disabled: l.disabled,
|
|
3100
3100
|
clearable: l.clearable,
|
|
3101
3101
|
changeOnSelect: l.changeOnSelect,
|
|
3102
3102
|
placeholder: u,
|
|
3103
|
-
size:
|
|
3103
|
+
size: _(i),
|
|
3104
3104
|
onChange: m,
|
|
3105
3105
|
style: { width: "100%" }
|
|
3106
3106
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "size"])
|
|
@@ -3114,7 +3114,7 @@ const mt = /* @__PURE__ */ wr(Rs), kr = "CONSTANT_DIALOG_CONTAINER", ye = "CONST
|
|
|
3114
3114
|
return t;
|
|
3115
3115
|
}, ec = {};
|
|
3116
3116
|
function tc(e, n) {
|
|
3117
|
-
return
|
|
3117
|
+
return O(), F("h2", null, "未获取到页面信息,请联系管理员!");
|
|
3118
3118
|
}
|
|
3119
3119
|
const nc = /* @__PURE__ */ Ks(ec, [["render", tc]]);
|
|
3120
3120
|
function ql(e, n = {}) {
|
|
@@ -3144,7 +3144,7 @@ function ql(e, n = {}) {
|
|
|
3144
3144
|
* @param {*} attempts Maximum allowed retries number
|
|
3145
3145
|
*/
|
|
3146
3146
|
onError: o ? (i) => {
|
|
3147
|
-
|
|
3147
|
+
pt("异步加载组件失败", i.message);
|
|
3148
3148
|
} : () => {
|
|
3149
3149
|
}
|
|
3150
3150
|
// errorComponent: ExceptionPage
|
|
@@ -3165,7 +3165,7 @@ function ac(e) {
|
|
|
3165
3165
|
} else
|
|
3166
3166
|
return ql(e);
|
|
3167
3167
|
}
|
|
3168
|
-
const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left": "5px" } }, oc = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px" } }, ic = ["src"], uc = /* @__PURE__ */
|
|
3168
|
+
const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left": "5px" } }, oc = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px" } }, ic = ["src"], uc = /* @__PURE__ */ Y({
|
|
3169
3169
|
name: "SagVxeDialog",
|
|
3170
3170
|
inheritAttrs: !1,
|
|
3171
3171
|
__name: "AntdModal",
|
|
@@ -3187,30 +3187,30 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3187
3187
|
setup(e, { emit: n }) {
|
|
3188
3188
|
const t = e, l = V("sag-vxe-page-dialog-default " + (t.mountainTop ? "" : "sag-dialog-wrap")), a = t.mountainTop ? () => document.body : ge($.toString(T.targetModal.dialogContainer, kr)), r = t.componentType === "vue" && typeof t.componentUrl == "string" ? Jr(() => ac(t.componentUrl)) : t.componentUrl, o = t.componentType === "iframe" ? t.componentUrl : "", i = t.mountainTop ? "calc(100vh - 88px)" : "calc(100vh - 188px)", u = n, c = () => {
|
|
3189
3189
|
u("cancel");
|
|
3190
|
-
}, d = (
|
|
3191
|
-
u("submit",
|
|
3190
|
+
}, d = (S) => {
|
|
3191
|
+
u("submit", S);
|
|
3192
3192
|
}, f = V(null), g = le({
|
|
3193
3193
|
width: t.maximize ? "100%" : t.width,
|
|
3194
3194
|
height: t.maximize ? i : t.height,
|
|
3195
3195
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3196
|
-
}),
|
|
3197
|
-
let
|
|
3198
|
-
|
|
3199
|
-
}, p = "vue_iframe_" + Math.round(Math.random() * 1e8), m = V(),
|
|
3200
|
-
console.log("iframe加载完毕", p), m.value.contentWindow.addEventListener("closeSagDialogModal", function(
|
|
3201
|
-
console.log("iframe关闭触发",
|
|
3196
|
+
}), x = () => {
|
|
3197
|
+
let S = !f.value.fullScreen;
|
|
3198
|
+
S ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = i) : (g.maxZoomIcon = "vxe-icon-square", g.width = t.width, g.height = t.height), f.value.fullScreen = S;
|
|
3199
|
+
}, p = "vue_iframe_" + Math.round(Math.random() * 1e8), m = V(), C = () => {
|
|
3200
|
+
console.log("iframe加载完毕", p), m.value.contentWindow.addEventListener("closeSagDialogModal", function(S) {
|
|
3201
|
+
console.log("iframe关闭触发", S), c();
|
|
3202
3202
|
});
|
|
3203
3203
|
};
|
|
3204
|
-
return
|
|
3204
|
+
return ie(() => {
|
|
3205
3205
|
re("SagVxeDialog弹出参数", t), t.maximize && (f.value.fullScreen = !0);
|
|
3206
|
-
}), (
|
|
3207
|
-
const
|
|
3208
|
-
return
|
|
3209
|
-
|
|
3206
|
+
}), (S, b) => {
|
|
3207
|
+
const w = L("vxe-button"), v = L("a-modal");
|
|
3208
|
+
return O(), F("div", lc, [
|
|
3209
|
+
q(v, {
|
|
3210
3210
|
ref_key: "gridModal",
|
|
3211
3211
|
ref: f,
|
|
3212
3212
|
open: t.visible,
|
|
3213
|
-
"get-container":
|
|
3213
|
+
"get-container": _(a),
|
|
3214
3214
|
width: g.width,
|
|
3215
3215
|
"body-style": {
|
|
3216
3216
|
height: g.height,
|
|
@@ -3226,37 +3226,37 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3226
3226
|
centered: "",
|
|
3227
3227
|
"destroy-on-close": ""
|
|
3228
3228
|
}, {
|
|
3229
|
-
title:
|
|
3229
|
+
title: N(() => [
|
|
3230
3230
|
te("span", rc, me(t.title), 1),
|
|
3231
3231
|
te("span", oc, [
|
|
3232
|
-
|
|
3232
|
+
q(w, {
|
|
3233
3233
|
mode: "text",
|
|
3234
3234
|
icon: g.maxZoomIcon,
|
|
3235
|
-
onClick:
|
|
3235
|
+
onClick: x
|
|
3236
3236
|
}, null, 8, ["icon"])
|
|
3237
3237
|
])
|
|
3238
3238
|
]),
|
|
3239
|
-
default:
|
|
3240
|
-
t.componentType === "vue" ? (
|
|
3239
|
+
default: N(() => [
|
|
3240
|
+
t.componentType === "vue" ? (O(), z(Qr(_(r)), ne({ key: 0 }, t.componentParams, {
|
|
3241
3241
|
onCancel: c,
|
|
3242
3242
|
onSubmit: d
|
|
3243
|
-
}), null, 16)) :
|
|
3244
|
-
t.componentType === "iframe" ? (
|
|
3243
|
+
}), null, 16)) : R("", !0),
|
|
3244
|
+
t.componentType === "iframe" ? (O(), F("iframe", {
|
|
3245
3245
|
key: 1,
|
|
3246
3246
|
ref_key: "iframeRef",
|
|
3247
3247
|
ref: m,
|
|
3248
3248
|
id: p,
|
|
3249
|
-
src:
|
|
3250
|
-
onLoad:
|
|
3249
|
+
src: _(o),
|
|
3250
|
+
onLoad: C,
|
|
3251
3251
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
3252
|
-
}, null, 40, ic)) :
|
|
3252
|
+
}, null, 40, ic)) : R("", !0)
|
|
3253
3253
|
]),
|
|
3254
3254
|
_: 1
|
|
3255
3255
|
}, 8, ["open", "get-container", "width", "body-style", "wrap-class-name", "mask-closable"])
|
|
3256
3256
|
]);
|
|
3257
3257
|
};
|
|
3258
3258
|
}
|
|
3259
|
-
}), sc = /* @__PURE__ */
|
|
3259
|
+
}), sc = /* @__PURE__ */ Y({
|
|
3260
3260
|
__name: "VxeInput",
|
|
3261
3261
|
props: {
|
|
3262
3262
|
value: { type: String, default: null },
|
|
@@ -3269,7 +3269,7 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3269
3269
|
},
|
|
3270
3270
|
emits: ["update:value"],
|
|
3271
3271
|
setup(e, { expose: n, emit: t }) {
|
|
3272
|
-
const l = e, a = ge(ye), r = V(null), o =
|
|
3272
|
+
const l = e, a = ge(ye), r = V(null), o = X(l.placeholder, "请输入" + l.title), i = t, u = (g) => {
|
|
3273
3273
|
d(g.value);
|
|
3274
3274
|
}, c = () => r.value, d = (g) => {
|
|
3275
3275
|
r.value = g, i("update:value", r.value);
|
|
@@ -3280,22 +3280,22 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3280
3280
|
resetValue: () => {
|
|
3281
3281
|
d(l.defaultValue || null);
|
|
3282
3282
|
}
|
|
3283
|
-
}),
|
|
3283
|
+
}), ie(() => {
|
|
3284
3284
|
i("update:value", c());
|
|
3285
|
-
}), (g,
|
|
3285
|
+
}), (g, x) => {
|
|
3286
3286
|
var m;
|
|
3287
3287
|
const p = L("vxe-input", !0);
|
|
3288
|
-
return
|
|
3288
|
+
return O(), z(p, {
|
|
3289
3289
|
"model-value": r.value,
|
|
3290
|
-
placeholder:
|
|
3290
|
+
placeholder: _(o),
|
|
3291
3291
|
disabled: l.disabled,
|
|
3292
|
-
size: (m =
|
|
3292
|
+
size: (m = _(a)) == null ? void 0 : m.size,
|
|
3293
3293
|
onChange: u,
|
|
3294
3294
|
style: { width: "100%" }
|
|
3295
3295
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
3296
3296
|
};
|
|
3297
3297
|
}
|
|
3298
|
-
}), cc = /* @__PURE__ */
|
|
3298
|
+
}), cc = /* @__PURE__ */ Y({
|
|
3299
3299
|
__name: "VxeSelect",
|
|
3300
3300
|
props: {
|
|
3301
3301
|
value: { type: String, default: null },
|
|
@@ -3315,7 +3315,7 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3315
3315
|
},
|
|
3316
3316
|
emits: ["update:value"],
|
|
3317
3317
|
setup(e, { expose: n, emit: t }) {
|
|
3318
|
-
const l = e, a = ge(ye), r = (a == null ? void 0 : a.ctxPath) || "", o = (a == null ? void 0 : a.application) || "", i = (a == null ? void 0 : a.requestDictUrl) || "", u = "请输入" + l.title + "搜索", c = V(""), d = V(""), f = V([]), g = t,
|
|
3318
|
+
const l = e, a = ge(ye), r = (a == null ? void 0 : a.ctxPath) || "", o = (a == null ? void 0 : a.application) || "", i = (a == null ? void 0 : a.requestDictUrl) || "", u = "请输入" + l.title + "搜索", c = V(""), d = V(""), f = V([]), g = t, x = le({
|
|
3319
3319
|
multiple: l.multiple,
|
|
3320
3320
|
filterable: l.filterable,
|
|
3321
3321
|
clearable: l.clearable,
|
|
@@ -3323,44 +3323,44 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3323
3323
|
transfer: l.transfer,
|
|
3324
3324
|
placeholder: l.filterable ? u : "",
|
|
3325
3325
|
options: [],
|
|
3326
|
-
filterMethod({ searchValue: v, option:
|
|
3327
|
-
return
|
|
3326
|
+
filterMethod({ searchValue: v, option: y }) {
|
|
3327
|
+
return y.label.toLowerCase().indexOf(Me(v).toLowerCase()) >= 0;
|
|
3328
3328
|
}
|
|
3329
3329
|
}), p = async () => {
|
|
3330
3330
|
let v = l.request.requestUrl;
|
|
3331
3331
|
return !v && o && (v = i), v ? (v = ae(r, v), await sn(o, v, l.request)) : (re("下拉框插槽未获取到请求地址"), []);
|
|
3332
3332
|
}, m = ({ value: v }) => {
|
|
3333
3333
|
g("update:value", v);
|
|
3334
|
-
},
|
|
3334
|
+
}, C = () => d.value, S = () => c.value, b = (v) => {
|
|
3335
3335
|
c.value = v, g("update:value", c.value);
|
|
3336
|
-
let
|
|
3337
|
-
|
|
3336
|
+
let y = f.value.filter((k) => k.value === c.value);
|
|
3337
|
+
y.length === 1 && (d.value = y[0].label);
|
|
3338
3338
|
};
|
|
3339
3339
|
return n({
|
|
3340
|
-
getName:
|
|
3341
|
-
getValue:
|
|
3340
|
+
getName: C,
|
|
3341
|
+
getValue: S,
|
|
3342
3342
|
setValue: b,
|
|
3343
3343
|
resetValue: () => {
|
|
3344
3344
|
b(l.defaultValue);
|
|
3345
3345
|
}
|
|
3346
|
-
}),
|
|
3346
|
+
}), ie(() => {
|
|
3347
3347
|
p().then((v) => {
|
|
3348
|
-
!l.multiple && l.selectAll && (v = [{ label: "--全部--", value: "" }].concat(v)), f.value = v,
|
|
3348
|
+
!l.multiple && l.selectAll && (v = [{ label: "--全部--", value: "" }].concat(v)), f.value = v, x.options = v;
|
|
3349
3349
|
});
|
|
3350
|
-
}), (v,
|
|
3351
|
-
var
|
|
3352
|
-
const
|
|
3353
|
-
return
|
|
3350
|
+
}), (v, y) => {
|
|
3351
|
+
var j;
|
|
3352
|
+
const k = L("vxe-select", !0);
|
|
3353
|
+
return O(), z(k, ne({
|
|
3354
3354
|
modelValue: c.value,
|
|
3355
|
-
"onUpdate:modelValue":
|
|
3356
|
-
},
|
|
3357
|
-
size: (
|
|
3355
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => c.value = I)
|
|
3356
|
+
}, x, {
|
|
3357
|
+
size: (j = _(a)) == null ? void 0 : j.size,
|
|
3358
3358
|
onChange: m,
|
|
3359
3359
|
style: { width: "100%" }
|
|
3360
3360
|
}), null, 16, ["modelValue", "size"]);
|
|
3361
3361
|
};
|
|
3362
3362
|
}
|
|
3363
|
-
}), dc = /* @__PURE__ */
|
|
3363
|
+
}), dc = /* @__PURE__ */ Y({
|
|
3364
3364
|
__name: "VxeSelectPull",
|
|
3365
3365
|
props: {
|
|
3366
3366
|
value: { type: String, default: null },
|
|
@@ -3390,51 +3390,51 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3390
3390
|
remoteConfig: {
|
|
3391
3391
|
autoLoad: !1,
|
|
3392
3392
|
async queryMethod({ searchValue: b }) {
|
|
3393
|
-
const
|
|
3394
|
-
f.options =
|
|
3393
|
+
const w = await g(b);
|
|
3394
|
+
f.options = w, c.value = w;
|
|
3395
3395
|
}
|
|
3396
3396
|
}
|
|
3397
3397
|
}), g = async (b) => {
|
|
3398
3398
|
if (c.value = [], b) {
|
|
3399
|
-
const
|
|
3400
|
-
searchValue:
|
|
3399
|
+
const w = {
|
|
3400
|
+
searchValue: Me(b)
|
|
3401
3401
|
};
|
|
3402
3402
|
return await Ie(ae(r, l.requestUrl), {
|
|
3403
3403
|
...l.requestParams,
|
|
3404
|
-
...
|
|
3404
|
+
...w
|
|
3405
3405
|
});
|
|
3406
3406
|
} else
|
|
3407
3407
|
return [];
|
|
3408
|
-
},
|
|
3408
|
+
}, x = ({ value: b }) => {
|
|
3409
3409
|
d("update:value", b);
|
|
3410
|
-
}, p = () => u.value, m = () => i.value,
|
|
3410
|
+
}, p = () => u.value, m = () => i.value, C = (b) => {
|
|
3411
3411
|
i.value = b;
|
|
3412
|
-
let
|
|
3413
|
-
|
|
3412
|
+
let w = c.value.filter((v) => v.value === i.value);
|
|
3413
|
+
w.length === 1 ? u.value = w[0].label : g(b).then((v) => {
|
|
3414
3414
|
c.value = v;
|
|
3415
3415
|
}), d("update:value", i.value);
|
|
3416
3416
|
};
|
|
3417
3417
|
return n({
|
|
3418
3418
|
getName: p,
|
|
3419
3419
|
getValue: m,
|
|
3420
|
-
setValue:
|
|
3420
|
+
setValue: C,
|
|
3421
3421
|
resetValue: () => {
|
|
3422
|
-
|
|
3422
|
+
C(l.defaultValue);
|
|
3423
3423
|
}
|
|
3424
|
-
}), (b,
|
|
3425
|
-
var
|
|
3424
|
+
}), (b, w) => {
|
|
3425
|
+
var y;
|
|
3426
3426
|
const v = L("vxe-select");
|
|
3427
|
-
return
|
|
3427
|
+
return O(), z(v, ne({
|
|
3428
3428
|
modelValue: i.value,
|
|
3429
|
-
"onUpdate:modelValue":
|
|
3429
|
+
"onUpdate:modelValue": w[0] || (w[0] = (k) => i.value = k)
|
|
3430
3430
|
}, f, {
|
|
3431
|
-
size: (
|
|
3432
|
-
onChange:
|
|
3431
|
+
size: (y = _(a)) == null ? void 0 : y.size,
|
|
3432
|
+
onChange: x,
|
|
3433
3433
|
style: { width: "100%" }
|
|
3434
3434
|
}), null, 16, ["modelValue", "size"]);
|
|
3435
3435
|
};
|
|
3436
3436
|
}
|
|
3437
|
-
}), fc = /* @__PURE__ */
|
|
3437
|
+
}), fc = /* @__PURE__ */ Y({
|
|
3438
3438
|
__name: "VxeSelectList",
|
|
3439
3439
|
props: {
|
|
3440
3440
|
value: { type: String, default: null },
|
|
@@ -3460,52 +3460,52 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3460
3460
|
transfer: l.transfer,
|
|
3461
3461
|
placeholder: o,
|
|
3462
3462
|
options: [],
|
|
3463
|
-
filterMethod({ searchValue: b, option:
|
|
3464
|
-
return
|
|
3463
|
+
filterMethod({ searchValue: b, option: w }) {
|
|
3464
|
+
return w.label.toLowerCase().indexOf(Me(b).toLowerCase()) >= 0;
|
|
3465
3465
|
}
|
|
3466
|
-
}), g = async () => await Ie(ae(r, l.requestUrl), l.requestParams),
|
|
3466
|
+
}), g = async () => await Ie(ae(r, l.requestUrl), l.requestParams), x = ({ value: b }) => {
|
|
3467
3467
|
d("update:value", b);
|
|
3468
|
-
}, p = () => u.value, m = () => i.value,
|
|
3468
|
+
}, p = () => u.value, m = () => i.value, C = (b) => {
|
|
3469
3469
|
i.value = b, d("update:value", i.value);
|
|
3470
|
-
let
|
|
3471
|
-
|
|
3470
|
+
let w = c.value.filter((v) => v.value === i.value);
|
|
3471
|
+
w.length === 1 && (u.value = w[0].label);
|
|
3472
3472
|
};
|
|
3473
3473
|
return n({
|
|
3474
3474
|
getName: p,
|
|
3475
3475
|
getValue: m,
|
|
3476
|
-
setValue:
|
|
3476
|
+
setValue: C,
|
|
3477
3477
|
resetValue: () => {
|
|
3478
|
-
|
|
3478
|
+
C(l.defaultValue);
|
|
3479
3479
|
}
|
|
3480
|
-
}),
|
|
3480
|
+
}), ie(() => {
|
|
3481
3481
|
g().then((b) => {
|
|
3482
3482
|
c.value = b, f.options = b;
|
|
3483
3483
|
});
|
|
3484
|
-
}), (b,
|
|
3485
|
-
var
|
|
3484
|
+
}), (b, w) => {
|
|
3485
|
+
var y;
|
|
3486
3486
|
const v = L("vxe-select");
|
|
3487
|
-
return
|
|
3487
|
+
return O(), z(v, ne({
|
|
3488
3488
|
modelValue: i.value,
|
|
3489
|
-
"onUpdate:modelValue":
|
|
3489
|
+
"onUpdate:modelValue": w[0] || (w[0] = (k) => i.value = k)
|
|
3490
3490
|
}, f, {
|
|
3491
|
-
size: (
|
|
3492
|
-
onChange:
|
|
3491
|
+
size: (y = _(a)) == null ? void 0 : y.size,
|
|
3492
|
+
onChange: x,
|
|
3493
3493
|
style: { width: "100%" }
|
|
3494
3494
|
}), null, 16, ["modelValue", "size"]);
|
|
3495
3495
|
};
|
|
3496
3496
|
}
|
|
3497
|
-
}), pc = /* @__PURE__ */ te("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1), mc = /* @__PURE__ */
|
|
3497
|
+
}), pc = /* @__PURE__ */ te("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1), mc = /* @__PURE__ */ Y({
|
|
3498
3498
|
__name: "ExportExcel",
|
|
3499
3499
|
emits: ["export"],
|
|
3500
3500
|
setup(e, { emit: n }) {
|
|
3501
3501
|
const t = n, l = () => {
|
|
3502
3502
|
t("export", (r) => {
|
|
3503
3503
|
try {
|
|
3504
|
-
if (re("excel下载参数", r), !s(
|
|
3504
|
+
if (re("excel下载参数", r), !s(tt.ExcelJS)) {
|
|
3505
3505
|
re("需配置加载exceljs和file-saver组件");
|
|
3506
3506
|
return;
|
|
3507
3507
|
}
|
|
3508
|
-
const o = new
|
|
3508
|
+
const o = new tt.ExcelJS.Workbook(), i = o.addWorksheet(r.sheetName);
|
|
3509
3509
|
let u = [], c = 0;
|
|
3510
3510
|
if (r.columns.forEach((d, f) => {
|
|
3511
3511
|
T.templateTable.ignoreExportColumnsTitle.includes(d.title) ? c++ : u.push({
|
|
@@ -3514,7 +3514,7 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3514
3514
|
width: s(d.exportWidth) ? d.exportWidth : d.title.length * 2 + 4
|
|
3515
3515
|
});
|
|
3516
3516
|
}), i.columns = u, i.addRows(r.data), i.eachRow(function(d, f) {
|
|
3517
|
-
d.eachCell({ includeEmpty: !0 }, function(g,
|
|
3517
|
+
d.eachCell({ includeEmpty: !0 }, function(g, x) {
|
|
3518
3518
|
s(g.value) && (g.value.toString().includes(`
|
|
3519
3519
|
`) ? g.alignment = { wrapText: !0 } : g.value.toString().includes("\\n") && (g.value = g.value.toString().replaceAll("\\n", `
|
|
3520
3520
|
`), g.alignment = { wrapText: !0 }));
|
|
@@ -3523,20 +3523,20 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3523
3523
|
let d = {};
|
|
3524
3524
|
r.mergeCells.forEach((f) => {
|
|
3525
3525
|
let g = f.col - c;
|
|
3526
|
-
const
|
|
3527
|
-
if (s(d[
|
|
3526
|
+
const x = a[g];
|
|
3527
|
+
if (s(d[x]) ? d[x] = d[x] + f.rowspan : d[x] = f.rowspan + 1, f.col >= c && f.rowspan != 1) {
|
|
3528
3528
|
let p = f.row + 2;
|
|
3529
|
-
const m = "'" +
|
|
3529
|
+
const m = "'" + x + p + ":" + x + d[x] + "'";
|
|
3530
3530
|
i.mergeCells(m);
|
|
3531
3531
|
}
|
|
3532
3532
|
});
|
|
3533
3533
|
}
|
|
3534
3534
|
o.xlsx.writeBuffer().then((d) => {
|
|
3535
3535
|
let f = new Blob([d], { type: "application/octet-stream" });
|
|
3536
|
-
|
|
3536
|
+
tt.FileSaver.saveAs(f, r.filename + ".xlsx");
|
|
3537
3537
|
}).catch((d) => re("Error writing excel export", d));
|
|
3538
3538
|
} catch (o) {
|
|
3539
|
-
|
|
3539
|
+
pt("下载失败", o);
|
|
3540
3540
|
}
|
|
3541
3541
|
});
|
|
3542
3542
|
}, a = {
|
|
@@ -3595,13 +3595,13 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3595
3595
|
};
|
|
3596
3596
|
return (r, o) => {
|
|
3597
3597
|
const i = L("vxe-button");
|
|
3598
|
-
return
|
|
3598
|
+
return O(), z(i, {
|
|
3599
3599
|
size: "small",
|
|
3600
3600
|
circle: !0,
|
|
3601
3601
|
onClick: o[0] || (o[0] = (u) => l()),
|
|
3602
3602
|
title: "导出"
|
|
3603
3603
|
}, {
|
|
3604
|
-
default:
|
|
3604
|
+
default: N(() => [
|
|
3605
3605
|
pc
|
|
3606
3606
|
]),
|
|
3607
3607
|
_: 1
|
|
@@ -3618,7 +3618,7 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3618
3618
|
/* @__PURE__ */ pe(" 模式,建议您调整查询条件后重新查询! ")
|
|
3619
3619
|
], -1), Nc = /* @__PURE__ */ te("br", null, null, -1), Rc = /* @__PURE__ */ te("span", { style: { "font-size": "24px", color: "red" } }, "是否强制显示?", -1), Ec = [
|
|
3620
3620
|
Rc
|
|
3621
|
-
], Dl = /* @__PURE__ */
|
|
3621
|
+
], Dl = /* @__PURE__ */ Y({
|
|
3622
3622
|
name: "SagVxePage",
|
|
3623
3623
|
inheritAttrs: !1,
|
|
3624
3624
|
__name: "SagVxePage",
|
|
@@ -3749,25 +3749,25 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3749
3749
|
T.templateTable.toolbarConfig.slots.tools
|
|
3750
3750
|
)
|
|
3751
3751
|
}
|
|
3752
|
-
}),
|
|
3753
|
-
Ua(ye, r), Ua(kr, () => document.getElementById(
|
|
3754
|
-
const m = Object.keys(
|
|
3755
|
-
|
|
3752
|
+
}), x = T.application + "_" + r.templateType, p = "sag_vxe_page_div_panel_" + x;
|
|
3753
|
+
Ua(ye, r), Ua(kr, () => document.getElementById(_(p)));
|
|
3754
|
+
const m = Object.keys(ct()), C = m.filter((P) => P.startsWith("items_")), S = m.filter((P) => P.startsWith("cols_")), b = m.filter((P) => P.startsWith("tools_")), w = V(), v = V(!0), y = V(!1), k = V("none"), j = V(["1"]), I = V(0), U = De(r.size), Q = V(), D = le({}), ue = V([]), ve = V(), Ce = V([]), Ue = t, Se = (P, A) => {
|
|
3755
|
+
ue.value[A] = P;
|
|
3756
3756
|
}, Ne = async () => {
|
|
3757
|
-
const
|
|
3758
|
-
if (!
|
|
3757
|
+
const P = w.value;
|
|
3758
|
+
if (!y.value && P) {
|
|
3759
3759
|
const A = ve.value;
|
|
3760
3760
|
A ? A.validate().then((E) => {
|
|
3761
|
-
(!E || E.length === 0) &&
|
|
3762
|
-
}) :
|
|
3761
|
+
(!E || E.length === 0) && P.commitProxy("query");
|
|
3762
|
+
}) : P.commitProxy("query");
|
|
3763
3763
|
}
|
|
3764
3764
|
}, pn = () => {
|
|
3765
|
-
u.storage && Wa(r.application, r.templateType, {}), ht(
|
|
3765
|
+
u.storage && Wa(r.application, r.templateType, {}), ht(Ce.value[0].children, ue, D), Ue("resetValue");
|
|
3766
3766
|
}, Mr = () => {
|
|
3767
|
-
|
|
3768
|
-
Ja(
|
|
3767
|
+
rt(() => {
|
|
3768
|
+
Ja(Q.value, W, c.clientScale);
|
|
3769
3769
|
});
|
|
3770
|
-
},
|
|
3770
|
+
}, W = le({
|
|
3771
3771
|
size: r.size,
|
|
3772
3772
|
minHeight: c.minHeight,
|
|
3773
3773
|
maxHeight: c.maxHeight,
|
|
@@ -3806,159 +3806,159 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3806
3806
|
//是否代理表单
|
|
3807
3807
|
ajax: {
|
|
3808
3808
|
// 接收 Promise 对象
|
|
3809
|
-
query: (
|
|
3810
|
-
const { page: A, sorts: E, filters:
|
|
3809
|
+
query: (P) => {
|
|
3810
|
+
const { page: A, sorts: E, filters: J, form: H } = P, de = Ct(A, E, J, H, D, ue);
|
|
3811
3811
|
if (u.storage) {
|
|
3812
|
-
const _e = No(E,
|
|
3812
|
+
const _e = No(E, J, H, D);
|
|
3813
3813
|
Wa(r.application, r.templateType, _e);
|
|
3814
3814
|
}
|
|
3815
3815
|
return mn(de, o.requestData, !1);
|
|
3816
3816
|
},
|
|
3817
|
-
querySuccess: (
|
|
3818
|
-
const { page: A, sort: E, sorts:
|
|
3819
|
-
d != null && d.isMerge && (
|
|
3817
|
+
querySuccess: (P) => {
|
|
3818
|
+
const { page: A, sort: E, sorts: J, filters: H, form: de, response: _e } = P;
|
|
3819
|
+
d != null && d.isMerge && (W.mergeCells = vn(_e == null ? void 0 : _e.rows)), Ue("search", _e, { $gridRef: w.value, gridOptions: W });
|
|
3820
3820
|
}
|
|
3821
3821
|
}
|
|
3822
3822
|
},
|
|
3823
3823
|
footerMethod: c.footerMethod
|
|
3824
3824
|
}), vt = V(!1), $r = () => {
|
|
3825
|
-
|
|
3826
|
-
d != null && d.isMerge ?
|
|
3825
|
+
it("确定要强制显示数据内容吗?", () => {
|
|
3826
|
+
d != null && d.isMerge ? W.mergeCells = null : W.spanMethod = Ga({}), W.virtualYConfig = { enabled: !0 }, vt.value = !0, Ne();
|
|
3827
3827
|
});
|
|
3828
|
-
}, mn = async (
|
|
3829
|
-
var
|
|
3830
|
-
if (
|
|
3831
|
-
return vt.value = !1,
|
|
3828
|
+
}, mn = async (P, A, E) => {
|
|
3829
|
+
var J;
|
|
3830
|
+
if (k.value = "none", vt.value)
|
|
3831
|
+
return vt.value = !1, W.params.data;
|
|
3832
3832
|
{
|
|
3833
|
-
|
|
3834
|
-
$gridRef:
|
|
3835
|
-
gridOptions:
|
|
3836
|
-
queryParams:
|
|
3833
|
+
y.value = !0, r.onLoadBeforeModule && r.onLoadBeforeModule({
|
|
3834
|
+
$gridRef: w.value,
|
|
3835
|
+
gridOptions: W,
|
|
3836
|
+
queryParams: P,
|
|
3837
3837
|
exportFlag: E
|
|
3838
3838
|
});
|
|
3839
|
-
const
|
|
3839
|
+
const H = await Je(
|
|
3840
3840
|
ae(r.ctxPath, A),
|
|
3841
|
-
|
|
3841
|
+
P
|
|
3842
3842
|
).finally(() => {
|
|
3843
3843
|
setTimeout(() => {
|
|
3844
|
-
|
|
3844
|
+
y.value = !1;
|
|
3845
3845
|
}, 1e3);
|
|
3846
3846
|
});
|
|
3847
|
-
if (
|
|
3848
|
-
if (
|
|
3849
|
-
if (!E &&
|
|
3850
|
-
return
|
|
3851
|
-
d != null && d.isMerge || (
|
|
3847
|
+
if (H.success) {
|
|
3848
|
+
if (W.params.dataSum = (J = H.data) == null ? void 0 : J.dataSum, d != null && d.mergeKey) {
|
|
3849
|
+
if (!E && H.data.rows.length > 800)
|
|
3850
|
+
return k.value = "more", W.params.data = gn(H.data), null;
|
|
3851
|
+
d != null && d.isMerge || (W.virtualYConfig = { enabled: !1 });
|
|
3852
3852
|
}
|
|
3853
|
-
return gn(
|
|
3853
|
+
return gn(H.data);
|
|
3854
3854
|
} else
|
|
3855
|
-
return
|
|
3855
|
+
return k.value = "error", null;
|
|
3856
3856
|
}
|
|
3857
|
-
}, Vr = (
|
|
3857
|
+
}, Vr = (P) => {
|
|
3858
3858
|
if (c.rowType === "checkbox") {
|
|
3859
|
-
re("checkboxChange",
|
|
3859
|
+
re("checkboxChange", P);
|
|
3860
3860
|
const A = d == null ? void 0 : d.mergeKey;
|
|
3861
3861
|
if (A) {
|
|
3862
|
-
const E =
|
|
3862
|
+
const E = w.value;
|
|
3863
3863
|
if (E) {
|
|
3864
|
-
const
|
|
3865
|
-
for (let
|
|
3866
|
-
|
|
3864
|
+
const J = E.getTableData();
|
|
3865
|
+
for (let H in J.tableData)
|
|
3866
|
+
P.row[A] === J.tableData[H][A] && E.setCheckboxRow(J.tableData[H], P.checked);
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
3870
|
-
}, zr = (
|
|
3870
|
+
}, zr = (P) => {
|
|
3871
3871
|
if (c.rowType === "radio") {
|
|
3872
|
-
re("radioChange",
|
|
3872
|
+
re("radioChange", P);
|
|
3873
3873
|
const A = d == null ? void 0 : d.mergeKey;
|
|
3874
3874
|
if (A) {
|
|
3875
|
-
const E =
|
|
3875
|
+
const E = w.value;
|
|
3876
3876
|
if (E) {
|
|
3877
|
-
const
|
|
3878
|
-
for (let
|
|
3879
|
-
if (
|
|
3880
|
-
E.setRadioRow(
|
|
3877
|
+
const J = E.getTableData();
|
|
3878
|
+
for (let H in J.tableData)
|
|
3879
|
+
if (P.row[A] === J.tableData[H][A]) {
|
|
3880
|
+
E.setRadioRow(J.tableData[H]);
|
|
3881
3881
|
break;
|
|
3882
3882
|
}
|
|
3883
3883
|
}
|
|
3884
3884
|
}
|
|
3885
3885
|
}
|
|
3886
|
-
}, jr = (
|
|
3887
|
-
|
|
3886
|
+
}, jr = (P) => {
|
|
3887
|
+
W.params.currentRow = P == null ? void 0 : P.row;
|
|
3888
3888
|
}, qr = () => {
|
|
3889
|
-
|
|
3890
|
-
}, gn = (
|
|
3889
|
+
W.params.currentRow = null;
|
|
3890
|
+
}, gn = (P) => {
|
|
3891
3891
|
const A = d == null ? void 0 : d.seqKey, E = d == null ? void 0 : d.mergeKey;
|
|
3892
3892
|
if (E && A) {
|
|
3893
|
-
let
|
|
3894
|
-
for (let de in
|
|
3895
|
-
|
|
3893
|
+
let J = [""], H = 0 + P.pageSize * (P.pageNo - 1);
|
|
3894
|
+
for (let de in P.rows)
|
|
3895
|
+
J.includes(P.rows[de][E]) || (H++, J.push(P.rows[de][E])), P.rows[de][A] = H;
|
|
3896
3896
|
}
|
|
3897
3897
|
return r.onLoadAfterModule ? r.onLoadAfterModule({
|
|
3898
|
-
$gridRef:
|
|
3899
|
-
gridOptions:
|
|
3900
|
-
data:
|
|
3901
|
-
}) :
|
|
3902
|
-
}, vn = (
|
|
3898
|
+
$gridRef: w.value,
|
|
3899
|
+
gridOptions: W,
|
|
3900
|
+
data: P
|
|
3901
|
+
}) : P;
|
|
3902
|
+
}, vn = (P) => {
|
|
3903
3903
|
const A = d == null ? void 0 : d.mergeKey;
|
|
3904
3904
|
if (A && d.isMerge) {
|
|
3905
|
-
const E =
|
|
3906
|
-
let
|
|
3907
|
-
for (let
|
|
3908
|
-
const ce =
|
|
3909
|
-
let
|
|
3910
|
-
s(de[ce[A]]) || (de[ce[A]] =
|
|
3905
|
+
const E = w.value;
|
|
3906
|
+
let J = [], H = {}, de = {};
|
|
3907
|
+
for (let Pe = 0; Pe < P.length; Pe++) {
|
|
3908
|
+
const ce = P[Pe], Re = P[Pe - 1];
|
|
3909
|
+
let ke = P[Pe + 1];
|
|
3910
|
+
s(de[ce[A]]) || (de[ce[A]] = Pe + 0), s(H[ce[A]]) ? (s(ke) && ke[A] === ce[A] || s(Re) && Re[A] === ce[A]) && (H[ce[A]] = H[ce[A]] + 1) : H[ce[A]] = 1;
|
|
3911
3911
|
}
|
|
3912
3912
|
let _e = d == null ? void 0 : d.fields;
|
|
3913
|
-
for (let
|
|
3914
|
-
let ce = E == null ? void 0 : E.getColumnByField(_e[
|
|
3915
|
-
for (let
|
|
3916
|
-
|
|
3917
|
-
{ row: de[
|
|
3913
|
+
for (let Pe in _e) {
|
|
3914
|
+
let ce = E == null ? void 0 : E.getColumnByField(_e[Pe]), Re = E == null ? void 0 : E.getColumnIndex(ce);
|
|
3915
|
+
for (let ke in de)
|
|
3916
|
+
J = J.concat([
|
|
3917
|
+
{ row: de[ke], col: Re, rowspan: H[ke], colspan: 1 }
|
|
3918
3918
|
]);
|
|
3919
3919
|
}
|
|
3920
|
-
return
|
|
3920
|
+
return J;
|
|
3921
3921
|
}
|
|
3922
3922
|
return null;
|
|
3923
3923
|
}, Dr = le({
|
|
3924
|
-
cellMenu(
|
|
3925
|
-
const A =
|
|
3926
|
-
A && A.setCurrentRow(
|
|
3924
|
+
cellMenu(P) {
|
|
3925
|
+
const A = w.value;
|
|
3926
|
+
A && A.setCurrentRow(P.row);
|
|
3927
3927
|
},
|
|
3928
|
-
menuClick(
|
|
3929
|
-
|
|
3928
|
+
menuClick(P) {
|
|
3929
|
+
Qe(P.menu, P.row);
|
|
3930
3930
|
}
|
|
3931
|
-
}), hn = ({ row:
|
|
3931
|
+
}), hn = ({ row: P }) => {
|
|
3932
3932
|
var E;
|
|
3933
3933
|
const A = d == null ? void 0 : d.mergeKey;
|
|
3934
|
-
if ((
|
|
3934
|
+
if ((P == null ? void 0 : P[A]) === ((E = W.params.currentRow) == null ? void 0 : E[A]))
|
|
3935
3935
|
return {
|
|
3936
3936
|
backgroundColor: d == null ? void 0 : d.backgroundColor
|
|
3937
3937
|
};
|
|
3938
3938
|
}, Nr = () => {
|
|
3939
|
-
const
|
|
3940
|
-
if (
|
|
3941
|
-
const A =
|
|
3939
|
+
const P = document.getElementById(p);
|
|
3940
|
+
if (P) {
|
|
3941
|
+
const A = P.getElementsByTagName("form");
|
|
3942
3942
|
A && A.length > 0 && (A[0].submit = () => (l.visible = !1, Ne(), !1));
|
|
3943
3943
|
}
|
|
3944
|
-
}, { clickFormButton: Rr, clickTableButton:
|
|
3945
|
-
gridRef:
|
|
3944
|
+
}, { clickFormButton: Rr, clickTableButton: Qe, clickHerf: bn } = Ms({
|
|
3945
|
+
gridRef: w,
|
|
3946
3946
|
targetModal: l,
|
|
3947
|
-
gridOptions:
|
|
3947
|
+
gridOptions: W,
|
|
3948
3948
|
pageOptions: r,
|
|
3949
|
-
formData:
|
|
3949
|
+
formData: D,
|
|
3950
3950
|
pageTable: c,
|
|
3951
3951
|
pageModal: i,
|
|
3952
3952
|
pageTableMerge: d,
|
|
3953
3953
|
pageRequest: o
|
|
3954
3954
|
}), { downloadEvent: yn, importEvent: Er, switchColumsEvent: Sn } = $s({
|
|
3955
3955
|
formRef: ve,
|
|
3956
|
-
formData:
|
|
3957
|
-
gridRef:
|
|
3958
|
-
gridOptions:
|
|
3956
|
+
formData: D,
|
|
3957
|
+
gridRef: w,
|
|
3958
|
+
gridOptions: W,
|
|
3959
3959
|
loadData: mn,
|
|
3960
3960
|
pageOptions: r,
|
|
3961
|
-
templateItemRefs:
|
|
3961
|
+
templateItemRefs: ue,
|
|
3962
3962
|
doMergeCells: vn,
|
|
3963
3963
|
pageTable: c,
|
|
3964
3964
|
pageModal: i,
|
|
@@ -3967,9 +3967,9 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3967
3967
|
}), Br = async () => {
|
|
3968
3968
|
if (s(u.formItems)) {
|
|
3969
3969
|
const A = u.formItems, E = u.formProps.foldingLength;
|
|
3970
|
-
Object.keys(A).forEach((
|
|
3971
|
-
A[
|
|
3972
|
-
}),
|
|
3970
|
+
Object.keys(A).forEach((J, H) => {
|
|
3971
|
+
A[H].folding = !(H < E);
|
|
3972
|
+
}), Ce.value = [
|
|
3973
3973
|
{ span: 24, align: "right", children: A },
|
|
3974
3974
|
{
|
|
3975
3975
|
span: 24,
|
|
@@ -3981,64 +3981,64 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
3981
3981
|
}
|
|
3982
3982
|
if (document.documentElement.clientHeight < 680) {
|
|
3983
3983
|
const A = c.tableColumns;
|
|
3984
|
-
Object.keys(A).forEach((
|
|
3984
|
+
Object.keys(A).forEach((J) => A[J].fixed = !1);
|
|
3985
3985
|
const E = c.tableColumnsExtra;
|
|
3986
|
-
E && Object.keys(E).forEach((
|
|
3986
|
+
E && Object.keys(E).forEach((J) => E[J].fixed = !1);
|
|
3987
3987
|
}
|
|
3988
|
-
Sn(r.application, !0), c.rowType === "checkbox" ?
|
|
3989
|
-
const
|
|
3990
|
-
|
|
3988
|
+
Sn(r.application, !0), c.rowType === "checkbox" ? W.checkboxConfig = { highlight: !0 } : c.rowType === "radio" && (W.radioConfig = { highlight: !0 });
|
|
3989
|
+
const P = c.pageSizes;
|
|
3990
|
+
P && P.length > 0 && W.pagerConfig && (W.pagerConfig.pageSizes = P), c.editConfig && (W.editConfig = {
|
|
3991
3991
|
trigger: "click",
|
|
3992
3992
|
mode: "row",
|
|
3993
3993
|
showStatus: !0
|
|
3994
|
-
}), s(d) && s(d.mergeKey) && (
|
|
3995
|
-
}, Lr = (
|
|
3996
|
-
|
|
3994
|
+
}), s(d) && s(d.mergeKey) && (W.cellStyle = hn, W.params.mergeField = d.mergeKey, d.isMerge ? W.columnDragConfig.dragStartMethod = () => !1 : (W.virtualYConfig = { enabled: !1 }, W.spanMethod = Ga(d))), v.value = !1;
|
|
3995
|
+
}, Lr = (P, A) => P && P.length > 0 ? P && A ? P.some((E) => Fe(A[E.buttonName]) && Fe(E.auth)) : !0 : !1;
|
|
3996
|
+
ie(async () => {
|
|
3997
3997
|
if (re("加载页面模板", r), await Br(), u.storage) {
|
|
3998
|
-
const
|
|
3999
|
-
s(
|
|
3998
|
+
const P = uo(r.application, r.templateType);
|
|
3999
|
+
s(P) ? wn(P) : await ht(u.formItems, ue, D);
|
|
4000
4000
|
} else
|
|
4001
|
-
await ht(u.formItems,
|
|
4001
|
+
await ht(u.formItems, ue, D);
|
|
4002
4002
|
r.onMountedModule && await r.onMountedModule({
|
|
4003
4003
|
$formRef: ve.value,
|
|
4004
|
-
$gridRef:
|
|
4005
|
-
gridOptions:
|
|
4004
|
+
$gridRef: w.value,
|
|
4005
|
+
gridOptions: W,
|
|
4006
4006
|
pageOptions: r,
|
|
4007
|
-
formData:
|
|
4007
|
+
formData: D
|
|
4008
4008
|
}), Nr(), await Ne(), _n();
|
|
4009
4009
|
});
|
|
4010
|
-
const _n =
|
|
4011
|
-
re("屏幕高度出现变化,重新计算表格高度"), c.clientScale === 1 &&
|
|
4012
|
-
|
|
4013
|
-
}),
|
|
4014
|
-
Ja(
|
|
4010
|
+
const _n = Ge.debounce(() => {
|
|
4011
|
+
re("屏幕高度出现变化,重新计算表格高度"), c.clientScale === 1 && I.value == 0 && (window.onresize = () => {
|
|
4012
|
+
I.value = document.body.clientWidth;
|
|
4013
|
+
}), rt(() => {
|
|
4014
|
+
Ja(Q.value, W, c.clientScale);
|
|
4015
4015
|
});
|
|
4016
4016
|
}, T.templateTable.lazyComputdHeightTime);
|
|
4017
4017
|
c.clientScale === 1 && be(
|
|
4018
|
-
[
|
|
4018
|
+
[j, I],
|
|
4019
4019
|
() => {
|
|
4020
4020
|
_n();
|
|
4021
4021
|
},
|
|
4022
4022
|
{ deep: !0, immediate: !0 }
|
|
4023
4023
|
);
|
|
4024
|
-
const Ir = (
|
|
4025
|
-
l.title =
|
|
4024
|
+
const Ir = (P) => {
|
|
4025
|
+
l.title = X(P.title, T.targetModal.title), l.width = X(P.width, T.targetModal.width), l.height = X(P.height, T.targetModal.height), l.maximize = X(P.maximize, !1), l.autoLoad = X(P.autoLoad, !1), l.componentType = X(P.componentType, T.targetModal.componentType), l.componentParams = P.componentParams, l.componentUrl = P.componentUrl, l.visible = !0;
|
|
4026
4026
|
}, On = () => {
|
|
4027
4027
|
l.visible = !1, l.autoLoad && Ne();
|
|
4028
|
-
}, Ur = (
|
|
4028
|
+
}, Ur = (P) => {
|
|
4029
4029
|
l.visible = !1;
|
|
4030
4030
|
const A = l.componentParams;
|
|
4031
|
-
|
|
4032
|
-
}, Fr = async () => await Or(
|
|
4033
|
-
const
|
|
4034
|
-
if (
|
|
4035
|
-
const { pager: A, filter: E, form:
|
|
4036
|
-
return Ct(A,
|
|
4031
|
+
Ue("submit", { data: P, params: A, button: A[T.buttonKeyName] });
|
|
4032
|
+
}, Fr = async () => await Or(w, W), Hr = async () => {
|
|
4033
|
+
const P = w.value;
|
|
4034
|
+
if (P) {
|
|
4035
|
+
const { pager: A, filter: E, form: J, sort: H } = P.getProxyInfo();
|
|
4036
|
+
return Ct(A, H, E, J, D, ue);
|
|
4037
4037
|
} else
|
|
4038
4038
|
return null;
|
|
4039
|
-
}, wn = (
|
|
4040
|
-
for (let A in
|
|
4041
|
-
|
|
4039
|
+
}, wn = (P) => {
|
|
4040
|
+
for (let A in P)
|
|
4041
|
+
ue.value[A] ? ue.value[A].setValue(P[A]) : D[A] = P[A];
|
|
4042
4042
|
};
|
|
4043
4043
|
return n({
|
|
4044
4044
|
doSearch: Ne,
|
|
@@ -4049,37 +4049,37 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
4049
4049
|
getRequestData: Fr,
|
|
4050
4050
|
getFormData: Hr,
|
|
4051
4051
|
setFormData: wn,
|
|
4052
|
-
setExportColumns: (
|
|
4053
|
-
|
|
4052
|
+
setExportColumns: (P) => {
|
|
4053
|
+
W.params.exportColumns = P;
|
|
4054
4054
|
}
|
|
4055
|
-
}), (
|
|
4056
|
-
const E = L("a-button"),
|
|
4057
|
-
return Fa((
|
|
4055
|
+
}), (P, A) => {
|
|
4056
|
+
const E = L("a-button"), J = L("a-space"), H = L("vxe-form"), de = L("a-collapse-panel"), _e = L("a-collapse"), Pe = L("a-menu-item"), ce = L("a-menu"), Re = L("a-dropdown"), ke = L("vxe-button"), Yr = L("vxe-grid");
|
|
4057
|
+
return Fa((O(), F("div", {
|
|
4058
4058
|
id: p,
|
|
4059
4059
|
class: "sag-vxe-page-wrapper"
|
|
4060
4060
|
}, [
|
|
4061
4061
|
Fa(te("div", gc, [
|
|
4062
|
-
|
|
4063
|
-
activeKey:
|
|
4064
|
-
"onUpdate:activeKey": A[2] || (A[2] = (h) =>
|
|
4062
|
+
q(_e, {
|
|
4063
|
+
activeKey: j.value,
|
|
4064
|
+
"onUpdate:activeKey": A[2] || (A[2] = (h) => j.value = h),
|
|
4065
4065
|
expandIconPosition: "end",
|
|
4066
4066
|
accordion: ""
|
|
4067
4067
|
}, {
|
|
4068
|
-
default:
|
|
4069
|
-
|
|
4068
|
+
default: N(() => [
|
|
4069
|
+
q(de, {
|
|
4070
4070
|
ref_key: "formCardRef",
|
|
4071
|
-
ref:
|
|
4071
|
+
ref: Q,
|
|
4072
4072
|
key: "1",
|
|
4073
4073
|
header: "查询条件",
|
|
4074
4074
|
align: "left",
|
|
4075
4075
|
forceRender: ""
|
|
4076
4076
|
}, {
|
|
4077
|
-
default:
|
|
4078
|
-
|
|
4077
|
+
default: N(() => [
|
|
4078
|
+
q(H, {
|
|
4079
4079
|
ref_key: "formRef",
|
|
4080
4080
|
ref: ve,
|
|
4081
|
-
data:
|
|
4082
|
-
items:
|
|
4081
|
+
data: D,
|
|
4082
|
+
items: Ce.value,
|
|
4083
4083
|
size: r.size,
|
|
4084
4084
|
rules: u.formRules,
|
|
4085
4085
|
"title-width": u.formProps.titleWidth,
|
|
@@ -4089,25 +4089,25 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
4089
4089
|
onCollapse: Mr,
|
|
4090
4090
|
class: "sag-vxe-page-form"
|
|
4091
4091
|
}, qe({
|
|
4092
|
-
toolbar_tools:
|
|
4093
|
-
|
|
4094
|
-
default:
|
|
4095
|
-
|
|
4092
|
+
toolbar_tools: N(() => [
|
|
4093
|
+
q(J, null, {
|
|
4094
|
+
default: N(() => [
|
|
4095
|
+
q(E, {
|
|
4096
4096
|
type: "primary",
|
|
4097
|
-
size:
|
|
4097
|
+
size: _(U),
|
|
4098
4098
|
onClick: A[0] || (A[0] = (h) => Ne()),
|
|
4099
|
-
disabled:
|
|
4099
|
+
disabled: y.value
|
|
4100
4100
|
}, {
|
|
4101
|
-
default:
|
|
4101
|
+
default: N(() => [
|
|
4102
4102
|
pe(" 查询 ")
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 1
|
|
4105
4105
|
}, 8, ["size", "disabled"]),
|
|
4106
|
-
|
|
4107
|
-
size:
|
|
4106
|
+
q(E, {
|
|
4107
|
+
size: _(U),
|
|
4108
4108
|
onClick: A[1] || (A[1] = (h) => pn())
|
|
4109
4109
|
}, {
|
|
4110
|
-
default:
|
|
4110
|
+
default: N(() => [
|
|
4111
4111
|
pe("重置")
|
|
4112
4112
|
]),
|
|
4113
4113
|
_: 1
|
|
@@ -4116,118 +4116,118 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
4116
4116
|
_: 1
|
|
4117
4117
|
})
|
|
4118
4118
|
]),
|
|
4119
|
-
dateRange:
|
|
4120
|
-
var B,
|
|
4119
|
+
dateRange: N((h) => {
|
|
4120
|
+
var B, G;
|
|
4121
4121
|
return [
|
|
4122
|
-
|
|
4123
|
-
value:
|
|
4124
|
-
"onUpdate:value": (K) =>
|
|
4122
|
+
q(Is, ne({
|
|
4123
|
+
value: D[h.field],
|
|
4124
|
+
"onUpdate:value": (K) => D[h.field] = K,
|
|
4125
4125
|
ref: (K) => Se(K, h.field)
|
|
4126
|
-
}, (
|
|
4126
|
+
}, (G = (B = h == null ? void 0 : h.item) == null ? void 0 : B.itemRender) == null ? void 0 : G.props), null, 16, ["value", "onUpdate:value"])
|
|
4127
4127
|
];
|
|
4128
4128
|
}),
|
|
4129
|
-
date:
|
|
4130
|
-
var B,
|
|
4129
|
+
date: N((h) => {
|
|
4130
|
+
var B, G;
|
|
4131
4131
|
return [
|
|
4132
|
-
|
|
4133
|
-
value:
|
|
4134
|
-
"onUpdate:value": (K) =>
|
|
4132
|
+
q(Us, ne({
|
|
4133
|
+
value: D[h.field],
|
|
4134
|
+
"onUpdate:value": (K) => D[h.field] = K,
|
|
4135
4135
|
ref: (K) => Se(K, h.field)
|
|
4136
|
-
}, (
|
|
4136
|
+
}, (G = (B = h == null ? void 0 : h.item) == null ? void 0 : B.itemRender) == null ? void 0 : G.props), null, 16, ["value", "onUpdate:value"])
|
|
4137
4137
|
];
|
|
4138
4138
|
}),
|
|
4139
|
-
input:
|
|
4140
|
-
var B,
|
|
4139
|
+
input: N((h) => {
|
|
4140
|
+
var B, G, K, se, oe, $e;
|
|
4141
4141
|
return [
|
|
4142
|
-
u.vxeSlot ? (
|
|
4142
|
+
u.vxeSlot ? (O(), z(sc, ne({
|
|
4143
4143
|
key: 0,
|
|
4144
|
-
value:
|
|
4145
|
-
"onUpdate:value": (ee) =>
|
|
4144
|
+
value: D[h.field],
|
|
4145
|
+
"onUpdate:value": (ee) => D[h.field] = ee,
|
|
4146
4146
|
ref: (ee) => Se(ee, h.field),
|
|
4147
4147
|
title: (B = h == null ? void 0 : h.item) == null ? void 0 : B.title
|
|
4148
|
-
}, (K = (
|
|
4149
|
-
u.vxeSlot ?
|
|
4148
|
+
}, (K = (G = h == null ? void 0 : h.item) == null ? void 0 : G.itemRender) == null ? void 0 : K.props), null, 16, ["value", "onUpdate:value", "title"])) : R("", !0),
|
|
4149
|
+
u.vxeSlot ? R("", !0) : (O(), z(Fs, ne({
|
|
4150
4150
|
key: 1,
|
|
4151
|
-
value:
|
|
4152
|
-
"onUpdate:value": (ee) =>
|
|
4151
|
+
value: D[h.field],
|
|
4152
|
+
"onUpdate:value": (ee) => D[h.field] = ee,
|
|
4153
4153
|
ref: (ee) => Se(ee, h.field),
|
|
4154
4154
|
title: (se = h == null ? void 0 : h.item) == null ? void 0 : se.title
|
|
4155
|
-
}, ($e = (
|
|
4155
|
+
}, ($e = (oe = h == null ? void 0 : h.item) == null ? void 0 : oe.itemRender) == null ? void 0 : $e.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4156
4156
|
];
|
|
4157
4157
|
}),
|
|
4158
|
-
select:
|
|
4159
|
-
var B,
|
|
4158
|
+
select: N((h) => {
|
|
4159
|
+
var B, G, K, se;
|
|
4160
4160
|
return [
|
|
4161
|
-
u.vxeSlot ? (
|
|
4161
|
+
u.vxeSlot ? (O(), z(cc, ne({
|
|
4162
4162
|
key: 0,
|
|
4163
|
-
value:
|
|
4164
|
-
"onUpdate:value": (
|
|
4165
|
-
ref: (
|
|
4166
|
-
}, (
|
|
4167
|
-
u.vxeSlot ?
|
|
4163
|
+
value: D[h.field],
|
|
4164
|
+
"onUpdate:value": (oe) => D[h.field] = oe,
|
|
4165
|
+
ref: (oe) => Se(oe, h.field)
|
|
4166
|
+
}, (G = (B = h == null ? void 0 : h.item) == null ? void 0 : B.itemRender) == null ? void 0 : G.props), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
4167
|
+
u.vxeSlot ? R("", !0) : (O(), z(Ys, ne({
|
|
4168
4168
|
key: 1,
|
|
4169
|
-
value:
|
|
4170
|
-
"onUpdate:value": (
|
|
4171
|
-
ref: (
|
|
4169
|
+
value: D[h.field],
|
|
4170
|
+
"onUpdate:value": (oe) => D[h.field] = oe,
|
|
4171
|
+
ref: (oe) => Se(oe, h.field)
|
|
4172
4172
|
}, (se = (K = h == null ? void 0 : h.item) == null ? void 0 : K.itemRender) == null ? void 0 : se.props), null, 16, ["value", "onUpdate:value"]))
|
|
4173
4173
|
];
|
|
4174
4174
|
}),
|
|
4175
|
-
selectList:
|
|
4176
|
-
var B,
|
|
4175
|
+
selectList: N((h) => {
|
|
4176
|
+
var B, G, K, se, oe, $e;
|
|
4177
4177
|
return [
|
|
4178
|
-
u.vxeSlot ? (
|
|
4178
|
+
u.vxeSlot ? (O(), z(fc, ne({
|
|
4179
4179
|
key: 0,
|
|
4180
|
-
value:
|
|
4181
|
-
"onUpdate:value": (ee) =>
|
|
4180
|
+
value: D[h.field],
|
|
4181
|
+
"onUpdate:value": (ee) => D[h.field] = ee,
|
|
4182
4182
|
ref: (ee) => Se(ee, h.field),
|
|
4183
4183
|
title: (B = h == null ? void 0 : h.item) == null ? void 0 : B.title
|
|
4184
|
-
}, (K = (
|
|
4185
|
-
u.vxeSlot ?
|
|
4184
|
+
}, (K = (G = h == null ? void 0 : h.item) == null ? void 0 : G.itemRender) == null ? void 0 : K.props), null, 16, ["value", "onUpdate:value", "title"])) : R("", !0),
|
|
4185
|
+
u.vxeSlot ? R("", !0) : (O(), z(Qs, ne({
|
|
4186
4186
|
key: 1,
|
|
4187
|
-
value:
|
|
4188
|
-
"onUpdate:value": (ee) =>
|
|
4187
|
+
value: D[h.field],
|
|
4188
|
+
"onUpdate:value": (ee) => D[h.field] = ee,
|
|
4189
4189
|
ref: (ee) => Se(ee, h.field),
|
|
4190
4190
|
title: (se = h == null ? void 0 : h.item) == null ? void 0 : se.title
|
|
4191
|
-
}, ($e = (
|
|
4191
|
+
}, ($e = (oe = h == null ? void 0 : h.item) == null ? void 0 : oe.itemRender) == null ? void 0 : $e.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4192
4192
|
];
|
|
4193
4193
|
}),
|
|
4194
|
-
selectPull:
|
|
4195
|
-
var B,
|
|
4194
|
+
selectPull: N((h) => {
|
|
4195
|
+
var B, G, K, se, oe, $e;
|
|
4196
4196
|
return [
|
|
4197
|
-
u.vxeSlot ? (
|
|
4197
|
+
u.vxeSlot ? (O(), z(dc, ne({
|
|
4198
4198
|
key: 0,
|
|
4199
|
-
value:
|
|
4200
|
-
"onUpdate:value": (ee) =>
|
|
4199
|
+
value: D[h.field],
|
|
4200
|
+
"onUpdate:value": (ee) => D[h.field] = ee,
|
|
4201
4201
|
ref: (ee) => Se(ee, h.field),
|
|
4202
4202
|
title: (B = h == null ? void 0 : h.item) == null ? void 0 : B.title
|
|
4203
|
-
}, (K = (
|
|
4204
|
-
u.vxeSlot ?
|
|
4203
|
+
}, (K = (G = h == null ? void 0 : h.item) == null ? void 0 : G.itemRender) == null ? void 0 : K.props), null, 16, ["value", "onUpdate:value", "title"])) : R("", !0),
|
|
4204
|
+
u.vxeSlot ? R("", !0) : (O(), z(Gs, ne({
|
|
4205
4205
|
key: 1,
|
|
4206
|
-
value:
|
|
4207
|
-
"onUpdate:value": (ee) =>
|
|
4206
|
+
value: D[h.field],
|
|
4207
|
+
"onUpdate:value": (ee) => D[h.field] = ee,
|
|
4208
4208
|
ref: (ee) => Se(ee, h.field),
|
|
4209
4209
|
title: (se = h == null ? void 0 : h.item) == null ? void 0 : se.title
|
|
4210
|
-
}, ($e = (
|
|
4210
|
+
}, ($e = (oe = h == null ? void 0 : h.item) == null ? void 0 : oe.itemRender) == null ? void 0 : $e.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4211
4211
|
];
|
|
4212
4212
|
}),
|
|
4213
|
-
cascader:
|
|
4214
|
-
var B,
|
|
4213
|
+
cascader: N((h) => {
|
|
4214
|
+
var B, G, K;
|
|
4215
4215
|
return [
|
|
4216
|
-
|
|
4217
|
-
value:
|
|
4218
|
-
"onUpdate:value": (se) =>
|
|
4216
|
+
q(Zs, ne({
|
|
4217
|
+
value: D[h.field],
|
|
4218
|
+
"onUpdate:value": (se) => D[h.field] = se,
|
|
4219
4219
|
title: (B = h == null ? void 0 : h.item) == null ? void 0 : B.title,
|
|
4220
4220
|
ref: (se) => Se(se, h.field)
|
|
4221
|
-
}, (K = (
|
|
4221
|
+
}, (K = (G = h == null ? void 0 : h.item) == null ? void 0 : G.itemRender) == null ? void 0 : K.props), null, 16, ["value", "onUpdate:value", "title"])
|
|
4222
4222
|
];
|
|
4223
4223
|
}),
|
|
4224
4224
|
_: 2
|
|
4225
4225
|
}, [
|
|
4226
|
-
|
|
4226
|
+
Ae(_(C), (h) => ({
|
|
4227
4227
|
name: h,
|
|
4228
|
-
fn:
|
|
4229
|
-
xe(
|
|
4230
|
-
value:
|
|
4228
|
+
fn: N((B) => [
|
|
4229
|
+
xe(P.$slots, h, ne(B, {
|
|
4230
|
+
value: D[B.field]
|
|
4231
4231
|
}))
|
|
4232
4232
|
])
|
|
4233
4233
|
}))
|
|
@@ -4239,15 +4239,15 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
4239
4239
|
_: 3
|
|
4240
4240
|
}, 8, ["activeKey"])
|
|
4241
4241
|
], 512), [
|
|
4242
|
-
[Ha,
|
|
4242
|
+
[Ha, _(s)(u.formItems)]
|
|
4243
4243
|
]),
|
|
4244
4244
|
te("div", vc, [
|
|
4245
|
-
|
|
4245
|
+
q(Yr, ne({
|
|
4246
4246
|
ref_key: "gridRef",
|
|
4247
|
-
ref:
|
|
4248
|
-
},
|
|
4247
|
+
ref: w
|
|
4248
|
+
}, W, Zr(Dr), {
|
|
4249
4249
|
size: r.size,
|
|
4250
|
-
id:
|
|
4250
|
+
id: x,
|
|
4251
4251
|
style: { "z-index": "1" },
|
|
4252
4252
|
class: "sag-vxe-page-table",
|
|
4253
4253
|
onCellMouseenter: jr,
|
|
@@ -4255,183 +4255,183 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
4255
4255
|
onCheckboxChange: Vr,
|
|
4256
4256
|
onRadioChange: zr
|
|
4257
4257
|
}), qe({
|
|
4258
|
-
operate:
|
|
4258
|
+
operate: N(({ row: h, column: B }) => [
|
|
4259
4259
|
te("a", {
|
|
4260
4260
|
href: "javascript:void(0)",
|
|
4261
4261
|
class: "sag-vxe-page-link",
|
|
4262
|
-
onClick: (
|
|
4262
|
+
onClick: (G) => _(bn)(h, B)
|
|
4263
4263
|
}, me(h[B.property]), 9, hc)
|
|
4264
4264
|
]),
|
|
4265
|
-
vertical:
|
|
4266
|
-
(
|
|
4267
|
-
key:
|
|
4265
|
+
vertical: N(({ row: h, column: B }) => [
|
|
4266
|
+
(O(!0), F(we, null, Ae(B.params.childColumns, (G) => (O(), F("div", {
|
|
4267
|
+
key: G.value
|
|
4268
4268
|
}, [
|
|
4269
|
-
te("span", bc, me(
|
|
4269
|
+
te("span", bc, me(G.title) + ":", 1),
|
|
4270
4270
|
pe(" "),
|
|
4271
|
-
|
|
4271
|
+
G.formatter === "operate" ? (O(), F("span", yc, [
|
|
4272
4272
|
te("a", {
|
|
4273
4273
|
href: "javascript:void(0)",
|
|
4274
4274
|
class: "sag-vxe-page-link",
|
|
4275
|
-
onClick: (K) =>
|
|
4276
|
-
}, me(h[
|
|
4277
|
-
])) : (
|
|
4275
|
+
onClick: (K) => _(bn)(h, G)
|
|
4276
|
+
}, me(h[G.field]), 9, Sc)
|
|
4277
|
+
])) : (O(), F("span", _c, me(_($).stringFormat(h[G.field], G.formatter)), 1))
|
|
4278
4278
|
]))), 128))
|
|
4279
4279
|
]),
|
|
4280
|
-
button:
|
|
4280
|
+
button: N(({ row: h }) => [
|
|
4281
4281
|
te("div", Oc, [
|
|
4282
|
-
(
|
|
4283
|
-
|
|
4284
|
-
c.showButtonLink ?
|
|
4282
|
+
(O(!0), F(we, null, Ae(f.tableButtons, (B) => (O(), F(we, { key: B }, [
|
|
4283
|
+
_($).toString(h[B.buttonName], !0) && _(Fe)(B.auth) ? (O(), F("span", wc, [
|
|
4284
|
+
c.showButtonLink ? R("", !0) : (O(), z(E, {
|
|
4285
4285
|
key: 0,
|
|
4286
4286
|
size: "small",
|
|
4287
|
-
type:
|
|
4288
|
-
onClick: (
|
|
4287
|
+
type: _($).toString(B.status, "primary"),
|
|
4288
|
+
onClick: (G) => _(Qe)(B, h)
|
|
4289
4289
|
}, {
|
|
4290
|
-
icon:
|
|
4291
|
-
|
|
4290
|
+
icon: N(() => [
|
|
4291
|
+
q(je, {
|
|
4292
4292
|
icon: B.icon
|
|
4293
4293
|
}, null, 8, ["icon"])
|
|
4294
4294
|
]),
|
|
4295
|
-
default:
|
|
4295
|
+
default: N(() => [
|
|
4296
4296
|
pe(" " + me(B.buttonName), 1)
|
|
4297
4297
|
]),
|
|
4298
4298
|
_: 2
|
|
4299
4299
|
}, 1032, ["type", "onClick"])),
|
|
4300
|
-
c.showButtonLink ? (
|
|
4300
|
+
c.showButtonLink ? (O(), F("a", {
|
|
4301
4301
|
key: 1,
|
|
4302
4302
|
href: "javascript:void(0)",
|
|
4303
4303
|
class: "sag-vxe-page-button-link",
|
|
4304
|
-
onClick: (
|
|
4304
|
+
onClick: (G) => _(Qe)(B, h)
|
|
4305
4305
|
}, [
|
|
4306
|
-
|
|
4306
|
+
q(je, {
|
|
4307
4307
|
icon: B.icon
|
|
4308
4308
|
}, null, 8, ["icon"]),
|
|
4309
4309
|
pe(" " + me(B.buttonName), 1)
|
|
4310
|
-
], 8, xc)) :
|
|
4310
|
+
], 8, xc)) : R("", !0),
|
|
4311
4311
|
pe(" ")
|
|
4312
|
-
])) :
|
|
4312
|
+
])) : R("", !0)
|
|
4313
4313
|
], 64))), 128))
|
|
4314
4314
|
]),
|
|
4315
|
-
Lr(f.tableMoreButtons, h) ? (
|
|
4315
|
+
Lr(f.tableMoreButtons, h) ? (O(), z(Re, {
|
|
4316
4316
|
key: 0,
|
|
4317
4317
|
destroyPopupOnHide: !0
|
|
4318
4318
|
}, {
|
|
4319
|
-
overlay:
|
|
4320
|
-
|
|
4321
|
-
default:
|
|
4322
|
-
(
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
default:
|
|
4319
|
+
overlay: N(() => [
|
|
4320
|
+
q(ce, null, {
|
|
4321
|
+
default: N(() => [
|
|
4322
|
+
(O(!0), F(we, null, Ae(f.tableMoreButtons, (B) => (O(), F(we, { key: B }, [
|
|
4323
|
+
_(Fe)(B.auth) ? (O(), F(we, { key: 0 }, [
|
|
4324
|
+
_($).toString(h[B.buttonName], !0) ? (O(), z(Pe, { key: 0 }, {
|
|
4325
|
+
default: N(() => [
|
|
4326
4326
|
te("a", {
|
|
4327
|
-
onClick: (
|
|
4327
|
+
onClick: (G) => _(Qe)(B, h)
|
|
4328
4328
|
}, [
|
|
4329
|
-
|
|
4329
|
+
q(je, {
|
|
4330
4330
|
icon: B.icon
|
|
4331
4331
|
}, null, 8, ["icon"]),
|
|
4332
4332
|
pe(" " + me(B.buttonName), 1)
|
|
4333
4333
|
], 8, Cc)
|
|
4334
4334
|
]),
|
|
4335
4335
|
_: 2
|
|
4336
|
-
}, 1024)) :
|
|
4337
|
-
], 64)) :
|
|
4336
|
+
}, 1024)) : R("", !0)
|
|
4337
|
+
], 64)) : R("", !0)
|
|
4338
4338
|
], 64))), 128))
|
|
4339
4339
|
]),
|
|
4340
4340
|
_: 2
|
|
4341
4341
|
}, 1024)
|
|
4342
4342
|
]),
|
|
4343
|
-
default:
|
|
4344
|
-
|
|
4343
|
+
default: N(() => [
|
|
4344
|
+
q(E, {
|
|
4345
4345
|
type: c.showButtonLink ? "link" : "default",
|
|
4346
4346
|
size: "small"
|
|
4347
4347
|
}, {
|
|
4348
|
-
default:
|
|
4348
|
+
default: N(() => [
|
|
4349
4349
|
pe(" 更多操作 "),
|
|
4350
|
-
|
|
4350
|
+
q(_(Sr))
|
|
4351
4351
|
]),
|
|
4352
4352
|
_: 1
|
|
4353
4353
|
}, 8, ["type"])
|
|
4354
4354
|
]),
|
|
4355
4355
|
_: 2
|
|
4356
|
-
}, 1024)) :
|
|
4356
|
+
}, 1024)) : R("", !0)
|
|
4357
4357
|
]),
|
|
4358
|
-
toolbar_buttons:
|
|
4359
|
-
|
|
4358
|
+
toolbar_buttons: N(() => [
|
|
4359
|
+
_(s)(f.formButtons) && f.formButtons.length > 0 ? (O(), z(J, {
|
|
4360
4360
|
key: 0,
|
|
4361
4361
|
wrap: !0,
|
|
4362
4362
|
style: { "margin-bottom": "0px" }
|
|
4363
4363
|
}, {
|
|
4364
|
-
default:
|
|
4365
|
-
(
|
|
4366
|
-
|
|
4364
|
+
default: N(() => [
|
|
4365
|
+
(O(!0), F(we, null, Ae(f.formButtons, (h) => (O(), F("span", { key: h }, [
|
|
4366
|
+
_(Fe)(h.auth) ? (O(), z(E, {
|
|
4367
4367
|
key: 0,
|
|
4368
4368
|
round: "",
|
|
4369
|
-
size:
|
|
4370
|
-
type:
|
|
4371
|
-
onClick: (B) =>
|
|
4369
|
+
size: _(U),
|
|
4370
|
+
type: _($).toString(h.status, "primary"),
|
|
4371
|
+
onClick: (B) => _(Rr)(h)
|
|
4372
4372
|
}, {
|
|
4373
|
-
icon:
|
|
4374
|
-
|
|
4373
|
+
icon: N(() => [
|
|
4374
|
+
q(je, {
|
|
4375
4375
|
icon: h.icon
|
|
4376
4376
|
}, null, 8, ["icon"])
|
|
4377
4377
|
]),
|
|
4378
|
-
default:
|
|
4378
|
+
default: N(() => [
|
|
4379
4379
|
pe(" " + me(h.buttonName), 1)
|
|
4380
4380
|
]),
|
|
4381
4381
|
_: 2
|
|
4382
|
-
}, 1032, ["size", "type", "onClick"])) :
|
|
4382
|
+
}, 1032, ["size", "type", "onClick"])) : R("", !0)
|
|
4383
4383
|
]))), 128))
|
|
4384
4384
|
]),
|
|
4385
4385
|
_: 1
|
|
4386
|
-
})) :
|
|
4387
|
-
(
|
|
4386
|
+
})) : R("", !0),
|
|
4387
|
+
(O(!0), F(we, null, Ae(_(b), (h) => xe(P.$slots, h)), 256))
|
|
4388
4388
|
]),
|
|
4389
|
-
toolbar_tools:
|
|
4390
|
-
|
|
4389
|
+
toolbar_tools: N(() => [
|
|
4390
|
+
_(s)(c.tableColumnsExtra) ? (O(), z(ke, {
|
|
4391
4391
|
key: 0,
|
|
4392
4392
|
size: "small",
|
|
4393
4393
|
circle: !0,
|
|
4394
|
-
onClick: A[3] || (A[3] = (h) =>
|
|
4394
|
+
onClick: A[3] || (A[3] = (h) => _(Sn)(r.application, !1)),
|
|
4395
4395
|
title: "切换"
|
|
4396
4396
|
}, {
|
|
4397
|
-
default:
|
|
4397
|
+
default: N(() => [
|
|
4398
4398
|
Pc
|
|
4399
4399
|
]),
|
|
4400
4400
|
_: 1
|
|
4401
|
-
})) :
|
|
4402
|
-
|
|
4401
|
+
})) : R("", !0),
|
|
4402
|
+
_(s)(o.requestDownload) && typeof o.requestDownload == "object" ? (O(), z(mc, {
|
|
4403
4403
|
key: 1,
|
|
4404
|
-
onExport:
|
|
4405
|
-
}, null, 8, ["onExport"])) :
|
|
4406
|
-
o.requestDownload === !0 || typeof o.requestDownload == "string" ? (
|
|
4404
|
+
onExport: _(yn)
|
|
4405
|
+
}, null, 8, ["onExport"])) : R("", !0),
|
|
4406
|
+
o.requestDownload === !0 || typeof o.requestDownload == "string" ? (O(), z(ke, {
|
|
4407
4407
|
key: 2,
|
|
4408
4408
|
size: "small",
|
|
4409
4409
|
circle: !0,
|
|
4410
|
-
onClick:
|
|
4410
|
+
onClick: _(yn),
|
|
4411
4411
|
title: "下载"
|
|
4412
4412
|
}, {
|
|
4413
|
-
default:
|
|
4413
|
+
default: N(() => [
|
|
4414
4414
|
kc
|
|
4415
4415
|
]),
|
|
4416
4416
|
_: 1
|
|
4417
|
-
}, 8, ["onClick"])) :
|
|
4418
|
-
o.requestImport ? (
|
|
4417
|
+
}, 8, ["onClick"])) : R("", !0),
|
|
4418
|
+
o.requestImport ? (O(), z(ke, {
|
|
4419
4419
|
key: 3,
|
|
4420
4420
|
size: "small",
|
|
4421
4421
|
circle: !0,
|
|
4422
|
-
onClick: A[4] || (A[4] = (h) =>
|
|
4422
|
+
onClick: A[4] || (A[4] = (h) => _(Er)()),
|
|
4423
4423
|
title: "导入"
|
|
4424
4424
|
}, {
|
|
4425
|
-
default:
|
|
4425
|
+
default: N(() => [
|
|
4426
4426
|
Tc
|
|
4427
4427
|
]),
|
|
4428
4428
|
_: 1
|
|
4429
|
-
})) :
|
|
4429
|
+
})) : R("", !0)
|
|
4430
4430
|
]),
|
|
4431
|
-
empty:
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4431
|
+
empty: N(() => [
|
|
4432
|
+
k.value === "error" ? (O(), F("h2", Ac, $c)) : R("", !0),
|
|
4433
|
+
k.value === "none" ? (O(), F("h2", Vc, jc)) : R("", !0),
|
|
4434
|
+
k.value === "more" ? (O(), F("h2", qc, [
|
|
4435
4435
|
Dc,
|
|
4436
4436
|
Nc,
|
|
4437
4437
|
te("a", {
|
|
@@ -4439,22 +4439,22 @@ const lc = { id: "div_view_modal" }, rc = { style: { color: "red", "padding-left
|
|
|
4439
4439
|
href: "javascript:void(0)",
|
|
4440
4440
|
class: "link"
|
|
4441
4441
|
}, Ec)
|
|
4442
|
-
])) :
|
|
4442
|
+
])) : R("", !0)
|
|
4443
4443
|
]),
|
|
4444
4444
|
_: 2
|
|
4445
4445
|
}, [
|
|
4446
|
-
|
|
4446
|
+
Ae(_(S), (h) => ({
|
|
4447
4447
|
name: h,
|
|
4448
|
-
fn:
|
|
4449
|
-
xe(
|
|
4448
|
+
fn: N((B) => [
|
|
4449
|
+
xe(P.$slots, h, Kr(eo(B)))
|
|
4450
4450
|
])
|
|
4451
4451
|
}))
|
|
4452
4452
|
]), 1040, ["size"])
|
|
4453
4453
|
]),
|
|
4454
|
-
l.visible ? (
|
|
4454
|
+
l.visible ? (O(), z(uc, ne({ key: 0 }, l, {
|
|
4455
4455
|
onCancel: On,
|
|
4456
4456
|
onSubmit: Ur
|
|
4457
|
-
}), null, 16)) :
|
|
4457
|
+
}), null, 16)) : R("", !0)
|
|
4458
4458
|
], 512)), [
|
|
4459
4459
|
[Ha, !v.value]
|
|
4460
4460
|
]);
|
|
@@ -4465,7 +4465,7 @@ const Kc = {
|
|
|
4465
4465
|
install: (e, n) => {
|
|
4466
4466
|
e.component(Dl.name, Dl);
|
|
4467
4467
|
}
|
|
4468
|
-
}, Nl = /* @__PURE__ */
|
|
4468
|
+
}, Nl = /* @__PURE__ */ Y({
|
|
4469
4469
|
name: "SagAntdDatePicker",
|
|
4470
4470
|
inheritAttrs: !1,
|
|
4471
4471
|
__name: "SagAntdDatePicker",
|
|
@@ -4486,16 +4486,16 @@ const Kc = {
|
|
|
4486
4486
|
},
|
|
4487
4487
|
emits: ["update:value", "change"],
|
|
4488
4488
|
setup(e, { expose: n, emit: t }) {
|
|
4489
|
-
M.locale("zh-cn"), M.extend(
|
|
4489
|
+
M.locale("zh-cn"), M.extend(gt);
|
|
4490
4490
|
const l = e, a = l.picker || "day", r = l.format || "YYYY-MM-DD";
|
|
4491
4491
|
let o = V();
|
|
4492
4492
|
const i = (p, m) => {
|
|
4493
|
-
|
|
4493
|
+
x(m, !0);
|
|
4494
4494
|
}, u = () => s(o.value) ? M(o.value).format(r) : null, c = (p) => {
|
|
4495
|
-
o.value = M(p),
|
|
4495
|
+
o.value = M(p), x();
|
|
4496
4496
|
}, d = (p) => {
|
|
4497
|
-
o.value = M().add(p || 0, a),
|
|
4498
|
-
}, f = (p) => !!(s(l.max) && M(p).format(r) > l.max || s(l.min) && M(p).format(r) < l.min), g = t,
|
|
4497
|
+
o.value = M().add(p || 0, a), x();
|
|
4498
|
+
}, f = (p) => !!(s(l.max) && M(p).format(r) > l.max || s(l.min) && M(p).format(r) < l.min), g = t, x = (p, m = !1) => {
|
|
4499
4499
|
s(p) ? (g("update:value", p), m && g("change", p)) : (g("update:value", u()), m && g("change", u()));
|
|
4500
4500
|
};
|
|
4501
4501
|
return be(
|
|
@@ -4503,24 +4503,24 @@ const Kc = {
|
|
|
4503
4503
|
(p, m) => {
|
|
4504
4504
|
o.value = p ? M(p) : null;
|
|
4505
4505
|
}
|
|
4506
|
-
),
|
|
4506
|
+
), ie(() => {
|
|
4507
4507
|
s(l.value) && c(l.value);
|
|
4508
4508
|
}), n({
|
|
4509
4509
|
setDate: c,
|
|
4510
4510
|
setValue: d,
|
|
4511
4511
|
getValue: u
|
|
4512
4512
|
}), (p, m) => {
|
|
4513
|
-
const
|
|
4514
|
-
return
|
|
4515
|
-
value:
|
|
4516
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
4513
|
+
const C = L("a-date-picker");
|
|
4514
|
+
return O(), z(C, {
|
|
4515
|
+
value: _(o),
|
|
4516
|
+
"onUpdate:value": m[0] || (m[0] = (S) => st(o) ? o.value = S : o = S),
|
|
4517
4517
|
onChange: i,
|
|
4518
4518
|
"show-time": l.showTime,
|
|
4519
4519
|
disabled: l.disabled,
|
|
4520
|
-
locale:
|
|
4521
|
-
format:
|
|
4520
|
+
locale: _(mt),
|
|
4521
|
+
format: _(r),
|
|
4522
4522
|
disabledDate: f,
|
|
4523
|
-
picker:
|
|
4523
|
+
picker: _(a) === "day" ? "date" : _(a),
|
|
4524
4524
|
style: { width: "100%", height: "30px" }
|
|
4525
4525
|
}, null, 8, ["value", "show-time", "disabled", "locale", "format", "picker"]);
|
|
4526
4526
|
};
|
|
@@ -4529,7 +4529,7 @@ const Kc = {
|
|
|
4529
4529
|
install: (e, n) => {
|
|
4530
4530
|
e.component(Nl.name, Nl);
|
|
4531
4531
|
}
|
|
4532
|
-
}, Rl = /* @__PURE__ */
|
|
4532
|
+
}, Rl = /* @__PURE__ */ Y({
|
|
4533
4533
|
name: "SagAntdDateRange",
|
|
4534
4534
|
inheritAttrs: !1,
|
|
4535
4535
|
__name: "SagAntdDateRange",
|
|
@@ -4542,7 +4542,7 @@ const Kc = {
|
|
|
4542
4542
|
},
|
|
4543
4543
|
emits: ["update:value", "change"],
|
|
4544
4544
|
setup(e, { expose: n, emit: t }) {
|
|
4545
|
-
M.locale("zh-cn"), M.extend(dn), M.extend(
|
|
4545
|
+
M.locale("zh-cn"), M.extend(dn), M.extend(gt);
|
|
4546
4546
|
const l = e, a = l.picker || "day", r = l.format || "YYYY-MM-DD", o = t, i = V(), u = [
|
|
4547
4547
|
{ label: "当天", value: [M().add(0, a)] },
|
|
4548
4548
|
{ label: "近7天", value: [M().add(-7, a)] },
|
|
@@ -4566,44 +4566,44 @@ const Kc = {
|
|
|
4566
4566
|
{ label: "近两年", value: [M().add(-2, a)] },
|
|
4567
4567
|
{ label: "近三年", value: [M().add(-3, a)] },
|
|
4568
4568
|
{ label: "近五年", value: [M().add(-5, a)] }
|
|
4569
|
-
], f = V(a === "day" ? u : a === "month" ? c : d), g = (
|
|
4570
|
-
|
|
4571
|
-
},
|
|
4572
|
-
let
|
|
4573
|
-
return i.value && i.value[0] && (
|
|
4574
|
-
}, p = (
|
|
4575
|
-
typeof
|
|
4576
|
-
s(
|
|
4569
|
+
], f = V(a === "day" ? u : a === "month" ? c : d), g = (S, b) => {
|
|
4570
|
+
C(b, !0);
|
|
4571
|
+
}, x = () => {
|
|
4572
|
+
let S = null, b = null;
|
|
4573
|
+
return i.value && i.value[0] && (S = M(i.value[0]).format(r)), i.value && i.value[1] && (b = M(i.value[1]).format(r)), !S && !b ? null : [S, b];
|
|
4574
|
+
}, p = (S, b) => {
|
|
4575
|
+
typeof S == "number" || typeof b == "number" ? i.value = [
|
|
4576
|
+
s(S) ? M().add(S, a) : null,
|
|
4577
4577
|
s(b) ? M().add(b, a) : null
|
|
4578
|
-
] : i.value = [s(
|
|
4578
|
+
] : i.value = [s(S) ? M(S) : null, s(b) ? M(b) : null], C();
|
|
4579
4579
|
}, m = () => {
|
|
4580
4580
|
p(null, null);
|
|
4581
|
-
},
|
|
4582
|
-
s(
|
|
4581
|
+
}, C = (S, b = !1) => {
|
|
4582
|
+
s(S) ? (o("update:value", S), b && o("change", S)) : (o("update:value", x()), b && o("change", x()));
|
|
4583
4583
|
};
|
|
4584
4584
|
return be(
|
|
4585
4585
|
() => l.value,
|
|
4586
|
-
(
|
|
4587
|
-
let
|
|
4588
|
-
s(
|
|
4586
|
+
(S, b) => {
|
|
4587
|
+
let w = null, v = null;
|
|
4588
|
+
s(S) && (s(S[0]) && (w = M(S[0])), s(S[1]) && (v = M(S[1]))), i.value = [w, v];
|
|
4589
4589
|
}
|
|
4590
|
-
),
|
|
4590
|
+
), ie(() => {
|
|
4591
4591
|
s(l.value) && p(l.value[0], l.value[1]);
|
|
4592
4592
|
}), n({
|
|
4593
4593
|
setValue: p,
|
|
4594
|
-
getValue:
|
|
4594
|
+
getValue: x,
|
|
4595
4595
|
resetValue: m
|
|
4596
|
-
}), (
|
|
4597
|
-
const
|
|
4598
|
-
return
|
|
4596
|
+
}), (S, b) => {
|
|
4597
|
+
const w = L("a-range-picker");
|
|
4598
|
+
return O(), z(w, {
|
|
4599
4599
|
value: i.value,
|
|
4600
4600
|
"onUpdate:value": b[0] || (b[0] = (v) => i.value = v),
|
|
4601
4601
|
onChange: g,
|
|
4602
4602
|
presets: f.value,
|
|
4603
|
-
locale:
|
|
4603
|
+
locale: _(mt),
|
|
4604
4604
|
allowEmpty: [!0, !0],
|
|
4605
|
-
format:
|
|
4606
|
-
picker:
|
|
4605
|
+
format: _(r),
|
|
4606
|
+
picker: _(a) === "day" ? "date" : _(a),
|
|
4607
4607
|
style: { width: "100%", height: "30px" }
|
|
4608
4608
|
}, null, 8, ["value", "presets", "locale", "format", "picker"]);
|
|
4609
4609
|
};
|
|
@@ -4612,7 +4612,7 @@ const Kc = {
|
|
|
4612
4612
|
install: (e, n) => {
|
|
4613
4613
|
e.component(Rl.name, Rl);
|
|
4614
4614
|
}
|
|
4615
|
-
}, El = /* @__PURE__ */
|
|
4615
|
+
}, El = /* @__PURE__ */ Y({
|
|
4616
4616
|
name: "SagAntdButton",
|
|
4617
4617
|
inheritAttrs: !1,
|
|
4618
4618
|
__name: "SagAntdButton",
|
|
@@ -4635,20 +4635,20 @@ const Kc = {
|
|
|
4635
4635
|
};
|
|
4636
4636
|
return (r, o) => {
|
|
4637
4637
|
const i = L("a-button");
|
|
4638
|
-
return
|
|
4638
|
+
return O(), z(i, {
|
|
4639
4639
|
round: "",
|
|
4640
4640
|
size: t.size,
|
|
4641
4641
|
type: t.type,
|
|
4642
4642
|
onClick: a,
|
|
4643
4643
|
disabled: t.disabled
|
|
4644
4644
|
}, {
|
|
4645
|
-
icon:
|
|
4646
|
-
t.icon !== "none" ? (
|
|
4645
|
+
icon: N(() => [
|
|
4646
|
+
t.icon !== "none" ? (O(), z(je, {
|
|
4647
4647
|
key: 0,
|
|
4648
4648
|
icon: t.icon
|
|
4649
|
-
}, null, 8, ["icon"])) :
|
|
4649
|
+
}, null, 8, ["icon"])) : R("", !0)
|
|
4650
4650
|
]),
|
|
4651
|
-
default:
|
|
4651
|
+
default: N(() => [
|
|
4652
4652
|
pe(" " + me(t.name), 1)
|
|
4653
4653
|
]),
|
|
4654
4654
|
_: 1
|
|
@@ -4659,7 +4659,7 @@ const Kc = {
|
|
|
4659
4659
|
install: (e, n) => {
|
|
4660
4660
|
e.component(El.name, El);
|
|
4661
4661
|
}
|
|
4662
|
-
}, Bc = { class: "sag-antd-cascader-wrapper" }, Bl = /* @__PURE__ */
|
|
4662
|
+
}, Bc = { class: "sag-antd-cascader-wrapper" }, Bl = /* @__PURE__ */ Y({
|
|
4663
4663
|
name: "SagAntdCascader",
|
|
4664
4664
|
inheritAttrs: !1,
|
|
4665
4665
|
__name: "SagAntdCascader",
|
|
@@ -4685,33 +4685,33 @@ const Kc = {
|
|
|
4685
4685
|
emits: ["update:value", "change"],
|
|
4686
4686
|
setup(e, { expose: n, emit: t }) {
|
|
4687
4687
|
const l = e, a = T.application || "", r = T.ctxPath || "", o = "请输入" + l.title + "搜索", i = l.fieldNames.label, u = l.fieldNames.value, c = V([]), d = V([]), f = async () => {
|
|
4688
|
-
const
|
|
4688
|
+
const w = await _r(
|
|
4689
4689
|
ae(r, l.requestUrl),
|
|
4690
4690
|
l.requestParams,
|
|
4691
4691
|
a,
|
|
4692
4692
|
"CASCADER_" + l.cacheKey
|
|
4693
4693
|
);
|
|
4694
|
-
d.value =
|
|
4695
|
-
}, g = t,
|
|
4696
|
-
s(v) ? (g("update:value",
|
|
4697
|
-
}, p = (
|
|
4698
|
-
c.value =
|
|
4694
|
+
d.value = w;
|
|
4695
|
+
}, g = t, x = (w, v) => {
|
|
4696
|
+
s(v) ? (g("update:value", w[w.length - 1]), g("change", v[v.length - 1])) : (g("update:value", null), g("change", null));
|
|
4697
|
+
}, p = (w, v) => v.some((y) => y[i].indexOf(w) > -1), m = () => d.value.filter((v) => v[u] === c.value[c.value.length - 1])[i], C = () => c.value, S = (w) => {
|
|
4698
|
+
c.value = w, g("update:value", w);
|
|
4699
4699
|
}, b = () => {
|
|
4700
4700
|
c.value = null, g("update:value", null), g("change", null);
|
|
4701
4701
|
};
|
|
4702
|
-
return
|
|
4702
|
+
return ie(() => {
|
|
4703
4703
|
f();
|
|
4704
4704
|
}), n({
|
|
4705
4705
|
getName: m,
|
|
4706
|
-
getValue:
|
|
4707
|
-
setValue:
|
|
4706
|
+
getValue: C,
|
|
4707
|
+
setValue: S,
|
|
4708
4708
|
resetValue: b
|
|
4709
|
-
}), (
|
|
4710
|
-
const
|
|
4711
|
-
return
|
|
4712
|
-
|
|
4709
|
+
}), (w, v) => {
|
|
4710
|
+
const y = L("a-cascader");
|
|
4711
|
+
return O(), F("div", Bc, [
|
|
4712
|
+
q(y, {
|
|
4713
4713
|
value: c.value,
|
|
4714
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
4714
|
+
"onUpdate:value": v[0] || (v[0] = (k) => c.value = k),
|
|
4715
4715
|
options: d.value,
|
|
4716
4716
|
fieldNames: l.fieldNames,
|
|
4717
4717
|
"show-search": { filter: p },
|
|
@@ -4719,7 +4719,7 @@ const Kc = {
|
|
|
4719
4719
|
clearable: l.clearable,
|
|
4720
4720
|
changeOnSelect: l.changeOnSelect,
|
|
4721
4721
|
placeholder: o,
|
|
4722
|
-
onChange:
|
|
4722
|
+
onChange: x,
|
|
4723
4723
|
style: { width: "100%" }
|
|
4724
4724
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect"])
|
|
4725
4725
|
]);
|
|
@@ -4729,7 +4729,7 @@ const Kc = {
|
|
|
4729
4729
|
install: (e, n) => {
|
|
4730
4730
|
e.component(Bl.name, Bl);
|
|
4731
4731
|
}
|
|
4732
|
-
}, Lc = { key: 1 }, Ll = /* @__PURE__ */
|
|
4732
|
+
}, Lc = { key: 1 }, Ll = /* @__PURE__ */ Y({
|
|
4733
4733
|
name: "SagAntdCard",
|
|
4734
4734
|
inheritAttrs: !1,
|
|
4735
4735
|
__name: "SagAntdCard",
|
|
@@ -4746,10 +4746,10 @@ const Kc = {
|
|
|
4746
4746
|
//
|
|
4747
4747
|
},
|
|
4748
4748
|
setup(e) {
|
|
4749
|
-
const n = e, t = Object.keys(
|
|
4749
|
+
const n = e, t = Object.keys(ct()), l = t.filter((r) => r === "extra"), a = t.filter((r) => r === "title");
|
|
4750
4750
|
return (r, o) => {
|
|
4751
4751
|
const i = L("a-card");
|
|
4752
|
-
return
|
|
4752
|
+
return O(), z(i, {
|
|
4753
4753
|
style: { width: "100%" },
|
|
4754
4754
|
size: "small",
|
|
4755
4755
|
headStyle: n.headStyle,
|
|
@@ -4757,22 +4757,22 @@ const Kc = {
|
|
|
4757
4757
|
hoverable: n.hoverable,
|
|
4758
4758
|
loading: n.loading
|
|
4759
4759
|
}, qe({
|
|
4760
|
-
default:
|
|
4760
|
+
default: N(() => [
|
|
4761
4761
|
xe(r.$slots, "default")
|
|
4762
4762
|
]),
|
|
4763
4763
|
_: 2
|
|
4764
4764
|
}, [
|
|
4765
|
-
|
|
4765
|
+
_(a).length === 1 || _(s)(n.title) ? {
|
|
4766
4766
|
name: "title",
|
|
4767
|
-
fn:
|
|
4768
|
-
|
|
4769
|
-
|
|
4767
|
+
fn: N(() => [
|
|
4768
|
+
_(a).length === 1 ? xe(r.$slots, "title", { key: 0 }) : R("", !0),
|
|
4769
|
+
_(a).length !== 1 ? (O(), F("span", Lc, me(n.title), 1)) : R("", !0)
|
|
4770
4770
|
]),
|
|
4771
4771
|
key: "0"
|
|
4772
4772
|
} : void 0,
|
|
4773
|
-
|
|
4773
|
+
_(l).length === 1 ? {
|
|
4774
4774
|
name: "extra",
|
|
4775
|
-
fn:
|
|
4775
|
+
fn: N(() => [
|
|
4776
4776
|
xe(r.$slots, "extra")
|
|
4777
4777
|
]),
|
|
4778
4778
|
key: "1"
|
|
@@ -4784,7 +4784,7 @@ const Kc = {
|
|
|
4784
4784
|
install: (e, n) => {
|
|
4785
4785
|
e.component(Ll.name, Ll);
|
|
4786
4786
|
}
|
|
4787
|
-
}, Il = /* @__PURE__ */
|
|
4787
|
+
}, Il = /* @__PURE__ */ Y({
|
|
4788
4788
|
name: "SagAntdInput",
|
|
4789
4789
|
inheritAttrs: !1,
|
|
4790
4790
|
__name: "SagAntdInput",
|
|
@@ -4825,8 +4825,8 @@ const Kc = {
|
|
|
4825
4825
|
setValue: u,
|
|
4826
4826
|
resetValue: c
|
|
4827
4827
|
}), (f, g) => {
|
|
4828
|
-
const
|
|
4829
|
-
return
|
|
4828
|
+
const x = L("a-input");
|
|
4829
|
+
return O(), z(x, {
|
|
4830
4830
|
value: a.value,
|
|
4831
4831
|
"onUpdate:value": g[0] || (g[0] = (p) => a.value = p),
|
|
4832
4832
|
placeholder: l.placeholder,
|
|
@@ -4841,7 +4841,7 @@ const Kc = {
|
|
|
4841
4841
|
install: (e, n) => {
|
|
4842
4842
|
e.component(Il.name, Il);
|
|
4843
4843
|
}
|
|
4844
|
-
}, Ul = /* @__PURE__ */
|
|
4844
|
+
}, Ul = /* @__PURE__ */ Y({
|
|
4845
4845
|
name: "SagAntdInputNumber",
|
|
4846
4846
|
inheritAttrs: !1,
|
|
4847
4847
|
__name: "SagAntdInputNumber",
|
|
@@ -4882,8 +4882,8 @@ const Kc = {
|
|
|
4882
4882
|
setValue: u,
|
|
4883
4883
|
resetValue: c
|
|
4884
4884
|
}), (f, g) => {
|
|
4885
|
-
const
|
|
4886
|
-
return
|
|
4885
|
+
const x = L("a-input-number");
|
|
4886
|
+
return O(), z(x, {
|
|
4887
4887
|
value: a.value,
|
|
4888
4888
|
"onUpdate:value": g[0] || (g[0] = (p) => a.value = p),
|
|
4889
4889
|
placeholder: l.placeholder,
|
|
@@ -4899,7 +4899,7 @@ const Kc = {
|
|
|
4899
4899
|
install: (e, n) => {
|
|
4900
4900
|
e.component(Ul.name, Ul);
|
|
4901
4901
|
}
|
|
4902
|
-
}, Fl = /* @__PURE__ */
|
|
4902
|
+
}, Fl = /* @__PURE__ */ Y({
|
|
4903
4903
|
name: "SagAntdInputSearch",
|
|
4904
4904
|
inheritAttrs: !1,
|
|
4905
4905
|
__name: "SagAntdInputSearch",
|
|
@@ -4927,7 +4927,7 @@ const Kc = {
|
|
|
4927
4927
|
}
|
|
4928
4928
|
), (i, u) => {
|
|
4929
4929
|
const c = L("a-input-search");
|
|
4930
|
-
return
|
|
4930
|
+
return O(), z(c, {
|
|
4931
4931
|
value: l.value,
|
|
4932
4932
|
"onUpdate:value": u[0] || (u[0] = (d) => l.value = d),
|
|
4933
4933
|
"enter-button": t.title,
|
|
@@ -4937,9 +4937,9 @@ const Kc = {
|
|
|
4937
4937
|
}, qe({ _: 2 }, [
|
|
4938
4938
|
t.showSuffix && !t.disabled ? {
|
|
4939
4939
|
name: "suffix",
|
|
4940
|
-
fn:
|
|
4940
|
+
fn: N(() => [
|
|
4941
4941
|
te("a", { onClick: o }, [
|
|
4942
|
-
|
|
4942
|
+
q(je, { icon: "close" })
|
|
4943
4943
|
])
|
|
4944
4944
|
]),
|
|
4945
4945
|
key: "0"
|
|
@@ -4951,7 +4951,7 @@ const Kc = {
|
|
|
4951
4951
|
install: (e, n) => {
|
|
4952
4952
|
e.component(Fl.name, Fl);
|
|
4953
4953
|
}
|
|
4954
|
-
}, Hl = /* @__PURE__ */
|
|
4954
|
+
}, Hl = /* @__PURE__ */ Y({
|
|
4955
4955
|
name: "SagAntdTextarea",
|
|
4956
4956
|
inheritAttrs: !1,
|
|
4957
4957
|
__name: "SagAntdTextarea",
|
|
@@ -4994,8 +4994,8 @@ const Kc = {
|
|
|
4994
4994
|
setValue: u,
|
|
4995
4995
|
resetValue: c
|
|
4996
4996
|
}), (f, g) => {
|
|
4997
|
-
const
|
|
4998
|
-
return
|
|
4997
|
+
const x = L("a-textarea");
|
|
4998
|
+
return O(), z(x, {
|
|
4999
4999
|
value: a.value,
|
|
5000
5000
|
"onUpdate:value": g[0] || (g[0] = (p) => a.value = p),
|
|
5001
5001
|
placeholder: l.placeholder,
|
|
@@ -5012,7 +5012,7 @@ const Kc = {
|
|
|
5012
5012
|
install: (e, n) => {
|
|
5013
5013
|
e.component(Hl.name, Hl);
|
|
5014
5014
|
}
|
|
5015
|
-
}, Yl = /* @__PURE__ */
|
|
5015
|
+
}, Yl = /* @__PURE__ */ Y({
|
|
5016
5016
|
name: "SagAntdSelect",
|
|
5017
5017
|
inheritAttrs: !1,
|
|
5018
5018
|
__name: "SagAntdSelect",
|
|
@@ -5031,70 +5031,73 @@ const Kc = {
|
|
|
5031
5031
|
//
|
|
5032
5032
|
maxTagCount: { type: Number, default: null },
|
|
5033
5033
|
//
|
|
5034
|
-
extraOptions: { type: Array, default: null }
|
|
5034
|
+
extraOptions: { type: Array, default: null },
|
|
5035
|
+
//
|
|
5036
|
+
mountainTop: { type: Boolean, default: !0 }
|
|
5035
5037
|
//
|
|
5036
5038
|
},
|
|
5037
5039
|
emits: ["update:value", "update:label", "change"],
|
|
5038
5040
|
setup(e, { expose: n, emit: t }) {
|
|
5039
|
-
const l = e, a = $.toString(l.value, null), r = l.multiple ? V(s(a) ? a.split(",") : []) : V(a), o = t, i = V(null), u = V(null), c = V([]), d = l.maxTagCount || 10, f = async () => {
|
|
5040
|
-
const
|
|
5041
|
-
return await sn(T.application,
|
|
5042
|
-
},
|
|
5043
|
-
|
|
5044
|
-
},
|
|
5045
|
-
l.multiple ? r.value = s(
|
|
5046
|
-
},
|
|
5047
|
-
|
|
5041
|
+
const l = e, a = $.toString(l.value, null), r = l.multiple ? V(s(a) ? a.split(",") : []) : V(a), o = t, i = V(null), u = V(null), c = V([]), d = l.maxTagCount || 10, f = (v) => l.mountainTop ? document.body : v.parentNode, g = async () => {
|
|
5042
|
+
const v = ae(T.ctxPath, T.requestDictUrl);
|
|
5043
|
+
return await sn(T.application, v, l.requestParams);
|
|
5044
|
+
}, x = (v, y) => y.label.toLowerCase().indexOf(v.toLowerCase()) >= 0, p = (v, y) => {
|
|
5045
|
+
b(!0);
|
|
5046
|
+
}, m = () => r.value, C = (v) => {
|
|
5047
|
+
l.multiple ? r.value = s(v) ? v.split(",") : null : r.value = v, b();
|
|
5048
|
+
}, S = () => {
|
|
5049
|
+
C("");
|
|
5048
5050
|
};
|
|
5049
5051
|
be(
|
|
5050
5052
|
() => l.value,
|
|
5051
|
-
(
|
|
5052
|
-
l.multiple ? r.value = s(
|
|
5053
|
+
(v) => {
|
|
5054
|
+
l.multiple ? r.value = s(v) ? v.split(",") : [] : r.value = v;
|
|
5053
5055
|
}
|
|
5054
5056
|
);
|
|
5055
|
-
const
|
|
5056
|
-
l.multiple ? o("update:value", r.value.join(",")) : o("update:value", r.value),
|
|
5057
|
-
},
|
|
5057
|
+
const b = (v = !1) => {
|
|
5058
|
+
l.multiple ? o("update:value", r.value.join(",")) : o("update:value", r.value), w(v);
|
|
5059
|
+
}, w = (v = !1) => {
|
|
5058
5060
|
if (s(r.value))
|
|
5059
5061
|
if (l.multiple) {
|
|
5060
|
-
const
|
|
5061
|
-
for (let
|
|
5062
|
-
const
|
|
5063
|
-
s(
|
|
5062
|
+
const y = [], k = [];
|
|
5063
|
+
for (let j in r.value) {
|
|
5064
|
+
const I = c.value.filter((U) => U.value === r.value[j]);
|
|
5065
|
+
s(I) && (y.push(I[0].label), k.push(I[0]));
|
|
5064
5066
|
}
|
|
5065
|
-
i.value =
|
|
5067
|
+
i.value = y, u.value = k;
|
|
5066
5068
|
} else {
|
|
5067
|
-
const
|
|
5068
|
-
s(
|
|
5069
|
+
const y = c.value.filter((k) => k.value === r.value);
|
|
5070
|
+
s(y) && (i.value = y[0].label, u.value = y[0]);
|
|
5069
5071
|
}
|
|
5070
5072
|
else
|
|
5071
5073
|
i.value = "", u.value = null;
|
|
5072
|
-
o("update:label", i.value),
|
|
5074
|
+
o("update:label", i.value), v && o("change", u.value);
|
|
5073
5075
|
};
|
|
5074
5076
|
return n({
|
|
5075
|
-
getValue:
|
|
5076
|
-
setValue:
|
|
5077
|
-
resetValue:
|
|
5078
|
-
}),
|
|
5079
|
-
|
|
5080
|
-
var
|
|
5081
|
-
c.value =
|
|
5077
|
+
getValue: m,
|
|
5078
|
+
setValue: C,
|
|
5079
|
+
resetValue: S
|
|
5080
|
+
}), ie(() => {
|
|
5081
|
+
g().then((v) => {
|
|
5082
|
+
var y;
|
|
5083
|
+
c.value = v, s(l.extraOptions) && ((y = l.extraOptions) == null ? void 0 : y.length) > 0 && c.value.unshift(...l.extraOptions), s(r.value) && !s(i.value) && w();
|
|
5082
5084
|
});
|
|
5083
|
-
}), (
|
|
5084
|
-
const
|
|
5085
|
-
return
|
|
5086
|
-
value:
|
|
5087
|
-
"onUpdate:value":
|
|
5088
|
-
onChange:
|
|
5085
|
+
}), (v, y) => {
|
|
5086
|
+
const k = L("a-select");
|
|
5087
|
+
return O(), z(k, {
|
|
5088
|
+
value: _(r),
|
|
5089
|
+
"onUpdate:value": y[0] || (y[0] = (j) => st(r) ? r.value = j : null),
|
|
5090
|
+
onChange: p,
|
|
5089
5091
|
placeholder: "--请选择--",
|
|
5090
5092
|
allowClear: l.clearable,
|
|
5091
5093
|
mode: e.multiple ? "multiple" : "",
|
|
5092
|
-
"max-tag-count":
|
|
5094
|
+
"max-tag-count": _(d),
|
|
5093
5095
|
options: c.value,
|
|
5094
5096
|
"show-search": l.filterable,
|
|
5095
|
-
"filter-option":
|
|
5097
|
+
"filter-option": x,
|
|
5096
5098
|
defaultActiveFirstOption: !l.multiple,
|
|
5097
5099
|
autoClearSearchValue: !l.filterable,
|
|
5100
|
+
getPopupContainer: f,
|
|
5098
5101
|
disabled: e.disabled,
|
|
5099
5102
|
size: "medium",
|
|
5100
5103
|
style: { width: "100%" }
|
|
@@ -5105,7 +5108,7 @@ const Kc = {
|
|
|
5105
5108
|
install: (e, n) => {
|
|
5106
5109
|
e.component(Yl.name, Yl);
|
|
5107
5110
|
}
|
|
5108
|
-
}, Ic = { class: "vxe-form-ant-select" }, Wl = /* @__PURE__ */
|
|
5111
|
+
}, Ic = { class: "vxe-form-ant-select" }, Wl = /* @__PURE__ */ Y({
|
|
5109
5112
|
name: "SagAntdSelectList",
|
|
5110
5113
|
inheritAttrs: !1,
|
|
5111
5114
|
__name: "SagAntdSelectList",
|
|
@@ -5132,80 +5135,83 @@ const Kc = {
|
|
|
5132
5135
|
//
|
|
5133
5136
|
tenantId: { type: String, default: null },
|
|
5134
5137
|
//
|
|
5135
|
-
requiredTenant: { type: Boolean, default: !0 }
|
|
5138
|
+
requiredTenant: { type: Boolean, default: !0 },
|
|
5139
|
+
//
|
|
5140
|
+
mountainTop: { type: Boolean, default: !0 }
|
|
5136
5141
|
//
|
|
5137
5142
|
},
|
|
5138
5143
|
emits: ["update:value", "update:label", "change"],
|
|
5139
5144
|
setup(e, { expose: n, emit: t }) {
|
|
5140
|
-
const l = e, a = V(l.value ? l.value : l.multiple ? [] : null), r = V(l.label ? l.label : l.multiple ? {} : null), o = V({}), i = V([]), u = V(!1), c = t, d = "请输入" + l.title + "搜索", f = async () => {
|
|
5145
|
+
const l = e, a = V(l.value ? l.value : l.multiple ? [] : null), r = V(l.label ? l.label : l.multiple ? {} : null), o = V({}), i = V([]), u = V(!1), c = t, d = "请输入" + l.title + "搜索", f = (j) => l.mountainTop ? document.body : j.parentNode, g = async () => {
|
|
5141
5146
|
if (l.requiredTenant && !s(l.tenantId) && !s(l.corpId))
|
|
5142
5147
|
return i.value = [], [];
|
|
5143
|
-
let
|
|
5144
|
-
Object.assign(
|
|
5145
|
-
const
|
|
5146
|
-
return u.value = !1, i.value =
|
|
5147
|
-
},
|
|
5148
|
-
|
|
5149
|
-
}, 300),
|
|
5150
|
-
|
|
5151
|
-
|
|
5148
|
+
let j = { corpId: l.corpId, tenantId: l.tenantId };
|
|
5149
|
+
Object.assign(j, l.requestParams), i.value = [], u.value = !0;
|
|
5150
|
+
const I = await Ie(l.requestUrl, j);
|
|
5151
|
+
return u.value = !1, i.value = I, I;
|
|
5152
|
+
}, x = Mt(() => {
|
|
5153
|
+
g();
|
|
5154
|
+
}, 300), p = (j) => {
|
|
5155
|
+
C(j).then(() => {
|
|
5156
|
+
k(!0);
|
|
5152
5157
|
});
|
|
5153
|
-
},
|
|
5154
|
-
if (a.value =
|
|
5155
|
-
a.value.forEach((
|
|
5156
|
-
let
|
|
5157
|
-
|
|
5158
|
+
}, m = (j, I) => I.label.toLowerCase().indexOf(Me(j).toLowerCase()) >= 0, C = async (j) => {
|
|
5159
|
+
if (a.value = j, l.multiple)
|
|
5160
|
+
a.value.forEach((I) => {
|
|
5161
|
+
let U = i.value.filter((Q) => Q.value === I);
|
|
5162
|
+
U.length === 1 && (r.value[I] = U[0].label, o.value[I] = U[0]);
|
|
5158
5163
|
});
|
|
5159
5164
|
else {
|
|
5160
|
-
let
|
|
5161
|
-
|
|
5165
|
+
let I = i.value.filter((U) => U.value === j);
|
|
5166
|
+
I.length === 1 ? (r.value = I[0].label, o.value = I[0]) : (r.value = "", o.value = null);
|
|
5162
5167
|
}
|
|
5163
|
-
},
|
|
5164
|
-
|
|
5165
|
-
|
|
5168
|
+
}, S = () => r.value, b = () => a.value, w = (j) => {
|
|
5169
|
+
C(j).then(() => {
|
|
5170
|
+
k();
|
|
5166
5171
|
});
|
|
5167
|
-
},
|
|
5168
|
-
a.value = l.multiple ? [] : null, r.value = null, o.value = null,
|
|
5169
|
-
},
|
|
5170
|
-
|
|
5171
|
-
},
|
|
5172
|
-
c("update:value", a.value), c("update:label", r.value),
|
|
5172
|
+
}, v = () => {
|
|
5173
|
+
a.value = l.multiple ? [] : null, r.value = null, o.value = null, k();
|
|
5174
|
+
}, y = (j) => {
|
|
5175
|
+
v(), i.value = [], j && x();
|
|
5176
|
+
}, k = (j = !1) => {
|
|
5177
|
+
c("update:value", a.value), c("update:label", r.value), j && c("change", o.value);
|
|
5173
5178
|
};
|
|
5174
5179
|
return be(
|
|
5175
5180
|
() => [l.tenantId, l.corpId, l.value],
|
|
5176
|
-
async ([
|
|
5177
|
-
const
|
|
5178
|
-
(
|
|
5181
|
+
async ([j, I, U], [Q, D, ue]) => {
|
|
5182
|
+
const ve = j !== Q, Ce = I !== D, Ue = U !== a.value;
|
|
5183
|
+
(Ce || ve) && (v(), await g()), Ue && w(U);
|
|
5179
5184
|
}
|
|
5180
|
-
),
|
|
5181
|
-
|
|
5185
|
+
), ie(async () => {
|
|
5186
|
+
g();
|
|
5182
5187
|
}), n({
|
|
5183
|
-
getName:
|
|
5184
|
-
getValue:
|
|
5185
|
-
setValue:
|
|
5186
|
-
resetValue:
|
|
5187
|
-
clearValue:
|
|
5188
|
-
}), (
|
|
5189
|
-
const
|
|
5190
|
-
return
|
|
5191
|
-
|
|
5188
|
+
getName: S,
|
|
5189
|
+
getValue: b,
|
|
5190
|
+
setValue: w,
|
|
5191
|
+
resetValue: v,
|
|
5192
|
+
clearValue: y
|
|
5193
|
+
}), (j, I) => {
|
|
5194
|
+
const U = L("a-spin"), Q = L("a-select");
|
|
5195
|
+
return O(), F("div", Ic, [
|
|
5196
|
+
q(Q, {
|
|
5192
5197
|
value: a.value,
|
|
5193
|
-
"onUpdate:value":
|
|
5198
|
+
"onUpdate:value": I[0] || (I[0] = (D) => a.value = D),
|
|
5194
5199
|
placeholder: d,
|
|
5195
5200
|
style: { width: "100%" },
|
|
5196
|
-
"filter-option":
|
|
5201
|
+
"filter-option": m,
|
|
5197
5202
|
disabled: l.disabled,
|
|
5198
5203
|
mode: e.multiple ? "multiple" : "",
|
|
5199
5204
|
"max-tag-count": l.maxTagCount,
|
|
5200
5205
|
options: i.value,
|
|
5201
5206
|
allowClear: l.clearable,
|
|
5202
|
-
|
|
5207
|
+
getPopupContainer: f,
|
|
5208
|
+
onChange: p,
|
|
5203
5209
|
"show-search": ""
|
|
5204
5210
|
}, qe({ _: 2 }, [
|
|
5205
5211
|
u.value ? {
|
|
5206
5212
|
name: "notFoundContent",
|
|
5207
|
-
fn:
|
|
5208
|
-
|
|
5213
|
+
fn: N(() => [
|
|
5214
|
+
q(U, { size: "small" })
|
|
5209
5215
|
]),
|
|
5210
5216
|
key: "0"
|
|
5211
5217
|
} : void 0
|
|
@@ -5217,7 +5223,7 @@ const Kc = {
|
|
|
5217
5223
|
install: (e, n) => {
|
|
5218
5224
|
e.component(Wl.name, Wl);
|
|
5219
5225
|
}
|
|
5220
|
-
}, Uc = { class: "vxe-form-ant-select" }, Gl = /* @__PURE__ */
|
|
5226
|
+
}, Uc = { class: "vxe-form-ant-select" }, Gl = /* @__PURE__ */ Y({
|
|
5221
5227
|
name: "SagAntdSelectPull",
|
|
5222
5228
|
inheritAttrs: !1,
|
|
5223
5229
|
__name: "SagAntdSelectPull",
|
|
@@ -5240,70 +5246,72 @@ const Kc = {
|
|
|
5240
5246
|
//
|
|
5241
5247
|
corpId: { type: String, default: null },
|
|
5242
5248
|
//
|
|
5243
|
-
requiredTenant: { type: Boolean, default: !0 }
|
|
5249
|
+
requiredTenant: { type: Boolean, default: !0 },
|
|
5250
|
+
//
|
|
5251
|
+
mountainTop: { type: Boolean, default: !0 }
|
|
5244
5252
|
//
|
|
5245
5253
|
},
|
|
5246
5254
|
emits: ["update:value", "update:label", "change"],
|
|
5247
5255
|
setup(e, { expose: n, emit: t }) {
|
|
5248
|
-
const l = e, a = V(l.value || null), r = V(l.label || ""), o = V({}), i = V([]), u = V(!1), c = t, d = "请输入" + l.title + "搜索", f = async (
|
|
5256
|
+
const l = e, a = V(l.value || null), r = V(l.label || ""), o = V({}), i = V([]), u = V(!1), c = t, d = "请输入" + l.title + "搜索", f = (y) => l.mountainTop ? document.body : y.parentNode, g = async (y) => {
|
|
5249
5257
|
if (i.value = [], l.requiredTenant && !s(l.tenantId) && !s(l.corpId))
|
|
5250
5258
|
return [];
|
|
5251
|
-
if (s(
|
|
5252
|
-
let
|
|
5253
|
-
Object.assign(
|
|
5254
|
-
const
|
|
5255
|
-
return u.value = !1, i.value =
|
|
5259
|
+
if (s(y)) {
|
|
5260
|
+
let k = { corpId: l.corpId, tenantId: l.tenantId, searchValue: Me(y) };
|
|
5261
|
+
Object.assign(k, l.requestParams), u.value = !0;
|
|
5262
|
+
const j = await Ie(l.requestUrl, k);
|
|
5263
|
+
return u.value = !1, i.value = j, j;
|
|
5256
5264
|
} else
|
|
5257
5265
|
return [];
|
|
5258
|
-
},
|
|
5259
|
-
a.value =
|
|
5260
|
-
|
|
5266
|
+
}, x = (y) => {
|
|
5267
|
+
a.value = y, m(y).then((k) => {
|
|
5268
|
+
v(!0);
|
|
5261
5269
|
});
|
|
5262
|
-
},
|
|
5263
|
-
|
|
5264
|
-
}, 500),
|
|
5265
|
-
if (s(
|
|
5266
|
-
let
|
|
5267
|
-
return
|
|
5270
|
+
}, p = Mt((y) => {
|
|
5271
|
+
g(y);
|
|
5272
|
+
}, 500), m = async (y) => {
|
|
5273
|
+
if (s(y)) {
|
|
5274
|
+
let k = i.value.filter((j) => j.value === y);
|
|
5275
|
+
return k.length === 1 ? (a.value = k[0].value, r.value = k[0].label, o.value = k[0], !0) : (a.value = null, r.value = "", o.value = null, !1);
|
|
5268
5276
|
} else
|
|
5269
5277
|
return a.value = null, r.value = "", o.value = null, !0;
|
|
5270
|
-
},
|
|
5271
|
-
a.value =
|
|
5272
|
-
|
|
5278
|
+
}, C = () => r.value, S = () => a.value, b = (y) => {
|
|
5279
|
+
a.value = y, m(y).then((k) => {
|
|
5280
|
+
k && v();
|
|
5273
5281
|
});
|
|
5274
|
-
},
|
|
5275
|
-
r.value = "", a.value = null, o.value = null,
|
|
5276
|
-
},
|
|
5277
|
-
c("update:value", a.value), c("update:label", r.value),
|
|
5282
|
+
}, w = () => {
|
|
5283
|
+
r.value = "", a.value = null, o.value = null, v();
|
|
5284
|
+
}, v = (y = !1) => {
|
|
5285
|
+
c("update:value", a.value), c("update:label", r.value), y && c("change", o.value);
|
|
5278
5286
|
};
|
|
5279
5287
|
return be(
|
|
5280
5288
|
() => [l.tenantId, l.corpId, l.value],
|
|
5281
|
-
async ([
|
|
5282
|
-
const
|
|
5283
|
-
(
|
|
5284
|
-
|
|
5285
|
-
|
|
5289
|
+
async ([y, k, j], [I, U, Q]) => {
|
|
5290
|
+
const D = y !== I, ue = k !== U, ve = j !== a.value;
|
|
5291
|
+
(ue || D) && (i.value = [], w()), ve && m(j).then((Ce) => {
|
|
5292
|
+
Ce || g(j).then(() => {
|
|
5293
|
+
b(j);
|
|
5286
5294
|
});
|
|
5287
5295
|
});
|
|
5288
5296
|
}
|
|
5289
|
-
),
|
|
5297
|
+
), ie(async () => {
|
|
5290
5298
|
s(a.value) && (s(r.value) ? i.value = [
|
|
5291
5299
|
{
|
|
5292
5300
|
value: a.value,
|
|
5293
5301
|
label: r.value
|
|
5294
5302
|
}
|
|
5295
|
-
] :
|
|
5303
|
+
] : g(a.value));
|
|
5296
5304
|
}), n({
|
|
5297
|
-
getName:
|
|
5298
|
-
getValue:
|
|
5299
|
-
setValue:
|
|
5300
|
-
resetValue:
|
|
5301
|
-
}), (
|
|
5302
|
-
const
|
|
5303
|
-
return
|
|
5304
|
-
|
|
5305
|
+
getName: C,
|
|
5306
|
+
getValue: S,
|
|
5307
|
+
setValue: b,
|
|
5308
|
+
resetValue: w
|
|
5309
|
+
}), (y, k) => {
|
|
5310
|
+
const j = L("a-spin"), I = L("a-select");
|
|
5311
|
+
return O(), F("div", Uc, [
|
|
5312
|
+
q(I, {
|
|
5305
5313
|
value: a.value,
|
|
5306
|
-
"onUpdate:value":
|
|
5314
|
+
"onUpdate:value": k[0] || (k[0] = (U) => a.value = U),
|
|
5307
5315
|
placeholder: d,
|
|
5308
5316
|
style: { width: "100%" },
|
|
5309
5317
|
"filter-option": !1,
|
|
@@ -5312,14 +5320,15 @@ const Kc = {
|
|
|
5312
5320
|
allowClear: l.clearable,
|
|
5313
5321
|
"default-active-first-option": !1,
|
|
5314
5322
|
"show-arrow": !1,
|
|
5315
|
-
|
|
5316
|
-
|
|
5323
|
+
getPopupContainer: f,
|
|
5324
|
+
onChange: x,
|
|
5325
|
+
onSearch: _(p),
|
|
5317
5326
|
"show-search": ""
|
|
5318
5327
|
}, qe({ _: 2 }, [
|
|
5319
5328
|
u.value ? {
|
|
5320
5329
|
name: "notFoundContent",
|
|
5321
|
-
fn:
|
|
5322
|
-
j
|
|
5330
|
+
fn: N(() => [
|
|
5331
|
+
q(j, { size: "small" })
|
|
5323
5332
|
]),
|
|
5324
5333
|
key: "0"
|
|
5325
5334
|
} : void 0
|
|
@@ -5331,7 +5340,7 @@ const Kc = {
|
|
|
5331
5340
|
install: (e, n) => {
|
|
5332
5341
|
e.component(Gl.name, Gl);
|
|
5333
5342
|
}
|
|
5334
|
-
}, Fc = { key: 1 }, Jl = /* @__PURE__ */
|
|
5343
|
+
}, Fc = { key: 1 }, Jl = /* @__PURE__ */ Y({
|
|
5335
5344
|
name: "SagAntdPanel",
|
|
5336
5345
|
inheritAttrs: !1,
|
|
5337
5346
|
__name: "SagAntdPanel",
|
|
@@ -5344,26 +5353,26 @@ const Kc = {
|
|
|
5344
5353
|
//
|
|
5345
5354
|
},
|
|
5346
5355
|
setup(e) {
|
|
5347
|
-
const n = e, t = Object.keys(
|
|
5356
|
+
const n = e, t = Object.keys(ct()), l = t.filter((i) => i !== "header"), a = t.filter((i) => i === "header"), r = V(n.activeKey), o = V(n.header instanceof Object ? n.header : { default: n.header });
|
|
5348
5357
|
return (i, u) => {
|
|
5349
5358
|
const c = L("a-collapse-panel"), d = L("a-collapse");
|
|
5350
|
-
return
|
|
5359
|
+
return O(), z(d, {
|
|
5351
5360
|
activeKey: r.value,
|
|
5352
5361
|
"onUpdate:activeKey": u[0] || (u[0] = (f) => r.value = f),
|
|
5353
5362
|
expandIconPosition: "end",
|
|
5354
5363
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5355
5364
|
accordion: ""
|
|
5356
5365
|
}, {
|
|
5357
|
-
default:
|
|
5358
|
-
(
|
|
5366
|
+
default: N(() => [
|
|
5367
|
+
(O(!0), F(we, null, Ae(_(l), (f) => (O(), z(c, {
|
|
5359
5368
|
key: f,
|
|
5360
5369
|
forceRender: "",
|
|
5361
5370
|
showArrow: n.showArrow
|
|
5362
5371
|
}, {
|
|
5363
|
-
header:
|
|
5364
|
-
|
|
5372
|
+
header: N(() => [
|
|
5373
|
+
_(a).length === 1 ? xe(i.$slots, "header", { key: 0 }) : (O(), F("span", Fc, me(o.value[f]), 1))
|
|
5365
5374
|
]),
|
|
5366
|
-
default:
|
|
5375
|
+
default: N(() => [
|
|
5367
5376
|
xe(i.$slots, f)
|
|
5368
5377
|
]),
|
|
5369
5378
|
_: 2
|
|
@@ -5377,12 +5386,12 @@ const Kc = {
|
|
|
5377
5386
|
install: (e, n) => {
|
|
5378
5387
|
e.component(Jl.name, Jl);
|
|
5379
5388
|
}
|
|
5380
|
-
}, Hc = { class: "sag-antd-space-wrapper" }, Ql = /* @__PURE__ */
|
|
5389
|
+
}, Hc = { class: "sag-antd-space-wrapper" }, Ql = /* @__PURE__ */ Y({
|
|
5381
5390
|
name: "SagAntdSpace",
|
|
5382
5391
|
inheritAttrs: !1,
|
|
5383
5392
|
__name: "SagAntdSpace",
|
|
5384
5393
|
setup(e) {
|
|
5385
|
-
return (n, t) => (
|
|
5394
|
+
return (n, t) => (O(), F("div", Hc, [
|
|
5386
5395
|
xe(n.$slots, "default")
|
|
5387
5396
|
]));
|
|
5388
5397
|
}
|
|
@@ -5391,7 +5400,7 @@ const pd = {
|
|
|
5391
5400
|
install: (e, n) => {
|
|
5392
5401
|
e.component(Ql.name, Ql);
|
|
5393
5402
|
}
|
|
5394
|
-
}, Xl = /* @__PURE__ */
|
|
5403
|
+
}, Xl = /* @__PURE__ */ Y({
|
|
5395
5404
|
name: "SagAntdSwitch",
|
|
5396
5405
|
inheritAttrs: !1,
|
|
5397
5406
|
__name: "SagAntdSwitch",
|
|
@@ -5419,7 +5428,7 @@ const pd = {
|
|
|
5419
5428
|
}
|
|
5420
5429
|
), (o, i) => {
|
|
5421
5430
|
const u = L("a-switch");
|
|
5422
|
-
return
|
|
5431
|
+
return O(), z(u, {
|
|
5423
5432
|
checked: l.value,
|
|
5424
5433
|
"onUpdate:checked": i[0] || (i[0] = (c) => l.value = c),
|
|
5425
5434
|
checkedValue: t.checkedValue,
|
|
@@ -5434,7 +5443,7 @@ const pd = {
|
|
|
5434
5443
|
install: (e, n) => {
|
|
5435
5444
|
e.component(Xl.name, Xl);
|
|
5436
5445
|
}
|
|
5437
|
-
}, Zl = /* @__PURE__ */
|
|
5446
|
+
}, Zl = /* @__PURE__ */ Y({
|
|
5438
5447
|
name: "SagAntdTab",
|
|
5439
5448
|
inheritAttrs: !1,
|
|
5440
5449
|
__name: "SagAntdTab",
|
|
@@ -5456,7 +5465,7 @@ const pd = {
|
|
|
5456
5465
|
},
|
|
5457
5466
|
emits: ["update:activeKey", "change"],
|
|
5458
5467
|
setup(e, { emit: n }) {
|
|
5459
|
-
const t = e, l = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", a = Object.keys(
|
|
5468
|
+
const t = e, l = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", a = Object.keys(ct()), r = a.filter((d) => d != "rightExtra"), o = V(t.activeKey), i = V(t.header instanceof Object ? t.header : { default: t.header }), u = n, c = (d) => {
|
|
5460
5469
|
u("update:activeKey", d), u("change", d);
|
|
5461
5470
|
};
|
|
5462
5471
|
return be(
|
|
@@ -5465,33 +5474,33 @@ const pd = {
|
|
|
5465
5474
|
o.value = d;
|
|
5466
5475
|
}
|
|
5467
5476
|
), (d, f) => {
|
|
5468
|
-
const g = L("a-tab-pane"),
|
|
5469
|
-
return
|
|
5477
|
+
const g = L("a-tab-pane"), x = L("a-tabs");
|
|
5478
|
+
return O(), z(x, {
|
|
5470
5479
|
activeKey: o.value,
|
|
5471
5480
|
"onUpdate:activeKey": f[0] || (f[0] = (p) => o.value = p),
|
|
5472
5481
|
type: t.type,
|
|
5473
5482
|
"tab-position": t.position,
|
|
5474
5483
|
tabBarGutter: t.position === "left" ? 4 : 25,
|
|
5475
|
-
tabBarStyle: { margin: 0, backgroundColor:
|
|
5484
|
+
tabBarStyle: { margin: 0, backgroundColor: _(l) },
|
|
5476
5485
|
onChange: c
|
|
5477
5486
|
}, qe({
|
|
5478
|
-
default:
|
|
5479
|
-
(
|
|
5480
|
-
var
|
|
5481
|
-
return
|
|
5487
|
+
default: N(() => [
|
|
5488
|
+
(O(!0), F(we, null, Ae(_(r), (p, m) => {
|
|
5489
|
+
var C;
|
|
5490
|
+
return O(), z(g, {
|
|
5482
5491
|
key: p,
|
|
5483
|
-
forceRender: t.forceRender && !((
|
|
5492
|
+
forceRender: t.forceRender && !((C = t.notForceRender) != null && C.includes(p)),
|
|
5484
5493
|
style: Ya(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5485
5494
|
}, {
|
|
5486
|
-
tab:
|
|
5495
|
+
tab: N(() => [
|
|
5487
5496
|
te("span", {
|
|
5488
5497
|
style: Ya(m === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5489
5498
|
}, [
|
|
5490
|
-
|
|
5499
|
+
q(je, { icon: "menu" }),
|
|
5491
5500
|
pe(" " + me(i.value[p]), 1)
|
|
5492
5501
|
], 4)
|
|
5493
5502
|
]),
|
|
5494
|
-
default:
|
|
5503
|
+
default: N(() => [
|
|
5495
5504
|
xe(d.$slots, p)
|
|
5496
5505
|
]),
|
|
5497
5506
|
_: 2
|
|
@@ -5500,9 +5509,9 @@ const pd = {
|
|
|
5500
5509
|
]),
|
|
5501
5510
|
_: 2
|
|
5502
5511
|
}, [
|
|
5503
|
-
|
|
5512
|
+
_(a).length !== _(r).length ? {
|
|
5504
5513
|
name: "rightExtra",
|
|
5505
|
-
fn:
|
|
5514
|
+
fn: N(() => [
|
|
5506
5515
|
xe(d.$slots, "rightExtra")
|
|
5507
5516
|
]),
|
|
5508
5517
|
key: "0"
|
|
@@ -5514,7 +5523,7 @@ const pd = {
|
|
|
5514
5523
|
install: (e, n) => {
|
|
5515
5524
|
e.component(Zl.name, Zl);
|
|
5516
5525
|
}
|
|
5517
|
-
}, Kl = /* @__PURE__ */
|
|
5526
|
+
}, Kl = /* @__PURE__ */ Y({
|
|
5518
5527
|
name: "SagAntdOutlined",
|
|
5519
5528
|
inheritAttrs: !1,
|
|
5520
5529
|
__name: "SagAntdOutlined",
|
|
@@ -5523,7 +5532,7 @@ const pd = {
|
|
|
5523
5532
|
},
|
|
5524
5533
|
setup(e) {
|
|
5525
5534
|
const n = e;
|
|
5526
|
-
return (t, l) => (
|
|
5535
|
+
return (t, l) => (O(), z(je, {
|
|
5527
5536
|
icon: n.icon
|
|
5528
5537
|
}, null, 8, ["icon"]));
|
|
5529
5538
|
}
|