el-plus-crud 0.1.97 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/el-plus-crud.mjs
CHANGED
|
@@ -2,16 +2,16 @@ import { nextTick as Ae, defineComponent as H, inject as de, ref as j, watch as
|
|
|
2
2
|
import { useVModel as Ye } from "@vueuse/core";
|
|
3
3
|
import { ElMessageBox as Al, ElMessage as tt } from "element-plus";
|
|
4
4
|
const ze = async (e, t) => {
|
|
5
|
-
var n,
|
|
6
|
-
const l = Object.assign({}, t, (n = e.desc) == null ? void 0 : n._attrs, e.desc, (
|
|
7
|
-
return e.desc.multiple && (l.multiple = !0, l.showCheckbox = !0, ["select"].indexOf(e.desc.type) >= 0 && (l.collapseTags = ((r = e.desc.attrs) == null ? void 0 : r.collapseTags) ?? ((a = e.desc) == null ? void 0 : a.collapseTags) ?? !1, l.collapseTagsTooltip = ((o = e.desc.attrs) == null ? void 0 : o.collapseTagsTooltip) ?? ((
|
|
5
|
+
var n, s, r, a, o, f;
|
|
6
|
+
const l = Object.assign({}, t, (n = e.desc) == null ? void 0 : n._attrs, e.desc, (s = e.desc) == null ? void 0 : s.attrs, co(e.desc));
|
|
7
|
+
return e.desc.multiple && (l.multiple = !0, l.showCheckbox = !0, ["select"].indexOf(e.desc.type) >= 0 && (l.collapseTags = ((r = e.desc.attrs) == null ? void 0 : r.collapseTags) ?? ((a = e.desc) == null ? void 0 : a.collapseTags) ?? !1, l.collapseTagsTooltip = ((o = e.desc.attrs) == null ? void 0 : o.collapseTagsTooltip) ?? ((f = e.desc) == null ? void 0 : f.collapseTagsTooltip) ?? !1)), e.desc.elType && (typeof e.desc.elType == "function" ? l.type = e.desc.elType(e.formData) : l.type = e.desc.elType), delete l.label, l;
|
|
8
8
|
}, we = (e) => {
|
|
9
9
|
var l;
|
|
10
10
|
const t = {};
|
|
11
11
|
return (l = e.desc) != null && l.on && Object.keys(e.desc.on).map((n) => {
|
|
12
|
-
t[n] = (
|
|
12
|
+
t[n] = (s) => {
|
|
13
13
|
Ae(() => {
|
|
14
|
-
e.desc.on[n](e.formData, e.rowIndex,
|
|
14
|
+
e.desc.on[n](e.formData, e.rowIndex, s);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
}), t;
|
|
@@ -83,11 +83,11 @@ const Mo = {
|
|
|
83
83
|
},
|
|
84
84
|
emits: ["update:modelValue"],
|
|
85
85
|
setup(e, { emit: t }) {
|
|
86
|
-
const l = de("globalData"), n = e,
|
|
86
|
+
const l = de("globalData"), n = e, s = t, r = j([]), a = j({}), o = j(!1), f = j(we(n)), u = Ye(n, "modelValue", s);
|
|
87
87
|
return ue(
|
|
88
88
|
() => n.modelValue,
|
|
89
89
|
(i) => {
|
|
90
|
-
|
|
90
|
+
u.value = Array.isArray(i) ? i : i == null ? [] : [i];
|
|
91
91
|
},
|
|
92
92
|
{ immediate: !0 }
|
|
93
93
|
), me(async () => {
|
|
@@ -99,9 +99,9 @@ const Mo = {
|
|
|
99
99
|
return o.value ? (d(), k(N, ee({
|
|
100
100
|
key: 0,
|
|
101
101
|
class: "ElPlusFormArea-panel"
|
|
102
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
103
|
-
modelValue: te(
|
|
104
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(
|
|
102
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
103
|
+
modelValue: te(u),
|
|
104
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(u) ? u.value = p : null),
|
|
105
105
|
options: r.value
|
|
106
106
|
}), null, 16, ["disabled", "modelValue", "options"])) : R("", !0);
|
|
107
107
|
};
|
|
@@ -109,8 +109,8 @@ const Mo = {
|
|
|
109
109
|
});
|
|
110
110
|
const Te = (e, t) => {
|
|
111
111
|
const l = e.__vccOpts || e;
|
|
112
|
-
for (const [n,
|
|
113
|
-
l[n] =
|
|
112
|
+
for (const [n, s] of t)
|
|
113
|
+
l[n] = s;
|
|
114
114
|
return l;
|
|
115
115
|
}, In = /* @__PURE__ */ Te(fo, [["__scopeId", "data-v-877642f2"]]), go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: In }, Symbol.toStringTag, { value: "Module" })), No = {
|
|
116
116
|
name: "ElPlusFormAutocomplete",
|
|
@@ -127,24 +127,24 @@ const Te = (e, t) => {
|
|
|
127
127
|
},
|
|
128
128
|
emits: ["update:modelValue"],
|
|
129
129
|
setup(e, { emit: t }) {
|
|
130
|
-
const l = e,
|
|
130
|
+
const l = e, s = Ye(l, "modelValue", t), r = j(Object.assign({}, Ge(), l.desc.slots)), a = j({}), o = j(we(l));
|
|
131
131
|
return me(async () => {
|
|
132
132
|
a.value = await ze(l, { autocomplete: "new-password", ...ge() });
|
|
133
|
-
}), (
|
|
133
|
+
}), (f, u) => {
|
|
134
134
|
const i = O("el-autocomplete");
|
|
135
135
|
return d(), k(i, ee({ class: "ElPlusFormAutocomplete-panel" }, a.value, { disabled: e.disabled }, ye(o.value), {
|
|
136
|
-
modelValue: te(
|
|
137
|
-
"onUpdate:modelValue":
|
|
136
|
+
modelValue: te(s),
|
|
137
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => Ce(s) ? s.value = c : null)
|
|
138
138
|
}), at({
|
|
139
139
|
default: _((c) => [
|
|
140
|
-
De(
|
|
140
|
+
De(f.$slots, "default", { data: c }, void 0, !0)
|
|
141
141
|
]),
|
|
142
142
|
_: 2
|
|
143
143
|
}, [
|
|
144
144
|
fe(r.value, (c, N, p) => ({
|
|
145
145
|
name: N,
|
|
146
146
|
fn: _((m) => [
|
|
147
|
-
De(
|
|
147
|
+
De(f.$slots, N, { data: m }, void 0, !0)
|
|
148
148
|
])
|
|
149
149
|
}))
|
|
150
150
|
]), 1040, ["disabled", "modelValue"]);
|
|
@@ -351,7 +351,7 @@ const Po = {
|
|
|
351
351
|
formData: {}
|
|
352
352
|
},
|
|
353
353
|
setup(e) {
|
|
354
|
-
const t = de("lodash"), l = de("defaultConf"), n = e,
|
|
354
|
+
const t = de("lodash"), l = de("defaultConf"), n = e, s = j(n.loading ?? !1), r = ne(() => {
|
|
355
355
|
var p;
|
|
356
356
|
if ((p = n.desc) != null && p.auth)
|
|
357
357
|
if (!l.auth)
|
|
@@ -362,12 +362,12 @@ const Po = {
|
|
|
362
362
|
}), a = ne(() => {
|
|
363
363
|
var p;
|
|
364
364
|
return !!((p = n.desc) != null && p.text);
|
|
365
|
-
}), o = /* @__PURE__ */ new Set(["text", "plain", "bg", "loading", "round", "circle", "dashed", "native-type", "autofocus", "auto-insert-space", "tag", "size", "btnType", "btnLabel", "mask", "confirm", "auth", "isTag", "label", "on", "_attrs", "type"]),
|
|
365
|
+
}), o = /* @__PURE__ */ new Set(["text", "plain", "bg", "loading", "round", "circle", "dashed", "native-type", "autofocus", "auto-insert-space", "tag", "size", "btnType", "btnLabel", "mask", "confirm", "auth", "isTag", "label", "on", "_attrs", "type"]), f = ne(() => {
|
|
366
366
|
const p = {};
|
|
367
367
|
for (const m in i.value)
|
|
368
368
|
o.has(m) || (p[m] = i.value[m]);
|
|
369
369
|
return p;
|
|
370
|
-
}),
|
|
370
|
+
}), u = ne(() => {
|
|
371
371
|
const p = i.value;
|
|
372
372
|
return p.btnType ? typeof p.btnType == "function" ? p.btnType(n.formData || {}) || "primary" : p.btnType || "primary" : p.type || "primary";
|
|
373
373
|
}), i = ne(() => {
|
|
@@ -380,10 +380,10 @@ const Po = {
|
|
|
380
380
|
for (const m in n.desc.on)
|
|
381
381
|
m === "click" && n.desc.mask ? p[m] = function() {
|
|
382
382
|
var G;
|
|
383
|
-
|
|
383
|
+
s.value = !0, (G = n.desc) == null || G.on[m]({
|
|
384
384
|
row: n.formData || {},
|
|
385
385
|
callBack: (B) => {
|
|
386
|
-
setTimeout(() =>
|
|
386
|
+
setTimeout(() => s.value = !1, B || 50);
|
|
387
387
|
},
|
|
388
388
|
field: n.field,
|
|
389
389
|
rowIndex: n.rowIndex
|
|
@@ -400,10 +400,10 @@ const Po = {
|
|
|
400
400
|
return ue(
|
|
401
401
|
() => n.loading,
|
|
402
402
|
(p) => {
|
|
403
|
-
|
|
403
|
+
s.value = p;
|
|
404
404
|
}
|
|
405
405
|
), (p, m) => {
|
|
406
|
-
var Q, b, L, P, I, S,
|
|
406
|
+
var Q, b, L, P, I, S, D, x, A, M;
|
|
407
407
|
const G = O("el-icon"), B = O("el-link"), Y = O("el-popconfirm"), U = O("el-button");
|
|
408
408
|
return r.value ? (d(), w(se, { key: 0 }, [
|
|
409
409
|
a.value ? (d(), w(se, { key: 0 }, [
|
|
@@ -413,18 +413,18 @@ const Po = {
|
|
|
413
413
|
title: (b = n.desc) == null ? void 0 : b.confirm
|
|
414
414
|
}, {
|
|
415
415
|
reference: _(() => {
|
|
416
|
-
var
|
|
416
|
+
var z, v;
|
|
417
417
|
return [
|
|
418
418
|
Z(B, ee({
|
|
419
419
|
underline: "never",
|
|
420
|
-
type:
|
|
421
|
-
},
|
|
422
|
-
disabled:
|
|
423
|
-
style: { pointerEvents: (
|
|
420
|
+
type: u.value
|
|
421
|
+
}, f.value, {
|
|
422
|
+
disabled: s.value || f.value.disabled,
|
|
423
|
+
style: { pointerEvents: (z = e.desc) != null && z.isTag ? "none" : "all" },
|
|
424
424
|
class: { "no-label": !((v = n.desc) != null && v.label) }
|
|
425
425
|
}), {
|
|
426
426
|
default: _(() => [
|
|
427
|
-
|
|
427
|
+
s.value ? (d(), k(G, {
|
|
428
428
|
key: 0,
|
|
429
429
|
class: "is-loading"
|
|
430
430
|
}, {
|
|
@@ -450,14 +450,14 @@ const Po = {
|
|
|
450
450
|
}, 8, ["onConfirm", "title"])) : (d(), k(B, ee({
|
|
451
451
|
key: 1,
|
|
452
452
|
underline: "never",
|
|
453
|
-
type:
|
|
454
|
-
},
|
|
455
|
-
disabled:
|
|
453
|
+
type: u.value
|
|
454
|
+
}, f.value, ye(c.value), {
|
|
455
|
+
disabled: s.value || f.value.disabled,
|
|
456
456
|
style: { pointerEvents: (L = e.desc) != null && L.isTag ? "none" : "all" },
|
|
457
457
|
class: { "no-label": !((P = n.desc) != null && P.label) }
|
|
458
458
|
}), {
|
|
459
459
|
default: _(() => [
|
|
460
|
-
|
|
460
|
+
s.value ? (d(), k(G, {
|
|
461
461
|
key: 0,
|
|
462
462
|
class: "is-loading"
|
|
463
463
|
}, {
|
|
@@ -467,9 +467,9 @@ const Po = {
|
|
|
467
467
|
_: 1
|
|
468
468
|
})) : R("", !0),
|
|
469
469
|
De(p.$slots, "default", {}, () => {
|
|
470
|
-
var
|
|
470
|
+
var z;
|
|
471
471
|
return [
|
|
472
|
-
(
|
|
472
|
+
(z = n.desc) != null && z.label ? (d(), w(se, { key: 0 }, [
|
|
473
473
|
pe(Me(N.value), 1)
|
|
474
474
|
], 64)) : R("", !0)
|
|
475
475
|
];
|
|
@@ -484,11 +484,11 @@ const Po = {
|
|
|
484
484
|
title: (S = n.desc) == null ? void 0 : S.confirm
|
|
485
485
|
}, {
|
|
486
486
|
reference: _(() => {
|
|
487
|
-
var
|
|
487
|
+
var z, v;
|
|
488
488
|
return [
|
|
489
489
|
Z(U, ee({
|
|
490
|
-
loading:
|
|
491
|
-
size: ((
|
|
490
|
+
loading: s.value,
|
|
491
|
+
size: ((z = n.desc) == null ? void 0 : z.size) || te(l).size || "default"
|
|
492
492
|
}, i.value, {
|
|
493
493
|
class: { btnHideLabel: !((v = n.desc) != null && v.label) }
|
|
494
494
|
}), {
|
|
@@ -509,17 +509,17 @@ const Po = {
|
|
|
509
509
|
_: 3
|
|
510
510
|
}, 8, ["onConfirm", "title"])) : (d(), k(U, ee({
|
|
511
511
|
key: 1,
|
|
512
|
-
loading:
|
|
513
|
-
size: ((
|
|
512
|
+
loading: s.value,
|
|
513
|
+
size: ((D = n.desc) == null ? void 0 : D.size) || te(l).size || "default"
|
|
514
514
|
}, i.value, ye(c.value), {
|
|
515
515
|
style: { pointerEvents: (x = e.desc) != null && x.isTag ? "none" : "all" },
|
|
516
|
-
class: { "no-label": !((A = n.desc) != null && A.label), btnHideLabel: !((
|
|
516
|
+
class: { "no-label": !((A = n.desc) != null && A.label), btnHideLabel: !((M = n.desc) != null && M.label) }
|
|
517
517
|
}), {
|
|
518
518
|
default: _(() => [
|
|
519
519
|
De(p.$slots, "default", {}, () => {
|
|
520
|
-
var
|
|
520
|
+
var z;
|
|
521
521
|
return [
|
|
522
|
-
(
|
|
522
|
+
(z = n.desc) != null && z.label ? (d(), w(se, { key: 0 }, [
|
|
523
523
|
pe(Me(N.value), 1)
|
|
524
524
|
], 64)) : R("", !0)
|
|
525
525
|
];
|
|
@@ -548,12 +548,12 @@ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
548
548
|
disabled: { type: Boolean }
|
|
549
549
|
},
|
|
550
550
|
setup(e) {
|
|
551
|
-
const t = e, l = j(!!t.loading), n = j([]),
|
|
551
|
+
const t = e, l = j(!!t.loading), n = j([]), s = j({}), r = j(!1), a = {
|
|
552
552
|
name: "file",
|
|
553
553
|
showFileList: !1,
|
|
554
554
|
listType: "text",
|
|
555
555
|
accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel",
|
|
556
|
-
beforeUpload: async (
|
|
556
|
+
beforeUpload: async (u) => {
|
|
557
557
|
var c, N;
|
|
558
558
|
l.value = !0;
|
|
559
559
|
let i = ((c = t.desc) == null ? void 0 : c.confirm) || "";
|
|
@@ -565,34 +565,34 @@ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
565
565
|
}).then(() => p(!0)).catch(() => {
|
|
566
566
|
p(!1), l.value = !1;
|
|
567
567
|
});
|
|
568
|
-
}) : await
|
|
568
|
+
}) : await f(u);
|
|
569
569
|
},
|
|
570
570
|
onError: () => {
|
|
571
571
|
tt.error("文件上传出错,请检查文件格式及内容是否正确!"), l.value = !1;
|
|
572
572
|
}
|
|
573
573
|
}, o = ne(() => t.desc.btnLabel ? typeof t.desc.btnLabel == "function" ? t.desc.btnLabel(t.formData || {}) : t.desc.btnLabel : t.desc.label ? typeof t.desc.label == "function" ? t.desc.label(t.formData || {}) : t.desc.label : "");
|
|
574
|
-
function
|
|
574
|
+
function f(u) {
|
|
575
575
|
return new Promise((i, c) => {
|
|
576
576
|
l.value = !0;
|
|
577
|
-
const N =
|
|
577
|
+
const N = u.name.substring(u.name.lastIndexOf(".")), p = t.desc.accept || t.desc.attrs.accept || [".xlsx", ".xls"];
|
|
578
578
|
if (p.indexOf(N) < 0)
|
|
579
579
|
return tt.warning(`请上传后缀为${p.join(",")}格式的文件!`), l.value = !1, c(!1), !1;
|
|
580
|
-
if (
|
|
580
|
+
if (u.size > 20 * 1024 * 1024)
|
|
581
581
|
return tt.warning("超出文件大小限制(最大为20M)!"), l.value = !1, c(!1), !1;
|
|
582
582
|
i(!0);
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
return ue(
|
|
586
586
|
() => t.loading,
|
|
587
|
-
(
|
|
588
|
-
l.value =
|
|
587
|
+
(u) => {
|
|
588
|
+
l.value = u;
|
|
589
589
|
},
|
|
590
590
|
{ immediate: !0 }
|
|
591
591
|
), me(async () => {
|
|
592
|
-
|
|
592
|
+
s.value = await ze(t, { ...a, ...ge() }), s.value.action || console.warn("上传组件未填写action..."), s.value.onSuccess = (u) => {
|
|
593
593
|
var i, c;
|
|
594
594
|
(c = (i = t.desc) == null ? void 0 : i.on) != null && c.success && t.desc.on.success({
|
|
595
|
-
row:
|
|
595
|
+
row: u,
|
|
596
596
|
callBack: () => {
|
|
597
597
|
setTimeout(() => l.value = !1, 500);
|
|
598
598
|
},
|
|
@@ -600,14 +600,14 @@ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
600
600
|
rowIndex: t.rowIndex
|
|
601
601
|
});
|
|
602
602
|
}, r.value = !0;
|
|
603
|
-
}), (
|
|
603
|
+
}), (u, i) => {
|
|
604
604
|
const c = O("el-button"), N = O("el-upload");
|
|
605
605
|
return d(), w("div", Uo, [
|
|
606
606
|
Z(N, ee({
|
|
607
607
|
class: "upload-demo",
|
|
608
608
|
style: { display: "flex" }
|
|
609
|
-
},
|
|
610
|
-
disabled: l.value ||
|
|
609
|
+
}, s.value, {
|
|
610
|
+
disabled: l.value || s.value.disabled,
|
|
611
611
|
modelValue: n.value,
|
|
612
612
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => n.value = p)
|
|
613
613
|
}), {
|
|
@@ -647,7 +647,7 @@ const qt = /* @__PURE__ */ Te(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
647
647
|
disabled: { type: Boolean }
|
|
648
648
|
},
|
|
649
649
|
setup(e) {
|
|
650
|
-
const t = de("defaultConf"), l = e, n = j([]),
|
|
650
|
+
const t = de("defaultConf"), l = e, n = j([]), s = j([]), r = ne(() => {
|
|
651
651
|
switch (l.desc.align) {
|
|
652
652
|
case "right":
|
|
653
653
|
return "flex-end";
|
|
@@ -677,15 +677,15 @@ const qt = /* @__PURE__ */ Te(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
677
677
|
return c;
|
|
678
678
|
}), o = () => {
|
|
679
679
|
const i = [];
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
s.value = [], l.desc.btns.length > 0 && l.desc.btns.map((N) => {
|
|
681
|
+
f(N) && i.push(N);
|
|
682
682
|
}), n.value = i;
|
|
683
683
|
const c = l.desc.limit || 3;
|
|
684
|
-
n.value.length > c && (
|
|
685
|
-
},
|
|
684
|
+
n.value.length > c && (s.value = n.value.splice(c - 1));
|
|
685
|
+
}, f = (i) => {
|
|
686
686
|
let c = !0;
|
|
687
|
-
return typeof i.vif == "function" ? c = !!
|
|
688
|
-
},
|
|
687
|
+
return typeof i.vif == "function" ? c = !!u(i.vif) : typeof i.vif == "boolean" && (c = i.vif), c && i != null && i.auth && (t.auth ? c = t.auth(i.auth) : console.warn("使用auth属性,请在crud注册时传入auth校验方法~")), c;
|
|
688
|
+
}, u = (i) => i(l.formData || {});
|
|
689
689
|
return ue(
|
|
690
690
|
() => l.desc,
|
|
691
691
|
() => o()
|
|
@@ -725,7 +725,7 @@ const qt = /* @__PURE__ */ Te(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
725
725
|
rowIndex: e.rowIndex
|
|
726
726
|
}, null, 8, ["field", "desc", "formData", "plain", "disabled", "text", "rowIndex"]))
|
|
727
727
|
], 64))), 128)),
|
|
728
|
-
|
|
728
|
+
s.value && s.value.length > 0 ? (d(), k(B, {
|
|
729
729
|
key: 0,
|
|
730
730
|
class: "group-menu-btn",
|
|
731
731
|
size: e.desc.size || "default",
|
|
@@ -734,7 +734,7 @@ const qt = /* @__PURE__ */ Te(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
734
734
|
dropdown: _(() => [
|
|
735
735
|
Z(G, null, {
|
|
736
736
|
default: _(() => [
|
|
737
|
-
(d(!0), w(se, null, fe(
|
|
737
|
+
(d(!0), w(se, null, fe(s.value, (Y, U) => (d(), k(m, ee({
|
|
738
738
|
key: U + (Y.label || Y.title)
|
|
739
739
|
}, ye(a.value(Y))), {
|
|
740
740
|
default: _(() => [
|
|
@@ -808,8 +808,8 @@ const qo = (e) => {
|
|
|
808
808
|
let t = 0;
|
|
809
809
|
const l = e.length;
|
|
810
810
|
let n = -1;
|
|
811
|
-
for (let
|
|
812
|
-
n = e.charCodeAt(
|
|
811
|
+
for (let s = 0; s < l; s++)
|
|
812
|
+
n = e.charCodeAt(s), n >= 0 && n <= 128 ? t += 1 : t += 2;
|
|
813
813
|
return t;
|
|
814
814
|
};
|
|
815
815
|
function it(e, t) {
|
|
@@ -845,24 +845,24 @@ function Jo(e) {
|
|
|
845
845
|
}
|
|
846
846
|
return e;
|
|
847
847
|
}
|
|
848
|
-
function Tn(e, t, l, n,
|
|
848
|
+
function Tn(e, t, l, n, s) {
|
|
849
849
|
const r = [], a = (/* @__PURE__ */ new Date()).getTime();
|
|
850
|
-
return e && e.length > 0 && e.map((o,
|
|
851
|
-
switch (o.children ? (o.headerAlign = o.headerAlign || "center", o.children = Tn(o.children, t, l, "center",
|
|
850
|
+
return e && e.length > 0 && e.map((o, f) => {
|
|
851
|
+
switch (o.children ? (o.headerAlign = o.headerAlign || "center", o.children = Tn(o.children, t, l, "center", s)) : o.headerAlign = o.headerAlign || n || "left", o.type || (o.type = "text"), o.type) {
|
|
852
852
|
case "image":
|
|
853
853
|
o.width = o.width || "110px", o.align = o.align || "left", o.headerAlign = o.headerAlign || n || "left";
|
|
854
854
|
break;
|
|
855
855
|
case "btns":
|
|
856
856
|
if (!o.minWidth && o.btns && o.btns.length >= 2) {
|
|
857
|
-
let
|
|
857
|
+
let u = 0;
|
|
858
858
|
for (let i = 0; i < o.btns.length && i < (o.limit || 3); i++)
|
|
859
|
-
o.btns[i] && typeof o.btns[i].label == "string" ?
|
|
860
|
-
o.width = o.width ||
|
|
859
|
+
o.btns[i] && typeof o.btns[i].label == "string" ? u += o.btns[i].label.length : u += 4;
|
|
860
|
+
o.width = o.width || u * 24 + "px";
|
|
861
861
|
}
|
|
862
862
|
o.align = o.align || "left", o.headerAlign = o.headerAlign || n || "left", o.text = !0;
|
|
863
863
|
break;
|
|
864
864
|
}
|
|
865
|
-
o.minWidth = o.minWidth || (o.label !== "操作" ?
|
|
865
|
+
o.minWidth = o.minWidth || (o.label !== "操作" ? s : "auto"), o.showOverflowTooltip = o.label !== "操作", Xo(o, t, l), o.__id = `${a + f}`, r.push(o);
|
|
866
866
|
}), r;
|
|
867
867
|
}
|
|
868
868
|
function Xo(e, t, l) {
|
|
@@ -903,13 +903,13 @@ const es = (e, t) => {
|
|
|
903
903
|
},
|
|
904
904
|
emits: ["update:modelValue"],
|
|
905
905
|
setup(e, { emit: t }) {
|
|
906
|
-
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = j(!1), o = j({}),
|
|
906
|
+
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = j(!1), o = j({}), f = j(we(n)), u = ke([]);
|
|
907
907
|
return me(async () => {
|
|
908
908
|
o.value = await ze(n, { clearable: !0, props: { value: "value", label: "label", children: "children", checkStrictly: !!n.desc.checkStrictly }, ...ge() }), a.value = !0;
|
|
909
909
|
}), ue(
|
|
910
910
|
() => n.desc.options,
|
|
911
911
|
async (i) => {
|
|
912
|
-
typeof i == "string" ?
|
|
912
|
+
typeof i == "string" ? u.splice(0, u.length, ...l[i] || []) : typeof i == "function" ? u.splice(0, u.length, ...await i(n.formData || {})) : Array.isArray(i) ? i && u && !nt(i, u) && u.splice(0, u.length, ...i) : u.splice(0, u.length);
|
|
913
913
|
},
|
|
914
914
|
{ immediate: !0 }
|
|
915
915
|
), (i, c) => {
|
|
@@ -917,8 +917,8 @@ const es = (e, t) => {
|
|
|
917
917
|
return a.value ? (d(), k(N, ee({
|
|
918
918
|
key: 0,
|
|
919
919
|
class: "ElPlusFormCascader-panel"
|
|
920
|
-
}, o.value, { disabled: e.disabled }, ye(
|
|
921
|
-
options:
|
|
920
|
+
}, o.value, { disabled: e.disabled }, ye(f.value), {
|
|
921
|
+
options: u,
|
|
922
922
|
modelValue: te(r),
|
|
923
923
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(r) ? r.value = p : null)
|
|
924
924
|
}), null, 16, ["disabled", "options", "modelValue"])) : R("", !0);
|
|
@@ -949,7 +949,7 @@ const xn = /* @__PURE__ */ Te(ls, [["__scopeId", "data-v-c9c2c533"]]), ns = /* @
|
|
|
949
949
|
},
|
|
950
950
|
{ immediate: !0 }
|
|
951
951
|
);
|
|
952
|
-
const a = j({}), o = j(!1),
|
|
952
|
+
const a = j({}), o = j(!1), f = j(we(n)), u = ke([]);
|
|
953
953
|
return me(async () => {
|
|
954
954
|
a.value = await ze(n, {
|
|
955
955
|
props: { value: "value", label: "label", children: "children" },
|
|
@@ -961,7 +961,7 @@ const xn = /* @__PURE__ */ Te(ls, [["__scopeId", "data-v-c9c2c533"]]), ns = /* @
|
|
|
961
961
|
}), ue(
|
|
962
962
|
() => n.desc.options,
|
|
963
963
|
async (i) => {
|
|
964
|
-
typeof i == "string" ?
|
|
964
|
+
typeof i == "string" ? u.splice(0, u.length, ...l[i] || []) : typeof i == "function" ? u.splice(0, u.length, ...await i(n.formData || {})) : Array.isArray(i) ? i && u && !nt(i, u) && u.splice(0, u.length, ...i) : u.splice(0, u.length);
|
|
965
965
|
},
|
|
966
966
|
{ immediate: !0 }
|
|
967
967
|
), (i, c) => {
|
|
@@ -969,8 +969,8 @@ const xn = /* @__PURE__ */ Te(ls, [["__scopeId", "data-v-c9c2c533"]]), ns = /* @
|
|
|
969
969
|
return o.value ? (d(), k(N, ee({
|
|
970
970
|
key: 0,
|
|
971
971
|
class: "ElPlusFormCascaderPanel-panel"
|
|
972
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
973
|
-
options:
|
|
972
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
973
|
+
options: u,
|
|
974
974
|
modelValue: te(r),
|
|
975
975
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(r) ? r.value = p : null)
|
|
976
976
|
}), null, 16, ["disabled", "options", "modelValue"])) : R("", !0);
|
|
@@ -996,9 +996,9 @@ const _n = /* @__PURE__ */ Te(os, [["__scopeId", "data-v-9f5b584f"]]), ss = /* @
|
|
|
996
996
|
},
|
|
997
997
|
emits: ["update:modelValue"],
|
|
998
998
|
setup(e, { emit: t }) {
|
|
999
|
-
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = ke([]), o = j(!1),
|
|
999
|
+
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = ke([]), o = j(!1), f = j({}), u = j(we(n));
|
|
1000
1000
|
return me(async () => {
|
|
1001
|
-
|
|
1001
|
+
f.value = await ze(n, { ...ge() }), o.value = !0;
|
|
1002
1002
|
}), ue(
|
|
1003
1003
|
() => n.desc.options,
|
|
1004
1004
|
async (i) => {
|
|
@@ -1017,7 +1017,7 @@ const _n = /* @__PURE__ */ Te(os, [["__scopeId", "data-v-9f5b584f"]]), ss = /* @
|
|
|
1017
1017
|
a != null && a.length ? (d(), k(p, ee({
|
|
1018
1018
|
key: 0,
|
|
1019
1019
|
class: "ElPlusFormCheckbox-panel"
|
|
1020
|
-
},
|
|
1020
|
+
}, f.value, { disabled: e.disabled }, ye(u.value), {
|
|
1021
1021
|
modelValue: te(r),
|
|
1022
1022
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => Ce(r) ? r.value = m : null)
|
|
1023
1023
|
}), {
|
|
@@ -1055,25 +1055,25 @@ const Ln = /* @__PURE__ */ Te(rs, [["__scopeId", "data-v-0320ab23"]]), cs = /* @
|
|
|
1055
1055
|
},
|
|
1056
1056
|
emits: ["update:modelValue"],
|
|
1057
1057
|
setup(e, { emit: t }) {
|
|
1058
|
-
const l = e,
|
|
1058
|
+
const l = e, s = Ye(l, "modelValue", t);
|
|
1059
1059
|
ue(
|
|
1060
1060
|
() => l.modelValue,
|
|
1061
|
-
(
|
|
1062
|
-
|
|
1061
|
+
(f) => {
|
|
1062
|
+
s.value = f ? Array.isArray(f) ? f : [f] : [];
|
|
1063
1063
|
},
|
|
1064
1064
|
{ immediate: !0 }
|
|
1065
1065
|
);
|
|
1066
1066
|
const r = j({}), a = j(!1), o = j(we(l));
|
|
1067
1067
|
return me(async () => {
|
|
1068
1068
|
r.value = await ze(l, { ...ge() }), a.value = !0;
|
|
1069
|
-
}), (
|
|
1069
|
+
}), (f, u) => {
|
|
1070
1070
|
const i = O("el-checkbox-button"), c = O("el-checkbox-group");
|
|
1071
1071
|
return a.value ? (d(), k(c, ee({
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
class: "ElPlusFormCheckboxButton-panel"
|
|
1074
1074
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
1075
|
-
modelValue: te(
|
|
1076
|
-
"onUpdate:modelValue":
|
|
1075
|
+
modelValue: te(s),
|
|
1076
|
+
"onUpdate:modelValue": u[0] || (u[0] = (N) => Ce(s) ? s.value = N : null)
|
|
1077
1077
|
}), {
|
|
1078
1078
|
default: _(() => [
|
|
1079
1079
|
(d(!0), w(se, null, fe(e.desc.options, (N) => (d(), k(i, ee({
|
|
@@ -1107,14 +1107,14 @@ const Cn = /* @__PURE__ */ Te(Ms, [["__scopeId", "data-v-55c42eca"]]), fs = /* @
|
|
|
1107
1107
|
},
|
|
1108
1108
|
emits: ["update:modelValue"],
|
|
1109
1109
|
setup(e, { emit: t }) {
|
|
1110
|
-
const l = e,
|
|
1110
|
+
const l = e, s = Ye(l, "modelValue", t), r = j({}), a = j(we(l));
|
|
1111
1111
|
return me(async () => {
|
|
1112
1112
|
r.value = await ze(l, { ...ge() });
|
|
1113
|
-
}), (o,
|
|
1114
|
-
const
|
|
1115
|
-
return d(), k(
|
|
1116
|
-
modelValue: te(
|
|
1117
|
-
"onUpdate:modelValue":
|
|
1113
|
+
}), (o, f) => {
|
|
1114
|
+
const u = O("el-color-picker");
|
|
1115
|
+
return d(), k(u, ee({ class: "ElPlusFormColor-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
1116
|
+
modelValue: te(s),
|
|
1117
|
+
"onUpdate:modelValue": f[0] || (f[0] = (i) => Ce(s) ? s.value = i : null)
|
|
1118
1118
|
}), null, 16, ["disabled", "modelValue"]);
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
@@ -1135,17 +1135,17 @@ const En = /* @__PURE__ */ Te(Ns, [["__scopeId", "data-v-b89e85de"]]), js = /* @
|
|
|
1135
1135
|
},
|
|
1136
1136
|
emits: ["update:modelValue"],
|
|
1137
1137
|
setup(e, { emit: t }) {
|
|
1138
|
-
const l = e, n = t,
|
|
1138
|
+
const l = e, n = t, s = j(!1), r = j({}), a = j(we(l)), o = Ye(l, "modelValue", n);
|
|
1139
1139
|
return me(async () => {
|
|
1140
|
-
r.value = await ze(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", editable: !1, ...ge() }),
|
|
1141
|
-
}), (
|
|
1140
|
+
r.value = await ze(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", editable: !1, ...ge() }), s.value = !0;
|
|
1141
|
+
}), (f, u) => {
|
|
1142
1142
|
const i = O("el-date-picker");
|
|
1143
|
-
return
|
|
1143
|
+
return s.value ? (d(), k(i, ee({
|
|
1144
1144
|
key: 0,
|
|
1145
1145
|
class: "ElPlusFormDate-panel"
|
|
1146
1146
|
}, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
1147
1147
|
modelValue: te(o),
|
|
1148
|
-
"onUpdate:modelValue":
|
|
1148
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => Ce(o) ? o.value = c : null)
|
|
1149
1149
|
}), null, 16, ["disabled", "modelValue"])) : R("", !0);
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
@@ -1166,22 +1166,22 @@ const On = /* @__PURE__ */ Te(ys, [["__scopeId", "data-v-9e53a749"]]), ms = /* @
|
|
|
1166
1166
|
},
|
|
1167
1167
|
emits: ["update:modelValue"],
|
|
1168
1168
|
setup(e, { emit: t }) {
|
|
1169
|
-
const l = e,
|
|
1169
|
+
const l = e, s = Ye(l, "modelValue", t), r = j(Object.assign({}, Ge(), l.desc.slots)), a = j(!1), o = j({}), f = j(we(l));
|
|
1170
1170
|
return me(async () => {
|
|
1171
1171
|
o.value = await ze(l, { type: "daterange", format: "YYYY-MM-DD", valueFormat: "x", editable: !1, ...ge() }), a.value = !0;
|
|
1172
|
-
}), (
|
|
1172
|
+
}), (u, i) => {
|
|
1173
1173
|
const c = O("el-date-picker");
|
|
1174
1174
|
return a.value ? (d(), k(c, ee({
|
|
1175
1175
|
key: 0,
|
|
1176
1176
|
class: "el-plusF-form-daterange-panel"
|
|
1177
|
-
}, o.value, { disabled: e.disabled }, ye(
|
|
1178
|
-
modelValue: te(
|
|
1179
|
-
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(
|
|
1177
|
+
}, o.value, { disabled: e.disabled }, ye(f.value), {
|
|
1178
|
+
modelValue: te(s),
|
|
1179
|
+
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(s) ? s.value = N : null)
|
|
1180
1180
|
}), at({ _: 2 }, [
|
|
1181
1181
|
fe(r.value, (N, p, m) => ({
|
|
1182
1182
|
name: p,
|
|
1183
1183
|
fn: _((G) => [
|
|
1184
|
-
De(
|
|
1184
|
+
De(u.$slots, p, { data: G }, void 0, !0)
|
|
1185
1185
|
])
|
|
1186
1186
|
}))
|
|
1187
1187
|
]), 1040, ["disabled", "modelValue"])) : R("", !0);
|
|
@@ -1204,18 +1204,18 @@ const Sn = /* @__PURE__ */ Te(Ds, [["__scopeId", "data-v-2f41b007"]]), vs = /* @
|
|
|
1204
1204
|
},
|
|
1205
1205
|
emits: ["update:modelValue"],
|
|
1206
1206
|
setup(e, { emit: t }) {
|
|
1207
|
-
const l = e,
|
|
1207
|
+
const l = e, s = Ye(l, "modelValue", t), r = j({}), a = j(!1), o = j(we(l));
|
|
1208
1208
|
return me(async () => {
|
|
1209
1209
|
r.value = await ze(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", ...ge() }), a.value = !0;
|
|
1210
|
-
}), (
|
|
1210
|
+
}), (f, u) => {
|
|
1211
1211
|
const i = O("el-date-picker");
|
|
1212
1212
|
return a.value ? (d(), k(i, ee({
|
|
1213
1213
|
key: 0,
|
|
1214
1214
|
class: "ElPlusFormDatetime-panel"
|
|
1215
1215
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
1216
1216
|
type: "datetime",
|
|
1217
|
-
modelValue: te(
|
|
1218
|
-
"onUpdate:modelValue":
|
|
1217
|
+
modelValue: te(s),
|
|
1218
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => Ce(s) ? s.value = c : null)
|
|
1219
1219
|
}), null, 16, ["disabled", "modelValue"])) : R("", !0);
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
@@ -1236,22 +1236,22 @@ const kn = /* @__PURE__ */ Te(Is, [["__scopeId", "data-v-6e06c923"]]), ws = /* @
|
|
|
1236
1236
|
},
|
|
1237
1237
|
emits: ["update:modelValue"],
|
|
1238
1238
|
setup(e, { emit: t }) {
|
|
1239
|
-
const l = e,
|
|
1239
|
+
const l = e, s = Ye(l, "modelValue", t), r = j(Object.assign({}, Ge(), l.desc.slots)), a = j({}), o = j(!1), f = j(we(l));
|
|
1240
1240
|
return me(async () => {
|
|
1241
1241
|
a.value = await ze(l, { type: "datetimerange", format: "YYYY-MM-DD HH:mm:ss", valueFormat: "x", editable: !1, ...ge() }), o.value = !0;
|
|
1242
|
-
}), (
|
|
1242
|
+
}), (u, i) => {
|
|
1243
1243
|
const c = O("el-date-picker");
|
|
1244
1244
|
return o.value ? (d(), k(c, ee({
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
class: "el-plusF-form-datetimerange-panel"
|
|
1247
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
1248
|
-
modelValue: te(
|
|
1249
|
-
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(
|
|
1247
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
1248
|
+
modelValue: te(s),
|
|
1249
|
+
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(s) ? s.value = N : null)
|
|
1250
1250
|
}), at({ _: 2 }, [
|
|
1251
1251
|
fe(r.value, (N, p, m) => ({
|
|
1252
1252
|
name: p,
|
|
1253
1253
|
fn: _((G) => [
|
|
1254
|
-
De(
|
|
1254
|
+
De(u.$slots, p, { data: G }, void 0, !0)
|
|
1255
1255
|
])
|
|
1256
1256
|
}))
|
|
1257
1257
|
]), 1040, ["disabled", "modelValue"])) : R("", !0);
|
|
@@ -1285,27 +1285,27 @@ const Bn = /* @__PURE__ */ Te(As, [["__scopeId", "data-v-42ba2168"]]), Ts = /* @
|
|
|
1285
1285
|
showName: { type: Boolean }
|
|
1286
1286
|
},
|
|
1287
1287
|
setup(e) {
|
|
1288
|
-
const t = e, l = j(!1), n = j(0),
|
|
1289
|
-
if (Nl.indexOf(
|
|
1290
|
-
return
|
|
1291
|
-
}).filter((
|
|
1288
|
+
const t = e, l = j(!1), n = j(0), s = ne(() => t.files.map((u) => {
|
|
1289
|
+
if (Nl.indexOf(u.suffix || "") >= 0)
|
|
1290
|
+
return u.signUrl || u.shareUrl || u.furl || u.url;
|
|
1291
|
+
}).filter((u) => u)), r = ne(() => ({
|
|
1292
1292
|
width: (t.size || 16) + "px",
|
|
1293
1293
|
height: (t.size || 16) + "px"
|
|
1294
1294
|
}));
|
|
1295
|
-
function a(
|
|
1296
|
-
let i = Cs[
|
|
1297
|
-
return t.showImg && Nl.indexOf(
|
|
1295
|
+
function a(u) {
|
|
1296
|
+
let i = Cs[u.suffix || ""] || hs;
|
|
1297
|
+
return t.showImg && Nl.indexOf(u.suffix || "") >= 0 ? u.shareUrl || u.signUrl : i;
|
|
1298
1298
|
}
|
|
1299
|
-
function o(
|
|
1300
|
-
t.preview && (Nl.indexOf(
|
|
1299
|
+
function o(u) {
|
|
1300
|
+
t.preview && (Nl.indexOf(u.suffix || "") >= 0 ? (n.value = s.value.indexOf(u.shareUrl || u.signUrl || u.furl || u.url), l.value = !0) : f(u));
|
|
1301
1301
|
}
|
|
1302
|
-
async function
|
|
1302
|
+
async function f(u) {
|
|
1303
1303
|
const i = new XMLHttpRequest();
|
|
1304
|
-
let c =
|
|
1304
|
+
let c = u.previewUrl || u.signUrl || u.shareUrl || u.furl || "";
|
|
1305
1305
|
i.open("get", c, !0), i.responseType = "blob";
|
|
1306
|
-
let N =
|
|
1306
|
+
let N = u.name || c.split("?")[0] || `${(/* @__PURE__ */ new Date()).getTime()}`;
|
|
1307
1307
|
N.length > 0 && (N = N.substring(N.lastIndexOf("/") + 1));
|
|
1308
|
-
const p =
|
|
1308
|
+
const p = u.suffix || N.indexOf(".") > 0 ? N.substring(N.lastIndexOf(".")) : ".xlsx";
|
|
1309
1309
|
N.endsWith(p) || (N = N + p), i.onload = function() {
|
|
1310
1310
|
if (this.status == 200) {
|
|
1311
1311
|
if (!N)
|
|
@@ -1324,7 +1324,7 @@ const Bn = /* @__PURE__ */ Te(As, [["__scopeId", "data-v-42ba2168"]]), Ts = /* @
|
|
|
1324
1324
|
m.href = c, m.target = "_blank", m.download = N, m.click();
|
|
1325
1325
|
}, i.send();
|
|
1326
1326
|
}
|
|
1327
|
-
return (
|
|
1327
|
+
return (u, i) => {
|
|
1328
1328
|
const c = O("el-image"), N = O("el-image-viewer");
|
|
1329
1329
|
return d(), w("div", Es, [
|
|
1330
1330
|
e.files && e.files.length ? (d(), w("div", {
|
|
@@ -1349,7 +1349,7 @@ const Bn = /* @__PURE__ */ Te(As, [["__scopeId", "data-v-42ba2168"]]), Ts = /* @
|
|
|
1349
1349
|
onClose: i[0] || (i[0] = (p) => l.value = !1),
|
|
1350
1350
|
teleported: "",
|
|
1351
1351
|
initialIndex: n.value,
|
|
1352
|
-
"url-list":
|
|
1352
|
+
"url-list": s.value
|
|
1353
1353
|
}, null, 8, ["initialIndex", "url-list"])) : R("", !0)
|
|
1354
1354
|
]);
|
|
1355
1355
|
};
|
|
@@ -1409,50 +1409,50 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1409
1409
|
},
|
|
1410
1410
|
emits: ["update:modelValue", "validateThis"],
|
|
1411
1411
|
setup(e, { emit: t }) {
|
|
1412
|
-
const l = de("globalData"), n = e,
|
|
1412
|
+
const l = de("globalData"), n = e, s = t, r = ke([]), a = j({}), o = j(!1), f = j(!1), u = j(!1), i = j(""), c = j(), N = j(), p = j("="), m = j(""), G = ne(() => i.value ? r.filter(({ label: M }) => M.includes(i.value)) : r);
|
|
1413
1413
|
function B() {
|
|
1414
|
-
|
|
1415
|
-
var
|
|
1416
|
-
p.value = ((
|
|
1414
|
+
f.value = !0, Ae(() => {
|
|
1415
|
+
var M, z, v;
|
|
1416
|
+
p.value = ((M = n.modelValue) == null ? void 0 : M.value) || "=", c.value && (c.value.innerHTML = ((z = n.modelValue) == null ? void 0 : z.domStr) || "=", m.value = (v = c.value) == null ? void 0 : v.innerHTML);
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
|
-
function Y(
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1422
|
-
U("@",
|
|
1419
|
+
function Y(M) {
|
|
1420
|
+
u.value = !1;
|
|
1421
|
+
const z = `<div contenteditable="true">${M.label}<span>${M.value}</span></div>`;
|
|
1422
|
+
U("@", z), D();
|
|
1423
1423
|
}
|
|
1424
|
-
function U(
|
|
1424
|
+
function U(M, z = "") {
|
|
1425
1425
|
var F;
|
|
1426
1426
|
let v = ((F = c.value) == null ? void 0 : F.innerHTML) || "";
|
|
1427
|
-
v && v.includes(
|
|
1427
|
+
v && v.includes(M) && (v = v.replace(new RegExp(M, "g"), z), c.value.innerHTML = v + " ");
|
|
1428
1428
|
}
|
|
1429
|
-
function Q(
|
|
1430
|
-
const { key:
|
|
1431
|
-
switch (
|
|
1429
|
+
function Q(M) {
|
|
1430
|
+
const { key: z } = M;
|
|
1431
|
+
switch (z) {
|
|
1432
1432
|
case "Enter":
|
|
1433
|
-
|
|
1433
|
+
M.preventDefault();
|
|
1434
1434
|
break;
|
|
1435
1435
|
case "@":
|
|
1436
1436
|
A();
|
|
1437
1437
|
break;
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
function b(
|
|
1440
|
+
function b(M) {
|
|
1441
1441
|
var le, $;
|
|
1442
|
-
const
|
|
1442
|
+
const z = m.value.split(/<div\b[^>]*>(.*?)<\/div>/g) || [];
|
|
1443
1443
|
let v = (($ = (le = c.value) == null ? void 0 : le.innerHTML) == null ? void 0 : $.split(/<div\b[^>]*>(.*?)<\/div>/g)) || [], F = -1;
|
|
1444
|
-
if (
|
|
1445
|
-
for (let K = 0; K <
|
|
1446
|
-
if (
|
|
1444
|
+
if (z.length === v.length) {
|
|
1445
|
+
for (let K = 0; K < z.length; K++)
|
|
1446
|
+
if (z[K] !== v[K]) {
|
|
1447
1447
|
F = K;
|
|
1448
1448
|
break;
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
F >= 0 &&
|
|
1451
|
+
F >= 0 && z[F].indexOf("</span>") > 0 && (M.key === "Backspace" ? v.splice(F, 1) : v[F] = z[F], v = v.map((K) => K.indexOf("</span>") > 0 ? `<div contenteditable="true">${K}</div>` : K), c.value.innerHTML = v.join(""), M.key === "Backspace" && L(c.value, F - 1)), D();
|
|
1452
1452
|
}
|
|
1453
|
-
function L(
|
|
1453
|
+
function L(M, z) {
|
|
1454
1454
|
const v = document.createRange(), F = window.getSelection();
|
|
1455
|
-
v.selectNodeContents(
|
|
1455
|
+
v.selectNodeContents(M), v.collapse(!1), M.childNodes[z] && v.setStart(M.childNodes[z], 0), v.collapse(!0), F == null || F.removeAllRanges(), F == null || F.addRange(v);
|
|
1456
1456
|
}
|
|
1457
1457
|
function P() {
|
|
1458
1458
|
window.addEventListener("click", x);
|
|
@@ -1461,25 +1461,25 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1461
1461
|
window.removeEventListener("click", x);
|
|
1462
1462
|
}
|
|
1463
1463
|
function S() {
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1466
|
-
|
|
1464
|
+
var M;
|
|
1465
|
+
s("update:modelValue", { value: p.value, domStr: ((M = c.value) == null ? void 0 : M.innerHTML) || "" }), f.value = !1, Ae(() => {
|
|
1466
|
+
s("validateThis");
|
|
1467
1467
|
});
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function D() {
|
|
1470
1470
|
var F;
|
|
1471
1471
|
m.value = c.value.innerHTML;
|
|
1472
|
-
let
|
|
1473
|
-
const
|
|
1474
|
-
(
|
|
1475
|
-
|
|
1476
|
-
}), p.value =
|
|
1472
|
+
let M = c.value.innerHTML;
|
|
1473
|
+
const z = ((F = M.match(/<span[^>]*>([\s\S]*?)<\/span>/g)) == null ? void 0 : F.map((le) => (le.match(/<span[^>]*>([\s\S]*?)<\/span>/) || [])[1])) || [];
|
|
1474
|
+
(M.match(/<div[^>]*>([\s\S]*?)<\/div>/g) || []).map((le, $) => {
|
|
1475
|
+
M = M.replace(le, "${" + z[$] + "}");
|
|
1476
|
+
}), p.value = M.replaceAll(" ", "").replaceAll("<", "<").replaceAll(">", ">");
|
|
1477
1477
|
}
|
|
1478
|
-
function x(
|
|
1479
|
-
|
|
1478
|
+
function x(M) {
|
|
1479
|
+
u.value = !1, M && U("@");
|
|
1480
1480
|
}
|
|
1481
1481
|
function A() {
|
|
1482
|
-
i.value = "",
|
|
1482
|
+
i.value = "", u.value = !0, setTimeout(() => {
|
|
1483
1483
|
P(), N.value.focus();
|
|
1484
1484
|
}, 0);
|
|
1485
1485
|
}
|
|
@@ -1487,25 +1487,25 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1487
1487
|
I(), a.value = await ze(n, { clearable: !0, ...ge() }), o.value = !0;
|
|
1488
1488
|
}), ue(
|
|
1489
1489
|
() => n.desc.options,
|
|
1490
|
-
async (
|
|
1491
|
-
if (typeof
|
|
1492
|
-
r.splice(0, r.length, ...l[
|
|
1493
|
-
else if (typeof
|
|
1494
|
-
const
|
|
1495
|
-
lt(
|
|
1490
|
+
async (M) => {
|
|
1491
|
+
if (typeof M == "string")
|
|
1492
|
+
r.splice(0, r.length, ...l[M] || []);
|
|
1493
|
+
else if (typeof M == "function") {
|
|
1494
|
+
const z = M(n.formData || {});
|
|
1495
|
+
lt(z) ? r.splice(0, r.length, ...await z) : r.splice(0, r.length, ...z);
|
|
1496
1496
|
} else
|
|
1497
|
-
Array.isArray(
|
|
1497
|
+
Array.isArray(M) ? M && r && !nt(M, r) && r.splice(0, r.length, ...M) : r.splice(0, r.length);
|
|
1498
1498
|
},
|
|
1499
1499
|
{ immediate: !0 }
|
|
1500
1500
|
), ue(
|
|
1501
1501
|
() => n.modelValue,
|
|
1502
|
-
(
|
|
1503
|
-
p.value = (
|
|
1502
|
+
(M) => {
|
|
1503
|
+
p.value = (M == null ? void 0 : M.value) || "=", c.value && (c.value.innerHTML = (M == null ? void 0 : M.domStr) || "=");
|
|
1504
1504
|
},
|
|
1505
1505
|
{ immediate: !0 }
|
|
1506
1506
|
), vn(() => {
|
|
1507
1507
|
I();
|
|
1508
|
-
}), (
|
|
1508
|
+
}), (M, z) => {
|
|
1509
1509
|
const v = O("el-button"), F = O("el-input"), le = O("el-dialog");
|
|
1510
1510
|
return d(), w("div", Fs, [
|
|
1511
1511
|
oe("div", Rs, [
|
|
@@ -1532,8 +1532,8 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1532
1532
|
draggable: "",
|
|
1533
1533
|
closeOnClickModal: !1,
|
|
1534
1534
|
showCancel: "",
|
|
1535
|
-
modelValue:
|
|
1536
|
-
"onUpdate:modelValue":
|
|
1535
|
+
modelValue: f.value,
|
|
1536
|
+
"onUpdate:modelValue": z[3] || (z[3] = ($) => f.value = $),
|
|
1537
1537
|
"append-to-body": "",
|
|
1538
1538
|
"destroy-on-close": ""
|
|
1539
1539
|
}, {
|
|
@@ -1543,15 +1543,15 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1543
1543
|
type: "primary",
|
|
1544
1544
|
onClick: S
|
|
1545
1545
|
}, {
|
|
1546
|
-
default: _(() => [...
|
|
1546
|
+
default: _(() => [...z[4] || (z[4] = [
|
|
1547
1547
|
pe("确定", -1)
|
|
1548
1548
|
])]),
|
|
1549
1549
|
_: 1
|
|
1550
1550
|
}),
|
|
1551
1551
|
Z(v, {
|
|
1552
|
-
onClick:
|
|
1552
|
+
onClick: z[2] || (z[2] = ($) => f.value = !1)
|
|
1553
1553
|
}, {
|
|
1554
|
-
default: _(() => [...
|
|
1554
|
+
default: _(() => [...z[5] || (z[5] = [
|
|
1555
1555
|
pe("取消", -1)
|
|
1556
1556
|
])]),
|
|
1557
1557
|
_: 1
|
|
@@ -1575,16 +1575,16 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1575
1575
|
onKeydown: _t(Q, ["stop"]),
|
|
1576
1576
|
onKeyup: _t(b, ["stop"])
|
|
1577
1577
|
}), null, 16, Ks),
|
|
1578
|
-
|
|
1578
|
+
u.value ? (d(), w("div", {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
class: "formula-input-selection",
|
|
1581
1581
|
ref: "selection",
|
|
1582
|
-
onClick:
|
|
1582
|
+
onClick: z[1] || (z[1] = _t(() => {
|
|
1583
1583
|
}, ["stop"]))
|
|
1584
1584
|
}, [
|
|
1585
1585
|
Z(F, {
|
|
1586
1586
|
modelValue: i.value,
|
|
1587
|
-
"onUpdate:modelValue":
|
|
1587
|
+
"onUpdate:modelValue": z[0] || (z[0] = (K) => i.value = K),
|
|
1588
1588
|
ref_key: "inputRef",
|
|
1589
1589
|
ref: N,
|
|
1590
1590
|
placeholder: "输入关键字筛选"
|
|
@@ -1624,9 +1624,9 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1624
1624
|
me(async () => {
|
|
1625
1625
|
l.value = await ze(t, { isShowPreview: !0, previewTeleported: !0, showOne: !1, ...ge() });
|
|
1626
1626
|
});
|
|
1627
|
-
const
|
|
1628
|
-
let a = "", o = "",
|
|
1629
|
-
switch (
|
|
1627
|
+
const s = ne(() => t.modelValue ? Array.isArray(t.modelValue) ? typeof t.modelValue[0] == "string" ? t.modelValue : t.modelValue.map((a) => a.signUrl || a.shareUrl || a.furl) : typeof t.modelValue == "string" ? t.modelValue.split(",") : [] : []), r = ne(() => {
|
|
1628
|
+
let a = "", o = "", f = t.desc.size || "default";
|
|
1629
|
+
switch (f) {
|
|
1630
1630
|
case "large":
|
|
1631
1631
|
a = "44px", o = "44px";
|
|
1632
1632
|
break;
|
|
@@ -1637,22 +1637,22 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1637
1637
|
a = "28px", o = "28px";
|
|
1638
1638
|
break;
|
|
1639
1639
|
default:
|
|
1640
|
-
a = parseInt(
|
|
1640
|
+
a = parseInt(f) + "px", o = parseInt(f) + "px";
|
|
1641
1641
|
break;
|
|
1642
1642
|
}
|
|
1643
1643
|
return Object.assign({}, t.desc.style, { width: a, height: o, "max-width": a });
|
|
1644
1644
|
});
|
|
1645
1645
|
return (a, o) => {
|
|
1646
|
-
const
|
|
1646
|
+
const f = O("el-image");
|
|
1647
1647
|
return d(), w("div", Xs, [
|
|
1648
|
-
|
|
1649
|
-
key:
|
|
1648
|
+
s.value && s.value.length > 0 ? (d(!0), w(se, { key: 0 }, fe(s.value, (u, i) => (d(), w(se, {
|
|
1649
|
+
key: u + i
|
|
1650
1650
|
}, [
|
|
1651
|
-
!l.value.showOne || l.value.showOne && i === 0 ? (d(), k(
|
|
1651
|
+
!l.value.showOne || l.value.showOne && i === 0 ? (d(), k(f, ee({
|
|
1652
1652
|
key: 0,
|
|
1653
1653
|
class: e.desc.class,
|
|
1654
|
-
src:
|
|
1655
|
-
"preview-src-list": l.value.isShowPreview === !1 ? null :
|
|
1654
|
+
src: u,
|
|
1655
|
+
"preview-src-list": l.value.isShowPreview === !1 ? null : s.value,
|
|
1656
1656
|
"initial-index": i
|
|
1657
1657
|
}, { ref_for: !0 }, l.value, { style: r.value }, ye(n.value), {
|
|
1658
1658
|
fit: l.value.fit || "cover"
|
|
@@ -1680,29 +1680,29 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1680
1680
|
},
|
|
1681
1681
|
emits: ["update:modelValue", "validateThis"],
|
|
1682
1682
|
setup(e, { emit: t }) {
|
|
1683
|
-
const l = de("defaultConf"), n = e,
|
|
1683
|
+
const l = de("defaultConf"), n = e, s = t, r = j(Object.assign({}, Ge(), n.desc.slots)), a = j({}), o = j(!1), f = j(we(n)), u = Ye(n, "modelValue", s);
|
|
1684
1684
|
return me(async () => {
|
|
1685
1685
|
var i, c;
|
|
1686
1686
|
a.value = await ze(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, clearable: !0, ...ge() }), o.value = !0;
|
|
1687
1687
|
}), ue(
|
|
1688
1688
|
() => n.modelValue,
|
|
1689
1689
|
(i) => {
|
|
1690
|
-
i && `${i}`.length > a.value.maxlength && (i = `${i}`.substring(0, a.value.maxlength)),
|
|
1690
|
+
i && `${i}`.length > a.value.maxlength && (i = `${i}`.substring(0, a.value.maxlength)), u.value = i;
|
|
1691
1691
|
},
|
|
1692
1692
|
{ immediate: !0 }
|
|
1693
1693
|
), ue(
|
|
1694
|
-
() =>
|
|
1694
|
+
() => u.value,
|
|
1695
1695
|
() => {
|
|
1696
|
-
|
|
1696
|
+
s("validateThis");
|
|
1697
1697
|
}
|
|
1698
1698
|
), (i, c) => {
|
|
1699
1699
|
const N = O("el-input");
|
|
1700
1700
|
return o.value ? (d(), k(N, ee({
|
|
1701
1701
|
key: 0,
|
|
1702
1702
|
style: { display: "flex" }
|
|
1703
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
1704
|
-
modelValue: te(
|
|
1705
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(
|
|
1703
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
1704
|
+
modelValue: te(u),
|
|
1705
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(u) ? u.value = p : null)
|
|
1706
1706
|
}), at({ _: 2 }, [
|
|
1707
1707
|
fe(r.value, (p, m, G) => ({
|
|
1708
1708
|
name: m,
|
|
@@ -1737,7 +1737,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1737
1737
|
emits: ["update:modelValue", "change", "input", "validateThis"],
|
|
1738
1738
|
setup(e, { emit: t }) {
|
|
1739
1739
|
var x;
|
|
1740
|
-
const l = de("lodash"), n = e,
|
|
1740
|
+
const l = de("lodash"), n = e, s = j(((x = n.desc) == null ? void 0 : x.on) || {}), r = t, a = Ye(n, "modelValue", r), o = j(), f = ke([]), u = ke([]), i = j([]), c = ke({
|
|
1741
1741
|
multiple: !0,
|
|
1742
1742
|
size: n.desc.size,
|
|
1743
1743
|
collapseTags: !0,
|
|
@@ -1747,57 +1747,57 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1747
1747
|
placeholder: n.desc.placeholder || "请选择" + n.desc._label
|
|
1748
1748
|
}), N = j(!1), p = j({}), m = ne(() => n.desc.vkey || "id"), G = j(!1), B = j(), Y = ke([]), U = ke([]);
|
|
1749
1749
|
function Q(A) {
|
|
1750
|
-
A && (o.value.blur(), N.value = !0, i.value = l.cloneDeep(Y.map((
|
|
1750
|
+
A && (o.value.blur(), N.value = !0, i.value = l.cloneDeep(Y.map((M) => M.dataItem)), U.splice(0, U.length, ...Y));
|
|
1751
1751
|
}
|
|
1752
1752
|
function b() {
|
|
1753
|
-
Y.splice(0, Y.length),
|
|
1753
|
+
Y.splice(0, Y.length), D();
|
|
1754
1754
|
}
|
|
1755
1755
|
function L(A) {
|
|
1756
|
-
Y.splice(0, Y.length), A.map((
|
|
1757
|
-
Y.push({ label:
|
|
1756
|
+
Y.splice(0, Y.length), A.map((M) => {
|
|
1757
|
+
Y.push({ label: M[n.desc.lkey || "name"], value: M[m.value], dataItem: M });
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
function P({ row: A }) {
|
|
1761
|
-
Y.splice(0, Y.length), Y.push({ label: A[n.desc.lkey || "name"], value: A[m.value], dataItem: A }),
|
|
1761
|
+
Y.splice(0, Y.length), Y.push({ label: A[n.desc.lkey || "name"], value: A[m.value], dataItem: A }), D();
|
|
1762
1762
|
}
|
|
1763
1763
|
function I(A) {
|
|
1764
1764
|
Y.splice(
|
|
1765
|
-
Y.findIndex((
|
|
1765
|
+
Y.findIndex((M) => M.value === A.value),
|
|
1766
1766
|
1
|
|
1767
1767
|
), B.value.changeSelect([{ [m.value]: A.value }]);
|
|
1768
1768
|
}
|
|
1769
1769
|
function S() {
|
|
1770
1770
|
N.value = !1, Y.splice(0, Y.length, ...U);
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
|
|
1774
|
-
const A = [],
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
}), a.value = Y.length > 0 ? [A,
|
|
1772
|
+
function D() {
|
|
1773
|
+
u.splice(0, u.length, ...Y);
|
|
1774
|
+
const A = [], M = [];
|
|
1775
|
+
f.splice(0, f.length), Y.map((z) => {
|
|
1776
|
+
f.push(z.value), A.push(z.value), M.push(z.label);
|
|
1777
|
+
}), a.value = Y.length > 0 ? [A, M] : [], s.value.change && s.value.change(l.cloneDeep(Y)), N.value = !1, r("validateThis");
|
|
1778
1778
|
}
|
|
1779
1779
|
return ue(
|
|
1780
1780
|
() => n.desc.tableConfig,
|
|
1781
1781
|
(A) => {
|
|
1782
|
-
let
|
|
1783
|
-
A && (
|
|
1782
|
+
let M = {};
|
|
1783
|
+
A && (M = l.cloneDeep(A), typeof n.desc.multiple == "function" ? G.value = n.desc.multiple(n.formData || {}) : G.value = n.desc.multiple, G.value || !G.value && M.column && M.column[M.column.length - 1].label !== "操作" && M.column.push({ label: "操作", width: "120px", fixed: "right", type: "btns", btns: [{ label: "选中", on: { click: P } }] }), M.maxHeight = 400), p.value = M;
|
|
1784
1784
|
},
|
|
1785
1785
|
{ deep: !0, immediate: !0 }
|
|
1786
1786
|
), ue(
|
|
1787
1787
|
() => n.modelValue,
|
|
1788
1788
|
() => {
|
|
1789
|
-
if (Y.splice(0, Y.length),
|
|
1790
|
-
const [A,
|
|
1791
|
-
A.length > 0 && A.length ===
|
|
1792
|
-
Y.push({ label:
|
|
1789
|
+
if (Y.splice(0, Y.length), f.splice(0, f.length), n.modelValue && Array.isArray(n.modelValue) && Array.isArray(n.modelValue[0])) {
|
|
1790
|
+
const [A, M] = n.modelValue || [[], []];
|
|
1791
|
+
A.length > 0 && A.length === M.length && A.map((z, v) => {
|
|
1792
|
+
Y.push({ label: M[v], value: z, dataItem: { [n.desc.lkey]: M[v], [m.value]: z } }), f.push(z);
|
|
1793
1793
|
});
|
|
1794
1794
|
}
|
|
1795
|
-
|
|
1795
|
+
u.splice(0, u.length, ...Y);
|
|
1796
1796
|
},
|
|
1797
1797
|
{ deep: !0, immediate: !0 }
|
|
1798
1798
|
), rt(async () => {
|
|
1799
|
-
}), (A,
|
|
1800
|
-
const
|
|
1799
|
+
}), (A, M) => {
|
|
1800
|
+
const z = O("el-option"), v = O("el-select"), F = O("ElPlusTable"), le = O("el-tag"), $ = O("el-scrollbar"), K = O("el-button"), g = O("el-dialog");
|
|
1801
1801
|
return d(), w("div", ou, [
|
|
1802
1802
|
Z(v, ee({
|
|
1803
1803
|
ref_key: "selectRef",
|
|
@@ -1808,12 +1808,12 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1808
1808
|
disabled: e.disabled || e.desc.disabled,
|
|
1809
1809
|
teleported: !1,
|
|
1810
1810
|
loading: e.loading,
|
|
1811
|
-
modelValue:
|
|
1811
|
+
modelValue: f,
|
|
1812
1812
|
onVisibleChange: Q,
|
|
1813
1813
|
onClear: b
|
|
1814
|
-
}, ye(
|
|
1814
|
+
}, ye(s.value)), {
|
|
1815
1815
|
default: _(() => [
|
|
1816
|
-
(d(!0), w(se, null, fe(
|
|
1816
|
+
(d(!0), w(se, null, fe(u, (y) => (d(), k(z, ee({
|
|
1817
1817
|
key: y.value
|
|
1818
1818
|
}, { ref_for: !0 }, y), null, 16))), 128))
|
|
1819
1819
|
]),
|
|
@@ -1826,7 +1826,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1826
1826
|
closeOnClickModal: !1,
|
|
1827
1827
|
showCancel: "",
|
|
1828
1828
|
modelValue: N.value,
|
|
1829
|
-
"onUpdate:modelValue":
|
|
1829
|
+
"onUpdate:modelValue": M[0] || (M[0] = (y) => N.value = y),
|
|
1830
1830
|
"append-to-body": "",
|
|
1831
1831
|
"destroy-on-close": ""
|
|
1832
1832
|
}, {
|
|
@@ -1846,7 +1846,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1846
1846
|
}, null, 8, ["selectList", "tableConfig", "type", "rowKey"])) : R("", !0)
|
|
1847
1847
|
]),
|
|
1848
1848
|
G.value ? (d(), w("div", iu, [
|
|
1849
|
-
|
|
1849
|
+
M[3] || (M[3] = oe("div", { class: "right-title" }, "已选中项:", -1)),
|
|
1850
1850
|
Z($, {
|
|
1851
1851
|
height: "480px",
|
|
1852
1852
|
class: "tag-list"
|
|
@@ -1869,16 +1869,16 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1869
1869
|
}),
|
|
1870
1870
|
oe("div", ru, [
|
|
1871
1871
|
Z(K, { onClick: S }, {
|
|
1872
|
-
default: _(() => [...
|
|
1872
|
+
default: _(() => [...M[1] || (M[1] = [
|
|
1873
1873
|
pe("取消", -1)
|
|
1874
1874
|
])]),
|
|
1875
1875
|
_: 1
|
|
1876
1876
|
}),
|
|
1877
1877
|
Z(K, {
|
|
1878
1878
|
type: "primary",
|
|
1879
|
-
onClick:
|
|
1879
|
+
onClick: D
|
|
1880
1880
|
}, {
|
|
1881
|
-
default: _(() => [...
|
|
1881
|
+
default: _(() => [...M[2] || (M[2] = [
|
|
1882
1882
|
pe("确定", -1)
|
|
1883
1883
|
])]),
|
|
1884
1884
|
_: 1
|
|
@@ -1914,7 +1914,7 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
1914
1914
|
emits: ["update:modelValue", "change", "input", "validateThis", "close"],
|
|
1915
1915
|
setup(e, { emit: t }) {
|
|
1916
1916
|
var xe, Je, pt, wt, tl, bt;
|
|
1917
|
-
const l = de("lodash"), n = de("globalData"),
|
|
1917
|
+
const l = de("lodash"), n = de("globalData"), s = de("defaultConf"), r = e, a = j(z(r)), o = t, f = Ye(r, "modelValue", o), u = j(), i = ke([]), c = ke([]), N = ke({
|
|
1918
1918
|
multiple: !0,
|
|
1919
1919
|
size: r.desc.size,
|
|
1920
1920
|
collapseTags: !1,
|
|
@@ -1924,11 +1924,11 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
1924
1924
|
async function I(q) {
|
|
1925
1925
|
G.splice(0, G.length, ...await $(q));
|
|
1926
1926
|
}
|
|
1927
|
-
const S = j([]),
|
|
1927
|
+
const S = j([]), D = j([]), x = j([]), A = j(), M = ne(() => {
|
|
1928
1928
|
var ce, _e;
|
|
1929
1929
|
const q = [];
|
|
1930
1930
|
let X = [];
|
|
1931
|
-
return P.value.length ? X = P.value : X = l.cloneDeep(n[((_e = (ce =
|
|
1931
|
+
return P.value.length ? X = P.value : X = l.cloneDeep(n[((_e = (ce = s.form) == null ? void 0 : ce.linkUser) == null ? void 0 : _e.deptListKey) || ""]), S.value && S.value.length > 0 && S.value.map((be) => {
|
|
1932
1932
|
X = X[be].children || [];
|
|
1933
1933
|
}), X.map((be) => q.push({ type: 2, label: be[U.value], value: be[Y.value] })), x.value.map((be) => q.push({ type: 1, label: be[b.value], value: be[Q.value] })), Ae(() => {
|
|
1934
1934
|
setTimeout(() => {
|
|
@@ -1942,7 +1942,7 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
1942
1942
|
}, 10);
|
|
1943
1943
|
}), q;
|
|
1944
1944
|
});
|
|
1945
|
-
function
|
|
1945
|
+
function z(q) {
|
|
1946
1946
|
var ce;
|
|
1947
1947
|
const X = {};
|
|
1948
1948
|
return (ce = q.desc) != null && ce.on && Object.keys(q.desc.on).map((_e) => {
|
|
@@ -1954,10 +1954,10 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
1954
1954
|
}), X;
|
|
1955
1955
|
}
|
|
1956
1956
|
function v(q) {
|
|
1957
|
-
q && (
|
|
1957
|
+
q && (u.value.blur(), p.value = !0);
|
|
1958
1958
|
}
|
|
1959
1959
|
function F() {
|
|
1960
|
-
m.splice(0, m.length),
|
|
1960
|
+
m.splice(0, m.length), M.value.map((q) => {
|
|
1961
1961
|
var X;
|
|
1962
1962
|
(X = A.value) == null || X.toggleRowSelection(
|
|
1963
1963
|
q,
|
|
@@ -1970,15 +1970,15 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
1970
1970
|
}
|
|
1971
1971
|
async function $(q) {
|
|
1972
1972
|
var X, ce, _e;
|
|
1973
|
-
return q.length > 0 ? (_e = (await ((ce = (X =
|
|
1973
|
+
return q.length > 0 ? (_e = (await ((ce = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ce.getUserList({ nickname: q, current: 1, size: 10, enabled: 1 }))).records) == null ? void 0 : _e.map((be) => ({ value: be[Q.value], label: be[b.value] })) : [];
|
|
1974
1974
|
}
|
|
1975
1975
|
async function K(q, X) {
|
|
1976
1976
|
var ce, _e;
|
|
1977
|
-
x.value = (await ((_e = (ce =
|
|
1977
|
+
x.value = (await ((_e = (ce = s.form) == null ? void 0 : ce.linkUser) == null ? void 0 : _e.getUserList({ [L.value]: q.value, size: 999 }))).records, S.value.push(X), D.value.push(q);
|
|
1978
1978
|
}
|
|
1979
1979
|
async function g(q) {
|
|
1980
1980
|
var X, ce;
|
|
1981
|
-
x.value = q >= 0 ? (await ((ce = (X =
|
|
1981
|
+
x.value = q >= 0 ? (await ((ce = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ce.getUserList({ [L.value]: D.value[q].value, size: 999 }))).records : [], S.value.splice(q + 1), D.value.splice(q + 1);
|
|
1982
1982
|
}
|
|
1983
1983
|
function y(q) {
|
|
1984
1984
|
return r.desc.onlyUser ? q.type === 1 : !0;
|
|
@@ -1988,13 +1988,13 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
1988
1988
|
}
|
|
1989
1989
|
function h(q) {
|
|
1990
1990
|
const X = !(q && q.length > 0);
|
|
1991
|
-
|
|
1991
|
+
M.value.map((ce) => {
|
|
1992
1992
|
(!r.desc.onlyUser || r.desc.onlyUser && ce.type === 1) && Ne(ce, X);
|
|
1993
1993
|
});
|
|
1994
1994
|
}
|
|
1995
1995
|
function ae(q) {
|
|
1996
1996
|
var X;
|
|
1997
|
-
|
|
1997
|
+
M.value.some((ce) => ce.value === q.value) && ((X = A.value) == null || X.toggleRowSelection(q, !1)), Ne(q, !0);
|
|
1998
1998
|
}
|
|
1999
1999
|
function Ne(q, X = !1) {
|
|
2000
2000
|
const ce = m.findIndex((_e) => _e.value === q.value);
|
|
@@ -2011,7 +2011,7 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
2011
2011
|
const q = [], X = [], ce = [], _e = [];
|
|
2012
2012
|
i.splice(0, i.length), m.map((be) => {
|
|
2013
2013
|
i.push(be.value), be.type === 1 ? (q.push(be.value), ce.push(be.label)) : (X.push(be.value), _e.push(be.label));
|
|
2014
|
-
}), p.value = !1,
|
|
2014
|
+
}), p.value = !1, f.value = m.length > 0 ? [q, X, ce, _e] : [], a.value.change && a.value.change(r.formData || {}, null, f.value), o("validateThis");
|
|
2015
2015
|
}
|
|
2016
2016
|
function T() {
|
|
2017
2017
|
const q = [];
|
|
@@ -2056,7 +2056,7 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
2056
2056
|
return d(), w("div", fu, [
|
|
2057
2057
|
Z(_e, ee({
|
|
2058
2058
|
ref_key: "selectRef",
|
|
2059
|
-
ref:
|
|
2059
|
+
ref: u,
|
|
2060
2060
|
style: [{ width: "100%" }, e.desc.style],
|
|
2061
2061
|
class: e.desc.class
|
|
2062
2062
|
}, N, {
|
|
@@ -2112,7 +2112,7 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
2112
2112
|
])]),
|
|
2113
2113
|
_: 1
|
|
2114
2114
|
}),
|
|
2115
|
-
(d(!0), w(se, null, fe(
|
|
2115
|
+
(d(!0), w(se, null, fe(D.value, (Oe, yt) => (d(), k(ot, {
|
|
2116
2116
|
key: yt,
|
|
2117
2117
|
onClick: (E) => g(yt)
|
|
2118
2118
|
}, {
|
|
@@ -2128,7 +2128,7 @@ const Fn = /* @__PURE__ */ Te(du, [["__scopeId", "data-v-6f6170df"]]), Mu = /* @
|
|
|
2128
2128
|
Z(ll, {
|
|
2129
2129
|
ref_key: "multipleTableRef",
|
|
2130
2130
|
ref: A,
|
|
2131
|
-
data:
|
|
2131
|
+
data: M.value,
|
|
2132
2132
|
style: { width: "100%", height: "500px" },
|
|
2133
2133
|
"max-height": "500px",
|
|
2134
2134
|
onSelect: V,
|
|
@@ -2253,10 +2253,10 @@ const Rn = /* @__PURE__ */ Te(Du, [["__scopeId", "data-v-9fd9ec0a"]]), vu = /* @
|
|
|
2253
2253
|
},
|
|
2254
2254
|
emits: ["update:modelValue"],
|
|
2255
2255
|
setup(e, { emit: t }) {
|
|
2256
|
-
const l = e,
|
|
2256
|
+
const l = e, s = Ye(l, "modelValue", t), r = j(Object.assign({}, Ge(), l.desc.slots)), a = j({}), o = j(!1), f = j(we(l));
|
|
2257
2257
|
return me(async () => {
|
|
2258
2258
|
a.value = await ze(l, { ...ge() }), o.value = !0;
|
|
2259
|
-
}), (
|
|
2259
|
+
}), (u, i) => {
|
|
2260
2260
|
const c = O("el-input");
|
|
2261
2261
|
return o.value ? (d(), k(c, ee({
|
|
2262
2262
|
key: 0,
|
|
@@ -2264,15 +2264,15 @@ const Rn = /* @__PURE__ */ Te(Du, [["__scopeId", "data-v-9fd9ec0a"]]), vu = /* @
|
|
|
2264
2264
|
style: e.desc.style,
|
|
2265
2265
|
clearable: a.value.clearable ?? !0,
|
|
2266
2266
|
type: "number"
|
|
2267
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
2268
|
-
modelValue: te(
|
|
2269
|
-
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(
|
|
2267
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
2268
|
+
modelValue: te(s),
|
|
2269
|
+
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(s) ? s.value = N : null),
|
|
2270
2270
|
onkeypress: "return( /[-\\d\\.]/.test(String.fromCharCode(event.keyCode)))"
|
|
2271
2271
|
}), at({ _: 2 }, [
|
|
2272
2272
|
fe(r.value, (N, p, m) => ({
|
|
2273
2273
|
name: p,
|
|
2274
2274
|
fn: _(() => [
|
|
2275
|
-
De(
|
|
2275
|
+
De(u.$slots, p)
|
|
2276
2276
|
])
|
|
2277
2277
|
})),
|
|
2278
2278
|
e.desc.rtext ? {
|
|
@@ -2304,7 +2304,7 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2304
2304
|
},
|
|
2305
2305
|
emits: ["update:modelValue", "validateThis"],
|
|
2306
2306
|
setup(e, { emit: t }) {
|
|
2307
|
-
const l = de("defaultConf"), n = e,
|
|
2307
|
+
const l = de("defaultConf"), n = e, s = t, r = Ye(n, "modelValue", s);
|
|
2308
2308
|
ue(
|
|
2309
2309
|
() => n.modelValue,
|
|
2310
2310
|
(Y) => {
|
|
@@ -2316,38 +2316,38 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2316
2316
|
},
|
|
2317
2317
|
{ immediate: !0 }
|
|
2318
2318
|
);
|
|
2319
|
-
const a = j({}), o = j(!1),
|
|
2319
|
+
const a = j({}), o = j(!1), f = j(we(n)), u = j(!1), i = j(!1);
|
|
2320
2320
|
me(async () => {
|
|
2321
2321
|
var Y, U;
|
|
2322
2322
|
a.value = await ze(n, { ...(U = (Y = l.form) == null ? void 0 : Y.leng) == null ? void 0 : U.nbinput, ...ge() }), delete a.value.min, delete a.value.max, o.value = !0;
|
|
2323
2323
|
});
|
|
2324
2324
|
function c() {
|
|
2325
|
-
|
|
2325
|
+
u.value = !1;
|
|
2326
2326
|
}
|
|
2327
2327
|
function N() {
|
|
2328
|
-
|
|
2328
|
+
u.value || (r.value !== 0 && !r.value ? Ae(() => {
|
|
2329
2329
|
r.value = 0, Ae(() => {
|
|
2330
2330
|
r.value = null, m && m();
|
|
2331
2331
|
});
|
|
2332
2332
|
}) : G(r.value, 0)), Ae(() => {
|
|
2333
|
-
|
|
2333
|
+
s("validateThis");
|
|
2334
2334
|
});
|
|
2335
2335
|
}
|
|
2336
2336
|
const p = ne(() => {
|
|
2337
|
-
var x, A,
|
|
2338
|
-
let { min: Y = 0, max: U = 999999999, precision: Q = 0, controlsPosition: b = "right" } = ((A = (x = l.form) == null ? void 0 : x.leng) == null ? void 0 : A.nbinput) || {}, L = ((
|
|
2339
|
-
(
|
|
2340
|
-
const { min: P, max: I, precision: S, controlsPosition:
|
|
2341
|
-
return P != null && P !== "" && (Y = P), I != null && I !== "" && (U = I), S != null && S !== "" && (Q = S),
|
|
2337
|
+
var x, A, M, z;
|
|
2338
|
+
let { min: Y = 0, max: U = 999999999, precision: Q = 0, controlsPosition: b = "right" } = ((A = (x = l.form) == null ? void 0 : x.leng) == null ? void 0 : A.nbinput) || {}, L = ((M = n.desc) == null ? void 0 : M.attrs) || n.desc;
|
|
2339
|
+
(z = n.desc) != null && z.attrs && typeof n.desc.attrs == "function" && (L = n.desc.attrs(n.formData || {}));
|
|
2340
|
+
const { min: P, max: I, precision: S, controlsPosition: D } = L || {};
|
|
2341
|
+
return P != null && P !== "" && (Y = P), I != null && I !== "" && (U = I), S != null && S !== "" && (Q = S), D != null && D !== "" && (b = D), Y > U ? Y = U : U < Y && (U = Y), { min: Y, max: U, precision: Q, controlsPosition: b };
|
|
2342
2342
|
});
|
|
2343
2343
|
r.value !== void 0 && r.value !== null && (+r.value < p.value.min ? r.value = p.value.min : +r.value > p.value.max && (r.value = p.value.max));
|
|
2344
|
-
const m =
|
|
2345
|
-
m ?
|
|
2344
|
+
const m = f.value.change;
|
|
2345
|
+
m ? f.value.change = (Y, U) => {
|
|
2346
2346
|
G(Y, U);
|
|
2347
|
-
} :
|
|
2347
|
+
} : f.value.change = G;
|
|
2348
2348
|
function G(Y, U) {
|
|
2349
2349
|
var Q, b;
|
|
2350
|
-
|
|
2350
|
+
u.value = !0, Y !== U && (Y < p.value.min ? (tt.warning(`${((Q = n.desc) == null ? void 0 : Q._label) || ""}最少不能低于${p.value.min}`), Ae(() => {
|
|
2351
2351
|
r.value = p.value.min, m && m();
|
|
2352
2352
|
})) : Y > p.value.max ? (tt.warning(`${((b = n.desc) == null ? void 0 : b._label) || ""}最多不能大于${p.value.max}`), Ae(() => {
|
|
2353
2353
|
r.value = p.value.max, m && m();
|
|
@@ -2362,7 +2362,7 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2362
2362
|
return o.value ? (d(), k(Q, ee({
|
|
2363
2363
|
key: 0,
|
|
2364
2364
|
class: ["ElPlusFormNumber-panel", { "show-error": i.value }]
|
|
2365
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
2365
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
2366
2366
|
modelValue: te(r),
|
|
2367
2367
|
"onUpdate:modelValue": U[0] || (U[0] = (b) => Ce(r) ? r.value = b : null),
|
|
2368
2368
|
onFocus: c,
|
|
@@ -2389,17 +2389,17 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2389
2389
|
},
|
|
2390
2390
|
emits: ["update:modelValue"],
|
|
2391
2391
|
setup(e, { emit: t }) {
|
|
2392
|
-
const l = de("defaultConf"), n = e, r = Ye(n, "modelValue", t), a = j(Object.assign({}, Ge(), n.desc.slots)), o = j({}),
|
|
2392
|
+
const l = de("defaultConf"), n = e, r = Ye(n, "modelValue", t), a = j(Object.assign({}, Ge(), n.desc.slots)), o = j({}), f = j(!1), u = j(we(n));
|
|
2393
2393
|
return me(async () => {
|
|
2394
2394
|
var i, c;
|
|
2395
|
-
o.value = await ze(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, ...ge() }),
|
|
2395
|
+
o.value = await ze(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, ...ge() }), f.value = !0;
|
|
2396
2396
|
}), (i, c) => {
|
|
2397
2397
|
const N = O("el-input");
|
|
2398
|
-
return
|
|
2398
|
+
return f.value ? (d(), k(N, ee({
|
|
2399
2399
|
key: 0,
|
|
2400
2400
|
class: e.desc.class,
|
|
2401
2401
|
"show-password": !0
|
|
2402
|
-
}, o.value, { disabled: e.disabled }, ye(
|
|
2402
|
+
}, o.value, { disabled: e.disabled }, ye(u.value), {
|
|
2403
2403
|
modelValue: te(r),
|
|
2404
2404
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(r) ? r.value = p : null)
|
|
2405
2405
|
}), at({ _: 2 }, [
|
|
@@ -2428,20 +2428,20 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2428
2428
|
},
|
|
2429
2429
|
emits: ["update:modelValue", "change", "input", "validateThis"],
|
|
2430
2430
|
setup(e, { expose: t, emit: l }) {
|
|
2431
|
-
const n = e,
|
|
2431
|
+
const n = e, s = l, r = j(Object.assign({}, Ge(), n.desc.slots)), a = j({}), o = j(we(n)), f = j(!1), u = j(), i = Ye(n, "modelValue", s);
|
|
2432
2432
|
me(async () => {
|
|
2433
2433
|
a.value = await ze(n, { autocomplete: "new-password", maxlength: 10, clearable: !0, ...ge() });
|
|
2434
2434
|
});
|
|
2435
2435
|
function c() {
|
|
2436
|
-
|
|
2436
|
+
f.value = !1;
|
|
2437
2437
|
}
|
|
2438
2438
|
function N() {
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2439
|
+
f.value || (u.value !== 0 && !u.value ? Ae(() => {
|
|
2440
|
+
u.value = 0, u.value === 0 && Ae(() => {
|
|
2441
|
+
u.value = null, i.value = null, s("change", i.value);
|
|
2442
2442
|
});
|
|
2443
|
-
}) : m(
|
|
2444
|
-
|
|
2443
|
+
}) : m(u.value, 0)), Ae(() => {
|
|
2444
|
+
s("validateThis");
|
|
2445
2445
|
});
|
|
2446
2446
|
}
|
|
2447
2447
|
const p = ne(() => {
|
|
@@ -2453,14 +2453,14 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2453
2453
|
});
|
|
2454
2454
|
function m(B, Y) {
|
|
2455
2455
|
var U, Q;
|
|
2456
|
-
|
|
2457
|
-
|
|
2456
|
+
f.value = !0, B !== Y && (B < p.value.min ? (tt.warning(`${((U = n.desc) == null ? void 0 : U._label) || ""}最少不能低于${p.value.min}`), Ae(() => {
|
|
2457
|
+
u.value = p.value.min, i.value = +(u.value / 100).toFixed(p.value.precision), s("change", i.value);
|
|
2458
2458
|
})) : B > p.value.max ? (tt.warning(`${((Q = n.desc) == null ? void 0 : Q._label) || ""}最多不能大于${p.value.max}`), Ae(() => {
|
|
2459
|
-
|
|
2460
|
-
})) : (B.indexOf(".") > 0 && B.length - B.indexOf(".") > p.value.precision - 2 ?
|
|
2459
|
+
u.value = p.value.max, i.value = +(u.value / 100).toFixed(p.value.precision), s("change", i.value);
|
|
2460
|
+
})) : (B.indexOf(".") > 0 && B.length - B.indexOf(".") > p.value.precision - 2 ? u.value = (+B).toFixed(p.value.precision - 2) : u.value = B, i.value = +(B / 100).toFixed(p.value.precision), s("change", i.value)));
|
|
2461
2461
|
}
|
|
2462
2462
|
function G() {
|
|
2463
|
-
|
|
2463
|
+
u.value = null, i.value = null, f.value = !1;
|
|
2464
2464
|
}
|
|
2465
2465
|
return ue(
|
|
2466
2466
|
() => n.modelValue,
|
|
@@ -2469,7 +2469,7 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2469
2469
|
},
|
|
2470
2470
|
{ immediate: !0 }
|
|
2471
2471
|
), rt(() => {
|
|
2472
|
-
if (
|
|
2472
|
+
if (u.value !== void 0 && u.value !== null && (u.value < p.value.min ? u.value = p.value.min : u.value > p.value.max && (u.value = p.value.max)), o.value.change) {
|
|
2473
2473
|
const B = o.value.change;
|
|
2474
2474
|
o.value.change = (Y, U) => {
|
|
2475
2475
|
m(Y, U), B(Y);
|
|
@@ -2479,8 +2479,8 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2479
2479
|
}), t({ clear: G, field: n.field }), (B, Y) => {
|
|
2480
2480
|
const U = O("el-input");
|
|
2481
2481
|
return d(), k(U, ee({ style: { display: "flex" } }, a.value, { disabled: e.disabled }, ye(o.value), {
|
|
2482
|
-
modelValue:
|
|
2483
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (Q) =>
|
|
2482
|
+
modelValue: u.value,
|
|
2483
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (Q) => u.value = Q),
|
|
2484
2484
|
onFocus: c,
|
|
2485
2485
|
onBlur: N,
|
|
2486
2486
|
onkeypress: "return event.target.value === '' || event.target.value === undefined || event.target.value?.indexOf('.') >= 0 ? /[-\\d]/.test(String.fromCharCode(event.keyCode)): /[-\\d\\.]/.test(String.fromCharCode(event.keyCode))"
|
|
@@ -2516,26 +2516,26 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2516
2516
|
},
|
|
2517
2517
|
emits: ["update:modelValue", "validateThis"],
|
|
2518
2518
|
setup(e, { emit: t }) {
|
|
2519
|
-
const l = de("globalData"), n = de("defaultConf"),
|
|
2519
|
+
const l = de("globalData"), n = de("defaultConf"), s = e, r = t, a = j({}), o = j(!1), f = j(we(s)), u = ke([]), i = Ye(s, "modelValue", r);
|
|
2520
2520
|
me(async () => {
|
|
2521
2521
|
var N, p;
|
|
2522
|
-
a.value = await ze(
|
|
2522
|
+
a.value = await ze(s, { maxlength: (p = (N = n.form) == null ? void 0 : N.leng) == null ? void 0 : p.textare, showWordLimit: !0, rows: 3, ...ge() }), o.value = !0;
|
|
2523
2523
|
});
|
|
2524
2524
|
function c(N) {
|
|
2525
|
-
if (
|
|
2525
|
+
if (s.disabled)
|
|
2526
2526
|
return !1;
|
|
2527
2527
|
i.value = N, r("validateThis");
|
|
2528
2528
|
}
|
|
2529
2529
|
return ue(
|
|
2530
|
-
() =>
|
|
2530
|
+
() => s.modelValue,
|
|
2531
2531
|
(N) => {
|
|
2532
2532
|
N && N.length > a.value.maxlength && (N = N.substring(0, a.value.maxlength)), i.value = N;
|
|
2533
2533
|
},
|
|
2534
2534
|
{ immediate: !0 }
|
|
2535
2535
|
), ue(
|
|
2536
|
-
() =>
|
|
2536
|
+
() => s.desc.options,
|
|
2537
2537
|
async (N) => {
|
|
2538
|
-
typeof N == "string" ?
|
|
2538
|
+
typeof N == "string" ? u.splice(0, u.length, ...l[N] || []) : typeof N == "function" ? u.splice(0, u.length, ...await N(s.formData || {})) : Array.isArray(N) ? N && u && !nt(N, u) && u.splice(0, u.length, ...N) : u.splice(0, u.length);
|
|
2539
2539
|
},
|
|
2540
2540
|
{ immediate: !0 }
|
|
2541
2541
|
), (N, p) => {
|
|
@@ -2550,9 +2550,9 @@ const Gn = /* @__PURE__ */ Te(bu, [["__scopeId", "data-v-4b0043e2"]]), Au = /* @
|
|
|
2550
2550
|
disabled: e.disabled,
|
|
2551
2551
|
modelValue: te(i),
|
|
2552
2552
|
"onUpdate:modelValue": p[0] || (p[0] = (B) => Ce(i) ? i.value = B : null)
|
|
2553
|
-
}, ye(
|
|
2553
|
+
}, ye(f.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : R("", !0),
|
|
2554
2554
|
oe("div", Lu, [
|
|
2555
|
-
(d(!0), w(se, null, fe(
|
|
2555
|
+
(d(!0), w(se, null, fe(u, (B, Y) => (d(), k(G, {
|
|
2556
2556
|
key: Y,
|
|
2557
2557
|
type: "info",
|
|
2558
2558
|
onClick: (U) => c(B.label)
|
|
@@ -2583,9 +2583,9 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2583
2583
|
},
|
|
2584
2584
|
emits: ["update:modelValue"],
|
|
2585
2585
|
setup(e, { emit: t }) {
|
|
2586
|
-
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = ke([]), o = j(!1),
|
|
2586
|
+
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = ke([]), o = j(!1), f = j({}), u = j(we(n));
|
|
2587
2587
|
return me(async () => {
|
|
2588
|
-
|
|
2588
|
+
f.value = await ze(n, { ...ge() }), delete f.value.label, o.value = !0;
|
|
2589
2589
|
}), ue(
|
|
2590
2590
|
() => n.desc.options,
|
|
2591
2591
|
async (i) => {
|
|
@@ -2597,7 +2597,7 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2597
2597
|
return o.value ? (d(), k(p, ee({
|
|
2598
2598
|
key: 0,
|
|
2599
2599
|
class: "ElPlusFormRadio-panel"
|
|
2600
|
-
},
|
|
2600
|
+
}, f.value, { disabled: e.disabled }, ye(u.value), {
|
|
2601
2601
|
modelValue: te(r),
|
|
2602
2602
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => Ce(r) ? r.value = m : null)
|
|
2603
2603
|
}), {
|
|
@@ -2634,25 +2634,25 @@ const Hn = /* @__PURE__ */ Te(Su, [["__scopeId", "data-v-30e9221e"]]), ku = /* @
|
|
|
2634
2634
|
},
|
|
2635
2635
|
emits: ["update:modelValue", "validateThis"],
|
|
2636
2636
|
setup(e, { emit: t }) {
|
|
2637
|
-
const l = t, n = e,
|
|
2637
|
+
const l = t, n = e, s = Ye(n, "modelValue", l), r = j({}), a = j(we(n));
|
|
2638
2638
|
return me(async () => {
|
|
2639
2639
|
r.value = await ze(n, { ...ge() });
|
|
2640
2640
|
}), ue(
|
|
2641
2641
|
() => n.modelValue,
|
|
2642
2642
|
(o) => {
|
|
2643
|
-
|
|
2643
|
+
s.value = o;
|
|
2644
2644
|
},
|
|
2645
2645
|
{ immediate: !0 }
|
|
2646
2646
|
), ue(
|
|
2647
|
-
() =>
|
|
2647
|
+
() => s.value,
|
|
2648
2648
|
() => {
|
|
2649
2649
|
l("validateThis");
|
|
2650
2650
|
}
|
|
2651
|
-
), (o,
|
|
2652
|
-
const
|
|
2653
|
-
return d(), k(
|
|
2654
|
-
modelValue: te(
|
|
2655
|
-
"onUpdate:modelValue":
|
|
2651
|
+
), (o, f) => {
|
|
2652
|
+
const u = O("el-rate");
|
|
2653
|
+
return d(), k(u, ee({ class: "ElPlusFormRate-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
2654
|
+
modelValue: te(s),
|
|
2655
|
+
"onUpdate:modelValue": f[0] || (f[0] = (i) => Ce(s) ? s.value = i : null)
|
|
2656
2656
|
}), null, 16, ["disabled", "modelValue"]);
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
@@ -2675,7 +2675,7 @@ const qn = /* @__PURE__ */ Te(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2675
2675
|
},
|
|
2676
2676
|
emits: ["update:modelValue"],
|
|
2677
2677
|
setup(e, { expose: t, emit: l }) {
|
|
2678
|
-
const n = de("lodash"),
|
|
2678
|
+
const n = de("lodash"), s = de("defaultConf"), r = de("globalData"), a = e, f = Ye(a, "modelValue", l), u = j({}), i = ke([]), c = j(null), N = { clearable: !0, ...ge() }, p = j(!1), m = j(!1);
|
|
2679
2679
|
a.desc.allowCreate && (N.filterable = !0), a.desc.remote && (N.remote = !0, N.filterable = !0, N.remoteShowSuffix = !0, N.loadingText = "远程查询中...", N.remoteMethod = async (b) => {
|
|
2680
2680
|
b != null && b !== "" && await Y(b);
|
|
2681
2681
|
});
|
|
@@ -2685,15 +2685,15 @@ const qn = /* @__PURE__ */ Te(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2685
2685
|
(P = a.desc) != null && P.on && Object.keys(a.desc.on).map((I) => {
|
|
2686
2686
|
b[I] = () => {
|
|
2687
2687
|
Ae(() => {
|
|
2688
|
-
var
|
|
2689
|
-
const S = (
|
|
2688
|
+
var D;
|
|
2689
|
+
const S = (D = a.desc) != null && D.multiple ? i.filter((x) => Array.isArray(f.value) && f.value.find((A) => x.value === A)) : i.find((x) => x.value === f.value);
|
|
2690
2690
|
a.desc.on[I](a.formData || {}, S, a.rowIndex);
|
|
2691
2691
|
});
|
|
2692
2692
|
};
|
|
2693
2693
|
}), b.clear = Q;
|
|
2694
2694
|
const L = () => {
|
|
2695
|
-
var I, S,
|
|
2696
|
-
m.value = !0, (S = (I = a.desc) == null ? void 0 : I.on) != null && S.focus && typeof ((x = (
|
|
2695
|
+
var I, S, D, x;
|
|
2696
|
+
m.value = !0, (S = (I = a.desc) == null ? void 0 : I.on) != null && S.focus && typeof ((x = (D = a.desc) == null ? void 0 : D.on) == null ? void 0 : x.focus) == "function" && a.desc.on.focus(), c.value = null, a.desc.remote && Y("");
|
|
2697
2697
|
};
|
|
2698
2698
|
return b.focus = L, b;
|
|
2699
2699
|
}), B = ne(() => (b) => a.desc.optionTip(b));
|
|
@@ -2709,7 +2709,7 @@ const qn = /* @__PURE__ */ Te(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2709
2709
|
return;
|
|
2710
2710
|
b.map((P, I) => {
|
|
2711
2711
|
if (P) {
|
|
2712
|
-
const S = i.findIndex((
|
|
2712
|
+
const S = i.findIndex((D) => D.value === P);
|
|
2713
2713
|
S >= 0 && i.splice(S, 1), i.unshift({ value: P, label: L[I], dataItem: n.cloneDeep(a.formData) });
|
|
2714
2714
|
}
|
|
2715
2715
|
});
|
|
@@ -2720,7 +2720,7 @@ const qn = /* @__PURE__ */ Te(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2720
2720
|
m.value = !0, (L = (b = a.desc) == null ? void 0 : b.on) != null && L.clear && typeof ((I = (P = a.desc) == null ? void 0 : P.on) == null ? void 0 : I.clear) == "function" && a.desc.on.clear(), c.value = null, a.desc.remote && i.splice(0, i.length);
|
|
2721
2721
|
}
|
|
2722
2722
|
return me(async () => {
|
|
2723
|
-
N.remote = !!a.desc.remote,
|
|
2723
|
+
N.remote = !!a.desc.remote, u.value = await ze(a, N), u.value.remote = !!a.desc.remote, delete u.value.disabled, delete u.value.options, p.value = !0;
|
|
2724
2724
|
}), ue(
|
|
2725
2725
|
() => a.desc.options,
|
|
2726
2726
|
async (b) => {
|
|
@@ -2734,15 +2734,15 @@ const qn = /* @__PURE__ */ Te(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2734
2734
|
},
|
|
2735
2735
|
{ immediate: !0 }
|
|
2736
2736
|
), ue(
|
|
2737
|
-
() =>
|
|
2737
|
+
() => f.value,
|
|
2738
2738
|
(b) => {
|
|
2739
2739
|
var L, P;
|
|
2740
|
-
|
|
2741
|
-
var S,
|
|
2742
|
-
return typeof I == "string" && I.length > (((
|
|
2743
|
-
}) && (tt.warning("最大长度为: " + (((P = (L =
|
|
2744
|
-
var S,
|
|
2745
|
-
return typeof I != "string" || I.length <= (((
|
|
2740
|
+
u.value.allowCreate && b && Array.isArray(b) && b.some((I) => {
|
|
2741
|
+
var S, D;
|
|
2742
|
+
return typeof I == "string" && I.length > (((D = (S = s.form) == null ? void 0 : S.leng) == null ? void 0 : D.input) || 20);
|
|
2743
|
+
}) && (tt.warning("最大长度为: " + (((P = (L = s.form) == null ? void 0 : L.leng) == null ? void 0 : P.input) || 20)), f.value = b.filter((I) => {
|
|
2744
|
+
var S, D;
|
|
2745
|
+
return typeof I != "string" || I.length <= (((D = (S = s.form) == null ? void 0 : S.leng) == null ? void 0 : D.input) || 20);
|
|
2746
2746
|
})), U();
|
|
2747
2747
|
},
|
|
2748
2748
|
{ immediate: !0 }
|
|
@@ -2753,13 +2753,13 @@ const qn = /* @__PURE__ */ Te(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2753
2753
|
class: ["el-plus-form-select", e.desc.class],
|
|
2754
2754
|
style: e.desc.style,
|
|
2755
2755
|
disabled: e.disabled
|
|
2756
|
-
},
|
|
2757
|
-
modelValue: te(
|
|
2758
|
-
"onUpdate:modelValue": L[0] || (L[0] = (S) => Ce(
|
|
2756
|
+
}, u.value, {
|
|
2757
|
+
modelValue: te(f),
|
|
2758
|
+
"onUpdate:modelValue": L[0] || (L[0] = (S) => Ce(f) ? f.value = S : null),
|
|
2759
2759
|
loading: e.loading
|
|
2760
2760
|
}, ye(G.value)), {
|
|
2761
2761
|
default: _(() => [
|
|
2762
|
-
(d(!0), w(se, null, fe(i, (S,
|
|
2762
|
+
(d(!0), w(se, null, fe(i, (S, D) => (d(), w(se, { key: D }, [
|
|
2763
2763
|
S && S.value ? (d(), k(P, ee({
|
|
2764
2764
|
key: 0,
|
|
2765
2765
|
ref_for: !0
|
|
@@ -2795,14 +2795,14 @@ const Ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2795
2795
|
},
|
|
2796
2796
|
emits: ["update:modelValue"],
|
|
2797
2797
|
setup(e, { emit: t }) {
|
|
2798
|
-
const l = e,
|
|
2798
|
+
const l = e, s = Ye(l, "modelValue", t), r = j({}), a = j(we(l));
|
|
2799
2799
|
return me(async () => {
|
|
2800
2800
|
r.value = await ze(l, { ...ge() });
|
|
2801
|
-
}), (o,
|
|
2802
|
-
const
|
|
2803
|
-
return d(), k(
|
|
2804
|
-
modelValue: te(
|
|
2805
|
-
"onUpdate:modelValue":
|
|
2801
|
+
}), (o, f) => {
|
|
2802
|
+
const u = O("el-slider");
|
|
2803
|
+
return d(), k(u, ee({ class: "ElPlusFormSlider-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
2804
|
+
modelValue: te(s),
|
|
2805
|
+
"onUpdate:modelValue": f[0] || (f[0] = (i) => Ce(s) ? s.value = i : null)
|
|
2806
2806
|
}), null, 16, ["disabled", "modelValue"]);
|
|
2807
2807
|
};
|
|
2808
2808
|
}
|
|
@@ -2822,32 +2822,32 @@ const Xn = /* @__PURE__ */ Te(Gu, [["__scopeId", "data-v-8f1ea995"]]), Ku = /* @
|
|
|
2822
2822
|
},
|
|
2823
2823
|
emits: ["update:modelValue"],
|
|
2824
2824
|
setup(e, { emit: t }) {
|
|
2825
|
-
const l = de("globalData"), n = de("format"),
|
|
2826
|
-
if (
|
|
2827
|
-
return typeof
|
|
2825
|
+
const l = de("globalData"), n = de("format"), s = e, a = Ye(s, "modelValue", t), o = ke([]), f = j(""), u = ne(() => {
|
|
2826
|
+
if (s.desc.icolor)
|
|
2827
|
+
return typeof s.desc.icolor == "function" ? { background: s.desc.icolor(s.formData || {}) || "#909399" } : { background: s.desc.icolor || "#909399" };
|
|
2828
2828
|
const i = o.find((c) => (c.value || c.v) == a.value) || {};
|
|
2829
2829
|
return { background: i.c || i.color || "#909399" };
|
|
2830
2830
|
});
|
|
2831
2831
|
return ue(
|
|
2832
|
-
() =>
|
|
2832
|
+
() => s.desc.options,
|
|
2833
2833
|
async (i) => {
|
|
2834
|
-
typeof i == "string" ? o.splice(0, o.length, ...l[i] || []) : typeof i == "function" ? o.splice(0, o.length, ...await i(
|
|
2834
|
+
typeof i == "string" ? o.splice(0, o.length, ...l[i] || []) : typeof i == "function" ? o.splice(0, o.length, ...await i(s.formData || {})) : Array.isArray(i) ? i && o && !nt(i, o) && o.splice(0, o.length, ...i) : o.splice(0, o.length);
|
|
2835
2835
|
},
|
|
2836
2836
|
{ immediate: !0 }
|
|
2837
2837
|
), ue(
|
|
2838
|
-
() =>
|
|
2838
|
+
() => s.modelValue,
|
|
2839
2839
|
async () => {
|
|
2840
|
-
|
|
2840
|
+
s.desc.format ? typeof s.desc.format == "function" ? f.value = await s.desc.format(s.modelValue, s.formData || {}, s.field) : typeof s.desc.format == "string" ? f.value = n[s.desc.format] ? n[s.desc.format](s.modelValue, s.formData || {}, s.field) : "--" : f.value = s.modelValue || "-" : f.value = s.modelValue === "" ? s.desc.default ?? "-" : s.modelValue ?? s.desc.default ?? "-";
|
|
2841
2841
|
},
|
|
2842
2842
|
{ immediate: !0 }
|
|
2843
2843
|
), (i, c) => (d(), w("div", Wu, [
|
|
2844
2844
|
oe("i", {
|
|
2845
|
-
style: Ue(
|
|
2845
|
+
style: Ue(u.value)
|
|
2846
2846
|
}, null, 4),
|
|
2847
2847
|
oe("div", {
|
|
2848
2848
|
class: Mt(e.desc.class),
|
|
2849
2849
|
style: Ue(e.desc.style)
|
|
2850
|
-
}, Me(
|
|
2850
|
+
}, Me(f.value), 7)
|
|
2851
2851
|
]));
|
|
2852
2852
|
}
|
|
2853
2853
|
});
|
|
@@ -2868,11 +2868,11 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2868
2868
|
},
|
|
2869
2869
|
emits: ["update:modelValue"],
|
|
2870
2870
|
setup(e, { emit: t }) {
|
|
2871
|
-
const l = t, n = e,
|
|
2872
|
-
function
|
|
2871
|
+
const l = t, n = e, s = j(!1), r = Ye(n, "modelValue", l), a = j(!1), o = j({}), f = j(we(n));
|
|
2872
|
+
function u() {
|
|
2873
2873
|
var c;
|
|
2874
2874
|
let i = (c = n.desc) == null ? void 0 : c.confirm;
|
|
2875
|
-
return typeof i == "function" && (i = i(r.value, n.formData || {})), i ? (
|
|
2875
|
+
return typeof i == "function" && (i = i(r.value, n.formData || {})), i ? (s.value = !0, new Promise((N, p) => {
|
|
2876
2876
|
Al({
|
|
2877
2877
|
title: "提示",
|
|
2878
2878
|
message: i || "",
|
|
@@ -2881,7 +2881,7 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2881
2881
|
cancelButtonText: "取消"
|
|
2882
2882
|
}).then(() => N(!0)).catch(() => p()).finally(() => {
|
|
2883
2883
|
setTimeout(() => {
|
|
2884
|
-
|
|
2884
|
+
s.value = !1;
|
|
2885
2885
|
}, 200);
|
|
2886
2886
|
});
|
|
2887
2887
|
})) : !0;
|
|
@@ -2891,11 +2891,11 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2891
2891
|
}), (i, c) => {
|
|
2892
2892
|
const N = O("el-switch");
|
|
2893
2893
|
return d(), w("div", Ju, [
|
|
2894
|
-
a.value ? (d(), k(N, ee({ key: 0 }, o.value, { disabled: e.disabled }, ye(
|
|
2895
|
-
loading: n.loading ||
|
|
2894
|
+
a.value ? (d(), k(N, ee({ key: 0 }, o.value, { disabled: e.disabled }, ye(f.value), {
|
|
2895
|
+
loading: n.loading || s.value,
|
|
2896
2896
|
modelValue: te(r),
|
|
2897
2897
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(r) ? r.value = p : null),
|
|
2898
|
-
"before-change":
|
|
2898
|
+
"before-change": u
|
|
2899
2899
|
}), null, 16, ["disabled", "loading", "modelValue"])) : R("", !0)
|
|
2900
2900
|
]);
|
|
2901
2901
|
};
|
|
@@ -2916,7 +2916,7 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2916
2916
|
disabled: { type: Boolean }
|
|
2917
2917
|
},
|
|
2918
2918
|
setup(e) {
|
|
2919
|
-
const t = de("format"), l = e, n = j({}),
|
|
2919
|
+
const t = de("format"), l = e, n = j({}), s = j(we(l)), r = j(""), a = j("");
|
|
2920
2920
|
return me(async () => {
|
|
2921
2921
|
n.value = await ze(l, { ...ge() });
|
|
2922
2922
|
}), ue(
|
|
@@ -2943,14 +2943,14 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2943
2943
|
typeof l.desc.format == "string" ? r.value = (await t)[l.desc.format](l.modelValue, l.formData || {}, l.field) : r.value = l.modelValue || "-";
|
|
2944
2944
|
},
|
|
2945
2945
|
{ immediate: !0 }
|
|
2946
|
-
), (o,
|
|
2947
|
-
const
|
|
2946
|
+
), (o, f) => {
|
|
2947
|
+
const u = O("el-tag");
|
|
2948
2948
|
return d(), w("div", null, [
|
|
2949
|
-
Z(
|
|
2949
|
+
Z(u, ee(n.value, {
|
|
2950
2950
|
disabled: e.disabled,
|
|
2951
2951
|
size: n.value.size || "default",
|
|
2952
2952
|
type: a.value && a.value !== "--" ? a.value : "primary"
|
|
2953
|
-
}, ye(
|
|
2953
|
+
}, ye(s.value)), {
|
|
2954
2954
|
default: _(() => [
|
|
2955
2955
|
pe(Me(r.value || e.modelValue), 1)
|
|
2956
2956
|
]),
|
|
@@ -2978,19 +2978,19 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2978
2978
|
let t = null;
|
|
2979
2979
|
const l = de("format"), n = e;
|
|
2980
2980
|
(n.desc.linkId || n.desc.linkType) && (t = de("showInfo"));
|
|
2981
|
-
const
|
|
2981
|
+
const s = j({}), r = ne(() => {
|
|
2982
2982
|
const o = we(n);
|
|
2983
|
-
let
|
|
2984
|
-
if (typeof
|
|
2985
|
-
let
|
|
2986
|
-
typeof
|
|
2987
|
-
t && t(
|
|
2983
|
+
let f = n.desc.linkId || "id";
|
|
2984
|
+
if (typeof f == "function" ? f = f(n.modelValue, n.formData || {}) : n.formData && (f = n.formData[f]), n.desc.linkType && f) {
|
|
2985
|
+
let u = n.desc.linkType, i = n.desc.linkLabel || "";
|
|
2986
|
+
typeof u == "function" && (u = u(n.modelValue, n.formData)), typeof i == "function" ? i = i(n.modelValue, n.formData) : n.formData && (i = n.formData[i]), o.click = () => {
|
|
2987
|
+
t && t(f, u, i, n.formData || {});
|
|
2988
2988
|
};
|
|
2989
2989
|
}
|
|
2990
2990
|
return o;
|
|
2991
2991
|
}), a = j("");
|
|
2992
2992
|
return me(async () => {
|
|
2993
|
-
|
|
2993
|
+
s.value = await ze(n, ge());
|
|
2994
2994
|
}), ue(
|
|
2995
2995
|
() => n.modelValue,
|
|
2996
2996
|
async () => {
|
|
@@ -3003,10 +3003,10 @@ const ea = /* @__PURE__ */ Te(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
3003
3003
|
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 || "-";
|
|
3004
3004
|
},
|
|
3005
3005
|
{ immediate: !0 }
|
|
3006
|
-
), (o,
|
|
3006
|
+
), (o, f) => (d(), w("div", ee({
|
|
3007
3007
|
class: ["ele-form-text", [...e.desc.class || [], e.desc.linkType ? "ele-form-text-click" : ""]],
|
|
3008
3008
|
style: e.desc.style
|
|
3009
|
-
},
|
|
3009
|
+
}, s.value, ye(r.value, !0)), [
|
|
3010
3010
|
e.desc.title ? (d(), w("span", ni, Me(e.desc.title + ": "), 1)) : R("", !0),
|
|
3011
3011
|
e.desc.icon ? (d(), w("i", {
|
|
3012
3012
|
key: 1,
|
|
@@ -3033,17 +3033,17 @@ const na = /* @__PURE__ */ Te(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3033
3033
|
},
|
|
3034
3034
|
emits: ["update:modelValue", "validateThis"],
|
|
3035
3035
|
setup(e, { emit: t }) {
|
|
3036
|
-
const l = de("defaultConf"), n = e,
|
|
3036
|
+
const l = de("defaultConf"), n = e, s = t, r = j({}), a = j(!1), o = j(we(n)), f = Ye(n, "modelValue", s);
|
|
3037
3037
|
return me(async () => {
|
|
3038
|
-
var
|
|
3039
|
-
r.value = await ze(n, { maxlength: (i = (
|
|
3038
|
+
var u, i;
|
|
3039
|
+
r.value = await ze(n, { maxlength: (i = (u = l.form) == null ? void 0 : u.leng) == null ? void 0 : i.textare, showWordLimit: !0, rows: 3, ...ge() }), a.value = !0;
|
|
3040
3040
|
}), ue(
|
|
3041
3041
|
() => n.modelValue,
|
|
3042
|
-
(
|
|
3043
|
-
|
|
3042
|
+
(u) => {
|
|
3043
|
+
u && u.length > r.value.maxlength && (u = u.substring(0, r.value.maxlength)), f.value = u;
|
|
3044
3044
|
},
|
|
3045
3045
|
{ immediate: !0 }
|
|
3046
|
-
), (
|
|
3046
|
+
), (u, i) => {
|
|
3047
3047
|
const c = O("el-input");
|
|
3048
3048
|
return a.value ? (d(), k(c, ee({
|
|
3049
3049
|
key: 0,
|
|
@@ -3052,8 +3052,8 @@ const na = /* @__PURE__ */ Te(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3052
3052
|
type: "textarea"
|
|
3053
3053
|
}, r.value, {
|
|
3054
3054
|
disabled: e.disabled,
|
|
3055
|
-
modelValue: te(
|
|
3056
|
-
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(
|
|
3055
|
+
modelValue: te(f),
|
|
3056
|
+
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(f) ? f.value = N : null)
|
|
3057
3057
|
}, ye(o.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : R("", !0);
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
@@ -3073,17 +3073,17 @@ const na = /* @__PURE__ */ Te(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3073
3073
|
},
|
|
3074
3074
|
emits: ["update:modelValue"],
|
|
3075
3075
|
setup(e, { emit: t }) {
|
|
3076
|
-
const l = e,
|
|
3076
|
+
const l = e, s = Ye(l, "modelValue", t), r = j({}), a = j(!1), o = j(we(l));
|
|
3077
3077
|
return me(async () => {
|
|
3078
3078
|
r.value = await ze(l, { valueFormat: "HH:mm:ss", editable: !1, ...ge() }), a.value = !0;
|
|
3079
|
-
}), (
|
|
3079
|
+
}), (f, u) => {
|
|
3080
3080
|
const i = O("el-time-picker");
|
|
3081
3081
|
return a.value ? (d(), k(i, ee({
|
|
3082
3082
|
key: 0,
|
|
3083
3083
|
class: "ElPlusFormTime-panel"
|
|
3084
3084
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
3085
|
-
modelValue: te(
|
|
3086
|
-
"onUpdate:modelValue":
|
|
3085
|
+
modelValue: te(s),
|
|
3086
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => Ce(s) ? s.value = c : null)
|
|
3087
3087
|
}), null, 16, ["disabled", "modelValue"])) : R("", !0);
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
@@ -3104,23 +3104,23 @@ const oa = /* @__PURE__ */ Te(ci, [["__scopeId", "data-v-a204fff1"]]), di = /* @
|
|
|
3104
3104
|
},
|
|
3105
3105
|
emits: ["update:modelValue"],
|
|
3106
3106
|
setup(e, { emit: t }) {
|
|
3107
|
-
const l = e,
|
|
3107
|
+
const l = e, s = Ye(l, "modelValue", t), r = j(Object.assign({}, Ge(), l.desc.slots)), a = j({}), o = j(!1), f = j(we(l));
|
|
3108
3108
|
return me(async () => {
|
|
3109
3109
|
a.value = await ze(l, { format: "HH:mm:ss", editable: !1, ...ge() }), o.value = !0;
|
|
3110
|
-
}), (
|
|
3110
|
+
}), (u, i) => {
|
|
3111
3111
|
const c = O("el-time-picker");
|
|
3112
3112
|
return o.value ? (d(), k(c, ee({
|
|
3113
3113
|
key: 0,
|
|
3114
3114
|
isRange: "",
|
|
3115
3115
|
class: "el-plusF-form-timerange-panel"
|
|
3116
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
3117
|
-
modelValue: te(
|
|
3118
|
-
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(
|
|
3116
|
+
}, a.value, { disabled: e.disabled }, ye(f.value), {
|
|
3117
|
+
modelValue: te(s),
|
|
3118
|
+
"onUpdate:modelValue": i[0] || (i[0] = (N) => Ce(s) ? s.value = N : null)
|
|
3119
3119
|
}), at({ _: 2 }, [
|
|
3120
3120
|
fe(r.value, (N, p, m) => ({
|
|
3121
3121
|
name: p,
|
|
3122
3122
|
fn: _((G) => [
|
|
3123
|
-
De(
|
|
3123
|
+
De(u.$slots, p, { data: G }, void 0, !0)
|
|
3124
3124
|
])
|
|
3125
3125
|
}))
|
|
3126
3126
|
]), 1040, ["disabled", "modelValue"])) : R("", !0);
|
|
@@ -3144,18 +3144,18 @@ const sa = /* @__PURE__ */ Te(fi, [["__scopeId", "data-v-c7000e64"]]), gi = /* @
|
|
|
3144
3144
|
},
|
|
3145
3145
|
emits: ["update:modelValue"],
|
|
3146
3146
|
setup(e, { emit: t }) {
|
|
3147
|
-
const l = e,
|
|
3147
|
+
const l = e, s = Ye(l, "modelValue", t);
|
|
3148
3148
|
ue(
|
|
3149
3149
|
() => l.modelValue,
|
|
3150
|
-
(
|
|
3151
|
-
|
|
3150
|
+
(f) => {
|
|
3151
|
+
s.value = f ? Array.isArray(f) ? f : [f] : [];
|
|
3152
3152
|
},
|
|
3153
3153
|
{ immediate: !0 }
|
|
3154
3154
|
);
|
|
3155
3155
|
const r = j(Object.assign({}, Ge(), l.desc.slots)), a = j({}), o = j(we(l));
|
|
3156
3156
|
return me(async () => {
|
|
3157
3157
|
a.value = await ze(l, { ...ge() });
|
|
3158
|
-
}), (
|
|
3158
|
+
}), (f, u) => {
|
|
3159
3159
|
const i = O("el-transfer");
|
|
3160
3160
|
return d(), k(i, ee({
|
|
3161
3161
|
class: [e.desc.class, "ele-form-transfer"],
|
|
@@ -3163,13 +3163,13 @@ const sa = /* @__PURE__ */ Te(fi, [["__scopeId", "data-v-c7000e64"]]), gi = /* @
|
|
|
3163
3163
|
style: e.desc.style
|
|
3164
3164
|
}, a.value, {
|
|
3165
3165
|
disabled: e.disabled,
|
|
3166
|
-
modelValue: te(
|
|
3167
|
-
"onUpdate:modelValue":
|
|
3166
|
+
modelValue: te(s),
|
|
3167
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => Ce(s) ? s.value = c : null)
|
|
3168
3168
|
}, ye(o.value)), at({ _: 2 }, [
|
|
3169
3169
|
fe(r.value, (c, N, p) => ({
|
|
3170
3170
|
name: N,
|
|
3171
3171
|
fn: _((m) => [
|
|
3172
|
-
De(
|
|
3172
|
+
De(f.$slots, N, { data: m }, void 0, !0)
|
|
3173
3173
|
])
|
|
3174
3174
|
}))
|
|
3175
3175
|
]), 1040, ["class", "data", "style", "disabled", "modelValue"]);
|
|
@@ -3195,27 +3195,27 @@ const ua = /* @__PURE__ */ Te(ji, [["__scopeId", "data-v-be721915"]]), pi = /* @
|
|
|
3195
3195
|
},
|
|
3196
3196
|
setup(e) {
|
|
3197
3197
|
const t = e;
|
|
3198
|
-
function l(
|
|
3199
|
-
t.onNodeCheck(
|
|
3198
|
+
function l(s, r) {
|
|
3199
|
+
t.onNodeCheck(s, r);
|
|
3200
3200
|
}
|
|
3201
|
-
function n(
|
|
3202
|
-
t.treeState.nodeHasChildren(
|
|
3201
|
+
function n(s) {
|
|
3202
|
+
t.treeState.nodeHasChildren(s) && (t.treeState.toggleExpand(s), t.onNodeExpand(s));
|
|
3203
3203
|
}
|
|
3204
|
-
return (
|
|
3205
|
-
const a = O("el-icon"), o = O("el-checkbox"),
|
|
3204
|
+
return (s, r) => {
|
|
3205
|
+
const a = O("el-icon"), o = O("el-checkbox"), f = O("CustomTreeNode", !0);
|
|
3206
3206
|
return d(), w("div", yi, [
|
|
3207
|
-
(d(!0), w(se, null, fe(e.nodes, (
|
|
3208
|
-
key: `${e.treeState.getNodeIdStr(
|
|
3207
|
+
(d(!0), w(se, null, fe(e.nodes, (u, i) => bl((d(), w("div", {
|
|
3208
|
+
key: `${e.treeState.getNodeIdStr(u)}-${e.depth}-${i}`,
|
|
3209
3209
|
class: "custom-tree-node"
|
|
3210
3210
|
}, [
|
|
3211
3211
|
oe("div", {
|
|
3212
3212
|
class: "node-row",
|
|
3213
3213
|
style: Ue({ paddingLeft: e.depth * 20 + "px" }),
|
|
3214
|
-
onClick: (c) => n(
|
|
3214
|
+
onClick: (c) => n(u)
|
|
3215
3215
|
}, [
|
|
3216
|
-
e.treeState.nodeHasChildren(
|
|
3216
|
+
e.treeState.nodeHasChildren(u) ? (d(), w("span", {
|
|
3217
3217
|
key: 0,
|
|
3218
|
-
class: Mt(["expand-icon", { "is-expanded": e.treeState.isNodeExpanded(
|
|
3218
|
+
class: Mt(["expand-icon", { "is-expanded": e.treeState.isNodeExpanded(u) }])
|
|
3219
3219
|
}, [
|
|
3220
3220
|
Z(a, null, {
|
|
3221
3221
|
default: _(() => [
|
|
@@ -3226,21 +3226,21 @@ const ua = /* @__PURE__ */ Te(ji, [["__scopeId", "data-v-be721915"]]), pi = /* @
|
|
|
3226
3226
|
], 2)) : (d(), w("span", zi)),
|
|
3227
3227
|
e.treeState.config.showCheckbox ? (d(), k(o, {
|
|
3228
3228
|
key: 2,
|
|
3229
|
-
"model-value": e.treeState.isNodeChecked(
|
|
3230
|
-
indeterminate: e.treeState.isNodeIndeterminate(
|
|
3231
|
-
disabled: e.treeState.isNodeDisabled(
|
|
3229
|
+
"model-value": e.treeState.isNodeChecked(u),
|
|
3230
|
+
indeterminate: e.treeState.isNodeIndeterminate(u),
|
|
3231
|
+
disabled: e.treeState.isNodeDisabled(u),
|
|
3232
3232
|
onClick: r[0] || (r[0] = _t(() => {
|
|
3233
3233
|
}, ["stop"])),
|
|
3234
|
-
onChange: (c) => l(
|
|
3234
|
+
onChange: (c) => l(u, !!c)
|
|
3235
3235
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onChange"])) : R("", !0),
|
|
3236
3236
|
oe("span", {
|
|
3237
3237
|
class: "node-label",
|
|
3238
|
-
title:
|
|
3239
|
-
}, Me(
|
|
3238
|
+
title: u[e.treeState.config.labelKey]
|
|
3239
|
+
}, Me(u[e.treeState.config.labelKey]), 9, Di)
|
|
3240
3240
|
], 12, mi),
|
|
3241
|
-
e.treeState.nodeHasChildren(
|
|
3242
|
-
Z(
|
|
3243
|
-
nodes:
|
|
3241
|
+
e.treeState.nodeHasChildren(u) && e.treeState.isNodeExpanded(u) ? (d(), w("div", vi, [
|
|
3242
|
+
Z(f, {
|
|
3243
|
+
nodes: u[e.treeState.config.childrenKey],
|
|
3244
3244
|
depth: e.depth + 1,
|
|
3245
3245
|
"tree-state": e.treeState,
|
|
3246
3246
|
"on-node-check": e.onNodeCheck,
|
|
@@ -3248,7 +3248,7 @@ const ua = /* @__PURE__ */ Te(ji, [["__scopeId", "data-v-be721915"]]), pi = /* @
|
|
|
3248
3248
|
}, null, 8, ["nodes", "depth", "tree-state", "on-node-check", "on-node-expand"])
|
|
3249
3249
|
])) : R("", !0)
|
|
3250
3250
|
])), [
|
|
3251
|
-
[Yn, e.treeState.isNodeVisible(
|
|
3251
|
+
[Yn, e.treeState.isNodeVisible(u)]
|
|
3252
3252
|
])), 128))
|
|
3253
3253
|
]);
|
|
3254
3254
|
};
|
|
@@ -3282,20 +3282,20 @@ function ft(e, t) {
|
|
|
3282
3282
|
function zl(e, t, l) {
|
|
3283
3283
|
for (const n of e) {
|
|
3284
3284
|
n._checked === void 0 && (n._checked = !1), n._expanded === void 0 && (n._expanded = l), n._indeterminate === void 0 && (n._indeterminate = !1), n._visible === void 0 && (n._visible = !0);
|
|
3285
|
-
const
|
|
3286
|
-
|
|
3285
|
+
const s = Ke(n, t);
|
|
3286
|
+
s.length && zl(s, t, l);
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
3289
|
function Jt(e, t, l, n) {
|
|
3290
|
-
for (const
|
|
3291
|
-
const r = Ke(
|
|
3292
|
-
r.length && Jt(r, t, l, n), !r.length && We(
|
|
3290
|
+
for (const s of e) {
|
|
3291
|
+
const r = Ke(s, n);
|
|
3292
|
+
r.length && Jt(r, t, l, n), !r.length && We(s, n) === t && !ft(s, n) && (s._checked = l);
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
3295
|
function ia(e, t, l, n) {
|
|
3296
|
-
const
|
|
3297
|
-
if (
|
|
3298
|
-
for (const r of
|
|
3296
|
+
const s = Ke(e, n);
|
|
3297
|
+
if (s.length)
|
|
3298
|
+
for (const r of s)
|
|
3299
3299
|
sl(r, n) ? ia(r, t, l, n) : ft(r, n) || (t ? (l.has(We(r, n)) || l.size < n.maxCount) && (r._checked = !0, l.add(We(r, n))) : r._checked = !1);
|
|
3300
3300
|
}
|
|
3301
3301
|
function zt(e, t) {
|
|
@@ -3303,11 +3303,11 @@ function zt(e, t) {
|
|
|
3303
3303
|
const n = Ke(l, t);
|
|
3304
3304
|
if (n.length) {
|
|
3305
3305
|
zt(n, t);
|
|
3306
|
-
const
|
|
3307
|
-
if (
|
|
3306
|
+
const s = n.filter((r) => !ft(r, t));
|
|
3307
|
+
if (s.length === 0)
|
|
3308
3308
|
l._checked = !1, l._indeterminate = !1;
|
|
3309
3309
|
else {
|
|
3310
|
-
const r =
|
|
3310
|
+
const r = s.every((o) => o._checked), a = s.some((o) => o._checked || o._indeterminate);
|
|
3311
3311
|
l._checked = r, l._indeterminate = !r && a;
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
@@ -3318,11 +3318,11 @@ function Kt(e, t) {
|
|
|
3318
3318
|
const n = Ke(l, t);
|
|
3319
3319
|
if (n.length) {
|
|
3320
3320
|
Kt(n, t);
|
|
3321
|
-
const
|
|
3322
|
-
if (
|
|
3321
|
+
const s = n.filter((r) => !ft(r, t));
|
|
3322
|
+
if (s.length === 0)
|
|
3323
3323
|
l._indeterminate = !1;
|
|
3324
3324
|
else {
|
|
3325
|
-
const r =
|
|
3325
|
+
const r = s.some((a) => a._checked || a._indeterminate);
|
|
3326
3326
|
l._indeterminate = !l._checked && r;
|
|
3327
3327
|
}
|
|
3328
3328
|
}
|
|
@@ -3330,14 +3330,14 @@ function Kt(e, t) {
|
|
|
3330
3330
|
}
|
|
3331
3331
|
function ul(e, t, l) {
|
|
3332
3332
|
let n = !1;
|
|
3333
|
-
for (const
|
|
3334
|
-
const r = Ke(
|
|
3333
|
+
for (const s of e) {
|
|
3334
|
+
const r = Ke(s, l);
|
|
3335
3335
|
if (r.length) {
|
|
3336
|
-
const a = ul(r, t, l), o = !t ||
|
|
3337
|
-
|
|
3336
|
+
const a = ul(r, t, l), o = !t || s[l.labelKey] && s[l.labelKey].includes(t);
|
|
3337
|
+
s._visible = a || o, s._visible && (n = !0, t && a && (s._expanded = !0));
|
|
3338
3338
|
} else {
|
|
3339
|
-
const a = !!
|
|
3340
|
-
|
|
3339
|
+
const a = !!s._checked, o = !t || s[l.labelKey] && s[l.labelKey].includes(t);
|
|
3340
|
+
s._visible = a || o, s._visible && (n = !0);
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
3343
|
return n;
|
|
@@ -3351,8 +3351,8 @@ function ra(e, t) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
function Ft(e, t) {
|
|
3353
3353
|
const l = /* @__PURE__ */ new Set();
|
|
3354
|
-
function n(
|
|
3355
|
-
for (const r of
|
|
3354
|
+
function n(s) {
|
|
3355
|
+
for (const r of s) {
|
|
3356
3356
|
const a = Ke(r, t);
|
|
3357
3357
|
a.length ? n(a) : r._checked && l.add(We(r, t));
|
|
3358
3358
|
}
|
|
@@ -3361,8 +3361,8 @@ function Ft(e, t) {
|
|
|
3361
3361
|
}
|
|
3362
3362
|
function xi(e, t) {
|
|
3363
3363
|
const l = /* @__PURE__ */ new Set();
|
|
3364
|
-
function n(
|
|
3365
|
-
for (const r of
|
|
3364
|
+
function n(s) {
|
|
3365
|
+
for (const r of s) {
|
|
3366
3366
|
r._checked && l.add(We(r, t));
|
|
3367
3367
|
const a = Ke(r, t);
|
|
3368
3368
|
a.length && n(a);
|
|
@@ -3372,8 +3372,8 @@ function xi(e, t) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
function $l(e, t) {
|
|
3374
3374
|
const l = [];
|
|
3375
|
-
function n(
|
|
3376
|
-
for (const r of
|
|
3375
|
+
function n(s) {
|
|
3376
|
+
for (const r of s) {
|
|
3377
3377
|
const a = Ke(r, t);
|
|
3378
3378
|
a.length ? n(a) : l.push(We(r, t));
|
|
3379
3379
|
}
|
|
@@ -3382,8 +3382,8 @@ function $l(e, t) {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
function Gl(e, t) {
|
|
3384
3384
|
const l = [];
|
|
3385
|
-
function n(
|
|
3386
|
-
for (const r of
|
|
3385
|
+
function n(s) {
|
|
3386
|
+
for (const r of s) {
|
|
3387
3387
|
if (r._visible === !1)
|
|
3388
3388
|
continue;
|
|
3389
3389
|
const a = Ke(r, t);
|
|
@@ -3394,8 +3394,8 @@ function Gl(e, t) {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
function ca(e, t, l) {
|
|
3396
3396
|
for (const n of e) {
|
|
3397
|
-
const
|
|
3398
|
-
t.has(
|
|
3397
|
+
const s = We(n, l);
|
|
3398
|
+
t.has(s) && !ft(n, l) && (n._checked = !0);
|
|
3399
3399
|
const r = Ke(n, l);
|
|
3400
3400
|
r.length && ca(r, t, l);
|
|
3401
3401
|
}
|
|
@@ -3409,20 +3409,20 @@ function da(e, t) {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
function Dl(e, t, l) {
|
|
3411
3411
|
for (const n of e) {
|
|
3412
|
-
const
|
|
3413
|
-
|
|
3412
|
+
const s = Ke(n, l);
|
|
3413
|
+
s.length ? Dl(s, t, l) : t.has(We(n, l)) && !ft(n, l) && (n._checked = !0);
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
3416
|
function Ma(e, t, l) {
|
|
3417
3417
|
for (const n of e) {
|
|
3418
|
-
const
|
|
3419
|
-
|
|
3418
|
+
const s = Ke(n, l);
|
|
3419
|
+
s.length ? Ma(s, t, l) : t.has(We(n, l)) && !ft(n, l) && (n._checked = !1);
|
|
3420
3420
|
}
|
|
3421
3421
|
}
|
|
3422
3422
|
function fa(e, t, l) {
|
|
3423
3423
|
const n = We(t, l);
|
|
3424
|
-
for (const
|
|
3425
|
-
const r = Ke(
|
|
3424
|
+
for (const s of e) {
|
|
3425
|
+
const r = Ke(s, l);
|
|
3426
3426
|
if (r.some((a) => We(a, l) === n)) {
|
|
3427
3427
|
for (const a of r)
|
|
3428
3428
|
We(a, l) !== n && (a._expanded = !1);
|
|
@@ -3449,9 +3449,9 @@ const _i = /* @__PURE__ */ H({
|
|
|
3449
3449
|
},
|
|
3450
3450
|
emits: ["update:modelValue", "validateThis"],
|
|
3451
3451
|
setup(e, { emit: t }) {
|
|
3452
|
-
const l = de("lodash"), n = de("globalData"),
|
|
3452
|
+
const l = de("lodash"), n = de("globalData"), s = e, r = t, a = Ye(s, "modelValue", r), o = j([]), f = j(!1), u = j({}), i = j(we(s)), c = ne(() => {
|
|
3453
3453
|
var C, T;
|
|
3454
|
-
return (C =
|
|
3454
|
+
return (C = s.desc) != null && C.height ? typeof s.desc.height == "function" ? s.desc.height() : (T = s.desc) == null ? void 0 : T.height : "400px";
|
|
3455
3455
|
}), N = j(null), p = j(null), m = j(""), G = j(!0), B = j(0), Y = j(/* @__PURE__ */ new Set()), U = j([]);
|
|
3456
3456
|
function Q() {
|
|
3457
3457
|
return N.value;
|
|
@@ -3475,7 +3475,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3475
3475
|
function S(C) {
|
|
3476
3476
|
return C._visible !== !1;
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function D(C) {
|
|
3479
3479
|
return !!C._expanded;
|
|
3480
3480
|
}
|
|
3481
3481
|
function x(C) {
|
|
@@ -3484,7 +3484,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3484
3484
|
function A(C) {
|
|
3485
3485
|
return We(C, Q());
|
|
3486
3486
|
}
|
|
3487
|
-
function
|
|
3487
|
+
function M(C, T) {
|
|
3488
3488
|
const ie = Q(), he = We(C, ie);
|
|
3489
3489
|
if (!sl(C, ie)) {
|
|
3490
3490
|
if (T && ie.maxCount < 1 / 0 && B.value >= ie.maxCount)
|
|
@@ -3499,7 +3499,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3499
3499
|
ft(C, ie) || (C._checked = T);
|
|
3500
3500
|
return G.value ? zt(o.value, ie) : Kt(o.value, ie), b(), !0;
|
|
3501
3501
|
}
|
|
3502
|
-
function
|
|
3502
|
+
function z(C) {
|
|
3503
3503
|
const T = Q();
|
|
3504
3504
|
C._expanded = !C._expanded, T.accordion && C._expanded && fa(o.value, C, T), fl(o);
|
|
3505
3505
|
}
|
|
@@ -3569,15 +3569,15 @@ const _i = /* @__PURE__ */ H({
|
|
|
3569
3569
|
isNodeIndeterminate: P,
|
|
3570
3570
|
isNodeDisabled: I,
|
|
3571
3571
|
isNodeVisible: S,
|
|
3572
|
-
isNodeExpanded:
|
|
3572
|
+
isNodeExpanded: D,
|
|
3573
3573
|
nodeHasChildren: x,
|
|
3574
3574
|
getNodeIdStr: A,
|
|
3575
|
-
toggleCheck:
|
|
3576
|
-
toggleExpand:
|
|
3575
|
+
toggleCheck: M,
|
|
3576
|
+
toggleExpand: z
|
|
3577
3577
|
});
|
|
3578
3578
|
me(async () => {
|
|
3579
3579
|
var T, ie, he, xe;
|
|
3580
|
-
|
|
3580
|
+
u.value = await ze(s, {
|
|
3581
3581
|
checkStrictly: !1,
|
|
3582
3582
|
showCheckbox: !0,
|
|
3583
3583
|
accordion: !1,
|
|
@@ -3588,20 +3588,20 @@ const _i = /* @__PURE__ */ H({
|
|
|
3588
3588
|
...ge()
|
|
3589
3589
|
});
|
|
3590
3590
|
const C = {
|
|
3591
|
-
idKey: ((T =
|
|
3592
|
-
labelKey: ((ie =
|
|
3593
|
-
childrenKey: ((he =
|
|
3594
|
-
checkStrictly:
|
|
3595
|
-
showCheckbox:
|
|
3596
|
-
maxCount:
|
|
3597
|
-
fsIds: (
|
|
3598
|
-
nsIds: (
|
|
3599
|
-
isPId:
|
|
3600
|
-
expandAll:
|
|
3601
|
-
accordion:
|
|
3602
|
-
disabled:
|
|
3591
|
+
idKey: ((T = u.value.props) == null ? void 0 : T.idKey) || u.value.nodeKey || "id",
|
|
3592
|
+
labelKey: ((ie = u.value.props) == null ? void 0 : ie.label) || "label",
|
|
3593
|
+
childrenKey: ((he = u.value.props) == null ? void 0 : he.children) || "children",
|
|
3594
|
+
checkStrictly: u.value.checkStrictly ?? !1,
|
|
3595
|
+
showCheckbox: u.value.showCheckbox ?? !0,
|
|
3596
|
+
maxCount: u.value.maxCount ?? 1 / 0,
|
|
3597
|
+
fsIds: (u.value.fsIds || []).map(String),
|
|
3598
|
+
nsIds: (u.value.nsIds || []).map(String),
|
|
3599
|
+
isPId: s.desc.isPId ?? !0,
|
|
3600
|
+
expandAll: u.value.expandAll ?? u.value.defaultExpandAll ?? !1,
|
|
3601
|
+
accordion: u.value.accordion ?? !1,
|
|
3602
|
+
disabled: s.disabled ?? !1
|
|
3603
3603
|
};
|
|
3604
|
-
N.value = C, G.value = !C.checkStrictly, h.config = C, o.value.length && (g(), (xe = a.value) != null && xe.length && le(a.value)),
|
|
3604
|
+
N.value = C, G.value = !C.checkStrictly, h.config = C, o.value.length && (g(), (xe = a.value) != null && xe.length && le(a.value)), f.value = !0;
|
|
3605
3605
|
}), ue(G, () => {
|
|
3606
3606
|
N.value && (G.value ? zt(o.value, Q()) : Kt(o.value, Q()), b());
|
|
3607
3607
|
});
|
|
@@ -3615,24 +3615,24 @@ const _i = /* @__PURE__ */ H({
|
|
|
3615
3615
|
ae.cancel();
|
|
3616
3616
|
});
|
|
3617
3617
|
function ve(C, T) {
|
|
3618
|
-
|
|
3618
|
+
M(C, T) && (a.value = $(), Ae(() => {
|
|
3619
3619
|
r("validateThis"), i.value["check-change"] && i.value["check-change"](C, T);
|
|
3620
3620
|
}));
|
|
3621
3621
|
}
|
|
3622
3622
|
function Pe(C) {
|
|
3623
3623
|
Ae(() => {
|
|
3624
|
-
const ie =
|
|
3624
|
+
const ie = D(C) ? "node-expand" : "node-collapse";
|
|
3625
3625
|
i.value[ie] && i.value[ie](C);
|
|
3626
3626
|
});
|
|
3627
3627
|
}
|
|
3628
3628
|
return ue(
|
|
3629
|
-
() =>
|
|
3629
|
+
() => s.desc.options,
|
|
3630
3630
|
async (C) => {
|
|
3631
3631
|
var T;
|
|
3632
3632
|
if (typeof C == "string")
|
|
3633
3633
|
o.value = n[C] || [];
|
|
3634
3634
|
else if (typeof C == "function")
|
|
3635
|
-
o.value = await C(
|
|
3635
|
+
o.value = await C(s.formData || {});
|
|
3636
3636
|
else if (Array.isArray(C)) {
|
|
3637
3637
|
if (nt(C, p.value))
|
|
3638
3638
|
return;
|
|
@@ -3643,7 +3643,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3643
3643
|
},
|
|
3644
3644
|
{ immediate: !0 }
|
|
3645
3645
|
), ue(
|
|
3646
|
-
() =>
|
|
3646
|
+
() => s.modelValue,
|
|
3647
3647
|
(C) => {
|
|
3648
3648
|
if (!N.value)
|
|
3649
3649
|
return;
|
|
@@ -3651,15 +3651,15 @@ const _i = /* @__PURE__ */ H({
|
|
|
3651
3651
|
nt(C || [], T) || le(C || []);
|
|
3652
3652
|
}
|
|
3653
3653
|
), ue(
|
|
3654
|
-
() =>
|
|
3654
|
+
() => s.disabled,
|
|
3655
3655
|
(C) => {
|
|
3656
3656
|
N.value && (N.value.disabled = C ?? !1, fl(o));
|
|
3657
3657
|
}
|
|
3658
3658
|
), (C, T) => {
|
|
3659
3659
|
const ie = O("el-checkbox"), he = O("el-switch"), xe = O("el-input");
|
|
3660
3660
|
return d(), w("div", bi, [
|
|
3661
|
-
|
|
3662
|
-
|
|
3661
|
+
u.value.showCheckbox && !u.value.noSelectAll || u.value.showCascadeSwitch || u.value.enableSearch ? (d(), w("div", Ai, [
|
|
3662
|
+
u.value.showCheckbox && !u.value.noSelectAll ? (d(), k(ie, {
|
|
3663
3663
|
key: 0,
|
|
3664
3664
|
"model-value": h.selectAll,
|
|
3665
3665
|
indeterminate: h.selectAllIndeterminate,
|
|
@@ -3667,7 +3667,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3667
3667
|
label: "全部勾选",
|
|
3668
3668
|
border: ""
|
|
3669
3669
|
}, null, 8, ["model-value", "indeterminate"])) : R("", !0),
|
|
3670
|
-
|
|
3670
|
+
u.value.showCascadeSwitch ? (d(), k(he, {
|
|
3671
3671
|
key: 1,
|
|
3672
3672
|
"model-value": h.cascadeMode,
|
|
3673
3673
|
onChange: T[1] || (T[1] = (Je) => h.cascadeMode = Je),
|
|
@@ -3675,7 +3675,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3675
3675
|
"inactive-text": "独立",
|
|
3676
3676
|
"inline-prompt": ""
|
|
3677
3677
|
}, null, 8, ["model-value"])) : R("", !0),
|
|
3678
|
-
|
|
3678
|
+
u.value.enableSearch ? (d(), k(xe, {
|
|
3679
3679
|
key: 2,
|
|
3680
3680
|
"model-value": h.searchText,
|
|
3681
3681
|
"onUpdate:modelValue": Ne,
|
|
@@ -3687,7 +3687,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3687
3687
|
class: "tree-search-input"
|
|
3688
3688
|
}, null, 8, ["model-value"])) : R("", !0)
|
|
3689
3689
|
])) : R("", !0),
|
|
3690
|
-
|
|
3690
|
+
f.value && o.value.length ? (d(), w("div", {
|
|
3691
3691
|
key: 1,
|
|
3692
3692
|
class: "custom-tree",
|
|
3693
3693
|
style: Ue({ maxHeight: c.value || "400px" })
|
|
@@ -3699,7 +3699,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3699
3699
|
"on-node-check": ve,
|
|
3700
3700
|
"on-node-expand": Pe
|
|
3701
3701
|
}, null, 8, ["nodes", "tree-state"])
|
|
3702
|
-
], 4)) :
|
|
3702
|
+
], 4)) : f.value ? (d(), w("div", Ti, "暂无选项")) : R("", !0)
|
|
3703
3703
|
]);
|
|
3704
3704
|
};
|
|
3705
3705
|
}
|
|
@@ -3721,9 +3721,9 @@ const ga = /* @__PURE__ */ Te(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3721
3721
|
},
|
|
3722
3722
|
emits: ["update:modelValue"],
|
|
3723
3723
|
setup(e, { emit: t }) {
|
|
3724
|
-
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = ke([]), o = j(!1),
|
|
3724
|
+
const l = de("globalData"), n = e, r = Ye(n, "modelValue", t), a = ke([]), o = j(!1), f = j({}), u = j(we(n));
|
|
3725
3725
|
return me(async () => {
|
|
3726
|
-
|
|
3726
|
+
f.value = await ze(n, { filterable: !0, clearable: !0, props: { label: "name", value: "id", children: "children" }, ...ge() }), o.value = !0;
|
|
3727
3727
|
}), ue(
|
|
3728
3728
|
() => n.desc.options,
|
|
3729
3729
|
async (i) => {
|
|
@@ -3736,13 +3736,13 @@ const ga = /* @__PURE__ */ Te(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3736
3736
|
key: 0,
|
|
3737
3737
|
class: e.desc.class,
|
|
3738
3738
|
style: e.desc.style
|
|
3739
|
-
},
|
|
3739
|
+
}, f.value, {
|
|
3740
3740
|
disabled: e.disabled,
|
|
3741
3741
|
modelValue: te(r),
|
|
3742
3742
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => Ce(r) ? r.value = p : null),
|
|
3743
3743
|
data: a,
|
|
3744
3744
|
loading: e.loading
|
|
3745
|
-
}, ye(
|
|
3745
|
+
}, ye(u.value), { "render-after-expand": !1 }), null, 16, ["class", "style", "disabled", "modelValue", "data", "loading"])) : R("", !0);
|
|
3746
3746
|
};
|
|
3747
3747
|
}
|
|
3748
3748
|
}), 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"], ma = ["audio/x-wav", "audio/x-ms-wma", "audio/mp4", "audio/mp3"], za = [".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, ...ma, ...Da, ...Ya, ...wa], Si = [...Zt, ...ya, ...za, ...va, ...Ia, ...ba], Wt = [
|
|
@@ -3778,151 +3778,162 @@ const ga = /* @__PURE__ */ Te(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3778
3778
|
},
|
|
3779
3779
|
emits: ["update:modelValue", "validateThis"],
|
|
3780
3780
|
setup(e, { emit: t }) {
|
|
3781
|
-
const l = de("defaultConf"), n = { excel: ki, pdf: Bi, file: Vi, txt: Pi, word: Qi, zip: Ui, ppt: Fi },
|
|
3782
|
-
const
|
|
3783
|
-
return a.value.map((
|
|
3781
|
+
const l = de("defaultConf"), n = { excel: ki, pdf: Bi, file: Vi, txt: Pi, word: Qi, zip: Ui, ppt: Fi }, s = e, r = t, a = Ye(s, "modelValue", r), o = j({}), f = j(!1), u = j(we(s)), i = j(""), c = j({}), N = ne(() => !s.desc.upType || s.desc.upType === "image"), p = j(!1), m = j(0), G = ne(() => {
|
|
3782
|
+
const M = [];
|
|
3783
|
+
return a.value.map((z) => {
|
|
3784
3784
|
var v;
|
|
3785
|
-
Zt.indexOf(((v =
|
|
3786
|
-
}),
|
|
3785
|
+
Zt.indexOf(((v = z.raw) == null ? void 0 : v.suffix) || z.suffix) >= 0 && M.push(z.signUrl || z.url);
|
|
3786
|
+
}), M;
|
|
3787
3787
|
});
|
|
3788
3788
|
me(async () => {
|
|
3789
|
-
var
|
|
3790
|
-
a.value || (a.value = []), !((
|
|
3789
|
+
var M, z, v, F, le, $, K;
|
|
3790
|
+
a.value || (a.value = []), !((M = l.upload) != null && M.sign) && !((z = s.desc) != null && z.sign) && l.debug && console.warn("上传私有加密仓库必须在config或desc中配置sign方法进行图片/文件签名鉴权,否则图片将无法显示和预览!"), o.value = await ze(s, {
|
|
3791
3791
|
drag: !0,
|
|
3792
3792
|
listType: N.value ? "picture-card" : "text",
|
|
3793
|
-
multiple: !!
|
|
3794
|
-
limit:
|
|
3795
|
-
autoUpload:
|
|
3796
|
-
accept:
|
|
3797
|
-
maxSize:
|
|
3793
|
+
multiple: !!s.desc.multiple,
|
|
3794
|
+
limit: s.desc.multiple ? s.desc.limit || 20 : 1,
|
|
3795
|
+
autoUpload: s.desc.autoUpload ?? !0,
|
|
3796
|
+
accept: s.desc.accept || Kl[`${s.desc.upType || "image"}Types`].join(","),
|
|
3797
|
+
maxSize: s.desc.maxSize || (N.value ? (v = l.upload) == null ? void 0 : v.maxISize : (F = l.upload) == null ? void 0 : F.maxFSize),
|
|
3798
3798
|
beforeUpload: B,
|
|
3799
3799
|
onRemove: L,
|
|
3800
3800
|
onSuccess: Q,
|
|
3801
3801
|
onExceed: S,
|
|
3802
3802
|
onPreview: I,
|
|
3803
3803
|
...ge()
|
|
3804
|
-
}), (le =
|
|
3804
|
+
}), (le = s.desc) != null && le.uploadFn || ($ = l.upload) != null && $.uploadFn ? o.value.httpRequest = D : (((K = l.upload) == null ? void 0 : K.type) === "minio" && (o.value.method = l.upload.actionType || "PUT"), o.value.action = i), f.value = !0;
|
|
3805
3805
|
});
|
|
3806
|
-
async function B(
|
|
3806
|
+
async function B(M) {
|
|
3807
3807
|
var v, F, le, $, K, g, y, V, h;
|
|
3808
|
-
|
|
3809
|
-
const
|
|
3810
|
-
if (
|
|
3811
|
-
return tt.warning(
|
|
3808
|
+
M.suffix = `${M.name.substring(M.name.lastIndexOf("."))}`.split("?")[0];
|
|
3809
|
+
const z = A(M, Kl[`${s.desc.upType || "image"}Suffixes`], o.value.maxSize);
|
|
3810
|
+
if (z !== !0)
|
|
3811
|
+
return tt.warning(z), !1;
|
|
3812
3812
|
try {
|
|
3813
|
-
|
|
3813
|
+
M.url = URL.createObjectURL(M);
|
|
3814
3814
|
let ae = {};
|
|
3815
|
-
(v =
|
|
3816
|
-
"Content-Type":
|
|
3815
|
+
(v = s.desc) != null && v.action && (ae = await Y((F = s.desc) == null ? void 0 : F.action, { fileName: M.name })), ae.action || (ae = await Y((le = l.upload) == null ? void 0 : le.action, { fileName: M.name })), i.value = ae.action, M.uploadId = ae.uploadId || "", M.furl = ae.furl, (($ = s.desc) != null && $.token || (K = l.upload) != null && K.token) && (o.value.data = { token: await U(((g = s.desc) == null ? void 0 : g.token) || ((y = l.upload) == null ? void 0 : y.token), M) }), !((V = s.desc) != null && V.uploadFn) && ((h = l.upload) == null ? void 0 : h.type) === "minio" && (o.value.data = M, o.value.headers = {
|
|
3816
|
+
"Content-Type": M.type
|
|
3817
3817
|
});
|
|
3818
3818
|
} catch (ae) {
|
|
3819
3819
|
l.debug && console.log("获取action出错: ", ae);
|
|
3820
3820
|
}
|
|
3821
3821
|
}
|
|
3822
|
-
async function Y(
|
|
3822
|
+
async function Y(M, z) {
|
|
3823
3823
|
var F, le, $, K, g, y, V, h, ae, Ne, ve, Pe, C, T, ie;
|
|
3824
3824
|
const v = { action: "", uploadId: void 0, token: void 0, furl: "" };
|
|
3825
|
-
if (typeof
|
|
3826
|
-
const he =
|
|
3827
|
-
typeof xe == "object" ? (v.action = it((($ = (le =
|
|
3825
|
+
if (typeof M == "function") {
|
|
3826
|
+
const he = M({ ...z || {}, type: (F = l.upload) == null ? void 0 : F.type }), xe = lt(he) ? await he : he;
|
|
3827
|
+
typeof xe == "object" ? (v.action = it((($ = (le = s.desc) == null ? void 0 : le.actionMap) == null ? void 0 : $.actionKey) || ((g = (K = l.upload) == null ? void 0 : K.actionMap) == null ? void 0 : g.actionKey) || [], xe), v.uploadId = it(((V = (y = s.desc) == null ? void 0 : y.actionMap) == null ? void 0 : V.uploadIdKey) || ((ae = (h = l.upload) == null ? void 0 : h.actionMap) == null ? void 0 : ae.uploadIdKey) || [], xe), v.token = it(((Ne = s.desc) == null ? void 0 : Ne.tokenKey) || ((ve = l.upload) == null ? void 0 : ve.tokenKey) || [], xe), v.furl = it(((C = (Pe = s.desc) == null ? void 0 : Pe.actionMap) == null ? void 0 : C.objectUrlKey) || ((ie = (T = l.upload) == null ? void 0 : T.actionMap) == null ? void 0 : ie.objectUrlKey) || [], xe)) : v.action = xe, c.value = xe;
|
|
3828
3828
|
} else
|
|
3829
|
-
|
|
3829
|
+
M !== void 0 && (v.action = M);
|
|
3830
3830
|
return v;
|
|
3831
3831
|
}
|
|
3832
|
-
async function U(
|
|
3832
|
+
async function U(M, z) {
|
|
3833
3833
|
var F, le;
|
|
3834
3834
|
let v = "";
|
|
3835
|
-
if (typeof
|
|
3836
|
-
const $ =
|
|
3837
|
-
typeof K == "object" ? v = it(((F =
|
|
3835
|
+
if (typeof M == "function") {
|
|
3836
|
+
const $ = M(z), K = lt($) ? await $ : $;
|
|
3837
|
+
typeof K == "object" ? v = it(((F = s.desc) == null ? void 0 : F.tokenKey) || ((le = l.upload) == null ? void 0 : le.tokenKey) || [], K) : v = K;
|
|
3838
3838
|
}
|
|
3839
3839
|
return v;
|
|
3840
3840
|
}
|
|
3841
|
-
async function Q(
|
|
3841
|
+
async function Q(M, z) {
|
|
3842
3842
|
var v, F, le, $, K, g, y;
|
|
3843
|
-
if (
|
|
3844
|
-
const V = it(((F = (v = l.upload) == null ? void 0 : v.actionMap) == null ? void 0 : F.objectUrlKey) || [],
|
|
3845
|
-
V && (
|
|
3843
|
+
if (M && Object.keys(M).length > 0) {
|
|
3844
|
+
const V = it(((F = (v = l.upload) == null ? void 0 : v.actionMap) == null ? void 0 : F.objectUrlKey) || [], M.request || M.result || M);
|
|
3845
|
+
V && (z.raw.furl = V);
|
|
3846
3846
|
}
|
|
3847
3847
|
if ((le = l.upload) != null && le.sign) {
|
|
3848
3848
|
let V = {};
|
|
3849
|
-
const h = (K = l.upload) == null ? void 0 : K.sign(
|
|
3850
|
-
lt(h) ? V = await h : V = h,
|
|
3849
|
+
const h = (K = l.upload) == null ? void 0 : K.sign(z.raw[(($ = l.upload) == null ? void 0 : $.type) === "aliyun" ? "furl" : "uploadId"]);
|
|
3850
|
+
lt(h) ? V = await h : V = h, z.raw.previewUrl = it(((g = l.upload.signMap) == null ? void 0 : g.previewUrlKey) || [], V), z.raw.shareUrl = it(((y = l.upload.signMap) == null ? void 0 : y.objectUrlKey) || [], V), z.raw.url = z.raw.shareUrl;
|
|
3851
3851
|
} else
|
|
3852
|
-
|
|
3853
|
-
N.value ?
|
|
3852
|
+
z.raw.previewUrl = z.raw.furl, z.raw.shareUrl = z.raw.furl;
|
|
3853
|
+
N.value ? z.url = b(z.raw) : z.url = z.raw.furl, P(z, 1);
|
|
3854
3854
|
}
|
|
3855
|
-
function b(
|
|
3856
|
-
const
|
|
3855
|
+
function b(M) {
|
|
3856
|
+
const z = M.shareUrl || M.signUrl || M.url || M.furl, v = `${((M == null ? void 0 : M.suffix) || z.substring(z.split("?")[0].lastIndexOf(".")) || "").toLocaleLowerCase()}`.split("?")[0];
|
|
3857
3857
|
if (v) {
|
|
3858
3858
|
if (Zt.indexOf(v) >= 0)
|
|
3859
|
-
return
|
|
3859
|
+
return z;
|
|
3860
3860
|
for (let F = 0; F < Wt.length; F++)
|
|
3861
3861
|
for (let le = 0; le < Wt[F].suffixes.length; le++)
|
|
3862
3862
|
if (Wt[F].suffixes[le] === v)
|
|
3863
3863
|
return n[Wt[F].type];
|
|
3864
3864
|
}
|
|
3865
|
-
return console.log("!props.desc.upType || props.desc.upType === 'image' ? fileUrl : iconMap.file: ", !
|
|
3865
|
+
return console.log("!props.desc.upType || props.desc.upType === 'image' ? fileUrl : iconMap.file: ", !s.desc.upType || s.desc.upType === "image" ? z : n.file), !s.desc.upType || s.desc.upType === "image" ? z : n.file;
|
|
3866
3866
|
}
|
|
3867
|
-
function L(
|
|
3868
|
-
P(
|
|
3867
|
+
function L(M) {
|
|
3868
|
+
P(M, 0);
|
|
3869
3869
|
}
|
|
3870
|
-
function P(
|
|
3870
|
+
function P(M, z) {
|
|
3871
3871
|
var v, F, le;
|
|
3872
|
-
if (
|
|
3872
|
+
if (z === 1)
|
|
3873
3873
|
a.value.push({
|
|
3874
|
-
name:
|
|
3875
|
-
furl:
|
|
3876
|
-
url: N.value ? b(
|
|
3877
|
-
fsize:
|
|
3878
|
-
uid:
|
|
3879
|
-
mimeType: (F =
|
|
3880
|
-
suffix: ((le =
|
|
3881
|
-
busId:
|
|
3882
|
-
busType:
|
|
3874
|
+
name: M.name,
|
|
3875
|
+
furl: M.raw.furl || M.furl || M.url,
|
|
3876
|
+
url: N.value ? b(M.raw) : ((v = M == null ? void 0 : M.raw) == null ? void 0 : v.shareUrl) || M.url,
|
|
3877
|
+
fsize: M.size,
|
|
3878
|
+
uid: M.uid,
|
|
3879
|
+
mimeType: (F = M.raw) == null ? void 0 : F.type,
|
|
3880
|
+
suffix: ((le = M.raw.suffix) == null ? void 0 : le.toLocaleLowerCase()) || "",
|
|
3881
|
+
busId: s.desc.busId,
|
|
3882
|
+
busType: s.desc.busType
|
|
3883
3883
|
});
|
|
3884
3884
|
else {
|
|
3885
|
-
const $ = a.value.findIndex((K) => K.uid ===
|
|
3885
|
+
const $ = a.value.findIndex((K) => K.uid === M.uid);
|
|
3886
3886
|
$ >= 0 && a.value.splice($, 1);
|
|
3887
3887
|
}
|
|
3888
3888
|
r("validateThis");
|
|
3889
3889
|
}
|
|
3890
|
-
function I(
|
|
3891
|
-
var
|
|
3892
|
-
Zt.indexOf((((
|
|
3890
|
+
function I(M) {
|
|
3891
|
+
var z, v;
|
|
3892
|
+
Zt.indexOf((((z = M.raw) == null ? void 0 : z.suffix) || M.suffix || "").toLocaleLowerCase()) >= 0 ? (m.value = G.value.findIndex((F) => {
|
|
3893
3893
|
var le, $;
|
|
3894
|
-
return F === (
|
|
3895
|
-
}), m.value < 0 && (m.value = 0), p.value = !0) : window.open(((v =
|
|
3894
|
+
return F === (M.signUrl || ((le = M.raw) == null ? void 0 : le.shareUrl) || (($ = M.raw) == null ? void 0 : $.signUrl) || M.furl);
|
|
3895
|
+
}), m.value < 0 && (m.value = 0), p.value = !0) : window.open(((v = M.raw) == null ? void 0 : v.previewUrl) || M.previewUrl, "_blank");
|
|
3896
3896
|
}
|
|
3897
3897
|
function S() {
|
|
3898
3898
|
tt.error("数量最多只能上传" + o.value.limit + "个图片/文件!!!");
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function D(M) {
|
|
3901
3901
|
var v, F;
|
|
3902
|
-
return
|
|
3902
|
+
return M.action = i.value, M.actionInfo = c.value, (((v = s.desc) == null ? void 0 : v.uploadFn) || ((F = l.upload) == null ? void 0 : F.uploadFn))(M);
|
|
3903
3903
|
}
|
|
3904
3904
|
function x() {
|
|
3905
3905
|
}
|
|
3906
|
-
function A(
|
|
3907
|
-
return
|
|
3906
|
+
function A(M, z, v) {
|
|
3907
|
+
return M.size > v ? "上传文件大小不能超过 " + (v / 1024 / 1024).toFixed(2) + "M~" : z && z.length > 0 && z.every((F) => F !== (M.suffix || "").toLocaleLowerCase()) ? "上传文件类型错误,请重新选择~" : !0;
|
|
3908
3908
|
}
|
|
3909
3909
|
return ue(
|
|
3910
|
-
() =>
|
|
3911
|
-
(
|
|
3912
|
-
JSON.stringify(
|
|
3910
|
+
() => s.modelValue,
|
|
3911
|
+
(M, z) => {
|
|
3912
|
+
JSON.stringify(M) !== JSON.stringify(z) && (typeof M == "string" ? M !== "" ? a.value = [{ url: M, furl: M, suffix: `${M.substring(M.lastIndexOf(".")).toLocaleLowerCase()}`.split("?")[0] }] : a.value = [] : a.value = (M == null ? void 0 : M.map((v) => {
|
|
3913
3913
|
var F, le, $, K, g, y;
|
|
3914
3914
|
return N.value && (v.url = b(v) || it(((le = (F = l.upload) == null ? void 0 : F.signMap) == null ? void 0 : le.previewUrlKey) || [], v), v.furl = v.furl || b(v)), v.suffix = `${(v.suffix || ((K = v.url) == null ? void 0 : K.substring((($ = v.url) == null ? void 0 : $.lastIndexOf(".")) || 0)) || "").toLocaleLowerCase()}`.split("?")[0], v.previewUrl = it(((y = (g = l.upload) == null ? void 0 : g.signMap) == null ? void 0 : y.previewUrlKey) || [], v) || v.furl || v.url, v;
|
|
3915
3915
|
})) || []);
|
|
3916
3916
|
},
|
|
3917
3917
|
{ immediate: !0 }
|
|
3918
|
-
), (
|
|
3918
|
+
), ue(
|
|
3919
|
+
() => s.modelValue,
|
|
3920
|
+
(M) => {
|
|
3921
|
+
Array.isArray(M) && M.forEach((z) => {
|
|
3922
|
+
if (z && !z.url) {
|
|
3923
|
+
const v = z.signUrl || z.shareUrl || z.previewUrl || z.furl;
|
|
3924
|
+
v && (z.url = v);
|
|
3925
|
+
}
|
|
3926
|
+
});
|
|
3927
|
+
},
|
|
3928
|
+
{ deep: !0, immediate: !0 }
|
|
3929
|
+
), (M, z) => {
|
|
3919
3930
|
var K;
|
|
3920
3931
|
const v = O("el-icon"), F = O("el-upload"), le = O("el-image-viewer"), $ = O("el-button");
|
|
3921
|
-
return
|
|
3932
|
+
return f.value ? (d(), w("div", {
|
|
3922
3933
|
key: 0,
|
|
3923
3934
|
class: Mt(["ele-form-upload-image", { "ele-form-upload-file": !!e.desc.upType }])
|
|
3924
3935
|
}, [
|
|
3925
|
-
Z(F, ee({ class: "ele-image-upload" }, o.value, ye(
|
|
3936
|
+
Z(F, ee({ class: "ele-image-upload" }, o.value, ye(u.value), {
|
|
3926
3937
|
disabled: e.disabled,
|
|
3927
3938
|
fileList: te(a) || [],
|
|
3928
3939
|
class: { "over-limit": ((K = te(a)) == null ? void 0 : K.length) >= o.value.limit, "upload-disabled": o.value.disabled }
|
|
@@ -3950,7 +3961,7 @@ const ga = /* @__PURE__ */ Te(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3950
3961
|
}, 16, ["disabled", "fileList", "class"]),
|
|
3951
3962
|
p.value ? (d(), k(le, {
|
|
3952
3963
|
key: 0,
|
|
3953
|
-
onClose:
|
|
3964
|
+
onClose: z[0] || (z[0] = (g) => p.value = !1),
|
|
3954
3965
|
teleported: "",
|
|
3955
3966
|
initialIndex: m.value,
|
|
3956
3967
|
"url-list": G.value
|
|
@@ -3963,7 +3974,7 @@ const ga = /* @__PURE__ */ Te(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3963
3974
|
onClick: x,
|
|
3964
3975
|
disabled: o.value.disabled
|
|
3965
3976
|
}, {
|
|
3966
|
-
default: _(() => [...
|
|
3977
|
+
default: _(() => [...z[1] || (z[1] = [
|
|
3967
3978
|
pe(" 上传到服务器 ", -1)
|
|
3968
3979
|
])]),
|
|
3969
3980
|
_: 1
|
|
@@ -4115,10 +4126,10 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4115
4126
|
emits: ["request", "reset", "cancel"],
|
|
4116
4127
|
setup(e, { expose: t, emit: l }) {
|
|
4117
4128
|
var K;
|
|
4118
|
-
const n = de("lodash"),
|
|
4129
|
+
const n = de("lodash"), s = de("defaultConf"), r = l, a = e, o = j(), f = j(!1), u = ge(), i = j([]), c = j(!1);
|
|
4119
4130
|
let N = null;
|
|
4120
4131
|
j([]);
|
|
4121
|
-
const p = ne(() => a.size ||
|
|
4132
|
+
const p = ne(() => a.size || s.size), m = [...La, ...((K = s.form) == null ? void 0 : K.comList) || []], G = ne(() => ({ display: "flex", flexDirection: a.isTable ? "row" : "column" })), B = ne(() => {
|
|
4122
4133
|
var g, y;
|
|
4123
4134
|
return {
|
|
4124
4135
|
...a.formAttrs,
|
|
@@ -4168,7 +4179,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4168
4179
|
}
|
|
4169
4180
|
}), Ae(() => {
|
|
4170
4181
|
setTimeout(() => {
|
|
4171
|
-
|
|
4182
|
+
z();
|
|
4172
4183
|
}, 50);
|
|
4173
4184
|
}), g;
|
|
4174
4185
|
}), U = ne(() => {
|
|
@@ -4221,10 +4232,10 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4221
4232
|
h._type = m.includes(h.type.toLowerCase()) ? "el-plus-form-" + h.type : h.type, h._vif = L(h, "vif", g, !h.isBlank || !0), h._disabled = L(h, "disabled", g, a.disabled ?? !1);
|
|
4222
4233
|
const ae = {};
|
|
4223
4234
|
if (h._attrs = Object.assign({}, L(h, "attrs", g), ae), h._label = L(h, "label", g), h._tip = L(h, "tip", g), h._required = L(h, "required", g, !1), !h._tip && !h.noTip && h.type === "upload") {
|
|
4224
|
-
const Ne = h.maxSize || (!h.upType || h.upType === "image" ? (y =
|
|
4235
|
+
const Ne = h.maxSize || (!h.upType || h.upType === "image" ? (y = s.upload) == null ? void 0 : y.maxISize : (V = s.upload) == null ? void 0 : V.maxFSize) || 1048576;
|
|
4225
4236
|
h._tip = `最多上传${h.multiple ? h.limit || 20 : 1}${h.upType === "file" ? "个文件" : "张图片"},且单个文件大小不能超过 ${(Ne / 1024 / 1024).toFixed(2)} M`;
|
|
4226
4237
|
}
|
|
4227
|
-
h.default !== void 0 && h.default !== null && a.modelValue[g] === void 0 && (a.modelValue[g] = h.default), h.auth && (
|
|
4238
|
+
h.default !== void 0 && h.default !== null && a.modelValue[g] === void 0 && (a.modelValue[g] = h.default), h.auth && (s.auth ? h._vif = s.auth(h.auth) : console.warn("使用auth属性,请在crud注册时传入auth校验方法~"));
|
|
4228
4239
|
} else
|
|
4229
4240
|
h && h.isBlank && (h._vif = L(h, "vif", "", !0));
|
|
4230
4241
|
}
|
|
@@ -4249,7 +4260,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4249
4260
|
confirm: `确定要${a.resetBtnText || "重置"}?`,
|
|
4250
4261
|
size: p.value,
|
|
4251
4262
|
disabled: c.value,
|
|
4252
|
-
on: { click:
|
|
4263
|
+
on: { click: M }
|
|
4253
4264
|
}
|
|
4254
4265
|
}), a.showSubmit && g.push({
|
|
4255
4266
|
field: "_reset_btn",
|
|
@@ -4262,7 +4273,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4262
4273
|
on: { click: A }
|
|
4263
4274
|
}
|
|
4264
4275
|
})), g;
|
|
4265
|
-
}), L = (g, y, V, h = null) => typeof g[y] == "function" ? (
|
|
4276
|
+
}), L = (g, y, V, h = null) => typeof g[y] == "function" ? (f.value = !0, g[y](a.modelValue, a.modelValue[V])) : typeof g[y] == "boolean" ? g[y] ?? !1 : typeof g[y] == "string" ? g[y] ?? "" : g[y] ?? h, P = () => new Promise((g, y) => {
|
|
4266
4277
|
Y.value ? o.value.validate((V, h) => {
|
|
4267
4278
|
V ? g() : y(h);
|
|
4268
4279
|
}) : g();
|
|
@@ -4311,7 +4322,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4311
4322
|
h[y] = V;
|
|
4312
4323
|
}
|
|
4313
4324
|
return h;
|
|
4314
|
-
},
|
|
4325
|
+
}, D = () => {
|
|
4315
4326
|
const g = {};
|
|
4316
4327
|
return (a.groupFormDesc || a.formDesc) && Object.keys(a.modelValue).map((y) => {
|
|
4317
4328
|
["provinceId", "cityId", "zoneId", "streetId", "startTime", "endTime"].indexOf(y) >= 0 || (a.groupFormDesc || a.formDesc) && Object.assign(g, S((a.groupFormDesc || a.formDesc || {})[y], y, a.modelValue[y]));
|
|
@@ -4321,10 +4332,10 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4321
4332
|
g.CID && g.changeValidImg();
|
|
4322
4333
|
});
|
|
4323
4334
|
}, A = async () => {
|
|
4324
|
-
let g =
|
|
4335
|
+
let g = D();
|
|
4325
4336
|
try {
|
|
4326
|
-
if (
|
|
4327
|
-
const y =
|
|
4337
|
+
if (u.beforeValidate) {
|
|
4338
|
+
const y = u.beforeValidate(g);
|
|
4328
4339
|
if (!(lt(y) ? await y : y))
|
|
4329
4340
|
return;
|
|
4330
4341
|
}
|
|
@@ -4339,8 +4350,8 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4339
4350
|
V && V.valueFormat && typeof V.valueFormat == "function" && (g[y] = V.valueFormat(g[y], g));
|
|
4340
4351
|
}
|
|
4341
4352
|
}
|
|
4342
|
-
if (
|
|
4343
|
-
const y =
|
|
4353
|
+
if (u.beforeRequest) {
|
|
4354
|
+
const y = u.beforeRequest(g), V = lt(y) ? await y : y;
|
|
4344
4355
|
if (V === !1)
|
|
4345
4356
|
return;
|
|
4346
4357
|
typeof V == "object" && (g = V);
|
|
@@ -4351,15 +4362,15 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4351
4362
|
try {
|
|
4352
4363
|
let y = {};
|
|
4353
4364
|
a.requestFn && (a.updateFn && g && g[a.idKey] ? y = await a.updateFn(g) : y = await a.requestFn(g)), Ae(() => {
|
|
4354
|
-
|
|
4365
|
+
u.success && typeof u.success == "function" && u.success({
|
|
4355
4366
|
response: y,
|
|
4356
4367
|
formData: g,
|
|
4357
4368
|
callBack: () => c.value = !1
|
|
4358
4369
|
});
|
|
4359
4370
|
});
|
|
4360
4371
|
} catch (y) {
|
|
4361
|
-
if (console.log("error: ", y),
|
|
4362
|
-
|
|
4372
|
+
if (console.log("error: ", y), u.requestError && typeof u.requestError == "function")
|
|
4373
|
+
u.requestError(y);
|
|
4363
4374
|
else {
|
|
4364
4375
|
if (y instanceof Error)
|
|
4365
4376
|
try {
|
|
@@ -4368,22 +4379,22 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4368
4379
|
}
|
|
4369
4380
|
else
|
|
4370
4381
|
y instanceof Object;
|
|
4371
|
-
|
|
4382
|
+
u.requestError && typeof u.requestError == "function" && u.requestError();
|
|
4372
4383
|
}
|
|
4373
4384
|
c.value = !1;
|
|
4374
4385
|
} finally {
|
|
4375
|
-
a.isDialog || (c.value = !1),
|
|
4386
|
+
a.isDialog || (c.value = !1), u.requestEnd && typeof u.requestEnd == "function" && u.requestEnd();
|
|
4376
4387
|
}
|
|
4377
4388
|
} catch (y) {
|
|
4378
4389
|
console.log("error: ", y);
|
|
4379
4390
|
}
|
|
4380
|
-
},
|
|
4391
|
+
}, M = () => {
|
|
4381
4392
|
a.modelValue && Object.keys(a.modelValue).map((g) => {
|
|
4382
4393
|
N && N[g] !== void 0 && N[g] !== null ? a.modelValue[g] = N[g] : a.groupFormDesc ? a.modelValue[g] = a.groupFormDesc && a.groupFormDesc[g] && a.groupFormDesc[g].default || null : a.modelValue[g] = a.formDesc && a.formDesc[g] && a.formDesc[g].default || null;
|
|
4383
4394
|
}), setTimeout(() => {
|
|
4384
|
-
|
|
4395
|
+
z();
|
|
4385
4396
|
}, 100), r("reset");
|
|
4386
|
-
},
|
|
4397
|
+
}, z = () => {
|
|
4387
4398
|
var g;
|
|
4388
4399
|
(g = o.value) == null || g.clearValidate();
|
|
4389
4400
|
}, v = () => {
|
|
@@ -4394,7 +4405,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4394
4405
|
y != null && y.clear && typeof (y == null ? void 0 : y.clear) == "function" && y.clear();
|
|
4395
4406
|
})), Ae(() => {
|
|
4396
4407
|
setTimeout(() => {
|
|
4397
|
-
|
|
4408
|
+
z();
|
|
4398
4409
|
}, 50);
|
|
4399
4410
|
});
|
|
4400
4411
|
};
|
|
@@ -4411,7 +4422,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4411
4422
|
}
|
|
4412
4423
|
function $() {
|
|
4413
4424
|
Q(), Ae(() => {
|
|
4414
|
-
|
|
4425
|
+
z();
|
|
4415
4426
|
});
|
|
4416
4427
|
}
|
|
4417
4428
|
return ue(
|
|
@@ -4422,14 +4433,14 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4422
4433
|
), ue(
|
|
4423
4434
|
() => a.modelValue,
|
|
4424
4435
|
(g) => {
|
|
4425
|
-
(!N ||
|
|
4436
|
+
(!N || f.value && g) && (N || (N = n.cloneDeep(g)), Q());
|
|
4426
4437
|
},
|
|
4427
4438
|
{ deep: !0 }
|
|
4428
4439
|
), rt(async () => {
|
|
4429
|
-
|
|
4430
|
-
|
|
4440
|
+
f.value || Q(), Ae(() => {
|
|
4441
|
+
z();
|
|
4431
4442
|
});
|
|
4432
|
-
}), t({ fid: a.fid, formRef: o, submit: A, getData:
|
|
4443
|
+
}), t({ fid: a.fid, formRef: o, submit: A, getData: D, validate: P, reset: M, clearValid: z, clear: v, changeValidImg: x, refresh: $, init: F, totalRows: ne(() => {
|
|
4433
4444
|
var g;
|
|
4434
4445
|
return ((g = U.value) == null ? void 0 : g.length) || 0;
|
|
4435
4446
|
}) }), (g, y) => {
|
|
@@ -4578,40 +4589,40 @@ const Lr = {
|
|
|
4578
4589
|
},
|
|
4579
4590
|
emits: ["update:show", "update:modelValue", "before-validate", "before-request", "request-success", "request-error", "request-end", "request", "cancel"],
|
|
4580
4591
|
setup(e, { expose: t, emit: l }) {
|
|
4581
|
-
const n = de("lodash"),
|
|
4582
|
-
function
|
|
4592
|
+
const n = de("lodash"), s = l, r = e, a = j([]), o = j();
|
|
4593
|
+
function f() {
|
|
4583
4594
|
Ae(() => {
|
|
4584
4595
|
var P;
|
|
4585
4596
|
const L = (P = o.value) == null ? void 0 : P.querySelector(".el-form-item.is-error");
|
|
4586
4597
|
L == null || L.scrollIntoView({ block: "center" });
|
|
4587
4598
|
});
|
|
4588
4599
|
}
|
|
4589
|
-
const
|
|
4600
|
+
const u = j([]), i = ne({
|
|
4590
4601
|
get: () => r.modelValue,
|
|
4591
4602
|
set(L) {
|
|
4592
|
-
|
|
4603
|
+
s("update:modelValue", L);
|
|
4593
4604
|
}
|
|
4594
4605
|
}), c = ne(() => {
|
|
4595
4606
|
const L = [];
|
|
4596
|
-
a.value = [],
|
|
4607
|
+
a.value = [], u.value = [];
|
|
4597
4608
|
const P = (/* @__PURE__ */ new Date()).getTime();
|
|
4598
4609
|
r.formGroup.group.map((x, A) => {
|
|
4599
4610
|
x.fid = x.fid || `${P + A}`, x._vif = N.value(x.vif);
|
|
4600
4611
|
});
|
|
4601
|
-
const I = r.formGroup.group.filter((x, A) => (x._vif &&
|
|
4612
|
+
const I = r.formGroup.group.filter((x, A) => (x._vif && u.value.push(A), x._vif)), S = n.cloneDeep(r.formGroup), D = r.formGroup.column || 1;
|
|
4602
4613
|
return delete S.group, delete S.column, S.beforeValidate = async (x) => {
|
|
4603
4614
|
if (r.formGroup.beforeValidate) {
|
|
4604
|
-
const
|
|
4605
|
-
if (!(lt(
|
|
4615
|
+
const M = r.formGroup.beforeValidate(x);
|
|
4616
|
+
if (!(lt(M) ? await M : M))
|
|
4606
4617
|
return !1;
|
|
4607
4618
|
}
|
|
4608
|
-
return (await Promise.allSettled(a.value.map((
|
|
4619
|
+
return (await Promise.allSettled(a.value.map((M) => M.validate()))).some((M) => M.status === "rejected") ? (f(), !1) : !0;
|
|
4609
4620
|
}, S.groupFormDesc = {}, I.map((x) => {
|
|
4610
4621
|
Object.assign(S.groupFormDesc, x.formDesc);
|
|
4611
4622
|
}), S.disabledTab = r.disabledTab, I.map((x, A) => {
|
|
4612
4623
|
L.push({
|
|
4613
4624
|
title: x.title,
|
|
4614
|
-
formProps: Object.assign({ column: x.column ||
|
|
4625
|
+
formProps: Object.assign({ column: x.column || D }, A === I.length - 1 ? S : { showBtns: !1 }, x || {})
|
|
4615
4626
|
});
|
|
4616
4627
|
}), L;
|
|
4617
4628
|
}), N = ne(() => (L) => typeof L == "function" ? L(r.modelValue) : typeof L == "boolean" ? L : !0);
|
|
@@ -4628,7 +4639,7 @@ const Lr = {
|
|
|
4628
4639
|
async function G() {
|
|
4629
4640
|
const L = await Promise.allSettled(a.value.map((I) => I.validate())), P = L.find((I) => I.status === "rejected");
|
|
4630
4641
|
if (P)
|
|
4631
|
-
throw
|
|
4642
|
+
throw f(), P.reason;
|
|
4632
4643
|
return L;
|
|
4633
4644
|
}
|
|
4634
4645
|
async function B() {
|
|
@@ -4641,7 +4652,7 @@ const Lr = {
|
|
|
4641
4652
|
return await Promise.all(a.value.map((L) => L.init()));
|
|
4642
4653
|
}
|
|
4643
4654
|
function Q() {
|
|
4644
|
-
|
|
4655
|
+
s("cancel");
|
|
4645
4656
|
}
|
|
4646
4657
|
function b() {
|
|
4647
4658
|
const L = {};
|
|
@@ -4655,12 +4666,12 @@ const Lr = {
|
|
|
4655
4666
|
ref: o
|
|
4656
4667
|
}, [
|
|
4657
4668
|
(d(!0), w(se, null, fe(c.value, (I, S) => {
|
|
4658
|
-
var
|
|
4669
|
+
var D;
|
|
4659
4670
|
return d(), w(se, {
|
|
4660
|
-
key: S + (((
|
|
4671
|
+
key: S + (((D = I.formProps) == null ? void 0 : D.fid) || "")
|
|
4661
4672
|
}, [
|
|
4662
|
-
Ge()["top" +
|
|
4663
|
-
De(L.$slots, "title" +
|
|
4673
|
+
Ge()["top" + u.value[S]] ? De(L.$slots, "top" + u.value[S], { key: 0 }) : R("", !0),
|
|
4674
|
+
De(L.$slots, "title" + u.value[S], {}, () => [
|
|
4664
4675
|
I.title ? (d(), w("div", Lr, Me(I.title), 1)) : R("", !0)
|
|
4665
4676
|
]),
|
|
4666
4677
|
Z(Tl, ee({
|
|
@@ -4677,7 +4688,7 @@ const Lr = {
|
|
|
4677
4688
|
onCancel: Q
|
|
4678
4689
|
}), {
|
|
4679
4690
|
default: _(() => [
|
|
4680
|
-
Ge()["default" +
|
|
4691
|
+
Ge()["default" + u.value[S]] ? De(L.$slots, "default" + u.value[S], { key: 0 }) : R("", !0)
|
|
4681
4692
|
]),
|
|
4682
4693
|
_: 2
|
|
4683
4694
|
}, 1040, ["modelValue", "onReset"])
|
|
@@ -4706,36 +4717,36 @@ const Er = {
|
|
|
4706
4717
|
},
|
|
4707
4718
|
emits: ["update:show", "update:modelValue"],
|
|
4708
4719
|
setup(e, { expose: t, emit: l }) {
|
|
4709
|
-
const n = l,
|
|
4710
|
-
get: () =>
|
|
4720
|
+
const n = l, s = e, r = ne({
|
|
4721
|
+
get: () => s.modelValue,
|
|
4711
4722
|
set(I) {
|
|
4712
4723
|
n("update:modelValue", I);
|
|
4713
4724
|
}
|
|
4714
4725
|
}), a = ne({
|
|
4715
4726
|
get() {
|
|
4716
4727
|
var I, S;
|
|
4717
|
-
return (S = (I = o.value) == null ? void 0 : I.refresh) == null || S.call(I),
|
|
4728
|
+
return (S = (I = o.value) == null ? void 0 : I.refresh) == null || S.call(I), s.show;
|
|
4718
4729
|
},
|
|
4719
4730
|
set(I) {
|
|
4720
4731
|
n("update:show", I);
|
|
4721
4732
|
}
|
|
4722
|
-
}), o = j(null), { width:
|
|
4723
|
-
if (!
|
|
4733
|
+
}), o = j(null), { width: f, top: u, modal: i, appendToBody: c, showClose: N, draggable: p, closeOnClickModal: m, destroyOnClose: G, ...B } = Object.assign({ width: "700px", draggable: !0, top: "15vh", closeOnClickModal: !1, showCancel: !0, destroyOnClose: !0 }, ge()), Y = { width: f, top: u, modal: i, appendToBody: c, showClose: N, draggable: p, closeOnClickModal: m }, U = ne(() => {
|
|
4734
|
+
if (!s.formGroup)
|
|
4724
4735
|
return {};
|
|
4725
|
-
const I =
|
|
4736
|
+
const I = s.formGroup.success;
|
|
4726
4737
|
return {
|
|
4727
|
-
...
|
|
4738
|
+
...s.formGroup,
|
|
4728
4739
|
success: (S) => {
|
|
4729
|
-
var
|
|
4730
|
-
|
|
4740
|
+
var D, x;
|
|
4741
|
+
s.success ? s.success(S) : I ? I(S) : (s.tableRef && (tt.success(typeof s.successTip == "function" ? s.successTip() : s.successTip), typeof ((D = s.tableRef) == null ? void 0 : D.reload) == "function" && ((x = s.tableRef) == null || x.reload())), a.value = !1, setTimeout(() => {
|
|
4731
4742
|
S.callBack();
|
|
4732
4743
|
}, 200));
|
|
4733
4744
|
}
|
|
4734
4745
|
};
|
|
4735
4746
|
});
|
|
4736
4747
|
function Q(I) {
|
|
4737
|
-
var S,
|
|
4738
|
-
|
|
4748
|
+
var S, D;
|
|
4749
|
+
s.success ? s.success(I) : s.tableRef && (tt.success(typeof s.successTip == "function" ? s.successTip() : s.successTip), typeof ((S = s.tableRef) == null ? void 0 : S.reload) == "function" && ((D = s.tableRef) == null || D.reload()), a.value = !1, setTimeout(() => {
|
|
4739
4750
|
I.callBack();
|
|
4740
4751
|
}, 200));
|
|
4741
4752
|
}
|
|
@@ -4748,8 +4759,8 @@ const Er = {
|
|
|
4748
4759
|
(I = o.value) == null || I.init();
|
|
4749
4760
|
}
|
|
4750
4761
|
function P() {
|
|
4751
|
-
var I, S,
|
|
4752
|
-
|
|
4762
|
+
var I, S, D;
|
|
4763
|
+
s.formGroup ? (S = (I = o.value) == null ? void 0 : I.validate) == null || S.call(I) : (D = o.value) == null || D.submit();
|
|
4753
4764
|
}
|
|
4754
4765
|
return t({
|
|
4755
4766
|
submit: P,
|
|
@@ -4774,23 +4785,23 @@ const Er = {
|
|
|
4774
4785
|
return (I = o.value) == null ? void 0 : I.init();
|
|
4775
4786
|
}
|
|
4776
4787
|
}), (I, S) => {
|
|
4777
|
-
const
|
|
4778
|
-
return d(), k(
|
|
4788
|
+
const D = O("el-dialog");
|
|
4789
|
+
return d(), k(D, ee({
|
|
4779
4790
|
class: "el-plus-form-dialog",
|
|
4780
4791
|
modelValue: a.value,
|
|
4781
4792
|
"onUpdate:modelValue": S[4] || (S[4] = (x) => a.value = x),
|
|
4782
|
-
title:
|
|
4793
|
+
title: s.title
|
|
4783
4794
|
}, Y, {
|
|
4784
4795
|
onClose: b,
|
|
4785
4796
|
onOpened: L
|
|
4786
4797
|
}), at({
|
|
4787
4798
|
default: _(() => [
|
|
4788
|
-
|
|
4799
|
+
s.formGroup ? (d(), k(Ca, {
|
|
4789
4800
|
key: 0,
|
|
4790
4801
|
ref_key: "refForm",
|
|
4791
4802
|
ref: o,
|
|
4792
4803
|
style: { padding: "20px" },
|
|
4793
|
-
isLoading:
|
|
4804
|
+
isLoading: s.isLoading,
|
|
4794
4805
|
modelValue: r.value,
|
|
4795
4806
|
"onUpdate:modelValue": S[0] || (S[0] = (x) => r.value = x),
|
|
4796
4807
|
formGroup: U.value,
|
|
@@ -4800,7 +4811,7 @@ const Er = {
|
|
|
4800
4811
|
ref_key: "refForm",
|
|
4801
4812
|
ref: o,
|
|
4802
4813
|
style: { padding: "20px" },
|
|
4803
|
-
isLoading:
|
|
4814
|
+
isLoading: s.isLoading,
|
|
4804
4815
|
isDialog: !0,
|
|
4805
4816
|
modelValue: r.value,
|
|
4806
4817
|
"onUpdate:modelValue": S[2] || (S[2] = (x) => r.value = x),
|
|
@@ -4846,10 +4857,10 @@ const Er = {
|
|
|
4846
4857
|
showText: { type: Boolean }
|
|
4847
4858
|
},
|
|
4848
4859
|
setup(e, { expose: t }) {
|
|
4849
|
-
const l = de("defaultConf"), n = e,
|
|
4860
|
+
const l = de("defaultConf"), n = e, s = j(!1), r = j();
|
|
4850
4861
|
let a = j([]);
|
|
4851
|
-
const o = j([]),
|
|
4852
|
-
let
|
|
4862
|
+
const o = j([]), f = j([]);
|
|
4863
|
+
let u = j([]);
|
|
4853
4864
|
const i = {
|
|
4854
4865
|
children: "children",
|
|
4855
4866
|
label: "label",
|
|
@@ -4858,30 +4869,30 @@ const Er = {
|
|
|
4858
4869
|
function c(U, Q) {
|
|
4859
4870
|
return U.map((b, L) => {
|
|
4860
4871
|
var P;
|
|
4861
|
-
b.idx = Q !== void 0 ? `${Q}-${L}` : `${L}`, (b.required || b.noHide || b.disabled) && (b.disabledcheckd = !0,
|
|
4872
|
+
b.idx = Q !== void 0 ? `${Q}-${L}` : `${L}`, (b.required || b.noHide || b.disabled) && (b.disabledcheckd = !0, u.value.splice(u.value.indexOf(b.idx), 1)), b.children && b.children.every((I) => I.disabled) ? b.disabled = !0 : b.children && b.disabled && b.children.map((I) => I.disabled = !0), ((P = b.children) == null ? void 0 : P.length) > 0 && c(b.children, `${b.idx}`), b.children || o.value.push(b.idx);
|
|
4862
4873
|
}), U;
|
|
4863
4874
|
}
|
|
4864
4875
|
function N() {
|
|
4865
|
-
|
|
4876
|
+
s.value = !0;
|
|
4866
4877
|
}
|
|
4867
4878
|
function p(U, Q) {
|
|
4868
|
-
Q.checkedAllKeys = Array.from(/* @__PURE__ */ new Set([...Q.checkedKeys, ...Q.halfCheckedKeys])),
|
|
4879
|
+
Q.checkedAllKeys = Array.from(/* @__PURE__ */ new Set([...Q.checkedKeys, ...Q.halfCheckedKeys])), u.value = o.value.filter((b) => Q.checkedAllKeys.indexOf(b) < 0);
|
|
4869
4880
|
}
|
|
4870
4881
|
function m(U) {
|
|
4871
4882
|
for (let Q = 0; Q < U.length; Q++)
|
|
4872
|
-
U[Q].children && m(U[Q].children),
|
|
4883
|
+
U[Q].children && m(U[Q].children), u.value.indexOf(U[Q].idx) < 0 ? U[Q].scShow = !0 : U[Q].scShow = !1;
|
|
4873
4884
|
}
|
|
4874
4885
|
function G() {
|
|
4875
|
-
if (o.value.length ===
|
|
4886
|
+
if (o.value.length === u.value.length)
|
|
4876
4887
|
return tt.warning("请至少选择一列!"), !1;
|
|
4877
|
-
m(n.column),
|
|
4888
|
+
m(n.column), u.value.length > 0 ? localStorage.setItem(l.storagePrefix + "hideColumnsList_" + n.tbName, u.value.join("__")) : localStorage.removeItem(l.storagePrefix + "hideColumnsList_" + n.tbName), s.value = !1;
|
|
4878
4889
|
}
|
|
4879
4890
|
function B() {
|
|
4880
4891
|
const U = localStorage.getItem(l.storagePrefix + "hideColumnsList_" + n.tbName);
|
|
4881
|
-
U != null && U.length > 0 && (
|
|
4892
|
+
U != null && U.length > 0 && (u.value = U.split("__")), a.value = c(n.column), m(n.column), f.value = o.value.filter((Q) => u.value.indexOf(Q) < 0);
|
|
4882
4893
|
}
|
|
4883
4894
|
function Y() {
|
|
4884
|
-
r.value.setCheckedKeys(
|
|
4895
|
+
r.value.setCheckedKeys(f.value), s.value = !1;
|
|
4885
4896
|
}
|
|
4886
4897
|
return rt(() => {
|
|
4887
4898
|
n.tbName && B();
|
|
@@ -4911,8 +4922,8 @@ const Er = {
|
|
|
4911
4922
|
}, null, 8, ["icon", "size"])),
|
|
4912
4923
|
Z(P, {
|
|
4913
4924
|
title: "编辑显示列",
|
|
4914
|
-
modelValue:
|
|
4915
|
-
"onUpdate:modelValue": Q[0] || (Q[0] = (I) =>
|
|
4925
|
+
modelValue: s.value,
|
|
4926
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (I) => s.value = I),
|
|
4916
4927
|
draggable: "",
|
|
4917
4928
|
width: "40%"
|
|
4918
4929
|
}, {
|
|
@@ -4924,7 +4935,7 @@ const Er = {
|
|
|
4924
4935
|
"show-checkbox": "",
|
|
4925
4936
|
"node-key": "idx",
|
|
4926
4937
|
"default-expand-all": !0,
|
|
4927
|
-
"default-checked-keys":
|
|
4938
|
+
"default-checked-keys": f.value,
|
|
4928
4939
|
props: i,
|
|
4929
4940
|
onCheck: p
|
|
4930
4941
|
}, null, 8, ["data", "default-checked-keys"])
|
|
@@ -4985,51 +4996,51 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
4985
4996
|
},
|
|
4986
4997
|
emits: ["query", "reset", "layoutChange"],
|
|
4987
4998
|
setup(e, { expose: t, emit: l }) {
|
|
4988
|
-
const n = de("defaultConf"),
|
|
4989
|
-
const
|
|
4999
|
+
const n = de("defaultConf"), s = l, r = e, a = j(), o = j(), f = j("card"), u = j(!0), i = j(0), c = ne(() => {
|
|
5000
|
+
const D = [];
|
|
4990
5001
|
return r.toolbar && r.toolbar.btns && r.toolbar.btns.map((x) => {
|
|
4991
|
-
|
|
4992
|
-
}),
|
|
5002
|
+
D.push({ ...Jo(x), size: x.size || r.size });
|
|
5003
|
+
}), D;
|
|
4993
5004
|
}), N = ne(() => {
|
|
4994
5005
|
var x;
|
|
4995
|
-
const
|
|
4996
|
-
return
|
|
5006
|
+
const D = (x = r.toolbar) == null ? void 0 : x.formConfig;
|
|
5007
|
+
return D != null && D.formDesc && Object.values(D == null ? void 0 : D.formDesc).map((A) => {
|
|
4997
5008
|
if (A.width)
|
|
4998
5009
|
return;
|
|
4999
|
-
let
|
|
5010
|
+
let M = 300;
|
|
5000
5011
|
switch (A.type) {
|
|
5001
5012
|
case "daterange":
|
|
5002
5013
|
case "input":
|
|
5003
5014
|
case "area":
|
|
5004
|
-
|
|
5015
|
+
M = 300;
|
|
5005
5016
|
break;
|
|
5006
5017
|
}
|
|
5007
|
-
A.width =
|
|
5008
|
-
}),
|
|
5018
|
+
A.width = M + "px";
|
|
5019
|
+
}), D;
|
|
5009
5020
|
}), p = ne(() => {
|
|
5010
|
-
var
|
|
5011
|
-
return ((x = (
|
|
5021
|
+
var D, x;
|
|
5022
|
+
return ((x = (D = r.toolbar) == null ? void 0 : D.formConfig) == null ? void 0 : x.collapsedRows) ?? 1;
|
|
5012
5023
|
}), m = ne(() => {
|
|
5013
|
-
var
|
|
5014
|
-
return !((
|
|
5024
|
+
var D, x, A;
|
|
5025
|
+
return !((D = r.toolbar) != null && D.collapsible) && !((A = (x = r.toolbar) == null ? void 0 : x.formConfig) != null && A.collapsedRows) ? !1 : i.value > p.value;
|
|
5015
5026
|
}), G = ne(() => {
|
|
5016
|
-
var
|
|
5017
|
-
return !((
|
|
5027
|
+
var D, x, A;
|
|
5028
|
+
return !((D = r.toolbar) != null && D.collapsible) && !((A = (x = r.toolbar) == null ? void 0 : x.formConfig) != null && A.collapsedRows) || !u.value ? -1 : p.value;
|
|
5018
5029
|
}), B = ne(() => {
|
|
5019
5030
|
var x;
|
|
5020
|
-
let
|
|
5021
|
-
return
|
|
5022
|
-
A.label = A.label || `导出Excel ${
|
|
5023
|
-
}),
|
|
5031
|
+
let D = ((x = r.toolbar) == null ? void 0 : x.export) || [];
|
|
5032
|
+
return D && !Array.isArray(D) && (D = [D]), D != null && D.length && D.map((A, M) => {
|
|
5033
|
+
A.label = A.label || `导出Excel ${M > 0 ? M : ""}`, A.size = r.size, A.mask = A.mask ?? !0, A.on = { click: (z) => Q(z, M) };
|
|
5034
|
+
}), D;
|
|
5024
5035
|
});
|
|
5025
5036
|
function Y() {
|
|
5026
|
-
|
|
5037
|
+
s("query");
|
|
5027
5038
|
}
|
|
5028
|
-
function U(
|
|
5029
|
-
|
|
5039
|
+
function U(D) {
|
|
5040
|
+
s("layoutChange", D);
|
|
5030
5041
|
}
|
|
5031
|
-
async function Q({ callBack:
|
|
5032
|
-
var
|
|
5042
|
+
async function Q({ callBack: D }, x) {
|
|
5043
|
+
var M, z;
|
|
5033
5044
|
const A = B.value[x];
|
|
5034
5045
|
if (A) {
|
|
5035
5046
|
const v = new XMLHttpRequest();
|
|
@@ -5041,7 +5052,7 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5041
5052
|
Object.assign($, lt(y) ? await y : y);
|
|
5042
5053
|
} else
|
|
5043
5054
|
Object.assign($, (A == null ? void 0 : A.data) || { size: 1e3 });
|
|
5044
|
-
(
|
|
5055
|
+
(z = (M = r.toolbar) == null ? void 0 : M.formConfig) != null && z.beforeRequest && ($ = await r.toolbar.formConfig.beforeRequest($));
|
|
5045
5056
|
for (let y in $)
|
|
5046
5057
|
($[y] === void 0 || $[y] === null || $[y] === "") && delete $[y];
|
|
5047
5058
|
if (A.fetch)
|
|
@@ -5053,7 +5064,7 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5053
5064
|
}
|
|
5054
5065
|
F = y;
|
|
5055
5066
|
} catch (y) {
|
|
5056
|
-
console.log("e: ", y),
|
|
5067
|
+
console.log("e: ", y), D && D();
|
|
5057
5068
|
}
|
|
5058
5069
|
else
|
|
5059
5070
|
!A.noQuery && le === "get" && (F += (F.indexOf("?") >= 0 ? "&" : "?") + es($));
|
|
@@ -5076,51 +5087,51 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5076
5087
|
}
|
|
5077
5088
|
const y = document.createElement("a");
|
|
5078
5089
|
window.navigator.msSaveOrOpenBlob && typeof window.navigator.msSaveOrOpenBlob == "function" ? y.href = window.navigator.msSaveOrOpenBlob(this.response, K) : (y.href = window.URL.createObjectURL(this.response), y.download = K), y.click(), window.URL.revokeObjectURL(F), setTimeout(() => {
|
|
5079
|
-
|
|
5090
|
+
D && D();
|
|
5080
5091
|
}, 1e3);
|
|
5081
5092
|
}
|
|
5082
5093
|
}, v.onerror = function(y) {
|
|
5083
5094
|
const V = document.createElement("a");
|
|
5084
5095
|
V.href = F, V.download = K, V.click(), setTimeout(() => {
|
|
5085
|
-
|
|
5096
|
+
D && D();
|
|
5086
5097
|
}, 1e3);
|
|
5087
5098
|
}, le === "post" ? (v.setRequestHeader("content-type", "application/json; charset=UTF-8"), v.send(JSON.stringify($))) : v.send();
|
|
5088
5099
|
}
|
|
5089
5100
|
}
|
|
5090
5101
|
function b() {
|
|
5091
|
-
|
|
5102
|
+
u.value = !u.value;
|
|
5092
5103
|
}
|
|
5093
5104
|
function L() {
|
|
5094
|
-
var
|
|
5095
|
-
(
|
|
5105
|
+
var D;
|
|
5106
|
+
(D = a.value) == null || D.submit();
|
|
5096
5107
|
}
|
|
5097
5108
|
function P() {
|
|
5098
|
-
var
|
|
5099
|
-
(
|
|
5109
|
+
var D;
|
|
5110
|
+
(D = a.value) == null || D.clear(), s("reset"), Ae(() => {
|
|
5100
5111
|
var x;
|
|
5101
5112
|
(x = a.value) == null || x.submit();
|
|
5102
5113
|
});
|
|
5103
5114
|
}
|
|
5104
|
-
function I(
|
|
5105
|
-
if (
|
|
5106
|
-
return typeof
|
|
5107
|
-
if (
|
|
5115
|
+
function I(D) {
|
|
5116
|
+
if (D != null && D.vif)
|
|
5117
|
+
return typeof D.vif == "function" ? D.vif(D) : !!D.vif;
|
|
5118
|
+
if (D != null && D.auth)
|
|
5108
5119
|
if (!n.auth)
|
|
5109
5120
|
console.warn("使用auth属性,请在crud注册时传入auth校验方法~");
|
|
5110
5121
|
else
|
|
5111
|
-
return n.auth(
|
|
5122
|
+
return n.auth(D.auth);
|
|
5112
5123
|
return !0;
|
|
5113
5124
|
}
|
|
5114
5125
|
function S() {
|
|
5115
|
-
var
|
|
5116
|
-
r.tbName ? (
|
|
5126
|
+
var D, x;
|
|
5127
|
+
r.tbName ? (D = o.value) == null || D.initCol() : (x = r.column) == null || x.map((A) => {
|
|
5117
5128
|
A.vif !== void 0 && A.vif !== null ? typeof A.vif == "function" ? A._vif = A.vif(A) : A._vif = !!A.vif : A._vif = !0, A.auth && (n.auth ? A._vif = n.auth(A.auth) : console.warn("使用auth属性,请在crud注册时传入auth校验方法~"));
|
|
5118
5129
|
});
|
|
5119
5130
|
}
|
|
5120
5131
|
return rt(() => {
|
|
5121
5132
|
if (Ae(() => {
|
|
5122
|
-
var
|
|
5123
|
-
i.value = ((
|
|
5133
|
+
var D;
|
|
5134
|
+
i.value = ((D = a.value) == null ? void 0 : D.totalRows) || 0;
|
|
5124
5135
|
}), !r.initLoad && !r.isInitLoad)
|
|
5125
5136
|
return !1;
|
|
5126
5137
|
Ae(() => {
|
|
@@ -5130,21 +5141,21 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5130
5141
|
});
|
|
5131
5142
|
}), ue(
|
|
5132
5143
|
() => {
|
|
5133
|
-
var
|
|
5134
|
-
return (
|
|
5144
|
+
var D;
|
|
5145
|
+
return (D = r.toolbar) == null ? void 0 : D.formConfig;
|
|
5135
5146
|
},
|
|
5136
5147
|
() => {
|
|
5137
5148
|
Ae(() => {
|
|
5138
|
-
var
|
|
5139
|
-
i.value = ((
|
|
5149
|
+
var D;
|
|
5150
|
+
i.value = ((D = a.value) == null ? void 0 : D.totalRows) || 0;
|
|
5140
5151
|
});
|
|
5141
5152
|
},
|
|
5142
5153
|
{ deep: !0 }
|
|
5143
5154
|
), t({ getData: () => {
|
|
5144
|
-
var
|
|
5145
|
-
return (
|
|
5146
|
-
}, initCol: S, resetQuery: P }), (
|
|
5147
|
-
const A = O("el-icon"),
|
|
5155
|
+
var D;
|
|
5156
|
+
return (D = a.value) == null ? void 0 : D.getData();
|
|
5157
|
+
}, initCol: S, resetQuery: P }), (D, x) => {
|
|
5158
|
+
const A = O("el-icon"), M = O("el-button"), z = O("el-radio-button"), v = O("el-radio-group"), F = O("ElPlusForm"), le = O("el-form");
|
|
5148
5159
|
return d(), w("div", Vr, [
|
|
5149
5160
|
r.toolbar && Object.keys(r.toolbar || {}).length ? (d(), k(le, {
|
|
5150
5161
|
key: 0,
|
|
@@ -5169,7 +5180,7 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5169
5180
|
var $, K;
|
|
5170
5181
|
return [
|
|
5171
5182
|
oe("div", Qr, [
|
|
5172
|
-
m.value ? (d(), k(
|
|
5183
|
+
m.value ? (d(), k(M, {
|
|
5173
5184
|
key: 0,
|
|
5174
5185
|
size: e.size,
|
|
5175
5186
|
type: "primary",
|
|
@@ -5177,10 +5188,10 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5177
5188
|
onClick: b
|
|
5178
5189
|
}, {
|
|
5179
5190
|
default: _(() => [
|
|
5180
|
-
pe(Me(
|
|
5191
|
+
pe(Me(u.value ? "展开" : "收起") + "筛选条件", 1),
|
|
5181
5192
|
Z(A, { class: "el-icon--right" }, {
|
|
5182
5193
|
default: _(() => [
|
|
5183
|
-
|
|
5194
|
+
u.value ? (d(), k(te(bn), { key: 0 })) : (d(), k(te(vo), { key: 1 }))
|
|
5184
5195
|
]),
|
|
5185
5196
|
_: 1
|
|
5186
5197
|
})
|
|
@@ -5208,13 +5219,13 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5208
5219
|
}, null, 8, ["tbName", "column", "size"])) : R("", !0),
|
|
5209
5220
|
e.layoutSelect ? (d(), k(v, {
|
|
5210
5221
|
key: 4,
|
|
5211
|
-
modelValue:
|
|
5212
|
-
"onUpdate:modelValue": x[0] || (x[0] = (g) =>
|
|
5222
|
+
modelValue: f.value,
|
|
5223
|
+
"onUpdate:modelValue": x[0] || (x[0] = (g) => f.value = g),
|
|
5213
5224
|
style: { "margin-left": "12px", "margin-right": "12px" },
|
|
5214
5225
|
onChange: U
|
|
5215
5226
|
}, {
|
|
5216
5227
|
default: _(() => [
|
|
5217
|
-
Z(
|
|
5228
|
+
Z(z, { label: "card" }, {
|
|
5218
5229
|
default: _(() => [
|
|
5219
5230
|
Z(A, null, {
|
|
5220
5231
|
default: _(() => [
|
|
@@ -5225,7 +5236,7 @@ const Hl = /* @__PURE__ */ Te(Br, [["__scopeId", "data-v-8ee378e7"]]), Vr = { cl
|
|
|
5225
5236
|
]),
|
|
5226
5237
|
_: 1
|
|
5227
5238
|
}),
|
|
5228
|
-
Z(
|
|
5239
|
+
Z(z, { label: "list" }, {
|
|
5229
5240
|
default: _(() => [
|
|
5230
5241
|
Z(A, null, {
|
|
5231
5242
|
default: _(() => [
|
|
@@ -5324,39 +5335,39 @@ const Gr = /* @__PURE__ */ Te($r, [["__scopeId", "data-v-45af0bc0"]]), Kr = /* @
|
|
|
5324
5335
|
setup(e) {
|
|
5325
5336
|
var o;
|
|
5326
5337
|
const t = e, l = j(((o = t.scope) == null ? void 0 : o.$index) || 0), n = ne(() => {
|
|
5327
|
-
var
|
|
5328
|
-
const
|
|
5329
|
-
return t.desc.label === "操作" && ((i = (
|
|
5330
|
-
|
|
5338
|
+
var u, i;
|
|
5339
|
+
const f = [];
|
|
5340
|
+
return t.desc.label === "操作" && ((i = (u = t.scope) == null ? void 0 : u.row) != null && i.isSumRow) ? [] : (t.desc.nodes ? t.desc.nodes.map((c, N) => {
|
|
5341
|
+
f.push(r(c.field || t.field, c, N));
|
|
5331
5342
|
}) : ((typeof t.field == "function" ? t.field() : t.field) || "").split(",").map((p, m) => {
|
|
5332
|
-
|
|
5333
|
-
}),
|
|
5334
|
-
}),
|
|
5335
|
-
var
|
|
5336
|
-
return typeof t.desc.content == "function" ? t.desc.content(t.modelValue, (
|
|
5337
|
-
}), r = (
|
|
5343
|
+
f.push(r(p, t.desc, m));
|
|
5344
|
+
}), f.length <= 0 && f.push(r("", t.desc, 0)), f);
|
|
5345
|
+
}), s = ne(() => {
|
|
5346
|
+
var f;
|
|
5347
|
+
return typeof t.desc.content == "function" ? t.desc.content(t.modelValue, (f = t.scope) == null ? void 0 : f.row, t.field) : t.desc.content || "";
|
|
5348
|
+
}), r = (f, u, i) => {
|
|
5338
5349
|
var N, p, m;
|
|
5339
5350
|
const c = {
|
|
5340
|
-
field:
|
|
5351
|
+
field: f,
|
|
5341
5352
|
desc: {
|
|
5342
|
-
prop:
|
|
5353
|
+
prop: f,
|
|
5343
5354
|
default: "",
|
|
5344
|
-
size:
|
|
5355
|
+
size: u.size || t.size || "default"
|
|
5345
5356
|
}
|
|
5346
5357
|
};
|
|
5347
|
-
if (Object.assign(c.desc,
|
|
5348
|
-
if (c.desc.style =
|
|
5358
|
+
if (Object.assign(c.desc, u), u.type === "btn" && (c.desc.btnType = u.btnType || "primary", c.desc.btnLabel = u.btnLabel || u.label, c.desc.plain = u.plain || !0, c.desc.text = !0), u.type ? (u.type === "text" && (c.desc.default = u.default || "-"), u.type, typeof u.type == "string" ? c.desc.type = u.type : c.desc.type = u.type[i] || u.type[0], u.format && (typeof u.format == "string" || typeof u.format == "function" ? c.desc.format = u.format : c.desc.format = u.format[i] === null ? null : u.format[i] || u.format[0]), u.title && (typeof u.title == "string" ? c.desc.title = u.title : c.desc.title = u.title[i] || u.title[0])) : c.desc.type = "text", u.elType && (c.desc.elType = u.elType), u.linkType && (c.desc.linkType = u.linkType), u.linkId && (c.desc.linkId = u.linkId), u.color)
|
|
5359
|
+
if (c.desc.style = u.style || {}, typeof u.color == "function") {
|
|
5349
5360
|
const G = (typeof t.field == "function" ? t.field() : t.field) || "";
|
|
5350
|
-
c.desc.style.color =
|
|
5361
|
+
c.desc.style.color = u.color((N = t.scope) == null ? void 0 : N.row[G], (p = t.scope) == null ? void 0 : p.row, t.field);
|
|
5351
5362
|
} else
|
|
5352
|
-
typeof
|
|
5353
|
-
return
|
|
5354
|
-
}, a = (
|
|
5355
|
-
var
|
|
5356
|
-
return
|
|
5363
|
+
typeof u.color == "string" ? c.desc.style.color = u.color : c.desc.style.color = u.color[i] === null ? null : u.color[i] || u.color[0];
|
|
5364
|
+
return u.on && (Object.prototype.toString.call(u.on) === "[object Array]" ? c.desc.on = u.on[i] === null ? null : u.on[i] || u.on[0] : c.desc.on = u.on), u.disabled && (c.disabled = !0), typeof u.options == "function" && (c.desc.options = u.options(t.scope)), c.vshow = a(u), u.attrs && (typeof u.attrs == "function" ? c.desc = { ...c.desc, ...u.attrs((m = t.scope) == null ? void 0 : m.row) } : c.desc = { ...c.desc, ...u.attrs }), c.align = u.align, c.desc._label = u.label, c;
|
|
5365
|
+
}, a = (f) => {
|
|
5366
|
+
var u;
|
|
5367
|
+
return f.vshow !== void 0 && f.vshow !== null && f.vshow !== "" ? typeof f.vshow == "boolean" ? f.vshow : typeof f.vshow == "function" ? f.vshow((u = t.scope) == null ? void 0 : u.row) : !!f.vshow : !0;
|
|
5357
5368
|
};
|
|
5358
5369
|
return rt(() => {
|
|
5359
|
-
}), (
|
|
5370
|
+
}), (f, u) => {
|
|
5360
5371
|
const i = O("el-icon"), c = O("el-popover");
|
|
5361
5372
|
return d(), w("div", {
|
|
5362
5373
|
class: Mt(["el-plus-table-column-item", [e.desc.inline ? "el-plus-table-column-row" : "el-plus-table-column-column"]])
|
|
@@ -5366,13 +5377,13 @@ const Gr = /* @__PURE__ */ Te($r, [["__scopeId", "data-v-45af0bc0"]]), Kr = /* @
|
|
|
5366
5377
|
return d(), w(se, {
|
|
5367
5378
|
key: p + (N.options && N.options.length > 0 ? N.options[0].value || N.options[0].v : "0")
|
|
5368
5379
|
}, [
|
|
5369
|
-
e.desc.content &&
|
|
5380
|
+
e.desc.content && s.value ? (d(), k(c, {
|
|
5370
5381
|
key: 0,
|
|
5371
5382
|
placement: "left",
|
|
5372
5383
|
width: 200,
|
|
5373
5384
|
trigger: "hover",
|
|
5374
5385
|
effect: "dark",
|
|
5375
|
-
content:
|
|
5386
|
+
content: s.value
|
|
5376
5387
|
}, {
|
|
5377
5388
|
reference: _(() => [
|
|
5378
5389
|
Z(i, { style: { color: "#f56c6c", "font-size": "26px", padding: "0px 8px 0 0" } }, {
|
|
@@ -5418,37 +5429,37 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5418
5429
|
},
|
|
5419
5430
|
setup(e) {
|
|
5420
5431
|
const t = de("lodash"), l = e, n = ne(() => {
|
|
5421
|
-
const
|
|
5422
|
-
return delete
|
|
5432
|
+
const s = t.cloneDeep(l.item);
|
|
5433
|
+
return delete s.children, s;
|
|
5423
5434
|
});
|
|
5424
|
-
return (
|
|
5435
|
+
return (s, r) => {
|
|
5425
5436
|
const a = O("ElPlusTableColumn", !0), o = O("el-table-column");
|
|
5426
5437
|
return l.item.__vif ? (d(), k(o, ee({ key: 0 }, n.value, {
|
|
5427
5438
|
key: "col_" + e.item.__id + "-" + e.item.label + "-" + e.index
|
|
5428
5439
|
}), {
|
|
5429
|
-
header: _(({ column:
|
|
5440
|
+
header: _(({ column: f }) => [
|
|
5430
5441
|
oe("div", {
|
|
5431
5442
|
class: Mt({ "th-required": e.item.required }),
|
|
5432
5443
|
style: Ue(e.item.hstyle)
|
|
5433
|
-
}, Me(
|
|
5444
|
+
}, Me(f.label), 7)
|
|
5434
5445
|
]),
|
|
5435
|
-
default: _((
|
|
5436
|
-
var
|
|
5446
|
+
default: _((f) => {
|
|
5447
|
+
var u;
|
|
5437
5448
|
return [
|
|
5438
|
-
(
|
|
5449
|
+
(u = e.item.children) != null && u.length ? (d(!0), w(se, { key: 0 }, fe(e.item.children, (i, c) => (d(), k(a, {
|
|
5439
5450
|
item: i,
|
|
5440
5451
|
size: e.size,
|
|
5441
5452
|
key: e.index + "-" + c,
|
|
5442
5453
|
index: c
|
|
5443
5454
|
}, null, 8, ["item", "size", "index"]))), 128)) : (d(), w(se, { key: 1 }, [
|
|
5444
|
-
|
|
5455
|
+
f.$index >= 0 ? (d(), k(Wr, {
|
|
5445
5456
|
key: 0,
|
|
5446
5457
|
field: e.item.prop,
|
|
5447
5458
|
desc: e.item,
|
|
5448
|
-
scope:
|
|
5459
|
+
scope: f,
|
|
5449
5460
|
size: e.size,
|
|
5450
|
-
modelValue:
|
|
5451
|
-
"onUpdate:modelValue": (i) =>
|
|
5461
|
+
modelValue: f.row[e.item.prop],
|
|
5462
|
+
"onUpdate:modelValue": (i) => f.row[e.item.prop] = i
|
|
5452
5463
|
}, null, 8, ["field", "desc", "scope", "size", "modelValue", "onUpdate:modelValue"])) : R("", !0)
|
|
5453
5464
|
], 64))
|
|
5454
5465
|
];
|
|
@@ -5495,23 +5506,23 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5495
5506
|
emits: ["getUrlConsumerIds", "selection", "select", "selectAll", "update:modelValue", "tabChange", "queryChange", "expandChange", "inited", "headerReset", "layoutChange", "loadDataEnd"],
|
|
5496
5507
|
setup(e, { expose: t, emit: l }) {
|
|
5497
5508
|
var Vt, At, ll, nl, al, ol, Oe, yt;
|
|
5498
|
-
const n = de("lodash"),
|
|
5509
|
+
const n = de("lodash"), s = de("defaultConf"), r = de("format"), a = l, o = e, f = j(!1), u = j(o.isDIYMain || !1), i = j(o.rowKey), c = j([]), N = j(null), p = j(), m = j({}), G = j(((nl = (Vt = o.tableConfig) == null ? void 0 : Vt.tabConf) == null ? void 0 : nl.tabs[((ll = (At = o.tableConfig) == null ? void 0 : At.tabConf) == null ? void 0 : ll.default) || 0].value) ?? ""), B = ne(() => {
|
|
5499
5510
|
var E;
|
|
5500
5511
|
return Object.assign({ border: !0, bigHBar: !0, scrollbarAlwaysOn: !0 }, ((E = o.tableConfig) == null ? void 0 : E.tableAttr) || {});
|
|
5501
5512
|
}), Y = ne(() => (E) => E.key ? m.value[E.key] || 0 : ""), U = ne(() => (E, W) => {
|
|
5502
5513
|
var J, re;
|
|
5503
5514
|
return typeof ((J = B.value) == null ? void 0 : J.selectable) == "function" ? (re = B.value) == null ? void 0 : re.selectable(E, W) : !0;
|
|
5504
|
-
}), Q = j(), b = j(!1), L = j(!!((ol = (al = o.tableConfig) == null ? void 0 : al.tabConf) != null && ol.fetch)), P = j(!1), I =
|
|
5505
|
-
let
|
|
5515
|
+
}), Q = j(), b = j(!1), L = j(!!((ol = (al = o.tableConfig) == null ? void 0 : al.tabConf) != null && ol.fetch)), P = j(!1), I = s.size || "default", S = ne(() => o.loading || b.value);
|
|
5516
|
+
let D = ke({});
|
|
5506
5517
|
const x = j(o.modelValue || []);
|
|
5507
5518
|
ke([]);
|
|
5508
|
-
const A = j(0),
|
|
5509
|
-
current: !o.isDialog &&
|
|
5519
|
+
const A = j(0), M = ke(n.cloneDeep(o.selectList) || []), z = ke([]), v = ke({
|
|
5520
|
+
current: !o.isDialog && D.current ? parseInt(D.current) : 1,
|
|
5510
5521
|
total: 0,
|
|
5511
|
-
size: !o.isDialog &&
|
|
5522
|
+
size: !o.isDialog && D.size ? parseInt(D.size) : o.pageSize
|
|
5512
5523
|
}), F = ((yt = (Oe = o.tableConfig) == null ? void 0 : Oe.explan) == null ? void 0 : yt.treeProps) || { children: "children", hasChildren: "hasChildren" }, le = ne(() => {
|
|
5513
5524
|
var Fe, Ze, He;
|
|
5514
|
-
const E = Tn(n.cloneDeep((Fe = o.tableConfig) == null ? void 0 : Fe.column),
|
|
5525
|
+
const E = Tn(n.cloneDeep((Fe = o.tableConfig) == null ? void 0 : Fe.column), s, ((Ze = o.tableConfig) == null ? void 0 : Ze.tbName) || "", o.headerAlign, o.colMinWidth || "auto"), W = g(E);
|
|
5515
5526
|
c.value = [];
|
|
5516
5527
|
let J, re = 0, je = 1, Qe = "";
|
|
5517
5528
|
const Ve = W.map((Ie, Re) => {
|
|
@@ -5549,7 +5560,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5549
5560
|
let Ie = "";
|
|
5550
5561
|
Ze.map((Re, Be) => {
|
|
5551
5562
|
var Le, qe;
|
|
5552
|
-
Ie = "", (Le = o.tableConfig.summaryConf) != null && Le.sumFn ? Ie = (qe = o.tableConfig.summaryConf) == null ? void 0 : qe.sumFn(x.value,
|
|
5563
|
+
Ie = "", (Le = o.tableConfig.summaryConf) != null && Le.sumFn ? Ie = (qe = o.tableConfig.summaryConf) == null ? void 0 : qe.sumFn(x.value, M) : Ie = r.yuan(x.value.reduce((Xe, mt) => Xe += mt[Re], 0)), E.push({ label: He[Be], value: Ie });
|
|
5553
5564
|
});
|
|
5554
5565
|
}
|
|
5555
5566
|
return E;
|
|
@@ -5562,7 +5573,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5562
5573
|
}), W;
|
|
5563
5574
|
}
|
|
5564
5575
|
async function y(E) {
|
|
5565
|
-
if (!o.initLoad && !
|
|
5576
|
+
if (!o.initLoad && !f.value)
|
|
5566
5577
|
return !1;
|
|
5567
5578
|
X(!0), await a("tabChange", E, _e), setTimeout(() => {
|
|
5568
5579
|
_e();
|
|
@@ -5570,7 +5581,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5570
5581
|
}
|
|
5571
5582
|
function V(E) {
|
|
5572
5583
|
a("layoutChange", E), setTimeout(() => {
|
|
5573
|
-
|
|
5584
|
+
u.value = E === "card", x.value = [], q();
|
|
5574
5585
|
}, 100);
|
|
5575
5586
|
}
|
|
5576
5587
|
async function h(E, W, J) {
|
|
@@ -5578,35 +5589,35 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5578
5589
|
const re = await ie();
|
|
5579
5590
|
re[((Qe = (je = o.tableConfig) == null ? void 0 : je.explan) == null ? void 0 : Qe.idName) || "parentId"] = E.id, o.tableConfig.fetch && o.tableConfig.fetch(re).then((Ve) => {
|
|
5580
5591
|
var Fe, Ze, He;
|
|
5581
|
-
J(Ve == null ? void 0 : Ve[((Fe =
|
|
5592
|
+
J(Ve == null ? void 0 : Ve[((Fe = s.table) == null ? void 0 : Fe.list) || ((He = (Ze = o.tableConfig) == null ? void 0 : Ze.fetchMap) == null ? void 0 : He.list) || "records"]);
|
|
5582
5593
|
});
|
|
5583
5594
|
}
|
|
5584
5595
|
function ae(E, W) {
|
|
5585
|
-
Pe(W, !E.some((J) => J[o.rowKey] === W[o.rowKey])), a("select", E, W), a("selection", n.cloneDeep(
|
|
5596
|
+
Pe(W, !E.some((J) => J[o.rowKey] === W[o.rowKey])), a("select", E, W), a("selection", n.cloneDeep(M));
|
|
5586
5597
|
}
|
|
5587
5598
|
function Ne(E) {
|
|
5588
5599
|
const W = !(E && E.length > 0);
|
|
5589
5600
|
(W ? x.value : E).map((J) => {
|
|
5590
5601
|
Pe(J, W);
|
|
5591
|
-
}), a("selectAll", E, W), a("selection", n.cloneDeep(
|
|
5602
|
+
}), a("selectAll", E, W), a("selection", n.cloneDeep(M));
|
|
5592
5603
|
}
|
|
5593
5604
|
function ve(E, W) {
|
|
5594
5605
|
a("expandChange", E, W);
|
|
5595
5606
|
}
|
|
5596
5607
|
function Pe(E, W = !1) {
|
|
5597
|
-
const J =
|
|
5598
|
-
W ? J >= 0 &&
|
|
5608
|
+
const J = M.findIndex((re) => re[o.rowKey] === E[o.rowKey]);
|
|
5609
|
+
W ? J >= 0 && M.splice(J, 1) : J < 0 && M.push(E);
|
|
5599
5610
|
}
|
|
5600
5611
|
function C(E, W = !1) {
|
|
5601
5612
|
E && E.length && E.map((J) => {
|
|
5602
5613
|
Pe(
|
|
5603
|
-
|
|
5614
|
+
M.find((re) => re[o.rowKey] === J[o.rowKey]),
|
|
5604
5615
|
!W
|
|
5605
5616
|
);
|
|
5606
5617
|
}), bt();
|
|
5607
5618
|
}
|
|
5608
5619
|
function T() {
|
|
5609
|
-
|
|
5620
|
+
M.splice(0, M.length, ...o.selectList);
|
|
5610
5621
|
}
|
|
5611
5622
|
async function ie() {
|
|
5612
5623
|
var W, J, re, je, Qe, Ve, Fe, Ze, He, Ie, Re, Be, Le, qe, Xe;
|
|
@@ -5618,7 +5629,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5618
5629
|
...typeof o.tableConfig.queryMap == "function" ? await o.tableConfig.queryMap() : o.tableConfig.queryMap,
|
|
5619
5630
|
t_: (/* @__PURE__ */ new Date()).getTime()
|
|
5620
5631
|
};
|
|
5621
|
-
return o.isPager && (E[((re = (J =
|
|
5632
|
+
return o.isPager && (E[((re = (J = s.table) == null ? void 0 : J.page) == null ? void 0 : re.current) || ((Ve = (Qe = (je = o.tableConfig) == null ? void 0 : je.fetchMap) == null ? void 0 : Qe.page) == null ? void 0 : Ve.current) || "current"] = v.current, E[((Ze = (Fe = s.table) == null ? void 0 : Fe.page) == null ? void 0 : Ze.pageSize) || ((Re = (Ie = (He = o.tableConfig) == null ? void 0 : He.fetchMap) == null ? void 0 : Ie.page) == null ? void 0 : Re.pageSize) || "size"] = v.size), (Be = o.tableConfig) != null && Be.tabConf && ((qe = (Le = o.tableConfig) == null ? void 0 : Le.tabConf) != null && qe.prop) && (E[(Xe = o.tableConfig) == null ? void 0 : Xe.tabConf.prop] = G.value), E = he(E), o.isDialog, E;
|
|
5622
5633
|
}
|
|
5623
5634
|
function he(E) {
|
|
5624
5635
|
if (!E)
|
|
@@ -5637,7 +5648,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5637
5648
|
function pt(E, W) {
|
|
5638
5649
|
let J = [];
|
|
5639
5650
|
E && E.length > 0 && E.map((re, je) => {
|
|
5640
|
-
|
|
5651
|
+
z.push([...W, je]), J = re[F.children], J && J.length > 0 && pt(J, [je]);
|
|
5641
5652
|
});
|
|
5642
5653
|
}
|
|
5643
5654
|
async function wt(E) {
|
|
@@ -5651,21 +5662,21 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5651
5662
|
(je = (re = (J = o.tableConfig) == null ? void 0 : J.toolbar) == null ? void 0 : re.formConfig) != null && je.beforeRequest && (W = ((Fe = (Ve = (Qe = o.tableConfig) == null ? void 0 : Qe.toolbar) == null ? void 0 : Ve.formConfig) == null ? void 0 : Fe.beforeRequest(n.cloneDeep(W))) || W);
|
|
5652
5663
|
try {
|
|
5653
5664
|
let ut = await o.tableConfig.fetch(W) || {};
|
|
5654
|
-
a("loadDataEnd", ut), Array.isArray(ut) && (ut = { [((Ze =
|
|
5665
|
+
a("loadDataEnd", ut), Array.isArray(ut) && (ut = { [((Ze = s.table) == null ? void 0 : Ze.list) || ((Ie = (He = o.tableConfig) == null ? void 0 : He.fetchMap) == null ? void 0 : Ie.list) || "records"]: ut });
|
|
5655
5666
|
try {
|
|
5656
5667
|
let Nt = [];
|
|
5657
|
-
if (o.isPager ? (v.total = ut[((Be = (Re =
|
|
5668
|
+
if (o.isPager ? (v.total = ut[((Be = (Re = s.table) == null ? void 0 : Re.page) == null ? void 0 : Be.total) || ((Xe = (qe = (Le = o.tableConfig) == null ? void 0 : Le.fetchMap) == null ? void 0 : qe.page) == null ? void 0 : Xe.total) || "total"] * 1 || 0, v.current = ut[((Pt = (mt = s.table) == null ? void 0 : mt.page) == null ? void 0 : Pt.current) || (($e = (Ut = (Qt = o.tableConfig) == null ? void 0 : Qt.fetchMap) == null ? void 0 : Ut.page) == null ? void 0 : $e.current) || "current"] || 1, Nt = ut[((et = s.table) == null ? void 0 : et.list) || ((kl = (Tt = o.tableConfig) == null ? void 0 : Tt.fetchMap) == null ? void 0 : kl.list) || "records"] || null) : Nt = ut[((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)) {
|
|
5658
5669
|
const ao = (/* @__PURE__ */ new Date()).getTime();
|
|
5659
5670
|
i.value = "tempId", Nt.map((oo, so) => {
|
|
5660
5671
|
oo.tempId = `${ao + so}`;
|
|
5661
5672
|
});
|
|
5662
5673
|
} else
|
|
5663
5674
|
i.value = o.rowKey;
|
|
5664
|
-
o.isStorePageData ? x.value.push(...Nt) : x.value = Nt, o.type === "expand" && (
|
|
5675
|
+
o.isStorePageData ? x.value.push(...Nt) : x.value = Nt, o.type === "expand" && (z.splice(0, z.length), pt(x.value, [])), P.value = !1, tl(), Ae(() => {
|
|
5665
5676
|
bt();
|
|
5666
5677
|
});
|
|
5667
5678
|
} catch (Nt) {
|
|
5668
|
-
|
|
5679
|
+
s.debug && console.log("error: ", Nt);
|
|
5669
5680
|
}
|
|
5670
5681
|
} catch (ut) {
|
|
5671
5682
|
console.log("fetch error: ", ut);
|
|
@@ -5683,23 +5694,23 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5683
5694
|
x.value && x.value.length > 0 && o.type === "selection" && x.value.map((E) => {
|
|
5684
5695
|
p.value.toggleRowSelection(
|
|
5685
5696
|
E,
|
|
5686
|
-
|
|
5697
|
+
M.some((W) => W[o.rowKey] === E[o.rowKey])
|
|
5687
5698
|
);
|
|
5688
5699
|
});
|
|
5689
5700
|
}
|
|
5690
5701
|
async function q(E = !1) {
|
|
5691
5702
|
var W, J, re, je;
|
|
5692
|
-
return await wt(!0), !E && ((W = o.tableConfig) != null && W.tabConf) && ((J = o.tableConfig) != null && J.tabConf.fetch) && (m.value = await ((je = o.tableConfig) == null ? void 0 : je.tabConf.fetch(Object.assign({}, await ie(), (re = o.tableConfig) == null ? void 0 : re.tabConf.queryMap))), L.value = !1),
|
|
5703
|
+
return await wt(!0), !E && ((W = o.tableConfig) != null && W.tabConf) && ((J = o.tableConfig) != null && J.tabConf.fetch) && (m.value = await ((je = o.tableConfig) == null ? void 0 : je.tabConf.fetch(Object.assign({}, await ie(), (re = o.tableConfig) == null ? void 0 : re.tabConf.queryMap))), L.value = !1), f.value = !0, x.value;
|
|
5693
5704
|
}
|
|
5694
5705
|
async function X(E = !1) {
|
|
5695
5706
|
var J, re, je, Qe, Ve, Fe;
|
|
5696
|
-
if (!o.initLoad && !
|
|
5707
|
+
if (!o.initLoad && !f.value)
|
|
5697
5708
|
return !1;
|
|
5698
5709
|
let W = await ie();
|
|
5699
5710
|
(je = (re = (J = o.tableConfig) == null ? void 0 : J.toolbar) == null ? void 0 : re.formConfig) != null && je.beforeRequest && (W = ((Fe = (Ve = (Qe = o.tableConfig) == null ? void 0 : Qe.toolbar) == null ? void 0 : Ve.formConfig) == null ? void 0 : Fe.beforeRequest(n.cloneDeep(W))) || W), W && a("queryChange", W), q(E);
|
|
5700
5711
|
}
|
|
5701
5712
|
function ce() {
|
|
5702
|
-
a("headerReset",
|
|
5713
|
+
a("headerReset", D);
|
|
5703
5714
|
}
|
|
5704
5715
|
function _e() {
|
|
5705
5716
|
var E;
|
|
@@ -5728,7 +5739,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5728
5739
|
), ue(
|
|
5729
5740
|
() => o.selectList,
|
|
5730
5741
|
(E) => {
|
|
5731
|
-
|
|
5742
|
+
M.splice(0, M.length, ...E), bt();
|
|
5732
5743
|
},
|
|
5733
5744
|
{ deep: !0 }
|
|
5734
5745
|
), o.isDIYMain && io("reloadTable", q), rt(() => {
|
|
@@ -5742,8 +5753,8 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5742
5753
|
key: 0,
|
|
5743
5754
|
ref_key: "tableHeaderRef",
|
|
5744
5755
|
ref: Q,
|
|
5745
|
-
modelValue: te(
|
|
5746
|
-
"onUpdate:modelValue": W[0] || (W[0] = ($e) => Ce(
|
|
5756
|
+
modelValue: te(D),
|
|
5757
|
+
"onUpdate:modelValue": W[0] || (W[0] = ($e) => Ce(D) ? D.value = $e : D = $e),
|
|
5747
5758
|
tbName: e.tableConfig.tbName,
|
|
5748
5759
|
column: ((Re = e.tableConfig) == null ? void 0 : Re.column) || [],
|
|
5749
5760
|
size: te(I),
|
|
@@ -5757,7 +5768,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5757
5768
|
layoutSelect: e.isDIYMain && !!((Le = (Be = e.tableConfig) == null ? void 0 : Be.column) != null && Le.length),
|
|
5758
5769
|
onLayoutChange: V,
|
|
5759
5770
|
initLoad: e.initLoad,
|
|
5760
|
-
isInitLoad:
|
|
5771
|
+
isInitLoad: f.value
|
|
5761
5772
|
}, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog", "layoutSelect", "initLoad", "isInitLoad"])) : R("", !0),
|
|
5762
5773
|
Ge().tabTop ? De(E.$slots, "tabTop", { key: 1 }) : R("", !0),
|
|
5763
5774
|
(mt = (Xe = (qe = e.tableConfig) == null ? void 0 : qe.tabConf) == null ? void 0 : Xe.tabs) != null && mt.length ? (d(), w("div", Jr, [
|
|
@@ -5799,7 +5810,7 @@ const Wr = /* @__PURE__ */ Te(Kr, [["__scopeId", "data-v-7550a821"]]), Zr = {
|
|
|
5799
5810
|
])) : R("", !0),
|
|
5800
5811
|
Ge().default ? De(E.$slots, "default", { key: 3 }) : R("", !0),
|
|
5801
5812
|
bl((d(), w("div", Xr, [
|
|
5802
|
-
|
|
5813
|
+
u.value ? De(E.$slots, "main", {
|
|
5803
5814
|
key: 0,
|
|
5804
5815
|
tableData: x.value
|
|
5805
5816
|
}) : (d(), k(Fe, ee({
|
|
@@ -5979,8 +5990,8 @@ function cc(e) {
|
|
|
5979
5990
|
var n = !0;
|
|
5980
5991
|
} catch {
|
|
5981
5992
|
}
|
|
5982
|
-
var
|
|
5983
|
-
return n && (t ? e[Gt] = l : delete e[Gt]),
|
|
5993
|
+
var s = rc.call(e);
|
|
5994
|
+
return n && (t ? e[Gt] = l : delete e[Gt]), s;
|
|
5984
5995
|
}
|
|
5985
5996
|
var dc = Object.prototype, Mc = dc.toString;
|
|
5986
5997
|
function fc(e) {
|
|
@@ -6132,11 +6143,11 @@ function Va(e, t, l) {
|
|
|
6132
6143
|
(!(ed.call(e, t) && Ba(n, l)) || l === void 0 && !(t in e)) && ka(e, t, l);
|
|
6133
6144
|
}
|
|
6134
6145
|
function cl(e, t, l, n) {
|
|
6135
|
-
var
|
|
6146
|
+
var s = !l;
|
|
6136
6147
|
l || (l = {});
|
|
6137
6148
|
for (var r = -1, a = t.length; ++r < a; ) {
|
|
6138
|
-
var o = t[r],
|
|
6139
|
-
|
|
6149
|
+
var o = t[r], f = n ? n(l[o], e[o], o, l, e) : void 0;
|
|
6150
|
+
f === void 0 && (f = e[o]), s ? ka(l, o, f) : Va(l, o, f);
|
|
6140
6151
|
}
|
|
6141
6152
|
return l;
|
|
6142
6153
|
}
|
|
@@ -6195,13 +6206,13 @@ var sn = Ct && Ct.isTypedArray, Pd = sn ? _l(sn) : kd;
|
|
|
6195
6206
|
const Qd = Pd;
|
|
6196
6207
|
var Ud = Object.prototype, Fd = Ud.hasOwnProperty;
|
|
6197
6208
|
function Ga(e, t) {
|
|
6198
|
-
var l = hl(e), n = !l && id(e),
|
|
6199
|
-
for (var
|
|
6200
|
-
(t || Fd.call(e,
|
|
6201
|
-
(
|
|
6202
|
-
|
|
6203
|
-
r && (
|
|
6204
|
-
Jc(
|
|
6209
|
+
var l = hl(e), n = !l && id(e), s = !l && !n && Ra(e), r = !l && !n && !s && Qd(e), a = l || n || s || r, o = a ? nd(e.length, String) : [], f = o.length;
|
|
6210
|
+
for (var u in e)
|
|
6211
|
+
(t || Fd.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6212
|
+
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6213
|
+
s && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6214
|
+
r && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
6215
|
+
Jc(u, f))) && o.push(u);
|
|
6205
6216
|
return o;
|
|
6206
6217
|
}
|
|
6207
6218
|
function Ka(e, t) {
|
|
@@ -6366,8 +6377,8 @@ St.prototype.get = vM;
|
|
|
6366
6377
|
St.prototype.has = YM;
|
|
6367
6378
|
St.prototype.set = IM;
|
|
6368
6379
|
function Wa(e, t) {
|
|
6369
|
-
for (var l = -1, n = t.length,
|
|
6370
|
-
e[
|
|
6380
|
+
for (var l = -1, n = t.length, s = e.length; ++l < n; )
|
|
6381
|
+
e[s + l] = t[l];
|
|
6371
6382
|
return e;
|
|
6372
6383
|
}
|
|
6373
6384
|
var wM = Ka(Object.getPrototypeOf, Object);
|
|
@@ -6419,9 +6430,9 @@ function OM(e, t) {
|
|
|
6419
6430
|
return e.copy(n), n;
|
|
6420
6431
|
}
|
|
6421
6432
|
function SM(e, t) {
|
|
6422
|
-
for (var l = -1, n = e == null ? 0 : e.length,
|
|
6433
|
+
for (var l = -1, n = e == null ? 0 : e.length, s = 0, r = []; ++l < n; ) {
|
|
6423
6434
|
var a = e[l];
|
|
6424
|
-
t(a, l, e) && (r[
|
|
6435
|
+
t(a, l, e) && (r[s++] = a);
|
|
6425
6436
|
}
|
|
6426
6437
|
return r;
|
|
6427
6438
|
}
|
|
@@ -6561,9 +6572,9 @@ const Vf = Bf;
|
|
|
6561
6572
|
var Pf = 1, Qf = 2, Uf = 4, eo = "[object Arguments]", Ff = "[object Array]", Rf = "[object Boolean]", $f = "[object Date]", Gf = "[object Error]", to = "[object Function]", Kf = "[object GeneratorFunction]", Wf = "[object Map]", Zf = "[object Number]", lo = "[object Object]", Hf = "[object RegExp]", qf = "[object Set]", Jf = "[object String]", Xf = "[object Symbol]", eg = "[object WeakMap]", tg = "[object ArrayBuffer]", lg = "[object DataView]", ng = "[object Float32Array]", ag = "[object Float64Array]", og = "[object Int8Array]", sg = "[object Int16Array]", ug = "[object Int32Array]", ig = "[object Uint8Array]", rg = "[object Uint8ClampedArray]", cg = "[object Uint16Array]", dg = "[object Uint32Array]", Ee = {};
|
|
6562
6573
|
Ee[eo] = Ee[Ff] = Ee[tg] = Ee[lg] = Ee[Rf] = Ee[$f] = Ee[ng] = Ee[ag] = Ee[og] = Ee[sg] = Ee[ug] = Ee[Wf] = Ee[Zf] = Ee[lo] = Ee[Hf] = Ee[qf] = Ee[Jf] = Ee[Xf] = Ee[ig] = Ee[rg] = Ee[cg] = Ee[dg] = !0;
|
|
6563
6574
|
Ee[Gf] = Ee[to] = Ee[eg] = !1;
|
|
6564
|
-
function il(e, t, l, n,
|
|
6565
|
-
var a, o = t & Pf,
|
|
6566
|
-
if (l && (a =
|
|
6575
|
+
function il(e, t, l, n, s, r) {
|
|
6576
|
+
var a, o = t & Pf, f = t & Qf, u = t & Uf;
|
|
6577
|
+
if (l && (a = s ? l(e, n, s, r) : l(e)), a !== void 0)
|
|
6567
6578
|
return a;
|
|
6568
6579
|
if (!jt(e))
|
|
6569
6580
|
return e;
|
|
@@ -6575,12 +6586,12 @@ function il(e, t, l, n, u, r) {
|
|
|
6575
6586
|
var c = Ol(e), N = c == to || c == Kf;
|
|
6576
6587
|
if (Ra(e))
|
|
6577
6588
|
return OM(e, o);
|
|
6578
|
-
if (c == lo || c == eo || N && !
|
|
6579
|
-
if (a =
|
|
6580
|
-
return
|
|
6589
|
+
if (c == lo || c == eo || N && !s) {
|
|
6590
|
+
if (a = f || N ? {} : _f(e), !o)
|
|
6591
|
+
return f ? FM(e, CM(a, e)) : PM(e, LM(a, e));
|
|
6581
6592
|
} else {
|
|
6582
6593
|
if (!Ee[c])
|
|
6583
|
-
return
|
|
6594
|
+
return s ? e : {};
|
|
6584
6595
|
a = xf(e, c, o);
|
|
6585
6596
|
}
|
|
6586
6597
|
}
|
|
@@ -6593,7 +6604,7 @@ function il(e, t, l, n, u, r) {
|
|
|
6593
6604
|
}) : Of(e) && e.forEach(function(B, Y) {
|
|
6594
6605
|
a.set(Y, il(B, t, l, Y, e, r));
|
|
6595
6606
|
});
|
|
6596
|
-
var m =
|
|
6607
|
+
var m = u ? f ? $M : RM : f ? Cl : Ll, G = i ? void 0 : m(e);
|
|
6597
6608
|
return Zc(G || e, function(B, Y) {
|
|
6598
6609
|
G && (Y = B, B = e[Y]), Va(a, Y, il(B, t, l, Y, e, r));
|
|
6599
6610
|
}), a;
|
|
@@ -6608,24 +6619,24 @@ var Ng = function() {
|
|
|
6608
6619
|
const yl = Ng;
|
|
6609
6620
|
var jg = "Expected a function", pg = Math.max, yg = Math.min;
|
|
6610
6621
|
function mg(e, t, l) {
|
|
6611
|
-
var n,
|
|
6622
|
+
var n, s, r, a, o, f, u = 0, i = !1, c = !1, N = !0;
|
|
6612
6623
|
if (typeof e != "function")
|
|
6613
6624
|
throw new TypeError(jg);
|
|
6614
6625
|
t = Xl(t) || 0, jt(l) && (i = !!l.leading, c = "maxWait" in l, r = c ? pg(Xl(l.maxWait) || 0, t) : r, N = "trailing" in l ? !!l.trailing : N);
|
|
6615
6626
|
function p(P) {
|
|
6616
|
-
var I = n, S =
|
|
6617
|
-
return n =
|
|
6627
|
+
var I = n, S = s;
|
|
6628
|
+
return n = s = void 0, u = P, a = e.apply(S, I), a;
|
|
6618
6629
|
}
|
|
6619
6630
|
function m(P) {
|
|
6620
|
-
return
|
|
6631
|
+
return u = P, o = setTimeout(Y, t), i ? p(P) : a;
|
|
6621
6632
|
}
|
|
6622
6633
|
function G(P) {
|
|
6623
|
-
var I = P -
|
|
6624
|
-
return c ? yg(
|
|
6634
|
+
var I = P - f, S = P - u, D = t - I;
|
|
6635
|
+
return c ? yg(D, r - S) : D;
|
|
6625
6636
|
}
|
|
6626
6637
|
function B(P) {
|
|
6627
|
-
var I = P -
|
|
6628
|
-
return
|
|
6638
|
+
var I = P - f, S = P - u;
|
|
6639
|
+
return f === void 0 || I >= t || I < 0 || c && S >= r;
|
|
6629
6640
|
}
|
|
6630
6641
|
function Y() {
|
|
6631
6642
|
var P = yl();
|
|
@@ -6634,21 +6645,21 @@ function mg(e, t, l) {
|
|
|
6634
6645
|
o = setTimeout(Y, G(P));
|
|
6635
6646
|
}
|
|
6636
6647
|
function U(P) {
|
|
6637
|
-
return o = void 0, N && n ? p(P) : (n =
|
|
6648
|
+
return o = void 0, N && n ? p(P) : (n = s = void 0, a);
|
|
6638
6649
|
}
|
|
6639
6650
|
function Q() {
|
|
6640
|
-
o !== void 0 && clearTimeout(o),
|
|
6651
|
+
o !== void 0 && clearTimeout(o), u = 0, n = f = s = o = void 0;
|
|
6641
6652
|
}
|
|
6642
6653
|
function b() {
|
|
6643
6654
|
return o === void 0 ? a : U(yl());
|
|
6644
6655
|
}
|
|
6645
6656
|
function L() {
|
|
6646
6657
|
var P = yl(), I = B(P);
|
|
6647
|
-
if (n = arguments,
|
|
6658
|
+
if (n = arguments, s = this, f = P, I) {
|
|
6648
6659
|
if (o === void 0)
|
|
6649
|
-
return m(
|
|
6660
|
+
return m(f);
|
|
6650
6661
|
if (c)
|
|
6651
|
-
return clearTimeout(o), o = setTimeout(Y, t), p(
|
|
6662
|
+
return clearTimeout(o), o = setTimeout(Y, t), p(f);
|
|
6652
6663
|
}
|
|
6653
6664
|
return o === void 0 && (o = setTimeout(Y, t)), a;
|
|
6654
6665
|
}
|
|
@@ -6656,8 +6667,8 @@ function mg(e, t, l) {
|
|
|
6656
6667
|
}
|
|
6657
6668
|
const Yg = {
|
|
6658
6669
|
install: (e, t, l, n) => {
|
|
6659
|
-
no($t, t || {}), $t.debug && console.log("initConfig: ", $t), e.provide("format", l), e.provide("globalData", n), e.provide("defaultConf", $t), e.provide("lodash", { cloneDeep: gg, debounce: mg }), xt.unshift(Tl), xt.unshift(Or), xt.unshift(Ca), xt.push(nc), $t.debug && console.log("components: ", xt), xt.map((
|
|
6660
|
-
e.component(
|
|
6670
|
+
no($t, t || {}), $t.debug && console.log("initConfig: ", $t), e.provide("format", l), e.provide("globalData", n), e.provide("defaultConf", $t), e.provide("lodash", { cloneDeep: gg, debounce: mg }), xt.unshift(Tl), xt.unshift(Or), xt.unshift(Ca), xt.push(nc), $t.debug && console.log("components: ", xt), xt.map((s) => {
|
|
6671
|
+
e.component(s.name, s);
|
|
6661
6672
|
});
|
|
6662
6673
|
}
|
|
6663
6674
|
};
|