cd-form 2.0.6 → 2.0.7
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 +897 -878
- package/dist/cd-form.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Ke, computed as ve, resolveComponent as M, createBlock as j, openBlock as l, normalizeClass as xe, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as Y, normalizeStyle as Xe, toDisplayString as V, createTextVNode as A, withModifiers as Qe, Fragment as fe, renderList as be, ref as F, watch as Fe, nextTick as na, createVNode as s, withDirectives as ha, withKeys as za, vModelText as Ca, vShow as Cl, createSlots as ya, useCssVars as Ol, onMounted as Da, onUnmounted as gl, Teleport as vl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as fl, resolveDynamicComponent as Tl, mergeProps as Aa, provide as wa, watchEffect as xl, h as ml, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
|
|
2
2
|
import { MessagePlugin as Ie, DialogPlugin as Ll } from "tdesign-vue-next";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import ja from "vxe-table";
|
|
4
|
+
const Fa = /* @__PURE__ */ Ke({
|
|
5
5
|
__name: "CdFormCol",
|
|
6
6
|
props: {
|
|
7
7
|
span: { default: 12 },
|
|
@@ -29,7 +29,7 @@ const Ma = /* @__PURE__ */ Je({
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
function
|
|
32
|
+
function ta(a) {
|
|
33
33
|
return a.install = (te) => {
|
|
34
34
|
const n = a.name || a.__name;
|
|
35
35
|
n && te.component(n, a);
|
|
@@ -80,7 +80,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
80
80
|
}, ht = {
|
|
81
81
|
key: 3,
|
|
82
82
|
class: "cd-usercard__footer"
|
|
83
|
-
}, bt = /* @__PURE__ */
|
|
83
|
+
}, bt = /* @__PURE__ */ Ke({
|
|
84
84
|
name: "CdUserCard",
|
|
85
85
|
__name: "UserCard",
|
|
86
86
|
props: {
|
|
@@ -153,7 +153,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
153
153
|
}, null, 8, Yl)) : (l(), o("div", {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "cd-usercard__avatar cd-usercard__avatar--placeholder",
|
|
156
|
-
style:
|
|
156
|
+
style: Xe({ backgroundColor: I.value })
|
|
157
157
|
}, V(r.value), 5)),
|
|
158
158
|
a.showStatus ? (l(), o("span", {
|
|
159
159
|
key: 2,
|
|
@@ -282,12 +282,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
282
282
|
], 2);
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), aa = (a, te) => {
|
|
286
286
|
const n = a.__vccOpts || a;
|
|
287
287
|
for (const [y, u] of te)
|
|
288
288
|
n[y] = u;
|
|
289
289
|
return n;
|
|
290
|
-
}, yt = /* @__PURE__ */
|
|
290
|
+
}, yt = /* @__PURE__ */ aa(bt, [["__scopeId", "data-v-df37fd5c"]]), _t = { class: "avatar-crop-container" }, kt = ["src"], Ct = { class: "crop-preview" }, wt = { class: "crop-footer" }, xt = /* @__PURE__ */ Ke({
|
|
291
291
|
name: "AvatarCropDialog",
|
|
292
292
|
__name: "AvatarCropDialog",
|
|
293
293
|
props: {
|
|
@@ -310,11 +310,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
310
310
|
left: 0,
|
|
311
311
|
top: 0
|
|
312
312
|
}), D = F(!1), q = F(!1), ee = F(""), N = F({ x: 0, y: 0 }), J = F({ x: 0, y: 0, width: 0, height: 0 });
|
|
313
|
-
|
|
313
|
+
Fe(() => n.visible, (b) => {
|
|
314
314
|
u.value = b, b && na(() => {
|
|
315
315
|
d();
|
|
316
316
|
});
|
|
317
|
-
}),
|
|
317
|
+
}), Fe(u, (b) => {
|
|
318
318
|
y("update:visible", b);
|
|
319
319
|
});
|
|
320
320
|
const ge = ve(() => ({
|
|
@@ -346,15 +346,15 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
346
346
|
}), W = () => {
|
|
347
347
|
if (!c.value || !m.value) return;
|
|
348
348
|
const b = c.value, z = m.value, P = z.offsetWidth, G = z.offsetHeight, X = b.naturalWidth / b.naturalHeight, oe = P / G;
|
|
349
|
-
let ne,
|
|
350
|
-
X > oe ? (ne = P,
|
|
349
|
+
let ne, C;
|
|
350
|
+
X > oe ? (ne = P, C = P / X) : (C = G, ne = G * X), r.value = {
|
|
351
351
|
width: ne,
|
|
352
|
-
height:
|
|
352
|
+
height: C,
|
|
353
353
|
naturalWidth: b.naturalWidth,
|
|
354
354
|
naturalHeight: b.naturalHeight
|
|
355
355
|
}, I.value = {
|
|
356
356
|
left: (P - ne) / 2,
|
|
357
|
-
top: (G -
|
|
357
|
+
top: (G - C) / 2
|
|
358
358
|
}, d(), ue();
|
|
359
359
|
}, d = () => {
|
|
360
360
|
if (!c.value) return;
|
|
@@ -444,7 +444,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
444
444
|
class: "image-wrapper",
|
|
445
445
|
ref_key: "imageWrapperRef",
|
|
446
446
|
ref: U,
|
|
447
|
-
style:
|
|
447
|
+
style: Xe(H.value)
|
|
448
448
|
}, [
|
|
449
449
|
e("img", {
|
|
450
450
|
ref_key: "imageRef",
|
|
@@ -460,11 +460,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
460
460
|
}, null, 40, kt),
|
|
461
461
|
e("div", {
|
|
462
462
|
class: "crop-mask",
|
|
463
|
-
style:
|
|
463
|
+
style: Xe(E.value)
|
|
464
464
|
}, null, 4),
|
|
465
465
|
e("div", {
|
|
466
466
|
class: "crop-box",
|
|
467
|
-
style:
|
|
467
|
+
style: Xe(ge.value),
|
|
468
468
|
onMousedown: S
|
|
469
469
|
}, [
|
|
470
470
|
z[11] || (z[11] = e("div", { class: "crop-box-border" }, null, -1)),
|
|
@@ -558,7 +558,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
558
558
|
}, 8, ["visible"]);
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
}), $t = /* @__PURE__ */
|
|
561
|
+
}), $t = /* @__PURE__ */ aa(xt, [["__scopeId", "data-v-bf9fcb25"]]), Vt = { class: "cd-usercard-panel" }, St = { class: "profile" }, Mt = { class: "profile__header" }, zt = { class: "profile__avatar-wrapper" }, Ft = ["src"], Dt = { class: "profile__title" }, At = { class: "profile__name" }, Ut = {
|
|
562
562
|
key: 0,
|
|
563
563
|
class: "profile__alias editable"
|
|
564
564
|
}, Rt = {
|
|
@@ -582,7 +582,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
582
582
|
}, Zt = {
|
|
583
583
|
key: 1,
|
|
584
584
|
class: "section-content"
|
|
585
|
-
}, en = /* @__PURE__ */
|
|
585
|
+
}, en = /* @__PURE__ */ Ke({
|
|
586
586
|
name: "CdProfilePanel",
|
|
587
587
|
__name: "ProfilePanel",
|
|
588
588
|
props: {
|
|
@@ -656,7 +656,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
656
656
|
}, null, 8, Ft)) : (l(), o("div", {
|
|
657
657
|
key: 1,
|
|
658
658
|
class: "profile__avatar profile__avatar-placeholder",
|
|
659
|
-
style:
|
|
659
|
+
style: Xe({ backgroundColor: E.value })
|
|
660
660
|
}, V(H.value), 5)),
|
|
661
661
|
a.inlineEdit ? (l(), o("div", {
|
|
662
662
|
key: 2,
|
|
@@ -681,15 +681,15 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
681
681
|
a.inlineEdit ? (l(), o(fe, { key: 0 }, [
|
|
682
682
|
u.value === "alias" ? (l(), o("span", Ut, [
|
|
683
683
|
d[15] || (d[15] = A(" (", -1)),
|
|
684
|
-
|
|
684
|
+
ha(e("input", {
|
|
685
685
|
"onUpdate:modelValue": d[0] || (d[0] = (O) => c.value = O),
|
|
686
686
|
class: "inline-input inline-input--sm",
|
|
687
687
|
onBlur: I,
|
|
688
|
-
onKeyup:
|
|
688
|
+
onKeyup: za(I, ["enter"]),
|
|
689
689
|
ref_key: "editInput",
|
|
690
690
|
ref: m
|
|
691
691
|
}, null, 544), [
|
|
692
|
-
[
|
|
692
|
+
[Ca, c.value]
|
|
693
693
|
]),
|
|
694
694
|
d[16] || (d[16] = A(") ", -1))
|
|
695
695
|
])) : (l(), o("span", {
|
|
@@ -742,16 +742,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
742
742
|
e("div", Tt, [
|
|
743
743
|
d[23] || (d[23] = e("i", { class: "ri-mail-line" }, null, -1)),
|
|
744
744
|
d[24] || (d[24] = e("span", { class: "label" }, "邮箱", -1)),
|
|
745
|
-
a.inlineEdit && u.value === "email" ?
|
|
745
|
+
a.inlineEdit && u.value === "email" ? ha((l(), o("input", {
|
|
746
746
|
key: 0,
|
|
747
747
|
"onUpdate:modelValue": d[3] || (d[3] = (O) => c.value = O),
|
|
748
748
|
class: "inline-input",
|
|
749
749
|
onBlur: I,
|
|
750
|
-
onKeyup:
|
|
750
|
+
onKeyup: za(I, ["enter"]),
|
|
751
751
|
ref_key: "editInput",
|
|
752
752
|
ref: m
|
|
753
753
|
}, null, 544)), [
|
|
754
|
-
[
|
|
754
|
+
[Ca, c.value]
|
|
755
755
|
]) : a.inlineEdit ? (l(), o("span", {
|
|
756
756
|
key: 1,
|
|
757
757
|
class: "value clickable",
|
|
@@ -768,16 +768,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
768
768
|
e("div", Bt, [
|
|
769
769
|
d[26] || (d[26] = e("i", { class: "ri-smartphone-line" }, null, -1)),
|
|
770
770
|
d[27] || (d[27] = e("span", { class: "label" }, "手机", -1)),
|
|
771
|
-
a.inlineEdit && u.value === "mobile" ?
|
|
771
|
+
a.inlineEdit && u.value === "mobile" ? ha((l(), o("input", {
|
|
772
772
|
key: 0,
|
|
773
773
|
"onUpdate:modelValue": d[6] || (d[6] = (O) => c.value = O),
|
|
774
774
|
class: "inline-input",
|
|
775
775
|
onBlur: I,
|
|
776
|
-
onKeyup:
|
|
776
|
+
onKeyup: za(I, ["enter"]),
|
|
777
777
|
ref_key: "editInput",
|
|
778
778
|
ref: m
|
|
779
779
|
}, null, 544)), [
|
|
780
|
-
[
|
|
780
|
+
[Ca, c.value]
|
|
781
781
|
]) : a.inlineEdit ? (l(), o("span", {
|
|
782
782
|
key: 1,
|
|
783
783
|
class: "value clickable",
|
|
@@ -790,16 +790,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
790
790
|
e("div", Lt, [
|
|
791
791
|
d[29] || (d[29] = e("i", { class: "ri-phone-line" }, null, -1)),
|
|
792
792
|
d[30] || (d[30] = e("span", { class: "label" }, "座机", -1)),
|
|
793
|
-
a.inlineEdit && u.value === "telephone" ?
|
|
793
|
+
a.inlineEdit && u.value === "telephone" ? ha((l(), o("input", {
|
|
794
794
|
key: 0,
|
|
795
795
|
"onUpdate:modelValue": d[8] || (d[8] = (O) => c.value = O),
|
|
796
796
|
class: "inline-input",
|
|
797
797
|
onBlur: I,
|
|
798
|
-
onKeyup:
|
|
798
|
+
onKeyup: za(I, ["enter"]),
|
|
799
799
|
ref_key: "editInput",
|
|
800
800
|
ref: m
|
|
801
801
|
}, null, 544)), [
|
|
802
|
-
[
|
|
802
|
+
[Ca, c.value]
|
|
803
803
|
]) : a.inlineEdit ? (l(), o("span", {
|
|
804
804
|
key: 1,
|
|
805
805
|
class: "value clickable",
|
|
@@ -825,16 +825,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
825
825
|
e("i", { class: "ri-double-quotes-l" }),
|
|
826
826
|
A(" 个性签名")
|
|
827
827
|
], -1)),
|
|
828
|
-
a.inlineEdit && u.value === "signature" ?
|
|
828
|
+
a.inlineEdit && u.value === "signature" ? ha((l(), o("input", {
|
|
829
829
|
key: 0,
|
|
830
830
|
"onUpdate:modelValue": d[10] || (d[10] = (O) => c.value = O),
|
|
831
831
|
class: "inline-input inline-input--full",
|
|
832
832
|
onBlur: I,
|
|
833
|
-
onKeyup:
|
|
833
|
+
onKeyup: za(I, ["enter"]),
|
|
834
834
|
ref_key: "editInput",
|
|
835
835
|
ref: m
|
|
836
836
|
}, null, 544)), [
|
|
837
|
-
[
|
|
837
|
+
[Ca, c.value]
|
|
838
838
|
]) : a.inlineEdit ? (l(), o("div", {
|
|
839
839
|
key: 1,
|
|
840
840
|
class: "section-content clickable",
|
|
@@ -874,13 +874,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
874
874
|
], 64);
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
-
}), $l = /* @__PURE__ */
|
|
877
|
+
}), $l = /* @__PURE__ */ aa(en, [["__scopeId", "data-v-c41100af"]]), an = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "cd-usercard-user-center__nav"
|
|
880
880
|
}, ln = { class: "cd-usercard-nav-header" }, tn = { class: "cd-usercard-nav-list" }, nn = ["onClick"], on = {
|
|
881
881
|
key: 0,
|
|
882
882
|
class: "cd-usercard-nav-footer"
|
|
883
|
-
}, sn = { class: "cd-usercard-user-center__content" }, Vl = /* @__PURE__ */
|
|
883
|
+
}, sn = { class: "cd-usercard-user-center__content" }, Vl = /* @__PURE__ */ Ke({
|
|
884
884
|
name: "CdProfileDialog",
|
|
885
885
|
__name: "ProfileDialog",
|
|
886
886
|
props: {
|
|
@@ -901,9 +901,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
901
901
|
emits: ["update:visible", "close", "nav-click", "edit", "field-change", "avatar-upload", "logout"],
|
|
902
902
|
setup(a, { emit: te }) {
|
|
903
903
|
const n = a, y = te, u = F(n.visible), c = F(n.defaultPanel);
|
|
904
|
-
|
|
904
|
+
Fe(() => n.visible, (I) => {
|
|
905
905
|
u.value = I, I && (c.value = n.defaultPanel);
|
|
906
|
-
}),
|
|
906
|
+
}), Fe(u, (I) => {
|
|
907
907
|
y("update:visible", I);
|
|
908
908
|
});
|
|
909
909
|
const m = () => {
|
|
@@ -932,7 +932,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
932
932
|
default: i(() => [
|
|
933
933
|
e("div", {
|
|
934
934
|
class: "cd-usercard-user-center",
|
|
935
|
-
style:
|
|
935
|
+
style: Xe({ height: a.height })
|
|
936
936
|
}, [
|
|
937
937
|
a.showNav ? (l(), o("aside", an, [
|
|
938
938
|
e("div", ln, [
|
|
@@ -986,7 +986,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
986
986
|
}), rn = { class: "cd-usercard-dropdown-user-info" }, dn = { class: "cd-usercard-header" }, un = { class: "cd-usercard-user-info" }, cn = ["src"], fn = { class: "cd_info cd-usercard-block" }, mn = { class: "cd_name-row" }, vn = { class: "cd_name-wrapper" }, pn = { class: "cd_name cd-usercard-truncate" }, gn = { class: "cd_actions" }, hn = { class: "cd-usercard-status-options" }, bn = { class: "cd_org cd-usercard-truncate" }, yn = { class: "cd-usercard-menu-list" }, _n = ["onClick"], kn = {
|
|
987
987
|
key: 0,
|
|
988
988
|
class: "cd-usercard-footer"
|
|
989
|
-
}, Cn = ["src"], wn = { class: "cd-usercard-user-name" }, xn = /* @__PURE__ */
|
|
989
|
+
}, Cn = ["src"], wn = { class: "cd-usercard-user-name" }, xn = /* @__PURE__ */ Ke({
|
|
990
990
|
name: "CdUserInfo",
|
|
991
991
|
__name: "UserInfo",
|
|
992
992
|
props: {
|
|
@@ -1052,7 +1052,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1052
1052
|
}, null, 8, cn)) : (l(), o("div", {
|
|
1053
1053
|
key: 1,
|
|
1054
1054
|
class: "cd_header cd-usercard-avatar-placeholder",
|
|
1055
|
-
style:
|
|
1055
|
+
style: Xe({ backgroundColor: ee.value, color: "#fff" })
|
|
1056
1056
|
}, V(I.value), 5)),
|
|
1057
1057
|
e("div", fn, [
|
|
1058
1058
|
e("div", mn, [
|
|
@@ -1068,7 +1068,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1068
1068
|
class: xe(["cd-usercard-status-text cd-usercard-cursor-pointer cd-usercard-ml-2", w.value]),
|
|
1069
1069
|
onClick: N
|
|
1070
1070
|
}, V(r.value), 3),
|
|
1071
|
-
|
|
1071
|
+
ha(e("div", hn, [
|
|
1072
1072
|
e("div", {
|
|
1073
1073
|
class: "cd-usercard-status-option cd-usercard-status-badge--online",
|
|
1074
1074
|
onClick: R[0] || (R[0] = (L) => J("online"))
|
|
@@ -1135,7 +1135,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1135
1135
|
}, null, 8, Cn)) : (l(), o("div", {
|
|
1136
1136
|
key: 1,
|
|
1137
1137
|
class: "cd-usercard-user-avatar cd-usercard-avatar-placeholder",
|
|
1138
|
-
style:
|
|
1138
|
+
style: Xe({ backgroundColor: D.value, color: q.value })
|
|
1139
1139
|
}, V(I.value), 5)),
|
|
1140
1140
|
e("span", wn, V((ue = a.profileData) == null ? void 0 : ue.displayName), 1),
|
|
1141
1141
|
R[11] || (R[11] = e("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
@@ -1162,7 +1162,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1162
1162
|
], 64);
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
}), $n = /* @__PURE__ */
|
|
1165
|
+
}), $n = /* @__PURE__ */ aa(xn, [["__scopeId", "data-v-42962883"]]), Vn = { class: "cd-ps-container" }, Sn = {
|
|
1166
1166
|
key: 0,
|
|
1167
1167
|
class: "cd-ps-tips"
|
|
1168
1168
|
}, Mn = {
|
|
@@ -1198,7 +1198,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1198
1198
|
}, lo = {
|
|
1199
1199
|
key: 1,
|
|
1200
1200
|
class: "cd-ps-selected-list"
|
|
1201
|
-
}, to = { class: "cd-ps-item-info" }, no = { class: "cd-ps-info" }, oo = { class: "cd-ps-name" }, io = { class: "cd-ps-meta" }, so = { key: 0 }, ro = { key: 1 }, uo = { key: 2 }, co = { key: 3 }, fo = /* @__PURE__ */
|
|
1201
|
+
}, to = { class: "cd-ps-item-info" }, no = { class: "cd-ps-info" }, oo = { class: "cd-ps-name" }, io = { class: "cd-ps-meta" }, so = { key: 0 }, ro = { key: 1 }, uo = { key: 2 }, co = { key: 3 }, fo = /* @__PURE__ */ Ke({
|
|
1202
1202
|
__name: "PersonSelector",
|
|
1203
1203
|
props: {
|
|
1204
1204
|
visible: { type: Boolean, default: !1 },
|
|
@@ -1215,7 +1215,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1215
1215
|
setup(a, { expose: te, emit: n }) {
|
|
1216
1216
|
var y, u;
|
|
1217
1217
|
const c = a, m = n, U = F(c.visible), _ = F(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = F(null), r = F(""), I = F([]), D = F(/* @__PURE__ */ new Map()), q = F({}), ee = F(!1), N = F(!1), J = F([]), ge = ve(() => c.tabs || []), H = ve(() => c.organizations || []), E = ve(() => c.tips || ""), W = ve(() => c.showSearch), d = ve(() => c.showOrg), S = ve(() => c.dialogWidth), g = F({});
|
|
1218
|
-
|
|
1218
|
+
Fe(() => c.tabs, (ce) => {
|
|
1219
1219
|
if (ce && ce.length > 0) {
|
|
1220
1220
|
const T = {};
|
|
1221
1221
|
ce.forEach((h) => {
|
|
@@ -1232,11 +1232,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1232
1232
|
} else
|
|
1233
1233
|
I.value = [], D.value.clear();
|
|
1234
1234
|
}
|
|
1235
|
-
|
|
1235
|
+
Fe(() => c.modelValue, (ce) => {
|
|
1236
1236
|
U.value && ce && R();
|
|
1237
|
-
}, { deep: !0 }),
|
|
1237
|
+
}, { deep: !0 }), Fe(() => c.visible, (ce) => {
|
|
1238
1238
|
U.value = ce, ce && (R(), c.organizations.length > 0 && !w.value && (w.value = c.organizations[0].id));
|
|
1239
|
-
}),
|
|
1239
|
+
}), Fe(U, (ce) => {
|
|
1240
1240
|
m("update:visible", ce);
|
|
1241
1241
|
});
|
|
1242
1242
|
function O(ce, T) {
|
|
@@ -1285,7 +1285,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1285
1285
|
}, ne = (ce) => {
|
|
1286
1286
|
I.value.indexOf(ce.id) > -1 ? x(ce.id) : (c.multiple || (I.value = [], D.value.clear()), L(ce.id, { ...ce, isUser: !0, typeName: "搜索结果", orgId: w.value }), c.multiple || ke());
|
|
1287
1287
|
};
|
|
1288
|
-
function
|
|
1288
|
+
function C(ce) {
|
|
1289
1289
|
const T = [], h = (Se) => {
|
|
1290
1290
|
for (const We of Se)
|
|
1291
1291
|
T.push(We.id), We.children && h(We.children);
|
|
@@ -1296,18 +1296,18 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1296
1296
|
var h, Se;
|
|
1297
1297
|
const We = T == null ? void 0 : T.node;
|
|
1298
1298
|
if (We) {
|
|
1299
|
-
const
|
|
1300
|
-
if (
|
|
1299
|
+
const De = We.value ?? ((h = We.data) == null ? void 0 : h.id);
|
|
1300
|
+
if (De !== void 0) {
|
|
1301
1301
|
if (We.checked) {
|
|
1302
1302
|
c.multiple || (I.value = [], D.value.clear());
|
|
1303
|
-
const Oe = c.tabs.find((
|
|
1304
|
-
L(
|
|
1303
|
+
const Oe = c.tabs.find((Ue) => Ue.key === _.value), Ve = Oe ? Oe.name.replace(/^按/, "") : "";
|
|
1304
|
+
L(De, { ...We.data, typeName: Ve, orgId: w.value }), !c.multiple && (Se = We.data) != null && Se.isUser && ke();
|
|
1305
1305
|
} else
|
|
1306
|
-
x(
|
|
1306
|
+
x(De);
|
|
1307
1307
|
return;
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
|
-
const ye = g.value[_.value] || [], Q =
|
|
1310
|
+
const ye = g.value[_.value] || [], Q = C(ye), ae = I.value.filter((De) => !Q.includes(De));
|
|
1311
1311
|
I.value = [...ae, ...ce];
|
|
1312
1312
|
};
|
|
1313
1313
|
function le(ce, T, h) {
|
|
@@ -1324,8 +1324,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1324
1324
|
m("load-users", { tabKey: T, nodeId: h, node: ce, callback: async (We) => {
|
|
1325
1325
|
if (We.length > 0) {
|
|
1326
1326
|
const ye = We.map((ae) => {
|
|
1327
|
-
const { id:
|
|
1328
|
-
return { ...Ve, id:
|
|
1327
|
+
const { id: De, name: Oe, ...Ve } = ae;
|
|
1328
|
+
return { ...Ve, id: De, name: ae.displayName || Oe, isUser: !0 };
|
|
1329
1329
|
}), Q = g.value[T];
|
|
1330
1330
|
if (Q && le(Q, h, ye), Se) {
|
|
1331
1331
|
Se.appendTo(h, ye), ce.data.loaded = !0, await na();
|
|
@@ -1359,14 +1359,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1359
1359
|
const Se = q.value[ce];
|
|
1360
1360
|
if (Se && h.length > 0) {
|
|
1361
1361
|
const We = h.map((ye) => {
|
|
1362
|
-
const { id: Q, name: ae, ...
|
|
1363
|
-
return { ...
|
|
1362
|
+
const { id: Q, name: ae, ...De } = ye;
|
|
1363
|
+
return { ...De, id: Q, name: ye.displayName || ae, isUser: !0 };
|
|
1364
1364
|
});
|
|
1365
1365
|
Se.appendTo(T, We);
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}), (ce, T) => {
|
|
1369
|
-
const h = M("t-icon"), Se = M("t-option"), We = M("t-select"), ye = M("t-input"), Q = M("t-button"), ae = M("t-loading"),
|
|
1369
|
+
const h = M("t-icon"), Se = M("t-option"), We = M("t-select"), ye = M("t-input"), Q = M("t-button"), ae = M("t-loading"), De = M("t-checkbox"), Oe = M("t-tree"), Ve = M("t-tab-panel"), Ue = M("t-tabs"), ra = M("t-dialog");
|
|
1370
1370
|
return l(), j(ra, {
|
|
1371
1371
|
visible: U.value,
|
|
1372
1372
|
"onUpdate:visible": T[4] || (T[4] = (re) => U.value = re),
|
|
@@ -1451,7 +1451,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1451
1451
|
class: xe(["cd-ps-result-item", { "cd-ps-selected": I.value.includes(re.id) }]),
|
|
1452
1452
|
onClick: (ia) => ne(re)
|
|
1453
1453
|
}, [
|
|
1454
|
-
s(
|
|
1454
|
+
s(De, {
|
|
1455
1455
|
checked: I.value.includes(re.id),
|
|
1456
1456
|
onClick: T[2] || (T[2] = Qe(() => {
|
|
1457
1457
|
}, ["stop"]))
|
|
@@ -1469,7 +1469,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1469
1469
|
])
|
|
1470
1470
|
], 10, On))), 128))
|
|
1471
1471
|
]))
|
|
1472
|
-
])) : (l(), j(
|
|
1472
|
+
])) : (l(), j(Ue, {
|
|
1473
1473
|
key: 1,
|
|
1474
1474
|
modelValue: _.value,
|
|
1475
1475
|
"onUpdate:modelValue": T[3] || (T[3] = (re) => _.value = re),
|
|
@@ -1627,7 +1627,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1627
1627
|
}, _o = {
|
|
1628
1628
|
key: 2,
|
|
1629
1629
|
class: "ri-building-line cd-input-select__option-icon"
|
|
1630
|
-
}, ko = /* @__PURE__ */
|
|
1630
|
+
}, ko = /* @__PURE__ */ Ke({
|
|
1631
1631
|
name: "CdInputPersonSelector",
|
|
1632
1632
|
__name: "InputSelect",
|
|
1633
1633
|
props: {
|
|
@@ -1720,7 +1720,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1720
1720
|
callback: g.callback
|
|
1721
1721
|
});
|
|
1722
1722
|
};
|
|
1723
|
-
return
|
|
1723
|
+
return Fe(() => n.modelValue, (g) => {
|
|
1724
1724
|
n.multiple ? m.value = g.map((R) => R.id) : m.value = g.length > 0 ? g[0].id : void 0, _.value = g.map((R) => R.id), w.value = g;
|
|
1725
1725
|
}, { immediate: !0, deep: !0 }), (g, R) => {
|
|
1726
1726
|
const O = M("t-icon"), de = M("t-tag"), ue = M("t-option"), L = M("t-select");
|
|
@@ -1743,7 +1743,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1743
1743
|
onSearch: ee,
|
|
1744
1744
|
onChange: J,
|
|
1745
1745
|
onPopupVisibleChange: N
|
|
1746
|
-
},
|
|
1746
|
+
}, ya({
|
|
1747
1747
|
valueDisplay: i(() => [
|
|
1748
1748
|
(l(!0), o(fe, null, be(w.value, (x) => (l(), j(de, {
|
|
1749
1749
|
key: x.id,
|
|
@@ -1777,7 +1777,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1777
1777
|
])) : (l(), o("div", {
|
|
1778
1778
|
key: 1,
|
|
1779
1779
|
class: "cd-input-select__option-avatar cd-input-select__option-avatar--placeholder",
|
|
1780
|
-
style:
|
|
1780
|
+
style: Xe({
|
|
1781
1781
|
backgroundColor: x.isUser === !1 ? "#e6f4ff" : q(x.name),
|
|
1782
1782
|
color: x.isUser === !1 ? "#0052d9" : "#fff"
|
|
1783
1783
|
})
|
|
@@ -1873,7 +1873,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1873
1873
|
}, ai = {
|
|
1874
1874
|
key: 1,
|
|
1875
1875
|
class: "cd-users-list-dept-dialog__empty"
|
|
1876
|
-
}, li = /* @__PURE__ */
|
|
1876
|
+
}, li = /* @__PURE__ */ Ke({
|
|
1877
1877
|
name: "CdUsersList",
|
|
1878
1878
|
__name: "UsersList",
|
|
1879
1879
|
props: {
|
|
@@ -1896,13 +1896,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1896
1896
|
width: `${n.avatarSize}px`,
|
|
1897
1897
|
height: `${n.avatarSize}px`,
|
|
1898
1898
|
fontSize: `${Math.floor(n.avatarSize / 3)}px`
|
|
1899
|
-
})), J = ve(() => Math.floor(n.avatarSize / 3)), ge = ve(() => n.users.length <= n.maxDisplay ? n.users : n.users.slice(0, n.maxDisplay)), H = ve(() => n.users.length > n.maxDisplay), E = ve(() => n.users.length - n.maxDisplay), W = ve(() => n.users.map((ne) => ne.name).join("、")), d = (ne,
|
|
1899
|
+
})), J = ve(() => Math.floor(n.avatarSize / 3)), ge = ve(() => n.users.length <= n.maxDisplay ? n.users : n.users.slice(0, n.maxDisplay)), H = ve(() => n.users.length > n.maxDisplay), E = ve(() => n.users.length - n.maxDisplay), W = ve(() => n.users.map((ne) => ne.name).join("、")), d = (ne, C) => {
|
|
1900
1900
|
if (ne.isUser === !1) {
|
|
1901
|
-
b(ne,
|
|
1901
|
+
b(ne, C);
|
|
1902
1902
|
return;
|
|
1903
1903
|
}
|
|
1904
1904
|
c.value = ne;
|
|
1905
|
-
const le =
|
|
1905
|
+
const le = C.currentTarget.getBoundingClientRect(), we = window.innerHeight - le.bottom < 400 ? "top" : "bottom";
|
|
1906
1906
|
m.value = we;
|
|
1907
1907
|
const qe = 400, ke = 500, Be = 12;
|
|
1908
1908
|
let ce = 0, T = le.left + le.width / 2 - qe / 2;
|
|
@@ -1926,7 +1926,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1926
1926
|
}, O = () => {
|
|
1927
1927
|
u.value = !1, _.value = !1;
|
|
1928
1928
|
}, de = (ne) => !ne || ne.length < 11 ? ne : ne.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2"), ue = (ne) => ne ? ne.substring(0, 2).toUpperCase() : "", L = (ne) => {
|
|
1929
|
-
const
|
|
1929
|
+
const C = [
|
|
1930
1930
|
"#1890ff",
|
|
1931
1931
|
"#52c41a",
|
|
1932
1932
|
"#faad14",
|
|
@@ -1939,14 +1939,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1939
1939
|
let B = 0;
|
|
1940
1940
|
for (let le = 0; le < ne.length; le++)
|
|
1941
1941
|
B = ne.charCodeAt(le) + ((B << 5) - B);
|
|
1942
|
-
return
|
|
1942
|
+
return C[Math.abs(B) % C.length];
|
|
1943
1943
|
}, x = (ne) => {
|
|
1944
1944
|
if (!u.value) return;
|
|
1945
|
-
const
|
|
1945
|
+
const C = ne.target, B = document.querySelector(".cd-users-list-popup-wrapper"), le = document.querySelectorAll(".cd-users-list__item"), _e = B == null ? void 0 : B.contains(C), we = Array.from(le).some((qe) => qe.contains(C));
|
|
1946
1946
|
!_e && !we && (u.value = !1, _.value = !1);
|
|
1947
|
-
}, b = (ne,
|
|
1947
|
+
}, b = (ne, C) => {
|
|
1948
1948
|
D.value = ne, ee.value = [];
|
|
1949
|
-
const le =
|
|
1949
|
+
const le = C.currentTarget.getBoundingClientRect(), we = window.innerHeight - le.bottom < 400 ? "top" : "bottom", qe = 400, ke = 400, Be = 12;
|
|
1950
1950
|
let ce = 0, T = le.left + le.width / 2 - qe / 2;
|
|
1951
1951
|
we === "bottom" ? ce = le.bottom + Be : ce = le.top - ke - Be, T < 10 && (T = 10), T + qe > window.innerWidth - 10 && (T = window.innerWidth - qe - 10), ce < 10 && (ce = 10), ce + ke > window.innerHeight - 10 && (ce = window.innerHeight - ke - 10), q.value = {
|
|
1952
1952
|
position: "fixed",
|
|
@@ -1968,13 +1968,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1968
1968
|
}, oe = (ne) => {
|
|
1969
1969
|
y("search", ne);
|
|
1970
1970
|
};
|
|
1971
|
-
return
|
|
1971
|
+
return Fe(() => n.deptMembersData, (ne) => {
|
|
1972
1972
|
ne && (ee.value = ne);
|
|
1973
|
-
}),
|
|
1973
|
+
}), Da(() => {
|
|
1974
1974
|
document.addEventListener("click", x);
|
|
1975
|
-
}),
|
|
1975
|
+
}), gl(() => {
|
|
1976
1976
|
document.removeEventListener("click", x);
|
|
1977
|
-
}), (ne,
|
|
1977
|
+
}), (ne, C) => {
|
|
1978
1978
|
const B = M("t-tooltip"), le = M("t-dropdown-item"), _e = M("t-dropdown-menu"), we = M("t-dropdown"), qe = M("t-tag");
|
|
1979
1979
|
return l(), o("div", Co, [
|
|
1980
1980
|
s(B, {
|
|
@@ -1992,7 +1992,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1992
1992
|
}, [
|
|
1993
1993
|
e("div", {
|
|
1994
1994
|
class: xe(["cd-users-list__avatar-wrapper", { "cd-users-list__avatar-wrapper--department": ke.isUser === !1 }]),
|
|
1995
|
-
style:
|
|
1995
|
+
style: Xe({ width: N.value.width, height: N.value.height })
|
|
1996
1996
|
}, [
|
|
1997
1997
|
ke.avatar ? (l(), o("img", {
|
|
1998
1998
|
key: 0,
|
|
@@ -2002,7 +2002,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2002
2002
|
}, null, 8, $o)) : (l(), o("div", {
|
|
2003
2003
|
key: 1,
|
|
2004
2004
|
class: xe(["cd-users-list__avatar cd-users-list__avatar--placeholder", { "cd-users-list__avatar--department": ke.isUser === !1 }]),
|
|
2005
|
-
style:
|
|
2005
|
+
style: Xe({
|
|
2006
2006
|
backgroundColor: ke.isUser === !1 ? "#e6f4ff" : L(ke.name),
|
|
2007
2007
|
fontSize: N.value.fontSize,
|
|
2008
2008
|
color: ke.isUser === !1 ? "#0052d9" : "#fff"
|
|
@@ -2022,11 +2022,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2022
2022
|
}, [
|
|
2023
2023
|
e("div", {
|
|
2024
2024
|
class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--add",
|
|
2025
|
-
style:
|
|
2025
|
+
style: Xe({ width: N.value.width, height: N.value.height })
|
|
2026
2026
|
}, [
|
|
2027
2027
|
e("div", {
|
|
2028
2028
|
class: "cd-users-list__avatar cd-users-list__avatar--add",
|
|
2029
|
-
style:
|
|
2029
|
+
style: Xe({ fontSize: N.value.fontSize })
|
|
2030
2030
|
}, " + ", 4)
|
|
2031
2031
|
], 4)
|
|
2032
2032
|
])
|
|
@@ -2036,11 +2036,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2036
2036
|
H.value ? (l(), o("div", Vo, [
|
|
2037
2037
|
e("div", {
|
|
2038
2038
|
class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--more",
|
|
2039
|
-
style:
|
|
2039
|
+
style: Xe({ width: N.value.width, height: N.value.height })
|
|
2040
2040
|
}, [
|
|
2041
2041
|
e("div", {
|
|
2042
2042
|
class: "cd-users-list__avatar cd-users-list__avatar--more",
|
|
2043
|
-
style:
|
|
2043
|
+
style: Xe({ fontSize: N.value.fontSize })
|
|
2044
2044
|
}, " +" + V(E.value), 5)
|
|
2045
2045
|
], 4)
|
|
2046
2046
|
])) : Y("", !0)
|
|
@@ -2048,7 +2048,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2048
2048
|
]),
|
|
2049
2049
|
_: 1
|
|
2050
2050
|
}, 8, ["content"]),
|
|
2051
|
-
(l(), j(
|
|
2051
|
+
(l(), j(vl, { to: "body" }, [
|
|
2052
2052
|
s(_l, { name: "fade" }, {
|
|
2053
2053
|
default: i(() => [
|
|
2054
2054
|
u.value ? (l(), o("div", {
|
|
@@ -2058,8 +2058,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2058
2058
|
}, [
|
|
2059
2059
|
e("div", {
|
|
2060
2060
|
class: "cd-users-list-popup-wrapper",
|
|
2061
|
-
style:
|
|
2062
|
-
onClick:
|
|
2061
|
+
style: Xe(U.value),
|
|
2062
|
+
onClick: C[6] || (C[6] = Qe(() => {
|
|
2063
2063
|
}, ["stop"]))
|
|
2064
2064
|
}, [
|
|
2065
2065
|
c.value ? (l(), o("div", So, [
|
|
@@ -2070,33 +2070,33 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2070
2070
|
"z-index": 99999
|
|
2071
2071
|
}, {
|
|
2072
2072
|
default: i(() => [
|
|
2073
|
-
|
|
2073
|
+
C[13] || (C[13] = e("div", { class: "cd-users-list-dialog__menu-trigger" }, [
|
|
2074
2074
|
e("i", { class: "ri-more-2-fill" })
|
|
2075
2075
|
], -1)),
|
|
2076
2076
|
s(_e, null, {
|
|
2077
2077
|
default: i(() => [
|
|
2078
2078
|
s(le, {
|
|
2079
|
-
onClick:
|
|
2079
|
+
onClick: C[0] || (C[0] = (ke) => S("share"))
|
|
2080
2080
|
}, {
|
|
2081
|
-
default: i(() => [...
|
|
2081
|
+
default: i(() => [...C[10] || (C[10] = [
|
|
2082
2082
|
e("i", { class: "ri-share-line" }, null, -1),
|
|
2083
2083
|
e("span", null, "分享名片", -1)
|
|
2084
2084
|
])]),
|
|
2085
2085
|
_: 1
|
|
2086
2086
|
}),
|
|
2087
2087
|
s(le, {
|
|
2088
|
-
onClick:
|
|
2088
|
+
onClick: C[1] || (C[1] = (ke) => S("star"))
|
|
2089
2089
|
}, {
|
|
2090
|
-
default: i(() => [...
|
|
2090
|
+
default: i(() => [...C[11] || (C[11] = [
|
|
2091
2091
|
e("i", { class: "ri-star-line" }, null, -1),
|
|
2092
2092
|
e("span", null, "设为星标联系人", -1)
|
|
2093
2093
|
])]),
|
|
2094
2094
|
_: 1
|
|
2095
2095
|
}),
|
|
2096
2096
|
s(le, {
|
|
2097
|
-
onClick:
|
|
2097
|
+
onClick: C[2] || (C[2] = (ke) => S("report"))
|
|
2098
2098
|
}, {
|
|
2099
|
-
default: i(() => [...
|
|
2099
|
+
default: i(() => [...C[12] || (C[12] = [
|
|
2100
2100
|
e("i", { class: "ri-error-warning-line" }, null, -1),
|
|
2101
2101
|
e("span", { style: { color: "var(--td-error-color, #e34d59)" } }, "举报该用户", -1)
|
|
2102
2102
|
])]),
|
|
@@ -2117,51 +2117,51 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2117
2117
|
}, null, 8, zo)) : (l(), o("div", {
|
|
2118
2118
|
key: 1,
|
|
2119
2119
|
class: "cd-users-list-dialog__avatar cd-users-list-dialog__avatar--placeholder",
|
|
2120
|
-
style:
|
|
2120
|
+
style: Xe({ backgroundColor: L(c.value.name) })
|
|
2121
2121
|
}, V(ue(c.value.name)), 5)),
|
|
2122
2122
|
e("h3", Fo, V(c.value.name), 1)
|
|
2123
2123
|
]),
|
|
2124
2124
|
e("div", Do, [
|
|
2125
2125
|
e("div", {
|
|
2126
2126
|
class: "cd-users-list-dialog__action-btn",
|
|
2127
|
-
onClick:
|
|
2128
|
-
}, [...
|
|
2127
|
+
onClick: C[3] || (C[3] = (ke) => S("message"))
|
|
2128
|
+
}, [...C[14] || (C[14] = [
|
|
2129
2129
|
e("i", { class: "ri-message-3-line" }, null, -1),
|
|
2130
2130
|
e("span", null, "消息", -1)
|
|
2131
2131
|
])]),
|
|
2132
2132
|
e("div", {
|
|
2133
2133
|
class: "cd-users-list-dialog__action-btn",
|
|
2134
|
-
onClick:
|
|
2135
|
-
}, [...
|
|
2134
|
+
onClick: C[4] || (C[4] = (ke) => S("voice"))
|
|
2135
|
+
}, [...C[15] || (C[15] = [
|
|
2136
2136
|
e("i", { class: "ri-phone-line" }, null, -1),
|
|
2137
2137
|
e("span", null, "语音", -1)
|
|
2138
2138
|
])]),
|
|
2139
2139
|
e("div", {
|
|
2140
2140
|
class: "cd-users-list-dialog__action-btn",
|
|
2141
|
-
onClick:
|
|
2142
|
-
}, [...
|
|
2141
|
+
onClick: C[5] || (C[5] = (ke) => S("video"))
|
|
2142
|
+
}, [...C[16] || (C[16] = [
|
|
2143
2143
|
e("i", { class: "ri-vidicon-line" }, null, -1),
|
|
2144
2144
|
e("span", null, "视频", -1)
|
|
2145
2145
|
])])
|
|
2146
2146
|
]),
|
|
2147
2147
|
e("div", Ao, [
|
|
2148
2148
|
c.value.department ? (l(), o("div", Uo, [
|
|
2149
|
-
|
|
2149
|
+
C[17] || (C[17] = e("span", { class: "cd-users-list-dialog__label" }, "部门", -1)),
|
|
2150
2150
|
e("span", Ro, V(c.value.department), 1)
|
|
2151
2151
|
])) : Y("", !0),
|
|
2152
2152
|
c.value.role ? (l(), o("div", Eo, [
|
|
2153
|
-
|
|
2153
|
+
C[18] || (C[18] = e("span", { class: "cd-users-list-dialog__label" }, "职务", -1)),
|
|
2154
2154
|
e("span", Po, V(c.value.role), 1)
|
|
2155
2155
|
])) : Y("", !0),
|
|
2156
2156
|
c.value.email ? (l(), o("div", Io, [
|
|
2157
|
-
|
|
2157
|
+
C[19] || (C[19] = e("span", { class: "cd-users-list-dialog__label" }, "企业邮箱", -1)),
|
|
2158
2158
|
e("span", {
|
|
2159
2159
|
class: "cd-users-list-dialog__value cd-users-list-dialog__value--link",
|
|
2160
2160
|
onClick: g
|
|
2161
2161
|
}, V(c.value.email), 1)
|
|
2162
2162
|
])) : Y("", !0),
|
|
2163
2163
|
c.value.mobile ? (l(), o("div", Oo, [
|
|
2164
|
-
|
|
2164
|
+
C[20] || (C[20] = e("span", { class: "cd-users-list-dialog__label" }, "手机号", -1)),
|
|
2165
2165
|
e("div", To, [
|
|
2166
2166
|
e("span", null, V(_.value ? c.value.mobile : de(c.value.mobile)), 1),
|
|
2167
2167
|
s(B, {
|
|
@@ -2181,12 +2181,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2181
2181
|
])
|
|
2182
2182
|
])) : Y("", !0),
|
|
2183
2183
|
c.value.employeeId ? (l(), o("div", No, [
|
|
2184
|
-
|
|
2184
|
+
C[21] || (C[21] = e("span", { class: "cd-users-list-dialog__label" }, "工号", -1)),
|
|
2185
2185
|
e("span", Bo, V(c.value.employeeId), 1)
|
|
2186
2186
|
])) : Y("", !0)
|
|
2187
2187
|
]),
|
|
2188
2188
|
c.value.tags && c.value.tags.length > 0 ? (l(), o("div", qo, [
|
|
2189
|
-
|
|
2189
|
+
C[22] || (C[22] = e("div", { class: "cd-users-list-dialog__section-title" }, [
|
|
2190
2190
|
e("i", { class: "ri-price-tag-3-line" }),
|
|
2191
2191
|
A("标签 ")
|
|
2192
2192
|
], -1)),
|
|
@@ -2204,7 +2204,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2204
2204
|
])
|
|
2205
2205
|
])) : Y("", !0),
|
|
2206
2206
|
c.value.signature ? (l(), o("div", jo, [
|
|
2207
|
-
|
|
2207
|
+
C[23] || (C[23] = e("i", { class: "ri-double-quotes-l" }, null, -1)),
|
|
2208
2208
|
e("span", null, V(c.value.signature), 1)
|
|
2209
2209
|
])) : Y("", !0)
|
|
2210
2210
|
])) : Y("", !0)
|
|
@@ -2214,7 +2214,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2214
2214
|
_: 1
|
|
2215
2215
|
})
|
|
2216
2216
|
])),
|
|
2217
|
-
(l(), j(
|
|
2217
|
+
(l(), j(vl, { to: "body" }, [
|
|
2218
2218
|
s(_l, { name: "fade" }, {
|
|
2219
2219
|
default: i(() => [
|
|
2220
2220
|
I.value ? (l(), o("div", {
|
|
@@ -2224,13 +2224,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2224
2224
|
}, [
|
|
2225
2225
|
e("div", {
|
|
2226
2226
|
class: "cd-users-list-popup-wrapper",
|
|
2227
|
-
style:
|
|
2228
|
-
onClick:
|
|
2227
|
+
style: Xe(q.value),
|
|
2228
|
+
onClick: C[7] || (C[7] = Qe(() => {
|
|
2229
2229
|
}, ["stop"]))
|
|
2230
2230
|
}, [
|
|
2231
2231
|
D.value ? (l(), o("div", Wo, [
|
|
2232
2232
|
e("div", Yo, [
|
|
2233
|
-
|
|
2233
|
+
C[24] || (C[24] = e("div", { class: "cd-users-list-dept-dialog__icon" }, [
|
|
2234
2234
|
e("i", { class: "ri-building-line" })
|
|
2235
2235
|
], -1)),
|
|
2236
2236
|
e("h3", Ho, V(D.value.name), 1)
|
|
@@ -2238,7 +2238,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2238
2238
|
e("div", Jo, [
|
|
2239
2239
|
ee.value.length > 0 ? (l(), o("div", Ko, [
|
|
2240
2240
|
e("div", Go, [
|
|
2241
|
-
|
|
2241
|
+
C[25] || (C[25] = e("i", { class: "ri-team-line" }, null, -1)),
|
|
2242
2242
|
A(" 成员 (" + V(ee.value.length) + ") ", 1)
|
|
2243
2243
|
]),
|
|
2244
2244
|
e("div", Xo, [
|
|
@@ -2248,7 +2248,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2248
2248
|
}, [
|
|
2249
2249
|
e("div", {
|
|
2250
2250
|
class: "cd-users-list-dept-dialog__member-avatar",
|
|
2251
|
-
style:
|
|
2251
|
+
style: Xe({ backgroundColor: L(ke.name || ke.displayName) })
|
|
2252
2252
|
}, V(ue(ke.name || ke.displayName)), 5),
|
|
2253
2253
|
e("div", Qo, [
|
|
2254
2254
|
e("div", Zo, V(ke.displayName || ke.name), 1),
|
|
@@ -2256,7 +2256,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2256
2256
|
])
|
|
2257
2257
|
]))), 128))
|
|
2258
2258
|
])
|
|
2259
|
-
])) : (l(), o("div", ai, [...
|
|
2259
|
+
])) : (l(), o("div", ai, [...C[26] || (C[26] = [
|
|
2260
2260
|
e("i", { class: "ri-inbox-line" }, null, -1),
|
|
2261
2261
|
e("p", null, "暂无成员", -1)
|
|
2262
2262
|
])]))
|
|
@@ -2271,9 +2271,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2271
2271
|
(a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 && w.value ? (l(), j(ca(Ml), {
|
|
2272
2272
|
key: 0,
|
|
2273
2273
|
visible: w.value,
|
|
2274
|
-
"onUpdate:visible":
|
|
2274
|
+
"onUpdate:visible": C[8] || (C[8] = (ke) => w.value = ke),
|
|
2275
2275
|
modelValue: r.value,
|
|
2276
|
-
"onUpdate:modelValue":
|
|
2276
|
+
"onUpdate:modelValue": C[9] || (C[9] = (ke) => r.value = ke),
|
|
2277
2277
|
tabs: a.personTabs,
|
|
2278
2278
|
organizations: a.personOrganizations || [],
|
|
2279
2279
|
"show-org": !1,
|
|
@@ -2286,7 +2286,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2286
2286
|
]);
|
|
2287
2287
|
};
|
|
2288
2288
|
}
|
|
2289
|
-
}), ti = /* @__PURE__ */
|
|
2289
|
+
}), ti = /* @__PURE__ */ aa(li, [["__scopeId", "data-v-1a31b242"]]), ni = { class: "language-display" }, oi = ["src", "alt"], ii = { class: "current-language" }, si = {
|
|
2290
2290
|
key: 1,
|
|
2291
2291
|
class: "internet-icon",
|
|
2292
2292
|
viewBox: "0 0 24 24",
|
|
@@ -2296,7 +2296,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2296
2296
|
class: "check-icon",
|
|
2297
2297
|
viewBox: "0 0 16 16",
|
|
2298
2298
|
fill: "currentColor"
|
|
2299
|
-
}, fi = /* @__PURE__ */
|
|
2299
|
+
}, fi = /* @__PURE__ */ Ke({
|
|
2300
2300
|
name: "CdLanguageSelect",
|
|
2301
2301
|
__name: "LanguageSelect",
|
|
2302
2302
|
props: {
|
|
@@ -2307,7 +2307,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2307
2307
|
emits: ["update:modelValue", "change"],
|
|
2308
2308
|
setup(a, { emit: te }) {
|
|
2309
2309
|
const n = a, y = te, u = F(!1), c = F(null), m = F(n.modelValue);
|
|
2310
|
-
|
|
2310
|
+
Da(() => {
|
|
2311
2311
|
n.languages.forEach((D) => {
|
|
2312
2312
|
new Image().src = D.icon;
|
|
2313
2313
|
});
|
|
@@ -2319,13 +2319,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2319
2319
|
}, I = (D) => {
|
|
2320
2320
|
c.value && !c.value.contains(D.target) && (u.value = !1);
|
|
2321
2321
|
};
|
|
2322
|
-
return
|
|
2322
|
+
return Da(() => {
|
|
2323
2323
|
document.addEventListener("click", I);
|
|
2324
|
-
}),
|
|
2324
|
+
}), gl(() => {
|
|
2325
2325
|
document.removeEventListener("click", I);
|
|
2326
2326
|
}), (D, q) => (l(), o("div", {
|
|
2327
2327
|
class: "language-select-container",
|
|
2328
|
-
style:
|
|
2328
|
+
style: Xe({ display: U.value.length === 0 ? "none" : void 0, ...a.style }),
|
|
2329
2329
|
onClick: w,
|
|
2330
2330
|
ref_key: "containerRef",
|
|
2331
2331
|
ref: c
|
|
@@ -2374,13 +2374,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2374
2374
|
])) : Y("", !0)
|
|
2375
2375
|
], 4));
|
|
2376
2376
|
}
|
|
2377
|
-
}), zl = /* @__PURE__ */
|
|
2377
|
+
}), zl = /* @__PURE__ */ aa(fi, [["__scopeId", "data-v-de3f6343"]]), mi = { class: "password-dialog-content" }, vi = { class: "method-tabs" }, pi = {
|
|
2378
2378
|
key: 0,
|
|
2379
2379
|
class: "form-content"
|
|
2380
2380
|
}, gi = { class: "form-item" }, hi = { class: "form-item" }, bi = { class: "form-item" }, yi = {
|
|
2381
2381
|
key: 1,
|
|
2382
2382
|
class: "form-content"
|
|
2383
|
-
}, _i = { class: "form-item" }, ki = { class: "form-item" }, Ci = { class: "code-input-group" }, wi = { class: "form-item" }, xi = { class: "form-item" }, $i = { class: "dialog-actions" }, Vi = /* @__PURE__ */
|
|
2383
|
+
}, _i = { class: "form-item" }, ki = { class: "form-item" }, Ci = { class: "code-input-group" }, wi = { class: "form-item" }, xi = { class: "form-item" }, $i = { class: "dialog-actions" }, Vi = /* @__PURE__ */ Ke({
|
|
2384
2384
|
name: "CdChangePasswordDialog",
|
|
2385
2385
|
__name: "ChangePasswordDialog",
|
|
2386
2386
|
props: {
|
|
@@ -2398,11 +2398,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2398
2398
|
phone: n.phone,
|
|
2399
2399
|
verifyCode: ""
|
|
2400
2400
|
});
|
|
2401
|
-
|
|
2401
|
+
Fe(() => n.visible, (I) => {
|
|
2402
2402
|
u.value = I, I && (U.oldPassword = "", U.newPassword = "", U.confirmPassword = "", U.phone = n.phone, U.verifyCode = "", c.value = "password", m.value = 0);
|
|
2403
|
-
}),
|
|
2403
|
+
}), Fe(u, (I) => {
|
|
2404
2404
|
y("update:visible", I);
|
|
2405
|
-
}),
|
|
2405
|
+
}), Fe(() => n.phone, (I) => {
|
|
2406
2406
|
U.phone = I;
|
|
2407
2407
|
});
|
|
2408
2408
|
const _ = () => {
|
|
@@ -2589,7 +2589,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2589
2589
|
}, 8, ["visible", "header"]);
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
}), Si = /* @__PURE__ */
|
|
2592
|
+
}), Si = /* @__PURE__ */ aa(Vi, [["__scopeId", "data-v-dcb0708e"]]), Mi = { class: "token-dialog-content" }, zi = {
|
|
2593
2593
|
key: 0,
|
|
2594
2594
|
class: "enable-section"
|
|
2595
2595
|
}, Fi = { class: "qrcode-section" }, Di = { class: "qrcode-box" }, Ai = ["src"], Ui = {
|
|
@@ -2598,7 +2598,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2598
2598
|
}, Ri = { class: "form-item" }, Ei = { class: "dialog-actions" }, Pi = {
|
|
2599
2599
|
key: 1,
|
|
2600
2600
|
class: "disable-section"
|
|
2601
|
-
}, Ii = { class: "form-item" }, Oi = { class: "dialog-actions" }, Ti = /* @__PURE__ */
|
|
2601
|
+
}, Ii = { class: "form-item" }, Oi = { class: "dialog-actions" }, Ti = /* @__PURE__ */ Ke({
|
|
2602
2602
|
name: "CdDynamicTokenDialog",
|
|
2603
2603
|
__name: "DynamicTokenDialog",
|
|
2604
2604
|
props: {
|
|
@@ -2610,9 +2610,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2610
2610
|
emits: ["update:visible", "enable", "disable"],
|
|
2611
2611
|
setup(a, { emit: te }) {
|
|
2612
2612
|
const n = a, y = te, u = F(n.visible), c = F("");
|
|
2613
|
-
|
|
2613
|
+
Fe(() => n.visible, (w) => {
|
|
2614
2614
|
u.value = w, w && (c.value = "");
|
|
2615
|
-
}),
|
|
2615
|
+
}), Fe(u, (w) => {
|
|
2616
2616
|
y("update:visible", w);
|
|
2617
2617
|
});
|
|
2618
2618
|
const m = () => {
|
|
@@ -2751,7 +2751,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2751
2751
|
}, 8, ["visible", "header"]);
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
}), Ni = /* @__PURE__ */
|
|
2754
|
+
}), Ni = /* @__PURE__ */ aa(Ti, [["__scopeId", "data-v-22bfca30"]]), Bi = { class: "lock-dialog-content" }, qi = { class: "form-item" }, Li = { class: "form-item" }, ji = { class: "dialog-actions" }, Wi = /* @__PURE__ */ Ke({
|
|
2755
2755
|
name: "CdScreenLockDialog",
|
|
2756
2756
|
__name: "ScreenLockDialog",
|
|
2757
2757
|
props: {
|
|
@@ -2763,9 +2763,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2763
2763
|
emits: ["update:visible", "submit"],
|
|
2764
2764
|
setup(a, { emit: te }) {
|
|
2765
2765
|
const n = a, y = te, u = F(n.visible), c = F(n.defaultLockTime), m = F([...n.defaultLockMethods]);
|
|
2766
|
-
|
|
2766
|
+
Fe(() => n.visible, (w) => {
|
|
2767
2767
|
u.value = w, w && (c.value = n.defaultLockTime, m.value = [...n.defaultLockMethods]);
|
|
2768
|
-
}),
|
|
2768
|
+
}), Fe(u, (w) => {
|
|
2769
2769
|
y("update:visible", w);
|
|
2770
2770
|
});
|
|
2771
2771
|
const U = () => {
|
|
@@ -2892,10 +2892,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2892
2892
|
}, 8, ["visible", "header"]);
|
|
2893
2893
|
};
|
|
2894
2894
|
}
|
|
2895
|
-
}), Yi = /* @__PURE__ */
|
|
2895
|
+
}), Yi = /* @__PURE__ */ aa(Wi, [["__scopeId", "data-v-c92db49c"]]), Hi = { class: "shortcut-dialog-content" }, Ji = { class: "form-item" }, Ki = { class: "form-item" }, Gi = { class: "current-keys" }, Xi = { class: "form-item" }, Qi = {
|
|
2896
2896
|
key: 1,
|
|
2897
2897
|
class: "placeholder"
|
|
2898
|
-
}, Zi = { class: "dialog-actions" }, es = /* @__PURE__ */
|
|
2898
|
+
}, Zi = { class: "dialog-actions" }, es = /* @__PURE__ */ Ke({
|
|
2899
2899
|
name: "CdShortcutEditDialog",
|
|
2900
2900
|
__name: "ShortcutEditDialog",
|
|
2901
2901
|
props: {
|
|
@@ -2906,9 +2906,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2906
2906
|
emits: ["update:visible", "submit", "update"],
|
|
2907
2907
|
setup(a, { emit: te }) {
|
|
2908
2908
|
const n = a, y = te, u = F(n.visible), c = F(!1), m = F([]);
|
|
2909
|
-
|
|
2909
|
+
Fe(() => n.visible, (ee) => {
|
|
2910
2910
|
u.value = ee, ee && (m.value = [], c.value = !1);
|
|
2911
|
-
}),
|
|
2911
|
+
}), Fe(u, (ee) => {
|
|
2912
2912
|
y("update:visible", ee);
|
|
2913
2913
|
});
|
|
2914
2914
|
const U = () => {
|
|
@@ -3023,7 +3023,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3023
3023
|
}, 8, ["visible", "header"]);
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
|
-
}), as = /* @__PURE__ */
|
|
3026
|
+
}), as = /* @__PURE__ */ aa(es, [["__scopeId", "data-v-446bcaee"]]), ls = { class: "cd-usercard-panel" }, ts = { class: "calendar" }, ns = {
|
|
3027
3027
|
key: 0,
|
|
3028
3028
|
class: "calendar__legend"
|
|
3029
3029
|
}, os = { class: "calendar__list" }, is = ["onClick"], ss = { class: "calendar__time" }, rs = { class: "date" }, ds = { class: "time" }, us = { class: "calendar__content" }, cs = { class: "title" }, fs = {
|
|
@@ -3032,7 +3032,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3032
3032
|
}, ms = { class: "calendar__actions" }, vs = {
|
|
3033
3033
|
key: 0,
|
|
3034
3034
|
class: "calendar__empty"
|
|
3035
|
-
}, ps = /* @__PURE__ */
|
|
3035
|
+
}, ps = /* @__PURE__ */ Ke({
|
|
3036
3036
|
name: "CdCalendarPanel",
|
|
3037
3037
|
__name: "CalendarPanel",
|
|
3038
3038
|
props: {
|
|
@@ -3106,7 +3106,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3106
3106
|
]);
|
|
3107
3107
|
};
|
|
3108
3108
|
}
|
|
3109
|
-
}), gs = /* @__PURE__ */
|
|
3109
|
+
}), gs = /* @__PURE__ */ aa(ps, [["__scopeId", "data-v-cea2996a"]]), hs = { class: "cd-usercard-panel" }, bs = { class: "tasks" }, ys = {
|
|
3110
3110
|
key: 0,
|
|
3111
3111
|
class: "tasks__filters"
|
|
3112
3112
|
}, _s = { class: "tasks__list" }, ks = ["onClick"], Cs = { class: "task__checkbox" }, ws = { class: "task__main" }, xs = { class: "task__header" }, $s = { class: "task__left" }, Vs = { class: "task__right" }, Ss = {
|
|
@@ -3118,7 +3118,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3118
3118
|
}, zs = {
|
|
3119
3119
|
key: 0,
|
|
3120
3120
|
class: "tasks__empty"
|
|
3121
|
-
}, Fs = /* @__PURE__ */
|
|
3121
|
+
}, Fs = /* @__PURE__ */ Ke({
|
|
3122
3122
|
name: "CdTasksPanel",
|
|
3123
3123
|
__name: "TasksPanel",
|
|
3124
3124
|
props: {
|
|
@@ -3239,13 +3239,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3239
3239
|
]);
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
|
-
}), Ds = /* @__PURE__ */
|
|
3242
|
+
}), Ds = /* @__PURE__ */ aa(Fs, [["__scopeId", "data-v-d6881f8b"]]), As = { class: "cd-usercard-panel favorites-panel" }, Us = {
|
|
3243
3243
|
key: 0,
|
|
3244
3244
|
class: "favorites-tabs"
|
|
3245
3245
|
}, Rs = ["onClick"], Es = { class: "favorites-list" }, Ps = ["onClick"], Is = { class: "item-info" }, Os = { class: "item-title" }, Ts = { class: "item-desc" }, Ns = { class: "item-time" }, Bs = ["onClick"], qs = {
|
|
3246
3246
|
key: 0,
|
|
3247
3247
|
class: "favorites-empty"
|
|
3248
|
-
}, Ls = /* @__PURE__ */
|
|
3248
|
+
}, Ls = /* @__PURE__ */ Ke({
|
|
3249
3249
|
name: "CdFavoritesPanel",
|
|
3250
3250
|
__name: "FavoritesPanel",
|
|
3251
3251
|
props: {
|
|
@@ -3300,13 +3300,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3300
3300
|
])
|
|
3301
3301
|
]));
|
|
3302
3302
|
}
|
|
3303
|
-
}), js = /* @__PURE__ */
|
|
3303
|
+
}), js = /* @__PURE__ */ aa(Ls, [["__scopeId", "data-v-6b819e4a"]]), Ws = { class: "cd-usercard-panel qrcode-panel" }, Ys = { class: "qrcode-cards" }, Hs = { class: "qrcode-box" }, Js = ["src", "alt"], Ks = {
|
|
3304
3304
|
key: 1,
|
|
3305
3305
|
class: "ri-qr-code-line qrcode-placeholder"
|
|
3306
3306
|
}, Gs = { class: "qrcode-info" }, Xs = { class: "qrcode-title" }, Qs = { class: "qrcode-desc" }, Zs = { class: "qrcode-actions" }, er = ["onClick"], ar = ["onClick"], lr = {
|
|
3307
3307
|
key: 0,
|
|
3308
3308
|
class: "link-section"
|
|
3309
|
-
}, tr = { class: "link-url" }, nr = ["onClick"], or = /* @__PURE__ */
|
|
3309
|
+
}, tr = { class: "link-url" }, nr = ["onClick"], or = /* @__PURE__ */ Ke({
|
|
3310
3310
|
name: "CdQrcodePanel",
|
|
3311
3311
|
__name: "QrcodePanel",
|
|
3312
3312
|
props: {
|
|
@@ -3377,7 +3377,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3377
3377
|
]);
|
|
3378
3378
|
};
|
|
3379
3379
|
}
|
|
3380
|
-
}), ir = /* @__PURE__ */
|
|
3380
|
+
}), ir = /* @__PURE__ */ aa(or, [["__scopeId", "data-v-89f388c8"]]), sr = { class: "cd-usercard-panel accounts-panel" }, rr = { class: "bind-section" }, dr = { class: "bind-list" }, ur = { class: "bind-info" }, cr = { class: "bind-name" }, fr = { class: "bind-desc" }, mr = ["onClick"], vr = ["onClick"], pr = {
|
|
3381
3381
|
key: 0,
|
|
3382
3382
|
class: "switch-section"
|
|
3383
3383
|
}, gr = {
|
|
@@ -3389,7 +3389,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3389
3389
|
}, yr = { class: "account-info" }, _r = { class: "account-name" }, kr = { class: "account-email" }, Cr = ["onClick"], wr = ["src"], xr = {
|
|
3390
3390
|
key: 1,
|
|
3391
3391
|
class: "ri-user-line"
|
|
3392
|
-
}, $r = { class: "account-info" }, Vr = { class: "account-name" }, Sr = { class: "account-email" }, Mr = /* @__PURE__ */
|
|
3392
|
+
}, $r = { class: "account-info" }, Vr = { class: "account-name" }, Sr = { class: "account-email" }, Mr = /* @__PURE__ */ Ke({
|
|
3393
3393
|
name: "CdAccountsPanel",
|
|
3394
3394
|
__name: "AccountsPanel",
|
|
3395
3395
|
props: {
|
|
@@ -3416,7 +3416,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3416
3416
|
}, [
|
|
3417
3417
|
e("div", {
|
|
3418
3418
|
class: "bind-icon",
|
|
3419
|
-
style:
|
|
3419
|
+
style: Xe({ background: u.color })
|
|
3420
3420
|
}, [
|
|
3421
3421
|
e("i", {
|
|
3422
3422
|
class: xe(u.icon)
|
|
@@ -3445,7 +3445,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3445
3445
|
a.current ? (l(), o("div", gr, [
|
|
3446
3446
|
e("div", {
|
|
3447
3447
|
class: "account-avatar",
|
|
3448
|
-
style:
|
|
3448
|
+
style: Xe({ background: a.current.color || "#1890ff" })
|
|
3449
3449
|
}, [
|
|
3450
3450
|
a.current.avatar ? (l(), o("img", {
|
|
3451
3451
|
key: 0,
|
|
@@ -3465,7 +3465,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3465
3465
|
}, [
|
|
3466
3466
|
e("div", {
|
|
3467
3467
|
class: "account-avatar",
|
|
3468
|
-
style:
|
|
3468
|
+
style: Xe({ background: u.color || "#1890ff" })
|
|
3469
3469
|
}, [
|
|
3470
3470
|
u.avatar ? (l(), o("img", {
|
|
3471
3471
|
key: 0,
|
|
@@ -3488,7 +3488,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3488
3488
|
]);
|
|
3489
3489
|
};
|
|
3490
3490
|
}
|
|
3491
|
-
}), zr = /* @__PURE__ */
|
|
3491
|
+
}), zr = /* @__PURE__ */ aa(Mr, [["__scopeId", "data-v-36d182f7"]]), Fr = { class: "cd-usercard-panel settings-panel" }, Dr = { class: "group-title" }, Ar = { class: "setting-info" }, Ur = { class: "setting-label" }, Rr = {
|
|
3492
3492
|
key: 0,
|
|
3493
3493
|
class: "setting-desc"
|
|
3494
3494
|
}, Er = ["value", "onChange"], Pr = ["value"], Ir = {
|
|
@@ -3497,7 +3497,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3497
3497
|
}, Or = ["checked", "onChange"], Tr = {
|
|
3498
3498
|
key: 3,
|
|
3499
3499
|
class: "color-picker"
|
|
3500
|
-
}, Nr = ["onClick"], Br = /* @__PURE__ */
|
|
3500
|
+
}, Nr = ["onClick"], Br = /* @__PURE__ */ Ke({
|
|
3501
3501
|
name: "CdSettingsPanel",
|
|
3502
3502
|
__name: "SettingsPanel",
|
|
3503
3503
|
props: {
|
|
@@ -3554,7 +3554,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3554
3554
|
(l(!0), o(fe, null, be(_.colors, (w) => (l(), o("div", {
|
|
3555
3555
|
key: w,
|
|
3556
3556
|
class: xe(["color-item", { active: a.modelValue[_.key] === w }]),
|
|
3557
|
-
style:
|
|
3557
|
+
style: Xe({ backgroundColor: w }),
|
|
3558
3558
|
onClick: (r) => u(_.key, w)
|
|
3559
3559
|
}, null, 14, Nr))), 128))
|
|
3560
3560
|
])) : Y("", !0)
|
|
@@ -3562,13 +3562,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3562
3562
|
]))), 128))
|
|
3563
3563
|
]));
|
|
3564
3564
|
}
|
|
3565
|
-
}), qr = /* @__PURE__ */
|
|
3565
|
+
}), qr = /* @__PURE__ */ aa(Br, [["__scopeId", "data-v-9df669f9"]]), Lr = { class: "cd-usercard-panel security-panel" }, jr = {
|
|
3566
3566
|
key: 0,
|
|
3567
3567
|
class: "group-title"
|
|
3568
3568
|
}, Wr = { class: "security-icon" }, Yr = { class: "security-content" }, Hr = { class: "security-header" }, Jr = { class: "security-info" }, Kr = { class: "security-label" }, Gr = {
|
|
3569
3569
|
key: 0,
|
|
3570
3570
|
class: "security-desc"
|
|
3571
|
-
}, Xr = { class: "security-status" }, Qr = ["onClick"], Zr = /* @__PURE__ */
|
|
3571
|
+
}, Xr = { class: "security-status" }, Qr = ["onClick"], Zr = /* @__PURE__ */ Ke({
|
|
3572
3572
|
name: "CdSecurityPanel",
|
|
3573
3573
|
__name: "SecurityPanel",
|
|
3574
3574
|
props: {
|
|
@@ -3622,13 +3622,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3622
3622
|
]))), 128))
|
|
3623
3623
|
]));
|
|
3624
3624
|
}
|
|
3625
|
-
}), ed = /* @__PURE__ */
|
|
3625
|
+
}), ed = /* @__PURE__ */ aa(Zr, [["__scopeId", "data-v-171da489"]]), ad = { class: "cd-usercard-panel help-panel" }, ld = {
|
|
3626
3626
|
key: 0,
|
|
3627
3627
|
class: "help-categories"
|
|
3628
3628
|
}, td = ["href"], nd = {
|
|
3629
3629
|
key: 1,
|
|
3630
3630
|
class: "contact-section"
|
|
3631
|
-
}, od = { class: "contact-options" }, id = { class: "contact-info" }, sd = { class: "contact-title" }, rd = { class: "contact-desc" }, dd = ["href", "target"], ud = ["onClick"], cd = /* @__PURE__ */
|
|
3631
|
+
}, od = { class: "contact-options" }, id = { class: "contact-info" }, sd = { class: "contact-title" }, rd = { class: "contact-desc" }, dd = ["href", "target"], ud = ["onClick"], cd = /* @__PURE__ */ Ke({
|
|
3632
3632
|
name: "CdHelpPanel",
|
|
3633
3633
|
__name: "HelpPanel",
|
|
3634
3634
|
props: {
|
|
@@ -3697,10 +3697,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3697
3697
|
]);
|
|
3698
3698
|
};
|
|
3699
3699
|
}
|
|
3700
|
-
}), fd = /* @__PURE__ */
|
|
3700
|
+
}), fd = /* @__PURE__ */ aa(cd, [["__scopeId", "data-v-7a41d616"]]), md = { class: "cd-usercard-panel shortcuts-panel" }, vd = { class: "shortcuts-list" }, pd = ["onClick"], gd = { class: "shortcut-label" }, hd = { class: "shortcut-keys" }, bd = {
|
|
3701
3701
|
key: 0,
|
|
3702
3702
|
class: "shortcuts-empty"
|
|
3703
|
-
}, yd = /* @__PURE__ */
|
|
3703
|
+
}, yd = /* @__PURE__ */ Ke({
|
|
3704
3704
|
name: "CdShortcutsPanel",
|
|
3705
3705
|
__name: "ShortcutsPanel",
|
|
3706
3706
|
props: {
|
|
@@ -3738,7 +3738,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3738
3738
|
]);
|
|
3739
3739
|
};
|
|
3740
3740
|
}
|
|
3741
|
-
}), _d = /* @__PURE__ */
|
|
3741
|
+
}), _d = /* @__PURE__ */ aa(yd, [["__scopeId", "data-v-56b77109"]]), kd = { class: "cd-usercard-panel about-panel" }, Cd = { class: "about-logo" }, wd = ["src", "alt"], xd = { class: "app-name" }, $d = { class: "app-version" }, Vd = { class: "about-info" }, Sd = { class: "info-item" }, Md = { class: "info-value" }, zd = {
|
|
3742
3742
|
key: 0,
|
|
3743
3743
|
class: "info-item"
|
|
3744
3744
|
}, Fd = { class: "info-value" }, Dd = {
|
|
@@ -3750,7 +3750,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3750
3750
|
}, Rd = ["href", "onClick"], Ed = {
|
|
3751
3751
|
key: 1,
|
|
3752
3752
|
class: "about-footer"
|
|
3753
|
-
}, Pd = /* @__PURE__ */
|
|
3753
|
+
}, Pd = /* @__PURE__ */ Ke({
|
|
3754
3754
|
name: "CdAboutPanel",
|
|
3755
3755
|
__name: "AboutPanel",
|
|
3756
3756
|
props: {
|
|
@@ -3810,34 +3810,34 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3810
3810
|
]);
|
|
3811
3811
|
};
|
|
3812
3812
|
}
|
|
3813
|
-
}), Id = /* @__PURE__ */
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
const Od =
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
const
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3813
|
+
}), Id = /* @__PURE__ */ aa(Pd, [["__scopeId", "data-v-3bbea5ac"]]);
|
|
3814
|
+
ta($l);
|
|
3815
|
+
ta(gs);
|
|
3816
|
+
ta(Ds);
|
|
3817
|
+
ta(js);
|
|
3818
|
+
ta(ir);
|
|
3819
|
+
ta(zr);
|
|
3820
|
+
ta(qr);
|
|
3821
|
+
ta(ed);
|
|
3822
|
+
ta(fd);
|
|
3823
|
+
ta(_d);
|
|
3824
|
+
ta(Id);
|
|
3825
|
+
const Od = ta(yt);
|
|
3826
|
+
ta(Vl);
|
|
3827
|
+
ta($n);
|
|
3828
|
+
const pl = ta(ti);
|
|
3829
|
+
ta(zl);
|
|
3830
|
+
ta(Si);
|
|
3831
|
+
ta(Ni);
|
|
3832
|
+
ta(Yi);
|
|
3833
|
+
ta(as);
|
|
3834
3834
|
const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd = ["disabled"], qd = {
|
|
3835
3835
|
key: 0,
|
|
3836
3836
|
class: "search-table-panel"
|
|
3837
3837
|
}, Ld = {
|
|
3838
3838
|
key: 1,
|
|
3839
3839
|
class: "search-empty"
|
|
3840
|
-
}, jd = { class: "relation-form-dialog-content" }, Wd = /* @__PURE__ */
|
|
3840
|
+
}, jd = { class: "relation-form-dialog-content" }, Wd = /* @__PURE__ */ Ke({
|
|
3841
3841
|
name: "CdRelationForm",
|
|
3842
3842
|
__name: "RelationForm",
|
|
3843
3843
|
props: {
|
|
@@ -3877,40 +3877,40 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
3877
3877
|
title: P.label,
|
|
3878
3878
|
ellipsis: !0
|
|
3879
3879
|
}))), H = F({});
|
|
3880
|
-
|
|
3880
|
+
Fe(() => n.searchResults, (P) => {
|
|
3881
3881
|
var X, oe;
|
|
3882
3882
|
if (!P || P.length === 0) return;
|
|
3883
3883
|
const G = ((oe = (X = n.columnOptions) == null ? void 0 : X[0]) == null ? void 0 : oe.value) || "fname";
|
|
3884
3884
|
for (const ne of P) {
|
|
3885
|
-
const
|
|
3886
|
-
|
|
3885
|
+
const C = String(ne.fid ?? ne.id ?? ""), B = ne.FNAME || ne.fname || ne[G] || C;
|
|
3886
|
+
C && (H.value[C] = B);
|
|
3887
3887
|
}
|
|
3888
3888
|
if (c.value.length > 0) {
|
|
3889
|
-
const ne = c.value.map((
|
|
3889
|
+
const ne = c.value.map((C) => H.value[C] || C);
|
|
3890
3890
|
m.value = ne, u.value = ne.join(", ");
|
|
3891
3891
|
}
|
|
3892
|
-
}, { deep: !0 }),
|
|
3892
|
+
}, { deep: !0 }), Fe(() => n.value, (P) => {
|
|
3893
3893
|
var G, X, oe, ne;
|
|
3894
3894
|
if (P != null && P !== "") {
|
|
3895
3895
|
if (typeof P == "number") {
|
|
3896
|
-
const
|
|
3897
|
-
if (c.value = [
|
|
3898
|
-
const B = H.value[
|
|
3899
|
-
m.value = [B], u.value = B, H.value[
|
|
3896
|
+
const C = String(P);
|
|
3897
|
+
if (c.value = [C], n.releaseId) {
|
|
3898
|
+
const B = H.value[C] || C;
|
|
3899
|
+
m.value = [B], u.value = B, H.value[C] || y("search", { keyword: "", searchFields: J.value });
|
|
3900
3900
|
} else
|
|
3901
|
-
m.value = [
|
|
3901
|
+
m.value = [C], u.value = C;
|
|
3902
3902
|
} else if (typeof P == "string") {
|
|
3903
|
-
const
|
|
3904
|
-
if (c.value =
|
|
3905
|
-
const le =
|
|
3906
|
-
m.value = le, u.value = le.join(", "),
|
|
3903
|
+
const C = P.split(",").map((le) => le.trim()).filter((le) => le);
|
|
3904
|
+
if (c.value = C, C.some((le) => /^\d+$/.test(le)) && n.releaseId) {
|
|
3905
|
+
const le = C.map((we) => H.value[we] || we);
|
|
3906
|
+
m.value = le, u.value = le.join(", "), C.some((we) => /^\d+$/.test(we) && !H.value[we]) && y("search", { keyword: "", searchFields: J.value });
|
|
3907
3907
|
} else
|
|
3908
|
-
m.value =
|
|
3908
|
+
m.value = C, u.value = C.join(", ");
|
|
3909
3909
|
} else if (Array.isArray(P)) {
|
|
3910
|
-
const
|
|
3911
|
-
c.value = P.map((le) => typeof le == "string" ? le : String(le[
|
|
3910
|
+
const C = n.relationField || "fid", B = ((X = (G = n.columnOptions) == null ? void 0 : G[0]) == null ? void 0 : X.value) || "fname";
|
|
3911
|
+
c.value = P.map((le) => typeof le == "string" ? le : String(le[C] ?? le.fid ?? "")), m.value = P.map((le) => typeof le == "string" ? le : String(le[B] || "")), u.value = m.value.join(", ");
|
|
3912
3912
|
} else if (typeof P == "object") {
|
|
3913
|
-
const
|
|
3913
|
+
const C = n.relationField || "fid", B = ((ne = (oe = n.columnOptions) == null ? void 0 : oe[0]) == null ? void 0 : ne.value) || "fname", le = String(P[C] ?? P.fid ?? ""), _e = P[B] || le;
|
|
3914
3914
|
c.value = [le], m.value = [_e], u.value = _e;
|
|
3915
3915
|
}
|
|
3916
3916
|
} else
|
|
@@ -3957,9 +3957,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
3957
3957
|
q.value = [], ee.value = [], D.value = !1;
|
|
3958
3958
|
};
|
|
3959
3959
|
return (P, G) => {
|
|
3960
|
-
const X = M("t-tag"), oe = M("t-input"), ne = M("t-table"),
|
|
3960
|
+
const X = M("t-tag"), oe = M("t-input"), ne = M("t-table"), C = M("t-popup"), B = M("t-button"), le = M("t-dialog");
|
|
3961
3961
|
return l(), o("div", Td, [
|
|
3962
|
-
s(
|
|
3962
|
+
s(C, {
|
|
3963
3963
|
modelValue: U.value,
|
|
3964
3964
|
"onUpdate:modelValue": G[2] || (G[2] = (_e) => U.value = _e),
|
|
3965
3965
|
placement: "bottom-left",
|
|
@@ -4003,7 +4003,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4003
4003
|
]),
|
|
4004
4004
|
_: 2
|
|
4005
4005
|
}, 1032, ["disabled", "onClose"]))), 128)),
|
|
4006
|
-
|
|
4006
|
+
ha(e("input", {
|
|
4007
4007
|
ref_key: "tagInputRef",
|
|
4008
4008
|
ref: _,
|
|
4009
4009
|
"onUpdate:modelValue": G[0] || (G[0] = (_e) => u.value = _e),
|
|
@@ -4013,7 +4013,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4013
4013
|
onInput: r,
|
|
4014
4014
|
onFocus: W
|
|
4015
4015
|
}, null, 40, Bd), [
|
|
4016
|
-
[
|
|
4016
|
+
[Ca, u.value]
|
|
4017
4017
|
])
|
|
4018
4018
|
])) : (l(), j(oe, {
|
|
4019
4019
|
key: 1,
|
|
@@ -4035,7 +4035,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4035
4035
|
]),
|
|
4036
4036
|
_: 1
|
|
4037
4037
|
}, 8, ["modelValue"]),
|
|
4038
|
-
(l(), j(
|
|
4038
|
+
(l(), j(vl, { to: "body" }, [
|
|
4039
4039
|
D.value ? (l(), j(le, {
|
|
4040
4040
|
key: 0,
|
|
4041
4041
|
visible: D.value,
|
|
@@ -4094,13 +4094,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4094
4094
|
]);
|
|
4095
4095
|
};
|
|
4096
4096
|
}
|
|
4097
|
-
}), Fl = /* @__PURE__ */
|
|
4097
|
+
}), Fl = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-80b2c5a2"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
|
|
4098
4098
|
key: 0,
|
|
4099
4099
|
class: "more-tip"
|
|
4100
4100
|
}, Qd = { class: "preview-table" }, Zd = {
|
|
4101
4101
|
key: 0,
|
|
4102
4102
|
class: "preview-tip"
|
|
4103
|
-
}, eu = { class: "panel-footer" }, au = { class: "dialog-footer" }, lu = /* @__PURE__ */
|
|
4103
|
+
}, eu = { class: "panel-footer" }, au = { class: "dialog-footer" }, lu = /* @__PURE__ */ Ke({
|
|
4104
4104
|
__name: "AiAddDialog",
|
|
4105
4105
|
props: {
|
|
4106
4106
|
visible: { type: Boolean, default: !1 },
|
|
@@ -4180,7 +4180,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4180
4180
|
});
|
|
4181
4181
|
}), H;
|
|
4182
4182
|
}), N = ve(() => w.value.some((H) => H !== void 0 && H !== ""));
|
|
4183
|
-
|
|
4183
|
+
Fe(() => D.value.length, (H) => {
|
|
4184
4184
|
const E = w.value;
|
|
4185
4185
|
E.length < H ? w.value = [
|
|
4186
4186
|
...E,
|
|
@@ -4232,7 +4232,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4232
4232
|
r.value = !1;
|
|
4233
4233
|
}, 1e3);
|
|
4234
4234
|
};
|
|
4235
|
-
return
|
|
4235
|
+
return Fe(u, (H) => {
|
|
4236
4236
|
H || (m.value = "", U.value = "", w.value = [], r.value = !1, c.value = ["ai"]);
|
|
4237
4237
|
}), (H, E) => {
|
|
4238
4238
|
const W = M("t-textarea"), d = M("t-form-item"), S = M("t-form"), g = M("t-button"), R = M("t-space"), O = M("t-collapse-panel"), de = M("t-radio"), ue = M("t-radio-group"), L = M("t-select"), x = M("t-tag"), b = M("t-table"), z = M("t-collapse"), P = M("t-dialog");
|
|
@@ -4474,7 +4474,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4474
4474
|
}, 8, ["visible"]);
|
|
4475
4475
|
};
|
|
4476
4476
|
}
|
|
4477
|
-
}), tu = /* @__PURE__ */
|
|
4477
|
+
}), tu = /* @__PURE__ */ aa(lu, [["__scopeId", "data-v-83250290"]]), nu = ["title"], ou = ["src"], iu = ["src"], su = {
|
|
4478
4478
|
key: 1,
|
|
4479
4479
|
class: "sign-placeholder"
|
|
4480
4480
|
}, ru = ["src"], du = {
|
|
@@ -4506,7 +4506,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4506
4506
|
components: {
|
|
4507
4507
|
RelationFormInternal: Fl
|
|
4508
4508
|
}
|
|
4509
|
-
}, xu = /* @__PURE__ */
|
|
4509
|
+
}, xu = /* @__PURE__ */ Ke({
|
|
4510
4510
|
...wu,
|
|
4511
4511
|
props: {
|
|
4512
4512
|
field: {},
|
|
@@ -4608,15 +4608,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4608
4608
|
if (!p || b.value !== "vxeSubGrid") return [];
|
|
4609
4609
|
const v = n.formModel[p], ie = Array.isArray(v) ? v : [];
|
|
4610
4610
|
if (!L.value) {
|
|
4611
|
-
const Te = [...ie],
|
|
4612
|
-
if (!(
|
|
4611
|
+
const Te = [...ie], Ae = Te[Te.length - 1];
|
|
4612
|
+
if (!(Ae && Ae._isEmpty)) {
|
|
4613
4613
|
const Ye = {
|
|
4614
4614
|
_X_ROW_KEY: `__empty_row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}__`,
|
|
4615
4615
|
_isEmpty: !0
|
|
4616
4616
|
};
|
|
4617
4617
|
(n.field.children || n.field.__config__.children || []).forEach((oa) => {
|
|
4618
|
-
const
|
|
4619
|
-
|
|
4618
|
+
const _a = oa.__vModel__ || oa.field;
|
|
4619
|
+
_a && (Ye[_a] = "");
|
|
4620
4620
|
}), Te.push(Ye);
|
|
4621
4621
|
}
|
|
4622
4622
|
return Te;
|
|
@@ -4640,18 +4640,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4640
4640
|
}), p.forEach((ie) => {
|
|
4641
4641
|
const Te = ie.__config__;
|
|
4642
4642
|
if (!Te || Te.noShow) return;
|
|
4643
|
-
const
|
|
4644
|
-
if (!
|
|
4645
|
-
const
|
|
4643
|
+
const Ae = ie.__vModel__ || ie.field;
|
|
4644
|
+
if (!Ae) return;
|
|
4645
|
+
const ea = {
|
|
4646
4646
|
...ie,
|
|
4647
|
-
__vModel__:
|
|
4647
|
+
__vModel__: Ae,
|
|
4648
4648
|
// 确保有 __vModel__ 属性
|
|
4649
4649
|
__config__: {
|
|
4650
4650
|
...Te,
|
|
4651
4651
|
layout: "colFormItem"
|
|
4652
4652
|
}
|
|
4653
4653
|
}, Ye = {
|
|
4654
|
-
field:
|
|
4654
|
+
field: Ae,
|
|
4655
4655
|
title: ie.title || Te.label,
|
|
4656
4656
|
width: ie.width || Te.tableWidth || 150,
|
|
4657
4657
|
align: ie.align || Te.tableAlign || "left",
|
|
@@ -4660,10 +4660,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4660
4660
|
};
|
|
4661
4661
|
Ye.cellRender = {
|
|
4662
4662
|
name: "$renderFormItem",
|
|
4663
|
-
props: { field:
|
|
4663
|
+
props: { field: ea }
|
|
4664
4664
|
}, L.value || (Ye.editRender = {
|
|
4665
4665
|
name: "$renderFormItem",
|
|
4666
|
-
props: { field:
|
|
4666
|
+
props: { field: ea }
|
|
4667
4667
|
}), v.push(Ye);
|
|
4668
4668
|
}), v;
|
|
4669
4669
|
}), ge = ve(() => {
|
|
@@ -4755,14 +4755,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4755
4755
|
}, d = () => {
|
|
4756
4756
|
const p = n.field.__vModel__;
|
|
4757
4757
|
if (!p) return;
|
|
4758
|
-
const v = Array.isArray(N.value) ? N.value.filter((
|
|
4758
|
+
const v = Array.isArray(N.value) ? N.value.filter((Ae) => !Ae._isEmpty) : [], ie = {
|
|
4759
4759
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
4760
4760
|
};
|
|
4761
|
-
(n.field.children || n.field.__config__.children || []).forEach((
|
|
4762
|
-
var
|
|
4763
|
-
const
|
|
4764
|
-
if (!
|
|
4765
|
-
switch ((
|
|
4761
|
+
(n.field.children || n.field.__config__.children || []).forEach((Ae) => {
|
|
4762
|
+
var la;
|
|
4763
|
+
const ea = Ae.__vModel__ || Ae.field;
|
|
4764
|
+
if (!ea) return;
|
|
4765
|
+
switch ((la = Ae.__config__) == null ? void 0 : la.cdkey) {
|
|
4766
4766
|
case "input":
|
|
4767
4767
|
case "textarea":
|
|
4768
4768
|
case "work_company":
|
|
@@ -4770,25 +4770,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4770
4770
|
case "work_description":
|
|
4771
4771
|
case "edu_school":
|
|
4772
4772
|
case "edu_major":
|
|
4773
|
-
ie[
|
|
4773
|
+
ie[ea] = "";
|
|
4774
4774
|
break;
|
|
4775
4775
|
case "number":
|
|
4776
|
-
ie[
|
|
4776
|
+
ie[ea] = 0;
|
|
4777
4777
|
break;
|
|
4778
4778
|
case "switch":
|
|
4779
|
-
ie[
|
|
4779
|
+
ie[ea] = !1;
|
|
4780
4780
|
break;
|
|
4781
4781
|
case "checkbox":
|
|
4782
4782
|
case "select":
|
|
4783
4783
|
case "edu_degree":
|
|
4784
|
-
ie[
|
|
4784
|
+
ie[ea] = Ae.multiple ? [] : null;
|
|
4785
4785
|
break;
|
|
4786
4786
|
case "date":
|
|
4787
4787
|
case "datetime":
|
|
4788
|
-
ie[
|
|
4788
|
+
ie[ea] = null;
|
|
4789
4789
|
break;
|
|
4790
4790
|
default:
|
|
4791
|
-
ie[
|
|
4791
|
+
ie[ea] = null;
|
|
4792
4792
|
}
|
|
4793
4793
|
}), v.push(ie), x("change", p, v);
|
|
4794
4794
|
}, S = async () => {
|
|
@@ -4798,8 +4798,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4798
4798
|
return;
|
|
4799
4799
|
const v = n.field.__vModel__;
|
|
4800
4800
|
if (!v) return;
|
|
4801
|
-
const Te = (Array.isArray(N.value) ? N.value.filter((
|
|
4802
|
-
(
|
|
4801
|
+
const Te = (Array.isArray(N.value) ? N.value.filter((Ae) => !Ae._isEmpty) : []).filter(
|
|
4802
|
+
(Ae) => !p.includes(Ae) && !Ae._isEmpty
|
|
4803
4803
|
);
|
|
4804
4804
|
x("change", v, Te), await c.value.clearCheckboxRow();
|
|
4805
4805
|
}, g = async () => {
|
|
@@ -4808,11 +4808,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4808
4808
|
if (!p || p.length === 0 || !n.field.__vModel__) return;
|
|
4809
4809
|
const ie = Array.isArray(N.value) ? [...N.value] : [];
|
|
4810
4810
|
p.forEach((Te) => {
|
|
4811
|
-
const
|
|
4811
|
+
const Ae = {
|
|
4812
4812
|
...Te,
|
|
4813
4813
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
4814
4814
|
};
|
|
4815
|
-
ie.push(
|
|
4815
|
+
ie.push(Ae);
|
|
4816
4816
|
}), N.value = ie, await c.value.clearCheckboxRow();
|
|
4817
4817
|
}, R = () => {
|
|
4818
4818
|
if (!c.value) return;
|
|
@@ -4822,8 +4822,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4822
4822
|
if (p._isEmpty && Object.keys(p).some((ie) => ie === "_X_ROW_KEY" || ie === "_isEmpty" ? !1 : p[ie] !== null && p[ie] !== void 0 && p[ie] !== "")) {
|
|
4823
4823
|
const ie = n.field.__vModel__;
|
|
4824
4824
|
if (!ie) return;
|
|
4825
|
-
const Te = Array.isArray(N.value) ? N.value.filter((
|
|
4826
|
-
delete
|
|
4825
|
+
const Te = Array.isArray(N.value) ? N.value.filter((ea) => !ea._isEmpty) : [], Ae = { ...p };
|
|
4826
|
+
delete Ae._isEmpty, Ae._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Te.push(Ae), x("change", ie, Te);
|
|
4827
4827
|
}
|
|
4828
4828
|
}, de = (p) => {
|
|
4829
4829
|
if (!n.field.__vModel__) return;
|
|
@@ -4859,47 +4859,47 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4859
4859
|
aggregation: ie
|
|
4860
4860
|
}), !p || !v) return "";
|
|
4861
4861
|
const Te = p + "_data";
|
|
4862
|
-
let
|
|
4862
|
+
let Ae = n.formModel[Te];
|
|
4863
4863
|
if (console.log("[RenderFormItem displayValue] 查找 _data 字段:", {
|
|
4864
4864
|
dataKey: Te,
|
|
4865
|
-
found: !!
|
|
4866
|
-
relationData:
|
|
4867
|
-
}),
|
|
4865
|
+
found: !!Ae,
|
|
4866
|
+
relationData: Ae
|
|
4867
|
+
}), Ae || (Ae = n.formModel[p], console.log("[RenderFormItem displayValue] 从关联字段本身获取:", {
|
|
4868
4868
|
relationField: p,
|
|
4869
|
-
found: !!
|
|
4870
|
-
relationData:
|
|
4871
|
-
})), !
|
|
4869
|
+
found: !!Ae,
|
|
4870
|
+
relationData: Ae
|
|
4871
|
+
})), !Ae)
|
|
4872
4872
|
return console.log("[RenderFormItem displayValue] 未找到关联数据"), "";
|
|
4873
|
-
if (Array.isArray(
|
|
4874
|
-
const
|
|
4873
|
+
if (Array.isArray(Ae)) {
|
|
4874
|
+
const ea = Ae.map((Ye) => typeof Ye == "object" && Ye !== null ? Ye[v] : Ye).filter((Ye) => Ye != null);
|
|
4875
4875
|
if (ie) {
|
|
4876
|
-
const Ye =
|
|
4876
|
+
const Ye = ea.map((la) => parseFloat(la)).filter((la) => !isNaN(la));
|
|
4877
4877
|
switch (ie) {
|
|
4878
4878
|
case "sum":
|
|
4879
|
-
return Ye.reduce((
|
|
4879
|
+
return Ye.reduce((la, oa) => la + oa, 0).toString();
|
|
4880
4880
|
case "average":
|
|
4881
|
-
return Ye.length > 0 ? (Ye.reduce((
|
|
4881
|
+
return Ye.length > 0 ? (Ye.reduce((la, oa) => la + oa, 0) / Ye.length).toString() : "";
|
|
4882
4882
|
case "round":
|
|
4883
|
-
return Ye.length > 0 ? Math.round(Ye.reduce((
|
|
4883
|
+
return Ye.length > 0 ? Math.round(Ye.reduce((la, oa) => la + oa, 0) / Ye.length).toString() : "";
|
|
4884
4884
|
case "floor":
|
|
4885
|
-
return Ye.length > 0 ? Math.floor(Ye.reduce((
|
|
4885
|
+
return Ye.length > 0 ? Math.floor(Ye.reduce((la, oa) => la + oa, 0) / Ye.length).toString() : "";
|
|
4886
4886
|
case "ceiling":
|
|
4887
|
-
return Ye.length > 0 ? Math.ceil(Ye.reduce((
|
|
4887
|
+
return Ye.length > 0 ? Math.ceil(Ye.reduce((la, oa) => la + oa, 0) / Ye.length).toString() : "";
|
|
4888
4888
|
default:
|
|
4889
|
-
return
|
|
4889
|
+
return ea.join(", ");
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
4892
|
-
return
|
|
4892
|
+
return ea.join(", ");
|
|
4893
4893
|
}
|
|
4894
|
-
if (typeof
|
|
4895
|
-
const
|
|
4894
|
+
if (typeof Ae == "object" && Ae !== null) {
|
|
4895
|
+
const ea = Ae[v] || "";
|
|
4896
4896
|
return console.log("[RenderFormItem displayValue] 从对象中取值:", {
|
|
4897
4897
|
showField: v,
|
|
4898
|
-
result:
|
|
4899
|
-
relationData:
|
|
4900
|
-
}),
|
|
4898
|
+
result: ea,
|
|
4899
|
+
relationData: Ae
|
|
4900
|
+
}), ea;
|
|
4901
4901
|
}
|
|
4902
|
-
return console.log("[RenderFormItem displayValue] 直接返回关联数据:",
|
|
4902
|
+
return console.log("[RenderFormItem displayValue] 直接返回关联数据:", Ae), Ae || "";
|
|
4903
4903
|
}), G = (p) => {
|
|
4904
4904
|
switch (p) {
|
|
4905
4905
|
case "datetime":
|
|
@@ -4934,7 +4934,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4934
4934
|
}, ne = (p) => {
|
|
4935
4935
|
const v = n.field.__vModel__ || "", ie = z.value;
|
|
4936
4936
|
x("change", v, ie);
|
|
4937
|
-
},
|
|
4937
|
+
}, C = () => {
|
|
4938
4938
|
const p = n.field.__vModel__ || "";
|
|
4939
4939
|
x("change", p, "");
|
|
4940
4940
|
}, B = () => {
|
|
@@ -4976,7 +4976,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4976
4976
|
x("change", p, null);
|
|
4977
4977
|
const v = p.replace(/Id$/, "Name");
|
|
4978
4978
|
n.formModel[v] !== void 0 && x("change", v, "");
|
|
4979
|
-
}, T =
|
|
4979
|
+
}, T = fl("relationFormData", {}), h = fl("relationFormHandlers", null), Se = fl("dynamicFieldOptions", F({})), We = (p) => {
|
|
4980
4980
|
var ie;
|
|
4981
4981
|
const v = (ie = Se.value) == null ? void 0 : ie[p.__vModel__];
|
|
4982
4982
|
return Array.isArray(v) && v.length > 0 ? v : Array.isArray(p.options) ? p.options : [];
|
|
@@ -4989,7 +4989,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4989
4989
|
}, ae = (p) => {
|
|
4990
4990
|
const v = { field: p.__vModel__, releaseId: p.releaseId };
|
|
4991
4991
|
h != null && h.advanced ? h.advanced(v) : x("relation-form-advanced", v);
|
|
4992
|
-
},
|
|
4992
|
+
}, De = (p, v) => {
|
|
4993
4993
|
const ie = { field: p.__vModel__, releaseId: p.releaseId, filters: v };
|
|
4994
4994
|
h != null && h.dialogSearch ? h.dialogSearch(ie) : x("relation-form-dialog-search", ie);
|
|
4995
4995
|
}, Oe = (p, v) => {
|
|
@@ -4999,30 +4999,30 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4999
4999
|
if (!n.field.__vModel__) return;
|
|
5000
5000
|
const v = {};
|
|
5001
5001
|
(n.field.__config__.children || []).forEach((Te) => {
|
|
5002
|
-
const
|
|
5003
|
-
if (!
|
|
5002
|
+
const Ae = Te.__vModel__;
|
|
5003
|
+
if (!Ae) return;
|
|
5004
5004
|
switch (Te.__config__.cdkey) {
|
|
5005
5005
|
case "input":
|
|
5006
5006
|
case "textarea":
|
|
5007
|
-
v[
|
|
5007
|
+
v[Ae] = "";
|
|
5008
5008
|
break;
|
|
5009
5009
|
case "number":
|
|
5010
|
-
v[
|
|
5010
|
+
v[Ae] = 0;
|
|
5011
5011
|
break;
|
|
5012
5012
|
case "switch":
|
|
5013
|
-
v[
|
|
5013
|
+
v[Ae] = !1;
|
|
5014
5014
|
break;
|
|
5015
5015
|
case "checkbox":
|
|
5016
5016
|
case "select":
|
|
5017
|
-
v[
|
|
5017
|
+
v[Ae] = Te.multiple ? [] : null;
|
|
5018
5018
|
break;
|
|
5019
5019
|
default:
|
|
5020
|
-
v[
|
|
5020
|
+
v[Ae] = null;
|
|
5021
5021
|
}
|
|
5022
5022
|
});
|
|
5023
5023
|
const ie = Array.isArray(I.value) ? [...I.value] : [];
|
|
5024
5024
|
ie.push(v), I.value = ie;
|
|
5025
|
-
},
|
|
5025
|
+
}, Ue = (p) => {
|
|
5026
5026
|
const v = Array.isArray(I.value) ? [...I.value] : [];
|
|
5027
5027
|
v.splice(p, 1), I.value = v;
|
|
5028
5028
|
}, ra = (p) => {
|
|
@@ -5038,8 +5038,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5038
5038
|
p.value === "batchRemove" && (I.value = []), x("change", `__btn_${p.value}__`, { btn: p, data: I.value });
|
|
5039
5039
|
};
|
|
5040
5040
|
return (p, v) => {
|
|
5041
|
-
const ie = M("t-input"), Te = M("t-textarea"),
|
|
5042
|
-
return a.field.__config__.layout === "colFormItem" ? (l(), j(Tl(a.tableMode ? "div" : "t-form-item"),
|
|
5041
|
+
const ie = M("t-input"), Te = M("t-textarea"), Ae = M("t-input-number"), ea = M("t-select"), Ye = M("t-date-picker"), la = M("t-date-range-picker"), oa = M("t-time-picker"), _a = M("t-time-range-picker"), Wa = M("t-switch"), Ya = M("vxe-rate"), Ha = M("t-radio"), Ja = M("t-radio-group"), xa = M("t-checkbox"), Ka = M("t-checkbox-group"), Ra = M("t-cascader"), Ga = M("t-tree-select"), Xa = M("t-auto-complete"), Ea = M("t-upload"), ma = M("t-button"), Qa = M("t-color-picker"), Pa = M("t-slider"), Za = M("t-progress"), el = M("t-alert"), ka = M("t-link"), al = M("t-tag-input"), ll = M("t-dropdown-item"), tl = M("t-dropdown-menu"), nl = M("t-dropdown"), ol = M("vxe-grid"), ba = M("render-form-item", !0), $a = M("t-row"), il = M("t-divider"), sl = M("t-tab-panel"), rl = M("t-tabs"), Ia = M("t-collapse-panel"), dl = M("t-collapse"), Oa = M("t-popconfirm"), Ta = M("t-space"), ul = M("t-table");
|
|
5042
|
+
return a.field.__config__.layout === "colFormItem" ? (l(), j(Tl(a.tableMode ? "div" : "t-form-item"), Aa({
|
|
5043
5043
|
key: 0,
|
|
5044
5044
|
class: a.tableMode ? "table-cell-editor" : ""
|
|
5045
5045
|
}, a.tableMode ? {} : {
|
|
@@ -5061,7 +5061,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5061
5061
|
readonly: a.field.readonly,
|
|
5062
5062
|
onBlur: X,
|
|
5063
5063
|
onInput: ne,
|
|
5064
|
-
onClear:
|
|
5064
|
+
onClear: C,
|
|
5065
5065
|
onChange: oe
|
|
5066
5066
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "input" && ((Ee = a.field.__config__) != null && Ee.i18n) ? (l(), j(ie, {
|
|
5067
5067
|
key: 1,
|
|
@@ -5074,7 +5074,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5074
5074
|
readonly: a.field.readonly,
|
|
5075
5075
|
onBlur: X,
|
|
5076
5076
|
onInput: ne,
|
|
5077
|
-
onClear:
|
|
5077
|
+
onClear: C,
|
|
5078
5078
|
onChange: oe,
|
|
5079
5079
|
onFocus: v[2] || (v[2] = () => {
|
|
5080
5080
|
var me;
|
|
@@ -5101,9 +5101,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5101
5101
|
rows: a.field.rows || 3,
|
|
5102
5102
|
onBlur: X,
|
|
5103
5103
|
onInput: ne,
|
|
5104
|
-
onClear:
|
|
5104
|
+
onClear: C,
|
|
5105
5105
|
onChange: oe
|
|
5106
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : b.value === "number" ? (l(), j(
|
|
5106
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : b.value === "number" ? (l(), j(Ae, {
|
|
5107
5107
|
key: 3,
|
|
5108
5108
|
modelValue: z.value,
|
|
5109
5109
|
"onUpdate:modelValue": v[4] || (v[4] = (me) => z.value = me),
|
|
@@ -5113,7 +5113,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5113
5113
|
max: a.field.max,
|
|
5114
5114
|
step: a.field.step || 1,
|
|
5115
5115
|
onChange: oe
|
|
5116
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : b.value === "select" ? (l(), j(
|
|
5116
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : b.value === "select" ? (l(), j(ea, {
|
|
5117
5117
|
key: 4,
|
|
5118
5118
|
modelValue: z.value,
|
|
5119
5119
|
"onUpdate:modelValue": v[5] || (v[5] = (me) => z.value = me),
|
|
@@ -5136,7 +5136,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5136
5136
|
"enable-time-picker": a.field.type === "datetime",
|
|
5137
5137
|
format: G(a.field.type),
|
|
5138
5138
|
onChange: oe
|
|
5139
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : b.value === "dateRange" ? (l(), j(
|
|
5139
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : b.value === "dateRange" ? (l(), j(la, {
|
|
5140
5140
|
key: 6,
|
|
5141
5141
|
modelValue: z.value,
|
|
5142
5142
|
"onUpdate:modelValue": v[7] || (v[7] = (me) => z.value = me),
|
|
@@ -5154,7 +5154,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5154
5154
|
disabled: L.value,
|
|
5155
5155
|
clearable: a.field.clearable !== !1,
|
|
5156
5156
|
onChange: oe
|
|
5157
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "rangeTime" ? (l(), j(
|
|
5157
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "rangeTime" ? (l(), j(_a, {
|
|
5158
5158
|
key: 8,
|
|
5159
5159
|
modelValue: z.value,
|
|
5160
5160
|
"onUpdate:modelValue": v[9] || (v[9] = (me) => z.value = me),
|
|
@@ -5162,13 +5162,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5162
5162
|
disabled: L.value,
|
|
5163
5163
|
clearable: a.field.clearable !== !1,
|
|
5164
5164
|
onChange: qe
|
|
5165
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "switch" ? (l(), j(
|
|
5165
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "switch" ? (l(), j(Wa, {
|
|
5166
5166
|
key: 9,
|
|
5167
5167
|
modelValue: z.value,
|
|
5168
5168
|
"onUpdate:modelValue": v[10] || (v[10] = (me) => z.value = me),
|
|
5169
5169
|
disabled: L.value,
|
|
5170
5170
|
onChange: oe
|
|
5171
|
-
}, null, 8, ["modelValue", "disabled"])) : b.value === "rate" ? (l(), j(
|
|
5171
|
+
}, null, 8, ["modelValue", "disabled"])) : b.value === "rate" ? (l(), j(Ya, {
|
|
5172
5172
|
key: 10,
|
|
5173
5173
|
modelValue: z.value,
|
|
5174
5174
|
"onUpdate:modelValue": v[11] || (v[11] = (me) => z.value = me),
|
|
@@ -5176,7 +5176,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5176
5176
|
max: a.field.max || 5,
|
|
5177
5177
|
half: a.field.allowHalf,
|
|
5178
5178
|
onChange: oe
|
|
5179
|
-
}, null, 8, ["modelValue", "disabled", "max", "half"])) : b.value === "radio" ? (l(), j(
|
|
5179
|
+
}, null, 8, ["modelValue", "disabled", "max", "half"])) : b.value === "radio" ? (l(), j(Ja, {
|
|
5180
5180
|
key: 11,
|
|
5181
5181
|
modelValue: z.value,
|
|
5182
5182
|
"onUpdate:modelValue": v[12] || (v[12] = (me) => z.value = me),
|
|
@@ -5184,7 +5184,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5184
5184
|
onChange: oe
|
|
5185
5185
|
}, {
|
|
5186
5186
|
default: i(() => [
|
|
5187
|
-
(l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), j(
|
|
5187
|
+
(l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), j(Ha, {
|
|
5188
5188
|
key: me.value,
|
|
5189
5189
|
value: me.value
|
|
5190
5190
|
}, {
|
|
@@ -5195,7 +5195,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5195
5195
|
}, 1032, ["value"]))), 128))
|
|
5196
5196
|
]),
|
|
5197
5197
|
_: 1
|
|
5198
|
-
}, 8, ["modelValue", "disabled"])) : b.value === "checkbox" ? (l(), j(
|
|
5198
|
+
}, 8, ["modelValue", "disabled"])) : b.value === "checkbox" ? (l(), j(Ka, {
|
|
5199
5199
|
key: 12,
|
|
5200
5200
|
modelValue: z.value,
|
|
5201
5201
|
"onUpdate:modelValue": v[13] || (v[13] = (me) => z.value = me),
|
|
@@ -5203,7 +5203,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5203
5203
|
onChange: oe
|
|
5204
5204
|
}, {
|
|
5205
5205
|
default: i(() => [
|
|
5206
|
-
(l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), j(
|
|
5206
|
+
(l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), j(xa, {
|
|
5207
5207
|
key: me.value,
|
|
5208
5208
|
value: me.value
|
|
5209
5209
|
}, {
|
|
@@ -5214,7 +5214,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5214
5214
|
}, 1032, ["value"]))), 128))
|
|
5215
5215
|
]),
|
|
5216
5216
|
_: 1
|
|
5217
|
-
}, 8, ["modelValue", "disabled"])) : b.value === "cascader" ? (l(), j(
|
|
5217
|
+
}, 8, ["modelValue", "disabled"])) : b.value === "cascader" ? (l(), j(Ra, {
|
|
5218
5218
|
key: 13,
|
|
5219
5219
|
modelValue: z.value,
|
|
5220
5220
|
"onUpdate:modelValue": v[14] || (v[14] = (me) => z.value = me),
|
|
@@ -5224,7 +5224,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5224
5224
|
options: Array.isArray(a.field.options) ? a.field.options : [],
|
|
5225
5225
|
keys: a.field.props || { label: "label", value: "value", children: "children" },
|
|
5226
5226
|
onChange: oe
|
|
5227
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : b.value === "treeSelect" ? (l(), j(
|
|
5227
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : b.value === "treeSelect" ? (l(), j(Ga, {
|
|
5228
5228
|
key: 14,
|
|
5229
5229
|
modelValue: z.value,
|
|
5230
5230
|
"onUpdate:modelValue": v[15] || (v[15] = (me) => z.value = me),
|
|
@@ -5236,7 +5236,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5236
5236
|
data: We(a.field),
|
|
5237
5237
|
"tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
|
|
5238
5238
|
onChange: oe
|
|
5239
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : b.value === "autoComplete" ? (l(), j(
|
|
5239
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : b.value === "autoComplete" ? (l(), j(Xa, {
|
|
5240
5240
|
key: 15,
|
|
5241
5241
|
modelValue: z.value,
|
|
5242
5242
|
"onUpdate:modelValue": v[16] || (v[16] = (me) => z.value = me),
|
|
@@ -5245,7 +5245,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5245
5245
|
clearable: a.field.clearable !== !1,
|
|
5246
5246
|
options: Array.isArray(a.field.options) ? a.field.options : [],
|
|
5247
5247
|
onChange: oe
|
|
5248
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : b.value === "uploadImg" ? (l(), j(
|
|
5248
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : b.value === "uploadImg" ? (l(), j(Ea, {
|
|
5249
5249
|
key: 16,
|
|
5250
5250
|
modelValue: z.value,
|
|
5251
5251
|
"onUpdate:modelValue": v[17] || (v[17] = (me) => z.value = me),
|
|
@@ -5263,7 +5263,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5263
5263
|
}
|
|
5264
5264
|
},
|
|
5265
5265
|
onChange: oe
|
|
5266
|
-
}, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : b.value === "upload" ? (l(), j(
|
|
5266
|
+
}, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : b.value === "upload" ? (l(), j(Ea, {
|
|
5267
5267
|
key: 17,
|
|
5268
5268
|
modelValue: z.value,
|
|
5269
5269
|
"onUpdate:modelValue": v[18] || (v[18] = (me) => z.value = me),
|
|
@@ -5285,13 +5285,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5285
5285
|
}, 8, ["disabled"])
|
|
5286
5286
|
]),
|
|
5287
5287
|
_: 1
|
|
5288
|
-
}, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : b.value === "colorPicker" ? (l(), j(
|
|
5288
|
+
}, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : b.value === "colorPicker" ? (l(), j(Qa, {
|
|
5289
5289
|
key: 18,
|
|
5290
5290
|
modelValue: z.value,
|
|
5291
5291
|
"onUpdate:modelValue": v[19] || (v[19] = (me) => z.value = me),
|
|
5292
5292
|
disabled: L.value,
|
|
5293
5293
|
onChange: oe
|
|
5294
|
-
}, null, 8, ["modelValue", "disabled"])) : b.value === "slider" ? (l(), j(
|
|
5294
|
+
}, null, 8, ["modelValue", "disabled"])) : b.value === "slider" ? (l(), j(Pa, {
|
|
5295
5295
|
key: 19,
|
|
5296
5296
|
modelValue: z.value,
|
|
5297
5297
|
"onUpdate:modelValue": v[20] || (v[20] = (me) => z.value = me),
|
|
@@ -5300,20 +5300,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5300
5300
|
max: a.field.max || 100,
|
|
5301
5301
|
step: a.field.step || 1,
|
|
5302
5302
|
onChange: oe
|
|
5303
|
-
}, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : b.value === "progress" ? (l(), j(
|
|
5303
|
+
}, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : b.value === "progress" ? (l(), j(Za, {
|
|
5304
5304
|
key: 20,
|
|
5305
5305
|
percentage: z.value || a.field.defaultValue || 0,
|
|
5306
5306
|
status: a.field.status,
|
|
5307
5307
|
"stroke-width": a.field.strokeWidth,
|
|
5308
5308
|
color: a.field.color,
|
|
5309
5309
|
label: a.field.showText !== !1
|
|
5310
|
-
}, null, 8, ["percentage", "status", "stroke-width", "color", "label"])) : b.value === "alert" ? (l(), j(
|
|
5310
|
+
}, null, 8, ["percentage", "status", "stroke-width", "color", "label"])) : b.value === "alert" ? (l(), j(el, {
|
|
5311
5311
|
key: 21,
|
|
5312
5312
|
theme: a.field.type || "info",
|
|
5313
5313
|
message: a.field.title || a.field.defaultValue,
|
|
5314
5314
|
close: a.field.closable,
|
|
5315
5315
|
icon: a.field.showIcon !== !1
|
|
5316
|
-
}, null, 8, ["theme", "message", "close", "icon"])) : b.value === "link" ? (l(), j(
|
|
5316
|
+
}, null, 8, ["theme", "message", "close", "icon"])) : b.value === "link" ? (l(), j(ka, {
|
|
5317
5317
|
key: 22,
|
|
5318
5318
|
href: a.field.href || a.field.defaultValue,
|
|
5319
5319
|
target: a.field.target || "_blank",
|
|
@@ -5343,7 +5343,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5343
5343
|
}, 8, ["theme", "disabled", "variant"])) : b.value === "iframe" ? (l(), o("iframe", {
|
|
5344
5344
|
key: 24,
|
|
5345
5345
|
src: a.field.src || a.field.defaultValue,
|
|
5346
|
-
style:
|
|
5346
|
+
style: Xe({
|
|
5347
5347
|
width: a.field.width || "100%",
|
|
5348
5348
|
height: a.field.height || "300px",
|
|
5349
5349
|
border: a.field.border || "none"
|
|
@@ -5374,7 +5374,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5374
5374
|
e("i", { class: "ri-stamp-line" }, null, -1),
|
|
5375
5375
|
e("span", null, "点击盖章", -1)
|
|
5376
5376
|
])]))
|
|
5377
|
-
])) : b.value === "tag" ? (l(), j(
|
|
5377
|
+
])) : b.value === "tag" ? (l(), j(al, {
|
|
5378
5378
|
key: 27,
|
|
5379
5379
|
modelValue: z.value,
|
|
5380
5380
|
"onUpdate:modelValue": v[22] || (v[22] = (me) => z.value = me),
|
|
@@ -5395,7 +5395,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5395
5395
|
clearable: a.field.clearable !== !1,
|
|
5396
5396
|
onBlur: X,
|
|
5397
5397
|
onInput: ne,
|
|
5398
|
-
onClear:
|
|
5398
|
+
onClear: C,
|
|
5399
5399
|
onChange: oe
|
|
5400
5400
|
}, null, 8, ["modelValue", "placeholder", "clearable"]))
|
|
5401
5401
|
], 64)) : b.value === "relationFormAttr" ? (l(), j(ie, {
|
|
@@ -5408,7 +5408,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5408
5408
|
}, null, 8, ["modelValue", "placeholder", "disabled"])) : b.value === "text" ? (l(), o("div", {
|
|
5409
5409
|
key: 30,
|
|
5410
5410
|
class: "text-component",
|
|
5411
|
-
style:
|
|
5411
|
+
style: Xe({
|
|
5412
5412
|
color: a.field.color,
|
|
5413
5413
|
fontSize: a.field.fontSize ? `${a.field.fontSize}px` : void 0,
|
|
5414
5414
|
fontWeight: a.field.fontWeight,
|
|
@@ -5440,7 +5440,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5440
5440
|
onChange: oe,
|
|
5441
5441
|
onSearch: v[26] || (v[26] = (me) => Q(a.field, me.keyword)),
|
|
5442
5442
|
onAdvancedSelect: v[27] || (v[27] = (me) => ae(a.field)),
|
|
5443
|
-
onDialogSearch: v[28] || (v[28] = (me) =>
|
|
5443
|
+
onDialogSearch: v[28] || (v[28] = (me) => De(a.field, me)),
|
|
5444
5444
|
onDialogPageChange: v[29] || (v[29] = (me) => Oe(a.field, me))
|
|
5445
5445
|
}, null, 8, ["value", "release-id", "relation-field", "search-fields", "form-type", "column-options", "has-page", "page-size", "multiple", "popup-type", "popup-title", "popup-width", "placeholder", "disabled", "clearable", "search-results", "dialog-table-data", "dialog-loading", "dialog-pagination", "cd-form-config"])) : ["organizeSelect", "depSelect", "posSelect", "userSelect", "roleSelect", "groupSelect", "popupSelect", "popupTableSelect"].includes(b.value) ? (l(), o(fe, { key: 32 }, [
|
|
5446
5446
|
L.value ? (l(), o("div", fu, [
|
|
@@ -5479,7 +5479,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5479
5479
|
clearable: a.field.clearable !== !1,
|
|
5480
5480
|
onBlur: X,
|
|
5481
5481
|
onInput: ne,
|
|
5482
|
-
onClear:
|
|
5482
|
+
onClear: C,
|
|
5483
5483
|
onChange: oe
|
|
5484
5484
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"]))
|
|
5485
5485
|
];
|
|
@@ -5495,7 +5495,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5495
5495
|
(l(!0), o(fe, null, be(U.value, (Ce) => (l(), o(fe, {
|
|
5496
5496
|
key: Ce.value
|
|
5497
5497
|
}, [
|
|
5498
|
-
Ce.children && Ce.children.length > 0 ? (l(), j(
|
|
5498
|
+
Ce.children && Ce.children.length > 0 ? (l(), j(nl, {
|
|
5499
5499
|
key: 0,
|
|
5500
5500
|
onClick: E
|
|
5501
5501
|
}, {
|
|
@@ -5513,9 +5513,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5513
5513
|
]),
|
|
5514
5514
|
_: 2
|
|
5515
5515
|
}, 1024),
|
|
5516
|
-
s(
|
|
5516
|
+
s(tl, null, {
|
|
5517
5517
|
default: i(() => [
|
|
5518
|
-
(l(!0), o(fe, null, be(Ce.children.filter((Ee) => Ee.show !== !1), (Ee) => (l(), j(
|
|
5518
|
+
(l(!0), o(fe, null, be(Ce.children.filter((Ee) => Ee.show !== !1), (Ee) => (l(), j(ll, {
|
|
5519
5519
|
key: Ee.value || Math.random(),
|
|
5520
5520
|
value: Ee.value,
|
|
5521
5521
|
disabled: Ee.disabled,
|
|
@@ -5546,7 +5546,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5546
5546
|
], 64))), 128))
|
|
5547
5547
|
])) : Y("", !0)
|
|
5548
5548
|
])) : Y("", !0),
|
|
5549
|
-
s(
|
|
5549
|
+
s(ol, Aa({
|
|
5550
5550
|
ref_key: "vxeGridRef",
|
|
5551
5551
|
ref: c
|
|
5552
5552
|
}, ge.value, {
|
|
@@ -5571,7 +5571,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5571
5571
|
a.field.__config__.showLabel ? (l(), o("div", hu, [
|
|
5572
5572
|
e("span", bu, V(a.field.__config__.label), 1)
|
|
5573
5573
|
])) : Y("", !0),
|
|
5574
|
-
s(
|
|
5574
|
+
s($a, {
|
|
5575
5575
|
gutter: 0,
|
|
5576
5576
|
class: "cd-row",
|
|
5577
5577
|
justify: a.field.justify || "start",
|
|
@@ -5581,13 +5581,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5581
5581
|
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), o(fe, {
|
|
5582
5582
|
key: Ce.__config__.formId
|
|
5583
5583
|
}, [
|
|
5584
|
-
Ce.__config__.noShow ? Y("", !0) : (l(), j(
|
|
5584
|
+
Ce.__config__.noShow ? Y("", !0) : (l(), j(Fa, {
|
|
5585
5585
|
key: 0,
|
|
5586
5586
|
span: Ce.__config__.span,
|
|
5587
5587
|
class: xe(Ce.__config__.className)
|
|
5588
5588
|
}, {
|
|
5589
5589
|
default: i(() => [
|
|
5590
|
-
s(
|
|
5590
|
+
s(ba, {
|
|
5591
5591
|
field: Ce,
|
|
5592
5592
|
"form-model": a.formModel,
|
|
5593
5593
|
"form-conf": a.formConf,
|
|
@@ -5601,7 +5601,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5601
5601
|
]),
|
|
5602
5602
|
_: 1
|
|
5603
5603
|
}, 8, ["justify", "align"])
|
|
5604
|
-
], 2)) : b.value === "divider" ? (l(), j(
|
|
5604
|
+
], 2)) : b.value === "divider" ? (l(), j(il, {
|
|
5605
5605
|
key: 3,
|
|
5606
5606
|
class: xe(a.field.__config__.className),
|
|
5607
5607
|
align: a.field.contentPosition || "center"
|
|
@@ -5615,7 +5615,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5615
5615
|
class: xe(["blank-component", a.field.__config__.className])
|
|
5616
5616
|
}, [
|
|
5617
5617
|
a.field.content ? (l(), o("span", yu, V(a.field.content), 1)) : Y("", !0)
|
|
5618
|
-
], 2)) : b.value === "tab" ? (l(), j(
|
|
5618
|
+
], 2)) : b.value === "tab" ? (l(), j(rl, {
|
|
5619
5619
|
key: 5,
|
|
5620
5620
|
modelValue: y.value,
|
|
5621
5621
|
"onUpdate:modelValue": v[34] || (v[34] = (Ce) => y.value = Ce),
|
|
@@ -5625,13 +5625,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5625
5625
|
size: "medium"
|
|
5626
5626
|
}, {
|
|
5627
5627
|
default: i(() => [
|
|
5628
|
-
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), j(
|
|
5628
|
+
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), j(sl, {
|
|
5629
5629
|
key: Ce.name,
|
|
5630
5630
|
value: Ce.name,
|
|
5631
5631
|
label: Ce.title
|
|
5632
5632
|
}, {
|
|
5633
5633
|
default: i(() => [
|
|
5634
|
-
s(
|
|
5634
|
+
s($a, {
|
|
5635
5635
|
gutter: 0,
|
|
5636
5636
|
class: "cd-row"
|
|
5637
5637
|
}, {
|
|
@@ -5639,13 +5639,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5639
5639
|
(l(!0), o(fe, null, be(Ce.__config__.children, (Ee) => (l(), o(fe, {
|
|
5640
5640
|
key: Ee.__config__.formId
|
|
5641
5641
|
}, [
|
|
5642
|
-
Ee.__config__.noShow ? Y("", !0) : (l(), j(
|
|
5642
|
+
Ee.__config__.noShow ? Y("", !0) : (l(), j(Fa, {
|
|
5643
5643
|
key: 0,
|
|
5644
5644
|
span: Ee.__config__.span,
|
|
5645
5645
|
class: xe(Ee.__config__.className)
|
|
5646
5646
|
}, {
|
|
5647
5647
|
default: i(() => [
|
|
5648
|
-
s(
|
|
5648
|
+
s(ba, {
|
|
5649
5649
|
field: Ee,
|
|
5650
5650
|
"form-model": a.formModel,
|
|
5651
5651
|
"form-conf": a.formConf,
|
|
@@ -5667,7 +5667,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5667
5667
|
}, 8, ["modelValue", "class", "placement", "theme"])) : b.value === "tableGrid" ? (l(), o("div", {
|
|
5668
5668
|
key: 6,
|
|
5669
5669
|
class: xe(["table-grid-container", a.field.__config__.className]),
|
|
5670
|
-
style:
|
|
5670
|
+
style: Xe({
|
|
5671
5671
|
borderWidth: a.field.__config__.borderWidth ? `${a.field.__config__.borderWidth}px` : "1px",
|
|
5672
5672
|
borderStyle: a.field.__config__.borderType || "solid",
|
|
5673
5673
|
borderColor: a.field.__config__.borderColor || "#e5e5e5"
|
|
@@ -5680,27 +5680,27 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5680
5680
|
}, [
|
|
5681
5681
|
(l(!0), o(fe, null, be(Ce.__config__.children, (me, va) => (l(), o("td", {
|
|
5682
5682
|
key: `td-${Ee}-${va}`,
|
|
5683
|
-
style:
|
|
5683
|
+
style: Xe({
|
|
5684
5684
|
backgroundColor: me.__config__.backgroundColor
|
|
5685
5685
|
})
|
|
5686
5686
|
}, [
|
|
5687
5687
|
(l(!0), o(fe, null, be(me.__config__.children, (ua) => (l(), o(fe, {
|
|
5688
5688
|
key: ua.__config__.formId
|
|
5689
5689
|
}, [
|
|
5690
|
-
ua.__config__.noShow ? Y("", !0) : (l(), j(
|
|
5690
|
+
ua.__config__.noShow ? Y("", !0) : (l(), j(ba, {
|
|
5691
5691
|
key: 0,
|
|
5692
5692
|
field: ua,
|
|
5693
5693
|
"form-model": a.formModel,
|
|
5694
5694
|
"form-conf": a.formConf,
|
|
5695
5695
|
disabled: L.value,
|
|
5696
|
-
onChange: v[35] || (v[35] = (
|
|
5696
|
+
onChange: v[35] || (v[35] = (Na, cl) => p.$emit("change", Na, cl))
|
|
5697
5697
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"]))
|
|
5698
5698
|
], 64))), 128))
|
|
5699
5699
|
], 4))), 128))
|
|
5700
5700
|
]))), 128))
|
|
5701
5701
|
])
|
|
5702
5702
|
])
|
|
5703
|
-
], 6)) : b.value === "collapse" ? (l(), j(
|
|
5703
|
+
], 6)) : b.value === "collapse" ? (l(), j(dl, {
|
|
5704
5704
|
key: 7,
|
|
5705
5705
|
modelValue: u.value,
|
|
5706
5706
|
"onUpdate:modelValue": v[37] || (v[37] = (Ce) => u.value = Ce),
|
|
@@ -5710,13 +5710,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5710
5710
|
borderless: a.field.ghost
|
|
5711
5711
|
}, {
|
|
5712
5712
|
default: i(() => [
|
|
5713
|
-
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), j(
|
|
5713
|
+
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), j(Ia, {
|
|
5714
5714
|
key: Ce.name,
|
|
5715
5715
|
value: Ce.name,
|
|
5716
5716
|
header: Ce.title
|
|
5717
5717
|
}, {
|
|
5718
5718
|
default: i(() => [
|
|
5719
|
-
s(
|
|
5719
|
+
s($a, {
|
|
5720
5720
|
gutter: 0,
|
|
5721
5721
|
class: "cd-row"
|
|
5722
5722
|
}, {
|
|
@@ -5724,13 +5724,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5724
5724
|
(l(!0), o(fe, null, be(Ce.__config__.children, (Ee) => (l(), o(fe, {
|
|
5725
5725
|
key: Ee.__config__.formId
|
|
5726
5726
|
}, [
|
|
5727
|
-
Ee.__config__.noShow ? Y("", !0) : (l(), j(
|
|
5727
|
+
Ee.__config__.noShow ? Y("", !0) : (l(), j(Fa, {
|
|
5728
5728
|
key: 0,
|
|
5729
5729
|
span: Ee.__config__.span,
|
|
5730
5730
|
class: xe(Ee.__config__.className)
|
|
5731
5731
|
}, {
|
|
5732
5732
|
default: i(() => [
|
|
5733
|
-
s(
|
|
5733
|
+
s(ba, {
|
|
5734
5734
|
field: Ee,
|
|
5735
5735
|
"form-model": a.formModel,
|
|
5736
5736
|
"form-conf": a.formConf,
|
|
@@ -5755,7 +5755,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5755
5755
|
}, [
|
|
5756
5756
|
a.field.__config__.showLabel !== !1 ? (l(), o("div", ku, [
|
|
5757
5757
|
e("span", Cu, V(a.field.__config__.label), 1),
|
|
5758
|
-
L.value ? Y("", !0) : (l(), j(
|
|
5758
|
+
L.value ? Y("", !0) : (l(), j(Ta, { key: 0 }, {
|
|
5759
5759
|
default: i(() => [
|
|
5760
5760
|
(l(!0), o(fe, null, be(ee.value, (Ce) => (l(), o(fe, {
|
|
5761
5761
|
key: Ce.value
|
|
@@ -5776,7 +5776,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5776
5776
|
A(" " + V(Ce.label), 1)
|
|
5777
5777
|
]),
|
|
5778
5778
|
_: 2
|
|
5779
|
-
}, 1032, ["theme"])) : Ce.showConfirm ? (l(), j(
|
|
5779
|
+
}, 1032, ["theme"])) : Ce.showConfirm ? (l(), j(Oa, {
|
|
5780
5780
|
key: 1,
|
|
5781
5781
|
content: `确定${Ce.label}吗?`,
|
|
5782
5782
|
onConfirm: (Ee) => ia(Ce)
|
|
@@ -5821,7 +5821,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5821
5821
|
_: 1
|
|
5822
5822
|
}))
|
|
5823
5823
|
])) : Y("", !0),
|
|
5824
|
-
s(
|
|
5824
|
+
s(ul, {
|
|
5825
5825
|
data: I.value,
|
|
5826
5826
|
columns: D.value,
|
|
5827
5827
|
bordered: !0,
|
|
@@ -5829,11 +5829,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5829
5829
|
hover: !0,
|
|
5830
5830
|
size: "small",
|
|
5831
5831
|
class: "sub-table"
|
|
5832
|
-
},
|
|
5832
|
+
}, ya({ _: 2 }, [
|
|
5833
5833
|
be(a.field.__config__.children, (Ce) => ({
|
|
5834
5834
|
name: `cell-${Ce.__vModel__}`,
|
|
5835
5835
|
fn: i(({ row: Ee, rowIndex: me }) => [
|
|
5836
|
-
s(
|
|
5836
|
+
s(ba, {
|
|
5837
5837
|
field: Ce,
|
|
5838
5838
|
"form-model": Ee,
|
|
5839
5839
|
"form-conf": a.formConf,
|
|
@@ -5846,12 +5846,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5846
5846
|
L.value ? void 0 : {
|
|
5847
5847
|
name: "cell-action",
|
|
5848
5848
|
fn: i(({ rowIndex: Ce }) => [
|
|
5849
|
-
s(
|
|
5849
|
+
s(Ta, null, {
|
|
5850
5850
|
default: i(() => [
|
|
5851
5851
|
(l(!0), o(fe, null, be(q.value, (Ee) => (l(), o(fe, {
|
|
5852
5852
|
key: Ee.value
|
|
5853
5853
|
}, [
|
|
5854
|
-
Ee.value === "copy" ? (l(), j(
|
|
5854
|
+
Ee.value === "copy" ? (l(), j(ka, {
|
|
5855
5855
|
key: 0,
|
|
5856
5856
|
theme: "primary",
|
|
5857
5857
|
onClick: (me) => ra(Ce)
|
|
@@ -5863,13 +5863,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5863
5863
|
A(" " + V(Ee.label), 1)
|
|
5864
5864
|
]),
|
|
5865
5865
|
_: 2
|
|
5866
|
-
}, 1032, ["onClick"])) : Ee.value === "remove" && Ee.showConfirm ? (l(), j(
|
|
5866
|
+
}, 1032, ["onClick"])) : Ee.value === "remove" && Ee.showConfirm ? (l(), j(Oa, {
|
|
5867
5867
|
key: 1,
|
|
5868
5868
|
content: "确定删除该行吗?",
|
|
5869
|
-
onConfirm: (me) =>
|
|
5869
|
+
onConfirm: (me) => Ue(Ce)
|
|
5870
5870
|
}, {
|
|
5871
5871
|
default: i(() => [
|
|
5872
|
-
s(
|
|
5872
|
+
s(ka, {
|
|
5873
5873
|
theme: Ee.btnType === "error" ? "danger" : "default"
|
|
5874
5874
|
}, {
|
|
5875
5875
|
default: i(() => [
|
|
@@ -5882,10 +5882,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5882
5882
|
}, 1032, ["theme"])
|
|
5883
5883
|
]),
|
|
5884
5884
|
_: 2
|
|
5885
|
-
}, 1032, ["onConfirm"])) : Ee.value === "remove" ? (l(), j(
|
|
5885
|
+
}, 1032, ["onConfirm"])) : Ee.value === "remove" ? (l(), j(ka, {
|
|
5886
5886
|
key: 2,
|
|
5887
5887
|
theme: Ee.btnType === "error" ? "danger" : "default",
|
|
5888
|
-
onClick: (me) =>
|
|
5888
|
+
onClick: (me) => Ue(Ce)
|
|
5889
5889
|
}, {
|
|
5890
5890
|
default: i(() => [
|
|
5891
5891
|
e("i", {
|
|
@@ -5906,7 +5906,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5906
5906
|
], 2)) : Y("", !0);
|
|
5907
5907
|
};
|
|
5908
5908
|
}
|
|
5909
|
-
}), Dl = /* @__PURE__ */
|
|
5909
|
+
}), Dl = /* @__PURE__ */ aa(xu, [["__scopeId", "data-v-158cd013"]]), $u = /* @__PURE__ */ Ke({
|
|
5910
5910
|
__name: "FormRender",
|
|
5911
5911
|
props: {
|
|
5912
5912
|
formConf: {},
|
|
@@ -5918,9 +5918,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5918
5918
|
emits: ["update:modelValue", "field-change", "submit", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
|
|
5919
5919
|
setup(a, { expose: te, emit: n }) {
|
|
5920
5920
|
const y = a, u = n, c = F(), m = F({});
|
|
5921
|
-
|
|
5921
|
+
wa("dynamicFieldOptions", m);
|
|
5922
5922
|
const U = pa({});
|
|
5923
|
-
|
|
5923
|
+
wa("relationFormData", U), xl(() => {
|
|
5924
5924
|
const x = y.relationFormData;
|
|
5925
5925
|
x && typeof x == "object" && Object.keys(x).forEach((b) => {
|
|
5926
5926
|
x[b] !== void 0 && (U[b] = { ...U[b] || {}, ...x[b] });
|
|
@@ -5938,8 +5938,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5938
5938
|
}) : G === "tableGrid" && P.children && Array.isArray(P.children) && P.children.forEach((X) => {
|
|
5939
5939
|
var oe;
|
|
5940
5940
|
(oe = X.__config__) != null && oe.children && Array.isArray(X.__config__.children) && X.__config__.children.forEach((ne) => {
|
|
5941
|
-
var
|
|
5942
|
-
(
|
|
5941
|
+
var C;
|
|
5942
|
+
(C = ne.__config__) != null && C.children && Array.isArray(ne.__config__.children) && r(ne.__config__.children, b);
|
|
5943
5943
|
});
|
|
5944
5944
|
});
|
|
5945
5945
|
});
|
|
@@ -5993,24 +5993,24 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5993
5993
|
if (b && typeof b == "object") {
|
|
5994
5994
|
let oe = null;
|
|
5995
5995
|
if (Array.isArray(b)) {
|
|
5996
|
-
const ne = b.map((
|
|
5996
|
+
const ne = b.map((C) => typeof C == "object" && C !== null ? C[X] : C).filter((C) => C != null);
|
|
5997
5997
|
if (z.aggregation) {
|
|
5998
|
-
const
|
|
5998
|
+
const C = ne.map((B) => parseFloat(B)).filter((B) => !isNaN(B));
|
|
5999
5999
|
switch (z.aggregation) {
|
|
6000
6000
|
case "sum":
|
|
6001
|
-
oe =
|
|
6001
|
+
oe = C.reduce((B, le) => B + le, 0);
|
|
6002
6002
|
break;
|
|
6003
6003
|
case "average":
|
|
6004
|
-
oe =
|
|
6004
|
+
oe = C.length > 0 ? C.reduce((B, le) => B + le, 0) / C.length : null;
|
|
6005
6005
|
break;
|
|
6006
6006
|
case "round":
|
|
6007
|
-
oe =
|
|
6007
|
+
oe = C.length > 0 ? Math.round(C.reduce((B, le) => B + le, 0) / C.length) : null;
|
|
6008
6008
|
break;
|
|
6009
6009
|
case "floor":
|
|
6010
|
-
oe =
|
|
6010
|
+
oe = C.length > 0 ? Math.floor(C.reduce((B, le) => B + le, 0) / C.length) : null;
|
|
6011
6011
|
break;
|
|
6012
6012
|
case "ceiling":
|
|
6013
|
-
oe =
|
|
6013
|
+
oe = C.length > 0 ? Math.ceil(C.reduce((B, le) => B + le, 0) / C.length) : null;
|
|
6014
6014
|
break;
|
|
6015
6015
|
default:
|
|
6016
6016
|
oe = ne.join(", ");
|
|
@@ -6044,12 +6044,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6044
6044
|
const oe = {
|
|
6045
6045
|
data: z,
|
|
6046
6046
|
formData: _,
|
|
6047
|
-
setFormData: (
|
|
6048
|
-
setShowOrHide: (
|
|
6047
|
+
setFormData: (C) => Object.assign(_, C),
|
|
6048
|
+
setShowOrHide: (C, B) => {
|
|
6049
6049
|
},
|
|
6050
|
-
setRequired: (
|
|
6050
|
+
setRequired: (C, B) => {
|
|
6051
6051
|
},
|
|
6052
|
-
setDisabled: (
|
|
6052
|
+
setDisabled: (C, B) => {
|
|
6053
6053
|
},
|
|
6054
6054
|
onlineUtils: {}
|
|
6055
6055
|
};
|
|
@@ -6106,7 +6106,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6106
6106
|
}, de = () => ({ ..._ }), ue = (x) => {
|
|
6107
6107
|
Object.assign(_, x), u("update:modelValue", { ..._ });
|
|
6108
6108
|
};
|
|
6109
|
-
|
|
6109
|
+
Fe(
|
|
6110
6110
|
() => y.modelValue,
|
|
6111
6111
|
(x) => {
|
|
6112
6112
|
x && Object.keys(x).length > 0 && Object.assign(_, x);
|
|
@@ -6116,17 +6116,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6116
6116
|
const L = async () => {
|
|
6117
6117
|
var x;
|
|
6118
6118
|
(x = y.fields) != null && x.length && r(y.fields, async (b) => {
|
|
6119
|
-
var ne,
|
|
6119
|
+
var ne, C;
|
|
6120
6120
|
if (((ne = b.__config__) == null ? void 0 : ne.cdkey) !== "treeSelect") return;
|
|
6121
6121
|
const P = b.releaseId;
|
|
6122
6122
|
if (!P || Array.isArray(b.options) && b.options.length > 0) return;
|
|
6123
6123
|
const G = b.parentField || "FPARENTID", X = b.valueField || "fid", oe = b.labelField || "FNAME";
|
|
6124
6124
|
try {
|
|
6125
|
-
const _e = ((
|
|
6125
|
+
const _e = ((C = (await (await fetch(`/api/visualdev/OnlineDev/list/${P}`, {
|
|
6126
6126
|
method: "POST",
|
|
6127
6127
|
headers: { "Content-Type": "application/json", Authorization: "Bearer token" },
|
|
6128
6128
|
body: JSON.stringify({ currentPage: 1, pageSize: 9999 })
|
|
6129
|
-
})).json()).data) == null ? void 0 :
|
|
6129
|
+
})).json()).data) == null ? void 0 : C.list) || [], we = /* @__PURE__ */ new Map(), qe = [];
|
|
6130
6130
|
for (const Be of _e) {
|
|
6131
6131
|
const ce = {
|
|
6132
6132
|
value: Be[X],
|
|
@@ -6150,9 +6150,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6150
6150
|
}
|
|
6151
6151
|
});
|
|
6152
6152
|
};
|
|
6153
|
-
return
|
|
6153
|
+
return Fe(() => y.fields, (x) => {
|
|
6154
6154
|
x != null && x.length && L();
|
|
6155
|
-
}, { immediate: !0 }),
|
|
6155
|
+
}, { immediate: !0 }), Da(() => {
|
|
6156
6156
|
var x;
|
|
6157
6157
|
if ((x = y.formConf.funcs) != null && x.onLoad)
|
|
6158
6158
|
try {
|
|
@@ -6181,7 +6181,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6181
6181
|
getFormData: de,
|
|
6182
6182
|
setFormData: ue,
|
|
6183
6183
|
initFormData: g
|
|
6184
|
-
}),
|
|
6184
|
+
}), wa("formModel", _), wa("formConf", y.formConf), (x, b) => {
|
|
6185
6185
|
const z = M("t-row"), P = M("t-form");
|
|
6186
6186
|
return l(), j(P, {
|
|
6187
6187
|
ref_key: "formRef",
|
|
@@ -6205,7 +6205,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6205
6205
|
return l(), o(fe, {
|
|
6206
6206
|
key: ((oe = G.__config__) == null ? void 0 : oe.formId) || G.__vModel__ || X
|
|
6207
6207
|
}, [
|
|
6208
|
-
!G.__config__.noShow && D(G) ? (l(), j(
|
|
6208
|
+
!G.__config__.noShow && D(G) ? (l(), j(Fa, {
|
|
6209
6209
|
key: 0,
|
|
6210
6210
|
span: G.__config__.span,
|
|
6211
6211
|
class: xe(G.__config__.className)
|
|
@@ -6237,7 +6237,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6237
6237
|
}, 8, ["model", "rules", "label-width", "label-align", "colon", "size", "disabled"]);
|
|
6238
6238
|
};
|
|
6239
6239
|
}
|
|
6240
|
-
}), Al = /* @__PURE__ */
|
|
6240
|
+
}), Al = /* @__PURE__ */ aa($u, [["__scopeId", "data-v-5992081b"]]), Vu = [
|
|
6241
6241
|
{
|
|
6242
6242
|
name: "北京市",
|
|
6243
6243
|
city: [{
|
|
@@ -11764,7 +11764,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11764
11764
|
}
|
|
11765
11765
|
]
|
|
11766
11766
|
}
|
|
11767
|
-
], Su = { class: "filter-component" }, Mu = /* @__PURE__ */
|
|
11767
|
+
], Su = { class: "filter-component" }, Mu = /* @__PURE__ */ Ke({
|
|
11768
11768
|
__name: "FilterComponent",
|
|
11769
11769
|
props: {
|
|
11770
11770
|
fieldOptions: {},
|
|
@@ -11831,7 +11831,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11831
11831
|
operator: ((y = r.filterCondition) == null ? void 0 : y.operator) || "eq",
|
|
11832
11832
|
value: ((u = r.filterCondition) == null ? void 0 : u.value) || null
|
|
11833
11833
|
});
|
|
11834
|
-
|
|
11834
|
+
Fe(() => r.filterCondition, (E) => {
|
|
11835
11835
|
E && (D.value = { ...E });
|
|
11836
11836
|
}, { deep: !0 });
|
|
11837
11837
|
const q = (E) => {
|
|
@@ -11933,7 +11933,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11933
11933
|
I("search", { ...r.filterCondition });
|
|
11934
11934
|
});
|
|
11935
11935
|
};
|
|
11936
|
-
return
|
|
11936
|
+
return Fe(() => r.filterCondition.field, (E, W) => {
|
|
11937
11937
|
E && W && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
|
|
11938
11938
|
}), (E, W) => {
|
|
11939
11939
|
var d;
|
|
@@ -12057,12 +12057,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12057
12057
|
]);
|
|
12058
12058
|
};
|
|
12059
12059
|
}
|
|
12060
|
-
}),
|
|
12060
|
+
}), Ua = (a, te) => {
|
|
12061
12061
|
const n = a.__vccOpts || a;
|
|
12062
12062
|
for (const [y, u] of te)
|
|
12063
12063
|
n[y] = u;
|
|
12064
12064
|
return n;
|
|
12065
|
-
}, Ul = /* @__PURE__ */
|
|
12065
|
+
}, Ul = /* @__PURE__ */ Ua(Mu, [["__scopeId", "data-v-d96560aa"]]), zu = { class: "save-plan-content" }, Fu = {
|
|
12066
12066
|
__name: "SavePlanDialog",
|
|
12067
12067
|
props: {
|
|
12068
12068
|
visible: {
|
|
@@ -12115,9 +12115,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12115
12115
|
shareType: "specific",
|
|
12116
12116
|
selectedUsers: []
|
|
12117
12117
|
}), c = F([]), m = F([]), U = ve(() => n.isEditing && n.originalShareMode === "copy");
|
|
12118
|
-
|
|
12118
|
+
Fe(() => n.visible, (N) => {
|
|
12119
12119
|
N ? n.isEditing && n.planName && (u.value.planName = n.planName, u.value.shareMode = n.originalShareMode || "none", u.value.shareType = n.originalShareType || "specific", n.originalSelectedUsers && n.originalSelectedUsers.length > 0 && (u.value.selectedUsers = [...n.originalSelectedUsers])) : _();
|
|
12120
|
-
}),
|
|
12120
|
+
}), Fe(() => n.deptMembersDataProp, (N) => {
|
|
12121
12121
|
N && (m.value = N);
|
|
12122
12122
|
});
|
|
12123
12123
|
const _ = () => {
|
|
@@ -12272,7 +12272,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12272
12272
|
label: "共享人员"
|
|
12273
12273
|
}, {
|
|
12274
12274
|
default: i(() => [
|
|
12275
|
-
s(ca(
|
|
12275
|
+
s(ca(pl), {
|
|
12276
12276
|
users: c.value,
|
|
12277
12277
|
"avatar-size": 32,
|
|
12278
12278
|
"max-display": 10,
|
|
@@ -12317,7 +12317,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12317
12317
|
}, 8, ["header", "visible"]);
|
|
12318
12318
|
};
|
|
12319
12319
|
}
|
|
12320
|
-
}, Du = /* @__PURE__ */
|
|
12320
|
+
}, Du = /* @__PURE__ */ Ua(Fu, [["__scopeId", "data-v-7fd313f0"]]), Au = { class: "filter-dialog-content" }, Uu = { class: "leader-line-container" }, Ru = {
|
|
12321
12321
|
class: "filter-scroll-wrapper",
|
|
12322
12322
|
id: "filter-scroll-wrapper"
|
|
12323
12323
|
}, Eu = {
|
|
@@ -12401,9 +12401,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12401
12401
|
setup(a, { emit: te }) {
|
|
12402
12402
|
const n = a, y = te, u = F(JSON.parse(JSON.stringify(n.filterCards))), c = F(n.topOp), m = F(null), U = F(!1), _ = F([]), w = F("filter"), r = F(!1), I = F(""), D = F("none"), q = F("specific"), ee = F([]), N = F(null);
|
|
12403
12403
|
let J = 100;
|
|
12404
|
-
|
|
12404
|
+
Fe(() => n.filterCards, (Q) => {
|
|
12405
12405
|
u.value = JSON.parse(JSON.stringify(Q));
|
|
12406
|
-
}, { deep: !0 }),
|
|
12406
|
+
}, { deep: !0 }), Fe(() => n.topOp, (Q) => {
|
|
12407
12407
|
c.value = Q;
|
|
12408
12408
|
});
|
|
12409
12409
|
const ge = () => {
|
|
@@ -12422,11 +12422,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12422
12422
|
});
|
|
12423
12423
|
}, W = (Q, ae) => {
|
|
12424
12424
|
if (Q >= 0 && Q < u.value.length) {
|
|
12425
|
-
const
|
|
12426
|
-
|
|
12425
|
+
const De = u.value[Q];
|
|
12426
|
+
De.conditions.length > 1 && ae >= 0 && ae < De.conditions.length ? De.conditions.splice(ae, 1) : De.conditions.length <= 1 && Ie.warning("每个卡片至少需要一个筛选条件");
|
|
12427
12427
|
}
|
|
12428
12428
|
}, d = (Q) => Q.map((ae) => {
|
|
12429
|
-
const
|
|
12429
|
+
const De = ae.conditions.filter((Oe) => Oe.field && Oe.field.trim() !== "").map((Oe) => {
|
|
12430
12430
|
let Ve = "";
|
|
12431
12431
|
return Oe.value !== null && Oe.value !== void 0 && (Array.isArray(Oe.value) ? Ve = Oe.value.join("/") : Ve = String(Oe.value)), {
|
|
12432
12432
|
field: Oe.field.trim(),
|
|
@@ -12437,30 +12437,30 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12437
12437
|
return {
|
|
12438
12438
|
...ae,
|
|
12439
12439
|
connector: ae.connector || "and",
|
|
12440
|
-
conditions:
|
|
12440
|
+
conditions: De.length > 0 ? De : [{ field: "", operator: "eq", value: "" }]
|
|
12441
12441
|
};
|
|
12442
12442
|
}).filter((ae) => ae.conditions.length > 0 && ae.conditions[0].field !== ""), S = (Q) => {
|
|
12443
12443
|
if (Q.value !== "empty" && (m.value = Q, y("plan-click", Q), Q.precepts && (u.value = JSON.parse(JSON.stringify(Q.precepts))), Q.sqlConnectType && (c.value = Q.sqlConnectType), Q.columns && Q.columns.length > 0)) {
|
|
12444
|
-
|
|
12445
|
-
|
|
12444
|
+
C.value = {}, B.value = {}, oe.value = Q.columns.filter((Ue) => Ue.show !== !1).map((Ue) => Ue.value), Q.columns.forEach((Ue) => {
|
|
12445
|
+
Ue.width && (C.value[Ue.value] = parseInt(Ue.width)), Ue.fixed ? B.value[Ue.value] = Ue.fixed : B.value[Ue.value] = "none";
|
|
12446
12446
|
});
|
|
12447
|
-
const ae = Q.columns.map((
|
|
12448
|
-
(
|
|
12447
|
+
const ae = Q.columns.map((Ue) => Ue.value), De = ae.map(
|
|
12448
|
+
(Ue) => n.fieldOptions.find((ra) => ra.value === Ue)
|
|
12449
12449
|
).filter(Boolean), Oe = n.fieldOptions.filter(
|
|
12450
|
-
(
|
|
12450
|
+
(Ue) => !ae.includes(Ue.value)
|
|
12451
12451
|
);
|
|
12452
|
-
le.value = [...
|
|
12453
|
-
const Ve = Q.columns.filter((
|
|
12452
|
+
le.value = [...De, ...Oe], ne.value = oe.value.length === n.fieldOptions.length;
|
|
12453
|
+
const Ve = Q.columns.filter((Ue) => Ue.show !== !1);
|
|
12454
12454
|
y("column-change", Ve);
|
|
12455
12455
|
}
|
|
12456
12456
|
}, g = () => {
|
|
12457
12457
|
r.value = !1, N.value = null, I.value = "", D.value = "none", q.value = "specific", ee.value = [], U.value = !0;
|
|
12458
12458
|
}, R = (Q) => {
|
|
12459
|
-
const ae = le.value.map((
|
|
12460
|
-
const Oe =
|
|
12459
|
+
const ae = le.value.map((De) => {
|
|
12460
|
+
const Oe = C.value[De.value], Ve = B.value[De.value] || "none";
|
|
12461
12461
|
return {
|
|
12462
|
-
value:
|
|
12463
|
-
show: oe.value.includes(
|
|
12462
|
+
value: De.value,
|
|
12463
|
+
show: oe.value.includes(De.value),
|
|
12464
12464
|
// 是否显示
|
|
12465
12465
|
width: Oe ? `${Oe}px` : "120px",
|
|
12466
12466
|
fixed: Ve
|
|
@@ -12517,42 +12517,42 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12517
12517
|
y("dept-click", { dept: Q, callback: (ae) => {
|
|
12518
12518
|
_.value = ae;
|
|
12519
12519
|
} });
|
|
12520
|
-
}, oe = F([]), ne = F(!1),
|
|
12521
|
-
|
|
12522
|
-
if (
|
|
12520
|
+
}, oe = F([]), ne = F(!1), C = F({}), B = F({}), le = F([]), _e = F(null), we = F(null);
|
|
12521
|
+
Fe(() => n.visibleColumns, (Q) => {
|
|
12522
|
+
if (C.value = {}, B.value = {}, Q && Q.length > 0) {
|
|
12523
12523
|
if (typeof Q[0] == "object") {
|
|
12524
12524
|
oe.value = Q.filter((Ve) => Ve.show !== !1).map((Ve) => Ve.value), Q.forEach((Ve) => {
|
|
12525
|
-
Ve.width && (
|
|
12525
|
+
Ve.width && (C.value[Ve.value] = parseInt(Ve.width)), Ve.fixed ? B.value[Ve.value] = Ve.fixed : B.value[Ve.value] = "none";
|
|
12526
12526
|
});
|
|
12527
|
-
const ae = Q.map((Ve) => Ve.value),
|
|
12528
|
-
(Ve) => n.fieldOptions.find((
|
|
12527
|
+
const ae = Q.map((Ve) => Ve.value), De = ae.map(
|
|
12528
|
+
(Ve) => n.fieldOptions.find((Ue) => Ue.value === Ve)
|
|
12529
12529
|
).filter(Boolean), Oe = n.fieldOptions.filter(
|
|
12530
12530
|
(Ve) => !ae.includes(Ve.value)
|
|
12531
12531
|
);
|
|
12532
|
-
le.value = [...
|
|
12532
|
+
le.value = [...De, ...Oe];
|
|
12533
12533
|
} else {
|
|
12534
12534
|
oe.value = [...Q];
|
|
12535
12535
|
const ae = Q.map(
|
|
12536
12536
|
(Oe) => n.fieldOptions.find((Ve) => Ve.value === Oe)
|
|
12537
|
-
).filter(Boolean),
|
|
12537
|
+
).filter(Boolean), De = n.fieldOptions.filter(
|
|
12538
12538
|
(Oe) => !Q.includes(Oe.value)
|
|
12539
12539
|
);
|
|
12540
|
-
le.value = [...ae, ...
|
|
12540
|
+
le.value = [...ae, ...De];
|
|
12541
12541
|
}
|
|
12542
12542
|
ne.value = oe.value.length === n.fieldOptions.length;
|
|
12543
12543
|
} else n.fieldOptions.length > 0 && (oe.value = n.fieldOptions.map((ae) => ae.value), le.value = [...n.fieldOptions], ne.value = !0);
|
|
12544
12544
|
n.fieldOptions.forEach((ae) => {
|
|
12545
12545
|
B.value[ae.value] || (B.value[ae.value] = "none");
|
|
12546
12546
|
});
|
|
12547
|
-
}, { immediate: !0 }),
|
|
12547
|
+
}, { immediate: !0 }), Fe(() => n.fieldOptions, (Q) => {
|
|
12548
12548
|
le.value.length || (le.value = [...Q]);
|
|
12549
12549
|
}, { immediate: !0 });
|
|
12550
12550
|
const qe = (Q, ae) => {
|
|
12551
12551
|
if (ae)
|
|
12552
12552
|
oe.value.includes(Q) || oe.value.push(Q);
|
|
12553
12553
|
else {
|
|
12554
|
-
const
|
|
12555
|
-
|
|
12554
|
+
const De = oe.value.indexOf(Q);
|
|
12555
|
+
De > -1 && oe.value.splice(De, 1);
|
|
12556
12556
|
}
|
|
12557
12557
|
ne.value = oe.value.length === n.fieldOptions.length;
|
|
12558
12558
|
}, ke = (Q) => {
|
|
@@ -12575,19 +12575,19 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12575
12575
|
_e.value = null, we.value = null;
|
|
12576
12576
|
}, We = (Q, ae) => {
|
|
12577
12577
|
ae.preventDefault();
|
|
12578
|
-
const
|
|
12579
|
-
if (
|
|
12578
|
+
const De = _e.value;
|
|
12579
|
+
if (De === null || De === Q)
|
|
12580
12580
|
return;
|
|
12581
|
-
const Oe = [...le.value], Ve = Oe[
|
|
12582
|
-
Oe.splice(
|
|
12581
|
+
const Oe = [...le.value], Ve = Oe[De];
|
|
12582
|
+
Oe.splice(De, 1), Oe.splice(Q, 0, Ve), le.value = Oe, _e.value = null, we.value = null;
|
|
12583
12583
|
}, ye = () => {
|
|
12584
12584
|
const Q = le.value.filter((ae) => oe.value.includes(ae.value)).map((ae) => {
|
|
12585
|
-
const
|
|
12585
|
+
const De = C.value[ae.value], Oe = B.value[ae.value] || "none";
|
|
12586
12586
|
return {
|
|
12587
12587
|
value: ae.value,
|
|
12588
12588
|
show: !0,
|
|
12589
12589
|
// 已通过filter筛选,都是显示的
|
|
12590
|
-
width:
|
|
12590
|
+
width: De ? `${De}px` : "120px",
|
|
12591
12591
|
// 没有设置宽度时使用默认值120px
|
|
12592
12592
|
fixed: Oe
|
|
12593
12593
|
// 冻结状态
|
|
@@ -12596,7 +12596,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12596
12596
|
y("column-change", Q);
|
|
12597
12597
|
};
|
|
12598
12598
|
return (Q, ae) => {
|
|
12599
|
-
const
|
|
12599
|
+
const De = M("t-radio-button"), Oe = M("t-radio-group"), Ve = M("t-icon"), Ue = M("t-button"), ra = M("t-tab-panel"), re = M("t-checkbox"), ia = M("t-option"), Me = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
|
|
12600
12600
|
return l(), o(fe, null, [
|
|
12601
12601
|
s(da, {
|
|
12602
12602
|
header: "方案设置",
|
|
@@ -12635,13 +12635,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12635
12635
|
"onUpdate:modelValue": ae[0] || (ae[0] = (p) => c.value = p)
|
|
12636
12636
|
}, {
|
|
12637
12637
|
default: i(() => [
|
|
12638
|
-
s(
|
|
12638
|
+
s(De, { value: "and" }, {
|
|
12639
12639
|
default: i(() => [...ae[6] || (ae[6] = [
|
|
12640
12640
|
A("且", -1)
|
|
12641
12641
|
])]),
|
|
12642
12642
|
_: 1
|
|
12643
12643
|
}),
|
|
12644
|
-
s(
|
|
12644
|
+
s(De, { value: "or" }, {
|
|
12645
12645
|
default: i(() => [...ae[7] || (ae[7] = [
|
|
12646
12646
|
A("或", -1)
|
|
12647
12647
|
])]),
|
|
@@ -12667,13 +12667,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12667
12667
|
class: "connector-selector"
|
|
12668
12668
|
}, {
|
|
12669
12669
|
default: i(() => [
|
|
12670
|
-
s(
|
|
12670
|
+
s(De, { value: "and" }, {
|
|
12671
12671
|
default: i(() => [...ae[8] || (ae[8] = [
|
|
12672
12672
|
A("且", -1)
|
|
12673
12673
|
])]),
|
|
12674
12674
|
_: 1
|
|
12675
12675
|
}),
|
|
12676
|
-
s(
|
|
12676
|
+
s(De, { value: "or" }, {
|
|
12677
12677
|
default: i(() => [...ae[9] || (ae[9] = [
|
|
12678
12678
|
A("或", -1)
|
|
12679
12679
|
])]),
|
|
@@ -12683,7 +12683,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12683
12683
|
_: 1
|
|
12684
12684
|
}, 8, ["size", "modelValue", "onUpdate:modelValue"])
|
|
12685
12685
|
]),
|
|
12686
|
-
s(
|
|
12686
|
+
s(Ue, {
|
|
12687
12687
|
theme: "default",
|
|
12688
12688
|
variant: "text",
|
|
12689
12689
|
size: a.size,
|
|
@@ -12707,11 +12707,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12707
12707
|
"select-options": a.selectOptions,
|
|
12708
12708
|
size: a.size
|
|
12709
12709
|
}, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
|
|
12710
|
-
s(
|
|
12710
|
+
s(Ue, {
|
|
12711
12711
|
theme: "default",
|
|
12712
12712
|
variant: "text",
|
|
12713
12713
|
size: a.size,
|
|
12714
|
-
onClick: (
|
|
12714
|
+
onClick: (Ae) => W(v, Te),
|
|
12715
12715
|
disabled: p.conditions.length === 1
|
|
12716
12716
|
}, {
|
|
12717
12717
|
icon: i(() => [
|
|
@@ -12721,7 +12721,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12721
12721
|
}, 8, ["size", "onClick", "disabled"])
|
|
12722
12722
|
]))), 128)),
|
|
12723
12723
|
e("div", ju, [
|
|
12724
|
-
s(
|
|
12724
|
+
s(Ue, {
|
|
12725
12725
|
theme: "default",
|
|
12726
12726
|
size: a.size,
|
|
12727
12727
|
onClick: (ie) => E(v)
|
|
@@ -12820,8 +12820,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12820
12820
|
]),
|
|
12821
12821
|
e("div", ec, [
|
|
12822
12822
|
s(sa, {
|
|
12823
|
-
modelValue:
|
|
12824
|
-
"onUpdate:modelValue": (ie) =>
|
|
12823
|
+
modelValue: C.value[p.value],
|
|
12824
|
+
"onUpdate:modelValue": (ie) => C.value[p.value] = ie,
|
|
12825
12825
|
min: 50,
|
|
12826
12826
|
max: 500,
|
|
12827
12827
|
step: 10,
|
|
@@ -12831,7 +12831,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12831
12831
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
12832
12832
|
]),
|
|
12833
12833
|
e("div", ac, [
|
|
12834
|
-
s(
|
|
12834
|
+
s(Ue, {
|
|
12835
12835
|
theme: "default",
|
|
12836
12836
|
variant: "text",
|
|
12837
12837
|
size: "small",
|
|
@@ -12846,7 +12846,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12846
12846
|
]),
|
|
12847
12847
|
_: 1
|
|
12848
12848
|
}, 8, ["onClick", "disabled"]),
|
|
12849
|
-
s(
|
|
12849
|
+
s(Ue, {
|
|
12850
12850
|
theme: "default",
|
|
12851
12851
|
variant: "text",
|
|
12852
12852
|
size: "small",
|
|
@@ -12897,7 +12897,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12897
12897
|
placement: "top"
|
|
12898
12898
|
}, {
|
|
12899
12899
|
default: i(() => [
|
|
12900
|
-
s(
|
|
12900
|
+
s(Ue, {
|
|
12901
12901
|
theme: "default",
|
|
12902
12902
|
variant: "text",
|
|
12903
12903
|
size: "small",
|
|
@@ -12920,7 +12920,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12920
12920
|
placement: "top"
|
|
12921
12921
|
}, {
|
|
12922
12922
|
default: i(() => [
|
|
12923
|
-
s(
|
|
12923
|
+
s(Ue, {
|
|
12924
12924
|
theme: "default",
|
|
12925
12925
|
variant: "text",
|
|
12926
12926
|
size: "small",
|
|
@@ -12930,7 +12930,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12930
12930
|
icon: i(() => [
|
|
12931
12931
|
s(Ve, {
|
|
12932
12932
|
name: p.isDefault ? "check-circle-filled" : "check-circle",
|
|
12933
|
-
style:
|
|
12933
|
+
style: Xe({ color: p.isDefault ? "#0052d9" : "#bbb" })
|
|
12934
12934
|
}, null, 8, ["name", "style"])
|
|
12935
12935
|
]),
|
|
12936
12936
|
_: 2
|
|
@@ -12943,7 +12943,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12943
12943
|
placement: "top"
|
|
12944
12944
|
}, {
|
|
12945
12945
|
default: i(() => [
|
|
12946
|
-
s(
|
|
12946
|
+
s(Ue, {
|
|
12947
12947
|
theme: "default",
|
|
12948
12948
|
variant: "text",
|
|
12949
12949
|
size: "small",
|
|
@@ -12966,7 +12966,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12966
12966
|
placement: "top"
|
|
12967
12967
|
}, {
|
|
12968
12968
|
default: i(() => [
|
|
12969
|
-
s(
|
|
12969
|
+
s(Ue, {
|
|
12970
12970
|
theme: "default",
|
|
12971
12971
|
variant: "text",
|
|
12972
12972
|
size: "small",
|
|
@@ -12996,7 +12996,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12996
12996
|
footer: i(() => [
|
|
12997
12997
|
e("div", ic, [
|
|
12998
12998
|
e("div", sc, [
|
|
12999
|
-
s(
|
|
12999
|
+
s(Ue, {
|
|
13000
13000
|
theme: "warning",
|
|
13001
13001
|
size: a.size,
|
|
13002
13002
|
onClick: g
|
|
@@ -13011,7 +13011,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13011
13011
|
}, 8, ["size"])
|
|
13012
13012
|
]),
|
|
13013
13013
|
e("div", rc, [
|
|
13014
|
-
s(
|
|
13014
|
+
s(Ue, {
|
|
13015
13015
|
theme: "default",
|
|
13016
13016
|
size: a.size,
|
|
13017
13017
|
onClick: x
|
|
@@ -13021,7 +13021,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13021
13021
|
])]),
|
|
13022
13022
|
_: 1
|
|
13023
13023
|
}, 8, ["size"]),
|
|
13024
|
-
s(
|
|
13024
|
+
s(Ue, {
|
|
13025
13025
|
theme: "primary",
|
|
13026
13026
|
size: a.size,
|
|
13027
13027
|
onClick: b
|
|
@@ -13055,7 +13055,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13055
13055
|
], 64);
|
|
13056
13056
|
};
|
|
13057
13057
|
}
|
|
13058
|
-
}, uc = /* @__PURE__ */
|
|
13058
|
+
}, uc = /* @__PURE__ */ Ua(dc, [["__scopeId", "data-v-586daf19"]]), cc = { class: "dialog-header" }, fc = { class: "color-filter-dialog" }, mc = { class: "color-filter-rules" }, vc = { class: "rule-content" }, pc = { class: "rule-color-section" }, gc = { class: "color-block-wrapper" }, hc = {
|
|
13059
13059
|
key: 0,
|
|
13060
13060
|
class: "bold-indicator"
|
|
13061
13061
|
}, bc = { class: "color-picker-panel" }, yc = { class: "preset-colors" }, _c = ["onClick"], kc = { class: "bold-option" }, Cc = { class: "apply-to-section" }, wc = { class: "rule-condition" }, xc = { class: "dialog-footer" }, $c = {
|
|
@@ -13126,12 +13126,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13126
13126
|
applyTo: "cell"
|
|
13127
13127
|
}
|
|
13128
13128
|
]);
|
|
13129
|
-
|
|
13129
|
+
Fe(() => n.visible, (ge) => {
|
|
13130
13130
|
u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((H) => ({
|
|
13131
13131
|
...H,
|
|
13132
13132
|
showColorPicker: !1
|
|
13133
13133
|
})));
|
|
13134
|
-
}),
|
|
13134
|
+
}), Fe(u, (ge) => {
|
|
13135
13135
|
y("update:visible", ge);
|
|
13136
13136
|
});
|
|
13137
13137
|
const w = (ge, H) => {
|
|
@@ -13226,7 +13226,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13226
13226
|
(l(), o(fe, null, be(c, (b) => e("div", {
|
|
13227
13227
|
key: b,
|
|
13228
13228
|
class: xe(["preset-color-item", { active: L.backgroundColor === b }]),
|
|
13229
|
-
style:
|
|
13229
|
+
style: Xe({ backgroundColor: b }),
|
|
13230
13230
|
onClick: (z) => w(x, b)
|
|
13231
13231
|
}, null, 14, _c)), 64))
|
|
13232
13232
|
]),
|
|
@@ -13247,7 +13247,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13247
13247
|
e("div", gc, [
|
|
13248
13248
|
e("div", {
|
|
13249
13249
|
class: "color-block",
|
|
13250
|
-
style:
|
|
13250
|
+
style: Xe({ backgroundColor: L.backgroundColor })
|
|
13251
13251
|
}, [
|
|
13252
13252
|
L.isBold ? (l(), o("span", hc, "B")) : Y("", !0)
|
|
13253
13253
|
], 4)
|
|
@@ -13383,7 +13383,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13383
13383
|
}, 8, ["visible"]);
|
|
13384
13384
|
};
|
|
13385
13385
|
}
|
|
13386
|
-
}, Vc = /* @__PURE__ */
|
|
13386
|
+
}, Vc = /* @__PURE__ */ Ua($c, [["__scopeId", "data-v-822b291e"]]), Sc = { class: "cd-filter-bar" }, Mc = {
|
|
13387
13387
|
key: 0,
|
|
13388
13388
|
class: "inline-filter-toolbar"
|
|
13389
13389
|
}, zc = {
|
|
@@ -13438,12 +13438,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13438
13438
|
setup(a, { emit: te }) {
|
|
13439
13439
|
const n = a, y = te, u = F([]), c = () => ({ field: "", operator: "eq", value: "" });
|
|
13440
13440
|
(() => {
|
|
13441
|
-
var
|
|
13441
|
+
var C, B;
|
|
13442
13442
|
if (n.filterCount === 0) {
|
|
13443
13443
|
u.value = [];
|
|
13444
13444
|
return;
|
|
13445
13445
|
}
|
|
13446
|
-
const le = ((B = (
|
|
13446
|
+
const le = ((B = (C = n.filterCards) == null ? void 0 : C[0]) == null ? void 0 : B.conditions) || [];
|
|
13447
13447
|
u.value = Array.from({ length: n.filterCount }, (_e, we) => le[we] ? JSON.parse(JSON.stringify(le[we])) : c());
|
|
13448
13448
|
})();
|
|
13449
13449
|
const m = () => {
|
|
@@ -13453,19 +13453,19 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13453
13453
|
}
|
|
13454
13454
|
u.value = Array.from({ length: n.filterCount }, () => c());
|
|
13455
13455
|
}, U = F("保存筛选方案"), _ = F(!1), w = F(n.topOp), r = F(JSON.parse(JSON.stringify(n.filterCards)));
|
|
13456
|
-
|
|
13457
|
-
const I = F(null), D = F(""), q = ve(() => n.planFilterOptions && n.planFilterOptions.length > 0 ? n.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), ee = (
|
|
13458
|
-
const B = n.planFilterOptions.find((le) => le.value ===
|
|
13456
|
+
Fe(() => n.topOp, (C) => w.value = C), Fe(() => n.filterCards, (C) => r.value = JSON.parse(JSON.stringify(C)));
|
|
13457
|
+
const I = F(null), D = F(""), q = ve(() => n.planFilterOptions && n.planFilterOptions.length > 0 ? n.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), ee = (C) => {
|
|
13458
|
+
const B = n.planFilterOptions.find((le) => le.value === C);
|
|
13459
13459
|
B && N(B);
|
|
13460
|
-
}, N = (
|
|
13461
|
-
if (!
|
|
13462
|
-
if (I.value =
|
|
13463
|
-
const _e =
|
|
13460
|
+
}, N = (C) => {
|
|
13461
|
+
if (!C.precepts || C.precepts.length === 0) return;
|
|
13462
|
+
if (I.value = C, D.value = C.value, r.value = JSON.parse(JSON.stringify(C.precepts)), w.value = C.sqlConnectType, n.filterCount > 0) {
|
|
13463
|
+
const _e = C.precepts[0];
|
|
13464
13464
|
_e && _e.conditions && (u.value = Array.from({ length: n.filterCount }, (we, qe) => _e.conditions[qe] ? JSON.parse(JSON.stringify(_e.conditions[qe])) : c()));
|
|
13465
13465
|
}
|
|
13466
|
-
const B = W(
|
|
13467
|
-
if (y("confirm", le),
|
|
13468
|
-
const _e =
|
|
13466
|
+
const B = W(C.precepts), le = d(B, C.sqlConnectType);
|
|
13467
|
+
if (y("confirm", le), C.columns && C.columns.length > 0) {
|
|
13468
|
+
const _e = C.columns.filter((we) => we.show !== !1);
|
|
13469
13469
|
y("column-change", _e);
|
|
13470
13470
|
}
|
|
13471
13471
|
}, J = () => {
|
|
@@ -13475,15 +13475,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13475
13475
|
y("search", { conditions: { and: [] } });
|
|
13476
13476
|
return;
|
|
13477
13477
|
}
|
|
13478
|
-
const
|
|
13478
|
+
const C = W([
|
|
13479
13479
|
{ id: 1, connector: w.value, conditions: u.value }
|
|
13480
|
-
]), B = d(
|
|
13480
|
+
]), B = d(C, "and");
|
|
13481
13481
|
y("search", B);
|
|
13482
13482
|
}, H = () => {
|
|
13483
13483
|
_.value = !0;
|
|
13484
13484
|
}, E = () => {
|
|
13485
13485
|
_.value = !1;
|
|
13486
|
-
}, W = (
|
|
13486
|
+
}, W = (C) => C.map((B) => {
|
|
13487
13487
|
const le = B.conditions.filter((_e) => !(!_e.field || _e.field.trim() === "" || _e.value === null || _e.value === void 0 || _e.value === "" || Array.isArray(_e.value) && _e.value.length === 0)).map((_e) => {
|
|
13488
13488
|
let we = "";
|
|
13489
13489
|
return _e.value !== null && _e.value !== void 0 && (Array.isArray(_e.value) ? we = _e.value.join("/") : we = String(_e.value).trim()), {
|
|
@@ -13498,7 +13498,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13498
13498
|
conditions: le.length > 0 ? le : [{ field: "", operator: "eq", value: "" }]
|
|
13499
13499
|
};
|
|
13500
13500
|
}).filter((B) => B.conditions.length > 0 && B.conditions[0].field !== "");
|
|
13501
|
-
function d(
|
|
13501
|
+
function d(C, B) {
|
|
13502
13502
|
if (B !== "and" && B !== "or")
|
|
13503
13503
|
throw new Error('type参数必须是"and"或"or"');
|
|
13504
13504
|
function le(we) {
|
|
@@ -13515,7 +13515,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13515
13515
|
}
|
|
13516
13516
|
return {
|
|
13517
13517
|
conditions: {
|
|
13518
|
-
[B]:
|
|
13518
|
+
[B]: C.map(_e)
|
|
13519
13519
|
}
|
|
13520
13520
|
};
|
|
13521
13521
|
}
|
|
@@ -13533,11 +13533,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13533
13533
|
}
|
|
13534
13534
|
], w.value = "and", y("reset"), ge();
|
|
13535
13535
|
}, R = () => {
|
|
13536
|
-
const
|
|
13536
|
+
const C = ue.value.name.trim();
|
|
13537
13537
|
if (I.value) {
|
|
13538
13538
|
const B = W(r.value);
|
|
13539
13539
|
y("update-plan", {
|
|
13540
|
-
name:
|
|
13540
|
+
name: C,
|
|
13541
13541
|
precepts: B,
|
|
13542
13542
|
topOp: w.value,
|
|
13543
13543
|
plan: I.value,
|
|
@@ -13547,7 +13547,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13547
13547
|
} else {
|
|
13548
13548
|
const B = W(r.value);
|
|
13549
13549
|
y("save-plan", {
|
|
13550
|
-
name:
|
|
13550
|
+
name: C,
|
|
13551
13551
|
precepts: B,
|
|
13552
13552
|
topOp: w.value,
|
|
13553
13553
|
plan: I.value,
|
|
@@ -13556,32 +13556,32 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13556
13556
|
});
|
|
13557
13557
|
}
|
|
13558
13558
|
S();
|
|
13559
|
-
}, O = (
|
|
13560
|
-
const B = d(
|
|
13559
|
+
}, O = (C) => {
|
|
13560
|
+
const B = d(C.filterCards, C.type1);
|
|
13561
13561
|
if (y("confirm", B), n.filterCount > 0) {
|
|
13562
|
-
const le =
|
|
13562
|
+
const le = C.filterCards[0];
|
|
13563
13563
|
le && le.conditions && (u.value = Array.from({ length: n.filterCount }, (_e, we) => le.conditions[we] ? JSON.parse(JSON.stringify(le.conditions[we])) : c()));
|
|
13564
13564
|
}
|
|
13565
13565
|
E();
|
|
13566
13566
|
}, de = F(!1), ue = F({ name: "" }), L = F(!1), x = F([]), b = () => {
|
|
13567
13567
|
L.value = !0;
|
|
13568
|
-
}, z = (
|
|
13569
|
-
x.value =
|
|
13568
|
+
}, z = (C) => {
|
|
13569
|
+
x.value = C, y("color-filter-change", C);
|
|
13570
13570
|
}, P = () => {
|
|
13571
13571
|
x.value = [], y("color-filter-clear");
|
|
13572
13572
|
};
|
|
13573
13573
|
F("");
|
|
13574
|
-
const G = (
|
|
13575
|
-
y("smart-colors-change",
|
|
13576
|
-
}, X = ve(() => x.value.filter((
|
|
13577
|
-
const
|
|
13578
|
-
return
|
|
13579
|
-
${
|
|
13574
|
+
const G = (C) => {
|
|
13575
|
+
y("smart-colors-change", C);
|
|
13576
|
+
}, X = ve(() => x.value.filter((C) => C.field && C.operator && C.value).length), oe = ve(() => {
|
|
13577
|
+
const C = x.value.filter((B) => B.field && B.operator && B.value);
|
|
13578
|
+
return C.length === 0 ? "颜色筛选" : `
|
|
13579
|
+
${C.map((B) => {
|
|
13580
13580
|
const le = n.fieldOptions.find((_e) => _e.value === B.field);
|
|
13581
13581
|
return `${le ? le.label : B.field} ${ne(B.operator)} ${B.value}`;
|
|
13582
13582
|
}).join(`
|
|
13583
13583
|
`)}`;
|
|
13584
|
-
}), ne = (
|
|
13584
|
+
}), ne = (C) => ({
|
|
13585
13585
|
eq: "等于",
|
|
13586
13586
|
ne: "不等于",
|
|
13587
13587
|
gt: "大于",
|
|
@@ -13590,8 +13590,8 @@ ${k.map((B) => {
|
|
|
13590
13590
|
lte: "小于等于",
|
|
13591
13591
|
contains: "包含",
|
|
13592
13592
|
notContains: "不包含"
|
|
13593
|
-
})[
|
|
13594
|
-
return (
|
|
13593
|
+
})[C] || C;
|
|
13594
|
+
return (C, B) => {
|
|
13595
13595
|
const le = M("t-radio-button"), _e = M("t-radio-group"), we = M("t-icon"), qe = M("t-button"), ke = M("t-badge"), Be = M("t-tooltip"), ce = M("t-dropdown"), T = M("t-input"), h = M("t-form-item"), Se = M("t-form"), We = M("t-dialog");
|
|
13596
13596
|
return l(), o("div", Sc, [
|
|
13597
13597
|
a.filterCount > 0 ? (l(), o("div", Mc, [
|
|
@@ -13793,7 +13793,7 @@ ${k.map((B) => {
|
|
|
13793
13793
|
]);
|
|
13794
13794
|
};
|
|
13795
13795
|
}
|
|
13796
|
-
}, Uc = /* @__PURE__ */
|
|
13796
|
+
}, Uc = /* @__PURE__ */ Ua(Ac, [["__scopeId", "data-v-eb153ff2"]]);
|
|
13797
13797
|
(function() {
|
|
13798
13798
|
try {
|
|
13799
13799
|
if (typeof document < "u") {
|
|
@@ -13828,7 +13828,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13828
13828
|
}, Vf = {
|
|
13829
13829
|
key: 0,
|
|
13830
13830
|
class: "cd-collaborator-item-permission-text"
|
|
13831
|
-
}, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], zf = { class: "cd-qrcode-url" }, Ff = { class: "cd-encrypt-content" }, Df = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */
|
|
13831
|
+
}, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], zf = { class: "cd-qrcode-url" }, Ff = { class: "cd-encrypt-content" }, Df = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */ Ke({
|
|
13832
13832
|
name: "CdShareDialog",
|
|
13833
13833
|
__name: "ShareDialog",
|
|
13834
13834
|
props: {
|
|
@@ -13881,9 +13881,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13881
13881
|
avatar: T.avatar || "",
|
|
13882
13882
|
isUser: !0
|
|
13883
13883
|
}))), ue = ve(() => m.value ? `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(m.value)}` : ""), L = (T) => T ? T.substring(0, 2).toUpperCase() : "所";
|
|
13884
|
-
|
|
13884
|
+
Fe(() => y.visible, (T) => c.value = T), Fe(() => y.shareUrl, (T) => m.value = T), Fe(c, (T) => {
|
|
13885
13885
|
u("update:visible", T), T && x();
|
|
13886
|
-
}),
|
|
13886
|
+
}), Fe(U, (T) => {
|
|
13887
13887
|
if (O.value === "read") {
|
|
13888
13888
|
_.value = !1;
|
|
13889
13889
|
return;
|
|
@@ -13923,7 +13923,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13923
13923
|
u("search", T);
|
|
13924
13924
|
}, ne = (T) => {
|
|
13925
13925
|
u("load-users", T);
|
|
13926
|
-
},
|
|
13926
|
+
}, C = () => {
|
|
13927
13927
|
u("request-permission", "edit"), Ie.info("已发送编辑权限申请");
|
|
13928
13928
|
}, B = () => {
|
|
13929
13929
|
if (O.value !== "manage") {
|
|
@@ -13987,12 +13987,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13987
13987
|
}
|
|
13988
13988
|
Ie.success("密码设置成功"), H.value = !1, console.log("链接密码:", E.value);
|
|
13989
13989
|
};
|
|
13990
|
-
return
|
|
13990
|
+
return Fe(H, (T) => {
|
|
13991
13991
|
T && !E.value && ke();
|
|
13992
13992
|
}), (T, h) => {
|
|
13993
|
-
const Se = M("t-icon"), We = M("t-tooltip"), ye = M("t-button"), Q = M("t-avatar"), ae = M("t-select"),
|
|
13993
|
+
const Se = M("t-icon"), We = M("t-tooltip"), ye = M("t-button"), Q = M("t-avatar"), ae = M("t-select"), De = M("t-checkbox"), Oe = M("t-input"), Ve = M("t-textarea"), Ue = M("t-dialog"), ra = M("t-switch"), re = M("t-radio"), ia = M("t-radio-group");
|
|
13994
13994
|
return l(), o(fe, null, [
|
|
13995
|
-
s(
|
|
13995
|
+
s(Ue, {
|
|
13996
13996
|
visible: c.value,
|
|
13997
13997
|
"onUpdate:visible": h[13] || (h[13] = (Me) => c.value = Me),
|
|
13998
13998
|
width: "500",
|
|
@@ -14033,7 +14033,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14033
14033
|
key: 0,
|
|
14034
14034
|
variant: "text",
|
|
14035
14035
|
size: "small",
|
|
14036
|
-
onClick:
|
|
14036
|
+
onClick: C
|
|
14037
14037
|
}, {
|
|
14038
14038
|
icon: i(() => [
|
|
14039
14039
|
s(Se, {
|
|
@@ -14092,7 +14092,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14092
14092
|
}))
|
|
14093
14093
|
]),
|
|
14094
14094
|
h[35] || (h[35] = e("div", { class: "cd-share-divider" }, null, -1)),
|
|
14095
|
-
s(ca(
|
|
14095
|
+
s(ca(pl), {
|
|
14096
14096
|
users: de.value,
|
|
14097
14097
|
"avatar-size": 32,
|
|
14098
14098
|
"max-display": 3,
|
|
@@ -14128,7 +14128,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14128
14128
|
])
|
|
14129
14129
|
]),
|
|
14130
14130
|
e("div", nf, [
|
|
14131
|
-
s(
|
|
14131
|
+
s(De, {
|
|
14132
14132
|
modelValue: I.value,
|
|
14133
14133
|
"onUpdate:modelValue": h[9] || (h[9] = (Le) => I.value = Le)
|
|
14134
14134
|
}, {
|
|
@@ -14137,7 +14137,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14137
14137
|
])]),
|
|
14138
14138
|
_: 1
|
|
14139
14139
|
}, 8, ["modelValue"]),
|
|
14140
|
-
s(
|
|
14140
|
+
s(De, {
|
|
14141
14141
|
modelValue: D.value,
|
|
14142
14142
|
"onUpdate:modelValue": h[10] || (h[10] = (Le) => D.value = Le)
|
|
14143
14143
|
}, {
|
|
@@ -14206,7 +14206,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14206
14206
|
}))
|
|
14207
14207
|
]),
|
|
14208
14208
|
h[29] || (h[29] = e("div", { class: "cd-share-divider" }, null, -1)),
|
|
14209
|
-
s(ca(
|
|
14209
|
+
s(ca(pl), {
|
|
14210
14210
|
users: de.value,
|
|
14211
14211
|
"avatar-size": 32,
|
|
14212
14212
|
"max-display": 3,
|
|
@@ -14338,7 +14338,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14338
14338
|
}),
|
|
14339
14339
|
_: 3
|
|
14340
14340
|
}, 8, ["visible"]),
|
|
14341
|
-
s(
|
|
14341
|
+
s(Ue, {
|
|
14342
14342
|
visible: N.value,
|
|
14343
14343
|
"onUpdate:visible": h[21] || (h[21] = (Me) => N.value = Me),
|
|
14344
14344
|
header: "权限设置",
|
|
@@ -14456,7 +14456,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14456
14456
|
]),
|
|
14457
14457
|
_: 1
|
|
14458
14458
|
}, 8, ["visible"]),
|
|
14459
|
-
s(
|
|
14459
|
+
s(Ue, {
|
|
14460
14460
|
visible: J.value,
|
|
14461
14461
|
"onUpdate:visible": h[22] || (h[22] = (Me) => J.value = Me),
|
|
14462
14462
|
header: "协作者权限管理",
|
|
@@ -14554,7 +14554,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14554
14554
|
}),
|
|
14555
14555
|
_: 1
|
|
14556
14556
|
}, 8, ["visible"]),
|
|
14557
|
-
s(
|
|
14557
|
+
s(Ue, {
|
|
14558
14558
|
visible: ge.value,
|
|
14559
14559
|
"onUpdate:visible": h[23] || (h[23] = (Me) => ge.value = Me),
|
|
14560
14560
|
header: "分享二维码",
|
|
@@ -14577,7 +14577,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14577
14577
|
]),
|
|
14578
14578
|
_: 1
|
|
14579
14579
|
}, 8, ["visible"]),
|
|
14580
|
-
s(
|
|
14580
|
+
s(Ue, {
|
|
14581
14581
|
visible: H.value,
|
|
14582
14582
|
"onUpdate:visible": h[26] || (h[26] = (Me) => H.value = Me),
|
|
14583
14583
|
header: "设置链接密码",
|
|
@@ -14681,7 +14681,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14681
14681
|
}, Kf = { class: "sub-grid-title" }, Gf = {
|
|
14682
14682
|
key: 1,
|
|
14683
14683
|
class: "cd-form-pagination"
|
|
14684
|
-
}, Xf = /* @__PURE__ */
|
|
14684
|
+
}, Xf = /* @__PURE__ */ Ke({
|
|
14685
14685
|
__name: "CdForm",
|
|
14686
14686
|
props: {
|
|
14687
14687
|
formData: {},
|
|
@@ -14719,18 +14719,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14719
14719
|
},
|
|
14720
14720
|
emits: ["page-change", "add", "edit", "delete", "detail", "custom-button", "refresh", "filter-change", "filter-search", "filter-reset", "add-row", "delete-row", "upload-image", "column-drop", "group", "inline-save", "column-filter", "select-org-data", "column-filter-reset", "save-plan", "delete-plan", "copy-plan", "set-default-plan", "update-plan", "load-users", "search-persons", "dept-click", "column-change", "color-filter-change", "color-filter-clear", "push-down", "select-upstream", "selection-change", "row-click", "row-dblclick", "i18n-click", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change", "import", "export", "download-template", "share", "batch-delete"],
|
|
14721
14721
|
setup(a, { expose: te, emit: n }) {
|
|
14722
|
-
var
|
|
14722
|
+
var bl, yl;
|
|
14723
14723
|
const y = (t, f) => {
|
|
14724
14724
|
var $;
|
|
14725
14725
|
if (["rate", "tag", "Rate"].includes(t))
|
|
14726
14726
|
return !0;
|
|
14727
14727
|
if (t === "calculate" && f) {
|
|
14728
|
-
const
|
|
14729
|
-
if (
|
|
14728
|
+
const k = (($ = f.__config__) == null ? void 0 : $.type) || f.type;
|
|
14729
|
+
if (k && ["rate", "tag", "Rate"].includes(k))
|
|
14730
14730
|
return !0;
|
|
14731
14731
|
}
|
|
14732
14732
|
return !1;
|
|
14733
|
-
}, u = (t, f, $,
|
|
14733
|
+
}, u = (t, f, $, k = !0) => {
|
|
14734
14734
|
if (!t || !t.__config__ || !t.__vModel__)
|
|
14735
14735
|
return (f == null ? void 0 : f[$.field]) ?? "";
|
|
14736
14736
|
const K = f[$.field];
|
|
@@ -14742,16 +14742,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14742
14742
|
};
|
|
14743
14743
|
}, c = (t, f) => {
|
|
14744
14744
|
try {
|
|
14745
|
-
const { row: $, column:
|
|
14745
|
+
const { row: $, column: k } = f, { field: K } = t.props || {};
|
|
14746
14746
|
if (!K || !K.__config__ || !K.__vModel__)
|
|
14747
|
-
return ($ == null ? void 0 : $[
|
|
14747
|
+
return ($ == null ? void 0 : $[k.field]) ?? "";
|
|
14748
14748
|
const Z = K.__config__.cdkey;
|
|
14749
|
-
return y(Z, K) ? u(K, $,
|
|
14749
|
+
return y(Z, K) ? u(K, $, k, !0) : ($ == null ? void 0 : $[k.field]) ?? "";
|
|
14750
14750
|
} catch {
|
|
14751
14751
|
return "";
|
|
14752
14752
|
}
|
|
14753
14753
|
};
|
|
14754
|
-
|
|
14754
|
+
ja.renderer.get("$renderFormItem") || ja.renderer.add("$renderFormItem", {
|
|
14755
14755
|
renderDefault(t, f) {
|
|
14756
14756
|
return c(t, f);
|
|
14757
14757
|
},
|
|
@@ -14760,10 +14760,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14760
14760
|
},
|
|
14761
14761
|
renderEdit(t, f) {
|
|
14762
14762
|
try {
|
|
14763
|
-
const { row: $, column:
|
|
14763
|
+
const { row: $, column: k } = f, { field: K, onI18nClick: Z } = t.props || {};
|
|
14764
14764
|
if (!K || !K.__config__ || !K.__vModel__)
|
|
14765
14765
|
return [];
|
|
14766
|
-
const se = $[
|
|
14766
|
+
const se = $[k.field], pe = pa({ [K.__vModel__]: se }), $e = {
|
|
14767
14767
|
...K,
|
|
14768
14768
|
disabled: !1,
|
|
14769
14769
|
readonly: !1,
|
|
@@ -14775,30 +14775,30 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14775
14775
|
readonly: !1
|
|
14776
14776
|
}
|
|
14777
14777
|
};
|
|
14778
|
-
return
|
|
14778
|
+
return ml(Dl, {
|
|
14779
14779
|
field: $e,
|
|
14780
14780
|
formModel: pe,
|
|
14781
14781
|
formConf: { labelWidth: 0, labelPosition: "left" },
|
|
14782
14782
|
disabled: !1,
|
|
14783
14783
|
tableMode: !0,
|
|
14784
|
-
onChange: (
|
|
14785
|
-
$[
|
|
14784
|
+
onChange: (Re, Pe) => {
|
|
14785
|
+
$[k.field] = Pe, pe[Re + "_data"] && ($[k.field + "_data"] = pe[Re + "_data"]), f.$table && f.$table.updateStatus && f.$table.updateStatus(f);
|
|
14786
14786
|
},
|
|
14787
|
-
"onI18n-click": (
|
|
14788
|
-
Z && Z(
|
|
14787
|
+
"onI18n-click": (Re) => {
|
|
14788
|
+
Z && Z(Re);
|
|
14789
14789
|
}
|
|
14790
14790
|
});
|
|
14791
14791
|
} catch {
|
|
14792
14792
|
return [];
|
|
14793
14793
|
}
|
|
14794
14794
|
}
|
|
14795
|
-
}),
|
|
14795
|
+
}), ja.renderer.get("$relationCell") || ja.renderer.add("$relationCell", {
|
|
14796
14796
|
renderDefault(t, f) {
|
|
14797
|
-
const { row: $, column:
|
|
14797
|
+
const { row: $, column: k } = f, { field: K, isMultiple: Z } = t.props || {}, se = (K == null ? void 0 : K.__vModel__) || k.field, pe = $[se];
|
|
14798
14798
|
if (pe == null || pe === "" || pe === "0")
|
|
14799
14799
|
return [];
|
|
14800
14800
|
const $e = $[se + "_data"];
|
|
14801
|
-
let
|
|
14801
|
+
let Re = [];
|
|
14802
14802
|
if ($e) {
|
|
14803
14803
|
const Pe = typeof $e == "string" ? (() => {
|
|
14804
14804
|
try {
|
|
@@ -14807,20 +14807,20 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14807
14807
|
return null;
|
|
14808
14808
|
}
|
|
14809
14809
|
})() : $e;
|
|
14810
|
-
Array.isArray(Pe) ?
|
|
14810
|
+
Array.isArray(Pe) ? Re = Pe.map((Ne) => Ne.fname || Ne.FNAME || Ne.fullName || Ne.name || "") : Pe && (Re = [Pe.fname || Pe.FNAME || Pe.fullName || Pe.name || ""]);
|
|
14811
14811
|
}
|
|
14812
|
-
if (
|
|
14812
|
+
if (Re.length === 0 || Re.every((Pe) => !Pe)) {
|
|
14813
14813
|
const Pe = String(pe);
|
|
14814
|
-
|
|
14814
|
+
Re = Pe.includes(",") ? Pe.split(",").map((Ne) => Ne.trim()).filter((Ne) => Ne && Ne !== "0") : [Pe];
|
|
14815
14815
|
}
|
|
14816
|
-
return
|
|
14816
|
+
return Re = Re.filter((Pe) => Pe), Re.length === 0 ? [] : Z && Re.length > 1 ? Re.map((Pe) => ml("span", {
|
|
14817
14817
|
class: "cd-relation-tag",
|
|
14818
14818
|
style: "display:inline-block;padding:1px 8px;margin:1px 4px 1px 0;background:#f0f2f5;border-radius:3px;font-size:12px;line-height:20px;"
|
|
14819
|
-
}, Pe)) : [
|
|
14819
|
+
}, Pe)) : [ml("span", {}, Re.join(", "))];
|
|
14820
14820
|
}
|
|
14821
14821
|
});
|
|
14822
14822
|
const m = a, U = pa({});
|
|
14823
|
-
|
|
14823
|
+
wa("relationFormData", U), xl(() => {
|
|
14824
14824
|
const t = m.relationFormData;
|
|
14825
14825
|
t && typeof t == "object" && Object.keys(t).forEach((f) => {
|
|
14826
14826
|
t[f] !== void 0 && (U[f] = { ...U[f] || {}, ...t[f] });
|
|
@@ -14853,9 +14853,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14853
14853
|
q.value = Math.max(400, $);
|
|
14854
14854
|
}
|
|
14855
14855
|
};
|
|
14856
|
-
|
|
14856
|
+
Da(() => {
|
|
14857
14857
|
ee(), window.addEventListener("resize", ee);
|
|
14858
|
-
}),
|
|
14858
|
+
}), gl(() => {
|
|
14859
14859
|
window.removeEventListener("resize", ee);
|
|
14860
14860
|
});
|
|
14861
14861
|
const N = ve(() => ae.value.length < 15), J = ve(() => {
|
|
@@ -14865,23 +14865,23 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14865
14865
|
mode: "cell",
|
|
14866
14866
|
showStatus: !0
|
|
14867
14867
|
};
|
|
14868
|
-
}), ge = F(!1), H = F(/* @__PURE__ */ new Map()), E = F(/* @__PURE__ */ new Map()), W = F(/* @__PURE__ */ new Set()), d = F(((
|
|
14868
|
+
}), ge = F(!1), H = F(/* @__PURE__ */ new Map()), E = F(/* @__PURE__ */ new Map()), W = F(/* @__PURE__ */ new Set()), d = F(((bl = m.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = F(((yl = m.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = F(!1), R = F([]), O = F(!0), de = F(!1), ue = F(""), L = F("add"), x = F(null);
|
|
14869
14869
|
let b = pa({});
|
|
14870
14870
|
const z = ve(() => {
|
|
14871
|
-
var
|
|
14872
|
-
const t = ((
|
|
14871
|
+
var Re, Pe;
|
|
14872
|
+
const t = ((Re = m.formData) == null ? void 0 : Re.fields) || [], f = _.value.treeConfig;
|
|
14873
14873
|
if (!(f != null && f.enabled)) return t;
|
|
14874
14874
|
const $ = f.parentField || "parentId";
|
|
14875
14875
|
if (t.some(
|
|
14876
14876
|
(Ne) => {
|
|
14877
|
-
var
|
|
14878
|
-
return Ne.__vModel__ === $ || ((
|
|
14877
|
+
var He, Ge;
|
|
14878
|
+
return Ne.__vModel__ === $ || ((He = Ne.__vModel__) == null ? void 0 : He.toUpperCase()) === "FPARENTID" || ((Ge = Ne.__config__) == null ? void 0 : Ge.cdkey) === "treeSelect";
|
|
14879
14879
|
}
|
|
14880
14880
|
)) return t;
|
|
14881
14881
|
const K = f.rowField || "fid", Z = m.data || [], se = ((Pe = t.find(
|
|
14882
14882
|
(Ne) => {
|
|
14883
|
-
var
|
|
14884
|
-
return ((
|
|
14883
|
+
var He, Ge;
|
|
14884
|
+
return ((He = Ne.__config__) == null ? void 0 : He.cdkey) === "input" && ((Ge = Ne.__config__) == null ? void 0 : Ge.required);
|
|
14885
14885
|
}
|
|
14886
14886
|
)) == null ? void 0 : Pe.__vModel__) || "fname";
|
|
14887
14887
|
return [{
|
|
@@ -14904,29 +14904,29 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14904
14904
|
props: { keys: { label: "label", value: "value", children: "children" } },
|
|
14905
14905
|
options: (() => {
|
|
14906
14906
|
if (!Z.length) return [];
|
|
14907
|
-
const Ne = /* @__PURE__ */ new Map(),
|
|
14908
|
-
for (const
|
|
14909
|
-
const
|
|
14910
|
-
Ne.set(String(
|
|
14911
|
-
value: String(
|
|
14912
|
-
label:
|
|
14907
|
+
const Ne = /* @__PURE__ */ new Map(), He = [];
|
|
14908
|
+
for (const ze of Z) {
|
|
14909
|
+
const Ze = ze[se] || ze.fname || ze.fnumber || ze.fullName || ze.name || String(ze[K]);
|
|
14910
|
+
Ne.set(String(ze[K]), {
|
|
14911
|
+
value: String(ze[K]),
|
|
14912
|
+
label: Ze,
|
|
14913
14913
|
children: [],
|
|
14914
|
-
_pid: String(
|
|
14914
|
+
_pid: String(ze[$] || "0")
|
|
14915
14915
|
});
|
|
14916
14916
|
}
|
|
14917
|
-
for (const
|
|
14918
|
-
const
|
|
14919
|
-
|
|
14917
|
+
for (const ze of Ne.values()) {
|
|
14918
|
+
const Ze = Ne.get(ze._pid);
|
|
14919
|
+
Ze && Ze !== ze ? Ze.children.push(ze) : He.push(ze), delete ze._pid;
|
|
14920
14920
|
}
|
|
14921
|
-
const
|
|
14922
|
-
var
|
|
14923
|
-
for (const
|
|
14924
|
-
(
|
|
14921
|
+
const Ge = (ze) => {
|
|
14922
|
+
var Ze;
|
|
14923
|
+
for (const ga of ze)
|
|
14924
|
+
(Ze = ga.children) != null && Ze.length ? Ge(ga.children) : delete ga.children;
|
|
14925
14925
|
};
|
|
14926
|
-
return
|
|
14926
|
+
return Ge(He), He;
|
|
14927
14927
|
})()
|
|
14928
14928
|
}, ...t];
|
|
14929
|
-
}), P = F(!1), G = F(null), X = F([]), oe = F(/* @__PURE__ */ new Map()), ne = F(!1),
|
|
14929
|
+
}), P = F(!1), G = F(null), X = F([]), oe = F(/* @__PURE__ */ new Map()), ne = F(!1), C = F([]), B = F(!1), le = (t, f) => {
|
|
14930
14930
|
const $ = t[f.field];
|
|
14931
14931
|
switch (f.operator) {
|
|
14932
14932
|
case "contains":
|
|
@@ -14953,13 +14953,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14953
14953
|
}, _e = ({ row: t, rowIndex: f }) => {
|
|
14954
14954
|
let $ = {};
|
|
14955
14955
|
if (_.value.rowStyle) {
|
|
14956
|
-
const
|
|
14957
|
-
|
|
14956
|
+
const k = _.value.rowStyle({ row: t, rowIndex: f });
|
|
14957
|
+
k && ($ = { ...k });
|
|
14958
14958
|
}
|
|
14959
14959
|
if (X.value && X.value.length > 0) {
|
|
14960
|
-
for (const
|
|
14961
|
-
if (
|
|
14962
|
-
|
|
14960
|
+
for (const k of X.value)
|
|
14961
|
+
if (k.applyTo === "row" && le(t, k)) {
|
|
14962
|
+
k.backgroundColor && ($.backgroundColor = k.backgroundColor), k.textColor && ($.color = k.textColor), k.isBold && ($.fontWeight = "bold");
|
|
14963
14963
|
break;
|
|
14964
14964
|
}
|
|
14965
14965
|
}
|
|
@@ -14967,14 +14967,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14967
14967
|
}, we = ({ row: t, rowIndex: f }) => {
|
|
14968
14968
|
const $ = [];
|
|
14969
14969
|
if (_.value.rowClassName) {
|
|
14970
|
-
const
|
|
14971
|
-
|
|
14970
|
+
const k = _.value.rowClassName({ row: t, rowIndex: f });
|
|
14971
|
+
k && $.push(k);
|
|
14972
14972
|
}
|
|
14973
14973
|
return $.length > 0 ? $.join(" ") : null;
|
|
14974
|
-
}, qe = ({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14974
|
+
}, qe = ({ row: t, column: f, rowIndex: $, columnIndex: k }) => {
|
|
14975
14975
|
let K = {};
|
|
14976
14976
|
if (_.value.cellStyle) {
|
|
14977
|
-
const Z = _.value.cellStyle({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14977
|
+
const Z = _.value.cellStyle({ row: t, column: f, rowIndex: $, columnIndex: k });
|
|
14978
14978
|
Z && (K = { ...Z });
|
|
14979
14979
|
}
|
|
14980
14980
|
if (X.value && X.value.length > 0) {
|
|
@@ -14988,10 +14988,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14988
14988
|
}
|
|
14989
14989
|
}
|
|
14990
14990
|
return Object.keys(K).length > 0 ? K : void 0;
|
|
14991
|
-
}, ke = ({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14991
|
+
}, ke = ({ row: t, column: f, rowIndex: $, columnIndex: k }) => {
|
|
14992
14992
|
const K = [];
|
|
14993
14993
|
if (_.value.cellClassName) {
|
|
14994
|
-
const Z = _.value.cellClassName({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14994
|
+
const Z = _.value.cellClassName({ row: t, column: f, rowIndex: $, columnIndex: k });
|
|
14995
14995
|
Z && K.push(Z);
|
|
14996
14996
|
}
|
|
14997
14997
|
return K.length > 0 ? K.join(" ") : null;
|
|
@@ -15001,24 +15001,24 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15001
15001
|
if (_.value.groupField || ((f = _.value.treeConfig) == null ? void 0 : f.enabled) === !0)
|
|
15002
15002
|
return t;
|
|
15003
15003
|
if (($ = m.pageConfig) != null && $.enabled && !m.enableVirtualScroll) {
|
|
15004
|
-
const
|
|
15005
|
-
t = t.slice(
|
|
15004
|
+
const k = (d.value - 1) * S.value, K = k + S.value;
|
|
15005
|
+
t = t.slice(k, K);
|
|
15006
15006
|
}
|
|
15007
15007
|
if (N.value) {
|
|
15008
|
-
const
|
|
15008
|
+
const k = [...t], K = {
|
|
15009
15009
|
fid: "__empty_row__",
|
|
15010
15010
|
_isEmpty: !0
|
|
15011
15011
|
};
|
|
15012
15012
|
return h(m.formData.fields).forEach((se) => {
|
|
15013
15013
|
const pe = se.__vModel__;
|
|
15014
15014
|
pe && (K[pe] = "");
|
|
15015
|
-
}),
|
|
15015
|
+
}), k.push(K), k;
|
|
15016
15016
|
}
|
|
15017
15017
|
return t;
|
|
15018
15018
|
});
|
|
15019
|
-
|
|
15019
|
+
Fe(() => m.pageConfig, (t) => {
|
|
15020
15020
|
t && (d.value = t.currentPage || 1, S.value = t.pageSize || 20);
|
|
15021
|
-
}, { deep: !0 }),
|
|
15021
|
+
}, { deep: !0 }), Fe(() => _.value.groupField, (t) => {
|
|
15022
15022
|
if (t) {
|
|
15023
15023
|
const f = Array.isArray(t) ? t : [t];
|
|
15024
15024
|
R.value = f.filter(($) => $ && $.trim() !== "");
|
|
@@ -15028,11 +15028,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15028
15028
|
const T = (t, f) => N.value ? t === "edit" : !1, h = (t) => {
|
|
15029
15029
|
const f = [];
|
|
15030
15030
|
return !t || !Array.isArray(t) || t.forEach(($) => {
|
|
15031
|
-
const
|
|
15032
|
-
|
|
15031
|
+
const k = $.__config__;
|
|
15032
|
+
k.layout === "rowFormItem" && k.children && Array.isArray(k.children) ? f.push(...h(k.children)) : k.layout === "colFormItem" && f.push($);
|
|
15033
15033
|
}), f;
|
|
15034
15034
|
};
|
|
15035
|
-
|
|
15035
|
+
wa("relationFormHandlers", {
|
|
15036
15036
|
search: (t) => {
|
|
15037
15037
|
w("relation-form-search", t);
|
|
15038
15038
|
},
|
|
@@ -15051,21 +15051,21 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15051
15051
|
return Array.isArray(m.fieldOptions) ? m.fieldOptions : [];
|
|
15052
15052
|
const t = [];
|
|
15053
15053
|
return h(m.formData.fields).forEach(($) => {
|
|
15054
|
-
const
|
|
15055
|
-
if (!K ||
|
|
15054
|
+
const k = $.__config__, K = $.__vModel__, Z = k.cdkey;
|
|
15055
|
+
if (!K || k.noShow || Z === "billno" || Z === "divider" || Z === "vxeSubGrid" || Z === "table")
|
|
15056
15056
|
return;
|
|
15057
15057
|
let se = "text";
|
|
15058
15058
|
["select", "radio", "checkbox"].includes(Z) ? se = "select" : Z === "number" ? se = "number" : Z === "date" || Z === "datetime" ? se = "date" : Z === "time" ? se = "time" : Z === "switch" && (se = "select"), t.push({
|
|
15059
|
-
key:
|
|
15060
|
-
label:
|
|
15059
|
+
key: k.label,
|
|
15060
|
+
label: k.label,
|
|
15061
15061
|
value: K,
|
|
15062
15062
|
type: se
|
|
15063
15063
|
});
|
|
15064
15064
|
}), t;
|
|
15065
|
-
}),
|
|
15065
|
+
}), De = ve(() => {
|
|
15066
15066
|
const t = [];
|
|
15067
15067
|
return h(m.formData.fields).forEach(($) => {
|
|
15068
|
-
const
|
|
15068
|
+
const k = $.__config__, K = $.__vModel__, Z = k.cdkey;
|
|
15069
15069
|
if (["select", "radio", "checkbox"].includes(Z) && $.options && Array.isArray($.options)) {
|
|
15070
15070
|
const se = $.options.map((pe) => pe.label || pe.fullName || String(pe.value));
|
|
15071
15071
|
t.push({
|
|
@@ -15080,15 +15080,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15080
15080
|
}), Oe = ve(() => {
|
|
15081
15081
|
const t = [];
|
|
15082
15082
|
return h(m.formData.fields).forEach(($) => {
|
|
15083
|
-
const
|
|
15084
|
-
!$.__vModel__ ||
|
|
15085
|
-
label:
|
|
15083
|
+
const k = $.__config__;
|
|
15084
|
+
!$.__vModel__ || k.noShow || k.cdkey === "billno" || k.cdkey === "calculate" || t.push({
|
|
15085
|
+
label: k.label,
|
|
15086
15086
|
value: $.__vModel__
|
|
15087
15087
|
});
|
|
15088
15088
|
}), t;
|
|
15089
15089
|
}), Ve = (t, f = !1) => {
|
|
15090
|
-
var $e,
|
|
15091
|
-
const $ = t.__config__,
|
|
15090
|
+
var $e, Re, Pe, Ne;
|
|
15091
|
+
const $ = t.__config__, k = $.cdkey, K = t.__vModel__;
|
|
15092
15092
|
if (!K || $.noShow)
|
|
15093
15093
|
return null;
|
|
15094
15094
|
const Z = oe.value.get(K), se = {
|
|
@@ -15101,84 +15101,103 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15101
15101
|
sortable: !0
|
|
15102
15102
|
};
|
|
15103
15103
|
Z != null && Z.fixed && Z.fixed !== "none" ? se.fixed = Z.fixed : $.fixed && $.fixed !== "none" && (se.fixed = $.fixed);
|
|
15104
|
-
const pe = y(
|
|
15104
|
+
const pe = y(k, t);
|
|
15105
15105
|
if (pe && (se.cellRender = {
|
|
15106
15106
|
name: "$renderFormItem",
|
|
15107
15107
|
props: { field: t }
|
|
15108
|
-
}),
|
|
15109
|
-
const
|
|
15108
|
+
}), k === "relationForm") {
|
|
15109
|
+
const He = t.multiple === !0;
|
|
15110
15110
|
se.cellRender = {
|
|
15111
15111
|
name: "$relationCell",
|
|
15112
|
-
props: { field: t, isMultiple:
|
|
15112
|
+
props: { field: t, isMultiple: He }
|
|
15113
15113
|
};
|
|
15114
15114
|
}
|
|
15115
|
-
if (
|
|
15116
|
-
const
|
|
15117
|
-
se.formatter = ({ row:
|
|
15118
|
-
const
|
|
15119
|
-
return
|
|
15115
|
+
if (k === "switch") {
|
|
15116
|
+
const He = t["active-value"] ?? 1;
|
|
15117
|
+
se.formatter = ({ row: Ge }) => {
|
|
15118
|
+
const ze = Ge[K];
|
|
15119
|
+
return ze === He || ze === !0 ? "启用" : "禁用";
|
|
15120
15120
|
};
|
|
15121
15121
|
}
|
|
15122
|
-
if ((
|
|
15123
|
-
const
|
|
15124
|
-
if (
|
|
15125
|
-
const
|
|
15126
|
-
|
|
15127
|
-
const
|
|
15128
|
-
|
|
15129
|
-
}), se.formatter = ({ row:
|
|
15130
|
-
const
|
|
15131
|
-
return
|
|
15122
|
+
if ((k === "select" || k === "radio") && !pe) {
|
|
15123
|
+
const He = t.options || (($e = t.__slot__) == null ? void 0 : $e.options) || [];
|
|
15124
|
+
if (He.length > 0) {
|
|
15125
|
+
const Ge = {};
|
|
15126
|
+
He.forEach((ze) => {
|
|
15127
|
+
const Ze = String(ze.value ?? ze.id ?? "");
|
|
15128
|
+
Ge[Ze] = ze.label || ze.fullName || ze.name || Ze;
|
|
15129
|
+
}), se.formatter = ({ row: ze }) => {
|
|
15130
|
+
const Ze = ze[K];
|
|
15131
|
+
return Ze == null || Ze === "" ? "" : Ge[String(Ze)] ?? String(Ze);
|
|
15132
15132
|
};
|
|
15133
15133
|
}
|
|
15134
15134
|
}
|
|
15135
|
-
if (
|
|
15136
|
-
|
|
15135
|
+
if (k === "date" || k === "datetime") {
|
|
15136
|
+
const He = t.type || "date";
|
|
15137
|
+
se.formatter = ({ row: Ge }) => {
|
|
15138
|
+
const ze = Ge[K];
|
|
15139
|
+
if (!ze) return "";
|
|
15140
|
+
try {
|
|
15141
|
+
const Ze = new Date(ze);
|
|
15142
|
+
if (isNaN(Ze.getTime())) return String(ze);
|
|
15143
|
+
const ga = Ze.getFullYear(), Va = String(Ze.getMonth() + 1).padStart(2, "0"), Sa = String(Ze.getDate()).padStart(2, "0");
|
|
15144
|
+
if (He === "datetime") {
|
|
15145
|
+
const Ba = String(Ze.getHours()).padStart(2, "0"), qa = String(Ze.getMinutes()).padStart(2, "0"), La = String(Ze.getSeconds()).padStart(2, "0");
|
|
15146
|
+
return `${ga}-${Va}-${Sa} ${Ba}:${qa}:${La}`;
|
|
15147
|
+
}
|
|
15148
|
+
return `${ga}-${Va}-${Sa}`;
|
|
15149
|
+
} catch {
|
|
15150
|
+
return String(ze);
|
|
15151
|
+
}
|
|
15152
|
+
};
|
|
15153
|
+
}
|
|
15154
|
+
if (N.value && !["upload", "uploadImg", "editor", "colorPicker", "cascader"].includes(k))
|
|
15155
|
+
if (k === "relationForm")
|
|
15137
15156
|
se.editRender = {
|
|
15138
15157
|
name: "$renderFormItem",
|
|
15139
15158
|
props: {
|
|
15140
15159
|
field: t,
|
|
15141
|
-
onI18nClick: (
|
|
15160
|
+
onI18nClick: (Ge) => w("i18n-click", Ge)
|
|
15142
15161
|
}
|
|
15143
15162
|
};
|
|
15144
|
-
else if (
|
|
15163
|
+
else if (k === "input" && ((Re = t.__config__) != null && Re.i18n))
|
|
15145
15164
|
se.editRender = {
|
|
15146
15165
|
name: "$renderFormItem",
|
|
15147
15166
|
props: {
|
|
15148
15167
|
field: t,
|
|
15149
|
-
onI18nClick: (
|
|
15168
|
+
onI18nClick: (Ge) => w("i18n-click", Ge)
|
|
15150
15169
|
}
|
|
15151
15170
|
};
|
|
15152
|
-
else if (
|
|
15171
|
+
else if (k === "numInput" || k === "inputNumber" || k === "amount" || k === "rate" || k === "slider")
|
|
15153
15172
|
se.editRender = { name: "VxeNumberInput" };
|
|
15154
|
-
else if (
|
|
15155
|
-
const
|
|
15156
|
-
label:
|
|
15157
|
-
value:
|
|
15173
|
+
else if (k === "select" || k === "radio") {
|
|
15174
|
+
const Ge = (t.options || ((Pe = t.__slot__) == null ? void 0 : Pe.options) || []).map((ze) => ({
|
|
15175
|
+
label: ze.label || ze.fullName || ze.name || ze.value,
|
|
15176
|
+
value: ze.value ?? ze.id
|
|
15158
15177
|
}));
|
|
15159
|
-
se.editRender = { name: "VxeSelect", options:
|
|
15160
|
-
} else if (
|
|
15161
|
-
const
|
|
15162
|
-
label:
|
|
15163
|
-
value:
|
|
15164
|
-
parentValue:
|
|
15178
|
+
se.editRender = { name: "VxeSelect", options: Ge };
|
|
15179
|
+
} else if (k === "treeSelect") {
|
|
15180
|
+
const Ge = (t.options || []).map((ze) => ({
|
|
15181
|
+
label: ze.label || ze.fullName || ze.name,
|
|
15182
|
+
value: ze.value ?? ze.id,
|
|
15183
|
+
parentValue: ze.parentId ?? ze.parentValue
|
|
15165
15184
|
}));
|
|
15166
|
-
se.editRender = { name: "VxeTreeSelect", options:
|
|
15167
|
-
} else if (
|
|
15185
|
+
se.editRender = { name: "VxeTreeSelect", options: Ge, props: { treeConfig: { transform: !0, rowField: "value", parentField: "parentValue" } } };
|
|
15186
|
+
} else if (k === "datePicker")
|
|
15168
15187
|
se.editRender = { name: "VxeDatePicker", props: { type: "date", valueFormat: "YYYY-MM-DD" } };
|
|
15169
|
-
else if (
|
|
15188
|
+
else if (k === "switch")
|
|
15170
15189
|
se.editRender = { name: "VxeSwitch" };
|
|
15171
|
-
else if (
|
|
15172
|
-
const
|
|
15173
|
-
label:
|
|
15174
|
-
value:
|
|
15190
|
+
else if (k === "checkbox") {
|
|
15191
|
+
const Ge = (t.options || ((Ne = t.__slot__) == null ? void 0 : Ne.options) || []).map((ze) => ({
|
|
15192
|
+
label: ze.label || ze.value,
|
|
15193
|
+
value: ze.value ?? ze.id
|
|
15175
15194
|
}));
|
|
15176
|
-
se.editRender = { name: "VxeCheckboxGroup", options:
|
|
15195
|
+
se.editRender = { name: "VxeCheckboxGroup", options: Ge };
|
|
15177
15196
|
} else
|
|
15178
15197
|
se.editRender = { name: "VxeInput" };
|
|
15179
|
-
return
|
|
15180
|
-
},
|
|
15181
|
-
const
|
|
15198
|
+
return Ue(se, t), se;
|
|
15199
|
+
}, Ue = (t, f) => {
|
|
15200
|
+
const k = f.__config__.cdkey, K = f.__vModel__, Z = /* @__PURE__ */ new Set();
|
|
15182
15201
|
if (Be.value.forEach((se) => {
|
|
15183
15202
|
const pe = se[K];
|
|
15184
15203
|
pe != null && pe !== "" && (Array.isArray(pe) ? pe.forEach(($e) => {
|
|
@@ -15188,61 +15207,61 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15188
15207
|
t.filters = [];
|
|
15189
15208
|
return;
|
|
15190
15209
|
}
|
|
15191
|
-
if (
|
|
15210
|
+
if (k === "relationForm") {
|
|
15192
15211
|
t.filterMultiple = !0;
|
|
15193
15212
|
const se = /* @__PURE__ */ new Set();
|
|
15194
15213
|
Be.value.forEach(($e) => {
|
|
15195
|
-
const
|
|
15196
|
-
|
|
15214
|
+
const Re = $e[K];
|
|
15215
|
+
Re != null && Re !== "" && Re !== "0" && String(Re).split(",").forEach((Pe) => {
|
|
15197
15216
|
const Ne = Pe.trim();
|
|
15198
15217
|
Ne && Ne !== "0" && se.add(Ne);
|
|
15199
15218
|
});
|
|
15200
15219
|
});
|
|
15201
15220
|
const pe = {};
|
|
15202
15221
|
Be.value.forEach(($e) => {
|
|
15203
|
-
const
|
|
15204
|
-
if (
|
|
15205
|
-
const Pe = typeof
|
|
15222
|
+
const Re = $e[K + "_data"];
|
|
15223
|
+
if (Re) {
|
|
15224
|
+
const Pe = typeof Re == "string" ? (() => {
|
|
15206
15225
|
try {
|
|
15207
|
-
return JSON.parse(
|
|
15226
|
+
return JSON.parse(Re);
|
|
15208
15227
|
} catch {
|
|
15209
15228
|
return null;
|
|
15210
15229
|
}
|
|
15211
|
-
})() :
|
|
15230
|
+
})() : Re;
|
|
15212
15231
|
if (Array.isArray(Pe))
|
|
15213
15232
|
Pe.forEach((Ne) => {
|
|
15214
|
-
const
|
|
15215
|
-
|
|
15233
|
+
const He = String(Ne.fid ?? Ne.id ?? ""), Ge = Ne.fname || Ne.FNAME || Ne.fullName || Ne.name || "";
|
|
15234
|
+
He && Ge && (pe[He] = Ge);
|
|
15216
15235
|
});
|
|
15217
15236
|
else if (Pe) {
|
|
15218
|
-
const Ne = String(Pe.fid ?? Pe.id ?? ""),
|
|
15219
|
-
Ne &&
|
|
15237
|
+
const Ne = String(Pe.fid ?? Pe.id ?? ""), He = Pe.fname || Pe.FNAME || Pe.fullName || Pe.name || "";
|
|
15238
|
+
Ne && He && (pe[Ne] = He);
|
|
15220
15239
|
}
|
|
15221
15240
|
}
|
|
15222
15241
|
}), t.filters = Array.from(se).map(($e) => ({
|
|
15223
15242
|
label: pe[$e] || $e,
|
|
15224
15243
|
value: $e
|
|
15225
|
-
})), t.filterMethod = ({ value: $e, row:
|
|
15226
|
-
const Pe =
|
|
15227
|
-
return Pe ? String(Pe).split(",").map((
|
|
15244
|
+
})), t.filterMethod = ({ value: $e, row: Re }) => {
|
|
15245
|
+
const Pe = Re[K];
|
|
15246
|
+
return Pe ? String(Pe).split(",").map((He) => He.trim()).includes(String($e)) : !1;
|
|
15228
15247
|
};
|
|
15229
|
-
} else
|
|
15248
|
+
} else k === "select" || k === "radio" || k === "checkbox" || k === "cascader" ? (t.filterMultiple = !0, t.filters = [], Z.forEach((se) => {
|
|
15230
15249
|
let pe = String(se);
|
|
15231
15250
|
if (f.options && Array.isArray(f.options)) {
|
|
15232
|
-
const $e = f.options.find((
|
|
15251
|
+
const $e = f.options.find((Re) => (Re.value || Re.key || Re.id) == se);
|
|
15233
15252
|
$e && (pe = $e.label || $e.fullName || String(se));
|
|
15234
15253
|
}
|
|
15235
15254
|
t.filters.push({
|
|
15236
15255
|
label: pe,
|
|
15237
15256
|
value: se
|
|
15238
15257
|
});
|
|
15239
|
-
})) :
|
|
15258
|
+
})) : k === "switch" ? (t.filterMultiple = !1, t.filters = [], Z.has(!0) && t.filters.push({ label: "是", value: !0 }), Z.has(!1) && t.filters.push({ label: "否", value: !1 })) : k === "input" || k === "textarea" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((se) => ({
|
|
15240
15259
|
label: String(se),
|
|
15241
15260
|
value: se
|
|
15242
|
-
}))) :
|
|
15261
|
+
}))) : k === "number" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort((se, pe) => Number(se) - Number(pe)).map((se) => ({
|
|
15243
15262
|
label: String(se),
|
|
15244
15263
|
value: se
|
|
15245
|
-
}))) :
|
|
15264
|
+
}))) : k === "date" || k === "time" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((se) => ({
|
|
15246
15265
|
label: String(se),
|
|
15247
15266
|
value: se
|
|
15248
15267
|
}))) : (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((se) => ({
|
|
@@ -15252,11 +15271,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15252
15271
|
}, ra = () => {
|
|
15253
15272
|
var $;
|
|
15254
15273
|
if (m.tableColumns && m.tableColumns.length > 0)
|
|
15255
|
-
return m.tableColumns.map((
|
|
15256
|
-
...
|
|
15257
|
-
sortable:
|
|
15274
|
+
return m.tableColumns.map((k, K) => ({
|
|
15275
|
+
...k,
|
|
15276
|
+
sortable: k.sortable !== void 0 ? k.sortable : !0
|
|
15258
15277
|
}));
|
|
15259
|
-
const t = [], f = ($ = re.columns) == null ? void 0 : $.find((
|
|
15278
|
+
const t = [], f = ($ = re.columns) == null ? void 0 : $.find((k) => k.field === "group");
|
|
15260
15279
|
if (t.push({
|
|
15261
15280
|
type: "checkbox",
|
|
15262
15281
|
width: 60,
|
|
@@ -15270,8 +15289,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15270
15289
|
footer: "checkbox_footer"
|
|
15271
15290
|
}
|
|
15272
15291
|
}), f && t.push(f), (!m.formData.fields || m.formData.fields.length === 0) && Be.value.length > 0) {
|
|
15273
|
-
const
|
|
15274
|
-
return Object.keys(
|
|
15292
|
+
const k = Be.value[0];
|
|
15293
|
+
return Object.keys(k).forEach((K) => {
|
|
15275
15294
|
const Z = {
|
|
15276
15295
|
field: K,
|
|
15277
15296
|
title: K.charAt(0).toUpperCase() + K.slice(1),
|
|
@@ -15279,11 +15298,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15279
15298
|
headerAlign: "center",
|
|
15280
15299
|
sortable: !0
|
|
15281
15300
|
};
|
|
15282
|
-
|
|
15301
|
+
Ue(Z, { __config__: { cdkey: "input" } }), t.push(Z);
|
|
15283
15302
|
}), t;
|
|
15284
15303
|
}
|
|
15285
15304
|
if (m.formData.fields && m.formData.fields.length > 0) {
|
|
15286
|
-
const
|
|
15305
|
+
const k = (Z, se = !1) => {
|
|
15287
15306
|
const pe = Z.__config__;
|
|
15288
15307
|
if (pe.noShow)
|
|
15289
15308
|
return null;
|
|
@@ -15291,42 +15310,42 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15291
15310
|
if ($e && Array.isArray($e) && !$e.includes(m.deviceType))
|
|
15292
15311
|
return null;
|
|
15293
15312
|
if (pe.cdkey === "vxeSubGrid") {
|
|
15294
|
-
const
|
|
15313
|
+
const Re = Z.__vModel__;
|
|
15295
15314
|
return {
|
|
15296
|
-
field: `_subgrid_${
|
|
15315
|
+
field: `_subgrid_${Re}`,
|
|
15297
15316
|
title: pe.label,
|
|
15298
15317
|
width: 120,
|
|
15299
15318
|
align: "center",
|
|
15300
15319
|
headerAlign: "center",
|
|
15301
15320
|
sortable: !1,
|
|
15302
15321
|
slots: {
|
|
15303
|
-
default: `subgrid_trigger_${
|
|
15322
|
+
default: `subgrid_trigger_${Re}`
|
|
15304
15323
|
}
|
|
15305
15324
|
};
|
|
15306
15325
|
}
|
|
15307
15326
|
if (pe.layout === "rowFormItem" && pe.children && Array.isArray(pe.children)) {
|
|
15308
|
-
const
|
|
15327
|
+
const Re = [];
|
|
15309
15328
|
if (pe.children.forEach((Pe) => {
|
|
15310
15329
|
const Ne = Pe.__config__;
|
|
15311
15330
|
if (Ne.layout === "colFormItem" && Pe.__vModel__ && !Ne.noShow) {
|
|
15312
|
-
const
|
|
15313
|
-
|
|
15331
|
+
const He = Ve(Pe, !0);
|
|
15332
|
+
He && Re.push(He);
|
|
15314
15333
|
}
|
|
15315
|
-
}),
|
|
15334
|
+
}), Re.length > 0)
|
|
15316
15335
|
return {
|
|
15317
15336
|
key: `group_${pe.formId}`,
|
|
15318
15337
|
title: pe.label,
|
|
15319
|
-
children:
|
|
15338
|
+
children: Re
|
|
15320
15339
|
};
|
|
15321
15340
|
} else if (pe.layout === "colFormItem" && Z.__vModel__) {
|
|
15322
|
-
const
|
|
15323
|
-
if (
|
|
15324
|
-
return
|
|
15341
|
+
const Re = Ve(Z, !1);
|
|
15342
|
+
if (Re)
|
|
15343
|
+
return Re;
|
|
15325
15344
|
}
|
|
15326
15345
|
return null;
|
|
15327
15346
|
};
|
|
15328
15347
|
m.formData.fields.forEach((Z) => {
|
|
15329
|
-
const se =
|
|
15348
|
+
const se = k(Z);
|
|
15330
15349
|
se && t.push(se);
|
|
15331
15350
|
}), t.length < 6 && (t[t.length - 1].width = "20%"), m.formData.fields.some(
|
|
15332
15351
|
(Z) => {
|
|
@@ -15400,24 +15419,24 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15400
15419
|
data: [],
|
|
15401
15420
|
footerData: []
|
|
15402
15421
|
});
|
|
15403
|
-
|
|
15422
|
+
Fe(() => m.loading, (t) => {
|
|
15404
15423
|
re.loading = t;
|
|
15405
|
-
}, { immediate: !0 }),
|
|
15424
|
+
}, { immediate: !0 }), Fe(() => m.showType, (t) => {
|
|
15406
15425
|
re.height = t === "dialog" ? "500px" : "100%";
|
|
15407
|
-
}, { immediate: !0 }),
|
|
15426
|
+
}, { immediate: !0 }), Fe(() => ce.value, (t) => {
|
|
15408
15427
|
re.data = t || [];
|
|
15409
|
-
}, { immediate: !1 }),
|
|
15428
|
+
}, { immediate: !1 }), Fe(() => [m.formData.fields, m.tableColumns, _.value.groupField], () => {
|
|
15410
15429
|
re.columns = ra();
|
|
15411
|
-
}, { deep: !0, immediate: !0 }),
|
|
15430
|
+
}, { deep: !0, immediate: !0 }), Fe(() => Be.value.length, () => {
|
|
15412
15431
|
if (!Be.value.length || !re.columns) return;
|
|
15413
15432
|
const t = h(m.formData.fields), f = new Map(t.map(($) => [$.__vModel__, $]));
|
|
15414
15433
|
re.columns.forEach(($) => {
|
|
15415
|
-
const
|
|
15416
|
-
|
|
15434
|
+
const k = f.get($.field);
|
|
15435
|
+
k && Ue($, k);
|
|
15417
15436
|
}), na(() => {
|
|
15418
15437
|
r.value && r.value.refreshColumn();
|
|
15419
15438
|
});
|
|
15420
|
-
}),
|
|
15439
|
+
}), Fe(() => _.value.groupField, (t) => {
|
|
15421
15440
|
if (t) {
|
|
15422
15441
|
const f = Array.isArray(t) ? t.filter(($) => $ && $.trim() !== "") : t.trim() !== "" ? [t] : [];
|
|
15423
15442
|
f.length > 0 ? re.aggregateConfig = {
|
|
@@ -15429,7 +15448,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15429
15448
|
} : re.aggregateConfig = void 0;
|
|
15430
15449
|
} else
|
|
15431
15450
|
re.aggregateConfig = void 0;
|
|
15432
|
-
}, { deep: !0, immediate: !0 }),
|
|
15451
|
+
}, { deep: !0, immediate: !0 }), Fe(() => [_.value.treeConfig, ce.value], () => {
|
|
15433
15452
|
const t = _.value.treeConfig;
|
|
15434
15453
|
if ((t == null ? void 0 : t.enabled) !== !1) {
|
|
15435
15454
|
const f = ce.value.some(($) => $.children && $.children.length > 0);
|
|
@@ -15447,7 +15466,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15447
15466
|
} : re.treeConfig = void 0;
|
|
15448
15467
|
} else
|
|
15449
15468
|
re.treeConfig = void 0;
|
|
15450
|
-
}, { deep: !0, immediate: !0 }),
|
|
15469
|
+
}, { deep: !0, immediate: !0 }), Fe(() => [
|
|
15451
15470
|
_.value.headerCellStyle,
|
|
15452
15471
|
_.value.headerCellClassName,
|
|
15453
15472
|
X.value
|
|
@@ -15457,57 +15476,57 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15457
15476
|
const ia = {
|
|
15458
15477
|
// 求和
|
|
15459
15478
|
sum: (t, f, $ = 2) => {
|
|
15460
|
-
let
|
|
15479
|
+
let k = 0;
|
|
15461
15480
|
return t.forEach((K) => {
|
|
15462
15481
|
const Z = Number(K[f]);
|
|
15463
|
-
isNaN(Z) || (
|
|
15464
|
-
}),
|
|
15482
|
+
isNaN(Z) || (k += Z);
|
|
15483
|
+
}), k.toFixed($);
|
|
15465
15484
|
},
|
|
15466
15485
|
// 平均值
|
|
15467
15486
|
average: (t, f, $ = 2) => {
|
|
15468
15487
|
if (t.length === 0) return "0";
|
|
15469
|
-
let
|
|
15488
|
+
let k = 0;
|
|
15470
15489
|
return t.forEach((K) => {
|
|
15471
15490
|
const Z = Number(K[f]);
|
|
15472
|
-
isNaN(Z) || (
|
|
15473
|
-
}), (
|
|
15491
|
+
isNaN(Z) || (k += Z);
|
|
15492
|
+
}), (k / t.length).toFixed($);
|
|
15474
15493
|
},
|
|
15475
15494
|
// 最大值
|
|
15476
15495
|
max: (t, f, $ = 2) => {
|
|
15477
15496
|
if (t.length === 0) return "0";
|
|
15478
|
-
let
|
|
15497
|
+
let k = -1 / 0;
|
|
15479
15498
|
return t.forEach((K) => {
|
|
15480
15499
|
const Z = Number(K[f]);
|
|
15481
|
-
!isNaN(Z) && Z >
|
|
15482
|
-
}),
|
|
15500
|
+
!isNaN(Z) && Z > k && (k = Z);
|
|
15501
|
+
}), k === -1 / 0 ? "0" : k.toFixed($);
|
|
15483
15502
|
},
|
|
15484
15503
|
// 最小值
|
|
15485
15504
|
min: (t, f, $ = 2) => {
|
|
15486
15505
|
if (t.length === 0) return "0";
|
|
15487
|
-
let
|
|
15506
|
+
let k = 1 / 0;
|
|
15488
15507
|
return t.forEach((K) => {
|
|
15489
15508
|
const Z = Number(K[f]);
|
|
15490
|
-
!isNaN(Z) && Z <
|
|
15491
|
-
}),
|
|
15509
|
+
!isNaN(Z) && Z < k && (k = Z);
|
|
15510
|
+
}), k === 1 / 0 ? "0" : k.toFixed($);
|
|
15492
15511
|
},
|
|
15493
15512
|
// 计数
|
|
15494
15513
|
count: (t, f) => t.filter(($) => $[f] !== null && $[f] !== void 0 && $[f] !== "").length.toString(),
|
|
15495
15514
|
// 中位数
|
|
15496
15515
|
median: (t, f, $ = 2) => {
|
|
15497
|
-
const
|
|
15498
|
-
if (
|
|
15499
|
-
const K = Math.floor(
|
|
15500
|
-
return (
|
|
15516
|
+
const k = t.map((se) => Number(se[f])).filter((se) => !isNaN(se)).sort((se, pe) => se - pe);
|
|
15517
|
+
if (k.length === 0) return "0";
|
|
15518
|
+
const K = Math.floor(k.length / 2);
|
|
15519
|
+
return (k.length % 2 === 0 ? (k[K - 1] + k[K]) / 2 : k[K]).toFixed($);
|
|
15501
15520
|
},
|
|
15502
15521
|
// 众数
|
|
15503
15522
|
mode: (t, f, $ = 2) => {
|
|
15504
|
-
const
|
|
15523
|
+
const k = {};
|
|
15505
15524
|
let K = 0, Z = 0;
|
|
15506
15525
|
return t.forEach((se) => {
|
|
15507
15526
|
const pe = Number(se[f]);
|
|
15508
15527
|
if (!isNaN(pe)) {
|
|
15509
15528
|
const $e = pe.toString();
|
|
15510
|
-
|
|
15529
|
+
k[$e] = (k[$e] || 0) + 1, k[$e] > K && (K = k[$e], Z = pe);
|
|
15511
15530
|
}
|
|
15512
15531
|
}), Z.toFixed($);
|
|
15513
15532
|
}
|
|
@@ -15516,11 +15535,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15516
15535
|
enabled: !1,
|
|
15517
15536
|
operations: []
|
|
15518
15537
|
};
|
|
15519
|
-
return h(m.formData.fields).forEach((
|
|
15520
|
-
const K =
|
|
15538
|
+
return h(m.formData.fields).forEach((k) => {
|
|
15539
|
+
const K = k.__config__, Z = k.__vModel__, se = K.cdkey;
|
|
15521
15540
|
if (!Z || K.noShow || se === "billno" || se === "divider")
|
|
15522
15541
|
return;
|
|
15523
|
-
const pe = K.summary ||
|
|
15542
|
+
const pe = K.summary || k.summary;
|
|
15524
15543
|
(se === "number" || se === "calculate") && (t.push(Z), pe != null && pe.enabled && (f.enabled = !0, pe.operations && Array.isArray(pe.operations) && pe.operations.forEach(($e) => {
|
|
15525
15544
|
$e.enabled !== !1 && f.operations.push({
|
|
15526
15545
|
...$e,
|
|
@@ -15537,7 +15556,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15537
15556
|
const { numericFields: f, summaryConfig: $ } = Me();
|
|
15538
15557
|
if (!$.enabled || f.length === 0)
|
|
15539
15558
|
return [];
|
|
15540
|
-
const
|
|
15559
|
+
const k = [];
|
|
15541
15560
|
return $.operations.forEach((K) => {
|
|
15542
15561
|
if (!K.enabled) return;
|
|
15543
15562
|
const Z = {
|
|
@@ -15550,10 +15569,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15550
15569
|
const $e = pe(t, se, K.decimalPlaces);
|
|
15551
15570
|
Z[se] = K.showUnit && K.unit ? `${$e} ${K.unit}` : $e;
|
|
15552
15571
|
}
|
|
15553
|
-
}),
|
|
15554
|
-
}),
|
|
15572
|
+
}), k.push(Z);
|
|
15573
|
+
}), k;
|
|
15555
15574
|
};
|
|
15556
|
-
|
|
15575
|
+
Fe(() => ce.value, (t) => {
|
|
15557
15576
|
re.footerData = sa(t);
|
|
15558
15577
|
}, { deep: !0, immediate: !0 });
|
|
15559
15578
|
const Le = () => {
|
|
@@ -15569,13 +15588,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15569
15588
|
Te();
|
|
15570
15589
|
break;
|
|
15571
15590
|
case "edit":
|
|
15572
|
-
|
|
15591
|
+
Ae();
|
|
15573
15592
|
break;
|
|
15574
15593
|
case "remove":
|
|
15575
15594
|
oa();
|
|
15576
15595
|
break;
|
|
15577
15596
|
case "detail":
|
|
15578
|
-
|
|
15597
|
+
ea();
|
|
15579
15598
|
break;
|
|
15580
15599
|
case "group":
|
|
15581
15600
|
g.value = !0;
|
|
@@ -15587,7 +15606,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15587
15606
|
me();
|
|
15588
15607
|
break;
|
|
15589
15608
|
case "batchRemove":
|
|
15590
|
-
|
|
15609
|
+
_a();
|
|
15591
15610
|
break;
|
|
15592
15611
|
case "share":
|
|
15593
15612
|
B.value = !0;
|
|
@@ -15619,7 +15638,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15619
15638
|
var $;
|
|
15620
15639
|
($ = I.value) == null || $.initFormData({ ...t[0] });
|
|
15621
15640
|
});
|
|
15622
|
-
},
|
|
15641
|
+
}, Ae = () => {
|
|
15623
15642
|
var $;
|
|
15624
15643
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15625
15644
|
if (!t || t.length === 0) {
|
|
@@ -15632,10 +15651,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15632
15651
|
}
|
|
15633
15652
|
const f = t[0];
|
|
15634
15653
|
L.value = "edit", x.value = f, ue.value = "编辑", de.value = !0, na(() => {
|
|
15635
|
-
var
|
|
15636
|
-
(
|
|
15654
|
+
var k;
|
|
15655
|
+
(k = I.value) == null || k.initFormData({ ...f });
|
|
15637
15656
|
});
|
|
15638
|
-
},
|
|
15657
|
+
}, ea = () => {
|
|
15639
15658
|
var $;
|
|
15640
15659
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15641
15660
|
if (!t || t.length === 0) {
|
|
@@ -15648,15 +15667,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15648
15667
|
}
|
|
15649
15668
|
const f = t[0];
|
|
15650
15669
|
L.value = "detail", ue.value = "详情", de.value = !0, na(() => {
|
|
15651
|
-
var
|
|
15652
|
-
(
|
|
15670
|
+
var k;
|
|
15671
|
+
(k = I.value) == null || k.initFormData({ ...f });
|
|
15653
15672
|
});
|
|
15654
15673
|
}, Ye = ({ row: t, column: f }) => {
|
|
15655
15674
|
var Z, se, pe;
|
|
15656
15675
|
if (!t || t._isEmpty)
|
|
15657
15676
|
return;
|
|
15658
15677
|
w("row-dblclick", t);
|
|
15659
|
-
const $ = ((Z = m.formData) == null ? void 0 : Z.hasWorkflow) || !1,
|
|
15678
|
+
const $ = ((Z = m.formData) == null ? void 0 : Z.hasWorkflow) || !1, k = t.FDOCUMENTSTATE === "C" || t.fdocumentstate === "C", K = !($ && k);
|
|
15660
15679
|
if (m.showType !== "dialog")
|
|
15661
15680
|
if (N.value && K) {
|
|
15662
15681
|
const $e = f && ((pe = (se = r.value) == null ? void 0 : se.getColumnByField) == null ? void 0 : pe.call(se, f.field));
|
|
@@ -15668,7 +15687,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15668
15687
|
})) : K || (L.value = "detail", ue.value = "详情", de.value = !0, na(() => {
|
|
15669
15688
|
I.value && I.value.initFormData({ ...t });
|
|
15670
15689
|
}), w("detail", t));
|
|
15671
|
-
},
|
|
15690
|
+
}, la = ({ row: t, column: f }) => {
|
|
15672
15691
|
if (!(!t || t._isEmpty)) {
|
|
15673
15692
|
if (m.showType === "dialog" && r.value)
|
|
15674
15693
|
if (m.selectionMode === "single")
|
|
@@ -15676,8 +15695,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15676
15695
|
else {
|
|
15677
15696
|
const $ = r.value.isCheckedByCheckboxRow(t);
|
|
15678
15697
|
r.value.setCheckboxRow(t, !$);
|
|
15679
|
-
const
|
|
15680
|
-
w("selection-change",
|
|
15698
|
+
const k = r.value.getCheckboxRecords();
|
|
15699
|
+
w("selection-change", k);
|
|
15681
15700
|
}
|
|
15682
15701
|
w("row-click", t);
|
|
15683
15702
|
}
|
|
@@ -15689,53 +15708,53 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15689
15708
|
return;
|
|
15690
15709
|
}
|
|
15691
15710
|
w("delete", t.length === 1 ? t[0] : t);
|
|
15692
|
-
},
|
|
15711
|
+
}, _a = () => {
|
|
15693
15712
|
var $;
|
|
15694
15713
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15695
15714
|
if (!t || t.length === 0) {
|
|
15696
15715
|
Ie.warning("请选择要删除的数据");
|
|
15697
15716
|
return;
|
|
15698
15717
|
}
|
|
15699
|
-
const f = t.map((
|
|
15718
|
+
const f = t.map((k) => String(k.fid || k.id));
|
|
15700
15719
|
w("batch-delete", f);
|
|
15701
|
-
},
|
|
15720
|
+
}, Wa = ({ row: t, column: f }) => {
|
|
15702
15721
|
if (!N.value || !t || !f) return;
|
|
15703
15722
|
const $ = f.field || f.property;
|
|
15704
15723
|
if ($) {
|
|
15705
|
-
const
|
|
15706
|
-
E.value.set(
|
|
15724
|
+
const k = `${t.fid}_${$}`;
|
|
15725
|
+
E.value.set(k, t[$]);
|
|
15707
15726
|
}
|
|
15708
|
-
},
|
|
15727
|
+
}, Ya = ({ row: t, column: f }) => {
|
|
15709
15728
|
if (!N.value || !t || t._isEmpty) return;
|
|
15710
|
-
const $ = t.fid,
|
|
15729
|
+
const $ = t.fid, k = { _originalId: $ };
|
|
15711
15730
|
for (const [K, Z] of Object.entries(t))
|
|
15712
|
-
Z !== void 0 && (
|
|
15713
|
-
H.value.set($,
|
|
15714
|
-
},
|
|
15731
|
+
Z !== void 0 && (k[K] = Z);
|
|
15732
|
+
H.value.set($, k), r.value && (r.value.setCheckboxRow(t, !0), W.value.add($)), ge.value = !0;
|
|
15733
|
+
}, Ha = ({ row: t, column: f }) => {
|
|
15715
15734
|
if (N.value)
|
|
15716
15735
|
if (t._isEmpty) {
|
|
15717
|
-
if (Object.keys(t).some((
|
|
15718
|
-
const
|
|
15719
|
-
delete
|
|
15736
|
+
if (Object.keys(t).some((k) => k === "fid" || k === "_isEmpty" ? !1 : t[k] !== null && t[k] !== void 0 && t[k] !== "")) {
|
|
15737
|
+
const k = { ...t };
|
|
15738
|
+
delete k._isEmpty, k.fid = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
15720
15739
|
const K = {};
|
|
15721
|
-
for (const [Z, se] of Object.entries(
|
|
15740
|
+
for (const [Z, se] of Object.entries(k))
|
|
15722
15741
|
se !== void 0 && (K[Z] = se);
|
|
15723
15742
|
w("inline-save", [K]);
|
|
15724
15743
|
}
|
|
15725
15744
|
} else {
|
|
15726
15745
|
const $ = (f == null ? void 0 : f.field) || (f == null ? void 0 : f.property);
|
|
15727
15746
|
if ($ && t.fid) {
|
|
15728
|
-
const
|
|
15747
|
+
const k = `${t.fid}_${$}`, K = E.value.get(k), Z = t[$];
|
|
15729
15748
|
if (K !== Z) {
|
|
15730
15749
|
const se = { _originalId: t.fid };
|
|
15731
15750
|
for (const [pe, $e] of Object.entries(t))
|
|
15732
15751
|
$e !== void 0 && (se[pe] = $e);
|
|
15733
15752
|
w("inline-save", [se]);
|
|
15734
15753
|
}
|
|
15735
|
-
E.value.delete(
|
|
15754
|
+
E.value.delete(k);
|
|
15736
15755
|
}
|
|
15737
15756
|
}
|
|
15738
|
-
},
|
|
15757
|
+
}, Ja = async () => {
|
|
15739
15758
|
if (!ge.value || H.value.size === 0) {
|
|
15740
15759
|
Ie.warning("没有需要保存的更改");
|
|
15741
15760
|
return;
|
|
@@ -15743,21 +15762,21 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15743
15762
|
try {
|
|
15744
15763
|
const t = Array.from(H.value.values()).map((f) => {
|
|
15745
15764
|
const $ = {};
|
|
15746
|
-
for (const [
|
|
15747
|
-
K !== void 0 && ($[
|
|
15765
|
+
for (const [k, K] of Object.entries(f))
|
|
15766
|
+
K !== void 0 && ($[k] = K);
|
|
15748
15767
|
return $;
|
|
15749
15768
|
});
|
|
15750
15769
|
w("inline-save", t), H.value.clear(), W.value.clear(), ge.value = !1, r.value && r.value.clearCheckboxRow();
|
|
15751
15770
|
} catch {
|
|
15752
15771
|
Ie.error("保存失败");
|
|
15753
15772
|
}
|
|
15754
|
-
},
|
|
15755
|
-
var $,
|
|
15773
|
+
}, xa = async () => {
|
|
15774
|
+
var $, k, K, Z;
|
|
15756
15775
|
if (!await (($ = I.value) == null ? void 0 : $.validate())) {
|
|
15757
15776
|
Ie.error("请完善表单信息");
|
|
15758
15777
|
return;
|
|
15759
15778
|
}
|
|
15760
|
-
const f = (
|
|
15779
|
+
const f = (k = I.value) == null ? void 0 : k.getFormData();
|
|
15761
15780
|
if ((K = m.formData.funcs) != null && K.beforeSubmit)
|
|
15762
15781
|
try {
|
|
15763
15782
|
await new Function("context", `
|
|
@@ -15799,20 +15818,20 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15799
15818
|
console.error("执行 afterSubmit 出错:", se);
|
|
15800
15819
|
}
|
|
15801
15820
|
de.value = !1, w("refresh");
|
|
15802
|
-
},
|
|
15803
|
-
await
|
|
15821
|
+
}, Ka = async () => {
|
|
15822
|
+
await xa(), setTimeout(() => {
|
|
15804
15823
|
ie();
|
|
15805
15824
|
}, 300);
|
|
15806
|
-
},
|
|
15825
|
+
}, Ra = () => {
|
|
15807
15826
|
de.value = !1;
|
|
15808
|
-
},
|
|
15827
|
+
}, Ga = (t) => {
|
|
15809
15828
|
w("select-org-data", t);
|
|
15810
|
-
},
|
|
15829
|
+
}, Xa = (t) => {
|
|
15811
15830
|
w("page-change", {
|
|
15812
15831
|
currentPage: t.current,
|
|
15813
15832
|
pageSize: S.value
|
|
15814
15833
|
});
|
|
15815
|
-
},
|
|
15834
|
+
}, Ea = (t) => {
|
|
15816
15835
|
d.value = 1, w("page-change", {
|
|
15817
15836
|
currentPage: 1,
|
|
15818
15837
|
pageSize: t
|
|
@@ -15829,7 +15848,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15829
15848
|
}
|
|
15830
15849
|
}
|
|
15831
15850
|
w("selection-change", t.records || []);
|
|
15832
|
-
},
|
|
15851
|
+
}, Qa = (t) => {
|
|
15833
15852
|
if (m.selectionMode === "single" && r.value) {
|
|
15834
15853
|
const f = t.records || [];
|
|
15835
15854
|
if (f.length > 0) {
|
|
@@ -15840,27 +15859,27 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15840
15859
|
}
|
|
15841
15860
|
}
|
|
15842
15861
|
w("selection-change", t.records || []);
|
|
15843
|
-
},
|
|
15862
|
+
}, Pa = (t) => {
|
|
15844
15863
|
w("filter-search", t);
|
|
15845
|
-
},
|
|
15864
|
+
}, Za = () => {
|
|
15846
15865
|
w("filter-reset");
|
|
15847
|
-
},
|
|
15866
|
+
}, el = (t) => {
|
|
15848
15867
|
w("save-plan", t);
|
|
15849
|
-
},
|
|
15868
|
+
}, ka = (t) => {
|
|
15850
15869
|
w("delete-plan", t);
|
|
15851
|
-
},
|
|
15870
|
+
}, al = (t) => {
|
|
15852
15871
|
w("copy-plan", t);
|
|
15853
|
-
},
|
|
15872
|
+
}, ll = (t) => {
|
|
15854
15873
|
w("set-default-plan", t);
|
|
15855
|
-
},
|
|
15874
|
+
}, tl = (t) => {
|
|
15856
15875
|
w("update-plan", t);
|
|
15857
|
-
},
|
|
15876
|
+
}, nl = (t) => {
|
|
15858
15877
|
w("load-users", t);
|
|
15859
|
-
},
|
|
15878
|
+
}, ol = (t) => {
|
|
15860
15879
|
w("search-persons", t);
|
|
15861
|
-
},
|
|
15880
|
+
}, ba = (t) => {
|
|
15862
15881
|
w("dept-click", t);
|
|
15863
|
-
},
|
|
15882
|
+
}, $a = (t) => {
|
|
15864
15883
|
t && t.length > 0 && (t.forEach((f) => {
|
|
15865
15884
|
oe.value.set(f.value, {
|
|
15866
15885
|
width: f.width ? parseInt(f.width) : void 0,
|
|
@@ -15870,27 +15889,27 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15870
15889
|
}), na(() => {
|
|
15871
15890
|
re.columns = ra(), r.value && r.value.refreshColumn();
|
|
15872
15891
|
})), w("column-change", t);
|
|
15873
|
-
},
|
|
15892
|
+
}, il = (t) => {
|
|
15874
15893
|
X.value = t || [], w("color-filter-change", t);
|
|
15875
|
-
},
|
|
15894
|
+
}, sl = () => {
|
|
15876
15895
|
X.value = [], w("color-filter-clear");
|
|
15877
|
-
},
|
|
15896
|
+
}, rl = ve(() => {
|
|
15878
15897
|
var t;
|
|
15879
15898
|
return ((t = m.businessFlow) == null ? void 0 : t.downstream) && m.businessFlow.downstream.length > 0;
|
|
15880
|
-
}),
|
|
15881
|
-
var $,
|
|
15899
|
+
}), Ia = () => {
|
|
15900
|
+
var $, k;
|
|
15882
15901
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15883
15902
|
if (!t || t.length === 0) {
|
|
15884
15903
|
Ie.warning("请选择要下推的数据");
|
|
15885
15904
|
return;
|
|
15886
15905
|
}
|
|
15887
|
-
const f = ((
|
|
15906
|
+
const f = ((k = m.businessFlow) == null ? void 0 : k.downstream) || [];
|
|
15888
15907
|
if (f.length === 0) {
|
|
15889
15908
|
Ie.warning("未配置下游单据");
|
|
15890
15909
|
return;
|
|
15891
15910
|
}
|
|
15892
15911
|
f.length === 1 ? w("push-down", { downstream: f[0], selectedRows: t }) : P.value = !0;
|
|
15893
|
-
},
|
|
15912
|
+
}, dl = () => {
|
|
15894
15913
|
var f;
|
|
15895
15914
|
if (!G.value) {
|
|
15896
15915
|
Ie.warning("请选择下推目标");
|
|
@@ -15898,24 +15917,24 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15898
15917
|
}
|
|
15899
15918
|
const t = (f = r.value) == null ? void 0 : f.getCheckboxRecords();
|
|
15900
15919
|
w("push-down", { downstream: G.value, selectedRows: t }), P.value = !1, G.value = null;
|
|
15901
|
-
},
|
|
15920
|
+
}, Oa = (t) => {
|
|
15902
15921
|
w("select-upstream", { upstream: t });
|
|
15903
|
-
},
|
|
15922
|
+
}, Ta = () => {
|
|
15904
15923
|
var $;
|
|
15905
15924
|
if (!R.value || R.value.length === 0) {
|
|
15906
15925
|
if (re.aggregateConfig = {}, re.columns) {
|
|
15907
|
-
const
|
|
15908
|
-
|
|
15926
|
+
const k = re.columns.findIndex((K) => K.field === "group");
|
|
15927
|
+
k > -1 && re.columns.splice(k, 1), re.columns.forEach((K) => {
|
|
15909
15928
|
K.rowGroupNode && (K.rowGroupNode = !1, delete K.slots);
|
|
15910
15929
|
});
|
|
15911
15930
|
}
|
|
15912
15931
|
return g.value = !1, w("group", { groupFields: [], mergeFields: !1 }), !0;
|
|
15913
15932
|
}
|
|
15914
15933
|
g.value = !1;
|
|
15915
|
-
const t = R.value.filter((
|
|
15916
|
-
return t.length === 0 ? (re.aggregateConfig = {}, g.value = !1, w("group", { groupFields: [], mergeFields: !1 }), !0) : (re.data && Array.isArray(re.data) && re.data.forEach((
|
|
15917
|
-
|
|
15918
|
-
}), !(($ = re.columns) == null ? void 0 : $.some((
|
|
15934
|
+
const t = R.value.filter((k) => k && k.trim() !== "");
|
|
15935
|
+
return t.length === 0 ? (re.aggregateConfig = {}, g.value = !1, w("group", { groupFields: [], mergeFields: !1 }), !0) : (re.data && Array.isArray(re.data) && re.data.forEach((k) => {
|
|
15936
|
+
k.group = t.map((K) => k[K] || "").join("-");
|
|
15937
|
+
}), !(($ = re.columns) == null ? void 0 : $.some((k) => k.field === "group")) && re.columns && re.columns.splice(1, 0, {
|
|
15919
15938
|
field: "group",
|
|
15920
15939
|
title: "分组",
|
|
15921
15940
|
width: 200,
|
|
@@ -15936,58 +15955,58 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15936
15955
|
mergeFields: O.value,
|
|
15937
15956
|
updatedData: Be.value
|
|
15938
15957
|
}), g.value = !1, !0);
|
|
15939
|
-
},
|
|
15958
|
+
}, ul = () => {
|
|
15940
15959
|
g.value = !1;
|
|
15941
15960
|
}, Ce = (t) => {
|
|
15942
15961
|
console.log("选择文件:", t);
|
|
15943
15962
|
}, Ee = () => {
|
|
15944
|
-
if (
|
|
15963
|
+
if (C.value.length === 0) {
|
|
15945
15964
|
Ie.warning("请选择要导入的文件");
|
|
15946
15965
|
return;
|
|
15947
15966
|
}
|
|
15948
|
-
const t =
|
|
15949
|
-
w("import", t), ne.value = !1,
|
|
15967
|
+
const t = C.value[0];
|
|
15968
|
+
w("import", t), ne.value = !1, C.value = [];
|
|
15950
15969
|
}, me = () => {
|
|
15951
15970
|
w("export");
|
|
15952
15971
|
}, va = (t) => {
|
|
15953
15972
|
w("share", t), B.value = !1;
|
|
15954
|
-
}, ua = F(/* @__PURE__ */ new Map()),
|
|
15973
|
+
}, ua = F(/* @__PURE__ */ new Map()), Na = ve(() => {
|
|
15955
15974
|
const t = [];
|
|
15956
15975
|
return !m.formData.fields || m.formData.fields.length === 0 || m.formData.fields.forEach((f) => {
|
|
15957
15976
|
const $ = f.__config__;
|
|
15958
15977
|
if ($.cdkey === "vxeSubGrid" && !$.noShow) {
|
|
15959
|
-
const
|
|
15978
|
+
const k = f.__vModel__, K = f.children || f.__config__.children || [];
|
|
15960
15979
|
t.push({
|
|
15961
|
-
vModel:
|
|
15980
|
+
vModel: k,
|
|
15962
15981
|
label: $.label,
|
|
15963
15982
|
children: K,
|
|
15964
15983
|
field: f
|
|
15965
15984
|
});
|
|
15966
15985
|
}
|
|
15967
15986
|
}), t;
|
|
15968
|
-
}),
|
|
15987
|
+
}), cl = (t, f) => {
|
|
15969
15988
|
const $ = String(t.id);
|
|
15970
15989
|
ua.value.has(f) || ua.value.set(f, /* @__PURE__ */ new Set());
|
|
15971
|
-
const
|
|
15972
|
-
|
|
15973
|
-
},
|
|
15974
|
-
var
|
|
15990
|
+
const k = ua.value.get(f);
|
|
15991
|
+
k.has($) ? (k.delete($), !Array.from(ua.value.entries()).some(([se, pe]) => se !== f && pe.has($)) && r.value && r.value.setRowExpand(t, !1)) : (k.add($), r.value && r.value.setRowExpand(t, !0));
|
|
15992
|
+
}, hl = (t, f) => {
|
|
15993
|
+
var k;
|
|
15975
15994
|
const $ = String(t.id);
|
|
15976
|
-
return ((
|
|
15995
|
+
return ((k = ua.value.get(f)) == null ? void 0 : k.has($)) || !1;
|
|
15977
15996
|
}, Pl = (t) => {
|
|
15978
15997
|
const f = [];
|
|
15979
|
-
return (t.children || []).forEach((
|
|
15980
|
-
const K =
|
|
15998
|
+
return (t.children || []).forEach((k) => {
|
|
15999
|
+
const K = k.__config__;
|
|
15981
16000
|
if (!K || K.noShow)
|
|
15982
16001
|
return;
|
|
15983
|
-
const Z =
|
|
16002
|
+
const Z = k.field || k.__vModel__;
|
|
15984
16003
|
if (!Z)
|
|
15985
16004
|
return;
|
|
15986
16005
|
const se = {
|
|
15987
16006
|
field: Z,
|
|
15988
|
-
title:
|
|
15989
|
-
width:
|
|
15990
|
-
align:
|
|
16007
|
+
title: k.title || K.label || Z,
|
|
16008
|
+
width: k.width || k.minWidth || K.tableWidth || 150,
|
|
16009
|
+
align: k.align || K.tableAlign || "left",
|
|
15991
16010
|
sortable: !1
|
|
15992
16011
|
};
|
|
15993
16012
|
f.push(se);
|
|
@@ -16016,12 +16035,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16016
16035
|
tableRef: r,
|
|
16017
16036
|
formRenderRef: I,
|
|
16018
16037
|
handleAdd: ie,
|
|
16019
|
-
handleEdit:
|
|
16038
|
+
handleEdit: Ae,
|
|
16020
16039
|
handleDelete: oa,
|
|
16021
|
-
handleDetail:
|
|
16022
|
-
handleSaveChanges:
|
|
16023
|
-
handlePushDown:
|
|
16024
|
-
handleSelectUpstream:
|
|
16040
|
+
handleDetail: ea,
|
|
16041
|
+
handleSaveChanges: Ja,
|
|
16042
|
+
handlePushDown: Ia,
|
|
16043
|
+
handleSelectUpstream: Oa,
|
|
16025
16044
|
isInlineEdit: N,
|
|
16026
16045
|
showGroupDialog: g,
|
|
16027
16046
|
selectedGroupField: R,
|
|
@@ -16033,8 +16052,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16033
16052
|
});
|
|
16034
16053
|
}
|
|
16035
16054
|
}), (t, f) => {
|
|
16036
|
-
var
|
|
16037
|
-
const $ = M("t-button"),
|
|
16055
|
+
var Va, Sa, Ba, qa, La;
|
|
16056
|
+
const $ = M("t-button"), k = M("t-dropdown-item"), K = M("t-dropdown-menu"), Z = M("t-dropdown"), se = M("t-select"), pe = M("t-switch"), $e = M("t-dialog"), Re = M("t-radio"), Pe = M("t-radio-group"), Ne = M("t-upload"), He = M("t-tag"), Ge = M("vxe-grid"), ze = M("t-pagination"), Ze = M("t-space"), ga = M("t-drawer");
|
|
16038
16057
|
return l(), o("div", Pf, [
|
|
16039
16058
|
e("div", If, [
|
|
16040
16059
|
e("div", Of, [
|
|
@@ -16042,25 +16061,25 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16042
16061
|
s(ca(Uc), {
|
|
16043
16062
|
"field-options": ae.value,
|
|
16044
16063
|
"filter-count": 2,
|
|
16045
|
-
"select-options":
|
|
16064
|
+
"select-options": De.value,
|
|
16046
16065
|
"plan-filter-options": m.planFilterOptions || [],
|
|
16047
16066
|
"person-tabs": [],
|
|
16048
16067
|
"person-organizations": [],
|
|
16049
16068
|
"visible-columns": [],
|
|
16050
|
-
onSearch:
|
|
16051
|
-
onConfirm:
|
|
16052
|
-
onReset:
|
|
16053
|
-
onSavePlan:
|
|
16054
|
-
onDeletePlan:
|
|
16055
|
-
onCopyPlan:
|
|
16056
|
-
onSetDefaultPlan:
|
|
16057
|
-
onUpdatePlan:
|
|
16058
|
-
onLoadUsers:
|
|
16059
|
-
onSearchPersons:
|
|
16060
|
-
onDeptClick:
|
|
16061
|
-
onColumnChange:
|
|
16062
|
-
onColorFilterChange:
|
|
16063
|
-
onColorFilterClear:
|
|
16069
|
+
onSearch: Pa,
|
|
16070
|
+
onConfirm: Pa,
|
|
16071
|
+
onReset: Za,
|
|
16072
|
+
onSavePlan: el,
|
|
16073
|
+
onDeletePlan: ka,
|
|
16074
|
+
onCopyPlan: al,
|
|
16075
|
+
onSetDefaultPlan: ll,
|
|
16076
|
+
onUpdatePlan: tl,
|
|
16077
|
+
onLoadUsers: nl,
|
|
16078
|
+
onSearchPersons: ol,
|
|
16079
|
+
onDeptClick: ba,
|
|
16080
|
+
onColumnChange: $a,
|
|
16081
|
+
onColorFilterChange: il,
|
|
16082
|
+
onColorFilterClear: sl
|
|
16064
16083
|
}, null, 8, ["field-options", "select-options", "plan-filter-options"])
|
|
16065
16084
|
])) : Y("", !0)
|
|
16066
16085
|
]),
|
|
@@ -16078,7 +16097,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16078
16097
|
variant: "outline",
|
|
16079
16098
|
size: "small",
|
|
16080
16099
|
theme: "primary"
|
|
16081
|
-
},
|
|
16100
|
+
}, ya({
|
|
16082
16101
|
suffix: i(() => [
|
|
16083
16102
|
f[19] || (f[19] = e("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
16084
16103
|
]),
|
|
@@ -16098,17 +16117,17 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16098
16117
|
} : void 0
|
|
16099
16118
|
]), 1024),
|
|
16100
16119
|
s(K, {
|
|
16101
|
-
onClick: f[0] || (f[0] = (
|
|
16120
|
+
onClick: f[0] || (f[0] = (Je) => je({ value: Je.value }))
|
|
16102
16121
|
}, {
|
|
16103
16122
|
default: i(() => [
|
|
16104
|
-
(l(!0), o(fe, null, be(he.children.filter((
|
|
16105
|
-
key:
|
|
16106
|
-
value:
|
|
16107
|
-
disabled:
|
|
16108
|
-
divider:
|
|
16123
|
+
(l(!0), o(fe, null, be(he.children.filter((Je) => Je.show !== !1), (Je) => (l(), j(k, {
|
|
16124
|
+
key: Je.value || Math.random(),
|
|
16125
|
+
value: Je.value,
|
|
16126
|
+
disabled: Je.disabled,
|
|
16127
|
+
divider: Je.divider
|
|
16109
16128
|
}, {
|
|
16110
16129
|
default: i(() => [
|
|
16111
|
-
A(V(
|
|
16130
|
+
A(V(Je.label), 1)
|
|
16112
16131
|
]),
|
|
16113
16132
|
_: 2
|
|
16114
16133
|
}, 1032, ["value", "disabled", "divider"]))), 128))
|
|
@@ -16122,8 +16141,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16122
16141
|
variant: "outline",
|
|
16123
16142
|
size: "small",
|
|
16124
16143
|
theme: "primary",
|
|
16125
|
-
onClick: (
|
|
16126
|
-
},
|
|
16144
|
+
onClick: (Je) => je({ value: he.value })
|
|
16145
|
+
}, ya({
|
|
16127
16146
|
default: i(() => [
|
|
16128
16147
|
A(" " + V(he.label), 1)
|
|
16129
16148
|
]),
|
|
@@ -16136,12 +16155,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16136
16155
|
} : void 0
|
|
16137
16156
|
]), 1032, ["onClick"])) : Y("", !0)
|
|
16138
16157
|
], 64))), 128)),
|
|
16139
|
-
(l(!0), o(fe, null, be(_.value.customBtnsList || [], (he) =>
|
|
16158
|
+
(l(!0), o(fe, null, be(_.value.customBtnsList || [], (he) => ha((l(), j($, {
|
|
16140
16159
|
variant: "outline",
|
|
16141
16160
|
size: "small",
|
|
16142
16161
|
key: he.value,
|
|
16143
|
-
onClick: (
|
|
16144
|
-
},
|
|
16162
|
+
onClick: (Je) => da(he)
|
|
16163
|
+
}, ya({
|
|
16145
16164
|
default: i(() => [
|
|
16146
16165
|
A(" " + V(he.label), 1)
|
|
16147
16166
|
]),
|
|
@@ -16156,12 +16175,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16156
16175
|
[Cl, he.show]
|
|
16157
16176
|
])), 128)),
|
|
16158
16177
|
fa(t.$slots, "toolbar-right", {}, void 0, !0),
|
|
16159
|
-
|
|
16178
|
+
rl.value ? (l(), j($, {
|
|
16160
16179
|
key: 0,
|
|
16161
16180
|
variant: "outline",
|
|
16162
16181
|
size: "small",
|
|
16163
16182
|
theme: "primary",
|
|
16164
|
-
onClick:
|
|
16183
|
+
onClick: Ia
|
|
16165
16184
|
}, {
|
|
16166
16185
|
icon: i(() => [...f[20] || (f[20] = [
|
|
16167
16186
|
e("i", { class: "ri-arrow-down-line" }, null, -1)
|
|
@@ -16179,8 +16198,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16179
16198
|
header: "选择分组字段",
|
|
16180
16199
|
"confirm-btn": { content: "确定", theme: "primary" },
|
|
16181
16200
|
"cancel-btn": { content: "取消", theme: "default" },
|
|
16182
|
-
onConfirm:
|
|
16183
|
-
onClose:
|
|
16201
|
+
onConfirm: Ta,
|
|
16202
|
+
onClose: ul
|
|
16184
16203
|
}, {
|
|
16185
16204
|
default: i(() => [
|
|
16186
16205
|
e("div", Bf, [
|
|
@@ -16212,7 +16231,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16212
16231
|
width: "400px",
|
|
16213
16232
|
"confirm-btn": { content: "确定", theme: "primary" },
|
|
16214
16233
|
"cancel-btn": { content: "取消", theme: "default" },
|
|
16215
|
-
onConfirm:
|
|
16234
|
+
onConfirm: dl
|
|
16216
16235
|
}, {
|
|
16217
16236
|
default: i(() => [
|
|
16218
16237
|
s(Pe, {
|
|
@@ -16223,12 +16242,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16223
16242
|
default: i(() => {
|
|
16224
16243
|
var he;
|
|
16225
16244
|
return [
|
|
16226
|
-
(l(!0), o(fe, null, be(((he = a.businessFlow) == null ? void 0 : he.downstream) || [], (
|
|
16227
|
-
key:
|
|
16228
|
-
value:
|
|
16245
|
+
(l(!0), o(fe, null, be(((he = a.businessFlow) == null ? void 0 : he.downstream) || [], (Je) => (l(), j(Re, {
|
|
16246
|
+
key: Je.formId,
|
|
16247
|
+
value: Je
|
|
16229
16248
|
}, {
|
|
16230
16249
|
default: i(() => [
|
|
16231
|
-
A(V(
|
|
16250
|
+
A(V(Je.formName), 1)
|
|
16232
16251
|
]),
|
|
16233
16252
|
_: 2
|
|
16234
16253
|
}, 1032, ["value"]))), 128))
|
|
@@ -16250,8 +16269,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16250
16269
|
default: i(() => [
|
|
16251
16270
|
e("div", jf, [
|
|
16252
16271
|
s(Ne, {
|
|
16253
|
-
modelValue:
|
|
16254
|
-
"onUpdate:modelValue": f[6] || (f[6] = (he) =>
|
|
16272
|
+
modelValue: C.value,
|
|
16273
|
+
"onUpdate:modelValue": f[6] || (f[6] = (he) => C.value = he),
|
|
16255
16274
|
theme: "file-input",
|
|
16256
16275
|
accept: ".xlsx,.xls,.csv",
|
|
16257
16276
|
"auto-upload": !1,
|
|
@@ -16303,11 +16322,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16303
16322
|
"onUpdate:visible": f[9] || (f[9] = (he) => B.value = he),
|
|
16304
16323
|
title: "单据分享",
|
|
16305
16324
|
shareUrl: m.shareUrl || "",
|
|
16306
|
-
currentPermission: ((
|
|
16307
|
-
owner: (
|
|
16308
|
-
collaborators: ((
|
|
16309
|
-
tabs: ((
|
|
16310
|
-
organizations: ((
|
|
16325
|
+
currentPermission: ((Va = m.shareConfig) == null ? void 0 : Va.currentPermission) || "manage",
|
|
16326
|
+
owner: (Sa = m.shareConfig) == null ? void 0 : Sa.owner,
|
|
16327
|
+
collaborators: ((Ba = m.shareConfig) == null ? void 0 : Ba.collaborators) || [],
|
|
16328
|
+
tabs: ((qa = m.shareConfig) == null ? void 0 : qa.tabs) || [],
|
|
16329
|
+
organizations: ((La = m.shareConfig) == null ? void 0 : La.organizations) || [],
|
|
16311
16330
|
onConfirm: va
|
|
16312
16331
|
}, null, 8, ["visible", "shareUrl", "currentPermission", "owner", "collaborators", "tabs", "organizations"])) : Y("", !0),
|
|
16313
16332
|
e("div", {
|
|
@@ -16315,17 +16334,17 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16315
16334
|
ref_key: "tableContainerRef",
|
|
16316
16335
|
ref: D
|
|
16317
16336
|
}, [
|
|
16318
|
-
s(
|
|
16337
|
+
s(Ge, Aa({
|
|
16319
16338
|
ref_key: "tableRef",
|
|
16320
16339
|
ref: r
|
|
16321
16340
|
}, re, {
|
|
16322
16341
|
"edit-config": J.value,
|
|
16323
16342
|
onCheckboxChange: ma,
|
|
16324
|
-
onCheckboxAll:
|
|
16325
|
-
onEditActived:
|
|
16326
|
-
onEditClosed:
|
|
16327
|
-
onEditChange:
|
|
16328
|
-
onCellClick:
|
|
16343
|
+
onCheckboxAll: Qa,
|
|
16344
|
+
onEditActived: Wa,
|
|
16345
|
+
onEditClosed: Ha,
|
|
16346
|
+
onEditChange: Ya,
|
|
16347
|
+
onCellClick: la,
|
|
16329
16348
|
onCellDblclick: Ye,
|
|
16330
16349
|
onFilterChange: p,
|
|
16331
16350
|
onFilterReset: v,
|
|
@@ -16333,12 +16352,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16333
16352
|
"--vxe-ui-table-header-background-color": "#f0f2f5",
|
|
16334
16353
|
"--vxe-ui-table-footer-background-color": "#fcfffa"
|
|
16335
16354
|
}
|
|
16336
|
-
}),
|
|
16355
|
+
}), ya({
|
|
16337
16356
|
checkbox_footer: i(({ $rowIndex: he }) => [
|
|
16338
16357
|
re.footerData && re.footerData[he] ? (l(), o("span", Yf, V(re.footerData[he].checkbox), 1)) : Y("", !0)
|
|
16339
16358
|
]),
|
|
16340
16359
|
nameGroupContent: i(({ groupContent: he }) => [
|
|
16341
|
-
s(
|
|
16360
|
+
s(He, {
|
|
16342
16361
|
theme: "warning",
|
|
16343
16362
|
variant: "light"
|
|
16344
16363
|
}, {
|
|
@@ -16348,19 +16367,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16348
16367
|
_: 2
|
|
16349
16368
|
}, 1024)
|
|
16350
16369
|
]),
|
|
16351
|
-
nameDefault: i(({ row: he, column:
|
|
16352
|
-
A(V(he[
|
|
16370
|
+
nameDefault: i(({ row: he, column: Je }) => [
|
|
16371
|
+
A(V(he[Je.field]), 1)
|
|
16353
16372
|
]),
|
|
16354
16373
|
expand_content_unified: i(({ row: he }) => [
|
|
16355
16374
|
e("div", Hf, [
|
|
16356
|
-
(l(!0), o(fe, null, be(
|
|
16357
|
-
key: `content_${
|
|
16375
|
+
(l(!0), o(fe, null, be(Na.value, (Je) => (l(), o(fe, {
|
|
16376
|
+
key: `content_${Je.vModel}`
|
|
16358
16377
|
}, [
|
|
16359
|
-
|
|
16360
|
-
e("div", Kf, V(
|
|
16361
|
-
s(
|
|
16362
|
-
data: he[
|
|
16363
|
-
columns: Pl(
|
|
16378
|
+
hl(he, Je.vModel) ? (l(), o("div", Jf, [
|
|
16379
|
+
e("div", Kf, V(Je.label), 1),
|
|
16380
|
+
s(Ge, Aa({ ref_for: !0 }, Il, {
|
|
16381
|
+
data: he[Je.vModel] || [],
|
|
16382
|
+
columns: Pl(Je)
|
|
16364
16383
|
}), null, 16, ["data", "columns"])
|
|
16365
16384
|
])) : Y("", !0)
|
|
16366
16385
|
], 64))), 128))
|
|
@@ -16368,40 +16387,40 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16368
16387
|
]),
|
|
16369
16388
|
_: 2
|
|
16370
16389
|
}, [
|
|
16371
|
-
be(
|
|
16390
|
+
be(Na.value, (he) => ({
|
|
16372
16391
|
name: `subgrid_trigger_${he.vModel}`,
|
|
16373
|
-
fn: i(({ row:
|
|
16392
|
+
fn: i(({ row: Je }) => [
|
|
16374
16393
|
s($, {
|
|
16375
16394
|
variant: "text",
|
|
16376
16395
|
size: "small",
|
|
16377
|
-
disabled: !
|
|
16378
|
-
onClick: (
|
|
16396
|
+
disabled: !Je[he.vModel] || Je[he.vModel].length === 0,
|
|
16397
|
+
onClick: (Ma) => cl(Je, he.vModel)
|
|
16379
16398
|
}, {
|
|
16380
16399
|
icon: i(() => [
|
|
16381
16400
|
e("i", {
|
|
16382
|
-
class: xe(
|
|
16401
|
+
class: xe(hl(Je, he.vModel) ? "ri-arrow-down-s-line" : "ri-arrow-right-s-line")
|
|
16383
16402
|
}, null, 2)
|
|
16384
16403
|
]),
|
|
16385
16404
|
default: i(() => {
|
|
16386
|
-
var
|
|
16405
|
+
var Ma;
|
|
16387
16406
|
return [
|
|
16388
|
-
A(" " + V(((
|
|
16407
|
+
A(" " + V(((Ma = Je[he.vModel]) == null ? void 0 : Ma.length) || 0) + " 条 ", 1)
|
|
16389
16408
|
];
|
|
16390
16409
|
}),
|
|
16391
16410
|
_: 2
|
|
16392
16411
|
}, 1032, ["disabled", "onClick"])
|
|
16393
16412
|
])
|
|
16394
16413
|
})),
|
|
16395
|
-
be(t.$slots, (he,
|
|
16396
|
-
name:
|
|
16397
|
-
fn: i((
|
|
16398
|
-
fa(t.$slots,
|
|
16414
|
+
be(t.$slots, (he, Je) => ({
|
|
16415
|
+
name: Je,
|
|
16416
|
+
fn: i((Ma) => [
|
|
16417
|
+
fa(t.$slots, Je, Nl(Bl(Ma)), void 0, !0)
|
|
16399
16418
|
])
|
|
16400
16419
|
}))
|
|
16401
16420
|
]), 1040, ["edit-config"])
|
|
16402
16421
|
], 512),
|
|
16403
16422
|
_.value.hasPage && Be.value.length > 0 ? (l(), o("div", Gf, [
|
|
16404
|
-
s(
|
|
16423
|
+
s(ze, {
|
|
16405
16424
|
modelValue: d.value,
|
|
16406
16425
|
"onUpdate:modelValue": f[10] || (f[10] = (he) => d.value = he),
|
|
16407
16426
|
pageSize: S.value,
|
|
@@ -16411,11 +16430,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16411
16430
|
"show-jumper": "",
|
|
16412
16431
|
"show-page-size": "",
|
|
16413
16432
|
"show-total": !0,
|
|
16414
|
-
onChange:
|
|
16415
|
-
onPageSizeChange:
|
|
16433
|
+
onChange: Xa,
|
|
16434
|
+
onPageSizeChange: Ea
|
|
16416
16435
|
}, null, 8, ["modelValue", "pageSize", "total", "page-size-options"])
|
|
16417
16436
|
])) : Y("", !0),
|
|
16418
|
-
s(
|
|
16437
|
+
s(ga, {
|
|
16419
16438
|
visible: de.value,
|
|
16420
16439
|
"onUpdate:visible": f[18] || (f[18] = (he) => de.value = he),
|
|
16421
16440
|
header: ue.value,
|
|
@@ -16425,9 +16444,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16425
16444
|
placement: "bottom",
|
|
16426
16445
|
"destroy-on-close": "",
|
|
16427
16446
|
class: "custom-drawer",
|
|
16428
|
-
onConfirm:
|
|
16429
|
-
onCancel:
|
|
16430
|
-
},
|
|
16447
|
+
onConfirm: xa,
|
|
16448
|
+
onCancel: Ra
|
|
16449
|
+
}, ya({
|
|
16431
16450
|
default: i(() => [
|
|
16432
16451
|
s(Al, {
|
|
16433
16452
|
ref_key: "formRenderRef",
|
|
@@ -16438,7 +16457,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16438
16457
|
"onUpdate:modelValue": f[12] || (f[12] = (he) => ql(b) ? b.value = he : b = he),
|
|
16439
16458
|
mode: L.value,
|
|
16440
16459
|
"relation-form-data": a.relationFormData,
|
|
16441
|
-
onSelectOrgData:
|
|
16460
|
+
onSelectOrgData: Ga,
|
|
16442
16461
|
onI18nClick: f[13] || (f[13] = (he) => w("i18n-click", he)),
|
|
16443
16462
|
onRelationFormSearch: f[14] || (f[14] = (he) => w("relation-form-search", he)),
|
|
16444
16463
|
onRelationFormAdvanced: f[15] || (f[15] = (he) => w("relation-form-advanced", he)),
|
|
@@ -16451,12 +16470,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16451
16470
|
L.value !== "detail" ? {
|
|
16452
16471
|
name: "footer",
|
|
16453
16472
|
fn: i(() => [
|
|
16454
|
-
s(
|
|
16473
|
+
s(Ze, null, {
|
|
16455
16474
|
default: i(() => [
|
|
16456
16475
|
a.formData.hasCancelBtn ? (l(), j($, {
|
|
16457
16476
|
key: 0,
|
|
16458
16477
|
theme: "default",
|
|
16459
|
-
onClick:
|
|
16478
|
+
onClick: Ra
|
|
16460
16479
|
}, {
|
|
16461
16480
|
default: i(() => [
|
|
16462
16481
|
A(V(a.formData.cancelButtonText), 1)
|
|
@@ -16466,7 +16485,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16466
16485
|
a.formData.hasConfirmBtn ? (l(), j($, {
|
|
16467
16486
|
key: 1,
|
|
16468
16487
|
theme: "primary",
|
|
16469
|
-
onClick:
|
|
16488
|
+
onClick: xa
|
|
16470
16489
|
}, {
|
|
16471
16490
|
default: i(() => [
|
|
16472
16491
|
A(V(a.formData.confirmButtonText), 1)
|
|
@@ -16477,7 +16496,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16477
16496
|
key: 2,
|
|
16478
16497
|
theme: "primary",
|
|
16479
16498
|
variant: "outline",
|
|
16480
|
-
onClick:
|
|
16499
|
+
onClick: Ka
|
|
16481
16500
|
}, {
|
|
16482
16501
|
default: i(() => [...f[27] || (f[27] = [
|
|
16483
16502
|
A(" 保存并继续 ", -1)
|
|
@@ -16494,7 +16513,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16494
16513
|
]);
|
|
16495
16514
|
};
|
|
16496
16515
|
}
|
|
16497
|
-
}), El = /* @__PURE__ */
|
|
16516
|
+
}), El = /* @__PURE__ */ aa(Xf, [["__scopeId", "data-v-71a44771"]]), Qf = { class: "field-manage-header" }, Zf = { class: "field-manage-content" }, em = { class: "field-manage-toolbar" }, am = /* @__PURE__ */ Ke({
|
|
16498
16517
|
__name: "FieldManageDialog",
|
|
16499
16518
|
props: {
|
|
16500
16519
|
modelValue: { type: Boolean },
|
|
@@ -16506,7 +16525,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16506
16525
|
get: () => n.modelValue,
|
|
16507
16526
|
set: (d) => y("update:modelValue", d)
|
|
16508
16527
|
}), c = F([]);
|
|
16509
|
-
|
|
16528
|
+
Fe(() => n.fields, (d) => {
|
|
16510
16529
|
c.value = JSON.parse(JSON.stringify(d));
|
|
16511
16530
|
}, { immediate: !0, deep: !0 });
|
|
16512
16531
|
const m = [
|
|
@@ -16856,7 +16875,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16856
16875
|
_: 1
|
|
16857
16876
|
})
|
|
16858
16877
|
]),
|
|
16859
|
-
s(ue,
|
|
16878
|
+
s(ue, Aa({ ref: "gridRef" }, U, {
|
|
16860
16879
|
data: c.value,
|
|
16861
16880
|
columns: _,
|
|
16862
16881
|
editConfig: w,
|
|
@@ -16928,7 +16947,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16928
16947
|
}, 8, ["visible"]);
|
|
16929
16948
|
};
|
|
16930
16949
|
}
|
|
16931
|
-
}), lm = /* @__PURE__ */
|
|
16950
|
+
}), lm = /* @__PURE__ */ aa(am, [["__scopeId", "data-v-36fbcb77"]]);
|
|
16932
16951
|
function sm(a) {
|
|
16933
16952
|
const {
|
|
16934
16953
|
formModel: te,
|
|
@@ -17184,12 +17203,12 @@ async function rm(a, te, n) {
|
|
|
17184
17203
|
}
|
|
17185
17204
|
const dm = {
|
|
17186
17205
|
install(a) {
|
|
17187
|
-
a.component("CdForm", El), a.component("CdFormCol",
|
|
17206
|
+
a.component("CdForm", El), a.component("CdFormCol", Fa), a.component("FormRender", Al), a.component("ShareDialog", Rl), a.component("FieldManageDialog", lm);
|
|
17188
17207
|
}
|
|
17189
17208
|
};
|
|
17190
17209
|
export {
|
|
17191
17210
|
El as CdForm,
|
|
17192
|
-
|
|
17211
|
+
Fa as CdFormCol,
|
|
17193
17212
|
lm as FieldManageDialog,
|
|
17194
17213
|
Al as FormRender,
|
|
17195
17214
|
Rl as ShareDialog,
|