sag-ubmp-pc 1.1.0 → 1.1.1
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 +910 -922
- package/dist/sag-ubmp-pc.umd.js +5 -5
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Me, { trim as Te, debounce as
|
|
2
|
-
import { inject as le, ref as V, h as Ve, getCurrentInstance as El, nextTick as ft, reactive as ee, defineComponent as X, createVNode as D, openBlock as C, createElementBlock as Y, Fragment as
|
|
3
|
-
import { Modal as Kl, notification as
|
|
1
|
+
import Me, { trim as Te, debounce as It } from "xe-utils";
|
|
2
|
+
import { inject as le, ref as V, h as Ve, getCurrentInstance as El, nextTick as ft, reactive as ee, defineComponent as X, createVNode as D, openBlock as C, createElementBlock as Y, Fragment as de, createBlock as z, unref as w, createCommentVNode as N, onMounted as ie, resolveComponent as F, isRef as ht, createSlots as xe, withCtx as I, defineAsyncComponent as Ul, useCssVars as Fl, useAttrs as Xa, computed as xt, onUnmounted as Hl, withDirectives as $t, createElementVNode as Q, toDisplayString as ae, createTextVNode as ce, vShow as jt, resolveDynamicComponent as Yl, mergeProps as te, provide as zn, useSlots as Le, watch as he, renderList as Ce, renderSlot as oe, toHandlers as Wl, normalizeProps as Gl, guardReactiveProps as Jl, normalizeStyle as ge } from "vue";
|
|
3
|
+
import { Modal as Kl, notification as zt, message as Xl, Spin as Zl } from "ant-design-vue";
|
|
4
4
|
import M from "dayjs";
|
|
5
5
|
function Rt(e) {
|
|
6
6
|
return function(n, t) {
|
|
@@ -85,7 +85,7 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
85
85
|
FileSaver: n
|
|
86
86
|
}), re("加载excel组件完毕");
|
|
87
87
|
}
|
|
88
|
-
}, u = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Ue = (e) => e === void 0 || e === null ? !0 : e, ne = (e, n) => u(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e + n : e + "/" + n : "",
|
|
88
|
+
}, u = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Ue = (e) => e === void 0 || e === null ? !0 : e, ne = (e, n) => u(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e + n : e + "/" + n : "", Ie = (e, n, t) => n != null ? n(t) : e ? A.getPopupContainer != null && typeof A.getPopupContainer == "function" ? A.getPopupContainer(t) : document.body : t.parentNode, He = "modal", rt = "open", Ql = "confirm", De = "sag_ubmp_pc_modal_instance_", er = (e) => Qa(e, "buttonName"), tr = (e) => Qa(e, "componentParams"), Qa = (e, n) => u(e) && u(e[A.buttonKeyName]) ? e[A.buttonKeyName][n] : null, nr = (e) => u(e) && u(e[A.buttonKeyName]) ? e[A.buttonKeyName] : {}, ar = (e) => e._X_ROWS, lr = (e, n, t = {}) => {
|
|
89
89
|
const { span: a, placeholder: l, defaultValue: r, disabled: i } = t;
|
|
90
90
|
return {
|
|
91
91
|
field: e,
|
|
@@ -138,8 +138,8 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
138
138
|
disabled: v,
|
|
139
139
|
defaultValue: c,
|
|
140
140
|
dictRoleType: d,
|
|
141
|
-
selectAll:
|
|
142
|
-
parentNode:
|
|
141
|
+
selectAll: g,
|
|
142
|
+
parentNode: y
|
|
143
143
|
} = a;
|
|
144
144
|
return {
|
|
145
145
|
field: e,
|
|
@@ -150,13 +150,13 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
150
150
|
props: {
|
|
151
151
|
request: {
|
|
152
152
|
dictType: t,
|
|
153
|
-
parentNode: u(
|
|
153
|
+
parentNode: u(y) ? y : null,
|
|
154
154
|
dictRoleType: u(d) ? d : null
|
|
155
155
|
},
|
|
156
156
|
multiple: u(i) ? i : !1,
|
|
157
157
|
clearable: u(o) ? o : !0,
|
|
158
158
|
filterable: u(s) ? s : !1,
|
|
159
|
-
selectAll: u(
|
|
159
|
+
selectAll: u(g) ? g : !0,
|
|
160
160
|
disabled: u(v) ? v : !1,
|
|
161
161
|
defaultValue: u(c) ? c : null
|
|
162
162
|
}
|
|
@@ -284,35 +284,35 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
284
284
|
maximize: v = !0,
|
|
285
285
|
componentVue: c = !0,
|
|
286
286
|
componentParams: d = {},
|
|
287
|
-
treeNode:
|
|
288
|
-
autoLoad:
|
|
287
|
+
treeNode: g = !1,
|
|
288
|
+
autoLoad: y = !1,
|
|
289
289
|
resizable: x = !1,
|
|
290
290
|
showOverflow: p,
|
|
291
291
|
align: f = "center",
|
|
292
|
-
type:
|
|
292
|
+
type: S,
|
|
293
293
|
fixed: m,
|
|
294
|
-
width:
|
|
294
|
+
width: h
|
|
295
295
|
} = t;
|
|
296
296
|
return {
|
|
297
297
|
field: e,
|
|
298
298
|
title: n,
|
|
299
299
|
sortable: !1,
|
|
300
|
-
width: u(
|
|
300
|
+
width: u(h) ? h : u(S) ? u(s) ? s : 120 : "auto",
|
|
301
301
|
minWidth: s,
|
|
302
302
|
resizable: x,
|
|
303
303
|
showOverflow: u(p) ? p : "title",
|
|
304
304
|
align: f,
|
|
305
305
|
headerAlign: "center",
|
|
306
|
-
type: u(
|
|
306
|
+
type: u(S) ? S : null,
|
|
307
307
|
fixed: u(m) ? m : "",
|
|
308
308
|
formatter: u(a) ? a : "",
|
|
309
|
-
treeNode:
|
|
309
|
+
treeNode: g,
|
|
310
310
|
params: {
|
|
311
311
|
requestType: u(l) ? l : "",
|
|
312
312
|
requestUrl: r,
|
|
313
313
|
title: i,
|
|
314
314
|
maximize: v,
|
|
315
|
-
autoLoad:
|
|
315
|
+
autoLoad: y,
|
|
316
316
|
componentVue: c,
|
|
317
317
|
componentParams: d,
|
|
318
318
|
instanceField: o
|
|
@@ -389,8 +389,8 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
389
389
|
componentParams: v,
|
|
390
390
|
maximize: c = !0,
|
|
391
391
|
width: d,
|
|
392
|
-
height:
|
|
393
|
-
auth:
|
|
392
|
+
height: g,
|
|
393
|
+
auth: y,
|
|
394
394
|
autoLoad: x = !0,
|
|
395
395
|
instanceField: p = ""
|
|
396
396
|
} = n;
|
|
@@ -408,8 +408,8 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
408
408
|
maximize: c,
|
|
409
409
|
autoLoad: x,
|
|
410
410
|
width: u(d) ? d : null,
|
|
411
|
-
height: u(
|
|
412
|
-
auth: u(
|
|
411
|
+
height: u(g) ? g : null,
|
|
412
|
+
auth: u(y) ? y : !0,
|
|
413
413
|
instanceField: p
|
|
414
414
|
};
|
|
415
415
|
}, wr = (e = "", n = {}) => {
|
|
@@ -486,14 +486,14 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
486
486
|
if (Array.isArray(a)) {
|
|
487
487
|
if (a && a.includes(o.field)) {
|
|
488
488
|
const c = s[i - 1], d = c && c[o.field] ? c[o.field] : "";
|
|
489
|
-
let
|
|
490
|
-
const
|
|
489
|
+
let g = s[i + 1];
|
|
490
|
+
const y = g && g[o.field] ? g[o.field] : "";
|
|
491
491
|
if (c && d === v && c[n] === r[n])
|
|
492
492
|
return { rowspan: 0, colspan: 0 };
|
|
493
493
|
{
|
|
494
494
|
let x = 1;
|
|
495
|
-
for (;
|
|
496
|
-
|
|
495
|
+
for (; g && y === v && g[n] === r[n]; )
|
|
496
|
+
g = s[++x + i];
|
|
497
497
|
if (x > 1)
|
|
498
498
|
return { rowspan: x, colspan: 1 };
|
|
499
499
|
}
|
|
@@ -503,23 +503,23 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
503
503
|
if (c && c[n] === r[n])
|
|
504
504
|
return { rowspan: 0, colspan: 0 };
|
|
505
505
|
{
|
|
506
|
-
let
|
|
506
|
+
let g = 1;
|
|
507
507
|
for (; d && d[n] === r[n]; )
|
|
508
|
-
d = s[++
|
|
509
|
-
if (
|
|
510
|
-
return { rowspan:
|
|
508
|
+
d = s[++g + i];
|
|
509
|
+
if (g > 1)
|
|
510
|
+
return { rowspan: g, colspan: 1 };
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
} else if (u(a[o.field])) {
|
|
514
|
-
const c = a[o.field], d = s[i - 1],
|
|
515
|
-
let
|
|
516
|
-
const x =
|
|
517
|
-
if (d &&
|
|
514
|
+
const c = a[o.field], d = s[i - 1], g = d && d[o.field] ? d[o.field] : "";
|
|
515
|
+
let y = s[i + 1];
|
|
516
|
+
const x = y && y[o.field] ? y[o.field] : "";
|
|
517
|
+
if (d && g === v && d[c] === r[c])
|
|
518
518
|
return { rowspan: 0, colspan: 0 };
|
|
519
519
|
{
|
|
520
520
|
let p = 1;
|
|
521
|
-
for (;
|
|
522
|
-
|
|
521
|
+
for (; y && x === v && y[c] === r[c]; )
|
|
522
|
+
y = s[++p + i];
|
|
523
523
|
if (p > 1)
|
|
524
524
|
return { rowspan: p, colspan: 1 };
|
|
525
525
|
}
|
|
@@ -569,7 +569,7 @@ const re = Rt("log"), Za = Rt("warn"), vt = Rt("error"), lt = {
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
|
-
function
|
|
572
|
+
function me(e, n) {
|
|
573
573
|
Pr(e) && (e = "100%");
|
|
574
574
|
var t = kr(e);
|
|
575
575
|
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);
|
|
@@ -591,9 +591,9 @@ function Pt(e) {
|
|
|
591
591
|
}
|
|
592
592
|
function Tr(e, n, t) {
|
|
593
593
|
return {
|
|
594
|
-
r:
|
|
595
|
-
g:
|
|
596
|
-
b:
|
|
594
|
+
r: me(e, 255) * 255,
|
|
595
|
+
g: me(n, 255) * 255,
|
|
596
|
+
b: me(t, 255) * 255
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
599
|
function kt(e, n, t) {
|
|
@@ -601,7 +601,7 @@ function kt(e, n, t) {
|
|
|
601
601
|
}
|
|
602
602
|
function Mr(e, n, t) {
|
|
603
603
|
var a, l, r;
|
|
604
|
-
if (e =
|
|
604
|
+
if (e = me(e, 360), n = me(n, 100), t = me(t, 100), n === 0)
|
|
605
605
|
l = t, r = t, a = t;
|
|
606
606
|
else {
|
|
607
607
|
var i = t < 0.5 ? t * (1 + n) : t + n - t * n, o = 2 * t - i;
|
|
@@ -610,7 +610,7 @@ function Mr(e, n, t) {
|
|
|
610
610
|
return { r: a * 255, g: l * 255, b: r * 255 };
|
|
611
611
|
}
|
|
612
612
|
function Vr(e, n, t) {
|
|
613
|
-
e =
|
|
613
|
+
e = me(e, 255), n = me(n, 255), t = me(t, 255);
|
|
614
614
|
var a = Math.max(e, n, t), l = Math.min(e, n, t), r = 0, i = a, o = a - l, s = a === 0 ? 0 : o / a;
|
|
615
615
|
if (a === l)
|
|
616
616
|
r = 0;
|
|
@@ -631,11 +631,11 @@ function Vr(e, n, t) {
|
|
|
631
631
|
return { h: r, s, v: i };
|
|
632
632
|
}
|
|
633
633
|
function $r(e, n, t) {
|
|
634
|
-
e =
|
|
634
|
+
e = me(e, 360) * 6, n = me(n, 100), t = me(t, 100);
|
|
635
635
|
var a = Math.floor(e), l = e - a, r = t * (1 - n), i = t * (1 - l * n), o = t * (1 - (1 - l) * n), s = a % 6, v = [t, i, r, r, o, t][s], c = [o, t, t, i, r, r][s], d = [r, r, o, t, t, i][s];
|
|
636
636
|
return { r: v * 255, g: c * 255, b: d * 255 };
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function jr(e, n, t, a) {
|
|
639
639
|
var l = [
|
|
640
640
|
Pt(Math.round(e).toString(16)),
|
|
641
641
|
Pt(Math.round(n).toString(16)),
|
|
@@ -810,7 +810,7 @@ function Fe(e) {
|
|
|
810
810
|
a: t
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
var
|
|
813
|
+
var zr = "[-\\+]?\\d+%?", qr = "[-\\+]?\\d*\\.\\d+%?", $e = "(?:".concat(qr, ")|(?:").concat(zr, ")"), At = "[\\s|\\(]+(".concat($e, ")[,|\\s]+(").concat($e, ")[,|\\s]+(").concat($e, ")\\s*\\)?"), Tt = "[\\s|\\(]+(".concat($e, ")[,|\\s]+(").concat($e, ")[,|\\s]+(").concat($e, ")[,|\\s]+(").concat($e, ")\\s*\\)?"), ye = {
|
|
814
814
|
CSS_UNIT: new RegExp($e),
|
|
815
815
|
rgb: new RegExp("rgb" + At),
|
|
816
816
|
rgba: new RegExp("rgba" + Tt),
|
|
@@ -831,25 +831,25 @@ function Nr(e) {
|
|
|
831
831
|
e = Bn[e], n = !0;
|
|
832
832
|
else if (e === "transparent")
|
|
833
833
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
834
|
-
var t =
|
|
835
|
-
return t ? { r: t[1], g: t[2], b: t[3] } : (t =
|
|
834
|
+
var t = ye.rgb.exec(e);
|
|
835
|
+
return t ? { r: t[1], g: t[2], b: t[3] } : (t = ye.rgba.exec(e), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = ye.hsl.exec(e), t ? { h: t[1], s: t[2], l: t[3] } : (t = ye.hsla.exec(e), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = ye.hsv.exec(e), t ? { h: t[1], s: t[2], v: t[3] } : (t = ye.hsva.exec(e), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = ye.hex8.exec(e), t ? {
|
|
836
836
|
r: pe(t[1]),
|
|
837
837
|
g: pe(t[2]),
|
|
838
838
|
b: pe(t[3]),
|
|
839
839
|
a: Dn(t[4]),
|
|
840
840
|
format: n ? "name" : "hex8"
|
|
841
|
-
} : (t =
|
|
841
|
+
} : (t = ye.hex6.exec(e), t ? {
|
|
842
842
|
r: pe(t[1]),
|
|
843
843
|
g: pe(t[2]),
|
|
844
844
|
b: pe(t[3]),
|
|
845
845
|
format: n ? "name" : "hex"
|
|
846
|
-
} : (t =
|
|
846
|
+
} : (t = ye.hex4.exec(e), t ? {
|
|
847
847
|
r: pe(t[1] + t[1]),
|
|
848
848
|
g: pe(t[2] + t[2]),
|
|
849
849
|
b: pe(t[3] + t[3]),
|
|
850
850
|
a: Dn(t[4] + t[4]),
|
|
851
851
|
format: n ? "name" : "hex8"
|
|
852
|
-
} : (t =
|
|
852
|
+
} : (t = ye.hex3.exec(e), t ? {
|
|
853
853
|
r: pe(t[1] + t[1]),
|
|
854
854
|
g: pe(t[2] + t[2]),
|
|
855
855
|
b: pe(t[3] + t[3]),
|
|
@@ -857,9 +857,9 @@ function Nr(e) {
|
|
|
857
857
|
} : !1)))))))));
|
|
858
858
|
}
|
|
859
859
|
function Ae(e) {
|
|
860
|
-
return !!
|
|
860
|
+
return !!ye.CSS_UNIT.exec(String(e));
|
|
861
861
|
}
|
|
862
|
-
var tt = 2,
|
|
862
|
+
var tt = 2, Ln = 0.16, Dr = 0.05, Br = 0.05, Lr = 0.15, al = 5, ll = 4, Ir = [{
|
|
863
863
|
index: 7,
|
|
864
864
|
opacity: 0.15
|
|
865
865
|
}, {
|
|
@@ -890,7 +890,7 @@ var tt = 2, In = 0.16, Dr = 0.05, Br = 0.05, Ir = 0.15, al = 5, ll = 4, Lr = [{
|
|
|
890
890
|
index: 1,
|
|
891
891
|
opacity: 0.98
|
|
892
892
|
}];
|
|
893
|
-
function
|
|
893
|
+
function In(e) {
|
|
894
894
|
var n = e.r, t = e.g, a = e.b, l = Vr(n, t, a);
|
|
895
895
|
return {
|
|
896
896
|
h: l.h * 360,
|
|
@@ -900,7 +900,7 @@ function Ln(e) {
|
|
|
900
900
|
}
|
|
901
901
|
function nt(e) {
|
|
902
902
|
var n = e.r, t = e.g, a = e.b;
|
|
903
|
-
return "#".concat(
|
|
903
|
+
return "#".concat(jr(n, t, a));
|
|
904
904
|
}
|
|
905
905
|
function Rr(e, n, t) {
|
|
906
906
|
var a = t / 100, l = {
|
|
@@ -918,15 +918,15 @@ function En(e, n, t) {
|
|
|
918
918
|
if (e.h === 0 && e.s === 0)
|
|
919
919
|
return e.s;
|
|
920
920
|
var a;
|
|
921
|
-
return t ? a = e.s -
|
|
921
|
+
return t ? a = e.s - Ln * n : n === ll ? a = e.s + Ln : a = e.s + Dr * n, a > 1 && (a = 1), t && n === al && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
|
|
922
922
|
}
|
|
923
923
|
function Un(e, n, t) {
|
|
924
924
|
var a;
|
|
925
|
-
return t ? a = e.v + Br * n : a = e.v -
|
|
925
|
+
return t ? a = e.v + Br * n : a = e.v - Lr * n, a > 1 && (a = 1), Number(a.toFixed(2));
|
|
926
926
|
}
|
|
927
927
|
function Nt(e) {
|
|
928
928
|
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Fe(e), l = al; l > 0; l -= 1) {
|
|
929
|
-
var r =
|
|
929
|
+
var r = In(a), i = nt(Fe({
|
|
930
930
|
h: Rn(r, l, !0),
|
|
931
931
|
s: En(r, l, !0),
|
|
932
932
|
v: Un(r, l, !0)
|
|
@@ -935,16 +935,16 @@ function Nt(e) {
|
|
|
935
935
|
}
|
|
936
936
|
t.push(nt(a));
|
|
937
937
|
for (var o = 1; o <= ll; o += 1) {
|
|
938
|
-
var s =
|
|
938
|
+
var s = In(a), v = nt(Fe({
|
|
939
939
|
h: Rn(s, o),
|
|
940
940
|
s: En(s, o),
|
|
941
941
|
v: Un(s, o)
|
|
942
942
|
}));
|
|
943
943
|
t.push(v);
|
|
944
944
|
}
|
|
945
|
-
return n.theme === "dark" ?
|
|
946
|
-
var d = c.index,
|
|
947
|
-
return
|
|
945
|
+
return n.theme === "dark" ? Ir.map(function(c) {
|
|
946
|
+
var d = c.index, g = c.opacity, y = nt(Rr(Fe(n.backgroundColor || "#141414"), Fe(t[d]), g * 100));
|
|
947
|
+
return y;
|
|
948
948
|
}) : t;
|
|
949
949
|
}
|
|
950
950
|
var Mt = {
|
|
@@ -1202,7 +1202,7 @@ function io(e) {
|
|
|
1202
1202
|
function so() {
|
|
1203
1203
|
return it({}, We);
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1205
|
+
var ze = function(n, t) {
|
|
1206
1206
|
var a = it({}, n, t.attrs), l = a.icon, r = a.primaryColor, i = a.secondaryColor, o = lo(a, ao), s = We;
|
|
1207
1207
|
if (r && (s = {
|
|
1208
1208
|
primaryColor: r,
|
|
@@ -1220,16 +1220,16 @@ var je = function(n, t) {
|
|
|
1220
1220
|
"aria-hidden": "true"
|
|
1221
1221
|
}));
|
|
1222
1222
|
};
|
|
1223
|
-
|
|
1223
|
+
ze.props = {
|
|
1224
1224
|
icon: Object,
|
|
1225
1225
|
primaryColor: String,
|
|
1226
1226
|
secondaryColor: String,
|
|
1227
1227
|
focusable: String
|
|
1228
1228
|
};
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1229
|
+
ze.inheritAttrs = !1;
|
|
1230
|
+
ze.displayName = "IconBase";
|
|
1231
|
+
ze.getTwoToneColors = so;
|
|
1232
|
+
ze.setTwoToneColors = io;
|
|
1233
1233
|
function uo(e, n) {
|
|
1234
1234
|
return mo(e) || po(e, n) || fo(e, n) || co();
|
|
1235
1235
|
}
|
|
@@ -1275,13 +1275,13 @@ function mo(e) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
function fl(e) {
|
|
1277
1277
|
var n = cl(e), t = uo(n, 2), a = t[0], l = t[1];
|
|
1278
|
-
return
|
|
1278
|
+
return ze.setTwoToneColors({
|
|
1279
1279
|
primaryColor: a,
|
|
1280
1280
|
secondaryColor: l
|
|
1281
1281
|
});
|
|
1282
1282
|
}
|
|
1283
1283
|
function go() {
|
|
1284
|
-
var e =
|
|
1284
|
+
var e = ze.getTwoToneColors();
|
|
1285
1285
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1286
1286
|
}
|
|
1287
1287
|
var ho = X({
|
|
@@ -1368,20 +1368,20 @@ function Co(e, n) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
fl(Er.primary);
|
|
1370
1370
|
var J = function(n, t) {
|
|
1371
|
-
var a, l = Jn({}, n, t.attrs), r = l.class, i = l.icon, o = l.spin, s = l.rotate, v = l.tabindex, c = l.twoToneColor, d = l.onClick,
|
|
1372
|
-
|
|
1371
|
+
var a, l = Jn({}, n, t.attrs), r = l.class, i = l.icon, o = l.spin, s = l.rotate, v = l.tabindex, c = l.twoToneColor, d = l.onClick, g = _o(l, vo), y = rl(), x = y.prefixCls, p = y.rootClassName, f = (a = {}, Ye(a, p.value, !!p.value), Ye(a, x.value, !0), Ye(a, "".concat(x.value, "-").concat(i.name), !!i.name), Ye(a, "".concat(x.value, "-spin"), !!o || i.name === "loading"), a), S = v;
|
|
1372
|
+
S === void 0 && d && (S = -1);
|
|
1373
1373
|
var m = s ? {
|
|
1374
1374
|
msTransform: "rotate(".concat(s, "deg)"),
|
|
1375
1375
|
transform: "rotate(".concat(s, "deg)")
|
|
1376
|
-
} : void 0,
|
|
1376
|
+
} : void 0, h = cl(c), O = bo(h, 2), b = O[0], T = O[1];
|
|
1377
1377
|
return D("span", Jn({
|
|
1378
1378
|
role: "img",
|
|
1379
1379
|
"aria-label": i.name
|
|
1380
|
-
},
|
|
1380
|
+
}, g, {
|
|
1381
1381
|
onClick: d,
|
|
1382
1382
|
class: [f, r],
|
|
1383
|
-
tabindex:
|
|
1384
|
-
}), [D(
|
|
1383
|
+
tabindex: S
|
|
1384
|
+
}), [D(ze, {
|
|
1385
1385
|
icon: i,
|
|
1386
1386
|
primaryColor: b,
|
|
1387
1387
|
secondaryColor: T,
|
|
@@ -1490,25 +1490,25 @@ var Wt = function(n, t) {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
Wt.displayName = "CloudUploadOutlined";
|
|
1492
1492
|
Wt.inheritAttrs = !1;
|
|
1493
|
-
var
|
|
1493
|
+
var jo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
|
|
1494
1494
|
function ea(e) {
|
|
1495
1495
|
for (var n = 1; n < arguments.length; n++) {
|
|
1496
1496
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1497
1497
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1498
1498
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1499
1499
|
}))), a.forEach(function(l) {
|
|
1500
|
-
|
|
1500
|
+
zo(e, l, t[l]);
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
1503
|
return e;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function zo(e, n, t) {
|
|
1506
1506
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1507
1507
|
}
|
|
1508
1508
|
var Gt = function(n, t) {
|
|
1509
1509
|
var a = ea({}, n, t.attrs);
|
|
1510
1510
|
return D(J, ea({}, a, {
|
|
1511
|
-
icon:
|
|
1511
|
+
icon: jo
|
|
1512
1512
|
}), null);
|
|
1513
1513
|
};
|
|
1514
1514
|
Gt.displayName = "CopyOutlined";
|
|
@@ -1559,25 +1559,25 @@ var bt = function(n, t) {
|
|
|
1559
1559
|
};
|
|
1560
1560
|
bt.displayName = "DownOutlined";
|
|
1561
1561
|
bt.inheritAttrs = !1;
|
|
1562
|
-
var
|
|
1562
|
+
var Lo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "download", theme: "outlined" };
|
|
1563
1563
|
function aa(e) {
|
|
1564
1564
|
for (var n = 1; n < arguments.length; n++) {
|
|
1565
1565
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1566
1566
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1567
1567
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1568
1568
|
}))), a.forEach(function(l) {
|
|
1569
|
-
|
|
1569
|
+
Io(e, l, t[l]);
|
|
1570
1570
|
});
|
|
1571
1571
|
}
|
|
1572
1572
|
return e;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function Io(e, n, t) {
|
|
1575
1575
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1576
1576
|
}
|
|
1577
1577
|
var Kt = function(n, t) {
|
|
1578
1578
|
var a = aa({}, n, t.attrs);
|
|
1579
1579
|
return D(J, aa({}, a, {
|
|
1580
|
-
icon:
|
|
1580
|
+
icon: Lo
|
|
1581
1581
|
}), null);
|
|
1582
1582
|
};
|
|
1583
1583
|
Kt.displayName = "DownloadOutlined";
|
|
@@ -2121,10 +2121,10 @@ const Vi = (e) => {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
}, E = (e, n) => e != null && e !== "" ? e : n, $i = (e, n, t) => {
|
|
2124
|
-
e ?
|
|
2124
|
+
e ? zt.success({
|
|
2125
2125
|
message: "操作成功",
|
|
2126
2126
|
description: n && n !== "操作成功" ? n : ""
|
|
2127
|
-
}) :
|
|
2127
|
+
}) : zt.error({
|
|
2128
2128
|
message: "操作失败",
|
|
2129
2129
|
description: n ? n.replaceAll("<br>", `
|
|
2130
2130
|
`) : "操作失败",
|
|
@@ -2132,12 +2132,12 @@ const Vi = (e) => {
|
|
|
2132
2132
|
whiteSpace: "pre-wrap"
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
|
-
},
|
|
2136
|
-
|
|
2135
|
+
}, Se = (e) => {
|
|
2136
|
+
zt.warning({
|
|
2137
2137
|
message: "操作提示",
|
|
2138
2138
|
description: e
|
|
2139
2139
|
});
|
|
2140
|
-
}, qe = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle",
|
|
2140
|
+
}, qe = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle", ji = (e) => {
|
|
2141
2141
|
const n = /{([^}]+)}/g, t = e.match(n);
|
|
2142
2142
|
return t ? t.map((a) => a.slice(1, -1)) : [];
|
|
2143
2143
|
}, yt = "SAG_UBMP_PC$", mt = {
|
|
@@ -2151,7 +2151,7 @@ const Vi = (e) => {
|
|
|
2151
2151
|
},
|
|
2152
2152
|
clearSelf: () => {
|
|
2153
2153
|
}
|
|
2154
|
-
},
|
|
2154
|
+
}, zi = (e) => {
|
|
2155
2155
|
const n = (/* @__PURE__ */ new Date()).getTime();
|
|
2156
2156
|
return e.addTime + e.expires >= n;
|
|
2157
2157
|
}, at = (e) => `${yt}${e}`, qi = (e) => ({
|
|
@@ -2174,7 +2174,7 @@ const Vi = (e) => {
|
|
|
2174
2174
|
},
|
|
2175
2175
|
get(n) {
|
|
2176
2176
|
const t = at(n), a = JSON.parse(e.getItem(t));
|
|
2177
|
-
return a && a.addTime ?
|
|
2177
|
+
return a && a.addTime ? zi(a) ? a.value : (e.removeItem(t), null) : a;
|
|
2178
2178
|
},
|
|
2179
2179
|
has(n) {
|
|
2180
2180
|
const t = at(n);
|
|
@@ -2193,15 +2193,15 @@ const Vi = (e) => {
|
|
|
2193
2193
|
});
|
|
2194
2194
|
Object.assign(mt, qi(window.localStorage));
|
|
2195
2195
|
const St = (e) => u(e) ? e + "$" : "", pl = "DICT_TYPE", ml = (e, n, t, a = "") => {
|
|
2196
|
-
|
|
2197
|
-
}, gl = (e, n, t = "") =>
|
|
2196
|
+
Li(e, pl + "$" + a, n, t);
|
|
2197
|
+
}, gl = (e, n, t = "") => Ii(e, pl + "$" + t, n), hl = "COLUMNS_SWITCH", Ni = (e, n, t) => {
|
|
2198
2198
|
bl(e, hl, n, t);
|
|
2199
2199
|
}, Di = (e, n) => yl(e, hl, n), vl = "FORM_PARAMS", Pa = (e, n, t, a = "") => {
|
|
2200
|
-
bl(e, vl + a, n, t);
|
|
2201
|
-
}, Bi = (e, n, t = "") => yl(e, vl + t, n),
|
|
2200
|
+
bl(e, vl + "$" + a, n, t);
|
|
2201
|
+
}, Bi = (e, n, t = "") => yl(e, vl + "$" + t, n), Li = (e, n, t, a) => {
|
|
2202
2202
|
const l = yt + St(e) + n, r = sessionStorage.getItem(l), i = u(r) ? JSON.parse(r) : {};
|
|
2203
2203
|
i[t] = a, sessionStorage.setItem(l, JSON.stringify(i));
|
|
2204
|
-
},
|
|
2204
|
+
}, Ii = (e, n, t) => {
|
|
2205
2205
|
const a = yt + St(e) + n, l = sessionStorage.getItem(a);
|
|
2206
2206
|
return u(l) ? JSON.parse(l)[t] : null;
|
|
2207
2207
|
}, bl = (e, n, t, a) => {
|
|
@@ -2264,7 +2264,7 @@ function Ri(e) {
|
|
|
2264
2264
|
return;
|
|
2265
2265
|
r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: i, item: p, data: f });
|
|
2266
2266
|
} else
|
|
2267
|
-
|
|
2267
|
+
g(i, p);
|
|
2268
2268
|
else {
|
|
2269
2269
|
const f = await x(p);
|
|
2270
2270
|
if (p.requestRow && !u(f))
|
|
@@ -2272,71 +2272,71 @@ function Ri(e) {
|
|
|
2272
2272
|
p.requestType({ gridRef: n, gridOptions: l, formData: i, item: p, data: f });
|
|
2273
2273
|
}
|
|
2274
2274
|
}, v = (p, f) => {
|
|
2275
|
-
!u(p.requestType) || typeof p.requestType == "string" ? p.requestType === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: i, item: p, row: f }) :
|
|
2275
|
+
!u(p.requestType) || typeof p.requestType == "string" ? p.requestType === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: i, item: p, row: f }) : y(p, f) : p.requestType({ gridRef: n, gridOptions: l, formData: i, item: p, row: f });
|
|
2276
2276
|
}, c = (p, f) => {
|
|
2277
|
-
const
|
|
2278
|
-
!u(
|
|
2277
|
+
const S = f.params.requestType;
|
|
2278
|
+
!u(S) || typeof S == "string" ? S === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: i, column: f, row: p }) : d(p, f) : S({ gridRef: n, gridOptions: l, formData: i, column: f, row: p });
|
|
2279
2279
|
}, d = (p, f) => {
|
|
2280
2280
|
if (u(f.params.instanceField)) {
|
|
2281
|
-
const
|
|
2282
|
-
if (
|
|
2281
|
+
const S = {};
|
|
2282
|
+
if (S.instanceValue = p[f.params.instanceField], S.instanceId = De + S.instanceValue, S.title = E(f.params.title, o.title), S.width = E(f.params.width, o.width), S.height = E(f.params.height, o.height), S.maximize = E(f.params.maximize, !1), S.autoLoad = E(f.params.autoLoad, !1), S.componentVue = E(f.params.componentVue, o.componentVue), S.componentUrl = f.params.requestUrl, S.componentVue)
|
|
2283
2283
|
p[A.buttonKeyName] = f.params;
|
|
2284
2284
|
else {
|
|
2285
|
-
let
|
|
2286
|
-
for (const
|
|
2287
|
-
|
|
2288
|
-
|
|
2285
|
+
let h = ne(r.ctxPath, S.componentUrl);
|
|
2286
|
+
for (const O in p)
|
|
2287
|
+
h = h.replace("{" + O + "}", p[O]);
|
|
2288
|
+
S.componentUrl = h;
|
|
2289
2289
|
}
|
|
2290
|
-
|
|
2291
|
-
const m = a.value.findIndex((
|
|
2290
|
+
S.componentParams = p, S.visible = !0;
|
|
2291
|
+
const m = a.value.findIndex((h) => h.instanceId === S.instanceId);
|
|
2292
2292
|
if (u(m) && m >= 0)
|
|
2293
2293
|
if (a.value[m].visible) {
|
|
2294
|
-
|
|
2294
|
+
Se("已经打开该数据弹窗信息");
|
|
2295
2295
|
return;
|
|
2296
2296
|
} else
|
|
2297
|
-
a.value[m] =
|
|
2297
|
+
a.value[m] = S;
|
|
2298
2298
|
else
|
|
2299
|
-
a.value.push(
|
|
2299
|
+
a.value.push(S);
|
|
2300
2300
|
} else {
|
|
2301
2301
|
if (t.title = E(f.params.title, o.title), t.width = E(f.params.width, o.width), t.height = E(f.params.height, o.height), t.maximize = E(f.params.maximize, !1), t.autoLoad = E(f.params.autoLoad, !1), t.componentVue = E(f.params.componentVue, o.componentVue), t.componentUrl = f.params.requestUrl, t.componentVue)
|
|
2302
2302
|
p[A.buttonKeyName] = f.params;
|
|
2303
2303
|
else {
|
|
2304
|
-
let
|
|
2304
|
+
let S = ne(r.ctxPath, t.componentUrl);
|
|
2305
2305
|
for (const m in p)
|
|
2306
|
-
|
|
2307
|
-
t.componentUrl =
|
|
2306
|
+
S = S.replace("{" + m + "}", p[m]);
|
|
2307
|
+
t.componentUrl = S;
|
|
2308
2308
|
}
|
|
2309
2309
|
t.componentParams = p, t.visible = !0;
|
|
2310
2310
|
}
|
|
2311
|
-
},
|
|
2311
|
+
}, g = async (p, f) => {
|
|
2312
2312
|
if (n.value) {
|
|
2313
2313
|
const m = await x(f);
|
|
2314
2314
|
if (f.requestRow && !u(m))
|
|
2315
2315
|
return;
|
|
2316
2316
|
if (f.requestType === He || f.requestType === rt) {
|
|
2317
|
-
let
|
|
2318
|
-
const
|
|
2319
|
-
if ((!
|
|
2320
|
-
const b =
|
|
2317
|
+
let h = f.requestUrl;
|
|
2318
|
+
const O = E(f.componentVue, o.componentVue);
|
|
2319
|
+
if ((!O || f.requestType === rt) && (h = ne(r.ctxPath, h), f.requestRow && h.split("?").length > 1)) {
|
|
2320
|
+
const b = ji(h.split("?")[1]);
|
|
2321
2321
|
for (const T in b) {
|
|
2322
|
-
const
|
|
2322
|
+
const q = b[T];
|
|
2323
2323
|
if (l.checkboxConfig) {
|
|
2324
2324
|
let R = [];
|
|
2325
2325
|
for (const H in m)
|
|
2326
2326
|
for (const W in m[H])
|
|
2327
|
-
W ===
|
|
2328
|
-
let
|
|
2327
|
+
W === q && m[H][W] && (R[m[H][W]] = m[H][W]);
|
|
2328
|
+
let L = "";
|
|
2329
2329
|
for (const H in R)
|
|
2330
|
-
|
|
2331
|
-
|
|
2330
|
+
L = (L ? L + "," : "") + H;
|
|
2331
|
+
h = h.replace("{" + q + "}", L);
|
|
2332
2332
|
} else
|
|
2333
|
-
|
|
2333
|
+
h = h.replace("{" + q + "}", m[q]);
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
2336
|
if (f.requestType === He)
|
|
2337
2337
|
if (u(f.instanceField)) {
|
|
2338
2338
|
const b = {};
|
|
2339
|
-
b.title = E(f.title, o.title), b.width = E(f.width, o.width), b.height = E(f.height, o.height), b.maximize = E(f.maximize, !1), b.autoLoad = E(f.autoLoad, !0), b.componentVue =
|
|
2339
|
+
b.title = E(f.title, o.title), b.width = E(f.width, o.width), b.height = E(f.height, o.height), b.maximize = E(f.maximize, !1), b.autoLoad = E(f.autoLoad, !0), b.componentVue = O, b.componentUrl = h, b.componentParams = {};
|
|
2340
2340
|
const T = Math.round(Math.random() * 1e8);
|
|
2341
2341
|
if (f.requestRow)
|
|
2342
2342
|
if (l.checkboxConfig)
|
|
@@ -2351,17 +2351,17 @@ function Ri(e) {
|
|
|
2351
2351
|
else
|
|
2352
2352
|
b.instanceId = De + T, b.componentParams[A.buttonKeyName] = f;
|
|
2353
2353
|
b.visible = !0;
|
|
2354
|
-
const
|
|
2355
|
-
if (u(
|
|
2356
|
-
if (a.value[
|
|
2357
|
-
|
|
2354
|
+
const q = a.value.findIndex((R) => R.instanceId === b.instanceId);
|
|
2355
|
+
if (u(q) && q >= 0)
|
|
2356
|
+
if (a.value[q].visible) {
|
|
2357
|
+
Se("已经打开该数据弹窗信息");
|
|
2358
2358
|
return;
|
|
2359
2359
|
} else
|
|
2360
|
-
a.value[
|
|
2360
|
+
a.value[q] = b;
|
|
2361
2361
|
else
|
|
2362
2362
|
a.value.push(b);
|
|
2363
2363
|
} else {
|
|
2364
|
-
if (t.title = E(f.title, o.title), t.width = E(f.width, o.width), t.height = E(f.height, o.height), t.maximize = E(f.maximize, !1), t.autoLoad = E(f.autoLoad, !0), t.componentVue =
|
|
2364
|
+
if (t.title = E(f.title, o.title), t.width = E(f.width, o.width), t.height = E(f.height, o.height), t.maximize = E(f.maximize, !1), t.autoLoad = E(f.autoLoad, !0), t.componentVue = O, t.componentUrl = h, t.componentParams = {}, f.requestRow)
|
|
2365
2365
|
if (l.checkboxConfig)
|
|
2366
2366
|
if (f.requestRadio)
|
|
2367
2367
|
m[0][A.buttonKeyName] = f, t.componentParams = m[0];
|
|
@@ -2376,24 +2376,24 @@ function Ri(e) {
|
|
|
2376
2376
|
t.visible = !0;
|
|
2377
2377
|
}
|
|
2378
2378
|
else
|
|
2379
|
-
window.open(
|
|
2379
|
+
window.open(h, "_blank");
|
|
2380
2380
|
} else
|
|
2381
2381
|
pt(
|
|
2382
2382
|
f.requestTitle,
|
|
2383
2383
|
() => {
|
|
2384
|
-
let
|
|
2385
|
-
if (
|
|
2384
|
+
let h = ne(r.ctxPath, f.requestUrl);
|
|
2385
|
+
if (h.split("?").length > 1) {
|
|
2386
2386
|
if (l.radioConfig)
|
|
2387
|
-
for (const
|
|
2388
|
-
|
|
2387
|
+
for (const O in m)
|
|
2388
|
+
h = h.replace("{" + O + "}", m[O]);
|
|
2389
2389
|
else if (l.checkboxConfig && f.requestRadio)
|
|
2390
|
-
for (const
|
|
2391
|
-
|
|
2390
|
+
for (const O in m[0])
|
|
2391
|
+
h = h.replace("{" + O + "}", m[0][O]);
|
|
2392
2392
|
}
|
|
2393
2393
|
ka(
|
|
2394
2394
|
n,
|
|
2395
2395
|
l,
|
|
2396
|
-
|
|
2396
|
+
h,
|
|
2397
2397
|
f.requestRow ? m : p,
|
|
2398
2398
|
!!(l.checkboxConfig && f.requestRow && m.length !== 1)
|
|
2399
2399
|
);
|
|
@@ -2401,62 +2401,62 @@ function Ri(e) {
|
|
|
2401
2401
|
f.requestConfirmContent
|
|
2402
2402
|
);
|
|
2403
2403
|
}
|
|
2404
|
-
},
|
|
2404
|
+
}, y = (p, f) => {
|
|
2405
2405
|
if (p.requestType === He || p.requestType === rt) {
|
|
2406
|
-
let
|
|
2406
|
+
let S = p.requestUrl;
|
|
2407
2407
|
const m = E(p.componentVue, o.componentVue);
|
|
2408
|
-
let
|
|
2408
|
+
let h = !1;
|
|
2409
2409
|
if (m)
|
|
2410
|
-
|
|
2411
|
-
else if (
|
|
2412
|
-
for (const
|
|
2413
|
-
if (
|
|
2414
|
-
|
|
2410
|
+
h = !0;
|
|
2411
|
+
else if (S = ne(r.ctxPath, S), S.split("?").length > 1)
|
|
2412
|
+
for (const O in f) {
|
|
2413
|
+
if (S.indexOf("{" + O + "}") > -1 && (h = !0, f[O] === "")) {
|
|
2414
|
+
Se("该单据没有相应数据,无法进行本次操作");
|
|
2415
2415
|
return;
|
|
2416
2416
|
}
|
|
2417
|
-
|
|
2417
|
+
S = S.replace("{" + O + "}", f[O]);
|
|
2418
2418
|
}
|
|
2419
2419
|
else
|
|
2420
|
-
|
|
2421
|
-
if (
|
|
2420
|
+
h = !0;
|
|
2421
|
+
if (h)
|
|
2422
2422
|
if (p.requestType === He)
|
|
2423
2423
|
if (f[A.buttonKeyName] = p, u(p.instanceField)) {
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2426
|
-
const b = a.value.findIndex((T) => T.instanceId ===
|
|
2424
|
+
const O = {};
|
|
2425
|
+
O.instanceValue = f[p.instanceField], O.instanceId = De + O.instanceValue, O.title = E(p.title, o.title), O.width = E(p.width, o.width), O.height = E(p.height, o.height), O.maximize = E(p.maximize, !1), O.autoLoad = E(p.autoLoad, !0), O.componentVue = m, O.componentUrl = S, O.componentParams = f, O.visible = !0;
|
|
2426
|
+
const b = a.value.findIndex((T) => T.instanceId === O.instanceId);
|
|
2427
2427
|
if (u(b) && b >= 0)
|
|
2428
2428
|
if (a.value[b].visible) {
|
|
2429
|
-
|
|
2429
|
+
Se("已经打开该数据弹窗信息");
|
|
2430
2430
|
return;
|
|
2431
2431
|
} else
|
|
2432
|
-
a.value[b] =
|
|
2432
|
+
a.value[b] = O;
|
|
2433
2433
|
else
|
|
2434
|
-
a.value.push(
|
|
2434
|
+
a.value.push(O);
|
|
2435
2435
|
} else
|
|
2436
|
-
t.title = E(p.title, o.title), t.width = E(p.width, o.width), t.height = E(p.height, o.height), t.maximize = E(p.maximize, !1), t.autoLoad = E(p.autoLoad, !0), t.componentVue = m, t.componentUrl =
|
|
2436
|
+
t.title = E(p.title, o.title), t.width = E(p.width, o.width), t.height = E(p.height, o.height), t.maximize = E(p.maximize, !1), t.autoLoad = E(p.autoLoad, !0), t.componentVue = m, t.componentUrl = S, t.componentParams = f, t.visible = !0;
|
|
2437
2437
|
else
|
|
2438
|
-
window.open(
|
|
2438
|
+
window.open(S, "_blank");
|
|
2439
2439
|
else {
|
|
2440
|
-
|
|
2440
|
+
Se("该单据没有相应数据,无法进行本次操作");
|
|
2441
2441
|
return;
|
|
2442
2442
|
}
|
|
2443
2443
|
} else
|
|
2444
2444
|
pt(
|
|
2445
2445
|
p.requestTitle,
|
|
2446
2446
|
() => {
|
|
2447
|
-
let
|
|
2447
|
+
let S = ne(r.ctxPath, p.requestUrl);
|
|
2448
2448
|
for (const m in f)
|
|
2449
|
-
|
|
2450
|
-
ka(n, l,
|
|
2449
|
+
S = S.replace("{" + m + "}", f[m]);
|
|
2450
|
+
ka(n, l, S, f);
|
|
2451
2451
|
},
|
|
2452
2452
|
p.requestConfirmContent
|
|
2453
2453
|
);
|
|
2454
2454
|
}, x = async (p) => {
|
|
2455
2455
|
if (p.requestRow) {
|
|
2456
2456
|
const f = await Ol(n, l);
|
|
2457
|
-
let
|
|
2458
|
-
if (l.checkboxConfig ? !f || f.length === 0 ?
|
|
2459
|
-
|
|
2457
|
+
let S = null;
|
|
2458
|
+
if (l.checkboxConfig ? !f || f.length === 0 ? S = "请至少选择一行数据" : p.requestRadio && f.length !== 1 && (S = "请只选择一条数据") : l.radioConfig ? f || (S = "请选择一行数据") : S = "请设置表格【rowType】类型参数", S) {
|
|
2459
|
+
Se(S);
|
|
2460
2460
|
return;
|
|
2461
2461
|
}
|
|
2462
2462
|
return f;
|
|
@@ -2486,20 +2486,20 @@ function Ei(e) {
|
|
|
2486
2486
|
return {
|
|
2487
2487
|
downloadEvent: (p) => {
|
|
2488
2488
|
const f = n.value;
|
|
2489
|
-
f && f.validate().then((
|
|
2490
|
-
if (!
|
|
2489
|
+
f && f.validate().then((S) => {
|
|
2490
|
+
if (!S || S.length === 0) {
|
|
2491
2491
|
let m = d.requestDownload;
|
|
2492
2492
|
if (u(m)) {
|
|
2493
2493
|
if (l.loading) {
|
|
2494
|
-
|
|
2494
|
+
Se("正在导出中,请不要重复点击!");
|
|
2495
2495
|
return;
|
|
2496
2496
|
}
|
|
2497
2497
|
if (c.isMerge && typeof m != "object") {
|
|
2498
|
-
|
|
2498
|
+
Se("合并列模式请设置requestDownload参数为表格列格式");
|
|
2499
2499
|
return;
|
|
2500
2500
|
}
|
|
2501
2501
|
pt("确定要导出表格所有内容吗?", () => {
|
|
2502
|
-
const
|
|
2502
|
+
const h = Xl.loading(
|
|
2503
2503
|
{
|
|
2504
2504
|
content: () => "下载中,请稍后... 不要连续点击下载",
|
|
2505
2505
|
style: {
|
|
@@ -2508,27 +2508,27 @@ function Ei(e) {
|
|
|
2508
2508
|
},
|
|
2509
2509
|
0
|
|
2510
2510
|
);
|
|
2511
|
-
setTimeout(
|
|
2512
|
-
const
|
|
2513
|
-
if (
|
|
2514
|
-
const { filter: b, form: T, sort:
|
|
2511
|
+
setTimeout(h, 2e3);
|
|
2512
|
+
const O = a.value;
|
|
2513
|
+
if (O) {
|
|
2514
|
+
const { filter: b, form: T, sort: q } = O.getProxyInfo(), L = qt({
|
|
2515
2515
|
currentPage: 1,
|
|
2516
2516
|
pageSize: 25e3
|
|
2517
|
-
},
|
|
2517
|
+
}, q, b, T, t, i);
|
|
2518
2518
|
if (typeof m == "string") {
|
|
2519
2519
|
m = ne(s.ctxPath, d.requestDownload);
|
|
2520
2520
|
let H = "";
|
|
2521
|
-
Object.keys(
|
|
2522
|
-
u(
|
|
2521
|
+
Object.keys(L).forEach((W) => {
|
|
2522
|
+
u(L[W]) && (typeof L[W] == "string" && (H += "&" + W + "=" + L[W]), typeof L[W] == "object" && Array.isArray(L[W]) && (H += "&" + W + "=" + L[W].join(",")));
|
|
2523
2523
|
}), re("导出表格参数", [m, H]), Vi(m + H);
|
|
2524
2524
|
} else
|
|
2525
|
-
l.loading = !0,
|
|
2525
|
+
l.loading = !0, L.exportFlag = !0, r(L, d.requestData, !0).then(async (H) => {
|
|
2526
2526
|
if (H == null || H.rows.length == 0) {
|
|
2527
2527
|
l.loading = !1;
|
|
2528
2528
|
return;
|
|
2529
2529
|
}
|
|
2530
2530
|
if (H.recordCount >= 25e3) {
|
|
2531
|
-
l.loading = !1,
|
|
2531
|
+
l.loading = !1, Se("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2532
2532
|
return;
|
|
2533
2533
|
}
|
|
2534
2534
|
setTimeout(() => {
|
|
@@ -2542,7 +2542,7 @@ function Ei(e) {
|
|
|
2542
2542
|
};
|
|
2543
2543
|
p(W), l.loading = !1;
|
|
2544
2544
|
} else {
|
|
2545
|
-
const W = H.rows.concat([]),
|
|
2545
|
+
const W = H.rows.concat([]), Oe = {
|
|
2546
2546
|
filename: s.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2547
2547
|
sheetName: s.templateTitle,
|
|
2548
2548
|
type: "xlsx",
|
|
@@ -2555,7 +2555,7 @@ function Ei(e) {
|
|
|
2555
2555
|
return !A.templateTable.ignoreExportColumnsTitle.includes(Ee?.column?.title);
|
|
2556
2556
|
}
|
|
2557
2557
|
};
|
|
2558
|
-
re("导出参数",
|
|
2558
|
+
re("导出参数", Oe), O.exportData(Oe).then(() => {
|
|
2559
2559
|
l.loading = !1;
|
|
2560
2560
|
});
|
|
2561
2561
|
}
|
|
@@ -2578,12 +2578,12 @@ function Ei(e) {
|
|
|
2578
2578
|
},
|
|
2579
2579
|
switchColumsEvent: (p, f = !1) => {
|
|
2580
2580
|
if (u(v.tableColumnsExtra)) {
|
|
2581
|
-
const
|
|
2581
|
+
const S = v.tableColumns, m = v.tableColumnsExtra;
|
|
2582
2582
|
if (f) {
|
|
2583
|
-
const
|
|
2584
|
-
u(
|
|
2583
|
+
const h = Di(p, s.templateType);
|
|
2584
|
+
u(h) ? (l.params.switchType = h.switchType, l.columns = h.switchType === "1" ? S : m, l.showOverflow = h.switchShowOverflow) : (l.params.switchType = "1", l.columns = S, l.showOverflow = E(v.showOverflow, !0));
|
|
2585
2585
|
} else
|
|
2586
|
-
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? m :
|
|
2586
|
+
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? m : S, l.showOverflow = !l.showOverflow, Ni(p, s.templateType, {
|
|
2587
2587
|
switchType: l.params.switchType,
|
|
2588
2588
|
switchShowOverflow: l.showOverflow
|
|
2589
2589
|
});
|
|
@@ -2595,43 +2595,43 @@ function Ei(e) {
|
|
|
2595
2595
|
}
|
|
2596
2596
|
};
|
|
2597
2597
|
}
|
|
2598
|
-
const
|
|
2598
|
+
const je = /* @__PURE__ */ X({
|
|
2599
2599
|
__name: "AntdOutlind",
|
|
2600
2600
|
props: {
|
|
2601
2601
|
icon: { type: String, default: null }
|
|
2602
2602
|
},
|
|
2603
2603
|
setup(e) {
|
|
2604
2604
|
const n = e;
|
|
2605
|
-
return (t, a) => (C(), Y(
|
|
2606
|
-
n.icon === "user" ? (C(),
|
|
2607
|
-
n.icon === "excel" ? (C(),
|
|
2608
|
-
n.icon === "download" ? (C(),
|
|
2609
|
-
n.icon === "save" ? (C(),
|
|
2610
|
-
n.icon === "edit" ? (C(),
|
|
2611
|
-
n.icon === "delete" ? (C(),
|
|
2612
|
-
n.icon === "down" ? (C(),
|
|
2613
|
-
n.icon === "up" ? (C(),
|
|
2614
|
-
n.icon === "undo" ? (C(),
|
|
2615
|
-
n.icon === "redo" ? (C(),
|
|
2616
|
-
n.icon === "copy" ? (C(),
|
|
2617
|
-
n.icon === "print" ? (C(),
|
|
2618
|
-
n.icon === "plus" ? (C(),
|
|
2619
|
-
n.icon === "minus" ? (C(),
|
|
2620
|
-
n.icon === "info" ? (C(),
|
|
2621
|
-
n.icon === "audit" ? (C(),
|
|
2622
|
-
n.icon === "schedule" ? (C(),
|
|
2623
|
-
n.icon === "close" ? (C(),
|
|
2624
|
-
n.icon === "stop" ? (C(),
|
|
2625
|
-
n.icon === "check" ? (C(),
|
|
2626
|
-
n.icon === "setting" ? (C(),
|
|
2627
|
-
n.icon === "menu" ? (C(),
|
|
2628
|
-
n.icon === "pdf" ? (C(),
|
|
2629
|
-
n.icon === "push" ? (C(),
|
|
2630
|
-
n.icon === "upload" ? (C(),
|
|
2631
|
-
n.icon === "search" ? (C(),
|
|
2632
|
-
n.icon === "sync" ? (C(),
|
|
2633
|
-
n.icon === "link" ? (C(),
|
|
2634
|
-
!n.icon || n.icon === "" ? (C(),
|
|
2605
|
+
return (t, a) => (C(), Y(de, null, [
|
|
2606
|
+
n.icon === "user" ? (C(), z(w(yn), { key: 0 })) : N("", !0),
|
|
2607
|
+
n.icon === "excel" ? (C(), z(w(Qt), { key: 1 })) : N("", !0),
|
|
2608
|
+
n.icon === "download" ? (C(), z(w(Kt), { key: 2 })) : N("", !0),
|
|
2609
|
+
n.icon === "save" ? (C(), z(w(cn), { key: 3 })) : N("", !0),
|
|
2610
|
+
n.icon === "edit" ? (C(), z(w(Xt), { key: 4 })) : N("", !0),
|
|
2611
|
+
n.icon === "delete" ? (C(), z(w(Jt), { key: 5 })) : N("", !0),
|
|
2612
|
+
n.icon === "down" ? (C(), z(w(bt), { key: 6 })) : N("", !0),
|
|
2613
|
+
n.icon === "up" ? (C(), z(w(vn), { key: 7 })) : N("", !0),
|
|
2614
|
+
n.icon === "undo" ? (C(), z(w(hn), { key: 8 })) : N("", !0),
|
|
2615
|
+
n.icon === "redo" ? (C(), z(w(un), { key: 9 })) : N("", !0),
|
|
2616
|
+
n.icon === "copy" ? (C(), z(w(Gt), { key: 10 })) : N("", !0),
|
|
2617
|
+
n.icon === "print" ? (C(), z(w(sn), { key: 11 })) : N("", !0),
|
|
2618
|
+
n.icon === "plus" ? (C(), z(w(on), { key: 12 })) : N("", !0),
|
|
2619
|
+
n.icon === "minus" ? (C(), z(w(rn), { key: 13 })) : N("", !0),
|
|
2620
|
+
n.icon === "info" ? (C(), z(w(nn), { key: 14 })) : N("", !0),
|
|
2621
|
+
n.icon === "audit" ? (C(), z(w(Ft), { key: 15 })) : N("", !0),
|
|
2622
|
+
n.icon === "schedule" ? (C(), z(w(dn), { key: 16 })) : N("", !0),
|
|
2623
|
+
n.icon === "close" ? (C(), z(w(Yt), { key: 17 })) : N("", !0),
|
|
2624
|
+
n.icon === "stop" ? (C(), z(w(mn), { key: 18 })) : N("", !0),
|
|
2625
|
+
n.icon === "check" ? (C(), z(w(Ht), { key: 19 })) : N("", !0),
|
|
2626
|
+
n.icon === "setting" ? (C(), z(w(pn), { key: 20 })) : N("", !0),
|
|
2627
|
+
n.icon === "menu" ? (C(), z(w(ln), { key: 21 })) : N("", !0),
|
|
2628
|
+
n.icon === "pdf" ? (C(), z(w(en), { key: 22 })) : N("", !0),
|
|
2629
|
+
n.icon === "push" ? (C(), z(w(Wt), { key: 23 })) : N("", !0),
|
|
2630
|
+
n.icon === "upload" ? (C(), z(w(bn), { key: 24 })) : N("", !0),
|
|
2631
|
+
n.icon === "search" ? (C(), z(w(fn), { key: 25 })) : N("", !0),
|
|
2632
|
+
n.icon === "sync" ? (C(), z(w(gn), { key: 26 })) : N("", !0),
|
|
2633
|
+
n.icon === "link" ? (C(), z(w(an), { key: 27 })) : N("", !0),
|
|
2634
|
+
!n.icon || n.icon === "" ? (C(), z(w(tn), { key: 28 })) : N("", !0)
|
|
2635
2635
|
], 64));
|
|
2636
2636
|
}
|
|
2637
2637
|
});
|
|
@@ -2739,39 +2739,39 @@ function Xi() {
|
|
|
2739
2739
|
return function(t, a, l) {
|
|
2740
2740
|
var r = a.prototype, i = function(d) {
|
|
2741
2741
|
return d && (d.indexOf ? d : d.s);
|
|
2742
|
-
}, o = function(d,
|
|
2743
|
-
var f = d.name ? d : d.$locale(),
|
|
2742
|
+
}, o = function(d, g, y, x, p) {
|
|
2743
|
+
var f = d.name ? d : d.$locale(), S = i(f[g]), m = i(f[y]), h = S || m.map((function(b) {
|
|
2744
2744
|
return b.slice(0, x);
|
|
2745
2745
|
}));
|
|
2746
|
-
if (!p) return
|
|
2747
|
-
var
|
|
2748
|
-
return
|
|
2749
|
-
return
|
|
2746
|
+
if (!p) return h;
|
|
2747
|
+
var O = f.weekStart;
|
|
2748
|
+
return h.map((function(b, T) {
|
|
2749
|
+
return h[(T + (O || 0)) % 7];
|
|
2750
2750
|
}));
|
|
2751
2751
|
}, s = function() {
|
|
2752
2752
|
return l.Ls[l.locale()];
|
|
2753
|
-
}, v = function(d,
|
|
2754
|
-
return d.formats[
|
|
2755
|
-
return
|
|
2753
|
+
}, v = function(d, g) {
|
|
2754
|
+
return d.formats[g] || (function(y) {
|
|
2755
|
+
return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(x, p, f) {
|
|
2756
2756
|
return p || f.slice(1);
|
|
2757
2757
|
}));
|
|
2758
|
-
})(d.formats[
|
|
2758
|
+
})(d.formats[g.toUpperCase()]);
|
|
2759
2759
|
}, c = function() {
|
|
2760
2760
|
var d = this;
|
|
2761
|
-
return { months: function(
|
|
2762
|
-
return
|
|
2763
|
-
}, monthsShort: function(
|
|
2764
|
-
return
|
|
2761
|
+
return { months: function(g) {
|
|
2762
|
+
return g ? g.format("MMMM") : o(d, "months");
|
|
2763
|
+
}, monthsShort: function(g) {
|
|
2764
|
+
return g ? g.format("MMM") : o(d, "monthsShort", "months", 3);
|
|
2765
2765
|
}, firstDayOfWeek: function() {
|
|
2766
2766
|
return d.$locale().weekStart || 0;
|
|
2767
|
-
}, weekdays: function(
|
|
2768
|
-
return
|
|
2769
|
-
}, weekdaysMin: function(
|
|
2770
|
-
return
|
|
2771
|
-
}, weekdaysShort: function(
|
|
2772
|
-
return
|
|
2773
|
-
}, longDateFormat: function(
|
|
2774
|
-
return v(d.$locale(),
|
|
2767
|
+
}, weekdays: function(g) {
|
|
2768
|
+
return g ? g.format("dddd") : o(d, "weekdays");
|
|
2769
|
+
}, weekdaysMin: function(g) {
|
|
2770
|
+
return g ? g.format("dd") : o(d, "weekdaysMin", "weekdays", 2);
|
|
2771
|
+
}, weekdaysShort: function(g) {
|
|
2772
|
+
return g ? g.format("ddd") : o(d, "weekdaysShort", "weekdays", 3);
|
|
2773
|
+
}, longDateFormat: function(g) {
|
|
2774
|
+
return v(d.$locale(), g);
|
|
2775
2775
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
2776
2776
|
};
|
|
2777
2777
|
r.localeData = function() {
|
|
@@ -2790,8 +2790,8 @@ function Xi() {
|
|
|
2790
2790
|
return l.months();
|
|
2791
2791
|
}, monthsShort: function() {
|
|
2792
2792
|
return l.monthsShort();
|
|
2793
|
-
}, longDateFormat: function(
|
|
2794
|
-
return v(d,
|
|
2793
|
+
}, longDateFormat: function(g) {
|
|
2794
|
+
return v(d, g);
|
|
2795
2795
|
}, meridiem: d.meridiem, ordinal: d.ordinal };
|
|
2796
2796
|
}, l.months = function() {
|
|
2797
2797
|
return o(s(), "months");
|
|
@@ -2809,13 +2809,13 @@ function Xi() {
|
|
|
2809
2809
|
})(ct)), ct.exports;
|
|
2810
2810
|
}
|
|
2811
2811
|
var Zi = Xi();
|
|
2812
|
-
const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER",
|
|
2812
|
+
const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", es = (e, n = "") => u(e) ? e : n, ts = (e, n) => (n = u(n) ? n : 2, u(e) ? e.toFixed(n) : 0), Lt = (e, n) => (n = u(n) ? n : 2, u(e) ? `${Me.commafy(Number(e), { digits: n })}` : e), _l = (e) => wn(e, "yyyy-MM-dd"), Cl = (e) => wn(e, "yyyy-MM-dd HH:mm:ss"), wn = (e, n) => Me.toDateString(e, n), dt = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, ns = (e, n) => typeof n == "string" ? n === "number" ? Lt(e) : n === "date" ? _l(e) : n === "datetime" ? Cl(e) : dt(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Lt(e, n[1]) : dt(e, 200), $ = {
|
|
2813
2813
|
toString: es,
|
|
2814
2814
|
toDateString: _l,
|
|
2815
2815
|
toDatetimeString: Cl,
|
|
2816
2816
|
dateFormatter: wn,
|
|
2817
2817
|
toNumber: ts,
|
|
2818
|
-
toMoney:
|
|
2818
|
+
toMoney: Lt,
|
|
2819
2819
|
stringFormat: ns,
|
|
2820
2820
|
truncateFormat: dt
|
|
2821
2821
|
}, as = /* @__PURE__ */ X({
|
|
@@ -2834,7 +2834,7 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2834
2834
|
emits: ["update:value"],
|
|
2835
2835
|
setup(e, { expose: n, emit: t }) {
|
|
2836
2836
|
M.locale("zh-cn"), M.extend(On), M.extend(Ot);
|
|
2837
|
-
const a = e, l =
|
|
2837
|
+
const a = e, l = $.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, i = $.toString(a.format, "YYYY-MM-DD"), o = le(ve), s = qe(o?.size);
|
|
2838
2838
|
let v = V();
|
|
2839
2839
|
const c = [
|
|
2840
2840
|
{ label: "当天", value: [M().add(0, r)] },
|
|
@@ -2853,40 +2853,40 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2853
2853
|
{ label: "近一年", value: [M().add(-12, r)] },
|
|
2854
2854
|
{ label: "近两年", value: [M().add(-24, r)] },
|
|
2855
2855
|
{ label: "近三年", value: [M().add(-36, r)] }
|
|
2856
|
-
],
|
|
2856
|
+
], g = [
|
|
2857
2857
|
{ label: "本年", value: [M().add(0, r)] },
|
|
2858
2858
|
{ label: "近一年", value: [M().add(-1, r)] },
|
|
2859
2859
|
{ label: "近两年", value: [M().add(-2, r)] },
|
|
2860
2860
|
{ label: "近三年", value: [M().add(-3, r)] },
|
|
2861
2861
|
{ label: "近五年", value: [M().add(-5, r)] }
|
|
2862
|
-
],
|
|
2862
|
+
], y = V(l === "year" ? g : l === "month" ? d : c), x = t, p = (O, b) => {
|
|
2863
2863
|
re("日期区间选值", b), b && b[0] == "" && b[1] == "" ? x("update:value", null) : x("update:value", b);
|
|
2864
2864
|
}, f = () => {
|
|
2865
|
-
let
|
|
2866
|
-
return v.value && v.value[0] && (
|
|
2867
|
-
},
|
|
2868
|
-
const b =
|
|
2865
|
+
let O = null, b = null;
|
|
2866
|
+
return v.value && v.value[0] && (O = M(v.value[0]).format(i)), v.value && v.value[1] && (b = M(v.value[1]).format(i)), !O && !b ? null : [O, b];
|
|
2867
|
+
}, S = (O) => {
|
|
2868
|
+
const b = O ? O[0] : null, T = O ? O[1] : null;
|
|
2869
2869
|
typeof b == "number" || typeof T == "number" ? v.value = [
|
|
2870
2870
|
u(b) ? M().add(b, r) : null,
|
|
2871
2871
|
u(T) ? M().add(T, r) : null
|
|
2872
2872
|
] : v.value = [u(b) ? M(b) : null, u(T) ? M(T) : null], x("update:value", f());
|
|
2873
2873
|
}, m = () => {
|
|
2874
|
-
u(a.defaultValue) ?
|
|
2875
|
-
},
|
|
2876
|
-
return
|
|
2874
|
+
u(a.defaultValue) ? S([a.defaultValue, null]) : S(null);
|
|
2875
|
+
}, h = () => "dateRange";
|
|
2876
|
+
return ie(() => {
|
|
2877
2877
|
m();
|
|
2878
2878
|
}), n({
|
|
2879
|
-
setValue:
|
|
2879
|
+
setValue: S,
|
|
2880
2880
|
getValue: f,
|
|
2881
2881
|
resetValue: m,
|
|
2882
|
-
getRefType:
|
|
2883
|
-
}), (
|
|
2882
|
+
getRefType: h
|
|
2883
|
+
}), (O, b) => {
|
|
2884
2884
|
const T = F("a-range-picker");
|
|
2885
|
-
return C(),
|
|
2885
|
+
return C(), z(T, {
|
|
2886
2886
|
value: w(v),
|
|
2887
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
2887
|
+
"onUpdate:value": b[0] || (b[0] = (q) => ht(v) ? v.value = q : v = q),
|
|
2888
2888
|
onChange: p,
|
|
2889
|
-
presets:
|
|
2889
|
+
presets: y.value,
|
|
2890
2890
|
locale: w(Je),
|
|
2891
2891
|
allowEmpty: [!0, !0],
|
|
2892
2892
|
format: w(i),
|
|
@@ -2912,29 +2912,29 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2912
2912
|
emits: ["update:value"],
|
|
2913
2913
|
setup(e, { expose: n, emit: t }) {
|
|
2914
2914
|
M.locale("zh-cn"), M.extend(On), M.extend(Ot);
|
|
2915
|
-
const a = e, l = le(
|
|
2915
|
+
const a = e, l = le(ve), r = qe(l?.size), i = $.toString(a.picker, "date"), o = $.toString(a.format, "YYYY-MM-DD"), s = t;
|
|
2916
2916
|
let v = V();
|
|
2917
2917
|
const c = (x, p) => {
|
|
2918
2918
|
re("日期选值", p), !p || p == "" ? s("update:value", null) : s("update:value", p);
|
|
2919
2919
|
}, d = () => {
|
|
2920
2920
|
let x = null;
|
|
2921
2921
|
return v.value && (x = M(v.value).format(o)), x || null;
|
|
2922
|
-
},
|
|
2922
|
+
}, g = (x) => {
|
|
2923
2923
|
typeof x == "number" ? v.value = u(x) ? M().add(x, i) : null : v.value = u(x) ? M(x) : null, s("update:value", d());
|
|
2924
|
-
},
|
|
2925
|
-
u(a.defaultValue) ?
|
|
2924
|
+
}, y = () => {
|
|
2925
|
+
u(a.defaultValue) ? g(a.defaultValue) : g(null);
|
|
2926
2926
|
};
|
|
2927
|
-
return
|
|
2928
|
-
|
|
2927
|
+
return ie(() => {
|
|
2928
|
+
y();
|
|
2929
2929
|
}), n({
|
|
2930
|
-
setValue:
|
|
2930
|
+
setValue: g,
|
|
2931
2931
|
getValue: d,
|
|
2932
|
-
resetValue:
|
|
2932
|
+
resetValue: y
|
|
2933
2933
|
}), (x, p) => {
|
|
2934
2934
|
const f = F("a-date-picker");
|
|
2935
|
-
return C(),
|
|
2935
|
+
return C(), z(f, {
|
|
2936
2936
|
value: w(v),
|
|
2937
|
-
"onUpdate:value": p[0] || (p[0] = (
|
|
2937
|
+
"onUpdate:value": p[0] || (p[0] = (S) => ht(v) ? v.value = S : v = S),
|
|
2938
2938
|
onChange: c,
|
|
2939
2939
|
locale: w(Je),
|
|
2940
2940
|
format: w(o),
|
|
@@ -2959,22 +2959,22 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2959
2959
|
},
|
|
2960
2960
|
emits: ["update:value"],
|
|
2961
2961
|
setup(e, { expose: n, emit: t }) {
|
|
2962
|
-
const a = e, l = le(
|
|
2962
|
+
const a = e, l = le(ve), r = qe(l?.size), i = V(null), o = E(a.placeholder, "请输入" + a.title), s = t, v = () => {
|
|
2963
2963
|
s("update:value", i.value);
|
|
2964
2964
|
};
|
|
2965
2965
|
return n({
|
|
2966
2966
|
getValue: () => i.value,
|
|
2967
|
-
setValue: (
|
|
2968
|
-
i.value =
|
|
2967
|
+
setValue: (y) => {
|
|
2968
|
+
i.value = y, s("update:value", i.value);
|
|
2969
2969
|
},
|
|
2970
2970
|
resetValue: () => {
|
|
2971
2971
|
i.value = a.defaultValue || "", s("update:value", i.value);
|
|
2972
2972
|
}
|
|
2973
|
-
}),
|
|
2973
|
+
}), ie(() => {
|
|
2974
2974
|
s("update:value", i.value);
|
|
2975
|
-
}), (
|
|
2975
|
+
}), (y, x) => {
|
|
2976
2976
|
const p = F("a-input");
|
|
2977
|
-
return C(),
|
|
2977
|
+
return C(), z(p, {
|
|
2978
2978
|
value: i.value,
|
|
2979
2979
|
"onUpdate:value": x[0] || (x[0] = (f) => i.value = f),
|
|
2980
2980
|
placeholder: w(o),
|
|
@@ -3002,40 +3002,36 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3002
3002
|
},
|
|
3003
3003
|
emits: ["update:value"],
|
|
3004
3004
|
setup(e, { expose: n, emit: t }) {
|
|
3005
|
-
const a = e, l = le(
|
|
3006
|
-
let
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
return g = ne(o, g), await Sn(i, g, a.request, y);
|
|
3010
|
-
} else
|
|
3011
|
-
return re("下拉框插槽未获取到请求地址"), [];
|
|
3012
|
-
}, x = (g, y) => y.label.toLowerCase().indexOf(g.toLowerCase()) >= 0, p = () => {
|
|
3005
|
+
const a = e, l = le(ve), r = le(A.userKeyName), i = l?.application || "", o = l?.ctxPath || "", s = l?.requestDictUrl || "", v = qe(l?.size), c = V(a.multiple ? [] : null), d = t, g = V([]), y = async () => {
|
|
3006
|
+
let h = a.request.requestUrl;
|
|
3007
|
+
return !h && i && (h = s), h ? (h = ne(o, h), await Sn(i, h, a.request, r())) : (re("下拉框插槽未获取到请求地址"), []);
|
|
3008
|
+
}, x = (h, O) => O.label.toLowerCase().indexOf(h.toLowerCase()) >= 0, p = () => {
|
|
3013
3009
|
d("update:value", c.value);
|
|
3014
|
-
}, f = () => c.value,
|
|
3015
|
-
c.value =
|
|
3010
|
+
}, f = () => c.value, S = (h) => {
|
|
3011
|
+
c.value = h, d("update:value", c.value);
|
|
3016
3012
|
};
|
|
3017
3013
|
return n({
|
|
3018
3014
|
getValue: f,
|
|
3019
|
-
setValue:
|
|
3015
|
+
setValue: S,
|
|
3020
3016
|
resetValue: () => {
|
|
3021
|
-
a.multiple ?
|
|
3017
|
+
a.multiple ? S(a.defaultValue || []) : S(a.defaultValue || null);
|
|
3022
3018
|
}
|
|
3023
|
-
}),
|
|
3024
|
-
d("update:value", c.value),
|
|
3025
|
-
|
|
3019
|
+
}), ie(() => {
|
|
3020
|
+
d("update:value", c.value), y().then((h) => {
|
|
3021
|
+
g.value = h;
|
|
3026
3022
|
});
|
|
3027
|
-
}), (
|
|
3023
|
+
}), (h, O) => {
|
|
3028
3024
|
const b = F("a-select");
|
|
3029
3025
|
return C(), Y("div", os, [
|
|
3030
3026
|
D(b, {
|
|
3031
3027
|
value: c.value,
|
|
3032
|
-
"onUpdate:value":
|
|
3028
|
+
"onUpdate:value": O[0] || (O[0] = (T) => c.value = T),
|
|
3033
3029
|
onChange: p,
|
|
3034
3030
|
placeholder: "--请选择--",
|
|
3035
3031
|
allowClear: a.clearable,
|
|
3036
3032
|
mode: a.multiple ? "multiple" : "",
|
|
3037
3033
|
"max-tag-count": a.maxTagCount,
|
|
3038
|
-
options:
|
|
3034
|
+
options: g.value,
|
|
3039
3035
|
"show-search": a.filterable,
|
|
3040
3036
|
"filter-option": x,
|
|
3041
3037
|
defaultActiveFirstOption: !a.multiple,
|
|
@@ -3066,42 +3062,42 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3066
3062
|
},
|
|
3067
3063
|
emits: ["update:value"],
|
|
3068
3064
|
setup(e, { expose: n, emit: t }) {
|
|
3069
|
-
const a = e, l = le(
|
|
3070
|
-
if (c.value = [],
|
|
3071
|
-
|
|
3065
|
+
const a = e, l = le(ve), r = l?.ctxPath || "", i = qe(l?.size), o = "请输入" + a.title + "搜索", s = V(""), v = V(""), c = V([]), d = t, g = V(!1), y = async (O) => {
|
|
3066
|
+
if (c.value = [], O) {
|
|
3067
|
+
g.value = !0;
|
|
3072
3068
|
const b = {
|
|
3073
|
-
searchValue: Te(
|
|
3069
|
+
searchValue: Te(O)
|
|
3074
3070
|
}, T = await Re(ne(r, a.requestUrl), {
|
|
3075
3071
|
...a.requestParams,
|
|
3076
3072
|
...b
|
|
3077
3073
|
});
|
|
3078
|
-
return
|
|
3074
|
+
return g.value = !1, T;
|
|
3079
3075
|
} else
|
|
3080
3076
|
return [];
|
|
3081
|
-
}, x =
|
|
3082
|
-
|
|
3077
|
+
}, x = It((O) => {
|
|
3078
|
+
y(O).then((b) => {
|
|
3083
3079
|
c.value = b;
|
|
3084
3080
|
});
|
|
3085
|
-
}, 500), p = (
|
|
3086
|
-
s.value =
|
|
3087
|
-
}, f = () => v.value,
|
|
3088
|
-
s.value =
|
|
3089
|
-
let T = c.value.filter((
|
|
3090
|
-
T.length === 1 ? v.value = T[0].label :
|
|
3091
|
-
c.value =
|
|
3092
|
-
}), d("update:value",
|
|
3081
|
+
}, 500), p = (O) => {
|
|
3082
|
+
s.value = O, d("update:value", O);
|
|
3083
|
+
}, f = () => v.value, S = () => s.value, m = (O, b = null) => {
|
|
3084
|
+
s.value = O, v.value = b;
|
|
3085
|
+
let T = c.value.filter((q) => q.value === s.value);
|
|
3086
|
+
T.length === 1 ? v.value = T[0].label : y(O).then((q) => {
|
|
3087
|
+
c.value = q;
|
|
3088
|
+
}), d("update:value", O);
|
|
3093
3089
|
};
|
|
3094
3090
|
return n({
|
|
3095
3091
|
getName: f,
|
|
3096
|
-
getValue:
|
|
3092
|
+
getValue: S,
|
|
3097
3093
|
setValue: m,
|
|
3098
3094
|
resetValue: () => {
|
|
3099
3095
|
m(a.defaultValue, a.defaultName);
|
|
3100
3096
|
}
|
|
3101
|
-
}), (
|
|
3102
|
-
const T = F("a-spin"),
|
|
3097
|
+
}), (O, b) => {
|
|
3098
|
+
const T = F("a-spin"), q = F("a-select");
|
|
3103
3099
|
return C(), Y("div", ss, [
|
|
3104
|
-
D(
|
|
3100
|
+
D(q, {
|
|
3105
3101
|
value: s.value,
|
|
3106
3102
|
"onUpdate:value": b[0] || (b[0] = (R) => s.value = R),
|
|
3107
3103
|
placeholder: o,
|
|
@@ -3117,9 +3113,9 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3117
3113
|
"show-search": "",
|
|
3118
3114
|
style: { width: "100%" }
|
|
3119
3115
|
}, xe({ _: 2 }, [
|
|
3120
|
-
|
|
3116
|
+
g.value ? {
|
|
3121
3117
|
name: "notFoundContent",
|
|
3122
|
-
fn:
|
|
3118
|
+
fn: I(() => [
|
|
3123
3119
|
D(T, { size: "small" })
|
|
3124
3120
|
]),
|
|
3125
3121
|
key: "0"
|
|
@@ -3147,39 +3143,39 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3147
3143
|
},
|
|
3148
3144
|
emits: ["update:value"],
|
|
3149
3145
|
setup(e, { expose: n, emit: t }) {
|
|
3150
|
-
const a = e, l = le(
|
|
3151
|
-
|
|
3152
|
-
}, f = () => v.value,
|
|
3153
|
-
s.value =
|
|
3146
|
+
const a = e, l = le(ve), r = l?.ctxPath || "", i = qe(l?.size), o = "请输入" + a.title + "搜索", s = V(a.multiple ? [] : null), v = V(""), c = V([]), d = V([]), g = t, y = (O, b) => b.label.toLowerCase().indexOf(Te(O).toLowerCase()) >= 0, x = async () => await Re(ne(r, a.requestUrl), a.requestParams), p = (O) => {
|
|
3147
|
+
g("update:value", O);
|
|
3148
|
+
}, f = () => v.value, S = () => s.value, m = (O) => {
|
|
3149
|
+
s.value = O, g("update:value", s.value);
|
|
3154
3150
|
let b = d.value.filter((T) => T.value === s.value);
|
|
3155
3151
|
if (a.multiple) {
|
|
3156
3152
|
let T = "";
|
|
3157
|
-
b.forEach((
|
|
3158
|
-
T +=
|
|
3153
|
+
b.forEach((q) => {
|
|
3154
|
+
T += q.label + ",";
|
|
3159
3155
|
}), v.value = T;
|
|
3160
3156
|
} else
|
|
3161
3157
|
b.length === 1 && (v.value = b[0].label);
|
|
3162
3158
|
};
|
|
3163
3159
|
return n({
|
|
3164
3160
|
getName: f,
|
|
3165
|
-
getValue:
|
|
3161
|
+
getValue: S,
|
|
3166
3162
|
setValue: m,
|
|
3167
3163
|
resetValue: () => {
|
|
3168
3164
|
a.multiple ? m(a.defaultValue || []) : m(a.defaultValue || null);
|
|
3169
3165
|
}
|
|
3170
|
-
}), x().then((
|
|
3171
|
-
d.value =
|
|
3172
|
-
}), (
|
|
3166
|
+
}), x().then((O) => {
|
|
3167
|
+
d.value = O, c.value = O;
|
|
3168
|
+
}), (O, b) => {
|
|
3173
3169
|
const T = F("a-select");
|
|
3174
3170
|
return C(), Y("div", cs, [
|
|
3175
3171
|
D(T, {
|
|
3176
3172
|
value: s.value,
|
|
3177
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
3173
|
+
"onUpdate:value": b[0] || (b[0] = (q) => s.value = q),
|
|
3178
3174
|
placeholder: o,
|
|
3179
3175
|
disabled: a.disabled,
|
|
3180
3176
|
mode: a.multiple ? "multiple" : "",
|
|
3181
3177
|
defaultActiveFirstOption: !a.multiple,
|
|
3182
|
-
"filter-option":
|
|
3178
|
+
"filter-option": y,
|
|
3183
3179
|
options: c.value,
|
|
3184
3180
|
size: w(i),
|
|
3185
3181
|
onChange: p,
|
|
@@ -3213,38 +3209,38 @@ const Ot = /* @__PURE__ */ wl(Zi), Qi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3213
3209
|
},
|
|
3214
3210
|
emits: ["update:value", "change"],
|
|
3215
3211
|
setup(e, { expose: n, emit: t }) {
|
|
3216
|
-
const a = e, l = le(
|
|
3217
|
-
const T = await
|
|
3212
|
+
const a = e, l = le(ve), r = le(A.userKeyName), i = l?.application || "", o = l?.ctxPath || "", s = qe(l?.size), v = "请输入" + a.title + "搜索", c = a.fieldNames.label, d = a.fieldNames.value, g = V([]), y = V([]), x = async () => {
|
|
3213
|
+
const T = await Sl(
|
|
3218
3214
|
ne(o, a.requestUrl),
|
|
3219
3215
|
a.requestParams,
|
|
3220
3216
|
i,
|
|
3221
3217
|
"CASCADER_" + a.cacheKey,
|
|
3222
|
-
|
|
3218
|
+
r()
|
|
3223
3219
|
);
|
|
3224
|
-
|
|
3225
|
-
}, p = t, f = (T,
|
|
3226
|
-
u(
|
|
3227
|
-
},
|
|
3228
|
-
|
|
3220
|
+
y.value = T;
|
|
3221
|
+
}, p = t, f = (T, q) => {
|
|
3222
|
+
u(q) ? (p("update:value", T[T.length - 1]), p("change", q[q.length - 1])) : (p("update:value", null), p("change", null));
|
|
3223
|
+
}, S = (T, q) => q.some((R) => R[c].indexOf(T) > -1), m = () => y.value.filter((q) => q[d] === g.value[g.value.length - 1])[c], h = () => g.value, O = (T) => {
|
|
3224
|
+
g.value = T, p("update:value", T);
|
|
3229
3225
|
}, b = () => {
|
|
3230
|
-
|
|
3226
|
+
g.value = null, p("update:value", null), p("change", null);
|
|
3231
3227
|
};
|
|
3232
|
-
return
|
|
3228
|
+
return ie(() => {
|
|
3233
3229
|
x();
|
|
3234
3230
|
}), n({
|
|
3235
3231
|
getName: m,
|
|
3236
|
-
getValue:
|
|
3237
|
-
setValue:
|
|
3232
|
+
getValue: h,
|
|
3233
|
+
setValue: O,
|
|
3238
3234
|
resetValue: b
|
|
3239
|
-
}), (T,
|
|
3235
|
+
}), (T, q) => {
|
|
3240
3236
|
const R = F("a-cascader");
|
|
3241
3237
|
return C(), Y("div", fs, [
|
|
3242
3238
|
D(R, {
|
|
3243
|
-
value:
|
|
3244
|
-
"onUpdate:value":
|
|
3245
|
-
options:
|
|
3239
|
+
value: g.value,
|
|
3240
|
+
"onUpdate:value": q[0] || (q[0] = (L) => g.value = L),
|
|
3241
|
+
options: y.value,
|
|
3246
3242
|
fieldNames: a.fieldNames,
|
|
3247
|
-
"show-search": { filter:
|
|
3243
|
+
"show-search": { filter: S },
|
|
3248
3244
|
disabled: a.disabled,
|
|
3249
3245
|
clearable: a.clearable,
|
|
3250
3246
|
changeOnSelect: a.changeOnSelect,
|
|
@@ -3320,9 +3316,9 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3320
3316
|
__name: "AntdModal",
|
|
3321
3317
|
emits: ["cancel", "submit"],
|
|
3322
3318
|
setup(e, { emit: n }) {
|
|
3323
|
-
Fl((
|
|
3319
|
+
Fl((L) => ({
|
|
3324
3320
|
"761c0466": f.value,
|
|
3325
|
-
"1ad0f4ad":
|
|
3321
|
+
"1ad0f4ad": S.value,
|
|
3326
3322
|
dfcbabf2: 500 + m()
|
|
3327
3323
|
}));
|
|
3328
3324
|
const t = ee({
|
|
@@ -3347,18 +3343,18 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3347
3343
|
count: [],
|
|
3348
3344
|
positions: {}
|
|
3349
3345
|
}));
|
|
3350
|
-
const l = window.__sagUbmpPcModalMinimizedStack, r = V("sag-vxe-page-dialog-default " + (t.mountainTop ? "" : "sag-dialog-wrap")), i = (
|
|
3346
|
+
const l = window.__sagUbmpPcModalMinimizedStack, r = V("sag-vxe-page-dialog-default " + (t.mountainTop ? "" : "sag-dialog-wrap")), i = (L) => t.mountainTop ? document.body : A.targetModal.getDialogContainer != null && typeof A.targetModal.getDialogContainer == "function" ? A.targetModal.getDialogContainer(L) : L.parentNode, o = xt(() => t.componentVue && typeof t.componentUrl == "string" ? vs(t.componentUrl) : t.componentUrl), s = t.componentVue ? "" : t.componentUrl, v = t.mountainTop ? "calc(100vh - 88px)" : "calc(100vh - 188px)", c = n, d = () => {
|
|
3351
3347
|
a.value = !0, c("cancel");
|
|
3352
|
-
},
|
|
3353
|
-
c("submit",
|
|
3354
|
-
},
|
|
3348
|
+
}, g = (L) => {
|
|
3349
|
+
c("submit", L);
|
|
3350
|
+
}, y = V(null), x = V(!1), p = ee({
|
|
3355
3351
|
width: t.maximize ? "100%" : t.width,
|
|
3356
3352
|
height: t.maximize ? v : t.height,
|
|
3357
3353
|
minIcon: "vxe-icon-minus",
|
|
3358
3354
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3359
|
-
}), f = xt(() => "20px"),
|
|
3360
|
-
const
|
|
3361
|
-
if (!u(
|
|
3355
|
+
}), f = xt(() => "20px"), S = xt(() => (l.positions[t.instanceId] ?? 0) * 100 + 20 + "px"), m = () => l.positions[t.instanceId] ?? 0, h = () => {
|
|
3356
|
+
const L = l.positions[t.instanceId];
|
|
3357
|
+
if (!u(L) || L === -1) {
|
|
3362
3358
|
let H = -1;
|
|
3363
3359
|
for (let W = 0; W <= 4; W++)
|
|
3364
3360
|
if (!l.count.includes(W)) {
|
|
@@ -3366,38 +3362,38 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3366
3362
|
break;
|
|
3367
3363
|
}
|
|
3368
3364
|
if (H === -1) {
|
|
3369
|
-
|
|
3365
|
+
Se("最多同时隐藏5个窗口");
|
|
3370
3366
|
return;
|
|
3371
3367
|
}
|
|
3372
3368
|
l.positions[t.instanceId] = H;
|
|
3373
3369
|
}
|
|
3374
3370
|
x.value = !0, a.value = !1, t.visible = !1;
|
|
3375
|
-
},
|
|
3371
|
+
}, O = () => {
|
|
3376
3372
|
x.value = !1, t.visible = !0;
|
|
3377
|
-
const
|
|
3378
|
-
let H = l.count.findIndex((W) => W ===
|
|
3373
|
+
const L = l.positions;
|
|
3374
|
+
let H = l.count.findIndex((W) => W === L[t.instanceId]);
|
|
3379
3375
|
H !== -1 && l.count.splice(H, 1), delete l.positions[t.instanceId];
|
|
3380
3376
|
}, b = () => {
|
|
3381
|
-
let
|
|
3382
|
-
|
|
3383
|
-
}, T = "vue_iframe_" + Math.round(Math.random() * 1e8),
|
|
3384
|
-
console.log("iframe加载完毕", T),
|
|
3385
|
-
console.log("iframe关闭触发",
|
|
3377
|
+
let L = !y.value.fullScreen;
|
|
3378
|
+
L ? (p.maxZoomIcon = "vxe-icon-maximize", p.width = "100%", p.height = v) : (p.maxZoomIcon = "vxe-icon-square", p.width = t.width, p.height = t.height), y.value.fullScreen = L;
|
|
3379
|
+
}, T = "vue_iframe_" + Math.round(Math.random() * 1e8), q = V(), R = () => {
|
|
3380
|
+
console.log("iframe加载完毕", T), q.value.contentWindow.addEventListener("closeSagDialogModal", function(L) {
|
|
3381
|
+
console.log("iframe关闭触发", L), d();
|
|
3386
3382
|
});
|
|
3387
3383
|
};
|
|
3388
|
-
return
|
|
3389
|
-
re("SagVxeDialog弹出参数", t), t.maximize && (
|
|
3384
|
+
return ie(() => {
|
|
3385
|
+
re("SagVxeDialog弹出参数", t), t.maximize && (y.value.fullScreen = !0);
|
|
3390
3386
|
}), Hl(() => {
|
|
3391
3387
|
if (l && l.count.length > 0) {
|
|
3392
|
-
let
|
|
3393
|
-
|
|
3388
|
+
let L = l.count.findIndex((H) => H === l.positions[t.instanceId]);
|
|
3389
|
+
L !== -1 && l.count.splice(L, 1);
|
|
3394
3390
|
}
|
|
3395
|
-
}), (
|
|
3396
|
-
const W = F("vxe-button"),
|
|
3391
|
+
}), (L, H) => {
|
|
3392
|
+
const W = F("vxe-button"), Oe = F("a-modal");
|
|
3397
3393
|
return C(), Y("div", bs, [
|
|
3398
3394
|
$t(Q("div", {
|
|
3399
3395
|
class: "sag-ubmp-pc-modal-minimized-bar",
|
|
3400
|
-
onClick:
|
|
3396
|
+
onClick: O
|
|
3401
3397
|
}, [
|
|
3402
3398
|
Q("span", ys, ae(t.title + (w(u)(t.instanceValue) ? "【" + t.instanceValue + "】" : "")), 1),
|
|
3403
3399
|
D(W, {
|
|
@@ -3405,17 +3401,17 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3405
3401
|
icon: "vxe-icon-square",
|
|
3406
3402
|
size: "small"
|
|
3407
3403
|
}, {
|
|
3408
|
-
default:
|
|
3409
|
-
|
|
3404
|
+
default: I(() => H[0] || (H[0] = [
|
|
3405
|
+
ce("还原")
|
|
3410
3406
|
])),
|
|
3411
3407
|
_: 1
|
|
3412
3408
|
})
|
|
3413
3409
|
], 512), [
|
|
3414
|
-
[
|
|
3410
|
+
[jt, x.value]
|
|
3415
3411
|
]),
|
|
3416
|
-
D(
|
|
3412
|
+
D(Oe, {
|
|
3417
3413
|
ref_key: "gridModal",
|
|
3418
|
-
ref:
|
|
3414
|
+
ref: y,
|
|
3419
3415
|
open: t.visible,
|
|
3420
3416
|
"get-container": i,
|
|
3421
3417
|
width: p.width,
|
|
@@ -3433,14 +3429,14 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3433
3429
|
destroyOnClose: a.value,
|
|
3434
3430
|
centered: ""
|
|
3435
3431
|
}, {
|
|
3436
|
-
title:
|
|
3432
|
+
title: I(() => [
|
|
3437
3433
|
Q("span", Ss, ae(t.title), 1),
|
|
3438
3434
|
Q("span", Os, [
|
|
3439
|
-
w(u)(t.instanceId) && t.componentVue ? (C(),
|
|
3435
|
+
w(u)(t.instanceId) && t.componentVue ? (C(), z(W, {
|
|
3440
3436
|
key: 0,
|
|
3441
3437
|
mode: "text",
|
|
3442
3438
|
icon: p.minIcon,
|
|
3443
|
-
onClick:
|
|
3439
|
+
onClick: h,
|
|
3444
3440
|
title: "缩小"
|
|
3445
3441
|
}, null, 8, ["icon"])) : N("", !0),
|
|
3446
3442
|
D(W, {
|
|
@@ -3451,15 +3447,15 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3451
3447
|
}, null, 8, ["icon"])
|
|
3452
3448
|
])
|
|
3453
3449
|
]),
|
|
3454
|
-
default:
|
|
3455
|
-
t.componentVue ? (C(),
|
|
3450
|
+
default: I(() => [
|
|
3451
|
+
t.componentVue ? (C(), z(Yl(o.value), te({ key: 0 }, t.componentParams, {
|
|
3456
3452
|
onCancel: d,
|
|
3457
|
-
onSubmit:
|
|
3453
|
+
onSubmit: g
|
|
3458
3454
|
}), null, 16)) : N("", !0),
|
|
3459
3455
|
t.componentVue ? N("", !0) : (C(), Y("iframe", {
|
|
3460
3456
|
key: 1,
|
|
3461
3457
|
ref_key: "iframeRef",
|
|
3462
|
-
ref:
|
|
3458
|
+
ref: q,
|
|
3463
3459
|
id: T,
|
|
3464
3460
|
src: w(s),
|
|
3465
3461
|
onLoad: R,
|
|
@@ -3484,10 +3480,10 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3484
3480
|
},
|
|
3485
3481
|
emits: ["update:value"],
|
|
3486
3482
|
setup(e, { expose: n, emit: t }) {
|
|
3487
|
-
const a = e, l = le(
|
|
3488
|
-
c(
|
|
3489
|
-
}, v = () => r.value, c = (
|
|
3490
|
-
r.value =
|
|
3483
|
+
const a = e, l = le(ve), r = V(null), i = E(a.placeholder, "请输入" + a.title), o = t, s = (g) => {
|
|
3484
|
+
c(g.value);
|
|
3485
|
+
}, v = () => r.value, c = (g) => {
|
|
3486
|
+
r.value = g, o("update:value", r.value);
|
|
3491
3487
|
};
|
|
3492
3488
|
return n({
|
|
3493
3489
|
getValue: v,
|
|
@@ -3495,11 +3491,11 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3495
3491
|
resetValue: () => {
|
|
3496
3492
|
c(a.defaultValue || null);
|
|
3497
3493
|
}
|
|
3498
|
-
}),
|
|
3494
|
+
}), ie(() => {
|
|
3499
3495
|
o("update:value", v());
|
|
3500
|
-
}), (
|
|
3496
|
+
}), (g, y) => {
|
|
3501
3497
|
const x = F("vxe-input", !0);
|
|
3502
|
-
return C(),
|
|
3498
|
+
return C(), z(x, {
|
|
3503
3499
|
"model-value": r.value,
|
|
3504
3500
|
placeholder: w(i),
|
|
3505
3501
|
disabled: a.disabled,
|
|
@@ -3529,7 +3525,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3529
3525
|
},
|
|
3530
3526
|
emits: ["update:value"],
|
|
3531
3527
|
setup(e, { expose: n, emit: t }) {
|
|
3532
|
-
const a = e, l = le(
|
|
3528
|
+
const a = e, l = le(ve), r = le(A.userKeyName), i = l?.ctxPath || "", o = l?.application || "", s = l?.requestDictUrl || "", v = "请输入" + a.title + "搜索", c = V(""), d = V(""), g = V([]), y = t, x = ee({
|
|
3533
3529
|
multiple: a.multiple,
|
|
3534
3530
|
filterable: a.filterable,
|
|
3535
3531
|
clearable: a.clearable,
|
|
@@ -3542,32 +3538,28 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3542
3538
|
}
|
|
3543
3539
|
}), p = async () => {
|
|
3544
3540
|
let b = a.request.requestUrl;
|
|
3545
|
-
|
|
3546
|
-
const T = await r();
|
|
3547
|
-
return b = ne(i, b), await Sn(o, b, a.request, T);
|
|
3548
|
-
} else
|
|
3549
|
-
return re("下拉框插槽未获取到请求地址"), [];
|
|
3541
|
+
return !b && o && (b = s), b ? (b = ne(i, b), await Sn(o, b, a.request, r())) : (re("下拉框插槽未获取到请求地址"), []);
|
|
3550
3542
|
}, f = ({ value: b }) => {
|
|
3551
|
-
|
|
3552
|
-
},
|
|
3553
|
-
c.value = b,
|
|
3554
|
-
let T =
|
|
3543
|
+
y("update:value", b);
|
|
3544
|
+
}, S = () => d.value, m = () => c.value, h = (b) => {
|
|
3545
|
+
c.value = b, y("update:value", c.value);
|
|
3546
|
+
let T = g.value.filter((q) => q.value === c.value);
|
|
3555
3547
|
T.length === 1 && (d.value = T[0].label);
|
|
3556
3548
|
};
|
|
3557
3549
|
return n({
|
|
3558
|
-
getName:
|
|
3550
|
+
getName: S,
|
|
3559
3551
|
getValue: m,
|
|
3560
|
-
setValue:
|
|
3552
|
+
setValue: h,
|
|
3561
3553
|
resetValue: () => {
|
|
3562
|
-
|
|
3554
|
+
h(a.defaultValue);
|
|
3563
3555
|
}
|
|
3564
|
-
}),
|
|
3556
|
+
}), ie(() => {
|
|
3565
3557
|
p().then((b) => {
|
|
3566
|
-
!a.multiple && a.selectAll && (b = [{ label: "--全部--", value: "" }].concat(b)),
|
|
3558
|
+
!a.multiple && a.selectAll && (b = [{ label: "--全部--", value: "" }].concat(b)), g.value = b, x.options = b;
|
|
3567
3559
|
});
|
|
3568
3560
|
}), (b, T) => {
|
|
3569
|
-
const
|
|
3570
|
-
return C(), q
|
|
3561
|
+
const q = F("vxe-select", !0);
|
|
3562
|
+
return C(), z(q, te({
|
|
3571
3563
|
modelValue: c.value,
|
|
3572
3564
|
"onUpdate:modelValue": T[0] || (T[0] = (R) => c.value = R)
|
|
3573
3565
|
}, x, {
|
|
@@ -3596,7 +3588,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3596
3588
|
},
|
|
3597
3589
|
emits: ["update:value"],
|
|
3598
3590
|
setup(e, { expose: n, emit: t }) {
|
|
3599
|
-
const a = e, l = le(
|
|
3591
|
+
const a = e, l = le(ve), r = l?.ctxPath || "", i = "请输入" + a.title + "搜索", o = V(""), s = V(""), v = V([]), c = t, d = ee({
|
|
3600
3592
|
clearable: !0,
|
|
3601
3593
|
filterable: !0,
|
|
3602
3594
|
disabled: a.disabled,
|
|
@@ -3607,28 +3599,28 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3607
3599
|
remoteConfig: {
|
|
3608
3600
|
autoLoad: !1,
|
|
3609
3601
|
async queryMethod({ searchValue: m }) {
|
|
3610
|
-
const
|
|
3611
|
-
d.options =
|
|
3602
|
+
const h = await g(m);
|
|
3603
|
+
d.options = h, v.value = h;
|
|
3612
3604
|
}
|
|
3613
3605
|
}
|
|
3614
|
-
}),
|
|
3606
|
+
}), g = async (m) => {
|
|
3615
3607
|
if (v.value = [], m) {
|
|
3616
|
-
const
|
|
3608
|
+
const h = {
|
|
3617
3609
|
searchValue: Te(m)
|
|
3618
3610
|
};
|
|
3619
3611
|
return await Re(ne(r, a.requestUrl), {
|
|
3620
3612
|
...a.requestParams,
|
|
3621
|
-
...
|
|
3613
|
+
...h
|
|
3622
3614
|
});
|
|
3623
3615
|
} else
|
|
3624
3616
|
return [];
|
|
3625
|
-
},
|
|
3617
|
+
}, y = ({ value: m }) => {
|
|
3626
3618
|
c("update:value", m);
|
|
3627
3619
|
}, x = () => s.value, p = () => o.value, f = (m) => {
|
|
3628
3620
|
o.value = m;
|
|
3629
|
-
let
|
|
3630
|
-
|
|
3631
|
-
v.value =
|
|
3621
|
+
let h = v.value.filter((O) => O.value === o.value);
|
|
3622
|
+
h.length === 1 ? s.value = h[0].label : g(m).then((O) => {
|
|
3623
|
+
v.value = O;
|
|
3632
3624
|
}), c("update:value", o.value);
|
|
3633
3625
|
};
|
|
3634
3626
|
return n({
|
|
@@ -3638,14 +3630,14 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3638
3630
|
resetValue: () => {
|
|
3639
3631
|
f(a.defaultValue);
|
|
3640
3632
|
}
|
|
3641
|
-
}), (m,
|
|
3642
|
-
const
|
|
3643
|
-
return C(),
|
|
3633
|
+
}), (m, h) => {
|
|
3634
|
+
const O = F("vxe-select");
|
|
3635
|
+
return C(), z(O, te({
|
|
3644
3636
|
modelValue: o.value,
|
|
3645
|
-
"onUpdate:modelValue":
|
|
3637
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => o.value = b)
|
|
3646
3638
|
}, d, {
|
|
3647
3639
|
size: w(l)?.size,
|
|
3648
|
-
onChange:
|
|
3640
|
+
onChange: y,
|
|
3649
3641
|
style: { width: "100%" }
|
|
3650
3642
|
}), null, 16, ["modelValue", "size"]);
|
|
3651
3643
|
};
|
|
@@ -3669,22 +3661,22 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3669
3661
|
},
|
|
3670
3662
|
emits: ["update:value"],
|
|
3671
3663
|
setup(e, { expose: n, emit: t }) {
|
|
3672
|
-
const a = e, l = le(
|
|
3664
|
+
const a = e, l = le(ve), r = l?.ctxPath || "", i = "请输入" + a.title + "搜索", o = V(""), s = V(""), v = V([]), c = t, d = ee({
|
|
3673
3665
|
filterable: !0,
|
|
3674
3666
|
clearable: !0,
|
|
3675
3667
|
disabled: a.disabled,
|
|
3676
3668
|
transfer: a.transfer,
|
|
3677
3669
|
placeholder: i,
|
|
3678
3670
|
options: [],
|
|
3679
|
-
filterMethod({ searchValue: m, option:
|
|
3680
|
-
return
|
|
3671
|
+
filterMethod({ searchValue: m, option: h }) {
|
|
3672
|
+
return h.label.toLowerCase().indexOf(Te(m).toLowerCase()) >= 0;
|
|
3681
3673
|
}
|
|
3682
|
-
}),
|
|
3674
|
+
}), g = async () => await Re(ne(r, a.requestUrl), a.requestParams), y = ({ value: m }) => {
|
|
3683
3675
|
c("update:value", m);
|
|
3684
3676
|
}, x = () => s.value, p = () => o.value, f = (m) => {
|
|
3685
3677
|
o.value = m, c("update:value", o.value);
|
|
3686
|
-
let
|
|
3687
|
-
|
|
3678
|
+
let h = v.value.filter((O) => O.value === o.value);
|
|
3679
|
+
h.length === 1 && (s.value = h[0].label);
|
|
3688
3680
|
};
|
|
3689
3681
|
return n({
|
|
3690
3682
|
getName: x,
|
|
@@ -3693,18 +3685,18 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3693
3685
|
resetValue: () => {
|
|
3694
3686
|
f(a.defaultValue);
|
|
3695
3687
|
}
|
|
3696
|
-
}),
|
|
3697
|
-
|
|
3688
|
+
}), ie(() => {
|
|
3689
|
+
g().then((m) => {
|
|
3698
3690
|
v.value = m, d.options = m;
|
|
3699
3691
|
});
|
|
3700
|
-
}), (m,
|
|
3701
|
-
const
|
|
3702
|
-
return C(),
|
|
3692
|
+
}), (m, h) => {
|
|
3693
|
+
const O = F("vxe-select");
|
|
3694
|
+
return C(), z(O, te({
|
|
3703
3695
|
modelValue: o.value,
|
|
3704
|
-
"onUpdate:modelValue":
|
|
3696
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => o.value = b)
|
|
3705
3697
|
}, d, {
|
|
3706
3698
|
size: w(l)?.size,
|
|
3707
|
-
onChange:
|
|
3699
|
+
onChange: y,
|
|
3708
3700
|
style: { width: "100%" }
|
|
3709
3701
|
}), null, 16, ["modelValue", "size"]);
|
|
3710
3702
|
};
|
|
@@ -3729,19 +3721,19 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3729
3721
|
width: u(c.exportWidth) ? c.exportWidth : c.title.length * 2 + 4
|
|
3730
3722
|
});
|
|
3731
3723
|
}), o.columns = s, o.addRows(r.data), o.eachRow(function(c, d) {
|
|
3732
|
-
c.eachCell({ includeEmpty: !0 }, function(
|
|
3733
|
-
u(
|
|
3734
|
-
`) ?
|
|
3735
|
-
`),
|
|
3724
|
+
c.eachCell({ includeEmpty: !0 }, function(g, y) {
|
|
3725
|
+
u(g.value) && (g.value.toString().includes(`
|
|
3726
|
+
`) ? g.alignment = { wrapText: !0 } : g.value.toString().includes("\\n") && (g.value = g.value.toString().replaceAll("\\n", `
|
|
3727
|
+
`), g.alignment = { wrapText: !0 }));
|
|
3736
3728
|
});
|
|
3737
3729
|
}), u(r.mergeCells)) {
|
|
3738
3730
|
let c = {};
|
|
3739
3731
|
r.mergeCells.forEach((d) => {
|
|
3740
|
-
let
|
|
3741
|
-
const
|
|
3742
|
-
if (u(c[
|
|
3732
|
+
let g = d.col - v;
|
|
3733
|
+
const y = l[g];
|
|
3734
|
+
if (u(c[y]) ? c[y] = c[y] + d.rowspan : c[y] = d.rowspan + 1, d.col >= v && d.rowspan != 1) {
|
|
3743
3735
|
let x = d.row + 2;
|
|
3744
|
-
const p = "'" +
|
|
3736
|
+
const p = "'" + y + x + ":" + y + c[y] + "'";
|
|
3745
3737
|
o.mergeCells(p);
|
|
3746
3738
|
}
|
|
3747
3739
|
});
|
|
@@ -3810,20 +3802,20 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3810
3802
|
};
|
|
3811
3803
|
return (r, i) => {
|
|
3812
3804
|
const o = F("vxe-button");
|
|
3813
|
-
return C(),
|
|
3805
|
+
return C(), z(o, {
|
|
3814
3806
|
size: "small",
|
|
3815
3807
|
circle: !0,
|
|
3816
3808
|
onClick: i[0] || (i[0] = (s) => a()),
|
|
3817
3809
|
title: "导出"
|
|
3818
3810
|
}, {
|
|
3819
|
-
default:
|
|
3811
|
+
default: I(() => i[1] || (i[1] = [
|
|
3820
3812
|
Q("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
3821
3813
|
])),
|
|
3822
3814
|
_: 1
|
|
3823
3815
|
});
|
|
3824
3816
|
};
|
|
3825
3817
|
}
|
|
3826
|
-
}), Ts = { class: "sag-vxe-page-search-wrapper" }, Ms = { class: "sag-vxe-page-table-wrapper" }, Vs = ["onClick"], $s = { style: { "font-weight": "bold" } },
|
|
3818
|
+
}), Ts = { class: "sag-vxe-page-search-wrapper" }, Ms = { class: "sag-vxe-page-table-wrapper" }, Vs = ["onClick"], $s = { style: { "font-weight": "bold" } }, js = { key: 0 }, zs = ["onClick"], qs = { key: 1 }, Ns = { style: { display: "inline" } }, Ds = { key: 0 }, Bs = ["onClick"], Ls = ["onClick"], Is = { key: 0 }, Rs = { key: 1 }, Es = { key: 2 }, ja = /* @__PURE__ */ X({
|
|
3827
3819
|
name: "SagVxePage",
|
|
3828
3820
|
inheritAttrs: !1,
|
|
3829
3821
|
__name: "SagVxePage",
|
|
@@ -3842,128 +3834,128 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3842
3834
|
maskClosable: A.targetModal.maskClosable,
|
|
3843
3835
|
mountainTop: A.targetModal.mountainTop
|
|
3844
3836
|
}), l = V([]), r = Xa(), i = le(A.userKeyName), o = ee({
|
|
3845
|
-
application:
|
|
3846
|
-
ctxPath:
|
|
3847
|
-
size:
|
|
3848
|
-
requestDictUrl:
|
|
3849
|
-
templateType:
|
|
3850
|
-
templateTitle:
|
|
3851
|
-
onMountedModule:
|
|
3837
|
+
application: $.toString(r.application, A.application),
|
|
3838
|
+
ctxPath: $.toString(r.ctxPath, A.ctxPath),
|
|
3839
|
+
size: $.toString(r.size, A.size),
|
|
3840
|
+
requestDictUrl: $.toString(r.requestDictUrl, A.requestDictUrl),
|
|
3841
|
+
templateType: $.toString(r.templateType, null),
|
|
3842
|
+
templateTitle: $.toString(r.templateTitle, null),
|
|
3843
|
+
onMountedModule: $.toString(r.onMountedModule, null),
|
|
3852
3844
|
//页面加载时触发
|
|
3853
|
-
onLoadBeforeModule:
|
|
3845
|
+
onLoadBeforeModule: $.toString(r.onLoadBeforeModule, null),
|
|
3854
3846
|
//查询前触发
|
|
3855
|
-
onLoadAfterModule:
|
|
3847
|
+
onLoadAfterModule: $.toString(r.onLoadAfterModule, null),
|
|
3856
3848
|
//查询后触发
|
|
3857
|
-
onButtonClickModule:
|
|
3849
|
+
onButtonClickModule: $.toString(r.onButtonClickModule, null)
|
|
3858
3850
|
//按钮自定义事件
|
|
3859
3851
|
}), s = ee({
|
|
3860
|
-
requestData:
|
|
3861
|
-
requestDownload:
|
|
3862
|
-
requestImport:
|
|
3852
|
+
requestData: $.toString(r?.templateRequest?.requestData, null),
|
|
3853
|
+
requestDownload: $.toString(r?.templateRequest?.requestDownload, null),
|
|
3854
|
+
requestImport: $.toString(r?.templateRequest?.requestImport, null)
|
|
3863
3855
|
}), v = ee({
|
|
3864
|
-
title:
|
|
3865
|
-
width:
|
|
3866
|
-
height:
|
|
3867
|
-
mountainTop:
|
|
3868
|
-
componentVue:
|
|
3869
|
-
maskClosable:
|
|
3856
|
+
title: $.toString(r?.targetModal?.title, A.targetModal.title),
|
|
3857
|
+
width: $.toString(r?.targetModal?.width, A.targetModal.width),
|
|
3858
|
+
height: $.toString(r?.targetModal?.height, A.targetModal.height),
|
|
3859
|
+
mountainTop: $.toString(r?.targetModal?.mountainTop, A.targetModal.mountainTop),
|
|
3860
|
+
componentVue: $.toString(r?.targetModal?.componentVue, A.targetModal.componentVue),
|
|
3861
|
+
maskClosable: $.toString(r?.targetModal?.maskClosable, A.targetModal.maskClosable)
|
|
3870
3862
|
}), c = ee({
|
|
3871
|
-
vxeSlot:
|
|
3872
|
-
storage:
|
|
3863
|
+
vxeSlot: $.toString(r?.templateForm?.vxeSlot, A.templateForm.vxeSlot),
|
|
3864
|
+
storage: $.toString(r?.templateForm?.storage, A.templateForm.storage),
|
|
3873
3865
|
formProps: {
|
|
3874
|
-
vertical:
|
|
3866
|
+
vertical: $.toString(
|
|
3875
3867
|
r?.templateForm?.formProps?.vertical,
|
|
3876
3868
|
A.templateForm.formProps.vertical
|
|
3877
3869
|
),
|
|
3878
|
-
titleColon:
|
|
3870
|
+
titleColon: $.toString(
|
|
3879
3871
|
r?.templateForm?.formProps?.titleColon,
|
|
3880
3872
|
A.templateForm.formProps.titleColon
|
|
3881
3873
|
),
|
|
3882
|
-
titleWidth:
|
|
3874
|
+
titleWidth: $.toString(
|
|
3883
3875
|
r?.templateForm?.formProps?.titleWidth,
|
|
3884
3876
|
A.templateForm.formProps.titleWidth
|
|
3885
3877
|
),
|
|
3886
|
-
titleAlign:
|
|
3878
|
+
titleAlign: $.toString(
|
|
3887
3879
|
r?.templateForm?.formProps?.titleAlign,
|
|
3888
3880
|
A.templateForm.formProps.titleAlign
|
|
3889
3881
|
),
|
|
3890
|
-
buttonAlign:
|
|
3882
|
+
buttonAlign: $.toString(
|
|
3891
3883
|
r?.templateForm?.formProps?.buttonAlign,
|
|
3892
3884
|
A.templateForm.formProps.buttonAlign
|
|
3893
3885
|
),
|
|
3894
|
-
foldingLength:
|
|
3886
|
+
foldingLength: $.toString(
|
|
3895
3887
|
r?.templateForm?.formProps?.foldingLength,
|
|
3896
3888
|
A.templateForm.formProps.foldingLength
|
|
3897
3889
|
)
|
|
3898
3890
|
},
|
|
3899
|
-
formItems:
|
|
3900
|
-
formRules:
|
|
3891
|
+
formItems: $.toString(r?.templateForm?.formItems, []),
|
|
3892
|
+
formRules: $.toString(r?.templateForm?.formRules, {})
|
|
3901
3893
|
}), d = ee({
|
|
3902
|
-
rowType:
|
|
3903
|
-
editConfig:
|
|
3904
|
-
showFooter:
|
|
3905
|
-
showButtonLink:
|
|
3906
|
-
showOverflow:
|
|
3894
|
+
rowType: $.toString(r?.templateTable?.rowType, null),
|
|
3895
|
+
editConfig: $.toString(r?.templateTable?.editConfig, !1),
|
|
3896
|
+
showFooter: $.toString(r?.templateTable?.showFooter, !1),
|
|
3897
|
+
showButtonLink: $.toString(r?.templateTable?.showButtonLink, A.templateTable.showButtonLink),
|
|
3898
|
+
showOverflow: $.toString(r?.templateTable?.showOverflow, A.templateTable.showOverflow),
|
|
3907
3899
|
tableColumns: r?.templateTable?.tableColumns,
|
|
3908
|
-
tableColumnsExtra:
|
|
3909
|
-
clientScale:
|
|
3910
|
-
minHeight:
|
|
3911
|
-
maxHeight:
|
|
3912
|
-
pageSizes:
|
|
3913
|
-
layouts:
|
|
3914
|
-
footerMethod:
|
|
3915
|
-
}),
|
|
3916
|
-
mergeKey:
|
|
3917
|
-
seqKey:
|
|
3918
|
-
isMerge:
|
|
3919
|
-
isFooter:
|
|
3920
|
-
fields:
|
|
3921
|
-
backgroundColor:
|
|
3900
|
+
tableColumnsExtra: $.toString(r?.templateTable?.tableColumnsExtra, null),
|
|
3901
|
+
clientScale: $.toString(r?.templateTable?.clientScale, A.templateTable.clientScale),
|
|
3902
|
+
minHeight: $.toString(r?.templateTable?.minHeight, A.templateTable.minHeight),
|
|
3903
|
+
maxHeight: $.toString(r?.templateTable?.maxHeight, A.templateTable.maxHeight),
|
|
3904
|
+
pageSizes: $.toString(r?.templateTable?.pageSizes, []),
|
|
3905
|
+
layouts: $.toString(r?.templateTable?.layouts, null),
|
|
3906
|
+
footerMethod: $.toString(r?.templateTable?.footerMethod, null)
|
|
3907
|
+
}), g = ee({
|
|
3908
|
+
mergeKey: $.toString(r?.templateTable?.tableColumnMerge?.mergeKey, null),
|
|
3909
|
+
seqKey: $.toString(r?.templateTable?.tableColumnMerge?.seqKey, null),
|
|
3910
|
+
isMerge: $.toString(r?.templateTable?.tableColumnMerge?.isMerge, !1),
|
|
3911
|
+
isFooter: $.toString(r?.templateTable?.tableColumnMerge?.isFooter, !1),
|
|
3912
|
+
fields: $.toString(r?.templateTable?.tableColumnMerge?.fields, []),
|
|
3913
|
+
backgroundColor: $.toString(
|
|
3922
3914
|
r?.templateTable?.tableColumnMerge?.backgroundColor,
|
|
3923
3915
|
A?.templateTable?.tableColumnMerge?.backgroundColor
|
|
3924
3916
|
)
|
|
3925
|
-
}),
|
|
3926
|
-
formButtons:
|
|
3927
|
-
tableButtons:
|
|
3928
|
-
tableMoreButtons:
|
|
3917
|
+
}), y = ee({
|
|
3918
|
+
formButtons: $.toString(r?.templateTable?.tableButtons?.formButtons, []),
|
|
3919
|
+
tableButtons: $.toString(r?.templateTable?.tableButtons?.tableButtons, []),
|
|
3920
|
+
tableMoreButtons: $.toString(r?.templateTable?.tableButtons?.tableMoreButtons, [])
|
|
3929
3921
|
}), x = ee({
|
|
3930
|
-
className:
|
|
3922
|
+
className: $.toString(
|
|
3931
3923
|
r?.templateTable?.toolbarConfig?.className,
|
|
3932
3924
|
A.templateTable.toolbarConfig.className
|
|
3933
3925
|
),
|
|
3934
|
-
perfect:
|
|
3926
|
+
perfect: $.toString(
|
|
3935
3927
|
r?.templateTable?.toolbarConfig?.perfect,
|
|
3936
3928
|
A.templateTable.toolbarConfig.perfect
|
|
3937
3929
|
),
|
|
3938
|
-
print:
|
|
3930
|
+
print: $.toString(
|
|
3939
3931
|
r?.templateTable?.toolbarConfig?.print,
|
|
3940
3932
|
A.templateTable.toolbarConfig.print
|
|
3941
3933
|
),
|
|
3942
|
-
refresh:
|
|
3934
|
+
refresh: $.toString(
|
|
3943
3935
|
r?.templateTable?.toolbarConfig?.refresh,
|
|
3944
3936
|
A.templateTable.toolbarConfig.refresh
|
|
3945
3937
|
),
|
|
3946
|
-
custom:
|
|
3938
|
+
custom: $.toString(
|
|
3947
3939
|
r?.templateTable?.toolbarConfig?.custom,
|
|
3948
3940
|
A.templateTable.toolbarConfig.custom
|
|
3949
3941
|
),
|
|
3950
|
-
zoom:
|
|
3942
|
+
zoom: $.toString(r?.templateTable?.toolbarConfig?.zoom, A.templateTable.toolbarConfig.zoom),
|
|
3951
3943
|
slots: {
|
|
3952
|
-
buttons:
|
|
3944
|
+
buttons: $.toString(
|
|
3953
3945
|
r?.templateTable?.toolbarConfig?.slots?.buttons,
|
|
3954
3946
|
A.templateTable.toolbarConfig.slots.buttons
|
|
3955
3947
|
),
|
|
3956
|
-
tools:
|
|
3948
|
+
tools: $.toString(
|
|
3957
3949
|
r?.templateTable?.toolbarConfig?.slots?.tools,
|
|
3958
3950
|
A.templateTable.toolbarConfig.slots.tools
|
|
3959
3951
|
)
|
|
3960
3952
|
}
|
|
3961
3953
|
}), p = ee({
|
|
3962
|
-
pageSizePlacement:
|
|
3963
|
-
}), f = A.application + "_" + o.templateType,
|
|
3964
|
-
|
|
3965
|
-
const m = Object.keys(
|
|
3966
|
-
|
|
3954
|
+
pageSizePlacement: $.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3955
|
+
}), f = A.application + "_" + o.templateType, S = "sag_vxe_page_div_panel_" + f;
|
|
3956
|
+
zn(ve, o), zn(Qi, () => document.getElementById(w(S)));
|
|
3957
|
+
const m = Object.keys(Le()), h = m.filter((P) => P.startsWith("items_")), O = m.filter((P) => P.startsWith("cols_")), b = m.filter((P) => P.startsWith("tools_")), T = V(), q = V(!0), R = V(!1), L = V("none"), H = V(["1"]), W = V(0), Oe = qe(o.size), Ee = V(), G = ee({}), we = V([]), Ke = V(), wt = V([]), Xe = t, be = (P, _) => {
|
|
3958
|
+
we.value[_] = P;
|
|
3967
3959
|
}, Ne = async () => {
|
|
3968
3960
|
const P = T.value;
|
|
3969
3961
|
if (!R.value && P) {
|
|
@@ -3973,11 +3965,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3973
3965
|
}) : P.commitProxy("query");
|
|
3974
3966
|
}
|
|
3975
3967
|
}, _n = async () => {
|
|
3976
|
-
|
|
3977
|
-
const P = await i();
|
|
3978
|
-
Pa(o.application, o.templateType, {}, P);
|
|
3979
|
-
}
|
|
3980
|
-
Qe(wt.value[0].children, _e, G), Xe("resetValue");
|
|
3968
|
+
c.storage && Pa(o.application, o.templateType, {}, i()), Qe(wt.value[0].children, we, G), Xe("resetValue");
|
|
3981
3969
|
}, Pl = () => {
|
|
3982
3970
|
ft(() => {
|
|
3983
3971
|
Nn(Ee.value, K, d.clientScale);
|
|
@@ -4024,26 +4012,26 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4024
4012
|
ajax: {
|
|
4025
4013
|
// 接收 Promise 对象
|
|
4026
4014
|
query: async (P) => {
|
|
4027
|
-
const { page: _, sorts: B, filters: U, form: Z } = P,
|
|
4015
|
+
const { page: _, sorts: B, filters: U, form: Z } = P, fe = qt(_, B, U, Z, G, we);
|
|
4028
4016
|
if (c.storage) {
|
|
4029
|
-
const Pe =
|
|
4030
|
-
Pa(o.application, o.templateType,
|
|
4017
|
+
const Pe = xr(B, U, Z, G);
|
|
4018
|
+
Pa(o.application, o.templateType, Pe, i());
|
|
4031
4019
|
}
|
|
4032
|
-
return Cn(
|
|
4020
|
+
return Cn(fe, s.requestData, !1);
|
|
4033
4021
|
},
|
|
4034
4022
|
querySuccess: (P) => {
|
|
4035
|
-
const { page: _, sort: B, sorts: U, filters: Z, form:
|
|
4036
|
-
|
|
4023
|
+
const { page: _, sort: B, sorts: U, filters: Z, form: fe, response: Pe } = P;
|
|
4024
|
+
g?.isMerge && (K.mergeCells = Pn(Pe?.rows)), Xe("search", Pe, { $gridRef: T.value, gridOptions: K });
|
|
4037
4025
|
}
|
|
4038
4026
|
}
|
|
4039
4027
|
},
|
|
4040
4028
|
footerMethod: d.footerMethod
|
|
4041
4029
|
}), _t = V(!1), kl = () => {
|
|
4042
4030
|
pt("确定要强制显示数据内容吗?", () => {
|
|
4043
|
-
|
|
4031
|
+
g?.isMerge ? K.mergeCells = null : K.spanMethod = qn({}), K.virtualYConfig = { enabled: !0 }, _t.value = !0, Ne();
|
|
4044
4032
|
});
|
|
4045
4033
|
}, Cn = async (P, _, B) => {
|
|
4046
|
-
if (
|
|
4034
|
+
if (L.value = "none", _t.value)
|
|
4047
4035
|
return _t.value = !1, K.params.data;
|
|
4048
4036
|
{
|
|
4049
4037
|
R.value = !0, o.onLoadBeforeModule && o.onLoadBeforeModule({
|
|
@@ -4061,19 +4049,19 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4061
4049
|
}, 1e3);
|
|
4062
4050
|
});
|
|
4063
4051
|
if (U.success) {
|
|
4064
|
-
if (K.params.dataSum = U.data?.dataSum,
|
|
4052
|
+
if (K.params.dataSum = U.data?.dataSum, g?.mergeKey) {
|
|
4065
4053
|
if (!B && U.data.rows.length > 800)
|
|
4066
|
-
return
|
|
4067
|
-
|
|
4054
|
+
return L.value = "more", K.params.data = xn(U.data), null;
|
|
4055
|
+
g?.isMerge || (K.virtualYConfig = { enabled: !1 });
|
|
4068
4056
|
}
|
|
4069
4057
|
return xn(U.data);
|
|
4070
4058
|
} else
|
|
4071
|
-
return
|
|
4059
|
+
return L.value = "error", null;
|
|
4072
4060
|
}
|
|
4073
4061
|
}, Al = (P) => {
|
|
4074
4062
|
if (d.rowType === "checkbox") {
|
|
4075
4063
|
re("checkboxChange", P);
|
|
4076
|
-
const _ =
|
|
4064
|
+
const _ = g?.mergeKey;
|
|
4077
4065
|
if (_) {
|
|
4078
4066
|
const B = T.value;
|
|
4079
4067
|
if (B) {
|
|
@@ -4086,7 +4074,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4086
4074
|
}, Tl = (P) => {
|
|
4087
4075
|
if (d.rowType === "radio") {
|
|
4088
4076
|
re("radioChange", P);
|
|
4089
|
-
const _ =
|
|
4077
|
+
const _ = g?.mergeKey;
|
|
4090
4078
|
if (_) {
|
|
4091
4079
|
const B = T.value;
|
|
4092
4080
|
if (B) {
|
|
@@ -4104,11 +4092,11 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4104
4092
|
}, Vl = () => {
|
|
4105
4093
|
K.params.currentRow = null;
|
|
4106
4094
|
}, xn = (P) => {
|
|
4107
|
-
const _ =
|
|
4095
|
+
const _ = g?.seqKey, B = g?.mergeKey;
|
|
4108
4096
|
if (B && _) {
|
|
4109
4097
|
let U = [""], Z = 0 + P.pageSize * (P.pageNo - 1);
|
|
4110
|
-
for (let
|
|
4111
|
-
U.includes(P.rows[
|
|
4098
|
+
for (let fe in P.rows)
|
|
4099
|
+
U.includes(P.rows[fe][B]) || (Z++, U.push(P.rows[fe][B])), P.rows[fe][_] = Z;
|
|
4112
4100
|
}
|
|
4113
4101
|
return o.onLoadAfterModule ? o.onLoadAfterModule({
|
|
4114
4102
|
$gridRef: T.value,
|
|
@@ -4116,21 +4104,21 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4116
4104
|
data: P
|
|
4117
4105
|
}) : P;
|
|
4118
4106
|
}, Pn = (P) => {
|
|
4119
|
-
const _ =
|
|
4120
|
-
if (_ &&
|
|
4107
|
+
const _ = g?.mergeKey;
|
|
4108
|
+
if (_ && g.isMerge) {
|
|
4121
4109
|
const B = T.value;
|
|
4122
|
-
let U = [], Z = {},
|
|
4123
|
-
for (let
|
|
4124
|
-
const
|
|
4125
|
-
let ke = P[
|
|
4126
|
-
u(
|
|
4110
|
+
let U = [], Z = {}, fe = {};
|
|
4111
|
+
for (let _e = 0; _e < P.length; _e++) {
|
|
4112
|
+
const se = P[_e], Be = P[_e - 1];
|
|
4113
|
+
let ke = P[_e + 1];
|
|
4114
|
+
u(fe[se[_]]) || (fe[se[_]] = _e + 0), u(Z[se[_]]) ? (u(ke) && ke[_] === se[_] || u(Be) && Be[_] === se[_]) && (Z[se[_]] = Z[se[_]] + 1) : Z[se[_]] = 1;
|
|
4127
4115
|
}
|
|
4128
|
-
let Pe =
|
|
4129
|
-
for (let
|
|
4130
|
-
let
|
|
4131
|
-
for (let ke in
|
|
4116
|
+
let Pe = g?.fields;
|
|
4117
|
+
for (let _e in Pe) {
|
|
4118
|
+
let se = B?.getColumnByField(Pe[_e]), Be = B?.getColumnIndex(se);
|
|
4119
|
+
for (let ke in fe)
|
|
4132
4120
|
U = U.concat([
|
|
4133
|
-
{ row:
|
|
4121
|
+
{ row: fe[ke], col: Be, rowspan: Z[ke], colspan: 1 }
|
|
4134
4122
|
]);
|
|
4135
4123
|
}
|
|
4136
4124
|
return U;
|
|
@@ -4145,18 +4133,18 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4145
4133
|
Ze(P.menu, P.row);
|
|
4146
4134
|
}
|
|
4147
4135
|
}), kn = ({ row: P }) => {
|
|
4148
|
-
const _ =
|
|
4136
|
+
const _ = g?.mergeKey;
|
|
4149
4137
|
if (P?.[_] === K.params.currentRow?.[_])
|
|
4150
4138
|
return {
|
|
4151
|
-
backgroundColor:
|
|
4139
|
+
backgroundColor: g?.backgroundColor
|
|
4152
4140
|
};
|
|
4153
|
-
},
|
|
4154
|
-
const P = document.getElementById(
|
|
4141
|
+
}, jl = () => {
|
|
4142
|
+
const P = document.getElementById(S);
|
|
4155
4143
|
if (P) {
|
|
4156
4144
|
const _ = P.getElementsByTagName("form");
|
|
4157
4145
|
_ && _.length > 0 && (_[0].submit = () => (a.visible = !1, Ne(), !1));
|
|
4158
4146
|
}
|
|
4159
|
-
}, { clickFormButton:
|
|
4147
|
+
}, { clickFormButton: zl, clickTableButton: Ze, clickHerf: An } = Ri({
|
|
4160
4148
|
gridRef: T,
|
|
4161
4149
|
targetModal: a,
|
|
4162
4150
|
modalList: l,
|
|
@@ -4171,10 +4159,10 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4171
4159
|
gridOptions: K,
|
|
4172
4160
|
loadData: Cn,
|
|
4173
4161
|
pageOptions: o,
|
|
4174
|
-
templateItemRefs:
|
|
4162
|
+
templateItemRefs: we,
|
|
4175
4163
|
doMergeCells: Pn,
|
|
4176
4164
|
pageTable: d,
|
|
4177
|
-
pageTableMerge:
|
|
4165
|
+
pageTableMerge: g,
|
|
4178
4166
|
pageRequest: s
|
|
4179
4167
|
}), Nl = async () => {
|
|
4180
4168
|
if (u(c.formItems)) {
|
|
@@ -4203,31 +4191,31 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4203
4191
|
trigger: "click",
|
|
4204
4192
|
mode: "row",
|
|
4205
4193
|
showStatus: !0
|
|
4206
|
-
}), u(
|
|
4194
|
+
}), u(g) && u(g.mergeKey) && (K.cellStyle = kn, K.params.mergeField = g.mergeKey, g.isMerge ? K.columnDragConfig.dragStartMethod = () => !1 : (K.virtualYConfig = { enabled: !1 }, K.spanMethod = qn(g))), q.value = !1;
|
|
4207
4195
|
}, Dl = (P, _) => P && P.length > 0 ? P && _ ? P.some((B) => Ue(_[B.buttonName]) && Ue(B.auth)) : !0 : !1;
|
|
4208
|
-
|
|
4196
|
+
ie(async () => {
|
|
4209
4197
|
if (re("加载页面模板", o), await Nl(), c.storage) {
|
|
4210
|
-
const P =
|
|
4211
|
-
if (u(
|
|
4212
|
-
let
|
|
4213
|
-
Me.arrayEach(c.formItems, (
|
|
4214
|
-
|
|
4198
|
+
const P = Bi(o.application, o.templateType, i());
|
|
4199
|
+
if (u(P)) {
|
|
4200
|
+
let _ = [];
|
|
4201
|
+
Me.arrayEach(c.formItems, (U, Z) => {
|
|
4202
|
+
_.push(U.field);
|
|
4215
4203
|
});
|
|
4216
|
-
let
|
|
4217
|
-
Me.objectEach(
|
|
4218
|
-
|
|
4219
|
-
}), Me.includeArrays(
|
|
4204
|
+
let B = [];
|
|
4205
|
+
Me.objectEach(P, (U, Z) => {
|
|
4206
|
+
B.push(Z);
|
|
4207
|
+
}), Me.includeArrays(_, B) ? jn(P) : await Qe(c.formItems, we, G);
|
|
4220
4208
|
} else
|
|
4221
|
-
await Qe(c.formItems,
|
|
4209
|
+
await Qe(c.formItems, we, G);
|
|
4222
4210
|
} else
|
|
4223
|
-
await Qe(c.formItems,
|
|
4211
|
+
await Qe(c.formItems, we, G);
|
|
4224
4212
|
o.onMountedModule && await o.onMountedModule({
|
|
4225
4213
|
$formRef: Ke.value,
|
|
4226
4214
|
$gridRef: T.value,
|
|
4227
4215
|
gridOptions: K,
|
|
4228
4216
|
pageOptions: o,
|
|
4229
4217
|
formData: G
|
|
4230
|
-
}),
|
|
4218
|
+
}), jl(), await Ne(), Vn();
|
|
4231
4219
|
});
|
|
4232
4220
|
const Vn = Me.debounce(() => {
|
|
4233
4221
|
re("屏幕高度出现变化,重新计算表格高度"), d.clientScale === 1 && W.value == 0 && (window.onresize = () => {
|
|
@@ -4236,7 +4224,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4236
4224
|
Nn(Ee.value, K, d.clientScale);
|
|
4237
4225
|
});
|
|
4238
4226
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4239
|
-
d.clientScale === 1 &&
|
|
4227
|
+
d.clientScale === 1 && he(
|
|
4240
4228
|
[H, W],
|
|
4241
4229
|
() => {
|
|
4242
4230
|
Vn();
|
|
@@ -4250,7 +4238,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4250
4238
|
const B = l.value.findIndex((U) => U.instanceId === _.instanceId);
|
|
4251
4239
|
if (u(B) && B >= 0)
|
|
4252
4240
|
if (l.value[B].visible) {
|
|
4253
|
-
|
|
4241
|
+
Se("已经打开该数据弹窗信息");
|
|
4254
4242
|
return;
|
|
4255
4243
|
} else
|
|
4256
4244
|
l.value[B] = _;
|
|
@@ -4277,16 +4265,16 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4277
4265
|
const B = a.componentParams;
|
|
4278
4266
|
Xe("submit", { data: P, params: B, button: B[A.buttonKeyName] });
|
|
4279
4267
|
}
|
|
4280
|
-
},
|
|
4268
|
+
}, Ll = async () => await Ol(T, K), Il = async () => {
|
|
4281
4269
|
const P = T.value;
|
|
4282
4270
|
if (P) {
|
|
4283
4271
|
const { pager: _, filter: B, form: U, sort: Z } = P.getProxyInfo();
|
|
4284
|
-
return qt(_, Z, B, U, G,
|
|
4272
|
+
return qt(_, Z, B, U, G, we);
|
|
4285
4273
|
} else
|
|
4286
4274
|
return null;
|
|
4287
|
-
},
|
|
4275
|
+
}, jn = (P) => {
|
|
4288
4276
|
for (let _ in P)
|
|
4289
|
-
|
|
4277
|
+
we.value[_] ? we.value[_].setValue(P[_]) : G[_] = P[_];
|
|
4290
4278
|
};
|
|
4291
4279
|
return n({
|
|
4292
4280
|
doSearch: Ne,
|
|
@@ -4294,16 +4282,16 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4294
4282
|
showViewModal: Bl,
|
|
4295
4283
|
hideViewModal: Ct,
|
|
4296
4284
|
getMergeCellStyle: kn,
|
|
4297
|
-
getRequestData:
|
|
4298
|
-
getFormData:
|
|
4299
|
-
setFormData:
|
|
4285
|
+
getRequestData: Ll,
|
|
4286
|
+
getFormData: Il,
|
|
4287
|
+
setFormData: jn,
|
|
4300
4288
|
setExportColumns: (P) => {
|
|
4301
4289
|
K.params.exportColumns = P;
|
|
4302
4290
|
}
|
|
4303
4291
|
}), (P, _) => {
|
|
4304
|
-
const B = F("a-button"), U = F("a-space"), Z = F("vxe-form"),
|
|
4292
|
+
const B = F("a-button"), U = F("a-space"), Z = F("vxe-form"), fe = F("a-collapse-panel"), Pe = F("a-collapse"), _e = F("a-menu-item"), se = F("a-menu"), Be = F("a-dropdown"), ke = F("vxe-button"), Rl = F("vxe-grid");
|
|
4305
4293
|
return $t((C(), Y("div", {
|
|
4306
|
-
id:
|
|
4294
|
+
id: S,
|
|
4307
4295
|
class: "sag-vxe-page-wrapper"
|
|
4308
4296
|
}, [
|
|
4309
4297
|
$t(Q("div", Ts, [
|
|
@@ -4313,8 +4301,8 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4313
4301
|
expandIconPosition: "end",
|
|
4314
4302
|
accordion: ""
|
|
4315
4303
|
}, {
|
|
4316
|
-
default:
|
|
4317
|
-
D(
|
|
4304
|
+
default: I(() => [
|
|
4305
|
+
D(fe, {
|
|
4318
4306
|
ref_key: "formCardRef",
|
|
4319
4307
|
ref: Ee,
|
|
4320
4308
|
key: "1",
|
|
@@ -4322,7 +4310,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4322
4310
|
align: "left",
|
|
4323
4311
|
forceRender: ""
|
|
4324
4312
|
}, {
|
|
4325
|
-
default:
|
|
4313
|
+
default: I(() => [
|
|
4326
4314
|
D(Z, {
|
|
4327
4315
|
ref_key: "formRef",
|
|
4328
4316
|
ref: Ke,
|
|
@@ -4337,26 +4325,26 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4337
4325
|
onCollapse: Pl,
|
|
4338
4326
|
class: "sag-vxe-page-form"
|
|
4339
4327
|
}, xe({
|
|
4340
|
-
toolbar_tools:
|
|
4328
|
+
toolbar_tools: I(() => [
|
|
4341
4329
|
D(U, null, {
|
|
4342
|
-
default:
|
|
4330
|
+
default: I(() => [
|
|
4343
4331
|
D(B, {
|
|
4344
4332
|
type: "primary",
|
|
4345
|
-
size: w(
|
|
4333
|
+
size: w(Oe),
|
|
4346
4334
|
onClick: _[0] || (_[0] = (k) => Ne()),
|
|
4347
4335
|
disabled: R.value
|
|
4348
4336
|
}, {
|
|
4349
|
-
default:
|
|
4350
|
-
|
|
4337
|
+
default: I(() => _[5] || (_[5] = [
|
|
4338
|
+
ce(" 查询 ")
|
|
4351
4339
|
])),
|
|
4352
4340
|
_: 1
|
|
4353
4341
|
}, 8, ["size", "disabled"]),
|
|
4354
4342
|
D(B, {
|
|
4355
|
-
size: w(
|
|
4343
|
+
size: w(Oe),
|
|
4356
4344
|
onClick: _[1] || (_[1] = (k) => _n())
|
|
4357
4345
|
}, {
|
|
4358
|
-
default:
|
|
4359
|
-
|
|
4346
|
+
default: I(() => _[6] || (_[6] = [
|
|
4347
|
+
ce("重置")
|
|
4360
4348
|
])),
|
|
4361
4349
|
_: 1
|
|
4362
4350
|
}, 8, ["size"])
|
|
@@ -4364,96 +4352,96 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4364
4352
|
_: 1
|
|
4365
4353
|
})
|
|
4366
4354
|
]),
|
|
4367
|
-
dateRange:
|
|
4355
|
+
dateRange: I((k) => [
|
|
4368
4356
|
D(as, te({
|
|
4369
4357
|
value: G[k.field],
|
|
4370
4358
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4371
|
-
ref: (j) =>
|
|
4359
|
+
ref: (j) => be(j, k.field)
|
|
4372
4360
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4373
4361
|
]),
|
|
4374
|
-
date:
|
|
4362
|
+
date: I((k) => [
|
|
4375
4363
|
D(ls, te({
|
|
4376
4364
|
value: G[k.field],
|
|
4377
4365
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4378
|
-
ref: (j) =>
|
|
4366
|
+
ref: (j) => be(j, k.field)
|
|
4379
4367
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4380
4368
|
]),
|
|
4381
|
-
input:
|
|
4382
|
-
c.vxeSlot ? (C(),
|
|
4369
|
+
input: I((k) => [
|
|
4370
|
+
c.vxeSlot ? (C(), z(Cs, te({
|
|
4383
4371
|
key: 0,
|
|
4384
4372
|
value: G[k.field],
|
|
4385
4373
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4386
|
-
ref: (j) =>
|
|
4374
|
+
ref: (j) => be(j, k.field),
|
|
4387
4375
|
title: k?.item?.title
|
|
4388
4376
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : N("", !0),
|
|
4389
|
-
c.vxeSlot ? N("", !0) : (C(),
|
|
4377
|
+
c.vxeSlot ? N("", !0) : (C(), z(rs, te({
|
|
4390
4378
|
key: 1,
|
|
4391
4379
|
value: G[k.field],
|
|
4392
4380
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4393
|
-
ref: (j) =>
|
|
4381
|
+
ref: (j) => be(j, k.field),
|
|
4394
4382
|
title: k?.item?.title
|
|
4395
4383
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4396
4384
|
]),
|
|
4397
|
-
select:
|
|
4398
|
-
c.vxeSlot ? (C(),
|
|
4385
|
+
select: I((k) => [
|
|
4386
|
+
c.vxeSlot ? (C(), z(xs, te({
|
|
4399
4387
|
key: 0,
|
|
4400
4388
|
value: G[k.field],
|
|
4401
4389
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4402
|
-
ref: (j) =>
|
|
4390
|
+
ref: (j) => be(j, k.field)
|
|
4403
4391
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
4404
|
-
c.vxeSlot ? N("", !0) : (C(),
|
|
4392
|
+
c.vxeSlot ? N("", !0) : (C(), z(is, te({
|
|
4405
4393
|
key: 1,
|
|
4406
4394
|
value: G[k.field],
|
|
4407
4395
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4408
|
-
ref: (j) =>
|
|
4396
|
+
ref: (j) => be(j, k.field)
|
|
4409
4397
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4410
4398
|
]),
|
|
4411
|
-
selectList:
|
|
4412
|
-
c.vxeSlot ? (C(),
|
|
4399
|
+
selectList: I((k) => [
|
|
4400
|
+
c.vxeSlot ? (C(), z(ks, te({
|
|
4413
4401
|
key: 0,
|
|
4414
4402
|
value: G[k.field],
|
|
4415
4403
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4416
|
-
ref: (j) =>
|
|
4404
|
+
ref: (j) => be(j, k.field),
|
|
4417
4405
|
title: k?.item?.title
|
|
4418
4406
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : N("", !0),
|
|
4419
|
-
c.vxeSlot ? N("", !0) : (C(),
|
|
4407
|
+
c.vxeSlot ? N("", !0) : (C(), z(ds, te({
|
|
4420
4408
|
key: 1,
|
|
4421
4409
|
value: G[k.field],
|
|
4422
4410
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4423
|
-
ref: (j) =>
|
|
4411
|
+
ref: (j) => be(j, k.field),
|
|
4424
4412
|
title: k?.item?.title
|
|
4425
4413
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4426
4414
|
]),
|
|
4427
|
-
selectPull:
|
|
4428
|
-
c.vxeSlot ? (C(),
|
|
4415
|
+
selectPull: I((k) => [
|
|
4416
|
+
c.vxeSlot ? (C(), z(Ps, te({
|
|
4429
4417
|
key: 0,
|
|
4430
4418
|
value: G[k.field],
|
|
4431
4419
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4432
|
-
ref: (j) =>
|
|
4420
|
+
ref: (j) => be(j, k.field),
|
|
4433
4421
|
title: k?.item?.title
|
|
4434
4422
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : N("", !0),
|
|
4435
|
-
c.vxeSlot ? N("", !0) : (C(),
|
|
4423
|
+
c.vxeSlot ? N("", !0) : (C(), z(us, te({
|
|
4436
4424
|
key: 1,
|
|
4437
4425
|
value: G[k.field],
|
|
4438
4426
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4439
|
-
ref: (j) =>
|
|
4427
|
+
ref: (j) => be(j, k.field),
|
|
4440
4428
|
title: k?.item?.title
|
|
4441
4429
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4442
4430
|
]),
|
|
4443
|
-
cascader:
|
|
4431
|
+
cascader: I((k) => [
|
|
4444
4432
|
D(ps, te({
|
|
4445
4433
|
value: G[k.field],
|
|
4446
4434
|
"onUpdate:value": (j) => G[k.field] = j,
|
|
4447
4435
|
title: k?.item?.title,
|
|
4448
|
-
ref: (j) =>
|
|
4436
|
+
ref: (j) => be(j, k.field)
|
|
4449
4437
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])
|
|
4450
4438
|
]),
|
|
4451
4439
|
_: 2
|
|
4452
4440
|
}, [
|
|
4453
|
-
Ce(w(
|
|
4441
|
+
Ce(w(h), (k) => ({
|
|
4454
4442
|
name: k,
|
|
4455
|
-
fn:
|
|
4456
|
-
|
|
4443
|
+
fn: I((j) => [
|
|
4444
|
+
oe(P.$slots, k, te(j, {
|
|
4457
4445
|
value: G[j.field]
|
|
4458
4446
|
}))
|
|
4459
4447
|
])
|
|
@@ -4466,7 +4454,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4466
4454
|
_: 3
|
|
4467
4455
|
}, 8, ["activeKey"])
|
|
4468
4456
|
], 512), [
|
|
4469
|
-
[
|
|
4457
|
+
[jt, w(u)(c.formItems)]
|
|
4470
4458
|
]),
|
|
4471
4459
|
Q("div", Ms, [
|
|
4472
4460
|
D(Rl, te({
|
|
@@ -4482,45 +4470,45 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4482
4470
|
onCheckboxChange: Al,
|
|
4483
4471
|
onRadioChange: Tl
|
|
4484
4472
|
}), xe({
|
|
4485
|
-
operate:
|
|
4473
|
+
operate: I(({ row: k, column: j }) => [
|
|
4486
4474
|
Q("a", {
|
|
4487
4475
|
href: "javascript:void(0)",
|
|
4488
4476
|
class: "sag-vxe-page-link",
|
|
4489
|
-
onClick: (
|
|
4477
|
+
onClick: (ue) => w(An)(k, j)
|
|
4490
4478
|
}, ae(k[j.property]), 9, Vs)
|
|
4491
4479
|
]),
|
|
4492
|
-
vertical:
|
|
4493
|
-
(C(!0), Y(
|
|
4494
|
-
key:
|
|
4480
|
+
vertical: I(({ row: k, column: j }) => [
|
|
4481
|
+
(C(!0), Y(de, null, Ce(j.params.childColumns, (ue) => (C(), Y("div", {
|
|
4482
|
+
key: ue.value
|
|
4495
4483
|
}, [
|
|
4496
|
-
Q("span", $s, ae(
|
|
4497
|
-
_[7] || (_[7] =
|
|
4498
|
-
|
|
4484
|
+
Q("span", $s, ae(ue.title) + ":", 1),
|
|
4485
|
+
_[7] || (_[7] = ce(" ")),
|
|
4486
|
+
ue.formatter === "operate" ? (C(), Y("span", js, [
|
|
4499
4487
|
Q("a", {
|
|
4500
4488
|
href: "javascript:void(0)",
|
|
4501
4489
|
class: "sag-vxe-page-link",
|
|
4502
|
-
onClick: (tu) => w(An)(k,
|
|
4503
|
-
}, ae(k[
|
|
4504
|
-
])) : (C(), Y("span", qs, ae(w(
|
|
4490
|
+
onClick: (tu) => w(An)(k, ue)
|
|
4491
|
+
}, ae(k[ue.field]), 9, zs)
|
|
4492
|
+
])) : (C(), Y("span", qs, ae(w($).stringFormat(k[ue.field], ue.formatter)), 1))
|
|
4505
4493
|
]))), 128))
|
|
4506
4494
|
]),
|
|
4507
|
-
button:
|
|
4495
|
+
button: I(({ row: k }) => [
|
|
4508
4496
|
Q("div", Ns, [
|
|
4509
|
-
(C(!0), Y(
|
|
4510
|
-
w(
|
|
4511
|
-
d.showButtonLink ? N("", !0) : (C(),
|
|
4497
|
+
(C(!0), Y(de, null, Ce(y.tableButtons, (j) => (C(), Y(de, { key: j }, [
|
|
4498
|
+
w($).toString(k[j.buttonName], !0) && w(Ue)(j.auth) ? (C(), Y("span", Ds, [
|
|
4499
|
+
d.showButtonLink ? N("", !0) : (C(), z(B, {
|
|
4512
4500
|
key: 0,
|
|
4513
4501
|
size: "small",
|
|
4514
|
-
type: w(
|
|
4515
|
-
onClick: (
|
|
4502
|
+
type: w($).toString(j.status, "primary"),
|
|
4503
|
+
onClick: (ue) => w(Ze)(j, k)
|
|
4516
4504
|
}, {
|
|
4517
|
-
icon:
|
|
4518
|
-
D(
|
|
4505
|
+
icon: I(() => [
|
|
4506
|
+
D(je, {
|
|
4519
4507
|
icon: j.icon
|
|
4520
4508
|
}, null, 8, ["icon"])
|
|
4521
4509
|
]),
|
|
4522
|
-
default:
|
|
4523
|
-
|
|
4510
|
+
default: I(() => [
|
|
4511
|
+
ce(" " + ae(j.buttonName), 1)
|
|
4524
4512
|
]),
|
|
4525
4513
|
_: 2
|
|
4526
4514
|
}, 1032, ["type", "onClick"])),
|
|
@@ -4528,36 +4516,36 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4528
4516
|
key: 1,
|
|
4529
4517
|
href: "javascript:void(0)",
|
|
4530
4518
|
class: "sag-vxe-page-button-link",
|
|
4531
|
-
onClick: (
|
|
4519
|
+
onClick: (ue) => w(Ze)(j, k)
|
|
4532
4520
|
}, [
|
|
4533
|
-
D(
|
|
4521
|
+
D(je, {
|
|
4534
4522
|
icon: j.icon
|
|
4535
4523
|
}, null, 8, ["icon"]),
|
|
4536
|
-
|
|
4524
|
+
ce(" " + ae(j.buttonName), 1)
|
|
4537
4525
|
], 8, Bs)) : N("", !0),
|
|
4538
|
-
_[8] || (_[8] =
|
|
4526
|
+
_[8] || (_[8] = ce(" "))
|
|
4539
4527
|
])) : N("", !0)
|
|
4540
4528
|
], 64))), 128))
|
|
4541
4529
|
]),
|
|
4542
|
-
Dl(
|
|
4530
|
+
Dl(y.tableMoreButtons, k) ? (C(), z(Be, {
|
|
4543
4531
|
key: 0,
|
|
4544
4532
|
destroyPopupOnHide: !0
|
|
4545
4533
|
}, {
|
|
4546
|
-
overlay:
|
|
4547
|
-
D(
|
|
4548
|
-
default:
|
|
4549
|
-
(C(!0), Y(
|
|
4550
|
-
w(Ue)(j.auth) ? (C(), Y(
|
|
4551
|
-
w(
|
|
4552
|
-
default:
|
|
4534
|
+
overlay: I(() => [
|
|
4535
|
+
D(se, null, {
|
|
4536
|
+
default: I(() => [
|
|
4537
|
+
(C(!0), Y(de, null, Ce(y.tableMoreButtons, (j) => (C(), Y(de, { key: j }, [
|
|
4538
|
+
w(Ue)(j.auth) ? (C(), Y(de, { key: 0 }, [
|
|
4539
|
+
w($).toString(k[j.buttonName], !0) ? (C(), z(_e, { key: 0 }, {
|
|
4540
|
+
default: I(() => [
|
|
4553
4541
|
Q("a", {
|
|
4554
|
-
onClick: (
|
|
4542
|
+
onClick: (ue) => w(Ze)(j, k)
|
|
4555
4543
|
}, [
|
|
4556
|
-
D(
|
|
4544
|
+
D(je, {
|
|
4557
4545
|
icon: j.icon
|
|
4558
4546
|
}, null, 8, ["icon"]),
|
|
4559
|
-
|
|
4560
|
-
], 8,
|
|
4547
|
+
ce(" " + ae(j.buttonName), 1)
|
|
4548
|
+
], 8, Ls)
|
|
4561
4549
|
]),
|
|
4562
4550
|
_: 2
|
|
4563
4551
|
}, 1024)) : N("", !0)
|
|
@@ -4567,13 +4555,13 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4567
4555
|
_: 2
|
|
4568
4556
|
}, 1024)
|
|
4569
4557
|
]),
|
|
4570
|
-
default:
|
|
4558
|
+
default: I(() => [
|
|
4571
4559
|
D(B, {
|
|
4572
4560
|
type: d.showButtonLink ? "link" : "default",
|
|
4573
4561
|
size: "small"
|
|
4574
4562
|
}, {
|
|
4575
|
-
default:
|
|
4576
|
-
_[9] || (_[9] =
|
|
4563
|
+
default: I(() => [
|
|
4564
|
+
_[9] || (_[9] = ce(" 更多操作 ")),
|
|
4577
4565
|
D(w(bt))
|
|
4578
4566
|
]),
|
|
4579
4567
|
_: 1
|
|
@@ -4582,28 +4570,28 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4582
4570
|
_: 2
|
|
4583
4571
|
}, 1024)) : N("", !0)
|
|
4584
4572
|
]),
|
|
4585
|
-
toolbar_buttons:
|
|
4586
|
-
w(u)(
|
|
4573
|
+
toolbar_buttons: I(() => [
|
|
4574
|
+
w(u)(y.formButtons) && y.formButtons.length > 0 ? (C(), z(U, {
|
|
4587
4575
|
key: 0,
|
|
4588
4576
|
wrap: !0,
|
|
4589
4577
|
style: { "margin-bottom": "0px" }
|
|
4590
4578
|
}, {
|
|
4591
|
-
default:
|
|
4592
|
-
(C(!0), Y(
|
|
4593
|
-
w(Ue)(k.auth) ? (C(),
|
|
4579
|
+
default: I(() => [
|
|
4580
|
+
(C(!0), Y(de, null, Ce(y.formButtons, (k) => (C(), Y("span", { key: k }, [
|
|
4581
|
+
w(Ue)(k.auth) ? (C(), z(B, {
|
|
4594
4582
|
key: 0,
|
|
4595
4583
|
round: "",
|
|
4596
|
-
size: w(
|
|
4597
|
-
type: w(
|
|
4598
|
-
onClick: (j) => w(
|
|
4584
|
+
size: w(Oe),
|
|
4585
|
+
type: w($).toString(k.status, "primary"),
|
|
4586
|
+
onClick: (j) => w(zl)(k)
|
|
4599
4587
|
}, {
|
|
4600
|
-
icon:
|
|
4601
|
-
D(
|
|
4588
|
+
icon: I(() => [
|
|
4589
|
+
D(je, {
|
|
4602
4590
|
icon: k.icon
|
|
4603
4591
|
}, null, 8, ["icon"])
|
|
4604
4592
|
]),
|
|
4605
|
-
default:
|
|
4606
|
-
|
|
4593
|
+
default: I(() => [
|
|
4594
|
+
ce(" " + ae(k.buttonName), 1)
|
|
4607
4595
|
]),
|
|
4608
4596
|
_: 2
|
|
4609
4597
|
}, 1032, ["size", "type", "onClick"])) : N("", !0)
|
|
@@ -4611,62 +4599,62 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4611
4599
|
]),
|
|
4612
4600
|
_: 1
|
|
4613
4601
|
})) : N("", !0),
|
|
4614
|
-
(C(!0), Y(
|
|
4602
|
+
(C(!0), Y(de, null, Ce(w(b), (k) => oe(P.$slots, k)), 256))
|
|
4615
4603
|
]),
|
|
4616
|
-
toolbar_tools:
|
|
4617
|
-
w(u)(d.tableColumnsExtra) ? (C(),
|
|
4604
|
+
toolbar_tools: I(() => [
|
|
4605
|
+
w(u)(d.tableColumnsExtra) ? (C(), z(ke, {
|
|
4618
4606
|
key: 0,
|
|
4619
4607
|
size: "small",
|
|
4620
4608
|
circle: !0,
|
|
4621
4609
|
onClick: _[3] || (_[3] = (k) => w(Mn)(o.application, !1)),
|
|
4622
4610
|
title: "切换"
|
|
4623
4611
|
}, {
|
|
4624
|
-
default:
|
|
4612
|
+
default: I(() => _[10] || (_[10] = [
|
|
4625
4613
|
Q("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1)
|
|
4626
4614
|
])),
|
|
4627
4615
|
_: 1
|
|
4628
4616
|
})) : N("", !0),
|
|
4629
|
-
w(u)(s.requestDownload) && typeof s.requestDownload == "object" ? (C(),
|
|
4617
|
+
w(u)(s.requestDownload) && typeof s.requestDownload == "object" ? (C(), z(As, {
|
|
4630
4618
|
key: 1,
|
|
4631
4619
|
onExport: w(Tn)
|
|
4632
4620
|
}, null, 8, ["onExport"])) : N("", !0),
|
|
4633
|
-
s.requestDownload === !0 || typeof s.requestDownload == "string" ? (C(),
|
|
4621
|
+
s.requestDownload === !0 || typeof s.requestDownload == "string" ? (C(), z(ke, {
|
|
4634
4622
|
key: 2,
|
|
4635
4623
|
size: "small",
|
|
4636
4624
|
circle: !0,
|
|
4637
4625
|
onClick: w(Tn),
|
|
4638
4626
|
title: "下载"
|
|
4639
4627
|
}, {
|
|
4640
|
-
default:
|
|
4628
|
+
default: I(() => _[11] || (_[11] = [
|
|
4641
4629
|
Q("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
4642
4630
|
])),
|
|
4643
4631
|
_: 1
|
|
4644
4632
|
}, 8, ["onClick"])) : N("", !0),
|
|
4645
|
-
s.requestImport ? (C(),
|
|
4633
|
+
s.requestImport ? (C(), z(ke, {
|
|
4646
4634
|
key: 3,
|
|
4647
4635
|
size: "small",
|
|
4648
4636
|
circle: !0,
|
|
4649
4637
|
onClick: _[4] || (_[4] = (k) => w(ql)()),
|
|
4650
4638
|
title: "导入"
|
|
4651
4639
|
}, {
|
|
4652
|
-
default:
|
|
4640
|
+
default: I(() => _[12] || (_[12] = [
|
|
4653
4641
|
Q("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1)
|
|
4654
4642
|
])),
|
|
4655
4643
|
_: 1
|
|
4656
4644
|
})) : N("", !0)
|
|
4657
4645
|
]),
|
|
4658
|
-
empty:
|
|
4659
|
-
|
|
4646
|
+
empty: I(() => [
|
|
4647
|
+
L.value === "error" ? (C(), Y("h2", Is, _[13] || (_[13] = [
|
|
4660
4648
|
Q("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4661
4649
|
]))) : N("", !0),
|
|
4662
|
-
|
|
4650
|
+
L.value === "none" ? (C(), Y("h2", Rs, _[14] || (_[14] = [
|
|
4663
4651
|
Q("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4664
4652
|
]))) : N("", !0),
|
|
4665
|
-
|
|
4653
|
+
L.value === "more" ? (C(), Y("h2", Es, [
|
|
4666
4654
|
_[16] || (_[16] = Q("span", { style: { "font-size": "16px" } }, [
|
|
4667
|
-
|
|
4655
|
+
ce(" 您好,因数据量过大,强制显示将会 "),
|
|
4668
4656
|
Q("span", { style: { color: "red" } }, "取消合并列"),
|
|
4669
|
-
|
|
4657
|
+
ce(" 模式,建议您调整查询条件后重新查询! ")
|
|
4670
4658
|
], -1)),
|
|
4671
4659
|
_[17] || (_[17] = Q("br", null, null, -1)),
|
|
4672
4660
|
Q("a", {
|
|
@@ -4680,37 +4668,37 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4680
4668
|
]),
|
|
4681
4669
|
_: 2
|
|
4682
4670
|
}, [
|
|
4683
|
-
Ce(w(
|
|
4671
|
+
Ce(w(O), (k) => ({
|
|
4684
4672
|
name: k,
|
|
4685
|
-
fn:
|
|
4686
|
-
|
|
4673
|
+
fn: I((j) => [
|
|
4674
|
+
oe(P.$slots, k, Gl(Jl(j)))
|
|
4687
4675
|
])
|
|
4688
4676
|
}))
|
|
4689
4677
|
]), 1040, ["size"])
|
|
4690
4678
|
]),
|
|
4691
|
-
(C(!0), Y(
|
|
4692
|
-
k.visible ? (C(),
|
|
4679
|
+
(C(!0), Y(de, null, Ce(l.value, (k, j) => (C(), Y(de, null, [
|
|
4680
|
+
k.visible ? (C(), z($a, te({
|
|
4693
4681
|
key: k.instanceId,
|
|
4694
4682
|
ref_for: !0
|
|
4695
4683
|
}, k, {
|
|
4696
|
-
onCancel: (
|
|
4697
|
-
onSubmit: (
|
|
4684
|
+
onCancel: (ue) => Ct(k.instanceId),
|
|
4685
|
+
onSubmit: (ue) => $n(ue, k.instanceId)
|
|
4698
4686
|
}), null, 16, ["onCancel", "onSubmit"])) : N("", !0)
|
|
4699
4687
|
], 64))), 256)),
|
|
4700
|
-
a.visible ? (C(),
|
|
4688
|
+
a.visible ? (C(), z($a, te({ key: 0 }, a, {
|
|
4701
4689
|
onCancel: Ct,
|
|
4702
4690
|
onSubmit: $n
|
|
4703
4691
|
}), null, 16)) : N("", !0)
|
|
4704
4692
|
], 512)), [
|
|
4705
|
-
[
|
|
4693
|
+
[jt, !q.value]
|
|
4706
4694
|
]);
|
|
4707
4695
|
};
|
|
4708
4696
|
}
|
|
4709
4697
|
}), su = {
|
|
4710
4698
|
install: (e, n) => {
|
|
4711
|
-
e.component(
|
|
4699
|
+
e.component(ja.name, ja);
|
|
4712
4700
|
}
|
|
4713
|
-
},
|
|
4701
|
+
}, za = /* @__PURE__ */ X({
|
|
4714
4702
|
name: "SagAntdDatePicker",
|
|
4715
4703
|
inheritAttrs: !1,
|
|
4716
4704
|
__name: "SagAntdDatePicker",
|
|
@@ -4741,20 +4729,20 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4741
4729
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD";
|
|
4742
4730
|
let i = V();
|
|
4743
4731
|
const o = (x, p) => {
|
|
4744
|
-
|
|
4732
|
+
y(p, !0);
|
|
4745
4733
|
}, s = () => u(i.value) ? M(i.value).format(r) : null, v = (x) => {
|
|
4746
|
-
i.value = M(x),
|
|
4734
|
+
i.value = M(x), y();
|
|
4747
4735
|
}, c = (x) => {
|
|
4748
|
-
i.value = M().add(x || 0, l),
|
|
4749
|
-
}, d = (x) => !!(u(a.max) && M(x).format(r) > a.max || u(a.min) && M(x).format(r) < a.min),
|
|
4750
|
-
u(x) ? (
|
|
4736
|
+
i.value = M().add(x || 0, l), y();
|
|
4737
|
+
}, d = (x) => !!(u(a.max) && M(x).format(r) > a.max || u(a.min) && M(x).format(r) < a.min), g = t, y = (x, p = !1) => {
|
|
4738
|
+
u(x) ? (g("update:value", x), p && g("change", x)) : (g("update:value", s()), p && g("change", s()));
|
|
4751
4739
|
};
|
|
4752
|
-
return
|
|
4740
|
+
return he(
|
|
4753
4741
|
() => a.value,
|
|
4754
4742
|
(x, p) => {
|
|
4755
4743
|
i.value = x ? M(x) : null;
|
|
4756
4744
|
}
|
|
4757
|
-
),
|
|
4745
|
+
), ie(() => {
|
|
4758
4746
|
u(a.value) && v(a.value);
|
|
4759
4747
|
}), n({
|
|
4760
4748
|
setDate: v,
|
|
@@ -4762,24 +4750,24 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4762
4750
|
getValue: s
|
|
4763
4751
|
}), (x, p) => {
|
|
4764
4752
|
const f = F("a-date-picker");
|
|
4765
|
-
return C(),
|
|
4753
|
+
return C(), z(f, {
|
|
4766
4754
|
value: w(i),
|
|
4767
|
-
"onUpdate:value": p[0] || (p[0] = (
|
|
4755
|
+
"onUpdate:value": p[0] || (p[0] = (S) => ht(i) ? i.value = S : i = S),
|
|
4768
4756
|
"show-time": a.showTime,
|
|
4769
4757
|
disabled: a.disabled,
|
|
4770
4758
|
locale: w(Je),
|
|
4771
4759
|
format: w(r),
|
|
4772
4760
|
disabledDate: d,
|
|
4773
4761
|
picker: w(l) === "day" ? "date" : w(l),
|
|
4774
|
-
style:
|
|
4775
|
-
getPopupContainer: (
|
|
4762
|
+
style: ge(a.style),
|
|
4763
|
+
getPopupContainer: (S) => w(Ie)(a.mountainTop, e.getPopupContainer, S),
|
|
4776
4764
|
onChange: o
|
|
4777
4765
|
}, null, 8, ["value", "show-time", "disabled", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4778
4766
|
};
|
|
4779
4767
|
}
|
|
4780
4768
|
}), uu = {
|
|
4781
4769
|
install: (e, n) => {
|
|
4782
|
-
e.component(
|
|
4770
|
+
e.component(za.name, za);
|
|
4783
4771
|
}
|
|
4784
4772
|
}, qa = /* @__PURE__ */ X({
|
|
4785
4773
|
name: "SagAntdDateRange",
|
|
@@ -4824,43 +4812,43 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4824
4812
|
{ label: "近两年", value: [M().add(-2, l)] },
|
|
4825
4813
|
{ label: "近三年", value: [M().add(-3, l)] },
|
|
4826
4814
|
{ label: "近五年", value: [M().add(-5, l)] }
|
|
4827
|
-
], d = V(l === "day" ? s : l === "month" ? v : c),
|
|
4828
|
-
p(
|
|
4829
|
-
},
|
|
4830
|
-
let f = null,
|
|
4831
|
-
return o.value && o.value[0] && (f = M(o.value[0]).format(r)), o.value && o.value[1] && (
|
|
4832
|
-
}, x = (f,
|
|
4833
|
-
typeof f == "number" || typeof
|
|
4815
|
+
], d = V(l === "day" ? s : l === "month" ? v : c), g = (f, S) => {
|
|
4816
|
+
p(S, !0);
|
|
4817
|
+
}, y = () => {
|
|
4818
|
+
let f = null, S = null;
|
|
4819
|
+
return o.value && o.value[0] && (f = M(o.value[0]).format(r)), o.value && o.value[1] && (S = M(o.value[1]).format(r)), !f && !S ? null : [f, S];
|
|
4820
|
+
}, x = (f, S) => {
|
|
4821
|
+
typeof f == "number" || typeof S == "number" ? o.value = [
|
|
4834
4822
|
u(f) ? M().add(f, l) : null,
|
|
4835
|
-
u(
|
|
4836
|
-
] : o.value = [u(f) ? M(f) : null, u(
|
|
4837
|
-
}, p = (f,
|
|
4838
|
-
u(f) ? (i("update:value", f),
|
|
4823
|
+
u(S) ? M().add(S, l) : null
|
|
4824
|
+
] : o.value = [u(f) ? M(f) : null, u(S) ? M(S) : null], p();
|
|
4825
|
+
}, p = (f, S = !1) => {
|
|
4826
|
+
u(f) ? (i("update:value", f), S && i("change", f)) : (i("update:value", y()), S && i("change", y()));
|
|
4839
4827
|
};
|
|
4840
|
-
return
|
|
4828
|
+
return he(
|
|
4841
4829
|
() => a.value,
|
|
4842
|
-
(f,
|
|
4843
|
-
let m = null,
|
|
4844
|
-
u(f) && (u(f[0]) && (m = M(f[0])), u(f[1]) && (
|
|
4830
|
+
(f, S) => {
|
|
4831
|
+
let m = null, h = null;
|
|
4832
|
+
u(f) && (u(f[0]) && (m = M(f[0])), u(f[1]) && (h = M(f[1]))), o.value = [m, h];
|
|
4845
4833
|
}
|
|
4846
|
-
),
|
|
4834
|
+
), ie(() => {
|
|
4847
4835
|
u(a.value) && x(a.value[0], a.value[1]);
|
|
4848
4836
|
}), n({
|
|
4849
4837
|
setValue: x,
|
|
4850
|
-
getValue:
|
|
4851
|
-
}), (f,
|
|
4838
|
+
getValue: y
|
|
4839
|
+
}), (f, S) => {
|
|
4852
4840
|
const m = F("a-range-picker");
|
|
4853
|
-
return C(),
|
|
4841
|
+
return C(), z(m, {
|
|
4854
4842
|
value: o.value,
|
|
4855
|
-
"onUpdate:value":
|
|
4843
|
+
"onUpdate:value": S[0] || (S[0] = (h) => o.value = h),
|
|
4856
4844
|
presets: d.value,
|
|
4857
4845
|
locale: w(Je),
|
|
4858
4846
|
allowEmpty: [!0, !0],
|
|
4859
4847
|
format: w(r),
|
|
4860
4848
|
picker: w(l) === "day" ? "date" : w(l),
|
|
4861
|
-
style:
|
|
4862
|
-
getPopupContainer: (
|
|
4863
|
-
onChange:
|
|
4849
|
+
style: ge(a.style),
|
|
4850
|
+
getPopupContainer: (h) => w(Ie)(a.mountainTop, e.getPopupContainer, h),
|
|
4851
|
+
onChange: g
|
|
4864
4852
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4865
4853
|
};
|
|
4866
4854
|
}
|
|
@@ -4891,21 +4879,21 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4891
4879
|
};
|
|
4892
4880
|
return (r, i) => {
|
|
4893
4881
|
const o = F("a-button");
|
|
4894
|
-
return C(),
|
|
4882
|
+
return C(), z(o, {
|
|
4895
4883
|
round: "",
|
|
4896
4884
|
size: t.size,
|
|
4897
4885
|
type: t.type,
|
|
4898
4886
|
onClick: l,
|
|
4899
4887
|
disabled: t.disabled
|
|
4900
4888
|
}, {
|
|
4901
|
-
icon:
|
|
4902
|
-
t.icon !== "none" ? (C(),
|
|
4889
|
+
icon: I(() => [
|
|
4890
|
+
t.icon !== "none" ? (C(), z(je, {
|
|
4903
4891
|
key: 0,
|
|
4904
4892
|
icon: t.icon
|
|
4905
4893
|
}, null, 8, ["icon"])) : N("", !0)
|
|
4906
4894
|
]),
|
|
4907
|
-
default:
|
|
4908
|
-
|
|
4895
|
+
default: I(() => [
|
|
4896
|
+
ce(" " + ae(t.name), 1)
|
|
4909
4897
|
]),
|
|
4910
4898
|
_: 1
|
|
4911
4899
|
}, 8, ["size", "type", "disabled"]);
|
|
@@ -4946,32 +4934,32 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4946
4934
|
},
|
|
4947
4935
|
emits: ["update:value", "change"],
|
|
4948
4936
|
setup(e, { expose: n, emit: t }) {
|
|
4949
|
-
const a = e, l = A.application || "", r = le(A.userKeyName), i = A.ctxPath || "", o = "请输入" + a.title + "搜索", s = a.fieldNames.label, v = a.fieldNames.value, c = V([]), d = V([]),
|
|
4950
|
-
const
|
|
4937
|
+
const a = e, l = A.application || "", r = le(A.userKeyName), i = A.ctxPath || "", o = "请输入" + a.title + "搜索", s = a.fieldNames.label, v = a.fieldNames.value, c = V([]), d = V([]), g = async () => {
|
|
4938
|
+
const h = await Sl(
|
|
4951
4939
|
ne(i, a.requestUrl),
|
|
4952
4940
|
a.requestParams,
|
|
4953
4941
|
l,
|
|
4954
4942
|
"CASCADER_" + a.cacheKey,
|
|
4955
|
-
|
|
4943
|
+
r()
|
|
4956
4944
|
);
|
|
4957
|
-
d.value =
|
|
4958
|
-
},
|
|
4959
|
-
u(
|
|
4960
|
-
}, p = (
|
|
4961
|
-
c.value =
|
|
4945
|
+
d.value = h;
|
|
4946
|
+
}, y = t, x = (h, O) => {
|
|
4947
|
+
u(O) ? (y("update:value", h[h.length - 1]), y("change", O[O.length - 1])) : (y("update:value", null), y("change", null));
|
|
4948
|
+
}, p = (h, O) => O.some((b) => b[s].indexOf(h) > -1), f = () => d.value.filter((O) => O[v] === c.value[c.value.length - 1])[s], S = () => c.value, m = (h) => {
|
|
4949
|
+
c.value = h, y("update:value", h);
|
|
4962
4950
|
};
|
|
4963
|
-
return
|
|
4964
|
-
|
|
4951
|
+
return ie(() => {
|
|
4952
|
+
g();
|
|
4965
4953
|
}), n({
|
|
4966
4954
|
getName: f,
|
|
4967
|
-
getValue:
|
|
4955
|
+
getValue: S,
|
|
4968
4956
|
setValue: m
|
|
4969
|
-
}), (
|
|
4957
|
+
}), (h, O) => {
|
|
4970
4958
|
const b = F("a-cascader");
|
|
4971
4959
|
return C(), Y("div", Us, [
|
|
4972
4960
|
D(b, {
|
|
4973
4961
|
value: c.value,
|
|
4974
|
-
"onUpdate:value":
|
|
4962
|
+
"onUpdate:value": O[0] || (O[0] = (T) => c.value = T),
|
|
4975
4963
|
options: d.value,
|
|
4976
4964
|
fieldNames: a.fieldNames,
|
|
4977
4965
|
"show-search": { filter: p },
|
|
@@ -4979,8 +4967,8 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4979
4967
|
clearable: a.clearable,
|
|
4980
4968
|
changeOnSelect: a.changeOnSelect,
|
|
4981
4969
|
placeholder: o,
|
|
4982
|
-
style:
|
|
4983
|
-
getPopupContainer: (T) => w(
|
|
4970
|
+
style: ge(a.style),
|
|
4971
|
+
getPopupContainer: (T) => w(Ie)(a.mountainTop, e.getPopupContainer, T),
|
|
4984
4972
|
onChange: x
|
|
4985
4973
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "style", "getPopupContainer"])
|
|
4986
4974
|
]);
|
|
@@ -5009,34 +4997,34 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5009
4997
|
//
|
|
5010
4998
|
},
|
|
5011
4999
|
setup(e) {
|
|
5012
|
-
const n = e, t = Object.keys(
|
|
5000
|
+
const n = e, t = Object.keys(Le()), a = t.filter((r) => r === "extra"), l = t.filter((r) => r === "title");
|
|
5013
5001
|
return (r, i) => {
|
|
5014
5002
|
const o = F("a-card");
|
|
5015
|
-
return C(),
|
|
5003
|
+
return C(), z(o, {
|
|
5016
5004
|
size: "small",
|
|
5017
5005
|
headStyle: n.headStyle,
|
|
5018
5006
|
bodyStyle: n.bodyStyle,
|
|
5019
|
-
style:
|
|
5007
|
+
style: ge(n.style),
|
|
5020
5008
|
hoverable: n.hoverable,
|
|
5021
5009
|
loading: n.loading
|
|
5022
5010
|
}, xe({
|
|
5023
|
-
default:
|
|
5024
|
-
|
|
5011
|
+
default: I(() => [
|
|
5012
|
+
oe(r.$slots, "default")
|
|
5025
5013
|
]),
|
|
5026
5014
|
_: 2
|
|
5027
5015
|
}, [
|
|
5028
5016
|
w(l).length === 1 || w(u)(n.title) ? {
|
|
5029
5017
|
name: "title",
|
|
5030
|
-
fn:
|
|
5031
|
-
w(l).length === 1 ?
|
|
5018
|
+
fn: I(() => [
|
|
5019
|
+
w(l).length === 1 ? oe(r.$slots, "title", { key: 0 }) : N("", !0),
|
|
5032
5020
|
w(l).length !== 1 ? (C(), Y("span", Fs, ae(n.title), 1)) : N("", !0)
|
|
5033
5021
|
]),
|
|
5034
5022
|
key: "0"
|
|
5035
5023
|
} : void 0,
|
|
5036
5024
|
w(a).length === 1 ? {
|
|
5037
5025
|
name: "extra",
|
|
5038
|
-
fn:
|
|
5039
|
-
|
|
5026
|
+
fn: I(() => [
|
|
5027
|
+
oe(r.$slots, "extra")
|
|
5040
5028
|
]),
|
|
5041
5029
|
key: "1"
|
|
5042
5030
|
} : void 0
|
|
@@ -5047,7 +5035,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5047
5035
|
install: (e, n) => {
|
|
5048
5036
|
e.component(Ba.name, Ba);
|
|
5049
5037
|
}
|
|
5050
|
-
}, Hs = { key: 1 }, Ys = { key: 1 },
|
|
5038
|
+
}, Hs = { key: 1 }, Ys = { key: 1 }, La = /* @__PURE__ */ X({
|
|
5051
5039
|
name: "SagAntdInput",
|
|
5052
5040
|
inheritAttrs: !1,
|
|
5053
5041
|
__name: "SagAntdInput",
|
|
@@ -5075,47 +5063,47 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5075
5063
|
},
|
|
5076
5064
|
emits: ["update:value", "change"],
|
|
5077
5065
|
setup(e, { expose: n, emit: t }) {
|
|
5078
|
-
const a = e, l = V(
|
|
5079
|
-
|
|
5080
|
-
}, c = () => l.value, d = (
|
|
5081
|
-
a.formatter === "date" ? l.value =
|
|
5066
|
+
const a = e, l = V($.toString(a.value, null)), r = t, i = Object.keys(Le()), o = i.filter((y) => y === "addonAfter"), s = i.filter((y) => y === "addonBefore"), v = () => {
|
|
5067
|
+
g(!0);
|
|
5068
|
+
}, c = () => l.value, d = (y) => {
|
|
5069
|
+
a.formatter === "date" ? l.value = $.toDateString(y) : a.formatter === "datetime" ? l.value = $.toDatetimeString(y) : l.value = y, g();
|
|
5082
5070
|
};
|
|
5083
|
-
|
|
5071
|
+
he(
|
|
5084
5072
|
() => a.value,
|
|
5085
|
-
(
|
|
5086
|
-
|
|
5073
|
+
(y, x) => {
|
|
5074
|
+
y !== l.value && d(y);
|
|
5087
5075
|
}
|
|
5088
5076
|
);
|
|
5089
|
-
const
|
|
5090
|
-
r("update:value", l.value),
|
|
5077
|
+
const g = (y = !1) => {
|
|
5078
|
+
r("update:value", l.value), y && r("change", l.value);
|
|
5091
5079
|
};
|
|
5092
5080
|
return n({
|
|
5093
5081
|
getValue: c,
|
|
5094
5082
|
setValue: d
|
|
5095
|
-
}), (
|
|
5083
|
+
}), (y, x) => {
|
|
5096
5084
|
const p = F("a-input");
|
|
5097
|
-
return C(),
|
|
5085
|
+
return C(), z(p, {
|
|
5098
5086
|
value: l.value,
|
|
5099
5087
|
"onUpdate:value": x[0] || (x[0] = (f) => l.value = f),
|
|
5100
5088
|
placeholder: a.placeholder,
|
|
5101
5089
|
disabled: a.disabled,
|
|
5102
5090
|
showCount: a.showCount,
|
|
5103
5091
|
maxlength: a.maxlength,
|
|
5104
|
-
style:
|
|
5092
|
+
style: ge(a.style),
|
|
5105
5093
|
onChange: v
|
|
5106
5094
|
}, xe({ _: 2 }, [
|
|
5107
5095
|
w(o).length === 1 || w(u)(a.addonAfter) ? {
|
|
5108
5096
|
name: "addonAfter",
|
|
5109
|
-
fn:
|
|
5110
|
-
w(o).length === 1 ?
|
|
5097
|
+
fn: I(() => [
|
|
5098
|
+
w(o).length === 1 ? oe(y.$slots, "addonAfter", { key: 0 }) : N("", !0),
|
|
5111
5099
|
w(o).length !== 1 ? (C(), Y("span", Hs, ae(a.addonAfter), 1)) : N("", !0)
|
|
5112
5100
|
]),
|
|
5113
5101
|
key: "0"
|
|
5114
5102
|
} : void 0,
|
|
5115
5103
|
w(s).length === 1 || w(u)(a.addonBefore) ? {
|
|
5116
5104
|
name: "addonBefore",
|
|
5117
|
-
fn:
|
|
5118
|
-
w(s).length === 1 ?
|
|
5105
|
+
fn: I(() => [
|
|
5106
|
+
w(s).length === 1 ? oe(y.$slots, "addonBefore", { key: 0 }) : N("", !0),
|
|
5119
5107
|
w(s).length !== 1 ? (C(), Y("span", Ys, ae(a.addonBefore), 1)) : N("", !0)
|
|
5120
5108
|
]),
|
|
5121
5109
|
key: "1"
|
|
@@ -5125,9 +5113,9 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5125
5113
|
}
|
|
5126
5114
|
}), mu = {
|
|
5127
5115
|
install: (e, n) => {
|
|
5128
|
-
e.component(
|
|
5116
|
+
e.component(La.name, La);
|
|
5129
5117
|
}
|
|
5130
|
-
}, Ws = { key: 1 }, Gs = { key: 1 },
|
|
5118
|
+
}, Ws = { key: 1 }, Gs = { key: 1 }, Ia = /* @__PURE__ */ X({
|
|
5131
5119
|
name: "SagAntdInputNumber",
|
|
5132
5120
|
inheritAttrs: !1,
|
|
5133
5121
|
__name: "SagAntdInputNumber",
|
|
@@ -5161,26 +5149,26 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5161
5149
|
},
|
|
5162
5150
|
emits: ["update:value", "change"],
|
|
5163
5151
|
setup(e, { expose: n, emit: t }) {
|
|
5164
|
-
const a = e, l = V(
|
|
5165
|
-
|
|
5166
|
-
}, c = () => l.value, d = (
|
|
5167
|
-
l.value =
|
|
5152
|
+
const a = e, l = V($.toString(a.value, null)), r = t, i = Object.keys(Le()), o = i.filter((y) => y === "addonAfter"), s = i.filter((y) => y === "addonBefore"), v = () => {
|
|
5153
|
+
g(!0);
|
|
5154
|
+
}, c = () => l.value, d = (y) => {
|
|
5155
|
+
l.value = y, g();
|
|
5168
5156
|
};
|
|
5169
|
-
|
|
5157
|
+
he(
|
|
5170
5158
|
() => a.value,
|
|
5171
|
-
(
|
|
5172
|
-
|
|
5159
|
+
(y, x) => {
|
|
5160
|
+
y !== l.value && d(y);
|
|
5173
5161
|
}
|
|
5174
5162
|
);
|
|
5175
|
-
const
|
|
5176
|
-
r("update:value", l.value),
|
|
5163
|
+
const g = (y = !1) => {
|
|
5164
|
+
r("update:value", l.value), y && r("change", l.value);
|
|
5177
5165
|
};
|
|
5178
5166
|
return n({
|
|
5179
5167
|
getValue: c,
|
|
5180
5168
|
setValue: d
|
|
5181
|
-
}), (
|
|
5169
|
+
}), (y, x) => {
|
|
5182
5170
|
const p = F("a-input-number");
|
|
5183
|
-
return C(),
|
|
5171
|
+
return C(), z(p, {
|
|
5184
5172
|
value: l.value,
|
|
5185
5173
|
"onUpdate:value": x[0] || (x[0] = (f) => l.value = f),
|
|
5186
5174
|
placeholder: a.placeholder,
|
|
@@ -5191,21 +5179,21 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5191
5179
|
precision: a.precision,
|
|
5192
5180
|
stringMode: a.stringMode,
|
|
5193
5181
|
controls: a.controls,
|
|
5194
|
-
style:
|
|
5182
|
+
style: ge(a.style),
|
|
5195
5183
|
onChange: v
|
|
5196
5184
|
}, xe({ _: 2 }, [
|
|
5197
5185
|
w(o).length === 1 || w(u)(a.addonAfter) ? {
|
|
5198
5186
|
name: "addonAfter",
|
|
5199
|
-
fn:
|
|
5200
|
-
w(o).length === 1 ?
|
|
5187
|
+
fn: I(() => [
|
|
5188
|
+
w(o).length === 1 ? oe(y.$slots, "addonAfter", { key: 0 }) : N("", !0),
|
|
5201
5189
|
w(o).length !== 1 ? (C(), Y("span", Ws, ae(a.addonAfter), 1)) : N("", !0)
|
|
5202
5190
|
]),
|
|
5203
5191
|
key: "0"
|
|
5204
5192
|
} : void 0,
|
|
5205
5193
|
w(s).length === 1 || w(u)(a.addonBefore) ? {
|
|
5206
5194
|
name: "addonBefore",
|
|
5207
|
-
fn:
|
|
5208
|
-
w(s).length === 1 ?
|
|
5195
|
+
fn: I(() => [
|
|
5196
|
+
w(s).length === 1 ? oe(y.$slots, "addonBefore", { key: 0 }) : N("", !0),
|
|
5209
5197
|
w(s).length !== 1 ? (C(), Y("span", Gs, ae(a.addonBefore), 1)) : N("", !0)
|
|
5210
5198
|
]),
|
|
5211
5199
|
key: "1"
|
|
@@ -5215,7 +5203,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5215
5203
|
}
|
|
5216
5204
|
}), gu = {
|
|
5217
5205
|
install: (e, n) => {
|
|
5218
|
-
e.component(
|
|
5206
|
+
e.component(Ia.name, Ia);
|
|
5219
5207
|
}
|
|
5220
5208
|
}, Ra = /* @__PURE__ */ X({
|
|
5221
5209
|
name: "SagAntdInputSearch",
|
|
@@ -5240,14 +5228,14 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5240
5228
|
}, i = () => {
|
|
5241
5229
|
a.value = "", l("update:value", a.value), l("suffix");
|
|
5242
5230
|
};
|
|
5243
|
-
return
|
|
5231
|
+
return he(
|
|
5244
5232
|
() => t.value,
|
|
5245
5233
|
(o) => {
|
|
5246
5234
|
a.value = o;
|
|
5247
5235
|
}
|
|
5248
5236
|
), (o, s) => {
|
|
5249
5237
|
const v = F("a-input-search");
|
|
5250
|
-
return C(),
|
|
5238
|
+
return C(), z(v, {
|
|
5251
5239
|
value: a.value,
|
|
5252
5240
|
"onUpdate:value": s[0] || (s[0] = (c) => a.value = c),
|
|
5253
5241
|
"enter-button": t.title,
|
|
@@ -5257,9 +5245,9 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5257
5245
|
}, xe({ _: 2 }, [
|
|
5258
5246
|
t.showSuffix && !t.disabled ? {
|
|
5259
5247
|
name: "suffix",
|
|
5260
|
-
fn:
|
|
5248
|
+
fn: I(() => [
|
|
5261
5249
|
Q("a", { onClick: i }, [
|
|
5262
|
-
D(
|
|
5250
|
+
D(je, { icon: "close" })
|
|
5263
5251
|
])
|
|
5264
5252
|
]),
|
|
5265
5253
|
key: "0"
|
|
@@ -5299,12 +5287,12 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5299
5287
|
},
|
|
5300
5288
|
emits: ["update:value", "change"],
|
|
5301
5289
|
setup(e, { expose: n, emit: t }) {
|
|
5302
|
-
const a = e, l = V(
|
|
5290
|
+
const a = e, l = V($.toString(a.value, null)), r = t, i = () => {
|
|
5303
5291
|
v(!0);
|
|
5304
5292
|
}, o = () => l.value, s = (c) => {
|
|
5305
5293
|
l.value = c, v();
|
|
5306
5294
|
};
|
|
5307
|
-
|
|
5295
|
+
he(
|
|
5308
5296
|
() => a.value,
|
|
5309
5297
|
(c, d) => {
|
|
5310
5298
|
c !== l.value && s(c);
|
|
@@ -5317,10 +5305,10 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5317
5305
|
getValue: o,
|
|
5318
5306
|
setValue: s
|
|
5319
5307
|
}), (c, d) => {
|
|
5320
|
-
const
|
|
5321
|
-
return C(),
|
|
5308
|
+
const g = F("a-textarea");
|
|
5309
|
+
return C(), z(g, {
|
|
5322
5310
|
value: l.value,
|
|
5323
|
-
"onUpdate:value": d[0] || (d[0] = (
|
|
5311
|
+
"onUpdate:value": d[0] || (d[0] = (y) => l.value = y),
|
|
5324
5312
|
placeholder: a.placeholder,
|
|
5325
5313
|
disabled: a.disabled,
|
|
5326
5314
|
allowClear: a.allowClear,
|
|
@@ -5328,7 +5316,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5328
5316
|
rows: a.rows,
|
|
5329
5317
|
showCount: a.showCount,
|
|
5330
5318
|
maxlength: a.maxlength,
|
|
5331
|
-
style:
|
|
5319
|
+
style: ge(a.style),
|
|
5332
5320
|
onChange: i
|
|
5333
5321
|
}, null, 8, ["value", "placeholder", "disabled", "allowClear", "autoSize", "rows", "showCount", "maxlength", "style"]);
|
|
5334
5322
|
};
|
|
@@ -5369,63 +5357,63 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5369
5357
|
},
|
|
5370
5358
|
emits: ["update:value", "update:label", "change"],
|
|
5371
5359
|
setup(e, { expose: n, emit: t }) {
|
|
5372
|
-
const a = e, l = le(A.userKeyName), r = t, i =
|
|
5373
|
-
const m =
|
|
5374
|
-
return await Sn(A.application,
|
|
5375
|
-
},
|
|
5360
|
+
const a = e, l = le(A.userKeyName), r = t, i = $.toString(a.value, null), o = a.multiple ? V(u(i) ? i.split(",") : []) : V(i), s = V(a.multiple ? [] : null), v = V(a.multiple ? {} : null), c = V([]), d = async () => {
|
|
5361
|
+
const m = ne(A.ctxPath, A.requestDictUrl);
|
|
5362
|
+
return await Sn(A.application, m, a.requestParams, l());
|
|
5363
|
+
}, g = (m, h) => h.label.toLowerCase().indexOf(m.toLowerCase()) >= 0, y = (m, h) => {
|
|
5376
5364
|
f(!0);
|
|
5377
5365
|
}, x = () => v.value, p = (m) => {
|
|
5378
5366
|
a.multiple ? o.value = u(m) ? m : [] : o.value = u(m) ? m : "", f();
|
|
5379
5367
|
}, f = (m = !1) => {
|
|
5380
|
-
r("update:value", o.value),
|
|
5381
|
-
},
|
|
5368
|
+
r("update:value", o.value), S(m);
|
|
5369
|
+
}, S = (m = !1) => {
|
|
5382
5370
|
if (u(o.value))
|
|
5383
5371
|
if (a.multiple) {
|
|
5384
|
-
const
|
|
5385
|
-
o.value.forEach((
|
|
5386
|
-
let b = c.value.filter((T) => T.value ===
|
|
5387
|
-
b.length === 1 && (
|
|
5388
|
-
}), s.value =
|
|
5372
|
+
const h = [];
|
|
5373
|
+
o.value.forEach((O) => {
|
|
5374
|
+
let b = c.value.filter((T) => T.value === O);
|
|
5375
|
+
b.length === 1 && (h.push(b[0].label), v.value[O] = b[0]);
|
|
5376
|
+
}), s.value = h;
|
|
5389
5377
|
} else {
|
|
5390
|
-
const
|
|
5391
|
-
u(
|
|
5378
|
+
const h = c.value.filter((O) => O.value === o.value);
|
|
5379
|
+
u(h) && (s.value = h[0].label, v.value = h[0]);
|
|
5392
5380
|
}
|
|
5393
5381
|
else
|
|
5394
5382
|
s.value = a.multiple ? [] : null, v.value = a.multiple ? {} : null;
|
|
5395
5383
|
r("update:label", s.value), m && r("change", v.value);
|
|
5396
5384
|
};
|
|
5397
|
-
return
|
|
5385
|
+
return he(
|
|
5398
5386
|
() => a.value,
|
|
5399
5387
|
(m) => {
|
|
5400
|
-
a.multiple ? o.value = u(m) ? m : [] : o.value = m,
|
|
5388
|
+
a.multiple ? o.value = u(m) ? m : [] : o.value = m, S();
|
|
5401
5389
|
}
|
|
5402
|
-
),
|
|
5390
|
+
), ie(() => {
|
|
5403
5391
|
d().then((m) => {
|
|
5404
|
-
c.value = m, u(a.extraOptions) && a.extraOptions?.length > 0 && c.value.unshift(...a.extraOptions), u(o.value) && !u(s.value) &&
|
|
5392
|
+
c.value = m, u(a.extraOptions) && a.extraOptions?.length > 0 && c.value.unshift(...a.extraOptions), u(o.value) && !u(s.value) && S();
|
|
5405
5393
|
});
|
|
5406
5394
|
}), n({
|
|
5407
5395
|
getSelectedOptions: x,
|
|
5408
5396
|
setValue: p
|
|
5409
|
-
}), (m,
|
|
5410
|
-
const
|
|
5397
|
+
}), (m, h) => {
|
|
5398
|
+
const O = F("a-select");
|
|
5411
5399
|
return C(), Y("div", Js, [
|
|
5412
|
-
D(
|
|
5400
|
+
D(O, {
|
|
5413
5401
|
value: w(o),
|
|
5414
|
-
"onUpdate:value":
|
|
5415
|
-
onChange:
|
|
5402
|
+
"onUpdate:value": h[0] || (h[0] = (b) => ht(o) ? o.value = b : null),
|
|
5403
|
+
onChange: y,
|
|
5416
5404
|
placeholder: "--请选择--",
|
|
5417
5405
|
allowClear: a.clearable,
|
|
5418
5406
|
mode: e.multiple ? "multiple" : "",
|
|
5419
5407
|
"max-tag-count": a.maxTagCount,
|
|
5420
5408
|
options: c.value,
|
|
5421
5409
|
"show-search": a.filterable,
|
|
5422
|
-
"filter-option":
|
|
5410
|
+
"filter-option": g,
|
|
5423
5411
|
defaultActiveFirstOption: !a.multiple,
|
|
5424
5412
|
autoClearSearchValue: !a.filterable,
|
|
5425
5413
|
listHeight: a.listHeight,
|
|
5426
|
-
getPopupContainer: (b) => w(
|
|
5414
|
+
getPopupContainer: (b) => w(Ie)(a.mountainTop, e.getPopupContainer, b),
|
|
5427
5415
|
disabled: e.disabled,
|
|
5428
|
-
style:
|
|
5416
|
+
style: ge(a.style),
|
|
5429
5417
|
size: "medium"
|
|
5430
5418
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "listHeight", "getPopupContainer", "disabled", "style"])
|
|
5431
5419
|
]);
|
|
@@ -5473,66 +5461,66 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5473
5461
|
},
|
|
5474
5462
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5475
5463
|
setup(e, { expose: n, emit: t }) {
|
|
5476
|
-
const a = e, l = V(a.value ? a.value : a.multiple ? [] : null), r = V(a.label ? a.label : a.multiple ? [] : null), i = V(a.multiple ? {} : null), o = V([]), s = V(!1), v = t, c = "请输入" + a.title + "搜索", d = async (
|
|
5464
|
+
const a = e, l = V(a.value ? a.value : a.multiple ? [] : null), r = V(a.label ? a.label : a.multiple ? [] : null), i = V(a.multiple ? {} : null), o = V([]), s = V(!1), v = t, c = "请输入" + a.title + "搜索", d = async (q) => {
|
|
5477
5465
|
if (a.corpFilter && !u(a.corpId))
|
|
5478
5466
|
return o.value = [], [];
|
|
5479
|
-
let R = { corpId: a.corpId, initValue:
|
|
5467
|
+
let R = { corpId: a.corpId, initValue: q };
|
|
5480
5468
|
Object.assign(R, a.requestParams), o.value = [], s.value = !0;
|
|
5481
|
-
const
|
|
5482
|
-
return s.value = !1, o.value =
|
|
5483
|
-
},
|
|
5484
|
-
d(null).then((
|
|
5485
|
-
v("query",
|
|
5469
|
+
const L = await Re(a.requestUrl, R);
|
|
5470
|
+
return s.value = !1, o.value = L, L;
|
|
5471
|
+
}, g = It(() => {
|
|
5472
|
+
d(null).then((q) => {
|
|
5473
|
+
v("query", q);
|
|
5486
5474
|
});
|
|
5487
|
-
}, 300),
|
|
5488
|
-
p(
|
|
5475
|
+
}, 300), y = (q) => {
|
|
5476
|
+
p(q).then(() => {
|
|
5489
5477
|
b(!0);
|
|
5490
5478
|
});
|
|
5491
|
-
}, x = (
|
|
5492
|
-
if (l.value =
|
|
5479
|
+
}, x = (q, R) => R.label.toLowerCase().indexOf(Te(q).toLowerCase()) >= 0, p = async (q) => {
|
|
5480
|
+
if (l.value = q, a.multiple) {
|
|
5493
5481
|
const R = [];
|
|
5494
|
-
l.value.forEach((
|
|
5495
|
-
let H = o.value.filter((W) => W.value ===
|
|
5496
|
-
H.length === 1 && (R.push(H[0].label), i.value[
|
|
5482
|
+
l.value.forEach((L) => {
|
|
5483
|
+
let H = o.value.filter((W) => W.value === L);
|
|
5484
|
+
H.length === 1 && (R.push(H[0].label), i.value[L] = H[0]);
|
|
5497
5485
|
}), r.value = R;
|
|
5498
5486
|
} else {
|
|
5499
|
-
let R = o.value.filter((
|
|
5487
|
+
let R = o.value.filter((L) => L.value === q);
|
|
5500
5488
|
R.length === 1 ? (r.value = R[0].label, i.value = R[0]) : (r.value = null, i.value = null);
|
|
5501
5489
|
}
|
|
5502
|
-
}, f = () => i.value,
|
|
5503
|
-
p(
|
|
5490
|
+
}, f = () => i.value, S = (q) => {
|
|
5491
|
+
p(q).then(() => {
|
|
5504
5492
|
b();
|
|
5505
5493
|
});
|
|
5506
5494
|
}, m = () => {
|
|
5507
5495
|
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, i.value = a.multiple ? {} : null, b();
|
|
5508
|
-
},
|
|
5496
|
+
}, h = async () => {
|
|
5509
5497
|
m(), o.value = [];
|
|
5510
|
-
},
|
|
5511
|
-
m(), o.value = [], await
|
|
5512
|
-
}, b = (
|
|
5513
|
-
v("update:value", l.value), v("update:label", r.value),
|
|
5514
|
-
}, T = (
|
|
5515
|
-
return
|
|
5498
|
+
}, O = async () => {
|
|
5499
|
+
m(), o.value = [], await g();
|
|
5500
|
+
}, b = (q = !1) => {
|
|
5501
|
+
v("update:value", l.value), v("update:label", r.value), q && v("change", i.value);
|
|
5502
|
+
}, T = (q, R) => a.multiple ? u(q) && !u(R) || !u(q) && u(R) ? !0 : !u(q) && !u(R) || q.length !== R.length ? !1 : !q.every((L, H) => L === R[H]) : q !== R;
|
|
5503
|
+
return he(
|
|
5516
5504
|
() => [a.corpId, a.value],
|
|
5517
|
-
async ([
|
|
5518
|
-
const W =
|
|
5519
|
-
W && (m(), await d(R)),
|
|
5505
|
+
async ([q, R], [L, H]) => {
|
|
5506
|
+
const W = q !== L, Oe = T(R, l.value);
|
|
5507
|
+
W && (m(), await d(R)), Oe && S(R);
|
|
5520
5508
|
}
|
|
5521
|
-
),
|
|
5509
|
+
), ie(async () => {
|
|
5522
5510
|
d(null);
|
|
5523
5511
|
}), n({
|
|
5524
5512
|
getSelectedOptions: f,
|
|
5525
|
-
setValue:
|
|
5526
|
-
clear:
|
|
5527
|
-
reload:
|
|
5528
|
-
}), (
|
|
5529
|
-
const
|
|
5513
|
+
setValue: S,
|
|
5514
|
+
clear: h,
|
|
5515
|
+
reload: O
|
|
5516
|
+
}), (q, R) => {
|
|
5517
|
+
const L = F("a-spin"), H = F("a-select");
|
|
5530
5518
|
return C(), Y("div", Ks, [
|
|
5531
5519
|
D(H, {
|
|
5532
5520
|
value: l.value,
|
|
5533
5521
|
"onUpdate:value": R[0] || (R[0] = (W) => l.value = W),
|
|
5534
5522
|
placeholder: c,
|
|
5535
|
-
style:
|
|
5523
|
+
style: ge(a.style),
|
|
5536
5524
|
"filter-option": x,
|
|
5537
5525
|
disabled: a.disabled,
|
|
5538
5526
|
mode: e.multiple ? "multiple" : "",
|
|
@@ -5540,14 +5528,14 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5540
5528
|
options: o.value,
|
|
5541
5529
|
allowClear: a.clearable,
|
|
5542
5530
|
listHeight: a.listHeight,
|
|
5543
|
-
getPopupContainer: (W) => w(
|
|
5544
|
-
onChange:
|
|
5531
|
+
getPopupContainer: (W) => w(Ie)(a.mountainTop, e.getPopupContainer, W),
|
|
5532
|
+
onChange: y,
|
|
5545
5533
|
"show-search": ""
|
|
5546
5534
|
}, xe({ _: 2 }, [
|
|
5547
5535
|
s.value ? {
|
|
5548
5536
|
name: "notFoundContent",
|
|
5549
|
-
fn:
|
|
5550
|
-
D(
|
|
5537
|
+
fn: I(() => [
|
|
5538
|
+
D(L, { size: "small" })
|
|
5551
5539
|
]),
|
|
5552
5540
|
key: "0"
|
|
5553
5541
|
} : void 0
|
|
@@ -5593,46 +5581,46 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5593
5581
|
},
|
|
5594
5582
|
emits: ["update:value", "update:label", "change"],
|
|
5595
5583
|
setup(e, { expose: n, emit: t }) {
|
|
5596
|
-
const a = e, l = V(a.value || null), r = V(a.label || ""), i = V({}), o = V([]), s = V(!1), v = t, c = "请输入" + a.title + "搜索", d = async (m,
|
|
5584
|
+
const a = e, l = V(a.value || null), r = V(a.label || ""), i = V({}), o = V([]), s = V(!1), v = t, c = "请输入" + a.title + "搜索", d = async (m, h = null) => {
|
|
5597
5585
|
if (o.value = [], a.corpFilter && !u(a.corpId))
|
|
5598
5586
|
return [];
|
|
5599
|
-
if (u(m) || u(
|
|
5600
|
-
let
|
|
5601
|
-
Object.assign(
|
|
5602
|
-
const b = await Re(a.requestUrl,
|
|
5587
|
+
if (u(m) || u(h)) {
|
|
5588
|
+
let O = { corpId: a.corpId, searchValue: Te(m), initValue: h };
|
|
5589
|
+
Object.assign(O, a.requestParams), s.value = !0;
|
|
5590
|
+
const b = await Re(a.requestUrl, O);
|
|
5603
5591
|
return s.value = !1, o.value = b, b;
|
|
5604
5592
|
} else
|
|
5605
5593
|
return [];
|
|
5606
|
-
},
|
|
5607
|
-
l.value = m, x(m).then((
|
|
5608
|
-
|
|
5594
|
+
}, g = (m) => {
|
|
5595
|
+
l.value = m, x(m).then((h) => {
|
|
5596
|
+
S(!0);
|
|
5609
5597
|
});
|
|
5610
|
-
},
|
|
5598
|
+
}, y = It((m) => {
|
|
5611
5599
|
d(m);
|
|
5612
5600
|
}, 500), x = async (m) => {
|
|
5613
5601
|
if (u(m)) {
|
|
5614
|
-
let
|
|
5615
|
-
return
|
|
5602
|
+
let h = o.value.filter((O) => O.value === m);
|
|
5603
|
+
return h.length === 1 ? (l.value = h[0].value, r.value = h[0].label, i.value = h[0], !0) : (l.value = null, r.value = "", i.value = null, !1);
|
|
5616
5604
|
} else
|
|
5617
5605
|
return l.value = null, r.value = "", i.value = null, !0;
|
|
5618
5606
|
}, p = () => i.value, f = (m) => {
|
|
5619
|
-
l.value = m, x(m).then((
|
|
5620
|
-
|
|
5607
|
+
l.value = m, x(m).then((h) => {
|
|
5608
|
+
h && S();
|
|
5621
5609
|
});
|
|
5622
|
-
},
|
|
5610
|
+
}, S = (m = !1) => {
|
|
5623
5611
|
v("update:value", l.value), v("update:label", r.value), m && v("change", i.value);
|
|
5624
5612
|
};
|
|
5625
|
-
return
|
|
5613
|
+
return he(
|
|
5626
5614
|
() => [a.corpId, a.value],
|
|
5627
|
-
async ([m,
|
|
5628
|
-
const T = m !==
|
|
5629
|
-
T && (o.value = [], r.value = null, l.value = null, i.value = null,
|
|
5630
|
-
R || d(
|
|
5631
|
-
f(
|
|
5615
|
+
async ([m, h], [O, b]) => {
|
|
5616
|
+
const T = m !== O, q = h !== l.value;
|
|
5617
|
+
T && (o.value = [], r.value = null, l.value = null, i.value = null, S()), q && x(h).then((R) => {
|
|
5618
|
+
R || d(h, h).then(() => {
|
|
5619
|
+
f(h);
|
|
5632
5620
|
});
|
|
5633
5621
|
});
|
|
5634
5622
|
}
|
|
5635
|
-
),
|
|
5623
|
+
), ie(async () => {
|
|
5636
5624
|
u(l.value) && (u(r.value) ? o.value = [
|
|
5637
5625
|
{
|
|
5638
5626
|
value: l.value,
|
|
@@ -5642,14 +5630,14 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5642
5630
|
}), n({
|
|
5643
5631
|
getSelectedOptions: p,
|
|
5644
5632
|
setValue: f
|
|
5645
|
-
}), (m,
|
|
5646
|
-
const
|
|
5633
|
+
}), (m, h) => {
|
|
5634
|
+
const O = F("a-spin"), b = F("a-select");
|
|
5647
5635
|
return C(), Y("div", Xs, [
|
|
5648
5636
|
D(b, {
|
|
5649
5637
|
value: l.value,
|
|
5650
|
-
"onUpdate:value":
|
|
5638
|
+
"onUpdate:value": h[0] || (h[0] = (T) => l.value = T),
|
|
5651
5639
|
placeholder: c,
|
|
5652
|
-
style:
|
|
5640
|
+
style: ge(a.style),
|
|
5653
5641
|
"filter-option": !1,
|
|
5654
5642
|
options: o.value,
|
|
5655
5643
|
disabled: a.disabled,
|
|
@@ -5657,15 +5645,15 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5657
5645
|
listHeight: a.listHeight,
|
|
5658
5646
|
"default-active-first-option": !1,
|
|
5659
5647
|
"show-arrow": !1,
|
|
5660
|
-
getPopupContainer: (T) => w(
|
|
5661
|
-
onChange:
|
|
5662
|
-
onSearch: w(
|
|
5648
|
+
getPopupContainer: (T) => w(Ie)(a.mountainTop, e.getPopupContainer, T),
|
|
5649
|
+
onChange: g,
|
|
5650
|
+
onSearch: w(y),
|
|
5663
5651
|
"show-search": ""
|
|
5664
5652
|
}, xe({ _: 2 }, [
|
|
5665
5653
|
s.value ? {
|
|
5666
5654
|
name: "notFoundContent",
|
|
5667
|
-
fn:
|
|
5668
|
-
D(
|
|
5655
|
+
fn: I(() => [
|
|
5656
|
+
D(O, { size: "small" })
|
|
5669
5657
|
]),
|
|
5670
5658
|
key: "0"
|
|
5671
5659
|
} : void 0
|
|
@@ -5690,27 +5678,27 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5690
5678
|
//
|
|
5691
5679
|
},
|
|
5692
5680
|
setup(e) {
|
|
5693
|
-
const n = e, t = Object.keys(
|
|
5681
|
+
const n = e, t = Object.keys(Le()), a = t.filter((o) => o !== "header"), l = t.filter((o) => o === "header"), r = V(n.activeKey), i = V(n.header instanceof Object ? n.header : { default: n.header });
|
|
5694
5682
|
return (o, s) => {
|
|
5695
5683
|
const v = F("a-collapse-panel"), c = F("a-collapse");
|
|
5696
|
-
return C(),
|
|
5684
|
+
return C(), z(c, {
|
|
5697
5685
|
activeKey: r.value,
|
|
5698
5686
|
"onUpdate:activeKey": s[0] || (s[0] = (d) => r.value = d),
|
|
5699
5687
|
expandIconPosition: "end",
|
|
5700
5688
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5701
5689
|
accordion: ""
|
|
5702
5690
|
}, {
|
|
5703
|
-
default:
|
|
5704
|
-
(C(!0), Y(
|
|
5691
|
+
default: I(() => [
|
|
5692
|
+
(C(!0), Y(de, null, Ce(w(a), (d) => (C(), z(v, {
|
|
5705
5693
|
key: d,
|
|
5706
5694
|
forceRender: "",
|
|
5707
5695
|
showArrow: n.showArrow
|
|
5708
5696
|
}, {
|
|
5709
|
-
header:
|
|
5710
|
-
w(l).length === 1 ?
|
|
5697
|
+
header: I(() => [
|
|
5698
|
+
w(l).length === 1 ? oe(o.$slots, "header", { key: 0 }) : (C(), Y("span", Zs, ae(i.value[d]), 1))
|
|
5711
5699
|
]),
|
|
5712
|
-
default:
|
|
5713
|
-
|
|
5700
|
+
default: I(() => [
|
|
5701
|
+
oe(o.$slots, d)
|
|
5714
5702
|
]),
|
|
5715
5703
|
_: 2
|
|
5716
5704
|
}, 1032, ["showArrow"]))), 128))
|
|
@@ -5729,7 +5717,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5729
5717
|
__name: "SagAntdSpace",
|
|
5730
5718
|
setup(e) {
|
|
5731
5719
|
return (n, t) => (C(), Y("div", Qs, [
|
|
5732
|
-
|
|
5720
|
+
oe(n.$slots, "default")
|
|
5733
5721
|
]));
|
|
5734
5722
|
}
|
|
5735
5723
|
}), wu = {
|
|
@@ -5757,14 +5745,14 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5757
5745
|
const t = e, a = V(t.checked), l = n, r = (i) => {
|
|
5758
5746
|
l("update:checked", i), l("change", i);
|
|
5759
5747
|
};
|
|
5760
|
-
return
|
|
5748
|
+
return he(
|
|
5761
5749
|
() => t.checked,
|
|
5762
5750
|
(i) => {
|
|
5763
5751
|
a.value = i;
|
|
5764
5752
|
}
|
|
5765
5753
|
), (i, o) => {
|
|
5766
5754
|
const s = F("a-switch");
|
|
5767
|
-
return C(),
|
|
5755
|
+
return C(), z(s, {
|
|
5768
5756
|
checked: a.value,
|
|
5769
5757
|
"onUpdate:checked": o[0] || (o[0] = (v) => a.value = v),
|
|
5770
5758
|
checkedValue: t.checkedValue,
|
|
@@ -5801,17 +5789,17 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5801
5789
|
},
|
|
5802
5790
|
emits: ["update:activeKey", "change"],
|
|
5803
5791
|
setup(e, { emit: n }) {
|
|
5804
|
-
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(
|
|
5792
|
+
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Le()), r = l.filter((c) => c != "rightExtra" && c != "header"), i = V(t.activeKey), o = V(t.header instanceof Object ? t.header : { default: t.header }), s = n, v = (c) => {
|
|
5805
5793
|
s("update:activeKey", c), s("change", c);
|
|
5806
5794
|
};
|
|
5807
|
-
return
|
|
5795
|
+
return he(
|
|
5808
5796
|
() => t.activeKey,
|
|
5809
5797
|
(c) => {
|
|
5810
5798
|
i.value = c;
|
|
5811
5799
|
}
|
|
5812
5800
|
), (c, d) => {
|
|
5813
|
-
const
|
|
5814
|
-
return C(),
|
|
5801
|
+
const g = F("a-tab-pane"), y = F("a-tabs");
|
|
5802
|
+
return C(), z(y, {
|
|
5815
5803
|
activeKey: i.value,
|
|
5816
5804
|
"onUpdate:activeKey": d[0] || (d[0] = (x) => i.value = x),
|
|
5817
5805
|
type: t.type,
|
|
@@ -5820,27 +5808,27 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5820
5808
|
tabBarStyle: { margin: 0, backgroundColor: w(a) },
|
|
5821
5809
|
onChange: v
|
|
5822
5810
|
}, xe({
|
|
5823
|
-
default:
|
|
5824
|
-
(C(!0), Y(
|
|
5811
|
+
default: I(() => [
|
|
5812
|
+
(C(!0), Y(de, null, Ce(w(r), (x, p) => (C(), z(g, {
|
|
5825
5813
|
key: x,
|
|
5826
5814
|
forceRender: t.forceRender && !t.notForceRender?.includes(x),
|
|
5827
|
-
style:
|
|
5815
|
+
style: ge(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5828
5816
|
}, {
|
|
5829
|
-
tab:
|
|
5817
|
+
tab: I(() => [
|
|
5830
5818
|
Q("span", {
|
|
5831
|
-
style:
|
|
5819
|
+
style: ge(p === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5832
5820
|
}, [
|
|
5833
|
-
w(l).includes("header") ?
|
|
5821
|
+
w(l).includes("header") ? oe(c.$slots, "header", {
|
|
5834
5822
|
key: 0,
|
|
5835
5823
|
tabKey: x
|
|
5836
|
-
}) : (C(), Y(
|
|
5837
|
-
D(
|
|
5838
|
-
|
|
5824
|
+
}) : (C(), Y(de, { key: 1 }, [
|
|
5825
|
+
D(je, { icon: "menu" }),
|
|
5826
|
+
ce(" " + ae(o.value[x]), 1)
|
|
5839
5827
|
], 64))
|
|
5840
5828
|
], 4)
|
|
5841
5829
|
]),
|
|
5842
|
-
default:
|
|
5843
|
-
|
|
5830
|
+
default: I(() => [
|
|
5831
|
+
oe(c.$slots, x)
|
|
5844
5832
|
]),
|
|
5845
5833
|
_: 2
|
|
5846
5834
|
}, 1032, ["forceRender", "style"]))), 128))
|
|
@@ -5849,8 +5837,8 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5849
5837
|
}, [
|
|
5850
5838
|
w(l).includes("rightExtra") ? {
|
|
5851
5839
|
name: "rightExtra",
|
|
5852
|
-
fn:
|
|
5853
|
-
|
|
5840
|
+
fn: I(() => [
|
|
5841
|
+
oe(c.$slots, "rightExtra")
|
|
5854
5842
|
]),
|
|
5855
5843
|
key: "0"
|
|
5856
5844
|
} : void 0
|
|
@@ -5870,7 +5858,7 @@ const bs = { id: "div_view_modal" }, ys = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5870
5858
|
},
|
|
5871
5859
|
setup(e) {
|
|
5872
5860
|
const n = e;
|
|
5873
|
-
return (t, a) => (C(),
|
|
5861
|
+
return (t, a) => (C(), z(je, {
|
|
5874
5862
|
icon: n.icon
|
|
5875
5863
|
}, null, 8, ["icon"]));
|
|
5876
5864
|
}
|