el-plus-crud 0.1.84 → 0.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/el-plus-crud.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { nextTick as be, defineComponent as H, inject as ce, ref as
|
|
1
|
+
import { nextTick as be, defineComponent as H, inject as ce, ref as f, onBeforeMount as ze, useAttrs as fe, onMounted as it, resolveComponent as O, openBlock as d, createBlock as S, mergeProps as ee, toHandlers as ye, createCommentVNode as F, useSlots as Re, createSlots as lt, withCtx as _, renderSlot as De, renderList as Me, createElementBlock as I, createElementVNode as ae, computed as le, watch as re, Fragment as oe, createVNode as Z, unref as je, createTextVNode as pe, toDisplayString as de, normalizeStyle as Pe, reactive as Oe, isRef as ft, normalizeClass as dt, onUnmounted as vn, withModifiers as _t, withDirectives as bl, vShow as Yn, triggerRef as fl, withKeys as uo, resolveDynamicComponent as rl, provide as io, resolveDirective as ro } from "vue";
|
|
2
2
|
import { ElMessageBox as Al, ElMessage as Xe } from "element-plus";
|
|
3
3
|
import { useVModel as at } from "@vueuse/core";
|
|
4
4
|
const me = async (e, t) => {
|
|
5
|
-
var n, s, r, a, o,
|
|
5
|
+
var n, s, r, a, o, g;
|
|
6
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) ?? ((
|
|
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) ?? ((g = e.desc) == null ? void 0 : g.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
|
}, Ie = (e) => {
|
|
9
9
|
var l;
|
|
10
10
|
const t = {};
|
|
@@ -83,7 +83,7 @@ const Mo = {
|
|
|
83
83
|
},
|
|
84
84
|
emits: ["update:modelValue"],
|
|
85
85
|
setup(e, { emit: t }) {
|
|
86
|
-
const l = ce("globalData"), n = e, s = t, r =
|
|
86
|
+
const l = ce("globalData"), n = e, s = t, r = f([]), a = f({}), o = f(!1), g = f(Ie(n)), u = f(n.modelValue);
|
|
87
87
|
return s("update:modelValue", u), ze(async () => {
|
|
88
88
|
a.value = await me(n, { props: { value: "id", label: "name", children: "childs", checkStrictly: !!n.desc.checkStrictly }, clearable: !0, filterable: !0, ...fe() }), o.value = !0;
|
|
89
89
|
}), it(async () => {
|
|
@@ -93,11 +93,11 @@ const Mo = {
|
|
|
93
93
|
return o.value ? (d(), S(j, ee({
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "ElPlusFormArea-panel"
|
|
96
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
96
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
97
97
|
modelValue: u.value,
|
|
98
98
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => u.value = p),
|
|
99
99
|
options: r.value
|
|
100
|
-
}), null, 16, ["disabled", "modelValue", "options"])) :
|
|
100
|
+
}), null, 16, ["disabled", "modelValue", "options"])) : F("", !0);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
});
|
|
@@ -121,26 +121,26 @@ const Ae = (e, t) => {
|
|
|
121
121
|
},
|
|
122
122
|
emits: ["update:modelValue"],
|
|
123
123
|
setup(e, { emit: t }) {
|
|
124
|
-
const l = e, n = t, s =
|
|
124
|
+
const l = e, n = t, s = f(l.modelValue);
|
|
125
125
|
n("update:modelValue", s);
|
|
126
|
-
const r =
|
|
126
|
+
const r = f(Object.assign({}, Re(), l.desc.slots)), a = f({}), o = f(Ie(l));
|
|
127
127
|
return ze(async () => {
|
|
128
128
|
a.value = await me(l, { autocomplete: "new-password", ...fe() });
|
|
129
|
-
}), (
|
|
129
|
+
}), (g, u) => {
|
|
130
130
|
const i = O("el-autocomplete");
|
|
131
131
|
return d(), S(i, ee({ class: "ElPlusFormAutocomplete-panel" }, a.value, { disabled: e.disabled }, ye(o.value), {
|
|
132
132
|
modelValue: s.value,
|
|
133
133
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c)
|
|
134
134
|
}), lt({
|
|
135
135
|
default: _((c) => [
|
|
136
|
-
De(
|
|
136
|
+
De(g.$slots, "default", { data: c }, void 0, !0)
|
|
137
137
|
]),
|
|
138
138
|
_: 2
|
|
139
139
|
}, [
|
|
140
140
|
Me(r.value, (c, j, p) => ({
|
|
141
141
|
name: j,
|
|
142
142
|
fn: _((m) => [
|
|
143
|
-
De(
|
|
143
|
+
De(g.$slots, j, { data: m }, void 0, !0)
|
|
144
144
|
])
|
|
145
145
|
}))
|
|
146
146
|
]), 1040, ["disabled", "modelValue"]);
|
|
@@ -347,7 +347,7 @@ const Po = {
|
|
|
347
347
|
formData: {}
|
|
348
348
|
},
|
|
349
349
|
setup(e) {
|
|
350
|
-
const t = ce("lodash"), l = ce("defaultConf"), n = e, s =
|
|
350
|
+
const t = ce("lodash"), l = ce("defaultConf"), n = e, s = f(n.loading ?? !1), r = le(() => {
|
|
351
351
|
var p;
|
|
352
352
|
if ((p = n.desc) != null && p.auth)
|
|
353
353
|
if (!l.auth)
|
|
@@ -358,7 +358,7 @@ const Po = {
|
|
|
358
358
|
}), a = le(() => {
|
|
359
359
|
var p;
|
|
360
360
|
return !!((p = n.desc) != null && p.text);
|
|
361
|
-
}), 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"]),
|
|
361
|
+
}), 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"]), g = le(() => {
|
|
362
362
|
const p = {};
|
|
363
363
|
for (const m in i.value)
|
|
364
364
|
o.has(m) || (p[m] = i.value[m]);
|
|
@@ -375,8 +375,8 @@ const Po = {
|
|
|
375
375
|
if (n.desc && n.desc.on)
|
|
376
376
|
for (const m in n.desc.on)
|
|
377
377
|
m === "click" && n.desc.mask ? p[m] = function() {
|
|
378
|
-
var
|
|
379
|
-
s.value = !0, (
|
|
378
|
+
var $;
|
|
379
|
+
s.value = !0, ($ = n.desc) == null || $.on[m]({
|
|
380
380
|
row: n.formData || {},
|
|
381
381
|
callBack: (B) => {
|
|
382
382
|
setTimeout(() => s.value = !1, B || 50);
|
|
@@ -385,8 +385,8 @@ const Po = {
|
|
|
385
385
|
rowIndex: n.rowIndex
|
|
386
386
|
});
|
|
387
387
|
} : p[m] = function() {
|
|
388
|
-
var
|
|
389
|
-
(
|
|
388
|
+
var $;
|
|
389
|
+
($ = n.desc) == null || $.on[m]({ row: t.cloneDeep(n.formData || {}), field: n.field, rowIndex: n.rowIndex });
|
|
390
390
|
};
|
|
391
391
|
return p;
|
|
392
392
|
}), j = le(() => {
|
|
@@ -399,28 +399,28 @@ const Po = {
|
|
|
399
399
|
s.value = p;
|
|
400
400
|
}
|
|
401
401
|
), (p, m) => {
|
|
402
|
-
var w,
|
|
403
|
-
const
|
|
402
|
+
var w, v, G, P, T, L, y, k, x, N;
|
|
403
|
+
const $ = O("el-icon"), B = O("el-link"), b = O("el-popconfirm"), Q = O("el-button");
|
|
404
404
|
return r.value ? (d(), I(oe, { key: 0 }, [
|
|
405
405
|
a.value ? (d(), I(oe, { key: 0 }, [
|
|
406
406
|
(w = n.desc) != null && w.confirm ? (d(), S(b, {
|
|
407
407
|
key: 0,
|
|
408
408
|
onConfirm: c.value.click,
|
|
409
|
-
title: (
|
|
409
|
+
title: (v = n.desc) == null ? void 0 : v.confirm
|
|
410
410
|
}, {
|
|
411
411
|
reference: _(() => {
|
|
412
|
-
var
|
|
412
|
+
var D, Y;
|
|
413
413
|
return [
|
|
414
414
|
Z(B, ee({
|
|
415
415
|
underline: "never",
|
|
416
416
|
type: u.value
|
|
417
|
-
},
|
|
418
|
-
disabled: s.value ||
|
|
419
|
-
style: { pointerEvents: (
|
|
420
|
-
class: { "no-label": !((
|
|
417
|
+
}, g.value, {
|
|
418
|
+
disabled: s.value || g.value.disabled,
|
|
419
|
+
style: { pointerEvents: (D = e.desc) != null && D.isTag ? "none" : "all" },
|
|
420
|
+
class: { "no-label": !((Y = n.desc) != null && Y.label) }
|
|
421
421
|
}), {
|
|
422
422
|
default: _(() => [
|
|
423
|
-
s.value ? (d(), S(
|
|
423
|
+
s.value ? (d(), S($, {
|
|
424
424
|
key: 0,
|
|
425
425
|
class: "is-loading"
|
|
426
426
|
}, {
|
|
@@ -428,13 +428,13 @@ const Po = {
|
|
|
428
428
|
Z(je(zl))
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
|
-
})) :
|
|
431
|
+
})) : F("", !0),
|
|
432
432
|
De(p.$slots, "default", {}, () => {
|
|
433
|
-
var
|
|
433
|
+
var U;
|
|
434
434
|
return [
|
|
435
|
-
(
|
|
435
|
+
(U = n.desc) != null && U.label ? (d(), I(oe, { key: 0 }, [
|
|
436
436
|
pe(de(j.value), 1)
|
|
437
|
-
], 64)) :
|
|
437
|
+
], 64)) : F("", !0)
|
|
438
438
|
];
|
|
439
439
|
})
|
|
440
440
|
]),
|
|
@@ -447,13 +447,13 @@ const Po = {
|
|
|
447
447
|
key: 1,
|
|
448
448
|
underline: "never",
|
|
449
449
|
type: u.value
|
|
450
|
-
},
|
|
451
|
-
disabled: s.value ||
|
|
450
|
+
}, g.value, ye(c.value), {
|
|
451
|
+
disabled: s.value || g.value.disabled,
|
|
452
452
|
style: { pointerEvents: (G = e.desc) != null && G.isTag ? "none" : "all" },
|
|
453
453
|
class: { "no-label": !((P = n.desc) != null && P.label) }
|
|
454
454
|
}), {
|
|
455
455
|
default: _(() => [
|
|
456
|
-
s.value ? (d(), S(
|
|
456
|
+
s.value ? (d(), S($, {
|
|
457
457
|
key: 0,
|
|
458
458
|
class: "is-loading"
|
|
459
459
|
}, {
|
|
@@ -461,13 +461,13 @@ const Po = {
|
|
|
461
461
|
Z(je(zl))
|
|
462
462
|
]),
|
|
463
463
|
_: 1
|
|
464
|
-
})) :
|
|
464
|
+
})) : F("", !0),
|
|
465
465
|
De(p.$slots, "default", {}, () => {
|
|
466
|
-
var
|
|
466
|
+
var D;
|
|
467
467
|
return [
|
|
468
|
-
(
|
|
468
|
+
(D = n.desc) != null && D.label ? (d(), I(oe, { key: 0 }, [
|
|
469
469
|
pe(de(j.value), 1)
|
|
470
|
-
], 64)) :
|
|
470
|
+
], 64)) : F("", !0)
|
|
471
471
|
];
|
|
472
472
|
})
|
|
473
473
|
]),
|
|
@@ -480,24 +480,26 @@ const Po = {
|
|
|
480
480
|
title: (L = n.desc) == null ? void 0 : L.confirm
|
|
481
481
|
}, {
|
|
482
482
|
reference: _(() => {
|
|
483
|
-
var
|
|
483
|
+
var D, Y;
|
|
484
484
|
return [
|
|
485
485
|
Z(Q, ee({
|
|
486
486
|
loading: s.value,
|
|
487
|
-
size: ((
|
|
488
|
-
}, i.value
|
|
487
|
+
size: ((D = n.desc) == null ? void 0 : D.size) || "default"
|
|
488
|
+
}, i.value, {
|
|
489
|
+
class: { btnHideLabel: !((Y = n.desc) != null && Y.label) }
|
|
490
|
+
}), {
|
|
489
491
|
default: _(() => [
|
|
490
492
|
De(p.$slots, "default", {}, () => {
|
|
491
|
-
var
|
|
493
|
+
var U;
|
|
492
494
|
return [
|
|
493
|
-
(
|
|
495
|
+
(U = n.desc) != null && U.label ? (d(), I(oe, { key: 0 }, [
|
|
494
496
|
pe(de(j.value), 1)
|
|
495
|
-
], 64)) :
|
|
497
|
+
], 64)) : F("", !0)
|
|
496
498
|
];
|
|
497
499
|
})
|
|
498
500
|
]),
|
|
499
501
|
_: 3
|
|
500
|
-
}, 16, ["loading", "size"])
|
|
502
|
+
}, 16, ["loading", "size", "class"])
|
|
501
503
|
];
|
|
502
504
|
}),
|
|
503
505
|
_: 3
|
|
@@ -507,22 +509,22 @@ const Po = {
|
|
|
507
509
|
size: ((y = n.desc) == null ? void 0 : y.size) || "default"
|
|
508
510
|
}, i.value, ye(c.value), {
|
|
509
511
|
style: { pointerEvents: (k = e.desc) != null && k.isTag ? "none" : "all" },
|
|
510
|
-
class: { "no-label": !((x = n.desc) != null && x.label) }
|
|
512
|
+
class: { "no-label": !((x = n.desc) != null && x.label), btnHideLabel: !((N = n.desc) != null && N.label) }
|
|
511
513
|
}), {
|
|
512
514
|
default: _(() => [
|
|
513
515
|
De(p.$slots, "default", {}, () => {
|
|
514
|
-
var
|
|
516
|
+
var D;
|
|
515
517
|
return [
|
|
516
|
-
(
|
|
518
|
+
(D = n.desc) != null && D.label ? (d(), I(oe, { key: 0 }, [
|
|
517
519
|
pe(de(j.value), 1)
|
|
518
|
-
], 64)) :
|
|
520
|
+
], 64)) : F("", !0)
|
|
519
521
|
];
|
|
520
522
|
})
|
|
521
523
|
]),
|
|
522
524
|
_: 3
|
|
523
525
|
}, 16, ["loading", "size", "style", "class"]))
|
|
524
526
|
], 64))
|
|
525
|
-
], 64)) :
|
|
527
|
+
], 64)) : F("", !0);
|
|
526
528
|
};
|
|
527
529
|
}
|
|
528
530
|
});
|
|
@@ -542,7 +544,7 @@ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
542
544
|
disabled: { type: Boolean }
|
|
543
545
|
},
|
|
544
546
|
setup(e) {
|
|
545
|
-
const t = e, l =
|
|
547
|
+
const t = e, l = f(!!t.loading), n = f([]), s = f({}), r = f(!1), a = {
|
|
546
548
|
name: "file",
|
|
547
549
|
showFileList: !1,
|
|
548
550
|
listType: "text",
|
|
@@ -559,13 +561,13 @@ const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
559
561
|
}).then(() => p(!0)).catch(() => {
|
|
560
562
|
p(!1), l.value = !1;
|
|
561
563
|
});
|
|
562
|
-
}) : await
|
|
564
|
+
}) : await g(u);
|
|
563
565
|
},
|
|
564
566
|
onError: () => {
|
|
565
567
|
Xe.error("文件上传出错,请检查文件格式及内容是否正确!"), l.value = !1;
|
|
566
568
|
}
|
|
567
569
|
}, o = le(() => 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 : "");
|
|
568
|
-
function
|
|
570
|
+
function g(u) {
|
|
569
571
|
return new Promise((i, c) => {
|
|
570
572
|
l.value = !0;
|
|
571
573
|
const j = u.name.substring(u.name.lastIndexOf(".")), p = t.desc.accept || t.desc.attrs.accept || [".xlsx", ".xls"];
|
|
@@ -641,7 +643,7 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
641
643
|
disabled: { type: Boolean }
|
|
642
644
|
},
|
|
643
645
|
setup(e) {
|
|
644
|
-
const t = ce("defaultConf"), l = e, n =
|
|
646
|
+
const t = ce("defaultConf"), l = e, n = f([]), s = f([]), r = le(() => {
|
|
645
647
|
switch (l.desc.align) {
|
|
646
648
|
case "right":
|
|
647
649
|
return "flex-end";
|
|
@@ -672,11 +674,11 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
672
674
|
}), o = () => {
|
|
673
675
|
const i = [];
|
|
674
676
|
s.value = [], l.desc.btns.length > 0 && l.desc.btns.map((j) => {
|
|
675
|
-
|
|
677
|
+
g(j) && i.push(j);
|
|
676
678
|
}), n.value = i;
|
|
677
679
|
const c = l.desc.limit || 3;
|
|
678
680
|
n.value.length > c && (s.value = n.value.splice(c - 1));
|
|
679
|
-
},
|
|
681
|
+
}, g = (i) => {
|
|
680
682
|
let c = !0;
|
|
681
683
|
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;
|
|
682
684
|
}, u = (i) => i(l.formData || {});
|
|
@@ -689,7 +691,7 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
689
691
|
), it(() => {
|
|
690
692
|
o();
|
|
691
693
|
}), (i, c) => {
|
|
692
|
-
const j = O("el-icon"), p = O("el-button"), m = O("el-dropdown-item"),
|
|
694
|
+
const j = O("el-icon"), p = O("el-button"), m = O("el-dropdown-item"), $ = O("el-dropdown-menu"), B = O("el-dropdown");
|
|
693
695
|
return d(), I("div", {
|
|
694
696
|
class: "el-plus-form-btn-group",
|
|
695
697
|
style: Pe({ "justify-content": r.value })
|
|
@@ -726,7 +728,7 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
726
728
|
disabled: e.disabled || e.desc.disabled
|
|
727
729
|
}, {
|
|
728
730
|
dropdown: _(() => [
|
|
729
|
-
Z(
|
|
731
|
+
Z($, null, {
|
|
730
732
|
default: _(() => [
|
|
731
733
|
(d(!0), I(oe, null, Me(s.value, (b, Q) => (d(), S(m, ee({
|
|
732
734
|
key: Q + (b.label || b.title)
|
|
@@ -759,7 +761,7 @@ const qt = /* @__PURE__ */ Ae(Ro, [["__scopeId", "data-v-189da0c6"]]), $o = /* @
|
|
|
759
761
|
}, 8, ["size", "plain"])
|
|
760
762
|
]),
|
|
761
763
|
_: 1
|
|
762
|
-
}, 8, ["size", "disabled"])) :
|
|
764
|
+
}, 8, ["size", "disabled"])) : F("", !0)
|
|
763
765
|
], 4);
|
|
764
766
|
};
|
|
765
767
|
}
|
|
@@ -841,7 +843,7 @@ function Jo(e) {
|
|
|
841
843
|
}
|
|
842
844
|
function Tn(e, t, l, n, s) {
|
|
843
845
|
const r = [], a = (/* @__PURE__ */ new Date()).getTime();
|
|
844
|
-
return e && e.length > 0 && e.map((o,
|
|
846
|
+
return e && e.length > 0 && e.map((o, g) => {
|
|
845
847
|
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) {
|
|
846
848
|
case "image":
|
|
847
849
|
o.width = o.width || "110px", o.align = o.align || "left", o.headerAlign = o.headerAlign || n || "left";
|
|
@@ -856,7 +858,7 @@ function Tn(e, t, l, n, s) {
|
|
|
856
858
|
o.align = o.align || "left", o.headerAlign = o.headerAlign || n || "left", o.text = !0;
|
|
857
859
|
break;
|
|
858
860
|
}
|
|
859
|
-
o.minWidth = o.minWidth || (o.label !== "操作" ? s : "auto"), o.showOverflowTooltip = o.label !== "操作", Xo(o, t, l), o.__id = `${a +
|
|
861
|
+
o.minWidth = o.minWidth || (o.label !== "操作" ? s : "auto"), o.showOverflowTooltip = o.label !== "操作", Xo(o, t, l), o.__id = `${a + g}`, r.push(o);
|
|
860
862
|
}), r;
|
|
861
863
|
}
|
|
862
864
|
function Xo(e, t, l) {
|
|
@@ -897,7 +899,7 @@ const es = (e, t) => {
|
|
|
897
899
|
},
|
|
898
900
|
emits: ["update:modelValue"],
|
|
899
901
|
setup(e, { emit: t }) {
|
|
900
|
-
const l = ce("globalData"), n = e, r = at(n, "modelValue", t), a =
|
|
902
|
+
const l = ce("globalData"), n = e, r = at(n, "modelValue", t), a = f(!1), o = f({}), g = f(Ie(n)), u = Oe([]);
|
|
901
903
|
return ze(async () => {
|
|
902
904
|
o.value = await me(n, { clearable: !0, props: { value: "value", label: "label", children: "children", checkStrictly: !!n.desc.checkStrictly }, ...fe() }), a.value = !0;
|
|
903
905
|
}), re(
|
|
@@ -911,11 +913,11 @@ const es = (e, t) => {
|
|
|
911
913
|
return a.value ? (d(), S(j, ee({
|
|
912
914
|
key: 0,
|
|
913
915
|
class: "ElPlusFormCascader-panel"
|
|
914
|
-
}, o.value, { disabled: e.disabled }, ye(
|
|
916
|
+
}, o.value, { disabled: e.disabled }, ye(g.value), {
|
|
915
917
|
options: u,
|
|
916
918
|
modelValue: je(r),
|
|
917
919
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => ft(r) ? r.value = p : null)
|
|
918
|
-
}), null, 16, ["disabled", "options", "modelValue"])) :
|
|
920
|
+
}), null, 16, ["disabled", "options", "modelValue"])) : F("", !0);
|
|
919
921
|
};
|
|
920
922
|
}
|
|
921
923
|
});
|
|
@@ -935,9 +937,9 @@ const xn = /* @__PURE__ */ Ae(ls, [["__scopeId", "data-v-c9c2c533"]]), ns = /* @
|
|
|
935
937
|
},
|
|
936
938
|
emits: ["update:modelValue"],
|
|
937
939
|
setup(e, { emit: t }) {
|
|
938
|
-
const l = ce("globalData"), n = e, s = t, r =
|
|
940
|
+
const l = ce("globalData"), n = e, s = t, r = f(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]);
|
|
939
941
|
s("update:modelValue", r);
|
|
940
|
-
const a =
|
|
942
|
+
const a = f({}), o = f(!1), g = f(Ie(n)), u = Oe([]);
|
|
941
943
|
return ze(async () => {
|
|
942
944
|
a.value = await me(n, {
|
|
943
945
|
props: { value: "value", label: "label", children: "children" },
|
|
@@ -957,11 +959,11 @@ const xn = /* @__PURE__ */ Ae(ls, [["__scopeId", "data-v-c9c2c533"]]), ns = /* @
|
|
|
957
959
|
return o.value ? (d(), S(j, ee({
|
|
958
960
|
key: 0,
|
|
959
961
|
class: "ElPlusFormCascaderPanel-panel"
|
|
960
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
962
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
961
963
|
options: u,
|
|
962
964
|
modelValue: r.value,
|
|
963
965
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.value = p)
|
|
964
|
-
}), null, 16, ["disabled", "options", "modelValue"])) :
|
|
966
|
+
}), null, 16, ["disabled", "options", "modelValue"])) : F("", !0);
|
|
965
967
|
};
|
|
966
968
|
}
|
|
967
969
|
});
|
|
@@ -984,9 +986,9 @@ const _n = /* @__PURE__ */ Ae(os, [["__scopeId", "data-v-bcaf6e38"]]), ss = /* @
|
|
|
984
986
|
},
|
|
985
987
|
emits: ["update:modelValue"],
|
|
986
988
|
setup(e, { emit: t }) {
|
|
987
|
-
const l = ce("globalData"), n = e, r = at(n, "modelValue", t), a = Oe([]), o =
|
|
989
|
+
const l = ce("globalData"), n = e, r = at(n, "modelValue", t), a = Oe([]), o = f(!1), g = f({}), u = f(Ie(n));
|
|
988
990
|
return ze(async () => {
|
|
989
|
-
|
|
991
|
+
g.value = await me(n, { ...fe() }), o.value = !0;
|
|
990
992
|
}), re(
|
|
991
993
|
() => n.desc.options,
|
|
992
994
|
async (i) => {
|
|
@@ -1005,7 +1007,7 @@ const _n = /* @__PURE__ */ Ae(os, [["__scopeId", "data-v-bcaf6e38"]]), ss = /* @
|
|
|
1005
1007
|
a != null && a.length ? (d(), S(p, ee({
|
|
1006
1008
|
key: 0,
|
|
1007
1009
|
class: "ElPlusFormCheckbox-panel"
|
|
1008
|
-
},
|
|
1010
|
+
}, g.value, { disabled: e.disabled }, ye(u.value), {
|
|
1009
1011
|
modelValue: je(r),
|
|
1010
1012
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => ft(r) ? r.value = m : null)
|
|
1011
1013
|
}), {
|
|
@@ -1023,7 +1025,7 @@ const _n = /* @__PURE__ */ Ae(os, [["__scopeId", "data-v-bcaf6e38"]]), ss = /* @
|
|
|
1023
1025
|
]),
|
|
1024
1026
|
_: 1
|
|
1025
1027
|
}, 16, ["disabled", "modelValue"])) : (d(), I("div", us, "暂无选项"))
|
|
1026
|
-
], 64)) :
|
|
1028
|
+
], 64)) : F("", !0);
|
|
1027
1029
|
};
|
|
1028
1030
|
}
|
|
1029
1031
|
});
|
|
@@ -1043,12 +1045,12 @@ const Ln = /* @__PURE__ */ Ae(rs, [["__scopeId", "data-v-0320ab23"]]), cs = /* @
|
|
|
1043
1045
|
},
|
|
1044
1046
|
emits: ["update:modelValue"],
|
|
1045
1047
|
setup(e, { emit: t }) {
|
|
1046
|
-
const l = e, n = t, s =
|
|
1048
|
+
const l = e, n = t, s = f(l.modelValue);
|
|
1047
1049
|
n("update:modelValue", s);
|
|
1048
|
-
const r =
|
|
1050
|
+
const r = f({}), a = f(!1), o = f(Ie(l));
|
|
1049
1051
|
return ze(async () => {
|
|
1050
1052
|
r.value = await me(l, { ...fe() }), a.value = !0;
|
|
1051
|
-
}), (
|
|
1053
|
+
}), (g, u) => {
|
|
1052
1054
|
const i = O("el-checkbox-button"), c = O("el-checkbox-group");
|
|
1053
1055
|
return a.value ? (d(), S(c, ee({
|
|
1054
1056
|
key: 0,
|
|
@@ -1069,7 +1071,7 @@ const Ln = /* @__PURE__ */ Ae(rs, [["__scopeId", "data-v-0320ab23"]]), cs = /* @
|
|
|
1069
1071
|
}, 1040, ["label"]))), 128))
|
|
1070
1072
|
]),
|
|
1071
1073
|
_: 1
|
|
1072
|
-
}, 16, ["disabled", "modelValue"])) :
|
|
1074
|
+
}, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
1073
1075
|
};
|
|
1074
1076
|
}
|
|
1075
1077
|
});
|
|
@@ -1089,14 +1091,14 @@ const Cn = /* @__PURE__ */ Ae(Ms, [["__scopeId", "data-v-51a8d752"]]), fs = /* @
|
|
|
1089
1091
|
},
|
|
1090
1092
|
emits: ["update:modelValue"],
|
|
1091
1093
|
setup(e, { emit: t }) {
|
|
1092
|
-
const l = e, n = t, s =
|
|
1094
|
+
const l = e, n = t, s = f(l.modelValue), r = f({}), a = f(Ie(l));
|
|
1093
1095
|
return n("update:modelValue", s), ze(async () => {
|
|
1094
1096
|
r.value = await me(l, { ...fe() });
|
|
1095
|
-
}), (o,
|
|
1097
|
+
}), (o, g) => {
|
|
1096
1098
|
const u = O("el-color-picker");
|
|
1097
1099
|
return d(), S(u, ee({ class: "ElPlusFormColor-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
1098
1100
|
modelValue: s.value,
|
|
1099
|
-
"onUpdate:modelValue":
|
|
1101
|
+
"onUpdate:modelValue": g[0] || (g[0] = (i) => s.value = i)
|
|
1100
1102
|
}), null, 16, ["disabled", "modelValue"]);
|
|
1101
1103
|
};
|
|
1102
1104
|
}
|
|
@@ -1117,10 +1119,10 @@ const En = /* @__PURE__ */ Ae(Ns, [["__scopeId", "data-v-f1a9c235"]]), js = /* @
|
|
|
1117
1119
|
},
|
|
1118
1120
|
emits: ["update:modelValue"],
|
|
1119
1121
|
setup(e, { emit: t }) {
|
|
1120
|
-
const l = e, n = t, s =
|
|
1122
|
+
const l = e, n = t, s = f(!1), r = f({}), a = f(Ie(l)), o = at(l, "modelValue", n);
|
|
1121
1123
|
return ze(async () => {
|
|
1122
1124
|
r.value = await me(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", editable: !1, ...fe() }), s.value = !0;
|
|
1123
|
-
}), (
|
|
1125
|
+
}), (g, u) => {
|
|
1124
1126
|
const i = O("el-date-picker");
|
|
1125
1127
|
return s.value ? (d(), S(i, ee({
|
|
1126
1128
|
key: 0,
|
|
@@ -1128,7 +1130,7 @@ const En = /* @__PURE__ */ Ae(Ns, [["__scopeId", "data-v-f1a9c235"]]), js = /* @
|
|
|
1128
1130
|
}, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
1129
1131
|
modelValue: je(o),
|
|
1130
1132
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => ft(o) ? o.value = c : null)
|
|
1131
|
-
}), null, 16, ["disabled", "modelValue"])) :
|
|
1133
|
+
}), null, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
1132
1134
|
};
|
|
1133
1135
|
}
|
|
1134
1136
|
});
|
|
@@ -1148,7 +1150,7 @@ const On = /* @__PURE__ */ Ae(ys, [["__scopeId", "data-v-9e53a749"]]), zs = /* @
|
|
|
1148
1150
|
},
|
|
1149
1151
|
emits: ["update:modelValue"],
|
|
1150
1152
|
setup(e, { emit: t }) {
|
|
1151
|
-
const l = e, n = t, s =
|
|
1153
|
+
const l = e, n = t, s = f(l.modelValue), r = f(Object.assign({}, Re(), l.desc.slots)), a = f(!1), o = f({}), g = f(Ie(l));
|
|
1152
1154
|
return n("update:modelValue", s), ze(async () => {
|
|
1153
1155
|
o.value = await me(l, { type: "daterange", format: "YYYY-MM-DD", valueFormat: "x", editable: !1, ...fe() }), a.value = !0;
|
|
1154
1156
|
}), (u, i) => {
|
|
@@ -1156,17 +1158,17 @@ const On = /* @__PURE__ */ Ae(ys, [["__scopeId", "data-v-9e53a749"]]), zs = /* @
|
|
|
1156
1158
|
return a.value ? (d(), S(c, ee({
|
|
1157
1159
|
key: 0,
|
|
1158
1160
|
class: "el-plusF-form-daterange-panel"
|
|
1159
|
-
}, o.value, { disabled: e.disabled }, ye(
|
|
1161
|
+
}, o.value, { disabled: e.disabled }, ye(g.value), {
|
|
1160
1162
|
modelValue: s.value,
|
|
1161
1163
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => s.value = j)
|
|
1162
1164
|
}), lt({ _: 2 }, [
|
|
1163
1165
|
Me(r.value, (j, p, m) => ({
|
|
1164
1166
|
name: p,
|
|
1165
|
-
fn: _((
|
|
1166
|
-
De(u.$slots, p, { data:
|
|
1167
|
+
fn: _(($) => [
|
|
1168
|
+
De(u.$slots, p, { data: $ }, void 0, !0)
|
|
1167
1169
|
])
|
|
1168
1170
|
}))
|
|
1169
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
1171
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
1170
1172
|
};
|
|
1171
1173
|
}
|
|
1172
1174
|
});
|
|
@@ -1186,10 +1188,10 @@ const Sn = /* @__PURE__ */ Ae(Ds, [["__scopeId", "data-v-45408465"]]), vs = /* @
|
|
|
1186
1188
|
},
|
|
1187
1189
|
emits: ["update:modelValue"],
|
|
1188
1190
|
setup(e, { emit: t }) {
|
|
1189
|
-
const l = e, n = t, s =
|
|
1191
|
+
const l = e, n = t, s = f(l.modelValue), r = f({}), a = f(!1), o = f(Ie(l));
|
|
1190
1192
|
return n("update:modelValue", s), ze(async () => {
|
|
1191
1193
|
r.value = await me(l, { valueFormat: "YYYY-MM-DD HH:mm:ss", ...fe() }), a.value = !0;
|
|
1192
|
-
}), (
|
|
1194
|
+
}), (g, u) => {
|
|
1193
1195
|
const i = O("el-date-picker");
|
|
1194
1196
|
return a.value ? (d(), S(i, ee({
|
|
1195
1197
|
key: 0,
|
|
@@ -1198,7 +1200,7 @@ const Sn = /* @__PURE__ */ Ae(Ds, [["__scopeId", "data-v-45408465"]]), vs = /* @
|
|
|
1198
1200
|
type: "datetime",
|
|
1199
1201
|
modelValue: s.value,
|
|
1200
1202
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c)
|
|
1201
|
-
}), null, 16, ["disabled", "modelValue"])) :
|
|
1203
|
+
}), null, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
1202
1204
|
};
|
|
1203
1205
|
}
|
|
1204
1206
|
});
|
|
@@ -1218,7 +1220,7 @@ const kn = /* @__PURE__ */ Ae(Is, [["__scopeId", "data-v-9e22537f"]]), ws = /* @
|
|
|
1218
1220
|
},
|
|
1219
1221
|
emits: ["update:modelValue"],
|
|
1220
1222
|
setup(e, { emit: t }) {
|
|
1221
|
-
const l = e, n = t, s =
|
|
1223
|
+
const l = e, n = t, s = f(l.modelValue), r = f(Object.assign({}, Re(), l.desc.slots)), a = f({}), o = f(!1), g = f(Ie(l));
|
|
1222
1224
|
return n("update:modelValue", s), ze(async () => {
|
|
1223
1225
|
a.value = await me(l, { type: "datetimerange", format: "YYYY-MM-DD HH:mm:ss", valueFormat: "x", editable: !1, ...fe() }), o.value = !0;
|
|
1224
1226
|
}), (u, i) => {
|
|
@@ -1226,17 +1228,17 @@ const kn = /* @__PURE__ */ Ae(Is, [["__scopeId", "data-v-9e22537f"]]), ws = /* @
|
|
|
1226
1228
|
return o.value ? (d(), S(c, ee({
|
|
1227
1229
|
key: 0,
|
|
1228
1230
|
class: "el-plusF-form-datetimerange-panel"
|
|
1229
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
1231
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
1230
1232
|
modelValue: s.value,
|
|
1231
1233
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => s.value = j)
|
|
1232
1234
|
}), lt({ _: 2 }, [
|
|
1233
1235
|
Me(r.value, (j, p, m) => ({
|
|
1234
1236
|
name: p,
|
|
1235
|
-
fn: _((
|
|
1236
|
-
De(u.$slots, p, { data:
|
|
1237
|
+
fn: _(($) => [
|
|
1238
|
+
De(u.$slots, p, { data: $ }, void 0, !0)
|
|
1237
1239
|
])
|
|
1238
1240
|
}))
|
|
1239
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
1241
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
1240
1242
|
};
|
|
1241
1243
|
}
|
|
1242
1244
|
});
|
|
@@ -1267,7 +1269,7 @@ const Bn = /* @__PURE__ */ Ae(As, [["__scopeId", "data-v-880db21d"]]), Ts = /* @
|
|
|
1267
1269
|
showName: { type: Boolean }
|
|
1268
1270
|
},
|
|
1269
1271
|
setup(e) {
|
|
1270
|
-
const t = e, l =
|
|
1272
|
+
const t = e, l = f(!1), n = f(0), s = le(() => t.files.map((u) => {
|
|
1271
1273
|
if (Nl.indexOf(u.suffix || "") >= 0)
|
|
1272
1274
|
return u.signUrl || u.shareUrl || u.furl || u.url;
|
|
1273
1275
|
}).filter((u) => u)), r = le(() => ({
|
|
@@ -1279,9 +1281,9 @@ const Bn = /* @__PURE__ */ Ae(As, [["__scopeId", "data-v-880db21d"]]), Ts = /* @
|
|
|
1279
1281
|
return t.showImg && Nl.indexOf(u.suffix || "") >= 0 ? u.shareUrl || u.signUrl : i;
|
|
1280
1282
|
}
|
|
1281
1283
|
function o(u) {
|
|
1282
|
-
t.preview && (Nl.indexOf(u.suffix || "") >= 0 ? (n.value = s.value.indexOf(u.shareUrl || u.signUrl || u.furl || u.url), l.value = !0) :
|
|
1284
|
+
t.preview && (Nl.indexOf(u.suffix || "") >= 0 ? (n.value = s.value.indexOf(u.shareUrl || u.signUrl || u.furl || u.url), l.value = !0) : g(u));
|
|
1283
1285
|
}
|
|
1284
|
-
async function
|
|
1286
|
+
async function g(u) {
|
|
1285
1287
|
const i = new XMLHttpRequest();
|
|
1286
1288
|
let c = u.previewUrl || u.signUrl || u.shareUrl || u.furl || "";
|
|
1287
1289
|
i.open("get", c, !0), i.responseType = "blob";
|
|
@@ -1316,23 +1318,23 @@ const Bn = /* @__PURE__ */ Ae(As, [["__scopeId", "data-v-880db21d"]]), Ts = /* @
|
|
|
1316
1318
|
(d(!0), I(oe, null, Me(e.files, (p, m) => (d(), I("div", {
|
|
1317
1319
|
key: m,
|
|
1318
1320
|
class: "file-item",
|
|
1319
|
-
onClick: (
|
|
1321
|
+
onClick: ($) => o(p)
|
|
1320
1322
|
}, [
|
|
1321
1323
|
Z(c, {
|
|
1322
1324
|
src: a(p),
|
|
1323
1325
|
style: Pe(r.value),
|
|
1324
1326
|
fit: "cover"
|
|
1325
1327
|
}, null, 8, ["src", "style"]),
|
|
1326
|
-
e.showName ? (d(), I("div", Ss, de(je(Wo)(p.name, 50)), 1)) :
|
|
1328
|
+
e.showName ? (d(), I("div", Ss, de(je(Wo)(p.name, 50)), 1)) : F("", !0)
|
|
1327
1329
|
], 8, Os))), 128))
|
|
1328
|
-
], 2)) :
|
|
1330
|
+
], 2)) : F("", !0),
|
|
1329
1331
|
l.value ? (d(), S(j, {
|
|
1330
1332
|
key: 1,
|
|
1331
1333
|
onClose: i[0] || (i[0] = (p) => l.value = !1),
|
|
1332
1334
|
teleported: "",
|
|
1333
1335
|
initialIndex: n.value,
|
|
1334
1336
|
"url-list": s.value
|
|
1335
|
-
}, null, 8, ["initialIndex", "url-list"])) :
|
|
1337
|
+
}, null, 8, ["initialIndex", "url-list"])) : F("", !0)
|
|
1336
1338
|
]);
|
|
1337
1339
|
};
|
|
1338
1340
|
}
|
|
@@ -1391,50 +1393,50 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1391
1393
|
},
|
|
1392
1394
|
emits: ["update:modelValue", "validateThis"],
|
|
1393
1395
|
setup(e, { emit: t }) {
|
|
1394
|
-
const l = ce("globalData"), n = e, s = t, r = Oe([]), a =
|
|
1396
|
+
const l = ce("globalData"), n = e, s = t, r = Oe([]), a = f({}), o = f(!1), g = f(!1), u = f(!1), i = f(""), c = f(), j = f(), p = f("="), m = f(""), $ = le(() => i.value ? r.filter(({ label: N }) => N.includes(i.value)) : r);
|
|
1395
1397
|
function B() {
|
|
1396
|
-
|
|
1397
|
-
var
|
|
1398
|
-
p.value = ((
|
|
1398
|
+
g.value = !0, be(() => {
|
|
1399
|
+
var N, D, Y;
|
|
1400
|
+
p.value = ((N = n.modelValue) == null ? void 0 : N.value) || "=", c.value && (c.value.innerHTML = ((D = n.modelValue) == null ? void 0 : D.domStr) || "=", m.value = (Y = c.value) == null ? void 0 : Y.innerHTML);
|
|
1399
1401
|
});
|
|
1400
1402
|
}
|
|
1401
|
-
function b(
|
|
1403
|
+
function b(N) {
|
|
1402
1404
|
u.value = !1;
|
|
1403
|
-
const
|
|
1404
|
-
Q("@",
|
|
1405
|
+
const D = `<div contenteditable="true">${N.label}<span>${N.value}</span></div>`;
|
|
1406
|
+
Q("@", D), y();
|
|
1405
1407
|
}
|
|
1406
|
-
function Q(
|
|
1407
|
-
var
|
|
1408
|
-
let Y = ((
|
|
1409
|
-
Y && Y.includes(
|
|
1408
|
+
function Q(N, D = "") {
|
|
1409
|
+
var U;
|
|
1410
|
+
let Y = ((U = c.value) == null ? void 0 : U.innerHTML) || "";
|
|
1411
|
+
Y && Y.includes(N) && (Y = Y.replace(new RegExp(N, "g"), D), c.value.innerHTML = Y + " ");
|
|
1410
1412
|
}
|
|
1411
|
-
function w(
|
|
1412
|
-
const { key:
|
|
1413
|
-
switch (
|
|
1413
|
+
function w(N) {
|
|
1414
|
+
const { key: D } = N;
|
|
1415
|
+
switch (D) {
|
|
1414
1416
|
case "Enter":
|
|
1415
|
-
|
|
1417
|
+
N.preventDefault();
|
|
1416
1418
|
break;
|
|
1417
1419
|
case "@":
|
|
1418
1420
|
x();
|
|
1419
1421
|
break;
|
|
1420
1422
|
}
|
|
1421
1423
|
}
|
|
1422
|
-
function
|
|
1423
|
-
var te,
|
|
1424
|
-
const
|
|
1425
|
-
let Y = ((
|
|
1426
|
-
if (
|
|
1427
|
-
for (let K = 0; K <
|
|
1428
|
-
if (
|
|
1429
|
-
|
|
1424
|
+
function v(N) {
|
|
1425
|
+
var te, R;
|
|
1426
|
+
const D = m.value.split(/<div\b[^>]*>(.*?)<\/div>/g) || [];
|
|
1427
|
+
let Y = ((R = (te = c.value) == null ? void 0 : te.innerHTML) == null ? void 0 : R.split(/<div\b[^>]*>(.*?)<\/div>/g)) || [], U = -1;
|
|
1428
|
+
if (D.length === Y.length) {
|
|
1429
|
+
for (let K = 0; K < D.length; K++)
|
|
1430
|
+
if (D[K] !== Y[K]) {
|
|
1431
|
+
U = K;
|
|
1430
1432
|
break;
|
|
1431
1433
|
}
|
|
1432
1434
|
}
|
|
1433
|
-
|
|
1435
|
+
U >= 0 && D[U].indexOf("</span>") > 0 && (N.key === "Backspace" ? Y.splice(U, 1) : Y[U] = D[U], Y = Y.map((K) => K.indexOf("</span>") > 0 ? `<div contenteditable="true">${K}</div>` : K), c.value.innerHTML = Y.join(""), N.key === "Backspace" && G(c.value, U - 1)), y();
|
|
1434
1436
|
}
|
|
1435
|
-
function G(
|
|
1436
|
-
const Y = document.createRange(),
|
|
1437
|
-
Y.selectNodeContents(
|
|
1437
|
+
function G(N, D) {
|
|
1438
|
+
const Y = document.createRange(), U = window.getSelection();
|
|
1439
|
+
Y.selectNodeContents(N), Y.collapse(!1), N.childNodes[D] && Y.setStart(N.childNodes[D], 0), Y.collapse(!0), U == null || U.removeAllRanges(), U == null || U.addRange(Y);
|
|
1438
1440
|
}
|
|
1439
1441
|
function P() {
|
|
1440
1442
|
window.addEventListener("click", k);
|
|
@@ -1443,22 +1445,22 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1443
1445
|
window.removeEventListener("click", k);
|
|
1444
1446
|
}
|
|
1445
1447
|
function L() {
|
|
1446
|
-
var
|
|
1447
|
-
s("update:modelValue", { value: p.value, domStr: ((
|
|
1448
|
+
var N;
|
|
1449
|
+
s("update:modelValue", { value: p.value, domStr: ((N = c.value) == null ? void 0 : N.innerHTML) || "" }), g.value = !1, be(() => {
|
|
1448
1450
|
s("validateThis");
|
|
1449
1451
|
});
|
|
1450
1452
|
}
|
|
1451
1453
|
function y() {
|
|
1452
|
-
var
|
|
1454
|
+
var U;
|
|
1453
1455
|
m.value = c.value.innerHTML;
|
|
1454
|
-
let
|
|
1455
|
-
const
|
|
1456
|
-
(
|
|
1457
|
-
|
|
1458
|
-
}), p.value =
|
|
1456
|
+
let N = c.value.innerHTML;
|
|
1457
|
+
const D = ((U = N.match(/<span[^>]*>([\s\S]*?)<\/span>/g)) == null ? void 0 : U.map((te) => (te.match(/<span[^>]*>([\s\S]*?)<\/span>/) || [])[1])) || [];
|
|
1458
|
+
(N.match(/<div[^>]*>([\s\S]*?)<\/div>/g) || []).map((te, R) => {
|
|
1459
|
+
N = N.replace(te, "${" + D[R] + "}");
|
|
1460
|
+
}), p.value = N.replaceAll(" ", "").replaceAll("<", "<").replaceAll(">", ">");
|
|
1459
1461
|
}
|
|
1460
|
-
function k(
|
|
1461
|
-
u.value = !1,
|
|
1462
|
+
function k(N) {
|
|
1463
|
+
u.value = !1, N && Q("@");
|
|
1462
1464
|
}
|
|
1463
1465
|
function x() {
|
|
1464
1466
|
i.value = "", u.value = !0, setTimeout(() => {
|
|
@@ -1469,26 +1471,26 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1469
1471
|
T(), a.value = await me(n, { clearable: !0, ...fe() }), o.value = !0;
|
|
1470
1472
|
}), re(
|
|
1471
1473
|
() => n.desc.options,
|
|
1472
|
-
async (
|
|
1473
|
-
if (typeof
|
|
1474
|
-
r.splice(0, r.length, ...l[
|
|
1475
|
-
else if (typeof
|
|
1476
|
-
const
|
|
1477
|
-
et(
|
|
1474
|
+
async (N) => {
|
|
1475
|
+
if (typeof N == "string")
|
|
1476
|
+
r.splice(0, r.length, ...l[N] || []);
|
|
1477
|
+
else if (typeof N == "function") {
|
|
1478
|
+
const D = N(n.formData || {});
|
|
1479
|
+
et(D) ? r.splice(0, r.length, ...await D) : r.splice(0, r.length, ...D);
|
|
1478
1480
|
} else
|
|
1479
|
-
Array.isArray(
|
|
1481
|
+
Array.isArray(N) ? N && r && !tt(N, r) && r.splice(0, r.length, ...N) : r.splice(0, r.length);
|
|
1480
1482
|
},
|
|
1481
1483
|
{ immediate: !0 }
|
|
1482
1484
|
), re(
|
|
1483
1485
|
() => n.modelValue,
|
|
1484
|
-
(
|
|
1485
|
-
p.value = (
|
|
1486
|
+
(N) => {
|
|
1487
|
+
p.value = (N == null ? void 0 : N.value) || "=", c.value && (c.value.innerHTML = (N == null ? void 0 : N.domStr) || "=");
|
|
1486
1488
|
},
|
|
1487
1489
|
{ immediate: !0 }
|
|
1488
1490
|
), vn(() => {
|
|
1489
1491
|
T();
|
|
1490
|
-
}), (
|
|
1491
|
-
const Y = O("el-button"),
|
|
1492
|
+
}), (N, D) => {
|
|
1493
|
+
const Y = O("el-button"), U = O("el-input"), te = O("el-dialog");
|
|
1492
1494
|
return d(), I("div", Fs, [
|
|
1493
1495
|
ae("div", Rs, [
|
|
1494
1496
|
Z(Y, {
|
|
@@ -1499,9 +1501,9 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1499
1501
|
text: ""
|
|
1500
1502
|
}, {
|
|
1501
1503
|
default: _(() => {
|
|
1502
|
-
var
|
|
1504
|
+
var R;
|
|
1503
1505
|
return [
|
|
1504
|
-
pe(de(((
|
|
1506
|
+
pe(de(((R = e.modelValue) == null ? void 0 : R.value) || "点击进行编辑"), 1)
|
|
1505
1507
|
];
|
|
1506
1508
|
}),
|
|
1507
1509
|
_: 1
|
|
@@ -1514,8 +1516,8 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1514
1516
|
draggable: "",
|
|
1515
1517
|
closeOnClickModal: !1,
|
|
1516
1518
|
showCancel: "",
|
|
1517
|
-
modelValue:
|
|
1518
|
-
"onUpdate:modelValue":
|
|
1519
|
+
modelValue: g.value,
|
|
1520
|
+
"onUpdate:modelValue": D[3] || (D[3] = (R) => g.value = R),
|
|
1519
1521
|
"append-to-body": "",
|
|
1520
1522
|
"destroy-on-close": ""
|
|
1521
1523
|
}, {
|
|
@@ -1525,15 +1527,15 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1525
1527
|
type: "primary",
|
|
1526
1528
|
onClick: L
|
|
1527
1529
|
}, {
|
|
1528
|
-
default: _(() => [...
|
|
1530
|
+
default: _(() => [...D[4] || (D[4] = [
|
|
1529
1531
|
pe("确定", -1)
|
|
1530
1532
|
])]),
|
|
1531
1533
|
_: 1
|
|
1532
1534
|
}),
|
|
1533
1535
|
Z(Y, {
|
|
1534
|
-
onClick:
|
|
1536
|
+
onClick: D[2] || (D[2] = (R) => g.value = !1)
|
|
1535
1537
|
}, {
|
|
1536
|
-
default: _(() => [...
|
|
1538
|
+
default: _(() => [...D[5] || (D[5] = [
|
|
1537
1539
|
pe("取消", -1)
|
|
1538
1540
|
])]),
|
|
1539
1541
|
_: 1
|
|
@@ -1541,7 +1543,7 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1541
1543
|
])
|
|
1542
1544
|
]),
|
|
1543
1545
|
default: _(() => {
|
|
1544
|
-
var
|
|
1546
|
+
var R;
|
|
1545
1547
|
return [
|
|
1546
1548
|
ae("div", $s, [
|
|
1547
1549
|
ae("h2", null, de(p.value), 1)
|
|
@@ -1555,30 +1557,30 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1555
1557
|
}, a.value, {
|
|
1556
1558
|
style: { "ime-mode": "disabled" },
|
|
1557
1559
|
onKeydown: _t(w, ["stop"]),
|
|
1558
|
-
onKeyup: _t(
|
|
1560
|
+
onKeyup: _t(v, ["stop"])
|
|
1559
1561
|
}), null, 16, Ks),
|
|
1560
1562
|
u.value ? (d(), I("div", {
|
|
1561
1563
|
key: 0,
|
|
1562
1564
|
class: "formula-input-selection",
|
|
1563
1565
|
ref: "selection",
|
|
1564
|
-
onClick:
|
|
1566
|
+
onClick: D[1] || (D[1] = _t(() => {
|
|
1565
1567
|
}, ["stop"]))
|
|
1566
1568
|
}, [
|
|
1567
|
-
Z(
|
|
1569
|
+
Z(U, {
|
|
1568
1570
|
modelValue: i.value,
|
|
1569
|
-
"onUpdate:modelValue":
|
|
1571
|
+
"onUpdate:modelValue": D[0] || (D[0] = (K) => i.value = K),
|
|
1570
1572
|
ref_key: "inputRef",
|
|
1571
1573
|
ref: j,
|
|
1572
1574
|
placeholder: "输入关键字筛选"
|
|
1573
1575
|
}, null, 8, ["modelValue"]),
|
|
1574
|
-
(
|
|
1575
|
-
(d(!0), I(oe, null, Me(
|
|
1576
|
+
(R = $.value) != null && R.length ? (d(), I("div", Ws, [
|
|
1577
|
+
(d(!0), I(oe, null, Me($.value, (K, M) => (d(), I("span", {
|
|
1576
1578
|
class: "option",
|
|
1577
|
-
key:
|
|
1579
|
+
key: M,
|
|
1578
1580
|
onClick: (z) => b(K)
|
|
1579
1581
|
}, de(K.label), 9, Zs))), 128))
|
|
1580
1582
|
])) : (d(), I("div", Hs, "暂无数据"))
|
|
1581
|
-
], 512)) :
|
|
1583
|
+
], 512)) : F("", !0)
|
|
1582
1584
|
];
|
|
1583
1585
|
}),
|
|
1584
1586
|
_: 1
|
|
@@ -1602,13 +1604,13 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1602
1604
|
formData: {}
|
|
1603
1605
|
},
|
|
1604
1606
|
setup(e) {
|
|
1605
|
-
const t = e, l =
|
|
1607
|
+
const t = e, l = f({}), n = f(Ie(t));
|
|
1606
1608
|
ze(async () => {
|
|
1607
1609
|
l.value = await me(t, { isShowPreview: !0, previewTeleported: !0, showOne: !1, ...fe() });
|
|
1608
1610
|
});
|
|
1609
1611
|
const s = le(() => 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 = le(() => {
|
|
1610
|
-
let a = "", o = "",
|
|
1611
|
-
switch (
|
|
1612
|
+
let a = "", o = "", g = t.desc.size || "default";
|
|
1613
|
+
switch (g) {
|
|
1612
1614
|
case "large":
|
|
1613
1615
|
a = "44px", o = "44px";
|
|
1614
1616
|
break;
|
|
@@ -1619,18 +1621,18 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1619
1621
|
a = "28px", o = "28px";
|
|
1620
1622
|
break;
|
|
1621
1623
|
default:
|
|
1622
|
-
a = parseInt(
|
|
1624
|
+
a = parseInt(g) + "px", o = parseInt(g) + "px";
|
|
1623
1625
|
break;
|
|
1624
1626
|
}
|
|
1625
1627
|
return Object.assign({}, t.desc.style, { width: a, height: o, "max-width": a });
|
|
1626
1628
|
});
|
|
1627
1629
|
return (a, o) => {
|
|
1628
|
-
const
|
|
1630
|
+
const g = O("el-image");
|
|
1629
1631
|
return d(), I("div", Xs, [
|
|
1630
1632
|
s.value && s.value.length > 0 ? (d(!0), I(oe, { key: 0 }, Me(s.value, (u, i) => (d(), I(oe, {
|
|
1631
1633
|
key: u + i
|
|
1632
1634
|
}, [
|
|
1633
|
-
!l.value.showOne || l.value.showOne && i === 0 ? (d(), S(
|
|
1635
|
+
!l.value.showOne || l.value.showOne && i === 0 ? (d(), S(g, ee({
|
|
1634
1636
|
key: 0,
|
|
1635
1637
|
class: e.desc.class,
|
|
1636
1638
|
src: u,
|
|
@@ -1638,7 +1640,7 @@ const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1638
1640
|
"initial-index": i
|
|
1639
1641
|
}, { ref_for: !0 }, l.value, { style: r.value }, ye(n.value), {
|
|
1640
1642
|
fit: l.value.fit || "cover"
|
|
1641
|
-
}), null, 16, ["class", "src", "preview-src-list", "initial-index", "style", "fit"])) :
|
|
1643
|
+
}), null, 16, ["class", "src", "preview-src-list", "initial-index", "style", "fit"])) : F("", !0)
|
|
1642
1644
|
], 64))), 128)) : (d(), I("div", eu, [...o[0] || (o[0] = [
|
|
1643
1645
|
ae("span", { class: "no-img-tip" }, "-", -1)
|
|
1644
1646
|
])]))
|
|
@@ -1662,7 +1664,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1662
1664
|
},
|
|
1663
1665
|
emits: ["update:modelValue", "validateThis"],
|
|
1664
1666
|
setup(e, { emit: t }) {
|
|
1665
|
-
const l = ce("defaultConf"), n = e, s = t, r =
|
|
1667
|
+
const l = ce("defaultConf"), n = e, s = t, r = f(Object.assign({}, Re(), n.desc.slots)), a = f({}), o = f(!1), g = f(Ie(n)), u = f();
|
|
1666
1668
|
return s("update:modelValue", u), ze(async () => {
|
|
1667
1669
|
var i, c;
|
|
1668
1670
|
a.value = await me(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, clearable: !0, ...fe() }), o.value = !0;
|
|
@@ -1682,17 +1684,17 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1682
1684
|
return o.value ? (d(), S(j, ee({
|
|
1683
1685
|
key: 0,
|
|
1684
1686
|
style: { display: "flex" }
|
|
1685
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
1687
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
1686
1688
|
modelValue: u.value,
|
|
1687
1689
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => u.value = p)
|
|
1688
1690
|
}), lt({ _: 2 }, [
|
|
1689
|
-
Me(r.value, (p, m,
|
|
1691
|
+
Me(r.value, (p, m, $) => ({
|
|
1690
1692
|
name: m,
|
|
1691
1693
|
fn: _(() => [
|
|
1692
1694
|
De(i.$slots, m)
|
|
1693
1695
|
])
|
|
1694
1696
|
}))
|
|
1695
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
1697
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
1696
1698
|
};
|
|
1697
1699
|
}
|
|
1698
1700
|
}), au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Un }, Symbol.toStringTag, { value: "Module" })), ou = { class: "el-plus-form-link" }, su = {
|
|
@@ -1719,9 +1721,9 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1719
1721
|
emits: ["update:modelValue", "change", "input", "validateThis"],
|
|
1720
1722
|
setup(e, { emit: t }) {
|
|
1721
1723
|
var k;
|
|
1722
|
-
const l = ce("lodash"), n = e, s =
|
|
1724
|
+
const l = ce("lodash"), n = e, s = f(((k = n.desc) == null ? void 0 : k.on) || {}), r = t, a = f(n.modelValue);
|
|
1723
1725
|
r("update:modelValue", a);
|
|
1724
|
-
const o =
|
|
1726
|
+
const o = f(), g = Oe([]), u = Oe([]), i = f([]), c = Oe({
|
|
1725
1727
|
multiple: !0,
|
|
1726
1728
|
size: n.desc.size,
|
|
1727
1729
|
collapseTags: !0,
|
|
@@ -1729,16 +1731,16 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1729
1731
|
maxCollapseTags: n.desc.maxCollapseTags || 3,
|
|
1730
1732
|
clearable: !1,
|
|
1731
1733
|
placeholder: n.desc.placeholder || "请选择" + n.desc._label
|
|
1732
|
-
}), j =
|
|
1734
|
+
}), j = f(!1), p = f({}), m = le(() => n.desc.vkey || "id"), $ = f(!1), B = f(), b = Oe([]), Q = Oe([]);
|
|
1733
1735
|
function w(x) {
|
|
1734
|
-
x && (o.value.blur(), j.value = !0, i.value = l.cloneDeep(b.map((
|
|
1736
|
+
x && (o.value.blur(), j.value = !0, i.value = l.cloneDeep(b.map((N) => N.dataItem)), Q.splice(0, Q.length, ...b));
|
|
1735
1737
|
}
|
|
1736
|
-
function
|
|
1738
|
+
function v() {
|
|
1737
1739
|
b.splice(0, b.length), y();
|
|
1738
1740
|
}
|
|
1739
1741
|
function G(x) {
|
|
1740
|
-
b.splice(0, b.length), x.map((
|
|
1741
|
-
b.push({ label:
|
|
1742
|
+
b.splice(0, b.length), x.map((N) => {
|
|
1743
|
+
b.push({ label: N[n.desc.lkey || "name"], value: N[m.value], dataItem: N });
|
|
1742
1744
|
});
|
|
1743
1745
|
}
|
|
1744
1746
|
function P({ row: x }) {
|
|
@@ -1746,7 +1748,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1746
1748
|
}
|
|
1747
1749
|
function T(x) {
|
|
1748
1750
|
b.splice(
|
|
1749
|
-
b.findIndex((
|
|
1751
|
+
b.findIndex((N) => N.value === x.value),
|
|
1750
1752
|
1
|
|
1751
1753
|
), B.value.changeSelect([{ [m.value]: x.value }]);
|
|
1752
1754
|
}
|
|
@@ -1755,33 +1757,33 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1755
1757
|
}
|
|
1756
1758
|
function y() {
|
|
1757
1759
|
u.splice(0, u.length, ...b);
|
|
1758
|
-
const x = [],
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
}), a.value = b.length > 0 ? [x,
|
|
1760
|
+
const x = [], N = [];
|
|
1761
|
+
g.splice(0, g.length), b.map((D) => {
|
|
1762
|
+
g.push(D.value), x.push(D.value), N.push(D.label);
|
|
1763
|
+
}), a.value = b.length > 0 ? [x, N] : [], s.value.change && s.value.change(l.cloneDeep(b)), j.value = !1, r("validateThis");
|
|
1762
1764
|
}
|
|
1763
1765
|
return re(
|
|
1764
1766
|
() => n.desc.tableConfig,
|
|
1765
1767
|
(x) => {
|
|
1766
|
-
let
|
|
1767
|
-
x && (
|
|
1768
|
+
let N = {};
|
|
1769
|
+
x && (N = l.cloneDeep(x), typeof n.desc.multiple == "function" ? $.value = n.desc.multiple(n.formData || {}) : $.value = n.desc.multiple, $.value || !$.value && N.column && N.column[N.column.length - 1].label !== "操作" && N.column.push({ label: "操作", width: "120px", fixed: "right", type: "btns", btns: [{ label: "选中", on: { click: P } }] }), N.maxHeight = 400), p.value = N;
|
|
1768
1770
|
},
|
|
1769
1771
|
{ deep: !0, immediate: !0 }
|
|
1770
1772
|
), re(
|
|
1771
1773
|
() => n.modelValue,
|
|
1772
1774
|
() => {
|
|
1773
|
-
if (b.splice(0, b.length),
|
|
1774
|
-
const [x,
|
|
1775
|
-
x.length > 0 && x.length ===
|
|
1776
|
-
b.push({ label:
|
|
1775
|
+
if (b.splice(0, b.length), g.splice(0, g.length), n.modelValue && Array.isArray(n.modelValue) && Array.isArray(n.modelValue[0])) {
|
|
1776
|
+
const [x, N] = n.modelValue || [[], []];
|
|
1777
|
+
x.length > 0 && x.length === N.length && x.map((D, Y) => {
|
|
1778
|
+
b.push({ label: N[Y], value: D, dataItem: { [n.desc.lkey]: N[Y], [m.value]: D } }), g.push(D);
|
|
1777
1779
|
});
|
|
1778
1780
|
}
|
|
1779
1781
|
u.splice(0, u.length, ...b);
|
|
1780
1782
|
},
|
|
1781
1783
|
{ deep: !0, immediate: !0 }
|
|
1782
1784
|
), it(async () => {
|
|
1783
|
-
}), (x,
|
|
1784
|
-
const
|
|
1785
|
+
}), (x, N) => {
|
|
1786
|
+
const D = O("el-option"), Y = O("el-select"), U = O("ElPlusTable"), te = O("el-tag"), R = O("el-scrollbar"), K = O("el-button"), M = O("el-dialog");
|
|
1785
1787
|
return d(), I("div", ou, [
|
|
1786
1788
|
Z(Y, ee({
|
|
1787
1789
|
ref_key: "selectRef",
|
|
@@ -1792,46 +1794,46 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1792
1794
|
disabled: e.disabled || e.desc.disabled,
|
|
1793
1795
|
teleported: !1,
|
|
1794
1796
|
loading: e.loading,
|
|
1795
|
-
modelValue:
|
|
1797
|
+
modelValue: g,
|
|
1796
1798
|
onVisibleChange: w,
|
|
1797
|
-
onClear:
|
|
1799
|
+
onClear: v
|
|
1798
1800
|
}, ye(s.value)), {
|
|
1799
1801
|
default: _(() => [
|
|
1800
|
-
(d(!0), I(oe, null, Me(u, (z) => (d(), S(
|
|
1802
|
+
(d(!0), I(oe, null, Me(u, (z) => (d(), S(D, ee({
|
|
1801
1803
|
key: z.value
|
|
1802
1804
|
}, { ref_for: !0 }, z), null, 16))), 128))
|
|
1803
1805
|
]),
|
|
1804
1806
|
_: 1
|
|
1805
1807
|
}, 16, ["class", "style", "disabled", "loading", "modelValue"]),
|
|
1806
|
-
Z(
|
|
1808
|
+
Z(M, {
|
|
1807
1809
|
width: e.desc.dialogWidth || "1000px",
|
|
1808
1810
|
title: e.desc.title || e.desc.placeholder || "请选择" + e.desc._label,
|
|
1809
1811
|
draggable: "",
|
|
1810
1812
|
closeOnClickModal: !1,
|
|
1811
1813
|
showCancel: "",
|
|
1812
1814
|
modelValue: j.value,
|
|
1813
|
-
"onUpdate:modelValue":
|
|
1815
|
+
"onUpdate:modelValue": N[0] || (N[0] = (z) => j.value = z),
|
|
1814
1816
|
"append-to-body": "",
|
|
1815
1817
|
"destroy-on-close": ""
|
|
1816
1818
|
}, {
|
|
1817
1819
|
default: _(() => [
|
|
1818
1820
|
ae("div", su, [
|
|
1819
1821
|
ae("div", uu, [
|
|
1820
|
-
p.value ? (d(), S(
|
|
1822
|
+
p.value ? (d(), S(U, {
|
|
1821
1823
|
key: 0,
|
|
1822
1824
|
ref_key: "multipleTableRef",
|
|
1823
1825
|
ref: B,
|
|
1824
1826
|
selectList: i.value,
|
|
1825
1827
|
tableConfig: p.value,
|
|
1826
|
-
type:
|
|
1828
|
+
type: $.value ? "selection" : "index",
|
|
1827
1829
|
isIndex: !1,
|
|
1828
1830
|
rowKey: m.value,
|
|
1829
1831
|
onSelection: G
|
|
1830
|
-
}, null, 8, ["selectList", "tableConfig", "type", "rowKey"])) :
|
|
1832
|
+
}, null, 8, ["selectList", "tableConfig", "type", "rowKey"])) : F("", !0)
|
|
1831
1833
|
]),
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
Z(
|
|
1834
|
+
$.value ? (d(), I("div", iu, [
|
|
1835
|
+
N[3] || (N[3] = ae("div", { class: "right-title" }, "已选中项:", -1)),
|
|
1836
|
+
Z(R, {
|
|
1835
1837
|
height: "480px",
|
|
1836
1838
|
class: "tag-list"
|
|
1837
1839
|
}, {
|
|
@@ -1853,7 +1855,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1853
1855
|
}),
|
|
1854
1856
|
ae("div", ru, [
|
|
1855
1857
|
Z(K, { onClick: L }, {
|
|
1856
|
-
default: _(() => [...
|
|
1858
|
+
default: _(() => [...N[1] || (N[1] = [
|
|
1857
1859
|
pe("取消", -1)
|
|
1858
1860
|
])]),
|
|
1859
1861
|
_: 1
|
|
@@ -1862,13 +1864,13 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1862
1864
|
type: "primary",
|
|
1863
1865
|
onClick: y
|
|
1864
1866
|
}, {
|
|
1865
|
-
default: _(() => [...
|
|
1867
|
+
default: _(() => [...N[2] || (N[2] = [
|
|
1866
1868
|
pe("确定", -1)
|
|
1867
1869
|
])]),
|
|
1868
1870
|
_: 1
|
|
1869
1871
|
})
|
|
1870
1872
|
])
|
|
1871
|
-
])) :
|
|
1873
|
+
])) : F("", !0)
|
|
1872
1874
|
])
|
|
1873
1875
|
]),
|
|
1874
1876
|
_: 1
|
|
@@ -1898,25 +1900,25 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1898
1900
|
emits: ["update:modelValue", "change", "input", "validateThis", "close"],
|
|
1899
1901
|
setup(e, { emit: t }) {
|
|
1900
1902
|
var he, He, pt, wt, tl, bt;
|
|
1901
|
-
const l = ce("lodash"), n = ce("globalData"), s = ce("defaultConf"), r = e, a =
|
|
1902
|
-
o("update:modelValue",
|
|
1903
|
-
const u =
|
|
1903
|
+
const l = ce("lodash"), n = ce("globalData"), s = ce("defaultConf"), r = e, a = f(D(r)), o = t, g = f(r.modelValue || []);
|
|
1904
|
+
o("update:modelValue", g);
|
|
1905
|
+
const u = f(), i = Oe([]), c = Oe([]), j = Oe({
|
|
1904
1906
|
multiple: !0,
|
|
1905
1907
|
size: r.desc.size,
|
|
1906
1908
|
collapseTags: !1,
|
|
1907
1909
|
collapseTagsTooltip: !1,
|
|
1908
1910
|
clearable: !0
|
|
1909
|
-
}), p =
|
|
1911
|
+
}), p = f(!1), m = Oe([]), $ = Oe([]), B = f({}), b = f(((he = r.desc) == null ? void 0 : he.lIdKey) || "id"), Q = f(((He = r.desc) == null ? void 0 : He.lNameKey) || "name"), w = f(((pt = r.desc) == null ? void 0 : pt.rIdKey) || "userId"), v = f(((wt = r.desc) == null ? void 0 : wt.rNameKey) || "nickname"), G = f(((tl = r.desc) == null ? void 0 : tl.lQueryIdKey) || "deptId"), P = f(((bt = r.desc) == null ? void 0 : bt.deptDataList) || []);
|
|
1910
1912
|
async function T(q) {
|
|
1911
|
-
|
|
1913
|
+
$.splice(0, $.length, ...await R(q));
|
|
1912
1914
|
}
|
|
1913
|
-
const L =
|
|
1915
|
+
const L = f([]), y = f([]), k = f([]), x = f(), N = le(() => {
|
|
1914
1916
|
var ie, xe;
|
|
1915
1917
|
const q = [];
|
|
1916
1918
|
let X = [];
|
|
1917
1919
|
return P.value.length ? X = P.value : X = l.cloneDeep(n[((xe = (ie = s.form) == null ? void 0 : ie.linkUser) == null ? void 0 : xe.deptListKey) || ""]), L.value && L.value.length > 0 && L.value.map((we) => {
|
|
1918
1920
|
X = X[we].children || [];
|
|
1919
|
-
}), X.map((we) => q.push({ type: 2, label: we[Q.value], value: we[b.value] })), k.value.map((we) => q.push({ type: 1, label: we[
|
|
1921
|
+
}), X.map((we) => q.push({ type: 2, label: we[Q.value], value: we[b.value] })), k.value.map((we) => q.push({ type: 1, label: we[v.value], value: we[w.value] })), be(() => {
|
|
1920
1922
|
setTimeout(() => {
|
|
1921
1923
|
q.map((we) => {
|
|
1922
1924
|
var nt;
|
|
@@ -1928,7 +1930,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1928
1930
|
}, 10);
|
|
1929
1931
|
}), q;
|
|
1930
1932
|
});
|
|
1931
|
-
function
|
|
1933
|
+
function D(q) {
|
|
1932
1934
|
var ie;
|
|
1933
1935
|
const X = {};
|
|
1934
1936
|
return (ie = q.desc) != null && ie.on && Object.keys(q.desc.on).map((xe) => {
|
|
@@ -1942,8 +1944,8 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1942
1944
|
function Y(q) {
|
|
1943
1945
|
q && (u.value.blur(), p.value = !0);
|
|
1944
1946
|
}
|
|
1945
|
-
function
|
|
1946
|
-
m.splice(0, m.length),
|
|
1947
|
+
function U() {
|
|
1948
|
+
m.splice(0, m.length), N.value.map((q) => {
|
|
1947
1949
|
var X;
|
|
1948
1950
|
(X = x.value) == null || X.toggleRowSelection(
|
|
1949
1951
|
q,
|
|
@@ -1952,17 +1954,17 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1952
1954
|
}), C();
|
|
1953
1955
|
}
|
|
1954
1956
|
function te(q) {
|
|
1955
|
-
ge({
|
|
1957
|
+
ge({ ...$.find((X) => X.value === q), type: 1 });
|
|
1956
1958
|
}
|
|
1957
|
-
async function
|
|
1959
|
+
async function R(q) {
|
|
1958
1960
|
var X, ie, xe;
|
|
1959
|
-
return q.length > 0 ? (xe = (await ((ie = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ie.getUserList({ nickname: q, current: 1, size: 10, enabled: 1 }))).records) == null ? void 0 : xe.map((we) => ({ value: we[w.value], label: we[
|
|
1961
|
+
return q.length > 0 ? (xe = (await ((ie = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ie.getUserList({ nickname: q, current: 1, size: 10, enabled: 1 }))).records) == null ? void 0 : xe.map((we) => ({ value: we[w.value], label: we[v.value] })) : [];
|
|
1960
1962
|
}
|
|
1961
1963
|
async function K(q, X) {
|
|
1962
1964
|
var ie, xe;
|
|
1963
1965
|
k.value = (await ((xe = (ie = s.form) == null ? void 0 : ie.linkUser) == null ? void 0 : xe.getUserList({ [G.value]: q.value, size: 999 }))).records, L.value.push(X), y.value.push(q);
|
|
1964
1966
|
}
|
|
1965
|
-
async function
|
|
1967
|
+
async function M(q) {
|
|
1966
1968
|
var X, ie;
|
|
1967
1969
|
k.value = q >= 0 ? (await ((ie = (X = s.form) == null ? void 0 : X.linkUser) == null ? void 0 : ie.getUserList({ [G.value]: y.value[q].value, size: 999 }))).records : [], L.value.splice(q + 1), y.value.splice(q + 1);
|
|
1968
1970
|
}
|
|
@@ -1974,13 +1976,13 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1974
1976
|
}
|
|
1975
1977
|
function h(q) {
|
|
1976
1978
|
const X = !(q && q.length > 0);
|
|
1977
|
-
|
|
1979
|
+
N.value.map((ie) => {
|
|
1978
1980
|
(!r.desc.onlyUser || r.desc.onlyUser && ie.type === 1) && ge(ie, X);
|
|
1979
1981
|
});
|
|
1980
1982
|
}
|
|
1981
1983
|
function ne(q) {
|
|
1982
1984
|
var X;
|
|
1983
|
-
|
|
1985
|
+
N.value.some((ie) => ie.value === q.value) && ((X = x.value) == null || X.toggleRowSelection(q, !1)), ge(q, !0);
|
|
1984
1986
|
}
|
|
1985
1987
|
function ge(q, X = !1) {
|
|
1986
1988
|
const ie = m.findIndex((xe) => xe.value === q.value);
|
|
@@ -1990,14 +1992,14 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
1990
1992
|
p.value = !1;
|
|
1991
1993
|
}
|
|
1992
1994
|
function Be() {
|
|
1993
|
-
Te(),
|
|
1995
|
+
Te(), M(-1);
|
|
1994
1996
|
}
|
|
1995
1997
|
function C() {
|
|
1996
1998
|
c.splice(0, c.length, ...m);
|
|
1997
1999
|
const q = [], X = [], ie = [], xe = [];
|
|
1998
2000
|
i.splice(0, i.length), m.map((we) => {
|
|
1999
2001
|
i.push(we.value), we.type === 1 ? (q.push(we.value), ie.push(we.label)) : (X.push(we.value), xe.push(we.label));
|
|
2000
|
-
}), p.value = !1,
|
|
2002
|
+
}), p.value = !1, g.value = m.length > 0 ? [q, X, ie, xe] : [], a.value.change && a.value.change(r.formData || {}, null, g.value), o("validateThis");
|
|
2001
2003
|
}
|
|
2002
2004
|
function A() {
|
|
2003
2005
|
const q = [];
|
|
@@ -2051,7 +2053,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2051
2053
|
loading: e.loading,
|
|
2052
2054
|
modelValue: i,
|
|
2053
2055
|
onVisibleChange: Y,
|
|
2054
|
-
onClear:
|
|
2056
|
+
onClear: U
|
|
2055
2057
|
}), {
|
|
2056
2058
|
default: _(() => [
|
|
2057
2059
|
(d(!0), I(oe, null, Me(c, (Ce) => (d(), S(ie, ee({
|
|
@@ -2080,7 +2082,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2080
2082
|
placeholder: "输入用户名进行搜索"
|
|
2081
2083
|
}, B.value, { onChange: te }), {
|
|
2082
2084
|
default: _(() => [
|
|
2083
|
-
(d(!0), I(oe, null, Me(
|
|
2085
|
+
(d(!0), I(oe, null, Me($, (Ce) => (d(), S(ie, ee({
|
|
2084
2086
|
key: Ce.value
|
|
2085
2087
|
}, { ref_for: !0 }, Ce), null, 16))), 128))
|
|
2086
2088
|
]),
|
|
@@ -2091,7 +2093,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2091
2093
|
Z(rt, { separator: "/" }, {
|
|
2092
2094
|
default: _(() => [
|
|
2093
2095
|
Z(nt, {
|
|
2094
|
-
onClick: X[0] || (X[0] = (Ce) =>
|
|
2096
|
+
onClick: X[0] || (X[0] = (Ce) => M(-1))
|
|
2095
2097
|
}, {
|
|
2096
2098
|
default: _(() => [...X[2] || (X[2] = [
|
|
2097
2099
|
pe("组织架构", -1)
|
|
@@ -2100,7 +2102,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2100
2102
|
}),
|
|
2101
2103
|
(d(!0), I(oe, null, Me(y.value, (Ce, yt) => (d(), S(nt, {
|
|
2102
2104
|
key: yt,
|
|
2103
|
-
onClick: (E) =>
|
|
2105
|
+
onClick: (E) => M(yt)
|
|
2104
2106
|
}, {
|
|
2105
2107
|
default: _(() => [
|
|
2106
2108
|
pe(de(Ce.label), 1)
|
|
@@ -2114,7 +2116,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2114
2116
|
Z(ll, {
|
|
2115
2117
|
ref_key: "multipleTableRef",
|
|
2116
2118
|
ref: x,
|
|
2117
|
-
data:
|
|
2119
|
+
data: N.value,
|
|
2118
2120
|
style: { width: "100%", height: "500px" },
|
|
2119
2121
|
"max-height": "500px",
|
|
2120
2122
|
onSelect: V,
|
|
@@ -2160,7 +2162,7 @@ const Fn = /* @__PURE__ */ Ae(du, [["__scopeId", "data-v-ab2b4860"]]), Mu = /* @
|
|
|
2160
2162
|
pe("进入", -1)
|
|
2161
2163
|
])]),
|
|
2162
2164
|
_: 1
|
|
2163
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2165
|
+
}, 8, ["disabled", "onClick"])) : F("", !0)
|
|
2164
2166
|
]),
|
|
2165
2167
|
_: 1
|
|
2166
2168
|
})
|
|
@@ -2239,9 +2241,9 @@ const Rn = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-23841e1c"]]), vu = /* @
|
|
|
2239
2241
|
},
|
|
2240
2242
|
emits: ["update:modelValue"],
|
|
2241
2243
|
setup(e, { emit: t }) {
|
|
2242
|
-
const l = e, n = t, s =
|
|
2244
|
+
const l = e, n = t, s = f(l.modelValue);
|
|
2243
2245
|
n("update:modelValue", s);
|
|
2244
|
-
const r =
|
|
2246
|
+
const r = f(Object.assign({}, Re(), l.desc.slots)), a = f({}), o = f(!1), g = f(Ie(l));
|
|
2245
2247
|
return ze(async () => {
|
|
2246
2248
|
a.value = await me(l, { ...fe() }), o.value = !0;
|
|
2247
2249
|
}), (u, i) => {
|
|
@@ -2252,7 +2254,7 @@ const Rn = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-23841e1c"]]), vu = /* @
|
|
|
2252
2254
|
style: e.desc.style,
|
|
2253
2255
|
clearable: a.value.clearable ?? !0,
|
|
2254
2256
|
type: "number"
|
|
2255
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
2257
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
2256
2258
|
modelValue: s.value,
|
|
2257
2259
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => s.value = j),
|
|
2258
2260
|
onkeypress: "return( /[-\\d\\.]/.test(String.fromCharCode(event.keyCode)))"
|
|
@@ -2270,7 +2272,7 @@ const Rn = /* @__PURE__ */ Ae(Du, [["__scopeId", "data-v-23841e1c"]]), vu = /* @
|
|
|
2270
2272
|
]),
|
|
2271
2273
|
key: "0"
|
|
2272
2274
|
} : void 0
|
|
2273
|
-
]), 1040, ["class", "style", "clearable", "disabled", "modelValue"])) :
|
|
2275
|
+
]), 1040, ["class", "style", "clearable", "disabled", "modelValue"])) : F("", !0);
|
|
2274
2276
|
};
|
|
2275
2277
|
}
|
|
2276
2278
|
});
|
|
@@ -2292,9 +2294,9 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2292
2294
|
},
|
|
2293
2295
|
emits: ["update:modelValue", "validateThis"],
|
|
2294
2296
|
setup(e, { emit: t }) {
|
|
2295
|
-
const l = ce("defaultConf"), n = e, s = t, r =
|
|
2297
|
+
const l = ce("defaultConf"), n = e, s = t, r = f(typeof n.modelValue == "string" ? +n.modelValue : n.modelValue);
|
|
2296
2298
|
s("update:modelValue", r);
|
|
2297
|
-
const a =
|
|
2299
|
+
const a = f({}), o = f(!1), g = f(Ie(n)), u = f(!1), i = f(!1);
|
|
2298
2300
|
ze(async () => {
|
|
2299
2301
|
var b, Q;
|
|
2300
2302
|
a.value = await me(n, { ...(Q = (b = l.form) == null ? void 0 : b.leng) == null ? void 0 : Q.nbinput, ...fe() }), delete a.value.min, delete a.value.max, o.value = !0;
|
|
@@ -2307,27 +2309,27 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2307
2309
|
r.value = 0, r.value === 0 && be(() => {
|
|
2308
2310
|
r.value = null, m && m();
|
|
2309
2311
|
});
|
|
2310
|
-
}) :
|
|
2312
|
+
}) : $(r.value, 0)), be(() => {
|
|
2311
2313
|
s("validateThis");
|
|
2312
2314
|
});
|
|
2313
2315
|
}
|
|
2314
2316
|
const p = le(() => {
|
|
2315
|
-
var k, x,
|
|
2316
|
-
let { min: b = 0, max: Q = 999999999, precision: w = 0, controlsPosition:
|
|
2317
|
-
(
|
|
2317
|
+
var k, x, N, D;
|
|
2318
|
+
let { min: b = 0, max: Q = 999999999, precision: w = 0, controlsPosition: v = "right" } = ((x = (k = l.form) == null ? void 0 : k.leng) == null ? void 0 : x.nbinput) || {}, G = ((N = n.desc) == null ? void 0 : N.attrs) || n.desc;
|
|
2319
|
+
(D = n.desc) != null && D.attrs && typeof n.desc.attrs == "function" && (G = n.desc.attrs(n.formData || {}));
|
|
2318
2320
|
const { min: P, max: T, precision: L, controlsPosition: y } = G || {};
|
|
2319
|
-
return P != null && P !== "" && (b = P), T != null && T !== "" && (Q = T), L != null && L !== "" && (w = L), y != null && y !== "" && (
|
|
2321
|
+
return P != null && P !== "" && (b = P), T != null && T !== "" && (Q = T), L != null && L !== "" && (w = L), y != null && y !== "" && (v = y), b > Q ? b = Q : Q < b && (Q = b), { min: b, max: Q, precision: w, controlsPosition: v };
|
|
2320
2322
|
});
|
|
2321
2323
|
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));
|
|
2322
|
-
const m =
|
|
2323
|
-
m ?
|
|
2324
|
-
|
|
2325
|
-
} :
|
|
2326
|
-
function
|
|
2327
|
-
var w,
|
|
2324
|
+
const m = g.value.change;
|
|
2325
|
+
m ? g.value.change = (b, Q) => {
|
|
2326
|
+
$(b, Q);
|
|
2327
|
+
} : g.value.change = $;
|
|
2328
|
+
function $(b, Q) {
|
|
2329
|
+
var w, v;
|
|
2328
2330
|
u.value = !0, b !== Q && (b < p.value.min ? (Xe.warning(`${((w = n.desc) == null ? void 0 : w._label) || ""}最少不能低于${p.value.min}`), be(() => {
|
|
2329
2331
|
r.value = p.value.min, m && m();
|
|
2330
|
-
})) : b > p.value.max ? (Xe.warning(`${((
|
|
2332
|
+
})) : b > p.value.max ? (Xe.warning(`${((v = n.desc) == null ? void 0 : v._label) || ""}最多不能大于${p.value.max}`), be(() => {
|
|
2331
2333
|
r.value = p.value.max, m && m();
|
|
2332
2334
|
})) : m && m()), B();
|
|
2333
2335
|
}
|
|
@@ -2340,13 +2342,13 @@ const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2340
2342
|
return o.value ? (d(), S(w, ee({
|
|
2341
2343
|
key: 0,
|
|
2342
2344
|
class: ["ElPlusFormNumber-panel", { "show-error": i.value }]
|
|
2343
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
2345
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
2344
2346
|
modelValue: r.value,
|
|
2345
|
-
"onUpdate:modelValue": Q[0] || (Q[0] = (
|
|
2347
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (v) => r.value = v),
|
|
2346
2348
|
onFocus: c,
|
|
2347
2349
|
onBlur: j,
|
|
2348
2350
|
onkeypress: "return( /[-\\d\\.]/.test(String.fromCharCode(event.keyCode)))"
|
|
2349
|
-
}), null, 16, ["class", "disabled", "modelValue"])) :
|
|
2351
|
+
}), null, 16, ["class", "disabled", "modelValue"])) : F("", !0);
|
|
2350
2352
|
};
|
|
2351
2353
|
}
|
|
2352
2354
|
});
|
|
@@ -2367,13 +2369,13 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2367
2369
|
},
|
|
2368
2370
|
emits: ["update:modelValue"],
|
|
2369
2371
|
setup(e, { emit: t }) {
|
|
2370
|
-
const l = ce("defaultConf"), n = e, r = at(n, "modelValue", t), a =
|
|
2372
|
+
const l = ce("defaultConf"), n = e, r = at(n, "modelValue", t), a = f(Object.assign({}, Re(), n.desc.slots)), o = f({}), g = f(!1), u = f(Ie(n));
|
|
2371
2373
|
return ze(async () => {
|
|
2372
2374
|
var i, c;
|
|
2373
|
-
o.value = await me(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, ...fe() }),
|
|
2375
|
+
o.value = await me(n, { autocomplete: "new-password", maxlength: ((c = (i = l.form) == null ? void 0 : i.leng) == null ? void 0 : c.input) || 0, ...fe() }), g.value = !0;
|
|
2374
2376
|
}), (i, c) => {
|
|
2375
2377
|
const j = O("el-input");
|
|
2376
|
-
return
|
|
2378
|
+
return g.value ? (d(), S(j, ee({
|
|
2377
2379
|
key: 0,
|
|
2378
2380
|
class: e.desc.class,
|
|
2379
2381
|
"show-password": !0
|
|
@@ -2381,13 +2383,13 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2381
2383
|
modelValue: je(r),
|
|
2382
2384
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => ft(r) ? r.value = p : null)
|
|
2383
2385
|
}), lt({ _: 2 }, [
|
|
2384
|
-
Me(a.value, (p, m,
|
|
2386
|
+
Me(a.value, (p, m, $) => ({
|
|
2385
2387
|
name: m,
|
|
2386
2388
|
fn: _((B) => [
|
|
2387
2389
|
De(i.$slots, m, { data: B })
|
|
2388
2390
|
])
|
|
2389
2391
|
}))
|
|
2390
|
-
]), 1040, ["class", "disabled", "modelValue"])) :
|
|
2392
|
+
]), 1040, ["class", "disabled", "modelValue"])) : F("", !0);
|
|
2391
2393
|
};
|
|
2392
2394
|
}
|
|
2393
2395
|
}), hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Kn }, Symbol.toStringTag, { value: "Module" })), xu = {
|
|
@@ -2406,15 +2408,15 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2406
2408
|
},
|
|
2407
2409
|
emits: ["update:modelValue", "change", "input", "validateThis"],
|
|
2408
2410
|
setup(e, { expose: t, emit: l }) {
|
|
2409
|
-
const n = e, s = l, r =
|
|
2411
|
+
const n = e, s = l, r = f(Object.assign({}, Re(), n.desc.slots)), a = f({}), o = f(Ie(n)), g = f(!1), u = f(), i = at(n, "modelValue", s);
|
|
2410
2412
|
ze(async () => {
|
|
2411
2413
|
a.value = await me(n, { autocomplete: "new-password", maxlength: 10, clearable: !0, ...fe() });
|
|
2412
2414
|
});
|
|
2413
2415
|
function c() {
|
|
2414
|
-
|
|
2416
|
+
g.value = !1;
|
|
2415
2417
|
}
|
|
2416
2418
|
function j() {
|
|
2417
|
-
|
|
2419
|
+
g.value || (u.value !== 0 && !u.value ? be(() => {
|
|
2418
2420
|
u.value = 0, u.value === 0 && be(() => {
|
|
2419
2421
|
u.value = null, i.value = null, s("change", i.value);
|
|
2420
2422
|
});
|
|
@@ -2426,19 +2428,19 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2426
2428
|
var T, L;
|
|
2427
2429
|
let B = 0, b = 100, Q = 5, w = ((T = n.desc) == null ? void 0 : T.attrs) || n.desc;
|
|
2428
2430
|
(L = n.desc) != null && L.attrs && typeof n.desc.attrs == "function" && (w = n.desc.attrs(n.formData || {}));
|
|
2429
|
-
const { min:
|
|
2430
|
-
return
|
|
2431
|
+
const { min: v, max: G, precision: P } = w || {};
|
|
2432
|
+
return v != null && v !== "" && (B = v), G != null && G !== "" && (b = G), P != null && P !== "" && P >= 2 && (Q = P), B > b ? B = b : b < B && (b = B), { min: B, max: b, precision: Q };
|
|
2431
2433
|
});
|
|
2432
2434
|
function m(B, b) {
|
|
2433
2435
|
var Q, w;
|
|
2434
|
-
|
|
2436
|
+
g.value = !0, B !== b && (B < p.value.min ? (Xe.warning(`${((Q = n.desc) == null ? void 0 : Q._label) || ""}最少不能低于${p.value.min}`), be(() => {
|
|
2435
2437
|
u.value = p.value.min, i.value = +(u.value / 100).toFixed(p.value.precision), s("change", i.value);
|
|
2436
2438
|
})) : B > p.value.max ? (Xe.warning(`${((w = n.desc) == null ? void 0 : w._label) || ""}最多不能大于${p.value.max}`), be(() => {
|
|
2437
2439
|
u.value = p.value.max, i.value = +(u.value / 100).toFixed(p.value.precision), s("change", i.value);
|
|
2438
2440
|
})) : (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)));
|
|
2439
2441
|
}
|
|
2440
|
-
function
|
|
2441
|
-
u.value = null, i.value = null,
|
|
2442
|
+
function $() {
|
|
2443
|
+
u.value = null, i.value = null, g.value = !1;
|
|
2442
2444
|
}
|
|
2443
2445
|
return re(
|
|
2444
2446
|
() => n.modelValue,
|
|
@@ -2454,7 +2456,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2454
2456
|
};
|
|
2455
2457
|
} else
|
|
2456
2458
|
o.value.change = m;
|
|
2457
|
-
}), t({ clear:
|
|
2459
|
+
}), t({ clear: $, field: n.field }), (B, b) => {
|
|
2458
2460
|
const Q = O("el-input");
|
|
2459
2461
|
return d(), S(Q, ee({ style: { display: "flex" } }, a.value, { disabled: e.disabled }, ye(o.value), {
|
|
2460
2462
|
modelValue: u.value,
|
|
@@ -2468,10 +2470,10 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2468
2470
|
]),
|
|
2469
2471
|
_: 2
|
|
2470
2472
|
}, [
|
|
2471
|
-
Me(r.value, (w,
|
|
2472
|
-
name:
|
|
2473
|
+
Me(r.value, (w, v, G) => ({
|
|
2474
|
+
name: v,
|
|
2473
2475
|
fn: _(() => [
|
|
2474
|
-
De(B.$slots,
|
|
2476
|
+
De(B.$slots, v)
|
|
2475
2477
|
])
|
|
2476
2478
|
}))
|
|
2477
2479
|
]), 1040, ["disabled", "modelValue"]);
|
|
@@ -2494,7 +2496,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2494
2496
|
},
|
|
2495
2497
|
emits: ["update:modelValue", "validateThis"],
|
|
2496
2498
|
setup(e, { emit: t }) {
|
|
2497
|
-
const l = ce("globalData"), n = ce("defaultConf"), s = e, r = t, a =
|
|
2499
|
+
const l = ce("globalData"), n = ce("defaultConf"), s = e, r = t, a = f({}), o = f(!1), g = f(Ie(s)), u = Oe([]), i = f(s.modelValue);
|
|
2498
2500
|
r("update:modelValue", i), ze(async () => {
|
|
2499
2501
|
var j, p;
|
|
2500
2502
|
a.value = await me(s, { maxlength: (p = (j = n.form) == null ? void 0 : j.leng) == null ? void 0 : p.textare, showWordLimit: !0, rows: 3, ...fe() }), o.value = !0;
|
|
@@ -2517,7 +2519,7 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2517
2519
|
},
|
|
2518
2520
|
{ immediate: !0 }
|
|
2519
2521
|
), (j, p) => {
|
|
2520
|
-
const m = O("el-input"),
|
|
2522
|
+
const m = O("el-input"), $ = O("el-tag");
|
|
2521
2523
|
return d(), I(oe, null, [
|
|
2522
2524
|
o.value ? (d(), S(m, ee({
|
|
2523
2525
|
key: 0,
|
|
@@ -2528,9 +2530,9 @@ const Gn = /* @__PURE__ */ Ae(bu, [["__scopeId", "data-v-1a8ecf03"]]), Au = /* @
|
|
|
2528
2530
|
disabled: e.disabled,
|
|
2529
2531
|
modelValue: i.value,
|
|
2530
2532
|
"onUpdate:modelValue": p[0] || (p[0] = (B) => i.value = B)
|
|
2531
|
-
}, ye(
|
|
2533
|
+
}, ye(g.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : F("", !0),
|
|
2532
2534
|
ae("div", Lu, [
|
|
2533
|
-
(d(!0), I(oe, null, Me(u, (B, b) => (d(), S(
|
|
2535
|
+
(d(!0), I(oe, null, Me(u, (B, b) => (d(), S($, {
|
|
2534
2536
|
key: b,
|
|
2535
2537
|
type: "info",
|
|
2536
2538
|
onClick: (Q) => c(B.label)
|
|
@@ -2561,9 +2563,9 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2561
2563
|
},
|
|
2562
2564
|
emits: ["update:modelValue"],
|
|
2563
2565
|
setup(e, { emit: t }) {
|
|
2564
|
-
const l = ce("globalData"), n = e, r = at(n, "modelValue", t), a = Oe([]), o =
|
|
2566
|
+
const l = ce("globalData"), n = e, r = at(n, "modelValue", t), a = Oe([]), o = f(!1), g = f({}), u = f(Ie(n));
|
|
2565
2567
|
return ze(async () => {
|
|
2566
|
-
|
|
2568
|
+
g.value = await me(n, { ...fe() }), delete g.value.label, o.value = !0;
|
|
2567
2569
|
}), re(
|
|
2568
2570
|
() => n.desc.options,
|
|
2569
2571
|
async (i) => {
|
|
@@ -2575,7 +2577,7 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2575
2577
|
return o.value ? (d(), S(p, ee({
|
|
2576
2578
|
key: 0,
|
|
2577
2579
|
class: "ElPlusFormRadio-panel"
|
|
2578
|
-
},
|
|
2580
|
+
}, g.value, { disabled: e.disabled }, ye(u.value), {
|
|
2579
2581
|
modelValue: je(r),
|
|
2580
2582
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => ft(r) ? r.value = m : null)
|
|
2581
2583
|
}), {
|
|
@@ -2592,7 +2594,7 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2592
2594
|
}, 1032, ["label", "value"]))), 128))
|
|
2593
2595
|
]),
|
|
2594
2596
|
_: 1
|
|
2595
|
-
}, 16, ["disabled", "modelValue"])) :
|
|
2597
|
+
}, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
2596
2598
|
};
|
|
2597
2599
|
}
|
|
2598
2600
|
});
|
|
@@ -2612,7 +2614,7 @@ const Hn = /* @__PURE__ */ Ae(Su, [["__scopeId", "data-v-30e9221e"]]), ku = /* @
|
|
|
2612
2614
|
},
|
|
2613
2615
|
emits: ["update:modelValue", "validateThis"],
|
|
2614
2616
|
setup(e, { emit: t }) {
|
|
2615
|
-
const l = t, n = e, s = at(n, "modelValue", l), r =
|
|
2617
|
+
const l = t, n = e, s = at(n, "modelValue", l), r = f({}), a = f(Ie(n));
|
|
2616
2618
|
return ze(async () => {
|
|
2617
2619
|
r.value = await me(n, { ...fe() });
|
|
2618
2620
|
}), re(
|
|
@@ -2626,11 +2628,11 @@ const Hn = /* @__PURE__ */ Ae(Su, [["__scopeId", "data-v-30e9221e"]]), ku = /* @
|
|
|
2626
2628
|
() => {
|
|
2627
2629
|
l("validateThis");
|
|
2628
2630
|
}
|
|
2629
|
-
), (o,
|
|
2631
|
+
), (o, g) => {
|
|
2630
2632
|
const u = O("el-rate");
|
|
2631
2633
|
return d(), S(u, ee({ class: "ElPlusFormRate-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
2632
2634
|
modelValue: je(s),
|
|
2633
|
-
"onUpdate:modelValue":
|
|
2635
|
+
"onUpdate:modelValue": g[0] || (g[0] = (i) => ft(s) ? s.value = i : null)
|
|
2634
2636
|
}), null, 16, ["disabled", "modelValue"]);
|
|
2635
2637
|
};
|
|
2636
2638
|
}
|
|
@@ -2653,39 +2655,39 @@ const qn = /* @__PURE__ */ Ae(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2653
2655
|
},
|
|
2654
2656
|
emits: ["update:modelValue"],
|
|
2655
2657
|
setup(e, { expose: t, emit: l }) {
|
|
2656
|
-
const n = ce("lodash"), s = ce("defaultConf"), r = ce("globalData"), a = e,
|
|
2657
|
-
a.desc.allowCreate && (j.filterable = !0), a.desc.remote && (j.remote = !0, j.filterable = !0, j.remoteShowSuffix = !0, j.loadingText = "远程查询中...", j.remoteMethod = async (
|
|
2658
|
-
|
|
2658
|
+
const n = ce("lodash"), s = ce("defaultConf"), r = ce("globalData"), a = e, g = at(a, "modelValue", l), u = f({}), i = Oe([]), c = f(null), j = { clearable: !0, ...fe() }, p = f(!1), m = f(!1);
|
|
2659
|
+
a.desc.allowCreate && (j.filterable = !0), a.desc.remote && (j.remote = !0, j.filterable = !0, j.remoteShowSuffix = !0, j.loadingText = "远程查询中...", j.remoteMethod = async (v) => {
|
|
2660
|
+
v != null && v !== "" && await b(v);
|
|
2659
2661
|
});
|
|
2660
|
-
const
|
|
2662
|
+
const $ = le(() => {
|
|
2661
2663
|
var P;
|
|
2662
|
-
const
|
|
2664
|
+
const v = {};
|
|
2663
2665
|
(P = a.desc) != null && P.on && Object.keys(a.desc.on).map((T) => {
|
|
2664
|
-
|
|
2666
|
+
v[T] = () => {
|
|
2665
2667
|
be(() => {
|
|
2666
2668
|
var y;
|
|
2667
|
-
const L = (y = a.desc) != null && y.multiple ? i.filter((k) => Array.isArray(
|
|
2669
|
+
const L = (y = a.desc) != null && y.multiple ? i.filter((k) => Array.isArray(g.value) && g.value.find((x) => k.value === x)) : i.find((k) => k.value === g.value);
|
|
2668
2670
|
a.desc.on[T](a.formData || {}, L, a.rowIndex);
|
|
2669
2671
|
});
|
|
2670
2672
|
};
|
|
2671
|
-
}),
|
|
2673
|
+
}), v.clear = w;
|
|
2672
2674
|
const G = () => {
|
|
2673
2675
|
var T, L, y, k;
|
|
2674
2676
|
m.value = !0, (L = (T = a.desc) == null ? void 0 : T.on) != null && L.focus && typeof ((k = (y = a.desc) == null ? void 0 : y.on) == null ? void 0 : k.focus) == "function" && a.desc.on.focus(), c.value = null, a.desc.remote && b("");
|
|
2675
2677
|
};
|
|
2676
|
-
return
|
|
2677
|
-
}), B = le(() => (
|
|
2678
|
-
async function b(
|
|
2679
|
-
c.value !==
|
|
2678
|
+
return v.focus = G, v;
|
|
2679
|
+
}), B = le(() => (v) => a.desc.optionTip(v));
|
|
2680
|
+
async function b(v) {
|
|
2681
|
+
c.value !== v && (c.value = v, i.splice(0, i.length, ...await a.desc.remote(v)), v === "" && (m.value || Q()));
|
|
2680
2682
|
}
|
|
2681
2683
|
function Q() {
|
|
2682
2684
|
if (c.value === null && a.desc.defaultKey) {
|
|
2683
|
-
let
|
|
2684
|
-
Array.isArray(
|
|
2685
|
+
let v = a.formData[a.desc.defaultKey.value];
|
|
2686
|
+
Array.isArray(v) || (v = [v]);
|
|
2685
2687
|
let G = a.formData[a.desc.defaultKey.label];
|
|
2686
|
-
if (Array.isArray(G) || (G = [G]),
|
|
2688
|
+
if (Array.isArray(G) || (G = [G]), v.length <= 0 || v.length !== G.length)
|
|
2687
2689
|
return;
|
|
2688
|
-
|
|
2690
|
+
v.map((P, T) => {
|
|
2689
2691
|
if (P) {
|
|
2690
2692
|
const L = i.findIndex((y) => y.value === P);
|
|
2691
2693
|
L >= 0 && i.splice(L, 1), i.unshift({ value: P, label: G[T], dataItem: n.cloneDeep(a.formData) });
|
|
@@ -2694,37 +2696,37 @@ const qn = /* @__PURE__ */ Ae(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2694
2696
|
}
|
|
2695
2697
|
}
|
|
2696
2698
|
function w() {
|
|
2697
|
-
var
|
|
2698
|
-
m.value = !0, (G = (
|
|
2699
|
+
var v, G, P, T;
|
|
2700
|
+
m.value = !0, (G = (v = a.desc) == null ? void 0 : v.on) != null && G.clear && typeof ((T = (P = a.desc) == null ? void 0 : P.on) == null ? void 0 : T.clear) == "function" && a.desc.on.clear(), c.value = null, a.desc.remote && i.splice(0, i.length);
|
|
2699
2701
|
}
|
|
2700
2702
|
return ze(async () => {
|
|
2701
2703
|
j.remote = !!a.desc.remote, u.value = await me(a, j), u.value.remote = !!a.desc.remote, delete u.value.disabled, delete u.value.options, p.value = !0;
|
|
2702
2704
|
}), re(
|
|
2703
2705
|
() => a.desc.options,
|
|
2704
|
-
async (
|
|
2705
|
-
if (typeof
|
|
2706
|
-
i.splice(0, i.length, ...r[
|
|
2707
|
-
else if (typeof
|
|
2708
|
-
const G =
|
|
2706
|
+
async (v) => {
|
|
2707
|
+
if (typeof v == "string")
|
|
2708
|
+
i.splice(0, i.length, ...r[v] || []);
|
|
2709
|
+
else if (typeof v == "function") {
|
|
2710
|
+
const G = v(a.formData || {});
|
|
2709
2711
|
et(G) ? i.splice(0, i.length, ...await G) : i.splice(0, i.length, ...G);
|
|
2710
2712
|
} else
|
|
2711
|
-
Array.isArray(
|
|
2713
|
+
Array.isArray(v) ? v && i && !tt(v, i) && i.splice(0, i.length, ...v) : i.splice(0, i.length);
|
|
2712
2714
|
},
|
|
2713
2715
|
{ immediate: !0 }
|
|
2714
2716
|
), re(
|
|
2715
|
-
() =>
|
|
2716
|
-
(
|
|
2717
|
+
() => g.value,
|
|
2718
|
+
(v) => {
|
|
2717
2719
|
var G, P;
|
|
2718
|
-
u.value.allowCreate &&
|
|
2720
|
+
u.value.allowCreate && v && Array.isArray(v) && v.some((T) => {
|
|
2719
2721
|
var L, y;
|
|
2720
2722
|
return typeof T == "string" && T.length > (((y = (L = s.form) == null ? void 0 : L.leng) == null ? void 0 : y.input) || 20);
|
|
2721
|
-
}) && (Xe.warning("最大长度为: " + (((P = (G = s.form) == null ? void 0 : G.leng) == null ? void 0 : P.input) || 20)),
|
|
2723
|
+
}) && (Xe.warning("最大长度为: " + (((P = (G = s.form) == null ? void 0 : G.leng) == null ? void 0 : P.input) || 20)), g.value = v.filter((T) => {
|
|
2722
2724
|
var L, y;
|
|
2723
2725
|
return typeof T != "string" || T.length <= (((y = (L = s.form) == null ? void 0 : L.leng) == null ? void 0 : y.input) || 20);
|
|
2724
2726
|
})), Q();
|
|
2725
2727
|
},
|
|
2726
2728
|
{ immediate: !0 }
|
|
2727
|
-
), t({ field: a.field, clear: w }), (
|
|
2729
|
+
), t({ field: a.field, clear: w }), (v, G) => {
|
|
2728
2730
|
const P = O("el-option"), T = O("el-select");
|
|
2729
2731
|
return p.value ? (d(), S(T, ee({
|
|
2730
2732
|
key: 0,
|
|
@@ -2732,10 +2734,10 @@ const qn = /* @__PURE__ */ Ae(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2732
2734
|
style: e.desc.style,
|
|
2733
2735
|
disabled: e.disabled
|
|
2734
2736
|
}, u.value, {
|
|
2735
|
-
modelValue: je(
|
|
2736
|
-
"onUpdate:modelValue": G[0] || (G[0] = (L) => ft(
|
|
2737
|
+
modelValue: je(g),
|
|
2738
|
+
"onUpdate:modelValue": G[0] || (G[0] = (L) => ft(g) ? g.value = L : null),
|
|
2737
2739
|
loading: e.loading
|
|
2738
|
-
}, ye(
|
|
2740
|
+
}, ye($.value)), {
|
|
2739
2741
|
default: _(() => [
|
|
2740
2742
|
(d(!0), I(oe, null, Me(i, (L, y) => (d(), I(oe, { key: y }, [
|
|
2741
2743
|
L && L.value ? (d(), S(P, ee({
|
|
@@ -2745,15 +2747,15 @@ const qn = /* @__PURE__ */ Ae(Vu, [["__scopeId", "data-v-45863775"]]), Pu = /* @
|
|
|
2745
2747
|
default: _(() => [
|
|
2746
2748
|
ae("div", Qu, [
|
|
2747
2749
|
ae("span", null, de(L.label || L.l), 1),
|
|
2748
|
-
e.desc.optionTip ? (d(), I("div", Uu, de(B.value(L)), 1)) :
|
|
2750
|
+
e.desc.optionTip ? (d(), I("div", Uu, de(B.value(L)), 1)) : F("", !0)
|
|
2749
2751
|
])
|
|
2750
2752
|
]),
|
|
2751
2753
|
_: 2
|
|
2752
|
-
}, 1040)) :
|
|
2754
|
+
}, 1040)) : F("", !0)
|
|
2753
2755
|
], 64))), 128))
|
|
2754
2756
|
]),
|
|
2755
2757
|
_: 1
|
|
2756
|
-
}, 16, ["class", "style", "disabled", "modelValue", "loading"])) :
|
|
2758
|
+
}, 16, ["class", "style", "disabled", "modelValue", "loading"])) : F("", !0);
|
|
2757
2759
|
};
|
|
2758
2760
|
}
|
|
2759
2761
|
});
|
|
@@ -2773,16 +2775,16 @@ const Ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2773
2775
|
},
|
|
2774
2776
|
emits: ["update:modelValue"],
|
|
2775
2777
|
setup(e, { emit: t }) {
|
|
2776
|
-
const l = e, n = t, s =
|
|
2778
|
+
const l = e, n = t, s = f(l.modelValue);
|
|
2777
2779
|
n("update:modelValue", s);
|
|
2778
|
-
const r =
|
|
2780
|
+
const r = f({}), a = f(Ie(l));
|
|
2779
2781
|
return ze(async () => {
|
|
2780
2782
|
r.value = await me(l, { ...fe() });
|
|
2781
|
-
}), (o,
|
|
2783
|
+
}), (o, g) => {
|
|
2782
2784
|
const u = O("el-slider");
|
|
2783
2785
|
return d(), S(u, ee({ class: "ElPlusFormSlider-panel" }, r.value, { disabled: e.disabled }, ye(a.value), {
|
|
2784
2786
|
modelValue: s.value,
|
|
2785
|
-
"onUpdate:modelValue":
|
|
2787
|
+
"onUpdate:modelValue": g[0] || (g[0] = (i) => s.value = i)
|
|
2786
2788
|
}), null, 16, ["disabled", "modelValue"]);
|
|
2787
2789
|
};
|
|
2788
2790
|
}
|
|
@@ -2802,7 +2804,7 @@ const Xn = /* @__PURE__ */ Ae(Gu, [["__scopeId", "data-v-c1eeda28"]]), Ku = /* @
|
|
|
2802
2804
|
},
|
|
2803
2805
|
emits: ["update:modelValue"],
|
|
2804
2806
|
setup(e, { emit: t }) {
|
|
2805
|
-
const l = ce("globalData"), n = ce("format"), s = e, a = at(s, "modelValue", t), o = Oe([]),
|
|
2807
|
+
const l = ce("globalData"), n = ce("format"), s = e, a = at(s, "modelValue", t), o = Oe([]), g = f(""), u = le(() => {
|
|
2806
2808
|
if (s.desc.icolor)
|
|
2807
2809
|
return typeof s.desc.icolor == "function" ? { background: s.desc.icolor(s.formData || {}) || "#909399" } : { background: s.desc.icolor || "#909399" };
|
|
2808
2810
|
const i = o.find((c) => (c.value || c.v) == a.value) || {};
|
|
@@ -2817,7 +2819,7 @@ const Xn = /* @__PURE__ */ Ae(Gu, [["__scopeId", "data-v-c1eeda28"]]), Ku = /* @
|
|
|
2817
2819
|
), re(
|
|
2818
2820
|
() => s.modelValue,
|
|
2819
2821
|
async () => {
|
|
2820
|
-
s.desc.format ? typeof s.desc.format == "function" ?
|
|
2822
|
+
s.desc.format ? typeof s.desc.format == "function" ? g.value = await s.desc.format(s.modelValue, s.formData || {}, s.field) : typeof s.desc.format == "string" ? g.value = n[s.desc.format] ? n[s.desc.format](s.modelValue, s.formData || {}, s.field) : "--" : g.value = s.modelValue || "-" : g.value = s.modelValue === "" ? s.desc.default ?? "-" : s.modelValue ?? s.desc.default ?? "-";
|
|
2821
2823
|
},
|
|
2822
2824
|
{ immediate: !0 }
|
|
2823
2825
|
), (i, c) => (d(), I("div", Wu, [
|
|
@@ -2827,7 +2829,7 @@ const Xn = /* @__PURE__ */ Ae(Gu, [["__scopeId", "data-v-c1eeda28"]]), Ku = /* @
|
|
|
2827
2829
|
ae("div", {
|
|
2828
2830
|
class: dt(e.desc.class),
|
|
2829
2831
|
style: Pe(e.desc.style)
|
|
2830
|
-
}, de(
|
|
2832
|
+
}, de(g.value), 7)
|
|
2831
2833
|
]));
|
|
2832
2834
|
}
|
|
2833
2835
|
});
|
|
@@ -2848,7 +2850,7 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2848
2850
|
},
|
|
2849
2851
|
emits: ["update:modelValue"],
|
|
2850
2852
|
setup(e, { emit: t }) {
|
|
2851
|
-
const l = t, n = e, s =
|
|
2853
|
+
const l = t, n = e, s = f(!1), r = at(n, "modelValue", l), a = f(!1), o = f({}), g = f(Ie(n));
|
|
2852
2854
|
function u() {
|
|
2853
2855
|
var c;
|
|
2854
2856
|
let i = (c = n.desc) == null ? void 0 : c.confirm;
|
|
@@ -2871,12 +2873,12 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2871
2873
|
}), (i, c) => {
|
|
2872
2874
|
const j = O("el-switch");
|
|
2873
2875
|
return d(), I("div", Ju, [
|
|
2874
|
-
a.value ? (d(), S(j, ee({ key: 0 }, o.value, { disabled: e.disabled }, ye(
|
|
2876
|
+
a.value ? (d(), S(j, ee({ key: 0 }, o.value, { disabled: e.disabled }, ye(g.value), {
|
|
2875
2877
|
loading: n.loading || s.value,
|
|
2876
2878
|
modelValue: je(r),
|
|
2877
2879
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => ft(r) ? r.value = p : null),
|
|
2878
2880
|
"before-change": u
|
|
2879
|
-
}), null, 16, ["disabled", "loading", "modelValue"])) :
|
|
2881
|
+
}), null, 16, ["disabled", "loading", "modelValue"])) : F("", !0)
|
|
2880
2882
|
]);
|
|
2881
2883
|
};
|
|
2882
2884
|
}
|
|
@@ -2896,7 +2898,7 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2896
2898
|
disabled: { type: Boolean }
|
|
2897
2899
|
},
|
|
2898
2900
|
setup(e) {
|
|
2899
|
-
const t = ce("format"), l = e, n =
|
|
2901
|
+
const t = ce("format"), l = e, n = f({}), s = f(Ie(l)), r = f(""), a = f("");
|
|
2900
2902
|
return ze(async () => {
|
|
2901
2903
|
n.value = await me(l, { ...fe() });
|
|
2902
2904
|
}), re(
|
|
@@ -2923,7 +2925,7 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2923
2925
|
typeof l.desc.format == "string" ? r.value = (await t)[l.desc.format](l.modelValue, l.formData || {}, l.field) : r.value = l.modelValue || "-";
|
|
2924
2926
|
},
|
|
2925
2927
|
{ immediate: !0 }
|
|
2926
|
-
), (o,
|
|
2928
|
+
), (o, g) => {
|
|
2927
2929
|
const u = O("el-tag");
|
|
2928
2930
|
return d(), I("div", null, [
|
|
2929
2931
|
Z(u, ee(n.value, {
|
|
@@ -2958,17 +2960,17 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2958
2960
|
let t = null;
|
|
2959
2961
|
const l = ce("format"), n = e;
|
|
2960
2962
|
(n.desc.linkId || n.desc.linkType) && (t = ce("showInfo"));
|
|
2961
|
-
const s =
|
|
2963
|
+
const s = f({}), r = le(() => {
|
|
2962
2964
|
const o = Ie(n);
|
|
2963
|
-
let
|
|
2964
|
-
if (typeof
|
|
2965
|
+
let g = n.desc.linkId || "id";
|
|
2966
|
+
if (typeof g == "function" ? g = g(n.modelValue, n.formData || {}) : n.formData && (g = n.formData[g]), n.desc.linkType && g) {
|
|
2965
2967
|
let u = n.desc.linkType, i = n.desc.linkLabel || "";
|
|
2966
2968
|
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 = () => {
|
|
2967
|
-
t && t(
|
|
2969
|
+
t && t(g, u, i, n.formData || {});
|
|
2968
2970
|
};
|
|
2969
2971
|
}
|
|
2970
2972
|
return o;
|
|
2971
|
-
}), a =
|
|
2973
|
+
}), a = f("");
|
|
2972
2974
|
return ze(async () => {
|
|
2973
2975
|
s.value = await me(n, fe());
|
|
2974
2976
|
}), re(
|
|
@@ -2983,15 +2985,15 @@ const ea = /* @__PURE__ */ Ae(Hu, [["__scopeId", "data-v-d918ace9"]]), qu = /* @
|
|
|
2983
2985
|
typeof n.desc.format == "string" ? a.value = l[n.desc.format] ? l[n.desc.format](n.modelValue, n.formData, n.field) : "--" : a.value = n.modelValue || "-";
|
|
2984
2986
|
},
|
|
2985
2987
|
{ immediate: !0 }
|
|
2986
|
-
), (o,
|
|
2988
|
+
), (o, g) => (d(), I("div", ee({
|
|
2987
2989
|
class: ["ele-form-text", [...e.desc.class || [], e.desc.linkType ? "ele-form-text-click" : ""]],
|
|
2988
2990
|
style: e.desc.style
|
|
2989
2991
|
}, s.value, ye(r.value, !0)), [
|
|
2990
|
-
e.desc.title ? (d(), I("span", ni, de(e.desc.title + ": "), 1)) :
|
|
2992
|
+
e.desc.title ? (d(), I("span", ni, de(e.desc.title + ": "), 1)) : F("", !0),
|
|
2991
2993
|
e.desc.icon ? (d(), I("i", {
|
|
2992
2994
|
key: 1,
|
|
2993
2995
|
class: dt([(e.formData || {}).icon])
|
|
2994
|
-
}, null, 2)) :
|
|
2996
|
+
}, null, 2)) : F("", !0),
|
|
2995
2997
|
pe(" " + de(a.value), 1)
|
|
2996
2998
|
], 16));
|
|
2997
2999
|
}
|
|
@@ -3013,14 +3015,14 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3013
3015
|
},
|
|
3014
3016
|
emits: ["update:modelValue", "validateThis"],
|
|
3015
3017
|
setup(e, { emit: t }) {
|
|
3016
|
-
const l = ce("defaultConf"), n = e, s = t, r =
|
|
3017
|
-
return s("update:modelValue",
|
|
3018
|
+
const l = ce("defaultConf"), n = e, s = t, r = f({}), a = f(!1), o = f(Ie(n)), g = f(n.modelValue);
|
|
3019
|
+
return s("update:modelValue", g), ze(async () => {
|
|
3018
3020
|
var u, i;
|
|
3019
3021
|
r.value = await me(n, { maxlength: (i = (u = l.form) == null ? void 0 : u.leng) == null ? void 0 : i.textare, showWordLimit: !0, rows: 3, ...fe() }), a.value = !0;
|
|
3020
3022
|
}), re(
|
|
3021
3023
|
() => n.modelValue,
|
|
3022
3024
|
(u) => {
|
|
3023
|
-
u && u.length > r.value.maxlength && (u = u.substring(0, r.value.maxlength)),
|
|
3025
|
+
u && u.length > r.value.maxlength && (u = u.substring(0, r.value.maxlength)), g.value = u;
|
|
3024
3026
|
},
|
|
3025
3027
|
{ immediate: !0 }
|
|
3026
3028
|
), (u, i) => {
|
|
@@ -3032,9 +3034,9 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3032
3034
|
type: "textarea"
|
|
3033
3035
|
}, r.value, {
|
|
3034
3036
|
disabled: e.disabled,
|
|
3035
|
-
modelValue:
|
|
3036
|
-
"onUpdate:modelValue": i[0] || (i[0] = (j) =>
|
|
3037
|
-
}, ye(o.value)), null, 16, ["class", "style", "disabled", "modelValue"])) :
|
|
3037
|
+
modelValue: g.value,
|
|
3038
|
+
"onUpdate:modelValue": i[0] || (i[0] = (j) => g.value = j)
|
|
3039
|
+
}, ye(o.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : F("", !0);
|
|
3038
3040
|
};
|
|
3039
3041
|
}
|
|
3040
3042
|
}), ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: aa }, Symbol.toStringTag, { value: "Module" })), ri = {
|
|
@@ -3053,10 +3055,10 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3053
3055
|
},
|
|
3054
3056
|
emits: ["update:modelValue"],
|
|
3055
3057
|
setup(e, { emit: t }) {
|
|
3056
|
-
var
|
|
3057
|
-
const l = e, n = t, s =
|
|
3058
|
+
var g;
|
|
3059
|
+
const l = e, n = t, s = f(Array.isArray(l.modelValue) ? ((g = l.modelValue) == null ? void 0 : g.map((u) => new Date(u))) || [] : l.modelValue ? new Date(l.modelValue) : null);
|
|
3058
3060
|
n("update:modelValue", s);
|
|
3059
|
-
const r =
|
|
3061
|
+
const r = f({}), a = f(!1), o = f(Ie(l));
|
|
3060
3062
|
return ze(async () => {
|
|
3061
3063
|
r.value = await me(l, { editable: !1, ...fe() }), a.value = !0;
|
|
3062
3064
|
}), (u, i) => {
|
|
@@ -3067,7 +3069,7 @@ const na = /* @__PURE__ */ Ae(oi, [["__scopeId", "data-v-0bb52ac9"]]), si = /* @
|
|
|
3067
3069
|
}, r.value, { disabled: e.disabled }, ye(o.value), {
|
|
3068
3070
|
modelValue: s.value,
|
|
3069
3071
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => s.value = j)
|
|
3070
|
-
}), null, 16, ["disabled", "modelValue"])) :
|
|
3072
|
+
}), null, 16, ["disabled", "modelValue"])) : F("", !0);
|
|
3071
3073
|
};
|
|
3072
3074
|
}
|
|
3073
3075
|
});
|
|
@@ -3087,7 +3089,7 @@ const oa = /* @__PURE__ */ Ae(ci, [["__scopeId", "data-v-937cba1a"]]), di = /* @
|
|
|
3087
3089
|
},
|
|
3088
3090
|
emits: ["update:modelValue"],
|
|
3089
3091
|
setup(e, { emit: t }) {
|
|
3090
|
-
const l = e, n = t, s =
|
|
3092
|
+
const l = e, n = t, s = f(l.modelValue), r = f(Object.assign({}, Re(), l.desc.slots)), a = f({}), o = f(!1), g = f(Ie(l));
|
|
3091
3093
|
return n("update:modelValue", s), ze(async () => {
|
|
3092
3094
|
a.value = await me(l, { format: "HH:mm:ss", editable: !1, ...fe() }), o.value = !0;
|
|
3093
3095
|
}), (u, i) => {
|
|
@@ -3096,17 +3098,17 @@ const oa = /* @__PURE__ */ Ae(ci, [["__scopeId", "data-v-937cba1a"]]), di = /* @
|
|
|
3096
3098
|
key: 0,
|
|
3097
3099
|
isRange: "",
|
|
3098
3100
|
class: "el-plusF-form-timerange-panel"
|
|
3099
|
-
}, a.value, { disabled: e.disabled }, ye(
|
|
3101
|
+
}, a.value, { disabled: e.disabled }, ye(g.value), {
|
|
3100
3102
|
modelValue: s.value,
|
|
3101
3103
|
"onUpdate:modelValue": i[0] || (i[0] = (j) => s.value = j)
|
|
3102
3104
|
}), lt({ _: 2 }, [
|
|
3103
3105
|
Me(r.value, (j, p, m) => ({
|
|
3104
3106
|
name: p,
|
|
3105
|
-
fn: _((
|
|
3106
|
-
De(u.$slots, p, { data:
|
|
3107
|
+
fn: _(($) => [
|
|
3108
|
+
De(u.$slots, p, { data: $ }, void 0, !0)
|
|
3107
3109
|
])
|
|
3108
3110
|
}))
|
|
3109
|
-
]), 1040, ["disabled", "modelValue"])) :
|
|
3111
|
+
]), 1040, ["disabled", "modelValue"])) : F("", !0);
|
|
3110
3112
|
};
|
|
3111
3113
|
}
|
|
3112
3114
|
});
|
|
@@ -3127,12 +3129,12 @@ const sa = /* @__PURE__ */ Ae(fi, [["__scopeId", "data-v-32e2a1cb"]]), gi = /* @
|
|
|
3127
3129
|
},
|
|
3128
3130
|
emits: ["update:modelValue"],
|
|
3129
3131
|
setup(e, { emit: t }) {
|
|
3130
|
-
const l = e, n = t, s =
|
|
3132
|
+
const l = e, n = t, s = f(l.modelValue);
|
|
3131
3133
|
n("update:modelValue", s);
|
|
3132
|
-
const r =
|
|
3134
|
+
const r = f(Object.assign({}, Re(), l.desc.slots)), a = f({}), o = f(Ie(l));
|
|
3133
3135
|
return ze(async () => {
|
|
3134
3136
|
a.value = await me(l, { ...fe() });
|
|
3135
|
-
}), (
|
|
3137
|
+
}), (g, u) => {
|
|
3136
3138
|
const i = O("el-transfer");
|
|
3137
3139
|
return d(), S(i, ee({
|
|
3138
3140
|
class: [e.desc.class, "ele-form-transfer"],
|
|
@@ -3146,7 +3148,7 @@ const sa = /* @__PURE__ */ Ae(fi, [["__scopeId", "data-v-32e2a1cb"]]), gi = /* @
|
|
|
3146
3148
|
Me(r.value, (c, j, p) => ({
|
|
3147
3149
|
name: j,
|
|
3148
3150
|
fn: _((m) => [
|
|
3149
|
-
De(
|
|
3151
|
+
De(g.$slots, j, { data: m }, void 0, !0)
|
|
3150
3152
|
])
|
|
3151
3153
|
}))
|
|
3152
3154
|
]), 1040, ["class", "data", "style", "disabled", "modelValue"]);
|
|
@@ -3179,7 +3181,7 @@ const ua = /* @__PURE__ */ Ae(ji, [["__scopeId", "data-v-2fec4270"]]), pi = /* @
|
|
|
3179
3181
|
t.treeState.nodeHasChildren(s) && (t.treeState.toggleExpand(s), t.onNodeExpand(s));
|
|
3180
3182
|
}
|
|
3181
3183
|
return (s, r) => {
|
|
3182
|
-
const a = O("el-icon"), o = O("el-checkbox"),
|
|
3184
|
+
const a = O("el-icon"), o = O("el-checkbox"), g = O("CustomTreeNode", !0);
|
|
3183
3185
|
return d(), I("div", yi, [
|
|
3184
3186
|
(d(!0), I(oe, null, Me(e.nodes, (u, i) => bl((d(), I("div", {
|
|
3185
3187
|
key: `${e.treeState.getNodeIdStr(u)}-${e.depth}-${i}`,
|
|
@@ -3209,21 +3211,21 @@ const ua = /* @__PURE__ */ Ae(ji, [["__scopeId", "data-v-2fec4270"]]), pi = /* @
|
|
|
3209
3211
|
onClick: r[0] || (r[0] = _t(() => {
|
|
3210
3212
|
}, ["stop"])),
|
|
3211
3213
|
onChange: (c) => l(u, !!c)
|
|
3212
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onChange"])) :
|
|
3214
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "onChange"])) : F("", !0),
|
|
3213
3215
|
ae("span", {
|
|
3214
3216
|
class: "node-label",
|
|
3215
3217
|
title: u[e.treeState.config.labelKey]
|
|
3216
3218
|
}, de(u[e.treeState.config.labelKey]), 9, Di)
|
|
3217
3219
|
], 12, zi),
|
|
3218
3220
|
e.treeState.nodeHasChildren(u) && e.treeState.isNodeExpanded(u) ? (d(), I("div", vi, [
|
|
3219
|
-
Z(
|
|
3221
|
+
Z(g, {
|
|
3220
3222
|
nodes: u[e.treeState.config.childrenKey],
|
|
3221
3223
|
depth: e.depth + 1,
|
|
3222
3224
|
"tree-state": e.treeState,
|
|
3223
3225
|
"on-node-check": e.onNodeCheck,
|
|
3224
3226
|
"on-node-expand": e.onNodeExpand
|
|
3225
3227
|
}, null, 8, ["nodes", "depth", "tree-state", "on-node-check", "on-node-expand"])
|
|
3226
|
-
])) :
|
|
3228
|
+
])) : F("", !0)
|
|
3227
3229
|
])), [
|
|
3228
3230
|
[Yn, e.treeState.isNodeVisible(u)]
|
|
3229
3231
|
])), 128))
|
|
@@ -3426,14 +3428,14 @@ const _i = /* @__PURE__ */ H({
|
|
|
3426
3428
|
},
|
|
3427
3429
|
emits: ["update:modelValue", "validateThis"],
|
|
3428
3430
|
setup(e, { emit: t }) {
|
|
3429
|
-
const l = ce("lodash"), n = ce("globalData"), s = e, r = t, a = at(s, "modelValue", r), o =
|
|
3431
|
+
const l = ce("lodash"), n = ce("globalData"), s = e, r = t, a = at(s, "modelValue", r), o = f([]), g = f(!1), u = f({}), i = f(Ie(s)), c = le(() => {
|
|
3430
3432
|
var C, A;
|
|
3431
3433
|
return (C = s.desc) != null && C.height ? typeof s.desc.height == "function" ? s.desc.height() : (A = s.desc) == null ? void 0 : A.height : "400px";
|
|
3432
|
-
}), j =
|
|
3434
|
+
}), j = f(null), p = f(null), m = f(""), $ = f(!0), B = f(0), b = f(/* @__PURE__ */ new Set()), Q = f([]);
|
|
3433
3435
|
function w() {
|
|
3434
3436
|
return j.value;
|
|
3435
3437
|
}
|
|
3436
|
-
function
|
|
3438
|
+
function v() {
|
|
3437
3439
|
const C = w(), A = Ft(o.value, C);
|
|
3438
3440
|
B.value = A.length, b.value = new Set(A);
|
|
3439
3441
|
const se = m.value ? Gl(o.value, C) : $l(o.value, C);
|
|
@@ -3461,22 +3463,22 @@ const _i = /* @__PURE__ */ H({
|
|
|
3461
3463
|
function x(C) {
|
|
3462
3464
|
return Ge(C, w());
|
|
3463
3465
|
}
|
|
3464
|
-
function
|
|
3466
|
+
function N(C, A) {
|
|
3465
3467
|
const se = w(), Te = Ge(C, se);
|
|
3466
3468
|
if (!sl(C, se)) {
|
|
3467
3469
|
if (A && se.maxCount < 1 / 0 && B.value >= se.maxCount)
|
|
3468
3470
|
return !1;
|
|
3469
3471
|
Jt(o.value, Te, A, se);
|
|
3470
|
-
} else if (
|
|
3472
|
+
} else if ($.value) {
|
|
3471
3473
|
const He = new Set(Ft(o.value, se));
|
|
3472
3474
|
ia(C, A, He, se);
|
|
3473
3475
|
const pt = new Set(Ft(o.value, se));
|
|
3474
3476
|
Dl(o.value, pt, se);
|
|
3475
3477
|
} else
|
|
3476
3478
|
Mt(C, se) || (C._checked = A);
|
|
3477
|
-
return
|
|
3479
|
+
return $.value ? mt(o.value, se) : Kt(o.value, se), v(), !0;
|
|
3478
3480
|
}
|
|
3479
|
-
function
|
|
3481
|
+
function D(C) {
|
|
3480
3482
|
const A = w();
|
|
3481
3483
|
C._expanded = !C._expanded, A.accordion && C._expanded && fa(o.value, C, A), fl(o);
|
|
3482
3484
|
}
|
|
@@ -3492,33 +3494,33 @@ const _i = /* @__PURE__ */ H({
|
|
|
3492
3494
|
Dl(o.value, he, A);
|
|
3493
3495
|
} else
|
|
3494
3496
|
Ma(o.value, new Set(Te), A);
|
|
3495
|
-
Rt(o.value, A),
|
|
3497
|
+
Rt(o.value, A), $.value ? mt(o.value, A) : Kt(o.value, A), v();
|
|
3496
3498
|
}
|
|
3497
|
-
function
|
|
3499
|
+
function U(C) {
|
|
3498
3500
|
const A = w();
|
|
3499
|
-
C ? ul(o.value, C, A) : ra(o.value, A),
|
|
3501
|
+
C ? ul(o.value, C, A) : ra(o.value, A), v();
|
|
3500
3502
|
}
|
|
3501
3503
|
function te(C) {
|
|
3502
3504
|
const A = w(), se = new Set(C || []);
|
|
3503
|
-
if (da(o.value, A),
|
|
3505
|
+
if (da(o.value, A), $.value) {
|
|
3504
3506
|
for (const Te of se)
|
|
3505
3507
|
Jt(o.value, Te, !0, A);
|
|
3506
3508
|
Rt(o.value, A), mt(o.value, A);
|
|
3507
3509
|
} else
|
|
3508
3510
|
ca(o.value, se, A), Rt(o.value, A), Kt(o.value, A);
|
|
3509
|
-
|
|
3511
|
+
v(), m.value && ul(o.value, m.value, A);
|
|
3510
3512
|
}
|
|
3511
|
-
function
|
|
3513
|
+
function R() {
|
|
3512
3514
|
const C = w();
|
|
3513
3515
|
return C.isPId ? xi(o.value, C) : Ft(o.value, C);
|
|
3514
3516
|
}
|
|
3515
3517
|
function K(C) {
|
|
3516
3518
|
const A = w(), se = l.cloneDeep(C);
|
|
3517
|
-
o.value = se, ml(o.value, A, A.expandAll), Rt(o.value, A), mt(o.value, A),
|
|
3519
|
+
o.value = se, ml(o.value, A, A.expandAll), Rt(o.value, A), mt(o.value, A), v(), m.value && ul(o.value, m.value, A);
|
|
3518
3520
|
}
|
|
3519
|
-
function
|
|
3521
|
+
function M() {
|
|
3520
3522
|
const C = w();
|
|
3521
|
-
ml(o.value, C, C.expandAll), Rt(o.value, C), mt(o.value, C),
|
|
3523
|
+
ml(o.value, C, C.expandAll), Rt(o.value, C), mt(o.value, C), v();
|
|
3522
3524
|
}
|
|
3523
3525
|
const z = le({
|
|
3524
3526
|
get() {
|
|
@@ -3526,7 +3528,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3526
3528
|
return C.length ? C.every((A) => b.value.has(A)) : !1;
|
|
3527
3529
|
},
|
|
3528
3530
|
set(C) {
|
|
3529
|
-
Y(C), a.value =
|
|
3531
|
+
Y(C), a.value = R(), be(() => {
|
|
3530
3532
|
r("validateThis");
|
|
3531
3533
|
});
|
|
3532
3534
|
}
|
|
@@ -3539,7 +3541,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3539
3541
|
}), h = Oe({
|
|
3540
3542
|
config: {},
|
|
3541
3543
|
searchText: m,
|
|
3542
|
-
cascadeMode:
|
|
3544
|
+
cascadeMode: $,
|
|
3543
3545
|
selectAll: z,
|
|
3544
3546
|
selectAllIndeterminate: V,
|
|
3545
3547
|
isNodeChecked: G,
|
|
@@ -3549,8 +3551,8 @@ const _i = /* @__PURE__ */ H({
|
|
|
3549
3551
|
isNodeExpanded: y,
|
|
3550
3552
|
nodeHasChildren: k,
|
|
3551
3553
|
getNodeIdStr: x,
|
|
3552
|
-
toggleCheck:
|
|
3553
|
-
toggleExpand:
|
|
3554
|
+
toggleCheck: N,
|
|
3555
|
+
toggleExpand: D
|
|
3554
3556
|
});
|
|
3555
3557
|
ze(async () => {
|
|
3556
3558
|
var A, se, Te, he;
|
|
@@ -3578,12 +3580,12 @@ const _i = /* @__PURE__ */ H({
|
|
|
3578
3580
|
accordion: u.value.accordion ?? !1,
|
|
3579
3581
|
disabled: s.disabled ?? !1
|
|
3580
3582
|
};
|
|
3581
|
-
j.value = C,
|
|
3582
|
-
}), re(
|
|
3583
|
-
j.value && (
|
|
3583
|
+
j.value = C, $.value = !C.checkStrictly, h.config = C, o.value.length && (M(), (he = a.value) != null && he.length && te(a.value)), g.value = !0;
|
|
3584
|
+
}), re($, () => {
|
|
3585
|
+
j.value && ($.value ? mt(o.value, w()) : Kt(o.value, w()), v());
|
|
3584
3586
|
});
|
|
3585
3587
|
const ne = l.debounce(function(C) {
|
|
3586
|
-
|
|
3588
|
+
U(C);
|
|
3587
3589
|
}, 200);
|
|
3588
3590
|
function ge(C) {
|
|
3589
3591
|
m.value = C, ne(C);
|
|
@@ -3592,7 +3594,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3592
3594
|
ne.cancel();
|
|
3593
3595
|
});
|
|
3594
3596
|
function ve(C, A) {
|
|
3595
|
-
|
|
3597
|
+
N(C, A) && (a.value = R(), be(() => {
|
|
3596
3598
|
r("validateThis"), i.value["check-change"] && i.value["check-change"](C, A);
|
|
3597
3599
|
}));
|
|
3598
3600
|
}
|
|
@@ -3624,7 +3626,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3624
3626
|
(C) => {
|
|
3625
3627
|
if (!j.value)
|
|
3626
3628
|
return;
|
|
3627
|
-
const A =
|
|
3629
|
+
const A = R();
|
|
3628
3630
|
tt(C || [], A) || te(C || []);
|
|
3629
3631
|
}
|
|
3630
3632
|
), re(
|
|
@@ -3643,7 +3645,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3643
3645
|
onChange: A[0] || (A[0] = (He) => h.selectAll = !!He),
|
|
3644
3646
|
label: "全部勾选",
|
|
3645
3647
|
border: ""
|
|
3646
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
3648
|
+
}, null, 8, ["model-value", "indeterminate"])) : F("", !0),
|
|
3647
3649
|
u.value.showCascadeSwitch ? (d(), S(Te, {
|
|
3648
3650
|
key: 1,
|
|
3649
3651
|
"model-value": h.cascadeMode,
|
|
@@ -3651,7 +3653,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3651
3653
|
"active-text": "级联",
|
|
3652
3654
|
"inactive-text": "独立",
|
|
3653
3655
|
"inline-prompt": ""
|
|
3654
|
-
}, null, 8, ["model-value"])) :
|
|
3656
|
+
}, null, 8, ["model-value"])) : F("", !0),
|
|
3655
3657
|
u.value.enableSearch ? (d(), S(he, {
|
|
3656
3658
|
key: 2,
|
|
3657
3659
|
"model-value": h.searchText,
|
|
@@ -3662,9 +3664,9 @@ const _i = /* @__PURE__ */ H({
|
|
|
3662
3664
|
"validate-event": !1,
|
|
3663
3665
|
clearable: "",
|
|
3664
3666
|
class: "tree-search-input"
|
|
3665
|
-
}, null, 8, ["model-value"])) :
|
|
3666
|
-
])) :
|
|
3667
|
-
|
|
3667
|
+
}, null, 8, ["model-value"])) : F("", !0)
|
|
3668
|
+
])) : F("", !0),
|
|
3669
|
+
g.value && o.value.length ? (d(), I("div", {
|
|
3668
3670
|
key: 1,
|
|
3669
3671
|
class: "custom-tree",
|
|
3670
3672
|
style: Pe({ maxHeight: c.value || "400px" })
|
|
@@ -3676,7 +3678,7 @@ const _i = /* @__PURE__ */ H({
|
|
|
3676
3678
|
"on-node-check": ve,
|
|
3677
3679
|
"on-node-expand": Be
|
|
3678
3680
|
}, null, 8, ["nodes", "tree-state"])
|
|
3679
|
-
], 4)) :
|
|
3681
|
+
], 4)) : g.value ? (d(), I("div", Ti, "暂无选项")) : F("", !0)
|
|
3680
3682
|
]);
|
|
3681
3683
|
};
|
|
3682
3684
|
}
|
|
@@ -3698,11 +3700,11 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3698
3700
|
},
|
|
3699
3701
|
emits: ["update:modelValue"],
|
|
3700
3702
|
setup(e, { emit: t }) {
|
|
3701
|
-
const l = ce("globalData"), n = e, s = t, r =
|
|
3703
|
+
const l = ce("globalData"), n = e, s = t, r = f(n.modelValue);
|
|
3702
3704
|
s("update:modelValue", r);
|
|
3703
|
-
const a = Oe([]), o =
|
|
3705
|
+
const a = Oe([]), o = f(!1), g = f({}), u = f(Ie(n));
|
|
3704
3706
|
return ze(async () => {
|
|
3705
|
-
|
|
3707
|
+
g.value = await me(n, { filterable: !0, clearable: !0, props: { label: "name", value: "id", children: "children" }, ...fe() }), o.value = !0;
|
|
3706
3708
|
}), re(
|
|
3707
3709
|
() => n.desc.options,
|
|
3708
3710
|
async (i) => {
|
|
@@ -3715,13 +3717,13 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3715
3717
|
key: 0,
|
|
3716
3718
|
class: e.desc.class,
|
|
3717
3719
|
style: e.desc.style
|
|
3718
|
-
},
|
|
3720
|
+
}, g.value, {
|
|
3719
3721
|
disabled: e.disabled,
|
|
3720
3722
|
modelValue: r.value,
|
|
3721
3723
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.value = p),
|
|
3722
3724
|
data: a,
|
|
3723
3725
|
loading: e.loading
|
|
3724
|
-
}, ye(u.value), { "render-after-expand": !1 }), null, 16, ["class", "style", "disabled", "modelValue", "data", "loading"])) :
|
|
3726
|
+
}, ye(u.value), { "render-after-expand": !1 }), null, 16, ["class", "style", "disabled", "modelValue", "data", "loading"])) : F("", !0);
|
|
3725
3727
|
};
|
|
3726
3728
|
}
|
|
3727
3729
|
}), Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Na }, Symbol.toStringTag, { value: "Module" })), ja = ["image/jpg", "image/png", "image/gif", "image/jpeg"], Zt = [".jpe", ".jpeg", ".jpg", ".gif", ".png"], pa = ["video/3gpp", "video/mpeg", "application/mp4", "video/mp4", "video/ogg", "video/x-flv", "video/x-msvideo"], ya = [".3gpp", ".mpeg", ".mpg", ".mp4", ".ogv", ".flv", ".avi"], za = ["audio/x-wav", "audio/x-ms-wma", "audio/mp4", "audio/mp3"], ma = [".wav", ".wma", ".mp4a", ".mp3"], Da = ["application/x-msaccess", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.presentationml.presentation", " application/vnd.ms-powerpoint", "application/vnd.ms-excel", " application/msword", "application/pdf", "application/vnd.ms-works"], va = [".mdb", ".docx", ".xlsx", ".pptx", ".ppt", ".xls", ".doc", ".pdf"], Ya = ["application/xml", "application/x-sh", "application/json", "application/javascript", "application/java-vm", "application/java-archive", "text/html", "text/plain"], Ia = [".xml", ".sh", ".json", ".js", ".class", ".jar", "html", ".txt", ".wdb", ".wps"], wa = ["application/x-rar-compressed", "application/x-msdownload", "application/x-font-woff", " application/x-font-ttf", "application/x-7z-compressed", " application/vnd.android.package-archive", "application/zip"], ba = [".rar", ".exe", ".woff", ".ttf", ".7z", ".apk", ".zip"], Oi = [...ja, ...pa, ...za, ...Da, ...Ya, ...wa], Si = [...Zt, ...ya, ...ma, ...va, ...Ia, ...ba], Wt = [
|
|
@@ -3757,153 +3759,153 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3757
3759
|
},
|
|
3758
3760
|
emits: ["update:modelValue", "validateThis"],
|
|
3759
3761
|
setup(e, { emit: t }) {
|
|
3760
|
-
const l = ce("defaultConf"), n = { excel: ki, pdf: Bi, file: Vi, txt: Pi, word: Qi, zip: Ui, ppt: Fi }, s = e, r = t, a =
|
|
3762
|
+
const l = ce("defaultConf"), n = { excel: ki, pdf: Bi, file: Vi, txt: Pi, word: Qi, zip: Ui, ppt: Fi }, s = e, r = t, a = f((typeof s.modelValue == "string" ? [{ url: s.modelValue }] : s.modelValue) || []);
|
|
3761
3763
|
r("update:modelValue", a);
|
|
3762
|
-
const o =
|
|
3763
|
-
const
|
|
3764
|
-
return a.value.map((
|
|
3764
|
+
const o = f({}), g = f(!1), u = f(Ie(s)), i = f(""), c = f({}), j = le(() => !s.desc.upType || s.desc.upType === "image"), p = f(!1), m = f(0), $ = le(() => {
|
|
3765
|
+
const N = [];
|
|
3766
|
+
return a.value.map((D) => {
|
|
3765
3767
|
var Y;
|
|
3766
|
-
Zt.indexOf(((Y =
|
|
3767
|
-
}),
|
|
3768
|
+
Zt.indexOf(((Y = D.raw) == null ? void 0 : Y.suffix) || D.suffix) >= 0 && N.push(D.signUrl || D.url);
|
|
3769
|
+
}), N;
|
|
3768
3770
|
});
|
|
3769
3771
|
ze(async () => {
|
|
3770
|
-
var
|
|
3771
|
-
!((
|
|
3772
|
+
var N, D, Y, U, te, R, K;
|
|
3773
|
+
!((N = l.upload) != null && N.sign) && !((D = s.desc) != null && D.sign) && l.debug && console.warn("上传私有加密仓库必须在config或desc中配置sign方法进行图片/文件签名鉴权,否则图片将无法显示和预览!"), o.value = await me(s, {
|
|
3772
3774
|
drag: !0,
|
|
3773
3775
|
listType: j.value ? "picture-card" : "text",
|
|
3774
3776
|
multiple: !!s.desc.multiple,
|
|
3775
3777
|
limit: s.desc.multiple ? s.desc.limit || 20 : 1,
|
|
3776
3778
|
autoUpload: s.desc.autoUpload ?? !0,
|
|
3777
3779
|
accept: s.desc.accept || Kl[`${s.desc.upType || "image"}Types`].join(","),
|
|
3778
|
-
maxSize: s.desc.maxSize || (j.value ? (Y = l.upload) == null ? void 0 : Y.maxISize : (
|
|
3780
|
+
maxSize: s.desc.maxSize || (j.value ? (Y = l.upload) == null ? void 0 : Y.maxISize : (U = l.upload) == null ? void 0 : U.maxFSize),
|
|
3779
3781
|
beforeUpload: B,
|
|
3780
3782
|
onRemove: G,
|
|
3781
3783
|
onSuccess: w,
|
|
3782
3784
|
onExceed: L,
|
|
3783
3785
|
onPreview: T,
|
|
3784
3786
|
...fe()
|
|
3785
|
-
}), (te = s.desc) != null && te.uploadFn || (
|
|
3787
|
+
}), (te = s.desc) != null && te.uploadFn || (R = l.upload) != null && R.uploadFn ? o.value.httpRequest = y : (((K = l.upload) == null ? void 0 : K.type) === "minio" && (o.value.method = "PUT"), o.value.action = i), g.value = !0;
|
|
3786
3788
|
});
|
|
3787
|
-
async function B(
|
|
3788
|
-
var Y,
|
|
3789
|
-
|
|
3790
|
-
const
|
|
3791
|
-
if (
|
|
3792
|
-
return Xe.warning(
|
|
3789
|
+
async function B(N) {
|
|
3790
|
+
var Y, U, te, R, K, M, z, V, h;
|
|
3791
|
+
N.suffix = `${N.name.substring(N.name.lastIndexOf("."))}`.split("?")[0];
|
|
3792
|
+
const D = x(N, Kl[`${s.desc.upType || "image"}Suffixes`], o.value.maxSize);
|
|
3793
|
+
if (D !== !0)
|
|
3794
|
+
return Xe.warning(D), !1;
|
|
3793
3795
|
try {
|
|
3794
|
-
|
|
3796
|
+
N.url = URL.createObjectURL(N);
|
|
3795
3797
|
let ne = {};
|
|
3796
|
-
(Y = s.desc) != null && Y.action && (ne = await b((
|
|
3797
|
-
"Content-Type":
|
|
3798
|
+
(Y = s.desc) != null && Y.action && (ne = await b((U = s.desc) == null ? void 0 : U.action, { fileName: N.name })), ne.action || (ne = await b((te = l.upload) == null ? void 0 : te.action, { fileName: N.name })), i.value = ne.action, N.uploadId = ne.uploadId || "", N.furl = ne.furl, ((R = s.desc) != null && R.token || (K = l.upload) != null && K.token) && (o.value.data = { token: await Q(((M = s.desc) == null ? void 0 : M.token) || ((z = l.upload) == null ? void 0 : z.token), N) }), !((V = s.desc) != null && V.uploadFn) && ((h = l.upload) == null ? void 0 : h.type) === "minio" && (o.value.data = N, o.value.headers = {
|
|
3799
|
+
"Content-Type": N.type
|
|
3798
3800
|
});
|
|
3799
3801
|
} catch (ne) {
|
|
3800
3802
|
l.debug && console.log("获取action出错: ", ne);
|
|
3801
3803
|
}
|
|
3802
3804
|
}
|
|
3803
|
-
async function b(
|
|
3804
|
-
var
|
|
3805
|
+
async function b(N, D) {
|
|
3806
|
+
var U, te, R, K, M, z, V, h, ne, ge, ve, Be, C, A, se;
|
|
3805
3807
|
const Y = { action: "", uploadId: void 0, token: void 0, furl: "" };
|
|
3806
|
-
if (typeof
|
|
3807
|
-
const Te =
|
|
3808
|
-
typeof he == "object" ? (Y.action = ut(((
|
|
3808
|
+
if (typeof N == "function") {
|
|
3809
|
+
const Te = N({ ...D || {}, type: (U = l.upload) == null ? void 0 : U.type }), he = et(Te) ? await Te : Te;
|
|
3810
|
+
typeof he == "object" ? (Y.action = ut(((R = (te = s.desc) == null ? void 0 : te.actionMap) == null ? void 0 : R.actionKey) || ((M = (K = l.upload) == null ? void 0 : K.actionMap) == null ? void 0 : M.actionKey) || [], he), Y.uploadId = ut(((V = (z = s.desc) == null ? void 0 : z.actionMap) == null ? void 0 : V.uploadIdKey) || ((ne = (h = l.upload) == null ? void 0 : h.actionMap) == null ? void 0 : ne.uploadIdKey) || [], he), Y.token = ut(((ge = s.desc) == null ? void 0 : ge.tokenKey) || ((ve = l.upload) == null ? void 0 : ve.tokenKey) || [], he), Y.furl = ut(((C = (Be = s.desc) == null ? void 0 : Be.actionMap) == null ? void 0 : C.objectUrlKey) || ((se = (A = l.upload) == null ? void 0 : A.actionMap) == null ? void 0 : se.objectUrlKey) || [], he)) : Y.action = he, c.value = he;
|
|
3809
3811
|
} else
|
|
3810
|
-
|
|
3812
|
+
N !== void 0 && (Y.action = N);
|
|
3811
3813
|
return Y;
|
|
3812
3814
|
}
|
|
3813
|
-
async function Q(
|
|
3814
|
-
var
|
|
3815
|
+
async function Q(N, D) {
|
|
3816
|
+
var U, te;
|
|
3815
3817
|
let Y = "";
|
|
3816
|
-
if (typeof
|
|
3817
|
-
const
|
|
3818
|
-
typeof K == "object" ? Y = ut(((
|
|
3818
|
+
if (typeof N == "function") {
|
|
3819
|
+
const R = N(D), K = et(R) ? await R : R;
|
|
3820
|
+
typeof K == "object" ? Y = ut(((U = s.desc) == null ? void 0 : U.tokenKey) || ((te = l.upload) == null ? void 0 : te.tokenKey) || [], K) : Y = K;
|
|
3819
3821
|
}
|
|
3820
3822
|
return Y;
|
|
3821
3823
|
}
|
|
3822
|
-
async function w(
|
|
3823
|
-
var Y,
|
|
3824
|
-
if (
|
|
3825
|
-
const V = ut(((
|
|
3826
|
-
V && (
|
|
3824
|
+
async function w(N, D) {
|
|
3825
|
+
var Y, U, te, R, K, M, z;
|
|
3826
|
+
if (N && Object.keys(N).length > 0) {
|
|
3827
|
+
const V = ut(((U = (Y = l.upload) == null ? void 0 : Y.actionMap) == null ? void 0 : U.objectUrlKey) || [], N.request || N.result || N);
|
|
3828
|
+
V && (D.raw.furl = V);
|
|
3827
3829
|
}
|
|
3828
3830
|
if ((te = l.upload) != null && te.sign) {
|
|
3829
3831
|
let V = {};
|
|
3830
|
-
const h = (K = l.upload) == null ? void 0 : K.sign(
|
|
3831
|
-
et(h) ? V = await h : V = h,
|
|
3832
|
+
const h = (K = l.upload) == null ? void 0 : K.sign(D.raw[((R = l.upload) == null ? void 0 : R.type) === "aliyun" ? "furl" : "uploadId"]);
|
|
3833
|
+
et(h) ? V = await h : V = h, D.raw.previewUrl = ut(((M = l.upload.signMap) == null ? void 0 : M.previewUrlKey) || [], V), D.raw.shareUrl = ut(((z = l.upload.signMap) == null ? void 0 : z.objectUrlKey) || [], V), D.raw.url = D.raw.shareUrl;
|
|
3832
3834
|
} else
|
|
3833
|
-
|
|
3834
|
-
j.value ?
|
|
3835
|
+
D.raw.previewUrl = D.raw.furl, D.raw.shareUrl = D.raw.furl;
|
|
3836
|
+
j.value ? D.url = v(D.raw) : D.url = D.raw.furl, P(D, 1);
|
|
3835
3837
|
}
|
|
3836
|
-
function
|
|
3837
|
-
const
|
|
3838
|
+
function v(N) {
|
|
3839
|
+
const D = N.shareUrl || N.signUrl || N.url || N.furl, Y = `${((N == null ? void 0 : N.suffix) || D.substring(D.split("?")[0].lastIndexOf(".")) || "").toLocaleLowerCase()}`.split("?")[0];
|
|
3838
3840
|
if (Y) {
|
|
3839
3841
|
if (Zt.indexOf(Y) >= 0)
|
|
3840
|
-
return
|
|
3841
|
-
for (let
|
|
3842
|
-
for (let te = 0; te < Wt[
|
|
3843
|
-
if (Wt[
|
|
3844
|
-
return n[Wt[
|
|
3842
|
+
return D;
|
|
3843
|
+
for (let U = 0; U < Wt.length; U++)
|
|
3844
|
+
for (let te = 0; te < Wt[U].suffixes.length; te++)
|
|
3845
|
+
if (Wt[U].suffixes[te] === Y)
|
|
3846
|
+
return n[Wt[U].type];
|
|
3845
3847
|
}
|
|
3846
|
-
return console.log("!props.desc.upType || props.desc.upType === 'image' ? fileUrl : iconMap.file: ", !s.desc.upType || s.desc.upType === "image" ?
|
|
3848
|
+
return console.log("!props.desc.upType || props.desc.upType === 'image' ? fileUrl : iconMap.file: ", !s.desc.upType || s.desc.upType === "image" ? D : n.file), !s.desc.upType || s.desc.upType === "image" ? D : n.file;
|
|
3847
3849
|
}
|
|
3848
|
-
function G(
|
|
3849
|
-
P(
|
|
3850
|
+
function G(N) {
|
|
3851
|
+
P(N, 0);
|
|
3850
3852
|
}
|
|
3851
|
-
function P(
|
|
3852
|
-
var Y,
|
|
3853
|
-
if (
|
|
3853
|
+
function P(N, D) {
|
|
3854
|
+
var Y, U, te;
|
|
3855
|
+
if (D === 1)
|
|
3854
3856
|
a.value.push({
|
|
3855
|
-
name:
|
|
3856
|
-
furl:
|
|
3857
|
-
url: j.value ?
|
|
3858
|
-
fsize:
|
|
3859
|
-
uid:
|
|
3860
|
-
mimeType: (
|
|
3861
|
-
suffix: ((te =
|
|
3857
|
+
name: N.name,
|
|
3858
|
+
furl: N.raw.furl || N.furl || N.url,
|
|
3859
|
+
url: j.value ? v(N.raw) : ((Y = N == null ? void 0 : N.raw) == null ? void 0 : Y.shareUrl) || N.url,
|
|
3860
|
+
fsize: N.size,
|
|
3861
|
+
uid: N.uid,
|
|
3862
|
+
mimeType: (U = N.raw) == null ? void 0 : U.type,
|
|
3863
|
+
suffix: ((te = N.raw.suffix) == null ? void 0 : te.toLocaleLowerCase()) || "",
|
|
3862
3864
|
busId: s.desc.busId,
|
|
3863
3865
|
busType: s.desc.busType
|
|
3864
3866
|
});
|
|
3865
3867
|
else {
|
|
3866
|
-
const
|
|
3867
|
-
|
|
3868
|
+
const R = a.value.findIndex((K) => K.uid === N.uid);
|
|
3869
|
+
R >= 0 && a.value.splice(R, 1);
|
|
3868
3870
|
}
|
|
3869
3871
|
r("validateThis");
|
|
3870
3872
|
}
|
|
3871
|
-
function T(
|
|
3872
|
-
var
|
|
3873
|
-
Zt.indexOf((((
|
|
3874
|
-
var te,
|
|
3875
|
-
return
|
|
3876
|
-
}), m.value < 0 && (m.value = 0), p.value = !0) : window.open(((Y =
|
|
3873
|
+
function T(N) {
|
|
3874
|
+
var D, Y;
|
|
3875
|
+
Zt.indexOf((((D = N.raw) == null ? void 0 : D.suffix) || N.suffix || "").toLocaleLowerCase()) >= 0 ? (m.value = $.value.findIndex((U) => {
|
|
3876
|
+
var te, R;
|
|
3877
|
+
return U === (N.signUrl || ((te = N.raw) == null ? void 0 : te.shareUrl) || ((R = N.raw) == null ? void 0 : R.signUrl) || N.furl);
|
|
3878
|
+
}), m.value < 0 && (m.value = 0), p.value = !0) : window.open(((Y = N.raw) == null ? void 0 : Y.previewUrl) || N.previewUrl, "_blank");
|
|
3877
3879
|
}
|
|
3878
3880
|
function L() {
|
|
3879
3881
|
Xe.error("数量最多只能上传" + o.value.limit + "个图片/文件!!!");
|
|
3880
3882
|
}
|
|
3881
|
-
function y(
|
|
3882
|
-
var Y,
|
|
3883
|
-
return
|
|
3883
|
+
function y(N) {
|
|
3884
|
+
var Y, U;
|
|
3885
|
+
return N.action = i.value, N.actionInfo = c.value, (((Y = s.desc) == null ? void 0 : Y.uploadFn) || ((U = l.upload) == null ? void 0 : U.uploadFn))(N);
|
|
3884
3886
|
}
|
|
3885
3887
|
function k() {
|
|
3886
3888
|
}
|
|
3887
|
-
function x(
|
|
3888
|
-
return
|
|
3889
|
+
function x(N, D, Y) {
|
|
3890
|
+
return N.size > Y ? "上传文件大小不能超过 " + (Y / 1024 / 1024).toFixed(2) + "M~" : D && D.length > 0 && D.every((U) => U !== (N.suffix || "").toLocaleLowerCase()) ? "上传文件类型错误,请重新选择~" : !0;
|
|
3889
3891
|
}
|
|
3890
3892
|
return re(
|
|
3891
3893
|
() => s.modelValue,
|
|
3892
|
-
(
|
|
3893
|
-
JSON.stringify(
|
|
3894
|
-
var
|
|
3895
|
-
return j.value && (Y.url =
|
|
3894
|
+
(N, D) => {
|
|
3895
|
+
JSON.stringify(N) !== JSON.stringify(D) && (typeof N == "string" ? N !== "" ? a.value = [{ url: N, furl: N, suffix: `${N.substring(N.lastIndexOf(".")).toLocaleLowerCase()}`.split("?")[0] }] : a.value = [] : a.value = (N == null ? void 0 : N.map((Y) => {
|
|
3896
|
+
var U, te, R, K, M, z;
|
|
3897
|
+
return j.value && (Y.url = v(Y) || ut(((te = (U = l.upload) == null ? void 0 : U.signMap) == null ? void 0 : te.previewUrlKey) || [], Y), Y.furl = Y.furl || v(Y)), Y.suffix = `${(Y.suffix || ((K = Y.url) == null ? void 0 : K.substring(((R = Y.url) == null ? void 0 : R.lastIndexOf(".")) || 0)) || "").toLocaleLowerCase()}`.split("?")[0], Y.previewUrl = ut(((z = (M = l.upload) == null ? void 0 : M.signMap) == null ? void 0 : z.previewUrlKey) || [], Y) || Y.furl || Y.url, Y;
|
|
3896
3898
|
})) || []);
|
|
3897
3899
|
},
|
|
3898
3900
|
{ immediate: !0 }
|
|
3899
|
-
), (
|
|
3901
|
+
), (N, D) => {
|
|
3900
3902
|
var K;
|
|
3901
|
-
const Y = O("el-icon"),
|
|
3902
|
-
return
|
|
3903
|
+
const Y = O("el-icon"), U = O("el-upload"), te = O("el-image-viewer"), R = O("el-button");
|
|
3904
|
+
return g.value ? (d(), I("div", {
|
|
3903
3905
|
key: 0,
|
|
3904
3906
|
class: dt(["ele-form-upload-image", { "ele-form-upload-file": !!e.desc.upType }])
|
|
3905
3907
|
}, [
|
|
3906
|
-
Z(
|
|
3908
|
+
Z(U, ee({ class: "ele-image-upload" }, o.value, ye(u.value), {
|
|
3907
3909
|
disabled: e.disabled,
|
|
3908
3910
|
fileList: a.value || [],
|
|
3909
3911
|
class: { "over-limit": ((K = a.value) == null ? void 0 : K.length) >= o.value.limit, "upload-disabled": o.value.disabled }
|
|
@@ -3923,34 +3925,34 @@ const ga = /* @__PURE__ */ Ae(_i, [["__scopeId", "data-v-06d3d089"]]), Li = /* @
|
|
|
3923
3925
|
]),
|
|
3924
3926
|
_: 1
|
|
3925
3927
|
}, 8, ["style"])),
|
|
3926
|
-
e.desc.upType && e.desc.text2 ? (d(), I("div", $i, de(e.desc.text2), 1)) :
|
|
3927
|
-
e.desc.upType ? (d(), I("div", Gi, de(e.desc.text || "拖拽/点击上传"), 1)) :
|
|
3928
|
+
e.desc.upType && e.desc.text2 ? (d(), I("div", $i, de(e.desc.text2), 1)) : F("", !0),
|
|
3929
|
+
e.desc.upType ? (d(), I("div", Gi, de(e.desc.text || "拖拽/点击上传"), 1)) : F("", !0)
|
|
3928
3930
|
])
|
|
3929
3931
|
]),
|
|
3930
3932
|
_: 1
|
|
3931
3933
|
}, 16, ["disabled", "fileList", "class"]),
|
|
3932
3934
|
p.value ? (d(), S(te, {
|
|
3933
3935
|
key: 0,
|
|
3934
|
-
onClose:
|
|
3936
|
+
onClose: D[0] || (D[0] = (M) => p.value = !1),
|
|
3935
3937
|
teleported: "",
|
|
3936
3938
|
initialIndex: m.value,
|
|
3937
|
-
"url-list":
|
|
3938
|
-
}, null, 8, ["initialIndex", "url-list"])) :
|
|
3939
|
-
o.value.autoUpload ?
|
|
3940
|
-
Z(
|
|
3939
|
+
"url-list": $.value
|
|
3940
|
+
}, null, 8, ["initialIndex", "url-list"])) : F("", !0),
|
|
3941
|
+
o.value.autoUpload ? F("", !0) : (d(), I("div", Ki, [
|
|
3942
|
+
Z(R, {
|
|
3941
3943
|
style: { "margin-left": "10px" },
|
|
3942
3944
|
size: "small",
|
|
3943
3945
|
type: "success",
|
|
3944
3946
|
onClick: k,
|
|
3945
3947
|
disabled: o.value.disabled
|
|
3946
3948
|
}, {
|
|
3947
|
-
default: _(() => [...
|
|
3949
|
+
default: _(() => [...D[1] || (D[1] = [
|
|
3948
3950
|
pe(" 上传到服务器 ", -1)
|
|
3949
3951
|
])]),
|
|
3950
3952
|
_: 1
|
|
3951
3953
|
}, 8, ["disabled"])
|
|
3952
3954
|
]))
|
|
3953
|
-
], 2)) :
|
|
3955
|
+
], 2)) : F("", !0);
|
|
3954
3956
|
};
|
|
3955
3957
|
}
|
|
3956
3958
|
});
|
|
@@ -4096,31 +4098,31 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4096
4098
|
emits: ["request", "reset", "cancel"],
|
|
4097
4099
|
setup(e, { expose: t, emit: l }) {
|
|
4098
4100
|
var K;
|
|
4099
|
-
const n = ce("lodash"), s = ce("defaultConf"), r = l, a = e, o =
|
|
4101
|
+
const n = ce("lodash"), s = ce("defaultConf"), r = l, a = e, o = f(), g = f(!1), u = fe(), i = f([]), c = f(!1);
|
|
4100
4102
|
let j = null;
|
|
4101
|
-
|
|
4102
|
-
const p = le(() => a.size || s.size), m = [...La, ...((K = s.form) == null ? void 0 : K.comList) || []],
|
|
4103
|
-
var
|
|
4103
|
+
f([]);
|
|
4104
|
+
const p = le(() => a.size || s.size), m = [...La, ...((K = s.form) == null ? void 0 : K.comList) || []], $ = le(() => ({ display: "flex", flexDirection: a.isTable ? "row" : "column" })), B = le(() => {
|
|
4105
|
+
var M;
|
|
4104
4106
|
return {
|
|
4105
4107
|
...a.formAttrs,
|
|
4106
4108
|
_labelWidth: a.isTable ? "auto" : a.labelWidth === "auto" ? a.isDialog ? "100px" : "120px" : parseInt(a.labelWidth + "") + "px",
|
|
4107
4109
|
// validateOnRuleChange: false,
|
|
4108
4110
|
disabled: a.disabled || c.value,
|
|
4109
4111
|
rules: b,
|
|
4110
|
-
labelPosition: hn() ? "top" : ((
|
|
4112
|
+
labelPosition: hn() ? "top" : ((M = a.formAttrs) == null ? void 0 : M.labelPosition) || "right",
|
|
4111
4113
|
style: {
|
|
4112
4114
|
width: a.maxWidth || (a.isTable ? "100%" : a.isDialog ? "80%" : "1000px"),
|
|
4113
4115
|
paddingRight: a.isTable ? "0" : "20px"
|
|
4114
4116
|
}
|
|
4115
4117
|
};
|
|
4116
4118
|
}), b = le(() => {
|
|
4117
|
-
const
|
|
4119
|
+
const M = a.rules ? n.cloneDeep(a.rules) : {};
|
|
4118
4120
|
return a.formDesc && Object.keys(a.formDesc).map((z) => {
|
|
4119
|
-
|
|
4121
|
+
M[z] || (M[z] = []);
|
|
4120
4122
|
let V = !1;
|
|
4121
|
-
if (a.formDesc && a.formDesc[z] && (V = a.formDesc && a.formDesc[z].required || !1), typeof V == "function" && (V = V(n.cloneDeep(a.modelValue))), a.formDesc && (a.formDesc[z].rules && (typeof a.formDesc[z].rules == "string" ?
|
|
4122
|
-
|
|
4123
|
-
}),
|
|
4123
|
+
if (a.formDesc && a.formDesc[z] && (V = a.formDesc && a.formDesc[z].required || !1), typeof V == "function" && (V = V(n.cloneDeep(a.modelValue))), a.formDesc && (a.formDesc[z].rules && (typeof a.formDesc[z].rules == "string" ? M[z].push(...Wl[a.formDesc[z].rules]) : Zo(a.formDesc[z].rules).map((h) => {
|
|
4124
|
+
M[z].push(h);
|
|
4125
|
+
}), M[z].find((h) => h.required) && typeof a.formDesc[z].required != "function" && (a.formDesc[z].required = !0)), V && !M[z].find((h) => h.required))) {
|
|
4124
4126
|
let h = "notAllBlank";
|
|
4125
4127
|
switch (a.formDesc[z].type) {
|
|
4126
4128
|
case "upload":
|
|
@@ -4143,16 +4145,16 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4143
4145
|
h = "cascader";
|
|
4144
4146
|
break;
|
|
4145
4147
|
}
|
|
4146
|
-
|
|
4148
|
+
M[z].push(...Wl[h]);
|
|
4147
4149
|
}
|
|
4148
4150
|
}), be(() => {
|
|
4149
4151
|
setTimeout(() => {
|
|
4150
|
-
|
|
4152
|
+
D();
|
|
4151
4153
|
}, 50);
|
|
4152
|
-
}),
|
|
4154
|
+
}), M;
|
|
4153
4155
|
}), Q = le(() => {
|
|
4154
4156
|
var z;
|
|
4155
|
-
const
|
|
4157
|
+
const M = [];
|
|
4156
4158
|
if (a.formDesc) {
|
|
4157
4159
|
w();
|
|
4158
4160
|
const V = n.cloneDeep(a.formDesc);
|
|
@@ -4167,16 +4169,16 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4167
4169
|
let ne = [], ge = 0;
|
|
4168
4170
|
h.map((ve) => {
|
|
4169
4171
|
if (ve._vif && (ne.push(ve), ge++, ve.colspan && (ge += ve.colspan - 1), ge >= a.column)) {
|
|
4170
|
-
|
|
4172
|
+
M.push(ne), ne = [], ge = 0;
|
|
4171
4173
|
return;
|
|
4172
4174
|
}
|
|
4173
|
-
}), ne.length > 0 &&
|
|
4175
|
+
}), ne.length > 0 && M.push(ne);
|
|
4174
4176
|
}
|
|
4175
|
-
if (
|
|
4176
|
-
for (let V =
|
|
4177
|
-
const h =
|
|
4177
|
+
if (M != null && M.length && a.disabledTab && (!a.isGroupForm || a.isGroupForm && a.groupFormDesc))
|
|
4178
|
+
for (let V = M[M.length - 1].length - 1; V >= 0; V--) {
|
|
4179
|
+
const h = M[M.length - 1][V].type || "";
|
|
4178
4180
|
if (["image", "link", "rate", "status", "tag", "text"].indexOf(h) < 0) {
|
|
4179
|
-
const ne =
|
|
4181
|
+
const ne = M[M.length - 1][V].on || {}, ge = ne.focus, ve = ne.blur;
|
|
4180
4182
|
ne.focus = function() {
|
|
4181
4183
|
document.onkeydown = (Be) => {
|
|
4182
4184
|
if (Be.keyCode == 9)
|
|
@@ -4185,25 +4187,25 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4185
4187
|
}, ne.blur = function() {
|
|
4186
4188
|
document.onkeydown = function() {
|
|
4187
4189
|
}, ve && ve();
|
|
4188
|
-
},
|
|
4190
|
+
}, M[M.length - 1][V].on = ne;
|
|
4189
4191
|
break;
|
|
4190
4192
|
}
|
|
4191
4193
|
}
|
|
4192
|
-
return
|
|
4194
|
+
return M;
|
|
4193
4195
|
}), w = n.debounce(
|
|
4194
4196
|
() => {
|
|
4195
|
-
a.formDesc && Object.keys(a.formDesc).forEach((
|
|
4197
|
+
a.formDesc && Object.keys(a.formDesc).forEach((M) => {
|
|
4196
4198
|
var z, V;
|
|
4197
4199
|
if (a.formDesc) {
|
|
4198
|
-
const h = a.formDesc[
|
|
4200
|
+
const h = a.formDesc[M];
|
|
4199
4201
|
if (h && h.type) {
|
|
4200
|
-
h._type = m.includes(h.type.toLowerCase()) ? "el-plus-form-" + h.type : h.type, h._vif = G(h, "vif",
|
|
4202
|
+
h._type = m.includes(h.type.toLowerCase()) ? "el-plus-form-" + h.type : h.type, h._vif = G(h, "vif", M, !h.isBlank || !0), h._disabled = G(h, "disabled", M, a.disabled ?? !1);
|
|
4201
4203
|
const ne = {};
|
|
4202
|
-
if (h._attrs = Object.assign({}, G(h, "attrs",
|
|
4204
|
+
if (h._attrs = Object.assign({}, G(h, "attrs", M), ne), h._label = G(h, "label", M), h._tip = G(h, "tip", M), h._required = G(h, "required", M, !1), !h._tip && !h.noTip && h.type === "upload") {
|
|
4203
4205
|
const ge = h.maxSize || (!h.upType || h.upType === "image" ? (z = s.upload) == null ? void 0 : z.maxISize : (V = s.upload) == null ? void 0 : V.maxFSize) || 1048576;
|
|
4204
4206
|
h._tip = `最多上传${h.multiple ? h.limit || 20 : 1}${h.upType === "file" ? "个文件" : "张图片"},且单个文件大小不能超过 ${(ge / 1024 / 1024).toFixed(2)} M`;
|
|
4205
4207
|
}
|
|
4206
|
-
h.default !== void 0 && h.default !== null && a.modelValue[
|
|
4208
|
+
h.default !== void 0 && h.default !== null && a.modelValue[M] === void 0 && (a.modelValue[M] = h.default), h.auth && (s.auth ? h._vif = s.auth(h.auth) : console.warn("使用auth属性,请在crud注册时传入auth校验方法~"));
|
|
4207
4209
|
} else
|
|
4208
4210
|
h && h.isBlank && (h._vif = G(h, "vif", "", !0));
|
|
4209
4211
|
}
|
|
@@ -4211,9 +4213,9 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4211
4213
|
},
|
|
4212
4214
|
100,
|
|
4213
4215
|
{ leading: !0, trailing: !1 }
|
|
4214
|
-
),
|
|
4215
|
-
let
|
|
4216
|
-
return a.showBtns && (a.showCancel &&
|
|
4216
|
+
), v = le(() => {
|
|
4217
|
+
let M = [];
|
|
4218
|
+
return a.showBtns && (a.showCancel && M.push({
|
|
4217
4219
|
field: "_reset_btn",
|
|
4218
4220
|
desc: {
|
|
4219
4221
|
label: a.cancelBtnText || "取消",
|
|
@@ -4221,16 +4223,16 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4221
4223
|
disabled: c.value,
|
|
4222
4224
|
on: { click: () => r("cancel") }
|
|
4223
4225
|
}
|
|
4224
|
-
}), a.showReset &&
|
|
4226
|
+
}), a.showReset && M.push({
|
|
4225
4227
|
field: "_reset_btn",
|
|
4226
4228
|
desc: {
|
|
4227
4229
|
label: a.resetBtnText || "重置",
|
|
4228
4230
|
confirm: `确定要${a.resetBtnText || "重置"}?`,
|
|
4229
4231
|
size: p.value,
|
|
4230
4232
|
disabled: c.value,
|
|
4231
|
-
on: { click:
|
|
4233
|
+
on: { click: N }
|
|
4232
4234
|
}
|
|
4233
|
-
}), a.showSubmit &&
|
|
4235
|
+
}), a.showSubmit && M.push({
|
|
4234
4236
|
field: "_reset_btn",
|
|
4235
4237
|
desc: {
|
|
4236
4238
|
label: a.submitBtnText || "提交",
|
|
@@ -4240,49 +4242,49 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4240
4242
|
loading: a.isLoading || c.value,
|
|
4241
4243
|
on: { click: x }
|
|
4242
4244
|
}
|
|
4243
|
-
})),
|
|
4244
|
-
}), G = (
|
|
4245
|
+
})), M;
|
|
4246
|
+
}), G = (M, z, V, h = null) => typeof M[z] == "function" ? (g.value = !0, M[z](a.modelValue, a.modelValue[V])) : typeof M[z] == "boolean" ? M[z] ?? !1 : typeof M[z] == "string" ? M[z] ?? "" : M[z] ?? h, P = () => new Promise((M, z) => {
|
|
4245
4247
|
b.value ? o.value.validate((V, h) => {
|
|
4246
|
-
V ?
|
|
4247
|
-
}) :
|
|
4248
|
-
}), T = (
|
|
4249
|
-
|
|
4250
|
-
}, L = (
|
|
4248
|
+
V ? M() : z(h);
|
|
4249
|
+
}) : M();
|
|
4250
|
+
}), T = (M) => {
|
|
4251
|
+
M && (i.value.some((z) => z.field === M.field) || i.value.push(M));
|
|
4252
|
+
}, L = (M, z, V) => {
|
|
4251
4253
|
const h = {};
|
|
4252
|
-
if (!
|
|
4254
|
+
if (!M)
|
|
4253
4255
|
return { [z]: V };
|
|
4254
|
-
if (!
|
|
4256
|
+
if (!M._vif || V === void 0 || V === null)
|
|
4255
4257
|
return h;
|
|
4256
|
-
if (
|
|
4257
|
-
if (V === null && (V = []),
|
|
4258
|
+
if (M.type === "category")
|
|
4259
|
+
if (V === null && (V = []), M.checkStrictly === !0)
|
|
4258
4260
|
h.categoryId = V[2] ?? V[1] ?? V[0] ?? "";
|
|
4259
4261
|
else
|
|
4260
4262
|
for (let ne = 0; ne < 3; ne++)
|
|
4261
4263
|
h["categoryId" + (ne + 1)] = V[ne] ?? "";
|
|
4262
|
-
else if (
|
|
4264
|
+
else if (M.type === "area") {
|
|
4263
4265
|
V === null && (V = [null, null, null, null]);
|
|
4264
4266
|
const [ne, ge, ve, Be] = V;
|
|
4265
|
-
|
|
4266
|
-
} else if (
|
|
4267
|
+
M.checkStrictly ? h[z] = Be || ve || ge || ne || null : (h[M.propPrefix ? M.propPrefix + "ProvinceId" : "provinceId"] = ne || -1, h[M.propPrefix ? M.propPrefix + "CityId" : "cityId"] = ge || -1, h[M.propPrefix ? M.propPrefix + "ZoneId" : "zoneId"] = ve || -1, h[M.propPrefix ? M.propPrefix + "StreetId" : "streetId"] = Be || -1);
|
|
4268
|
+
} else if (M.type === "daterange") {
|
|
4267
4269
|
if (V && V.length === 2) {
|
|
4268
|
-
const ne =
|
|
4269
|
-
h[ne] = new Date(new Date(V[0]).setHours(0, 0, 0, 0)), h[ge] = new Date(new Date(V[1]).setHours(0, 0, 0, 0) + 24 * 60 * 60 * 1e3 - 1), h[ne] = ht(h[ne],
|
|
4270
|
+
const ne = M.startTimeKey ? M.startTimeKey : M.propPrefix ? M.propPrefix + "StartTime" : "startTime", ge = M.endTimeKey ? M.endTimeKey : M.propPrefix ? M.propPrefix + "EndTime" : "endTime";
|
|
4271
|
+
h[ne] = new Date(new Date(V[0]).setHours(0, 0, 0, 0)), h[ge] = new Date(new Date(V[1]).setHours(0, 0, 0, 0) + 24 * 60 * 60 * 1e3 - 1), h[ne] = ht(h[ne], M.valueFormat), h[ge] = ht(h[ge], M.valueFormat);
|
|
4270
4272
|
}
|
|
4271
|
-
} else if (
|
|
4273
|
+
} else if (M.type === "datetimerange") {
|
|
4272
4274
|
if (V && V.length === 2) {
|
|
4273
|
-
const ne =
|
|
4274
|
-
h[ne] = ht(V[0],
|
|
4275
|
+
const ne = M.startTimeKey ? M.startTimeKey : M.propPrefix ? M.propPrefix + "StartTime" : "startTime", ge = M.endTimeKey ? M.endTimeKey : M.propPrefix ? M.propPrefix + "EndTime" : "endTime";
|
|
4276
|
+
h[ne] = ht(V[0], M.valueFormat), h[ge] = ht(V[1], M.valueFormat);
|
|
4275
4277
|
}
|
|
4276
|
-
} else if (
|
|
4278
|
+
} else if (M.type === "timerange") {
|
|
4277
4279
|
if (V && V.length === 2) {
|
|
4278
|
-
const ne =
|
|
4279
|
-
h[ne] = ht(V[0],
|
|
4280
|
+
const ne = M.startTimeKey ? M.startTimeKey : M.propPrefix ? M.propPrefix + "StartTime" : "startTime", ge = M.endTimeKey ? M.endTimeKey : M.propPrefix ? M.propPrefix + "EndTime" : "endTime";
|
|
4281
|
+
h[ne] = ht(V[0], M.valueFormat || "HH:mm:ss"), h[ge] = ht(V[1], M.valueFormat || "HH:mm:ss");
|
|
4280
4282
|
}
|
|
4281
|
-
} else if (
|
|
4283
|
+
} else if (M.type === "linkuser") {
|
|
4282
4284
|
const [ne, ge, ve, Be] = V;
|
|
4283
|
-
h[
|
|
4285
|
+
h[M.propPrefix ? M.propPrefix + "UserIds" : "userIds"] = ne, h[M.propPrefix ? M.propPrefix + "DeptIds" : "deptIds"] = ge, h[M.propPrefix ? M.propPrefix + "UserNames" : "userNames"] = ve, h[M.propPrefix ? M.propPrefix + "DeptNames" : "deptNames"] = Be;
|
|
4284
4286
|
} else {
|
|
4285
|
-
switch (
|
|
4287
|
+
switch (M.type) {
|
|
4286
4288
|
case "checkbox":
|
|
4287
4289
|
Array.isArray(V) && (V = V.join(","));
|
|
4288
4290
|
break;
|
|
@@ -4291,48 +4293,48 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4291
4293
|
}
|
|
4292
4294
|
return h;
|
|
4293
4295
|
}, y = () => {
|
|
4294
|
-
const
|
|
4296
|
+
const M = {};
|
|
4295
4297
|
return (a.groupFormDesc || a.formDesc) && Object.keys(a.modelValue).map((z) => {
|
|
4296
|
-
["provinceId", "cityId", "zoneId", "streetId", "startTime", "endTime"].indexOf(z) >= 0 || (a.groupFormDesc || a.formDesc) && Object.assign(
|
|
4297
|
-
}),
|
|
4298
|
+
["provinceId", "cityId", "zoneId", "streetId", "startTime", "endTime"].indexOf(z) >= 0 || (a.groupFormDesc || a.formDesc) && Object.assign(M, L((a.groupFormDesc || a.formDesc || {})[z], z, a.modelValue[z]));
|
|
4299
|
+
}), M;
|
|
4298
4300
|
}, k = () => {
|
|
4299
|
-
i.value.map((
|
|
4300
|
-
|
|
4301
|
+
i.value.map((M) => {
|
|
4302
|
+
M.CID && M.changeValidImg();
|
|
4301
4303
|
});
|
|
4302
4304
|
}, x = async () => {
|
|
4303
|
-
let
|
|
4305
|
+
let M = y();
|
|
4304
4306
|
try {
|
|
4305
4307
|
if (u.beforeValidate) {
|
|
4306
|
-
const z = u.beforeValidate(
|
|
4308
|
+
const z = u.beforeValidate(M);
|
|
4307
4309
|
if (!(et(z) ? await z : z))
|
|
4308
4310
|
return;
|
|
4309
4311
|
}
|
|
4310
4312
|
a.groupFormDesc || await P();
|
|
4311
|
-
for (const z in
|
|
4313
|
+
for (const z in M) {
|
|
4312
4314
|
if (z.indexOf("_") === 0) {
|
|
4313
|
-
delete
|
|
4315
|
+
delete M[z];
|
|
4314
4316
|
continue;
|
|
4315
4317
|
}
|
|
4316
4318
|
if (a.formDesc) {
|
|
4317
4319
|
const V = a.formDesc[z];
|
|
4318
|
-
V && V.valueFormat && typeof V.valueFormat == "function" && (
|
|
4320
|
+
V && V.valueFormat && typeof V.valueFormat == "function" && (M[z] = V.valueFormat(M[z], M));
|
|
4319
4321
|
}
|
|
4320
4322
|
}
|
|
4321
4323
|
if (u.beforeRequest) {
|
|
4322
|
-
const z = u.beforeRequest(
|
|
4324
|
+
const z = u.beforeRequest(M), V = et(z) ? await z : z;
|
|
4323
4325
|
if (V === !1)
|
|
4324
4326
|
return;
|
|
4325
|
-
typeof V == "object" && (
|
|
4327
|
+
typeof V == "object" && (M = V);
|
|
4326
4328
|
}
|
|
4327
4329
|
if (c.value)
|
|
4328
4330
|
return;
|
|
4329
4331
|
c.value = !0;
|
|
4330
4332
|
try {
|
|
4331
4333
|
let z = {};
|
|
4332
|
-
a.requestFn && (a.updateFn &&
|
|
4334
|
+
a.requestFn && (a.updateFn && M && M[a.idKey] ? z = await a.updateFn(M) : z = await a.requestFn(M)), be(() => {
|
|
4333
4335
|
u.success && typeof u.success == "function" && u.success({
|
|
4334
4336
|
response: z,
|
|
4335
|
-
formData:
|
|
4337
|
+
formData: M,
|
|
4336
4338
|
callBack: () => c.value = !1
|
|
4337
4339
|
});
|
|
4338
4340
|
});
|
|
@@ -4356,68 +4358,68 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4356
4358
|
} catch (z) {
|
|
4357
4359
|
console.log("error: ", z);
|
|
4358
4360
|
}
|
|
4359
|
-
},
|
|
4360
|
-
a.modelValue && Object.keys(a.modelValue).map((
|
|
4361
|
-
j && j[
|
|
4361
|
+
}, N = () => {
|
|
4362
|
+
a.modelValue && Object.keys(a.modelValue).map((M) => {
|
|
4363
|
+
j && j[M] !== void 0 && j[M] !== null ? a.modelValue[M] = j[M] : a.groupFormDesc ? a.modelValue[M] = a.groupFormDesc && a.groupFormDesc[M] && a.groupFormDesc[M].default || null : a.modelValue[M] = a.formDesc && a.formDesc[M] && a.formDesc[M].default || null;
|
|
4362
4364
|
}), setTimeout(() => {
|
|
4363
|
-
|
|
4365
|
+
D();
|
|
4364
4366
|
}, 100), r("reset");
|
|
4365
|
-
},
|
|
4366
|
-
var
|
|
4367
|
-
(
|
|
4367
|
+
}, D = () => {
|
|
4368
|
+
var M;
|
|
4369
|
+
(M = o.value) == null || M.clearValidate();
|
|
4368
4370
|
}, Y = () => {
|
|
4369
|
-
var
|
|
4371
|
+
var M;
|
|
4370
4372
|
a.modelValue && (Object.keys(a.modelValue).map((z) => {
|
|
4371
4373
|
a.formDesc && a.formDesc[z] ? a.modelValue[z] = a.formDesc[z].default ?? null : a.modelValue[z] = null;
|
|
4372
|
-
}), (
|
|
4374
|
+
}), (M = i.value) == null || M.map((z) => {
|
|
4373
4375
|
z != null && z.clear && typeof (z == null ? void 0 : z.clear) == "function" && z.clear();
|
|
4374
4376
|
})), be(() => {
|
|
4375
4377
|
setTimeout(() => {
|
|
4376
|
-
|
|
4378
|
+
D();
|
|
4377
4379
|
}, 50);
|
|
4378
4380
|
});
|
|
4379
4381
|
};
|
|
4380
|
-
function
|
|
4381
|
-
var
|
|
4382
|
-
(
|
|
4382
|
+
function U() {
|
|
4383
|
+
var M;
|
|
4384
|
+
(M = i.value) == null || M.map((z) => {
|
|
4383
4385
|
z != null && z.init && typeof (z == null ? void 0 : z.init) == "function" && z.init();
|
|
4384
4386
|
});
|
|
4385
4387
|
}
|
|
4386
|
-
function te(
|
|
4388
|
+
function te(M) {
|
|
4387
4389
|
var z;
|
|
4388
|
-
(z = o.value) == null || z.validateField(
|
|
4390
|
+
(z = o.value) == null || z.validateField(M, (V) => {
|
|
4389
4391
|
});
|
|
4390
4392
|
}
|
|
4391
|
-
function
|
|
4393
|
+
function R() {
|
|
4392
4394
|
w(), be(() => {
|
|
4393
|
-
|
|
4395
|
+
D();
|
|
4394
4396
|
});
|
|
4395
4397
|
}
|
|
4396
4398
|
return re(
|
|
4397
4399
|
() => a.formDesc,
|
|
4398
|
-
(
|
|
4399
|
-
|
|
4400
|
+
(M) => {
|
|
4401
|
+
M && w();
|
|
4400
4402
|
}
|
|
4401
4403
|
), re(
|
|
4402
4404
|
() => a.modelValue,
|
|
4403
|
-
(
|
|
4404
|
-
(!j ||
|
|
4405
|
+
(M) => {
|
|
4406
|
+
(!j || g.value && M) && (j || (j = n.cloneDeep(M)), w());
|
|
4405
4407
|
},
|
|
4406
4408
|
{ deep: !0 }
|
|
4407
4409
|
), it(async () => {
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
+
g.value || w(), be(() => {
|
|
4411
|
+
D();
|
|
4410
4412
|
});
|
|
4411
|
-
}), t({ fid: a.fid, formRef: o, submit: x, getData: y, validate: P, reset:
|
|
4412
|
-
var
|
|
4413
|
-
return ((
|
|
4414
|
-
}) }), (
|
|
4413
|
+
}), t({ fid: a.fid, formRef: o, submit: x, getData: y, validate: P, reset: N, clearValid: D, clear: Y, changeValidImg: k, refresh: R, init: U, totalRows: le(() => {
|
|
4414
|
+
var M;
|
|
4415
|
+
return ((M = Q.value) == null ? void 0 : M.length) || 0;
|
|
4416
|
+
}) }), (M, z) => {
|
|
4415
4417
|
const V = O("el-form-item"), h = O("el-col"), ne = O("el-row"), ge = O("el-form");
|
|
4416
4418
|
return d(), I("div", {
|
|
4417
|
-
style: Pe(
|
|
4419
|
+
style: Pe($.value),
|
|
4418
4420
|
class: "crud-form-panel"
|
|
4419
4421
|
}, [
|
|
4420
|
-
De(
|
|
4422
|
+
De(M.$slots, "top", {
|
|
4421
4423
|
formData: a.modelValue
|
|
4422
4424
|
}),
|
|
4423
4425
|
ae("div", {
|
|
@@ -4480,7 +4482,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4480
4482
|
class: dt(["el-plus-form-tip", { "is-inline": A.tipInline }]),
|
|
4481
4483
|
style: Pe({ ...A.tipStyle, width: A.tipInline ? "" : "100%" }),
|
|
4482
4484
|
innerHTML: A._tip
|
|
4483
|
-
}, null, 14, hr)) :
|
|
4485
|
+
}, null, 14, hr)) : F("", !0)
|
|
4484
4486
|
]),
|
|
4485
4487
|
_: 2
|
|
4486
4488
|
}, [
|
|
@@ -4498,7 +4500,7 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4498
4500
|
key: "0"
|
|
4499
4501
|
} : void 0
|
|
4500
4502
|
]), 1032, ["prop", "style"])
|
|
4501
|
-
], 4)) :
|
|
4503
|
+
], 4)) : F("", !0)
|
|
4502
4504
|
];
|
|
4503
4505
|
}),
|
|
4504
4506
|
_: 2
|
|
@@ -4507,33 +4509,33 @@ const Tr = { class: "required-dot" }, hr = ["innerHTML"], xr = {
|
|
|
4507
4509
|
_: 2
|
|
4508
4510
|
}, 1032, ["style"])), [
|
|
4509
4511
|
[Yn, e.maxShowRowIndex < 0 || C < e.maxShowRowIndex]
|
|
4510
|
-
])), 128)) :
|
|
4511
|
-
De(
|
|
4512
|
+
])), 128)) : F("", !0),
|
|
4513
|
+
De(M.$slots, "row")
|
|
4512
4514
|
];
|
|
4513
4515
|
}),
|
|
4514
4516
|
_: 3
|
|
4515
4517
|
}, 16, ["model"])
|
|
4516
4518
|
], 4),
|
|
4517
|
-
De(
|
|
4519
|
+
De(M.$slots, "default"),
|
|
4518
4520
|
Z(ge, null, {
|
|
4519
4521
|
default: _(() => [
|
|
4520
|
-
De(
|
|
4522
|
+
De(M.$slots, "form-btn", {
|
|
4521
4523
|
data: a.modelValue
|
|
4522
4524
|
}, () => [
|
|
4523
|
-
|
|
4524
|
-
(d(!0), I(oe, null, Me(
|
|
4525
|
+
v.value && v.value.length > 0 ? (d(), I("div", xr, [
|
|
4526
|
+
(d(!0), I(oe, null, Me(v.value, (ve, Be) => (d(), S(ct, ee({
|
|
4525
4527
|
key: Be,
|
|
4526
4528
|
ref_for: !0
|
|
4527
4529
|
}, ve), null, 16))), 128))
|
|
4528
|
-
])) :
|
|
4530
|
+
])) : F("", !0)
|
|
4529
4531
|
]),
|
|
4530
|
-
De(
|
|
4532
|
+
De(M.$slots, "bottom", {
|
|
4531
4533
|
formData: a.modelValue
|
|
4532
4534
|
})
|
|
4533
4535
|
]),
|
|
4534
4536
|
_: 3
|
|
4535
4537
|
}),
|
|
4536
|
-
De(
|
|
4538
|
+
De(M.$slots, "form-footer", {
|
|
4537
4539
|
formData: a.modelValue
|
|
4538
4540
|
})
|
|
4539
4541
|
], 4);
|
|
@@ -4557,7 +4559,7 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4557
4559
|
},
|
|
4558
4560
|
emits: ["update:show", "update:modelValue", "before-validate", "before-request", "request-success", "request-error", "request-end", "request", "cancel"],
|
|
4559
4561
|
setup(e, { expose: t, emit: l }) {
|
|
4560
|
-
const n = ce("lodash"), s = l, r = e, a =
|
|
4562
|
+
const n = ce("lodash"), s = l, r = e, a = f([]), o = f([]), g = le({
|
|
4561
4563
|
get: () => r.modelValue,
|
|
4562
4564
|
set(w) {
|
|
4563
4565
|
s("update:modelValue", w);
|
|
@@ -4565,9 +4567,9 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4565
4567
|
}), u = le(() => {
|
|
4566
4568
|
const w = [];
|
|
4567
4569
|
a.value = [], o.value = [];
|
|
4568
|
-
const
|
|
4570
|
+
const v = (/* @__PURE__ */ new Date()).getTime();
|
|
4569
4571
|
r.formGroup.group.map((L, y) => {
|
|
4570
|
-
L.fid = L.fid || `${
|
|
4572
|
+
L.fid = L.fid || `${v + y}`, L._vif = i.value(L.vif);
|
|
4571
4573
|
});
|
|
4572
4574
|
const G = r.formGroup.group.filter((L, y) => (L._vif && o.value.push(y), L._vif)), P = n.cloneDeep(r.formGroup), T = r.formGroup.column || 1;
|
|
4573
4575
|
return delete P.group, delete P.column, P.beforeValidate = async (L) => {
|
|
@@ -4587,12 +4589,12 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4587
4589
|
}), w;
|
|
4588
4590
|
}), i = le(() => (w) => typeof w == "function" ? w(r.modelValue) : typeof w == "boolean" ? w : !0);
|
|
4589
4591
|
function c(w) {
|
|
4590
|
-
w && (a.value.find((
|
|
4592
|
+
w && (a.value.find((v) => v.fid === w.fid) || a.value.push(w));
|
|
4591
4593
|
}
|
|
4592
4594
|
function j(w) {
|
|
4593
4595
|
setTimeout(() => {
|
|
4594
|
-
a.value.map((
|
|
4595
|
-
|
|
4596
|
+
a.value.map((v) => {
|
|
4597
|
+
v.fid !== w && v.clearValid();
|
|
4596
4598
|
});
|
|
4597
4599
|
}, 100);
|
|
4598
4600
|
}
|
|
@@ -4602,7 +4604,7 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4602
4604
|
async function m() {
|
|
4603
4605
|
return await Promise.all(a.value.map((w) => w.clearValid()));
|
|
4604
4606
|
}
|
|
4605
|
-
async function
|
|
4607
|
+
async function $() {
|
|
4606
4608
|
return await Promise.all(a.value.map((w) => w.clear()));
|
|
4607
4609
|
}
|
|
4608
4610
|
async function B() {
|
|
@@ -4613,23 +4615,23 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4613
4615
|
}
|
|
4614
4616
|
function Q() {
|
|
4615
4617
|
const w = {};
|
|
4616
|
-
return a.value.map((
|
|
4617
|
-
Object.assign(w,
|
|
4618
|
+
return a.value.map((v) => {
|
|
4619
|
+
Object.assign(w, v.getData());
|
|
4618
4620
|
}), w;
|
|
4619
4621
|
}
|
|
4620
|
-
return t({ validate: p, getData: Q, clearValid: m, clear:
|
|
4622
|
+
return t({ validate: p, getData: Q, clearValid: m, clear: $, init: B }), (w, v) => (d(), I("div", Lr, [
|
|
4621
4623
|
(d(!0), I(oe, null, Me(u.value, (G, P) => {
|
|
4622
4624
|
var T;
|
|
4623
4625
|
return d(), I(oe, {
|
|
4624
4626
|
key: P + (((T = G.formProps) == null ? void 0 : T.fid) || "")
|
|
4625
4627
|
}, [
|
|
4626
|
-
Re()["top" + o.value[P]] ? De(w.$slots, "top" + o.value[P], { key: 0 }) :
|
|
4628
|
+
Re()["top" + o.value[P]] ? De(w.$slots, "top" + o.value[P], { key: 0 }) : F("", !0),
|
|
4627
4629
|
De(w.$slots, "title" + o.value[P], {}, () => [
|
|
4628
|
-
G.title ? (d(), I("div", Cr, de(G.title), 1)) :
|
|
4630
|
+
G.title ? (d(), I("div", Cr, de(G.title), 1)) : F("", !0)
|
|
4629
4631
|
]),
|
|
4630
4632
|
Z(Tl, ee({
|
|
4631
|
-
modelValue:
|
|
4632
|
-
"onUpdate:modelValue":
|
|
4633
|
+
modelValue: g.value,
|
|
4634
|
+
"onUpdate:modelValue": v[0] || (v[0] = (L) => g.value = L)
|
|
4633
4635
|
}, { ref_for: !0 }, G.formProps, {
|
|
4634
4636
|
isGroupForm: "",
|
|
4635
4637
|
ref_for: !0,
|
|
@@ -4641,7 +4643,7 @@ const Lr = { class: "el-plus-form-group" }, Cr = {
|
|
|
4641
4643
|
onCancel: b
|
|
4642
4644
|
}), {
|
|
4643
4645
|
default: _(() => [
|
|
4644
|
-
Re()["default" + o.value[P]] ? De(w.$slots, "default" + o.value[P], { key: 0 }) :
|
|
4646
|
+
Re()["default" + o.value[P]] ? De(w.$slots, "default" + o.value[P], { key: 0 }) : F("", !0)
|
|
4645
4647
|
]),
|
|
4646
4648
|
_: 2
|
|
4647
4649
|
}, 1040, ["modelValue", "onReset"])
|
|
@@ -4683,7 +4685,7 @@ const Or = {
|
|
|
4683
4685
|
set(T) {
|
|
4684
4686
|
n("update:show", T);
|
|
4685
4687
|
}
|
|
4686
|
-
}), o =
|
|
4688
|
+
}), o = f(null), { width: g, top: u, modal: i, appendToBody: c, showClose: j, draggable: p, closeOnClickModal: m, destroyOnClose: $, ...B } = Object.assign({ width: "700px", draggable: !0, top: "15vh", closeOnClickModal: !1, showCancel: !0, destroyOnClose: !0 }, fe()), b = { width: g, top: u, modal: i, appendToBody: c, showClose: j, draggable: p, closeOnClickModal: m }, Q = le(() => {
|
|
4687
4689
|
if (!s.formGroup)
|
|
4688
4690
|
return {};
|
|
4689
4691
|
const T = s.formGroup.success;
|
|
@@ -4703,7 +4705,7 @@ const Or = {
|
|
|
4703
4705
|
T.callBack();
|
|
4704
4706
|
}, 200));
|
|
4705
4707
|
}
|
|
4706
|
-
function
|
|
4708
|
+
function v() {
|
|
4707
4709
|
var T;
|
|
4708
4710
|
(T = o.value) == null || T.clear();
|
|
4709
4711
|
}
|
|
@@ -4745,7 +4747,7 @@ const Or = {
|
|
|
4745
4747
|
"onUpdate:modelValue": L[4] || (L[4] = (k) => a.value = k),
|
|
4746
4748
|
title: s.title
|
|
4747
4749
|
}, b, {
|
|
4748
|
-
onClose:
|
|
4750
|
+
onClose: v,
|
|
4749
4751
|
onOpened: G
|
|
4750
4752
|
}), lt({
|
|
4751
4753
|
default: _(() => [
|
|
@@ -4810,49 +4812,49 @@ const Or = {
|
|
|
4810
4812
|
showText: { type: Boolean }
|
|
4811
4813
|
},
|
|
4812
4814
|
setup(e, { expose: t }) {
|
|
4813
|
-
const l = ce("defaultConf"), n = e, s =
|
|
4814
|
-
let a =
|
|
4815
|
-
const o =
|
|
4816
|
-
let u =
|
|
4815
|
+
const l = ce("defaultConf"), n = e, s = f(!1), r = f();
|
|
4816
|
+
let a = f([]);
|
|
4817
|
+
const o = f([]), g = f([]);
|
|
4818
|
+
let u = f([]);
|
|
4817
4819
|
const i = {
|
|
4818
4820
|
children: "children",
|
|
4819
4821
|
label: "label",
|
|
4820
4822
|
disabled: "disabledcheckd"
|
|
4821
4823
|
};
|
|
4822
4824
|
function c(Q, w) {
|
|
4823
|
-
return Q.map((
|
|
4825
|
+
return Q.map((v, G) => {
|
|
4824
4826
|
var P;
|
|
4825
|
-
|
|
4827
|
+
v.idx = w !== void 0 ? `${w}-${G}` : `${G}`, (v.required || v.noHide || v.disabled) && (v.disabledcheckd = !0, u.value.splice(u.value.indexOf(v.idx), 1)), v.children && v.children.every((T) => T.disabled) ? v.disabled = !0 : v.children && v.disabled && v.children.map((T) => T.disabled = !0), ((P = v.children) == null ? void 0 : P.length) > 0 && c(v.children, `${v.idx}`), v.children || o.value.push(v.idx);
|
|
4826
4828
|
}), Q;
|
|
4827
4829
|
}
|
|
4828
4830
|
function j() {
|
|
4829
4831
|
s.value = !0;
|
|
4830
4832
|
}
|
|
4831
4833
|
function p(Q, w) {
|
|
4832
|
-
w.checkedAllKeys = Array.from(/* @__PURE__ */ new Set([...w.checkedKeys, ...w.halfCheckedKeys])), u.value = o.value.filter((
|
|
4834
|
+
w.checkedAllKeys = Array.from(/* @__PURE__ */ new Set([...w.checkedKeys, ...w.halfCheckedKeys])), u.value = o.value.filter((v) => w.checkedAllKeys.indexOf(v) < 0);
|
|
4833
4835
|
}
|
|
4834
4836
|
function m(Q) {
|
|
4835
4837
|
for (let w = 0; w < Q.length; w++)
|
|
4836
4838
|
Q[w].children && m(Q[w].children), u.value.indexOf(Q[w].idx) < 0 ? Q[w].scShow = !0 : Q[w].scShow = !1;
|
|
4837
4839
|
}
|
|
4838
|
-
function
|
|
4840
|
+
function $() {
|
|
4839
4841
|
if (o.value.length === u.value.length)
|
|
4840
4842
|
return Xe.warning("请至少选择一列!"), !1;
|
|
4841
4843
|
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;
|
|
4842
4844
|
}
|
|
4843
4845
|
function B() {
|
|
4844
4846
|
const Q = localStorage.getItem(l.storagePrefix + "hideColumnsList_" + n.tbName);
|
|
4845
|
-
Q != null && Q.length > 0 && (u.value = Q.split("__")), a.value = c(n.column), m(n.column),
|
|
4847
|
+
Q != null && Q.length > 0 && (u.value = Q.split("__")), a.value = c(n.column), m(n.column), g.value = o.value.filter((w) => u.value.indexOf(w) < 0);
|
|
4846
4848
|
}
|
|
4847
4849
|
function b() {
|
|
4848
|
-
r.value.setCheckedKeys(
|
|
4850
|
+
r.value.setCheckedKeys(g.value), s.value = !1;
|
|
4849
4851
|
}
|
|
4850
4852
|
return it(() => {
|
|
4851
4853
|
n.tbName && B();
|
|
4852
4854
|
}), t({ initCol: B }), (Q, w) => {
|
|
4853
|
-
const
|
|
4855
|
+
const v = O("el-button"), G = O("el-tree"), P = O("el-dialog");
|
|
4854
4856
|
return d(), I("div", kr, [
|
|
4855
|
-
e.showText ? (d(), S(
|
|
4857
|
+
e.showText ? (d(), S(v, {
|
|
4856
4858
|
key: 0,
|
|
4857
4859
|
type: "primary",
|
|
4858
4860
|
onClick: j,
|
|
@@ -4863,7 +4865,7 @@ const Or = {
|
|
|
4863
4865
|
pe("编辑显示列", -1)
|
|
4864
4866
|
])]),
|
|
4865
4867
|
_: 1
|
|
4866
|
-
}, 8, ["size"])) : (d(), S(
|
|
4868
|
+
}, 8, ["size"])) : (d(), S(v, {
|
|
4867
4869
|
key: 1,
|
|
4868
4870
|
type: "primary",
|
|
4869
4871
|
icon: je(Co),
|
|
@@ -4888,14 +4890,14 @@ const Or = {
|
|
|
4888
4890
|
"show-checkbox": "",
|
|
4889
4891
|
"node-key": "idx",
|
|
4890
4892
|
"default-expand-all": !0,
|
|
4891
|
-
"default-checked-keys":
|
|
4893
|
+
"default-checked-keys": g.value,
|
|
4892
4894
|
props: i,
|
|
4893
4895
|
onCheck: p
|
|
4894
4896
|
}, null, 8, ["data", "default-checked-keys"])
|
|
4895
4897
|
]),
|
|
4896
4898
|
footer: _(() => [
|
|
4897
4899
|
ae("div", Br, [
|
|
4898
|
-
Z(
|
|
4900
|
+
Z(v, {
|
|
4899
4901
|
size: e.size,
|
|
4900
4902
|
onClick: b
|
|
4901
4903
|
}, {
|
|
@@ -4904,10 +4906,10 @@ const Or = {
|
|
|
4904
4906
|
])]),
|
|
4905
4907
|
_: 1
|
|
4906
4908
|
}, 8, ["size"]),
|
|
4907
|
-
Z(
|
|
4909
|
+
Z(v, {
|
|
4908
4910
|
size: e.size,
|
|
4909
4911
|
type: "primary",
|
|
4910
|
-
onClick:
|
|
4912
|
+
onClick: $
|
|
4911
4913
|
}, {
|
|
4912
4914
|
default: _(() => [...w[3] || (w[3] = [
|
|
4913
4915
|
pe(" 确 定 ", -1)
|
|
@@ -4949,7 +4951,7 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
4949
4951
|
},
|
|
4950
4952
|
emits: ["query", "reset", "layoutChange"],
|
|
4951
4953
|
setup(e, { expose: t, emit: l }) {
|
|
4952
|
-
const n = ce("defaultConf"), s = l, r = e, a =
|
|
4954
|
+
const n = ce("defaultConf"), s = l, r = e, a = f(), o = f(), g = f("card"), u = f(!0), i = f(0), c = le(() => {
|
|
4953
4955
|
const y = [];
|
|
4954
4956
|
return r.toolbar && r.toolbar.btns && r.toolbar.btns.map((k) => {
|
|
4955
4957
|
y.push({ ...Jo(k), size: k.size || r.size });
|
|
@@ -4960,15 +4962,15 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
4960
4962
|
return y != null && y.formDesc && Object.values(y == null ? void 0 : y.formDesc).map((x) => {
|
|
4961
4963
|
if (x.width)
|
|
4962
4964
|
return;
|
|
4963
|
-
let
|
|
4965
|
+
let N = 300;
|
|
4964
4966
|
switch (x.type) {
|
|
4965
4967
|
case "daterange":
|
|
4966
4968
|
case "input":
|
|
4967
4969
|
case "area":
|
|
4968
|
-
|
|
4970
|
+
N = 300;
|
|
4969
4971
|
break;
|
|
4970
4972
|
}
|
|
4971
|
-
x.width =
|
|
4973
|
+
x.width = N + "px";
|
|
4972
4974
|
}), y;
|
|
4973
4975
|
}), p = le(() => {
|
|
4974
4976
|
var y, k;
|
|
@@ -4976,14 +4978,14 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
4976
4978
|
}), m = le(() => {
|
|
4977
4979
|
var y, k, x;
|
|
4978
4980
|
return !((y = r.toolbar) != null && y.collapsible) && !((x = (k = r.toolbar) == null ? void 0 : k.formConfig) != null && x.collapsedRows) ? !1 : i.value > p.value;
|
|
4979
|
-
}),
|
|
4981
|
+
}), $ = le(() => {
|
|
4980
4982
|
var y, k, x;
|
|
4981
4983
|
return !((y = r.toolbar) != null && y.collapsible) && !((x = (k = r.toolbar) == null ? void 0 : k.formConfig) != null && x.collapsedRows) || !u.value ? -1 : p.value;
|
|
4982
4984
|
}), B = le(() => {
|
|
4983
4985
|
var k;
|
|
4984
4986
|
let y = ((k = r.toolbar) == null ? void 0 : k.export) || [];
|
|
4985
|
-
return y && !Array.isArray(y) && (y = [y]), y != null && y.length && y.map((x,
|
|
4986
|
-
x.label = x.label || `导出Excel ${
|
|
4987
|
+
return y && !Array.isArray(y) && (y = [y]), y != null && y.length && y.map((x, N) => {
|
|
4988
|
+
x.label = x.label || `导出Excel ${N > 0 ? N : ""}`, x.size = r.size, x.mask = x.mask ?? !0, x.on = { click: (D) => w(D, N) };
|
|
4987
4989
|
}), y;
|
|
4988
4990
|
});
|
|
4989
4991
|
function b() {
|
|
@@ -4993,42 +4995,42 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
4993
4995
|
s("layoutChange", y);
|
|
4994
4996
|
}
|
|
4995
4997
|
async function w({ callBack: y }, k) {
|
|
4996
|
-
var
|
|
4998
|
+
var N, D;
|
|
4997
4999
|
const x = B.value[k];
|
|
4998
5000
|
if (x) {
|
|
4999
5001
|
const Y = new XMLHttpRequest();
|
|
5000
|
-
let
|
|
5002
|
+
let U = x.url || "";
|
|
5001
5003
|
const te = x.method || "get";
|
|
5002
|
-
let
|
|
5004
|
+
let R = Object.assign({}, r.queryDataFn ? await r.queryDataFn() : {});
|
|
5003
5005
|
if (typeof (x == null ? void 0 : x.data) == "function") {
|
|
5004
|
-
const z = x.data(
|
|
5005
|
-
Object.assign(
|
|
5006
|
+
const z = x.data(R);
|
|
5007
|
+
Object.assign(R, et(z) ? await z : z);
|
|
5006
5008
|
} else
|
|
5007
|
-
Object.assign(
|
|
5008
|
-
(
|
|
5009
|
-
for (let z in
|
|
5010
|
-
(
|
|
5009
|
+
Object.assign(R, (x == null ? void 0 : x.data) || { size: 1e3 });
|
|
5010
|
+
(D = (N = r.toolbar) == null ? void 0 : N.formConfig) != null && D.beforeRequest && (R = await r.toolbar.formConfig.beforeRequest(R));
|
|
5011
|
+
for (let z in R)
|
|
5012
|
+
(R[z] === void 0 || R[z] === null || R[z] === "") && delete R[z];
|
|
5011
5013
|
if (x.fetch)
|
|
5012
5014
|
try {
|
|
5013
|
-
let z = await x.fetch(
|
|
5015
|
+
let z = await x.fetch(R);
|
|
5014
5016
|
if (x.urlKey) {
|
|
5015
5017
|
let V = typeof x.urlKey == "string" ? [x.urlKey] : x.urlKey;
|
|
5016
5018
|
V == null || V.map((h) => z = z[h]);
|
|
5017
5019
|
}
|
|
5018
|
-
|
|
5020
|
+
U = z;
|
|
5019
5021
|
} catch (z) {
|
|
5020
5022
|
console.log("e: ", z), y && y();
|
|
5021
5023
|
}
|
|
5022
5024
|
else
|
|
5023
|
-
!x.noQuery && te === "get" && (
|
|
5024
|
-
if (x.beforeRequest && typeof x.beforeRequest == "function" && (
|
|
5025
|
+
!x.noQuery && te === "get" && (U += (U.indexOf("?") >= 0 ? "&" : "?") + es(R));
|
|
5026
|
+
if (x.beforeRequest && typeof x.beforeRequest == "function" && (R = x.beforeRequest(R)), Y.open(te, U, !0), Y.responseType = "blob", x.isAuth !== !1 && n.token) {
|
|
5025
5027
|
let z = n.token;
|
|
5026
5028
|
typeof n.token == "function" && (z = n.token()), Y.setRequestHeader(x.tokenKey || "Authorization", "" + z);
|
|
5027
5029
|
}
|
|
5028
|
-
let K = x.name ||
|
|
5030
|
+
let K = x.name || U.split("?")[0] || `${(/* @__PURE__ */ new Date()).getTime()}`;
|
|
5029
5031
|
K.length > 0 && (K = K.substring(K.lastIndexOf("/") + 1));
|
|
5030
|
-
const
|
|
5031
|
-
K.endsWith(
|
|
5032
|
+
const M = x.suffix || K.indexOf(".") > 0 ? K.substring(K.lastIndexOf(".")) : ".xlsx";
|
|
5033
|
+
K.endsWith(M) || (K = K + M), Y.onload = function() {
|
|
5032
5034
|
if (this.status == 200) {
|
|
5033
5035
|
if (!x.name)
|
|
5034
5036
|
try {
|
|
@@ -5039,19 +5041,19 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5039
5041
|
} catch {
|
|
5040
5042
|
}
|
|
5041
5043
|
const z = document.createElement("a");
|
|
5042
|
-
window.navigator.msSaveOrOpenBlob && typeof window.navigator.msSaveOrOpenBlob == "function" ? z.href = window.navigator.msSaveOrOpenBlob(this.response, K) : (z.href = window.URL.createObjectURL(this.response), z.download = K), z.click(), window.URL.revokeObjectURL(
|
|
5044
|
+
window.navigator.msSaveOrOpenBlob && typeof window.navigator.msSaveOrOpenBlob == "function" ? z.href = window.navigator.msSaveOrOpenBlob(this.response, K) : (z.href = window.URL.createObjectURL(this.response), z.download = K), z.click(), window.URL.revokeObjectURL(U), setTimeout(() => {
|
|
5043
5045
|
y && y();
|
|
5044
5046
|
}, 1e3);
|
|
5045
5047
|
}
|
|
5046
5048
|
}, Y.onerror = function(z) {
|
|
5047
5049
|
const V = document.createElement("a");
|
|
5048
|
-
V.href =
|
|
5050
|
+
V.href = U, V.download = K, V.click(), setTimeout(() => {
|
|
5049
5051
|
y && y();
|
|
5050
5052
|
}, 1e3);
|
|
5051
|
-
}, te === "post" ? (Y.setRequestHeader("content-type", "application/json; charset=UTF-8"), Y.send(JSON.stringify(
|
|
5053
|
+
}, te === "post" ? (Y.setRequestHeader("content-type", "application/json; charset=UTF-8"), Y.send(JSON.stringify(R))) : Y.send();
|
|
5052
5054
|
}
|
|
5053
5055
|
}
|
|
5054
|
-
function
|
|
5056
|
+
function v() {
|
|
5055
5057
|
u.value = !u.value;
|
|
5056
5058
|
}
|
|
5057
5059
|
function G() {
|
|
@@ -5108,7 +5110,7 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5108
5110
|
var y;
|
|
5109
5111
|
return (y = a.value) == null ? void 0 : y.getData();
|
|
5110
5112
|
}, initCol: L, resetQuery: P }), (y, k) => {
|
|
5111
|
-
const x = O("el-icon"),
|
|
5113
|
+
const x = O("el-icon"), N = O("el-button"), D = O("el-radio-button"), Y = O("el-radio-group"), U = O("ElPlusForm"), te = O("el-form");
|
|
5112
5114
|
return d(), I("div", Pr, [
|
|
5113
5115
|
r.toolbar && Object.keys(r.toolbar || {}).length ? (d(), S(te, {
|
|
5114
5116
|
key: 0,
|
|
@@ -5118,27 +5120,27 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5118
5120
|
}, {
|
|
5119
5121
|
default: _(() => [
|
|
5120
5122
|
r.toolbar.formConfig ? (d(), I("div", Qr, [
|
|
5121
|
-
Z(
|
|
5123
|
+
Z(U, ee({
|
|
5122
5124
|
ref_key: "elPlusFormRef",
|
|
5123
5125
|
ref: a
|
|
5124
5126
|
}, j.value, {
|
|
5125
5127
|
modelValue: r.modelValue,
|
|
5126
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
5128
|
+
"onUpdate:modelValue": k[1] || (k[1] = (R) => r.modelValue = R),
|
|
5127
5129
|
requestFn: b,
|
|
5128
5130
|
showBtns: !1,
|
|
5129
5131
|
isTable: !0,
|
|
5130
|
-
maxShowRowIndex:
|
|
5132
|
+
maxShowRowIndex: $.value
|
|
5131
5133
|
}), {
|
|
5132
5134
|
row: _(() => {
|
|
5133
|
-
var
|
|
5135
|
+
var R, K;
|
|
5134
5136
|
return [
|
|
5135
5137
|
ae("div", Ur, [
|
|
5136
|
-
m.value ? (d(), S(
|
|
5138
|
+
m.value ? (d(), S(N, {
|
|
5137
5139
|
key: 0,
|
|
5138
5140
|
size: e.size,
|
|
5139
5141
|
type: "primary",
|
|
5140
5142
|
link: "",
|
|
5141
|
-
onClick:
|
|
5143
|
+
onClick: v
|
|
5142
5144
|
}, {
|
|
5143
5145
|
default: _(() => [
|
|
5144
5146
|
pe(de(u.value ? "展开" : "收起") + "筛选条件", 1),
|
|
@@ -5150,18 +5152,18 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5150
5152
|
})
|
|
5151
5153
|
]),
|
|
5152
5154
|
_: 1
|
|
5153
|
-
}, 8, ["size"])) :
|
|
5154
|
-
Object.keys(((
|
|
5155
|
+
}, 8, ["size"])) : F("", !0),
|
|
5156
|
+
Object.keys(((R = j.value) == null ? void 0 : R.formDesc) || {}).length ? (d(), S(ct, {
|
|
5155
5157
|
key: 1,
|
|
5156
5158
|
type: "primary",
|
|
5157
5159
|
icon: je(_o),
|
|
5158
5160
|
loading: e.loading,
|
|
5159
5161
|
desc: { label: "查询", on: { click: G }, size: e.size }
|
|
5160
|
-
}, null, 8, ["icon", "loading", "desc"])) :
|
|
5162
|
+
}, null, 8, ["icon", "loading", "desc"])) : F("", !0),
|
|
5161
5163
|
Object.keys(((K = j.value) == null ? void 0 : K.formDesc) || {}).length ? (d(), S(ct, {
|
|
5162
5164
|
key: 2,
|
|
5163
5165
|
desc: { label: "重置", on: { click: P }, size: e.size }
|
|
5164
|
-
}, null, 8, ["desc"])) :
|
|
5166
|
+
}, null, 8, ["desc"])) : F("", !0),
|
|
5165
5167
|
e.tbName ? (d(), S(Hl, {
|
|
5166
5168
|
key: 3,
|
|
5167
5169
|
ref_key: "settingColumnRef",
|
|
@@ -5169,16 +5171,16 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5169
5171
|
tbName: e.tbName,
|
|
5170
5172
|
column: e.column || [],
|
|
5171
5173
|
size: e.size
|
|
5172
|
-
}, null, 8, ["tbName", "column", "size"])) :
|
|
5174
|
+
}, null, 8, ["tbName", "column", "size"])) : F("", !0),
|
|
5173
5175
|
e.layoutSelect ? (d(), S(Y, {
|
|
5174
5176
|
key: 4,
|
|
5175
|
-
modelValue:
|
|
5176
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
5177
|
+
modelValue: g.value,
|
|
5178
|
+
"onUpdate:modelValue": k[0] || (k[0] = (M) => g.value = M),
|
|
5177
5179
|
style: { "margin-left": "12px", "margin-right": "12px" },
|
|
5178
5180
|
onChange: Q
|
|
5179
5181
|
}, {
|
|
5180
5182
|
default: _(() => [
|
|
5181
|
-
Z(
|
|
5183
|
+
Z(D, { label: "card" }, {
|
|
5182
5184
|
default: _(() => [
|
|
5183
5185
|
Z(x, null, {
|
|
5184
5186
|
default: _(() => [
|
|
@@ -5189,7 +5191,7 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5189
5191
|
]),
|
|
5190
5192
|
_: 1
|
|
5191
5193
|
}),
|
|
5192
|
-
Z(
|
|
5194
|
+
Z(D, { label: "list" }, {
|
|
5193
5195
|
default: _(() => [
|
|
5194
5196
|
Z(x, null, {
|
|
5195
5197
|
default: _(() => [
|
|
@@ -5202,32 +5204,32 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5202
5204
|
})
|
|
5203
5205
|
]),
|
|
5204
5206
|
_: 1
|
|
5205
|
-
}, 8, ["modelValue"])) :
|
|
5206
|
-
(d(!0), I(oe, null, Me(c.value, (
|
|
5207
|
-
T(
|
|
5208
|
-
|
|
5207
|
+
}, 8, ["modelValue"])) : F("", !0),
|
|
5208
|
+
(d(!0), I(oe, null, Me(c.value, (M, z) => (d(), I(oe, { key: z }, [
|
|
5209
|
+
T(M) ? (d(), I(oe, { key: 0 }, [
|
|
5210
|
+
M.customize ? (d(), S(rl(M.elType), ee({
|
|
5209
5211
|
key: 0,
|
|
5210
5212
|
ref_for: !0
|
|
5211
|
-
},
|
|
5212
|
-
|
|
5213
|
+
}, M), null, 16)) : (d(), I(oe, { key: 1 }, [
|
|
5214
|
+
M.elType === "upload" ? (d(), S(qt, {
|
|
5213
5215
|
key: 0,
|
|
5214
|
-
desc:
|
|
5216
|
+
desc: M,
|
|
5215
5217
|
loading: e.loading
|
|
5216
5218
|
}, null, 8, ["desc", "loading"])) : (d(), S(ct, {
|
|
5217
5219
|
key: 1,
|
|
5218
|
-
desc:
|
|
5220
|
+
desc: M,
|
|
5219
5221
|
loading: e.loading
|
|
5220
5222
|
}, null, 8, ["desc", "loading"]))
|
|
5221
5223
|
], 64))
|
|
5222
|
-
], 64)) :
|
|
5224
|
+
], 64)) : F("", !0)
|
|
5223
5225
|
], 64))), 128)),
|
|
5224
|
-
B.value && B.value.length ? (d(!0), I(oe, { key: 5 }, Me(B.value, (
|
|
5225
|
-
T(
|
|
5226
|
+
B.value && B.value.length ? (d(!0), I(oe, { key: 5 }, Me(B.value, (M, z) => (d(), I(oe, { key: z }, [
|
|
5227
|
+
T(M) ? (d(), S(ct, {
|
|
5226
5228
|
key: 0,
|
|
5227
5229
|
type: "primary",
|
|
5228
|
-
desc:
|
|
5229
|
-
}, null, 8, ["desc"])) :
|
|
5230
|
-
], 64))), 128)) :
|
|
5230
|
+
desc: M
|
|
5231
|
+
}, null, 8, ["desc"])) : F("", !0)
|
|
5232
|
+
], 64))), 128)) : F("", !0)
|
|
5231
5233
|
])
|
|
5232
5234
|
];
|
|
5233
5235
|
}),
|
|
@@ -5239,18 +5241,18 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5239
5241
|
style: Pe({ "min-width": je(hn)() ? "100%" : c.value && c.value.length > 0 ? c.value.length * 110 + "px" : "10px" })
|
|
5240
5242
|
}, [
|
|
5241
5243
|
ae("div", Fr, [
|
|
5242
|
-
(d(!0), I(oe, null, Me(c.value, (
|
|
5243
|
-
|
|
5244
|
+
(d(!0), I(oe, null, Me(c.value, (R, K) => (d(), I(oe, { key: K }, [
|
|
5245
|
+
R.customize ? (d(), S(rl(R.elType), ee({
|
|
5244
5246
|
key: 0,
|
|
5245
5247
|
ref_for: !0
|
|
5246
|
-
},
|
|
5247
|
-
|
|
5248
|
+
}, R), null, 16)) : (d(), I(oe, { key: 1 }, [
|
|
5249
|
+
R.elType === "upload" ? (d(), S(qt, {
|
|
5248
5250
|
key: 0,
|
|
5249
|
-
desc:
|
|
5251
|
+
desc: R,
|
|
5250
5252
|
loading: e.loading
|
|
5251
5253
|
}, null, 8, ["desc", "loading"])) : (d(), S(ct, {
|
|
5252
5254
|
key: 1,
|
|
5253
|
-
desc:
|
|
5255
|
+
desc: R,
|
|
5254
5256
|
loading: e.loading
|
|
5255
5257
|
}, null, 8, ["desc", "loading"]))
|
|
5256
5258
|
], 64))
|
|
@@ -5269,9 +5271,9 @@ const Hl = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-8ee378e7"]]), Pr = { cl
|
|
|
5269
5271
|
column: e.column || [],
|
|
5270
5272
|
size: e.size,
|
|
5271
5273
|
showText: !0
|
|
5272
|
-
}, null, 8, ["tbName", "column", "size"])) :
|
|
5274
|
+
}, null, 8, ["tbName", "column", "size"])) : F("", !0)
|
|
5273
5275
|
])
|
|
5274
|
-
])) :
|
|
5276
|
+
])) : F("", !0)
|
|
5275
5277
|
]);
|
|
5276
5278
|
};
|
|
5277
5279
|
}
|
|
@@ -5287,40 +5289,40 @@ const Kr = /* @__PURE__ */ Ae(Gr, [["__scopeId", "data-v-45af0bc0"]]), Wr = /* @
|
|
|
5287
5289
|
},
|
|
5288
5290
|
setup(e) {
|
|
5289
5291
|
var o;
|
|
5290
|
-
const t = e, l =
|
|
5292
|
+
const t = e, l = f(((o = t.scope) == null ? void 0 : o.$index) || 0), n = le(() => {
|
|
5291
5293
|
var u, i;
|
|
5292
|
-
const
|
|
5294
|
+
const g = [];
|
|
5293
5295
|
return t.desc.label === "操作" && ((i = (u = t.scope) == null ? void 0 : u.row) != null && i.isSumRow) ? [] : (t.desc.nodes ? t.desc.nodes.map((c, j) => {
|
|
5294
|
-
|
|
5296
|
+
g.push(r(c.field || t.field, c, j));
|
|
5295
5297
|
}) : ((typeof t.field == "function" ? t.field() : t.field) || "").split(",").map((p, m) => {
|
|
5296
|
-
|
|
5297
|
-
}),
|
|
5298
|
+
g.push(r(p, t.desc, m));
|
|
5299
|
+
}), g.length <= 0 && g.push(r("", t.desc, 0)), g);
|
|
5298
5300
|
}), s = le(() => {
|
|
5299
|
-
var
|
|
5300
|
-
return typeof t.desc.content == "function" ? t.desc.content(t.modelValue, (
|
|
5301
|
-
}), r = (
|
|
5301
|
+
var g;
|
|
5302
|
+
return typeof t.desc.content == "function" ? t.desc.content(t.modelValue, (g = t.scope) == null ? void 0 : g.row, t.field) : t.desc.content || "";
|
|
5303
|
+
}), r = (g, u, i) => {
|
|
5302
5304
|
var j, p, m;
|
|
5303
5305
|
const c = {
|
|
5304
|
-
field:
|
|
5306
|
+
field: g,
|
|
5305
5307
|
desc: {
|
|
5306
|
-
prop:
|
|
5308
|
+
prop: g,
|
|
5307
5309
|
default: "",
|
|
5308
5310
|
size: u.size || t.size || "default"
|
|
5309
5311
|
}
|
|
5310
5312
|
};
|
|
5311
5313
|
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)
|
|
5312
5314
|
if (c.desc.style = u.style || {}, typeof u.color == "function") {
|
|
5313
|
-
const
|
|
5314
|
-
c.desc.style.color = u.color((j = t.scope) == null ? void 0 : j.row[
|
|
5315
|
+
const $ = (typeof t.field == "function" ? t.field() : t.field) || "";
|
|
5316
|
+
c.desc.style.color = u.color((j = t.scope) == null ? void 0 : j.row[$], (p = t.scope) == null ? void 0 : p.row, t.field);
|
|
5315
5317
|
} else
|
|
5316
5318
|
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];
|
|
5317
5319
|
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;
|
|
5318
|
-
}, a = (
|
|
5320
|
+
}, a = (g) => {
|
|
5319
5321
|
var u;
|
|
5320
|
-
return
|
|
5322
|
+
return g.vshow !== void 0 && g.vshow !== null && g.vshow !== "" ? typeof g.vshow == "boolean" ? g.vshow : typeof g.vshow == "function" ? g.vshow((u = t.scope) == null ? void 0 : u.row) : !!g.vshow : !0;
|
|
5321
5323
|
};
|
|
5322
5324
|
return it(() => {
|
|
5323
|
-
}), (
|
|
5325
|
+
}), (g, u) => {
|
|
5324
5326
|
const i = O("el-icon"), c = O("el-popover");
|
|
5325
5327
|
return d(), I("div", {
|
|
5326
5328
|
class: dt(["el-plus-table-column-item", [e.desc.inline ? "el-plus-table-column-row" : "el-plus-table-column-column"]])
|
|
@@ -5347,7 +5349,7 @@ const Kr = /* @__PURE__ */ Ae(Gr, [["__scopeId", "data-v-45af0bc0"]]), Wr = /* @
|
|
|
5347
5349
|
})
|
|
5348
5350
|
]),
|
|
5349
5351
|
_: 1
|
|
5350
|
-
}, 8, ["content"])) :
|
|
5352
|
+
}, 8, ["content"])) : F("", !0),
|
|
5351
5353
|
ae("div", {
|
|
5352
5354
|
style: Pe([{ width: "100%", display: "flex" }, { "justify-content": j.align || "flex-start" }])
|
|
5353
5355
|
}, [
|
|
@@ -5360,8 +5362,8 @@ const Kr = /* @__PURE__ */ Ae(Gr, [["__scopeId", "data-v-45af0bc0"]]), Wr = /* @
|
|
|
5360
5362
|
size: j.size || e.size,
|
|
5361
5363
|
rowIndex: l.value,
|
|
5362
5364
|
modelValue: t.scope.row[j.field],
|
|
5363
|
-
"onUpdate:modelValue": (
|
|
5364
|
-
}), null, 16, ["formData", "size", "rowIndex", "modelValue", "onUpdate:modelValue"])) :
|
|
5365
|
+
"onUpdate:modelValue": ($) => t.scope.row[j.field] = $
|
|
5366
|
+
}), null, 16, ["formData", "size", "rowIndex", "modelValue", "onUpdate:modelValue"])) : F("", !0)
|
|
5365
5367
|
], 4)
|
|
5366
5368
|
], 64);
|
|
5367
5369
|
}), 128))
|
|
@@ -5390,13 +5392,13 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5390
5392
|
return l.item.__vif ? (d(), S(o, ee({ key: 0 }, n.value, {
|
|
5391
5393
|
key: "col_" + e.item.__id + "-" + e.item.label + "-" + e.index
|
|
5392
5394
|
}), {
|
|
5393
|
-
header: _(({ column:
|
|
5395
|
+
header: _(({ column: g }) => [
|
|
5394
5396
|
ae("div", {
|
|
5395
5397
|
class: dt({ "th-required": e.item.required }),
|
|
5396
5398
|
style: Pe(e.item.hstyle)
|
|
5397
|
-
}, de(
|
|
5399
|
+
}, de(g.label), 7)
|
|
5398
5400
|
]),
|
|
5399
|
-
default: _((
|
|
5401
|
+
default: _((g) => {
|
|
5400
5402
|
var u;
|
|
5401
5403
|
return [
|
|
5402
5404
|
(u = e.item.children) != null && u.length ? (d(!0), I(oe, { key: 0 }, Me(e.item.children, (i, c) => (d(), S(a, {
|
|
@@ -5405,20 +5407,20 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5405
5407
|
key: e.index + "-" + c,
|
|
5406
5408
|
index: c
|
|
5407
5409
|
}, null, 8, ["item", "size", "index"]))), 128)) : (d(), I(oe, { key: 1 }, [
|
|
5408
|
-
|
|
5410
|
+
g.$index >= 0 ? (d(), S(Zr, {
|
|
5409
5411
|
key: 0,
|
|
5410
5412
|
field: e.item.prop,
|
|
5411
5413
|
desc: e.item,
|
|
5412
|
-
scope:
|
|
5414
|
+
scope: g,
|
|
5413
5415
|
size: e.size,
|
|
5414
|
-
modelValue:
|
|
5415
|
-
"onUpdate:modelValue": (i) =>
|
|
5416
|
-
}, null, 8, ["field", "desc", "scope", "size", "modelValue", "onUpdate:modelValue"])) :
|
|
5416
|
+
modelValue: g.row[e.item.prop],
|
|
5417
|
+
"onUpdate:modelValue": (i) => g.row[e.item.prop] = i
|
|
5418
|
+
}, null, 8, ["field", "desc", "scope", "size", "modelValue", "onUpdate:modelValue"])) : F("", !0)
|
|
5417
5419
|
], 64))
|
|
5418
5420
|
];
|
|
5419
5421
|
}),
|
|
5420
5422
|
_: 1
|
|
5421
|
-
}, 16)) :
|
|
5423
|
+
}, 16)) : F("", !0);
|
|
5422
5424
|
};
|
|
5423
5425
|
}
|
|
5424
5426
|
}), Jr = { class: "el-plus-table-content" }, Xr = {
|
|
@@ -5459,30 +5461,30 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5459
5461
|
emits: ["getUrlConsumerIds", "selection", "select", "selectAll", "update:modelValue", "tabChange", "queryChange", "expandChange", "inited", "headerReset", "layoutChange", "loadDataEnd"],
|
|
5460
5462
|
setup(e, { expose: t, emit: l }) {
|
|
5461
5463
|
var Vt, At, ll, nl, al, ol, Ce, yt;
|
|
5462
|
-
const n = ce("lodash"), s = ce("defaultConf"), r = ce("format"), a = l, o = e,
|
|
5464
|
+
const n = ce("lodash"), s = ce("defaultConf"), r = ce("format"), a = l, o = e, g = f(!1), u = f(o.isDIYMain || !1), i = f(o.rowKey), c = f([]), j = f(null), p = f(), m = f({}), $ = f(((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 = le(() => {
|
|
5463
5465
|
var E;
|
|
5464
5466
|
return Object.assign({ border: !0, bigHBar: !0, scrollbarAlwaysOn: !0 }, ((E = o.tableConfig) == null ? void 0 : E.tableAttr) || {});
|
|
5465
5467
|
}), b = le(() => (E) => E.key ? m.value[E.key] || 0 : ""), Q = le(() => (E, W) => {
|
|
5466
5468
|
var J, ue;
|
|
5467
5469
|
return typeof ((J = B.value) == null ? void 0 : J.selectable) == "function" ? (ue = B.value) == null ? void 0 : ue.selectable(E, W) : !0;
|
|
5468
|
-
}), w =
|
|
5470
|
+
}), w = f(), v = f(!1), G = f(!!((ol = (al = o.tableConfig) == null ? void 0 : al.tabConf) != null && ol.fetch)), P = f(!1), T = s.size || "default", L = le(() => o.loading || v.value);
|
|
5469
5471
|
let y = Oe({});
|
|
5470
|
-
const k =
|
|
5472
|
+
const k = f(o.modelValue || []);
|
|
5471
5473
|
Oe([]);
|
|
5472
|
-
const x =
|
|
5474
|
+
const x = f(0), N = Oe(n.cloneDeep(o.selectList) || []), D = Oe([]), Y = Oe({
|
|
5473
5475
|
current: !o.isDialog && y.current ? parseInt(y.current) : 1,
|
|
5474
5476
|
total: 0,
|
|
5475
5477
|
size: !o.isDialog && y.size ? parseInt(y.size) : o.pageSize
|
|
5476
|
-
}),
|
|
5478
|
+
}), U = ((yt = (Ce = o.tableConfig) == null ? void 0 : Ce.explan) == null ? void 0 : yt.treeProps) || { children: "children", hasChildren: "hasChildren" }, te = le(() => {
|
|
5477
5479
|
var Qe, Ke, We;
|
|
5478
|
-
const E = Tn(n.cloneDeep((Qe = o.tableConfig) == null ? void 0 : Qe.column), s, ((Ke = o.tableConfig) == null ? void 0 : Ke.tbName) || "", o.headerAlign, o.colMinWidth || "auto"), W =
|
|
5480
|
+
const E = Tn(n.cloneDeep((Qe = o.tableConfig) == null ? void 0 : Qe.column), s, ((Ke = o.tableConfig) == null ? void 0 : Ke.tbName) || "", o.headerAlign, o.colMinWidth || "auto"), W = M(E);
|
|
5479
5481
|
c.value = [];
|
|
5480
5482
|
let J, ue = 0, Ne = 1, Ve = "";
|
|
5481
5483
|
const ke = W.map((Ye, Ue) => {
|
|
5482
5484
|
var Se;
|
|
5483
5485
|
return Ye.isRowSpan && (c.value.push(Ue), J = void 0, ue = 0, Ne = 1, (Se = k.value) == null || Se.map((_e, Ze) => {
|
|
5484
5486
|
var qe;
|
|
5485
|
-
Ve = (qe = Ye.rsProps) != null && qe.length ?
|
|
5487
|
+
Ve = (qe = Ye.rsProps) != null && qe.length ? R(_e, Ye.rsProps) : "", J !== Ve + _e[Ye.prop] ? (Ne > 1 && Ze > 0 && (k.value[ue]["rowSpan_" + Ue] = Ne), ue = Ze, Ne = 1, J = Ve + _e[Ye.prop]) : (Ne += 1, _e["rowSpan_" + Ue] = 0), Ze === k.value.length - 1 && (k.value[ue]["rowSpan_" + Ue] = Ne);
|
|
5486
5488
|
})), Ye.isColSpan ? Ue : null;
|
|
5487
5489
|
}).filter((Ye) => Ye !== null);
|
|
5488
5490
|
return ke.length && ((We = k.value) == null || We.map((Ye, Ue) => {
|
|
@@ -5495,7 +5497,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5495
5497
|
return { rowspan: Ye["rowSpan_" + _e] ?? 1, colspan: Ye["colSpan_" + _e] ?? 1 };
|
|
5496
5498
|
}), E;
|
|
5497
5499
|
});
|
|
5498
|
-
function
|
|
5500
|
+
function R(E, W) {
|
|
5499
5501
|
return E && (W != null && W.length) ? W.reduce((J, ue) => J += E[ue] || "", "") : "";
|
|
5500
5502
|
}
|
|
5501
5503
|
const K = le(() => {
|
|
@@ -5513,20 +5515,20 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5513
5515
|
let Ye = "";
|
|
5514
5516
|
Ke.map((Ue, Se) => {
|
|
5515
5517
|
var _e, Ze;
|
|
5516
|
-
Ye = "", (_e = o.tableConfig.summaryConf) != null && _e.sumFn ? Ye = (Ze = o.tableConfig.summaryConf) == null ? void 0 : Ze.sumFn(k.value,
|
|
5518
|
+
Ye = "", (_e = o.tableConfig.summaryConf) != null && _e.sumFn ? Ye = (Ze = o.tableConfig.summaryConf) == null ? void 0 : Ze.sumFn(k.value, N) : Ye = r.yuan(k.value.reduce((qe, zt) => qe += zt[Ue], 0)), E.push({ label: We[Se], value: Ye });
|
|
5517
5519
|
});
|
|
5518
5520
|
}
|
|
5519
5521
|
return E;
|
|
5520
5522
|
});
|
|
5521
|
-
function
|
|
5523
|
+
function M(E) {
|
|
5522
5524
|
const W = [];
|
|
5523
5525
|
return E == null || E.map((J) => {
|
|
5524
5526
|
var ue;
|
|
5525
|
-
(ue = J.children) != null && ue.length ? W.push(...
|
|
5527
|
+
(ue = J.children) != null && ue.length ? W.push(...M(J.children)) : J.__vif && W.push(J);
|
|
5526
5528
|
}), W;
|
|
5527
5529
|
}
|
|
5528
5530
|
async function z(E) {
|
|
5529
|
-
if (!o.initLoad && !
|
|
5531
|
+
if (!o.initLoad && !g.value)
|
|
5530
5532
|
return !1;
|
|
5531
5533
|
X(!0), await a("tabChange", E, xe), setTimeout(() => {
|
|
5532
5534
|
xe();
|
|
@@ -5546,31 +5548,31 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5546
5548
|
});
|
|
5547
5549
|
}
|
|
5548
5550
|
function ne(E, W) {
|
|
5549
|
-
Be(W, !E.some((J) => J[o.rowKey] === W[o.rowKey])), a("select", E, W), a("selection", n.cloneDeep(
|
|
5551
|
+
Be(W, !E.some((J) => J[o.rowKey] === W[o.rowKey])), a("select", E, W), a("selection", n.cloneDeep(N));
|
|
5550
5552
|
}
|
|
5551
5553
|
function ge(E) {
|
|
5552
5554
|
const W = !(E && E.length > 0);
|
|
5553
5555
|
(W ? k.value : E).map((J) => {
|
|
5554
5556
|
Be(J, W);
|
|
5555
|
-
}), a("selectAll", E, W), a("selection", n.cloneDeep(
|
|
5557
|
+
}), a("selectAll", E, W), a("selection", n.cloneDeep(N));
|
|
5556
5558
|
}
|
|
5557
5559
|
function ve(E, W) {
|
|
5558
5560
|
a("expandChange", E, W);
|
|
5559
5561
|
}
|
|
5560
5562
|
function Be(E, W = !1) {
|
|
5561
|
-
const J =
|
|
5562
|
-
W ? J >= 0 &&
|
|
5563
|
+
const J = N.findIndex((ue) => ue[o.rowKey] === E[o.rowKey]);
|
|
5564
|
+
W ? J >= 0 && N.splice(J, 1) : J < 0 && N.push(E);
|
|
5563
5565
|
}
|
|
5564
5566
|
function C(E, W = !1) {
|
|
5565
5567
|
E && E.length && E.map((J) => {
|
|
5566
5568
|
Be(
|
|
5567
|
-
|
|
5569
|
+
N.find((ue) => ue[o.rowKey] === J[o.rowKey]),
|
|
5568
5570
|
!W
|
|
5569
5571
|
);
|
|
5570
5572
|
}), bt();
|
|
5571
5573
|
}
|
|
5572
5574
|
function A() {
|
|
5573
|
-
|
|
5575
|
+
N.splice(0, N.length, ...o.selectList);
|
|
5574
5576
|
}
|
|
5575
5577
|
async function se() {
|
|
5576
5578
|
var W, J, ue, Ne, Ve, ke, Qe, Ke, We, Ye, Ue, Se, _e, Ze, qe;
|
|
@@ -5582,7 +5584,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5582
5584
|
...typeof o.tableConfig.queryMap == "function" ? await o.tableConfig.queryMap() : o.tableConfig.queryMap,
|
|
5583
5585
|
t_: (/* @__PURE__ */ new Date()).getTime()
|
|
5584
5586
|
};
|
|
5585
|
-
return o.isPager && (E[((ue = (J = s.table) == null ? void 0 : J.page) == null ? void 0 : ue.current) || ((ke = (Ve = (Ne = o.tableConfig) == null ? void 0 : Ne.fetchMap) == null ? void 0 : Ve.page) == null ? void 0 : ke.current) || "current"] = Y.current, E[((Ke = (Qe = s.table) == null ? void 0 : Qe.page) == null ? void 0 : Ke.pageSize) || ((Ue = (Ye = (We = o.tableConfig) == null ? void 0 : We.fetchMap) == null ? void 0 : Ye.page) == null ? void 0 : Ue.pageSize) || "size"] = Y.size), (Se = o.tableConfig) != null && Se.tabConf && ((Ze = (_e = o.tableConfig) == null ? void 0 : _e.tabConf) != null && Ze.prop) && (E[(qe = o.tableConfig) == null ? void 0 : qe.tabConf.prop] =
|
|
5587
|
+
return o.isPager && (E[((ue = (J = s.table) == null ? void 0 : J.page) == null ? void 0 : ue.current) || ((ke = (Ve = (Ne = o.tableConfig) == null ? void 0 : Ne.fetchMap) == null ? void 0 : Ve.page) == null ? void 0 : ke.current) || "current"] = Y.current, E[((Ke = (Qe = s.table) == null ? void 0 : Qe.page) == null ? void 0 : Ke.pageSize) || ((Ue = (Ye = (We = o.tableConfig) == null ? void 0 : We.fetchMap) == null ? void 0 : Ye.page) == null ? void 0 : Ue.pageSize) || "size"] = Y.size), (Se = o.tableConfig) != null && Se.tabConf && ((Ze = (_e = o.tableConfig) == null ? void 0 : _e.tabConf) != null && Ze.prop) && (E[(qe = o.tableConfig) == null ? void 0 : qe.tabConf.prop] = $.value), E = Te(E), o.isDialog, E;
|
|
5586
5588
|
}
|
|
5587
5589
|
function Te(E) {
|
|
5588
5590
|
if (!E)
|
|
@@ -5601,16 +5603,16 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5601
5603
|
function pt(E, W) {
|
|
5602
5604
|
let J = [];
|
|
5603
5605
|
E && E.length > 0 && E.map((ue, Ne) => {
|
|
5604
|
-
|
|
5606
|
+
D.push([...W, Ne]), J = ue[U.children], J && J.length > 0 && pt(J, [Ne]);
|
|
5605
5607
|
});
|
|
5606
5608
|
}
|
|
5607
5609
|
async function wt(E) {
|
|
5608
5610
|
var J, ue, Ne, Ve, ke, Qe, Ke, We, Ye, Ue, Se, _e, Ze, qe, zt, Pt, Qt, Ut, Fe, Je, Tt, kl, Bl, Vl, Pl;
|
|
5609
5611
|
if (!o.tableConfig.fetch)
|
|
5610
5612
|
return x.value = 2, !1;
|
|
5611
|
-
if (x.value === 1 ||
|
|
5613
|
+
if (x.value === 1 || v.value)
|
|
5612
5614
|
return !1;
|
|
5613
|
-
x.value = 1,
|
|
5615
|
+
x.value = 1, v.value = !0, E && (Y.current = 1, o.isStorePageData && (k.value = []));
|
|
5614
5616
|
let W = await se();
|
|
5615
5617
|
(Ne = (ue = (J = o.tableConfig) == null ? void 0 : J.toolbar) == null ? void 0 : ue.formConfig) != null && Ne.beforeRequest && (W = ((Qe = (ke = (Ve = o.tableConfig) == null ? void 0 : Ve.toolbar) == null ? void 0 : ke.formConfig) == null ? void 0 : Qe.beforeRequest(n.cloneDeep(W))) || W);
|
|
5616
5618
|
try {
|
|
@@ -5625,7 +5627,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5625
5627
|
});
|
|
5626
5628
|
} else
|
|
5627
5629
|
i.value = o.rowKey;
|
|
5628
|
-
o.isStorePageData ? k.value.push(...Nt) : k.value = Nt, o.type === "expand" && (
|
|
5630
|
+
o.isStorePageData ? k.value.push(...Nt) : k.value = Nt, o.type === "expand" && (D.splice(0, D.length), pt(k.value, [])), P.value = !1, tl(), be(() => {
|
|
5629
5631
|
bt();
|
|
5630
5632
|
});
|
|
5631
5633
|
} catch (Nt) {
|
|
@@ -5634,7 +5636,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5634
5636
|
} catch (st) {
|
|
5635
5637
|
console.log("fetch error: ", st);
|
|
5636
5638
|
}
|
|
5637
|
-
x.value = 2,
|
|
5639
|
+
x.value = 2, v.value = !1;
|
|
5638
5640
|
}
|
|
5639
5641
|
const tl = n.debounce(
|
|
5640
5642
|
() => {
|
|
@@ -5647,17 +5649,17 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5647
5649
|
k.value && k.value.length > 0 && o.type === "selection" && k.value.map((E) => {
|
|
5648
5650
|
p.value.toggleRowSelection(
|
|
5649
5651
|
E,
|
|
5650
|
-
|
|
5652
|
+
N.some((W) => W[o.rowKey] === E[o.rowKey])
|
|
5651
5653
|
);
|
|
5652
5654
|
});
|
|
5653
5655
|
}
|
|
5654
5656
|
async function q(E = !1) {
|
|
5655
5657
|
var W, J, ue, Ne;
|
|
5656
|
-
return await wt(!0), !E && ((W = o.tableConfig) != null && W.tabConf) && ((J = o.tableConfig) != null && J.tabConf.fetch) && (m.value = await ((Ne = o.tableConfig) == null ? void 0 : Ne.tabConf.fetch(Object.assign({}, await se(), (ue = o.tableConfig) == null ? void 0 : ue.tabConf.queryMap))), G.value = !1),
|
|
5658
|
+
return await wt(!0), !E && ((W = o.tableConfig) != null && W.tabConf) && ((J = o.tableConfig) != null && J.tabConf.fetch) && (m.value = await ((Ne = o.tableConfig) == null ? void 0 : Ne.tabConf.fetch(Object.assign({}, await se(), (ue = o.tableConfig) == null ? void 0 : ue.tabConf.queryMap))), G.value = !1), g.value = !0, k.value;
|
|
5657
5659
|
}
|
|
5658
5660
|
async function X(E = !1) {
|
|
5659
5661
|
var J, ue, Ne, Ve, ke, Qe;
|
|
5660
|
-
if (!o.initLoad && !
|
|
5662
|
+
if (!o.initLoad && !g.value)
|
|
5661
5663
|
return !1;
|
|
5662
5664
|
let W = await se();
|
|
5663
5665
|
(Ne = (ue = (J = o.tableConfig) == null ? void 0 : J.toolbar) == null ? void 0 : ue.formConfig) != null && Ne.beforeRequest && (W = ((Qe = (ke = (Ve = o.tableConfig) == null ? void 0 : Ve.toolbar) == null ? void 0 : ke.formConfig) == null ? void 0 : Qe.beforeRequest(n.cloneDeep(W))) || W), W && a("queryChange", W), q(E);
|
|
@@ -5692,7 +5694,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5692
5694
|
), re(
|
|
5693
5695
|
() => o.selectList,
|
|
5694
5696
|
(E) => {
|
|
5695
|
-
|
|
5697
|
+
N.splice(0, N.length, ...E), bt();
|
|
5696
5698
|
},
|
|
5697
5699
|
{ deep: !0 }
|
|
5698
5700
|
), o.isDIYMain && io("reloadTable", q), it(() => {
|
|
@@ -5721,13 +5723,13 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5721
5723
|
layoutSelect: e.isDIYMain && !!((_e = (Se = e.tableConfig) == null ? void 0 : Se.column) != null && _e.length),
|
|
5722
5724
|
onLayoutChange: V,
|
|
5723
5725
|
initLoad: e.initLoad,
|
|
5724
|
-
isInitLoad:
|
|
5725
|
-
}, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog", "layoutSelect", "initLoad", "isInitLoad"])) :
|
|
5726
|
-
Re().tabTop ? De(E.$slots, "tabTop", { key: 1 }) :
|
|
5726
|
+
isInitLoad: g.value
|
|
5727
|
+
}, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog", "layoutSelect", "initLoad", "isInitLoad"])) : F("", !0),
|
|
5728
|
+
Re().tabTop ? De(E.$slots, "tabTop", { key: 1 }) : F("", !0),
|
|
5727
5729
|
(zt = (qe = (Ze = e.tableConfig) == null ? void 0 : Ze.tabConf) == null ? void 0 : qe.tabs) != null && zt.length ? (d(), I("div", Xr, [
|
|
5728
5730
|
Z(Ne, {
|
|
5729
|
-
modelValue:
|
|
5730
|
-
"onUpdate:modelValue": W[1] || (W[1] = (Fe) =>
|
|
5731
|
+
modelValue: $.value,
|
|
5732
|
+
"onUpdate:modelValue": W[1] || (W[1] = (Fe) => $.value = Fe),
|
|
5731
5733
|
size: je(T),
|
|
5732
5734
|
onChange: z
|
|
5733
5735
|
}, {
|
|
@@ -5760,8 +5762,8 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5760
5762
|
}),
|
|
5761
5763
|
_: 1
|
|
5762
5764
|
}, 8, ["modelValue", "size"])
|
|
5763
|
-
])) :
|
|
5764
|
-
Re().default ? De(E.$slots, "default", { key: 3 }) :
|
|
5765
|
+
])) : F("", !0),
|
|
5766
|
+
Re().default ? De(E.$slots, "default", { key: 3 }) : F("", !0),
|
|
5765
5767
|
bl((d(), I("div", ec, [
|
|
5766
5768
|
u.value ? De(E.$slots, "main", {
|
|
5767
5769
|
key: 0,
|
|
@@ -5782,7 +5784,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5782
5784
|
onSelect: ne,
|
|
5783
5785
|
onSelectAll: ge,
|
|
5784
5786
|
onExpandChange: ve,
|
|
5785
|
-
treeProps: je(
|
|
5787
|
+
treeProps: je(U),
|
|
5786
5788
|
"span-method": j.value,
|
|
5787
5789
|
onHeaderDragend: nt
|
|
5788
5790
|
}), lt({
|
|
@@ -5795,7 +5797,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5795
5797
|
selectable: Q.value,
|
|
5796
5798
|
"header-align": "center",
|
|
5797
5799
|
align: "center"
|
|
5798
|
-
}, null, 8, ["selectable"])) :
|
|
5800
|
+
}, null, 8, ["selectable"])) : F("", !0),
|
|
5799
5801
|
e.isIndex ? (d(), S(Ve, {
|
|
5800
5802
|
key: 1,
|
|
5801
5803
|
type: "index",
|
|
@@ -5803,8 +5805,8 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5803
5805
|
fixed: "left",
|
|
5804
5806
|
label: e.indexLabel || "序号",
|
|
5805
5807
|
headerAlign: e.headerAlign
|
|
5806
|
-
}, null, 8, ["label", "headerAlign"])) :
|
|
5807
|
-
Re().firstColumn ? De(E.$slots, "firstColumn", { key: 2 }) :
|
|
5808
|
+
}, null, 8, ["label", "headerAlign"])) : F("", !0),
|
|
5809
|
+
Re().firstColumn ? De(E.$slots, "firstColumn", { key: 2 }) : F("", !0),
|
|
5808
5810
|
(d(!0), I(oe, null, Me(te.value, (Fe, Je) => (d(), S(qr, {
|
|
5809
5811
|
key: Fe.__id + "-" + Fe.label + "-" + Je,
|
|
5810
5812
|
item: Fe,
|
|
@@ -5841,7 +5843,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5841
5843
|
ae("span", null, de(Je.label || "合计") + ":", 1),
|
|
5842
5844
|
ae("p", null, de(Je.value || 0), 1)
|
|
5843
5845
|
]))), 128))
|
|
5844
|
-
], 4)) :
|
|
5846
|
+
], 4)) : F("", !0)
|
|
5845
5847
|
];
|
|
5846
5848
|
}),
|
|
5847
5849
|
key: "1"
|
|
@@ -5861,7 +5863,7 @@ const Zr = /* @__PURE__ */ Ae(Wr, [["__scopeId", "data-v-7550a821"]]), Hr = {
|
|
|
5861
5863
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
5862
5864
|
total: Y.total
|
|
5863
5865
|
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
5864
|
-
])) :
|
|
5866
|
+
])) : F("", !0),
|
|
5865
5867
|
De(E.$slots, "bottom", { tableData: k.value })
|
|
5866
5868
|
]);
|
|
5867
5869
|
};
|
|
@@ -6099,8 +6101,8 @@ function cl(e, t, l, n) {
|
|
|
6099
6101
|
var s = !l;
|
|
6100
6102
|
l || (l = {});
|
|
6101
6103
|
for (var r = -1, a = t.length; ++r < a; ) {
|
|
6102
|
-
var o = t[r],
|
|
6103
|
-
|
|
6104
|
+
var o = t[r], g = n ? n(l[o], e[o], o, l, e) : void 0;
|
|
6105
|
+
g === void 0 && (g = e[o]), s ? ka(l, o, g) : Va(l, o, g);
|
|
6104
6106
|
}
|
|
6105
6107
|
return l;
|
|
6106
6108
|
}
|
|
@@ -6159,13 +6161,13 @@ var sn = Ct && Ct.isTypedArray, Qd = sn ? _l(sn) : Bd;
|
|
|
6159
6161
|
const Ud = Qd;
|
|
6160
6162
|
var Fd = Object.prototype, Rd = Fd.hasOwnProperty;
|
|
6161
6163
|
function Ga(e, t) {
|
|
6162
|
-
var l = hl(e), n = !l && rd(e), s = !l && !n && Ra(e), r = !l && !n && !s && Ud(e), a = l || n || s || r, o = a ? ad(e.length, String) : [],
|
|
6164
|
+
var l = hl(e), n = !l && rd(e), s = !l && !n && Ra(e), r = !l && !n && !s && Ud(e), a = l || n || s || r, o = a ? ad(e.length, String) : [], g = o.length;
|
|
6163
6165
|
for (var u in e)
|
|
6164
6166
|
(t || Rd.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6165
6167
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6166
6168
|
s && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6167
6169
|
r && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
6168
|
-
Xc(u,
|
|
6170
|
+
Xc(u, g))) && o.push(u);
|
|
6169
6171
|
return o;
|
|
6170
6172
|
}
|
|
6171
6173
|
function Ka(e, t) {
|
|
@@ -6526,7 +6528,7 @@ var Qf = 1, Uf = 2, Ff = 4, eo = "[object Arguments]", Rf = "[object Array]", $f
|
|
|
6526
6528
|
Le[eo] = Le[Rf] = Le[lg] = Le[ng] = Le[$f] = Le[Gf] = Le[ag] = Le[og] = Le[sg] = Le[ug] = Le[ig] = Le[Zf] = Le[Hf] = Le[lo] = Le[qf] = Le[Jf] = Le[Xf] = Le[eg] = Le[rg] = Le[cg] = Le[dg] = Le[Mg] = !0;
|
|
6527
6529
|
Le[Kf] = Le[to] = Le[tg] = !1;
|
|
6528
6530
|
function il(e, t, l, n, s, r) {
|
|
6529
|
-
var a, o = t & Qf,
|
|
6531
|
+
var a, o = t & Qf, g = t & Uf, u = t & Ff;
|
|
6530
6532
|
if (l && (a = s ? l(e, n, s, r) : l(e)), a !== void 0)
|
|
6531
6533
|
return a;
|
|
6532
6534
|
if (!jt(e))
|
|
@@ -6540,8 +6542,8 @@ function il(e, t, l, n, s, r) {
|
|
|
6540
6542
|
if (Ra(e))
|
|
6541
6543
|
return SM(e, o);
|
|
6542
6544
|
if (c == lo || c == eo || j && !s) {
|
|
6543
|
-
if (a =
|
|
6544
|
-
return
|
|
6545
|
+
if (a = g || j ? {} : Lf(e), !o)
|
|
6546
|
+
return g ? RM(e, EM(a, e)) : QM(e, CM(a, e));
|
|
6545
6547
|
} else {
|
|
6546
6548
|
if (!Le[c])
|
|
6547
6549
|
return s ? e : {};
|
|
@@ -6557,9 +6559,9 @@ function il(e, t, l, n, s, r) {
|
|
|
6557
6559
|
}) : Sf(e) && e.forEach(function(B, b) {
|
|
6558
6560
|
a.set(b, il(B, t, l, b, e, r));
|
|
6559
6561
|
});
|
|
6560
|
-
var m = u ?
|
|
6561
|
-
return Hc(
|
|
6562
|
-
|
|
6562
|
+
var m = u ? g ? GM : $M : g ? Cl : Ll, $ = i ? void 0 : m(e);
|
|
6563
|
+
return Hc($ || e, function(B, b) {
|
|
6564
|
+
$ && (b = B, B = e[b]), Va(a, b, il(B, t, l, b, e, r));
|
|
6563
6565
|
}), a;
|
|
6564
6566
|
}
|
|
6565
6567
|
var fg = 1, gg = 4;
|
|
@@ -6572,7 +6574,7 @@ var jg = function() {
|
|
|
6572
6574
|
const yl = jg;
|
|
6573
6575
|
var pg = "Expected a function", yg = Math.max, zg = Math.min;
|
|
6574
6576
|
function mg(e, t, l) {
|
|
6575
|
-
var n, s, r, a, o,
|
|
6577
|
+
var n, s, r, a, o, g, u = 0, i = !1, c = !1, j = !0;
|
|
6576
6578
|
if (typeof e != "function")
|
|
6577
6579
|
throw new TypeError(pg);
|
|
6578
6580
|
t = Xl(t) || 0, jt(l) && (i = !!l.leading, c = "maxWait" in l, r = c ? yg(Xl(l.maxWait) || 0, t) : r, j = "trailing" in l ? !!l.trailing : j);
|
|
@@ -6583,40 +6585,40 @@ function mg(e, t, l) {
|
|
|
6583
6585
|
function m(P) {
|
|
6584
6586
|
return u = P, o = setTimeout(b, t), i ? p(P) : a;
|
|
6585
6587
|
}
|
|
6586
|
-
function
|
|
6587
|
-
var T = P -
|
|
6588
|
+
function $(P) {
|
|
6589
|
+
var T = P - g, L = P - u, y = t - T;
|
|
6588
6590
|
return c ? zg(y, r - L) : y;
|
|
6589
6591
|
}
|
|
6590
6592
|
function B(P) {
|
|
6591
|
-
var T = P -
|
|
6592
|
-
return
|
|
6593
|
+
var T = P - g, L = P - u;
|
|
6594
|
+
return g === void 0 || T >= t || T < 0 || c && L >= r;
|
|
6593
6595
|
}
|
|
6594
6596
|
function b() {
|
|
6595
6597
|
var P = yl();
|
|
6596
6598
|
if (B(P))
|
|
6597
6599
|
return Q(P);
|
|
6598
|
-
o = setTimeout(b,
|
|
6600
|
+
o = setTimeout(b, $(P));
|
|
6599
6601
|
}
|
|
6600
6602
|
function Q(P) {
|
|
6601
6603
|
return o = void 0, j && n ? p(P) : (n = s = void 0, a);
|
|
6602
6604
|
}
|
|
6603
6605
|
function w() {
|
|
6604
|
-
o !== void 0 && clearTimeout(o), u = 0, n =
|
|
6606
|
+
o !== void 0 && clearTimeout(o), u = 0, n = g = s = o = void 0;
|
|
6605
6607
|
}
|
|
6606
|
-
function
|
|
6608
|
+
function v() {
|
|
6607
6609
|
return o === void 0 ? a : Q(yl());
|
|
6608
6610
|
}
|
|
6609
6611
|
function G() {
|
|
6610
6612
|
var P = yl(), T = B(P);
|
|
6611
|
-
if (n = arguments, s = this,
|
|
6613
|
+
if (n = arguments, s = this, g = P, T) {
|
|
6612
6614
|
if (o === void 0)
|
|
6613
|
-
return m(
|
|
6615
|
+
return m(g);
|
|
6614
6616
|
if (c)
|
|
6615
|
-
return clearTimeout(o), o = setTimeout(b, t), p(
|
|
6617
|
+
return clearTimeout(o), o = setTimeout(b, t), p(g);
|
|
6616
6618
|
}
|
|
6617
6619
|
return o === void 0 && (o = setTimeout(b, t)), a;
|
|
6618
6620
|
}
|
|
6619
|
-
return G.cancel = w, G.flush =
|
|
6621
|
+
return G.cancel = w, G.flush = v, G;
|
|
6620
6622
|
}
|
|
6621
6623
|
const Ig = {
|
|
6622
6624
|
install: (e, t, l, n) => {
|