el-plus-crud 0.1.82 → 0.1.85
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/CHANGELOG.md +6 -0
- package/dist/el-plus-crud.mjs +460 -460
- package/dist/el-plus-crud.umd.js +1 -1
- package/dist/style.css +1 -1
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +11 -12
- package/package.json +1 -1
package/dist/el-plus-crud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nextTick as be, defineComponent as H, inject as ce, ref as f, onBeforeMount as ze, useAttrs as fe, onMounted as it, resolveComponent as O, openBlock as d, createBlock as S, mergeProps as
|
|
1
|
+
import { nextTick as be, defineComponent as H, inject as ce, ref as f, onBeforeMount as ze, useAttrs as fe, onMounted as it, resolveComponent as O, openBlock as d, createBlock as S, mergeProps as ee, toHandlers as ye, createCommentVNode as F, useSlots as Re, createSlots as lt, withCtx as _, renderSlot as De, renderList as Me, createElementBlock as I, createElementVNode as ae, computed as le, watch as re, Fragment as oe, createVNode as Z, unref as je, createTextVNode as pe, toDisplayString as de, normalizeStyle as Pe, reactive as Oe, isRef as ft, normalizeClass as dt, onUnmounted as vn, withModifiers as _t, withDirectives as bl, vShow as Yn, triggerRef as fl, withKeys as uo, resolveDynamicComponent as rl, provide as io, resolveDirective as ro } from "vue";
|
|
2
2
|
import { ElMessageBox as Al, ElMessage as Xe } from "element-plus";
|
|
3
3
|
import { useVModel as at } from "@vueuse/core";
|
|
4
4
|
const me = async (e, t) => {
|
|
@@ -90,14 +90,14 @@ const Mo = {
|
|
|
90
90
|
r.value = l.areaList || [];
|
|
91
91
|
}), (i, c) => {
|
|
92
92
|
const j = O("el-cascader");
|
|
93
|
-
return o.value ? (d(), S(j,
|
|
93
|
+
return o.value ? (d(), S(j, ee({
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "ElPlusFormArea-panel"
|
|
96
96
|
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
97
97
|
modelValue: u.value,
|
|
98
98
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => u.value = p),
|
|
99
99
|
options: r.value
|
|
100
|
-
}), null, 16, ["disabled", "modelValue", "options"])) :
|
|
100
|
+
}), null, 16, ["disabled", "modelValue", "options"])) : F("", !0);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -128,7 +128,7 @@ const Ae = (e, t) => {
|
|
|
128
128
|
a.value = await me(l, { autocomplete: "new-password", ...fe() });
|
|
129
129
|
}), (g, u) => {
|
|
130
130
|
const i = O("el-autocomplete");
|
|
131
|
-
return d(), S(i,
|
|
131
|
+
return d(), S(i, ee({ class: "ElPlusFormAutocomplete-panel" }, a.value, { disabled: e.disabled }, ye(o.value), {
|
|
132
132
|
modelValue: s.value,
|
|
133
133
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c)
|
|
134
134
|
}), lt({
|
|
@@ -399,7 +399,7 @@ const Po = {
|
|
|
399
399
|
s.value = p;
|
|
400
400
|
}
|
|
401
401
|
), (p, m) => {
|
|
402
|
-
var w, v, G, P, T, L, y, k, x, N
|
|
402
|
+
var w, v, G, P, T, L, y, k, x, N;
|
|
403
403
|
const $ = O("el-icon"), B = O("el-link"), b = O("el-popconfirm"), Q = O("el-button");
|
|
404
404
|
return r.value ? (d(), I(oe, { key: 0 }, [
|
|
405
405
|
a.value ? (d(), I(oe, { key: 0 }, [
|
|
@@ -409,15 +409,15 @@ const Po = {
|
|
|
409
409
|
title: (v = n.desc) == null ? void 0 : v.confirm
|
|
410
410
|
}, {
|
|
411
411
|
reference: _(() => {
|
|
412
|
-
var D,
|
|
412
|
+
var D, Y;
|
|
413
413
|
return [
|
|
414
|
-
Z(B,
|
|
414
|
+
Z(B, ee({
|
|
415
415
|
underline: "never",
|
|
416
416
|
type: u.value
|
|
417
417
|
}, g.value, {
|
|
418
418
|
disabled: s.value || g.value.disabled,
|
|
419
419
|
style: { pointerEvents: (D = e.desc) != null && D.isTag ? "none" : "all" },
|
|
420
|
-
class: { "no-label": !((
|
|
420
|
+
class: { "no-label": !((Y = n.desc) != null && Y.label) }
|
|
421
421
|
}), {
|
|
422
422
|
default: _(() => [
|
|
423
423
|
s.value ? (d(), S($, {
|
|
@@ -428,13 +428,13 @@ const Po = {
|
|
|
428
428
|
Z(je(zl))
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
|
-
})) :
|
|
431
|
+
})) : F("", !0),
|
|
432
432
|
De(p.$slots, "default", {}, () => {
|
|
433
|
-
var
|
|
433
|
+
var U;
|
|
434
434
|
return [
|
|
435
|
-
(
|
|
435
|
+
(U = n.desc) != null && U.label ? (d(), I(oe, { key: 0 }, [
|
|
436
436
|
pe(de(j.value), 1)
|
|
437
|
-
], 64)) :
|
|
437
|
+
], 64)) : F("", !0)
|
|
438
438
|
];
|
|
439
439
|
})
|
|
440
440
|
]),
|
|
@@ -443,14 +443,14 @@ const Po = {
|
|
|
443
443
|
];
|
|
444
444
|
}),
|
|
445
445
|
_: 3
|
|
446
|
-
}, 8, ["onConfirm", "title"])) : (d(), S(B,
|
|
446
|
+
}, 8, ["onConfirm", "title"])) : (d(), S(B, ee({
|
|
447
447
|
key: 1,
|
|
448
448
|
underline: "never",
|
|
449
449
|
type: u.value
|
|
450
450
|
}, g.value, ye(c.value), {
|
|
451
451
|
disabled: s.value || g.value.disabled,
|
|
452
452
|
style: { pointerEvents: (G = e.desc) != null && G.isTag ? "none" : "all" },
|
|
453
|
-
class: { "no-label": !((P = n.desc) != null && P.label)
|
|
453
|
+
class: { "no-label": !((P = n.desc) != null && P.label) }
|
|
454
454
|
}), {
|
|
455
455
|
default: _(() => [
|
|
456
456
|
s.value ? (d(), S($, {
|
|
@@ -461,40 +461,40 @@ const Po = {
|
|
|
461
461
|
Z(je(zl))
|
|
462
462
|
]),
|
|
463
463
|
_: 1
|
|
464
|
-
})) :
|
|
464
|
+
})) : F("", !0),
|
|
465
465
|
De(p.$slots, "default", {}, () => {
|
|
466
466
|
var D;
|
|
467
467
|
return [
|
|
468
|
-
(D = n.desc) != null && D.label
|
|
468
|
+
(D = n.desc) != null && D.label ? (d(), I(oe, { key: 0 }, [
|
|
469
469
|
pe(de(j.value), 1)
|
|
470
|
-
], 64)) :
|
|
470
|
+
], 64)) : F("", !0)
|
|
471
471
|
];
|
|
472
472
|
})
|
|
473
473
|
]),
|
|
474
474
|
_: 3
|
|
475
475
|
}, 16, ["type", "disabled", "style", "class"]))
|
|
476
476
|
], 64)) : (d(), I(oe, { key: 1 }, [
|
|
477
|
-
(
|
|
477
|
+
(T = n.desc) != null && T.confirm ? (d(), S(b, {
|
|
478
478
|
key: 0,
|
|
479
479
|
onConfirm: c.value.click,
|
|
480
|
-
title: (
|
|
480
|
+
title: (L = n.desc) == null ? void 0 : L.confirm
|
|
481
481
|
}, {
|
|
482
482
|
reference: _(() => {
|
|
483
|
-
var D,
|
|
483
|
+
var D, Y;
|
|
484
484
|
return [
|
|
485
|
-
Z(Q,
|
|
485
|
+
Z(Q, ee({
|
|
486
486
|
loading: s.value,
|
|
487
487
|
size: ((D = n.desc) == null ? void 0 : D.size) || "default"
|
|
488
488
|
}, i.value, {
|
|
489
|
-
class: {
|
|
489
|
+
class: { btnHideLabel: !((Y = n.desc) != null && Y.label) }
|
|
490
490
|
}), {
|
|
491
491
|
default: _(() => [
|
|
492
492
|
De(p.$slots, "default", {}, () => {
|
|
493
|
-
var
|
|
493
|
+
var U;
|
|
494
494
|
return [
|
|
495
|
-
(
|
|
495
|
+
(U = n.desc) != null && U.label ? (d(), I(oe, { key: 0 }, [
|
|
496
496
|
pe(de(j.value), 1)
|
|
497
|
-
], 64)) :
|
|
497
|
+
], 64)) : F("", !0)
|
|
498
498
|
];
|
|
499
499
|
})
|
|
500
500
|
]),
|
|
@@ -503,28 +503,28 @@ const Po = {
|
|
|
503
503
|
];
|
|
504
504
|
}),
|
|
505
505
|
_: 3
|
|
506
|
-
}, 8, ["onConfirm", "title"])) : (d(), S(Q,
|
|
506
|
+
}, 8, ["onConfirm", "title"])) : (d(), S(Q, ee({
|
|
507
507
|
key: 1,
|
|
508
508
|
loading: s.value,
|
|
509
|
-
size: ((
|
|
509
|
+
size: ((y = n.desc) == null ? void 0 : y.size) || "default"
|
|
510
510
|
}, i.value, ye(c.value), {
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
style: { pointerEvents: (k = e.desc) != null && k.isTag ? "none" : "all" },
|
|
512
|
+
class: { "no-label": !((x = n.desc) != null && x.label), btnHideLabel: !((N = n.desc) != null && N.label) }
|
|
513
513
|
}), {
|
|
514
514
|
default: _(() => [
|
|
515
515
|
De(p.$slots, "default", {}, () => {
|
|
516
516
|
var D;
|
|
517
517
|
return [
|
|
518
|
-
(D = n.desc) != null && D.label
|
|
518
|
+
(D = n.desc) != null && D.label ? (d(), I(oe, { key: 0 }, [
|
|
519
519
|
pe(de(j.value), 1)
|
|
520
|
-
], 64)) :
|
|
520
|
+
], 64)) : F("", !0)
|
|
521
521
|
];
|
|
522
522
|
})
|
|
523
523
|
]),
|
|
524
524
|
_: 3
|
|
525
|
-
}, 16, ["loading", "size", "
|
|
525
|
+
}, 16, ["loading", "size", "style", "class"]))
|
|
526
526
|
], 64))
|
|
527
|
-
], 64)) :
|
|
527
|
+
], 64)) : F("", !0);
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
});
|
|
@@ -599,7 +599,7 @@ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
599
599
|
}), (u, i) => {
|
|
600
600
|
const c = O("el-button"), j = O("el-upload");
|
|
601
601
|
return d(), I("div", Uo, [
|
|
602
|
-
Z(j,
|
|
602
|
+
Z(j, ee({
|
|
603
603
|
class: "upload-demo",
|
|
604
604
|
style: { display: "flex" }
|
|
605
605
|
}, s.value, {
|
|
@@ -730,7 +730,7 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
730
730
|
dropdown: _(() => [
|
|
731
731
|
Z($, null, {
|
|
732
732
|
default: _(() => [
|
|
733
|
-
(d(!0), I(oe, null, Me(s.value, (b, Q) => (d(), S(m,
|
|
733
|
+
(d(!0), I(oe, null, Me(s.value, (b, Q) => (d(), S(m, ee({
|
|
734
734
|
key: Q + (b.label || b.title)
|
|
735
735
|
}, ye(a.value(b))), {
|
|
736
736
|
default: _(() => [
|
|
@@ -761,7 +761,7 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
761
761
|
}, 8, ["size", "plain"])
|
|
762
762
|
]),
|
|
763
763
|
_: 1
|
|
764
|
-
}, 8, ["size", "disabled"])) :
|
|
764
|
+
}, 8, ["size", "disabled"])) : F("", !0)
|
|
765
765
|
], 4);
|
|
766
766
|
};
|
|
767
767
|
}
|
|
@@ -910,14 +910,14 @@ const es = (e, t) => {
|
|
|
910
910
|
{ immediate: !0 }
|
|
911
911
|
), (i, c) => {
|
|
912
912
|
const j = O("el-cascader");
|
|
913
|
-
return a.value ? (d(), S(j,
|
|
913
|
+
return a.value ? (d(), S(j, ee({
|
|
914
914
|
key: 0,
|
|
915
915
|
class: "ElPlusFormCascader-panel"
|
|
916
916
|
}, o.value, { disabled: e.disabled }, ye(g.value), {
|
|
917
917
|
options: u,
|
|
918
918
|
modelValue: je(r),
|
|
919
919
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => ft(r) ? r.value = p : null)
|
|
920
|
-
}), null, 16, ["disabled", "options", "modelValue"])) :
|
|
920
|
+
}), null, 16, ["disabled", "options", "modelValue"])) : F("", !0);
|
|
921
921
|
};
|
|
922
922
|
}
|
|
923
923
|
});
|
|
@@ -956,14 +956,14 @@ const xn = /* @__PURE__ */ Ae(ls, [["__scopeId", "data-v-c9c2c533"]]), ns = /* @
|
|
|
956
956
|
{ immediate: !0 }
|
|
957
957
|
), (i, c) => {
|
|
958
958
|
const j = O("el-cascader-panel");
|
|
959
|
-
return o.value ? (d(), S(j,
|
|
959
|
+
return o.value ? (d(), S(j, ee({
|
|
960
960
|
key: 0,
|
|
961
961
|
class: "ElPlusFormCascaderPanel-panel"
|
|
962
962
|
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
963
963
|
options: u,
|
|
964
964
|
modelValue: r.value,
|
|
965
965
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.value = p)
|
|
966
|
-
}), null, 16, ["disabled", "options", "modelValue"])) :
|
|
966
|
+
}), null, 16, ["disabled", "options", "modelValue"])) : F("", !0);
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
969
|
});
|
|
@@ -1004,7 +1004,7 @@ const _n = /* @__PURE__ */ Ae(os, [["__scopeId", "data-v-bcaf6e38"]]), ss = /* @
|
|
|
1004
1004
|
), (i, c) => {
|
|
1005
1005
|
const j = O("el-checkbox"), p = O("el-checkbox-group");
|
|
1006
1006
|
return o.value ? (d(), I(oe, { key: 0 }, [
|
|
1007
|
-
a != null && a.length ? (d(), S(p,
|
|
1007
|
+
a != null && a.length ? (d(), S(p, ee({
|
|
1008
1008
|
key: 0,
|
|
1009
1009
|
class: "ElPlusFormCheckbox-panel"
|
|
1010
1010
|
}, g.value, { disabled: e.disabled }, ye(u.value), {
|
|
@@ -1025,7 +1025,7 @@ const _n = /* @__PURE__ */ Ae(os, [["__scopeId", "data-v-bcaf6e38"]]), ss = /* @
|
|
|
1025
1025
|
]),
|
|
1026
1026
|
_: 1
|
|
1027
1027
|
}, 16, ["disabled", "modelValue"])) : (d(), I("div", us, "暂无选项"))
|
|
1028
|
-
], 64)) :
|
|
1028
|
+
], 64)) : F("", !0);
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
});
|
|
@@ -1052,7 +1052,7 @@ const Ln = /* @__PURE__ */ Ae(rs, [["__scopeId", "data-v-0320ab23"]]), cs = /* @
|
|
|
1052
1052
|
r.value = await me(l, { ...fe() }), a.value = !0;
|
|
1053
1053
|
}), (g, u) => {
|
|
1054
1054
|
const i = O("el-checkbox-button"), c = O("el-checkbox-group");
|
|
1055
|
-
return a.value ? (d(), S(c,
|
|
1055
|
+
return a.value ? (d(), S(c, ee({
|
|
1056
1056
|
key: 0,
|
|
1057
1057
|
class: "ElPlusFormCheckboxButton-panel"
|
|
1058
1058
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
@@ -1060,7 +1060,7 @@ const Ln = /* @__PURE__ */ Ae(rs, [["__scopeId", "data-v-0320ab23"]]), cs = /* @
|
|
|
1060
1060
|
"onUpdate:modelValue": u[0] || (u[0] = (j) => s.value = j)
|
|
1061
1061
|
}), {
|
|
1062
1062
|
default: _(() => [
|
|
1063
|
-
(d(!0), I(oe, null, Me(e.desc.options, (j) => (d(), S(i,
|
|
1063
|
+
(d(!0), I(oe, null, Me(e.desc.options, (j) => (d(), S(i, ee({
|
|
1064
1064
|
key: j.value,
|
|
1065
1065
|
label: j.value
|
|
1066
1066
|
}, { ref_for: !0 }, j.attrs), {
|
|
@@ -1071,7 +1071,7 @@ const Ln = /* @__PURE__ */ Ae(rs, [["__scopeId", "data-v-0320ab23"]]), cs = /* @
|
|
|
1071
1071
|
}, 1040, ["label"]))), 128))
|
|
1072
1072
|
]),
|
|
1073
1073
|
_: 1
|
|
1074
|
-
}, 16, ["disabled", "modelValue"])) :
|
|
1074
|
+
}, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
});
|
|
@@ -1096,7 +1096,7 @@ const Cn = /* @__PURE__ */ Ae(Ms, [["__scopeId", "data-v-51a8d752"]]), fs = /* @
|
|
|
1096
1096
|
r.value = await me(l, { ...fe() });
|
|
1097
1097
|
}), (o, g) => {
|
|
1098
1098
|
const u = O("el-color-picker");
|
|
1099
|
-
return d(), S(u,
|
|
1099
|
+
return d(), S(u, ee({ class: "ElPlusFormColor-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
1100
1100
|
modelValue: s.value,
|
|
1101
1101
|
"onUpdate:modelValue": g[0] || (g[0] = (i) => s.value = i)
|
|
1102
1102
|
}), null, 16, ["disabled", "modelValue"]);
|
|
@@ -1124,13 +1124,13 @@ const En = /* @__PURE__ */ Ae(Ns, [["__scopeId", "data-v-f1a9c235"]]), js = /* @
|
|
|
1124
1124
|
r.value = await me(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", editable: !1, ...fe() }), s.value = !0;
|
|
1125
1125
|
}), (g, u) => {
|
|
1126
1126
|
const i = O("el-date-picker");
|
|
1127
|
-
return s.value ? (d(), S(i,
|
|
1127
|
+
return s.value ? (d(), S(i, ee({
|
|
1128
1128
|
key: 0,
|
|
1129
1129
|
class: "ElPlusFormDate-panel"
|
|
1130
1130
|
}, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
1131
1131
|
modelValue: je(o),
|
|
1132
1132
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => ft(o) ? o.value = c : null)
|
|
1133
|
-
}), null, 16, ["disabled", "modelValue"])) :
|
|
1133
|
+
}), null, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
1136
|
});
|
|
@@ -1155,7 +1155,7 @@ const On = /* @__PURE__ */ Ae(ys, [["__scopeId", "data-v-9e53a749"]]), zs = /* @
|
|
|
1155
1155
|
o.value = await me(l, { type: "daterange", format: "YYYY-MM-DD", valueFormat: "x", editable: !1, ...fe() }), a.value = !0;
|
|
1156
1156
|
}), (u, i) => {
|
|
1157
1157
|
const c = O("el-date-picker");
|
|
1158
|
-
return a.value ? (d(), S(c,
|
|
1158
|
+
return a.value ? (d(), S(c, ee({
|
|
1159
1159
|
key: 0,
|
|
1160
1160
|
class: "el-plusF-form-daterange-panel"
|
|
1161
1161
|
}, o.value, { disabled: e.disabled }, ye(g.value), {
|
|
@@ -1168,7 +1168,7 @@ const On = /* @__PURE__ */ Ae(ys, [["__scopeId", "data-v-9e53a749"]]), zs = /* @
|
|
|
1168
1168
|
De(u.$slots, p, { data: $ }, void 0, !0)
|
|
1169
1169
|
])
|
|
1170
1170
|
}))
|
|
1171
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
1171
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
});
|
|
@@ -1193,14 +1193,14 @@ const Sn = /* @__PURE__ */ Ae(Ds, [["__scopeId", "data-v-45408465"]]), vs = /* @
|
|
|
1193
1193
|
r.value = await me(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", ...fe() }), a.value = !0;
|
|
1194
1194
|
}), (g, u) => {
|
|
1195
1195
|
const i = O("el-date-picker");
|
|
1196
|
-
return a.value ? (d(), S(i,
|
|
1196
|
+
return a.value ? (d(), S(i, ee({
|
|
1197
1197
|
key: 0,
|
|
1198
1198
|
class: "ElPlusFormDatetime-panel"
|
|
1199
1199
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
1200
1200
|
type: "datetime",
|
|
1201
1201
|
modelValue: s.value,
|
|
1202
1202
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c)
|
|
1203
|
-
}), null, 16, ["disabled", "modelValue"])) :
|
|
1203
|
+
}), null, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
1206
|
});
|
|
@@ -1225,7 +1225,7 @@ const kn = /* @__PURE__ */ Ae(Is, [["__scopeId", "data-v-9e22537f"]]), ws = /* @
|
|
|
1225
1225
|
a.value = await me(l, { type: "datetimerange", format: "YYYY-MM-DD HH:mm:ss", valueFormat: "x", editable: !1, ...fe() }), o.value = !0;
|
|
1226
1226
|
}), (u, i) => {
|
|
1227
1227
|
const c = O("el-date-picker");
|
|
1228
|
-
return o.value ? (d(), S(c,
|
|
1228
|
+
return o.value ? (d(), S(c, ee({
|
|
1229
1229
|
key: 0,
|
|
1230
1230
|
class: "el-plusF-form-datetimerange-panel"
|
|
1231
1231
|
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
@@ -1238,7 +1238,7 @@ const kn = /* @__PURE__ */ Ae(Is, [["__scopeId", "data-v-9e22537f"]]), ws = /* @
|
|
|
1238
1238
|
De(u.$slots, p, { data: $ }, void 0, !0)
|
|
1239
1239
|
])
|
|
1240
1240
|
}))
|
|
1241
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
1241
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
1244
|
});
|
|
@@ -1325,16 +1325,16 @@ const Bn = /* @__PURE__ */ Ae(As, [["__scopeId", "data-v-880db21d"]]), Ts = /* @
|
|
|
1325
1325
|
style: Pe(r.value),
|
|
1326
1326
|
fit: "cover"
|
|
1327
1327
|
}, null, 8, ["src", "style"]),
|
|
1328
|
-
e.showName ? (d(), I("div", Ss, de(je(Wo)(p.name, 50)), 1)) :
|
|
1328
|
+
e.showName ? (d(), I("div", Ss, de(je(Wo)(p.name, 50)), 1)) : F("", !0)
|
|
1329
1329
|
], 8, Os))), 128))
|
|
1330
|
-
], 2)) :
|
|
1330
|
+
], 2)) : F("", !0),
|
|
1331
1331
|
l.value ? (d(), S(j, {
|
|
1332
1332
|
key: 1,
|
|
1333
1333
|
onClose: i[0] || (i[0] = (p) => l.value = !1),
|
|
1334
1334
|
teleported: "",
|
|
1335
1335
|
initialIndex: n.value,
|
|
1336
1336
|
"url-list": s.value
|
|
1337
|
-
}, null, 8, ["initialIndex", "url-list"])) :
|
|
1337
|
+
}, null, 8, ["initialIndex", "url-list"])) : F("", !0)
|
|
1338
1338
|
]);
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
@@ -1396,23 +1396,23 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1396
1396
|
const l = ce("globalData"), n = e, s = t, r = Oe([]), a = f({}), o = f(!1), g = f(!1), u = f(!1), i = f(""), c = f(), j = f(), p = f("="), m = f(""), $ = le(() => i.value ? r.filter(({ label: N }) => N.includes(i.value)) : r);
|
|
1397
1397
|
function B() {
|
|
1398
1398
|
g.value = !0, be(() => {
|
|
1399
|
-
var N,
|
|
1400
|
-
p.value = ((N = n.modelValue) == null ? void 0 : N.value) || "=", c.value && (c.value.innerHTML = ((
|
|
1399
|
+
var N, D, Y;
|
|
1400
|
+
p.value = ((N = n.modelValue) == null ? void 0 : N.value) || "=", c.value && (c.value.innerHTML = ((D = n.modelValue) == null ? void 0 : D.domStr) || "=", m.value = (Y = c.value) == null ? void 0 : Y.innerHTML);
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
1403
|
function b(N) {
|
|
1404
1404
|
u.value = !1;
|
|
1405
|
-
const
|
|
1406
|
-
Q("@",
|
|
1405
|
+
const D = `<div contenteditable="true">${N.label}<span>${N.value}</span></div>`;
|
|
1406
|
+
Q("@", D), y();
|
|
1407
1407
|
}
|
|
1408
|
-
function Q(N,
|
|
1408
|
+
function Q(N, D = "") {
|
|
1409
1409
|
var U;
|
|
1410
|
-
let
|
|
1411
|
-
|
|
1410
|
+
let Y = ((U = c.value) == null ? void 0 : U.innerHTML) || "";
|
|
1411
|
+
Y && Y.includes(N) && (Y = Y.replace(new RegExp(N, "g"), D), c.value.innerHTML = Y + " ");
|
|
1412
1412
|
}
|
|
1413
1413
|
function w(N) {
|
|
1414
|
-
const { key:
|
|
1415
|
-
switch (
|
|
1414
|
+
const { key: D } = N;
|
|
1415
|
+
switch (D) {
|
|
1416
1416
|
case "Enter":
|
|
1417
1417
|
N.preventDefault();
|
|
1418
1418
|
break;
|
|
@@ -1422,21 +1422,21 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
function v(N) {
|
|
1425
|
-
var
|
|
1426
|
-
const
|
|
1427
|
-
let
|
|
1428
|
-
if (
|
|
1429
|
-
for (let K = 0; K <
|
|
1430
|
-
if (
|
|
1425
|
+
var te, R;
|
|
1426
|
+
const D = m.value.split(/<div\b[^>]*>(.*?)<\/div>/g) || [];
|
|
1427
|
+
let Y = ((R = (te = c.value) == null ? void 0 : te.innerHTML) == null ? void 0 : R.split(/<div\b[^>]*>(.*?)<\/div>/g)) || [], U = -1;
|
|
1428
|
+
if (D.length === Y.length) {
|
|
1429
|
+
for (let K = 0; K < D.length; K++)
|
|
1430
|
+
if (D[K] !== Y[K]) {
|
|
1431
1431
|
U = K;
|
|
1432
1432
|
break;
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
U >= 0 &&
|
|
1435
|
+
U >= 0 && D[U].indexOf("</span>") > 0 && (N.key === "Backspace" ? Y.splice(U, 1) : Y[U] = D[U], Y = Y.map((K) => K.indexOf("</span>") > 0 ? `<div contenteditable="true">${K}</div>` : K), c.value.innerHTML = Y.join(""), N.key === "Backspace" && G(c.value, U - 1)), y();
|
|
1436
1436
|
}
|
|
1437
|
-
function G(N,
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1437
|
+
function G(N, D) {
|
|
1438
|
+
const Y = document.createRange(), U = window.getSelection();
|
|
1439
|
+
Y.selectNodeContents(N), Y.collapse(!1), N.childNodes[D] && Y.setStart(N.childNodes[D], 0), Y.collapse(!0), U == null || U.removeAllRanges(), U == null || U.addRange(Y);
|
|
1440
1440
|
}
|
|
1441
1441
|
function P() {
|
|
1442
1442
|
window.addEventListener("click", k);
|
|
@@ -1454,9 +1454,9 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1454
1454
|
var U;
|
|
1455
1455
|
m.value = c.value.innerHTML;
|
|
1456
1456
|
let N = c.value.innerHTML;
|
|
1457
|
-
const
|
|
1458
|
-
(N.match(/<div[^>]*>([\s\S]*?)<\/div>/g) || []).map((
|
|
1459
|
-
N = N.replace(
|
|
1457
|
+
const D = ((U = N.match(/<span[^>]*>([\s\S]*?)<\/span>/g)) == null ? void 0 : U.map((te) => (te.match(/<span[^>]*>([\s\S]*?)<\/span>/) || [])[1])) || [];
|
|
1458
|
+
(N.match(/<div[^>]*>([\s\S]*?)<\/div>/g) || []).map((te, R) => {
|
|
1459
|
+
N = N.replace(te, "${" + D[R] + "}");
|
|
1460
1460
|
}), p.value = N.replaceAll(" ", "").replaceAll("<", "<").replaceAll(">", ">");
|
|
1461
1461
|
}
|
|
1462
1462
|
function k(N) {
|
|
@@ -1475,8 +1475,8 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1475
1475
|
if (typeof N == "string")
|
|
1476
1476
|
r.splice(0, r.length, ...l[N] || []);
|
|
1477
1477
|
else if (typeof N == "function") {
|
|
1478
|
-
const
|
|
1479
|
-
et(
|
|
1478
|
+
const D = N(n.formData || {});
|
|
1479
|
+
et(D) ? r.splice(0, r.length, ...await D) : r.splice(0, r.length, ...D);
|
|
1480
1480
|
} else
|
|
1481
1481
|
Array.isArray(N) ? N && r && !tt(N, r) && r.splice(0, r.length, ...N) : r.splice(0, r.length);
|
|
1482
1482
|
},
|
|
@@ -1489,11 +1489,11 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1489
1489
|
{ immediate: !0 }
|
|
1490
1490
|
), vn(() => {
|
|
1491
1491
|
T();
|
|
1492
|
-
}), (N,
|
|
1493
|
-
const
|
|
1492
|
+
}), (N, D) => {
|
|
1493
|
+
const Y = O("el-button"), U = O("el-input"), te = O("el-dialog");
|
|
1494
1494
|
return d(), I("div", Fs, [
|
|
1495
1495
|
ae("div", Rs, [
|
|
1496
|
-
Z(
|
|
1496
|
+
Z(Y, {
|
|
1497
1497
|
class: "formula-btn",
|
|
1498
1498
|
onClick: B,
|
|
1499
1499
|
type: "warning",
|
|
@@ -1501,15 +1501,15 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1501
1501
|
text: ""
|
|
1502
1502
|
}, {
|
|
1503
1503
|
default: _(() => {
|
|
1504
|
-
var
|
|
1504
|
+
var R;
|
|
1505
1505
|
return [
|
|
1506
|
-
pe(de(((
|
|
1506
|
+
pe(de(((R = e.modelValue) == null ? void 0 : R.value) || "点击进行编辑"), 1)
|
|
1507
1507
|
];
|
|
1508
1508
|
}),
|
|
1509
1509
|
_: 1
|
|
1510
1510
|
})
|
|
1511
1511
|
]),
|
|
1512
|
-
Z(
|
|
1512
|
+
Z(te, {
|
|
1513
1513
|
class: "el-plus-form-formula-dialog",
|
|
1514
1514
|
width: e.desc.dialogWidth || "800px",
|
|
1515
1515
|
title: e.desc.title || e.desc.placeholder || "请编辑" + e.desc._label,
|
|
@@ -1517,25 +1517,25 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1517
1517
|
closeOnClickModal: !1,
|
|
1518
1518
|
showCancel: "",
|
|
1519
1519
|
modelValue: g.value,
|
|
1520
|
-
"onUpdate:modelValue":
|
|
1520
|
+
"onUpdate:modelValue": D[3] || (D[3] = (R) => g.value = R),
|
|
1521
1521
|
"append-to-body": "",
|
|
1522
1522
|
"destroy-on-close": ""
|
|
1523
1523
|
}, {
|
|
1524
1524
|
footer: _(() => [
|
|
1525
1525
|
ae("div", null, [
|
|
1526
|
-
Z(
|
|
1526
|
+
Z(Y, {
|
|
1527
1527
|
type: "primary",
|
|
1528
1528
|
onClick: L
|
|
1529
1529
|
}, {
|
|
1530
|
-
default: _(() => [...
|
|
1530
|
+
default: _(() => [...D[4] || (D[4] = [
|
|
1531
1531
|
pe("确定", -1)
|
|
1532
1532
|
])]),
|
|
1533
1533
|
_: 1
|
|
1534
1534
|
}),
|
|
1535
|
-
Z(
|
|
1536
|
-
onClick:
|
|
1535
|
+
Z(Y, {
|
|
1536
|
+
onClick: D[2] || (D[2] = (R) => g.value = !1)
|
|
1537
1537
|
}, {
|
|
1538
|
-
default: _(() => [...
|
|
1538
|
+
default: _(() => [...D[5] || (D[5] = [
|
|
1539
1539
|
pe("取消", -1)
|
|
1540
1540
|
])]),
|
|
1541
1541
|
_: 1
|
|
@@ -1543,13 +1543,13 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1543
1543
|
])
|
|
1544
1544
|
]),
|
|
1545
1545
|
default: _(() => {
|
|
1546
|
-
var
|
|
1546
|
+
var R;
|
|
1547
1547
|
return [
|
|
1548
1548
|
ae("div", $s, [
|
|
1549
1549
|
ae("h2", null, de(p.value), 1)
|
|
1550
1550
|
]),
|
|
1551
1551
|
ae("div", Gs, de(e.desc.tip || "请在下面输入框中输入您的公式,输入@符号,可以调出引用项"), 1),
|
|
1552
|
-
ae("div",
|
|
1552
|
+
ae("div", ee({
|
|
1553
1553
|
ref_key: "formulaRef",
|
|
1554
1554
|
ref: c,
|
|
1555
1555
|
class: "formula-input",
|
|
@@ -1563,24 +1563,24 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1563
1563
|
key: 0,
|
|
1564
1564
|
class: "formula-input-selection",
|
|
1565
1565
|
ref: "selection",
|
|
1566
|
-
onClick:
|
|
1566
|
+
onClick: D[1] || (D[1] = _t(() => {
|
|
1567
1567
|
}, ["stop"]))
|
|
1568
1568
|
}, [
|
|
1569
1569
|
Z(U, {
|
|
1570
1570
|
modelValue: i.value,
|
|
1571
|
-
"onUpdate:modelValue":
|
|
1571
|
+
"onUpdate:modelValue": D[0] || (D[0] = (K) => i.value = K),
|
|
1572
1572
|
ref_key: "inputRef",
|
|
1573
1573
|
ref: j,
|
|
1574
1574
|
placeholder: "输入关键字筛选"
|
|
1575
1575
|
}, null, 8, ["modelValue"]),
|
|
1576
|
-
(
|
|
1576
|
+
(R = $.value) != null && R.length ? (d(), I("div", Ws, [
|
|
1577
1577
|
(d(!0), I(oe, null, Me($.value, (K, M) => (d(), I("span", {
|
|
1578
1578
|
class: "option",
|
|
1579
1579
|
key: M,
|
|
1580
1580
|
onClick: (z) => b(K)
|
|
1581
1581
|
}, de(K.label), 9, Zs))), 128))
|
|
1582
1582
|
])) : (d(), I("div", Hs, "暂无数据"))
|
|
1583
|
-
], 512)) :
|
|
1583
|
+
], 512)) : F("", !0)
|
|
1584
1584
|
];
|
|
1585
1585
|
}),
|
|
1586
1586
|
_: 1
|
|
@@ -1632,7 +1632,7 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1632
1632
|
s.value && s.value.length > 0 ? (d(!0), I(oe, { key: 0 }, Me(s.value, (u, i) => (d(), I(oe, {
|
|
1633
1633
|
key: u + i
|
|
1634
1634
|
}, [
|
|
1635
|
-
!l.value.showOne || l.value.showOne && i === 0 ? (d(), S(g,
|
|
1635
|
+
!l.value.showOne || l.value.showOne && i === 0 ? (d(), S(g, ee({
|
|
1636
1636
|
key: 0,
|
|
1637
1637
|
class: e.desc.class,
|
|
1638
1638
|
src: u,
|
|
@@ -1640,7 +1640,7 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1640
1640
|
"initial-index": i
|
|
1641
1641
|
}, { ref_for: !0 }, l.value, { style: r.value }, ye(n.value), {
|
|
1642
1642
|
fit: l.value.fit || "cover"
|
|
1643
|
-
}), null, 16, ["class", "src", "preview-src-list", "initial-index", "style", "fit"])) :
|
|
1643
|
+
}), null, 16, ["class", "src", "preview-src-list", "initial-index", "style", "fit"])) : F("", !0)
|
|
1644
1644
|
], 64))), 128)) : (d(), I("div", eu, [...o[0] || (o[0] = [
|
|
1645
1645
|
ae("span", { class: "no-img-tip" }, "-", -1)
|
|
1646
1646
|
])]))
|
|
@@ -1681,7 +1681,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1681
1681
|
}
|
|
1682
1682
|
), (i, c) => {
|
|
1683
1683
|
const j = O("el-input");
|
|
1684
|
-
return o.value ? (d(), S(j,
|
|
1684
|
+
return o.value ? (d(), S(j, ee({
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
style: { display: "flex" }
|
|
1687
1687
|
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
@@ -1694,7 +1694,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1694
1694
|
De(i.$slots, m)
|
|
1695
1695
|
])
|
|
1696
1696
|
}))
|
|
1697
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
1697
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
}), au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Un }, Symbol.toStringTag, { value: "Module" })), ou = { class: "el-plus-form-link" }, su = {
|
|
@@ -1758,8 +1758,8 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1758
1758
|
function y() {
|
|
1759
1759
|
u.splice(0, u.length, ...b);
|
|
1760
1760
|
const x = [], N = [];
|
|
1761
|
-
g.splice(0, g.length), b.map((
|
|
1762
|
-
g.push(
|
|
1761
|
+
g.splice(0, g.length), b.map((D) => {
|
|
1762
|
+
g.push(D.value), x.push(D.value), N.push(D.label);
|
|
1763
1763
|
}), a.value = b.length > 0 ? [x, N] : [], s.value.change && s.value.change(l.cloneDeep(b)), j.value = !1, r("validateThis");
|
|
1764
1764
|
}
|
|
1765
1765
|
return re(
|
|
@@ -1774,8 +1774,8 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1774
1774
|
() => {
|
|
1775
1775
|
if (b.splice(0, b.length), g.splice(0, g.length), n.modelValue && Array.isArray(n.modelValue) && Array.isArray(n.modelValue[0])) {
|
|
1776
1776
|
const [x, N] = n.modelValue || [[], []];
|
|
1777
|
-
x.length > 0 && x.length === N.length && x.map((
|
|
1778
|
-
b.push({ label: N[
|
|
1777
|
+
x.length > 0 && x.length === N.length && x.map((D, Y) => {
|
|
1778
|
+
b.push({ label: N[Y], value: D, dataItem: { [n.desc.lkey]: N[Y], [m.value]: D } }), g.push(D);
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
1781
|
u.splice(0, u.length, ...b);
|
|
@@ -1783,9 +1783,9 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1783
1783
|
{ deep: !0, immediate: !0 }
|
|
1784
1784
|
), it(async () => {
|
|
1785
1785
|
}), (x, N) => {
|
|
1786
|
-
const
|
|
1786
|
+
const D = O("el-option"), Y = O("el-select"), U = O("ElPlusTable"), te = O("el-tag"), R = O("el-scrollbar"), K = O("el-button"), M = O("el-dialog");
|
|
1787
1787
|
return d(), I("div", ou, [
|
|
1788
|
-
Z(
|
|
1788
|
+
Z(Y, ee({
|
|
1789
1789
|
ref_key: "selectRef",
|
|
1790
1790
|
ref: o,
|
|
1791
1791
|
style: [{ width: "100%" }, e.desc.style],
|
|
@@ -1799,7 +1799,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1799
1799
|
onClear: v
|
|
1800
1800
|
}, ye(s.value)), {
|
|
1801
1801
|
default: _(() => [
|
|
1802
|
-
(d(!0), I(oe, null, Me(u, (z) => (d(), S(
|
|
1802
|
+
(d(!0), I(oe, null, Me(u, (z) => (d(), S(D, ee({
|
|
1803
1803
|
key: z.value
|
|
1804
1804
|
}, { ref_for: !0 }, z), null, 16))), 128))
|
|
1805
1805
|
]),
|
|
@@ -1829,16 +1829,16 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1829
1829
|
isIndex: !1,
|
|
1830
1830
|
rowKey: m.value,
|
|
1831
1831
|
onSelection: G
|
|
1832
|
-
}, null, 8, ["selectList", "tableConfig", "type", "rowKey"])) :
|
|
1832
|
+
}, null, 8, ["selectList", "tableConfig", "type", "rowKey"])) : F("", !0)
|
|
1833
1833
|
]),
|
|
1834
1834
|
$.value ? (d(), I("div", iu, [
|
|
1835
1835
|
N[3] || (N[3] = ae("div", { class: "right-title" }, "已选中项:", -1)),
|
|
1836
|
-
Z(
|
|
1836
|
+
Z(R, {
|
|
1837
1837
|
height: "480px",
|
|
1838
1838
|
class: "tag-list"
|
|
1839
1839
|
}, {
|
|
1840
1840
|
default: _(() => [
|
|
1841
|
-
(d(!0), I(oe, null, Me(b, (z) => (d(), S(
|
|
1841
|
+
(d(!0), I(oe, null, Me(b, (z) => (d(), S(te, {
|
|
1842
1842
|
class: "tag-item",
|
|
1843
1843
|
style: { "margin-right": "10px", "margin-bottom": "10px" },
|
|
1844
1844
|
key: z.value,
|
|
@@ -1870,7 +1870,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1870
1870
|
_: 1
|
|
1871
1871
|
})
|
|
1872
1872
|
])
|
|
1873
|
-
])) :
|
|
1873
|
+
])) : F("", !0)
|
|
1874
1874
|
])
|
|
1875
1875
|
]),
|
|
1876
1876
|
_: 1
|
|
@@ -1900,7 +1900,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1900
1900
|
emits: ["update:modelValue", "change", "input", "validateThis", "close"],
|
|
1901
1901
|
setup(e, { emit: t }) {
|
|
1902
1902
|
var he, He, pt, wt, tl, bt;
|
|
1903
|
-
const l = ce("lodash"), n = ce("globalData"), s = ce("defaultConf"), r = e, a = f(
|
|
1903
|
+
const l = ce("lodash"), n = ce("globalData"), s = ce("defaultConf"), r = e, a = f(D(r)), o = t, g = f(r.modelValue || []);
|
|
1904
1904
|
o("update:modelValue", g);
|
|
1905
1905
|
const u = f(), i = Oe([]), c = Oe([]), j = Oe({
|
|
1906
1906
|
multiple: !0,
|
|
@@ -1909,18 +1909,18 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1909
1909
|
collapseTagsTooltip: !1,
|
|
1910
1910
|
clearable: !0
|
|
1911
1911
|
}), p = f(!1), m = Oe([]), $ = Oe([]), B = f({}), b = f(((he = r.desc) == null ? void 0 : he.lIdKey) || "id"), Q = f(((He = r.desc) == null ? void 0 : He.lNameKey) || "name"), w = f(((pt = r.desc) == null ? void 0 : pt.rIdKey) || "userId"), v = f(((wt = r.desc) == null ? void 0 : wt.rNameKey) || "nickname"), G = f(((tl = r.desc) == null ? void 0 : tl.lQueryIdKey) || "deptId"), P = f(((bt = r.desc) == null ? void 0 : bt.deptDataList) || []);
|
|
1912
|
-
async function T(
|
|
1913
|
-
$.splice(0, $.length, ...await
|
|
1912
|
+
async function T(q) {
|
|
1913
|
+
$.splice(0, $.length, ...await R(q));
|
|
1914
1914
|
}
|
|
1915
1915
|
const L = f([]), y = f([]), k = f([]), x = f(), N = le(() => {
|
|
1916
1916
|
var ie, xe;
|
|
1917
|
-
const
|
|
1918
|
-
let
|
|
1919
|
-
return P.value.length ?
|
|
1920
|
-
|
|
1921
|
-
}),
|
|
1917
|
+
const q = [];
|
|
1918
|
+
let X = [];
|
|
1919
|
+
return P.value.length ? X = P.value : X = l.cloneDeep(n[((xe = (ie = s.form) == null ? void 0 : ie.linkUser) == null ? void 0 : xe.deptListKey) || ""]), L.value && L.value.length > 0 && L.value.map((we) => {
|
|
1920
|
+
X = X[we].children || [];
|
|
1921
|
+
}), X.map((we) => q.push({ type: 2, label: we[Q.value], value: we[b.value] })), k.value.map((we) => q.push({ type: 1, label: we[v.value], value: we[w.value] })), be(() => {
|
|
1922
1922
|
setTimeout(() => {
|
|
1923
|
-
|
|
1923
|
+
q.map((we) => {
|
|
1924
1924
|
var nt;
|
|
1925
1925
|
(nt = x.value) == null || nt.toggleRowSelection(
|
|
1926
1926
|
we,
|
|
@@ -1928,65 +1928,65 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1928
1928
|
);
|
|
1929
1929
|
});
|
|
1930
1930
|
}, 10);
|
|
1931
|
-
}),
|
|
1931
|
+
}), q;
|
|
1932
1932
|
});
|
|
1933
|
-
function
|
|
1933
|
+
function D(q) {
|
|
1934
1934
|
var ie;
|
|
1935
|
-
const
|
|
1936
|
-
return (ie =
|
|
1937
|
-
|
|
1935
|
+
const X = {};
|
|
1936
|
+
return (ie = q.desc) != null && ie.on && Object.keys(q.desc.on).map((xe) => {
|
|
1937
|
+
X[xe] = (we) => {
|
|
1938
1938
|
be(() => {
|
|
1939
|
-
|
|
1939
|
+
q.desc.on[xe](q.formData || {}, q.rowIndex, we);
|
|
1940
1940
|
});
|
|
1941
1941
|
};
|
|
1942
|
-
}),
|
|
1942
|
+
}), X;
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1945
|
-
|
|
1944
|
+
function Y(q) {
|
|
1945
|
+
q && (u.value.blur(), p.value = !0);
|
|
1946
1946
|
}
|
|
1947
1947
|
function U() {
|
|
1948
|
-
m.splice(0, m.length), N.value.map((
|
|
1949
|
-
var
|
|
1950
|
-
(
|
|
1951
|
-
|
|
1952
|
-
m.some((ie) => ie.value ===
|
|
1948
|
+
m.splice(0, m.length), N.value.map((q) => {
|
|
1949
|
+
var X;
|
|
1950
|
+
(X = x.value) == null || X.toggleRowSelection(
|
|
1951
|
+
q,
|
|
1952
|
+
m.some((ie) => ie.value === q.value)
|
|
1953
1953
|
);
|
|
1954
1954
|
}), C();
|
|
1955
1955
|
}
|
|
1956
|
-
function q
|
|
1957
|
-
ge({ ...$.find((
|
|
1956
|
+
function te(q) {
|
|
1957
|
+
ge({ ...$.find((X) => X.value === q), type: 1 });
|
|
1958
1958
|
}
|
|
1959
|
-
async function
|
|
1960
|
-
var
|
|
1961
|
-
return
|
|
1959
|
+
async function R(q) {
|
|
1960
|
+
var X, ie, xe;
|
|
1961
|
+
return q.length > 0 ? (xe = (await ((ie = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ie.getUserList({ nickname: q, current: 1, size: 10, enabled: 1 }))).records) == null ? void 0 : xe.map((we) => ({ value: we[w.value], label: we[v.value] })) : [];
|
|
1962
1962
|
}
|
|
1963
|
-
async function K(
|
|
1963
|
+
async function K(q, X) {
|
|
1964
1964
|
var ie, xe;
|
|
1965
|
-
k.value = (await ((xe = (ie = s.form) == null ? void 0 : ie.linkUser) == null ? void 0 : xe.getUserList({ [G.value]:
|
|
1965
|
+
k.value = (await ((xe = (ie = s.form) == null ? void 0 : ie.linkUser) == null ? void 0 : xe.getUserList({ [G.value]: q.value, size: 999 }))).records, L.value.push(X), y.value.push(q);
|
|
1966
1966
|
}
|
|
1967
|
-
async function M(
|
|
1968
|
-
var
|
|
1969
|
-
k.value =
|
|
1967
|
+
async function M(q) {
|
|
1968
|
+
var X, ie;
|
|
1969
|
+
k.value = q >= 0 ? (await ((ie = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ie.getUserList({ [G.value]: y.value[q].value, size: 999 }))).records : [], L.value.splice(q + 1), y.value.splice(q + 1);
|
|
1970
1970
|
}
|
|
1971
|
-
function z(
|
|
1972
|
-
return r.desc.onlyUser ?
|
|
1971
|
+
function z(q) {
|
|
1972
|
+
return r.desc.onlyUser ? q.type === 1 : !0;
|
|
1973
1973
|
}
|
|
1974
|
-
function V(
|
|
1975
|
-
ge(
|
|
1974
|
+
function V(q, X) {
|
|
1975
|
+
ge(X, !q.some((ie) => ie.value === X.value));
|
|
1976
1976
|
}
|
|
1977
|
-
function h(
|
|
1978
|
-
const
|
|
1977
|
+
function h(q) {
|
|
1978
|
+
const X = !(q && q.length > 0);
|
|
1979
1979
|
N.value.map((ie) => {
|
|
1980
|
-
(!r.desc.onlyUser || r.desc.onlyUser && ie.type === 1) && ge(ie,
|
|
1980
|
+
(!r.desc.onlyUser || r.desc.onlyUser && ie.type === 1) && ge(ie, X);
|
|
1981
1981
|
});
|
|
1982
1982
|
}
|
|
1983
|
-
function ne(
|
|
1984
|
-
var
|
|
1985
|
-
N.value.some((ie) => ie.value ===
|
|
1983
|
+
function ne(q) {
|
|
1984
|
+
var X;
|
|
1985
|
+
N.value.some((ie) => ie.value === q.value) && ((X = x.value) == null || X.toggleRowSelection(q, !1)), ge(q, !0);
|
|
1986
1986
|
}
|
|
1987
|
-
function ge(
|
|
1988
|
-
const ie = m.findIndex((xe) => xe.value ===
|
|
1989
|
-
|
|
1987
|
+
function ge(q, X = !1) {
|
|
1988
|
+
const ie = m.findIndex((xe) => xe.value === q.value);
|
|
1989
|
+
X ? ie >= 0 && m.splice(ie, 1) : ie < 0 && m.push(q);
|
|
1990
1990
|
}
|
|
1991
1991
|
function ve() {
|
|
1992
1992
|
p.value = !1;
|
|
@@ -1996,30 +1996,30 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1996
1996
|
}
|
|
1997
1997
|
function C() {
|
|
1998
1998
|
c.splice(0, c.length, ...m);
|
|
1999
|
-
const
|
|
1999
|
+
const q = [], X = [], ie = [], xe = [];
|
|
2000
2000
|
i.splice(0, i.length), m.map((we) => {
|
|
2001
|
-
i.push(we.value), we.type === 1 ? (
|
|
2002
|
-
}), p.value = !1, g.value = m.length > 0 ? [
|
|
2001
|
+
i.push(we.value), we.type === 1 ? (q.push(we.value), ie.push(we.label)) : (X.push(we.value), xe.push(we.label));
|
|
2002
|
+
}), p.value = !1, g.value = m.length > 0 ? [q, X, ie, xe] : [], a.value.change && a.value.change(r.formData || {}, null, g.value), o("validateThis");
|
|
2003
2003
|
}
|
|
2004
2004
|
function A() {
|
|
2005
|
-
const
|
|
2005
|
+
const q = [];
|
|
2006
2006
|
if (r.modelValue) {
|
|
2007
|
-
let [
|
|
2007
|
+
let [X, ie, xe, we] = r.modelValue;
|
|
2008
2008
|
ie && we && ie.length === we.length && ie.map((nt, rt) => {
|
|
2009
|
-
|
|
2010
|
-
}),
|
|
2011
|
-
|
|
2009
|
+
q.push({ type: 2, value: nt, label: we[rt] });
|
|
2010
|
+
}), X && xe && X.length === xe.length && X.map((nt, rt) => {
|
|
2011
|
+
q.push({ type: 1, value: nt, label: xe[rt] });
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
|
-
return
|
|
2014
|
+
return q;
|
|
2015
2015
|
}
|
|
2016
2016
|
function se() {
|
|
2017
|
-
const
|
|
2017
|
+
const q = [];
|
|
2018
2018
|
if (r.modelValue) {
|
|
2019
|
-
let [
|
|
2020
|
-
|
|
2019
|
+
let [X, ie] = r.modelValue;
|
|
2020
|
+
q.push(...ie || []), q.push(...X || []);
|
|
2021
2021
|
}
|
|
2022
|
-
return
|
|
2022
|
+
return q;
|
|
2023
2023
|
}
|
|
2024
2024
|
function Te() {
|
|
2025
2025
|
m.splice(0, m.length, ...A()), c.splice(0, c.length, ...A()), i.splice(0, i.length, ...se());
|
|
@@ -2039,10 +2039,10 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2039
2039
|
{ deep: !0 }
|
|
2040
2040
|
), it(async () => {
|
|
2041
2041
|
Te();
|
|
2042
|
-
}), (
|
|
2042
|
+
}), (q, X) => {
|
|
2043
2043
|
const ie = O("el-option"), xe = O("el-select"), we = O("el-divider"), nt = O("el-breadcrumb-item"), rt = O("el-breadcrumb"), Bt = O("el-table-column"), Vt = O("el-icon"), At = O("el-button"), ll = O("el-table"), nl = O("el-tag"), al = O("el-scrollbar"), ol = O("el-dialog");
|
|
2044
2044
|
return d(), I("div", fu, [
|
|
2045
|
-
Z(xe,
|
|
2045
|
+
Z(xe, ee({
|
|
2046
2046
|
ref_key: "selectRef",
|
|
2047
2047
|
ref: u,
|
|
2048
2048
|
style: [{ width: "100%" }, e.desc.style],
|
|
@@ -2052,11 +2052,11 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2052
2052
|
disabled: e.disabled || e.desc.disabled,
|
|
2053
2053
|
loading: e.loading,
|
|
2054
2054
|
modelValue: i,
|
|
2055
|
-
onVisibleChange:
|
|
2055
|
+
onVisibleChange: Y,
|
|
2056
2056
|
onClear: U
|
|
2057
2057
|
}), {
|
|
2058
2058
|
default: _(() => [
|
|
2059
|
-
(d(!0), I(oe, null, Me(c, (Ce) => (d(), S(ie,
|
|
2059
|
+
(d(!0), I(oe, null, Me(c, (Ce) => (d(), S(ie, ee({
|
|
2060
2060
|
key: Ce.value
|
|
2061
2061
|
}, { ref_for: !0 }, Ce), null, 16))), 128))
|
|
2062
2062
|
]),
|
|
@@ -2069,7 +2069,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2069
2069
|
closeOnClickModal: !1,
|
|
2070
2070
|
showCancel: "",
|
|
2071
2071
|
modelValue: p.value,
|
|
2072
|
-
"onUpdate:modelValue":
|
|
2072
|
+
"onUpdate:modelValue": X[1] || (X[1] = (Ce) => p.value = Ce),
|
|
2073
2073
|
"append-to-body": "",
|
|
2074
2074
|
"destroy-on-close": "",
|
|
2075
2075
|
onClose: Be
|
|
@@ -2077,12 +2077,12 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2077
2077
|
default: _(() => [
|
|
2078
2078
|
ae("div", gu, [
|
|
2079
2079
|
ae("div", Nu, [
|
|
2080
|
-
Z(xe,
|
|
2080
|
+
Z(xe, ee({
|
|
2081
2081
|
style: { width: "300px" },
|
|
2082
2082
|
placeholder: "输入用户名进行搜索"
|
|
2083
|
-
}, B.value, { onChange:
|
|
2083
|
+
}, B.value, { onChange: te }), {
|
|
2084
2084
|
default: _(() => [
|
|
2085
|
-
(d(!0), I(oe, null, Me($, (Ce) => (d(), S(ie,
|
|
2085
|
+
(d(!0), I(oe, null, Me($, (Ce) => (d(), S(ie, ee({
|
|
2086
2086
|
key: Ce.value
|
|
2087
2087
|
}, { ref_for: !0 }, Ce), null, 16))), 128))
|
|
2088
2088
|
]),
|
|
@@ -2093,9 +2093,9 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2093
2093
|
Z(rt, { separator: "/" }, {
|
|
2094
2094
|
default: _(() => [
|
|
2095
2095
|
Z(nt, {
|
|
2096
|
-
onClick:
|
|
2096
|
+
onClick: X[0] || (X[0] = (Ce) => M(-1))
|
|
2097
2097
|
}, {
|
|
2098
|
-
default: _(() => [...
|
|
2098
|
+
default: _(() => [...X[2] || (X[2] = [
|
|
2099
2099
|
pe("组织架构", -1)
|
|
2100
2100
|
])]),
|
|
2101
2101
|
_: 1
|
|
@@ -2158,11 +2158,11 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2158
2158
|
plain: "",
|
|
2159
2159
|
onClick: (E) => K(Ce, yt)
|
|
2160
2160
|
}, {
|
|
2161
|
-
default: _(() => [...
|
|
2161
|
+
default: _(() => [...X[3] || (X[3] = [
|
|
2162
2162
|
pe("进入", -1)
|
|
2163
2163
|
])]),
|
|
2164
2164
|
_: 1
|
|
2165
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2165
|
+
}, 8, ["disabled", "onClick"])) : F("", !0)
|
|
2166
2166
|
]),
|
|
2167
2167
|
_: 1
|
|
2168
2168
|
})
|
|
@@ -2171,7 +2171,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2171
2171
|
}, 8, ["data"])
|
|
2172
2172
|
]),
|
|
2173
2173
|
ae("div", yu, [
|
|
2174
|
-
|
|
2174
|
+
X[6] || (X[6] = ae("div", { class: "right-title" }, "已选中项:", -1)),
|
|
2175
2175
|
Z(al, {
|
|
2176
2176
|
height: "480px",
|
|
2177
2177
|
class: "tag-list"
|
|
@@ -2199,7 +2199,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2199
2199
|
}),
|
|
2200
2200
|
ae("div", zu, [
|
|
2201
2201
|
Z(At, { onClick: ve }, {
|
|
2202
|
-
default: _(() => [...
|
|
2202
|
+
default: _(() => [...X[4] || (X[4] = [
|
|
2203
2203
|
pe("取消", -1)
|
|
2204
2204
|
])]),
|
|
2205
2205
|
_: 1
|
|
@@ -2208,7 +2208,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2208
2208
|
type: "primary",
|
|
2209
2209
|
onClick: C
|
|
2210
2210
|
}, {
|
|
2211
|
-
default: _(() => [...
|
|
2211
|
+
default: _(() => [...X[5] || (X[5] = [
|
|
2212
2212
|
pe("确定", -1)
|
|
2213
2213
|
])]),
|
|
2214
2214
|
_: 1
|
|
@@ -2248,7 +2248,7 @@ const Rn = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-23841e1c"]]), vu = /* @
|
|
|
2248
2248
|
a.value = await me(l, { ...fe() }), o.value = !0;
|
|
2249
2249
|
}), (u, i) => {
|
|
2250
2250
|
const c = O("el-input");
|
|
2251
|
-
return o.value ? (d(), S(c,
|
|
2251
|
+
return o.value ? (d(), S(c, ee({
|
|
2252
2252
|
key: 0,
|
|
2253
2253
|
class: e.desc.class,
|
|
2254
2254
|
style: e.desc.style,
|
|
@@ -2272,7 +2272,7 @@ const Rn = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-23841e1c"]]), vu = /* @
|
|
|
2272
2272
|
]),
|
|
2273
2273
|
key: "0"
|
|
2274
2274
|
} : void 0
|
|
2275
|
-
]), 1040, ["class", "style", "clearable", "disabled", "modelValue"])) :
|
|
2275
|
+
]), 1040, ["class", "style", "clearable", "disabled", "modelValue"])) : F("", !0);
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
2278
|
});
|
|
@@ -2314,9 +2314,9 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2314
2314
|
});
|
|
2315
2315
|
}
|
|
2316
2316
|
const p = le(() => {
|
|
2317
|
-
var k, x, N,
|
|
2317
|
+
var k, x, N, D;
|
|
2318
2318
|
let { min: b = 0, max: Q = 999999999, precision: w = 0, controlsPosition: v = "right" } = ((x = (k = l.form) == null ? void 0 : k.leng) == null ? void 0 : x.nbinput) || {}, G = ((N = n.desc) == null ? void 0 : N.attrs) || n.desc;
|
|
2319
|
-
(
|
|
2319
|
+
(D = n.desc) != null && D.attrs && typeof n.desc.attrs == "function" && (G = n.desc.attrs(n.formData || {}));
|
|
2320
2320
|
const { min: P, max: T, precision: L, controlsPosition: y } = G || {};
|
|
2321
2321
|
return P != null && P !== "" && (b = P), T != null && T !== "" && (Q = T), L != null && L !== "" && (w = L), y != null && y !== "" && (v = y), b > Q ? b = Q : Q < b && (Q = b), { min: b, max: Q, precision: w, controlsPosition: v };
|
|
2322
2322
|
});
|
|
@@ -2339,7 +2339,7 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2339
2339
|
}
|
|
2340
2340
|
return (b, Q) => {
|
|
2341
2341
|
const w = O("el-input-number");
|
|
2342
|
-
return o.value ? (d(), S(w,
|
|
2342
|
+
return o.value ? (d(), S(w, ee({
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
class: ["ElPlusFormNumber-panel", { "show-error": i.value }]
|
|
2345
2345
|
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
@@ -2348,7 +2348,7 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2348
2348
|
onFocus: c,
|
|
2349
2349
|
onBlur: j,
|
|
2350
2350
|
onkeypress: "return( /[-\\d\\.]/.test(String.fromCharCode(event.keyCode)))"
|
|
2351
|
-
}), null, 16, ["class", "disabled", "modelValue"])) :
|
|
2351
|
+
}), null, 16, ["class", "disabled", "modelValue"])) : F("", !0);
|
|
2352
2352
|
};
|
|
2353
2353
|
}
|
|
2354
2354
|
});
|
|
@@ -2375,7 +2375,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2375
2375
|
o.value = await me(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, ...fe() }), g.value = !0;
|
|
2376
2376
|
}), (i, c) => {
|
|
2377
2377
|
const j = O("el-input");
|
|
2378
|
-
return g.value ? (d(), S(j,
|
|
2378
|
+
return g.value ? (d(), S(j, ee({
|
|
2379
2379
|
key: 0,
|
|
2380
2380
|
class: e.desc.class,
|
|
2381
2381
|
"show-password": !0
|
|
@@ -2389,7 +2389,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2389
2389
|
De(i.$slots, m, { data: B })
|
|
2390
2390
|
])
|
|
2391
2391
|
}))
|
|
2392
|
-
]), 1040, ["class", "disabled", "modelValue"])) :
|
|
2392
|
+
]), 1040, ["class", "disabled", "modelValue"])) : F("", !0);
|
|
2393
2393
|
};
|
|
2394
2394
|
}
|
|
2395
2395
|
}), hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Kn }, Symbol.toStringTag, { value: "Module" })), xu = {
|
|
@@ -2458,7 +2458,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2458
2458
|
o.value.change = m;
|
|
2459
2459
|
}), t({ clear: $, field: n.field }), (B, b) => {
|
|
2460
2460
|
const Q = O("el-input");
|
|
2461
|
-
return d(), S(Q,
|
|
2461
|
+
return d(), S(Q, ee({ style: { display: "flex" } }, a.value, { disabled: e.disabled }, ye(o.value), {
|
|
2462
2462
|
modelValue: u.value,
|
|
2463
2463
|
"onUpdate:modelValue": b[0] || (b[0] = (w) => u.value = w),
|
|
2464
2464
|
onFocus: c,
|
|
@@ -2521,7 +2521,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2521
2521
|
), (j, p) => {
|
|
2522
2522
|
const m = O("el-input"), $ = O("el-tag");
|
|
2523
2523
|
return d(), I(oe, null, [
|
|
2524
|
-
o.value ? (d(), S(m,
|
|
2524
|
+
o.value ? (d(), S(m, ee({
|
|
2525
2525
|
key: 0,
|
|
2526
2526
|
class: e.desc.class,
|
|
2527
2527
|
style: e.desc.style,
|
|
@@ -2530,7 +2530,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2530
2530
|
disabled: e.disabled,
|
|
2531
2531
|
modelValue: i.value,
|
|
2532
2532
|
"onUpdate:modelValue": p[0] || (p[0] = (B) => i.value = B)
|
|
2533
|
-
}, ye(g.value)), null, 16, ["class", "style", "disabled", "modelValue"])) :
|
|
2533
|
+
}, ye(g.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : F("", !0),
|
|
2534
2534
|
ae("div", Lu, [
|
|
2535
2535
|
(d(!0), I(oe, null, Me(u, (B, b) => (d(), S($, {
|
|
2536
2536
|
key: b,
|
|
@@ -2574,7 +2574,7 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2574
2574
|
{ immediate: !0 }
|
|
2575
2575
|
), (i, c) => {
|
|
2576
2576
|
const j = O("el-radio"), p = O("el-radio-group");
|
|
2577
|
-
return o.value ? (d(), S(p,
|
|
2577
|
+
return o.value ? (d(), S(p, ee({
|
|
2578
2578
|
key: 0,
|
|
2579
2579
|
class: "ElPlusFormRadio-panel"
|
|
2580
2580
|
}, g.value, { disabled: e.disabled }, ye(u.value), {
|
|
@@ -2594,7 +2594,7 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2594
2594
|
}, 1032, ["label", "value"]))), 128))
|
|
2595
2595
|
]),
|
|
2596
2596
|
_: 1
|
|
2597
|
-
}, 16, ["disabled", "modelValue"])) :
|
|
2597
|
+
}, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
2598
2598
|
};
|
|
2599
2599
|
}
|
|
2600
2600
|
});
|
|
@@ -2630,7 +2630,7 @@ const Hn = /* @__PURE__ */ Ae(Su, [["__scopeId", "data-v-30e9221e"]]), ku = /* @
|
|
|
2630
2630
|
}
|
|
2631
2631
|
), (o, g) => {
|
|
2632
2632
|
const u = O("el-rate");
|
|
2633
|
-
return d(), S(u,
|
|
2633
|
+
return d(), S(u, ee({ class: "ElPlusFormRate-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
2634
2634
|
modelValue: je(s),
|
|
2635
2635
|
"onUpdate:modelValue": g[0] || (g[0] = (i) => ft(s) ? s.value = i : null)
|
|
2636
2636
|
}), null, 16, ["disabled", "modelValue"]);
|
|
@@ -2728,7 +2728,7 @@ const qn = /* @__PURE__ */ Ae(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2728
2728
|
{ immediate: !0 }
|
|
2729
2729
|
), t({ field: a.field, clear: w }), (v, G) => {
|
|
2730
2730
|
const P = O("el-option"), T = O("el-select");
|
|
2731
|
-
return p.value ? (d(), S(T,
|
|
2731
|
+
return p.value ? (d(), S(T, ee({
|
|
2732
2732
|
key: 0,
|
|
2733
2733
|
class: ["el-plus-form-select", e.desc.class],
|
|
2734
2734
|
style: e.desc.style,
|
|
@@ -2740,22 +2740,22 @@ const qn = /* @__PURE__ */ Ae(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2740
2740
|
}, ye($.value)), {
|
|
2741
2741
|
default: _(() => [
|
|
2742
2742
|
(d(!0), I(oe, null, Me(i, (L, y) => (d(), I(oe, { key: y }, [
|
|
2743
|
-
L && L.value ? (d(), S(P,
|
|
2743
|
+
L && L.value ? (d(), S(P, ee({
|
|
2744
2744
|
key: 0,
|
|
2745
2745
|
ref_for: !0
|
|
2746
2746
|
}, L), {
|
|
2747
2747
|
default: _(() => [
|
|
2748
2748
|
ae("div", Qu, [
|
|
2749
2749
|
ae("span", null, de(L.label || L.l), 1),
|
|
2750
|
-
e.desc.optionTip ? (d(), I("div", Uu, de(B.value(L)), 1)) :
|
|
2750
|
+
e.desc.optionTip ? (d(), I("div", Uu, de(B.value(L)), 1)) : F("", !0)
|
|
2751
2751
|
])
|
|
2752
2752
|
]),
|
|
2753
2753
|
_: 2
|
|
2754
|
-
}, 1040)) :
|
|
2754
|
+
}, 1040)) : F("", !0)
|
|
2755
2755
|
], 64))), 128))
|
|
2756
2756
|
]),
|
|
2757
2757
|
_: 1
|
|
2758
|
-
}, 16, ["class", "style", "disabled", "modelValue", "loading"])) :
|
|
2758
|
+
}, 16, ["class", "style", "disabled", "modelValue", "loading"])) : F("", !0);
|
|
2759
2759
|
};
|
|
2760
2760
|
}
|
|
2761
2761
|
});
|
|
@@ -2782,7 +2782,7 @@ const Ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2782
2782
|
r.value = await me(l, { ...fe() });
|
|
2783
2783
|
}), (o, g) => {
|
|
2784
2784
|
const u = O("el-slider");
|
|
2785
|
-
return d(), S(u,
|
|
2785
|
+
return d(), S(u, ee({ class: "ElPlusFormSlider-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
2786
2786
|
modelValue: s.value,
|
|
2787
2787
|
"onUpdate:modelValue": g[0] || (g[0] = (i) => s.value = i)
|
|
2788
2788
|
}), null, 16, ["disabled", "modelValue"]);
|
|
@@ -2873,12 +2873,12 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2873
2873
|
}), (i, c) => {
|
|
2874
2874
|
const j = O("el-switch");
|
|
2875
2875
|
return d(), I("div", Ju, [
|
|
2876
|
-
a.value ? (d(), S(j,
|
|
2876
|
+
a.value ? (d(), S(j, ee({ key: 0 }, o.value, { disabled: e.disabled }, ye(g.value), {
|
|
2877
2877
|
loading: n.loading || s.value,
|
|
2878
2878
|
modelValue: je(r),
|
|
2879
2879
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => ft(r) ? r.value = p : null),
|
|
2880
2880
|
"before-change": u
|
|
2881
|
-
}), null, 16, ["disabled", "loading", "modelValue"])) :
|
|
2881
|
+
}), null, 16, ["disabled", "loading", "modelValue"])) : F("", !0)
|
|
2882
2882
|
]);
|
|
2883
2883
|
};
|
|
2884
2884
|
}
|
|
@@ -2928,7 +2928,7 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2928
2928
|
), (o, g) => {
|
|
2929
2929
|
const u = O("el-tag");
|
|
2930
2930
|
return d(), I("div", null, [
|
|
2931
|
-
Z(u,
|
|
2931
|
+
Z(u, ee(n.value, {
|
|
2932
2932
|
disabled: e.disabled,
|
|
2933
2933
|
size: n.value.size || "default",
|
|
2934
2934
|
type: a.value && a.value !== "--" ? a.value : "primary"
|
|
@@ -2985,15 +2985,15 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2985
2985
|
typeof n.desc.format == "string" ? a.value = l[n.desc.format] ? l[n.desc.format](n.modelValue, n.formData, n.field) : "--" : a.value = n.modelValue || "-";
|
|
2986
2986
|
},
|
|
2987
2987
|
{ immediate: !0 }
|
|
2988
|
-
), (o, g) => (d(), I("div",
|
|
2988
|
+
), (o, g) => (d(), I("div", ee({
|
|
2989
2989
|
class: ["ele-form-text", [...e.desc.class || [], e.desc.linkType ? "ele-form-text-click" : ""]],
|
|
2990
2990
|
style: e.desc.style
|
|
2991
2991
|
}, s.value, ye(r.value, !0)), [
|
|
2992
|
-
e.desc.title ? (d(), I("span", ni, de(e.desc.title + ": "), 1)) :
|
|
2992
|
+
e.desc.title ? (d(), I("span", ni, de(e.desc.title + ": "), 1)) : F("", !0),
|
|
2993
2993
|
e.desc.icon ? (d(), I("i", {
|
|
2994
2994
|
key: 1,
|
|
2995
2995
|
class: dt([(e.formData || {}).icon])
|
|
2996
|
-
}, null, 2)) :
|
|
2996
|
+
}, null, 2)) : F("", !0),
|
|
2997
2997
|
pe(" " + de(a.value), 1)
|
|
2998
2998
|
], 16));
|
|
2999
2999
|
}
|
|
@@ -3027,7 +3027,7 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3027
3027
|
{ immediate: !0 }
|
|
3028
3028
|
), (u, i) => {
|
|
3029
3029
|
const c = O("el-input");
|
|
3030
|
-
return a.value ? (d(), S(c,
|
|
3030
|
+
return a.value ? (d(), S(c, ee({
|
|
3031
3031
|
key: 0,
|
|
3032
3032
|
class: e.desc.class,
|
|
3033
3033
|
style: e.desc.style,
|
|
@@ -3036,7 +3036,7 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3036
3036
|
disabled: e.disabled,
|
|
3037
3037
|
modelValue: g.value,
|
|
3038
3038
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => g.value = j)
|
|
3039
|
-
}, ye(o.value)), null, 16, ["class", "style", "disabled", "modelValue"])) :
|
|
3039
|
+
}, ye(o.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : F("", !0);
|
|
3040
3040
|
};
|
|
3041
3041
|
}
|
|
3042
3042
|
}), ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: aa }, Symbol.toStringTag, { value: "Module" })), ri = {
|
|
@@ -3063,13 +3063,13 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3063
3063
|
r.value = await me(l, { editable: !1, ...fe() }), a.value = !0;
|
|
3064
3064
|
}), (u, i) => {
|
|
3065
3065
|
const c = O("el-time-picker");
|
|
3066
|
-
return a.value ? (d(), S(c,
|
|
3066
|
+
return a.value ? (d(), S(c, ee({
|
|
3067
3067
|
key: 0,
|
|
3068
3068
|
class: "ElPlusFormTime-panel"
|
|
3069
3069
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
3070
3070
|
modelValue: s.value,
|
|
3071
3071
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => s.value = j)
|
|
3072
|
-
}), null, 16, ["disabled", "modelValue"])) :
|
|
3072
|
+
}), null, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
3073
3073
|
};
|
|
3074
3074
|
}
|
|
3075
3075
|
});
|
|
@@ -3094,7 +3094,7 @@ const oa = /* @__PURE__ */ Ae(ci, [["__scopeId", "data-v-937cba1a"]]), di = /* @
|
|
|
3094
3094
|
a.value = await me(l, { format: "HH:mm:ss", editable: !1, ...fe() }), o.value = !0;
|
|
3095
3095
|
}), (u, i) => {
|
|
3096
3096
|
const c = O("el-time-picker");
|
|
3097
|
-
return o.value ? (d(), S(c,
|
|
3097
|
+
return o.value ? (d(), S(c, ee({
|
|
3098
3098
|
key: 0,
|
|
3099
3099
|
isRange: "",
|
|
3100
3100
|
class: "el-plusF-form-timerange-panel"
|
|
@@ -3108,7 +3108,7 @@ const oa = /* @__PURE__ */ Ae(ci, [["__scopeId", "data-v-937cba1a"]]), di = /* @
|
|
|
3108
3108
|
De(u.$slots, p, { data: $ }, void 0, !0)
|
|
3109
3109
|
])
|
|
3110
3110
|
}))
|
|
3111
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
3111
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
3112
3112
|
};
|
|
3113
3113
|
}
|
|
3114
3114
|
});
|
|
@@ -3136,7 +3136,7 @@ const sa = /* @__PURE__ */ Ae(fi, [["__scopeId", "data-v-32e2a1cb"]]), gi = /* @
|
|
|
3136
3136
|
a.value = await me(l, { ...fe() });
|
|
3137
3137
|
}), (g, u) => {
|
|
3138
3138
|
const i = O("el-transfer");
|
|
3139
|
-
return d(), S(i,
|
|
3139
|
+
return d(), S(i, ee({
|
|
3140
3140
|
class: [e.desc.class, "ele-form-transfer"],
|
|
3141
3141
|
data: e.desc.options,
|
|
3142
3142
|
style: e.desc.style
|
|
@@ -3211,7 +3211,7 @@ const ua = /* @__PURE__ */ Ae(ji, [["__scopeId", "data-v-2fec4270"]]), pi = /* @
|
|
|
3211
3211
|
onClick: r[0] || (r[0] = _t(() => {
|
|
3212
3212
|
}, ["stop"])),
|
|
3213
3213
|
onChange: (c) => l(u, !!c)
|
|
3214
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onChange"])) :
|
|
3214
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "onChange"])) : F("", !0),
|
|
3215
3215
|
ae("span", {
|
|
3216
3216
|
class: "node-label",
|
|
3217
3217
|
title: u[e.treeState.config.labelKey]
|
|
@@ -3225,7 +3225,7 @@ const ua = /* @__PURE__ */ Ae(ji, [["__scopeId", "data-v-2fec4270"]]), pi = /* @
|
|
|
3225
3225
|
"on-node-check": e.onNodeCheck,
|
|
3226
3226
|
"on-node-expand": e.onNodeExpand
|
|
3227
3227
|
}, null, 8, ["nodes", "depth", "tree-state", "on-node-check", "on-node-expand"])
|
|
3228
|
-
])) :
|
|
3228
|
+
])) : F("", !0)
|
|
3229
3229
|
])), [
|
|
3230
3230
|
[Yn, e.treeState.isNodeVisible(u)]
|
|
3231
3231
|
])), 128))
|
|
@@ -3478,11 +3478,11 @@ const _i = /* @__PURE__ */ H({
|
|
|
3478
3478
|
Mt(C, se) || (C._checked = A);
|
|
3479
3479
|
return $.value ? mt(o.value, se) : Kt(o.value, se), v(), !0;
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3481
|
+
function D(C) {
|
|
3482
3482
|
const A = w();
|
|
3483
3483
|
C._expanded = !C._expanded, A.accordion && C._expanded && fa(o.value, C, A), fl(o);
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function Y(C) {
|
|
3486
3486
|
const A = w(), Te = (m.value ? Gl(o.value, A) : $l(o.value, A)).filter((he) => !A.fsIds.includes(he) && !A.nsIds.includes(he));
|
|
3487
3487
|
if (C) {
|
|
3488
3488
|
const he = new Set(Ft(o.value, A));
|
|
@@ -3500,7 +3500,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3500
3500
|
const A = w();
|
|
3501
3501
|
C ? ul(o.value, C, A) : ra(o.value, A), v();
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function te(C) {
|
|
3504
3504
|
const A = w(), se = new Set(C || []);
|
|
3505
3505
|
if (da(o.value, A), $.value) {
|
|
3506
3506
|
for (const Te of se)
|
|
@@ -3510,7 +3510,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3510
3510
|
ca(o.value, se, A), Rt(o.value, A), Kt(o.value, A);
|
|
3511
3511
|
v(), m.value && ul(o.value, m.value, A);
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function R() {
|
|
3514
3514
|
const C = w();
|
|
3515
3515
|
return C.isPId ? xi(o.value, C) : Ft(o.value, C);
|
|
3516
3516
|
}
|
|
@@ -3528,7 +3528,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3528
3528
|
return C.length ? C.every((A) => b.value.has(A)) : !1;
|
|
3529
3529
|
},
|
|
3530
3530
|
set(C) {
|
|
3531
|
-
|
|
3531
|
+
Y(C), a.value = R(), be(() => {
|
|
3532
3532
|
r("validateThis");
|
|
3533
3533
|
});
|
|
3534
3534
|
}
|
|
@@ -3552,7 +3552,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3552
3552
|
nodeHasChildren: k,
|
|
3553
3553
|
getNodeIdStr: x,
|
|
3554
3554
|
toggleCheck: N,
|
|
3555
|
-
toggleExpand:
|
|
3555
|
+
toggleExpand: D
|
|
3556
3556
|
});
|
|
3557
3557
|
ze(async () => {
|
|
3558
3558
|
var A, se, Te, he;
|
|
@@ -3580,7 +3580,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3580
3580
|
accordion: u.value.accordion ?? !1,
|
|
3581
3581
|
disabled: s.disabled ?? !1
|
|
3582
3582
|
};
|
|
3583
|
-
j.value = C, $.value = !C.checkStrictly, h.config = C, o.value.length && (M(), (he = a.value) != null && he.length &&
|
|
3583
|
+
j.value = C, $.value = !C.checkStrictly, h.config = C, o.value.length && (M(), (he = a.value) != null && he.length && te(a.value)), g.value = !0;
|
|
3584
3584
|
}), re($, () => {
|
|
3585
3585
|
j.value && ($.value ? mt(o.value, w()) : Kt(o.value, w()), v());
|
|
3586
3586
|
});
|
|
@@ -3594,7 +3594,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3594
3594
|
ne.cancel();
|
|
3595
3595
|
});
|
|
3596
3596
|
function ve(C, A) {
|
|
3597
|
-
N(C, A) && (a.value =
|
|
3597
|
+
N(C, A) && (a.value = R(), be(() => {
|
|
3598
3598
|
r("validateThis"), i.value["check-change"] && i.value["check-change"](C, A);
|
|
3599
3599
|
}));
|
|
3600
3600
|
}
|
|
@@ -3618,7 +3618,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3618
3618
|
p.value = l.cloneDeep(C), o.value = [...C];
|
|
3619
3619
|
} else
|
|
3620
3620
|
o.value = [];
|
|
3621
|
-
j.value && (K(o.value), (A = a.value) != null && A.length &&
|
|
3621
|
+
j.value && (K(o.value), (A = a.value) != null && A.length && te(a.value));
|
|
3622
3622
|
},
|
|
3623
3623
|
{ immediate: !0 }
|
|
3624
3624
|
), re(
|
|
@@ -3626,8 +3626,8 @@ const _i = /* @__PURE__ */ H({
|
|
|
3626
3626
|
(C) => {
|
|
3627
3627
|
if (!j.value)
|
|
3628
3628
|
return;
|
|
3629
|
-
const A =
|
|
3630
|
-
tt(C || [], A) ||
|
|
3629
|
+
const A = R();
|
|
3630
|
+
tt(C || [], A) || te(C || []);
|
|
3631
3631
|
}
|
|
3632
3632
|
), re(
|
|
3633
3633
|
() => s.disabled,
|
|
@@ -3645,7 +3645,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3645
3645
|
onChange: A[0] || (A[0] = (He) => h.selectAll = !!He),
|
|
3646
3646
|
label: "全部勾选",
|
|
3647
3647
|
border: ""
|
|
3648
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
3648
|
+
}, null, 8, ["model-value", "indeterminate"])) : F("", !0),
|
|
3649
3649
|
u.value.showCascadeSwitch ? (d(), S(Te, {
|
|
3650
3650
|
key: 1,
|
|
3651
3651
|
"model-value": h.cascadeMode,
|
|
@@ -3653,7 +3653,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3653
3653
|
"active-text": "级联",
|
|
3654
3654
|
"inactive-text": "独立",
|
|
3655
3655
|
"inline-prompt": ""
|
|
3656
|
-
}, null, 8, ["model-value"])) :
|
|
3656
|
+
}, null, 8, ["model-value"])) : F("", !0),
|
|
3657
3657
|
u.value.enableSearch ? (d(), S(he, {
|
|
3658
3658
|
key: 2,
|
|
3659
3659
|
"model-value": h.searchText,
|
|
@@ -3664,8 +3664,8 @@ const _i = /* @__PURE__ */ H({
|
|
|
3664
3664
|
"validate-event": !1,
|
|
3665
3665
|
clearable: "",
|
|
3666
3666
|
class: "tree-search-input"
|
|
3667
|
-
}, null, 8, ["model-value"])) :
|
|
3668
|
-
])) :
|
|
3667
|
+
}, null, 8, ["model-value"])) : F("", !0)
|
|
3668
|
+
])) : F("", !0),
|
|
3669
3669
|
g.value && o.value.length ? (d(), I("div", {
|
|
3670
3670
|
key: 1,
|
|
3671
3671
|
class: "custom-tree",
|
|
@@ -3678,7 +3678,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3678
3678
|
"on-node-check": ve,
|
|
3679
3679
|
"on-node-expand": Be
|
|
3680
3680
|
}, null, 8, ["nodes", "tree-state"])
|
|
3681
|
-
], 4)) : g.value ? (d(), I("div", Ti, "暂无选项")) :
|
|
3681
|
+
], 4)) : g.value ? (d(), I("div", Ti, "暂无选项")) : F("", !0)
|
|
3682
3682
|
]);
|
|
3683
3683
|
};
|
|
3684
3684
|
}
|
|
@@ -3713,7 +3713,7 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3713
3713
|
{ immediate: !0 }
|
|
3714
3714
|
), (i, c) => {
|
|
3715
3715
|
const j = O("el-tree-select");
|
|
3716
|
-
return o.value ? (d(), S(j,
|
|
3716
|
+
return o.value ? (d(), S(j, ee({
|
|
3717
3717
|
key: 0,
|
|
3718
3718
|
class: e.desc.class,
|
|
3719
3719
|
style: e.desc.style
|
|
@@ -3723,7 +3723,7 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3723
3723
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.value = p),
|
|
3724
3724
|
data: a,
|
|
3725
3725
|
loading: e.loading
|
|
3726
|
-
}, ye(u.value), { "render-after-expand": !1 }), null, 16, ["class", "style", "disabled", "modelValue", "data", "loading"])) :
|
|
3726
|
+
}, ye(u.value), { "render-after-expand": !1 }), null, 16, ["class", "style", "disabled", "modelValue", "data", "loading"])) : F("", !0);
|
|
3727
3727
|
};
|
|
3728
3728
|
}
|
|
3729
3729
|
}), Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Na }, Symbol.toStringTag, { value: "Module" })), ja = ["image/jpg", "image/png", "image/gif", "image/jpeg"], Zt = [".jpe", ".jpeg", ".jpg", ".gif", ".png"], pa = ["video/3gpp", "video/mpeg", "application/mp4", "video/mp4", "video/ogg", "video/x-flv", "video/x-msvideo"], ya = [".3gpp", ".mpeg", ".mpg", ".mp4", ".ogv", ".flv", ".avi"], za = ["audio/x-wav", "audio/x-ms-wma", "audio/mp4", "audio/mp3"], ma = [".wav", ".wma", ".mp4a", ".mp3"], Da = ["application/x-msaccess", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.presentationml.presentation", " application/vnd.ms-powerpoint", "application/vnd.ms-excel", " application/msword", "application/pdf", "application/vnd.ms-works"], va = [".mdb", ".docx", ".xlsx", ".pptx", ".ppt", ".xls", ".doc", ".pdf"], Ya = ["application/xml", "application/x-sh", "application/json", "application/javascript", "application/java-vm", "application/java-archive", "text/html", "text/plain"], Ia = [".xml", ".sh", ".json", ".js", ".class", ".jar", "html", ".txt", ".wdb", ".wps"], wa = ["application/x-rar-compressed", "application/x-msdownload", "application/x-font-woff", " application/x-font-ttf", "application/x-7z-compressed", " application/vnd.android.package-archive", "application/zip"], ba = [".rar", ".exe", ".woff", ".ttf", ".7z", ".apk", ".zip"], Oi = [...ja, ...pa, ...za, ...Da, ...Ya, ...wa], Si = [...Zt, ...ya, ...ma, ...va, ...Ia, ...ba], Wt = [
|
|
@@ -3763,149 +3763,149 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3763
3763
|
r("update:modelValue", a);
|
|
3764
3764
|
const o = f({}), g = f(!1), u = f(Ie(s)), i = f(""), c = f({}), j = le(() => !s.desc.upType || s.desc.upType === "image"), p = f(!1), m = f(0), $ = le(() => {
|
|
3765
3765
|
const N = [];
|
|
3766
|
-
return a.value.map((
|
|
3767
|
-
var
|
|
3768
|
-
Zt.indexOf(((
|
|
3766
|
+
return a.value.map((D) => {
|
|
3767
|
+
var Y;
|
|
3768
|
+
Zt.indexOf(((Y = D.raw) == null ? void 0 : Y.suffix) || D.suffix) >= 0 && N.push(D.signUrl || D.url);
|
|
3769
3769
|
}), N;
|
|
3770
3770
|
});
|
|
3771
3771
|
ze(async () => {
|
|
3772
|
-
var N,
|
|
3773
|
-
!((N = l.upload) != null && N.sign) && !((
|
|
3772
|
+
var N, D, Y, U, te, R, K;
|
|
3773
|
+
!((N = l.upload) != null && N.sign) && !((D = s.desc) != null && D.sign) && l.debug && console.warn("上传私有加密仓库必须在config或desc中配置sign方法进行图片/文件签名鉴权,否则图片将无法显示和预览!"), o.value = await me(s, {
|
|
3774
3774
|
drag: !0,
|
|
3775
3775
|
listType: j.value ? "picture-card" : "text",
|
|
3776
3776
|
multiple: !!s.desc.multiple,
|
|
3777
3777
|
limit: s.desc.multiple ? s.desc.limit || 20 : 1,
|
|
3778
3778
|
autoUpload: s.desc.autoUpload ?? !0,
|
|
3779
3779
|
accept: s.desc.accept || Kl[`${s.desc.upType || "image"}Types`].join(","),
|
|
3780
|
-
maxSize: s.desc.maxSize || (j.value ? (
|
|
3780
|
+
maxSize: s.desc.maxSize || (j.value ? (Y = l.upload) == null ? void 0 : Y.maxISize : (U = l.upload) == null ? void 0 : U.maxFSize),
|
|
3781
3781
|
beforeUpload: B,
|
|
3782
3782
|
onRemove: G,
|
|
3783
3783
|
onSuccess: w,
|
|
3784
3784
|
onExceed: L,
|
|
3785
3785
|
onPreview: T,
|
|
3786
3786
|
...fe()
|
|
3787
|
-
}), (
|
|
3787
|
+
}), (te = s.desc) != null && te.uploadFn || (R = l.upload) != null && R.uploadFn ? o.value.httpRequest = y : (((K = l.upload) == null ? void 0 : K.type) === "minio" && (o.value.method = "PUT"), o.value.action = i), g.value = !0;
|
|
3788
3788
|
});
|
|
3789
3789
|
async function B(N) {
|
|
3790
|
-
var
|
|
3790
|
+
var Y, U, te, R, K, M, z, V, h;
|
|
3791
3791
|
N.suffix = `${N.name.substring(N.name.lastIndexOf("."))}`.split("?")[0];
|
|
3792
|
-
const
|
|
3793
|
-
if (
|
|
3794
|
-
return Xe.warning(
|
|
3792
|
+
const D = x(N, Kl[`${s.desc.upType || "image"}Suffixes`], o.value.maxSize);
|
|
3793
|
+
if (D !== !0)
|
|
3794
|
+
return Xe.warning(D), !1;
|
|
3795
3795
|
try {
|
|
3796
3796
|
N.url = URL.createObjectURL(N);
|
|
3797
3797
|
let ne = {};
|
|
3798
|
-
(
|
|
3798
|
+
(Y = s.desc) != null && Y.action && (ne = await b((U = s.desc) == null ? void 0 : U.action, { fileName: N.name })), ne.action || (ne = await b((te = l.upload) == null ? void 0 : te.action, { fileName: N.name })), i.value = ne.action, N.uploadId = ne.uploadId || "", N.furl = ne.furl, ((R = s.desc) != null && R.token || (K = l.upload) != null && K.token) && (o.value.data = { token: await Q(((M = s.desc) == null ? void 0 : M.token) || ((z = l.upload) == null ? void 0 : z.token), N) }), !((V = s.desc) != null && V.uploadFn) && ((h = l.upload) == null ? void 0 : h.type) === "minio" && (o.value.data = N, o.value.headers = {
|
|
3799
3799
|
"Content-Type": N.type
|
|
3800
3800
|
});
|
|
3801
3801
|
} catch (ne) {
|
|
3802
3802
|
l.debug && console.log("获取action出错: ", ne);
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
async function b(N,
|
|
3806
|
-
var U,
|
|
3807
|
-
const
|
|
3805
|
+
async function b(N, D) {
|
|
3806
|
+
var U, te, R, K, M, z, V, h, ne, ge, ve, Be, C, A, se;
|
|
3807
|
+
const Y = { action: "", uploadId: void 0, token: void 0, furl: "" };
|
|
3808
3808
|
if (typeof N == "function") {
|
|
3809
|
-
const Te = N({ ...
|
|
3810
|
-
typeof he == "object" ? (
|
|
3809
|
+
const Te = N({ ...D || {}, type: (U = l.upload) == null ? void 0 : U.type }), he = et(Te) ? await Te : Te;
|
|
3810
|
+
typeof he == "object" ? (Y.action = ut(((R = (te = s.desc) == null ? void 0 : te.actionMap) == null ? void 0 : R.actionKey) || ((M = (K = l.upload) == null ? void 0 : K.actionMap) == null ? void 0 : M.actionKey) || [], he), Y.uploadId = ut(((V = (z = s.desc) == null ? void 0 : z.actionMap) == null ? void 0 : V.uploadIdKey) || ((ne = (h = l.upload) == null ? void 0 : h.actionMap) == null ? void 0 : ne.uploadIdKey) || [], he), Y.token = ut(((ge = s.desc) == null ? void 0 : ge.tokenKey) || ((ve = l.upload) == null ? void 0 : ve.tokenKey) || [], he), Y.furl = ut(((C = (Be = s.desc) == null ? void 0 : Be.actionMap) == null ? void 0 : C.objectUrlKey) || ((se = (A = l.upload) == null ? void 0 : A.actionMap) == null ? void 0 : se.objectUrlKey) || [], he)) : Y.action = he, c.value = he;
|
|
3811
3811
|
} else
|
|
3812
|
-
N !== void 0 && (
|
|
3813
|
-
return
|
|
3812
|
+
N !== void 0 && (Y.action = N);
|
|
3813
|
+
return Y;
|
|
3814
3814
|
}
|
|
3815
|
-
async function Q(N,
|
|
3816
|
-
var U,
|
|
3817
|
-
let
|
|
3815
|
+
async function Q(N, D) {
|
|
3816
|
+
var U, te;
|
|
3817
|
+
let Y = "";
|
|
3818
3818
|
if (typeof N == "function") {
|
|
3819
|
-
const
|
|
3820
|
-
typeof K == "object" ?
|
|
3819
|
+
const R = N(D), K = et(R) ? await R : R;
|
|
3820
|
+
typeof K == "object" ? Y = ut(((U = s.desc) == null ? void 0 : U.tokenKey) || ((te = l.upload) == null ? void 0 : te.tokenKey) || [], K) : Y = K;
|
|
3821
3821
|
}
|
|
3822
|
-
return
|
|
3822
|
+
return Y;
|
|
3823
3823
|
}
|
|
3824
|
-
async function w(N,
|
|
3825
|
-
var
|
|
3824
|
+
async function w(N, D) {
|
|
3825
|
+
var Y, U, te, R, K, M, z;
|
|
3826
3826
|
if (N && Object.keys(N).length > 0) {
|
|
3827
|
-
const V = ut(((U = (
|
|
3828
|
-
V && (
|
|
3827
|
+
const V = ut(((U = (Y = l.upload) == null ? void 0 : Y.actionMap) == null ? void 0 : U.objectUrlKey) || [], N.request || N.result || N);
|
|
3828
|
+
V && (D.raw.furl = V);
|
|
3829
3829
|
}
|
|
3830
|
-
if ((
|
|
3830
|
+
if ((te = l.upload) != null && te.sign) {
|
|
3831
3831
|
let V = {};
|
|
3832
|
-
const h = (K = l.upload) == null ? void 0 : K.sign(
|
|
3833
|
-
et(h) ? V = await h : V = h,
|
|
3832
|
+
const h = (K = l.upload) == null ? void 0 : K.sign(D.raw[((R = l.upload) == null ? void 0 : R.type) === "aliyun" ? "furl" : "uploadId"]);
|
|
3833
|
+
et(h) ? V = await h : V = h, D.raw.previewUrl = ut(((M = l.upload.signMap) == null ? void 0 : M.previewUrlKey) || [], V), D.raw.shareUrl = ut(((z = l.upload.signMap) == null ? void 0 : z.objectUrlKey) || [], V), D.raw.url = D.raw.shareUrl;
|
|
3834
3834
|
} else
|
|
3835
|
-
|
|
3836
|
-
j.value ?
|
|
3835
|
+
D.raw.previewUrl = D.raw.furl, D.raw.shareUrl = D.raw.furl;
|
|
3836
|
+
j.value ? D.url = v(D.raw) : D.url = D.raw.furl, P(D, 1);
|
|
3837
3837
|
}
|
|
3838
3838
|
function v(N) {
|
|
3839
|
-
const
|
|
3840
|
-
if (
|
|
3841
|
-
if (Zt.indexOf(
|
|
3842
|
-
return
|
|
3839
|
+
const D = N.shareUrl || N.signUrl || N.url || N.furl, Y = `${((N == null ? void 0 : N.suffix) || D.substring(D.split("?")[0].lastIndexOf(".")) || "").toLocaleLowerCase()}`.split("?")[0];
|
|
3840
|
+
if (Y) {
|
|
3841
|
+
if (Zt.indexOf(Y) >= 0)
|
|
3842
|
+
return D;
|
|
3843
3843
|
for (let U = 0; U < Wt.length; U++)
|
|
3844
|
-
for (let
|
|
3845
|
-
if (Wt[U].suffixes[
|
|
3844
|
+
for (let te = 0; te < Wt[U].suffixes.length; te++)
|
|
3845
|
+
if (Wt[U].suffixes[te] === Y)
|
|
3846
3846
|
return n[Wt[U].type];
|
|
3847
3847
|
}
|
|
3848
|
-
return console.log("!props.desc.upType || props.desc.upType === 'image' ? fileUrl : iconMap.file: ", !s.desc.upType || s.desc.upType === "image" ?
|
|
3848
|
+
return console.log("!props.desc.upType || props.desc.upType === 'image' ? fileUrl : iconMap.file: ", !s.desc.upType || s.desc.upType === "image" ? D : n.file), !s.desc.upType || s.desc.upType === "image" ? D : n.file;
|
|
3849
3849
|
}
|
|
3850
3850
|
function G(N) {
|
|
3851
3851
|
P(N, 0);
|
|
3852
3852
|
}
|
|
3853
|
-
function P(N,
|
|
3854
|
-
var
|
|
3855
|
-
if (
|
|
3853
|
+
function P(N, D) {
|
|
3854
|
+
var Y, U, te;
|
|
3855
|
+
if (D === 1)
|
|
3856
3856
|
a.value.push({
|
|
3857
3857
|
name: N.name,
|
|
3858
3858
|
furl: N.raw.furl || N.furl || N.url,
|
|
3859
|
-
url: j.value ? v(N.raw) : ((
|
|
3859
|
+
url: j.value ? v(N.raw) : ((Y = N == null ? void 0 : N.raw) == null ? void 0 : Y.shareUrl) || N.url,
|
|
3860
3860
|
fsize: N.size,
|
|
3861
3861
|
uid: N.uid,
|
|
3862
3862
|
mimeType: (U = N.raw) == null ? void 0 : U.type,
|
|
3863
|
-
suffix: ((
|
|
3863
|
+
suffix: ((te = N.raw.suffix) == null ? void 0 : te.toLocaleLowerCase()) || "",
|
|
3864
3864
|
busId: s.desc.busId,
|
|
3865
3865
|
busType: s.desc.busType
|
|
3866
3866
|
});
|
|
3867
3867
|
else {
|
|
3868
|
-
const
|
|
3869
|
-
|
|
3868
|
+
const R = a.value.findIndex((K) => K.uid === N.uid);
|
|
3869
|
+
R >= 0 && a.value.splice(R, 1);
|
|
3870
3870
|
}
|
|
3871
3871
|
r("validateThis");
|
|
3872
3872
|
}
|
|
3873
3873
|
function T(N) {
|
|
3874
|
-
var
|
|
3875
|
-
Zt.indexOf((((
|
|
3876
|
-
var
|
|
3877
|
-
return U === (N.signUrl || ((
|
|
3878
|
-
}), m.value < 0 && (m.value = 0), p.value = !0) : window.open(((
|
|
3874
|
+
var D, Y;
|
|
3875
|
+
Zt.indexOf((((D = N.raw) == null ? void 0 : D.suffix) || N.suffix || "").toLocaleLowerCase()) >= 0 ? (m.value = $.value.findIndex((U) => {
|
|
3876
|
+
var te, R;
|
|
3877
|
+
return U === (N.signUrl || ((te = N.raw) == null ? void 0 : te.shareUrl) || ((R = N.raw) == null ? void 0 : R.signUrl) || N.furl);
|
|
3878
|
+
}), m.value < 0 && (m.value = 0), p.value = !0) : window.open(((Y = N.raw) == null ? void 0 : Y.previewUrl) || N.previewUrl, "_blank");
|
|
3879
3879
|
}
|
|
3880
3880
|
function L() {
|
|
3881
3881
|
Xe.error("数量最多只能上传" + o.value.limit + "个图片/文件!!!");
|
|
3882
3882
|
}
|
|
3883
3883
|
function y(N) {
|
|
3884
|
-
var
|
|
3885
|
-
return N.action = i.value, N.actionInfo = c.value, (((
|
|
3884
|
+
var Y, U;
|
|
3885
|
+
return N.action = i.value, N.actionInfo = c.value, (((Y = s.desc) == null ? void 0 : Y.uploadFn) || ((U = l.upload) == null ? void 0 : U.uploadFn))(N);
|
|
3886
3886
|
}
|
|
3887
3887
|
function k() {
|
|
3888
3888
|
}
|
|
3889
|
-
function x(N,
|
|
3890
|
-
return N.size >
|
|
3889
|
+
function x(N, D, Y) {
|
|
3890
|
+
return N.size > Y ? "上传文件大小不能超过 " + (Y / 1024 / 1024).toFixed(2) + "M~" : D && D.length > 0 && D.every((U) => U !== (N.suffix || "").toLocaleLowerCase()) ? "上传文件类型错误,请重新选择~" : !0;
|
|
3891
3891
|
}
|
|
3892
3892
|
return re(
|
|
3893
3893
|
() => s.modelValue,
|
|
3894
|
-
(N,
|
|
3895
|
-
JSON.stringify(N) !== JSON.stringify(
|
|
3896
|
-
var U,
|
|
3897
|
-
return j.value && (
|
|
3894
|
+
(N, D) => {
|
|
3895
|
+
JSON.stringify(N) !== JSON.stringify(D) && (typeof N == "string" ? N !== "" ? a.value = [{ url: N, furl: N, suffix: `${N.substring(N.lastIndexOf(".")).toLocaleLowerCase()}`.split("?")[0] }] : a.value = [] : a.value = (N == null ? void 0 : N.map((Y) => {
|
|
3896
|
+
var U, te, R, K, M, z;
|
|
3897
|
+
return j.value && (Y.url = v(Y) || ut(((te = (U = l.upload) == null ? void 0 : U.signMap) == null ? void 0 : te.previewUrlKey) || [], Y), Y.furl = Y.furl || v(Y)), Y.suffix = `${(Y.suffix || ((K = Y.url) == null ? void 0 : K.substring(((R = Y.url) == null ? void 0 : R.lastIndexOf(".")) || 0)) || "").toLocaleLowerCase()}`.split("?")[0], Y.previewUrl = ut(((z = (M = l.upload) == null ? void 0 : M.signMap) == null ? void 0 : z.previewUrlKey) || [], Y) || Y.furl || Y.url, Y;
|
|
3898
3898
|
})) || []);
|
|
3899
3899
|
},
|
|
3900
3900
|
{ immediate: !0 }
|
|
3901
|
-
), (N,
|
|
3901
|
+
), (N, D) => {
|
|
3902
3902
|
var K;
|
|
3903
|
-
const
|
|
3903
|
+
const Y = O("el-icon"), U = O("el-upload"), te = O("el-image-viewer"), R = O("el-button");
|
|
3904
3904
|
return g.value ? (d(), I("div", {
|
|
3905
3905
|
key: 0,
|
|
3906
3906
|
class: dt(["ele-form-upload-image", { "ele-form-upload-file": !!e.desc.upType }])
|
|
3907
3907
|
}, [
|
|
3908
|
-
Z(U,
|
|
3908
|
+
Z(U, ee({ class: "ele-image-upload" }, o.value, ye(u.value), {
|
|
3909
3909
|
disabled: e.disabled,
|
|
3910
3910
|
fileList: a.value || [],
|
|
3911
3911
|
class: { "over-limit": ((K = a.value) == null ? void 0 : K.length) >= o.value.limit, "upload-disabled": o.value.disabled }
|
|
@@ -3916,7 +3916,7 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3916
3916
|
key: 0,
|
|
3917
3917
|
class: dt(e.desc.icon),
|
|
3918
3918
|
style: Pe({ fontSize: e.desc.fontSize || "14px", color: e.desc.color || "#C0C4CC" })
|
|
3919
|
-
}, null, 6)) : (d(), S(
|
|
3919
|
+
}, null, 6)) : (d(), S(Y, {
|
|
3920
3920
|
key: 1,
|
|
3921
3921
|
style: Pe({ fontSize: e.desc.fontSize || "14px", color: e.desc.color || "#C0C4CC" })
|
|
3922
3922
|
}, {
|
|
@@ -3925,34 +3925,34 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3925
3925
|
]),
|
|
3926
3926
|
_: 1
|
|
3927
3927
|
}, 8, ["style"])),
|
|
3928
|
-
e.desc.upType && e.desc.text2 ? (d(), I("div", $i, de(e.desc.text2), 1)) :
|
|
3929
|
-
e.desc.upType ? (d(), I("div", Gi, de(e.desc.text || "拖拽/点击上传"), 1)) :
|
|
3928
|
+
e.desc.upType && e.desc.text2 ? (d(), I("div", $i, de(e.desc.text2), 1)) : F("", !0),
|
|
3929
|
+
e.desc.upType ? (d(), I("div", Gi, de(e.desc.text || "拖拽/点击上传"), 1)) : F("", !0)
|
|
3930
3930
|
])
|
|
3931
3931
|
]),
|
|
3932
3932
|
_: 1
|
|
3933
3933
|
}, 16, ["disabled", "fileList", "class"]),
|
|
3934
|
-
p.value ? (d(), S(
|
|
3934
|
+
p.value ? (d(), S(te, {
|
|
3935
3935
|
key: 0,
|
|
3936
|
-
onClose:
|
|
3936
|
+
onClose: D[0] || (D[0] = (M) => p.value = !1),
|
|
3937
3937
|
teleported: "",
|
|
3938
3938
|
initialIndex: m.value,
|
|
3939
3939
|
"url-list": $.value
|
|
3940
|
-
}, null, 8, ["initialIndex", "url-list"])) :
|
|
3941
|
-
o.value.autoUpload ?
|
|
3942
|
-
Z(
|
|
3940
|
+
}, null, 8, ["initialIndex", "url-list"])) : F("", !0),
|
|
3941
|
+
o.value.autoUpload ? F("", !0) : (d(), I("div", Ki, [
|
|
3942
|
+
Z(R, {
|
|
3943
3943
|
style: { "margin-left": "10px" },
|
|
3944
3944
|
size: "small",
|
|
3945
3945
|
type: "success",
|
|
3946
3946
|
onClick: k,
|
|
3947
3947
|
disabled: o.value.disabled
|
|
3948
3948
|
}, {
|
|
3949
|
-
default: _(() => [...
|
|
3949
|
+
default: _(() => [...D[1] || (D[1] = [
|
|
3950
3950
|
pe(" 上传到服务器 ", -1)
|
|
3951
3951
|
])]),
|
|
3952
3952
|
_: 1
|
|
3953
3953
|
}, 8, ["disabled"])
|
|
3954
3954
|
]))
|
|
3955
|
-
], 2)) :
|
|
3955
|
+
], 2)) : F("", !0);
|
|
3956
3956
|
};
|
|
3957
3957
|
}
|
|
3958
3958
|
});
|
|
@@ -4149,7 +4149,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
}), be(() => {
|
|
4151
4151
|
setTimeout(() => {
|
|
4152
|
-
|
|
4152
|
+
D();
|
|
4153
4153
|
}, 50);
|
|
4154
4154
|
}), M;
|
|
4155
4155
|
}), Q = le(() => {
|
|
@@ -4362,12 +4362,12 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4362
4362
|
a.modelValue && Object.keys(a.modelValue).map((M) => {
|
|
4363
4363
|
j && j[M] !== void 0 && j[M] !== null ? a.modelValue[M] = j[M] : a.groupFormDesc ? a.modelValue[M] = a.groupFormDesc && a.groupFormDesc[M] && a.groupFormDesc[M].default || null : a.modelValue[M] = a.formDesc && a.formDesc[M] && a.formDesc[M].default || null;
|
|
4364
4364
|
}), setTimeout(() => {
|
|
4365
|
-
|
|
4365
|
+
D();
|
|
4366
4366
|
}, 100), r("reset");
|
|
4367
|
-
},
|
|
4367
|
+
}, D = () => {
|
|
4368
4368
|
var M;
|
|
4369
4369
|
(M = o.value) == null || M.clearValidate();
|
|
4370
|
-
},
|
|
4370
|
+
}, Y = () => {
|
|
4371
4371
|
var M;
|
|
4372
4372
|
a.modelValue && (Object.keys(a.modelValue).map((z) => {
|
|
4373
4373
|
a.formDesc && a.formDesc[z] ? a.modelValue[z] = a.formDesc[z].default ?? null : a.modelValue[z] = null;
|
|
@@ -4375,7 +4375,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4375
4375
|
z != null && z.clear && typeof (z == null ? void 0 : z.clear) == "function" && z.clear();
|
|
4376
4376
|
})), be(() => {
|
|
4377
4377
|
setTimeout(() => {
|
|
4378
|
-
|
|
4378
|
+
D();
|
|
4379
4379
|
}, 50);
|
|
4380
4380
|
});
|
|
4381
4381
|
};
|
|
@@ -4385,14 +4385,14 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4385
4385
|
z != null && z.init && typeof (z == null ? void 0 : z.init) == "function" && z.init();
|
|
4386
4386
|
});
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function te(M) {
|
|
4389
4389
|
var z;
|
|
4390
4390
|
(z = o.value) == null || z.validateField(M, (V) => {
|
|
4391
4391
|
});
|
|
4392
4392
|
}
|
|
4393
|
-
function
|
|
4393
|
+
function R() {
|
|
4394
4394
|
w(), be(() => {
|
|
4395
|
-
|
|
4395
|
+
D();
|
|
4396
4396
|
});
|
|
4397
4397
|
}
|
|
4398
4398
|
return re(
|
|
@@ -4408,9 +4408,9 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4408
4408
|
{ deep: !0 }
|
|
4409
4409
|
), it(async () => {
|
|
4410
4410
|
g.value || w(), be(() => {
|
|
4411
|
-
|
|
4411
|
+
D();
|
|
4412
4412
|
});
|
|
4413
|
-
}), t({ fid: a.fid, formRef: o, submit: x, getData: y, validate: P, reset: N, clearValid:
|
|
4413
|
+
}), t({ fid: a.fid, formRef: o, submit: x, getData: y, validate: P, reset: N, clearValid: D, clear: Y, changeValidImg: k, refresh: R, init: U, totalRows: le(() => {
|
|
4414
4414
|
var M;
|
|
4415
4415
|
return ((M = Q.value) == null ? void 0 : M.length) || 0;
|
|
4416
4416
|
}) }), (M, z) => {
|
|
@@ -4425,7 +4425,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4425
4425
|
ae("div", {
|
|
4426
4426
|
style: Pe({ display: "flex", justifyContent: e.isDialog ? "center" : "" })
|
|
4427
4427
|
}, [
|
|
4428
|
-
Z(ge,
|
|
4428
|
+
Z(ge, ee({
|
|
4429
4429
|
class: "el-plus-form-panel",
|
|
4430
4430
|
ref_key: "refElPlusForm",
|
|
4431
4431
|
ref: o,
|
|
@@ -4462,7 +4462,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4462
4462
|
prop: A.field
|
|
4463
4463
|
}, lt({
|
|
4464
4464
|
default: _(() => [
|
|
4465
|
-
(d(), S(rl(A._type),
|
|
4465
|
+
(d(), S(rl(A._type), ee({
|
|
4466
4466
|
key: A.field + (A.upType || ""),
|
|
4467
4467
|
style: { minWidth: "80px", width: A.tipInline && A._tip ? "auto" : "100%", flex: "1" },
|
|
4468
4468
|
formData: a.modelValue,
|
|
@@ -4475,14 +4475,14 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4475
4475
|
modelValue: a.modelValue[A.field || ""],
|
|
4476
4476
|
"onUpdate:modelValue": (he) => a.modelValue[A.field || ""] = he,
|
|
4477
4477
|
isTable: e.isTable,
|
|
4478
|
-
onValidateThis: () =>
|
|
4478
|
+
onValidateThis: () => te(A.field || "")
|
|
4479
4479
|
}), null, 16, ["style", "formData", "disabled", "desc", "field", "modelValue", "onUpdate:modelValue", "isTable", "onValidateThis"])),
|
|
4480
4480
|
A._tip ? (d(), I("div", {
|
|
4481
4481
|
key: 0,
|
|
4482
4482
|
class: dt(["el-plus-form-tip", { "is-inline": A.tipInline }]),
|
|
4483
4483
|
style: Pe({ ...A.tipStyle, width: A.tipInline ? "" : "100%" }),
|
|
4484
4484
|
innerHTML: A._tip
|
|
4485
|
-
}, null, 14, hr)) :
|
|
4485
|
+
}, null, 14, hr)) : F("", !0)
|
|
4486
4486
|
]),
|
|
4487
4487
|
_: 2
|
|
4488
4488
|
}, [
|
|
@@ -4500,7 +4500,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4500
4500
|
key: "0"
|
|
4501
4501
|
} : void 0
|
|
4502
4502
|
]), 1032, ["prop", "style"])
|
|
4503
|
-
], 4)) :
|
|
4503
|
+
], 4)) : F("", !0)
|
|
4504
4504
|
];
|
|
4505
4505
|
}),
|
|
4506
4506
|
_: 2
|
|
@@ -4509,7 +4509,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4509
4509
|
_: 2
|
|
4510
4510
|
}, 1032, ["style"])), [
|
|
4511
4511
|
[Yn, e.maxShowRowIndex < 0 || C < e.maxShowRowIndex]
|
|
4512
|
-
])), 128)) :
|
|
4512
|
+
])), 128)) : F("", !0),
|
|
4513
4513
|
De(M.$slots, "row")
|
|
4514
4514
|
];
|
|
4515
4515
|
}),
|
|
@@ -4523,11 +4523,11 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4523
4523
|
data: a.modelValue
|
|
4524
4524
|
}, () => [
|
|
4525
4525
|
v.value && v.value.length > 0 ? (d(), I("div", xr, [
|
|
4526
|
-
(d(!0), I(oe, null, Me(v.value, (ve, Be) => (d(), S(ct,
|
|
4526
|
+
(d(!0), I(oe, null, Me(v.value, (ve, Be) => (d(), S(ct, ee({
|
|
4527
4527
|
key: Be,
|
|
4528
4528
|
ref_for: !0
|
|
4529
4529
|
}, ve), null, 16))), 128))
|
|
4530
|
-
])) :
|
|
4530
|
+
])) : F("", !0)
|
|
4531
4531
|
]),
|
|
4532
4532
|
De(M.$slots, "bottom", {
|
|
4533
4533
|
formData: a.modelValue
|
|
@@ -4625,11 +4625,11 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4625
4625
|
return d(), I(oe, {
|
|
4626
4626
|
key: P + (((T = G.formProps) == null ? void 0 : T.fid) || "")
|
|
4627
4627
|
}, [
|
|
4628
|
-
Re()["top" + o.value[P]] ? De(w.$slots, "top" + o.value[P], { key: 0 }) :
|
|
4628
|
+
Re()["top" + o.value[P]] ? De(w.$slots, "top" + o.value[P], { key: 0 }) : F("", !0),
|
|
4629
4629
|
De(w.$slots, "title" + o.value[P], {}, () => [
|
|
4630
|
-
G.title ? (d(), I("div", Cr, de(G.title), 1)) :
|
|
4630
|
+
G.title ? (d(), I("div", Cr, de(G.title), 1)) : F("", !0)
|
|
4631
4631
|
]),
|
|
4632
|
-
Z(Tl,
|
|
4632
|
+
Z(Tl, ee({
|
|
4633
4633
|
modelValue: g.value,
|
|
4634
4634
|
"onUpdate:modelValue": v[0] || (v[0] = (L) => g.value = L)
|
|
4635
4635
|
}, { ref_for: !0 }, G.formProps, {
|
|
@@ -4643,7 +4643,7 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4643
4643
|
onCancel: b
|
|
4644
4644
|
}), {
|
|
4645
4645
|
default: _(() => [
|
|
4646
|
-
Re()["default" + o.value[P]] ? De(w.$slots, "default" + o.value[P], { key: 0 }) :
|
|
4646
|
+
Re()["default" + o.value[P]] ? De(w.$slots, "default" + o.value[P], { key: 0 }) : F("", !0)
|
|
4647
4647
|
]),
|
|
4648
4648
|
_: 2
|
|
4649
4649
|
}, 1040, ["modelValue", "onReset"])
|
|
@@ -4741,7 +4741,7 @@ const Or = {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
}), (T, L) => {
|
|
4743
4743
|
const y = O("el-dialog");
|
|
4744
|
-
return d(), S(y,
|
|
4744
|
+
return d(), S(y, ee({
|
|
4745
4745
|
class: "el-plus-form-dialog",
|
|
4746
4746
|
modelValue: a.value,
|
|
4747
4747
|
"onUpdate:modelValue": L[4] || (L[4] = (k) => a.value = k),
|
|
@@ -4761,7 +4761,7 @@ const Or = {
|
|
|
4761
4761
|
"onUpdate:modelValue": L[0] || (L[0] = (k) => r.value = k),
|
|
4762
4762
|
formGroup: Q.value,
|
|
4763
4763
|
onCancel: L[1] || (L[1] = (k) => a.value = !1)
|
|
4764
|
-
}, null, 8, ["isLoading", "modelValue", "formGroup"])) : (d(), S(Tl,
|
|
4764
|
+
}, null, 8, ["isLoading", "modelValue", "formGroup"])) : (d(), S(Tl, ee({
|
|
4765
4765
|
key: 1,
|
|
4766
4766
|
ref_key: "refForm",
|
|
4767
4767
|
ref: o,
|
|
@@ -4985,7 +4985,7 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
4985
4985
|
var k;
|
|
4986
4986
|
let y = ((k = r.toolbar) == null ? void 0 : k.export) || [];
|
|
4987
4987
|
return y && !Array.isArray(y) && (y = [y]), y != null && y.length && y.map((x, N) => {
|
|
4988
|
-
x.label = x.label || `导出Excel ${N > 0 ? N : ""}`, x.size = r.size, x.mask = x.mask ?? !0, x.on = { click: (
|
|
4988
|
+
x.label = x.label || `导出Excel ${N > 0 ? N : ""}`, x.size = r.size, x.mask = x.mask ?? !0, x.on = { click: (D) => w(D, N) };
|
|
4989
4989
|
}), y;
|
|
4990
4990
|
});
|
|
4991
4991
|
function b() {
|
|
@@ -4995,24 +4995,24 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
4995
4995
|
s("layoutChange", y);
|
|
4996
4996
|
}
|
|
4997
4997
|
async function w({ callBack: y }, k) {
|
|
4998
|
-
var N,
|
|
4998
|
+
var N, D;
|
|
4999
4999
|
const x = B.value[k];
|
|
5000
5000
|
if (x) {
|
|
5001
|
-
const
|
|
5001
|
+
const Y = new XMLHttpRequest();
|
|
5002
5002
|
let U = x.url || "";
|
|
5003
|
-
const
|
|
5004
|
-
let
|
|
5003
|
+
const te = x.method || "get";
|
|
5004
|
+
let R = Object.assign({}, r.queryDataFn ? await r.queryDataFn() : {});
|
|
5005
5005
|
if (typeof (x == null ? void 0 : x.data) == "function") {
|
|
5006
|
-
const z = x.data(
|
|
5007
|
-
Object.assign(
|
|
5006
|
+
const z = x.data(R);
|
|
5007
|
+
Object.assign(R, et(z) ? await z : z);
|
|
5008
5008
|
} else
|
|
5009
|
-
Object.assign(
|
|
5010
|
-
(
|
|
5011
|
-
for (let z in
|
|
5012
|
-
(
|
|
5009
|
+
Object.assign(R, (x == null ? void 0 : x.data) || { size: 1e3 });
|
|
5010
|
+
(D = (N = r.toolbar) == null ? void 0 : N.formConfig) != null && D.beforeRequest && (R = await r.toolbar.formConfig.beforeRequest(R));
|
|
5011
|
+
for (let z in R)
|
|
5012
|
+
(R[z] === void 0 || R[z] === null || R[z] === "") && delete R[z];
|
|
5013
5013
|
if (x.fetch)
|
|
5014
5014
|
try {
|
|
5015
|
-
let z = await x.fetch(
|
|
5015
|
+
let z = await x.fetch(R);
|
|
5016
5016
|
if (x.urlKey) {
|
|
5017
5017
|
let V = typeof x.urlKey == "string" ? [x.urlKey] : x.urlKey;
|
|
5018
5018
|
V == null || V.map((h) => z = z[h]);
|
|
@@ -5022,19 +5022,19 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5022
5022
|
console.log("e: ", z), y && y();
|
|
5023
5023
|
}
|
|
5024
5024
|
else
|
|
5025
|
-
!x.noQuery &&
|
|
5026
|
-
if (x.beforeRequest && typeof x.beforeRequest == "function" && (
|
|
5025
|
+
!x.noQuery && te === "get" && (U += (U.indexOf("?") >= 0 ? "&" : "?") + es(R));
|
|
5026
|
+
if (x.beforeRequest && typeof x.beforeRequest == "function" && (R = x.beforeRequest(R)), Y.open(te, U, !0), Y.responseType = "blob", x.isAuth !== !1 && n.token) {
|
|
5027
5027
|
let z = n.token;
|
|
5028
|
-
typeof n.token == "function" && (z = n.token()),
|
|
5028
|
+
typeof n.token == "function" && (z = n.token()), Y.setRequestHeader(x.tokenKey || "Authorization", "" + z);
|
|
5029
5029
|
}
|
|
5030
5030
|
let K = x.name || U.split("?")[0] || `${(/* @__PURE__ */ new Date()).getTime()}`;
|
|
5031
5031
|
K.length > 0 && (K = K.substring(K.lastIndexOf("/") + 1));
|
|
5032
5032
|
const M = x.suffix || K.indexOf(".") > 0 ? K.substring(K.lastIndexOf(".")) : ".xlsx";
|
|
5033
|
-
K.endsWith(M) || (K = K + M),
|
|
5033
|
+
K.endsWith(M) || (K = K + M), Y.onload = function() {
|
|
5034
5034
|
if (this.status == 200) {
|
|
5035
5035
|
if (!x.name)
|
|
5036
5036
|
try {
|
|
5037
|
-
if (
|
|
5037
|
+
if (Y.getResponseHeader("Content-Disposition") && (K = Y.getResponseHeader("Content-Disposition"), K.indexOf("filename") > 0)) {
|
|
5038
5038
|
const h = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(K);
|
|
5039
5039
|
h != null && h[1] && (K = decodeURIComponent(h[1].replace(/['"]/g, "")).replace(/utf\-8|'/g, ""));
|
|
5040
5040
|
}
|
|
@@ -5045,12 +5045,12 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5045
5045
|
y && y();
|
|
5046
5046
|
}, 1e3);
|
|
5047
5047
|
}
|
|
5048
|
-
},
|
|
5048
|
+
}, Y.onerror = function(z) {
|
|
5049
5049
|
const V = document.createElement("a");
|
|
5050
5050
|
V.href = U, V.download = K, V.click(), setTimeout(() => {
|
|
5051
5051
|
y && y();
|
|
5052
5052
|
}, 1e3);
|
|
5053
|
-
},
|
|
5053
|
+
}, te === "post" ? (Y.setRequestHeader("content-type", "application/json; charset=UTF-8"), Y.send(JSON.stringify(R))) : Y.send();
|
|
5054
5054
|
}
|
|
5055
5055
|
}
|
|
5056
5056
|
function v() {
|
|
@@ -5110,9 +5110,9 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5110
5110
|
var y;
|
|
5111
5111
|
return (y = a.value) == null ? void 0 : y.getData();
|
|
5112
5112
|
}, initCol: L, resetQuery: P }), (y, k) => {
|
|
5113
|
-
const x = O("el-icon"), N = O("el-button"),
|
|
5113
|
+
const x = O("el-icon"), N = O("el-button"), D = O("el-radio-button"), Y = O("el-radio-group"), U = O("ElPlusForm"), te = O("el-form");
|
|
5114
5114
|
return d(), I("div", Pr, [
|
|
5115
|
-
r.toolbar && Object.keys(r.toolbar || {}).length ? (d(), S(
|
|
5115
|
+
r.toolbar && Object.keys(r.toolbar || {}).length ? (d(), S(te, {
|
|
5116
5116
|
key: 0,
|
|
5117
5117
|
inline: !0,
|
|
5118
5118
|
class: "el-plus-table-header-form",
|
|
@@ -5120,19 +5120,19 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5120
5120
|
}, {
|
|
5121
5121
|
default: _(() => [
|
|
5122
5122
|
r.toolbar.formConfig ? (d(), I("div", Qr, [
|
|
5123
|
-
Z(U,
|
|
5123
|
+
Z(U, ee({
|
|
5124
5124
|
ref_key: "elPlusFormRef",
|
|
5125
5125
|
ref: a
|
|
5126
5126
|
}, j.value, {
|
|
5127
5127
|
modelValue: r.modelValue,
|
|
5128
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
5128
|
+
"onUpdate:modelValue": k[1] || (k[1] = (R) => r.modelValue = R),
|
|
5129
5129
|
requestFn: b,
|
|
5130
5130
|
showBtns: !1,
|
|
5131
5131
|
isTable: !0,
|
|
5132
5132
|
maxShowRowIndex: $.value
|
|
5133
5133
|
}), {
|
|
5134
5134
|
row: _(() => {
|
|
5135
|
-
var
|
|
5135
|
+
var R, K;
|
|
5136
5136
|
return [
|
|
5137
5137
|
ae("div", Ur, [
|
|
5138
5138
|
m.value ? (d(), S(N, {
|
|
@@ -5152,18 +5152,18 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5152
5152
|
})
|
|
5153
5153
|
]),
|
|
5154
5154
|
_: 1
|
|
5155
|
-
}, 8, ["size"])) :
|
|
5156
|
-
Object.keys(((
|
|
5155
|
+
}, 8, ["size"])) : F("", !0),
|
|
5156
|
+
Object.keys(((R = j.value) == null ? void 0 : R.formDesc) || {}).length ? (d(), S(ct, {
|
|
5157
5157
|
key: 1,
|
|
5158
5158
|
type: "primary",
|
|
5159
5159
|
icon: je(_o),
|
|
5160
5160
|
loading: e.loading,
|
|
5161
5161
|
desc: { label: "查询", on: { click: G }, size: e.size }
|
|
5162
|
-
}, null, 8, ["icon", "loading", "desc"])) :
|
|
5162
|
+
}, null, 8, ["icon", "loading", "desc"])) : F("", !0),
|
|
5163
5163
|
Object.keys(((K = j.value) == null ? void 0 : K.formDesc) || {}).length ? (d(), S(ct, {
|
|
5164
5164
|
key: 2,
|
|
5165
5165
|
desc: { label: "重置", on: { click: P }, size: e.size }
|
|
5166
|
-
}, null, 8, ["desc"])) :
|
|
5166
|
+
}, null, 8, ["desc"])) : F("", !0),
|
|
5167
5167
|
e.tbName ? (d(), S(Hl, {
|
|
5168
5168
|
key: 3,
|
|
5169
5169
|
ref_key: "settingColumnRef",
|
|
@@ -5171,8 +5171,8 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5171
5171
|
tbName: e.tbName,
|
|
5172
5172
|
column: e.column || [],
|
|
5173
5173
|
size: e.size
|
|
5174
|
-
}, null, 8, ["tbName", "column", "size"])) :
|
|
5175
|
-
e.layoutSelect ? (d(), S(
|
|
5174
|
+
}, null, 8, ["tbName", "column", "size"])) : F("", !0),
|
|
5175
|
+
e.layoutSelect ? (d(), S(Y, {
|
|
5176
5176
|
key: 4,
|
|
5177
5177
|
modelValue: g.value,
|
|
5178
5178
|
"onUpdate:modelValue": k[0] || (k[0] = (M) => g.value = M),
|
|
@@ -5180,7 +5180,7 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5180
5180
|
onChange: Q
|
|
5181
5181
|
}, {
|
|
5182
5182
|
default: _(() => [
|
|
5183
|
-
Z(
|
|
5183
|
+
Z(D, { label: "card" }, {
|
|
5184
5184
|
default: _(() => [
|
|
5185
5185
|
Z(x, null, {
|
|
5186
5186
|
default: _(() => [
|
|
@@ -5191,7 +5191,7 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5191
5191
|
]),
|
|
5192
5192
|
_: 1
|
|
5193
5193
|
}),
|
|
5194
|
-
Z(
|
|
5194
|
+
Z(D, { label: "list" }, {
|
|
5195
5195
|
default: _(() => [
|
|
5196
5196
|
Z(x, null, {
|
|
5197
5197
|
default: _(() => [
|
|
@@ -5204,10 +5204,10 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5204
5204
|
})
|
|
5205
5205
|
]),
|
|
5206
5206
|
_: 1
|
|
5207
|
-
}, 8, ["modelValue"])) :
|
|
5207
|
+
}, 8, ["modelValue"])) : F("", !0),
|
|
5208
5208
|
(d(!0), I(oe, null, Me(c.value, (M, z) => (d(), I(oe, { key: z }, [
|
|
5209
5209
|
T(M) ? (d(), I(oe, { key: 0 }, [
|
|
5210
|
-
M.customize ? (d(), S(rl(M.elType),
|
|
5210
|
+
M.customize ? (d(), S(rl(M.elType), ee({
|
|
5211
5211
|
key: 0,
|
|
5212
5212
|
ref_for: !0
|
|
5213
5213
|
}, M), null, 16)) : (d(), I(oe, { key: 1 }, [
|
|
@@ -5221,15 +5221,15 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5221
5221
|
loading: e.loading
|
|
5222
5222
|
}, null, 8, ["desc", "loading"]))
|
|
5223
5223
|
], 64))
|
|
5224
|
-
], 64)) :
|
|
5224
|
+
], 64)) : F("", !0)
|
|
5225
5225
|
], 64))), 128)),
|
|
5226
5226
|
B.value && B.value.length ? (d(!0), I(oe, { key: 5 }, Me(B.value, (M, z) => (d(), I(oe, { key: z }, [
|
|
5227
5227
|
T(M) ? (d(), S(ct, {
|
|
5228
5228
|
key: 0,
|
|
5229
5229
|
type: "primary",
|
|
5230
5230
|
desc: M
|
|
5231
|
-
}, null, 8, ["desc"])) :
|
|
5232
|
-
], 64))), 128)) :
|
|
5231
|
+
}, null, 8, ["desc"])) : F("", !0)
|
|
5232
|
+
], 64))), 128)) : F("", !0)
|
|
5233
5233
|
])
|
|
5234
5234
|
];
|
|
5235
5235
|
}),
|
|
@@ -5241,18 +5241,18 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5241
5241
|
style: Pe({ "min-width": je(hn)() ? "100%" : c.value && c.value.length > 0 ? c.value.length * 110 + "px" : "10px" })
|
|
5242
5242
|
}, [
|
|
5243
5243
|
ae("div", Fr, [
|
|
5244
|
-
(d(!0), I(oe, null, Me(c.value, (
|
|
5245
|
-
|
|
5244
|
+
(d(!0), I(oe, null, Me(c.value, (R, K) => (d(), I(oe, { key: K }, [
|
|
5245
|
+
R.customize ? (d(), S(rl(R.elType), ee({
|
|
5246
5246
|
key: 0,
|
|
5247
5247
|
ref_for: !0
|
|
5248
|
-
},
|
|
5249
|
-
|
|
5248
|
+
}, R), null, 16)) : (d(), I(oe, { key: 1 }, [
|
|
5249
|
+
R.elType === "upload" ? (d(), S(qt, {
|
|
5250
5250
|
key: 0,
|
|
5251
|
-
desc:
|
|
5251
|
+
desc: R,
|
|
5252
5252
|
loading: e.loading
|
|
5253
5253
|
}, null, 8, ["desc", "loading"])) : (d(), S(ct, {
|
|
5254
5254
|
key: 1,
|
|
5255
|
-
desc:
|
|
5255
|
+
desc: R,
|
|
5256
5256
|
loading: e.loading
|
|
5257
5257
|
}, null, 8, ["desc", "loading"]))
|
|
5258
5258
|
], 64))
|
|
@@ -5271,9 +5271,9 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5271
5271
|
column: e.column || [],
|
|
5272
5272
|
size: e.size,
|
|
5273
5273
|
showText: !0
|
|
5274
|
-
}, null, 8, ["tbName", "column", "size"])) :
|
|
5274
|
+
}, null, 8, ["tbName", "column", "size"])) : F("", !0)
|
|
5275
5275
|
])
|
|
5276
|
-
])) :
|
|
5276
|
+
])) : F("", !0)
|
|
5277
5277
|
]);
|
|
5278
5278
|
};
|
|
5279
5279
|
}
|
|
@@ -5349,11 +5349,11 @@ const Kr = /* @__PURE__ */ Ae(Gr, [["__scopeId", "data-v-45af0bc0"]]), Wr = /* @
|
|
|
5349
5349
|
})
|
|
5350
5350
|
]),
|
|
5351
5351
|
_: 1
|
|
5352
|
-
}, 8, ["content"])) :
|
|
5352
|
+
}, 8, ["content"])) : F("", !0),
|
|
5353
5353
|
ae("div", {
|
|
5354
5354
|
style: Pe([{ width: "100%", display: "flex" }, { "justify-content": j.align || "flex-start" }])
|
|
5355
5355
|
}, [
|
|
5356
|
-
j.vshow === void 0 || j.vshow ? (d(), S(rl("el-plus-form-" + j.desc.type),
|
|
5356
|
+
j.vshow === void 0 || j.vshow ? (d(), S(rl("el-plus-form-" + j.desc.type), ee({
|
|
5357
5357
|
key: 0,
|
|
5358
5358
|
ref_for: !0
|
|
5359
5359
|
}, j, {
|
|
@@ -5363,7 +5363,7 @@ const Kr = /* @__PURE__ */ Ae(Gr, [["__scopeId", "data-v-45af0bc0"]]), Wr = /* @
|
|
|
5363
5363
|
rowIndex: l.value,
|
|
5364
5364
|
modelValue: t.scope.row[j.field],
|
|
5365
5365
|
"onUpdate:modelValue": ($) => t.scope.row[j.field] = $
|
|
5366
|
-
}), null, 16, ["formData", "size", "rowIndex", "modelValue", "onUpdate:modelValue"])) :
|
|
5366
|
+
}), null, 16, ["formData", "size", "rowIndex", "modelValue", "onUpdate:modelValue"])) : F("", !0)
|
|
5367
5367
|
], 4)
|
|
5368
5368
|
], 64);
|
|
5369
5369
|
}), 128))
|
|
@@ -5389,7 +5389,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5389
5389
|
});
|
|
5390
5390
|
return (s, r) => {
|
|
5391
5391
|
const a = O("ElPlusTableColumn", !0), o = O("el-table-column");
|
|
5392
|
-
return l.item.__vif ? (d(), S(o,
|
|
5392
|
+
return l.item.__vif ? (d(), S(o, ee({ key: 0 }, n.value, {
|
|
5393
5393
|
key: "col_" + e.item.__id + "-" + e.item.label + "-" + e.index
|
|
5394
5394
|
}), {
|
|
5395
5395
|
header: _(({ column: g }) => [
|
|
@@ -5415,12 +5415,12 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5415
5415
|
size: e.size,
|
|
5416
5416
|
modelValue: g.row[e.item.prop],
|
|
5417
5417
|
"onUpdate:modelValue": (i) => g.row[e.item.prop] = i
|
|
5418
|
-
}, null, 8, ["field", "desc", "scope", "size", "modelValue", "onUpdate:modelValue"])) :
|
|
5418
|
+
}, null, 8, ["field", "desc", "scope", "size", "modelValue", "onUpdate:modelValue"])) : F("", !0)
|
|
5419
5419
|
], 64))
|
|
5420
5420
|
];
|
|
5421
5421
|
}),
|
|
5422
5422
|
_: 1
|
|
5423
|
-
}, 16)) :
|
|
5423
|
+
}, 16)) : F("", !0);
|
|
5424
5424
|
};
|
|
5425
5425
|
}
|
|
5426
5426
|
}), Jr = { class: "el-plus-table-content" }, Xr = {
|
|
@@ -5465,31 +5465,31 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5465
5465
|
var E;
|
|
5466
5466
|
return Object.assign({ border: !0, bigHBar: !0, scrollbarAlwaysOn: !0 }, ((E = o.tableConfig) == null ? void 0 : E.tableAttr) || {});
|
|
5467
5467
|
}), b = le(() => (E) => E.key ? m.value[E.key] || 0 : ""), Q = le(() => (E, W) => {
|
|
5468
|
-
var
|
|
5469
|
-
return typeof ((
|
|
5468
|
+
var J, ue;
|
|
5469
|
+
return typeof ((J = B.value) == null ? void 0 : J.selectable) == "function" ? (ue = B.value) == null ? void 0 : ue.selectable(E, W) : !0;
|
|
5470
5470
|
}), w = f(), v = f(!1), G = f(!!((ol = (al = o.tableConfig) == null ? void 0 : al.tabConf) != null && ol.fetch)), P = f(!1), T = s.size || "default", L = le(() => o.loading || v.value);
|
|
5471
5471
|
let y = Oe({});
|
|
5472
5472
|
const k = f(o.modelValue || []);
|
|
5473
5473
|
Oe([]);
|
|
5474
|
-
const x = f(0), N = Oe(n.cloneDeep(o.selectList) || []),
|
|
5474
|
+
const x = f(0), N = Oe(n.cloneDeep(o.selectList) || []), D = Oe([]), Y = Oe({
|
|
5475
5475
|
current: !o.isDialog && y.current ? parseInt(y.current) : 1,
|
|
5476
5476
|
total: 0,
|
|
5477
5477
|
size: !o.isDialog && y.size ? parseInt(y.size) : o.pageSize
|
|
5478
|
-
}), U = ((yt = (Ce = o.tableConfig) == null ? void 0 : Ce.explan) == null ? void 0 : yt.treeProps) || { children: "children", hasChildren: "hasChildren" },
|
|
5478
|
+
}), U = ((yt = (Ce = o.tableConfig) == null ? void 0 : Ce.explan) == null ? void 0 : yt.treeProps) || { children: "children", hasChildren: "hasChildren" }, te = le(() => {
|
|
5479
5479
|
var Qe, Ke, We;
|
|
5480
5480
|
const E = Tn(n.cloneDeep((Qe = o.tableConfig) == null ? void 0 : Qe.column), s, ((Ke = o.tableConfig) == null ? void 0 : Ke.tbName) || "", o.headerAlign, o.colMinWidth || "auto"), W = M(E);
|
|
5481
5481
|
c.value = [];
|
|
5482
|
-
let
|
|
5482
|
+
let J, ue = 0, Ne = 1, Ve = "";
|
|
5483
5483
|
const ke = W.map((Ye, Ue) => {
|
|
5484
5484
|
var Se;
|
|
5485
|
-
return Ye.isRowSpan && (c.value.push(Ue),
|
|
5485
|
+
return Ye.isRowSpan && (c.value.push(Ue), J = void 0, ue = 0, Ne = 1, (Se = k.value) == null || Se.map((_e, Ze) => {
|
|
5486
5486
|
var qe;
|
|
5487
|
-
Ve = (qe = Ye.rsProps) != null && qe.length ?
|
|
5487
|
+
Ve = (qe = Ye.rsProps) != null && qe.length ? R(_e, Ye.rsProps) : "", J !== Ve + _e[Ye.prop] ? (Ne > 1 && Ze > 0 && (k.value[ue]["rowSpan_" + Ue] = Ne), ue = Ze, Ne = 1, J = Ve + _e[Ye.prop]) : (Ne += 1, _e["rowSpan_" + Ue] = 0), Ze === k.value.length - 1 && (k.value[ue]["rowSpan_" + Ue] = Ne);
|
|
5488
5488
|
})), Ye.isColSpan ? Ue : null;
|
|
5489
5489
|
}).filter((Ye) => Ye !== null);
|
|
5490
5490
|
return ke.length && ((We = k.value) == null || We.map((Ye, Ue) => {
|
|
5491
|
-
|
|
5492
|
-
c.value.includes(Se) || c.value.push(Se),
|
|
5491
|
+
J = void 0, ue = 0, Ne = 1, ke.map((Se, _e) => {
|
|
5492
|
+
c.value.includes(Se) || c.value.push(Se), J !== Ye[W[Se].prop] || _e > 0 && Se - 1 !== ke[_e - 1] ? (Ne > 1 && (Ye["colSpan_" + ue] = Ne), ue = Se, Ne = 1, J = Ye[W[Se].prop]) : (Ne += 1, Ye["colSpan_" + Se] = 0), _e === ke.length - 1 && (Ye["colSpan_" + ue] = Ne);
|
|
5493
5493
|
});
|
|
5494
5494
|
})), c.value.length > 0 && (j.value = ({ row: Ye, column: Ue, columnIndex: Se }) => {
|
|
5495
5495
|
let _e = Se;
|
|
@@ -5497,14 +5497,14 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5497
5497
|
return { rowspan: Ye["rowSpan_" + _e] ?? 1, colspan: Ye["colSpan_" + _e] ?? 1 };
|
|
5498
5498
|
}), E;
|
|
5499
5499
|
});
|
|
5500
|
-
function
|
|
5501
|
-
return E && (W != null && W.length) ? W.reduce((
|
|
5500
|
+
function R(E, W) {
|
|
5501
|
+
return E && (W != null && W.length) ? W.reduce((J, ue) => J += E[ue] || "", "") : "";
|
|
5502
5502
|
}
|
|
5503
5503
|
const K = le(() => {
|
|
5504
|
-
var W,
|
|
5504
|
+
var W, J, ue, Ne, Ve, ke, Qe;
|
|
5505
5505
|
const E = [];
|
|
5506
5506
|
if ((W = o.tableConfig.summaryConf) != null && W.vif) {
|
|
5507
|
-
if (typeof ((
|
|
5507
|
+
if (typeof ((J = o.tableConfig.summaryConf) == null ? void 0 : J.vif) == "boolean") {
|
|
5508
5508
|
if (!((ue = o.tableConfig.summaryConf) != null && ue.vif))
|
|
5509
5509
|
return E;
|
|
5510
5510
|
} else if (!((Ne = o.tableConfig.summaryConf) != null && Ne.vif()))
|
|
@@ -5522,51 +5522,51 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5522
5522
|
});
|
|
5523
5523
|
function M(E) {
|
|
5524
5524
|
const W = [];
|
|
5525
|
-
return E == null || E.map((
|
|
5525
|
+
return E == null || E.map((J) => {
|
|
5526
5526
|
var ue;
|
|
5527
|
-
(ue =
|
|
5527
|
+
(ue = J.children) != null && ue.length ? W.push(...M(J.children)) : J.__vif && W.push(J);
|
|
5528
5528
|
}), W;
|
|
5529
5529
|
}
|
|
5530
5530
|
async function z(E) {
|
|
5531
5531
|
if (!o.initLoad && !g.value)
|
|
5532
5532
|
return !1;
|
|
5533
|
-
|
|
5533
|
+
X(!0), await a("tabChange", E, xe), setTimeout(() => {
|
|
5534
5534
|
xe();
|
|
5535
5535
|
}, 100);
|
|
5536
5536
|
}
|
|
5537
5537
|
function V(E) {
|
|
5538
5538
|
a("layoutChange", E), setTimeout(() => {
|
|
5539
|
-
u.value = E === "card", k.value = [],
|
|
5539
|
+
u.value = E === "card", k.value = [], q();
|
|
5540
5540
|
}, 100);
|
|
5541
5541
|
}
|
|
5542
|
-
async function h(E, W,
|
|
5542
|
+
async function h(E, W, J) {
|
|
5543
5543
|
var Ne, Ve;
|
|
5544
5544
|
const ue = await se();
|
|
5545
5545
|
ue[((Ve = (Ne = o.tableConfig) == null ? void 0 : Ne.explan) == null ? void 0 : Ve.idName) || "parentId"] = E.id, o.tableConfig.fetch && o.tableConfig.fetch(ue).then((ke) => {
|
|
5546
5546
|
var Qe, Ke, We;
|
|
5547
|
-
|
|
5547
|
+
J(ke == null ? void 0 : ke[((Qe = s.table) == null ? void 0 : Qe.list) || ((We = (Ke = o.tableConfig) == null ? void 0 : Ke.fetchMap) == null ? void 0 : We.list) || "records"]);
|
|
5548
5548
|
});
|
|
5549
5549
|
}
|
|
5550
5550
|
function ne(E, W) {
|
|
5551
|
-
Be(W, !E.some((
|
|
5551
|
+
Be(W, !E.some((J) => J[o.rowKey] === W[o.rowKey])), a("select", E, W), a("selection", n.cloneDeep(N));
|
|
5552
5552
|
}
|
|
5553
5553
|
function ge(E) {
|
|
5554
5554
|
const W = !(E && E.length > 0);
|
|
5555
|
-
(W ? k.value : E).map((
|
|
5556
|
-
Be(
|
|
5555
|
+
(W ? k.value : E).map((J) => {
|
|
5556
|
+
Be(J, W);
|
|
5557
5557
|
}), a("selectAll", E, W), a("selection", n.cloneDeep(N));
|
|
5558
5558
|
}
|
|
5559
5559
|
function ve(E, W) {
|
|
5560
5560
|
a("expandChange", E, W);
|
|
5561
5561
|
}
|
|
5562
5562
|
function Be(E, W = !1) {
|
|
5563
|
-
const
|
|
5564
|
-
W ?
|
|
5563
|
+
const J = N.findIndex((ue) => ue[o.rowKey] === E[o.rowKey]);
|
|
5564
|
+
W ? J >= 0 && N.splice(J, 1) : J < 0 && N.push(E);
|
|
5565
5565
|
}
|
|
5566
5566
|
function C(E, W = !1) {
|
|
5567
|
-
E && E.length && E.map((
|
|
5567
|
+
E && E.length && E.map((J) => {
|
|
5568
5568
|
Be(
|
|
5569
|
-
N.find((ue) => ue[o.rowKey] ===
|
|
5569
|
+
N.find((ue) => ue[o.rowKey] === J[o.rowKey]),
|
|
5570
5570
|
!W
|
|
5571
5571
|
);
|
|
5572
5572
|
}), bt();
|
|
@@ -5575,7 +5575,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5575
5575
|
N.splice(0, N.length, ...o.selectList);
|
|
5576
5576
|
}
|
|
5577
5577
|
async function se() {
|
|
5578
|
-
var W,
|
|
5578
|
+
var W, J, ue, Ne, Ve, ke, Qe, Ke, We, Ye, Ue, Se, _e, Ze, qe;
|
|
5579
5579
|
let E = {
|
|
5580
5580
|
// 封装查询条件
|
|
5581
5581
|
// ...route.query,
|
|
@@ -5584,50 +5584,50 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5584
5584
|
...typeof o.tableConfig.queryMap == "function" ? await o.tableConfig.queryMap() : o.tableConfig.queryMap,
|
|
5585
5585
|
t_: (/* @__PURE__ */ new Date()).getTime()
|
|
5586
5586
|
};
|
|
5587
|
-
return o.isPager && (E[((ue = (
|
|
5587
|
+
return o.isPager && (E[((ue = (J = s.table) == null ? void 0 : J.page) == null ? void 0 : ue.current) || ((ke = (Ve = (Ne = o.tableConfig) == null ? void 0 : Ne.fetchMap) == null ? void 0 : Ve.page) == null ? void 0 : ke.current) || "current"] = Y.current, E[((Ke = (Qe = s.table) == null ? void 0 : Qe.page) == null ? void 0 : Ke.pageSize) || ((Ue = (Ye = (We = o.tableConfig) == null ? void 0 : We.fetchMap) == null ? void 0 : Ye.page) == null ? void 0 : Ue.pageSize) || "size"] = Y.size), (Se = o.tableConfig) != null && Se.tabConf && ((Ze = (_e = o.tableConfig) == null ? void 0 : _e.tabConf) != null && Ze.prop) && (E[(qe = o.tableConfig) == null ? void 0 : qe.tabConf.prop] = $.value), E = Te(E), o.isDialog, E;
|
|
5588
5588
|
}
|
|
5589
5589
|
function Te(E) {
|
|
5590
5590
|
if (!E)
|
|
5591
5591
|
return {};
|
|
5592
5592
|
const W = {};
|
|
5593
|
-
return Object.keys(E).map((
|
|
5594
|
-
E[
|
|
5593
|
+
return Object.keys(E).map((J) => {
|
|
5594
|
+
E[J] !== void 0 && E[J] !== null && E[J] !== "" && (W[J] = E[J]);
|
|
5595
5595
|
}), W;
|
|
5596
5596
|
}
|
|
5597
5597
|
function he(E) {
|
|
5598
|
-
|
|
5598
|
+
Y.current = 1, Y.size = E, wt(!0);
|
|
5599
5599
|
}
|
|
5600
5600
|
function He(E) {
|
|
5601
|
-
|
|
5601
|
+
Y.current !== E && (Y.current = E, wt(!1));
|
|
5602
5602
|
}
|
|
5603
5603
|
function pt(E, W) {
|
|
5604
|
-
let
|
|
5604
|
+
let J = [];
|
|
5605
5605
|
E && E.length > 0 && E.map((ue, Ne) => {
|
|
5606
|
-
|
|
5606
|
+
D.push([...W, Ne]), J = ue[U.children], J && J.length > 0 && pt(J, [Ne]);
|
|
5607
5607
|
});
|
|
5608
5608
|
}
|
|
5609
5609
|
async function wt(E) {
|
|
5610
|
-
var
|
|
5610
|
+
var J, ue, Ne, Ve, ke, Qe, Ke, We, Ye, Ue, Se, _e, Ze, qe, zt, Pt, Qt, Ut, Fe, Je, Tt, kl, Bl, Vl, Pl;
|
|
5611
5611
|
if (!o.tableConfig.fetch)
|
|
5612
5612
|
return x.value = 2, !1;
|
|
5613
5613
|
if (x.value === 1 || v.value)
|
|
5614
5614
|
return !1;
|
|
5615
|
-
x.value = 1, v.value = !0, E && (
|
|
5615
|
+
x.value = 1, v.value = !0, E && (Y.current = 1, o.isStorePageData && (k.value = []));
|
|
5616
5616
|
let W = await se();
|
|
5617
|
-
(Ne = (ue = (
|
|
5617
|
+
(Ne = (ue = (J = o.tableConfig) == null ? void 0 : J.toolbar) == null ? void 0 : ue.formConfig) != null && Ne.beforeRequest && (W = ((Qe = (ke = (Ve = o.tableConfig) == null ? void 0 : Ve.toolbar) == null ? void 0 : ke.formConfig) == null ? void 0 : Qe.beforeRequest(n.cloneDeep(W))) || W);
|
|
5618
5618
|
try {
|
|
5619
5619
|
let st = await o.tableConfig.fetch(W) || {};
|
|
5620
5620
|
a("loadDataEnd", st), Array.isArray(st) && (st = { [((Ke = s.table) == null ? void 0 : Ke.list) || ((Ye = (We = o.tableConfig) == null ? void 0 : We.fetchMap) == null ? void 0 : Ye.list) || "records"]: st });
|
|
5621
5621
|
try {
|
|
5622
5622
|
let Nt = [];
|
|
5623
|
-
if (o.isPager ? (
|
|
5623
|
+
if (o.isPager ? (Y.total = st[((Se = (Ue = s.table) == null ? void 0 : Ue.page) == null ? void 0 : Se.total) || ((qe = (Ze = (_e = o.tableConfig) == null ? void 0 : _e.fetchMap) == null ? void 0 : Ze.page) == null ? void 0 : qe.total) || "total"] * 1 || 0, Y.current = st[((Pt = (zt = s.table) == null ? void 0 : zt.page) == null ? void 0 : Pt.current) || ((Fe = (Ut = (Qt = o.tableConfig) == null ? void 0 : Qt.fetchMap) == null ? void 0 : Ut.page) == null ? void 0 : Fe.current) || "current"] || 1, Nt = st[((Je = s.table) == null ? void 0 : Je.list) || ((kl = (Tt = o.tableConfig) == null ? void 0 : Tt.fetchMap) == null ? void 0 : kl.list) || "records"] || null) : Nt = st[((Bl = s.table) == null ? void 0 : Bl.list) || ((Pl = (Vl = o.tableConfig) == null ? void 0 : Vl.fetchMap) == null ? void 0 : Pl.list) || "records"] || null, o.type !== "expand" && o.isTempId && Array.isArray(Nt)) {
|
|
5624
5624
|
const ao = (/* @__PURE__ */ new Date()).getTime();
|
|
5625
5625
|
i.value = "tempId", Nt.map((oo, so) => {
|
|
5626
5626
|
oo.tempId = `${ao + so}`;
|
|
5627
5627
|
});
|
|
5628
5628
|
} else
|
|
5629
5629
|
i.value = o.rowKey;
|
|
5630
|
-
o.isStorePageData ? k.value.push(...Nt) : k.value = Nt, o.type === "expand" && (
|
|
5630
|
+
o.isStorePageData ? k.value.push(...Nt) : k.value = Nt, o.type === "expand" && (D.splice(0, D.length), pt(k.value, [])), P.value = !1, tl(), be(() => {
|
|
5631
5631
|
bt();
|
|
5632
5632
|
});
|
|
5633
5633
|
} catch (Nt) {
|
|
@@ -5653,16 +5653,16 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5653
5653
|
);
|
|
5654
5654
|
});
|
|
5655
5655
|
}
|
|
5656
|
-
async function
|
|
5657
|
-
var W,
|
|
5658
|
-
return await wt(!0), !E && ((W = o.tableConfig) != null && W.tabConf) && ((
|
|
5656
|
+
async function q(E = !1) {
|
|
5657
|
+
var W, J, ue, Ne;
|
|
5658
|
+
return await wt(!0), !E && ((W = o.tableConfig) != null && W.tabConf) && ((J = o.tableConfig) != null && J.tabConf.fetch) && (m.value = await ((Ne = o.tableConfig) == null ? void 0 : Ne.tabConf.fetch(Object.assign({}, await se(), (ue = o.tableConfig) == null ? void 0 : ue.tabConf.queryMap))), G.value = !1), g.value = !0, k.value;
|
|
5659
5659
|
}
|
|
5660
|
-
async function
|
|
5661
|
-
var
|
|
5660
|
+
async function X(E = !1) {
|
|
5661
|
+
var J, ue, Ne, Ve, ke, Qe;
|
|
5662
5662
|
if (!o.initLoad && !g.value)
|
|
5663
5663
|
return !1;
|
|
5664
5664
|
let W = await se();
|
|
5665
|
-
(Ne = (ue = (
|
|
5665
|
+
(Ne = (ue = (J = o.tableConfig) == null ? void 0 : J.toolbar) == null ? void 0 : ue.formConfig) != null && Ne.beforeRequest && (W = ((Qe = (ke = (Ve = o.tableConfig) == null ? void 0 : Ve.toolbar) == null ? void 0 : ke.formConfig) == null ? void 0 : Qe.beforeRequest(n.cloneDeep(W))) || W), W && a("queryChange", W), q(E);
|
|
5666
5666
|
}
|
|
5667
5667
|
function ie() {
|
|
5668
5668
|
a("headerReset", y);
|
|
@@ -5675,14 +5675,14 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5675
5675
|
var E;
|
|
5676
5676
|
(E = w.value) == null || E.resetQuery();
|
|
5677
5677
|
}
|
|
5678
|
-
function nt(E, W,
|
|
5679
|
-
console.log("newWidth: ", E, W,
|
|
5678
|
+
function nt(E, W, J, ue) {
|
|
5679
|
+
console.log("newWidth: ", E, W, J, ue);
|
|
5680
5680
|
}
|
|
5681
5681
|
function rt() {
|
|
5682
|
-
He(
|
|
5682
|
+
He(Y.current + 1);
|
|
5683
5683
|
}
|
|
5684
5684
|
function Bt() {
|
|
5685
|
-
return
|
|
5685
|
+
return Y.total >= Y.current * Y.size;
|
|
5686
5686
|
}
|
|
5687
5687
|
return re(
|
|
5688
5688
|
() => o.modelValue,
|
|
@@ -5697,12 +5697,12 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5697
5697
|
N.splice(0, N.length, ...E), bt();
|
|
5698
5698
|
},
|
|
5699
5699
|
{ deep: !0 }
|
|
5700
|
-
), o.isDIYMain && io("reloadTable",
|
|
5701
|
-
var E, W,
|
|
5702
|
-
Object.keys(((W = (E = o.tableConfig) == null ? void 0 : E.toolbar) == null ? void 0 : W.formConfig) || {}).length || (
|
|
5703
|
-
}), t({ tableRef: p, reload:
|
|
5700
|
+
), o.isDIYMain && io("reloadTable", q), it(() => {
|
|
5701
|
+
var E, W, J;
|
|
5702
|
+
Object.keys(((W = (E = o.tableConfig) == null ? void 0 : E.toolbar) == null ? void 0 : W.formConfig) || {}).length || (J = o.tableConfig) != null && J.tbName || o.initLoad && q();
|
|
5703
|
+
}), t({ tableRef: p, reload: q, tableData: k, changeSelect: C, resetSelect: A, initCol: xe, resetQuery: we, nextPage: rt, hasNextPage: Bt }), (E, W) => {
|
|
5704
5704
|
var Ye, Ue, Se, _e, Ze, qe, zt, Pt, Qt, Ut;
|
|
5705
|
-
const
|
|
5705
|
+
const J = O("el-icon"), ue = O("el-radio-button"), Ne = O("el-radio-group"), Ve = O("el-table-column"), ke = O("el-empty"), Qe = O("el-table"), Ke = O("el-pagination"), We = ro("loading");
|
|
5706
5706
|
return d(), I("div", Jr, [
|
|
5707
5707
|
Object.keys(((Ye = e.tableConfig) == null ? void 0 : Ye.toolbar) || {}).length || e.tableConfig.tbName ? (d(), S(Kr, {
|
|
5708
5708
|
key: 0,
|
|
@@ -5717,15 +5717,15 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5717
5717
|
loading: L.value,
|
|
5718
5718
|
toolbar: e.tableConfig.toolbar,
|
|
5719
5719
|
isDialog: e.isDialog,
|
|
5720
|
-
onQuery:
|
|
5720
|
+
onQuery: X,
|
|
5721
5721
|
queryDataFn: se,
|
|
5722
5722
|
onReset: ie,
|
|
5723
5723
|
layoutSelect: e.isDIYMain && !!((_e = (Se = e.tableConfig) == null ? void 0 : Se.column) != null && _e.length),
|
|
5724
5724
|
onLayoutChange: V,
|
|
5725
5725
|
initLoad: e.initLoad,
|
|
5726
5726
|
isInitLoad: g.value
|
|
5727
|
-
}, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog", "layoutSelect", "initLoad", "isInitLoad"])) :
|
|
5728
|
-
Re().tabTop ? De(E.$slots, "tabTop", { key: 1 }) :
|
|
5727
|
+
}, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog", "layoutSelect", "initLoad", "isInitLoad"])) : F("", !0),
|
|
5728
|
+
Re().tabTop ? De(E.$slots, "tabTop", { key: 1 }) : F("", !0),
|
|
5729
5729
|
(zt = (qe = (Ze = e.tableConfig) == null ? void 0 : Ze.tabConf) == null ? void 0 : qe.tabs) != null && zt.length ? (d(), I("div", Xr, [
|
|
5730
5730
|
Z(Ne, {
|
|
5731
5731
|
modelValue: $.value,
|
|
@@ -5744,7 +5744,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5744
5744
|
}, {
|
|
5745
5745
|
default: _(() => [
|
|
5746
5746
|
pe(de(Je.label) + " ", 1),
|
|
5747
|
-
G.value ? (d(), S(
|
|
5747
|
+
G.value ? (d(), S(J, {
|
|
5748
5748
|
key: 0,
|
|
5749
5749
|
class: "is-loading"
|
|
5750
5750
|
}, {
|
|
@@ -5762,13 +5762,13 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5762
5762
|
}),
|
|
5763
5763
|
_: 1
|
|
5764
5764
|
}, 8, ["modelValue", "size"])
|
|
5765
|
-
])) :
|
|
5766
|
-
Re().default ? De(E.$slots, "default", { key: 3 }) :
|
|
5765
|
+
])) : F("", !0),
|
|
5766
|
+
Re().default ? De(E.$slots, "default", { key: 3 }) : F("", !0),
|
|
5767
5767
|
bl((d(), I("div", ec, [
|
|
5768
5768
|
u.value ? De(E.$slots, "main", {
|
|
5769
5769
|
key: 0,
|
|
5770
5770
|
tableData: k.value
|
|
5771
|
-
}) : (d(), S(Qe,
|
|
5771
|
+
}) : (d(), S(Qe, ee({
|
|
5772
5772
|
key: 1,
|
|
5773
5773
|
ref_key: "elPlusTableRef",
|
|
5774
5774
|
ref: p,
|
|
@@ -5797,7 +5797,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5797
5797
|
selectable: Q.value,
|
|
5798
5798
|
"header-align": "center",
|
|
5799
5799
|
align: "center"
|
|
5800
|
-
}, null, 8, ["selectable"])) :
|
|
5800
|
+
}, null, 8, ["selectable"])) : F("", !0),
|
|
5801
5801
|
e.isIndex ? (d(), S(Ve, {
|
|
5802
5802
|
key: 1,
|
|
5803
5803
|
type: "index",
|
|
@@ -5805,9 +5805,9 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5805
5805
|
fixed: "left",
|
|
5806
5806
|
label: e.indexLabel || "序号",
|
|
5807
5807
|
headerAlign: e.headerAlign
|
|
5808
|
-
}, null, 8, ["label", "headerAlign"])) :
|
|
5809
|
-
Re().firstColumn ? De(E.$slots, "firstColumn", { key: 2 }) :
|
|
5810
|
-
(d(!0), I(oe, null, Me(
|
|
5808
|
+
}, null, 8, ["label", "headerAlign"])) : F("", !0),
|
|
5809
|
+
Re().firstColumn ? De(E.$slots, "firstColumn", { key: 2 }) : F("", !0),
|
|
5810
|
+
(d(!0), I(oe, null, Me(te.value, (Fe, Je) => (d(), S(qr, {
|
|
5811
5811
|
key: Fe.__id + "-" + Fe.label + "-" + Je,
|
|
5812
5812
|
item: Fe,
|
|
5813
5813
|
size: je(T),
|
|
@@ -5843,7 +5843,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5843
5843
|
ae("span", null, de(Je.label || "合计") + ":", 1),
|
|
5844
5844
|
ae("p", null, de(Je.value || 0), 1)
|
|
5845
5845
|
]))), 128))
|
|
5846
|
-
], 4)) :
|
|
5846
|
+
], 4)) : F("", !0)
|
|
5847
5847
|
];
|
|
5848
5848
|
}),
|
|
5849
5849
|
key: "1"
|
|
@@ -5857,13 +5857,13 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5857
5857
|
class: "page-info",
|
|
5858
5858
|
onSizeChange: he,
|
|
5859
5859
|
onCurrentChange: He,
|
|
5860
|
-
"current-page": +
|
|
5860
|
+
"current-page": +Y.current,
|
|
5861
5861
|
"page-sizes": e.pageSizes || [5, 10, 20, 50, 100],
|
|
5862
|
-
"page-size":
|
|
5862
|
+
"page-size": Y.size,
|
|
5863
5863
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
5864
|
-
total:
|
|
5864
|
+
total: Y.total
|
|
5865
5865
|
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
5866
|
-
])) :
|
|
5866
|
+
])) : F("", !0),
|
|
5867
5867
|
De(E.$slots, "bottom", { tableData: k.value })
|
|
5868
5868
|
]);
|
|
5869
5869
|
};
|