iking-web-ui-pro 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcess/ik.index.es.js +474 -468
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +1482 -1476
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +488 -482
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +270 -264
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +572 -566
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/{index-DTi9E0jO.mjs → index-B7k0MBYs.mjs} +3092 -3086
- package/dist/{index.es-B77Iiv-O.mjs → index.es-x4V15FUC.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +63 -63
- package/dist/{jspdf.es.min-DVvGi1xM.mjs → jspdf.es.min-Dw0HwXiw.mjs} +1 -1
- package/dist/src/components/IkFileIcon/index.d.ts +3 -3
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +3 -3
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +9 -0
- package/dist/src/components/IkPickerUser/index.d.ts +9 -0
- package/dist/src/components/IkPickerUser/src/default.d.ts +4 -0
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { inject as fe, computed as E, createElementBlock as f, openBlock as s, createElementVNode as n, defineComponent as de, resolveComponent as te, createBlock as I, createCommentVNode as g, toDisplayString as T, ref as _, watch as Y, Fragment as N, createVNode as C, unref as k, withCtx as S, createTextVNode as J, renderList as
|
|
2
|
-
import { ikStore as pe, _ as ee, ikEvent as
|
|
3
|
-
import
|
|
4
|
-
import { ElCheckbox as ue, ElCheckboxGroup as be, ElRadioGroup as Ce, ElRadio as Ue, ElDialog as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { inject as fe, computed as E, createElementBlock as f, openBlock as s, createElementVNode as n, defineComponent as de, resolveComponent as te, createBlock as I, createCommentVNode as g, toDisplayString as T, ref as _, watch as Y, Fragment as N, createVNode as C, unref as k, withCtx as S, createTextVNode as J, renderList as z, normalizeClass as re, toRef as st, reactive as Te, nextTick as Le, watchEffect as Ie, normalizeStyle as Fe, withDirectives as ye, withModifiers as Ae, vShow as ot, mergeProps as Ve } from "vue";
|
|
2
|
+
import { ikStore as pe, _ as ee, ikEvent as nt } from "iking-utils-pro";
|
|
3
|
+
import Re from "vuedraggable";
|
|
4
|
+
import { ElCheckbox as ue, ElCheckboxGroup as be, ElRadioGroup as Ce, ElRadio as Ue, ElDialog as it, ElInput as rt, ElBreadcrumb as pt, ElBreadcrumbItem as ut, vLoading as Pe, ElButton as ke } from "element-plus";
|
|
5
|
+
import dt from "axios";
|
|
6
|
+
const Me = (d, A) => (d.install = (e) => {
|
|
7
7
|
for (const a of [d, ...Object.values({})])
|
|
8
8
|
e.component(a.name, a);
|
|
9
|
-
}, d),
|
|
9
|
+
}, d), Q = (d, A) => {
|
|
10
10
|
const e = d.__vccOpts || d;
|
|
11
11
|
for (const [a, b] of A)
|
|
12
12
|
e[a] = b;
|
|
13
13
|
return e;
|
|
14
|
-
},
|
|
14
|
+
}, ct = (d, A) => A ? A != null && A.startsWith("http") ? A : `${d || location.origin}${A}` : "", ft = (d) => ({
|
|
15
15
|
// ================all================
|
|
16
16
|
nodeType: {
|
|
17
17
|
发起人节点: "INITIATOR",
|
|
@@ -99,7 +99,7 @@ const We = (d, A) => (d.install = (e) => {
|
|
|
99
99
|
...d.defaultStatus
|
|
100
100
|
},
|
|
101
101
|
listData: []
|
|
102
|
-
}),
|
|
102
|
+
}), At = (d, A, e) => {
|
|
103
103
|
let a = "";
|
|
104
104
|
switch (A) {
|
|
105
105
|
case d.nodeType.审批节点:
|
|
@@ -121,7 +121,7 @@ const We = (d, A) => (d.install = (e) => {
|
|
|
121
121
|
a = "ikapprove-ziyuan";
|
|
122
122
|
}
|
|
123
123
|
return `ikapprove ${a}`;
|
|
124
|
-
},
|
|
124
|
+
}, De = [
|
|
125
125
|
"csv",
|
|
126
126
|
"djvu",
|
|
127
127
|
"doc",
|
|
@@ -176,25 +176,25 @@ const We = (d, A) => (d.install = (e) => {
|
|
|
176
176
|
"mp4",
|
|
177
177
|
"flv",
|
|
178
178
|
"tls"
|
|
179
|
-
],
|
|
180
|
-
const A = fe("loadUrl"), e = E(() => d.loadUrl || d.fileUrl || (A == null ? void 0 : A.value)), a = fe("uploadUrl"), b = E(() => d.action || d.uploadUrl || (a == null ? void 0 : a.value)), P = fe("token"), B = E(() => d.token || (P == null ? void 0 : P.value)), w = fe("onlyofficeConfig"),
|
|
179
|
+
], We = (d) => {
|
|
180
|
+
const A = fe("loadUrl"), e = E(() => d.loadUrl || d.fileUrl || (A == null ? void 0 : A.value)), a = fe("uploadUrl"), b = E(() => d.action || d.uploadUrl || (a == null ? void 0 : a.value)), P = fe("token"), B = E(() => d.token || (P == null ? void 0 : P.value)), w = fe("onlyofficeConfig"), p = E(() => d.onlyofficeConfig || (w == null ? void 0 : w.value)), F = fe("userInfo"), D = E(() => d.userInfo || (F == null ? void 0 : F.value)), R = [...De, ...De.map((m) => m.toLocaleUpperCase())];
|
|
181
181
|
return {
|
|
182
182
|
cLoadUrl: e,
|
|
183
183
|
cUploadUrl: b,
|
|
184
184
|
cToken: B,
|
|
185
|
-
cOnlyofficeConfig:
|
|
185
|
+
cOnlyofficeConfig: p,
|
|
186
186
|
cUserInfo: D,
|
|
187
187
|
cOnlyofficePreviewType: R
|
|
188
188
|
};
|
|
189
|
-
},
|
|
189
|
+
}, vt = {}, ht = {
|
|
190
190
|
t: "1672194715727",
|
|
191
191
|
class: "icon",
|
|
192
192
|
viewBox: "0 0 1024 1024",
|
|
193
193
|
version: "1.1",
|
|
194
194
|
"p-id": "2667"
|
|
195
195
|
};
|
|
196
|
-
function
|
|
197
|
-
return s(), f("svg",
|
|
196
|
+
function yt(d, A) {
|
|
197
|
+
return s(), f("svg", ht, [...A[0] || (A[0] = [
|
|
198
198
|
n(
|
|
199
199
|
"path",
|
|
200
200
|
{
|
|
@@ -219,7 +219,7 @@ function mt(d, A) {
|
|
|
219
219
|
)
|
|
220
220
|
])]);
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const mt = /* @__PURE__ */ Q(vt, [["render", yt]]), gt = {}, xt = {
|
|
223
223
|
t: "1710907270798",
|
|
224
224
|
class: "icon",
|
|
225
225
|
viewBox: "0 0 1024 1024",
|
|
@@ -229,8 +229,8 @@ const gt = /* @__PURE__ */ X(ht, [["render", mt]]), xt = {}, Ot = {
|
|
|
229
229
|
width: "200",
|
|
230
230
|
height: "200"
|
|
231
231
|
};
|
|
232
|
-
function
|
|
233
|
-
return s(), f("svg",
|
|
232
|
+
function Ot(d, A) {
|
|
233
|
+
return s(), f("svg", xt, [...A[0] || (A[0] = [
|
|
234
234
|
n(
|
|
235
235
|
"path",
|
|
236
236
|
{
|
|
@@ -255,7 +255,7 @@ function Pt(d, A) {
|
|
|
255
255
|
)
|
|
256
256
|
])]);
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const Pt = /* @__PURE__ */ Q(gt, [["render", Ot]]), kt = {}, Tt = {
|
|
259
259
|
t: "1710904463698",
|
|
260
260
|
class: "icon",
|
|
261
261
|
viewBox: "0 0 1024 1024",
|
|
@@ -265,8 +265,8 @@ const kt = /* @__PURE__ */ X(xt, [["render", Pt]]), Tt = {}, Lt = {
|
|
|
265
265
|
width: "200",
|
|
266
266
|
height: "200"
|
|
267
267
|
};
|
|
268
|
-
function
|
|
269
|
-
return s(), f("svg",
|
|
268
|
+
function Lt(d, A) {
|
|
269
|
+
return s(), f("svg", Tt, [...A[0] || (A[0] = [
|
|
270
270
|
n(
|
|
271
271
|
"path",
|
|
272
272
|
{
|
|
@@ -291,7 +291,7 @@ function bt(d, A) {
|
|
|
291
291
|
)
|
|
292
292
|
])]);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const bt = /* @__PURE__ */ Q(kt, [["render", Lt]]), Ct = {}, Ut = {
|
|
295
295
|
t: "1710904436436",
|
|
296
296
|
class: "icon",
|
|
297
297
|
viewBox: "0 0 1024 1024",
|
|
@@ -301,8 +301,8 @@ const Ct = /* @__PURE__ */ X(Tt, [["render", bt]]), Ut = {}, St = {
|
|
|
301
301
|
width: "200",
|
|
302
302
|
height: "200"
|
|
303
303
|
};
|
|
304
|
-
function
|
|
305
|
-
return s(), f("svg",
|
|
304
|
+
function St(d, A) {
|
|
305
|
+
return s(), f("svg", Ut, [...A[0] || (A[0] = [
|
|
306
306
|
n(
|
|
307
307
|
"path",
|
|
308
308
|
{
|
|
@@ -327,7 +327,7 @@ function Bt(d, A) {
|
|
|
327
327
|
)
|
|
328
328
|
])]);
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const Bt = /* @__PURE__ */ Q(Ct, [["render", St]]), wt = {}, _t = {
|
|
331
331
|
t: "1710904287393",
|
|
332
332
|
class: "icon",
|
|
333
333
|
viewBox: "0 0 1024 1024",
|
|
@@ -337,8 +337,8 @@ const wt = /* @__PURE__ */ X(Ut, [["render", Bt]]), _t = {}, Et = {
|
|
|
337
337
|
width: "200",
|
|
338
338
|
height: "200"
|
|
339
339
|
};
|
|
340
|
-
function
|
|
341
|
-
return s(), f("svg",
|
|
340
|
+
function Et(d, A) {
|
|
341
|
+
return s(), f("svg", _t, [...A[0] || (A[0] = [
|
|
342
342
|
n(
|
|
343
343
|
"path",
|
|
344
344
|
{
|
|
@@ -363,13 +363,13 @@ function It(d, A) {
|
|
|
363
363
|
)
|
|
364
364
|
])]);
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const It = /* @__PURE__ */ Q(wt, [["render", Et]]), Vt = { class: "avatar" }, Dt = {
|
|
367
367
|
key: 3,
|
|
368
368
|
class: "user_box"
|
|
369
|
-
},
|
|
369
|
+
}, Nt = {
|
|
370
370
|
key: 1,
|
|
371
371
|
class: "avatar_name"
|
|
372
|
-
},
|
|
372
|
+
}, Ft = /* @__PURE__ */ de({
|
|
373
373
|
__name: "Avatar",
|
|
374
374
|
props: {
|
|
375
375
|
fixPropOpt: {
|
|
@@ -393,18 +393,18 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
395
|
setup(d) {
|
|
396
|
-
const A = d, { cLoadUrl: e } =
|
|
396
|
+
const A = d, { cLoadUrl: e } = We(A), a = (b) => ct(e.value, b);
|
|
397
397
|
return (b, P) => {
|
|
398
398
|
const B = te("el-avatar");
|
|
399
|
-
return s(), f("div",
|
|
400
|
-
A.fixTypeOpt.group === d.element[A.fixPropOpt.type] ? (s(), I(
|
|
399
|
+
return s(), f("div", Vt, [
|
|
400
|
+
A.fixTypeOpt.group === d.element[A.fixPropOpt.type] ? (s(), I(It, { key: 0 })) : A.fixTypeOpt.role === d.element[A.fixPropOpt.type] ? (s(), I(bt, { key: 1 })) : A.fixTypeOpt.post === d.element[A.fixPropOpt.type] ? (s(), I(Bt, { key: 2 })) : A.fixTypeOpt.user === d.element[A.fixPropOpt.type] ? (s(), f("div", Dt, [
|
|
401
401
|
d.element[d.fixPropOpt.avatar] ? (s(), I(B, {
|
|
402
402
|
key: 0,
|
|
403
403
|
shape: "square",
|
|
404
404
|
src: a(d.fixPropOpt.avatar ? d.element[d.fixPropOpt.avatar] : "")
|
|
405
405
|
}, null, 8, ["src"])) : (s(), f(
|
|
406
406
|
"div",
|
|
407
|
-
|
|
407
|
+
Nt,
|
|
408
408
|
T(d.element[d.fixPropOpt.name].slice(-2)),
|
|
409
409
|
1
|
|
410
410
|
/* TEXT */
|
|
@@ -413,7 +413,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
413
413
|
]);
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
}), H = /* @__PURE__ */
|
|
416
|
+
}), H = /* @__PURE__ */ Q(Ft, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2CKfi02lG/c2Q/8YX2PQh54cv1htzKe6VuBewtxW/8NBpQy5Z757y4VasjFcynoJGXLJcdef0GSJOR//Pf11kyMvKbVcu/rMDp8P+5Ogn6w241POu3Gnzglghlzz+w2IDno6Tb/T/thsrxHzp/du/gozNpZBIX3npNdkrZ+LWRlPK2POHrPuVkawOO3tWmfdX7d/fSW8yllyVtXneWfyY+I2v3HKExbE4dJ8TgI7dm7fsFMgz8OIisHXRP4YxqR77Ev0DYfWCpa0Rg13LJ0xIP7Z6W6cBLA64ebTyYqWEzllflxERWjAh13F8+44mw1nlsvan4kSsf7oqcuLv3VXWYUzL9ZTFJpyI4JcvdBt3hv/2K3gVWybyxgo+XC6/BC9j+WTjPiXv64OXcd1c495GbknAsnIiMG47Z5UDxylpVBi4XTvLjKF6CDByu+1Xq5IZNwNDtytmxiiYvBwYu3lm9kaoz5a+IQzekj6+3QpA7crftxsWJNPna/qd+DH2mcdAlLD5Vxs9mMdu744SvP9LTZTgxVUVUYJHKlQeNA30xNWfOtVkwDi7gkrc+R6PJwX4kgDgT6HWbLyv6+Mp9IxEkqQwODmc4l+8hkjMOI/Hk4XoUKBFW7viX1oMixxPoWcM8vWAJxKdbYp/8RkJtlGFHg+a3KlDQnSr4l/8rJPm8RTmumRRGiHZAL986+5dTGIZVujxDECURQDxplSNDbFG4niPpyBeVhcp5NvzwI9sUfDrELOsT494B7EVDzaVSvpIQaFJPz7AEpOXAh0Tyi9jaF2pHE4QGq3aVSgyw12/AoLQadbvzKShx3ronMZBrITiF94HJKHTsK8fY4OUmgTdExi3nwk+f4KkRuik1LQt54gsfNUccbDQR7dMZ4DpNzEx1moHt+uesXvNbEz+T57VPWsvYGQt7h51ROdcvIqZGL/uQn1jLhvNTtJ17Txdc+tfDOXAZ4byOiamujc7BLc8WaVjnv4EsHL3xvmLGnXdrs8u78sCXevmL2rRf+Oyi4qKRlr0TMeaeUv9zEyZ+MKioglWvVKwBzBmZWP1ymgdLyqZRfYjlRrS3t35LDJsVOfeM/S45GMRwj1vq6eLOzwM8tJtHZCf8zOtL4kRi0QBQrjjbfUvk2L2uOsNCKEAf15MB+u6AdIu2+sH1Nh4DnP8b7MJwfsQnfTi7o8lzch24HXV9PF85vhrotR+ZJszlwbugwmSaLTw4X4VVl3MGnkbOyA6In1PtVPglZelXXGqfkdlYi+Zwhrrx4cdgBaXUEjA0447ws5XVHyt0rJFlzPGxGXhjlT4oPWlNuJ8+VinJFlJzQcii6Tem35kVhswV4yQ2o8prJ5Pmr5H7J3yKFII/7WSQRIXZXDc8Sf42/8QOwQMbW+3EmbGjaAT4n6e+TTEHt9cznEcP3f20V5hcKdNC8kydp9JRi4oVtp9zDFuLc9xPOc7/TIQpSdxG/d5M1HWXgAkUOcr7qtYFmCM1fnyznVNdIQJNx/jg/a1JNPxi1YDALrCmrHCK1azxcXLkJ3rPwggSEVcby49QoycvVkyUGUTfuNYwlw2HNlduSYFWCfUTSXG73cAJdgeWHSaJW6eFuDk6jwnAECUIo/a9n2AEJbadARJsoruubUMYa/uE5DPprGSCuUB15vcDyFCXL4IKMELX3uYIR7/AiBkS/MKOUgOwK91wlTtsUs9j0ZBanH31c1hAGXoPZYmwwsjLAhdAtpyKX6hPijbQQh/ghK14l+QGZZNAiDIcbw4CCAEOKkf8U6oJZUUbS9URaH+z05WGHAMyPAcHGFWorL9u4AQJWscMt2yZqzwQ2uZ+fHamzJydUpvFF6QriqSO5l1xAJX7ssD4+JjQ6jXfc28IAiQP70lwAqmf7MQ5LQuPttutdkCEDk1+QUeCpCrqiLbGuvMiw5mdkC48DOMIgZAw41gR0ASCfk+601xFTkQwtc30WpPLP93pwrM/PjpXhSpqKzYI06FUHhjE70WHWcU2/MXxsdnIonEiUaO5/lT2wumQgjf2EiRLoEt8POt8HHfeRz30jZUhYc2NZ0QLmAJtXVjwu8c/6KSaYKBUn3pKVV4DgcUqHKiA8LFH+NxZaanXz0hOcGsNwRvc0NtS1NTU1NDA1TyBxdGMbrlW95aTwM0gpyAEC5/H8HRIycnJyszXvFdkpCcEW/VCx3eZq+A1dFaV1tbe7a2q+h3jntpK0rRnxDCd1fTAI0gNQKEq9/N7tOnd68Mk7pzU1OdzpgYEz3QnMvb7OU0Kgo1WCa2+55XLPGlv0EIP1xOAcXC+3eXaPaecWqW5cywiqYYp9NFa0AEvM3etoh0pYwMBCt3twS6Ic/1e4bn4FfzKJE9avRLYijoP6xJmeI1qXEiEAGwulwuogNCjq5+X0tbSAyJYd3aSR0RCNY0oBrShocCcNOSmqPtBEFn4ai8senAVhwMBbn9qvpUlps0i+QB5Gh2ulxu9QGhdaS2tfhaQ6hc+T7tl9KHBYKnalEyhgWDwdrTQDxbWbY/QAx7flGuAxmwnlAw2FEe1hhRpVv2geQJxB12l9vtjGxAiO0+nz+EyMQcwyIkIZrIHBII/nMGJWdQMBhsrEE0cDvXVBOh96QSt0KCLUMMiaHGSHW6U8ySD7AOMbncsW6bKmjD/T5/AKNPRayoLa1MEEOCYuLGxYui2OHH5Dezd4uRMvz60RRW0xQn1hOoBIc7NtZlwgcmv9/fjdemdqSwaBz+7nREZN2bR2Al0tZjicpK/Eg1u2PjYm1yYPL7WzuBrAmrKiwCK4VKpPh+XQRceF8MGuBoVDqUTlH1U0ycydcJtExENSmUGvvtKs3ccDOxQKpxEpmUTtFwxEnQdrsMrbj3hNaLBa/QzQisSXYNHR2ZELwqak1d87VGPhsg52dUK+MBlXNYCPmGYv7nSY0skBdpypWJtsjHsQYpdNn/ska+60k1ZVaEFykYa/KTLCQiX1Js5fcrtD79GNXcXxmxEyyEH6DLsec1J0aPXqSHzRTrVHiIxPto7ydf82tv+43Xm3VRGW/G+Unhy4iE0Gvehu87IhE1+KE+uqh0x2h5Rnfnmt+rItRlLr2uhy4qY830niH0wVGxtFwk0Iu5E8ea9VApBWOcnxQSlL5UEUOjpnrnVi8picmlxQPoF+wuk8b3qbqVeE564uihAxxZpWkFuSPstCtdNoWfMN5SfTTsVmLNkHP1/Udqz9SG6PTkkFHDB1jpVkorP/YZDUf5PmLdf+zA/uoA5VE5YNDAgWkRqY50sXJa9PDMwV1Hj0vX9GHx/fr06dXDTmnBjAGRPUD164Zin2b07JmTlZVsIi43xhJ2muaQRS5506U5MjPS09LT0hLNBCulAaT5AVK6X61URW/DIjE5OTkxMT4hMcUduUSHGes0hS8Jwt/WBRixjB+sBCpt+Pcpj6SaNWcqYMZuuJnEqLGZqIWsusdUslCdD+1X8kiIs1ql91E5Cy+cBBpNp2vOy2OIeNlqwryU5E1vHQY6MiKdfP8lRNRZMCu/DKGr754GrFnJg7FEMj2LifB5w48CYM8SbruQSGSWNpLnf38qB2xavxsKTCQqzcT25jlrpWSOWetzZZGNRMFE5C9OLt1Ir6SXTPaC83pHvskRLNI1fsdaaXU0AOtdMr5XpLIjrdm7rawbGIWl544ZFkeFUE1FeXUQMGUkZl+vYQP79bSQxF9TXX0UAqLGVH7Ru2ePntnpjkg7v7m+/uypU35A3lgMaempCQmJ8S6n02mzWCymYDAQ7BIEgW/z+XwtjYwviNHc/vMfAFZQOCCwBAAA8CoAnQEqyADOAD5tNpRGpD+iISw1STvwDYlpbuDAdGXYW5+xX+E/B79IvqhdnLddJLmGi5paMwD+h8p7UC/h/9K6qXoHfpyR4P/Uv3L6q0mh/qXmCC5XUh/6l+4p6WqP3L5qDkPaVIRPowOQa5RsItEnpv2qi+aEGdI5VaSY7+i3fjzySZVTfInmLOji/1JNDhsggr75HlBnTop05IyqW9k6rgDx4oGKuZLsiDqTspeWt1TThs95rEvc3BAQ2Cmm/WHPEgITWp1jDj8fnYpacUKlA2fv4bDkY96yZXMjIrnu/KsBeRwGc1mPgGXhZDn5J8bFFYquI/e5SRB/fGWHrUWxTd/6ZFoE99q2r5vdSogeBKsvZRRnOJo1DhTmQzfK+jKPl1XB61eCyIzI2T0HdI/htEFcLySPEI1rIA1ptHGDrClKq1Cj6yIjq1T8SCl5GneZHHtrpmpD/1L9y+qqAAD+ysAAAACruyAAa6B+sspLlClJkLWAAlhaOsmcS18eCdW/9MiovfLi9lIdZV4K9C2nq4XL6pGljxoATLaWY+Fdf+yp8QqRmQOm17DSnKGoocmxvW4jXk3K6solfHw92MfxE9PKbpV6k390KRXwxMKUkfODCBPOGu7AVxFQQDv/surrkKoki8usn4RG7CzImZDOrpVMMa1nuR8WstZYVtabVbc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA", Be = {
|
|
417
417
|
// 所有数据
|
|
418
418
|
list: {
|
|
419
419
|
type: Array,
|
|
@@ -471,31 +471,31 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
471
471
|
// 传['dep', 'user', 'role']则选择人员、部门和角色
|
|
472
472
|
default: () => ["dep"]
|
|
473
473
|
}
|
|
474
|
-
},
|
|
474
|
+
}, Rt = { class: "left-pick-list" }, Mt = {
|
|
475
475
|
key: 0,
|
|
476
476
|
class: "post-view-list"
|
|
477
|
-
},
|
|
477
|
+
}, Wt = { class: "checkText" }, jt = { class: "iconBox" }, Ht = { class: "name_number" }, Gt = { class: "title" }, $t = {
|
|
478
478
|
key: 0,
|
|
479
479
|
class: "userCount"
|
|
480
|
-
},
|
|
480
|
+
}, zt = {
|
|
481
481
|
key: 1,
|
|
482
482
|
class: "checkText"
|
|
483
|
-
},
|
|
483
|
+
}, Qt = { class: "iconBox" }, Xt = { class: "name_number" }, qt = { class: "title" }, Zt = {
|
|
484
484
|
key: 0,
|
|
485
485
|
class: "userCount"
|
|
486
|
-
},
|
|
486
|
+
}, Kt = ["onClick"], Yt = { class: "checkText" }, Jt = { class: "iconBox" }, el = { class: "name_number" }, tl = { class: "title" }, ll = {
|
|
487
487
|
key: 0,
|
|
488
488
|
class: "userCount"
|
|
489
|
-
},
|
|
489
|
+
}, al = {
|
|
490
490
|
key: 1,
|
|
491
491
|
class: "checkText"
|
|
492
|
-
},
|
|
492
|
+
}, sl = { class: "iconBox" }, ol = { class: "name_number" }, nl = { class: "title" }, il = {
|
|
493
493
|
key: 0,
|
|
494
494
|
class: "userCount"
|
|
495
|
-
},
|
|
495
|
+
}, rl = ["onClick"], pl = {
|
|
496
496
|
key: 1,
|
|
497
497
|
class: "empty"
|
|
498
|
-
},
|
|
498
|
+
}, ul = /* @__PURE__ */ de({
|
|
499
499
|
__name: "GroupList",
|
|
500
500
|
props: Be,
|
|
501
501
|
emits: ["change", "check", "handChild"],
|
|
@@ -510,58 +510,58 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
510
510
|
a.value = !1;
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
|
-
const
|
|
513
|
+
const r = e.list.filter(
|
|
514
514
|
(u) => e.chooseType.includes(u[e.fixPropOpt.type].toLowerCase())
|
|
515
515
|
).every(
|
|
516
516
|
(u) => e.handList.some(
|
|
517
517
|
(h) => h[e.fixPropOpt.id] === u[e.fixPropOpt.id]
|
|
518
518
|
)
|
|
519
519
|
);
|
|
520
|
-
a.value =
|
|
520
|
+
a.value = r;
|
|
521
521
|
},
|
|
522
522
|
{ immediate: !0 }
|
|
523
523
|
);
|
|
524
524
|
const b = E(() => {
|
|
525
525
|
var u, h, c;
|
|
526
|
-
const
|
|
526
|
+
const r = (u = e.handList.filter(
|
|
527
527
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
528
528
|
)) == null ? void 0 : u.length, O = e.list.filter(
|
|
529
529
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
530
530
|
).every(
|
|
531
531
|
(y) => e.handList.some(
|
|
532
|
-
(
|
|
532
|
+
(l) => l[e.fixPropOpt.id] === y[e.fixPropOpt.id]
|
|
533
533
|
)
|
|
534
534
|
);
|
|
535
|
-
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id],
|
|
535
|
+
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], r > 0 && !O;
|
|
536
536
|
}), P = _(
|
|
537
|
-
e.handList.map((
|
|
538
|
-
), B = _((o = (m = e.handList) == null ? void 0 : m[0]) == null ? void 0 : o[e.fixPropOpt.id]), w = A,
|
|
539
|
-
const O =
|
|
537
|
+
e.handList.map((r) => r[e.fixPropOpt.id])
|
|
538
|
+
), B = _((o = (m = e.handList) == null ? void 0 : m[0]) == null ? void 0 : o[e.fixPropOpt.id]), w = A, p = (r) => {
|
|
539
|
+
const O = r ? e.list.map((u) => {
|
|
540
540
|
if (e.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) && u.available !== !1)
|
|
541
541
|
return u[e.fixPropOpt.id];
|
|
542
542
|
}) : [];
|
|
543
|
-
w("change", O,
|
|
544
|
-
}, F = (
|
|
545
|
-
w("change",
|
|
546
|
-
}, D = (
|
|
547
|
-
w("change",
|
|
548
|
-
}, R = (
|
|
549
|
-
O || w("handChild",
|
|
543
|
+
w("change", O, r ? e.list : []);
|
|
544
|
+
}, F = (r) => {
|
|
545
|
+
w("change", r, e.list);
|
|
546
|
+
}, D = (r) => {
|
|
547
|
+
w("change", r, e.list);
|
|
548
|
+
}, R = (r, O) => {
|
|
549
|
+
O || w("handChild", r);
|
|
550
550
|
};
|
|
551
|
-
return (
|
|
551
|
+
return (r, O) => {
|
|
552
552
|
const u = te("el-scrollbar");
|
|
553
553
|
return s(), f(
|
|
554
554
|
N,
|
|
555
555
|
null,
|
|
556
556
|
[
|
|
557
557
|
g(" 遍历list多选 "),
|
|
558
|
-
n("div",
|
|
559
|
-
|
|
558
|
+
n("div", Rt, [
|
|
559
|
+
r.multiple && r.list && r.list.length ? (s(), I(k(ue), {
|
|
560
560
|
key: 0,
|
|
561
561
|
modelValue: a.value,
|
|
562
562
|
"onUpdate:modelValue": O[0] || (O[0] = (h) => a.value = h),
|
|
563
563
|
indeterminate: b.value,
|
|
564
|
-
onChange:
|
|
564
|
+
onChange: p
|
|
565
565
|
}, {
|
|
566
566
|
default: S(() => [...O[3] || (O[3] = [
|
|
567
567
|
J(
|
|
@@ -575,8 +575,8 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
575
575
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
576
576
|
C(u, null, {
|
|
577
577
|
default: S(() => [
|
|
578
|
-
|
|
579
|
-
|
|
578
|
+
r.list && r.list.length ? (s(), f("ul", Mt, [
|
|
579
|
+
r.multiple ? (s(), I(k(be), {
|
|
580
580
|
key: 0,
|
|
581
581
|
modelValue: P.value,
|
|
582
582
|
"onUpdate:modelValue": O[1] || (O[1] = (h) => P.value = h),
|
|
@@ -586,12 +586,12 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
586
586
|
(s(!0), f(
|
|
587
587
|
N,
|
|
588
588
|
null,
|
|
589
|
-
|
|
589
|
+
z(r.list, (h) => {
|
|
590
590
|
var c;
|
|
591
591
|
return s(), f("li", {
|
|
592
592
|
key: h[e.fixPropOpt.id]
|
|
593
593
|
}, [
|
|
594
|
-
|
|
594
|
+
r.chooseType.includes(
|
|
595
595
|
h[e.fixPropOpt.type].toLowerCase()
|
|
596
596
|
) && h.available !== !1 ? (s(), I(k(ue), {
|
|
597
597
|
key: 0,
|
|
@@ -599,8 +599,8 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
599
599
|
disabled: h.available === !1
|
|
600
600
|
}, {
|
|
601
601
|
default: S(() => [
|
|
602
|
-
n("div",
|
|
603
|
-
n("div",
|
|
602
|
+
n("div", Wt, [
|
|
603
|
+
n("div", jt, [
|
|
604
604
|
C(H, {
|
|
605
605
|
fixTypeOpt: e.fixTypeOpt,
|
|
606
606
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -608,17 +608,17 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
608
608
|
imageBaseUrl: e.imageBaseUrl
|
|
609
609
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
610
610
|
]),
|
|
611
|
-
n("div",
|
|
611
|
+
n("div", Ht, [
|
|
612
612
|
n(
|
|
613
613
|
"div",
|
|
614
|
-
|
|
614
|
+
Gt,
|
|
615
615
|
T(h[e.fixPropOpt.name]),
|
|
616
616
|
1
|
|
617
617
|
/* TEXT */
|
|
618
618
|
),
|
|
619
619
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
620
620
|
"div",
|
|
621
|
-
|
|
621
|
+
$t,
|
|
622
622
|
" (" + T(h.userCount) + ") ",
|
|
623
623
|
1
|
|
624
624
|
/* TEXT */
|
|
@@ -628,7 +628,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
628
628
|
]),
|
|
629
629
|
_: 2
|
|
630
630
|
/* DYNAMIC */
|
|
631
|
-
}, 1032, ["label", "disabled"])) : (s(), f("div",
|
|
631
|
+
}, 1032, ["label", "disabled"])) : (s(), f("div", zt, [
|
|
632
632
|
O[4] || (O[4] = n(
|
|
633
633
|
"div",
|
|
634
634
|
{ class: "side" },
|
|
@@ -636,7 +636,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
636
636
|
-1
|
|
637
637
|
/* CACHED */
|
|
638
638
|
)),
|
|
639
|
-
n("div",
|
|
639
|
+
n("div", Qt, [
|
|
640
640
|
C(H, {
|
|
641
641
|
fixTypeOpt: e.fixTypeOpt,
|
|
642
642
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -644,17 +644,17 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
644
644
|
imageBaseUrl: e.imageBaseUrl
|
|
645
645
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
646
646
|
]),
|
|
647
|
-
n("div",
|
|
647
|
+
n("div", Xt, [
|
|
648
648
|
n(
|
|
649
649
|
"div",
|
|
650
|
-
|
|
650
|
+
qt,
|
|
651
651
|
T(h[e.fixPropOpt.name]),
|
|
652
652
|
1
|
|
653
653
|
/* TEXT */
|
|
654
654
|
),
|
|
655
655
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
656
656
|
"div",
|
|
657
|
-
|
|
657
|
+
Zt,
|
|
658
658
|
" (" + T(h.userCount) + ") ",
|
|
659
659
|
1
|
|
660
660
|
/* TEXT */
|
|
@@ -669,13 +669,13 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
669
669
|
)
|
|
670
670
|
}]),
|
|
671
671
|
onClick: (y) => {
|
|
672
|
-
var
|
|
672
|
+
var l;
|
|
673
673
|
return R(
|
|
674
674
|
h,
|
|
675
|
-
(
|
|
675
|
+
(l = P.value) == null ? void 0 : l.find((v) => v === h[e.fixPropOpt.id])
|
|
676
676
|
);
|
|
677
677
|
}
|
|
678
|
-
}, " 下级", 10,
|
|
678
|
+
}, " 下级", 10, Kt)) : g("v-if", !0)
|
|
679
679
|
]);
|
|
680
680
|
}),
|
|
681
681
|
128
|
|
@@ -695,21 +695,21 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
695
695
|
(s(!0), f(
|
|
696
696
|
N,
|
|
697
697
|
null,
|
|
698
|
-
|
|
698
|
+
z(r.list, (h) => {
|
|
699
699
|
var c;
|
|
700
700
|
return s(), f("li", {
|
|
701
701
|
class: "w-full",
|
|
702
702
|
key: h[e.fixPropOpt.id]
|
|
703
703
|
}, [
|
|
704
|
-
|
|
704
|
+
r.chooseType.includes(
|
|
705
705
|
h[e.fixPropOpt.type].toLowerCase()
|
|
706
706
|
) && h.available !== !1 ? (s(), I(k(Ue), {
|
|
707
707
|
key: 0,
|
|
708
708
|
label: h[e.fixPropOpt.id]
|
|
709
709
|
}, {
|
|
710
710
|
default: S(() => [
|
|
711
|
-
n("div",
|
|
712
|
-
n("div",
|
|
711
|
+
n("div", Yt, [
|
|
712
|
+
n("div", Jt, [
|
|
713
713
|
C(H, {
|
|
714
714
|
fixTypeOpt: e.fixTypeOpt,
|
|
715
715
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -717,17 +717,17 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
717
717
|
imageBaseUrl: e.imageBaseUrl
|
|
718
718
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
719
719
|
]),
|
|
720
|
-
n("div",
|
|
720
|
+
n("div", el, [
|
|
721
721
|
n(
|
|
722
722
|
"div",
|
|
723
|
-
|
|
723
|
+
tl,
|
|
724
724
|
T(h[e.fixPropOpt.name]),
|
|
725
725
|
1
|
|
726
726
|
/* TEXT */
|
|
727
727
|
),
|
|
728
728
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
729
729
|
"div",
|
|
730
|
-
|
|
730
|
+
ll,
|
|
731
731
|
" (" + T((h == null ? void 0 : h.userCount) || 0) + ") ",
|
|
732
732
|
1
|
|
733
733
|
/* TEXT */
|
|
@@ -737,7 +737,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
737
737
|
]),
|
|
738
738
|
_: 2
|
|
739
739
|
/* DYNAMIC */
|
|
740
|
-
}, 1032, ["label"])) : (s(), f("div",
|
|
740
|
+
}, 1032, ["label"])) : (s(), f("div", al, [
|
|
741
741
|
O[5] || (O[5] = n(
|
|
742
742
|
"div",
|
|
743
743
|
{ class: "side" },
|
|
@@ -745,7 +745,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
745
745
|
-1
|
|
746
746
|
/* CACHED */
|
|
747
747
|
)),
|
|
748
|
-
n("div",
|
|
748
|
+
n("div", sl, [
|
|
749
749
|
C(H, {
|
|
750
750
|
fixTypeOpt: e.fixTypeOpt,
|
|
751
751
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -753,17 +753,17 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
753
753
|
imageBaseUrl: e.imageBaseUrl
|
|
754
754
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
755
755
|
]),
|
|
756
|
-
n("div",
|
|
756
|
+
n("div", ol, [
|
|
757
757
|
n(
|
|
758
758
|
"div",
|
|
759
|
-
|
|
759
|
+
nl,
|
|
760
760
|
T(h[e.fixPropOpt.name]),
|
|
761
761
|
1
|
|
762
762
|
/* TEXT */
|
|
763
763
|
),
|
|
764
764
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
765
765
|
"div",
|
|
766
|
-
|
|
766
|
+
il,
|
|
767
767
|
" (" + T(h.userCount) + ") ",
|
|
768
768
|
1
|
|
769
769
|
/* TEXT */
|
|
@@ -778,13 +778,13 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
778
778
|
)
|
|
779
779
|
}]),
|
|
780
780
|
onClick: (y) => {
|
|
781
|
-
var
|
|
781
|
+
var l;
|
|
782
782
|
return R(
|
|
783
783
|
h,
|
|
784
|
-
(
|
|
784
|
+
(l = P.value) == null ? void 0 : l.find((v) => v === h[e.fixPropOpt.id])
|
|
785
785
|
);
|
|
786
786
|
}
|
|
787
|
-
}, " 下级", 10,
|
|
787
|
+
}, " 下级", 10, rl)) : g("v-if", !0)
|
|
788
788
|
]);
|
|
789
789
|
}),
|
|
790
790
|
128
|
|
@@ -794,7 +794,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
794
794
|
_: 1
|
|
795
795
|
/* STABLE */
|
|
796
796
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
797
|
-
])) : (s(), f("div",
|
|
797
|
+
])) : (s(), f("div", pl, [
|
|
798
798
|
O[6] || (O[6] = n(
|
|
799
799
|
"img",
|
|
800
800
|
{
|
|
@@ -824,57 +824,57 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
824
824
|
);
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
}),
|
|
827
|
+
}), dl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-f7a238bb"]]), cl = { class: "left-pick-list" }, fl = {
|
|
828
828
|
key: 0,
|
|
829
829
|
class: "post-view-list"
|
|
830
|
-
},
|
|
830
|
+
}, Al = { class: "iconBox" }, vl = {
|
|
831
831
|
key: 1,
|
|
832
832
|
class: "checkText"
|
|
833
|
-
},
|
|
833
|
+
}, hl = { class: "iconBox" }, yl = { class: "title" }, ml = { class: "ik-picker-single" }, gl = { class: "iconBox" }, xl = {
|
|
834
834
|
key: 1,
|
|
835
835
|
class: "checkText"
|
|
836
|
-
},
|
|
836
|
+
}, Ol = { class: "iconBox" }, Pl = { class: "title" }, kl = {
|
|
837
837
|
key: 1,
|
|
838
838
|
class: "empty"
|
|
839
|
-
},
|
|
839
|
+
}, Tl = /* @__PURE__ */ de({
|
|
840
840
|
__name: "PostList",
|
|
841
841
|
props: Be,
|
|
842
842
|
emits: ["change", "check"],
|
|
843
843
|
setup(d, { emit: A }) {
|
|
844
844
|
var R, m;
|
|
845
845
|
const e = d, a = E(() => {
|
|
846
|
-
var o,
|
|
847
|
-
return ((o = e.handList) == null ? void 0 : o.length) === ((
|
|
846
|
+
var o, r;
|
|
847
|
+
return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
|
|
848
848
|
}), b = E(() => {
|
|
849
849
|
var O, u, h, c;
|
|
850
|
-
const o = (O = e.handList) == null ? void 0 : O.length,
|
|
851
|
-
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o <
|
|
850
|
+
const o = (O = e.handList) == null ? void 0 : O.length, r = (u = e.list) == null ? void 0 : u.length;
|
|
851
|
+
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
|
|
852
852
|
}), P = _(
|
|
853
853
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
854
|
-
), B = _((m = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : m[e.fixPropOpt.id]), w = A,
|
|
855
|
-
const
|
|
856
|
-
w("change",
|
|
854
|
+
), B = _((m = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : m[e.fixPropOpt.id]), w = A, p = (o) => {
|
|
855
|
+
const r = o ? e.list.map((O) => O[e.fixPropOpt.id]) : [];
|
|
856
|
+
w("change", r, o ? e.list : []);
|
|
857
857
|
}, F = (o) => {
|
|
858
858
|
w("change", o, e.list);
|
|
859
859
|
}, D = (o) => {
|
|
860
860
|
w("change", o, e.list);
|
|
861
861
|
};
|
|
862
|
-
return (o,
|
|
862
|
+
return (o, r) => {
|
|
863
863
|
const O = te("el-scrollbar");
|
|
864
864
|
return s(), f(
|
|
865
865
|
N,
|
|
866
866
|
null,
|
|
867
867
|
[
|
|
868
868
|
g(" 遍历list多选 "),
|
|
869
|
-
n("div",
|
|
869
|
+
n("div", cl, [
|
|
870
870
|
o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(), I(k(ue), {
|
|
871
871
|
key: 0,
|
|
872
872
|
modelValue: a.value,
|
|
873
|
-
"onUpdate:modelValue":
|
|
873
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u),
|
|
874
874
|
indeterminate: b.value,
|
|
875
|
-
onChange:
|
|
875
|
+
onChange: p
|
|
876
876
|
}, {
|
|
877
|
-
default: S(() => [...
|
|
877
|
+
default: S(() => [...r[3] || (r[3] = [
|
|
878
878
|
J(
|
|
879
879
|
"全选",
|
|
880
880
|
-1
|
|
@@ -886,18 +886,18 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
886
886
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
887
887
|
C(O, null, {
|
|
888
888
|
default: S(() => [
|
|
889
|
-
o.list && o.list.length ? (s(), f("ul",
|
|
889
|
+
o.list && o.list.length ? (s(), f("ul", fl, [
|
|
890
890
|
o.multiple ? (s(), I(k(be), {
|
|
891
891
|
key: 0,
|
|
892
892
|
modelValue: P.value,
|
|
893
|
-
"onUpdate:modelValue":
|
|
893
|
+
"onUpdate:modelValue": r[1] || (r[1] = (u) => P.value = u),
|
|
894
894
|
onChange: F
|
|
895
895
|
}, {
|
|
896
896
|
default: S(() => [
|
|
897
897
|
(s(!0), f(
|
|
898
898
|
N,
|
|
899
899
|
null,
|
|
900
|
-
|
|
900
|
+
z(o.list, (u) => (s(), f("li", {
|
|
901
901
|
key: u[e.fixPropOpt.id]
|
|
902
902
|
}, [
|
|
903
903
|
o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), I(k(ue), {
|
|
@@ -905,7 +905,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
905
905
|
label: u[e.fixPropOpt.id]
|
|
906
906
|
}, {
|
|
907
907
|
default: S(() => [
|
|
908
|
-
n("div",
|
|
908
|
+
n("div", Al, [
|
|
909
909
|
C(H, {
|
|
910
910
|
fixTypeOpt: e.fixTypeOpt,
|
|
911
911
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -923,15 +923,15 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
923
923
|
]),
|
|
924
924
|
_: 2
|
|
925
925
|
/* DYNAMIC */
|
|
926
|
-
}, 1032, ["label"])) : (s(), f("div",
|
|
927
|
-
|
|
926
|
+
}, 1032, ["label"])) : (s(), f("div", vl, [
|
|
927
|
+
r[4] || (r[4] = n(
|
|
928
928
|
"div",
|
|
929
929
|
{ class: "side" },
|
|
930
930
|
null,
|
|
931
931
|
-1
|
|
932
932
|
/* CACHED */
|
|
933
933
|
)),
|
|
934
|
-
n("div",
|
|
934
|
+
n("div", hl, [
|
|
935
935
|
C(H, {
|
|
936
936
|
fixTypeOpt: e.fixTypeOpt,
|
|
937
937
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -941,7 +941,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
941
941
|
]),
|
|
942
942
|
n(
|
|
943
943
|
"div",
|
|
944
|
-
|
|
944
|
+
yl,
|
|
945
945
|
T(u[e.fixPropOpt.name]),
|
|
946
946
|
1
|
|
947
947
|
/* TEXT */
|
|
@@ -958,14 +958,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
958
958
|
key: 1,
|
|
959
959
|
isIndeterminate: b.value,
|
|
960
960
|
modelValue: B.value,
|
|
961
|
-
"onUpdate:modelValue":
|
|
961
|
+
"onUpdate:modelValue": r[2] || (r[2] = (u) => B.value = u),
|
|
962
962
|
onChange: D
|
|
963
963
|
}, {
|
|
964
964
|
default: S(() => [
|
|
965
965
|
(s(!0), f(
|
|
966
966
|
N,
|
|
967
967
|
null,
|
|
968
|
-
|
|
968
|
+
z(o.list, (u) => (s(), f("li", {
|
|
969
969
|
class: "w-full",
|
|
970
970
|
key: u[e.fixPropOpt.id]
|
|
971
971
|
}, [
|
|
@@ -974,8 +974,8 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
974
974
|
label: u[e.fixPropOpt.id]
|
|
975
975
|
}, {
|
|
976
976
|
default: S(() => [
|
|
977
|
-
n("div",
|
|
978
|
-
n("div",
|
|
977
|
+
n("div", ml, [
|
|
978
|
+
n("div", gl, [
|
|
979
979
|
C(H, {
|
|
980
980
|
fixTypeOpt: e.fixTypeOpt,
|
|
981
981
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -994,15 +994,15 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
994
994
|
]),
|
|
995
995
|
_: 2
|
|
996
996
|
/* DYNAMIC */
|
|
997
|
-
}, 1032, ["label"])) : (s(), f("div",
|
|
998
|
-
|
|
997
|
+
}, 1032, ["label"])) : (s(), f("div", xl, [
|
|
998
|
+
r[5] || (r[5] = n(
|
|
999
999
|
"div",
|
|
1000
1000
|
{ class: "side" },
|
|
1001
1001
|
null,
|
|
1002
1002
|
-1
|
|
1003
1003
|
/* CACHED */
|
|
1004
1004
|
)),
|
|
1005
|
-
n("div",
|
|
1005
|
+
n("div", Ol, [
|
|
1006
1006
|
C(H, {
|
|
1007
1007
|
fixTypeOpt: e.fixTypeOpt,
|
|
1008
1008
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -1012,7 +1012,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1012
1012
|
]),
|
|
1013
1013
|
n(
|
|
1014
1014
|
"div",
|
|
1015
|
-
|
|
1015
|
+
Pl,
|
|
1016
1016
|
T(u[e.fixPropOpt.name]),
|
|
1017
1017
|
1
|
|
1018
1018
|
/* TEXT */
|
|
@@ -1026,8 +1026,8 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1026
1026
|
_: 1
|
|
1027
1027
|
/* STABLE */
|
|
1028
1028
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
1029
|
-
])) : (s(), f("div",
|
|
1030
|
-
|
|
1029
|
+
])) : (s(), f("div", kl, [
|
|
1030
|
+
r[6] || (r[6] = n(
|
|
1031
1031
|
"img",
|
|
1032
1032
|
{
|
|
1033
1033
|
src: Se,
|
|
@@ -1056,57 +1056,57 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1056
1056
|
);
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
}),
|
|
1059
|
+
}), Ll = /* @__PURE__ */ Q(Tl, [["__scopeId", "data-v-ab605706"]]), bl = { class: "left-pick-list" }, Cl = {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
class: "role-view-list"
|
|
1062
|
-
},
|
|
1062
|
+
}, Ul = { class: "iconBox" }, Sl = ["title"], Bl = {
|
|
1063
1063
|
key: 1,
|
|
1064
1064
|
class: "checkText"
|
|
1065
|
-
},
|
|
1065
|
+
}, wl = { class: "iconBox" }, _l = ["title"], El = { class: "ik-picker-single" }, Il = { class: "iconBox" }, Vl = ["title"], Dl = {
|
|
1066
1066
|
key: 1,
|
|
1067
1067
|
class: "checkText"
|
|
1068
|
-
},
|
|
1068
|
+
}, Nl = { class: "iconBox" }, Fl = ["title"], Rl = {
|
|
1069
1069
|
key: 1,
|
|
1070
1070
|
class: "empty"
|
|
1071
|
-
},
|
|
1071
|
+
}, Ml = /* @__PURE__ */ de({
|
|
1072
1072
|
__name: "RoleList",
|
|
1073
1073
|
props: Be,
|
|
1074
1074
|
emits: ["change", "check"],
|
|
1075
1075
|
setup(d, { emit: A }) {
|
|
1076
1076
|
var R, m;
|
|
1077
1077
|
const e = d, a = E(() => {
|
|
1078
|
-
var o,
|
|
1079
|
-
return ((o = e.handList) == null ? void 0 : o.length) === ((
|
|
1078
|
+
var o, r;
|
|
1079
|
+
return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
|
|
1080
1080
|
}), b = E(() => {
|
|
1081
1081
|
var O, u, h, c;
|
|
1082
|
-
const o = (O = e.handList) == null ? void 0 : O.length,
|
|
1083
|
-
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o <
|
|
1082
|
+
const o = (O = e.handList) == null ? void 0 : O.length, r = (u = e.list) == null ? void 0 : u.length;
|
|
1083
|
+
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : B.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
|
|
1084
1084
|
}), P = _(
|
|
1085
1085
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
1086
|
-
), B = _((m = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : m[e.fixPropOpt.id]), w = A,
|
|
1087
|
-
const
|
|
1088
|
-
w("change",
|
|
1086
|
+
), B = _((m = (R = e.handList) == null ? void 0 : R[0]) == null ? void 0 : m[e.fixPropOpt.id]), w = A, p = (o) => {
|
|
1087
|
+
const r = o ? e.list.map((O) => O[e.fixPropOpt.id]) : [];
|
|
1088
|
+
w("change", r, o ? e.list : []);
|
|
1089
1089
|
}, F = (o) => {
|
|
1090
1090
|
w("change", o, e.list);
|
|
1091
1091
|
}, D = (o) => {
|
|
1092
1092
|
w("change", o, e.list);
|
|
1093
1093
|
};
|
|
1094
|
-
return (o,
|
|
1094
|
+
return (o, r) => {
|
|
1095
1095
|
const O = te("el-scrollbar");
|
|
1096
1096
|
return s(), f(
|
|
1097
1097
|
N,
|
|
1098
1098
|
null,
|
|
1099
1099
|
[
|
|
1100
1100
|
g(" 遍历list多选 "),
|
|
1101
|
-
n("div",
|
|
1101
|
+
n("div", bl, [
|
|
1102
1102
|
o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(), I(k(ue), {
|
|
1103
1103
|
key: 0,
|
|
1104
1104
|
modelValue: a.value,
|
|
1105
|
-
"onUpdate:modelValue":
|
|
1105
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u),
|
|
1106
1106
|
indeterminate: b.value,
|
|
1107
|
-
onChange:
|
|
1107
|
+
onChange: p
|
|
1108
1108
|
}, {
|
|
1109
|
-
default: S(() => [...
|
|
1109
|
+
default: S(() => [...r[3] || (r[3] = [
|
|
1110
1110
|
J(
|
|
1111
1111
|
"全选",
|
|
1112
1112
|
-1
|
|
@@ -1118,18 +1118,18 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1118
1118
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
1119
1119
|
C(O, null, {
|
|
1120
1120
|
default: S(() => [
|
|
1121
|
-
o.list && o.list.length ? (s(), f("ul",
|
|
1121
|
+
o.list && o.list.length ? (s(), f("ul", Cl, [
|
|
1122
1122
|
o.multiple ? (s(), I(k(be), {
|
|
1123
1123
|
key: 0,
|
|
1124
1124
|
modelValue: P.value,
|
|
1125
|
-
"onUpdate:modelValue":
|
|
1125
|
+
"onUpdate:modelValue": r[1] || (r[1] = (u) => P.value = u),
|
|
1126
1126
|
onChange: F
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: S(() => [
|
|
1129
1129
|
(s(!0), f(
|
|
1130
1130
|
N,
|
|
1131
1131
|
null,
|
|
1132
|
-
|
|
1132
|
+
z(o.list, (u) => (s(), f("li", {
|
|
1133
1133
|
key: u[o.fixPropOpt.id]
|
|
1134
1134
|
}, [
|
|
1135
1135
|
o.chooseType.includes(u[e.fixPropOpt.type].toLowerCase()) ? (s(), I(k(ue), {
|
|
@@ -1139,7 +1139,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1139
1139
|
disabled: u.disabled
|
|
1140
1140
|
}, {
|
|
1141
1141
|
default: S(() => [
|
|
1142
|
-
n("div",
|
|
1142
|
+
n("div", Ul, [
|
|
1143
1143
|
C(H, {
|
|
1144
1144
|
fixTypeOpt: e.fixTypeOpt,
|
|
1145
1145
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -1149,19 +1149,19 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1149
1149
|
]),
|
|
1150
1150
|
n("p", {
|
|
1151
1151
|
title: u[o.fixPropOpt.name]
|
|
1152
|
-
}, T(u[o.fixPropOpt.name]), 9,
|
|
1152
|
+
}, T(u[o.fixPropOpt.name]), 9, Sl)
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 2
|
|
1155
1155
|
/* DYNAMIC */
|
|
1156
|
-
}, 1032, ["label", "value", "disabled"])) : (s(), f("div",
|
|
1157
|
-
|
|
1156
|
+
}, 1032, ["label", "value", "disabled"])) : (s(), f("div", Bl, [
|
|
1157
|
+
r[4] || (r[4] = n(
|
|
1158
1158
|
"div",
|
|
1159
1159
|
{ class: "side" },
|
|
1160
1160
|
null,
|
|
1161
1161
|
-1
|
|
1162
1162
|
/* CACHED */
|
|
1163
1163
|
)),
|
|
1164
|
-
n("div",
|
|
1164
|
+
n("div", wl, [
|
|
1165
1165
|
C(H, {
|
|
1166
1166
|
fixTypeOpt: e.fixTypeOpt,
|
|
1167
1167
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -1172,7 +1172,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1172
1172
|
n("div", {
|
|
1173
1173
|
class: "title",
|
|
1174
1174
|
title: u[o.fixPropOpt.name]
|
|
1175
|
-
}, T(u[o.fixPropOpt.name]), 9,
|
|
1175
|
+
}, T(u[o.fixPropOpt.name]), 9, _l)
|
|
1176
1176
|
]))
|
|
1177
1177
|
]))),
|
|
1178
1178
|
128
|
|
@@ -1185,14 +1185,14 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1185
1185
|
key: 1,
|
|
1186
1186
|
indeterminate: b.value,
|
|
1187
1187
|
modelValue: B.value,
|
|
1188
|
-
"onUpdate:modelValue":
|
|
1188
|
+
"onUpdate:modelValue": r[2] || (r[2] = (u) => B.value = u),
|
|
1189
1189
|
onChange: D
|
|
1190
1190
|
}, {
|
|
1191
1191
|
default: S(() => [
|
|
1192
1192
|
(s(!0), f(
|
|
1193
1193
|
N,
|
|
1194
1194
|
null,
|
|
1195
|
-
|
|
1195
|
+
z(o.list, (u) => (s(), f("li", {
|
|
1196
1196
|
class: "w-full",
|
|
1197
1197
|
key: u[o.fixPropOpt.id]
|
|
1198
1198
|
}, [
|
|
@@ -1203,8 +1203,8 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1203
1203
|
disabled: u.disabled
|
|
1204
1204
|
}, {
|
|
1205
1205
|
default: S(() => [
|
|
1206
|
-
n("div",
|
|
1207
|
-
n("div",
|
|
1206
|
+
n("div", El, [
|
|
1207
|
+
n("div", Il, [
|
|
1208
1208
|
C(H, {
|
|
1209
1209
|
fixTypeOpt: e.fixTypeOpt,
|
|
1210
1210
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -1214,20 +1214,20 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1214
1214
|
]),
|
|
1215
1215
|
n("p", {
|
|
1216
1216
|
title: u[o.fixPropOpt.name]
|
|
1217
|
-
}, T(u[o.fixPropOpt.name]), 9,
|
|
1217
|
+
}, T(u[o.fixPropOpt.name]), 9, Vl)
|
|
1218
1218
|
])
|
|
1219
1219
|
]),
|
|
1220
1220
|
_: 2
|
|
1221
1221
|
/* DYNAMIC */
|
|
1222
|
-
}, 1032, ["label", "value", "disabled"])) : (s(), f("div",
|
|
1223
|
-
|
|
1222
|
+
}, 1032, ["label", "value", "disabled"])) : (s(), f("div", Dl, [
|
|
1223
|
+
r[5] || (r[5] = n(
|
|
1224
1224
|
"div",
|
|
1225
1225
|
{ class: "side" },
|
|
1226
1226
|
null,
|
|
1227
1227
|
-1
|
|
1228
1228
|
/* CACHED */
|
|
1229
1229
|
)),
|
|
1230
|
-
n("div",
|
|
1230
|
+
n("div", Nl, [
|
|
1231
1231
|
C(H, {
|
|
1232
1232
|
fixTypeOpt: e.fixTypeOpt,
|
|
1233
1233
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -1238,7 +1238,7 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1238
1238
|
n("div", {
|
|
1239
1239
|
class: "title",
|
|
1240
1240
|
title: u[o.fixPropOpt.name]
|
|
1241
|
-
}, T(u[o.fixPropOpt.name]), 9,
|
|
1241
|
+
}, T(u[o.fixPropOpt.name]), 9, Fl)
|
|
1242
1242
|
]))
|
|
1243
1243
|
]))),
|
|
1244
1244
|
128
|
|
@@ -1248,8 +1248,8 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1248
1248
|
_: 1
|
|
1249
1249
|
/* STABLE */
|
|
1250
1250
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1251
|
-
])) : (s(), f("div",
|
|
1252
|
-
|
|
1251
|
+
])) : (s(), f("div", Rl, [
|
|
1252
|
+
r[6] || (r[6] = n(
|
|
1253
1253
|
"img",
|
|
1254
1254
|
{
|
|
1255
1255
|
src: Se,
|
|
@@ -1278,9 +1278,9 @@ const Vt = /* @__PURE__ */ X(_t, [["render", It]]), Dt = { class: "avatar" }, Nt
|
|
|
1278
1278
|
);
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
1281
|
-
}),
|
|
1282
|
-
var
|
|
1283
|
-
const
|
|
1281
|
+
}), Wl = /* @__PURE__ */ Q(Ml, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1282
|
+
var ve = /* @__PURE__ */ ((d) => (d.group = "group", d.role = "role", d.post = "post", d))(ve || {});
|
|
1283
|
+
const jl = {
|
|
1284
1284
|
// 是否允许选择子集
|
|
1285
1285
|
children: {
|
|
1286
1286
|
type: Boolean,
|
|
@@ -1447,27 +1447,32 @@ const Hl = {
|
|
|
1447
1447
|
rootDepartmentOnly: {
|
|
1448
1448
|
type: Boolean,
|
|
1449
1449
|
default: !1
|
|
1450
|
+
},
|
|
1451
|
+
// 是否开启调试模式
|
|
1452
|
+
debug: {
|
|
1453
|
+
type: Boolean,
|
|
1454
|
+
default: !1
|
|
1450
1455
|
}
|
|
1451
|
-
},
|
|
1456
|
+
}, Ne = (d) => {
|
|
1452
1457
|
const A = window.location.search;
|
|
1453
1458
|
return new URLSearchParams(A).get(d);
|
|
1454
|
-
},
|
|
1459
|
+
}, Hl = (d) => {
|
|
1455
1460
|
const A = pe.local.getItem("x_domain");
|
|
1456
1461
|
A && (d["X-DOMAIN"] = A);
|
|
1457
|
-
},
|
|
1462
|
+
}, Gl = (d) => {
|
|
1458
1463
|
var e;
|
|
1459
|
-
const A =
|
|
1464
|
+
const A = Ne("domain");
|
|
1460
1465
|
if (A) {
|
|
1461
1466
|
d["X-DOMAIN"] = A;
|
|
1462
|
-
const a =
|
|
1467
|
+
const a = Ne("code");
|
|
1463
1468
|
A === "APPLICATION" && (d["X-APP"] = a);
|
|
1464
1469
|
} else
|
|
1465
|
-
|
|
1470
|
+
Hl(d);
|
|
1466
1471
|
(e = pe.local.getItem("tenant")) == null || e.code;
|
|
1467
|
-
},
|
|
1472
|
+
}, $l = (d, A) => {
|
|
1468
1473
|
const e = _([]), a = async (P, B) => {
|
|
1469
|
-
var M, W,
|
|
1470
|
-
const { url: w, methods:
|
|
1474
|
+
var M, W, G;
|
|
1475
|
+
const { url: w, methods: p, headers: F, param: D } = d.value || {}, R = {
|
|
1471
1476
|
// 额外参数
|
|
1472
1477
|
rootDepartmentId: ((M = pe.local.getItem("now_shop")) == null ? void 0 : M.storeId) || "",
|
|
1473
1478
|
parentDepartmentId: P || "",
|
|
@@ -1476,7 +1481,7 @@ const Hl = {
|
|
|
1476
1481
|
dataScopeOnly: A.dataScopeOnly,
|
|
1477
1482
|
...D || {}
|
|
1478
1483
|
}, m = {
|
|
1479
|
-
method:
|
|
1484
|
+
method: p,
|
|
1480
1485
|
url: w,
|
|
1481
1486
|
headers: {
|
|
1482
1487
|
"Content-Type": "application/json;charset=UTF-8",
|
|
@@ -1484,9 +1489,9 @@ const Hl = {
|
|
|
1484
1489
|
},
|
|
1485
1490
|
data: JSON.stringify(R)
|
|
1486
1491
|
};
|
|
1487
|
-
|
|
1488
|
-
const o = await
|
|
1489
|
-
if (!
|
|
1492
|
+
Gl(m.headers);
|
|
1493
|
+
const o = await dt(m), { success: r, data: O } = o.data;
|
|
1494
|
+
if (!r)
|
|
1490
1495
|
return {
|
|
1491
1496
|
groupList: [],
|
|
1492
1497
|
roleList: [],
|
|
@@ -1500,13 +1505,13 @@ const Hl = {
|
|
|
1500
1505
|
roles: h,
|
|
1501
1506
|
posts: c,
|
|
1502
1507
|
users: y,
|
|
1503
|
-
rootOrganization:
|
|
1508
|
+
rootOrganization: l,
|
|
1504
1509
|
rootDepartment: v
|
|
1505
|
-
} = O, $ =
|
|
1510
|
+
} = O, $ = l || v;
|
|
1506
1511
|
return e.value.length === 0 && (e.value[0] = A.org ? {
|
|
1507
1512
|
...A.org,
|
|
1508
1513
|
id: A.elementId,
|
|
1509
|
-
elementType: (
|
|
1514
|
+
elementType: (G = (W = A.org) == null ? void 0 : W.elementType) == null ? void 0 : G.toLocaleUpperCase()
|
|
1510
1515
|
} : {
|
|
1511
1516
|
...$,
|
|
1512
1517
|
id: $.elementId
|
|
@@ -1515,7 +1520,7 @@ const Hl = {
|
|
|
1515
1520
|
roleList: ee.cloneDeep(h),
|
|
1516
1521
|
postList: ee.cloneDeep(c),
|
|
1517
1522
|
userList: ee.cloneDeep(y),
|
|
1518
|
-
rootOrganization:
|
|
1523
|
+
rootOrganization: l,
|
|
1519
1524
|
rootDepartment: v
|
|
1520
1525
|
};
|
|
1521
1526
|
};
|
|
@@ -1526,18 +1531,15 @@ const Hl = {
|
|
|
1526
1531
|
},
|
|
1527
1532
|
bannerList: e
|
|
1528
1533
|
};
|
|
1529
|
-
},
|
|
1534
|
+
}, zl = {
|
|
1530
1535
|
shadow: "hover",
|
|
1531
1536
|
class: "sel-list"
|
|
1532
|
-
},
|
|
1537
|
+
}, Ql = { key: 0 }, Xl = { class: "choose-list" }, ql = { class: "choose-item" }, Zl = { class: "list-group-item draggable-item" }, Kl = { class: "item_info" }, Yl = { class: "avatar_box" }, Jl = { class: "dialog-footer" }, ea = /* @__PURE__ */ de({
|
|
1533
1538
|
__name: "picker",
|
|
1534
|
-
props:
|
|
1539
|
+
props: jl,
|
|
1535
1540
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1536
1541
|
setup(d, { expose: A, emit: e }) {
|
|
1537
|
-
|
|
1538
|
-
v57dba46f: Ie.value
|
|
1539
|
-
}));
|
|
1540
|
-
const a = d, b = _(""), P = _(""), B = _([]), w = _([]), r = _([]), F = _([]), D = _(!1), R = E(() => z.value.includes("user") ? w.value.concat(B.value) : w.value);
|
|
1542
|
+
const a = d, b = _(""), P = _(""), B = _([]), w = _([]), p = _([]), F = _([]), D = _(!1), R = E(() => G.value.includes("user") ? w.value.concat(B.value) : w.value);
|
|
1541
1543
|
Y(
|
|
1542
1544
|
() => a.api,
|
|
1543
1545
|
() => {
|
|
@@ -1556,32 +1558,32 @@ const Hl = {
|
|
|
1556
1558
|
post: "POST",
|
|
1557
1559
|
group: "DEPT",
|
|
1558
1560
|
...a.typeOption
|
|
1559
|
-
})),
|
|
1561
|
+
})), r = _([]), O = $l(st(a, "api"), a), u = O.handData, h = O.bannerList;
|
|
1560
1562
|
a.immediate && u(P.value, b.value);
|
|
1561
|
-
const c = (
|
|
1563
|
+
const c = (t) => (t.forEach((i) => {
|
|
1562
1564
|
var x, L;
|
|
1563
1565
|
i.disabled = ((L = (x = a.modelValue) == null ? void 0 : x.find(
|
|
1564
|
-
(
|
|
1566
|
+
(Z) => Z[m.value.id] === i[m.value.id]
|
|
1565
1567
|
)) == null ? void 0 : L.disabled) || !1;
|
|
1566
|
-
}),
|
|
1567
|
-
var
|
|
1568
|
+
}), t), y = async () => {
|
|
1569
|
+
var t, i, x, L, Z, U, ce, Oe;
|
|
1568
1570
|
D.value = !0;
|
|
1569
1571
|
try {
|
|
1570
|
-
if ((
|
|
1571
|
-
B.value = (
|
|
1572
|
+
if ((t = a.groupList) != null && t.length || (i = a.userList) != null && i.length || (x = a.roleList) != null && x.length || (L = a.postList) != null && L.length) {
|
|
1573
|
+
B.value = (Z = a.userList) == null ? void 0 : Z.filter(
|
|
1572
1574
|
(K) => K[m.value.name].includes(b.value)
|
|
1573
1575
|
), w.value = (U = a.groupList) == null ? void 0 : U.filter(
|
|
1574
1576
|
(K) => K[m.value.name].includes(b.value)
|
|
1575
|
-
),
|
|
1577
|
+
), p.value = (ce = a.roleList) == null ? void 0 : ce.filter(
|
|
1576
1578
|
(K) => K[m.value.name].includes(b.value)
|
|
1577
|
-
), F.value = (
|
|
1579
|
+
), F.value = (Oe = a.postList) == null ? void 0 : Oe.filter(
|
|
1578
1580
|
(K) => K[m.value.name].includes(b.value)
|
|
1579
1581
|
), ne(), D.value = !1;
|
|
1580
1582
|
return;
|
|
1581
1583
|
}
|
|
1582
1584
|
const j = await u(P.value, b.value);
|
|
1583
1585
|
try {
|
|
1584
|
-
B.value = c((j == null ? void 0 : j.userList) || []), w.value = c((j == null ? void 0 : j.groupList) || []),
|
|
1586
|
+
B.value = c((j == null ? void 0 : j.userList) || []), w.value = c((j == null ? void 0 : j.groupList) || []), p.value = c((j == null ? void 0 : j.roleList) || []), F.value = c((j == null ? void 0 : j.postList) || []);
|
|
1585
1587
|
} catch (K) {
|
|
1586
1588
|
D.value = !1, console.info("error: ", K);
|
|
1587
1589
|
}
|
|
@@ -1589,7 +1591,7 @@ const Hl = {
|
|
|
1589
1591
|
} catch {
|
|
1590
1592
|
D.value = !1;
|
|
1591
1593
|
}
|
|
1592
|
-
},
|
|
1594
|
+
}, l = Te({
|
|
1593
1595
|
group: /* @__PURE__ */ new Map(),
|
|
1594
1596
|
// 组织架构选中项 Map<id, item>
|
|
1595
1597
|
user: /* @__PURE__ */ new Map(),
|
|
@@ -1607,10 +1609,10 @@ const Hl = {
|
|
|
1607
1609
|
// 半选状态
|
|
1608
1610
|
checkAll: 0
|
|
1609
1611
|
// 全选状态(0: 未选, 1: 全选)
|
|
1610
|
-
}), $ = (
|
|
1611
|
-
const
|
|
1612
|
-
return
|
|
1613
|
-
list: [...i, ...x, ...L, ...
|
|
1612
|
+
}), $ = (t) => l.group.has(t) || l.user.has(t) || l.role.has(t) || l.post.has(t), M = nt.debounce(y, 300), W = E(() => {
|
|
1613
|
+
const t = Array.from(l.group.values()), i = Array.from(l.role.values()), x = Array.from(l.user.values()), L = Array.from(l.post.values());
|
|
1614
|
+
return r.value = [...i, ...L, ...x, ...t], {
|
|
1615
|
+
list: [...i, ...x, ...L, ...t],
|
|
1614
1616
|
// 所有选中项
|
|
1615
1617
|
role: {
|
|
1616
1618
|
list: i,
|
|
@@ -1625,174 +1627,176 @@ const Hl = {
|
|
|
1625
1627
|
len: L.length
|
|
1626
1628
|
},
|
|
1627
1629
|
groups: {
|
|
1628
|
-
list:
|
|
1629
|
-
len:
|
|
1630
|
+
list: t,
|
|
1631
|
+
len: t.length
|
|
1630
1632
|
}
|
|
1631
1633
|
};
|
|
1632
|
-
}),
|
|
1633
|
-
const
|
|
1634
|
-
let i = [...
|
|
1635
|
-
return
|
|
1636
|
-
}),
|
|
1637
|
-
|
|
1634
|
+
}), G = E(() => {
|
|
1635
|
+
const t = a.chooseType.map((x) => x.toLocaleLowerCase());
|
|
1636
|
+
let i = [...t];
|
|
1637
|
+
return t.includes("dep") && (i = [...i, "dept"]), t.includes("dep_user") && (i = [...i, "user"]), i;
|
|
1638
|
+
}), X = _([]), V = (t) => {
|
|
1639
|
+
X.value = t, X.value.forEach((i) => {
|
|
1638
1640
|
i.readonly = i == null ? void 0 : i.disabled;
|
|
1639
1641
|
});
|
|
1640
|
-
},
|
|
1642
|
+
}, q = e, oe = _(!1), ne = (t = !1) => {
|
|
1641
1643
|
var x;
|
|
1642
1644
|
const i = (x = a == null ? void 0 : a.userList) != null && x.length ? ee.cloneDeep([...a == null ? void 0 : a.userList, ...a == null ? void 0 : a.groupList]) : [...w.value, ...B.value];
|
|
1643
|
-
return !
|
|
1645
|
+
return !t && V(i), i;
|
|
1644
1646
|
};
|
|
1645
1647
|
Y(
|
|
1646
1648
|
() => a.show,
|
|
1647
|
-
async (
|
|
1649
|
+
async (t) => {
|
|
1648
1650
|
var i;
|
|
1649
|
-
if (oe.value =
|
|
1650
|
-
P.value = ((i = a.org) == null ? void 0 : i.elementId) || a.orgPid, !a.userList.length && !a.groupList.length && !a.roleList.length && !a.postList.length ? await y() : (B.value = a.userList, w.value = a.groupList,
|
|
1651
|
+
if (oe.value = t, t) {
|
|
1652
|
+
P.value = ((i = a.org) == null ? void 0 : i.elementId) || a.orgPid, !a.userList.length && !a.groupList.length && !a.roleList.length && !a.postList.length ? await y() : (B.value = a.userList, w.value = a.groupList, p.value = a.roleList, F.value = a.postList), l.trans = [], v.checkAll = 0, v.indeterminate = !1;
|
|
1651
1653
|
const x = ne(!0);
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1654
|
+
Le(() => {
|
|
1655
|
+
var L;
|
|
1656
|
+
if ((L = a.modelValue) != null && L.length) {
|
|
1657
|
+
a.modelValue.forEach((U) => {
|
|
1658
|
+
le(U), a.multiple ? l.trans.push(U[m.value.id]) : l.single = U[m.value.id];
|
|
1659
|
+
});
|
|
1660
|
+
const Z = x.length === l.trans.length;
|
|
1661
|
+
v.indeterminate = !!(x.length && !Z), v.checkAll = Number(x.length && Z);
|
|
1662
|
+
} else
|
|
1663
|
+
se();
|
|
1660
1664
|
});
|
|
1661
1665
|
} else
|
|
1662
1666
|
se();
|
|
1663
1667
|
}
|
|
1664
|
-
),
|
|
1665
|
-
let
|
|
1666
|
-
const i =
|
|
1667
|
-
v.indeterminate =
|
|
1668
|
+
), Ie(() => {
|
|
1669
|
+
let t = X.value.length;
|
|
1670
|
+
const i = l.trans.length;
|
|
1671
|
+
v.indeterminate = l.trans.length ? i !== t : !1, v.checkAll = +(t !== 0 && i === t);
|
|
1668
1672
|
}), Y(
|
|
1669
1673
|
() => a.modelValue,
|
|
1670
|
-
(
|
|
1671
|
-
|
|
1672
|
-
le(i), a.multiple ?
|
|
1674
|
+
(t) => {
|
|
1675
|
+
t != null && t.length ? t.forEach((i) => {
|
|
1676
|
+
le(i), a.multiple ? l.trans.push(i[m.value.id]) : l.single = i[m.value.id];
|
|
1673
1677
|
}) : se();
|
|
1674
1678
|
}
|
|
1675
1679
|
);
|
|
1676
|
-
const ie = (
|
|
1680
|
+
const ie = (t) => {
|
|
1677
1681
|
var i;
|
|
1678
|
-
if (
|
|
1679
|
-
if (
|
|
1680
|
-
const x = (i =
|
|
1681
|
-
(L) => L ===
|
|
1682
|
+
if (a.debug && console.log("删除项:", t), !!t) {
|
|
1683
|
+
if (l.single = "", t[m.value.id]) {
|
|
1684
|
+
const x = (i = l.trans) == null ? void 0 : i.findIndex(
|
|
1685
|
+
(L) => L === t[m.value.id]
|
|
1682
1686
|
);
|
|
1683
|
-
x !== -1 &&
|
|
1687
|
+
x !== -1 && l.trans.splice(x, 1);
|
|
1684
1688
|
}
|
|
1685
|
-
switch (
|
|
1689
|
+
switch (t[m.value.type]) {
|
|
1686
1690
|
case o.value.user:
|
|
1687
|
-
return
|
|
1691
|
+
return l.user.delete(t[m.value.id]);
|
|
1688
1692
|
case o.value.role:
|
|
1689
|
-
return
|
|
1693
|
+
return l.role.delete(t[m.value.id]);
|
|
1690
1694
|
case o.value.post:
|
|
1691
|
-
return
|
|
1695
|
+
return l.post.delete(t[m.value.id]);
|
|
1692
1696
|
case o.value.group:
|
|
1693
|
-
return
|
|
1697
|
+
return l.group.delete(t[m.value.id]);
|
|
1694
1698
|
default:
|
|
1695
1699
|
return;
|
|
1696
1700
|
}
|
|
1697
1701
|
}
|
|
1698
|
-
}, we = (
|
|
1699
|
-
ie(
|
|
1700
|
-
},
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1705
|
-
const i =
|
|
1706
|
-
switch (
|
|
1702
|
+
}, we = (t) => {
|
|
1703
|
+
ie(t);
|
|
1704
|
+
}, je = () => {
|
|
1705
|
+
}, He = (t) => {
|
|
1706
|
+
Ge();
|
|
1707
|
+
}, Ge = () => {
|
|
1708
|
+
a.debug && console.log("更新选中项的Map数据结构:", r.value), l.user.clear(), l.role.clear(), l.post.clear(), l.group.clear(), r.value.forEach((t) => {
|
|
1709
|
+
const i = t[m.value.id];
|
|
1710
|
+
switch (t[m.value.type]) {
|
|
1707
1711
|
case o.value.user:
|
|
1708
|
-
|
|
1712
|
+
l.user.set(i, t);
|
|
1709
1713
|
break;
|
|
1710
1714
|
case o.value.role:
|
|
1711
|
-
|
|
1715
|
+
l.role.set(i, t);
|
|
1712
1716
|
break;
|
|
1713
1717
|
case o.value.post:
|
|
1714
|
-
|
|
1718
|
+
l.post.set(i, t);
|
|
1715
1719
|
break;
|
|
1716
1720
|
case o.value.group:
|
|
1717
|
-
|
|
1721
|
+
l.group.set(i, t);
|
|
1718
1722
|
break;
|
|
1719
1723
|
}
|
|
1720
1724
|
});
|
|
1721
|
-
}, le = (
|
|
1722
|
-
if (!$(
|
|
1725
|
+
}, le = (t) => {
|
|
1726
|
+
if (!$(t[m.value.id])) {
|
|
1723
1727
|
const i = {
|
|
1724
|
-
...
|
|
1728
|
+
...t
|
|
1725
1729
|
// readonly: item.disabled // 保留原有的禁用状态
|
|
1726
1730
|
};
|
|
1727
|
-
switch (
|
|
1731
|
+
switch (t[m.value.type]) {
|
|
1728
1732
|
case o.value.user:
|
|
1729
|
-
return
|
|
1733
|
+
return l.user.set(t[m.value.id], i);
|
|
1730
1734
|
case o.value.role:
|
|
1731
|
-
return
|
|
1735
|
+
return l.role.set(t[m.value.id], i);
|
|
1732
1736
|
case o.value.post:
|
|
1733
|
-
return
|
|
1737
|
+
return l.post.set(t[m.value.id], i);
|
|
1734
1738
|
case o.value.group:
|
|
1735
|
-
return
|
|
1739
|
+
return l.group.set(t[m.value.id], i);
|
|
1736
1740
|
default:
|
|
1737
1741
|
return;
|
|
1738
1742
|
}
|
|
1739
1743
|
}
|
|
1740
|
-
},
|
|
1741
|
-
|
|
1742
|
-
) ?
|
|
1744
|
+
}, $e = (t) => [o.value.group].includes(
|
|
1745
|
+
t[m.value.type]
|
|
1746
|
+
) ? t == null ? void 0 : t.hasOwnProperty("disabled") : !1;
|
|
1743
1747
|
Y(
|
|
1744
|
-
() =>
|
|
1745
|
-
(
|
|
1746
|
-
if (!
|
|
1747
|
-
|
|
1748
|
+
() => l.trans,
|
|
1749
|
+
(t) => {
|
|
1750
|
+
if (!t.length)
|
|
1751
|
+
X.value.forEach((i) => {
|
|
1748
1752
|
i.disabled = !1;
|
|
1749
1753
|
});
|
|
1750
1754
|
else {
|
|
1751
|
-
const i =
|
|
1752
|
-
(x) =>
|
|
1755
|
+
const i = X.value.filter(
|
|
1756
|
+
(x) => t.includes(x[m.value.id])
|
|
1753
1757
|
);
|
|
1754
1758
|
for (const x of i)
|
|
1755
|
-
x.disabled =
|
|
1759
|
+
x.disabled = $e(x), le(x);
|
|
1756
1760
|
}
|
|
1757
1761
|
},
|
|
1758
1762
|
{ deep: !0 }
|
|
1759
1763
|
), Y(
|
|
1760
|
-
() =>
|
|
1761
|
-
(
|
|
1764
|
+
() => l.single,
|
|
1765
|
+
(t) => {
|
|
1762
1766
|
var i;
|
|
1763
|
-
if (
|
|
1764
|
-
const x = (i =
|
|
1765
|
-
x && (
|
|
1767
|
+
if (t) {
|
|
1768
|
+
const x = (i = X.value) == null ? void 0 : i.find((L) => L[m.value.id] === t);
|
|
1769
|
+
x && (l.user.clear(), l.role.clear(), l.post.clear(), l.group.clear(), l.trans = [], Le(() => {
|
|
1766
1770
|
le(x);
|
|
1767
1771
|
}));
|
|
1768
1772
|
}
|
|
1769
1773
|
}
|
|
1770
1774
|
);
|
|
1771
|
-
const
|
|
1772
|
-
P.value =
|
|
1773
|
-
}, _e = E(() => h.value.length),
|
|
1774
|
-
!i && !a.topLink || i !== _e.value - 1 && (P.value =
|
|
1775
|
-
},
|
|
1775
|
+
const ze = (t) => {
|
|
1776
|
+
P.value = t == null ? void 0 : t.elementId, y(), h.value.push(t);
|
|
1777
|
+
}, _e = E(() => h.value.length), Qe = (t, i) => {
|
|
1778
|
+
!i && !a.topLink || i !== _e.value - 1 && (P.value = t == null ? void 0 : t.elementId, y(), h.value.splice(i + 1));
|
|
1779
|
+
}, Xe = E(
|
|
1776
1780
|
() => a.chooseType.includes("role") && a.chooseType.length === 1
|
|
1777
|
-
),
|
|
1781
|
+
), qe = E(
|
|
1778
1782
|
() => a.chooseType.includes("post") && a.chooseType.length === 1
|
|
1779
|
-
),
|
|
1780
|
-
|
|
1783
|
+
), he = _(a.tabs[0]), ae = _(a.tabs[0]);
|
|
1784
|
+
Ie(() => (ae.value = Xe.value ? a.tabs[1] : qe.value ? a.tabs[2] : he.value, ae.value));
|
|
1781
1785
|
const se = () => {
|
|
1782
|
-
|
|
1783
|
-
},
|
|
1784
|
-
var
|
|
1785
|
-
|
|
1786
|
+
l.user.clear(), l.role.clear(), l.post.clear(), l.group.clear(), l.trans = [], ge.value = [], xe.value = [], he.value = a.tabs[0], ae.value = a.tabs[0], b.value = "", P.value = a.orgPid, h.value.splice(1, h.value.length), l.single = "", r.value = [];
|
|
1787
|
+
}, Ze = () => {
|
|
1788
|
+
var t;
|
|
1789
|
+
q(
|
|
1786
1790
|
"ok",
|
|
1787
1791
|
ee.cloneDeep({
|
|
1788
1792
|
// 所有选项、部门、人员、角色分别列出
|
|
1789
1793
|
...W.value,
|
|
1790
1794
|
// 排序后的列表
|
|
1791
|
-
sort:
|
|
1795
|
+
sort: r.value
|
|
1792
1796
|
})
|
|
1793
|
-
),
|
|
1797
|
+
), q("update:modelValue", ee.cloneDeep(((t = W.value) == null ? void 0 : t.list) || [])), q("update:show", !1), se();
|
|
1794
1798
|
}, Ee = () => {
|
|
1795
|
-
|
|
1799
|
+
q("update:show", !1), se();
|
|
1796
1800
|
};
|
|
1797
1801
|
A({
|
|
1798
1802
|
handClear: se,
|
|
@@ -1802,91 +1806,93 @@ const Hl = {
|
|
|
1802
1806
|
handDelete: ie
|
|
1803
1807
|
// 删除选中项
|
|
1804
1808
|
});
|
|
1805
|
-
const
|
|
1806
|
-
const
|
|
1807
|
-
return !!((
|
|
1808
|
-
}),
|
|
1809
|
+
const Ke = E(() => {
|
|
1810
|
+
const t = G.value;
|
|
1811
|
+
return !!((t.includes("post") || t.includes("role")) && t.length > 1);
|
|
1812
|
+
}), Ye = E(() => [
|
|
1809
1813
|
{ name: "group", label: "组织架构" },
|
|
1810
1814
|
{ name: "role", label: "角色列表" },
|
|
1811
1815
|
{ name: "post", label: "岗位列表" }
|
|
1812
|
-
].filter((
|
|
1816
|
+
].filter((t) => a.tabs.includes(t.name))), Je = E(
|
|
1813
1817
|
() => `${typeof a.height == "string" ? Number.parseInt(a.height) : a.height}px`
|
|
1814
|
-
),
|
|
1815
|
-
a.multiple || (
|
|
1816
|
-
}, et = E(() => W.value.groups.list.concat(W.value.user.list)), tt = (
|
|
1817
|
-
a.multiple || (
|
|
1818
|
-
const x = a.multiple ?
|
|
1818
|
+
), me = () => {
|
|
1819
|
+
a.multiple || (l.post.clear(), l.role.clear(), l.user.clear(), l.group.clear(), l.single = "");
|
|
1820
|
+
}, et = E(() => W.value.groups.list.concat(W.value.user.list)), tt = (t, i) => {
|
|
1821
|
+
a.multiple || (l.single = "");
|
|
1822
|
+
const x = a.multiple ? t : [t];
|
|
1819
1823
|
if (!x.length) {
|
|
1820
|
-
|
|
1824
|
+
l.group.clear(), l.user.clear();
|
|
1821
1825
|
return;
|
|
1822
1826
|
}
|
|
1823
|
-
|
|
1827
|
+
me(), i.forEach((L) => {
|
|
1824
1828
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1825
1829
|
});
|
|
1826
|
-
},
|
|
1827
|
-
a.multiple || (
|
|
1828
|
-
const x = a.multiple ?
|
|
1830
|
+
}, ge = _([]), lt = (t, i) => {
|
|
1831
|
+
a.multiple || (l.single = "");
|
|
1832
|
+
const x = a.multiple ? t : [t];
|
|
1829
1833
|
if (!x.length) {
|
|
1830
|
-
|
|
1834
|
+
l.role.clear();
|
|
1831
1835
|
return;
|
|
1832
1836
|
}
|
|
1833
|
-
|
|
1837
|
+
me(), i.forEach((L) => {
|
|
1834
1838
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1835
1839
|
});
|
|
1836
1840
|
};
|
|
1837
1841
|
Y(
|
|
1838
1842
|
() => W.value.role.len,
|
|
1839
|
-
(
|
|
1840
|
-
|
|
1843
|
+
(t) => {
|
|
1844
|
+
ge.value = ee.cloneDeep(W.value.role.list);
|
|
1841
1845
|
}
|
|
1842
1846
|
);
|
|
1843
|
-
const
|
|
1844
|
-
a.multiple || (
|
|
1845
|
-
const x = a.multiple ?
|
|
1847
|
+
const xe = _([]), at = (t, i) => {
|
|
1848
|
+
a.multiple || (l.single = "");
|
|
1849
|
+
const x = a.multiple ? t : [t];
|
|
1846
1850
|
if (!x.length) {
|
|
1847
|
-
|
|
1851
|
+
l.post.clear();
|
|
1848
1852
|
return;
|
|
1849
1853
|
}
|
|
1850
|
-
|
|
1854
|
+
me(), i.forEach((L) => {
|
|
1851
1855
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1852
1856
|
});
|
|
1853
1857
|
};
|
|
1854
1858
|
return Y(
|
|
1855
1859
|
() => W.value.post.len,
|
|
1856
|
-
(
|
|
1857
|
-
|
|
1860
|
+
(t) => {
|
|
1861
|
+
xe.value = ee.cloneDeep(W.value.post.list);
|
|
1858
1862
|
}
|
|
1859
1863
|
), Y(
|
|
1860
1864
|
() => b.value,
|
|
1861
|
-
(
|
|
1865
|
+
(t) => {
|
|
1862
1866
|
M("");
|
|
1863
1867
|
}
|
|
1864
|
-
), (
|
|
1865
|
-
const x = te("el-tab-pane"), L = te("el-tabs"),
|
|
1868
|
+
), (t, i) => {
|
|
1869
|
+
const x = te("el-tab-pane"), L = te("el-tabs"), Z = te("el-scrollbar");
|
|
1866
1870
|
return s(), f(
|
|
1867
1871
|
N,
|
|
1868
1872
|
null,
|
|
1869
1873
|
[
|
|
1870
1874
|
g(" 主弹窗容器 "),
|
|
1871
|
-
C(k(
|
|
1875
|
+
C(k(it), {
|
|
1872
1876
|
modelValue: oe.value,
|
|
1873
1877
|
"onUpdate:modelValue": i[3] || (i[3] = (U) => oe.value = U),
|
|
1874
|
-
title:
|
|
1878
|
+
title: t.title,
|
|
1875
1879
|
"destroy-on-close": "",
|
|
1876
1880
|
"append-to-body": "",
|
|
1877
1881
|
"close-on-click-modal": !1,
|
|
1878
1882
|
"close-on-click-escape": !1,
|
|
1879
1883
|
draggable: "",
|
|
1880
1884
|
"align-center": "",
|
|
1881
|
-
width: typeof
|
|
1885
|
+
width: typeof t.width == "string" ? t.width : `${t.width}%`,
|
|
1882
1886
|
class: "p_p_picker-dialog",
|
|
1883
1887
|
"modal-class": "p_p_picker-dialog-modal-user",
|
|
1884
1888
|
onClose: Ee
|
|
1885
1889
|
}, {
|
|
1886
1890
|
footer: S(() => [
|
|
1887
|
-
n("span",
|
|
1891
|
+
n("span", Jl, [
|
|
1888
1892
|
g(" 取消按钮 "),
|
|
1889
|
-
C(k(ke), {
|
|
1893
|
+
C(k(ke), {
|
|
1894
|
+
onClick: Ae(Ee, ["stop"])
|
|
1895
|
+
}, {
|
|
1890
1896
|
default: S(() => [...i[7] || (i[7] = [
|
|
1891
1897
|
J(
|
|
1892
1898
|
"取消",
|
|
@@ -1900,7 +1906,7 @@ const Hl = {
|
|
|
1900
1906
|
g(" 确定按钮 "),
|
|
1901
1907
|
C(k(ke), {
|
|
1902
1908
|
type: "primary",
|
|
1903
|
-
onClick:
|
|
1909
|
+
onClick: Ae(Ze, ["stop"])
|
|
1904
1910
|
}, {
|
|
1905
1911
|
default: S(() => [...i[8] || (i[8] = [
|
|
1906
1912
|
J(
|
|
@@ -1919,33 +1925,33 @@ const Hl = {
|
|
|
1919
1925
|
"div",
|
|
1920
1926
|
{
|
|
1921
1927
|
class: "dep-use-picker",
|
|
1922
|
-
style:
|
|
1928
|
+
style: Fe({ height: Je.value })
|
|
1923
1929
|
},
|
|
1924
1930
|
[
|
|
1925
1931
|
g(" 左侧选择区域 "),
|
|
1926
|
-
n("div",
|
|
1932
|
+
n("div", zl, [
|
|
1927
1933
|
g(" 搜索框和标签页 "),
|
|
1928
1934
|
n("div", null, [
|
|
1929
1935
|
g(" 搜索输入框 "),
|
|
1930
|
-
C(k(
|
|
1936
|
+
C(k(rt), {
|
|
1931
1937
|
modelValue: b.value,
|
|
1932
1938
|
"onUpdate:modelValue": i[0] || (i[0] = (U) => b.value = U),
|
|
1933
1939
|
clearable: "",
|
|
1934
|
-
placeholder:
|
|
1935
|
-
"suffix-icon":
|
|
1940
|
+
placeholder: t.placeholder,
|
|
1941
|
+
"suffix-icon": mt
|
|
1936
1942
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1937
1943
|
g(" 标签页切换 "),
|
|
1938
|
-
|
|
1944
|
+
Ke.value ? (s(), I(L, {
|
|
1939
1945
|
key: 0,
|
|
1940
|
-
modelValue:
|
|
1941
|
-
"onUpdate:modelValue": i[1] || (i[1] = (U) =>
|
|
1946
|
+
modelValue: he.value,
|
|
1947
|
+
"onUpdate:modelValue": i[1] || (i[1] = (U) => he.value = U),
|
|
1942
1948
|
class: "ik-picker-tab"
|
|
1943
1949
|
}, {
|
|
1944
1950
|
default: S(() => [
|
|
1945
1951
|
(s(!0), f(
|
|
1946
1952
|
N,
|
|
1947
1953
|
null,
|
|
1948
|
-
|
|
1954
|
+
z(Ye.value, (U) => (s(), I(x, {
|
|
1949
1955
|
label: U.label,
|
|
1950
1956
|
name: U.name,
|
|
1951
1957
|
key: U.label
|
|
@@ -1959,23 +1965,23 @@ const Hl = {
|
|
|
1959
1965
|
}, 8, ["modelValue"])) : g("v-if", !0)
|
|
1960
1966
|
]),
|
|
1961
1967
|
g(" 面包屑导航区域 "),
|
|
1962
|
-
ae.value === k(
|
|
1968
|
+
ae.value === k(ve).group ? (s(), f(
|
|
1963
1969
|
N,
|
|
1964
1970
|
{ key: 0 },
|
|
1965
1971
|
[
|
|
1966
|
-
_e.value ? (s(), f("div",
|
|
1972
|
+
_e.value ? (s(), f("div", Ql, [
|
|
1967
1973
|
g(" 面包屑导航 "),
|
|
1968
|
-
C(k(
|
|
1974
|
+
C(k(pt), {
|
|
1969
1975
|
separator: ">",
|
|
1970
|
-
class: re(["banner", { "top-unlink": !
|
|
1976
|
+
class: re(["banner", { "top-unlink": !t.topLink }])
|
|
1971
1977
|
}, {
|
|
1972
1978
|
default: S(() => [
|
|
1973
1979
|
(s(!0), f(
|
|
1974
1980
|
N,
|
|
1975
1981
|
null,
|
|
1976
|
-
|
|
1982
|
+
z(k(h), (U, ce) => (s(), I(k(ut), {
|
|
1977
1983
|
key: U[m.value.id],
|
|
1978
|
-
onClick:
|
|
1984
|
+
onClick: Ae((Oe) => Qe(U, ce), ["stop"])
|
|
1979
1985
|
}, {
|
|
1980
1986
|
default: S(() => [
|
|
1981
1987
|
J(
|
|
@@ -2001,37 +2007,37 @@ const Hl = {
|
|
|
2001
2007
|
)) : g("v-if", !0),
|
|
2002
2008
|
g(" 数据列表区域 "),
|
|
2003
2009
|
g(" 组织架构列表 "),
|
|
2004
|
-
ae.value === k(
|
|
2010
|
+
ae.value === k(ve).group ? ye((s(), I(dl, {
|
|
2005
2011
|
key: 1,
|
|
2006
2012
|
fixPropOpt: m.value,
|
|
2007
2013
|
fixTypeOpt: o.value,
|
|
2008
2014
|
list: R.value,
|
|
2009
|
-
max:
|
|
2010
|
-
multiple:
|
|
2015
|
+
max: t.max,
|
|
2016
|
+
multiple: t.multiple,
|
|
2011
2017
|
"hand-list": et.value,
|
|
2012
2018
|
imageBaseUrl: a.imageBaseUrl,
|
|
2013
2019
|
emptyText: a.emptyText,
|
|
2014
2020
|
children: a.children && !b.value,
|
|
2015
|
-
"choose-type":
|
|
2016
|
-
onHandChild:
|
|
2021
|
+
"choose-type": G.value,
|
|
2022
|
+
onHandChild: ze,
|
|
2017
2023
|
onChange: tt
|
|
2018
2024
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2019
2025
|
[k(Pe), D.value]
|
|
2020
|
-
]) : ae.value === k(
|
|
2026
|
+
]) : ae.value === k(ve).role ? (s(), f(
|
|
2021
2027
|
N,
|
|
2022
2028
|
{ key: 2 },
|
|
2023
2029
|
[
|
|
2024
2030
|
g(" 角色列表 "),
|
|
2025
|
-
|
|
2031
|
+
ye(C(Wl, {
|
|
2026
2032
|
fixPropOpt: m.value,
|
|
2027
2033
|
fixTypeOpt: o.value,
|
|
2028
|
-
list:
|
|
2029
|
-
max:
|
|
2030
|
-
multiple:
|
|
2031
|
-
"hand-list":
|
|
2034
|
+
list: p.value,
|
|
2035
|
+
max: t.max,
|
|
2036
|
+
multiple: t.multiple,
|
|
2037
|
+
"hand-list": ge.value,
|
|
2032
2038
|
imageBaseUrl: a.imageBaseUrl,
|
|
2033
2039
|
emptyText: a.emptyText,
|
|
2034
|
-
"choose-type":
|
|
2040
|
+
"choose-type": G.value,
|
|
2035
2041
|
onChange: lt
|
|
2036
2042
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2037
2043
|
[k(Pe), D.value]
|
|
@@ -2039,21 +2045,21 @@ const Hl = {
|
|
|
2039
2045
|
],
|
|
2040
2046
|
64
|
|
2041
2047
|
/* STABLE_FRAGMENT */
|
|
2042
|
-
)) : ae.value === k(
|
|
2048
|
+
)) : ae.value === k(ve).post ? (s(), f(
|
|
2043
2049
|
N,
|
|
2044
2050
|
{ key: 3 },
|
|
2045
2051
|
[
|
|
2046
2052
|
g(" 岗位列表 "),
|
|
2047
|
-
|
|
2053
|
+
ye(C(Ll, {
|
|
2048
2054
|
fixPropOpt: m.value,
|
|
2049
2055
|
fixTypeOpt: o.value,
|
|
2050
2056
|
list: F.value,
|
|
2051
|
-
max:
|
|
2052
|
-
multiple:
|
|
2053
|
-
"hand-list":
|
|
2057
|
+
max: t.max,
|
|
2058
|
+
multiple: t.multiple,
|
|
2059
|
+
"hand-list": xe.value,
|
|
2054
2060
|
imageBaseUrl: a.imageBaseUrl,
|
|
2055
2061
|
emptyText: a.emptyText,
|
|
2056
|
-
"choose-type":
|
|
2062
|
+
"choose-type": G.value,
|
|
2057
2063
|
onChange: at
|
|
2058
2064
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2059
2065
|
[k(Pe), D.value]
|
|
@@ -2072,9 +2078,9 @@ const Hl = {
|
|
|
2072
2078
|
/* CACHED */
|
|
2073
2079
|
)),
|
|
2074
2080
|
g(" 右侧已选区域 "),
|
|
2075
|
-
n("div",
|
|
2081
|
+
n("div", Xl, [
|
|
2076
2082
|
g(" 已选标题和清空按钮 "),
|
|
2077
|
-
n("div",
|
|
2083
|
+
n("div", ql, [
|
|
2078
2084
|
i[5] || (i[5] = n(
|
|
2079
2085
|
"div",
|
|
2080
2086
|
null,
|
|
@@ -2088,7 +2094,7 @@ const Hl = {
|
|
|
2088
2094
|
C(k(ke), {
|
|
2089
2095
|
type: "primary",
|
|
2090
2096
|
link: "",
|
|
2091
|
-
onClick:
|
|
2097
|
+
onClick: Ae(se, ["stop"])
|
|
2092
2098
|
}, {
|
|
2093
2099
|
default: S(() => [...i[4] || (i[4] = [
|
|
2094
2100
|
J(
|
|
@@ -2101,12 +2107,12 @@ const Hl = {
|
|
|
2101
2107
|
/* STABLE */
|
|
2102
2108
|
})
|
|
2103
2109
|
]),
|
|
2104
|
-
C(
|
|
2110
|
+
C(Z, null, {
|
|
2105
2111
|
default: S(() => [
|
|
2106
2112
|
g(" 已选项目列表 "),
|
|
2107
|
-
C(k(
|
|
2108
|
-
modelValue:
|
|
2109
|
-
"onUpdate:modelValue": i[2] || (i[2] = (U) =>
|
|
2113
|
+
C(k(Re), {
|
|
2114
|
+
modelValue: r.value,
|
|
2115
|
+
"onUpdate:modelValue": i[2] || (i[2] = (U) => r.value = U),
|
|
2110
2116
|
class: "choose-box",
|
|
2111
2117
|
tag: "ul",
|
|
2112
2118
|
"item-key": "id",
|
|
@@ -2114,14 +2120,14 @@ const Hl = {
|
|
|
2114
2120
|
"ghost-class": "ghost-item",
|
|
2115
2121
|
"chosen-class": "chosen-item",
|
|
2116
2122
|
"drag-class": "drag-item",
|
|
2117
|
-
onStart:
|
|
2118
|
-
onEnd:
|
|
2123
|
+
onStart: je,
|
|
2124
|
+
onEnd: He
|
|
2119
2125
|
}, {
|
|
2120
2126
|
item: S(({ element: U }) => [
|
|
2121
|
-
n("li",
|
|
2122
|
-
n("div",
|
|
2127
|
+
n("li", Zl, [
|
|
2128
|
+
n("div", Kl, [
|
|
2123
2129
|
g(" 头像图标 "),
|
|
2124
|
-
n("div",
|
|
2130
|
+
n("div", Yl, [
|
|
2125
2131
|
C(H, {
|
|
2126
2132
|
fixTypeOpt: o.value,
|
|
2127
2133
|
fixPropOpt: m.value,
|
|
@@ -2139,11 +2145,11 @@ const Hl = {
|
|
|
2139
2145
|
)
|
|
2140
2146
|
]),
|
|
2141
2147
|
g(" 删除按钮 "),
|
|
2142
|
-
|
|
2148
|
+
ye(C(Pt, {
|
|
2143
2149
|
class: "close",
|
|
2144
|
-
onClick:
|
|
2150
|
+
onClick: Ae((ce) => we(U), ["stop"])
|
|
2145
2151
|
}, null, 8, ["onClick"]), [
|
|
2146
|
-
[
|
|
2152
|
+
[ot, !(U != null && U.readonly)]
|
|
2147
2153
|
])
|
|
2148
2154
|
])
|
|
2149
2155
|
]),
|
|
@@ -2169,28 +2175,28 @@ const Hl = {
|
|
|
2169
2175
|
);
|
|
2170
2176
|
};
|
|
2171
2177
|
}
|
|
2172
|
-
}),
|
|
2178
|
+
}), ta = Me(ea), la = {
|
|
2173
2179
|
class: "approveProcess",
|
|
2174
2180
|
id: "approveProcess"
|
|
2175
|
-
},
|
|
2181
|
+
}, aa = { class: "node" }, sa = { class: "nodeBg" }, oa = {
|
|
2176
2182
|
key: 0,
|
|
2177
2183
|
class: "info"
|
|
2178
|
-
},
|
|
2184
|
+
}, na = { class: "explain" }, ia = { key: 0 }, ra = { key: 0 }, pa = { key: 1 }, ua = { key: 0 }, da = { key: 1 }, ca = { class: "personlist" }, fa = { style: { width: "58px" } }, Aa = { class: "avatar" }, va = ["src"], ha = {
|
|
2179
2185
|
key: 1,
|
|
2180
2186
|
class: "nodeBg"
|
|
2181
|
-
},
|
|
2187
|
+
}, ya = ["onClick"], ma = ["title"], ga = {
|
|
2182
2188
|
key: 0,
|
|
2183
2189
|
class: "sign"
|
|
2184
|
-
},
|
|
2190
|
+
}, xa = { key: 0 }, Oa = ["onClick"], Pa = {
|
|
2185
2191
|
key: 0,
|
|
2186
2192
|
class: "required"
|
|
2187
|
-
},
|
|
2193
|
+
}, ka = {
|
|
2188
2194
|
key: 1,
|
|
2189
2195
|
class: "node-branchs"
|
|
2190
|
-
},
|
|
2196
|
+
}, Ta = { style: { flex: "1" } }, La = { class: "node-branch" }, ba = {
|
|
2191
2197
|
name: "IkApprovalProcess"
|
|
2192
|
-
},
|
|
2193
|
-
...
|
|
2198
|
+
}, Ca = /* @__PURE__ */ de({
|
|
2199
|
+
...ba,
|
|
2194
2200
|
props: {
|
|
2195
2201
|
// 选人组件请求地址
|
|
2196
2202
|
pickerUrl: {
|
|
@@ -2228,7 +2234,7 @@ const Hl = {
|
|
|
2228
2234
|
}
|
|
2229
2235
|
},
|
|
2230
2236
|
setup(d, { expose: A }) {
|
|
2231
|
-
const e = d, { cLoadUrl: a } =
|
|
2237
|
+
const e = d, { cLoadUrl: a } = We(e), b = pe.local.getItem("token") || "Bearer iking", P = _("sys");
|
|
2232
2238
|
function B(c) {
|
|
2233
2239
|
try {
|
|
2234
2240
|
const y = window.location.search;
|
|
@@ -2246,25 +2252,25 @@ const Hl = {
|
|
|
2246
2252
|
}
|
|
2247
2253
|
}
|
|
2248
2254
|
w();
|
|
2249
|
-
const
|
|
2255
|
+
const p = Te(ft(e)), F = async (c) => {
|
|
2250
2256
|
var y;
|
|
2251
|
-
if (c.multiple = !c[
|
|
2252
|
-
c.handList.forEach((
|
|
2253
|
-
|
|
2257
|
+
if (c.multiple = !c[p.defaultFile.singleApproval] || c[p.defaultFile.isShowAddCopy], c.handList = c[p.defaultFile.approvePersonList] ? c[p.defaultFile.approvePersonList] : [], c[p.defaultFile.nodeType] === p.nodeType.抄送节点)
|
|
2258
|
+
c.handList.forEach((l) => {
|
|
2259
|
+
l.elementName || (l.elementName = l.userName, l.elementId = l.userId, l.avatar = l.userAvatar), l.elementType = "USER", l.disabled = !0;
|
|
2254
2260
|
}), c.chooseType = ["user"], c.userList = [], c.depList = [];
|
|
2255
2261
|
else
|
|
2256
|
-
switch (c[
|
|
2262
|
+
switch (c[p.defaultFile.initiatorSpecifiedScopeType]) {
|
|
2257
2263
|
// 全公司时,用后台返回的人员中去选择
|
|
2258
2264
|
case "ALL":
|
|
2259
2265
|
c.chooseType = ["dep_user"], c.userList = [], c.depList = [];
|
|
2260
2266
|
break;
|
|
2261
2267
|
// 否则就从后端返回的initiatorSpecifiedScope数组中选人
|
|
2262
2268
|
default:
|
|
2263
|
-
c.chooseType = ["user"], c.userList = c.userList ? c.userList : (y = c[
|
|
2264
|
-
...
|
|
2265
|
-
elementName: (
|
|
2266
|
-
elementId: (
|
|
2267
|
-
avatar: ((
|
|
2269
|
+
c.chooseType = ["user"], c.userList = c.userList ? c.userList : (y = c[p.defaultFile.initiatorSpecifiedScope]) == null ? void 0 : y.map((l) => ({
|
|
2270
|
+
...l,
|
|
2271
|
+
elementName: (l == null ? void 0 : l.executorName) || (l == null ? void 0 : l.userName),
|
|
2272
|
+
elementId: (l == null ? void 0 : l.executorId) || (l == null ? void 0 : l.userId),
|
|
2273
|
+
avatar: ((l == null ? void 0 : l.executorAvatar) || (l == null ? void 0 : l.userAvatar)) && D((l == null ? void 0 : l.executorAvatar) || (l == null ? void 0 : l.userAvatar)) || "",
|
|
2268
2274
|
elementType: "USER"
|
|
2269
2275
|
}));
|
|
2270
2276
|
}
|
|
@@ -2276,22 +2282,22 @@ const Hl = {
|
|
|
2276
2282
|
return c.includes("http") || c.includes("https") ? y = c : y = a.value ? `${c.includes(a.value) ? "" : a.value}${c}` : `${location.origin + location.pathname}server/oss/download?fileUrl=${c}`, y;
|
|
2277
2283
|
}, R = (c, y) => {
|
|
2278
2284
|
e.dataList[y].handList = c.list;
|
|
2279
|
-
let v = (e.dataList[y][
|
|
2285
|
+
let v = (e.dataList[y][p.defaultFile.approvePersonList] || []).filter((M) => !M.canDele), $ = c.list.map((M) => ({
|
|
2280
2286
|
...M,
|
|
2281
2287
|
userName: M.elementName,
|
|
2282
2288
|
userAvatar: M.avatar,
|
|
2283
2289
|
canDele: !0
|
|
2284
2290
|
}));
|
|
2285
|
-
e.dataList[y][
|
|
2291
|
+
e.dataList[y][p.defaultFile.approvePersonList] = v.concat($);
|
|
2286
2292
|
}, m = (c, y) => {
|
|
2287
|
-
e.dataList[c][
|
|
2293
|
+
e.dataList[c][p.defaultFile.approvePersonList].splice(y, 1), e.dataList[c].handList = e.dataList[c][p.defaultFile.approvePersonList];
|
|
2288
2294
|
}, o = () => {
|
|
2289
2295
|
let c = !0;
|
|
2290
2296
|
return e.dataList.forEach((y) => {
|
|
2291
|
-
var
|
|
2292
|
-
y.required = !1, y[
|
|
2297
|
+
var l;
|
|
2298
|
+
y.required = !1, y[p.defaultFile.nodeType] == p.nodeType.审批节点 && y[p.defaultFile.isShowAdd] && ((l = y[p.defaultFile.approvePersonList]) != null && l.length || (c = !1, y.required = !0));
|
|
2293
2299
|
}), c;
|
|
2294
|
-
},
|
|
2300
|
+
}, r = E(() => {
|
|
2295
2301
|
var c;
|
|
2296
2302
|
return {
|
|
2297
2303
|
propOption: {
|
|
@@ -2324,28 +2330,28 @@ const Hl = {
|
|
|
2324
2330
|
}), O = _(null), u = (c) => {
|
|
2325
2331
|
O.value = c;
|
|
2326
2332
|
}, h = (c) => {
|
|
2327
|
-
const { oldIndex: y, newIndex:
|
|
2328
|
-
O.value.splice(
|
|
2333
|
+
const { oldIndex: y, newIndex: l } = c;
|
|
2334
|
+
O.value.splice(l, 0, ...O.value.splice(y, 1));
|
|
2329
2335
|
};
|
|
2330
2336
|
return A({ requiredVerification: o }), (c, y) => {
|
|
2331
|
-
const
|
|
2332
|
-
return s(), f("div",
|
|
2337
|
+
const l = te("IkApprovalProcess", !0);
|
|
2338
|
+
return s(), f("div", la, [
|
|
2333
2339
|
(s(!0), f(
|
|
2334
2340
|
N,
|
|
2335
2341
|
null,
|
|
2336
|
-
|
|
2337
|
-
var M, W,
|
|
2342
|
+
z(e.dataList, (v, $) => {
|
|
2343
|
+
var M, W, G, X;
|
|
2338
2344
|
return s(), f("div", {
|
|
2339
2345
|
class: "content",
|
|
2340
2346
|
key: v.id
|
|
2341
2347
|
}, [
|
|
2342
2348
|
g(" 审批节点类型 "),
|
|
2343
|
-
n("div",
|
|
2344
|
-
n("span",
|
|
2349
|
+
n("div", aa, [
|
|
2350
|
+
n("span", sa, [
|
|
2345
2351
|
n(
|
|
2346
2352
|
"i",
|
|
2347
2353
|
{
|
|
2348
|
-
class: re(k(
|
|
2354
|
+
class: re(k(At)(p, v[p.defaultFile.nodeType]))
|
|
2349
2355
|
},
|
|
2350
2356
|
null,
|
|
2351
2357
|
2
|
|
@@ -2356,33 +2362,33 @@ const Hl = {
|
|
|
2356
2362
|
"div",
|
|
2357
2363
|
{
|
|
2358
2364
|
class: "line",
|
|
2359
|
-
style:
|
|
2365
|
+
style: Fe({ "border-left": $ === e.dataList.length - 1 ? "" : "2px solid var(--el-border-color)" })
|
|
2360
2366
|
},
|
|
2361
2367
|
null,
|
|
2362
2368
|
4
|
|
2363
2369
|
/* STYLE */
|
|
2364
2370
|
)
|
|
2365
2371
|
]),
|
|
2366
|
-
v[
|
|
2372
|
+
v[p.defaultFile.nodeType] !== p.nodeType.并行分支 ? (s(), f("div", oa, [
|
|
2367
2373
|
n("div", null, [
|
|
2368
2374
|
n(
|
|
2369
2375
|
"div",
|
|
2370
2376
|
null,
|
|
2371
|
-
T(v[
|
|
2377
|
+
T(v[p.defaultFile.nodeTypeName]),
|
|
2372
2378
|
1
|
|
2373
2379
|
/* TEXT */
|
|
2374
2380
|
),
|
|
2375
|
-
n("div",
|
|
2381
|
+
n("div", na, [
|
|
2376
2382
|
g(" 抄送节点 "),
|
|
2377
|
-
v[
|
|
2378
|
-
v[
|
|
2383
|
+
v[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span", ia, [
|
|
2384
|
+
v[p.defaultFile.approvePersonList].length ? (s(), f(
|
|
2379
2385
|
"span",
|
|
2380
|
-
|
|
2381
|
-
T(`抄送${v[
|
|
2386
|
+
ra,
|
|
2387
|
+
T(`抄送${v[p.defaultFile.approvePersonList].length}人`),
|
|
2382
2388
|
1
|
|
2383
2389
|
/* TEXT */
|
|
2384
2390
|
)) : g("v-if", !0),
|
|
2385
|
-
v[
|
|
2391
|
+
v[p.defaultFile.isShowAdd] ? (s(), f("span", pa, ",可添加抄送人")) : g("v-if", !0)
|
|
2386
2392
|
])) : (s(), f(
|
|
2387
2393
|
N,
|
|
2388
2394
|
{ key: 1 },
|
|
@@ -2390,19 +2396,19 @@ const Hl = {
|
|
|
2390
2396
|
g(" 审批节点 "),
|
|
2391
2397
|
n("span", null, [
|
|
2392
2398
|
g(" 存在审批人时 "),
|
|
2393
|
-
(M = v[
|
|
2399
|
+
(M = v[p.defaultFile.approvePersonList]) != null && M.length ? (s(), f(
|
|
2394
2400
|
"span",
|
|
2395
|
-
|
|
2396
|
-
T(((W = v[
|
|
2401
|
+
ua,
|
|
2402
|
+
T(((W = v[p.defaultFile.approvePersonList]) == null ? void 0 : W.length) == 1 ? "1人审批" : `${(G = v[p.defaultFile.approvePersonList]) == null ? void 0 : G.length}人${v[p.defaultFile.multiExecutorTypeName]}`),
|
|
2397
2403
|
1
|
|
2398
2404
|
/* TEXT */
|
|
2399
|
-
)) : [
|
|
2405
|
+
)) : [p.statusWithoutApprover.自动通过, p.statusWithoutApprover.自动拒绝].includes(v[p.defaultFile.approveType]) ? (s(), f(
|
|
2400
2406
|
"span",
|
|
2401
|
-
|
|
2402
|
-
T(v[
|
|
2407
|
+
da,
|
|
2408
|
+
T(v[p.defaultFile.approveTypeName]),
|
|
2403
2409
|
1
|
|
2404
2410
|
/* TEXT */
|
|
2405
|
-
)) : v[
|
|
2411
|
+
)) : v[p.defaultFile.executorEmptyStrategy] && v[p.defaultFile.executorEmpty] ? (s(), f(
|
|
2406
2412
|
N,
|
|
2407
2413
|
{ key: 2 },
|
|
2408
2414
|
[
|
|
@@ -2416,7 +2422,7 @@ const Hl = {
|
|
|
2416
2422
|
n(
|
|
2417
2423
|
"span",
|
|
2418
2424
|
null,
|
|
2419
|
-
T(v[
|
|
2425
|
+
T(v[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.自动通过 ? "将自动通过" : v[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.自动转交管理员 ? "自动转交给管理员" : v[p.defaultFile.executorEmptyStrategy] == p.statusWithoutApprover.指定人员审批 ? `将自动转给指定成员${v[p.defaultFile.reserveExecutorUsers] && v[p.defaultFile.reserveExecutorUsers][0].userName}` : ""),
|
|
2420
2426
|
1
|
|
2421
2427
|
/* TEXT */
|
|
2422
2428
|
)
|
|
@@ -2424,13 +2430,13 @@ const Hl = {
|
|
|
2424
2430
|
],
|
|
2425
2431
|
2112
|
|
2426
2432
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
2427
|
-
)) : [
|
|
2433
|
+
)) : [p.nodeType.并行分支, p.nodeType.子流程].includes(v[p.defaultFile.nodeType]) ? g("v-if", !0) : (s(), f(
|
|
2428
2434
|
"span",
|
|
2429
2435
|
{
|
|
2430
2436
|
key: 3,
|
|
2431
2437
|
class: re(v.required ? "warn" : "")
|
|
2432
2438
|
},
|
|
2433
|
-
" 请选择" + T(v[
|
|
2439
|
+
" 请选择" + T(v[p.defaultFile.nodeType] === p.nodeType.办理节点 ? "办理人" : "审批人"),
|
|
2434
2440
|
3
|
|
2435
2441
|
/* TEXT, CLASS */
|
|
2436
2442
|
))
|
|
@@ -2441,10 +2447,10 @@ const Hl = {
|
|
|
2441
2447
|
))
|
|
2442
2448
|
])
|
|
2443
2449
|
]),
|
|
2444
|
-
n("div",
|
|
2445
|
-
C(k(
|
|
2446
|
-
modelValue: v[
|
|
2447
|
-
"onUpdate:modelValue": (V) => v[
|
|
2450
|
+
n("div", ca, [
|
|
2451
|
+
C(k(Re), {
|
|
2452
|
+
modelValue: v[p.defaultFile.approvePersonList],
|
|
2453
|
+
"onUpdate:modelValue": (V) => v[p.defaultFile.approvePersonList] = V,
|
|
2448
2454
|
group: { name: "people", pull: !1, put: !1 },
|
|
2449
2455
|
"item-key": "userId",
|
|
2450
2456
|
handle: ".draggable-item",
|
|
@@ -2452,24 +2458,24 @@ const Hl = {
|
|
|
2452
2458
|
"ghost-class": "ghost-item",
|
|
2453
2459
|
"chosen-class": "chosen-item",
|
|
2454
2460
|
"drag-class": "drag-item",
|
|
2455
|
-
onStart: (V) => u(v[
|
|
2461
|
+
onStart: (V) => u(v[p.defaultFile.approvePersonList]),
|
|
2456
2462
|
onEnd: h,
|
|
2457
2463
|
class: "draggable-container"
|
|
2458
2464
|
}, {
|
|
2459
|
-
item: S(({ element: V, index:
|
|
2465
|
+
item: S(({ element: V, index: q }) => {
|
|
2460
2466
|
var oe, ne;
|
|
2461
2467
|
return [
|
|
2462
2468
|
(s(), f("div", {
|
|
2463
2469
|
class: "list draggable-item",
|
|
2464
2470
|
key: V.userId
|
|
2465
2471
|
}, [
|
|
2466
|
-
n("div",
|
|
2467
|
-
n("div",
|
|
2472
|
+
n("div", fa, [
|
|
2473
|
+
n("div", Aa, [
|
|
2468
2474
|
V.userAvatar ? (s(), f("img", {
|
|
2469
2475
|
key: 0,
|
|
2470
2476
|
src: D(V.userAvatar),
|
|
2471
2477
|
alt: ""
|
|
2472
|
-
}, null, 8,
|
|
2478
|
+
}, null, 8, va)) : (s(), f("div", ha, [
|
|
2473
2479
|
n(
|
|
2474
2480
|
"span",
|
|
2475
2481
|
null,
|
|
@@ -2480,19 +2486,19 @@ const Hl = {
|
|
|
2480
2486
|
])),
|
|
2481
2487
|
V.canDele ? (s(), f("i", {
|
|
2482
2488
|
key: 2,
|
|
2483
|
-
onClick: (ie) => m($,
|
|
2489
|
+
onClick: (ie) => m($, q),
|
|
2484
2490
|
class: "ikapprove ikapprove-shanchu1"
|
|
2485
|
-
}, null, 8,
|
|
2491
|
+
}, null, 8, ya)) : g("v-if", !0)
|
|
2486
2492
|
]),
|
|
2487
2493
|
n("div", {
|
|
2488
2494
|
class: "name",
|
|
2489
2495
|
title: V.userName
|
|
2490
|
-
}, T(V.userName), 9,
|
|
2496
|
+
}, T(V.userName), 9, ma)
|
|
2491
2497
|
]),
|
|
2492
2498
|
g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
|
|
2493
|
-
v[
|
|
2499
|
+
v[p.defaultFile.isShowAdd] && !(v[p.defaultFile.singleApproval] && ((ne = v[p.defaultFile.approvePersonList]) == null ? void 0 : ne.length) == 1) ? (s(), f("span", ga, [
|
|
2494
2500
|
g(" 抄送默认 "),
|
|
2495
|
-
v[
|
|
2501
|
+
v[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span", xa, "+")) : (s(), f(
|
|
2496
2502
|
N,
|
|
2497
2503
|
{ key: 1 },
|
|
2498
2504
|
[
|
|
@@ -2500,7 +2506,7 @@ const Hl = {
|
|
|
2500
2506
|
n(
|
|
2501
2507
|
"span",
|
|
2502
2508
|
null,
|
|
2503
|
-
T(v[
|
|
2509
|
+
T(v[p.defaultFile.multiExecutorType] == "ANY" ? "/" : v[p.defaultFile.multiExecutorType] == "ALL" ? "+" : ">"),
|
|
2504
2510
|
1
|
|
2505
2511
|
/* TEXT */
|
|
2506
2512
|
)
|
|
@@ -2516,12 +2522,12 @@ const Hl = {
|
|
|
2516
2522
|
/* DYNAMIC */
|
|
2517
2523
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onStart"]),
|
|
2518
2524
|
g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),
|
|
2519
|
-
v[
|
|
2525
|
+
v[p.defaultFile.isShowAdd] && !(v[p.defaultFile.singleApproval] && ((X = v[p.defaultFile.approvePersonList]) == null ? void 0 : X.length) == 1) || v[p.defaultFile.isShowAddCopy] ? (s(), f("span", {
|
|
2520
2526
|
key: 0,
|
|
2521
2527
|
class: "addBg",
|
|
2522
2528
|
onClick: (V) => F(v)
|
|
2523
2529
|
}, [
|
|
2524
|
-
v[
|
|
2530
|
+
v[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (s(), f("span", Pa)) : g("v-if", !0),
|
|
2525
2531
|
y[1] || (y[1] = n(
|
|
2526
2532
|
"i",
|
|
2527
2533
|
{ class: "ikapprove ikapprove-xinzeng" },
|
|
@@ -2529,9 +2535,9 @@ const Hl = {
|
|
|
2529
2535
|
-1
|
|
2530
2536
|
/* CACHED */
|
|
2531
2537
|
))
|
|
2532
|
-
], 8,
|
|
2538
|
+
], 8, Oa)) : g("v-if", !0),
|
|
2533
2539
|
g(" 添加人组件 "),
|
|
2534
|
-
C(k(
|
|
2540
|
+
C(k(ta), Ve({
|
|
2535
2541
|
modelValue: v.handList,
|
|
2536
2542
|
"onUpdate:modelValue": (V) => v.handList = V,
|
|
2537
2543
|
show: v.isShow,
|
|
@@ -2541,11 +2547,11 @@ const Hl = {
|
|
|
2541
2547
|
"dep-list": v.depList,
|
|
2542
2548
|
"user-list": v.userList,
|
|
2543
2549
|
"organization-list": v.organizationList
|
|
2544
|
-
}, { ref_for: !0 },
|
|
2550
|
+
}, { ref_for: !0 }, r.value, {
|
|
2545
2551
|
chooseType: v.chooseType
|
|
2546
2552
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "show", "onUpdate:show", "onOk", "multiple", "dep-list", "user-list", "organization-list", "chooseType"])
|
|
2547
2553
|
])
|
|
2548
|
-
])) : (s(), f("div",
|
|
2554
|
+
])) : (s(), f("div", ka, [
|
|
2549
2555
|
y[2] || (y[2] = n(
|
|
2550
2556
|
"div",
|
|
2551
2557
|
{ class: "branch-line" },
|
|
@@ -2553,25 +2559,25 @@ const Hl = {
|
|
|
2553
2559
|
-1
|
|
2554
2560
|
/* CACHED */
|
|
2555
2561
|
)),
|
|
2556
|
-
n("div",
|
|
2562
|
+
n("div", Ta, [
|
|
2557
2563
|
(s(!0), f(
|
|
2558
2564
|
N,
|
|
2559
2565
|
null,
|
|
2560
|
-
|
|
2566
|
+
z(v.parallelInstances, (V, q) => (s(), f(
|
|
2561
2567
|
"div",
|
|
2562
2568
|
{
|
|
2563
|
-
key:
|
|
2564
|
-
class: re(`branch branch-${
|
|
2569
|
+
key: q,
|
|
2570
|
+
class: re(`branch branch-${q}`)
|
|
2565
2571
|
},
|
|
2566
2572
|
[
|
|
2567
2573
|
n(
|
|
2568
2574
|
"div",
|
|
2569
|
-
|
|
2575
|
+
La,
|
|
2570
2576
|
T(V.name),
|
|
2571
2577
|
1
|
|
2572
2578
|
/* TEXT */
|
|
2573
2579
|
),
|
|
2574
|
-
C(
|
|
2580
|
+
C(l, Ve({ ref_for: !0 }, e, {
|
|
2575
2581
|
dataList: V.processInstanceNodes,
|
|
2576
2582
|
style: { "margin-left": "20px" }
|
|
2577
2583
|
}), null, 16, ["dataList"])
|
|
@@ -2592,8 +2598,8 @@ const Hl = {
|
|
|
2592
2598
|
]);
|
|
2593
2599
|
};
|
|
2594
2600
|
}
|
|
2595
|
-
}),
|
|
2601
|
+
}), Ua = /* @__PURE__ */ Q(Ca, [["__scopeId", "data-v-33ad8147"]]), Ia = Me(Ua);
|
|
2596
2602
|
export {
|
|
2597
|
-
|
|
2598
|
-
|
|
2603
|
+
Ia as IkApprovalProcess,
|
|
2604
|
+
Ia as default
|
|
2599
2605
|
};
|