iking-web-ui-pro 0.2.38 → 0.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKPreviewFile/ik.index.es.js +12 -7
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +405 -406
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IKSearch/style.css +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +188 -189
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.umd.js +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +14 -9
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.umd.js +2 -2
- package/dist/IkApprovalProcessDetail/style.css +1 -0
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +917 -901
- package/dist/IkCalendar/ik.index.umd.js +1 -0
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +12 -7
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +255 -250
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +601 -584
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +423 -424
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +23 -24
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +1 -0
- package/dist/IkSchedule/ik.index.es.js +691 -674
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1 -0
- package/dist/IkUploadImage/ik.index.es.js +410 -405
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +11576 -11550
- package/dist/index.umd.js +89 -89
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcessDetail/style.css +0 -1
- package/dist/IKCalendar/ik.index.umd.js +0 -1
|
@@ -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
|
|
1
|
+
import { inject as ne, computed as U, openBlock as a, createElementBlock as d, createElementVNode as n, defineComponent as oe, resolveComponent as ce, 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 W, 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 ue, vShow as rt, mergeProps as Me } from "vue";
|
|
2
2
|
import { _ as X, ikStore as fe, 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
|
|
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) => {
|
|
@@ -190,7 +190,7 @@ const Ge = (o, v) => {
|
|
|
190
190
|
cUserInfo: V,
|
|
191
191
|
cOnlyofficePreviewType: D
|
|
192
192
|
};
|
|
193
|
-
},
|
|
193
|
+
}, mt = {}, gt = {
|
|
194
194
|
t: "1672194715727",
|
|
195
195
|
class: "icon",
|
|
196
196
|
viewBox: "0 0 1024 1024",
|
|
@@ -221,9 +221,9 @@ const Ge = (o, v) => {
|
|
|
221
221
|
_t
|
|
222
222
|
];
|
|
223
223
|
function Pt(o, v) {
|
|
224
|
-
return a(), d("svg",
|
|
224
|
+
return a(), d("svg", gt, Ot);
|
|
225
225
|
}
|
|
226
|
-
const Tt = /* @__PURE__ */ G(
|
|
226
|
+
const Tt = /* @__PURE__ */ G(mt, [["render", Pt]]), kt = {}, Lt = {
|
|
227
227
|
t: "1710907270798",
|
|
228
228
|
class: "icon",
|
|
229
229
|
viewBox: "0 0 1024 1024",
|
|
@@ -399,7 +399,7 @@ const Yt = /* @__PURE__ */ G(zt, [["render", Kt]]), Jt = { class: "avatar" }, el
|
|
|
399
399
|
setup(o) {
|
|
400
400
|
const v = o, { cLoadUrl: e } = ze(v), l = (k) => At(e.value, k);
|
|
401
401
|
return (k, _) => {
|
|
402
|
-
const b =
|
|
402
|
+
const b = ce("el-avatar");
|
|
403
403
|
return a(), d("div", Jt, [
|
|
404
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, {
|
|
@@ -485,16 +485,16 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
485
485
|
}, dl = {
|
|
486
486
|
key: 1,
|
|
487
487
|
class: "checkText"
|
|
488
|
-
},
|
|
488
|
+
}, ul = /* @__PURE__ */ Be(() => /* @__PURE__ */ n(
|
|
489
489
|
"div",
|
|
490
490
|
{ class: "side" },
|
|
491
491
|
null,
|
|
492
492
|
-1
|
|
493
493
|
/* HOISTED */
|
|
494
|
-
)),
|
|
494
|
+
)), cl = { class: "iconBox" }, fl = { class: "name_number" }, hl = { class: "title" }, Al = {
|
|
495
495
|
key: 0,
|
|
496
496
|
class: "userCount"
|
|
497
|
-
}, vl = ["onClick"], yl = { class: "checkText" },
|
|
497
|
+
}, vl = ["onClick"], yl = { class: "checkText" }, ml = { class: "iconBox" }, gl = { class: "name_number" }, xl = { class: "title" }, _l = {
|
|
498
498
|
key: 0,
|
|
499
499
|
class: "userCount"
|
|
500
500
|
}, Ol = {
|
|
@@ -531,9 +531,9 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
531
531
|
var A, t;
|
|
532
532
|
return ((A = e.handList) == null ? void 0 : A.length) === ((t = e.list) == null ? void 0 : t.length);
|
|
533
533
|
}), k = U(() => {
|
|
534
|
-
var r, h,
|
|
534
|
+
var r, h, u, S;
|
|
535
535
|
const A = (r = e.handList) == null ? void 0 : r.length, t = (h = e.list) == null ? void 0 : h.length;
|
|
536
|
-
return e.multiple ? _.value = e.handList.map((
|
|
536
|
+
return e.multiple ? _.value = e.handList.map((c) => c[e.fixPropOpt.id]) : b.value = (S = (u = e.handList) == null ? void 0 : u[0]) == null ? void 0 : S[e.fixPropOpt.id], A > 0 && A < t;
|
|
537
537
|
}), _ = E(
|
|
538
538
|
e.handList.map((A) => A[e.fixPropOpt.id])
|
|
539
539
|
), b = E((i = (y = e.handList) == null ? void 0 : y[0]) == null ? void 0 : i[e.fixPropOpt.id]), C = v, p = (A) => {
|
|
@@ -622,8 +622,8 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
622
622
|
_: 2
|
|
623
623
|
/* DYNAMIC */
|
|
624
624
|
}, 1032, ["label", "disabled"])) : (a(), d("div", dl, [
|
|
625
|
-
|
|
626
|
-
n("div",
|
|
625
|
+
ul,
|
|
626
|
+
n("div", cl, [
|
|
627
627
|
w($, {
|
|
628
628
|
fixTypeOpt: e.fixTypeOpt,
|
|
629
629
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -652,14 +652,14 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
652
652
|
key: 2,
|
|
653
653
|
class: se(["nextLevel", {
|
|
654
654
|
"is-disabled": (h = _.value) == null ? void 0 : h.find(
|
|
655
|
-
(
|
|
655
|
+
(u) => u === r[e.fixPropOpt.id]
|
|
656
656
|
)
|
|
657
657
|
}]),
|
|
658
|
-
onClick: (
|
|
658
|
+
onClick: (u) => {
|
|
659
659
|
var S;
|
|
660
660
|
return D(
|
|
661
661
|
r,
|
|
662
|
-
(S = _.value) == null ? void 0 : S.find((
|
|
662
|
+
(S = _.value) == null ? void 0 : S.find((c) => c === r[e.fixPropOpt.id])
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
665
|
}, " 下级", 10, vl)) : x("v-if", !0)
|
|
@@ -694,7 +694,7 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
694
694
|
}, {
|
|
695
695
|
default: I(() => [
|
|
696
696
|
n("div", yl, [
|
|
697
|
-
n("div",
|
|
697
|
+
n("div", ml, [
|
|
698
698
|
w($, {
|
|
699
699
|
fixTypeOpt: e.fixTypeOpt,
|
|
700
700
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -702,7 +702,7 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
702
702
|
imageBaseUrl: e.imageBaseUrl
|
|
703
703
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
704
704
|
]),
|
|
705
|
-
n("div",
|
|
705
|
+
n("div", gl, [
|
|
706
706
|
n(
|
|
707
707
|
"div",
|
|
708
708
|
xl,
|
|
@@ -753,14 +753,14 @@ const $ = /* @__PURE__ */ G(ll, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:
|
|
|
753
753
|
key: 2,
|
|
754
754
|
class: se(["nextLevel", {
|
|
755
755
|
"is-disabled": (h = _.value) == null ? void 0 : h.find(
|
|
756
|
-
(
|
|
756
|
+
(u) => u === r[e.fixPropOpt.id]
|
|
757
757
|
)
|
|
758
758
|
}]),
|
|
759
|
-
onClick: (
|
|
759
|
+
onClick: (u) => {
|
|
760
760
|
var S;
|
|
761
761
|
return D(
|
|
762
762
|
r,
|
|
763
|
-
(S = _.value) == null ? void 0 : S.find((
|
|
763
|
+
(S = _.value) == null ? void 0 : S.find((c) => c === r[e.fixPropOpt.id])
|
|
764
764
|
);
|
|
765
765
|
}
|
|
766
766
|
}, " 下级", 10, Cl)) : x("v-if", !0)
|
|
@@ -833,9 +833,9 @@ const wl = /* @__PURE__ */ G(Bl, [["__scopeId", "data-v-8c34a55d"]]), we = (o) =
|
|
|
833
833
|
var i, A;
|
|
834
834
|
return ((i = e.handList) == null ? void 0 : i.length) === ((A = e.list) == null ? void 0 : A.length);
|
|
835
835
|
}), k = U(() => {
|
|
836
|
-
var t, r, h,
|
|
836
|
+
var t, r, h, u;
|
|
837
837
|
const i = (t = e.handList) == null ? void 0 : t.length, A = (r = e.list) == null ? void 0 : r.length;
|
|
838
|
-
return e.multiple ? _.value = e.handList.map((S) => S[e.fixPropOpt.id]) : b.value = (
|
|
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
841
|
), b = E((y = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
|
|
@@ -1031,10 +1031,10 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
|
|
|
1031
1031
|
null,
|
|
1032
1032
|
-1
|
|
1033
1033
|
/* HOISTED */
|
|
1034
|
-
)), ps = { class: "iconBox" }, ds = ["title"],
|
|
1034
|
+
)), ps = { class: "iconBox" }, ds = ["title"], us = {
|
|
1035
1035
|
key: 2,
|
|
1036
1036
|
class: "empty"
|
|
1037
|
-
},
|
|
1037
|
+
}, cs = /* @__PURE__ */ Ie(() => /* @__PURE__ */ n(
|
|
1038
1038
|
"img",
|
|
1039
1039
|
{
|
|
1040
1040
|
src: Se,
|
|
@@ -1053,9 +1053,9 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
|
|
|
1053
1053
|
var i, A;
|
|
1054
1054
|
return ((i = e.handList) == null ? void 0 : i.length) === ((A = e.list) == null ? void 0 : A.length);
|
|
1055
1055
|
}), k = U(() => {
|
|
1056
|
-
var t, r, h,
|
|
1056
|
+
var t, r, h, u;
|
|
1057
1057
|
const i = (t = e.handList) == null ? void 0 : t.length, A = (r = e.list) == null ? void 0 : r.length;
|
|
1058
|
-
return e.multiple ? _.value = e.handList.map((S) => S[e.fixPropOpt.id]) : b.value = (
|
|
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
1061
|
), b = E((y = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : y[e.fixPropOpt.id]), C = v, p = (i) => {
|
|
@@ -1203,8 +1203,8 @@ const ql = /* @__PURE__ */ G(Xl, [["__scopeId", "data-v-e03f0d36"]]), Ie = (o) =
|
|
|
1203
1203
|
_: 1
|
|
1204
1204
|
/* STABLE */
|
|
1205
1205
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1206
|
-
])) : (a(), d("div",
|
|
1207
|
-
|
|
1206
|
+
])) : (a(), d("div", us, [
|
|
1207
|
+
cs,
|
|
1208
1208
|
n(
|
|
1209
1209
|
"div",
|
|
1210
1210
|
null,
|
|
@@ -1408,7 +1408,7 @@ const As = {
|
|
|
1408
1408
|
} else
|
|
1409
1409
|
vs(o);
|
|
1410
1410
|
(e = fe.local.getItem("tenant")) == null || e.code;
|
|
1411
|
-
},
|
|
1411
|
+
}, ms = (o, v) => {
|
|
1412
1412
|
const e = E([]), l = async (_, b) => {
|
|
1413
1413
|
var Z, L;
|
|
1414
1414
|
const { url: C, methods: p, headers: F, param: V } = o.value || {}, D = {
|
|
@@ -1440,11 +1440,11 @@ const As = {
|
|
|
1440
1440
|
const {
|
|
1441
1441
|
departments: r,
|
|
1442
1442
|
roles: h,
|
|
1443
|
-
posts:
|
|
1443
|
+
posts: u,
|
|
1444
1444
|
users: S,
|
|
1445
|
-
rootOrganization:
|
|
1445
|
+
rootOrganization: c,
|
|
1446
1446
|
rootDepartment: M
|
|
1447
|
-
} = t, q =
|
|
1447
|
+
} = t, q = c || M;
|
|
1448
1448
|
return e.value.length === 0 && (e.value[0] = v.org ? {
|
|
1449
1449
|
...v.org,
|
|
1450
1450
|
id: v.elementId,
|
|
@@ -1455,9 +1455,9 @@ const As = {
|
|
|
1455
1455
|
}), {
|
|
1456
1456
|
groupList: X.cloneDeep(r),
|
|
1457
1457
|
roleList: X.cloneDeep(h),
|
|
1458
|
-
postList: X.cloneDeep(
|
|
1458
|
+
postList: X.cloneDeep(u),
|
|
1459
1459
|
userList: X.cloneDeep(S),
|
|
1460
|
-
rootOrganization:
|
|
1460
|
+
rootOrganization: c,
|
|
1461
1461
|
rootDepartment: M
|
|
1462
1462
|
};
|
|
1463
1463
|
};
|
|
@@ -1468,7 +1468,7 @@ const As = {
|
|
|
1468
1468
|
},
|
|
1469
1469
|
bannerList: e
|
|
1470
1470
|
};
|
|
1471
|
-
},
|
|
1471
|
+
}, gs = {
|
|
1472
1472
|
shadow: "hover",
|
|
1473
1473
|
class: "sel-list"
|
|
1474
1474
|
}, xs = { key: 0 }, _s = /* @__PURE__ */ n(
|
|
@@ -1489,9 +1489,9 @@ const As = {
|
|
|
1489
1489
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1490
1490
|
setup(o, { expose: v, emit: e }) {
|
|
1491
1491
|
nt((s) => ({
|
|
1492
|
-
"
|
|
1492
|
+
"775d0d08": De.value
|
|
1493
1493
|
}));
|
|
1494
|
-
const l = o, k = E(""), _ = E(""), b = E([]), C = E([]), p = E([]), F = E([]), V = E(!1), D = U(() =>
|
|
1494
|
+
const l = o, k = E(""), _ = E(""), b = E([]), C = E([]), p = E([]), F = E([]), V = E(!1), D = U(() => j.value.includes("user") ? C.value.concat(b.value) : C.value);
|
|
1495
1495
|
K(
|
|
1496
1496
|
() => l.api,
|
|
1497
1497
|
() => {
|
|
@@ -1510,18 +1510,18 @@ const As = {
|
|
|
1510
1510
|
post: "POST",
|
|
1511
1511
|
group: "DEPT",
|
|
1512
1512
|
...l.typeOption
|
|
1513
|
-
})), A = E([]), t =
|
|
1513
|
+
})), A = E([]), t = ms(it(l, "api"), l), r = t.handData, h = t.bannerList;
|
|
1514
1514
|
l.immediate && r(_.value, k.value);
|
|
1515
|
-
const
|
|
1516
|
-
var
|
|
1517
|
-
f.disabled = ((
|
|
1515
|
+
const u = (s) => (s.forEach((f) => {
|
|
1516
|
+
var m, g;
|
|
1517
|
+
f.disabled = ((g = (m = l.modelValue) == null ? void 0 : m.find(
|
|
1518
1518
|
(T) => T[y.value.id] === f[y.value.id]
|
|
1519
|
-
)) == null ? void 0 :
|
|
1519
|
+
)) == null ? void 0 : g.disabled) || !1;
|
|
1520
1520
|
}), s), S = async () => {
|
|
1521
|
-
var s, f,
|
|
1521
|
+
var s, f, m, g, T, z, _e, Re;
|
|
1522
1522
|
V.value = !0;
|
|
1523
1523
|
try {
|
|
1524
|
-
if ((s = l.groupList) != null && s.length || (f = l.userList) != null && f.length || (
|
|
1524
|
+
if ((s = l.groupList) != null && s.length || (f = l.userList) != null && f.length || (m = l.roleList) != null && m.length || (g = l.postList) != null && g.length) {
|
|
1525
1525
|
b.value = (T = l.userList) == null ? void 0 : T.filter(
|
|
1526
1526
|
(Q) => Q[y.value.name].includes(k.value)
|
|
1527
1527
|
), C.value = (z = l.groupList) == null ? void 0 : z.filter(
|
|
@@ -1535,7 +1535,7 @@ const As = {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
const R = await r(_.value, k.value);
|
|
1537
1537
|
try {
|
|
1538
|
-
b.value =
|
|
1538
|
+
b.value = u((R == null ? void 0 : R.userList) || []), C.value = u((R == null ? void 0 : R.groupList) || []), p.value = u((R == null ? void 0 : R.roleList) || []), F.value = u((R == null ? void 0 : R.postList) || []);
|
|
1539
1539
|
} catch (Q) {
|
|
1540
1540
|
V.value = !1, console.info("error: ", Q);
|
|
1541
1541
|
}
|
|
@@ -1543,7 +1543,7 @@ const As = {
|
|
|
1543
1543
|
} catch {
|
|
1544
1544
|
V.value = !1;
|
|
1545
1545
|
}
|
|
1546
|
-
},
|
|
1546
|
+
}, c = Te({
|
|
1547
1547
|
//组织架构
|
|
1548
1548
|
group: /* @__PURE__ */ new Map(),
|
|
1549
1549
|
// 用户
|
|
@@ -1559,38 +1559,38 @@ const As = {
|
|
|
1559
1559
|
}), M = Te({
|
|
1560
1560
|
indeterminate: !1,
|
|
1561
1561
|
checkAll: 0
|
|
1562
|
-
}), q = (s) =>
|
|
1563
|
-
const s = Array.from(
|
|
1564
|
-
return A.value = [...f, ...
|
|
1565
|
-
list: [...f, ...
|
|
1562
|
+
}), q = (s) => c.group.has(s) || c.user.has(s) || c.role.has(s) || c.post.has(s), Z = pt.debounce(S, 300), L = U(() => {
|
|
1563
|
+
const s = Array.from(c.group.values()), f = Array.from(c.role.values()), m = Array.from(c.user.values()), g = Array.from(c.post.values());
|
|
1564
|
+
return A.value = [...f, ...g, ...m, ...s], {
|
|
1565
|
+
list: [...f, ...m, ...g, ...s],
|
|
1566
1566
|
role: {
|
|
1567
1567
|
list: f,
|
|
1568
1568
|
len: f.length
|
|
1569
1569
|
},
|
|
1570
1570
|
user: {
|
|
1571
|
-
list: g,
|
|
1572
|
-
len: g.length
|
|
1573
|
-
},
|
|
1574
|
-
post: {
|
|
1575
1571
|
list: m,
|
|
1576
1572
|
len: m.length
|
|
1577
1573
|
},
|
|
1574
|
+
post: {
|
|
1575
|
+
list: g,
|
|
1576
|
+
len: g.length
|
|
1577
|
+
},
|
|
1578
1578
|
groups: {
|
|
1579
1579
|
list: s,
|
|
1580
1580
|
len: s.length
|
|
1581
1581
|
}
|
|
1582
1582
|
};
|
|
1583
|
-
}),
|
|
1584
|
-
const s = l.chooseType.map((
|
|
1583
|
+
}), j = U(() => {
|
|
1584
|
+
const s = l.chooseType.map((m) => m.toLocaleLowerCase());
|
|
1585
1585
|
let f = [...s];
|
|
1586
1586
|
return s.includes("dep") && (f = [...f, "dept"]), s.includes("dep_user") && (f = [...f, "user"]), f;
|
|
1587
|
-
}),
|
|
1588
|
-
|
|
1587
|
+
}), H = E([]), Ee = (s) => {
|
|
1588
|
+
H.value = s, H.value.forEach((f) => {
|
|
1589
1589
|
f.readonly = f == null ? void 0 : f.disabled;
|
|
1590
1590
|
});
|
|
1591
1591
|
}, pe = e, ve = E(!1), ye = (s = !1) => {
|
|
1592
|
-
var
|
|
1593
|
-
const f = (
|
|
1592
|
+
var m;
|
|
1593
|
+
const f = (m = l == null ? void 0 : l.userList) != null && m.length ? X.cloneDeep([...l == null ? void 0 : l.userList, ...l == null ? void 0 : l.groupList]) : [...C.value, ...b.value];
|
|
1594
1594
|
return !s && Ee(f), f;
|
|
1595
1595
|
};
|
|
1596
1596
|
K(
|
|
@@ -1598,15 +1598,15 @@ const As = {
|
|
|
1598
1598
|
async (s) => {
|
|
1599
1599
|
var f;
|
|
1600
1600
|
if (ve.value = s, s) {
|
|
1601
|
-
_.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),
|
|
1602
|
-
const
|
|
1603
|
-
for (const T of
|
|
1604
|
-
q(T[y.value.id]) &&
|
|
1605
|
-
const
|
|
1606
|
-
M.indeterminate = !!(
|
|
1601
|
+
_.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 = [], M.checkAll = 0, M.indeterminate = !1;
|
|
1602
|
+
const m = ye(!0);
|
|
1603
|
+
for (const T of m)
|
|
1604
|
+
q(T[y.value.id]) && c.trans.push(T[y.value.id]);
|
|
1605
|
+
const g = m.length === c.trans.length;
|
|
1606
|
+
M.indeterminate = !!(m.length && !g), M.checkAll = Number(m.length && g), ke(() => {
|
|
1607
1607
|
var T;
|
|
1608
1608
|
(T = l.modelValue) != null && T.length ? l.modelValue.forEach((z) => {
|
|
1609
|
-
J(z), l.multiple ?
|
|
1609
|
+
J(z), l.multiple ? c.trans.push(z[y.value.id]) : c.single = z[y.value.id];
|
|
1610
1610
|
}) : te();
|
|
1611
1611
|
});
|
|
1612
1612
|
} else
|
|
@@ -1614,41 +1614,41 @@ const As = {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
), $e(() => {
|
|
1616
1616
|
let s;
|
|
1617
|
-
s =
|
|
1618
|
-
const f =
|
|
1619
|
-
M.indeterminate =
|
|
1617
|
+
s = H.value.length;
|
|
1618
|
+
const f = c.trans.length;
|
|
1619
|
+
M.indeterminate = c.trans.length ? f !== s : !1, M.checkAll = +(s !== 0 && f === s);
|
|
1620
1620
|
}), K(
|
|
1621
1621
|
() => l.modelValue,
|
|
1622
1622
|
(s) => {
|
|
1623
1623
|
s != null && s.length ? s.forEach((f) => {
|
|
1624
|
-
J(f), l.multiple ?
|
|
1624
|
+
J(f), l.multiple ? c.trans.push(f[y.value.id]) : c.single = f[y.value.id];
|
|
1625
1625
|
}) : te();
|
|
1626
1626
|
}
|
|
1627
1627
|
);
|
|
1628
1628
|
const le = (s) => {
|
|
1629
1629
|
var f;
|
|
1630
1630
|
if (s) {
|
|
1631
|
-
if (
|
|
1632
|
-
const
|
|
1633
|
-
(
|
|
1631
|
+
if (c.single = "", s[y.value.id]) {
|
|
1632
|
+
const m = (f = c.trans) == null ? void 0 : f.findIndex(
|
|
1633
|
+
(g) => g === s[y.value.id]
|
|
1634
1634
|
);
|
|
1635
|
-
|
|
1635
|
+
m !== -1 && c.trans.splice(m, 1);
|
|
1636
1636
|
}
|
|
1637
1637
|
switch (s[y.value.type]) {
|
|
1638
1638
|
case i.value.user:
|
|
1639
|
-
return
|
|
1639
|
+
return c.user.delete(s[y.value.id]);
|
|
1640
1640
|
case i.value.role:
|
|
1641
|
-
return
|
|
1641
|
+
return c.role.delete(s[y.value.id]);
|
|
1642
1642
|
case i.value.post:
|
|
1643
|
-
return
|
|
1643
|
+
return c.post.delete(s[y.value.id]);
|
|
1644
1644
|
case i.value.group:
|
|
1645
|
-
return
|
|
1645
|
+
return c.group.delete(s[y.value.id]);
|
|
1646
1646
|
default:
|
|
1647
1647
|
return;
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
1650
|
}, Ve = (s) => {
|
|
1651
|
-
|
|
1651
|
+
le(s);
|
|
1652
1652
|
}, J = (s) => {
|
|
1653
1653
|
if (!q(s[y.value.id])) {
|
|
1654
1654
|
const f = {
|
|
@@ -1657,13 +1657,13 @@ const As = {
|
|
|
1657
1657
|
};
|
|
1658
1658
|
switch (s[y.value.type]) {
|
|
1659
1659
|
case i.value.user:
|
|
1660
|
-
return
|
|
1660
|
+
return c.user.set(s[y.value.id], f);
|
|
1661
1661
|
case i.value.role:
|
|
1662
|
-
return
|
|
1662
|
+
return c.role.set(s[y.value.id], f);
|
|
1663
1663
|
case i.value.post:
|
|
1664
|
-
return
|
|
1664
|
+
return c.post.set(s[y.value.id], f);
|
|
1665
1665
|
case i.value.group:
|
|
1666
|
-
return
|
|
1666
|
+
return c.group.set(s[y.value.id], f);
|
|
1667
1667
|
default:
|
|
1668
1668
|
return;
|
|
1669
1669
|
}
|
|
@@ -1672,35 +1672,34 @@ const As = {
|
|
|
1672
1672
|
s[y.value.type]
|
|
1673
1673
|
) ? s == null ? void 0 : s.hasOwnProperty("disabled") : !1;
|
|
1674
1674
|
K(
|
|
1675
|
-
() =>
|
|
1675
|
+
() => c.trans,
|
|
1676
1676
|
(s) => {
|
|
1677
|
-
if (
|
|
1678
|
-
|
|
1677
|
+
if (!s.length)
|
|
1678
|
+
H.value.forEach((f) => {
|
|
1679
1679
|
f.disabled = !1;
|
|
1680
1680
|
});
|
|
1681
1681
|
else {
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
(m) => !s.includes(m[y.value.id])
|
|
1682
|
+
const f = H.value.filter(
|
|
1683
|
+
(g) => !s.includes(g[y.value.id])
|
|
1685
1684
|
);
|
|
1686
|
-
for (const
|
|
1687
|
-
|
|
1688
|
-
const
|
|
1689
|
-
(
|
|
1685
|
+
for (const g of f)
|
|
1686
|
+
g.disabled = !1, l.multiple && le(g);
|
|
1687
|
+
const m = H.value.filter(
|
|
1688
|
+
(g) => s.includes(g[y.value.id])
|
|
1690
1689
|
);
|
|
1691
|
-
for (const
|
|
1692
|
-
|
|
1690
|
+
for (const g of m)
|
|
1691
|
+
g.disabled = Xe(g), J(g);
|
|
1693
1692
|
}
|
|
1694
1693
|
},
|
|
1695
1694
|
{ deep: !0 }
|
|
1696
1695
|
), K(
|
|
1697
|
-
() =>
|
|
1696
|
+
() => c.single,
|
|
1698
1697
|
(s) => {
|
|
1699
1698
|
var f;
|
|
1700
1699
|
if (s) {
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
J(
|
|
1700
|
+
const m = (f = H.value) == null ? void 0 : f.find((g) => g[y.value.id] === s);
|
|
1701
|
+
m && (c.user.clear(), c.role.clear(), c.post.clear(), c.group.clear(), c.trans = [], ke(() => {
|
|
1702
|
+
J(m);
|
|
1704
1703
|
}));
|
|
1705
1704
|
}
|
|
1706
1705
|
}
|
|
@@ -1716,7 +1715,7 @@ const As = {
|
|
|
1716
1715
|
), de = E(l.tabs[0]), ee = E(l.tabs[0]);
|
|
1717
1716
|
$e(() => (ee.value = Ke.value ? l.tabs[1] : Ye.value ? l.tabs[2] : de.value, ee.value));
|
|
1718
1717
|
const te = () => {
|
|
1719
|
-
|
|
1718
|
+
c.user.clear(), c.role.clear(), c.post.clear(), c.group.clear(), c.trans = [], ge.value = [], xe.value = [], de.value = l.tabs[0], ee.value = l.tabs[0], k.value = "", _.value = l.orgPid, h.value.splice(1, h.value.length), c.single = "", A.value = [];
|
|
1720
1719
|
}, Je = () => {
|
|
1721
1720
|
var s;
|
|
1722
1721
|
pe(
|
|
@@ -1733,7 +1732,7 @@ const As = {
|
|
|
1733
1732
|
};
|
|
1734
1733
|
v({ handClear: te, handRomeve: Ve, handDelete: le });
|
|
1735
1734
|
const et = U(() => {
|
|
1736
|
-
const s =
|
|
1735
|
+
const s = j.value;
|
|
1737
1736
|
return !!((s.includes("post") || s.includes("role")) && s.length > 1);
|
|
1738
1737
|
}), tt = U(() => [
|
|
1739
1738
|
{ name: "group", label: "组织架构" },
|
|
@@ -1741,44 +1740,44 @@ const As = {
|
|
|
1741
1740
|
{ name: "post", label: "岗位列表" }
|
|
1742
1741
|
].filter((s) => l.tabs.includes(s.name))), De = U(
|
|
1743
1742
|
() => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
|
|
1744
|
-
),
|
|
1745
|
-
l.multiple || (
|
|
1743
|
+
), me = () => {
|
|
1744
|
+
l.multiple || (c.post.clear(), c.role.clear(), c.user.clear(), c.group.clear(), c.single = "");
|
|
1746
1745
|
}, lt = U(() => L.value.groups.list.concat(L.value.user.list)), st = (s, f) => {
|
|
1747
|
-
l.multiple || (
|
|
1748
|
-
const
|
|
1749
|
-
if (!
|
|
1750
|
-
|
|
1746
|
+
l.multiple || (c.single = "");
|
|
1747
|
+
const m = l.multiple ? s : [s];
|
|
1748
|
+
if (!m.length) {
|
|
1749
|
+
c.group.clear(), c.user.clear();
|
|
1751
1750
|
return;
|
|
1752
1751
|
}
|
|
1753
|
-
|
|
1754
|
-
|
|
1752
|
+
me(), f.forEach((g) => {
|
|
1753
|
+
m != null && m.includes(g[y.value.id]) ? J(g) : le(g);
|
|
1755
1754
|
});
|
|
1756
|
-
},
|
|
1757
|
-
l.multiple || (
|
|
1758
|
-
const
|
|
1759
|
-
if (!
|
|
1760
|
-
|
|
1755
|
+
}, ge = E([]), at = (s, f) => {
|
|
1756
|
+
l.multiple || (c.single = "");
|
|
1757
|
+
const m = l.multiple ? s : [s];
|
|
1758
|
+
if (!m.length) {
|
|
1759
|
+
c.role.clear();
|
|
1761
1760
|
return;
|
|
1762
1761
|
}
|
|
1763
|
-
|
|
1764
|
-
|
|
1762
|
+
me(), f.forEach((g) => {
|
|
1763
|
+
m != null && m.includes(g[y.value.id]) ? J(g) : le(g);
|
|
1765
1764
|
});
|
|
1766
1765
|
};
|
|
1767
1766
|
K(
|
|
1768
1767
|
() => L.value.role.len,
|
|
1769
1768
|
(s) => {
|
|
1770
|
-
|
|
1769
|
+
ge.value = X.cloneDeep(L.value.role.list);
|
|
1771
1770
|
}
|
|
1772
1771
|
);
|
|
1773
1772
|
const xe = E([]), ot = (s, f) => {
|
|
1774
|
-
l.multiple || (
|
|
1775
|
-
const
|
|
1776
|
-
if (!
|
|
1777
|
-
|
|
1773
|
+
l.multiple || (c.single = "");
|
|
1774
|
+
const m = l.multiple ? s : [s];
|
|
1775
|
+
if (!m.length) {
|
|
1776
|
+
c.post.clear();
|
|
1778
1777
|
return;
|
|
1779
1778
|
}
|
|
1780
|
-
|
|
1781
|
-
|
|
1779
|
+
me(), f.forEach((g) => {
|
|
1780
|
+
m != null && m.includes(g[y.value.id]) ? J(g) : le(g);
|
|
1782
1781
|
});
|
|
1783
1782
|
};
|
|
1784
1783
|
return K(
|
|
@@ -1792,7 +1791,7 @@ const As = {
|
|
|
1792
1791
|
Z("");
|
|
1793
1792
|
}
|
|
1794
1793
|
), (s, f) => {
|
|
1795
|
-
const
|
|
1794
|
+
const m = ce("el-tab-pane"), g = ce("el-tabs");
|
|
1796
1795
|
return a(), B(O(dt), {
|
|
1797
1796
|
modelValue: ve.value,
|
|
1798
1797
|
"onUpdate:modelValue": f[2] || (f[2] = (T) => ve.value = T),
|
|
@@ -1839,16 +1838,16 @@ const As = {
|
|
|
1839
1838
|
style: He({ height: De.value })
|
|
1840
1839
|
},
|
|
1841
1840
|
[
|
|
1842
|
-
n("div",
|
|
1841
|
+
n("div", gs, [
|
|
1843
1842
|
n("div", null, [
|
|
1844
|
-
w(O(
|
|
1843
|
+
w(O(ut), {
|
|
1845
1844
|
modelValue: k.value,
|
|
1846
1845
|
"onUpdate:modelValue": f[0] || (f[0] = (T) => k.value = T),
|
|
1847
1846
|
clearable: "",
|
|
1848
1847
|
placeholder: s.placeholder,
|
|
1849
1848
|
"suffix-icon": Tt
|
|
1850
1849
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1851
|
-
et.value ? (a(), B(
|
|
1850
|
+
et.value ? (a(), B(g, {
|
|
1852
1851
|
key: 0,
|
|
1853
1852
|
modelValue: de.value,
|
|
1854
1853
|
"onUpdate:modelValue": f[1] || (f[1] = (T) => de.value = T),
|
|
@@ -1858,7 +1857,7 @@ const As = {
|
|
|
1858
1857
|
(a(!0), d(
|
|
1859
1858
|
N,
|
|
1860
1859
|
null,
|
|
1861
|
-
W(tt.value, (T) => (a(), B(
|
|
1860
|
+
W(tt.value, (T) => (a(), B(m, {
|
|
1862
1861
|
label: T.label,
|
|
1863
1862
|
name: T.name,
|
|
1864
1863
|
key: T.label
|
|
@@ -1878,7 +1877,7 @@ const As = {
|
|
|
1878
1877
|
[
|
|
1879
1878
|
Ne.value ? (a(), d("div", xs, [
|
|
1880
1879
|
x(" 面包屑 全选 "),
|
|
1881
|
-
w(O(
|
|
1880
|
+
w(O(ct), {
|
|
1882
1881
|
separator: ">",
|
|
1883
1882
|
class: se(["banner", { "top-unlink": !s.topLink }])
|
|
1884
1883
|
}, {
|
|
@@ -1914,7 +1913,7 @@ const As = {
|
|
|
1914
1913
|
)) : x("v-if", !0),
|
|
1915
1914
|
x(" 左侧列表 "),
|
|
1916
1915
|
x(" 组织架构 "),
|
|
1917
|
-
ee.value === O(re).group ?
|
|
1916
|
+
ee.value === O(re).group ? ue((a(), B(wl, {
|
|
1918
1917
|
key: 1,
|
|
1919
1918
|
fixPropOpt: y.value,
|
|
1920
1919
|
fixTypeOpt: i.value,
|
|
@@ -1925,7 +1924,7 @@ const As = {
|
|
|
1925
1924
|
imageBaseUrl: l.imageBaseUrl,
|
|
1926
1925
|
emptyText: l.emptyText,
|
|
1927
1926
|
children: l.children,
|
|
1928
|
-
"choose-type":
|
|
1927
|
+
"choose-type": j.value,
|
|
1929
1928
|
onHandChild: qe,
|
|
1930
1929
|
onChange: st
|
|
1931
1930
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
@@ -1935,16 +1934,16 @@ const As = {
|
|
|
1935
1934
|
{ key: 2 },
|
|
1936
1935
|
[
|
|
1937
1936
|
x(" 角色 "),
|
|
1938
|
-
|
|
1937
|
+
ue(w(hs, {
|
|
1939
1938
|
fixPropOpt: y.value,
|
|
1940
1939
|
fixTypeOpt: i.value,
|
|
1941
1940
|
list: p.value,
|
|
1942
1941
|
max: s.max,
|
|
1943
1942
|
multiple: s.multiple,
|
|
1944
|
-
"hand-list":
|
|
1943
|
+
"hand-list": ge.value,
|
|
1945
1944
|
imageBaseUrl: l.imageBaseUrl,
|
|
1946
1945
|
emptyText: l.emptyText,
|
|
1947
|
-
"choose-type":
|
|
1946
|
+
"choose-type": j.value,
|
|
1948
1947
|
onChange: at
|
|
1949
1948
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
1950
1949
|
[O(Pe), V.value]
|
|
@@ -1957,7 +1956,7 @@ const As = {
|
|
|
1957
1956
|
{ key: 3 },
|
|
1958
1957
|
[
|
|
1959
1958
|
x(" 岗位 "),
|
|
1960
|
-
|
|
1959
|
+
ue(w(ql, {
|
|
1961
1960
|
fixPropOpt: y.value,
|
|
1962
1961
|
fixTypeOpt: i.value,
|
|
1963
1962
|
list: F.value,
|
|
@@ -1966,7 +1965,7 @@ const As = {
|
|
|
1966
1965
|
"hand-list": xe.value,
|
|
1967
1966
|
imageBaseUrl: l.imageBaseUrl,
|
|
1968
1967
|
emptyText: l.emptyText,
|
|
1969
|
-
"choose-type":
|
|
1968
|
+
"choose-type": j.value,
|
|
1970
1969
|
onChange: ot
|
|
1971
1970
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
1972
1971
|
[O(Pe), V.value]
|
|
@@ -2016,7 +2015,7 @@ const As = {
|
|
|
2016
2015
|
/* TEXT */
|
|
2017
2016
|
)
|
|
2018
2017
|
]),
|
|
2019
|
-
|
|
2018
|
+
ue(w(Bt, {
|
|
2020
2019
|
class: "close",
|
|
2021
2020
|
onClick: ie((z) => Ve(T), ["stop"])
|
|
2022
2021
|
}, null, 8, ["onClick"]), [
|
|
@@ -2039,7 +2038,7 @@ const As = {
|
|
|
2039
2038
|
};
|
|
2040
2039
|
}
|
|
2041
2040
|
});
|
|
2042
|
-
const Bs = Ge(Us), Qe = (o) => (he("data-v-
|
|
2041
|
+
const Bs = Ge(Us), Qe = (o) => (he("data-v-0f9a3920"), o = o(), Ae(), o), ws = {
|
|
2043
2042
|
class: "approveProcess",
|
|
2044
2043
|
id: "approveProcess"
|
|
2045
2044
|
}, Is = { class: "node" }, Es = { class: "nodeBg" }, Vs = {
|
|
@@ -2145,13 +2144,13 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2145
2144
|
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
2145
|
}, D = (t, r) => {
|
|
2147
2146
|
e.dataList[r].handList = t.list;
|
|
2148
|
-
let
|
|
2149
|
-
...
|
|
2150
|
-
userName:
|
|
2151
|
-
userAvatar:
|
|
2147
|
+
let u = (e.dataList[r][p.defaultFile.approvePersonList] || []).filter((c) => !c.canDele), S = t.list.map((c) => ({
|
|
2148
|
+
...c,
|
|
2149
|
+
userName: c.elementName,
|
|
2150
|
+
userAvatar: c.avatar,
|
|
2152
2151
|
canDele: !0
|
|
2153
2152
|
}));
|
|
2154
|
-
e.dataList[r][p.defaultFile.approvePersonList] =
|
|
2153
|
+
e.dataList[r][p.defaultFile.approvePersonList] = u.concat(S);
|
|
2155
2154
|
}, y = (t, r) => {
|
|
2156
2155
|
e.dataList[t][p.defaultFile.approvePersonList].splice(r, 1), e.dataList[t].handList = e.dataList[t][p.defaultFile.approvePersonList];
|
|
2157
2156
|
}, i = () => {
|
|
@@ -2184,16 +2183,16 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2184
2183
|
}
|
|
2185
2184
|
}));
|
|
2186
2185
|
return v({ requiredVerification: i }), (t, r) => {
|
|
2187
|
-
const h =
|
|
2186
|
+
const h = ce("IkApprovalProcess");
|
|
2188
2187
|
return a(), d("div", ws, [
|
|
2189
2188
|
(a(!0), d(
|
|
2190
2189
|
N,
|
|
2191
2190
|
null,
|
|
2192
|
-
W(e.dataList, (
|
|
2193
|
-
var
|
|
2191
|
+
W(e.dataList, (u, S) => {
|
|
2192
|
+
var c, M, q, Z;
|
|
2194
2193
|
return a(), d("div", {
|
|
2195
2194
|
class: "content",
|
|
2196
|
-
key:
|
|
2195
|
+
key: u.id
|
|
2197
2196
|
}, [
|
|
2198
2197
|
x(" 审批节点类型 "),
|
|
2199
2198
|
n("div", Is, [
|
|
@@ -2201,7 +2200,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2201
2200
|
n(
|
|
2202
2201
|
"i",
|
|
2203
2202
|
{
|
|
2204
|
-
class: se(O(yt)(p,
|
|
2203
|
+
class: se(O(yt)(p, u[p.defaultFile.nodeType]))
|
|
2205
2204
|
},
|
|
2206
2205
|
null,
|
|
2207
2206
|
2
|
|
@@ -2219,26 +2218,26 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2219
2218
|
/* STYLE */
|
|
2220
2219
|
)
|
|
2221
2220
|
]),
|
|
2222
|
-
|
|
2221
|
+
u[p.defaultFile.nodeType] !== p.nodeType.并行分支 ? (a(), d("div", Vs, [
|
|
2223
2222
|
n("div", null, [
|
|
2224
2223
|
n(
|
|
2225
2224
|
"div",
|
|
2226
2225
|
null,
|
|
2227
|
-
P(
|
|
2226
|
+
P(u[p.defaultFile.nodeTypeName]),
|
|
2228
2227
|
1
|
|
2229
2228
|
/* TEXT */
|
|
2230
2229
|
),
|
|
2231
2230
|
n("div", Ns, [
|
|
2232
2231
|
x(" 抄送节点 "),
|
|
2233
|
-
|
|
2234
|
-
|
|
2232
|
+
u[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (a(), d("span", Fs, [
|
|
2233
|
+
u[p.defaultFile.approvePersonList].length ? (a(), d(
|
|
2235
2234
|
"span",
|
|
2236
2235
|
Ds,
|
|
2237
|
-
P(`抄送${
|
|
2236
|
+
P(`抄送${u[p.defaultFile.approvePersonList].length}人`),
|
|
2238
2237
|
1
|
|
2239
2238
|
/* TEXT */
|
|
2240
2239
|
)) : x("v-if", !0),
|
|
2241
|
-
|
|
2240
|
+
u[p.defaultFile.isShowAdd] ? (a(), d("span", Rs, ",可添加抄送人")) : x("v-if", !0)
|
|
2242
2241
|
])) : (a(), d(
|
|
2243
2242
|
N,
|
|
2244
2243
|
{ key: 1 },
|
|
@@ -2246,19 +2245,19 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2246
2245
|
x(" 审批节点 "),
|
|
2247
2246
|
n("span", null, [
|
|
2248
2247
|
x(" 存在审批人时 "),
|
|
2249
|
-
(
|
|
2248
|
+
(c = u[p.defaultFile.approvePersonList]) != null && c.length ? (a(), d(
|
|
2250
2249
|
"span",
|
|
2251
2250
|
$s,
|
|
2252
|
-
P(((M =
|
|
2251
|
+
P(((M = u[p.defaultFile.approvePersonList]) == null ? void 0 : M.length) == 1 ? "1人审批" : `${(q = u[p.defaultFile.approvePersonList]) == null ? void 0 : q.length}人${u[p.defaultFile.multiExecutorTypeName]}`),
|
|
2253
2252
|
1
|
|
2254
2253
|
/* TEXT */
|
|
2255
|
-
)) : [p.statusWithoutApprover.自动通过, p.statusWithoutApprover.自动拒绝].includes(
|
|
2254
|
+
)) : [p.statusWithoutApprover.自动通过, p.statusWithoutApprover.自动拒绝].includes(u[p.defaultFile.approveType]) ? (a(), d(
|
|
2256
2255
|
"span",
|
|
2257
2256
|
Ms,
|
|
2258
|
-
P(
|
|
2257
|
+
P(u[p.defaultFile.approveTypeName]),
|
|
2259
2258
|
1
|
|
2260
2259
|
/* TEXT */
|
|
2261
|
-
)) :
|
|
2260
|
+
)) : u[p.defaultFile.executorEmptyStrategy] && u[p.defaultFile.executorEmpty] ? (a(), d(
|
|
2262
2261
|
N,
|
|
2263
2262
|
{ key: 2 },
|
|
2264
2263
|
[
|
|
@@ -2268,7 +2267,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2268
2267
|
n(
|
|
2269
2268
|
"span",
|
|
2270
2269
|
null,
|
|
2271
|
-
P(
|
|
2270
|
+
P(u[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.自动通过 ? "将自动通过" : u[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.自动转交管理员 ? "自动转交给管理员" : u[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.指定人员审批 ? `将自动转给指定成员${u[p.defaultFile.reserveExecutorUsers] && u[p.defaultFile.reserveExecutorUsers][0].userName}` : ""),
|
|
2272
2271
|
1
|
|
2273
2272
|
/* TEXT */
|
|
2274
2273
|
)
|
|
@@ -2276,13 +2275,13 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2276
2275
|
],
|
|
2277
2276
|
2112
|
|
2278
2277
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
2279
|
-
)) : [p.nodeType.并行分支, p.nodeType.子流程].includes(
|
|
2278
|
+
)) : [p.nodeType.并行分支, p.nodeType.子流程].includes(u[p.defaultFile.nodeType]) ? x("v-if", !0) : (a(), d(
|
|
2280
2279
|
"span",
|
|
2281
2280
|
{
|
|
2282
2281
|
key: 3,
|
|
2283
|
-
class: se(
|
|
2282
|
+
class: se(u.required ? "warn" : "")
|
|
2284
2283
|
},
|
|
2285
|
-
" 请选择" + P(
|
|
2284
|
+
" 请选择" + P(u[p.defaultFile.nodeType] === p.nodeType.办理节点 ? "办理人" : "审批人"),
|
|
2286
2285
|
3
|
|
2287
2286
|
/* TEXT, CLASS */
|
|
2288
2287
|
))
|
|
@@ -2297,8 +2296,8 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2297
2296
|
(a(!0), d(
|
|
2298
2297
|
N,
|
|
2299
2298
|
null,
|
|
2300
|
-
W(
|
|
2301
|
-
var
|
|
2299
|
+
W(u[p.defaultFile.approvePersonList], (L, j) => {
|
|
2300
|
+
var H;
|
|
2302
2301
|
return a(), d("div", {
|
|
2303
2302
|
class: "list",
|
|
2304
2303
|
key: L.userId
|
|
@@ -2320,7 +2319,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2320
2319
|
])),
|
|
2321
2320
|
L.canDele ? (a(), d("i", {
|
|
2322
2321
|
key: 2,
|
|
2323
|
-
onClick: (Ee) => y(S,
|
|
2322
|
+
onClick: (Ee) => y(S, j),
|
|
2324
2323
|
class: "ikapprove ikapprove-shanchu1"
|
|
2325
2324
|
}, null, 8, Qs)) : x("v-if", !0)
|
|
2326
2325
|
]),
|
|
@@ -2330,9 +2329,9 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2330
2329
|
}, P(L.userName), 9, Xs)
|
|
2331
2330
|
]),
|
|
2332
2331
|
x(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
|
|
2333
|
-
|
|
2332
|
+
u[p.defaultFile.isShowAdd] && !(u[p.defaultFile.singleApproval] && ((H = u[p.defaultFile.approvePersonList]) == null ? void 0 : H.length) == 1) ? (a(), d("span", qs, [
|
|
2334
2333
|
x(" 抄送默认 "),
|
|
2335
|
-
|
|
2334
|
+
u[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (a(), d("span", Zs, "+")) : (a(), d(
|
|
2336
2335
|
N,
|
|
2337
2336
|
{ key: 1 },
|
|
2338
2337
|
[
|
|
@@ -2340,7 +2339,7 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2340
2339
|
n(
|
|
2341
2340
|
"span",
|
|
2342
2341
|
null,
|
|
2343
|
-
P(
|
|
2342
|
+
P(u[p.defaultFile.multiExecutorType] == "ANY" ? "/" : u[p.defaultFile.multiExecutorType] == "ALL" ? "+" : ">"),
|
|
2344
2343
|
1
|
|
2345
2344
|
/* TEXT */
|
|
2346
2345
|
)
|
|
@@ -2355,28 +2354,28 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2355
2354
|
/* KEYED_FRAGMENT */
|
|
2356
2355
|
)),
|
|
2357
2356
|
x(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),
|
|
2358
|
-
|
|
2357
|
+
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
2358
|
key: 0,
|
|
2360
2359
|
class: "addBg",
|
|
2361
|
-
onClick: (L) => F(
|
|
2360
|
+
onClick: (L) => F(u)
|
|
2362
2361
|
}, [
|
|
2363
|
-
|
|
2362
|
+
u[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (a(), d("span", Ys)) : x("v-if", !0),
|
|
2364
2363
|
Js
|
|
2365
2364
|
], 8, Ks)) : x("v-if", !0),
|
|
2366
2365
|
x(" 添加人组件 "),
|
|
2367
2366
|
w(O(Bs), Me({
|
|
2368
|
-
modelValue:
|
|
2369
|
-
"onUpdate:modelValue": (L) =>
|
|
2370
|
-
show:
|
|
2371
|
-
"onUpdate:show": (L) =>
|
|
2367
|
+
modelValue: u.handList,
|
|
2368
|
+
"onUpdate:modelValue": (L) => u.handList = L,
|
|
2369
|
+
show: u.isShow,
|
|
2370
|
+
"onUpdate:show": (L) => u.isShow = L,
|
|
2372
2371
|
onOk: (L) => D(L, S),
|
|
2373
|
-
multiple:
|
|
2374
|
-
"dep-list":
|
|
2375
|
-
"user-list":
|
|
2376
|
-
"organization-list":
|
|
2372
|
+
multiple: u.multiple,
|
|
2373
|
+
"dep-list": u.depList,
|
|
2374
|
+
"user-list": u.userList,
|
|
2375
|
+
"organization-list": u.organizationList,
|
|
2377
2376
|
ref_for: !0
|
|
2378
2377
|
}, A.value, {
|
|
2379
|
-
chooseType:
|
|
2378
|
+
chooseType: u.chooseType
|
|
2380
2379
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "show", "onUpdate:show", "onOk", "multiple", "dep-list", "user-list", "organization-list", "chooseType"])
|
|
2381
2380
|
])
|
|
2382
2381
|
])) : (a(), d("div", ea, [
|
|
@@ -2385,11 +2384,11 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2385
2384
|
(a(!0), d(
|
|
2386
2385
|
N,
|
|
2387
2386
|
null,
|
|
2388
|
-
W(
|
|
2387
|
+
W(u.parallelInstances, (L, j) => (a(), d(
|
|
2389
2388
|
"div",
|
|
2390
2389
|
{
|
|
2391
|
-
key:
|
|
2392
|
-
class: se(`branch branch-${
|
|
2390
|
+
key: j,
|
|
2391
|
+
class: se(`branch branch-${j}`)
|
|
2393
2392
|
},
|
|
2394
2393
|
[
|
|
2395
2394
|
n(
|
|
@@ -2421,8 +2420,8 @@ const Bs = Ge(Us), Qe = (o) => (he("data-v-45d32b3a"), o = o(), Ae(), o), ws = {
|
|
|
2421
2420
|
};
|
|
2422
2421
|
}
|
|
2423
2422
|
});
|
|
2424
|
-
const na = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-
|
|
2423
|
+
const na = /* @__PURE__ */ G(oa, [["__scopeId", "data-v-0f9a3920"]]), ua = Ge(na);
|
|
2425
2424
|
export {
|
|
2426
|
-
|
|
2427
|
-
|
|
2425
|
+
ua as IKApprovalProcess,
|
|
2426
|
+
ua as default
|
|
2428
2427
|
};
|