iking-web-ui-pro 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcess/ik.index.es.js +378 -374
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +126 -123
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +4 -4
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +3 -3
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +1043 -1039
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +2 -2
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +122 -119
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +121 -118
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkDragList/ik.index.es.js +1 -1
- package/dist/IkDragList/iking-web-ui-pro.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +6 -6
- package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +11 -11
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkHorizontalStepBar/ik.index.es.js +1 -1
- package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +1 -1
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkImageUploadEditor/ik.index.es.js +127 -124
- package/dist/IkImageUploadEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +1 -1
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +441 -437
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPageTabs/ik.index.es.js +1 -1
- package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +416 -412
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkPlayer/ik.index.es.js +103 -100
- package/dist/IkPreviewFile/ik.index.es.js +110 -107
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +90 -87
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkPrint/ik.index.es.js +1 -1
- package/dist/IkPrint/iking-web-ui-pro.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +2 -2
- package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +397 -393
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkSearchHead/ik.index.es.js +1 -1
- package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +22 -22
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +42 -39
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatu/ik.index.es.js +4 -4
- package/dist/IkStatu/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +2 -2
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +16 -16
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTinymce/ik.index.es.js +9005 -9004
- package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +13 -13
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1419 -1416
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +423 -421
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +2 -2
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/Provider/ik.index.es.js +14 -10
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-DzZt3b9I.mjs → index-DTIv4saG.mjs} +16667 -16662
- package/dist/{index.es-BGemUek4.mjs → index.es-DJTszikI.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +169 -169
- package/dist/{jspdf.es.min-BVrfmj8U.mjs → jspdf.es.min-CB6UoKKF.mjs} +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +2 -2
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +2 -2
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +15 -0
- package/dist/src/utils/use-provider.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { ikStore as
|
|
1
|
+
import { inject as re, computed as I, createElementBlock as f, openBlock as s, createElementVNode as n, defineComponent as ce, resolveComponent as te, createBlock as E, createCommentVNode as g, toDisplayString as T, ref as _, watch as J, Fragment as N, createVNode as C, unref as k, withCtx as S, createTextVNode as ee, renderList as Q, normalizeClass as pe, toRef as st, reactive as Te, nextTick as Le, watchEffect as Ee, normalizeStyle as Fe, withDirectives as ye, withModifiers as Ae, vShow as ot, mergeProps as Ve } from "vue";
|
|
2
|
+
import { ikStore as ue, _ as z } from "iking-utils-pro";
|
|
3
3
|
import Re from "vuedraggable";
|
|
4
|
-
import { ElCheckbox as
|
|
5
|
-
import
|
|
6
|
-
const Me = (
|
|
7
|
-
for (const l of [
|
|
4
|
+
import { ElCheckbox as de, ElCheckboxGroup as be, ElRadioGroup as Ce, ElRadio as Ue, ElDialog as nt, ElInput as it, ElBreadcrumb as rt, ElBreadcrumbItem as pt, vLoading as Pe, ElButton as ke } from "element-plus";
|
|
5
|
+
import ut from "axios";
|
|
6
|
+
const Me = (u, v) => (u.install = (e) => {
|
|
7
|
+
for (const l of [u, ...Object.values({})])
|
|
8
8
|
e.component(l.name, l);
|
|
9
|
-
},
|
|
10
|
-
const e =
|
|
9
|
+
}, u), X = (u, v) => {
|
|
10
|
+
const e = u.__vccOpts || u;
|
|
11
11
|
for (const [l, b] of v)
|
|
12
12
|
e[l] = b;
|
|
13
13
|
return e;
|
|
14
|
-
},
|
|
14
|
+
}, dt = (u, v) => {
|
|
15
15
|
if (!v) return "";
|
|
16
16
|
const e = /(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;
|
|
17
|
-
return v.startsWith("http") ? v.replace(e, "$1$2") : `${
|
|
18
|
-
},
|
|
17
|
+
return v.startsWith("http") ? v.replace(e, "$1$2") : `${u || location.origin}${v}`.replace(e, "$1$2");
|
|
18
|
+
}, ct = (u) => ({
|
|
19
19
|
// ================all================
|
|
20
20
|
nodeType: {
|
|
21
21
|
发起人节点: "INITIATOR",
|
|
@@ -27,7 +27,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
27
27
|
结束节点: "END",
|
|
28
28
|
并行分支: "PARALLEL",
|
|
29
29
|
子流程: "SUB_PROCESS",
|
|
30
|
-
...
|
|
30
|
+
...u.defaultNodeType
|
|
31
31
|
},
|
|
32
32
|
defaultFile: {
|
|
33
33
|
id: "id",
|
|
@@ -75,7 +75,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
75
75
|
singleApproval: "singleApproval",
|
|
76
76
|
//是否单选
|
|
77
77
|
originator: "username",
|
|
78
|
-
...
|
|
78
|
+
...u.defaultFieldMap
|
|
79
79
|
},
|
|
80
80
|
// ================approval================
|
|
81
81
|
statusWithoutApprover: {
|
|
@@ -83,7 +83,7 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
83
83
|
自动拒绝: "AUTO_REJECT",
|
|
84
84
|
自动转交管理员: "TRANSMIT_TO_MANAGER",
|
|
85
85
|
指定人员审批: "SPECIFIED_USER",
|
|
86
|
-
...
|
|
86
|
+
...u.statusWithoutApprover
|
|
87
87
|
},
|
|
88
88
|
multiple: !1,
|
|
89
89
|
chooseType: [],
|
|
@@ -100,25 +100,25 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
100
100
|
评论: "COMMENT",
|
|
101
101
|
待执行: "WAITING",
|
|
102
102
|
执行中: "RUNNING",
|
|
103
|
-
...
|
|
103
|
+
...u.defaultStatus
|
|
104
104
|
},
|
|
105
105
|
listData: []
|
|
106
|
-
}),
|
|
106
|
+
}), ft = (u, v, e) => {
|
|
107
107
|
let l = "";
|
|
108
108
|
switch (v) {
|
|
109
|
-
case
|
|
109
|
+
case u.nodeType.审批节点:
|
|
110
110
|
e && e.length == 1 ? l = "ikapprove-ziyuan" : l = "ikapprove-shenpi";
|
|
111
111
|
break;
|
|
112
|
-
case
|
|
112
|
+
case u.nodeType.办理节点:
|
|
113
113
|
l = "ikapprove-bianji";
|
|
114
114
|
break;
|
|
115
|
-
case
|
|
115
|
+
case u.nodeType.抄送节点:
|
|
116
116
|
l = "ikapprove-chaosong";
|
|
117
117
|
break;
|
|
118
|
-
case
|
|
118
|
+
case u.nodeType.并行分支:
|
|
119
119
|
l = "ikapprove-fenzhi";
|
|
120
120
|
break;
|
|
121
|
-
case
|
|
121
|
+
case u.nodeType.子流程:
|
|
122
122
|
l = "ikapprove-ziliucheng1";
|
|
123
123
|
break;
|
|
124
124
|
default:
|
|
@@ -180,25 +180,28 @@ const Me = (d, v) => (d.install = (e) => {
|
|
|
180
180
|
"mp4",
|
|
181
181
|
"flv",
|
|
182
182
|
"tls"
|
|
183
|
-
], We = (
|
|
184
|
-
const v =
|
|
183
|
+
], We = (u) => {
|
|
184
|
+
const v = re("loadUrl"), e = I(() => u.loadUrl || u.fileUrl || (v == null ? void 0 : v.value)), l = re("uploadUrl"), b = I(() => u.action || u.uploadUrl || (l == null ? void 0 : l.value)), P = re("token"), w = I(() => u.token || (P == null ? void 0 : P.value)), B = re("header"), p = I(() => u.header || (B == null ? void 0 : B.value) || {
|
|
185
|
+
Authorization: w.value
|
|
186
|
+
}), F = re("onlyofficeConfig"), D = I(() => u.onlyofficeConfig || (F == null ? void 0 : F.value)), R = re("userInfo"), m = I(() => u.userInfo || (R == null ? void 0 : R.value)), o = [...De, ...De.map((r) => r.toLocaleUpperCase())];
|
|
185
187
|
return {
|
|
186
188
|
cLoadUrl: e,
|
|
187
189
|
cUploadUrl: b,
|
|
188
190
|
cToken: w,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
cHeader: p,
|
|
192
|
+
cOnlyofficeConfig: D,
|
|
193
|
+
cUserInfo: m,
|
|
194
|
+
cOnlyofficePreviewType: o
|
|
192
195
|
};
|
|
193
|
-
},
|
|
196
|
+
}, At = {}, vt = {
|
|
194
197
|
t: "1672194715727",
|
|
195
198
|
class: "icon",
|
|
196
199
|
viewBox: "0 0 1024 1024",
|
|
197
200
|
version: "1.1",
|
|
198
201
|
"p-id": "2667"
|
|
199
202
|
};
|
|
200
|
-
function
|
|
201
|
-
return s(), f("svg",
|
|
203
|
+
function ht(u, v) {
|
|
204
|
+
return s(), f("svg", vt, [...v[0] || (v[0] = [
|
|
202
205
|
n(
|
|
203
206
|
"path",
|
|
204
207
|
{
|
|
@@ -223,7 +226,7 @@ function yt(d, v) {
|
|
|
223
226
|
)
|
|
224
227
|
])]);
|
|
225
228
|
}
|
|
226
|
-
const
|
|
229
|
+
const yt = /* @__PURE__ */ X(At, [["render", ht]]), mt = {}, gt = {
|
|
227
230
|
t: "1710907270798",
|
|
228
231
|
class: "icon",
|
|
229
232
|
viewBox: "0 0 1024 1024",
|
|
@@ -233,8 +236,8 @@ const mt = /* @__PURE__ */ Q(vt, [["render", yt]]), gt = {}, xt = {
|
|
|
233
236
|
width: "200",
|
|
234
237
|
height: "200"
|
|
235
238
|
};
|
|
236
|
-
function
|
|
237
|
-
return s(), f("svg",
|
|
239
|
+
function xt(u, v) {
|
|
240
|
+
return s(), f("svg", gt, [...v[0] || (v[0] = [
|
|
238
241
|
n(
|
|
239
242
|
"path",
|
|
240
243
|
{
|
|
@@ -259,7 +262,7 @@ function Ot(d, v) {
|
|
|
259
262
|
)
|
|
260
263
|
])]);
|
|
261
264
|
}
|
|
262
|
-
const
|
|
265
|
+
const Ot = /* @__PURE__ */ X(mt, [["render", xt]]), Pt = {}, kt = {
|
|
263
266
|
t: "1710904463698",
|
|
264
267
|
class: "icon",
|
|
265
268
|
viewBox: "0 0 1024 1024",
|
|
@@ -269,8 +272,8 @@ const Pt = /* @__PURE__ */ Q(gt, [["render", Ot]]), kt = {}, Tt = {
|
|
|
269
272
|
width: "200",
|
|
270
273
|
height: "200"
|
|
271
274
|
};
|
|
272
|
-
function
|
|
273
|
-
return s(), f("svg",
|
|
275
|
+
function Tt(u, v) {
|
|
276
|
+
return s(), f("svg", kt, [...v[0] || (v[0] = [
|
|
274
277
|
n(
|
|
275
278
|
"path",
|
|
276
279
|
{
|
|
@@ -295,7 +298,7 @@ function Lt(d, v) {
|
|
|
295
298
|
)
|
|
296
299
|
])]);
|
|
297
300
|
}
|
|
298
|
-
const
|
|
301
|
+
const Lt = /* @__PURE__ */ X(Pt, [["render", Tt]]), bt = {}, Ct = {
|
|
299
302
|
t: "1710904436436",
|
|
300
303
|
class: "icon",
|
|
301
304
|
viewBox: "0 0 1024 1024",
|
|
@@ -305,8 +308,8 @@ const bt = /* @__PURE__ */ Q(kt, [["render", Lt]]), Ct = {}, Ut = {
|
|
|
305
308
|
width: "200",
|
|
306
309
|
height: "200"
|
|
307
310
|
};
|
|
308
|
-
function
|
|
309
|
-
return s(), f("svg",
|
|
311
|
+
function Ut(u, v) {
|
|
312
|
+
return s(), f("svg", Ct, [...v[0] || (v[0] = [
|
|
310
313
|
n(
|
|
311
314
|
"path",
|
|
312
315
|
{
|
|
@@ -331,7 +334,7 @@ function St(d, v) {
|
|
|
331
334
|
)
|
|
332
335
|
])]);
|
|
333
336
|
}
|
|
334
|
-
const
|
|
337
|
+
const St = /* @__PURE__ */ X(bt, [["render", Ut]]), wt = {}, Bt = {
|
|
335
338
|
t: "1710904287393",
|
|
336
339
|
class: "icon",
|
|
337
340
|
viewBox: "0 0 1024 1024",
|
|
@@ -341,8 +344,8 @@ const wt = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = {}, _t = {
|
|
|
341
344
|
width: "200",
|
|
342
345
|
height: "200"
|
|
343
346
|
};
|
|
344
|
-
function
|
|
345
|
-
return s(), f("svg",
|
|
347
|
+
function _t(u, v) {
|
|
348
|
+
return s(), f("svg", Bt, [...v[0] || (v[0] = [
|
|
346
349
|
n(
|
|
347
350
|
"path",
|
|
348
351
|
{
|
|
@@ -367,13 +370,13 @@ function Et(d, v) {
|
|
|
367
370
|
)
|
|
368
371
|
])]);
|
|
369
372
|
}
|
|
370
|
-
const It = /* @__PURE__ */
|
|
373
|
+
const It = /* @__PURE__ */ X(wt, [["render", _t]]), Et = { class: "avatar" }, Vt = {
|
|
371
374
|
key: 3,
|
|
372
375
|
class: "user_box"
|
|
373
|
-
},
|
|
376
|
+
}, Dt = {
|
|
374
377
|
key: 1,
|
|
375
378
|
class: "avatar_name"
|
|
376
|
-
},
|
|
379
|
+
}, Nt = /* @__PURE__ */ ce({
|
|
377
380
|
__name: "Avatar",
|
|
378
381
|
props: {
|
|
379
382
|
fixPropOpt: {
|
|
@@ -396,20 +399,20 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
396
399
|
default: ""
|
|
397
400
|
}
|
|
398
401
|
},
|
|
399
|
-
setup(
|
|
400
|
-
const v =
|
|
402
|
+
setup(u) {
|
|
403
|
+
const v = u, { cLoadUrl: e } = We(v), l = (b) => dt(e.value, b);
|
|
401
404
|
return (b, P) => {
|
|
402
405
|
const w = te("el-avatar");
|
|
403
|
-
return s(), f("div",
|
|
404
|
-
v.fixTypeOpt.group ===
|
|
405
|
-
|
|
406
|
+
return s(), f("div", Et, [
|
|
407
|
+
v.fixTypeOpt.group === u.element[v.fixPropOpt.type] ? (s(), E(It, { key: 0 })) : v.fixTypeOpt.role === u.element[v.fixPropOpt.type] ? (s(), E(Lt, { key: 1 })) : v.fixTypeOpt.post === u.element[v.fixPropOpt.type] ? (s(), E(St, { key: 2 })) : v.fixTypeOpt.user === u.element[v.fixPropOpt.type] ? (s(), f("div", Vt, [
|
|
408
|
+
u.element[u.fixPropOpt.avatar] ? (s(), E(w, {
|
|
406
409
|
key: 0,
|
|
407
410
|
shape: "square",
|
|
408
|
-
src: l(
|
|
411
|
+
src: l(u.fixPropOpt.avatar ? u.element[u.fixPropOpt.avatar] : "")
|
|
409
412
|
}, null, 8, ["src"])) : (s(), f(
|
|
410
413
|
"div",
|
|
411
|
-
|
|
412
|
-
T(
|
|
414
|
+
Dt,
|
|
415
|
+
T(u.element[u.fixPropOpt.name].slice(-2)),
|
|
413
416
|
1
|
|
414
417
|
/* TEXT */
|
|
415
418
|
))
|
|
@@ -417,7 +420,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
417
420
|
]);
|
|
418
421
|
};
|
|
419
422
|
}
|
|
420
|
-
}), H = /* @__PURE__ */
|
|
423
|
+
}), H = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-8031ce9b"]]), Se = "data:image/webp;base64,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", we = {
|
|
421
424
|
// 所有数据
|
|
422
425
|
list: {
|
|
423
426
|
type: Array,
|
|
@@ -475,38 +478,38 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
475
478
|
// 传['dep', 'user', 'role']则选择人员、部门和角色
|
|
476
479
|
default: () => ["dep"]
|
|
477
480
|
}
|
|
478
|
-
},
|
|
481
|
+
}, Ft = { class: "left-pick-list" }, Rt = {
|
|
479
482
|
key: 0,
|
|
480
483
|
class: "post-view-list"
|
|
481
|
-
},
|
|
484
|
+
}, Mt = { class: "checkText" }, Wt = { class: "iconBox" }, jt = { class: "name_number" }, Ht = { class: "title" }, $t = {
|
|
482
485
|
key: 0,
|
|
483
486
|
class: "userCount"
|
|
484
|
-
},
|
|
487
|
+
}, Gt = {
|
|
485
488
|
key: 1,
|
|
486
489
|
class: "checkText"
|
|
487
|
-
},
|
|
490
|
+
}, zt = { class: "iconBox" }, Qt = { class: "name_number" }, Xt = { class: "title" }, qt = {
|
|
488
491
|
key: 0,
|
|
489
492
|
class: "userCount"
|
|
490
|
-
},
|
|
493
|
+
}, Zt = ["onClick"], Kt = { class: "checkText" }, Yt = { class: "iconBox" }, Jt = { class: "name_number" }, el = { class: "title" }, tl = {
|
|
491
494
|
key: 0,
|
|
492
495
|
class: "userCount"
|
|
493
|
-
},
|
|
496
|
+
}, ll = {
|
|
494
497
|
key: 1,
|
|
495
498
|
class: "checkText"
|
|
496
|
-
},
|
|
499
|
+
}, al = { class: "iconBox" }, sl = { class: "name_number" }, ol = { class: "title" }, nl = {
|
|
497
500
|
key: 0,
|
|
498
501
|
class: "userCount"
|
|
499
|
-
},
|
|
502
|
+
}, il = ["onClick"], rl = {
|
|
500
503
|
key: 1,
|
|
501
504
|
class: "empty"
|
|
502
|
-
},
|
|
505
|
+
}, pl = /* @__PURE__ */ ce({
|
|
503
506
|
__name: "GroupList",
|
|
504
507
|
props: we,
|
|
505
508
|
emits: ["change", "check", "handChild"],
|
|
506
|
-
setup(
|
|
509
|
+
setup(u, { emit: v }) {
|
|
507
510
|
var m, o;
|
|
508
|
-
const e =
|
|
509
|
-
|
|
511
|
+
const e = u, l = _(!1);
|
|
512
|
+
J(
|
|
510
513
|
() => e.handList,
|
|
511
514
|
() => {
|
|
512
515
|
var O;
|
|
@@ -515,21 +518,21 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
515
518
|
return;
|
|
516
519
|
}
|
|
517
520
|
const r = e.list.filter(
|
|
518
|
-
(
|
|
521
|
+
(d) => e.chooseType.includes(d[e.fixPropOpt.type].toLowerCase())
|
|
519
522
|
).every(
|
|
520
|
-
(
|
|
521
|
-
(h) => h[e.fixPropOpt.id] ===
|
|
523
|
+
(d) => e.handList.some(
|
|
524
|
+
(h) => h[e.fixPropOpt.id] === d[e.fixPropOpt.id]
|
|
522
525
|
)
|
|
523
526
|
);
|
|
524
527
|
l.value = r;
|
|
525
528
|
},
|
|
526
529
|
{ immediate: !0 }
|
|
527
530
|
);
|
|
528
|
-
const b =
|
|
529
|
-
var
|
|
530
|
-
const r = (
|
|
531
|
+
const b = I(() => {
|
|
532
|
+
var d, h, c;
|
|
533
|
+
const r = (d = e.handList.filter(
|
|
531
534
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
532
|
-
)) == null ? void 0 :
|
|
535
|
+
)) == null ? void 0 : d.length, O = e.list.filter(
|
|
533
536
|
(y) => e.chooseType.includes(y[e.fixPropOpt.type].toLowerCase())
|
|
534
537
|
).every(
|
|
535
538
|
(y) => e.handList.some(
|
|
@@ -540,9 +543,9 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
540
543
|
}), P = _(
|
|
541
544
|
e.handList.map((r) => r[e.fixPropOpt.id])
|
|
542
545
|
), w = _((o = (m = e.handList) == null ? void 0 : m[0]) == null ? void 0 : o[e.fixPropOpt.id]), B = v, p = (r) => {
|
|
543
|
-
const O = r ? e.list.map((
|
|
544
|
-
if (e.chooseType.includes(
|
|
545
|
-
return
|
|
546
|
+
const O = r ? e.list.map((d) => {
|
|
547
|
+
if (e.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) && d.available !== !1)
|
|
548
|
+
return d[e.fixPropOpt.id];
|
|
546
549
|
}) : [];
|
|
547
550
|
B("change", O, r ? e.list : []);
|
|
548
551
|
}, F = (r) => {
|
|
@@ -553,14 +556,14 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
553
556
|
O || B("handChild", r);
|
|
554
557
|
};
|
|
555
558
|
return (r, O) => {
|
|
556
|
-
const
|
|
559
|
+
const d = te("el-scrollbar");
|
|
557
560
|
return s(), f(
|
|
558
561
|
N,
|
|
559
562
|
null,
|
|
560
563
|
[
|
|
561
564
|
g(" 遍历list多选 "),
|
|
562
|
-
n("div",
|
|
563
|
-
r.multiple && r.list && r.list.length ? (s(),
|
|
565
|
+
n("div", Ft, [
|
|
566
|
+
r.multiple && r.list && r.list.length ? (s(), E(k(de), {
|
|
564
567
|
key: 0,
|
|
565
568
|
modelValue: l.value,
|
|
566
569
|
"onUpdate:modelValue": O[0] || (O[0] = (h) => l.value = h),
|
|
@@ -568,7 +571,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
568
571
|
onChange: p
|
|
569
572
|
}, {
|
|
570
573
|
default: S(() => [...O[3] || (O[3] = [
|
|
571
|
-
|
|
574
|
+
ee(
|
|
572
575
|
"全选",
|
|
573
576
|
-1
|
|
574
577
|
/* CACHED */
|
|
@@ -577,10 +580,10 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
577
580
|
_: 1
|
|
578
581
|
/* STABLE */
|
|
579
582
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
580
|
-
C(
|
|
583
|
+
C(d, null, {
|
|
581
584
|
default: S(() => [
|
|
582
|
-
r.list && r.list.length ? (s(), f("ul",
|
|
583
|
-
r.multiple ? (s(),
|
|
585
|
+
r.list && r.list.length ? (s(), f("ul", Rt, [
|
|
586
|
+
r.multiple ? (s(), E(k(be), {
|
|
584
587
|
key: 0,
|
|
585
588
|
modelValue: P.value,
|
|
586
589
|
"onUpdate:modelValue": O[1] || (O[1] = (h) => P.value = h),
|
|
@@ -590,21 +593,21 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
590
593
|
(s(!0), f(
|
|
591
594
|
N,
|
|
592
595
|
null,
|
|
593
|
-
|
|
596
|
+
Q(r.list, (h) => {
|
|
594
597
|
var c;
|
|
595
598
|
return s(), f("li", {
|
|
596
599
|
key: h[e.fixPropOpt.id]
|
|
597
600
|
}, [
|
|
598
601
|
r.chooseType.includes(
|
|
599
602
|
h[e.fixPropOpt.type].toLowerCase()
|
|
600
|
-
) && h.available !== !1 ? (s(),
|
|
603
|
+
) && h.available !== !1 ? (s(), E(k(de), {
|
|
601
604
|
key: 0,
|
|
602
605
|
label: h[e.fixPropOpt.id],
|
|
603
606
|
disabled: h.available === !1
|
|
604
607
|
}, {
|
|
605
608
|
default: S(() => [
|
|
606
|
-
n("div",
|
|
607
|
-
n("div",
|
|
609
|
+
n("div", Mt, [
|
|
610
|
+
n("div", Wt, [
|
|
608
611
|
C(H, {
|
|
609
612
|
fixTypeOpt: e.fixTypeOpt,
|
|
610
613
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -612,17 +615,17 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
612
615
|
imageBaseUrl: e.imageBaseUrl
|
|
613
616
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
614
617
|
]),
|
|
615
|
-
n("div",
|
|
618
|
+
n("div", jt, [
|
|
616
619
|
n(
|
|
617
620
|
"div",
|
|
618
|
-
|
|
621
|
+
Ht,
|
|
619
622
|
T(h[e.fixPropOpt.name]),
|
|
620
623
|
1
|
|
621
624
|
/* TEXT */
|
|
622
625
|
),
|
|
623
626
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
624
627
|
"div",
|
|
625
|
-
|
|
628
|
+
$t,
|
|
626
629
|
" (" + T(h.userCount) + ") ",
|
|
627
630
|
1
|
|
628
631
|
/* TEXT */
|
|
@@ -632,7 +635,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
632
635
|
]),
|
|
633
636
|
_: 2
|
|
634
637
|
/* DYNAMIC */
|
|
635
|
-
}, 1032, ["label", "disabled"])) : (s(), f("div",
|
|
638
|
+
}, 1032, ["label", "disabled"])) : (s(), f("div", Gt, [
|
|
636
639
|
O[4] || (O[4] = n(
|
|
637
640
|
"div",
|
|
638
641
|
{ class: "side" },
|
|
@@ -640,7 +643,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
640
643
|
-1
|
|
641
644
|
/* CACHED */
|
|
642
645
|
)),
|
|
643
|
-
n("div",
|
|
646
|
+
n("div", zt, [
|
|
644
647
|
C(H, {
|
|
645
648
|
fixTypeOpt: e.fixTypeOpt,
|
|
646
649
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -648,17 +651,17 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
648
651
|
imageBaseUrl: e.imageBaseUrl
|
|
649
652
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
650
653
|
]),
|
|
651
|
-
n("div",
|
|
654
|
+
n("div", Qt, [
|
|
652
655
|
n(
|
|
653
656
|
"div",
|
|
654
|
-
|
|
657
|
+
Xt,
|
|
655
658
|
T(h[e.fixPropOpt.name]),
|
|
656
659
|
1
|
|
657
660
|
/* TEXT */
|
|
658
661
|
),
|
|
659
662
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
660
663
|
"div",
|
|
661
|
-
|
|
664
|
+
qt,
|
|
662
665
|
" (" + T(h.userCount) + ") ",
|
|
663
666
|
1
|
|
664
667
|
/* TEXT */
|
|
@@ -667,7 +670,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
667
670
|
])),
|
|
668
671
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), f("span", {
|
|
669
672
|
key: 2,
|
|
670
|
-
class:
|
|
673
|
+
class: pe(["nextLevel", {
|
|
671
674
|
"is-disabled": (c = P.value) == null ? void 0 : c.find(
|
|
672
675
|
(y) => y === h[e.fixPropOpt.id]
|
|
673
676
|
)
|
|
@@ -679,7 +682,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
679
682
|
(a = P.value) == null ? void 0 : a.find((A) => A === h[e.fixPropOpt.id])
|
|
680
683
|
);
|
|
681
684
|
}
|
|
682
|
-
}, " 下级", 10,
|
|
685
|
+
}, " 下级", 10, Zt)) : g("v-if", !0)
|
|
683
686
|
]);
|
|
684
687
|
}),
|
|
685
688
|
128
|
|
@@ -688,7 +691,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
688
691
|
]),
|
|
689
692
|
_: 1
|
|
690
693
|
/* STABLE */
|
|
691
|
-
}, 8, ["modelValue"])) : (s(),
|
|
694
|
+
}, 8, ["modelValue"])) : (s(), E(k(Ce), {
|
|
692
695
|
key: 1,
|
|
693
696
|
isIndeterminate: b.value,
|
|
694
697
|
modelValue: w.value,
|
|
@@ -699,7 +702,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
699
702
|
(s(!0), f(
|
|
700
703
|
N,
|
|
701
704
|
null,
|
|
702
|
-
|
|
705
|
+
Q(r.list, (h) => {
|
|
703
706
|
var c;
|
|
704
707
|
return s(), f("li", {
|
|
705
708
|
class: "w-full",
|
|
@@ -707,13 +710,13 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
707
710
|
}, [
|
|
708
711
|
r.chooseType.includes(
|
|
709
712
|
h[e.fixPropOpt.type].toLowerCase()
|
|
710
|
-
) && h.available !== !1 ? (s(),
|
|
713
|
+
) && h.available !== !1 ? (s(), E(k(Ue), {
|
|
711
714
|
key: 0,
|
|
712
715
|
label: h[e.fixPropOpt.id]
|
|
713
716
|
}, {
|
|
714
717
|
default: S(() => [
|
|
715
|
-
n("div",
|
|
716
|
-
n("div",
|
|
718
|
+
n("div", Kt, [
|
|
719
|
+
n("div", Yt, [
|
|
717
720
|
C(H, {
|
|
718
721
|
fixTypeOpt: e.fixTypeOpt,
|
|
719
722
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -721,17 +724,17 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
721
724
|
imageBaseUrl: e.imageBaseUrl
|
|
722
725
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
723
726
|
]),
|
|
724
|
-
n("div",
|
|
727
|
+
n("div", Jt, [
|
|
725
728
|
n(
|
|
726
729
|
"div",
|
|
727
|
-
|
|
730
|
+
el,
|
|
728
731
|
T(h[e.fixPropOpt.name]),
|
|
729
732
|
1
|
|
730
733
|
/* TEXT */
|
|
731
734
|
),
|
|
732
735
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
733
736
|
"div",
|
|
734
|
-
|
|
737
|
+
tl,
|
|
735
738
|
" (" + T((h == null ? void 0 : h.userCount) || 0) + ") ",
|
|
736
739
|
1
|
|
737
740
|
/* TEXT */
|
|
@@ -741,7 +744,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
741
744
|
]),
|
|
742
745
|
_: 2
|
|
743
746
|
/* DYNAMIC */
|
|
744
|
-
}, 1032, ["label"])) : (s(), f("div",
|
|
747
|
+
}, 1032, ["label"])) : (s(), f("div", ll, [
|
|
745
748
|
O[5] || (O[5] = n(
|
|
746
749
|
"div",
|
|
747
750
|
{ class: "side" },
|
|
@@ -749,7 +752,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
749
752
|
-1
|
|
750
753
|
/* CACHED */
|
|
751
754
|
)),
|
|
752
|
-
n("div",
|
|
755
|
+
n("div", al, [
|
|
753
756
|
C(H, {
|
|
754
757
|
fixTypeOpt: e.fixTypeOpt,
|
|
755
758
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -757,17 +760,17 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
757
760
|
imageBaseUrl: e.imageBaseUrl
|
|
758
761
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
759
762
|
]),
|
|
760
|
-
n("div",
|
|
763
|
+
n("div", sl, [
|
|
761
764
|
n(
|
|
762
765
|
"div",
|
|
763
|
-
|
|
766
|
+
ol,
|
|
764
767
|
T(h[e.fixPropOpt.name]),
|
|
765
768
|
1
|
|
766
769
|
/* TEXT */
|
|
767
770
|
),
|
|
768
771
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), f(
|
|
769
772
|
"div",
|
|
770
|
-
|
|
773
|
+
nl,
|
|
771
774
|
" (" + T(h.userCount) + ") ",
|
|
772
775
|
1
|
|
773
776
|
/* TEXT */
|
|
@@ -776,7 +779,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
776
779
|
])),
|
|
777
780
|
h[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), f("span", {
|
|
778
781
|
key: 2,
|
|
779
|
-
class:
|
|
782
|
+
class: pe(["nextLevel", {
|
|
780
783
|
"is-disabled": (c = P.value) == null ? void 0 : c.find(
|
|
781
784
|
(y) => y === h[e.fixPropOpt.id]
|
|
782
785
|
)
|
|
@@ -788,7 +791,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
788
791
|
(a = P.value) == null ? void 0 : a.find((A) => A === h[e.fixPropOpt.id])
|
|
789
792
|
);
|
|
790
793
|
}
|
|
791
|
-
}, " 下级", 10,
|
|
794
|
+
}, " 下级", 10, il)) : g("v-if", !0)
|
|
792
795
|
]);
|
|
793
796
|
}),
|
|
794
797
|
128
|
|
@@ -798,7 +801,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
798
801
|
_: 1
|
|
799
802
|
/* STABLE */
|
|
800
803
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
801
|
-
])) : (s(), f("div",
|
|
804
|
+
])) : (s(), f("div", rl, [
|
|
802
805
|
O[6] || (O[6] = n(
|
|
803
806
|
"img",
|
|
804
807
|
{
|
|
@@ -828,30 +831,30 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
828
831
|
);
|
|
829
832
|
};
|
|
830
833
|
}
|
|
831
|
-
}),
|
|
834
|
+
}), ul = /* @__PURE__ */ X(pl, [["__scopeId", "data-v-f7a238bb"]]), dl = { class: "left-pick-list" }, cl = {
|
|
832
835
|
key: 0,
|
|
833
836
|
class: "post-view-list"
|
|
834
|
-
},
|
|
837
|
+
}, fl = { class: "iconBox" }, Al = {
|
|
835
838
|
key: 1,
|
|
836
839
|
class: "checkText"
|
|
837
|
-
},
|
|
840
|
+
}, vl = { class: "iconBox" }, hl = { class: "title" }, yl = { class: "ik-picker-single" }, ml = { class: "iconBox" }, gl = {
|
|
838
841
|
key: 1,
|
|
839
842
|
class: "checkText"
|
|
840
|
-
},
|
|
843
|
+
}, xl = { class: "iconBox" }, Ol = { class: "title" }, Pl = {
|
|
841
844
|
key: 1,
|
|
842
845
|
class: "empty"
|
|
843
|
-
},
|
|
846
|
+
}, kl = /* @__PURE__ */ ce({
|
|
844
847
|
__name: "PostList",
|
|
845
848
|
props: we,
|
|
846
849
|
emits: ["change", "check"],
|
|
847
|
-
setup(
|
|
850
|
+
setup(u, { emit: v }) {
|
|
848
851
|
var R, m;
|
|
849
|
-
const e =
|
|
852
|
+
const e = u, l = I(() => {
|
|
850
853
|
var o, r;
|
|
851
854
|
return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
|
|
852
|
-
}), b =
|
|
853
|
-
var O,
|
|
854
|
-
const o = (O = e.handList) == null ? void 0 : O.length, r = (
|
|
855
|
+
}), b = I(() => {
|
|
856
|
+
var O, d, h, c;
|
|
857
|
+
const o = (O = e.handList) == null ? void 0 : O.length, r = (d = e.list) == null ? void 0 : d.length;
|
|
855
858
|
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
|
|
856
859
|
}), P = _(
|
|
857
860
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
@@ -870,16 +873,16 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
870
873
|
null,
|
|
871
874
|
[
|
|
872
875
|
g(" 遍历list多选 "),
|
|
873
|
-
n("div",
|
|
874
|
-
o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(),
|
|
876
|
+
n("div", dl, [
|
|
877
|
+
o.multiple && o.chooseType.includes("post") && o.list && o.list.length ? (s(), E(k(de), {
|
|
875
878
|
key: 0,
|
|
876
879
|
modelValue: l.value,
|
|
877
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
880
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => l.value = d),
|
|
878
881
|
indeterminate: b.value,
|
|
879
882
|
onChange: p
|
|
880
883
|
}, {
|
|
881
884
|
default: S(() => [...r[3] || (r[3] = [
|
|
882
|
-
|
|
885
|
+
ee(
|
|
883
886
|
"全选",
|
|
884
887
|
-1
|
|
885
888
|
/* CACHED */
|
|
@@ -890,44 +893,44 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
890
893
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
891
894
|
C(O, null, {
|
|
892
895
|
default: S(() => [
|
|
893
|
-
o.list && o.list.length ? (s(), f("ul",
|
|
894
|
-
o.multiple ? (s(),
|
|
896
|
+
o.list && o.list.length ? (s(), f("ul", cl, [
|
|
897
|
+
o.multiple ? (s(), E(k(be), {
|
|
895
898
|
key: 0,
|
|
896
899
|
modelValue: P.value,
|
|
897
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
900
|
+
"onUpdate:modelValue": r[1] || (r[1] = (d) => P.value = d),
|
|
898
901
|
onChange: F
|
|
899
902
|
}, {
|
|
900
903
|
default: S(() => [
|
|
901
904
|
(s(!0), f(
|
|
902
905
|
N,
|
|
903
906
|
null,
|
|
904
|
-
|
|
905
|
-
key:
|
|
907
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
908
|
+
key: d[e.fixPropOpt.id]
|
|
906
909
|
}, [
|
|
907
|
-
o.chooseType.includes(
|
|
910
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(de), {
|
|
908
911
|
key: 0,
|
|
909
|
-
label:
|
|
912
|
+
label: d[e.fixPropOpt.id]
|
|
910
913
|
}, {
|
|
911
914
|
default: S(() => [
|
|
912
|
-
n("div",
|
|
915
|
+
n("div", fl, [
|
|
913
916
|
C(H, {
|
|
914
917
|
fixTypeOpt: e.fixTypeOpt,
|
|
915
918
|
fixPropOpt: e.fixPropOpt,
|
|
916
|
-
element:
|
|
919
|
+
element: d,
|
|
917
920
|
imageBaseUrl: e.imageBaseUrl
|
|
918
921
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
919
922
|
]),
|
|
920
923
|
n(
|
|
921
924
|
"p",
|
|
922
925
|
null,
|
|
923
|
-
T(
|
|
926
|
+
T(d[e.fixPropOpt.name]),
|
|
924
927
|
1
|
|
925
928
|
/* TEXT */
|
|
926
929
|
)
|
|
927
930
|
]),
|
|
928
931
|
_: 2
|
|
929
932
|
/* DYNAMIC */
|
|
930
|
-
}, 1032, ["label"])) : (s(), f("div",
|
|
933
|
+
}, 1032, ["label"])) : (s(), f("div", Al, [
|
|
931
934
|
r[4] || (r[4] = n(
|
|
932
935
|
"div",
|
|
933
936
|
{ class: "side" },
|
|
@@ -935,18 +938,18 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
935
938
|
-1
|
|
936
939
|
/* CACHED */
|
|
937
940
|
)),
|
|
938
|
-
n("div",
|
|
941
|
+
n("div", vl, [
|
|
939
942
|
C(H, {
|
|
940
943
|
fixTypeOpt: e.fixTypeOpt,
|
|
941
944
|
fixPropOpt: e.fixPropOpt,
|
|
942
|
-
element:
|
|
945
|
+
element: d,
|
|
943
946
|
imageBaseUrl: e.imageBaseUrl
|
|
944
947
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
945
948
|
]),
|
|
946
949
|
n(
|
|
947
950
|
"div",
|
|
948
|
-
|
|
949
|
-
T(
|
|
951
|
+
hl,
|
|
952
|
+
T(d[e.fixPropOpt.name]),
|
|
950
953
|
1
|
|
951
954
|
/* TEXT */
|
|
952
955
|
)
|
|
@@ -958,39 +961,39 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
958
961
|
]),
|
|
959
962
|
_: 1
|
|
960
963
|
/* STABLE */
|
|
961
|
-
}, 8, ["modelValue"])) : (s(),
|
|
964
|
+
}, 8, ["modelValue"])) : (s(), E(k(Ce), {
|
|
962
965
|
key: 1,
|
|
963
966
|
isIndeterminate: b.value,
|
|
964
967
|
modelValue: w.value,
|
|
965
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
968
|
+
"onUpdate:modelValue": r[2] || (r[2] = (d) => w.value = d),
|
|
966
969
|
onChange: D
|
|
967
970
|
}, {
|
|
968
971
|
default: S(() => [
|
|
969
972
|
(s(!0), f(
|
|
970
973
|
N,
|
|
971
974
|
null,
|
|
972
|
-
|
|
975
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
973
976
|
class: "w-full",
|
|
974
|
-
key:
|
|
977
|
+
key: d[e.fixPropOpt.id]
|
|
975
978
|
}, [
|
|
976
|
-
o.chooseType.includes(
|
|
979
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(Ue), {
|
|
977
980
|
key: 0,
|
|
978
|
-
label:
|
|
981
|
+
label: d[e.fixPropOpt.id]
|
|
979
982
|
}, {
|
|
980
983
|
default: S(() => [
|
|
981
|
-
n("div",
|
|
982
|
-
n("div",
|
|
984
|
+
n("div", yl, [
|
|
985
|
+
n("div", ml, [
|
|
983
986
|
C(H, {
|
|
984
987
|
fixTypeOpt: e.fixTypeOpt,
|
|
985
988
|
fixPropOpt: e.fixPropOpt,
|
|
986
|
-
element:
|
|
989
|
+
element: d,
|
|
987
990
|
imageBaseUrl: e.imageBaseUrl
|
|
988
991
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
989
992
|
]),
|
|
990
993
|
n(
|
|
991
994
|
"p",
|
|
992
995
|
null,
|
|
993
|
-
T(
|
|
996
|
+
T(d[e.fixPropOpt.name]),
|
|
994
997
|
1
|
|
995
998
|
/* TEXT */
|
|
996
999
|
)
|
|
@@ -998,7 +1001,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
998
1001
|
]),
|
|
999
1002
|
_: 2
|
|
1000
1003
|
/* DYNAMIC */
|
|
1001
|
-
}, 1032, ["label"])) : (s(), f("div",
|
|
1004
|
+
}, 1032, ["label"])) : (s(), f("div", gl, [
|
|
1002
1005
|
r[5] || (r[5] = n(
|
|
1003
1006
|
"div",
|
|
1004
1007
|
{ class: "side" },
|
|
@@ -1006,18 +1009,18 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1006
1009
|
-1
|
|
1007
1010
|
/* CACHED */
|
|
1008
1011
|
)),
|
|
1009
|
-
n("div",
|
|
1012
|
+
n("div", xl, [
|
|
1010
1013
|
C(H, {
|
|
1011
1014
|
fixTypeOpt: e.fixTypeOpt,
|
|
1012
1015
|
fixPropOpt: e.fixPropOpt,
|
|
1013
|
-
element:
|
|
1016
|
+
element: d,
|
|
1014
1017
|
imageBaseUrl: e.imageBaseUrl
|
|
1015
1018
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1016
1019
|
]),
|
|
1017
1020
|
n(
|
|
1018
1021
|
"div",
|
|
1019
|
-
|
|
1020
|
-
T(
|
|
1022
|
+
Ol,
|
|
1023
|
+
T(d[e.fixPropOpt.name]),
|
|
1021
1024
|
1
|
|
1022
1025
|
/* TEXT */
|
|
1023
1026
|
)
|
|
@@ -1030,7 +1033,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1030
1033
|
_: 1
|
|
1031
1034
|
/* STABLE */
|
|
1032
1035
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
1033
|
-
])) : (s(), f("div",
|
|
1036
|
+
])) : (s(), f("div", Pl, [
|
|
1034
1037
|
r[6] || (r[6] = n(
|
|
1035
1038
|
"img",
|
|
1036
1039
|
{
|
|
@@ -1060,30 +1063,30 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1060
1063
|
);
|
|
1061
1064
|
};
|
|
1062
1065
|
}
|
|
1063
|
-
}),
|
|
1066
|
+
}), Tl = /* @__PURE__ */ X(kl, [["__scopeId", "data-v-ab605706"]]), Ll = { class: "left-pick-list" }, bl = {
|
|
1064
1067
|
key: 0,
|
|
1065
1068
|
class: "role-view-list"
|
|
1066
|
-
},
|
|
1069
|
+
}, Cl = { class: "iconBox" }, Ul = ["title"], Sl = {
|
|
1067
1070
|
key: 1,
|
|
1068
1071
|
class: "checkText"
|
|
1069
|
-
},
|
|
1072
|
+
}, wl = { class: "iconBox" }, Bl = ["title"], _l = { class: "ik-picker-single" }, Il = { class: "iconBox" }, El = ["title"], Vl = {
|
|
1070
1073
|
key: 1,
|
|
1071
1074
|
class: "checkText"
|
|
1072
|
-
},
|
|
1075
|
+
}, Dl = { class: "iconBox" }, Nl = ["title"], Fl = {
|
|
1073
1076
|
key: 1,
|
|
1074
1077
|
class: "empty"
|
|
1075
|
-
},
|
|
1078
|
+
}, Rl = /* @__PURE__ */ ce({
|
|
1076
1079
|
__name: "RoleList",
|
|
1077
1080
|
props: we,
|
|
1078
1081
|
emits: ["change", "check"],
|
|
1079
|
-
setup(
|
|
1082
|
+
setup(u, { emit: v }) {
|
|
1080
1083
|
var R, m;
|
|
1081
|
-
const e =
|
|
1084
|
+
const e = u, l = I(() => {
|
|
1082
1085
|
var o, r;
|
|
1083
1086
|
return ((o = e.handList) == null ? void 0 : o.length) === ((r = e.list) == null ? void 0 : r.length);
|
|
1084
|
-
}), b =
|
|
1085
|
-
var O,
|
|
1086
|
-
const o = (O = e.handList) == null ? void 0 : O.length, r = (
|
|
1087
|
+
}), b = I(() => {
|
|
1088
|
+
var O, d, h, c;
|
|
1089
|
+
const o = (O = e.handList) == null ? void 0 : O.length, r = (d = e.list) == null ? void 0 : d.length;
|
|
1087
1090
|
return e.multiple ? P.value = e.handList.map((y) => y[e.fixPropOpt.id]) : w.value = (c = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : c[e.fixPropOpt.id], o > 0 && o < r;
|
|
1088
1091
|
}), P = _(
|
|
1089
1092
|
e.handList.map((o) => o[e.fixPropOpt.id])
|
|
@@ -1102,16 +1105,16 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1102
1105
|
null,
|
|
1103
1106
|
[
|
|
1104
1107
|
g(" 遍历list多选 "),
|
|
1105
|
-
n("div",
|
|
1106
|
-
o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(),
|
|
1108
|
+
n("div", Ll, [
|
|
1109
|
+
o.multiple && o.chooseType.includes("role") && o.list && o.list.length ? (s(), E(k(de), {
|
|
1107
1110
|
key: 0,
|
|
1108
1111
|
modelValue: l.value,
|
|
1109
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1112
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => l.value = d),
|
|
1110
1113
|
indeterminate: b.value,
|
|
1111
1114
|
onChange: p
|
|
1112
1115
|
}, {
|
|
1113
1116
|
default: S(() => [...r[3] || (r[3] = [
|
|
1114
|
-
|
|
1117
|
+
ee(
|
|
1115
1118
|
"全选",
|
|
1116
1119
|
-1
|
|
1117
1120
|
/* CACHED */
|
|
@@ -1122,42 +1125,42 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1122
1125
|
}, 8, ["modelValue", "indeterminate"])) : g("v-if", !0),
|
|
1123
1126
|
C(O, null, {
|
|
1124
1127
|
default: S(() => [
|
|
1125
|
-
o.list && o.list.length ? (s(), f("ul",
|
|
1126
|
-
o.multiple ? (s(),
|
|
1128
|
+
o.list && o.list.length ? (s(), f("ul", bl, [
|
|
1129
|
+
o.multiple ? (s(), E(k(be), {
|
|
1127
1130
|
key: 0,
|
|
1128
1131
|
modelValue: P.value,
|
|
1129
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1132
|
+
"onUpdate:modelValue": r[1] || (r[1] = (d) => P.value = d),
|
|
1130
1133
|
onChange: F
|
|
1131
1134
|
}, {
|
|
1132
1135
|
default: S(() => [
|
|
1133
1136
|
(s(!0), f(
|
|
1134
1137
|
N,
|
|
1135
1138
|
null,
|
|
1136
|
-
|
|
1137
|
-
key:
|
|
1139
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
1140
|
+
key: d[o.fixPropOpt.id]
|
|
1138
1141
|
}, [
|
|
1139
|
-
o.chooseType.includes(
|
|
1142
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(de), {
|
|
1140
1143
|
key: 0,
|
|
1141
|
-
label:
|
|
1142
|
-
value:
|
|
1143
|
-
disabled:
|
|
1144
|
+
label: d[o.fixPropOpt.id],
|
|
1145
|
+
value: d[o.fixPropOpt.id],
|
|
1146
|
+
disabled: d.disabled
|
|
1144
1147
|
}, {
|
|
1145
1148
|
default: S(() => [
|
|
1146
|
-
n("div",
|
|
1149
|
+
n("div", Cl, [
|
|
1147
1150
|
C(H, {
|
|
1148
1151
|
fixTypeOpt: e.fixTypeOpt,
|
|
1149
1152
|
fixPropOpt: e.fixPropOpt,
|
|
1150
|
-
element:
|
|
1153
|
+
element: d,
|
|
1151
1154
|
imageBaseUrl: e.imageBaseUrl
|
|
1152
1155
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1153
1156
|
]),
|
|
1154
1157
|
n("p", {
|
|
1155
|
-
title:
|
|
1156
|
-
}, T(
|
|
1158
|
+
title: d[o.fixPropOpt.name]
|
|
1159
|
+
}, T(d[o.fixPropOpt.name]), 9, Ul)
|
|
1157
1160
|
]),
|
|
1158
1161
|
_: 2
|
|
1159
1162
|
/* DYNAMIC */
|
|
1160
|
-
}, 1032, ["label", "value", "disabled"])) : (s(), f("div",
|
|
1163
|
+
}, 1032, ["label", "value", "disabled"])) : (s(), f("div", Sl, [
|
|
1161
1164
|
r[4] || (r[4] = n(
|
|
1162
1165
|
"div",
|
|
1163
1166
|
{ class: "side" },
|
|
@@ -1165,18 +1168,18 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1165
1168
|
-1
|
|
1166
1169
|
/* CACHED */
|
|
1167
1170
|
)),
|
|
1168
|
-
n("div",
|
|
1171
|
+
n("div", wl, [
|
|
1169
1172
|
C(H, {
|
|
1170
1173
|
fixTypeOpt: e.fixTypeOpt,
|
|
1171
1174
|
fixPropOpt: e.fixPropOpt,
|
|
1172
|
-
element:
|
|
1175
|
+
element: d,
|
|
1173
1176
|
imageBaseUrl: e.imageBaseUrl
|
|
1174
1177
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1175
1178
|
]),
|
|
1176
1179
|
n("div", {
|
|
1177
1180
|
class: "title",
|
|
1178
|
-
title:
|
|
1179
|
-
}, T(
|
|
1181
|
+
title: d[o.fixPropOpt.name]
|
|
1182
|
+
}, T(d[o.fixPropOpt.name]), 9, Bl)
|
|
1180
1183
|
]))
|
|
1181
1184
|
]))),
|
|
1182
1185
|
128
|
|
@@ -1185,45 +1188,45 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1185
1188
|
]),
|
|
1186
1189
|
_: 1
|
|
1187
1190
|
/* STABLE */
|
|
1188
|
-
}, 8, ["modelValue"])) : (s(),
|
|
1191
|
+
}, 8, ["modelValue"])) : (s(), E(k(Ce), {
|
|
1189
1192
|
key: 1,
|
|
1190
1193
|
indeterminate: b.value,
|
|
1191
1194
|
modelValue: w.value,
|
|
1192
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1195
|
+
"onUpdate:modelValue": r[2] || (r[2] = (d) => w.value = d),
|
|
1193
1196
|
onChange: D
|
|
1194
1197
|
}, {
|
|
1195
1198
|
default: S(() => [
|
|
1196
1199
|
(s(!0), f(
|
|
1197
1200
|
N,
|
|
1198
1201
|
null,
|
|
1199
|
-
|
|
1202
|
+
Q(o.list, (d) => (s(), f("li", {
|
|
1200
1203
|
class: "w-full",
|
|
1201
|
-
key:
|
|
1204
|
+
key: d[o.fixPropOpt.id]
|
|
1202
1205
|
}, [
|
|
1203
|
-
o.chooseType.includes(
|
|
1206
|
+
o.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), E(k(Ue), {
|
|
1204
1207
|
key: 0,
|
|
1205
|
-
label:
|
|
1206
|
-
value:
|
|
1207
|
-
disabled:
|
|
1208
|
+
label: d[o.fixPropOpt.id],
|
|
1209
|
+
value: d[o.fixPropOpt.id],
|
|
1210
|
+
disabled: d.disabled
|
|
1208
1211
|
}, {
|
|
1209
1212
|
default: S(() => [
|
|
1210
|
-
n("div",
|
|
1213
|
+
n("div", _l, [
|
|
1211
1214
|
n("div", Il, [
|
|
1212
1215
|
C(H, {
|
|
1213
1216
|
fixTypeOpt: e.fixTypeOpt,
|
|
1214
1217
|
fixPropOpt: e.fixPropOpt,
|
|
1215
|
-
element:
|
|
1218
|
+
element: d,
|
|
1216
1219
|
imageBaseUrl: e.imageBaseUrl
|
|
1217
1220
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1218
1221
|
]),
|
|
1219
1222
|
n("p", {
|
|
1220
|
-
title:
|
|
1221
|
-
}, T(
|
|
1223
|
+
title: d[o.fixPropOpt.name]
|
|
1224
|
+
}, T(d[o.fixPropOpt.name]), 9, El)
|
|
1222
1225
|
])
|
|
1223
1226
|
]),
|
|
1224
1227
|
_: 2
|
|
1225
1228
|
/* DYNAMIC */
|
|
1226
|
-
}, 1032, ["label", "value", "disabled"])) : (s(), f("div",
|
|
1229
|
+
}, 1032, ["label", "value", "disabled"])) : (s(), f("div", Vl, [
|
|
1227
1230
|
r[5] || (r[5] = n(
|
|
1228
1231
|
"div",
|
|
1229
1232
|
{ class: "side" },
|
|
@@ -1231,18 +1234,18 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1231
1234
|
-1
|
|
1232
1235
|
/* CACHED */
|
|
1233
1236
|
)),
|
|
1234
|
-
n("div",
|
|
1237
|
+
n("div", Dl, [
|
|
1235
1238
|
C(H, {
|
|
1236
1239
|
fixTypeOpt: e.fixTypeOpt,
|
|
1237
1240
|
fixPropOpt: e.fixPropOpt,
|
|
1238
|
-
element:
|
|
1241
|
+
element: d,
|
|
1239
1242
|
imageBaseUrl: e.imageBaseUrl
|
|
1240
1243
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1241
1244
|
]),
|
|
1242
1245
|
n("div", {
|
|
1243
1246
|
class: "title",
|
|
1244
|
-
title:
|
|
1245
|
-
}, T(
|
|
1247
|
+
title: d[o.fixPropOpt.name]
|
|
1248
|
+
}, T(d[o.fixPropOpt.name]), 9, Nl)
|
|
1246
1249
|
]))
|
|
1247
1250
|
]))),
|
|
1248
1251
|
128
|
|
@@ -1252,7 +1255,7 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1252
1255
|
_: 1
|
|
1253
1256
|
/* STABLE */
|
|
1254
1257
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1255
|
-
])) : (s(), f("div",
|
|
1258
|
+
])) : (s(), f("div", Fl, [
|
|
1256
1259
|
r[6] || (r[6] = n(
|
|
1257
1260
|
"img",
|
|
1258
1261
|
{
|
|
@@ -1282,9 +1285,9 @@ const It = /* @__PURE__ */ Q(Bt, [["render", Et]]), Vt = { class: "avatar" }, Dt
|
|
|
1282
1285
|
);
|
|
1283
1286
|
};
|
|
1284
1287
|
}
|
|
1285
|
-
}),
|
|
1286
|
-
var ve = /* @__PURE__ */ ((
|
|
1287
|
-
const
|
|
1288
|
+
}), Ml = /* @__PURE__ */ X(Rl, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1289
|
+
var ve = /* @__PURE__ */ ((u) => (u.group = "group", u.role = "role", u.post = "post", u))(ve || {});
|
|
1290
|
+
const Wl = {
|
|
1288
1291
|
// 是否允许选择子集
|
|
1289
1292
|
children: {
|
|
1290
1293
|
type: Boolean,
|
|
@@ -1376,10 +1379,10 @@ const jl = {
|
|
|
1376
1379
|
tabs: {
|
|
1377
1380
|
type: Array,
|
|
1378
1381
|
// prop校验
|
|
1379
|
-
validator: (
|
|
1380
|
-
if (
|
|
1381
|
-
if (Array.isArray(
|
|
1382
|
-
if (!(
|
|
1382
|
+
validator: (u) => {
|
|
1383
|
+
if (u === void 0) return !0;
|
|
1384
|
+
if (Array.isArray(u)) {
|
|
1385
|
+
if (!(u != null && u.length))
|
|
1383
1386
|
return !1;
|
|
1384
1387
|
} else return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
|
|
1385
1388
|
return !0;
|
|
@@ -1457,28 +1460,28 @@ const jl = {
|
|
|
1457
1460
|
type: Boolean,
|
|
1458
1461
|
default: !1
|
|
1459
1462
|
}
|
|
1460
|
-
}, Ne = (
|
|
1463
|
+
}, Ne = (u) => {
|
|
1461
1464
|
const v = window.location.search;
|
|
1462
|
-
return new URLSearchParams(v).get(
|
|
1463
|
-
},
|
|
1464
|
-
const v =
|
|
1465
|
-
v && (
|
|
1466
|
-
},
|
|
1465
|
+
return new URLSearchParams(v).get(u);
|
|
1466
|
+
}, jl = (u) => {
|
|
1467
|
+
const v = ue.local.getItem("x_domain");
|
|
1468
|
+
v && (u["X-DOMAIN"] = v);
|
|
1469
|
+
}, Hl = (u) => {
|
|
1467
1470
|
var e;
|
|
1468
1471
|
const v = Ne("domain");
|
|
1469
1472
|
if (v) {
|
|
1470
|
-
|
|
1473
|
+
u["X-DOMAIN"] = v;
|
|
1471
1474
|
const l = Ne("code");
|
|
1472
|
-
v === "APPLICATION" && (
|
|
1475
|
+
v === "APPLICATION" && (u["X-APP"] = l);
|
|
1473
1476
|
} else
|
|
1474
|
-
|
|
1475
|
-
(e =
|
|
1476
|
-
},
|
|
1477
|
+
jl(u);
|
|
1478
|
+
(e = ue.local.getItem("tenant")) == null || e.code;
|
|
1479
|
+
}, $l = (u, v) => {
|
|
1477
1480
|
const e = _([]), l = async (P, w) => {
|
|
1478
1481
|
var M, W, $;
|
|
1479
|
-
const { url: B, methods: p, headers: F, param: D } =
|
|
1482
|
+
const { url: B, methods: p, headers: F, param: D } = u.value || {}, R = {
|
|
1480
1483
|
// 额外参数
|
|
1481
|
-
rootDepartmentId: ((M =
|
|
1484
|
+
rootDepartmentId: ((M = ue.local.getItem("now_shop")) == null ? void 0 : M.storeId) || "",
|
|
1482
1485
|
parentDepartmentId: P || "",
|
|
1483
1486
|
name: w || "",
|
|
1484
1487
|
rootDepartmentOnly: v.rootDepartmentOnly,
|
|
@@ -1493,8 +1496,8 @@ const jl = {
|
|
|
1493
1496
|
},
|
|
1494
1497
|
data: JSON.stringify(R)
|
|
1495
1498
|
};
|
|
1496
|
-
|
|
1497
|
-
const o = await
|
|
1499
|
+
Hl(m.headers);
|
|
1500
|
+
const o = await ut(m), { success: r, data: O } = o.data;
|
|
1498
1501
|
if (!r)
|
|
1499
1502
|
return {
|
|
1500
1503
|
groupList: [],
|
|
@@ -1505,7 +1508,7 @@ const jl = {
|
|
|
1505
1508
|
rootDepartment: {}
|
|
1506
1509
|
};
|
|
1507
1510
|
const {
|
|
1508
|
-
departments:
|
|
1511
|
+
departments: d,
|
|
1509
1512
|
roles: h,
|
|
1510
1513
|
posts: c,
|
|
1511
1514
|
users: y,
|
|
@@ -1520,10 +1523,10 @@ const jl = {
|
|
|
1520
1523
|
...G,
|
|
1521
1524
|
id: G.elementId
|
|
1522
1525
|
}), {
|
|
1523
|
-
groupList:
|
|
1524
|
-
roleList:
|
|
1525
|
-
postList:
|
|
1526
|
-
userList:
|
|
1526
|
+
groupList: z.cloneDeep(d),
|
|
1527
|
+
roleList: z.cloneDeep(h),
|
|
1528
|
+
postList: z.cloneDeep(c),
|
|
1529
|
+
userList: z.cloneDeep(y),
|
|
1527
1530
|
rootOrganization: a,
|
|
1528
1531
|
rootDepartment: A
|
|
1529
1532
|
};
|
|
@@ -1535,61 +1538,61 @@ const jl = {
|
|
|
1535
1538
|
},
|
|
1536
1539
|
bannerList: e
|
|
1537
1540
|
};
|
|
1538
|
-
},
|
|
1541
|
+
}, Gl = {
|
|
1539
1542
|
shadow: "hover",
|
|
1540
1543
|
class: "sel-list"
|
|
1541
|
-
},
|
|
1544
|
+
}, zl = { key: 0 }, Ql = { class: "choose-list" }, Xl = { class: "choose-item" }, ql = { class: "list-group-item draggable-item" }, Zl = { class: "item_info" }, Kl = { class: "avatar_box" }, Yl = { class: "dialog-footer" }, Jl = /* @__PURE__ */ ce({
|
|
1542
1545
|
__name: "picker",
|
|
1543
|
-
props:
|
|
1546
|
+
props: Wl,
|
|
1544
1547
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1545
|
-
setup(
|
|
1546
|
-
const l =
|
|
1547
|
-
|
|
1548
|
+
setup(u, { expose: v, emit: e }) {
|
|
1549
|
+
const l = u, b = _(""), P = _(""), w = _([]), B = _([]), p = _([]), F = _([]), D = _(!1), R = I(() => $.value.includes("user") ? B.value.concat(w.value) : B.value);
|
|
1550
|
+
J(
|
|
1548
1551
|
() => l.api,
|
|
1549
1552
|
() => {
|
|
1550
1553
|
l.show && M("");
|
|
1551
1554
|
}
|
|
1552
1555
|
);
|
|
1553
|
-
const m =
|
|
1556
|
+
const m = I(() => ({
|
|
1554
1557
|
name: "name",
|
|
1555
1558
|
type: "type",
|
|
1556
1559
|
id: "id",
|
|
1557
1560
|
avatar: "avatar",
|
|
1558
1561
|
...l.propOption
|
|
1559
|
-
})), o =
|
|
1562
|
+
})), o = I(() => ({
|
|
1560
1563
|
user: "USER",
|
|
1561
1564
|
role: "ROLE",
|
|
1562
1565
|
post: "POST",
|
|
1563
1566
|
group: "DEPT",
|
|
1564
1567
|
...l.typeOption
|
|
1565
|
-
})), r = _([]), O =
|
|
1566
|
-
l.immediate &&
|
|
1568
|
+
})), r = _([]), O = $l(st(l, "api"), l), d = O.handData, h = O.bannerList;
|
|
1569
|
+
l.immediate && d(P.value, b.value);
|
|
1567
1570
|
const c = (t) => (t.forEach((i) => {
|
|
1568
1571
|
var x, L;
|
|
1569
1572
|
i.disabled = ((L = (x = l.modelValue) == null ? void 0 : x.find(
|
|
1570
|
-
(
|
|
1573
|
+
(K) => K[m.value.id] === i[m.value.id]
|
|
1571
1574
|
)) == null ? void 0 : L.disabled) || !1;
|
|
1572
1575
|
}), t), y = async () => {
|
|
1573
|
-
var t, i, x, L,
|
|
1576
|
+
var t, i, x, L, K, U, fe, Oe;
|
|
1574
1577
|
D.value = !0;
|
|
1575
1578
|
try {
|
|
1576
1579
|
if ((t = l.groupList) != null && t.length || (i = l.userList) != null && i.length || (x = l.roleList) != null && x.length || (L = l.postList) != null && L.length) {
|
|
1577
|
-
w.value = (
|
|
1578
|
-
(
|
|
1580
|
+
w.value = (K = l.userList) == null ? void 0 : K.filter(
|
|
1581
|
+
(Y) => Y[m.value.name].includes(b.value)
|
|
1579
1582
|
), B.value = (U = l.groupList) == null ? void 0 : U.filter(
|
|
1580
|
-
(
|
|
1581
|
-
), p.value = (
|
|
1582
|
-
(
|
|
1583
|
+
(Y) => Y[m.value.name].includes(b.value)
|
|
1584
|
+
), p.value = (fe = l.roleList) == null ? void 0 : fe.filter(
|
|
1585
|
+
(Y) => Y[m.value.name].includes(b.value)
|
|
1583
1586
|
), F.value = (Oe = l.postList) == null ? void 0 : Oe.filter(
|
|
1584
|
-
(
|
|
1587
|
+
(Y) => Y[m.value.name].includes(b.value)
|
|
1585
1588
|
), ne(), D.value = !1;
|
|
1586
1589
|
return;
|
|
1587
1590
|
}
|
|
1588
|
-
const j = await
|
|
1591
|
+
const j = await d(P.value, b.value);
|
|
1589
1592
|
try {
|
|
1590
1593
|
w.value = c((j == null ? void 0 : j.userList) || []), B.value = c((j == null ? void 0 : j.groupList) || []), p.value = c((j == null ? void 0 : j.roleList) || []), F.value = c((j == null ? void 0 : j.postList) || []);
|
|
1591
|
-
} catch (
|
|
1592
|
-
D.value = !1, console.info("error: ",
|
|
1594
|
+
} catch (Y) {
|
|
1595
|
+
D.value = !1, console.info("error: ", Y);
|
|
1593
1596
|
}
|
|
1594
1597
|
ne(), D.value = !1;
|
|
1595
1598
|
} catch {
|
|
@@ -1613,7 +1616,7 @@ const jl = {
|
|
|
1613
1616
|
// 半选状态
|
|
1614
1617
|
checkAll: 0
|
|
1615
1618
|
// 全选状态(0: 未选, 1: 全选)
|
|
1616
|
-
}), G = (t) => a.group.has(t) || a.user.has(t) || a.role.has(t) || a.post.has(t), M =
|
|
1619
|
+
}), G = (t) => a.group.has(t) || a.user.has(t) || a.role.has(t) || a.post.has(t), M = z.debounce(y, 300), W = I(() => {
|
|
1617
1620
|
const t = Array.from(a.group.values()), i = Array.from(a.role.values()), x = Array.from(a.user.values()), L = Array.from(a.post.values());
|
|
1618
1621
|
return r.value = [...i, ...L, ...x, ...t], {
|
|
1619
1622
|
list: [...i, ...x, ...L, ...t],
|
|
@@ -1635,20 +1638,20 @@ const jl = {
|
|
|
1635
1638
|
len: t.length
|
|
1636
1639
|
}
|
|
1637
1640
|
};
|
|
1638
|
-
}), $ =
|
|
1641
|
+
}), $ = I(() => {
|
|
1639
1642
|
const t = l.chooseType.map((x) => x.toLocaleLowerCase());
|
|
1640
1643
|
let i = [...t];
|
|
1641
1644
|
return t.includes("dep") && (i = [...i, "dept"]), t.includes("dep_user") && (i = [...i, "user"]), i;
|
|
1642
|
-
}),
|
|
1643
|
-
|
|
1645
|
+
}), q = _([]), V = (t) => {
|
|
1646
|
+
q.value = t, q.value.forEach((i) => {
|
|
1644
1647
|
i.readonly = i == null ? void 0 : i.disabled;
|
|
1645
1648
|
});
|
|
1646
|
-
},
|
|
1649
|
+
}, Z = e, oe = _(!1), ne = (t = !1) => {
|
|
1647
1650
|
var x;
|
|
1648
|
-
const i = (x = l == null ? void 0 : l.userList) != null && x.length ?
|
|
1651
|
+
const i = (x = l == null ? void 0 : l.userList) != null && x.length ? z.cloneDeep([...l == null ? void 0 : l.userList, ...l == null ? void 0 : l.groupList]) : [...B.value, ...w.value];
|
|
1649
1652
|
return !t && V(i), i;
|
|
1650
1653
|
};
|
|
1651
|
-
|
|
1654
|
+
J(
|
|
1652
1655
|
() => l.show,
|
|
1653
1656
|
async (t) => {
|
|
1654
1657
|
var i;
|
|
@@ -1661,19 +1664,19 @@ const jl = {
|
|
|
1661
1664
|
l.modelValue.forEach((U) => {
|
|
1662
1665
|
le(U), l.multiple ? a.trans.push(U[m.value.id]) : a.single = U[m.value.id];
|
|
1663
1666
|
});
|
|
1664
|
-
const
|
|
1665
|
-
A.indeterminate = !!(x.length && !
|
|
1667
|
+
const K = x.length === a.trans.length;
|
|
1668
|
+
A.indeterminate = !!(x.length && !K), A.checkAll = Number(x.length && K);
|
|
1666
1669
|
} else
|
|
1667
1670
|
se();
|
|
1668
1671
|
});
|
|
1669
1672
|
} else
|
|
1670
1673
|
se();
|
|
1671
1674
|
}
|
|
1672
|
-
),
|
|
1673
|
-
let t =
|
|
1675
|
+
), Ee(() => {
|
|
1676
|
+
let t = q.value.length;
|
|
1674
1677
|
const i = a.trans.length;
|
|
1675
1678
|
A.indeterminate = a.trans.length ? i !== t : !1, A.checkAll = +(t !== 0 && i === t);
|
|
1676
|
-
}),
|
|
1679
|
+
}), J(
|
|
1677
1680
|
() => l.modelValue,
|
|
1678
1681
|
(t) => {
|
|
1679
1682
|
t != null && t.length ? t.forEach((i) => {
|
|
@@ -1748,15 +1751,15 @@ const jl = {
|
|
|
1748
1751
|
}, Ge = (t) => [o.value.group].includes(
|
|
1749
1752
|
t[m.value.type]
|
|
1750
1753
|
) ? t == null ? void 0 : t.hasOwnProperty("disabled") : !1;
|
|
1751
|
-
|
|
1754
|
+
J(
|
|
1752
1755
|
() => a.trans,
|
|
1753
1756
|
(t) => {
|
|
1754
1757
|
if (!t.length)
|
|
1755
|
-
|
|
1758
|
+
q.value.forEach((i) => {
|
|
1756
1759
|
i.disabled = !1;
|
|
1757
1760
|
});
|
|
1758
1761
|
else {
|
|
1759
|
-
const i =
|
|
1762
|
+
const i = q.value.filter(
|
|
1760
1763
|
(x) => t.includes(x[m.value.id])
|
|
1761
1764
|
);
|
|
1762
1765
|
for (const x of i)
|
|
@@ -1764,12 +1767,12 @@ const jl = {
|
|
|
1764
1767
|
}
|
|
1765
1768
|
},
|
|
1766
1769
|
{ deep: !0 }
|
|
1767
|
-
),
|
|
1770
|
+
), J(
|
|
1768
1771
|
() => a.single,
|
|
1769
1772
|
(t) => {
|
|
1770
1773
|
var i;
|
|
1771
1774
|
if (t) {
|
|
1772
|
-
const x = (i =
|
|
1775
|
+
const x = (i = q.value) == null ? void 0 : i.find((L) => L[m.value.id] === t);
|
|
1773
1776
|
x && (a.user.clear(), a.role.clear(), a.post.clear(), a.group.clear(), a.trans = [], Le(() => {
|
|
1774
1777
|
le(x);
|
|
1775
1778
|
}));
|
|
@@ -1778,29 +1781,29 @@ const jl = {
|
|
|
1778
1781
|
);
|
|
1779
1782
|
const ze = (t) => {
|
|
1780
1783
|
P.value = t == null ? void 0 : t.elementId, y(), h.value.push(t);
|
|
1781
|
-
}, _e =
|
|
1784
|
+
}, _e = I(() => h.value.length), Qe = (t, i) => {
|
|
1782
1785
|
!i && !l.topLink || i !== _e.value - 1 && (P.value = t == null ? void 0 : t.elementId, y(), h.value.splice(i + 1));
|
|
1783
|
-
}, Xe =
|
|
1786
|
+
}, Xe = I(
|
|
1784
1787
|
() => l.chooseType.includes("role") && l.chooseType.length === 1
|
|
1785
|
-
), qe =
|
|
1788
|
+
), qe = I(
|
|
1786
1789
|
() => l.chooseType.includes("post") && l.chooseType.length === 1
|
|
1787
1790
|
), he = _(l.tabs[0]), ae = _(l.tabs[0]);
|
|
1788
|
-
|
|
1791
|
+
Ee(() => (ae.value = Xe.value ? l.tabs[1] : qe.value ? l.tabs[2] : he.value, ae.value));
|
|
1789
1792
|
const se = () => {
|
|
1790
1793
|
a.user.clear(), a.role.clear(), a.post.clear(), a.group.clear(), a.trans = [], ge.value = [], xe.value = [], he.value = l.tabs[0], ae.value = l.tabs[0], b.value = "", P.value = l.orgPid, h.value.splice(1, h.value.length), a.single = "", r.value = [];
|
|
1791
1794
|
}, Ze = () => {
|
|
1792
1795
|
var t;
|
|
1793
|
-
|
|
1796
|
+
Z(
|
|
1794
1797
|
"ok",
|
|
1795
|
-
|
|
1798
|
+
z.cloneDeep({
|
|
1796
1799
|
// 所有选项、部门、人员、角色分别列出
|
|
1797
1800
|
...W.value,
|
|
1798
1801
|
// 排序后的列表
|
|
1799
1802
|
sort: r.value
|
|
1800
1803
|
})
|
|
1801
|
-
),
|
|
1802
|
-
},
|
|
1803
|
-
|
|
1804
|
+
), Z("update:modelValue", z.cloneDeep(((t = W.value) == null ? void 0 : t.list) || [])), Z("update:show", !1), se();
|
|
1805
|
+
}, Ie = () => {
|
|
1806
|
+
Z("update:show", !1), se();
|
|
1804
1807
|
};
|
|
1805
1808
|
v({
|
|
1806
1809
|
handClear: se,
|
|
@@ -1810,18 +1813,18 @@ const jl = {
|
|
|
1810
1813
|
handDelete: ie
|
|
1811
1814
|
// 删除选中项
|
|
1812
1815
|
});
|
|
1813
|
-
const Ke =
|
|
1816
|
+
const Ke = I(() => {
|
|
1814
1817
|
const t = $.value;
|
|
1815
1818
|
return !!((t.includes("post") || t.includes("role")) && t.length > 1);
|
|
1816
|
-
}), Ye =
|
|
1819
|
+
}), Ye = I(() => [
|
|
1817
1820
|
{ name: "group", label: "组织架构" },
|
|
1818
1821
|
{ name: "role", label: "角色列表" },
|
|
1819
1822
|
{ name: "post", label: "岗位列表" }
|
|
1820
|
-
].filter((t) => l.tabs.includes(t.name))), Je =
|
|
1823
|
+
].filter((t) => l.tabs.includes(t.name))), Je = I(
|
|
1821
1824
|
() => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
|
|
1822
1825
|
), me = () => {
|
|
1823
1826
|
l.multiple || (a.post.clear(), a.role.clear(), a.user.clear(), a.group.clear(), a.single = "");
|
|
1824
|
-
}, et =
|
|
1827
|
+
}, et = I(() => W.value.groups.list.concat(W.value.user.list)), tt = (t, i) => {
|
|
1825
1828
|
l.multiple || (a.single = "");
|
|
1826
1829
|
const x = l.multiple ? t : [t];
|
|
1827
1830
|
if (!x.length) {
|
|
@@ -1842,10 +1845,10 @@ const jl = {
|
|
|
1842
1845
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1843
1846
|
});
|
|
1844
1847
|
};
|
|
1845
|
-
|
|
1848
|
+
J(
|
|
1846
1849
|
() => W.value.role.len,
|
|
1847
1850
|
(t) => {
|
|
1848
|
-
ge.value =
|
|
1851
|
+
ge.value = z.cloneDeep(W.value.role.list);
|
|
1849
1852
|
}
|
|
1850
1853
|
);
|
|
1851
1854
|
const xe = _([]), at = (t, i) => {
|
|
@@ -1859,24 +1862,24 @@ const jl = {
|
|
|
1859
1862
|
x != null && x.includes(L[m.value.id]) ? le(L) : ie(L);
|
|
1860
1863
|
});
|
|
1861
1864
|
};
|
|
1862
|
-
return
|
|
1865
|
+
return J(
|
|
1863
1866
|
() => W.value.post.len,
|
|
1864
1867
|
(t) => {
|
|
1865
|
-
xe.value =
|
|
1868
|
+
xe.value = z.cloneDeep(W.value.post.list);
|
|
1866
1869
|
}
|
|
1867
|
-
),
|
|
1870
|
+
), J(
|
|
1868
1871
|
() => b.value,
|
|
1869
1872
|
(t) => {
|
|
1870
1873
|
M("");
|
|
1871
1874
|
}
|
|
1872
1875
|
), (t, i) => {
|
|
1873
|
-
const x = te("el-tab-pane"), L = te("el-tabs"),
|
|
1876
|
+
const x = te("el-tab-pane"), L = te("el-tabs"), K = te("el-scrollbar");
|
|
1874
1877
|
return s(), f(
|
|
1875
1878
|
N,
|
|
1876
1879
|
null,
|
|
1877
1880
|
[
|
|
1878
1881
|
g(" 主弹窗容器 "),
|
|
1879
|
-
C(k(
|
|
1882
|
+
C(k(nt), {
|
|
1880
1883
|
modelValue: oe.value,
|
|
1881
1884
|
"onUpdate:modelValue": i[3] || (i[3] = (U) => oe.value = U),
|
|
1882
1885
|
title: t.title,
|
|
@@ -1889,16 +1892,17 @@ const jl = {
|
|
|
1889
1892
|
width: typeof t.width == "string" ? t.width : `${t.width}%`,
|
|
1890
1893
|
class: "p_p_picker-dialog",
|
|
1891
1894
|
"modal-class": "p_p_picker-dialog-modal-user",
|
|
1892
|
-
onClose:
|
|
1895
|
+
onClose: Ie
|
|
1893
1896
|
}, {
|
|
1894
1897
|
footer: S(() => [
|
|
1895
|
-
n("span",
|
|
1898
|
+
n("span", Yl, [
|
|
1896
1899
|
g(" 取消按钮 "),
|
|
1897
1900
|
C(k(ke), {
|
|
1898
|
-
|
|
1901
|
+
ciyao: "",
|
|
1902
|
+
onClick: Ae(Ie, ["stop"])
|
|
1899
1903
|
}, {
|
|
1900
1904
|
default: S(() => [...i[7] || (i[7] = [
|
|
1901
|
-
|
|
1905
|
+
ee(
|
|
1902
1906
|
"取消",
|
|
1903
1907
|
-1
|
|
1904
1908
|
/* CACHED */
|
|
@@ -1913,7 +1917,7 @@ const jl = {
|
|
|
1913
1917
|
onClick: Ae(Ze, ["stop"])
|
|
1914
1918
|
}, {
|
|
1915
1919
|
default: S(() => [...i[8] || (i[8] = [
|
|
1916
|
-
|
|
1920
|
+
ee(
|
|
1917
1921
|
" 确定 ",
|
|
1918
1922
|
-1
|
|
1919
1923
|
/* CACHED */
|
|
@@ -1933,19 +1937,19 @@ const jl = {
|
|
|
1933
1937
|
},
|
|
1934
1938
|
[
|
|
1935
1939
|
g(" 左侧选择区域 "),
|
|
1936
|
-
n("div",
|
|
1940
|
+
n("div", Gl, [
|
|
1937
1941
|
g(" 搜索框和标签页 "),
|
|
1938
1942
|
n("div", null, [
|
|
1939
1943
|
g(" 搜索输入框 "),
|
|
1940
|
-
C(k(
|
|
1944
|
+
C(k(it), {
|
|
1941
1945
|
modelValue: b.value,
|
|
1942
1946
|
"onUpdate:modelValue": i[0] || (i[0] = (U) => b.value = U),
|
|
1943
1947
|
clearable: "",
|
|
1944
1948
|
placeholder: t.placeholder,
|
|
1945
|
-
"suffix-icon":
|
|
1949
|
+
"suffix-icon": yt
|
|
1946
1950
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1947
1951
|
g(" 标签页切换 "),
|
|
1948
|
-
Ke.value ? (s(),
|
|
1952
|
+
Ke.value ? (s(), E(L, {
|
|
1949
1953
|
key: 0,
|
|
1950
1954
|
modelValue: he.value,
|
|
1951
1955
|
"onUpdate:modelValue": i[1] || (i[1] = (U) => he.value = U),
|
|
@@ -1955,7 +1959,7 @@ const jl = {
|
|
|
1955
1959
|
(s(!0), f(
|
|
1956
1960
|
N,
|
|
1957
1961
|
null,
|
|
1958
|
-
|
|
1962
|
+
Q(Ye.value, (U) => (s(), E(x, {
|
|
1959
1963
|
label: U.label,
|
|
1960
1964
|
name: U.name,
|
|
1961
1965
|
key: U.label
|
|
@@ -1973,22 +1977,22 @@ const jl = {
|
|
|
1973
1977
|
N,
|
|
1974
1978
|
{ key: 0 },
|
|
1975
1979
|
[
|
|
1976
|
-
_e.value ? (s(), f("div",
|
|
1980
|
+
_e.value ? (s(), f("div", zl, [
|
|
1977
1981
|
g(" 面包屑导航 "),
|
|
1978
|
-
C(k(
|
|
1982
|
+
C(k(rt), {
|
|
1979
1983
|
separator: ">",
|
|
1980
|
-
class:
|
|
1984
|
+
class: pe(["banner", { "top-unlink": !t.topLink }])
|
|
1981
1985
|
}, {
|
|
1982
1986
|
default: S(() => [
|
|
1983
1987
|
(s(!0), f(
|
|
1984
1988
|
N,
|
|
1985
1989
|
null,
|
|
1986
|
-
|
|
1990
|
+
Q(k(h), (U, fe) => (s(), E(k(pt), {
|
|
1987
1991
|
key: U[m.value.id],
|
|
1988
|
-
onClick: Ae((Oe) => Qe(U,
|
|
1992
|
+
onClick: Ae((Oe) => Qe(U, fe), ["stop"])
|
|
1989
1993
|
}, {
|
|
1990
1994
|
default: S(() => [
|
|
1991
|
-
|
|
1995
|
+
ee(
|
|
1992
1996
|
T(U[m.value.name]),
|
|
1993
1997
|
1
|
|
1994
1998
|
/* TEXT */
|
|
@@ -2011,7 +2015,7 @@ const jl = {
|
|
|
2011
2015
|
)) : g("v-if", !0),
|
|
2012
2016
|
g(" 数据列表区域 "),
|
|
2013
2017
|
g(" 组织架构列表 "),
|
|
2014
|
-
ae.value === k(ve).group ? ye((s(),
|
|
2018
|
+
ae.value === k(ve).group ? ye((s(), E(ul, {
|
|
2015
2019
|
key: 1,
|
|
2016
2020
|
fixPropOpt: m.value,
|
|
2017
2021
|
fixTypeOpt: o.value,
|
|
@@ -2032,7 +2036,7 @@ const jl = {
|
|
|
2032
2036
|
{ key: 2 },
|
|
2033
2037
|
[
|
|
2034
2038
|
g(" 角色列表 "),
|
|
2035
|
-
ye(C(
|
|
2039
|
+
ye(C(Ml, {
|
|
2036
2040
|
fixPropOpt: m.value,
|
|
2037
2041
|
fixTypeOpt: o.value,
|
|
2038
2042
|
list: p.value,
|
|
@@ -2054,7 +2058,7 @@ const jl = {
|
|
|
2054
2058
|
{ key: 3 },
|
|
2055
2059
|
[
|
|
2056
2060
|
g(" 岗位列表 "),
|
|
2057
|
-
ye(C(
|
|
2061
|
+
ye(C(Tl, {
|
|
2058
2062
|
fixPropOpt: m.value,
|
|
2059
2063
|
fixTypeOpt: o.value,
|
|
2060
2064
|
list: F.value,
|
|
@@ -2082,14 +2086,14 @@ const jl = {
|
|
|
2082
2086
|
/* CACHED */
|
|
2083
2087
|
)),
|
|
2084
2088
|
g(" 右侧已选区域 "),
|
|
2085
|
-
n("div",
|
|
2089
|
+
n("div", Ql, [
|
|
2086
2090
|
g(" 已选标题和清空按钮 "),
|
|
2087
|
-
n("div",
|
|
2091
|
+
n("div", Xl, [
|
|
2088
2092
|
i[5] || (i[5] = n(
|
|
2089
2093
|
"div",
|
|
2090
2094
|
null,
|
|
2091
2095
|
[
|
|
2092
|
-
|
|
2096
|
+
ee("已选列表"),
|
|
2093
2097
|
n("span", { class: "ik-info-text" }, "(支持拖拽排序)")
|
|
2094
2098
|
],
|
|
2095
2099
|
-1
|
|
@@ -2101,7 +2105,7 @@ const jl = {
|
|
|
2101
2105
|
onClick: Ae(se, ["stop"])
|
|
2102
2106
|
}, {
|
|
2103
2107
|
default: S(() => [...i[4] || (i[4] = [
|
|
2104
|
-
|
|
2108
|
+
ee(
|
|
2105
2109
|
"清空",
|
|
2106
2110
|
-1
|
|
2107
2111
|
/* CACHED */
|
|
@@ -2111,7 +2115,7 @@ const jl = {
|
|
|
2111
2115
|
/* STABLE */
|
|
2112
2116
|
})
|
|
2113
2117
|
]),
|
|
2114
|
-
C(
|
|
2118
|
+
C(K, null, {
|
|
2115
2119
|
default: S(() => [
|
|
2116
2120
|
g(" 已选项目列表 "),
|
|
2117
2121
|
C(k(Re), {
|
|
@@ -2128,10 +2132,10 @@ const jl = {
|
|
|
2128
2132
|
onEnd: He
|
|
2129
2133
|
}, {
|
|
2130
2134
|
item: S(({ element: U }) => [
|
|
2131
|
-
n("li",
|
|
2132
|
-
n("div",
|
|
2135
|
+
n("li", ql, [
|
|
2136
|
+
n("div", Zl, [
|
|
2133
2137
|
g(" 头像图标 "),
|
|
2134
|
-
n("div",
|
|
2138
|
+
n("div", Kl, [
|
|
2135
2139
|
C(H, {
|
|
2136
2140
|
fixTypeOpt: o.value,
|
|
2137
2141
|
fixPropOpt: m.value,
|
|
@@ -2149,9 +2153,9 @@ const jl = {
|
|
|
2149
2153
|
)
|
|
2150
2154
|
]),
|
|
2151
2155
|
g(" 删除按钮 "),
|
|
2152
|
-
ye(C(
|
|
2156
|
+
ye(C(Ot, {
|
|
2153
2157
|
class: "close",
|
|
2154
|
-
onClick: Ae((
|
|
2158
|
+
onClick: Ae((fe) => Be(U), ["stop"])
|
|
2155
2159
|
}, null, 8, ["onClick"]), [
|
|
2156
2160
|
[ot, !(U != null && U.readonly)]
|
|
2157
2161
|
])
|
|
@@ -2179,28 +2183,28 @@ const jl = {
|
|
|
2179
2183
|
);
|
|
2180
2184
|
};
|
|
2181
2185
|
}
|
|
2182
|
-
}),
|
|
2186
|
+
}), ea = Me(Jl), ta = {
|
|
2183
2187
|
class: "approveProcess",
|
|
2184
2188
|
id: "approveProcess"
|
|
2185
|
-
},
|
|
2189
|
+
}, la = { class: "node" }, aa = { class: "nodeBg" }, sa = {
|
|
2186
2190
|
key: 0,
|
|
2187
2191
|
class: "info"
|
|
2188
|
-
},
|
|
2192
|
+
}, oa = { class: "explain" }, na = { key: 0 }, ia = { key: 0 }, ra = { key: 1 }, pa = { key: 0 }, ua = { key: 1 }, da = { class: "personlist" }, ca = { style: { width: "58px" } }, fa = { class: "avatar" }, Aa = ["src"], va = {
|
|
2189
2193
|
key: 1,
|
|
2190
2194
|
class: "nodeBg"
|
|
2191
|
-
},
|
|
2195
|
+
}, ha = ["onClick"], ya = ["title"], ma = {
|
|
2192
2196
|
key: 0,
|
|
2193
2197
|
class: "sign"
|
|
2194
|
-
},
|
|
2198
|
+
}, ga = { key: 0 }, xa = ["onClick"], Oa = {
|
|
2195
2199
|
key: 0,
|
|
2196
2200
|
class: "required"
|
|
2197
|
-
},
|
|
2201
|
+
}, Pa = {
|
|
2198
2202
|
key: 1,
|
|
2199
2203
|
class: "node-branchs"
|
|
2200
|
-
},
|
|
2204
|
+
}, ka = { style: { flex: "1" } }, Ta = { class: "node-branch" }, La = {
|
|
2201
2205
|
name: "IkApprovalProcess"
|
|
2202
|
-
},
|
|
2203
|
-
...
|
|
2206
|
+
}, ba = /* @__PURE__ */ ce({
|
|
2207
|
+
...La,
|
|
2204
2208
|
props: {
|
|
2205
2209
|
// 选人组件请求地址
|
|
2206
2210
|
pickerUrl: {
|
|
@@ -2237,8 +2241,8 @@ const jl = {
|
|
|
2237
2241
|
default: () => ({})
|
|
2238
2242
|
}
|
|
2239
2243
|
},
|
|
2240
|
-
setup(
|
|
2241
|
-
const e =
|
|
2244
|
+
setup(u, { expose: v }) {
|
|
2245
|
+
const e = u, { cLoadUrl: l } = We(e), b = ue.local.getItem("token") || "Bearer iking", P = _("sys");
|
|
2242
2246
|
function w(c) {
|
|
2243
2247
|
try {
|
|
2244
2248
|
const y = window.location.search;
|
|
@@ -2250,13 +2254,13 @@ const jl = {
|
|
|
2250
2254
|
function B() {
|
|
2251
2255
|
var c;
|
|
2252
2256
|
try {
|
|
2253
|
-
const y = w("xTenant") || ((c =
|
|
2257
|
+
const y = w("xTenant") || ((c = ue.local.getItem("tenant")) == null ? void 0 : c.code);
|
|
2254
2258
|
y && (P.value = y);
|
|
2255
2259
|
} catch {
|
|
2256
2260
|
}
|
|
2257
2261
|
}
|
|
2258
2262
|
B();
|
|
2259
|
-
const p = Te(
|
|
2263
|
+
const p = Te(ct(e)), F = async (c) => {
|
|
2260
2264
|
var y;
|
|
2261
2265
|
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.抄送节点)
|
|
2262
2266
|
c.handList.forEach((a) => {
|
|
@@ -2301,7 +2305,7 @@ const jl = {
|
|
|
2301
2305
|
var a;
|
|
2302
2306
|
y.required = !1, y[p.defaultFile.nodeType] == p.nodeType.审批节点 && y[p.defaultFile.isShowAdd] && ((a = y[p.defaultFile.approvePersonList]) != null && a.length || (c = !1, y.required = !0));
|
|
2303
2307
|
}), c;
|
|
2304
|
-
}, r =
|
|
2308
|
+
}, r = I(() => {
|
|
2305
2309
|
var c;
|
|
2306
2310
|
return {
|
|
2307
2311
|
propOption: {
|
|
@@ -2325,13 +2329,13 @@ const jl = {
|
|
|
2325
2329
|
"X-Tenant": P.value
|
|
2326
2330
|
},
|
|
2327
2331
|
param: {
|
|
2328
|
-
rootDepartmentId: ((c =
|
|
2332
|
+
rootDepartmentId: ((c = ue.local.getItem("now_shop")) == null ? void 0 : c.storeId) || "",
|
|
2329
2333
|
rootDepartmentOnly: !1
|
|
2330
2334
|
}
|
|
2331
2335
|
},
|
|
2332
2336
|
...e.pickerConfig
|
|
2333
2337
|
};
|
|
2334
|
-
}), O = _(null),
|
|
2338
|
+
}), O = _(null), d = (c) => {
|
|
2335
2339
|
O.value = c;
|
|
2336
2340
|
}, h = (c) => {
|
|
2337
2341
|
const { oldIndex: y, newIndex: a } = c;
|
|
@@ -2339,23 +2343,23 @@ const jl = {
|
|
|
2339
2343
|
};
|
|
2340
2344
|
return v({ requiredVerification: o }), (c, y) => {
|
|
2341
2345
|
const a = te("IkApprovalProcess", !0);
|
|
2342
|
-
return s(), f("div",
|
|
2346
|
+
return s(), f("div", ta, [
|
|
2343
2347
|
(s(!0), f(
|
|
2344
2348
|
N,
|
|
2345
2349
|
null,
|
|
2346
|
-
|
|
2347
|
-
var M, W, $,
|
|
2350
|
+
Q(e.dataList, (A, G) => {
|
|
2351
|
+
var M, W, $, q;
|
|
2348
2352
|
return s(), f("div", {
|
|
2349
2353
|
class: "content",
|
|
2350
2354
|
key: A.id
|
|
2351
2355
|
}, [
|
|
2352
2356
|
g(" 审批节点类型 "),
|
|
2353
|
-
n("div",
|
|
2354
|
-
n("span",
|
|
2357
|
+
n("div", la, [
|
|
2358
|
+
n("span", aa, [
|
|
2355
2359
|
n(
|
|
2356
2360
|
"i",
|
|
2357
2361
|
{
|
|
2358
|
-
class:
|
|
2362
|
+
class: pe(k(ft)(p, A[p.defaultFile.nodeType]))
|
|
2359
2363
|
},
|
|
2360
2364
|
null,
|
|
2361
2365
|
2
|
|
@@ -2373,7 +2377,7 @@ const jl = {
|
|
|
2373
2377
|
/* STYLE */
|
|
2374
2378
|
)
|
|
2375
2379
|
]),
|
|
2376
|
-
A[p.defaultFile.nodeType] !== p.nodeType.并行分支 ? (s(), f("div",
|
|
2380
|
+
A[p.defaultFile.nodeType] !== p.nodeType.并行分支 ? (s(), f("div", sa, [
|
|
2377
2381
|
n("div", null, [
|
|
2378
2382
|
n(
|
|
2379
2383
|
"div",
|
|
@@ -2382,17 +2386,17 @@ const jl = {
|
|
|
2382
2386
|
1
|
|
2383
2387
|
/* TEXT */
|
|
2384
2388
|
),
|
|
2385
|
-
n("div",
|
|
2389
|
+
n("div", oa, [
|
|
2386
2390
|
g(" 抄送节点 "),
|
|
2387
|
-
A[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span",
|
|
2391
|
+
A[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span", na, [
|
|
2388
2392
|
A[p.defaultFile.approvePersonList].length ? (s(), f(
|
|
2389
2393
|
"span",
|
|
2390
|
-
|
|
2394
|
+
ia,
|
|
2391
2395
|
T(`抄送${A[p.defaultFile.approvePersonList].length}人`),
|
|
2392
2396
|
1
|
|
2393
2397
|
/* TEXT */
|
|
2394
2398
|
)) : g("v-if", !0),
|
|
2395
|
-
A[p.defaultFile.isShowAdd] ? (s(), f("span",
|
|
2399
|
+
A[p.defaultFile.isShowAdd] ? (s(), f("span", ra, ",可添加抄送人")) : g("v-if", !0)
|
|
2396
2400
|
])) : (s(), f(
|
|
2397
2401
|
N,
|
|
2398
2402
|
{ key: 1 },
|
|
@@ -2402,13 +2406,13 @@ const jl = {
|
|
|
2402
2406
|
g(" 存在审批人时 "),
|
|
2403
2407
|
(M = A[p.defaultFile.approvePersonList]) != null && M.length ? (s(), f(
|
|
2404
2408
|
"span",
|
|
2405
|
-
|
|
2409
|
+
pa,
|
|
2406
2410
|
T(((W = A[p.defaultFile.approvePersonList]) == null ? void 0 : W.length) == 1 ? "1人审批" : `${($ = A[p.defaultFile.approvePersonList]) == null ? void 0 : $.length}人${A[p.defaultFile.multiExecutorTypeName]}`),
|
|
2407
2411
|
1
|
|
2408
2412
|
/* TEXT */
|
|
2409
2413
|
)) : [p.statusWithoutApprover.自动通过, p.statusWithoutApprover.自动拒绝].includes(A[p.defaultFile.approveType]) ? (s(), f(
|
|
2410
2414
|
"span",
|
|
2411
|
-
|
|
2415
|
+
ua,
|
|
2412
2416
|
T(A[p.defaultFile.approveTypeName]),
|
|
2413
2417
|
1
|
|
2414
2418
|
/* TEXT */
|
|
@@ -2418,7 +2422,7 @@ const jl = {
|
|
|
2418
2422
|
[
|
|
2419
2423
|
g(" 没有审批人,并且有指定默认审批方式 "),
|
|
2420
2424
|
n("span", null, [
|
|
2421
|
-
y[0] || (y[0] =
|
|
2425
|
+
y[0] || (y[0] = ee(
|
|
2422
2426
|
" 未找到审批人,",
|
|
2423
2427
|
-1
|
|
2424
2428
|
/* CACHED */
|
|
@@ -2438,7 +2442,7 @@ const jl = {
|
|
|
2438
2442
|
"span",
|
|
2439
2443
|
{
|
|
2440
2444
|
key: 3,
|
|
2441
|
-
class:
|
|
2445
|
+
class: pe(A.required ? "warn" : "")
|
|
2442
2446
|
},
|
|
2443
2447
|
" 请选择" + T(A[p.defaultFile.nodeType] === p.nodeType.办理节点 ? "办理人" : "审批人"),
|
|
2444
2448
|
3
|
|
@@ -2451,7 +2455,7 @@ const jl = {
|
|
|
2451
2455
|
))
|
|
2452
2456
|
])
|
|
2453
2457
|
]),
|
|
2454
|
-
n("div",
|
|
2458
|
+
n("div", da, [
|
|
2455
2459
|
C(k(Re), {
|
|
2456
2460
|
modelValue: A[p.defaultFile.approvePersonList],
|
|
2457
2461
|
"onUpdate:modelValue": (V) => A[p.defaultFile.approvePersonList] = V,
|
|
@@ -2462,24 +2466,24 @@ const jl = {
|
|
|
2462
2466
|
"ghost-class": "ghost-item",
|
|
2463
2467
|
"chosen-class": "chosen-item",
|
|
2464
2468
|
"drag-class": "drag-item",
|
|
2465
|
-
onStart: (V) =>
|
|
2469
|
+
onStart: (V) => d(A[p.defaultFile.approvePersonList]),
|
|
2466
2470
|
onEnd: h,
|
|
2467
2471
|
class: "draggable-container"
|
|
2468
2472
|
}, {
|
|
2469
|
-
item: S(({ element: V, index:
|
|
2473
|
+
item: S(({ element: V, index: Z }) => {
|
|
2470
2474
|
var oe, ne;
|
|
2471
2475
|
return [
|
|
2472
2476
|
(s(), f("div", {
|
|
2473
2477
|
class: "list draggable-item",
|
|
2474
2478
|
key: V.userId
|
|
2475
2479
|
}, [
|
|
2476
|
-
n("div",
|
|
2477
|
-
n("div",
|
|
2480
|
+
n("div", ca, [
|
|
2481
|
+
n("div", fa, [
|
|
2478
2482
|
V.userAvatar ? (s(), f("img", {
|
|
2479
2483
|
key: 0,
|
|
2480
2484
|
src: D(V.userAvatar),
|
|
2481
2485
|
alt: ""
|
|
2482
|
-
}, null, 8,
|
|
2486
|
+
}, null, 8, Aa)) : (s(), f("div", va, [
|
|
2483
2487
|
n(
|
|
2484
2488
|
"span",
|
|
2485
2489
|
null,
|
|
@@ -2490,19 +2494,19 @@ const jl = {
|
|
|
2490
2494
|
])),
|
|
2491
2495
|
V.canDele ? (s(), f("i", {
|
|
2492
2496
|
key: 2,
|
|
2493
|
-
onClick: (ie) => m(G,
|
|
2497
|
+
onClick: (ie) => m(G, Z),
|
|
2494
2498
|
class: "ikapprove ikapprove-shanchu1"
|
|
2495
|
-
}, null, 8,
|
|
2499
|
+
}, null, 8, ha)) : g("v-if", !0)
|
|
2496
2500
|
]),
|
|
2497
2501
|
n("div", {
|
|
2498
2502
|
class: "name",
|
|
2499
2503
|
title: V.userName
|
|
2500
|
-
}, T(V.userName), 9,
|
|
2504
|
+
}, T(V.userName), 9, ya)
|
|
2501
2505
|
]),
|
|
2502
2506
|
g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),
|
|
2503
|
-
A[p.defaultFile.isShowAdd] && !(A[p.defaultFile.singleApproval] && ((ne = A[p.defaultFile.approvePersonList]) == null ? void 0 : ne.length) == 1) ? (s(), f("span",
|
|
2507
|
+
A[p.defaultFile.isShowAdd] && !(A[p.defaultFile.singleApproval] && ((ne = A[p.defaultFile.approvePersonList]) == null ? void 0 : ne.length) == 1) ? (s(), f("span", ma, [
|
|
2504
2508
|
g(" 抄送默认 "),
|
|
2505
|
-
A[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span",
|
|
2509
|
+
A[p.defaultFile.nodeType] == p.nodeType.抄送节点 ? (s(), f("span", ga, "+")) : (s(), f(
|
|
2506
2510
|
N,
|
|
2507
2511
|
{ key: 1 },
|
|
2508
2512
|
[
|
|
@@ -2526,12 +2530,12 @@ const jl = {
|
|
|
2526
2530
|
/* DYNAMIC */
|
|
2527
2531
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onStart"]),
|
|
2528
2532
|
g(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),
|
|
2529
|
-
A[p.defaultFile.isShowAdd] && !(A[p.defaultFile.singleApproval] && ((
|
|
2533
|
+
A[p.defaultFile.isShowAdd] && !(A[p.defaultFile.singleApproval] && ((q = A[p.defaultFile.approvePersonList]) == null ? void 0 : q.length) == 1) || A[p.defaultFile.isShowAddCopy] ? (s(), f("span", {
|
|
2530
2534
|
key: 0,
|
|
2531
2535
|
class: "addBg",
|
|
2532
2536
|
onClick: (V) => F(A)
|
|
2533
2537
|
}, [
|
|
2534
|
-
A[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (s(), f("span",
|
|
2538
|
+
A[p.defaultFile.nodeType] == p.nodeType.审批节点 ? (s(), f("span", Oa)) : g("v-if", !0),
|
|
2535
2539
|
y[1] || (y[1] = n(
|
|
2536
2540
|
"i",
|
|
2537
2541
|
{ class: "ikapprove ikapprove-xinzeng" },
|
|
@@ -2539,9 +2543,9 @@ const jl = {
|
|
|
2539
2543
|
-1
|
|
2540
2544
|
/* CACHED */
|
|
2541
2545
|
))
|
|
2542
|
-
], 8,
|
|
2546
|
+
], 8, xa)) : g("v-if", !0),
|
|
2543
2547
|
g(" 添加人组件 "),
|
|
2544
|
-
C(k(
|
|
2548
|
+
C(k(ea), Ve({
|
|
2545
2549
|
modelValue: A.handList,
|
|
2546
2550
|
"onUpdate:modelValue": (V) => A.handList = V,
|
|
2547
2551
|
show: A.isShow,
|
|
@@ -2555,7 +2559,7 @@ const jl = {
|
|
|
2555
2559
|
chooseType: A.chooseType
|
|
2556
2560
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "show", "onUpdate:show", "onOk", "multiple", "dep-list", "user-list", "organization-list", "chooseType"])
|
|
2557
2561
|
])
|
|
2558
|
-
])) : (s(), f("div",
|
|
2562
|
+
])) : (s(), f("div", Pa, [
|
|
2559
2563
|
y[2] || (y[2] = n(
|
|
2560
2564
|
"div",
|
|
2561
2565
|
{ class: "branch-line" },
|
|
@@ -2563,20 +2567,20 @@ const jl = {
|
|
|
2563
2567
|
-1
|
|
2564
2568
|
/* CACHED */
|
|
2565
2569
|
)),
|
|
2566
|
-
n("div",
|
|
2570
|
+
n("div", ka, [
|
|
2567
2571
|
(s(!0), f(
|
|
2568
2572
|
N,
|
|
2569
2573
|
null,
|
|
2570
|
-
|
|
2574
|
+
Q(A.parallelInstances, (V, Z) => (s(), f(
|
|
2571
2575
|
"div",
|
|
2572
2576
|
{
|
|
2573
|
-
key:
|
|
2574
|
-
class:
|
|
2577
|
+
key: Z,
|
|
2578
|
+
class: pe(`branch branch-${Z}`)
|
|
2575
2579
|
},
|
|
2576
2580
|
[
|
|
2577
2581
|
n(
|
|
2578
2582
|
"div",
|
|
2579
|
-
|
|
2583
|
+
Ta,
|
|
2580
2584
|
T(V.name),
|
|
2581
2585
|
1
|
|
2582
2586
|
/* TEXT */
|
|
@@ -2602,7 +2606,7 @@ const jl = {
|
|
|
2602
2606
|
]);
|
|
2603
2607
|
};
|
|
2604
2608
|
}
|
|
2605
|
-
}),
|
|
2609
|
+
}), Ca = /* @__PURE__ */ X(ba, [["__scopeId", "data-v-33ad8147"]]), Ia = Me(Ca);
|
|
2606
2610
|
export {
|
|
2607
2611
|
Ia as IkApprovalProcess,
|
|
2608
2612
|
Ia as default
|