iking-web-ui-pro 0.2.44 → 0.2.45

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 (48) hide show
  1. package/dist/{IkApprovalProcess → IKApprovalProcess}/ik.index.es.js +98 -111
  2. package/dist/{IkApprovalProcess → IKApprovalProcess}/ik.index.umd.js +1 -1
  3. package/dist/{IkApprovalProcess → IKApprovalProcess}/style.css +1 -1
  4. package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.es.js +360 -359
  5. package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.umd.js +44 -44
  6. package/dist/IKApprovalProcessDetail/style.css +1 -0
  7. package/dist/{IkCalendar → IKCalendar}/ik.index.es.js +3 -4
  8. package/dist/{IkCalendar → IKCalendar}/ik.index.umd.js +1 -1
  9. package/dist/{IkCalendar → IKCalendar}/style.css +1 -1
  10. package/dist/IKPreviewFile/ik.index.es.js +353 -352
  11. package/dist/IKPreviewFile/ik.index.umd.js +44 -44
  12. package/dist/IKPreviewFile/style.css +1 -1
  13. package/dist/IKSearch/ik.index.es.js +1 -2
  14. package/dist/IKSearch/ik.index.umd.js +1 -1
  15. package/dist/IkDescription/ik.index.es.js +300 -299
  16. package/dist/IkDescription/ik.index.umd.js +44 -44
  17. package/dist/IkDescription/style.css +1 -1
  18. package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -307
  19. package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
  20. package/dist/IkDetailPreviewFiles/style.css +1 -1
  21. package/dist/IkOnlyOffice/ik.index.es.js +19 -13
  22. package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
  23. package/dist/IkOnlyOffice/style.css +0 -0
  24. package/dist/IkPageFull/ik.index.es.js +1 -2
  25. package/dist/IkPageFull/ik.index.umd.js +1 -1
  26. package/dist/IkPickerUser/ik.index.es.js +1 -2
  27. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  28. package/dist/IkPreviewFileDialog/ik.index.es.js +344 -343
  29. package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
  30. package/dist/IkPreviewFileDialog/style.css +1 -1
  31. package/dist/IkTemplateOfficeConfig/ik.index.es.js +78 -77
  32. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  33. package/dist/IkTinymce/ik.index.es.js +8741 -8803
  34. package/dist/IkTinymce/ik.index.umd.js +38 -38
  35. package/dist/IkTinymce/style.css +1 -1
  36. package/dist/IkUploadFile/ik.index.es.js +334 -333
  37. package/dist/IkUploadFile/ik.index.umd.js +46 -46
  38. package/dist/IkUploadFile/style.css +1 -1
  39. package/dist/IkUploadImage/ik.index.es.js +387 -387
  40. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  41. package/dist/IkUploadImage/style.css +1 -1
  42. package/dist/index.es.js +12316 -12330
  43. package/dist/index.umd.js +109 -109
  44. package/dist/src/components/IkApprovalProcess/index.d.ts +0 -9
  45. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +0 -9
  46. package/dist/style.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/IkApprovalProcessDetail/style.css +0 -1
@@ -1,6 +1,6 @@
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";
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";
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 = 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())];
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())];
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: F
191
+ cOnlyofficePreviewType: D
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 Dt(o, v) {
295
+ function Ft(o, v) {
296
296
  return a(), d("svg", It, Nt);
297
297
  }
298
- const Ft = /* @__PURE__ */ G(wt, [["render", Dt]]), Rt = {}, $t = {
298
+ const Dt = /* @__PURE__ */ G(wt, [["render", Ft]]), 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__ */ ne({
376
+ }, ll = /* @__PURE__ */ oe({
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(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, [
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, [
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__ */ ne({
524
+ )), Bl = /* @__PURE__ */ oe({
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
- }, D = (A) => {
545
+ }, F = (A) => {
546
546
  C("change", A, e.list);
547
547
  }, V = (A) => {
548
548
  C("change", A, e.list);
549
- }, F = (A, t) => {
549
+ }, D = (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(oe), {
558
+ A.multiple && A.list && A.list.length ? (a(), B(O(ae), {
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: D
576
+ onChange: F
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(oe), {
589
+ ) && r.available !== !1 ? (a(), B(O(ae), {
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 F(
660
+ return D(
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 F(
761
+ return D(
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
- }, Dl = /* @__PURE__ */ we(() => /* @__PURE__ */ n(
799
+ }, Fl = /* @__PURE__ */ we(() => /* @__PURE__ */ n(
800
800
  "div",
801
801
  { class: "side" },
802
802
  null,
803
803
  -1
804
804
  /* HOISTED */
805
- )), Fl = { class: "iconBox" }, Rl = { class: "title" }, $l = { class: "ik-picker-single" }, Ml = { class: "iconBox" }, Wl = {
805
+ )), Dl = { 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__ */ ne({
826
+ )), Xl = /* @__PURE__ */ oe({
827
827
  __name: "PostList",
828
828
  props: Ue,
829
829
  emits: ["change", "check"],
830
830
  setup(o, { emit: v }) {
831
- var F, y;
831
+ var D, 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 = (F = e.handList) == null ? void 0 : F[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
841
+ ), b = E((y = (D = e.handList) == null ? void 0 : D[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
- }, D = (i) => {
844
+ }, F = (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(oe), {
855
+ i.multiple && i.chooseType.includes("post") && i.list && i.list.length ? (a(), B(O(ae), {
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: D
873
+ onChange: F
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(oe), {
882
+ i.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (a(), B(O(ae), {
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
- Dl,
907
- n("div", Fl, [
906
+ Fl,
907
+ n("div", Dl, [
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__ */ ne({
1046
+ )), fs = /* @__PURE__ */ oe({
1047
1047
  __name: "RoleList",
1048
1048
  props: Ue,
1049
1049
  emits: ["change", "check"],
1050
1050
  setup(o, { emit: v }) {
1051
- var F, y;
1051
+ var D, 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 = (F = e.handList) == null ? void 0 : F[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
1061
+ ), b = E((y = (D = e.handList) == null ? void 0 : D[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
- }, D = (i) => {
1064
+ }, F = (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(oe), {
1075
+ i.multiple && i.chooseType.includes("role") && i.list && i.list.length ? (a(), B(O(ae), {
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: D
1093
+ onChange: F
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(oe), {
1102
+ i.chooseType.includes(t[e.fixPropOpt.type].toLowerCase()) ? (a(), B(O(ae), {
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 pe = /* @__PURE__ */ ((o) => (o.group = "group", o.role = "role", o.post = "post", o))(pe || {});
1224
+ var re = /* @__PURE__ */ ((o) => (o.group = "group", o.role = "role", o.post = "post", o))(re || {});
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 = ae.local.getItem("x_domain");
1399
+ const v = pe.local.getItem("x_domain");
1400
1400
  v && (o["X-DOMAIN"] = v);
1401
1401
  }, ys = (o) => {
1402
1402
  var e;
@@ -1407,14 +1407,13 @@ const As = {
1407
1407
  v === "APPLICATION" && (o["X-APP"] = l);
1408
1408
  } else
1409
1409
  vs(o);
1410
- (e = ae.local.getItem("tenant")) == null || e.code;
1410
+ (e = pe.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: D, param: V } = o.value || {}, F = {
1414
+ const { url: C, methods: p, headers: F, param: V } = o.value || {}, D = {
1415
1415
  ...V || {},
1416
- // 额外参数
1417
- rootDepartmentId: ((Z = ae.local.getItem("now_shop")) == null ? void 0 : Z.id) || "",
1416
+ rootDepartmentId: (Z = pe.local.getItem("now_shop")) == null ? void 0 : Z.storeId,
1418
1417
  parentDepartmentId: _ || "",
1419
1418
  name: b || "",
1420
1419
  rootDepartmentOnly: v.rootDepartmentOnly,
@@ -1424,9 +1423,9 @@ const As = {
1424
1423
  url: C,
1425
1424
  headers: {
1426
1425
  "Content-Type": "application/json;charset=UTF-8",
1427
- ...D
1426
+ ...F
1428
1427
  },
1429
- data: JSON.stringify(F)
1428
+ data: JSON.stringify(D)
1430
1429
  };
1431
1430
  ys(y.headers);
1432
1431
  const i = await ht(y), { success: A, data: t } = i.data;
@@ -1485,15 +1484,15 @@ const As = {
1485
1484
  "已选",
1486
1485
  -1
1487
1486
  /* HOISTED */
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({
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({
1489
1488
  __name: "picker",
1490
1489
  props: As,
1491
1490
  emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
1492
1491
  setup(o, { expose: v, emit: e }) {
1493
1492
  nt((s) => ({
1494
- "775d0d08": Fe.value
1493
+ "775d0d08": De.value
1495
1494
  }));
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);
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);
1497
1496
  K(
1498
1497
  () => l.api,
1499
1498
  () => {
@@ -1530,14 +1529,14 @@ const As = {
1530
1529
  (Q) => Q[y.value.name].includes(k.value)
1531
1530
  ), p.value = (_e = l.roleList) == null ? void 0 : _e.filter(
1532
1531
  (Q) => Q[y.value.name].includes(k.value)
1533
- ), D.value = (Re = l.postList) == null ? void 0 : Re.filter(
1532
+ ), F.value = (Re = l.postList) == null ? void 0 : Re.filter(
1534
1533
  (Q) => Q[y.value.name].includes(k.value)
1535
1534
  ), ye(), V.value = !1;
1536
1535
  return;
1537
1536
  }
1538
1537
  const $ = await r(_.value, k.value);
1539
1538
  try {
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) || []);
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) || []);
1541
1540
  } catch (Q) {
1542
1541
  V.value = !1, console.info("error: ", Q);
1543
1542
  }
@@ -1600,7 +1599,7 @@ const As = {
1600
1599
  async (s) => {
1601
1600
  var f;
1602
1601
  if (ve.value = s, s) {
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;
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;
1604
1603
  const m = ye(!0);
1605
1604
  for (const T of m)
1606
1605
  q(T[y.value.id]) && c.trans.push(T[y.value.id]);
@@ -1729,7 +1728,7 @@ const As = {
1729
1728
  sort: A.value
1730
1729
  })
1731
1730
  ), de("update:modelValue", X.cloneDeep(((s = L.value) == null ? void 0 : s.list) || [])), de("update:show", !1), te();
1732
- }, De = () => {
1731
+ }, Fe = () => {
1733
1732
  de("update:show", !1), te();
1734
1733
  };
1735
1734
  v({ handClear: te, handRomeve: Ve, handDelete: le });
@@ -1740,7 +1739,7 @@ const As = {
1740
1739
  { name: "group", label: "组织架构" },
1741
1740
  { name: "role", label: "角色列表" },
1742
1741
  { name: "post", label: "岗位列表" }
1743
- ].filter((s) => l.tabs.includes(s.name))), Fe = U(
1742
+ ].filter((s) => l.tabs.includes(s.name))), De = U(
1744
1743
  () => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
1745
1744
  ), me = () => {
1746
1745
  l.multiple || (c.post.clear(), c.role.clear(), c.user.clear(), c.group.clear(), c.single = "");
@@ -1807,12 +1806,12 @@ const As = {
1807
1806
  width: typeof s.width == "string" ? s.width : `${s.width}%`,
1808
1807
  class: "p_p_picker-dialog",
1809
1808
  "modal-class": "p_p_picker-dialog-modal-user",
1810
- onClose: De
1809
+ onClose: Fe
1811
1810
  }, {
1812
1811
  footer: I(() => [
1813
1812
  n("span", Ss, [
1814
1813
  w(O(Oe), {
1815
- onClick: re(De, ["stop"])
1814
+ onClick: ie(Fe, ["stop"])
1816
1815
  }, {
1817
1816
  default: I(() => [
1818
1817
  Y("取消")
@@ -1822,7 +1821,7 @@ const As = {
1822
1821
  }),
1823
1822
  w(O(Oe), {
1824
1823
  type: "primary",
1825
- onClick: re(Je, ["stop"])
1824
+ onClick: ie(Je, ["stop"])
1826
1825
  }, {
1827
1826
  default: I(() => [
1828
1827
  Y(" 确定 ")
@@ -1837,7 +1836,7 @@ const As = {
1837
1836
  "div",
1838
1837
  {
1839
1838
  class: "dep-use-picker",
1840
- style: He({ height: Fe.value })
1839
+ style: He({ height: De.value })
1841
1840
  },
1842
1841
  [
1843
1842
  n("div", gs, [
@@ -1873,7 +1872,7 @@ const As = {
1873
1872
  }, 8, ["modelValue"])) : x("v-if", !0)
1874
1873
  ]),
1875
1874
  x(" 过滤 "),
1876
- ee.value === O(pe).group ? (a(), d(
1875
+ ee.value === O(re).group ? (a(), d(
1877
1876
  N,
1878
1877
  { key: 0 },
1879
1878
  [
@@ -1889,7 +1888,7 @@ const As = {
1889
1888
  null,
1890
1889
  j(O(h), (T, z) => (a(), B(O(ft), {
1891
1890
  key: T[y.value.id],
1892
- onClick: re((_e) => Ze(T, z), ["stop"])
1891
+ onClick: ie((_e) => Ze(T, z), ["stop"])
1893
1892
  }, {
1894
1893
  default: I(() => [
1895
1894
  Y(
@@ -1915,11 +1914,11 @@ const As = {
1915
1914
  )) : x("v-if", !0),
1916
1915
  x(" 左侧列表 "),
1917
1916
  x(" 组织架构 "),
1918
- ee.value === O(pe).group ? ce((a(), B(wl, {
1917
+ ee.value === O(re).group ? ce((a(), B(wl, {
1919
1918
  key: 1,
1920
1919
  fixPropOpt: y.value,
1921
1920
  fixTypeOpt: i.value,
1922
- list: F.value,
1921
+ list: D.value,
1923
1922
  max: s.max,
1924
1923
  multiple: s.multiple,
1925
1924
  "hand-list": lt.value,
@@ -1931,7 +1930,7 @@ const As = {
1931
1930
  onChange: st
1932
1931
  }, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
1933
1932
  [O(Pe), V.value]
1934
- ]) : ee.value === O(pe).role ? (a(), d(
1933
+ ]) : ee.value === O(re).role ? (a(), d(
1935
1934
  N,
1936
1935
  { key: 2 },
1937
1936
  [
@@ -1953,7 +1952,7 @@ const As = {
1953
1952
  ],
1954
1953
  64
1955
1954
  /* STABLE_FRAGMENT */
1956
- )) : ee.value === O(pe).post ? (a(), d(
1955
+ )) : ee.value === O(re).post ? (a(), d(
1957
1956
  N,
1958
1957
  { key: 3 },
1959
1958
  [
@@ -1961,7 +1960,7 @@ const As = {
1961
1960
  ce(w(ql, {
1962
1961
  fixPropOpt: y.value,
1963
1962
  fixTypeOpt: i.value,
1964
- list: D.value,
1963
+ list: F.value,
1965
1964
  max: s.max,
1966
1965
  multiple: s.multiple,
1967
1966
  "hand-list": xe.value,
@@ -1985,7 +1984,7 @@ const As = {
1985
1984
  w(O(Oe), {
1986
1985
  type: "primary",
1987
1986
  link: "",
1988
- onClick: re(te, ["stop"])
1987
+ onClick: ie(te, ["stop"])
1989
1988
  }, {
1990
1989
  default: I(() => [
1991
1990
  Y("清空")
@@ -2019,7 +2018,7 @@ const As = {
2019
2018
  ]),
2020
2019
  ce(w(Bt, {
2021
2020
  class: "close",
2022
- onClick: re((z) => Ve(T), ["stop"])
2021
+ onClick: ie((z) => Ve(T), ["stop"])
2023
2022
  }, null, 8, ["onClick"]), [
2024
2023
  [rt, !(T != null && T.readonly)]
2025
2024
  ])
@@ -2040,13 +2039,13 @@ const As = {
2040
2039
  };
2041
2040
  }
2042
2041
  });
2043
- const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2042
+ const Bs = Ge(Us), Qe = (o) => (he("data-v-fecaf6fd"), o = o(), Ae(), o), ws = {
2044
2043
  class: "approveProcess",
2045
2044
  id: "approveProcess"
2046
2045
  }, Is = { class: "node" }, Es = { class: "nodeBg" }, Vs = {
2047
2046
  key: 0,
2048
2047
  class: "info"
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 = {
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 = {
2050
2049
  key: 1,
2051
2050
  class: "nodeBg"
2052
2051
  }, Qs = ["onClick"], Xs = ["title"], qs = {
@@ -2072,7 +2071,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2072
2071
  /* HOISTED */
2073
2072
  )), la = { style: { flex: "1" } }, sa = { class: "node-branch" }, aa = {
2074
2073
  name: "IkApprovalProcess"
2075
- }, oa = /* @__PURE__ */ ne({
2074
+ }, oa = /* @__PURE__ */ oe({
2076
2075
  ...aa,
2077
2076
  props: {
2078
2077
  // 选人组件请求地址
@@ -2080,10 +2079,6 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2080
2079
  type: String,
2081
2080
  default: ""
2082
2081
  },
2083
- pickerConfig: {
2084
- type: Object,
2085
- default: () => ({})
2086
- },
2087
2082
  //文件访问地址
2088
2083
  loadUrl: {
2089
2084
  type: String,
@@ -2111,18 +2106,18 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2111
2106
  }
2112
2107
  },
2113
2108
  setup(o, { expose: v }) {
2114
- const e = o, { cLoadUrl: l } = ze(e), k = ae.local.getItem("token") || "Bearer 841b7a7b0d9c4021b1655192c28ac61b", _ = E("sys");
2109
+ const e = o, { cLoadUrl: l } = ze(e), k = pe.local.getItem("token") || "Bearer 4db1039f04334180849002932f6a1fc6", _ = E("sys");
2115
2110
  function b(t) {
2116
2111
  const r = window.location.search;
2117
2112
  return new URLSearchParams(r).get(t);
2118
2113
  }
2119
2114
  function C() {
2120
2115
  var r;
2121
- const t = b("xTenant") || ((r = ae.local.getItem("tenant")) == null ? void 0 : r.code);
2116
+ const t = b("xTenant") || ((r = pe.local.getItem("tenant")) == null ? void 0 : r.code);
2122
2117
  t && (_.value = t);
2123
2118
  }
2124
2119
  C();
2125
- const p = Te(vt(e)), D = async (t) => {
2120
+ const p = Te(vt(e)), F = async (t) => {
2126
2121
  var r;
2127
2122
  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.抄送节点)
2128
2123
  t.handList.forEach((h) => {
@@ -2148,7 +2143,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2148
2143
  }, V = (t) => {
2149
2144
  let r = "";
2150
2145
  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;
2151
- }, F = (t, r) => {
2146
+ }, D = (t, r) => {
2152
2147
  e.dataList[r].handList = t.list;
2153
2148
  let u = (e.dataList[r][p.defaultFile.approvePersonList] || []).filter((c) => !c.canDele), S = t.list.map((c) => ({
2154
2149
  ...c,
@@ -2165,37 +2160,29 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2165
2160
  var h;
2166
2161
  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));
2167
2162
  }), t;
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
- });
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
+ }));
2199
2186
  return v({ requiredVerification: i }), (t, r) => {
2200
2187
  const h = fe("IkApprovalProcess");
2201
2188
  return a(), d("div", ws, [
@@ -2243,10 +2230,10 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2243
2230
  ),
2244
2231
  n("div", Ns, [
2245
2232
  x(" 抄送节点 "),
2246
- u[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (a(), d("span", Ds, [
2233
+ u[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (a(), d("span", Fs, [
2247
2234
  u[p.defaultFile.approvePersonList].length ? (a(), d(
2248
2235
  "span",
2249
- Fs,
2236
+ Ds,
2250
2237
  P(`抄送${u[p.defaultFile.approvePersonList].length}人`),
2251
2238
  1
2252
2239
  /* TEXT */
@@ -2371,7 +2358,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2371
2358
  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", {
2372
2359
  key: 0,
2373
2360
  class: "addBg",
2374
- onClick: (L) => D(u)
2361
+ onClick: (L) => F(u)
2375
2362
  }, [
2376
2363
  u[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (a(), d("span", Ys)) : x("v-if", !0),
2377
2364
  Js
@@ -2382,7 +2369,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2382
2369
  "onUpdate:modelValue": (L) => u.handList = L,
2383
2370
  show: u.isShow,
2384
2371
  "onUpdate:show": (L) => u.isShow = L,
2385
- onOk: (L) => F(L, S),
2372
+ onOk: (L) => D(L, S),
2386
2373
  multiple: u.multiple,
2387
2374
  "dep-list": u.depList,
2388
2375
  "user-list": u.userList,
@@ -2434,7 +2421,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-319618dc"), o = o(), Ae(), o), ws = {
2434
2421
  };
2435
2422
  }
2436
2423
  });
2437
- const na = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-319618dc"]]), ua = Ge(na);
2424
+ const na = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-fecaf6fd"]]), ua = Ge(na);
2438
2425
  export {
2439
2426
  ua as IKApprovalProcess,
2440
2427
  ua as default