iking-web-ui-pro 1.0.44 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcess/ik.index.es.js +177 -171
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +239 -233
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +478 -472
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +88 -82
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +273 -267
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +527 -523
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-CS_y74Sj.mjs → index-DTi9E0jO.mjs} +4302 -4292
- package/dist/{index.es-BUP3pLAo.mjs → index.es-B77Iiv-O.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +70 -70
- package/dist/{jspdf.es.min-Ct9vMFKc.mjs → jspdf.es.min-DVvGi1xM.mjs} +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { inject as fe, computed as E, createElementBlock as f, openBlock as s, createElementVNode as n, defineComponent as de, resolveComponent as te, createBlock as I, createCommentVNode as g, toDisplayString as T, ref as _, watch as Y, Fragment as N, createVNode as C, unref as k, withCtx as S, createTextVNode as
|
|
2
|
-
import { ikStore as pe, _ as
|
|
1
|
+
import { inject as fe, computed as E, createElementBlock as f, openBlock as s, createElementVNode as n, defineComponent as de, resolveComponent as te, createBlock as I, createCommentVNode as g, toDisplayString as T, ref as _, watch as Y, Fragment as N, createVNode as C, unref as k, withCtx as S, createTextVNode as J, renderList as Q, normalizeClass as re, useCssVars as st, toRef as ot, reactive as Te, nextTick as Le, watchEffect as Ve, normalizeStyle as Re, withDirectives as he, withModifiers as Oe, vShow as nt, mergeProps as De } from "vue";
|
|
2
|
+
import { ikStore as pe, _ as ee, ikEvent as it } from "iking-utils-pro";
|
|
3
3
|
import Me from "vuedraggable";
|
|
4
4
|
import { ElCheckbox as ue, ElCheckboxGroup as be, ElRadioGroup as Ce, ElRadio as Ue, ElDialog as rt, ElInput as pt, ElBreadcrumb as ut, ElBreadcrumbItem as dt, vLoading as Pe, ElButton as ke } from "element-plus";
|
|
5
5
|
import ct from "axios";
|
|
6
|
-
const We = (
|
|
7
|
-
for (const a of [
|
|
6
|
+
const We = (d, A) => (d.install = (e) => {
|
|
7
|
+
for (const a of [d, ...Object.values({})])
|
|
8
8
|
e.component(a.name, a);
|
|
9
|
-
},
|
|
10
|
-
const e =
|
|
9
|
+
}, d), X = (d, A) => {
|
|
10
|
+
const e = d.__vccOpts || d;
|
|
11
11
|
for (const [a, b] of A)
|
|
12
12
|
e[a] = b;
|
|
13
13
|
return e;
|
|
14
|
-
}, ft = (
|
|
14
|
+
}, ft = (d, A) => A ? A != null && A.startsWith("http") ? A : `${d || location.origin}${A}` : "", At = (d) => ({
|
|
15
15
|
// ================all================
|
|
16
16
|
nodeType: {
|
|
17
17
|
发起人节点: "INITIATOR",
|
|
@@ -23,7 +23,7 @@ const We = (u, A) => (u.install = (e) => {
|
|
|
23
23
|
结束节点: "END",
|
|
24
24
|
并行分支: "PARALLEL",
|
|
25
25
|
子流程: "SUB_PROCESS",
|
|
26
|
-
...
|
|
26
|
+
...d.defaultNodeType
|
|
27
27
|
},
|
|
28
28
|
defaultFile: {
|
|
29
29
|
id: "id",
|
|
@@ -71,7 +71,7 @@ const We = (u, A) => (u.install = (e) => {
|
|
|
71
71
|
singleApproval: "singleApproval",
|
|
72
72
|
//是否单选
|
|
73
73
|
originator: "username",
|
|
74
|
-
...
|
|
74
|
+
...d.defaultFieldMap
|
|
75
75
|
},
|
|
76
76
|
// ================approval================
|
|
77
77
|
statusWithoutApprover: {
|
|
@@ -79,7 +79,7 @@ const We = (u, A) => (u.install = (e) => {
|
|
|
79
79
|
自动拒绝: "AUTO_REJECT",
|
|
80
80
|
自动转交管理员: "TRANSMIT_TO_MANAGER",
|
|
81
81
|
指定人员审批: "SPECIFIED_USER",
|
|
82
|
-
...
|
|
82
|
+
...d.statusWithoutApprover
|
|
83
83
|
},
|
|
84
84
|
multiple: !1,
|
|
85
85
|
chooseType: [],
|
|
@@ -96,25 +96,25 @@ const We = (u, A) => (u.install = (e) => {
|
|
|
96
96
|
评论: "COMMENT",
|
|
97
97
|
待执行: "WAITING",
|
|
98
98
|
执行中: "RUNNING",
|
|
99
|
-
...
|
|
99
|
+
...d.defaultStatus
|
|
100
100
|
},
|
|
101
101
|
listData: []
|
|
102
|
-
}), vt = (
|
|
102
|
+
}), vt = (d, A, e) => {
|
|
103
103
|
let a = "";
|
|
104
104
|
switch (A) {
|
|
105
|
-
case
|
|
105
|
+
case d.nodeType.审批节点:
|
|
106
106
|
e && e.length == 1 ? a = "ikapprove-ziyuan" : a = "ikapprove-shenpi";
|
|
107
107
|
break;
|
|
108
|
-
case
|
|
108
|
+
case d.nodeType.办理节点:
|
|
109
109
|
a = "ikapprove-bianji";
|
|
110
110
|
break;
|
|
111
|
-
case
|
|
111
|
+
case d.nodeType.抄送节点:
|
|
112
112
|
a = "ikapprove-chaosong";
|
|
113
113
|
break;
|
|
114
|
-
case
|
|
114
|
+
case d.nodeType.并行分支:
|
|
115
115
|
a = "ikapprove-fenzhi";
|
|
116
116
|
break;
|
|
117
|
-
case
|
|
117
|
+
case d.nodeType.子流程:
|
|
118
118
|
a = "ikapprove-ziliucheng1";
|
|
119
119
|
break;
|
|
120
120
|
default:
|
|
@@ -176,8 +176,8 @@ const We = (u, A) => (u.install = (e) => {
|
|
|
176
176
|
"mp4",
|
|
177
177
|
"flv",
|
|
178
178
|
"tls"
|
|
179
|
-
], je = (
|
|
180
|
-
const A = fe("loadUrl"), e = E(() =>
|
|
179
|
+
], je = (d) => {
|
|
180
|
+
const A = fe("loadUrl"), e = E(() => d.loadUrl || d.fileUrl || (A == null ? void 0 : A.value)), a = fe("uploadUrl"), b = E(() => d.action || d.uploadUrl || (a == null ? void 0 : a.value)), P = fe("token"), B = E(() => d.token || (P == null ? void 0 : P.value)), w = fe("onlyofficeConfig"), r = E(() => d.onlyofficeConfig || (w == null ? void 0 : w.value)), F = fe("userInfo"), D = E(() => d.userInfo || (F == null ? void 0 : F.value)), R = [...Ne, ...Ne.map((m) => m.toLocaleUpperCase())];
|
|
181
181
|
return {
|
|
182
182
|
cLoadUrl: e,
|
|
183
183
|
cUploadUrl: b,
|
|
@@ -193,7 +193,7 @@ const We = (u, A) => (u.install = (e) => {
|
|
|
193
193
|
version: "1.1",
|
|
194
194
|
"p-id": "2667"
|
|
195
195
|
};
|
|
196
|
-
function mt(
|
|
196
|
+
function mt(d, A) {
|
|
197
197
|
return s(), f("svg", yt, [...A[0] || (A[0] = [
|
|
198
198
|
n(
|
|
199
199
|
"path",
|
|
@@ -229,7 +229,7 @@ const gt = /* @__PURE__ */ X(ht, [["render", mt]]), xt = {}, Ot = {
|
|
|
229
229
|
width: "200",
|
|
230
230
|
height: "200"
|
|
231
231
|
};
|
|
232
|
-
function Pt(
|
|
232
|
+
function Pt(d, A) {
|
|
233
233
|
return s(), f("svg", Ot, [...A[0] || (A[0] = [
|
|
234
234
|
n(
|
|
235
235
|
"path",
|
|
@@ -265,7 +265,7 @@ const kt = /* @__PURE__ */ X(xt, [["render", Pt]]), Tt = {}, Lt = {
|
|
|
265
265
|
width: "200",
|
|
266
266
|
height: "200"
|
|
267
267
|
};
|
|
268
|
-
function bt(
|
|
268
|
+
function bt(d, A) {
|
|
269
269
|
return s(), f("svg", Lt, [...A[0] || (A[0] = [
|
|
270
270
|
n(
|
|
271
271
|
"path",
|
|
@@ -301,7 +301,7 @@ const Ct = /* @__PURE__ */ X(Tt, [["render", bt]]), Ut = {}, St = {
|
|
|
301
301
|
width: "200",
|
|
302
302
|
height: "200"
|
|
303
303
|
};
|
|
304
|
-
function Bt(
|
|
304
|
+
function Bt(d, A) {
|
|
305
305
|
return s(), f("svg", St, [...A[0] || (A[0] = [
|
|
306
306
|
n(
|
|
307
307
|
"path",
|
|
@@ -337,7 +337,7 @@ const wt = /* @__PURE__ */ X(Ut, [["render", Bt]]), _t = {}, Et = {
|
|
|
337
337
|
width: "200",
|
|
338
338
|
height: "200"
|
|
339
339
|
};
|
|
340
|
-
function It(
|
|
340
|
+
function It(d, A) {
|
|
341
341
|
return s(), f("svg", Et, [...A[0] || (A[0] = [
|
|
342
342
|
n(
|
|
343
343
|
"path",
|
|
@@ -392,20 +392,20 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
392
392
|
default: ""
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
|
-
setup(
|
|
396
|
-
const A =
|
|
395
|
+
setup(d) {
|
|
396
|
+
const A = d, { cLoadUrl: e } = je(A), a = (b) => ft(e.value, b);
|
|
397
397
|
return (b, P) => {
|
|
398
398
|
const B = te("el-avatar");
|
|
399
399
|
return s(), f("div", Dt, [
|
|
400
|
-
A.fixTypeOpt.group ===
|
|
401
|
-
|
|
400
|
+
A.fixTypeOpt.group === d.element[A.fixPropOpt.type] ? (s(), I(Vt, { key: 0 })) : A.fixTypeOpt.role === d.element[A.fixPropOpt.type] ? (s(), I(Ct, { key: 1 })) : A.fixTypeOpt.post === d.element[A.fixPropOpt.type] ? (s(), I(wt, { key: 2 })) : A.fixTypeOpt.user === d.element[A.fixPropOpt.type] ? (s(), f("div", Nt, [
|
|
401
|
+
d.element[d.fixPropOpt.avatar] ? (s(), I(B, {
|
|
402
402
|
key: 0,
|
|
403
403
|
shape: "square",
|
|
404
|
-
src: a(
|
|
404
|
+
src: a(d.fixPropOpt.avatar ? d.element[d.fixPropOpt.avatar] : "")
|
|
405
405
|
}, null, 8, ["src"])) : (s(), f(
|
|
406
406
|
"div",
|
|
407
407
|
Ft,
|
|
408
|
-
T(
|
|
408
|
+
T(d.element[d.fixPropOpt.name].slice(-2)),
|
|
409
409
|
1
|
|
410
410
|
/* TEXT */
|
|
411
411
|
))
|
|
@@ -499,17 +499,22 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
499
499
|
__name: "GroupList",
|
|
500
500
|
props: Be,
|
|
501
501
|
emits: ["change", "check", "handChild"],
|
|
502
|
-
setup(
|
|
502
|
+
setup(d, { emit: A }) {
|
|
503
503
|
var m, o;
|
|
504
|
-
const e =
|
|
504
|
+
const e = d, a = _(!1);
|
|
505
505
|
Y(
|
|
506
506
|
() => e.handList,
|
|
507
507
|
() => {
|
|
508
|
+
var O;
|
|
509
|
+
if (!((O = e.handList) != null && O.length)) {
|
|
510
|
+
a.value = !1;
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
508
513
|
const p = e.list.filter(
|
|
509
|
-
(
|
|
514
|
+
(u) => e.chooseType.includes(u[e.fixPropOpt.type].toLowerCase())
|
|
510
515
|
).every(
|
|
511
|
-
(
|
|
512
|
-
(
|
|
516
|
+
(u) => e.handList.some(
|
|
517
|
+
(h) => h[e.fixPropOpt.id] === u[e.fixPropOpt.id]
|
|
513
518
|
)
|
|
514
519
|
);
|
|
515
520
|
a.value = p;
|
|
@@ -517,10 +522,10 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
517
522
|
{ immediate: !0 }
|
|
518
523
|
);
|
|
519
524
|
const b = E(() => {
|
|
520
|
-
var
|
|
521
|
-
const p = (
|
|
525
|
+
var u, h, c;
|
|
526
|
+
const p = (u = e.handList.filter(
|
|
522
527
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
523
|
-
)) == null ? void 0 :
|
|
528
|
+
)) == null ? void 0 : u.length, O = e.list.filter(
|
|
524
529
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
525
530
|
).every(
|
|
526
531
|
(y) => e.handList.some(
|
|
@@ -531,9 +536,9 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
531
536
|
}), P = _(
|
|
532
537
|
e.handList.map((p) => p[e.fixPropOpt.id])
|
|
533
538
|
), B = _((o = (m = e.handList) == null ? void 0 : m[0]) == null ? void 0 : o[e.fixPropOpt.id]), w = A, r = (p) => {
|
|
534
|
-
const O = p ? e.list.map((
|
|
535
|
-
if (e.chooseType.includes(
|
|
536
|
-
return
|
|
539
|
+
const O = p ? e.list.map((u) => {
|
|
540
|
+
if (e.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) && u.available !== !1)
|
|
541
|
+
return u[e.fixPropOpt.id];
|
|
537
542
|
}) : [];
|
|
538
543
|
w("change", O, p ? e.list : []);
|
|
539
544
|
}, F = (p) => {
|
|
@@ -544,7 +549,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
544
549
|
O || w("handChild", p);
|
|
545
550
|
};
|
|
546
551
|
return (p, O) => {
|
|
547
|
-
const
|
|
552
|
+
const u = te("el-scrollbar");
|
|
548
553
|
return s(), f(
|
|
549
554
|
N,
|
|
550
555
|
null,
|
|
@@ -559,7 +564,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
559
564
|
onChange: r
|
|
560
565
|
}, {
|
|
561
566
|
default: S(() => [...O[3] || (O[3] = [
|
|
562
|
-
|
|
567
|
+
J(
|
|
563
568
|
"全选",
|
|
564
569
|
-1
|
|
565
570
|
/* CACHED */
|
|
@@ -568,7 +573,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
568
573
|
_: 1
|
|
569
574
|
/* STABLE */
|
|
570
575
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
571
|
-
C(
|
|
576
|
+
C(u, null, {
|
|
572
577
|
default: S(() => [
|
|
573
578
|
p.list && p.list.length ? (s(), f("ul", Wt, [
|
|
574
579
|
p.multiple ? (s(), I(k(be), {
|
|
@@ -819,7 +824,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
819
824
|
);
|
|
820
825
|
};
|
|
821
826
|
}
|
|
822
|
-
}), cl = /* @__PURE__ */ X(dl, [["__scopeId", "data-v-
|
|
827
|
+
}), cl = /* @__PURE__ */ X(dl, [["__scopeId", "data-v-f7a238bb"]]), fl = { class: "left-pick-list" }, Al = {
|
|
823
828
|
key: 0,
|
|
824
829
|
class: "post-view-list"
|
|
825
830
|
}, vl = { class: "iconBox" }, hl = {
|
|
@@ -835,14 +840,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
835
840
|
__name: "PostList",
|
|
836
841
|
props: Be,
|
|
837
842
|
emits: ["change", "check"],
|
|
838
|
-
setup(
|
|
843
|
+
setup(d, { emit: A }) {
|
|
839
844
|
var R, m;
|
|
840
|
-
const e =
|
|
845
|
+
const e = d, a = E(() => {
|
|
841
846
|
var o, p;
|
|
842
847
|
return ((o = e.handList) == null ? void 0 : o.length) === ((p = e.list) == null ? void 0 : p.length);
|
|
843
848
|
}), b = E(() => {
|
|
844
|
-
var O,
|
|
845
|
-
const o = (O = e.handList) == null ? void 0 : O.length, p = (
|
|
849
|
+
var O, u, h, c;
|
|
850
|
+
const o = (O = e.handList) == null ? void 0 : O.length, p = (u = e.list) == null ? void 0 : u.length;
|
|
846
851
|
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < p;
|
|
847
852
|
}), P = _(
|
|
848
853
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
@@ -865,12 +870,12 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
865
870
|
o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(), I(k(ue), {
|
|
866
871
|
key: 0,
|
|
867
872
|
modelValue: a.value,
|
|
868
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
873
|
+
"onUpdate:modelValue": p[0] || (p[0] = (u) => a.value = u),
|
|
869
874
|
indeterminate: b.value,
|
|
870
875
|
onChange: r
|
|
871
876
|
}, {
|
|
872
877
|
default: S(() => [...p[3] || (p[3] = [
|
|
873
|
-
|
|
878
|
+
J(
|
|
874
879
|
"全选",
|
|
875
880
|
-1
|
|
876
881
|
/* CACHED */
|
|
@@ -885,33 +890,33 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
885
890
|
o.multiple ? (s(), I(k(be), {
|
|
886
891
|
key: 0,
|
|
887
892
|
modelValue: P.value,
|
|
888
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
893
|
+
"onUpdate:modelValue": p[1] || (p[1] = (u) => P.value = u),
|
|
889
894
|
onChange: F
|
|
890
895
|
}, {
|
|
891
896
|
default: S(() => [
|
|
892
897
|
(s(!0), f(
|
|
893
898
|
N,
|
|
894
899
|
null,
|
|
895
|
-
Q(o.list, (
|
|
896
|
-
key:
|
|
900
|
+
Q(o.list, (u) => (s(), f("li", {
|
|
901
|
+
key: u[e.fixPropOpt.id]
|
|
897
902
|
}, [
|
|
898
|
-
o.chooseType.includes(
|
|
903
|
+
o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), I(k(ue), {
|
|
899
904
|
key: 0,
|
|
900
|
-
label:
|
|
905
|
+
label: u[e.fixPropOpt.id]
|
|
901
906
|
}, {
|
|
902
907
|
default: S(() => [
|
|
903
908
|
n("div", vl, [
|
|
904
909
|
C(H, {
|
|
905
910
|
fixTypeOpt: e.fixTypeOpt,
|
|
906
911
|
fixPropOpt: e.fixPropOpt,
|
|
907
|
-
element:
|
|
912
|
+
element: u,
|
|
908
913
|
imageBaseUrl: e.imageBaseUrl
|
|
909
914
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
910
915
|
]),
|
|
911
916
|
n(
|
|
912
917
|
"p",
|
|
913
918
|
null,
|
|
914
|
-
T(
|
|
919
|
+
T(u[e.fixPropOpt.name]),
|
|
915
920
|
1
|
|
916
921
|
/* TEXT */
|
|
917
922
|
)
|
|
@@ -930,14 +935,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
930
935
|
C(H, {
|
|
931
936
|
fixTypeOpt: e.fixTypeOpt,
|
|
932
937
|
fixPropOpt: e.fixPropOpt,
|
|
933
|
-
element:
|
|
938
|
+
element: u,
|
|
934
939
|
imageBaseUrl: e.imageBaseUrl
|
|
935
940
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
936
941
|
]),
|
|
937
942
|
n(
|
|
938
943
|
"div",
|
|
939
944
|
ml,
|
|
940
|
-
T(
|
|
945
|
+
T(u[e.fixPropOpt.name]),
|
|
941
946
|
1
|
|
942
947
|
/* TEXT */
|
|
943
948
|
)
|
|
@@ -953,20 +958,20 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
953
958
|
key: 1,
|
|
954
959
|
isIndeterminate: b.value,
|
|
955
960
|
modelValue: B.value,
|
|
956
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
961
|
+
"onUpdate:modelValue": p[2] || (p[2] = (u) => B.value = u),
|
|
957
962
|
onChange: D
|
|
958
963
|
}, {
|
|
959
964
|
default: S(() => [
|
|
960
965
|
(s(!0), f(
|
|
961
966
|
N,
|
|
962
967
|
null,
|
|
963
|
-
Q(o.list, (
|
|
968
|
+
Q(o.list, (u) => (s(), f("li", {
|
|
964
969
|
class: "w-full",
|
|
965
|
-
key:
|
|
970
|
+
key: u[e.fixPropOpt.id]
|
|
966
971
|
}, [
|
|
967
|
-
o.chooseType.includes(
|
|
972
|
+
o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), I(k(Ue), {
|
|
968
973
|
key: 0,
|
|
969
|
-
label:
|
|
974
|
+
label: u[e.fixPropOpt.id]
|
|
970
975
|
}, {
|
|
971
976
|
default: S(() => [
|
|
972
977
|
n("div", gl, [
|
|
@@ -974,14 +979,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
974
979
|
C(H, {
|
|
975
980
|
fixTypeOpt: e.fixTypeOpt,
|
|
976
981
|
fixPropOpt: e.fixPropOpt,
|
|
977
|
-
element:
|
|
982
|
+
element: u,
|
|
978
983
|
imageBaseUrl: e.imageBaseUrl
|
|
979
984
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
980
985
|
]),
|
|
981
986
|
n(
|
|
982
987
|
"p",
|
|
983
988
|
null,
|
|
984
|
-
T(
|
|
989
|
+
T(u[e.fixPropOpt.name]),
|
|
985
990
|
1
|
|
986
991
|
/* TEXT */
|
|
987
992
|
)
|
|
@@ -1001,14 +1006,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1001
1006
|
C(H, {
|
|
1002
1007
|
fixTypeOpt: e.fixTypeOpt,
|
|
1003
1008
|
fixPropOpt: e.fixPropOpt,
|
|
1004
|
-
element:
|
|
1009
|
+
element: u,
|
|
1005
1010
|
imageBaseUrl: e.imageBaseUrl
|
|
1006
1011
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1007
1012
|
]),
|
|
1008
1013
|
n(
|
|
1009
1014
|
"div",
|
|
1010
1015
|
kl,
|
|
1011
|
-
T(
|
|
1016
|
+
T(u[e.fixPropOpt.name]),
|
|
1012
1017
|
1
|
|
1013
1018
|
/* TEXT */
|
|
1014
1019
|
)
|
|
@@ -1067,14 +1072,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1067
1072
|
__name: "RoleList",
|
|
1068
1073
|
props: Be,
|
|
1069
1074
|
emits: ["change", "check"],
|
|
1070
|
-
setup(
|
|
1075
|
+
setup(d, { emit: A }) {
|
|
1071
1076
|
var R, m;
|
|
1072
|
-
const e =
|
|
1077
|
+
const e = d, a = E(() => {
|
|
1073
1078
|
var o, p;
|
|
1074
1079
|
return ((o = e.handList) == null ? void 0 : o.length) === ((p = e.list) == null ? void 0 : p.length);
|
|
1075
1080
|
}), b = E(() => {
|
|
1076
|
-
var O,
|
|
1077
|
-
const o = (O = e.handList) == null ? void 0 : O.length, p = (
|
|
1081
|
+
var O, u, h, c;
|
|
1082
|
+
const o = (O = e.handList) == null ? void 0 : O.length, p = (u = e.list) == null ? void 0 : u.length;
|
|
1078
1083
|
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < p;
|
|
1079
1084
|
}), P = _(
|
|
1080
1085
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
@@ -1097,12 +1102,12 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1097
1102
|
o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(), I(k(ue), {
|
|
1098
1103
|
key: 0,
|
|
1099
1104
|
modelValue: a.value,
|
|
1100
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1105
|
+
"onUpdate:modelValue": p[0] || (p[0] = (u) => a.value = u),
|
|
1101
1106
|
indeterminate: b.value,
|
|
1102
1107
|
onChange: r
|
|
1103
1108
|
}, {
|
|
1104
1109
|
default: S(() => [...p[3] || (p[3] = [
|
|
1105
|
-
|
|
1110
|
+
J(
|
|
1106
1111
|
"全选",
|
|
1107
1112
|
-1
|
|
1108
1113
|
/* CACHED */
|
|
@@ -1117,34 +1122,34 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1117
1122
|
o.multiple ? (s(), I(k(be), {
|
|
1118
1123
|
key: 0,
|
|
1119
1124
|
modelValue: P.value,
|
|
1120
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
1125
|
+
"onUpdate:modelValue": p[1] || (p[1] = (u) => P.value = u),
|
|
1121
1126
|
onChange: F
|
|
1122
1127
|
}, {
|
|
1123
1128
|
default: S(() => [
|
|
1124
1129
|
(s(!0), f(
|
|
1125
1130
|
N,
|
|
1126
1131
|
null,
|
|
1127
|
-
Q(o.list, (
|
|
1128
|
-
key:
|
|
1132
|
+
Q(o.list, (u) => (s(), f("li", {
|
|
1133
|
+
key: u[o.fixPropOpt.id]
|
|
1129
1134
|
}, [
|
|
1130
|
-
o.chooseType.includes(
|
|
1135
|
+
o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), I(k(ue), {
|
|
1131
1136
|
key: 0,
|
|
1132
|
-
label:
|
|
1133
|
-
value:
|
|
1134
|
-
disabled:
|
|
1137
|
+
label: u[o.fixPropOpt.id],
|
|
1138
|
+
value: u[o.fixPropOpt.id],
|
|
1139
|
+
disabled: u.disabled
|
|
1135
1140
|
}, {
|
|
1136
1141
|
default: S(() => [
|
|
1137
1142
|
n("div", Sl, [
|
|
1138
1143
|
C(H, {
|
|
1139
1144
|
fixTypeOpt: e.fixTypeOpt,
|
|
1140
1145
|
fixPropOpt: e.fixPropOpt,
|
|
1141
|
-
element:
|
|
1146
|
+
element: u,
|
|
1142
1147
|
imageBaseUrl: e.imageBaseUrl
|
|
1143
1148
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1144
1149
|
]),
|
|
1145
1150
|
n("p", {
|
|
1146
|
-
title:
|
|
1147
|
-
}, T(
|
|
1151
|
+
title: u[o.fixPropOpt.name]
|
|
1152
|
+
}, T(u[o.fixPropOpt.name]), 9, Bl)
|
|
1148
1153
|
]),
|
|
1149
1154
|
_: 2
|
|
1150
1155
|
/* DYNAMIC */
|
|
@@ -1160,14 +1165,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1160
1165
|
C(H, {
|
|
1161
1166
|
fixTypeOpt: e.fixTypeOpt,
|
|
1162
1167
|
fixPropOpt: e.fixPropOpt,
|
|
1163
|
-
element:
|
|
1168
|
+
element: u,
|
|
1164
1169
|
imageBaseUrl: e.imageBaseUrl
|
|
1165
1170
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1166
1171
|
]),
|
|
1167
1172
|
n("div", {
|
|
1168
1173
|
class: "title",
|
|
1169
|
-
title:
|
|
1170
|
-
}, T(
|
|
1174
|
+
title: u[o.fixPropOpt.name]
|
|
1175
|
+
}, T(u[o.fixPropOpt.name]), 9, El)
|
|
1171
1176
|
]))
|
|
1172
1177
|
]))),
|
|
1173
1178
|
128
|
|
@@ -1180,22 +1185,22 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1180
1185
|
key: 1,
|
|
1181
1186
|
indeterminate: b.value,
|
|
1182
1187
|
modelValue: B.value,
|
|
1183
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
1188
|
+
"onUpdate:modelValue": p[2] || (p[2] = (u) => B.value = u),
|
|
1184
1189
|
onChange: D
|
|
1185
1190
|
}, {
|
|
1186
1191
|
default: S(() => [
|
|
1187
1192
|
(s(!0), f(
|
|
1188
1193
|
N,
|
|
1189
1194
|
null,
|
|
1190
|
-
Q(o.list, (
|
|
1195
|
+
Q(o.list, (u) => (s(), f("li", {
|
|
1191
1196
|
class: "w-full",
|
|
1192
|
-
key:
|
|
1197
|
+
key: u[o.fixPropOpt.id]
|
|
1193
1198
|
}, [
|
|
1194
|
-
o.chooseType.includes(
|
|
1199
|
+
o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), I(k(Ue), {
|
|
1195
1200
|
key: 0,
|
|
1196
|
-
label:
|
|
1197
|
-
value:
|
|
1198
|
-
disabled:
|
|
1201
|
+
label: u[o.fixPropOpt.id],
|
|
1202
|
+
value: u[o.fixPropOpt.id],
|
|
1203
|
+
disabled: u.disabled
|
|
1199
1204
|
}, {
|
|
1200
1205
|
default: S(() => [
|
|
1201
1206
|
n("div", Il, [
|
|
@@ -1203,13 +1208,13 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1203
1208
|
C(H, {
|
|
1204
1209
|
fixTypeOpt: e.fixTypeOpt,
|
|
1205
1210
|
fixPropOpt: e.fixPropOpt,
|
|
1206
|
-
element:
|
|
1211
|
+
element: u,
|
|
1207
1212
|
imageBaseUrl: e.imageBaseUrl
|
|
1208
1213
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1209
1214
|
]),
|
|
1210
1215
|
n("p", {
|
|
1211
|
-
title:
|
|
1212
|
-
}, T(
|
|
1216
|
+
title: u[o.fixPropOpt.name]
|
|
1217
|
+
}, T(u[o.fixPropOpt.name]), 9, Dl)
|
|
1213
1218
|
])
|
|
1214
1219
|
]),
|
|
1215
1220
|
_: 2
|
|
@@ -1226,14 +1231,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1226
1231
|
C(H, {
|
|
1227
1232
|
fixTypeOpt: e.fixTypeOpt,
|
|
1228
1233
|
fixPropOpt: e.fixPropOpt,
|
|
1229
|
-
element:
|
|
1234
|
+
element: u,
|
|
1230
1235
|
imageBaseUrl: e.imageBaseUrl
|
|
1231
1236
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1232
1237
|
]),
|
|
1233
1238
|
n("div", {
|
|
1234
1239
|
class: "title",
|
|
1235
|
-
title:
|
|
1236
|
-
}, T(
|
|
1240
|
+
title: u[o.fixPropOpt.name]
|
|
1241
|
+
}, T(u[o.fixPropOpt.name]), 9, Rl)
|
|
1237
1242
|
]))
|
|
1238
1243
|
]))),
|
|
1239
1244
|
128
|
|
@@ -1274,7 +1279,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1274
1279
|
};
|
|
1275
1280
|
}
|
|
1276
1281
|
}), jl = /* @__PURE__ */ X(Wl, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1277
|
-
var
|
|
1282
|
+
var Ae = /* @__PURE__ */ ((d) => (d.group = "group", d.role = "role", d.post = "post", d))(Ae || {});
|
|
1278
1283
|
const Hl = {
|
|
1279
1284
|
// 是否允许选择子集
|
|
1280
1285
|
children: {
|
|
@@ -1367,10 +1372,10 @@ const Hl = {
|
|
|
1367
1372
|
tabs: {
|
|
1368
1373
|
type: Array,
|
|
1369
1374
|
// prop校验
|
|
1370
|
-
validator: (
|
|
1371
|
-
if (
|
|
1372
|
-
if (Array.isArray(
|
|
1373
|
-
if (!(
|
|
1375
|
+
validator: (d) => {
|
|
1376
|
+
if (d === void 0) return !0;
|
|
1377
|
+
if (Array.isArray(d)) {
|
|
1378
|
+
if (!(d != null && d.length))
|
|
1374
1379
|
return !1;
|
|
1375
1380
|
} else return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
|
|
1376
1381
|
return !0;
|
|
@@ -1443,26 +1448,26 @@ const Hl = {
|
|
|
1443
1448
|
type: Boolean,
|
|
1444
1449
|
default: !1
|
|
1445
1450
|
}
|
|
1446
|
-
}, Fe = (
|
|
1451
|
+
}, Fe = (d) => {
|
|
1447
1452
|
const A = window.location.search;
|
|
1448
|
-
return new URLSearchParams(A).get(
|
|
1449
|
-
}, Gl = (
|
|
1453
|
+
return new URLSearchParams(A).get(d);
|
|
1454
|
+
}, Gl = (d) => {
|
|
1450
1455
|
const A = pe.local.getItem("x_domain");
|
|
1451
|
-
A && (
|
|
1452
|
-
}, $l = (
|
|
1456
|
+
A && (d["X-DOMAIN"] = A);
|
|
1457
|
+
}, $l = (d) => {
|
|
1453
1458
|
var e;
|
|
1454
1459
|
const A = Fe("domain");
|
|
1455
1460
|
if (A) {
|
|
1456
|
-
|
|
1461
|
+
d["X-DOMAIN"] = A;
|
|
1457
1462
|
const a = Fe("code");
|
|
1458
|
-
A === "APPLICATION" && (
|
|
1463
|
+
A === "APPLICATION" && (d["X-APP"] = a);
|
|
1459
1464
|
} else
|
|
1460
|
-
Gl(
|
|
1465
|
+
Gl(d);
|
|
1461
1466
|
(e = pe.local.getItem("tenant")) == null || e.code;
|
|
1462
|
-
}, zl = (
|
|
1467
|
+
}, zl = (d, A) => {
|
|
1463
1468
|
const e = _([]), a = async (P, B) => {
|
|
1464
1469
|
var M, W, z;
|
|
1465
|
-
const { url: w, methods: r, headers: F, param: D } =
|
|
1470
|
+
const { url: w, methods: r, headers: F, param: D } = d.value || {}, R = {
|
|
1466
1471
|
// 额外参数
|
|
1467
1472
|
rootDepartmentId: ((M = pe.local.getItem("now_shop")) == null ? void 0 : M.storeId) || "",
|
|
1468
1473
|
parentDepartmentId: P || "",
|
|
@@ -1491,7 +1496,7 @@ const Hl = {
|
|
|
1491
1496
|
rootDepartment: {}
|
|
1492
1497
|
};
|
|
1493
1498
|
const {
|
|
1494
|
-
departments:
|
|
1499
|
+
departments: u,
|
|
1495
1500
|
roles: h,
|
|
1496
1501
|
posts: c,
|
|
1497
1502
|
users: y,
|
|
@@ -1506,10 +1511,10 @@ const Hl = {
|
|
|
1506
1511
|
...$,
|
|
1507
1512
|
id: $.elementId
|
|
1508
1513
|
}), {
|
|
1509
|
-
groupList:
|
|
1510
|
-
roleList:
|
|
1511
|
-
postList:
|
|
1512
|
-
userList:
|
|
1514
|
+
groupList: ee.cloneDeep(u),
|
|
1515
|
+
roleList: ee.cloneDeep(h),
|
|
1516
|
+
postList: ee.cloneDeep(c),
|
|
1517
|
+
userList: ee.cloneDeep(y),
|
|
1513
1518
|
rootOrganization: t,
|
|
1514
1519
|
rootDepartment: v
|
|
1515
1520
|
};
|
|
@@ -1528,11 +1533,11 @@ const Hl = {
|
|
|
1528
1533
|
__name: "picker",
|
|
1529
1534
|
props: Hl,
|
|
1530
1535
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1531
|
-
setup(
|
|
1536
|
+
setup(d, { expose: A, emit: e }) {
|
|
1532
1537
|
st((l) => ({
|
|
1533
|
-
|
|
1538
|
+
v57dba46f: Ie.value
|
|
1534
1539
|
}));
|
|
1535
|
-
const a =
|
|
1540
|
+
const a = d, b = _(""), P = _(""), B = _([]), w = _([]), r = _([]), F = _([]), D = _(!1), R = E(() => z.value.includes("user") ? w.value.concat(B.value) : w.value);
|
|
1536
1541
|
Y(
|
|
1537
1542
|
() => a.api,
|
|
1538
1543
|
() => {
|
|
@@ -1551,15 +1556,15 @@ const Hl = {
|
|
|
1551
1556
|
post: "POST",
|
|
1552
1557
|
group: "DEPT",
|
|
1553
1558
|
...a.typeOption
|
|
1554
|
-
})), p = _([]), O = zl(ot(a, "api"), a),
|
|
1555
|
-
a.immediate &&
|
|
1559
|
+
})), p = _([]), O = zl(ot(a, "api"), a), u = O.handData, h = O.bannerList;
|
|
1560
|
+
a.immediate && u(P.value, b.value);
|
|
1556
1561
|
const c = (l) => (l.forEach((i) => {
|
|
1557
1562
|
var x, L;
|
|
1558
1563
|
i.disabled = ((L = (x = a.modelValue) == null ? void 0 : x.find(
|
|
1559
1564
|
(G) => G[m.value.id] === i[m.value.id]
|
|
1560
1565
|
)) == null ? void 0 : L.disabled) || !1;
|
|
1561
1566
|
}), l), y = async () => {
|
|
1562
|
-
var l, i, x, L, G, U, ce,
|
|
1567
|
+
var l, i, x, L, G, U, ce, xe;
|
|
1563
1568
|
D.value = !0;
|
|
1564
1569
|
try {
|
|
1565
1570
|
if ((l = a.groupList) != null && l.length || (i = a.userList) != null && i.length || (x = a.roleList) != null && x.length || (L = a.postList) != null && L.length) {
|
|
@@ -1569,12 +1574,12 @@ const Hl = {
|
|
|
1569
1574
|
(K) => K[m.value.name].includes(b.value)
|
|
1570
1575
|
), r.value = (ce = a.roleList) == null ? void 0 : ce.filter(
|
|
1571
1576
|
(K) => K[m.value.name].includes(b.value)
|
|
1572
|
-
), F.value = (
|
|
1577
|
+
), F.value = (xe = a.postList) == null ? void 0 : xe.filter(
|
|
1573
1578
|
(K) => K[m.value.name].includes(b.value)
|
|
1574
1579
|
), ne(), D.value = !1;
|
|
1575
1580
|
return;
|
|
1576
1581
|
}
|
|
1577
|
-
const j = await
|
|
1582
|
+
const j = await u(P.value, b.value);
|
|
1578
1583
|
try {
|
|
1579
1584
|
B.value = c((j == null ? void 0 : j.userList) || []), w.value = c((j == null ? void 0 : j.groupList) || []), r.value = c((j == null ? void 0 : j.roleList) || []), F.value = c((j == null ? void 0 : j.postList) || []);
|
|
1580
1585
|
} catch (K) {
|
|
@@ -1634,7 +1639,7 @@ const Hl = {
|
|
|
1634
1639
|
});
|
|
1635
1640
|
}, Z = e, oe = _(!1), ne = (l = !1) => {
|
|
1636
1641
|
var x;
|
|
1637
|
-
const i = (x = a == null ? void 0 : a.userList) != null && x.length ?
|
|
1642
|
+
const i = (x = a == null ? void 0 : a.userList) != null && x.length ? ee.cloneDeep([...a == null ? void 0 : a.userList, ...a == null ? void 0 : a.groupList]) : [...w.value, ...B.value];
|
|
1638
1643
|
return !l && V(i), i;
|
|
1639
1644
|
};
|
|
1640
1645
|
Y(
|
|
@@ -1771,21 +1776,21 @@ const Hl = {
|
|
|
1771
1776
|
() => a.chooseType.includes("role") && a.chooseType.length === 1
|
|
1772
1777
|
), Ze = E(
|
|
1773
1778
|
() => a.chooseType.includes("post") && a.chooseType.length === 1
|
|
1774
|
-
),
|
|
1775
|
-
Ve(() => (ae.value = qe.value ? a.tabs[1] : Ze.value ? a.tabs[2] :
|
|
1779
|
+
), ve = _(a.tabs[0]), ae = _(a.tabs[0]);
|
|
1780
|
+
Ve(() => (ae.value = qe.value ? a.tabs[1] : Ze.value ? a.tabs[2] : ve.value, ae.value));
|
|
1776
1781
|
const se = () => {
|
|
1777
|
-
t.user.clear(), t.role.clear(), t.post.clear(), t.group.clear(), t.trans = [],
|
|
1782
|
+
t.user.clear(), t.role.clear(), t.post.clear(), t.group.clear(), t.trans = [], me.value = [], ge.value = [], ve.value = a.tabs[0], ae.value = a.tabs[0], b.value = "", P.value = a.orgPid, h.value.splice(1, h.value.length), t.single = "", p.value = [];
|
|
1778
1783
|
}, Ke = () => {
|
|
1779
1784
|
var l;
|
|
1780
1785
|
Z(
|
|
1781
1786
|
"ok",
|
|
1782
|
-
|
|
1787
|
+
ee.cloneDeep({
|
|
1783
1788
|
// 所有选项、部门、人员、角色分别列出
|
|
1784
1789
|
...W.value,
|
|
1785
1790
|
// 排序后的列表
|
|
1786
1791
|
sort: p.value
|
|
1787
1792
|
})
|
|
1788
|
-
), Z("update:modelValue",
|
|
1793
|
+
), Z("update:modelValue", ee.cloneDeep(((l = W.value) == null ? void 0 : l.list) || [])), Z("update:show", !1), se();
|
|
1789
1794
|
}, Ee = () => {
|
|
1790
1795
|
Z("update:show", !1), se();
|
|
1791
1796
|
};
|
|
@@ -1806,7 +1811,7 @@ const Hl = {
|
|
|
1806
1811
|
{ name: "post", label: "岗位列表" }
|
|
1807
1812
|
].filter((l) => a.tabs.includes(l.name))), Ie = E(
|
|
1808
1813
|
() => `${typeof a.height == "string" ? Number.parseInt(a.height) : a.height}px`
|
|
1809
|
-
),
|
|
1814
|
+
), ye = () => {
|
|
1810
1815
|
a.multiple || (t.post.clear(), t.role.clear(), t.user.clear(), t.group.clear(), t.single = "");
|
|
1811
1816
|
}, et = E(() => W.value.groups.list.concat(W.value.user.list)), tt = (l, i) => {
|
|
1812
1817
|
a.multiple || (t.single = "");
|
|
@@ -1815,41 +1820,41 @@ const Hl = {
|
|
|
1815
1820
|
t.group.clear(), t.user.clear();
|
|
1816
1821
|
return;
|
|
1817
1822
|
}
|
|
1818
|
-
|
|
1823
|
+
ye(), i.forEach((L) => {
|
|
1819
1824
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1820
1825
|
});
|
|
1821
|
-
},
|
|
1826
|
+
}, me = _([]), lt = (l, i) => {
|
|
1822
1827
|
a.multiple || (t.single = "");
|
|
1823
1828
|
const x = a.multiple ? l : [l];
|
|
1824
1829
|
if (!x.length) {
|
|
1825
1830
|
t.role.clear();
|
|
1826
1831
|
return;
|
|
1827
1832
|
}
|
|
1828
|
-
|
|
1833
|
+
ye(), i.forEach((L) => {
|
|
1829
1834
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1830
1835
|
});
|
|
1831
1836
|
};
|
|
1832
1837
|
Y(
|
|
1833
1838
|
() => W.value.role.len,
|
|
1834
1839
|
(l) => {
|
|
1835
|
-
|
|
1840
|
+
me.value = ee.cloneDeep(W.value.role.list);
|
|
1836
1841
|
}
|
|
1837
1842
|
);
|
|
1838
|
-
const
|
|
1843
|
+
const ge = _([]), at = (l, i) => {
|
|
1839
1844
|
a.multiple || (t.single = "");
|
|
1840
1845
|
const x = a.multiple ? l : [l];
|
|
1841
1846
|
if (!x.length) {
|
|
1842
1847
|
t.post.clear();
|
|
1843
1848
|
return;
|
|
1844
1849
|
}
|
|
1845
|
-
|
|
1850
|
+
ye(), i.forEach((L) => {
|
|
1846
1851
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1847
1852
|
});
|
|
1848
1853
|
};
|
|
1849
1854
|
return Y(
|
|
1850
1855
|
() => W.value.post.len,
|
|
1851
1856
|
(l) => {
|
|
1852
|
-
|
|
1857
|
+
ge.value = ee.cloneDeep(W.value.post.list);
|
|
1853
1858
|
}
|
|
1854
1859
|
), Y(
|
|
1855
1860
|
() => b.value,
|
|
@@ -1881,11 +1886,9 @@ const Hl = {
|
|
|
1881
1886
|
footer: S(() => [
|
|
1882
1887
|
n("span", ea, [
|
|
1883
1888
|
g(" 取消按钮 "),
|
|
1884
|
-
C(k(ke), {
|
|
1885
|
-
onClick: Ae(Ee, ["stop"])
|
|
1886
|
-
}, {
|
|
1889
|
+
C(k(ke), { onClick: Ee }, {
|
|
1887
1890
|
default: S(() => [...i[7] || (i[7] = [
|
|
1888
|
-
|
|
1891
|
+
J(
|
|
1889
1892
|
"取消",
|
|
1890
1893
|
-1
|
|
1891
1894
|
/* CACHED */
|
|
@@ -1897,10 +1900,10 @@ const Hl = {
|
|
|
1897
1900
|
g(" 确定按钮 "),
|
|
1898
1901
|
C(k(ke), {
|
|
1899
1902
|
type: "primary",
|
|
1900
|
-
onClick:
|
|
1903
|
+
onClick: Ke
|
|
1901
1904
|
}, {
|
|
1902
1905
|
default: S(() => [...i[8] || (i[8] = [
|
|
1903
|
-
|
|
1906
|
+
J(
|
|
1904
1907
|
" 确定 ",
|
|
1905
1908
|
-1
|
|
1906
1909
|
/* CACHED */
|
|
@@ -1934,8 +1937,8 @@ const Hl = {
|
|
|
1934
1937
|
g(" 标签页切换 "),
|
|
1935
1938
|
Ye.value ? (s(), I(L, {
|
|
1936
1939
|
key: 0,
|
|
1937
|
-
modelValue:
|
|
1938
|
-
"onUpdate:modelValue": i[1] || (i[1] = (U) =>
|
|
1940
|
+
modelValue: ve.value,
|
|
1941
|
+
"onUpdate:modelValue": i[1] || (i[1] = (U) => ve.value = U),
|
|
1939
1942
|
class: "ik-picker-tab"
|
|
1940
1943
|
}, {
|
|
1941
1944
|
default: S(() => [
|
|
@@ -1956,7 +1959,7 @@ const Hl = {
|
|
|
1956
1959
|
}, 8, ["modelValue"])) : g("v-if", !0)
|
|
1957
1960
|
]),
|
|
1958
1961
|
g(" 面包屑导航区域 "),
|
|
1959
|
-
ae.value === k(
|
|
1962
|
+
ae.value === k(Ae).group ? (s(), f(
|
|
1960
1963
|
N,
|
|
1961
1964
|
{ key: 0 },
|
|
1962
1965
|
[
|
|
@@ -1972,10 +1975,10 @@ const Hl = {
|
|
|
1972
1975
|
null,
|
|
1973
1976
|
Q(k(h), (U, ce) => (s(), I(k(dt), {
|
|
1974
1977
|
key: U[m.value.id],
|
|
1975
|
-
onClick:
|
|
1978
|
+
onClick: Oe((xe) => Xe(U, ce), ["stop"])
|
|
1976
1979
|
}, {
|
|
1977
1980
|
default: S(() => [
|
|
1978
|
-
|
|
1981
|
+
J(
|
|
1979
1982
|
T(U[m.value.name]),
|
|
1980
1983
|
1
|
|
1981
1984
|
/* TEXT */
|
|
@@ -1998,7 +2001,7 @@ const Hl = {
|
|
|
1998
2001
|
)) : g("v-if", !0),
|
|
1999
2002
|
g(" 数据列表区域 "),
|
|
2000
2003
|
g(" 组织架构列表 "),
|
|
2001
|
-
ae.value === k(
|
|
2004
|
+
ae.value === k(Ae).group ? he((s(), I(cl, {
|
|
2002
2005
|
key: 1,
|
|
2003
2006
|
fixPropOpt: m.value,
|
|
2004
2007
|
fixTypeOpt: o.value,
|
|
@@ -2014,18 +2017,18 @@ const Hl = {
|
|
|
2014
2017
|
onChange: tt
|
|
2015
2018
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2016
2019
|
[k(Pe), D.value]
|
|
2017
|
-
]) : ae.value === k(
|
|
2020
|
+
]) : ae.value === k(Ae).role ? (s(), f(
|
|
2018
2021
|
N,
|
|
2019
2022
|
{ key: 2 },
|
|
2020
2023
|
[
|
|
2021
2024
|
g(" 角色列表 "),
|
|
2022
|
-
|
|
2025
|
+
he(C(jl, {
|
|
2023
2026
|
fixPropOpt: m.value,
|
|
2024
2027
|
fixTypeOpt: o.value,
|
|
2025
2028
|
list: r.value,
|
|
2026
2029
|
max: l.max,
|
|
2027
2030
|
multiple: l.multiple,
|
|
2028
|
-
"hand-list":
|
|
2031
|
+
"hand-list": me.value,
|
|
2029
2032
|
imageBaseUrl: a.imageBaseUrl,
|
|
2030
2033
|
emptyText: a.emptyText,
|
|
2031
2034
|
"choose-type": z.value,
|
|
@@ -2036,18 +2039,18 @@ const Hl = {
|
|
|
2036
2039
|
],
|
|
2037
2040
|
64
|
|
2038
2041
|
/* STABLE_FRAGMENT */
|
|
2039
|
-
)) : ae.value === k(
|
|
2042
|
+
)) : ae.value === k(Ae).post ? (s(), f(
|
|
2040
2043
|
N,
|
|
2041
2044
|
{ key: 3 },
|
|
2042
2045
|
[
|
|
2043
2046
|
g(" 岗位列表 "),
|
|
2044
|
-
|
|
2047
|
+
he(C(bl, {
|
|
2045
2048
|
fixPropOpt: m.value,
|
|
2046
2049
|
fixTypeOpt: o.value,
|
|
2047
2050
|
list: F.value,
|
|
2048
2051
|
max: l.max,
|
|
2049
2052
|
multiple: l.multiple,
|
|
2050
|
-
"hand-list":
|
|
2053
|
+
"hand-list": ge.value,
|
|
2051
2054
|
imageBaseUrl: a.imageBaseUrl,
|
|
2052
2055
|
emptyText: a.emptyText,
|
|
2053
2056
|
"choose-type": z.value,
|
|
@@ -2075,17 +2078,20 @@ const Hl = {
|
|
|
2075
2078
|
i[5] || (i[5] = n(
|
|
2076
2079
|
"div",
|
|
2077
2080
|
null,
|
|
2078
|
-
|
|
2081
|
+
[
|
|
2082
|
+
J("已选列表"),
|
|
2083
|
+
n("span", { class: "ik-info-text" }, "(支持拖拽排序)")
|
|
2084
|
+
],
|
|
2079
2085
|
-1
|
|
2080
2086
|
/* CACHED */
|
|
2081
2087
|
)),
|
|
2082
2088
|
C(k(ke), {
|
|
2083
2089
|
type: "primary",
|
|
2084
2090
|
link: "",
|
|
2085
|
-
onClick:
|
|
2091
|
+
onClick: Oe(se, ["stop"])
|
|
2086
2092
|
}, {
|
|
2087
2093
|
default: S(() => [...i[4] || (i[4] = [
|
|
2088
|
-
|
|
2094
|
+
J(
|
|
2089
2095
|
"清空",
|
|
2090
2096
|
-1
|
|
2091
2097
|
/* CACHED */
|
|
@@ -2133,9 +2139,9 @@ const Hl = {
|
|
|
2133
2139
|
)
|
|
2134
2140
|
]),
|
|
2135
2141
|
g(" 删除按钮 "),
|
|
2136
|
-
|
|
2142
|
+
he(C(kt, {
|
|
2137
2143
|
class: "close",
|
|
2138
|
-
onClick:
|
|
2144
|
+
onClick: Oe((ce) => we(U), ["stop"])
|
|
2139
2145
|
}, null, 8, ["onClick"]), [
|
|
2140
2146
|
[nt, !(U != null && U.readonly)]
|
|
2141
2147
|
])
|
|
@@ -2221,8 +2227,8 @@ const Hl = {
|
|
|
2221
2227
|
default: () => ({})
|
|
2222
2228
|
}
|
|
2223
2229
|
},
|
|
2224
|
-
setup(
|
|
2225
|
-
const e =
|
|
2230
|
+
setup(d, { expose: A }) {
|
|
2231
|
+
const e = d, { cLoadUrl: a } = je(e), b = pe.local.getItem("token") || "Bearer iking", P = _("sys");
|
|
2226
2232
|
function B(c) {
|
|
2227
2233
|
try {
|
|
2228
2234
|
const y = window.location.search;
|
|
@@ -2315,7 +2321,7 @@ const Hl = {
|
|
|
2315
2321
|
},
|
|
2316
2322
|
...e.pickerConfig
|
|
2317
2323
|
};
|
|
2318
|
-
}), O = _(null),
|
|
2324
|
+
}), O = _(null), u = (c) => {
|
|
2319
2325
|
O.value = c;
|
|
2320
2326
|
}, h = (c) => {
|
|
2321
2327
|
const { oldIndex: y, newIndex: t } = c;
|
|
@@ -2402,7 +2408,7 @@ const Hl = {
|
|
|
2402
2408
|
[
|
|
2403
2409
|
g(" 没有审批人,并且有指定默认审批方式 "),
|
|
2404
2410
|
n("span", null, [
|
|
2405
|
-
y[0] || (y[0] =
|
|
2411
|
+
y[0] || (y[0] = J(
|
|
2406
2412
|
" 未找到审批人,",
|
|
2407
2413
|
-1
|
|
2408
2414
|
/* CACHED */
|
|
@@ -2446,7 +2452,7 @@ const Hl = {
|
|
|
2446
2452
|
"ghost-class": "ghost-item",
|
|
2447
2453
|
"chosen-class": "chosen-item",
|
|
2448
2454
|
"drag-class": "drag-item",
|
|
2449
|
-
onStart: (V) =>
|
|
2455
|
+
onStart: (V) => u(v[r.defaultFile.approvePersonList]),
|
|
2450
2456
|
onEnd: h,
|
|
2451
2457
|
class: "draggable-container"
|
|
2452
2458
|
}, {
|