iking-web-ui-pro 1.0.44 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcess/ik.index.es.js +177 -171
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +239 -233
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +478 -472
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +88 -82
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +273 -267
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +527 -523
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-CS_y74Sj.mjs → index-DTi9E0jO.mjs} +4302 -4292
- package/dist/{index.es-BUP3pLAo.mjs → index.es-B77Iiv-O.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +70 -70
- package/dist/{jspdf.es.min-Ct9vMFKc.mjs → jspdf.es.min-DVvGi1xM.mjs} +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as W, createElementBlock as v, openBlock as p, createElementVNode as d, normalizeClass as pe, toDisplayString as D, createVNode as A, unref as x, inject as
|
|
2
|
-
import { ElButton as
|
|
1
|
+
import { defineComponent as W, createElementBlock as v, openBlock as p, createElementVNode as d, normalizeClass as pe, toDisplayString as D, createVNode as A, unref as x, inject as ve, computed as S, resolveComponent as de, createBlock as V, createCommentVNode as k, ref as U, watch as Z, Fragment as E, withCtx as w, createTextVNode as ae, renderList as te, useCssVars as ot, toRef as st, reactive as Ie, nextTick as Me, watchEffect as Ee, normalizeStyle as nt, withDirectives as Ae, withModifiers as xe, vShow as je, isVNode as rt, createSlots as it, withKeys as ut, renderSlot as pt } from "vue";
|
|
2
|
+
import { ElButton as oe, ElCheckbox as ce, ElCheckboxGroup as Oe, ElRadioGroup as ke, ElRadio as Pe, ElDialog as dt, ElInput as We, ElBreadcrumb as ct, ElBreadcrumbItem as ft, vLoading as _e, ElFormItem as ht, ElTreeSelect as vt, ElDatePicker as At, ElSelect as mt, ElOption as gt, ElInputNumber as yt, ElCard as xt, ElForm as Ot, ElRow as kt, ElCol as Pt, ElIcon as bt } from "element-plus";
|
|
3
3
|
import { ikStore as Be, _ as ee, ikEvent as wt } from "iking-utils-pro";
|
|
4
4
|
import Ct from "vuedraggable";
|
|
5
5
|
import Lt from "axios";
|
|
6
6
|
const Ne = (a, c) => (a.install = (e) => {
|
|
7
|
-
for (const
|
|
8
|
-
e.component(
|
|
7
|
+
for (const l of [a, ...Object.values({})])
|
|
8
|
+
e.component(l.name, l);
|
|
9
9
|
}, a);
|
|
10
10
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
11
11
|
var _t = /* @__PURE__ */ W({
|
|
@@ -92,7 +92,7 @@ var _t = /* @__PURE__ */ W({
|
|
|
92
92
|
})
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
|
-
}), Ht = Rt, J = /* @__PURE__ */ ((a) => (a.input = "input", a.area = "area", a.number = "number", a.select = "select", a.date = "date", a.datetime = "datetime", a.checkbox = "checkbox", a.radio = "radio", a.treeselect = "treeselect", a.choosePerson = "choosePerson", a))(J || {}),
|
|
95
|
+
}), Ht = Rt, J = /* @__PURE__ */ ((a) => (a.input = "input", a.area = "area", a.number = "number", a.select = "select", a.date = "date", a.datetime = "datetime", a.checkbox = "checkbox", a.radio = "radio", a.treeselect = "treeselect", a.choosePerson = "choosePerson", a))(J || {}), ue = /* @__PURE__ */ ((a) => (a.year = "year", a.month = "month", a.date = "date", a.dates = "dates", a.datetime = "datetime", a.week = "week", a.datetimerange = "datetimerange", a.daterange = "daterange", a.monthrange = "monthrange", a))(ue || {}), jt = /* @__PURE__ */ ((a) => (a.center = "center", a.left = "left", a.right = "right", a))(jt || {});
|
|
96
96
|
const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @__PURE__ */ W({
|
|
97
97
|
__name: "IkSearchHead",
|
|
98
98
|
props: {
|
|
@@ -105,7 +105,7 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
105
105
|
emits: ["import", "export", "delete"],
|
|
106
106
|
setup(a, { emit: c }) {
|
|
107
107
|
const e = c;
|
|
108
|
-
return (
|
|
108
|
+
return (l, P) => (p(), v(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
class: pe(["ik-head", a.rowData.length === 0 ? "pack-up" : "ik-unfold"])
|
|
@@ -119,19 +119,19 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
119
119
|
/* TEXT */
|
|
120
120
|
),
|
|
121
121
|
d("div", Nt, [
|
|
122
|
-
A(x(
|
|
122
|
+
A(x(oe), {
|
|
123
123
|
class: "ik-head-icon",
|
|
124
124
|
title: "查询",
|
|
125
125
|
icon: x(St),
|
|
126
126
|
onClick: P[0] || (P[0] = (y) => e("delete", a.rowData))
|
|
127
127
|
}, null, 8, ["icon"]),
|
|
128
|
-
A(x(
|
|
128
|
+
A(x(oe), {
|
|
129
129
|
class: "ik-head-icon",
|
|
130
130
|
title: "导入",
|
|
131
131
|
icon: x(Ht),
|
|
132
132
|
onClick: P[1] || (P[1] = (y) => e("import", a.rowData))
|
|
133
133
|
}, null, 8, ["icon"]),
|
|
134
|
-
A(x(
|
|
134
|
+
A(x(oe), {
|
|
135
135
|
class: "ik-head-icon",
|
|
136
136
|
title: "导出",
|
|
137
137
|
icon: x(Ut),
|
|
@@ -145,8 +145,8 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
145
145
|
}
|
|
146
146
|
}), X = (a, c) => {
|
|
147
147
|
const e = a.__vccOpts || a;
|
|
148
|
-
for (const [
|
|
149
|
-
e[
|
|
148
|
+
for (const [l, P] of c)
|
|
149
|
+
e[l] = P;
|
|
150
150
|
return e;
|
|
151
151
|
}, Gt = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-61aa086d"]]), zt = (a, c) => c ? c != null && c.startsWith("http") ? c : `${a || location.origin}${c}` : "", Re = [
|
|
152
152
|
"csv",
|
|
@@ -204,7 +204,7 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
204
204
|
"flv",
|
|
205
205
|
"tls"
|
|
206
206
|
], Qt = (a) => {
|
|
207
|
-
const c =
|
|
207
|
+
const c = ve("loadUrl"), e = S(() => a.loadUrl || a.fileUrl || (c == null ? void 0 : c.value)), l = ve("uploadUrl"), P = S(() => a.action || a.uploadUrl || (l == null ? void 0 : l.value)), y = ve("token"), _ = S(() => a.token || (y == null ? void 0 : y.value)), b = ve("onlyofficeConfig"), M = S(() => a.onlyofficeConfig || (b == null ? void 0 : b.value)), I = ve("userInfo"), C = S(() => a.userInfo || (I == null ? void 0 : I.value)), R = [...Re, ...Re.map((h) => h.toLocaleUpperCase())];
|
|
208
208
|
return {
|
|
209
209
|
cLoadUrl: e,
|
|
210
210
|
cUploadUrl: P,
|
|
@@ -420,7 +420,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
420
420
|
}
|
|
421
421
|
},
|
|
422
422
|
setup(a) {
|
|
423
|
-
const c = a, { cLoadUrl: e } = Qt(c),
|
|
423
|
+
const c = a, { cLoadUrl: e } = Qt(c), l = (P) => zt(e.value, P);
|
|
424
424
|
return (P, y) => {
|
|
425
425
|
const _ = de("el-avatar");
|
|
426
426
|
return p(), v("div", fl, [
|
|
@@ -428,7 +428,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
428
428
|
a.element[a.fixPropOpt.avatar] ? (p(), V(_, {
|
|
429
429
|
key: 0,
|
|
430
430
|
shape: "square",
|
|
431
|
-
src:
|
|
431
|
+
src: l(a.fixPropOpt.avatar ? a.element[a.fixPropOpt.avatar] : "")
|
|
432
432
|
}, null, 8, ["src"])) : (p(), v(
|
|
433
433
|
"div",
|
|
434
434
|
vl,
|
|
@@ -528,26 +528,31 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
528
528
|
emits: ["change", "check", "handChild"],
|
|
529
529
|
setup(a, { emit: c }) {
|
|
530
530
|
var h, s;
|
|
531
|
-
const e = a,
|
|
531
|
+
const e = a, l = U(!1);
|
|
532
532
|
Z(
|
|
533
533
|
() => e.handList,
|
|
534
534
|
() => {
|
|
535
|
+
var f;
|
|
536
|
+
if (!((f = e.handList) != null && f.length)) {
|
|
537
|
+
l.value = !1;
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
535
540
|
const n = e.list.filter(
|
|
536
|
-
(
|
|
541
|
+
(t) => e.chooseType.includes(t[e.fixPropOpt.type].toLowerCase())
|
|
537
542
|
).every(
|
|
538
|
-
(
|
|
539
|
-
(
|
|
543
|
+
(t) => e.handList.some(
|
|
544
|
+
(r) => r[e.fixPropOpt.id] === t[e.fixPropOpt.id]
|
|
540
545
|
)
|
|
541
546
|
);
|
|
542
|
-
|
|
547
|
+
l.value = n;
|
|
543
548
|
},
|
|
544
549
|
{ immediate: !0 }
|
|
545
550
|
);
|
|
546
551
|
const P = S(() => {
|
|
547
|
-
var
|
|
548
|
-
const n = (
|
|
552
|
+
var t, r, O;
|
|
553
|
+
const n = (t = e.handList.filter(
|
|
549
554
|
(m) => e.chooseType.includes(m[e.fixPropOpt.type].toLowerCase())
|
|
550
|
-
)) == null ? void 0 :
|
|
555
|
+
)) == null ? void 0 : t.length, f = e.list.filter(
|
|
551
556
|
(m) => e.chooseType.includes(m[e.fixPropOpt.type].toLowerCase())
|
|
552
557
|
).every(
|
|
553
558
|
(m) => e.handList.some(
|
|
@@ -558,9 +563,9 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
558
563
|
}), y = U(
|
|
559
564
|
e.handList.map((n) => n[e.fixPropOpt.id])
|
|
560
565
|
), _ = U((s = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : s[e.fixPropOpt.id]), b = c, M = (n) => {
|
|
561
|
-
const f = n ? e.list.map((
|
|
562
|
-
if (e.chooseType.includes(
|
|
563
|
-
return
|
|
566
|
+
const f = n ? e.list.map((t) => {
|
|
567
|
+
if (e.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) && t.available !== !1)
|
|
568
|
+
return t[e.fixPropOpt.id];
|
|
564
569
|
}) : [];
|
|
565
570
|
b("change", f, n ? e.list : []);
|
|
566
571
|
}, I = (n) => {
|
|
@@ -571,7 +576,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
571
576
|
f || b("handChild", n);
|
|
572
577
|
};
|
|
573
578
|
return (n, f) => {
|
|
574
|
-
const
|
|
579
|
+
const t = de("el-scrollbar");
|
|
575
580
|
return p(), v(
|
|
576
581
|
E,
|
|
577
582
|
null,
|
|
@@ -580,13 +585,13 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
580
585
|
d("div", ml, [
|
|
581
586
|
n.multiple && n.list && n.list.length ? (p(), V(x(ce), {
|
|
582
587
|
key: 0,
|
|
583
|
-
modelValue:
|
|
584
|
-
"onUpdate:modelValue": f[0] || (f[0] = (r) =>
|
|
588
|
+
modelValue: l.value,
|
|
589
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => l.value = r),
|
|
585
590
|
indeterminate: P.value,
|
|
586
591
|
onChange: M
|
|
587
592
|
}, {
|
|
588
593
|
default: w(() => [...f[3] || (f[3] = [
|
|
589
|
-
|
|
594
|
+
ae(
|
|
590
595
|
"全选",
|
|
591
596
|
-1
|
|
592
597
|
/* CACHED */
|
|
@@ -595,7 +600,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
595
600
|
_: 1
|
|
596
601
|
/* STABLE */
|
|
597
602
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
598
|
-
A(
|
|
603
|
+
A(t, null, {
|
|
599
604
|
default: w(() => [
|
|
600
605
|
n.list && n.list.length ? (p(), v("ul", gl, [
|
|
601
606
|
n.multiple ? (p(), V(x(Oe), {
|
|
@@ -846,7 +851,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
846
851
|
);
|
|
847
852
|
};
|
|
848
853
|
}
|
|
849
|
-
}), Yl = /* @__PURE__ */ X(Nl, [["__scopeId", "data-v-
|
|
854
|
+
}), Yl = /* @__PURE__ */ X(Nl, [["__scopeId", "data-v-f7a238bb"]]), Gl = { class: "left-pick-list" }, zl = {
|
|
850
855
|
key: 0,
|
|
851
856
|
class: "post-view-list"
|
|
852
857
|
}, Ql = { class: "iconBox" }, Fl = {
|
|
@@ -864,12 +869,12 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
864
869
|
emits: ["change", "check"],
|
|
865
870
|
setup(a, { emit: c }) {
|
|
866
871
|
var R, h;
|
|
867
|
-
const e = a,
|
|
872
|
+
const e = a, l = S(() => {
|
|
868
873
|
var s, n;
|
|
869
874
|
return ((s = e.handList) == null ? void 0 : s.length) === ((n = e.list) == null ? void 0 : n.length);
|
|
870
875
|
}), P = S(() => {
|
|
871
|
-
var f,
|
|
872
|
-
const s = (f = e.handList) == null ? void 0 : f.length, n = (
|
|
876
|
+
var f, t, r, O;
|
|
877
|
+
const s = (f = e.handList) == null ? void 0 : f.length, n = (t = e.list) == null ? void 0 : t.length;
|
|
873
878
|
return e.multiple ? y.value = e.handList.map((m) => m[e.fixPropOpt.id]) : _.value = (O = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : O[e.fixPropOpt.id], s > 0 && s < n;
|
|
874
879
|
}), y = U(
|
|
875
880
|
e.handList.map((s) => s[e.fixPropOpt.id])
|
|
@@ -891,13 +896,13 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
891
896
|
d("div", Gl, [
|
|
892
897
|
s.multiple && s.chooseType.includes("post") && s.list && s.list.length ? (p(), V(x(ce), {
|
|
893
898
|
key: 0,
|
|
894
|
-
modelValue:
|
|
895
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
899
|
+
modelValue: l.value,
|
|
900
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => l.value = t),
|
|
896
901
|
indeterminate: P.value,
|
|
897
902
|
onChange: M
|
|
898
903
|
}, {
|
|
899
904
|
default: w(() => [...n[3] || (n[3] = [
|
|
900
|
-
|
|
905
|
+
ae(
|
|
901
906
|
"全选",
|
|
902
907
|
-1
|
|
903
908
|
/* CACHED */
|
|
@@ -912,33 +917,33 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
912
917
|
s.multiple ? (p(), V(x(Oe), {
|
|
913
918
|
key: 0,
|
|
914
919
|
modelValue: y.value,
|
|
915
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
920
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => y.value = t),
|
|
916
921
|
onChange: I
|
|
917
922
|
}, {
|
|
918
923
|
default: w(() => [
|
|
919
924
|
(p(!0), v(
|
|
920
925
|
E,
|
|
921
926
|
null,
|
|
922
|
-
te(s.list, (
|
|
923
|
-
key:
|
|
927
|
+
te(s.list, (t) => (p(), v("li", {
|
|
928
|
+
key: t[e.fixPropOpt.id]
|
|
924
929
|
}, [
|
|
925
|
-
s.chooseType.includes(
|
|
930
|
+
s.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(ce), {
|
|
926
931
|
key: 0,
|
|
927
|
-
label:
|
|
932
|
+
label: t[e.fixPropOpt.id]
|
|
928
933
|
}, {
|
|
929
934
|
default: w(() => [
|
|
930
935
|
d("div", Ql, [
|
|
931
936
|
A(G, {
|
|
932
937
|
fixTypeOpt: e.fixTypeOpt,
|
|
933
938
|
fixPropOpt: e.fixPropOpt,
|
|
934
|
-
element:
|
|
939
|
+
element: t,
|
|
935
940
|
imageBaseUrl: e.imageBaseUrl
|
|
936
941
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
937
942
|
]),
|
|
938
943
|
d(
|
|
939
944
|
"p",
|
|
940
945
|
null,
|
|
941
|
-
D(
|
|
946
|
+
D(t[e.fixPropOpt.name]),
|
|
942
947
|
1
|
|
943
948
|
/* TEXT */
|
|
944
949
|
)
|
|
@@ -957,14 +962,14 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
957
962
|
A(G, {
|
|
958
963
|
fixTypeOpt: e.fixTypeOpt,
|
|
959
964
|
fixPropOpt: e.fixPropOpt,
|
|
960
|
-
element:
|
|
965
|
+
element: t,
|
|
961
966
|
imageBaseUrl: e.imageBaseUrl
|
|
962
967
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
963
968
|
]),
|
|
964
969
|
d(
|
|
965
970
|
"div",
|
|
966
971
|
Kl,
|
|
967
|
-
D(
|
|
972
|
+
D(t[e.fixPropOpt.name]),
|
|
968
973
|
1
|
|
969
974
|
/* TEXT */
|
|
970
975
|
)
|
|
@@ -980,20 +985,20 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
980
985
|
key: 1,
|
|
981
986
|
isIndeterminate: P.value,
|
|
982
987
|
modelValue: _.value,
|
|
983
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
988
|
+
"onUpdate:modelValue": n[2] || (n[2] = (t) => _.value = t),
|
|
984
989
|
onChange: C
|
|
985
990
|
}, {
|
|
986
991
|
default: w(() => [
|
|
987
992
|
(p(!0), v(
|
|
988
993
|
E,
|
|
989
994
|
null,
|
|
990
|
-
te(s.list, (
|
|
995
|
+
te(s.list, (t) => (p(), v("li", {
|
|
991
996
|
class: "w-full",
|
|
992
|
-
key:
|
|
997
|
+
key: t[e.fixPropOpt.id]
|
|
993
998
|
}, [
|
|
994
|
-
s.chooseType.includes(
|
|
999
|
+
s.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(Pe), {
|
|
995
1000
|
key: 0,
|
|
996
|
-
label:
|
|
1001
|
+
label: t[e.fixPropOpt.id]
|
|
997
1002
|
}, {
|
|
998
1003
|
default: w(() => [
|
|
999
1004
|
d("div", Zl, [
|
|
@@ -1001,14 +1006,14 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1001
1006
|
A(G, {
|
|
1002
1007
|
fixTypeOpt: e.fixTypeOpt,
|
|
1003
1008
|
fixPropOpt: e.fixPropOpt,
|
|
1004
|
-
element:
|
|
1009
|
+
element: t,
|
|
1005
1010
|
imageBaseUrl: e.imageBaseUrl
|
|
1006
1011
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1007
1012
|
]),
|
|
1008
1013
|
d(
|
|
1009
1014
|
"p",
|
|
1010
1015
|
null,
|
|
1011
|
-
D(
|
|
1016
|
+
D(t[e.fixPropOpt.name]),
|
|
1012
1017
|
1
|
|
1013
1018
|
/* TEXT */
|
|
1014
1019
|
)
|
|
@@ -1028,14 +1033,14 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1028
1033
|
A(G, {
|
|
1029
1034
|
fixTypeOpt: e.fixTypeOpt,
|
|
1030
1035
|
fixPropOpt: e.fixPropOpt,
|
|
1031
|
-
element:
|
|
1036
|
+
element: t,
|
|
1032
1037
|
imageBaseUrl: e.imageBaseUrl
|
|
1033
1038
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1034
1039
|
]),
|
|
1035
1040
|
d(
|
|
1036
1041
|
"div",
|
|
1037
1042
|
ea,
|
|
1038
|
-
D(
|
|
1043
|
+
D(t[e.fixPropOpt.name]),
|
|
1039
1044
|
1
|
|
1040
1045
|
/* TEXT */
|
|
1041
1046
|
)
|
|
@@ -1096,12 +1101,12 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1096
1101
|
emits: ["change", "check"],
|
|
1097
1102
|
setup(a, { emit: c }) {
|
|
1098
1103
|
var R, h;
|
|
1099
|
-
const e = a,
|
|
1104
|
+
const e = a, l = S(() => {
|
|
1100
1105
|
var s, n;
|
|
1101
1106
|
return ((s = e.handList) == null ? void 0 : s.length) === ((n = e.list) == null ? void 0 : n.length);
|
|
1102
1107
|
}), P = S(() => {
|
|
1103
|
-
var f,
|
|
1104
|
-
const s = (f = e.handList) == null ? void 0 : f.length, n = (
|
|
1108
|
+
var f, t, r, O;
|
|
1109
|
+
const s = (f = e.handList) == null ? void 0 : f.length, n = (t = e.list) == null ? void 0 : t.length;
|
|
1105
1110
|
return e.multiple ? y.value = e.handList.map((m) => m[e.fixPropOpt.id]) : _.value = (O = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : O[e.fixPropOpt.id], s > 0 && s < n;
|
|
1106
1111
|
}), y = U(
|
|
1107
1112
|
e.handList.map((s) => s[e.fixPropOpt.id])
|
|
@@ -1123,13 +1128,13 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1123
1128
|
d("div", oa, [
|
|
1124
1129
|
s.multiple && s.chooseType.includes("role") && s.list && s.list.length ? (p(), V(x(ce), {
|
|
1125
1130
|
key: 0,
|
|
1126
|
-
modelValue:
|
|
1127
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1131
|
+
modelValue: l.value,
|
|
1132
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => l.value = t),
|
|
1128
1133
|
indeterminate: P.value,
|
|
1129
1134
|
onChange: M
|
|
1130
1135
|
}, {
|
|
1131
1136
|
default: w(() => [...n[3] || (n[3] = [
|
|
1132
|
-
|
|
1137
|
+
ae(
|
|
1133
1138
|
"全选",
|
|
1134
1139
|
-1
|
|
1135
1140
|
/* CACHED */
|
|
@@ -1144,34 +1149,34 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1144
1149
|
s.multiple ? (p(), V(x(Oe), {
|
|
1145
1150
|
key: 0,
|
|
1146
1151
|
modelValue: y.value,
|
|
1147
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1152
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => y.value = t),
|
|
1148
1153
|
onChange: I
|
|
1149
1154
|
}, {
|
|
1150
1155
|
default: w(() => [
|
|
1151
1156
|
(p(!0), v(
|
|
1152
1157
|
E,
|
|
1153
1158
|
null,
|
|
1154
|
-
te(s.list, (
|
|
1155
|
-
key:
|
|
1159
|
+
te(s.list, (t) => (p(), v("li", {
|
|
1160
|
+
key: t[s.fixPropOpt.id]
|
|
1156
1161
|
}, [
|
|
1157
|
-
s.chooseType.includes(
|
|
1162
|
+
s.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(ce), {
|
|
1158
1163
|
key: 0,
|
|
1159
|
-
label:
|
|
1160
|
-
value:
|
|
1161
|
-
disabled:
|
|
1164
|
+
label: t[s.fixPropOpt.id],
|
|
1165
|
+
value: t[s.fixPropOpt.id],
|
|
1166
|
+
disabled: t.disabled
|
|
1162
1167
|
}, {
|
|
1163
1168
|
default: w(() => [
|
|
1164
1169
|
d("div", na, [
|
|
1165
1170
|
A(G, {
|
|
1166
1171
|
fixTypeOpt: e.fixTypeOpt,
|
|
1167
1172
|
fixPropOpt: e.fixPropOpt,
|
|
1168
|
-
element:
|
|
1173
|
+
element: t,
|
|
1169
1174
|
imageBaseUrl: e.imageBaseUrl
|
|
1170
1175
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1171
1176
|
]),
|
|
1172
1177
|
d("p", {
|
|
1173
|
-
title:
|
|
1174
|
-
}, D(
|
|
1178
|
+
title: t[s.fixPropOpt.name]
|
|
1179
|
+
}, D(t[s.fixPropOpt.name]), 9, ra)
|
|
1175
1180
|
]),
|
|
1176
1181
|
_: 2
|
|
1177
1182
|
/* DYNAMIC */
|
|
@@ -1187,14 +1192,14 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1187
1192
|
A(G, {
|
|
1188
1193
|
fixTypeOpt: e.fixTypeOpt,
|
|
1189
1194
|
fixPropOpt: e.fixPropOpt,
|
|
1190
|
-
element:
|
|
1195
|
+
element: t,
|
|
1191
1196
|
imageBaseUrl: e.imageBaseUrl
|
|
1192
1197
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1193
1198
|
]),
|
|
1194
1199
|
d("div", {
|
|
1195
1200
|
class: "title",
|
|
1196
|
-
title:
|
|
1197
|
-
}, D(
|
|
1201
|
+
title: t[s.fixPropOpt.name]
|
|
1202
|
+
}, D(t[s.fixPropOpt.name]), 9, pa)
|
|
1198
1203
|
]))
|
|
1199
1204
|
]))),
|
|
1200
1205
|
128
|
|
@@ -1207,22 +1212,22 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1207
1212
|
key: 1,
|
|
1208
1213
|
indeterminate: P.value,
|
|
1209
1214
|
modelValue: _.value,
|
|
1210
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1215
|
+
"onUpdate:modelValue": n[2] || (n[2] = (t) => _.value = t),
|
|
1211
1216
|
onChange: C
|
|
1212
1217
|
}, {
|
|
1213
1218
|
default: w(() => [
|
|
1214
1219
|
(p(!0), v(
|
|
1215
1220
|
E,
|
|
1216
1221
|
null,
|
|
1217
|
-
te(s.list, (
|
|
1222
|
+
te(s.list, (t) => (p(), v("li", {
|
|
1218
1223
|
class: "w-full",
|
|
1219
|
-
key:
|
|
1224
|
+
key: t[s.fixPropOpt.id]
|
|
1220
1225
|
}, [
|
|
1221
|
-
s.chooseType.includes(
|
|
1226
|
+
s.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(Pe), {
|
|
1222
1227
|
key: 0,
|
|
1223
|
-
label:
|
|
1224
|
-
value:
|
|
1225
|
-
disabled:
|
|
1228
|
+
label: t[s.fixPropOpt.id],
|
|
1229
|
+
value: t[s.fixPropOpt.id],
|
|
1230
|
+
disabled: t.disabled
|
|
1226
1231
|
}, {
|
|
1227
1232
|
default: w(() => [
|
|
1228
1233
|
d("div", da, [
|
|
@@ -1230,13 +1235,13 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1230
1235
|
A(G, {
|
|
1231
1236
|
fixTypeOpt: e.fixTypeOpt,
|
|
1232
1237
|
fixPropOpt: e.fixPropOpt,
|
|
1233
|
-
element:
|
|
1238
|
+
element: t,
|
|
1234
1239
|
imageBaseUrl: e.imageBaseUrl
|
|
1235
1240
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1236
1241
|
]),
|
|
1237
1242
|
d("p", {
|
|
1238
|
-
title:
|
|
1239
|
-
}, D(
|
|
1243
|
+
title: t[s.fixPropOpt.name]
|
|
1244
|
+
}, D(t[s.fixPropOpt.name]), 9, fa)
|
|
1240
1245
|
])
|
|
1241
1246
|
]),
|
|
1242
1247
|
_: 2
|
|
@@ -1253,14 +1258,14 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1253
1258
|
A(G, {
|
|
1254
1259
|
fixTypeOpt: e.fixTypeOpt,
|
|
1255
1260
|
fixPropOpt: e.fixPropOpt,
|
|
1256
|
-
element:
|
|
1261
|
+
element: t,
|
|
1257
1262
|
imageBaseUrl: e.imageBaseUrl
|
|
1258
1263
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1259
1264
|
]),
|
|
1260
1265
|
d("div", {
|
|
1261
1266
|
class: "title",
|
|
1262
|
-
title:
|
|
1263
|
-
}, D(
|
|
1267
|
+
title: t[s.fixPropOpt.name]
|
|
1268
|
+
}, D(t[s.fixPropOpt.name]), 9, Aa)
|
|
1264
1269
|
]))
|
|
1265
1270
|
]))),
|
|
1266
1271
|
128
|
|
@@ -1301,7 +1306,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1301
1306
|
};
|
|
1302
1307
|
}
|
|
1303
1308
|
}), ya = /* @__PURE__ */ X(ga, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1304
|
-
var
|
|
1309
|
+
var me = /* @__PURE__ */ ((a) => (a.group = "group", a.role = "role", a.post = "post", a))(me || {});
|
|
1305
1310
|
const xa = {
|
|
1306
1311
|
// 是否允许选择子集
|
|
1307
1312
|
children: {
|
|
@@ -1481,13 +1486,13 @@ const xa = {
|
|
|
1481
1486
|
const c = He("domain");
|
|
1482
1487
|
if (c) {
|
|
1483
1488
|
a["X-DOMAIN"] = c;
|
|
1484
|
-
const
|
|
1485
|
-
c === "APPLICATION" && (a["X-APP"] =
|
|
1489
|
+
const l = He("code");
|
|
1490
|
+
c === "APPLICATION" && (a["X-APP"] = l);
|
|
1486
1491
|
} else
|
|
1487
1492
|
Oa(a);
|
|
1488
1493
|
(e = Be.local.getItem("tenant")) == null || e.code;
|
|
1489
1494
|
}, Pa = (a, c) => {
|
|
1490
|
-
const e = U([]),
|
|
1495
|
+
const e = U([]), l = async (y, _) => {
|
|
1491
1496
|
var F, j, z;
|
|
1492
1497
|
const { url: b, methods: M, headers: I, param: C } = a.value || {}, R = {
|
|
1493
1498
|
// 额外参数
|
|
@@ -1518,7 +1523,7 @@ const xa = {
|
|
|
1518
1523
|
rootDepartment: {}
|
|
1519
1524
|
};
|
|
1520
1525
|
const {
|
|
1521
|
-
departments:
|
|
1526
|
+
departments: t,
|
|
1522
1527
|
roles: r,
|
|
1523
1528
|
posts: O,
|
|
1524
1529
|
users: m,
|
|
@@ -1533,7 +1538,7 @@ const xa = {
|
|
|
1533
1538
|
...H,
|
|
1534
1539
|
id: H.elementId
|
|
1535
1540
|
}), {
|
|
1536
|
-
groupList: ee.cloneDeep(
|
|
1541
|
+
groupList: ee.cloneDeep(t),
|
|
1537
1542
|
roleList: ee.cloneDeep(r),
|
|
1538
1543
|
postList: ee.cloneDeep(O),
|
|
1539
1544
|
userList: ee.cloneDeep(m),
|
|
@@ -1542,9 +1547,9 @@ const xa = {
|
|
|
1542
1547
|
};
|
|
1543
1548
|
};
|
|
1544
1549
|
return {
|
|
1545
|
-
handData:
|
|
1550
|
+
handData: l,
|
|
1546
1551
|
handSetChild: (y, _) => {
|
|
1547
|
-
|
|
1552
|
+
l(y == null ? void 0 : y.elementId, _);
|
|
1548
1553
|
},
|
|
1549
1554
|
bannerList: e
|
|
1550
1555
|
};
|
|
@@ -1557,13 +1562,13 @@ const xa = {
|
|
|
1557
1562
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1558
1563
|
setup(a, { expose: c, emit: e }) {
|
|
1559
1564
|
ot((o) => ({
|
|
1560
|
-
|
|
1565
|
+
v57dba46f: De.value
|
|
1561
1566
|
}));
|
|
1562
|
-
const
|
|
1567
|
+
const l = a, P = U(""), y = U(""), _ = U([]), b = U([]), M = U([]), I = U([]), C = U(!1), R = S(() => z.value.includes("user") ? b.value.concat(_.value) : b.value);
|
|
1563
1568
|
Z(
|
|
1564
|
-
() =>
|
|
1569
|
+
() => l.api,
|
|
1565
1570
|
() => {
|
|
1566
|
-
|
|
1571
|
+
l.show && F("");
|
|
1567
1572
|
}
|
|
1568
1573
|
);
|
|
1569
1574
|
const h = S(() => ({
|
|
@@ -1571,37 +1576,37 @@ const xa = {
|
|
|
1571
1576
|
type: "type",
|
|
1572
1577
|
id: "id",
|
|
1573
1578
|
avatar: "avatar",
|
|
1574
|
-
...
|
|
1579
|
+
...l.propOption
|
|
1575
1580
|
})), s = S(() => ({
|
|
1576
1581
|
user: "USER",
|
|
1577
1582
|
role: "ROLE",
|
|
1578
1583
|
post: "POST",
|
|
1579
1584
|
group: "DEPT",
|
|
1580
|
-
...
|
|
1581
|
-
})), n = U([]), f = Pa(st(
|
|
1582
|
-
|
|
1585
|
+
...l.typeOption
|
|
1586
|
+
})), n = U([]), f = Pa(st(l, "api"), l), t = f.handData, r = f.bannerList;
|
|
1587
|
+
l.immediate && t(y.value, P.value);
|
|
1583
1588
|
const O = (o) => (o.forEach((u) => {
|
|
1584
1589
|
var g, B;
|
|
1585
|
-
u.disabled = ((B = (g =
|
|
1590
|
+
u.disabled = ((B = (g = l.modelValue) == null ? void 0 : g.find(
|
|
1586
1591
|
(Q) => Q[h.value.id] === u[h.value.id]
|
|
1587
1592
|
)) == null ? void 0 : B.disabled) || !1;
|
|
1588
1593
|
}), o), m = async () => {
|
|
1589
|
-
var o, u, g, B, Q, T,
|
|
1594
|
+
var o, u, g, B, Q, T, he, Le;
|
|
1590
1595
|
C.value = !0;
|
|
1591
1596
|
try {
|
|
1592
|
-
if ((o =
|
|
1593
|
-
_.value = (Q =
|
|
1597
|
+
if ((o = l.groupList) != null && o.length || (u = l.userList) != null && u.length || (g = l.roleList) != null && g.length || (B = l.postList) != null && B.length) {
|
|
1598
|
+
_.value = (Q = l.userList) == null ? void 0 : Q.filter(
|
|
1594
1599
|
(q) => q[h.value.name].includes(P.value)
|
|
1595
|
-
), b.value = (T =
|
|
1600
|
+
), b.value = (T = l.groupList) == null ? void 0 : T.filter(
|
|
1596
1601
|
(q) => q[h.value.name].includes(P.value)
|
|
1597
|
-
), M.value = (
|
|
1602
|
+
), M.value = (he = l.roleList) == null ? void 0 : he.filter(
|
|
1598
1603
|
(q) => q[h.value.name].includes(P.value)
|
|
1599
|
-
), I.value = (Le =
|
|
1604
|
+
), I.value = (Le = l.postList) == null ? void 0 : Le.filter(
|
|
1600
1605
|
(q) => q[h.value.name].includes(P.value)
|
|
1601
1606
|
), N(), C.value = !1;
|
|
1602
1607
|
return;
|
|
1603
1608
|
}
|
|
1604
|
-
const Y = await
|
|
1609
|
+
const Y = await t(y.value, P.value);
|
|
1605
1610
|
try {
|
|
1606
1611
|
_.value = O((Y == null ? void 0 : Y.userList) || []), b.value = O((Y == null ? void 0 : Y.groupList) || []), M.value = O((Y == null ? void 0 : Y.roleList) || []), I.value = O((Y == null ? void 0 : Y.postList) || []);
|
|
1607
1612
|
} catch (q) {
|
|
@@ -1652,47 +1657,47 @@ const xa = {
|
|
|
1652
1657
|
}
|
|
1653
1658
|
};
|
|
1654
1659
|
}), z = S(() => {
|
|
1655
|
-
const o =
|
|
1660
|
+
const o = l.chooseType.map((g) => g.toLocaleLowerCase());
|
|
1656
1661
|
let u = [...o];
|
|
1657
1662
|
return o.includes("dep") && (u = [...u, "dept"]), o.includes("dep_user") && (u = [...u, "user"]), u;
|
|
1658
|
-
}), K = U([]),
|
|
1663
|
+
}), K = U([]), fe = (o) => {
|
|
1659
1664
|
K.value = o, K.value.forEach((u) => {
|
|
1660
1665
|
u.readonly = u == null ? void 0 : u.disabled;
|
|
1661
1666
|
});
|
|
1662
|
-
}, le = e,
|
|
1667
|
+
}, le = e, se = U(!1), N = (o = !1) => {
|
|
1663
1668
|
var g;
|
|
1664
|
-
const u = (g =
|
|
1665
|
-
return !o &&
|
|
1669
|
+
const u = (g = l == null ? void 0 : l.userList) != null && g.length ? ee.cloneDeep([...l == null ? void 0 : l.userList, ...l == null ? void 0 : l.groupList]) : [...b.value, ..._.value];
|
|
1670
|
+
return !o && fe(u), u;
|
|
1666
1671
|
};
|
|
1667
1672
|
Z(
|
|
1668
|
-
() =>
|
|
1673
|
+
() => l.show,
|
|
1669
1674
|
async (o) => {
|
|
1670
1675
|
var u;
|
|
1671
|
-
if (
|
|
1672
|
-
y.value = ((u =
|
|
1676
|
+
if (se.value = o, o) {
|
|
1677
|
+
y.value = ((u = l.org) == null ? void 0 : u.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await m() : (_.value = l.userList, b.value = l.groupList, M.value = l.roleList, I.value = l.postList), i.trans = [], L.checkAll = 0, L.indeterminate = !1;
|
|
1673
1678
|
const g = N(!0);
|
|
1674
1679
|
for (const Q of g)
|
|
1675
1680
|
H(Q[h.value.id]) && i.trans.push(Q[h.value.id]);
|
|
1676
1681
|
const B = g.length === i.trans.length;
|
|
1677
1682
|
L.indeterminate = !!(g.length && !B), L.checkAll = Number(g.length && B), Me(() => {
|
|
1678
1683
|
var Q;
|
|
1679
|
-
(Q =
|
|
1680
|
-
|
|
1681
|
-
}) :
|
|
1684
|
+
(Q = l.modelValue) != null && Q.length ? l.modelValue.forEach((T) => {
|
|
1685
|
+
ne(T), l.multiple ? i.trans.push(T[h.value.id]) : i.single = T[h.value.id];
|
|
1686
|
+
}) : ie();
|
|
1682
1687
|
});
|
|
1683
1688
|
} else
|
|
1684
|
-
|
|
1689
|
+
ie();
|
|
1685
1690
|
}
|
|
1686
1691
|
), Ee(() => {
|
|
1687
1692
|
let o = K.value.length;
|
|
1688
1693
|
const u = i.trans.length;
|
|
1689
1694
|
L.indeterminate = i.trans.length ? u !== o : !1, L.checkAll = +(o !== 0 && u === o);
|
|
1690
1695
|
}), Z(
|
|
1691
|
-
() =>
|
|
1696
|
+
() => l.modelValue,
|
|
1692
1697
|
(o) => {
|
|
1693
1698
|
o != null && o.length ? o.forEach((u) => {
|
|
1694
|
-
|
|
1695
|
-
}) :
|
|
1699
|
+
ne(u), l.multiple ? i.trans.push(u[h.value.id]) : i.single = u[h.value.id];
|
|
1700
|
+
}) : ie();
|
|
1696
1701
|
}
|
|
1697
1702
|
);
|
|
1698
1703
|
const $ = (o) => {
|
|
@@ -1717,7 +1722,7 @@ const xa = {
|
|
|
1717
1722
|
return;
|
|
1718
1723
|
}
|
|
1719
1724
|
}
|
|
1720
|
-
},
|
|
1725
|
+
}, ge = (o) => {
|
|
1721
1726
|
$(o);
|
|
1722
1727
|
}, Ye = () => {
|
|
1723
1728
|
}, Ge = (o) => {
|
|
@@ -1740,7 +1745,7 @@ const xa = {
|
|
|
1740
1745
|
break;
|
|
1741
1746
|
}
|
|
1742
1747
|
});
|
|
1743
|
-
},
|
|
1748
|
+
}, ne = (o) => {
|
|
1744
1749
|
if (!H(o[h.value.id])) {
|
|
1745
1750
|
const u = {
|
|
1746
1751
|
...o
|
|
@@ -1774,7 +1779,7 @@ const xa = {
|
|
|
1774
1779
|
(g) => o.includes(g[h.value.id])
|
|
1775
1780
|
);
|
|
1776
1781
|
for (const g of u)
|
|
1777
|
-
g.disabled = Qe(g),
|
|
1782
|
+
g.disabled = Qe(g), ne(g);
|
|
1778
1783
|
}
|
|
1779
1784
|
},
|
|
1780
1785
|
{ deep: !0 }
|
|
@@ -1785,7 +1790,7 @@ const xa = {
|
|
|
1785
1790
|
if (o) {
|
|
1786
1791
|
const g = (u = K.value) == null ? void 0 : u.find((B) => B[h.value.id] === o);
|
|
1787
1792
|
g && (i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [], Me(() => {
|
|
1788
|
-
|
|
1793
|
+
ne(g);
|
|
1789
1794
|
}));
|
|
1790
1795
|
}
|
|
1791
1796
|
}
|
|
@@ -1793,15 +1798,15 @@ const xa = {
|
|
|
1793
1798
|
const Fe = (o) => {
|
|
1794
1799
|
y.value = o == null ? void 0 : o.elementId, m(), r.value.push(o);
|
|
1795
1800
|
}, Ve = S(() => r.value.length), Xe = (o, u) => {
|
|
1796
|
-
!u && !
|
|
1801
|
+
!u && !l.topLink || u !== Ve.value - 1 && (y.value = o == null ? void 0 : o.elementId, m(), r.value.splice(u + 1));
|
|
1797
1802
|
}, Ke = S(
|
|
1798
|
-
() =>
|
|
1803
|
+
() => l.chooseType.includes("role") && l.chooseType.length === 1
|
|
1799
1804
|
), Ze = S(
|
|
1800
|
-
() =>
|
|
1801
|
-
),
|
|
1802
|
-
Ee(() => (
|
|
1803
|
-
const
|
|
1804
|
-
i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [], we.value = [], Ce.value = [],
|
|
1805
|
+
() => l.chooseType.includes("post") && l.chooseType.length === 1
|
|
1806
|
+
), ye = U(l.tabs[0]), re = U(l.tabs[0]);
|
|
1807
|
+
Ee(() => (re.value = Ke.value ? l.tabs[1] : Ze.value ? l.tabs[2] : ye.value, re.value));
|
|
1808
|
+
const ie = () => {
|
|
1809
|
+
i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [], we.value = [], Ce.value = [], ye.value = l.tabs[0], re.value = l.tabs[0], P.value = "", y.value = l.orgPid, r.value.splice(1, r.value.length), i.single = "", n.value = [];
|
|
1805
1810
|
}, $e = () => {
|
|
1806
1811
|
var o;
|
|
1807
1812
|
le(
|
|
@@ -1812,14 +1817,14 @@ const xa = {
|
|
|
1812
1817
|
// 排序后的列表
|
|
1813
1818
|
sort: n.value
|
|
1814
1819
|
})
|
|
1815
|
-
), le("update:modelValue", ee.cloneDeep(((o = j.value) == null ? void 0 : o.list) || [])), le("update:show", !1),
|
|
1820
|
+
), le("update:modelValue", ee.cloneDeep(((o = j.value) == null ? void 0 : o.list) || [])), le("update:show", !1), ie();
|
|
1816
1821
|
}, Se = () => {
|
|
1817
|
-
le("update:show", !1),
|
|
1822
|
+
le("update:show", !1), ie();
|
|
1818
1823
|
};
|
|
1819
1824
|
c({
|
|
1820
|
-
handClear:
|
|
1825
|
+
handClear: ie,
|
|
1821
1826
|
// 清空所有选择
|
|
1822
|
-
handRomeve:
|
|
1827
|
+
handRomeve: ge,
|
|
1823
1828
|
// 移除选中项
|
|
1824
1829
|
handDelete: $
|
|
1825
1830
|
// 删除选中项
|
|
@@ -1831,29 +1836,29 @@ const xa = {
|
|
|
1831
1836
|
{ name: "group", label: "组织架构" },
|
|
1832
1837
|
{ name: "role", label: "角色列表" },
|
|
1833
1838
|
{ name: "post", label: "岗位列表" }
|
|
1834
|
-
].filter((o) =>
|
|
1835
|
-
() => `${typeof
|
|
1839
|
+
].filter((o) => l.tabs.includes(o.name))), De = S(
|
|
1840
|
+
() => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
|
|
1836
1841
|
), be = () => {
|
|
1837
|
-
|
|
1842
|
+
l.multiple || (i.post.clear(), i.role.clear(), i.user.clear(), i.group.clear(), i.single = "");
|
|
1838
1843
|
}, et = S(() => j.value.groups.list.concat(j.value.user.list)), tt = (o, u) => {
|
|
1839
|
-
|
|
1840
|
-
const g =
|
|
1844
|
+
l.multiple || (i.single = "");
|
|
1845
|
+
const g = l.multiple ? o : [o];
|
|
1841
1846
|
if (!g.length) {
|
|
1842
1847
|
i.group.clear(), i.user.clear();
|
|
1843
1848
|
return;
|
|
1844
1849
|
}
|
|
1845
1850
|
be(), u.forEach((B) => {
|
|
1846
|
-
g != null && g.includes(B[h.value.id]) ?
|
|
1851
|
+
g != null && g.includes(B[h.value.id]) ? ne(B) : $(B);
|
|
1847
1852
|
});
|
|
1848
1853
|
}, we = U([]), lt = (o, u) => {
|
|
1849
|
-
|
|
1850
|
-
const g =
|
|
1854
|
+
l.multiple || (i.single = "");
|
|
1855
|
+
const g = l.multiple ? o : [o];
|
|
1851
1856
|
if (!g.length) {
|
|
1852
1857
|
i.role.clear();
|
|
1853
1858
|
return;
|
|
1854
1859
|
}
|
|
1855
1860
|
be(), u.forEach((B) => {
|
|
1856
|
-
g != null && g.includes(B[h.value.id]) ?
|
|
1861
|
+
g != null && g.includes(B[h.value.id]) ? ne(B) : $(B);
|
|
1857
1862
|
});
|
|
1858
1863
|
};
|
|
1859
1864
|
Z(
|
|
@@ -1863,14 +1868,14 @@ const xa = {
|
|
|
1863
1868
|
}
|
|
1864
1869
|
);
|
|
1865
1870
|
const Ce = U([]), at = (o, u) => {
|
|
1866
|
-
|
|
1867
|
-
const g =
|
|
1871
|
+
l.multiple || (i.single = "");
|
|
1872
|
+
const g = l.multiple ? o : [o];
|
|
1868
1873
|
if (!g.length) {
|
|
1869
1874
|
i.post.clear();
|
|
1870
1875
|
return;
|
|
1871
1876
|
}
|
|
1872
1877
|
be(), u.forEach((B) => {
|
|
1873
|
-
g != null && g.includes(B[h.value.id]) ?
|
|
1878
|
+
g != null && g.includes(B[h.value.id]) ? ne(B) : $(B);
|
|
1874
1879
|
});
|
|
1875
1880
|
};
|
|
1876
1881
|
return Z(
|
|
@@ -1891,8 +1896,8 @@ const xa = {
|
|
|
1891
1896
|
[
|
|
1892
1897
|
k(" 主弹窗容器 "),
|
|
1893
1898
|
A(x(dt), {
|
|
1894
|
-
modelValue:
|
|
1895
|
-
"onUpdate:modelValue": u[3] || (u[3] = (T) =>
|
|
1899
|
+
modelValue: se.value,
|
|
1900
|
+
"onUpdate:modelValue": u[3] || (u[3] = (T) => se.value = T),
|
|
1896
1901
|
title: o.title,
|
|
1897
1902
|
"destroy-on-close": "",
|
|
1898
1903
|
"append-to-body": "",
|
|
@@ -1908,11 +1913,9 @@ const xa = {
|
|
|
1908
1913
|
footer: w(() => [
|
|
1909
1914
|
d("span", Ua, [
|
|
1910
1915
|
k(" 取消按钮 "),
|
|
1911
|
-
A(x(
|
|
1912
|
-
onClick: fe(Se, ["stop"])
|
|
1913
|
-
}, {
|
|
1916
|
+
A(x(oe), { onClick: Se }, {
|
|
1914
1917
|
default: w(() => [...u[7] || (u[7] = [
|
|
1915
|
-
|
|
1918
|
+
ae(
|
|
1916
1919
|
"取消",
|
|
1917
1920
|
-1
|
|
1918
1921
|
/* CACHED */
|
|
@@ -1922,12 +1925,12 @@ const xa = {
|
|
|
1922
1925
|
/* STABLE */
|
|
1923
1926
|
}),
|
|
1924
1927
|
k(" 确定按钮 "),
|
|
1925
|
-
A(x(
|
|
1928
|
+
A(x(oe), {
|
|
1926
1929
|
type: "primary",
|
|
1927
|
-
onClick:
|
|
1930
|
+
onClick: $e
|
|
1928
1931
|
}, {
|
|
1929
1932
|
default: w(() => [...u[8] || (u[8] = [
|
|
1930
|
-
|
|
1933
|
+
ae(
|
|
1931
1934
|
" 确定 ",
|
|
1932
1935
|
-1
|
|
1933
1936
|
/* CACHED */
|
|
@@ -1961,8 +1964,8 @@ const xa = {
|
|
|
1961
1964
|
k(" 标签页切换 "),
|
|
1962
1965
|
qe.value ? (p(), V(B, {
|
|
1963
1966
|
key: 0,
|
|
1964
|
-
modelValue:
|
|
1965
|
-
"onUpdate:modelValue": u[1] || (u[1] = (T) =>
|
|
1967
|
+
modelValue: ye.value,
|
|
1968
|
+
"onUpdate:modelValue": u[1] || (u[1] = (T) => ye.value = T),
|
|
1966
1969
|
class: "ik-picker-tab"
|
|
1967
1970
|
}, {
|
|
1968
1971
|
default: w(() => [
|
|
@@ -1983,7 +1986,7 @@ const xa = {
|
|
|
1983
1986
|
}, 8, ["modelValue"])) : k("v-if", !0)
|
|
1984
1987
|
]),
|
|
1985
1988
|
k(" 面包屑导航区域 "),
|
|
1986
|
-
|
|
1989
|
+
re.value === x(me).group ? (p(), v(
|
|
1987
1990
|
E,
|
|
1988
1991
|
{ key: 0 },
|
|
1989
1992
|
[
|
|
@@ -1997,12 +2000,12 @@ const xa = {
|
|
|
1997
2000
|
(p(!0), v(
|
|
1998
2001
|
E,
|
|
1999
2002
|
null,
|
|
2000
|
-
te(x(r), (T,
|
|
2003
|
+
te(x(r), (T, he) => (p(), V(x(ft), {
|
|
2001
2004
|
key: T[h.value.id],
|
|
2002
|
-
onClick:
|
|
2005
|
+
onClick: xe((Le) => Xe(T, he), ["stop"])
|
|
2003
2006
|
}, {
|
|
2004
2007
|
default: w(() => [
|
|
2005
|
-
|
|
2008
|
+
ae(
|
|
2006
2009
|
D(T[h.value.name]),
|
|
2007
2010
|
1
|
|
2008
2011
|
/* TEXT */
|
|
@@ -2025,7 +2028,7 @@ const xa = {
|
|
|
2025
2028
|
)) : k("v-if", !0),
|
|
2026
2029
|
k(" 数据列表区域 "),
|
|
2027
2030
|
k(" 组织架构列表 "),
|
|
2028
|
-
|
|
2031
|
+
re.value === x(me).group ? Ae((p(), V(Yl, {
|
|
2029
2032
|
key: 1,
|
|
2030
2033
|
fixPropOpt: h.value,
|
|
2031
2034
|
fixTypeOpt: s.value,
|
|
@@ -2033,28 +2036,28 @@ const xa = {
|
|
|
2033
2036
|
max: o.max,
|
|
2034
2037
|
multiple: o.multiple,
|
|
2035
2038
|
"hand-list": et.value,
|
|
2036
|
-
imageBaseUrl:
|
|
2037
|
-
emptyText:
|
|
2038
|
-
children:
|
|
2039
|
+
imageBaseUrl: l.imageBaseUrl,
|
|
2040
|
+
emptyText: l.emptyText,
|
|
2041
|
+
children: l.children && !P.value,
|
|
2039
2042
|
"choose-type": z.value,
|
|
2040
2043
|
onHandChild: Fe,
|
|
2041
2044
|
onChange: tt
|
|
2042
2045
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2043
2046
|
[x(_e), C.value]
|
|
2044
|
-
]) :
|
|
2047
|
+
]) : re.value === x(me).role ? (p(), v(
|
|
2045
2048
|
E,
|
|
2046
2049
|
{ key: 2 },
|
|
2047
2050
|
[
|
|
2048
2051
|
k(" 角色列表 "),
|
|
2049
|
-
|
|
2052
|
+
Ae(A(ya, {
|
|
2050
2053
|
fixPropOpt: h.value,
|
|
2051
2054
|
fixTypeOpt: s.value,
|
|
2052
2055
|
list: M.value,
|
|
2053
2056
|
max: o.max,
|
|
2054
2057
|
multiple: o.multiple,
|
|
2055
2058
|
"hand-list": we.value,
|
|
2056
|
-
imageBaseUrl:
|
|
2057
|
-
emptyText:
|
|
2059
|
+
imageBaseUrl: l.imageBaseUrl,
|
|
2060
|
+
emptyText: l.emptyText,
|
|
2058
2061
|
"choose-type": z.value,
|
|
2059
2062
|
onChange: lt
|
|
2060
2063
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
@@ -2063,20 +2066,20 @@ const xa = {
|
|
|
2063
2066
|
],
|
|
2064
2067
|
64
|
|
2065
2068
|
/* STABLE_FRAGMENT */
|
|
2066
|
-
)) :
|
|
2069
|
+
)) : re.value === x(me).post ? (p(), v(
|
|
2067
2070
|
E,
|
|
2068
2071
|
{ key: 3 },
|
|
2069
2072
|
[
|
|
2070
2073
|
k(" 岗位列表 "),
|
|
2071
|
-
|
|
2074
|
+
Ae(A(aa, {
|
|
2072
2075
|
fixPropOpt: h.value,
|
|
2073
2076
|
fixTypeOpt: s.value,
|
|
2074
2077
|
list: I.value,
|
|
2075
2078
|
max: o.max,
|
|
2076
2079
|
multiple: o.multiple,
|
|
2077
2080
|
"hand-list": Ce.value,
|
|
2078
|
-
imageBaseUrl:
|
|
2079
|
-
emptyText:
|
|
2081
|
+
imageBaseUrl: l.imageBaseUrl,
|
|
2082
|
+
emptyText: l.emptyText,
|
|
2080
2083
|
"choose-type": z.value,
|
|
2081
2084
|
onChange: at
|
|
2082
2085
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
@@ -2102,17 +2105,20 @@ const xa = {
|
|
|
2102
2105
|
u[5] || (u[5] = d(
|
|
2103
2106
|
"div",
|
|
2104
2107
|
null,
|
|
2105
|
-
|
|
2108
|
+
[
|
|
2109
|
+
ae("已选列表"),
|
|
2110
|
+
d("span", { class: "ik-info-text" }, "(支持拖拽排序)")
|
|
2111
|
+
],
|
|
2106
2112
|
-1
|
|
2107
2113
|
/* CACHED */
|
|
2108
2114
|
)),
|
|
2109
|
-
A(x(
|
|
2115
|
+
A(x(oe), {
|
|
2110
2116
|
type: "primary",
|
|
2111
2117
|
link: "",
|
|
2112
|
-
onClick:
|
|
2118
|
+
onClick: xe(ie, ["stop"])
|
|
2113
2119
|
}, {
|
|
2114
2120
|
default: w(() => [...u[4] || (u[4] = [
|
|
2115
|
-
|
|
2121
|
+
ae(
|
|
2116
2122
|
"清空",
|
|
2117
2123
|
-1
|
|
2118
2124
|
/* CACHED */
|
|
@@ -2147,7 +2153,7 @@ const xa = {
|
|
|
2147
2153
|
fixTypeOpt: s.value,
|
|
2148
2154
|
fixPropOpt: h.value,
|
|
2149
2155
|
element: T,
|
|
2150
|
-
imageBaseUrl:
|
|
2156
|
+
imageBaseUrl: l.imageBaseUrl
|
|
2151
2157
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
2152
2158
|
]),
|
|
2153
2159
|
k(" 项目名称 "),
|
|
@@ -2160,9 +2166,9 @@ const xa = {
|
|
|
2160
2166
|
)
|
|
2161
2167
|
]),
|
|
2162
2168
|
k(" 删除按钮 "),
|
|
2163
|
-
|
|
2169
|
+
Ae(A(el, {
|
|
2164
2170
|
class: "close",
|
|
2165
|
-
onClick:
|
|
2171
|
+
onClick: xe((he) => ge(T), ["stop"])
|
|
2166
2172
|
}, null, 8, ["onClick"]), [
|
|
2167
2173
|
[je, !(T != null && T.readonly)]
|
|
2168
2174
|
])
|
|
@@ -2229,19 +2235,19 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2229
2235
|
emit: c,
|
|
2230
2236
|
expose: e
|
|
2231
2237
|
}) {
|
|
2232
|
-
const
|
|
2238
|
+
const l = U(a.list), {
|
|
2233
2239
|
list: P
|
|
2234
2240
|
} = a, y = () => {
|
|
2235
|
-
c("handleChange",
|
|
2241
|
+
c("handleChange", l);
|
|
2236
2242
|
}, _ = ({
|
|
2237
|
-
key:
|
|
2243
|
+
key: t,
|
|
2238
2244
|
placeholder: r,
|
|
2239
2245
|
maxlength: O,
|
|
2240
2246
|
minlength: m,
|
|
2241
2247
|
disabled: i
|
|
2242
2248
|
}) => A(We, {
|
|
2243
|
-
modelValue:
|
|
2244
|
-
"onUpdate:modelValue": (L) =>
|
|
2249
|
+
modelValue: l.value[t],
|
|
2250
|
+
"onUpdate:modelValue": (L) => l.value[t] = L,
|
|
2245
2251
|
clearable: !0,
|
|
2246
2252
|
maxlength: O,
|
|
2247
2253
|
minlength: m,
|
|
@@ -2249,7 +2255,7 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2249
2255
|
onChange: () => y(),
|
|
2250
2256
|
placeholder: r || "全部"
|
|
2251
2257
|
}, null), b = ({
|
|
2252
|
-
key:
|
|
2258
|
+
key: t,
|
|
2253
2259
|
placeholder: r,
|
|
2254
2260
|
max: O,
|
|
2255
2261
|
min: m,
|
|
@@ -2257,8 +2263,8 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2257
2263
|
precision: L,
|
|
2258
2264
|
step: H = 1
|
|
2259
2265
|
}) => A(yt, {
|
|
2260
|
-
modelValue:
|
|
2261
|
-
"onUpdate:modelValue": (F) =>
|
|
2266
|
+
modelValue: l.value[t],
|
|
2267
|
+
"onUpdate:modelValue": (F) => l.value[t] = F,
|
|
2262
2268
|
clearable: !0,
|
|
2263
2269
|
max: O,
|
|
2264
2270
|
min: m,
|
|
@@ -2268,15 +2274,15 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2268
2274
|
onChange: () => y(),
|
|
2269
2275
|
placeholder: r || "全部"
|
|
2270
2276
|
}, null), M = ({
|
|
2271
|
-
key:
|
|
2277
|
+
key: t,
|
|
2272
2278
|
placeholder: r,
|
|
2273
2279
|
disabled: O,
|
|
2274
2280
|
options: m,
|
|
2275
2281
|
multiple: i = !1,
|
|
2276
2282
|
filterable: L = !0
|
|
2277
2283
|
}) => A(mt, {
|
|
2278
|
-
modelValue:
|
|
2279
|
-
"onUpdate:modelValue": (H) =>
|
|
2284
|
+
modelValue: l.value[t],
|
|
2285
|
+
"onUpdate:modelValue": (H) => l.value[t] = H,
|
|
2280
2286
|
clearable: !0,
|
|
2281
2287
|
disabled: O,
|
|
2282
2288
|
multiple: i,
|
|
@@ -2290,12 +2296,12 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2290
2296
|
value: H.value
|
|
2291
2297
|
}, null))]
|
|
2292
2298
|
}), I = ({
|
|
2293
|
-
key:
|
|
2299
|
+
key: t,
|
|
2294
2300
|
disabled: r,
|
|
2295
2301
|
options: O
|
|
2296
2302
|
}) => A(ke, {
|
|
2297
|
-
modelValue:
|
|
2298
|
-
"onUpdate:modelValue": (m) =>
|
|
2303
|
+
modelValue: l.value[t],
|
|
2304
|
+
"onUpdate:modelValue": (m) => l.value[t] = m,
|
|
2299
2305
|
disabled: r,
|
|
2300
2306
|
onChange: () => y()
|
|
2301
2307
|
}, {
|
|
@@ -2305,14 +2311,14 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2305
2311
|
value: m.value
|
|
2306
2312
|
}, null))]
|
|
2307
2313
|
}), C = ({
|
|
2308
|
-
key:
|
|
2314
|
+
key: t,
|
|
2309
2315
|
disabled: r,
|
|
2310
2316
|
options: O,
|
|
2311
2317
|
min: m,
|
|
2312
2318
|
max: i
|
|
2313
2319
|
}) => A(Oe, {
|
|
2314
|
-
modelValue:
|
|
2315
|
-
"onUpdate:modelValue": (L) =>
|
|
2320
|
+
modelValue: l.value[t],
|
|
2321
|
+
"onUpdate:modelValue": (L) => l.value[t] = L,
|
|
2316
2322
|
disabled: r,
|
|
2317
2323
|
max: i,
|
|
2318
2324
|
min: m,
|
|
@@ -2324,35 +2330,35 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2324
2330
|
value: L.value
|
|
2325
2331
|
}, null))]
|
|
2326
2332
|
}), R = ({
|
|
2327
|
-
key:
|
|
2333
|
+
key: t,
|
|
2328
2334
|
disabled: r,
|
|
2329
2335
|
editable: O = !0,
|
|
2330
2336
|
startPlaceholder: m = "开始日期",
|
|
2331
2337
|
endplaceholder: i = "结束日期",
|
|
2332
|
-
dateType: L =
|
|
2338
|
+
dateType: L = ue.date,
|
|
2333
2339
|
format: H,
|
|
2334
2340
|
placeholder: F = "请选择日期",
|
|
2335
2341
|
popperclass: j,
|
|
2336
2342
|
rangeSeparator: z = "-",
|
|
2337
2343
|
defaultValue: K,
|
|
2338
|
-
defaultTime:
|
|
2344
|
+
defaultTime: fe,
|
|
2339
2345
|
valueFormat: le,
|
|
2340
|
-
disabledDate:
|
|
2346
|
+
disabledDate: se = () => !1
|
|
2341
2347
|
}) => {
|
|
2342
2348
|
let N = H;
|
|
2343
2349
|
if (!N)
|
|
2344
2350
|
switch (L) {
|
|
2345
|
-
case
|
|
2346
|
-
case
|
|
2351
|
+
case ue.date:
|
|
2352
|
+
case ue.dates:
|
|
2347
2353
|
N = "YYYY-MM-DD";
|
|
2348
2354
|
break;
|
|
2349
|
-
case
|
|
2355
|
+
case ue.year:
|
|
2350
2356
|
N = "YYYY";
|
|
2351
2357
|
break;
|
|
2352
|
-
case
|
|
2358
|
+
case ue.month:
|
|
2353
2359
|
N = "YYYY-MM";
|
|
2354
2360
|
break;
|
|
2355
|
-
case
|
|
2361
|
+
case ue.week:
|
|
2356
2362
|
N = "YYYY-MM-DD";
|
|
2357
2363
|
break;
|
|
2358
2364
|
// case EDateType.dates:
|
|
@@ -2362,8 +2368,8 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2362
2368
|
N = "YYYY-MM-DD";
|
|
2363
2369
|
}
|
|
2364
2370
|
return A(At, {
|
|
2365
|
-
modelValue:
|
|
2366
|
-
"onUpdate:modelValue": ($) =>
|
|
2371
|
+
modelValue: l.value[t],
|
|
2372
|
+
"onUpdate:modelValue": ($) => l.value[t] = $,
|
|
2367
2373
|
onChange: () => y(),
|
|
2368
2374
|
placeholder: F,
|
|
2369
2375
|
disabled: r,
|
|
@@ -2375,12 +2381,12 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2375
2381
|
format: N,
|
|
2376
2382
|
popperClass: j,
|
|
2377
2383
|
defaultValue: K,
|
|
2378
|
-
defaultTime:
|
|
2384
|
+
defaultTime: fe,
|
|
2379
2385
|
valueFormat: le,
|
|
2380
|
-
disabledDate:
|
|
2386
|
+
disabledDate: se
|
|
2381
2387
|
}, null);
|
|
2382
2388
|
}, h = ({
|
|
2383
|
-
key:
|
|
2389
|
+
key: t,
|
|
2384
2390
|
options: r,
|
|
2385
2391
|
multiple: O = !1,
|
|
2386
2392
|
filterable: m = !0,
|
|
@@ -2391,14 +2397,14 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2391
2397
|
expandOnClickNode: j = !1,
|
|
2392
2398
|
placeholder: z = "全部",
|
|
2393
2399
|
checkOnClickNode: K = !1,
|
|
2394
|
-
showCheckbox:
|
|
2400
|
+
showCheckbox: fe = !1,
|
|
2395
2401
|
checkStrictly: le = !0,
|
|
2396
|
-
defaultCheckedKeys:
|
|
2402
|
+
defaultCheckedKeys: se = [],
|
|
2397
2403
|
currentNodeKey: N = "",
|
|
2398
2404
|
accordion: $ = !1
|
|
2399
2405
|
}) => A(vt, {
|
|
2400
|
-
modelValue:
|
|
2401
|
-
"onUpdate:modelValue": (
|
|
2406
|
+
modelValue: l.value[t],
|
|
2407
|
+
"onUpdate:modelValue": (ge) => l.value[t] = ge,
|
|
2402
2408
|
data: r,
|
|
2403
2409
|
onChange: () => y(),
|
|
2404
2410
|
clearable: !0,
|
|
@@ -2411,13 +2417,13 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2411
2417
|
defaultExpandAll: F,
|
|
2412
2418
|
expandOnClickNode: j,
|
|
2413
2419
|
checkOnClickNode: K,
|
|
2414
|
-
showCheckbox:
|
|
2420
|
+
showCheckbox: fe,
|
|
2415
2421
|
checkStrictly: le,
|
|
2416
|
-
defaultCheckedKeys:
|
|
2422
|
+
defaultCheckedKeys: se,
|
|
2417
2423
|
currentNodeKey: N,
|
|
2418
2424
|
accordion: $
|
|
2419
2425
|
}, null), s = ({
|
|
2420
|
-
key:
|
|
2426
|
+
key: t,
|
|
2421
2427
|
placeholder: r,
|
|
2422
2428
|
typeOption: O,
|
|
2423
2429
|
_list: m,
|
|
@@ -2426,46 +2432,46 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2426
2432
|
}) => A(Sa, {
|
|
2427
2433
|
typeOption: O,
|
|
2428
2434
|
list: m,
|
|
2429
|
-
key:
|
|
2435
|
+
key: t,
|
|
2430
2436
|
props: a,
|
|
2431
2437
|
data: i,
|
|
2432
2438
|
handSetChild: L,
|
|
2433
2439
|
placeholder: r
|
|
2434
|
-
}, null), n = (
|
|
2435
|
-
switch (
|
|
2440
|
+
}, null), n = (t) => {
|
|
2441
|
+
switch (t.type) {
|
|
2436
2442
|
case "":
|
|
2437
2443
|
case void 0:
|
|
2438
2444
|
case J.input:
|
|
2439
|
-
return _(
|
|
2445
|
+
return _(t);
|
|
2440
2446
|
case J.number:
|
|
2441
|
-
return b(
|
|
2447
|
+
return b(t);
|
|
2442
2448
|
case J.select:
|
|
2443
|
-
return M(
|
|
2449
|
+
return M(t);
|
|
2444
2450
|
case J.checkbox:
|
|
2445
|
-
return C(
|
|
2451
|
+
return C(t);
|
|
2446
2452
|
case J.radio:
|
|
2447
|
-
return I(
|
|
2453
|
+
return I(t);
|
|
2448
2454
|
case J.date:
|
|
2449
|
-
return R(
|
|
2455
|
+
return R(t);
|
|
2450
2456
|
case J.treeselect:
|
|
2451
|
-
return h(
|
|
2457
|
+
return h(t);
|
|
2452
2458
|
case J.choosePerson:
|
|
2453
|
-
return s(
|
|
2459
|
+
return s(t);
|
|
2454
2460
|
default:
|
|
2455
2461
|
return A(E, null, null);
|
|
2456
2462
|
}
|
|
2457
2463
|
}, f = S(() => {
|
|
2458
|
-
const
|
|
2464
|
+
const t = [];
|
|
2459
2465
|
return P.forEach((r, O) => {
|
|
2460
2466
|
let m;
|
|
2461
2467
|
if (!r) return [];
|
|
2462
|
-
|
|
2468
|
+
t.push(A(ht, {
|
|
2463
2469
|
label: r.label,
|
|
2464
2470
|
prop: r.key
|
|
2465
2471
|
}, Da(m = n(r)) ? m : {
|
|
2466
2472
|
default: () => [m]
|
|
2467
2473
|
}));
|
|
2468
|
-
}),
|
|
2474
|
+
}), t;
|
|
2469
2475
|
});
|
|
2470
2476
|
return () => A(E, null, [f.value]);
|
|
2471
2477
|
}
|
|
@@ -2537,14 +2543,14 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2537
2543
|
},
|
|
2538
2544
|
emits: ["refresh", "search", "update:formRef", "import", "export", "delete"],
|
|
2539
2545
|
setup(a, { emit: c }) {
|
|
2540
|
-
const e = a,
|
|
2546
|
+
const e = a, l = c, P = {}, y = {}, _ = U([]), b = U({ ...y }), M = U(null), I = U(!1);
|
|
2541
2547
|
Z(_, (s, n) => {
|
|
2542
|
-
const f = n.filter((
|
|
2548
|
+
const f = n.filter((t) => !s.includes(t));
|
|
2543
2549
|
if (f.length) {
|
|
2544
|
-
let
|
|
2550
|
+
let t = !1;
|
|
2545
2551
|
f.forEach((r) => {
|
|
2546
|
-
b.value[r] !== void 0 && (
|
|
2547
|
-
}),
|
|
2552
|
+
b.value[r] !== void 0 && (t = !0), b.value[r] = void 0;
|
|
2553
|
+
}), t && l("search", b.value);
|
|
2548
2554
|
}
|
|
2549
2555
|
}), e.list.forEach((s, n) => {
|
|
2550
2556
|
y[s.key] = y[s.value], n < e.num && (P[s.key] = P[s.value], _.value.push(s.key));
|
|
@@ -2559,7 +2565,7 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2559
2565
|
const R = () => {
|
|
2560
2566
|
var s;
|
|
2561
2567
|
try {
|
|
2562
|
-
(s = M.value) == null || s.resetFields(),
|
|
2568
|
+
(s = M.value) == null || s.resetFields(), l("refresh"), l("search", b.value);
|
|
2563
2569
|
} catch {
|
|
2564
2570
|
}
|
|
2565
2571
|
}, h = () => {
|
|
@@ -2568,9 +2574,9 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2568
2574
|
return (s, n) => (p(), v("div", null, [
|
|
2569
2575
|
A(Gt, {
|
|
2570
2576
|
rowData: e.rowData,
|
|
2571
|
-
onDelete: n[0] || (n[0] = (f) =>
|
|
2572
|
-
onImport: n[1] || (n[1] = (f) =>
|
|
2573
|
-
onExport: n[2] || (n[2] = (f) =>
|
|
2577
|
+
onDelete: n[0] || (n[0] = (f) => l("delete", a.rowData)),
|
|
2578
|
+
onImport: n[1] || (n[1] = (f) => l("import", a.rowData)),
|
|
2579
|
+
onExport: n[2] || (n[2] = (f) => l("export", a.rowData))
|
|
2574
2580
|
}, null, 8, ["rowData"]),
|
|
2575
2581
|
A(x(xt), {
|
|
2576
2582
|
class: pe(["gl-search-card", I.value ? "pack-up-search" : "ik-unfold-search"]),
|
|
@@ -2585,7 +2591,7 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2585
2591
|
"status-icon": a.statusIcon,
|
|
2586
2592
|
"label-width": `${a.labelWidth}px`,
|
|
2587
2593
|
class: "in-label",
|
|
2588
|
-
onKeydown: n[5] || (n[5] = ut(
|
|
2594
|
+
onKeydown: n[5] || (n[5] = ut(xe((f) => l("search", b.value), ["prevent"]), ["enter"]))
|
|
2589
2595
|
}, {
|
|
2590
2596
|
default: w(() => [
|
|
2591
2597
|
A(x(kt), { gutter: 10 }, {
|
|
@@ -2593,21 +2599,21 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2593
2599
|
(p(!0), v(
|
|
2594
2600
|
E,
|
|
2595
2601
|
null,
|
|
2596
|
-
te(C.value, (f,
|
|
2597
|
-
key:
|
|
2602
|
+
te(C.value, (f, t) => (p(), V(x(Pt), {
|
|
2603
|
+
key: t,
|
|
2598
2604
|
class: pe(
|
|
2599
2605
|
[
|
|
2600
2606
|
"el-col",
|
|
2601
2607
|
"el-col-24",
|
|
2602
|
-
`el-col-sm-${12 * (f.col || 1) * (
|
|
2603
|
-
`el-col-md-${8 * (f.col || 1) * (
|
|
2604
|
-
`el-col-lg-${6 * (f.col || 1) * (
|
|
2605
|
-
`el-col-xl-${4 * (f.col || 1) * (
|
|
2608
|
+
`el-col-sm-${12 * (f.col || 1) * (t === C.value.length - 1 ? 2 : 1)}`,
|
|
2609
|
+
`el-col-md-${8 * (f.col || 1) * (t === C.value.length - 1 ? 2 : 1)}`,
|
|
2610
|
+
`el-col-lg-${6 * (f.col || 1) * (t === C.value.length - 1 ? 2 : 1)}`,
|
|
2611
|
+
`el-col-xl-${4 * (f.col || 1) * (t === C.value.length - 1 ? 2 : 1)}`,
|
|
2606
2612
|
"is-guttered",
|
|
2607
2613
|
"el-col-4",
|
|
2608
|
-
`el-col-l-${4 * (f.col || 1) * (
|
|
2609
|
-
`el-col-sl-${5 * (f.col || 1) * (
|
|
2610
|
-
`${
|
|
2614
|
+
`el-col-l-${4 * (f.col || 1) * (t === C.value.length - 1 ? 2 : 1)}`,
|
|
2615
|
+
`el-col-sl-${5 * (f.col || 1) * (t === C.value.length - 1 ? 2 : 1)}`,
|
|
2616
|
+
`${t === C.value.length - 1 ? "last-col" : ""}`
|
|
2611
2617
|
].join(" ")
|
|
2612
2618
|
)
|
|
2613
2619
|
}, {
|
|
@@ -2615,27 +2621,27 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2615
2621
|
d(
|
|
2616
2622
|
"div",
|
|
2617
2623
|
{
|
|
2618
|
-
class: pe(["last-with-btn",
|
|
2624
|
+
class: pe(["last-with-btn", t === C.value.length - 1 ? "last-form" : ""])
|
|
2619
2625
|
},
|
|
2620
2626
|
[
|
|
2621
2627
|
f != null && f.slot ? pt(s.$slots, f == null ? void 0 : f.slot, { key: 0 }, void 0, !0) : k("v-if", !0),
|
|
2622
2628
|
f != null && f.slot ? k("v-if", !0) : (p(), V(x(Ia), {
|
|
2623
2629
|
key: 1,
|
|
2624
|
-
onHandleChange: n[3] || (n[3] = (r) =>
|
|
2625
|
-
list: [a.list[
|
|
2630
|
+
onHandleChange: n[3] || (n[3] = (r) => l("search", b.value)),
|
|
2631
|
+
list: [a.list[t]]
|
|
2626
2632
|
}, null, 8, ["list"])),
|
|
2627
|
-
|
|
2633
|
+
t + 1 === C.value.length ? (p(), v(
|
|
2628
2634
|
E,
|
|
2629
2635
|
{ key: 2 },
|
|
2630
2636
|
[
|
|
2631
|
-
a.showSearch ? (p(), V(x(
|
|
2637
|
+
a.showSearch ? (p(), V(x(oe), {
|
|
2632
2638
|
key: 0,
|
|
2633
2639
|
class: "icon-more el-icon ml",
|
|
2634
2640
|
title: "查询",
|
|
2635
2641
|
icon: x(Et),
|
|
2636
|
-
onClick: n[4] || (n[4] = (r) =>
|
|
2642
|
+
onClick: n[4] || (n[4] = (r) => l("search", b.value))
|
|
2637
2643
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
2638
|
-
A(x(
|
|
2644
|
+
A(x(oe), {
|
|
2639
2645
|
icon: x(It),
|
|
2640
2646
|
class: "icon-more el-icon ml",
|
|
2641
2647
|
title: "重置",
|
|
@@ -2715,7 +2721,7 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2715
2721
|
}, [
|
|
2716
2722
|
A(x(bt), { size: "16" }, {
|
|
2717
2723
|
default: w(() => [
|
|
2718
|
-
|
|
2724
|
+
Ae(A(
|
|
2719
2725
|
x(Bt),
|
|
2720
2726
|
null,
|
|
2721
2727
|
null,
|
|
@@ -2735,7 +2741,7 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2735
2741
|
}), Ra = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-d648fae4"]]), Ga = Ne(Ra);
|
|
2736
2742
|
export {
|
|
2737
2743
|
jt as EAlign,
|
|
2738
|
-
|
|
2744
|
+
ue as EDateType,
|
|
2739
2745
|
J as EType,
|
|
2740
2746
|
Ga as IkSearch,
|
|
2741
2747
|
Ga as default
|