iking-web-ui-pro 0.2.35 → 0.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKPreviewFile/ik.index.es.js +10 -6
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKSearch/ik.index.es.js +405 -406
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IKSearch/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +187 -188
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +10 -6
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkCalendar/ik.index.es.js +186 -187
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +10 -6
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +254 -250
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +423 -424
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +23 -24
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +410 -405
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +8214 -8206
- package/dist/index.umd.js +71 -71
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as re, openBlock as w, createElementBlock as T, createElementVNode as _, inject as dt, computed as Y, h as Ht, Fragment as X, Teleport as yo, resolveComponent as Wt, createBlock as Q, toDisplayString as G, createCommentVNode as j, ref as Z, unref as R, withCtx as N, createTextVNode as Ae, renderList as fe, createVNode as x, normalizeClass as jn, pushScopeId as on, popScopeId as an, useCssVars as bo, watch as Re, toRef as Ao, reactive as zn, nextTick as Wn, watchEffect as Kr, withModifiers as ye, normalizeStyle as os, withDirectives as Rt, vShow as Eo } from "vue";
|
|
2
2
|
import { _ as be, ikStore as as, ikEvent as So, ikDate as Te } from "iking-utils-pro";
|
|
3
3
|
import { ElCheckbox as st, ElCheckboxGroup as or, ElRadioGroup as ar, ElRadio as cr, ElDialog as cs, ElButton as ht, ElInput as Fn, ElBreadcrumb as _o, ElBreadcrumbItem as wo, vLoading as wn, ElIcon as Je, ElForm as Do, ElFormItem as Tt, ElSelect as Co, ElOption as ei, ElDatePicker as Ke, ElTimePicker as ti, ElMessageBox as Ro, ElMessage as To } from "element-plus";
|
|
4
4
|
import xo from "axios";
|
|
@@ -12,7 +12,7 @@ const ds = (n, e) => {
|
|
|
12
12
|
return n;
|
|
13
13
|
};
|
|
14
14
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
15
|
-
var ko = /* @__PURE__ */
|
|
15
|
+
var ko = /* @__PURE__ */ re({
|
|
16
16
|
name: "Calendar",
|
|
17
17
|
__name: "calendar",
|
|
18
18
|
setup(n) {
|
|
@@ -26,7 +26,7 @@ var ko = /* @__PURE__ */ ie({
|
|
|
26
26
|
})
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
29
|
-
}), Mo = ko, Oo = /* @__PURE__ */
|
|
29
|
+
}), Mo = ko, Oo = /* @__PURE__ */ re({
|
|
30
30
|
name: "Clock",
|
|
31
31
|
__name: "clock",
|
|
32
32
|
setup(n) {
|
|
@@ -48,7 +48,7 @@ var ko = /* @__PURE__ */ ie({
|
|
|
48
48
|
})
|
|
49
49
|
]));
|
|
50
50
|
}
|
|
51
|
-
}), Io = Oo, Po = /* @__PURE__ */
|
|
51
|
+
}), Io = Oo, Po = /* @__PURE__ */ re({
|
|
52
52
|
name: "Close",
|
|
53
53
|
__name: "close",
|
|
54
54
|
setup(n) {
|
|
@@ -62,7 +62,7 @@ var ko = /* @__PURE__ */ ie({
|
|
|
62
62
|
})
|
|
63
63
|
]));
|
|
64
64
|
}
|
|
65
|
-
}), No = Po, Bo = /* @__PURE__ */
|
|
65
|
+
}), No = Po, Bo = /* @__PURE__ */ re({
|
|
66
66
|
name: "DeleteFilled",
|
|
67
67
|
__name: "delete-filled",
|
|
68
68
|
setup(n) {
|
|
@@ -76,7 +76,7 @@ var ko = /* @__PURE__ */ ie({
|
|
|
76
76
|
})
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
|
-
}), Ho = Bo, Lo = /* @__PURE__ */
|
|
79
|
+
}), Ho = Bo, Lo = /* @__PURE__ */ re({
|
|
80
80
|
name: "Location",
|
|
81
81
|
__name: "location",
|
|
82
82
|
setup(n) {
|
|
@@ -94,7 +94,7 @@ var ko = /* @__PURE__ */ ie({
|
|
|
94
94
|
})
|
|
95
95
|
]));
|
|
96
96
|
}
|
|
97
|
-
}), Uo = Lo, Vo = /* @__PURE__ */
|
|
97
|
+
}), Uo = Lo, Vo = /* @__PURE__ */ re({
|
|
98
98
|
name: "User",
|
|
99
99
|
__name: "user",
|
|
100
100
|
setup(n) {
|
|
@@ -361,7 +361,7 @@ function Es(n) {
|
|
|
361
361
|
return null;
|
|
362
362
|
}
|
|
363
363
|
function dr(n, e, t, r, i, s, l, o, a) {
|
|
364
|
-
var d, c, p, f, u, v, h, m, A, b, D,
|
|
364
|
+
var d, c, p, f, u, v, h, m, A, b, D, E, L, B, U, O = e.type;
|
|
365
365
|
if (e.constructor !== void 0)
|
|
366
366
|
return null;
|
|
367
367
|
t.__h != null && (a = t.__h, o = e.__e = t.__e, e.__h = null, s = [o]), (d = k.__b) && d(e);
|
|
@@ -383,13 +383,13 @@ function dr(n, e, t, r, i, s, l, o, a) {
|
|
|
383
383
|
c.componentDidUpdate(f, u, v);
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
if (c.context = b, c.props = m, c.__P = n,
|
|
387
|
-
for (c.state = c.__s, c.__d = !1,
|
|
386
|
+
if (c.context = b, c.props = m, c.__P = n, E = k.__r, L = 0, "prototype" in O && O.prototype.render) {
|
|
387
|
+
for (c.state = c.__s, c.__d = !1, E && E(e), d = c.render(c.props, c.state, c.context), B = 0; B < c._sb.length; B++)
|
|
388
388
|
c.__h.push(c._sb[B]);
|
|
389
389
|
c._sb = [];
|
|
390
390
|
} else
|
|
391
391
|
do
|
|
392
|
-
c.__d = !1,
|
|
392
|
+
c.__d = !1, E && E(e), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
393
393
|
while (c.__d && ++L < 25);
|
|
394
394
|
c.state = c.__s, c.getChildContext != null && (r = xe(xe({}, r), c.getChildContext())), p || c.getSnapshotBeforeUpdate == null || (v = c.getSnapshotBeforeUpdate(f, u)), U = d != null && d.type === F && d.key == null ? d.props.children : d, ys(n, Array.isArray(U) ? U : [U], e, t, r, i, s, l, o, a), c.base = e.__e, e.__h = null, c.__h.length && l.push(c), h && (c.__E = c.__ = null), c.__e = !1;
|
|
395
395
|
} else
|
|
@@ -1122,15 +1122,15 @@ function Ie(n, e, t) {
|
|
|
1122
1122
|
const Ua = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
|
|
1123
1123
|
function Ti(n, e) {
|
|
1124
1124
|
let t = ke(n);
|
|
1125
|
-
return t[2] += e * 7,
|
|
1125
|
+
return t[2] += e * 7, ne(t);
|
|
1126
1126
|
}
|
|
1127
1127
|
function ee(n, e) {
|
|
1128
1128
|
let t = ke(n);
|
|
1129
|
-
return t[2] += e,
|
|
1129
|
+
return t[2] += e, ne(t);
|
|
1130
1130
|
}
|
|
1131
1131
|
function Pe(n, e) {
|
|
1132
1132
|
let t = ke(n);
|
|
1133
|
-
return t[6] += e,
|
|
1133
|
+
return t[6] += e, ne(t);
|
|
1134
1134
|
}
|
|
1135
1135
|
function Va(n, e) {
|
|
1136
1136
|
return Ye(n, e) / 7;
|
|
@@ -1164,14 +1164,14 @@ function Yt(n, e) {
|
|
|
1164
1164
|
return Me(n) === Me(e) ? Math.round(Ye(n, e)) : null;
|
|
1165
1165
|
}
|
|
1166
1166
|
function W(n) {
|
|
1167
|
-
return
|
|
1167
|
+
return ne([
|
|
1168
1168
|
n.getUTCFullYear(),
|
|
1169
1169
|
n.getUTCMonth(),
|
|
1170
1170
|
n.getUTCDate()
|
|
1171
1171
|
]);
|
|
1172
1172
|
}
|
|
1173
1173
|
function Qa(n) {
|
|
1174
|
-
return
|
|
1174
|
+
return ne([
|
|
1175
1175
|
n.getUTCFullYear(),
|
|
1176
1176
|
n.getUTCMonth(),
|
|
1177
1177
|
n.getUTCDate(),
|
|
@@ -1179,7 +1179,7 @@ function Qa(n) {
|
|
|
1179
1179
|
]);
|
|
1180
1180
|
}
|
|
1181
1181
|
function qa(n) {
|
|
1182
|
-
return
|
|
1182
|
+
return ne([
|
|
1183
1183
|
n.getUTCFullYear(),
|
|
1184
1184
|
n.getUTCMonth(),
|
|
1185
1185
|
n.getUTCDate(),
|
|
@@ -1188,7 +1188,7 @@ function qa(n) {
|
|
|
1188
1188
|
]);
|
|
1189
1189
|
}
|
|
1190
1190
|
function Ya(n) {
|
|
1191
|
-
return
|
|
1191
|
+
return ne([
|
|
1192
1192
|
n.getUTCFullYear(),
|
|
1193
1193
|
n.getUTCMonth(),
|
|
1194
1194
|
n.getUTCDate(),
|
|
@@ -1205,12 +1205,12 @@ function $a(n, e, t) {
|
|
|
1205
1205
|
return s >= 1 ? Math.min(i, s) : i;
|
|
1206
1206
|
}
|
|
1207
1207
|
function xn(n, e, t, r) {
|
|
1208
|
-
let i =
|
|
1208
|
+
let i = ne([e, 0, 1 + Za(e, t, r)]), s = W(n), l = Math.round(Ye(i, s));
|
|
1209
1209
|
return Math.floor(l / 7) + 1;
|
|
1210
1210
|
}
|
|
1211
1211
|
function Za(n, e, t) {
|
|
1212
1212
|
let r = 7 + e - t;
|
|
1213
|
-
return -((7 +
|
|
1213
|
+
return -((7 + ne([n, 0, r]).getUTCDay() - e) % 7) + r - 1;
|
|
1214
1214
|
}
|
|
1215
1215
|
function xi(n) {
|
|
1216
1216
|
return [
|
|
@@ -1245,7 +1245,7 @@ function ke(n) {
|
|
|
1245
1245
|
n.getUTCMilliseconds()
|
|
1246
1246
|
];
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function ne(n) {
|
|
1249
1249
|
return n.length === 1 && (n = n.concat([0])), new Date(Date.UTC(...n));
|
|
1250
1250
|
}
|
|
1251
1251
|
function Hs(n) {
|
|
@@ -1891,7 +1891,7 @@ class Ec {
|
|
|
1891
1891
|
return e.getUTCDate();
|
|
1892
1892
|
}
|
|
1893
1893
|
arrayToMarker(e) {
|
|
1894
|
-
return
|
|
1894
|
+
return ne(e);
|
|
1895
1895
|
}
|
|
1896
1896
|
markerToArray(e) {
|
|
1897
1897
|
return ke(e);
|
|
@@ -1925,13 +1925,13 @@ class wc {
|
|
|
1925
1925
|
return t === null ? null : t.marker;
|
|
1926
1926
|
}
|
|
1927
1927
|
createNowMarker() {
|
|
1928
|
-
return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) :
|
|
1928
|
+
return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) : ne(xi(/* @__PURE__ */ new Date()));
|
|
1929
1929
|
}
|
|
1930
1930
|
createMarkerMeta(e) {
|
|
1931
1931
|
if (typeof e == "string")
|
|
1932
1932
|
return this.parse(e);
|
|
1933
1933
|
let t = null;
|
|
1934
|
-
return typeof e == "number" ? t = this.timestampToMarker(e) : e instanceof Date ? (e = e.valueOf(), isNaN(e) || (t = this.timestampToMarker(e))) : Array.isArray(e) && (t =
|
|
1934
|
+
return typeof e == "number" ? t = this.timestampToMarker(e) : e instanceof Date ? (e = e.valueOf(), isNaN(e) || (t = this.timestampToMarker(e))) : Array.isArray(e) && (t = ne(e)), t === null || !Hs(t) ? null : { marker: t, isTimeUnspecified: !1, forcedTzo: null };
|
|
1935
1935
|
}
|
|
1936
1936
|
parse(e) {
|
|
1937
1937
|
let t = _c(e);
|
|
@@ -2038,7 +2038,7 @@ class wc {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
// TimeZone
|
|
2040
2040
|
timestampToMarker(e) {
|
|
2041
|
-
return this.timeZone === "local" ?
|
|
2041
|
+
return this.timeZone === "local" ? ne(xi(new Date(e))) : this.timeZone === "UTC" || !this.namedTimeZoneImpl ? new Date(e) : ne(this.namedTimeZoneImpl.timestampToArray(e));
|
|
2042
2042
|
}
|
|
2043
2043
|
offsetForMarker(e) {
|
|
2044
2044
|
return this.timeZone === "local" ? -ki(ke(e)).getTimezoneOffset() : this.timeZone === "UTC" ? 0 : this.namedTimeZoneImpl ? this.namedTimeZoneImpl.offsetForArray(ke(e)) : null;
|
|
@@ -4327,8 +4327,8 @@ class ml {
|
|
|
4327
4327
|
(A = m[D]) && // but not past the whole entry list
|
|
4328
4328
|
A.span.start < e.span.end;
|
|
4329
4329
|
) {
|
|
4330
|
-
let
|
|
4331
|
-
|
|
4330
|
+
let E = h + this.getEntryThickness(A);
|
|
4331
|
+
E > o && (o = E, c = A, a = v, d = D), E === o && (p = Math.max(p, s[We(A)] + 1)), D += 1;
|
|
4332
4332
|
}
|
|
4333
4333
|
}
|
|
4334
4334
|
let f = 0;
|
|
@@ -4726,10 +4726,10 @@ function ru(n, e, t, r) {
|
|
|
4726
4726
|
let h = a[v], m = h.range, A = d[h.defId], b = o[h.defId];
|
|
4727
4727
|
if (!Dl(A.constraints, m, c, n.businessHours, e))
|
|
4728
4728
|
return !1;
|
|
4729
|
-
let { eventOverlap: D } = e.options,
|
|
4729
|
+
let { eventOverlap: D } = e.options, E = typeof D == "function" ? D : null;
|
|
4730
4730
|
for (let B in f) {
|
|
4731
4731
|
let U = f[B];
|
|
4732
|
-
if (_r(m, U.range) && (u[U.defId].overlap === !1 && s.isEvent || A.overlap === !1 ||
|
|
4732
|
+
if (_r(m, U.range) && (u[U.defId].overlap === !1 && s.isEvent || A.overlap === !1 || E && !E(
|
|
4733
4733
|
new q(e, p[U.defId], U),
|
|
4734
4734
|
// still event
|
|
4735
4735
|
new q(e, b, h)
|
|
@@ -4738,8 +4738,8 @@ function ru(n, e, t, r) {
|
|
|
4738
4738
|
}
|
|
4739
4739
|
let L = i.eventStore;
|
|
4740
4740
|
for (let B of A.allows) {
|
|
4741
|
-
let U = Object.assign(Object.assign({}, t), { range: h.range, allDay: b.allDay }), O = L.defs[b.defId], J = L.instances[v],
|
|
4742
|
-
if (O ?
|
|
4741
|
+
let U = Object.assign(Object.assign({}, t), { range: h.range, allDay: b.allDay }), O = L.defs[b.defId], J = L.instances[v], ie;
|
|
4742
|
+
if (O ? ie = new q(e, O, J) : ie = new q(e, b), !B(Tr(U, e), ie))
|
|
4743
4743
|
return !1;
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
@@ -5902,13 +5902,13 @@ function af(n, e, t, r, i, s) {
|
|
|
5902
5902
|
return { widgets: f.map((m) => m.split(",").map((A) => {
|
|
5903
5903
|
if (A === "title")
|
|
5904
5904
|
return v = !0, { buttonName: A };
|
|
5905
|
-
let b, D,
|
|
5905
|
+
let b, D, E, L, B, U;
|
|
5906
5906
|
if (b = o[A])
|
|
5907
|
-
|
|
5907
|
+
E = (O) => {
|
|
5908
5908
|
b.click && b.click.call(O.target, O, O.target);
|
|
5909
5909
|
}, (L = r.getCustomButtonIconClass(b)) || (L = r.getIconClass(A, l)) || (B = b.text), U = b.hint || b.text;
|
|
5910
5910
|
else if (D = i[A]) {
|
|
5911
|
-
u.push(A),
|
|
5911
|
+
u.push(A), E = () => {
|
|
5912
5912
|
s.changeView(A);
|
|
5913
5913
|
}, (B = D.buttonTextOverride) || (L = r.getIconClass(A, l)) || (B = D.buttonTextDefault);
|
|
5914
5914
|
let O = D.buttonTextOverride || D.buttonTextDefault;
|
|
@@ -5919,7 +5919,7 @@ function af(n, e, t, r, i, s) {
|
|
|
5919
5919
|
O
|
|
5920
5920
|
);
|
|
5921
5921
|
} else if (s[A])
|
|
5922
|
-
if (
|
|
5922
|
+
if (E = () => {
|
|
5923
5923
|
s[A]();
|
|
5924
5924
|
}, (B = a[A]) || (L = r.getIconClass(A, l)) || (B = d[A]), A === "prevYear" || A === "nextYear") {
|
|
5925
5925
|
let O = A === "prevYear" ? "prev" : "next";
|
|
@@ -5932,7 +5932,7 @@ function af(n, e, t, r, i, s) {
|
|
|
5932
5932
|
d[O] || O,
|
|
5933
5933
|
O
|
|
5934
5934
|
], d[A]);
|
|
5935
|
-
return { buttonName: A, buttonClick:
|
|
5935
|
+
return { buttonName: A, buttonClick: E, buttonIcon: L, buttonText: B, buttonHint: U };
|
|
5936
5936
|
})), viewsWithButtons: u, hasTitle: v };
|
|
5937
5937
|
}
|
|
5938
5938
|
class cf {
|
|
@@ -6235,7 +6235,7 @@ class xf {
|
|
|
6235
6235
|
this.data && this.data.dateProfileGenerator !== a.dateProfileGenerator && (p = a.dateProfileGenerator.build(c)), c = Hc(c, e), p = qu(p, e, c, a.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
6236
6236
|
e.type === "NEXT" || // "
|
|
6237
6237
|
!Se(p.currentRange, c)) && (c = p.currentRange.start);
|
|
6238
|
-
let f = $u(r.eventSources, e, p, d), u = Xc(r.eventStore, e, f, p, d), h = Ll(f) && !a.options.progressiveEventRendering && r.renderableEventStore || u, { eventUiSingleBase: m, selectionConfig: A } = this.buildViewUiProps(d), b = this.buildEventUiBySource(f), D = this.buildEventUiBases(h.defs, m, b),
|
|
6238
|
+
let f = $u(r.eventSources, e, p, d), u = Xc(r.eventStore, e, f, p, d), h = Ll(f) && !a.options.progressiveEventRendering && r.renderableEventStore || u, { eventUiSingleBase: m, selectionConfig: A } = this.buildViewUiProps(d), b = this.buildEventUiBySource(f), D = this.buildEventUiBases(h.defs, m, b), E = {
|
|
6239
6239
|
dynamicOptionOverrides: s,
|
|
6240
6240
|
currentViewType: o,
|
|
6241
6241
|
currentDate: c,
|
|
@@ -6250,11 +6250,11 @@ class xf {
|
|
|
6250
6250
|
eventSelection: rf(r.eventSelection, e),
|
|
6251
6251
|
eventDrag: sf(r.eventDrag, e),
|
|
6252
6252
|
eventResize: lf(r.eventResize, e)
|
|
6253
|
-
}, L = Object.assign(Object.assign({}, d),
|
|
6253
|
+
}, L = Object.assign(Object.assign({}, d), E);
|
|
6254
6254
|
for (let O of l.pluginHooks.reducers)
|
|
6255
|
-
Object.assign(
|
|
6256
|
-
let B = Un(r, d), U = Un(
|
|
6257
|
-
!B && U ? i.trigger("loading", !0) : B && !U && i.trigger("loading", !1), this.state =
|
|
6255
|
+
Object.assign(E, O(r, e, L));
|
|
6256
|
+
let B = Un(r, d), U = Un(E, d);
|
|
6257
|
+
!B && U ? i.trigger("loading", !0) : B && !U && i.trigger("loading", !1), this.state = E, t.onAction && t.onAction(e);
|
|
6258
6258
|
}
|
|
6259
6259
|
updateData() {
|
|
6260
6260
|
let { props: e, state: t } = this, r = this.data, i = this.computeOptionsData(e.optionOverrides, t.dynamicOptionOverrides, e.calendarApi), s = this.computeCurrentViewData(t.currentViewType, i, e.optionOverrides, t.dynamicOptionOverrides), l = this.data = Object.assign(Object.assign(Object.assign({ viewTitle: this.buildTitle(t.dateProfile, s.options, i.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, i), s), t), o = i.pluginHooks.optionChangeHandlers, a = r && r.calendarOptions, d = i.calendarOptions;
|
|
@@ -6730,7 +6730,7 @@ const Qf = {
|
|
|
6730
6730
|
events: !0,
|
|
6731
6731
|
eventSources: !0,
|
|
6732
6732
|
resources: !0
|
|
6733
|
-
}, qf =
|
|
6733
|
+
}, qf = re({
|
|
6734
6734
|
props: {
|
|
6735
6735
|
options: Object
|
|
6736
6736
|
},
|
|
@@ -6782,7 +6782,7 @@ const Qf = {
|
|
|
6782
6782
|
this.getApi().destroy();
|
|
6783
6783
|
},
|
|
6784
6784
|
watch: Zf()
|
|
6785
|
-
}), Yf = qf, $f =
|
|
6785
|
+
}), Yf = qf, $f = re({
|
|
6786
6786
|
props: {
|
|
6787
6787
|
customRendering: Object
|
|
6788
6788
|
},
|
|
@@ -7120,9 +7120,9 @@ function ch(n, e, t, r, i, s, l) {
|
|
|
7120
7120
|
absoluteTop: 0,
|
|
7121
7121
|
marginTop: 0
|
|
7122
7122
|
});
|
|
7123
|
-
for (let
|
|
7124
|
-
h[
|
|
7125
|
-
seg: it(b,
|
|
7123
|
+
for (let E = D.start; E < D.end; E += 1)
|
|
7124
|
+
h[E] += 1, f[E].push({
|
|
7125
|
+
seg: it(b, E, E + 1, l),
|
|
7126
7126
|
isVisible: !1,
|
|
7127
7127
|
isAbsolute: !1,
|
|
7128
7128
|
absoluteTop: 0,
|
|
@@ -7281,13 +7281,13 @@ class $l extends ge {
|
|
|
7281
7281
|
let { context: a } = this, { eventSelection: d } = this.props, { framePositions: c } = this.state, p = this.props.cells.length === 1, f = s || l || o, u = [];
|
|
7282
7282
|
if (c)
|
|
7283
7283
|
for (let v of t) {
|
|
7284
|
-
let { seg: h } = v, { instanceId: m } = h.eventRange.instance, A = v.isVisible && !i[m], b = v.isAbsolute, D = "",
|
|
7285
|
-
b && (a.isRtl ? (
|
|
7284
|
+
let { seg: h } = v, { instanceId: m } = h.eventRange.instance, A = v.isVisible && !i[m], b = v.isAbsolute, D = "", E = "";
|
|
7285
|
+
b && (a.isRtl ? (E = 0, D = c.lefts[h.lastCol] - c.lefts[h.firstCol]) : (D = 0, E = c.rights[h.firstCol] - c.rights[h.lastCol])), u.push(g("div", { className: "fc-daygrid-event-harness" + (b ? " fc-daygrid-event-harness-abs" : ""), key: ql(h), ref: f ? null : this.segHarnessRefs.createRef(Yl(h)), style: {
|
|
7286
7286
|
visibility: A ? "" : "hidden",
|
|
7287
7287
|
marginTop: b ? "" : v.marginTop,
|
|
7288
7288
|
top: b ? v.absoluteTop : "",
|
|
7289
7289
|
left: D,
|
|
7290
|
-
right:
|
|
7290
|
+
right: E
|
|
7291
7291
|
} }, Fl(h) ? g(Ql, Object.assign({ seg: h, isDragging: s, isSelected: m === d, defaultDisplayEventEnd: p }, Oe(h, r))) : g(Gl, Object.assign({ seg: h, isDragging: s, isResizing: l, isDateSelecting: o, isSelected: m === d, defaultDisplayEventEnd: p }, Oe(h, r)))));
|
|
7292
7292
|
}
|
|
7293
7293
|
return u;
|
|
@@ -8227,11 +8227,11 @@ class $h extends z {
|
|
|
8227
8227
|
F,
|
|
8228
8228
|
null,
|
|
8229
8229
|
this.renderHiddenGroups(D, e),
|
|
8230
|
-
b.map((
|
|
8231
|
-
let { seg: L, rect: B } =
|
|
8230
|
+
b.map((E) => {
|
|
8231
|
+
let { seg: L, rect: B } = E, U = L.eventRange.instance.instanceId, O = m || !!(!t[U] && B), J = Vn(B && B.span), ie = !m && B ? this.computeSegHStyle(B) : { left: 0, right: 0 }, vn = !!B && B.stackForward > 0, Ze = !!B && B.span.end - B.span.start < a;
|
|
8232
8232
|
return g(
|
|
8233
8233
|
"div",
|
|
8234
|
-
{ className: "fc-timegrid-event-harness" + (vn ? " fc-timegrid-event-harness-inset" : ""), key: l || U, style: Object.assign(Object.assign({ visibility: O ? "" : "hidden" }, J),
|
|
8234
|
+
{ className: "fc-timegrid-event-harness" + (vn ? " fc-timegrid-event-harness-inset" : ""), key: l || U, style: Object.assign(Object.assign({ visibility: O ? "" : "hidden" }, J), ie) },
|
|
8235
8235
|
g(Jl, Object.assign({ seg: L, isDragging: r, isResizing: i, isDateSelecting: s, isSelected: U === u, isShort: Ze }, Oe(L, v, h)))
|
|
8236
8236
|
);
|
|
8237
8237
|
})
|
|
@@ -8407,10 +8407,10 @@ class Kh extends ge {
|
|
|
8407
8407
|
queryHit(e, t) {
|
|
8408
8408
|
let { dateEnv: r, options: i } = this.context, { colCoords: s } = this, { dateProfile: l } = this.props, { slatCoords: o } = this.state, { snapDuration: a, snapsPerSlot: d } = this.processSlotOptions(this.props.slotDuration, i.snapDuration), c = s.leftToIndex(e), p = o.positions.topToIndex(t);
|
|
8409
8409
|
if (c != null && p != null) {
|
|
8410
|
-
let f = this.props.cells[c], u = o.positions.tops[p], v = o.positions.getHeight(p), h = (t - u) / v, m = Math.floor(h * d), A = p * d + m, b = this.props.cells[c].date, D = Yn(l.slotMinTime, Ba(a, A)),
|
|
8410
|
+
let f = this.props.cells[c], u = o.positions.tops[p], v = o.positions.getHeight(p), h = (t - u) / v, m = Math.floor(h * d), A = p * d + m, b = this.props.cells[c].date, D = Yn(l.slotMinTime, Ba(a, A)), E = r.add(b, D), L = r.add(E, a);
|
|
8411
8411
|
return {
|
|
8412
8412
|
dateProfile: l,
|
|
8413
|
-
dateSpan: Object.assign({ range: { start:
|
|
8413
|
+
dateSpan: Object.assign({ range: { start: E, end: L }, allDay: !1 }, f.extraDateSpan),
|
|
8414
8414
|
dayEl: s.els[c],
|
|
8415
8415
|
rect: {
|
|
8416
8416
|
left: s.lefts[c],
|
|
@@ -9153,8 +9153,8 @@ class wt extends ct {
|
|
|
9153
9153
|
});
|
|
9154
9154
|
}
|
|
9155
9155
|
}, D = {};
|
|
9156
|
-
for (let
|
|
9157
|
-
Object.assign(D,
|
|
9156
|
+
for (let E of o.getCurrentData().pluginHooks.eventDropTransformers)
|
|
9157
|
+
Object.assign(D, E(c, o));
|
|
9158
9158
|
o.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, b), D), { el: l.subjectEl, delta: c.datesDelta, jsEvent: l.origEvent, view: a })), o.emitter.trigger("eventChange", b);
|
|
9159
9159
|
} else if (d) {
|
|
9160
9160
|
let A = {
|
|
@@ -9171,13 +9171,13 @@ class wt extends ct {
|
|
|
9171
9171
|
type: "REMOVE_EVENTS",
|
|
9172
9172
|
eventStore: v
|
|
9173
9173
|
}), o.emitter.trigger("eventRemove", A);
|
|
9174
|
-
let b = h.defs[p.defId], D = h.instances[f.instanceId],
|
|
9174
|
+
let b = h.defs[p.defId], D = h.instances[f.instanceId], E = new q(d, b, D);
|
|
9175
9175
|
d.dispatch({
|
|
9176
9176
|
type: "MERGE_EVENTS",
|
|
9177
9177
|
eventStore: h
|
|
9178
9178
|
});
|
|
9179
9179
|
let L = {
|
|
9180
|
-
event:
|
|
9180
|
+
event: E,
|
|
9181
9181
|
relatedEvents: ze(h, d, D),
|
|
9182
9182
|
revert() {
|
|
9183
9183
|
d.dispatch({
|
|
@@ -9551,7 +9551,7 @@ const hg = /* @__PURE__ */ pe(og, [["render", fg]]), pg = { class: "avatar" }, g
|
|
|
9551
9551
|
}, mg = {
|
|
9552
9552
|
key: 1,
|
|
9553
9553
|
class: "avatar_name"
|
|
9554
|
-
}, vg = /* @__PURE__ */
|
|
9554
|
+
}, vg = /* @__PURE__ */ re({
|
|
9555
9555
|
__name: "Avatar",
|
|
9556
9556
|
props: {
|
|
9557
9557
|
fixPropOpt: {
|
|
@@ -9699,7 +9699,7 @@ const le = /* @__PURE__ */ pe(vg, [["__scopeId", "data-v-8031ce9b"]]), Wr = "dat
|
|
|
9699
9699
|
null,
|
|
9700
9700
|
-1
|
|
9701
9701
|
/* HOISTED */
|
|
9702
|
-
)), Qg = /* @__PURE__ */
|
|
9702
|
+
)), Qg = /* @__PURE__ */ re({
|
|
9703
9703
|
__name: "GroupList",
|
|
9704
9704
|
props: Fr,
|
|
9705
9705
|
emits: ["change", "check", "handChild"],
|
|
@@ -9711,7 +9711,7 @@ const le = /* @__PURE__ */ pe(vg, [["__scopeId", "data-v-8031ce9b"]]), Wr = "dat
|
|
|
9711
9711
|
}), i = Y(() => {
|
|
9712
9712
|
var m, A, b, D;
|
|
9713
9713
|
const v = (m = t.handList) == null ? void 0 : m.length, h = (A = t.list) == null ? void 0 : A.length;
|
|
9714
|
-
return t.multiple ? s.value = t.handList.map((
|
|
9714
|
+
return t.multiple ? s.value = t.handList.map((E) => E[t.fixPropOpt.id]) : l.value = (D = (b = t.handList) == null ? void 0 : b[0]) == null ? void 0 : D[t.fixPropOpt.id], v > 0 && v < h;
|
|
9715
9715
|
}), s = Z(
|
|
9716
9716
|
t.handList.map((v) => v[t.fixPropOpt.id])
|
|
9717
9717
|
), l = Z((u = (f = t.handList) == null ? void 0 : f[0]) == null ? void 0 : u[t.fixPropOpt.id]), o = e, a = (v) => {
|
|
@@ -9837,7 +9837,7 @@ const le = /* @__PURE__ */ pe(vg, [["__scopeId", "data-v-8031ce9b"]]), Wr = "dat
|
|
|
9837
9837
|
var D;
|
|
9838
9838
|
return p(
|
|
9839
9839
|
m,
|
|
9840
|
-
(D = s.value) == null ? void 0 : D.find((
|
|
9840
|
+
(D = s.value) == null ? void 0 : D.find((E) => E === m[t.fixPropOpt.id])
|
|
9841
9841
|
);
|
|
9842
9842
|
}
|
|
9843
9843
|
}, " 下级", 10, Mg)) : j("v-if", !0)
|
|
@@ -9938,7 +9938,7 @@ const le = /* @__PURE__ */ pe(vg, [["__scopeId", "data-v-8031ce9b"]]), Wr = "dat
|
|
|
9938
9938
|
var D;
|
|
9939
9939
|
return p(
|
|
9940
9940
|
m,
|
|
9941
|
-
(D = s.value) == null ? void 0 : D.find((
|
|
9941
|
+
(D = s.value) == null ? void 0 : D.find((E) => E === m[t.fixPropOpt.id])
|
|
9942
9942
|
);
|
|
9943
9943
|
}
|
|
9944
9944
|
}, " 下级", 10, Wg)) : j("v-if", !0)
|
|
@@ -10001,7 +10001,7 @@ const qg = /* @__PURE__ */ pe(Qg, [["__scopeId", "data-v-8c34a55d"]]), Qr = (n)
|
|
|
10001
10001
|
null,
|
|
10002
10002
|
-1
|
|
10003
10003
|
/* HOISTED */
|
|
10004
|
-
)), cm = /* @__PURE__ */
|
|
10004
|
+
)), cm = /* @__PURE__ */ re({
|
|
10005
10005
|
__name: "PostList",
|
|
10006
10006
|
props: Fr,
|
|
10007
10007
|
emits: ["change", "check"],
|
|
@@ -10221,7 +10221,7 @@ const dm = /* @__PURE__ */ pe(cm, [["__scopeId", "data-v-e03f0d36"]]), qr = (n)
|
|
|
10221
10221
|
null,
|
|
10222
10222
|
-1
|
|
10223
10223
|
/* HOISTED */
|
|
10224
|
-
)), Tm = /* @__PURE__ */
|
|
10224
|
+
)), Tm = /* @__PURE__ */ re({
|
|
10225
10225
|
__name: "RoleList",
|
|
10226
10226
|
props: Fr,
|
|
10227
10227
|
emits: ["change", "check"],
|
|
@@ -10620,9 +10620,9 @@ const km = {
|
|
|
10620
10620
|
roles: A,
|
|
10621
10621
|
posts: b,
|
|
10622
10622
|
users: D,
|
|
10623
|
-
rootOrganization:
|
|
10623
|
+
rootOrganization: E,
|
|
10624
10624
|
rootDepartment: L
|
|
10625
|
-
} = h, B =
|
|
10625
|
+
} = h, B = E || L;
|
|
10626
10626
|
return t.value.length === 0 && (t.value[0] = e.org ? {
|
|
10627
10627
|
...e.org,
|
|
10628
10628
|
id: e.elementId,
|
|
@@ -10635,7 +10635,7 @@ const km = {
|
|
|
10635
10635
|
roleList: be.cloneDeep(A),
|
|
10636
10636
|
postList: be.cloneDeep(b),
|
|
10637
10637
|
userList: be.cloneDeep(D),
|
|
10638
|
-
rootOrganization:
|
|
10638
|
+
rootOrganization: E,
|
|
10639
10639
|
rootDepartment: L
|
|
10640
10640
|
};
|
|
10641
10641
|
};
|
|
@@ -10661,13 +10661,13 @@ const km = {
|
|
|
10661
10661
|
"已选",
|
|
10662
10662
|
-1
|
|
10663
10663
|
/* HOISTED */
|
|
10664
|
-
), Vm = { class: "choose-box" }, jm = { class: "list-group-item" }, zm = { class: "item_info" }, Wm = { class: "avatar_box" }, Fm = { class: "dialog-footer" }, Gm = /* @__PURE__ */
|
|
10664
|
+
), Vm = { class: "choose-box" }, jm = { class: "list-group-item" }, zm = { class: "item_info" }, Wm = { class: "avatar_box" }, Fm = { class: "dialog-footer" }, Gm = /* @__PURE__ */ re({
|
|
10665
10665
|
__name: "picker",
|
|
10666
10666
|
props: km,
|
|
10667
10667
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
10668
10668
|
setup(n, { expose: e, emit: t }) {
|
|
10669
|
-
bo((
|
|
10670
|
-
"
|
|
10669
|
+
bo((S) => ({
|
|
10670
|
+
"775d0d08": Xr.value
|
|
10671
10671
|
}));
|
|
10672
10672
|
const r = n, i = Z(""), s = Z(""), l = Z([]), o = Z([]), a = Z([]), d = Z([]), c = Z(!1), p = Y(() => J.value.includes("user") ? o.value.concat(l.value) : o.value);
|
|
10673
10673
|
Re(
|
|
@@ -10690,16 +10690,16 @@ const km = {
|
|
|
10690
10690
|
...r.typeOption
|
|
10691
10691
|
})), v = Z([]), h = Im(Ao(r, "api"), r), m = h.handData, A = h.bannerList;
|
|
10692
10692
|
r.immediate && m(s.value, i.value);
|
|
10693
|
-
const b = (
|
|
10693
|
+
const b = (S) => (S.forEach((C) => {
|
|
10694
10694
|
var I, P;
|
|
10695
10695
|
C.disabled = ((P = (I = r.modelValue) == null ? void 0 : I.find(
|
|
10696
10696
|
(V) => V[f.value.id] === C[f.value.id]
|
|
10697
10697
|
)) == null ? void 0 : P.disabled) || !1;
|
|
10698
|
-
}),
|
|
10699
|
-
var
|
|
10698
|
+
}), S), D = async () => {
|
|
10699
|
+
var S, C, I, P, V, me, _n, Jr;
|
|
10700
10700
|
c.value = !0;
|
|
10701
10701
|
try {
|
|
10702
|
-
if ((
|
|
10702
|
+
if ((S = r.groupList) != null && S.length || (C = r.userList) != null && C.length || (I = r.roleList) != null && I.length || (P = r.postList) != null && P.length) {
|
|
10703
10703
|
l.value = (V = r.userList) == null ? void 0 : V.filter(
|
|
10704
10704
|
(ve) => ve[f.value.name].includes(i.value)
|
|
10705
10705
|
), o.value = (me = r.groupList) == null ? void 0 : me.filter(
|
|
@@ -10721,7 +10721,7 @@ const km = {
|
|
|
10721
10721
|
} catch {
|
|
10722
10722
|
c.value = !1;
|
|
10723
10723
|
}
|
|
10724
|
-
},
|
|
10724
|
+
}, E = zn({
|
|
10725
10725
|
//组织架构
|
|
10726
10726
|
group: /* @__PURE__ */ new Map(),
|
|
10727
10727
|
// 用户
|
|
@@ -10737,10 +10737,10 @@ const km = {
|
|
|
10737
10737
|
}), L = zn({
|
|
10738
10738
|
indeterminate: !1,
|
|
10739
10739
|
checkAll: 0
|
|
10740
|
-
}), B = (
|
|
10741
|
-
const
|
|
10742
|
-
return v.value = [...C, ...P, ...I, ...
|
|
10743
|
-
list: [...C, ...I, ...P, ...
|
|
10740
|
+
}), B = (S) => E.group.has(S) || E.user.has(S) || E.role.has(S) || E.post.has(S), U = So.debounce(D, 300), O = Y(() => {
|
|
10741
|
+
const S = Array.from(E.group.values()), C = Array.from(E.role.values()), I = Array.from(E.user.values()), P = Array.from(E.post.values());
|
|
10742
|
+
return v.value = [...C, ...P, ...I, ...S], {
|
|
10743
|
+
list: [...C, ...I, ...P, ...S],
|
|
10744
10744
|
role: {
|
|
10745
10745
|
list: C,
|
|
10746
10746
|
len: C.length
|
|
@@ -10754,117 +10754,116 @@ const km = {
|
|
|
10754
10754
|
len: P.length
|
|
10755
10755
|
},
|
|
10756
10756
|
groups: {
|
|
10757
|
-
list:
|
|
10758
|
-
len:
|
|
10757
|
+
list: S,
|
|
10758
|
+
len: S.length
|
|
10759
10759
|
}
|
|
10760
10760
|
};
|
|
10761
10761
|
}), J = Y(() => {
|
|
10762
|
-
const
|
|
10763
|
-
let C = [...
|
|
10764
|
-
return
|
|
10765
|
-
}),
|
|
10766
|
-
|
|
10762
|
+
const S = r.chooseType.map((I) => I.toLocaleLowerCase());
|
|
10763
|
+
let C = [...S];
|
|
10764
|
+
return S.includes("dep") && (C = [...C, "dept"]), S.includes("dep_user") && (C = [...C, "user"]), C;
|
|
10765
|
+
}), ie = Z([]), vn = (S) => {
|
|
10766
|
+
ie.value = S, ie.value.forEach((C) => {
|
|
10767
10767
|
C.readonly = C == null ? void 0 : C.disabled;
|
|
10768
10768
|
});
|
|
10769
|
-
}, Ze = t, yn = Z(!1), bn = (
|
|
10769
|
+
}, Ze = t, yn = Z(!1), bn = (S = !1) => {
|
|
10770
10770
|
var I;
|
|
10771
10771
|
const C = (I = r == null ? void 0 : r.userList) != null && I.length ? be.cloneDeep([...r == null ? void 0 : r.userList, ...r == null ? void 0 : r.groupList]) : [...o.value, ...l.value];
|
|
10772
|
-
return !
|
|
10772
|
+
return !S && vn(C), C;
|
|
10773
10773
|
};
|
|
10774
10774
|
Re(
|
|
10775
10775
|
() => r.show,
|
|
10776
|
-
async (
|
|
10776
|
+
async (S) => {
|
|
10777
10777
|
var C;
|
|
10778
|
-
if (yn.value =
|
|
10779
|
-
s.value = ((C = r.org) == null ? void 0 : C.elementId) || r.orgPid, !r.userList.length && !r.groupList.length && !r.roleList.length && !r.postList.length ? await D() : (l.value = r.userList, o.value = r.groupList, a.value = r.roleList, d.value = r.postList),
|
|
10778
|
+
if (yn.value = S, S) {
|
|
10779
|
+
s.value = ((C = r.org) == null ? void 0 : C.elementId) || r.orgPid, !r.userList.length && !r.groupList.length && !r.roleList.length && !r.postList.length ? await D() : (l.value = r.userList, o.value = r.groupList, a.value = r.roleList, d.value = r.postList), E.trans = [], L.checkAll = 0, L.indeterminate = !1;
|
|
10780
10780
|
const I = bn(!0);
|
|
10781
10781
|
for (const V of I)
|
|
10782
|
-
B(V[f.value.id]) &&
|
|
10783
|
-
const P = I.length ===
|
|
10782
|
+
B(V[f.value.id]) && E.trans.push(V[f.value.id]);
|
|
10783
|
+
const P = I.length === E.trans.length;
|
|
10784
10784
|
L.indeterminate = !!(I.length && !P), L.checkAll = Number(I.length && P), Wn(() => {
|
|
10785
10785
|
var V;
|
|
10786
10786
|
(V = r.modelValue) != null && V.length ? r.modelValue.forEach((me) => {
|
|
10787
|
-
Be(me), r.multiple ?
|
|
10787
|
+
Be(me), r.multiple ? E.trans.push(me[f.value.id]) : E.single = me[f.value.id];
|
|
10788
10788
|
}) : Le();
|
|
10789
10789
|
});
|
|
10790
10790
|
} else
|
|
10791
10791
|
Le();
|
|
10792
10792
|
}
|
|
10793
10793
|
), Kr(() => {
|
|
10794
|
-
let
|
|
10795
|
-
|
|
10796
|
-
const C =
|
|
10797
|
-
L.indeterminate =
|
|
10794
|
+
let S;
|
|
10795
|
+
S = ie.value.length;
|
|
10796
|
+
const C = E.trans.length;
|
|
10797
|
+
L.indeterminate = E.trans.length ? C !== S : !1, L.checkAll = +(S !== 0 && C === S);
|
|
10798
10798
|
}), Re(
|
|
10799
10799
|
() => r.modelValue,
|
|
10800
|
-
(
|
|
10801
|
-
|
|
10802
|
-
Be(C), r.multiple ?
|
|
10800
|
+
(S) => {
|
|
10801
|
+
S != null && S.length ? S.forEach((C) => {
|
|
10802
|
+
Be(C), r.multiple ? E.trans.push(C[f.value.id]) : E.single = C[f.value.id];
|
|
10803
10803
|
}) : Le();
|
|
10804
10804
|
}
|
|
10805
10805
|
);
|
|
10806
|
-
const Xe = (
|
|
10806
|
+
const Xe = (S) => {
|
|
10807
10807
|
var C;
|
|
10808
|
-
if (
|
|
10809
|
-
if (
|
|
10810
|
-
const I = (C =
|
|
10811
|
-
(P) => P ===
|
|
10808
|
+
if (S) {
|
|
10809
|
+
if (E.single = "", S[f.value.id]) {
|
|
10810
|
+
const I = (C = E.trans) == null ? void 0 : C.findIndex(
|
|
10811
|
+
(P) => P === S[f.value.id]
|
|
10812
10812
|
);
|
|
10813
|
-
I !== -1 &&
|
|
10813
|
+
I !== -1 && E.trans.splice(I, 1);
|
|
10814
10814
|
}
|
|
10815
|
-
switch (
|
|
10815
|
+
switch (S[f.value.type]) {
|
|
10816
10816
|
case u.value.user:
|
|
10817
|
-
return
|
|
10817
|
+
return E.user.delete(S[f.value.id]);
|
|
10818
10818
|
case u.value.role:
|
|
10819
|
-
return
|
|
10819
|
+
return E.role.delete(S[f.value.id]);
|
|
10820
10820
|
case u.value.post:
|
|
10821
|
-
return
|
|
10821
|
+
return E.post.delete(S[f.value.id]);
|
|
10822
10822
|
case u.value.group:
|
|
10823
|
-
return
|
|
10823
|
+
return E.group.delete(S[f.value.id]);
|
|
10824
10824
|
default:
|
|
10825
10825
|
return;
|
|
10826
10826
|
}
|
|
10827
10827
|
}
|
|
10828
|
-
}, Yr = (
|
|
10829
|
-
|
|
10830
|
-
}, Be = (
|
|
10831
|
-
if (!B(
|
|
10828
|
+
}, Yr = (S) => {
|
|
10829
|
+
Xe(S);
|
|
10830
|
+
}, Be = (S) => {
|
|
10831
|
+
if (!B(S[f.value.id])) {
|
|
10832
10832
|
const C = {
|
|
10833
|
-
...
|
|
10833
|
+
...S
|
|
10834
10834
|
// readonly: item.disabled
|
|
10835
10835
|
};
|
|
10836
|
-
switch (
|
|
10836
|
+
switch (S[f.value.type]) {
|
|
10837
10837
|
case u.value.user:
|
|
10838
|
-
return
|
|
10838
|
+
return E.user.set(S[f.value.id], C);
|
|
10839
10839
|
case u.value.role:
|
|
10840
|
-
return
|
|
10840
|
+
return E.role.set(S[f.value.id], C);
|
|
10841
10841
|
case u.value.post:
|
|
10842
|
-
return
|
|
10842
|
+
return E.post.set(S[f.value.id], C);
|
|
10843
10843
|
case u.value.group:
|
|
10844
|
-
return
|
|
10844
|
+
return E.group.set(S[f.value.id], C);
|
|
10845
10845
|
default:
|
|
10846
10846
|
return;
|
|
10847
10847
|
}
|
|
10848
10848
|
}
|
|
10849
|
-
}, so = (
|
|
10850
|
-
|
|
10851
|
-
) ?
|
|
10849
|
+
}, so = (S) => [u.value.group].includes(
|
|
10850
|
+
S[f.value.type]
|
|
10851
|
+
) ? S == null ? void 0 : S.hasOwnProperty("disabled") : !1;
|
|
10852
10852
|
Re(
|
|
10853
|
-
() =>
|
|
10854
|
-
(
|
|
10855
|
-
if (
|
|
10856
|
-
|
|
10853
|
+
() => E.trans,
|
|
10854
|
+
(S) => {
|
|
10855
|
+
if (!S.length)
|
|
10856
|
+
ie.value.forEach((C) => {
|
|
10857
10857
|
C.disabled = !1;
|
|
10858
10858
|
});
|
|
10859
10859
|
else {
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
(P) => !E.includes(P[f.value.id])
|
|
10860
|
+
const C = ie.value.filter(
|
|
10861
|
+
(P) => !S.includes(P[f.value.id])
|
|
10863
10862
|
);
|
|
10864
10863
|
for (const P of C)
|
|
10865
|
-
P.disabled = !1,
|
|
10866
|
-
const I =
|
|
10867
|
-
(P) =>
|
|
10864
|
+
P.disabled = !1, r.multiple && Xe(P);
|
|
10865
|
+
const I = ie.value.filter(
|
|
10866
|
+
(P) => S.includes(P[f.value.id])
|
|
10868
10867
|
);
|
|
10869
10868
|
for (const P of I)
|
|
10870
10869
|
P.disabled = so(P), Be(P);
|
|
@@ -10872,21 +10871,21 @@ const km = {
|
|
|
10872
10871
|
},
|
|
10873
10872
|
{ deep: !0 }
|
|
10874
10873
|
), Re(
|
|
10875
|
-
() =>
|
|
10876
|
-
(
|
|
10874
|
+
() => E.single,
|
|
10875
|
+
(S) => {
|
|
10877
10876
|
var C;
|
|
10878
|
-
if (
|
|
10879
|
-
const I = (C =
|
|
10880
|
-
I && (
|
|
10877
|
+
if (S) {
|
|
10878
|
+
const I = (C = ie.value) == null ? void 0 : C.find((P) => P[f.value.id] === S);
|
|
10879
|
+
I && (E.user.clear(), E.role.clear(), E.post.clear(), E.group.clear(), E.trans = [], Wn(() => {
|
|
10881
10880
|
Be(I);
|
|
10882
10881
|
}));
|
|
10883
10882
|
}
|
|
10884
10883
|
}
|
|
10885
10884
|
);
|
|
10886
|
-
const lo = (
|
|
10887
|
-
s.value =
|
|
10888
|
-
}, $r = Y(() => A.value.length), oo = (
|
|
10889
|
-
!C && !r.topLink || C !== $r.value - 1 && (s.value =
|
|
10885
|
+
const lo = (S) => {
|
|
10886
|
+
s.value = S == null ? void 0 : S.elementId, D(), A.value.push(S);
|
|
10887
|
+
}, $r = Y(() => A.value.length), oo = (S, C) => {
|
|
10888
|
+
!C && !r.topLink || C !== $r.value - 1 && (s.value = S == null ? void 0 : S.elementId, D(), A.value.splice(C + 1));
|
|
10890
10889
|
}, ao = Y(
|
|
10891
10890
|
() => r.chooseType.includes("role") && r.chooseType.length === 1
|
|
10892
10891
|
), co = Y(
|
|
@@ -10894,9 +10893,9 @@ const km = {
|
|
|
10894
10893
|
), Ct = Z(r.tabs[0]), He = Z(r.tabs[0]);
|
|
10895
10894
|
Kr(() => (He.value = ao.value ? r.tabs[1] : co.value ? r.tabs[2] : Ct.value, He.value));
|
|
10896
10895
|
const Le = () => {
|
|
10897
|
-
|
|
10896
|
+
E.user.clear(), E.role.clear(), E.post.clear(), E.group.clear(), E.trans = [], En.value = [], Sn.value = [], Ct.value = r.tabs[0], He.value = r.tabs[0], i.value = "", s.value = r.orgPid, A.value.splice(1, A.value.length), E.single = "", v.value = [];
|
|
10898
10897
|
}, uo = () => {
|
|
10899
|
-
var
|
|
10898
|
+
var S;
|
|
10900
10899
|
Ze(
|
|
10901
10900
|
"ok",
|
|
10902
10901
|
be.cloneDeep({
|
|
@@ -10905,83 +10904,83 @@ const km = {
|
|
|
10905
10904
|
// 排序后的列表
|
|
10906
10905
|
sort: v.value
|
|
10907
10906
|
})
|
|
10908
|
-
), Ze("update:modelValue", be.cloneDeep(((
|
|
10907
|
+
), Ze("update:modelValue", be.cloneDeep(((S = O.value) == null ? void 0 : S.list) || [])), Ze("update:show", !1), Le();
|
|
10909
10908
|
}, Zr = () => {
|
|
10910
10909
|
Ze("update:show", !1), Le();
|
|
10911
10910
|
};
|
|
10912
10911
|
e({ handClear: Le, handRomeve: Yr, handDelete: Xe });
|
|
10913
10912
|
const fo = Y(() => {
|
|
10914
|
-
const
|
|
10915
|
-
return !!((
|
|
10913
|
+
const S = J.value;
|
|
10914
|
+
return !!((S.includes("post") || S.includes("role")) && S.length > 1);
|
|
10916
10915
|
}), ho = Y(() => [
|
|
10917
10916
|
{ name: "group", label: "组织架构" },
|
|
10918
10917
|
{ name: "role", label: "角色列表" },
|
|
10919
10918
|
{ name: "post", label: "岗位列表" }
|
|
10920
|
-
].filter((
|
|
10919
|
+
].filter((S) => r.tabs.includes(S.name))), Xr = Y(
|
|
10921
10920
|
() => `${typeof r.height == "string" ? Number.parseInt(r.height) : r.height}px`
|
|
10922
10921
|
), An = () => {
|
|
10923
|
-
r.multiple || (
|
|
10924
|
-
}, po = Y(() => O.value.groups.list.concat(O.value.user.list)), go = (
|
|
10925
|
-
r.multiple || (
|
|
10926
|
-
const I = r.multiple ?
|
|
10922
|
+
r.multiple || (E.post.clear(), E.role.clear(), E.user.clear(), E.group.clear(), E.single = "");
|
|
10923
|
+
}, po = Y(() => O.value.groups.list.concat(O.value.user.list)), go = (S, C) => {
|
|
10924
|
+
r.multiple || (E.single = "");
|
|
10925
|
+
const I = r.multiple ? S : [S];
|
|
10927
10926
|
if (!I.length) {
|
|
10928
|
-
|
|
10927
|
+
E.group.clear(), E.user.clear();
|
|
10929
10928
|
return;
|
|
10930
10929
|
}
|
|
10931
10930
|
An(), C.forEach((P) => {
|
|
10932
|
-
I != null && I.includes(P[f.value.id]) ? Be(P) :
|
|
10931
|
+
I != null && I.includes(P[f.value.id]) ? Be(P) : Xe(P);
|
|
10933
10932
|
});
|
|
10934
|
-
}, En = Z([]), mo = (
|
|
10935
|
-
r.multiple || (
|
|
10936
|
-
const I = r.multiple ?
|
|
10933
|
+
}, En = Z([]), mo = (S, C) => {
|
|
10934
|
+
r.multiple || (E.single = "");
|
|
10935
|
+
const I = r.multiple ? S : [S];
|
|
10937
10936
|
if (!I.length) {
|
|
10938
|
-
|
|
10937
|
+
E.role.clear();
|
|
10939
10938
|
return;
|
|
10940
10939
|
}
|
|
10941
10940
|
An(), C.forEach((P) => {
|
|
10942
|
-
I != null && I.includes(P[f.value.id]) ? Be(P) :
|
|
10941
|
+
I != null && I.includes(P[f.value.id]) ? Be(P) : Xe(P);
|
|
10943
10942
|
});
|
|
10944
10943
|
};
|
|
10945
10944
|
Re(
|
|
10946
10945
|
() => O.value.role.len,
|
|
10947
|
-
(
|
|
10946
|
+
(S) => {
|
|
10948
10947
|
En.value = be.cloneDeep(O.value.role.list);
|
|
10949
10948
|
}
|
|
10950
10949
|
);
|
|
10951
|
-
const Sn = Z([]), vo = (
|
|
10952
|
-
r.multiple || (
|
|
10953
|
-
const I = r.multiple ?
|
|
10950
|
+
const Sn = Z([]), vo = (S, C) => {
|
|
10951
|
+
r.multiple || (E.single = "");
|
|
10952
|
+
const I = r.multiple ? S : [S];
|
|
10954
10953
|
if (!I.length) {
|
|
10955
|
-
|
|
10954
|
+
E.post.clear();
|
|
10956
10955
|
return;
|
|
10957
10956
|
}
|
|
10958
10957
|
An(), C.forEach((P) => {
|
|
10959
|
-
I != null && I.includes(P[f.value.id]) ? Be(P) :
|
|
10958
|
+
I != null && I.includes(P[f.value.id]) ? Be(P) : Xe(P);
|
|
10960
10959
|
});
|
|
10961
10960
|
};
|
|
10962
10961
|
return Re(
|
|
10963
10962
|
() => O.value.post.len,
|
|
10964
|
-
(
|
|
10963
|
+
(S) => {
|
|
10965
10964
|
Sn.value = be.cloneDeep(O.value.post.list);
|
|
10966
10965
|
}
|
|
10967
10966
|
), Re(
|
|
10968
10967
|
() => i.value,
|
|
10969
|
-
(
|
|
10968
|
+
(S) => {
|
|
10970
10969
|
U("");
|
|
10971
10970
|
}
|
|
10972
|
-
), (
|
|
10971
|
+
), (S, C) => {
|
|
10973
10972
|
const I = Wt("el-tab-pane"), P = Wt("el-tabs");
|
|
10974
10973
|
return w(), Q(R(cs), {
|
|
10975
10974
|
modelValue: yn.value,
|
|
10976
10975
|
"onUpdate:modelValue": C[2] || (C[2] = (V) => yn.value = V),
|
|
10977
|
-
title:
|
|
10976
|
+
title: S.title,
|
|
10978
10977
|
"destroy-on-close": "",
|
|
10979
10978
|
"append-to-body": "",
|
|
10980
10979
|
"close-on-click-modal": !1,
|
|
10981
10980
|
"close-on-click-escape": !1,
|
|
10982
10981
|
draggable: "",
|
|
10983
10982
|
"align-center": "",
|
|
10984
|
-
width: typeof
|
|
10983
|
+
width: typeof S.width == "string" ? S.width : `${S.width}%`,
|
|
10985
10984
|
class: "p_p_picker-dialog",
|
|
10986
10985
|
"modal-class": "p_p_picker-dialog-modal-user",
|
|
10987
10986
|
onClose: Zr
|
|
@@ -11023,7 +11022,7 @@ const km = {
|
|
|
11023
11022
|
modelValue: i.value,
|
|
11024
11023
|
"onUpdate:modelValue": C[0] || (C[0] = (V) => i.value = V),
|
|
11025
11024
|
clearable: "",
|
|
11026
|
-
placeholder:
|
|
11025
|
+
placeholder: S.placeholder,
|
|
11027
11026
|
"suffix-icon": Up
|
|
11028
11027
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
11029
11028
|
fo.value ? (w(), Q(P, {
|
|
@@ -11058,7 +11057,7 @@ const km = {
|
|
|
11058
11057
|
j(" 面包屑 全选 "),
|
|
11059
11058
|
x(R(_o), {
|
|
11060
11059
|
separator: ">",
|
|
11061
|
-
class: jn(["banner", { "top-unlink": !
|
|
11060
|
+
class: jn(["banner", { "top-unlink": !S.topLink }])
|
|
11062
11061
|
}, {
|
|
11063
11062
|
default: N(() => [
|
|
11064
11063
|
(w(!0), T(
|
|
@@ -11097,8 +11096,8 @@ const km = {
|
|
|
11097
11096
|
fixPropOpt: f.value,
|
|
11098
11097
|
fixTypeOpt: u.value,
|
|
11099
11098
|
list: p.value,
|
|
11100
|
-
max:
|
|
11101
|
-
multiple:
|
|
11099
|
+
max: S.max,
|
|
11100
|
+
multiple: S.multiple,
|
|
11102
11101
|
"hand-list": po.value,
|
|
11103
11102
|
imageBaseUrl: r.imageBaseUrl,
|
|
11104
11103
|
emptyText: r.emptyText,
|
|
@@ -11117,8 +11116,8 @@ const km = {
|
|
|
11117
11116
|
fixPropOpt: f.value,
|
|
11118
11117
|
fixTypeOpt: u.value,
|
|
11119
11118
|
list: a.value,
|
|
11120
|
-
max:
|
|
11121
|
-
multiple:
|
|
11119
|
+
max: S.max,
|
|
11120
|
+
multiple: S.multiple,
|
|
11122
11121
|
"hand-list": En.value,
|
|
11123
11122
|
imageBaseUrl: r.imageBaseUrl,
|
|
11124
11123
|
emptyText: r.emptyText,
|
|
@@ -11139,8 +11138,8 @@ const km = {
|
|
|
11139
11138
|
fixPropOpt: f.value,
|
|
11140
11139
|
fixTypeOpt: u.value,
|
|
11141
11140
|
list: d.value,
|
|
11142
|
-
max:
|
|
11143
|
-
multiple:
|
|
11141
|
+
max: S.max,
|
|
11142
|
+
multiple: S.multiple,
|
|
11144
11143
|
"hand-list": Sn.value,
|
|
11145
11144
|
imageBaseUrl: r.imageBaseUrl,
|
|
11146
11145
|
emptyText: r.emptyText,
|
|
@@ -11290,7 +11289,7 @@ const Dt = (n) => (on("data-v-1fa0e0e1"), n = n(), an(), n), Xm = { class: "demo
|
|
|
11290
11289
|
/* HOISTED */
|
|
11291
11290
|
)), hv = { class: "dialog-footer" }, pv = {
|
|
11292
11291
|
name: "IkApprovalProcess"
|
|
11293
|
-
}, gv = /* @__PURE__ */
|
|
11292
|
+
}, gv = /* @__PURE__ */ re({
|
|
11294
11293
|
...pv,
|
|
11295
11294
|
props: {
|
|
11296
11295
|
// 数据数组
|
|
@@ -11340,8 +11339,8 @@ const Dt = (n) => (on("data-v-1fa0e0e1"), n = n(), an(), n), Xm = { class: "demo
|
|
|
11340
11339
|
}
|
|
11341
11340
|
}).then((b) => {
|
|
11342
11341
|
b.json().then((D) => {
|
|
11343
|
-
const { success:
|
|
11344
|
-
if (!
|
|
11342
|
+
const { success: E, data: L } = D;
|
|
11343
|
+
if (!E)
|
|
11345
11344
|
return;
|
|
11346
11345
|
const { departments: B, users: U, roles: O, posts: J } = L;
|
|
11347
11346
|
o.depList = B, o.userList = U, o.roleList = O, o.postList = J;
|
|
@@ -11417,12 +11416,12 @@ const Dt = (n) => (on("data-v-1fa0e0e1"), n = n(), an(), n), Xm = { class: "demo
|
|
|
11417
11416
|
location: ""
|
|
11418
11417
|
}, o.dialogVisible = !1;
|
|
11419
11418
|
}, d = async () => {
|
|
11420
|
-
var A, b, D,
|
|
11419
|
+
var A, b, D, E;
|
|
11421
11420
|
let h = (b = (A = o.selectInfo) == null ? void 0 : A.view) == null ? void 0 : b.calendar, m = {
|
|
11422
11421
|
id: (/* @__PURE__ */ new Date()).getTime(),
|
|
11423
11422
|
title: o.form.title,
|
|
11424
11423
|
start: (D = o.selectInfo) == null ? void 0 : D.startStr,
|
|
11425
|
-
end: (
|
|
11424
|
+
end: (E = o.selectInfo) == null ? void 0 : E.endStr,
|
|
11426
11425
|
allDay: o.allDay
|
|
11427
11426
|
};
|
|
11428
11427
|
await h.addEvent(m), t("success", m), a();
|
|
@@ -11674,7 +11673,7 @@ const Dt = (n) => (on("data-v-1fa0e0e1"), n = n(), an(), n), Xm = { class: "demo
|
|
|
11674
11673
|
]),
|
|
11675
11674
|
x(R(Je), {
|
|
11676
11675
|
class: "close",
|
|
11677
|
-
onClick: ye((
|
|
11676
|
+
onClick: ye((E) => v(D), ["stop"])
|
|
11678
11677
|
}, {
|
|
11679
11678
|
default: N(() => [
|
|
11680
11679
|
x(R(No))
|