iking-web-ui-pro 0.1.13 → 0.1.16

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.
@@ -489,7 +489,7 @@ const G = /* @__PURE__ */ Q(Cl, [["__scopeId", "data-v-424f363c"]]), Be = "data:
489
489
  props: Te,
490
490
  emits: ["change", "check", "handChild"],
491
491
  setup(t, { emit: h }) {
492
- var f, o;
492
+ var f, s;
493
493
  const e = t, l = I(() => {
494
494
  var i, n;
495
495
  return ((i = e.handList) == null ? void 0 : i.length) === ((n = e.list) == null ? void 0 : n.length);
@@ -499,7 +499,7 @@ const G = /* @__PURE__ */ Q(Cl, [["__scopeId", "data-v-424f363c"]]), Be = "data:
499
499
  return e.multiple ? g.value = e.handList.map((c) => c[e.fixPropOpt.id]) : C.value = (O = (_ = e.handList) == null ? void 0 : _[0]) == null ? void 0 : O[e.fixPropOpt.id], i > 0 && i < n;
500
500
  }), g = S(
501
501
  e.handList.map((i) => i[e.fixPropOpt.id])
502
- ), C = S((o = (f = e.handList) == null ? void 0 : f[0]) == null ? void 0 : o[e.fixPropOpt.id]), P = h, R = (i) => {
502
+ ), C = S((s = (f = e.handList) == null ? void 0 : f[0]) == null ? void 0 : s[e.fixPropOpt.id]), P = h, R = (i) => {
503
503
  const n = i ? e.list.map((a) => {
504
504
  if (e.chooseType.includes(a[e.fixPropOpt.type].toLowerCase()))
505
505
  return a[e.fixPropOpt.id];
@@ -773,29 +773,29 @@ const Xl = /* @__PURE__ */ Q(Fl, [["__scopeId", "data-v-5e76088d"]]), Se = (t) =
773
773
  setup(t, { emit: h }) {
774
774
  var H, f;
775
775
  const e = t, l = I(() => {
776
- var o, i;
777
- return ((o = e.handList) == null ? void 0 : o.length) === ((i = e.list) == null ? void 0 : i.length);
776
+ var s, i;
777
+ return ((s = e.handList) == null ? void 0 : s.length) === ((i = e.list) == null ? void 0 : i.length);
778
778
  }), x = I(() => {
779
779
  var n, a, v, _;
780
- const o = (n = e.handList) == null ? void 0 : n.length, i = (a = e.list) == null ? void 0 : a.length;
781
- return e.multiple ? g.value = e.handList.map((O) => O[e.fixPropOpt.id]) : C.value = (_ = (v = e.handList) == null ? void 0 : v[0]) == null ? void 0 : _[e.fixPropOpt.id], o > 0 && o < i;
780
+ const s = (n = e.handList) == null ? void 0 : n.length, i = (a = e.list) == null ? void 0 : a.length;
781
+ return e.multiple ? g.value = e.handList.map((O) => O[e.fixPropOpt.id]) : C.value = (_ = (v = e.handList) == null ? void 0 : v[0]) == null ? void 0 : _[e.fixPropOpt.id], s > 0 && s < i;
782
782
  }), g = S(
783
- e.handList.map((o) => o[e.fixPropOpt.id])
784
- ), C = S((f = (H = e.handList) == null ? void 0 : H[0]) == null ? void 0 : f[e.fixPropOpt.id]), P = h, R = (o) => {
785
- const i = o ? e.list.map((n) => n[e.fixPropOpt.id]) : [];
786
- P("change", i, o ? e.list : []);
787
- }, D = (o) => {
788
- P("change", o, e.list);
789
- }, b = (o) => {
790
- P("change", o, e.list);
783
+ e.handList.map((s) => s[e.fixPropOpt.id])
784
+ ), C = S((f = (H = e.handList) == null ? void 0 : H[0]) == null ? void 0 : f[e.fixPropOpt.id]), P = h, R = (s) => {
785
+ const i = s ? e.list.map((n) => n[e.fixPropOpt.id]) : [];
786
+ P("change", i, s ? e.list : []);
787
+ }, D = (s) => {
788
+ P("change", s, e.list);
789
+ }, b = (s) => {
790
+ P("change", s, e.list);
791
791
  };
792
- return (o, i) => (r(), d(
792
+ return (s, i) => (r(), d(
793
793
  M,
794
794
  null,
795
795
  [
796
796
  L(" 遍历list多选 "),
797
797
  u("div", Zl, [
798
- o.multiple && o.chooseType.includes("post") ? (r(), U(A(ue), {
798
+ s.multiple && s.chooseType.includes("post") ? (r(), U(A(ue), {
799
799
  key: 0,
800
800
  modelValue: l.value,
801
801
  "onUpdate:modelValue": i[0] || (i[0] = (n) => l.value = n),
@@ -808,8 +808,8 @@ const Xl = /* @__PURE__ */ Q(Fl, [["__scopeId", "data-v-5e76088d"]]), Se = (t) =
808
808
  _: 1
809
809
  /* STABLE */
810
810
  }, 8, ["modelValue", "indeterminate"])) : L("v-if", !0),
811
- o.list && o.list.length ? (r(), d("ul", ql, [
812
- o.multiple ? (r(), U(A(ge), {
811
+ s.list && s.list.length ? (r(), d("ul", ql, [
812
+ s.multiple ? (r(), U(A(ge), {
813
813
  key: 0,
814
814
  modelValue: g.value,
815
815
  "onUpdate:modelValue": i[1] || (i[1] = (n) => g.value = n),
@@ -819,10 +819,10 @@ const Xl = /* @__PURE__ */ Q(Fl, [["__scopeId", "data-v-5e76088d"]]), Se = (t) =
819
819
  (r(!0), d(
820
820
  M,
821
821
  null,
822
- F(o.list, (n) => (r(), d("li", {
822
+ F(s.list, (n) => (r(), d("li", {
823
823
  key: n[e.fixPropOpt.id]
824
824
  }, [
825
- o.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(ue), {
825
+ s.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(ue), {
826
826
  key: 0,
827
827
  label: n[e.fixPropOpt.id]
828
828
  }, {
@@ -881,11 +881,11 @@ const Xl = /* @__PURE__ */ Q(Fl, [["__scopeId", "data-v-5e76088d"]]), Se = (t) =
881
881
  (r(!0), d(
882
882
  M,
883
883
  null,
884
- F(o.list, (n) => (r(), d("li", {
884
+ F(s.list, (n) => (r(), d("li", {
885
885
  class: "w-full",
886
886
  key: n[e.fixPropOpt.id]
887
887
  }, [
888
- o.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(xe), {
888
+ s.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(xe), {
889
889
  key: 0,
890
890
  label: n[e.fixPropOpt.id]
891
891
  }, {
@@ -987,29 +987,29 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
987
987
  setup(t, { emit: h }) {
988
988
  var H, f;
989
989
  const e = t, l = I(() => {
990
- var o, i;
991
- return ((o = e.handList) == null ? void 0 : o.length) === ((i = e.list) == null ? void 0 : i.length);
990
+ var s, i;
991
+ return ((s = e.handList) == null ? void 0 : s.length) === ((i = e.list) == null ? void 0 : i.length);
992
992
  }), x = I(() => {
993
993
  var n, a, v, _;
994
- const o = (n = e.handList) == null ? void 0 : n.length, i = (a = e.list) == null ? void 0 : a.length;
995
- return e.multiple ? g.value = e.handList.map((O) => O[e.fixPropOpt.id]) : C.value = (_ = (v = e.handList) == null ? void 0 : v[0]) == null ? void 0 : _[e.fixPropOpt.id], o > 0 && o < i;
994
+ const s = (n = e.handList) == null ? void 0 : n.length, i = (a = e.list) == null ? void 0 : a.length;
995
+ return e.multiple ? g.value = e.handList.map((O) => O[e.fixPropOpt.id]) : C.value = (_ = (v = e.handList) == null ? void 0 : v[0]) == null ? void 0 : _[e.fixPropOpt.id], s > 0 && s < i;
996
996
  }), g = S(
997
- e.handList.map((o) => o[e.fixPropOpt.id])
998
- ), C = S((f = (H = e.handList) == null ? void 0 : H[0]) == null ? void 0 : f[e.fixPropOpt.id]), P = h, R = (o) => {
999
- const i = o ? e.list.map((n) => n[e.fixPropOpt.id]) : [];
1000
- P("change", i, o ? e.list : []);
1001
- }, D = (o) => {
1002
- P("change", o, e.list);
1003
- }, b = (o) => {
1004
- P("change", o, e.list);
997
+ e.handList.map((s) => s[e.fixPropOpt.id])
998
+ ), C = S((f = (H = e.handList) == null ? void 0 : H[0]) == null ? void 0 : f[e.fixPropOpt.id]), P = h, R = (s) => {
999
+ const i = s ? e.list.map((n) => n[e.fixPropOpt.id]) : [];
1000
+ P("change", i, s ? e.list : []);
1001
+ }, D = (s) => {
1002
+ P("change", s, e.list);
1003
+ }, b = (s) => {
1004
+ P("change", s, e.list);
1005
1005
  };
1006
- return (o, i) => (r(), d(
1006
+ return (s, i) => (r(), d(
1007
1007
  M,
1008
1008
  null,
1009
1009
  [
1010
1010
  L(" 遍历list多选 "),
1011
1011
  u("div", da, [
1012
- o.multiple && o.chooseType.includes("role") ? (r(), U(A(ue), {
1012
+ s.multiple && s.chooseType.includes("role") ? (r(), U(A(ue), {
1013
1013
  key: 0,
1014
1014
  modelValue: l.value,
1015
1015
  "onUpdate:modelValue": i[0] || (i[0] = (n) => l.value = n),
@@ -1022,8 +1022,8 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1022
1022
  _: 1
1023
1023
  /* STABLE */
1024
1024
  }, 8, ["modelValue", "indeterminate"])) : L("v-if", !0),
1025
- o.list && o.list.length ? (r(), d("ul", ha, [
1026
- o.multiple ? (r(), U(A(ge), {
1025
+ s.list && s.list.length ? (r(), d("ul", ha, [
1026
+ s.multiple ? (r(), U(A(ge), {
1027
1027
  key: 0,
1028
1028
  modelValue: g.value,
1029
1029
  "onUpdate:modelValue": i[1] || (i[1] = (n) => g.value = n),
@@ -1033,13 +1033,13 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1033
1033
  (r(!0), d(
1034
1034
  M,
1035
1035
  null,
1036
- F(o.list, (n) => (r(), d("li", {
1037
- key: n[o.fixPropOpt.id]
1036
+ F(s.list, (n) => (r(), d("li", {
1037
+ key: n[s.fixPropOpt.id]
1038
1038
  }, [
1039
- o.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(ue), {
1039
+ s.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(ue), {
1040
1040
  key: 0,
1041
- label: n[o.fixPropOpt.id],
1042
- value: n[o.fixPropOpt.id],
1041
+ label: n[s.fixPropOpt.id],
1042
+ value: n[s.fixPropOpt.id],
1043
1043
  disabled: n.disabled
1044
1044
  }, {
1045
1045
  default: B(() => [
@@ -1052,8 +1052,8 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1052
1052
  }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1053
1053
  ]),
1054
1054
  u("p", {
1055
- title: n[o.fixPropOpt.name]
1056
- }, V(n[o.fixPropOpt.name]), 9, va)
1055
+ title: n[s.fixPropOpt.name]
1056
+ }, V(n[s.fixPropOpt.name]), 9, va)
1057
1057
  ]),
1058
1058
  _: 2
1059
1059
  /* DYNAMIC */
@@ -1068,8 +1068,8 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1068
1068
  }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1069
1069
  ]),
1070
1070
  u("p", {
1071
- title: n[o.fixPropOpt.name]
1072
- }, V(n[o.fixPropOpt.name]), 9, ya)
1071
+ title: n[s.fixPropOpt.name]
1072
+ }, V(n[s.fixPropOpt.name]), 9, ya)
1073
1073
  ]))
1074
1074
  ]))),
1075
1075
  128
@@ -1089,14 +1089,14 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1089
1089
  (r(!0), d(
1090
1090
  M,
1091
1091
  null,
1092
- F(o.list, (n) => (r(), d("li", {
1092
+ F(s.list, (n) => (r(), d("li", {
1093
1093
  class: "w-full",
1094
- key: n[o.fixPropOpt.id]
1094
+ key: n[s.fixPropOpt.id]
1095
1095
  }, [
1096
- o.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(xe), {
1096
+ s.chooseType.includes(n[e.fixPropOpt.type].toLowerCase()) ? (r(), U(A(xe), {
1097
1097
  key: 0,
1098
- label: n[o.fixPropOpt.id],
1099
- value: n[o.fixPropOpt.id],
1098
+ label: n[s.fixPropOpt.id],
1099
+ value: n[s.fixPropOpt.id],
1100
1100
  disabled: n.disabled
1101
1101
  }, {
1102
1102
  default: B(() => [
@@ -1110,8 +1110,8 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1110
1110
  }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1111
1111
  ]),
1112
1112
  u("p", {
1113
- title: n[o.fixPropOpt.name]
1114
- }, V(n[o.fixPropOpt.name]), 9, Oa)
1113
+ title: n[s.fixPropOpt.name]
1114
+ }, V(n[s.fixPropOpt.name]), 9, Oa)
1115
1115
  ])
1116
1116
  ]),
1117
1117
  _: 2
@@ -1127,8 +1127,8 @@ const pa = /* @__PURE__ */ Q(ca, [["__scopeId", "data-v-83d8077c"]]), Ve = (t) =
1127
1127
  }, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
1128
1128
  ]),
1129
1129
  u("p", {
1130
- title: n[o.fixPropOpt.name]
1131
- }, V(n[o.fixPropOpt.name]), 9, ba)
1130
+ title: n[s.fixPropOpt.name]
1131
+ }, V(n[s.fixPropOpt.name]), 9, ba)
1132
1132
  ]))
1133
1133
  ]))),
1134
1134
  128
@@ -1363,7 +1363,7 @@ const Ua = {
1363
1363
  data: JSON.stringify(H)
1364
1364
  };
1365
1365
  Va(f.headers);
1366
- const o = await bt(f), { success: i, data: n } = o.data;
1366
+ const s = await bt(f), { success: i, data: n } = s.data;
1367
1367
  if (!i)
1368
1368
  return {
1369
1369
  groupList: [],
@@ -1424,8 +1424,8 @@ const Ua = {
1424
1424
  props: Ua,
1425
1425
  emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
1426
1426
  setup(t, { expose: h, emit: e }) {
1427
- nt((s) => ({
1428
- "6367aea3": Me.value
1427
+ nt((o) => ({
1428
+ "1a723328": Me.value
1429
1429
  }));
1430
1430
  const l = t, x = S(""), g = S(""), C = S([]), P = S([]), R = S([]), D = S([]), b = S(!1), H = I(() => P.value.concat(C.value));
1431
1431
  le(
@@ -1440,7 +1440,7 @@ const Ua = {
1440
1440
  id: "id",
1441
1441
  avatar: "avatar",
1442
1442
  ...l.propOption
1443
- })), o = I(() => ({
1443
+ })), s = I(() => ({
1444
1444
  user: "USER",
1445
1445
  role: "ROLE",
1446
1446
  post: "POST",
@@ -1448,16 +1448,16 @@ const Ua = {
1448
1448
  ...l.typeOption
1449
1449
  })), i = S([]), n = Ia(ot(l, "api"), l), a = n.handData, v = n.bannerList;
1450
1450
  l.immediate && a(g.value, x.value);
1451
- const _ = (s) => (s.forEach((p) => {
1451
+ const _ = (o) => (o.forEach((p) => {
1452
1452
  var y, k;
1453
1453
  p.disabled = ((k = (y = l.modelValue) == null ? void 0 : y.find(
1454
1454
  (w) => w[f.value.id] === p[f.value.id]
1455
1455
  )) == null ? void 0 : k.disabled) || !1;
1456
- }), s), O = async () => {
1457
- var s, p, y, k, w, X, Pe, Re;
1456
+ }), o), O = async () => {
1457
+ var o, p, y, k, w, X, Pe, Re;
1458
1458
  b.value = !0;
1459
1459
  try {
1460
- if ((s = l.groupList) != null && s.length || (p = l.userList) != null && p.length || (y = l.roleList) != null && y.length || (k = l.postList) != null && k.length) {
1460
+ if ((o = l.groupList) != null && o.length || (p = l.userList) != null && p.length || (y = l.roleList) != null && y.length || (k = l.postList) != null && k.length) {
1461
1461
  C.value = (w = l.userList) == null ? void 0 : w.filter(
1462
1462
  (Z) => Z[f.value.name].includes(x.value)
1463
1463
  ), P.value = (X = l.groupList) == null ? void 0 : X.filter(
@@ -1495,10 +1495,10 @@ const Ua = {
1495
1495
  }), T = Ee({
1496
1496
  indeterminate: !1,
1497
1497
  checkAll: 0
1498
- }), E = (s) => c.group.has(s) || c.user.has(s) || c.role.has(s) || c.post.has(s), Y = wt.debounce(O, 300), $ = I(() => {
1499
- const s = Array.from(c.group.values()), p = Array.from(c.role.values()), y = Array.from(c.user.values()), k = Array.from(c.post.values());
1500
- return i.value = [...p, ...k, ...y, ...s], {
1501
- list: [...p, ...y, ...k, ...s],
1498
+ }), E = (o) => c.group.has(o) || c.user.has(o) || c.role.has(o) || c.post.has(o), Y = wt.debounce(O, 300), $ = I(() => {
1499
+ const o = Array.from(c.group.values()), p = Array.from(c.role.values()), y = Array.from(c.user.values()), k = Array.from(c.post.values());
1500
+ return i.value = [...p, ...k, ...y, ...o], {
1501
+ list: [...p, ...y, ...k, ...o],
1502
1502
  role: {
1503
1503
  list: p,
1504
1504
  len: p.length
@@ -1512,28 +1512,28 @@ const Ua = {
1512
1512
  len: k.length
1513
1513
  },
1514
1514
  groups: {
1515
- list: s,
1516
- len: s.length
1515
+ list: o,
1516
+ len: o.length
1517
1517
  }
1518
1518
  };
1519
1519
  }), ee = I(() => {
1520
- const s = l.chooseType.map((y) => y.toLocaleLowerCase());
1521
- let p = [...s];
1522
- return s.includes("dep") && (p = [...p, "dept"]), s.includes("dep_user") && (p = [...p, "user"]), p;
1523
- }), z = S([]), he = (s) => {
1524
- z.value = s, z.value.forEach((p) => {
1520
+ const o = l.chooseType.map((y) => y.toLocaleLowerCase());
1521
+ let p = [...o];
1522
+ return o.includes("dep") && (p = [...p, "dept"]), o.includes("dep_user") && (p = [...p, "user"]), p;
1523
+ }), z = S([]), he = (o) => {
1524
+ z.value = o, z.value.forEach((p) => {
1525
1525
  p.readonly = p == null ? void 0 : p.disabled;
1526
1526
  });
1527
- }, te = e, ne = S(!1), j = (s = !1) => {
1527
+ }, te = e, ne = S(!1), j = (o = !1) => {
1528
1528
  var y;
1529
1529
  const p = (y = l == null ? void 0 : l.userList) != null && y.length ? J.cloneDeep([...l == null ? void 0 : l.userList, ...l == null ? void 0 : l.groupList]) : [...P.value, ...C.value];
1530
- return !s && he(p), p;
1530
+ return !o && he(p), p;
1531
1531
  };
1532
1532
  le(
1533
1533
  () => l.show,
1534
- async (s) => {
1534
+ async (o) => {
1535
1535
  var p;
1536
- if (ne.value = s, s) {
1536
+ if (ne.value = o, o) {
1537
1537
  g.value = ((p = l.org) == null ? void 0 : p.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await O() : (C.value = l.userList, P.value = l.groupList, R.value = l.roleList, D.value = l.postList), c.trans = [], T.checkAll = 0, T.indeterminate = !1;
1538
1538
  const y = j(!0);
1539
1539
  for (const w of y)
@@ -1549,60 +1549,60 @@ const Ua = {
1549
1549
  pe();
1550
1550
  }
1551
1551
  ), $e(() => {
1552
- let s;
1553
- s = z.value.length;
1552
+ let o;
1553
+ o = z.value.length;
1554
1554
  const p = c.trans.length;
1555
- T.indeterminate = c.trans.length ? p !== s : !1, T.checkAll = +(s !== 0 && p === s);
1555
+ T.indeterminate = c.trans.length ? p !== o : !1, T.checkAll = +(o !== 0 && p === o);
1556
1556
  });
1557
- const K = (s) => {
1558
- if (s) {
1559
- if (c.single = "", s[f.value.id]) {
1557
+ const K = (o) => {
1558
+ if (o) {
1559
+ if (c.single = "", o[f.value.id]) {
1560
1560
  const p = c.trans.findIndex(
1561
- (y) => y === s[f.value.id]
1561
+ (y) => y === o[f.value.id]
1562
1562
  );
1563
1563
  p !== -1 && c.trans.splice(p, 1);
1564
1564
  }
1565
- switch (s[f.value.type]) {
1566
- case o.value.user:
1567
- return c.user.delete(s[f.value.id]);
1568
- case o.value.role:
1569
- return c.role.delete(s[f.value.id]);
1570
- case o.value.post:
1571
- return c.post.delete(s[f.value.id]);
1572
- case o.value.group:
1573
- return c.group.delete(s[f.value.id]);
1565
+ switch (o[f.value.type]) {
1566
+ case s.value.user:
1567
+ return c.user.delete(o[f.value.id]);
1568
+ case s.value.role:
1569
+ return c.role.delete(o[f.value.id]);
1570
+ case s.value.post:
1571
+ return c.post.delete(o[f.value.id]);
1572
+ case s.value.group:
1573
+ return c.group.delete(o[f.value.id]);
1574
1574
  default:
1575
1575
  return;
1576
1576
  }
1577
1577
  }
1578
- }, Ae = (s) => {
1579
- K(s);
1580
- }, ce = (s) => {
1581
- if (!E(s[f.value.id])) {
1578
+ }, Ae = (o) => {
1579
+ K(o);
1580
+ }, ce = (o) => {
1581
+ if (!E(o[f.value.id])) {
1582
1582
  const p = {
1583
- ...s
1583
+ ...o
1584
1584
  // readonly: item.disabled
1585
1585
  };
1586
- switch (s[f.value.type]) {
1587
- case o.value.user:
1588
- return c.user.set(s[f.value.id], p);
1589
- case o.value.role:
1590
- return c.role.set(s[f.value.id], p);
1591
- case o.value.post:
1592
- return c.post.set(s[f.value.id], p);
1593
- case o.value.group:
1594
- return c.group.set(s[f.value.id], p);
1586
+ switch (o[f.value.type]) {
1587
+ case s.value.user:
1588
+ return c.user.set(o[f.value.id], p);
1589
+ case s.value.role:
1590
+ return c.role.set(o[f.value.id], p);
1591
+ case s.value.post:
1592
+ return c.post.set(o[f.value.id], p);
1593
+ case s.value.group:
1594
+ return c.group.set(o[f.value.id], p);
1595
1595
  default:
1596
1596
  return;
1597
1597
  }
1598
1598
  }
1599
- }, ze = (s) => [o.value.group].includes(
1600
- s[f.value.type]
1601
- ) ? s.hasOwnProperty("disabled") : !1;
1599
+ }, ze = (o) => [s.value.group].includes(
1600
+ o[f.value.type]
1601
+ ) ? o == null ? void 0 : o.hasOwnProperty("disabled") : !1;
1602
1602
  le(
1603
1603
  () => c.trans,
1604
- (s) => {
1605
- if (!s.length)
1604
+ (o) => {
1605
+ if (!o.length)
1606
1606
  z.value.forEach((p) => {
1607
1607
  p.disabled = !1;
1608
1608
  try {
@@ -1612,12 +1612,12 @@ const Ua = {
1612
1612
  });
1613
1613
  else {
1614
1614
  const p = z.value.filter(
1615
- (k) => !s.includes(k[f.value.id])
1615
+ (k) => !o.includes(k[f.value.id])
1616
1616
  );
1617
1617
  for (const k of p)
1618
1618
  k.disabled = !1, l.multiple && K(k);
1619
1619
  const y = z.value.filter(
1620
- (k) => s.includes(k[f.value.id])
1620
+ (k) => o.includes(k[f.value.id])
1621
1621
  );
1622
1622
  for (const k of y)
1623
1623
  k.disabled = ze(k), ce(k);
@@ -1626,19 +1626,19 @@ const Ua = {
1626
1626
  { deep: !0 }
1627
1627
  ), le(
1628
1628
  () => c.single,
1629
- (s) => {
1630
- if (s) {
1631
- const p = z.value.find((y) => y[f.value.id] === s);
1629
+ (o) => {
1630
+ if (o) {
1631
+ const p = z.value.find((y) => y[f.value.id] === o);
1632
1632
  p && (c.user.clear(), c.role.clear(), c.post.clear(), c.group.clear(), c.trans = [], He(() => {
1633
1633
  ce(p);
1634
1634
  }));
1635
1635
  }
1636
1636
  }
1637
1637
  );
1638
- const Ke = (s) => {
1639
- g.value = s == null ? void 0 : s.elementId, O(), v.value.push(s);
1640
- }, Ie = I(() => v.value.length), Qe = (s, p) => {
1641
- !p && !l.topLink || p !== Ie.value - 1 && (g.value = s == null ? void 0 : s.elementId, O(), v.value.splice(p + 1));
1638
+ const Ke = (o) => {
1639
+ g.value = o == null ? void 0 : o.elementId, O(), v.value.push(o);
1640
+ }, Ie = I(() => v.value.length), Qe = (o, p) => {
1641
+ !p && !l.topLink || p !== Ie.value - 1 && (g.value = o == null ? void 0 : o.elementId, O(), v.value.splice(p + 1));
1642
1642
  }, Fe = I(
1643
1643
  () => l.chooseType.includes("role") && l.chooseType.length === 1
1644
1644
  ), Xe = I(
@@ -1648,7 +1648,7 @@ const Ua = {
1648
1648
  const pe = () => {
1649
1649
  c.user.clear(), c.role.clear(), c.post.clear(), c.group.clear(), c.trans = [], Oe.value = [], ke.value = [], me.value = l.tabs[0], oe.value = l.tabs[0], x.value = "", g.value = l.orgPid, v.value.splice(1, v.value.length), c.single = "", i.value = [];
1650
1650
  }, Ze = () => {
1651
- var s;
1651
+ var o;
1652
1652
  te(
1653
1653
  "ok",
1654
1654
  J.cloneDeep({
@@ -1657,25 +1657,25 @@ const Ua = {
1657
1657
  // 排序后的列表
1658
1658
  sort: i.value
1659
1659
  })
1660
- ), te("update:modelValue", J.cloneDeep(((s = $.value) == null ? void 0 : s.list) || [])), te("update:show", !1), pe();
1660
+ ), te("update:modelValue", J.cloneDeep(((o = $.value) == null ? void 0 : o.list) || [])), te("update:show", !1), pe();
1661
1661
  }, De = () => {
1662
1662
  te("update:show", !1), pe();
1663
1663
  };
1664
1664
  h({ handClear: pe, handRomeve: Ae, handDelete: K });
1665
1665
  const qe = I(() => {
1666
- const s = ee.value;
1667
- return !!((s.includes("post") || s.includes("role")) && s.length > 1);
1666
+ const o = ee.value;
1667
+ return !!((o.includes("post") || o.includes("role")) && o.length > 1);
1668
1668
  }), Je = I(() => [
1669
1669
  { name: "group", label: "组织架构" },
1670
1670
  { name: "role", label: "角色列表" },
1671
1671
  { name: "post", label: "岗位列表" }
1672
- ].filter((s) => l.tabs.includes(s.name))), Me = I(
1672
+ ].filter((o) => l.tabs.includes(o.name))), Me = I(
1673
1673
  () => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
1674
1674
  ), _e = () => {
1675
1675
  l.multiple || (c.post.clear(), c.role.clear(), c.user.clear(), c.group.clear(), c.single = "");
1676
- }, et = I(() => $.value.groups.list.concat($.value.user.list)), tt = (s, p) => {
1676
+ }, et = I(() => $.value.groups.list.concat($.value.user.list)), tt = (o, p) => {
1677
1677
  l.multiple || (c.single = "");
1678
- const y = l.multiple ? s : [s];
1678
+ const y = l.multiple ? o : [o];
1679
1679
  if (!y.length) {
1680
1680
  c.group.clear(), c.user.clear();
1681
1681
  return;
@@ -1683,9 +1683,9 @@ const Ua = {
1683
1683
  _e(), p.forEach((k) => {
1684
1684
  y != null && y.includes(k[f.value.id]) ? ce(k) : K(k);
1685
1685
  });
1686
- }, Oe = S([]), lt = (s, p) => {
1686
+ }, Oe = S([]), lt = (o, p) => {
1687
1687
  l.multiple || (c.single = "");
1688
- const y = l.multiple ? s : [s];
1688
+ const y = l.multiple ? o : [o];
1689
1689
  if (!y.length) {
1690
1690
  c.role.clear();
1691
1691
  return;
@@ -1696,13 +1696,13 @@ const Ua = {
1696
1696
  };
1697
1697
  le(
1698
1698
  () => $.value.role.len,
1699
- (s) => {
1699
+ (o) => {
1700
1700
  Oe.value = J.cloneDeep($.value.role.list);
1701
1701
  }
1702
1702
  );
1703
- const ke = S([]), at = (s, p) => {
1703
+ const ke = S([]), at = (o, p) => {
1704
1704
  l.multiple || (c.single = "");
1705
- const y = l.multiple ? s : [s];
1705
+ const y = l.multiple ? o : [o];
1706
1706
  if (!y.length) {
1707
1707
  c.post.clear();
1708
1708
  return;
@@ -1713,27 +1713,27 @@ const Ua = {
1713
1713
  };
1714
1714
  return le(
1715
1715
  () => $.value.post.len,
1716
- (s) => {
1716
+ (o) => {
1717
1717
  ke.value = J.cloneDeep($.value.post.list);
1718
1718
  }
1719
1719
  ), le(
1720
1720
  () => x.value,
1721
- (s) => {
1721
+ (o) => {
1722
1722
  Y("");
1723
1723
  }
1724
- ), (s, p) => {
1724
+ ), (o, p) => {
1725
1725
  const y = be("el-tab-pane"), k = be("el-tabs");
1726
1726
  return r(), U(A(pt), {
1727
1727
  modelValue: ne.value,
1728
1728
  "onUpdate:modelValue": p[2] || (p[2] = (w) => ne.value = w),
1729
- title: s.title,
1729
+ title: o.title,
1730
1730
  "destroy-on-close": "",
1731
1731
  "append-to-body": "",
1732
1732
  "close-on-click-modal": !1,
1733
1733
  "close-on-click-escape": !1,
1734
1734
  draggable: "",
1735
1735
  "align-center": "",
1736
- width: typeof s.width == "string" ? s.width : `${s.width}%`,
1736
+ width: typeof o.width == "string" ? o.width : `${o.width}%`,
1737
1737
  class: "p_p_picker-dialog",
1738
1738
  "modal-class": "p_p_picker-dialog-modal-user",
1739
1739
  onClose: De
@@ -1775,7 +1775,7 @@ const Ua = {
1775
1775
  modelValue: x.value,
1776
1776
  "onUpdate:modelValue": p[0] || (p[0] = (w) => x.value = w),
1777
1777
  clearable: "",
1778
- placeholder: s.placeholder,
1778
+ placeholder: o.placeholder,
1779
1779
  "suffix-icon": Xt
1780
1780
  }, null, 8, ["modelValue", "placeholder"]),
1781
1781
  qe.value ? (r(), U(k, {
@@ -1806,7 +1806,7 @@ const Ua = {
1806
1806
  L(" 面包屑 全选 "),
1807
1807
  m(A(dt), {
1808
1808
  separator: ">",
1809
- class: ie(["banner", { "top-unlink": !s.topLink }])
1809
+ class: ie(["banner", { "top-unlink": !o.topLink }])
1810
1810
  }, {
1811
1811
  default: B(() => [
1812
1812
  Ie.value ? (r(!0), d(
@@ -1839,10 +1839,10 @@ const Ua = {
1839
1839
  oe.value === A(ve).group ? fe((r(), U(Xl, {
1840
1840
  key: 1,
1841
1841
  fixPropOpt: f.value,
1842
- fixTypeOpt: o.value,
1842
+ fixTypeOpt: s.value,
1843
1843
  list: H.value,
1844
- max: s.max,
1845
- multiple: s.multiple,
1844
+ max: o.max,
1845
+ multiple: o.multiple,
1846
1846
  "hand-list": et.value,
1847
1847
  imageBaseUrl: l.imageBaseUrl,
1848
1848
  emptyText: l.emptyText,
@@ -1859,10 +1859,10 @@ const Ua = {
1859
1859
  L(" 角色 "),
1860
1860
  fe(m(Ta, {
1861
1861
  fixPropOpt: f.value,
1862
- fixTypeOpt: o.value,
1862
+ fixTypeOpt: s.value,
1863
1863
  list: R.value,
1864
- max: s.max,
1865
- multiple: s.multiple,
1864
+ max: o.max,
1865
+ multiple: o.multiple,
1866
1866
  "hand-list": Oe.value,
1867
1867
  imageBaseUrl: l.imageBaseUrl,
1868
1868
  emptyText: l.emptyText,
@@ -1881,10 +1881,10 @@ const Ua = {
1881
1881
  L(" 岗位 "),
1882
1882
  fe(m(pa, {
1883
1883
  fixPropOpt: f.value,
1884
- fixTypeOpt: o.value,
1884
+ fixTypeOpt: s.value,
1885
1885
  list: D.value,
1886
- max: s.max,
1887
- multiple: s.multiple,
1886
+ max: o.max,
1887
+ multiple: o.multiple,
1888
1888
  "hand-list": ke.value,
1889
1889
  imageBaseUrl: l.imageBaseUrl,
1890
1890
  emptyText: l.emptyText,
@@ -1924,7 +1924,7 @@ const Ua = {
1924
1924
  L(" icon前缀 "),
1925
1925
  u("div", Ga, [
1926
1926
  m(G, {
1927
- fixTypeOpt: o.value,
1927
+ fixTypeOpt: s.value,
1928
1928
  fixPropOpt: f.value,
1929
1929
  element: w,
1930
1930
  imageBaseUrl: l.imageBaseUrl
@@ -2184,7 +2184,7 @@ const Fa = /* @__PURE__ */ W({
2184
2184
  defaultCheckedKeys: ne,
2185
2185
  currentNodeKey: j,
2186
2186
  accordion: K
2187
- }, null), o = ({
2187
+ }, null), s = ({
2188
2188
  key: a,
2189
2189
  placeholder: v,
2190
2190
  typeOption: _,
@@ -2218,7 +2218,7 @@ const Fa = /* @__PURE__ */ W({
2218
2218
  case q.treeselect:
2219
2219
  return f(a);
2220
2220
  case q.choosePerson:
2221
- return o(a);
2221
+ return s(a);
2222
2222
  default:
2223
2223
  return m(M, null, null);
2224
2224
  }
@@ -2307,34 +2307,34 @@ const Fa = /* @__PURE__ */ W({
2307
2307
  emits: ["refresh", "search", "update:formRef", "import", "export", "delete"],
2308
2308
  setup(t, { emit: h }) {
2309
2309
  const e = t, l = h, x = {}, g = {}, C = S([]), P = S({ ...g }), R = S(null), D = S(!1);
2310
- le(C, (o, i) => {
2311
- const n = i.filter((a) => !o.includes(a));
2310
+ le(C, (s, i) => {
2311
+ const n = i.filter((a) => !s.includes(a));
2312
2312
  if (n.length) {
2313
2313
  let a = !1;
2314
2314
  n.forEach((v) => {
2315
2315
  P.value[v] !== void 0 && (a = !0), P.value[v] = void 0;
2316
2316
  }), a && l("search", P.value);
2317
2317
  }
2318
- }), e.list.forEach((o, i) => {
2319
- g[o.key] = g[o.value], i < e.num && (x[o.key] = x[o.value], C.value.push(o.key));
2318
+ }), e.list.forEach((s, i) => {
2319
+ g[s.key] = g[s.value], i < e.num && (x[s.key] = x[s.value], C.value.push(s.key));
2320
2320
  });
2321
2321
  const b = I(
2322
- () => C.value.map((o) => e.list.find((i) => i.key === o))
2322
+ () => C.value.map((s) => e.list.find((i) => i.key === s))
2323
2323
  );
2324
2324
  I(() => {
2325
- const { minSpan: o } = e;
2326
- return b.value.length < 4 ? o > 8 || o > 6 ? o : 6 : o;
2325
+ const { minSpan: s } = e;
2326
+ return b.value.length < 4 ? s > 8 || s > 6 ? s : 6 : s;
2327
2327
  });
2328
2328
  const H = () => {
2329
- var o;
2329
+ var s;
2330
2330
  try {
2331
- (o = R.value) == null || o.resetFields(), l("refresh"), l("search", P.value);
2331
+ (s = R.value) == null || s.resetFields(), l("refresh"), l("search", P.value);
2332
2332
  } catch {
2333
2333
  }
2334
2334
  }, f = () => {
2335
2335
  D.value = !D.value;
2336
2336
  };
2337
- return (o, i) => (r(), d("div", null, [
2337
+ return (s, i) => (r(), d("div", null, [
2338
2338
  m(Nt, {
2339
2339
  rowData: e.rowData,
2340
2340
  onDelete: i[0] || (i[0] = (n) => l("delete", t.rowData)),
@@ -2387,7 +2387,7 @@ const Fa = /* @__PURE__ */ W({
2387
2387
  class: ie(["last-with-btn", a === b.value.length - 1 ? "last-form" : ""])
2388
2388
  },
2389
2389
  [
2390
- n != null && n.slot ? ct(o.$slots, n == null ? void 0 : n.slot, { key: 0 }, void 0, !0) : L("v-if", !0),
2390
+ n != null && n.slot ? ct(s.$slots, n == null ? void 0 : n.slot, { key: 0 }, void 0, !0) : L("v-if", !0),
2391
2391
  n != null && n.slot ? L("v-if", !0) : (r(), U(A(Fa), {
2392
2392
  key: 1,
2393
2393
  onHandleChange: i[3] || (i[3] = (v) => l("search", P.value)),