sag-ubmp-pc 1.0.46 → 1.0.48
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 +1382 -1379
- package/dist/sag-ubmp-pc.umd.js +7 -7
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Me, { trim as
|
|
2
|
-
import { inject as ge, ref 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
|
-
import
|
|
4
|
+
import T from "dayjs";
|
|
5
5
|
const ht = "SAG_UBMP_PC$", ft = {
|
|
6
6
|
set: () => {
|
|
7
7
|
},
|
|
@@ -209,12 +209,12 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
209
209
|
span: r,
|
|
210
210
|
multiple: o,
|
|
211
211
|
clearable: i,
|
|
212
|
-
filterable:
|
|
213
|
-
disabled:
|
|
214
|
-
defaultValue:
|
|
212
|
+
filterable: u,
|
|
213
|
+
disabled: c,
|
|
214
|
+
defaultValue: m,
|
|
215
215
|
dictRoleType: f,
|
|
216
|
-
selectAll:
|
|
217
|
-
parentNode:
|
|
216
|
+
selectAll: y,
|
|
217
|
+
parentNode: _
|
|
218
218
|
} = a;
|
|
219
219
|
return {
|
|
220
220
|
field: e,
|
|
@@ -225,21 +225,21 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
225
225
|
props: {
|
|
226
226
|
request: {
|
|
227
227
|
dictType: t,
|
|
228
|
-
parentNode: s(
|
|
228
|
+
parentNode: s(_) ? _ : null,
|
|
229
229
|
dictRoleType: s(f) ? f : null
|
|
230
230
|
},
|
|
231
231
|
multiple: s(o) ? o : !1,
|
|
232
232
|
clearable: s(i) ? i : !0,
|
|
233
|
-
filterable: s(
|
|
234
|
-
selectAll: s(
|
|
235
|
-
disabled: s(
|
|
236
|
-
defaultValue: s(
|
|
233
|
+
filterable: s(u) ? u : !1,
|
|
234
|
+
selectAll: s(y) ? y : !0,
|
|
235
|
+
disabled: s(c) ? c : !1,
|
|
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:
|
|
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,
|
|
@@ -251,9 +251,9 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
251
251
|
requestParams: s(r) ? r : {},
|
|
252
252
|
defaultValue: s(o) ? o : null,
|
|
253
253
|
multiple: s(i) ? i : !1,
|
|
254
|
-
clearable: s(
|
|
255
|
-
filterable: s(
|
|
256
|
-
selectAll: s(
|
|
254
|
+
clearable: s(c) ? c : !0,
|
|
255
|
+
filterable: s(m) ? m : !0,
|
|
256
|
+
selectAll: s(u) ? u : !0,
|
|
257
257
|
disabled: s(f) ? f : !1
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -353,40 +353,40 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
353
353
|
requestUrl: r,
|
|
354
354
|
requestTitle: o,
|
|
355
355
|
instanceField: i = "",
|
|
356
|
-
minWidth:
|
|
357
|
-
maximize:
|
|
358
|
-
componentVue:
|
|
356
|
+
minWidth: u = 120,
|
|
357
|
+
maximize: c = !0,
|
|
358
|
+
componentVue: m = !0,
|
|
359
359
|
componentParams: f = {},
|
|
360
|
-
treeNode:
|
|
361
|
-
autoLoad:
|
|
362
|
-
resizable:
|
|
360
|
+
treeNode: y = !1,
|
|
361
|
+
autoLoad: _ = !1,
|
|
362
|
+
resizable: C = !1,
|
|
363
363
|
showOverflow: g,
|
|
364
|
-
align:
|
|
364
|
+
align: d = "center",
|
|
365
365
|
type: h,
|
|
366
|
-
fixed:
|
|
367
|
-
width:
|
|
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(
|
|
374
|
-
minWidth:
|
|
375
|
-
resizable:
|
|
373
|
+
width: s(O) ? O : s(h) ? s(u) ? u : 120 : "auto",
|
|
374
|
+
minWidth: u,
|
|
375
|
+
resizable: C,
|
|
376
376
|
showOverflow: s(g) ? g : "title",
|
|
377
|
-
align:
|
|
377
|
+
align: d,
|
|
378
378
|
headerAlign: "center",
|
|
379
379
|
type: s(h) ? h : null,
|
|
380
|
-
fixed: s(
|
|
380
|
+
fixed: s(p) ? p : "",
|
|
381
381
|
formatter: s(a) ? a : "",
|
|
382
|
-
treeNode:
|
|
382
|
+
treeNode: y,
|
|
383
383
|
params: {
|
|
384
384
|
requestType: s(l) ? l : "",
|
|
385
385
|
requestUrl: r,
|
|
386
386
|
title: o,
|
|
387
|
-
maximize:
|
|
388
|
-
autoLoad:
|
|
389
|
-
componentVue:
|
|
387
|
+
maximize: c,
|
|
388
|
+
autoLoad: _,
|
|
389
|
+
componentVue: m,
|
|
390
390
|
componentParams: f,
|
|
391
391
|
instanceField: i
|
|
392
392
|
},
|
|
@@ -458,13 +458,13 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
458
458
|
requestUrl: r,
|
|
459
459
|
requestRow: o = !0,
|
|
460
460
|
requestRadio: i = !1,
|
|
461
|
-
componentVue:
|
|
462
|
-
componentParams:
|
|
463
|
-
maximize:
|
|
461
|
+
componentVue: u = !0,
|
|
462
|
+
componentParams: c,
|
|
463
|
+
maximize: m = !0,
|
|
464
464
|
width: f,
|
|
465
|
-
height:
|
|
466
|
-
auth:
|
|
467
|
-
autoLoad:
|
|
465
|
+
height: y,
|
|
466
|
+
auth: _,
|
|
467
|
+
autoLoad: C = !0,
|
|
468
468
|
instanceField: g = ""
|
|
469
469
|
} = n;
|
|
470
470
|
return {
|
|
@@ -475,18 +475,18 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
475
475
|
requestRow: o,
|
|
476
476
|
requestRadio: i,
|
|
477
477
|
requestUrl: s(r) ? r : "",
|
|
478
|
-
componentVue:
|
|
479
|
-
componentParams: s(
|
|
478
|
+
componentVue: u,
|
|
479
|
+
componentParams: s(c) ? c : {},
|
|
480
480
|
title: s(l) ? l : "操作",
|
|
481
|
-
maximize:
|
|
482
|
-
autoLoad:
|
|
481
|
+
maximize: m,
|
|
482
|
+
autoLoad: C,
|
|
483
483
|
width: s(f) ? f : null,
|
|
484
|
-
height: s(
|
|
485
|
-
auth: s(
|
|
484
|
+
height: s(y) ? y : null,
|
|
485
|
+
auth: s(_) ? _ : !0,
|
|
486
486
|
instanceField: g
|
|
487
487
|
};
|
|
488
488
|
}, Ar = (e = "", n = {}) => {
|
|
489
|
-
const { icon: t, status: a, requestTitle: l, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent:
|
|
489
|
+
const { icon: t, status: a, requestTitle: l, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent: u, auth: c } = n;
|
|
490
490
|
return {
|
|
491
491
|
icon: s(t) ? t : "save",
|
|
492
492
|
status: s(a) ? a : "primary",
|
|
@@ -496,8 +496,8 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
496
496
|
requestRadio: s(i) ? i : !1,
|
|
497
497
|
requestUrl: s(r) ? r : "",
|
|
498
498
|
requestTitle: s(l) ? l : "确定要" + e + "选择的单据吗?",
|
|
499
|
-
requestConfirmContent: s(
|
|
500
|
-
auth: s(
|
|
499
|
+
requestConfirmContent: s(u) ? u : "",
|
|
500
|
+
auth: s(c) ? c : !0
|
|
501
501
|
};
|
|
502
502
|
}, Tr = (e = "", n = {}) => {
|
|
503
503
|
const { icon: t, status: a, requestUrl: l, auth: r } = n;
|
|
@@ -553,46 +553,46 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
553
553
|
getVxePageRows: ur
|
|
554
554
|
}, Bn = (e) => {
|
|
555
555
|
const { mergeKey: n, seqKey: t, fields: a } = e;
|
|
556
|
-
return ({ row: r, _rowIndex: o, column: i, visibleData:
|
|
556
|
+
return ({ row: r, _rowIndex: o, column: i, visibleData: u }) => {
|
|
557
557
|
if (n) {
|
|
558
|
-
const
|
|
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
|
|
562
|
-
let
|
|
563
|
-
const
|
|
564
|
-
if (
|
|
561
|
+
const m = u[o - 1], f = m && m[i.field] ? m[i.field] : "";
|
|
562
|
+
let y = u[o + 1];
|
|
563
|
+
const _ = y && y[i.field] ? y[i.field] : "";
|
|
564
|
+
if (m && f === c && m[n] === r[n])
|
|
565
565
|
return { rowspan: 0, colspan: 0 };
|
|
566
566
|
{
|
|
567
|
-
let
|
|
568
|
-
for (;
|
|
569
|
-
|
|
570
|
-
if (
|
|
571
|
-
return { rowspan:
|
|
567
|
+
let C = 1;
|
|
568
|
+
for (; y && _ === c && y[n] === r[n]; )
|
|
569
|
+
y = u[++C + o];
|
|
570
|
+
if (C > 1)
|
|
571
|
+
return { rowspan: C, colspan: 1 };
|
|
572
572
|
}
|
|
573
573
|
} else if (!s(i.field) || i.field === t) {
|
|
574
|
-
const
|
|
575
|
-
let f =
|
|
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
|
-
let
|
|
579
|
+
let y = 1;
|
|
580
580
|
for (; f && f[n] === r[n]; )
|
|
581
|
-
f =
|
|
582
|
-
if (
|
|
583
|
-
return { rowspan:
|
|
581
|
+
f = u[++y + o];
|
|
582
|
+
if (y > 1)
|
|
583
|
+
return { rowspan: y, colspan: 1 };
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
} else if (s(a[i.field])) {
|
|
587
|
-
const
|
|
588
|
-
let
|
|
589
|
-
const
|
|
590
|
-
if (f &&
|
|
587
|
+
const m = a[i.field], f = u[o - 1], y = f && f[i.field] ? f[i.field] : "";
|
|
588
|
+
let _ = u[o + 1];
|
|
589
|
+
const C = _ && _[i.field] ? _[i.field] : "";
|
|
590
|
+
if (f && y === c && f[m] === r[m])
|
|
591
591
|
return { rowspan: 0, colspan: 0 };
|
|
592
592
|
{
|
|
593
593
|
let g = 1;
|
|
594
|
-
for (;
|
|
595
|
-
|
|
594
|
+
for (; _ && C === c && _[m] === r[m]; )
|
|
595
|
+
_ = u[++g + o];
|
|
596
596
|
if (g > 1)
|
|
597
597
|
return { rowspan: g, colspan: 1 };
|
|
598
598
|
}
|
|
@@ -601,8 +601,8 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
601
601
|
};
|
|
602
602
|
}, jt = (e, n, t, a, l, r) => {
|
|
603
603
|
const o = Object.assign({}, a);
|
|
604
|
-
Object.assign(o, l), Object.keys(o).forEach((
|
|
605
|
-
typeof o[
|
|
604
|
+
Object.assign(o, l), Object.keys(o).forEach((u) => {
|
|
605
|
+
typeof o[u] == "string" && (o[u] = Te(o[u])), typeof l[u] == "object" && s(l[u]) && r && r.value[u] && r.value[u].getRefType && r.value[u].getRefType() === "dateRange" && (o["begin" + u.substring(0, 1).toUpperCase() + u.substring(1, u.length)] = l[u][0], o["end" + u.substring(0, 1).toUpperCase() + u.substring(1, u.length)] = l[u][1], o[u] = null);
|
|
606
606
|
}), o.pageModel = {
|
|
607
607
|
pageNo: e.currentPage,
|
|
608
608
|
pageSize: e.pageSize,
|
|
@@ -612,22 +612,22 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
612
612
|
return i && (o.sorts = {
|
|
613
613
|
sortName: i.field,
|
|
614
614
|
sortType: i.order
|
|
615
|
-
}), t && t.forEach((
|
|
616
|
-
const { field:
|
|
617
|
-
o[
|
|
615
|
+
}), t && t.forEach((u) => {
|
|
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);
|
|
621
621
|
Object.assign(l, a), Object.keys(l).forEach((o) => {
|
|
622
|
-
typeof l[o] == "string" && (l[o] =
|
|
622
|
+
typeof l[o] == "string" && (l[o] = Te(l[o]));
|
|
623
623
|
});
|
|
624
624
|
const r = e[0];
|
|
625
625
|
return r && (l.sorts = {
|
|
626
626
|
sortName: r.field,
|
|
627
627
|
sortType: r.order
|
|
628
628
|
}), n && n.forEach((o) => {
|
|
629
|
-
const { field: i, datas:
|
|
630
|
-
l[i] =
|
|
629
|
+
const { field: i, datas: u, values: c } = o;
|
|
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;
|
|
@@ -684,7 +684,7 @@ function Dr(e, n, t) {
|
|
|
684
684
|
}
|
|
685
685
|
function Br(e, n, t) {
|
|
686
686
|
e = pe(e, 255), n = pe(n, 255), t = pe(t, 255);
|
|
687
|
-
var a = Math.max(e, n, t), l = Math.min(e, n, t), r = 0, o = a, i = a - l,
|
|
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;
|
|
690
690
|
else {
|
|
@@ -701,12 +701,12 @@ function Br(e, n, t) {
|
|
|
701
701
|
}
|
|
702
702
|
r /= 6;
|
|
703
703
|
}
|
|
704
|
-
return { h: r, s:
|
|
704
|
+
return { h: r, s: u, v: o };
|
|
705
705
|
}
|
|
706
706
|
function Nr(e, n, t) {
|
|
707
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),
|
|
709
|
-
return { r:
|
|
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
711
|
function Lr(e, n, t, a) {
|
|
712
712
|
var l = [
|
|
@@ -874,7 +874,7 @@ var In = {
|
|
|
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" && (
|
|
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)),
|
|
@@ -929,7 +929,7 @@ function Er(e) {
|
|
|
929
929
|
format: n ? "name" : "hex"
|
|
930
930
|
} : !1)))))))));
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Ae(e) {
|
|
933
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 = [{
|
|
@@ -1008,16 +1008,16 @@ function qt(e) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
t.push(nt(a));
|
|
1010
1010
|
for (var i = 1; i <= cl; i += 1) {
|
|
1011
|
-
var
|
|
1012
|
-
h: Un(
|
|
1013
|
-
s: Fn(
|
|
1014
|
-
v: Hn(
|
|
1011
|
+
var u = En(a), c = nt(Ue({
|
|
1012
|
+
h: Un(u, i),
|
|
1013
|
+
s: Fn(u, i),
|
|
1014
|
+
v: Hn(u, i)
|
|
1015
1015
|
}));
|
|
1016
|
-
t.push(
|
|
1016
|
+
t.push(c);
|
|
1017
1017
|
}
|
|
1018
|
-
return n.theme === "dark" ? Yr.map(function(
|
|
1019
|
-
var f =
|
|
1020
|
-
return
|
|
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
|
+
return _;
|
|
1021
1021
|
}) : t;
|
|
1022
1022
|
}
|
|
1023
1023
|
var Tt = {
|
|
@@ -1043,9 +1043,9 @@ Object.keys(Tt).forEach(function(e) {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
var Gr = rt.blue, Jr = /* @__PURE__ */ Symbol("iconContext"), dl = function() {
|
|
1045
1045
|
return ge(Jr, {
|
|
1046
|
-
prefixCls:
|
|
1047
|
-
rootClassName:
|
|
1048
|
-
csp:
|
|
1046
|
+
prefixCls: M("anticon"),
|
|
1047
|
+
rootClassName: M(""),
|
|
1048
|
+
csp: M()
|
|
1049
1049
|
});
|
|
1050
1050
|
};
|
|
1051
1051
|
function Ut() {
|
|
@@ -1082,8 +1082,8 @@ function ml(e) {
|
|
|
1082
1082
|
var r = Ft(n), o = r.firstChild;
|
|
1083
1083
|
if (a) {
|
|
1084
1084
|
if (a === "queue") {
|
|
1085
|
-
var i = pl(r).filter(function(
|
|
1086
|
-
return ["prepend", "prependQueue"].includes(
|
|
1085
|
+
var i = pl(r).filter(function(u) {
|
|
1086
|
+
return ["prepend", "prependQueue"].includes(u.getAttribute(Yn));
|
|
1087
1087
|
});
|
|
1088
1088
|
if (i.length)
|
|
1089
1089
|
return r.insertBefore(l, i[i.length - 1].nextSibling), l;
|
|
@@ -1276,17 +1276,17 @@ function go() {
|
|
|
1276
1276
|
return ot({}, Ye);
|
|
1277
1277
|
}
|
|
1278
1278
|
var je = function(n, t) {
|
|
1279
|
-
var a = ot({}, n, t.attrs), l = a.icon, r = a.primaryColor, o = a.secondaryColor, i = co(a, uo),
|
|
1280
|
-
if (r && (
|
|
1279
|
+
var a = ot({}, n, t.attrs), l = a.icon, r = a.primaryColor, o = a.secondaryColor, i = co(a, uo), u = Ye;
|
|
1280
|
+
if (r && (u = {
|
|
1281
1281
|
primaryColor: r,
|
|
1282
1282
|
secondaryColor: o || gl(r)
|
|
1283
1283
|
}), lo(Gn(l), "icon should be icon definiton, but got ".concat(l)), !Gn(l))
|
|
1284
1284
|
return null;
|
|
1285
|
-
var
|
|
1286
|
-
return
|
|
1287
|
-
icon:
|
|
1288
|
-
})), Bt(
|
|
1289
|
-
"data-icon":
|
|
1285
|
+
var c = l;
|
|
1286
|
+
return c && typeof c.icon == "function" && (c = ot({}, c, {
|
|
1287
|
+
icon: c.icon(u.primaryColor, u.secondaryColor)
|
|
1288
|
+
})), Bt(c.icon, "svg-".concat(c.name), ot({}, i, {
|
|
1289
|
+
"data-icon": c.name,
|
|
1290
1290
|
width: "1em",
|
|
1291
1291
|
height: "1em",
|
|
1292
1292
|
fill: "currentColor",
|
|
@@ -1331,8 +1331,8 @@ function yo(e, n) {
|
|
|
1331
1331
|
try {
|
|
1332
1332
|
for (t = t.call(e); !(l = (o = t.next()).done) && (a.push(o.value), !(n && a.length === n)); l = !0)
|
|
1333
1333
|
;
|
|
1334
|
-
} catch (
|
|
1335
|
-
r = !0, i =
|
|
1334
|
+
} catch (u) {
|
|
1335
|
+
r = !0, i = u;
|
|
1336
1336
|
} finally {
|
|
1337
1337
|
try {
|
|
1338
1338
|
!l && t.return != null && t.return();
|
|
@@ -1393,8 +1393,8 @@ function ko(e, n) {
|
|
|
1393
1393
|
try {
|
|
1394
1394
|
for (t = t.call(e); !(l = (o = t.next()).done) && (a.push(o.value), !(n && a.length === n)); l = !0)
|
|
1395
1395
|
;
|
|
1396
|
-
} catch (
|
|
1397
|
-
r = !0, i =
|
|
1396
|
+
} catch (u) {
|
|
1397
|
+
r = !0, i = u;
|
|
1398
1398
|
} finally {
|
|
1399
1399
|
try {
|
|
1400
1400
|
!l && t.return != null && t.return();
|
|
@@ -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,
|
|
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
1445
|
h === void 0 && f && (h = -1);
|
|
1446
|
-
var
|
|
1447
|
-
msTransform: "rotate(".concat(
|
|
1448
|
-
transform: "rotate(".concat(
|
|
1449
|
-
} : void 0,
|
|
1450
|
-
return
|
|
1446
|
+
var p = u ? {
|
|
1447
|
+
msTransform: "rotate(".concat(u, "deg)"),
|
|
1448
|
+
transform: "rotate(".concat(u, "deg)")
|
|
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
1454
|
onClick: f,
|
|
1455
|
-
class: [
|
|
1455
|
+
class: [d, r],
|
|
1456
1456
|
tabindex: h
|
|
1457
|
-
}), [
|
|
1457
|
+
}), [q(je, {
|
|
1458
1458
|
icon: o,
|
|
1459
1459
|
primaryColor: v,
|
|
1460
|
-
secondaryColor:
|
|
1461
|
-
style:
|
|
1462
|
-
}, null),
|
|
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,7 +1534,7 @@ 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
|
};
|
|
@@ -1557,7 +1557,7 @@ function No(e, n, t) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
var Gt = function(n, t) {
|
|
1559
1559
|
var a = ta({}, n, t.attrs);
|
|
1560
|
-
return
|
|
1560
|
+
return q(J, ta({}, a, {
|
|
1561
1561
|
icon: Bo
|
|
1562
1562
|
}), null);
|
|
1563
1563
|
};
|
|
@@ -1580,7 +1580,7 @@ function Io(e, n, t) {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
var Jt = function(n, t) {
|
|
1582
1582
|
var a = na({}, n, t.attrs);
|
|
1583
|
-
return
|
|
1583
|
+
return q(J, na({}, a, {
|
|
1584
1584
|
icon: Lo
|
|
1585
1585
|
}), null);
|
|
1586
1586
|
};
|
|
@@ -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,7 +2155,7 @@ 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
|
};
|
|
@@ -2182,7 +2182,7 @@ const Bi = (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 Bi = (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 : ""
|
|
@@ -2259,184 +2259,184 @@ const Bi = (e) => {
|
|
|
2259
2259
|
});
|
|
2260
2260
|
};
|
|
2261
2261
|
function Ii(e) {
|
|
2262
|
-
const { gridRef: n, targetModal: t, modalList: a, gridOptions: l, pageOptions: r, formData: o, pageModal: i } = e,
|
|
2262
|
+
const { gridRef: n, targetModal: t, modalList: a, gridOptions: l, pageOptions: r, formData: o, pageModal: i } = e, u = async (g) => {
|
|
2263
2263
|
if (!s(g.requestType) || typeof g.requestType == "string")
|
|
2264
2264
|
if (g.requestType === "custom") {
|
|
2265
|
-
const
|
|
2266
|
-
if (g.requestRow && !s(
|
|
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: g, data:
|
|
2268
|
+
r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, item: g, data: d });
|
|
2269
2269
|
} else
|
|
2270
|
-
|
|
2270
|
+
y(o, g);
|
|
2271
2271
|
else {
|
|
2272
|
-
const
|
|
2273
|
-
if (g.requestRow && !s(
|
|
2272
|
+
const d = await C(g);
|
|
2273
|
+
if (g.requestRow && !s(d))
|
|
2274
2274
|
return;
|
|
2275
|
-
g.requestType({ gridRef: n, gridOptions: l, formData: o, item: g, data:
|
|
2275
|
+
g.requestType({ gridRef: n, gridOptions: l, formData: o, item: g, data: d });
|
|
2276
2276
|
}
|
|
2277
|
-
},
|
|
2278
|
-
!s(g.requestType) || typeof g.requestType == "string" ? g.requestType === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, item: g, row:
|
|
2279
|
-
},
|
|
2280
|
-
const h =
|
|
2281
|
-
!s(h) || typeof h == "string" ? h === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, column:
|
|
2282
|
-
}, f = (g,
|
|
2283
|
-
if (s(
|
|
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
2284
|
const h = {};
|
|
2285
|
-
if (h.instanceValue = g[
|
|
2286
|
-
g[A.buttonKeyName] =
|
|
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
|
-
h.componentUrl =
|
|
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
2293
|
h.componentParams = g, h.visible = !0;
|
|
2294
|
-
const
|
|
2295
|
-
if (s(
|
|
2296
|
-
if (a.value[
|
|
2294
|
+
const p = a.value.findIndex((O) => O.instanceId === h.instanceId);
|
|
2295
|
+
if (s(p) && p >= 0)
|
|
2296
|
+
if (a.value[p].visible) {
|
|
2297
2297
|
Se("已经打开该数据弹窗信息");
|
|
2298
2298
|
return;
|
|
2299
2299
|
} else
|
|
2300
|
-
a.value[
|
|
2300
|
+
a.value[p] = h;
|
|
2301
2301
|
else
|
|
2302
2302
|
a.value.push(h);
|
|
2303
2303
|
} else {
|
|
2304
|
-
if (t.title =
|
|
2305
|
-
g[A.buttonKeyName] =
|
|
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
2307
|
let h = ne(r.ctxPath, t.componentUrl);
|
|
2308
|
-
for (const
|
|
2309
|
-
h = h.replace("{" +
|
|
2308
|
+
for (const p in g)
|
|
2309
|
+
h = h.replace("{" + p + "}", g[p]);
|
|
2310
2310
|
t.componentUrl = h;
|
|
2311
2311
|
}
|
|
2312
2312
|
t.componentParams = g, t.visible = !0;
|
|
2313
2313
|
}
|
|
2314
|
-
},
|
|
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 v = Li(
|
|
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(
|
|
2339
|
+
if (d.requestType === Fe)
|
|
2340
|
+
if (s(d.instanceField)) {
|
|
2341
2341
|
const v = {};
|
|
2342
|
-
v.title =
|
|
2343
|
-
const
|
|
2344
|
-
if (
|
|
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
|
-
v.instanceId = Be +
|
|
2355
|
+
v.instanceId = Be + B, v.componentParams[A.buttonKeyName] = d;
|
|
2356
2356
|
v.visible = !0;
|
|
2357
|
-
const
|
|
2358
|
-
if (s(
|
|
2359
|
-
if (a.value[
|
|
2357
|
+
const D = a.value.findIndex((R) => R.instanceId === v.instanceId);
|
|
2358
|
+
if (s(D) && D >= 0)
|
|
2359
|
+
if (a.value[D].visible) {
|
|
2360
2360
|
Se("已经打开该数据弹窗信息");
|
|
2361
2361
|
return;
|
|
2362
2362
|
} else
|
|
2363
|
-
a.value[
|
|
2363
|
+
a.value[D] = v;
|
|
2364
2364
|
else
|
|
2365
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
2372
|
const v = {};
|
|
2373
|
-
v[A.buttonKeyName] =
|
|
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
|
-
},
|
|
2407
|
+
}, _ = (g, d) => {
|
|
2408
2408
|
if (g.requestType === Fe || g.requestType === lt) {
|
|
2409
2409
|
let h = g.requestUrl;
|
|
2410
|
-
const
|
|
2411
|
-
let
|
|
2412
|
-
if (
|
|
2413
|
-
|
|
2410
|
+
const p = E(g.componentVue, i.componentVue);
|
|
2411
|
+
let O = !1;
|
|
2412
|
+
if (p)
|
|
2413
|
+
O = !0;
|
|
2414
2414
|
else if (h = ne(r.ctxPath, h), h.split("?").length > 1)
|
|
2415
|
-
for (const
|
|
2416
|
-
if (h.indexOf("{" +
|
|
2415
|
+
for (const b in d) {
|
|
2416
|
+
if (h.indexOf("{" + b + "}") > -1 && (O = !0, d[b] === "")) {
|
|
2417
2417
|
Se("该单据没有相应数据,无法进行本次操作");
|
|
2418
2418
|
return;
|
|
2419
2419
|
}
|
|
2420
|
-
h = h.replace("{" +
|
|
2420
|
+
h = h.replace("{" + b + "}", d[b]);
|
|
2421
2421
|
}
|
|
2422
2422
|
else
|
|
2423
|
-
|
|
2424
|
-
if (
|
|
2423
|
+
O = !0;
|
|
2424
|
+
if (O)
|
|
2425
2425
|
if (g.requestType === Fe)
|
|
2426
|
-
if (
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
const v = a.value.findIndex((
|
|
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
2430
|
if (s(v) && v >= 0)
|
|
2431
2431
|
if (a.value[v].visible) {
|
|
2432
2432
|
Se("已经打开该数据弹窗信息");
|
|
2433
2433
|
return;
|
|
2434
2434
|
} else
|
|
2435
|
-
a.value[v] =
|
|
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
2441
|
window.open(h, "_blank");
|
|
2442
2442
|
else {
|
|
@@ -2448,28 +2448,28 @@ function Ii(e) {
|
|
|
2448
2448
|
g.requestTitle,
|
|
2449
2449
|
() => {
|
|
2450
2450
|
let h = ne(r.ctxPath, g.requestUrl);
|
|
2451
|
-
for (const
|
|
2452
|
-
h = h.replace("{" +
|
|
2453
|
-
Aa(n, l, h,
|
|
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
|
-
},
|
|
2457
|
+
}, C = async (g) => {
|
|
2458
2458
|
if (g.requestRow) {
|
|
2459
|
-
const
|
|
2459
|
+
const d = await Sl(n, l);
|
|
2460
2460
|
let h = null;
|
|
2461
|
-
if (l.checkboxConfig ? !
|
|
2461
|
+
if (l.checkboxConfig ? !d || d.length === 0 ? h = "请至少选择一行数据" : g.requestRadio && d.length !== 1 && (h = "请只选择一条数据") : l.radioConfig ? d || (h = "请选择一行数据") : h = "请设置表格【rowType】类型参数", h) {
|
|
2462
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
|
-
clickFormButton:
|
|
2471
|
-
clickTableButton:
|
|
2472
|
-
clickHerf:
|
|
2470
|
+
clickFormButton: u,
|
|
2471
|
+
clickTableButton: c,
|
|
2472
|
+
clickHerf: m
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
function Ri(e) {
|
|
@@ -2481,28 +2481,28 @@ function Ri(e) {
|
|
|
2481
2481
|
loadData: r,
|
|
2482
2482
|
templateItemRefs: o,
|
|
2483
2483
|
doMergeCells: i,
|
|
2484
|
-
pageOptions:
|
|
2485
|
-
pageTable:
|
|
2486
|
-
pageTableMerge:
|
|
2484
|
+
pageOptions: u,
|
|
2485
|
+
pageTable: c,
|
|
2486
|
+
pageTableMerge: m,
|
|
2487
2487
|
pageRequest: f
|
|
2488
2488
|
} = e;
|
|
2489
2489
|
return {
|
|
2490
2490
|
downloadEvent: (g) => {
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2491
|
+
const d = n.value;
|
|
2492
|
+
d && d.validate().then((h) => {
|
|
2493
2493
|
if (!h || h.length === 0) {
|
|
2494
|
-
let
|
|
2495
|
-
if (s(
|
|
2494
|
+
let p = f.requestDownload;
|
|
2495
|
+
if (s(p)) {
|
|
2496
2496
|
if (l.loading) {
|
|
2497
2497
|
Se("正在导出中,请不要重复点击!");
|
|
2498
2498
|
return;
|
|
2499
2499
|
}
|
|
2500
|
-
if (
|
|
2500
|
+
if (m.isMerge && typeof p != "object") {
|
|
2501
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: v, form:
|
|
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 (
|
|
2533
|
+
if (H.recordCount >= 25e3) {
|
|
2534
2534
|
l.loading = !1, Se("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2535
2535
|
return;
|
|
2536
2536
|
}
|
|
2537
2537
|
setTimeout(() => {
|
|
2538
2538
|
if (g && typeof g == "function") {
|
|
2539
|
-
const
|
|
2540
|
-
filename:
|
|
2541
|
-
sheetName:
|
|
2542
|
-
data:
|
|
2543
|
-
columns: s(l.params.exportColumns) ? l.params.exportColumns :
|
|
2544
|
-
mergeCells: i(
|
|
2539
|
+
const W = {
|
|
2540
|
+
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2541
|
+
sheetName: u.templateTitle,
|
|
2542
|
+
data: H.rows,
|
|
2543
|
+
columns: s(l.params.exportColumns) ? l.params.exportColumns : p,
|
|
2544
|
+
mergeCells: i(H.rows)
|
|
2545
2545
|
};
|
|
2546
|
-
g(
|
|
2546
|
+
g(W), l.loading = !1;
|
|
2547
2547
|
} else {
|
|
2548
|
-
const
|
|
2549
|
-
filename:
|
|
2550
|
-
sheetName:
|
|
2548
|
+
const W = H.rows.concat([]), Oe = {
|
|
2549
|
+
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
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:
|
|
2557
|
-
columnFilterMethod(
|
|
2558
|
-
return !A.templateTable.ignoreExportColumnsTitle.includes(
|
|
2555
|
+
isFooter: m.isFooter,
|
|
2556
|
+
isMerge: m.isMerge,
|
|
2557
|
+
columnFilterMethod(G) {
|
|
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
|
}
|
|
@@ -2572,26 +2572,26 @@ function Ri(e) {
|
|
|
2572
2572
|
},
|
|
2573
2573
|
importEvent: () => {
|
|
2574
2574
|
top && top.openOtherPages ? top.openOtherPages(
|
|
2575
|
-
"VIEW_QUERY_" +
|
|
2576
|
-
ne(
|
|
2577
|
-
|
|
2575
|
+
"VIEW_QUERY_" + u.templateTitle,
|
|
2576
|
+
ne(u.ctxPath, f.requestImport),
|
|
2577
|
+
u.templateTitle + "导入",
|
|
2578
2578
|
!1,
|
|
2579
2579
|
!1
|
|
2580
|
-
) : window.open(ne(
|
|
2580
|
+
) : window.open(ne(u.ctxPath, f.requestImport), "_blank");
|
|
2581
2581
|
},
|
|
2582
|
-
switchColumsEvent: (g,
|
|
2583
|
-
if (s(
|
|
2584
|
-
const h =
|
|
2585
|
-
if (
|
|
2586
|
-
const
|
|
2587
|
-
s(
|
|
2582
|
+
switchColumsEvent: (g, d = !1) => {
|
|
2583
|
+
if (s(c.tableColumnsExtra)) {
|
|
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
|
});
|
|
2593
2593
|
} else
|
|
2594
|
-
l.params.switchType = "2", l.columns =
|
|
2594
|
+
l.params.switchType = "2", l.columns = c.tableColumns;
|
|
2595
2595
|
dt(() => {
|
|
2596
2596
|
l.height = l.params.switchType === "2" ? l.height + 1 : l.height - 1;
|
|
2597
2597
|
});
|
|
@@ -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(),
|
|
2610
|
-
n.icon === "excel" ? (x(),
|
|
2611
|
-
n.icon === "download" ? (x(),
|
|
2612
|
-
n.icon === "save" ? (x(),
|
|
2613
|
-
n.icon === "edit" ? (x(),
|
|
2614
|
-
n.icon === "delete" ? (x(),
|
|
2615
|
-
n.icon === "down" ? (x(),
|
|
2616
|
-
n.icon === "up" ? (x(),
|
|
2617
|
-
n.icon === "undo" ? (x(),
|
|
2618
|
-
n.icon === "redo" ? (x(),
|
|
2619
|
-
n.icon === "copy" ? (x(),
|
|
2620
|
-
n.icon === "print" ? (x(),
|
|
2621
|
-
n.icon === "plus" ? (x(),
|
|
2622
|
-
n.icon === "minus" ? (x(),
|
|
2623
|
-
n.icon === "info" ? (x(),
|
|
2624
|
-
n.icon === "audit" ? (x(),
|
|
2625
|
-
n.icon === "schedule" ? (x(),
|
|
2626
|
-
n.icon === "close" ? (x(),
|
|
2627
|
-
n.icon === "stop" ? (x(),
|
|
2628
|
-
n.icon === "check" ? (x(),
|
|
2629
|
-
n.icon === "setting" ? (x(),
|
|
2630
|
-
n.icon === "menu" ? (x(),
|
|
2631
|
-
n.icon === "pdf" ? (x(),
|
|
2632
|
-
n.icon === "push" ? (x(),
|
|
2633
|
-
n.icon === "upload" ? (x(),
|
|
2634
|
-
n.icon === "search" ? (x(),
|
|
2635
|
-
n.icon === "sync" ? (x(),
|
|
2636
|
-
n.icon === "link" ? (x(),
|
|
2637
|
-
!n.icon || n.icon === "" ? (x(),
|
|
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
|
});
|
|
@@ -2645,7 +2645,7 @@ var it = { exports: {} }, Ei = it.exports, Ta;
|
|
|
2645
2645
|
function Ui() {
|
|
2646
2646
|
return Ta || (Ta = 1, (function(e, n) {
|
|
2647
2647
|
(function(t, a) {
|
|
2648
|
-
e.exports = a(
|
|
2648
|
+
e.exports = a(T);
|
|
2649
2649
|
})(Ei, (function(t) {
|
|
2650
2650
|
function a(o) {
|
|
2651
2651
|
return o && typeof o == "object" && "default" in o ? o : { default: o };
|
|
@@ -2653,8 +2653,8 @@ function Ui() {
|
|
|
2653
2653
|
var l = a(t), r = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(o, i) {
|
|
2654
2654
|
return i === "W" ? o + "周" : o + "日";
|
|
2655
2655
|
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(o, i) {
|
|
2656
|
-
var
|
|
2657
|
-
return
|
|
2656
|
+
var u = 100 * o + i;
|
|
2657
|
+
return u < 600 ? "凌晨" : u < 900 ? "早上" : u < 1100 ? "上午" : u < 1300 ? "中午" : u < 1800 ? "下午" : "晚上";
|
|
2658
2658
|
} };
|
|
2659
2659
|
return l.default.locale(r, null, !0), r;
|
|
2660
2660
|
}));
|
|
@@ -2742,45 +2742,45 @@ function Zi() {
|
|
|
2742
2742
|
return function(t, a, l) {
|
|
2743
2743
|
var r = a.prototype, o = function(f) {
|
|
2744
2744
|
return f && (f.indexOf ? f : f.s);
|
|
2745
|
-
}, i = function(f,
|
|
2746
|
-
var
|
|
2747
|
-
return v.slice(0,
|
|
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 (!g) return
|
|
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
|
-
},
|
|
2757
|
-
return f.formats[
|
|
2758
|
-
return
|
|
2759
|
-
return g ||
|
|
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
|
-
})(f.formats[
|
|
2762
|
-
},
|
|
2761
|
+
})(f.formats[y.toUpperCase()]);
|
|
2762
|
+
}, m = function() {
|
|
2763
2763
|
var f = this;
|
|
2764
|
-
return { months: function(
|
|
2765
|
-
return
|
|
2766
|
-
}, monthsShort: function(
|
|
2767
|
-
return
|
|
2764
|
+
return { months: function(y) {
|
|
2765
|
+
return y ? y.format("MMMM") : i(f, "months");
|
|
2766
|
+
}, monthsShort: function(y) {
|
|
2767
|
+
return y ? y.format("MMM") : i(f, "monthsShort", "months", 3);
|
|
2768
2768
|
}, firstDayOfWeek: function() {
|
|
2769
2769
|
return f.$locale().weekStart || 0;
|
|
2770
|
-
}, weekdays: function(
|
|
2771
|
-
return
|
|
2772
|
-
}, weekdaysMin: function(
|
|
2773
|
-
return
|
|
2774
|
-
}, weekdaysShort: function(
|
|
2775
|
-
return
|
|
2776
|
-
}, longDateFormat: function(
|
|
2777
|
-
return
|
|
2770
|
+
}, weekdays: function(y) {
|
|
2771
|
+
return y ? y.format("dddd") : i(f, "weekdays");
|
|
2772
|
+
}, weekdaysMin: function(y) {
|
|
2773
|
+
return y ? y.format("dd") : i(f, "weekdaysMin", "weekdays", 2);
|
|
2774
|
+
}, weekdaysShort: function(y) {
|
|
2775
|
+
return y ? y.format("ddd") : i(f, "weekdaysShort", "weekdays", 3);
|
|
2776
|
+
}, longDateFormat: function(y) {
|
|
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 f =
|
|
2783
|
+
var f = u();
|
|
2784
2784
|
return { firstDayOfWeek: function() {
|
|
2785
2785
|
return f.weekStart || 0;
|
|
2786
2786
|
}, weekdays: function() {
|
|
@@ -2793,26 +2793,26 @@ function Zi() {
|
|
|
2793
2793
|
return l.months();
|
|
2794
2794
|
}, monthsShort: function() {
|
|
2795
2795
|
return l.monthsShort();
|
|
2796
|
-
}, longDateFormat: function(
|
|
2797
|
-
return
|
|
2796
|
+
}, longDateFormat: function(y) {
|
|
2797
|
+
return c(f, y);
|
|
2798
2798
|
}, meridiem: f.meridiem, ordinal: f.ordinal };
|
|
2799
2799
|
}, l.months = function() {
|
|
2800
|
-
return i(
|
|
2800
|
+
return i(u(), "months");
|
|
2801
2801
|
}, l.monthsShort = function() {
|
|
2802
|
-
return i(
|
|
2802
|
+
return i(u(), "monthsShort", "months", 3);
|
|
2803
2803
|
}, l.weekdays = function(f) {
|
|
2804
|
-
return i(
|
|
2804
|
+
return i(u(), "weekdays", null, null, f);
|
|
2805
2805
|
}, l.weekdaysShort = function(f) {
|
|
2806
|
-
return i(
|
|
2806
|
+
return i(u(), "weekdaysShort", "weekdays", 3, f);
|
|
2807
2807
|
}, l.weekdaysMin = function(f) {
|
|
2808
|
-
return i(
|
|
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", 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),
|
|
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,
|
|
@@ -2836,65 +2836,65 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2836
2836
|
},
|
|
2837
2837
|
emits: ["update:value"],
|
|
2838
2838
|
setup(e, { expose: n, emit: t }) {
|
|
2839
|
-
|
|
2840
|
-
const a = e, l =
|
|
2841
|
-
let
|
|
2842
|
-
const
|
|
2843
|
-
{ label: "当天", value: [
|
|
2844
|
-
{ label: "近7天", value: [
|
|
2845
|
-
{ label: "近两周", value: [
|
|
2846
|
-
{ label: "近一个月", value: [
|
|
2847
|
-
{ label: "近三个月", value: [
|
|
2848
|
-
{ label: "近六个月", value: [
|
|
2849
|
-
{ label: "近一年", value: [
|
|
2850
|
-
{ label: "近三年", value: [
|
|
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 = ge(ve), u = qe(i?.size);
|
|
2841
|
+
let c = M();
|
|
2842
|
+
const m = [
|
|
2843
|
+
{ label: "当天", value: [T().add(0, r)] },
|
|
2844
|
+
{ label: "近7天", value: [T().add(-7, r)] },
|
|
2845
|
+
{ label: "近两周", value: [T().add(-14, r)] },
|
|
2846
|
+
{ label: "近一个月", value: [T().add(-30, r)] },
|
|
2847
|
+
{ label: "近三个月", value: [T().add(-90, r)] },
|
|
2848
|
+
{ label: "近六个月", value: [T().add(-180, r)] },
|
|
2849
|
+
{ label: "近一年", value: [T().add(-365, r)] },
|
|
2850
|
+
{ label: "近三年", value: [T().add(-1095, r)] }
|
|
2851
2851
|
], f = [
|
|
2852
|
-
{ label: "本月", value: [
|
|
2853
|
-
{ label: "近一个月", value: [
|
|
2854
|
-
{ label: "近三个月", value: [
|
|
2855
|
-
{ label: "近六个月", value: [
|
|
2856
|
-
{ label: "近一年", value: [
|
|
2857
|
-
{ label: "近两年", value: [
|
|
2858
|
-
{ label: "近三年", value: [
|
|
2859
|
-
],
|
|
2860
|
-
{ label: "本年", value: [
|
|
2861
|
-
{ label: "近一年", value: [
|
|
2862
|
-
{ label: "近两年", value: [
|
|
2863
|
-
{ label: "近三年", value: [
|
|
2864
|
-
{ label: "近五年", value: [
|
|
2865
|
-
],
|
|
2866
|
-
le("日期区间选值", v), v && v[0] == "" && v[1] == "" ?
|
|
2867
|
-
},
|
|
2868
|
-
let
|
|
2869
|
-
return
|
|
2870
|
-
}, h = (
|
|
2871
|
-
const v =
|
|
2872
|
-
typeof v == "number" || typeof
|
|
2873
|
-
s(v) ?
|
|
2874
|
-
s(
|
|
2875
|
-
] :
|
|
2876
|
-
},
|
|
2852
|
+
{ label: "本月", value: [T().add(0, r)] },
|
|
2853
|
+
{ label: "近一个月", value: [T().add(-1, r)] },
|
|
2854
|
+
{ label: "近三个月", value: [T().add(-3, r)] },
|
|
2855
|
+
{ label: "近六个月", value: [T().add(-5, r)] },
|
|
2856
|
+
{ label: "近一年", value: [T().add(-12, r)] },
|
|
2857
|
+
{ label: "近两年", value: [T().add(-24, r)] },
|
|
2858
|
+
{ label: "近三年", value: [T().add(-36, r)] }
|
|
2859
|
+
], y = [
|
|
2860
|
+
{ label: "本年", value: [T().add(0, r)] },
|
|
2861
|
+
{ label: "近一年", value: [T().add(-1, r)] },
|
|
2862
|
+
{ label: "近两年", value: [T().add(-2, r)] },
|
|
2863
|
+
{ label: "近三年", value: [T().add(-3, r)] },
|
|
2864
|
+
{ label: "近五年", value: [T().add(-5, r)] }
|
|
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
2877
|
s(a.defaultValue) ? h([a.defaultValue, null]) : h(null);
|
|
2878
|
-
},
|
|
2878
|
+
}, O = () => "dateRange";
|
|
2879
2879
|
return oe(() => {
|
|
2880
|
-
|
|
2880
|
+
p();
|
|
2881
2881
|
}), n({
|
|
2882
2882
|
setValue: h,
|
|
2883
|
-
getValue:
|
|
2884
|
-
resetValue:
|
|
2885
|
-
getRefType:
|
|
2886
|
-
}), (
|
|
2887
|
-
const
|
|
2888
|
-
return x(),
|
|
2889
|
-
value: S(
|
|
2890
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
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
2891
|
onChange: g,
|
|
2892
|
-
presets:
|
|
2892
|
+
presets: _.value,
|
|
2893
2893
|
locale: S(Ge),
|
|
2894
2894
|
allowEmpty: [!0, !0],
|
|
2895
2895
|
format: S(o),
|
|
2896
2896
|
picker: S(l),
|
|
2897
|
-
size: S(
|
|
2897
|
+
size: S(u),
|
|
2898
2898
|
style: { width: "100%" }
|
|
2899
2899
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2900
2900
|
};
|
|
@@ -2914,31 +2914,31 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2914
2914
|
},
|
|
2915
2915
|
emits: ["update:value"],
|
|
2916
2916
|
setup(e, { expose: n, emit: t }) {
|
|
2917
|
-
|
|
2918
|
-
const a = e, l = ge(ve), r = qe(l?.size), o =
|
|
2919
|
-
let
|
|
2920
|
-
const
|
|
2921
|
-
le("日期选值", g), !g || g == "" ?
|
|
2917
|
+
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
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
|
+
let c = M();
|
|
2920
|
+
const m = (C, g) => {
|
|
2921
|
+
le("日期选值", g), !g || g == "" ? u("update:value", null) : u("update:value", g);
|
|
2922
2922
|
}, f = () => {
|
|
2923
|
-
let
|
|
2924
|
-
return
|
|
2925
|
-
},
|
|
2926
|
-
typeof
|
|
2927
|
-
},
|
|
2928
|
-
s(a.defaultValue) ?
|
|
2923
|
+
let C = null;
|
|
2924
|
+
return c.value && (C = T(c.value).format(i)), C || null;
|
|
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", f());
|
|
2927
|
+
}, _ = () => {
|
|
2928
|
+
s(a.defaultValue) ? y(a.defaultValue) : y(null);
|
|
2929
2929
|
};
|
|
2930
2930
|
return oe(() => {
|
|
2931
|
-
|
|
2931
|
+
_();
|
|
2932
2932
|
}), n({
|
|
2933
|
-
setValue:
|
|
2933
|
+
setValue: y,
|
|
2934
2934
|
getValue: f,
|
|
2935
|
-
resetValue:
|
|
2936
|
-
}), (
|
|
2937
|
-
const
|
|
2938
|
-
return x(),
|
|
2939
|
-
value: S(
|
|
2940
|
-
"onUpdate:value": g[0] || (g[0] = (h) => gt(
|
|
2941
|
-
onChange:
|
|
2935
|
+
resetValue: _
|
|
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
2942
|
locale: S(Ge),
|
|
2943
2943
|
format: S(i),
|
|
2944
2944
|
picker: S(o),
|
|
@@ -2962,28 +2962,28 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2962
2962
|
},
|
|
2963
2963
|
emits: ["update:value"],
|
|
2964
2964
|
setup(e, { expose: n, emit: t }) {
|
|
2965
|
-
const a = e, l = ge(ve), r = qe(l?.size), o =
|
|
2966
|
-
|
|
2965
|
+
const a = e, l = ge(ve), r = qe(l?.size), o = M(null), i = E(a.placeholder, "请输入" + a.title), u = t, c = () => {
|
|
2966
|
+
u("update:value", o.value);
|
|
2967
2967
|
};
|
|
2968
2968
|
return n({
|
|
2969
2969
|
getValue: () => o.value,
|
|
2970
|
-
setValue: (
|
|
2971
|
-
o.value =
|
|
2970
|
+
setValue: (_) => {
|
|
2971
|
+
o.value = _, u("update:value", o.value);
|
|
2972
2972
|
},
|
|
2973
2973
|
resetValue: () => {
|
|
2974
|
-
o.value = a.defaultValue || "",
|
|
2974
|
+
o.value = a.defaultValue || "", u("update:value", o.value);
|
|
2975
2975
|
}
|
|
2976
2976
|
}), oe(() => {
|
|
2977
|
-
|
|
2978
|
-
}), (
|
|
2979
|
-
const g =
|
|
2980
|
-
return x(),
|
|
2977
|
+
u("update:value", o.value);
|
|
2978
|
+
}), (_, C) => {
|
|
2979
|
+
const g = F("a-input");
|
|
2980
|
+
return x(), z(g, {
|
|
2981
2981
|
value: o.value,
|
|
2982
|
-
"onUpdate:value":
|
|
2982
|
+
"onUpdate:value": C[0] || (C[0] = (d) => o.value = d),
|
|
2983
2983
|
placeholder: S(i),
|
|
2984
2984
|
disabled: a.disabled,
|
|
2985
2985
|
type: a.inputType,
|
|
2986
|
-
onChange:
|
|
2986
|
+
onChange: c,
|
|
2987
2987
|
size: S(r),
|
|
2988
2988
|
style: { width: "100%" }
|
|
2989
2989
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
@@ -3005,42 +3005,42 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3005
3005
|
},
|
|
3006
3006
|
emits: ["update:value"],
|
|
3007
3007
|
setup(e, { expose: n, emit: t }) {
|
|
3008
|
-
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "",
|
|
3009
|
-
let
|
|
3010
|
-
return !
|
|
3011
|
-
},
|
|
3012
|
-
|
|
3013
|
-
}, g = () =>
|
|
3014
|
-
|
|
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
3017
|
getValue: g,
|
|
3018
|
-
setValue:
|
|
3018
|
+
setValue: d,
|
|
3019
3019
|
resetValue: () => {
|
|
3020
|
-
a.multiple ?
|
|
3020
|
+
a.multiple ? d(a.defaultValue || []) : d(a.defaultValue || null);
|
|
3021
3021
|
}
|
|
3022
3022
|
}), oe(() => {
|
|
3023
|
-
|
|
3024
|
-
f.value =
|
|
3023
|
+
m("update:value", c.value), y().then((p) => {
|
|
3024
|
+
f.value = p;
|
|
3025
3025
|
});
|
|
3026
|
-
}), (
|
|
3027
|
-
const
|
|
3028
|
-
return x(),
|
|
3029
|
-
|
|
3030
|
-
value:
|
|
3031
|
-
"onUpdate:value":
|
|
3032
|
-
onChange:
|
|
3026
|
+
}), (p, O) => {
|
|
3027
|
+
const b = F("a-select");
|
|
3028
|
+
return x(), Y("div", rs, [
|
|
3029
|
+
q(b, {
|
|
3030
|
+
value: c.value,
|
|
3031
|
+
"onUpdate:value": O[0] || (O[0] = (v) => c.value = v),
|
|
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
3037
|
options: f.value,
|
|
3038
3038
|
"show-search": a.filterable,
|
|
3039
|
-
"filter-option":
|
|
3039
|
+
"filter-option": _,
|
|
3040
3040
|
defaultActiveFirstOption: !a.multiple,
|
|
3041
3041
|
autoClearSearchValue: !a.filterable,
|
|
3042
3042
|
disabled: a.disabled,
|
|
3043
|
-
size: S(
|
|
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", ve = "CONST
|
|
|
3065
3065
|
},
|
|
3066
3066
|
emits: ["update:value"],
|
|
3067
3067
|
setup(e, { expose: n, emit: t }) {
|
|
3068
|
-
const a = e, l = ge(ve), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索",
|
|
3069
|
-
if (
|
|
3070
|
-
|
|
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
|
+
y.value = !0;
|
|
3071
3071
|
const v = {
|
|
3072
|
-
searchValue:
|
|
3073
|
-
},
|
|
3072
|
+
searchValue: Te(b)
|
|
3073
|
+
}, B = await Re(ne(r, a.requestUrl), {
|
|
3074
3074
|
...a.requestParams,
|
|
3075
3075
|
...v
|
|
3076
3076
|
});
|
|
3077
|
-
return
|
|
3077
|
+
return y.value = !1, B;
|
|
3078
3078
|
} else
|
|
3079
3079
|
return [];
|
|
3080
|
-
},
|
|
3081
|
-
|
|
3082
|
-
|
|
3080
|
+
}, C = Lt((b) => {
|
|
3081
|
+
_(b).then((v) => {
|
|
3082
|
+
m.value = v;
|
|
3083
3083
|
});
|
|
3084
|
-
}, 500), g = (
|
|
3085
|
-
|
|
3086
|
-
},
|
|
3087
|
-
|
|
3088
|
-
let
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
}), f("update:value",
|
|
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:
|
|
3094
|
+
getName: d,
|
|
3095
3095
|
getValue: h,
|
|
3096
|
-
setValue:
|
|
3096
|
+
setValue: p,
|
|
3097
3097
|
resetValue: () => {
|
|
3098
|
-
|
|
3098
|
+
p(a.defaultValue, a.defaultName);
|
|
3099
3099
|
}
|
|
3100
|
-
}), (
|
|
3101
|
-
const
|
|
3102
|
-
return x(),
|
|
3103
|
-
D
|
|
3104
|
-
value:
|
|
3105
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
3100
|
+
}), (b, v) => {
|
|
3101
|
+
const B = F("a-spin"), D = F("a-select");
|
|
3102
|
+
return x(), Y("div", is, [
|
|
3103
|
+
q(D, {
|
|
3104
|
+
value: u.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:
|
|
3109
|
+
options: m.value,
|
|
3110
3110
|
size: S(o),
|
|
3111
3111
|
"default-active-first-option": !1,
|
|
3112
3112
|
"show-arrow": !1,
|
|
3113
3113
|
onChange: g,
|
|
3114
|
-
onSearch: S(
|
|
3114
|
+
onSearch: S(C),
|
|
3115
3115
|
"allow-clear": "",
|
|
3116
3116
|
"show-search": "",
|
|
3117
3117
|
style: { width: "100%" }
|
|
3118
|
-
},
|
|
3119
|
-
|
|
3118
|
+
}, xe({ _: 2 }, [
|
|
3119
|
+
y.value ? {
|
|
3120
3120
|
name: "notFoundContent",
|
|
3121
3121
|
fn: L(() => [
|
|
3122
|
-
|
|
3122
|
+
q(B, { size: "small" })
|
|
3123
3123
|
]),
|
|
3124
3124
|
key: "0"
|
|
3125
3125
|
} : void 0
|
|
@@ -3146,40 +3146,40 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3146
3146
|
},
|
|
3147
3147
|
emits: ["update:value"],
|
|
3148
3148
|
setup(e, { expose: n, emit: t }) {
|
|
3149
|
-
const a = e, l = ge(ve), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索",
|
|
3150
|
-
|
|
3151
|
-
},
|
|
3152
|
-
|
|
3153
|
-
let v = f.value.filter((
|
|
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
|
-
v.forEach((
|
|
3157
|
-
|
|
3158
|
-
}),
|
|
3155
|
+
let B = "";
|
|
3156
|
+
v.forEach((D) => {
|
|
3157
|
+
B += D.label + ",";
|
|
3158
|
+
}), c.value = B;
|
|
3159
3159
|
} else
|
|
3160
|
-
v.length === 1 && (
|
|
3160
|
+
v.length === 1 && (c.value = v[0].label);
|
|
3161
3161
|
};
|
|
3162
3162
|
return n({
|
|
3163
|
-
getName:
|
|
3163
|
+
getName: d,
|
|
3164
3164
|
getValue: h,
|
|
3165
|
-
setValue:
|
|
3165
|
+
setValue: p,
|
|
3166
3166
|
resetValue: () => {
|
|
3167
|
-
a.multiple ?
|
|
3167
|
+
a.multiple ? p(a.defaultValue || []) : p(a.defaultValue || null);
|
|
3168
3168
|
}
|
|
3169
|
-
}),
|
|
3170
|
-
f.value =
|
|
3171
|
-
}), (
|
|
3172
|
-
const
|
|
3173
|
-
return x(),
|
|
3174
|
-
|
|
3175
|
-
value:
|
|
3176
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
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
|
+
value: u.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
|
-
"filter-option":
|
|
3182
|
-
options:
|
|
3181
|
+
"filter-option": _,
|
|
3182
|
+
options: m.value,
|
|
3183
3183
|
size: S(o),
|
|
3184
3184
|
onChange: g,
|
|
3185
3185
|
"allow-clear": "",
|
|
@@ -3212,41 +3212,41 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3212
3212
|
},
|
|
3213
3213
|
emits: ["update:value", "change"],
|
|
3214
3214
|
setup(e, { expose: n, emit: t }) {
|
|
3215
|
-
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = qe(l?.size),
|
|
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
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
|
-
|
|
3223
|
-
},
|
|
3224
|
-
s(
|
|
3225
|
-
},
|
|
3226
|
-
f.value = v,
|
|
3227
|
-
},
|
|
3228
|
-
f.value = null,
|
|
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
3230
|
return oe(() => {
|
|
3231
|
-
|
|
3231
|
+
_();
|
|
3232
3232
|
}), n({
|
|
3233
3233
|
getName: h,
|
|
3234
|
-
getValue:
|
|
3235
|
-
setValue:
|
|
3236
|
-
resetValue:
|
|
3237
|
-
}), (v,
|
|
3238
|
-
const
|
|
3239
|
-
return x(),
|
|
3240
|
-
D
|
|
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
3241
|
value: f.value,
|
|
3242
|
-
"onUpdate:value":
|
|
3243
|
-
options:
|
|
3242
|
+
"onUpdate:value": B[0] || (B[0] = (R) => f.value = R),
|
|
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
|
-
placeholder:
|
|
3249
|
+
placeholder: u,
|
|
3250
3250
|
size: S(i),
|
|
3251
3251
|
onChange: g,
|
|
3252
3252
|
style: { width: "100%" }
|
|
@@ -3261,7 +3261,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "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":
|
|
3321
|
+
Ul((I) => ({
|
|
3322
|
+
"761c0466": d.value,
|
|
3323
3323
|
"1ad0f4ad": h.value,
|
|
3324
|
-
dfcbabf2: 500 +
|
|
3324
|
+
dfcbabf2: 500 + p()
|
|
3325
3325
|
}));
|
|
3326
3326
|
const t = ee({
|
|
3327
3327
|
instanceId: "",
|
|
@@ -3340,80 +3340,80 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3340
3340
|
mountainTop: A.targetModal.mountainTop
|
|
3341
3341
|
});
|
|
3342
3342
|
Object.assign(t, Xa());
|
|
3343
|
-
const a =
|
|
3343
|
+
const a = M(!0);
|
|
3344
3344
|
window.__sagUbmpPcModalMinimizedStack || (window.__sagUbmpPcModalMinimizedStack = ee({
|
|
3345
3345
|
count: [],
|
|
3346
3346
|
positions: {}
|
|
3347
3347
|
}));
|
|
3348
|
-
const l = window.__sagUbmpPcModalMinimizedStack, r =
|
|
3349
|
-
a.value = !0,
|
|
3350
|
-
},
|
|
3351
|
-
|
|
3352
|
-
},
|
|
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
|
-
height: t.maximize ?
|
|
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 (
|
|
3366
|
+
if (H === -1) {
|
|
3367
3367
|
Se("最多同时隐藏5个窗口");
|
|
3368
3368
|
return;
|
|
3369
3369
|
}
|
|
3370
|
-
l.positions[t.instanceId] =
|
|
3370
|
+
l.positions[t.instanceId] = H;
|
|
3371
3371
|
}
|
|
3372
|
-
|
|
3373
|
-
},
|
|
3374
|
-
|
|
3375
|
-
const
|
|
3376
|
-
let
|
|
3377
|
-
|
|
3372
|
+
C.value = !0, a.value = !1, t.visible = !1;
|
|
3373
|
+
}, b = () => {
|
|
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
3378
|
}, v = () => {
|
|
3379
|
-
let
|
|
3380
|
-
|
|
3381
|
-
},
|
|
3382
|
-
console.log("iframe加载完毕",
|
|
3383
|
-
console.log("iframe关闭触发",
|
|
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
3386
|
return oe(() => {
|
|
3387
|
-
le("SagVxeDialog弹出参数", t), t.maximize && (
|
|
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
3400
|
K("span", bs, ae(t.title + (S(s)(t.instanceValue) ? "【" + t.instanceValue + "】" : "")), 1),
|
|
3401
|
-
|
|
3401
|
+
q(W, {
|
|
3402
3402
|
mode: "text",
|
|
3403
3403
|
icon: "vxe-icon-square",
|
|
3404
3404
|
size: "small"
|
|
3405
3405
|
}, {
|
|
3406
|
-
default: L(() =>
|
|
3406
|
+
default: L(() => H[0] || (H[0] = [
|
|
3407
3407
|
ue("还原")
|
|
3408
3408
|
])),
|
|
3409
3409
|
_: 1
|
|
3410
3410
|
})
|
|
3411
3411
|
], 512), [
|
|
3412
|
-
[$t,
|
|
3412
|
+
[$t, C.value]
|
|
3413
3413
|
]),
|
|
3414
|
-
|
|
3414
|
+
q(Oe, {
|
|
3415
3415
|
ref_key: "gridModal",
|
|
3416
|
-
ref:
|
|
3416
|
+
ref: _,
|
|
3417
3417
|
open: t.visible,
|
|
3418
3418
|
"get-container": o,
|
|
3419
3419
|
width: g.width,
|
|
@@ -3434,14 +3434,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3434
3434
|
title: L(() => [
|
|
3435
3435
|
K("span", ys, ae(t.title), 1),
|
|
3436
3436
|
K("span", Ss, [
|
|
3437
|
-
S(s)(t.instanceId) && t.componentVue ? (x(),
|
|
3437
|
+
S(s)(t.instanceId) && t.componentVue ? (x(), z(W, {
|
|
3438
3438
|
key: 0,
|
|
3439
3439
|
mode: "text",
|
|
3440
3440
|
icon: g.minIcon,
|
|
3441
|
-
onClick:
|
|
3441
|
+
onClick: O,
|
|
3442
3442
|
title: "缩小"
|
|
3443
|
-
}, null, 8, ["icon"])) :
|
|
3444
|
-
|
|
3443
|
+
}, null, 8, ["icon"])) : j("", !0),
|
|
3444
|
+
q(W, {
|
|
3445
3445
|
mode: "text",
|
|
3446
3446
|
icon: g.maxZoomIcon,
|
|
3447
3447
|
onClick: v,
|
|
@@ -3450,17 +3450,17 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3450
3450
|
])
|
|
3451
3451
|
]),
|
|
3452
3452
|
default: L(() => [
|
|
3453
|
-
t.componentVue ? (x(),
|
|
3453
|
+
t.componentVue ? (x(), z(Hl(i.value), te({ key: 0 }, t.componentParams, {
|
|
3454
3454
|
onCancel: f,
|
|
3455
|
-
onSubmit:
|
|
3456
|
-
}), null, 16)) :
|
|
3457
|
-
t.componentVue ?
|
|
3455
|
+
onSubmit: y
|
|
3456
|
+
}), null, 16)) : j("", !0),
|
|
3457
|
+
t.componentVue ? j("", !0) : (x(), Y("iframe", {
|
|
3458
3458
|
key: 1,
|
|
3459
3459
|
ref_key: "iframeRef",
|
|
3460
|
-
ref:
|
|
3461
|
-
id:
|
|
3462
|
-
src: S(
|
|
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,27 +3482,27 @@ 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 = ge(ve), r =
|
|
3486
|
-
|
|
3487
|
-
},
|
|
3488
|
-
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
|
+
r.value = y, i("update:value", r.value);
|
|
3489
3489
|
};
|
|
3490
3490
|
return n({
|
|
3491
|
-
getValue:
|
|
3492
|
-
setValue:
|
|
3491
|
+
getValue: c,
|
|
3492
|
+
setValue: m,
|
|
3493
3493
|
resetValue: () => {
|
|
3494
|
-
|
|
3494
|
+
m(a.defaultValue || null);
|
|
3495
3495
|
}
|
|
3496
3496
|
}), oe(() => {
|
|
3497
|
-
i("update:value",
|
|
3498
|
-
}), (
|
|
3499
|
-
const
|
|
3500
|
-
return x(),
|
|
3497
|
+
i("update:value", c());
|
|
3498
|
+
}), (y, _) => {
|
|
3499
|
+
const C = F("vxe-input", !0);
|
|
3500
|
+
return x(), z(C, {
|
|
3501
3501
|
"model-value": r.value,
|
|
3502
3502
|
placeholder: S(o),
|
|
3503
3503
|
disabled: a.disabled,
|
|
3504
3504
|
size: S(l)?.size,
|
|
3505
|
-
onChange:
|
|
3505
|
+
onChange: u,
|
|
3506
3506
|
style: { width: "100%" }
|
|
3507
3507
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
3508
3508
|
};
|
|
@@ -3527,44 +3527,44 @@ 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 = ge(ve), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "",
|
|
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,
|
|
3534
3534
|
disabled: a.disabled,
|
|
3535
3535
|
transfer: a.transfer,
|
|
3536
|
-
placeholder: a.filterable ?
|
|
3536
|
+
placeholder: a.filterable ? u : "",
|
|
3537
3537
|
options: [],
|
|
3538
|
-
filterMethod({ searchValue:
|
|
3539
|
-
return v.label.toLowerCase().indexOf(
|
|
3538
|
+
filterMethod({ searchValue: b, option: v }) {
|
|
3539
|
+
return v.label.toLowerCase().indexOf(Te(b).toLowerCase()) >= 0;
|
|
3540
3540
|
}
|
|
3541
|
-
}),
|
|
3542
|
-
let
|
|
3543
|
-
return !
|
|
3544
|
-
}, g = ({ value:
|
|
3545
|
-
|
|
3546
|
-
},
|
|
3547
|
-
|
|
3548
|
-
let v = f.value.filter((
|
|
3549
|
-
v.length === 1 && (
|
|
3541
|
+
}), C = async () => {
|
|
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:
|
|
3552
|
+
getName: d,
|
|
3553
3553
|
getValue: h,
|
|
3554
|
-
setValue:
|
|
3554
|
+
setValue: p,
|
|
3555
3555
|
resetValue: () => {
|
|
3556
|
-
|
|
3556
|
+
p(a.defaultValue);
|
|
3557
3557
|
}
|
|
3558
3558
|
}), oe(() => {
|
|
3559
|
-
|
|
3560
|
-
!a.multiple && a.selectAll && (
|
|
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(),
|
|
3565
|
-
modelValue:
|
|
3566
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
3567
|
-
},
|
|
3562
|
+
}), (b, v) => {
|
|
3563
|
+
const B = F("vxe-select", !0);
|
|
3564
|
+
return x(), z(B, te({
|
|
3565
|
+
modelValue: c.value,
|
|
3566
|
+
"onUpdate:modelValue": v[0] || (v[0] = (D) => c.value = D)
|
|
3567
|
+
}, _, {
|
|
3568
3568
|
size: S(l)?.size,
|
|
3569
3569
|
onChange: g,
|
|
3570
3570
|
style: { width: "100%" }
|
|
@@ -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 = ge(ve), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i =
|
|
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,46 +3600,46 @@ 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
|
-
f.options =
|
|
3603
|
+
async queryMethod({ searchValue: p }) {
|
|
3604
|
+
const O = await y(p);
|
|
3605
|
+
f.options = O, c.value = O;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
|
-
}),
|
|
3609
|
-
if (
|
|
3610
|
-
const
|
|
3611
|
-
searchValue:
|
|
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
|
-
},
|
|
3620
|
-
|
|
3621
|
-
},
|
|
3622
|
-
i.value =
|
|
3623
|
-
let
|
|
3624
|
-
|
|
3625
|
-
|
|
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
|
-
getName:
|
|
3629
|
+
getName: C,
|
|
3630
3630
|
getValue: g,
|
|
3631
|
-
setValue:
|
|
3631
|
+
setValue: d,
|
|
3632
3632
|
resetValue: () => {
|
|
3633
|
-
|
|
3633
|
+
d(a.defaultValue);
|
|
3634
3634
|
}
|
|
3635
|
-
}), (
|
|
3636
|
-
const
|
|
3637
|
-
return x(),
|
|
3635
|
+
}), (p, O) => {
|
|
3636
|
+
const b = F("vxe-select");
|
|
3637
|
+
return x(), z(b, te({
|
|
3638
3638
|
modelValue: i.value,
|
|
3639
|
-
"onUpdate:modelValue":
|
|
3639
|
+
"onUpdate:modelValue": O[0] || (O[0] = (v) => i.value = v)
|
|
3640
3640
|
}, f, {
|
|
3641
3641
|
size: S(l)?.size,
|
|
3642
|
-
onChange:
|
|
3642
|
+
onChange: _,
|
|
3643
3643
|
style: { width: "100%" }
|
|
3644
3644
|
}), null, 16, ["modelValue", "size"]);
|
|
3645
3645
|
};
|
|
@@ -3663,42 +3663,42 @@ 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 = ge(ve), r = l?.ctxPath || "", o = "请输入" + a.title + "搜索", i =
|
|
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
|
-
}),
|
|
3677
|
-
|
|
3678
|
-
},
|
|
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
|
-
getName:
|
|
3684
|
+
getName: C,
|
|
3685
3685
|
getValue: g,
|
|
3686
|
-
setValue:
|
|
3686
|
+
setValue: d,
|
|
3687
3687
|
resetValue: () => {
|
|
3688
|
-
|
|
3688
|
+
d(a.defaultValue);
|
|
3689
3689
|
}
|
|
3690
3690
|
}), oe(() => {
|
|
3691
|
-
|
|
3692
|
-
|
|
3691
|
+
y().then((p) => {
|
|
3692
|
+
c.value = p, f.options = p;
|
|
3693
3693
|
});
|
|
3694
|
-
}), (
|
|
3695
|
-
const
|
|
3696
|
-
return x(),
|
|
3694
|
+
}), (p, O) => {
|
|
3695
|
+
const b = F("vxe-select");
|
|
3696
|
+
return x(), z(b, te({
|
|
3697
3697
|
modelValue: i.value,
|
|
3698
|
-
"onUpdate:modelValue":
|
|
3698
|
+
"onUpdate:modelValue": O[0] || (O[0] = (v) => i.value = v)
|
|
3699
3699
|
}, f, {
|
|
3700
3700
|
size: S(l)?.size,
|
|
3701
|
-
onChange:
|
|
3701
|
+
onChange: _,
|
|
3702
3702
|
style: { width: "100%" }
|
|
3703
3703
|
}), null, 16, ["modelValue", "size"]);
|
|
3704
3704
|
};
|
|
@@ -3715,35 +3715,35 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3715
3715
|
return;
|
|
3716
3716
|
}
|
|
3717
3717
|
const o = new at.ExcelJS.Workbook(), i = o.addWorksheet(r.sheetName);
|
|
3718
|
-
let
|
|
3719
|
-
if (r.columns.forEach((
|
|
3720
|
-
A.templateTable.ignoreExportColumnsTitle.includes(
|
|
3721
|
-
key:
|
|
3722
|
-
header:
|
|
3723
|
-
width: s(
|
|
3718
|
+
let u = [], c = 0;
|
|
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 =
|
|
3726
|
-
|
|
3727
|
-
s(
|
|
3728
|
-
`) ?
|
|
3729
|
-
`),
|
|
3725
|
+
}), i.columns = u, i.addRows(r.data), i.eachRow(function(m, f) {
|
|
3726
|
+
m.eachCell({ includeEmpty: !0 }, function(y, _) {
|
|
3727
|
+
s(y.value) && (y.value.toString().includes(`
|
|
3728
|
+
`) ? y.alignment = { wrapText: !0 } : y.value.toString().includes("\\n") && (y.value = y.value.toString().replaceAll("\\n", `
|
|
3729
|
+
`), y.alignment = { wrapText: !0 }));
|
|
3730
3730
|
});
|
|
3731
3731
|
}), s(r.mergeCells)) {
|
|
3732
|
-
let
|
|
3732
|
+
let m = {};
|
|
3733
3733
|
r.mergeCells.forEach((f) => {
|
|
3734
|
-
let
|
|
3735
|
-
const
|
|
3736
|
-
if (s(
|
|
3737
|
-
let
|
|
3738
|
-
const g = "'" +
|
|
3734
|
+
let y = f.col - c;
|
|
3735
|
+
const _ = l[y];
|
|
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
3739
|
i.mergeCells(g);
|
|
3740
3740
|
}
|
|
3741
3741
|
});
|
|
3742
3742
|
}
|
|
3743
|
-
o.xlsx.writeBuffer().then((
|
|
3744
|
-
let f = new Blob([
|
|
3743
|
+
o.xlsx.writeBuffer().then((m) => {
|
|
3744
|
+
let f = new Blob([m], { type: "application/octet-stream" });
|
|
3745
3745
|
at.FileSaver.saveAs(f, r.filename + ".xlsx");
|
|
3746
|
-
}).catch((
|
|
3746
|
+
}).catch((m) => le("Error writing excel export", m));
|
|
3747
3747
|
} catch (o) {
|
|
3748
3748
|
vt("下载失败", o);
|
|
3749
3749
|
}
|
|
@@ -3803,11 +3803,11 @@ 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 =
|
|
3807
|
-
return x(),
|
|
3806
|
+
const i = F("vxe-button");
|
|
3807
|
+
return x(), z(i, {
|
|
3808
3808
|
size: "small",
|
|
3809
3809
|
circle: !0,
|
|
3810
|
-
onClick: o[0] || (o[0] = (
|
|
3810
|
+
onClick: o[0] || (o[0] = (u) => a()),
|
|
3811
3811
|
title: "导出"
|
|
3812
3812
|
}, {
|
|
3813
3813
|
default: L(() => o[1] || (o[1] = [
|
|
@@ -3835,150 +3835,150 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3835
3835
|
height: A.targetModal.height,
|
|
3836
3836
|
maskClosable: A.targetModal.maskClosable,
|
|
3837
3837
|
mountainTop: A.targetModal.mountainTop
|
|
3838
|
-
}), l =
|
|
3839
|
-
application:
|
|
3840
|
-
ctxPath:
|
|
3841
|
-
size:
|
|
3842
|
-
requestDictUrl:
|
|
3843
|
-
templateType:
|
|
3844
|
-
templateTitle:
|
|
3845
|
-
onMountedModule:
|
|
3838
|
+
}), l = M([]), r = Xa(), o = ee({
|
|
3839
|
+
application: V.toString(r.application, A.application),
|
|
3840
|
+
ctxPath: V.toString(r.ctxPath, A.ctxPath),
|
|
3841
|
+
size: V.toString(r.size, A.size),
|
|
3842
|
+
requestDictUrl: V.toString(r.requestDictUrl, A.requestDictUrl),
|
|
3843
|
+
templateType: V.toString(r.templateType, null),
|
|
3844
|
+
templateTitle: V.toString(r.templateTitle, null),
|
|
3845
|
+
onMountedModule: V.toString(r.onMountedModule, null),
|
|
3846
3846
|
//页面加载时触发
|
|
3847
|
-
onLoadBeforeModule:
|
|
3847
|
+
onLoadBeforeModule: V.toString(r.onLoadBeforeModule, null),
|
|
3848
3848
|
//查询前触发
|
|
3849
|
-
onLoadAfterModule:
|
|
3849
|
+
onLoadAfterModule: V.toString(r.onLoadAfterModule, null),
|
|
3850
3850
|
//查询后触发
|
|
3851
|
-
onButtonClickModule:
|
|
3851
|
+
onButtonClickModule: V.toString(r.onButtonClickModule, null)
|
|
3852
3852
|
//按钮自定义事件
|
|
3853
3853
|
}), i = ee({
|
|
3854
|
-
requestData:
|
|
3855
|
-
requestDownload:
|
|
3856
|
-
requestImport:
|
|
3854
|
+
requestData: V.toString(r?.templateRequest?.requestData, null),
|
|
3855
|
+
requestDownload: V.toString(r?.templateRequest?.requestDownload, null),
|
|
3856
|
+
requestImport: V.toString(r?.templateRequest?.requestImport, null)
|
|
3857
|
+
}), u = ee({
|
|
3858
|
+
title: V.toString(r?.targetModal?.title, A.targetModal.title),
|
|
3859
|
+
width: V.toString(r?.targetModal?.width, A.targetModal.width),
|
|
3860
|
+
height: V.toString(r?.targetModal?.height, A.targetModal.height),
|
|
3861
|
+
mountainTop: V.toString(r?.targetModal?.mountainTop, A.targetModal.mountainTop),
|
|
3862
|
+
componentVue: V.toString(r?.targetModal?.componentVue, A.targetModal.componentVue),
|
|
3863
|
+
maskClosable: V.toString(r?.targetModal?.maskClosable, A.targetModal.maskClosable)
|
|
3857
3864
|
}), c = ee({
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
height: $.toString(r?.targetModal?.height, A.targetModal.height),
|
|
3861
|
-
mountainTop: $.toString(r?.targetModal?.mountainTop, A.targetModal.mountainTop),
|
|
3862
|
-
componentVue: $.toString(r?.targetModal?.componentVue, A.targetModal.componentVue),
|
|
3863
|
-
maskClosable: $.toString(r?.targetModal?.maskClosable, A.targetModal.maskClosable)
|
|
3864
|
-
}), d = ee({
|
|
3865
|
-
vxeSlot: $.toString(r?.templateForm?.vxeSlot, A.templateForm.vxeSlot),
|
|
3866
|
-
storage: $.toString(r?.templateForm?.storage, A.templateForm.storage),
|
|
3865
|
+
vxeSlot: V.toString(r?.templateForm?.vxeSlot, A.templateForm.vxeSlot),
|
|
3866
|
+
storage: V.toString(r?.templateForm?.storage, A.templateForm.storage),
|
|
3867
3867
|
formProps: {
|
|
3868
|
-
vertical:
|
|
3868
|
+
vertical: V.toString(
|
|
3869
3869
|
r?.templateForm?.formProps?.vertical,
|
|
3870
3870
|
A.templateForm.formProps.vertical
|
|
3871
3871
|
),
|
|
3872
|
-
titleColon:
|
|
3872
|
+
titleColon: V.toString(
|
|
3873
3873
|
r?.templateForm?.formProps?.titleColon,
|
|
3874
3874
|
A.templateForm.formProps.titleColon
|
|
3875
3875
|
),
|
|
3876
|
-
titleWidth:
|
|
3876
|
+
titleWidth: V.toString(
|
|
3877
3877
|
r?.templateForm?.formProps?.titleWidth,
|
|
3878
3878
|
A.templateForm.formProps.titleWidth
|
|
3879
3879
|
),
|
|
3880
|
-
titleAlign:
|
|
3880
|
+
titleAlign: V.toString(
|
|
3881
3881
|
r?.templateForm?.formProps?.titleAlign,
|
|
3882
3882
|
A.templateForm.formProps.titleAlign
|
|
3883
3883
|
),
|
|
3884
|
-
buttonAlign:
|
|
3884
|
+
buttonAlign: V.toString(
|
|
3885
3885
|
r?.templateForm?.formProps?.buttonAlign,
|
|
3886
3886
|
A.templateForm.formProps.buttonAlign
|
|
3887
3887
|
),
|
|
3888
|
-
foldingLength:
|
|
3888
|
+
foldingLength: V.toString(
|
|
3889
3889
|
r?.templateForm?.formProps?.foldingLength,
|
|
3890
3890
|
A.templateForm.formProps.foldingLength
|
|
3891
3891
|
)
|
|
3892
3892
|
},
|
|
3893
|
-
formItems:
|
|
3894
|
-
formRules:
|
|
3895
|
-
}),
|
|
3896
|
-
rowType:
|
|
3897
|
-
editConfig:
|
|
3898
|
-
showFooter:
|
|
3899
|
-
showButtonLink:
|
|
3900
|
-
showOverflow:
|
|
3893
|
+
formItems: V.toString(r?.templateForm?.formItems, []),
|
|
3894
|
+
formRules: V.toString(r?.templateForm?.formRules, {})
|
|
3895
|
+
}), m = ee({
|
|
3896
|
+
rowType: V.toString(r?.templateTable?.rowType, null),
|
|
3897
|
+
editConfig: V.toString(r?.templateTable?.editConfig, !1),
|
|
3898
|
+
showFooter: V.toString(r?.templateTable?.showFooter, !1),
|
|
3899
|
+
showButtonLink: V.toString(r?.templateTable?.showButtonLink, A.templateTable.showButtonLink),
|
|
3900
|
+
showOverflow: V.toString(r?.templateTable?.showOverflow, A.templateTable.showOverflow),
|
|
3901
3901
|
tableColumns: r?.templateTable?.tableColumns,
|
|
3902
|
-
tableColumnsExtra:
|
|
3903
|
-
clientScale:
|
|
3904
|
-
minHeight:
|
|
3905
|
-
maxHeight:
|
|
3906
|
-
pageSizes:
|
|
3907
|
-
layouts:
|
|
3908
|
-
footerMethod:
|
|
3902
|
+
tableColumnsExtra: V.toString(r?.templateTable?.tableColumnsExtra, null),
|
|
3903
|
+
clientScale: V.toString(r?.templateTable?.clientScale, A.templateTable.clientScale),
|
|
3904
|
+
minHeight: V.toString(r?.templateTable?.minHeight, A.templateTable.minHeight),
|
|
3905
|
+
maxHeight: V.toString(r?.templateTable?.maxHeight, A.templateTable.maxHeight),
|
|
3906
|
+
pageSizes: V.toString(r?.templateTable?.pageSizes, []),
|
|
3907
|
+
layouts: V.toString(r?.templateTable?.layouts, null),
|
|
3908
|
+
footerMethod: V.toString(r?.templateTable?.footerMethod, null)
|
|
3909
3909
|
}), f = ee({
|
|
3910
|
-
mergeKey:
|
|
3911
|
-
seqKey:
|
|
3912
|
-
isMerge:
|
|
3913
|
-
isFooter:
|
|
3914
|
-
fields:
|
|
3915
|
-
backgroundColor:
|
|
3910
|
+
mergeKey: V.toString(r?.templateTable?.tableColumnMerge?.mergeKey, null),
|
|
3911
|
+
seqKey: V.toString(r?.templateTable?.tableColumnMerge?.seqKey, null),
|
|
3912
|
+
isMerge: V.toString(r?.templateTable?.tableColumnMerge?.isMerge, !1),
|
|
3913
|
+
isFooter: V.toString(r?.templateTable?.tableColumnMerge?.isFooter, !1),
|
|
3914
|
+
fields: V.toString(r?.templateTable?.tableColumnMerge?.fields, []),
|
|
3915
|
+
backgroundColor: V.toString(
|
|
3916
3916
|
r?.templateTable?.tableColumnMerge?.backgroundColor,
|
|
3917
3917
|
A?.templateTable?.tableColumnMerge?.backgroundColor
|
|
3918
3918
|
)
|
|
3919
|
-
}),
|
|
3920
|
-
formButtons:
|
|
3921
|
-
tableButtons:
|
|
3922
|
-
tableMoreButtons:
|
|
3923
|
-
}),
|
|
3924
|
-
className:
|
|
3919
|
+
}), y = ee({
|
|
3920
|
+
formButtons: V.toString(r?.templateTable?.tableButtons?.formButtons, []),
|
|
3921
|
+
tableButtons: V.toString(r?.templateTable?.tableButtons?.tableButtons, []),
|
|
3922
|
+
tableMoreButtons: V.toString(r?.templateTable?.tableButtons?.tableMoreButtons, [])
|
|
3923
|
+
}), _ = ee({
|
|
3924
|
+
className: V.toString(
|
|
3925
3925
|
r?.templateTable?.toolbarConfig?.className,
|
|
3926
3926
|
A.templateTable.toolbarConfig.className
|
|
3927
3927
|
),
|
|
3928
|
-
perfect:
|
|
3928
|
+
perfect: V.toString(
|
|
3929
3929
|
r?.templateTable?.toolbarConfig?.perfect,
|
|
3930
3930
|
A.templateTable.toolbarConfig.perfect
|
|
3931
3931
|
),
|
|
3932
|
-
print:
|
|
3932
|
+
print: V.toString(
|
|
3933
3933
|
r?.templateTable?.toolbarConfig?.print,
|
|
3934
3934
|
A.templateTable.toolbarConfig.print
|
|
3935
3935
|
),
|
|
3936
|
-
refresh:
|
|
3936
|
+
refresh: V.toString(
|
|
3937
3937
|
r?.templateTable?.toolbarConfig?.refresh,
|
|
3938
3938
|
A.templateTable.toolbarConfig.refresh
|
|
3939
3939
|
),
|
|
3940
|
-
custom:
|
|
3940
|
+
custom: V.toString(
|
|
3941
3941
|
r?.templateTable?.toolbarConfig?.custom,
|
|
3942
3942
|
A.templateTable.toolbarConfig.custom
|
|
3943
3943
|
),
|
|
3944
|
-
zoom:
|
|
3944
|
+
zoom: V.toString(r?.templateTable?.toolbarConfig?.zoom, A.templateTable.toolbarConfig.zoom),
|
|
3945
3945
|
slots: {
|
|
3946
|
-
buttons:
|
|
3946
|
+
buttons: V.toString(
|
|
3947
3947
|
r?.templateTable?.toolbarConfig?.slots?.buttons,
|
|
3948
3948
|
A.templateTable.toolbarConfig.slots.buttons
|
|
3949
3949
|
),
|
|
3950
|
-
tools:
|
|
3950
|
+
tools: V.toString(
|
|
3951
3951
|
r?.templateTable?.toolbarConfig?.slots?.tools,
|
|
3952
3952
|
A.templateTable.toolbarConfig.slots.tools
|
|
3953
3953
|
)
|
|
3954
3954
|
}
|
|
3955
|
-
}),
|
|
3956
|
-
pageSizePlacement:
|
|
3957
|
-
}), g = A.application + "_" + o.templateType,
|
|
3958
|
-
qn(ve, o), qn(Xi, () => document.getElementById(S(
|
|
3959
|
-
const h = Object.keys(Le()),
|
|
3960
|
-
|
|
3955
|
+
}), C = ee({
|
|
3956
|
+
pageSizePlacement: V.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
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
|
+
we.value[w] = P;
|
|
3961
3961
|
}, De = async () => {
|
|
3962
3962
|
const P = v.value;
|
|
3963
|
-
if (!
|
|
3964
|
-
const
|
|
3965
|
-
|
|
3963
|
+
if (!D.value && P) {
|
|
3964
|
+
const w = Je.value;
|
|
3965
|
+
w ? w.validate().then((N) => {
|
|
3966
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
|
-
Nn(
|
|
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: {},
|
|
@@ -3993,9 +3993,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3993
3993
|
//覆盖全局方能生效
|
|
3994
3994
|
printConfig: {},
|
|
3995
3995
|
//覆盖全局方能生效
|
|
3996
|
-
pagerConfig:
|
|
3996
|
+
pagerConfig: C,
|
|
3997
3997
|
//覆盖全局方能生效
|
|
3998
|
-
toolbarConfig:
|
|
3998
|
+
toolbarConfig: _,
|
|
3999
3999
|
proxyConfig: {
|
|
4000
4000
|
enabled: !0,
|
|
4001
4001
|
//是否启用
|
|
@@ -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:
|
|
4018
|
-
if (
|
|
4019
|
-
const
|
|
4020
|
-
Dn(o.application, o.templateType,
|
|
4017
|
+
const { page: w, sorts: N, filters: U, form: X } = P, de = jt(w, N, U, X, G, we);
|
|
4018
|
+
if (c.storage) {
|
|
4019
|
+
const Pe = Vr(N, U, X, G);
|
|
4020
|
+
Dn(o.application, o.templateType, Pe);
|
|
4021
4021
|
}
|
|
4022
4022
|
return xn(de, i.requestData, !1);
|
|
4023
4023
|
},
|
|
4024
4024
|
querySuccess: (P) => {
|
|
4025
|
-
const { page:
|
|
4026
|
-
f?.isMerge && (Z.mergeCells = kn(
|
|
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:
|
|
4031
|
-
}), wt =
|
|
4030
|
+
footerMethod: m.footerMethod
|
|
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,
|
|
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
|
-
|
|
4039
|
+
D.value = !0, o.onLoadBeforeModule && o.onLoadBeforeModule({
|
|
4040
4040
|
$gridRef: v.value,
|
|
4041
4041
|
gridOptions: Z,
|
|
4042
4042
|
queryParams: P,
|
|
4043
4043
|
exportFlag: N
|
|
4044
4044
|
});
|
|
4045
|
-
const
|
|
4046
|
-
ne(o.ctxPath,
|
|
4045
|
+
const U = await We(
|
|
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 (!N &&
|
|
4056
|
-
return
|
|
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
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
|
|
4067
|
-
if (
|
|
4066
|
+
const w = f?.mergeKey;
|
|
4067
|
+
if (w) {
|
|
4068
4068
|
const N = v.value;
|
|
4069
4069
|
if (N) {
|
|
4070
|
-
const
|
|
4071
|
-
for (let X in
|
|
4072
|
-
P.row[
|
|
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
|
|
4080
|
-
if (
|
|
4079
|
+
const w = f?.mergeKey;
|
|
4080
|
+
if (w) {
|
|
4081
4081
|
const N = v.value;
|
|
4082
4082
|
if (N) {
|
|
4083
|
-
const
|
|
4084
|
-
for (let X in
|
|
4085
|
-
if (P.row[
|
|
4086
|
-
N.setRadioRow(
|
|
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,11 +4094,11 @@ 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
|
|
4098
|
-
if (N &&
|
|
4099
|
-
let
|
|
4097
|
+
const w = f?.seqKey, N = f?.mergeKey;
|
|
4098
|
+
if (N && w) {
|
|
4099
|
+
let U = [""], X = 0 + P.pageSize * (P.pageNo - 1);
|
|
4100
4100
|
for (let de in P.rows)
|
|
4101
|
-
|
|
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
4104
|
$gridRef: v.value,
|
|
@@ -4106,45 +4106,45 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4106
4106
|
data: P
|
|
4107
4107
|
}) : P;
|
|
4108
4108
|
}, kn = (P) => {
|
|
4109
|
-
const
|
|
4110
|
-
if (
|
|
4109
|
+
const w = f?.mergeKey;
|
|
4110
|
+
if (w && f.isMerge) {
|
|
4111
4111
|
const N = v.value;
|
|
4112
|
-
let
|
|
4113
|
-
for (let
|
|
4114
|
-
const ie = P[
|
|
4115
|
-
let
|
|
4116
|
-
s(de[ie[
|
|
4112
|
+
let U = [], X = {}, de = {};
|
|
4113
|
+
for (let _e = 0; _e < P.length; _e++) {
|
|
4114
|
+
const ie = P[_e], Ne = P[_e - 1];
|
|
4115
|
+
let ke = P[_e + 1];
|
|
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
|
|
4119
|
-
for (let
|
|
4120
|
-
let ie = N?.getColumnByField(
|
|
4121
|
-
for (let
|
|
4122
|
-
|
|
4123
|
-
{ row: de[
|
|
4118
|
+
let Pe = f?.fields;
|
|
4119
|
+
for (let _e in Pe) {
|
|
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
|
|
4132
|
-
|
|
4131
|
+
const w = v.value;
|
|
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
|
|
4139
|
-
if (P?.[
|
|
4138
|
+
const w = f?.mergeKey;
|
|
4139
|
+
if (P?.[w] === Z.params.currentRow?.[w])
|
|
4140
4140
|
return {
|
|
4141
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
|
-
const
|
|
4147
|
-
|
|
4146
|
+
const w = P.getElementsByTagName("form");
|
|
4147
|
+
w && w.length > 0 && (w[0].submit = () => (a.visible = !1, De(), !1));
|
|
4148
4148
|
}
|
|
4149
4149
|
}, { clickFormButton: zl, clickTableButton: Qe, clickHerf: Tn } = Ii({
|
|
4150
4150
|
gridRef: v,
|
|
@@ -4152,82 +4152,82 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4152
4152
|
modalList: l,
|
|
4153
4153
|
gridOptions: Z,
|
|
4154
4154
|
pageOptions: o,
|
|
4155
|
-
formData:
|
|
4156
|
-
pageModal:
|
|
4155
|
+
formData: G,
|
|
4156
|
+
pageModal: u
|
|
4157
4157
|
}), { downloadEvent: Mn, importEvent: jl, switchColumsEvent: Vn } = Ri({
|
|
4158
4158
|
formRef: Je,
|
|
4159
|
-
formData:
|
|
4159
|
+
formData: G,
|
|
4160
4160
|
gridRef: v,
|
|
4161
4161
|
gridOptions: Z,
|
|
4162
4162
|
loadData: xn,
|
|
4163
4163
|
pageOptions: o,
|
|
4164
|
-
templateItemRefs:
|
|
4164
|
+
templateItemRefs: we,
|
|
4165
4165
|
doMergeCells: kn,
|
|
4166
|
-
pageTable:
|
|
4166
|
+
pageTable: m,
|
|
4167
4167
|
pageTableMerge: f,
|
|
4168
4168
|
pageRequest: i
|
|
4169
4169
|
}), ql = async () => {
|
|
4170
|
-
if (s(
|
|
4171
|
-
const
|
|
4172
|
-
Object.keys(
|
|
4173
|
-
|
|
4170
|
+
if (s(c.formItems)) {
|
|
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
|
-
{ span: 24, align: "right", children:
|
|
4175
|
+
{ span: 24, align: "right", children: w },
|
|
4176
4176
|
{
|
|
4177
4177
|
span: 24,
|
|
4178
|
-
align:
|
|
4179
|
-
collapseNode:
|
|
4178
|
+
align: c.formProps.buttonAlign,
|
|
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
|
|
4186
|
-
Object.keys(
|
|
4187
|
-
const N =
|
|
4188
|
-
N && Object.keys(N).forEach((
|
|
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(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))),
|
|
4197
|
-
}, Dl = (P,
|
|
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
4198
|
oe(async () => {
|
|
4199
|
-
if (le("加载页面模板", o), await ql(),
|
|
4199
|
+
if (le("加载页面模板", o), await ql(), c.storage) {
|
|
4200
4200
|
const P = nr(o.application, o.templateType);
|
|
4201
4201
|
if (s(P)) {
|
|
4202
|
-
let
|
|
4203
|
-
Me.arrayEach(
|
|
4204
|
-
|
|
4202
|
+
let w = [];
|
|
4203
|
+
Me.arrayEach(c.formItems, (U, X) => {
|
|
4204
|
+
w.push(U.field);
|
|
4205
4205
|
});
|
|
4206
4206
|
let N = [];
|
|
4207
|
-
Me.objectEach(P, (
|
|
4207
|
+
Me.objectEach(P, (U, X) => {
|
|
4208
4208
|
N.push(X);
|
|
4209
|
-
}), Me.includeArrays(
|
|
4209
|
+
}), Me.includeArrays(w, N) ? jn(P) : await Ke(c.formItems, we, G);
|
|
4210
4210
|
} else
|
|
4211
|
-
await Ke(
|
|
4211
|
+
await Ke(c.formItems, we, G);
|
|
4212
4212
|
} else
|
|
4213
|
-
await Ke(
|
|
4213
|
+
await Ke(c.formItems, we, G);
|
|
4214
4214
|
o.onMountedModule && await o.onMountedModule({
|
|
4215
4215
|
$formRef: Je.value,
|
|
4216
4216
|
$gridRef: v.value,
|
|
4217
4217
|
gridOptions: Z,
|
|
4218
4218
|
pageOptions: o,
|
|
4219
|
-
formData:
|
|
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
|
-
Nn(
|
|
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
|
},
|
|
@@ -4235,32 +4235,32 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4235
4235
|
);
|
|
4236
4236
|
const Bl = (P) => {
|
|
4237
4237
|
if (s(P.instanceId)) {
|
|
4238
|
-
const
|
|
4239
|
-
|
|
4240
|
-
const N = l.value.findIndex((
|
|
4238
|
+
const w = {};
|
|
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
4241
|
if (s(N) && N >= 0)
|
|
4242
4242
|
if (l.value[N].visible) {
|
|
4243
4243
|
Se("已经打开该数据弹窗信息");
|
|
4244
4244
|
return;
|
|
4245
4245
|
} else
|
|
4246
|
-
l.value[N] =
|
|
4246
|
+
l.value[N] = w;
|
|
4247
4247
|
else
|
|
4248
|
-
l.value.push(
|
|
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
|
|
4254
|
-
|
|
4253
|
+
const w = l.value.findIndex((N) => N.instanceId === P);
|
|
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
|
-
}, zn = (P,
|
|
4258
|
-
if (s(
|
|
4259
|
-
const N = l.value.findIndex((
|
|
4257
|
+
}, zn = (P, w) => {
|
|
4258
|
+
if (s(w)) {
|
|
4259
|
+
const N = l.value.findIndex((U) => U.instanceId === w);
|
|
4260
4260
|
if (N !== -1) {
|
|
4261
4261
|
l.value[N].visible = !1;
|
|
4262
|
-
const
|
|
4263
|
-
Ze("submit", { data: P, params:
|
|
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;
|
|
@@ -4270,13 +4270,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4270
4270
|
}, Nl = async () => await Sl(v, Z), Ll = async () => {
|
|
4271
4271
|
const P = v.value;
|
|
4272
4272
|
if (P) {
|
|
4273
|
-
const { pager:
|
|
4274
|
-
return jt(
|
|
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) => {
|
|
4278
|
-
for (let
|
|
4279
|
-
|
|
4278
|
+
for (let w in P)
|
|
4279
|
+
we.value[w] ? we.value[w].setValue(P[w]) : G[w] = P[w];
|
|
4280
4280
|
};
|
|
4281
4281
|
return n({
|
|
4282
4282
|
doSearch: De,
|
|
@@ -4290,62 +4290,62 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4290
4290
|
setExportColumns: (P) => {
|
|
4291
4291
|
Z.params.exportColumns = P;
|
|
4292
4292
|
}
|
|
4293
|
-
}), (P,
|
|
4294
|
-
const N =
|
|
4295
|
-
return Vt((x(),
|
|
4296
|
-
id:
|
|
4293
|
+
}), (P, w) => {
|
|
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":
|
|
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
4306
|
default: L(() => [
|
|
4307
|
-
|
|
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
4315
|
default: L(() => [
|
|
4316
|
-
|
|
4316
|
+
q(X, {
|
|
4317
4317
|
ref_key: "formRef",
|
|
4318
4318
|
ref: Je,
|
|
4319
|
-
data:
|
|
4319
|
+
data: G,
|
|
4320
4320
|
items: Ot.value,
|
|
4321
4321
|
size: o.size,
|
|
4322
|
-
rules:
|
|
4323
|
-
"title-width":
|
|
4324
|
-
"title-align":
|
|
4325
|
-
"title-colon":
|
|
4326
|
-
vertical:
|
|
4322
|
+
rules: c.formRules,
|
|
4323
|
+
"title-width": c.formProps.titleWidth,
|
|
4324
|
+
"title-align": c.formProps.titleAlign,
|
|
4325
|
+
"title-colon": c.formProps.titleColon,
|
|
4326
|
+
vertical: c.formProps.vertical,
|
|
4327
4327
|
onCollapse: xl,
|
|
4328
4328
|
class: "sag-vxe-page-form"
|
|
4329
|
-
},
|
|
4329
|
+
}, xe({
|
|
4330
4330
|
toolbar_tools: L(() => [
|
|
4331
|
-
|
|
4331
|
+
q(U, null, {
|
|
4332
4332
|
default: L(() => [
|
|
4333
|
-
|
|
4333
|
+
q(N, {
|
|
4334
4334
|
type: "primary",
|
|
4335
|
-
size: S(
|
|
4336
|
-
onClick:
|
|
4337
|
-
disabled:
|
|
4335
|
+
size: S(W),
|
|
4336
|
+
onClick: w[0] || (w[0] = (k) => De()),
|
|
4337
|
+
disabled: D.value
|
|
4338
4338
|
}, {
|
|
4339
|
-
default: L(() =>
|
|
4339
|
+
default: L(() => w[5] || (w[5] = [
|
|
4340
4340
|
ue(" 查询 ")
|
|
4341
4341
|
])),
|
|
4342
4342
|
_: 1
|
|
4343
4343
|
}, 8, ["size", "disabled"]),
|
|
4344
|
-
|
|
4345
|
-
size: S(
|
|
4346
|
-
onClick:
|
|
4344
|
+
q(N, {
|
|
4345
|
+
size: S(W),
|
|
4346
|
+
onClick: w[1] || (w[1] = (k) => Cn())
|
|
4347
4347
|
}, {
|
|
4348
|
-
default: L(() =>
|
|
4348
|
+
default: L(() => w[6] || (w[6] = [
|
|
4349
4349
|
ue("重置")
|
|
4350
4350
|
])),
|
|
4351
4351
|
_: 1
|
|
@@ -4355,96 +4355,96 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4355
4355
|
})
|
|
4356
4356
|
]),
|
|
4357
4357
|
dateRange: L((k) => [
|
|
4358
|
-
|
|
4359
|
-
value:
|
|
4360
|
-
"onUpdate:value": (
|
|
4361
|
-
ref: (
|
|
4358
|
+
q(ns, te({
|
|
4359
|
+
value: G[k.field],
|
|
4360
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4361
|
+
ref: ($) => be($, k.field)
|
|
4362
4362
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4363
4363
|
]),
|
|
4364
4364
|
date: L((k) => [
|
|
4365
|
-
|
|
4366
|
-
value:
|
|
4367
|
-
"onUpdate:value": (
|
|
4368
|
-
ref: (
|
|
4365
|
+
q(as, te({
|
|
4366
|
+
value: G[k.field],
|
|
4367
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4368
|
+
ref: ($) => be($, k.field)
|
|
4369
4369
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4370
4370
|
]),
|
|
4371
4371
|
input: L((k) => [
|
|
4372
|
-
|
|
4372
|
+
c.vxeSlot ? (x(), z(_s, te({
|
|
4373
4373
|
key: 0,
|
|
4374
|
-
value:
|
|
4375
|
-
"onUpdate:value": (
|
|
4376
|
-
ref: (
|
|
4374
|
+
value: G[k.field],
|
|
4375
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4376
|
+
ref: ($) => be($, k.field),
|
|
4377
4377
|
title: k?.item?.title
|
|
4378
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) :
|
|
4379
|
-
|
|
4378
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4379
|
+
c.vxeSlot ? j("", !0) : (x(), z(ls, te({
|
|
4380
4380
|
key: 1,
|
|
4381
|
-
value:
|
|
4382
|
-
"onUpdate:value": (
|
|
4383
|
-
ref: (
|
|
4381
|
+
value: G[k.field],
|
|
4382
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
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
4387
|
select: L((k) => [
|
|
4388
|
-
|
|
4388
|
+
c.vxeSlot ? (x(), z(Cs, te({
|
|
4389
4389
|
key: 0,
|
|
4390
|
-
value:
|
|
4391
|
-
"onUpdate:value": (
|
|
4392
|
-
ref: (
|
|
4393
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) :
|
|
4394
|
-
|
|
4390
|
+
value: G[k.field],
|
|
4391
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4392
|
+
ref: ($) => be($, k.field)
|
|
4393
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : j("", !0),
|
|
4394
|
+
c.vxeSlot ? j("", !0) : (x(), z(os, te({
|
|
4395
4395
|
key: 1,
|
|
4396
|
-
value:
|
|
4397
|
-
"onUpdate:value": (
|
|
4398
|
-
ref: (
|
|
4396
|
+
value: G[k.field],
|
|
4397
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4398
|
+
ref: ($) => be($, k.field)
|
|
4399
4399
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4400
4400
|
]),
|
|
4401
4401
|
selectList: L((k) => [
|
|
4402
|
-
|
|
4402
|
+
c.vxeSlot ? (x(), z(Ps, te({
|
|
4403
4403
|
key: 0,
|
|
4404
|
-
value:
|
|
4405
|
-
"onUpdate:value": (
|
|
4406
|
-
ref: (
|
|
4404
|
+
value: G[k.field],
|
|
4405
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4406
|
+
ref: ($) => be($, k.field),
|
|
4407
4407
|
title: k?.item?.title
|
|
4408
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) :
|
|
4409
|
-
|
|
4408
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4409
|
+
c.vxeSlot ? j("", !0) : (x(), z(cs, te({
|
|
4410
4410
|
key: 1,
|
|
4411
|
-
value:
|
|
4412
|
-
"onUpdate:value": (
|
|
4413
|
-
ref: (
|
|
4411
|
+
value: G[k.field],
|
|
4412
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
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
4417
|
selectPull: L((k) => [
|
|
4418
|
-
|
|
4418
|
+
c.vxeSlot ? (x(), z(xs, te({
|
|
4419
4419
|
key: 0,
|
|
4420
|
-
value:
|
|
4421
|
-
"onUpdate:value": (
|
|
4422
|
-
ref: (
|
|
4420
|
+
value: G[k.field],
|
|
4421
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
4422
|
+
ref: ($) => be($, k.field),
|
|
4423
4423
|
title: k?.item?.title
|
|
4424
|
-
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) :
|
|
4425
|
-
|
|
4424
|
+
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : j("", !0),
|
|
4425
|
+
c.vxeSlot ? j("", !0) : (x(), z(ss, te({
|
|
4426
4426
|
key: 1,
|
|
4427
|
-
value:
|
|
4428
|
-
"onUpdate:value": (
|
|
4429
|
-
ref: (
|
|
4427
|
+
value: G[k.field],
|
|
4428
|
+
"onUpdate:value": ($) => G[k.field] = $,
|
|
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
4433
|
cascader: L((k) => [
|
|
4434
|
-
|
|
4435
|
-
value:
|
|
4436
|
-
"onUpdate:value": (
|
|
4434
|
+
q(fs, te({
|
|
4435
|
+
value: G[k.field],
|
|
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
|
-
|
|
4443
|
+
Ce(S(p), (k) => ({
|
|
4444
4444
|
name: k,
|
|
4445
|
-
fn: L((
|
|
4446
|
-
re(P.$slots, k, te(
|
|
4447
|
-
value:
|
|
4445
|
+
fn: L(($) => [
|
|
4446
|
+
re(P.$slots, k, te($, {
|
|
4447
|
+
value: G[$.field]
|
|
4448
4448
|
}))
|
|
4449
4449
|
])
|
|
4450
4450
|
}))
|
|
@@ -4456,10 +4456,10 @@ 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, S(s)(
|
|
4459
|
+
[$t, S(s)(c.formItems)]
|
|
4460
4460
|
]),
|
|
4461
4461
|
K("div", Ts, [
|
|
4462
|
-
|
|
4462
|
+
q(Il, te({
|
|
4463
4463
|
ref_key: "gridRef",
|
|
4464
4464
|
ref: v
|
|
4465
4465
|
}, Z, Yl(Vl), {
|
|
@@ -4471,124 +4471,124 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4471
4471
|
onCellMouseleave: Ml,
|
|
4472
4472
|
onCheckboxChange: kl,
|
|
4473
4473
|
onRadioChange: Al
|
|
4474
|
-
}),
|
|
4475
|
-
operate: L(({ row: k, column:
|
|
4474
|
+
}), xe({
|
|
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: (se) => S(Tn)(k,
|
|
4480
|
-
}, ae(k[
|
|
4479
|
+
onClick: (se) => S(Tn)(k, $)
|
|
4480
|
+
}, ae(k[$.property]), 9, Ms)
|
|
4481
4481
|
]),
|
|
4482
|
-
vertical: L(({ row: k, column:
|
|
4483
|
-
(x(!0),
|
|
4482
|
+
vertical: L(({ row: k, column: $ }) => [
|
|
4483
|
+
(x(!0), Y(ce, null, Ce($.params.childColumns, (se) => (x(), Y("div", {
|
|
4484
4484
|
key: se.value
|
|
4485
4485
|
}, [
|
|
4486
4486
|
K("span", Vs, ae(se.title) + ":", 1),
|
|
4487
|
-
|
|
4488
|
-
se.formatter === "operate" ? (x(),
|
|
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
4492
|
onClick: (eu) => S(Tn)(k, se)
|
|
4493
4493
|
}, ae(k[se.field]), 9, zs)
|
|
4494
|
-
])) : (x(),
|
|
4494
|
+
])) : (x(), Y("span", js, ae(S(V).stringFormat(k[se.field], se.formatter)), 1))
|
|
4495
4495
|
]))), 128))
|
|
4496
4496
|
]),
|
|
4497
4497
|
button: L(({ row: k }) => [
|
|
4498
4498
|
K("div", qs, [
|
|
4499
|
-
(x(!0),
|
|
4500
|
-
S(
|
|
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: S(
|
|
4505
|
-
onClick: (se) => S(Qe)(
|
|
4504
|
+
type: S(V).toString($.status, "primary"),
|
|
4505
|
+
onClick: (se) => S(Qe)($, k)
|
|
4506
4506
|
}, {
|
|
4507
4507
|
icon: L(() => [
|
|
4508
|
-
|
|
4509
|
-
icon:
|
|
4508
|
+
q(ze, {
|
|
4509
|
+
icon: $.icon
|
|
4510
4510
|
}, null, 8, ["icon"])
|
|
4511
4511
|
]),
|
|
4512
4512
|
default: L(() => [
|
|
4513
|
-
ue(" " + ae(
|
|
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: (se) => S(Qe)(
|
|
4521
|
+
onClick: (se) => S(Qe)($, k)
|
|
4522
4522
|
}, [
|
|
4523
|
-
|
|
4524
|
-
icon:
|
|
4523
|
+
q(ze, {
|
|
4524
|
+
icon: $.icon
|
|
4525
4525
|
}, null, 8, ["icon"]),
|
|
4526
|
-
ue(" " + ae(
|
|
4527
|
-
], 8, Bs)) :
|
|
4528
|
-
|
|
4529
|
-
])) :
|
|
4526
|
+
ue(" " + ae($.buttonName), 1)
|
|
4527
|
+
], 8, Bs)) : j("", !0),
|
|
4528
|
+
w[8] || (w[8] = ue(" "))
|
|
4529
|
+
])) : j("", !0)
|
|
4530
4530
|
], 64))), 128))
|
|
4531
4531
|
]),
|
|
4532
|
-
Dl(
|
|
4532
|
+
Dl(y.tableMoreButtons, k) ? (x(), z(Ne, {
|
|
4533
4533
|
key: 0,
|
|
4534
4534
|
destroyPopupOnHide: !0
|
|
4535
4535
|
}, {
|
|
4536
4536
|
overlay: L(() => [
|
|
4537
|
-
|
|
4537
|
+
q(ie, null, {
|
|
4538
4538
|
default: L(() => [
|
|
4539
|
-
(x(!0),
|
|
4540
|
-
S(Ee)(
|
|
4541
|
-
S(
|
|
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
4542
|
default: L(() => [
|
|
4543
4543
|
K("a", {
|
|
4544
|
-
onClick: (se) => S(Qe)(
|
|
4544
|
+
onClick: (se) => S(Qe)($, k)
|
|
4545
4545
|
}, [
|
|
4546
|
-
|
|
4547
|
-
icon:
|
|
4546
|
+
q(ze, {
|
|
4547
|
+
icon: $.icon
|
|
4548
4548
|
}, null, 8, ["icon"]),
|
|
4549
|
-
ue(" " + ae(
|
|
4549
|
+
ue(" " + ae($.buttonName), 1)
|
|
4550
4550
|
], 8, Ns)
|
|
4551
4551
|
]),
|
|
4552
4552
|
_: 2
|
|
4553
|
-
}, 1024)) :
|
|
4554
|
-
], 64)) :
|
|
4553
|
+
}, 1024)) : j("", !0)
|
|
4554
|
+
], 64)) : j("", !0)
|
|
4555
4555
|
], 64))), 128))
|
|
4556
4556
|
]),
|
|
4557
4557
|
_: 2
|
|
4558
4558
|
}, 1024)
|
|
4559
4559
|
]),
|
|
4560
4560
|
default: L(() => [
|
|
4561
|
-
|
|
4562
|
-
type:
|
|
4561
|
+
q(N, {
|
|
4562
|
+
type: m.showButtonLink ? "link" : "default",
|
|
4563
4563
|
size: "small"
|
|
4564
4564
|
}, {
|
|
4565
4565
|
default: L(() => [
|
|
4566
|
-
|
|
4567
|
-
|
|
4566
|
+
w[9] || (w[9] = ue(" 更多操作 ")),
|
|
4567
|
+
q(S(yt))
|
|
4568
4568
|
]),
|
|
4569
4569
|
_: 1
|
|
4570
4570
|
}, 8, ["type"])
|
|
4571
4571
|
]),
|
|
4572
4572
|
_: 2
|
|
4573
|
-
}, 1024)) :
|
|
4573
|
+
}, 1024)) : j("", !0)
|
|
4574
4574
|
]),
|
|
4575
4575
|
toolbar_buttons: L(() => [
|
|
4576
|
-
S(s)(
|
|
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
4581
|
default: L(() => [
|
|
4582
|
-
(x(!0),
|
|
4583
|
-
S(Ee)(k.auth) ? (x(),
|
|
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: S(
|
|
4587
|
-
type: S(
|
|
4588
|
-
onClick: (
|
|
4586
|
+
size: S(W),
|
|
4587
|
+
type: S(V).toString(k.status, "primary"),
|
|
4588
|
+
onClick: ($) => S(zl)(k)
|
|
4589
4589
|
}, {
|
|
4590
4590
|
icon: L(() => [
|
|
4591
|
-
|
|
4591
|
+
q(ze, {
|
|
4592
4592
|
icon: k.icon
|
|
4593
4593
|
}, null, 8, ["icon"])
|
|
4594
4594
|
]),
|
|
@@ -4596,103 +4596,103 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4596
4596
|
ue(" " + ae(k.buttonName), 1)
|
|
4597
4597
|
]),
|
|
4598
4598
|
_: 2
|
|
4599
|
-
}, 1032, ["size", "type", "onClick"])) :
|
|
4599
|
+
}, 1032, ["size", "type", "onClick"])) : j("", !0)
|
|
4600
4600
|
]))), 128))
|
|
4601
4601
|
]),
|
|
4602
4602
|
_: 1
|
|
4603
|
-
})) :
|
|
4604
|
-
(x(!0),
|
|
4603
|
+
})) : j("", !0),
|
|
4604
|
+
(x(!0), Y(ce, null, Ce(S(b), (k) => re(P.$slots, k)), 256))
|
|
4605
4605
|
]),
|
|
4606
4606
|
toolbar_tools: L(() => [
|
|
4607
|
-
S(s)(
|
|
4607
|
+
S(s)(m.tableColumnsExtra) ? (x(), z(ke, {
|
|
4608
4608
|
key: 0,
|
|
4609
4609
|
size: "small",
|
|
4610
4610
|
circle: !0,
|
|
4611
|
-
onClick:
|
|
4611
|
+
onClick: w[3] || (w[3] = (k) => S(Vn)(o.application, !1)),
|
|
4612
4612
|
title: "切换"
|
|
4613
4613
|
}, {
|
|
4614
|
-
default: L(() =>
|
|
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
|
-
})) :
|
|
4619
|
-
S(s)(i.requestDownload) && typeof i.requestDownload == "object" ? (x(),
|
|
4618
|
+
})) : j("", !0),
|
|
4619
|
+
S(s)(i.requestDownload) && typeof i.requestDownload == "object" ? (x(), z(ks, {
|
|
4620
4620
|
key: 1,
|
|
4621
4621
|
onExport: S(Mn)
|
|
4622
|
-
}, null, 8, ["onExport"])) :
|
|
4623
|
-
i.requestDownload === !0 || typeof i.requestDownload == "string" ? (x(),
|
|
4622
|
+
}, null, 8, ["onExport"])) : j("", !0),
|
|
4623
|
+
i.requestDownload === !0 || typeof i.requestDownload == "string" ? (x(), z(ke, {
|
|
4624
4624
|
key: 2,
|
|
4625
4625
|
size: "small",
|
|
4626
4626
|
circle: !0,
|
|
4627
4627
|
onClick: S(Mn),
|
|
4628
4628
|
title: "下载"
|
|
4629
4629
|
}, {
|
|
4630
|
-
default: L(() =>
|
|
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
|
|
4634
|
-
}, 8, ["onClick"])) :
|
|
4635
|
-
i.requestImport ? (x(),
|
|
4634
|
+
}, 8, ["onClick"])) : j("", !0),
|
|
4635
|
+
i.requestImport ? (x(), z(ke, {
|
|
4636
4636
|
key: 3,
|
|
4637
4637
|
size: "small",
|
|
4638
4638
|
circle: !0,
|
|
4639
|
-
onClick:
|
|
4639
|
+
onClick: w[4] || (w[4] = (k) => S(jl)()),
|
|
4640
4640
|
title: "导入"
|
|
4641
4641
|
}, {
|
|
4642
|
-
default: L(() =>
|
|
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
4648
|
empty: L(() => [
|
|
4649
|
-
|
|
4649
|
+
R.value === "error" ? (x(), Y("h2", Ls, w[13] || (w[13] = [
|
|
4650
4650
|
K("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4651
|
-
]))) :
|
|
4652
|
-
|
|
4651
|
+
]))) : j("", !0),
|
|
4652
|
+
R.value === "none" ? (x(), Y("h2", Is, w[14] || (w[14] = [
|
|
4653
4653
|
K("span", { style: { "font-size": "24px", color: "red" } }, "没有更多数据了!", -1)
|
|
4654
|
-
]))) :
|
|
4655
|
-
|
|
4656
|
-
|
|
4654
|
+
]))) : j("", !0),
|
|
4655
|
+
R.value === "more" ? (x(), Y("h2", Rs, [
|
|
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", {
|
|
4663
4663
|
onClick: Pl,
|
|
4664
4664
|
href: "javascript:void(0)",
|
|
4665
4665
|
class: "link"
|
|
4666
|
-
},
|
|
4666
|
+
}, w[15] || (w[15] = [
|
|
4667
4667
|
K("span", { style: { "font-size": "24px", color: "red" } }, "是否强制显示?", -1)
|
|
4668
4668
|
]))
|
|
4669
|
-
])) :
|
|
4669
|
+
])) : j("", !0)
|
|
4670
4670
|
]),
|
|
4671
4671
|
_: 2
|
|
4672
4672
|
}, [
|
|
4673
|
-
|
|
4673
|
+
Ce(S(O), (k) => ({
|
|
4674
4674
|
name: k,
|
|
4675
|
-
fn: L((
|
|
4676
|
-
re(P.$slots, k, Wl(Gl(
|
|
4675
|
+
fn: L(($) => [
|
|
4676
|
+
re(P.$slots, k, Wl(Gl($)))
|
|
4677
4677
|
])
|
|
4678
4678
|
}))
|
|
4679
4679
|
]), 1040, ["size"])
|
|
4680
4680
|
]),
|
|
4681
|
-
(x(!0),
|
|
4682
|
-
k.visible ? (x(),
|
|
4681
|
+
(x(!0), Y(ce, null, Ce(l.value, (k, $) => (x(), Y(ce, null, [
|
|
4682
|
+
k.visible ? (x(), z(za, te({
|
|
4683
4683
|
key: k.instanceId,
|
|
4684
4684
|
ref_for: !0
|
|
4685
4685
|
}, k, {
|
|
4686
4686
|
onCancel: (se) => _t(k.instanceId),
|
|
4687
4687
|
onSubmit: (se) => zn(se, k.instanceId)
|
|
4688
|
-
}), null, 16, ["onCancel", "onSubmit"])) :
|
|
4688
|
+
}), null, 16, ["onCancel", "onSubmit"])) : j("", !0)
|
|
4689
4689
|
], 64))), 256)),
|
|
4690
|
-
a.visible ? (x(),
|
|
4690
|
+
a.visible ? (x(), z(za, te({ key: 0 }, a, {
|
|
4691
4691
|
onCancel: _t,
|
|
4692
4692
|
onSubmit: zn
|
|
4693
|
-
}), null, 16)) :
|
|
4693
|
+
}), null, 16)) : j("", !0)
|
|
4694
4694
|
], 512)), [
|
|
4695
|
-
[$t, !
|
|
4695
|
+
[$t, !B.value]
|
|
4696
4696
|
]);
|
|
4697
4697
|
};
|
|
4698
4698
|
}
|
|
@@ -4727,32 +4727,32 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4727
4727
|
},
|
|
4728
4728
|
emits: ["update:value", "change"],
|
|
4729
4729
|
setup(e, { expose: n, emit: t }) {
|
|
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
|
-
let o =
|
|
4733
|
-
const i = (
|
|
4734
|
-
|
|
4735
|
-
},
|
|
4736
|
-
o.value =
|
|
4737
|
-
},
|
|
4738
|
-
o.value =
|
|
4739
|
-
}, f = (
|
|
4740
|
-
s(
|
|
4732
|
+
let o = M();
|
|
4733
|
+
const i = (C, g) => {
|
|
4734
|
+
_(g, !0);
|
|
4735
|
+
}, u = () => s(o.value) ? T(o.value).format(r) : null, c = (C) => {
|
|
4736
|
+
o.value = T(C), _();
|
|
4737
|
+
}, m = (C) => {
|
|
4738
|
+
o.value = T().add(C || 0, l), _();
|
|
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
4742
|
return he(
|
|
4743
4743
|
() => a.value,
|
|
4744
|
-
(
|
|
4745
|
-
o.value =
|
|
4744
|
+
(C, g) => {
|
|
4745
|
+
o.value = C ? T(C) : null;
|
|
4746
4746
|
}
|
|
4747
4747
|
), oe(() => {
|
|
4748
|
-
s(a.value) &&
|
|
4748
|
+
s(a.value) && c(a.value);
|
|
4749
4749
|
}), n({
|
|
4750
|
-
setDate:
|
|
4751
|
-
setValue:
|
|
4752
|
-
getValue:
|
|
4753
|
-
}), (
|
|
4754
|
-
const
|
|
4755
|
-
return x(),
|
|
4750
|
+
setDate: c,
|
|
4751
|
+
setValue: m,
|
|
4752
|
+
getValue: u
|
|
4753
|
+
}), (C, g) => {
|
|
4754
|
+
const d = F("a-date-picker");
|
|
4755
|
+
return x(), z(d, {
|
|
4756
4756
|
value: S(o),
|
|
4757
4757
|
"onUpdate:value": g[0] || (g[0] = (h) => gt(o) ? o.value = h : o = h),
|
|
4758
4758
|
"show-time": a.showTime,
|
|
@@ -4790,67 +4790,67 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4790
4790
|
},
|
|
4791
4791
|
emits: ["update:value", "change"],
|
|
4792
4792
|
setup(e, { expose: n, emit: t }) {
|
|
4793
|
-
|
|
4794
|
-
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD", o = t, i =
|
|
4795
|
-
{ label: "当天", value: [
|
|
4796
|
-
{ label: "近7天", value: [
|
|
4797
|
-
{ label: "近两周", value: [
|
|
4798
|
-
{ label: "近一个月", value: [
|
|
4799
|
-
{ label: "近三个月", value: [
|
|
4800
|
-
{ label: "近六个月", value: [
|
|
4801
|
-
{ label: "近一年", value: [
|
|
4802
|
-
{ label: "近三年", value: [
|
|
4803
|
-
],
|
|
4804
|
-
{ label: "本月", value: [
|
|
4805
|
-
{ label: "近一个月", value: [
|
|
4806
|
-
{ label: "近三个月", value: [
|
|
4807
|
-
{ label: "近六个月", value: [
|
|
4808
|
-
{ label: "近一年", value: [
|
|
4809
|
-
{ label: "近两年", value: [
|
|
4810
|
-
{ label: "近三年", value: [
|
|
4811
|
-
],
|
|
4812
|
-
{ label: "本年", value: [
|
|
4813
|
-
{ label: "近一年", value: [
|
|
4814
|
-
{ label: "近两年", value: [
|
|
4815
|
-
{ label: "近三年", value: [
|
|
4816
|
-
{ label: "近五年", value: [
|
|
4817
|
-
], f =
|
|
4793
|
+
T.locale("zh-cn"), T.extend(wn), T.extend(St);
|
|
4794
|
+
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD", o = t, i = M(), u = [
|
|
4795
|
+
{ label: "当天", value: [T().add(0, l)] },
|
|
4796
|
+
{ label: "近7天", value: [T().add(-7, l)] },
|
|
4797
|
+
{ label: "近两周", value: [T().add(-14, l)] },
|
|
4798
|
+
{ label: "近一个月", value: [T().add(-30, l)] },
|
|
4799
|
+
{ label: "近三个月", value: [T().add(-90, l)] },
|
|
4800
|
+
{ label: "近六个月", value: [T().add(-180, l)] },
|
|
4801
|
+
{ label: "近一年", value: [T().add(-365, l)] },
|
|
4802
|
+
{ label: "近三年", value: [T().add(-1095, l)] }
|
|
4803
|
+
], c = [
|
|
4804
|
+
{ label: "本月", value: [T().add(0, l)] },
|
|
4805
|
+
{ label: "近一个月", value: [T().add(-1, l)] },
|
|
4806
|
+
{ label: "近三个月", value: [T().add(-3, l)] },
|
|
4807
|
+
{ label: "近六个月", value: [T().add(-5, l)] },
|
|
4808
|
+
{ label: "近一年", value: [T().add(-12, l)] },
|
|
4809
|
+
{ label: "近两年", value: [T().add(-24, l)] },
|
|
4810
|
+
{ label: "近三年", value: [T().add(-36, l)] }
|
|
4811
|
+
], m = [
|
|
4812
|
+
{ label: "本年", value: [T().add(0, l)] },
|
|
4813
|
+
{ label: "近一年", value: [T().add(-1, l)] },
|
|
4814
|
+
{ label: "近两年", value: [T().add(-2, l)] },
|
|
4815
|
+
{ label: "近三年", value: [T().add(-3, l)] },
|
|
4816
|
+
{ label: "近五年", value: [T().add(-5, l)] }
|
|
4817
|
+
], f = M(l === "day" ? u : l === "month" ? c : m), y = (d, h) => {
|
|
4818
4818
|
g(h, !0);
|
|
4819
|
-
},
|
|
4820
|
-
let
|
|
4821
|
-
return i.value && i.value[0] && (
|
|
4822
|
-
},
|
|
4823
|
-
typeof
|
|
4824
|
-
s(
|
|
4825
|
-
s(h) ?
|
|
4826
|
-
] : i.value = [s(
|
|
4827
|
-
}, g = (
|
|
4828
|
-
s(
|
|
4819
|
+
}, _ = () => {
|
|
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
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
|
-
s(a.value) &&
|
|
4837
|
+
s(a.value) && C(a.value[0], a.value[1]);
|
|
4838
4838
|
}), n({
|
|
4839
|
-
setValue:
|
|
4840
|
-
getValue:
|
|
4841
|
-
}), (
|
|
4842
|
-
const
|
|
4843
|
-
return x(),
|
|
4839
|
+
setValue: C,
|
|
4840
|
+
getValue: _
|
|
4841
|
+
}), (d, h) => {
|
|
4842
|
+
const p = F("a-range-picker");
|
|
4843
|
+
return x(), z(p, {
|
|
4844
4844
|
value: i.value,
|
|
4845
|
-
"onUpdate:value": h[0] || (h[0] = (
|
|
4845
|
+
"onUpdate:value": h[0] || (h[0] = (O) => i.value = O),
|
|
4846
4846
|
presets: f.value,
|
|
4847
4847
|
locale: S(Ge),
|
|
4848
4848
|
allowEmpty: [!0, !0],
|
|
4849
4849
|
format: S(r),
|
|
4850
4850
|
picker: S(l) === "day" ? "date" : S(l),
|
|
4851
4851
|
style: me(a.style),
|
|
4852
|
-
getPopupContainer: (
|
|
4853
|
-
onChange:
|
|
4852
|
+
getPopupContainer: (O) => S(Ie)(a.mountainTop, e.getPopupContainer, O),
|
|
4853
|
+
onChange: y
|
|
4854
4854
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4855
4855
|
};
|
|
4856
4856
|
}
|
|
@@ -4880,8 +4880,8 @@ 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 =
|
|
4884
|
-
return x(),
|
|
4883
|
+
const i = F("a-button");
|
|
4884
|
+
return x(), z(i, {
|
|
4885
4885
|
round: "",
|
|
4886
4886
|
size: t.size,
|
|
4887
4887
|
type: t.type,
|
|
@@ -4889,10 +4889,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4889
4889
|
disabled: t.disabled
|
|
4890
4890
|
}, {
|
|
4891
4891
|
icon: L(() => [
|
|
4892
|
-
t.icon !== "none" ? (x(),
|
|
4892
|
+
t.icon !== "none" ? (x(), z(ze, {
|
|
4893
4893
|
key: 0,
|
|
4894
4894
|
icon: t.icon
|
|
4895
|
-
}, null, 8, ["icon"])) :
|
|
4895
|
+
}, null, 8, ["icon"])) : j("", !0)
|
|
4896
4896
|
]),
|
|
4897
4897
|
default: L(() => [
|
|
4898
4898
|
ue(" " + ae(t.name), 1)
|
|
@@ -4936,41 +4936,41 @@ 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,
|
|
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
|
-
},
|
|
4948
|
-
s(
|
|
4949
|
-
},
|
|
4950
|
-
|
|
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
4952
|
return oe(() => {
|
|
4953
4953
|
f();
|
|
4954
4954
|
}), n({
|
|
4955
4955
|
getName: g,
|
|
4956
|
-
getValue:
|
|
4956
|
+
getValue: d,
|
|
4957
4957
|
setValue: h
|
|
4958
|
-
}), (
|
|
4959
|
-
const
|
|
4960
|
-
return x(),
|
|
4961
|
-
|
|
4962
|
-
value:
|
|
4963
|
-
"onUpdate:value":
|
|
4964
|
-
options:
|
|
4958
|
+
}), (p, O) => {
|
|
4959
|
+
const b = F("a-cascader");
|
|
4960
|
+
return x(), Y("div", Es, [
|
|
4961
|
+
q(b, {
|
|
4962
|
+
value: c.value,
|
|
4963
|
+
"onUpdate:value": O[0] || (O[0] = (v) => c.value = v),
|
|
4964
|
+
options: m.value,
|
|
4965
4965
|
fieldNames: a.fieldNames,
|
|
4966
|
-
"show-search": { filter:
|
|
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
4971
|
style: me(a.style),
|
|
4972
4972
|
getPopupContainer: (v) => S(Ie)(a.mountainTop, e.getPopupContainer, v),
|
|
4973
|
-
onChange:
|
|
4973
|
+
onChange: _
|
|
4974
4974
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "style", "getPopupContainer"])
|
|
4975
4975
|
]);
|
|
4976
4976
|
};
|
|
@@ -5000,15 +5000,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5000
5000
|
setup(e) {
|
|
5001
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 =
|
|
5004
|
-
return x(),
|
|
5003
|
+
const i = F("a-card");
|
|
5004
|
+
return x(), z(i, {
|
|
5005
5005
|
size: "small",
|
|
5006
5006
|
headStyle: n.headStyle,
|
|
5007
5007
|
bodyStyle: n.bodyStyle,
|
|
5008
5008
|
style: me(n.style),
|
|
5009
5009
|
hoverable: n.hoverable,
|
|
5010
5010
|
loading: n.loading
|
|
5011
|
-
},
|
|
5011
|
+
}, xe({
|
|
5012
5012
|
default: L(() => [
|
|
5013
5013
|
re(r.$slots, "default")
|
|
5014
5014
|
]),
|
|
@@ -5017,8 +5017,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5017
5017
|
S(l).length === 1 || S(s)(n.title) ? {
|
|
5018
5018
|
name: "title",
|
|
5019
5019
|
fn: L(() => [
|
|
5020
|
-
S(l).length === 1 ? re(r.$slots, "title", { key: 0 }) :
|
|
5021
|
-
S(l).length !== 1 ? (x(),
|
|
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,
|
|
@@ -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 = V
|
|
5068
|
-
|
|
5069
|
-
},
|
|
5070
|
-
a.formatter === "date" ? l.value =
|
|
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
|
+
y(!0);
|
|
5069
|
+
}, m = () => l.value, f = (_) => {
|
|
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
|
-
(
|
|
5075
|
-
|
|
5074
|
+
(_, C) => {
|
|
5075
|
+
_ !== l.value && f(_);
|
|
5076
5076
|
}
|
|
5077
5077
|
);
|
|
5078
|
-
const
|
|
5079
|
-
r("update:value", l.value),
|
|
5078
|
+
const y = (_ = !1) => {
|
|
5079
|
+
r("update:value", l.value), _ && r("change", l.value);
|
|
5080
5080
|
};
|
|
5081
5081
|
return n({
|
|
5082
|
-
getValue:
|
|
5082
|
+
getValue: m,
|
|
5083
5083
|
setValue: f
|
|
5084
|
-
}), (
|
|
5085
|
-
const g =
|
|
5086
|
-
return x(),
|
|
5084
|
+
}), (_, C) => {
|
|
5085
|
+
const g = F("a-input");
|
|
5086
|
+
return x(), z(g, {
|
|
5087
5087
|
value: l.value,
|
|
5088
|
-
"onUpdate:value":
|
|
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
5093
|
style: me(a.style),
|
|
5094
|
-
onChange:
|
|
5095
|
-
},
|
|
5094
|
+
onChange: c
|
|
5095
|
+
}, xe({ _: 2 }, [
|
|
5096
5096
|
S(i).length === 1 || S(s)(a.addonAfter) ? {
|
|
5097
5097
|
name: "addonAfter",
|
|
5098
5098
|
fn: L(() => [
|
|
5099
|
-
S(i).length === 1 ? re(
|
|
5100
|
-
S(i).length !== 1 ? (x(),
|
|
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
|
-
S(
|
|
5104
|
+
S(u).length === 1 || S(s)(a.addonBefore) ? {
|
|
5105
5105
|
name: "addonBefore",
|
|
5106
5106
|
fn: L(() => [
|
|
5107
|
-
S(
|
|
5108
|
-
S(
|
|
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
|
|
@@ -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 = V
|
|
5154
|
-
|
|
5155
|
-
},
|
|
5156
|
-
l.value =
|
|
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
|
+
y(!0);
|
|
5155
|
+
}, m = () => l.value, f = (_) => {
|
|
5156
|
+
l.value = _, y();
|
|
5157
5157
|
};
|
|
5158
5158
|
he(
|
|
5159
5159
|
() => a.value,
|
|
5160
|
-
(
|
|
5161
|
-
|
|
5160
|
+
(_, C) => {
|
|
5161
|
+
_ !== l.value && f(_);
|
|
5162
5162
|
}
|
|
5163
5163
|
);
|
|
5164
|
-
const
|
|
5165
|
-
r("update:value", l.value),
|
|
5164
|
+
const y = (_ = !1) => {
|
|
5165
|
+
r("update:value", l.value), _ && r("change", l.value);
|
|
5166
5166
|
};
|
|
5167
5167
|
return n({
|
|
5168
|
-
getValue:
|
|
5168
|
+
getValue: m,
|
|
5169
5169
|
setValue: f
|
|
5170
|
-
}), (
|
|
5171
|
-
const g =
|
|
5172
|
-
return x(),
|
|
5170
|
+
}), (_, C) => {
|
|
5171
|
+
const g = F("a-input-number");
|
|
5172
|
+
return x(), z(g, {
|
|
5173
5173
|
value: l.value,
|
|
5174
|
-
"onUpdate:value":
|
|
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,
|
|
@@ -5181,21 +5181,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5181
5181
|
stringMode: a.stringMode,
|
|
5182
5182
|
controls: a.controls,
|
|
5183
5183
|
style: me(a.style),
|
|
5184
|
-
onChange:
|
|
5185
|
-
},
|
|
5184
|
+
onChange: c
|
|
5185
|
+
}, xe({ _: 2 }, [
|
|
5186
5186
|
S(i).length === 1 || S(s)(a.addonAfter) ? {
|
|
5187
5187
|
name: "addonAfter",
|
|
5188
5188
|
fn: L(() => [
|
|
5189
|
-
S(i).length === 1 ? re(
|
|
5190
|
-
S(i).length !== 1 ? (x(),
|
|
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
|
-
S(
|
|
5194
|
+
S(u).length === 1 || S(s)(a.addonBefore) ? {
|
|
5195
5195
|
name: "addonBefore",
|
|
5196
5196
|
fn: L(() => [
|
|
5197
|
-
S(
|
|
5198
|
-
S(
|
|
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
|
|
@@ -5224,7 +5224,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5224
5224
|
},
|
|
5225
5225
|
emits: ["update:value", "search", "suffix"],
|
|
5226
5226
|
setup(e, { emit: n }) {
|
|
5227
|
-
const t = e, a =
|
|
5227
|
+
const t = e, a = M(t.value), l = n, r = () => {
|
|
5228
5228
|
l("search");
|
|
5229
5229
|
}, o = () => {
|
|
5230
5230
|
a.value = "", l("update:value", a.value), l("suffix");
|
|
@@ -5234,21 +5234,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5234
5234
|
(i) => {
|
|
5235
5235
|
a.value = i;
|
|
5236
5236
|
}
|
|
5237
|
-
), (i,
|
|
5238
|
-
const
|
|
5239
|
-
return x(),
|
|
5237
|
+
), (i, u) => {
|
|
5238
|
+
const c = F("a-input-search");
|
|
5239
|
+
return x(), z(c, {
|
|
5240
5240
|
value: a.value,
|
|
5241
|
-
"onUpdate:value":
|
|
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,
|
|
5245
5245
|
onSearch: r
|
|
5246
|
-
},
|
|
5246
|
+
}, xe({ _: 2 }, [
|
|
5247
5247
|
t.showSuffix && !t.disabled ? {
|
|
5248
5248
|
name: "suffix",
|
|
5249
5249
|
fn: L(() => [
|
|
5250
5250
|
K("a", { onClick: o }, [
|
|
5251
|
-
|
|
5251
|
+
q(ze, { icon: "close" })
|
|
5252
5252
|
])
|
|
5253
5253
|
]),
|
|
5254
5254
|
key: "0"
|
|
@@ -5288,28 +5288,28 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5288
5288
|
},
|
|
5289
5289
|
emits: ["update:value", "change"],
|
|
5290
5290
|
setup(e, { expose: n, emit: t }) {
|
|
5291
|
-
const a = e, l = V
|
|
5292
|
-
|
|
5293
|
-
}, i = () => l.value,
|
|
5294
|
-
l.value =
|
|
5291
|
+
const a = e, l = M(V.toString(a.value, null)), r = t, o = () => {
|
|
5292
|
+
c(!0);
|
|
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
|
|
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
|
-
setValue:
|
|
5308
|
-
}), (
|
|
5309
|
-
const
|
|
5310
|
-
return x(),
|
|
5307
|
+
setValue: u
|
|
5308
|
+
}), (m, f) => {
|
|
5309
|
+
const y = F("a-textarea");
|
|
5310
|
+
return x(), z(y, {
|
|
5311
5311
|
value: l.value,
|
|
5312
|
-
"onUpdate:value": f[0] || (f[0] = (
|
|
5312
|
+
"onUpdate:value": f[0] || (f[0] = (_) => l.value = _),
|
|
5313
5313
|
placeholder: a.placeholder,
|
|
5314
5314
|
disabled: a.disabled,
|
|
5315
5315
|
allowClear: a.allowClear,
|
|
@@ -5356,62 +5356,63 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5356
5356
|
style: { type: [String, Object], default: "width: 100%" }
|
|
5357
5357
|
//
|
|
5358
5358
|
},
|
|
5359
|
-
emits: ["update:value", "update:label", "
|
|
5359
|
+
emits: ["update:value", "update:label", "change"],
|
|
5360
5360
|
setup(e, { expose: n, emit: t }) {
|
|
5361
|
-
const a = e, l = t, r =
|
|
5362
|
-
const
|
|
5363
|
-
return await On(A.application,
|
|
5364
|
-
}, f = (
|
|
5365
|
-
|
|
5366
|
-
},
|
|
5367
|
-
a.multiple ? o.value = s(
|
|
5368
|
-
},
|
|
5369
|
-
l("update:value", o.value),
|
|
5370
|
-
},
|
|
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) => {
|
|
5371
5371
|
if (s(o.value))
|
|
5372
5372
|
if (a.multiple) {
|
|
5373
|
-
const
|
|
5374
|
-
o.value.forEach((
|
|
5375
|
-
let
|
|
5376
|
-
|
|
5377
|
-
}), 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;
|
|
5378
5378
|
} else {
|
|
5379
|
-
const
|
|
5380
|
-
s(
|
|
5379
|
+
const p = c.value.filter((O) => O.value === o.value);
|
|
5380
|
+
s(p) && (i.value = p[0].label, u.value = p[0]);
|
|
5381
5381
|
}
|
|
5382
5382
|
else
|
|
5383
|
-
i.value = a.multiple ? [] : null,
|
|
5384
|
-
l("update:label", i.value),
|
|
5383
|
+
i.value = a.multiple ? [] : null, u.value = a.multiple ? {} : null;
|
|
5384
|
+
l("update:label", i.value), h && l("change", u.value);
|
|
5385
5385
|
};
|
|
5386
5386
|
return he(
|
|
5387
5387
|
() => a.value,
|
|
5388
|
-
(
|
|
5389
|
-
a.multiple ? o.value = s(
|
|
5388
|
+
(h) => {
|
|
5389
|
+
a.multiple ? o.value = s(h) ? h : [] : o.value = h, d();
|
|
5390
5390
|
}
|
|
5391
5391
|
), oe(() => {
|
|
5392
|
-
|
|
5393
|
-
|
|
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();
|
|
5394
5394
|
});
|
|
5395
5395
|
}), n({
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5396
|
+
getSelectedOptions: _,
|
|
5397
|
+
setValue: C
|
|
5398
|
+
}), (h, p) => {
|
|
5399
|
+
const O = F("a-select");
|
|
5400
|
+
return x(), Y("div", Gs, [
|
|
5401
|
+
q(O, {
|
|
5401
5402
|
value: S(o),
|
|
5402
|
-
"onUpdate:value":
|
|
5403
|
-
onChange:
|
|
5403
|
+
"onUpdate:value": p[0] || (p[0] = (b) => gt(o) ? o.value = b : null),
|
|
5404
|
+
onChange: y,
|
|
5404
5405
|
placeholder: "--请选择--",
|
|
5405
5406
|
allowClear: a.clearable,
|
|
5406
5407
|
mode: e.multiple ? "multiple" : "",
|
|
5407
5408
|
"max-tag-count": a.maxTagCount,
|
|
5408
|
-
options:
|
|
5409
|
+
options: c.value,
|
|
5409
5410
|
"show-search": a.filterable,
|
|
5410
5411
|
"filter-option": f,
|
|
5411
5412
|
defaultActiveFirstOption: !a.multiple,
|
|
5412
5413
|
autoClearSearchValue: !a.filterable,
|
|
5413
5414
|
listHeight: a.listHeight,
|
|
5414
|
-
getPopupContainer: (
|
|
5415
|
+
getPopupContainer: (b) => S(Ie)(a.mountainTop, e.getPopupContainer, b),
|
|
5415
5416
|
disabled: e.disabled,
|
|
5416
5417
|
style: me(a.style),
|
|
5417
5418
|
size: "medium"
|
|
@@ -5459,82 +5460,83 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5459
5460
|
style: { type: [String, Object], default: "width: 100%" }
|
|
5460
5461
|
//
|
|
5461
5462
|
},
|
|
5462
|
-
emits: ["update:value", "update:label", "
|
|
5463
|
+
emits: ["update:value", "update:label", "change", "query"],
|
|
5463
5464
|
setup(e, { expose: n, emit: t }) {
|
|
5464
|
-
const a = e, l =
|
|
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) => {
|
|
5465
5466
|
if (a.corpFilter && !s(a.corpId))
|
|
5466
5467
|
return i.value = [], [];
|
|
5467
|
-
let
|
|
5468
|
-
Object.assign(
|
|
5469
|
-
const
|
|
5470
|
-
return
|
|
5471
|
-
},
|
|
5472
|
-
f(null).then((
|
|
5473
|
-
|
|
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);
|
|
5474
5475
|
});
|
|
5475
|
-
}, 300),
|
|
5476
|
-
g(
|
|
5477
|
-
|
|
5476
|
+
}, 300), _ = (D) => {
|
|
5477
|
+
g(D).then(() => {
|
|
5478
|
+
v(!0);
|
|
5478
5479
|
});
|
|
5479
|
-
},
|
|
5480
|
-
if (l.value =
|
|
5481
|
-
const
|
|
5482
|
-
l.value.forEach((
|
|
5483
|
-
let
|
|
5484
|
-
|
|
5485
|
-
}), 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;
|
|
5486
5487
|
} else {
|
|
5487
|
-
let
|
|
5488
|
-
|
|
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);
|
|
5489
5490
|
}
|
|
5490
|
-
},
|
|
5491
|
-
g(
|
|
5492
|
-
|
|
5491
|
+
}, d = () => o.value, h = (D) => {
|
|
5492
|
+
g(D).then(() => {
|
|
5493
|
+
v();
|
|
5493
5494
|
});
|
|
5494
|
-
},
|
|
5495
|
-
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null,
|
|
5496
|
-
},
|
|
5497
|
-
|
|
5498
|
-
},
|
|
5499
|
-
|
|
5500
|
-
},
|
|
5501
|
-
|
|
5502
|
-
},
|
|
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 = [];
|
|
5499
|
+
}, b = async () => {
|
|
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;
|
|
5503
5504
|
return he(
|
|
5504
5505
|
() => [a.corpId, a.value],
|
|
5505
|
-
async ([
|
|
5506
|
-
const
|
|
5507
|
-
|
|
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);
|
|
5508
5509
|
}
|
|
5509
5510
|
), oe(async () => {
|
|
5510
5511
|
f(null);
|
|
5511
5512
|
}), n({
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5513
|
+
getSelectedOptions: d,
|
|
5514
|
+
setValue: h,
|
|
5515
|
+
clear: O,
|
|
5516
|
+
reload: b
|
|
5517
|
+
}), (D, R) => {
|
|
5518
|
+
const I = F("a-spin"), H = F("a-select");
|
|
5519
|
+
return x(), Y("div", Js, [
|
|
5520
|
+
q(H, {
|
|
5519
5521
|
value: l.value,
|
|
5520
|
-
"onUpdate:value":
|
|
5521
|
-
placeholder:
|
|
5522
|
+
"onUpdate:value": R[0] || (R[0] = (W) => l.value = W),
|
|
5523
|
+
placeholder: m,
|
|
5522
5524
|
style: me(a.style),
|
|
5523
|
-
"filter-option":
|
|
5525
|
+
"filter-option": C,
|
|
5524
5526
|
disabled: a.disabled,
|
|
5525
5527
|
mode: e.multiple ? "multiple" : "",
|
|
5526
5528
|
"max-tag-count": a.maxTagCount,
|
|
5527
5529
|
options: i.value,
|
|
5528
5530
|
allowClear: a.clearable,
|
|
5529
5531
|
listHeight: a.listHeight,
|
|
5530
|
-
getPopupContainer: (
|
|
5531
|
-
onChange:
|
|
5532
|
+
getPopupContainer: (W) => S(Ie)(a.mountainTop, e.getPopupContainer, W),
|
|
5533
|
+
onChange: _,
|
|
5532
5534
|
"show-search": ""
|
|
5533
|
-
},
|
|
5534
|
-
|
|
5535
|
+
}, xe({ _: 2 }, [
|
|
5536
|
+
u.value ? {
|
|
5535
5537
|
name: "notFoundContent",
|
|
5536
5538
|
fn: L(() => [
|
|
5537
|
-
|
|
5539
|
+
q(I, { size: "small" })
|
|
5538
5540
|
]),
|
|
5539
5541
|
key: "0"
|
|
5540
5542
|
} : void 0
|
|
@@ -5578,44 +5580,44 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5578
5580
|
style: { type: [String, Object], default: "width: 100%" }
|
|
5579
5581
|
//
|
|
5580
5582
|
},
|
|
5581
|
-
emits: ["update:value", "update:label", "
|
|
5583
|
+
emits: ["update:value", "update:label", "change"],
|
|
5582
5584
|
setup(e, { expose: n, emit: t }) {
|
|
5583
|
-
const a = e, l =
|
|
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) => {
|
|
5584
5586
|
if (i.value = [], a.corpFilter && !s(a.corpId))
|
|
5585
5587
|
return [];
|
|
5586
|
-
if (s(
|
|
5587
|
-
let
|
|
5588
|
-
Object.assign(
|
|
5589
|
-
const
|
|
5590
|
-
return
|
|
5588
|
+
if (s(p) || s(O)) {
|
|
5589
|
+
let b = { corpId: a.corpId, searchValue: Te(p), initValue: O };
|
|
5590
|
+
Object.assign(b, a.requestParams), u.value = !0;
|
|
5591
|
+
const v = await Re(a.requestUrl, b);
|
|
5592
|
+
return u.value = !1, i.value = v, v;
|
|
5591
5593
|
} else
|
|
5592
5594
|
return [];
|
|
5593
|
-
},
|
|
5594
|
-
l.value =
|
|
5595
|
-
|
|
5595
|
+
}, y = (p) => {
|
|
5596
|
+
l.value = p, C(p).then((O) => {
|
|
5597
|
+
h(!0);
|
|
5596
5598
|
});
|
|
5597
|
-
},
|
|
5598
|
-
f(
|
|
5599
|
-
}, 500),
|
|
5600
|
-
if (s(
|
|
5601
|
-
let
|
|
5602
|
-
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);
|
|
5603
5605
|
} else
|
|
5604
5606
|
return l.value = null, r.value = "", o.value = null, !0;
|
|
5605
|
-
}, g = (
|
|
5606
|
-
l.value =
|
|
5607
|
-
|
|
5607
|
+
}, g = () => o.value, d = (p) => {
|
|
5608
|
+
l.value = p, C(p).then((O) => {
|
|
5609
|
+
O && h();
|
|
5608
5610
|
});
|
|
5609
|
-
},
|
|
5610
|
-
|
|
5611
|
+
}, h = (p = !1) => {
|
|
5612
|
+
c("update:value", l.value), c("update:label", r.value), p && c("change", o.value);
|
|
5611
5613
|
};
|
|
5612
5614
|
return he(
|
|
5613
5615
|
() => [a.corpId, a.value],
|
|
5614
|
-
async ([
|
|
5615
|
-
const
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
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);
|
|
5619
5621
|
});
|
|
5620
5622
|
});
|
|
5621
5623
|
}
|
|
@@ -5627,14 +5629,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5627
5629
|
}
|
|
5628
5630
|
] : f(null, l.value));
|
|
5629
5631
|
}), n({
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
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, {
|
|
5635
5638
|
value: l.value,
|
|
5636
|
-
"onUpdate:value":
|
|
5637
|
-
placeholder:
|
|
5639
|
+
"onUpdate:value": O[0] || (O[0] = (B) => l.value = B),
|
|
5640
|
+
placeholder: m,
|
|
5638
5641
|
style: me(a.style),
|
|
5639
5642
|
"filter-option": !1,
|
|
5640
5643
|
options: i.value,
|
|
@@ -5643,15 +5646,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5643
5646
|
listHeight: a.listHeight,
|
|
5644
5647
|
"default-active-first-option": !1,
|
|
5645
5648
|
"show-arrow": !1,
|
|
5646
|
-
getPopupContainer: (
|
|
5647
|
-
onChange:
|
|
5648
|
-
onSearch: S(
|
|
5649
|
+
getPopupContainer: (B) => S(Ie)(a.mountainTop, e.getPopupContainer, B),
|
|
5650
|
+
onChange: y,
|
|
5651
|
+
onSearch: S(_),
|
|
5649
5652
|
"show-search": ""
|
|
5650
|
-
},
|
|
5651
|
-
|
|
5653
|
+
}, xe({ _: 2 }, [
|
|
5654
|
+
u.value ? {
|
|
5652
5655
|
name: "notFoundContent",
|
|
5653
5656
|
fn: L(() => [
|
|
5654
|
-
|
|
5657
|
+
q(b, { size: "small" })
|
|
5655
5658
|
]),
|
|
5656
5659
|
key: "0"
|
|
5657
5660
|
} : void 0
|
|
@@ -5676,24 +5679,24 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5676
5679
|
//
|
|
5677
5680
|
},
|
|
5678
5681
|
setup(e) {
|
|
5679
|
-
const n = e, t = Object.keys(Le()), a = t.filter((i) => i !== "header"), l = t.filter((i) => i === "header"), r =
|
|
5680
|
-
return (i,
|
|
5681
|
-
const
|
|
5682
|
-
return x(),
|
|
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 });
|
|
5683
|
+
return (i, u) => {
|
|
5684
|
+
const c = F("a-collapse-panel"), m = F("a-collapse");
|
|
5685
|
+
return x(), z(m, {
|
|
5683
5686
|
activeKey: r.value,
|
|
5684
|
-
"onUpdate:activeKey":
|
|
5687
|
+
"onUpdate:activeKey": u[0] || (u[0] = (f) => r.value = f),
|
|
5685
5688
|
expandIconPosition: "end",
|
|
5686
5689
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5687
5690
|
accordion: ""
|
|
5688
5691
|
}, {
|
|
5689
5692
|
default: L(() => [
|
|
5690
|
-
(x(!0),
|
|
5693
|
+
(x(!0), Y(ce, null, Ce(S(a), (f) => (x(), z(c, {
|
|
5691
5694
|
key: f,
|
|
5692
5695
|
forceRender: "",
|
|
5693
5696
|
showArrow: n.showArrow
|
|
5694
5697
|
}, {
|
|
5695
5698
|
header: L(() => [
|
|
5696
|
-
S(l).length === 1 ? re(i.$slots, "header", { key: 0 }) : (x(),
|
|
5699
|
+
S(l).length === 1 ? re(i.$slots, "header", { key: 0 }) : (x(), Y("span", Qs, ae(o.value[f]), 1))
|
|
5697
5700
|
]),
|
|
5698
5701
|
default: L(() => [
|
|
5699
5702
|
re(i.$slots, f)
|
|
@@ -5714,7 +5717,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5714
5717
|
inheritAttrs: !1,
|
|
5715
5718
|
__name: "SagAntdSpace",
|
|
5716
5719
|
setup(e) {
|
|
5717
|
-
return (n, t) => (x(),
|
|
5720
|
+
return (n, t) => (x(), Y("div", Xs, [
|
|
5718
5721
|
re(n.$slots, "default")
|
|
5719
5722
|
]));
|
|
5720
5723
|
}
|
|
@@ -5740,7 +5743,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5740
5743
|
},
|
|
5741
5744
|
emits: ["update:checked", "change"],
|
|
5742
5745
|
setup(e, { emit: n }) {
|
|
5743
|
-
const t = e, a =
|
|
5746
|
+
const t = e, a = M(t.checked), l = n, r = (o) => {
|
|
5744
5747
|
l("update:checked", o), l("change", o);
|
|
5745
5748
|
};
|
|
5746
5749
|
return he(
|
|
@@ -5749,10 +5752,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5749
5752
|
a.value = o;
|
|
5750
5753
|
}
|
|
5751
5754
|
), (o, i) => {
|
|
5752
|
-
const
|
|
5753
|
-
return x(),
|
|
5755
|
+
const u = F("a-switch");
|
|
5756
|
+
return x(), z(u, {
|
|
5754
5757
|
checked: a.value,
|
|
5755
|
-
"onUpdate:checked": i[0] || (i[0] = (
|
|
5758
|
+
"onUpdate:checked": i[0] || (i[0] = (c) => a.value = c),
|
|
5756
5759
|
checkedValue: t.checkedValue,
|
|
5757
5760
|
unCheckedValue: t.unCheckedValue,
|
|
5758
5761
|
disabled: t.disabled,
|
|
@@ -5787,46 +5790,46 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5787
5790
|
},
|
|
5788
5791
|
emits: ["update:activeKey", "change"],
|
|
5789
5792
|
setup(e, { emit: n }) {
|
|
5790
|
-
const t = e, a = t.tabColorBlack ? "rgba(0, 0, 0, 0.02)" : "#ffffff", l = Object.keys(Le()), r = l.filter((
|
|
5791
|
-
|
|
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);
|
|
5792
5795
|
};
|
|
5793
5796
|
return he(
|
|
5794
5797
|
() => t.activeKey,
|
|
5795
|
-
(
|
|
5796
|
-
o.value =
|
|
5798
|
+
(m) => {
|
|
5799
|
+
o.value = m;
|
|
5797
5800
|
}
|
|
5798
|
-
), (
|
|
5799
|
-
const
|
|
5800
|
-
return x(),
|
|
5801
|
+
), (m, f) => {
|
|
5802
|
+
const y = F("a-tab-pane"), _ = F("a-tabs");
|
|
5803
|
+
return x(), z(_, {
|
|
5801
5804
|
activeKey: o.value,
|
|
5802
|
-
"onUpdate:activeKey": f[0] || (f[0] = (
|
|
5805
|
+
"onUpdate:activeKey": f[0] || (f[0] = (C) => o.value = C),
|
|
5803
5806
|
type: t.type,
|
|
5804
5807
|
"tab-position": t.position,
|
|
5805
5808
|
tabBarGutter: t.position === "left" ? 4 : 25,
|
|
5806
5809
|
tabBarStyle: { margin: 0, backgroundColor: S(a) },
|
|
5807
|
-
onChange:
|
|
5808
|
-
},
|
|
5810
|
+
onChange: c
|
|
5811
|
+
}, xe({
|
|
5809
5812
|
default: L(() => [
|
|
5810
|
-
(x(!0),
|
|
5811
|
-
key:
|
|
5812
|
-
forceRender: t.forceRender && !t.notForceRender?.includes(
|
|
5813
|
+
(x(!0), Y(ce, null, Ce(S(r), (C, g) => (x(), z(y, {
|
|
5814
|
+
key: C,
|
|
5815
|
+
forceRender: t.forceRender && !t.notForceRender?.includes(C),
|
|
5813
5816
|
style: me(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5814
5817
|
}, {
|
|
5815
5818
|
tab: L(() => [
|
|
5816
5819
|
K("span", {
|
|
5817
5820
|
style: me(g === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5818
5821
|
}, [
|
|
5819
|
-
S(l).includes("header") ? re(
|
|
5822
|
+
S(l).includes("header") ? re(m.$slots, "header", {
|
|
5820
5823
|
key: 0,
|
|
5821
|
-
tabKey:
|
|
5822
|
-
}) : (x(),
|
|
5823
|
-
|
|
5824
|
-
ue(" " + ae(i.value[
|
|
5824
|
+
tabKey: C
|
|
5825
|
+
}) : (x(), Y(ce, { key: 1 }, [
|
|
5826
|
+
q(ze, { icon: "menu" }),
|
|
5827
|
+
ue(" " + ae(i.value[C]), 1)
|
|
5825
5828
|
], 64))
|
|
5826
5829
|
], 4)
|
|
5827
5830
|
]),
|
|
5828
5831
|
default: L(() => [
|
|
5829
|
-
re(
|
|
5832
|
+
re(m.$slots, C)
|
|
5830
5833
|
]),
|
|
5831
5834
|
_: 2
|
|
5832
5835
|
}, 1032, ["forceRender", "style"]))), 128))
|
|
@@ -5836,7 +5839,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5836
5839
|
S(l).includes("rightExtra") ? {
|
|
5837
5840
|
name: "rightExtra",
|
|
5838
5841
|
fn: L(() => [
|
|
5839
|
-
re(
|
|
5842
|
+
re(m.$slots, "rightExtra")
|
|
5840
5843
|
]),
|
|
5841
5844
|
key: "0"
|
|
5842
5845
|
} : void 0
|
|
@@ -5856,7 +5859,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5856
5859
|
},
|
|
5857
5860
|
setup(e) {
|
|
5858
5861
|
const n = e;
|
|
5859
|
-
return (t, a) => (x(),
|
|
5862
|
+
return (t, a) => (x(), z(ze, {
|
|
5860
5863
|
icon: n.icon
|
|
5861
5864
|
}, null, 8, ["icon"]));
|
|
5862
5865
|
}
|