iking-web-ui-pro 1.2.4 → 1.2.5
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 +158 -155
- package/dist/IkApprovalProcessDetail/ik.index.es.js +126 -123
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +4 -4
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +3 -3
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +162 -159
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +2 -2
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +122 -119
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +121 -118
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkDragList/ik.index.es.js +1 -1
- package/dist/IkDragList/iking-web-ui-pro.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +6 -6
- package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +11 -11
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkHorizontalStepBar/ik.index.es.js +1 -1
- package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +1 -1
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkImageUploadEditor/ik.index.es.js +127 -124
- package/dist/IkImageUploadEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +1 -1
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +239 -236
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPageTabs/ik.index.es.js +1 -1
- package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +233 -230
- package/dist/IkPlayer/ik.index.es.js +103 -100
- package/dist/IkPreviewFile/ik.index.es.js +110 -107
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +90 -87
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkPrint/ik.index.es.js +1 -1
- package/dist/IkPrint/iking-web-ui-pro.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +2 -2
- package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +213 -210
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkSearchHead/ik.index.es.js +1 -1
- package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +22 -22
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +42 -39
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatu/ik.index.es.js +4 -4
- package/dist/IkStatu/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +2 -2
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +16 -16
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTinymce/ik.index.es.js +9005 -9004
- package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +13 -13
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1419 -1416
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +423 -421
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +2 -2
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/Provider/ik.index.es.js +14 -10
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-CSH3eGvq.mjs → index-DTIv4saG.mjs} +14602 -14598
- package/dist/{index.es-AZOLYppY.mjs → index.es-DJTszikI.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +170 -170
- package/dist/{jspdf.es.min-WuSENyiA.mjs → jspdf.es.min-CB6UoKKF.mjs} +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +2 -2
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +2 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +15 -0
- package/dist/src/utils/use-provider.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { ikStore as
|
|
1
|
+
import { inject as re, computed as I, createElementBlock as f, openBlock as s, createElementVNode as n, defineComponent as ce, resolveComponent as te, createBlock as E, createCommentVNode as g, toDisplayString as T, ref as _, watch as J, Fragment as N, createVNode as C, unref as k, withCtx as S, createTextVNode as ee, renderList as Q, normalizeClass as pe, toRef as st, reactive as Te, nextTick as Le, watchEffect as Ee, normalizeStyle as Fe, withDirectives as ye, withModifiers as Ae, vShow as ot, mergeProps as Ve } from "vue";
|
|
2
|
+
import { ikStore as ue, _ as z } from "iking-utils-pro";
|
|
3
3
|
import Re from "vuedraggable";
|
|
4
|
-
import { ElCheckbox as
|
|
4
|
+
import { ElCheckbox as de, ElCheckboxGroup as be, ElRadioGroup as Ce, ElRadio as Ue, ElDialog as nt, ElInput as it, ElBreadcrumb as rt, ElBreadcrumbItem as pt, vLoading as Pe, ElButton as ke } from "element-plus";
|
|
5
5
|
import ut from "axios";
|
|
6
|
-
const Me = (
|
|
7
|
-
for (const l of [
|
|
6
|
+
const Me = (u, v) => (u.install = (e) => {
|
|
7
|
+
for (const l of [u, ...Object.values({})])
|
|
8
8
|
e.component(l.name, l);
|
|
9
|
-
},
|
|
10
|
-
const e =
|
|
9
|
+
}, u), X = (u, v) => {
|
|
10
|
+
const e = u.__vccOpts || u;
|
|
11
11
|
for (const [l, b] of v)
|
|
12
12
|
e[l] = b;
|
|
13
13
|
return e;
|
|
14
|
-
}, dt = (
|
|
14
|
+
}, dt = (u, v) => {
|
|
15
15
|
if (!v) return "";
|
|
16
16
|
const e = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
|
|
17
|
-
return v.startsWith("http") ? v.replace(e, "$1$2") : `${
|
|
18
|
-
}, ct = (
|
|
17
|
+
return v.startsWith("http") ? v.replace(e, "$1$2") : `${u || location.origin}${v}`.replace(e, "$1$2");
|
|
18
|
+
}, ct = (u) => ({
|
|
19
19
|
// ================all================
|
|
20
20
|
nodeType: {
|
|
21
21
|
发起人节点: "INITIATOR",
|
|
@@ -27,7 +27,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
27
27
|
结束节点: "END",
|
|
28
28
|
并行分支: "PARALLEL",
|
|
29
29
|
子流程: "SUB_PROCESS",
|
|
30
|
-
...
|
|
30
|
+
...u.defaultNodeType
|
|
31
31
|
},
|
|
32
32
|
defaultFile: {
|
|
33
33
|
id: "id",
|
|
@@ -75,7 +75,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
75
75
|
singleApproval: "singleApproval",
|
|
76
76
|
//是否单选
|
|
77
77
|
originator: "username",
|
|
78
|
-
...
|
|
78
|
+
...u.defaultFieldMap
|
|
79
79
|
},
|
|
80
80
|
// ================approval================
|
|
81
81
|
statusWithoutApprover: {
|
|
@@ -83,7 +83,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
83
83
|
自动拒绝: "AUTO_REJECT",
|
|
84
84
|
自动转交管理员: "TRANSMIT_TO_MANAGER",
|
|
85
85
|
指定人员审批: "SPECIFIED_USER",
|
|
86
|
-
...
|
|
86
|
+
...u.statusWithoutApprover
|
|
87
87
|
},
|
|
88
88
|
multiple: !1,
|
|
89
89
|
chooseType: [],
|
|
@@ -100,25 +100,25 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
100
100
|
评论: "COMMENT",
|
|
101
101
|
待执行: "WAITING",
|
|
102
102
|
执行中: "RUNNING",
|
|
103
|
-
...
|
|
103
|
+
...u.defaultStatus
|
|
104
104
|
},
|
|
105
105
|
listData: []
|
|
106
|
-
}), ft = (
|
|
106
|
+
}), ft = (u, v, e) => {
|
|
107
107
|
let l = "";
|
|
108
108
|
switch (v) {
|
|
109
|
-
case
|
|
109
|
+
case u.nodeType.审批节点:
|
|
110
110
|
e && e.length == 1 ? l = "ikapprove-ziyuan" : l = "ikapprove-shenpi";
|
|
111
111
|
break;
|
|
112
|
-
case
|
|
112
|
+
case u.nodeType.办理节点:
|
|
113
113
|
l = "ikapprove-bianji";
|
|
114
114
|
break;
|
|
115
|
-
case
|
|
115
|
+
case u.nodeType.抄送节点:
|
|
116
116
|
l = "ikapprove-chaosong";
|
|
117
117
|
break;
|
|
118
|
-
case
|
|
118
|
+
case u.nodeType.并行分支:
|
|
119
119
|
l = "ikapprove-fenzhi";
|
|
120
120
|
break;
|
|
121
|
-
case
|
|
121
|
+
case u.nodeType.子流程:
|
|
122
122
|
l = "ikapprove-ziliucheng1";
|
|
123
123
|
break;
|
|
124
124
|
default:
|
|
@@ -180,15 +180,18 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
180
180
|
"mp4",
|
|
181
181
|
"flv",
|
|
182
182
|
"tls"
|
|
183
|
-
], We = (
|
|
184
|
-
const v =
|
|
183
|
+
], We = (u) => {
|
|
184
|
+
const v = re("loadUrl"), e = I(() => u.loadUrl || u.fileUrl || (v == null ? void 0 : v.value)), l = re("uploadUrl"), b = I(() => u.action || u.uploadUrl || (l == null ? void 0 : l.value)), P = re("token"), w = I(() => u.token || (P == null ? void 0 : P.value)), B = re("header"), p = I(() => u.header || (B == null ? void 0 : B.value) || {
|
|
185
|
+
Authorization: w.value
|
|
186
|
+
}), F = re("onlyofficeConfig"), D = I(() => u.onlyofficeConfig || (F == null ? void 0 : F.value)), R = re("userInfo"), m = I(() => u.userInfo || (R == null ? void 0 : R.value)), o = [...De, ...De.map((r) => r.toLocaleUpperCase())];
|
|
185
187
|
return {
|
|
186
188
|
cLoadUrl: e,
|
|
187
189
|
cUploadUrl: b,
|
|
188
190
|
cToken: w,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
cHeader: p,
|
|
192
|
+
cOnlyofficeConfig: D,
|
|
193
|
+
cUserInfo: m,
|
|
194
|
+
cOnlyofficePreviewType: o
|
|
192
195
|
};
|
|
193
196
|
}, At = {}, vt = {
|
|
194
197
|
t: "1672194715727",
|
|
@@ -197,7 +200,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
197
200
|
version: "1.1",
|
|
198
201
|
"p-id": "2667"
|
|
199
202
|
};
|
|
200
|
-
function ht(
|
|
203
|
+
function ht(u, v) {
|
|
201
204
|
return s(), f("svg", vt, [...v[0] || (v[0] = [
|
|
202
205
|
n(
|
|
203
206
|
"path",
|
|
@@ -233,7 +236,7 @@ const yt = /* @__PURE__ */ X(At, [["render", ht]]), mt = {}, gt = {
|
|
|
233
236
|
width: "200",
|
|
234
237
|
height: "200"
|
|
235
238
|
};
|
|
236
|
-
function xt(
|
|
239
|
+
function xt(u, v) {
|
|
237
240
|
return s(), f("svg", gt, [...v[0] || (v[0] = [
|
|
238
241
|
n(
|
|
239
242
|
"path",
|
|
@@ -269,7 +272,7 @@ const Ot = /* @__PURE__ */ X(mt, [["render", xt]]), Pt = {}, kt = {
|
|
|
269
272
|
width: "200",
|
|
270
273
|
height: "200"
|
|
271
274
|
};
|
|
272
|
-
function Tt(
|
|
275
|
+
function Tt(u, v) {
|
|
273
276
|
return s(), f("svg", kt, [...v[0] || (v[0] = [
|
|
274
277
|
n(
|
|
275
278
|
"path",
|
|
@@ -305,7 +308,7 @@ const Lt = /* @__PURE__ */ X(Pt, [["render", Tt]]), bt = {}, Ct = {
|
|
|
305
308
|
width: "200",
|
|
306
309
|
height: "200"
|
|
307
310
|
};
|
|
308
|
-
function Ut(
|
|
311
|
+
function Ut(u, v) {
|
|
309
312
|
return s(), f("svg", Ct, [...v[0] || (v[0] = [
|
|
310
313
|
n(
|
|
311
314
|
"path",
|
|
@@ -341,7 +344,7 @@ const St = /* @__PURE__ */ X(bt, [["render", Ut]]), wt = {}, Bt = {
|
|
|
341
344
|
width: "200",
|
|
342
345
|
height: "200"
|
|
343
346
|
};
|
|
344
|
-
function _t(
|
|
347
|
+
function _t(u, v) {
|
|
345
348
|
return s(), f("svg", Bt, [...v[0] || (v[0] = [
|
|
346
349
|
n(
|
|
347
350
|
"path",
|
|
@@ -373,7 +376,7 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
373
376
|
}, Dt = {
|
|
374
377
|
key: 1,
|
|
375
378
|
class: "avatar_name"
|
|
376
|
-
}, Nt = /* @__PURE__ */
|
|
379
|
+
}, Nt = /* @__PURE__ */ ce({
|
|
377
380
|
__name: "Avatar",
|
|
378
381
|
props: {
|
|
379
382
|
fixPropOpt: {
|
|
@@ -396,20 +399,20 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
396
399
|
default: ""
|
|
397
400
|
}
|
|
398
401
|
},
|
|
399
|
-
setup(
|
|
400
|
-
const v =
|
|
402
|
+
setup(u) {
|
|
403
|
+
const v = u, { cLoadUrl: e } = We(v), l = (b) => dt(e.value, b);
|
|
401
404
|
return (b, P) => {
|
|
402
405
|
const w = te("el-avatar");
|
|
403
406
|
return s(), f("div", Et, [
|
|
404
|
-
v.fixTypeOpt.group ===
|
|
405
|
-
|
|
407
|
+
v.fixTypeOpt.group === u.element[v.fixPropOpt.type] ? (s(), E(It, { key: 0 })) : v.fixTypeOpt.role === u.element[v.fixPropOpt.type] ? (s(), E(Lt, { key: 1 })) : v.fixTypeOpt.post === u.element[v.fixPropOpt.type] ? (s(), E(St, { key: 2 })) : v.fixTypeOpt.user === u.element[v.fixPropOpt.type] ? (s(), f("div", Vt, [
|
|
408
|
+
u.element[u.fixPropOpt.avatar] ? (s(), E(w, {
|
|
406
409
|
key: 0,
|
|
407
410
|
shape: "square",
|
|
408
|
-
src: l(
|
|
411
|
+
src: l(u.fixPropOpt.avatar ? u.element[u.fixPropOpt.avatar] : "")
|
|
409
412
|
}, null, 8, ["src"])) : (s(), f(
|
|
410
413
|
"div",
|
|
411
414
|
Dt,
|
|
412
|
-
T(
|
|
415
|
+
T(u.element[u.fixPropOpt.name].slice(-2)),
|
|
413
416
|
1
|
|
414
417
|
/* TEXT */
|
|
415
418
|
))
|
|
@@ -499,13 +502,13 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
499
502
|
}, il = ["onClick"], rl = {
|
|
500
503
|
key: 1,
|
|
501
504
|
class: "empty"
|
|
502
|
-
}, pl = /* @__PURE__ */
|
|
505
|
+
}, pl = /* @__PURE__ */ ce({
|
|
503
506
|
__name: "GroupList",
|
|
504
507
|
props: we,
|
|
505
508
|
emits: ["change", "check", "handChild"],
|
|
506
|
-
setup(
|
|
509
|
+
setup(u, { emit: v }) {
|
|
507
510
|
var m, o;
|
|
508
|
-
const e =
|
|
511
|
+
const e = u, l = _(!1);
|
|
509
512
|
J(
|
|
510
513
|
() => e.handList,
|
|
511
514
|
() => {
|
|
@@ -515,10 +518,10 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
515
518
|
return;
|
|
516
519
|
}
|
|
517
520
|
const r = e.list.filter(
|
|
518
|
-
(
|
|
521
|
+
(d) => e.chooseType.includes(d[e.fixPropOpt.type].toLowerCase())
|
|
519
522
|
).every(
|
|
520
|
-
(
|
|
521
|
-
(h) => h[e.fixPropOpt.id] ===
|
|
523
|
+
(d) => e.handList.some(
|
|
524
|
+
(h) => h[e.fixPropOpt.id] === d[e.fixPropOpt.id]
|
|
522
525
|
)
|
|
523
526
|
);
|
|
524
527
|
l.value = r;
|
|
@@ -526,10 +529,10 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
526
529
|
{ immediate: !0 }
|
|
527
530
|
);
|
|
528
531
|
const b = I(() => {
|
|
529
|
-
var
|
|
530
|
-
const r = (
|
|
532
|
+
var d, h, c;
|
|
533
|
+
const r = (d = e.handList.filter(
|
|
531
534
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
532
|
-
)) == null ? void 0 :
|
|
535
|
+
)) == null ? void 0 : d.length, O = e.list.filter(
|
|
533
536
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
534
537
|
).every(
|
|
535
538
|
(y) => e.handList.some(
|
|
@@ -540,9 +543,9 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
540
543
|
}), P = _(
|
|
541
544
|
e.handList.map((r) => r[e.fixPropOpt.id])
|
|
542
545
|
), w = _((o = (m = e.handList) == null ? void 0 : m[0]) == null ? void 0 : o[e.fixPropOpt.id]), B = v, p = (r) => {
|
|
543
|
-
const O = r ? e.list.map((
|
|
544
|
-
if (e.chooseType.includes(
|
|
545
|
-
return
|
|
546
|
+
const O = r ? e.list.map((d) => {
|
|
547
|
+
if (e.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) && d.available !== !1)
|
|
548
|
+
return d[e.fixPropOpt.id];
|
|
546
549
|
}) : [];
|
|
547
550
|
B("change", O, r ? e.list : []);
|
|
548
551
|
}, F = (r) => {
|
|
@@ -553,14 +556,14 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
553
556
|
O || B("handChild", r);
|
|
554
557
|
};
|
|
555
558
|
return (r, O) => {
|
|
556
|
-
const
|
|
559
|
+
const d = te("el-scrollbar");
|
|
557
560
|
return s(), f(
|
|
558
561
|
N,
|
|
559
562
|
null,
|
|
560
563
|
[
|
|
561
564
|
g(" 遍历list多选 "),
|
|
562
565
|
n("div", Ft, [
|
|
563
|
-
r.multiple && r.list && r.list.length ? (s(), E(k(
|
|
566
|
+
r.multiple && r.list && r.list.length ? (s(), E(k(de), {
|
|
564
567
|
key: 0,
|
|
565
568
|
modelValue: l.value,
|
|
566
569
|
"onUpdate:modelValue": O[0] || (O[0] = (h) => l.value = h),
|
|
@@ -577,7 +580,7 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
577
580
|
_: 1
|
|
578
581
|
/* STABLE */
|
|
579
582
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
580
|
-
C(
|
|
583
|
+
C(d, null, {
|
|
581
584
|
default: S(() => [
|
|
582
585
|
r.list && r.list.length ? (s(), f("ul", Rt, [
|
|
583
586
|
r.multiple ? (s(), E(k(be), {
|
|
@@ -597,7 +600,7 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
597
600
|
}, [
|
|
598
601
|
r.chooseType.includes(
|
|
599
602
|
h[e.fixPropOpt.type].toLowerCase()
|
|
600
|
-
) && h.available !== !1 ? (s(), E(k(
|
|
603
|
+
) && h.available !== !1 ? (s(), E(k(de), {
|
|
601
604
|
key: 0,
|
|
602
605
|
label: h[e.fixPropOpt.id],
|
|
603
606
|
disabled: h.available === !1
|
|
@@ -667,7 +670,7 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
667
670
|
])),
|
|
668
671
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), f("span", {
|
|
669
672
|
key: 2,
|
|
670
|
-
class:
|
|
673
|
+
class: pe(["nextLevel", {
|
|
671
674
|
"is-disabled": (c = P.value) == null ? void 0 : c.find(
|
|
672
675
|
(y) => y === h[e.fixPropOpt.id]
|
|
673
676
|
)
|
|
@@ -776,7 +779,7 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
776
779
|
])),
|
|
777
780
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), f("span", {
|
|
778
781
|
key: 2,
|
|
779
|
-
class:
|
|
782
|
+
class: pe(["nextLevel", {
|
|
780
783
|
"is-disabled": (c = P.value) == null ? void 0 : c.find(
|
|
781
784
|
(y) => y === h[e.fixPropOpt.id]
|
|
782
785
|
)
|
|
@@ -840,18 +843,18 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
840
843
|
}, xl = { class: "iconBox" }, Ol = { class: "title" }, Pl = {
|
|
841
844
|
key: 1,
|
|
842
845
|
class: "empty"
|
|
843
|
-
}, kl = /* @__PURE__ */
|
|
846
|
+
}, kl = /* @__PURE__ */ ce({
|
|
844
847
|
__name: "PostList",
|
|
845
848
|
props: we,
|
|
846
849
|
emits: ["change", "check"],
|
|
847
|
-
setup(
|
|
850
|
+
setup(u, { emit: v }) {
|
|
848
851
|
var R, m;
|
|
849
|
-
const e =
|
|
852
|
+
const e = u, l = I(() => {
|
|
850
853
|
var o, r;
|
|
851
854
|
return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
|
|
852
855
|
}), b = I(() => {
|
|
853
|
-
var O,
|
|
854
|
-
const o = (O = e.handList) == null ? void 0 : O.length, r = (
|
|
856
|
+
var O, d, h, c;
|
|
857
|
+
const o = (O = e.handList) == null ? void 0 : O.length, r = (d = e.list) == null ? void 0 : d.length;
|
|
855
858
|
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
|
|
856
859
|
}), P = _(
|
|
857
860
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
@@ -871,10 +874,10 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
871
874
|
[
|
|
872
875
|
g(" 遍历list多选 "),
|
|
873
876
|
n("div", dl, [
|
|
874
|
-
o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(), E(k(
|
|
877
|
+
o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(), E(k(de), {
|
|
875
878
|
key: 0,
|
|
876
879
|
modelValue: l.value,
|
|
877
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
880
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => l.value = d),
|
|
878
881
|
indeterminate: b.value,
|
|
879
882
|
onChange: p
|
|
880
883
|
}, {
|
|
@@ -894,33 +897,33 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
894
897
|
o.multiple ? (s(), E(k(be), {
|
|
895
898
|
key: 0,
|
|
896
899
|
modelValue: P.value,
|
|
897
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
900
|
+
"onUpdate:modelValue": r[1] || (r[1] = (d) => P.value = d),
|
|
898
901
|
onChange: F
|
|
899
902
|
}, {
|
|
900
903
|
default: S(() => [
|
|
901
904
|
(s(!0), f(
|
|
902
905
|
N,
|
|
903
906
|
null,
|
|
904
|
-
Q(o.list, (
|
|
905
|
-
key:
|
|
907
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
908
|
+
key: d[e.fixPropOpt.id]
|
|
906
909
|
}, [
|
|
907
|
-
o.chooseType.includes(
|
|
910
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(de), {
|
|
908
911
|
key: 0,
|
|
909
|
-
label:
|
|
912
|
+
label: d[e.fixPropOpt.id]
|
|
910
913
|
}, {
|
|
911
914
|
default: S(() => [
|
|
912
915
|
n("div", fl, [
|
|
913
916
|
C(H, {
|
|
914
917
|
fixTypeOpt: e.fixTypeOpt,
|
|
915
918
|
fixPropOpt: e.fixPropOpt,
|
|
916
|
-
element:
|
|
919
|
+
element: d,
|
|
917
920
|
imageBaseUrl: e.imageBaseUrl
|
|
918
921
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
919
922
|
]),
|
|
920
923
|
n(
|
|
921
924
|
"p",
|
|
922
925
|
null,
|
|
923
|
-
T(
|
|
926
|
+
T(d[e.fixPropOpt.name]),
|
|
924
927
|
1
|
|
925
928
|
/* TEXT */
|
|
926
929
|
)
|
|
@@ -939,14 +942,14 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
939
942
|
C(H, {
|
|
940
943
|
fixTypeOpt: e.fixTypeOpt,
|
|
941
944
|
fixPropOpt: e.fixPropOpt,
|
|
942
|
-
element:
|
|
945
|
+
element: d,
|
|
943
946
|
imageBaseUrl: e.imageBaseUrl
|
|
944
947
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
945
948
|
]),
|
|
946
949
|
n(
|
|
947
950
|
"div",
|
|
948
951
|
hl,
|
|
949
|
-
T(
|
|
952
|
+
T(d[e.fixPropOpt.name]),
|
|
950
953
|
1
|
|
951
954
|
/* TEXT */
|
|
952
955
|
)
|
|
@@ -962,20 +965,20 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
962
965
|
key: 1,
|
|
963
966
|
isIndeterminate: b.value,
|
|
964
967
|
modelValue: w.value,
|
|
965
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
968
|
+
"onUpdate:modelValue": r[2] || (r[2] = (d) => w.value = d),
|
|
966
969
|
onChange: D
|
|
967
970
|
}, {
|
|
968
971
|
default: S(() => [
|
|
969
972
|
(s(!0), f(
|
|
970
973
|
N,
|
|
971
974
|
null,
|
|
972
|
-
Q(o.list, (
|
|
975
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
973
976
|
class: "w-full",
|
|
974
|
-
key:
|
|
977
|
+
key: d[e.fixPropOpt.id]
|
|
975
978
|
}, [
|
|
976
|
-
o.chooseType.includes(
|
|
979
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(Ue), {
|
|
977
980
|
key: 0,
|
|
978
|
-
label:
|
|
981
|
+
label: d[e.fixPropOpt.id]
|
|
979
982
|
}, {
|
|
980
983
|
default: S(() => [
|
|
981
984
|
n("div", yl, [
|
|
@@ -983,14 +986,14 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
983
986
|
C(H, {
|
|
984
987
|
fixTypeOpt: e.fixTypeOpt,
|
|
985
988
|
fixPropOpt: e.fixPropOpt,
|
|
986
|
-
element:
|
|
989
|
+
element: d,
|
|
987
990
|
imageBaseUrl: e.imageBaseUrl
|
|
988
991
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
989
992
|
]),
|
|
990
993
|
n(
|
|
991
994
|
"p",
|
|
992
995
|
null,
|
|
993
|
-
T(
|
|
996
|
+
T(d[e.fixPropOpt.name]),
|
|
994
997
|
1
|
|
995
998
|
/* TEXT */
|
|
996
999
|
)
|
|
@@ -1010,14 +1013,14 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1010
1013
|
C(H, {
|
|
1011
1014
|
fixTypeOpt: e.fixTypeOpt,
|
|
1012
1015
|
fixPropOpt: e.fixPropOpt,
|
|
1013
|
-
element:
|
|
1016
|
+
element: d,
|
|
1014
1017
|
imageBaseUrl: e.imageBaseUrl
|
|
1015
1018
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1016
1019
|
]),
|
|
1017
1020
|
n(
|
|
1018
1021
|
"div",
|
|
1019
1022
|
Ol,
|
|
1020
|
-
T(
|
|
1023
|
+
T(d[e.fixPropOpt.name]),
|
|
1021
1024
|
1
|
|
1022
1025
|
/* TEXT */
|
|
1023
1026
|
)
|
|
@@ -1072,18 +1075,18 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1072
1075
|
}, Dl = { class: "iconBox" }, Nl = ["title"], Fl = {
|
|
1073
1076
|
key: 1,
|
|
1074
1077
|
class: "empty"
|
|
1075
|
-
}, Rl = /* @__PURE__ */
|
|
1078
|
+
}, Rl = /* @__PURE__ */ ce({
|
|
1076
1079
|
__name: "RoleList",
|
|
1077
1080
|
props: we,
|
|
1078
1081
|
emits: ["change", "check"],
|
|
1079
|
-
setup(
|
|
1082
|
+
setup(u, { emit: v }) {
|
|
1080
1083
|
var R, m;
|
|
1081
|
-
const e =
|
|
1084
|
+
const e = u, l = I(() => {
|
|
1082
1085
|
var o, r;
|
|
1083
1086
|
return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
|
|
1084
1087
|
}), b = I(() => {
|
|
1085
|
-
var O,
|
|
1086
|
-
const o = (O = e.handList) == null ? void 0 : O.length, r = (
|
|
1088
|
+
var O, d, h, c;
|
|
1089
|
+
const o = (O = e.handList) == null ? void 0 : O.length, r = (d = e.list) == null ? void 0 : d.length;
|
|
1087
1090
|
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
|
|
1088
1091
|
}), P = _(
|
|
1089
1092
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
@@ -1103,10 +1106,10 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1103
1106
|
[
|
|
1104
1107
|
g(" 遍历list多选 "),
|
|
1105
1108
|
n("div", Ll, [
|
|
1106
|
-
o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(), E(k(
|
|
1109
|
+
o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(), E(k(de), {
|
|
1107
1110
|
key: 0,
|
|
1108
1111
|
modelValue: l.value,
|
|
1109
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1112
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => l.value = d),
|
|
1110
1113
|
indeterminate: b.value,
|
|
1111
1114
|
onChange: p
|
|
1112
1115
|
}, {
|
|
@@ -1126,34 +1129,34 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1126
1129
|
o.multiple ? (s(), E(k(be), {
|
|
1127
1130
|
key: 0,
|
|
1128
1131
|
modelValue: P.value,
|
|
1129
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1132
|
+
"onUpdate:modelValue": r[1] || (r[1] = (d) => P.value = d),
|
|
1130
1133
|
onChange: F
|
|
1131
1134
|
}, {
|
|
1132
1135
|
default: S(() => [
|
|
1133
1136
|
(s(!0), f(
|
|
1134
1137
|
N,
|
|
1135
1138
|
null,
|
|
1136
|
-
Q(o.list, (
|
|
1137
|
-
key:
|
|
1139
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
1140
|
+
key: d[o.fixPropOpt.id]
|
|
1138
1141
|
}, [
|
|
1139
|
-
o.chooseType.includes(
|
|
1142
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(de), {
|
|
1140
1143
|
key: 0,
|
|
1141
|
-
label:
|
|
1142
|
-
value:
|
|
1143
|
-
disabled:
|
|
1144
|
+
label: d[o.fixPropOpt.id],
|
|
1145
|
+
value: d[o.fixPropOpt.id],
|
|
1146
|
+
disabled: d.disabled
|
|
1144
1147
|
}, {
|
|
1145
1148
|
default: S(() => [
|
|
1146
1149
|
n("div", Cl, [
|
|
1147
1150
|
C(H, {
|
|
1148
1151
|
fixTypeOpt: e.fixTypeOpt,
|
|
1149
1152
|
fixPropOpt: e.fixPropOpt,
|
|
1150
|
-
element:
|
|
1153
|
+
element: d,
|
|
1151
1154
|
imageBaseUrl: e.imageBaseUrl
|
|
1152
1155
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1153
1156
|
]),
|
|
1154
1157
|
n("p", {
|
|
1155
|
-
title:
|
|
1156
|
-
}, T(
|
|
1158
|
+
title: d[o.fixPropOpt.name]
|
|
1159
|
+
}, T(d[o.fixPropOpt.name]), 9, Ul)
|
|
1157
1160
|
]),
|
|
1158
1161
|
_: 2
|
|
1159
1162
|
/* DYNAMIC */
|
|
@@ -1169,14 +1172,14 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1169
1172
|
C(H, {
|
|
1170
1173
|
fixTypeOpt: e.fixTypeOpt,
|
|
1171
1174
|
fixPropOpt: e.fixPropOpt,
|
|
1172
|
-
element:
|
|
1175
|
+
element: d,
|
|
1173
1176
|
imageBaseUrl: e.imageBaseUrl
|
|
1174
1177
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1175
1178
|
]),
|
|
1176
1179
|
n("div", {
|
|
1177
1180
|
class: "title",
|
|
1178
|
-
title:
|
|
1179
|
-
}, T(
|
|
1181
|
+
title: d[o.fixPropOpt.name]
|
|
1182
|
+
}, T(d[o.fixPropOpt.name]), 9, Bl)
|
|
1180
1183
|
]))
|
|
1181
1184
|
]))),
|
|
1182
1185
|
128
|
|
@@ -1189,22 +1192,22 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1189
1192
|
key: 1,
|
|
1190
1193
|
indeterminate: b.value,
|
|
1191
1194
|
modelValue: w.value,
|
|
1192
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1195
|
+
"onUpdate:modelValue": r[2] || (r[2] = (d) => w.value = d),
|
|
1193
1196
|
onChange: D
|
|
1194
1197
|
}, {
|
|
1195
1198
|
default: S(() => [
|
|
1196
1199
|
(s(!0), f(
|
|
1197
1200
|
N,
|
|
1198
1201
|
null,
|
|
1199
|
-
Q(o.list, (
|
|
1202
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
1200
1203
|
class: "w-full",
|
|
1201
|
-
key:
|
|
1204
|
+
key: d[o.fixPropOpt.id]
|
|
1202
1205
|
}, [
|
|
1203
|
-
o.chooseType.includes(
|
|
1206
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(Ue), {
|
|
1204
1207
|
key: 0,
|
|
1205
|
-
label:
|
|
1206
|
-
value:
|
|
1207
|
-
disabled:
|
|
1208
|
+
label: d[o.fixPropOpt.id],
|
|
1209
|
+
value: d[o.fixPropOpt.id],
|
|
1210
|
+
disabled: d.disabled
|
|
1208
1211
|
}, {
|
|
1209
1212
|
default: S(() => [
|
|
1210
1213
|
n("div", _l, [
|
|
@@ -1212,13 +1215,13 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1212
1215
|
C(H, {
|
|
1213
1216
|
fixTypeOpt: e.fixTypeOpt,
|
|
1214
1217
|
fixPropOpt: e.fixPropOpt,
|
|
1215
|
-
element:
|
|
1218
|
+
element: d,
|
|
1216
1219
|
imageBaseUrl: e.imageBaseUrl
|
|
1217
1220
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1218
1221
|
]),
|
|
1219
1222
|
n("p", {
|
|
1220
|
-
title:
|
|
1221
|
-
}, T(
|
|
1223
|
+
title: d[o.fixPropOpt.name]
|
|
1224
|
+
}, T(d[o.fixPropOpt.name]), 9, El)
|
|
1222
1225
|
])
|
|
1223
1226
|
]),
|
|
1224
1227
|
_: 2
|
|
@@ -1235,14 +1238,14 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1235
1238
|
C(H, {
|
|
1236
1239
|
fixTypeOpt: e.fixTypeOpt,
|
|
1237
1240
|
fixPropOpt: e.fixPropOpt,
|
|
1238
|
-
element:
|
|
1241
|
+
element: d,
|
|
1239
1242
|
imageBaseUrl: e.imageBaseUrl
|
|
1240
1243
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1241
1244
|
]),
|
|
1242
1245
|
n("div", {
|
|
1243
1246
|
class: "title",
|
|
1244
|
-
title:
|
|
1245
|
-
}, T(
|
|
1247
|
+
title: d[o.fixPropOpt.name]
|
|
1248
|
+
}, T(d[o.fixPropOpt.name]), 9, Nl)
|
|
1246
1249
|
]))
|
|
1247
1250
|
]))),
|
|
1248
1251
|
128
|
|
@@ -1283,7 +1286,7 @@ const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt
|
|
|
1283
1286
|
};
|
|
1284
1287
|
}
|
|
1285
1288
|
}), Ml = /* @__PURE__ */ X(Rl, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1286
|
-
var ve = /* @__PURE__ */ ((
|
|
1289
|
+
var ve = /* @__PURE__ */ ((u) => (u.group = "group", u.role = "role", u.post = "post", u))(ve || {});
|
|
1287
1290
|
const Wl = {
|
|
1288
1291
|
// 是否允许选择子集
|
|
1289
1292
|
children: {
|
|
@@ -1376,10 +1379,10 @@ const Wl = {
|
|
|
1376
1379
|
tabs: {
|
|
1377
1380
|
type: Array,
|
|
1378
1381
|
// prop校验
|
|
1379
|
-
validator: (
|
|
1380
|
-
if (
|
|
1381
|
-
if (Array.isArray(
|
|
1382
|
-
if (!(
|
|
1382
|
+
validator: (u) => {
|
|
1383
|
+
if (u === void 0) return !0;
|
|
1384
|
+
if (Array.isArray(u)) {
|
|
1385
|
+
if (!(u != null && u.length))
|
|
1383
1386
|
return !1;
|
|
1384
1387
|
} else return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
|
|
1385
1388
|
return !0;
|
|
@@ -1457,28 +1460,28 @@ const Wl = {
|
|
|
1457
1460
|
type: Boolean,
|
|
1458
1461
|
default: !1
|
|
1459
1462
|
}
|
|
1460
|
-
}, Ne = (
|
|
1463
|
+
}, Ne = (u) => {
|
|
1461
1464
|
const v = window.location.search;
|
|
1462
|
-
return new URLSearchParams(v).get(
|
|
1463
|
-
}, jl = (
|
|
1464
|
-
const v =
|
|
1465
|
-
v && (
|
|
1466
|
-
}, Hl = (
|
|
1465
|
+
return new URLSearchParams(v).get(u);
|
|
1466
|
+
}, jl = (u) => {
|
|
1467
|
+
const v = ue.local.getItem("x_domain");
|
|
1468
|
+
v && (u["X-DOMAIN"] = v);
|
|
1469
|
+
}, Hl = (u) => {
|
|
1467
1470
|
var e;
|
|
1468
1471
|
const v = Ne("domain");
|
|
1469
1472
|
if (v) {
|
|
1470
|
-
|
|
1473
|
+
u["X-DOMAIN"] = v;
|
|
1471
1474
|
const l = Ne("code");
|
|
1472
|
-
v === "APPLICATION" && (
|
|
1475
|
+
v === "APPLICATION" && (u["X-APP"] = l);
|
|
1473
1476
|
} else
|
|
1474
|
-
jl(
|
|
1475
|
-
(e =
|
|
1476
|
-
}, $l = (
|
|
1477
|
+
jl(u);
|
|
1478
|
+
(e = ue.local.getItem("tenant")) == null || e.code;
|
|
1479
|
+
}, $l = (u, v) => {
|
|
1477
1480
|
const e = _([]), l = async (P, w) => {
|
|
1478
1481
|
var M, W, $;
|
|
1479
|
-
const { url: B, methods: p, headers: F, param: D } =
|
|
1482
|
+
const { url: B, methods: p, headers: F, param: D } = u.value || {}, R = {
|
|
1480
1483
|
// 额外参数
|
|
1481
|
-
rootDepartmentId: ((M =
|
|
1484
|
+
rootDepartmentId: ((M = ue.local.getItem("now_shop")) == null ? void 0 : M.storeId) || "",
|
|
1482
1485
|
parentDepartmentId: P || "",
|
|
1483
1486
|
name: w || "",
|
|
1484
1487
|
rootDepartmentOnly: v.rootDepartmentOnly,
|
|
@@ -1505,7 +1508,7 @@ const Wl = {
|
|
|
1505
1508
|
rootDepartment: {}
|
|
1506
1509
|
};
|
|
1507
1510
|
const {
|
|
1508
|
-
departments:
|
|
1511
|
+
departments: d,
|
|
1509
1512
|
roles: h,
|
|
1510
1513
|
posts: c,
|
|
1511
1514
|
users: y,
|
|
@@ -1520,7 +1523,7 @@ const Wl = {
|
|
|
1520
1523
|
...G,
|
|
1521
1524
|
id: G.elementId
|
|
1522
1525
|
}), {
|
|
1523
|
-
groupList: z.cloneDeep(
|
|
1526
|
+
groupList: z.cloneDeep(d),
|
|
1524
1527
|
roleList: z.cloneDeep(h),
|
|
1525
1528
|
postList: z.cloneDeep(c),
|
|
1526
1529
|
userList: z.cloneDeep(y),
|
|
@@ -1538,12 +1541,12 @@ const Wl = {
|
|
|
1538
1541
|
}, Gl = {
|
|
1539
1542
|
shadow: "hover",
|
|
1540
1543
|
class: "sel-list"
|
|
1541
|
-
}, zl = { key: 0 }, Ql = { class: "choose-list" }, Xl = { class: "choose-item" }, ql = { class: "list-group-item draggable-item" }, Zl = { class: "item_info" }, Kl = { class: "avatar_box" }, Yl = { class: "dialog-footer" }, Jl = /* @__PURE__ */
|
|
1544
|
+
}, zl = { key: 0 }, Ql = { class: "choose-list" }, Xl = { class: "choose-item" }, ql = { class: "list-group-item draggable-item" }, Zl = { class: "item_info" }, Kl = { class: "avatar_box" }, Yl = { class: "dialog-footer" }, Jl = /* @__PURE__ */ ce({
|
|
1542
1545
|
__name: "picker",
|
|
1543
1546
|
props: Wl,
|
|
1544
1547
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1545
|
-
setup(
|
|
1546
|
-
const l =
|
|
1548
|
+
setup(u, { expose: v, emit: e }) {
|
|
1549
|
+
const l = u, b = _(""), P = _(""), w = _([]), B = _([]), p = _([]), F = _([]), D = _(!1), R = I(() => $.value.includes("user") ? B.value.concat(w.value) : B.value);
|
|
1547
1550
|
J(
|
|
1548
1551
|
() => l.api,
|
|
1549
1552
|
() => {
|
|
@@ -1562,15 +1565,15 @@ const Wl = {
|
|
|
1562
1565
|
post: "POST",
|
|
1563
1566
|
group: "DEPT",
|
|
1564
1567
|
...l.typeOption
|
|
1565
|
-
})), r = _([]), O = $l(st(l, "api"), l),
|
|
1566
|
-
l.immediate &&
|
|
1568
|
+
})), r = _([]), O = $l(st(l, "api"), l), d = O.handData, h = O.bannerList;
|
|
1569
|
+
l.immediate && d(P.value, b.value);
|
|
1567
1570
|
const c = (t) => (t.forEach((i) => {
|
|
1568
1571
|
var x, L;
|
|
1569
1572
|
i.disabled = ((L = (x = l.modelValue) == null ? void 0 : x.find(
|
|
1570
1573
|
(K) => K[m.value.id] === i[m.value.id]
|
|
1571
1574
|
)) == null ? void 0 : L.disabled) || !1;
|
|
1572
1575
|
}), t), y = async () => {
|
|
1573
|
-
var t, i, x, L, K, U,
|
|
1576
|
+
var t, i, x, L, K, U, fe, Oe;
|
|
1574
1577
|
D.value = !0;
|
|
1575
1578
|
try {
|
|
1576
1579
|
if ((t = l.groupList) != null && t.length || (i = l.userList) != null && i.length || (x = l.roleList) != null && x.length || (L = l.postList) != null && L.length) {
|
|
@@ -1578,14 +1581,14 @@ const Wl = {
|
|
|
1578
1581
|
(Y) => Y[m.value.name].includes(b.value)
|
|
1579
1582
|
), B.value = (U = l.groupList) == null ? void 0 : U.filter(
|
|
1580
1583
|
(Y) => Y[m.value.name].includes(b.value)
|
|
1581
|
-
), p.value = (
|
|
1584
|
+
), p.value = (fe = l.roleList) == null ? void 0 : fe.filter(
|
|
1582
1585
|
(Y) => Y[m.value.name].includes(b.value)
|
|
1583
1586
|
), F.value = (Oe = l.postList) == null ? void 0 : Oe.filter(
|
|
1584
1587
|
(Y) => Y[m.value.name].includes(b.value)
|
|
1585
1588
|
), ne(), D.value = !1;
|
|
1586
1589
|
return;
|
|
1587
1590
|
}
|
|
1588
|
-
const j = await
|
|
1591
|
+
const j = await d(P.value, b.value);
|
|
1589
1592
|
try {
|
|
1590
1593
|
w.value = c((j == null ? void 0 : j.userList) || []), B.value = c((j == null ? void 0 : j.groupList) || []), p.value = c((j == null ? void 0 : j.roleList) || []), F.value = c((j == null ? void 0 : j.postList) || []);
|
|
1591
1594
|
} catch (Y) {
|
|
@@ -1978,15 +1981,15 @@ const Wl = {
|
|
|
1978
1981
|
g(" 面包屑导航 "),
|
|
1979
1982
|
C(k(rt), {
|
|
1980
1983
|
separator: ">",
|
|
1981
|
-
class:
|
|
1984
|
+
class: pe(["banner", { "top-unlink": !t.topLink }])
|
|
1982
1985
|
}, {
|
|
1983
1986
|
default: S(() => [
|
|
1984
1987
|
(s(!0), f(
|
|
1985
1988
|
N,
|
|
1986
1989
|
null,
|
|
1987
|
-
Q(k(h), (U,
|
|
1990
|
+
Q(k(h), (U, fe) => (s(), E(k(pt), {
|
|
1988
1991
|
key: U[m.value.id],
|
|
1989
|
-
onClick: Ae((Oe) => Qe(U,
|
|
1992
|
+
onClick: Ae((Oe) => Qe(U, fe), ["stop"])
|
|
1990
1993
|
}, {
|
|
1991
1994
|
default: S(() => [
|
|
1992
1995
|
ee(
|
|
@@ -2152,7 +2155,7 @@ const Wl = {
|
|
|
2152
2155
|
g(" 删除按钮 "),
|
|
2153
2156
|
ye(C(Ot, {
|
|
2154
2157
|
class: "close",
|
|
2155
|
-
onClick: Ae((
|
|
2158
|
+
onClick: Ae((fe) => Be(U), ["stop"])
|
|
2156
2159
|
}, null, 8, ["onClick"]), [
|
|
2157
2160
|
[ot, !(U != null && U.readonly)]
|
|
2158
2161
|
])
|
|
@@ -2200,7 +2203,7 @@ const Wl = {
|
|
|
2200
2203
|
class: "node-branchs"
|
|
2201
2204
|
}, ka = { style: { flex: "1" } }, Ta = { class: "node-branch" }, La = {
|
|
2202
2205
|
name: "IkApprovalProcess"
|
|
2203
|
-
}, ba = /* @__PURE__ */
|
|
2206
|
+
}, ba = /* @__PURE__ */ ce({
|
|
2204
2207
|
...La,
|
|
2205
2208
|
props: {
|
|
2206
2209
|
// 选人组件请求地址
|
|
@@ -2238,8 +2241,8 @@ const Wl = {
|
|
|
2238
2241
|
default: () => ({})
|
|
2239
2242
|
}
|
|
2240
2243
|
},
|
|
2241
|
-
setup(
|
|
2242
|
-
const e =
|
|
2244
|
+
setup(u, { expose: v }) {
|
|
2245
|
+
const e = u, { cLoadUrl: l } = We(e), b = ue.local.getItem("token") || "Bearer iking", P = _("sys");
|
|
2243
2246
|
function w(c) {
|
|
2244
2247
|
try {
|
|
2245
2248
|
const y = window.location.search;
|
|
@@ -2251,7 +2254,7 @@ const Wl = {
|
|
|
2251
2254
|
function B() {
|
|
2252
2255
|
var c;
|
|
2253
2256
|
try {
|
|
2254
|
-
const y = w("xTenant") || ((c =
|
|
2257
|
+
const y = w("xTenant") || ((c = ue.local.getItem("tenant")) == null ? void 0 : c.code);
|
|
2255
2258
|
y && (P.value = y);
|
|
2256
2259
|
} catch {
|
|
2257
2260
|
}
|
|
@@ -2326,13 +2329,13 @@ const Wl = {
|
|
|
2326
2329
|
"X-Tenant": P.value
|
|
2327
2330
|
},
|
|
2328
2331
|
param: {
|
|
2329
|
-
rootDepartmentId: ((c =
|
|
2332
|
+
rootDepartmentId: ((c = ue.local.getItem("now_shop")) == null ? void 0 : c.storeId) || "",
|
|
2330
2333
|
rootDepartmentOnly: !1
|
|
2331
2334
|
}
|
|
2332
2335
|
},
|
|
2333
2336
|
...e.pickerConfig
|
|
2334
2337
|
};
|
|
2335
|
-
}), O = _(null),
|
|
2338
|
+
}), O = _(null), d = (c) => {
|
|
2336
2339
|
O.value = c;
|
|
2337
2340
|
}, h = (c) => {
|
|
2338
2341
|
const { oldIndex: y, newIndex: a } = c;
|
|
@@ -2356,7 +2359,7 @@ const Wl = {
|
|
|
2356
2359
|
n(
|
|
2357
2360
|
"i",
|
|
2358
2361
|
{
|
|
2359
|
-
class:
|
|
2362
|
+
class: pe(k(ft)(p, A[p.defaultFile.nodeType]))
|
|
2360
2363
|
},
|
|
2361
2364
|
null,
|
|
2362
2365
|
2
|
|
@@ -2439,7 +2442,7 @@ const Wl = {
|
|
|
2439
2442
|
"span",
|
|
2440
2443
|
{
|
|
2441
2444
|
key: 3,
|
|
2442
|
-
class:
|
|
2445
|
+
class: pe(A.required ? "warn" : "")
|
|
2443
2446
|
},
|
|
2444
2447
|
" 请选择" + T(A[p.defaultFile.nodeType] === p.nodeType.办理节点 ? "办理人" : "审批人"),
|
|
2445
2448
|
3
|
|
@@ -2463,7 +2466,7 @@ const Wl = {
|
|
|
2463
2466
|
"ghost-class": "ghost-item",
|
|
2464
2467
|
"chosen-class": "chosen-item",
|
|
2465
2468
|
"drag-class": "drag-item",
|
|
2466
|
-
onStart: (V) =>
|
|
2469
|
+
onStart: (V) => d(A[p.defaultFile.approvePersonList]),
|
|
2467
2470
|
onEnd: h,
|
|
2468
2471
|
class: "draggable-container"
|
|
2469
2472
|
}, {
|
|
@@ -2572,7 +2575,7 @@ const Wl = {
|
|
|
2572
2575
|
"div",
|
|
2573
2576
|
{
|
|
2574
2577
|
key: Z,
|
|
2575
|
-
class:
|
|
2578
|
+
class: pe(`branch branch-${Z}`)
|
|
2576
2579
|
},
|
|
2577
2580
|
[
|
|
2578
2581
|
n(
|