iking-web-ui-pro 1.0.44 → 1.0.46
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 +177 -171
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +239 -233
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +478 -472
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +88 -82
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +273 -267
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +527 -523
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-CS_y74Sj.mjs → index-DTi9E0jO.mjs} +4302 -4292
- package/dist/{index.es-BUP3pLAo.mjs → index.es-B77Iiv-O.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +70 -70
- package/dist/{jspdf.es.min-Ct9vMFKc.mjs → jspdf.es.min-DVvGi1xM.mjs} +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ue, createElementBlock as
|
|
2
|
-
import { ElCheckbox as Le, ElCheckboxGroup as
|
|
1
|
+
import { defineComponent as ue, createElementBlock as y, openBlock as s, createElementVNode as u, inject as De, computed as R, resolveComponent as te, normalizeStyle as Me, normalizeClass as ce, createBlock as D, Fragment as Z, withCtx as P, mergeProps as le, createTextVNode as ae, toDisplayString as X, createCommentVNode as b, ref as B, watch as re, createVNode as m, unref as T, renderList as Ae, useCssVars as vt, toRef as kt, reactive as nt, nextTick as st, watchEffect as ot, withDirectives as Ce, withModifiers as Ke, vShow as bt, mergeModels as Ee, useModel as et, resolveDirective as tt, createSlots as xt, Transition as gt, renderSlot as ge, isVNode as Ot, getCurrentInstance as wt } from "vue";
|
|
2
|
+
import { ElCheckbox as Le, ElCheckboxGroup as je, ElRadioGroup as He, ElRadio as Fe, ElDialog as Ct, ElInput as Ne, ElBreadcrumb as Bt, ElBreadcrumbItem as Pt, vLoading as Ze, ElButton as Je, ElCol as Lt, ElFormItem as it, ElCard as St, ElForm as Tt, ElRow as Ut, ElSelect as rt, ElOption as ut, ElTreeSelect as Vt, ElDatePicker as dt, ElRadioButton as It, ElInputNumber as _t } from "element-plus";
|
|
3
3
|
import { ikColor as Dt, ikStore as Te, _ as se, ikEvent as $t } from "iking-utils-pro";
|
|
4
4
|
import mt from "vuedraggable";
|
|
5
5
|
import Et from "axios";
|
|
6
|
-
const
|
|
6
|
+
const ze = (l, c) => (l.install = (e) => {
|
|
7
7
|
for (const t of [l, ...Object.values({})])
|
|
8
8
|
e.component(t.name, t);
|
|
9
9
|
}, l);
|
|
@@ -12,7 +12,7 @@ var Mt = /* @__PURE__ */ ue({
|
|
|
12
12
|
name: "DCaret",
|
|
13
13
|
__name: "d-caret",
|
|
14
14
|
setup(l) {
|
|
15
|
-
return (
|
|
15
|
+
return (c, e) => (s(), y("svg", {
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17
17
|
viewBox: "0 0 1024 1024"
|
|
18
18
|
}, [
|
|
@@ -23,12 +23,12 @@ var Mt = /* @__PURE__ */ ue({
|
|
|
23
23
|
]));
|
|
24
24
|
}
|
|
25
25
|
}), zt = Mt;
|
|
26
|
-
const oe = (l,
|
|
26
|
+
const oe = (l, c) => {
|
|
27
27
|
const e = l.__vccOpts || l;
|
|
28
|
-
for (const [t, k] of
|
|
28
|
+
for (const [t, k] of c)
|
|
29
29
|
e[t] = k;
|
|
30
30
|
return e;
|
|
31
|
-
}, Rt = (l,
|
|
31
|
+
}, Rt = (l, c) => c ? c != null && c.startsWith("http") ? c : `${l || location.origin}${c}` : "", ct = [
|
|
32
32
|
"csv",
|
|
33
33
|
"djvu",
|
|
34
34
|
"doc",
|
|
@@ -84,11 +84,11 @@ const oe = (l, d) => {
|
|
|
84
84
|
"flv",
|
|
85
85
|
"tls"
|
|
86
86
|
], Nt = (l) => {
|
|
87
|
-
const
|
|
87
|
+
const c = De("loadUrl"), e = R(() => l.loadUrl || l.fileUrl || (c == null ? void 0 : c.value)), t = De("uploadUrl"), k = R(() => l.action || l.uploadUrl || (t == null ? void 0 : t.value)), h = De("token"), O = R(() => l.token || (h == null ? void 0 : h.value)), v = De("onlyofficeConfig"), F = R(() => l.onlyofficeConfig || (v == null ? void 0 : v.value)), x = De("userInfo"), C = R(() => l.userInfo || (x == null ? void 0 : x.value)), A = [...ct, ...ct.map((o) => o.toLocaleUpperCase())];
|
|
88
88
|
return {
|
|
89
89
|
cLoadUrl: e,
|
|
90
90
|
cUploadUrl: k,
|
|
91
|
-
cToken:
|
|
91
|
+
cToken: O,
|
|
92
92
|
cOnlyofficeConfig: F,
|
|
93
93
|
cUserInfo: C,
|
|
94
94
|
cOnlyofficePreviewType: A
|
|
@@ -129,7 +129,7 @@ const oe = (l, d) => {
|
|
|
129
129
|
iconClass: { default: "" }
|
|
130
130
|
},
|
|
131
131
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
132
|
-
setup(l, { emit:
|
|
132
|
+
setup(l, { emit: c }) {
|
|
133
133
|
const e = l, t = R(() => e), k = R(() => {
|
|
134
134
|
const { name: A } = t.value;
|
|
135
135
|
return /^http?:\/\//.test(A) ? "img" : /i-[^:]+:[^:]+/.test(A) ? "unocss" : A != null && A.startsWith("iksig") ? "iksig" : A != null && A.includes(":") ? "iconify" : A != null && A.startsWith("iksvg") ? "svg" : "i";
|
|
@@ -159,18 +159,18 @@ const oe = (l, d) => {
|
|
|
159
159
|
} : {}
|
|
160
160
|
};
|
|
161
161
|
return t.value.width && (o.width = o.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), o;
|
|
162
|
-
}),
|
|
163
|
-
|
|
162
|
+
}), O = c, v = (A) => {
|
|
163
|
+
O("click", A);
|
|
164
164
|
}, F = (A) => {
|
|
165
|
-
|
|
165
|
+
O("mouseenter", A);
|
|
166
166
|
}, x = (A) => {
|
|
167
|
-
|
|
167
|
+
O("mouseleave", A);
|
|
168
168
|
}, C = (A) => {
|
|
169
|
-
|
|
169
|
+
O("dblclick", A);
|
|
170
170
|
};
|
|
171
171
|
return (A, o) => {
|
|
172
172
|
const a = te("el-tooltip"), i = te("el-button");
|
|
173
|
-
return s(),
|
|
173
|
+
return s(), y(
|
|
174
174
|
"i",
|
|
175
175
|
{
|
|
176
176
|
class: ce(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
@@ -187,22 +187,22 @@ const oe = (l, d) => {
|
|
|
187
187
|
active: t.value.active,
|
|
188
188
|
disabled: t.value.disabled
|
|
189
189
|
}]),
|
|
190
|
-
style:
|
|
190
|
+
style: Me(h.value),
|
|
191
191
|
onClick: v,
|
|
192
192
|
onDblclick: C,
|
|
193
193
|
onMouseenter: F,
|
|
194
194
|
onMouseleave: x
|
|
195
195
|
},
|
|
196
196
|
[
|
|
197
|
-
t.value.tableIconType === "icon" || !t.value.tableIconType ? (s(),
|
|
197
|
+
t.value.tableIconType === "icon" || !t.value.tableIconType ? (s(), y(
|
|
198
198
|
Z,
|
|
199
199
|
{ key: 0 },
|
|
200
200
|
[
|
|
201
|
-
t.value.notip || !t.value.title ? (s(),
|
|
201
|
+
t.value.notip || !t.value.title ? (s(), y(
|
|
202
202
|
Z,
|
|
203
203
|
{ key: 0 },
|
|
204
204
|
[
|
|
205
|
-
k.value === "iksig" ? (s(),
|
|
205
|
+
k.value === "iksig" ? (s(), y(
|
|
206
206
|
"i",
|
|
207
207
|
{
|
|
208
208
|
key: 0,
|
|
@@ -211,15 +211,15 @@ const oe = (l, d) => {
|
|
|
211
211
|
null,
|
|
212
212
|
2
|
|
213
213
|
/* CLASS */
|
|
214
|
-
)) : k.value === "svg" ? (s(),
|
|
214
|
+
)) : k.value === "svg" ? (s(), y("svg", jt, [
|
|
215
215
|
u("use", {
|
|
216
216
|
"xlink:href": `#${t.value.name}`
|
|
217
217
|
}, null, 8, Ht)
|
|
218
|
-
])) : k.value === "img" ? (s(),
|
|
218
|
+
])) : k.value === "img" ? (s(), y("img", {
|
|
219
219
|
key: 2,
|
|
220
220
|
src: t.value.name,
|
|
221
221
|
class: "h-[1em] w-[1em]"
|
|
222
|
-
}, null, 8, Ft)) : (s(),
|
|
222
|
+
}, null, 8, Ft)) : (s(), y(
|
|
223
223
|
"i",
|
|
224
224
|
{
|
|
225
225
|
key: 3,
|
|
@@ -240,7 +240,7 @@ const oe = (l, d) => {
|
|
|
240
240
|
"hide-after": 0
|
|
241
241
|
}, {
|
|
242
242
|
default: P(() => [
|
|
243
|
-
k.value === "iksig" ? (s(),
|
|
243
|
+
k.value === "iksig" ? (s(), y(
|
|
244
244
|
"i",
|
|
245
245
|
{
|
|
246
246
|
key: 0,
|
|
@@ -249,15 +249,15 @@ const oe = (l, d) => {
|
|
|
249
249
|
null,
|
|
250
250
|
2
|
|
251
251
|
/* CLASS */
|
|
252
|
-
)) : k.value === "svg" ? (s(),
|
|
252
|
+
)) : k.value === "svg" ? (s(), y("svg", Wt, [
|
|
253
253
|
u("use", {
|
|
254
254
|
"xlink:href": `#${t.value.name}`
|
|
255
255
|
}, null, 8, Gt)
|
|
256
|
-
])) : k.value === "img" ? (s(),
|
|
256
|
+
])) : k.value === "img" ? (s(), y("img", {
|
|
257
257
|
key: 2,
|
|
258
258
|
src: t.value.name,
|
|
259
259
|
class: "h-[1em] w-[1em]"
|
|
260
|
-
}, null, 8, Yt)) : (s(),
|
|
260
|
+
}, null, 8, Yt)) : (s(), y(
|
|
261
261
|
"i",
|
|
262
262
|
{
|
|
263
263
|
key: 3,
|
|
@@ -278,7 +278,7 @@ const oe = (l, d) => {
|
|
|
278
278
|
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
279
279
|
}), {
|
|
280
280
|
default: P(() => [
|
|
281
|
-
|
|
281
|
+
ae(
|
|
282
282
|
X(t.value.title),
|
|
283
283
|
1
|
|
284
284
|
/* TEXT */
|
|
@@ -293,15 +293,15 @@ const oe = (l, d) => {
|
|
|
293
293
|
);
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
}), Xt = /* @__PURE__ */ oe(Qt, [["__scopeId", "data-v-d5c74053"]]), Oe =
|
|
296
|
+
}), Xt = /* @__PURE__ */ oe(Qt, [["__scopeId", "data-v-d5c74053"]]), Oe = ze(Xt), qt = {}, Kt = {
|
|
297
297
|
t: "1672194715727",
|
|
298
298
|
class: "icon",
|
|
299
299
|
viewBox: "0 0 1024 1024",
|
|
300
300
|
version: "1.1",
|
|
301
301
|
"p-id": "2667"
|
|
302
302
|
};
|
|
303
|
-
function Zt(l,
|
|
304
|
-
return s(),
|
|
303
|
+
function Zt(l, c) {
|
|
304
|
+
return s(), y("svg", Kt, [...c[0] || (c[0] = [
|
|
305
305
|
u(
|
|
306
306
|
"path",
|
|
307
307
|
{
|
|
@@ -336,8 +336,8 @@ const Jt = /* @__PURE__ */ oe(qt, [["render", Zt]]), el = {}, tl = {
|
|
|
336
336
|
width: "200",
|
|
337
337
|
height: "200"
|
|
338
338
|
};
|
|
339
|
-
function ll(l,
|
|
340
|
-
return s(),
|
|
339
|
+
function ll(l, c) {
|
|
340
|
+
return s(), y("svg", tl, [...c[0] || (c[0] = [
|
|
341
341
|
u(
|
|
342
342
|
"path",
|
|
343
343
|
{
|
|
@@ -372,8 +372,8 @@ const al = /* @__PURE__ */ oe(el, [["render", ll]]), nl = {}, sl = {
|
|
|
372
372
|
width: "200",
|
|
373
373
|
height: "200"
|
|
374
374
|
};
|
|
375
|
-
function ol(l,
|
|
376
|
-
return s(),
|
|
375
|
+
function ol(l, c) {
|
|
376
|
+
return s(), y("svg", sl, [...c[0] || (c[0] = [
|
|
377
377
|
u(
|
|
378
378
|
"path",
|
|
379
379
|
{
|
|
@@ -408,8 +408,8 @@ const il = /* @__PURE__ */ oe(nl, [["render", ol]]), rl = {}, ul = {
|
|
|
408
408
|
width: "200",
|
|
409
409
|
height: "200"
|
|
410
410
|
};
|
|
411
|
-
function dl(l,
|
|
412
|
-
return s(),
|
|
411
|
+
function dl(l, c) {
|
|
412
|
+
return s(), y("svg", ul, [...c[0] || (c[0] = [
|
|
413
413
|
u(
|
|
414
414
|
"path",
|
|
415
415
|
{
|
|
@@ -444,8 +444,8 @@ const cl = /* @__PURE__ */ oe(rl, [["render", dl]]), pl = {}, fl = {
|
|
|
444
444
|
width: "200",
|
|
445
445
|
height: "200"
|
|
446
446
|
};
|
|
447
|
-
function hl(l,
|
|
448
|
-
return s(),
|
|
447
|
+
function hl(l, c) {
|
|
448
|
+
return s(), y("svg", fl, [...c[0] || (c[0] = [
|
|
449
449
|
u(
|
|
450
450
|
"path",
|
|
451
451
|
{
|
|
@@ -500,16 +500,16 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
502
|
setup(l) {
|
|
503
|
-
const
|
|
503
|
+
const c = l, { cLoadUrl: e } = Nt(c), t = (k) => Rt(e.value, k);
|
|
504
504
|
return (k, h) => {
|
|
505
|
-
const
|
|
506
|
-
return s(),
|
|
507
|
-
|
|
508
|
-
l.element[l.fixPropOpt.avatar] ? (s(), D(
|
|
505
|
+
const O = te("el-avatar");
|
|
506
|
+
return s(), y("div", gl, [
|
|
507
|
+
c.fixTypeOpt.group === l.element[c.fixPropOpt.type] ? (s(), D(vl, { key: 0 })) : c.fixTypeOpt.role === l.element[c.fixPropOpt.type] ? (s(), D(il, { key: 1 })) : c.fixTypeOpt.post === l.element[c.fixPropOpt.type] ? (s(), D(cl, { key: 2 })) : c.fixTypeOpt.user === l.element[c.fixPropOpt.type] ? (s(), y("div", ml, [
|
|
508
|
+
l.element[l.fixPropOpt.avatar] ? (s(), D(O, {
|
|
509
509
|
key: 0,
|
|
510
510
|
shape: "square",
|
|
511
511
|
src: t(l.fixPropOpt.avatar ? l.element[l.fixPropOpt.avatar] : "")
|
|
512
|
-
}, null, 8, ["src"])) : (s(),
|
|
512
|
+
}, null, 8, ["src"])) : (s(), y(
|
|
513
513
|
"div",
|
|
514
514
|
yl,
|
|
515
515
|
X(l.element[l.fixPropOpt.name].slice(-2)),
|
|
@@ -606,17 +606,22 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
606
606
|
__name: "GroupList",
|
|
607
607
|
props: at,
|
|
608
608
|
emits: ["change", "check", "handChild"],
|
|
609
|
-
setup(l, { emit:
|
|
609
|
+
setup(l, { emit: c }) {
|
|
610
610
|
var o, a;
|
|
611
611
|
const e = l, t = B(!1);
|
|
612
612
|
re(
|
|
613
613
|
() => e.handList,
|
|
614
614
|
() => {
|
|
615
|
+
var w;
|
|
616
|
+
if (!((w = e.handList) != null && w.length)) {
|
|
617
|
+
t.value = !1;
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
615
620
|
const i = e.list.filter(
|
|
616
|
-
(
|
|
621
|
+
(d) => e.chooseType.includes(d[e.fixPropOpt.type].toLowerCase())
|
|
617
622
|
).every(
|
|
618
|
-
(
|
|
619
|
-
(
|
|
623
|
+
(d) => e.handList.some(
|
|
624
|
+
(g) => g[e.fixPropOpt.id] === d[e.fixPropOpt.id]
|
|
620
625
|
)
|
|
621
626
|
);
|
|
622
627
|
t.value = i;
|
|
@@ -624,35 +629,35 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
624
629
|
{ immediate: !0 }
|
|
625
630
|
);
|
|
626
631
|
const k = R(() => {
|
|
627
|
-
var
|
|
628
|
-
const i = (
|
|
632
|
+
var d, g, W;
|
|
633
|
+
const i = (d = e.handList.filter(
|
|
629
634
|
($) => e.chooseType.includes($[e.fixPropOpt.type].toLowerCase())
|
|
630
|
-
)) == null ? void 0 :
|
|
635
|
+
)) == null ? void 0 : d.length, w = e.list.filter(
|
|
631
636
|
($) => e.chooseType.includes($[e.fixPropOpt.type].toLowerCase())
|
|
632
637
|
).every(
|
|
633
638
|
($) => e.handList.some(
|
|
634
639
|
(f) => f[e.fixPropOpt.id] === $[e.fixPropOpt.id]
|
|
635
640
|
)
|
|
636
641
|
);
|
|
637
|
-
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) :
|
|
642
|
+
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) : O.value = (W = (g = e.handList) == null ? void 0 : g[0]) == null ? void 0 : W[e.fixPropOpt.id], i > 0 && !w;
|
|
638
643
|
}), h = B(
|
|
639
644
|
e.handList.map((i) => i[e.fixPropOpt.id])
|
|
640
|
-
),
|
|
641
|
-
const
|
|
642
|
-
if (e.chooseType.includes(
|
|
643
|
-
return
|
|
645
|
+
), O = B((a = (o = e.handList) == null ? void 0 : o[0]) == null ? void 0 : a[e.fixPropOpt.id]), v = c, F = (i) => {
|
|
646
|
+
const w = i ? e.list.map((d) => {
|
|
647
|
+
if (e.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) && d.available !== !1)
|
|
648
|
+
return d[e.fixPropOpt.id];
|
|
644
649
|
}) : [];
|
|
645
|
-
v("change",
|
|
650
|
+
v("change", w, i ? e.list : []);
|
|
646
651
|
}, x = (i) => {
|
|
647
652
|
v("change", i, e.list);
|
|
648
653
|
}, C = (i) => {
|
|
649
654
|
v("change", i, e.list);
|
|
650
|
-
}, A = (i,
|
|
651
|
-
|
|
655
|
+
}, A = (i, w) => {
|
|
656
|
+
w || v("handChild", i);
|
|
652
657
|
};
|
|
653
|
-
return (i,
|
|
654
|
-
const
|
|
655
|
-
return s(),
|
|
658
|
+
return (i, w) => {
|
|
659
|
+
const d = te("el-scrollbar");
|
|
660
|
+
return s(), y(
|
|
656
661
|
Z,
|
|
657
662
|
null,
|
|
658
663
|
[
|
|
@@ -661,12 +666,12 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
661
666
|
i.multiple && i.list && i.list.length ? (s(), D(T(Le), {
|
|
662
667
|
key: 0,
|
|
663
668
|
modelValue: t.value,
|
|
664
|
-
"onUpdate:modelValue":
|
|
669
|
+
"onUpdate:modelValue": w[0] || (w[0] = (g) => t.value = g),
|
|
665
670
|
indeterminate: k.value,
|
|
666
671
|
onChange: F
|
|
667
672
|
}, {
|
|
668
|
-
default: P(() => [...
|
|
669
|
-
|
|
673
|
+
default: P(() => [...w[3] || (w[3] = [
|
|
674
|
+
ae(
|
|
670
675
|
"全选",
|
|
671
676
|
-1
|
|
672
677
|
/* CACHED */
|
|
@@ -675,38 +680,38 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
675
680
|
_: 1
|
|
676
681
|
/* STABLE */
|
|
677
682
|
}, 8, ["modelValue", "indeterminate"])) : b("v-if", !0),
|
|
678
|
-
|
|
683
|
+
m(d, null, {
|
|
679
684
|
default: P(() => [
|
|
680
|
-
i.list && i.list.length ? (s(),
|
|
681
|
-
i.multiple ? (s(), D(T(
|
|
685
|
+
i.list && i.list.length ? (s(), y("ul", bl, [
|
|
686
|
+
i.multiple ? (s(), D(T(je), {
|
|
682
687
|
key: 0,
|
|
683
688
|
modelValue: h.value,
|
|
684
|
-
"onUpdate:modelValue":
|
|
689
|
+
"onUpdate:modelValue": w[1] || (w[1] = (g) => h.value = g),
|
|
685
690
|
onChange: x
|
|
686
691
|
}, {
|
|
687
692
|
default: P(() => [
|
|
688
|
-
(s(!0),
|
|
693
|
+
(s(!0), y(
|
|
689
694
|
Z,
|
|
690
695
|
null,
|
|
691
|
-
Ae(i.list, (
|
|
696
|
+
Ae(i.list, (g) => {
|
|
692
697
|
var W;
|
|
693
|
-
return s(),
|
|
694
|
-
key:
|
|
698
|
+
return s(), y("li", {
|
|
699
|
+
key: g[e.fixPropOpt.id]
|
|
695
700
|
}, [
|
|
696
701
|
i.chooseType.includes(
|
|
697
|
-
|
|
698
|
-
) &&
|
|
702
|
+
g[e.fixPropOpt.type].toLowerCase()
|
|
703
|
+
) && g.available !== !1 ? (s(), D(T(Le), {
|
|
699
704
|
key: 0,
|
|
700
|
-
label:
|
|
701
|
-
disabled:
|
|
705
|
+
label: g[e.fixPropOpt.id],
|
|
706
|
+
disabled: g.available === !1
|
|
702
707
|
}, {
|
|
703
708
|
default: P(() => [
|
|
704
709
|
u("div", xl, [
|
|
705
710
|
u("div", Ol, [
|
|
706
|
-
|
|
711
|
+
m(pe, {
|
|
707
712
|
fixTypeOpt: e.fixTypeOpt,
|
|
708
713
|
fixPropOpt: e.fixPropOpt,
|
|
709
|
-
element:
|
|
714
|
+
element: g,
|
|
710
715
|
imageBaseUrl: e.imageBaseUrl
|
|
711
716
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
712
717
|
]),
|
|
@@ -714,14 +719,14 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
714
719
|
u(
|
|
715
720
|
"div",
|
|
716
721
|
Cl,
|
|
717
|
-
X(
|
|
722
|
+
X(g[e.fixPropOpt.name]),
|
|
718
723
|
1
|
|
719
724
|
/* TEXT */
|
|
720
725
|
),
|
|
721
|
-
|
|
726
|
+
g[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), y(
|
|
722
727
|
"div",
|
|
723
728
|
Bl,
|
|
724
|
-
" (" + X(
|
|
729
|
+
" (" + X(g.userCount) + ") ",
|
|
725
730
|
1
|
|
726
731
|
/* TEXT */
|
|
727
732
|
)) : b("v-if", !0)
|
|
@@ -730,8 +735,8 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
730
735
|
]),
|
|
731
736
|
_: 2
|
|
732
737
|
/* DYNAMIC */
|
|
733
|
-
}, 1032, ["label", "disabled"])) : (s(),
|
|
734
|
-
|
|
738
|
+
}, 1032, ["label", "disabled"])) : (s(), y("div", Pl, [
|
|
739
|
+
w[4] || (w[4] = u(
|
|
735
740
|
"div",
|
|
736
741
|
{ class: "side" },
|
|
737
742
|
null,
|
|
@@ -739,10 +744,10 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
739
744
|
/* CACHED */
|
|
740
745
|
)),
|
|
741
746
|
u("div", Ll, [
|
|
742
|
-
|
|
747
|
+
m(pe, {
|
|
743
748
|
fixTypeOpt: e.fixTypeOpt,
|
|
744
749
|
fixPropOpt: e.fixPropOpt,
|
|
745
|
-
element:
|
|
750
|
+
element: g,
|
|
746
751
|
imageBaseUrl: e.imageBaseUrl
|
|
747
752
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
748
753
|
]),
|
|
@@ -750,31 +755,31 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
750
755
|
u(
|
|
751
756
|
"div",
|
|
752
757
|
Tl,
|
|
753
|
-
X(
|
|
758
|
+
X(g[e.fixPropOpt.name]),
|
|
754
759
|
1
|
|
755
760
|
/* TEXT */
|
|
756
761
|
),
|
|
757
|
-
|
|
762
|
+
g[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), y(
|
|
758
763
|
"div",
|
|
759
764
|
Ul,
|
|
760
|
-
" (" + X(
|
|
765
|
+
" (" + X(g.userCount) + ") ",
|
|
761
766
|
1
|
|
762
767
|
/* TEXT */
|
|
763
768
|
)) : b("v-if", !0)
|
|
764
769
|
])
|
|
765
770
|
])),
|
|
766
|
-
|
|
771
|
+
g[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), y("span", {
|
|
767
772
|
key: 2,
|
|
768
773
|
class: ce(["nextLevel", {
|
|
769
774
|
"is-disabled": (W = h.value) == null ? void 0 : W.find(
|
|
770
|
-
($) => $ ===
|
|
775
|
+
($) => $ === g[e.fixPropOpt.id]
|
|
771
776
|
)
|
|
772
777
|
}]),
|
|
773
778
|
onClick: ($) => {
|
|
774
779
|
var f;
|
|
775
780
|
return A(
|
|
776
|
-
|
|
777
|
-
(f = h.value) == null ? void 0 : f.find((
|
|
781
|
+
g,
|
|
782
|
+
(f = h.value) == null ? void 0 : f.find((ne) => ne === g[e.fixPropOpt.id])
|
|
778
783
|
);
|
|
779
784
|
}
|
|
780
785
|
}, " 下级", 10, Vl)) : b("v-if", !0)
|
|
@@ -786,36 +791,36 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
786
791
|
]),
|
|
787
792
|
_: 1
|
|
788
793
|
/* STABLE */
|
|
789
|
-
}, 8, ["modelValue"])) : (s(), D(T(
|
|
794
|
+
}, 8, ["modelValue"])) : (s(), D(T(He), {
|
|
790
795
|
key: 1,
|
|
791
796
|
isIndeterminate: k.value,
|
|
792
|
-
modelValue:
|
|
793
|
-
"onUpdate:modelValue":
|
|
797
|
+
modelValue: O.value,
|
|
798
|
+
"onUpdate:modelValue": w[2] || (w[2] = (g) => O.value = g),
|
|
794
799
|
onChange: C
|
|
795
800
|
}, {
|
|
796
801
|
default: P(() => [
|
|
797
|
-
(s(!0),
|
|
802
|
+
(s(!0), y(
|
|
798
803
|
Z,
|
|
799
804
|
null,
|
|
800
|
-
Ae(i.list, (
|
|
805
|
+
Ae(i.list, (g) => {
|
|
801
806
|
var W;
|
|
802
|
-
return s(),
|
|
807
|
+
return s(), y("li", {
|
|
803
808
|
class: "w-full",
|
|
804
|
-
key:
|
|
809
|
+
key: g[e.fixPropOpt.id]
|
|
805
810
|
}, [
|
|
806
811
|
i.chooseType.includes(
|
|
807
|
-
|
|
808
|
-
) &&
|
|
812
|
+
g[e.fixPropOpt.type].toLowerCase()
|
|
813
|
+
) && g.available !== !1 ? (s(), D(T(Fe), {
|
|
809
814
|
key: 0,
|
|
810
|
-
label:
|
|
815
|
+
label: g[e.fixPropOpt.id]
|
|
811
816
|
}, {
|
|
812
817
|
default: P(() => [
|
|
813
818
|
u("div", Il, [
|
|
814
819
|
u("div", _l, [
|
|
815
|
-
|
|
820
|
+
m(pe, {
|
|
816
821
|
fixTypeOpt: e.fixTypeOpt,
|
|
817
822
|
fixPropOpt: e.fixPropOpt,
|
|
818
|
-
element:
|
|
823
|
+
element: g,
|
|
819
824
|
imageBaseUrl: e.imageBaseUrl
|
|
820
825
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
821
826
|
]),
|
|
@@ -823,14 +828,14 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
823
828
|
u(
|
|
824
829
|
"div",
|
|
825
830
|
$l,
|
|
826
|
-
X(
|
|
831
|
+
X(g[e.fixPropOpt.name]),
|
|
827
832
|
1
|
|
828
833
|
/* TEXT */
|
|
829
834
|
),
|
|
830
|
-
|
|
835
|
+
g[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), y(
|
|
831
836
|
"div",
|
|
832
837
|
El,
|
|
833
|
-
" (" + X((
|
|
838
|
+
" (" + X((g == null ? void 0 : g.userCount) || 0) + ") ",
|
|
834
839
|
1
|
|
835
840
|
/* TEXT */
|
|
836
841
|
)) : b("v-if", !0)
|
|
@@ -839,8 +844,8 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
839
844
|
]),
|
|
840
845
|
_: 2
|
|
841
846
|
/* DYNAMIC */
|
|
842
|
-
}, 1032, ["label"])) : (s(),
|
|
843
|
-
|
|
847
|
+
}, 1032, ["label"])) : (s(), y("div", Ml, [
|
|
848
|
+
w[5] || (w[5] = u(
|
|
844
849
|
"div",
|
|
845
850
|
{ class: "side" },
|
|
846
851
|
null,
|
|
@@ -848,10 +853,10 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
848
853
|
/* CACHED */
|
|
849
854
|
)),
|
|
850
855
|
u("div", zl, [
|
|
851
|
-
|
|
856
|
+
m(pe, {
|
|
852
857
|
fixTypeOpt: e.fixTypeOpt,
|
|
853
858
|
fixPropOpt: e.fixPropOpt,
|
|
854
|
-
element:
|
|
859
|
+
element: g,
|
|
855
860
|
imageBaseUrl: e.imageBaseUrl
|
|
856
861
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
857
862
|
]),
|
|
@@ -859,31 +864,31 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
859
864
|
u(
|
|
860
865
|
"div",
|
|
861
866
|
Nl,
|
|
862
|
-
X(
|
|
867
|
+
X(g[e.fixPropOpt.name]),
|
|
863
868
|
1
|
|
864
869
|
/* TEXT */
|
|
865
870
|
),
|
|
866
|
-
|
|
871
|
+
g[e.fixPropOpt.type] === e.fixTypeOpt.group ? (s(), y(
|
|
867
872
|
"div",
|
|
868
873
|
jl,
|
|
869
|
-
" (" + X(
|
|
874
|
+
" (" + X(g.userCount) + ") ",
|
|
870
875
|
1
|
|
871
876
|
/* TEXT */
|
|
872
877
|
)) : b("v-if", !0)
|
|
873
878
|
])
|
|
874
879
|
])),
|
|
875
|
-
|
|
880
|
+
g[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (s(), y("span", {
|
|
876
881
|
key: 2,
|
|
877
882
|
class: ce(["nextLevel", {
|
|
878
883
|
"is-disabled": (W = h.value) == null ? void 0 : W.find(
|
|
879
|
-
($) => $ ===
|
|
884
|
+
($) => $ === g[e.fixPropOpt.id]
|
|
880
885
|
)
|
|
881
886
|
}]),
|
|
882
887
|
onClick: ($) => {
|
|
883
888
|
var f;
|
|
884
889
|
return A(
|
|
885
|
-
|
|
886
|
-
(f = h.value) == null ? void 0 : f.find((
|
|
890
|
+
g,
|
|
891
|
+
(f = h.value) == null ? void 0 : f.find((ne) => ne === g[e.fixPropOpt.id])
|
|
887
892
|
);
|
|
888
893
|
}
|
|
889
894
|
}, " 下级", 10, Hl)) : b("v-if", !0)
|
|
@@ -896,8 +901,8 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
896
901
|
_: 1
|
|
897
902
|
/* STABLE */
|
|
898
903
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
899
|
-
])) : (s(),
|
|
900
|
-
|
|
904
|
+
])) : (s(), y("div", Fl, [
|
|
905
|
+
w[6] || (w[6] = u(
|
|
901
906
|
"img",
|
|
902
907
|
{
|
|
903
908
|
src: lt,
|
|
@@ -926,7 +931,7 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
926
931
|
);
|
|
927
932
|
};
|
|
928
933
|
}
|
|
929
|
-
}), Gl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-
|
|
934
|
+
}), Gl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-f7a238bb"]]), Yl = { class: "left-pick-list" }, Ql = {
|
|
930
935
|
key: 0,
|
|
931
936
|
class: "post-view-list"
|
|
932
937
|
}, Xl = { class: "iconBox" }, ql = {
|
|
@@ -942,19 +947,19 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
942
947
|
__name: "PostList",
|
|
943
948
|
props: at,
|
|
944
949
|
emits: ["change", "check"],
|
|
945
|
-
setup(l, { emit:
|
|
950
|
+
setup(l, { emit: c }) {
|
|
946
951
|
var A, o;
|
|
947
952
|
const e = l, t = R(() => {
|
|
948
953
|
var a, i;
|
|
949
954
|
return ((a = e.handList) == null ? void 0 : a.length) === ((i = e.list) == null ? void 0 : i.length);
|
|
950
955
|
}), k = R(() => {
|
|
951
|
-
var
|
|
952
|
-
const a = (
|
|
953
|
-
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) :
|
|
956
|
+
var w, d, g, W;
|
|
957
|
+
const a = (w = e.handList) == null ? void 0 : w.length, i = (d = e.list) == null ? void 0 : d.length;
|
|
958
|
+
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) : O.value = (W = (g = e.handList) == null ? void 0 : g[0]) == null ? void 0 : W[e.fixPropOpt.id], a > 0 && a < i;
|
|
954
959
|
}), h = B(
|
|
955
960
|
e.handList.map((a) => a[e.fixPropOpt.id])
|
|
956
|
-
),
|
|
957
|
-
const i = a ? e.list.map((
|
|
961
|
+
), O = B((o = (A = e.handList) == null ? void 0 : A[0]) == null ? void 0 : o[e.fixPropOpt.id]), v = c, F = (a) => {
|
|
962
|
+
const i = a ? e.list.map((w) => w[e.fixPropOpt.id]) : [];
|
|
958
963
|
v("change", i, a ? e.list : []);
|
|
959
964
|
}, x = (a) => {
|
|
960
965
|
v("change", a, e.list);
|
|
@@ -962,8 +967,8 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
962
967
|
v("change", a, e.list);
|
|
963
968
|
};
|
|
964
969
|
return (a, i) => {
|
|
965
|
-
const
|
|
966
|
-
return s(),
|
|
970
|
+
const w = te("el-scrollbar");
|
|
971
|
+
return s(), y(
|
|
967
972
|
Z,
|
|
968
973
|
null,
|
|
969
974
|
[
|
|
@@ -972,12 +977,12 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
972
977
|
a.multiple && a.chooseType.includes("post") && a.list && a.list.length ? (s(), D(T(Le), {
|
|
973
978
|
key: 0,
|
|
974
979
|
modelValue: t.value,
|
|
975
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
980
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => t.value = d),
|
|
976
981
|
indeterminate: k.value,
|
|
977
982
|
onChange: F
|
|
978
983
|
}, {
|
|
979
984
|
default: P(() => [...i[3] || (i[3] = [
|
|
980
|
-
|
|
985
|
+
ae(
|
|
981
986
|
"全选",
|
|
982
987
|
-1
|
|
983
988
|
/* CACHED */
|
|
@@ -986,46 +991,46 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
986
991
|
_: 1
|
|
987
992
|
/* STABLE */
|
|
988
993
|
}, 8, ["modelValue", "indeterminate"])) : b("v-if", !0),
|
|
989
|
-
|
|
994
|
+
m(w, null, {
|
|
990
995
|
default: P(() => [
|
|
991
|
-
a.list && a.list.length ? (s(),
|
|
992
|
-
a.multiple ? (s(), D(T(
|
|
996
|
+
a.list && a.list.length ? (s(), y("ul", Ql, [
|
|
997
|
+
a.multiple ? (s(), D(T(je), {
|
|
993
998
|
key: 0,
|
|
994
999
|
modelValue: h.value,
|
|
995
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
1000
|
+
"onUpdate:modelValue": i[1] || (i[1] = (d) => h.value = d),
|
|
996
1001
|
onChange: x
|
|
997
1002
|
}, {
|
|
998
1003
|
default: P(() => [
|
|
999
|
-
(s(!0),
|
|
1004
|
+
(s(!0), y(
|
|
1000
1005
|
Z,
|
|
1001
1006
|
null,
|
|
1002
|
-
Ae(a.list, (
|
|
1003
|
-
key:
|
|
1007
|
+
Ae(a.list, (d) => (s(), y("li", {
|
|
1008
|
+
key: d[e.fixPropOpt.id]
|
|
1004
1009
|
}, [
|
|
1005
|
-
a.chooseType.includes(
|
|
1010
|
+
a.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), D(T(Le), {
|
|
1006
1011
|
key: 0,
|
|
1007
|
-
label:
|
|
1012
|
+
label: d[e.fixPropOpt.id]
|
|
1008
1013
|
}, {
|
|
1009
1014
|
default: P(() => [
|
|
1010
1015
|
u("div", Xl, [
|
|
1011
|
-
|
|
1016
|
+
m(pe, {
|
|
1012
1017
|
fixTypeOpt: e.fixTypeOpt,
|
|
1013
1018
|
fixPropOpt: e.fixPropOpt,
|
|
1014
|
-
element:
|
|
1019
|
+
element: d,
|
|
1015
1020
|
imageBaseUrl: e.imageBaseUrl
|
|
1016
1021
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1017
1022
|
]),
|
|
1018
1023
|
u(
|
|
1019
1024
|
"p",
|
|
1020
1025
|
null,
|
|
1021
|
-
X(
|
|
1026
|
+
X(d[e.fixPropOpt.name]),
|
|
1022
1027
|
1
|
|
1023
1028
|
/* TEXT */
|
|
1024
1029
|
)
|
|
1025
1030
|
]),
|
|
1026
1031
|
_: 2
|
|
1027
1032
|
/* DYNAMIC */
|
|
1028
|
-
}, 1032, ["label"])) : (s(),
|
|
1033
|
+
}, 1032, ["label"])) : (s(), y("div", ql, [
|
|
1029
1034
|
i[4] || (i[4] = u(
|
|
1030
1035
|
"div",
|
|
1031
1036
|
{ class: "side" },
|
|
@@ -1034,17 +1039,17 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1034
1039
|
/* CACHED */
|
|
1035
1040
|
)),
|
|
1036
1041
|
u("div", Kl, [
|
|
1037
|
-
|
|
1042
|
+
m(pe, {
|
|
1038
1043
|
fixTypeOpt: e.fixTypeOpt,
|
|
1039
1044
|
fixPropOpt: e.fixPropOpt,
|
|
1040
|
-
element:
|
|
1045
|
+
element: d,
|
|
1041
1046
|
imageBaseUrl: e.imageBaseUrl
|
|
1042
1047
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1043
1048
|
]),
|
|
1044
1049
|
u(
|
|
1045
1050
|
"div",
|
|
1046
1051
|
Zl,
|
|
1047
|
-
X(
|
|
1052
|
+
X(d[e.fixPropOpt.name]),
|
|
1048
1053
|
1
|
|
1049
1054
|
/* TEXT */
|
|
1050
1055
|
)
|
|
@@ -1056,39 +1061,39 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1056
1061
|
]),
|
|
1057
1062
|
_: 1
|
|
1058
1063
|
/* STABLE */
|
|
1059
|
-
}, 8, ["modelValue"])) : (s(), D(T(
|
|
1064
|
+
}, 8, ["modelValue"])) : (s(), D(T(He), {
|
|
1060
1065
|
key: 1,
|
|
1061
1066
|
isIndeterminate: k.value,
|
|
1062
|
-
modelValue:
|
|
1063
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
1067
|
+
modelValue: O.value,
|
|
1068
|
+
"onUpdate:modelValue": i[2] || (i[2] = (d) => O.value = d),
|
|
1064
1069
|
onChange: C
|
|
1065
1070
|
}, {
|
|
1066
1071
|
default: P(() => [
|
|
1067
|
-
(s(!0),
|
|
1072
|
+
(s(!0), y(
|
|
1068
1073
|
Z,
|
|
1069
1074
|
null,
|
|
1070
|
-
Ae(a.list, (
|
|
1075
|
+
Ae(a.list, (d) => (s(), y("li", {
|
|
1071
1076
|
class: "w-full",
|
|
1072
|
-
key:
|
|
1077
|
+
key: d[e.fixPropOpt.id]
|
|
1073
1078
|
}, [
|
|
1074
|
-
a.chooseType.includes(
|
|
1079
|
+
a.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), D(T(Fe), {
|
|
1075
1080
|
key: 0,
|
|
1076
|
-
label:
|
|
1081
|
+
label: d[e.fixPropOpt.id]
|
|
1077
1082
|
}, {
|
|
1078
1083
|
default: P(() => [
|
|
1079
1084
|
u("div", Jl, [
|
|
1080
1085
|
u("div", ea, [
|
|
1081
|
-
|
|
1086
|
+
m(pe, {
|
|
1082
1087
|
fixTypeOpt: e.fixTypeOpt,
|
|
1083
1088
|
fixPropOpt: e.fixPropOpt,
|
|
1084
|
-
element:
|
|
1089
|
+
element: d,
|
|
1085
1090
|
imageBaseUrl: e.imageBaseUrl
|
|
1086
1091
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1087
1092
|
]),
|
|
1088
1093
|
u(
|
|
1089
1094
|
"p",
|
|
1090
1095
|
null,
|
|
1091
|
-
X(
|
|
1096
|
+
X(d[e.fixPropOpt.name]),
|
|
1092
1097
|
1
|
|
1093
1098
|
/* TEXT */
|
|
1094
1099
|
)
|
|
@@ -1096,7 +1101,7 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1096
1101
|
]),
|
|
1097
1102
|
_: 2
|
|
1098
1103
|
/* DYNAMIC */
|
|
1099
|
-
}, 1032, ["label"])) : (s(),
|
|
1104
|
+
}, 1032, ["label"])) : (s(), y("div", ta, [
|
|
1100
1105
|
i[5] || (i[5] = u(
|
|
1101
1106
|
"div",
|
|
1102
1107
|
{ class: "side" },
|
|
@@ -1105,17 +1110,17 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1105
1110
|
/* CACHED */
|
|
1106
1111
|
)),
|
|
1107
1112
|
u("div", la, [
|
|
1108
|
-
|
|
1113
|
+
m(pe, {
|
|
1109
1114
|
fixTypeOpt: e.fixTypeOpt,
|
|
1110
1115
|
fixPropOpt: e.fixPropOpt,
|
|
1111
|
-
element:
|
|
1116
|
+
element: d,
|
|
1112
1117
|
imageBaseUrl: e.imageBaseUrl
|
|
1113
1118
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1114
1119
|
]),
|
|
1115
1120
|
u(
|
|
1116
1121
|
"div",
|
|
1117
1122
|
aa,
|
|
1118
|
-
X(
|
|
1123
|
+
X(d[e.fixPropOpt.name]),
|
|
1119
1124
|
1
|
|
1120
1125
|
/* TEXT */
|
|
1121
1126
|
)
|
|
@@ -1128,7 +1133,7 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1128
1133
|
_: 1
|
|
1129
1134
|
/* STABLE */
|
|
1130
1135
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
1131
|
-
])) : (s(),
|
|
1136
|
+
])) : (s(), y("div", na, [
|
|
1132
1137
|
i[6] || (i[6] = u(
|
|
1133
1138
|
"img",
|
|
1134
1139
|
{
|
|
@@ -1174,19 +1179,19 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1174
1179
|
__name: "RoleList",
|
|
1175
1180
|
props: at,
|
|
1176
1181
|
emits: ["change", "check"],
|
|
1177
|
-
setup(l, { emit:
|
|
1182
|
+
setup(l, { emit: c }) {
|
|
1178
1183
|
var A, o;
|
|
1179
1184
|
const e = l, t = R(() => {
|
|
1180
1185
|
var a, i;
|
|
1181
1186
|
return ((a = e.handList) == null ? void 0 : a.length) === ((i = e.list) == null ? void 0 : i.length);
|
|
1182
1187
|
}), k = R(() => {
|
|
1183
|
-
var
|
|
1184
|
-
const a = (
|
|
1185
|
-
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) :
|
|
1188
|
+
var w, d, g, W;
|
|
1189
|
+
const a = (w = e.handList) == null ? void 0 : w.length, i = (d = e.list) == null ? void 0 : d.length;
|
|
1190
|
+
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) : O.value = (W = (g = e.handList) == null ? void 0 : g[0]) == null ? void 0 : W[e.fixPropOpt.id], a > 0 && a < i;
|
|
1186
1191
|
}), h = B(
|
|
1187
1192
|
e.handList.map((a) => a[e.fixPropOpt.id])
|
|
1188
|
-
),
|
|
1189
|
-
const i = a ? e.list.map((
|
|
1193
|
+
), O = B((o = (A = e.handList) == null ? void 0 : A[0]) == null ? void 0 : o[e.fixPropOpt.id]), v = c, F = (a) => {
|
|
1194
|
+
const i = a ? e.list.map((w) => w[e.fixPropOpt.id]) : [];
|
|
1190
1195
|
v("change", i, a ? e.list : []);
|
|
1191
1196
|
}, x = (a) => {
|
|
1192
1197
|
v("change", a, e.list);
|
|
@@ -1194,8 +1199,8 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1194
1199
|
v("change", a, e.list);
|
|
1195
1200
|
};
|
|
1196
1201
|
return (a, i) => {
|
|
1197
|
-
const
|
|
1198
|
-
return s(),
|
|
1202
|
+
const w = te("el-scrollbar");
|
|
1203
|
+
return s(), y(
|
|
1199
1204
|
Z,
|
|
1200
1205
|
null,
|
|
1201
1206
|
[
|
|
@@ -1204,12 +1209,12 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1204
1209
|
a.multiple && a.chooseType.includes("role") && a.list && a.list.length ? (s(), D(T(Le), {
|
|
1205
1210
|
key: 0,
|
|
1206
1211
|
modelValue: t.value,
|
|
1207
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1212
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => t.value = d),
|
|
1208
1213
|
indeterminate: k.value,
|
|
1209
1214
|
onChange: F
|
|
1210
1215
|
}, {
|
|
1211
1216
|
default: P(() => [...i[3] || (i[3] = [
|
|
1212
|
-
|
|
1217
|
+
ae(
|
|
1213
1218
|
"全选",
|
|
1214
1219
|
-1
|
|
1215
1220
|
/* CACHED */
|
|
@@ -1218,44 +1223,44 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1218
1223
|
_: 1
|
|
1219
1224
|
/* STABLE */
|
|
1220
1225
|
}, 8, ["modelValue", "indeterminate"])) : b("v-if", !0),
|
|
1221
|
-
|
|
1226
|
+
m(w, null, {
|
|
1222
1227
|
default: P(() => [
|
|
1223
|
-
a.list && a.list.length ? (s(),
|
|
1224
|
-
a.multiple ? (s(), D(T(
|
|
1228
|
+
a.list && a.list.length ? (s(), y("ul", ra, [
|
|
1229
|
+
a.multiple ? (s(), D(T(je), {
|
|
1225
1230
|
key: 0,
|
|
1226
1231
|
modelValue: h.value,
|
|
1227
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
1232
|
+
"onUpdate:modelValue": i[1] || (i[1] = (d) => h.value = d),
|
|
1228
1233
|
onChange: x
|
|
1229
1234
|
}, {
|
|
1230
1235
|
default: P(() => [
|
|
1231
|
-
(s(!0),
|
|
1236
|
+
(s(!0), y(
|
|
1232
1237
|
Z,
|
|
1233
1238
|
null,
|
|
1234
|
-
Ae(a.list, (
|
|
1235
|
-
key:
|
|
1239
|
+
Ae(a.list, (d) => (s(), y("li", {
|
|
1240
|
+
key: d[a.fixPropOpt.id]
|
|
1236
1241
|
}, [
|
|
1237
|
-
a.chooseType.includes(
|
|
1242
|
+
a.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), D(T(Le), {
|
|
1238
1243
|
key: 0,
|
|
1239
|
-
label:
|
|
1240
|
-
value:
|
|
1241
|
-
disabled:
|
|
1244
|
+
label: d[a.fixPropOpt.id],
|
|
1245
|
+
value: d[a.fixPropOpt.id],
|
|
1246
|
+
disabled: d.disabled
|
|
1242
1247
|
}, {
|
|
1243
1248
|
default: P(() => [
|
|
1244
1249
|
u("div", ua, [
|
|
1245
|
-
|
|
1250
|
+
m(pe, {
|
|
1246
1251
|
fixTypeOpt: e.fixTypeOpt,
|
|
1247
1252
|
fixPropOpt: e.fixPropOpt,
|
|
1248
|
-
element:
|
|
1253
|
+
element: d,
|
|
1249
1254
|
imageBaseUrl: e.imageBaseUrl
|
|
1250
1255
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1251
1256
|
]),
|
|
1252
1257
|
u("p", {
|
|
1253
|
-
title:
|
|
1254
|
-
}, X(
|
|
1258
|
+
title: d[a.fixPropOpt.name]
|
|
1259
|
+
}, X(d[a.fixPropOpt.name]), 9, da)
|
|
1255
1260
|
]),
|
|
1256
1261
|
_: 2
|
|
1257
1262
|
/* DYNAMIC */
|
|
1258
|
-
}, 1032, ["label", "value", "disabled"])) : (s(),
|
|
1263
|
+
}, 1032, ["label", "value", "disabled"])) : (s(), y("div", ca, [
|
|
1259
1264
|
i[4] || (i[4] = u(
|
|
1260
1265
|
"div",
|
|
1261
1266
|
{ class: "side" },
|
|
@@ -1264,17 +1269,17 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1264
1269
|
/* CACHED */
|
|
1265
1270
|
)),
|
|
1266
1271
|
u("div", pa, [
|
|
1267
|
-
|
|
1272
|
+
m(pe, {
|
|
1268
1273
|
fixTypeOpt: e.fixTypeOpt,
|
|
1269
1274
|
fixPropOpt: e.fixPropOpt,
|
|
1270
|
-
element:
|
|
1275
|
+
element: d,
|
|
1271
1276
|
imageBaseUrl: e.imageBaseUrl
|
|
1272
1277
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1273
1278
|
]),
|
|
1274
1279
|
u("div", {
|
|
1275
1280
|
class: "title",
|
|
1276
|
-
title:
|
|
1277
|
-
}, X(
|
|
1281
|
+
title: d[a.fixPropOpt.name]
|
|
1282
|
+
}, X(d[a.fixPropOpt.name]), 9, fa)
|
|
1278
1283
|
]))
|
|
1279
1284
|
]))),
|
|
1280
1285
|
128
|
|
@@ -1283,45 +1288,45 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1283
1288
|
]),
|
|
1284
1289
|
_: 1
|
|
1285
1290
|
/* STABLE */
|
|
1286
|
-
}, 8, ["modelValue"])) : (s(), D(T(
|
|
1291
|
+
}, 8, ["modelValue"])) : (s(), D(T(He), {
|
|
1287
1292
|
key: 1,
|
|
1288
1293
|
indeterminate: k.value,
|
|
1289
|
-
modelValue:
|
|
1290
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
1294
|
+
modelValue: O.value,
|
|
1295
|
+
"onUpdate:modelValue": i[2] || (i[2] = (d) => O.value = d),
|
|
1291
1296
|
onChange: C
|
|
1292
1297
|
}, {
|
|
1293
1298
|
default: P(() => [
|
|
1294
|
-
(s(!0),
|
|
1299
|
+
(s(!0), y(
|
|
1295
1300
|
Z,
|
|
1296
1301
|
null,
|
|
1297
|
-
Ae(a.list, (
|
|
1302
|
+
Ae(a.list, (d) => (s(), y("li", {
|
|
1298
1303
|
class: "w-full",
|
|
1299
|
-
key:
|
|
1304
|
+
key: d[a.fixPropOpt.id]
|
|
1300
1305
|
}, [
|
|
1301
|
-
a.chooseType.includes(
|
|
1306
|
+
a.chooseType.includes(d[e.fixPropOpt.type].toLowerCase()) ? (s(), D(T(Fe), {
|
|
1302
1307
|
key: 0,
|
|
1303
|
-
label:
|
|
1304
|
-
value:
|
|
1305
|
-
disabled:
|
|
1308
|
+
label: d[a.fixPropOpt.id],
|
|
1309
|
+
value: d[a.fixPropOpt.id],
|
|
1310
|
+
disabled: d.disabled
|
|
1306
1311
|
}, {
|
|
1307
1312
|
default: P(() => [
|
|
1308
1313
|
u("div", ha, [
|
|
1309
1314
|
u("div", va, [
|
|
1310
|
-
|
|
1315
|
+
m(pe, {
|
|
1311
1316
|
fixTypeOpt: e.fixTypeOpt,
|
|
1312
1317
|
fixPropOpt: e.fixPropOpt,
|
|
1313
|
-
element:
|
|
1318
|
+
element: d,
|
|
1314
1319
|
imageBaseUrl: e.imageBaseUrl
|
|
1315
1320
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1316
1321
|
]),
|
|
1317
1322
|
u("p", {
|
|
1318
|
-
title:
|
|
1319
|
-
}, X(
|
|
1323
|
+
title: d[a.fixPropOpt.name]
|
|
1324
|
+
}, X(d[a.fixPropOpt.name]), 9, ga)
|
|
1320
1325
|
])
|
|
1321
1326
|
]),
|
|
1322
1327
|
_: 2
|
|
1323
1328
|
/* DYNAMIC */
|
|
1324
|
-
}, 1032, ["label", "value", "disabled"])) : (s(),
|
|
1329
|
+
}, 1032, ["label", "value", "disabled"])) : (s(), y("div", ma, [
|
|
1325
1330
|
i[5] || (i[5] = u(
|
|
1326
1331
|
"div",
|
|
1327
1332
|
{ class: "side" },
|
|
@@ -1330,17 +1335,17 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1330
1335
|
/* CACHED */
|
|
1331
1336
|
)),
|
|
1332
1337
|
u("div", ya, [
|
|
1333
|
-
|
|
1338
|
+
m(pe, {
|
|
1334
1339
|
fixTypeOpt: e.fixTypeOpt,
|
|
1335
1340
|
fixPropOpt: e.fixPropOpt,
|
|
1336
|
-
element:
|
|
1341
|
+
element: d,
|
|
1337
1342
|
imageBaseUrl: e.imageBaseUrl
|
|
1338
1343
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1339
1344
|
]),
|
|
1340
1345
|
u("div", {
|
|
1341
1346
|
class: "title",
|
|
1342
|
-
title:
|
|
1343
|
-
}, X(
|
|
1347
|
+
title: d[a.fixPropOpt.name]
|
|
1348
|
+
}, X(d[a.fixPropOpt.name]), 9, Aa)
|
|
1344
1349
|
]))
|
|
1345
1350
|
]))),
|
|
1346
1351
|
128
|
|
@@ -1350,7 +1355,7 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1350
1355
|
_: 1
|
|
1351
1356
|
/* STABLE */
|
|
1352
1357
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1353
|
-
])) : (s(),
|
|
1358
|
+
])) : (s(), y("div", ka, [
|
|
1354
1359
|
i[6] || (i[6] = u(
|
|
1355
1360
|
"img",
|
|
1356
1361
|
{
|
|
@@ -1381,7 +1386,7 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1381
1386
|
};
|
|
1382
1387
|
}
|
|
1383
1388
|
}), xa = /* @__PURE__ */ oe(ba, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1384
|
-
var
|
|
1389
|
+
var $e = /* @__PURE__ */ ((l) => (l.group = "group", l.role = "role", l.post = "post", l))($e || {});
|
|
1385
1390
|
const Oa = {
|
|
1386
1391
|
// 是否允许选择子集
|
|
1387
1392
|
children: {
|
|
@@ -1551,31 +1556,31 @@ const Oa = {
|
|
|
1551
1556
|
default: !1
|
|
1552
1557
|
}
|
|
1553
1558
|
}, pt = (l) => {
|
|
1554
|
-
const
|
|
1555
|
-
return new URLSearchParams(
|
|
1559
|
+
const c = window.location.search;
|
|
1560
|
+
return new URLSearchParams(c).get(l);
|
|
1556
1561
|
}, wa = (l) => {
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1562
|
+
const c = Te.local.getItem("x_domain");
|
|
1563
|
+
c && (l["X-DOMAIN"] = c);
|
|
1559
1564
|
}, Ca = (l) => {
|
|
1560
1565
|
var e;
|
|
1561
|
-
const
|
|
1562
|
-
if (
|
|
1563
|
-
l["X-DOMAIN"] =
|
|
1566
|
+
const c = pt("domain");
|
|
1567
|
+
if (c) {
|
|
1568
|
+
l["X-DOMAIN"] = c;
|
|
1564
1569
|
const t = pt("code");
|
|
1565
|
-
|
|
1570
|
+
c === "APPLICATION" && (l["X-APP"] = t);
|
|
1566
1571
|
} else
|
|
1567
1572
|
wa(l);
|
|
1568
1573
|
(e = Te.local.getItem("tenant")) == null || e.code;
|
|
1569
|
-
}, Ba = (l,
|
|
1570
|
-
const e = B([]), t = async (h,
|
|
1574
|
+
}, Ba = (l, c) => {
|
|
1575
|
+
const e = B([]), t = async (h, O) => {
|
|
1571
1576
|
var V, S, j;
|
|
1572
1577
|
const { url: v, methods: F, headers: x, param: C } = l.value || {}, A = {
|
|
1573
1578
|
// 额外参数
|
|
1574
1579
|
rootDepartmentId: ((V = Te.local.getItem("now_shop")) == null ? void 0 : V.storeId) || "",
|
|
1575
1580
|
parentDepartmentId: h || "",
|
|
1576
|
-
name:
|
|
1577
|
-
rootDepartmentOnly:
|
|
1578
|
-
dataScopeOnly:
|
|
1581
|
+
name: O || "",
|
|
1582
|
+
rootDepartmentOnly: c.rootDepartmentOnly,
|
|
1583
|
+
dataScopeOnly: c.dataScopeOnly,
|
|
1579
1584
|
...C || {}
|
|
1580
1585
|
}, o = {
|
|
1581
1586
|
method: F,
|
|
@@ -1587,7 +1592,7 @@ const Oa = {
|
|
|
1587
1592
|
data: JSON.stringify(A)
|
|
1588
1593
|
};
|
|
1589
1594
|
Ca(o.headers);
|
|
1590
|
-
const a = await Et(o), { success: i, data:
|
|
1595
|
+
const a = await Et(o), { success: i, data: w } = a.data;
|
|
1591
1596
|
if (!i)
|
|
1592
1597
|
return {
|
|
1593
1598
|
groupList: [],
|
|
@@ -1598,33 +1603,33 @@ const Oa = {
|
|
|
1598
1603
|
rootDepartment: {}
|
|
1599
1604
|
};
|
|
1600
1605
|
const {
|
|
1601
|
-
departments:
|
|
1602
|
-
roles:
|
|
1606
|
+
departments: d,
|
|
1607
|
+
roles: g,
|
|
1603
1608
|
posts: W,
|
|
1604
1609
|
users: $,
|
|
1605
1610
|
rootOrganization: f,
|
|
1606
|
-
rootDepartment:
|
|
1607
|
-
} =
|
|
1608
|
-
return e.value.length === 0 && (e.value[0] =
|
|
1609
|
-
...
|
|
1610
|
-
id:
|
|
1611
|
-
elementType: (j = (S =
|
|
1611
|
+
rootDepartment: ne
|
|
1612
|
+
} = w, U = f || ne;
|
|
1613
|
+
return e.value.length === 0 && (e.value[0] = c.org ? {
|
|
1614
|
+
...c.org,
|
|
1615
|
+
id: c.elementId,
|
|
1616
|
+
elementType: (j = (S = c.org) == null ? void 0 : S.elementType) == null ? void 0 : j.toLocaleUpperCase()
|
|
1612
1617
|
} : {
|
|
1613
1618
|
...U,
|
|
1614
1619
|
id: U.elementId
|
|
1615
1620
|
}), {
|
|
1616
|
-
groupList: se.cloneDeep(
|
|
1617
|
-
roleList: se.cloneDeep(
|
|
1621
|
+
groupList: se.cloneDeep(d),
|
|
1622
|
+
roleList: se.cloneDeep(g),
|
|
1618
1623
|
postList: se.cloneDeep(W),
|
|
1619
1624
|
userList: se.cloneDeep($),
|
|
1620
1625
|
rootOrganization: f,
|
|
1621
|
-
rootDepartment:
|
|
1626
|
+
rootDepartment: ne
|
|
1622
1627
|
};
|
|
1623
1628
|
};
|
|
1624
1629
|
return {
|
|
1625
1630
|
handData: t,
|
|
1626
|
-
handSetChild: (h,
|
|
1627
|
-
t(h == null ? void 0 : h.elementId,
|
|
1631
|
+
handSetChild: (h, O) => {
|
|
1632
|
+
t(h == null ? void 0 : h.elementId, O);
|
|
1628
1633
|
},
|
|
1629
1634
|
bannerList: e
|
|
1630
1635
|
};
|
|
@@ -1635,11 +1640,11 @@ const Oa = {
|
|
|
1635
1640
|
__name: "picker",
|
|
1636
1641
|
props: Oa,
|
|
1637
1642
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1638
|
-
setup(l, { expose:
|
|
1643
|
+
setup(l, { expose: c, emit: e }) {
|
|
1639
1644
|
vt((n) => ({
|
|
1640
|
-
|
|
1645
|
+
v57dba46f: Se.value
|
|
1641
1646
|
}));
|
|
1642
|
-
const t = l, k = B(""), h = B(""),
|
|
1647
|
+
const t = l, k = B(""), h = B(""), O = B([]), v = B([]), F = B([]), x = B([]), C = B(!1), A = R(() => j.value.includes("user") ? v.value.concat(O.value) : v.value);
|
|
1643
1648
|
re(
|
|
1644
1649
|
() => t.api,
|
|
1645
1650
|
() => {
|
|
@@ -1658,32 +1663,32 @@ const Oa = {
|
|
|
1658
1663
|
post: "POST",
|
|
1659
1664
|
group: "DEPT",
|
|
1660
1665
|
...t.typeOption
|
|
1661
|
-
})), i = B([]),
|
|
1662
|
-
t.immediate &&
|
|
1666
|
+
})), i = B([]), w = Ba(kt(t, "api"), t), d = w.handData, g = w.bannerList;
|
|
1667
|
+
t.immediate && d(h.value, k.value);
|
|
1663
1668
|
const W = (n) => (n.forEach((p) => {
|
|
1664
1669
|
var L, G;
|
|
1665
1670
|
p.disabled = ((G = (L = t.modelValue) == null ? void 0 : L.find(
|
|
1666
1671
|
(he) => he[o.value.id] === p[o.value.id]
|
|
1667
1672
|
)) == null ? void 0 : G.disabled) || !1;
|
|
1668
1673
|
}), n), $ = async () => {
|
|
1669
|
-
var n, p, L, G, he, q, _e,
|
|
1674
|
+
var n, p, L, G, he, q, _e, qe;
|
|
1670
1675
|
C.value = !0;
|
|
1671
1676
|
try {
|
|
1672
1677
|
if ((n = t.groupList) != null && n.length || (p = t.userList) != null && p.length || (L = t.roleList) != null && L.length || (G = t.postList) != null && G.length) {
|
|
1673
|
-
|
|
1678
|
+
O.value = (he = t.userList) == null ? void 0 : he.filter(
|
|
1674
1679
|
(be) => be[o.value.name].includes(k.value)
|
|
1675
1680
|
), v.value = (q = t.groupList) == null ? void 0 : q.filter(
|
|
1676
1681
|
(be) => be[o.value.name].includes(k.value)
|
|
1677
1682
|
), F.value = (_e = t.roleList) == null ? void 0 : _e.filter(
|
|
1678
1683
|
(be) => be[o.value.name].includes(k.value)
|
|
1679
|
-
), x.value = (
|
|
1684
|
+
), x.value = (qe = t.postList) == null ? void 0 : qe.filter(
|
|
1680
1685
|
(be) => be[o.value.name].includes(k.value)
|
|
1681
1686
|
), ee(), C.value = !1;
|
|
1682
1687
|
return;
|
|
1683
1688
|
}
|
|
1684
|
-
const de = await
|
|
1689
|
+
const de = await d(h.value, k.value);
|
|
1685
1690
|
try {
|
|
1686
|
-
|
|
1691
|
+
O.value = W((de == null ? void 0 : de.userList) || []), v.value = W((de == null ? void 0 : de.groupList) || []), F.value = W((de == null ? void 0 : de.roleList) || []), x.value = W((de == null ? void 0 : de.postList) || []);
|
|
1687
1692
|
} catch (be) {
|
|
1688
1693
|
C.value = !1, console.info("error: ", be);
|
|
1689
1694
|
}
|
|
@@ -1704,7 +1709,7 @@ const Oa = {
|
|
|
1704
1709
|
// 当前页面已选项的 ID 数组(用于多选状态管理)
|
|
1705
1710
|
single: ""
|
|
1706
1711
|
// 单选模式下选中的项 ID
|
|
1707
|
-
}),
|
|
1712
|
+
}), ne = nt({
|
|
1708
1713
|
indeterminate: !1,
|
|
1709
1714
|
// 半选状态
|
|
1710
1715
|
checkAll: 0
|
|
@@ -1741,7 +1746,7 @@ const Oa = {
|
|
|
1741
1746
|
});
|
|
1742
1747
|
}, E = e, J = B(!1), ee = (n = !1) => {
|
|
1743
1748
|
var L;
|
|
1744
|
-
const p = (L = t == null ? void 0 : t.userList) != null && L.length ? se.cloneDeep([...t == null ? void 0 : t.userList, ...t == null ? void 0 : t.groupList]) : [...v.value, ...
|
|
1749
|
+
const p = (L = t == null ? void 0 : t.userList) != null && L.length ? se.cloneDeep([...t == null ? void 0 : t.userList, ...t == null ? void 0 : t.groupList]) : [...v.value, ...O.value];
|
|
1745
1750
|
return !n && ie(p), p;
|
|
1746
1751
|
};
|
|
1747
1752
|
re(
|
|
@@ -1749,12 +1754,12 @@ const Oa = {
|
|
|
1749
1754
|
async (n) => {
|
|
1750
1755
|
var p;
|
|
1751
1756
|
if (J.value = n, n) {
|
|
1752
|
-
h.value = ((p = t.org) == null ? void 0 : p.elementId) || t.orgPid, !t.userList.length && !t.groupList.length && !t.roleList.length && !t.postList.length ? await $() : (
|
|
1757
|
+
h.value = ((p = t.org) == null ? void 0 : p.elementId) || t.orgPid, !t.userList.length && !t.groupList.length && !t.roleList.length && !t.postList.length ? await $() : (O.value = t.userList, v.value = t.groupList, F.value = t.roleList, x.value = t.postList), f.trans = [], ne.checkAll = 0, ne.indeterminate = !1;
|
|
1753
1758
|
const L = ee(!0);
|
|
1754
1759
|
for (const he of L)
|
|
1755
1760
|
U(he[o.value.id]) && f.trans.push(he[o.value.id]);
|
|
1756
1761
|
const G = L.length === f.trans.length;
|
|
1757
|
-
|
|
1762
|
+
ne.indeterminate = !!(L.length && !G), ne.checkAll = Number(L.length && G), st(() => {
|
|
1758
1763
|
var he;
|
|
1759
1764
|
(he = t.modelValue) != null && he.length ? t.modelValue.forEach((q) => {
|
|
1760
1765
|
me(q), t.multiple ? f.trans.push(q[o.value.id]) : f.single = q[o.value.id];
|
|
@@ -1766,7 +1771,7 @@ const Oa = {
|
|
|
1766
1771
|
), ot(() => {
|
|
1767
1772
|
let n = z.value.length;
|
|
1768
1773
|
const p = f.trans.length;
|
|
1769
|
-
|
|
1774
|
+
ne.indeterminate = f.trans.length ? p !== n : !1, ne.checkAll = +(n !== 0 && p === n);
|
|
1770
1775
|
}), re(
|
|
1771
1776
|
() => t.modelValue,
|
|
1772
1777
|
(n) => {
|
|
@@ -1797,12 +1802,12 @@ const Oa = {
|
|
|
1797
1802
|
return;
|
|
1798
1803
|
}
|
|
1799
1804
|
}
|
|
1800
|
-
},
|
|
1805
|
+
}, Re = (n) => {
|
|
1801
1806
|
fe(n);
|
|
1802
|
-
},
|
|
1803
|
-
},
|
|
1804
|
-
|
|
1805
|
-
},
|
|
1807
|
+
}, We = () => {
|
|
1808
|
+
}, Ge = (n) => {
|
|
1809
|
+
Ye();
|
|
1810
|
+
}, Ye = () => {
|
|
1806
1811
|
f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), i.value.forEach((n) => {
|
|
1807
1812
|
const p = n[o.value.id];
|
|
1808
1813
|
switch (n[o.value.type]) {
|
|
@@ -1839,7 +1844,7 @@ const Oa = {
|
|
|
1839
1844
|
return;
|
|
1840
1845
|
}
|
|
1841
1846
|
}
|
|
1842
|
-
},
|
|
1847
|
+
}, Qe = (n) => [a.value.group].includes(
|
|
1843
1848
|
n[o.value.type]
|
|
1844
1849
|
) ? n == null ? void 0 : n.hasOwnProperty("disabled") : !1;
|
|
1845
1850
|
re(
|
|
@@ -1854,7 +1859,7 @@ const Oa = {
|
|
|
1854
1859
|
(L) => n.includes(L[o.value.id])
|
|
1855
1860
|
);
|
|
1856
1861
|
for (const L of p)
|
|
1857
|
-
L.disabled =
|
|
1862
|
+
L.disabled = Qe(L), me(L);
|
|
1858
1863
|
}
|
|
1859
1864
|
},
|
|
1860
1865
|
{ deep: !0 }
|
|
@@ -1871,9 +1876,9 @@ const Oa = {
|
|
|
1871
1876
|
}
|
|
1872
1877
|
);
|
|
1873
1878
|
const r = (n) => {
|
|
1874
|
-
h.value = n == null ? void 0 : n.elementId, $(),
|
|
1875
|
-
}, M = R(() =>
|
|
1876
|
-
!p && !t.topLink || p !== M.value - 1 && (h.value = n == null ? void 0 : n.elementId, $(),
|
|
1879
|
+
h.value = n == null ? void 0 : n.elementId, $(), g.value.push(n);
|
|
1880
|
+
}, M = R(() => g.value.length), _ = (n, p) => {
|
|
1881
|
+
!p && !t.topLink || p !== M.value - 1 && (h.value = n == null ? void 0 : n.elementId, $(), g.value.splice(p + 1));
|
|
1877
1882
|
}, I = R(
|
|
1878
1883
|
() => t.chooseType.includes("role") && t.chooseType.length === 1
|
|
1879
1884
|
), H = R(
|
|
@@ -1881,7 +1886,7 @@ const Oa = {
|
|
|
1881
1886
|
), K = B(t.tabs[0]), Y = B(t.tabs[0]);
|
|
1882
1887
|
ot(() => (Y.value = I.value ? t.tabs[1] : H.value ? t.tabs[2] : K.value, Y.value));
|
|
1883
1888
|
const N = () => {
|
|
1884
|
-
f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), f.trans = [], ye.value = [], Ie.value = [], K.value = t.tabs[0], Y.value = t.tabs[0], k.value = "", h.value = t.orgPid,
|
|
1889
|
+
f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), f.trans = [], ye.value = [], Ie.value = [], K.value = t.tabs[0], Y.value = t.tabs[0], k.value = "", h.value = t.orgPid, g.value.splice(1, g.value.length), f.single = "", i.value = [];
|
|
1885
1890
|
}, Q = () => {
|
|
1886
1891
|
var n;
|
|
1887
1892
|
E(
|
|
@@ -1896,10 +1901,10 @@ const Oa = {
|
|
|
1896
1901
|
}, ke = () => {
|
|
1897
1902
|
E("update:show", !1), N();
|
|
1898
1903
|
};
|
|
1899
|
-
|
|
1904
|
+
c({
|
|
1900
1905
|
handClear: N,
|
|
1901
1906
|
// 清空所有选择
|
|
1902
|
-
handRomeve:
|
|
1907
|
+
handRomeve: Re,
|
|
1903
1908
|
// 移除选中项
|
|
1904
1909
|
handDelete: fe
|
|
1905
1910
|
// 删除选中项
|
|
@@ -1925,7 +1930,7 @@ const Oa = {
|
|
|
1925
1930
|
Be(), p.forEach((G) => {
|
|
1926
1931
|
L != null && L.includes(G[o.value.id]) ? me(G) : fe(G);
|
|
1927
1932
|
});
|
|
1928
|
-
}, ye = B([]),
|
|
1933
|
+
}, ye = B([]), Xe = (n, p) => {
|
|
1929
1934
|
t.multiple || (f.single = "");
|
|
1930
1935
|
const L = t.multiple ? n : [n];
|
|
1931
1936
|
if (!L.length) {
|
|
@@ -1965,12 +1970,12 @@ const Oa = {
|
|
|
1965
1970
|
}
|
|
1966
1971
|
), (n, p) => {
|
|
1967
1972
|
const L = te("el-tab-pane"), G = te("el-tabs"), he = te("el-scrollbar");
|
|
1968
|
-
return s(),
|
|
1973
|
+
return s(), y(
|
|
1969
1974
|
Z,
|
|
1970
1975
|
null,
|
|
1971
1976
|
[
|
|
1972
1977
|
b(" 主弹窗容器 "),
|
|
1973
|
-
|
|
1978
|
+
m(T(Ct), {
|
|
1974
1979
|
modelValue: J.value,
|
|
1975
1980
|
"onUpdate:modelValue": p[3] || (p[3] = (q) => J.value = q),
|
|
1976
1981
|
title: n.title,
|
|
@@ -1988,11 +1993,9 @@ const Oa = {
|
|
|
1988
1993
|
footer: P(() => [
|
|
1989
1994
|
u("span", _a, [
|
|
1990
1995
|
b(" 取消按钮 "),
|
|
1991
|
-
|
|
1992
|
-
onClick: $e(ke, ["stop"])
|
|
1993
|
-
}, {
|
|
1996
|
+
m(T(Je), { onClick: ke }, {
|
|
1994
1997
|
default: P(() => [...p[7] || (p[7] = [
|
|
1995
|
-
|
|
1998
|
+
ae(
|
|
1996
1999
|
"取消",
|
|
1997
2000
|
-1
|
|
1998
2001
|
/* CACHED */
|
|
@@ -2002,12 +2005,12 @@ const Oa = {
|
|
|
2002
2005
|
/* STABLE */
|
|
2003
2006
|
}),
|
|
2004
2007
|
b(" 确定按钮 "),
|
|
2005
|
-
|
|
2008
|
+
m(T(Je), {
|
|
2006
2009
|
type: "primary",
|
|
2007
|
-
onClick:
|
|
2010
|
+
onClick: Q
|
|
2008
2011
|
}, {
|
|
2009
2012
|
default: P(() => [...p[8] || (p[8] = [
|
|
2010
|
-
|
|
2013
|
+
ae(
|
|
2011
2014
|
" 确定 ",
|
|
2012
2015
|
-1
|
|
2013
2016
|
/* CACHED */
|
|
@@ -2023,7 +2026,7 @@ const Oa = {
|
|
|
2023
2026
|
"div",
|
|
2024
2027
|
{
|
|
2025
2028
|
class: "dep-use-picker",
|
|
2026
|
-
style:
|
|
2029
|
+
style: Me({ height: Se.value })
|
|
2027
2030
|
},
|
|
2028
2031
|
[
|
|
2029
2032
|
b(" 左侧选择区域 "),
|
|
@@ -2031,7 +2034,7 @@ const Oa = {
|
|
|
2031
2034
|
b(" 搜索框和标签页 "),
|
|
2032
2035
|
u("div", null, [
|
|
2033
2036
|
b(" 搜索输入框 "),
|
|
2034
|
-
|
|
2037
|
+
m(T(Ne), {
|
|
2035
2038
|
modelValue: k.value,
|
|
2036
2039
|
"onUpdate:modelValue": p[0] || (p[0] = (q) => k.value = q),
|
|
2037
2040
|
clearable: "",
|
|
@@ -2046,7 +2049,7 @@ const Oa = {
|
|
|
2046
2049
|
class: "ik-picker-tab"
|
|
2047
2050
|
}, {
|
|
2048
2051
|
default: P(() => [
|
|
2049
|
-
(s(!0),
|
|
2052
|
+
(s(!0), y(
|
|
2050
2053
|
Z,
|
|
2051
2054
|
null,
|
|
2052
2055
|
Ae(Ve.value, (q) => (s(), D(L, {
|
|
@@ -2063,26 +2066,26 @@ const Oa = {
|
|
|
2063
2066
|
}, 8, ["modelValue"])) : b("v-if", !0)
|
|
2064
2067
|
]),
|
|
2065
2068
|
b(" 面包屑导航区域 "),
|
|
2066
|
-
Y.value === T(
|
|
2069
|
+
Y.value === T($e).group ? (s(), y(
|
|
2067
2070
|
Z,
|
|
2068
2071
|
{ key: 0 },
|
|
2069
2072
|
[
|
|
2070
|
-
M.value ? (s(),
|
|
2073
|
+
M.value ? (s(), y("div", La, [
|
|
2071
2074
|
b(" 面包屑导航 "),
|
|
2072
|
-
|
|
2075
|
+
m(T(Bt), {
|
|
2073
2076
|
separator: ">",
|
|
2074
2077
|
class: ce(["banner", { "top-unlink": !n.topLink }])
|
|
2075
2078
|
}, {
|
|
2076
2079
|
default: P(() => [
|
|
2077
|
-
(s(!0),
|
|
2080
|
+
(s(!0), y(
|
|
2078
2081
|
Z,
|
|
2079
2082
|
null,
|
|
2080
|
-
Ae(T(
|
|
2083
|
+
Ae(T(g), (q, _e) => (s(), D(T(Pt), {
|
|
2081
2084
|
key: q[o.value.id],
|
|
2082
|
-
onClick:
|
|
2085
|
+
onClick: Ke((qe) => _(q, _e), ["stop"])
|
|
2083
2086
|
}, {
|
|
2084
2087
|
default: P(() => [
|
|
2085
|
-
|
|
2088
|
+
ae(
|
|
2086
2089
|
X(q[o.value.name]),
|
|
2087
2090
|
1
|
|
2088
2091
|
/* TEXT */
|
|
@@ -2105,7 +2108,7 @@ const Oa = {
|
|
|
2105
2108
|
)) : b("v-if", !0),
|
|
2106
2109
|
b(" 数据列表区域 "),
|
|
2107
2110
|
b(" 组织架构列表 "),
|
|
2108
|
-
Y.value === T(
|
|
2111
|
+
Y.value === T($e).group ? Ce((s(), D(Gl, {
|
|
2109
2112
|
key: 1,
|
|
2110
2113
|
fixPropOpt: o.value,
|
|
2111
2114
|
fixTypeOpt: a.value,
|
|
@@ -2121,12 +2124,12 @@ const Oa = {
|
|
|
2121
2124
|
onChange: ve
|
|
2122
2125
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2123
2126
|
[T(Ze), C.value]
|
|
2124
|
-
]) : Y.value === T(
|
|
2127
|
+
]) : Y.value === T($e).role ? (s(), y(
|
|
2125
2128
|
Z,
|
|
2126
2129
|
{ key: 2 },
|
|
2127
2130
|
[
|
|
2128
2131
|
b(" 角色列表 "),
|
|
2129
|
-
Ce(
|
|
2132
|
+
Ce(m(xa, {
|
|
2130
2133
|
fixPropOpt: o.value,
|
|
2131
2134
|
fixTypeOpt: a.value,
|
|
2132
2135
|
list: F.value,
|
|
@@ -2136,19 +2139,19 @@ const Oa = {
|
|
|
2136
2139
|
imageBaseUrl: t.imageBaseUrl,
|
|
2137
2140
|
emptyText: t.emptyText,
|
|
2138
2141
|
"choose-type": j.value,
|
|
2139
|
-
onChange:
|
|
2142
|
+
onChange: Xe
|
|
2140
2143
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2141
2144
|
[T(Ze), C.value]
|
|
2142
2145
|
])
|
|
2143
2146
|
],
|
|
2144
2147
|
64
|
|
2145
2148
|
/* STABLE_FRAGMENT */
|
|
2146
|
-
)) : Y.value === T(
|
|
2149
|
+
)) : Y.value === T($e).post ? (s(), y(
|
|
2147
2150
|
Z,
|
|
2148
2151
|
{ key: 3 },
|
|
2149
2152
|
[
|
|
2150
2153
|
b(" 岗位列表 "),
|
|
2151
|
-
Ce(
|
|
2154
|
+
Ce(m(oa, {
|
|
2152
2155
|
fixPropOpt: o.value,
|
|
2153
2156
|
fixTypeOpt: a.value,
|
|
2154
2157
|
list: x.value,
|
|
@@ -2182,17 +2185,20 @@ const Oa = {
|
|
|
2182
2185
|
p[5] || (p[5] = u(
|
|
2183
2186
|
"div",
|
|
2184
2187
|
null,
|
|
2185
|
-
|
|
2188
|
+
[
|
|
2189
|
+
ae("已选列表"),
|
|
2190
|
+
u("span", { class: "ik-info-text" }, "(支持拖拽排序)")
|
|
2191
|
+
],
|
|
2186
2192
|
-1
|
|
2187
2193
|
/* CACHED */
|
|
2188
2194
|
)),
|
|
2189
|
-
|
|
2195
|
+
m(T(Je), {
|
|
2190
2196
|
type: "primary",
|
|
2191
2197
|
link: "",
|
|
2192
|
-
onClick:
|
|
2198
|
+
onClick: Ke(N, ["stop"])
|
|
2193
2199
|
}, {
|
|
2194
2200
|
default: P(() => [...p[4] || (p[4] = [
|
|
2195
|
-
|
|
2201
|
+
ae(
|
|
2196
2202
|
"清空",
|
|
2197
2203
|
-1
|
|
2198
2204
|
/* CACHED */
|
|
@@ -2202,10 +2208,10 @@ const Oa = {
|
|
|
2202
2208
|
/* STABLE */
|
|
2203
2209
|
})
|
|
2204
2210
|
]),
|
|
2205
|
-
|
|
2211
|
+
m(he, null, {
|
|
2206
2212
|
default: P(() => [
|
|
2207
2213
|
b(" 已选项目列表 "),
|
|
2208
|
-
|
|
2214
|
+
m(T(mt), {
|
|
2209
2215
|
modelValue: i.value,
|
|
2210
2216
|
"onUpdate:modelValue": p[2] || (p[2] = (q) => i.value = q),
|
|
2211
2217
|
class: "choose-box",
|
|
@@ -2215,15 +2221,15 @@ const Oa = {
|
|
|
2215
2221
|
"ghost-class": "ghost-item",
|
|
2216
2222
|
"chosen-class": "chosen-item",
|
|
2217
2223
|
"drag-class": "drag-item",
|
|
2218
|
-
onStart:
|
|
2219
|
-
onEnd:
|
|
2224
|
+
onStart: We,
|
|
2225
|
+
onEnd: Ge
|
|
2220
2226
|
}, {
|
|
2221
2227
|
item: P(({ element: q }) => [
|
|
2222
2228
|
u("li", Ua, [
|
|
2223
2229
|
u("div", Va, [
|
|
2224
2230
|
b(" 头像图标 "),
|
|
2225
2231
|
u("div", Ia, [
|
|
2226
|
-
|
|
2232
|
+
m(pe, {
|
|
2227
2233
|
fixTypeOpt: a.value,
|
|
2228
2234
|
fixPropOpt: o.value,
|
|
2229
2235
|
element: q,
|
|
@@ -2240,9 +2246,9 @@ const Oa = {
|
|
|
2240
2246
|
)
|
|
2241
2247
|
]),
|
|
2242
2248
|
b(" 删除按钮 "),
|
|
2243
|
-
Ce(
|
|
2249
|
+
Ce(m(al, {
|
|
2244
2250
|
class: "close",
|
|
2245
|
-
onClick:
|
|
2251
|
+
onClick: Ke((_e) => Re(q), ["stop"])
|
|
2246
2252
|
}, null, 8, ["onClick"]), [
|
|
2247
2253
|
[bt, !(q != null && q.readonly)]
|
|
2248
2254
|
])
|
|
@@ -2270,9 +2276,9 @@ const Oa = {
|
|
|
2270
2276
|
);
|
|
2271
2277
|
};
|
|
2272
2278
|
}
|
|
2273
|
-
}), $a =
|
|
2279
|
+
}), $a = ze(Da), Ea = { class: "check-right" }, Ma = { class: "dialog-footer" }, za = /* @__PURE__ */ ue({
|
|
2274
2280
|
__name: "IkBtnSetting",
|
|
2275
|
-
props: /* @__PURE__ */
|
|
2281
|
+
props: /* @__PURE__ */ Ee({
|
|
2276
2282
|
list: {
|
|
2277
2283
|
type: Array,
|
|
2278
2284
|
default: () => []
|
|
@@ -2328,12 +2334,12 @@ const Oa = {
|
|
|
2328
2334
|
},
|
|
2329
2335
|
modelModifiers: {}
|
|
2330
2336
|
}),
|
|
2331
|
-
emits: /* @__PURE__ */
|
|
2332
|
-
setup(l, { emit:
|
|
2333
|
-
const e = l, t =
|
|
2337
|
+
emits: /* @__PURE__ */ Ee(["sort"], ["update:modelValue"]),
|
|
2338
|
+
setup(l, { emit: c }) {
|
|
2339
|
+
const e = l, t = c, k = et(l, "modelValue"), { t: h, dialog: O, path: v, user: F } = e.config, x = R(() => `${F == null ? void 0 : F.id}_${v}${e.tab !== "" ? `_${e.tab}` : ""}`), C = B([]), A = B([]), o = B([]), a = /* @__PURE__ */ new Map(), i = B(!1), w = R(() => {
|
|
2334
2340
|
const V = A.value.length && A.value.length !== e.list.length;
|
|
2335
2341
|
return !V && A.value.length && (i.value = !0), !!V;
|
|
2336
|
-
}),
|
|
2342
|
+
}), d = (V) => {
|
|
2337
2343
|
var j;
|
|
2338
2344
|
const S = se.cloneDeep(o.value);
|
|
2339
2345
|
S == null || S.forEach((z) => {
|
|
@@ -2351,14 +2357,14 @@ const Oa = {
|
|
|
2351
2357
|
J && (J.show = !0, o.value.push(J));
|
|
2352
2358
|
}
|
|
2353
2359
|
}), (j = o.value) != null && j.length || (o.value = se.cloneDeep(e.list)), V === !0 && (t("sort", se.cloneDeep(o.value)), k.value = se.cloneDeep(o.value));
|
|
2354
|
-
},
|
|
2360
|
+
}, g = (V) => {
|
|
2355
2361
|
if (V)
|
|
2356
2362
|
A.value = e.list.map((S) => S.key);
|
|
2357
2363
|
else {
|
|
2358
2364
|
const S = e.list.find((j) => !j.key || j.label === "操作");
|
|
2359
2365
|
A.value = S ? [S.key] : [];
|
|
2360
2366
|
}
|
|
2361
|
-
|
|
2367
|
+
d();
|
|
2362
2368
|
}, W = () => {
|
|
2363
2369
|
const V = Te.local.getItem(x.value);
|
|
2364
2370
|
try {
|
|
@@ -2386,7 +2392,7 @@ const Oa = {
|
|
|
2386
2392
|
const j = C.value.filter((z) => z.show);
|
|
2387
2393
|
A.value = j.map((z) => z.key);
|
|
2388
2394
|
}
|
|
2389
|
-
|
|
2395
|
+
d(!0);
|
|
2390
2396
|
} catch (S) {
|
|
2391
2397
|
console.info("error: ", S);
|
|
2392
2398
|
}
|
|
@@ -2396,7 +2402,7 @@ const Oa = {
|
|
|
2396
2402
|
}, { deep: !0 });
|
|
2397
2403
|
const $ = B(!1), f = () => {
|
|
2398
2404
|
$.value = !0;
|
|
2399
|
-
},
|
|
2405
|
+
}, ne = (V) => {
|
|
2400
2406
|
o.value = V;
|
|
2401
2407
|
}, U = () => {
|
|
2402
2408
|
$.value = !1, Te.local.setItem(
|
|
@@ -2414,7 +2420,7 @@ const Oa = {
|
|
|
2414
2420
|
};
|
|
2415
2421
|
return (V, S) => {
|
|
2416
2422
|
const j = te("el-button"), z = te("el-checkbox"), ie = te("el-checkbox-group"), E = te("el-dialog"), J = tt("role");
|
|
2417
|
-
return s(),
|
|
2423
|
+
return s(), y(
|
|
2418
2424
|
Z,
|
|
2419
2425
|
null,
|
|
2420
2426
|
[
|
|
@@ -2440,7 +2446,7 @@ const Oa = {
|
|
|
2440
2446
|
name: "default",
|
|
2441
2447
|
fn: P(() => [
|
|
2442
2448
|
b(' {{ t("action.setting") }} '),
|
|
2443
|
-
|
|
2449
|
+
ae(
|
|
2444
2450
|
" " + X(T(h)("设置")),
|
|
2445
2451
|
1
|
|
2446
2452
|
/* TEXT */
|
|
@@ -2465,11 +2471,11 @@ const Oa = {
|
|
|
2465
2471
|
)), [
|
|
2466
2472
|
[J, V.$props.role]
|
|
2467
2473
|
]) : b("v-if", !0),
|
|
2468
|
-
|
|
2474
|
+
m(E, {
|
|
2469
2475
|
modelValue: $.value,
|
|
2470
2476
|
"onUpdate:modelValue": S[3] || (S[3] = (ee) => $.value = ee),
|
|
2471
2477
|
draggable: "",
|
|
2472
|
-
width: l.inline ? T(
|
|
2478
|
+
width: l.inline ? T(O).l : T(O).sl,
|
|
2473
2479
|
"close-on-click-modal": !1,
|
|
2474
2480
|
"close-on-press-escape": !1,
|
|
2475
2481
|
title: "显示字段",
|
|
@@ -2478,11 +2484,11 @@ const Oa = {
|
|
|
2478
2484
|
}, {
|
|
2479
2485
|
footer: P(() => [
|
|
2480
2486
|
u("div", Ma, [
|
|
2481
|
-
|
|
2487
|
+
m(j, {
|
|
2482
2488
|
onClick: S[2] || (S[2] = (ee) => $.value = !1)
|
|
2483
2489
|
}, {
|
|
2484
2490
|
default: P(() => [
|
|
2485
|
-
|
|
2491
|
+
ae(
|
|
2486
2492
|
X(T(h)("关闭")) + " ",
|
|
2487
2493
|
1
|
|
2488
2494
|
/* TEXT */
|
|
@@ -2492,13 +2498,13 @@ const Oa = {
|
|
|
2492
2498
|
_: 1
|
|
2493
2499
|
/* STABLE */
|
|
2494
2500
|
}),
|
|
2495
|
-
|
|
2501
|
+
m(j, {
|
|
2496
2502
|
type: "primary",
|
|
2497
2503
|
disabled: o.value.length < 2,
|
|
2498
2504
|
onClick: U
|
|
2499
2505
|
}, {
|
|
2500
2506
|
default: P(() => [
|
|
2501
|
-
|
|
2507
|
+
ae(
|
|
2502
2508
|
X(o.value.length < 2 ? "至少选择一个字段" : T(h)("确定")),
|
|
2503
2509
|
1
|
|
2504
2510
|
/* TEXT */
|
|
@@ -2519,18 +2525,18 @@ const Oa = {
|
|
|
2519
2525
|
u(
|
|
2520
2526
|
"div",
|
|
2521
2527
|
{
|
|
2522
|
-
style:
|
|
2528
|
+
style: Me({ flex: l.inline ? 2 : 1 })
|
|
2523
2529
|
},
|
|
2524
2530
|
[
|
|
2525
|
-
|
|
2531
|
+
m(z, {
|
|
2526
2532
|
modelValue: i.value,
|
|
2527
2533
|
"onUpdate:modelValue": S[0] || (S[0] = (ee) => i.value = ee),
|
|
2528
2534
|
class: "single-line",
|
|
2529
|
-
indeterminate:
|
|
2530
|
-
onChange:
|
|
2535
|
+
indeterminate: w.value,
|
|
2536
|
+
onChange: g
|
|
2531
2537
|
}, {
|
|
2532
2538
|
default: P(() => [...S[5] || (S[5] = [
|
|
2533
|
-
|
|
2539
|
+
ae(
|
|
2534
2540
|
" 全选 ",
|
|
2535
2541
|
-1
|
|
2536
2542
|
/* CACHED */
|
|
@@ -2539,13 +2545,13 @@ const Oa = {
|
|
|
2539
2545
|
_: 1
|
|
2540
2546
|
/* STABLE */
|
|
2541
2547
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2542
|
-
|
|
2548
|
+
m(ie, {
|
|
2543
2549
|
modelValue: A.value,
|
|
2544
2550
|
"onUpdate:modelValue": S[1] || (S[1] = (ee) => A.value = ee),
|
|
2545
|
-
onChange:
|
|
2551
|
+
onChange: d
|
|
2546
2552
|
}, {
|
|
2547
2553
|
default: P(() => [
|
|
2548
|
-
(s(!0),
|
|
2554
|
+
(s(!0), y(
|
|
2549
2555
|
Z,
|
|
2550
2556
|
null,
|
|
2551
2557
|
Ae(C.value, (ee) => (s(), D(z, {
|
|
@@ -2554,7 +2560,7 @@ const Oa = {
|
|
|
2554
2560
|
label: ee.key
|
|
2555
2561
|
}, {
|
|
2556
2562
|
default: P(() => [
|
|
2557
|
-
|
|
2563
|
+
ae(
|
|
2558
2564
|
X(ee.label),
|
|
2559
2565
|
1
|
|
2560
2566
|
/* TEXT */
|
|
@@ -2575,10 +2581,10 @@ const Oa = {
|
|
|
2575
2581
|
/* STYLE */
|
|
2576
2582
|
),
|
|
2577
2583
|
u("div", Ea, [
|
|
2578
|
-
|
|
2584
|
+
m(T(Wa), {
|
|
2579
2585
|
list: o.value,
|
|
2580
2586
|
"item-style": { bottom: 4 },
|
|
2581
|
-
onChange:
|
|
2587
|
+
onChange: ne
|
|
2582
2588
|
}, null, 8, ["list"])
|
|
2583
2589
|
])
|
|
2584
2590
|
],
|
|
@@ -2595,7 +2601,7 @@ const Oa = {
|
|
|
2595
2601
|
);
|
|
2596
2602
|
};
|
|
2597
2603
|
}
|
|
2598
|
-
}), Ra = /* @__PURE__ */ oe(za, [["__scopeId", "data-v-b5ed17ed"]]), Na =
|
|
2604
|
+
}), Ra = /* @__PURE__ */ oe(za, [["__scopeId", "data-v-b5ed17ed"]]), Na = ze(Ra), ft = {
|
|
2599
2605
|
animation: 200,
|
|
2600
2606
|
group: "gl",
|
|
2601
2607
|
disabled: !1,
|
|
@@ -2750,8 +2756,8 @@ const Oa = {
|
|
|
2750
2756
|
__name: "IkDragList",
|
|
2751
2757
|
props: ja,
|
|
2752
2758
|
emits: ["change"],
|
|
2753
|
-
setup(l, { emit:
|
|
2754
|
-
const e = l, t =
|
|
2759
|
+
setup(l, { emit: c }) {
|
|
2760
|
+
const e = l, t = c, k = B([]);
|
|
2755
2761
|
re(
|
|
2756
2762
|
() => e.list,
|
|
2757
2763
|
(x) => {
|
|
@@ -2769,10 +2775,10 @@ const Oa = {
|
|
|
2769
2775
|
...ft.itemStyle,
|
|
2770
2776
|
...e.itemStyle
|
|
2771
2777
|
}
|
|
2772
|
-
})),
|
|
2773
|
-
|
|
2778
|
+
})), O = B(!1), v = () => {
|
|
2779
|
+
O.value = !0;
|
|
2774
2780
|
}, F = (x) => {
|
|
2775
|
-
|
|
2781
|
+
O.value = !1;
|
|
2776
2782
|
const C = e.list[x.oldIndex];
|
|
2777
2783
|
t("change", k.value, {
|
|
2778
2784
|
...C,
|
|
@@ -2798,7 +2804,7 @@ const Oa = {
|
|
|
2798
2804
|
onEnd: F
|
|
2799
2805
|
}, {
|
|
2800
2806
|
item: P(({ element: o }) => [
|
|
2801
|
-
|
|
2807
|
+
m(
|
|
2802
2808
|
gt,
|
|
2803
2809
|
{
|
|
2804
2810
|
type: "transition",
|
|
@@ -2809,12 +2815,12 @@ const Oa = {
|
|
|
2809
2815
|
x.$slots.item ? ge(x.$slots, "item", {
|
|
2810
2816
|
key: 0,
|
|
2811
2817
|
item: o
|
|
2812
|
-
}, void 0, !0) : (s(),
|
|
2818
|
+
}, void 0, !0) : (s(), y(
|
|
2813
2819
|
"li",
|
|
2814
2820
|
{
|
|
2815
2821
|
key: 1,
|
|
2816
2822
|
class: ce(["list-group-item", [h.value.itemClass]]),
|
|
2817
|
-
style:
|
|
2823
|
+
style: Me({
|
|
2818
2824
|
borderRadius: `${h.value.itemStyle.radius}px`,
|
|
2819
2825
|
marginBottom: `${h.value.itemStyle.bottom}px`,
|
|
2820
2826
|
backgroundColor: `${h.value.itemStyle.background}`
|
|
@@ -2823,12 +2829,12 @@ const Oa = {
|
|
|
2823
2829
|
[
|
|
2824
2830
|
h.value.showIcon && !x.$slots.icon ? (s(), D(A, { key: 0 }, {
|
|
2825
2831
|
default: P(() => [
|
|
2826
|
-
|
|
2832
|
+
m(T(zt))
|
|
2827
2833
|
]),
|
|
2828
2834
|
_: 1
|
|
2829
2835
|
/* STABLE */
|
|
2830
2836
|
})) : ge(x.$slots, "icon", { key: 1 }, void 0, !0),
|
|
2831
|
-
|
|
2837
|
+
ae(
|
|
2832
2838
|
" " + X(o.label),
|
|
2833
2839
|
1
|
|
2834
2840
|
/* TEXT */
|
|
@@ -2850,7 +2856,7 @@ const Oa = {
|
|
|
2850
2856
|
}, 8, ["modelValue", "class", "attrs", "animation", "group", "disabled", "ghost-class", "force-fallback"]);
|
|
2851
2857
|
};
|
|
2852
2858
|
}
|
|
2853
|
-
}), Fa = /* @__PURE__ */ oe(Ha, [["__scopeId", "data-v-3716c05e"]]), Wa =
|
|
2859
|
+
}), Fa = /* @__PURE__ */ oe(Ha, [["__scopeId", "data-v-3716c05e"]]), Wa = ze(Fa);
|
|
2854
2860
|
var xe = /* @__PURE__ */ ((l) => (l.input = "input", l.area = "area", l.number = "number", l.select = "select", l.date = "date", l.datetime = "datetime", l.checkbox = "checkbox", l.radio = "radio", l.treeselect = "treeselect", l.choosePerson = "choosePerson", l))(xe || {}), Pe = /* @__PURE__ */ ((l) => (l.year = "year", l.month = "month", l.date = "date", l.dates = "dates", l.datetime = "datetime", l.week = "week", l.datetimerange = "datetimerange", l.daterange = "daterange", l.monthrange = "monthrange", l))(Pe || {});
|
|
2855
2861
|
function ht(l) {
|
|
2856
2862
|
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !Ot(l);
|
|
@@ -2891,33 +2897,33 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2891
2897
|
},
|
|
2892
2898
|
emits: ["search", "pickerChange"],
|
|
2893
2899
|
setup(l, {
|
|
2894
|
-
emit:
|
|
2900
|
+
emit: c,
|
|
2895
2901
|
expose: e
|
|
2896
2902
|
}) {
|
|
2897
|
-
const t = B(), k = {}, h = B({}),
|
|
2903
|
+
const t = B(), k = {}, h = B({}), O = B([]), v = B({
|
|
2898
2904
|
...h.value
|
|
2899
2905
|
});
|
|
2900
|
-
re(
|
|
2906
|
+
re(O, (r, M) => {
|
|
2901
2907
|
const _ = M.filter((I) => !r.includes(I));
|
|
2902
2908
|
if (_.length) {
|
|
2903
2909
|
let I = !1;
|
|
2904
2910
|
_.forEach((H) => {
|
|
2905
2911
|
v.value[H] !== void 0 && (I = !0), v.value[H] = void 0;
|
|
2906
|
-
}), I &&
|
|
2912
|
+
}), I && c("search", v.value);
|
|
2907
2913
|
}
|
|
2908
2914
|
});
|
|
2909
2915
|
const F = () => {
|
|
2910
|
-
|
|
2916
|
+
O.value = [], l.list.forEach((r) => {
|
|
2911
2917
|
var M, _;
|
|
2912
|
-
h.value[r.key] = h.value[r.value], k[r.key] = k[r.value],
|
|
2918
|
+
h.value[r.key] = h.value[r.value], k[r.key] = k[r.value], O.value.push(r.key), (M = v.value)[_ = r.key] ?? (M[_] = r.value || null);
|
|
2913
2919
|
});
|
|
2914
2920
|
};
|
|
2915
2921
|
F(), re(() => l.list, () => {
|
|
2916
2922
|
F();
|
|
2917
2923
|
});
|
|
2918
|
-
const x = R(() =>
|
|
2924
|
+
const x = R(() => O.value.map((r) => l.list.find((M) => M.key === r))), C = () => {
|
|
2919
2925
|
var r;
|
|
2920
|
-
v.value.page = 1, (r = l.search) == null || r.call(l, v.value),
|
|
2926
|
+
v.value.page = 1, (r = l.search) == null || r.call(l, v.value), c("search", v.value);
|
|
2921
2927
|
};
|
|
2922
2928
|
e({
|
|
2923
2929
|
resetForm: () => {
|
|
@@ -2930,15 +2936,15 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2930
2936
|
});
|
|
2931
2937
|
const a = () => {
|
|
2932
2938
|
var r;
|
|
2933
|
-
|
|
2939
|
+
c("search", v.value), (r = l.search) == null || r.call(l, v.value);
|
|
2934
2940
|
}, i = (r) => {
|
|
2935
2941
|
r.key === "Enter" && C();
|
|
2936
|
-
},
|
|
2942
|
+
}, w = () => {
|
|
2937
2943
|
var r;
|
|
2938
2944
|
(r = t.value) == null || r.resetFields(), C();
|
|
2939
2945
|
};
|
|
2940
2946
|
l.immediate && C();
|
|
2941
|
-
const
|
|
2947
|
+
const d = ({
|
|
2942
2948
|
maxlength: r,
|
|
2943
2949
|
minlength: M,
|
|
2944
2950
|
key: _,
|
|
@@ -2947,7 +2953,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2947
2953
|
formProp: K = {},
|
|
2948
2954
|
value: Y,
|
|
2949
2955
|
label: N
|
|
2950
|
-
}) =>
|
|
2956
|
+
}) => m(Ne, le({
|
|
2951
2957
|
modelValue: v.value[_],
|
|
2952
2958
|
"onUpdate:modelValue": [(Q) => v.value[_] = Q, (Q) => v.value[_] = Q],
|
|
2953
2959
|
clearable: !0,
|
|
@@ -2957,7 +2963,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2957
2963
|
onBlur: () => a()
|
|
2958
2964
|
}, K, {
|
|
2959
2965
|
placeholder: (K == null ? void 0 : K.placeholder) || H || `请输入${N || ""}`
|
|
2960
|
-
}), null),
|
|
2966
|
+
}), null), g = ({
|
|
2961
2967
|
key: r,
|
|
2962
2968
|
placeholder: M,
|
|
2963
2969
|
max: _,
|
|
@@ -2967,7 +2973,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2967
2973
|
step: Y = 1,
|
|
2968
2974
|
label: N,
|
|
2969
2975
|
formProp: Q = {}
|
|
2970
|
-
}) =>
|
|
2976
|
+
}) => m(_t, le({
|
|
2971
2977
|
modelValue: v.value[r],
|
|
2972
2978
|
"onUpdate:modelValue": (ke) => v.value[r] = ke,
|
|
2973
2979
|
clearable: !0,
|
|
@@ -2988,7 +2994,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2988
2994
|
multiple: K = !1,
|
|
2989
2995
|
filterable: Y = !0,
|
|
2990
2996
|
formProp: N = {}
|
|
2991
|
-
}) =>
|
|
2997
|
+
}) => m(rt, le({
|
|
2992
2998
|
modelValue: v.value[r],
|
|
2993
2999
|
"onUpdate:modelValue": (Q) => v.value[r] = Q,
|
|
2994
3000
|
clearable: !0,
|
|
@@ -2999,7 +3005,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2999
3005
|
}, N, {
|
|
3000
3006
|
placeholder: (N == null ? void 0 : N.placeholder) || M || `请选择${H || ""}`
|
|
3001
3007
|
}), {
|
|
3002
|
-
default: () => [I == null ? void 0 : I.map((Q) =>
|
|
3008
|
+
default: () => [I == null ? void 0 : I.map((Q) => m(ut, {
|
|
3003
3009
|
key: Q.value,
|
|
3004
3010
|
label: Q.label,
|
|
3005
3011
|
value: Q.value
|
|
@@ -3009,17 +3015,17 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3009
3015
|
disabled: M,
|
|
3010
3016
|
options: _,
|
|
3011
3017
|
formProp: I = {}
|
|
3012
|
-
}) =>
|
|
3018
|
+
}) => m(He, le({
|
|
3013
3019
|
modelValue: v.value[r],
|
|
3014
3020
|
"onUpdate:modelValue": (H) => v.value[r] = H,
|
|
3015
3021
|
disabled: M,
|
|
3016
3022
|
onChange: () => a()
|
|
3017
3023
|
}, I), {
|
|
3018
|
-
default: () => [_ == null ? void 0 : _.map((H) => (I == null ? void 0 : I.radioType) === "button" ?
|
|
3024
|
+
default: () => [_ == null ? void 0 : _.map((H) => (I == null ? void 0 : I.radioType) === "button" ? m(It, {
|
|
3019
3025
|
key: H.value,
|
|
3020
3026
|
label: H.value,
|
|
3021
3027
|
name: H.label
|
|
3022
|
-
}, null) :
|
|
3028
|
+
}, null) : m(Fe, {
|
|
3023
3029
|
key: H.value,
|
|
3024
3030
|
label: H.value,
|
|
3025
3031
|
name: H.label
|
|
@@ -3031,7 +3037,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3031
3037
|
min: I,
|
|
3032
3038
|
max: H,
|
|
3033
3039
|
formProp: K = {}
|
|
3034
|
-
}) =>
|
|
3040
|
+
}) => m(je, le({
|
|
3035
3041
|
modelValue: v.value[r],
|
|
3036
3042
|
"onUpdate:modelValue": (Y) => v.value[r] = Y,
|
|
3037
3043
|
disabled: M,
|
|
@@ -3039,17 +3045,17 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3039
3045
|
min: I,
|
|
3040
3046
|
onChange: () => a()
|
|
3041
3047
|
}, K), {
|
|
3042
|
-
default: () => [_ == null ? void 0 : _.map((Y) =>
|
|
3048
|
+
default: () => [_ == null ? void 0 : _.map((Y) => m(Le, {
|
|
3043
3049
|
key: Y.value,
|
|
3044
3050
|
label: Y.label,
|
|
3045
3051
|
value: Y.value
|
|
3046
3052
|
}, null))]
|
|
3047
|
-
}),
|
|
3053
|
+
}), ne = ({
|
|
3048
3054
|
key: r,
|
|
3049
3055
|
label: M,
|
|
3050
3056
|
formProp: _ = {},
|
|
3051
3057
|
placeholder: I
|
|
3052
|
-
}) =>
|
|
3058
|
+
}) => m(dt, le({
|
|
3053
3059
|
modelValue: v.value[r],
|
|
3054
3060
|
"onUpdate:modelValue": (H) => v.value[r] = H,
|
|
3055
3061
|
onChange: () => a()
|
|
@@ -3094,7 +3100,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3094
3100
|
default:
|
|
3095
3101
|
ve = "";
|
|
3096
3102
|
}
|
|
3097
|
-
return
|
|
3103
|
+
return m(dt, le({
|
|
3098
3104
|
modelValue: v.value[r],
|
|
3099
3105
|
"onUpdate:modelValue": (ye) => v.value[r] = ye,
|
|
3100
3106
|
onChange: () => a(),
|
|
@@ -3131,8 +3137,8 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3131
3137
|
currentNodeKey: we = "",
|
|
3132
3138
|
accordion: ve = !1,
|
|
3133
3139
|
formProp: ye = {},
|
|
3134
|
-
label:
|
|
3135
|
-
}) =>
|
|
3140
|
+
label: Xe
|
|
3141
|
+
}) => m(Vt, le({
|
|
3136
3142
|
modelValue: v.value[r],
|
|
3137
3143
|
"onUpdate:modelValue": (Ie) => v.value[r] = Ie,
|
|
3138
3144
|
data: M,
|
|
@@ -3153,7 +3159,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3153
3159
|
currentNodeKey: we,
|
|
3154
3160
|
accordion: ve
|
|
3155
3161
|
}, ye, {
|
|
3156
|
-
placeholder: (ye == null ? void 0 : ye.placeholder) || ke || `请选择${
|
|
3162
|
+
placeholder: (ye == null ? void 0 : ye.placeholder) || ke || `请选择${Xe || ""}`
|
|
3157
3163
|
}), null), S = ({
|
|
3158
3164
|
key: r,
|
|
3159
3165
|
selectKey: M,
|
|
@@ -3163,7 +3169,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3163
3169
|
multiple: K = !1,
|
|
3164
3170
|
filterable: Y = !0,
|
|
3165
3171
|
formProp: N = {}
|
|
3166
|
-
}) =>
|
|
3172
|
+
}) => m(Ne, le({
|
|
3167
3173
|
disabled: I,
|
|
3168
3174
|
modelValue: v.value[r],
|
|
3169
3175
|
"onUpdate:modelValue": (Q) => v.value[r] = Q,
|
|
@@ -3171,7 +3177,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3171
3177
|
}, N, {
|
|
3172
3178
|
placeholder: (N == null ? void 0 : N.placeholder) || _ || "全部"
|
|
3173
3179
|
}), {
|
|
3174
|
-
prepend: () =>
|
|
3180
|
+
prepend: () => m(rt, le({
|
|
3175
3181
|
disabled: I,
|
|
3176
3182
|
multiple: K,
|
|
3177
3183
|
filterable: Y,
|
|
@@ -3179,20 +3185,20 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3179
3185
|
"onUpdate:modelValue": (Q) => v.value[M] = Q,
|
|
3180
3186
|
onChange: () => a()
|
|
3181
3187
|
}, N), {
|
|
3182
|
-
default: () => [H == null ? void 0 : H.map((Q) =>
|
|
3188
|
+
default: () => [H == null ? void 0 : H.map((Q) => m(ut, {
|
|
3183
3189
|
key: Q.value,
|
|
3184
3190
|
label: Q.label,
|
|
3185
3191
|
value: Q.value
|
|
3186
3192
|
}, null))]
|
|
3187
3193
|
})
|
|
3188
|
-
}), j = "", z = "iking", ie = B(null), E = B([]), J = B(!1), ee = B(""), fe = /* @__PURE__ */ new Map(),
|
|
3194
|
+
}), j = "", z = "iking", ie = B(null), E = B([]), J = B(!1), ee = B(""), fe = /* @__PURE__ */ new Map(), Re = (r) => {
|
|
3189
3195
|
J.value = !0, E.value = fe.has(r) ? fe.get(r) : v.value[r], ee.value = r;
|
|
3190
|
-
},
|
|
3196
|
+
}, We = () => {
|
|
3191
3197
|
fe.set(ee.value, []), ee.value = "", a();
|
|
3192
|
-
},
|
|
3198
|
+
}, Ge = (r) => {
|
|
3193
3199
|
var M, _;
|
|
3194
|
-
v.value[ee.value] = (M = r.list.map((I) => I.elementName)) == null ? void 0 : M.join(","), fe.set(ee.value, r.list),
|
|
3195
|
-
},
|
|
3200
|
+
v.value[ee.value] = (M = r.list.map((I) => I.elementName)) == null ? void 0 : M.join(","), fe.set(ee.value, r.list), c("search", v.value), c("pickerChange", r), (_ = l.search) == null || _.call(l, v.value);
|
|
3201
|
+
}, Ye = ({
|
|
3196
3202
|
key: r,
|
|
3197
3203
|
placeholder: M,
|
|
3198
3204
|
typeOption: _,
|
|
@@ -3201,7 +3207,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3201
3207
|
minlength: K,
|
|
3202
3208
|
disabled: Y,
|
|
3203
3209
|
formProp: N
|
|
3204
|
-
}) =>
|
|
3210
|
+
}) => m(Ne, le({
|
|
3205
3211
|
modelValue: v.value[r],
|
|
3206
3212
|
"onUpdate:modelValue": (Q) => v.value[r] = Q,
|
|
3207
3213
|
clearable: !0,
|
|
@@ -3209,8 +3215,8 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3209
3215
|
minlength: K,
|
|
3210
3216
|
disabled: Y
|
|
3211
3217
|
}, N, {
|
|
3212
|
-
onClick: () =>
|
|
3213
|
-
onClear: () =>
|
|
3218
|
+
onClick: () => Re(r),
|
|
3219
|
+
onClear: () => We(),
|
|
3214
3220
|
placeholder: (N == null ? void 0 : N.placeholder) || M || `点击选择${label || "人员"}`
|
|
3215
3221
|
}), null), me = (r) => {
|
|
3216
3222
|
switch (r.type) {
|
|
@@ -3218,10 +3224,10 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3218
3224
|
case void 0:
|
|
3219
3225
|
case xe.input:
|
|
3220
3226
|
case "el-input":
|
|
3221
|
-
return
|
|
3227
|
+
return d(r);
|
|
3222
3228
|
case xe.number:
|
|
3223
3229
|
case "el-input-number":
|
|
3224
|
-
return
|
|
3230
|
+
return g(r);
|
|
3225
3231
|
case xe.select:
|
|
3226
3232
|
case "el-select":
|
|
3227
3233
|
return W(r);
|
|
@@ -3236,25 +3242,25 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3236
3242
|
case "el-date-picker":
|
|
3237
3243
|
return U(r);
|
|
3238
3244
|
case "el-time-select":
|
|
3239
|
-
return
|
|
3245
|
+
return ne(r);
|
|
3240
3246
|
case xe.treeselect:
|
|
3241
3247
|
case "el-tree-select":
|
|
3242
3248
|
return V(r);
|
|
3243
3249
|
case xe.choosePerson:
|
|
3244
|
-
return
|
|
3250
|
+
return Ye(r);
|
|
3245
3251
|
case "select-input":
|
|
3246
3252
|
return S(r);
|
|
3247
3253
|
default:
|
|
3248
|
-
return
|
|
3254
|
+
return m(Z, null, null);
|
|
3249
3255
|
}
|
|
3250
|
-
},
|
|
3256
|
+
}, Qe = R(() => {
|
|
3251
3257
|
var _;
|
|
3252
3258
|
const r = [], M = x.value.length - 1;
|
|
3253
3259
|
return (_ = x.value) == null || _.forEach((I, H) => {
|
|
3254
3260
|
let K, Y;
|
|
3255
3261
|
if (!I) return [];
|
|
3256
3262
|
const N = I.col || 1;
|
|
3257
|
-
r.push(
|
|
3263
|
+
r.push(m(Lt, {
|
|
3258
3264
|
xl: {
|
|
3259
3265
|
span: N * 6
|
|
3260
3266
|
},
|
|
@@ -3270,14 +3276,14 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3270
3276
|
}, {
|
|
3271
3277
|
default: () => [H === M ? (
|
|
3272
3278
|
// 最后一个form后跟上选项className="last-form"
|
|
3273
|
-
|
|
3279
|
+
m("div", {
|
|
3274
3280
|
class: "last-form"
|
|
3275
|
-
}, [
|
|
3281
|
+
}, [m(it, {
|
|
3276
3282
|
label: I.type === "select-input" ? "" : I.label,
|
|
3277
3283
|
prop: I.key
|
|
3278
3284
|
}, ht(K = me(I)) ? K : {
|
|
3279
3285
|
default: () => [K]
|
|
3280
|
-
}),
|
|
3286
|
+
}), m(Oe, {
|
|
3281
3287
|
name: "icon-sousuo1",
|
|
3282
3288
|
pop: !0,
|
|
3283
3289
|
title: "搜索",
|
|
@@ -3285,16 +3291,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3285
3291
|
"show-bg": !0,
|
|
3286
3292
|
width: 40,
|
|
3287
3293
|
onClick: () => a()
|
|
3288
|
-
}, null),
|
|
3294
|
+
}, null), m(Oe, {
|
|
3289
3295
|
name: "icon-zhongzhi",
|
|
3290
3296
|
pop: !0,
|
|
3291
3297
|
title: "重置并搜索",
|
|
3292
3298
|
size: "big",
|
|
3293
3299
|
"show-bg": !0,
|
|
3294
3300
|
width: 40,
|
|
3295
|
-
onClick: () =>
|
|
3301
|
+
onClick: () => w()
|
|
3296
3302
|
}, null)])
|
|
3297
|
-
) :
|
|
3303
|
+
) : m(it, {
|
|
3298
3304
|
label: I.type === "select-input" ? "" : I.label,
|
|
3299
3305
|
prop: I.key
|
|
3300
3306
|
}, ht(Y = me(I)) ? Y : {
|
|
@@ -3303,23 +3309,23 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3303
3309
|
}));
|
|
3304
3310
|
}), r;
|
|
3305
3311
|
});
|
|
3306
|
-
return () =>
|
|
3312
|
+
return () => m(Z, null, [m(St, {
|
|
3307
3313
|
class: "gl-search-card",
|
|
3308
3314
|
shadow: l.shadow
|
|
3309
3315
|
}, {
|
|
3310
|
-
default: () => [
|
|
3316
|
+
default: () => [m(Tt, {
|
|
3311
3317
|
class: "auto-search-form",
|
|
3312
3318
|
onKeyup: i,
|
|
3313
3319
|
ref: t,
|
|
3314
3320
|
model: v.value
|
|
3315
3321
|
}, {
|
|
3316
|
-
default: () => [
|
|
3322
|
+
default: () => [m(Ut, {
|
|
3317
3323
|
gutter: 16
|
|
3318
3324
|
}, {
|
|
3319
|
-
default: () => [
|
|
3325
|
+
default: () => [Qe.value]
|
|
3320
3326
|
})]
|
|
3321
3327
|
})]
|
|
3322
|
-
}),
|
|
3328
|
+
}), m($a, {
|
|
3323
3329
|
ref: ie.value,
|
|
3324
3330
|
modelValue: E.value,
|
|
3325
3331
|
"onUpdate:modelValue": (r) => E.value = r,
|
|
@@ -3347,12 +3353,12 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3347
3353
|
id: "elementId",
|
|
3348
3354
|
type: "elementType"
|
|
3349
3355
|
},
|
|
3350
|
-
onOk: (r) =>
|
|
3356
|
+
onOk: (r) => Ge(r)
|
|
3351
3357
|
}, null)]);
|
|
3352
3358
|
}
|
|
3353
3359
|
}), Ya = { class: "header-left" }, Qa = { class: "title" }, Xa = { class: "flex items-center" }, qa = /* @__PURE__ */ ue({
|
|
3354
3360
|
__name: "IkPageHead",
|
|
3355
|
-
props: /* @__PURE__ */
|
|
3361
|
+
props: /* @__PURE__ */ Ee({
|
|
3356
3362
|
// 标题
|
|
3357
3363
|
headerTitle: {
|
|
3358
3364
|
type: String,
|
|
@@ -3420,15 +3426,15 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3420
3426
|
vt((x) => ({
|
|
3421
3427
|
v59e2b6b4: F
|
|
3422
3428
|
}));
|
|
3423
|
-
const
|
|
3429
|
+
const c = l, e = et(l, "modelValue"), t = B(c.defaultShow), k = () => {
|
|
3424
3430
|
t.value = !t.value;
|
|
3425
|
-
}, h = R(() =>
|
|
3431
|
+
}, h = R(() => c.fields.filter((x) => !x.onlyForm)), O = R(() => {
|
|
3426
3432
|
var x;
|
|
3427
|
-
return (x =
|
|
3428
|
-
}), v = R(() =>
|
|
3433
|
+
return (x = c.fields) == null ? void 0 : x.filter((C) => C.search);
|
|
3434
|
+
}), v = R(() => O.value.length), F = `${c.headerHeight}px`;
|
|
3429
3435
|
return (x, C) => {
|
|
3430
3436
|
const A = te("el-card");
|
|
3431
|
-
return s(),
|
|
3437
|
+
return s(), y(
|
|
3432
3438
|
"div",
|
|
3433
3439
|
{
|
|
3434
3440
|
class: ce(["ik-page-header", { "show-search": t.value }])
|
|
@@ -3438,7 +3444,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3438
3444
|
"div",
|
|
3439
3445
|
{
|
|
3440
3446
|
class: "header",
|
|
3441
|
-
style:
|
|
3447
|
+
style: Me({
|
|
3442
3448
|
borderColor: l.headerBorder ? "var(--ik-border-color)" : "transparent",
|
|
3443
3449
|
marginBottom: l.headerBorder ? "8px" : "0"
|
|
3444
3450
|
})
|
|
@@ -3489,7 +3495,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3489
3495
|
:width="40"\r
|
|
3490
3496
|
size="small"\r
|
|
3491
3497
|
/> `),
|
|
3492
|
-
|
|
3498
|
+
m(T(Na), {
|
|
3493
3499
|
modelValue: e.value,
|
|
3494
3500
|
"onUpdate:modelValue": C[0] || (C[0] = (o) => e.value = o),
|
|
3495
3501
|
title: "设置表格字段",
|
|
@@ -3501,13 +3507,13 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3501
3507
|
4
|
|
3502
3508
|
/* STYLE */
|
|
3503
3509
|
),
|
|
3504
|
-
|
|
3510
|
+
m(A, {
|
|
3505
3511
|
shadow: "always",
|
|
3506
3512
|
class: "search-form"
|
|
3507
3513
|
}, {
|
|
3508
3514
|
default: P(() => [
|
|
3509
|
-
|
|
3510
|
-
list:
|
|
3515
|
+
m(T(Ga), {
|
|
3516
|
+
list: O.value,
|
|
3511
3517
|
search: l.search,
|
|
3512
3518
|
loading: l.loading
|
|
3513
3519
|
}, null, 8, ["list", "search", "loading"]),
|
|
@@ -3515,7 +3521,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3515
3521
|
class: "hide-serch",
|
|
3516
3522
|
onClick: k
|
|
3517
3523
|
}, [
|
|
3518
|
-
|
|
3524
|
+
m(T(Oe), {
|
|
3519
3525
|
title: "收起",
|
|
3520
3526
|
rotate: "180",
|
|
3521
3527
|
name: "icon-shouqi"
|
|
@@ -3676,20 +3682,20 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3676
3682
|
}
|
|
3677
3683
|
},
|
|
3678
3684
|
emits: ["currentChange", "sizeChange"],
|
|
3679
|
-
setup(l, { emit:
|
|
3680
|
-
const e = l, t =
|
|
3685
|
+
setup(l, { emit: c }) {
|
|
3686
|
+
const e = l, t = c, k = B(1);
|
|
3681
3687
|
re(() => e.current, (x) => {
|
|
3682
3688
|
k.value = x;
|
|
3683
3689
|
});
|
|
3684
|
-
const h = [15, 30, 60, 100, 200, 500],
|
|
3690
|
+
const h = [15, 30, 60, 100, 200, 500], O = B(h[0]), v = (x) => {
|
|
3685
3691
|
t("sizeChange", x), e == null || e.search({
|
|
3686
3692
|
page: k.value,
|
|
3687
|
-
rows:
|
|
3693
|
+
rows: O.value
|
|
3688
3694
|
});
|
|
3689
3695
|
}, F = (x) => {
|
|
3690
3696
|
t("currentChange", x), e == null || e.search({
|
|
3691
3697
|
page: k.value,
|
|
3692
|
-
rows:
|
|
3698
|
+
rows: O.value
|
|
3693
3699
|
});
|
|
3694
3700
|
};
|
|
3695
3701
|
return (x, C) => {
|
|
@@ -3697,8 +3703,8 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3697
3703
|
return s(), D(A, le({
|
|
3698
3704
|
"current-page": k.value,
|
|
3699
3705
|
"onUpdate:currentPage": C[0] || (C[0] = (o) => k.value = o),
|
|
3700
|
-
"page-size":
|
|
3701
|
-
"onUpdate:pageSize": C[1] || (C[1] = (o) =>
|
|
3706
|
+
"page-size": O.value,
|
|
3707
|
+
"onUpdate:pageSize": C[1] || (C[1] = (o) => O.value = o)
|
|
3702
3708
|
}, x.$attrs, {
|
|
3703
3709
|
layout: "slot, ->, sizes, prev, pager, next, jumper",
|
|
3704
3710
|
small: l.mini,
|
|
@@ -3710,7 +3716,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3710
3716
|
}), {
|
|
3711
3717
|
default: P(() => [
|
|
3712
3718
|
u("span", Za, [
|
|
3713
|
-
C[2] || (C[2] =
|
|
3719
|
+
C[2] || (C[2] = ae(
|
|
3714
3720
|
" 共",
|
|
3715
3721
|
-1
|
|
3716
3722
|
/* CACHED */
|
|
@@ -3722,7 +3728,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3722
3728
|
1
|
|
3723
3729
|
/* TEXT */
|
|
3724
3730
|
),
|
|
3725
|
-
C[3] || (C[3] =
|
|
3731
|
+
C[3] || (C[3] = ae(
|
|
3726
3732
|
" 项数据 ",
|
|
3727
3733
|
-1
|
|
3728
3734
|
/* CACHED */
|
|
@@ -3738,37 +3744,37 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3738
3744
|
__name: "IkPageTable",
|
|
3739
3745
|
props: yt,
|
|
3740
3746
|
emits: ["selection-change", "page-change"],
|
|
3741
|
-
setup(l, { expose:
|
|
3747
|
+
setup(l, { expose: c, emit: e }) {
|
|
3742
3748
|
var o;
|
|
3743
|
-
const t = l, k = e, { attrs: h } = wt(),
|
|
3749
|
+
const t = l, k = e, { attrs: h } = wt(), O = B({
|
|
3744
3750
|
page: ((o = h.page) == null ? void 0 : o.page) || 1,
|
|
3745
3751
|
rows: 15
|
|
3746
3752
|
}), v = R(() => {
|
|
3747
|
-
const { page: a, rows: i } = (h == null ? void 0 : h.page) ||
|
|
3748
|
-
return
|
|
3749
|
-
|
|
3750
|
-
}),
|
|
3753
|
+
const { page: a, rows: i } = (h == null ? void 0 : h.page) || O.value, w = se.cloneDeep(t.tableData);
|
|
3754
|
+
return w.forEach((d, g) => {
|
|
3755
|
+
d.__index = a === 1 ? g + 1 : (a - 1) * i + g + 1;
|
|
3756
|
+
}), w;
|
|
3751
3757
|
}), F = (a) => {
|
|
3752
|
-
|
|
3758
|
+
O.value = a, k("page-change", a), t.search();
|
|
3753
3759
|
}, x = B([]), C = (a) => {
|
|
3754
3760
|
x.value = a, k("selection-change", a);
|
|
3755
3761
|
}, A = B();
|
|
3756
|
-
return
|
|
3762
|
+
return c({ table: A }), (a, i) => {
|
|
3757
3763
|
var W, $, f;
|
|
3758
|
-
const
|
|
3759
|
-
return s(),
|
|
3764
|
+
const w = te("el-table-column"), d = te("el-table"), g = tt("loading");
|
|
3765
|
+
return s(), y(
|
|
3760
3766
|
Z,
|
|
3761
3767
|
null,
|
|
3762
3768
|
[
|
|
3763
3769
|
b(" 自定义表格 "),
|
|
3764
|
-
(W = a.$slots) != null && W.table ? ge(a.$slots, "table", { key: 0 }, void 0, !0) : (s(),
|
|
3770
|
+
(W = a.$slots) != null && W.table ? ge(a.$slots, "table", { key: 0 }, void 0, !0) : (s(), y(
|
|
3765
3771
|
Z,
|
|
3766
3772
|
{ key: 1 },
|
|
3767
3773
|
[
|
|
3768
3774
|
b(" 默认表格 "),
|
|
3769
|
-
|
|
3775
|
+
m(gt, { name: "el-zoom-in-center" }, {
|
|
3770
3776
|
default: P(() => [
|
|
3771
|
-
Ce((s(), D(
|
|
3777
|
+
Ce((s(), D(d, le({
|
|
3772
3778
|
ref_key: "refTable",
|
|
3773
3779
|
ref: A
|
|
3774
3780
|
}, { ...a.$attrs, ...t }, {
|
|
@@ -3777,13 +3783,13 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3777
3783
|
onSelectionChange: C
|
|
3778
3784
|
}), {
|
|
3779
3785
|
default: P(() => [
|
|
3780
|
-
a.selection ? (s(), D(
|
|
3786
|
+
a.selection ? (s(), D(w, {
|
|
3781
3787
|
key: 0,
|
|
3782
3788
|
type: "selection",
|
|
3783
3789
|
align: "center",
|
|
3784
3790
|
width: "56"
|
|
3785
3791
|
})) : b("v-if", !0),
|
|
3786
|
-
a.serial ? (s(), D(
|
|
3792
|
+
a.serial ? (s(), D(w, {
|
|
3787
3793
|
key: 1,
|
|
3788
3794
|
prop: "__index",
|
|
3789
3795
|
label: "序号",
|
|
@@ -3795,7 +3801,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3795
3801
|
_: 3
|
|
3796
3802
|
/* FORWARDED */
|
|
3797
3803
|
}, 16, ["data"])), [
|
|
3798
|
-
[
|
|
3804
|
+
[g, a.loading]
|
|
3799
3805
|
])
|
|
3800
3806
|
]),
|
|
3801
3807
|
_: 3
|
|
@@ -3820,7 +3826,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3820
3826
|
}
|
|
3821
3827
|
}), an = /* @__PURE__ */ oe(ln, [["__scopeId", "data-v-7e61d7f1"]]), nn = { class: "choose" }, sn = { class: "btn" }, on = /* @__PURE__ */ ue({
|
|
3822
3828
|
__name: "index",
|
|
3823
|
-
props: /* @__PURE__ */
|
|
3829
|
+
props: /* @__PURE__ */ Ee(yt, {
|
|
3824
3830
|
modelValue: {
|
|
3825
3831
|
type: Object,
|
|
3826
3832
|
default: () => ({
|
|
@@ -3830,16 +3836,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3830
3836
|
},
|
|
3831
3837
|
modelModifiers: {}
|
|
3832
3838
|
}),
|
|
3833
|
-
emits: /* @__PURE__ */
|
|
3834
|
-
setup(l, { expose:
|
|
3835
|
-
const t = l, k = e, h = et(l, "modelValue"),
|
|
3839
|
+
emits: /* @__PURE__ */ Ee(["selection-change", "delete", "download", "addFunction"], ["update:modelValue"]),
|
|
3840
|
+
setup(l, { expose: c, emit: e }) {
|
|
3841
|
+
const t = l, k = e, h = et(l, "modelValue"), O = () => {
|
|
3836
3842
|
var U;
|
|
3837
3843
|
(U = h == null ? void 0 : h.value) != null && U.page && (h.value = {
|
|
3838
3844
|
page: 1,
|
|
3839
3845
|
rows: 15
|
|
3840
3846
|
});
|
|
3841
3847
|
};
|
|
3842
|
-
|
|
3848
|
+
O();
|
|
3843
3849
|
const v = (U) => {
|
|
3844
3850
|
h.value = {
|
|
3845
3851
|
...h.value,
|
|
@@ -3847,7 +3853,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3847
3853
|
};
|
|
3848
3854
|
}, F = (U) => {
|
|
3849
3855
|
var S;
|
|
3850
|
-
|
|
3856
|
+
O();
|
|
3851
3857
|
const V = (U == null ? void 0 : U.type) === "click" ? {} : U;
|
|
3852
3858
|
h.value = {
|
|
3853
3859
|
...h.value,
|
|
@@ -3857,27 +3863,27 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3857
3863
|
});
|
|
3858
3864
|
}, x = B([]), C = (U) => {
|
|
3859
3865
|
x.value = U, k("selection-change", U);
|
|
3860
|
-
}, A = R(() => x.value.length || t.chooseLen), o = B(t.fields), a = R(() => "light"), i = B(),
|
|
3861
|
-
W.value = U ? { ...U } : null, t.title ? t.title.includes("新增") || t.title.includes("修改") ? $.value = U ? t.title.replace(/新增/g, "修改") : t.title.replace(/修改/g, "新增") : $.value = U ? `修改${t.title}` : `新增${t.title}` : $.value = U ? "修改" : "新增",
|
|
3862
|
-
},
|
|
3863
|
-
return
|
|
3866
|
+
}, A = R(() => x.value.length || t.chooseLen), o = B(t.fields), a = R(() => "light"), i = B(), w = B(), d = B(), g = B(!1), W = B(void 0), $ = B(t.title || ""), f = (U) => {
|
|
3867
|
+
W.value = U ? { ...U } : null, t.title ? t.title.includes("新增") || t.title.includes("修改") ? $.value = U ? t.title.replace(/新增/g, "修改") : t.title.replace(/修改/g, "新增") : $.value = U ? `修改${t.title}` : `新增${t.title}` : $.value = U ? "修改" : "新增", g.value = !0;
|
|
3868
|
+
}, ne = R(() => t.fields.find((U) => U.isEdit));
|
|
3869
|
+
return c({
|
|
3864
3870
|
table: i,
|
|
3865
|
-
header:
|
|
3871
|
+
header: w,
|
|
3866
3872
|
chooseList: x,
|
|
3867
3873
|
srotFields: o,
|
|
3868
3874
|
pageData: h,
|
|
3869
|
-
dialog:
|
|
3875
|
+
dialog: d,
|
|
3870
3876
|
handAdd: f
|
|
3871
3877
|
}), (U, V) => {
|
|
3872
3878
|
const S = te("el-button"), j = te("IkNumberDuration"), z = te("el-table-column"), ie = tt("role");
|
|
3873
|
-
return s(),
|
|
3879
|
+
return s(), y(
|
|
3874
3880
|
Z,
|
|
3875
3881
|
null,
|
|
3876
3882
|
[
|
|
3877
3883
|
b(" 标题 + 搜索表单 "),
|
|
3878
|
-
|
|
3884
|
+
m(Ka, le({
|
|
3879
3885
|
ref_key: "refHeader",
|
|
3880
|
-
ref:
|
|
3886
|
+
ref: w
|
|
3881
3887
|
}, { ...U.$attrs, ...t }, {
|
|
3882
3888
|
modelValue: o.value,
|
|
3883
3889
|
"onUpdate:modelValue": V[1] || (V[1] = (E) => o.value = E),
|
|
@@ -3890,13 +3896,13 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3890
3896
|
]),
|
|
3891
3897
|
headerRight: P(() => [
|
|
3892
3898
|
ge(U.$slots, "headerRight", {}, () => [
|
|
3893
|
-
|
|
3899
|
+
ne.value ? Ce((s(), D(S, {
|
|
3894
3900
|
key: 0,
|
|
3895
3901
|
type: "primary",
|
|
3896
3902
|
onClick: V[0] || (V[0] = (E) => f(null))
|
|
3897
3903
|
}, {
|
|
3898
3904
|
default: P(() => [...V[4] || (V[4] = [
|
|
3899
|
-
|
|
3905
|
+
ae(
|
|
3900
3906
|
" 新增 ",
|
|
3901
3907
|
-1
|
|
3902
3908
|
/* CACHED */
|
|
@@ -3913,7 +3919,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3913
3919
|
/* FORWARDED */
|
|
3914
3920
|
}, 16, ["modelValue", "loading", "tab-id"]),
|
|
3915
3921
|
b(" 选中表格项 "),
|
|
3916
|
-
U.selection ? (s(),
|
|
3922
|
+
U.selection ? (s(), y(
|
|
3917
3923
|
"div",
|
|
3918
3924
|
{
|
|
3919
3925
|
key: 0,
|
|
@@ -3921,32 +3927,32 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3921
3927
|
},
|
|
3922
3928
|
[
|
|
3923
3929
|
u("p", nn, [
|
|
3924
|
-
V[5] || (V[5] =
|
|
3930
|
+
V[5] || (V[5] = ae(
|
|
3925
3931
|
" 已选 ",
|
|
3926
3932
|
-1
|
|
3927
3933
|
/* CACHED */
|
|
3928
3934
|
)),
|
|
3929
3935
|
u("span", null, [
|
|
3930
|
-
|
|
3936
|
+
m(j, { value: A.value }, null, 8, ["value"])
|
|
3931
3937
|
]),
|
|
3932
|
-
V[6] || (V[6] =
|
|
3938
|
+
V[6] || (V[6] = ae(
|
|
3933
3939
|
" 条 ",
|
|
3934
3940
|
-1
|
|
3935
3941
|
/* CACHED */
|
|
3936
3942
|
))
|
|
3937
3943
|
]),
|
|
3938
3944
|
u("div", sn, [
|
|
3939
|
-
U.$slots.selectionRight ? ge(U.$slots, "selectionRight", { key: 1 }, void 0, !0) : (s(),
|
|
3945
|
+
U.$slots.selectionRight ? ge(U.$slots, "selectionRight", { key: 1 }, void 0, !0) : (s(), y(
|
|
3940
3946
|
Z,
|
|
3941
3947
|
{ key: 0 },
|
|
3942
3948
|
[
|
|
3943
|
-
|
|
3949
|
+
m(T(Oe), {
|
|
3944
3950
|
name: "icon-shanchu",
|
|
3945
3951
|
"show-bg": "",
|
|
3946
3952
|
size: "default",
|
|
3947
3953
|
onClick: V[2] || (V[2] = (E) => U.$emit("delete", x.value))
|
|
3948
3954
|
}),
|
|
3949
|
-
|
|
3955
|
+
m(T(Oe), {
|
|
3950
3956
|
ize: "default",
|
|
3951
3957
|
name: "icon-xiazai",
|
|
3952
3958
|
"show-bg": "",
|
|
@@ -3963,7 +3969,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3963
3969
|
)) : b("v-if", !0),
|
|
3964
3970
|
b(" 自定义表格 "),
|
|
3965
3971
|
ge(U.$slots, "table", {}, () => [
|
|
3966
|
-
|
|
3972
|
+
m(an, le({
|
|
3967
3973
|
ref_key: "refTable",
|
|
3968
3974
|
ref: i,
|
|
3969
3975
|
page: h.value
|
|
@@ -3972,16 +3978,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3972
3978
|
onSelectionChange: C
|
|
3973
3979
|
}), {
|
|
3974
3980
|
default: P(() => [
|
|
3975
|
-
(s(!0),
|
|
3981
|
+
(s(!0), y(
|
|
3976
3982
|
Z,
|
|
3977
3983
|
null,
|
|
3978
|
-
Ae(o.value, (E) => (s(),
|
|
3984
|
+
Ae(o.value, (E) => (s(), y(
|
|
3979
3985
|
Z,
|
|
3980
3986
|
{
|
|
3981
3987
|
key: E.key
|
|
3982
3988
|
},
|
|
3983
3989
|
[
|
|
3984
|
-
E.show ? (s(),
|
|
3990
|
+
E.show ? (s(), y(
|
|
3985
3991
|
Z,
|
|
3986
3992
|
{ key: 0 },
|
|
3987
3993
|
[
|
|
@@ -4045,7 +4051,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
4045
4051
|
);
|
|
4046
4052
|
};
|
|
4047
4053
|
}
|
|
4048
|
-
}), rn = /* @__PURE__ */ oe(on, [["__scopeId", "data-v-a4dd744c"]]), hn =
|
|
4054
|
+
}), rn = /* @__PURE__ */ oe(on, [["__scopeId", "data-v-a4dd744c"]]), hn = ze(rn);
|
|
4049
4055
|
export {
|
|
4050
4056
|
hn as IkPageFull,
|
|
4051
4057
|
hn as default
|