sag-ubmp-pc 1.0.45 → 1.0.47
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 +1292 -1296
- package/dist/sag-ubmp-pc.umd.js +5 -5
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Me, { trim as Te, debounce as
|
|
2
|
-
import { inject as
|
|
1
|
+
import Me, { trim as Te, debounce as Lt } from "xe-utils";
|
|
2
|
+
import { inject as ge, ref as M, h as Ve, getCurrentInstance as Rl, nextTick as dt, reactive as ee, defineComponent as Q, createVNode as q, openBlock as x, createElementBlock as Y, Fragment as ce, createBlock as z, unref as S, createCommentVNode as j, onMounted as oe, resolveComponent as F, isRef as gt, createSlots as xe, withCtx as L, defineAsyncComponent as El, useCssVars as Ul, useAttrs as Xa, computed as Ct, onUnmounted as Fl, withDirectives as Vt, createElementVNode as K, toDisplayString as ae, createTextVNode as ue, vShow as $t, resolveDynamicComponent as Hl, mergeProps as te, provide as qn, useSlots as Le, watch as he, renderList as Ce, renderSlot as re, toHandlers as Yl, normalizeProps as Wl, guardReactiveProps as Gl, normalizeStyle as me } from "vue";
|
|
3
3
|
import { Modal as Jl, notification as zt, message as Zl, Spin as Ql } from "ant-design-vue";
|
|
4
4
|
import T from "dayjs";
|
|
5
5
|
const ht = "SAG_UBMP_PC$", ft = {
|
|
@@ -54,12 +54,12 @@ const ht = "SAG_UBMP_PC$", ft = {
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
Object.assign(ft, Kl(window.localStorage));
|
|
57
|
-
function
|
|
57
|
+
function It(e) {
|
|
58
58
|
return function(n, t) {
|
|
59
59
|
console[e]("[sag-ubmp-pc]" + n, t);
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
const le =
|
|
62
|
+
const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
63
63
|
ExcelJS: null,
|
|
64
64
|
FileSaver: null
|
|
65
65
|
}, A = {
|
|
@@ -126,7 +126,7 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
126
126
|
maskClosable: !0
|
|
127
127
|
},
|
|
128
128
|
getPopupContainer: null
|
|
129
|
-
}, s = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Ee = (e) => e === void 0 || e === null ? !0 : e, ne = (e, n) => s(n) ? n.startsWith("/") ? n : e.endsWith("/") ? e + n : e + "/" + n : "",
|
|
129
|
+
}, s = (e) => !(e === void 0 || e === null || typeof e == "string" && e === "" || typeof e == "object" && Array.isArray(e) && e.length === 0), Ee = (e) => e === void 0 || e === null ? !0 : e, ne = (e, n) => s(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, bt = (e) => s(e) ? e + "$" : "", el = "DICT_TYPE", Rt = (e, n, t) => {
|
|
130
130
|
ar(e, el, n, t);
|
|
131
131
|
}, Et = (e, n) => lr(e, el, n), tl = "COLUMNS_SWITCH", er = (e, n, t) => {
|
|
132
132
|
al(e, tl, n, t);
|
|
@@ -160,7 +160,7 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
160
160
|
setDictDetail: function(e, n, t = A.application) {
|
|
161
161
|
return Rt(t, e, n);
|
|
162
162
|
}
|
|
163
|
-
}, Fe = "modal", lt = "open", rr = "confirm",
|
|
163
|
+
}, Fe = "modal", lt = "open", rr = "confirm", Be = "sag_ubmp_pc_modal_instance_", or = (e) => rl(e, "buttonName"), ir = (e) => rl(e, "componentParams"), rl = (e, n) => s(e) && s(e[A.buttonKeyName]) ? e[A.buttonKeyName][n] : null, sr = (e) => s(e) && s(e[A.buttonKeyName]) ? e[A.buttonKeyName] : {}, ur = (e) => e._X_ROWS, cr = (e, n, t = {}) => {
|
|
164
164
|
const { span: a, placeholder: l, defaultValue: r, disabled: o } = t;
|
|
165
165
|
return {
|
|
166
166
|
field: e,
|
|
@@ -211,8 +211,8 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
211
211
|
clearable: i,
|
|
212
212
|
filterable: u,
|
|
213
213
|
disabled: c,
|
|
214
|
-
defaultValue:
|
|
215
|
-
dictRoleType:
|
|
214
|
+
defaultValue: m,
|
|
215
|
+
dictRoleType: f,
|
|
216
216
|
selectAll: y,
|
|
217
217
|
parentNode: _
|
|
218
218
|
} = a;
|
|
@@ -226,20 +226,20 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
226
226
|
request: {
|
|
227
227
|
dictType: t,
|
|
228
228
|
parentNode: s(_) ? _ : null,
|
|
229
|
-
dictRoleType: s(
|
|
229
|
+
dictRoleType: s(f) ? f : null
|
|
230
230
|
},
|
|
231
231
|
multiple: s(o) ? o : !1,
|
|
232
232
|
clearable: s(i) ? i : !0,
|
|
233
233
|
filterable: s(u) ? u : !1,
|
|
234
234
|
selectAll: s(y) ? y : !0,
|
|
235
235
|
disabled: s(c) ? c : !1,
|
|
236
|
-
defaultValue: s(
|
|
236
|
+
defaultValue: s(m) ? m : null
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
slots: { default: "select" }
|
|
240
240
|
};
|
|
241
241
|
}, mr = (e, n, t = {}) => {
|
|
242
|
-
const { span: a, requestUrl: l, requestParams: r, defaultValue: o, multiple: i, selectAll: u, clearable: c, filterable:
|
|
242
|
+
const { span: a, requestUrl: l, requestParams: r, defaultValue: o, multiple: i, selectAll: u, clearable: c, filterable: m, disabled: f } = t;
|
|
243
243
|
return {
|
|
244
244
|
field: e,
|
|
245
245
|
title: n,
|
|
@@ -252,9 +252,9 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
252
252
|
defaultValue: s(o) ? o : null,
|
|
253
253
|
multiple: s(i) ? i : !1,
|
|
254
254
|
clearable: s(c) ? c : !0,
|
|
255
|
-
filterable: s(
|
|
255
|
+
filterable: s(m) ? m : !0,
|
|
256
256
|
selectAll: s(u) ? u : !0,
|
|
257
|
-
disabled: s(
|
|
257
|
+
disabled: s(f) ? f : !1
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
};
|
|
@@ -355,29 +355,29 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
355
355
|
instanceField: i = "",
|
|
356
356
|
minWidth: u = 120,
|
|
357
357
|
maximize: c = !0,
|
|
358
|
-
componentVue:
|
|
359
|
-
componentParams:
|
|
358
|
+
componentVue: m = !0,
|
|
359
|
+
componentParams: f = {},
|
|
360
360
|
treeNode: y = !1,
|
|
361
361
|
autoLoad: _ = !1,
|
|
362
362
|
resizable: C = !1,
|
|
363
|
-
showOverflow:
|
|
364
|
-
align:
|
|
365
|
-
type:
|
|
366
|
-
fixed:
|
|
367
|
-
width:
|
|
363
|
+
showOverflow: g,
|
|
364
|
+
align: d = "center",
|
|
365
|
+
type: h,
|
|
366
|
+
fixed: p,
|
|
367
|
+
width: O
|
|
368
368
|
} = t;
|
|
369
369
|
return {
|
|
370
370
|
field: e,
|
|
371
371
|
title: n,
|
|
372
372
|
sortable: !1,
|
|
373
|
-
width: s(
|
|
373
|
+
width: s(O) ? O : s(h) ? s(u) ? u : 120 : "auto",
|
|
374
374
|
minWidth: u,
|
|
375
375
|
resizable: C,
|
|
376
|
-
showOverflow: s(
|
|
377
|
-
align:
|
|
376
|
+
showOverflow: s(g) ? g : "title",
|
|
377
|
+
align: d,
|
|
378
378
|
headerAlign: "center",
|
|
379
|
-
type: s(
|
|
380
|
-
fixed: s(
|
|
379
|
+
type: s(h) ? h : null,
|
|
380
|
+
fixed: s(p) ? p : "",
|
|
381
381
|
formatter: s(a) ? a : "",
|
|
382
382
|
treeNode: y,
|
|
383
383
|
params: {
|
|
@@ -386,8 +386,8 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
386
386
|
title: o,
|
|
387
387
|
maximize: c,
|
|
388
388
|
autoLoad: _,
|
|
389
|
-
componentVue:
|
|
390
|
-
componentParams:
|
|
389
|
+
componentVue: m,
|
|
390
|
+
componentParams: f,
|
|
391
391
|
instanceField: i
|
|
392
392
|
},
|
|
393
393
|
slots: { default: "operate" }
|
|
@@ -460,12 +460,12 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
460
460
|
requestRadio: i = !1,
|
|
461
461
|
componentVue: u = !0,
|
|
462
462
|
componentParams: c,
|
|
463
|
-
maximize:
|
|
464
|
-
width:
|
|
463
|
+
maximize: m = !0,
|
|
464
|
+
width: f,
|
|
465
465
|
height: y,
|
|
466
466
|
auth: _,
|
|
467
467
|
autoLoad: C = !0,
|
|
468
|
-
instanceField:
|
|
468
|
+
instanceField: g = ""
|
|
469
469
|
} = n;
|
|
470
470
|
return {
|
|
471
471
|
icon: s(t) ? t : "save",
|
|
@@ -478,12 +478,12 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
478
478
|
componentVue: u,
|
|
479
479
|
componentParams: s(c) ? c : {},
|
|
480
480
|
title: s(l) ? l : "操作",
|
|
481
|
-
maximize:
|
|
481
|
+
maximize: m,
|
|
482
482
|
autoLoad: C,
|
|
483
|
-
width: s(
|
|
483
|
+
width: s(f) ? f : null,
|
|
484
484
|
height: s(y) ? y : null,
|
|
485
485
|
auth: s(_) ? _ : !0,
|
|
486
|
-
instanceField:
|
|
486
|
+
instanceField: g
|
|
487
487
|
};
|
|
488
488
|
}, Ar = (e = "", n = {}) => {
|
|
489
489
|
const { icon: t, status: a, requestTitle: l, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent: u, auth: c } = n;
|
|
@@ -551,17 +551,17 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
551
551
|
getVxePageLinkParams: ir,
|
|
552
552
|
getVxePageButtonProps: sr,
|
|
553
553
|
getVxePageRows: ur
|
|
554
|
-
},
|
|
554
|
+
}, Bn = (e) => {
|
|
555
555
|
const { mergeKey: n, seqKey: t, fields: a } = e;
|
|
556
556
|
return ({ row: r, _rowIndex: o, column: i, visibleData: u }) => {
|
|
557
557
|
if (n) {
|
|
558
558
|
const c = r[i.field] ? r[i.field] : "";
|
|
559
559
|
if (Array.isArray(a)) {
|
|
560
560
|
if (a && a.includes(i.field)) {
|
|
561
|
-
const
|
|
561
|
+
const m = u[o - 1], f = m && m[i.field] ? m[i.field] : "";
|
|
562
562
|
let y = u[o + 1];
|
|
563
563
|
const _ = y && y[i.field] ? y[i.field] : "";
|
|
564
|
-
if (
|
|
564
|
+
if (m && f === c && m[n] === r[n])
|
|
565
565
|
return { rowspan: 0, colspan: 0 };
|
|
566
566
|
{
|
|
567
567
|
let C = 1;
|
|
@@ -571,30 +571,30 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
571
571
|
return { rowspan: C, colspan: 1 };
|
|
572
572
|
}
|
|
573
573
|
} else if (!s(i.field) || i.field === t) {
|
|
574
|
-
const
|
|
575
|
-
let
|
|
576
|
-
if (
|
|
574
|
+
const m = u[o - 1];
|
|
575
|
+
let f = u[o + 1];
|
|
576
|
+
if (m && m[n] === r[n])
|
|
577
577
|
return { rowspan: 0, colspan: 0 };
|
|
578
578
|
{
|
|
579
579
|
let y = 1;
|
|
580
|
-
for (;
|
|
581
|
-
|
|
580
|
+
for (; f && f[n] === r[n]; )
|
|
581
|
+
f = u[++y + o];
|
|
582
582
|
if (y > 1)
|
|
583
583
|
return { rowspan: y, colspan: 1 };
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
} else if (s(a[i.field])) {
|
|
587
|
-
const
|
|
587
|
+
const m = a[i.field], f = u[o - 1], y = f && f[i.field] ? f[i.field] : "";
|
|
588
588
|
let _ = u[o + 1];
|
|
589
589
|
const C = _ && _[i.field] ? _[i.field] : "";
|
|
590
|
-
if (
|
|
590
|
+
if (f && y === c && f[m] === r[m])
|
|
591
591
|
return { rowspan: 0, colspan: 0 };
|
|
592
592
|
{
|
|
593
|
-
let
|
|
594
|
-
for (; _ && C === c && _[
|
|
595
|
-
_ = u[++
|
|
596
|
-
if (
|
|
597
|
-
return { rowspan:
|
|
593
|
+
let g = 1;
|
|
594
|
+
for (; _ && C === c && _[m] === r[m]; )
|
|
595
|
+
_ = u[++g + o];
|
|
596
|
+
if (g > 1)
|
|
597
|
+
return { rowspan: g, colspan: 1 };
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
}
|
|
@@ -613,8 +613,8 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
613
613
|
sortName: i.field,
|
|
614
614
|
sortType: i.order
|
|
615
615
|
}), t && t.forEach((u) => {
|
|
616
|
-
const { field: c, datas:
|
|
617
|
-
o[c] =
|
|
616
|
+
const { field: c, datas: m, values: f } = u;
|
|
617
|
+
o[c] = m ? m.join(",") : f ? f.join(",") : "";
|
|
618
618
|
}), le("表单查询参数:", o), o;
|
|
619
619
|
}, Vr = (e, n, t, a) => {
|
|
620
620
|
const l = Object.assign({}, t);
|
|
@@ -629,7 +629,7 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
629
629
|
const { field: i, datas: u, values: c } = o;
|
|
630
630
|
l[i] = u ? u.join(",") : c ? c.join(",") : "";
|
|
631
631
|
}), l;
|
|
632
|
-
},
|
|
632
|
+
}, Nn = (e, n, t = 1) => {
|
|
633
633
|
const a = document.documentElement.clientHeight * t, l = e && e.$el ? e.$el.offsetHeight : 0, r = a - l - 50;
|
|
634
634
|
n.height = r > n.minHeight ? r : n.minHeight;
|
|
635
635
|
}, Ke = (e, n, t) => {
|
|
@@ -642,7 +642,7 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
|
-
function
|
|
645
|
+
function pe(e, n) {
|
|
646
646
|
$r(e) && (e = "100%");
|
|
647
647
|
var t = zr(e);
|
|
648
648
|
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);
|
|
@@ -664,9 +664,9 @@ function xt(e) {
|
|
|
664
664
|
}
|
|
665
665
|
function qr(e, n, t) {
|
|
666
666
|
return {
|
|
667
|
-
r:
|
|
668
|
-
g:
|
|
669
|
-
b:
|
|
667
|
+
r: pe(e, 255) * 255,
|
|
668
|
+
g: pe(n, 255) * 255,
|
|
669
|
+
b: pe(t, 255) * 255
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
function Pt(e, n, t) {
|
|
@@ -674,7 +674,7 @@ function Pt(e, n, t) {
|
|
|
674
674
|
}
|
|
675
675
|
function Dr(e, n, t) {
|
|
676
676
|
var a, l, r;
|
|
677
|
-
if (e =
|
|
677
|
+
if (e = pe(e, 360), n = pe(n, 100), t = pe(t, 100), n === 0)
|
|
678
678
|
l = t, r = t, a = t;
|
|
679
679
|
else {
|
|
680
680
|
var o = t < 0.5 ? t * (1 + n) : t + n - t * n, i = 2 * t - o;
|
|
@@ -682,8 +682,8 @@ function Dr(e, n, t) {
|
|
|
682
682
|
}
|
|
683
683
|
return { r: a * 255, g: l * 255, b: r * 255 };
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
e =
|
|
685
|
+
function Br(e, n, t) {
|
|
686
|
+
e = pe(e, 255), n = pe(n, 255), t = pe(t, 255);
|
|
687
687
|
var a = Math.max(e, n, t), l = Math.min(e, n, t), r = 0, o = a, i = a - l, u = a === 0 ? 0 : i / a;
|
|
688
688
|
if (a === l)
|
|
689
689
|
r = 0;
|
|
@@ -703,12 +703,12 @@ function Nr(e, n, t) {
|
|
|
703
703
|
}
|
|
704
704
|
return { h: r, s: u, v: o };
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
e =
|
|
708
|
-
var a = Math.floor(e), l = e - a, r = t * (1 - n), o = t * (1 - l * n), i = t * (1 - (1 - l) * n), u = a % 6, c = [t, o, r, r, i, t][u],
|
|
709
|
-
return { r: c * 255, g:
|
|
706
|
+
function Nr(e, n, t) {
|
|
707
|
+
e = pe(e, 360) * 6, n = pe(n, 100), t = pe(t, 100);
|
|
708
|
+
var a = Math.floor(e), l = e - a, r = t * (1 - n), o = t * (1 - l * n), i = t * (1 - (1 - l) * n), u = a % 6, c = [t, o, r, r, i, t][u], m = [i, t, t, o, r, r][u], f = [r, r, i, t, t, o][u];
|
|
709
|
+
return { r: c * 255, g: m * 255, b: f * 255 };
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Lr(e, n, t, a) {
|
|
712
712
|
var l = [
|
|
713
713
|
xt(Math.round(e).toString(16)),
|
|
714
714
|
xt(Math.round(n).toString(16)),
|
|
@@ -716,13 +716,13 @@ function Ir(e, n, t, a) {
|
|
|
716
716
|
];
|
|
717
717
|
return l.join("");
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
return
|
|
719
|
+
function Ln(e) {
|
|
720
|
+
return fe(e) / 255;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function fe(e) {
|
|
723
723
|
return parseInt(e, 16);
|
|
724
724
|
}
|
|
725
|
-
var
|
|
725
|
+
var In = {
|
|
726
726
|
aliceblue: "#f0f8ff",
|
|
727
727
|
antiquewhite: "#faebd7",
|
|
728
728
|
aqua: "#00ffff",
|
|
@@ -874,7 +874,7 @@ var Ln = {
|
|
|
874
874
|
};
|
|
875
875
|
function Ue(e) {
|
|
876
876
|
var n = { r: 0, g: 0, b: 0 }, t = 1, a = null, l = null, r = null, o = !1, i = !1;
|
|
877
|
-
return typeof e == "string" && (e = Er(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (n = qr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (a = et(e.s), l = et(e.v), n =
|
|
877
|
+
return typeof e == "string" && (e = Er(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (n = qr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (a = et(e.s), l = et(e.v), n = Nr(e.h, a, l), o = !0, i = "hsv") : Ae(e.h) && Ae(e.s) && Ae(e.l) && (a = et(e.s), r = et(e.l), n = Dr(e.h, a, r), o = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = jr(t), {
|
|
878
878
|
ok: o,
|
|
879
879
|
format: e.format || i,
|
|
880
880
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -883,7 +883,7 @@ function Ue(e) {
|
|
|
883
883
|
a: t
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
|
-
var
|
|
886
|
+
var Ir = "[-\\+]?\\d+%?", Rr = "[-\\+]?\\d*\\.\\d+%?", $e = "(?:".concat(Rr, ")|(?:").concat(Ir, ")"), kt = "[\\s|\\(]+(".concat($e, ")[,|\\s]+(").concat($e, ")[,|\\s]+(").concat($e, ")\\s*\\)?"), At = "[\\s|\\(]+(".concat($e, ")[,|\\s]+(").concat($e, ")[,|\\s]+(").concat($e, ")[,|\\s]+(").concat($e, ")\\s*\\)?"), ye = {
|
|
887
887
|
CSS_UNIT: new RegExp($e),
|
|
888
888
|
rgb: new RegExp("rgb" + kt),
|
|
889
889
|
rgba: new RegExp("rgba" + At),
|
|
@@ -900,37 +900,37 @@ function Er(e) {
|
|
|
900
900
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
901
901
|
return !1;
|
|
902
902
|
var n = !1;
|
|
903
|
-
if (
|
|
904
|
-
e =
|
|
903
|
+
if (In[e])
|
|
904
|
+
e = In[e], n = !0;
|
|
905
905
|
else if (e === "transparent")
|
|
906
906
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
907
|
-
var t =
|
|
908
|
-
return t ? { r: t[1], g: t[2], b: t[3] } : (t =
|
|
909
|
-
r:
|
|
910
|
-
g:
|
|
911
|
-
b:
|
|
912
|
-
a:
|
|
907
|
+
var t = ye.rgb.exec(e);
|
|
908
|
+
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 ? {
|
|
909
|
+
r: fe(t[1]),
|
|
910
|
+
g: fe(t[2]),
|
|
911
|
+
b: fe(t[3]),
|
|
912
|
+
a: Ln(t[4]),
|
|
913
913
|
format: n ? "name" : "hex8"
|
|
914
|
-
} : (t =
|
|
915
|
-
r:
|
|
916
|
-
g:
|
|
917
|
-
b:
|
|
914
|
+
} : (t = ye.hex6.exec(e), t ? {
|
|
915
|
+
r: fe(t[1]),
|
|
916
|
+
g: fe(t[2]),
|
|
917
|
+
b: fe(t[3]),
|
|
918
918
|
format: n ? "name" : "hex"
|
|
919
|
-
} : (t =
|
|
920
|
-
r:
|
|
921
|
-
g:
|
|
922
|
-
b:
|
|
923
|
-
a:
|
|
919
|
+
} : (t = ye.hex4.exec(e), t ? {
|
|
920
|
+
r: fe(t[1] + t[1]),
|
|
921
|
+
g: fe(t[2] + t[2]),
|
|
922
|
+
b: fe(t[3] + t[3]),
|
|
923
|
+
a: Ln(t[4] + t[4]),
|
|
924
924
|
format: n ? "name" : "hex8"
|
|
925
|
-
} : (t =
|
|
926
|
-
r:
|
|
927
|
-
g:
|
|
928
|
-
b:
|
|
925
|
+
} : (t = ye.hex3.exec(e), t ? {
|
|
926
|
+
r: fe(t[1] + t[1]),
|
|
927
|
+
g: fe(t[2] + t[2]),
|
|
928
|
+
b: fe(t[3] + t[3]),
|
|
929
929
|
format: n ? "name" : "hex"
|
|
930
930
|
} : !1)))))))));
|
|
931
931
|
}
|
|
932
932
|
function Ae(e) {
|
|
933
|
-
return !!
|
|
933
|
+
return !!ye.CSS_UNIT.exec(String(e));
|
|
934
934
|
}
|
|
935
935
|
var tt = 2, Rn = 0.16, Ur = 0.05, Fr = 0.05, Hr = 0.15, ul = 5, cl = 4, Yr = [{
|
|
936
936
|
index: 7,
|
|
@@ -964,7 +964,7 @@ var tt = 2, Rn = 0.16, Ur = 0.05, Fr = 0.05, Hr = 0.15, ul = 5, cl = 4, Yr = [{
|
|
|
964
964
|
opacity: 0.98
|
|
965
965
|
}];
|
|
966
966
|
function En(e) {
|
|
967
|
-
var n = e.r, t = e.g, a = e.b, l =
|
|
967
|
+
var n = e.r, t = e.g, a = e.b, l = Br(n, t, a);
|
|
968
968
|
return {
|
|
969
969
|
h: l.h * 360,
|
|
970
970
|
s: l.s,
|
|
@@ -973,7 +973,7 @@ function En(e) {
|
|
|
973
973
|
}
|
|
974
974
|
function nt(e) {
|
|
975
975
|
var n = e.r, t = e.g, a = e.b;
|
|
976
|
-
return "#".concat(
|
|
976
|
+
return "#".concat(Lr(n, t, a));
|
|
977
977
|
}
|
|
978
978
|
function Wr(e, n, t) {
|
|
979
979
|
var a = t / 100, l = {
|
|
@@ -1015,8 +1015,8 @@ function qt(e) {
|
|
|
1015
1015
|
}));
|
|
1016
1016
|
t.push(c);
|
|
1017
1017
|
}
|
|
1018
|
-
return n.theme === "dark" ? Yr.map(function(
|
|
1019
|
-
var
|
|
1018
|
+
return n.theme === "dark" ? Yr.map(function(m) {
|
|
1019
|
+
var f = m.index, y = m.opacity, _ = nt(Wr(Ue(n.backgroundColor || "#141414"), Ue(t[f]), y * 100));
|
|
1020
1020
|
return _;
|
|
1021
1021
|
}) : t;
|
|
1022
1022
|
}
|
|
@@ -1042,7 +1042,7 @@ Object.keys(Tt).forEach(function(e) {
|
|
|
1042
1042
|
}), Mt[e].primary = Mt[e][5];
|
|
1043
1043
|
});
|
|
1044
1044
|
var Gr = rt.blue, Jr = /* @__PURE__ */ Symbol("iconContext"), dl = function() {
|
|
1045
|
-
return
|
|
1045
|
+
return ge(Jr, {
|
|
1046
1046
|
prefixCls: M("anticon"),
|
|
1047
1047
|
rootClassName: M(""),
|
|
1048
1048
|
csp: M()
|
|
@@ -1138,15 +1138,15 @@ function lo(e, n) {
|
|
|
1138
1138
|
function Gn(e) {
|
|
1139
1139
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Bt(e, n, t) {
|
|
1142
1142
|
return t ? Ve(e.tag, Wn({
|
|
1143
1143
|
key: n
|
|
1144
1144
|
}, t, e.attrs), (e.children || []).map(function(a, l) {
|
|
1145
|
-
return
|
|
1145
|
+
return Bt(a, "".concat(n, "-").concat(e.tag, "-").concat(l));
|
|
1146
1146
|
})) : Ve(e.tag, Wn({
|
|
1147
1147
|
key: n
|
|
1148
1148
|
}, e.attrs), (e.children || []).map(function(a, l) {
|
|
1149
|
-
return
|
|
1149
|
+
return Bt(a, "".concat(n, "-").concat(e.tag, "-").concat(l));
|
|
1150
1150
|
}));
|
|
1151
1151
|
}
|
|
1152
1152
|
function gl(e) {
|
|
@@ -1285,7 +1285,7 @@ var je = function(n, t) {
|
|
|
1285
1285
|
var c = l;
|
|
1286
1286
|
return c && typeof c.icon == "function" && (c = ot({}, c, {
|
|
1287
1287
|
icon: c.icon(u.primaryColor, u.secondaryColor)
|
|
1288
|
-
})),
|
|
1288
|
+
})), Bt(c.icon, "svg-".concat(c.name), ot({}, i, {
|
|
1289
1289
|
"data-icon": c.name,
|
|
1290
1290
|
width: "1em",
|
|
1291
1291
|
height: "1em",
|
|
@@ -1441,25 +1441,25 @@ function Mo(e, n) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
bl(Gr.primary);
|
|
1443
1443
|
var J = function(n, t) {
|
|
1444
|
-
var a, l = Qn({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, u = l.rotate, c = l.tabindex,
|
|
1445
|
-
|
|
1446
|
-
var
|
|
1444
|
+
var a, l = Qn({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, u = l.rotate, c = l.tabindex, m = l.twoToneColor, f = l.onClick, y = To(l, _o), _ = dl(), C = _.prefixCls, g = _.rootClassName, d = (a = {}, He(a, g.value, !!g.value), He(a, C.value, !0), He(a, "".concat(C.value, "-").concat(o.name), !!o.name), He(a, "".concat(C.value, "-spin"), !!i || o.name === "loading"), a), h = c;
|
|
1445
|
+
h === void 0 && f && (h = -1);
|
|
1446
|
+
var p = u ? {
|
|
1447
1447
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1448
1448
|
transform: "rotate(".concat(u, "deg)")
|
|
1449
|
-
} : void 0,
|
|
1450
|
-
return
|
|
1449
|
+
} : void 0, O = hl(m), b = Co(O, 2), v = b[0], B = b[1];
|
|
1450
|
+
return q("span", Qn({
|
|
1451
1451
|
role: "img",
|
|
1452
1452
|
"aria-label": o.name
|
|
1453
1453
|
}, y, {
|
|
1454
|
-
onClick:
|
|
1455
|
-
class: [
|
|
1456
|
-
tabindex:
|
|
1457
|
-
}), [
|
|
1454
|
+
onClick: f,
|
|
1455
|
+
class: [d, r],
|
|
1456
|
+
tabindex: h
|
|
1457
|
+
}), [q(je, {
|
|
1458
1458
|
icon: o,
|
|
1459
|
-
primaryColor:
|
|
1460
|
-
secondaryColor:
|
|
1461
|
-
style:
|
|
1462
|
-
}, null),
|
|
1459
|
+
primaryColor: v,
|
|
1460
|
+
secondaryColor: B,
|
|
1461
|
+
style: p
|
|
1462
|
+
}, null), q(wo, null, null)]);
|
|
1463
1463
|
};
|
|
1464
1464
|
J.props = {
|
|
1465
1465
|
spin: Boolean,
|
|
@@ -1488,7 +1488,7 @@ function $o(e, n, t) {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
var Ht = function(n, t) {
|
|
1490
1490
|
var a = Xn({}, n, t.attrs);
|
|
1491
|
-
return
|
|
1491
|
+
return q(J, Xn({}, a, {
|
|
1492
1492
|
icon: Vo
|
|
1493
1493
|
}), null);
|
|
1494
1494
|
};
|
|
@@ -1511,7 +1511,7 @@ function jo(e, n, t) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
var Yt = function(n, t) {
|
|
1513
1513
|
var a = Kn({}, n, t.attrs);
|
|
1514
|
-
return
|
|
1514
|
+
return q(J, Kn({}, a, {
|
|
1515
1515
|
icon: zo
|
|
1516
1516
|
}), null);
|
|
1517
1517
|
};
|
|
@@ -1534,54 +1534,54 @@ function Do(e, n, t) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
var Wt = function(n, t) {
|
|
1536
1536
|
var a = ea({}, n, t.attrs);
|
|
1537
|
-
return
|
|
1537
|
+
return q(J, ea({}, a, {
|
|
1538
1538
|
icon: qo
|
|
1539
1539
|
}), null);
|
|
1540
1540
|
};
|
|
1541
1541
|
Wt.displayName = "CloseOutlined";
|
|
1542
1542
|
Wt.inheritAttrs = !1;
|
|
1543
|
-
var
|
|
1543
|
+
var Bo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" } }, { tag: "path", attrs: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" } }] }, name: "cloud-upload", theme: "outlined" };
|
|
1544
1544
|
function ta(e) {
|
|
1545
1545
|
for (var n = 1; n < arguments.length; n++) {
|
|
1546
1546
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1547
1547
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1548
1548
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1549
1549
|
}))), a.forEach(function(l) {
|
|
1550
|
-
|
|
1550
|
+
No(e, l, t[l]);
|
|
1551
1551
|
});
|
|
1552
1552
|
}
|
|
1553
1553
|
return e;
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function No(e, n, t) {
|
|
1556
1556
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1557
1557
|
}
|
|
1558
1558
|
var Gt = function(n, t) {
|
|
1559
1559
|
var a = ta({}, n, t.attrs);
|
|
1560
|
-
return
|
|
1561
|
-
icon:
|
|
1560
|
+
return q(J, ta({}, a, {
|
|
1561
|
+
icon: Bo
|
|
1562
1562
|
}), null);
|
|
1563
1563
|
};
|
|
1564
1564
|
Gt.displayName = "CloudUploadOutlined";
|
|
1565
1565
|
Gt.inheritAttrs = !1;
|
|
1566
|
-
var
|
|
1566
|
+
var Lo = { 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" };
|
|
1567
1567
|
function na(e) {
|
|
1568
1568
|
for (var n = 1; n < arguments.length; n++) {
|
|
1569
1569
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1570
1570
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1571
1571
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1572
1572
|
}))), a.forEach(function(l) {
|
|
1573
|
-
|
|
1573
|
+
Io(e, l, t[l]);
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
return e;
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function Io(e, n, t) {
|
|
1579
1579
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1580
1580
|
}
|
|
1581
1581
|
var Jt = function(n, t) {
|
|
1582
1582
|
var a = na({}, n, t.attrs);
|
|
1583
|
-
return
|
|
1584
|
-
icon:
|
|
1583
|
+
return q(J, na({}, a, {
|
|
1584
|
+
icon: Lo
|
|
1585
1585
|
}), null);
|
|
1586
1586
|
};
|
|
1587
1587
|
Jt.displayName = "CopyOutlined";
|
|
@@ -1603,7 +1603,7 @@ function Eo(e, n, t) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
var Zt = function(n, t) {
|
|
1605
1605
|
var a = aa({}, n, t.attrs);
|
|
1606
|
-
return
|
|
1606
|
+
return q(J, aa({}, a, {
|
|
1607
1607
|
icon: Ro
|
|
1608
1608
|
}), null);
|
|
1609
1609
|
};
|
|
@@ -1626,7 +1626,7 @@ function Fo(e, n, t) {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
var yt = function(n, t) {
|
|
1628
1628
|
var a = la({}, n, t.attrs);
|
|
1629
|
-
return
|
|
1629
|
+
return q(J, la({}, a, {
|
|
1630
1630
|
icon: Uo
|
|
1631
1631
|
}), null);
|
|
1632
1632
|
};
|
|
@@ -1649,7 +1649,7 @@ function Yo(e, n, t) {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
var Qt = function(n, t) {
|
|
1651
1651
|
var a = ra({}, n, t.attrs);
|
|
1652
|
-
return
|
|
1652
|
+
return q(J, ra({}, a, {
|
|
1653
1653
|
icon: Ho
|
|
1654
1654
|
}), null);
|
|
1655
1655
|
};
|
|
@@ -1672,7 +1672,7 @@ function Go(e, n, t) {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
var Xt = function(n, t) {
|
|
1674
1674
|
var a = oa({}, n, t.attrs);
|
|
1675
|
-
return
|
|
1675
|
+
return q(J, oa({}, a, {
|
|
1676
1676
|
icon: Wo
|
|
1677
1677
|
}), null);
|
|
1678
1678
|
};
|
|
@@ -1695,7 +1695,7 @@ function Zo(e, n, t) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
var Kt = function(n, t) {
|
|
1697
1697
|
var a = ia({}, n, t.attrs);
|
|
1698
|
-
return
|
|
1698
|
+
return q(J, ia({}, a, {
|
|
1699
1699
|
icon: Jo
|
|
1700
1700
|
}), null);
|
|
1701
1701
|
};
|
|
@@ -1718,7 +1718,7 @@ function Xo(e, n, t) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
var en = function(n, t) {
|
|
1720
1720
|
var a = sa({}, n, t.attrs);
|
|
1721
|
-
return
|
|
1721
|
+
return q(J, sa({}, a, {
|
|
1722
1722
|
icon: Qo
|
|
1723
1723
|
}), null);
|
|
1724
1724
|
};
|
|
@@ -1741,7 +1741,7 @@ function ei(e, n, t) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
var tn = function(n, t) {
|
|
1743
1743
|
var a = ua({}, n, t.attrs);
|
|
1744
|
-
return
|
|
1744
|
+
return q(J, ua({}, a, {
|
|
1745
1745
|
icon: Ko
|
|
1746
1746
|
}), null);
|
|
1747
1747
|
};
|
|
@@ -1764,7 +1764,7 @@ function ni(e, n, t) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
var nn = function(n, t) {
|
|
1766
1766
|
var a = ca({}, n, t.attrs);
|
|
1767
|
-
return
|
|
1767
|
+
return q(J, ca({}, a, {
|
|
1768
1768
|
icon: ti
|
|
1769
1769
|
}), null);
|
|
1770
1770
|
};
|
|
@@ -1787,7 +1787,7 @@ function li(e, n, t) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
var an = function(n, t) {
|
|
1789
1789
|
var a = da({}, n, t.attrs);
|
|
1790
|
-
return
|
|
1790
|
+
return q(J, da({}, a, {
|
|
1791
1791
|
icon: ai
|
|
1792
1792
|
}), null);
|
|
1793
1793
|
};
|
|
@@ -1810,7 +1810,7 @@ function oi(e, n, t) {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
var ln = function(n, t) {
|
|
1812
1812
|
var a = fa({}, n, t.attrs);
|
|
1813
|
-
return
|
|
1813
|
+
return q(J, fa({}, a, {
|
|
1814
1814
|
icon: ri
|
|
1815
1815
|
}), null);
|
|
1816
1816
|
};
|
|
@@ -1833,7 +1833,7 @@ function si(e, n, t) {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
var rn = function(n, t) {
|
|
1835
1835
|
var a = pa({}, n, t.attrs);
|
|
1836
|
-
return
|
|
1836
|
+
return q(J, pa({}, a, {
|
|
1837
1837
|
icon: ii
|
|
1838
1838
|
}), null);
|
|
1839
1839
|
};
|
|
@@ -1856,7 +1856,7 @@ function ci(e, n, t) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
var on = function(n, t) {
|
|
1858
1858
|
var a = ma({}, n, t.attrs);
|
|
1859
|
-
return
|
|
1859
|
+
return q(J, ma({}, a, {
|
|
1860
1860
|
icon: ui
|
|
1861
1861
|
}), null);
|
|
1862
1862
|
};
|
|
@@ -1879,7 +1879,7 @@ function fi(e, n, t) {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
var sn = function(n, t) {
|
|
1881
1881
|
var a = ga({}, n, t.attrs);
|
|
1882
|
-
return
|
|
1882
|
+
return q(J, ga({}, a, {
|
|
1883
1883
|
icon: di
|
|
1884
1884
|
}), null);
|
|
1885
1885
|
};
|
|
@@ -1902,7 +1902,7 @@ function mi(e, n, t) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
var un = function(n, t) {
|
|
1904
1904
|
var a = ha({}, n, t.attrs);
|
|
1905
|
-
return
|
|
1905
|
+
return q(J, ha({}, a, {
|
|
1906
1906
|
icon: pi
|
|
1907
1907
|
}), null);
|
|
1908
1908
|
};
|
|
@@ -1925,7 +1925,7 @@ function hi(e, n, t) {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
var cn = function(n, t) {
|
|
1927
1927
|
var a = va({}, n, t.attrs);
|
|
1928
|
-
return
|
|
1928
|
+
return q(J, va({}, a, {
|
|
1929
1929
|
icon: gi
|
|
1930
1930
|
}), null);
|
|
1931
1931
|
};
|
|
@@ -1948,7 +1948,7 @@ function bi(e, n, t) {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
var dn = function(n, t) {
|
|
1950
1950
|
var a = ba({}, n, t.attrs);
|
|
1951
|
-
return
|
|
1951
|
+
return q(J, ba({}, a, {
|
|
1952
1952
|
icon: vi
|
|
1953
1953
|
}), null);
|
|
1954
1954
|
};
|
|
@@ -1971,7 +1971,7 @@ function Si(e, n, t) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
var fn = function(n, t) {
|
|
1973
1973
|
var a = ya({}, n, t.attrs);
|
|
1974
|
-
return
|
|
1974
|
+
return q(J, ya({}, a, {
|
|
1975
1975
|
icon: yi
|
|
1976
1976
|
}), null);
|
|
1977
1977
|
};
|
|
@@ -1994,7 +1994,7 @@ function wi(e, n, t) {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
var pn = function(n, t) {
|
|
1996
1996
|
var a = Sa({}, n, t.attrs);
|
|
1997
|
-
return
|
|
1997
|
+
return q(J, Sa({}, a, {
|
|
1998
1998
|
icon: Oi
|
|
1999
1999
|
}), null);
|
|
2000
2000
|
};
|
|
@@ -2017,7 +2017,7 @@ function Ci(e, n, t) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
var mn = function(n, t) {
|
|
2019
2019
|
var a = Oa({}, n, t.attrs);
|
|
2020
|
-
return
|
|
2020
|
+
return q(J, Oa({}, a, {
|
|
2021
2021
|
icon: _i
|
|
2022
2022
|
}), null);
|
|
2023
2023
|
};
|
|
@@ -2040,7 +2040,7 @@ function Pi(e, n, t) {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
var gn = function(n, t) {
|
|
2042
2042
|
var a = wa({}, n, t.attrs);
|
|
2043
|
-
return
|
|
2043
|
+
return q(J, wa({}, a, {
|
|
2044
2044
|
icon: xi
|
|
2045
2045
|
}), null);
|
|
2046
2046
|
};
|
|
@@ -2063,7 +2063,7 @@ function Ai(e, n, t) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
var hn = function(n, t) {
|
|
2065
2065
|
var a = _a({}, n, t.attrs);
|
|
2066
|
-
return
|
|
2066
|
+
return q(J, _a({}, a, {
|
|
2067
2067
|
icon: ki
|
|
2068
2068
|
}), null);
|
|
2069
2069
|
};
|
|
@@ -2086,7 +2086,7 @@ function Mi(e, n, t) {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
var vn = function(n, t) {
|
|
2088
2088
|
var a = Ca({}, n, t.attrs);
|
|
2089
|
-
return
|
|
2089
|
+
return q(J, Ca({}, a, {
|
|
2090
2090
|
icon: Ti
|
|
2091
2091
|
}), null);
|
|
2092
2092
|
};
|
|
@@ -2109,7 +2109,7 @@ function $i(e, n, t) {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
var bn = function(n, t) {
|
|
2111
2111
|
var a = xa({}, n, t.attrs);
|
|
2112
|
-
return
|
|
2112
|
+
return q(J, xa({}, a, {
|
|
2113
2113
|
icon: Vi
|
|
2114
2114
|
}), null);
|
|
2115
2115
|
};
|
|
@@ -2132,7 +2132,7 @@ function ji(e, n, t) {
|
|
|
2132
2132
|
}
|
|
2133
2133
|
var yn = function(n, t) {
|
|
2134
2134
|
var a = Pa({}, n, t.attrs);
|
|
2135
|
-
return
|
|
2135
|
+
return q(J, Pa({}, a, {
|
|
2136
2136
|
icon: zi
|
|
2137
2137
|
}), null);
|
|
2138
2138
|
};
|
|
@@ -2155,13 +2155,13 @@ function Di(e, n, t) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
var Sn = function(n, t) {
|
|
2157
2157
|
var a = ka({}, n, t.attrs);
|
|
2158
|
-
return
|
|
2158
|
+
return q(J, ka({}, a, {
|
|
2159
2159
|
icon: qi
|
|
2160
2160
|
}), null);
|
|
2161
2161
|
};
|
|
2162
2162
|
Sn.displayName = "UserOutlined";
|
|
2163
2163
|
Sn.inheritAttrs = !1;
|
|
2164
|
-
const
|
|
2164
|
+
const Bi = (e) => {
|
|
2165
2165
|
const n = document.createElement("iframe");
|
|
2166
2166
|
n.style.display = "none", n.style.height = "0", n.src = e, document.body.appendChild(n), setTimeout(() => {
|
|
2167
2167
|
n.remove();
|
|
@@ -2182,7 +2182,7 @@ const Ni = (e) => {
|
|
|
2182
2182
|
]) : e;
|
|
2183
2183
|
Jl.confirm({
|
|
2184
2184
|
title: "操作确认",
|
|
2185
|
-
icon:
|
|
2185
|
+
icon: q(Kt),
|
|
2186
2186
|
content: a,
|
|
2187
2187
|
okText: "确认",
|
|
2188
2188
|
cancelText: "取消",
|
|
@@ -2193,7 +2193,7 @@ const Ni = (e) => {
|
|
|
2193
2193
|
onCancel() {
|
|
2194
2194
|
}
|
|
2195
2195
|
});
|
|
2196
|
-
},
|
|
2196
|
+
}, E = (e, n) => e != null && e !== "" ? e : n, Ni = (e, n, t) => {
|
|
2197
2197
|
e ? zt.success({
|
|
2198
2198
|
message: "操作成功",
|
|
2199
2199
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -2205,12 +2205,12 @@ const Ni = (e) => {
|
|
|
2205
2205
|
whiteSpace: "pre-wrap"
|
|
2206
2206
|
}
|
|
2207
2207
|
});
|
|
2208
|
-
},
|
|
2208
|
+
}, Se = (e) => {
|
|
2209
2209
|
zt.warning({
|
|
2210
2210
|
message: "操作提示",
|
|
2211
2211
|
description: e
|
|
2212
2212
|
});
|
|
2213
|
-
}, qe = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle",
|
|
2213
|
+
}, qe = (e) => e === "mini" ? "small" : e === "small" ? "middle" : e === "medium" ? "large" : "middle", Li = (e) => {
|
|
2214
2214
|
const n = /{([^}]+)}/g, t = e.match(n);
|
|
2215
2215
|
return t ? t.map((a) => a.slice(1, -1)) : [];
|
|
2216
2216
|
}, We = async (e, n) => A.requestPlugin != null && typeof A.requestPlugin == "function" ? await A.requestPlugin(e, n) : (vt("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"), null), On = async (e, n, t) => {
|
|
@@ -2250,7 +2250,7 @@ const Ni = (e) => {
|
|
|
2250
2250
|
return null;
|
|
2251
2251
|
}, Aa = (e, n, t, a, l = !1) => {
|
|
2252
2252
|
n.loading = !0, We(t, a).then((r) => {
|
|
2253
|
-
if (n.loading = !1, (A.messageResp || r.success) &&
|
|
2253
|
+
if (n.loading = !1, (A.messageResp || r.success) && Ni(r.success, r.message), r.success || l) {
|
|
2254
2254
|
const o = e.value;
|
|
2255
2255
|
o && o.commitProxy("query");
|
|
2256
2256
|
}
|
|
@@ -2258,218 +2258,218 @@ const Ni = (e) => {
|
|
|
2258
2258
|
n.loading = !1, Ka("列表数据请求服务器失败", r);
|
|
2259
2259
|
});
|
|
2260
2260
|
};
|
|
2261
|
-
function
|
|
2262
|
-
const { gridRef: n, targetModal: t, modalList: a, gridOptions: l, pageOptions: r, formData: o, pageModal: i } = e, u = async (
|
|
2263
|
-
if (!s(
|
|
2264
|
-
if (
|
|
2265
|
-
const
|
|
2266
|
-
if (
|
|
2261
|
+
function Ii(e) {
|
|
2262
|
+
const { gridRef: n, targetModal: t, modalList: a, gridOptions: l, pageOptions: r, formData: o, pageModal: i } = e, u = async (g) => {
|
|
2263
|
+
if (!s(g.requestType) || typeof g.requestType == "string")
|
|
2264
|
+
if (g.requestType === "custom") {
|
|
2265
|
+
const d = await C(g);
|
|
2266
|
+
if (g.requestRow && !s(d))
|
|
2267
2267
|
return;
|
|
2268
|
-
r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, item:
|
|
2268
|
+
r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, item: g, data: d });
|
|
2269
2269
|
} else
|
|
2270
|
-
y(o,
|
|
2270
|
+
y(o, g);
|
|
2271
2271
|
else {
|
|
2272
|
-
const
|
|
2273
|
-
if (
|
|
2272
|
+
const d = await C(g);
|
|
2273
|
+
if (g.requestRow && !s(d))
|
|
2274
2274
|
return;
|
|
2275
|
-
|
|
2275
|
+
g.requestType({ gridRef: n, gridOptions: l, formData: o, item: g, data: d });
|
|
2276
2276
|
}
|
|
2277
|
-
}, c = (
|
|
2278
|
-
!s(
|
|
2279
|
-
},
|
|
2280
|
-
const
|
|
2281
|
-
!s(
|
|
2282
|
-
},
|
|
2283
|
-
if (s(
|
|
2284
|
-
const
|
|
2285
|
-
if (
|
|
2286
|
-
|
|
2277
|
+
}, c = (g, d) => {
|
|
2278
|
+
!s(g.requestType) || typeof g.requestType == "string" ? g.requestType === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, item: g, row: d }) : _(g, d) : g.requestType({ gridRef: n, gridOptions: l, formData: o, item: g, row: d });
|
|
2279
|
+
}, m = (g, d) => {
|
|
2280
|
+
const h = d.params.requestType;
|
|
2281
|
+
!s(h) || typeof h == "string" ? h === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, column: d, row: g }) : f(g, d) : h({ gridRef: n, gridOptions: l, formData: o, column: d, row: g });
|
|
2282
|
+
}, f = (g, d) => {
|
|
2283
|
+
if (s(d.params.instanceField)) {
|
|
2284
|
+
const h = {};
|
|
2285
|
+
if (h.instanceValue = g[d.params.instanceField], h.instanceId = Be + h.instanceValue, h.title = E(d.params.title, i.title), h.width = E(d.params.width, i.width), h.height = E(d.params.height, i.height), h.maximize = E(d.params.maximize, !1), h.autoLoad = E(d.params.autoLoad, !1), h.componentVue = E(d.params.componentVue, i.componentVue), h.componentUrl = d.params.requestUrl, h.componentVue)
|
|
2286
|
+
g[A.buttonKeyName] = d.params;
|
|
2287
2287
|
else {
|
|
2288
|
-
let
|
|
2289
|
-
for (const
|
|
2290
|
-
|
|
2291
|
-
|
|
2288
|
+
let O = ne(r.ctxPath, h.componentUrl);
|
|
2289
|
+
for (const b in g)
|
|
2290
|
+
O = O.replace("{" + b + "}", g[b]);
|
|
2291
|
+
h.componentUrl = O;
|
|
2292
2292
|
}
|
|
2293
|
-
|
|
2294
|
-
const
|
|
2295
|
-
if (s(
|
|
2296
|
-
if (a.value[
|
|
2297
|
-
|
|
2293
|
+
h.componentParams = g, h.visible = !0;
|
|
2294
|
+
const p = a.value.findIndex((O) => O.instanceId === h.instanceId);
|
|
2295
|
+
if (s(p) && p >= 0)
|
|
2296
|
+
if (a.value[p].visible) {
|
|
2297
|
+
Se("已经打开该数据弹窗信息");
|
|
2298
2298
|
return;
|
|
2299
2299
|
} else
|
|
2300
|
-
a.value[
|
|
2300
|
+
a.value[p] = h;
|
|
2301
2301
|
else
|
|
2302
|
-
a.value.push(
|
|
2302
|
+
a.value.push(h);
|
|
2303
2303
|
} else {
|
|
2304
|
-
if (t.title =
|
|
2305
|
-
|
|
2304
|
+
if (t.title = E(d.params.title, i.title), t.width = E(d.params.width, i.width), t.height = E(d.params.height, i.height), t.maximize = E(d.params.maximize, !1), t.autoLoad = E(d.params.autoLoad, !1), t.componentVue = E(d.params.componentVue, i.componentVue), t.componentUrl = d.params.requestUrl, t.componentVue)
|
|
2305
|
+
g[A.buttonKeyName] = d.params;
|
|
2306
2306
|
else {
|
|
2307
|
-
let
|
|
2308
|
-
for (const
|
|
2309
|
-
|
|
2310
|
-
t.componentUrl =
|
|
2307
|
+
let h = ne(r.ctxPath, t.componentUrl);
|
|
2308
|
+
for (const p in g)
|
|
2309
|
+
h = h.replace("{" + p + "}", g[p]);
|
|
2310
|
+
t.componentUrl = h;
|
|
2311
2311
|
}
|
|
2312
|
-
t.componentParams =
|
|
2312
|
+
t.componentParams = g, t.visible = !0;
|
|
2313
2313
|
}
|
|
2314
|
-
}, y = async (
|
|
2314
|
+
}, y = async (g, d) => {
|
|
2315
2315
|
if (n.value) {
|
|
2316
|
-
const
|
|
2317
|
-
if (
|
|
2316
|
+
const p = await C(d);
|
|
2317
|
+
if (d.requestRow && !s(p))
|
|
2318
2318
|
return;
|
|
2319
|
-
if (
|
|
2320
|
-
let
|
|
2321
|
-
const
|
|
2322
|
-
if ((!
|
|
2323
|
-
const
|
|
2324
|
-
for (const
|
|
2325
|
-
const
|
|
2319
|
+
if (d.requestType === Fe || d.requestType === lt) {
|
|
2320
|
+
let O = d.requestUrl;
|
|
2321
|
+
const b = E(d.componentVue, i.componentVue);
|
|
2322
|
+
if ((!b || d.requestType === lt) && (O = ne(r.ctxPath, O), d.requestRow && O.split("?").length > 1)) {
|
|
2323
|
+
const v = Li(O.split("?")[1]);
|
|
2324
|
+
for (const B in v) {
|
|
2325
|
+
const D = v[B];
|
|
2326
2326
|
if (l.checkboxConfig) {
|
|
2327
|
-
let
|
|
2328
|
-
for (const
|
|
2329
|
-
for (const
|
|
2330
|
-
|
|
2331
|
-
let
|
|
2332
|
-
for (const
|
|
2333
|
-
|
|
2334
|
-
|
|
2327
|
+
let R = [];
|
|
2328
|
+
for (const H in p)
|
|
2329
|
+
for (const W in p[H])
|
|
2330
|
+
W === D && p[H][W] && (R[p[H][W]] = p[H][W]);
|
|
2331
|
+
let I = "";
|
|
2332
|
+
for (const H in R)
|
|
2333
|
+
I = (I ? I + "," : "") + H;
|
|
2334
|
+
O = O.replace("{" + D + "}", I);
|
|
2335
2335
|
} else
|
|
2336
|
-
|
|
2336
|
+
O = O.replace("{" + D + "}", p[D]);
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
-
if (
|
|
2340
|
-
if (s(
|
|
2341
|
-
const
|
|
2342
|
-
|
|
2343
|
-
const
|
|
2344
|
-
if (
|
|
2339
|
+
if (d.requestType === Fe)
|
|
2340
|
+
if (s(d.instanceField)) {
|
|
2341
|
+
const v = {};
|
|
2342
|
+
v.title = E(d.title, i.title), v.width = E(d.width, i.width), v.height = E(d.height, i.height), v.maximize = E(d.maximize, !1), v.autoLoad = E(d.autoLoad, !0), v.componentVue = b, v.componentUrl = O, v.componentParams = {};
|
|
2343
|
+
const B = Math.round(Math.random() * 1e8);
|
|
2344
|
+
if (d.requestRow)
|
|
2345
2345
|
if (l.checkboxConfig)
|
|
2346
|
-
if (
|
|
2347
|
-
|
|
2346
|
+
if (d.requestRadio)
|
|
2347
|
+
p[0][A.buttonKeyName] = d, v.componentParams = p[0], v.instanceValue = p[0][d.instanceField], v.instanceId = Be + v.instanceValue;
|
|
2348
2348
|
else {
|
|
2349
|
-
const
|
|
2350
|
-
|
|
2349
|
+
const R = {};
|
|
2350
|
+
R[A.buttonKeyName] = d, R._X_ROWS = p, v.componentParams = R, v.instanceId = Be + B;
|
|
2351
2351
|
}
|
|
2352
2352
|
else
|
|
2353
|
-
|
|
2353
|
+
p[A.buttonKeyName] = d, v.componentParams = p, v.instanceValue = p[d.instanceField], v.instanceId = Be + v.instanceValue;
|
|
2354
2354
|
else
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
const
|
|
2358
|
-
if (s(
|
|
2359
|
-
if (a.value[
|
|
2360
|
-
|
|
2355
|
+
v.instanceId = Be + B, v.componentParams[A.buttonKeyName] = d;
|
|
2356
|
+
v.visible = !0;
|
|
2357
|
+
const D = a.value.findIndex((R) => R.instanceId === v.instanceId);
|
|
2358
|
+
if (s(D) && D >= 0)
|
|
2359
|
+
if (a.value[D].visible) {
|
|
2360
|
+
Se("已经打开该数据弹窗信息");
|
|
2361
2361
|
return;
|
|
2362
2362
|
} else
|
|
2363
|
-
a.value[
|
|
2363
|
+
a.value[D] = v;
|
|
2364
2364
|
else
|
|
2365
|
-
a.value.push(
|
|
2365
|
+
a.value.push(v);
|
|
2366
2366
|
} else {
|
|
2367
|
-
if (t.title =
|
|
2367
|
+
if (t.title = E(d.title, i.title), t.width = E(d.width, i.width), t.height = E(d.height, i.height), t.maximize = E(d.maximize, !1), t.autoLoad = E(d.autoLoad, !0), t.componentVue = b, t.componentUrl = O, t.componentParams = {}, d.requestRow)
|
|
2368
2368
|
if (l.checkboxConfig)
|
|
2369
|
-
if (
|
|
2370
|
-
|
|
2369
|
+
if (d.requestRadio)
|
|
2370
|
+
p[0][A.buttonKeyName] = d, t.componentParams = p[0];
|
|
2371
2371
|
else {
|
|
2372
|
-
const
|
|
2373
|
-
|
|
2372
|
+
const v = {};
|
|
2373
|
+
v[A.buttonKeyName] = d, v._X_ROWS = p, t.componentParams = v;
|
|
2374
2374
|
}
|
|
2375
2375
|
else
|
|
2376
|
-
|
|
2376
|
+
p[A.buttonKeyName] = d, t.componentParams = p;
|
|
2377
2377
|
else
|
|
2378
|
-
t.componentParams[A.buttonKeyName] =
|
|
2378
|
+
t.componentParams[A.buttonKeyName] = d;
|
|
2379
2379
|
t.visible = !0;
|
|
2380
2380
|
}
|
|
2381
2381
|
else
|
|
2382
|
-
window.open(
|
|
2382
|
+
window.open(O, "_blank");
|
|
2383
2383
|
} else
|
|
2384
2384
|
pt(
|
|
2385
|
-
|
|
2385
|
+
d.requestTitle,
|
|
2386
2386
|
() => {
|
|
2387
|
-
let
|
|
2388
|
-
if (
|
|
2387
|
+
let O = ne(r.ctxPath, d.requestUrl);
|
|
2388
|
+
if (O.split("?").length > 1) {
|
|
2389
2389
|
if (l.radioConfig)
|
|
2390
|
-
for (const
|
|
2391
|
-
|
|
2392
|
-
else if (l.checkboxConfig &&
|
|
2393
|
-
for (const
|
|
2394
|
-
|
|
2390
|
+
for (const b in p)
|
|
2391
|
+
O = O.replace("{" + b + "}", p[b]);
|
|
2392
|
+
else if (l.checkboxConfig && d.requestRadio)
|
|
2393
|
+
for (const b in p[0])
|
|
2394
|
+
O = O.replace("{" + b + "}", p[0][b]);
|
|
2395
2395
|
}
|
|
2396
2396
|
Aa(
|
|
2397
2397
|
n,
|
|
2398
2398
|
l,
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
!!(l.checkboxConfig &&
|
|
2399
|
+
O,
|
|
2400
|
+
d.requestRow ? p : g,
|
|
2401
|
+
!!(l.checkboxConfig && d.requestRow && p.length !== 1)
|
|
2402
2402
|
);
|
|
2403
2403
|
},
|
|
2404
|
-
|
|
2404
|
+
d.requestConfirmContent
|
|
2405
2405
|
);
|
|
2406
2406
|
}
|
|
2407
|
-
}, _ = (
|
|
2408
|
-
if (
|
|
2409
|
-
let
|
|
2410
|
-
const
|
|
2411
|
-
let
|
|
2412
|
-
if (
|
|
2413
|
-
|
|
2414
|
-
else if (
|
|
2415
|
-
for (const
|
|
2416
|
-
if (
|
|
2417
|
-
|
|
2407
|
+
}, _ = (g, d) => {
|
|
2408
|
+
if (g.requestType === Fe || g.requestType === lt) {
|
|
2409
|
+
let h = g.requestUrl;
|
|
2410
|
+
const p = E(g.componentVue, i.componentVue);
|
|
2411
|
+
let O = !1;
|
|
2412
|
+
if (p)
|
|
2413
|
+
O = !0;
|
|
2414
|
+
else if (h = ne(r.ctxPath, h), h.split("?").length > 1)
|
|
2415
|
+
for (const b in d) {
|
|
2416
|
+
if (h.indexOf("{" + b + "}") > -1 && (O = !0, d[b] === "")) {
|
|
2417
|
+
Se("该单据没有相应数据,无法进行本次操作");
|
|
2418
2418
|
return;
|
|
2419
2419
|
}
|
|
2420
|
-
|
|
2420
|
+
h = h.replace("{" + b + "}", d[b]);
|
|
2421
2421
|
}
|
|
2422
2422
|
else
|
|
2423
|
-
|
|
2424
|
-
if (
|
|
2425
|
-
if (
|
|
2426
|
-
if (
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
const
|
|
2430
|
-
if (s(
|
|
2431
|
-
if (a.value[
|
|
2432
|
-
|
|
2423
|
+
O = !0;
|
|
2424
|
+
if (O)
|
|
2425
|
+
if (g.requestType === Fe)
|
|
2426
|
+
if (d[A.buttonKeyName] = g, s(g.instanceField)) {
|
|
2427
|
+
const b = {};
|
|
2428
|
+
b.instanceValue = d[g.instanceField], b.instanceId = Be + b.instanceValue, b.title = E(g.title, i.title), b.width = E(g.width, i.width), b.height = E(g.height, i.height), b.maximize = E(g.maximize, !1), b.autoLoad = E(g.autoLoad, !0), b.componentVue = p, b.componentUrl = h, b.componentParams = d, b.visible = !0;
|
|
2429
|
+
const v = a.value.findIndex((B) => B.instanceId === b.instanceId);
|
|
2430
|
+
if (s(v) && v >= 0)
|
|
2431
|
+
if (a.value[v].visible) {
|
|
2432
|
+
Se("已经打开该数据弹窗信息");
|
|
2433
2433
|
return;
|
|
2434
2434
|
} else
|
|
2435
|
-
a.value[
|
|
2435
|
+
a.value[v] = b;
|
|
2436
2436
|
else
|
|
2437
|
-
a.value.push(
|
|
2437
|
+
a.value.push(b);
|
|
2438
2438
|
} else
|
|
2439
|
-
t.title =
|
|
2439
|
+
t.title = E(g.title, i.title), t.width = E(g.width, i.width), t.height = E(g.height, i.height), t.maximize = E(g.maximize, !1), t.autoLoad = E(g.autoLoad, !0), t.componentVue = p, t.componentUrl = h, t.componentParams = d, t.visible = !0;
|
|
2440
2440
|
else
|
|
2441
|
-
window.open(
|
|
2441
|
+
window.open(h, "_blank");
|
|
2442
2442
|
else {
|
|
2443
|
-
|
|
2443
|
+
Se("该单据没有相应数据,无法进行本次操作");
|
|
2444
2444
|
return;
|
|
2445
2445
|
}
|
|
2446
2446
|
} else
|
|
2447
2447
|
pt(
|
|
2448
|
-
|
|
2448
|
+
g.requestTitle,
|
|
2449
2449
|
() => {
|
|
2450
|
-
let
|
|
2451
|
-
for (const
|
|
2452
|
-
|
|
2453
|
-
Aa(n, l,
|
|
2450
|
+
let h = ne(r.ctxPath, g.requestUrl);
|
|
2451
|
+
for (const p in d)
|
|
2452
|
+
h = h.replace("{" + p + "}", d[p]);
|
|
2453
|
+
Aa(n, l, h, d);
|
|
2454
2454
|
},
|
|
2455
|
-
|
|
2455
|
+
g.requestConfirmContent
|
|
2456
2456
|
);
|
|
2457
|
-
}, C = async (
|
|
2458
|
-
if (
|
|
2459
|
-
const
|
|
2460
|
-
let
|
|
2461
|
-
if (l.checkboxConfig ? !
|
|
2462
|
-
|
|
2457
|
+
}, C = async (g) => {
|
|
2458
|
+
if (g.requestRow) {
|
|
2459
|
+
const d = await Sl(n, l);
|
|
2460
|
+
let h = null;
|
|
2461
|
+
if (l.checkboxConfig ? !d || d.length === 0 ? h = "请至少选择一行数据" : g.requestRadio && d.length !== 1 && (h = "请只选择一条数据") : l.radioConfig ? d || (h = "请选择一行数据") : h = "请设置表格【rowType】类型参数", h) {
|
|
2462
|
+
Se(h);
|
|
2463
2463
|
return;
|
|
2464
2464
|
}
|
|
2465
|
-
return
|
|
2465
|
+
return d;
|
|
2466
2466
|
} else
|
|
2467
2467
|
return null;
|
|
2468
2468
|
};
|
|
2469
2469
|
return {
|
|
2470
2470
|
clickFormButton: u,
|
|
2471
2471
|
clickTableButton: c,
|
|
2472
|
-
clickHerf:
|
|
2472
|
+
clickHerf: m
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
function Ri(e) {
|
|
@@ -2483,26 +2483,26 @@ function Ri(e) {
|
|
|
2483
2483
|
doMergeCells: i,
|
|
2484
2484
|
pageOptions: u,
|
|
2485
2485
|
pageTable: c,
|
|
2486
|
-
pageTableMerge:
|
|
2487
|
-
pageRequest:
|
|
2486
|
+
pageTableMerge: m,
|
|
2487
|
+
pageRequest: f
|
|
2488
2488
|
} = e;
|
|
2489
2489
|
return {
|
|
2490
|
-
downloadEvent: (
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2493
|
-
if (!
|
|
2494
|
-
let
|
|
2495
|
-
if (s(
|
|
2490
|
+
downloadEvent: (g) => {
|
|
2491
|
+
const d = n.value;
|
|
2492
|
+
d && d.validate().then((h) => {
|
|
2493
|
+
if (!h || h.length === 0) {
|
|
2494
|
+
let p = f.requestDownload;
|
|
2495
|
+
if (s(p)) {
|
|
2496
2496
|
if (l.loading) {
|
|
2497
|
-
|
|
2497
|
+
Se("正在导出中,请不要重复点击!");
|
|
2498
2498
|
return;
|
|
2499
2499
|
}
|
|
2500
|
-
if (
|
|
2501
|
-
|
|
2500
|
+
if (m.isMerge && typeof p != "object") {
|
|
2501
|
+
Se("合并列模式请设置requestDownload参数为表格列格式");
|
|
2502
2502
|
return;
|
|
2503
2503
|
}
|
|
2504
2504
|
pt("确定要导出表格所有内容吗?", () => {
|
|
2505
|
-
const
|
|
2505
|
+
const O = Zl.loading(
|
|
2506
2506
|
{
|
|
2507
2507
|
content: () => "下载中,请稍后... 不要连续点击下载",
|
|
2508
2508
|
style: {
|
|
@@ -2511,54 +2511,54 @@ function Ri(e) {
|
|
|
2511
2511
|
},
|
|
2512
2512
|
0
|
|
2513
2513
|
);
|
|
2514
|
-
setTimeout(
|
|
2515
|
-
const
|
|
2516
|
-
if (
|
|
2517
|
-
const { filter:
|
|
2514
|
+
setTimeout(O, 2e3);
|
|
2515
|
+
const b = a.value;
|
|
2516
|
+
if (b) {
|
|
2517
|
+
const { filter: v, form: B, sort: D } = b.getProxyInfo(), I = jt({
|
|
2518
2518
|
currentPage: 1,
|
|
2519
2519
|
pageSize: 25e3
|
|
2520
|
-
},
|
|
2521
|
-
if (typeof
|
|
2522
|
-
|
|
2523
|
-
let
|
|
2524
|
-
Object.keys(
|
|
2525
|
-
s(
|
|
2526
|
-
}), le("导出表格参数", [
|
|
2520
|
+
}, D, v, B, t, o);
|
|
2521
|
+
if (typeof p == "string") {
|
|
2522
|
+
p = ne(u.ctxPath, f.requestDownload);
|
|
2523
|
+
let H = "";
|
|
2524
|
+
Object.keys(I).forEach((W) => {
|
|
2525
|
+
s(I[W]) && (typeof I[W] == "string" && (H += "&" + W + "=" + I[W]), typeof I[W] == "object" && Array.isArray(I[W]) && (H += "&" + W + "=" + I[W].join(",")));
|
|
2526
|
+
}), le("导出表格参数", [p, H]), Bi(p + H);
|
|
2527
2527
|
} else
|
|
2528
|
-
l.loading = !0,
|
|
2529
|
-
if (
|
|
2528
|
+
l.loading = !0, I.exportFlag = !0, r(I, f.requestData, !0).then(async (H) => {
|
|
2529
|
+
if (H == null || H.rows.length == 0) {
|
|
2530
2530
|
l.loading = !1;
|
|
2531
2531
|
return;
|
|
2532
2532
|
}
|
|
2533
|
-
if (
|
|
2534
|
-
l.loading = !1,
|
|
2533
|
+
if (H.recordCount >= 25e3) {
|
|
2534
|
+
l.loading = !1, Se("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2535
2535
|
return;
|
|
2536
2536
|
}
|
|
2537
2537
|
setTimeout(() => {
|
|
2538
|
-
if (
|
|
2539
|
-
const
|
|
2538
|
+
if (g && typeof g == "function") {
|
|
2539
|
+
const W = {
|
|
2540
2540
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2541
2541
|
sheetName: u.templateTitle,
|
|
2542
|
-
data:
|
|
2543
|
-
columns: s(l.params.exportColumns) ? l.params.exportColumns :
|
|
2544
|
-
mergeCells: i(
|
|
2542
|
+
data: H.rows,
|
|
2543
|
+
columns: s(l.params.exportColumns) ? l.params.exportColumns : p,
|
|
2544
|
+
mergeCells: i(H.rows)
|
|
2545
2545
|
};
|
|
2546
|
-
|
|
2546
|
+
g(W), l.loading = !1;
|
|
2547
2547
|
} else {
|
|
2548
|
-
const
|
|
2548
|
+
const W = H.rows.concat([]), Oe = {
|
|
2549
2549
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2550
2550
|
sheetName: u.templateTitle,
|
|
2551
2551
|
type: "xlsx",
|
|
2552
|
-
data:
|
|
2552
|
+
data: W,
|
|
2553
2553
|
message: !1,
|
|
2554
2554
|
columns: s(l.params.exportColumns) ? l.params.exportColumns : l.columns,
|
|
2555
|
-
isFooter:
|
|
2556
|
-
isMerge:
|
|
2555
|
+
isFooter: m.isFooter,
|
|
2556
|
+
isMerge: m.isMerge,
|
|
2557
2557
|
columnFilterMethod(G) {
|
|
2558
2558
|
return !A.templateTable.ignoreExportColumnsTitle.includes(G?.column?.title);
|
|
2559
2559
|
}
|
|
2560
2560
|
};
|
|
2561
|
-
le("导出参数",
|
|
2561
|
+
le("导出参数", Oe), b.exportData(Oe).then(() => {
|
|
2562
2562
|
l.loading = !1;
|
|
2563
2563
|
});
|
|
2564
2564
|
}
|
|
@@ -2573,20 +2573,20 @@ function Ri(e) {
|
|
|
2573
2573
|
importEvent: () => {
|
|
2574
2574
|
top && top.openOtherPages ? top.openOtherPages(
|
|
2575
2575
|
"VIEW_QUERY_" + u.templateTitle,
|
|
2576
|
-
ne(u.ctxPath,
|
|
2576
|
+
ne(u.ctxPath, f.requestImport),
|
|
2577
2577
|
u.templateTitle + "导入",
|
|
2578
2578
|
!1,
|
|
2579
2579
|
!1
|
|
2580
|
-
) : window.open(ne(u.ctxPath,
|
|
2580
|
+
) : window.open(ne(u.ctxPath, f.requestImport), "_blank");
|
|
2581
2581
|
},
|
|
2582
|
-
switchColumsEvent: (
|
|
2582
|
+
switchColumsEvent: (g, d = !1) => {
|
|
2583
2583
|
if (s(c.tableColumnsExtra)) {
|
|
2584
|
-
const
|
|
2585
|
-
if (
|
|
2586
|
-
const
|
|
2587
|
-
s(
|
|
2584
|
+
const h = c.tableColumns, p = c.tableColumnsExtra;
|
|
2585
|
+
if (d) {
|
|
2586
|
+
const O = tr(g, u.templateType);
|
|
2587
|
+
s(O) ? (l.params.switchType = O.switchType, l.columns = O.switchType === "1" ? h : p, l.showOverflow = O.switchShowOverflow) : (l.params.switchType = "1", l.columns = h, l.showOverflow = E(c.showOverflow, !0));
|
|
2588
2588
|
} else
|
|
2589
|
-
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ?
|
|
2589
|
+
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? p : h, l.showOverflow = !l.showOverflow, er(g, u.templateType, {
|
|
2590
2590
|
switchType: l.params.switchType,
|
|
2591
2591
|
switchShowOverflow: l.showOverflow
|
|
2592
2592
|
});
|
|
@@ -2605,36 +2605,36 @@ const ze = /* @__PURE__ */ Q({
|
|
|
2605
2605
|
},
|
|
2606
2606
|
setup(e) {
|
|
2607
2607
|
const n = e;
|
|
2608
|
-
return (t, a) => (x(),
|
|
2609
|
-
n.icon === "user" ? (x(), z(
|
|
2610
|
-
n.icon === "excel" ? (x(), z(
|
|
2611
|
-
n.icon === "download" ? (x(), z(
|
|
2612
|
-
n.icon === "save" ? (x(), z(
|
|
2613
|
-
n.icon === "edit" ? (x(), z(
|
|
2614
|
-
n.icon === "delete" ? (x(), z(
|
|
2615
|
-
n.icon === "down" ? (x(), z(
|
|
2616
|
-
n.icon === "up" ? (x(), z(
|
|
2617
|
-
n.icon === "undo" ? (x(), z(
|
|
2618
|
-
n.icon === "redo" ? (x(), z(
|
|
2619
|
-
n.icon === "copy" ? (x(), z(
|
|
2620
|
-
n.icon === "print" ? (x(), z(
|
|
2621
|
-
n.icon === "plus" ? (x(), z(
|
|
2622
|
-
n.icon === "minus" ? (x(), z(
|
|
2623
|
-
n.icon === "info" ? (x(), z(
|
|
2624
|
-
n.icon === "audit" ? (x(), z(
|
|
2625
|
-
n.icon === "schedule" ? (x(), z(
|
|
2626
|
-
n.icon === "close" ? (x(), z(
|
|
2627
|
-
n.icon === "stop" ? (x(), z(
|
|
2628
|
-
n.icon === "check" ? (x(), z(
|
|
2629
|
-
n.icon === "setting" ? (x(), z(
|
|
2630
|
-
n.icon === "menu" ? (x(), z(
|
|
2631
|
-
n.icon === "pdf" ? (x(), z(
|
|
2632
|
-
n.icon === "push" ? (x(), z(
|
|
2633
|
-
n.icon === "upload" ? (x(), z(
|
|
2634
|
-
n.icon === "search" ? (x(), z(
|
|
2635
|
-
n.icon === "sync" ? (x(), z(
|
|
2636
|
-
n.icon === "link" ? (x(), z(
|
|
2637
|
-
!n.icon || n.icon === "" ? (x(), z(
|
|
2608
|
+
return (t, a) => (x(), Y(ce, null, [
|
|
2609
|
+
n.icon === "user" ? (x(), z(S(Sn), { key: 0 })) : j("", !0),
|
|
2610
|
+
n.icon === "excel" ? (x(), z(S(en), { key: 1 })) : j("", !0),
|
|
2611
|
+
n.icon === "download" ? (x(), z(S(Qt), { key: 2 })) : j("", !0),
|
|
2612
|
+
n.icon === "save" ? (x(), z(S(dn), { key: 3 })) : j("", !0),
|
|
2613
|
+
n.icon === "edit" ? (x(), z(S(Xt), { key: 4 })) : j("", !0),
|
|
2614
|
+
n.icon === "delete" ? (x(), z(S(Zt), { key: 5 })) : j("", !0),
|
|
2615
|
+
n.icon === "down" ? (x(), z(S(yt), { key: 6 })) : j("", !0),
|
|
2616
|
+
n.icon === "up" ? (x(), z(S(bn), { key: 7 })) : j("", !0),
|
|
2617
|
+
n.icon === "undo" ? (x(), z(S(vn), { key: 8 })) : j("", !0),
|
|
2618
|
+
n.icon === "redo" ? (x(), z(S(cn), { key: 9 })) : j("", !0),
|
|
2619
|
+
n.icon === "copy" ? (x(), z(S(Jt), { key: 10 })) : j("", !0),
|
|
2620
|
+
n.icon === "print" ? (x(), z(S(un), { key: 11 })) : j("", !0),
|
|
2621
|
+
n.icon === "plus" ? (x(), z(S(sn), { key: 12 })) : j("", !0),
|
|
2622
|
+
n.icon === "minus" ? (x(), z(S(on), { key: 13 })) : j("", !0),
|
|
2623
|
+
n.icon === "info" ? (x(), z(S(an), { key: 14 })) : j("", !0),
|
|
2624
|
+
n.icon === "audit" ? (x(), z(S(Ht), { key: 15 })) : j("", !0),
|
|
2625
|
+
n.icon === "schedule" ? (x(), z(S(fn), { key: 16 })) : j("", !0),
|
|
2626
|
+
n.icon === "close" ? (x(), z(S(Wt), { key: 17 })) : j("", !0),
|
|
2627
|
+
n.icon === "stop" ? (x(), z(S(gn), { key: 18 })) : j("", !0),
|
|
2628
|
+
n.icon === "check" ? (x(), z(S(Yt), { key: 19 })) : j("", !0),
|
|
2629
|
+
n.icon === "setting" ? (x(), z(S(mn), { key: 20 })) : j("", !0),
|
|
2630
|
+
n.icon === "menu" ? (x(), z(S(rn), { key: 21 })) : j("", !0),
|
|
2631
|
+
n.icon === "pdf" ? (x(), z(S(tn), { key: 22 })) : j("", !0),
|
|
2632
|
+
n.icon === "push" ? (x(), z(S(Gt), { key: 23 })) : j("", !0),
|
|
2633
|
+
n.icon === "upload" ? (x(), z(S(yn), { key: 24 })) : j("", !0),
|
|
2634
|
+
n.icon === "search" ? (x(), z(S(pn), { key: 25 })) : j("", !0),
|
|
2635
|
+
n.icon === "sync" ? (x(), z(S(hn), { key: 26 })) : j("", !0),
|
|
2636
|
+
n.icon === "link" ? (x(), z(S(ln), { key: 27 })) : j("", !0),
|
|
2637
|
+
!n.icon || n.icon === "" ? (x(), z(S(nn), { key: 28 })) : j("", !0)
|
|
2638
2638
|
], 64));
|
|
2639
2639
|
}
|
|
2640
2640
|
});
|
|
@@ -2740,49 +2740,49 @@ function Zi() {
|
|
|
2740
2740
|
e.exports = a();
|
|
2741
2741
|
})(Ji, (function() {
|
|
2742
2742
|
return function(t, a, l) {
|
|
2743
|
-
var r = a.prototype, o = function(
|
|
2744
|
-
return
|
|
2745
|
-
}, i = function(
|
|
2746
|
-
var
|
|
2747
|
-
return
|
|
2743
|
+
var r = a.prototype, o = function(f) {
|
|
2744
|
+
return f && (f.indexOf ? f : f.s);
|
|
2745
|
+
}, i = function(f, y, _, C, g) {
|
|
2746
|
+
var d = f.name ? f : f.$locale(), h = o(d[y]), p = o(d[_]), O = h || p.map((function(v) {
|
|
2747
|
+
return v.slice(0, C);
|
|
2748
2748
|
}));
|
|
2749
|
-
if (!
|
|
2750
|
-
var
|
|
2751
|
-
return
|
|
2752
|
-
return
|
|
2749
|
+
if (!g) return O;
|
|
2750
|
+
var b = d.weekStart;
|
|
2751
|
+
return O.map((function(v, B) {
|
|
2752
|
+
return O[(B + (b || 0)) % 7];
|
|
2753
2753
|
}));
|
|
2754
2754
|
}, u = function() {
|
|
2755
2755
|
return l.Ls[l.locale()];
|
|
2756
|
-
}, c = function(
|
|
2757
|
-
return
|
|
2758
|
-
return _.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C,
|
|
2759
|
-
return
|
|
2756
|
+
}, c = function(f, y) {
|
|
2757
|
+
return f.formats[y] || (function(_) {
|
|
2758
|
+
return _.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, g, d) {
|
|
2759
|
+
return g || d.slice(1);
|
|
2760
2760
|
}));
|
|
2761
|
-
})(
|
|
2762
|
-
},
|
|
2763
|
-
var
|
|
2761
|
+
})(f.formats[y.toUpperCase()]);
|
|
2762
|
+
}, m = function() {
|
|
2763
|
+
var f = this;
|
|
2764
2764
|
return { months: function(y) {
|
|
2765
|
-
return y ? y.format("MMMM") : i(
|
|
2765
|
+
return y ? y.format("MMMM") : i(f, "months");
|
|
2766
2766
|
}, monthsShort: function(y) {
|
|
2767
|
-
return y ? y.format("MMM") : i(
|
|
2767
|
+
return y ? y.format("MMM") : i(f, "monthsShort", "months", 3);
|
|
2768
2768
|
}, firstDayOfWeek: function() {
|
|
2769
|
-
return
|
|
2769
|
+
return f.$locale().weekStart || 0;
|
|
2770
2770
|
}, weekdays: function(y) {
|
|
2771
|
-
return y ? y.format("dddd") : i(
|
|
2771
|
+
return y ? y.format("dddd") : i(f, "weekdays");
|
|
2772
2772
|
}, weekdaysMin: function(y) {
|
|
2773
|
-
return y ? y.format("dd") : i(
|
|
2773
|
+
return y ? y.format("dd") : i(f, "weekdaysMin", "weekdays", 2);
|
|
2774
2774
|
}, weekdaysShort: function(y) {
|
|
2775
|
-
return y ? y.format("ddd") : i(
|
|
2775
|
+
return y ? y.format("ddd") : i(f, "weekdaysShort", "weekdays", 3);
|
|
2776
2776
|
}, longDateFormat: function(y) {
|
|
2777
|
-
return c(
|
|
2777
|
+
return c(f.$locale(), y);
|
|
2778
2778
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
2779
2779
|
};
|
|
2780
2780
|
r.localeData = function() {
|
|
2781
|
-
return
|
|
2781
|
+
return m.bind(this)();
|
|
2782
2782
|
}, l.localeData = function() {
|
|
2783
|
-
var
|
|
2783
|
+
var f = u();
|
|
2784
2784
|
return { firstDayOfWeek: function() {
|
|
2785
|
-
return
|
|
2785
|
+
return f.weekStart || 0;
|
|
2786
2786
|
}, weekdays: function() {
|
|
2787
2787
|
return l.weekdays();
|
|
2788
2788
|
}, weekdaysShort: function() {
|
|
@@ -2794,31 +2794,31 @@ function Zi() {
|
|
|
2794
2794
|
}, monthsShort: function() {
|
|
2795
2795
|
return l.monthsShort();
|
|
2796
2796
|
}, longDateFormat: function(y) {
|
|
2797
|
-
return c(
|
|
2798
|
-
}, meridiem:
|
|
2797
|
+
return c(f, y);
|
|
2798
|
+
}, meridiem: f.meridiem, ordinal: f.ordinal };
|
|
2799
2799
|
}, l.months = function() {
|
|
2800
2800
|
return i(u(), "months");
|
|
2801
2801
|
}, l.monthsShort = function() {
|
|
2802
2802
|
return i(u(), "monthsShort", "months", 3);
|
|
2803
|
-
}, l.weekdays = function(
|
|
2804
|
-
return i(u(), "weekdays", null, null,
|
|
2805
|
-
}, l.weekdaysShort = function(
|
|
2806
|
-
return i(u(), "weekdaysShort", "weekdays", 3,
|
|
2807
|
-
}, l.weekdaysMin = function(
|
|
2808
|
-
return i(u(), "weekdaysMin", "weekdays", 2,
|
|
2803
|
+
}, l.weekdays = function(f) {
|
|
2804
|
+
return i(u(), "weekdays", null, null, f);
|
|
2805
|
+
}, l.weekdaysShort = function(f) {
|
|
2806
|
+
return i(u(), "weekdaysShort", "weekdays", 3, f);
|
|
2807
|
+
}, l.weekdaysMin = function(f) {
|
|
2808
|
+
return i(u(), "weekdaysMin", "weekdays", 2, f);
|
|
2809
2809
|
};
|
|
2810
2810
|
};
|
|
2811
2811
|
}));
|
|
2812
2812
|
})(ut)), ut.exports;
|
|
2813
2813
|
}
|
|
2814
2814
|
var Qi = Zi();
|
|
2815
|
-
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER",
|
|
2815
|
+
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0), Nt = (e, n) => (n = s(n) ? n : 2, s(e) ? `${Me.commafy(Number(e), { digits: n })}` : e), wl = (e) => _n(e, "yyyy-MM-dd"), _l = (e) => _n(e, "yyyy-MM-dd HH:mm:ss"), _n = (e, n) => Me.toDateString(e, n), ct = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, ts = (e, n) => typeof n == "string" ? n === "number" ? Nt(e) : n === "date" ? wl(e) : n === "datetime" ? _l(e) : ct(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Nt(e, n[1]) : ct(e, 200), V = {
|
|
2816
2816
|
toString: Ki,
|
|
2817
2817
|
toDateString: wl,
|
|
2818
2818
|
toDatetimeString: _l,
|
|
2819
2819
|
dateFormatter: _n,
|
|
2820
2820
|
toNumber: es,
|
|
2821
|
-
toMoney:
|
|
2821
|
+
toMoney: Nt,
|
|
2822
2822
|
stringFormat: ts,
|
|
2823
2823
|
truncateFormat: ct
|
|
2824
2824
|
}, ns = /* @__PURE__ */ Q({
|
|
@@ -2837,9 +2837,9 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2837
2837
|
emits: ["update:value"],
|
|
2838
2838
|
setup(e, { expose: n, emit: t }) {
|
|
2839
2839
|
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
2840
|
-
const a = e, l = V.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = V.toString(a.format, "YYYY-MM-DD"), i =
|
|
2840
|
+
const a = e, l = V.toString(a.picker, "date"), r = a.picker === "date" ? "day" : a.picker, o = V.toString(a.format, "YYYY-MM-DD"), i = ge(ve), u = qe(i?.size);
|
|
2841
2841
|
let c = M();
|
|
2842
|
-
const
|
|
2842
|
+
const m = [
|
|
2843
2843
|
{ label: "当天", value: [T().add(0, r)] },
|
|
2844
2844
|
{ label: "近7天", value: [T().add(-7, r)] },
|
|
2845
2845
|
{ label: "近两周", value: [T().add(-14, r)] },
|
|
@@ -2848,7 +2848,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2848
2848
|
{ label: "近六个月", value: [T().add(-180, r)] },
|
|
2849
2849
|
{ label: "近一年", value: [T().add(-365, r)] },
|
|
2850
2850
|
{ label: "近三年", value: [T().add(-1095, r)] }
|
|
2851
|
-
],
|
|
2851
|
+
], f = [
|
|
2852
2852
|
{ label: "本月", value: [T().add(0, r)] },
|
|
2853
2853
|
{ label: "近一个月", value: [T().add(-1, r)] },
|
|
2854
2854
|
{ label: "近三个月", value: [T().add(-3, r)] },
|
|
@@ -2862,39 +2862,39 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2862
2862
|
{ label: "近两年", value: [T().add(-2, r)] },
|
|
2863
2863
|
{ label: "近三年", value: [T().add(-3, r)] },
|
|
2864
2864
|
{ label: "近五年", value: [T().add(-5, r)] }
|
|
2865
|
-
], _ = M(l === "year" ? y : l === "month" ?
|
|
2866
|
-
le("日期区间选值",
|
|
2867
|
-
},
|
|
2868
|
-
let
|
|
2869
|
-
return c.value && c.value[0] && (
|
|
2870
|
-
},
|
|
2871
|
-
const
|
|
2872
|
-
typeof
|
|
2873
|
-
s(
|
|
2874
|
-
s(
|
|
2875
|
-
] : c.value = [s(
|
|
2876
|
-
},
|
|
2877
|
-
s(a.defaultValue) ?
|
|
2878
|
-
},
|
|
2879
|
-
return
|
|
2880
|
-
|
|
2865
|
+
], _ = M(l === "year" ? y : l === "month" ? f : m), C = t, g = (b, v) => {
|
|
2866
|
+
le("日期区间选值", v), v && v[0] == "" && v[1] == "" ? C("update:value", null) : C("update:value", v);
|
|
2867
|
+
}, d = () => {
|
|
2868
|
+
let b = null, v = null;
|
|
2869
|
+
return c.value && c.value[0] && (b = T(c.value[0]).format(o)), c.value && c.value[1] && (v = T(c.value[1]).format(o)), !b && !v ? null : [b, v];
|
|
2870
|
+
}, h = (b) => {
|
|
2871
|
+
const v = b ? b[0] : null, B = b ? b[1] : null;
|
|
2872
|
+
typeof v == "number" || typeof B == "number" ? c.value = [
|
|
2873
|
+
s(v) ? T().add(v, r) : null,
|
|
2874
|
+
s(B) ? T().add(B, r) : null
|
|
2875
|
+
] : c.value = [s(v) ? T(v) : null, s(B) ? T(B) : null], C("update:value", d());
|
|
2876
|
+
}, p = () => {
|
|
2877
|
+
s(a.defaultValue) ? h([a.defaultValue, null]) : h(null);
|
|
2878
|
+
}, O = () => "dateRange";
|
|
2879
|
+
return oe(() => {
|
|
2880
|
+
p();
|
|
2881
2881
|
}), n({
|
|
2882
|
-
setValue:
|
|
2883
|
-
getValue:
|
|
2884
|
-
resetValue:
|
|
2885
|
-
getRefType:
|
|
2886
|
-
}), (
|
|
2887
|
-
const
|
|
2888
|
-
return x(), z(
|
|
2889
|
-
value:
|
|
2890
|
-
"onUpdate:value":
|
|
2891
|
-
onChange:
|
|
2882
|
+
setValue: h,
|
|
2883
|
+
getValue: d,
|
|
2884
|
+
resetValue: p,
|
|
2885
|
+
getRefType: O
|
|
2886
|
+
}), (b, v) => {
|
|
2887
|
+
const B = F("a-range-picker");
|
|
2888
|
+
return x(), z(B, {
|
|
2889
|
+
value: S(c),
|
|
2890
|
+
"onUpdate:value": v[0] || (v[0] = (D) => gt(c) ? c.value = D : c = D),
|
|
2891
|
+
onChange: g,
|
|
2892
2892
|
presets: _.value,
|
|
2893
|
-
locale:
|
|
2893
|
+
locale: S(Ge),
|
|
2894
2894
|
allowEmpty: [!0, !0],
|
|
2895
|
-
format:
|
|
2896
|
-
picker:
|
|
2897
|
-
size:
|
|
2895
|
+
format: S(o),
|
|
2896
|
+
picker: S(l),
|
|
2897
|
+
size: S(u),
|
|
2898
2898
|
style: { width: "100%" }
|
|
2899
2899
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2900
2900
|
};
|
|
@@ -2915,34 +2915,34 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2915
2915
|
emits: ["update:value"],
|
|
2916
2916
|
setup(e, { expose: n, emit: t }) {
|
|
2917
2917
|
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
2918
|
-
const a = e, l =
|
|
2918
|
+
const a = e, l = ge(ve), r = qe(l?.size), o = V.toString(a.picker, "date"), i = V.toString(a.format, "YYYY-MM-DD"), u = t;
|
|
2919
2919
|
let c = M();
|
|
2920
|
-
const
|
|
2921
|
-
le("日期选值",
|
|
2922
|
-
},
|
|
2920
|
+
const m = (C, g) => {
|
|
2921
|
+
le("日期选值", g), !g || g == "" ? u("update:value", null) : u("update:value", g);
|
|
2922
|
+
}, f = () => {
|
|
2923
2923
|
let C = null;
|
|
2924
2924
|
return c.value && (C = T(c.value).format(i)), C || null;
|
|
2925
2925
|
}, y = (C) => {
|
|
2926
|
-
typeof C == "number" ? c.value = s(C) ? T().add(C, o) : null : c.value = s(C) ? T(C) : null, u("update:value",
|
|
2926
|
+
typeof C == "number" ? c.value = s(C) ? T().add(C, o) : null : c.value = s(C) ? T(C) : null, u("update:value", f());
|
|
2927
2927
|
}, _ = () => {
|
|
2928
2928
|
s(a.defaultValue) ? y(a.defaultValue) : y(null);
|
|
2929
2929
|
};
|
|
2930
|
-
return
|
|
2930
|
+
return oe(() => {
|
|
2931
2931
|
_();
|
|
2932
2932
|
}), n({
|
|
2933
2933
|
setValue: y,
|
|
2934
|
-
getValue:
|
|
2934
|
+
getValue: f,
|
|
2935
2935
|
resetValue: _
|
|
2936
|
-
}), (C,
|
|
2937
|
-
const
|
|
2938
|
-
return x(), z(
|
|
2939
|
-
value:
|
|
2940
|
-
"onUpdate:value":
|
|
2941
|
-
onChange:
|
|
2942
|
-
locale:
|
|
2943
|
-
format:
|
|
2944
|
-
picker:
|
|
2945
|
-
size:
|
|
2936
|
+
}), (C, g) => {
|
|
2937
|
+
const d = F("a-date-picker");
|
|
2938
|
+
return x(), z(d, {
|
|
2939
|
+
value: S(c),
|
|
2940
|
+
"onUpdate:value": g[0] || (g[0] = (h) => gt(c) ? c.value = h : c = h),
|
|
2941
|
+
onChange: m,
|
|
2942
|
+
locale: S(Ge),
|
|
2943
|
+
format: S(i),
|
|
2944
|
+
picker: S(o),
|
|
2945
|
+
size: S(r),
|
|
2946
2946
|
allowClear: a.clearable,
|
|
2947
2947
|
style: { width: "100%" }
|
|
2948
2948
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
@@ -2962,7 +2962,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2962
2962
|
},
|
|
2963
2963
|
emits: ["update:value"],
|
|
2964
2964
|
setup(e, { expose: n, emit: t }) {
|
|
2965
|
-
const a = e, l =
|
|
2965
|
+
const a = e, l = ge(ve), r = qe(l?.size), o = M(null), i = E(a.placeholder, "请输入" + a.title), u = t, c = () => {
|
|
2966
2966
|
u("update:value", o.value);
|
|
2967
2967
|
};
|
|
2968
2968
|
return n({
|
|
@@ -2973,18 +2973,18 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2973
2973
|
resetValue: () => {
|
|
2974
2974
|
o.value = a.defaultValue || "", u("update:value", o.value);
|
|
2975
2975
|
}
|
|
2976
|
-
}),
|
|
2976
|
+
}), oe(() => {
|
|
2977
2977
|
u("update:value", o.value);
|
|
2978
2978
|
}), (_, C) => {
|
|
2979
|
-
const
|
|
2980
|
-
return x(), z(
|
|
2979
|
+
const g = F("a-input");
|
|
2980
|
+
return x(), z(g, {
|
|
2981
2981
|
value: o.value,
|
|
2982
|
-
"onUpdate:value": C[0] || (C[0] = (
|
|
2983
|
-
placeholder:
|
|
2982
|
+
"onUpdate:value": C[0] || (C[0] = (d) => o.value = d),
|
|
2983
|
+
placeholder: S(i),
|
|
2984
2984
|
disabled: a.disabled,
|
|
2985
2985
|
type: a.inputType,
|
|
2986
2986
|
onChange: c,
|
|
2987
|
-
size:
|
|
2987
|
+
size: S(r),
|
|
2988
2988
|
style: { width: "100%" }
|
|
2989
2989
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2990
2990
|
};
|
|
@@ -3005,42 +3005,42 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3005
3005
|
},
|
|
3006
3006
|
emits: ["update:value"],
|
|
3007
3007
|
setup(e, { expose: n, emit: t }) {
|
|
3008
|
-
const a = e, l =
|
|
3009
|
-
let
|
|
3010
|
-
return !
|
|
3011
|
-
}, _ = (
|
|
3012
|
-
|
|
3013
|
-
},
|
|
3014
|
-
c.value =
|
|
3008
|
+
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", u = qe(l?.size), c = M(a.multiple ? [] : null), m = t, f = M([]), y = async () => {
|
|
3009
|
+
let p = a.request.requestUrl;
|
|
3010
|
+
return !p && r && (p = i), p ? (p = ne(o, p), await On(r, p, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3011
|
+
}, _ = (p, O) => O.label.toLowerCase().indexOf(p.toLowerCase()) >= 0, C = () => {
|
|
3012
|
+
m("update:value", c.value);
|
|
3013
|
+
}, g = () => c.value, d = (p) => {
|
|
3014
|
+
c.value = p, m("update:value", c.value);
|
|
3015
3015
|
};
|
|
3016
3016
|
return n({
|
|
3017
|
-
getValue:
|
|
3018
|
-
setValue:
|
|
3017
|
+
getValue: g,
|
|
3018
|
+
setValue: d,
|
|
3019
3019
|
resetValue: () => {
|
|
3020
|
-
a.multiple ?
|
|
3020
|
+
a.multiple ? d(a.defaultValue || []) : d(a.defaultValue || null);
|
|
3021
3021
|
}
|
|
3022
|
-
}),
|
|
3023
|
-
|
|
3024
|
-
|
|
3022
|
+
}), oe(() => {
|
|
3023
|
+
m("update:value", c.value), y().then((p) => {
|
|
3024
|
+
f.value = p;
|
|
3025
3025
|
});
|
|
3026
|
-
}), (
|
|
3027
|
-
const
|
|
3028
|
-
return x(),
|
|
3029
|
-
|
|
3026
|
+
}), (p, O) => {
|
|
3027
|
+
const b = F("a-select");
|
|
3028
|
+
return x(), Y("div", rs, [
|
|
3029
|
+
q(b, {
|
|
3030
3030
|
value: c.value,
|
|
3031
|
-
"onUpdate:value":
|
|
3031
|
+
"onUpdate:value": O[0] || (O[0] = (v) => c.value = v),
|
|
3032
3032
|
onChange: C,
|
|
3033
3033
|
placeholder: "--请选择--",
|
|
3034
3034
|
allowClear: a.clearable,
|
|
3035
3035
|
mode: a.multiple ? "multiple" : "",
|
|
3036
3036
|
"max-tag-count": a.maxTagCount,
|
|
3037
|
-
options:
|
|
3037
|
+
options: f.value,
|
|
3038
3038
|
"show-search": a.filterable,
|
|
3039
3039
|
"filter-option": _,
|
|
3040
3040
|
defaultActiveFirstOption: !a.multiple,
|
|
3041
3041
|
autoClearSearchValue: !a.filterable,
|
|
3042
3042
|
disabled: a.disabled,
|
|
3043
|
-
size:
|
|
3043
|
+
size: S(u),
|
|
3044
3044
|
style: { width: "100%" }
|
|
3045
3045
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "disabled", "size"])
|
|
3046
3046
|
]);
|
|
@@ -3065,61 +3065,61 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3065
3065
|
},
|
|
3066
3066
|
emits: ["update:value"],
|
|
3067
3067
|
setup(e, { expose: n, emit: t }) {
|
|
3068
|
-
const a = e, l =
|
|
3069
|
-
if (
|
|
3068
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = M(""), c = M(""), m = M([]), f = t, y = M(!1), _ = async (b) => {
|
|
3069
|
+
if (m.value = [], b) {
|
|
3070
3070
|
y.value = !0;
|
|
3071
|
-
const
|
|
3072
|
-
searchValue: Te(
|
|
3073
|
-
},
|
|
3071
|
+
const v = {
|
|
3072
|
+
searchValue: Te(b)
|
|
3073
|
+
}, B = await Re(ne(r, a.requestUrl), {
|
|
3074
3074
|
...a.requestParams,
|
|
3075
|
-
...
|
|
3075
|
+
...v
|
|
3076
3076
|
});
|
|
3077
|
-
return y.value = !1,
|
|
3077
|
+
return y.value = !1, B;
|
|
3078
3078
|
} else
|
|
3079
3079
|
return [];
|
|
3080
|
-
}, C =
|
|
3081
|
-
_(
|
|
3082
|
-
|
|
3080
|
+
}, C = Lt((b) => {
|
|
3081
|
+
_(b).then((v) => {
|
|
3082
|
+
m.value = v;
|
|
3083
3083
|
});
|
|
3084
|
-
}, 500),
|
|
3085
|
-
u.value =
|
|
3086
|
-
},
|
|
3087
|
-
u.value =
|
|
3088
|
-
let
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
}),
|
|
3084
|
+
}, 500), g = (b) => {
|
|
3085
|
+
u.value = b, f("update:value", b);
|
|
3086
|
+
}, d = () => c.value, h = () => u.value, p = (b, v = null) => {
|
|
3087
|
+
u.value = b, c.value = v;
|
|
3088
|
+
let B = m.value.filter((D) => D.value === u.value);
|
|
3089
|
+
B.length === 1 ? c.value = B[0].label : _(b).then((D) => {
|
|
3090
|
+
m.value = D;
|
|
3091
|
+
}), f("update:value", b);
|
|
3092
3092
|
};
|
|
3093
3093
|
return n({
|
|
3094
|
-
getName:
|
|
3095
|
-
getValue:
|
|
3096
|
-
setValue:
|
|
3094
|
+
getName: d,
|
|
3095
|
+
getValue: h,
|
|
3096
|
+
setValue: p,
|
|
3097
3097
|
resetValue: () => {
|
|
3098
|
-
|
|
3098
|
+
p(a.defaultValue, a.defaultName);
|
|
3099
3099
|
}
|
|
3100
|
-
}), (
|
|
3101
|
-
const
|
|
3102
|
-
return x(),
|
|
3103
|
-
D
|
|
3100
|
+
}), (b, v) => {
|
|
3101
|
+
const B = F("a-spin"), D = F("a-select");
|
|
3102
|
+
return x(), Y("div", is, [
|
|
3103
|
+
q(D, {
|
|
3104
3104
|
value: u.value,
|
|
3105
|
-
"onUpdate:value":
|
|
3105
|
+
"onUpdate:value": v[0] || (v[0] = (R) => u.value = R),
|
|
3106
3106
|
placeholder: i,
|
|
3107
3107
|
disabled: a.disabled,
|
|
3108
3108
|
"filter-option": !1,
|
|
3109
|
-
options:
|
|
3110
|
-
size:
|
|
3109
|
+
options: m.value,
|
|
3110
|
+
size: S(o),
|
|
3111
3111
|
"default-active-first-option": !1,
|
|
3112
3112
|
"show-arrow": !1,
|
|
3113
|
-
onChange:
|
|
3114
|
-
onSearch:
|
|
3113
|
+
onChange: g,
|
|
3114
|
+
onSearch: S(C),
|
|
3115
3115
|
"allow-clear": "",
|
|
3116
3116
|
"show-search": "",
|
|
3117
3117
|
style: { width: "100%" }
|
|
3118
3118
|
}, xe({ _: 2 }, [
|
|
3119
3119
|
y.value ? {
|
|
3120
3120
|
name: "notFoundContent",
|
|
3121
|
-
fn:
|
|
3122
|
-
|
|
3121
|
+
fn: L(() => [
|
|
3122
|
+
q(B, { size: "small" })
|
|
3123
3123
|
]),
|
|
3124
3124
|
key: "0"
|
|
3125
3125
|
} : void 0
|
|
@@ -3146,42 +3146,42 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3146
3146
|
},
|
|
3147
3147
|
emits: ["update:value"],
|
|
3148
3148
|
setup(e, { expose: n, emit: t }) {
|
|
3149
|
-
const a = e, l =
|
|
3150
|
-
y("update:value",
|
|
3151
|
-
},
|
|
3152
|
-
u.value =
|
|
3153
|
-
let
|
|
3149
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = M(a.multiple ? [] : null), c = M(""), m = M([]), f = M([]), y = t, _ = (b, v) => v.label.toLowerCase().indexOf(Te(b).toLowerCase()) >= 0, C = async () => await Re(ne(r, a.requestUrl), a.requestParams), g = (b) => {
|
|
3150
|
+
y("update:value", b);
|
|
3151
|
+
}, d = () => c.value, h = () => u.value, p = (b) => {
|
|
3152
|
+
u.value = b, y("update:value", u.value);
|
|
3153
|
+
let v = f.value.filter((B) => B.value === u.value);
|
|
3154
3154
|
if (a.multiple) {
|
|
3155
|
-
let
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
}), c.value =
|
|
3155
|
+
let B = "";
|
|
3156
|
+
v.forEach((D) => {
|
|
3157
|
+
B += D.label + ",";
|
|
3158
|
+
}), c.value = B;
|
|
3159
3159
|
} else
|
|
3160
|
-
|
|
3160
|
+
v.length === 1 && (c.value = v[0].label);
|
|
3161
3161
|
};
|
|
3162
3162
|
return n({
|
|
3163
|
-
getName:
|
|
3164
|
-
getValue:
|
|
3165
|
-
setValue:
|
|
3163
|
+
getName: d,
|
|
3164
|
+
getValue: h,
|
|
3165
|
+
setValue: p,
|
|
3166
3166
|
resetValue: () => {
|
|
3167
|
-
a.multiple ?
|
|
3167
|
+
a.multiple ? p(a.defaultValue || []) : p(a.defaultValue || null);
|
|
3168
3168
|
}
|
|
3169
|
-
}), C().then((
|
|
3170
|
-
|
|
3171
|
-
}), (
|
|
3172
|
-
const
|
|
3173
|
-
return x(),
|
|
3174
|
-
|
|
3169
|
+
}), C().then((b) => {
|
|
3170
|
+
f.value = b, m.value = b;
|
|
3171
|
+
}), (b, v) => {
|
|
3172
|
+
const B = F("a-select");
|
|
3173
|
+
return x(), Y("div", us, [
|
|
3174
|
+
q(B, {
|
|
3175
3175
|
value: u.value,
|
|
3176
|
-
"onUpdate:value":
|
|
3176
|
+
"onUpdate:value": v[0] || (v[0] = (D) => u.value = D),
|
|
3177
3177
|
placeholder: i,
|
|
3178
3178
|
disabled: a.disabled,
|
|
3179
3179
|
mode: a.multiple ? "multiple" : "",
|
|
3180
3180
|
defaultActiveFirstOption: !a.multiple,
|
|
3181
3181
|
"filter-option": _,
|
|
3182
|
-
options:
|
|
3183
|
-
size:
|
|
3184
|
-
onChange:
|
|
3182
|
+
options: m.value,
|
|
3183
|
+
size: S(o),
|
|
3184
|
+
onChange: g,
|
|
3185
3185
|
"allow-clear": "",
|
|
3186
3186
|
"show-search": "",
|
|
3187
3187
|
style: { width: "100%" }
|
|
@@ -3212,43 +3212,43 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3212
3212
|
},
|
|
3213
3213
|
emits: ["update:value", "change"],
|
|
3214
3214
|
setup(e, { expose: n, emit: t }) {
|
|
3215
|
-
const a = e, l =
|
|
3216
|
-
const
|
|
3215
|
+
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = qe(l?.size), u = "请输入" + a.title + "搜索", c = a.fieldNames.label, m = a.fieldNames.value, f = M([]), y = M([]), _ = async () => {
|
|
3216
|
+
const v = await yl(
|
|
3217
3217
|
ne(o, a.requestUrl),
|
|
3218
3218
|
a.requestParams,
|
|
3219
3219
|
r,
|
|
3220
3220
|
"CASCADER_" + a.cacheKey
|
|
3221
3221
|
);
|
|
3222
|
-
y.value =
|
|
3223
|
-
}, C = t,
|
|
3224
|
-
s(
|
|
3225
|
-
},
|
|
3226
|
-
|
|
3227
|
-
},
|
|
3228
|
-
|
|
3222
|
+
y.value = v;
|
|
3223
|
+
}, C = t, g = (v, B) => {
|
|
3224
|
+
s(B) ? (C("update:value", v[v.length - 1]), C("change", B[B.length - 1])) : (C("update:value", null), C("change", null));
|
|
3225
|
+
}, d = (v, B) => B.some((D) => D[c].indexOf(v) > -1), h = () => y.value.filter((B) => B[m] === f.value[f.value.length - 1])[c], p = () => f.value, O = (v) => {
|
|
3226
|
+
f.value = v, C("update:value", v);
|
|
3227
|
+
}, b = () => {
|
|
3228
|
+
f.value = null, C("update:value", null), C("change", null);
|
|
3229
3229
|
};
|
|
3230
|
-
return
|
|
3230
|
+
return oe(() => {
|
|
3231
3231
|
_();
|
|
3232
3232
|
}), n({
|
|
3233
|
-
getName:
|
|
3234
|
-
getValue:
|
|
3235
|
-
setValue:
|
|
3236
|
-
resetValue:
|
|
3237
|
-
}), (
|
|
3238
|
-
const
|
|
3239
|
-
return x(),
|
|
3240
|
-
D
|
|
3241
|
-
value:
|
|
3242
|
-
"onUpdate:value":
|
|
3233
|
+
getName: h,
|
|
3234
|
+
getValue: p,
|
|
3235
|
+
setValue: O,
|
|
3236
|
+
resetValue: b
|
|
3237
|
+
}), (v, B) => {
|
|
3238
|
+
const D = F("a-cascader");
|
|
3239
|
+
return x(), Y("div", ds, [
|
|
3240
|
+
q(D, {
|
|
3241
|
+
value: f.value,
|
|
3242
|
+
"onUpdate:value": B[0] || (B[0] = (R) => f.value = R),
|
|
3243
3243
|
options: y.value,
|
|
3244
3244
|
fieldNames: a.fieldNames,
|
|
3245
|
-
"show-search": { filter:
|
|
3245
|
+
"show-search": { filter: d },
|
|
3246
3246
|
disabled: a.disabled,
|
|
3247
3247
|
clearable: a.clearable,
|
|
3248
3248
|
changeOnSelect: a.changeOnSelect,
|
|
3249
3249
|
placeholder: u,
|
|
3250
|
-
size:
|
|
3251
|
-
onChange:
|
|
3250
|
+
size: S(i),
|
|
3251
|
+
onChange: g,
|
|
3252
3252
|
style: { width: "100%" }
|
|
3253
3253
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "size"])
|
|
3254
3254
|
]);
|
|
@@ -3261,7 +3261,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3261
3261
|
return t;
|
|
3262
3262
|
}, ps = {};
|
|
3263
3263
|
function ms(e, n) {
|
|
3264
|
-
return x(),
|
|
3264
|
+
return x(), Y("h2", null, "未获取到页面信息,请联系管理员!");
|
|
3265
3265
|
}
|
|
3266
3266
|
const gs = /* @__PURE__ */ Cl(ps, [["render", ms]]);
|
|
3267
3267
|
function $a(e, n = {}) {
|
|
@@ -3318,10 +3318,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3318
3318
|
__name: "AntdModal",
|
|
3319
3319
|
emits: ["cancel", "submit"],
|
|
3320
3320
|
setup(e, { emit: n }) {
|
|
3321
|
-
Ul((
|
|
3322
|
-
"761c0466":
|
|
3323
|
-
"1ad0f4ad":
|
|
3324
|
-
dfcbabf2: 500 +
|
|
3321
|
+
Ul((I) => ({
|
|
3322
|
+
"761c0466": d.value,
|
|
3323
|
+
"1ad0f4ad": h.value,
|
|
3324
|
+
dfcbabf2: 500 + p()
|
|
3325
3325
|
}));
|
|
3326
3326
|
const t = ee({
|
|
3327
3327
|
instanceId: "",
|
|
@@ -3345,85 +3345,85 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3345
3345
|
count: [],
|
|
3346
3346
|
positions: {}
|
|
3347
3347
|
}));
|
|
3348
|
-
const l = window.__sagUbmpPcModalMinimizedStack, r = M("sag-vxe-page-dialog-default " + (t.mountainTop ? "" : "sag-dialog-wrap")), o = (
|
|
3349
|
-
a.value = !0,
|
|
3350
|
-
}, y = (
|
|
3351
|
-
|
|
3352
|
-
}, _ = M(null), C = M(!1),
|
|
3348
|
+
const l = window.__sagUbmpPcModalMinimizedStack, r = M("sag-vxe-page-dialog-default " + (t.mountainTop ? "" : "sag-dialog-wrap")), o = (I) => t.mountainTop ? document.body : A.targetModal.getDialogContainer != null && typeof A.targetModal.getDialogContainer == "function" ? A.targetModal.getDialogContainer(I) : I.parentNode, i = Ct(() => t.componentVue && typeof t.componentUrl == "string" ? hs(t.componentUrl) : t.componentUrl), u = t.componentVue ? "" : t.componentUrl, c = t.mountainTop ? "calc(100vh - 88px)" : "calc(100vh - 188px)", m = n, f = () => {
|
|
3349
|
+
a.value = !0, m("cancel");
|
|
3350
|
+
}, y = (I) => {
|
|
3351
|
+
m("submit", I);
|
|
3352
|
+
}, _ = M(null), C = M(!1), g = ee({
|
|
3353
3353
|
width: t.maximize ? "100%" : t.width,
|
|
3354
3354
|
height: t.maximize ? c : t.height,
|
|
3355
3355
|
minIcon: "vxe-icon-minus",
|
|
3356
3356
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3357
|
-
}),
|
|
3358
|
-
const
|
|
3359
|
-
if (!s(
|
|
3360
|
-
let
|
|
3361
|
-
for (let
|
|
3362
|
-
if (!l.count.includes(
|
|
3363
|
-
|
|
3357
|
+
}), d = Ct(() => "20px"), h = Ct(() => (l.positions[t.instanceId] ?? 0) * 100 + 20 + "px"), p = () => l.positions[t.instanceId] ?? 0, O = () => {
|
|
3358
|
+
const I = l.positions[t.instanceId];
|
|
3359
|
+
if (!s(I) || I === -1) {
|
|
3360
|
+
let H = -1;
|
|
3361
|
+
for (let W = 0; W <= 4; W++)
|
|
3362
|
+
if (!l.count.includes(W)) {
|
|
3363
|
+
H = W, l.count.push(W);
|
|
3364
3364
|
break;
|
|
3365
3365
|
}
|
|
3366
|
-
if (
|
|
3367
|
-
|
|
3366
|
+
if (H === -1) {
|
|
3367
|
+
Se("最多同时隐藏5个窗口");
|
|
3368
3368
|
return;
|
|
3369
3369
|
}
|
|
3370
|
-
l.positions[t.instanceId] =
|
|
3370
|
+
l.positions[t.instanceId] = H;
|
|
3371
3371
|
}
|
|
3372
3372
|
C.value = !0, a.value = !1, t.visible = !1;
|
|
3373
|
-
}, h = () => {
|
|
3374
|
-
C.value = !1, t.visible = !0;
|
|
3375
|
-
const q = l.positions;
|
|
3376
|
-
let E = l.count.findIndex((Y) => Y === q[t.instanceId]);
|
|
3377
|
-
E !== -1 && l.count.splice(E, 1), delete l.positions[t.instanceId];
|
|
3378
3373
|
}, b = () => {
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3374
|
+
C.value = !1, t.visible = !0;
|
|
3375
|
+
const I = l.positions;
|
|
3376
|
+
let H = l.count.findIndex((W) => W === I[t.instanceId]);
|
|
3377
|
+
H !== -1 && l.count.splice(H, 1), delete l.positions[t.instanceId];
|
|
3378
|
+
}, v = () => {
|
|
3379
|
+
let I = !_.value.fullScreen;
|
|
3380
|
+
I ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = c) : (g.maxZoomIcon = "vxe-icon-square", g.width = t.width, g.height = t.height), _.value.fullScreen = I;
|
|
3381
|
+
}, B = "vue_iframe_" + Math.round(Math.random() * 1e8), D = M(), R = () => {
|
|
3382
|
+
console.log("iframe加载完毕", B), D.value.contentWindow.addEventListener("closeSagDialogModal", function(I) {
|
|
3383
|
+
console.log("iframe关闭触发", I), f();
|
|
3384
3384
|
});
|
|
3385
3385
|
};
|
|
3386
|
-
return
|
|
3386
|
+
return oe(() => {
|
|
3387
3387
|
le("SagVxeDialog弹出参数", t), t.maximize && (_.value.fullScreen = !0);
|
|
3388
3388
|
}), Fl(() => {
|
|
3389
3389
|
if (l && l.count.length > 0) {
|
|
3390
|
-
let
|
|
3391
|
-
|
|
3390
|
+
let I = l.count.findIndex((H) => H === l.positions[t.instanceId]);
|
|
3391
|
+
I !== -1 && l.count.splice(I, 1);
|
|
3392
3392
|
}
|
|
3393
|
-
}), (
|
|
3394
|
-
const
|
|
3395
|
-
return x(),
|
|
3393
|
+
}), (I, H) => {
|
|
3394
|
+
const W = F("vxe-button"), Oe = F("a-modal");
|
|
3395
|
+
return x(), Y("div", vs, [
|
|
3396
3396
|
Vt(K("div", {
|
|
3397
3397
|
class: "sag-ubmp-pc-modal-minimized-bar",
|
|
3398
|
-
onClick:
|
|
3398
|
+
onClick: b
|
|
3399
3399
|
}, [
|
|
3400
|
-
K("span", bs, ae(t.title + (
|
|
3401
|
-
|
|
3400
|
+
K("span", bs, ae(t.title + (S(s)(t.instanceValue) ? "【" + t.instanceValue + "】" : "")), 1),
|
|
3401
|
+
q(W, {
|
|
3402
3402
|
mode: "text",
|
|
3403
3403
|
icon: "vxe-icon-square",
|
|
3404
3404
|
size: "small"
|
|
3405
3405
|
}, {
|
|
3406
|
-
default:
|
|
3407
|
-
|
|
3406
|
+
default: L(() => H[0] || (H[0] = [
|
|
3407
|
+
ue("还原")
|
|
3408
3408
|
])),
|
|
3409
3409
|
_: 1
|
|
3410
3410
|
})
|
|
3411
3411
|
], 512), [
|
|
3412
3412
|
[$t, C.value]
|
|
3413
3413
|
]),
|
|
3414
|
-
|
|
3414
|
+
q(Oe, {
|
|
3415
3415
|
ref_key: "gridModal",
|
|
3416
3416
|
ref: _,
|
|
3417
3417
|
open: t.visible,
|
|
3418
3418
|
"get-container": o,
|
|
3419
|
-
width:
|
|
3419
|
+
width: g.width,
|
|
3420
3420
|
"body-style": {
|
|
3421
|
-
height:
|
|
3421
|
+
height: g.height,
|
|
3422
3422
|
maxHeight: "initial",
|
|
3423
3423
|
minHeight: "300px",
|
|
3424
3424
|
overflowY: "auto"
|
|
3425
3425
|
},
|
|
3426
|
-
onCancel:
|
|
3426
|
+
onCancel: f,
|
|
3427
3427
|
style: { "max-width": "99%", "max-height": "99%" },
|
|
3428
3428
|
"wrap-class-name": r.value,
|
|
3429
3429
|
footer: null,
|
|
@@ -3431,36 +3431,36 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3431
3431
|
destroyOnClose: a.value,
|
|
3432
3432
|
centered: ""
|
|
3433
3433
|
}, {
|
|
3434
|
-
title:
|
|
3434
|
+
title: L(() => [
|
|
3435
3435
|
K("span", ys, ae(t.title), 1),
|
|
3436
3436
|
K("span", Ss, [
|
|
3437
|
-
|
|
3437
|
+
S(s)(t.instanceId) && t.componentVue ? (x(), z(W, {
|
|
3438
3438
|
key: 0,
|
|
3439
3439
|
mode: "text",
|
|
3440
|
-
icon:
|
|
3441
|
-
onClick:
|
|
3440
|
+
icon: g.minIcon,
|
|
3441
|
+
onClick: O,
|
|
3442
3442
|
title: "缩小"
|
|
3443
3443
|
}, null, 8, ["icon"])) : j("", !0),
|
|
3444
|
-
|
|
3444
|
+
q(W, {
|
|
3445
3445
|
mode: "text",
|
|
3446
|
-
icon:
|
|
3447
|
-
onClick:
|
|
3446
|
+
icon: g.maxZoomIcon,
|
|
3447
|
+
onClick: v,
|
|
3448
3448
|
title: "最大化"
|
|
3449
3449
|
}, null, 8, ["icon"])
|
|
3450
3450
|
])
|
|
3451
3451
|
]),
|
|
3452
|
-
default:
|
|
3452
|
+
default: L(() => [
|
|
3453
3453
|
t.componentVue ? (x(), z(Hl(i.value), te({ key: 0 }, t.componentParams, {
|
|
3454
|
-
onCancel:
|
|
3454
|
+
onCancel: f,
|
|
3455
3455
|
onSubmit: y
|
|
3456
3456
|
}), null, 16)) : j("", !0),
|
|
3457
|
-
t.componentVue ? j("", !0) : (x(),
|
|
3457
|
+
t.componentVue ? j("", !0) : (x(), Y("iframe", {
|
|
3458
3458
|
key: 1,
|
|
3459
3459
|
ref_key: "iframeRef",
|
|
3460
|
-
ref:
|
|
3461
|
-
id:
|
|
3462
|
-
src:
|
|
3463
|
-
onLoad:
|
|
3460
|
+
ref: D,
|
|
3461
|
+
id: B,
|
|
3462
|
+
src: S(u),
|
|
3463
|
+
onLoad: R,
|
|
3464
3464
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
3465
3465
|
}, null, 40, Os))
|
|
3466
3466
|
]),
|
|
@@ -3482,26 +3482,26 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3482
3482
|
},
|
|
3483
3483
|
emits: ["update:value"],
|
|
3484
3484
|
setup(e, { expose: n, emit: t }) {
|
|
3485
|
-
const a = e, l =
|
|
3486
|
-
|
|
3487
|
-
}, c = () => r.value,
|
|
3485
|
+
const a = e, l = ge(ve), r = M(null), o = E(a.placeholder, "请输入" + a.title), i = t, u = (y) => {
|
|
3486
|
+
m(y.value);
|
|
3487
|
+
}, c = () => r.value, m = (y) => {
|
|
3488
3488
|
r.value = y, i("update:value", r.value);
|
|
3489
3489
|
};
|
|
3490
3490
|
return n({
|
|
3491
3491
|
getValue: c,
|
|
3492
|
-
setValue:
|
|
3492
|
+
setValue: m,
|
|
3493
3493
|
resetValue: () => {
|
|
3494
|
-
|
|
3494
|
+
m(a.defaultValue || null);
|
|
3495
3495
|
}
|
|
3496
|
-
}),
|
|
3496
|
+
}), oe(() => {
|
|
3497
3497
|
i("update:value", c());
|
|
3498
3498
|
}), (y, _) => {
|
|
3499
|
-
const C =
|
|
3499
|
+
const C = F("vxe-input", !0);
|
|
3500
3500
|
return x(), z(C, {
|
|
3501
3501
|
"model-value": r.value,
|
|
3502
|
-
placeholder:
|
|
3502
|
+
placeholder: S(o),
|
|
3503
3503
|
disabled: a.disabled,
|
|
3504
|
-
size:
|
|
3504
|
+
size: S(l)?.size,
|
|
3505
3505
|
onChange: u,
|
|
3506
3506
|
style: { width: "100%" }
|
|
3507
3507
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
@@ -3527,7 +3527,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3527
3527
|
},
|
|
3528
3528
|
emits: ["update:value"],
|
|
3529
3529
|
setup(e, { expose: n, emit: t }) {
|
|
3530
|
-
const a = e, l =
|
|
3530
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", u = "请输入" + a.title + "搜索", c = M(""), m = M(""), f = M([]), y = t, _ = ee({
|
|
3531
3531
|
multiple: a.multiple,
|
|
3532
3532
|
filterable: a.filterable,
|
|
3533
3533
|
clearable: a.clearable,
|
|
@@ -3535,38 +3535,38 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3535
3535
|
transfer: a.transfer,
|
|
3536
3536
|
placeholder: a.filterable ? u : "",
|
|
3537
3537
|
options: [],
|
|
3538
|
-
filterMethod({ searchValue:
|
|
3539
|
-
return
|
|
3538
|
+
filterMethod({ searchValue: b, option: v }) {
|
|
3539
|
+
return v.label.toLowerCase().indexOf(Te(b).toLowerCase()) >= 0;
|
|
3540
3540
|
}
|
|
3541
3541
|
}), C = async () => {
|
|
3542
|
-
let
|
|
3543
|
-
return !
|
|
3544
|
-
},
|
|
3545
|
-
y("update:value",
|
|
3546
|
-
},
|
|
3547
|
-
c.value =
|
|
3548
|
-
let
|
|
3549
|
-
|
|
3542
|
+
let b = a.request.requestUrl;
|
|
3543
|
+
return !b && o && (b = i), b ? (b = ne(r, b), await On(o, b, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3544
|
+
}, g = ({ value: b }) => {
|
|
3545
|
+
y("update:value", b);
|
|
3546
|
+
}, d = () => m.value, h = () => c.value, p = (b) => {
|
|
3547
|
+
c.value = b, y("update:value", c.value);
|
|
3548
|
+
let v = f.value.filter((B) => B.value === c.value);
|
|
3549
|
+
v.length === 1 && (m.value = v[0].label);
|
|
3550
3550
|
};
|
|
3551
3551
|
return n({
|
|
3552
|
-
getName:
|
|
3553
|
-
getValue:
|
|
3554
|
-
setValue:
|
|
3552
|
+
getName: d,
|
|
3553
|
+
getValue: h,
|
|
3554
|
+
setValue: p,
|
|
3555
3555
|
resetValue: () => {
|
|
3556
|
-
|
|
3556
|
+
p(a.defaultValue);
|
|
3557
3557
|
}
|
|
3558
|
-
}),
|
|
3559
|
-
C().then((
|
|
3560
|
-
!a.multiple && a.selectAll && (
|
|
3558
|
+
}), oe(() => {
|
|
3559
|
+
C().then((b) => {
|
|
3560
|
+
!a.multiple && a.selectAll && (b = [{ label: "--全部--", value: "" }].concat(b)), f.value = b, _.options = b;
|
|
3561
3561
|
});
|
|
3562
|
-
}), (
|
|
3563
|
-
const
|
|
3564
|
-
return x(), z(
|
|
3562
|
+
}), (b, v) => {
|
|
3563
|
+
const B = F("vxe-select", !0);
|
|
3564
|
+
return x(), z(B, te({
|
|
3565
3565
|
modelValue: c.value,
|
|
3566
|
-
"onUpdate:modelValue":
|
|
3566
|
+
"onUpdate:modelValue": v[0] || (v[0] = (D) => c.value = D)
|
|
3567
3567
|
}, _, {
|
|
3568
|
-
size:
|
|
3569
|
-
onChange:
|
|
3568
|
+
size: S(l)?.size,
|
|
3569
|
+
onChange: g,
|
|
3570
3570
|
style: { width: "100%" }
|
|
3571
3571
|
}), null, 16, ["modelValue", "size"]);
|
|
3572
3572
|
};
|
|
@@ -3590,7 +3590,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3590
3590
|
},
|
|
3591
3591
|
emits: ["update:value"],
|
|
3592
3592
|
setup(e, { expose: n, emit: t }) {
|
|
3593
|
-
const a = e, l =
|
|
3593
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = M(""), u = M(""), c = M([]), m = t, f = ee({
|
|
3594
3594
|
clearable: !0,
|
|
3595
3595
|
filterable: !0,
|
|
3596
3596
|
disabled: a.disabled,
|
|
@@ -3600,45 +3600,45 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3600
3600
|
options: [],
|
|
3601
3601
|
remoteConfig: {
|
|
3602
3602
|
autoLoad: !1,
|
|
3603
|
-
async queryMethod({ searchValue:
|
|
3604
|
-
const
|
|
3605
|
-
|
|
3603
|
+
async queryMethod({ searchValue: p }) {
|
|
3604
|
+
const O = await y(p);
|
|
3605
|
+
f.options = O, c.value = O;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
|
-
}), y = async (
|
|
3609
|
-
if (c.value = [],
|
|
3610
|
-
const
|
|
3611
|
-
searchValue: Te(
|
|
3608
|
+
}), y = async (p) => {
|
|
3609
|
+
if (c.value = [], p) {
|
|
3610
|
+
const O = {
|
|
3611
|
+
searchValue: Te(p)
|
|
3612
3612
|
};
|
|
3613
3613
|
return await Re(ne(r, a.requestUrl), {
|
|
3614
3614
|
...a.requestParams,
|
|
3615
|
-
...
|
|
3615
|
+
...O
|
|
3616
3616
|
});
|
|
3617
3617
|
} else
|
|
3618
3618
|
return [];
|
|
3619
|
-
}, _ = ({ value:
|
|
3620
|
-
|
|
3621
|
-
}, C = () => u.value,
|
|
3622
|
-
i.value =
|
|
3623
|
-
let
|
|
3624
|
-
|
|
3625
|
-
c.value =
|
|
3626
|
-
}),
|
|
3619
|
+
}, _ = ({ value: p }) => {
|
|
3620
|
+
m("update:value", p);
|
|
3621
|
+
}, C = () => u.value, g = () => i.value, d = (p) => {
|
|
3622
|
+
i.value = p;
|
|
3623
|
+
let O = c.value.filter((b) => b.value === i.value);
|
|
3624
|
+
O.length === 1 ? u.value = O[0].label : y(p).then((b) => {
|
|
3625
|
+
c.value = b;
|
|
3626
|
+
}), m("update:value", i.value);
|
|
3627
3627
|
};
|
|
3628
3628
|
return n({
|
|
3629
3629
|
getName: C,
|
|
3630
|
-
getValue:
|
|
3631
|
-
setValue:
|
|
3630
|
+
getValue: g,
|
|
3631
|
+
setValue: d,
|
|
3632
3632
|
resetValue: () => {
|
|
3633
|
-
|
|
3633
|
+
d(a.defaultValue);
|
|
3634
3634
|
}
|
|
3635
|
-
}), (
|
|
3636
|
-
const
|
|
3637
|
-
return x(), z(
|
|
3635
|
+
}), (p, O) => {
|
|
3636
|
+
const b = F("vxe-select");
|
|
3637
|
+
return x(), z(b, te({
|
|
3638
3638
|
modelValue: i.value,
|
|
3639
|
-
"onUpdate:modelValue":
|
|
3640
|
-
},
|
|
3641
|
-
size:
|
|
3639
|
+
"onUpdate:modelValue": O[0] || (O[0] = (v) => i.value = v)
|
|
3640
|
+
}, f, {
|
|
3641
|
+
size: S(l)?.size,
|
|
3642
3642
|
onChange: _,
|
|
3643
3643
|
style: { width: "100%" }
|
|
3644
3644
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3663,41 +3663,41 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3663
3663
|
},
|
|
3664
3664
|
emits: ["update:value"],
|
|
3665
3665
|
setup(e, { expose: n, emit: t }) {
|
|
3666
|
-
const a = e, l =
|
|
3666
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i = M(""), u = M(""), c = M([]), m = t, f = ee({
|
|
3667
3667
|
filterable: !0,
|
|
3668
3668
|
clearable: !0,
|
|
3669
3669
|
disabled: a.disabled,
|
|
3670
3670
|
transfer: a.transfer,
|
|
3671
3671
|
placeholder: o,
|
|
3672
3672
|
options: [],
|
|
3673
|
-
filterMethod({ searchValue:
|
|
3674
|
-
return
|
|
3673
|
+
filterMethod({ searchValue: p, option: O }) {
|
|
3674
|
+
return O.label.toLowerCase().indexOf(Te(p).toLowerCase()) >= 0;
|
|
3675
3675
|
}
|
|
3676
|
-
}), y = async () => await Re(ne(r, a.requestUrl), a.requestParams), _ = ({ value:
|
|
3677
|
-
|
|
3678
|
-
}, C = () => u.value,
|
|
3679
|
-
i.value =
|
|
3680
|
-
let
|
|
3681
|
-
|
|
3676
|
+
}), y = async () => await Re(ne(r, a.requestUrl), a.requestParams), _ = ({ value: p }) => {
|
|
3677
|
+
m("update:value", p);
|
|
3678
|
+
}, C = () => u.value, g = () => i.value, d = (p) => {
|
|
3679
|
+
i.value = p, m("update:value", i.value);
|
|
3680
|
+
let O = c.value.filter((b) => b.value === i.value);
|
|
3681
|
+
O.length === 1 && (u.value = O[0].label);
|
|
3682
3682
|
};
|
|
3683
3683
|
return n({
|
|
3684
3684
|
getName: C,
|
|
3685
|
-
getValue:
|
|
3686
|
-
setValue:
|
|
3685
|
+
getValue: g,
|
|
3686
|
+
setValue: d,
|
|
3687
3687
|
resetValue: () => {
|
|
3688
|
-
|
|
3688
|
+
d(a.defaultValue);
|
|
3689
3689
|
}
|
|
3690
|
-
}),
|
|
3691
|
-
y().then((
|
|
3692
|
-
c.value =
|
|
3690
|
+
}), oe(() => {
|
|
3691
|
+
y().then((p) => {
|
|
3692
|
+
c.value = p, f.options = p;
|
|
3693
3693
|
});
|
|
3694
|
-
}), (
|
|
3695
|
-
const
|
|
3696
|
-
return x(), z(
|
|
3694
|
+
}), (p, O) => {
|
|
3695
|
+
const b = F("vxe-select");
|
|
3696
|
+
return x(), z(b, te({
|
|
3697
3697
|
modelValue: i.value,
|
|
3698
|
-
"onUpdate:modelValue":
|
|
3699
|
-
},
|
|
3700
|
-
size:
|
|
3698
|
+
"onUpdate:modelValue": O[0] || (O[0] = (v) => i.value = v)
|
|
3699
|
+
}, f, {
|
|
3700
|
+
size: S(l)?.size,
|
|
3701
3701
|
onChange: _,
|
|
3702
3702
|
style: { width: "100%" }
|
|
3703
3703
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3716,34 +3716,34 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3716
3716
|
}
|
|
3717
3717
|
const o = new at.ExcelJS.Workbook(), i = o.addWorksheet(r.sheetName);
|
|
3718
3718
|
let u = [], c = 0;
|
|
3719
|
-
if (r.columns.forEach((
|
|
3720
|
-
A.templateTable.ignoreExportColumnsTitle.includes(
|
|
3721
|
-
key:
|
|
3722
|
-
header:
|
|
3723
|
-
width: s(
|
|
3719
|
+
if (r.columns.forEach((m, f) => {
|
|
3720
|
+
A.templateTable.ignoreExportColumnsTitle.includes(m.title) ? c++ : u.push({
|
|
3721
|
+
key: m.field,
|
|
3722
|
+
header: m.title,
|
|
3723
|
+
width: s(m.exportWidth) ? m.exportWidth : m.title.length * 2 + 4
|
|
3724
3724
|
});
|
|
3725
|
-
}), i.columns = u, i.addRows(r.data), i.eachRow(function(
|
|
3726
|
-
|
|
3725
|
+
}), i.columns = u, i.addRows(r.data), i.eachRow(function(m, f) {
|
|
3726
|
+
m.eachCell({ includeEmpty: !0 }, function(y, _) {
|
|
3727
3727
|
s(y.value) && (y.value.toString().includes(`
|
|
3728
3728
|
`) ? y.alignment = { wrapText: !0 } : y.value.toString().includes("\\n") && (y.value = y.value.toString().replaceAll("\\n", `
|
|
3729
3729
|
`), y.alignment = { wrapText: !0 }));
|
|
3730
3730
|
});
|
|
3731
3731
|
}), s(r.mergeCells)) {
|
|
3732
|
-
let
|
|
3733
|
-
r.mergeCells.forEach((
|
|
3734
|
-
let y =
|
|
3732
|
+
let m = {};
|
|
3733
|
+
r.mergeCells.forEach((f) => {
|
|
3734
|
+
let y = f.col - c;
|
|
3735
3735
|
const _ = l[y];
|
|
3736
|
-
if (s(
|
|
3737
|
-
let C =
|
|
3738
|
-
const
|
|
3739
|
-
i.mergeCells(
|
|
3736
|
+
if (s(m[_]) ? m[_] = m[_] + f.rowspan : m[_] = f.rowspan + 1, f.col >= c && f.rowspan != 1) {
|
|
3737
|
+
let C = f.row + 2;
|
|
3738
|
+
const g = "'" + _ + C + ":" + _ + m[_] + "'";
|
|
3739
|
+
i.mergeCells(g);
|
|
3740
3740
|
}
|
|
3741
3741
|
});
|
|
3742
3742
|
}
|
|
3743
|
-
o.xlsx.writeBuffer().then((
|
|
3744
|
-
let
|
|
3745
|
-
at.FileSaver.saveAs(
|
|
3746
|
-
}).catch((
|
|
3743
|
+
o.xlsx.writeBuffer().then((m) => {
|
|
3744
|
+
let f = new Blob([m], { type: "application/octet-stream" });
|
|
3745
|
+
at.FileSaver.saveAs(f, r.filename + ".xlsx");
|
|
3746
|
+
}).catch((m) => le("Error writing excel export", m));
|
|
3747
3747
|
} catch (o) {
|
|
3748
3748
|
vt("下载失败", o);
|
|
3749
3749
|
}
|
|
@@ -3803,21 +3803,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3803
3803
|
51: "AZ"
|
|
3804
3804
|
};
|
|
3805
3805
|
return (r, o) => {
|
|
3806
|
-
const i =
|
|
3806
|
+
const i = F("vxe-button");
|
|
3807
3807
|
return x(), z(i, {
|
|
3808
3808
|
size: "small",
|
|
3809
3809
|
circle: !0,
|
|
3810
3810
|
onClick: o[0] || (o[0] = (u) => a()),
|
|
3811
3811
|
title: "导出"
|
|
3812
3812
|
}, {
|
|
3813
|
-
default:
|
|
3813
|
+
default: L(() => o[1] || (o[1] = [
|
|
3814
3814
|
K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
3815
3815
|
])),
|
|
3816
3816
|
_: 1
|
|
3817
3817
|
});
|
|
3818
3818
|
};
|
|
3819
3819
|
}
|
|
3820
|
-
}), As = { class: "sag-vxe-page-search-wrapper" }, Ts = { class: "sag-vxe-page-table-wrapper" }, Ms = ["onClick"], Vs = { style: { "font-weight": "bold" } }, $s = { key: 0 }, zs = ["onClick"], js = { key: 1 }, qs = { style: { display: "inline" } }, Ds = { key: 0 },
|
|
3820
|
+
}), As = { class: "sag-vxe-page-search-wrapper" }, Ts = { class: "sag-vxe-page-table-wrapper" }, Ms = ["onClick"], Vs = { style: { "font-weight": "bold" } }, $s = { key: 0 }, zs = ["onClick"], js = { key: 1 }, qs = { style: { display: "inline" } }, Ds = { key: 0 }, Bs = ["onClick"], Ns = ["onClick"], Ls = { key: 0 }, Is = { key: 1 }, Rs = { key: 2 }, ja = /* @__PURE__ */ Q({
|
|
3821
3821
|
name: "SagVxePage",
|
|
3822
3822
|
inheritAttrs: !1,
|
|
3823
3823
|
__name: "SagVxePage",
|
|
@@ -3892,7 +3892,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3892
3892
|
},
|
|
3893
3893
|
formItems: V.toString(r?.templateForm?.formItems, []),
|
|
3894
3894
|
formRules: V.toString(r?.templateForm?.formRules, {})
|
|
3895
|
-
}),
|
|
3895
|
+
}), m = ee({
|
|
3896
3896
|
rowType: V.toString(r?.templateTable?.rowType, null),
|
|
3897
3897
|
editConfig: V.toString(r?.templateTable?.editConfig, !1),
|
|
3898
3898
|
showFooter: V.toString(r?.templateTable?.showFooter, !1),
|
|
@@ -3906,7 +3906,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3906
3906
|
pageSizes: V.toString(r?.templateTable?.pageSizes, []),
|
|
3907
3907
|
layouts: V.toString(r?.templateTable?.layouts, null),
|
|
3908
3908
|
footerMethod: V.toString(r?.templateTable?.footerMethod, null)
|
|
3909
|
-
}),
|
|
3909
|
+
}), f = ee({
|
|
3910
3910
|
mergeKey: V.toString(r?.templateTable?.tableColumnMerge?.mergeKey, null),
|
|
3911
3911
|
seqKey: V.toString(r?.templateTable?.tableColumnMerge?.seqKey, null),
|
|
3912
3912
|
isMerge: V.toString(r?.templateTable?.tableColumnMerge?.isMerge, !1),
|
|
@@ -3954,31 +3954,31 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3954
3954
|
}
|
|
3955
3955
|
}), C = ee({
|
|
3956
3956
|
pageSizePlacement: V.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3957
|
-
}),
|
|
3958
|
-
qn(
|
|
3959
|
-
const
|
|
3957
|
+
}), g = A.application + "_" + o.templateType, d = "sag_vxe_page_div_panel_" + g;
|
|
3958
|
+
qn(ve, o), qn(Xi, () => document.getElementById(S(d)));
|
|
3959
|
+
const h = Object.keys(Le()), p = h.filter((P) => P.startsWith("items_")), O = h.filter((P) => P.startsWith("cols_")), b = h.filter((P) => P.startsWith("tools_")), v = M(), B = M(!0), D = M(!1), R = M("none"), I = M(["1"]), H = M(0), W = qe(o.size), Oe = M(), G = ee({}), we = M([]), Je = M(), Ot = M([]), Ze = t, be = (P, w) => {
|
|
3960
3960
|
we.value[w] = P;
|
|
3961
3961
|
}, De = async () => {
|
|
3962
|
-
const P =
|
|
3963
|
-
if (!
|
|
3962
|
+
const P = v.value;
|
|
3963
|
+
if (!D.value && P) {
|
|
3964
3964
|
const w = Je.value;
|
|
3965
|
-
w ? w.validate().then((
|
|
3966
|
-
(!
|
|
3965
|
+
w ? w.validate().then((N) => {
|
|
3966
|
+
(!N || N.length === 0) && P.commitProxy("query");
|
|
3967
3967
|
}) : P.commitProxy("query");
|
|
3968
3968
|
}
|
|
3969
3969
|
}, Cn = () => {
|
|
3970
3970
|
c.storage && Dn(o.application, o.templateType, {}), Ke(Ot.value[0].children, we, G), Ze("resetValue");
|
|
3971
3971
|
}, xl = () => {
|
|
3972
3972
|
dt(() => {
|
|
3973
|
-
|
|
3973
|
+
Nn(Oe.value, Z, m.clientScale);
|
|
3974
3974
|
});
|
|
3975
3975
|
}, Z = ee({
|
|
3976
3976
|
size: o.size,
|
|
3977
|
-
minHeight:
|
|
3978
|
-
maxHeight:
|
|
3979
|
-
showFooter:
|
|
3980
|
-
showOverflow:
|
|
3981
|
-
layouts:
|
|
3977
|
+
minHeight: m.minHeight,
|
|
3978
|
+
maxHeight: m.maxHeight,
|
|
3979
|
+
showFooter: m.showFooter,
|
|
3980
|
+
showOverflow: m.showOverflow,
|
|
3981
|
+
layouts: m.layouts,
|
|
3982
3982
|
params: {
|
|
3983
3983
|
switchType: "1",
|
|
3984
3984
|
currentRow: {},
|
|
@@ -4014,76 +4014,76 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4014
4014
|
ajax: {
|
|
4015
4015
|
// 接收 Promise 对象
|
|
4016
4016
|
query: (P) => {
|
|
4017
|
-
const { page: w, sorts:
|
|
4017
|
+
const { page: w, sorts: N, filters: U, form: X } = P, de = jt(w, N, U, X, G, we);
|
|
4018
4018
|
if (c.storage) {
|
|
4019
|
-
const Pe = Vr(
|
|
4019
|
+
const Pe = Vr(N, U, X, G);
|
|
4020
4020
|
Dn(o.application, o.templateType, Pe);
|
|
4021
4021
|
}
|
|
4022
|
-
return xn(
|
|
4022
|
+
return xn(de, i.requestData, !1);
|
|
4023
4023
|
},
|
|
4024
4024
|
querySuccess: (P) => {
|
|
4025
|
-
const { page: w, sort:
|
|
4026
|
-
|
|
4025
|
+
const { page: w, sort: N, sorts: U, filters: X, form: de, response: Pe } = P;
|
|
4026
|
+
f?.isMerge && (Z.mergeCells = kn(Pe?.rows)), Ze("search", Pe, { $gridRef: v.value, gridOptions: Z });
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
4029
|
},
|
|
4030
|
-
footerMethod:
|
|
4030
|
+
footerMethod: m.footerMethod
|
|
4031
4031
|
}), wt = M(!1), Pl = () => {
|
|
4032
4032
|
pt("确定要强制显示数据内容吗?", () => {
|
|
4033
|
-
|
|
4033
|
+
f?.isMerge ? Z.mergeCells = null : Z.spanMethod = Bn({}), Z.virtualYConfig = { enabled: !0 }, wt.value = !0, De();
|
|
4034
4034
|
});
|
|
4035
|
-
}, xn = async (P, w,
|
|
4036
|
-
if (
|
|
4035
|
+
}, xn = async (P, w, N) => {
|
|
4036
|
+
if (R.value = "none", wt.value)
|
|
4037
4037
|
return wt.value = !1, Z.params.data;
|
|
4038
4038
|
{
|
|
4039
|
-
|
|
4040
|
-
$gridRef:
|
|
4039
|
+
D.value = !0, o.onLoadBeforeModule && o.onLoadBeforeModule({
|
|
4040
|
+
$gridRef: v.value,
|
|
4041
4041
|
gridOptions: Z,
|
|
4042
4042
|
queryParams: P,
|
|
4043
|
-
exportFlag:
|
|
4043
|
+
exportFlag: N
|
|
4044
4044
|
});
|
|
4045
|
-
const
|
|
4045
|
+
const U = await We(
|
|
4046
4046
|
ne(o.ctxPath, w),
|
|
4047
4047
|
P
|
|
4048
4048
|
).finally(() => {
|
|
4049
4049
|
setTimeout(() => {
|
|
4050
|
-
|
|
4050
|
+
D.value = !1;
|
|
4051
4051
|
}, 1e3);
|
|
4052
4052
|
});
|
|
4053
|
-
if (
|
|
4054
|
-
if (Z.params.dataSum =
|
|
4055
|
-
if (!
|
|
4056
|
-
return
|
|
4057
|
-
|
|
4053
|
+
if (U.success) {
|
|
4054
|
+
if (Z.params.dataSum = U.data?.dataSum, f?.mergeKey) {
|
|
4055
|
+
if (!N && U.data.rows.length > 800)
|
|
4056
|
+
return R.value = "more", Z.params.data = Pn(U.data), null;
|
|
4057
|
+
f?.isMerge || (Z.virtualYConfig = { enabled: !1 });
|
|
4058
4058
|
}
|
|
4059
|
-
return Pn(
|
|
4059
|
+
return Pn(U.data);
|
|
4060
4060
|
} else
|
|
4061
|
-
return
|
|
4061
|
+
return R.value = "error", null;
|
|
4062
4062
|
}
|
|
4063
4063
|
}, kl = (P) => {
|
|
4064
|
-
if (
|
|
4064
|
+
if (m.rowType === "checkbox") {
|
|
4065
4065
|
le("checkboxChange", P);
|
|
4066
|
-
const w =
|
|
4066
|
+
const w = f?.mergeKey;
|
|
4067
4067
|
if (w) {
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
const
|
|
4071
|
-
for (let X in
|
|
4072
|
-
P.row[w] ===
|
|
4068
|
+
const N = v.value;
|
|
4069
|
+
if (N) {
|
|
4070
|
+
const U = N.getTableData();
|
|
4071
|
+
for (let X in U.tableData)
|
|
4072
|
+
P.row[w] === U.tableData[X][w] && N.setCheckboxRow(U.tableData[X], P.checked);
|
|
4073
4073
|
}
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
}, Al = (P) => {
|
|
4077
|
-
if (
|
|
4077
|
+
if (m.rowType === "radio") {
|
|
4078
4078
|
le("radioChange", P);
|
|
4079
|
-
const w =
|
|
4079
|
+
const w = f?.mergeKey;
|
|
4080
4080
|
if (w) {
|
|
4081
|
-
const
|
|
4082
|
-
if (
|
|
4083
|
-
const
|
|
4084
|
-
for (let X in
|
|
4085
|
-
if (P.row[w] ===
|
|
4086
|
-
|
|
4081
|
+
const N = v.value;
|
|
4082
|
+
if (N) {
|
|
4083
|
+
const U = N.getTableData();
|
|
4084
|
+
for (let X in U.tableData)
|
|
4085
|
+
if (P.row[w] === U.tableData[X][w]) {
|
|
4086
|
+
N.setRadioRow(U.tableData[X]);
|
|
4087
4087
|
break;
|
|
4088
4088
|
}
|
|
4089
4089
|
}
|
|
@@ -4094,60 +4094,60 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4094
4094
|
}, Ml = () => {
|
|
4095
4095
|
Z.params.currentRow = null;
|
|
4096
4096
|
}, Pn = (P) => {
|
|
4097
|
-
const w =
|
|
4098
|
-
if (
|
|
4099
|
-
let
|
|
4100
|
-
for (let
|
|
4101
|
-
|
|
4097
|
+
const w = f?.seqKey, N = f?.mergeKey;
|
|
4098
|
+
if (N && w) {
|
|
4099
|
+
let U = [""], X = 0 + P.pageSize * (P.pageNo - 1);
|
|
4100
|
+
for (let de in P.rows)
|
|
4101
|
+
U.includes(P.rows[de][N]) || (X++, U.push(P.rows[de][N])), P.rows[de][w] = X;
|
|
4102
4102
|
}
|
|
4103
4103
|
return o.onLoadAfterModule ? o.onLoadAfterModule({
|
|
4104
|
-
$gridRef:
|
|
4104
|
+
$gridRef: v.value,
|
|
4105
4105
|
gridOptions: Z,
|
|
4106
4106
|
data: P
|
|
4107
4107
|
}) : P;
|
|
4108
4108
|
}, kn = (P) => {
|
|
4109
|
-
const w =
|
|
4110
|
-
if (w &&
|
|
4111
|
-
const
|
|
4112
|
-
let
|
|
4109
|
+
const w = f?.mergeKey;
|
|
4110
|
+
if (w && f.isMerge) {
|
|
4111
|
+
const N = v.value;
|
|
4112
|
+
let U = [], X = {}, de = {};
|
|
4113
4113
|
for (let _e = 0; _e < P.length; _e++) {
|
|
4114
|
-
const
|
|
4114
|
+
const ie = P[_e], Ne = P[_e - 1];
|
|
4115
4115
|
let ke = P[_e + 1];
|
|
4116
|
-
s(
|
|
4116
|
+
s(de[ie[w]]) || (de[ie[w]] = _e + 0), s(X[ie[w]]) ? (s(ke) && ke[w] === ie[w] || s(Ne) && Ne[w] === ie[w]) && (X[ie[w]] = X[ie[w]] + 1) : X[ie[w]] = 1;
|
|
4117
4117
|
}
|
|
4118
|
-
let Pe =
|
|
4118
|
+
let Pe = f?.fields;
|
|
4119
4119
|
for (let _e in Pe) {
|
|
4120
|
-
let
|
|
4121
|
-
for (let ke in
|
|
4122
|
-
|
|
4123
|
-
{ row:
|
|
4120
|
+
let ie = N?.getColumnByField(Pe[_e]), Ne = N?.getColumnIndex(ie);
|
|
4121
|
+
for (let ke in de)
|
|
4122
|
+
U = U.concat([
|
|
4123
|
+
{ row: de[ke], col: Ne, rowspan: X[ke], colspan: 1 }
|
|
4124
4124
|
]);
|
|
4125
4125
|
}
|
|
4126
|
-
return
|
|
4126
|
+
return U;
|
|
4127
4127
|
}
|
|
4128
4128
|
return null;
|
|
4129
4129
|
}, Vl = ee({
|
|
4130
4130
|
cellMenu(P) {
|
|
4131
|
-
const w =
|
|
4131
|
+
const w = v.value;
|
|
4132
4132
|
w && w.setCurrentRow(P.row);
|
|
4133
4133
|
},
|
|
4134
4134
|
menuClick(P) {
|
|
4135
4135
|
Qe(P.menu, P.row);
|
|
4136
4136
|
}
|
|
4137
4137
|
}), An = ({ row: P }) => {
|
|
4138
|
-
const w =
|
|
4138
|
+
const w = f?.mergeKey;
|
|
4139
4139
|
if (P?.[w] === Z.params.currentRow?.[w])
|
|
4140
4140
|
return {
|
|
4141
|
-
backgroundColor:
|
|
4141
|
+
backgroundColor: f?.backgroundColor
|
|
4142
4142
|
};
|
|
4143
4143
|
}, $l = () => {
|
|
4144
|
-
const P = document.getElementById(
|
|
4144
|
+
const P = document.getElementById(d);
|
|
4145
4145
|
if (P) {
|
|
4146
4146
|
const w = P.getElementsByTagName("form");
|
|
4147
4147
|
w && w.length > 0 && (w[0].submit = () => (a.visible = !1, De(), !1));
|
|
4148
4148
|
}
|
|
4149
|
-
}, { clickFormButton: zl, clickTableButton: Qe, clickHerf: Tn } =
|
|
4150
|
-
gridRef:
|
|
4149
|
+
}, { clickFormButton: zl, clickTableButton: Qe, clickHerf: Tn } = Ii({
|
|
4150
|
+
gridRef: v,
|
|
4151
4151
|
targetModal: a,
|
|
4152
4152
|
modalList: l,
|
|
4153
4153
|
gridOptions: Z,
|
|
@@ -4157,121 +4157,121 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4157
4157
|
}), { downloadEvent: Mn, importEvent: jl, switchColumsEvent: Vn } = Ri({
|
|
4158
4158
|
formRef: Je,
|
|
4159
4159
|
formData: G,
|
|
4160
|
-
gridRef:
|
|
4160
|
+
gridRef: v,
|
|
4161
4161
|
gridOptions: Z,
|
|
4162
4162
|
loadData: xn,
|
|
4163
4163
|
pageOptions: o,
|
|
4164
4164
|
templateItemRefs: we,
|
|
4165
4165
|
doMergeCells: kn,
|
|
4166
|
-
pageTable:
|
|
4167
|
-
pageTableMerge:
|
|
4166
|
+
pageTable: m,
|
|
4167
|
+
pageTableMerge: f,
|
|
4168
4168
|
pageRequest: i
|
|
4169
4169
|
}), ql = async () => {
|
|
4170
4170
|
if (s(c.formItems)) {
|
|
4171
|
-
const w = c.formItems,
|
|
4172
|
-
Object.keys(w).forEach((
|
|
4173
|
-
w[X].folding = !(X <
|
|
4171
|
+
const w = c.formItems, N = c.formProps.foldingLength;
|
|
4172
|
+
Object.keys(w).forEach((U, X) => {
|
|
4173
|
+
w[X].folding = !(X < N);
|
|
4174
4174
|
}), Ot.value = [
|
|
4175
4175
|
{ span: 24, align: "right", children: w },
|
|
4176
4176
|
{
|
|
4177
4177
|
span: 24,
|
|
4178
4178
|
align: c.formProps.buttonAlign,
|
|
4179
|
-
collapseNode: w.length >
|
|
4179
|
+
collapseNode: w.length > N,
|
|
4180
4180
|
slots: { default: "toolbar_tools" }
|
|
4181
4181
|
}
|
|
4182
4182
|
];
|
|
4183
4183
|
}
|
|
4184
4184
|
if (document.documentElement.clientHeight < 680) {
|
|
4185
|
-
const w =
|
|
4186
|
-
Object.keys(w).forEach((
|
|
4187
|
-
const
|
|
4188
|
-
|
|
4185
|
+
const w = m.tableColumns;
|
|
4186
|
+
Object.keys(w).forEach((U) => w[U].fixed = !1);
|
|
4187
|
+
const N = m.tableColumnsExtra;
|
|
4188
|
+
N && Object.keys(N).forEach((U) => N[U].fixed = !1);
|
|
4189
4189
|
}
|
|
4190
|
-
Vn(o.application, !0),
|
|
4191
|
-
const P =
|
|
4192
|
-
P && P.length > 0 && Z.pagerConfig && (Z.pagerConfig.pageSizes = P),
|
|
4190
|
+
Vn(o.application, !0), m.rowType === "checkbox" ? Z.checkboxConfig = { highlight: !0 } : m.rowType === "radio" ? Z.radioConfig = { highlight: !0 } : Z.rowConfig.isCurrent = !0;
|
|
4191
|
+
const P = m.pageSizes;
|
|
4192
|
+
P && P.length > 0 && Z.pagerConfig && (Z.pagerConfig.pageSizes = P), m.editConfig && (Z.editConfig = {
|
|
4193
4193
|
trigger: "click",
|
|
4194
4194
|
mode: "row",
|
|
4195
4195
|
showStatus: !0
|
|
4196
|
-
}), s(
|
|
4197
|
-
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((
|
|
4198
|
-
|
|
4196
|
+
}), s(f) && s(f.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = f.mergeKey, f.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod = Bn(f))), B.value = !1;
|
|
4197
|
+
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((N) => Ee(w[N.buttonName]) && Ee(N.auth)) : !0 : !1;
|
|
4198
|
+
oe(async () => {
|
|
4199
4199
|
if (le("加载页面模板", o), await ql(), c.storage) {
|
|
4200
4200
|
const P = nr(o.application, o.templateType);
|
|
4201
4201
|
if (s(P)) {
|
|
4202
4202
|
let w = [];
|
|
4203
|
-
Me.arrayEach(c.formItems, (
|
|
4204
|
-
w.push(
|
|
4203
|
+
Me.arrayEach(c.formItems, (U, X) => {
|
|
4204
|
+
w.push(U.field);
|
|
4205
4205
|
});
|
|
4206
|
-
let
|
|
4207
|
-
Me.objectEach(P, (
|
|
4208
|
-
|
|
4209
|
-
}), Me.includeArrays(w,
|
|
4206
|
+
let N = [];
|
|
4207
|
+
Me.objectEach(P, (U, X) => {
|
|
4208
|
+
N.push(X);
|
|
4209
|
+
}), Me.includeArrays(w, N) ? jn(P) : await Ke(c.formItems, we, G);
|
|
4210
4210
|
} else
|
|
4211
4211
|
await Ke(c.formItems, we, G);
|
|
4212
4212
|
} else
|
|
4213
4213
|
await Ke(c.formItems, we, G);
|
|
4214
4214
|
o.onMountedModule && await o.onMountedModule({
|
|
4215
4215
|
$formRef: Je.value,
|
|
4216
|
-
$gridRef:
|
|
4216
|
+
$gridRef: v.value,
|
|
4217
4217
|
gridOptions: Z,
|
|
4218
4218
|
pageOptions: o,
|
|
4219
4219
|
formData: G
|
|
4220
4220
|
}), $l(), await De(), $n();
|
|
4221
4221
|
});
|
|
4222
4222
|
const $n = Me.debounce(() => {
|
|
4223
|
-
le("屏幕高度出现变化,重新计算表格高度"),
|
|
4224
|
-
|
|
4223
|
+
le("屏幕高度出现变化,重新计算表格高度"), m.clientScale === 1 && H.value == 0 && (window.onresize = () => {
|
|
4224
|
+
H.value = document.body.clientWidth;
|
|
4225
4225
|
}), dt(() => {
|
|
4226
|
-
|
|
4226
|
+
Nn(Oe.value, Z, m.clientScale);
|
|
4227
4227
|
});
|
|
4228
4228
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4229
|
-
|
|
4230
|
-
[
|
|
4229
|
+
m.clientScale === 1 && he(
|
|
4230
|
+
[I, H],
|
|
4231
4231
|
() => {
|
|
4232
4232
|
$n();
|
|
4233
4233
|
},
|
|
4234
4234
|
{ deep: !0, immediate: !0 }
|
|
4235
4235
|
);
|
|
4236
|
-
const
|
|
4236
|
+
const Bl = (P) => {
|
|
4237
4237
|
if (s(P.instanceId)) {
|
|
4238
4238
|
const w = {};
|
|
4239
|
-
w.instanceId =
|
|
4240
|
-
const
|
|
4241
|
-
if (s(
|
|
4242
|
-
if (l.value[
|
|
4243
|
-
|
|
4239
|
+
w.instanceId = Be + P.instanceId, w.title = E(P.title, A.targetModal.title), w.width = E(P.width, A.targetModal.width), w.height = E(P.height, A.targetModal.height), w.maximize = E(P.maximize, !1), w.autoLoad = E(P.autoLoad, !1), w.componentVue = E(P.componentVue, A.targetModal.componentVue), w.componentParams = P.componentParams, w.componentUrl = P.componentUrl, w.visible = !0;
|
|
4240
|
+
const N = l.value.findIndex((U) => U.instanceId === w.instanceId);
|
|
4241
|
+
if (s(N) && N >= 0)
|
|
4242
|
+
if (l.value[N].visible) {
|
|
4243
|
+
Se("已经打开该数据弹窗信息");
|
|
4244
4244
|
return;
|
|
4245
4245
|
} else
|
|
4246
|
-
l.value[
|
|
4246
|
+
l.value[N] = w;
|
|
4247
4247
|
else
|
|
4248
4248
|
l.value.push(w);
|
|
4249
4249
|
} else
|
|
4250
|
-
a.title =
|
|
4250
|
+
a.title = E(P.title, A.targetModal.title), a.width = E(P.width, A.targetModal.width), a.height = E(P.height, A.targetModal.height), a.maximize = E(P.maximize, !1), a.autoLoad = E(P.autoLoad, !1), a.componentVue = E(P.componentVue, A.targetModal.componentVue), a.componentParams = P.componentParams, a.componentUrl = P.componentUrl, a.visible = !0;
|
|
4251
4251
|
}, _t = (P) => {
|
|
4252
4252
|
if (s(P)) {
|
|
4253
|
-
const w = l.value.findIndex((
|
|
4253
|
+
const w = l.value.findIndex((N) => N.instanceId === P);
|
|
4254
4254
|
w !== -1 && (l.value[w].visible = !1, l.value[w].autoLoad && De());
|
|
4255
4255
|
} else
|
|
4256
4256
|
a.visible = !1, a.autoLoad && De();
|
|
4257
4257
|
}, zn = (P, w) => {
|
|
4258
4258
|
if (s(w)) {
|
|
4259
|
-
const
|
|
4260
|
-
if (
|
|
4261
|
-
l.value[
|
|
4262
|
-
const
|
|
4263
|
-
Ze("submit", { data: P, params:
|
|
4259
|
+
const N = l.value.findIndex((U) => U.instanceId === w);
|
|
4260
|
+
if (N !== -1) {
|
|
4261
|
+
l.value[N].visible = !1;
|
|
4262
|
+
const U = l.value[N].componentParams;
|
|
4263
|
+
Ze("submit", { data: P, params: U, button: U[A.buttonKeyName] });
|
|
4264
4264
|
}
|
|
4265
4265
|
} else {
|
|
4266
4266
|
a.visible = !1;
|
|
4267
|
-
const
|
|
4268
|
-
Ze("submit", { data: P, params:
|
|
4267
|
+
const N = a.componentParams;
|
|
4268
|
+
Ze("submit", { data: P, params: N, button: N[A.buttonKeyName] });
|
|
4269
4269
|
}
|
|
4270
|
-
},
|
|
4271
|
-
const P =
|
|
4270
|
+
}, Nl = async () => await Sl(v, Z), Ll = async () => {
|
|
4271
|
+
const P = v.value;
|
|
4272
4272
|
if (P) {
|
|
4273
|
-
const { pager: w, filter:
|
|
4274
|
-
return jt(w, X,
|
|
4273
|
+
const { pager: w, filter: N, form: U, sort: X } = P.getProxyInfo();
|
|
4274
|
+
return jt(w, X, N, U, G, we);
|
|
4275
4275
|
} else
|
|
4276
4276
|
return null;
|
|
4277
4277
|
}, jn = (P) => {
|
|
@@ -4281,39 +4281,39 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4281
4281
|
return n({
|
|
4282
4282
|
doSearch: De,
|
|
4283
4283
|
resetFrom: Cn,
|
|
4284
|
-
showViewModal:
|
|
4284
|
+
showViewModal: Bl,
|
|
4285
4285
|
hideViewModal: _t,
|
|
4286
4286
|
getMergeCellStyle: An,
|
|
4287
|
-
getRequestData:
|
|
4288
|
-
getFormData:
|
|
4287
|
+
getRequestData: Nl,
|
|
4288
|
+
getFormData: Ll,
|
|
4289
4289
|
setFormData: jn,
|
|
4290
4290
|
setExportColumns: (P) => {
|
|
4291
4291
|
Z.params.exportColumns = P;
|
|
4292
4292
|
}
|
|
4293
4293
|
}), (P, w) => {
|
|
4294
|
-
const
|
|
4295
|
-
return Vt((x(),
|
|
4296
|
-
id:
|
|
4294
|
+
const N = F("a-button"), U = F("a-space"), X = F("vxe-form"), de = F("a-collapse-panel"), Pe = F("a-collapse"), _e = F("a-menu-item"), ie = F("a-menu"), Ne = F("a-dropdown"), ke = F("vxe-button"), Il = F("vxe-grid");
|
|
4295
|
+
return Vt((x(), Y("div", {
|
|
4296
|
+
id: d,
|
|
4297
4297
|
class: "sag-vxe-page-wrapper"
|
|
4298
4298
|
}, [
|
|
4299
4299
|
Vt(K("div", As, [
|
|
4300
|
-
|
|
4301
|
-
activeKey:
|
|
4302
|
-
"onUpdate:activeKey": w[2] || (w[2] = (k) =>
|
|
4300
|
+
q(Pe, {
|
|
4301
|
+
activeKey: I.value,
|
|
4302
|
+
"onUpdate:activeKey": w[2] || (w[2] = (k) => I.value = k),
|
|
4303
4303
|
expandIconPosition: "end",
|
|
4304
4304
|
accordion: ""
|
|
4305
4305
|
}, {
|
|
4306
|
-
default:
|
|
4307
|
-
|
|
4306
|
+
default: L(() => [
|
|
4307
|
+
q(de, {
|
|
4308
4308
|
ref_key: "formCardRef",
|
|
4309
|
-
ref:
|
|
4309
|
+
ref: Oe,
|
|
4310
4310
|
key: "1",
|
|
4311
4311
|
header: "查询条件",
|
|
4312
4312
|
align: "left",
|
|
4313
4313
|
forceRender: ""
|
|
4314
4314
|
}, {
|
|
4315
|
-
default:
|
|
4316
|
-
|
|
4315
|
+
default: L(() => [
|
|
4316
|
+
q(X, {
|
|
4317
4317
|
ref_key: "formRef",
|
|
4318
4318
|
ref: Je,
|
|
4319
4319
|
data: G,
|
|
@@ -4327,26 +4327,26 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4327
4327
|
onCollapse: xl,
|
|
4328
4328
|
class: "sag-vxe-page-form"
|
|
4329
4329
|
}, xe({
|
|
4330
|
-
toolbar_tools:
|
|
4331
|
-
|
|
4332
|
-
default:
|
|
4333
|
-
|
|
4330
|
+
toolbar_tools: L(() => [
|
|
4331
|
+
q(U, null, {
|
|
4332
|
+
default: L(() => [
|
|
4333
|
+
q(N, {
|
|
4334
4334
|
type: "primary",
|
|
4335
|
-
size:
|
|
4335
|
+
size: S(W),
|
|
4336
4336
|
onClick: w[0] || (w[0] = (k) => De()),
|
|
4337
|
-
disabled:
|
|
4337
|
+
disabled: D.value
|
|
4338
4338
|
}, {
|
|
4339
|
-
default:
|
|
4340
|
-
|
|
4339
|
+
default: L(() => w[5] || (w[5] = [
|
|
4340
|
+
ue(" 查询 ")
|
|
4341
4341
|
])),
|
|
4342
4342
|
_: 1
|
|
4343
4343
|
}, 8, ["size", "disabled"]),
|
|
4344
|
-
|
|
4345
|
-
size:
|
|
4344
|
+
q(N, {
|
|
4345
|
+
size: S(W),
|
|
4346
4346
|
onClick: w[1] || (w[1] = (k) => Cn())
|
|
4347
4347
|
}, {
|
|
4348
|
-
default:
|
|
4349
|
-
|
|
4348
|
+
default: L(() => w[6] || (w[6] = [
|
|
4349
|
+
ue("重置")
|
|
4350
4350
|
])),
|
|
4351
4351
|
_: 1
|
|
4352
4352
|
}, 8, ["size"])
|
|
@@ -4354,96 +4354,96 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4354
4354
|
_: 1
|
|
4355
4355
|
})
|
|
4356
4356
|
]),
|
|
4357
|
-
dateRange:
|
|
4358
|
-
|
|
4357
|
+
dateRange: L((k) => [
|
|
4358
|
+
q(ns, te({
|
|
4359
4359
|
value: G[k.field],
|
|
4360
4360
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4361
|
-
ref: ($) =>
|
|
4361
|
+
ref: ($) => be($, k.field)
|
|
4362
4362
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4363
4363
|
]),
|
|
4364
|
-
date:
|
|
4365
|
-
|
|
4364
|
+
date: L((k) => [
|
|
4365
|
+
q(as, te({
|
|
4366
4366
|
value: G[k.field],
|
|
4367
4367
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4368
|
-
ref: ($) =>
|
|
4368
|
+
ref: ($) => be($, k.field)
|
|
4369
4369
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4370
4370
|
]),
|
|
4371
|
-
input:
|
|
4371
|
+
input: L((k) => [
|
|
4372
4372
|
c.vxeSlot ? (x(), z(_s, te({
|
|
4373
4373
|
key: 0,
|
|
4374
4374
|
value: G[k.field],
|
|
4375
4375
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4376
|
-
ref: ($) =>
|
|
4376
|
+
ref: ($) => be($, k.field),
|
|
4377
4377
|
title: k?.item?.title
|
|
4378
4378
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4379
4379
|
c.vxeSlot ? j("", !0) : (x(), z(ls, te({
|
|
4380
4380
|
key: 1,
|
|
4381
4381
|
value: G[k.field],
|
|
4382
4382
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4383
|
-
ref: ($) =>
|
|
4383
|
+
ref: ($) => be($, k.field),
|
|
4384
4384
|
title: k?.item?.title
|
|
4385
4385
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4386
4386
|
]),
|
|
4387
|
-
select:
|
|
4387
|
+
select: L((k) => [
|
|
4388
4388
|
c.vxeSlot ? (x(), z(Cs, te({
|
|
4389
4389
|
key: 0,
|
|
4390
4390
|
value: G[k.field],
|
|
4391
4391
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4392
|
-
ref: ($) =>
|
|
4392
|
+
ref: ($) => be($, k.field)
|
|
4393
4393
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : j("", !0),
|
|
4394
4394
|
c.vxeSlot ? j("", !0) : (x(), z(os, te({
|
|
4395
4395
|
key: 1,
|
|
4396
4396
|
value: G[k.field],
|
|
4397
4397
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4398
|
-
ref: ($) =>
|
|
4398
|
+
ref: ($) => be($, k.field)
|
|
4399
4399
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4400
4400
|
]),
|
|
4401
|
-
selectList:
|
|
4401
|
+
selectList: L((k) => [
|
|
4402
4402
|
c.vxeSlot ? (x(), z(Ps, te({
|
|
4403
4403
|
key: 0,
|
|
4404
4404
|
value: G[k.field],
|
|
4405
4405
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4406
|
-
ref: ($) =>
|
|
4406
|
+
ref: ($) => be($, k.field),
|
|
4407
4407
|
title: k?.item?.title
|
|
4408
4408
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4409
4409
|
c.vxeSlot ? j("", !0) : (x(), z(cs, te({
|
|
4410
4410
|
key: 1,
|
|
4411
4411
|
value: G[k.field],
|
|
4412
4412
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4413
|
-
ref: ($) =>
|
|
4413
|
+
ref: ($) => be($, k.field),
|
|
4414
4414
|
title: k?.item?.title
|
|
4415
4415
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4416
4416
|
]),
|
|
4417
|
-
selectPull:
|
|
4417
|
+
selectPull: L((k) => [
|
|
4418
4418
|
c.vxeSlot ? (x(), z(xs, te({
|
|
4419
4419
|
key: 0,
|
|
4420
4420
|
value: G[k.field],
|
|
4421
4421
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4422
|
-
ref: ($) =>
|
|
4422
|
+
ref: ($) => be($, k.field),
|
|
4423
4423
|
title: k?.item?.title
|
|
4424
4424
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4425
4425
|
c.vxeSlot ? j("", !0) : (x(), z(ss, te({
|
|
4426
4426
|
key: 1,
|
|
4427
4427
|
value: G[k.field],
|
|
4428
4428
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4429
|
-
ref: ($) =>
|
|
4429
|
+
ref: ($) => be($, k.field),
|
|
4430
4430
|
title: k?.item?.title
|
|
4431
4431
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4432
4432
|
]),
|
|
4433
|
-
cascader:
|
|
4434
|
-
|
|
4433
|
+
cascader: L((k) => [
|
|
4434
|
+
q(fs, te({
|
|
4435
4435
|
value: G[k.field],
|
|
4436
4436
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4437
4437
|
title: k?.item?.title,
|
|
4438
|
-
ref: ($) =>
|
|
4438
|
+
ref: ($) => be($, k.field)
|
|
4439
4439
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])
|
|
4440
4440
|
]),
|
|
4441
4441
|
_: 2
|
|
4442
4442
|
}, [
|
|
4443
|
-
Ce(
|
|
4443
|
+
Ce(S(p), (k) => ({
|
|
4444
4444
|
name: k,
|
|
4445
|
-
fn:
|
|
4446
|
-
|
|
4445
|
+
fn: L(($) => [
|
|
4446
|
+
re(P.$slots, k, te($, {
|
|
4447
4447
|
value: G[$.field]
|
|
4448
4448
|
}))
|
|
4449
4449
|
])
|
|
@@ -4456,15 +4456,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4456
4456
|
_: 3
|
|
4457
4457
|
}, 8, ["activeKey"])
|
|
4458
4458
|
], 512), [
|
|
4459
|
-
[$t,
|
|
4459
|
+
[$t, S(s)(c.formItems)]
|
|
4460
4460
|
]),
|
|
4461
4461
|
K("div", Ts, [
|
|
4462
|
-
|
|
4462
|
+
q(Il, te({
|
|
4463
4463
|
ref_key: "gridRef",
|
|
4464
|
-
ref:
|
|
4464
|
+
ref: v
|
|
4465
4465
|
}, Z, Yl(Vl), {
|
|
4466
4466
|
size: o.size,
|
|
4467
|
-
id:
|
|
4467
|
+
id: g,
|
|
4468
4468
|
style: { "z-index": "1" },
|
|
4469
4469
|
class: "sag-vxe-page-table",
|
|
4470
4470
|
onCellMouseenter: Tl,
|
|
@@ -4472,82 +4472,82 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4472
4472
|
onCheckboxChange: kl,
|
|
4473
4473
|
onRadioChange: Al
|
|
4474
4474
|
}), xe({
|
|
4475
|
-
operate:
|
|
4475
|
+
operate: L(({ row: k, column: $ }) => [
|
|
4476
4476
|
K("a", {
|
|
4477
4477
|
href: "javascript:void(0)",
|
|
4478
4478
|
class: "sag-vxe-page-link",
|
|
4479
|
-
onClick: (
|
|
4479
|
+
onClick: (se) => S(Tn)(k, $)
|
|
4480
4480
|
}, ae(k[$.property]), 9, Ms)
|
|
4481
4481
|
]),
|
|
4482
|
-
vertical:
|
|
4483
|
-
(x(!0),
|
|
4484
|
-
key:
|
|
4482
|
+
vertical: L(({ row: k, column: $ }) => [
|
|
4483
|
+
(x(!0), Y(ce, null, Ce($.params.childColumns, (se) => (x(), Y("div", {
|
|
4484
|
+
key: se.value
|
|
4485
4485
|
}, [
|
|
4486
|
-
K("span", Vs, ae(
|
|
4487
|
-
w[7] || (w[7] =
|
|
4488
|
-
|
|
4486
|
+
K("span", Vs, ae(se.title) + ":", 1),
|
|
4487
|
+
w[7] || (w[7] = ue(" ")),
|
|
4488
|
+
se.formatter === "operate" ? (x(), Y("span", $s, [
|
|
4489
4489
|
K("a", {
|
|
4490
4490
|
href: "javascript:void(0)",
|
|
4491
4491
|
class: "sag-vxe-page-link",
|
|
4492
|
-
onClick: (eu) =>
|
|
4493
|
-
}, ae(k[
|
|
4494
|
-
])) : (x(),
|
|
4492
|
+
onClick: (eu) => S(Tn)(k, se)
|
|
4493
|
+
}, ae(k[se.field]), 9, zs)
|
|
4494
|
+
])) : (x(), Y("span", js, ae(S(V).stringFormat(k[se.field], se.formatter)), 1))
|
|
4495
4495
|
]))), 128))
|
|
4496
4496
|
]),
|
|
4497
|
-
button:
|
|
4497
|
+
button: L(({ row: k }) => [
|
|
4498
4498
|
K("div", qs, [
|
|
4499
|
-
(x(!0),
|
|
4500
|
-
|
|
4501
|
-
|
|
4499
|
+
(x(!0), Y(ce, null, Ce(y.tableButtons, ($) => (x(), Y(ce, { key: $ }, [
|
|
4500
|
+
S(V).toString(k[$.buttonName], !0) && S(Ee)($.auth) ? (x(), Y("span", Ds, [
|
|
4501
|
+
m.showButtonLink ? j("", !0) : (x(), z(N, {
|
|
4502
4502
|
key: 0,
|
|
4503
4503
|
size: "small",
|
|
4504
|
-
type:
|
|
4505
|
-
onClick: (
|
|
4504
|
+
type: S(V).toString($.status, "primary"),
|
|
4505
|
+
onClick: (se) => S(Qe)($, k)
|
|
4506
4506
|
}, {
|
|
4507
|
-
icon:
|
|
4508
|
-
|
|
4507
|
+
icon: L(() => [
|
|
4508
|
+
q(ze, {
|
|
4509
4509
|
icon: $.icon
|
|
4510
4510
|
}, null, 8, ["icon"])
|
|
4511
4511
|
]),
|
|
4512
|
-
default:
|
|
4513
|
-
|
|
4512
|
+
default: L(() => [
|
|
4513
|
+
ue(" " + ae($.buttonName), 1)
|
|
4514
4514
|
]),
|
|
4515
4515
|
_: 2
|
|
4516
4516
|
}, 1032, ["type", "onClick"])),
|
|
4517
|
-
|
|
4517
|
+
m.showButtonLink ? (x(), Y("a", {
|
|
4518
4518
|
key: 1,
|
|
4519
4519
|
href: "javascript:void(0)",
|
|
4520
4520
|
class: "sag-vxe-page-button-link",
|
|
4521
|
-
onClick: (
|
|
4521
|
+
onClick: (se) => S(Qe)($, k)
|
|
4522
4522
|
}, [
|
|
4523
|
-
|
|
4523
|
+
q(ze, {
|
|
4524
4524
|
icon: $.icon
|
|
4525
4525
|
}, null, 8, ["icon"]),
|
|
4526
|
-
|
|
4527
|
-
], 8,
|
|
4528
|
-
w[8] || (w[8] =
|
|
4526
|
+
ue(" " + ae($.buttonName), 1)
|
|
4527
|
+
], 8, Bs)) : j("", !0),
|
|
4528
|
+
w[8] || (w[8] = ue(" "))
|
|
4529
4529
|
])) : j("", !0)
|
|
4530
4530
|
], 64))), 128))
|
|
4531
4531
|
]),
|
|
4532
|
-
Dl(y.tableMoreButtons, k) ? (x(), z(
|
|
4532
|
+
Dl(y.tableMoreButtons, k) ? (x(), z(Ne, {
|
|
4533
4533
|
key: 0,
|
|
4534
4534
|
destroyPopupOnHide: !0
|
|
4535
4535
|
}, {
|
|
4536
|
-
overlay:
|
|
4537
|
-
|
|
4538
|
-
default:
|
|
4539
|
-
(x(!0),
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
default:
|
|
4536
|
+
overlay: L(() => [
|
|
4537
|
+
q(ie, null, {
|
|
4538
|
+
default: L(() => [
|
|
4539
|
+
(x(!0), Y(ce, null, Ce(y.tableMoreButtons, ($) => (x(), Y(ce, { key: $ }, [
|
|
4540
|
+
S(Ee)($.auth) ? (x(), Y(ce, { key: 0 }, [
|
|
4541
|
+
S(V).toString(k[$.buttonName], !0) ? (x(), z(_e, { key: 0 }, {
|
|
4542
|
+
default: L(() => [
|
|
4543
4543
|
K("a", {
|
|
4544
|
-
onClick: (
|
|
4544
|
+
onClick: (se) => S(Qe)($, k)
|
|
4545
4545
|
}, [
|
|
4546
|
-
|
|
4546
|
+
q(ze, {
|
|
4547
4547
|
icon: $.icon
|
|
4548
4548
|
}, null, 8, ["icon"]),
|
|
4549
|
-
|
|
4550
|
-
], 8,
|
|
4549
|
+
ue(" " + ae($.buttonName), 1)
|
|
4550
|
+
], 8, Ns)
|
|
4551
4551
|
]),
|
|
4552
4552
|
_: 2
|
|
4553
4553
|
}, 1024)) : j("", !0)
|
|
@@ -4557,14 +4557,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4557
4557
|
_: 2
|
|
4558
4558
|
}, 1024)
|
|
4559
4559
|
]),
|
|
4560
|
-
default:
|
|
4561
|
-
|
|
4562
|
-
type:
|
|
4560
|
+
default: L(() => [
|
|
4561
|
+
q(N, {
|
|
4562
|
+
type: m.showButtonLink ? "link" : "default",
|
|
4563
4563
|
size: "small"
|
|
4564
4564
|
}, {
|
|
4565
|
-
default:
|
|
4566
|
-
w[9] || (w[9] =
|
|
4567
|
-
|
|
4565
|
+
default: L(() => [
|
|
4566
|
+
w[9] || (w[9] = ue(" 更多操作 ")),
|
|
4567
|
+
q(S(yt))
|
|
4568
4568
|
]),
|
|
4569
4569
|
_: 1
|
|
4570
4570
|
}, 8, ["type"])
|
|
@@ -4572,28 +4572,28 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4572
4572
|
_: 2
|
|
4573
4573
|
}, 1024)) : j("", !0)
|
|
4574
4574
|
]),
|
|
4575
|
-
toolbar_buttons:
|
|
4576
|
-
|
|
4575
|
+
toolbar_buttons: L(() => [
|
|
4576
|
+
S(s)(y.formButtons) && y.formButtons.length > 0 ? (x(), z(U, {
|
|
4577
4577
|
key: 0,
|
|
4578
4578
|
wrap: !0,
|
|
4579
4579
|
style: { "margin-bottom": "0px" }
|
|
4580
4580
|
}, {
|
|
4581
|
-
default:
|
|
4582
|
-
(x(!0),
|
|
4583
|
-
|
|
4581
|
+
default: L(() => [
|
|
4582
|
+
(x(!0), Y(ce, null, Ce(y.formButtons, (k) => (x(), Y("span", { key: k }, [
|
|
4583
|
+
S(Ee)(k.auth) ? (x(), z(N, {
|
|
4584
4584
|
key: 0,
|
|
4585
4585
|
round: "",
|
|
4586
|
-
size:
|
|
4587
|
-
type:
|
|
4588
|
-
onClick: ($) =>
|
|
4586
|
+
size: S(W),
|
|
4587
|
+
type: S(V).toString(k.status, "primary"),
|
|
4588
|
+
onClick: ($) => S(zl)(k)
|
|
4589
4589
|
}, {
|
|
4590
|
-
icon:
|
|
4591
|
-
|
|
4590
|
+
icon: L(() => [
|
|
4591
|
+
q(ze, {
|
|
4592
4592
|
icon: k.icon
|
|
4593
4593
|
}, null, 8, ["icon"])
|
|
4594
4594
|
]),
|
|
4595
|
-
default:
|
|
4596
|
-
|
|
4595
|
+
default: L(() => [
|
|
4596
|
+
ue(" " + ae(k.buttonName), 1)
|
|
4597
4597
|
]),
|
|
4598
4598
|
_: 2
|
|
4599
4599
|
}, 1032, ["size", "type", "onClick"])) : j("", !0)
|
|
@@ -4601,33 +4601,33 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4601
4601
|
]),
|
|
4602
4602
|
_: 1
|
|
4603
4603
|
})) : j("", !0),
|
|
4604
|
-
(x(!0),
|
|
4604
|
+
(x(!0), Y(ce, null, Ce(S(b), (k) => re(P.$slots, k)), 256))
|
|
4605
4605
|
]),
|
|
4606
|
-
toolbar_tools:
|
|
4607
|
-
|
|
4606
|
+
toolbar_tools: L(() => [
|
|
4607
|
+
S(s)(m.tableColumnsExtra) ? (x(), z(ke, {
|
|
4608
4608
|
key: 0,
|
|
4609
4609
|
size: "small",
|
|
4610
4610
|
circle: !0,
|
|
4611
|
-
onClick: w[3] || (w[3] = (k) =>
|
|
4611
|
+
onClick: w[3] || (w[3] = (k) => S(Vn)(o.application, !1)),
|
|
4612
4612
|
title: "切换"
|
|
4613
4613
|
}, {
|
|
4614
|
-
default:
|
|
4614
|
+
default: L(() => w[10] || (w[10] = [
|
|
4615
4615
|
K("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1)
|
|
4616
4616
|
])),
|
|
4617
4617
|
_: 1
|
|
4618
4618
|
})) : j("", !0),
|
|
4619
|
-
|
|
4619
|
+
S(s)(i.requestDownload) && typeof i.requestDownload == "object" ? (x(), z(ks, {
|
|
4620
4620
|
key: 1,
|
|
4621
|
-
onExport:
|
|
4621
|
+
onExport: S(Mn)
|
|
4622
4622
|
}, null, 8, ["onExport"])) : j("", !0),
|
|
4623
4623
|
i.requestDownload === !0 || typeof i.requestDownload == "string" ? (x(), z(ke, {
|
|
4624
4624
|
key: 2,
|
|
4625
4625
|
size: "small",
|
|
4626
4626
|
circle: !0,
|
|
4627
|
-
onClick:
|
|
4627
|
+
onClick: S(Mn),
|
|
4628
4628
|
title: "下载"
|
|
4629
4629
|
}, {
|
|
4630
|
-
default:
|
|
4630
|
+
default: L(() => w[11] || (w[11] = [
|
|
4631
4631
|
K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
4632
4632
|
])),
|
|
4633
4633
|
_: 1
|
|
@@ -4636,27 +4636,27 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4636
4636
|
key: 3,
|
|
4637
4637
|
size: "small",
|
|
4638
4638
|
circle: !0,
|
|
4639
|
-
onClick: w[4] || (w[4] = (k) =>
|
|
4639
|
+
onClick: w[4] || (w[4] = (k) => S(jl)()),
|
|
4640
4640
|
title: "导入"
|
|
4641
4641
|
}, {
|
|
4642
|
-
default:
|
|
4642
|
+
default: L(() => w[12] || (w[12] = [
|
|
4643
4643
|
K("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1)
|
|
4644
4644
|
])),
|
|
4645
4645
|
_: 1
|
|
4646
4646
|
})) : j("", !0)
|
|
4647
4647
|
]),
|
|
4648
|
-
empty:
|
|
4649
|
-
|
|
4648
|
+
empty: L(() => [
|
|
4649
|
+
R.value === "error" ? (x(), Y("h2", Ls, w[13] || (w[13] = [
|
|
4650
4650
|
K("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4651
4651
|
]))) : j("", !0),
|
|
4652
|
-
|
|
4652
|
+
R.value === "none" ? (x(), Y("h2", Is, w[14] || (w[14] = [
|
|
4653
4653
|
K("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4654
4654
|
]))) : j("", !0),
|
|
4655
|
-
|
|
4655
|
+
R.value === "more" ? (x(), Y("h2", Rs, [
|
|
4656
4656
|
w[16] || (w[16] = K("span", { style: { "font-size": "16px" } }, [
|
|
4657
|
-
|
|
4657
|
+
ue(" 您好,因数据量过大,强制显示将会 "),
|
|
4658
4658
|
K("span", { style: { color: "red" } }, "取消合并列"),
|
|
4659
|
-
|
|
4659
|
+
ue(" 模式,建议您调整查询条件后重新查询! ")
|
|
4660
4660
|
], -1)),
|
|
4661
4661
|
w[17] || (w[17] = K("br", null, null, -1)),
|
|
4662
4662
|
K("a", {
|
|
@@ -4670,21 +4670,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4670
4670
|
]),
|
|
4671
4671
|
_: 2
|
|
4672
4672
|
}, [
|
|
4673
|
-
Ce(O
|
|
4673
|
+
Ce(S(O), (k) => ({
|
|
4674
4674
|
name: k,
|
|
4675
|
-
fn:
|
|
4676
|
-
|
|
4675
|
+
fn: L(($) => [
|
|
4676
|
+
re(P.$slots, k, Wl(Gl($)))
|
|
4677
4677
|
])
|
|
4678
4678
|
}))
|
|
4679
4679
|
]), 1040, ["size"])
|
|
4680
4680
|
]),
|
|
4681
|
-
(x(!0),
|
|
4681
|
+
(x(!0), Y(ce, null, Ce(l.value, (k, $) => (x(), Y(ce, null, [
|
|
4682
4682
|
k.visible ? (x(), z(za, te({
|
|
4683
4683
|
key: k.instanceId,
|
|
4684
4684
|
ref_for: !0
|
|
4685
4685
|
}, k, {
|
|
4686
|
-
onCancel: (
|
|
4687
|
-
onSubmit: (
|
|
4686
|
+
onCancel: (se) => _t(k.instanceId),
|
|
4687
|
+
onSubmit: (se) => zn(se, k.instanceId)
|
|
4688
4688
|
}), null, 16, ["onCancel", "onSubmit"])) : j("", !0)
|
|
4689
4689
|
], 64))), 256)),
|
|
4690
4690
|
a.visible ? (x(), z(za, te({ key: 0 }, a, {
|
|
@@ -4692,7 +4692,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4692
4692
|
onSubmit: zn
|
|
4693
4693
|
}), null, 16)) : j("", !0)
|
|
4694
4694
|
], 512)), [
|
|
4695
|
-
[$t, !
|
|
4695
|
+
[$t, !B.value]
|
|
4696
4696
|
]);
|
|
4697
4697
|
};
|
|
4698
4698
|
}
|
|
@@ -4730,39 +4730,39 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4730
4730
|
T.locale("zh-cn"), T.extend(St);
|
|
4731
4731
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD";
|
|
4732
4732
|
let o = M();
|
|
4733
|
-
const i = (C,
|
|
4734
|
-
_(
|
|
4733
|
+
const i = (C, g) => {
|
|
4734
|
+
_(g, !0);
|
|
4735
4735
|
}, u = () => s(o.value) ? T(o.value).format(r) : null, c = (C) => {
|
|
4736
4736
|
o.value = T(C), _();
|
|
4737
|
-
},
|
|
4737
|
+
}, m = (C) => {
|
|
4738
4738
|
o.value = T().add(C || 0, l), _();
|
|
4739
|
-
},
|
|
4740
|
-
s(C) ? (y("update:value", C),
|
|
4739
|
+
}, f = (C) => !!(s(a.max) && T(C).format(r) > a.max || s(a.min) && T(C).format(r) < a.min), y = t, _ = (C, g = !1) => {
|
|
4740
|
+
s(C) ? (y("update:value", C), g && y("change", C)) : (y("update:value", u()), g && y("change", u()));
|
|
4741
4741
|
};
|
|
4742
|
-
return
|
|
4742
|
+
return he(
|
|
4743
4743
|
() => a.value,
|
|
4744
|
-
(C,
|
|
4744
|
+
(C, g) => {
|
|
4745
4745
|
o.value = C ? T(C) : null;
|
|
4746
4746
|
}
|
|
4747
|
-
),
|
|
4747
|
+
), oe(() => {
|
|
4748
4748
|
s(a.value) && c(a.value);
|
|
4749
4749
|
}), n({
|
|
4750
4750
|
setDate: c,
|
|
4751
|
-
setValue:
|
|
4751
|
+
setValue: m,
|
|
4752
4752
|
getValue: u
|
|
4753
|
-
}), (C,
|
|
4754
|
-
const
|
|
4755
|
-
return x(), z(
|
|
4756
|
-
value:
|
|
4757
|
-
"onUpdate:value":
|
|
4753
|
+
}), (C, g) => {
|
|
4754
|
+
const d = F("a-date-picker");
|
|
4755
|
+
return x(), z(d, {
|
|
4756
|
+
value: S(o),
|
|
4757
|
+
"onUpdate:value": g[0] || (g[0] = (h) => gt(o) ? o.value = h : o = h),
|
|
4758
4758
|
"show-time": a.showTime,
|
|
4759
4759
|
disabled: a.disabled,
|
|
4760
|
-
locale:
|
|
4761
|
-
format:
|
|
4762
|
-
disabledDate:
|
|
4763
|
-
picker:
|
|
4764
|
-
style:
|
|
4765
|
-
getPopupContainer: (
|
|
4760
|
+
locale: S(Ge),
|
|
4761
|
+
format: S(r),
|
|
4762
|
+
disabledDate: f,
|
|
4763
|
+
picker: S(l) === "day" ? "date" : S(l),
|
|
4764
|
+
style: me(a.style),
|
|
4765
|
+
getPopupContainer: (h) => S(Ie)(a.mountainTop, e.getPopupContainer, h),
|
|
4766
4766
|
onChange: i
|
|
4767
4767
|
}, null, 8, ["value", "show-time", "disabled", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4768
4768
|
};
|
|
@@ -4808,48 +4808,48 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4808
4808
|
{ label: "近一年", value: [T().add(-12, l)] },
|
|
4809
4809
|
{ label: "近两年", value: [T().add(-24, l)] },
|
|
4810
4810
|
{ label: "近三年", value: [T().add(-36, l)] }
|
|
4811
|
-
],
|
|
4811
|
+
], m = [
|
|
4812
4812
|
{ label: "本年", value: [T().add(0, l)] },
|
|
4813
4813
|
{ label: "近一年", value: [T().add(-1, l)] },
|
|
4814
4814
|
{ label: "近两年", value: [T().add(-2, l)] },
|
|
4815
4815
|
{ label: "近三年", value: [T().add(-3, l)] },
|
|
4816
4816
|
{ label: "近五年", value: [T().add(-5, l)] }
|
|
4817
|
-
],
|
|
4818
|
-
|
|
4817
|
+
], f = M(l === "day" ? u : l === "month" ? c : m), y = (d, h) => {
|
|
4818
|
+
g(h, !0);
|
|
4819
4819
|
}, _ = () => {
|
|
4820
|
-
let
|
|
4821
|
-
return i.value && i.value[0] && (
|
|
4822
|
-
}, C = (
|
|
4823
|
-
typeof
|
|
4824
|
-
s(
|
|
4825
|
-
s(
|
|
4826
|
-
] : i.value = [s(
|
|
4827
|
-
},
|
|
4828
|
-
s(
|
|
4820
|
+
let d = null, h = null;
|
|
4821
|
+
return i.value && i.value[0] && (d = T(i.value[0]).format(r)), i.value && i.value[1] && (h = T(i.value[1]).format(r)), !d && !h ? null : [d, h];
|
|
4822
|
+
}, C = (d, h) => {
|
|
4823
|
+
typeof d == "number" || typeof h == "number" ? i.value = [
|
|
4824
|
+
s(d) ? T().add(d, l) : null,
|
|
4825
|
+
s(h) ? T().add(h, l) : null
|
|
4826
|
+
] : i.value = [s(d) ? T(d) : null, s(h) ? T(h) : null], g();
|
|
4827
|
+
}, g = (d, h = !1) => {
|
|
4828
|
+
s(d) ? (o("update:value", d), h && o("change", d)) : (o("update:value", _()), h && o("change", _()));
|
|
4829
4829
|
};
|
|
4830
|
-
return
|
|
4830
|
+
return he(
|
|
4831
4831
|
() => a.value,
|
|
4832
|
-
(
|
|
4833
|
-
let
|
|
4834
|
-
s(
|
|
4832
|
+
(d, h) => {
|
|
4833
|
+
let p = null, O = null;
|
|
4834
|
+
s(d) && (s(d[0]) && (p = T(d[0])), s(d[1]) && (O = T(d[1]))), i.value = [p, O];
|
|
4835
4835
|
}
|
|
4836
|
-
),
|
|
4836
|
+
), oe(() => {
|
|
4837
4837
|
s(a.value) && C(a.value[0], a.value[1]);
|
|
4838
4838
|
}), n({
|
|
4839
4839
|
setValue: C,
|
|
4840
4840
|
getValue: _
|
|
4841
|
-
}), (
|
|
4842
|
-
const
|
|
4843
|
-
return x(), z(
|
|
4841
|
+
}), (d, h) => {
|
|
4842
|
+
const p = F("a-range-picker");
|
|
4843
|
+
return x(), z(p, {
|
|
4844
4844
|
value: i.value,
|
|
4845
|
-
"onUpdate:value":
|
|
4846
|
-
presets:
|
|
4847
|
-
locale:
|
|
4845
|
+
"onUpdate:value": h[0] || (h[0] = (O) => i.value = O),
|
|
4846
|
+
presets: f.value,
|
|
4847
|
+
locale: S(Ge),
|
|
4848
4848
|
allowEmpty: [!0, !0],
|
|
4849
|
-
format:
|
|
4850
|
-
picker:
|
|
4851
|
-
style:
|
|
4852
|
-
getPopupContainer: (
|
|
4849
|
+
format: S(r),
|
|
4850
|
+
picker: S(l) === "day" ? "date" : S(l),
|
|
4851
|
+
style: me(a.style),
|
|
4852
|
+
getPopupContainer: (O) => S(Ie)(a.mountainTop, e.getPopupContainer, O),
|
|
4853
4853
|
onChange: y
|
|
4854
4854
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4855
4855
|
};
|
|
@@ -4858,7 +4858,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4858
4858
|
install: (e, n) => {
|
|
4859
4859
|
e.component(Da.name, Da);
|
|
4860
4860
|
}
|
|
4861
|
-
},
|
|
4861
|
+
}, Ba = /* @__PURE__ */ Q({
|
|
4862
4862
|
name: "SagAntdButton",
|
|
4863
4863
|
inheritAttrs: !1,
|
|
4864
4864
|
__name: "SagAntdButton",
|
|
@@ -4880,7 +4880,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4880
4880
|
a("click", t.name);
|
|
4881
4881
|
};
|
|
4882
4882
|
return (r, o) => {
|
|
4883
|
-
const i =
|
|
4883
|
+
const i = F("a-button");
|
|
4884
4884
|
return x(), z(i, {
|
|
4885
4885
|
round: "",
|
|
4886
4886
|
size: t.size,
|
|
@@ -4888,14 +4888,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4888
4888
|
onClick: l,
|
|
4889
4889
|
disabled: t.disabled
|
|
4890
4890
|
}, {
|
|
4891
|
-
icon:
|
|
4891
|
+
icon: L(() => [
|
|
4892
4892
|
t.icon !== "none" ? (x(), z(ze, {
|
|
4893
4893
|
key: 0,
|
|
4894
4894
|
icon: t.icon
|
|
4895
4895
|
}, null, 8, ["icon"])) : j("", !0)
|
|
4896
4896
|
]),
|
|
4897
|
-
default:
|
|
4898
|
-
|
|
4897
|
+
default: L(() => [
|
|
4898
|
+
ue(" " + ae(t.name), 1)
|
|
4899
4899
|
]),
|
|
4900
4900
|
_: 1
|
|
4901
4901
|
}, 8, ["size", "type", "disabled"]);
|
|
@@ -4903,9 +4903,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4903
4903
|
}
|
|
4904
4904
|
}), cu = {
|
|
4905
4905
|
install: (e, n) => {
|
|
4906
|
-
e.component(
|
|
4906
|
+
e.component(Ba.name, Ba);
|
|
4907
4907
|
}
|
|
4908
|
-
}, Es = { class: "sag-antd-cascader-wrapper" },
|
|
4908
|
+
}, Es = { class: "sag-antd-cascader-wrapper" }, Na = /* @__PURE__ */ Q({
|
|
4909
4909
|
name: "SagAntdCascader",
|
|
4910
4910
|
inheritAttrs: !1,
|
|
4911
4911
|
__name: "SagAntdCascader",
|
|
@@ -4936,40 +4936,40 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4936
4936
|
},
|
|
4937
4937
|
emits: ["update:value", "change"],
|
|
4938
4938
|
setup(e, { expose: n, emit: t }) {
|
|
4939
|
-
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, u = a.fieldNames.value, c = M([]),
|
|
4940
|
-
const
|
|
4939
|
+
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, u = a.fieldNames.value, c = M([]), m = M([]), f = async () => {
|
|
4940
|
+
const p = await yl(
|
|
4941
4941
|
ne(r, a.requestUrl),
|
|
4942
4942
|
a.requestParams,
|
|
4943
4943
|
l,
|
|
4944
4944
|
"CASCADER_" + a.cacheKey
|
|
4945
4945
|
);
|
|
4946
|
-
|
|
4947
|
-
}, y = t, _ = (
|
|
4948
|
-
s(
|
|
4949
|
-
}, C = (
|
|
4950
|
-
c.value =
|
|
4946
|
+
m.value = p;
|
|
4947
|
+
}, y = t, _ = (p, O) => {
|
|
4948
|
+
s(O) ? (y("update:value", p[p.length - 1]), y("change", O[O.length - 1])) : (y("update:value", null), y("change", null));
|
|
4949
|
+
}, C = (p, O) => O.some((b) => b[i].indexOf(p) > -1), g = () => m.value.filter((O) => O[u] === c.value[c.value.length - 1])[i], d = () => c.value, h = (p) => {
|
|
4950
|
+
c.value = p, y("update:value", p);
|
|
4951
4951
|
};
|
|
4952
|
-
return
|
|
4953
|
-
|
|
4952
|
+
return oe(() => {
|
|
4953
|
+
f();
|
|
4954
4954
|
}), n({
|
|
4955
|
-
getName:
|
|
4956
|
-
getValue:
|
|
4957
|
-
setValue:
|
|
4958
|
-
}), (
|
|
4959
|
-
const
|
|
4960
|
-
return x(),
|
|
4961
|
-
|
|
4955
|
+
getName: g,
|
|
4956
|
+
getValue: d,
|
|
4957
|
+
setValue: h
|
|
4958
|
+
}), (p, O) => {
|
|
4959
|
+
const b = F("a-cascader");
|
|
4960
|
+
return x(), Y("div", Es, [
|
|
4961
|
+
q(b, {
|
|
4962
4962
|
value: c.value,
|
|
4963
|
-
"onUpdate:value":
|
|
4964
|
-
options:
|
|
4963
|
+
"onUpdate:value": O[0] || (O[0] = (v) => c.value = v),
|
|
4964
|
+
options: m.value,
|
|
4965
4965
|
fieldNames: a.fieldNames,
|
|
4966
4966
|
"show-search": { filter: C },
|
|
4967
4967
|
disabled: a.disabled,
|
|
4968
4968
|
clearable: a.clearable,
|
|
4969
4969
|
changeOnSelect: a.changeOnSelect,
|
|
4970
4970
|
placeholder: o,
|
|
4971
|
-
style:
|
|
4972
|
-
getPopupContainer: (
|
|
4971
|
+
style: me(a.style),
|
|
4972
|
+
getPopupContainer: (v) => S(Ie)(a.mountainTop, e.getPopupContainer, v),
|
|
4973
4973
|
onChange: _
|
|
4974
4974
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "style", "getPopupContainer"])
|
|
4975
4975
|
]);
|
|
@@ -4977,9 +4977,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4977
4977
|
}
|
|
4978
4978
|
}), du = {
|
|
4979
4979
|
install: (e, n) => {
|
|
4980
|
-
e.component(
|
|
4980
|
+
e.component(Na.name, Na);
|
|
4981
4981
|
}
|
|
4982
|
-
}, Us = { key: 1 },
|
|
4982
|
+
}, Us = { key: 1 }, La = /* @__PURE__ */ Q({
|
|
4983
4983
|
name: "SagAntdCard",
|
|
4984
4984
|
inheritAttrs: !1,
|
|
4985
4985
|
__name: "SagAntdCard",
|
|
@@ -4998,34 +4998,34 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4998
4998
|
//
|
|
4999
4999
|
},
|
|
5000
5000
|
setup(e) {
|
|
5001
|
-
const n = e, t = Object.keys(
|
|
5001
|
+
const n = e, t = Object.keys(Le()), a = t.filter((r) => r === "extra"), l = t.filter((r) => r === "title");
|
|
5002
5002
|
return (r, o) => {
|
|
5003
|
-
const i =
|
|
5003
|
+
const i = F("a-card");
|
|
5004
5004
|
return x(), z(i, {
|
|
5005
5005
|
size: "small",
|
|
5006
5006
|
headStyle: n.headStyle,
|
|
5007
5007
|
bodyStyle: n.bodyStyle,
|
|
5008
|
-
style:
|
|
5008
|
+
style: me(n.style),
|
|
5009
5009
|
hoverable: n.hoverable,
|
|
5010
5010
|
loading: n.loading
|
|
5011
5011
|
}, xe({
|
|
5012
|
-
default:
|
|
5013
|
-
|
|
5012
|
+
default: L(() => [
|
|
5013
|
+
re(r.$slots, "default")
|
|
5014
5014
|
]),
|
|
5015
5015
|
_: 2
|
|
5016
5016
|
}, [
|
|
5017
|
-
|
|
5017
|
+
S(l).length === 1 || S(s)(n.title) ? {
|
|
5018
5018
|
name: "title",
|
|
5019
|
-
fn:
|
|
5020
|
-
|
|
5021
|
-
|
|
5019
|
+
fn: L(() => [
|
|
5020
|
+
S(l).length === 1 ? re(r.$slots, "title", { key: 0 }) : j("", !0),
|
|
5021
|
+
S(l).length !== 1 ? (x(), Y("span", Us, ae(n.title), 1)) : j("", !0)
|
|
5022
5022
|
]),
|
|
5023
5023
|
key: "0"
|
|
5024
5024
|
} : void 0,
|
|
5025
|
-
|
|
5025
|
+
S(a).length === 1 ? {
|
|
5026
5026
|
name: "extra",
|
|
5027
|
-
fn:
|
|
5028
|
-
|
|
5027
|
+
fn: L(() => [
|
|
5028
|
+
re(r.$slots, "extra")
|
|
5029
5029
|
]),
|
|
5030
5030
|
key: "1"
|
|
5031
5031
|
} : void 0
|
|
@@ -5034,9 +5034,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5034
5034
|
}
|
|
5035
5035
|
}), fu = {
|
|
5036
5036
|
install: (e, n) => {
|
|
5037
|
-
e.component(
|
|
5037
|
+
e.component(La.name, La);
|
|
5038
5038
|
}
|
|
5039
|
-
}, Fs = { key: 1 }, Hs = { key: 1 },
|
|
5039
|
+
}, Fs = { key: 1 }, Hs = { key: 1 }, Ia = /* @__PURE__ */ Q({
|
|
5040
5040
|
name: "SagAntdInput",
|
|
5041
5041
|
inheritAttrs: !1,
|
|
5042
5042
|
__name: "SagAntdInput",
|
|
@@ -5064,48 +5064,48 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5064
5064
|
},
|
|
5065
5065
|
emits: ["update:value", "change"],
|
|
5066
5066
|
setup(e, { expose: n, emit: t }) {
|
|
5067
|
-
const a = e, l = M(V.toString(a.value, null)), r = t, o = Object.keys(
|
|
5067
|
+
const a = e, l = M(V.toString(a.value, null)), r = t, o = Object.keys(Le()), i = o.filter((_) => _ === "addonAfter"), u = o.filter((_) => _ === "addonBefore"), c = () => {
|
|
5068
5068
|
y(!0);
|
|
5069
|
-
},
|
|
5069
|
+
}, m = () => l.value, f = (_) => {
|
|
5070
5070
|
a.formatter === "date" ? l.value = V.toDateString(_) : a.formatter === "datetime" ? l.value = V.toDatetimeString(_) : l.value = _, y();
|
|
5071
5071
|
};
|
|
5072
|
-
|
|
5072
|
+
he(
|
|
5073
5073
|
() => a.value,
|
|
5074
5074
|
(_, C) => {
|
|
5075
|
-
_ !== l.value &&
|
|
5075
|
+
_ !== l.value && f(_);
|
|
5076
5076
|
}
|
|
5077
5077
|
);
|
|
5078
5078
|
const y = (_ = !1) => {
|
|
5079
5079
|
r("update:value", l.value), _ && r("change", l.value);
|
|
5080
5080
|
};
|
|
5081
5081
|
return n({
|
|
5082
|
-
getValue:
|
|
5083
|
-
setValue:
|
|
5082
|
+
getValue: m,
|
|
5083
|
+
setValue: f
|
|
5084
5084
|
}), (_, C) => {
|
|
5085
|
-
const
|
|
5086
|
-
return x(), z(
|
|
5085
|
+
const g = F("a-input");
|
|
5086
|
+
return x(), z(g, {
|
|
5087
5087
|
value: l.value,
|
|
5088
|
-
"onUpdate:value": C[0] || (C[0] = (
|
|
5088
|
+
"onUpdate:value": C[0] || (C[0] = (d) => l.value = d),
|
|
5089
5089
|
placeholder: a.placeholder,
|
|
5090
5090
|
disabled: a.disabled,
|
|
5091
5091
|
showCount: a.showCount,
|
|
5092
5092
|
maxlength: a.maxlength,
|
|
5093
|
-
style:
|
|
5093
|
+
style: me(a.style),
|
|
5094
5094
|
onChange: c
|
|
5095
5095
|
}, xe({ _: 2 }, [
|
|
5096
|
-
|
|
5096
|
+
S(i).length === 1 || S(s)(a.addonAfter) ? {
|
|
5097
5097
|
name: "addonAfter",
|
|
5098
|
-
fn:
|
|
5099
|
-
|
|
5100
|
-
|
|
5098
|
+
fn: L(() => [
|
|
5099
|
+
S(i).length === 1 ? re(_.$slots, "addonAfter", { key: 0 }) : j("", !0),
|
|
5100
|
+
S(i).length !== 1 ? (x(), Y("span", Fs, ae(a.addonAfter), 1)) : j("", !0)
|
|
5101
5101
|
]),
|
|
5102
5102
|
key: "0"
|
|
5103
5103
|
} : void 0,
|
|
5104
|
-
|
|
5104
|
+
S(u).length === 1 || S(s)(a.addonBefore) ? {
|
|
5105
5105
|
name: "addonBefore",
|
|
5106
|
-
fn:
|
|
5107
|
-
|
|
5108
|
-
|
|
5106
|
+
fn: L(() => [
|
|
5107
|
+
S(u).length === 1 ? re(_.$slots, "addonBefore", { key: 0 }) : j("", !0),
|
|
5108
|
+
S(u).length !== 1 ? (x(), Y("span", Hs, ae(a.addonBefore), 1)) : j("", !0)
|
|
5109
5109
|
]),
|
|
5110
5110
|
key: "1"
|
|
5111
5111
|
} : void 0
|
|
@@ -5114,7 +5114,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5114
5114
|
}
|
|
5115
5115
|
}), pu = {
|
|
5116
5116
|
install: (e, n) => {
|
|
5117
|
-
e.component(
|
|
5117
|
+
e.component(Ia.name, Ia);
|
|
5118
5118
|
}
|
|
5119
5119
|
}, Ys = { key: 1 }, Ws = { key: 1 }, Ra = /* @__PURE__ */ Q({
|
|
5120
5120
|
name: "SagAntdInputNumber",
|
|
@@ -5150,28 +5150,28 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5150
5150
|
},
|
|
5151
5151
|
emits: ["update:value", "change"],
|
|
5152
5152
|
setup(e, { expose: n, emit: t }) {
|
|
5153
|
-
const a = e, l = M(V.toString(a.value, null)), r = t, o = Object.keys(
|
|
5153
|
+
const a = e, l = M(V.toString(a.value, null)), r = t, o = Object.keys(Le()), i = o.filter((_) => _ === "addonAfter"), u = o.filter((_) => _ === "addonBefore"), c = () => {
|
|
5154
5154
|
y(!0);
|
|
5155
|
-
},
|
|
5155
|
+
}, m = () => l.value, f = (_) => {
|
|
5156
5156
|
l.value = _, y();
|
|
5157
5157
|
};
|
|
5158
|
-
|
|
5158
|
+
he(
|
|
5159
5159
|
() => a.value,
|
|
5160
5160
|
(_, C) => {
|
|
5161
|
-
_ !== l.value &&
|
|
5161
|
+
_ !== l.value && f(_);
|
|
5162
5162
|
}
|
|
5163
5163
|
);
|
|
5164
5164
|
const y = (_ = !1) => {
|
|
5165
5165
|
r("update:value", l.value), _ && r("change", l.value);
|
|
5166
5166
|
};
|
|
5167
5167
|
return n({
|
|
5168
|
-
getValue:
|
|
5169
|
-
setValue:
|
|
5168
|
+
getValue: m,
|
|
5169
|
+
setValue: f
|
|
5170
5170
|
}), (_, C) => {
|
|
5171
|
-
const
|
|
5172
|
-
return x(), z(
|
|
5171
|
+
const g = F("a-input-number");
|
|
5172
|
+
return x(), z(g, {
|
|
5173
5173
|
value: l.value,
|
|
5174
|
-
"onUpdate:value": C[0] || (C[0] = (
|
|
5174
|
+
"onUpdate:value": C[0] || (C[0] = (d) => l.value = d),
|
|
5175
5175
|
placeholder: a.placeholder,
|
|
5176
5176
|
disabled: a.disabled,
|
|
5177
5177
|
max: a.max,
|
|
@@ -5180,22 +5180,22 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5180
5180
|
precision: a.precision,
|
|
5181
5181
|
stringMode: a.stringMode,
|
|
5182
5182
|
controls: a.controls,
|
|
5183
|
-
style:
|
|
5183
|
+
style: me(a.style),
|
|
5184
5184
|
onChange: c
|
|
5185
5185
|
}, xe({ _: 2 }, [
|
|
5186
|
-
|
|
5186
|
+
S(i).length === 1 || S(s)(a.addonAfter) ? {
|
|
5187
5187
|
name: "addonAfter",
|
|
5188
|
-
fn:
|
|
5189
|
-
|
|
5190
|
-
|
|
5188
|
+
fn: L(() => [
|
|
5189
|
+
S(i).length === 1 ? re(_.$slots, "addonAfter", { key: 0 }) : j("", !0),
|
|
5190
|
+
S(i).length !== 1 ? (x(), Y("span", Ys, ae(a.addonAfter), 1)) : j("", !0)
|
|
5191
5191
|
]),
|
|
5192
5192
|
key: "0"
|
|
5193
5193
|
} : void 0,
|
|
5194
|
-
|
|
5194
|
+
S(u).length === 1 || S(s)(a.addonBefore) ? {
|
|
5195
5195
|
name: "addonBefore",
|
|
5196
|
-
fn:
|
|
5197
|
-
|
|
5198
|
-
|
|
5196
|
+
fn: L(() => [
|
|
5197
|
+
S(u).length === 1 ? re(_.$slots, "addonBefore", { key: 0 }) : j("", !0),
|
|
5198
|
+
S(u).length !== 1 ? (x(), Y("span", Ws, ae(a.addonBefore), 1)) : j("", !0)
|
|
5199
5199
|
]),
|
|
5200
5200
|
key: "1"
|
|
5201
5201
|
} : void 0
|
|
@@ -5229,16 +5229,16 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5229
5229
|
}, o = () => {
|
|
5230
5230
|
a.value = "", l("update:value", a.value), l("suffix");
|
|
5231
5231
|
};
|
|
5232
|
-
return
|
|
5232
|
+
return he(
|
|
5233
5233
|
() => t.value,
|
|
5234
5234
|
(i) => {
|
|
5235
5235
|
a.value = i;
|
|
5236
5236
|
}
|
|
5237
5237
|
), (i, u) => {
|
|
5238
|
-
const c =
|
|
5238
|
+
const c = F("a-input-search");
|
|
5239
5239
|
return x(), z(c, {
|
|
5240
5240
|
value: a.value,
|
|
5241
|
-
"onUpdate:value": u[0] || (u[0] = (
|
|
5241
|
+
"onUpdate:value": u[0] || (u[0] = (m) => a.value = m),
|
|
5242
5242
|
"enter-button": t.title,
|
|
5243
5243
|
disabled: t.disabled,
|
|
5244
5244
|
readonly: t.readonly,
|
|
@@ -5246,9 +5246,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5246
5246
|
}, xe({ _: 2 }, [
|
|
5247
5247
|
t.showSuffix && !t.disabled ? {
|
|
5248
5248
|
name: "suffix",
|
|
5249
|
-
fn:
|
|
5249
|
+
fn: L(() => [
|
|
5250
5250
|
K("a", { onClick: o }, [
|
|
5251
|
-
|
|
5251
|
+
q(ze, { icon: "close" })
|
|
5252
5252
|
])
|
|
5253
5253
|
]),
|
|
5254
5254
|
key: "0"
|
|
@@ -5290,26 +5290,26 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5290
5290
|
setup(e, { expose: n, emit: t }) {
|
|
5291
5291
|
const a = e, l = M(V.toString(a.value, null)), r = t, o = () => {
|
|
5292
5292
|
c(!0);
|
|
5293
|
-
}, i = () => l.value, u = (
|
|
5294
|
-
l.value =
|
|
5293
|
+
}, i = () => l.value, u = (m) => {
|
|
5294
|
+
l.value = m, c();
|
|
5295
5295
|
};
|
|
5296
|
-
|
|
5296
|
+
he(
|
|
5297
5297
|
() => a.value,
|
|
5298
|
-
(
|
|
5299
|
-
|
|
5298
|
+
(m, f) => {
|
|
5299
|
+
m !== l.value && u(m);
|
|
5300
5300
|
}
|
|
5301
5301
|
);
|
|
5302
|
-
const c = (
|
|
5303
|
-
r("update:value", l.value),
|
|
5302
|
+
const c = (m = !1) => {
|
|
5303
|
+
r("update:value", l.value), m && r("change", l.value);
|
|
5304
5304
|
};
|
|
5305
5305
|
return n({
|
|
5306
5306
|
getValue: i,
|
|
5307
5307
|
setValue: u
|
|
5308
|
-
}), (
|
|
5309
|
-
const y =
|
|
5308
|
+
}), (m, f) => {
|
|
5309
|
+
const y = F("a-textarea");
|
|
5310
5310
|
return x(), z(y, {
|
|
5311
5311
|
value: l.value,
|
|
5312
|
-
"onUpdate:value":
|
|
5312
|
+
"onUpdate:value": f[0] || (f[0] = (_) => l.value = _),
|
|
5313
5313
|
placeholder: a.placeholder,
|
|
5314
5314
|
disabled: a.disabled,
|
|
5315
5315
|
allowClear: a.allowClear,
|
|
@@ -5317,7 +5317,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5317
5317
|
rows: a.rows,
|
|
5318
5318
|
showCount: a.showCount,
|
|
5319
5319
|
maxlength: a.maxlength,
|
|
5320
|
-
style:
|
|
5320
|
+
style: me(a.style),
|
|
5321
5321
|
onChange: o
|
|
5322
5322
|
}, null, 8, ["value", "placeholder", "disabled", "allowClear", "autoSize", "rows", "showCount", "maxlength", "style"]);
|
|
5323
5323
|
};
|
|
@@ -5358,51 +5358,49 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5358
5358
|
},
|
|
5359
5359
|
emits: ["update:value", "update:label", "change"],
|
|
5360
5360
|
setup(e, { expose: n, emit: t }) {
|
|
5361
|
-
const a = e, l = t, r = V.toString(a.value, null), o = a.multiple ? M(s(r) ? r.split(",") : []) : M(r), i = M(a.multiple ? [] : null), u = M(a.multiple ? {} : null), c = M([]),
|
|
5362
|
-
const
|
|
5363
|
-
return await On(A.application,
|
|
5364
|
-
},
|
|
5365
|
-
|
|
5366
|
-
}, _ = () =>
|
|
5367
|
-
a.multiple ? o.value = s(
|
|
5368
|
-
}
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
(v) => {
|
|
5372
|
-
a.multiple ? o.value = s(v) ? v : [] : o.value = v;
|
|
5373
|
-
}
|
|
5374
|
-
);
|
|
5375
|
-
const m = (v = !1) => {
|
|
5376
|
-
l("update:value", o.value), f(v);
|
|
5377
|
-
}, f = (v = !1) => {
|
|
5361
|
+
const a = e, l = t, r = V.toString(a.value, null), o = a.multiple ? M(s(r) ? r.split(",") : []) : M(r), i = M(a.multiple ? [] : null), u = M(a.multiple ? {} : null), c = M([]), m = async () => {
|
|
5362
|
+
const h = ne(A.ctxPath, A.requestDictUrl);
|
|
5363
|
+
return await On(A.application, h, a.requestParams);
|
|
5364
|
+
}, f = (h, p) => p.label.toLowerCase().indexOf(h.toLowerCase()) >= 0, y = (h, p) => {
|
|
5365
|
+
g(!0);
|
|
5366
|
+
}, _ = () => u.value, C = (h) => {
|
|
5367
|
+
a.multiple ? o.value = s(h) ? h : [] : o.value = s(h) ? h : "", g();
|
|
5368
|
+
}, g = (h = !1) => {
|
|
5369
|
+
l("update:value", o.value), d(h);
|
|
5370
|
+
}, d = (h = !1) => {
|
|
5378
5371
|
if (s(o.value))
|
|
5379
5372
|
if (a.multiple) {
|
|
5380
|
-
const
|
|
5381
|
-
o.value.forEach((
|
|
5382
|
-
let
|
|
5383
|
-
|
|
5384
|
-
}), i.value =
|
|
5373
|
+
const p = [];
|
|
5374
|
+
o.value.forEach((O) => {
|
|
5375
|
+
let b = c.value.filter((v) => v.value === O);
|
|
5376
|
+
b.length === 1 && (p.push(b[0].label), u.value[O] = b[0]);
|
|
5377
|
+
}), i.value = p;
|
|
5385
5378
|
} else {
|
|
5386
|
-
const
|
|
5387
|
-
s(
|
|
5379
|
+
const p = c.value.filter((O) => O.value === o.value);
|
|
5380
|
+
s(p) && (i.value = p[0].label, u.value = p[0]);
|
|
5388
5381
|
}
|
|
5389
5382
|
else
|
|
5390
5383
|
i.value = a.multiple ? [] : null, u.value = a.multiple ? {} : null;
|
|
5391
|
-
l("update:label", i.value),
|
|
5384
|
+
l("update:label", i.value), h && l("change", u.value);
|
|
5392
5385
|
};
|
|
5393
|
-
return
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5386
|
+
return he(
|
|
5387
|
+
() => a.value,
|
|
5388
|
+
(h) => {
|
|
5389
|
+
a.multiple ? o.value = s(h) ? h : [] : o.value = h;
|
|
5390
|
+
}
|
|
5391
|
+
), oe(() => {
|
|
5392
|
+
m().then((h) => {
|
|
5393
|
+
c.value = h, s(a.extraOptions) && a.extraOptions?.length > 0 && c.value.unshift(...a.extraOptions), s(o.value) && !s(i.value) && d();
|
|
5399
5394
|
});
|
|
5400
|
-
}), (
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5395
|
+
}), n({
|
|
5396
|
+
getSelectedOptions: _,
|
|
5397
|
+
setValue: C
|
|
5398
|
+
}), (h, p) => {
|
|
5399
|
+
const O = F("a-select");
|
|
5400
|
+
return x(), Y("div", Gs, [
|
|
5401
|
+
q(O, {
|
|
5402
|
+
value: S(o),
|
|
5403
|
+
"onUpdate:value": p[0] || (p[0] = (b) => gt(o) ? o.value = b : null),
|
|
5406
5404
|
onChange: y,
|
|
5407
5405
|
placeholder: "--请选择--",
|
|
5408
5406
|
allowClear: a.clearable,
|
|
@@ -5410,13 +5408,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5410
5408
|
"max-tag-count": a.maxTagCount,
|
|
5411
5409
|
options: c.value,
|
|
5412
5410
|
"show-search": a.filterable,
|
|
5413
|
-
"filter-option":
|
|
5411
|
+
"filter-option": f,
|
|
5414
5412
|
defaultActiveFirstOption: !a.multiple,
|
|
5415
5413
|
autoClearSearchValue: !a.filterable,
|
|
5416
5414
|
listHeight: a.listHeight,
|
|
5417
|
-
getPopupContainer: (
|
|
5415
|
+
getPopupContainer: (b) => S(Ie)(a.mountainTop, e.getPopupContainer, b),
|
|
5418
5416
|
disabled: e.disabled,
|
|
5419
|
-
style:
|
|
5417
|
+
style: me(a.style),
|
|
5420
5418
|
size: "medium"
|
|
5421
5419
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "listHeight", "getPopupContainer", "disabled", "style"])
|
|
5422
5420
|
]);
|
|
@@ -5464,67 +5462,66 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5464
5462
|
},
|
|
5465
5463
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5466
5464
|
setup(e, { expose: n, emit: t }) {
|
|
5467
|
-
const a = e, l = M(a.value ? a.value : a.multiple ? [] : null), r = M(a.label ? a.label : a.multiple ? [] : null), o = M(a.multiple ? {} : null), i = M([]), u = M(!1), c = t,
|
|
5465
|
+
const a = e, l = M(a.value ? a.value : a.multiple ? [] : null), r = M(a.label ? a.label : a.multiple ? [] : null), o = M(a.multiple ? {} : null), i = M([]), u = M(!1), c = t, m = "请输入" + a.title + "搜索", f = async (D) => {
|
|
5468
5466
|
if (a.corpFilter && !s(a.corpId))
|
|
5469
5467
|
return i.value = [], [];
|
|
5470
|
-
let
|
|
5471
|
-
Object.assign(
|
|
5472
|
-
const
|
|
5473
|
-
return u.value = !1, i.value =
|
|
5474
|
-
}, y =
|
|
5475
|
-
|
|
5476
|
-
c("query",
|
|
5468
|
+
let R = { corpId: a.corpId, initValue: D };
|
|
5469
|
+
Object.assign(R, a.requestParams), i.value = [], u.value = !0;
|
|
5470
|
+
const I = await Re(a.requestUrl, R);
|
|
5471
|
+
return u.value = !1, i.value = I, I;
|
|
5472
|
+
}, y = Lt(() => {
|
|
5473
|
+
f(null).then((D) => {
|
|
5474
|
+
c("query", D);
|
|
5477
5475
|
});
|
|
5478
|
-
}, 300), _ = (
|
|
5479
|
-
|
|
5480
|
-
|
|
5476
|
+
}, 300), _ = (D) => {
|
|
5477
|
+
g(D).then(() => {
|
|
5478
|
+
v(!0);
|
|
5481
5479
|
});
|
|
5482
|
-
}, C = (
|
|
5483
|
-
if (l.value =
|
|
5484
|
-
const
|
|
5485
|
-
l.value.forEach((
|
|
5486
|
-
let
|
|
5487
|
-
|
|
5488
|
-
}), r.value =
|
|
5480
|
+
}, C = (D, R) => R.label.toLowerCase().indexOf(Te(D).toLowerCase()) >= 0, g = async (D) => {
|
|
5481
|
+
if (l.value = D, a.multiple) {
|
|
5482
|
+
const R = [];
|
|
5483
|
+
l.value.forEach((I) => {
|
|
5484
|
+
let H = i.value.filter((W) => W.value === I);
|
|
5485
|
+
H.length === 1 && (R.push(H[0].label), o.value[I] = H[0]);
|
|
5486
|
+
}), r.value = R;
|
|
5489
5487
|
} else {
|
|
5490
|
-
let
|
|
5491
|
-
|
|
5488
|
+
let R = i.value.filter((I) => I.value === D);
|
|
5489
|
+
R.length === 1 ? (r.value = R[0].label, o.value = R[0]) : (r.value = null, o.value = null);
|
|
5492
5490
|
}
|
|
5493
|
-
},
|
|
5494
|
-
|
|
5495
|
-
|
|
5491
|
+
}, d = () => o.value, h = (D) => {
|
|
5492
|
+
g(D).then(() => {
|
|
5493
|
+
v();
|
|
5496
5494
|
});
|
|
5497
|
-
},
|
|
5498
|
-
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null,
|
|
5499
|
-
},
|
|
5500
|
-
|
|
5495
|
+
}, p = () => {
|
|
5496
|
+
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null, v();
|
|
5497
|
+
}, O = async () => {
|
|
5498
|
+
p(), i.value = [];
|
|
5501
5499
|
}, b = async () => {
|
|
5502
|
-
|
|
5503
|
-
},
|
|
5504
|
-
c("update:value", l.value), c("update:label", r.value),
|
|
5505
|
-
},
|
|
5506
|
-
return
|
|
5500
|
+
p(), i.value = [], await y();
|
|
5501
|
+
}, v = (D = !1) => {
|
|
5502
|
+
c("update:value", l.value), c("update:label", r.value), D && c("change", o.value);
|
|
5503
|
+
}, B = (D, R) => a.multiple ? s(D) && !s(R) || !s(D) && s(R) ? !0 : !s(D) && !s(R) || D.length !== R.length ? !1 : !D.every((I, H) => I === R[H]) : D !== R;
|
|
5504
|
+
return he(
|
|
5507
5505
|
() => [a.corpId, a.value],
|
|
5508
|
-
async ([
|
|
5509
|
-
const
|
|
5510
|
-
|
|
5506
|
+
async ([D, R], [I, H]) => {
|
|
5507
|
+
const W = D !== I, Oe = B(R, l.value);
|
|
5508
|
+
W && (p(), await f(R)), Oe && h(R);
|
|
5511
5509
|
}
|
|
5512
|
-
),
|
|
5513
|
-
|
|
5510
|
+
), oe(async () => {
|
|
5511
|
+
f(null);
|
|
5514
5512
|
}), n({
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
clear: h,
|
|
5513
|
+
getSelectedOptions: d,
|
|
5514
|
+
setValue: h,
|
|
5515
|
+
clear: O,
|
|
5519
5516
|
reload: b
|
|
5520
|
-
}), (
|
|
5521
|
-
const
|
|
5522
|
-
return x(),
|
|
5523
|
-
|
|
5517
|
+
}), (D, R) => {
|
|
5518
|
+
const I = F("a-spin"), H = F("a-select");
|
|
5519
|
+
return x(), Y("div", Js, [
|
|
5520
|
+
q(H, {
|
|
5524
5521
|
value: l.value,
|
|
5525
|
-
"onUpdate:value":
|
|
5526
|
-
placeholder:
|
|
5527
|
-
style:
|
|
5522
|
+
"onUpdate:value": R[0] || (R[0] = (W) => l.value = W),
|
|
5523
|
+
placeholder: m,
|
|
5524
|
+
style: me(a.style),
|
|
5528
5525
|
"filter-option": C,
|
|
5529
5526
|
disabled: a.disabled,
|
|
5530
5527
|
mode: e.multiple ? "multiple" : "",
|
|
@@ -5532,14 +5529,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5532
5529
|
options: i.value,
|
|
5533
5530
|
allowClear: a.clearable,
|
|
5534
5531
|
listHeight: a.listHeight,
|
|
5535
|
-
getPopupContainer: (
|
|
5532
|
+
getPopupContainer: (W) => S(Ie)(a.mountainTop, e.getPopupContainer, W),
|
|
5536
5533
|
onChange: _,
|
|
5537
5534
|
"show-search": ""
|
|
5538
5535
|
}, xe({ _: 2 }, [
|
|
5539
5536
|
u.value ? {
|
|
5540
5537
|
name: "notFoundContent",
|
|
5541
|
-
fn:
|
|
5542
|
-
|
|
5538
|
+
fn: L(() => [
|
|
5539
|
+
q(I, { size: "small" })
|
|
5543
5540
|
]),
|
|
5544
5541
|
key: "0"
|
|
5545
5542
|
} : void 0
|
|
@@ -5585,64 +5582,63 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5585
5582
|
},
|
|
5586
5583
|
emits: ["update:value", "update:label", "change"],
|
|
5587
5584
|
setup(e, { expose: n, emit: t }) {
|
|
5588
|
-
const a = e, l = M(a.value || null), r = M(a.label || ""), o = M({}), i = M([]), u = M(!1), c = t,
|
|
5585
|
+
const a = e, l = M(a.value || null), r = M(a.label || ""), o = M({}), i = M([]), u = M(!1), c = t, m = "请输入" + a.title + "搜索", f = async (p, O = null) => {
|
|
5589
5586
|
if (i.value = [], a.corpFilter && !s(a.corpId))
|
|
5590
5587
|
return [];
|
|
5591
|
-
if (s(
|
|
5592
|
-
let b = { corpId: a.corpId, searchValue: Te(
|
|
5588
|
+
if (s(p) || s(O)) {
|
|
5589
|
+
let b = { corpId: a.corpId, searchValue: Te(p), initValue: O };
|
|
5593
5590
|
Object.assign(b, a.requestParams), u.value = !0;
|
|
5594
|
-
const
|
|
5595
|
-
return u.value = !1, i.value =
|
|
5591
|
+
const v = await Re(a.requestUrl, b);
|
|
5592
|
+
return u.value = !1, i.value = v, v;
|
|
5596
5593
|
} else
|
|
5597
5594
|
return [];
|
|
5598
|
-
}, y = (
|
|
5599
|
-
l.value =
|
|
5600
|
-
|
|
5595
|
+
}, y = (p) => {
|
|
5596
|
+
l.value = p, C(p).then((O) => {
|
|
5597
|
+
h(!0);
|
|
5601
5598
|
});
|
|
5602
|
-
}, _ =
|
|
5603
|
-
|
|
5604
|
-
}, 500), C = async (
|
|
5605
|
-
if (s(
|
|
5606
|
-
let
|
|
5607
|
-
return
|
|
5599
|
+
}, _ = Lt((p) => {
|
|
5600
|
+
f(p);
|
|
5601
|
+
}, 500), C = async (p) => {
|
|
5602
|
+
if (s(p)) {
|
|
5603
|
+
let O = i.value.filter((b) => b.value === p);
|
|
5604
|
+
return O.length === 1 ? (l.value = O[0].value, r.value = O[0].label, o.value = O[0], !0) : (l.value = null, r.value = "", o.value = null, !1);
|
|
5608
5605
|
} else
|
|
5609
5606
|
return l.value = null, r.value = "", o.value = null, !0;
|
|
5610
|
-
},
|
|
5611
|
-
l.value =
|
|
5612
|
-
|
|
5607
|
+
}, g = () => o.value, d = (p) => {
|
|
5608
|
+
l.value = p, C(p).then((O) => {
|
|
5609
|
+
O && h();
|
|
5613
5610
|
});
|
|
5614
|
-
},
|
|
5615
|
-
c("update:value", l.value), c("update:label", r.value),
|
|
5611
|
+
}, h = (p = !1) => {
|
|
5612
|
+
c("update:value", l.value), c("update:label", r.value), p && c("change", o.value);
|
|
5616
5613
|
};
|
|
5617
|
-
return
|
|
5614
|
+
return he(
|
|
5618
5615
|
() => [a.corpId, a.value],
|
|
5619
|
-
async ([
|
|
5620
|
-
const
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5616
|
+
async ([p, O], [b, v]) => {
|
|
5617
|
+
const B = p !== b, D = O !== l.value;
|
|
5618
|
+
B && (i.value = [], r.value = null, l.value = null, o.value = null, h()), D && C(O).then((R) => {
|
|
5619
|
+
R || f(O, O).then(() => {
|
|
5620
|
+
d(O);
|
|
5624
5621
|
});
|
|
5625
5622
|
});
|
|
5626
5623
|
}
|
|
5627
|
-
),
|
|
5624
|
+
), oe(async () => {
|
|
5628
5625
|
s(l.value) && (s(r.value) ? i.value = [
|
|
5629
5626
|
{
|
|
5630
5627
|
value: l.value,
|
|
5631
5628
|
label: r.value
|
|
5632
5629
|
}
|
|
5633
|
-
] :
|
|
5630
|
+
] : f(null, l.value));
|
|
5634
5631
|
}), n({
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
D(N, {
|
|
5632
|
+
getSelectedOptions: g,
|
|
5633
|
+
setValue: d
|
|
5634
|
+
}), (p, O) => {
|
|
5635
|
+
const b = F("a-spin"), v = F("a-select");
|
|
5636
|
+
return x(), Y("div", Zs, [
|
|
5637
|
+
q(v, {
|
|
5642
5638
|
value: l.value,
|
|
5643
|
-
"onUpdate:value":
|
|
5644
|
-
placeholder:
|
|
5645
|
-
style:
|
|
5639
|
+
"onUpdate:value": O[0] || (O[0] = (B) => l.value = B),
|
|
5640
|
+
placeholder: m,
|
|
5641
|
+
style: me(a.style),
|
|
5646
5642
|
"filter-option": !1,
|
|
5647
5643
|
options: i.value,
|
|
5648
5644
|
disabled: a.disabled,
|
|
@@ -5650,15 +5646,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5650
5646
|
listHeight: a.listHeight,
|
|
5651
5647
|
"default-active-first-option": !1,
|
|
5652
5648
|
"show-arrow": !1,
|
|
5653
|
-
getPopupContainer: (
|
|
5649
|
+
getPopupContainer: (B) => S(Ie)(a.mountainTop, e.getPopupContainer, B),
|
|
5654
5650
|
onChange: y,
|
|
5655
|
-
onSearch:
|
|
5651
|
+
onSearch: S(_),
|
|
5656
5652
|
"show-search": ""
|
|
5657
5653
|
}, xe({ _: 2 }, [
|
|
5658
5654
|
u.value ? {
|
|
5659
5655
|
name: "notFoundContent",
|
|
5660
|
-
fn:
|
|
5661
|
-
|
|
5656
|
+
fn: L(() => [
|
|
5657
|
+
q(b, { size: "small" })
|
|
5662
5658
|
]),
|
|
5663
5659
|
key: "0"
|
|
5664
5660
|
} : void 0
|
|
@@ -5683,27 +5679,27 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5683
5679
|
//
|
|
5684
5680
|
},
|
|
5685
5681
|
setup(e) {
|
|
5686
|
-
const n = e, t = Object.keys(
|
|
5682
|
+
const n = e, t = Object.keys(Le()), a = t.filter((i) => i !== "header"), l = t.filter((i) => i === "header"), r = M(n.activeKey), o = M(n.header instanceof Object ? n.header : { default: n.header });
|
|
5687
5683
|
return (i, u) => {
|
|
5688
|
-
const c =
|
|
5689
|
-
return x(), z(
|
|
5684
|
+
const c = F("a-collapse-panel"), m = F("a-collapse");
|
|
5685
|
+
return x(), z(m, {
|
|
5690
5686
|
activeKey: r.value,
|
|
5691
|
-
"onUpdate:activeKey": u[0] || (u[0] = (
|
|
5687
|
+
"onUpdate:activeKey": u[0] || (u[0] = (f) => r.value = f),
|
|
5692
5688
|
expandIconPosition: "end",
|
|
5693
5689
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5694
5690
|
accordion: ""
|
|
5695
5691
|
}, {
|
|
5696
|
-
default:
|
|
5697
|
-
(x(!0),
|
|
5698
|
-
key:
|
|
5692
|
+
default: L(() => [
|
|
5693
|
+
(x(!0), Y(ce, null, Ce(S(a), (f) => (x(), z(c, {
|
|
5694
|
+
key: f,
|
|
5699
5695
|
forceRender: "",
|
|
5700
5696
|
showArrow: n.showArrow
|
|
5701
5697
|
}, {
|
|
5702
|
-
header:
|
|
5703
|
-
|
|
5698
|
+
header: L(() => [
|
|
5699
|
+
S(l).length === 1 ? re(i.$slots, "header", { key: 0 }) : (x(), Y("span", Qs, ae(o.value[f]), 1))
|
|
5704
5700
|
]),
|
|
5705
|
-
default:
|
|
5706
|
-
|
|
5701
|
+
default: L(() => [
|
|
5702
|
+
re(i.$slots, f)
|
|
5707
5703
|
]),
|
|
5708
5704
|
_: 2
|
|
5709
5705
|
}, 1032, ["showArrow"]))), 128))
|
|
@@ -5721,8 +5717,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5721
5717
|
inheritAttrs: !1,
|
|
5722
5718
|
__name: "SagAntdSpace",
|
|
5723
5719
|
setup(e) {
|
|
5724
|
-
return (n, t) => (x(),
|
|
5725
|
-
|
|
5720
|
+
return (n, t) => (x(), Y("div", Xs, [
|
|
5721
|
+
re(n.$slots, "default")
|
|
5726
5722
|
]));
|
|
5727
5723
|
}
|
|
5728
5724
|
}), Ou = {
|
|
@@ -5750,13 +5746,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5750
5746
|
const t = e, a = M(t.checked), l = n, r = (o) => {
|
|
5751
5747
|
l("update:checked", o), l("change", o);
|
|
5752
5748
|
};
|
|
5753
|
-
return
|
|
5749
|
+
return he(
|
|
5754
5750
|
() => t.checked,
|
|
5755
5751
|
(o) => {
|
|
5756
5752
|
a.value = o;
|
|
5757
5753
|
}
|
|
5758
5754
|
), (o, i) => {
|
|
5759
|
-
const u =
|
|
5755
|
+
const u = F("a-switch");
|
|
5760
5756
|
return x(), z(u, {
|
|
5761
5757
|
checked: a.value,
|
|
5762
5758
|
"onUpdate:checked": i[0] || (i[0] = (c) => a.value = c),
|
|
@@ -5794,56 +5790,56 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5794
5790
|
},
|
|
5795
5791
|
emits: ["update:activeKey", "change"],
|
|
5796
5792
|
setup(e, { emit: n }) {
|
|
5797
|
-
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(
|
|
5798
|
-
u("update:activeKey",
|
|
5793
|
+
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Le()), r = l.filter((m) => m != "rightExtra" && m != "header"), o = M(t.activeKey), i = M(t.header instanceof Object ? t.header : { default: t.header }), u = n, c = (m) => {
|
|
5794
|
+
u("update:activeKey", m), u("change", m);
|
|
5799
5795
|
};
|
|
5800
|
-
return
|
|
5796
|
+
return he(
|
|
5801
5797
|
() => t.activeKey,
|
|
5802
|
-
(
|
|
5803
|
-
o.value =
|
|
5798
|
+
(m) => {
|
|
5799
|
+
o.value = m;
|
|
5804
5800
|
}
|
|
5805
|
-
), (
|
|
5806
|
-
const y =
|
|
5801
|
+
), (m, f) => {
|
|
5802
|
+
const y = F("a-tab-pane"), _ = F("a-tabs");
|
|
5807
5803
|
return x(), z(_, {
|
|
5808
5804
|
activeKey: o.value,
|
|
5809
|
-
"onUpdate:activeKey":
|
|
5805
|
+
"onUpdate:activeKey": f[0] || (f[0] = (C) => o.value = C),
|
|
5810
5806
|
type: t.type,
|
|
5811
5807
|
"tab-position": t.position,
|
|
5812
5808
|
tabBarGutter: t.position === "left" ? 4 : 25,
|
|
5813
|
-
tabBarStyle: { margin: 0, backgroundColor:
|
|
5809
|
+
tabBarStyle: { margin: 0, backgroundColor: S(a) },
|
|
5814
5810
|
onChange: c
|
|
5815
5811
|
}, xe({
|
|
5816
|
-
default:
|
|
5817
|
-
(x(!0),
|
|
5812
|
+
default: L(() => [
|
|
5813
|
+
(x(!0), Y(ce, null, Ce(S(r), (C, g) => (x(), z(y, {
|
|
5818
5814
|
key: C,
|
|
5819
5815
|
forceRender: t.forceRender && !t.notForceRender?.includes(C),
|
|
5820
|
-
style:
|
|
5816
|
+
style: me(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5821
5817
|
}, {
|
|
5822
|
-
tab:
|
|
5818
|
+
tab: L(() => [
|
|
5823
5819
|
K("span", {
|
|
5824
|
-
style:
|
|
5820
|
+
style: me(g === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5825
5821
|
}, [
|
|
5826
|
-
|
|
5822
|
+
S(l).includes("header") ? re(m.$slots, "header", {
|
|
5827
5823
|
key: 0,
|
|
5828
5824
|
tabKey: C
|
|
5829
|
-
}) : (x(),
|
|
5830
|
-
|
|
5831
|
-
|
|
5825
|
+
}) : (x(), Y(ce, { key: 1 }, [
|
|
5826
|
+
q(ze, { icon: "menu" }),
|
|
5827
|
+
ue(" " + ae(i.value[C]), 1)
|
|
5832
5828
|
], 64))
|
|
5833
5829
|
], 4)
|
|
5834
5830
|
]),
|
|
5835
|
-
default:
|
|
5836
|
-
|
|
5831
|
+
default: L(() => [
|
|
5832
|
+
re(m.$slots, C)
|
|
5837
5833
|
]),
|
|
5838
5834
|
_: 2
|
|
5839
5835
|
}, 1032, ["forceRender", "style"]))), 128))
|
|
5840
5836
|
]),
|
|
5841
5837
|
_: 2
|
|
5842
5838
|
}, [
|
|
5843
|
-
|
|
5839
|
+
S(l).includes("rightExtra") ? {
|
|
5844
5840
|
name: "rightExtra",
|
|
5845
|
-
fn:
|
|
5846
|
-
|
|
5841
|
+
fn: L(() => [
|
|
5842
|
+
re(m.$slots, "rightExtra")
|
|
5847
5843
|
]),
|
|
5848
5844
|
key: "0"
|
|
5849
5845
|
} : void 0
|