iking-web-ui-pro 1.0.46 → 1.0.47
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 +329 -325
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +1404 -1400
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +329 -325
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +241 -237
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +458 -454
- 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-DPL8lSSW.mjs} +2156 -2152
- package/dist/{index.es-B77Iiv-O.mjs → index.es-D7jRDuLK.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +38 -38
- package/dist/{jspdf.es.min-DVvGi1xM.mjs → jspdf.es.min-C50KWSPo.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,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as W, createElementBlock as v, openBlock as p, createElementVNode as d, normalizeClass as pe, toDisplayString as D, createVNode as A, unref as x, inject as
|
|
2
|
-
import { ElButton as oe, ElCheckbox as ce, ElCheckboxGroup as Oe, ElRadioGroup as ke, ElRadio as Pe, ElDialog as
|
|
3
|
-
import { ikStore as Be, _ as ee, ikEvent as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as W, createElementBlock as v, openBlock as p, createElementVNode as d, normalizeClass as pe, toDisplayString as D, createVNode as A, unref as x, inject as Ae, computed as S, resolveComponent as de, createBlock as V, createCommentVNode as k, ref as U, watch as Z, Fragment as E, withCtx as w, createTextVNode as ae, renderList as te, toRef as ot, reactive as De, nextTick as Ie, watchEffect as Me, normalizeStyle as st, withDirectives as me, withModifiers as fe, vShow as He, isVNode as nt, createSlots as rt, withKeys as it, renderSlot as ut } from "vue";
|
|
2
|
+
import { ElButton as oe, ElCheckbox as ce, ElCheckboxGroup as Oe, ElRadioGroup as ke, ElRadio as Pe, ElDialog as pt, ElInput as je, ElBreadcrumb as dt, ElBreadcrumbItem as ct, vLoading as _e, ElFormItem as ft, ElTreeSelect as ht, ElDatePicker as vt, ElSelect as At, ElOption as mt, ElInputNumber as gt, ElCard as yt, ElForm as xt, ElRow as Ot, ElCol as kt, ElIcon as Pt } from "element-plus";
|
|
3
|
+
import { ikStore as Be, _ as ee, ikEvent as bt } from "iking-utils-pro";
|
|
4
|
+
import wt from "vuedraggable";
|
|
5
5
|
import Lt from "axios";
|
|
6
|
-
const
|
|
7
|
-
for (const
|
|
8
|
-
e.component(
|
|
6
|
+
const We = (a, c) => (a.install = (e) => {
|
|
7
|
+
for (const t of [a, ...Object.values({})])
|
|
8
|
+
e.component(t.name, t);
|
|
9
9
|
}, a);
|
|
10
10
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
11
|
-
var
|
|
11
|
+
var Ct = /* @__PURE__ */ W({
|
|
12
12
|
name: "ArrowUp",
|
|
13
13
|
__name: "arrow-up",
|
|
14
14
|
setup(a) {
|
|
@@ -22,7 +22,7 @@ var _t = /* @__PURE__ */ W({
|
|
|
22
22
|
})
|
|
23
23
|
]));
|
|
24
24
|
}
|
|
25
|
-
}),
|
|
25
|
+
}), _t = Ct, Bt = /* @__PURE__ */ W({
|
|
26
26
|
name: "Bottom",
|
|
27
27
|
__name: "bottom",
|
|
28
28
|
setup(a) {
|
|
@@ -36,7 +36,7 @@ var _t = /* @__PURE__ */ W({
|
|
|
36
36
|
})
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), Tt = Bt, Ut = /* @__PURE__ */ W({
|
|
40
40
|
name: "Delete",
|
|
41
41
|
__name: "delete",
|
|
42
42
|
setup(a) {
|
|
@@ -50,7 +50,7 @@ var _t = /* @__PURE__ */ W({
|
|
|
50
50
|
})
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), Vt = Ut, St = /* @__PURE__ */ W({
|
|
54
54
|
name: "Refresh",
|
|
55
55
|
__name: "refresh",
|
|
56
56
|
setup(a) {
|
|
@@ -64,7 +64,7 @@ var _t = /* @__PURE__ */ W({
|
|
|
64
64
|
})
|
|
65
65
|
]));
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
67
|
+
}), Dt = St, It = /* @__PURE__ */ W({
|
|
68
68
|
name: "Search",
|
|
69
69
|
__name: "search",
|
|
70
70
|
setup(a) {
|
|
@@ -78,7 +78,7 @@ var _t = /* @__PURE__ */ W({
|
|
|
78
78
|
})
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), Mt = It, Et = /* @__PURE__ */ W({
|
|
82
82
|
name: "Top",
|
|
83
83
|
__name: "top",
|
|
84
84
|
setup(a) {
|
|
@@ -92,8 +92,8 @@ var _t = /* @__PURE__ */ W({
|
|
|
92
92
|
})
|
|
93
93
|
]));
|
|
94
94
|
}
|
|
95
|
-
}),
|
|
96
|
-
const
|
|
95
|
+
}), Rt = Et, J = /* @__PURE__ */ ((a) => (a.input = "input", a.area = "area", a.number = "number", a.select = "select", a.date = "date", a.datetime = "datetime", a.checkbox = "checkbox", a.radio = "radio", a.treeselect = "treeselect", a.choosePerson = "choosePerson", a))(J || {}), ue = /* @__PURE__ */ ((a) => (a.year = "year", a.month = "month", a.date = "date", a.dates = "dates", a.datetime = "datetime", a.week = "week", a.datetimerange = "datetimerange", a.daterange = "daterange", a.monthrange = "monthrange", a))(ue || {}), Ht = /* @__PURE__ */ ((a) => (a.center = "center", a.left = "left", a.right = "right", a))(Ht || {});
|
|
96
|
+
const jt = { class: "ik-head-left" }, Wt = { class: "ik-head-right" }, Nt = /* @__PURE__ */ W({
|
|
97
97
|
__name: "IkSearchHead",
|
|
98
98
|
props: {
|
|
99
99
|
//表格展示头部几条数据
|
|
@@ -105,7 +105,7 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
105
105
|
emits: ["import", "export", "delete"],
|
|
106
106
|
setup(a, { emit: c }) {
|
|
107
107
|
const e = c;
|
|
108
|
-
return (
|
|
108
|
+
return (t, P) => (p(), v(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
class: pe(["ik-head", a.rowData.length === 0 ? "pack-up" : "ik-unfold"])
|
|
@@ -113,28 +113,28 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
113
113
|
[
|
|
114
114
|
d(
|
|
115
115
|
"div",
|
|
116
|
-
|
|
116
|
+
jt,
|
|
117
117
|
D(`已选${a.rowData.length}条数据`),
|
|
118
118
|
1
|
|
119
119
|
/* TEXT */
|
|
120
120
|
),
|
|
121
|
-
d("div",
|
|
121
|
+
d("div", Wt, [
|
|
122
122
|
A(x(oe), {
|
|
123
123
|
class: "ik-head-icon",
|
|
124
124
|
title: "查询",
|
|
125
|
-
icon: x(
|
|
125
|
+
icon: x(Vt),
|
|
126
126
|
onClick: P[0] || (P[0] = (y) => e("delete", a.rowData))
|
|
127
127
|
}, null, 8, ["icon"]),
|
|
128
128
|
A(x(oe), {
|
|
129
129
|
class: "ik-head-icon",
|
|
130
130
|
title: "导入",
|
|
131
|
-
icon: x(
|
|
131
|
+
icon: x(Rt),
|
|
132
132
|
onClick: P[1] || (P[1] = (y) => e("import", a.rowData))
|
|
133
133
|
}, null, 8, ["icon"]),
|
|
134
134
|
A(x(oe), {
|
|
135
135
|
class: "ik-head-icon",
|
|
136
136
|
title: "导出",
|
|
137
|
-
icon: x(
|
|
137
|
+
icon: x(Tt),
|
|
138
138
|
onClick: P[2] || (P[2] = (y) => e("export", a.rowData))
|
|
139
139
|
}, null, 8, ["icon"])
|
|
140
140
|
])
|
|
@@ -145,10 +145,10 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
145
145
|
}
|
|
146
146
|
}), X = (a, c) => {
|
|
147
147
|
const e = a.__vccOpts || a;
|
|
148
|
-
for (const [
|
|
149
|
-
e[
|
|
148
|
+
for (const [t, P] of c)
|
|
149
|
+
e[t] = P;
|
|
150
150
|
return e;
|
|
151
|
-
},
|
|
151
|
+
}, Yt = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-61aa086d"]]), Gt = (a, c) => c ? c != null && c.startsWith("http") ? c : `${a || location.origin}${c}` : "", Ee = [
|
|
152
152
|
"csv",
|
|
153
153
|
"djvu",
|
|
154
154
|
"doc",
|
|
@@ -203,25 +203,25 @@ const Wt = { class: "ik-head-left" }, Nt = { class: "ik-head-right" }, Yt = /* @
|
|
|
203
203
|
"mp4",
|
|
204
204
|
"flv",
|
|
205
205
|
"tls"
|
|
206
|
-
],
|
|
207
|
-
const c =
|
|
206
|
+
], zt = (a) => {
|
|
207
|
+
const c = Ae("loadUrl"), e = S(() => a.loadUrl || a.fileUrl || (c == null ? void 0 : c.value)), t = Ae("uploadUrl"), P = S(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), y = Ae("token"), _ = S(() => a.token || (y == null ? void 0 : y.value)), b = Ae("onlyofficeConfig"), M = S(() => a.onlyofficeConfig || (b == null ? void 0 : b.value)), I = Ae("userInfo"), L = S(() => a.userInfo || (I == null ? void 0 : I.value)), R = [...Ee, ...Ee.map((h) => h.toLocaleUpperCase())];
|
|
208
208
|
return {
|
|
209
209
|
cLoadUrl: e,
|
|
210
210
|
cUploadUrl: P,
|
|
211
211
|
cToken: _,
|
|
212
212
|
cOnlyofficeConfig: M,
|
|
213
|
-
cUserInfo:
|
|
213
|
+
cUserInfo: L,
|
|
214
214
|
cOnlyofficePreviewType: R
|
|
215
215
|
};
|
|
216
|
-
},
|
|
216
|
+
}, Qt = {}, Ft = {
|
|
217
217
|
t: "1672194715727",
|
|
218
218
|
class: "icon",
|
|
219
219
|
viewBox: "0 0 1024 1024",
|
|
220
220
|
version: "1.1",
|
|
221
221
|
"p-id": "2667"
|
|
222
222
|
};
|
|
223
|
-
function
|
|
224
|
-
return p(), v("svg",
|
|
223
|
+
function Xt(a, c) {
|
|
224
|
+
return p(), v("svg", Ft, [...c[0] || (c[0] = [
|
|
225
225
|
d(
|
|
226
226
|
"path",
|
|
227
227
|
{
|
|
@@ -246,7 +246,7 @@ function Kt(a, c) {
|
|
|
246
246
|
)
|
|
247
247
|
])]);
|
|
248
248
|
}
|
|
249
|
-
const
|
|
249
|
+
const Kt = /* @__PURE__ */ X(Qt, [["render", Xt]]), Zt = {}, $t = {
|
|
250
250
|
t: "1710907270798",
|
|
251
251
|
class: "icon",
|
|
252
252
|
viewBox: "0 0 1024 1024",
|
|
@@ -256,8 +256,8 @@ const Zt = /* @__PURE__ */ X(Ft, [["render", Kt]]), $t = {}, qt = {
|
|
|
256
256
|
width: "200",
|
|
257
257
|
height: "200"
|
|
258
258
|
};
|
|
259
|
-
function
|
|
260
|
-
return p(), v("svg",
|
|
259
|
+
function qt(a, c) {
|
|
260
|
+
return p(), v("svg", $t, [...c[0] || (c[0] = [
|
|
261
261
|
d(
|
|
262
262
|
"path",
|
|
263
263
|
{
|
|
@@ -282,7 +282,7 @@ function Jt(a, c) {
|
|
|
282
282
|
)
|
|
283
283
|
])]);
|
|
284
284
|
}
|
|
285
|
-
const
|
|
285
|
+
const Jt = /* @__PURE__ */ X(Zt, [["render", qt]]), el = {}, tl = {
|
|
286
286
|
t: "1710904463698",
|
|
287
287
|
class: "icon",
|
|
288
288
|
viewBox: "0 0 1024 1024",
|
|
@@ -292,8 +292,8 @@ const el = /* @__PURE__ */ X($t, [["render", Jt]]), tl = {}, ll = {
|
|
|
292
292
|
width: "200",
|
|
293
293
|
height: "200"
|
|
294
294
|
};
|
|
295
|
-
function
|
|
296
|
-
return p(), v("svg",
|
|
295
|
+
function ll(a, c) {
|
|
296
|
+
return p(), v("svg", tl, [...c[0] || (c[0] = [
|
|
297
297
|
d(
|
|
298
298
|
"path",
|
|
299
299
|
{
|
|
@@ -318,7 +318,7 @@ function al(a, c) {
|
|
|
318
318
|
)
|
|
319
319
|
])]);
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const al = /* @__PURE__ */ X(el, [["render", ll]]), ol = {}, sl = {
|
|
322
322
|
t: "1710904436436",
|
|
323
323
|
class: "icon",
|
|
324
324
|
viewBox: "0 0 1024 1024",
|
|
@@ -328,8 +328,8 @@ const ol = /* @__PURE__ */ X(tl, [["render", al]]), sl = {}, nl = {
|
|
|
328
328
|
width: "200",
|
|
329
329
|
height: "200"
|
|
330
330
|
};
|
|
331
|
-
function
|
|
332
|
-
return p(), v("svg",
|
|
331
|
+
function nl(a, c) {
|
|
332
|
+
return p(), v("svg", sl, [...c[0] || (c[0] = [
|
|
333
333
|
d(
|
|
334
334
|
"path",
|
|
335
335
|
{
|
|
@@ -354,7 +354,7 @@ function rl(a, c) {
|
|
|
354
354
|
)
|
|
355
355
|
])]);
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const rl = /* @__PURE__ */ X(ol, [["render", nl]]), il = {}, ul = {
|
|
358
358
|
t: "1710904287393",
|
|
359
359
|
class: "icon",
|
|
360
360
|
viewBox: "0 0 1024 1024",
|
|
@@ -364,8 +364,8 @@ const il = /* @__PURE__ */ X(sl, [["render", rl]]), ul = {}, pl = {
|
|
|
364
364
|
width: "200",
|
|
365
365
|
height: "200"
|
|
366
366
|
};
|
|
367
|
-
function
|
|
368
|
-
return p(), v("svg",
|
|
367
|
+
function pl(a, c) {
|
|
368
|
+
return p(), v("svg", ul, [...c[0] || (c[0] = [
|
|
369
369
|
d(
|
|
370
370
|
"path",
|
|
371
371
|
{
|
|
@@ -390,13 +390,13 @@ function dl(a, c) {
|
|
|
390
390
|
)
|
|
391
391
|
])]);
|
|
392
392
|
}
|
|
393
|
-
const
|
|
393
|
+
const dl = /* @__PURE__ */ X(il, [["render", pl]]), cl = { class: "avatar" }, fl = {
|
|
394
394
|
key: 3,
|
|
395
395
|
class: "user_box"
|
|
396
|
-
},
|
|
396
|
+
}, hl = {
|
|
397
397
|
key: 1,
|
|
398
398
|
class: "avatar_name"
|
|
399
|
-
},
|
|
399
|
+
}, vl = /* @__PURE__ */ W({
|
|
400
400
|
__name: "Avatar",
|
|
401
401
|
props: {
|
|
402
402
|
fixPropOpt: {
|
|
@@ -420,18 +420,18 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
420
420
|
}
|
|
421
421
|
},
|
|
422
422
|
setup(a) {
|
|
423
|
-
const c = a, { cLoadUrl: e } =
|
|
423
|
+
const c = a, { cLoadUrl: e } = zt(c), t = (P) => Gt(e.value, P);
|
|
424
424
|
return (P, y) => {
|
|
425
425
|
const _ = de("el-avatar");
|
|
426
|
-
return p(), v("div",
|
|
427
|
-
c.fixTypeOpt.group === a.element[c.fixPropOpt.type] ? (p(), V(
|
|
426
|
+
return p(), v("div", cl, [
|
|
427
|
+
c.fixTypeOpt.group === a.element[c.fixPropOpt.type] ? (p(), V(dl, { key: 0 })) : c.fixTypeOpt.role === a.element[c.fixPropOpt.type] ? (p(), V(al, { key: 1 })) : c.fixTypeOpt.post === a.element[c.fixPropOpt.type] ? (p(), V(rl, { key: 2 })) : c.fixTypeOpt.user === a.element[c.fixPropOpt.type] ? (p(), v("div", fl, [
|
|
428
428
|
a.element[a.fixPropOpt.avatar] ? (p(), V(_, {
|
|
429
429
|
key: 0,
|
|
430
430
|
shape: "square",
|
|
431
|
-
src:
|
|
431
|
+
src: t(a.fixPropOpt.avatar ? a.element[a.fixPropOpt.avatar] : "")
|
|
432
432
|
}, null, 8, ["src"])) : (p(), v(
|
|
433
433
|
"div",
|
|
434
|
-
|
|
434
|
+
hl,
|
|
435
435
|
D(a.element[a.fixPropOpt.name].slice(-2)),
|
|
436
436
|
1
|
|
437
437
|
/* TEXT */
|
|
@@ -440,7 +440,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
440
440
|
]);
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
}), G = /* @__PURE__ */ X(
|
|
443
|
+
}), G = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-8031ce9b"]]), Te = "data:image/webp;base64,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", Ue = {
|
|
444
444
|
// 所有数据
|
|
445
445
|
list: {
|
|
446
446
|
type: Array,
|
|
@@ -498,61 +498,61 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
498
498
|
// 传['dep', 'user', 'role']则选择人员、部门和角色
|
|
499
499
|
default: () => ["dep"]
|
|
500
500
|
}
|
|
501
|
-
},
|
|
501
|
+
}, Al = { class: "left-pick-list" }, ml = {
|
|
502
502
|
key: 0,
|
|
503
503
|
class: "post-view-list"
|
|
504
|
-
},
|
|
504
|
+
}, gl = { class: "checkText" }, yl = { class: "iconBox" }, xl = { class: "name_number" }, Ol = { class: "title" }, kl = {
|
|
505
505
|
key: 0,
|
|
506
506
|
class: "userCount"
|
|
507
|
-
},
|
|
507
|
+
}, Pl = {
|
|
508
508
|
key: 1,
|
|
509
509
|
class: "checkText"
|
|
510
|
-
},
|
|
510
|
+
}, bl = { class: "iconBox" }, wl = { class: "name_number" }, Ll = { class: "title" }, Cl = {
|
|
511
511
|
key: 0,
|
|
512
512
|
class: "userCount"
|
|
513
|
-
},
|
|
513
|
+
}, _l = ["onClick"], Bl = { class: "checkText" }, Tl = { class: "iconBox" }, Ul = { class: "name_number" }, Vl = { class: "title" }, Sl = {
|
|
514
514
|
key: 0,
|
|
515
515
|
class: "userCount"
|
|
516
|
-
},
|
|
516
|
+
}, Dl = {
|
|
517
517
|
key: 1,
|
|
518
518
|
class: "checkText"
|
|
519
|
-
},
|
|
519
|
+
}, Il = { class: "iconBox" }, Ml = { class: "name_number" }, El = { class: "title" }, Rl = {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "userCount"
|
|
522
|
-
},
|
|
522
|
+
}, Hl = ["onClick"], jl = {
|
|
523
523
|
key: 1,
|
|
524
524
|
class: "empty"
|
|
525
|
-
},
|
|
525
|
+
}, Wl = /* @__PURE__ */ W({
|
|
526
526
|
__name: "GroupList",
|
|
527
527
|
props: Ue,
|
|
528
528
|
emits: ["change", "check", "handChild"],
|
|
529
529
|
setup(a, { emit: c }) {
|
|
530
530
|
var h, s;
|
|
531
|
-
const e = a,
|
|
531
|
+
const e = a, t = U(!1);
|
|
532
532
|
Z(
|
|
533
533
|
() => e.handList,
|
|
534
534
|
() => {
|
|
535
535
|
var f;
|
|
536
536
|
if (!((f = e.handList) != null && f.length)) {
|
|
537
|
-
|
|
537
|
+
t.value = !1;
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
540
|
const n = e.list.filter(
|
|
541
|
-
(
|
|
541
|
+
(l) => e.chooseType.includes(l[e.fixPropOpt.type].toLowerCase())
|
|
542
542
|
).every(
|
|
543
|
-
(
|
|
544
|
-
(r) => r[e.fixPropOpt.id] ===
|
|
543
|
+
(l) => e.handList.some(
|
|
544
|
+
(r) => r[e.fixPropOpt.id] === l[e.fixPropOpt.id]
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
|
-
|
|
547
|
+
t.value = n;
|
|
548
548
|
},
|
|
549
549
|
{ immediate: !0 }
|
|
550
550
|
);
|
|
551
551
|
const P = S(() => {
|
|
552
|
-
var
|
|
553
|
-
const n = (
|
|
552
|
+
var l, r, O;
|
|
553
|
+
const n = (l = e.handList.filter(
|
|
554
554
|
(m) => e.chooseType.includes(m[e.fixPropOpt.type].toLowerCase())
|
|
555
|
-
)) == null ? void 0 :
|
|
555
|
+
)) == null ? void 0 : l.length, f = e.list.filter(
|
|
556
556
|
(m) => e.chooseType.includes(m[e.fixPropOpt.type].toLowerCase())
|
|
557
557
|
).every(
|
|
558
558
|
(m) => e.handList.some(
|
|
@@ -563,30 +563,30 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
563
563
|
}), y = U(
|
|
564
564
|
e.handList.map((n) => n[e.fixPropOpt.id])
|
|
565
565
|
), _ = U((s = (h = e.handList) == null ? void 0 : h[0]) == null ? void 0 : s[e.fixPropOpt.id]), b = c, M = (n) => {
|
|
566
|
-
const f = n ? e.list.map((
|
|
567
|
-
if (e.chooseType.includes(
|
|
568
|
-
return
|
|
566
|
+
const f = n ? e.list.map((l) => {
|
|
567
|
+
if (e.chooseType.includes(l[e.fixPropOpt.type].toLowerCase()) && l.available !== !1)
|
|
568
|
+
return l[e.fixPropOpt.id];
|
|
569
569
|
}) : [];
|
|
570
570
|
b("change", f, n ? e.list : []);
|
|
571
571
|
}, I = (n) => {
|
|
572
572
|
b("change", n, e.list);
|
|
573
|
-
},
|
|
573
|
+
}, L = (n) => {
|
|
574
574
|
b("change", n, e.list);
|
|
575
575
|
}, R = (n, f) => {
|
|
576
576
|
f || b("handChild", n);
|
|
577
577
|
};
|
|
578
578
|
return (n, f) => {
|
|
579
|
-
const
|
|
579
|
+
const l = de("el-scrollbar");
|
|
580
580
|
return p(), v(
|
|
581
581
|
E,
|
|
582
582
|
null,
|
|
583
583
|
[
|
|
584
584
|
k(" 遍历list多选 "),
|
|
585
|
-
d("div",
|
|
585
|
+
d("div", Al, [
|
|
586
586
|
n.multiple && n.list && n.list.length ? (p(), V(x(ce), {
|
|
587
587
|
key: 0,
|
|
588
|
-
modelValue:
|
|
589
|
-
"onUpdate:modelValue": f[0] || (f[0] = (r) =>
|
|
588
|
+
modelValue: t.value,
|
|
589
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => t.value = r),
|
|
590
590
|
indeterminate: P.value,
|
|
591
591
|
onChange: M
|
|
592
592
|
}, {
|
|
@@ -600,9 +600,9 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
600
600
|
_: 1
|
|
601
601
|
/* STABLE */
|
|
602
602
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
603
|
-
A(
|
|
603
|
+
A(l, null, {
|
|
604
604
|
default: w(() => [
|
|
605
|
-
n.list && n.list.length ? (p(), v("ul",
|
|
605
|
+
n.list && n.list.length ? (p(), v("ul", ml, [
|
|
606
606
|
n.multiple ? (p(), V(x(Oe), {
|
|
607
607
|
key: 0,
|
|
608
608
|
modelValue: y.value,
|
|
@@ -626,8 +626,8 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
626
626
|
disabled: r.available === !1
|
|
627
627
|
}, {
|
|
628
628
|
default: w(() => [
|
|
629
|
-
d("div",
|
|
630
|
-
d("div",
|
|
629
|
+
d("div", gl, [
|
|
630
|
+
d("div", yl, [
|
|
631
631
|
A(G, {
|
|
632
632
|
fixTypeOpt: e.fixTypeOpt,
|
|
633
633
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -635,17 +635,17 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
635
635
|
imageBaseUrl: e.imageBaseUrl
|
|
636
636
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
637
637
|
]),
|
|
638
|
-
d("div",
|
|
638
|
+
d("div", xl, [
|
|
639
639
|
d(
|
|
640
640
|
"div",
|
|
641
|
-
|
|
641
|
+
Ol,
|
|
642
642
|
D(r[e.fixPropOpt.name]),
|
|
643
643
|
1
|
|
644
644
|
/* TEXT */
|
|
645
645
|
),
|
|
646
646
|
r[e.fixPropOpt.type] === e.fixTypeOpt.group ? (p(), v(
|
|
647
647
|
"div",
|
|
648
|
-
|
|
648
|
+
kl,
|
|
649
649
|
" (" + D(r.userCount) + ") ",
|
|
650
650
|
1
|
|
651
651
|
/* TEXT */
|
|
@@ -655,7 +655,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
655
655
|
]),
|
|
656
656
|
_: 2
|
|
657
657
|
/* DYNAMIC */
|
|
658
|
-
}, 1032, ["label", "disabled"])) : (p(), v("div",
|
|
658
|
+
}, 1032, ["label", "disabled"])) : (p(), v("div", Pl, [
|
|
659
659
|
f[4] || (f[4] = d(
|
|
660
660
|
"div",
|
|
661
661
|
{ class: "side" },
|
|
@@ -663,7 +663,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
663
663
|
-1
|
|
664
664
|
/* CACHED */
|
|
665
665
|
)),
|
|
666
|
-
d("div",
|
|
666
|
+
d("div", bl, [
|
|
667
667
|
A(G, {
|
|
668
668
|
fixTypeOpt: e.fixTypeOpt,
|
|
669
669
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -671,7 +671,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
671
671
|
imageBaseUrl: e.imageBaseUrl
|
|
672
672
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
673
673
|
]),
|
|
674
|
-
d("div",
|
|
674
|
+
d("div", wl, [
|
|
675
675
|
d(
|
|
676
676
|
"div",
|
|
677
677
|
Ll,
|
|
@@ -681,7 +681,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
681
681
|
),
|
|
682
682
|
r[e.fixPropOpt.type] === e.fixTypeOpt.group ? (p(), v(
|
|
683
683
|
"div",
|
|
684
|
-
|
|
684
|
+
Cl,
|
|
685
685
|
" (" + D(r.userCount) + ") ",
|
|
686
686
|
1
|
|
687
687
|
/* TEXT */
|
|
@@ -699,10 +699,10 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
699
699
|
var i;
|
|
700
700
|
return R(
|
|
701
701
|
r,
|
|
702
|
-
(i = y.value) == null ? void 0 : i.find((
|
|
702
|
+
(i = y.value) == null ? void 0 : i.find((C) => C === r[e.fixPropOpt.id])
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
|
-
}, " 下级", 10,
|
|
705
|
+
}, " 下级", 10, _l)) : k("v-if", !0)
|
|
706
706
|
]);
|
|
707
707
|
}),
|
|
708
708
|
128
|
|
@@ -716,7 +716,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
716
716
|
isIndeterminate: P.value,
|
|
717
717
|
modelValue: _.value,
|
|
718
718
|
"onUpdate:modelValue": f[2] || (f[2] = (r) => _.value = r),
|
|
719
|
-
onChange:
|
|
719
|
+
onChange: L
|
|
720
720
|
}, {
|
|
721
721
|
default: w(() => [
|
|
722
722
|
(p(!0), v(
|
|
@@ -735,8 +735,8 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
735
735
|
label: r[e.fixPropOpt.id]
|
|
736
736
|
}, {
|
|
737
737
|
default: w(() => [
|
|
738
|
-
d("div",
|
|
739
|
-
d("div",
|
|
738
|
+
d("div", Bl, [
|
|
739
|
+
d("div", Tl, [
|
|
740
740
|
A(G, {
|
|
741
741
|
fixTypeOpt: e.fixTypeOpt,
|
|
742
742
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -744,17 +744,17 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
744
744
|
imageBaseUrl: e.imageBaseUrl
|
|
745
745
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
746
746
|
]),
|
|
747
|
-
d("div",
|
|
747
|
+
d("div", Ul, [
|
|
748
748
|
d(
|
|
749
749
|
"div",
|
|
750
|
-
|
|
750
|
+
Vl,
|
|
751
751
|
D(r[e.fixPropOpt.name]),
|
|
752
752
|
1
|
|
753
753
|
/* TEXT */
|
|
754
754
|
),
|
|
755
755
|
r[e.fixPropOpt.type] === e.fixTypeOpt.group ? (p(), v(
|
|
756
756
|
"div",
|
|
757
|
-
|
|
757
|
+
Sl,
|
|
758
758
|
" (" + D((r == null ? void 0 : r.userCount) || 0) + ") ",
|
|
759
759
|
1
|
|
760
760
|
/* TEXT */
|
|
@@ -764,7 +764,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
764
764
|
]),
|
|
765
765
|
_: 2
|
|
766
766
|
/* DYNAMIC */
|
|
767
|
-
}, 1032, ["label"])) : (p(), v("div",
|
|
767
|
+
}, 1032, ["label"])) : (p(), v("div", Dl, [
|
|
768
768
|
f[5] || (f[5] = d(
|
|
769
769
|
"div",
|
|
770
770
|
{ class: "side" },
|
|
@@ -772,7 +772,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
772
772
|
-1
|
|
773
773
|
/* CACHED */
|
|
774
774
|
)),
|
|
775
|
-
d("div",
|
|
775
|
+
d("div", Il, [
|
|
776
776
|
A(G, {
|
|
777
777
|
fixTypeOpt: e.fixTypeOpt,
|
|
778
778
|
fixPropOpt: e.fixPropOpt,
|
|
@@ -780,17 +780,17 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
780
780
|
imageBaseUrl: e.imageBaseUrl
|
|
781
781
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
782
782
|
]),
|
|
783
|
-
d("div",
|
|
783
|
+
d("div", Ml, [
|
|
784
784
|
d(
|
|
785
785
|
"div",
|
|
786
|
-
|
|
786
|
+
El,
|
|
787
787
|
D(r[e.fixPropOpt.name]),
|
|
788
788
|
1
|
|
789
789
|
/* TEXT */
|
|
790
790
|
),
|
|
791
791
|
r[e.fixPropOpt.type] === e.fixTypeOpt.group ? (p(), v(
|
|
792
792
|
"div",
|
|
793
|
-
|
|
793
|
+
Rl,
|
|
794
794
|
" (" + D(r.userCount) + ") ",
|
|
795
795
|
1
|
|
796
796
|
/* TEXT */
|
|
@@ -808,10 +808,10 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
808
808
|
var i;
|
|
809
809
|
return R(
|
|
810
810
|
r,
|
|
811
|
-
(i = y.value) == null ? void 0 : i.find((
|
|
811
|
+
(i = y.value) == null ? void 0 : i.find((C) => C === r[e.fixPropOpt.id])
|
|
812
812
|
);
|
|
813
813
|
}
|
|
814
|
-
}, " 下级", 10,
|
|
814
|
+
}, " 下级", 10, Hl)) : k("v-if", !0)
|
|
815
815
|
]);
|
|
816
816
|
}),
|
|
817
817
|
128
|
|
@@ -821,7 +821,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
821
821
|
_: 1
|
|
822
822
|
/* STABLE */
|
|
823
823
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
824
|
-
])) : (p(), v("div",
|
|
824
|
+
])) : (p(), v("div", jl, [
|
|
825
825
|
f[6] || (f[6] = d(
|
|
826
826
|
"img",
|
|
827
827
|
{
|
|
@@ -851,30 +851,30 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
851
851
|
);
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
}),
|
|
854
|
+
}), Nl = /* @__PURE__ */ X(Wl, [["__scopeId", "data-v-f7a238bb"]]), Yl = { class: "left-pick-list" }, Gl = {
|
|
855
855
|
key: 0,
|
|
856
856
|
class: "post-view-list"
|
|
857
|
-
},
|
|
857
|
+
}, zl = { class: "iconBox" }, Ql = {
|
|
858
858
|
key: 1,
|
|
859
859
|
class: "checkText"
|
|
860
|
-
},
|
|
860
|
+
}, Fl = { class: "iconBox" }, Xl = { class: "title" }, Kl = { class: "ik-picker-single" }, Zl = { class: "iconBox" }, $l = {
|
|
861
861
|
key: 1,
|
|
862
862
|
class: "checkText"
|
|
863
|
-
},
|
|
863
|
+
}, ql = { class: "iconBox" }, Jl = { class: "title" }, ea = {
|
|
864
864
|
key: 1,
|
|
865
865
|
class: "empty"
|
|
866
|
-
},
|
|
866
|
+
}, ta = /* @__PURE__ */ W({
|
|
867
867
|
__name: "PostList",
|
|
868
868
|
props: Ue,
|
|
869
869
|
emits: ["change", "check"],
|
|
870
870
|
setup(a, { emit: c }) {
|
|
871
871
|
var R, h;
|
|
872
|
-
const e = a,
|
|
872
|
+
const e = a, t = S(() => {
|
|
873
873
|
var s, n;
|
|
874
874
|
return ((s = e.handList) == null ? void 0 : s.length) === ((n = e.list) == null ? void 0 : n.length);
|
|
875
875
|
}), P = S(() => {
|
|
876
|
-
var f,
|
|
877
|
-
const s = (f = e.handList) == null ? void 0 : f.length, n = (
|
|
876
|
+
var f, l, r, O;
|
|
877
|
+
const s = (f = e.handList) == null ? void 0 : f.length, n = (l = e.list) == null ? void 0 : l.length;
|
|
878
878
|
return e.multiple ? y.value = e.handList.map((m) => m[e.fixPropOpt.id]) : _.value = (O = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : O[e.fixPropOpt.id], s > 0 && s < n;
|
|
879
879
|
}), y = U(
|
|
880
880
|
e.handList.map((s) => s[e.fixPropOpt.id])
|
|
@@ -883,7 +883,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
883
883
|
b("change", n, s ? e.list : []);
|
|
884
884
|
}, I = (s) => {
|
|
885
885
|
b("change", s, e.list);
|
|
886
|
-
},
|
|
886
|
+
}, L = (s) => {
|
|
887
887
|
b("change", s, e.list);
|
|
888
888
|
};
|
|
889
889
|
return (s, n) => {
|
|
@@ -893,11 +893,11 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
893
893
|
null,
|
|
894
894
|
[
|
|
895
895
|
k(" 遍历list多选 "),
|
|
896
|
-
d("div",
|
|
896
|
+
d("div", Yl, [
|
|
897
897
|
s.multiple && s.chooseType.includes("post") && s.list && s.list.length ? (p(), V(x(ce), {
|
|
898
898
|
key: 0,
|
|
899
|
-
modelValue:
|
|
900
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
899
|
+
modelValue: t.value,
|
|
900
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => t.value = l),
|
|
901
901
|
indeterminate: P.value,
|
|
902
902
|
onChange: M
|
|
903
903
|
}, {
|
|
@@ -913,44 +913,44 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
913
913
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
914
914
|
A(f, null, {
|
|
915
915
|
default: w(() => [
|
|
916
|
-
s.list && s.list.length ? (p(), v("ul",
|
|
916
|
+
s.list && s.list.length ? (p(), v("ul", Gl, [
|
|
917
917
|
s.multiple ? (p(), V(x(Oe), {
|
|
918
918
|
key: 0,
|
|
919
919
|
modelValue: y.value,
|
|
920
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
920
|
+
"onUpdate:modelValue": n[1] || (n[1] = (l) => y.value = l),
|
|
921
921
|
onChange: I
|
|
922
922
|
}, {
|
|
923
923
|
default: w(() => [
|
|
924
924
|
(p(!0), v(
|
|
925
925
|
E,
|
|
926
926
|
null,
|
|
927
|
-
te(s.list, (
|
|
928
|
-
key:
|
|
927
|
+
te(s.list, (l) => (p(), v("li", {
|
|
928
|
+
key: l[e.fixPropOpt.id]
|
|
929
929
|
}, [
|
|
930
|
-
s.chooseType.includes(
|
|
930
|
+
s.chooseType.includes(l[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(ce), {
|
|
931
931
|
key: 0,
|
|
932
|
-
label:
|
|
932
|
+
label: l[e.fixPropOpt.id]
|
|
933
933
|
}, {
|
|
934
934
|
default: w(() => [
|
|
935
|
-
d("div",
|
|
935
|
+
d("div", zl, [
|
|
936
936
|
A(G, {
|
|
937
937
|
fixTypeOpt: e.fixTypeOpt,
|
|
938
938
|
fixPropOpt: e.fixPropOpt,
|
|
939
|
-
element:
|
|
939
|
+
element: l,
|
|
940
940
|
imageBaseUrl: e.imageBaseUrl
|
|
941
941
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
942
942
|
]),
|
|
943
943
|
d(
|
|
944
944
|
"p",
|
|
945
945
|
null,
|
|
946
|
-
D(
|
|
946
|
+
D(l[e.fixPropOpt.name]),
|
|
947
947
|
1
|
|
948
948
|
/* TEXT */
|
|
949
949
|
)
|
|
950
950
|
]),
|
|
951
951
|
_: 2
|
|
952
952
|
/* DYNAMIC */
|
|
953
|
-
}, 1032, ["label"])) : (p(), v("div",
|
|
953
|
+
}, 1032, ["label"])) : (p(), v("div", Ql, [
|
|
954
954
|
n[4] || (n[4] = d(
|
|
955
955
|
"div",
|
|
956
956
|
{ class: "side" },
|
|
@@ -958,18 +958,18 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
958
958
|
-1
|
|
959
959
|
/* CACHED */
|
|
960
960
|
)),
|
|
961
|
-
d("div",
|
|
961
|
+
d("div", Fl, [
|
|
962
962
|
A(G, {
|
|
963
963
|
fixTypeOpt: e.fixTypeOpt,
|
|
964
964
|
fixPropOpt: e.fixPropOpt,
|
|
965
|
-
element:
|
|
965
|
+
element: l,
|
|
966
966
|
imageBaseUrl: e.imageBaseUrl
|
|
967
967
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
968
968
|
]),
|
|
969
969
|
d(
|
|
970
970
|
"div",
|
|
971
|
-
|
|
972
|
-
D(
|
|
971
|
+
Xl,
|
|
972
|
+
D(l[e.fixPropOpt.name]),
|
|
973
973
|
1
|
|
974
974
|
/* TEXT */
|
|
975
975
|
)
|
|
@@ -985,35 +985,35 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
985
985
|
key: 1,
|
|
986
986
|
isIndeterminate: P.value,
|
|
987
987
|
modelValue: _.value,
|
|
988
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
989
|
-
onChange:
|
|
988
|
+
"onUpdate:modelValue": n[2] || (n[2] = (l) => _.value = l),
|
|
989
|
+
onChange: L
|
|
990
990
|
}, {
|
|
991
991
|
default: w(() => [
|
|
992
992
|
(p(!0), v(
|
|
993
993
|
E,
|
|
994
994
|
null,
|
|
995
|
-
te(s.list, (
|
|
995
|
+
te(s.list, (l) => (p(), v("li", {
|
|
996
996
|
class: "w-full",
|
|
997
|
-
key:
|
|
997
|
+
key: l[e.fixPropOpt.id]
|
|
998
998
|
}, [
|
|
999
|
-
s.chooseType.includes(
|
|
999
|
+
s.chooseType.includes(l[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(Pe), {
|
|
1000
1000
|
key: 0,
|
|
1001
|
-
label:
|
|
1001
|
+
label: l[e.fixPropOpt.id]
|
|
1002
1002
|
}, {
|
|
1003
1003
|
default: w(() => [
|
|
1004
|
-
d("div",
|
|
1005
|
-
d("div",
|
|
1004
|
+
d("div", Kl, [
|
|
1005
|
+
d("div", Zl, [
|
|
1006
1006
|
A(G, {
|
|
1007
1007
|
fixTypeOpt: e.fixTypeOpt,
|
|
1008
1008
|
fixPropOpt: e.fixPropOpt,
|
|
1009
|
-
element:
|
|
1009
|
+
element: l,
|
|
1010
1010
|
imageBaseUrl: e.imageBaseUrl
|
|
1011
1011
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1012
1012
|
]),
|
|
1013
1013
|
d(
|
|
1014
1014
|
"p",
|
|
1015
1015
|
null,
|
|
1016
|
-
D(
|
|
1016
|
+
D(l[e.fixPropOpt.name]),
|
|
1017
1017
|
1
|
|
1018
1018
|
/* TEXT */
|
|
1019
1019
|
)
|
|
@@ -1021,7 +1021,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1021
1021
|
]),
|
|
1022
1022
|
_: 2
|
|
1023
1023
|
/* DYNAMIC */
|
|
1024
|
-
}, 1032, ["label"])) : (p(), v("div",
|
|
1024
|
+
}, 1032, ["label"])) : (p(), v("div", $l, [
|
|
1025
1025
|
n[5] || (n[5] = d(
|
|
1026
1026
|
"div",
|
|
1027
1027
|
{ class: "side" },
|
|
@@ -1029,18 +1029,18 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1029
1029
|
-1
|
|
1030
1030
|
/* CACHED */
|
|
1031
1031
|
)),
|
|
1032
|
-
d("div",
|
|
1032
|
+
d("div", ql, [
|
|
1033
1033
|
A(G, {
|
|
1034
1034
|
fixTypeOpt: e.fixTypeOpt,
|
|
1035
1035
|
fixPropOpt: e.fixPropOpt,
|
|
1036
|
-
element:
|
|
1036
|
+
element: l,
|
|
1037
1037
|
imageBaseUrl: e.imageBaseUrl
|
|
1038
1038
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1039
1039
|
]),
|
|
1040
1040
|
d(
|
|
1041
1041
|
"div",
|
|
1042
|
-
|
|
1043
|
-
D(
|
|
1042
|
+
Jl,
|
|
1043
|
+
D(l[e.fixPropOpt.name]),
|
|
1044
1044
|
1
|
|
1045
1045
|
/* TEXT */
|
|
1046
1046
|
)
|
|
@@ -1053,7 +1053,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
/* STABLE */
|
|
1055
1055
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
1056
|
-
])) : (p(), v("div",
|
|
1056
|
+
])) : (p(), v("div", ea, [
|
|
1057
1057
|
n[6] || (n[6] = d(
|
|
1058
1058
|
"img",
|
|
1059
1059
|
{
|
|
@@ -1083,30 +1083,30 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1083
1083
|
);
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
|
-
}),
|
|
1086
|
+
}), la = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-ab605706"]]), aa = { class: "left-pick-list" }, oa = {
|
|
1087
1087
|
key: 0,
|
|
1088
1088
|
class: "role-view-list"
|
|
1089
|
-
},
|
|
1089
|
+
}, sa = { class: "iconBox" }, na = ["title"], ra = {
|
|
1090
1090
|
key: 1,
|
|
1091
1091
|
class: "checkText"
|
|
1092
|
-
},
|
|
1092
|
+
}, ia = { class: "iconBox" }, ua = ["title"], pa = { class: "ik-picker-single" }, da = { class: "iconBox" }, ca = ["title"], fa = {
|
|
1093
1093
|
key: 1,
|
|
1094
1094
|
class: "checkText"
|
|
1095
|
-
},
|
|
1095
|
+
}, ha = { class: "iconBox" }, va = ["title"], Aa = {
|
|
1096
1096
|
key: 1,
|
|
1097
1097
|
class: "empty"
|
|
1098
|
-
},
|
|
1098
|
+
}, ma = /* @__PURE__ */ W({
|
|
1099
1099
|
__name: "RoleList",
|
|
1100
1100
|
props: Ue,
|
|
1101
1101
|
emits: ["change", "check"],
|
|
1102
1102
|
setup(a, { emit: c }) {
|
|
1103
1103
|
var R, h;
|
|
1104
|
-
const e = a,
|
|
1104
|
+
const e = a, t = S(() => {
|
|
1105
1105
|
var s, n;
|
|
1106
1106
|
return ((s = e.handList) == null ? void 0 : s.length) === ((n = e.list) == null ? void 0 : n.length);
|
|
1107
1107
|
}), P = S(() => {
|
|
1108
|
-
var f,
|
|
1109
|
-
const s = (f = e.handList) == null ? void 0 : f.length, n = (
|
|
1108
|
+
var f, l, r, O;
|
|
1109
|
+
const s = (f = e.handList) == null ? void 0 : f.length, n = (l = e.list) == null ? void 0 : l.length;
|
|
1110
1110
|
return e.multiple ? y.value = e.handList.map((m) => m[e.fixPropOpt.id]) : _.value = (O = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : O[e.fixPropOpt.id], s > 0 && s < n;
|
|
1111
1111
|
}), y = U(
|
|
1112
1112
|
e.handList.map((s) => s[e.fixPropOpt.id])
|
|
@@ -1115,7 +1115,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1115
1115
|
b("change", n, s ? e.list : []);
|
|
1116
1116
|
}, I = (s) => {
|
|
1117
1117
|
b("change", s, e.list);
|
|
1118
|
-
},
|
|
1118
|
+
}, L = (s) => {
|
|
1119
1119
|
b("change", s, e.list);
|
|
1120
1120
|
};
|
|
1121
1121
|
return (s, n) => {
|
|
@@ -1125,11 +1125,11 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1125
1125
|
null,
|
|
1126
1126
|
[
|
|
1127
1127
|
k(" 遍历list多选 "),
|
|
1128
|
-
d("div",
|
|
1128
|
+
d("div", aa, [
|
|
1129
1129
|
s.multiple && s.chooseType.includes("role") && s.list && s.list.length ? (p(), V(x(ce), {
|
|
1130
1130
|
key: 0,
|
|
1131
|
-
modelValue:
|
|
1132
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1131
|
+
modelValue: t.value,
|
|
1132
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => t.value = l),
|
|
1133
1133
|
indeterminate: P.value,
|
|
1134
1134
|
onChange: M
|
|
1135
1135
|
}, {
|
|
@@ -1145,42 +1145,42 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1145
1145
|
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
1146
1146
|
A(f, null, {
|
|
1147
1147
|
default: w(() => [
|
|
1148
|
-
s.list && s.list.length ? (p(), v("ul",
|
|
1148
|
+
s.list && s.list.length ? (p(), v("ul", oa, [
|
|
1149
1149
|
s.multiple ? (p(), V(x(Oe), {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
modelValue: y.value,
|
|
1152
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1152
|
+
"onUpdate:modelValue": n[1] || (n[1] = (l) => y.value = l),
|
|
1153
1153
|
onChange: I
|
|
1154
1154
|
}, {
|
|
1155
1155
|
default: w(() => [
|
|
1156
1156
|
(p(!0), v(
|
|
1157
1157
|
E,
|
|
1158
1158
|
null,
|
|
1159
|
-
te(s.list, (
|
|
1160
|
-
key:
|
|
1159
|
+
te(s.list, (l) => (p(), v("li", {
|
|
1160
|
+
key: l[s.fixPropOpt.id]
|
|
1161
1161
|
}, [
|
|
1162
|
-
s.chooseType.includes(
|
|
1162
|
+
s.chooseType.includes(l[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(ce), {
|
|
1163
1163
|
key: 0,
|
|
1164
|
-
label:
|
|
1165
|
-
value:
|
|
1166
|
-
disabled:
|
|
1164
|
+
label: l[s.fixPropOpt.id],
|
|
1165
|
+
value: l[s.fixPropOpt.id],
|
|
1166
|
+
disabled: l.disabled
|
|
1167
1167
|
}, {
|
|
1168
1168
|
default: w(() => [
|
|
1169
|
-
d("div",
|
|
1169
|
+
d("div", sa, [
|
|
1170
1170
|
A(G, {
|
|
1171
1171
|
fixTypeOpt: e.fixTypeOpt,
|
|
1172
1172
|
fixPropOpt: e.fixPropOpt,
|
|
1173
|
-
element:
|
|
1173
|
+
element: l,
|
|
1174
1174
|
imageBaseUrl: e.imageBaseUrl
|
|
1175
1175
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1176
1176
|
]),
|
|
1177
1177
|
d("p", {
|
|
1178
|
-
title:
|
|
1179
|
-
}, D(
|
|
1178
|
+
title: l[s.fixPropOpt.name]
|
|
1179
|
+
}, D(l[s.fixPropOpt.name]), 9, na)
|
|
1180
1180
|
]),
|
|
1181
1181
|
_: 2
|
|
1182
1182
|
/* DYNAMIC */
|
|
1183
|
-
}, 1032, ["label", "value", "disabled"])) : (p(), v("div",
|
|
1183
|
+
}, 1032, ["label", "value", "disabled"])) : (p(), v("div", ra, [
|
|
1184
1184
|
n[4] || (n[4] = d(
|
|
1185
1185
|
"div",
|
|
1186
1186
|
{ class: "side" },
|
|
@@ -1188,18 +1188,18 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1188
1188
|
-1
|
|
1189
1189
|
/* CACHED */
|
|
1190
1190
|
)),
|
|
1191
|
-
d("div",
|
|
1191
|
+
d("div", ia, [
|
|
1192
1192
|
A(G, {
|
|
1193
1193
|
fixTypeOpt: e.fixTypeOpt,
|
|
1194
1194
|
fixPropOpt: e.fixPropOpt,
|
|
1195
|
-
element:
|
|
1195
|
+
element: l,
|
|
1196
1196
|
imageBaseUrl: e.imageBaseUrl
|
|
1197
1197
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1198
1198
|
]),
|
|
1199
1199
|
d("div", {
|
|
1200
1200
|
class: "title",
|
|
1201
|
-
title:
|
|
1202
|
-
}, D(
|
|
1201
|
+
title: l[s.fixPropOpt.name]
|
|
1202
|
+
}, D(l[s.fixPropOpt.name]), 9, ua)
|
|
1203
1203
|
]))
|
|
1204
1204
|
]))),
|
|
1205
1205
|
128
|
|
@@ -1212,41 +1212,41 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1212
1212
|
key: 1,
|
|
1213
1213
|
indeterminate: P.value,
|
|
1214
1214
|
modelValue: _.value,
|
|
1215
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1216
|
-
onChange:
|
|
1215
|
+
"onUpdate:modelValue": n[2] || (n[2] = (l) => _.value = l),
|
|
1216
|
+
onChange: L
|
|
1217
1217
|
}, {
|
|
1218
1218
|
default: w(() => [
|
|
1219
1219
|
(p(!0), v(
|
|
1220
1220
|
E,
|
|
1221
1221
|
null,
|
|
1222
|
-
te(s.list, (
|
|
1222
|
+
te(s.list, (l) => (p(), v("li", {
|
|
1223
1223
|
class: "w-full",
|
|
1224
|
-
key:
|
|
1224
|
+
key: l[s.fixPropOpt.id]
|
|
1225
1225
|
}, [
|
|
1226
|
-
s.chooseType.includes(
|
|
1226
|
+
s.chooseType.includes(l[e.fixPropOpt.type].toLowerCase()) ? (p(), V(x(Pe), {
|
|
1227
1227
|
key: 0,
|
|
1228
|
-
label:
|
|
1229
|
-
value:
|
|
1230
|
-
disabled:
|
|
1228
|
+
label: l[s.fixPropOpt.id],
|
|
1229
|
+
value: l[s.fixPropOpt.id],
|
|
1230
|
+
disabled: l.disabled
|
|
1231
1231
|
}, {
|
|
1232
1232
|
default: w(() => [
|
|
1233
|
-
d("div",
|
|
1234
|
-
d("div",
|
|
1233
|
+
d("div", pa, [
|
|
1234
|
+
d("div", da, [
|
|
1235
1235
|
A(G, {
|
|
1236
1236
|
fixTypeOpt: e.fixTypeOpt,
|
|
1237
1237
|
fixPropOpt: e.fixPropOpt,
|
|
1238
|
-
element:
|
|
1238
|
+
element: l,
|
|
1239
1239
|
imageBaseUrl: e.imageBaseUrl
|
|
1240
1240
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1241
1241
|
]),
|
|
1242
1242
|
d("p", {
|
|
1243
|
-
title:
|
|
1244
|
-
}, D(
|
|
1243
|
+
title: l[s.fixPropOpt.name]
|
|
1244
|
+
}, D(l[s.fixPropOpt.name]), 9, ca)
|
|
1245
1245
|
])
|
|
1246
1246
|
]),
|
|
1247
1247
|
_: 2
|
|
1248
1248
|
/* DYNAMIC */
|
|
1249
|
-
}, 1032, ["label", "value", "disabled"])) : (p(), v("div",
|
|
1249
|
+
}, 1032, ["label", "value", "disabled"])) : (p(), v("div", fa, [
|
|
1250
1250
|
n[5] || (n[5] = d(
|
|
1251
1251
|
"div",
|
|
1252
1252
|
{ class: "side" },
|
|
@@ -1254,18 +1254,18 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1254
1254
|
-1
|
|
1255
1255
|
/* CACHED */
|
|
1256
1256
|
)),
|
|
1257
|
-
d("div",
|
|
1257
|
+
d("div", ha, [
|
|
1258
1258
|
A(G, {
|
|
1259
1259
|
fixTypeOpt: e.fixTypeOpt,
|
|
1260
1260
|
fixPropOpt: e.fixPropOpt,
|
|
1261
|
-
element:
|
|
1261
|
+
element: l,
|
|
1262
1262
|
imageBaseUrl: e.imageBaseUrl
|
|
1263
1263
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1264
1264
|
]),
|
|
1265
1265
|
d("div", {
|
|
1266
1266
|
class: "title",
|
|
1267
|
-
title:
|
|
1268
|
-
}, D(
|
|
1267
|
+
title: l[s.fixPropOpt.name]
|
|
1268
|
+
}, D(l[s.fixPropOpt.name]), 9, va)
|
|
1269
1269
|
]))
|
|
1270
1270
|
]))),
|
|
1271
1271
|
128
|
|
@@ -1275,7 +1275,7 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
/* STABLE */
|
|
1277
1277
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1278
|
-
])) : (p(), v("div",
|
|
1278
|
+
])) : (p(), v("div", Aa, [
|
|
1279
1279
|
n[6] || (n[6] = d(
|
|
1280
1280
|
"img",
|
|
1281
1281
|
{
|
|
@@ -1305,9 +1305,9 @@ const cl = /* @__PURE__ */ X(ul, [["render", dl]]), fl = { class: "avatar" }, hl
|
|
|
1305
1305
|
);
|
|
1306
1306
|
};
|
|
1307
1307
|
}
|
|
1308
|
-
}),
|
|
1309
|
-
var
|
|
1310
|
-
const
|
|
1308
|
+
}), ga = /* @__PURE__ */ X(ma, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1309
|
+
var ge = /* @__PURE__ */ ((a) => (a.group = "group", a.role = "role", a.post = "post", a))(ge || {});
|
|
1310
|
+
const ya = {
|
|
1311
1311
|
// 是否允许选择子集
|
|
1312
1312
|
children: {
|
|
1313
1313
|
type: Boolean,
|
|
@@ -1474,34 +1474,39 @@ const xa = {
|
|
|
1474
1474
|
rootDepartmentOnly: {
|
|
1475
1475
|
type: Boolean,
|
|
1476
1476
|
default: !1
|
|
1477
|
+
},
|
|
1478
|
+
// 是否开启调试模式
|
|
1479
|
+
debug: {
|
|
1480
|
+
type: Boolean,
|
|
1481
|
+
default: !1
|
|
1477
1482
|
}
|
|
1478
|
-
},
|
|
1483
|
+
}, Re = (a) => {
|
|
1479
1484
|
const c = window.location.search;
|
|
1480
1485
|
return new URLSearchParams(c).get(a);
|
|
1481
|
-
},
|
|
1486
|
+
}, xa = (a) => {
|
|
1482
1487
|
const c = Be.local.getItem("x_domain");
|
|
1483
1488
|
c && (a["X-DOMAIN"] = c);
|
|
1484
|
-
},
|
|
1489
|
+
}, Oa = (a) => {
|
|
1485
1490
|
var e;
|
|
1486
|
-
const c =
|
|
1491
|
+
const c = Re("domain");
|
|
1487
1492
|
if (c) {
|
|
1488
1493
|
a["X-DOMAIN"] = c;
|
|
1489
|
-
const
|
|
1490
|
-
c === "APPLICATION" && (a["X-APP"] =
|
|
1494
|
+
const t = Re("code");
|
|
1495
|
+
c === "APPLICATION" && (a["X-APP"] = t);
|
|
1491
1496
|
} else
|
|
1492
|
-
|
|
1497
|
+
xa(a);
|
|
1493
1498
|
(e = Be.local.getItem("tenant")) == null || e.code;
|
|
1494
|
-
},
|
|
1495
|
-
const e = U([]),
|
|
1499
|
+
}, ka = (a, c) => {
|
|
1500
|
+
const e = U([]), t = async (y, _) => {
|
|
1496
1501
|
var F, j, z;
|
|
1497
|
-
const { url: b, methods: M, headers: I, param:
|
|
1502
|
+
const { url: b, methods: M, headers: I, param: L } = a.value || {}, R = {
|
|
1498
1503
|
// 额外参数
|
|
1499
1504
|
rootDepartmentId: ((F = Be.local.getItem("now_shop")) == null ? void 0 : F.storeId) || "",
|
|
1500
1505
|
parentDepartmentId: y || "",
|
|
1501
1506
|
name: _ || "",
|
|
1502
1507
|
rootDepartmentOnly: c.rootDepartmentOnly,
|
|
1503
1508
|
dataScopeOnly: c.dataScopeOnly,
|
|
1504
|
-
...
|
|
1509
|
+
...L || {}
|
|
1505
1510
|
}, h = {
|
|
1506
1511
|
method: M,
|
|
1507
1512
|
url: b,
|
|
@@ -1511,7 +1516,7 @@ const xa = {
|
|
|
1511
1516
|
},
|
|
1512
1517
|
data: JSON.stringify(R)
|
|
1513
1518
|
};
|
|
1514
|
-
|
|
1519
|
+
Oa(h.headers);
|
|
1515
1520
|
const s = await Lt(h), { success: n, data: f } = s.data;
|
|
1516
1521
|
if (!n)
|
|
1517
1522
|
return {
|
|
@@ -1523,13 +1528,13 @@ const xa = {
|
|
|
1523
1528
|
rootDepartment: {}
|
|
1524
1529
|
};
|
|
1525
1530
|
const {
|
|
1526
|
-
departments:
|
|
1531
|
+
departments: l,
|
|
1527
1532
|
roles: r,
|
|
1528
1533
|
posts: O,
|
|
1529
1534
|
users: m,
|
|
1530
1535
|
rootOrganization: i,
|
|
1531
|
-
rootDepartment:
|
|
1532
|
-
} = f, H = i ||
|
|
1536
|
+
rootDepartment: C
|
|
1537
|
+
} = f, H = i || C;
|
|
1533
1538
|
return e.value.length === 0 && (e.value[0] = c.org ? {
|
|
1534
1539
|
...c.org,
|
|
1535
1540
|
id: c.elementId,
|
|
@@ -1538,37 +1543,34 @@ const xa = {
|
|
|
1538
1543
|
...H,
|
|
1539
1544
|
id: H.elementId
|
|
1540
1545
|
}), {
|
|
1541
|
-
groupList: ee.cloneDeep(
|
|
1546
|
+
groupList: ee.cloneDeep(l),
|
|
1542
1547
|
roleList: ee.cloneDeep(r),
|
|
1543
1548
|
postList: ee.cloneDeep(O),
|
|
1544
1549
|
userList: ee.cloneDeep(m),
|
|
1545
1550
|
rootOrganization: i,
|
|
1546
|
-
rootDepartment:
|
|
1551
|
+
rootDepartment: C
|
|
1547
1552
|
};
|
|
1548
1553
|
};
|
|
1549
1554
|
return {
|
|
1550
|
-
handData:
|
|
1555
|
+
handData: t,
|
|
1551
1556
|
handSetChild: (y, _) => {
|
|
1552
|
-
|
|
1557
|
+
t(y == null ? void 0 : y.elementId, _);
|
|
1553
1558
|
},
|
|
1554
1559
|
bannerList: e
|
|
1555
1560
|
};
|
|
1556
|
-
},
|
|
1561
|
+
}, Pa = {
|
|
1557
1562
|
shadow: "hover",
|
|
1558
1563
|
class: "sel-list"
|
|
1559
|
-
},
|
|
1564
|
+
}, ba = { key: 0 }, wa = { class: "choose-list" }, La = { class: "choose-item" }, Ca = { class: "list-group-item draggable-item" }, _a = { class: "item_info" }, Ba = { class: "avatar_box" }, Ta = { class: "dialog-footer" }, Ua = /* @__PURE__ */ W({
|
|
1560
1565
|
__name: "picker",
|
|
1561
|
-
props:
|
|
1566
|
+
props: ya,
|
|
1562
1567
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1563
1568
|
setup(a, { expose: c, emit: e }) {
|
|
1564
|
-
|
|
1565
|
-
v57dba46f: De.value
|
|
1566
|
-
}));
|
|
1567
|
-
const l = a, P = U(""), y = U(""), _ = U([]), b = U([]), M = U([]), I = U([]), C = U(!1), R = S(() => z.value.includes("user") ? b.value.concat(_.value) : b.value);
|
|
1569
|
+
const t = a, P = U(""), y = U(""), _ = U([]), b = U([]), M = U([]), I = U([]), L = U(!1), R = S(() => z.value.includes("user") ? b.value.concat(_.value) : b.value);
|
|
1568
1570
|
Z(
|
|
1569
|
-
() =>
|
|
1571
|
+
() => t.api,
|
|
1570
1572
|
() => {
|
|
1571
|
-
|
|
1573
|
+
t.show && F("");
|
|
1572
1574
|
}
|
|
1573
1575
|
);
|
|
1574
1576
|
const h = S(() => ({
|
|
@@ -1576,47 +1578,47 @@ const xa = {
|
|
|
1576
1578
|
type: "type",
|
|
1577
1579
|
id: "id",
|
|
1578
1580
|
avatar: "avatar",
|
|
1579
|
-
...
|
|
1581
|
+
...t.propOption
|
|
1580
1582
|
})), s = S(() => ({
|
|
1581
1583
|
user: "USER",
|
|
1582
1584
|
role: "ROLE",
|
|
1583
1585
|
post: "POST",
|
|
1584
1586
|
group: "DEPT",
|
|
1585
|
-
...
|
|
1586
|
-
})), n = U([]), f =
|
|
1587
|
-
|
|
1587
|
+
...t.typeOption
|
|
1588
|
+
})), n = U([]), f = ka(ot(t, "api"), t), l = f.handData, r = f.bannerList;
|
|
1589
|
+
t.immediate && l(y.value, P.value);
|
|
1588
1590
|
const O = (o) => (o.forEach((u) => {
|
|
1589
1591
|
var g, B;
|
|
1590
|
-
u.disabled = ((B = (g =
|
|
1592
|
+
u.disabled = ((B = (g = t.modelValue) == null ? void 0 : g.find(
|
|
1591
1593
|
(Q) => Q[h.value.id] === u[h.value.id]
|
|
1592
1594
|
)) == null ? void 0 : B.disabled) || !1;
|
|
1593
1595
|
}), o), m = async () => {
|
|
1594
|
-
var o, u, g, B, Q, T,
|
|
1595
|
-
|
|
1596
|
+
var o, u, g, B, Q, T, ve, Ce;
|
|
1597
|
+
L.value = !0;
|
|
1596
1598
|
try {
|
|
1597
|
-
if ((o =
|
|
1598
|
-
_.value = (Q =
|
|
1599
|
+
if ((o = t.groupList) != null && o.length || (u = t.userList) != null && u.length || (g = t.roleList) != null && g.length || (B = t.postList) != null && B.length) {
|
|
1600
|
+
_.value = (Q = t.userList) == null ? void 0 : Q.filter(
|
|
1599
1601
|
(q) => q[h.value.name].includes(P.value)
|
|
1600
|
-
), b.value = (T =
|
|
1602
|
+
), b.value = (T = t.groupList) == null ? void 0 : T.filter(
|
|
1601
1603
|
(q) => q[h.value.name].includes(P.value)
|
|
1602
|
-
), M.value = (
|
|
1604
|
+
), M.value = (ve = t.roleList) == null ? void 0 : ve.filter(
|
|
1603
1605
|
(q) => q[h.value.name].includes(P.value)
|
|
1604
|
-
), I.value = (
|
|
1606
|
+
), I.value = (Ce = t.postList) == null ? void 0 : Ce.filter(
|
|
1605
1607
|
(q) => q[h.value.name].includes(P.value)
|
|
1606
|
-
), N(),
|
|
1608
|
+
), N(), L.value = !1;
|
|
1607
1609
|
return;
|
|
1608
1610
|
}
|
|
1609
|
-
const Y = await
|
|
1611
|
+
const Y = await l(y.value, P.value);
|
|
1610
1612
|
try {
|
|
1611
1613
|
_.value = O((Y == null ? void 0 : Y.userList) || []), b.value = O((Y == null ? void 0 : Y.groupList) || []), M.value = O((Y == null ? void 0 : Y.roleList) || []), I.value = O((Y == null ? void 0 : Y.postList) || []);
|
|
1612
1614
|
} catch (q) {
|
|
1613
|
-
|
|
1615
|
+
L.value = !1, console.info("error: ", q);
|
|
1614
1616
|
}
|
|
1615
|
-
N(),
|
|
1617
|
+
N(), L.value = !1;
|
|
1616
1618
|
} catch {
|
|
1617
|
-
|
|
1619
|
+
L.value = !1;
|
|
1618
1620
|
}
|
|
1619
|
-
}, i =
|
|
1621
|
+
}, i = De({
|
|
1620
1622
|
group: /* @__PURE__ */ new Map(),
|
|
1621
1623
|
// 组织架构选中项 Map<id, item>
|
|
1622
1624
|
user: /* @__PURE__ */ new Map(),
|
|
@@ -1629,12 +1631,12 @@ const xa = {
|
|
|
1629
1631
|
// 当前页面已选项的 ID 数组(用于多选状态管理)
|
|
1630
1632
|
single: ""
|
|
1631
1633
|
// 单选模式下选中的项 ID
|
|
1632
|
-
}),
|
|
1634
|
+
}), C = De({
|
|
1633
1635
|
indeterminate: !1,
|
|
1634
1636
|
// 半选状态
|
|
1635
1637
|
checkAll: 0
|
|
1636
1638
|
// 全选状态(0: 未选, 1: 全选)
|
|
1637
|
-
}), H = (o) => i.group.has(o) || i.user.has(o) || i.role.has(o) || i.post.has(o), F =
|
|
1639
|
+
}), H = (o) => i.group.has(o) || i.user.has(o) || i.role.has(o) || i.post.has(o), F = bt.debounce(m, 300), j = S(() => {
|
|
1638
1640
|
const o = Array.from(i.group.values()), u = Array.from(i.role.values()), g = Array.from(i.user.values()), B = Array.from(i.post.values());
|
|
1639
1641
|
return n.value = [...u, ...B, ...g, ...o], {
|
|
1640
1642
|
list: [...u, ...g, ...B, ...o],
|
|
@@ -1657,52 +1659,52 @@ const xa = {
|
|
|
1657
1659
|
}
|
|
1658
1660
|
};
|
|
1659
1661
|
}), z = S(() => {
|
|
1660
|
-
const o =
|
|
1662
|
+
const o = t.chooseType.map((g) => g.toLocaleLowerCase());
|
|
1661
1663
|
let u = [...o];
|
|
1662
1664
|
return o.includes("dep") && (u = [...u, "dept"]), o.includes("dep_user") && (u = [...u, "user"]), u;
|
|
1663
|
-
}), K = U([]),
|
|
1665
|
+
}), K = U([]), he = (o) => {
|
|
1664
1666
|
K.value = o, K.value.forEach((u) => {
|
|
1665
1667
|
u.readonly = u == null ? void 0 : u.disabled;
|
|
1666
1668
|
});
|
|
1667
1669
|
}, le = e, se = U(!1), N = (o = !1) => {
|
|
1668
1670
|
var g;
|
|
1669
|
-
const u = (g =
|
|
1670
|
-
return !o &&
|
|
1671
|
+
const u = (g = t == null ? void 0 : t.userList) != null && g.length ? ee.cloneDeep([...t == null ? void 0 : t.userList, ...t == null ? void 0 : t.groupList]) : [...b.value, ..._.value];
|
|
1672
|
+
return !o && he(u), u;
|
|
1671
1673
|
};
|
|
1672
1674
|
Z(
|
|
1673
|
-
() =>
|
|
1675
|
+
() => t.show,
|
|
1674
1676
|
async (o) => {
|
|
1675
1677
|
var u;
|
|
1676
1678
|
if (se.value = o, o) {
|
|
1677
|
-
y.value = ((u =
|
|
1679
|
+
y.value = ((u = t.org) == null ? void 0 : u.elementId) || t.orgPid, !t.userList.length && !t.groupList.length && !t.roleList.length && !t.postList.length ? await m() : (_.value = t.userList, b.value = t.groupList, M.value = t.roleList, I.value = t.postList), i.trans = [], C.checkAll = 0, C.indeterminate = !1;
|
|
1678
1680
|
const g = N(!0);
|
|
1679
1681
|
for (const Q of g)
|
|
1680
1682
|
H(Q[h.value.id]) && i.trans.push(Q[h.value.id]);
|
|
1681
1683
|
const B = g.length === i.trans.length;
|
|
1682
|
-
|
|
1684
|
+
C.indeterminate = !!(g.length && !B), C.checkAll = Number(g.length && B), Ie(() => {
|
|
1683
1685
|
var Q;
|
|
1684
|
-
(Q =
|
|
1685
|
-
ne(T),
|
|
1686
|
+
(Q = t.modelValue) != null && Q.length ? t.modelValue.forEach((T) => {
|
|
1687
|
+
ne(T), t.multiple ? i.trans.push(T[h.value.id]) : i.single = T[h.value.id];
|
|
1686
1688
|
}) : ie();
|
|
1687
1689
|
});
|
|
1688
1690
|
} else
|
|
1689
1691
|
ie();
|
|
1690
1692
|
}
|
|
1691
|
-
),
|
|
1693
|
+
), Me(() => {
|
|
1692
1694
|
let o = K.value.length;
|
|
1693
1695
|
const u = i.trans.length;
|
|
1694
|
-
|
|
1696
|
+
C.indeterminate = i.trans.length ? u !== o : !1, C.checkAll = +(o !== 0 && u === o);
|
|
1695
1697
|
}), Z(
|
|
1696
|
-
() =>
|
|
1698
|
+
() => t.modelValue,
|
|
1697
1699
|
(o) => {
|
|
1698
1700
|
o != null && o.length ? o.forEach((u) => {
|
|
1699
|
-
ne(u),
|
|
1701
|
+
ne(u), t.multiple ? i.trans.push(u[h.value.id]) : i.single = u[h.value.id];
|
|
1700
1702
|
}) : ie();
|
|
1701
1703
|
}
|
|
1702
1704
|
);
|
|
1703
1705
|
const $ = (o) => {
|
|
1704
1706
|
var u;
|
|
1705
|
-
if (o) {
|
|
1707
|
+
if (t.debug && console.log("删除项:", o), !!o) {
|
|
1706
1708
|
if (i.single = "", o[h.value.id]) {
|
|
1707
1709
|
const g = (u = i.trans) == null ? void 0 : u.findIndex(
|
|
1708
1710
|
(B) => B === o[h.value.id]
|
|
@@ -1722,13 +1724,13 @@ const xa = {
|
|
|
1722
1724
|
return;
|
|
1723
1725
|
}
|
|
1724
1726
|
}
|
|
1725
|
-
},
|
|
1727
|
+
}, ye = (o) => {
|
|
1726
1728
|
$(o);
|
|
1727
|
-
},
|
|
1728
|
-
},
|
|
1729
|
-
|
|
1730
|
-
},
|
|
1731
|
-
i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), n.value.forEach((o) => {
|
|
1729
|
+
}, Ne = () => {
|
|
1730
|
+
}, Ye = (o) => {
|
|
1731
|
+
Ge();
|
|
1732
|
+
}, Ge = () => {
|
|
1733
|
+
t.debug && console.log("更新选中项的Map数据结构:", n.value), i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), n.value.forEach((o) => {
|
|
1732
1734
|
const u = o[h.value.id];
|
|
1733
1735
|
switch (o[h.value.type]) {
|
|
1734
1736
|
case s.value.user:
|
|
@@ -1764,7 +1766,7 @@ const xa = {
|
|
|
1764
1766
|
return;
|
|
1765
1767
|
}
|
|
1766
1768
|
}
|
|
1767
|
-
},
|
|
1769
|
+
}, ze = (o) => [s.value.group].includes(
|
|
1768
1770
|
o[h.value.type]
|
|
1769
1771
|
) ? o == null ? void 0 : o.hasOwnProperty("disabled") : !1;
|
|
1770
1772
|
Z(
|
|
@@ -1779,7 +1781,7 @@ const xa = {
|
|
|
1779
1781
|
(g) => o.includes(g[h.value.id])
|
|
1780
1782
|
);
|
|
1781
1783
|
for (const g of u)
|
|
1782
|
-
g.disabled =
|
|
1784
|
+
g.disabled = ze(g), ne(g);
|
|
1783
1785
|
}
|
|
1784
1786
|
},
|
|
1785
1787
|
{ deep: !0 }
|
|
@@ -1789,25 +1791,25 @@ const xa = {
|
|
|
1789
1791
|
var u;
|
|
1790
1792
|
if (o) {
|
|
1791
1793
|
const g = (u = K.value) == null ? void 0 : u.find((B) => B[h.value.id] === o);
|
|
1792
|
-
g && (i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [],
|
|
1794
|
+
g && (i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [], Ie(() => {
|
|
1793
1795
|
ne(g);
|
|
1794
1796
|
}));
|
|
1795
1797
|
}
|
|
1796
1798
|
}
|
|
1797
1799
|
);
|
|
1798
|
-
const
|
|
1800
|
+
const Qe = (o) => {
|
|
1799
1801
|
y.value = o == null ? void 0 : o.elementId, m(), r.value.push(o);
|
|
1800
|
-
}, Ve = S(() => r.value.length),
|
|
1801
|
-
!u && !
|
|
1802
|
-
},
|
|
1803
|
-
() =>
|
|
1804
|
-
),
|
|
1805
|
-
() =>
|
|
1806
|
-
),
|
|
1807
|
-
|
|
1802
|
+
}, Ve = S(() => r.value.length), Fe = (o, u) => {
|
|
1803
|
+
!u && !t.topLink || u !== Ve.value - 1 && (y.value = o == null ? void 0 : o.elementId, m(), r.value.splice(u + 1));
|
|
1804
|
+
}, Xe = S(
|
|
1805
|
+
() => t.chooseType.includes("role") && t.chooseType.length === 1
|
|
1806
|
+
), Ke = S(
|
|
1807
|
+
() => t.chooseType.includes("post") && t.chooseType.length === 1
|
|
1808
|
+
), xe = U(t.tabs[0]), re = U(t.tabs[0]);
|
|
1809
|
+
Me(() => (re.value = Xe.value ? t.tabs[1] : Ke.value ? t.tabs[2] : xe.value, re.value));
|
|
1808
1810
|
const ie = () => {
|
|
1809
|
-
i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [], we.value = [],
|
|
1810
|
-
},
|
|
1811
|
+
i.user.clear(), i.role.clear(), i.post.clear(), i.group.clear(), i.trans = [], we.value = [], Le.value = [], xe.value = t.tabs[0], re.value = t.tabs[0], P.value = "", y.value = t.orgPid, r.value.splice(1, r.value.length), i.single = "", n.value = [];
|
|
1812
|
+
}, Ze = () => {
|
|
1811
1813
|
var o;
|
|
1812
1814
|
le(
|
|
1813
1815
|
"ok",
|
|
@@ -1824,25 +1826,25 @@ const xa = {
|
|
|
1824
1826
|
c({
|
|
1825
1827
|
handClear: ie,
|
|
1826
1828
|
// 清空所有选择
|
|
1827
|
-
handRomeve:
|
|
1829
|
+
handRomeve: ye,
|
|
1828
1830
|
// 移除选中项
|
|
1829
1831
|
handDelete: $
|
|
1830
1832
|
// 删除选中项
|
|
1831
1833
|
});
|
|
1832
|
-
const
|
|
1834
|
+
const $e = S(() => {
|
|
1833
1835
|
const o = z.value;
|
|
1834
1836
|
return !!((o.includes("post") || o.includes("role")) && o.length > 1);
|
|
1835
|
-
}),
|
|
1837
|
+
}), qe = S(() => [
|
|
1836
1838
|
{ name: "group", label: "组织架构" },
|
|
1837
1839
|
{ name: "role", label: "角色列表" },
|
|
1838
1840
|
{ name: "post", label: "岗位列表" }
|
|
1839
|
-
].filter((o) =>
|
|
1840
|
-
() => `${typeof
|
|
1841
|
+
].filter((o) => t.tabs.includes(o.name))), Je = S(
|
|
1842
|
+
() => `${typeof t.height == "string" ? Number.parseInt(t.height) : t.height}px`
|
|
1841
1843
|
), be = () => {
|
|
1842
|
-
|
|
1844
|
+
t.multiple || (i.post.clear(), i.role.clear(), i.user.clear(), i.group.clear(), i.single = "");
|
|
1843
1845
|
}, et = S(() => j.value.groups.list.concat(j.value.user.list)), tt = (o, u) => {
|
|
1844
|
-
|
|
1845
|
-
const g =
|
|
1846
|
+
t.multiple || (i.single = "");
|
|
1847
|
+
const g = t.multiple ? o : [o];
|
|
1846
1848
|
if (!g.length) {
|
|
1847
1849
|
i.group.clear(), i.user.clear();
|
|
1848
1850
|
return;
|
|
@@ -1851,8 +1853,8 @@ const xa = {
|
|
|
1851
1853
|
g != null && g.includes(B[h.value.id]) ? ne(B) : $(B);
|
|
1852
1854
|
});
|
|
1853
1855
|
}, we = U([]), lt = (o, u) => {
|
|
1854
|
-
|
|
1855
|
-
const g =
|
|
1856
|
+
t.multiple || (i.single = "");
|
|
1857
|
+
const g = t.multiple ? o : [o];
|
|
1856
1858
|
if (!g.length) {
|
|
1857
1859
|
i.role.clear();
|
|
1858
1860
|
return;
|
|
@@ -1867,9 +1869,9 @@ const xa = {
|
|
|
1867
1869
|
we.value = ee.cloneDeep(j.value.role.list);
|
|
1868
1870
|
}
|
|
1869
1871
|
);
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
const g =
|
|
1872
|
+
const Le = U([]), at = (o, u) => {
|
|
1873
|
+
t.multiple || (i.single = "");
|
|
1874
|
+
const g = t.multiple ? o : [o];
|
|
1873
1875
|
if (!g.length) {
|
|
1874
1876
|
i.post.clear();
|
|
1875
1877
|
return;
|
|
@@ -1881,7 +1883,7 @@ const xa = {
|
|
|
1881
1883
|
return Z(
|
|
1882
1884
|
() => j.value.post.len,
|
|
1883
1885
|
(o) => {
|
|
1884
|
-
|
|
1886
|
+
Le.value = ee.cloneDeep(j.value.post.list);
|
|
1885
1887
|
}
|
|
1886
1888
|
), Z(
|
|
1887
1889
|
() => P.value,
|
|
@@ -1895,7 +1897,7 @@ const xa = {
|
|
|
1895
1897
|
null,
|
|
1896
1898
|
[
|
|
1897
1899
|
k(" 主弹窗容器 "),
|
|
1898
|
-
A(x(
|
|
1900
|
+
A(x(pt), {
|
|
1899
1901
|
modelValue: se.value,
|
|
1900
1902
|
"onUpdate:modelValue": u[3] || (u[3] = (T) => se.value = T),
|
|
1901
1903
|
title: o.title,
|
|
@@ -1911,9 +1913,11 @@ const xa = {
|
|
|
1911
1913
|
onClose: Se
|
|
1912
1914
|
}, {
|
|
1913
1915
|
footer: w(() => [
|
|
1914
|
-
d("span",
|
|
1916
|
+
d("span", Ta, [
|
|
1915
1917
|
k(" 取消按钮 "),
|
|
1916
|
-
A(x(oe), {
|
|
1918
|
+
A(x(oe), {
|
|
1919
|
+
onClick: fe(Se, ["stop"])
|
|
1920
|
+
}, {
|
|
1917
1921
|
default: w(() => [...u[7] || (u[7] = [
|
|
1918
1922
|
ae(
|
|
1919
1923
|
"取消",
|
|
@@ -1927,7 +1931,7 @@ const xa = {
|
|
|
1927
1931
|
k(" 确定按钮 "),
|
|
1928
1932
|
A(x(oe), {
|
|
1929
1933
|
type: "primary",
|
|
1930
|
-
onClick:
|
|
1934
|
+
onClick: fe(Ze, ["stop"])
|
|
1931
1935
|
}, {
|
|
1932
1936
|
default: w(() => [...u[8] || (u[8] = [
|
|
1933
1937
|
ae(
|
|
@@ -1946,33 +1950,33 @@ const xa = {
|
|
|
1946
1950
|
"div",
|
|
1947
1951
|
{
|
|
1948
1952
|
class: "dep-use-picker",
|
|
1949
|
-
style:
|
|
1953
|
+
style: st({ height: Je.value })
|
|
1950
1954
|
},
|
|
1951
1955
|
[
|
|
1952
1956
|
k(" 左侧选择区域 "),
|
|
1953
|
-
d("div",
|
|
1957
|
+
d("div", Pa, [
|
|
1954
1958
|
k(" 搜索框和标签页 "),
|
|
1955
1959
|
d("div", null, [
|
|
1956
1960
|
k(" 搜索输入框 "),
|
|
1957
|
-
A(x(
|
|
1961
|
+
A(x(je), {
|
|
1958
1962
|
modelValue: P.value,
|
|
1959
1963
|
"onUpdate:modelValue": u[0] || (u[0] = (T) => P.value = T),
|
|
1960
1964
|
clearable: "",
|
|
1961
1965
|
placeholder: o.placeholder,
|
|
1962
|
-
"suffix-icon":
|
|
1966
|
+
"suffix-icon": Kt
|
|
1963
1967
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1964
1968
|
k(" 标签页切换 "),
|
|
1965
|
-
|
|
1969
|
+
$e.value ? (p(), V(B, {
|
|
1966
1970
|
key: 0,
|
|
1967
|
-
modelValue:
|
|
1968
|
-
"onUpdate:modelValue": u[1] || (u[1] = (T) =>
|
|
1971
|
+
modelValue: xe.value,
|
|
1972
|
+
"onUpdate:modelValue": u[1] || (u[1] = (T) => xe.value = T),
|
|
1969
1973
|
class: "ik-picker-tab"
|
|
1970
1974
|
}, {
|
|
1971
1975
|
default: w(() => [
|
|
1972
1976
|
(p(!0), v(
|
|
1973
1977
|
E,
|
|
1974
1978
|
null,
|
|
1975
|
-
te(
|
|
1979
|
+
te(qe.value, (T) => (p(), V(g, {
|
|
1976
1980
|
label: T.label,
|
|
1977
1981
|
name: T.name,
|
|
1978
1982
|
key: T.label
|
|
@@ -1986,13 +1990,13 @@ const xa = {
|
|
|
1986
1990
|
}, 8, ["modelValue"])) : k("v-if", !0)
|
|
1987
1991
|
]),
|
|
1988
1992
|
k(" 面包屑导航区域 "),
|
|
1989
|
-
re.value === x(
|
|
1993
|
+
re.value === x(ge).group ? (p(), v(
|
|
1990
1994
|
E,
|
|
1991
1995
|
{ key: 0 },
|
|
1992
1996
|
[
|
|
1993
|
-
Ve.value ? (p(), v("div",
|
|
1997
|
+
Ve.value ? (p(), v("div", ba, [
|
|
1994
1998
|
k(" 面包屑导航 "),
|
|
1995
|
-
A(x(
|
|
1999
|
+
A(x(dt), {
|
|
1996
2000
|
separator: ">",
|
|
1997
2001
|
class: pe(["banner", { "top-unlink": !o.topLink }])
|
|
1998
2002
|
}, {
|
|
@@ -2000,9 +2004,9 @@ const xa = {
|
|
|
2000
2004
|
(p(!0), v(
|
|
2001
2005
|
E,
|
|
2002
2006
|
null,
|
|
2003
|
-
te(x(r), (T,
|
|
2007
|
+
te(x(r), (T, ve) => (p(), V(x(ct), {
|
|
2004
2008
|
key: T[h.value.id],
|
|
2005
|
-
onClick:
|
|
2009
|
+
onClick: fe((Ce) => Fe(T, ve), ["stop"])
|
|
2006
2010
|
}, {
|
|
2007
2011
|
default: w(() => [
|
|
2008
2012
|
ae(
|
|
@@ -2028,7 +2032,7 @@ const xa = {
|
|
|
2028
2032
|
)) : k("v-if", !0),
|
|
2029
2033
|
k(" 数据列表区域 "),
|
|
2030
2034
|
k(" 组织架构列表 "),
|
|
2031
|
-
re.value === x(
|
|
2035
|
+
re.value === x(ge).group ? me((p(), V(Nl, {
|
|
2032
2036
|
key: 1,
|
|
2033
2037
|
fixPropOpt: h.value,
|
|
2034
2038
|
fixTypeOpt: s.value,
|
|
@@ -2036,54 +2040,54 @@ const xa = {
|
|
|
2036
2040
|
max: o.max,
|
|
2037
2041
|
multiple: o.multiple,
|
|
2038
2042
|
"hand-list": et.value,
|
|
2039
|
-
imageBaseUrl:
|
|
2040
|
-
emptyText:
|
|
2041
|
-
children:
|
|
2043
|
+
imageBaseUrl: t.imageBaseUrl,
|
|
2044
|
+
emptyText: t.emptyText,
|
|
2045
|
+
children: t.children && !P.value,
|
|
2042
2046
|
"choose-type": z.value,
|
|
2043
|
-
onHandChild:
|
|
2047
|
+
onHandChild: Qe,
|
|
2044
2048
|
onChange: tt
|
|
2045
2049
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2046
|
-
[x(_e),
|
|
2047
|
-
]) : re.value === x(
|
|
2050
|
+
[x(_e), L.value]
|
|
2051
|
+
]) : re.value === x(ge).role ? (p(), v(
|
|
2048
2052
|
E,
|
|
2049
2053
|
{ key: 2 },
|
|
2050
2054
|
[
|
|
2051
2055
|
k(" 角色列表 "),
|
|
2052
|
-
|
|
2056
|
+
me(A(ga, {
|
|
2053
2057
|
fixPropOpt: h.value,
|
|
2054
2058
|
fixTypeOpt: s.value,
|
|
2055
2059
|
list: M.value,
|
|
2056
2060
|
max: o.max,
|
|
2057
2061
|
multiple: o.multiple,
|
|
2058
2062
|
"hand-list": we.value,
|
|
2059
|
-
imageBaseUrl:
|
|
2060
|
-
emptyText:
|
|
2063
|
+
imageBaseUrl: t.imageBaseUrl,
|
|
2064
|
+
emptyText: t.emptyText,
|
|
2061
2065
|
"choose-type": z.value,
|
|
2062
2066
|
onChange: lt
|
|
2063
2067
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2064
|
-
[x(_e),
|
|
2068
|
+
[x(_e), L.value]
|
|
2065
2069
|
])
|
|
2066
2070
|
],
|
|
2067
2071
|
64
|
|
2068
2072
|
/* STABLE_FRAGMENT */
|
|
2069
|
-
)) : re.value === x(
|
|
2073
|
+
)) : re.value === x(ge).post ? (p(), v(
|
|
2070
2074
|
E,
|
|
2071
2075
|
{ key: 3 },
|
|
2072
2076
|
[
|
|
2073
2077
|
k(" 岗位列表 "),
|
|
2074
|
-
|
|
2078
|
+
me(A(la, {
|
|
2075
2079
|
fixPropOpt: h.value,
|
|
2076
2080
|
fixTypeOpt: s.value,
|
|
2077
2081
|
list: I.value,
|
|
2078
2082
|
max: o.max,
|
|
2079
2083
|
multiple: o.multiple,
|
|
2080
|
-
"hand-list":
|
|
2081
|
-
imageBaseUrl:
|
|
2082
|
-
emptyText:
|
|
2084
|
+
"hand-list": Le.value,
|
|
2085
|
+
imageBaseUrl: t.imageBaseUrl,
|
|
2086
|
+
emptyText: t.emptyText,
|
|
2083
2087
|
"choose-type": z.value,
|
|
2084
2088
|
onChange: at
|
|
2085
2089
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2086
|
-
[x(_e),
|
|
2090
|
+
[x(_e), L.value]
|
|
2087
2091
|
])
|
|
2088
2092
|
],
|
|
2089
2093
|
64
|
|
@@ -2099,7 +2103,7 @@ const xa = {
|
|
|
2099
2103
|
/* CACHED */
|
|
2100
2104
|
)),
|
|
2101
2105
|
k(" 右侧已选区域 "),
|
|
2102
|
-
d("div",
|
|
2106
|
+
d("div", wa, [
|
|
2103
2107
|
k(" 已选标题和清空按钮 "),
|
|
2104
2108
|
d("div", La, [
|
|
2105
2109
|
u[5] || (u[5] = d(
|
|
@@ -2115,7 +2119,7 @@ const xa = {
|
|
|
2115
2119
|
A(x(oe), {
|
|
2116
2120
|
type: "primary",
|
|
2117
2121
|
link: "",
|
|
2118
|
-
onClick:
|
|
2122
|
+
onClick: fe(ie, ["stop"])
|
|
2119
2123
|
}, {
|
|
2120
2124
|
default: w(() => [...u[4] || (u[4] = [
|
|
2121
2125
|
ae(
|
|
@@ -2131,7 +2135,7 @@ const xa = {
|
|
|
2131
2135
|
A(Q, null, {
|
|
2132
2136
|
default: w(() => [
|
|
2133
2137
|
k(" 已选项目列表 "),
|
|
2134
|
-
A(x(
|
|
2138
|
+
A(x(wt), {
|
|
2135
2139
|
modelValue: n.value,
|
|
2136
2140
|
"onUpdate:modelValue": u[2] || (u[2] = (T) => n.value = T),
|
|
2137
2141
|
class: "choose-box",
|
|
@@ -2141,19 +2145,19 @@ const xa = {
|
|
|
2141
2145
|
"ghost-class": "ghost-item",
|
|
2142
2146
|
"chosen-class": "chosen-item",
|
|
2143
2147
|
"drag-class": "drag-item",
|
|
2144
|
-
onStart:
|
|
2145
|
-
onEnd:
|
|
2148
|
+
onStart: Ne,
|
|
2149
|
+
onEnd: Ye
|
|
2146
2150
|
}, {
|
|
2147
2151
|
item: w(({ element: T }) => [
|
|
2148
|
-
d("li",
|
|
2149
|
-
d("div",
|
|
2152
|
+
d("li", Ca, [
|
|
2153
|
+
d("div", _a, [
|
|
2150
2154
|
k(" 头像图标 "),
|
|
2151
|
-
d("div",
|
|
2155
|
+
d("div", Ba, [
|
|
2152
2156
|
A(G, {
|
|
2153
2157
|
fixTypeOpt: s.value,
|
|
2154
2158
|
fixPropOpt: h.value,
|
|
2155
2159
|
element: T,
|
|
2156
|
-
imageBaseUrl:
|
|
2160
|
+
imageBaseUrl: t.imageBaseUrl
|
|
2157
2161
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
2158
2162
|
]),
|
|
2159
2163
|
k(" 项目名称 "),
|
|
@@ -2166,11 +2170,11 @@ const xa = {
|
|
|
2166
2170
|
)
|
|
2167
2171
|
]),
|
|
2168
2172
|
k(" 删除按钮 "),
|
|
2169
|
-
|
|
2173
|
+
me(A(Jt, {
|
|
2170
2174
|
class: "close",
|
|
2171
|
-
onClick:
|
|
2175
|
+
onClick: fe((ve) => ye(T), ["stop"])
|
|
2172
2176
|
}, null, 8, ["onClick"]), [
|
|
2173
|
-
[
|
|
2177
|
+
[He, !(T != null && T.readonly)]
|
|
2174
2178
|
])
|
|
2175
2179
|
])
|
|
2176
2180
|
]),
|
|
@@ -2196,11 +2200,11 @@ const xa = {
|
|
|
2196
2200
|
);
|
|
2197
2201
|
};
|
|
2198
2202
|
}
|
|
2199
|
-
}),
|
|
2200
|
-
function
|
|
2201
|
-
return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !
|
|
2203
|
+
}), Va = We(Ua);
|
|
2204
|
+
function Sa(a) {
|
|
2205
|
+
return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !nt(a);
|
|
2202
2206
|
}
|
|
2203
|
-
const
|
|
2207
|
+
const Da = /* @__PURE__ */ W({
|
|
2204
2208
|
name: "IkSearchAuto",
|
|
2205
2209
|
props: {
|
|
2206
2210
|
// 查询字段列表
|
|
@@ -2235,19 +2239,19 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2235
2239
|
emit: c,
|
|
2236
2240
|
expose: e
|
|
2237
2241
|
}) {
|
|
2238
|
-
const
|
|
2242
|
+
const t = U(a.list), {
|
|
2239
2243
|
list: P
|
|
2240
2244
|
} = a, y = () => {
|
|
2241
|
-
c("handleChange",
|
|
2245
|
+
c("handleChange", t);
|
|
2242
2246
|
}, _ = ({
|
|
2243
|
-
key:
|
|
2247
|
+
key: l,
|
|
2244
2248
|
placeholder: r,
|
|
2245
2249
|
maxlength: O,
|
|
2246
2250
|
minlength: m,
|
|
2247
2251
|
disabled: i
|
|
2248
|
-
}) => A(
|
|
2249
|
-
modelValue:
|
|
2250
|
-
"onUpdate:modelValue": (
|
|
2252
|
+
}) => A(je, {
|
|
2253
|
+
modelValue: t.value[l],
|
|
2254
|
+
"onUpdate:modelValue": (C) => t.value[l] = C,
|
|
2251
2255
|
clearable: !0,
|
|
2252
2256
|
maxlength: O,
|
|
2253
2257
|
minlength: m,
|
|
@@ -2255,53 +2259,53 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2255
2259
|
onChange: () => y(),
|
|
2256
2260
|
placeholder: r || "全部"
|
|
2257
2261
|
}, null), b = ({
|
|
2258
|
-
key:
|
|
2262
|
+
key: l,
|
|
2259
2263
|
placeholder: r,
|
|
2260
2264
|
max: O,
|
|
2261
2265
|
min: m,
|
|
2262
2266
|
disabled: i,
|
|
2263
|
-
precision:
|
|
2267
|
+
precision: C,
|
|
2264
2268
|
step: H = 1
|
|
2265
|
-
}) => A(
|
|
2266
|
-
modelValue:
|
|
2267
|
-
"onUpdate:modelValue": (F) =>
|
|
2269
|
+
}) => A(gt, {
|
|
2270
|
+
modelValue: t.value[l],
|
|
2271
|
+
"onUpdate:modelValue": (F) => t.value[l] = F,
|
|
2268
2272
|
clearable: !0,
|
|
2269
2273
|
max: O,
|
|
2270
2274
|
min: m,
|
|
2271
2275
|
disabled: i,
|
|
2272
|
-
precision:
|
|
2276
|
+
precision: C,
|
|
2273
2277
|
step: H,
|
|
2274
2278
|
onChange: () => y(),
|
|
2275
2279
|
placeholder: r || "全部"
|
|
2276
2280
|
}, null), M = ({
|
|
2277
|
-
key:
|
|
2281
|
+
key: l,
|
|
2278
2282
|
placeholder: r,
|
|
2279
2283
|
disabled: O,
|
|
2280
2284
|
options: m,
|
|
2281
2285
|
multiple: i = !1,
|
|
2282
|
-
filterable:
|
|
2283
|
-
}) => A(
|
|
2284
|
-
modelValue:
|
|
2285
|
-
"onUpdate:modelValue": (H) =>
|
|
2286
|
+
filterable: C = !0
|
|
2287
|
+
}) => A(At, {
|
|
2288
|
+
modelValue: t.value[l],
|
|
2289
|
+
"onUpdate:modelValue": (H) => t.value[l] = H,
|
|
2286
2290
|
clearable: !0,
|
|
2287
2291
|
disabled: O,
|
|
2288
2292
|
multiple: i,
|
|
2289
|
-
filterable:
|
|
2293
|
+
filterable: C,
|
|
2290
2294
|
onChange: () => y(),
|
|
2291
2295
|
placeholder: r || "全部"
|
|
2292
2296
|
}, {
|
|
2293
|
-
default: () => [m == null ? void 0 : m.map((H) => A(
|
|
2297
|
+
default: () => [m == null ? void 0 : m.map((H) => A(mt, {
|
|
2294
2298
|
key: H.value,
|
|
2295
2299
|
label: H.label,
|
|
2296
2300
|
value: H.value
|
|
2297
2301
|
}, null))]
|
|
2298
2302
|
}), I = ({
|
|
2299
|
-
key:
|
|
2303
|
+
key: l,
|
|
2300
2304
|
disabled: r,
|
|
2301
2305
|
options: O
|
|
2302
2306
|
}) => A(ke, {
|
|
2303
|
-
modelValue:
|
|
2304
|
-
"onUpdate:modelValue": (m) =>
|
|
2307
|
+
modelValue: t.value[l],
|
|
2308
|
+
"onUpdate:modelValue": (m) => t.value[l] = m,
|
|
2305
2309
|
disabled: r,
|
|
2306
2310
|
onChange: () => y()
|
|
2307
2311
|
}, {
|
|
@@ -2310,44 +2314,44 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2310
2314
|
label: m.label,
|
|
2311
2315
|
value: m.value
|
|
2312
2316
|
}, null))]
|
|
2313
|
-
}),
|
|
2314
|
-
key:
|
|
2317
|
+
}), L = ({
|
|
2318
|
+
key: l,
|
|
2315
2319
|
disabled: r,
|
|
2316
2320
|
options: O,
|
|
2317
2321
|
min: m,
|
|
2318
2322
|
max: i
|
|
2319
2323
|
}) => A(Oe, {
|
|
2320
|
-
modelValue:
|
|
2321
|
-
"onUpdate:modelValue": (
|
|
2324
|
+
modelValue: t.value[l],
|
|
2325
|
+
"onUpdate:modelValue": (C) => t.value[l] = C,
|
|
2322
2326
|
disabled: r,
|
|
2323
2327
|
max: i,
|
|
2324
2328
|
min: m,
|
|
2325
2329
|
onChange: () => y()
|
|
2326
2330
|
}, {
|
|
2327
|
-
default: () => [O == null ? void 0 : O.map((
|
|
2328
|
-
key:
|
|
2329
|
-
label:
|
|
2330
|
-
value:
|
|
2331
|
+
default: () => [O == null ? void 0 : O.map((C) => A(ce, {
|
|
2332
|
+
key: C.value,
|
|
2333
|
+
label: C.label,
|
|
2334
|
+
value: C.value
|
|
2331
2335
|
}, null))]
|
|
2332
2336
|
}), R = ({
|
|
2333
|
-
key:
|
|
2337
|
+
key: l,
|
|
2334
2338
|
disabled: r,
|
|
2335
2339
|
editable: O = !0,
|
|
2336
2340
|
startPlaceholder: m = "开始日期",
|
|
2337
2341
|
endplaceholder: i = "结束日期",
|
|
2338
|
-
dateType:
|
|
2342
|
+
dateType: C = ue.date,
|
|
2339
2343
|
format: H,
|
|
2340
2344
|
placeholder: F = "请选择日期",
|
|
2341
2345
|
popperclass: j,
|
|
2342
2346
|
rangeSeparator: z = "-",
|
|
2343
2347
|
defaultValue: K,
|
|
2344
|
-
defaultTime:
|
|
2348
|
+
defaultTime: he,
|
|
2345
2349
|
valueFormat: le,
|
|
2346
2350
|
disabledDate: se = () => !1
|
|
2347
2351
|
}) => {
|
|
2348
2352
|
let N = H;
|
|
2349
2353
|
if (!N)
|
|
2350
|
-
switch (
|
|
2354
|
+
switch (C) {
|
|
2351
2355
|
case ue.date:
|
|
2352
2356
|
case ue.dates:
|
|
2353
2357
|
N = "YYYY-MM-DD";
|
|
@@ -2367,13 +2371,13 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2367
2371
|
default:
|
|
2368
2372
|
N = "YYYY-MM-DD";
|
|
2369
2373
|
}
|
|
2370
|
-
return A(
|
|
2371
|
-
modelValue:
|
|
2372
|
-
"onUpdate:modelValue": ($) =>
|
|
2374
|
+
return A(vt, {
|
|
2375
|
+
modelValue: t.value[l],
|
|
2376
|
+
"onUpdate:modelValue": ($) => t.value[l] = $,
|
|
2373
2377
|
onChange: () => y(),
|
|
2374
2378
|
placeholder: F,
|
|
2375
2379
|
disabled: r,
|
|
2376
|
-
type:
|
|
2380
|
+
type: C,
|
|
2377
2381
|
editable: O,
|
|
2378
2382
|
startPlaceholder: m,
|
|
2379
2383
|
endPlaceholder: i,
|
|
@@ -2381,35 +2385,35 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2381
2385
|
format: N,
|
|
2382
2386
|
popperClass: j,
|
|
2383
2387
|
defaultValue: K,
|
|
2384
|
-
defaultTime:
|
|
2388
|
+
defaultTime: he,
|
|
2385
2389
|
valueFormat: le,
|
|
2386
2390
|
disabledDate: se
|
|
2387
2391
|
}, null);
|
|
2388
2392
|
}, h = ({
|
|
2389
|
-
key:
|
|
2393
|
+
key: l,
|
|
2390
2394
|
options: r,
|
|
2391
2395
|
multiple: O = !1,
|
|
2392
2396
|
filterable: m = !0,
|
|
2393
2397
|
nodeKey: i = "id",
|
|
2394
|
-
props:
|
|
2398
|
+
props: C,
|
|
2395
2399
|
highlightCurrent: H = !0,
|
|
2396
2400
|
defaultExpandAll: F = !1,
|
|
2397
2401
|
expandOnClickNode: j = !1,
|
|
2398
2402
|
placeholder: z = "全部",
|
|
2399
2403
|
checkOnClickNode: K = !1,
|
|
2400
|
-
showCheckbox:
|
|
2404
|
+
showCheckbox: he = !1,
|
|
2401
2405
|
checkStrictly: le = !0,
|
|
2402
2406
|
defaultCheckedKeys: se = [],
|
|
2403
2407
|
currentNodeKey: N = "",
|
|
2404
2408
|
accordion: $ = !1
|
|
2405
|
-
}) => A(
|
|
2406
|
-
modelValue:
|
|
2407
|
-
"onUpdate:modelValue": (
|
|
2409
|
+
}) => A(ht, {
|
|
2410
|
+
modelValue: t.value[l],
|
|
2411
|
+
"onUpdate:modelValue": (ye) => t.value[l] = ye,
|
|
2408
2412
|
data: r,
|
|
2409
2413
|
onChange: () => y(),
|
|
2410
2414
|
clearable: !0,
|
|
2411
2415
|
multiple: O,
|
|
2412
|
-
props:
|
|
2416
|
+
props: C,
|
|
2413
2417
|
placeholder: z,
|
|
2414
2418
|
filterable: m,
|
|
2415
2419
|
nodeKey: i,
|
|
@@ -2417,65 +2421,65 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2417
2421
|
defaultExpandAll: F,
|
|
2418
2422
|
expandOnClickNode: j,
|
|
2419
2423
|
checkOnClickNode: K,
|
|
2420
|
-
showCheckbox:
|
|
2424
|
+
showCheckbox: he,
|
|
2421
2425
|
checkStrictly: le,
|
|
2422
2426
|
defaultCheckedKeys: se,
|
|
2423
2427
|
currentNodeKey: N,
|
|
2424
2428
|
accordion: $
|
|
2425
2429
|
}, null), s = ({
|
|
2426
|
-
key:
|
|
2430
|
+
key: l,
|
|
2427
2431
|
placeholder: r,
|
|
2428
2432
|
typeOption: O,
|
|
2429
2433
|
_list: m,
|
|
2430
2434
|
data: i,
|
|
2431
|
-
handSetChild:
|
|
2432
|
-
}) => A(
|
|
2435
|
+
handSetChild: C
|
|
2436
|
+
}) => A(Va, {
|
|
2433
2437
|
typeOption: O,
|
|
2434
2438
|
list: m,
|
|
2435
|
-
key:
|
|
2439
|
+
key: l,
|
|
2436
2440
|
props: a,
|
|
2437
2441
|
data: i,
|
|
2438
|
-
handSetChild:
|
|
2442
|
+
handSetChild: C,
|
|
2439
2443
|
placeholder: r
|
|
2440
|
-
}, null), n = (
|
|
2441
|
-
switch (
|
|
2444
|
+
}, null), n = (l) => {
|
|
2445
|
+
switch (l.type) {
|
|
2442
2446
|
case "":
|
|
2443
2447
|
case void 0:
|
|
2444
2448
|
case J.input:
|
|
2445
|
-
return _(
|
|
2449
|
+
return _(l);
|
|
2446
2450
|
case J.number:
|
|
2447
|
-
return b(
|
|
2451
|
+
return b(l);
|
|
2448
2452
|
case J.select:
|
|
2449
|
-
return M(
|
|
2453
|
+
return M(l);
|
|
2450
2454
|
case J.checkbox:
|
|
2451
|
-
return
|
|
2455
|
+
return L(l);
|
|
2452
2456
|
case J.radio:
|
|
2453
|
-
return I(
|
|
2457
|
+
return I(l);
|
|
2454
2458
|
case J.date:
|
|
2455
|
-
return R(
|
|
2459
|
+
return R(l);
|
|
2456
2460
|
case J.treeselect:
|
|
2457
|
-
return h(
|
|
2461
|
+
return h(l);
|
|
2458
2462
|
case J.choosePerson:
|
|
2459
|
-
return s(
|
|
2463
|
+
return s(l);
|
|
2460
2464
|
default:
|
|
2461
2465
|
return A(E, null, null);
|
|
2462
2466
|
}
|
|
2463
2467
|
}, f = S(() => {
|
|
2464
|
-
const
|
|
2468
|
+
const l = [];
|
|
2465
2469
|
return P.forEach((r, O) => {
|
|
2466
2470
|
let m;
|
|
2467
2471
|
if (!r) return [];
|
|
2468
|
-
|
|
2472
|
+
l.push(A(ft, {
|
|
2469
2473
|
label: r.label,
|
|
2470
2474
|
prop: r.key
|
|
2471
|
-
},
|
|
2475
|
+
}, Sa(m = n(r)) ? m : {
|
|
2472
2476
|
default: () => [m]
|
|
2473
2477
|
}));
|
|
2474
|
-
}),
|
|
2478
|
+
}), l;
|
|
2475
2479
|
});
|
|
2476
2480
|
return () => A(E, null, [f.value]);
|
|
2477
2481
|
}
|
|
2478
|
-
}),
|
|
2482
|
+
}), Ia = { class: "ik-pack" }, Ma = /* @__PURE__ */ W({
|
|
2479
2483
|
__name: "IkSearch",
|
|
2480
2484
|
props: {
|
|
2481
2485
|
enter: {
|
|
@@ -2543,47 +2547,47 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2543
2547
|
},
|
|
2544
2548
|
emits: ["refresh", "search", "update:formRef", "import", "export", "delete"],
|
|
2545
2549
|
setup(a, { emit: c }) {
|
|
2546
|
-
const e = a,
|
|
2550
|
+
const e = a, t = c, P = {}, y = {}, _ = U([]), b = U({ ...y }), M = U(null), I = U(!1);
|
|
2547
2551
|
Z(_, (s, n) => {
|
|
2548
|
-
const f = n.filter((
|
|
2552
|
+
const f = n.filter((l) => !s.includes(l));
|
|
2549
2553
|
if (f.length) {
|
|
2550
|
-
let
|
|
2554
|
+
let l = !1;
|
|
2551
2555
|
f.forEach((r) => {
|
|
2552
|
-
b.value[r] !== void 0 && (
|
|
2553
|
-
}),
|
|
2556
|
+
b.value[r] !== void 0 && (l = !0), b.value[r] = void 0;
|
|
2557
|
+
}), l && t("search", b.value);
|
|
2554
2558
|
}
|
|
2555
2559
|
}), e.list.forEach((s, n) => {
|
|
2556
2560
|
y[s.key] = y[s.value], n < e.num && (P[s.key] = P[s.value], _.value.push(s.key));
|
|
2557
2561
|
});
|
|
2558
|
-
const
|
|
2562
|
+
const L = S(
|
|
2559
2563
|
() => _.value.map((s) => e.list.find((n) => n.key === s))
|
|
2560
2564
|
);
|
|
2561
2565
|
S(() => {
|
|
2562
2566
|
const { minSpan: s } = e;
|
|
2563
|
-
return
|
|
2567
|
+
return L.value.length < 4 ? s > 8 || s > 6 ? s : 6 : s;
|
|
2564
2568
|
});
|
|
2565
2569
|
const R = () => {
|
|
2566
2570
|
var s;
|
|
2567
2571
|
try {
|
|
2568
|
-
(s = M.value) == null || s.resetFields(),
|
|
2572
|
+
(s = M.value) == null || s.resetFields(), t("refresh"), t("search", b.value);
|
|
2569
2573
|
} catch {
|
|
2570
2574
|
}
|
|
2571
2575
|
}, h = () => {
|
|
2572
2576
|
I.value = !I.value;
|
|
2573
2577
|
};
|
|
2574
2578
|
return (s, n) => (p(), v("div", null, [
|
|
2575
|
-
A(
|
|
2579
|
+
A(Yt, {
|
|
2576
2580
|
rowData: e.rowData,
|
|
2577
|
-
onDelete: n[0] || (n[0] = (f) =>
|
|
2578
|
-
onImport: n[1] || (n[1] = (f) =>
|
|
2579
|
-
onExport: n[2] || (n[2] = (f) =>
|
|
2581
|
+
onDelete: n[0] || (n[0] = (f) => t("delete", a.rowData)),
|
|
2582
|
+
onImport: n[1] || (n[1] = (f) => t("import", a.rowData)),
|
|
2583
|
+
onExport: n[2] || (n[2] = (f) => t("export", a.rowData))
|
|
2580
2584
|
}, null, 8, ["rowData"]),
|
|
2581
|
-
A(x(
|
|
2585
|
+
A(x(yt), {
|
|
2582
2586
|
class: pe(["gl-search-card", I.value ? "pack-up-search" : "ik-unfold-search"]),
|
|
2583
2587
|
shadow: a.shadow
|
|
2584
|
-
},
|
|
2588
|
+
}, rt({
|
|
2585
2589
|
default: w(() => [
|
|
2586
|
-
A(x(
|
|
2590
|
+
A(x(xt), {
|
|
2587
2591
|
ref_key: "_formRef",
|
|
2588
2592
|
ref: M,
|
|
2589
2593
|
inline: a.inline,
|
|
@@ -2591,29 +2595,29 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2591
2595
|
"status-icon": a.statusIcon,
|
|
2592
2596
|
"label-width": `${a.labelWidth}px`,
|
|
2593
2597
|
class: "in-label",
|
|
2594
|
-
onKeydown: n[5] || (n[5] =
|
|
2598
|
+
onKeydown: n[5] || (n[5] = it(fe((f) => t("search", b.value), ["prevent"]), ["enter"]))
|
|
2595
2599
|
}, {
|
|
2596
2600
|
default: w(() => [
|
|
2597
|
-
A(x(
|
|
2601
|
+
A(x(Ot), { gutter: 10 }, {
|
|
2598
2602
|
default: w(() => [
|
|
2599
2603
|
(p(!0), v(
|
|
2600
2604
|
E,
|
|
2601
2605
|
null,
|
|
2602
|
-
te(
|
|
2603
|
-
key:
|
|
2606
|
+
te(L.value, (f, l) => (p(), V(x(kt), {
|
|
2607
|
+
key: l,
|
|
2604
2608
|
class: pe(
|
|
2605
2609
|
[
|
|
2606
2610
|
"el-col",
|
|
2607
2611
|
"el-col-24",
|
|
2608
|
-
`el-col-sm-${12 * (f.col || 1) * (
|
|
2609
|
-
`el-col-md-${8 * (f.col || 1) * (
|
|
2610
|
-
`el-col-lg-${6 * (f.col || 1) * (
|
|
2611
|
-
`el-col-xl-${4 * (f.col || 1) * (
|
|
2612
|
+
`el-col-sm-${12 * (f.col || 1) * (l === L.value.length - 1 ? 2 : 1)}`,
|
|
2613
|
+
`el-col-md-${8 * (f.col || 1) * (l === L.value.length - 1 ? 2 : 1)}`,
|
|
2614
|
+
`el-col-lg-${6 * (f.col || 1) * (l === L.value.length - 1 ? 2 : 1)}`,
|
|
2615
|
+
`el-col-xl-${4 * (f.col || 1) * (l === L.value.length - 1 ? 2 : 1)}`,
|
|
2612
2616
|
"is-guttered",
|
|
2613
2617
|
"el-col-4",
|
|
2614
|
-
`el-col-l-${4 * (f.col || 1) * (
|
|
2615
|
-
`el-col-sl-${5 * (f.col || 1) * (
|
|
2616
|
-
`${
|
|
2618
|
+
`el-col-l-${4 * (f.col || 1) * (l === L.value.length - 1 ? 2 : 1)}`,
|
|
2619
|
+
`el-col-sl-${5 * (f.col || 1) * (l === L.value.length - 1 ? 2 : 1)}`,
|
|
2620
|
+
`${l === L.value.length - 1 ? "last-col" : ""}`
|
|
2617
2621
|
].join(" ")
|
|
2618
2622
|
)
|
|
2619
2623
|
}, {
|
|
@@ -2621,16 +2625,16 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2621
2625
|
d(
|
|
2622
2626
|
"div",
|
|
2623
2627
|
{
|
|
2624
|
-
class: pe(["last-with-btn",
|
|
2628
|
+
class: pe(["last-with-btn", l === L.value.length - 1 ? "last-form" : ""])
|
|
2625
2629
|
},
|
|
2626
2630
|
[
|
|
2627
|
-
f != null && f.slot ?
|
|
2628
|
-
f != null && f.slot ? k("v-if", !0) : (p(), V(x(
|
|
2631
|
+
f != null && f.slot ? ut(s.$slots, f == null ? void 0 : f.slot, { key: 0 }, void 0, !0) : k("v-if", !0),
|
|
2632
|
+
f != null && f.slot ? k("v-if", !0) : (p(), V(x(Da), {
|
|
2629
2633
|
key: 1,
|
|
2630
|
-
onHandleChange: n[3] || (n[3] = (r) =>
|
|
2631
|
-
list: [a.list[
|
|
2634
|
+
onHandleChange: n[3] || (n[3] = (r) => t("search", b.value)),
|
|
2635
|
+
list: [a.list[l]]
|
|
2632
2636
|
}, null, 8, ["list"])),
|
|
2633
|
-
|
|
2637
|
+
l + 1 === L.value.length ? (p(), v(
|
|
2634
2638
|
E,
|
|
2635
2639
|
{ key: 2 },
|
|
2636
2640
|
[
|
|
@@ -2638,11 +2642,11 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2638
2642
|
key: 0,
|
|
2639
2643
|
class: "icon-more el-icon ml",
|
|
2640
2644
|
title: "查询",
|
|
2641
|
-
icon: x(
|
|
2642
|
-
onClick: n[4] || (n[4] = (r) =>
|
|
2645
|
+
icon: x(Mt),
|
|
2646
|
+
onClick: n[4] || (n[4] = (r) => t("search", b.value))
|
|
2643
2647
|
}, null, 8, ["icon"])) : k("v-if", !0),
|
|
2644
2648
|
A(x(oe), {
|
|
2645
|
-
icon: x(
|
|
2649
|
+
icon: x(Dt),
|
|
2646
2650
|
class: "icon-more el-icon ml",
|
|
2647
2651
|
title: "重置",
|
|
2648
2652
|
onClick: R
|
|
@@ -2714,21 +2718,21 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2714
2718
|
key: "0"
|
|
2715
2719
|
} : void 0
|
|
2716
2720
|
]), 1032, ["class", "shadow"]),
|
|
2717
|
-
d("div",
|
|
2721
|
+
d("div", Ia, [
|
|
2718
2722
|
d("div", {
|
|
2719
2723
|
class: "ik-pack-up",
|
|
2720
2724
|
onClick: h
|
|
2721
2725
|
}, [
|
|
2722
|
-
A(x(
|
|
2726
|
+
A(x(Pt), { size: "16" }, {
|
|
2723
2727
|
default: w(() => [
|
|
2724
|
-
|
|
2725
|
-
x(
|
|
2728
|
+
me(A(
|
|
2729
|
+
x(_t),
|
|
2726
2730
|
null,
|
|
2727
2731
|
null,
|
|
2728
2732
|
512
|
|
2729
2733
|
/* NEED_PATCH */
|
|
2730
2734
|
), [
|
|
2731
|
-
[
|
|
2735
|
+
[He, !I.value]
|
|
2732
2736
|
])
|
|
2733
2737
|
]),
|
|
2734
2738
|
_: 1
|
|
@@ -2738,11 +2742,11 @@ const Ia = /* @__PURE__ */ W({
|
|
|
2738
2742
|
])
|
|
2739
2743
|
]));
|
|
2740
2744
|
}
|
|
2741
|
-
}),
|
|
2745
|
+
}), Ea = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-d648fae4"]]), Ya = We(Ea);
|
|
2742
2746
|
export {
|
|
2743
|
-
|
|
2747
|
+
Ht as EAlign,
|
|
2744
2748
|
ue as EDateType,
|
|
2745
2749
|
J as EType,
|
|
2746
|
-
|
|
2747
|
-
|
|
2750
|
+
Ya as IkSearch,
|
|
2751
|
+
Ya as default
|
|
2748
2752
|
};
|