iking-web-ui-pro 0.2.45 → 0.2.47

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.
Files changed (46) hide show
  1. package/dist/IKApprovalProcess/ik.index.es.js +113 -100
  2. package/dist/IKApprovalProcess/ik.index.umd.js +1 -1
  3. package/dist/IKApprovalProcess/style.css +1 -1
  4. package/dist/IKApprovalProcessDetail/ik.index.es.js +359 -360
  5. package/dist/IKApprovalProcessDetail/ik.index.umd.js +44 -44
  6. package/dist/IKApprovalProcessDetail/style.css +1 -1
  7. package/dist/IKCalendar/ik.index.es.js +4 -3
  8. package/dist/IKCalendar/ik.index.umd.js +1 -1
  9. package/dist/IKPreviewFile/ik.index.es.js +352 -353
  10. package/dist/IKPreviewFile/ik.index.umd.js +44 -44
  11. package/dist/IKPreviewFile/style.css +1 -1
  12. package/dist/IKSearch/ik.index.es.js +4 -3
  13. package/dist/IKSearch/ik.index.umd.js +1 -1
  14. package/dist/IkDescription/ik.index.es.js +299 -300
  15. package/dist/IkDescription/ik.index.umd.js +44 -44
  16. package/dist/IkDescription/style.css +1 -1
  17. package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -308
  18. package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
  19. package/dist/IkDetailPreviewFiles/style.css +1 -1
  20. package/dist/IkOnlyOffice/ik.index.es.js +13 -19
  21. package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
  22. package/dist/IkPageFull/ik.index.es.js +4 -3
  23. package/dist/IkPageFull/ik.index.umd.js +1 -1
  24. package/dist/IkPickerUser/ik.index.es.js +4 -3
  25. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  26. package/dist/IkPreviewFileDialog/ik.index.es.js +343 -344
  27. package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
  28. package/dist/IkPreviewFileDialog/style.css +1 -1
  29. package/dist/IkTemplateOfficeConfig/ik.index.es.js +77 -78
  30. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  31. package/dist/IkTinymce/ik.index.es.js +8802 -8740
  32. package/dist/IkTinymce/ik.index.umd.js +38 -38
  33. package/dist/IkTinymce/style.css +1 -1
  34. package/dist/IkUploadFile/ik.index.es.js +333 -334
  35. package/dist/IkUploadFile/ik.index.umd.js +46 -46
  36. package/dist/IkUploadFile/style.css +1 -1
  37. package/dist/IkUploadImage/ik.index.es.js +378 -378
  38. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  39. package/dist/IkUploadImage/style.css +1 -1
  40. package/dist/index.es.js +12344 -12330
  41. package/dist/index.umd.js +109 -109
  42. package/dist/src/components/IkApprovalProcess/index.d.ts +9 -0
  43. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +9 -0
  44. package/dist/style.css +1 -1
  45. package/package.json +1 -1
  46. package/dist/IkOnlyOffice/style.css +0 -0
@@ -1,6 +1,6 @@
1
- import { inject as ne, computed as U, openBlock as a, createElementBlock as d, createElementVNode as n, defineComponent as oe, resolveComponent as fe, createBlock as B, toDisplayString as P, createCommentVNode as x, ref as E, Fragment as N, unref as O, withCtx as I, createTextVNode as Y, renderList as j, createVNode as w, normalizeClass as se, pushScopeId as he, popScopeId as Ae, useCssVars as nt, watch as K, toRef as it, reactive as Te, nextTick as ke, watchEffect as $e, withModifiers as ie, normalizeStyle as He, withDirectives as ce, vShow as rt, mergeProps as Me } from "vue";
2
- import { ikStore as pe, _ as X, ikEvent as pt } from "iking-utils-pro";
3
- import { ElCheckbox as ae, ElCheckboxGroup as Le, ElRadioGroup as be, ElRadio as Ce, ElDialog as dt, ElButton as Oe, ElInput as ut, ElBreadcrumb as ct, ElBreadcrumbItem as ft, vLoading as Pe } from "element-plus";
1
+ import { inject as ie, computed as U, openBlock as a, createElementBlock as d, createElementVNode as n, defineComponent as ne, resolveComponent as fe, createBlock as B, toDisplayString as P, createCommentVNode as x, ref as E, Fragment as N, unref as O, withCtx as I, createTextVNode as Y, renderList as j, createVNode as w, normalizeClass as se, pushScopeId as he, popScopeId as Ae, useCssVars as nt, watch as K, toRef as it, reactive as Te, nextTick as ke, watchEffect as $e, withModifiers as re, normalizeStyle as He, withDirectives as ce, vShow as rt, mergeProps as Me } from "vue";
2
+ import { ikStore as ae, _ as X, ikEvent as pt } from "iking-utils-pro";
3
+ import { ElCheckbox as oe, ElCheckboxGroup as Le, ElRadioGroup as be, ElRadio as Ce, ElDialog as dt, ElButton as Oe, ElInput as ut, ElBreadcrumb as ct, ElBreadcrumbItem as ft, vLoading as Pe } from "element-plus";
4
4
  import ht from "axios";
5
5
  const Ge = (o, v) => {
6
6
  if (o.install = (e) => {
@@ -181,14 +181,14 @@ const Ge = (o, v) => {
181
181
  "flv",
182
182
  "tls"
183
183
  ], ze = (o) => {
184
- const v = ne("loadUrl"), e = U(() => o.loadUrl || o.fileUrl || (v == null ? void 0 : v.value)), l = ne("uploadUrl"), k = U(() => o.action || o.uploadUrl || (l == null ? void 0 : l.value)), _ = ne("token"), b = U(() => o.token || (_ == null ? void 0 : _.value)), C = ne("onlyofficeConfig"), p = U(() => o.onlyofficeConfig || (C == null ? void 0 : C.value)), F = ne("userInfo"), V = U(() => o.userInfo || (F == null ? void 0 : F.value)), D = [...We, ...We.map((y) => y.toLocaleUpperCase())];
184
+ const v = ie("loadUrl"), e = U(() => o.loadUrl || o.fileUrl || (v == null ? void 0 : v.value)), l = ie("uploadUrl"), k = U(() => o.action || o.uploadUrl || (l == null ? void 0 : l.value)), _ = ie("token"), b = U(() => o.token || (_ == null ? void 0 : _.value)), C = ie("onlyofficeConfig"), p = U(() => o.onlyofficeConfig || (C == null ? void 0 : C.value)), D = ie("userInfo"), V = U(() => o.userInfo || (D == null ? void 0 : D.value)), F = [...We, ...We.map((y) => y.toLocaleUpperCase())];
185
185
  return {
186
186
  cLoadUrl: e,
187
187
  cUploadUrl: k,
188
188
  cToken: b,
189
189
  cOnlyofficeConfig: p,
190
190
  cUserInfo: V,
191
- cOnlyofficePreviewType: D
191
+ cOnlyofficePreviewType: F
192
192
  };
193
193
  }, mt = {}, gt = {
194
194
  t: "1672194715727",
@@ -292,10 +292,10 @@ const Bt = /* @__PURE__ */ G(kt, [["render", Ut]]), wt = {}, It = {
292
292
  Et,
293
293
  Vt
294
294
  ];
295
- function Ft(o, v) {
295
+ function Dt(o, v) {
296
296
  return a(), d("svg", It, Nt);
297
297
  }
298
- const Dt = /* @__PURE__ */ G(wt, [["render", Ft]]), Rt = {}, $t = {
298
+ const Ft = /* @__PURE__ */ G(wt, [["render", Dt]]), Rt = {}, $t = {
299
299
  t: "1710904436436",
300
300
  class: "icon",
301
301
  viewBox: "0 0 1024 1024",
@@ -373,7 +373,7 @@ const Yt = /* @__PURE__ */ G(zt, [["render", Kt]]), Jt = { class: "avatar" }, el
373
373
  }, tl = {
374
374
  key: 1,
375
375
  class: "avatar_name"
376
- }, ll = /* @__PURE__ */ oe({
376
+ }, ll = /* @__PURE__ */ ne({
377
377
  __name: "Avatar",
378
378
  props: {
379
379
  fixPropOpt: {
@@ -401,7 +401,7 @@ const Yt = /* @__PURE__ */ G(zt, [["render", Kt]]), Jt = { class: "avatar" }, el
401
401
  return (k, _) => {
402
402
  const b = fe("el-avatar");
403
403
  return a(), d("div", Jt, [
404
- v.fixTypeOpt.group === o.element[v.fixPropOpt.type] ? (a(), B(Yt, { key: 0 })) : v.fixTypeOpt.role === o.element[v.fixPropOpt.type] ? (a(), B(Dt, { key: 1 })) : v.fixTypeOpt.post === o.element[v.fixPropOpt.type] ? (a(), B(Gt, { key: 2 })) : v.fixTypeOpt.user === o.element[v.fixPropOpt.type] ? (a(), d("div", el, [
404
+ v.fixTypeOpt.group === o.element[v.fixPropOpt.type] ? (a(), B(Yt, { key: 0 })) : v.fixTypeOpt.role === o.element[v.fixPropOpt.type] ? (a(), B(Ft, { key: 1 })) : v.fixTypeOpt.post === o.element[v.fixPropOpt.type] ? (a(), B(Gt, { key: 2 })) : v.fixTypeOpt.user === o.element[v.fixPropOpt.type] ? (a(), d("div", el, [
405
405
  o.element[o.fixPropOpt.avatar] ? (a(), B(b, {
406
406
  key: 0,
407
407
  shape: "square",
@@ -521,7 +521,7 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
521
521
  null,
522
522
  -1
523
523
  /* HOISTED */
524
- )), Bl = /* @__PURE__ */ oe({
524
+ )), Bl = /* @__PURE__ */ ne({
525
525
  __name: "GroupList",
526
526
  props: Ue,
527
527
  emits: ["change", "check", "handChild"],
@@ -542,11 +542,11 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
542
542
  return r[e.fixPropOpt.id];
543
543
  }) : [];
544
544
  C("change", t, A ? e.list : []);
545
- }, F = (A) => {
545
+ }, D = (A) => {
546
546
  C("change", A, e.list);
547
547
  }, V = (A) => {
548
548
  C("change", A, e.list);
549
- }, D = (A, t) => {
549
+ }, F = (A, t) => {
550
550
  t || C("handChild", A);
551
551
  };
552
552
  return (A, t) => (a(), d(
@@ -555,7 +555,7 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
555
555
  [
556
556
  x(" 遍历list多选 "),
557
557
  n("div", sl, [
558
- A.multiple && A.list && A.list.length ? (a(), B(O(ae), {
558
+ A.multiple && A.list && A.list.length ? (a(), B(O(oe), {
559
559
  key: 0,
560
560
  modelValue: l.value,
561
561
  "onUpdate:modelValue": t[0] || (t[0] = (r) => l.value = r),
@@ -573,7 +573,7 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
573
573
  key: 0,
574
574
  modelValue: _.value,
575
575
  "onUpdate:modelValue": t[1] || (t[1] = (r) => _.value = r),
576
- onChange: F
576
+ onChange: D
577
577
  }, {
578
578
  default: I(() => [
579
579
  (a(!0), d(
@@ -586,7 +586,7 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
586
586
  }, [
587
587
  A.chooseType.includes(
588
588
  r[e.fixPropOpt.type].toLowerCase()
589
- ) && r.available !== !1 ? (a(), B(O(ae), {
589
+ ) && r.available !== !1 ? (a(), B(O(oe), {
590
590
  key: 0,
591
591
  label: r[e.fixPropOpt.id],
592
592
  disabled: r.available === !1
@@ -657,7 +657,7 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
657
657
  }]),
658
658
  onClick: (u) => {
659
659
  var S;
660
- return D(
660
+ return F(
661
661
  r,
662
662
  (S = _.value) == null ? void 0 : S.find((c) => c === r[e.fixPropOpt.id])
663
663
  );
@@ -758,7 +758,7 @@ const M = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
758
758
  }]),
759
759
  onClick: (u) => {
760
760
  var S;
761
- return D(
761
+ return F(
762
762
  r,
763
763
  (S = _.value) == null ? void 0 : S.find((c) => c === r[e.fixPropOpt.id])
764
764
  );
@@ -796,13 +796,13 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
796
796
  }, Vl = { class: "iconBox" }, Nl = {
797
797
  key: 1,
798
798
  class: "checkText"
799
- }, Fl = /* @__PURE__ */ we(() => /* @__PURE__ */ n(
799
+ }, Dl = /* @__PURE__ */ we(() => /* @__PURE__ */ n(
800
800
  "div",
801
801
  { class: "side" },
802
802
  null,
803
803
  -1
804
804
  /* HOISTED */
805
- )), Dl = { class: "iconBox" }, Rl = { class: "title" }, $l = { class: "ik-picker-single" }, Ml = { class: "iconBox" }, Wl = {
805
+ )), Fl = { class: "iconBox" }, Rl = { class: "title" }, $l = { class: "ik-picker-single" }, Ml = { class: "iconBox" }, Wl = {
806
806
  key: 1,
807
807
  class: "checkText"
808
808
  }, jl = /* @__PURE__ */ we(() => /* @__PURE__ */ n(
@@ -823,12 +823,12 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
823
823
  null,
824
824
  -1
825
825
  /* HOISTED */
826
- )), Xl = /* @__PURE__ */ oe({
826
+ )), Xl = /* @__PURE__ */ ne({
827
827
  __name: "PostList",
828
828
  props: Ue,
829
829
  emits: ["change", "check"],
830
830
  setup(o, { emit: v }) {
831
- var D, y;
831
+ var F, y;
832
832
  const e = o, l = U(() => {
833
833
  var i, A;
834
834
  return ((i = e.handList) == null ? void 0 : i.length) === ((A = e.list) == null ? void 0 : A.length);
@@ -838,10 +838,10 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
838
838
  return e.multiple ? _.value = e.handList.map((S) => S[e.fixPropOpt.id]) : b.value = (u = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : u[e.fixPropOpt.id], i > 0 && i < A;
839
839
  }), _ = E(
840
840
  e.handList.map((i) => i[e.fixPropOpt.id])
841
- ), b = E((y = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
841
+ ), b = E((y = (F = e.handList) == null ? void 0 : F[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
842
842
  const A = i ? e.list.map((t) => t[e.fixPropOpt.id]) : [];
843
843
  C("change", A, i ? e.list : []);
844
- }, F = (i) => {
844
+ }, D = (i) => {
845
845
  C("change", i, e.list);
846
846
  }, V = (i) => {
847
847
  C("change", i, e.list);
@@ -852,7 +852,7 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
852
852
  [
853
853
  x(" 遍历list多选 "),
854
854
  n("div", Il, [
855
- i.multiple && i.chooseType.includes("post") && i.list && i.list.length ? (a(), B(O(ae), {
855
+ i.multiple && i.chooseType.includes("post") && i.list && i.list.length ? (a(), B(O(oe), {
856
856
  key: 0,
857
857
  modelValue: l.value,
858
858
  "onUpdate:modelValue": A[0] || (A[0] = (t) => l.value = t),
@@ -870,7 +870,7 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
870
870
  key: 0,
871
871
  modelValue: _.value,
872
872
  "onUpdate:modelValue": A[1] || (A[1] = (t) => _.value = t),
873
- onChange: F
873
+ onChange: D
874
874
  }, {
875
875
  default: I(() => [
876
876
  (a(!0), d(
@@ -879,7 +879,7 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
879
879
  j(i.list, (t) => (a(), d("li", {
880
880
  key: t[e.fixPropOpt.id]
881
881
  }, [
882
- i.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (a(), B(O(ae), {
882
+ i.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (a(), B(O(oe), {
883
883
  key: 0,
884
884
  label: t[e.fixPropOpt.id]
885
885
  }, {
@@ -903,8 +903,8 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
903
903
  _: 2
904
904
  /* DYNAMIC */
905
905
  }, 1032, ["label"])) : (a(), d("div", Nl, [
906
- Fl,
907
- n("div", Dl, [
906
+ Dl,
907
+ n("div", Fl, [
908
908
  w(M, {
909
909
  fixTypeOpt: e.fixTypeOpt,
910
910
  fixPropOpt: e.fixPropOpt,
@@ -1043,12 +1043,12 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
1043
1043
  null,
1044
1044
  -1
1045
1045
  /* HOISTED */
1046
- )), fs = /* @__PURE__ */ oe({
1046
+ )), fs = /* @__PURE__ */ ne({
1047
1047
  __name: "RoleList",
1048
1048
  props: Ue,
1049
1049
  emits: ["change", "check"],
1050
1050
  setup(o, { emit: v }) {
1051
- var D, y;
1051
+ var F, y;
1052
1052
  const e = o, l = U(() => {
1053
1053
  var i, A;
1054
1054
  return ((i = e.handList) == null ? void 0 : i.length) === ((A = e.list) == null ? void 0 : A.length);
@@ -1058,10 +1058,10 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
1058
1058
  return e.multiple ? _.value = e.handList.map((S) => S[e.fixPropOpt.id]) : b.value = (u = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : u[e.fixPropOpt.id], i > 0 && i < A;
1059
1059
  }), _ = E(
1060
1060
  e.handList.map((i) => i[e.fixPropOpt.id])
1061
- ), b = E((y = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
1061
+ ), b = E((y = (F = e.handList) == null ? void 0 : F[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
1062
1062
  const A = i ? e.list.map((t) => t[e.fixPropOpt.id]) : [];
1063
1063
  C("change", A, i ? e.list : []);
1064
- }, F = (i) => {
1064
+ }, D = (i) => {
1065
1065
  C("change", i, e.list);
1066
1066
  }, V = (i) => {
1067
1067
  C("change", i, e.list);
@@ -1072,7 +1072,7 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
1072
1072
  [
1073
1073
  x(" 遍历list多选 "),
1074
1074
  n("div", Zl, [
1075
- i.multiple && i.chooseType.includes("role") && i.list && i.list.length ? (a(), B(O(ae), {
1075
+ i.multiple && i.chooseType.includes("role") && i.list && i.list.length ? (a(), B(O(oe), {
1076
1076
  key: 0,
1077
1077
  modelValue: l.value,
1078
1078
  "onUpdate:modelValue": A[0] || (A[0] = (t) => l.value = t),
@@ -1090,7 +1090,7 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
1090
1090
  key: 0,
1091
1091
  modelValue: _.value,
1092
1092
  "onUpdate:modelValue": A[1] || (A[1] = (t) => _.value = t),
1093
- onChange: F
1093
+ onChange: D
1094
1094
  }, {
1095
1095
  default: I(() => [
1096
1096
  (a(!0), d(
@@ -1099,7 +1099,7 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
1099
1099
  j(i.list, (t) => (a(), d("li", {
1100
1100
  key: t[i.fixPropOpt.id]
1101
1101
  }, [
1102
- i.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (a(), B(O(ae), {
1102
+ i.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (a(), B(O(oe), {
1103
1103
  key: 0,
1104
1104
  label: t[i.fixPropOpt.id],
1105
1105
  value: t[i.fixPropOpt.id],
@@ -1221,7 +1221,7 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
1221
1221
  }
1222
1222
  });
1223
1223
  const hs = /* @__PURE__ */ G(fs, [["__scopeId", "data-v-be3b3e45"]]);
1224
- var re = /* @__PURE__ */ ((o) => (o.group = "group", o.role = "role", o.post = "post", o))(re || {});
1224
+ var pe = /* @__PURE__ */ ((o) => (o.group = "group", o.role = "role", o.post = "post", o))(pe || {});
1225
1225
  const As = {
1226
1226
  // 是否允许选择子集
1227
1227
  children: {
@@ -1396,7 +1396,7 @@ const As = {
1396
1396
  const v = window.location.search;
1397
1397
  return new URLSearchParams(v).get(o);
1398
1398
  }, vs = (o) => {
1399
- const v = pe.local.getItem("x_domain");
1399
+ const v = ae.local.getItem("x_domain");
1400
1400
  v && (o["X-DOMAIN"] = v);
1401
1401
  }, ys = (o) => {
1402
1402
  var e;
@@ -1407,25 +1407,26 @@ const As = {
1407
1407
  v === "APPLICATION" && (o["X-APP"] = l);
1408
1408
  } else
1409
1409
  vs(o);
1410
- (e = pe.local.getItem("tenant")) == null || e.code;
1410
+ (e = ae.local.getItem("tenant")) == null || e.code;
1411
1411
  }, ms = (o, v) => {
1412
1412
  const e = E([]), l = async (_, b) => {
1413
1413
  var Z, L, R;
1414
- const { url: C, methods: p, headers: F, param: V } = o.value || {}, D = {
1415
- ...V || {},
1416
- rootDepartmentId: (Z = pe.local.getItem("now_shop")) == null ? void 0 : Z.storeId,
1414
+ const { url: C, methods: p, headers: D, param: V } = o.value || {}, F = {
1415
+ // 额外参数
1416
+ rootDepartmentId: ((Z = ae.local.getItem("now_shop")) == null ? void 0 : Z.storeId) || "",
1417
1417
  parentDepartmentId: _ || "",
1418
1418
  name: b || "",
1419
1419
  rootDepartmentOnly: v.rootDepartmentOnly,
1420
- dataScopeOnly: v.dataScopeOnly
1420
+ dataScopeOnly: v.dataScopeOnly,
1421
+ ...V || {}
1421
1422
  }, y = {
1422
1423
  method: p,
1423
1424
  url: C,
1424
1425
  headers: {
1425
1426
  "Content-Type": "application/json;charset=UTF-8",
1426
- ...F
1427
+ ...D
1427
1428
  },
1428
- data: JSON.stringify(D)
1429
+ data: JSON.stringify(F)
1429
1430
  };
1430
1431
  ys(y.headers);
1431
1432
  const i = await ht(y), { success: A, data: t } = i.data;
@@ -1484,15 +1485,15 @@ const As = {
1484
1485
  "已选",
1485
1486
  -1
1486
1487
  /* HOISTED */
1487
- ), ks = { class: "choose-box" }, Ls = { class: "list-group-item" }, bs = { class: "item_info" }, Cs = { class: "avatar_box" }, Ss = { class: "dialog-footer" }, Us = /* @__PURE__ */ oe({
1488
+ ), ks = { class: "choose-box" }, Ls = { class: "list-group-item" }, bs = { class: "item_info" }, Cs = { class: "avatar_box" }, Ss = { class: "dialog-footer" }, Us = /* @__PURE__ */ ne({
1488
1489
  __name: "picker",
1489
1490
  props: As,
1490
1491
  emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
1491
1492
  setup(o, { expose: v, emit: e }) {
1492
1493
  nt((s) => ({
1493
- "775d0d08": De.value
1494
+ "775d0d08": Fe.value
1494
1495
  }));
1495
- const l = o, k = E(""), _ = E(""), b = E([]), C = E([]), p = E([]), F = E([]), V = E(!1), D = U(() => R.value.includes("user") ? C.value.concat(b.value) : C.value);
1496
+ const l = o, k = E(""), _ = E(""), b = E([]), C = E([]), p = E([]), D = E([]), V = E(!1), F = U(() => R.value.includes("user") ? C.value.concat(b.value) : C.value);
1496
1497
  K(
1497
1498
  () => l.api,
1498
1499
  () => {
@@ -1529,14 +1530,14 @@ const As = {
1529
1530
  (Q) => Q[y.value.name].includes(k.value)
1530
1531
  ), p.value = (_e = l.roleList) == null ? void 0 : _e.filter(
1531
1532
  (Q) => Q[y.value.name].includes(k.value)
1532
- ), F.value = (Re = l.postList) == null ? void 0 : Re.filter(
1533
+ ), D.value = (Re = l.postList) == null ? void 0 : Re.filter(
1533
1534
  (Q) => Q[y.value.name].includes(k.value)
1534
1535
  ), ye(), V.value = !1;
1535
1536
  return;
1536
1537
  }
1537
1538
  const $ = await r(_.value, k.value);
1538
1539
  try {
1539
- b.value = u(($ == null ? void 0 : $.userList) || []), C.value = u(($ == null ? void 0 : $.groupList) || []), p.value = u(($ == null ? void 0 : $.roleList) || []), F.value = u(($ == null ? void 0 : $.postList) || []);
1540
+ b.value = u(($ == null ? void 0 : $.userList) || []), C.value = u(($ == null ? void 0 : $.groupList) || []), p.value = u(($ == null ? void 0 : $.roleList) || []), D.value = u(($ == null ? void 0 : $.postList) || []);
1540
1541
  } catch (Q) {
1541
1542
  V.value = !1, console.info("error: ", Q);
1542
1543
  }
@@ -1599,7 +1600,7 @@ const As = {
1599
1600
  async (s) => {
1600
1601
  var f;
1601
1602
  if (ve.value = s, s) {
1602
- _.value = ((f = l.org) == null ? void 0 : f.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await S() : (b.value = l.userList, C.value = l.groupList, p.value = l.roleList, F.value = l.postList), c.trans = [], W.checkAll = 0, W.indeterminate = !1;
1603
+ _.value = ((f = l.org) == null ? void 0 : f.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await S() : (b.value = l.userList, C.value = l.groupList, p.value = l.roleList, D.value = l.postList), c.trans = [], W.checkAll = 0, W.indeterminate = !1;
1603
1604
  const m = ye(!0);
1604
1605
  for (const T of m)
1605
1606
  q(T[y.value.id]) && c.trans.push(T[y.value.id]);
@@ -1728,7 +1729,7 @@ const As = {
1728
1729
  sort: A.value
1729
1730
  })
1730
1731
  ), de("update:modelValue", X.cloneDeep(((s = L.value) == null ? void 0 : s.list) || [])), de("update:show", !1), te();
1731
- }, Fe = () => {
1732
+ }, De = () => {
1732
1733
  de("update:show", !1), te();
1733
1734
  };
1734
1735
  v({ handClear: te, handRomeve: Ve, handDelete: le });
@@ -1739,7 +1740,7 @@ const As = {
1739
1740
  { name: "group", label: "组织架构" },
1740
1741
  { name: "role", label: "角色列表" },
1741
1742
  { name: "post", label: "岗位列表" }
1742
- ].filter((s) => l.tabs.includes(s.name))), De = U(
1743
+ ].filter((s) => l.tabs.includes(s.name))), Fe = U(
1743
1744
  () => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
1744
1745
  ), me = () => {
1745
1746
  l.multiple || (c.post.clear(), c.role.clear(), c.user.clear(), c.group.clear(), c.single = "");
@@ -1806,12 +1807,12 @@ const As = {
1806
1807
  width: typeof s.width == "string" ? s.width : `${s.width}%`,
1807
1808
  class: "p_p_picker-dialog",
1808
1809
  "modal-class": "p_p_picker-dialog-modal-user",
1809
- onClose: Fe
1810
+ onClose: De
1810
1811
  }, {
1811
1812
  footer: I(() => [
1812
1813
  n("span", Ss, [
1813
1814
  w(O(Oe), {
1814
- onClick: ie(Fe, ["stop"])
1815
+ onClick: re(De, ["stop"])
1815
1816
  }, {
1816
1817
  default: I(() => [
1817
1818
  Y("取消")
@@ -1821,7 +1822,7 @@ const As = {
1821
1822
  }),
1822
1823
  w(O(Oe), {
1823
1824
  type: "primary",
1824
- onClick: ie(Je, ["stop"])
1825
+ onClick: re(Je, ["stop"])
1825
1826
  }, {
1826
1827
  default: I(() => [
1827
1828
  Y(" 确定 ")
@@ -1836,7 +1837,7 @@ const As = {
1836
1837
  "div",
1837
1838
  {
1838
1839
  class: "dep-use-picker",
1839
- style: He({ height: De.value })
1840
+ style: He({ height: Fe.value })
1840
1841
  },
1841
1842
  [
1842
1843
  n("div", gs, [
@@ -1872,7 +1873,7 @@ const As = {
1872
1873
  }, 8, ["modelValue"])) : x("v-if", !0)
1873
1874
  ]),
1874
1875
  x(" 过滤 "),
1875
- ee.value === O(re).group ? (a(), d(
1876
+ ee.value === O(pe).group ? (a(), d(
1876
1877
  N,
1877
1878
  { key: 0 },
1878
1879
  [
@@ -1888,7 +1889,7 @@ const As = {
1888
1889
  null,
1889
1890
  j(O(h), (T, z) => (a(), B(O(ft), {
1890
1891
  key: T[y.value.id],
1891
- onClick: ie((_e) => Ze(T, z), ["stop"])
1892
+ onClick: re((_e) => Ze(T, z), ["stop"])
1892
1893
  }, {
1893
1894
  default: I(() => [
1894
1895
  Y(
@@ -1914,11 +1915,11 @@ const As = {
1914
1915
  )) : x("v-if", !0),
1915
1916
  x(" 左侧列表 "),
1916
1917
  x(" 组织架构 "),
1917
- ee.value === O(re).group ? ce((a(), B(wl, {
1918
+ ee.value === O(pe).group ? ce((a(), B(wl, {
1918
1919
  key: 1,
1919
1920
  fixPropOpt: y.value,
1920
1921
  fixTypeOpt: i.value,
1921
- list: D.value,
1922
+ list: F.value,
1922
1923
  max: s.max,
1923
1924
  multiple: s.multiple,
1924
1925
  "hand-list": lt.value,
@@ -1930,7 +1931,7 @@ const As = {
1930
1931
  onChange: st
1931
1932
  }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
1932
1933
  [O(Pe), V.value]
1933
- ]) : ee.value === O(re).role ? (a(), d(
1934
+ ]) : ee.value === O(pe).role ? (a(), d(
1934
1935
  N,
1935
1936
  { key: 2 },
1936
1937
  [
@@ -1952,7 +1953,7 @@ const As = {
1952
1953
  ],
1953
1954
  64
1954
1955
  /* STABLE_FRAGMENT */
1955
- )) : ee.value === O(re).post ? (a(), d(
1956
+ )) : ee.value === O(pe).post ? (a(), d(
1956
1957
  N,
1957
1958
  { key: 3 },
1958
1959
  [
@@ -1960,7 +1961,7 @@ const As = {
1960
1961
  ce(w(ql, {
1961
1962
  fixPropOpt: y.value,
1962
1963
  fixTypeOpt: i.value,
1963
- list: F.value,
1964
+ list: D.value,
1964
1965
  max: s.max,
1965
1966
  multiple: s.multiple,
1966
1967
  "hand-list": xe.value,
@@ -1984,7 +1985,7 @@ const As = {
1984
1985
  w(O(Oe), {
1985
1986
  type: "primary",
1986
1987
  link: "",
1987
- onClick: ie(te, ["stop"])
1988
+ onClick: re(te, ["stop"])
1988
1989
  }, {
1989
1990
  default: I(() => [
1990
1991
  Y("清空")
@@ -2018,7 +2019,7 @@ const As = {
2018
2019
  ]),
2019
2020
  ce(w(Bt, {
2020
2021
  class: "close",
2021
- onClick: ie((z) => Ve(T), ["stop"])
2022
+ onClick: re((z) => Ve(T), ["stop"])
2022
2023
  }, null, 8, ["onClick"]), [
2023
2024
  [rt, !(T != null && T.readonly)]
2024
2025
  ])
@@ -2039,13 +2040,13 @@ const As = {
2039
2040
  };
2040
2041
  }
2041
2042
  });
2042
- const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2043
+ const Bs = Ge(Us), Qe = (o) => (he("data-v-7e3802e0"), o = o(), Ae(), o), ws = {
2043
2044
  class: "approveProcess",
2044
2045
  id: "approveProcess"
2045
2046
  }, Is = { class: "node" }, Es = { class: "nodeBg" }, Vs = {
2046
2047
  key: 0,
2047
2048
  class: "info"
2048
- }, Ns = { class: "explain" }, Fs = { key: 0 }, Ds = { key: 0 }, Rs = { key: 1 }, $s = { key: 0 }, Ms = { key: 1 }, Ws = { class: "personlist" }, js = { style: { width: "58px" } }, Hs = { class: "avatar" }, Gs = ["src"], zs = {
2049
+ }, Ns = { class: "explain" }, Ds = { key: 0 }, Fs = { key: 0 }, Rs = { key: 1 }, $s = { key: 0 }, Ms = { key: 1 }, Ws = { class: "personlist" }, js = { style: { width: "58px" } }, Hs = { class: "avatar" }, Gs = ["src"], zs = {
2049
2050
  key: 1,
2050
2051
  class: "nodeBg"
2051
2052
  }, Qs = ["onClick"], Xs = ["title"], qs = {
@@ -2071,7 +2072,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2071
2072
  /* HOISTED */
2072
2073
  )), la = { style: { flex: "1" } }, sa = { class: "node-branch" }, aa = {
2073
2074
  name: "IkApprovalProcess"
2074
- }, oa = /* @__PURE__ */ oe({
2075
+ }, oa = /* @__PURE__ */ ne({
2075
2076
  ...aa,
2076
2077
  props: {
2077
2078
  // 选人组件请求地址
@@ -2079,6 +2080,10 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2079
2080
  type: String,
2080
2081
  default: ""
2081
2082
  },
2083
+ pickerConfig: {
2084
+ type: Object,
2085
+ default: () => ({})
2086
+ },
2082
2087
  //文件访问地址
2083
2088
  loadUrl: {
2084
2089
  type: String,
@@ -2106,18 +2111,18 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2106
2111
  }
2107
2112
  },
2108
2113
  setup(o, { expose: v }) {
2109
- const e = o, { cLoadUrl: l } = ze(e), k = pe.local.getItem("token") || "Bearer 4db1039f04334180849002932f6a1fc6", _ = E("sys");
2114
+ const e = o, { cLoadUrl: l } = ze(e), k = ae.local.getItem("token") || "Bearer 4db1039f04334180849002932f6a1fc6", _ = E("sys");
2110
2115
  function b(t) {
2111
2116
  const r = window.location.search;
2112
2117
  return new URLSearchParams(r).get(t);
2113
2118
  }
2114
2119
  function C() {
2115
2120
  var r;
2116
- const t = b("xTenant") || ((r = pe.local.getItem("tenant")) == null ? void 0 : r.code);
2121
+ const t = b("xTenant") || ((r = ae.local.getItem("tenant")) == null ? void 0 : r.code);
2117
2122
  t && (_.value = t);
2118
2123
  }
2119
2124
  C();
2120
- const p = Te(vt(e)), F = async (t) => {
2125
+ const p = Te(vt(e)), D = async (t) => {
2121
2126
  var r;
2122
2127
  if (t.multiple = !t[p.defaultFile.singleApproval] || t[p.defaultFile.isShowAddCopy], t.handList = t[p.defaultFile.approvePersonList] ? t[p.defaultFile.approvePersonList] : [], t[p.defaultFile.nodeType] === p.nodeType.抄送节点)
2123
2128
  t.handList.forEach((h) => {
@@ -2143,7 +2148,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2143
2148
  }, V = (t) => {
2144
2149
  let r = "";
2145
2150
  return t.includes("http") || t.includes("https") ? r = t : r = l.value ? `${t.includes(l.value) ? "" : l.value}${t}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${t}`, r;
2146
- }, D = (t, r) => {
2151
+ }, F = (t, r) => {
2147
2152
  e.dataList[r].handList = t.list;
2148
2153
  let u = (e.dataList[r][p.defaultFile.approvePersonList] || []).filter((c) => !c.canDele), S = t.list.map((c) => ({
2149
2154
  ...c,
@@ -2160,29 +2165,37 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2160
2165
  var h;
2161
2166
  r.required = !1, r[p.defaultFile.nodeType] == p.nodeType.审批节点 && r[p.defaultFile.isShowAdd] && ((h = r[p.defaultFile.approvePersonList]) != null && h.length || (t = !1, r.required = !0));
2162
2167
  }), t;
2163
- }, A = U(() => ({
2164
- propOption: {
2165
- name: "elementName",
2166
- id: "elementId",
2167
- type: "elementType",
2168
- avatar: "avatar"
2169
- },
2170
- typeOption: {
2171
- dep: "DEPT",
2172
- user: "USER",
2173
- role: "ROLE",
2174
- post: "POST"
2175
- },
2176
- api: {
2177
- methods: "post",
2178
- url: e.pickerUrl,
2179
- headers: {
2180
- "Content-Type": "application/json;charset=UTF-8",
2181
- Authorization: k,
2182
- "X-Tenant": _.value
2183
- }
2184
- }
2185
- }));
2168
+ }, A = U(() => {
2169
+ var t;
2170
+ return {
2171
+ propOption: {
2172
+ name: "elementName",
2173
+ id: "elementId",
2174
+ type: "elementType",
2175
+ avatar: "avatar"
2176
+ },
2177
+ typeOption: {
2178
+ dep: "DEPT",
2179
+ user: "USER",
2180
+ role: "ROLE",
2181
+ post: "POST"
2182
+ },
2183
+ api: {
2184
+ methods: "post",
2185
+ url: e.pickerUrl,
2186
+ headers: {
2187
+ "Content-Type": "application/json;charset=UTF-8",
2188
+ Authorization: k,
2189
+ "X-Tenant": _.value
2190
+ },
2191
+ param: {
2192
+ rootDepartmentId: ((t = ae.local.getItem("now_shop")) == null ? void 0 : t.storeId) || "",
2193
+ rootDepartmentOnly: !1
2194
+ }
2195
+ },
2196
+ ...e.pickerConfig
2197
+ };
2198
+ });
2186
2199
  return v({ requiredVerification: i }), (t, r) => {
2187
2200
  const h = fe("IkApprovalProcess");
2188
2201
  return a(), d("div", ws, [
@@ -2230,10 +2243,10 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2230
2243
  ),
2231
2244
  n("div", Ns, [
2232
2245
  x(" 抄送节点 "),
2233
- u[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (a(), d("span", Fs, [
2246
+ u[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (a(), d("span", Ds, [
2234
2247
  u[p.defaultFile.approvePersonList].length ? (a(), d(
2235
2248
  "span",
2236
- Ds,
2249
+ Fs,
2237
2250
  P(`抄送${u[p.defaultFile.approvePersonList].length}人`),
2238
2251
  1
2239
2252
  /* TEXT */
@@ -2358,7 +2371,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2358
2371
  u[p.defaultFile.isShowAdd] && !(u[p.defaultFile.singleApproval] && ((Z = u[p.defaultFile.approvePersonList]) == null ? void 0 : Z.length) == 1) || u[p.defaultFile.isShowAddCopy] ? (a(), d("span", {
2359
2372
  key: 0,
2360
2373
  class: "addBg",
2361
- onClick: (L) => F(u)
2374
+ onClick: (L) => D(u)
2362
2375
  }, [
2363
2376
  u[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (a(), d("span", Ys)) : x("v-if", !0),
2364
2377
  Js
@@ -2369,7 +2382,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2369
2382
  "onUpdate:modelValue": (L) => u.handList = L,
2370
2383
  show: u.isShow,
2371
2384
  "onUpdate:show": (L) => u.isShow = L,
2372
- onOk: (L) => D(L, S),
2385
+ onOk: (L) => F(L, S),
2373
2386
  multiple: u.multiple,
2374
2387
  "dep-list": u.depList,
2375
2388
  "user-list": u.userList,
@@ -2421,7 +2434,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2421
2434
  };
2422
2435
  }
2423
2436
  });
2424
- const na = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-fecaf6fd"]]), ua = Ge(na);
2437
+ const na = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-7e3802e0"]]), ua = Ge(na);
2425
2438
  export {
2426
2439
  ua as IKApprovalProcess,
2427
2440
  ua as default