sag-ubmp-pc 1.0.21 → 1.0.23
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 +536 -529
- package/dist/sag-ubmp-pc.umd.js +6 -6
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Te, { trim as Pe, debounce as At } from "xe-utils";
|
|
2
|
-
import { inject as de, ref as j, h as Ae, getCurrentInstance as _l, nextTick as lt, reactive as ne, defineComponent as W, createVNode as D, openBlock as x, createElementBlock as
|
|
2
|
+
import { inject as de, ref as j, h as Ae, getCurrentInstance as _l, nextTick as lt, reactive as ne, defineComponent as W, createVNode as D, openBlock as x, createElementBlock as U, Fragment as fe, createBlock as V, unref as S, createCommentVNode as q, onMounted as oe, resolveComponent as E, isRef as st, createSlots as we, withCtx as B, defineAsyncComponent as Ol, computed as xl, resolveDynamicComponent as Cl, mergeProps as ee, createElementVNode as Q, toDisplayString as ae, useAttrs as Pl, provide as Sn, useSlots as Be, watch as ge, withDirectives as wn, createTextVNode as ce, renderList as Ce, renderSlot as re, vShow as _n, toHandlers as kl, normalizeProps as Tl, guardReactiveProps as Al, normalizeStyle as me } from "vue";
|
|
3
3
|
import { Modal as Ml, notification as Ot, message as $l, Spin as jl } from "ant-design-vue";
|
|
4
4
|
import A from "dayjs";
|
|
5
5
|
const ut = "SAG_UBMP_PC$", rt = {
|
|
@@ -78,7 +78,7 @@ function jt(e) {
|
|
|
78
78
|
console[e]("[sag-ubmp-pc]" + n, t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
const le = jt("log"), Na = jt("warn"), dt = jt("error"),
|
|
81
|
+
const le = jt("log"), Na = jt("warn"), dt = jt("error"), Ke = {
|
|
82
82
|
ExcelJS: null,
|
|
83
83
|
FileSaver: null
|
|
84
84
|
}, T = {
|
|
@@ -141,12 +141,12 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
141
141
|
componentType: "vue",
|
|
142
142
|
maskClosable: !0
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, Ts = {
|
|
145
145
|
setupConfig: function(e) {
|
|
146
146
|
Te.merge(T, e), le("加载公共参数完毕", T);
|
|
147
147
|
},
|
|
148
148
|
setupExcelConfig: function(e, n) {
|
|
149
|
-
Te.merge(
|
|
149
|
+
Te.merge(Ke, {
|
|
150
150
|
ExcelJS: e,
|
|
151
151
|
FileSaver: n
|
|
152
152
|
}), le("加载excel组件完毕");
|
|
@@ -209,7 +209,7 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
209
209
|
filterable: s,
|
|
210
210
|
disabled: c,
|
|
211
211
|
defaultValue: p,
|
|
212
|
-
dictRoleType:
|
|
212
|
+
dictRoleType: d,
|
|
213
213
|
selectAll: g,
|
|
214
214
|
parentNode: h
|
|
215
215
|
} = a;
|
|
@@ -223,7 +223,7 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
223
223
|
request: {
|
|
224
224
|
dictType: t,
|
|
225
225
|
parentNode: u(h) ? h : null,
|
|
226
|
-
dictRoleType: u(
|
|
226
|
+
dictRoleType: u(d) ? d : null
|
|
227
227
|
},
|
|
228
228
|
multiple: u(o) ? o : !1,
|
|
229
229
|
clearable: u(i) ? i : !0,
|
|
@@ -283,7 +283,7 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
},
|
|
286
|
+
}, Kl = (e = {}) => {
|
|
287
287
|
const { fixed: n = null, visible: t = !0 } = e;
|
|
288
288
|
return {
|
|
289
289
|
field: "row_seq",
|
|
@@ -296,7 +296,7 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
296
296
|
resizable: !1,
|
|
297
297
|
align: "center"
|
|
298
298
|
};
|
|
299
|
-
},
|
|
299
|
+
}, Ql = (e = {}) => {
|
|
300
300
|
const { fixed: n = null, visible: t = !0 } = e;
|
|
301
301
|
return {
|
|
302
302
|
field: "row_radio",
|
|
@@ -345,10 +345,10 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
345
345
|
maximize: s,
|
|
346
346
|
componentType: c,
|
|
347
347
|
componentParams: p = {},
|
|
348
|
-
treeNode:
|
|
348
|
+
treeNode: d,
|
|
349
349
|
autoLoad: g,
|
|
350
350
|
resizable: h,
|
|
351
|
-
showOverflow:
|
|
351
|
+
showOverflow: f,
|
|
352
352
|
align: m,
|
|
353
353
|
type: w,
|
|
354
354
|
fixed: C,
|
|
@@ -361,12 +361,12 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
361
361
|
width: u(b) ? b : u(w) ? u(i) ? i : 120 : "auto",
|
|
362
362
|
minWidth: u(i) ? i : 120,
|
|
363
363
|
resizable: u(h) ? h : !1,
|
|
364
|
-
showOverflow: u(
|
|
364
|
+
showOverflow: u(f) ? f : "title",
|
|
365
365
|
align: u(m) ? m : "center",
|
|
366
366
|
type: u(w) ? w : null,
|
|
367
367
|
fixed: u(C) ? C : "",
|
|
368
368
|
formatter: u(a) ? a : "",
|
|
369
|
-
treeNode: u(
|
|
369
|
+
treeNode: u(d) ? d : !1,
|
|
370
370
|
params: {
|
|
371
371
|
requestType: u(l) ? l : "",
|
|
372
372
|
requestUrl: r,
|
|
@@ -447,10 +447,10 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
447
447
|
componentType: s,
|
|
448
448
|
componentParams: c,
|
|
449
449
|
maximize: p,
|
|
450
|
-
width:
|
|
450
|
+
width: d,
|
|
451
451
|
height: g,
|
|
452
452
|
auth: h,
|
|
453
|
-
autoLoad:
|
|
453
|
+
autoLoad: f
|
|
454
454
|
} = n;
|
|
455
455
|
return {
|
|
456
456
|
icon: u(t) ? t : "save",
|
|
@@ -464,8 +464,8 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
464
464
|
componentParams: u(c) ? c : {},
|
|
465
465
|
title: u(l) ? l : "操作",
|
|
466
466
|
maximize: u(p) ? p : !0,
|
|
467
|
-
autoLoad: u(
|
|
468
|
-
width: u(
|
|
467
|
+
autoLoad: u(f) ? f : !0,
|
|
468
|
+
width: u(d) ? d : null,
|
|
469
469
|
height: u(g) ? g : null,
|
|
470
470
|
auth: u(h) ? h : !0
|
|
471
471
|
};
|
|
@@ -505,7 +505,7 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
505
505
|
downloadType: u(o) ? o : null,
|
|
506
506
|
auth: u(r) ? r : !0
|
|
507
507
|
};
|
|
508
|
-
},
|
|
508
|
+
}, As = {
|
|
509
509
|
getItemInput: Fl,
|
|
510
510
|
getItemNumber: Hl,
|
|
511
511
|
getItemSwitch: Yl,
|
|
@@ -513,8 +513,8 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
513
513
|
getItemSelectList: Gl,
|
|
514
514
|
getItemDate: Jl,
|
|
515
515
|
getItemPeriod: Zl,
|
|
516
|
-
getColumnsSeq:
|
|
517
|
-
getColumnsRadio:
|
|
516
|
+
getColumnsSeq: Kl,
|
|
517
|
+
getColumnsRadio: Ql,
|
|
518
518
|
getColumnsCheckbox: Xl,
|
|
519
519
|
getColumnsButton: er,
|
|
520
520
|
getColumnsOperate: Ea,
|
|
@@ -541,40 +541,40 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
541
541
|
const c = r[i.field] ? r[i.field] : "";
|
|
542
542
|
if (Array.isArray(a)) {
|
|
543
543
|
if (a && a.includes(i.field)) {
|
|
544
|
-
const p = s[o - 1],
|
|
544
|
+
const p = s[o - 1], d = p && p[i.field] ? p[i.field] : "";
|
|
545
545
|
let g = s[o + 1];
|
|
546
546
|
const h = g && g[i.field] ? g[i.field] : "";
|
|
547
|
-
if (p &&
|
|
547
|
+
if (p && d === c && p[n] === r[n])
|
|
548
548
|
return { rowspan: 0, colspan: 0 };
|
|
549
549
|
{
|
|
550
|
-
let
|
|
550
|
+
let f = 1;
|
|
551
551
|
for (; g && h === c && g[n] === r[n]; )
|
|
552
|
-
g = s[++
|
|
553
|
-
if (
|
|
554
|
-
return { rowspan:
|
|
552
|
+
g = s[++f + o];
|
|
553
|
+
if (f > 1)
|
|
554
|
+
return { rowspan: f, colspan: 1 };
|
|
555
555
|
}
|
|
556
556
|
} else if (!u(i.field) || i.field === t) {
|
|
557
557
|
const p = s[o - 1];
|
|
558
|
-
let
|
|
558
|
+
let d = s[o + 1];
|
|
559
559
|
if (p && p[n] === r[n])
|
|
560
560
|
return { rowspan: 0, colspan: 0 };
|
|
561
561
|
{
|
|
562
562
|
let g = 1;
|
|
563
|
-
for (;
|
|
564
|
-
|
|
563
|
+
for (; d && d[n] === r[n]; )
|
|
564
|
+
d = s[++g + o];
|
|
565
565
|
if (g > 1)
|
|
566
566
|
return { rowspan: g, colspan: 1 };
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
} else if (u(a[i.field])) {
|
|
570
|
-
const p = a[i.field],
|
|
570
|
+
const p = a[i.field], d = s[o - 1], g = d && d[i.field] ? d[i.field] : "";
|
|
571
571
|
let h = s[o + 1];
|
|
572
|
-
const
|
|
573
|
-
if (
|
|
572
|
+
const f = h && h[i.field] ? h[i.field] : "";
|
|
573
|
+
if (d && g === c && d[p] === r[p])
|
|
574
574
|
return { rowspan: 0, colspan: 0 };
|
|
575
575
|
{
|
|
576
576
|
let m = 1;
|
|
577
|
-
for (; h &&
|
|
577
|
+
for (; h && f === c && h[p] === r[p]; )
|
|
578
578
|
h = s[++m + o];
|
|
579
579
|
if (m > 1)
|
|
580
580
|
return { rowspan: m, colspan: 1 };
|
|
@@ -596,8 +596,8 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
596
596
|
sortName: i.field,
|
|
597
597
|
sortType: i.order
|
|
598
598
|
}), t && t.forEach((s) => {
|
|
599
|
-
const { field: c, datas: p, values:
|
|
600
|
-
o[c] = p ? p.join(",") :
|
|
599
|
+
const { field: c, datas: p, values: d } = s;
|
|
600
|
+
o[c] = p ? p.join(",") : d ? d.join(",") : "";
|
|
601
601
|
}), le("表单查询参数:", o), o;
|
|
602
602
|
}, dr = (e, n, t, a) => {
|
|
603
603
|
const l = Object.assign({}, t);
|
|
@@ -625,7 +625,7 @@ const le = jt("log"), Na = jt("warn"), dt = jt("error"), Qe = {
|
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
|
-
function
|
|
628
|
+
function pe(e, n) {
|
|
629
629
|
fr(e) && (e = "100%");
|
|
630
630
|
var t = pr(e);
|
|
631
631
|
return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
|
|
@@ -647,9 +647,9 @@ function ht(e) {
|
|
|
647
647
|
}
|
|
648
648
|
function gr(e, n, t) {
|
|
649
649
|
return {
|
|
650
|
-
r:
|
|
651
|
-
g:
|
|
652
|
-
b:
|
|
650
|
+
r: pe(e, 255) * 255,
|
|
651
|
+
g: pe(n, 255) * 255,
|
|
652
|
+
b: pe(t, 255) * 255
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
655
|
function yt(e, n, t) {
|
|
@@ -657,7 +657,7 @@ function yt(e, n, t) {
|
|
|
657
657
|
}
|
|
658
658
|
function vr(e, n, t) {
|
|
659
659
|
var a, l, r;
|
|
660
|
-
if (e =
|
|
660
|
+
if (e = pe(e, 360), n = pe(n, 100), t = pe(t, 100), n === 0)
|
|
661
661
|
l = t, r = t, a = t;
|
|
662
662
|
else {
|
|
663
663
|
var o = t < 0.5 ? t * (1 + n) : t + n - t * n, i = 2 * t - o;
|
|
@@ -666,7 +666,7 @@ function vr(e, n, t) {
|
|
|
666
666
|
return { r: a * 255, g: l * 255, b: r * 255 };
|
|
667
667
|
}
|
|
668
668
|
function hr(e, n, t) {
|
|
669
|
-
e =
|
|
669
|
+
e = pe(e, 255), n = pe(n, 255), t = pe(t, 255);
|
|
670
670
|
var a = Math.max(e, n, t), l = Math.min(e, n, t), r = 0, o = a, i = a - l, s = a === 0 ? 0 : i / a;
|
|
671
671
|
if (a === l)
|
|
672
672
|
r = 0;
|
|
@@ -687,9 +687,9 @@ function hr(e, n, t) {
|
|
|
687
687
|
return { h: r, s, v: o };
|
|
688
688
|
}
|
|
689
689
|
function yr(e, n, t) {
|
|
690
|
-
e =
|
|
691
|
-
var a = Math.floor(e), l = e - a, r = t * (1 - n), o = t * (1 - l * n), i = t * (1 - (1 - l) * n), s = a % 6, c = [t, o, r, r, i, t][s], p = [i, t, t, o, r, r][s],
|
|
692
|
-
return { r: c * 255, g: p * 255, b:
|
|
690
|
+
e = pe(e, 360) * 6, n = pe(n, 100), t = pe(t, 100);
|
|
691
|
+
var a = Math.floor(e), l = e - a, r = t * (1 - n), o = t * (1 - l * n), i = t * (1 - (1 - l) * n), s = a % 6, c = [t, o, r, r, i, t][s], p = [i, t, t, o, r, r][s], d = [r, r, i, t, t, o][s];
|
|
692
|
+
return { r: c * 255, g: p * 255, b: d * 255 };
|
|
693
693
|
}
|
|
694
694
|
function br(e, n, t, a) {
|
|
695
695
|
var l = [
|
|
@@ -866,7 +866,7 @@ function Ee(e) {
|
|
|
866
866
|
a: t
|
|
867
867
|
};
|
|
868
868
|
}
|
|
869
|
-
var Sr = "[-\\+]?\\d+%?", wr = "[-\\+]?\\d*\\.\\d+%?", Me = "(?:".concat(wr, ")|(?:").concat(Sr, ")"), bt = "[\\s|\\(]+(".concat(Me, ")[,|\\s]+(").concat(Me, ")[,|\\s]+(").concat(Me, ")\\s*\\)?"), St = "[\\s|\\(]+(".concat(Me, ")[,|\\s]+(").concat(Me, ")[,|\\s]+(").concat(Me, ")[,|\\s]+(").concat(Me, ")\\s*\\)?"),
|
|
869
|
+
var Sr = "[-\\+]?\\d+%?", wr = "[-\\+]?\\d*\\.\\d+%?", Me = "(?:".concat(wr, ")|(?:").concat(Sr, ")"), bt = "[\\s|\\(]+(".concat(Me, ")[,|\\s]+(").concat(Me, ")[,|\\s]+(").concat(Me, ")\\s*\\)?"), St = "[\\s|\\(]+(".concat(Me, ")[,|\\s]+(").concat(Me, ")[,|\\s]+(").concat(Me, ")[,|\\s]+(").concat(Me, ")\\s*\\)?"), be = {
|
|
870
870
|
CSS_UNIT: new RegExp(Me),
|
|
871
871
|
rgb: new RegExp("rgb" + bt),
|
|
872
872
|
rgba: new RegExp("rgba" + St),
|
|
@@ -887,25 +887,25 @@ function _r(e) {
|
|
|
887
887
|
e = kn[e], n = !0;
|
|
888
888
|
else if (e === "transparent")
|
|
889
889
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
890
|
-
var t =
|
|
891
|
-
return t ? { r: t[1], g: t[2], b: t[3] } : (t =
|
|
890
|
+
var t = be.rgb.exec(e);
|
|
891
|
+
return t ? { r: t[1], g: t[2], b: t[3] } : (t = be.rgba.exec(e), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = be.hsl.exec(e), t ? { h: t[1], s: t[2], l: t[3] } : (t = be.hsla.exec(e), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = be.hsv.exec(e), t ? { h: t[1], s: t[2], v: t[3] } : (t = be.hsva.exec(e), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = be.hex8.exec(e), t ? {
|
|
892
892
|
r: ue(t[1]),
|
|
893
893
|
g: ue(t[2]),
|
|
894
894
|
b: ue(t[3]),
|
|
895
895
|
a: Pn(t[4]),
|
|
896
896
|
format: n ? "name" : "hex8"
|
|
897
|
-
} : (t =
|
|
897
|
+
} : (t = be.hex6.exec(e), t ? {
|
|
898
898
|
r: ue(t[1]),
|
|
899
899
|
g: ue(t[2]),
|
|
900
900
|
b: ue(t[3]),
|
|
901
901
|
format: n ? "name" : "hex"
|
|
902
|
-
} : (t =
|
|
902
|
+
} : (t = be.hex4.exec(e), t ? {
|
|
903
903
|
r: ue(t[1] + t[1]),
|
|
904
904
|
g: ue(t[2] + t[2]),
|
|
905
905
|
b: ue(t[3] + t[3]),
|
|
906
906
|
a: Pn(t[4] + t[4]),
|
|
907
907
|
format: n ? "name" : "hex8"
|
|
908
|
-
} : (t =
|
|
908
|
+
} : (t = be.hex3.exec(e), t ? {
|
|
909
909
|
r: ue(t[1] + t[1]),
|
|
910
910
|
g: ue(t[2] + t[2]),
|
|
911
911
|
b: ue(t[3] + t[3]),
|
|
@@ -913,7 +913,7 @@ function _r(e) {
|
|
|
913
913
|
} : !1)))))))));
|
|
914
914
|
}
|
|
915
915
|
function xe(e) {
|
|
916
|
-
return !!
|
|
916
|
+
return !!be.CSS_UNIT.exec(String(e));
|
|
917
917
|
}
|
|
918
918
|
var Je = 2, Tn = 0.16, Or = 0.05, xr = 0.05, Cr = 0.15, Ia = 5, Fa = 4, Pr = [{
|
|
919
919
|
index: 7,
|
|
@@ -999,7 +999,7 @@ function Ct(e) {
|
|
|
999
999
|
t.push(c);
|
|
1000
1000
|
}
|
|
1001
1001
|
return n.theme === "dark" ? Pr.map(function(p) {
|
|
1002
|
-
var
|
|
1002
|
+
var d = p.index, g = p.opacity, h = Ze(kr(Ee(n.backgroundColor || "#141414"), Ee(t[d]), g * 100));
|
|
1003
1003
|
return h;
|
|
1004
1004
|
}) : t;
|
|
1005
1005
|
}
|
|
@@ -1017,14 +1017,14 @@ var wt = {
|
|
|
1017
1017
|
purple: "#722ED1",
|
|
1018
1018
|
magenta: "#EB2F96",
|
|
1019
1019
|
grey: "#666666"
|
|
1020
|
-
},
|
|
1020
|
+
}, Qe = {}, _t = {};
|
|
1021
1021
|
Object.keys(wt).forEach(function(e) {
|
|
1022
|
-
|
|
1022
|
+
Qe[e] = Ct(wt[e]), Qe[e].primary = Qe[e][5], _t[e] = Ct(wt[e], {
|
|
1023
1023
|
theme: "dark",
|
|
1024
1024
|
backgroundColor: "#141414"
|
|
1025
1025
|
}), _t[e].primary = _t[e][5];
|
|
1026
1026
|
});
|
|
1027
|
-
var Tr =
|
|
1027
|
+
var Tr = Qe.blue, Ar = /* @__PURE__ */ Symbol("iconContext"), Ha = function() {
|
|
1028
1028
|
return de(Ar, {
|
|
1029
1029
|
prefixCls: j("anticon"),
|
|
1030
1030
|
rootClassName: j(""),
|
|
@@ -1193,14 +1193,14 @@ var Rr = `
|
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
`;
|
|
1196
|
-
function
|
|
1196
|
+
function Ka(e) {
|
|
1197
1197
|
return e && e.getRootNode && e.getRootNode();
|
|
1198
1198
|
}
|
|
1199
1199
|
function Er(e) {
|
|
1200
|
-
return zt() ?
|
|
1200
|
+
return zt() ? Ka(e) instanceof ShadowRoot : !1;
|
|
1201
1201
|
}
|
|
1202
1202
|
function Lr(e) {
|
|
1203
|
-
return Er(e) ?
|
|
1203
|
+
return Er(e) ? Ka(e) : null;
|
|
1204
1204
|
}
|
|
1205
1205
|
var Ur = function() {
|
|
1206
1206
|
var n = Ha(), t = n.prefixCls, a = n.csp, l = _l(), r = Rr;
|
|
@@ -1258,7 +1258,7 @@ function Wr(e) {
|
|
|
1258
1258
|
function Gr() {
|
|
1259
1259
|
return Xe({}, Ue);
|
|
1260
1260
|
}
|
|
1261
|
-
var
|
|
1261
|
+
var $e = function(n, t) {
|
|
1262
1262
|
var a = Xe({}, n, t.attrs), l = a.icon, r = a.primaryColor, o = a.secondaryColor, i = Fr(a, Ir), s = Ue;
|
|
1263
1263
|
if (r && (s = {
|
|
1264
1264
|
primaryColor: r,
|
|
@@ -1276,24 +1276,24 @@ var je = function(n, t) {
|
|
|
1276
1276
|
"aria-hidden": "true"
|
|
1277
1277
|
}));
|
|
1278
1278
|
};
|
|
1279
|
-
|
|
1279
|
+
$e.props = {
|
|
1280
1280
|
icon: Object,
|
|
1281
1281
|
primaryColor: String,
|
|
1282
1282
|
secondaryColor: String,
|
|
1283
1283
|
focusable: String
|
|
1284
1284
|
};
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1285
|
+
$e.inheritAttrs = !1;
|
|
1286
|
+
$e.displayName = "IconBase";
|
|
1287
|
+
$e.getTwoToneColors = Gr;
|
|
1288
|
+
$e.setTwoToneColors = Wr;
|
|
1289
1289
|
function Jr(e, n) {
|
|
1290
|
-
return Xr(e) ||
|
|
1290
|
+
return Xr(e) || Qr(e, n) || Kr(e, n) || Zr();
|
|
1291
1291
|
}
|
|
1292
1292
|
function Zr() {
|
|
1293
1293
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1294
1294
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Kr(e, n) {
|
|
1297
1297
|
if (e) {
|
|
1298
1298
|
if (typeof e == "string") return Dn(e, n);
|
|
1299
1299
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -1307,7 +1307,7 @@ function Dn(e, n) {
|
|
|
1307
1307
|
a[t] = e[t];
|
|
1308
1308
|
return a;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function Qr(e, n) {
|
|
1311
1311
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1312
1312
|
if (t != null) {
|
|
1313
1313
|
var a = [], l = !0, r = !1, o, i;
|
|
@@ -1329,15 +1329,15 @@ function Kr(e, n) {
|
|
|
1329
1329
|
function Xr(e) {
|
|
1330
1330
|
if (Array.isArray(e)) return e;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Qa(e) {
|
|
1333
1333
|
var n = Za(e), t = Jr(n, 2), a = t[0], l = t[1];
|
|
1334
|
-
return
|
|
1334
|
+
return $e.setTwoToneColors({
|
|
1335
1335
|
primaryColor: a,
|
|
1336
1336
|
secondaryColor: l
|
|
1337
1337
|
});
|
|
1338
1338
|
}
|
|
1339
1339
|
function eo() {
|
|
1340
|
-
var e =
|
|
1340
|
+
var e = $e.getTwoToneColors();
|
|
1341
1341
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1342
1342
|
}
|
|
1343
1343
|
var to = W({
|
|
@@ -1422,10 +1422,10 @@ function uo(e, n) {
|
|
|
1422
1422
|
l = a[r], !(n.indexOf(l) >= 0) && (t[l] = e[l]);
|
|
1423
1423
|
return t;
|
|
1424
1424
|
}
|
|
1425
|
-
|
|
1425
|
+
Qa(Tr.primary);
|
|
1426
1426
|
var Z = function(n, t) {
|
|
1427
|
-
var a, l = Nn({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, s = l.rotate, c = l.tabindex, p = l.twoToneColor,
|
|
1428
|
-
C === void 0 &&
|
|
1427
|
+
var a, l = Nn({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, s = l.rotate, c = l.tabindex, p = l.twoToneColor, d = l.onClick, g = so(l, no), h = Ha(), f = h.prefixCls, m = h.rootClassName, w = (a = {}, Le(a, m.value, !!m.value), Le(a, f.value, !0), Le(a, "".concat(f.value, "-").concat(o.name), !!o.name), Le(a, "".concat(f.value, "-spin"), !!i || o.name === "loading"), a), C = c;
|
|
1428
|
+
C === void 0 && d && (C = -1);
|
|
1429
1429
|
var b = s ? {
|
|
1430
1430
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
1431
1431
|
transform: "rotate(".concat(s, "deg)")
|
|
@@ -1434,10 +1434,10 @@ var Z = function(n, t) {
|
|
|
1434
1434
|
role: "img",
|
|
1435
1435
|
"aria-label": o.name
|
|
1436
1436
|
}, g, {
|
|
1437
|
-
onClick:
|
|
1437
|
+
onClick: d,
|
|
1438
1438
|
class: [w, r],
|
|
1439
1439
|
tabindex: C
|
|
1440
|
-
}), [D(
|
|
1440
|
+
}), [D($e, {
|
|
1441
1441
|
icon: o,
|
|
1442
1442
|
primaryColor: _,
|
|
1443
1443
|
secondaryColor: z,
|
|
@@ -1453,7 +1453,7 @@ Z.props = {
|
|
|
1453
1453
|
Z.displayName = "AntdIcon";
|
|
1454
1454
|
Z.inheritAttrs = !1;
|
|
1455
1455
|
Z.getTwoToneColor = eo;
|
|
1456
|
-
Z.setTwoToneColor =
|
|
1456
|
+
Z.setTwoToneColor = Qa;
|
|
1457
1457
|
var co = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" } }] }, name: "audit", theme: "outlined" };
|
|
1458
1458
|
function Rn(e) {
|
|
1459
1459
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -1731,7 +1731,7 @@ var Ht = function(n, t) {
|
|
|
1731
1731
|
Ht.displayName = "FormOutlined";
|
|
1732
1732
|
Ht.inheritAttrs = !1;
|
|
1733
1733
|
var qo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, name: "info-circle", theme: "outlined" };
|
|
1734
|
-
function
|
|
1734
|
+
function Kn(e) {
|
|
1735
1735
|
for (var n = 1; n < arguments.length; n++) {
|
|
1736
1736
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1737
1737
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
@@ -1746,15 +1746,15 @@ function Do(e, n, t) {
|
|
|
1746
1746
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1747
1747
|
}
|
|
1748
1748
|
var Yt = function(n, t) {
|
|
1749
|
-
var a =
|
|
1750
|
-
return D(Z,
|
|
1749
|
+
var a = Kn({}, n, t.attrs);
|
|
1750
|
+
return D(Z, Kn({}, a, {
|
|
1751
1751
|
icon: qo
|
|
1752
1752
|
}), null);
|
|
1753
1753
|
};
|
|
1754
1754
|
Yt.displayName = "InfoCircleOutlined";
|
|
1755
1755
|
Yt.inheritAttrs = !1;
|
|
1756
1756
|
var Bo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" } }] }, name: "menu", theme: "outlined" };
|
|
1757
|
-
function
|
|
1757
|
+
function Qn(e) {
|
|
1758
1758
|
for (var n = 1; n < arguments.length; n++) {
|
|
1759
1759
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1760
1760
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
@@ -1769,8 +1769,8 @@ function No(e, n, t) {
|
|
|
1769
1769
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1770
1770
|
}
|
|
1771
1771
|
var Wt = function(n, t) {
|
|
1772
|
-
var a =
|
|
1773
|
-
return D(Z,
|
|
1772
|
+
var a = Qn({}, n, t.attrs);
|
|
1773
|
+
return D(Z, Qn({}, a, {
|
|
1774
1774
|
icon: Bo
|
|
1775
1775
|
}), null);
|
|
1776
1776
|
};
|
|
@@ -1860,14 +1860,14 @@ function na(e) {
|
|
|
1860
1860
|
function Yo(e, n, t) {
|
|
1861
1861
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1862
1862
|
}
|
|
1863
|
-
var
|
|
1863
|
+
var Kt = function(n, t) {
|
|
1864
1864
|
var a = na({}, n, t.attrs);
|
|
1865
1865
|
return D(Z, na({}, a, {
|
|
1866
1866
|
icon: Ho
|
|
1867
1867
|
}), null);
|
|
1868
1868
|
};
|
|
1869
|
-
|
|
1870
|
-
|
|
1869
|
+
Kt.displayName = "RedoOutlined";
|
|
1870
|
+
Kt.inheritAttrs = !1;
|
|
1871
1871
|
var Wo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" } }] }, name: "save", theme: "outlined" };
|
|
1872
1872
|
function aa(e) {
|
|
1873
1873
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -1883,14 +1883,14 @@ function aa(e) {
|
|
|
1883
1883
|
function Go(e, n, t) {
|
|
1884
1884
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1885
1885
|
}
|
|
1886
|
-
var
|
|
1886
|
+
var Qt = function(n, t) {
|
|
1887
1887
|
var a = aa({}, n, t.attrs);
|
|
1888
1888
|
return D(Z, aa({}, a, {
|
|
1889
1889
|
icon: Wo
|
|
1890
1890
|
}), null);
|
|
1891
1891
|
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1892
|
+
Qt.displayName = "SaveOutlined";
|
|
1893
|
+
Qt.inheritAttrs = !1;
|
|
1894
1894
|
var Jo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 136H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0025.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z" } }] }, name: "schedule", theme: "outlined" };
|
|
1895
1895
|
function la(e) {
|
|
1896
1896
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -1914,25 +1914,25 @@ var Xt = function(n, t) {
|
|
|
1914
1914
|
};
|
|
1915
1915
|
Xt.displayName = "ScheduleOutlined";
|
|
1916
1916
|
Xt.inheritAttrs = !1;
|
|
1917
|
-
var
|
|
1917
|
+
var Ko = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" } }] }, name: "setting", theme: "outlined" };
|
|
1918
1918
|
function ra(e) {
|
|
1919
1919
|
for (var n = 1; n < arguments.length; n++) {
|
|
1920
1920
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1921
1921
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1922
1922
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1923
1923
|
}))), a.forEach(function(l) {
|
|
1924
|
-
|
|
1924
|
+
Qo(e, l, t[l]);
|
|
1925
1925
|
});
|
|
1926
1926
|
}
|
|
1927
1927
|
return e;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Qo(e, n, t) {
|
|
1930
1930
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1931
1931
|
}
|
|
1932
1932
|
var en = function(n, t) {
|
|
1933
1933
|
var a = ra({}, n, t.attrs);
|
|
1934
1934
|
return D(Z, ra({}, a, {
|
|
1935
|
-
icon:
|
|
1935
|
+
icon: Ko
|
|
1936
1936
|
}), null);
|
|
1937
1937
|
};
|
|
1938
1938
|
en.displayName = "SettingOutlined";
|
|
@@ -2061,7 +2061,7 @@ const ii = (e) => {
|
|
|
2061
2061
|
onCancel() {
|
|
2062
2062
|
}
|
|
2063
2063
|
});
|
|
2064
|
-
},
|
|
2064
|
+
}, K = (e, n) => e != null && e !== "" ? e : n, si = (e, n, t) => {
|
|
2065
2065
|
e ? Ot.success({
|
|
2066
2066
|
message: "操作成功",
|
|
2067
2067
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -2078,7 +2078,7 @@ const ii = (e) => {
|
|
|
2078
2078
|
message: "操作提示",
|
|
2079
2079
|
description: e
|
|
2080
2080
|
});
|
|
2081
|
-
},
|
|
2081
|
+
}, je = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle", ui = (e) => {
|
|
2082
2082
|
const n = /{([^}]+)}/g, t = e.match(n);
|
|
2083
2083
|
return t ? t.map((a) => a.slice(1, -1)) : [];
|
|
2084
2084
|
}, Ie = async (e, n) => T.requestPlugin != null && typeof T.requestPlugin == "function" ? await T.requestPlugin(e, n) : (dt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null), rn = async (e, n, t) => {
|
|
@@ -2127,43 +2127,43 @@ const ii = (e) => {
|
|
|
2127
2127
|
});
|
|
2128
2128
|
};
|
|
2129
2129
|
function ci(e) {
|
|
2130
|
-
const { gridRef: n, targetModal: t, gridOptions: a, pageOptions: l, formData: r, pageModal: o } = e, i = async (
|
|
2131
|
-
if (!u(
|
|
2132
|
-
if (
|
|
2133
|
-
const m = await h(
|
|
2134
|
-
if (
|
|
2130
|
+
const { gridRef: n, targetModal: t, gridOptions: a, pageOptions: l, formData: r, pageModal: o } = e, i = async (f) => {
|
|
2131
|
+
if (!u(f.requestType) || typeof f.requestType == "string")
|
|
2132
|
+
if (f.requestType === "custom") {
|
|
2133
|
+
const m = await h(f);
|
|
2134
|
+
if (f.requestRow && !u(m))
|
|
2135
2135
|
return;
|
|
2136
|
-
l.onButtonClickModule({ $gridRef: n.value, gridOptions: a, formData: r, item:
|
|
2136
|
+
l.onButtonClickModule({ $gridRef: n.value, gridOptions: a, formData: r, item: f, data: m });
|
|
2137
2137
|
} else
|
|
2138
|
-
|
|
2138
|
+
d(r, f);
|
|
2139
2139
|
else {
|
|
2140
|
-
const m = await h(
|
|
2141
|
-
if (
|
|
2140
|
+
const m = await h(f);
|
|
2141
|
+
if (f.requestRow && !u(m))
|
|
2142
2142
|
return;
|
|
2143
|
-
|
|
2143
|
+
f.requestType({ gridRef: n, gridOptions: a, formData: r, item: f, data: m });
|
|
2144
2144
|
}
|
|
2145
|
-
}, s = (
|
|
2146
|
-
!u(
|
|
2147
|
-
}, c = (
|
|
2145
|
+
}, s = (f, m) => {
|
|
2146
|
+
!u(f.requestType) || typeof f.requestType == "string" ? f.requestType === "custom" ? l.onButtonClickModule({ $gridRef: n.value, gridOptions: a, formData: r, item: f, row: m }) : g(f, m) : f.requestType({ gridRef: n, gridOptions: a, formData: r, item: f, row: m });
|
|
2147
|
+
}, c = (f, m) => {
|
|
2148
2148
|
const w = m.params.requestType;
|
|
2149
|
-
!u(w) || typeof w == "string" ? w === "custom" ? l.onButtonClickModule({ $gridRef: n.value, gridOptions: a, formData: r, column: m, row:
|
|
2150
|
-
}, p = (
|
|
2151
|
-
if (t.title =
|
|
2149
|
+
!u(w) || typeof w == "string" ? w === "custom" ? l.onButtonClickModule({ $gridRef: n.value, gridOptions: a, formData: r, column: m, row: f }) : p(f, m) : w({ gridRef: n, gridOptions: a, formData: r, column: m, row: f });
|
|
2150
|
+
}, p = (f, m) => {
|
|
2151
|
+
if (t.title = K(m.params.title, o.title), t.width = K(m.params.width, o.width), t.height = K(m.params.height, o.height), t.maximize = K(m.params.maximize, !1), t.autoLoad = K(m.params.autoLoad, !1), t.componentType = K(m.params.componentType, o.componentType), t.componentUrl = m.params.requestUrl, t.componentType === "iframe") {
|
|
2152
2152
|
let w = te(l.ctxPath, t.componentUrl);
|
|
2153
|
-
for (const C in
|
|
2154
|
-
w = w.replace("{" + C + "}",
|
|
2153
|
+
for (const C in f)
|
|
2154
|
+
w = w.replace("{" + C + "}", f[C]);
|
|
2155
2155
|
t.componentUrl = w;
|
|
2156
2156
|
} else
|
|
2157
|
-
|
|
2158
|
-
t.componentParams =
|
|
2159
|
-
},
|
|
2157
|
+
f[T.buttonKeyName] = m.params;
|
|
2158
|
+
t.componentParams = f, t.visible = !0;
|
|
2159
|
+
}, d = async (f, m) => {
|
|
2160
2160
|
if (n.value) {
|
|
2161
2161
|
const C = await h(m);
|
|
2162
2162
|
if (m.requestRow && !u(C))
|
|
2163
2163
|
return;
|
|
2164
2164
|
if (m.requestType === "modal" || m.requestType === "open") {
|
|
2165
2165
|
let b = m.requestUrl;
|
|
2166
|
-
const y =
|
|
2166
|
+
const y = K(m.componentType, o.componentType);
|
|
2167
2167
|
if ((y === "iframe" || m.requestType === "open") && (b = te(l.ctxPath, b), m.requestRow && b.split("?").length > 1)) {
|
|
2168
2168
|
const v = ui(b.split("?")[1]);
|
|
2169
2169
|
for (const _ in v) {
|
|
@@ -2173,16 +2173,16 @@ function ci(e) {
|
|
|
2173
2173
|
for (const L in C)
|
|
2174
2174
|
for (const G in C[L])
|
|
2175
2175
|
G === z && C[L][G] && (H[C[L][G]] = C[L][G]);
|
|
2176
|
-
let
|
|
2176
|
+
let I = "";
|
|
2177
2177
|
for (const L in H)
|
|
2178
|
-
|
|
2179
|
-
b = b.replace("{" + z + "}",
|
|
2178
|
+
I = (I ? I + "," : "") + L;
|
|
2179
|
+
b = b.replace("{" + z + "}", I);
|
|
2180
2180
|
} else
|
|
2181
2181
|
b = b.replace("{" + z + "}", C[z]);
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
2184
|
if (m.requestType === "modal") {
|
|
2185
|
-
if (t.title =
|
|
2185
|
+
if (t.title = K(m.title, o.title), t.width = K(m.width, o.width), t.height = K(m.height, o.height), t.maximize = K(m.maximize, !1), t.autoLoad = K(m.autoLoad, !0), t.componentType = y, t.componentUrl = b, t.componentParams = {}, m.requestRow)
|
|
2186
2186
|
if (a.checkboxConfig)
|
|
2187
2187
|
if (m.requestRadio)
|
|
2188
2188
|
C[0][T.buttonKeyName] = m, t.componentParams = C[0];
|
|
@@ -2214,17 +2214,17 @@ function ci(e) {
|
|
|
2214
2214
|
n,
|
|
2215
2215
|
a,
|
|
2216
2216
|
b,
|
|
2217
|
-
m.requestRow ? C :
|
|
2217
|
+
m.requestRow ? C : f,
|
|
2218
2218
|
!!(a.checkboxConfig && m.requestRow && C.length !== 1)
|
|
2219
2219
|
);
|
|
2220
2220
|
},
|
|
2221
2221
|
m.requestConfirmContent
|
|
2222
2222
|
);
|
|
2223
2223
|
}
|
|
2224
|
-
}, g = (
|
|
2225
|
-
if (
|
|
2226
|
-
let w =
|
|
2227
|
-
const C =
|
|
2224
|
+
}, g = (f, m) => {
|
|
2225
|
+
if (f.requestType === "modal" || f.requestType === "open") {
|
|
2226
|
+
let w = f.requestUrl;
|
|
2227
|
+
const C = K(f.componentType, o.componentType);
|
|
2228
2228
|
let b = !1;
|
|
2229
2229
|
if (C === "iframe")
|
|
2230
2230
|
if (w = te(l.ctxPath, w), w.split("?").length > 1)
|
|
@@ -2240,27 +2240,27 @@ function ci(e) {
|
|
|
2240
2240
|
else
|
|
2241
2241
|
b = !0;
|
|
2242
2242
|
if (b)
|
|
2243
|
-
|
|
2243
|
+
f.requestType === "modal" ? (m[T.buttonKeyName] = f, t.title = K(f.title, o.title), t.width = K(f.width, o.width), t.height = K(f.height, o.height), t.maximize = K(f.maximize, !1), t.autoLoad = K(f.autoLoad, !0), t.componentType = C, t.componentUrl = w, t.componentParams = m, t.visible = !0) : window.open(w, "_blank");
|
|
2244
2244
|
else {
|
|
2245
2245
|
De("该单据没有相应数据,无法进行本次操作");
|
|
2246
2246
|
return;
|
|
2247
2247
|
}
|
|
2248
2248
|
} else
|
|
2249
2249
|
ot(
|
|
2250
|
-
|
|
2250
|
+
f.requestTitle,
|
|
2251
2251
|
() => {
|
|
2252
|
-
let w = te(l.ctxPath,
|
|
2252
|
+
let w = te(l.ctxPath, f.requestUrl);
|
|
2253
2253
|
for (const C in m)
|
|
2254
2254
|
w = w.replace("{" + C + "}", m[C]);
|
|
2255
2255
|
ca(n, a, w, m);
|
|
2256
2256
|
},
|
|
2257
|
-
|
|
2257
|
+
f.requestConfirmContent
|
|
2258
2258
|
);
|
|
2259
|
-
}, h = async (
|
|
2260
|
-
if (
|
|
2259
|
+
}, h = async (f) => {
|
|
2260
|
+
if (f.requestRow) {
|
|
2261
2261
|
const m = await el(n, a);
|
|
2262
2262
|
let w = null;
|
|
2263
|
-
if (a.checkboxConfig ? !m || m.length === 0 ? w = "请至少选择一行数据" :
|
|
2263
|
+
if (a.checkboxConfig ? !m || m.length === 0 ? w = "请至少选择一行数据" : f.requestRadio && m.length !== 1 && (w = "请只选择一条数据") : a.radioConfig ? m || (w = "请选择一行数据") : w = "请设置表格【rowType】类型参数", w) {
|
|
2264
2264
|
De(w);
|
|
2265
2265
|
return;
|
|
2266
2266
|
}
|
|
@@ -2286,14 +2286,14 @@ function di(e) {
|
|
|
2286
2286
|
pageOptions: s,
|
|
2287
2287
|
pageTable: c,
|
|
2288
2288
|
pageTableMerge: p,
|
|
2289
|
-
pageRequest:
|
|
2289
|
+
pageRequest: d
|
|
2290
2290
|
} = e;
|
|
2291
2291
|
return {
|
|
2292
2292
|
downloadEvent: (m) => {
|
|
2293
2293
|
const w = n.value;
|
|
2294
2294
|
w && w.validate().then((C) => {
|
|
2295
2295
|
if (!C || C.length === 0) {
|
|
2296
|
-
let b =
|
|
2296
|
+
let b = d.requestDownload;
|
|
2297
2297
|
if (u(b)) {
|
|
2298
2298
|
if (l.loading) {
|
|
2299
2299
|
De("正在导出中,请不要重复点击!");
|
|
@@ -2321,13 +2321,13 @@ function di(e) {
|
|
|
2321
2321
|
pageSize: 25e3
|
|
2322
2322
|
}, H, _, z, t, o);
|
|
2323
2323
|
if (typeof b == "string") {
|
|
2324
|
-
b = te(s.ctxPath,
|
|
2324
|
+
b = te(s.ctxPath, d.requestDownload);
|
|
2325
2325
|
let G = "";
|
|
2326
2326
|
Object.keys(L).forEach((N) => {
|
|
2327
2327
|
u(L[N]) && (typeof L[N] == "string" && (G += "&" + N + "=" + L[N]), typeof L[N] == "object" && Array.isArray(L[N]) && (G += "&" + N + "=" + L[N].join(",")));
|
|
2328
2328
|
}), le("导出表格参数", [b, G]), ii(b + G);
|
|
2329
2329
|
} else
|
|
2330
|
-
l.loading = !0, L.exportFlag = !0, r(L,
|
|
2330
|
+
l.loading = !0, L.exportFlag = !0, r(L, d.requestData, !0).then(async (G) => {
|
|
2331
2331
|
if (G == null || G.rows.length == 0) {
|
|
2332
2332
|
l.loading = !1;
|
|
2333
2333
|
return;
|
|
@@ -2375,18 +2375,18 @@ function di(e) {
|
|
|
2375
2375
|
importEvent: () => {
|
|
2376
2376
|
top && top.openOtherPages ? top.openOtherPages(
|
|
2377
2377
|
"VIEW_QUERY_" + s.templateTitle,
|
|
2378
|
-
te(s.ctxPath,
|
|
2378
|
+
te(s.ctxPath, d.requestImport),
|
|
2379
2379
|
s.templateTitle + "导入",
|
|
2380
2380
|
!1,
|
|
2381
2381
|
!1
|
|
2382
|
-
) : window.open(te(s.ctxPath,
|
|
2382
|
+
) : window.open(te(s.ctxPath, d.requestImport), "_blank");
|
|
2383
2383
|
},
|
|
2384
2384
|
switchColumsEvent: (m, w = !1) => {
|
|
2385
2385
|
if (u(c.tableColumnsExtra)) {
|
|
2386
2386
|
const C = c.tableColumns, b = c.tableColumnsExtra;
|
|
2387
2387
|
if (w) {
|
|
2388
2388
|
const y = Dl(m, s.templateType);
|
|
2389
|
-
u(y) ? (l.params.switchType = y.switchType, l.columns = y.switchType === "1" ? C : b, l.showOverflow = y.switchShowOverflow) : (l.params.switchType = "1", l.columns = C, l.showOverflow =
|
|
2389
|
+
u(y) ? (l.params.switchType = y.switchType, l.columns = y.switchType === "1" ? C : b, l.showOverflow = y.switchShowOverflow) : (l.params.switchType = "1", l.columns = C, l.showOverflow = K(c.showOverflow, !0));
|
|
2390
2390
|
} else
|
|
2391
2391
|
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? b : C, l.showOverflow = !l.showOverflow, ql(m, s.templateType, {
|
|
2392
2392
|
switchType: l.params.switchType,
|
|
@@ -2400,24 +2400,24 @@ function di(e) {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
};
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2403
|
+
const ze = /* @__PURE__ */ W({
|
|
2404
2404
|
__name: "AntdOutlind",
|
|
2405
2405
|
props: {
|
|
2406
2406
|
icon: { type: String, default: null }
|
|
2407
2407
|
},
|
|
2408
2408
|
setup(e) {
|
|
2409
2409
|
const n = e;
|
|
2410
|
-
return (t, a) => (x(),
|
|
2410
|
+
return (t, a) => (x(), U(fe, null, [
|
|
2411
2411
|
n.icon === "user" ? (x(), V(S(ln), { key: 0 })) : q("", !0),
|
|
2412
2412
|
n.icon === "excel" ? (x(), V(S(It), { key: 1 })) : q("", !0),
|
|
2413
2413
|
n.icon === "download" ? (x(), V(S(Et), { key: 2 })) : q("", !0),
|
|
2414
|
-
n.icon === "save" ? (x(), V(S(
|
|
2414
|
+
n.icon === "save" ? (x(), V(S(Qt), { key: 3 })) : q("", !0),
|
|
2415
2415
|
n.icon === "edit" ? (x(), V(S(Lt), { key: 4 })) : q("", !0),
|
|
2416
2416
|
n.icon === "delete" ? (x(), V(S(Rt), { key: 5 })) : q("", !0),
|
|
2417
2417
|
n.icon === "down" ? (x(), V(S(ft), { key: 6 })) : q("", !0),
|
|
2418
2418
|
n.icon === "up" ? (x(), V(S(an), { key: 7 })) : q("", !0),
|
|
2419
2419
|
n.icon === "undo" ? (x(), V(S(nn), { key: 8 })) : q("", !0),
|
|
2420
|
-
n.icon === "redo" ? (x(), V(S(
|
|
2420
|
+
n.icon === "redo" ? (x(), V(S(Kt), { key: 9 })) : q("", !0),
|
|
2421
2421
|
n.icon === "copy" ? (x(), V(S(Nt), { key: 10 })) : q("", !0),
|
|
2422
2422
|
n.icon === "print" ? (x(), V(S(Zt), { key: 11 })) : q("", !0),
|
|
2423
2423
|
n.icon === "plus" ? (x(), V(S(Jt), { key: 12 })) : q("", !0),
|
|
@@ -2537,11 +2537,11 @@ function Si() {
|
|
|
2537
2537
|
e.exports = a();
|
|
2538
2538
|
})(bi, (function() {
|
|
2539
2539
|
return function(t, a, l) {
|
|
2540
|
-
var r = a.prototype, o = function(
|
|
2541
|
-
return
|
|
2542
|
-
}, i = function(
|
|
2543
|
-
var w =
|
|
2544
|
-
return _.slice(0,
|
|
2540
|
+
var r = a.prototype, o = function(d) {
|
|
2541
|
+
return d && (d.indexOf ? d : d.s);
|
|
2542
|
+
}, i = function(d, g, h, f, m) {
|
|
2543
|
+
var w = d.name ? d : d.$locale(), C = o(w[g]), b = o(w[h]), y = C || b.map((function(_) {
|
|
2544
|
+
return _.slice(0, f);
|
|
2545
2545
|
}));
|
|
2546
2546
|
if (!m) return y;
|
|
2547
2547
|
var v = w.weekStart;
|
|
@@ -2550,36 +2550,36 @@ function Si() {
|
|
|
2550
2550
|
}));
|
|
2551
2551
|
}, s = function() {
|
|
2552
2552
|
return l.Ls[l.locale()];
|
|
2553
|
-
}, c = function(
|
|
2554
|
-
return
|
|
2555
|
-
return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(
|
|
2553
|
+
}, c = function(d, g) {
|
|
2554
|
+
return d.formats[g] || (function(h) {
|
|
2555
|
+
return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(f, m, w) {
|
|
2556
2556
|
return m || w.slice(1);
|
|
2557
2557
|
}));
|
|
2558
|
-
})(
|
|
2558
|
+
})(d.formats[g.toUpperCase()]);
|
|
2559
2559
|
}, p = function() {
|
|
2560
|
-
var
|
|
2560
|
+
var d = this;
|
|
2561
2561
|
return { months: function(g) {
|
|
2562
|
-
return g ? g.format("MMMM") : i(
|
|
2562
|
+
return g ? g.format("MMMM") : i(d, "months");
|
|
2563
2563
|
}, monthsShort: function(g) {
|
|
2564
|
-
return g ? g.format("MMM") : i(
|
|
2564
|
+
return g ? g.format("MMM") : i(d, "monthsShort", "months", 3);
|
|
2565
2565
|
}, firstDayOfWeek: function() {
|
|
2566
|
-
return
|
|
2566
|
+
return d.$locale().weekStart || 0;
|
|
2567
2567
|
}, weekdays: function(g) {
|
|
2568
|
-
return g ? g.format("dddd") : i(
|
|
2568
|
+
return g ? g.format("dddd") : i(d, "weekdays");
|
|
2569
2569
|
}, weekdaysMin: function(g) {
|
|
2570
|
-
return g ? g.format("dd") : i(
|
|
2570
|
+
return g ? g.format("dd") : i(d, "weekdaysMin", "weekdays", 2);
|
|
2571
2571
|
}, weekdaysShort: function(g) {
|
|
2572
|
-
return g ? g.format("ddd") : i(
|
|
2572
|
+
return g ? g.format("ddd") : i(d, "weekdaysShort", "weekdays", 3);
|
|
2573
2573
|
}, longDateFormat: function(g) {
|
|
2574
|
-
return c(
|
|
2574
|
+
return c(d.$locale(), g);
|
|
2575
2575
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
2576
2576
|
};
|
|
2577
2577
|
r.localeData = function() {
|
|
2578
2578
|
return p.bind(this)();
|
|
2579
2579
|
}, l.localeData = function() {
|
|
2580
|
-
var
|
|
2580
|
+
var d = s();
|
|
2581
2581
|
return { firstDayOfWeek: function() {
|
|
2582
|
-
return
|
|
2582
|
+
return d.weekStart || 0;
|
|
2583
2583
|
}, weekdays: function() {
|
|
2584
2584
|
return l.weekdays();
|
|
2585
2585
|
}, weekdaysShort: function() {
|
|
@@ -2591,25 +2591,25 @@ function Si() {
|
|
|
2591
2591
|
}, monthsShort: function() {
|
|
2592
2592
|
return l.monthsShort();
|
|
2593
2593
|
}, longDateFormat: function(g) {
|
|
2594
|
-
return c(
|
|
2595
|
-
}, meridiem:
|
|
2594
|
+
return c(d, g);
|
|
2595
|
+
}, meridiem: d.meridiem, ordinal: d.ordinal };
|
|
2596
2596
|
}, l.months = function() {
|
|
2597
2597
|
return i(s(), "months");
|
|
2598
2598
|
}, l.monthsShort = function() {
|
|
2599
2599
|
return i(s(), "monthsShort", "months", 3);
|
|
2600
|
-
}, l.weekdays = function(
|
|
2601
|
-
return i(s(), "weekdays", null, null,
|
|
2602
|
-
}, l.weekdaysShort = function(
|
|
2603
|
-
return i(s(), "weekdaysShort", "weekdays", 3,
|
|
2604
|
-
}, l.weekdaysMin = function(
|
|
2605
|
-
return i(s(), "weekdaysMin", "weekdays", 2,
|
|
2600
|
+
}, l.weekdays = function(d) {
|
|
2601
|
+
return i(s(), "weekdays", null, null, d);
|
|
2602
|
+
}, l.weekdaysShort = function(d) {
|
|
2603
|
+
return i(s(), "weekdaysShort", "weekdays", 3, d);
|
|
2604
|
+
}, l.weekdaysMin = function(d) {
|
|
2605
|
+
return i(s(), "weekdaysMin", "weekdays", 2, d);
|
|
2606
2606
|
};
|
|
2607
2607
|
};
|
|
2608
2608
|
}));
|
|
2609
2609
|
})(nt)), nt.exports;
|
|
2610
2610
|
}
|
|
2611
2611
|
var wi = Si();
|
|
2612
|
-
const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER",
|
|
2612
|
+
const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", _i = (e, n = "") => u(e) ? e : n, Oi = (e, n) => (n = u(n) ? n : 2, u(e) ? e.toFixed(n) : 0), Tt = (e, n) => (n = u(n) ? n : 2, u(e) ? `${Te.commafy(Number(e), { digits: n })}` : e), al = (e) => sn(e, "yyyy-MM-dd"), ll = (e) => sn(e, "yyyy-MM-dd HH:mm:ss"), sn = (e, n) => Te.toDateString(e, n), at = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, xi = (e, n) => typeof n == "string" ? n === "number" ? Tt(e) : n === "date" ? al(e) : n === "datetime" ? ll(e) : at(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Tt(e, n[1]) : at(e, 200), $ = {
|
|
2613
2613
|
toString: _i,
|
|
2614
2614
|
toDateString: al,
|
|
2615
2615
|
toDatetimeString: ll,
|
|
@@ -2634,7 +2634,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2634
2634
|
emits: ["update:value"],
|
|
2635
2635
|
setup(e, { expose: n, emit: t }) {
|
|
2636
2636
|
A.locale("zh-cn"), A.extend(on), A.extend(pt);
|
|
2637
|
-
const a = e, l = $.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = $.toString(a.format, "YYYY-MM-DD"), i = de(
|
|
2637
|
+
const a = e, l = $.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = $.toString(a.format, "YYYY-MM-DD"), i = de(ve), s = je(i?.size);
|
|
2638
2638
|
let c = j();
|
|
2639
2639
|
const p = [
|
|
2640
2640
|
{ label: "当天", value: [A().add(0, r)] },
|
|
@@ -2645,7 +2645,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2645
2645
|
{ label: "近六个月", value: [A().add(-180, r)] },
|
|
2646
2646
|
{ label: "近一年", value: [A().add(-365, r)] },
|
|
2647
2647
|
{ label: "近三年", value: [A().add(-1095, r)] }
|
|
2648
|
-
],
|
|
2648
|
+
], d = [
|
|
2649
2649
|
{ label: "本月", value: [A().add(0, r)] },
|
|
2650
2650
|
{ label: "近一个月", value: [A().add(-1, r)] },
|
|
2651
2651
|
{ label: "近三个月", value: [A().add(-3, r)] },
|
|
@@ -2659,8 +2659,8 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2659
2659
|
{ label: "近两年", value: [A().add(-2, r)] },
|
|
2660
2660
|
{ label: "近三年", value: [A().add(-3, r)] },
|
|
2661
2661
|
{ label: "近五年", value: [A().add(-5, r)] }
|
|
2662
|
-
], h = j(l === "year" ? g : l === "month" ?
|
|
2663
|
-
le("日期区间选值", _), _ && _[0] == "" && _[1] == "" ?
|
|
2662
|
+
], h = j(l === "year" ? g : l === "month" ? d : p), f = t, m = (v, _) => {
|
|
2663
|
+
le("日期区间选值", _), _ && _[0] == "" && _[1] == "" ? f("update:value", null) : f("update:value", _);
|
|
2664
2664
|
}, w = () => {
|
|
2665
2665
|
let v = null, _ = null;
|
|
2666
2666
|
return c.value && c.value[0] && (v = A(c.value[0]).format(o)), c.value && c.value[1] && (_ = A(c.value[1]).format(o)), !v && !_ ? null : [v, _];
|
|
@@ -2669,11 +2669,11 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2669
2669
|
typeof _ == "number" || typeof z == "number" ? c.value = [
|
|
2670
2670
|
u(_) ? A().add(_, r) : null,
|
|
2671
2671
|
u(z) ? A().add(z, r) : null
|
|
2672
|
-
] : c.value = [u(_) ? A(_) : null, u(z) ? A(z) : null],
|
|
2672
|
+
] : c.value = [u(_) ? A(_) : null, u(z) ? A(z) : null], f("update:value", w());
|
|
2673
2673
|
}, b = () => {
|
|
2674
2674
|
u(a.defaultValue) ? C([a.defaultValue, null]) : C(null);
|
|
2675
2675
|
}, y = () => "dateRange";
|
|
2676
|
-
return
|
|
2676
|
+
return oe(() => {
|
|
2677
2677
|
b();
|
|
2678
2678
|
}), n({
|
|
2679
2679
|
setValue: C,
|
|
@@ -2712,25 +2712,25 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2712
2712
|
emits: ["update:value"],
|
|
2713
2713
|
setup(e, { expose: n, emit: t }) {
|
|
2714
2714
|
A.locale("zh-cn"), A.extend(on), A.extend(pt);
|
|
2715
|
-
const a = e, l = de(
|
|
2715
|
+
const a = e, l = de(ve), r = je(l?.size), o = $.toString(a.picker, "date"), i = $.toString(a.format, "YYYY-MM-DD"), s = t;
|
|
2716
2716
|
let c = j();
|
|
2717
|
-
const p = (
|
|
2717
|
+
const p = (f, m) => {
|
|
2718
2718
|
le("日期选值", m), !m || m == "" ? s("update:value", null) : s("update:value", m);
|
|
2719
|
-
},
|
|
2720
|
-
let
|
|
2721
|
-
return c.value && (
|
|
2722
|
-
}, g = (
|
|
2723
|
-
typeof
|
|
2719
|
+
}, d = () => {
|
|
2720
|
+
let f = null;
|
|
2721
|
+
return c.value && (f = A(c.value).format(i)), f || null;
|
|
2722
|
+
}, g = (f) => {
|
|
2723
|
+
typeof f == "number" ? c.value = u(f) ? A().add(f, o) : null : c.value = u(f) ? A(f) : null, s("update:value", d());
|
|
2724
2724
|
}, h = () => {
|
|
2725
2725
|
u(a.defaultValue) ? g(a.defaultValue) : g(null);
|
|
2726
2726
|
};
|
|
2727
|
-
return
|
|
2727
|
+
return oe(() => {
|
|
2728
2728
|
h();
|
|
2729
2729
|
}), n({
|
|
2730
2730
|
setValue: g,
|
|
2731
|
-
getValue:
|
|
2731
|
+
getValue: d,
|
|
2732
2732
|
resetValue: h
|
|
2733
|
-
}), (
|
|
2733
|
+
}), (f, m) => {
|
|
2734
2734
|
const w = E("a-date-picker");
|
|
2735
2735
|
return x(), V(w, {
|
|
2736
2736
|
value: S(c),
|
|
@@ -2759,7 +2759,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2759
2759
|
},
|
|
2760
2760
|
emits: ["update:value"],
|
|
2761
2761
|
setup(e, { expose: n, emit: t }) {
|
|
2762
|
-
const a = e, l = de(
|
|
2762
|
+
const a = e, l = de(ve), r = je(l?.size), o = j(null), i = K(a.placeholder, "请输入" + a.title), s = t, c = () => {
|
|
2763
2763
|
s("update:value", o.value);
|
|
2764
2764
|
};
|
|
2765
2765
|
return n({
|
|
@@ -2770,13 +2770,13 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2770
2770
|
resetValue: () => {
|
|
2771
2771
|
o.value = a.defaultValue || "", s("update:value", o.value);
|
|
2772
2772
|
}
|
|
2773
|
-
}),
|
|
2773
|
+
}), oe(() => {
|
|
2774
2774
|
s("update:value", o.value);
|
|
2775
|
-
}), (h,
|
|
2775
|
+
}), (h, f) => {
|
|
2776
2776
|
const m = E("a-input");
|
|
2777
2777
|
return x(), V(m, {
|
|
2778
2778
|
value: o.value,
|
|
2779
|
-
"onUpdate:value":
|
|
2779
|
+
"onUpdate:value": f[0] || (f[0] = (w) => o.value = w),
|
|
2780
2780
|
placeholder: S(i),
|
|
2781
2781
|
disabled: a.disabled,
|
|
2782
2782
|
type: a.inputType,
|
|
@@ -2802,10 +2802,10 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2802
2802
|
},
|
|
2803
2803
|
emits: ["update:value"],
|
|
2804
2804
|
setup(e, { expose: n, emit: t }) {
|
|
2805
|
-
const a = e, l = de(
|
|
2805
|
+
const a = e, l = de(ve), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", s = je(l?.size), c = j(a.multiple ? [] : null), p = t, d = j([]), g = async () => {
|
|
2806
2806
|
let b = a.request.requestUrl;
|
|
2807
2807
|
return !b && r && (b = i), b ? (b = te(o, b), await rn(r, b, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
2808
|
-
}, h = (b, y) => y.label.toLowerCase().indexOf(b.toLowerCase()) >= 0,
|
|
2808
|
+
}, h = (b, y) => y.label.toLowerCase().indexOf(b.toLowerCase()) >= 0, f = () => {
|
|
2809
2809
|
p("update:value", c.value);
|
|
2810
2810
|
}, m = () => c.value, w = (b) => {
|
|
2811
2811
|
c.value = b, p("update:value", c.value);
|
|
@@ -2816,22 +2816,22 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2816
2816
|
resetValue: () => {
|
|
2817
2817
|
a.multiple ? w(a.defaultValue || []) : w(a.defaultValue || null);
|
|
2818
2818
|
}
|
|
2819
|
-
}),
|
|
2819
|
+
}), oe(() => {
|
|
2820
2820
|
p("update:value", c.value), g().then((b) => {
|
|
2821
|
-
|
|
2821
|
+
d.value = b;
|
|
2822
2822
|
});
|
|
2823
2823
|
}), (b, y) => {
|
|
2824
2824
|
const v = E("a-select");
|
|
2825
|
-
return x(),
|
|
2825
|
+
return x(), U("div", Ti, [
|
|
2826
2826
|
D(v, {
|
|
2827
2827
|
value: c.value,
|
|
2828
2828
|
"onUpdate:value": y[0] || (y[0] = (_) => c.value = _),
|
|
2829
|
-
onChange:
|
|
2829
|
+
onChange: f,
|
|
2830
2830
|
placeholder: "--请选择--",
|
|
2831
2831
|
allowClear: a.clearable,
|
|
2832
2832
|
mode: a.multiple ? "multiple" : "",
|
|
2833
2833
|
"max-tag-count": a.maxTagCount,
|
|
2834
|
-
options:
|
|
2834
|
+
options: d.value,
|
|
2835
2835
|
"show-search": a.filterable,
|
|
2836
2836
|
"filter-option": h,
|
|
2837
2837
|
defaultActiveFirstOption: !a.multiple,
|
|
@@ -2862,7 +2862,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2862
2862
|
},
|
|
2863
2863
|
emits: ["update:value"],
|
|
2864
2864
|
setup(e, { expose: n, emit: t }) {
|
|
2865
|
-
const a = e, l = de(
|
|
2865
|
+
const a = e, l = de(ve), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", s = j(""), c = j(""), p = j([]), d = t, g = j(!1), h = async (v) => {
|
|
2866
2866
|
if (p.value = [], v) {
|
|
2867
2867
|
g.value = !0;
|
|
2868
2868
|
const _ = {
|
|
@@ -2874,18 +2874,18 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2874
2874
|
return g.value = !1, z;
|
|
2875
2875
|
} else
|
|
2876
2876
|
return [];
|
|
2877
|
-
},
|
|
2877
|
+
}, f = At((v) => {
|
|
2878
2878
|
h(v).then((_) => {
|
|
2879
2879
|
p.value = _;
|
|
2880
2880
|
});
|
|
2881
2881
|
}, 500), m = (v) => {
|
|
2882
|
-
s.value = v,
|
|
2882
|
+
s.value = v, d("update:value", v);
|
|
2883
2883
|
}, w = () => c.value, C = () => s.value, b = (v, _ = null) => {
|
|
2884
2884
|
s.value = v, c.value = _;
|
|
2885
2885
|
let z = p.value.filter((H) => H.value === s.value);
|
|
2886
2886
|
z.length === 1 ? c.value = z[0].label : h(v).then((H) => {
|
|
2887
2887
|
p.value = H;
|
|
2888
|
-
}),
|
|
2888
|
+
}), d("update:value", v);
|
|
2889
2889
|
};
|
|
2890
2890
|
return n({
|
|
2891
2891
|
getName: w,
|
|
@@ -2896,10 +2896,10 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2896
2896
|
}
|
|
2897
2897
|
}), (v, _) => {
|
|
2898
2898
|
const z = E("a-spin"), H = E("a-select");
|
|
2899
|
-
return x(),
|
|
2899
|
+
return x(), U("div", Mi, [
|
|
2900
2900
|
D(H, {
|
|
2901
2901
|
value: s.value,
|
|
2902
|
-
"onUpdate:value": _[0] || (_[0] = (
|
|
2902
|
+
"onUpdate:value": _[0] || (_[0] = (I) => s.value = I),
|
|
2903
2903
|
placeholder: i,
|
|
2904
2904
|
disabled: a.disabled,
|
|
2905
2905
|
"filter-option": !1,
|
|
@@ -2908,7 +2908,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2908
2908
|
"default-active-first-option": !1,
|
|
2909
2909
|
"show-arrow": !1,
|
|
2910
2910
|
onChange: m,
|
|
2911
|
-
onSearch: S(
|
|
2911
|
+
onSearch: S(f),
|
|
2912
2912
|
"allow-clear": "",
|
|
2913
2913
|
"show-search": "",
|
|
2914
2914
|
style: { width: "100%" }
|
|
@@ -2943,11 +2943,11 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2943
2943
|
},
|
|
2944
2944
|
emits: ["update:value"],
|
|
2945
2945
|
setup(e, { expose: n, emit: t }) {
|
|
2946
|
-
const a = e, l = de(
|
|
2946
|
+
const a = e, l = de(ve), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", s = j(a.multiple ? [] : null), c = j(""), p = j([]), d = j([]), g = t, h = (v, _) => _.label.toLowerCase().indexOf(Pe(v).toLowerCase()) >= 0, f = async () => await Ne(te(r, a.requestUrl), a.requestParams), m = (v) => {
|
|
2947
2947
|
g("update:value", v);
|
|
2948
2948
|
}, w = () => c.value, C = () => s.value, b = (v) => {
|
|
2949
2949
|
s.value = v, g("update:value", s.value);
|
|
2950
|
-
let _ =
|
|
2950
|
+
let _ = d.value.filter((z) => z.value === s.value);
|
|
2951
2951
|
if (a.multiple) {
|
|
2952
2952
|
let z = "";
|
|
2953
2953
|
_.forEach((H) => {
|
|
@@ -2963,11 +2963,11 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
2963
2963
|
resetValue: () => {
|
|
2964
2964
|
a.multiple ? b(a.defaultValue || []) : b(a.defaultValue || null);
|
|
2965
2965
|
}
|
|
2966
|
-
}),
|
|
2967
|
-
|
|
2966
|
+
}), f().then((v) => {
|
|
2967
|
+
d.value = v, p.value = v;
|
|
2968
2968
|
}), (v, _) => {
|
|
2969
2969
|
const z = E("a-select");
|
|
2970
|
-
return x(),
|
|
2970
|
+
return x(), U("div", ji, [
|
|
2971
2971
|
D(z, {
|
|
2972
2972
|
value: s.value,
|
|
2973
2973
|
"onUpdate:value": _[0] || (_[0] = (H) => s.value = H),
|
|
@@ -3009,7 +3009,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3009
3009
|
},
|
|
3010
3010
|
emits: ["update:value", "change"],
|
|
3011
3011
|
setup(e, { expose: n, emit: t }) {
|
|
3012
|
-
const a = e, l = de(
|
|
3012
|
+
const a = e, l = de(ve), r = l?.application || "", o = l?.ctxPath || "", i = je(l?.size), s = "请输入" + a.title + "搜索", c = a.fieldNames.label, p = a.fieldNames.value, d = j([]), g = j([]), h = async () => {
|
|
3013
3013
|
const _ = await Xa(
|
|
3014
3014
|
te(o, a.requestUrl),
|
|
3015
3015
|
a.requestParams,
|
|
@@ -3017,14 +3017,14 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3017
3017
|
"CASCADER_" + a.cacheKey
|
|
3018
3018
|
);
|
|
3019
3019
|
g.value = _;
|
|
3020
|
-
},
|
|
3021
|
-
u(z) ? (
|
|
3022
|
-
}, w = (_, z) => z.some((H) => H[c].indexOf(_) > -1), C = () => g.value.filter((z) => z[p] ===
|
|
3023
|
-
|
|
3020
|
+
}, f = t, m = (_, z) => {
|
|
3021
|
+
u(z) ? (f("update:value", _[_.length - 1]), f("change", z[z.length - 1])) : (f("update:value", null), f("change", null));
|
|
3022
|
+
}, w = (_, z) => z.some((H) => H[c].indexOf(_) > -1), C = () => g.value.filter((z) => z[p] === d.value[d.value.length - 1])[c], b = () => d.value, y = (_) => {
|
|
3023
|
+
d.value = _, f("update:value", _);
|
|
3024
3024
|
}, v = () => {
|
|
3025
|
-
|
|
3025
|
+
d.value = null, f("update:value", null), f("change", null);
|
|
3026
3026
|
};
|
|
3027
|
-
return
|
|
3027
|
+
return oe(() => {
|
|
3028
3028
|
h();
|
|
3029
3029
|
}), n({
|
|
3030
3030
|
getName: C,
|
|
@@ -3033,10 +3033,10 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3033
3033
|
resetValue: v
|
|
3034
3034
|
}), (_, z) => {
|
|
3035
3035
|
const H = E("a-cascader");
|
|
3036
|
-
return x(),
|
|
3036
|
+
return x(), U("div", Vi, [
|
|
3037
3037
|
D(H, {
|
|
3038
|
-
value:
|
|
3039
|
-
"onUpdate:value": z[0] || (z[0] = (
|
|
3038
|
+
value: d.value,
|
|
3039
|
+
"onUpdate:value": z[0] || (z[0] = (I) => d.value = I),
|
|
3040
3040
|
options: g.value,
|
|
3041
3041
|
fieldNames: a.fieldNames,
|
|
3042
3042
|
"show-search": { filter: w },
|
|
@@ -3058,7 +3058,7 @@ const pt = /* @__PURE__ */ tl(wi), nl = "CONSTANT_DIALOG_CONTAINER", ge = "CONST
|
|
|
3058
3058
|
return t;
|
|
3059
3059
|
}, Bi = {};
|
|
3060
3060
|
function Ni(e, n) {
|
|
3061
|
-
return x(),
|
|
3061
|
+
return x(), U("h2", null, "未获取到页面信息,请联系管理员!");
|
|
3062
3062
|
}
|
|
3063
3063
|
const Ri = /* @__PURE__ */ Di(Bi, [["render", Ni]]);
|
|
3064
3064
|
function ma(e, n = {}) {
|
|
@@ -3133,26 +3133,26 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3133
3133
|
s("cancel");
|
|
3134
3134
|
}, p = (C) => {
|
|
3135
3135
|
s("submit", C);
|
|
3136
|
-
},
|
|
3136
|
+
}, d = j(null), g = ne({
|
|
3137
3137
|
width: t.maximize ? "100%" : t.width,
|
|
3138
3138
|
height: t.maximize ? i : t.height,
|
|
3139
3139
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3140
3140
|
}), h = () => {
|
|
3141
|
-
let C = !
|
|
3142
|
-
C ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = i) : (g.maxZoomIcon = "vxe-icon-square", g.width = t.width, g.height = t.height),
|
|
3143
|
-
},
|
|
3144
|
-
console.log("iframe加载完毕",
|
|
3141
|
+
let C = !d.value.fullScreen;
|
|
3142
|
+
C ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = i) : (g.maxZoomIcon = "vxe-icon-square", g.width = t.width, g.height = t.height), d.value.fullScreen = C;
|
|
3143
|
+
}, f = "vue_iframe_" + Math.round(Math.random() * 1e8), m = j(), w = () => {
|
|
3144
|
+
console.log("iframe加载完毕", f), m.value.contentWindow.addEventListener("closeSagDialogModal", function(C) {
|
|
3145
3145
|
console.log("iframe关闭触发", C), c();
|
|
3146
3146
|
});
|
|
3147
3147
|
};
|
|
3148
|
-
return
|
|
3149
|
-
le("SagVxeDialog弹出参数", t), t.maximize && (
|
|
3148
|
+
return oe(() => {
|
|
3149
|
+
le("SagVxeDialog弹出参数", t), t.maximize && (d.value.fullScreen = !0);
|
|
3150
3150
|
}), (C, b) => {
|
|
3151
3151
|
const y = E("vxe-button"), v = E("a-modal");
|
|
3152
|
-
return x(),
|
|
3152
|
+
return x(), U("div", Li, [
|
|
3153
3153
|
D(v, {
|
|
3154
3154
|
ref_key: "gridModal",
|
|
3155
|
-
ref:
|
|
3155
|
+
ref: d,
|
|
3156
3156
|
open: t.visible,
|
|
3157
3157
|
"get-container": S(l),
|
|
3158
3158
|
width: g.width,
|
|
@@ -3171,8 +3171,8 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3171
3171
|
"destroy-on-close": ""
|
|
3172
3172
|
}, {
|
|
3173
3173
|
title: B(() => [
|
|
3174
|
-
|
|
3175
|
-
|
|
3174
|
+
Q("span", Ui, ae(t.title), 1),
|
|
3175
|
+
Q("span", Ii, [
|
|
3176
3176
|
D(y, {
|
|
3177
3177
|
mode: "text",
|
|
3178
3178
|
icon: g.maxZoomIcon,
|
|
@@ -3185,11 +3185,11 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3185
3185
|
onCancel: c,
|
|
3186
3186
|
onSubmit: p
|
|
3187
3187
|
}), null, 16)) : q("", !0),
|
|
3188
|
-
t.componentType === "iframe" ? (x(),
|
|
3188
|
+
t.componentType === "iframe" ? (x(), U("iframe", {
|
|
3189
3189
|
key: 1,
|
|
3190
3190
|
ref_key: "iframeRef",
|
|
3191
3191
|
ref: m,
|
|
3192
|
-
id:
|
|
3192
|
+
id: f,
|
|
3193
3193
|
src: S(o),
|
|
3194
3194
|
onLoad: w,
|
|
3195
3195
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
@@ -3213,7 +3213,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3213
3213
|
},
|
|
3214
3214
|
emits: ["update:value"],
|
|
3215
3215
|
setup(e, { expose: n, emit: t }) {
|
|
3216
|
-
const a = e, l = de(
|
|
3216
|
+
const a = e, l = de(ve), r = j(null), o = K(a.placeholder, "请输入" + a.title), i = t, s = (g) => {
|
|
3217
3217
|
p(g.value);
|
|
3218
3218
|
}, c = () => r.value, p = (g) => {
|
|
3219
3219
|
r.value = g, i("update:value", r.value);
|
|
@@ -3224,11 +3224,11 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3224
3224
|
resetValue: () => {
|
|
3225
3225
|
p(a.defaultValue || null);
|
|
3226
3226
|
}
|
|
3227
|
-
}),
|
|
3227
|
+
}), oe(() => {
|
|
3228
3228
|
i("update:value", c());
|
|
3229
3229
|
}), (g, h) => {
|
|
3230
|
-
const
|
|
3231
|
-
return x(), V(
|
|
3230
|
+
const f = E("vxe-input", !0);
|
|
3231
|
+
return x(), V(f, {
|
|
3232
3232
|
"model-value": r.value,
|
|
3233
3233
|
placeholder: S(o),
|
|
3234
3234
|
disabled: a.disabled,
|
|
@@ -3258,7 +3258,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3258
3258
|
},
|
|
3259
3259
|
emits: ["update:value"],
|
|
3260
3260
|
setup(e, { expose: n, emit: t }) {
|
|
3261
|
-
const a = e, l = de(
|
|
3261
|
+
const a = e, l = de(ve), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", s = "请输入" + a.title + "搜索", c = j(""), p = j(""), d = j([]), g = t, h = ne({
|
|
3262
3262
|
multiple: a.multiple,
|
|
3263
3263
|
filterable: a.filterable,
|
|
3264
3264
|
clearable: a.clearable,
|
|
@@ -3269,14 +3269,14 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3269
3269
|
filterMethod({ searchValue: v, option: _ }) {
|
|
3270
3270
|
return _.label.toLowerCase().indexOf(Pe(v).toLowerCase()) >= 0;
|
|
3271
3271
|
}
|
|
3272
|
-
}),
|
|
3272
|
+
}), f = async () => {
|
|
3273
3273
|
let v = a.request.requestUrl;
|
|
3274
3274
|
return !v && o && (v = i), v ? (v = te(r, v), await rn(o, v, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3275
3275
|
}, m = ({ value: v }) => {
|
|
3276
3276
|
g("update:value", v);
|
|
3277
3277
|
}, w = () => p.value, C = () => c.value, b = (v) => {
|
|
3278
3278
|
c.value = v, g("update:value", c.value);
|
|
3279
|
-
let _ =
|
|
3279
|
+
let _ = d.value.filter((z) => z.value === c.value);
|
|
3280
3280
|
_.length === 1 && (p.value = _[0].label);
|
|
3281
3281
|
};
|
|
3282
3282
|
return n({
|
|
@@ -3286,9 +3286,9 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3286
3286
|
resetValue: () => {
|
|
3287
3287
|
b(a.defaultValue);
|
|
3288
3288
|
}
|
|
3289
|
-
}),
|
|
3290
|
-
|
|
3291
|
-
!a.multiple && a.selectAll && (v = [{ label: "--全部--", value: "" }].concat(v)),
|
|
3289
|
+
}), oe(() => {
|
|
3290
|
+
f().then((v) => {
|
|
3291
|
+
!a.multiple && a.selectAll && (v = [{ label: "--全部--", value: "" }].concat(v)), d.value = v, h.options = v;
|
|
3292
3292
|
});
|
|
3293
3293
|
}), (v, _) => {
|
|
3294
3294
|
const z = E("vxe-select", !0);
|
|
@@ -3321,7 +3321,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3321
3321
|
},
|
|
3322
3322
|
emits: ["update:value"],
|
|
3323
3323
|
setup(e, { expose: n, emit: t }) {
|
|
3324
|
-
const a = e, l = de(
|
|
3324
|
+
const a = e, l = de(ve), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = j(""), s = j(""), c = j([]), p = t, d = ne({
|
|
3325
3325
|
clearable: !0,
|
|
3326
3326
|
filterable: !0,
|
|
3327
3327
|
disabled: a.disabled,
|
|
@@ -3333,7 +3333,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3333
3333
|
autoLoad: !1,
|
|
3334
3334
|
async queryMethod({ searchValue: b }) {
|
|
3335
3335
|
const y = await g(b);
|
|
3336
|
-
|
|
3336
|
+
d.options = y, c.value = y;
|
|
3337
3337
|
}
|
|
3338
3338
|
}
|
|
3339
3339
|
}), g = async (b) => {
|
|
@@ -3349,7 +3349,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3349
3349
|
return [];
|
|
3350
3350
|
}, h = ({ value: b }) => {
|
|
3351
3351
|
p("update:value", b);
|
|
3352
|
-
},
|
|
3352
|
+
}, f = () => s.value, m = () => i.value, w = (b) => {
|
|
3353
3353
|
i.value = b;
|
|
3354
3354
|
let y = c.value.filter((v) => v.value === i.value);
|
|
3355
3355
|
y.length === 1 ? s.value = y[0].label : g(b).then((v) => {
|
|
@@ -3357,7 +3357,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3357
3357
|
}), p("update:value", i.value);
|
|
3358
3358
|
};
|
|
3359
3359
|
return n({
|
|
3360
|
-
getName:
|
|
3360
|
+
getName: f,
|
|
3361
3361
|
getValue: m,
|
|
3362
3362
|
setValue: w,
|
|
3363
3363
|
resetValue: () => {
|
|
@@ -3368,7 +3368,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3368
3368
|
return x(), V(v, ee({
|
|
3369
3369
|
modelValue: i.value,
|
|
3370
3370
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => i.value = _)
|
|
3371
|
-
},
|
|
3371
|
+
}, d, {
|
|
3372
3372
|
size: S(l)?.size,
|
|
3373
3373
|
onChange: h,
|
|
3374
3374
|
style: { width: "100%" }
|
|
@@ -3394,7 +3394,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3394
3394
|
},
|
|
3395
3395
|
emits: ["update:value"],
|
|
3396
3396
|
setup(e, { expose: n, emit: t }) {
|
|
3397
|
-
const a = e, l = de(
|
|
3397
|
+
const a = e, l = de(ve), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = j(""), s = j(""), c = j([]), p = t, d = ne({
|
|
3398
3398
|
filterable: !0,
|
|
3399
3399
|
clearable: !0,
|
|
3400
3400
|
disabled: a.disabled,
|
|
@@ -3406,28 +3406,28 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3406
3406
|
}
|
|
3407
3407
|
}), g = async () => await Ne(te(r, a.requestUrl), a.requestParams), h = ({ value: b }) => {
|
|
3408
3408
|
p("update:value", b);
|
|
3409
|
-
},
|
|
3409
|
+
}, f = () => s.value, m = () => i.value, w = (b) => {
|
|
3410
3410
|
i.value = b, p("update:value", i.value);
|
|
3411
3411
|
let y = c.value.filter((v) => v.value === i.value);
|
|
3412
3412
|
y.length === 1 && (s.value = y[0].label);
|
|
3413
3413
|
};
|
|
3414
3414
|
return n({
|
|
3415
|
-
getName:
|
|
3415
|
+
getName: f,
|
|
3416
3416
|
getValue: m,
|
|
3417
3417
|
setValue: w,
|
|
3418
3418
|
resetValue: () => {
|
|
3419
3419
|
w(a.defaultValue);
|
|
3420
3420
|
}
|
|
3421
|
-
}),
|
|
3421
|
+
}), oe(() => {
|
|
3422
3422
|
g().then((b) => {
|
|
3423
|
-
c.value = b,
|
|
3423
|
+
c.value = b, d.options = b;
|
|
3424
3424
|
});
|
|
3425
3425
|
}), (b, y) => {
|
|
3426
3426
|
const v = E("vxe-select");
|
|
3427
3427
|
return x(), V(v, ee({
|
|
3428
3428
|
modelValue: i.value,
|
|
3429
3429
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => i.value = _)
|
|
3430
|
-
},
|
|
3430
|
+
}, d, {
|
|
3431
3431
|
size: S(l)?.size,
|
|
3432
3432
|
onChange: h,
|
|
3433
3433
|
style: { width: "100%" }
|
|
@@ -3441,19 +3441,19 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3441
3441
|
const t = n, a = () => {
|
|
3442
3442
|
t("export", (r) => {
|
|
3443
3443
|
try {
|
|
3444
|
-
if (le("excel下载参数", r), !u(
|
|
3444
|
+
if (le("excel下载参数", r), !u(Ke.ExcelJS)) {
|
|
3445
3445
|
le("需配置加载exceljs和file-saver组件");
|
|
3446
3446
|
return;
|
|
3447
3447
|
}
|
|
3448
|
-
const o = new
|
|
3448
|
+
const o = new Ke.ExcelJS.Workbook(), i = o.addWorksheet(r.sheetName);
|
|
3449
3449
|
let s = [], c = 0;
|
|
3450
|
-
if (r.columns.forEach((p,
|
|
3450
|
+
if (r.columns.forEach((p, d) => {
|
|
3451
3451
|
T.templateTable.ignoreExportColumnsTitle.includes(p.title) ? c++ : s.push({
|
|
3452
3452
|
key: p.field,
|
|
3453
3453
|
header: p.title,
|
|
3454
3454
|
width: u(p.exportWidth) ? p.exportWidth : p.title.length * 2 + 4
|
|
3455
3455
|
});
|
|
3456
|
-
}), i.columns = s, i.addRows(r.data), i.eachRow(function(p,
|
|
3456
|
+
}), i.columns = s, i.addRows(r.data), i.eachRow(function(p, d) {
|
|
3457
3457
|
p.eachCell({ includeEmpty: !0 }, function(g, h) {
|
|
3458
3458
|
u(g.value) && (g.value.toString().includes(`
|
|
3459
3459
|
`) ? g.alignment = { wrapText: !0 } : g.value.toString().includes("\\n") && (g.value = g.value.toString().replaceAll("\\n", `
|
|
@@ -3461,19 +3461,19 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3461
3461
|
});
|
|
3462
3462
|
}), u(r.mergeCells)) {
|
|
3463
3463
|
let p = {};
|
|
3464
|
-
r.mergeCells.forEach((
|
|
3465
|
-
let g =
|
|
3464
|
+
r.mergeCells.forEach((d) => {
|
|
3465
|
+
let g = d.col - c;
|
|
3466
3466
|
const h = l[g];
|
|
3467
|
-
if (u(p[h]) ? p[h] = p[h] +
|
|
3468
|
-
let
|
|
3469
|
-
const m = "'" + h +
|
|
3467
|
+
if (u(p[h]) ? p[h] = p[h] + d.rowspan : p[h] = d.rowspan + 1, d.col >= c && d.rowspan != 1) {
|
|
3468
|
+
let f = d.row + 2;
|
|
3469
|
+
const m = "'" + h + f + ":" + h + p[h] + "'";
|
|
3470
3470
|
i.mergeCells(m);
|
|
3471
3471
|
}
|
|
3472
3472
|
});
|
|
3473
3473
|
}
|
|
3474
3474
|
o.xlsx.writeBuffer().then((p) => {
|
|
3475
|
-
let
|
|
3476
|
-
|
|
3475
|
+
let d = new Blob([p], { type: "application/octet-stream" });
|
|
3476
|
+
Ke.FileSaver.saveAs(d, r.filename + ".xlsx");
|
|
3477
3477
|
}).catch((p) => le("Error writing excel export", p));
|
|
3478
3478
|
} catch (o) {
|
|
3479
3479
|
dt("下载失败", o);
|
|
@@ -3542,13 +3542,13 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3542
3542
|
title: "导出"
|
|
3543
3543
|
}, {
|
|
3544
3544
|
default: B(() => o[1] || (o[1] = [
|
|
3545
|
-
|
|
3545
|
+
Q("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
3546
3546
|
])),
|
|
3547
3547
|
_: 1
|
|
3548
3548
|
});
|
|
3549
3549
|
};
|
|
3550
3550
|
}
|
|
3551
|
-
}),
|
|
3551
|
+
}), Ki = { class: "sag-vxe-page-search-wrapper" }, Qi = { class: "sag-vxe-page-table-wrapper" }, Xi = ["onClick"], es = { style: { "font-weight": "bold" } }, ts = { key: 0 }, ns = ["onClick"], as = { key: 1 }, ls = { style: { display: "inline" } }, rs = { key: 0 }, os = ["onClick"], is = ["onClick"], ss = { key: 0 }, us = { key: 1 }, cs = { key: 2 }, ga = /* @__PURE__ */ W({
|
|
3552
3552
|
name: "SagVxePage",
|
|
3553
3553
|
inheritAttrs: !1,
|
|
3554
3554
|
__name: "SagVxePage",
|
|
@@ -3646,7 +3646,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3646
3646
|
l?.templateTable?.tableColumnMerge?.backgroundColor,
|
|
3647
3647
|
T?.templateTable?.tableColumnMerge?.backgroundColor
|
|
3648
3648
|
)
|
|
3649
|
-
}),
|
|
3649
|
+
}), d = ne({
|
|
3650
3650
|
formButtons: $.toString(l?.templateTable?.tableButtons?.formButtons, []),
|
|
3651
3651
|
tableButtons: $.toString(l?.templateTable?.tableButtons?.tableButtons, []),
|
|
3652
3652
|
tableMoreButtons: $.toString(l?.templateTable?.tableButtons?.tableMoreButtons, [])
|
|
@@ -3678,9 +3678,9 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3678
3678
|
T.templateTable.toolbarConfig.slots.tools
|
|
3679
3679
|
)
|
|
3680
3680
|
}
|
|
3681
|
-
}), h = T.application + "_" + r.templateType,
|
|
3682
|
-
Sn(
|
|
3683
|
-
const m = Object.keys(Be()), w = m.filter((k) => k.startsWith("items_")), C = m.filter((k) => k.startsWith("cols_")), b = m.filter((k) => k.startsWith("tools_")), y = j(), v = j(!0), _ = j(!1), z = j("none"), H = j(["1"]),
|
|
3681
|
+
}), h = T.application + "_" + r.templateType, f = "sag_vxe_page_div_panel_" + h;
|
|
3682
|
+
Sn(ve, r), Sn(nl, () => document.getElementById(S(f)));
|
|
3683
|
+
const m = Object.keys(Be()), w = m.filter((k) => k.startsWith("items_")), C = m.filter((k) => k.startsWith("cols_")), b = m.filter((k) => k.startsWith("tools_")), y = j(), v = j(!0), _ = j(!1), z = j("none"), H = j(["1"]), I = j(0), L = je(r.size), G = j(), N = ne({}), X = j([]), ke = j(), mt = j([]), gt = t, he = (k, O) => {
|
|
3684
3684
|
X.value[O] = k;
|
|
3685
3685
|
}, Ve = async () => {
|
|
3686
3686
|
const k = y.value;
|
|
@@ -3864,7 +3864,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3864
3864
|
backgroundColor: p?.backgroundColor
|
|
3865
3865
|
};
|
|
3866
3866
|
}, fl = () => {
|
|
3867
|
-
const k = document.getElementById(
|
|
3867
|
+
const k = document.getElementById(f);
|
|
3868
3868
|
if (k) {
|
|
3869
3869
|
const O = k.getElementsByTagName("form");
|
|
3870
3870
|
O && O.length > 0 && (O[0].submit = () => (a.visible = !1, Ve(), !1));
|
|
@@ -3917,7 +3917,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3917
3917
|
showStatus: !0
|
|
3918
3918
|
}), u(p) && u(p.mergeKey) && (Y.cellStyle = pn, Y.params.mergeField = p.mergeKey, p.isMerge ? Y.columnDragConfig.dragStartMethod = () => !1 : (Y.virtualYConfig = { enabled: !1 }, Y.spanMethod = xn(p))), v.value = !1;
|
|
3919
3919
|
}, vl = (k, O) => k && k.length > 0 ? k && O ? k.some((R) => Re(O[R.buttonName]) && Re(R.auth)) : !0 : !1;
|
|
3920
|
-
|
|
3920
|
+
oe(async () => {
|
|
3921
3921
|
if (le("加载页面模板", r), await gl(), s.storage) {
|
|
3922
3922
|
const k = Bl(r.application, r.templateType);
|
|
3923
3923
|
if (u(k)) {
|
|
@@ -3942,21 +3942,21 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3942
3942
|
}), fl(), await Ve(), hn();
|
|
3943
3943
|
});
|
|
3944
3944
|
const hn = Te.debounce(() => {
|
|
3945
|
-
le("屏幕高度出现变化,重新计算表格高度"), c.clientScale === 1 &&
|
|
3946
|
-
|
|
3945
|
+
le("屏幕高度出现变化,重新计算表格高度"), c.clientScale === 1 && I.value == 0 && (window.onresize = () => {
|
|
3946
|
+
I.value = document.body.clientWidth;
|
|
3947
3947
|
}), lt(() => {
|
|
3948
3948
|
Cn(G.value, Y, c.clientScale);
|
|
3949
3949
|
});
|
|
3950
3950
|
}, T.templateTable.lazyComputdHeightTime);
|
|
3951
|
-
c.clientScale === 1 &&
|
|
3952
|
-
[H,
|
|
3951
|
+
c.clientScale === 1 && ge(
|
|
3952
|
+
[H, I],
|
|
3953
3953
|
() => {
|
|
3954
3954
|
hn();
|
|
3955
3955
|
},
|
|
3956
3956
|
{ deep: !0, immediate: !0 }
|
|
3957
3957
|
);
|
|
3958
3958
|
const hl = (k) => {
|
|
3959
|
-
a.title =
|
|
3959
|
+
a.title = K(k.title, T.targetModal.title), a.width = K(k.width, T.targetModal.width), a.height = K(k.height, T.targetModal.height), a.maximize = K(k.maximize, !1), a.autoLoad = K(k.autoLoad, !1), a.componentType = K(k.componentType, T.targetModal.componentType), a.componentParams = k.componentParams, a.componentUrl = k.componentUrl, a.visible = !0;
|
|
3960
3960
|
}, yn = () => {
|
|
3961
3961
|
a.visible = !1, a.autoLoad && Ve();
|
|
3962
3962
|
}, yl = (k) => {
|
|
@@ -3988,11 +3988,11 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
3988
3988
|
}
|
|
3989
3989
|
}), (k, O) => {
|
|
3990
3990
|
const R = E("a-button"), F = E("a-space"), J = E("vxe-form"), se = E("a-collapse-panel"), _e = E("a-collapse"), Se = E("a-menu-item"), ie = E("a-menu"), qe = E("a-dropdown"), Oe = E("vxe-button"), wl = E("vxe-grid");
|
|
3991
|
-
return wn((x(),
|
|
3992
|
-
id:
|
|
3991
|
+
return wn((x(), U("div", {
|
|
3992
|
+
id: f,
|
|
3993
3993
|
class: "sag-vxe-page-wrapper"
|
|
3994
3994
|
}, [
|
|
3995
|
-
wn(
|
|
3995
|
+
wn(Q("div", Ki, [
|
|
3996
3996
|
D(_e, {
|
|
3997
3997
|
activeKey: H.value,
|
|
3998
3998
|
"onUpdate:activeKey": O[2] || (O[2] = (P) => H.value = P),
|
|
@@ -4054,14 +4054,14 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4054
4054
|
D(Ci, ee({
|
|
4055
4055
|
value: N[P.field],
|
|
4056
4056
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4057
|
-
ref: (M) =>
|
|
4057
|
+
ref: (M) => he(M, P.field)
|
|
4058
4058
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4059
4059
|
]),
|
|
4060
4060
|
date: B((P) => [
|
|
4061
4061
|
D(Pi, ee({
|
|
4062
4062
|
value: N[P.field],
|
|
4063
4063
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4064
|
-
ref: (M) =>
|
|
4064
|
+
ref: (M) => he(M, P.field)
|
|
4065
4065
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4066
4066
|
]),
|
|
4067
4067
|
input: B((P) => [
|
|
@@ -4069,14 +4069,14 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4069
4069
|
key: 0,
|
|
4070
4070
|
value: N[P.field],
|
|
4071
4071
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4072
|
-
ref: (M) =>
|
|
4072
|
+
ref: (M) => he(M, P.field),
|
|
4073
4073
|
title: P?.item?.title
|
|
4074
4074
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : q("", !0),
|
|
4075
4075
|
s.vxeSlot ? q("", !0) : (x(), V(ki, ee({
|
|
4076
4076
|
key: 1,
|
|
4077
4077
|
value: N[P.field],
|
|
4078
4078
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4079
|
-
ref: (M) =>
|
|
4079
|
+
ref: (M) => he(M, P.field),
|
|
4080
4080
|
title: P?.item?.title
|
|
4081
4081
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4082
4082
|
]),
|
|
@@ -4085,13 +4085,13 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4085
4085
|
key: 0,
|
|
4086
4086
|
value: N[P.field],
|
|
4087
4087
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4088
|
-
ref: (M) =>
|
|
4088
|
+
ref: (M) => he(M, P.field)
|
|
4089
4089
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : q("", !0),
|
|
4090
4090
|
s.vxeSlot ? q("", !0) : (x(), V(Ai, ee({
|
|
4091
4091
|
key: 1,
|
|
4092
4092
|
value: N[P.field],
|
|
4093
4093
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4094
|
-
ref: (M) =>
|
|
4094
|
+
ref: (M) => he(M, P.field)
|
|
4095
4095
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4096
4096
|
]),
|
|
4097
4097
|
selectList: B((P) => [
|
|
@@ -4099,14 +4099,14 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4099
4099
|
key: 0,
|
|
4100
4100
|
value: N[P.field],
|
|
4101
4101
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4102
|
-
ref: (M) =>
|
|
4102
|
+
ref: (M) => he(M, P.field),
|
|
4103
4103
|
title: P?.item?.title
|
|
4104
4104
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : q("", !0),
|
|
4105
4105
|
s.vxeSlot ? q("", !0) : (x(), V(zi, ee({
|
|
4106
4106
|
key: 1,
|
|
4107
4107
|
value: N[P.field],
|
|
4108
4108
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4109
|
-
ref: (M) =>
|
|
4109
|
+
ref: (M) => he(M, P.field),
|
|
4110
4110
|
title: P?.item?.title
|
|
4111
4111
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4112
4112
|
]),
|
|
@@ -4115,14 +4115,14 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4115
4115
|
key: 0,
|
|
4116
4116
|
value: N[P.field],
|
|
4117
4117
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4118
|
-
ref: (M) =>
|
|
4118
|
+
ref: (M) => he(M, P.field),
|
|
4119
4119
|
title: P?.item?.title
|
|
4120
4120
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : q("", !0),
|
|
4121
4121
|
s.vxeSlot ? q("", !0) : (x(), V($i, ee({
|
|
4122
4122
|
key: 1,
|
|
4123
4123
|
value: N[P.field],
|
|
4124
4124
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4125
|
-
ref: (M) =>
|
|
4125
|
+
ref: (M) => he(M, P.field),
|
|
4126
4126
|
title: P?.item?.title
|
|
4127
4127
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4128
4128
|
]),
|
|
@@ -4131,7 +4131,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4131
4131
|
value: N[P.field],
|
|
4132
4132
|
"onUpdate:value": (M) => N[P.field] = M,
|
|
4133
4133
|
title: P?.item?.title,
|
|
4134
|
-
ref: (M) =>
|
|
4134
|
+
ref: (M) => he(M, P.field)
|
|
4135
4135
|
}, P?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])
|
|
4136
4136
|
]),
|
|
4137
4137
|
_: 2
|
|
@@ -4139,7 +4139,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4139
4139
|
Ce(S(w), (P) => ({
|
|
4140
4140
|
name: P,
|
|
4141
4141
|
fn: B((M) => [
|
|
4142
|
-
|
|
4142
|
+
re(k.$slots, P, ee(M, {
|
|
4143
4143
|
value: N[M.field]
|
|
4144
4144
|
}))
|
|
4145
4145
|
])
|
|
@@ -4154,7 +4154,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4154
4154
|
], 512), [
|
|
4155
4155
|
[_n, S(u)(s.formItems)]
|
|
4156
4156
|
]),
|
|
4157
|
-
|
|
4157
|
+
Q("div", Qi, [
|
|
4158
4158
|
D(wl, ee({
|
|
4159
4159
|
ref_key: "gridRef",
|
|
4160
4160
|
ref: y
|
|
@@ -4169,39 +4169,39 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4169
4169
|
onRadioChange: sl
|
|
4170
4170
|
}), we({
|
|
4171
4171
|
operate: B(({ row: P, column: M }) => [
|
|
4172
|
-
|
|
4172
|
+
Q("a", {
|
|
4173
4173
|
href: "javascript:void(0)",
|
|
4174
4174
|
class: "sag-vxe-page-link",
|
|
4175
|
-
onClick: (
|
|
4175
|
+
onClick: (ye) => S(mn)(P, M)
|
|
4176
4176
|
}, ae(P[M.property]), 9, Xi)
|
|
4177
4177
|
]),
|
|
4178
4178
|
vertical: B(({ row: P, column: M }) => [
|
|
4179
|
-
(x(!0),
|
|
4180
|
-
key:
|
|
4179
|
+
(x(!0), U(fe, null, Ce(M.params.childColumns, (ye) => (x(), U("div", {
|
|
4180
|
+
key: ye.value
|
|
4181
4181
|
}, [
|
|
4182
|
-
|
|
4182
|
+
Q("span", es, ae(ye.title) + ":", 1),
|
|
4183
4183
|
O[7] || (O[7] = ce(" ")),
|
|
4184
|
-
|
|
4185
|
-
|
|
4184
|
+
ye.formatter === "operate" ? (x(), U("span", ts, [
|
|
4185
|
+
Q("a", {
|
|
4186
4186
|
href: "javascript:void(0)",
|
|
4187
4187
|
class: "sag-vxe-page-link",
|
|
4188
|
-
onClick: (
|
|
4189
|
-
}, ae(P[
|
|
4190
|
-
])) : (x(),
|
|
4188
|
+
onClick: (Os) => S(mn)(P, ye)
|
|
4189
|
+
}, ae(P[ye.field]), 9, ns)
|
|
4190
|
+
])) : (x(), U("span", as, ae(S($).stringFormat(P[ye.field], ye.formatter)), 1))
|
|
4191
4191
|
]))), 128))
|
|
4192
4192
|
]),
|
|
4193
4193
|
button: B(({ row: P }) => [
|
|
4194
|
-
|
|
4195
|
-
(x(!0),
|
|
4196
|
-
S($).toString(P[M.buttonName], !0) && S(Re)(M.auth) ? (x(),
|
|
4194
|
+
Q("div", ls, [
|
|
4195
|
+
(x(!0), U(fe, null, Ce(d.tableButtons, (M) => (x(), U(fe, { key: M }, [
|
|
4196
|
+
S($).toString(P[M.buttonName], !0) && S(Re)(M.auth) ? (x(), U("span", rs, [
|
|
4197
4197
|
c.showButtonLink ? q("", !0) : (x(), V(R, {
|
|
4198
4198
|
key: 0,
|
|
4199
4199
|
size: "small",
|
|
4200
4200
|
type: S($).toString(M.status, "primary"),
|
|
4201
|
-
onClick: (
|
|
4201
|
+
onClick: (ye) => S(He)(M, P)
|
|
4202
4202
|
}, {
|
|
4203
4203
|
icon: B(() => [
|
|
4204
|
-
D(
|
|
4204
|
+
D(ze, {
|
|
4205
4205
|
icon: M.icon
|
|
4206
4206
|
}, null, 8, ["icon"])
|
|
4207
4207
|
]),
|
|
@@ -4210,13 +4210,13 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4210
4210
|
]),
|
|
4211
4211
|
_: 2
|
|
4212
4212
|
}, 1032, ["type", "onClick"])),
|
|
4213
|
-
c.showButtonLink ? (x(),
|
|
4213
|
+
c.showButtonLink ? (x(), U("a", {
|
|
4214
4214
|
key: 1,
|
|
4215
4215
|
href: "javascript:void(0)",
|
|
4216
4216
|
class: "sag-vxe-page-button-link",
|
|
4217
|
-
onClick: (
|
|
4217
|
+
onClick: (ye) => S(He)(M, P)
|
|
4218
4218
|
}, [
|
|
4219
|
-
D(
|
|
4219
|
+
D(ze, {
|
|
4220
4220
|
icon: M.icon
|
|
4221
4221
|
}, null, 8, ["icon"]),
|
|
4222
4222
|
ce(" " + ae(M.buttonName), 1)
|
|
@@ -4225,21 +4225,21 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4225
4225
|
])) : q("", !0)
|
|
4226
4226
|
], 64))), 128))
|
|
4227
4227
|
]),
|
|
4228
|
-
vl(
|
|
4228
|
+
vl(d.tableMoreButtons, P) ? (x(), V(qe, {
|
|
4229
4229
|
key: 0,
|
|
4230
4230
|
destroyPopupOnHide: !0
|
|
4231
4231
|
}, {
|
|
4232
4232
|
overlay: B(() => [
|
|
4233
4233
|
D(ie, null, {
|
|
4234
4234
|
default: B(() => [
|
|
4235
|
-
(x(!0),
|
|
4236
|
-
S(Re)(M.auth) ? (x(),
|
|
4235
|
+
(x(!0), U(fe, null, Ce(d.tableMoreButtons, (M) => (x(), U(fe, { key: M }, [
|
|
4236
|
+
S(Re)(M.auth) ? (x(), U(fe, { key: 0 }, [
|
|
4237
4237
|
S($).toString(P[M.buttonName], !0) ? (x(), V(Se, { key: 0 }, {
|
|
4238
4238
|
default: B(() => [
|
|
4239
|
-
|
|
4240
|
-
onClick: (
|
|
4239
|
+
Q("a", {
|
|
4240
|
+
onClick: (ye) => S(He)(M, P)
|
|
4241
4241
|
}, [
|
|
4242
|
-
D(
|
|
4242
|
+
D(ze, {
|
|
4243
4243
|
icon: M.icon
|
|
4244
4244
|
}, null, 8, ["icon"]),
|
|
4245
4245
|
ce(" " + ae(M.buttonName), 1)
|
|
@@ -4269,13 +4269,13 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4269
4269
|
}, 1024)) : q("", !0)
|
|
4270
4270
|
]),
|
|
4271
4271
|
toolbar_buttons: B(() => [
|
|
4272
|
-
S(u)(
|
|
4272
|
+
S(u)(d.formButtons) && d.formButtons.length > 0 ? (x(), V(F, {
|
|
4273
4273
|
key: 0,
|
|
4274
4274
|
wrap: !0,
|
|
4275
4275
|
style: { "margin-bottom": "0px" }
|
|
4276
4276
|
}, {
|
|
4277
4277
|
default: B(() => [
|
|
4278
|
-
(x(!0),
|
|
4278
|
+
(x(!0), U(fe, null, Ce(d.formButtons, (P) => (x(), U("span", { key: P }, [
|
|
4279
4279
|
S(Re)(P.auth) ? (x(), V(R, {
|
|
4280
4280
|
key: 0,
|
|
4281
4281
|
round: "",
|
|
@@ -4284,7 +4284,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4284
4284
|
onClick: (M) => S(pl)(P)
|
|
4285
4285
|
}, {
|
|
4286
4286
|
icon: B(() => [
|
|
4287
|
-
D(
|
|
4287
|
+
D(ze, {
|
|
4288
4288
|
icon: P.icon
|
|
4289
4289
|
}, null, 8, ["icon"])
|
|
4290
4290
|
]),
|
|
@@ -4297,7 +4297,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4297
4297
|
]),
|
|
4298
4298
|
_: 1
|
|
4299
4299
|
})) : q("", !0),
|
|
4300
|
-
(x(!0),
|
|
4300
|
+
(x(!0), U(fe, null, Ce(S(b), (P) => re(k.$slots, P)), 256))
|
|
4301
4301
|
]),
|
|
4302
4302
|
toolbar_tools: B(() => [
|
|
4303
4303
|
S(u)(c.tableColumnsExtra) ? (x(), V(Oe, {
|
|
@@ -4308,7 +4308,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4308
4308
|
title: "切换"
|
|
4309
4309
|
}, {
|
|
4310
4310
|
default: B(() => O[10] || (O[10] = [
|
|
4311
|
-
|
|
4311
|
+
Q("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1)
|
|
4312
4312
|
])),
|
|
4313
4313
|
_: 1
|
|
4314
4314
|
})) : q("", !0),
|
|
@@ -4324,7 +4324,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4324
4324
|
title: "下载"
|
|
4325
4325
|
}, {
|
|
4326
4326
|
default: B(() => O[11] || (O[11] = [
|
|
4327
|
-
|
|
4327
|
+
Q("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
4328
4328
|
])),
|
|
4329
4329
|
_: 1
|
|
4330
4330
|
}, 8, ["onClick"])) : q("", !0),
|
|
@@ -4336,31 +4336,31 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4336
4336
|
title: "导入"
|
|
4337
4337
|
}, {
|
|
4338
4338
|
default: B(() => O[12] || (O[12] = [
|
|
4339
|
-
|
|
4339
|
+
Q("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1)
|
|
4340
4340
|
])),
|
|
4341
4341
|
_: 1
|
|
4342
4342
|
})) : q("", !0)
|
|
4343
4343
|
]),
|
|
4344
4344
|
empty: B(() => [
|
|
4345
|
-
z.value === "error" ? (x(),
|
|
4346
|
-
|
|
4345
|
+
z.value === "error" ? (x(), U("h2", ss, O[13] || (O[13] = [
|
|
4346
|
+
Q("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4347
4347
|
]))) : q("", !0),
|
|
4348
|
-
z.value === "none" ? (x(),
|
|
4349
|
-
|
|
4348
|
+
z.value === "none" ? (x(), U("h2", us, O[14] || (O[14] = [
|
|
4349
|
+
Q("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4350
4350
|
]))) : q("", !0),
|
|
4351
|
-
z.value === "more" ? (x(),
|
|
4352
|
-
O[16] || (O[16] =
|
|
4351
|
+
z.value === "more" ? (x(), U("h2", cs, [
|
|
4352
|
+
O[16] || (O[16] = Q("span", { style: { "font-size": "16px" } }, [
|
|
4353
4353
|
ce(" 您好,因数据量过大,强制显示将会 "),
|
|
4354
|
-
|
|
4354
|
+
Q("span", { style: { color: "red" } }, "取消合并列"),
|
|
4355
4355
|
ce(" 模式,建议您调整查询条件后重新查询! ")
|
|
4356
4356
|
], -1)),
|
|
4357
|
-
O[17] || (O[17] =
|
|
4358
|
-
|
|
4357
|
+
O[17] || (O[17] = Q("br", null, null, -1)),
|
|
4358
|
+
Q("a", {
|
|
4359
4359
|
onClick: ol,
|
|
4360
4360
|
href: "javascript:void(0)",
|
|
4361
4361
|
class: "link"
|
|
4362
4362
|
}, O[15] || (O[15] = [
|
|
4363
|
-
|
|
4363
|
+
Q("span", { style: { "font-size": "24px", color: "red" } }, "是否强制显示?", -1)
|
|
4364
4364
|
]))
|
|
4365
4365
|
])) : q("", !0)
|
|
4366
4366
|
]),
|
|
@@ -4369,7 +4369,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4369
4369
|
Ce(S(C), (P) => ({
|
|
4370
4370
|
name: P,
|
|
4371
4371
|
fn: B((M) => [
|
|
4372
|
-
|
|
4372
|
+
re(k.$slots, P, Tl(Al(M)))
|
|
4373
4373
|
])
|
|
4374
4374
|
}))
|
|
4375
4375
|
]), 1040, ["size"])
|
|
@@ -4383,7 +4383,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4383
4383
|
]);
|
|
4384
4384
|
};
|
|
4385
4385
|
}
|
|
4386
|
-
}),
|
|
4386
|
+
}), Ms = {
|
|
4387
4387
|
install: (e, n) => {
|
|
4388
4388
|
e.component(ga.name, ga);
|
|
4389
4389
|
}
|
|
@@ -4413,27 +4413,27 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4413
4413
|
A.locale("zh-cn"), A.extend(pt);
|
|
4414
4414
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD";
|
|
4415
4415
|
let o = j();
|
|
4416
|
-
const i = (
|
|
4416
|
+
const i = (f, m) => {
|
|
4417
4417
|
h(m, !0);
|
|
4418
|
-
}, s = () => u(o.value) ? A(o.value).format(r) : null, c = (
|
|
4419
|
-
o.value = A(
|
|
4420
|
-
}, p = (
|
|
4421
|
-
o.value = A().add(
|
|
4422
|
-
},
|
|
4423
|
-
u(
|
|
4418
|
+
}, s = () => u(o.value) ? A(o.value).format(r) : null, c = (f) => {
|
|
4419
|
+
o.value = A(f), h();
|
|
4420
|
+
}, p = (f) => {
|
|
4421
|
+
o.value = A().add(f || 0, l), h();
|
|
4422
|
+
}, d = (f) => !!(u(a.max) && A(f).format(r) > a.max || u(a.min) && A(f).format(r) < a.min), g = t, h = (f, m = !1) => {
|
|
4423
|
+
u(f) ? (g("update:value", f), m && g("change", f)) : (g("update:value", s()), m && g("change", s()));
|
|
4424
4424
|
};
|
|
4425
|
-
return
|
|
4425
|
+
return ge(
|
|
4426
4426
|
() => a.value,
|
|
4427
|
-
(
|
|
4428
|
-
o.value =
|
|
4427
|
+
(f, m) => {
|
|
4428
|
+
o.value = f ? A(f) : null;
|
|
4429
4429
|
}
|
|
4430
|
-
),
|
|
4430
|
+
), oe(() => {
|
|
4431
4431
|
u(a.value) && c(a.value);
|
|
4432
4432
|
}), n({
|
|
4433
4433
|
setDate: c,
|
|
4434
4434
|
setValue: p,
|
|
4435
4435
|
getValue: s
|
|
4436
|
-
}), (
|
|
4436
|
+
}), (f, m) => {
|
|
4437
4437
|
const w = E("a-date-picker");
|
|
4438
4438
|
return x(), V(w, {
|
|
4439
4439
|
value: S(o),
|
|
@@ -4442,14 +4442,14 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4442
4442
|
disabled: a.disabled,
|
|
4443
4443
|
locale: S(Fe),
|
|
4444
4444
|
format: S(r),
|
|
4445
|
-
disabledDate:
|
|
4445
|
+
disabledDate: d,
|
|
4446
4446
|
picker: S(l) === "day" ? "date" : S(l),
|
|
4447
|
-
style:
|
|
4447
|
+
style: me(a.style),
|
|
4448
4448
|
onChange: i
|
|
4449
4449
|
}, null, 8, ["value", "show-time", "disabled", "locale", "format", "picker", "style"]);
|
|
4450
4450
|
};
|
|
4451
4451
|
}
|
|
4452
|
-
}),
|
|
4452
|
+
}), $s = {
|
|
4453
4453
|
install: (e, n) => {
|
|
4454
4454
|
e.component(va.name, va);
|
|
4455
4455
|
}
|
|
@@ -4492,12 +4492,12 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4492
4492
|
{ label: "近两年", value: [A().add(-2, l)] },
|
|
4493
4493
|
{ label: "近三年", value: [A().add(-3, l)] },
|
|
4494
4494
|
{ label: "近五年", value: [A().add(-5, l)] }
|
|
4495
|
-
],
|
|
4495
|
+
], d = j(l === "day" ? s : l === "month" ? c : p), g = (w, C) => {
|
|
4496
4496
|
m(C, !0);
|
|
4497
4497
|
}, h = () => {
|
|
4498
4498
|
let w = null, C = null;
|
|
4499
4499
|
return i.value && i.value[0] && (w = A(i.value[0]).format(r)), i.value && i.value[1] && (C = A(i.value[1]).format(r)), !w && !C ? null : [w, C];
|
|
4500
|
-
},
|
|
4500
|
+
}, f = (w, C) => {
|
|
4501
4501
|
typeof w == "number" || typeof C == "number" ? i.value = [
|
|
4502
4502
|
u(w) ? A().add(w, l) : null,
|
|
4503
4503
|
u(C) ? A().add(C, l) : null
|
|
@@ -4505,33 +4505,33 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4505
4505
|
}, m = (w, C = !1) => {
|
|
4506
4506
|
u(w) ? (o("update:value", w), C && o("change", w)) : (o("update:value", h()), C && o("change", h()));
|
|
4507
4507
|
};
|
|
4508
|
-
return
|
|
4508
|
+
return ge(
|
|
4509
4509
|
() => a.value,
|
|
4510
4510
|
(w, C) => {
|
|
4511
4511
|
let b = null, y = null;
|
|
4512
4512
|
u(w) && (u(w[0]) && (b = A(w[0])), u(w[1]) && (y = A(w[1]))), i.value = [b, y];
|
|
4513
4513
|
}
|
|
4514
|
-
),
|
|
4515
|
-
u(a.value) &&
|
|
4514
|
+
), oe(() => {
|
|
4515
|
+
u(a.value) && f(a.value[0], a.value[1]);
|
|
4516
4516
|
}), n({
|
|
4517
|
-
setValue:
|
|
4517
|
+
setValue: f,
|
|
4518
4518
|
getValue: h
|
|
4519
4519
|
}), (w, C) => {
|
|
4520
4520
|
const b = E("a-range-picker");
|
|
4521
4521
|
return x(), V(b, {
|
|
4522
4522
|
value: i.value,
|
|
4523
4523
|
"onUpdate:value": C[0] || (C[0] = (y) => i.value = y),
|
|
4524
|
-
presets:
|
|
4524
|
+
presets: d.value,
|
|
4525
4525
|
locale: S(Fe),
|
|
4526
4526
|
allowEmpty: [!0, !0],
|
|
4527
4527
|
format: S(r),
|
|
4528
4528
|
picker: S(l) === "day" ? "date" : S(l),
|
|
4529
|
-
style:
|
|
4529
|
+
style: me(a.style),
|
|
4530
4530
|
onChange: g
|
|
4531
4531
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "style"]);
|
|
4532
4532
|
};
|
|
4533
4533
|
}
|
|
4534
|
-
}),
|
|
4534
|
+
}), js = {
|
|
4535
4535
|
install: (e, n) => {
|
|
4536
4536
|
e.component(ha.name, ha);
|
|
4537
4537
|
}
|
|
@@ -4566,7 +4566,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4566
4566
|
disabled: t.disabled
|
|
4567
4567
|
}, {
|
|
4568
4568
|
icon: B(() => [
|
|
4569
|
-
t.icon !== "none" ? (x(), V(
|
|
4569
|
+
t.icon !== "none" ? (x(), V(ze, {
|
|
4570
4570
|
key: 0,
|
|
4571
4571
|
icon: t.icon
|
|
4572
4572
|
}, null, 8, ["icon"])) : q("", !0)
|
|
@@ -4578,7 +4578,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4578
4578
|
}, 8, ["size", "type", "disabled"]);
|
|
4579
4579
|
};
|
|
4580
4580
|
}
|
|
4581
|
-
}),
|
|
4581
|
+
}), zs = {
|
|
4582
4582
|
install: (e, n) => {
|
|
4583
4583
|
e.component(ya.name, ya);
|
|
4584
4584
|
}
|
|
@@ -4609,7 +4609,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4609
4609
|
},
|
|
4610
4610
|
emits: ["update:value", "change"],
|
|
4611
4611
|
setup(e, { expose: n, emit: t }) {
|
|
4612
|
-
const a = e, l = T.application || "", r = T.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, s = a.fieldNames.value, c = j([]), p = j([]),
|
|
4612
|
+
const a = e, l = T.application || "", r = T.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, s = a.fieldNames.value, c = j([]), p = j([]), d = async () => {
|
|
4613
4613
|
const b = await Xa(
|
|
4614
4614
|
te(r, a.requestUrl),
|
|
4615
4615
|
a.requestParams,
|
|
@@ -4619,35 +4619,35 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4619
4619
|
p.value = b;
|
|
4620
4620
|
}, g = t, h = (b, y) => {
|
|
4621
4621
|
u(y) ? (g("update:value", b[b.length - 1]), g("change", y[y.length - 1])) : (g("update:value", null), g("change", null));
|
|
4622
|
-
},
|
|
4622
|
+
}, f = (b, y) => y.some((v) => v[i].indexOf(b) > -1), m = () => p.value.filter((y) => y[s] === c.value[c.value.length - 1])[i], w = () => c.value, C = (b) => {
|
|
4623
4623
|
c.value = b, g("update:value", b);
|
|
4624
4624
|
};
|
|
4625
|
-
return
|
|
4626
|
-
|
|
4625
|
+
return oe(() => {
|
|
4626
|
+
d();
|
|
4627
4627
|
}), n({
|
|
4628
4628
|
getName: m,
|
|
4629
4629
|
getValue: w,
|
|
4630
4630
|
setValue: C
|
|
4631
4631
|
}), (b, y) => {
|
|
4632
4632
|
const v = E("a-cascader");
|
|
4633
|
-
return x(),
|
|
4633
|
+
return x(), U("div", ds, [
|
|
4634
4634
|
D(v, {
|
|
4635
4635
|
value: c.value,
|
|
4636
4636
|
"onUpdate:value": y[0] || (y[0] = (_) => c.value = _),
|
|
4637
4637
|
options: p.value,
|
|
4638
4638
|
fieldNames: a.fieldNames,
|
|
4639
|
-
"show-search": { filter:
|
|
4639
|
+
"show-search": { filter: f },
|
|
4640
4640
|
disabled: a.disabled,
|
|
4641
4641
|
clearable: a.clearable,
|
|
4642
4642
|
changeOnSelect: a.changeOnSelect,
|
|
4643
4643
|
placeholder: o,
|
|
4644
|
-
style:
|
|
4644
|
+
style: me(a.style),
|
|
4645
4645
|
onChange: h
|
|
4646
4646
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "style"])
|
|
4647
4647
|
]);
|
|
4648
4648
|
};
|
|
4649
4649
|
}
|
|
4650
|
-
}),
|
|
4650
|
+
}), Vs = {
|
|
4651
4651
|
install: (e, n) => {
|
|
4652
4652
|
e.component(ba.name, ba);
|
|
4653
4653
|
}
|
|
@@ -4677,34 +4677,34 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4677
4677
|
size: "small",
|
|
4678
4678
|
headStyle: n.headStyle,
|
|
4679
4679
|
bodyStyle: n.bodyStyle,
|
|
4680
|
-
style:
|
|
4680
|
+
style: me(n.style),
|
|
4681
4681
|
hoverable: n.hoverable,
|
|
4682
4682
|
loading: n.loading
|
|
4683
4683
|
}, we({
|
|
4684
4684
|
default: B(() => [
|
|
4685
|
-
|
|
4685
|
+
re(r.$slots, "default")
|
|
4686
4686
|
]),
|
|
4687
4687
|
_: 2
|
|
4688
4688
|
}, [
|
|
4689
4689
|
S(l).length === 1 || S(u)(n.title) ? {
|
|
4690
4690
|
name: "title",
|
|
4691
4691
|
fn: B(() => [
|
|
4692
|
-
S(l).length === 1 ?
|
|
4693
|
-
S(l).length !== 1 ? (x(),
|
|
4692
|
+
S(l).length === 1 ? re(r.$slots, "title", { key: 0 }) : q("", !0),
|
|
4693
|
+
S(l).length !== 1 ? (x(), U("span", fs, ae(n.title), 1)) : q("", !0)
|
|
4694
4694
|
]),
|
|
4695
4695
|
key: "0"
|
|
4696
4696
|
} : void 0,
|
|
4697
4697
|
S(a).length === 1 ? {
|
|
4698
4698
|
name: "extra",
|
|
4699
4699
|
fn: B(() => [
|
|
4700
|
-
|
|
4700
|
+
re(r.$slots, "extra")
|
|
4701
4701
|
]),
|
|
4702
4702
|
key: "1"
|
|
4703
4703
|
} : void 0
|
|
4704
4704
|
]), 1032, ["headStyle", "bodyStyle", "style", "hoverable", "loading"]);
|
|
4705
4705
|
};
|
|
4706
4706
|
}
|
|
4707
|
-
}),
|
|
4707
|
+
}), qs = {
|
|
4708
4708
|
install: (e, n) => {
|
|
4709
4709
|
e.component(Sa.name, Sa);
|
|
4710
4710
|
}
|
|
@@ -4738,13 +4738,13 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4738
4738
|
setup(e, { expose: n, emit: t }) {
|
|
4739
4739
|
const a = e, l = j($.toString(a.value, null)), r = t, o = Object.keys(Be()), i = o.filter((h) => h === "addonAfter"), s = o.filter((h) => h === "addonBefore"), c = () => {
|
|
4740
4740
|
g(!0);
|
|
4741
|
-
}, p = () => l.value,
|
|
4741
|
+
}, p = () => l.value, d = (h) => {
|
|
4742
4742
|
a.formatter === "date" ? l.value = $.toDateString(h) : a.formatter === "datetime" ? l.value = $.toDatetimeString(h) : l.value = h, g();
|
|
4743
4743
|
};
|
|
4744
|
-
|
|
4744
|
+
ge(
|
|
4745
4745
|
() => a.value,
|
|
4746
|
-
(h,
|
|
4747
|
-
h !== l.value &&
|
|
4746
|
+
(h, f) => {
|
|
4747
|
+
h !== l.value && d(h);
|
|
4748
4748
|
}
|
|
4749
4749
|
);
|
|
4750
4750
|
const g = (h = !1) => {
|
|
@@ -4752,39 +4752,39 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4752
4752
|
};
|
|
4753
4753
|
return n({
|
|
4754
4754
|
getValue: p,
|
|
4755
|
-
setValue:
|
|
4756
|
-
}), (h,
|
|
4755
|
+
setValue: d
|
|
4756
|
+
}), (h, f) => {
|
|
4757
4757
|
const m = E("a-input");
|
|
4758
4758
|
return x(), V(m, {
|
|
4759
4759
|
value: l.value,
|
|
4760
|
-
"onUpdate:value":
|
|
4760
|
+
"onUpdate:value": f[0] || (f[0] = (w) => l.value = w),
|
|
4761
4761
|
placeholder: a.placeholder,
|
|
4762
4762
|
disabled: a.disabled,
|
|
4763
4763
|
showCount: a.showCount,
|
|
4764
4764
|
maxlength: a.maxlength,
|
|
4765
|
-
style:
|
|
4765
|
+
style: me(a.style),
|
|
4766
4766
|
onChange: c
|
|
4767
4767
|
}, we({ _: 2 }, [
|
|
4768
4768
|
S(i).length === 1 || S(u)(a.addonAfter) ? {
|
|
4769
4769
|
name: "addonAfter",
|
|
4770
4770
|
fn: B(() => [
|
|
4771
|
-
S(i).length === 1 ?
|
|
4772
|
-
S(i).length !== 1 ? (x(),
|
|
4771
|
+
S(i).length === 1 ? re(h.$slots, "addonAfter", { key: 0 }) : q("", !0),
|
|
4772
|
+
S(i).length !== 1 ? (x(), U("span", ps, ae(a.addonAfter), 1)) : q("", !0)
|
|
4773
4773
|
]),
|
|
4774
4774
|
key: "0"
|
|
4775
4775
|
} : void 0,
|
|
4776
4776
|
S(s).length === 1 || S(u)(a.addonBefore) ? {
|
|
4777
4777
|
name: "addonBefore",
|
|
4778
4778
|
fn: B(() => [
|
|
4779
|
-
S(s).length === 1 ?
|
|
4780
|
-
S(s).length !== 1 ? (x(),
|
|
4779
|
+
S(s).length === 1 ? re(h.$slots, "addonBefore", { key: 0 }) : q("", !0),
|
|
4780
|
+
S(s).length !== 1 ? (x(), U("span", ms, ae(a.addonBefore), 1)) : q("", !0)
|
|
4781
4781
|
]),
|
|
4782
4782
|
key: "1"
|
|
4783
4783
|
} : void 0
|
|
4784
4784
|
]), 1032, ["value", "placeholder", "disabled", "showCount", "maxlength", "style"]);
|
|
4785
4785
|
};
|
|
4786
4786
|
}
|
|
4787
|
-
}),
|
|
4787
|
+
}), Ds = {
|
|
4788
4788
|
install: (e, n) => {
|
|
4789
4789
|
e.component(wa.name, wa);
|
|
4790
4790
|
}
|
|
@@ -4824,13 +4824,13 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4824
4824
|
setup(e, { expose: n, emit: t }) {
|
|
4825
4825
|
const a = e, l = j($.toString(a.value, null)), r = t, o = Object.keys(Be()), i = o.filter((h) => h === "addonAfter"), s = o.filter((h) => h === "addonBefore"), c = () => {
|
|
4826
4826
|
g(!0);
|
|
4827
|
-
}, p = () => l.value,
|
|
4827
|
+
}, p = () => l.value, d = (h) => {
|
|
4828
4828
|
l.value = h, g();
|
|
4829
4829
|
};
|
|
4830
|
-
|
|
4830
|
+
ge(
|
|
4831
4831
|
() => a.value,
|
|
4832
|
-
(h,
|
|
4833
|
-
h !== l.value &&
|
|
4832
|
+
(h, f) => {
|
|
4833
|
+
h !== l.value && d(h);
|
|
4834
4834
|
}
|
|
4835
4835
|
);
|
|
4836
4836
|
const g = (h = !1) => {
|
|
@@ -4838,12 +4838,12 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4838
4838
|
};
|
|
4839
4839
|
return n({
|
|
4840
4840
|
getValue: p,
|
|
4841
|
-
setValue:
|
|
4842
|
-
}), (h,
|
|
4841
|
+
setValue: d
|
|
4842
|
+
}), (h, f) => {
|
|
4843
4843
|
const m = E("a-input-number");
|
|
4844
4844
|
return x(), V(m, {
|
|
4845
4845
|
value: l.value,
|
|
4846
|
-
"onUpdate:value":
|
|
4846
|
+
"onUpdate:value": f[0] || (f[0] = (w) => l.value = w),
|
|
4847
4847
|
placeholder: a.placeholder,
|
|
4848
4848
|
disabled: a.disabled,
|
|
4849
4849
|
max: a.max,
|
|
@@ -4852,29 +4852,29 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4852
4852
|
precision: a.precision,
|
|
4853
4853
|
stringMode: a.stringMode,
|
|
4854
4854
|
controls: a.controls,
|
|
4855
|
-
style:
|
|
4855
|
+
style: me(a.style),
|
|
4856
4856
|
onChange: c
|
|
4857
4857
|
}, we({ _: 2 }, [
|
|
4858
4858
|
S(i).length === 1 || S(u)(a.addonAfter) ? {
|
|
4859
4859
|
name: "addonAfter",
|
|
4860
4860
|
fn: B(() => [
|
|
4861
|
-
S(i).length === 1 ?
|
|
4862
|
-
S(i).length !== 1 ? (x(),
|
|
4861
|
+
S(i).length === 1 ? re(h.$slots, "addonAfter", { key: 0 }) : q("", !0),
|
|
4862
|
+
S(i).length !== 1 ? (x(), U("span", gs, ae(a.addonAfter), 1)) : q("", !0)
|
|
4863
4863
|
]),
|
|
4864
4864
|
key: "0"
|
|
4865
4865
|
} : void 0,
|
|
4866
4866
|
S(s).length === 1 || S(u)(a.addonBefore) ? {
|
|
4867
4867
|
name: "addonBefore",
|
|
4868
4868
|
fn: B(() => [
|
|
4869
|
-
S(s).length === 1 ?
|
|
4870
|
-
S(s).length !== 1 ? (x(),
|
|
4869
|
+
S(s).length === 1 ? re(h.$slots, "addonBefore", { key: 0 }) : q("", !0),
|
|
4870
|
+
S(s).length !== 1 ? (x(), U("span", vs, ae(a.addonBefore), 1)) : q("", !0)
|
|
4871
4871
|
]),
|
|
4872
4872
|
key: "1"
|
|
4873
4873
|
} : void 0
|
|
4874
4874
|
]), 1032, ["value", "placeholder", "disabled", "max", "min", "step", "precision", "stringMode", "controls", "style"]);
|
|
4875
4875
|
};
|
|
4876
4876
|
}
|
|
4877
|
-
}),
|
|
4877
|
+
}), Bs = {
|
|
4878
4878
|
install: (e, n) => {
|
|
4879
4879
|
e.component(_a.name, _a);
|
|
4880
4880
|
}
|
|
@@ -4901,7 +4901,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4901
4901
|
}, o = () => {
|
|
4902
4902
|
a.value = "", l("update:value", a.value), l("suffix");
|
|
4903
4903
|
};
|
|
4904
|
-
return
|
|
4904
|
+
return ge(
|
|
4905
4905
|
() => t.value,
|
|
4906
4906
|
(i) => {
|
|
4907
4907
|
a.value = i;
|
|
@@ -4919,8 +4919,8 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4919
4919
|
t.showSuffix && !t.disabled ? {
|
|
4920
4920
|
name: "suffix",
|
|
4921
4921
|
fn: B(() => [
|
|
4922
|
-
|
|
4923
|
-
D(
|
|
4922
|
+
Q("a", { onClick: o }, [
|
|
4923
|
+
D(ze, { icon: "close" })
|
|
4924
4924
|
])
|
|
4925
4925
|
]),
|
|
4926
4926
|
key: "0"
|
|
@@ -4928,7 +4928,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4928
4928
|
]), 1032, ["value", "enter-button", "disabled", "readonly"]);
|
|
4929
4929
|
};
|
|
4930
4930
|
}
|
|
4931
|
-
}),
|
|
4931
|
+
}), Ns = {
|
|
4932
4932
|
install: (e, n) => {
|
|
4933
4933
|
e.component(Oa.name, Oa);
|
|
4934
4934
|
}
|
|
@@ -4965,9 +4965,9 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4965
4965
|
}, i = () => l.value, s = (p) => {
|
|
4966
4966
|
l.value = p, c();
|
|
4967
4967
|
};
|
|
4968
|
-
|
|
4968
|
+
ge(
|
|
4969
4969
|
() => a.value,
|
|
4970
|
-
(p,
|
|
4970
|
+
(p, d) => {
|
|
4971
4971
|
p !== l.value && s(p);
|
|
4972
4972
|
}
|
|
4973
4973
|
);
|
|
@@ -4977,11 +4977,11 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4977
4977
|
return n({
|
|
4978
4978
|
getValue: i,
|
|
4979
4979
|
setValue: s
|
|
4980
|
-
}), (p,
|
|
4980
|
+
}), (p, d) => {
|
|
4981
4981
|
const g = E("a-textarea");
|
|
4982
4982
|
return x(), V(g, {
|
|
4983
4983
|
value: l.value,
|
|
4984
|
-
"onUpdate:value":
|
|
4984
|
+
"onUpdate:value": d[0] || (d[0] = (h) => l.value = h),
|
|
4985
4985
|
placeholder: a.placeholder,
|
|
4986
4986
|
disabled: a.disabled,
|
|
4987
4987
|
allowClear: a.allowClear,
|
|
@@ -4989,16 +4989,16 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
4989
4989
|
rows: a.rows,
|
|
4990
4990
|
showCount: a.showCount,
|
|
4991
4991
|
maxlength: a.maxlength,
|
|
4992
|
-
style:
|
|
4992
|
+
style: me(a.style),
|
|
4993
4993
|
onChange: o
|
|
4994
4994
|
}, null, 8, ["value", "placeholder", "disabled", "allowClear", "autoSize", "rows", "showCount", "maxlength", "style"]);
|
|
4995
4995
|
};
|
|
4996
4996
|
}
|
|
4997
|
-
}),
|
|
4997
|
+
}), Rs = {
|
|
4998
4998
|
install: (e, n) => {
|
|
4999
4999
|
e.component(xa.name, xa);
|
|
5000
5000
|
}
|
|
5001
|
-
}, Ca = /* @__PURE__ */ W({
|
|
5001
|
+
}, hs = { class: "vxe-form-ant-select" }, Ca = /* @__PURE__ */ W({
|
|
5002
5002
|
name: "SagAntdSelect",
|
|
5003
5003
|
inheritAttrs: !1,
|
|
5004
5004
|
__name: "SagAntdSelect",
|
|
@@ -5026,15 +5026,15 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5026
5026
|
},
|
|
5027
5027
|
emits: ["update:value", "update:label", "change"],
|
|
5028
5028
|
setup(e, { expose: n, emit: t }) {
|
|
5029
|
-
const a = e, l = t, r = $.toString(a.value, null), o = a.multiple ? j(u(r) ? r.split(",") : []) : j(r), i = j(a.multiple ? [] : null), s = j(a.multiple ? {} : null), c = j([]), p = a.maxTagCount || 10,
|
|
5029
|
+
const a = e, l = t, r = $.toString(a.value, null), o = a.multiple ? j(u(r) ? r.split(",") : []) : j(r), i = j(a.multiple ? [] : null), s = j(a.multiple ? {} : null), c = j([]), p = a.maxTagCount || 10, d = (y) => a.mountainTop ? document.body : y.parentNode, g = async () => {
|
|
5030
5030
|
const y = te(T.ctxPath, T.requestDictUrl);
|
|
5031
5031
|
return await rn(T.application, y, a.requestParams);
|
|
5032
|
-
}, h = (y, v) => v.label.toLowerCase().indexOf(y.toLowerCase()) >= 0,
|
|
5032
|
+
}, h = (y, v) => v.label.toLowerCase().indexOf(y.toLowerCase()) >= 0, f = (y, v) => {
|
|
5033
5033
|
C(!0);
|
|
5034
5034
|
}, m = () => o.value, w = (y) => {
|
|
5035
5035
|
a.multiple ? o.value = u(y) ? y : [] : o.value = u(y) ? y : "", C();
|
|
5036
5036
|
};
|
|
5037
|
-
|
|
5037
|
+
ge(
|
|
5038
5038
|
() => a.value,
|
|
5039
5039
|
(y) => {
|
|
5040
5040
|
a.multiple ? o.value = u(y) ? y : [] : o.value = y;
|
|
@@ -5061,37 +5061,39 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5061
5061
|
return n({
|
|
5062
5062
|
getValue: m,
|
|
5063
5063
|
setValue: w
|
|
5064
|
-
}),
|
|
5064
|
+
}), oe(() => {
|
|
5065
5065
|
g().then((y) => {
|
|
5066
5066
|
c.value = y, u(a.extraOptions) && a.extraOptions?.length > 0 && c.value.unshift(...a.extraOptions), u(o.value) && !u(i.value) && b();
|
|
5067
5067
|
});
|
|
5068
5068
|
}), (y, v) => {
|
|
5069
5069
|
const _ = E("a-select");
|
|
5070
|
-
return x(),
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5070
|
+
return x(), U("div", hs, [
|
|
5071
|
+
D(_, {
|
|
5072
|
+
value: S(o),
|
|
5073
|
+
"onUpdate:value": v[0] || (v[0] = (z) => st(o) ? o.value = z : null),
|
|
5074
|
+
onChange: f,
|
|
5075
|
+
placeholder: "--请选择--",
|
|
5076
|
+
allowClear: a.clearable,
|
|
5077
|
+
mode: e.multiple ? "multiple" : "",
|
|
5078
|
+
"max-tag-count": S(p),
|
|
5079
|
+
options: c.value,
|
|
5080
|
+
"show-search": a.filterable,
|
|
5081
|
+
"filter-option": h,
|
|
5082
|
+
defaultActiveFirstOption: !a.multiple,
|
|
5083
|
+
autoClearSearchValue: !a.filterable,
|
|
5084
|
+
getPopupContainer: d,
|
|
5085
|
+
disabled: e.disabled,
|
|
5086
|
+
style: me(a.style),
|
|
5087
|
+
size: "medium"
|
|
5088
|
+
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "disabled", "style"])
|
|
5089
|
+
]);
|
|
5088
5090
|
};
|
|
5089
5091
|
}
|
|
5090
|
-
}),
|
|
5092
|
+
}), Es = {
|
|
5091
5093
|
install: (e, n) => {
|
|
5092
5094
|
e.component(Ca.name, Ca);
|
|
5093
5095
|
}
|
|
5094
|
-
},
|
|
5096
|
+
}, ys = { class: "vxe-form-ant-select" }, Pa = /* @__PURE__ */ W({
|
|
5095
5097
|
name: "SagAntdSelectList",
|
|
5096
5098
|
inheritAttrs: !1,
|
|
5097
5099
|
__name: "SagAntdSelectList",
|
|
@@ -5125,34 +5127,34 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5125
5127
|
},
|
|
5126
5128
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5127
5129
|
setup(e, { expose: n, emit: t }) {
|
|
5128
|
-
const a = e, l = j(a.value ? a.value : a.multiple ? [] : null), r = j(a.label ? a.label : a.multiple ? [] : null), o = j(a.multiple ? {} : null), i = j([]), s = j(!1), c = t, p = "请输入" + a.title + "搜索",
|
|
5130
|
+
const a = e, l = j(a.value ? a.value : a.multiple ? [] : null), r = j(a.label ? a.label : a.multiple ? [] : null), o = j(a.multiple ? {} : null), i = j([]), s = j(!1), c = t, p = "请输入" + a.title + "搜索", d = (I) => a.mountainTop ? document.body : I.parentNode, g = async () => {
|
|
5129
5131
|
if (a.corpFilter && !u(a.corpId))
|
|
5130
5132
|
return i.value = [], [];
|
|
5131
|
-
let
|
|
5132
|
-
Object.assign(
|
|
5133
|
-
const L = await Ne(a.requestUrl,
|
|
5133
|
+
let I = { corpId: a.corpId };
|
|
5134
|
+
Object.assign(I, a.requestParams), i.value = [], s.value = !0;
|
|
5135
|
+
const L = await Ne(a.requestUrl, I);
|
|
5134
5136
|
return s.value = !1, i.value = L, L;
|
|
5135
5137
|
}, h = At(() => {
|
|
5136
|
-
g().then((
|
|
5137
|
-
c("query",
|
|
5138
|
+
g().then((I) => {
|
|
5139
|
+
c("query", I);
|
|
5138
5140
|
});
|
|
5139
|
-
}, 300),
|
|
5140
|
-
w(
|
|
5141
|
+
}, 300), f = (I) => {
|
|
5142
|
+
w(I).then(() => {
|
|
5141
5143
|
H(!0);
|
|
5142
5144
|
});
|
|
5143
|
-
}, m = (
|
|
5144
|
-
if (l.value =
|
|
5145
|
+
}, m = (I, L) => L.label.toLowerCase().indexOf(Pe(I).toLowerCase()) >= 0, w = async (I) => {
|
|
5146
|
+
if (l.value = I, a.multiple) {
|
|
5145
5147
|
const L = [];
|
|
5146
5148
|
l.value.forEach((G) => {
|
|
5147
5149
|
let N = i.value.filter((X) => X.value === G);
|
|
5148
5150
|
N.length === 1 && (L.push(N[0].label), o.value[G] = N[0]);
|
|
5149
5151
|
}), r.value = L;
|
|
5150
5152
|
} else {
|
|
5151
|
-
let L = i.value.filter((G) => G.value ===
|
|
5153
|
+
let L = i.value.filter((G) => G.value === I);
|
|
5152
5154
|
L.length === 1 ? (r.value = L[0].label, o.value = L[0]) : (r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null);
|
|
5153
5155
|
}
|
|
5154
|
-
}, C = () => r.value, b = () => l.value, y = (
|
|
5155
|
-
w(
|
|
5156
|
+
}, C = () => r.value, b = () => l.value, y = (I) => {
|
|
5157
|
+
w(I).then(() => {
|
|
5156
5158
|
H();
|
|
5157
5159
|
});
|
|
5158
5160
|
}, v = () => {
|
|
@@ -5161,16 +5163,16 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5161
5163
|
v(), i.value = [];
|
|
5162
5164
|
}, z = async () => {
|
|
5163
5165
|
v(), i.value = [], await h();
|
|
5164
|
-
}, H = (
|
|
5165
|
-
c("update:value", l.value), c("update:label", r.value),
|
|
5166
|
+
}, H = (I = !1) => {
|
|
5167
|
+
c("update:value", l.value), c("update:label", r.value), I && c("change", o.value);
|
|
5166
5168
|
};
|
|
5167
|
-
return
|
|
5169
|
+
return ge(
|
|
5168
5170
|
() => [a.corpId, a.value],
|
|
5169
|
-
async ([
|
|
5170
|
-
const X =
|
|
5171
|
+
async ([I, L], [G, N]) => {
|
|
5172
|
+
const X = I !== G, ke = L !== l.value;
|
|
5171
5173
|
X && (v(), await g()), ke && y(L);
|
|
5172
5174
|
}
|
|
5173
|
-
),
|
|
5175
|
+
), oe(async () => {
|
|
5174
5176
|
g();
|
|
5175
5177
|
}), n({
|
|
5176
5178
|
getName: C,
|
|
@@ -5178,22 +5180,22 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5178
5180
|
setValue: y,
|
|
5179
5181
|
clear: _,
|
|
5180
5182
|
reload: z
|
|
5181
|
-
}), (
|
|
5183
|
+
}), (I, L) => {
|
|
5182
5184
|
const G = E("a-spin"), N = E("a-select");
|
|
5183
|
-
return x(),
|
|
5185
|
+
return x(), U("div", ys, [
|
|
5184
5186
|
D(N, {
|
|
5185
5187
|
value: l.value,
|
|
5186
5188
|
"onUpdate:value": L[0] || (L[0] = (X) => l.value = X),
|
|
5187
5189
|
placeholder: p,
|
|
5188
|
-
style:
|
|
5190
|
+
style: me(a.style),
|
|
5189
5191
|
"filter-option": m,
|
|
5190
5192
|
disabled: a.disabled,
|
|
5191
5193
|
mode: e.multiple ? "multiple" : "",
|
|
5192
5194
|
"max-tag-count": a.maxTagCount,
|
|
5193
5195
|
options: i.value,
|
|
5194
5196
|
allowClear: a.clearable,
|
|
5195
|
-
getPopupContainer:
|
|
5196
|
-
onChange:
|
|
5197
|
+
getPopupContainer: d,
|
|
5198
|
+
onChange: f,
|
|
5197
5199
|
"show-search": ""
|
|
5198
5200
|
}, we({ _: 2 }, [
|
|
5199
5201
|
s.value ? {
|
|
@@ -5207,11 +5209,11 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5207
5209
|
]);
|
|
5208
5210
|
};
|
|
5209
5211
|
}
|
|
5210
|
-
}),
|
|
5212
|
+
}), Ls = {
|
|
5211
5213
|
install: (e, n) => {
|
|
5212
5214
|
e.component(Pa.name, Pa);
|
|
5213
5215
|
}
|
|
5214
|
-
},
|
|
5216
|
+
}, bs = { class: "vxe-form-ant-select" }, ka = /* @__PURE__ */ W({
|
|
5215
5217
|
name: "SagAntdSelectPull",
|
|
5216
5218
|
inheritAttrs: !1,
|
|
5217
5219
|
__name: "SagAntdSelectPull",
|
|
@@ -5241,7 +5243,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5241
5243
|
},
|
|
5242
5244
|
emits: ["update:value", "update:label", "change"],
|
|
5243
5245
|
setup(e, { expose: n, emit: t }) {
|
|
5244
|
-
const a = e, l = j(a.value || null), r = j(a.label || ""), o = j({}), i = j([]), s = j(!1), c = t, p = "请输入" + a.title + "搜索",
|
|
5246
|
+
const a = e, l = j(a.value || null), r = j(a.label || ""), o = j({}), i = j([]), s = j(!1), c = t, p = "请输入" + a.title + "搜索", d = (v) => a.mountainTop ? document.body : v.parentNode, g = async (v) => {
|
|
5245
5247
|
if (i.value = [], a.corpFilter && !u(a.corpId))
|
|
5246
5248
|
return [];
|
|
5247
5249
|
if (u(v)) {
|
|
@@ -5255,7 +5257,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5255
5257
|
l.value = v, m(v).then((_) => {
|
|
5256
5258
|
y(!0);
|
|
5257
5259
|
});
|
|
5258
|
-
},
|
|
5260
|
+
}, f = At((v) => {
|
|
5259
5261
|
g(v);
|
|
5260
5262
|
}, 500), m = async (v) => {
|
|
5261
5263
|
if (u(v)) {
|
|
@@ -5270,17 +5272,17 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5270
5272
|
}, y = (v = !1) => {
|
|
5271
5273
|
c("update:value", l.value), c("update:label", r.value), v && c("change", o.value);
|
|
5272
5274
|
};
|
|
5273
|
-
return
|
|
5275
|
+
return ge(
|
|
5274
5276
|
() => [a.corpId, a.value],
|
|
5275
5277
|
async ([v, _], [z, H]) => {
|
|
5276
|
-
const
|
|
5277
|
-
|
|
5278
|
+
const I = v !== z, L = _ !== l.value;
|
|
5279
|
+
I && (i.value = [], r.value = null, l.value = null, o.value = null, y()), L && m(_).then((G) => {
|
|
5278
5280
|
G || g(_).then(() => {
|
|
5279
5281
|
b(_);
|
|
5280
5282
|
});
|
|
5281
5283
|
});
|
|
5282
5284
|
}
|
|
5283
|
-
),
|
|
5285
|
+
), oe(async () => {
|
|
5284
5286
|
u(l.value) && (u(r.value) ? i.value = [
|
|
5285
5287
|
{
|
|
5286
5288
|
value: l.value,
|
|
@@ -5293,21 +5295,21 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5293
5295
|
setValue: b
|
|
5294
5296
|
}), (v, _) => {
|
|
5295
5297
|
const z = E("a-spin"), H = E("a-select");
|
|
5296
|
-
return x(),
|
|
5298
|
+
return x(), U("div", bs, [
|
|
5297
5299
|
D(H, {
|
|
5298
5300
|
value: l.value,
|
|
5299
|
-
"onUpdate:value": _[0] || (_[0] = (
|
|
5301
|
+
"onUpdate:value": _[0] || (_[0] = (I) => l.value = I),
|
|
5300
5302
|
placeholder: p,
|
|
5301
|
-
style:
|
|
5303
|
+
style: me(a.style),
|
|
5302
5304
|
"filter-option": !1,
|
|
5303
5305
|
options: i.value,
|
|
5304
5306
|
disabled: a.disabled,
|
|
5305
5307
|
allowClear: a.clearable,
|
|
5306
5308
|
"default-active-first-option": !1,
|
|
5307
5309
|
"show-arrow": !1,
|
|
5308
|
-
getPopupContainer:
|
|
5310
|
+
getPopupContainer: d,
|
|
5309
5311
|
onChange: h,
|
|
5310
|
-
onSearch: S(
|
|
5312
|
+
onSearch: S(f),
|
|
5311
5313
|
"show-search": ""
|
|
5312
5314
|
}, we({ _: 2 }, [
|
|
5313
5315
|
s.value ? {
|
|
@@ -5321,11 +5323,11 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5321
5323
|
]);
|
|
5322
5324
|
};
|
|
5323
5325
|
}
|
|
5324
|
-
}),
|
|
5326
|
+
}), Us = {
|
|
5325
5327
|
install: (e, n) => {
|
|
5326
5328
|
e.component(ka.name, ka);
|
|
5327
5329
|
}
|
|
5328
|
-
},
|
|
5330
|
+
}, Ss = { key: 1 }, Ta = /* @__PURE__ */ W({
|
|
5329
5331
|
name: "SagAntdPanel",
|
|
5330
5332
|
inheritAttrs: !1,
|
|
5331
5333
|
__name: "SagAntdPanel",
|
|
@@ -5343,22 +5345,22 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5343
5345
|
const c = E("a-collapse-panel"), p = E("a-collapse");
|
|
5344
5346
|
return x(), V(p, {
|
|
5345
5347
|
activeKey: r.value,
|
|
5346
|
-
"onUpdate:activeKey": s[0] || (s[0] = (
|
|
5348
|
+
"onUpdate:activeKey": s[0] || (s[0] = (d) => r.value = d),
|
|
5347
5349
|
expandIconPosition: "end",
|
|
5348
5350
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5349
5351
|
accordion: ""
|
|
5350
5352
|
}, {
|
|
5351
5353
|
default: B(() => [
|
|
5352
|
-
(x(!0),
|
|
5353
|
-
key:
|
|
5354
|
+
(x(!0), U(fe, null, Ce(S(a), (d) => (x(), V(c, {
|
|
5355
|
+
key: d,
|
|
5354
5356
|
forceRender: "",
|
|
5355
5357
|
showArrow: n.showArrow
|
|
5356
5358
|
}, {
|
|
5357
5359
|
header: B(() => [
|
|
5358
|
-
S(l).length === 1 ?
|
|
5360
|
+
S(l).length === 1 ? re(i.$slots, "header", { key: 0 }) : (x(), U("span", Ss, ae(o.value[d]), 1))
|
|
5359
5361
|
]),
|
|
5360
5362
|
default: B(() => [
|
|
5361
|
-
|
|
5363
|
+
re(i.$slots, d)
|
|
5362
5364
|
]),
|
|
5363
5365
|
_: 2
|
|
5364
5366
|
}, 1032, ["showArrow"]))), 128))
|
|
@@ -5367,20 +5369,20 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5367
5369
|
}, 8, ["activeKey", "collapsible"]);
|
|
5368
5370
|
};
|
|
5369
5371
|
}
|
|
5370
|
-
}),
|
|
5372
|
+
}), Is = {
|
|
5371
5373
|
install: (e, n) => {
|
|
5372
5374
|
e.component(Ta.name, Ta);
|
|
5373
5375
|
}
|
|
5374
|
-
},
|
|
5376
|
+
}, ws = { class: "sag-antd-space-wrapper" }, Aa = /* @__PURE__ */ W({
|
|
5375
5377
|
name: "SagAntdSpace",
|
|
5376
5378
|
inheritAttrs: !1,
|
|
5377
5379
|
__name: "SagAntdSpace",
|
|
5378
5380
|
setup(e) {
|
|
5379
|
-
return (n, t) => (x(),
|
|
5380
|
-
|
|
5381
|
+
return (n, t) => (x(), U("div", ws, [
|
|
5382
|
+
re(n.$slots, "default")
|
|
5381
5383
|
]));
|
|
5382
5384
|
}
|
|
5383
|
-
}),
|
|
5385
|
+
}), Fs = {
|
|
5384
5386
|
install: (e, n) => {
|
|
5385
5387
|
e.component(Aa.name, Aa);
|
|
5386
5388
|
}
|
|
@@ -5405,7 +5407,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5405
5407
|
const t = e, a = j(t.checked), l = n, r = (o) => {
|
|
5406
5408
|
l("update:checked", o), l("change", o);
|
|
5407
5409
|
};
|
|
5408
|
-
return
|
|
5410
|
+
return ge(
|
|
5409
5411
|
() => t.checked,
|
|
5410
5412
|
(o) => {
|
|
5411
5413
|
a.value = o;
|
|
@@ -5423,7 +5425,7 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5423
5425
|
}, null, 8, ["checked", "checkedValue", "unCheckedValue", "disabled", "loading"]);
|
|
5424
5426
|
};
|
|
5425
5427
|
}
|
|
5426
|
-
}),
|
|
5428
|
+
}), Hs = {
|
|
5427
5429
|
install: (e, n) => {
|
|
5428
5430
|
e.component(Ma.name, Ma);
|
|
5429
5431
|
}
|
|
@@ -5449,19 +5451,19 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5449
5451
|
},
|
|
5450
5452
|
emits: ["update:activeKey", "change"],
|
|
5451
5453
|
setup(e, { emit: n }) {
|
|
5452
|
-
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Be()), r = l.filter((p) => p != "rightExtra"), o = j(t.activeKey), i = j(t.header instanceof Object ? t.header : { default: t.header }), s = n, c = (p) => {
|
|
5454
|
+
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Be()), r = l.filter((p) => p != "rightExtra" && p != "header"), o = j(t.activeKey), i = j(t.header instanceof Object ? t.header : { default: t.header }), s = n, c = (p) => {
|
|
5453
5455
|
s("update:activeKey", p), s("change", p);
|
|
5454
5456
|
};
|
|
5455
|
-
return
|
|
5457
|
+
return ge(
|
|
5456
5458
|
() => t.activeKey,
|
|
5457
5459
|
(p) => {
|
|
5458
5460
|
o.value = p;
|
|
5459
5461
|
}
|
|
5460
|
-
), (p,
|
|
5461
|
-
const g = E("a-tab-pane"),
|
|
5462
|
-
return x(), V(
|
|
5462
|
+
), (p, d) => {
|
|
5463
|
+
const g = E("SagAntdOutlined"), h = E("a-tab-pane"), f = E("a-tabs");
|
|
5464
|
+
return x(), V(f, {
|
|
5463
5465
|
activeKey: o.value,
|
|
5464
|
-
"onUpdate:activeKey":
|
|
5466
|
+
"onUpdate:activeKey": d[0] || (d[0] = (m) => o.value = m),
|
|
5465
5467
|
type: t.type,
|
|
5466
5468
|
"tab-position": t.position,
|
|
5467
5469
|
tabBarGutter: t.position === "left" ? 4 : 25,
|
|
@@ -5469,38 +5471,43 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5469
5471
|
onChange: c
|
|
5470
5472
|
}, we({
|
|
5471
5473
|
default: B(() => [
|
|
5472
|
-
(x(!0),
|
|
5473
|
-
key:
|
|
5474
|
-
forceRender: t.forceRender && !t.notForceRender?.includes(
|
|
5475
|
-
style:
|
|
5474
|
+
(x(!0), U(fe, null, Ce(S(r), (m, w) => (x(), V(h, {
|
|
5475
|
+
key: m,
|
|
5476
|
+
forceRender: t.forceRender && !t.notForceRender?.includes(m),
|
|
5477
|
+
style: me(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5476
5478
|
}, {
|
|
5477
5479
|
tab: B(() => [
|
|
5478
|
-
|
|
5479
|
-
style:
|
|
5480
|
+
Q("span", {
|
|
5481
|
+
style: me(w === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5480
5482
|
}, [
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
+
S(l).includes("header") ? re(p.$slots, "header", {
|
|
5484
|
+
key: 0,
|
|
5485
|
+
tabKey: m
|
|
5486
|
+
}) : (x(), U(fe, { key: 1 }, [
|
|
5487
|
+
D(g, { icon: "menu" }),
|
|
5488
|
+
ce(" " + ae(i.value[m]), 1)
|
|
5489
|
+
], 64))
|
|
5483
5490
|
], 4)
|
|
5484
5491
|
]),
|
|
5485
5492
|
default: B(() => [
|
|
5486
|
-
|
|
5493
|
+
re(p.$slots, m)
|
|
5487
5494
|
]),
|
|
5488
5495
|
_: 2
|
|
5489
5496
|
}, 1032, ["forceRender", "style"]))), 128))
|
|
5490
5497
|
]),
|
|
5491
5498
|
_: 2
|
|
5492
5499
|
}, [
|
|
5493
|
-
S(l).
|
|
5500
|
+
S(l).includes("rightExtra") ? {
|
|
5494
5501
|
name: "rightExtra",
|
|
5495
5502
|
fn: B(() => [
|
|
5496
|
-
|
|
5503
|
+
re(p.$slots, "rightExtra")
|
|
5497
5504
|
]),
|
|
5498
5505
|
key: "0"
|
|
5499
5506
|
} : void 0
|
|
5500
5507
|
]), 1032, ["activeKey", "type", "tab-position", "tabBarGutter", "tabBarStyle"]);
|
|
5501
5508
|
};
|
|
5502
5509
|
}
|
|
5503
|
-
}),
|
|
5510
|
+
}), Ys = {
|
|
5504
5511
|
install: (e, n) => {
|
|
5505
5512
|
e.component($a.name, $a);
|
|
5506
5513
|
}
|
|
@@ -5513,34 +5520,34 @@ const Li = { id: "div_view_modal" }, Ui = { style: { color: "red", "padding-left
|
|
|
5513
5520
|
},
|
|
5514
5521
|
setup(e) {
|
|
5515
5522
|
const n = e;
|
|
5516
|
-
return (t, a) => (x(), V(
|
|
5523
|
+
return (t, a) => (x(), V(ze, {
|
|
5517
5524
|
icon: n.icon
|
|
5518
5525
|
}, null, 8, ["icon"]));
|
|
5519
5526
|
}
|
|
5520
|
-
}),
|
|
5527
|
+
}), Ws = {
|
|
5521
5528
|
install: (e, n) => {
|
|
5522
5529
|
e.component(ja.name, ja);
|
|
5523
5530
|
}
|
|
5524
5531
|
};
|
|
5525
5532
|
export {
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5533
|
+
zs as SagAntdButton,
|
|
5534
|
+
qs as SagAntdCard,
|
|
5535
|
+
Vs as SagAntdCascader,
|
|
5536
|
+
$s as SagAntdDatePicker,
|
|
5537
|
+
js as SagAntdDateRange,
|
|
5538
|
+
Ds as SagAntdInput,
|
|
5539
|
+
Bs as SagAntdInputNumber,
|
|
5540
|
+
Ns as SagAntdInputSearch,
|
|
5541
|
+
Ws as SagAntdOutlined,
|
|
5542
|
+
Is as SagAntdPanel,
|
|
5543
|
+
Es as SagAntdSelect,
|
|
5544
|
+
Ls as SagAntdSelectList,
|
|
5545
|
+
Us as SagAntdSelectPull,
|
|
5546
|
+
Fs as SagAntdSpace,
|
|
5547
|
+
Hs as SagAntdSwitch,
|
|
5548
|
+
Ys as SagAntdTab,
|
|
5549
|
+
Rs as SagAntdTextarea,
|
|
5550
|
+
Ts as SagUbmpPc,
|
|
5551
|
+
Ms as SagVxePage,
|
|
5552
|
+
As as SagVxePageUtils
|
|
5546
5553
|
};
|