cd-form 1.0.16 → 1.0.17
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/cd-form.js +466 -466
- package/dist/cd-form.umd.cjs +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-form.js
CHANGED
|
@@ -322,22 +322,22 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
322
322
|
top: `${M.value.y}px`,
|
|
323
323
|
width: `${M.value.width}px`,
|
|
324
324
|
height: `${M.value.height}px`
|
|
325
|
-
})),
|
|
325
|
+
})), H = ce(() => ({
|
|
326
326
|
width: `${d.value.width}px`,
|
|
327
327
|
height: `${d.value.height}px`,
|
|
328
328
|
left: `${P.value.left}px`,
|
|
329
329
|
top: `${P.value.top}px`
|
|
330
330
|
})), g = ce(() => {
|
|
331
|
-
const { x: N, y:
|
|
331
|
+
const { x: N, y: L, width: Me, height: _e } = M.value;
|
|
332
332
|
return {
|
|
333
333
|
clipPath: `polygon(
|
|
334
334
|
0% 0%,
|
|
335
335
|
0% 100%,
|
|
336
336
|
${N}px 100%,
|
|
337
|
-
${N}px ${
|
|
338
|
-
${N + Me}px ${
|
|
339
|
-
${N + Me}px ${
|
|
340
|
-
${N}px ${
|
|
337
|
+
${N}px ${L}px,
|
|
338
|
+
${N + Me}px ${L}px,
|
|
339
|
+
${N + Me}px ${L + _e}px,
|
|
340
|
+
${N}px ${L + _e}px,
|
|
341
341
|
${N}px 100%,
|
|
342
342
|
100% 100%,
|
|
343
343
|
100% 0%
|
|
@@ -345,7 +345,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
345
345
|
};
|
|
346
346
|
}), S = () => {
|
|
347
347
|
if (!c.value || !v.value) return;
|
|
348
|
-
const N = c.value,
|
|
348
|
+
const N = c.value, L = v.value, Me = L.offsetWidth, _e = L.offsetHeight, se = N.naturalWidth / N.naturalHeight, Ve = Me / _e;
|
|
349
349
|
let re, I;
|
|
350
350
|
se > Ve ? (re = Me, I = Me / se) : (I = _e, re = _e * se), d.value = {
|
|
351
351
|
width: re,
|
|
@@ -366,30 +366,30 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
366
366
|
height: N
|
|
367
367
|
}, te();
|
|
368
368
|
}, p = (N) => {
|
|
369
|
-
U.value = !0, R.value = { x: N.clientX, y: N.clientY }, q.value = { ...M.value }, document.addEventListener("mousemove", m), document.addEventListener("mouseup",
|
|
369
|
+
U.value = !0, R.value = { x: N.clientX, y: N.clientY }, q.value = { ...M.value }, document.addEventListener("mousemove", m), document.addEventListener("mouseup", $);
|
|
370
370
|
}, m = (N) => {
|
|
371
371
|
if (U.value) {
|
|
372
|
-
const
|
|
373
|
-
let _e = q.value.x +
|
|
372
|
+
const L = N.clientX - R.value.x, Me = N.clientY - R.value.y;
|
|
373
|
+
let _e = q.value.x + L, se = q.value.y + Me;
|
|
374
374
|
_e = Math.max(0, Math.min(_e, d.value.width - M.value.width)), se = Math.max(0, Math.min(se, d.value.height - M.value.height)), M.value.x = _e, M.value.y = se, te();
|
|
375
375
|
} else O.value && oe(N);
|
|
376
|
-
},
|
|
377
|
-
U.value = !1, O.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup",
|
|
378
|
-
}, z = (N,
|
|
379
|
-
O.value = !0, j.value =
|
|
376
|
+
}, $ = () => {
|
|
377
|
+
U.value = !1, O.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", $);
|
|
378
|
+
}, z = (N, L) => {
|
|
379
|
+
O.value = !0, j.value = L, R.value = { x: N.clientX, y: N.clientY }, q.value = { ...M.value }, document.addEventListener("mousemove", m), document.addEventListener("mouseup", $);
|
|
380
380
|
}, oe = (N) => {
|
|
381
|
-
const
|
|
381
|
+
const L = N.clientX - R.value.x, Me = N.clientY - R.value.y, _e = j.value;
|
|
382
382
|
let se = { ...q.value };
|
|
383
|
-
const Ve = Math.max(Math.abs(
|
|
383
|
+
const Ve = Math.max(Math.abs(L), Math.abs(Me)) * (L < 0 || Me < 0 ? -1 : 1);
|
|
384
384
|
_e.includes("n") && (se.y = q.value.y + Ve, se.height = q.value.height - Ve), _e.includes("s") && (se.height = q.value.height + Ve), _e.includes("w") && (se.x = q.value.x + Ve, se.width = q.value.width - Ve), _e.includes("e") && (se.width = q.value.width + Ve);
|
|
385
385
|
const re = Math.max(50, Math.min(se.width, se.height));
|
|
386
386
|
_e.includes("n") && (se.y = q.value.y + q.value.height - re), _e.includes("w") && (se.x = q.value.x + q.value.width - re), se.width = re, se.height = re, se.x = Math.max(0, Math.min(se.x, d.value.width - se.width)), se.y = Math.max(0, Math.min(se.y, d.value.height - se.height)), M.value = se, te();
|
|
387
387
|
}, te = () => {
|
|
388
388
|
if (!k.value || !c.value) return;
|
|
389
|
-
const
|
|
390
|
-
if (!
|
|
389
|
+
const L = k.value.getContext("2d");
|
|
390
|
+
if (!L) return;
|
|
391
391
|
const Me = d.value.naturalWidth / d.value.width;
|
|
392
|
-
|
|
392
|
+
L.clearRect(0, 0, 80, 80), L.drawImage(
|
|
393
393
|
c.value,
|
|
394
394
|
M.value.x * Me,
|
|
395
395
|
M.value.y * Me,
|
|
@@ -402,8 +402,8 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
402
402
|
);
|
|
403
403
|
}, W = () => {
|
|
404
404
|
if (!c.value) return;
|
|
405
|
-
const N = document.createElement("canvas"),
|
|
406
|
-
N.width =
|
|
405
|
+
const N = document.createElement("canvas"), L = 300;
|
|
406
|
+
N.width = L, N.height = L;
|
|
407
407
|
const Me = N.getContext("2d");
|
|
408
408
|
if (!Me) return;
|
|
409
409
|
const _e = d.value.naturalWidth / d.value.width;
|
|
@@ -415,19 +415,19 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
415
415
|
M.value.height * _e,
|
|
416
416
|
0,
|
|
417
417
|
0,
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
L,
|
|
419
|
+
L
|
|
420
420
|
), N.toBlob((se) => {
|
|
421
421
|
se && (y("confirm", se), u.value = !1);
|
|
422
422
|
}, "image/jpeg", 0.9);
|
|
423
423
|
}, G = () => {
|
|
424
424
|
y("cancel");
|
|
425
425
|
};
|
|
426
|
-
return (N,
|
|
426
|
+
return (N, L) => {
|
|
427
427
|
const Me = C("t-button"), _e = C("t-dialog");
|
|
428
428
|
return l(), B(_e, {
|
|
429
429
|
visible: u.value,
|
|
430
|
-
"onUpdate:visible":
|
|
430
|
+
"onUpdate:visible": L[10] || (L[10] = (se) => u.value = se),
|
|
431
431
|
header: "裁剪头像",
|
|
432
432
|
width: 500,
|
|
433
433
|
footer: !1,
|
|
@@ -444,7 +444,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
444
444
|
class: "image-wrapper",
|
|
445
445
|
ref_key: "imageWrapperRef",
|
|
446
446
|
ref: x,
|
|
447
|
-
style: Ie(
|
|
447
|
+
style: Ie(H.value)
|
|
448
448
|
}, [
|
|
449
449
|
e("img", {
|
|
450
450
|
ref_key: "imageRef",
|
|
@@ -453,9 +453,9 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
453
453
|
class: "crop-image",
|
|
454
454
|
draggable: "false",
|
|
455
455
|
onLoad: S,
|
|
456
|
-
onDragstart:
|
|
456
|
+
onDragstart: L[0] || (L[0] = qe(() => {
|
|
457
457
|
}, ["prevent"])),
|
|
458
|
-
onContextmenu:
|
|
458
|
+
onContextmenu: L[1] || (L[1] = qe(() => {
|
|
459
459
|
}, ["prevent"]))
|
|
460
460
|
}, null, 40, jl),
|
|
461
461
|
e("div", {
|
|
@@ -467,8 +467,8 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
467
467
|
style: Ie(me.value),
|
|
468
468
|
onMousedown: p
|
|
469
469
|
}, [
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
L[11] || (L[11] = e("div", { class: "crop-box-border" }, null, -1)),
|
|
471
|
+
L[12] || (L[12] = e("div", { class: "crop-box-grid" }, [
|
|
472
472
|
e("div", {
|
|
473
473
|
class: "grid-line grid-line-h",
|
|
474
474
|
style: { top: "33.33%" }
|
|
@@ -488,41 +488,41 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
488
488
|
], -1)),
|
|
489
489
|
e("div", {
|
|
490
490
|
class: "resize-handle handle-nw",
|
|
491
|
-
onMousedown:
|
|
491
|
+
onMousedown: L[2] || (L[2] = qe((se) => z(se, "nw"), ["stop"]))
|
|
492
492
|
}, null, 32),
|
|
493
493
|
e("div", {
|
|
494
494
|
class: "resize-handle handle-n",
|
|
495
|
-
onMousedown:
|
|
495
|
+
onMousedown: L[3] || (L[3] = qe((se) => z(se, "n"), ["stop"]))
|
|
496
496
|
}, null, 32),
|
|
497
497
|
e("div", {
|
|
498
498
|
class: "resize-handle handle-ne",
|
|
499
|
-
onMousedown:
|
|
499
|
+
onMousedown: L[4] || (L[4] = qe((se) => z(se, "ne"), ["stop"]))
|
|
500
500
|
}, null, 32),
|
|
501
501
|
e("div", {
|
|
502
502
|
class: "resize-handle handle-e",
|
|
503
|
-
onMousedown:
|
|
503
|
+
onMousedown: L[5] || (L[5] = qe((se) => z(se, "e"), ["stop"]))
|
|
504
504
|
}, null, 32),
|
|
505
505
|
e("div", {
|
|
506
506
|
class: "resize-handle handle-se",
|
|
507
|
-
onMousedown:
|
|
507
|
+
onMousedown: L[6] || (L[6] = qe((se) => z(se, "se"), ["stop"]))
|
|
508
508
|
}, null, 32),
|
|
509
509
|
e("div", {
|
|
510
510
|
class: "resize-handle handle-s",
|
|
511
|
-
onMousedown:
|
|
511
|
+
onMousedown: L[7] || (L[7] = qe((se) => z(se, "s"), ["stop"]))
|
|
512
512
|
}, null, 32),
|
|
513
513
|
e("div", {
|
|
514
514
|
class: "resize-handle handle-sw",
|
|
515
|
-
onMousedown:
|
|
515
|
+
onMousedown: L[8] || (L[8] = qe((se) => z(se, "sw"), ["stop"]))
|
|
516
516
|
}, null, 32),
|
|
517
517
|
e("div", {
|
|
518
518
|
class: "resize-handle handle-w",
|
|
519
|
-
onMousedown:
|
|
519
|
+
onMousedown: L[9] || (L[9] = qe((se) => z(se, "w"), ["stop"]))
|
|
520
520
|
}, null, 32)
|
|
521
521
|
], 36)
|
|
522
522
|
], 4)
|
|
523
523
|
], 512),
|
|
524
524
|
e("div", Jl, [
|
|
525
|
-
|
|
525
|
+
L[13] || (L[13] = e("div", { class: "preview-title" }, "预览", -1)),
|
|
526
526
|
e("canvas", {
|
|
527
527
|
ref_key: "previewCanvasRef",
|
|
528
528
|
ref: k,
|
|
@@ -537,7 +537,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
537
537
|
variant: "outline",
|
|
538
538
|
onClick: G
|
|
539
539
|
}, {
|
|
540
|
-
default: o(() => [...
|
|
540
|
+
default: o(() => [...L[14] || (L[14] = [
|
|
541
541
|
A("取消", -1)
|
|
542
542
|
])]),
|
|
543
543
|
_: 1
|
|
@@ -546,7 +546,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
546
546
|
theme: "primary",
|
|
547
547
|
onClick: W
|
|
548
548
|
}, {
|
|
549
|
-
default: o(() => [...
|
|
549
|
+
default: o(() => [...L[15] || (L[15] = [
|
|
550
550
|
A("确认", -1)
|
|
551
551
|
])]),
|
|
552
552
|
_: 1
|
|
@@ -611,16 +611,16 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
611
611
|
var m;
|
|
612
612
|
const i = S.target, p = (m = i.files) == null ? void 0 : m[0];
|
|
613
613
|
if (p) {
|
|
614
|
-
const
|
|
615
|
-
|
|
614
|
+
const $ = new FileReader();
|
|
615
|
+
$.onload = (z) => {
|
|
616
616
|
var oe;
|
|
617
617
|
M.value = (oe = z.target) == null ? void 0 : oe.result, k.value = !0;
|
|
618
|
-
},
|
|
618
|
+
}, $.readAsDataURL(p), i.value = "";
|
|
619
619
|
}
|
|
620
620
|
}, j = (S) => {
|
|
621
621
|
const i = new File([S], "avatar.jpg", { type: "image/jpeg" });
|
|
622
622
|
y("avatar-upload", i);
|
|
623
|
-
}, R = ce(() => ({ online: "success", offline: "default", busy: "danger", away: "warning" })[s.modelValue.status || "online"]), q = ce(() => ({ online: "ri-checkbox-circle-fill", offline: "ri-checkbox-blank-circle-line", busy: "ri-forbid-line", away: "ri-time-line" })[s.modelValue.status || "online"]), me = ce(() => ({ online: "在线", offline: "离线", busy: "忙碌", away: "离开" })[s.modelValue.status || "online"]),
|
|
623
|
+
}, R = ce(() => ({ online: "success", offline: "default", busy: "danger", away: "warning" })[s.modelValue.status || "online"]), q = ce(() => ({ online: "ri-checkbox-circle-fill", offline: "ri-checkbox-blank-circle-line", busy: "ri-forbid-line", away: "ri-time-line" })[s.modelValue.status || "online"]), me = ce(() => ({ online: "在线", offline: "离线", busy: "忙碌", away: "离开" })[s.modelValue.status || "online"]), H = ce(() => (s.modelValue.displayName || "").charAt(0).toUpperCase()), g = ce(() => {
|
|
624
624
|
const S = [
|
|
625
625
|
"#1890ff",
|
|
626
626
|
"#52c41a",
|
|
@@ -637,7 +637,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
637
637
|
return S[Math.abs(p) % S.length];
|
|
638
638
|
});
|
|
639
639
|
return (S, i) => {
|
|
640
|
-
var
|
|
640
|
+
var $;
|
|
641
641
|
const p = C("t-tag"), m = C("t-button");
|
|
642
642
|
return l(), t(ne, null, [
|
|
643
643
|
e("div", Ql, [
|
|
@@ -657,7 +657,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
657
657
|
key: 1,
|
|
658
658
|
class: "profile__avatar profile__avatar-placeholder",
|
|
659
659
|
style: Ie({ backgroundColor: g.value })
|
|
660
|
-
}, _(
|
|
660
|
+
}, _(H.value), 5)),
|
|
661
661
|
a.inlineEdit ? (l(), t("div", {
|
|
662
662
|
key: 2,
|
|
663
663
|
class: "profile__avatar-edit",
|
|
@@ -849,7 +849,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
849
849
|
e("i", { class: "ri-price-tag-3-line" }),
|
|
850
850
|
A(" 标签")
|
|
851
851
|
], -1)),
|
|
852
|
-
(
|
|
852
|
+
($ = a.modelValue.tags) != null && $.length ? (l(), t("div", xt, [
|
|
853
853
|
(l(!0), t(ne, null, ve(a.modelValue.tags, (z) => (l(), B(p, {
|
|
854
854
|
key: z,
|
|
855
855
|
size: "small",
|
|
@@ -1017,23 +1017,23 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1017
1017
|
v.value = "profile", c.value = !0, setTimeout(() => {
|
|
1018
1018
|
u.value = !1;
|
|
1019
1019
|
}, 100);
|
|
1020
|
-
},
|
|
1020
|
+
}, H = (m) => {
|
|
1021
1021
|
u.value = !1, m.panel && (v.value = m.panel, c.value = !0), y("menu-click", m);
|
|
1022
1022
|
}, g = (m) => {
|
|
1023
1023
|
v.value = m.key;
|
|
1024
1024
|
}, S = () => {
|
|
1025
1025
|
y("edit");
|
|
1026
|
-
}, i = (m,
|
|
1027
|
-
y("field-change", m,
|
|
1026
|
+
}, i = (m, $) => {
|
|
1027
|
+
y("field-change", m, $);
|
|
1028
1028
|
}, p = () => {
|
|
1029
1029
|
u.value = !1, y("logout");
|
|
1030
1030
|
};
|
|
1031
|
-
return (m,
|
|
1031
|
+
return (m, $) => {
|
|
1032
1032
|
const z = C("t-popup");
|
|
1033
1033
|
return l(), t(ne, null, [
|
|
1034
1034
|
r(z, {
|
|
1035
1035
|
modelValue: u.value,
|
|
1036
|
-
"onUpdate:modelValue":
|
|
1036
|
+
"onUpdate:modelValue": $[3] || ($[3] = (oe) => u.value = oe),
|
|
1037
1037
|
placement: "bottom-right",
|
|
1038
1038
|
trigger: "click",
|
|
1039
1039
|
"overlay-style": { padding: 0 },
|
|
@@ -1071,20 +1071,20 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1071
1071
|
ia(e("div", qt, [
|
|
1072
1072
|
e("div", {
|
|
1073
1073
|
class: "cd-usercard-status-option cd-usercard-status-badge--online",
|
|
1074
|
-
onClick:
|
|
1075
|
-
}, [
|
|
1074
|
+
onClick: $[0] || ($[0] = (W) => q("online"))
|
|
1075
|
+
}, [...$[6] || ($[6] = [
|
|
1076
1076
|
e("span", null, "在线", -1)
|
|
1077
1077
|
])]),
|
|
1078
1078
|
e("div", {
|
|
1079
1079
|
class: "cd-usercard-status-option cd-usercard-status-badge--dnd",
|
|
1080
|
-
onClick:
|
|
1081
|
-
}, [
|
|
1080
|
+
onClick: $[1] || ($[1] = (W) => q("dnd"))
|
|
1081
|
+
}, [...$[7] || ($[7] = [
|
|
1082
1082
|
e("span", null, "请勿打扰", -1)
|
|
1083
1083
|
])]),
|
|
1084
1084
|
e("div", {
|
|
1085
1085
|
class: "cd-usercard-status-option cd-usercard-status-badge--mute",
|
|
1086
|
-
onClick:
|
|
1087
|
-
}, [
|
|
1086
|
+
onClick: $[2] || ($[2] = (W) => q("mute"))
|
|
1087
|
+
}, [...$[8] || ($[8] = [
|
|
1088
1088
|
e("span", null, "静音", -1)
|
|
1089
1089
|
])])
|
|
1090
1090
|
], 512), [
|
|
@@ -1100,20 +1100,20 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1100
1100
|
(l(!0), t(ne, null, ve(a.menuItems, (W) => (l(), t("div", {
|
|
1101
1101
|
key: W.key,
|
|
1102
1102
|
class: "cd-usercard-menu-item",
|
|
1103
|
-
onClick: (G) =>
|
|
1103
|
+
onClick: (G) => H(W)
|
|
1104
1104
|
}, [
|
|
1105
1105
|
e("i", {
|
|
1106
1106
|
class: be(W.icon)
|
|
1107
1107
|
}, null, 2),
|
|
1108
1108
|
e("span", null, _(W.label), 1),
|
|
1109
|
-
|
|
1109
|
+
$[9] || ($[9] = e("i", { class: "ri-arrow-right-s-line cd-usercard-ml-auto" }, null, -1))
|
|
1110
1110
|
], 8, Wt))), 128))
|
|
1111
1111
|
]),
|
|
1112
1112
|
a.showLogout ? (l(), t("div", Yt, [
|
|
1113
1113
|
e("div", {
|
|
1114
1114
|
class: "cd-usercard-menu-item cd-usercard-logout-item",
|
|
1115
1115
|
onClick: p
|
|
1116
|
-
}, [
|
|
1116
|
+
}, [...$[10] || ($[10] = [
|
|
1117
1117
|
e("i", { class: "ri-logout-box-line" }, null, -1),
|
|
1118
1118
|
e("span", null, "退出登录", -1)
|
|
1119
1119
|
])])
|
|
@@ -1138,7 +1138,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1138
1138
|
style: Ie({ backgroundColor: U.value, color: O.value })
|
|
1139
1139
|
}, _(P.value), 5)),
|
|
1140
1140
|
e("span", Jt, _((te = a.profileData) == null ? void 0 : te.displayName), 1),
|
|
1141
|
-
|
|
1141
|
+
$[11] || ($[11] = e("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
1142
1142
|
], 2)
|
|
1143
1143
|
];
|
|
1144
1144
|
}, !0)
|
|
@@ -1147,7 +1147,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1147
1147
|
}, 8, ["modelValue"]),
|
|
1148
1148
|
r(ll, {
|
|
1149
1149
|
visible: c.value,
|
|
1150
|
-
"onUpdate:visible":
|
|
1150
|
+
"onUpdate:visible": $[4] || ($[4] = (oe) => c.value = oe),
|
|
1151
1151
|
"profile-data": a.profileData,
|
|
1152
1152
|
"nav-items": a.menuItems,
|
|
1153
1153
|
"default-panel": v.value,
|
|
@@ -1157,7 +1157,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1157
1157
|
onNavClick: g,
|
|
1158
1158
|
onEdit: S,
|
|
1159
1159
|
onFieldChange: i,
|
|
1160
|
-
onAvatarUpload:
|
|
1160
|
+
onAvatarUpload: $[5] || ($[5] = (oe) => y("avatar-upload", oe))
|
|
1161
1161
|
}, null, 8, ["visible", "profile-data", "nav-items", "default-panel", "editable", "inline-edit"])
|
|
1162
1162
|
], 64);
|
|
1163
1163
|
};
|
|
@@ -1214,7 +1214,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1214
1214
|
emits: ["update:visible", "update:modelValue", "confirm", "load-users", "search", "org-change"],
|
|
1215
1215
|
setup(a, { expose: K, emit: s }) {
|
|
1216
1216
|
var y, u;
|
|
1217
|
-
const c = a, v = s, x = E(c.visible), k = E(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), M = E(null), d = E(""), P = E([]), U = E(/* @__PURE__ */ new Map()), O = E({}), j = E(!1), R = E(!1), q = E([]), me = ce(() => c.tabs || []),
|
|
1217
|
+
const c = a, v = s, x = E(c.visible), k = E(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), M = E(null), d = E(""), P = E([]), U = E(/* @__PURE__ */ new Map()), O = E({}), j = E(!1), R = E(!1), q = E([]), me = ce(() => c.tabs || []), H = ce(() => c.organizations || []), g = ce(() => c.tips || ""), S = ce(() => c.showSearch), i = ce(() => c.showOrg), p = ce(() => c.dialogWidth), m = E({});
|
|
1218
1218
|
$e(() => c.tabs, (de) => {
|
|
1219
1219
|
if (de && de.length > 0) {
|
|
1220
1220
|
const w = {};
|
|
@@ -1223,7 +1223,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1223
1223
|
}), m.value = w, (!k.value || !de.find((b) => b.key === k.value)) && (k.value = de[0].key);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, { immediate: !0, deep: !0 });
|
|
1226
|
-
function
|
|
1226
|
+
function $() {
|
|
1227
1227
|
if (c.modelValue && c.modelValue.length > 0) {
|
|
1228
1228
|
const de = c.modelValue[0];
|
|
1229
1229
|
typeof de == "object" && de !== null && "id" in de ? (P.value = c.modelValue.map((w) => w.id), U.value.clear(), c.modelValue.forEach((w) => {
|
|
@@ -1233,9 +1233,9 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1233
1233
|
P.value = [], U.value.clear();
|
|
1234
1234
|
}
|
|
1235
1235
|
$e(() => c.modelValue, (de) => {
|
|
1236
|
-
x.value && de &&
|
|
1236
|
+
x.value && de && $();
|
|
1237
1237
|
}, { deep: !0 }), $e(() => c.visible, (de) => {
|
|
1238
|
-
x.value = de, de && (
|
|
1238
|
+
x.value = de, de && ($(), c.organizations.length > 0 && !M.value && (M.value = c.organizations[0].id));
|
|
1239
1239
|
}), $e(x, (de) => {
|
|
1240
1240
|
v("update:visible", de);
|
|
1241
1241
|
});
|
|
@@ -1261,7 +1261,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1261
1261
|
}
|
|
1262
1262
|
const N = () => {
|
|
1263
1263
|
d.value = "";
|
|
1264
|
-
},
|
|
1264
|
+
}, L = (de) => {
|
|
1265
1265
|
const w = {};
|
|
1266
1266
|
c.tabs.forEach((b) => {
|
|
1267
1267
|
w[b.key] = [];
|
|
@@ -1300,7 +1300,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1300
1300
|
if (xe !== void 0) {
|
|
1301
1301
|
if (Fe.checked) {
|
|
1302
1302
|
c.multiple || (P.value = [], U.value.clear());
|
|
1303
|
-
const
|
|
1303
|
+
const V = c.tabs.find((ae) => ae.key === k.value), f = V ? V.name.replace(/^按/, "") : "";
|
|
1304
1304
|
W(xe, { ...Fe.data, typeName: f, orgId: M.value }), !c.multiple && (ke = Fe.data) != null && ke.isUser && he();
|
|
1305
1305
|
} else
|
|
1306
1306
|
G(xe);
|
|
@@ -1324,8 +1324,8 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1324
1324
|
v("load-users", { tabKey: w, nodeId: b, node: de, callback: async (Fe) => {
|
|
1325
1325
|
if (Fe.length > 0) {
|
|
1326
1326
|
const fe = Fe.map((J) => {
|
|
1327
|
-
const { id: xe, name:
|
|
1328
|
-
return { ...f, id: xe, name: J.displayName ||
|
|
1327
|
+
const { id: xe, name: V, ...f } = J;
|
|
1328
|
+
return { ...f, id: xe, name: J.displayName || V, isUser: !0 };
|
|
1329
1329
|
}), Y = m.value[w];
|
|
1330
1330
|
if (Y && ie(Y, b, fe), ke) {
|
|
1331
1331
|
ke.appendTo(b, fe), de.data.loaded = !0, await Xe();
|
|
@@ -1366,7 +1366,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}), (de, w) => {
|
|
1369
|
-
const b = C("t-icon"), ke = C("t-option"), Fe = C("t-select"), fe = C("t-input"), Y = C("t-button"), J = C("t-loading"), xe = C("t-checkbox"),
|
|
1369
|
+
const b = C("t-icon"), ke = C("t-option"), Fe = C("t-select"), fe = C("t-input"), Y = C("t-button"), J = C("t-loading"), xe = C("t-checkbox"), V = C("t-tree"), f = C("t-tab-panel"), ae = C("t-tabs"), ze = C("t-dialog");
|
|
1370
1370
|
return l(), B(ze, {
|
|
1371
1371
|
visible: x.value,
|
|
1372
1372
|
"onUpdate:visible": w[4] || (w[4] = (le) => x.value = le),
|
|
@@ -1385,16 +1385,16 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1385
1385
|
e("span", null, _(g.value), 1)
|
|
1386
1386
|
])) : T("", !0),
|
|
1387
1387
|
S.value ? (l(), t("div", Zt, [
|
|
1388
|
-
i.value &&
|
|
1388
|
+
i.value && H.value.length > 0 ? (l(), t("div", en, [
|
|
1389
1389
|
r(Fe, {
|
|
1390
1390
|
modelValue: M.value,
|
|
1391
1391
|
"onUpdate:modelValue": w[0] || (w[0] = (le) => M.value = le),
|
|
1392
1392
|
placeholder: "选择组织",
|
|
1393
1393
|
style: { width: "200px" },
|
|
1394
|
-
onChange:
|
|
1394
|
+
onChange: L
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: o(() => [
|
|
1397
|
-
(l(!0), t(ne, null, ve(
|
|
1397
|
+
(l(!0), t(ne, null, ve(H.value, (le) => (l(), B(ke, {
|
|
1398
1398
|
key: le.id,
|
|
1399
1399
|
value: le.id,
|
|
1400
1400
|
label: le.displayName || le.name
|
|
@@ -1485,7 +1485,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1485
1485
|
var Te;
|
|
1486
1486
|
return [
|
|
1487
1487
|
e("div", bn, [
|
|
1488
|
-
((Te = m.value[le.key]) == null ? void 0 : Te.length) > 0 ? (l(), B(
|
|
1488
|
+
((Te = m.value[le.key]) == null ? void 0 : Te.length) > 0 ? (l(), B(V, {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
ref_for: !0,
|
|
1491
1491
|
ref: (pe) => z(le.key, pe),
|
|
@@ -1641,13 +1641,13 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1641
1641
|
emits: ["update:modelValue", "search", "load-users"],
|
|
1642
1642
|
setup(a, { emit: K }) {
|
|
1643
1643
|
const s = a, y = K, u = E(!1), c = E([]), v = E(void 0), x = E(!1), k = E([]), M = E([]), d = E(!1), P = ce(() => {
|
|
1644
|
-
const m = new Set(M.value.map((
|
|
1644
|
+
const m = new Set(M.value.map(($) => $.id));
|
|
1645
1645
|
return [
|
|
1646
1646
|
...M.value,
|
|
1647
|
-
...c.value.filter((
|
|
1647
|
+
...c.value.filter(($) => !m.has($.id))
|
|
1648
1648
|
];
|
|
1649
1649
|
}), U = (m) => m ? m.substring(0, 2).toUpperCase() : "", O = (m) => {
|
|
1650
|
-
const
|
|
1650
|
+
const $ = [
|
|
1651
1651
|
"#1890ff",
|
|
1652
1652
|
"#52c41a",
|
|
1653
1653
|
"#faad14",
|
|
@@ -1660,18 +1660,18 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1660
1660
|
let z = 0;
|
|
1661
1661
|
for (let oe = 0; oe < m.length; oe++)
|
|
1662
1662
|
z = m.charCodeAt(oe) + ((z << 5) - z);
|
|
1663
|
-
return
|
|
1663
|
+
return $[Math.abs(z) % $.length];
|
|
1664
1664
|
}, j = (m) => {
|
|
1665
1665
|
m && m.trim() ? (d.value = !0, u.value = !0, y("search", {
|
|
1666
1666
|
keyword: m,
|
|
1667
|
-
callback: (
|
|
1668
|
-
c.value =
|
|
1667
|
+
callback: ($) => {
|
|
1668
|
+
c.value = $, u.value = !1;
|
|
1669
1669
|
}
|
|
1670
1670
|
})) : (c.value = [], u.value = !1, d.value = !1);
|
|
1671
1671
|
}, R = (m) => {
|
|
1672
1672
|
m && c.value.length === 0 && (d.value = !1);
|
|
1673
1673
|
}, q = (m) => {
|
|
1674
|
-
const
|
|
1674
|
+
const $ = Array.isArray(m) ? m : m ? [m] : [], z = s.modelValue.map((W) => W.id), oe = $.filter((W) => !z.includes(W)), te = z.filter((W) => !$.includes(W));
|
|
1675
1675
|
if (oe.length > 0) {
|
|
1676
1676
|
const W = oe.map((G) => P.value.find((N) => N.id === G)).filter(Boolean);
|
|
1677
1677
|
if (!s.multiple)
|
|
@@ -1686,14 +1686,14 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1686
1686
|
y("update:modelValue", W), M.value = W;
|
|
1687
1687
|
}
|
|
1688
1688
|
}, me = (m) => {
|
|
1689
|
-
const
|
|
1690
|
-
y("update:modelValue",
|
|
1691
|
-
},
|
|
1689
|
+
const $ = s.modelValue.filter((z) => z.id !== m);
|
|
1690
|
+
y("update:modelValue", $), M.value = $;
|
|
1691
|
+
}, H = (m) => {
|
|
1692
1692
|
m && typeof m.stopPropagation == "function" && m.stopPropagation(), m && typeof m.preventDefault == "function" && m.preventDefault(), d.value = !1, g();
|
|
1693
1693
|
}, g = () => {
|
|
1694
1694
|
x.value = !0;
|
|
1695
1695
|
}, S = (m) => {
|
|
1696
|
-
const
|
|
1696
|
+
const $ = m.map((z) => {
|
|
1697
1697
|
const oe = z.displayName || z.name || z.title || String(z.id);
|
|
1698
1698
|
return {
|
|
1699
1699
|
id: z.id,
|
|
@@ -1706,9 +1706,9 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1706
1706
|
};
|
|
1707
1707
|
});
|
|
1708
1708
|
if (!s.multiple)
|
|
1709
|
-
y("update:modelValue",
|
|
1709
|
+
y("update:modelValue", $.slice(0, 1)), M.value = $.slice(0, 1);
|
|
1710
1710
|
else {
|
|
1711
|
-
const z = new Set(s.modelValue.map((W) => W.id)), oe =
|
|
1711
|
+
const z = new Set(s.modelValue.map((W) => W.id)), oe = $.filter((W) => !z.has(W.id)), te = [...s.modelValue, ...oe];
|
|
1712
1712
|
y("update:modelValue", te), M.value = te;
|
|
1713
1713
|
}
|
|
1714
1714
|
x.value = !1;
|
|
@@ -1721,14 +1721,14 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1721
1721
|
});
|
|
1722
1722
|
};
|
|
1723
1723
|
return $e(() => s.modelValue, (m) => {
|
|
1724
|
-
s.multiple ? v.value = m.map((
|
|
1725
|
-
}, { immediate: !0, deep: !0 }), (m,
|
|
1724
|
+
s.multiple ? v.value = m.map(($) => $.id) : v.value = m.length > 0 ? m[0].id : void 0, k.value = m.map(($) => $.id), M.value = m;
|
|
1725
|
+
}, { immediate: !0, deep: !0 }), (m, $) => {
|
|
1726
1726
|
const z = C("t-icon"), oe = C("t-tag"), te = C("t-option"), W = C("t-select");
|
|
1727
1727
|
return l(), t("div", Nn, [
|
|
1728
1728
|
r(W, {
|
|
1729
1729
|
ref: "selectRef",
|
|
1730
1730
|
modelValue: v.value,
|
|
1731
|
-
"onUpdate:modelValue":
|
|
1731
|
+
"onUpdate:modelValue": $[0] || ($[0] = (G) => v.value = G),
|
|
1732
1732
|
multiple: a.multiple,
|
|
1733
1733
|
placeholder: a.placeholder,
|
|
1734
1734
|
filterable: !0,
|
|
@@ -1737,7 +1737,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1737
1737
|
"reserve-keyword": !1,
|
|
1738
1738
|
"allow-input": !0,
|
|
1739
1739
|
"popup-visible": d.value,
|
|
1740
|
-
"onUpdate:popupVisible":
|
|
1740
|
+
"onUpdate:popupVisible": $[1] || ($[1] = (G) => d.value = G),
|
|
1741
1741
|
size: "medium",
|
|
1742
1742
|
class: "cd-input-select__select",
|
|
1743
1743
|
onSearch: j,
|
|
@@ -1799,7 +1799,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1799
1799
|
fn: o(() => [
|
|
1800
1800
|
r(z, {
|
|
1801
1801
|
name: "search",
|
|
1802
|
-
onClick:
|
|
1802
|
+
onClick: H
|
|
1803
1803
|
})
|
|
1804
1804
|
]),
|
|
1805
1805
|
key: "0"
|
|
@@ -1809,7 +1809,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1809
1809
|
fn: o(() => [
|
|
1810
1810
|
e("i", {
|
|
1811
1811
|
class: "ri-add-circle-line cd-input-select__add-icon",
|
|
1812
|
-
onClick:
|
|
1812
|
+
onClick: H
|
|
1813
1813
|
})
|
|
1814
1814
|
]),
|
|
1815
1815
|
key: "1"
|
|
@@ -1818,9 +1818,9 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1818
1818
|
a.tabs && a.tabs.length > 0 && x.value ? (l(), B(nl, {
|
|
1819
1819
|
key: 0,
|
|
1820
1820
|
visible: x.value,
|
|
1821
|
-
"onUpdate:visible":
|
|
1821
|
+
"onUpdate:visible": $[2] || ($[2] = (G) => x.value = G),
|
|
1822
1822
|
modelValue: k.value,
|
|
1823
|
-
"onUpdate:modelValue":
|
|
1823
|
+
"onUpdate:modelValue": $[3] || ($[3] = (G) => k.value = G),
|
|
1824
1824
|
tabs: a.tabs,
|
|
1825
1825
|
organizations: a.organizations || [],
|
|
1826
1826
|
"show-org": !1,
|
|
@@ -1896,7 +1896,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1896
1896
|
width: `${s.avatarSize}px`,
|
|
1897
1897
|
height: `${s.avatarSize}px`,
|
|
1898
1898
|
fontSize: `${Math.floor(s.avatarSize / 3)}px`
|
|
1899
|
-
})), q = ce(() => Math.floor(s.avatarSize / 3)), me = ce(() => s.users.length <= s.maxDisplay ? s.users : s.users.slice(0, s.maxDisplay)),
|
|
1899
|
+
})), q = ce(() => Math.floor(s.avatarSize / 3)), me = ce(() => s.users.length <= s.maxDisplay ? s.users : s.users.slice(0, s.maxDisplay)), H = ce(() => s.users.length > s.maxDisplay), g = ce(() => s.users.length - s.maxDisplay), S = ce(() => s.users.map((re) => re.name).join("、")), i = (re, I) => {
|
|
1900
1900
|
if (re.isUser === !1) {
|
|
1901
1901
|
N(re, I);
|
|
1902
1902
|
return;
|
|
@@ -1920,7 +1920,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1920
1920
|
}, m = () => {
|
|
1921
1921
|
var re;
|
|
1922
1922
|
(re = c.value) != null && re.email && y("email-click", c.value.email, c.value);
|
|
1923
|
-
},
|
|
1923
|
+
}, $ = () => {
|
|
1924
1924
|
var re;
|
|
1925
1925
|
(re = c.value) != null && re.mobile && (k.value = !k.value, k.value && y("mobile-view", c.value.mobile, c.value));
|
|
1926
1926
|
}, z = () => {
|
|
@@ -1957,7 +1957,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
1957
1957
|
overflow: "auto",
|
|
1958
1958
|
zIndex: 9999
|
|
1959
1959
|
}, P.value = !0, y("dept-click", re);
|
|
1960
|
-
},
|
|
1960
|
+
}, L = () => {
|
|
1961
1961
|
P.value = !1, j.value = [];
|
|
1962
1962
|
}, Me = () => {
|
|
1963
1963
|
M.value = !0;
|
|
@@ -2033,7 +2033,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
2033
2033
|
]),
|
|
2034
2034
|
_: 1
|
|
2035
2035
|
})) : T("", !0),
|
|
2036
|
-
|
|
2036
|
+
H.value ? (l(), t("div", Xn, [
|
|
2037
2037
|
e("div", {
|
|
2038
2038
|
class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--more",
|
|
2039
2039
|
style: Ie({ width: R.value.width, height: R.value.height })
|
|
@@ -2173,7 +2173,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
2173
2173
|
default: o(() => [
|
|
2174
2174
|
e("i", {
|
|
2175
2175
|
class: "ri-eye-line cd-users-list-dialog__mobile-icon",
|
|
2176
|
-
onClick:
|
|
2176
|
+
onClick: $
|
|
2177
2177
|
})
|
|
2178
2178
|
]),
|
|
2179
2179
|
_: 1
|
|
@@ -2220,7 +2220,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
2220
2220
|
P.value ? (l(), t("div", {
|
|
2221
2221
|
key: 0,
|
|
2222
2222
|
class: "cd-users-list-overlay",
|
|
2223
|
-
onClick:
|
|
2223
|
+
onClick: L
|
|
2224
2224
|
}, [
|
|
2225
2225
|
e("div", {
|
|
2226
2226
|
class: "cd-users-list-popup-wrapper",
|
|
@@ -2941,8 +2941,8 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
2941
2941
|
y("submit", v.value), y("update", s.shortcutData.label, v.value), u.value = !1;
|
|
2942
2942
|
};
|
|
2943
2943
|
return (j, R) => {
|
|
2944
|
-
const q = C("t-input"), me = C("t-button"),
|
|
2945
|
-
return l(), B(
|
|
2944
|
+
const q = C("t-input"), me = C("t-button"), H = C("t-dialog");
|
|
2945
|
+
return l(), B(H, {
|
|
2946
2946
|
visible: u.value,
|
|
2947
2947
|
"onUpdate:visible": R[0] || (R[0] = (g) => u.value = g),
|
|
2948
2948
|
header: a.title,
|
|
@@ -3135,7 +3135,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
3135
3135
|
y("toggle", U);
|
|
3136
3136
|
}, P = (U) => U >= 100 ? "#52c41a" : U >= 50 ? "#1890ff" : "#faad14";
|
|
3137
3137
|
return (U, O) => {
|
|
3138
|
-
const j = C("t-radio-button"), R = C("t-radio-group"), q = C("t-checkbox"), me = C("t-tag"),
|
|
3138
|
+
const j = C("t-radio-button"), R = C("t-radio-group"), q = C("t-checkbox"), me = C("t-tag"), H = C("t-progress");
|
|
3139
3139
|
return l(), t("div", Ls, [
|
|
3140
3140
|
e("h3", null, [
|
|
3141
3141
|
O[1] || (O[1] = e("i", { class: "ri-task-line" }, null, -1)),
|
|
@@ -3222,7 +3222,7 @@ const gl = { class: "cd-usercard__header" }, hl = { class: "cd-usercard__avatar-
|
|
|
3222
3222
|
])
|
|
3223
3223
|
]),
|
|
3224
3224
|
a.showProgress && g.progress !== void 0 ? (l(), t("div", ei, [
|
|
3225
|
-
r(
|
|
3225
|
+
r(H, {
|
|
3226
3226
|
percentage: g.progress,
|
|
3227
3227
|
size: "small",
|
|
3228
3228
|
color: P(g.progress)
|
|
@@ -3848,81 +3848,81 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
3848
3848
|
setup(a, { emit: K }) {
|
|
3849
3849
|
const s = a, y = K, u = ce({
|
|
3850
3850
|
get: () => s.visible,
|
|
3851
|
-
set: (
|
|
3852
|
-
}), c = E(["ai"]), v = E(""), x = E(""), k = E("auto"), M = E([]), d = E(!1), P = ce(() => s.columns.map((
|
|
3853
|
-
label:
|
|
3854
|
-
value:
|
|
3851
|
+
set: (H) => y("update:visible", H)
|
|
3852
|
+
}), c = E(["ai"]), v = E(""), x = E(""), k = E("auto"), M = E([]), d = E(!1), P = ce(() => s.columns.map((H) => ({
|
|
3853
|
+
label: H.title || H.label,
|
|
3854
|
+
value: H.field || H.value
|
|
3855
3855
|
}))), U = ce(() => {
|
|
3856
|
-
const
|
|
3857
|
-
if (!
|
|
3856
|
+
const H = x.value.trim();
|
|
3857
|
+
if (!H) return [];
|
|
3858
3858
|
let g = [];
|
|
3859
|
-
if (
|
|
3859
|
+
if (H.split(`
|
|
3860
3860
|
`).filter((m) => m.trim() !== "").forEach((m) => {
|
|
3861
|
-
let
|
|
3861
|
+
let $ = [];
|
|
3862
3862
|
if (k.value === "auto")
|
|
3863
|
-
m.includes(" ") ?
|
|
3863
|
+
m.includes(" ") ? $ = m.split(" ") : m.includes("|") ? $ = m.split("|") : m.includes(",") || m.includes(",") ? $ = m.split(/[,,]/) : m.includes("&") ? $ = m.split("&") : $ = m.split(/\s+/);
|
|
3864
3864
|
else
|
|
3865
3865
|
switch (k.value) {
|
|
3866
3866
|
case "space":
|
|
3867
|
-
|
|
3867
|
+
$ = m.split(/\s+/);
|
|
3868
3868
|
break;
|
|
3869
3869
|
case "comma":
|
|
3870
|
-
|
|
3870
|
+
$ = m.split(/[,,]/);
|
|
3871
3871
|
break;
|
|
3872
3872
|
case "pipe":
|
|
3873
|
-
|
|
3873
|
+
$ = m.split("|");
|
|
3874
3874
|
break;
|
|
3875
3875
|
case "and":
|
|
3876
|
-
|
|
3876
|
+
$ = m.split("&");
|
|
3877
3877
|
break;
|
|
3878
3878
|
case "tab":
|
|
3879
|
-
|
|
3879
|
+
$ = m.split(" ");
|
|
3880
3880
|
break;
|
|
3881
3881
|
}
|
|
3882
|
-
const z =
|
|
3882
|
+
const z = $.map((oe) => oe.trim()).filter((oe) => oe !== "");
|
|
3883
3883
|
z.length > 0 && g.push(z);
|
|
3884
3884
|
}), g.length === 0) return [];
|
|
3885
3885
|
const i = Math.max(...g.map((m) => m.length)), p = [];
|
|
3886
3886
|
for (let m = 0; m < i; m++) {
|
|
3887
|
-
const
|
|
3887
|
+
const $ = [];
|
|
3888
3888
|
g.forEach((z) => {
|
|
3889
|
-
z[m] !== void 0 &&
|
|
3890
|
-
}), p.push(
|
|
3889
|
+
z[m] !== void 0 && $.push(z[m]);
|
|
3890
|
+
}), p.push($);
|
|
3891
3891
|
}
|
|
3892
3892
|
return p;
|
|
3893
3893
|
}), O = ce(() => {
|
|
3894
|
-
const
|
|
3895
|
-
if (
|
|
3896
|
-
const g = Math.max(...
|
|
3894
|
+
const H = U.value;
|
|
3895
|
+
if (H.length === 0) return [];
|
|
3896
|
+
const g = Math.max(...H.map((i) => i.length)), S = [];
|
|
3897
3897
|
for (let i = 0; i < g; i++) {
|
|
3898
3898
|
const p = {
|
|
3899
3899
|
_X_ROW_KEY: `row_${Date.now()}_${i}_${Math.random().toString(36).substr(2, 9)}`
|
|
3900
3900
|
};
|
|
3901
|
-
|
|
3902
|
-
const z = M.value[
|
|
3901
|
+
H.forEach((m, $) => {
|
|
3902
|
+
const z = M.value[$];
|
|
3903
3903
|
z && m[i] !== void 0 && (p[z] = m[i]);
|
|
3904
3904
|
}), S.push(p);
|
|
3905
3905
|
}
|
|
3906
3906
|
return S;
|
|
3907
3907
|
}), j = ce(() => {
|
|
3908
|
-
const
|
|
3908
|
+
const H = [];
|
|
3909
3909
|
return U.value.forEach((g, S) => {
|
|
3910
3910
|
var m;
|
|
3911
|
-
const i = M.value[S], p = i ? ((m = P.value.find((
|
|
3912
|
-
|
|
3911
|
+
const i = M.value[S], p = i ? ((m = P.value.find(($) => $.value === i)) == null ? void 0 : m.label) || i : `第 ${S + 1} 列`;
|
|
3912
|
+
H.push({
|
|
3913
3913
|
colKey: i || `col_${S}`,
|
|
3914
3914
|
title: p,
|
|
3915
3915
|
width: 150,
|
|
3916
3916
|
ellipsis: !0
|
|
3917
3917
|
});
|
|
3918
|
-
}),
|
|
3919
|
-
}), R = ce(() => M.value.some((
|
|
3920
|
-
$e(() => U.value.length, (
|
|
3918
|
+
}), H;
|
|
3919
|
+
}), R = ce(() => M.value.some((H) => H !== void 0 && H !== ""));
|
|
3920
|
+
$e(() => U.value.length, (H) => {
|
|
3921
3921
|
const g = M.value;
|
|
3922
|
-
g.length <
|
|
3922
|
+
g.length < H ? M.value = [
|
|
3923
3923
|
...g,
|
|
3924
|
-
...new Array(
|
|
3925
|
-
] : g.length >
|
|
3924
|
+
...new Array(H - g.length).fill("")
|
|
3925
|
+
] : g.length > H && (M.value = g.slice(0, H));
|
|
3926
3926
|
});
|
|
3927
3927
|
const q = () => {
|
|
3928
3928
|
if (!R.value) {
|
|
@@ -3933,7 +3933,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
3933
3933
|
De.warning("请输入要添加的数据");
|
|
3934
3934
|
return;
|
|
3935
3935
|
}
|
|
3936
|
-
const
|
|
3936
|
+
const H = O.value.map((g) => {
|
|
3937
3937
|
const S = { ...g };
|
|
3938
3938
|
return s.fieldConfigs.forEach((i) => {
|
|
3939
3939
|
var m;
|
|
@@ -3959,7 +3959,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
3959
3959
|
}
|
|
3960
3960
|
}), S;
|
|
3961
3961
|
});
|
|
3962
|
-
y("add-data",
|
|
3962
|
+
y("add-data", H), De.success(`成功添加 ${H.length} 条数据`), x.value = "", M.value = [], u.value = !1;
|
|
3963
3963
|
}, me = () => {
|
|
3964
3964
|
if (!v.value.trim()) {
|
|
3965
3965
|
De.warning("请输入描述信息");
|
|
@@ -3969,10 +3969,10 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
3969
3969
|
d.value = !1;
|
|
3970
3970
|
}, 1e3);
|
|
3971
3971
|
};
|
|
3972
|
-
return $e(u, (
|
|
3973
|
-
|
|
3974
|
-
}), (
|
|
3975
|
-
const S = C("t-textarea"), i = C("t-form-item"), p = C("t-form"), m = C("t-button"),
|
|
3972
|
+
return $e(u, (H) => {
|
|
3973
|
+
H || (v.value = "", x.value = "", M.value = [], d.value = !1, c.value = ["ai"]);
|
|
3974
|
+
}), (H, g) => {
|
|
3975
|
+
const S = C("t-textarea"), i = C("t-form-item"), p = C("t-form"), m = C("t-button"), $ = C("t-space"), z = C("t-collapse-panel"), oe = C("t-radio"), te = C("t-radio-group"), W = C("t-select"), G = C("t-tag"), N = C("t-table"), L = C("t-collapse"), Me = C("t-dialog");
|
|
3976
3976
|
return l(), B(Me, {
|
|
3977
3977
|
visible: u.value,
|
|
3978
3978
|
"onUpdate:visible": g[5] || (g[5] = (_e) => u.value = _e),
|
|
@@ -3984,7 +3984,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
3984
3984
|
}, {
|
|
3985
3985
|
default: o(() => [
|
|
3986
3986
|
e("div", cd, [
|
|
3987
|
-
r(
|
|
3987
|
+
r(L, {
|
|
3988
3988
|
modelValue: c.value,
|
|
3989
3989
|
"onUpdate:modelValue": g[3] || (g[3] = (_e) => c.value = _e),
|
|
3990
3990
|
"default-value": ["ai"]
|
|
@@ -4014,7 +4014,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4014
4014
|
_: 1
|
|
4015
4015
|
}),
|
|
4016
4016
|
e("div", md, [
|
|
4017
|
-
r(
|
|
4017
|
+
r($, null, {
|
|
4018
4018
|
default: o(() => [
|
|
4019
4019
|
r(m, {
|
|
4020
4020
|
theme: "primary",
|
|
@@ -4172,7 +4172,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4172
4172
|
_: 1
|
|
4173
4173
|
}),
|
|
4174
4174
|
e("div", yd, [
|
|
4175
|
-
r(
|
|
4175
|
+
r($, null, {
|
|
4176
4176
|
default: o(() => [
|
|
4177
4177
|
r(m, {
|
|
4178
4178
|
theme: "primary",
|
|
@@ -4255,11 +4255,11 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4255
4255
|
const s = a, y = E(((Fe = s.field.__config__) == null ? void 0 : Fe.active) || ((J = (Y = (fe = s.field.__config__) == null ? void 0 : fe.children) == null ? void 0 : Y[0]) == null ? void 0 : J.name) || "1"), u = E(((xe = s.field.__config__) == null ? void 0 : xe.active) || []), c = E(), v = E(!1), x = ce(() => {
|
|
4256
4256
|
var ae;
|
|
4257
4257
|
if (N.value !== "vxeSubGrid") return [];
|
|
4258
|
-
const
|
|
4259
|
-
return !Array.isArray(
|
|
4258
|
+
const V = s.field.btnsList || ((ae = s.field.__config__) == null ? void 0 : ae.btnsList) || [];
|
|
4259
|
+
return !Array.isArray(V) || V.length === 0 ? [
|
|
4260
4260
|
{ value: "add", label: "新增", show: !0 },
|
|
4261
4261
|
{ value: "delete", label: "删除", show: !0 }
|
|
4262
|
-
] :
|
|
4262
|
+
] : V.filter((ze) => ze.show !== !1 && ze.allow !== !1);
|
|
4263
4263
|
}), k = E({
|
|
4264
4264
|
isEdit: !0,
|
|
4265
4265
|
isArrow: !0,
|
|
@@ -4270,8 +4270,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4270
4270
|
isEsc: !0,
|
|
4271
4271
|
isLastEnterAppendRow: !0
|
|
4272
4272
|
}), M = ce(() => {
|
|
4273
|
-
const
|
|
4274
|
-
return Array.isArray(
|
|
4273
|
+
const V = s.field.children || s.field.__config__.children || [];
|
|
4274
|
+
return Array.isArray(V) ? V.map((f) => {
|
|
4275
4275
|
const ae = f.__vModel__ || f.field;
|
|
4276
4276
|
return {
|
|
4277
4277
|
...f,
|
|
@@ -4282,8 +4282,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4282
4282
|
}
|
|
4283
4283
|
};
|
|
4284
4284
|
}) : [];
|
|
4285
|
-
}), d = (
|
|
4286
|
-
switch (
|
|
4285
|
+
}), d = (V) => {
|
|
4286
|
+
switch (V) {
|
|
4287
4287
|
case "add":
|
|
4288
4288
|
case "copy":
|
|
4289
4289
|
return "primary";
|
|
@@ -4296,18 +4296,18 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4296
4296
|
}
|
|
4297
4297
|
}, P = ce({
|
|
4298
4298
|
get() {
|
|
4299
|
-
const
|
|
4300
|
-
if (
|
|
4301
|
-
const f = s.formModel[
|
|
4299
|
+
const V = s.field.__vModel__;
|
|
4300
|
+
if (!V || N.value !== "table") return [];
|
|
4301
|
+
const f = s.formModel[V];
|
|
4302
4302
|
return Array.isArray(f) ? f : [];
|
|
4303
4303
|
},
|
|
4304
|
-
set(
|
|
4304
|
+
set(V) {
|
|
4305
4305
|
const f = s.field.__vModel__;
|
|
4306
|
-
f && G("change", f,
|
|
4306
|
+
f && G("change", f, V);
|
|
4307
4307
|
}
|
|
4308
4308
|
}), U = ce(() => {
|
|
4309
4309
|
if (N.value !== "table") return [];
|
|
4310
|
-
const
|
|
4310
|
+
const V = (s.field.__config__.children || []).map((f) => ({
|
|
4311
4311
|
colKey: f.__vModel__,
|
|
4312
4312
|
title: f.__config__.label,
|
|
4313
4313
|
width: f.width || "auto",
|
|
@@ -4315,32 +4315,32 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4315
4315
|
// 使用自定义单元格插槽
|
|
4316
4316
|
cell: `cell-${f.__vModel__}`
|
|
4317
4317
|
}));
|
|
4318
|
-
return W.value ||
|
|
4318
|
+
return W.value || V.push({
|
|
4319
4319
|
colKey: "action",
|
|
4320
4320
|
title: "操作",
|
|
4321
4321
|
width: 80,
|
|
4322
4322
|
align: "center",
|
|
4323
4323
|
cell: "cell-action"
|
|
4324
|
-
}),
|
|
4324
|
+
}), V;
|
|
4325
4325
|
}), O = ce(() => {
|
|
4326
4326
|
if (N.value !== "table") return [];
|
|
4327
|
-
const
|
|
4328
|
-
return !Array.isArray(
|
|
4327
|
+
const V = s.field.btnsList || [];
|
|
4328
|
+
return !Array.isArray(V) || V.length === 0 ? [
|
|
4329
4329
|
{ value: "copy", label: "复制", show: !0, position: "row" },
|
|
4330
4330
|
{ value: "remove", label: "删除", show: !0, btnType: "error", btnIcon: "ri-delete-bin-line", showConfirm: !0, position: "row" }
|
|
4331
|
-
] :
|
|
4331
|
+
] : V.filter((f) => f.show !== !1 && f.position === "row");
|
|
4332
4332
|
}), j = ce(() => {
|
|
4333
4333
|
if (N.value !== "table") return [];
|
|
4334
|
-
const
|
|
4335
|
-
return !Array.isArray(
|
|
4334
|
+
const V = s.field.btnsList || [];
|
|
4335
|
+
return !Array.isArray(V) || V.length === 0 ? [
|
|
4336
4336
|
{ value: "add", label: "添加", show: !0, btnType: "primary", btnIcon: "ri-add-line", position: "footer" },
|
|
4337
4337
|
{ value: "batchRemove", label: "批量删除", show: !0, btnType: "danger", btnIcon: "ri-delete-bin-line", showConfirm: !0, position: "footer" }
|
|
4338
|
-
] :
|
|
4338
|
+
] : V.filter((f) => f.show !== !1 && f.position === "footer");
|
|
4339
4339
|
}), R = ce({
|
|
4340
4340
|
get() {
|
|
4341
|
-
const
|
|
4342
|
-
if (
|
|
4343
|
-
const f = s.formModel[
|
|
4341
|
+
const V = s.field.__vModel__;
|
|
4342
|
+
if (!V || N.value !== "vxeSubGrid") return [];
|
|
4343
|
+
const f = s.formModel[V], ae = Array.isArray(f) ? f : [];
|
|
4344
4344
|
if (!W.value) {
|
|
4345
4345
|
const ze = [...ae], le = ze[ze.length - 1];
|
|
4346
4346
|
if (!(le && le._isEmpty)) {
|
|
@@ -4357,21 +4357,21 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4357
4357
|
}
|
|
4358
4358
|
return ae;
|
|
4359
4359
|
},
|
|
4360
|
-
set(
|
|
4360
|
+
set(V) {
|
|
4361
4361
|
const f = s.field.__vModel__;
|
|
4362
|
-
f && G("change", f,
|
|
4362
|
+
f && G("change", f, V);
|
|
4363
4363
|
}
|
|
4364
4364
|
}), q = ce(() => {
|
|
4365
4365
|
if (N.value !== "vxeSubGrid") return [];
|
|
4366
|
-
const
|
|
4367
|
-
if (!Array.isArray(
|
|
4366
|
+
const V = s.field.children || s.field.__config__.children || [];
|
|
4367
|
+
if (!Array.isArray(V) || V.length === 0) return [];
|
|
4368
4368
|
const f = [];
|
|
4369
4369
|
return W.value || f.push({
|
|
4370
4370
|
type: "checkbox",
|
|
4371
4371
|
width: 60,
|
|
4372
4372
|
fixed: "left",
|
|
4373
4373
|
align: "center"
|
|
4374
|
-
}),
|
|
4374
|
+
}), V.forEach((ae) => {
|
|
4375
4375
|
const ze = ae.__config__;
|
|
4376
4376
|
if (!ze || ze.noShow) return;
|
|
4377
4377
|
const le = ae.__vModel__ || ae.field;
|
|
@@ -4403,7 +4403,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4403
4403
|
}), me = ce(() => {
|
|
4404
4404
|
var ae;
|
|
4405
4405
|
if (N.value !== "vxeSubGrid") return {};
|
|
4406
|
-
const
|
|
4406
|
+
const V = s.field.__config__, f = {
|
|
4407
4407
|
border: s.field.border !== !1,
|
|
4408
4408
|
stripe: s.field.stripe !== !1,
|
|
4409
4409
|
showOverflow: !0,
|
|
@@ -4436,17 +4436,17 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4436
4436
|
// 数据量大于10条时启用虚拟滚动
|
|
4437
4437
|
}
|
|
4438
4438
|
};
|
|
4439
|
-
return (ae =
|
|
4439
|
+
return (ae = V.treeConfig) != null && ae.enabled && (f.treeConfig = {
|
|
4440
4440
|
transform: !0,
|
|
4441
4441
|
rowField: "_X_ROW_KEY",
|
|
4442
4442
|
parentField: "_X_PARENT_KEY",
|
|
4443
|
-
childrenField:
|
|
4444
|
-
indent:
|
|
4445
|
-
showLine:
|
|
4446
|
-
expandAll:
|
|
4447
|
-
accordion:
|
|
4448
|
-
trigger:
|
|
4449
|
-
showIcon:
|
|
4443
|
+
childrenField: V.treeConfig.children || V.treeConfig.childrenField || "children",
|
|
4444
|
+
indent: V.treeConfig.indent || 20,
|
|
4445
|
+
showLine: V.treeConfig.line !== !1 || V.treeConfig.showLine !== !1,
|
|
4446
|
+
expandAll: V.treeConfig.expandAll || !1,
|
|
4447
|
+
accordion: V.treeConfig.accordion || !1,
|
|
4448
|
+
trigger: V.treeConfig.trigger || "default",
|
|
4449
|
+
showIcon: V.treeConfig.showIcon !== !1
|
|
4450
4450
|
}), W.value || (f.editConfig = {
|
|
4451
4451
|
trigger: "click",
|
|
4452
4452
|
// 单击触发编辑
|
|
@@ -4463,12 +4463,12 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4463
4463
|
// return true;
|
|
4464
4464
|
// }
|
|
4465
4465
|
}), f;
|
|
4466
|
-
}),
|
|
4467
|
-
R.value =
|
|
4468
|
-
}, g = (
|
|
4469
|
-
|
|
4470
|
-
}, S = (
|
|
4471
|
-
switch (typeof
|
|
4466
|
+
}), H = (V) => {
|
|
4467
|
+
R.value = V;
|
|
4468
|
+
}, g = (V) => {
|
|
4469
|
+
V && V.value && S(V.value);
|
|
4470
|
+
}, S = (V) => {
|
|
4471
|
+
switch (typeof V == "string" ? V : V.value) {
|
|
4472
4472
|
case "add":
|
|
4473
4473
|
i();
|
|
4474
4474
|
break;
|
|
@@ -4483,12 +4483,12 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4483
4483
|
m();
|
|
4484
4484
|
break;
|
|
4485
4485
|
case "edit":
|
|
4486
|
-
|
|
4486
|
+
$();
|
|
4487
4487
|
break;
|
|
4488
4488
|
}
|
|
4489
4489
|
}, i = () => {
|
|
4490
|
-
const
|
|
4491
|
-
if (
|
|
4490
|
+
const V = s.field.__vModel__;
|
|
4491
|
+
if (!V) return;
|
|
4492
4492
|
const f = Array.isArray(R.value) ? R.value.filter((le) => !le._isEmpty) : [], ae = {
|
|
4493
4493
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
4494
4494
|
};
|
|
@@ -4524,67 +4524,67 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4524
4524
|
default:
|
|
4525
4525
|
ae[Te] = null;
|
|
4526
4526
|
}
|
|
4527
|
-
}), f.push(ae), G("change",
|
|
4527
|
+
}), f.push(ae), G("change", V, f);
|
|
4528
4528
|
}, p = async () => {
|
|
4529
4529
|
if (!c.value) return;
|
|
4530
|
-
const
|
|
4531
|
-
if (
|
|
4530
|
+
const V = c.value.getCheckboxRecords();
|
|
4531
|
+
if (!V || V.length === 0)
|
|
4532
4532
|
return;
|
|
4533
4533
|
const f = s.field.__vModel__;
|
|
4534
4534
|
if (!f) return;
|
|
4535
4535
|
const ze = (Array.isArray(R.value) ? R.value.filter((le) => !le._isEmpty) : []).filter(
|
|
4536
|
-
(le) =>
|
|
4536
|
+
(le) => !V.includes(le) && !le._isEmpty
|
|
4537
4537
|
);
|
|
4538
4538
|
G("change", f, ze), await c.value.clearCheckboxRow();
|
|
4539
4539
|
}, m = async () => {
|
|
4540
4540
|
if (!c.value) return;
|
|
4541
|
-
const
|
|
4542
|
-
if (
|
|
4541
|
+
const V = c.value.getCheckboxRecords();
|
|
4542
|
+
if (!V || V.length === 0 || !s.field.__vModel__) return;
|
|
4543
4543
|
const ae = Array.isArray(R.value) ? [...R.value] : [];
|
|
4544
|
-
|
|
4544
|
+
V.forEach((ze) => {
|
|
4545
4545
|
const le = {
|
|
4546
4546
|
...ze,
|
|
4547
4547
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
4548
4548
|
};
|
|
4549
4549
|
ae.push(le);
|
|
4550
4550
|
}), R.value = ae, await c.value.clearCheckboxRow();
|
|
4551
|
-
},
|
|
4551
|
+
}, $ = () => {
|
|
4552
4552
|
if (!c.value) return;
|
|
4553
|
-
const
|
|
4554
|
-
|
|
4555
|
-
}, z = ({ row:
|
|
4556
|
-
if (
|
|
4553
|
+
const V = c.value.getCheckboxRecords();
|
|
4554
|
+
!V || V.length;
|
|
4555
|
+
}, z = ({ row: V }) => {
|
|
4556
|
+
if (V._isEmpty && Object.keys(V).some((ae) => ae === "_X_ROW_KEY" || ae === "_isEmpty" ? !1 : V[ae] !== null && V[ae] !== void 0 && V[ae] !== "")) {
|
|
4557
4557
|
const ae = s.field.__vModel__;
|
|
4558
4558
|
if (!ae) return;
|
|
4559
|
-
const ze = Array.isArray(R.value) ? R.value.filter((Te) => !Te._isEmpty) : [], le = {
|
|
4559
|
+
const ze = Array.isArray(R.value) ? R.value.filter((Te) => !Te._isEmpty) : [], le = { ...V };
|
|
4560
4560
|
delete le._isEmpty, le._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, ze.push(le), G("change", ae, ze);
|
|
4561
4561
|
}
|
|
4562
|
-
}, oe = (
|
|
4562
|
+
}, oe = (V) => {
|
|
4563
4563
|
if (!s.field.__vModel__) return;
|
|
4564
4564
|
const ae = Array.isArray(R.value) ? [...R.value] : [];
|
|
4565
|
-
|
|
4565
|
+
V.forEach((ze) => {
|
|
4566
4566
|
ae.push(ze);
|
|
4567
4567
|
}), R.value = ae;
|
|
4568
|
-
}, te = (
|
|
4568
|
+
}, te = (V) => {
|
|
4569
4569
|
}, W = ce(() => s.field.__config__.cdkey === "calculate" ? !0 : s.disabled), G = K, N = ce(() => {
|
|
4570
|
-
const
|
|
4571
|
-
if (
|
|
4572
|
-
const f =
|
|
4570
|
+
const V = s.field.__config__;
|
|
4571
|
+
if (V.cdkey === "calculate") {
|
|
4572
|
+
const f = V.type || s.field.type;
|
|
4573
4573
|
if (f)
|
|
4574
4574
|
return f;
|
|
4575
4575
|
}
|
|
4576
|
-
return
|
|
4577
|
-
}),
|
|
4576
|
+
return V.cdkey;
|
|
4577
|
+
}), L = ce({
|
|
4578
4578
|
get() {
|
|
4579
|
-
const
|
|
4579
|
+
const V = s.field.__vModel__, f = V ? s.formModel[V] : null;
|
|
4580
4580
|
return N.value === "tag" ? Array.isArray(f) ? f : f == null || f === "" ? [] : [f] : (N.value === "select" || N.value === "checkbox") && s.field.multiple ? Array.isArray(f) ? f : f == null || f === "" ? [] : [f] : f;
|
|
4581
4581
|
},
|
|
4582
|
-
set(
|
|
4582
|
+
set(V) {
|
|
4583
4583
|
const f = s.field.__vModel__;
|
|
4584
|
-
f && G("change", f,
|
|
4584
|
+
f && G("change", f, V);
|
|
4585
4585
|
}
|
|
4586
|
-
}), Me = (
|
|
4587
|
-
switch (
|
|
4586
|
+
}), Me = (V) => {
|
|
4587
|
+
switch (V) {
|
|
4588
4588
|
case "datetime":
|
|
4589
4589
|
return "YYYY-MM-DD HH:mm:ss";
|
|
4590
4590
|
case "date":
|
|
@@ -4597,43 +4597,43 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4597
4597
|
return "YYYY-MM-DD";
|
|
4598
4598
|
}
|
|
4599
4599
|
}, _e = () => {
|
|
4600
|
-
}, se = (
|
|
4601
|
-
G("change", s.field.__vModel__ || "",
|
|
4602
|
-
}, Ve = (
|
|
4603
|
-
G("change", s.field.__vModel__ || "",
|
|
4600
|
+
}, se = (V) => {
|
|
4601
|
+
G("change", s.field.__vModel__ || "", V);
|
|
4602
|
+
}, Ve = (V) => {
|
|
4603
|
+
G("change", s.field.__vModel__ || "", L.value);
|
|
4604
4604
|
}, re = () => {
|
|
4605
4605
|
G("change", s.field.__vModel__ || "", "");
|
|
4606
|
-
}, I = (
|
|
4607
|
-
G("change", `__btn_${
|
|
4606
|
+
}, I = (V) => {
|
|
4607
|
+
G("change", `__btn_${V.__vModel__ || V.value || "click"}__`, { field: V });
|
|
4608
4608
|
}, Z = () => {
|
|
4609
4609
|
W.value || G("change", `__sign_${s.field.__vModel__ || "sign"}__`, { field: s.field, type: "sign" });
|
|
4610
4610
|
}, ie = () => {
|
|
4611
4611
|
W.value || G("change", `__signature_${s.field.__vModel__ || "signature"}__`, { field: s.field, type: "signature" });
|
|
4612
|
-
}, Ce = (
|
|
4612
|
+
}, Ce = (V) => {
|
|
4613
4613
|
const f = s.field;
|
|
4614
|
-
f.startField && f.endField && Array.isArray(
|
|
4614
|
+
f.startField && f.endField && Array.isArray(V) && (G("change", f.startField, V[0] || null), G("change", f.endField, V[1] || null)), G("change", f.__vModel__ || "", V);
|
|
4615
4615
|
}, Se = () => {
|
|
4616
|
-
const
|
|
4617
|
-
if (
|
|
4618
|
-
const f =
|
|
4619
|
-
return s.formModel[f] || s.formModel[
|
|
4616
|
+
const V = s.field.__vModel__;
|
|
4617
|
+
if (!V) return "";
|
|
4618
|
+
const f = V.replace(/Id$/, "Name");
|
|
4619
|
+
return s.formModel[f] || s.formModel[V] || "";
|
|
4620
4620
|
}, Pe = () => {
|
|
4621
|
-
const
|
|
4622
|
-
if (
|
|
4621
|
+
const V = s.field.__vModel__;
|
|
4622
|
+
if (!V)
|
|
4623
4623
|
return;
|
|
4624
4624
|
const f = {
|
|
4625
4625
|
cdkey: N.value,
|
|
4626
|
-
field:
|
|
4626
|
+
field: V,
|
|
4627
4627
|
label: s.field.__config__.label,
|
|
4628
4628
|
multiple: s.field.multiple || !1,
|
|
4629
|
-
currentValue: s.formModel[
|
|
4629
|
+
currentValue: s.formModel[V]
|
|
4630
4630
|
};
|
|
4631
4631
|
G("select-org-data", f);
|
|
4632
4632
|
}, he = () => {
|
|
4633
|
-
const
|
|
4634
|
-
if (
|
|
4635
|
-
G("change",
|
|
4636
|
-
const f =
|
|
4633
|
+
const V = s.field.__vModel__;
|
|
4634
|
+
if (!V) return;
|
|
4635
|
+
G("change", V, null);
|
|
4636
|
+
const f = V.replace(/Id$/, "Name");
|
|
4637
4637
|
s.formModel[f] !== void 0 && G("change", f, "");
|
|
4638
4638
|
}, We = () => {
|
|
4639
4639
|
if (!s.field.__vModel__) return;
|
|
@@ -4662,22 +4662,22 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4662
4662
|
});
|
|
4663
4663
|
const ae = Array.isArray(P.value) ? [...P.value] : [];
|
|
4664
4664
|
ae.push(f), P.value = ae;
|
|
4665
|
-
}, de = (
|
|
4665
|
+
}, de = (V) => {
|
|
4666
4666
|
const f = Array.isArray(P.value) ? [...P.value] : [];
|
|
4667
|
-
f.splice(
|
|
4668
|
-
}, w = (
|
|
4667
|
+
f.splice(V, 1), P.value = f;
|
|
4668
|
+
}, w = (V) => {
|
|
4669
4669
|
const f = Array.isArray(P.value) ? [...P.value] : [];
|
|
4670
|
-
if (f[
|
|
4671
|
-
const ae = { ...f[
|
|
4672
|
-
f.splice(
|
|
4670
|
+
if (f[V]) {
|
|
4671
|
+
const ae = { ...f[V] };
|
|
4672
|
+
f.splice(V + 1, 0, ae), P.value = f;
|
|
4673
4673
|
}
|
|
4674
|
-
}, b = (
|
|
4674
|
+
}, b = (V, f, ae) => {
|
|
4675
4675
|
const ze = Array.isArray(P.value) ? [...P.value] : [];
|
|
4676
|
-
ze[
|
|
4677
|
-
}, ke = (
|
|
4678
|
-
|
|
4676
|
+
ze[V] && (ze[V][f] = ae, P.value = ze);
|
|
4677
|
+
}, ke = (V) => {
|
|
4678
|
+
V.value === "batchRemove" && (P.value = []), G("change", `__btn_${V.value}__`, { btn: V, data: P.value });
|
|
4679
4679
|
};
|
|
4680
|
-
return (
|
|
4680
|
+
return (V, f) => {
|
|
4681
4681
|
const ae = C("t-input"), ze = C("t-textarea"), le = C("t-input-number"), Te = C("t-select"), pe = C("t-date-picker"), je = C("t-date-range-picker"), Ue = C("t-time-picker"), Ee = C("t-time-range-picker"), Ke = C("t-switch"), we = C("vxe-rate"), He = C("t-radio"), Be = C("t-radio-group"), na = C("t-checkbox"), wa = C("t-checkbox-group"), Sa = C("t-cascader"), za = C("t-tree-select"), Ca = C("t-auto-complete"), xa = C("t-upload"), ea = C("t-button"), Da = C("t-color-picker"), Ma = C("t-slider"), Aa = C("t-progress"), Ua = C("t-alert"), ua = C("t-link"), Ea = C("t-tag-input"), Fa = C("t-dropdown-item"), Pa = C("t-dropdown-menu"), Oa = C("t-dropdown"), Ia = C("vxe-grid"), oa = C("render-form-item", !0), ca = C("t-row"), Na = C("t-divider"), Ra = C("t-tab-panel"), Ta = C("t-tabs"), Ba = C("t-collapse-panel"), sa = C("t-collapse"), fa = C("t-popconfirm"), $a = C("t-space"), Va = C("t-table");
|
|
4682
4682
|
return a.field.__config__.layout === "colFormItem" ? (l(), B(cl(a.tableMode ? "div" : "t-form-item"), _a({
|
|
4683
4683
|
key: 0,
|
|
@@ -4690,8 +4690,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4690
4690
|
default: o(() => [
|
|
4691
4691
|
N.value === "input" ? (l(), B(ae, {
|
|
4692
4692
|
key: 0,
|
|
4693
|
-
modelValue:
|
|
4694
|
-
"onUpdate:modelValue": f[0] || (f[0] = (Q) =>
|
|
4693
|
+
modelValue: L.value,
|
|
4694
|
+
"onUpdate:modelValue": f[0] || (f[0] = (Q) => L.value = Q),
|
|
4695
4695
|
placeholder: a.field.placeholder,
|
|
4696
4696
|
disabled: W.value,
|
|
4697
4697
|
clearable: a.field.clearable !== !1,
|
|
@@ -4703,8 +4703,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4703
4703
|
onChange: se
|
|
4704
4704
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : N.value === "textarea" ? (l(), B(ze, {
|
|
4705
4705
|
key: 1,
|
|
4706
|
-
modelValue:
|
|
4707
|
-
"onUpdate:modelValue": f[1] || (f[1] = (Q) =>
|
|
4706
|
+
modelValue: L.value,
|
|
4707
|
+
"onUpdate:modelValue": f[1] || (f[1] = (Q) => L.value = Q),
|
|
4708
4708
|
placeholder: a.field.placeholder,
|
|
4709
4709
|
disabled: W.value,
|
|
4710
4710
|
readonly: a.field.readonly,
|
|
@@ -4716,8 +4716,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4716
4716
|
onChange: se
|
|
4717
4717
|
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : N.value === "number" ? (l(), B(le, {
|
|
4718
4718
|
key: 2,
|
|
4719
|
-
modelValue:
|
|
4720
|
-
"onUpdate:modelValue": f[2] || (f[2] = (Q) =>
|
|
4719
|
+
modelValue: L.value,
|
|
4720
|
+
"onUpdate:modelValue": f[2] || (f[2] = (Q) => L.value = Q),
|
|
4721
4721
|
placeholder: a.field.placeholder,
|
|
4722
4722
|
disabled: W.value,
|
|
4723
4723
|
min: a.field.min,
|
|
@@ -4726,8 +4726,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4726
4726
|
onChange: se
|
|
4727
4727
|
}, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : N.value === "select" ? (l(), B(Te, {
|
|
4728
4728
|
key: 3,
|
|
4729
|
-
modelValue:
|
|
4730
|
-
"onUpdate:modelValue": f[3] || (f[3] = (Q) =>
|
|
4729
|
+
modelValue: L.value,
|
|
4730
|
+
"onUpdate:modelValue": f[3] || (f[3] = (Q) => L.value = Q),
|
|
4731
4731
|
placeholder: a.field.placeholder,
|
|
4732
4732
|
disabled: W.value,
|
|
4733
4733
|
clearable: a.field.clearable !== !1,
|
|
@@ -4738,8 +4738,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4738
4738
|
onChange: se
|
|
4739
4739
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : N.value === "date" ? (l(), B(pe, {
|
|
4740
4740
|
key: 4,
|
|
4741
|
-
modelValue:
|
|
4742
|
-
"onUpdate:modelValue": f[4] || (f[4] = (Q) =>
|
|
4741
|
+
modelValue: L.value,
|
|
4742
|
+
"onUpdate:modelValue": f[4] || (f[4] = (Q) => L.value = Q),
|
|
4743
4743
|
placeholder: a.field.placeholder,
|
|
4744
4744
|
disabled: W.value,
|
|
4745
4745
|
clearable: a.field.clearable !== !1,
|
|
@@ -4749,8 +4749,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4749
4749
|
onChange: se
|
|
4750
4750
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : N.value === "dateRange" ? (l(), B(je, {
|
|
4751
4751
|
key: 5,
|
|
4752
|
-
modelValue:
|
|
4753
|
-
"onUpdate:modelValue": f[5] || (f[5] = (Q) =>
|
|
4752
|
+
modelValue: L.value,
|
|
4753
|
+
"onUpdate:modelValue": f[5] || (f[5] = (Q) => L.value = Q),
|
|
4754
4754
|
placeholder: a.field.placeholder || ["开始日期", "结束日期"],
|
|
4755
4755
|
disabled: W.value,
|
|
4756
4756
|
clearable: a.field.clearable !== !1,
|
|
@@ -4759,38 +4759,38 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4759
4759
|
onChange: Ce
|
|
4760
4760
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : N.value === "time" ? (l(), B(Ue, {
|
|
4761
4761
|
key: 6,
|
|
4762
|
-
modelValue:
|
|
4763
|
-
"onUpdate:modelValue": f[6] || (f[6] = (Q) =>
|
|
4762
|
+
modelValue: L.value,
|
|
4763
|
+
"onUpdate:modelValue": f[6] || (f[6] = (Q) => L.value = Q),
|
|
4764
4764
|
placeholder: a.field.placeholder,
|
|
4765
4765
|
disabled: W.value,
|
|
4766
4766
|
clearable: a.field.clearable !== !1,
|
|
4767
4767
|
onChange: se
|
|
4768
4768
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : N.value === "rangeTime" ? (l(), B(Ee, {
|
|
4769
4769
|
key: 7,
|
|
4770
|
-
modelValue:
|
|
4771
|
-
"onUpdate:modelValue": f[7] || (f[7] = (Q) =>
|
|
4770
|
+
modelValue: L.value,
|
|
4771
|
+
"onUpdate:modelValue": f[7] || (f[7] = (Q) => L.value = Q),
|
|
4772
4772
|
placeholder: a.field.placeholder || ["开始时间", "结束时间"],
|
|
4773
4773
|
disabled: W.value,
|
|
4774
4774
|
clearable: a.field.clearable !== !1,
|
|
4775
4775
|
onChange: Ce
|
|
4776
4776
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : N.value === "switch" ? (l(), B(Ke, {
|
|
4777
4777
|
key: 8,
|
|
4778
|
-
modelValue:
|
|
4779
|
-
"onUpdate:modelValue": f[8] || (f[8] = (Q) =>
|
|
4778
|
+
modelValue: L.value,
|
|
4779
|
+
"onUpdate:modelValue": f[8] || (f[8] = (Q) => L.value = Q),
|
|
4780
4780
|
disabled: W.value,
|
|
4781
4781
|
onChange: se
|
|
4782
4782
|
}, null, 8, ["modelValue", "disabled"])) : N.value === "rate" ? (l(), B(we, {
|
|
4783
4783
|
key: 9,
|
|
4784
|
-
modelValue:
|
|
4785
|
-
"onUpdate:modelValue": f[9] || (f[9] = (Q) =>
|
|
4784
|
+
modelValue: L.value,
|
|
4785
|
+
"onUpdate:modelValue": f[9] || (f[9] = (Q) => L.value = Q),
|
|
4786
4786
|
disabled: W.value,
|
|
4787
4787
|
max: a.field.max || 5,
|
|
4788
4788
|
half: a.field.allowHalf,
|
|
4789
4789
|
onChange: se
|
|
4790
4790
|
}, null, 8, ["modelValue", "disabled", "max", "half"])) : N.value === "radio" ? (l(), B(Be, {
|
|
4791
4791
|
key: 10,
|
|
4792
|
-
modelValue:
|
|
4793
|
-
"onUpdate:modelValue": f[10] || (f[10] = (Q) =>
|
|
4792
|
+
modelValue: L.value,
|
|
4793
|
+
"onUpdate:modelValue": f[10] || (f[10] = (Q) => L.value = Q),
|
|
4794
4794
|
disabled: W.value,
|
|
4795
4795
|
onChange: se
|
|
4796
4796
|
}, {
|
|
@@ -4808,8 +4808,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4808
4808
|
_: 1
|
|
4809
4809
|
}, 8, ["modelValue", "disabled"])) : N.value === "checkbox" ? (l(), B(wa, {
|
|
4810
4810
|
key: 11,
|
|
4811
|
-
modelValue:
|
|
4812
|
-
"onUpdate:modelValue": f[11] || (f[11] = (Q) =>
|
|
4811
|
+
modelValue: L.value,
|
|
4812
|
+
"onUpdate:modelValue": f[11] || (f[11] = (Q) => L.value = Q),
|
|
4813
4813
|
disabled: W.value,
|
|
4814
4814
|
onChange: se
|
|
4815
4815
|
}, {
|
|
@@ -4827,8 +4827,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4827
4827
|
_: 1
|
|
4828
4828
|
}, 8, ["modelValue", "disabled"])) : N.value === "cascader" ? (l(), B(Sa, {
|
|
4829
4829
|
key: 12,
|
|
4830
|
-
modelValue:
|
|
4831
|
-
"onUpdate:modelValue": f[12] || (f[12] = (Q) =>
|
|
4830
|
+
modelValue: L.value,
|
|
4831
|
+
"onUpdate:modelValue": f[12] || (f[12] = (Q) => L.value = Q),
|
|
4832
4832
|
placeholder: a.field.placeholder,
|
|
4833
4833
|
disabled: W.value,
|
|
4834
4834
|
clearable: a.field.clearable !== !1,
|
|
@@ -4837,8 +4837,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4837
4837
|
onChange: se
|
|
4838
4838
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : N.value === "treeSelect" ? (l(), B(za, {
|
|
4839
4839
|
key: 13,
|
|
4840
|
-
modelValue:
|
|
4841
|
-
"onUpdate:modelValue": f[13] || (f[13] = (Q) =>
|
|
4840
|
+
modelValue: L.value,
|
|
4841
|
+
"onUpdate:modelValue": f[13] || (f[13] = (Q) => L.value = Q),
|
|
4842
4842
|
placeholder: a.field.placeholder,
|
|
4843
4843
|
disabled: W.value,
|
|
4844
4844
|
clearable: a.field.clearable !== !1,
|
|
@@ -4849,8 +4849,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4849
4849
|
onChange: se
|
|
4850
4850
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : N.value === "autoComplete" ? (l(), B(Ca, {
|
|
4851
4851
|
key: 14,
|
|
4852
|
-
modelValue:
|
|
4853
|
-
"onUpdate:modelValue": f[14] || (f[14] = (Q) =>
|
|
4852
|
+
modelValue: L.value,
|
|
4853
|
+
"onUpdate:modelValue": f[14] || (f[14] = (Q) => L.value = Q),
|
|
4854
4854
|
placeholder: a.field.placeholder,
|
|
4855
4855
|
disabled: W.value,
|
|
4856
4856
|
clearable: a.field.clearable !== !1,
|
|
@@ -4858,8 +4858,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4858
4858
|
onChange: se
|
|
4859
4859
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : N.value === "uploadImg" ? (l(), B(xa, {
|
|
4860
4860
|
key: 15,
|
|
4861
|
-
modelValue:
|
|
4862
|
-
"onUpdate:modelValue": f[15] || (f[15] = (Q) =>
|
|
4861
|
+
modelValue: L.value,
|
|
4862
|
+
"onUpdate:modelValue": f[15] || (f[15] = (Q) => L.value = Q),
|
|
4863
4863
|
disabled: W.value,
|
|
4864
4864
|
max: a.field.limit || 1,
|
|
4865
4865
|
accept: a.field.accept || "image/*",
|
|
@@ -4876,8 +4876,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4876
4876
|
onChange: se
|
|
4877
4877
|
}, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : N.value === "upload" ? (l(), B(xa, {
|
|
4878
4878
|
key: 16,
|
|
4879
|
-
modelValue:
|
|
4880
|
-
"onUpdate:modelValue": f[16] || (f[16] = (Q) =>
|
|
4879
|
+
modelValue: L.value,
|
|
4880
|
+
"onUpdate:modelValue": f[16] || (f[16] = (Q) => L.value = Q),
|
|
4881
4881
|
disabled: W.value,
|
|
4882
4882
|
max: a.field.limit || 1,
|
|
4883
4883
|
accept: a.field.accept,
|
|
@@ -4898,14 +4898,14 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4898
4898
|
_: 1
|
|
4899
4899
|
}, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : N.value === "colorPicker" ? (l(), B(Da, {
|
|
4900
4900
|
key: 17,
|
|
4901
|
-
modelValue:
|
|
4902
|
-
"onUpdate:modelValue": f[17] || (f[17] = (Q) =>
|
|
4901
|
+
modelValue: L.value,
|
|
4902
|
+
"onUpdate:modelValue": f[17] || (f[17] = (Q) => L.value = Q),
|
|
4903
4903
|
disabled: W.value,
|
|
4904
4904
|
onChange: se
|
|
4905
4905
|
}, null, 8, ["modelValue", "disabled"])) : N.value === "slider" ? (l(), B(Ma, {
|
|
4906
4906
|
key: 18,
|
|
4907
|
-
modelValue:
|
|
4908
|
-
"onUpdate:modelValue": f[18] || (f[18] = (Q) =>
|
|
4907
|
+
modelValue: L.value,
|
|
4908
|
+
"onUpdate:modelValue": f[18] || (f[18] = (Q) => L.value = Q),
|
|
4909
4909
|
disabled: W.value,
|
|
4910
4910
|
min: a.field.min || 0,
|
|
4911
4911
|
max: a.field.max || 100,
|
|
@@ -4913,7 +4913,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4913
4913
|
onChange: se
|
|
4914
4914
|
}, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : N.value === "progress" ? (l(), B(Aa, {
|
|
4915
4915
|
key: 19,
|
|
4916
|
-
percentage:
|
|
4916
|
+
percentage: L.value || a.field.defaultValue || 0,
|
|
4917
4917
|
status: a.field.status,
|
|
4918
4918
|
"stroke-width": a.field.strokeWidth,
|
|
4919
4919
|
color: a.field.color,
|
|
@@ -4964,9 +4964,9 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4964
4964
|
class: "sign-inline",
|
|
4965
4965
|
onClick: Z
|
|
4966
4966
|
}, [
|
|
4967
|
-
|
|
4967
|
+
L.value ? (l(), t("img", {
|
|
4968
4968
|
key: 0,
|
|
4969
|
-
src:
|
|
4969
|
+
src: L.value,
|
|
4970
4970
|
class: "sign-img"
|
|
4971
4971
|
}, null, 8, xd)) : (l(), t("div", $d, [...f[32] || (f[32] = [
|
|
4972
4972
|
e("i", { class: "ri-edit-box-line" }, null, -1),
|
|
@@ -4977,9 +4977,9 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4977
4977
|
class: "signature-inline",
|
|
4978
4978
|
onClick: ie
|
|
4979
4979
|
}, [
|
|
4980
|
-
|
|
4980
|
+
L.value ? (l(), t("img", {
|
|
4981
4981
|
key: 0,
|
|
4982
|
-
src:
|
|
4982
|
+
src: L.value,
|
|
4983
4983
|
class: "signature-img"
|
|
4984
4984
|
}, null, 8, Vd)) : (l(), t("div", Sd, [...f[33] || (f[33] = [
|
|
4985
4985
|
e("i", { class: "ri-stamp-line" }, null, -1),
|
|
@@ -4987,8 +4987,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4987
4987
|
])]))
|
|
4988
4988
|
])) : N.value === "tag" ? (l(), B(Ea, {
|
|
4989
4989
|
key: 26,
|
|
4990
|
-
modelValue:
|
|
4991
|
-
"onUpdate:modelValue": f[20] || (f[20] = (Q) =>
|
|
4990
|
+
modelValue: L.value,
|
|
4991
|
+
"onUpdate:modelValue": f[20] || (f[20] = (Q) => L.value = Q),
|
|
4992
4992
|
placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
|
|
4993
4993
|
disabled: W.value,
|
|
4994
4994
|
clearable: a.field.clearable !== !1,
|
|
@@ -4997,11 +4997,11 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
4997
4997
|
onChange: se
|
|
4998
4998
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : N.value === "billno" ? (l(), t(ne, { key: 27 }, [
|
|
4999
4999
|
W.value ? (l(), t("div", zd, [
|
|
5000
|
-
e("span", Dd, _(
|
|
5000
|
+
e("span", Dd, _(L.value), 1)
|
|
5001
5001
|
])) : (l(), B(ae, {
|
|
5002
5002
|
key: 1,
|
|
5003
|
-
modelValue:
|
|
5004
|
-
"onUpdate:modelValue": f[21] || (f[21] = (Q) =>
|
|
5003
|
+
modelValue: L.value,
|
|
5004
|
+
"onUpdate:modelValue": f[21] || (f[21] = (Q) => L.value = Q),
|
|
5005
5005
|
placeholder: a.field.placeholder || "请输入单据编号",
|
|
5006
5006
|
clearable: a.field.clearable !== !1,
|
|
5007
5007
|
onBlur: _e,
|
|
@@ -5018,11 +5018,11 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5018
5018
|
fontWeight: a.field.fontWeight,
|
|
5019
5019
|
textAlign: a.field.textAlign
|
|
5020
5020
|
})
|
|
5021
|
-
}, _(a.field.defaultValue ||
|
|
5021
|
+
}, _(a.field.defaultValue || L.value), 5)) : ["organizeSelect", "depSelect", "posSelect", "userSelect", "roleSelect", "groupSelect", "relationForm", "popupSelect", "popupTableSelect"].includes(N.value) ? (l(), t(ne, { key: 29 }, [
|
|
5022
5022
|
W.value ? (l(), t("div", Md, [
|
|
5023
|
-
N.value === "userSelect" &&
|
|
5023
|
+
N.value === "userSelect" && L.value ? (l(), B(aa(ud), {
|
|
5024
5024
|
key: 0,
|
|
5025
|
-
"user-id":
|
|
5025
|
+
"user-id": L.value,
|
|
5026
5026
|
name: Se(),
|
|
5027
5027
|
"show-avatar": "",
|
|
5028
5028
|
clickable: ""
|
|
@@ -5048,8 +5048,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5048
5048
|
}, 8, ["model-value", "placeholder", "disabled", "clearable"]))
|
|
5049
5049
|
], 64)) : (l(), B(ae, {
|
|
5050
5050
|
key: 30,
|
|
5051
|
-
modelValue:
|
|
5052
|
-
"onUpdate:modelValue": f[22] || (f[22] = (Q) =>
|
|
5051
|
+
modelValue: L.value,
|
|
5052
|
+
"onUpdate:modelValue": f[22] || (f[22] = (Q) => L.value = Q),
|
|
5053
5053
|
placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
|
|
5054
5054
|
disabled: W.value,
|
|
5055
5055
|
clearable: a.field.clearable !== !1,
|
|
@@ -5127,7 +5127,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5127
5127
|
}, me.value, {
|
|
5128
5128
|
data: R.value,
|
|
5129
5129
|
columns: q.value,
|
|
5130
|
-
"onUpdate:data":
|
|
5130
|
+
"onUpdate:data": H,
|
|
5131
5131
|
onEditClosed: z,
|
|
5132
5132
|
"keyboard-config": k.value
|
|
5133
5133
|
}), null, 16, ["data", "columns", "keyboard-config"]),
|
|
@@ -5167,7 +5167,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5167
5167
|
"form-model": a.formModel,
|
|
5168
5168
|
"form-conf": a.formConf,
|
|
5169
5169
|
disabled: W.value,
|
|
5170
|
-
onChange: f[24] || (f[24] = (Ae, Ge) =>
|
|
5170
|
+
onChange: f[24] || (f[24] = (Ae, Ge) => V.$emit("change", Ae, Ge))
|
|
5171
5171
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5172
5172
|
]),
|
|
5173
5173
|
_: 2
|
|
@@ -5225,7 +5225,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5225
5225
|
"form-model": a.formModel,
|
|
5226
5226
|
"form-conf": a.formConf,
|
|
5227
5227
|
disabled: W.value,
|
|
5228
|
-
onChange: f[25] || (f[25] = (Ge, Qe) =>
|
|
5228
|
+
onChange: f[25] || (f[25] = (Ge, Qe) => V.$emit("change", Ge, Qe))
|
|
5229
5229
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5230
5230
|
]),
|
|
5231
5231
|
_: 2
|
|
@@ -5268,7 +5268,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5268
5268
|
"form-model": a.formModel,
|
|
5269
5269
|
"form-conf": a.formConf,
|
|
5270
5270
|
disabled: W.value,
|
|
5271
|
-
onChange: f[27] || (f[27] = (n, h) =>
|
|
5271
|
+
onChange: f[27] || (f[27] = (n, h) => V.$emit("change", n, h))
|
|
5272
5272
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"]))
|
|
5273
5273
|
], 64))), 128))
|
|
5274
5274
|
], 4))), 128))
|
|
@@ -5310,7 +5310,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5310
5310
|
"form-model": a.formModel,
|
|
5311
5311
|
"form-conf": a.formConf,
|
|
5312
5312
|
disabled: W.value,
|
|
5313
|
-
onChange: f[28] || (f[28] = (Ge, Qe) =>
|
|
5313
|
+
onChange: f[28] || (f[28] = (Ge, Qe) => V.$emit("change", Ge, Qe))
|
|
5314
5314
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5315
5315
|
]),
|
|
5316
5316
|
_: 2
|
|
@@ -5481,7 +5481,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5481
5481
|
], 2)) : T("", !0);
|
|
5482
5482
|
};
|
|
5483
5483
|
}
|
|
5484
|
-
}), Ha = /* @__PURE__ */ Le(qd, [["__scopeId", "data-v-
|
|
5484
|
+
}), Ha = /* @__PURE__ */ Le(qd, [["__scopeId", "data-v-9d6c113a"]]), Ld = /* @__PURE__ */ Ne({
|
|
5485
5485
|
__name: "FormRender",
|
|
5486
5486
|
props: {
|
|
5487
5487
|
formConf: {},
|
|
@@ -5494,15 +5494,15 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5494
5494
|
const y = a, u = s, c = E(), v = da({}), x = (g) => g ? g.startsWith("t-") ? g.toLowerCase() : "t-" + g.replace(/([A-Z])/g, (i, p, m) => m > 0 ? "-" + p.toLowerCase() : p.toLowerCase()) : "", k = (g, S) => {
|
|
5495
5495
|
!g || !Array.isArray(g) || g.forEach((i) => {
|
|
5496
5496
|
const p = i.__config__, m = p.cdkey;
|
|
5497
|
-
p.layout === "colFormItem" && i.__vModel__ ? S(i) : p.layout === "rowFormItem" && p.children && Array.isArray(p.children) ? k(p.children, S) : m === "tab" && p.children && Array.isArray(p.children) ? p.children.forEach((
|
|
5497
|
+
p.layout === "colFormItem" && i.__vModel__ ? S(i) : p.layout === "rowFormItem" && p.children && Array.isArray(p.children) ? k(p.children, S) : m === "tab" && p.children && Array.isArray(p.children) ? p.children.forEach(($) => {
|
|
5498
5498
|
var z;
|
|
5499
|
-
(z =
|
|
5500
|
-
}) : m === "collapse" && p.children && Array.isArray(p.children) ? p.children.forEach((
|
|
5499
|
+
(z = $.__config__) != null && z.children && Array.isArray($.__config__.children) && k($.__config__.children, S);
|
|
5500
|
+
}) : m === "collapse" && p.children && Array.isArray(p.children) ? p.children.forEach(($) => {
|
|
5501
5501
|
var z;
|
|
5502
|
-
(z =
|
|
5503
|
-
}) : m === "tableGrid" && p.children && Array.isArray(p.children) && p.children.forEach((
|
|
5502
|
+
(z = $.__config__) != null && z.children && Array.isArray($.__config__.children) && k($.__config__.children, S);
|
|
5503
|
+
}) : m === "tableGrid" && p.children && Array.isArray(p.children) && p.children.forEach(($) => {
|
|
5504
5504
|
var z;
|
|
5505
|
-
(z =
|
|
5505
|
+
(z = $.__config__) != null && z.children && Array.isArray($.__config__.children) && $.__config__.children.forEach((oe) => {
|
|
5506
5506
|
var te;
|
|
5507
5507
|
(te = oe.__config__) != null && te.children && Array.isArray(oe.__config__.children) && k(oe.__config__.children, S);
|
|
5508
5508
|
});
|
|
@@ -5518,10 +5518,10 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5518
5518
|
required: !0,
|
|
5519
5519
|
message: `请输入${i.label}`,
|
|
5520
5520
|
trigger: i.trigger || "blur"
|
|
5521
|
-
}), S.__config__.regList && S.__config__.regList.length > 0 && S.__config__.regList.forEach((
|
|
5521
|
+
}), S.__config__.regList && S.__config__.regList.length > 0 && S.__config__.regList.forEach(($) => {
|
|
5522
5522
|
m.push({
|
|
5523
|
-
pattern: new RegExp(
|
|
5524
|
-
message:
|
|
5523
|
+
pattern: new RegExp($.pattern),
|
|
5524
|
+
message: $.message,
|
|
5525
5525
|
trigger: i.trigger || "blur"
|
|
5526
5526
|
});
|
|
5527
5527
|
}), m.length > 0 && (g[p] = m);
|
|
@@ -5531,10 +5531,10 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5531
5531
|
}, U = (g) => {
|
|
5532
5532
|
console.log("📡 FormRender: 接收到 select-org-data 事件:", g), u("select-org-data", g), console.log("📤 FormRender: 已转发 select-org-data 事件");
|
|
5533
5533
|
}, O = (g, S, i) => {
|
|
5534
|
-
var
|
|
5534
|
+
var $;
|
|
5535
5535
|
const p = y.fields.find((z) => z.__vModel__ === g);
|
|
5536
5536
|
if (!p) return;
|
|
5537
|
-
const m = (
|
|
5537
|
+
const m = ($ = p.on) == null ? void 0 : $[S];
|
|
5538
5538
|
if (m && typeof m == "string")
|
|
5539
5539
|
try {
|
|
5540
5540
|
const z = {
|
|
@@ -5599,7 +5599,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5599
5599
|
}, q = () => {
|
|
5600
5600
|
var g;
|
|
5601
5601
|
(g = c.value) == null || g.reset(), j({});
|
|
5602
|
-
}, me = () => ({ ...v }),
|
|
5602
|
+
}, me = () => ({ ...v }), H = (g) => {
|
|
5603
5603
|
Object.assign(v, g), u("update:modelValue", { ...v });
|
|
5604
5604
|
};
|
|
5605
5605
|
return $e(
|
|
@@ -5635,7 +5635,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
5635
5635
|
validate: R,
|
|
5636
5636
|
resetFields: q,
|
|
5637
5637
|
getFormData: me,
|
|
5638
|
-
setFormData:
|
|
5638
|
+
setFormData: H,
|
|
5639
5639
|
initFormData: j
|
|
5640
5640
|
}), Ga("formModel", v), Ga("formConf", y.formConf), (g, S) => {
|
|
5641
5641
|
const i = C("t-row"), p = C("t-form");
|
|
@@ -11376,7 +11376,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11376
11376
|
{ key: "ends_with", label: "结尾是", value: "ends_with" }
|
|
11377
11377
|
];
|
|
11378
11378
|
}
|
|
11379
|
-
}),
|
|
11379
|
+
}), H = () => {
|
|
11380
11380
|
Xe(() => {
|
|
11381
11381
|
P("search", { ...d.filterCondition });
|
|
11382
11382
|
});
|
|
@@ -11385,7 +11385,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11385
11385
|
g && S && (d.filterCondition.operator = "eq", d.filterCondition.value = null);
|
|
11386
11386
|
}), (g, S) => {
|
|
11387
11387
|
var i;
|
|
11388
|
-
const p = C("t-option"), m = C("t-select"),
|
|
11388
|
+
const p = C("t-option"), m = C("t-select"), $ = C("t-input"), z = C("t-date-picker"), oe = C("t-cascader");
|
|
11389
11389
|
return l(), t("div", Wd, [
|
|
11390
11390
|
r(m, {
|
|
11391
11391
|
modelValue: d.filterCondition.field,
|
|
@@ -11393,7 +11393,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11393
11393
|
placeholder: "请选择字段",
|
|
11394
11394
|
size: d.size,
|
|
11395
11395
|
style: { "min-width": "80px", "max-width": "110px" },
|
|
11396
|
-
onChange:
|
|
11396
|
+
onChange: H,
|
|
11397
11397
|
filterable: ""
|
|
11398
11398
|
}, {
|
|
11399
11399
|
default: o(() => [
|
|
@@ -11423,7 +11423,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11423
11423
|
]),
|
|
11424
11424
|
_: 1
|
|
11425
11425
|
}, 8, ["modelValue", "size"]),
|
|
11426
|
-
O(d.filterCondition.field) === "number" ? (l(), B(
|
|
11426
|
+
O(d.filterCondition.field) === "number" ? (l(), B($, {
|
|
11427
11427
|
key: 0,
|
|
11428
11428
|
type: "number",
|
|
11429
11429
|
modelValue: d.filterCondition.value,
|
|
@@ -11433,7 +11433,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11433
11433
|
style: { width: "80px" },
|
|
11434
11434
|
onChange: j,
|
|
11435
11435
|
clearable: ""
|
|
11436
|
-
}, null, 8, ["modelValue", "size"])) : O(d.filterCondition.field) === "money" ? (l(), B(
|
|
11436
|
+
}, null, 8, ["modelValue", "size"])) : O(d.filterCondition.field) === "money" ? (l(), B($, {
|
|
11437
11437
|
key: 1,
|
|
11438
11438
|
type: "number",
|
|
11439
11439
|
modelValue: d.filterCondition.value,
|
|
@@ -11444,7 +11444,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11444
11444
|
onChange: j,
|
|
11445
11445
|
clearable: ""
|
|
11446
11446
|
}, null, 8, ["modelValue", "size"])) : O(d.filterCondition.field) === "date" ? (l(), t(ne, { key: 2 }, [
|
|
11447
|
-
x(d.filterCondition.operator) ? (l(), B(
|
|
11447
|
+
x(d.filterCondition.operator) ? (l(), B($, {
|
|
11448
11448
|
key: 1,
|
|
11449
11449
|
value: (i = me.value.find((te) => te.value === d.filterCondition.operator)) == null ? void 0 : i.label,
|
|
11450
11450
|
disabled: "",
|
|
@@ -11492,7 +11492,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11492
11492
|
clearable: "",
|
|
11493
11493
|
loading: !1,
|
|
11494
11494
|
onChange: q
|
|
11495
|
-
}, null, 8, ["modelValue", "options", "size"])) : (l(), B(
|
|
11495
|
+
}, null, 8, ["modelValue", "options", "size"])) : (l(), B($, {
|
|
11496
11496
|
key: 6,
|
|
11497
11497
|
modelValue: d.filterCondition.value,
|
|
11498
11498
|
"onUpdate:modelValue": S[8] || (S[8] = (te) => d.filterCondition.value = te),
|
|
@@ -11616,8 +11616,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11616
11616
|
y("close"), y("update:visible", !1);
|
|
11617
11617
|
};
|
|
11618
11618
|
return (R, q) => {
|
|
11619
|
-
const me = C("t-input"),
|
|
11620
|
-
return l(), B(
|
|
11619
|
+
const me = C("t-input"), H = C("t-form-item"), g = C("t-radio"), S = C("t-tooltip"), i = C("t-radio-group"), p = C("t-form"), m = C("t-button"), $ = C("t-dialog");
|
|
11620
|
+
return l(), B($, {
|
|
11621
11621
|
header: a.isEditing ? "编辑筛选方案" : "保存筛选方案",
|
|
11622
11622
|
visible: a.visible,
|
|
11623
11623
|
"onUpdate:visible": q[3] || (q[3] = (z) => R.$emit("update:visible", z)),
|
|
@@ -11634,7 +11634,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11634
11634
|
"label-width": "100px"
|
|
11635
11635
|
}, {
|
|
11636
11636
|
default: o(() => [
|
|
11637
|
-
r(
|
|
11637
|
+
r(H, {
|
|
11638
11638
|
label: "方案名称",
|
|
11639
11639
|
required: ""
|
|
11640
11640
|
}, {
|
|
@@ -11647,7 +11647,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11647
11647
|
]),
|
|
11648
11648
|
_: 1
|
|
11649
11649
|
}),
|
|
11650
|
-
r(
|
|
11650
|
+
r(H, { label: "共享设置" }, {
|
|
11651
11651
|
default: o(() => [
|
|
11652
11652
|
r(i, {
|
|
11653
11653
|
modelValue: u.value.shareMode,
|
|
@@ -11687,7 +11687,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11687
11687
|
]),
|
|
11688
11688
|
_: 1
|
|
11689
11689
|
}),
|
|
11690
|
-
u.value.shareMode === "share" ? (l(), B(
|
|
11690
|
+
u.value.shareMode === "share" ? (l(), B(H, {
|
|
11691
11691
|
key: 0,
|
|
11692
11692
|
label: "共享范围"
|
|
11693
11693
|
}, {
|
|
@@ -11715,7 +11715,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11715
11715
|
]),
|
|
11716
11716
|
_: 1
|
|
11717
11717
|
})) : T("", !0),
|
|
11718
|
-
u.value.shareMode === "share" && u.value.shareType === "specific" || u.value.shareMode === "copy" ? (l(), B(
|
|
11718
|
+
u.value.shareMode === "share" && u.value.shareType === "specific" || u.value.shareMode === "copy" ? (l(), B(H, {
|
|
11719
11719
|
key: 1,
|
|
11720
11720
|
label: "共享人员"
|
|
11721
11721
|
}, {
|
|
@@ -11860,7 +11860,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11860
11860
|
connector: "and",
|
|
11861
11861
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
11862
11862
|
});
|
|
11863
|
-
},
|
|
11863
|
+
}, H = (Y) => {
|
|
11864
11864
|
u.value.length > 1 ? u.value.splice(Y, 1) : De.warning("至少需要保留一个筛选卡片");
|
|
11865
11865
|
}, g = (Y) => {
|
|
11866
11866
|
Y >= 0 && Y < u.value.length && u.value[Y].conditions.push({
|
|
@@ -11874,11 +11874,11 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11874
11874
|
xe.conditions.length > 1 && J >= 0 && J < xe.conditions.length ? xe.conditions.splice(J, 1) : xe.conditions.length <= 1 && De.warning("每个卡片至少需要一个筛选条件");
|
|
11875
11875
|
}
|
|
11876
11876
|
}, i = (Y) => Y.map((J) => {
|
|
11877
|
-
const xe = J.conditions.filter((
|
|
11877
|
+
const xe = J.conditions.filter((V) => V.field && V.field.trim() !== "").map((V) => {
|
|
11878
11878
|
let f = "";
|
|
11879
|
-
return
|
|
11880
|
-
field:
|
|
11881
|
-
operator:
|
|
11879
|
+
return V.value !== null && V.value !== void 0 && (Array.isArray(V.value) ? f = V.value.join("/") : f = String(V.value)), {
|
|
11880
|
+
field: V.field.trim(),
|
|
11881
|
+
operator: V.operator || "eq",
|
|
11882
11882
|
value: f
|
|
11883
11883
|
};
|
|
11884
11884
|
});
|
|
@@ -11894,23 +11894,23 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11894
11894
|
});
|
|
11895
11895
|
const J = Y.columns.map((ae) => ae.value), xe = J.map(
|
|
11896
11896
|
(ae) => s.fieldOptions.find((ze) => ze.value === ae)
|
|
11897
|
-
).filter(Boolean),
|
|
11897
|
+
).filter(Boolean), V = s.fieldOptions.filter(
|
|
11898
11898
|
(ae) => !J.includes(ae.value)
|
|
11899
11899
|
);
|
|
11900
|
-
ie.value = [...xe,
|
|
11900
|
+
ie.value = [...xe, ...V], re.value = Ve.value.length === s.fieldOptions.length;
|
|
11901
11901
|
const f = Y.columns.filter((ae) => ae.show !== !1);
|
|
11902
11902
|
y("column-change", f);
|
|
11903
11903
|
}
|
|
11904
11904
|
}, m = () => {
|
|
11905
11905
|
d.value = !1, R.value = null, P.value = "", U.value = "none", O.value = "specific", j.value = [], x.value = !0;
|
|
11906
|
-
},
|
|
11906
|
+
}, $ = (Y) => {
|
|
11907
11907
|
const J = ie.value.map((xe) => {
|
|
11908
|
-
const
|
|
11908
|
+
const V = I.value[xe.value], f = Z.value[xe.value] || "none";
|
|
11909
11909
|
return {
|
|
11910
11910
|
value: xe.value,
|
|
11911
11911
|
show: Ve.value.includes(xe.value),
|
|
11912
11912
|
// 是否显示
|
|
11913
|
-
width:
|
|
11913
|
+
width: V ? `${V}px` : "120px",
|
|
11914
11914
|
fixed: f
|
|
11915
11915
|
// 冻结状态
|
|
11916
11916
|
};
|
|
@@ -11954,8 +11954,8 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11954
11954
|
type1: c.value
|
|
11955
11955
|
});
|
|
11956
11956
|
} else M.value === "column" && fe();
|
|
11957
|
-
|
|
11958
|
-
},
|
|
11957
|
+
L();
|
|
11958
|
+
}, L = () => {
|
|
11959
11959
|
y("update:visible", !1);
|
|
11960
11960
|
}, Me = (Y) => {
|
|
11961
11961
|
y("load-users", Y);
|
|
@@ -11974,16 +11974,16 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
11974
11974
|
});
|
|
11975
11975
|
const J = Y.map((f) => f.value), xe = J.map(
|
|
11976
11976
|
(f) => s.fieldOptions.find((ae) => ae.value === f)
|
|
11977
|
-
).filter(Boolean),
|
|
11977
|
+
).filter(Boolean), V = s.fieldOptions.filter(
|
|
11978
11978
|
(f) => !J.includes(f.value)
|
|
11979
11979
|
);
|
|
11980
|
-
ie.value = [...xe,
|
|
11980
|
+
ie.value = [...xe, ...V];
|
|
11981
11981
|
} else {
|
|
11982
11982
|
Ve.value = [...Y];
|
|
11983
11983
|
const J = Y.map(
|
|
11984
|
-
(
|
|
11984
|
+
(V) => s.fieldOptions.find((f) => f.value === V)
|
|
11985
11985
|
).filter(Boolean), xe = s.fieldOptions.filter(
|
|
11986
|
-
(
|
|
11986
|
+
(V) => !Y.includes(V.value)
|
|
11987
11987
|
);
|
|
11988
11988
|
ie.value = [...J, ...xe];
|
|
11989
11989
|
}
|
|
@@ -12026,25 +12026,25 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12026
12026
|
const xe = Ce.value;
|
|
12027
12027
|
if (xe === null || xe === Y)
|
|
12028
12028
|
return;
|
|
12029
|
-
const
|
|
12030
|
-
|
|
12029
|
+
const V = [...ie.value], f = V[xe];
|
|
12030
|
+
V.splice(xe, 1), V.splice(Y, 0, f), ie.value = V, Ce.value = null, Se.value = null;
|
|
12031
12031
|
}, fe = () => {
|
|
12032
12032
|
const Y = ie.value.filter((J) => Ve.value.includes(J.value)).map((J) => {
|
|
12033
|
-
const xe = I.value[J.value],
|
|
12033
|
+
const xe = I.value[J.value], V = Z.value[J.value] || "none";
|
|
12034
12034
|
return {
|
|
12035
12035
|
value: J.value,
|
|
12036
12036
|
show: !0,
|
|
12037
12037
|
// 已通过filter筛选,都是显示的
|
|
12038
12038
|
width: xe ? `${xe}px` : "120px",
|
|
12039
12039
|
// 没有设置宽度时使用默认值120px
|
|
12040
|
-
fixed:
|
|
12040
|
+
fixed: V
|
|
12041
12041
|
// 冻结状态
|
|
12042
12042
|
};
|
|
12043
12043
|
});
|
|
12044
12044
|
y("column-change", Y);
|
|
12045
12045
|
};
|
|
12046
12046
|
return (Y, J) => {
|
|
12047
|
-
const xe = C("t-radio-button"),
|
|
12047
|
+
const xe = C("t-radio-button"), V = C("t-radio-group"), f = C("t-icon"), ae = C("t-button"), ze = C("t-tab-panel"), le = C("t-checkbox"), Te = C("t-option"), pe = C("t-select"), je = C("t-input-number"), Ue = C("t-tabs"), Ee = C("t-tooltip"), Ke = C("t-dialog");
|
|
12048
12048
|
return l(), t(ne, null, [
|
|
12049
12049
|
r(Ke, {
|
|
12050
12050
|
header: "方案设置",
|
|
@@ -12054,7 +12054,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12054
12054
|
width: a.width,
|
|
12055
12055
|
"z-index": 999,
|
|
12056
12056
|
footer: !0,
|
|
12057
|
-
onClose:
|
|
12057
|
+
onClose: L,
|
|
12058
12058
|
id: "leader-line-clip-container"
|
|
12059
12059
|
}, {
|
|
12060
12060
|
body: o(() => [
|
|
@@ -12076,7 +12076,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12076
12076
|
e("div", eu, [
|
|
12077
12077
|
u.value.length > 1 ? (l(), t("div", au, [
|
|
12078
12078
|
e("div", lu, [
|
|
12079
|
-
r(
|
|
12079
|
+
r(V, {
|
|
12080
12080
|
size: a.size,
|
|
12081
12081
|
class: "connector-selector",
|
|
12082
12082
|
modelValue: c.value,
|
|
@@ -12108,7 +12108,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12108
12108
|
e("div", nu, [
|
|
12109
12109
|
e("div", ou, [
|
|
12110
12110
|
e("span", su, "筛选卡片 " + _(He + 1), 1),
|
|
12111
|
-
r(
|
|
12111
|
+
r(V, {
|
|
12112
12112
|
size: a.size,
|
|
12113
12113
|
modelValue: we.connector,
|
|
12114
12114
|
"onUpdate:modelValue": (Be) => we.connector = Be,
|
|
@@ -12135,7 +12135,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12135
12135
|
theme: "default",
|
|
12136
12136
|
variant: "text",
|
|
12137
12137
|
size: a.size,
|
|
12138
|
-
onClick: (Be) =>
|
|
12138
|
+
onClick: (Be) => H(He),
|
|
12139
12139
|
disabled: u.value.length === 1
|
|
12140
12140
|
}, {
|
|
12141
12141
|
icon: o(() => [
|
|
@@ -12495,7 +12495,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12495
12495
|
tabs: a.personTabs,
|
|
12496
12496
|
organizations: a.personOrganizations,
|
|
12497
12497
|
"dept-members-data-prop": k.value,
|
|
12498
|
-
onConfirm:
|
|
12498
|
+
onConfirm: $,
|
|
12499
12499
|
onLoadUsers: Me,
|
|
12500
12500
|
onSearch: _e,
|
|
12501
12501
|
onDeptClick: se
|
|
@@ -12575,15 +12575,15 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12575
12575
|
}
|
|
12576
12576
|
]);
|
|
12577
12577
|
$e(() => s.visible, (me) => {
|
|
12578
|
-
u.value = me, me && s.initialRules.length > 0 && (k.value = JSON.parse(JSON.stringify(s.initialRules)).map((
|
|
12579
|
-
...
|
|
12578
|
+
u.value = me, me && s.initialRules.length > 0 && (k.value = JSON.parse(JSON.stringify(s.initialRules)).map((H) => ({
|
|
12579
|
+
...H,
|
|
12580
12580
|
showColorPicker: !1
|
|
12581
12581
|
})));
|
|
12582
12582
|
}), $e(u, (me) => {
|
|
12583
12583
|
y("update:visible", me);
|
|
12584
12584
|
});
|
|
12585
|
-
const M = (me,
|
|
12586
|
-
k.value[me].backgroundColor =
|
|
12585
|
+
const M = (me, H) => {
|
|
12586
|
+
k.value[me].backgroundColor = H, k.value[me].showColorPicker = !1;
|
|
12587
12587
|
}, d = () => {
|
|
12588
12588
|
k.value.push({
|
|
12589
12589
|
field: "",
|
|
@@ -12602,33 +12602,33 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12602
12602
|
y("clear"), u.value = !1;
|
|
12603
12603
|
}, j = () => {
|
|
12604
12604
|
const me = k.value.filter(
|
|
12605
|
-
(
|
|
12606
|
-
).map((
|
|
12607
|
-
field:
|
|
12608
|
-
operator:
|
|
12609
|
-
value:
|
|
12610
|
-
backgroundColor:
|
|
12611
|
-
isBold:
|
|
12612
|
-
applyTo:
|
|
12605
|
+
(H) => H.field && H.operator && H.value
|
|
12606
|
+
).map((H) => ({
|
|
12607
|
+
field: H.field,
|
|
12608
|
+
operator: H.operator,
|
|
12609
|
+
value: H.value,
|
|
12610
|
+
backgroundColor: H.backgroundColor,
|
|
12611
|
+
isBold: H.isBold,
|
|
12612
|
+
applyTo: H.applyTo
|
|
12613
12613
|
}));
|
|
12614
12614
|
y("confirm", me), u.value = !1;
|
|
12615
12615
|
}, R = ce(() => {
|
|
12616
|
-
const me = k.value.length,
|
|
12616
|
+
const me = k.value.length, H = Math.floor(c.length / me), g = [];
|
|
12617
12617
|
for (let S = 0; S < me; S++) {
|
|
12618
|
-
const i = S *
|
|
12618
|
+
const i = S * H % c.length;
|
|
12619
12619
|
g.push(c[i]);
|
|
12620
12620
|
}
|
|
12621
12621
|
return g;
|
|
12622
12622
|
}), q = () => {
|
|
12623
|
-
k.value.forEach((me,
|
|
12624
|
-
|
|
12623
|
+
k.value.forEach((me, H) => {
|
|
12624
|
+
H < R.value.length && (me.backgroundColor = R.value[H]);
|
|
12625
12625
|
}), y("smart-colors-change", R.value);
|
|
12626
12626
|
};
|
|
12627
|
-
return (me,
|
|
12628
|
-
const g = C("t-button"), S = C("t-checkbox"), i = C("t-popup"), p = C("t-radio-button"), m = C("t-radio-group"),
|
|
12627
|
+
return (me, H) => {
|
|
12628
|
+
const g = C("t-button"), S = C("t-checkbox"), i = C("t-popup"), p = C("t-radio-button"), m = C("t-radio-group"), $ = C("t-select"), z = C("t-input"), oe = C("t-icon"), te = C("t-dialog");
|
|
12629
12629
|
return l(), B(te, {
|
|
12630
12630
|
visible: u.value,
|
|
12631
|
-
"onUpdate:visible":
|
|
12631
|
+
"onUpdate:visible": H[0] || (H[0] = (W) => u.value = W),
|
|
12632
12632
|
width: "800px",
|
|
12633
12633
|
"confirm-btn": null,
|
|
12634
12634
|
"cancel-btn": null,
|
|
@@ -12636,18 +12636,18 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12636
12636
|
}, {
|
|
12637
12637
|
header: o(() => [
|
|
12638
12638
|
e("div", Du, [
|
|
12639
|
-
|
|
12639
|
+
H[3] || (H[3] = e("span", null, "颜色筛选", -1)),
|
|
12640
12640
|
r(g, {
|
|
12641
12641
|
theme: "primary",
|
|
12642
12642
|
variant: "outline",
|
|
12643
12643
|
size: "small",
|
|
12644
12644
|
onClick: q
|
|
12645
12645
|
}, {
|
|
12646
|
-
icon: o(() => [...
|
|
12646
|
+
icon: o(() => [...H[1] || (H[1] = [
|
|
12647
12647
|
e("i", { class: "ri-palette-line" }, null, -1)
|
|
12648
12648
|
])]),
|
|
12649
12649
|
default: o(() => [
|
|
12650
|
-
|
|
12650
|
+
H[2] || (H[2] = A(" 智能配色 ", -1))
|
|
12651
12651
|
]),
|
|
12652
12652
|
_: 1
|
|
12653
12653
|
})
|
|
@@ -12675,7 +12675,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12675
12675
|
key: N,
|
|
12676
12676
|
class: be(["preset-color-item", { active: W.backgroundColor === N }]),
|
|
12677
12677
|
style: Ie({ backgroundColor: N }),
|
|
12678
|
-
onClick: (
|
|
12678
|
+
onClick: (L) => M(G, N)
|
|
12679
12679
|
}, null, 14, Nu)), 64))
|
|
12680
12680
|
]),
|
|
12681
12681
|
e("div", Ru, [
|
|
@@ -12683,7 +12683,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12683
12683
|
modelValue: W.isBold,
|
|
12684
12684
|
"onUpdate:modelValue": (N) => W.isBold = N
|
|
12685
12685
|
}, {
|
|
12686
|
-
default: o(() => [...
|
|
12686
|
+
default: o(() => [...H[4] || (H[4] = [
|
|
12687
12687
|
e("span", { class: "bold-text" }, "加粗", -1)
|
|
12688
12688
|
])]),
|
|
12689
12689
|
_: 1
|
|
@@ -12713,19 +12713,19 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12713
12713
|
}, {
|
|
12714
12714
|
default: o(() => [
|
|
12715
12715
|
r(p, { value: "cell" }, {
|
|
12716
|
-
default: o(() => [...
|
|
12716
|
+
default: o(() => [...H[5] || (H[5] = [
|
|
12717
12717
|
A("单元格", -1)
|
|
12718
12718
|
])]),
|
|
12719
12719
|
_: 1
|
|
12720
12720
|
}),
|
|
12721
12721
|
r(p, { value: "row" }, {
|
|
12722
|
-
default: o(() => [...
|
|
12722
|
+
default: o(() => [...H[6] || (H[6] = [
|
|
12723
12723
|
A("整行", -1)
|
|
12724
12724
|
])]),
|
|
12725
12725
|
_: 1
|
|
12726
12726
|
}),
|
|
12727
12727
|
r(p, { value: "column" }, {
|
|
12728
|
-
default: o(() => [...
|
|
12728
|
+
default: o(() => [...H[7] || (H[7] = [
|
|
12729
12729
|
A("整列", -1)
|
|
12730
12730
|
])]),
|
|
12731
12731
|
_: 1
|
|
@@ -12735,7 +12735,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12735
12735
|
}, 8, ["modelValue", "onUpdate:modelValue", "size"])
|
|
12736
12736
|
]),
|
|
12737
12737
|
e("div", Bu, [
|
|
12738
|
-
r(
|
|
12738
|
+
r($, {
|
|
12739
12739
|
modelValue: W.field,
|
|
12740
12740
|
"onUpdate:modelValue": (N) => W.field = N,
|
|
12741
12741
|
options: a.fieldOptions,
|
|
@@ -12744,7 +12744,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12744
12744
|
style: { width: "120px", display: "inline-block" },
|
|
12745
12745
|
"popup-props": x
|
|
12746
12746
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "size"]),
|
|
12747
|
-
r(
|
|
12747
|
+
r($, {
|
|
12748
12748
|
modelValue: W.operator,
|
|
12749
12749
|
"onUpdate:modelValue": (N) => W.operator = N,
|
|
12750
12750
|
options: v,
|
|
@@ -12769,7 +12769,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12769
12769
|
onClick: (N) => P(G),
|
|
12770
12770
|
disabled: k.value.length === 1
|
|
12771
12771
|
}, {
|
|
12772
|
-
icon: o(() => [...
|
|
12772
|
+
icon: o(() => [...H[8] || (H[8] = [
|
|
12773
12773
|
e("i", { class: "ri-close-fill" }, null, -1)
|
|
12774
12774
|
])]),
|
|
12775
12775
|
_: 1
|
|
@@ -12787,7 +12787,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12787
12787
|
r(oe, { name: "add" })
|
|
12788
12788
|
]),
|
|
12789
12789
|
default: o(() => [
|
|
12790
|
-
|
|
12790
|
+
H[9] || (H[9] = A(" 添加规则 ", -1))
|
|
12791
12791
|
]),
|
|
12792
12792
|
_: 1
|
|
12793
12793
|
}, 8, ["size"])
|
|
@@ -12800,7 +12800,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12800
12800
|
size: a.size,
|
|
12801
12801
|
onClick: U
|
|
12802
12802
|
}, {
|
|
12803
|
-
default: o(() => [...
|
|
12803
|
+
default: o(() => [...H[10] || (H[10] = [
|
|
12804
12804
|
A("取消", -1)
|
|
12805
12805
|
])]),
|
|
12806
12806
|
_: 1
|
|
@@ -12810,7 +12810,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12810
12810
|
size: a.size,
|
|
12811
12811
|
onClick: O
|
|
12812
12812
|
}, {
|
|
12813
|
-
default: o(() => [...
|
|
12813
|
+
default: o(() => [...H[11] || (H[11] = [
|
|
12814
12814
|
A("清除", -1)
|
|
12815
12815
|
])]),
|
|
12816
12816
|
_: 1
|
|
@@ -12820,7 +12820,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12820
12820
|
size: a.size,
|
|
12821
12821
|
onClick: j
|
|
12822
12822
|
}, {
|
|
12823
|
-
default: o(() => [...
|
|
12823
|
+
default: o(() => [...H[12] || (H[12] = [
|
|
12824
12824
|
A("确定", -1)
|
|
12825
12825
|
])]),
|
|
12826
12826
|
_: 1
|
|
@@ -12927,7 +12927,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12927
12927
|
{ id: 1, connector: M.value, conditions: u.value }
|
|
12928
12928
|
]), Z = i(I, "and");
|
|
12929
12929
|
y("search", Z);
|
|
12930
|
-
},
|
|
12930
|
+
}, H = () => {
|
|
12931
12931
|
k.value = !0;
|
|
12932
12932
|
}, g = () => {
|
|
12933
12933
|
k.value = !1;
|
|
@@ -12980,7 +12980,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
12980
12980
|
]
|
|
12981
12981
|
}
|
|
12982
12982
|
], M.value = "and", y("reset"), me();
|
|
12983
|
-
},
|
|
12983
|
+
}, $ = () => {
|
|
12984
12984
|
const I = te.value.name.trim();
|
|
12985
12985
|
if (P.value) {
|
|
12986
12986
|
const Z = S(d.value);
|
|
@@ -13013,7 +13013,7 @@ const cd = { class: "add-container" }, md = { class: "panel-footer" }, vd = { cl
|
|
|
13013
13013
|
g();
|
|
13014
13014
|
}, oe = E(!1), te = E({ name: "" }), W = E(!1), G = E([]), N = () => {
|
|
13015
13015
|
W.value = !0;
|
|
13016
|
-
},
|
|
13016
|
+
}, L = (I) => {
|
|
13017
13017
|
G.value = I, y("color-filter-change", I);
|
|
13018
13018
|
}, Me = () => {
|
|
13019
13019
|
G.value = [], y("color-filter-clear");
|
|
@@ -13078,7 +13078,7 @@ ${I.map((Z) => {
|
|
|
13078
13078
|
theme: "default",
|
|
13079
13079
|
variant: "outline",
|
|
13080
13080
|
size: a.size,
|
|
13081
|
-
onClick:
|
|
13081
|
+
onClick: H,
|
|
13082
13082
|
title: "高级筛选"
|
|
13083
13083
|
}, {
|
|
13084
13084
|
icon: o(() => [
|
|
@@ -13092,7 +13092,7 @@ ${I.map((Z) => {
|
|
|
13092
13092
|
key: 0,
|
|
13093
13093
|
theme: "primary",
|
|
13094
13094
|
size: a.size,
|
|
13095
|
-
onClick:
|
|
13095
|
+
onClick: H,
|
|
13096
13096
|
title: "高级筛选"
|
|
13097
13097
|
}, {
|
|
13098
13098
|
icon: o(() => [
|
|
@@ -13218,7 +13218,7 @@ ${I.map((Z) => {
|
|
|
13218
13218
|
}),
|
|
13219
13219
|
r(Pe, {
|
|
13220
13220
|
theme: "primary",
|
|
13221
|
-
onClick:
|
|
13221
|
+
onClick: $
|
|
13222
13222
|
}, {
|
|
13223
13223
|
default: o(() => [...Z[16] || (Z[16] = [
|
|
13224
13224
|
A("确定", -1)
|
|
@@ -13234,7 +13234,7 @@ ${I.map((Z) => {
|
|
|
13234
13234
|
"field-options": a.fieldOptions,
|
|
13235
13235
|
size: a.size,
|
|
13236
13236
|
"initial-rules": G.value,
|
|
13237
|
-
onConfirm:
|
|
13237
|
+
onConfirm: L,
|
|
13238
13238
|
onClear: Me,
|
|
13239
13239
|
onSmartColorsChange: _e
|
|
13240
13240
|
}, null, 8, ["visible", "field-options", "size", "initial-rules"])
|
|
@@ -13382,9 +13382,9 @@ ${I.map((Z) => {
|
|
|
13382
13382
|
}), Wa(() => {
|
|
13383
13383
|
window.removeEventListener("resize", O);
|
|
13384
13384
|
});
|
|
13385
|
-
const j = ce(() => v.inlineEdit), R = E(!1), q = E(/* @__PURE__ */ new Map()), me = E(/* @__PURE__ */ new Set()),
|
|
13385
|
+
const j = ce(() => v.inlineEdit), R = E(!1), q = E(/* @__PURE__ */ new Map()), me = E(/* @__PURE__ */ new Set()), H = E(((Qe = v.pageConfig) == null ? void 0 : Qe.currentPage) || 1), g = E(((la = v.pageConfig) == null ? void 0 : la.pageSize) || 20), S = E(!1), i = E([]), p = E(!0), m = E(!1), $ = E(""), z = E("add");
|
|
13386
13386
|
let oe = da({});
|
|
13387
|
-
const te = E(!1), W = E(null), G = E([]), N = E(/* @__PURE__ */ new Map()),
|
|
13387
|
+
const te = E(!1), W = E(null), G = E([]), N = E(/* @__PURE__ */ new Map()), L = (n, h) => {
|
|
13388
13388
|
const D = n[h.field];
|
|
13389
13389
|
switch (h.operator) {
|
|
13390
13390
|
case "contains":
|
|
@@ -13416,7 +13416,7 @@ ${I.map((Z) => {
|
|
|
13416
13416
|
}
|
|
13417
13417
|
if (G.value && G.value.length > 0) {
|
|
13418
13418
|
for (const F of G.value)
|
|
13419
|
-
if (F.applyTo === "row" &&
|
|
13419
|
+
if (F.applyTo === "row" && L(n, F)) {
|
|
13420
13420
|
F.backgroundColor && (D.backgroundColor = F.backgroundColor), F.textColor && (D.color = F.textColor), F.isBold && (D.fontWeight = "bold");
|
|
13421
13421
|
break;
|
|
13422
13422
|
}
|
|
@@ -13437,10 +13437,10 @@ ${I.map((Z) => {
|
|
|
13437
13437
|
}
|
|
13438
13438
|
if (G.value && G.value.length > 0) {
|
|
13439
13439
|
for (const X of G.value)
|
|
13440
|
-
if (X.applyTo === "cell" && X.field === h.field &&
|
|
13440
|
+
if (X.applyTo === "cell" && X.field === h.field && L(n, X)) {
|
|
13441
13441
|
X.backgroundColor && (ee.backgroundColor = X.backgroundColor), X.textColor && (ee.color = X.textColor), X.isBold && (ee.fontWeight = "bold");
|
|
13442
13442
|
break;
|
|
13443
|
-
} else if (X.applyTo === "column" && X.field === h.field && re.value.some((ge) =>
|
|
13443
|
+
} else if (X.applyTo === "column" && X.field === h.field && re.value.some((ge) => L(ge, X))) {
|
|
13444
13444
|
X.backgroundColor && (ee.backgroundColor = X.backgroundColor), X.textColor && (ee.color = X.textColor), X.isBold && (ee.fontWeight = "bold");
|
|
13445
13445
|
break;
|
|
13446
13446
|
}
|
|
@@ -13459,7 +13459,7 @@ ${I.map((Z) => {
|
|
|
13459
13459
|
if (x.value.groupField || ((h = x.value.treeConfig) == null ? void 0 : h.enabled) === !0)
|
|
13460
13460
|
return n;
|
|
13461
13461
|
if ((D = v.pageConfig) != null && D.enabled && !v.enableVirtualScroll) {
|
|
13462
|
-
const F = (
|
|
13462
|
+
const F = (H.value - 1) * g.value, ee = F + g.value;
|
|
13463
13463
|
n = n.slice(F, ee);
|
|
13464
13464
|
}
|
|
13465
13465
|
if (j.value) {
|
|
@@ -13477,7 +13477,7 @@ ${I.map((Z) => {
|
|
|
13477
13477
|
$e(() => v.inlineEdit, (n) => {
|
|
13478
13478
|
n || (q.value.clear(), me.value.clear(), R.value = !1, M.value && M.value.clearCheckboxRow());
|
|
13479
13479
|
}), $e(() => v.pageConfig, (n) => {
|
|
13480
|
-
n && (
|
|
13480
|
+
n && (H.value = n.currentPage || 1, g.value = n.pageSize || 20);
|
|
13481
13481
|
}, { deep: !0 }), $e(() => x.value.groupField, (n) => {
|
|
13482
13482
|
if (console.log("分组字段变化:", n), n) {
|
|
13483
13483
|
const h = Array.isArray(n) ? n : [n];
|
|
@@ -13915,11 +13915,11 @@ ${I.map((Z) => {
|
|
|
13915
13915
|
}, xe = (n) => {
|
|
13916
13916
|
const { field: h, filterValue: D } = n;
|
|
13917
13917
|
k("column-filter", { field: h, filterValue: D });
|
|
13918
|
-
},
|
|
13918
|
+
}, V = (n) => {
|
|
13919
13919
|
const { field: h } = n;
|
|
13920
13920
|
k("column-filter-reset", h);
|
|
13921
13921
|
}, f = () => {
|
|
13922
|
-
z.value = "add",
|
|
13922
|
+
z.value = "add", $.value = "新增", m.value = !0, Xe(() => {
|
|
13923
13923
|
var n;
|
|
13924
13924
|
(n = d.value) == null || n.initFormData({});
|
|
13925
13925
|
});
|
|
@@ -13930,7 +13930,7 @@ ${I.map((Z) => {
|
|
|
13930
13930
|
De.warning("请选择要复制的数据");
|
|
13931
13931
|
return;
|
|
13932
13932
|
}
|
|
13933
|
-
z.value = "copy",
|
|
13933
|
+
z.value = "copy", $.value = "复制", m.value = !0, Xe(() => {
|
|
13934
13934
|
var D;
|
|
13935
13935
|
(D = d.value) == null || D.initFormData({ ...n[0] });
|
|
13936
13936
|
});
|
|
@@ -13946,7 +13946,7 @@ ${I.map((Z) => {
|
|
|
13946
13946
|
return;
|
|
13947
13947
|
}
|
|
13948
13948
|
const h = n[0];
|
|
13949
|
-
z.value = "edit",
|
|
13949
|
+
z.value = "edit", $.value = "编辑", m.value = !0, Xe(() => {
|
|
13950
13950
|
var F;
|
|
13951
13951
|
(F = d.value) == null || F.initFormData({ ...h });
|
|
13952
13952
|
});
|
|
@@ -13962,12 +13962,12 @@ ${I.map((Z) => {
|
|
|
13962
13962
|
return;
|
|
13963
13963
|
}
|
|
13964
13964
|
const h = n[0];
|
|
13965
|
-
z.value = "detail",
|
|
13965
|
+
z.value = "detail", $.value = "详情", m.value = !0, Xe(() => {
|
|
13966
13966
|
var F;
|
|
13967
13967
|
(F = d.value) == null || F.initFormData({ ...h });
|
|
13968
13968
|
});
|
|
13969
13969
|
}, Te = ({ row: n }) => {
|
|
13970
|
-
!n || n._isEmpty || (z.value = "detail",
|
|
13970
|
+
!n || n._isEmpty || (z.value = "detail", $.value = "详情", m.value = !0, Xe(() => {
|
|
13971
13971
|
d.value && d.value.initFormData({ ...n });
|
|
13972
13972
|
}), k("detail", n));
|
|
13973
13973
|
}, pe = () => {
|
|
@@ -14060,7 +14060,7 @@ ${I.map((Z) => {
|
|
|
14060
14060
|
pageSize: g.value
|
|
14061
14061
|
});
|
|
14062
14062
|
}, wa = (n) => {
|
|
14063
|
-
|
|
14063
|
+
H.value = 1, k("page-change", {
|
|
14064
14064
|
currentPage: 1,
|
|
14065
14065
|
pageSize: n
|
|
14066
14066
|
});
|
|
@@ -14240,7 +14240,7 @@ ${I.map((Z) => {
|
|
|
14240
14240
|
selectedGroupField: i,
|
|
14241
14241
|
mergeGroupFields: p,
|
|
14242
14242
|
openFormPopup: (n = {}, h = "新增") => {
|
|
14243
|
-
z.value = "add",
|
|
14243
|
+
z.value = "add", $.value = h, m.value = !0, Xe(() => {
|
|
14244
14244
|
var D;
|
|
14245
14245
|
(D = d.value) == null || D.initFormData(n);
|
|
14246
14246
|
});
|
|
@@ -14483,7 +14483,7 @@ ${I.map((Z) => {
|
|
|
14483
14483
|
onEditChange: je,
|
|
14484
14484
|
onCellDblclick: Te,
|
|
14485
14485
|
onFilterChange: xe,
|
|
14486
|
-
onFilterReset:
|
|
14486
|
+
onFilterReset: V,
|
|
14487
14487
|
style: {
|
|
14488
14488
|
"--vxe-ui-table-header-background-color": "#f0f2f5",
|
|
14489
14489
|
"--vxe-ui-table-footer-background-color": "#fcfffa"
|
|
@@ -14557,8 +14557,8 @@ ${I.map((Z) => {
|
|
|
14557
14557
|
], 512),
|
|
14558
14558
|
x.value.hasPage && ((Ya = v.pageConfig) != null && Ya.enabled) && re.value.length > 0 ? (l(), t("div", uc, [
|
|
14559
14559
|
r(qa, {
|
|
14560
|
-
modelValue:
|
|
14561
|
-
"onUpdate:modelValue": h[6] || (h[6] = (ye) =>
|
|
14560
|
+
modelValue: H.value,
|
|
14561
|
+
"onUpdate:modelValue": h[6] || (h[6] = (ye) => H.value = ye),
|
|
14562
14562
|
pageSize: g.value,
|
|
14563
14563
|
"onUpdate:pageSize": h[7] || (h[7] = (ye) => g.value = ye),
|
|
14564
14564
|
total: v.pageConfig.total || 0,
|
|
@@ -14573,7 +14573,7 @@ ${I.map((Z) => {
|
|
|
14573
14573
|
r(dl, {
|
|
14574
14574
|
visible: m.value,
|
|
14575
14575
|
"onUpdate:visible": h[9] || (h[9] = (ye) => m.value = ye),
|
|
14576
|
-
header:
|
|
14576
|
+
header: $.value,
|
|
14577
14577
|
size: fe(),
|
|
14578
14578
|
footer: z.value !== "detail",
|
|
14579
14579
|
"close-on-overlay-click": !0,
|
|
@@ -14698,7 +14698,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
14698
14698
|
emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
|
|
14699
14699
|
setup(a, { emit: K }) {
|
|
14700
14700
|
var s;
|
|
14701
|
-
const y = a, u = K, c = E(y.visible), v = E(y.shareUrl), x = E([]), k = E(!1), M = E(1), d = E("read"), P = E(!0), U = E(!1), O = E(""), j = E(""), R = E(!1), q = E(!1), me = E(!1),
|
|
14701
|
+
const y = a, u = K, c = E(y.visible), v = E(y.shareUrl), x = E([]), k = E(!1), M = E(1), d = E("read"), P = E(!0), U = E(!1), O = E(""), j = E(""), R = E(!1), q = E(!1), me = E(!1), H = E(!1), g = E(""), S = E({
|
|
14702
14702
|
allowExternalShare: ((s = y.defaultPermissionSettings) == null ? void 0 : s.allowExternalShare) ?? !1,
|
|
14703
14703
|
collaboratorManagement: "org-only",
|
|
14704
14704
|
copyPermission: "edit",
|
|
@@ -14720,7 +14720,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
14720
14720
|
{ label: "可阅读", value: "read" },
|
|
14721
14721
|
{ label: "可编辑", value: "edit" },
|
|
14722
14722
|
{ label: "可管理", value: "manage" }
|
|
14723
|
-
], m = ce(() => z.value === "manage" ? p : z.value === "edit" ? p.filter((w) => w.value !== "manage") : []),
|
|
14723
|
+
], m = ce(() => z.value === "manage" ? p : z.value === "edit" ? p.filter((w) => w.value !== "manage") : []), $ = [
|
|
14724
14724
|
{ label: "所有人", value: "all" },
|
|
14725
14725
|
{ label: "可编辑及以上", value: "edit" },
|
|
14726
14726
|
{ label: "可管理", value: "manage" },
|
|
@@ -14745,7 +14745,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
14745
14745
|
x.value = [], M.value = ((w = y.organizations[0]) == null ? void 0 : w.id) || 1, j.value = "", d.value = "read", P.value = !0, U.value = !1, O.value = "", k.value = !1;
|
|
14746
14746
|
}, N = () => {
|
|
14747
14747
|
k.value = !1;
|
|
14748
|
-
},
|
|
14748
|
+
}, L = () => {
|
|
14749
14749
|
N();
|
|
14750
14750
|
}, Me = () => {
|
|
14751
14751
|
if (z.value === "read") {
|
|
@@ -14835,12 +14835,12 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
14835
14835
|
De.warning("请输入6位密码");
|
|
14836
14836
|
return;
|
|
14837
14837
|
}
|
|
14838
|
-
De.success("密码设置成功"),
|
|
14838
|
+
De.success("密码设置成功"), H.value = !1, console.log("链接密码:", g.value);
|
|
14839
14839
|
};
|
|
14840
|
-
return $e(
|
|
14840
|
+
return $e(H, (w) => {
|
|
14841
14841
|
w && !g.value && he();
|
|
14842
14842
|
}), (w, b) => {
|
|
14843
|
-
const ke = C("t-icon"), Fe = C("t-tooltip"), fe = C("t-button"), Y = C("t-avatar"), J = C("t-select"), xe = C("t-checkbox"),
|
|
14843
|
+
const ke = C("t-icon"), Fe = C("t-tooltip"), fe = C("t-button"), Y = C("t-avatar"), J = C("t-select"), xe = C("t-checkbox"), V = C("t-input"), f = C("t-textarea"), ae = C("t-dialog"), ze = C("t-switch"), le = C("t-radio"), Te = C("t-radio-group");
|
|
14844
14844
|
return l(), t(ne, null, [
|
|
14845
14845
|
r(ae, {
|
|
14846
14846
|
visible: c.value,
|
|
@@ -14996,7 +14996,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
14996
14996
|
])]),
|
|
14997
14997
|
_: 1
|
|
14998
14998
|
}, 8, ["modelValue"]),
|
|
14999
|
-
U.value ? (l(), B(
|
|
14999
|
+
U.value ? (l(), B(V, {
|
|
15000
15000
|
key: 0,
|
|
15001
15001
|
modelValue: O.value,
|
|
15002
15002
|
"onUpdate:modelValue": b[11] || (b[11] = (Ue) => O.value = Ue),
|
|
@@ -15016,7 +15016,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15016
15016
|
e("div", Nc, [
|
|
15017
15017
|
r(fe, {
|
|
15018
15018
|
variant: "outline",
|
|
15019
|
-
onClick:
|
|
15019
|
+
onClick: L
|
|
15020
15020
|
}, {
|
|
15021
15021
|
default: o(() => [...b[39] || (b[39] = [
|
|
15022
15022
|
A("取消", -1)
|
|
@@ -15172,7 +15172,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15172
15172
|
default: o(() => [
|
|
15173
15173
|
e("div", {
|
|
15174
15174
|
class: be(["cd-share-icon-btn", { "is-disabled": z.value === "read" }]),
|
|
15175
|
-
onClick: b[6] || (b[6] = (Ue) => z.value !== "read" && (
|
|
15175
|
+
onClick: b[6] || (b[6] = (Ue) => z.value !== "read" && (H.value = !0))
|
|
15176
15176
|
}, [
|
|
15177
15177
|
r(ke, { name: "lock-on" })
|
|
15178
15178
|
], 2)
|
|
@@ -15242,7 +15242,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15242
15242
|
r(J, {
|
|
15243
15243
|
modelValue: S.value.copyPermission,
|
|
15244
15244
|
"onUpdate:modelValue": b[16] || (b[16] = (pe) => S.value.copyPermission = pe),
|
|
15245
|
-
options:
|
|
15245
|
+
options: $,
|
|
15246
15246
|
disabled: z.value !== "manage",
|
|
15247
15247
|
style: { width: "200px" }
|
|
15248
15248
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -15252,7 +15252,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15252
15252
|
r(J, {
|
|
15253
15253
|
modelValue: S.value.downloadPermission,
|
|
15254
15254
|
"onUpdate:modelValue": b[17] || (b[17] = (pe) => S.value.downloadPermission = pe),
|
|
15255
|
-
options:
|
|
15255
|
+
options: $,
|
|
15256
15256
|
disabled: z.value !== "manage",
|
|
15257
15257
|
style: { width: "200px" }
|
|
15258
15258
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -15262,7 +15262,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15262
15262
|
r(J, {
|
|
15263
15263
|
modelValue: S.value.commentPermission,
|
|
15264
15264
|
"onUpdate:modelValue": b[18] || (b[18] = (pe) => S.value.commentPermission = pe),
|
|
15265
|
-
options:
|
|
15265
|
+
options: $,
|
|
15266
15266
|
disabled: z.value !== "manage",
|
|
15267
15267
|
style: { width: "200px" }
|
|
15268
15268
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -15275,7 +15275,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15275
15275
|
r(J, {
|
|
15276
15276
|
modelValue: S.value.viewerAvatarsPermission,
|
|
15277
15277
|
"onUpdate:modelValue": b[19] || (b[19] = (pe) => S.value.viewerAvatarsPermission = pe),
|
|
15278
|
-
options:
|
|
15278
|
+
options: $,
|
|
15279
15279
|
disabled: z.value !== "manage",
|
|
15280
15280
|
style: { width: "200px" }
|
|
15281
15281
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -15428,8 +15428,8 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15428
15428
|
_: 1
|
|
15429
15429
|
}, 8, ["visible"]),
|
|
15430
15430
|
r(ae, {
|
|
15431
|
-
visible:
|
|
15432
|
-
"onUpdate:visible": b[26] || (b[26] = (pe) =>
|
|
15431
|
+
visible: H.value,
|
|
15432
|
+
"onUpdate:visible": b[26] || (b[26] = (pe) => H.value = pe),
|
|
15433
15433
|
header: "设置链接密码",
|
|
15434
15434
|
width: "450px",
|
|
15435
15435
|
footer: !1,
|
|
@@ -15440,7 +15440,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15440
15440
|
e("div", rm, [
|
|
15441
15441
|
e("div", dm, [
|
|
15442
15442
|
b[58] || (b[58] = e("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
|
|
15443
|
-
r(
|
|
15443
|
+
r(V, {
|
|
15444
15444
|
modelValue: g.value,
|
|
15445
15445
|
"onUpdate:modelValue": b[24] || (b[24] = (pe) => g.value = pe),
|
|
15446
15446
|
placeholder: "6位数字和字母组合",
|
|
@@ -15489,7 +15489,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15489
15489
|
b[63] || (b[63] = e("div", { style: { flex: "1" } }, null, -1)),
|
|
15490
15490
|
r(fe, {
|
|
15491
15491
|
variant: "outline",
|
|
15492
|
-
onClick: b[25] || (b[25] = (pe) =>
|
|
15492
|
+
onClick: b[25] || (b[25] = (pe) => H.value = !1)
|
|
15493
15493
|
}, {
|
|
15494
15494
|
default: o(() => [...b[61] || (b[61] = [
|
|
15495
15495
|
A("取消", -1)
|
|
@@ -15786,7 +15786,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15786
15786
|
placeholder: p.placeholder || `请输入${p.label}`
|
|
15787
15787
|
} : P(p));
|
|
15788
15788
|
y("save", i), u.value = !1, De.success("字段配置已保存");
|
|
15789
|
-
},
|
|
15789
|
+
}, H = () => {
|
|
15790
15790
|
u.value = !1;
|
|
15791
15791
|
}, g = () => {
|
|
15792
15792
|
y("advanced-edit");
|
|
@@ -15794,7 +15794,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15794
15794
|
y("advanced-design");
|
|
15795
15795
|
};
|
|
15796
15796
|
return (i, p) => {
|
|
15797
|
-
const m = C("t-button"),
|
|
15797
|
+
const m = C("t-button"), $ = C("t-space"), z = C("t-select"), oe = C("t-switch"), te = C("vxe-grid"), W = C("t-dialog");
|
|
15798
15798
|
return l(), B(W, {
|
|
15799
15799
|
visible: u.value,
|
|
15800
15800
|
"onUpdate:visible": p[0] || (p[0] = (G) => u.value = G),
|
|
@@ -15803,7 +15803,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15803
15803
|
placement: "center",
|
|
15804
15804
|
footer: !1,
|
|
15805
15805
|
class: "field-manage-dialog",
|
|
15806
|
-
onClose:
|
|
15806
|
+
onClose: H
|
|
15807
15807
|
}, {
|
|
15808
15808
|
header: o(() => [
|
|
15809
15809
|
e("div", pm, [
|
|
@@ -15840,7 +15840,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15840
15840
|
]),
|
|
15841
15841
|
_: 1
|
|
15842
15842
|
}),
|
|
15843
|
-
r(
|
|
15843
|
+
r($, null, {
|
|
15844
15844
|
default: o(() => [
|
|
15845
15845
|
r(m, {
|
|
15846
15846
|
onClick: S,
|
|
@@ -15869,7 +15869,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15869
15869
|
}),
|
|
15870
15870
|
r(m, {
|
|
15871
15871
|
variant: "outline",
|
|
15872
|
-
onClick:
|
|
15872
|
+
onClick: H,
|
|
15873
15873
|
size: "small"
|
|
15874
15874
|
}, {
|
|
15875
15875
|
default: o(() => [...p[10] || (p[10] = [
|
|
@@ -15904,7 +15904,7 @@ const vc = { class: "cd-share-header" }, fc = { class: "cd-share-title" }, pc =
|
|
|
15904
15904
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
15905
15905
|
]),
|
|
15906
15906
|
actions: o(({ rowIndex: G }) => [
|
|
15907
|
-
r(
|
|
15907
|
+
r($, null, {
|
|
15908
15908
|
default: o(() => [
|
|
15909
15909
|
r(m, {
|
|
15910
15910
|
variant: "text",
|
|
@@ -15969,12 +15969,12 @@ function Cm(a) {
|
|
|
15969
15969
|
} = a, P = /* @__PURE__ */ new Map(), U = (i, p) => {
|
|
15970
15970
|
!i || !Array.isArray(i) || i.forEach((m) => {
|
|
15971
15971
|
var z;
|
|
15972
|
-
const
|
|
15973
|
-
if (
|
|
15974
|
-
const oe = p ? `${p}.${
|
|
15972
|
+
const $ = m.__vModel__;
|
|
15973
|
+
if ($) {
|
|
15974
|
+
const oe = p ? `${p}.${$}` : $;
|
|
15975
15975
|
P.set(oe, m);
|
|
15976
15976
|
}
|
|
15977
|
-
(z = m.__config__) != null && z.children && U(m.__config__.children,
|
|
15977
|
+
(z = m.__config__) != null && z.children && U(m.__config__.children, $);
|
|
15978
15978
|
});
|
|
15979
15979
|
};
|
|
15980
15980
|
return U(y), {
|
|
@@ -15985,8 +15985,8 @@ function Cm(a) {
|
|
|
15985
15985
|
return {
|
|
15986
15986
|
value: () => K[i],
|
|
15987
15987
|
empty: () => {
|
|
15988
|
-
const
|
|
15989
|
-
return
|
|
15988
|
+
const $ = K[i];
|
|
15989
|
+
return $ == null || $ === "" || Array.isArray($) && $.length === 0;
|
|
15990
15990
|
},
|
|
15991
15991
|
lock: () => {
|
|
15992
15992
|
m && (m.disabled = !0);
|
|
@@ -16000,8 +16000,8 @@ function Cm(a) {
|
|
|
16000
16000
|
hide: () => {
|
|
16001
16001
|
m != null && m.__config__ && (m.__config__.noShow = !0);
|
|
16002
16002
|
},
|
|
16003
|
-
required: (
|
|
16004
|
-
m != null && m.__config__ && (m.__config__.required =
|
|
16003
|
+
required: ($) => {
|
|
16004
|
+
m != null && m.__config__ && (m.__config__.required = $);
|
|
16005
16005
|
}
|
|
16006
16006
|
};
|
|
16007
16007
|
},
|
|
@@ -16011,19 +16011,19 @@ function Cm(a) {
|
|
|
16011
16011
|
warning: (i) => De.warning(i),
|
|
16012
16012
|
error: (i) => De.error(i),
|
|
16013
16013
|
confirm: (i, p) => new Promise((m) => {
|
|
16014
|
-
const
|
|
16014
|
+
const $ = pl.confirm({
|
|
16015
16015
|
header: (p == null ? void 0 : p.title) || "确认",
|
|
16016
16016
|
body: i,
|
|
16017
16017
|
confirmBtn: (p == null ? void 0 : p.yes) || "确定",
|
|
16018
16018
|
cancelBtn: (p == null ? void 0 : p.no) || "取消",
|
|
16019
16019
|
onConfirm: () => {
|
|
16020
|
-
|
|
16020
|
+
$.destroy(), m(!0);
|
|
16021
16021
|
},
|
|
16022
16022
|
onCancel: () => {
|
|
16023
|
-
|
|
16023
|
+
$.destroy(), m(!1);
|
|
16024
16024
|
},
|
|
16025
16025
|
onClose: () => {
|
|
16026
|
-
|
|
16026
|
+
$.destroy(), m(!1);
|
|
16027
16027
|
}
|
|
16028
16028
|
});
|
|
16029
16029
|
})
|
|
@@ -16047,12 +16047,12 @@ function Cm(a) {
|
|
|
16047
16047
|
return Array.isArray(p) ? p.length : 0;
|
|
16048
16048
|
},
|
|
16049
16049
|
entry_value: (i, p) => {
|
|
16050
|
-
const m = p.split("."),
|
|
16050
|
+
const m = p.split("."), $ = m.length > 1 ? m[0] : "", z = m.length > 1 ? m[1] : p, oe = $ ? K[$] : K;
|
|
16051
16051
|
if (Array.isArray(oe) && oe[i])
|
|
16052
16052
|
return oe[i][z];
|
|
16053
16053
|
},
|
|
16054
16054
|
entry_field_set: (i, p, m) => {
|
|
16055
|
-
const
|
|
16055
|
+
const $ = p.split("."), z = $.length > 1 ? $[0] : "", oe = $.length > 1 ? $[1] : p, te = z ? K[z] : K;
|
|
16056
16056
|
Array.isArray(te) && te[i] && (te[i][oe] = m);
|
|
16057
16057
|
},
|
|
16058
16058
|
entry_add_row: (i) => {
|
|
@@ -16076,7 +16076,7 @@ function Cm(a) {
|
|
|
16076
16076
|
return `${i.getFullYear()}-${String(i.getMonth() + 1).padStart(2, "0")}-${String(i.getDate()).padStart(2, "0")} ${String(i.getHours()).padStart(2, "0")}:${String(i.getMinutes()).padStart(2, "0")}:${String(i.getSeconds()).padStart(2, "0")}`;
|
|
16077
16077
|
},
|
|
16078
16078
|
format: (i, p) => {
|
|
16079
|
-
const m = new Date(i),
|
|
16079
|
+
const m = new Date(i), $ = {
|
|
16080
16080
|
YYYY: m.getFullYear(),
|
|
16081
16081
|
MM: m.getMonth() + 1,
|
|
16082
16082
|
DD: m.getDate(),
|
|
@@ -16084,7 +16084,7 @@ function Cm(a) {
|
|
|
16084
16084
|
mm: m.getMinutes(),
|
|
16085
16085
|
ss: m.getSeconds()
|
|
16086
16086
|
};
|
|
16087
|
-
return p.replace(/YYYY|MM|DD|HH|mm|ss/g, (z) => String(
|
|
16087
|
+
return p.replace(/YYYY|MM|DD|HH|mm|ss/g, (z) => String($[z]).padStart(2, "0"));
|
|
16088
16088
|
}
|
|
16089
16089
|
},
|
|
16090
16090
|
util: {
|
|
@@ -16099,9 +16099,9 @@ function Cm(a) {
|
|
|
16099
16099
|
toChineseMoney: (i) => {
|
|
16100
16100
|
const p = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], m = ["", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿"];
|
|
16101
16101
|
if (i === 0) return "零元整";
|
|
16102
|
-
const
|
|
16102
|
+
const $ = Math.floor(i), z = Math.round((i - $) * 100);
|
|
16103
16103
|
let oe = "";
|
|
16104
|
-
const te =
|
|
16104
|
+
const te = $.toString();
|
|
16105
16105
|
for (let W = 0; W < te.length; W++) {
|
|
16106
16106
|
const G = parseInt(te[W]), N = m[te.length - 1 - W];
|
|
16107
16107
|
G !== 0 ? oe += p[G] + N : oe.endsWith("零") || (oe += "零");
|