iking-web-ui-pro 0.0.2 → 0.0.3
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/index.es.js +1 -1
- package/dist/IKApprovalProcess/index.umd.js +1 -1
- package/dist/IKApprovalProcess/style.css +1 -1
- package/dist/IKApprovalProcessDetail/style.css +1 -1
- package/dist/IKCalendar/index.es.js +1 -1
- package/dist/IKCalendar/index.umd.js +1 -1
- package/dist/IKCalendar/style.css +1 -1
- package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
- package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/index.es.js +143 -1323
- package/dist/IKExpandCollapse/index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKSearch/index.es.js +1 -1
- package/dist/IKSearch/index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/index.es.js +190 -1370
- package/dist/IKVerticalStepBar/index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkBaseDialog/index.es.js +234 -0
- package/dist/IkBaseDialog/index.umd.js +1 -0
- package/dist/IkBaseDialog/style.css +1 -0
- package/dist/IkBtnSetting/index.es.js +336 -1517
- package/dist/IkBtnSetting/index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkIconPicker/index.es.js +2885 -1449
- package/dist/IkIconPicker/index.umd.js +5 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkPageFull/index.es.js +1678 -2859
- package/dist/IkPageFull/index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPicker/index.es.js +1 -1
- package/dist/IkPicker/index.umd.js +1 -1
- package/dist/IkPicker/style.css +1 -1
- package/dist/IkPickerUser/index.es.js +255 -237
- package/dist/IkPickerUser/index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkSchedule/index.es.js +2181 -3362
- package/dist/IkSchedule/index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSvgIcon/index.es.js +125 -1310
- package/dist/IkSvgIcon/index.umd.js +1 -1
- package/dist/IkUploadFile/index.es.js +955 -596
- package/dist/IkUploadFile/index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/index.es.js +113 -110
- package/dist/IkUploadImage/index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12914 -11169
- package/dist/index.umd.js +10 -6
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/IkSvgIcon/style.css +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as
|
|
1
|
+
import { openBlock as r, createElementBlock as f, createElementVNode as c, defineComponent as ne, resolveComponent as me, createBlock as C, toDisplayString as V, createCommentVNode as k, computed as T, ref as L, Fragment as S, unref as y, withCtx as P, createTextVNode as K, renderList as X, createVNode as _, normalizeClass as De, pushScopeId as ge, popScopeId as ye, useCssVars as Ke, watch as F, toRef as Ye, reactive as Ue, nextTick as Ve, watchEffect as Se, withModifiers as ae, normalizeStyle as Je, withDirectives as re, vShow as $e } from "vue";
|
|
2
2
|
import { ElCheckbox as ee, ElCheckboxGroup as xe, ElRadioGroup as Oe, ElRadio as Pe, ElDialog as et, ElButton as fe, ElInput as tt, ElBreadcrumb as lt, ElBreadcrumbItem as at, vLoading as ve } from "element-plus";
|
|
3
|
-
import { _ as H, ikStore as
|
|
3
|
+
import { _ as H, ikStore as Ee, ikEvent as st } from "iking-utils";
|
|
4
4
|
import nt from "axios";
|
|
5
|
-
const ot = (
|
|
6
|
-
if (
|
|
7
|
-
for (const l of [
|
|
5
|
+
const ot = (n, A) => {
|
|
6
|
+
if (n.install = (e) => {
|
|
7
|
+
for (const l of [n, ...Object.values(A ?? {})])
|
|
8
8
|
e.component(l.name, l);
|
|
9
9
|
}, A)
|
|
10
10
|
for (const [e, l] of Object.entries(A))
|
|
11
|
-
|
|
12
|
-
return
|
|
13
|
-
}, N = (
|
|
14
|
-
const e =
|
|
11
|
+
n[e] = l;
|
|
12
|
+
return n;
|
|
13
|
+
}, N = (n, A) => {
|
|
14
|
+
const e = n.__vccOpts || n;
|
|
15
15
|
for (const [l, g] of A)
|
|
16
16
|
e[l] = g;
|
|
17
17
|
return e;
|
|
@@ -45,8 +45,8 @@ const ot = (s, A) => {
|
|
|
45
45
|
ut,
|
|
46
46
|
pt
|
|
47
47
|
];
|
|
48
|
-
function dt(
|
|
49
|
-
return r(),
|
|
48
|
+
function dt(n, A) {
|
|
49
|
+
return r(), f("svg", rt, ct);
|
|
50
50
|
}
|
|
51
51
|
const At = /* @__PURE__ */ N(it, [["render", dt]]), ht = {}, ft = {
|
|
52
52
|
t: "1710907270798",
|
|
@@ -81,8 +81,8 @@ const At = /* @__PURE__ */ N(it, [["render", dt]]), ht = {}, ft = {
|
|
|
81
81
|
vt,
|
|
82
82
|
mt
|
|
83
83
|
];
|
|
84
|
-
function yt(
|
|
85
|
-
return r(),
|
|
84
|
+
function yt(n, A) {
|
|
85
|
+
return r(), f("svg", ft, gt);
|
|
86
86
|
}
|
|
87
87
|
const xt = /* @__PURE__ */ N(ht, [["render", yt]]), Ot = {}, Pt = {
|
|
88
88
|
t: "1710904463698",
|
|
@@ -117,8 +117,8 @@ const xt = /* @__PURE__ */ N(ht, [["render", yt]]), Ot = {}, Pt = {
|
|
|
117
117
|
Lt,
|
|
118
118
|
kt
|
|
119
119
|
];
|
|
120
|
-
function wt(
|
|
121
|
-
return r(),
|
|
120
|
+
function wt(n, A) {
|
|
121
|
+
return r(), f("svg", Pt, _t);
|
|
122
122
|
}
|
|
123
123
|
const bt = /* @__PURE__ */ N(Ot, [["render", wt]]), Ct = {}, Bt = {
|
|
124
124
|
t: "1710904436436",
|
|
@@ -153,8 +153,8 @@ const bt = /* @__PURE__ */ N(Ot, [["render", wt]]), Ct = {}, Bt = {
|
|
|
153
153
|
Tt,
|
|
154
154
|
Ut
|
|
155
155
|
];
|
|
156
|
-
function St(
|
|
157
|
-
return r(),
|
|
156
|
+
function St(n, A) {
|
|
157
|
+
return r(), f("svg", Bt, Vt);
|
|
158
158
|
}
|
|
159
159
|
const It = /* @__PURE__ */ N(Ct, [["render", St]]), Dt = {}, Et = {
|
|
160
160
|
t: "1710904287393",
|
|
@@ -189,8 +189,8 @@ const It = /* @__PURE__ */ N(Ct, [["render", St]]), Dt = {}, Et = {
|
|
|
189
189
|
Mt,
|
|
190
190
|
Rt
|
|
191
191
|
];
|
|
192
|
-
function Ht(
|
|
193
|
-
return r(),
|
|
192
|
+
function Ht(n, A) {
|
|
193
|
+
return r(), f("svg", Et, Wt);
|
|
194
194
|
}
|
|
195
195
|
const Gt = /* @__PURE__ */ N(Dt, [["render", Ht]]), jt = { class: "avatar" }, Qt = {
|
|
196
196
|
key: 3,
|
|
@@ -221,20 +221,20 @@ const Gt = /* @__PURE__ */ N(Dt, [["render", Ht]]), jt = { class: "avatar" }, Qt
|
|
|
221
221
|
default: ""
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
|
-
setup(
|
|
225
|
-
const A =
|
|
224
|
+
setup(n) {
|
|
225
|
+
const A = n, e = `${A.imageBaseUrl}/server/oss/download?fileUrl=` || `${location.origin}/server/oss/download?fileUrl=`, l = (g) => g ? g.startsWith("http") ? g : `${e}${g}` : "";
|
|
226
226
|
return (g, x) => {
|
|
227
227
|
const O = me("el-avatar");
|
|
228
|
-
return r(),
|
|
229
|
-
A.fixTypeOpt.group ===
|
|
230
|
-
|
|
228
|
+
return r(), f("div", jt, [
|
|
229
|
+
A.fixTypeOpt.group === n.element[A.fixPropOpt.type] ? (r(), C(Gt, { key: 0 })) : A.fixTypeOpt.role === n.element[A.fixPropOpt.type] ? (r(), C(bt, { key: 1 })) : A.fixTypeOpt.post === n.element[A.fixPropOpt.type] ? (r(), C(It, { key: 2 })) : A.fixTypeOpt.user === n.element[A.fixPropOpt.type] ? (r(), f("div", Qt, [
|
|
230
|
+
n.element[n.fixPropOpt.avatar] ? (r(), C(O, {
|
|
231
231
|
key: 0,
|
|
232
232
|
shape: "square",
|
|
233
|
-
src: l(
|
|
234
|
-
}, null, 8, ["src"])) : (r(),
|
|
233
|
+
src: l(n.fixPropOpt.avatar ? n.element[n.fixPropOpt.avatar] : "")
|
|
234
|
+
}, null, 8, ["src"])) : (r(), f(
|
|
235
235
|
"div",
|
|
236
236
|
Xt,
|
|
237
|
-
V(
|
|
237
|
+
V(n.element[n.fixPropOpt.name].slice(-2)),
|
|
238
238
|
1
|
|
239
239
|
/* TEXT */
|
|
240
240
|
))
|
|
@@ -286,8 +286,13 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
286
286
|
emptyText: {
|
|
287
287
|
type: String,
|
|
288
288
|
default: "暂无数据"
|
|
289
|
+
},
|
|
290
|
+
// 是否允许选择子集
|
|
291
|
+
children: {
|
|
292
|
+
type: Boolean,
|
|
293
|
+
default: !0
|
|
289
294
|
}
|
|
290
|
-
}, Ft = (
|
|
295
|
+
}, Ft = (n) => (ge("data-v-33f94c51"), n = n(), ye(), n), zt = { class: "left-pick-list" }, Zt = {
|
|
291
296
|
key: 1,
|
|
292
297
|
class: "post-view-list"
|
|
293
298
|
}, qt = { class: "checkText" }, Kt = { class: "iconBox" }, Yt = {
|
|
@@ -312,28 +317,28 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
312
317
|
__name: "GroupList",
|
|
313
318
|
props: ke,
|
|
314
319
|
emits: ["change", "check", "handChild"],
|
|
315
|
-
setup(
|
|
320
|
+
setup(n, { emit: A }) {
|
|
316
321
|
var p, a;
|
|
317
|
-
const e =
|
|
318
|
-
var i,
|
|
319
|
-
return ((i = e.handList) == null ? void 0 : i.length) === ((
|
|
320
|
-
}), g =
|
|
321
|
-
var
|
|
322
|
-
const i = (
|
|
323
|
-
return e.multiple ? x.value = e.handList.map((u) => u[e.fixPropOpt.id]) : O.value = (I = (
|
|
322
|
+
const e = n, l = T(() => {
|
|
323
|
+
var i, s;
|
|
324
|
+
return ((i = e.handList) == null ? void 0 : i.length) === ((s = e.list) == null ? void 0 : s.length);
|
|
325
|
+
}), g = T(() => {
|
|
326
|
+
var h, b, B, I;
|
|
327
|
+
const i = (h = e.handList) == null ? void 0 : h.length, s = (b = e.list) == null ? void 0 : b.length;
|
|
328
|
+
return e.multiple ? x.value = e.handList.map((u) => u[e.fixPropOpt.id]) : O.value = (I = (B = e.handList) == null ? void 0 : B[0]) == null ? void 0 : I[e.fixPropOpt.id], i > 0 && i < s;
|
|
324
329
|
}), x = L(
|
|
325
330
|
e.handList.map((i) => i[e.fixPropOpt.id])
|
|
326
331
|
), O = L((a = (p = e.handList) == null ? void 0 : p[0]) == null ? void 0 : a[e.fixPropOpt.id]), w = A, E = (i) => {
|
|
327
|
-
const
|
|
328
|
-
w("change",
|
|
332
|
+
const s = i ? e.list.map((h) => h[e.fixPropOpt.id]) : [];
|
|
333
|
+
w("change", s, i ? e.list : []);
|
|
329
334
|
}, M = (i) => {
|
|
330
335
|
w("change", i, e.list);
|
|
331
|
-
},
|
|
336
|
+
}, U = (i) => {
|
|
332
337
|
w("change", i, e.list);
|
|
333
|
-
}, R = (i) => {
|
|
334
|
-
w("handChild", i);
|
|
338
|
+
}, R = (i, s) => {
|
|
339
|
+
s || w("handChild", i);
|
|
335
340
|
};
|
|
336
|
-
return (i,
|
|
341
|
+
return (i, s) => (r(), f(
|
|
337
342
|
S,
|
|
338
343
|
null,
|
|
339
344
|
[
|
|
@@ -342,7 +347,7 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
342
347
|
i.multiple ? (r(), C(y(ee), {
|
|
343
348
|
key: 0,
|
|
344
349
|
modelValue: l.value,
|
|
345
|
-
"onUpdate:modelValue":
|
|
350
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => l.value = h),
|
|
346
351
|
indeterminate: g.value,
|
|
347
352
|
onChange: E
|
|
348
353
|
}, {
|
|
@@ -352,22 +357,22 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
352
357
|
_: 1
|
|
353
358
|
/* STABLE */
|
|
354
359
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
355
|
-
i.list && i.list.length ? (r(),
|
|
360
|
+
i.list && i.list.length ? (r(), f("ul", Zt, [
|
|
356
361
|
i.multiple ? (r(), C(y(xe), {
|
|
357
362
|
key: 0,
|
|
358
363
|
modelValue: x.value,
|
|
359
|
-
"onUpdate:modelValue":
|
|
364
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => x.value = h),
|
|
360
365
|
onChange: M
|
|
361
366
|
}, {
|
|
362
367
|
default: P(() => [
|
|
363
|
-
(r(!0),
|
|
368
|
+
(r(!0), f(
|
|
364
369
|
S,
|
|
365
370
|
null,
|
|
366
|
-
X(i.list, (
|
|
367
|
-
key:
|
|
371
|
+
X(i.list, (h) => (r(), f("li", {
|
|
372
|
+
key: h[e.fixPropOpt.id]
|
|
368
373
|
}, [
|
|
369
374
|
_(y(ee), {
|
|
370
|
-
label:
|
|
375
|
+
label: h[e.fixPropOpt.id]
|
|
371
376
|
}, {
|
|
372
377
|
default: P(() => [
|
|
373
378
|
c("div", qt, [
|
|
@@ -375,7 +380,7 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
375
380
|
_(Y, {
|
|
376
381
|
fixTypeOpt: e.fixTypeOpt,
|
|
377
382
|
fixPropOpt: e.fixPropOpt,
|
|
378
|
-
element:
|
|
383
|
+
element: h,
|
|
379
384
|
imageBaseUrl: e.imageBaseUrl
|
|
380
385
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
381
386
|
]),
|
|
@@ -383,14 +388,14 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
383
388
|
c(
|
|
384
389
|
"span",
|
|
385
390
|
null,
|
|
386
|
-
V(
|
|
391
|
+
V(h[e.fixPropOpt.name]),
|
|
387
392
|
1
|
|
388
393
|
/* TEXT */
|
|
389
394
|
),
|
|
390
|
-
|
|
395
|
+
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (r(), f(
|
|
391
396
|
"span",
|
|
392
397
|
Yt,
|
|
393
|
-
"(" + V(
|
|
398
|
+
"(" + V(h.userCount) + ")",
|
|
394
399
|
1
|
|
395
400
|
/* TEXT */
|
|
396
401
|
)) : k("v-if", !0)
|
|
@@ -400,11 +405,18 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
400
405
|
_: 2
|
|
401
406
|
/* DYNAMIC */
|
|
402
407
|
}, 1032, ["label"]),
|
|
403
|
-
|
|
408
|
+
h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (r(), f("span", {
|
|
404
409
|
key: 0,
|
|
405
|
-
class: "nextLevel",
|
|
406
|
-
|
|
407
|
-
|
|
410
|
+
class: De(["nextLevel", {
|
|
411
|
+
"is-disabled": x.value.find(
|
|
412
|
+
(b) => b === h[e.fixPropOpt.id]
|
|
413
|
+
)
|
|
414
|
+
}]),
|
|
415
|
+
onClick: (b) => R(
|
|
416
|
+
h,
|
|
417
|
+
x.value.find((B) => B === h[e.fixPropOpt.id])
|
|
418
|
+
)
|
|
419
|
+
}, " 下级", 10, Jt)) : k("v-if", !0)
|
|
408
420
|
]))),
|
|
409
421
|
128
|
|
410
422
|
/* KEYED_FRAGMENT */
|
|
@@ -416,19 +428,19 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
416
428
|
key: 1,
|
|
417
429
|
isIndeterminate: g.value,
|
|
418
430
|
modelValue: O.value,
|
|
419
|
-
"onUpdate:modelValue":
|
|
420
|
-
onChange:
|
|
431
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => O.value = h),
|
|
432
|
+
onChange: U
|
|
421
433
|
}, {
|
|
422
434
|
default: P(() => [
|
|
423
|
-
(r(!0),
|
|
435
|
+
(r(!0), f(
|
|
424
436
|
S,
|
|
425
437
|
null,
|
|
426
|
-
X(i.list, (
|
|
438
|
+
X(i.list, (h) => (r(), f("li", {
|
|
427
439
|
class: "w-full",
|
|
428
|
-
key:
|
|
440
|
+
key: h[e.fixPropOpt.id]
|
|
429
441
|
}, [
|
|
430
442
|
_(y(Pe), {
|
|
431
|
-
label:
|
|
443
|
+
label: h[e.fixPropOpt.id]
|
|
432
444
|
}, {
|
|
433
445
|
default: P(() => [
|
|
434
446
|
c("div", $t, [
|
|
@@ -436,7 +448,7 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
436
448
|
_(Y, {
|
|
437
449
|
fixTypeOpt: e.fixTypeOpt,
|
|
438
450
|
fixPropOpt: e.fixPropOpt,
|
|
439
|
-
element:
|
|
451
|
+
element: h,
|
|
440
452
|
imageBaseUrl: e.imageBaseUrl
|
|
441
453
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
442
454
|
]),
|
|
@@ -444,14 +456,14 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
444
456
|
c(
|
|
445
457
|
"span",
|
|
446
458
|
null,
|
|
447
|
-
V(
|
|
459
|
+
V(h[e.fixPropOpt.name]),
|
|
448
460
|
1
|
|
449
461
|
/* TEXT */
|
|
450
462
|
),
|
|
451
|
-
|
|
463
|
+
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (r(), f(
|
|
452
464
|
"span",
|
|
453
465
|
tl,
|
|
454
|
-
"(" + V(
|
|
466
|
+
"(" + V(h.userCount) + ")",
|
|
455
467
|
1
|
|
456
468
|
/* TEXT */
|
|
457
469
|
)) : k("v-if", !0)
|
|
@@ -469,7 +481,7 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
469
481
|
_: 1
|
|
470
482
|
/* STABLE */
|
|
471
483
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
472
|
-
])) : (r(),
|
|
484
|
+
])) : (r(), f("div", ll, [
|
|
473
485
|
al,
|
|
474
486
|
c(
|
|
475
487
|
"div",
|
|
@@ -486,7 +498,7 @@ const Y = /* @__PURE__ */ N(Nt, [["__scopeId", "data-v-bc7cca29"]]), Le = "data:
|
|
|
486
498
|
));
|
|
487
499
|
}
|
|
488
500
|
});
|
|
489
|
-
const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-
|
|
501
|
+
const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-33f94c51"]]), ol = (n) => (ge("data-v-95cdb4dd"), n = n(), ye(), n), il = { class: "left-pick-list" }, rl = {
|
|
490
502
|
key: 1,
|
|
491
503
|
class: "post-view-list"
|
|
492
504
|
}, ul = { class: "iconBox" }, pl = { class: "ik-picker-single" }, cl = { class: "iconBox" }, dl = {
|
|
@@ -505,26 +517,26 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
505
517
|
__name: "PostList",
|
|
506
518
|
props: ke,
|
|
507
519
|
emits: ["change", "check"],
|
|
508
|
-
setup(
|
|
520
|
+
setup(n, { emit: A }) {
|
|
509
521
|
var R, p;
|
|
510
|
-
const e =
|
|
522
|
+
const e = n, l = T(() => {
|
|
511
523
|
var a, i;
|
|
512
524
|
return ((a = e.handList) == null ? void 0 : a.length) === ((i = e.list) == null ? void 0 : i.length);
|
|
513
|
-
}), g =
|
|
514
|
-
var
|
|
515
|
-
const a = (
|
|
516
|
-
return e.multiple ? x.value = e.handList.map((I) => I[e.fixPropOpt.id]) : O.value = (
|
|
525
|
+
}), g = T(() => {
|
|
526
|
+
var s, h, b, B;
|
|
527
|
+
const a = (s = e.handList) == null ? void 0 : s.length, i = (h = e.list) == null ? void 0 : h.length;
|
|
528
|
+
return e.multiple ? x.value = e.handList.map((I) => I[e.fixPropOpt.id]) : O.value = (B = (b = e.handList) == null ? void 0 : b[0]) == null ? void 0 : B[e.fixPropOpt.id], a > 0 && a < i;
|
|
517
529
|
}), x = L(
|
|
518
530
|
e.handList.map((a) => a[e.fixPropOpt.id])
|
|
519
531
|
), O = L((p = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : p[e.fixPropOpt.id]), w = A, E = (a) => {
|
|
520
|
-
const i = a ? e.list.map((
|
|
532
|
+
const i = a ? e.list.map((s) => s[e.fixPropOpt.id]) : [];
|
|
521
533
|
w("change", i, a ? e.list : []);
|
|
522
534
|
}, M = (a) => {
|
|
523
535
|
w("change", a, e.list);
|
|
524
|
-
},
|
|
536
|
+
}, U = (a) => {
|
|
525
537
|
w("change", a, e.list);
|
|
526
538
|
};
|
|
527
|
-
return (a, i) => (r(),
|
|
539
|
+
return (a, i) => (r(), f(
|
|
528
540
|
S,
|
|
529
541
|
null,
|
|
530
542
|
[
|
|
@@ -533,7 +545,7 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
533
545
|
a.multiple ? (r(), C(y(ee), {
|
|
534
546
|
key: 0,
|
|
535
547
|
modelValue: l.value,
|
|
536
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
548
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => l.value = s),
|
|
537
549
|
indeterminate: g.value,
|
|
538
550
|
onChange: E
|
|
539
551
|
}, {
|
|
@@ -543,36 +555,36 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
543
555
|
_: 1
|
|
544
556
|
/* STABLE */
|
|
545
557
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
546
|
-
a.list && a.list.length ? (r(),
|
|
558
|
+
a.list && a.list.length ? (r(), f("ul", rl, [
|
|
547
559
|
a.multiple ? (r(), C(y(xe), {
|
|
548
560
|
key: 0,
|
|
549
561
|
modelValue: x.value,
|
|
550
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
562
|
+
"onUpdate:modelValue": i[1] || (i[1] = (s) => x.value = s),
|
|
551
563
|
onChange: M
|
|
552
564
|
}, {
|
|
553
565
|
default: P(() => [
|
|
554
|
-
(r(!0),
|
|
566
|
+
(r(!0), f(
|
|
555
567
|
S,
|
|
556
568
|
null,
|
|
557
|
-
X(a.list, (
|
|
558
|
-
key:
|
|
569
|
+
X(a.list, (s) => (r(), f("li", {
|
|
570
|
+
key: s[e.fixPropOpt.id]
|
|
559
571
|
}, [
|
|
560
572
|
_(y(ee), {
|
|
561
|
-
label:
|
|
573
|
+
label: s[e.fixPropOpt.id]
|
|
562
574
|
}, {
|
|
563
575
|
default: P(() => [
|
|
564
576
|
c("div", ul, [
|
|
565
577
|
_(Y, {
|
|
566
578
|
fixTypeOpt: e.fixTypeOpt,
|
|
567
579
|
fixPropOpt: e.fixPropOpt,
|
|
568
|
-
element:
|
|
580
|
+
element: s,
|
|
569
581
|
imageBaseUrl: e.imageBaseUrl
|
|
570
582
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
571
583
|
]),
|
|
572
584
|
c(
|
|
573
585
|
"p",
|
|
574
586
|
null,
|
|
575
|
-
V(
|
|
587
|
+
V(s[e.fixPropOpt.name]),
|
|
576
588
|
1
|
|
577
589
|
/* TEXT */
|
|
578
590
|
)
|
|
@@ -591,19 +603,19 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
591
603
|
key: 1,
|
|
592
604
|
isIndeterminate: g.value,
|
|
593
605
|
modelValue: O.value,
|
|
594
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
595
|
-
onChange:
|
|
606
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => O.value = s),
|
|
607
|
+
onChange: U
|
|
596
608
|
}, {
|
|
597
609
|
default: P(() => [
|
|
598
|
-
(r(!0),
|
|
610
|
+
(r(!0), f(
|
|
599
611
|
S,
|
|
600
612
|
null,
|
|
601
|
-
X(a.list, (
|
|
613
|
+
X(a.list, (s) => (r(), f("li", {
|
|
602
614
|
class: "w-full",
|
|
603
|
-
key:
|
|
615
|
+
key: s[e.fixPropOpt.id]
|
|
604
616
|
}, [
|
|
605
617
|
_(y(Pe), {
|
|
606
|
-
label:
|
|
618
|
+
label: s[e.fixPropOpt.id]
|
|
607
619
|
}, {
|
|
608
620
|
default: P(() => [
|
|
609
621
|
c("div", pl, [
|
|
@@ -611,14 +623,14 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
611
623
|
_(Y, {
|
|
612
624
|
fixTypeOpt: e.fixTypeOpt,
|
|
613
625
|
fixPropOpt: e.fixPropOpt,
|
|
614
|
-
element:
|
|
626
|
+
element: s,
|
|
615
627
|
imageBaseUrl: e.imageBaseUrl
|
|
616
628
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
617
629
|
]),
|
|
618
630
|
c(
|
|
619
631
|
"p",
|
|
620
632
|
null,
|
|
621
|
-
V(
|
|
633
|
+
V(s[e.fixPropOpt.name]),
|
|
622
634
|
1
|
|
623
635
|
/* TEXT */
|
|
624
636
|
)
|
|
@@ -635,7 +647,7 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
635
647
|
_: 1
|
|
636
648
|
/* STABLE */
|
|
637
649
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
638
|
-
])) : (r(),
|
|
650
|
+
])) : (r(), f("div", dl, [
|
|
639
651
|
Al,
|
|
640
652
|
c(
|
|
641
653
|
"div",
|
|
@@ -652,7 +664,7 @@ const nl = /* @__PURE__ */ N(sl, [["__scopeId", "data-v-0a55c123"]]), ol = (s) =
|
|
|
652
664
|
));
|
|
653
665
|
}
|
|
654
666
|
});
|
|
655
|
-
const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (
|
|
667
|
+
const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (n) => (ge("data-v-79596f8b"), n = n(), ye(), n), ml = { class: "left-pick-list" }, gl = {
|
|
656
668
|
key: 1,
|
|
657
669
|
class: "role-view-list"
|
|
658
670
|
}, yl = { class: "iconBox" }, xl = ["title"], Ol = { class: "ik-picker-single" }, Pl = { class: "iconBox" }, Ll = ["title"], kl = {
|
|
@@ -671,26 +683,26 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
671
683
|
__name: "RoleList",
|
|
672
684
|
props: ke,
|
|
673
685
|
emits: ["change", "check"],
|
|
674
|
-
setup(
|
|
686
|
+
setup(n, { emit: A }) {
|
|
675
687
|
var R, p;
|
|
676
|
-
const e =
|
|
688
|
+
const e = n, l = T(() => {
|
|
677
689
|
var a, i;
|
|
678
690
|
return ((a = e.handList) == null ? void 0 : a.length) === ((i = e.list) == null ? void 0 : i.length);
|
|
679
|
-
}), g =
|
|
680
|
-
var
|
|
681
|
-
const a = (
|
|
682
|
-
return e.multiple ? x.value = e.handList.map((I) => I[e.fixPropOpt.id]) : O.value = (
|
|
691
|
+
}), g = T(() => {
|
|
692
|
+
var s, h, b, B;
|
|
693
|
+
const a = (s = e.handList) == null ? void 0 : s.length, i = (h = e.list) == null ? void 0 : h.length;
|
|
694
|
+
return e.multiple ? x.value = e.handList.map((I) => I[e.fixPropOpt.id]) : O.value = (B = (b = e.handList) == null ? void 0 : b[0]) == null ? void 0 : B[e.fixPropOpt.id], a > 0 && a < i;
|
|
683
695
|
}), x = L(
|
|
684
696
|
e.handList.map((a) => a[e.fixPropOpt.id])
|
|
685
697
|
), O = L((p = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : p[e.fixPropOpt.id]), w = A, E = (a) => {
|
|
686
|
-
const i = a ? e.list.map((
|
|
698
|
+
const i = a ? e.list.map((s) => s[e.fixPropOpt.id]) : [];
|
|
687
699
|
w("change", i, a ? e.list : []);
|
|
688
700
|
}, M = (a) => {
|
|
689
701
|
w("change", a, e.list);
|
|
690
|
-
},
|
|
702
|
+
}, U = (a) => {
|
|
691
703
|
w("change", a, e.list);
|
|
692
704
|
};
|
|
693
|
-
return (a, i) => (r(),
|
|
705
|
+
return (a, i) => (r(), f(
|
|
694
706
|
S,
|
|
695
707
|
null,
|
|
696
708
|
[
|
|
@@ -699,7 +711,7 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
699
711
|
a.multiple ? (r(), C(y(ee), {
|
|
700
712
|
key: 0,
|
|
701
713
|
modelValue: l.value,
|
|
702
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
714
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => l.value = s),
|
|
703
715
|
indeterminate: g.value,
|
|
704
716
|
onChange: E
|
|
705
717
|
}, {
|
|
@@ -709,37 +721,37 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
709
721
|
_: 1
|
|
710
722
|
/* STABLE */
|
|
711
723
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
712
|
-
a.list && a.list.length ? (r(),
|
|
724
|
+
a.list && a.list.length ? (r(), f("ul", gl, [
|
|
713
725
|
a.multiple ? (r(), C(y(xe), {
|
|
714
726
|
key: 0,
|
|
715
727
|
modelValue: x.value,
|
|
716
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
728
|
+
"onUpdate:modelValue": i[1] || (i[1] = (s) => x.value = s),
|
|
717
729
|
onChange: M
|
|
718
730
|
}, {
|
|
719
731
|
default: P(() => [
|
|
720
|
-
(r(!0),
|
|
732
|
+
(r(!0), f(
|
|
721
733
|
S,
|
|
722
734
|
null,
|
|
723
|
-
X(a.list, (
|
|
724
|
-
key:
|
|
735
|
+
X(a.list, (s) => (r(), f("li", {
|
|
736
|
+
key: s[a.fixPropOpt.id]
|
|
725
737
|
}, [
|
|
726
738
|
_(y(ee), {
|
|
727
|
-
label:
|
|
728
|
-
value:
|
|
729
|
-
disabled:
|
|
739
|
+
label: s[a.fixPropOpt.id],
|
|
740
|
+
value: s[a.fixPropOpt.id],
|
|
741
|
+
disabled: s.disabled
|
|
730
742
|
}, {
|
|
731
743
|
default: P(() => [
|
|
732
744
|
c("div", yl, [
|
|
733
745
|
_(Y, {
|
|
734
746
|
fixTypeOpt: e.fixTypeOpt,
|
|
735
747
|
fixPropOpt: e.fixPropOpt,
|
|
736
|
-
element:
|
|
748
|
+
element: s,
|
|
737
749
|
imageBaseUrl: e.imageBaseUrl
|
|
738
750
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
739
751
|
]),
|
|
740
752
|
c("p", {
|
|
741
|
-
title:
|
|
742
|
-
}, V(
|
|
753
|
+
title: s[a.fixPropOpt.name]
|
|
754
|
+
}, V(s[a.fixPropOpt.name]), 9, xl)
|
|
743
755
|
]),
|
|
744
756
|
_: 2
|
|
745
757
|
/* DYNAMIC */
|
|
@@ -755,21 +767,21 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
755
767
|
key: 1,
|
|
756
768
|
indeterminate: g.value,
|
|
757
769
|
modelValue: O.value,
|
|
758
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
759
|
-
onChange:
|
|
770
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => O.value = s),
|
|
771
|
+
onChange: U
|
|
760
772
|
}, {
|
|
761
773
|
default: P(() => [
|
|
762
|
-
(r(!0),
|
|
774
|
+
(r(!0), f(
|
|
763
775
|
S,
|
|
764
776
|
null,
|
|
765
|
-
X(a.list, (
|
|
777
|
+
X(a.list, (s) => (r(), f("li", {
|
|
766
778
|
class: "w-full",
|
|
767
|
-
key:
|
|
779
|
+
key: s[a.fixPropOpt.id]
|
|
768
780
|
}, [
|
|
769
781
|
_(y(Pe), {
|
|
770
|
-
label:
|
|
771
|
-
value:
|
|
772
|
-
disabled:
|
|
782
|
+
label: s[a.fixPropOpt.id],
|
|
783
|
+
value: s[a.fixPropOpt.id],
|
|
784
|
+
disabled: s.disabled
|
|
773
785
|
}, {
|
|
774
786
|
default: P(() => [
|
|
775
787
|
c("div", Ol, [
|
|
@@ -777,13 +789,13 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
777
789
|
_(Y, {
|
|
778
790
|
fixTypeOpt: e.fixTypeOpt,
|
|
779
791
|
fixPropOpt: e.fixPropOpt,
|
|
780
|
-
element:
|
|
792
|
+
element: s,
|
|
781
793
|
imageBaseUrl: e.imageBaseUrl
|
|
782
794
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
783
795
|
]),
|
|
784
796
|
c("p", {
|
|
785
|
-
title:
|
|
786
|
-
}, V(
|
|
797
|
+
title: s[a.fixPropOpt.name]
|
|
798
|
+
}, V(s[a.fixPropOpt.name]), 9, Ll)
|
|
787
799
|
])
|
|
788
800
|
]),
|
|
789
801
|
_: 2
|
|
@@ -797,7 +809,7 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
797
809
|
_: 1
|
|
798
810
|
/* STABLE */
|
|
799
811
|
}, 8, ["indeterminate", "modelValue"]))
|
|
800
|
-
])) : (r(),
|
|
812
|
+
])) : (r(), f("div", kl, [
|
|
801
813
|
_l,
|
|
802
814
|
c(
|
|
803
815
|
"div",
|
|
@@ -815,8 +827,13 @@ const fl = /* @__PURE__ */ N(hl, [["__scopeId", "data-v-95cdb4dd"]]), vl = (s) =
|
|
|
815
827
|
}
|
|
816
828
|
});
|
|
817
829
|
const bl = /* @__PURE__ */ N(wl, [["__scopeId", "data-v-79596f8b"]]);
|
|
818
|
-
var se = /* @__PURE__ */ ((
|
|
830
|
+
var se = /* @__PURE__ */ ((n) => (n.group = "group", n.role = "role", n.post = "post", n))(se || {});
|
|
819
831
|
const Cl = {
|
|
832
|
+
// 是否允许选择子集
|
|
833
|
+
children: {
|
|
834
|
+
type: Boolean,
|
|
835
|
+
default: !0
|
|
836
|
+
},
|
|
820
837
|
// 是否允许点击根节点查询
|
|
821
838
|
topLink: {
|
|
822
839
|
type: Boolean,
|
|
@@ -903,11 +920,11 @@ const Cl = {
|
|
|
903
920
|
tabs: {
|
|
904
921
|
type: Array,
|
|
905
922
|
// prop校验
|
|
906
|
-
validator: (
|
|
907
|
-
if (
|
|
923
|
+
validator: (n) => {
|
|
924
|
+
if (n === void 0)
|
|
908
925
|
return !0;
|
|
909
|
-
if (Array.isArray(
|
|
910
|
-
if (!(
|
|
926
|
+
if (Array.isArray(n)) {
|
|
927
|
+
if (!(n != null && n.length))
|
|
911
928
|
return !1;
|
|
912
929
|
} else
|
|
913
930
|
return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
|
|
@@ -931,7 +948,7 @@ const Cl = {
|
|
|
931
948
|
methods: "post",
|
|
932
949
|
headers: {
|
|
933
950
|
"Content-Type": "application/json;charset=UTF-8",
|
|
934
|
-
Authorization: "Bearer
|
|
951
|
+
Authorization: "Bearer 9aa65e31e86f4232ac4e4136fb1d3413"
|
|
935
952
|
},
|
|
936
953
|
url: `${location.origin}${location.pathname}/serve/component/pick/mix`,
|
|
937
954
|
param: null,
|
|
@@ -973,28 +990,28 @@ const Cl = {
|
|
|
973
990
|
type: String,
|
|
974
991
|
default: "暂无数据"
|
|
975
992
|
}
|
|
976
|
-
}, Ie = (
|
|
993
|
+
}, Ie = (n) => {
|
|
977
994
|
const A = window.location.search;
|
|
978
|
-
return new URLSearchParams(A).get(
|
|
979
|
-
}, Bl = (
|
|
980
|
-
const A =
|
|
981
|
-
A && (
|
|
982
|
-
}, Tl = (
|
|
995
|
+
return new URLSearchParams(A).get(n);
|
|
996
|
+
}, Bl = (n) => {
|
|
997
|
+
const A = Ee.local.getItem("x_domain");
|
|
998
|
+
A && (n["X-DOMAIN"] = A);
|
|
999
|
+
}, Tl = (n) => {
|
|
983
1000
|
var l;
|
|
984
1001
|
const A = Ie("domain");
|
|
985
1002
|
if (A) {
|
|
986
|
-
|
|
1003
|
+
n["X-DOMAIN"] = A;
|
|
987
1004
|
const g = Ie("code");
|
|
988
|
-
A === "APPLICATION" && (
|
|
1005
|
+
A === "APPLICATION" && (n["X-APP"] = g);
|
|
989
1006
|
} else
|
|
990
|
-
Bl(
|
|
991
|
-
const e = (l =
|
|
992
|
-
e && (
|
|
993
|
-
}, Ul = (
|
|
1007
|
+
Bl(n);
|
|
1008
|
+
const e = (l = Ee.local.getItem("tenant")) == null ? void 0 : l.code;
|
|
1009
|
+
e && (n["X-TENANT"] = e);
|
|
1010
|
+
}, Ul = (n, A) => {
|
|
994
1011
|
const e = L([]), l = async (x, O) => {
|
|
995
1012
|
var le, W;
|
|
996
|
-
const { url: w, methods: E, headers: M, param:
|
|
997
|
-
...
|
|
1013
|
+
const { url: w, methods: E, headers: M, param: U } = n.value || {}, R = {
|
|
1014
|
+
...U || {},
|
|
998
1015
|
parentDepartmentId: x || "",
|
|
999
1016
|
name: O || ""
|
|
1000
1017
|
}, p = {
|
|
@@ -1007,7 +1024,7 @@ const Cl = {
|
|
|
1007
1024
|
data: JSON.stringify(R)
|
|
1008
1025
|
};
|
|
1009
1026
|
Tl(p.headers);
|
|
1010
|
-
const a = await nt(p), { success: i, data:
|
|
1027
|
+
const a = await nt(p), { success: i, data: s } = a.data;
|
|
1011
1028
|
if (!i)
|
|
1012
1029
|
return {
|
|
1013
1030
|
groupList: [],
|
|
@@ -1018,24 +1035,24 @@ const Cl = {
|
|
|
1018
1035
|
rootDepartment: {}
|
|
1019
1036
|
};
|
|
1020
1037
|
const {
|
|
1021
|
-
departments:
|
|
1038
|
+
departments: h,
|
|
1022
1039
|
roles: b,
|
|
1023
|
-
posts:
|
|
1040
|
+
posts: B,
|
|
1024
1041
|
users: I,
|
|
1025
1042
|
rootOrganization: u,
|
|
1026
1043
|
rootDepartment: G
|
|
1027
|
-
} =
|
|
1028
|
-
return e.value[0] = A.org ? {
|
|
1044
|
+
} = s, te = u || G;
|
|
1045
|
+
return e.value.length === 0 && (e.value[0] = A.org ? {
|
|
1029
1046
|
...A.org,
|
|
1030
1047
|
id: A.elementId,
|
|
1031
1048
|
elementType: (W = (le = A.org) == null ? void 0 : le.elementType) == null ? void 0 : W.toLocaleUpperCase()
|
|
1032
1049
|
} : {
|
|
1033
1050
|
...te,
|
|
1034
1051
|
id: te.elementId
|
|
1035
|
-
}, {
|
|
1036
|
-
groupList: H.cloneDeep(
|
|
1052
|
+
}), {
|
|
1053
|
+
groupList: H.cloneDeep(h),
|
|
1037
1054
|
roleList: H.cloneDeep(b),
|
|
1038
|
-
postList: H.cloneDeep(
|
|
1055
|
+
postList: H.cloneDeep(B),
|
|
1039
1056
|
userList: H.cloneDeep(I),
|
|
1040
1057
|
rootOrganization: u,
|
|
1041
1058
|
rootDepartment: G
|
|
@@ -1067,41 +1084,41 @@ const Cl = {
|
|
|
1067
1084
|
__name: "picker",
|
|
1068
1085
|
props: Cl,
|
|
1069
1086
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1070
|
-
setup(
|
|
1071
|
-
|
|
1072
|
-
"
|
|
1087
|
+
setup(n, { expose: A, emit: e }) {
|
|
1088
|
+
Ke((t) => ({
|
|
1089
|
+
"33b71112": Ce.value
|
|
1073
1090
|
}));
|
|
1074
|
-
const l =
|
|
1091
|
+
const l = n, g = L(""), x = L(""), O = L([]), w = L([]), E = L([]), M = L([]), U = L(!1), R = T(() => w.value.concat(O.value));
|
|
1075
1092
|
F(
|
|
1076
1093
|
() => l.api,
|
|
1077
1094
|
() => {
|
|
1078
1095
|
l.show && le("");
|
|
1079
1096
|
}
|
|
1080
1097
|
);
|
|
1081
|
-
const p =
|
|
1098
|
+
const p = T(() => ({
|
|
1082
1099
|
name: "name",
|
|
1083
1100
|
type: "type",
|
|
1084
1101
|
id: "id",
|
|
1085
1102
|
avatar: "avatar",
|
|
1086
1103
|
...l.propOption
|
|
1087
|
-
})), a =
|
|
1104
|
+
})), a = T(() => ({
|
|
1088
1105
|
user: "USER",
|
|
1089
1106
|
role: "ROLE",
|
|
1090
1107
|
post: "POST",
|
|
1091
1108
|
group: "DEPT",
|
|
1092
1109
|
...l.typeOption
|
|
1093
|
-
})), i = L([]),
|
|
1094
|
-
l.immediate &&
|
|
1095
|
-
const
|
|
1096
|
-
var d,
|
|
1097
|
-
o.disabled = ((
|
|
1110
|
+
})), i = L([]), s = Ul(Ye(l, "api"), l), h = s.handData, b = s.bannerList;
|
|
1111
|
+
l.immediate && h(x.value, g.value);
|
|
1112
|
+
const B = (t) => (t.forEach((o) => {
|
|
1113
|
+
var d, v;
|
|
1114
|
+
o.disabled = ((v = (d = l.modelValue) == null ? void 0 : d.find(
|
|
1098
1115
|
(m) => m[p.value.id] === o[p.value.id]
|
|
1099
|
-
)) == null ? void 0 :
|
|
1116
|
+
)) == null ? void 0 : v.disabled) || !1;
|
|
1100
1117
|
}), t), I = async () => {
|
|
1101
|
-
var t, o, d,
|
|
1102
|
-
|
|
1118
|
+
var t, o, d, v, m, j, he, Te;
|
|
1119
|
+
U.value = !0;
|
|
1103
1120
|
try {
|
|
1104
|
-
if ((t = l.groupList) != null && t.length || (o = l.userList) != null && o.length || (d = l.roleList) != null && d.length || (
|
|
1121
|
+
if ((t = l.groupList) != null && t.length || (o = l.userList) != null && o.length || (d = l.roleList) != null && d.length || (v = l.postList) != null && v.length) {
|
|
1105
1122
|
O.value = (m = l.userList) == null ? void 0 : m.filter(
|
|
1106
1123
|
(Q) => Q[p.value.name].includes(g.value)
|
|
1107
1124
|
), w.value = (j = l.groupList) == null ? void 0 : j.filter(
|
|
@@ -1110,21 +1127,21 @@ const Cl = {
|
|
|
1110
1127
|
(Q) => Q[p.value.name].includes(g.value)
|
|
1111
1128
|
), M.value = (Te = l.postList) == null ? void 0 : Te.filter(
|
|
1112
1129
|
(Q) => Q[p.value.name].includes(g.value)
|
|
1113
|
-
), pe(),
|
|
1130
|
+
), pe(), U.value = !1;
|
|
1114
1131
|
return;
|
|
1115
1132
|
}
|
|
1116
|
-
const D = await
|
|
1133
|
+
const D = await h(
|
|
1117
1134
|
x.value,
|
|
1118
1135
|
g.value
|
|
1119
1136
|
);
|
|
1120
1137
|
try {
|
|
1121
|
-
O.value =
|
|
1138
|
+
O.value = B((D == null ? void 0 : D.userList) || []), w.value = B((D == null ? void 0 : D.groupList) || []), E.value = B((D == null ? void 0 : D.roleList) || []), M.value = B((D == null ? void 0 : D.postList) || []);
|
|
1122
1139
|
} catch (Q) {
|
|
1123
|
-
|
|
1140
|
+
U.value = !1, console.info("error: ", Q);
|
|
1124
1141
|
}
|
|
1125
|
-
pe(),
|
|
1142
|
+
pe(), U.value = !1;
|
|
1126
1143
|
} catch {
|
|
1127
|
-
|
|
1144
|
+
U.value = !1;
|
|
1128
1145
|
}
|
|
1129
1146
|
}, u = Ue({
|
|
1130
1147
|
//组织架构
|
|
@@ -1142,10 +1159,10 @@ const Cl = {
|
|
|
1142
1159
|
}), G = Ue({
|
|
1143
1160
|
indeterminate: !1,
|
|
1144
1161
|
checkAll: 0
|
|
1145
|
-
}), te = (t) => u.group.has(t) || u.user.has(t) || u.role.has(t) || u.post.has(t), le = st.debounce(I, 300), W =
|
|
1146
|
-
const t = Array.from(u.group.values()), o = Array.from(u.role.values()), d = Array.from(u.user.values()),
|
|
1147
|
-
return i.value = [...o, ...
|
|
1148
|
-
list: [...o, ...d, ...
|
|
1162
|
+
}), te = (t) => u.group.has(t) || u.user.has(t) || u.role.has(t) || u.post.has(t), le = st.debounce(I, 300), W = T(() => {
|
|
1163
|
+
const t = Array.from(u.group.values()), o = Array.from(u.role.values()), d = Array.from(u.user.values()), v = Array.from(u.post.values());
|
|
1164
|
+
return i.value = [...o, ...v, ...d, ...t], {
|
|
1165
|
+
list: [...o, ...d, ...v, ...t],
|
|
1149
1166
|
role: {
|
|
1150
1167
|
list: o,
|
|
1151
1168
|
len: o.length
|
|
@@ -1155,22 +1172,22 @@ const Cl = {
|
|
|
1155
1172
|
len: d.length
|
|
1156
1173
|
},
|
|
1157
1174
|
post: {
|
|
1158
|
-
list:
|
|
1159
|
-
len:
|
|
1175
|
+
list: v,
|
|
1176
|
+
len: v.length
|
|
1160
1177
|
},
|
|
1161
1178
|
groups: {
|
|
1162
1179
|
list: t,
|
|
1163
1180
|
len: t.length
|
|
1164
1181
|
}
|
|
1165
1182
|
};
|
|
1166
|
-
}),
|
|
1183
|
+
}), Me = T(() => [...l.chooseType.map((d) => d.toLocaleLowerCase())]), z = L([]), Re = (t) => {
|
|
1167
1184
|
z.value = t, z.value.forEach((o) => {
|
|
1168
1185
|
o.readonly = o == null ? void 0 : o.disabled;
|
|
1169
1186
|
});
|
|
1170
1187
|
}, oe = e, ue = L(!1), pe = (t = !1) => {
|
|
1171
1188
|
var d;
|
|
1172
1189
|
const o = (d = l == null ? void 0 : l.userList) != null && d.length ? H.cloneDeep([...l == null ? void 0 : l.userList, ...l == null ? void 0 : l.groupList]) : [...w.value, ...O.value];
|
|
1173
|
-
return !t &&
|
|
1190
|
+
return !t && Re(o), o;
|
|
1174
1191
|
};
|
|
1175
1192
|
F(
|
|
1176
1193
|
() => l.show,
|
|
@@ -1181,8 +1198,8 @@ const Cl = {
|
|
|
1181
1198
|
const d = pe(!0);
|
|
1182
1199
|
for (const m of d)
|
|
1183
1200
|
te(m[p.value.id]) && u.trans.push(m[p.value.id]);
|
|
1184
|
-
const
|
|
1185
|
-
G.indeterminate = !!(d.length && !
|
|
1201
|
+
const v = d.length === u.trans.length;
|
|
1202
|
+
G.indeterminate = !!(d.length && !v), G.checkAll = Number(d.length && v), Ve(() => {
|
|
1186
1203
|
var m;
|
|
1187
1204
|
(m = l.modelValue) != null && m.length ? l.modelValue.forEach((j) => {
|
|
1188
1205
|
J(j), l.multiple ? u.trans.push(j[p.value.id]) : u.single = j[p.value.id];
|
|
@@ -1239,7 +1256,7 @@ const Cl = {
|
|
|
1239
1256
|
return;
|
|
1240
1257
|
}
|
|
1241
1258
|
}
|
|
1242
|
-
},
|
|
1259
|
+
}, We = (t) => [a.value.group].includes(
|
|
1243
1260
|
t[p.value.type]
|
|
1244
1261
|
) ? t.hasOwnProperty("disabled") : !1;
|
|
1245
1262
|
F(
|
|
@@ -1255,15 +1272,15 @@ const Cl = {
|
|
|
1255
1272
|
});
|
|
1256
1273
|
else {
|
|
1257
1274
|
const o = z.value.filter(
|
|
1258
|
-
(
|
|
1275
|
+
(v) => !t.includes(v[p.value.id])
|
|
1259
1276
|
);
|
|
1260
|
-
for (const
|
|
1261
|
-
|
|
1277
|
+
for (const v of o)
|
|
1278
|
+
v.disabled = !1, l.multiple && Z(v);
|
|
1262
1279
|
const d = z.value.filter(
|
|
1263
|
-
(
|
|
1280
|
+
(v) => t.includes(v[p.value.id])
|
|
1264
1281
|
);
|
|
1265
|
-
for (const
|
|
1266
|
-
|
|
1282
|
+
for (const v of d)
|
|
1283
|
+
v.disabled = We(v), J(v);
|
|
1267
1284
|
}
|
|
1268
1285
|
},
|
|
1269
1286
|
{ deep: !0 }
|
|
@@ -1278,19 +1295,19 @@ const Cl = {
|
|
|
1278
1295
|
}
|
|
1279
1296
|
}
|
|
1280
1297
|
);
|
|
1281
|
-
const
|
|
1298
|
+
const He = (t) => {
|
|
1282
1299
|
x.value = t == null ? void 0 : t.elementId, I(), b.value.push(t);
|
|
1283
|
-
}, we =
|
|
1300
|
+
}, we = T(() => b.value.length), Ge = (t, o) => {
|
|
1284
1301
|
!o && !l.topLink || o !== we.value - 1 && (x.value = t == null ? void 0 : t.elementId, I(), b.value.splice(o + 1));
|
|
1285
|
-
},
|
|
1302
|
+
}, je = T(
|
|
1286
1303
|
() => l.chooseType.includes("role") && l.chooseType.length === 1
|
|
1287
|
-
),
|
|
1304
|
+
), Qe = T(
|
|
1288
1305
|
() => l.chooseType.includes("post") && l.chooseType.length === 1
|
|
1289
1306
|
), ie = L(l.tabs[0]), q = L(l.tabs[0]);
|
|
1290
|
-
Se(() => (q.value =
|
|
1307
|
+
Se(() => (q.value = je.value ? l.tabs[1] : Qe.value ? l.tabs[2] : ie.value, q.value));
|
|
1291
1308
|
const $ = () => {
|
|
1292
1309
|
u.user.clear(), u.role.clear(), u.post.clear(), u.group.clear(), u.trans = [], de.value = [], Ae.value = [], ie.value = l.tabs[0], q.value = l.tabs[0], g.value = "", x.value = l.orgPid, b.value.splice(1, b.value.length), u.single = "", i.value = [];
|
|
1293
|
-
},
|
|
1310
|
+
}, Xe = () => {
|
|
1294
1311
|
var t;
|
|
1295
1312
|
oe(
|
|
1296
1313
|
"ok",
|
|
@@ -1305,26 +1322,26 @@ const Cl = {
|
|
|
1305
1322
|
oe("update:show", !1), $();
|
|
1306
1323
|
};
|
|
1307
1324
|
A({ handClear: $, handRomeve: _e, handDelete: Z });
|
|
1308
|
-
const
|
|
1309
|
-
const t =
|
|
1325
|
+
const Ne = T(() => {
|
|
1326
|
+
const t = Me.value;
|
|
1310
1327
|
return !!((t.includes("post") || t.includes("role")) && t.length > 1);
|
|
1311
|
-
}),
|
|
1328
|
+
}), Fe = T(() => [
|
|
1312
1329
|
{ name: "group", label: "组织架构" },
|
|
1313
1330
|
{ name: "role", label: "角色列表" },
|
|
1314
1331
|
{ name: "post", label: "岗位列表" }
|
|
1315
|
-
].filter((t) => l.tabs.includes(t.name))), Ce =
|
|
1332
|
+
].filter((t) => l.tabs.includes(t.name))), Ce = T(
|
|
1316
1333
|
() => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
|
|
1317
1334
|
), ce = () => {
|
|
1318
1335
|
l.multiple || (u.post.clear(), u.role.clear(), u.user.clear(), u.group.clear(), u.single = "");
|
|
1319
|
-
}, Be = L([]),
|
|
1336
|
+
}, Be = L([]), ze = (t, o) => {
|
|
1320
1337
|
l.multiple || (u.single = "");
|
|
1321
1338
|
const d = l.multiple ? t : [t];
|
|
1322
1339
|
if (!d.length) {
|
|
1323
1340
|
u.group.clear();
|
|
1324
1341
|
return;
|
|
1325
1342
|
}
|
|
1326
|
-
ce(), o.forEach((
|
|
1327
|
-
d != null && d.includes(
|
|
1343
|
+
ce(), o.forEach((v) => {
|
|
1344
|
+
d != null && d.includes(v[p.value.id]) ? J(v) : Z(v);
|
|
1328
1345
|
});
|
|
1329
1346
|
};
|
|
1330
1347
|
F(
|
|
@@ -1333,15 +1350,15 @@ const Cl = {
|
|
|
1333
1350
|
Be.value = H.cloneDeep(W.value.groups.list);
|
|
1334
1351
|
}
|
|
1335
1352
|
);
|
|
1336
|
-
const de = L([]),
|
|
1353
|
+
const de = L([]), Ze = (t, o) => {
|
|
1337
1354
|
l.multiple || (u.single = "");
|
|
1338
1355
|
const d = l.multiple ? t : [t];
|
|
1339
1356
|
if (!d.length) {
|
|
1340
1357
|
u.role.clear();
|
|
1341
1358
|
return;
|
|
1342
1359
|
}
|
|
1343
|
-
ce(), o.forEach((
|
|
1344
|
-
d != null && d.includes(
|
|
1360
|
+
ce(), o.forEach((v) => {
|
|
1361
|
+
d != null && d.includes(v[p.value.id]) ? J(v) : Z(v);
|
|
1345
1362
|
});
|
|
1346
1363
|
};
|
|
1347
1364
|
F(
|
|
@@ -1350,15 +1367,15 @@ const Cl = {
|
|
|
1350
1367
|
de.value = H.cloneDeep(W.value.role.list);
|
|
1351
1368
|
}
|
|
1352
1369
|
);
|
|
1353
|
-
const Ae = L([]),
|
|
1370
|
+
const Ae = L([]), qe = (t, o) => {
|
|
1354
1371
|
l.multiple || (u.single = "");
|
|
1355
1372
|
const d = l.multiple ? t : [t];
|
|
1356
1373
|
if (!d.length) {
|
|
1357
1374
|
u.post.clear();
|
|
1358
1375
|
return;
|
|
1359
1376
|
}
|
|
1360
|
-
ce(), o.forEach((
|
|
1361
|
-
d != null && d.includes(
|
|
1377
|
+
ce(), o.forEach((v) => {
|
|
1378
|
+
d != null && d.includes(v[p.value.id]) ? J(v) : Z(v);
|
|
1362
1379
|
});
|
|
1363
1380
|
};
|
|
1364
1381
|
return F(
|
|
@@ -1372,7 +1389,7 @@ const Cl = {
|
|
|
1372
1389
|
le("");
|
|
1373
1390
|
}
|
|
1374
1391
|
), (t, o) => {
|
|
1375
|
-
const d = me("el-tab-pane"),
|
|
1392
|
+
const d = me("el-tab-pane"), v = me("el-tabs");
|
|
1376
1393
|
return r(), C(y(et), {
|
|
1377
1394
|
modelValue: ue.value,
|
|
1378
1395
|
"onUpdate:modelValue": o[2] || (o[2] = (m) => ue.value = m),
|
|
@@ -1400,7 +1417,7 @@ const Cl = {
|
|
|
1400
1417
|
}),
|
|
1401
1418
|
_(y(fe), {
|
|
1402
1419
|
type: "primary",
|
|
1403
|
-
onClick: ae(
|
|
1420
|
+
onClick: ae(Xe, ["stop"])
|
|
1404
1421
|
}, {
|
|
1405
1422
|
default: P(() => [
|
|
1406
1423
|
K(" 确定 ")
|
|
@@ -1415,7 +1432,7 @@ const Cl = {
|
|
|
1415
1432
|
"div",
|
|
1416
1433
|
{
|
|
1417
1434
|
class: "dep-use-picker",
|
|
1418
|
-
style:
|
|
1435
|
+
style: Je({ height: Ce.value })
|
|
1419
1436
|
},
|
|
1420
1437
|
[
|
|
1421
1438
|
c("div", Vl, [
|
|
@@ -1427,17 +1444,17 @@ const Cl = {
|
|
|
1427
1444
|
placeholder: t.placeholder,
|
|
1428
1445
|
"suffix-icon": At
|
|
1429
1446
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1430
|
-
|
|
1447
|
+
Ne.value ? (r(), C(v, {
|
|
1431
1448
|
key: 0,
|
|
1432
1449
|
modelValue: ie.value,
|
|
1433
1450
|
"onUpdate:modelValue": o[1] || (o[1] = (m) => ie.value = m),
|
|
1434
1451
|
class: "ik-picker-tab"
|
|
1435
1452
|
}, {
|
|
1436
1453
|
default: P(() => [
|
|
1437
|
-
(r(!0),
|
|
1454
|
+
(r(!0), f(
|
|
1438
1455
|
S,
|
|
1439
1456
|
null,
|
|
1440
|
-
X(
|
|
1457
|
+
X(Fe.value, (m) => (r(), C(d, {
|
|
1441
1458
|
label: m.label,
|
|
1442
1459
|
name: m.name,
|
|
1443
1460
|
key: m.label
|
|
@@ -1451,19 +1468,19 @@ const Cl = {
|
|
|
1451
1468
|
}, 8, ["modelValue"])) : k("v-if", !0)
|
|
1452
1469
|
]),
|
|
1453
1470
|
k(" 过滤 "),
|
|
1454
|
-
q.value === y(se).group ? (r(),
|
|
1471
|
+
q.value === y(se).group ? (r(), f("div", Sl, [
|
|
1455
1472
|
k(" 面包屑 全选 "),
|
|
1456
1473
|
_(y(lt), {
|
|
1457
1474
|
separator: ">",
|
|
1458
|
-
class:
|
|
1475
|
+
class: De(["banner", { "top-unlink": !t.topLink }])
|
|
1459
1476
|
}, {
|
|
1460
1477
|
default: P(() => [
|
|
1461
|
-
we.value ? (r(!0),
|
|
1478
|
+
we.value ? (r(!0), f(
|
|
1462
1479
|
S,
|
|
1463
1480
|
{ key: 0 },
|
|
1464
1481
|
X(y(b), (m, j) => (r(), C(y(at), {
|
|
1465
1482
|
key: m[p.value.id],
|
|
1466
|
-
onClick: ae((he) =>
|
|
1483
|
+
onClick: ae((he) => Ge(m, j), ["stop"])
|
|
1467
1484
|
}, {
|
|
1468
1485
|
default: P(() => [
|
|
1469
1486
|
K(
|
|
@@ -1495,11 +1512,12 @@ const Cl = {
|
|
|
1495
1512
|
"hand-list": Be.value,
|
|
1496
1513
|
imageBaseUrl: l.imageBaseUrl,
|
|
1497
1514
|
emptyText: l.emptyText,
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1515
|
+
children: l.children,
|
|
1516
|
+
onHandChild: He,
|
|
1517
|
+
onChange: ze
|
|
1518
|
+
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children"])), [
|
|
1519
|
+
[y(ve), U.value]
|
|
1520
|
+
]) : q.value === y(se).role ? (r(), f(
|
|
1503
1521
|
S,
|
|
1504
1522
|
{ key: 2 },
|
|
1505
1523
|
[
|
|
@@ -1513,14 +1531,14 @@ const Cl = {
|
|
|
1513
1531
|
"hand-list": de.value,
|
|
1514
1532
|
imageBaseUrl: l.imageBaseUrl,
|
|
1515
1533
|
emptyText: l.emptyText,
|
|
1516
|
-
onChange:
|
|
1534
|
+
onChange: Ze
|
|
1517
1535
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText"]), [
|
|
1518
|
-
[y(ve),
|
|
1536
|
+
[y(ve), U.value]
|
|
1519
1537
|
])
|
|
1520
1538
|
],
|
|
1521
1539
|
64
|
|
1522
1540
|
/* STABLE_FRAGMENT */
|
|
1523
|
-
)) : q.value === y(se).post ? (r(),
|
|
1541
|
+
)) : q.value === y(se).post ? (r(), f(
|
|
1524
1542
|
S,
|
|
1525
1543
|
{ key: 3 },
|
|
1526
1544
|
[
|
|
@@ -1534,9 +1552,9 @@ const Cl = {
|
|
|
1534
1552
|
"hand-list": Ae.value,
|
|
1535
1553
|
imageBaseUrl: l.imageBaseUrl,
|
|
1536
1554
|
emptyText: l.emptyText,
|
|
1537
|
-
onChange:
|
|
1555
|
+
onChange: qe
|
|
1538
1556
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText"]), [
|
|
1539
|
-
[y(ve),
|
|
1557
|
+
[y(ve), U.value]
|
|
1540
1558
|
])
|
|
1541
1559
|
],
|
|
1542
1560
|
64
|
|
@@ -1561,10 +1579,10 @@ const Cl = {
|
|
|
1561
1579
|
})
|
|
1562
1580
|
]),
|
|
1563
1581
|
c("ul", Rl, [
|
|
1564
|
-
(r(!0),
|
|
1582
|
+
(r(!0), f(
|
|
1565
1583
|
S,
|
|
1566
1584
|
null,
|
|
1567
|
-
X(i.value, (m) => (r(),
|
|
1585
|
+
X(i.value, (m) => (r(), f("li", Wl, [
|
|
1568
1586
|
c("div", Hl, [
|
|
1569
1587
|
k(" icon前缀 "),
|
|
1570
1588
|
c("div", Gl, [
|