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