iking-web-ui-pro 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcess/ik.index.es.js +415 -405
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +1355 -1345
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +657 -647
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +254 -244
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkSearch/ik.index.es.js +335 -325
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/{index-TozM1JQc.mjs → index-DPL8lSSW.mjs} +2301 -2291
- package/dist/{index.es-CzjzOv5W.mjs → index.es-D7jRDuLK.mjs} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +38 -38
- package/dist/{jspdf.es.min-fCMW3s1m.mjs → jspdf.es.min-C50KWSPo.mjs} +1 -1
- package/dist/src/components/IkFileIcon/index.d.ts +3 -3
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +3 -3
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +9 -0
- package/dist/src/components/IkPickerUser/index.d.ts +9 -0
- package/dist/src/components/IkPickerUser/src/default.d.ts +4 -0
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +12 -3
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as ue, createElementBlock 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 ze, normalizeClass as ce, createBlock as D, Fragment as Z, withCtx as P, mergeProps as le, createTextVNode as ae, toDisplayString as X, createCommentVNode as k, ref as B, watch as re, createVNode as m, unref as T, renderList as Ae, toRef as At, reactive as nt, nextTick as st, watchEffect as ot, withDirectives as Ce, withModifiers as $e, vShow as bt, mergeModels as Ee, useModel as et, resolveDirective as tt, createSlots as kt, Transition as vt, renderSlot as ge, isVNode as xt, useCssVars as Ot, getCurrentInstance as wt } from "vue";
|
|
2
2
|
import { ElCheckbox as Le, ElCheckboxGroup as He, ElRadioGroup as Fe, ElRadio as We, ElDialog as Ct, ElInput as je, 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
|
-
import { ikColor as Dt, ikStore as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const Re = (l,
|
|
3
|
+
import { ikColor as Dt, ikStore as Se, _ as se, ikEvent as $t } from "iking-utils-pro";
|
|
4
|
+
import gt from "vuedraggable";
|
|
5
|
+
import Mt from "axios";
|
|
6
|
+
const Re = (l, c) => (l.install = (e) => {
|
|
7
7
|
for (const t of [l, ...Object.values({})])
|
|
8
8
|
e.component(t.name, t);
|
|
9
9
|
}, l);
|
|
10
10
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
11
|
-
var
|
|
11
|
+
var Et = /* @__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
|
}, [
|
|
@@ -22,13 +22,13 @@ var Mt = /* @__PURE__ */ ue({
|
|
|
22
22
|
})
|
|
23
23
|
]));
|
|
24
24
|
}
|
|
25
|
-
}), zt =
|
|
26
|
-
const oe = (l,
|
|
25
|
+
}), zt = Et;
|
|
26
|
+
const oe = (l, c) => {
|
|
27
27
|
const e = l.__vccOpts || l;
|
|
28
|
-
for (const [t,
|
|
29
|
-
e[t] =
|
|
28
|
+
for (const [t, b] of c)
|
|
29
|
+
e[t] = b;
|
|
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"), b = 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
|
-
cUploadUrl:
|
|
91
|
-
cToken:
|
|
90
|
+
cUploadUrl: b,
|
|
91
|
+
cToken: O,
|
|
92
92
|
cOnlyofficeConfig: F,
|
|
93
93
|
cUserInfo: C,
|
|
94
94
|
cOnlyofficePreviewType: A
|
|
@@ -129,8 +129,8 @@ const oe = (l, d) => {
|
|
|
129
129
|
iconClass: { default: "" }
|
|
130
130
|
},
|
|
131
131
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
132
|
-
setup(l, { emit:
|
|
133
|
-
const e = l, t = R(() => e),
|
|
132
|
+
setup(l, { emit: c }) {
|
|
133
|
+
const e = l, t = R(() => e), b = 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";
|
|
136
136
|
}), h = R(() => {
|
|
@@ -153,29 +153,29 @@ const oe = (l, d) => {
|
|
|
153
153
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
154
154
|
...A.length && { transform: A.join(" ") },
|
|
155
155
|
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
156
|
-
...t.value.color &&
|
|
156
|
+
...t.value.color && b.value !== "iksig" ? {
|
|
157
157
|
"--ik-icon-deep-color": t.value.color,
|
|
158
158
|
"--ik-icon-shallow-color": t.value.colorLight || Dt.setOpacity(t.value.color, t.value.opacity)
|
|
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", {
|
|
177
177
|
[l.iconClass]: !0,
|
|
178
|
-
[l.name]:
|
|
178
|
+
[l.name]: b.value === "unocss",
|
|
179
179
|
"show-bg": t.value.showBg || t.value.bg,
|
|
180
180
|
default: t.value.size === "default",
|
|
181
181
|
small: t.value.size === "small",
|
|
@@ -194,15 +194,15 @@ const oe = (l, d) => {
|
|
|
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
|
-
|
|
205
|
+
b.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
|
-
)) :
|
|
214
|
+
)) : b.value === "svg" ? (s(), y("svg", jt, [
|
|
215
215
|
u("use", {
|
|
216
216
|
"xlink:href": `#${t.value.name}`
|
|
217
217
|
}, null, 8, Ht)
|
|
218
|
-
])) :
|
|
218
|
+
])) : b.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
|
-
|
|
243
|
+
b.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
|
-
)) :
|
|
252
|
+
)) : b.value === "svg" ? (s(), y("svg", Wt, [
|
|
253
253
|
u("use", {
|
|
254
254
|
"xlink:href": `#${t.value.name}`
|
|
255
255
|
}, null, 8, Gt)
|
|
256
|
-
])) :
|
|
256
|
+
])) : b.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 */
|
|
@@ -300,8 +300,8 @@ const oe = (l, d) => {
|
|
|
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,23 +500,23 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
502
|
setup(l) {
|
|
503
|
-
const
|
|
504
|
-
return (
|
|
505
|
-
const
|
|
506
|
-
return s(),
|
|
507
|
-
|
|
508
|
-
l.element[l.fixPropOpt.avatar] ? (s(), D(
|
|
503
|
+
const c = l, { cLoadUrl: e } = Nt(c), t = (b) => Rt(e.value, b);
|
|
504
|
+
return (b, h) => {
|
|
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)),
|
|
516
516
|
1
|
|
517
517
|
/* TEXT */
|
|
518
518
|
))
|
|
519
|
-
])) :
|
|
519
|
+
])) : k("v-if", !0)
|
|
520
520
|
]);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
@@ -578,7 +578,7 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
578
578
|
// 传['dep', 'user', 'role']则选择人员、部门和角色
|
|
579
579
|
default: () => ["dep"]
|
|
580
580
|
}
|
|
581
|
-
},
|
|
581
|
+
}, bl = { class: "left-pick-list" }, kl = {
|
|
582
582
|
key: 0,
|
|
583
583
|
class: "post-view-list"
|
|
584
584
|
}, xl = { class: "checkText" }, Ol = { class: "iconBox" }, wl = { class: "name_number" }, Cl = { class: "title" }, Bl = {
|
|
@@ -590,10 +590,10 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
590
590
|
}, Ll = { class: "iconBox" }, Sl = { class: "name_number" }, Tl = { class: "title" }, Ul = {
|
|
591
591
|
key: 0,
|
|
592
592
|
class: "userCount"
|
|
593
|
-
}, Vl = ["onClick"], Il = { class: "checkText" }, _l = { class: "iconBox" }, Dl = { class: "name_number" }, $l = { class: "title" },
|
|
593
|
+
}, Vl = ["onClick"], Il = { class: "checkText" }, _l = { class: "iconBox" }, Dl = { class: "name_number" }, $l = { class: "title" }, Ml = {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: "userCount"
|
|
596
|
-
},
|
|
596
|
+
}, El = {
|
|
597
597
|
key: 1,
|
|
598
598
|
class: "checkText"
|
|
599
599
|
}, zl = { class: "iconBox" }, Rl = { class: "name_number" }, Nl = { class: "title" }, jl = {
|
|
@@ -606,67 +606,72 @@ 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;
|
|
623
628
|
},
|
|
624
629
|
{ immediate: !0 }
|
|
625
630
|
);
|
|
626
|
-
const
|
|
627
|
-
var
|
|
628
|
-
const i = (
|
|
631
|
+
const b = R(() => {
|
|
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
|
[
|
|
659
|
-
|
|
660
|
-
u("div",
|
|
664
|
+
k(" 遍历list多选 "),
|
|
665
|
+
u("div", bl, [
|
|
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":
|
|
665
|
-
indeterminate:
|
|
669
|
+
"onUpdate:modelValue": w[0] || (w[0] = (g) => t.value = g),
|
|
670
|
+
indeterminate: b.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 */
|
|
@@ -674,39 +679,39 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
674
679
|
])]),
|
|
675
680
|
_: 1
|
|
676
681
|
/* STABLE */
|
|
677
|
-
}, 8, ["modelValue", "indeterminate"])) :
|
|
678
|
-
|
|
682
|
+
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
683
|
+
m(d, null, {
|
|
679
684
|
default: P(() => [
|
|
680
|
-
i.list && i.list.length ? (s(),
|
|
685
|
+
i.list && i.list.length ? (s(), y("ul", kl, [
|
|
681
686
|
i.multiple ? (s(), D(T(He), {
|
|
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,24 +719,24 @@ 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
|
+
)) : k("v-if", !0)
|
|
728
733
|
])
|
|
729
734
|
])
|
|
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,34 +755,34 @@ 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
|
+
)) : k("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
|
-
}, " 下级", 10, Vl)) :
|
|
785
|
+
}, " 下级", 10, Vl)) : k("v-if", !0)
|
|
781
786
|
]);
|
|
782
787
|
}),
|
|
783
788
|
128
|
|
@@ -788,34 +793,34 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
788
793
|
/* STABLE */
|
|
789
794
|
}, 8, ["modelValue"])) : (s(), D(T(Fe), {
|
|
790
795
|
key: 1,
|
|
791
|
-
isIndeterminate:
|
|
792
|
-
modelValue:
|
|
793
|
-
"onUpdate:modelValue":
|
|
796
|
+
isIndeterminate: b.value,
|
|
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(We), {
|
|
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,24 +828,24 @@ 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
|
-
|
|
833
|
-
" (" + X((
|
|
837
|
+
Ml,
|
|
838
|
+
" (" + X((g == null ? void 0 : g.userCount) || 0) + ") ",
|
|
834
839
|
1
|
|
835
840
|
/* TEXT */
|
|
836
|
-
)) :
|
|
841
|
+
)) : k("v-if", !0)
|
|
837
842
|
])
|
|
838
843
|
])
|
|
839
844
|
]),
|
|
840
845
|
_: 2
|
|
841
846
|
/* DYNAMIC */
|
|
842
|
-
}, 1032, ["label"])) : (s(),
|
|
843
|
-
|
|
847
|
+
}, 1032, ["label"])) : (s(), y("div", El, [
|
|
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,34 +864,34 @@ 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
|
+
)) : k("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
|
-
}, " 下级", 10, Hl)) :
|
|
894
|
+
}, " 下级", 10, Hl)) : k("v-if", !0)
|
|
890
895
|
]);
|
|
891
896
|
}),
|
|
892
897
|
128
|
|
@@ -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
|
-
}),
|
|
951
|
-
var
|
|
952
|
-
const a = (
|
|
953
|
-
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) :
|
|
955
|
+
}), b = R(() => {
|
|
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,22 +967,22 @@ 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
|
[
|
|
970
|
-
|
|
975
|
+
k(" 遍历list多选 "),
|
|
971
976
|
u("div", Yl, [
|
|
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] = (
|
|
976
|
-
indeterminate:
|
|
980
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => t.value = d),
|
|
981
|
+
indeterminate: b.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 */
|
|
@@ -985,47 +990,47 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
985
990
|
])]),
|
|
986
991
|
_: 1
|
|
987
992
|
/* STABLE */
|
|
988
|
-
}, 8, ["modelValue", "indeterminate"])) :
|
|
989
|
-
|
|
993
|
+
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
994
|
+
m(w, null, {
|
|
990
995
|
default: P(() => [
|
|
991
|
-
a.list && a.list.length ? (s(),
|
|
996
|
+
a.list && a.list.length ? (s(), y("ul", Ql, [
|
|
992
997
|
a.multiple ? (s(), D(T(He), {
|
|
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
|
)
|
|
@@ -1058,37 +1063,37 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1058
1063
|
/* STABLE */
|
|
1059
1064
|
}, 8, ["modelValue"])) : (s(), D(T(Fe), {
|
|
1060
1065
|
key: 1,
|
|
1061
|
-
isIndeterminate:
|
|
1062
|
-
modelValue:
|
|
1063
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
1066
|
+
isIndeterminate: b.value,
|
|
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(We), {
|
|
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
|
{
|
|
@@ -1167,26 +1172,26 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1167
1172
|
}, pa = { class: "iconBox" }, fa = ["title"], ha = { class: "ik-picker-single" }, va = { class: "iconBox" }, ga = ["title"], ma = {
|
|
1168
1173
|
key: 1,
|
|
1169
1174
|
class: "checkText"
|
|
1170
|
-
}, ya = { class: "iconBox" }, Aa = ["title"],
|
|
1175
|
+
}, ya = { class: "iconBox" }, Aa = ["title"], ba = {
|
|
1171
1176
|
key: 1,
|
|
1172
1177
|
class: "empty"
|
|
1173
|
-
},
|
|
1178
|
+
}, ka = /* @__PURE__ */ ue({
|
|
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
|
-
}),
|
|
1183
|
-
var
|
|
1184
|
-
const a = (
|
|
1185
|
-
return e.multiple ? h.value = e.handList.map(($) => $[e.fixPropOpt.id]) :
|
|
1187
|
+
}), b = R(() => {
|
|
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,22 +1199,22 @@ 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
|
[
|
|
1202
|
-
|
|
1207
|
+
k(" 遍历list多选 "),
|
|
1203
1208
|
u("div", ia, [
|
|
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] = (
|
|
1208
|
-
indeterminate:
|
|
1212
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => t.value = d),
|
|
1213
|
+
indeterminate: b.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 */
|
|
@@ -1217,45 +1222,45 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1217
1222
|
])]),
|
|
1218
1223
|
_: 1
|
|
1219
1224
|
/* STABLE */
|
|
1220
|
-
}, 8, ["modelValue", "indeterminate"])) :
|
|
1221
|
-
|
|
1225
|
+
}, 8, ["modelValue", "indeterminate"])) : k("v-if", !0),
|
|
1226
|
+
m(w, null, {
|
|
1222
1227
|
default: P(() => [
|
|
1223
|
-
a.list && a.list.length ? (s(),
|
|
1228
|
+
a.list && a.list.length ? (s(), y("ul", ra, [
|
|
1224
1229
|
a.multiple ? (s(), D(T(He), {
|
|
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
|
|
@@ -1285,43 +1290,43 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1285
1290
|
/* STABLE */
|
|
1286
1291
|
}, 8, ["modelValue"])) : (s(), D(T(Fe), {
|
|
1287
1292
|
key: 1,
|
|
1288
|
-
indeterminate:
|
|
1289
|
-
modelValue:
|
|
1290
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
1293
|
+
indeterminate: b.value,
|
|
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(We), {
|
|
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", ba, [
|
|
1354
1359
|
i[6] || (i[6] = u(
|
|
1355
1360
|
"img",
|
|
1356
1361
|
{
|
|
@@ -1380,8 +1385,8 @@ const vl = /* @__PURE__ */ oe(pl, [["render", hl]]), gl = { class: "avatar" }, m
|
|
|
1380
1385
|
);
|
|
1381
1386
|
};
|
|
1382
1387
|
}
|
|
1383
|
-
}), xa = /* @__PURE__ */ oe(
|
|
1384
|
-
var
|
|
1388
|
+
}), xa = /* @__PURE__ */ oe(ka, [["__scopeId", "data-v-5e7c0e02"]]);
|
|
1389
|
+
var Me = /* @__PURE__ */ ((l) => (l.group = "group", l.role = "role", l.post = "post", l))(Me || {});
|
|
1385
1390
|
const Oa = {
|
|
1386
1391
|
// 是否允许选择子集
|
|
1387
1392
|
children: {
|
|
@@ -1549,33 +1554,38 @@ const Oa = {
|
|
|
1549
1554
|
rootDepartmentOnly: {
|
|
1550
1555
|
type: Boolean,
|
|
1551
1556
|
default: !1
|
|
1557
|
+
},
|
|
1558
|
+
// 是否开启调试模式
|
|
1559
|
+
debug: {
|
|
1560
|
+
type: Boolean,
|
|
1561
|
+
default: !1
|
|
1552
1562
|
}
|
|
1553
1563
|
}, pt = (l) => {
|
|
1554
|
-
const
|
|
1555
|
-
return new URLSearchParams(
|
|
1564
|
+
const c = window.location.search;
|
|
1565
|
+
return new URLSearchParams(c).get(l);
|
|
1556
1566
|
}, wa = (l) => {
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1567
|
+
const c = Se.local.getItem("x_domain");
|
|
1568
|
+
c && (l["X-DOMAIN"] = c);
|
|
1559
1569
|
}, Ca = (l) => {
|
|
1560
1570
|
var e;
|
|
1561
|
-
const
|
|
1562
|
-
if (
|
|
1563
|
-
l["X-DOMAIN"] =
|
|
1571
|
+
const c = pt("domain");
|
|
1572
|
+
if (c) {
|
|
1573
|
+
l["X-DOMAIN"] = c;
|
|
1564
1574
|
const t = pt("code");
|
|
1565
|
-
|
|
1575
|
+
c === "APPLICATION" && (l["X-APP"] = t);
|
|
1566
1576
|
} else
|
|
1567
1577
|
wa(l);
|
|
1568
|
-
(e =
|
|
1569
|
-
}, Ba = (l,
|
|
1570
|
-
const e = B([]), t = async (h,
|
|
1578
|
+
(e = Se.local.getItem("tenant")) == null || e.code;
|
|
1579
|
+
}, Ba = (l, c) => {
|
|
1580
|
+
const e = B([]), t = async (h, O) => {
|
|
1571
1581
|
var V, S, j;
|
|
1572
1582
|
const { url: v, methods: F, headers: x, param: C } = l.value || {}, A = {
|
|
1573
1583
|
// 额外参数
|
|
1574
|
-
rootDepartmentId: ((V =
|
|
1584
|
+
rootDepartmentId: ((V = Se.local.getItem("now_shop")) == null ? void 0 : V.storeId) || "",
|
|
1575
1585
|
parentDepartmentId: h || "",
|
|
1576
|
-
name:
|
|
1577
|
-
rootDepartmentOnly:
|
|
1578
|
-
dataScopeOnly:
|
|
1586
|
+
name: O || "",
|
|
1587
|
+
rootDepartmentOnly: c.rootDepartmentOnly,
|
|
1588
|
+
dataScopeOnly: c.dataScopeOnly,
|
|
1579
1589
|
...C || {}
|
|
1580
1590
|
}, o = {
|
|
1581
1591
|
method: F,
|
|
@@ -1587,7 +1597,7 @@ const Oa = {
|
|
|
1587
1597
|
data: JSON.stringify(A)
|
|
1588
1598
|
};
|
|
1589
1599
|
Ca(o.headers);
|
|
1590
|
-
const a = await
|
|
1600
|
+
const a = await Mt(o), { success: i, data: w } = a.data;
|
|
1591
1601
|
if (!i)
|
|
1592
1602
|
return {
|
|
1593
1603
|
groupList: [],
|
|
@@ -1598,33 +1608,33 @@ const Oa = {
|
|
|
1598
1608
|
rootDepartment: {}
|
|
1599
1609
|
};
|
|
1600
1610
|
const {
|
|
1601
|
-
departments:
|
|
1602
|
-
roles:
|
|
1611
|
+
departments: d,
|
|
1612
|
+
roles: g,
|
|
1603
1613
|
posts: W,
|
|
1604
1614
|
users: $,
|
|
1605
1615
|
rootOrganization: f,
|
|
1606
|
-
rootDepartment:
|
|
1607
|
-
} =
|
|
1608
|
-
return e.value.length === 0 && (e.value[0] =
|
|
1609
|
-
...
|
|
1610
|
-
id:
|
|
1611
|
-
elementType: (j = (S =
|
|
1616
|
+
rootDepartment: ne
|
|
1617
|
+
} = w, U = f || ne;
|
|
1618
|
+
return e.value.length === 0 && (e.value[0] = c.org ? {
|
|
1619
|
+
...c.org,
|
|
1620
|
+
id: c.elementId,
|
|
1621
|
+
elementType: (j = (S = c.org) == null ? void 0 : S.elementType) == null ? void 0 : j.toLocaleUpperCase()
|
|
1612
1622
|
} : {
|
|
1613
1623
|
...U,
|
|
1614
1624
|
id: U.elementId
|
|
1615
1625
|
}), {
|
|
1616
|
-
groupList: se.cloneDeep(
|
|
1617
|
-
roleList: se.cloneDeep(
|
|
1626
|
+
groupList: se.cloneDeep(d),
|
|
1627
|
+
roleList: se.cloneDeep(g),
|
|
1618
1628
|
postList: se.cloneDeep(W),
|
|
1619
1629
|
userList: se.cloneDeep($),
|
|
1620
1630
|
rootOrganization: f,
|
|
1621
|
-
rootDepartment:
|
|
1631
|
+
rootDepartment: ne
|
|
1622
1632
|
};
|
|
1623
1633
|
};
|
|
1624
1634
|
return {
|
|
1625
1635
|
handData: t,
|
|
1626
|
-
handSetChild: (h,
|
|
1627
|
-
t(h == null ? void 0 : h.elementId,
|
|
1636
|
+
handSetChild: (h, O) => {
|
|
1637
|
+
t(h == null ? void 0 : h.elementId, O);
|
|
1628
1638
|
},
|
|
1629
1639
|
bannerList: e
|
|
1630
1640
|
};
|
|
@@ -1635,11 +1645,8 @@ const Oa = {
|
|
|
1635
1645
|
__name: "picker",
|
|
1636
1646
|
props: Oa,
|
|
1637
1647
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1638
|
-
setup(l, { expose:
|
|
1639
|
-
|
|
1640
|
-
v25f808d0: Se.value
|
|
1641
|
-
}));
|
|
1642
|
-
const t = l, k = B(""), h = B(""), w = B([]), v = B([]), F = B([]), x = B([]), C = B(!1), A = R(() => j.value.includes("user") ? v.value.concat(w.value) : v.value);
|
|
1648
|
+
setup(l, { expose: c, emit: e }) {
|
|
1649
|
+
const t = l, b = 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
1650
|
re(
|
|
1644
1651
|
() => t.api,
|
|
1645
1652
|
() => {
|
|
@@ -1658,8 +1665,8 @@ const Oa = {
|
|
|
1658
1665
|
post: "POST",
|
|
1659
1666
|
group: "DEPT",
|
|
1660
1667
|
...t.typeOption
|
|
1661
|
-
})), i = B([]),
|
|
1662
|
-
t.immediate &&
|
|
1668
|
+
})), i = B([]), w = Ba(At(t, "api"), t), d = w.handData, g = w.bannerList;
|
|
1669
|
+
t.immediate && d(h.value, b.value);
|
|
1663
1670
|
const W = (n) => (n.forEach((p) => {
|
|
1664
1671
|
var L, G;
|
|
1665
1672
|
p.disabled = ((G = (L = t.modelValue) == null ? void 0 : L.find(
|
|
@@ -1670,22 +1677,22 @@ const Oa = {
|
|
|
1670
1677
|
C.value = !0;
|
|
1671
1678
|
try {
|
|
1672
1679
|
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
|
-
|
|
1674
|
-
(
|
|
1680
|
+
O.value = (he = t.userList) == null ? void 0 : he.filter(
|
|
1681
|
+
(ke) => ke[o.value.name].includes(b.value)
|
|
1675
1682
|
), v.value = (q = t.groupList) == null ? void 0 : q.filter(
|
|
1676
|
-
(
|
|
1683
|
+
(ke) => ke[o.value.name].includes(b.value)
|
|
1677
1684
|
), F.value = (_e = t.roleList) == null ? void 0 : _e.filter(
|
|
1678
|
-
(
|
|
1685
|
+
(ke) => ke[o.value.name].includes(b.value)
|
|
1679
1686
|
), x.value = (Ke = t.postList) == null ? void 0 : Ke.filter(
|
|
1680
|
-
(
|
|
1687
|
+
(ke) => ke[o.value.name].includes(b.value)
|
|
1681
1688
|
), ee(), C.value = !1;
|
|
1682
1689
|
return;
|
|
1683
1690
|
}
|
|
1684
|
-
const de = await
|
|
1691
|
+
const de = await d(h.value, b.value);
|
|
1685
1692
|
try {
|
|
1686
|
-
|
|
1687
|
-
} catch (
|
|
1688
|
-
C.value = !1, console.info("error: ",
|
|
1693
|
+
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) || []);
|
|
1694
|
+
} catch (ke) {
|
|
1695
|
+
C.value = !1, console.info("error: ", ke);
|
|
1689
1696
|
}
|
|
1690
1697
|
ee(), C.value = !1;
|
|
1691
1698
|
} catch {
|
|
@@ -1704,7 +1711,7 @@ const Oa = {
|
|
|
1704
1711
|
// 当前页面已选项的 ID 数组(用于多选状态管理)
|
|
1705
1712
|
single: ""
|
|
1706
1713
|
// 单选模式下选中的项 ID
|
|
1707
|
-
}),
|
|
1714
|
+
}), ne = nt({
|
|
1708
1715
|
indeterminate: !1,
|
|
1709
1716
|
// 半选状态
|
|
1710
1717
|
checkAll: 0
|
|
@@ -1739,9 +1746,9 @@ const Oa = {
|
|
|
1739
1746
|
z.value = n, z.value.forEach((p) => {
|
|
1740
1747
|
p.readonly = p == null ? void 0 : p.disabled;
|
|
1741
1748
|
});
|
|
1742
|
-
},
|
|
1749
|
+
}, M = e, J = B(!1), ee = (n = !1) => {
|
|
1743
1750
|
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, ...
|
|
1751
|
+
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
1752
|
return !n && ie(p), p;
|
|
1746
1753
|
};
|
|
1747
1754
|
re(
|
|
@@ -1749,12 +1756,12 @@ const Oa = {
|
|
|
1749
1756
|
async (n) => {
|
|
1750
1757
|
var p;
|
|
1751
1758
|
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 $() : (
|
|
1759
|
+
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
1760
|
const L = ee(!0);
|
|
1754
1761
|
for (const he of L)
|
|
1755
1762
|
U(he[o.value.id]) && f.trans.push(he[o.value.id]);
|
|
1756
1763
|
const G = L.length === f.trans.length;
|
|
1757
|
-
|
|
1764
|
+
ne.indeterminate = !!(L.length && !G), ne.checkAll = Number(L.length && G), st(() => {
|
|
1758
1765
|
var he;
|
|
1759
1766
|
(he = t.modelValue) != null && he.length ? t.modelValue.forEach((q) => {
|
|
1760
1767
|
me(q), t.multiple ? f.trans.push(q[o.value.id]) : f.single = q[o.value.id];
|
|
@@ -1766,7 +1773,7 @@ const Oa = {
|
|
|
1766
1773
|
), ot(() => {
|
|
1767
1774
|
let n = z.value.length;
|
|
1768
1775
|
const p = f.trans.length;
|
|
1769
|
-
|
|
1776
|
+
ne.indeterminate = f.trans.length ? p !== n : !1, ne.checkAll = +(n !== 0 && p === n);
|
|
1770
1777
|
}), re(
|
|
1771
1778
|
() => t.modelValue,
|
|
1772
1779
|
(n) => {
|
|
@@ -1777,7 +1784,7 @@ const Oa = {
|
|
|
1777
1784
|
);
|
|
1778
1785
|
const fe = (n) => {
|
|
1779
1786
|
var p;
|
|
1780
|
-
if (n) {
|
|
1787
|
+
if (t.debug && console.log("删除项:", n), !!n) {
|
|
1781
1788
|
if (f.single = "", n[o.value.id]) {
|
|
1782
1789
|
const L = (p = f.trans) == null ? void 0 : p.findIndex(
|
|
1783
1790
|
(G) => G === n[o.value.id]
|
|
@@ -1803,7 +1810,7 @@ const Oa = {
|
|
|
1803
1810
|
}, Ye = (n) => {
|
|
1804
1811
|
Qe();
|
|
1805
1812
|
}, Qe = () => {
|
|
1806
|
-
f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), i.value.forEach((n) => {
|
|
1813
|
+
t.debug && console.log("更新选中项的Map数据结构:", i.value), f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), i.value.forEach((n) => {
|
|
1807
1814
|
const p = n[o.value.id];
|
|
1808
1815
|
switch (n[o.value.type]) {
|
|
1809
1816
|
case a.value.user:
|
|
@@ -1871,9 +1878,9 @@ const Oa = {
|
|
|
1871
1878
|
}
|
|
1872
1879
|
);
|
|
1873
1880
|
const r = (n) => {
|
|
1874
|
-
h.value = n == null ? void 0 : n.elementId, $(),
|
|
1875
|
-
},
|
|
1876
|
-
!p && !t.topLink || p !==
|
|
1881
|
+
h.value = n == null ? void 0 : n.elementId, $(), g.value.push(n);
|
|
1882
|
+
}, E = R(() => g.value.length), _ = (n, p) => {
|
|
1883
|
+
!p && !t.topLink || p !== E.value - 1 && (h.value = n == null ? void 0 : n.elementId, $(), g.value.splice(p + 1));
|
|
1877
1884
|
}, I = R(
|
|
1878
1885
|
() => t.chooseType.includes("role") && t.chooseType.length === 1
|
|
1879
1886
|
), H = R(
|
|
@@ -1881,10 +1888,10 @@ const Oa = {
|
|
|
1881
1888
|
), K = B(t.tabs[0]), Y = B(t.tabs[0]);
|
|
1882
1889
|
ot(() => (Y.value = I.value ? t.tabs[1] : H.value ? t.tabs[2] : K.value, Y.value));
|
|
1883
1890
|
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],
|
|
1891
|
+
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], b.value = "", h.value = t.orgPid, g.value.splice(1, g.value.length), f.single = "", i.value = [];
|
|
1885
1892
|
}, Q = () => {
|
|
1886
1893
|
var n;
|
|
1887
|
-
|
|
1894
|
+
M(
|
|
1888
1895
|
"ok",
|
|
1889
1896
|
se.cloneDeep({
|
|
1890
1897
|
// 所有选项、部门、人员、角色分别列出
|
|
@@ -1892,11 +1899,11 @@ const Oa = {
|
|
|
1892
1899
|
// 排序后的列表
|
|
1893
1900
|
sort: i.value
|
|
1894
1901
|
})
|
|
1895
|
-
),
|
|
1896
|
-
},
|
|
1897
|
-
|
|
1902
|
+
), M("update:modelValue", se.cloneDeep(((n = S.value) == null ? void 0 : n.list) || [])), M("update:show", !1), N();
|
|
1903
|
+
}, be = () => {
|
|
1904
|
+
M("update:show", !1), N();
|
|
1898
1905
|
};
|
|
1899
|
-
|
|
1906
|
+
c({
|
|
1900
1907
|
handClear: N,
|
|
1901
1908
|
// 清空所有选择
|
|
1902
1909
|
handRomeve: Ne,
|
|
@@ -1904,14 +1911,14 @@ const Oa = {
|
|
|
1904
1911
|
handDelete: fe
|
|
1905
1912
|
// 删除选中项
|
|
1906
1913
|
});
|
|
1907
|
-
const
|
|
1914
|
+
const Te = R(() => {
|
|
1908
1915
|
const n = j.value;
|
|
1909
1916
|
return !!((n.includes("post") || n.includes("role")) && n.length > 1);
|
|
1910
|
-
}),
|
|
1917
|
+
}), Ue = R(() => [
|
|
1911
1918
|
{ name: "group", label: "组织架构" },
|
|
1912
1919
|
{ name: "role", label: "角色列表" },
|
|
1913
1920
|
{ name: "post", label: "岗位列表" }
|
|
1914
|
-
].filter((n) => t.tabs.includes(n.name))),
|
|
1921
|
+
].filter((n) => t.tabs.includes(n.name))), Ve = R(
|
|
1915
1922
|
() => `${typeof t.height == "string" ? Number.parseInt(t.height) : t.height}px`
|
|
1916
1923
|
), Be = () => {
|
|
1917
1924
|
t.multiple || (f.post.clear(), f.role.clear(), f.user.clear(), f.group.clear(), f.single = "");
|
|
@@ -1942,7 +1949,7 @@ const Oa = {
|
|
|
1942
1949
|
ye.value = se.cloneDeep(S.value.role.list);
|
|
1943
1950
|
}
|
|
1944
1951
|
);
|
|
1945
|
-
const Ie = B([]),
|
|
1952
|
+
const Ie = B([]), yt = (n, p) => {
|
|
1946
1953
|
t.multiple || (f.single = "");
|
|
1947
1954
|
const L = t.multiple ? n : [n];
|
|
1948
1955
|
if (!L.length) {
|
|
@@ -1959,18 +1966,18 @@ const Oa = {
|
|
|
1959
1966
|
Ie.value = se.cloneDeep(S.value.post.list);
|
|
1960
1967
|
}
|
|
1961
1968
|
), re(
|
|
1962
|
-
() =>
|
|
1969
|
+
() => b.value,
|
|
1963
1970
|
(n) => {
|
|
1964
1971
|
V("");
|
|
1965
1972
|
}
|
|
1966
1973
|
), (n, p) => {
|
|
1967
1974
|
const L = te("el-tab-pane"), G = te("el-tabs"), he = te("el-scrollbar");
|
|
1968
|
-
return s(),
|
|
1975
|
+
return s(), y(
|
|
1969
1976
|
Z,
|
|
1970
1977
|
null,
|
|
1971
1978
|
[
|
|
1972
|
-
|
|
1973
|
-
|
|
1979
|
+
k(" 主弹窗容器 "),
|
|
1980
|
+
m(T(Ct), {
|
|
1974
1981
|
modelValue: J.value,
|
|
1975
1982
|
"onUpdate:modelValue": p[3] || (p[3] = (q) => J.value = q),
|
|
1976
1983
|
title: n.title,
|
|
@@ -1983,16 +1990,16 @@ const Oa = {
|
|
|
1983
1990
|
width: typeof n.width == "string" ? n.width : `${n.width}%`,
|
|
1984
1991
|
class: "p_p_picker-dialog",
|
|
1985
1992
|
"modal-class": "p_p_picker-dialog-modal-user",
|
|
1986
|
-
onClose:
|
|
1993
|
+
onClose: be
|
|
1987
1994
|
}, {
|
|
1988
1995
|
footer: P(() => [
|
|
1989
1996
|
u("span", _a, [
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
onClick: $e(
|
|
1997
|
+
k(" 取消按钮 "),
|
|
1998
|
+
m(T(Je), {
|
|
1999
|
+
onClick: $e(be, ["stop"])
|
|
1993
2000
|
}, {
|
|
1994
2001
|
default: P(() => [...p[7] || (p[7] = [
|
|
1995
|
-
|
|
2002
|
+
ae(
|
|
1996
2003
|
"取消",
|
|
1997
2004
|
-1
|
|
1998
2005
|
/* CACHED */
|
|
@@ -2001,13 +2008,13 @@ const Oa = {
|
|
|
2001
2008
|
_: 1
|
|
2002
2009
|
/* STABLE */
|
|
2003
2010
|
}),
|
|
2004
|
-
|
|
2005
|
-
|
|
2011
|
+
k(" 确定按钮 "),
|
|
2012
|
+
m(T(Je), {
|
|
2006
2013
|
type: "primary",
|
|
2007
2014
|
onClick: $e(Q, ["stop"])
|
|
2008
2015
|
}, {
|
|
2009
2016
|
default: P(() => [...p[8] || (p[8] = [
|
|
2010
|
-
|
|
2017
|
+
ae(
|
|
2011
2018
|
" 确定 ",
|
|
2012
2019
|
-1
|
|
2013
2020
|
/* CACHED */
|
|
@@ -2023,33 +2030,33 @@ const Oa = {
|
|
|
2023
2030
|
"div",
|
|
2024
2031
|
{
|
|
2025
2032
|
class: "dep-use-picker",
|
|
2026
|
-
style: ze({ height:
|
|
2033
|
+
style: ze({ height: Ve.value })
|
|
2027
2034
|
},
|
|
2028
2035
|
[
|
|
2029
|
-
|
|
2036
|
+
k(" 左侧选择区域 "),
|
|
2030
2037
|
u("div", Pa, [
|
|
2031
|
-
|
|
2038
|
+
k(" 搜索框和标签页 "),
|
|
2032
2039
|
u("div", null, [
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
modelValue:
|
|
2036
|
-
"onUpdate:modelValue": p[0] || (p[0] = (q) =>
|
|
2040
|
+
k(" 搜索输入框 "),
|
|
2041
|
+
m(T(je), {
|
|
2042
|
+
modelValue: b.value,
|
|
2043
|
+
"onUpdate:modelValue": p[0] || (p[0] = (q) => b.value = q),
|
|
2037
2044
|
clearable: "",
|
|
2038
2045
|
placeholder: n.placeholder,
|
|
2039
2046
|
"suffix-icon": Jt
|
|
2040
2047
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2041
|
-
|
|
2042
|
-
|
|
2048
|
+
k(" 标签页切换 "),
|
|
2049
|
+
Te.value ? (s(), D(G, {
|
|
2043
2050
|
key: 0,
|
|
2044
2051
|
modelValue: K.value,
|
|
2045
2052
|
"onUpdate:modelValue": p[1] || (p[1] = (q) => K.value = q),
|
|
2046
2053
|
class: "ik-picker-tab"
|
|
2047
2054
|
}, {
|
|
2048
2055
|
default: P(() => [
|
|
2049
|
-
(s(!0),
|
|
2056
|
+
(s(!0), y(
|
|
2050
2057
|
Z,
|
|
2051
2058
|
null,
|
|
2052
|
-
Ae(
|
|
2059
|
+
Ae(Ue.value, (q) => (s(), D(L, {
|
|
2053
2060
|
label: q.label,
|
|
2054
2061
|
name: q.name,
|
|
2055
2062
|
key: q.label
|
|
@@ -2060,29 +2067,29 @@ const Oa = {
|
|
|
2060
2067
|
]),
|
|
2061
2068
|
_: 1
|
|
2062
2069
|
/* STABLE */
|
|
2063
|
-
}, 8, ["modelValue"])) :
|
|
2070
|
+
}, 8, ["modelValue"])) : k("v-if", !0)
|
|
2064
2071
|
]),
|
|
2065
|
-
|
|
2066
|
-
Y.value === T(
|
|
2072
|
+
k(" 面包屑导航区域 "),
|
|
2073
|
+
Y.value === T(Me).group ? (s(), y(
|
|
2067
2074
|
Z,
|
|
2068
2075
|
{ key: 0 },
|
|
2069
2076
|
[
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2077
|
+
E.value ? (s(), y("div", La, [
|
|
2078
|
+
k(" 面包屑导航 "),
|
|
2079
|
+
m(T(Bt), {
|
|
2073
2080
|
separator: ">",
|
|
2074
2081
|
class: ce(["banner", { "top-unlink": !n.topLink }])
|
|
2075
2082
|
}, {
|
|
2076
2083
|
default: P(() => [
|
|
2077
|
-
(s(!0),
|
|
2084
|
+
(s(!0), y(
|
|
2078
2085
|
Z,
|
|
2079
2086
|
null,
|
|
2080
|
-
Ae(T(
|
|
2087
|
+
Ae(T(g), (q, _e) => (s(), D(T(Pt), {
|
|
2081
2088
|
key: q[o.value.id],
|
|
2082
2089
|
onClick: $e((Ke) => _(q, _e), ["stop"])
|
|
2083
2090
|
}, {
|
|
2084
2091
|
default: P(() => [
|
|
2085
|
-
|
|
2092
|
+
ae(
|
|
2086
2093
|
X(q[o.value.name]),
|
|
2087
2094
|
1
|
|
2088
2095
|
/* TEXT */
|
|
@@ -2098,14 +2105,14 @@ const Oa = {
|
|
|
2098
2105
|
_: 1
|
|
2099
2106
|
/* STABLE */
|
|
2100
2107
|
}, 8, ["class"])
|
|
2101
|
-
])) :
|
|
2108
|
+
])) : k("v-if", !0)
|
|
2102
2109
|
],
|
|
2103
2110
|
64
|
|
2104
2111
|
/* STABLE_FRAGMENT */
|
|
2105
|
-
)) :
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
Y.value === T(
|
|
2112
|
+
)) : k("v-if", !0),
|
|
2113
|
+
k(" 数据列表区域 "),
|
|
2114
|
+
k(" 组织架构列表 "),
|
|
2115
|
+
Y.value === T(Me).group ? Ce((s(), D(Gl, {
|
|
2109
2116
|
key: 1,
|
|
2110
2117
|
fixPropOpt: o.value,
|
|
2111
2118
|
fixTypeOpt: a.value,
|
|
@@ -2115,18 +2122,18 @@ const Oa = {
|
|
|
2115
2122
|
"hand-list": we.value,
|
|
2116
2123
|
imageBaseUrl: t.imageBaseUrl,
|
|
2117
2124
|
emptyText: t.emptyText,
|
|
2118
|
-
children: t.children && !
|
|
2125
|
+
children: t.children && !b.value,
|
|
2119
2126
|
"choose-type": j.value,
|
|
2120
2127
|
onHandChild: r,
|
|
2121
2128
|
onChange: ve
|
|
2122
2129
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2123
2130
|
[T(Ze), C.value]
|
|
2124
|
-
]) : Y.value === T(
|
|
2131
|
+
]) : Y.value === T(Me).role ? (s(), y(
|
|
2125
2132
|
Z,
|
|
2126
2133
|
{ key: 2 },
|
|
2127
2134
|
[
|
|
2128
|
-
|
|
2129
|
-
Ce(
|
|
2135
|
+
k(" 角色列表 "),
|
|
2136
|
+
Ce(m(xa, {
|
|
2130
2137
|
fixPropOpt: o.value,
|
|
2131
2138
|
fixTypeOpt: a.value,
|
|
2132
2139
|
list: F.value,
|
|
@@ -2143,12 +2150,12 @@ const Oa = {
|
|
|
2143
2150
|
],
|
|
2144
2151
|
64
|
|
2145
2152
|
/* STABLE_FRAGMENT */
|
|
2146
|
-
)) : Y.value === T(
|
|
2153
|
+
)) : Y.value === T(Me).post ? (s(), y(
|
|
2147
2154
|
Z,
|
|
2148
2155
|
{ key: 3 },
|
|
2149
2156
|
[
|
|
2150
|
-
|
|
2151
|
-
Ce(
|
|
2157
|
+
k(" 岗位列表 "),
|
|
2158
|
+
Ce(m(oa, {
|
|
2152
2159
|
fixPropOpt: o.value,
|
|
2153
2160
|
fixTypeOpt: a.value,
|
|
2154
2161
|
list: x.value,
|
|
@@ -2158,16 +2165,16 @@ const Oa = {
|
|
|
2158
2165
|
imageBaseUrl: t.imageBaseUrl,
|
|
2159
2166
|
emptyText: t.emptyText,
|
|
2160
2167
|
"choose-type": j.value,
|
|
2161
|
-
onChange:
|
|
2168
|
+
onChange: yt
|
|
2162
2169
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2163
2170
|
[T(Ze), C.value]
|
|
2164
2171
|
])
|
|
2165
2172
|
],
|
|
2166
2173
|
64
|
|
2167
2174
|
/* STABLE_FRAGMENT */
|
|
2168
|
-
)) :
|
|
2175
|
+
)) : k("v-if", !0)
|
|
2169
2176
|
]),
|
|
2170
|
-
|
|
2177
|
+
k(" 分割线 "),
|
|
2171
2178
|
p[6] || (p[6] = u(
|
|
2172
2179
|
"div",
|
|
2173
2180
|
{ class: "split-div" },
|
|
@@ -2175,24 +2182,27 @@ const Oa = {
|
|
|
2175
2182
|
-1
|
|
2176
2183
|
/* CACHED */
|
|
2177
2184
|
)),
|
|
2178
|
-
|
|
2185
|
+
k(" 右侧已选区域 "),
|
|
2179
2186
|
u("div", Sa, [
|
|
2180
|
-
|
|
2187
|
+
k(" 已选标题和清空按钮 "),
|
|
2181
2188
|
u("div", Ta, [
|
|
2182
2189
|
p[5] || (p[5] = u(
|
|
2183
2190
|
"div",
|
|
2184
2191
|
null,
|
|
2185
|
-
|
|
2192
|
+
[
|
|
2193
|
+
ae("已选列表"),
|
|
2194
|
+
u("span", { class: "ik-info-text" }, "(支持拖拽排序)")
|
|
2195
|
+
],
|
|
2186
2196
|
-1
|
|
2187
2197
|
/* CACHED */
|
|
2188
2198
|
)),
|
|
2189
|
-
|
|
2199
|
+
m(T(Je), {
|
|
2190
2200
|
type: "primary",
|
|
2191
2201
|
link: "",
|
|
2192
2202
|
onClick: $e(N, ["stop"])
|
|
2193
2203
|
}, {
|
|
2194
2204
|
default: P(() => [...p[4] || (p[4] = [
|
|
2195
|
-
|
|
2205
|
+
ae(
|
|
2196
2206
|
"清空",
|
|
2197
2207
|
-1
|
|
2198
2208
|
/* CACHED */
|
|
@@ -2202,10 +2212,10 @@ const Oa = {
|
|
|
2202
2212
|
/* STABLE */
|
|
2203
2213
|
})
|
|
2204
2214
|
]),
|
|
2205
|
-
|
|
2215
|
+
m(he, null, {
|
|
2206
2216
|
default: P(() => [
|
|
2207
|
-
|
|
2208
|
-
|
|
2217
|
+
k(" 已选项目列表 "),
|
|
2218
|
+
m(T(gt), {
|
|
2209
2219
|
modelValue: i.value,
|
|
2210
2220
|
"onUpdate:modelValue": p[2] || (p[2] = (q) => i.value = q),
|
|
2211
2221
|
class: "choose-box",
|
|
@@ -2221,16 +2231,16 @@ const Oa = {
|
|
|
2221
2231
|
item: P(({ element: q }) => [
|
|
2222
2232
|
u("li", Ua, [
|
|
2223
2233
|
u("div", Va, [
|
|
2224
|
-
|
|
2234
|
+
k(" 头像图标 "),
|
|
2225
2235
|
u("div", Ia, [
|
|
2226
|
-
|
|
2236
|
+
m(pe, {
|
|
2227
2237
|
fixTypeOpt: a.value,
|
|
2228
2238
|
fixPropOpt: o.value,
|
|
2229
2239
|
element: q,
|
|
2230
2240
|
imageBaseUrl: t.imageBaseUrl
|
|
2231
2241
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
2232
2242
|
]),
|
|
2233
|
-
|
|
2243
|
+
k(" 项目名称 "),
|
|
2234
2244
|
u(
|
|
2235
2245
|
"span",
|
|
2236
2246
|
null,
|
|
@@ -2239,8 +2249,8 @@ const Oa = {
|
|
|
2239
2249
|
/* TEXT */
|
|
2240
2250
|
)
|
|
2241
2251
|
]),
|
|
2242
|
-
|
|
2243
|
-
Ce(
|
|
2252
|
+
k(" 删除按钮 "),
|
|
2253
|
+
Ce(m(al, {
|
|
2244
2254
|
class: "close",
|
|
2245
2255
|
onClick: $e((_e) => Ne(q), ["stop"])
|
|
2246
2256
|
}, null, 8, ["onClick"]), [
|
|
@@ -2270,9 +2280,9 @@ const Oa = {
|
|
|
2270
2280
|
);
|
|
2271
2281
|
};
|
|
2272
2282
|
}
|
|
2273
|
-
}), $a = Re(Da),
|
|
2283
|
+
}), $a = Re(Da), Ma = { class: "check-right" }, Ea = { class: "dialog-footer" }, za = /* @__PURE__ */ ue({
|
|
2274
2284
|
__name: "IkBtnSetting",
|
|
2275
|
-
props: /* @__PURE__ */
|
|
2285
|
+
props: /* @__PURE__ */ Ee({
|
|
2276
2286
|
list: {
|
|
2277
2287
|
type: Array,
|
|
2278
2288
|
default: () => []
|
|
@@ -2328,12 +2338,12 @@ const Oa = {
|
|
|
2328
2338
|
},
|
|
2329
2339
|
modelModifiers: {}
|
|
2330
2340
|
}),
|
|
2331
|
-
emits: /* @__PURE__ */
|
|
2332
|
-
setup(l, { emit:
|
|
2333
|
-
const e = l, t =
|
|
2341
|
+
emits: /* @__PURE__ */ Ee(["sort"], ["update:modelValue"]),
|
|
2342
|
+
setup(l, { emit: c }) {
|
|
2343
|
+
const e = l, t = c, b = 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
2344
|
const V = A.value.length && A.value.length !== e.list.length;
|
|
2335
2345
|
return !V && A.value.length && (i.value = !0), !!V;
|
|
2336
|
-
}),
|
|
2346
|
+
}), d = (V) => {
|
|
2337
2347
|
var j;
|
|
2338
2348
|
const S = se.cloneDeep(o.value);
|
|
2339
2349
|
S == null || S.forEach((z) => {
|
|
@@ -2341,35 +2351,35 @@ const Oa = {
|
|
|
2341
2351
|
if (!A.value.length)
|
|
2342
2352
|
o.value = [];
|
|
2343
2353
|
else if (!A.value.includes(z == null ? void 0 : z.key)) {
|
|
2344
|
-
const
|
|
2345
|
-
|
|
2354
|
+
const M = (ie = o.value) == null ? void 0 : ie.findIndex((J) => J.key === z.key);
|
|
2355
|
+
M !== -1 && o.value.splice(M, 1), z.show = !1, a.set(z.key, z);
|
|
2346
2356
|
}
|
|
2347
2357
|
}), A.value.forEach((z) => {
|
|
2348
|
-
var
|
|
2349
|
-
if (((
|
|
2358
|
+
var M;
|
|
2359
|
+
if (((M = o.value) == null ? void 0 : M.findIndex((J) => (J == null ? void 0 : J.key) === z)) === -1) {
|
|
2350
2360
|
const J = a.get(z);
|
|
2351
2361
|
J && (J.show = !0, o.value.push(J));
|
|
2352
2362
|
}
|
|
2353
|
-
}), (j = o.value) != null && j.length || (o.value = se.cloneDeep(e.list)), V === !0 && (t("sort", se.cloneDeep(o.value)),
|
|
2354
|
-
},
|
|
2363
|
+
}), (j = o.value) != null && j.length || (o.value = se.cloneDeep(e.list)), V === !0 && (t("sort", se.cloneDeep(o.value)), b.value = se.cloneDeep(o.value));
|
|
2364
|
+
}, g = (V) => {
|
|
2355
2365
|
if (V)
|
|
2356
2366
|
A.value = e.list.map((S) => S.key);
|
|
2357
2367
|
else {
|
|
2358
2368
|
const S = e.list.find((j) => !j.key || j.label === "操作");
|
|
2359
2369
|
A.value = S ? [S.key] : [];
|
|
2360
2370
|
}
|
|
2361
|
-
|
|
2371
|
+
d();
|
|
2362
2372
|
}, W = () => {
|
|
2363
|
-
const V =
|
|
2373
|
+
const V = Se.local.getItem(x.value);
|
|
2364
2374
|
try {
|
|
2365
2375
|
const S = se.cloneDeep(e == null ? void 0 : e.list);
|
|
2366
|
-
if ((!V || !(V != null && V.length)) &&
|
|
2376
|
+
if ((!V || !(V != null && V.length)) && Se.local.setItem(
|
|
2367
2377
|
x.value,
|
|
2368
|
-
S.map(({ show: j, type: z, key: ie, label:
|
|
2378
|
+
S.map(({ show: j, type: z, key: ie, label: M, width: J, minWidth: ee, align: fe }) => ({
|
|
2369
2379
|
show: j,
|
|
2370
2380
|
key: ie,
|
|
2371
2381
|
type: z,
|
|
2372
|
-
label:
|
|
2382
|
+
label: M,
|
|
2373
2383
|
width: J,
|
|
2374
2384
|
minWidth: ee,
|
|
2375
2385
|
align: fe
|
|
@@ -2386,7 +2396,7 @@ const Oa = {
|
|
|
2386
2396
|
const j = C.value.filter((z) => z.show);
|
|
2387
2397
|
A.value = j.map((z) => z.key);
|
|
2388
2398
|
}
|
|
2389
|
-
|
|
2399
|
+
d(!0);
|
|
2390
2400
|
} catch (S) {
|
|
2391
2401
|
console.info("error: ", S);
|
|
2392
2402
|
}
|
|
@@ -2396,25 +2406,25 @@ const Oa = {
|
|
|
2396
2406
|
}, { deep: !0 });
|
|
2397
2407
|
const $ = B(!1), f = () => {
|
|
2398
2408
|
$.value = !0;
|
|
2399
|
-
},
|
|
2409
|
+
}, ne = (V) => {
|
|
2400
2410
|
o.value = V;
|
|
2401
2411
|
}, U = () => {
|
|
2402
|
-
$.value = !1,
|
|
2412
|
+
$.value = !1, Se.local.setItem(
|
|
2403
2413
|
x.value,
|
|
2404
|
-
o.value.map(({ show: V, key: S, label: j, value: z, width: ie, minWidth:
|
|
2414
|
+
o.value.map(({ show: V, key: S, label: j, value: z, width: ie, minWidth: M, align: J }) => ({
|
|
2405
2415
|
show: V,
|
|
2406
2416
|
key: S,
|
|
2407
2417
|
label: j,
|
|
2408
2418
|
value: z,
|
|
2409
2419
|
width: ie,
|
|
2410
|
-
minWidth:
|
|
2420
|
+
minWidth: M,
|
|
2411
2421
|
align: J
|
|
2412
2422
|
}))
|
|
2413
|
-
), t("sort", se.cloneDeep(o.value)),
|
|
2423
|
+
), t("sort", se.cloneDeep(o.value)), b.value = se.cloneDeep(o.value);
|
|
2414
2424
|
};
|
|
2415
2425
|
return (V, S) => {
|
|
2416
|
-
const j = te("el-button"), z = te("el-checkbox"), ie = te("el-checkbox-group"),
|
|
2417
|
-
return s(),
|
|
2426
|
+
const j = te("el-button"), z = te("el-checkbox"), ie = te("el-checkbox-group"), M = te("el-dialog"), J = tt("role");
|
|
2427
|
+
return s(), y(
|
|
2418
2428
|
Z,
|
|
2419
2429
|
null,
|
|
2420
2430
|
[
|
|
@@ -2423,7 +2433,7 @@ const Oa = {
|
|
|
2423
2433
|
type: l.type,
|
|
2424
2434
|
style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
|
|
2425
2435
|
onClick: f
|
|
2426
|
-
}),
|
|
2436
|
+
}), kt({
|
|
2427
2437
|
icon: P(() => [
|
|
2428
2438
|
S[4] || (S[4] = u(
|
|
2429
2439
|
"i",
|
|
@@ -2439,8 +2449,8 @@ const Oa = {
|
|
|
2439
2449
|
l.circle ? void 0 : {
|
|
2440
2450
|
name: "default",
|
|
2441
2451
|
fn: P(() => [
|
|
2442
|
-
|
|
2443
|
-
|
|
2452
|
+
k(' {{ t("action.setting") }} '),
|
|
2453
|
+
ae(
|
|
2444
2454
|
" " + X(T(h)("设置")),
|
|
2445
2455
|
1
|
|
2446
2456
|
/* TEXT */
|
|
@@ -2450,7 +2460,7 @@ const Oa = {
|
|
|
2450
2460
|
}
|
|
2451
2461
|
]), 1040, ["circle", "type", "style"])), [
|
|
2452
2462
|
[J, V.$props.role]
|
|
2453
|
-
]) :
|
|
2463
|
+
]) : k("v-if", !0),
|
|
2454
2464
|
l.btnType === "icon" ? Ce((s(), D(
|
|
2455
2465
|
T(Oe),
|
|
2456
2466
|
le({
|
|
@@ -2464,12 +2474,12 @@ const Oa = {
|
|
|
2464
2474
|
/* FULL_PROPS */
|
|
2465
2475
|
)), [
|
|
2466
2476
|
[J, V.$props.role]
|
|
2467
|
-
]) :
|
|
2468
|
-
|
|
2477
|
+
]) : k("v-if", !0),
|
|
2478
|
+
m(M, {
|
|
2469
2479
|
modelValue: $.value,
|
|
2470
2480
|
"onUpdate:modelValue": S[3] || (S[3] = (ee) => $.value = ee),
|
|
2471
2481
|
draggable: "",
|
|
2472
|
-
width: l.inline ? T(
|
|
2482
|
+
width: l.inline ? T(O).l : T(O).sl,
|
|
2473
2483
|
"close-on-click-modal": !1,
|
|
2474
2484
|
"close-on-press-escape": !1,
|
|
2475
2485
|
title: "显示字段",
|
|
@@ -2477,28 +2487,28 @@ const Oa = {
|
|
|
2477
2487
|
onOpen: W
|
|
2478
2488
|
}, {
|
|
2479
2489
|
footer: P(() => [
|
|
2480
|
-
u("div",
|
|
2481
|
-
|
|
2490
|
+
u("div", Ea, [
|
|
2491
|
+
m(j, {
|
|
2482
2492
|
onClick: S[2] || (S[2] = (ee) => $.value = !1)
|
|
2483
2493
|
}, {
|
|
2484
2494
|
default: P(() => [
|
|
2485
|
-
|
|
2495
|
+
ae(
|
|
2486
2496
|
X(T(h)("关闭")) + " ",
|
|
2487
2497
|
1
|
|
2488
2498
|
/* TEXT */
|
|
2489
2499
|
),
|
|
2490
|
-
|
|
2500
|
+
k(' {{ t("action.close") }} ')
|
|
2491
2501
|
]),
|
|
2492
2502
|
_: 1
|
|
2493
2503
|
/* STABLE */
|
|
2494
2504
|
}),
|
|
2495
|
-
|
|
2505
|
+
m(j, {
|
|
2496
2506
|
type: "primary",
|
|
2497
2507
|
disabled: o.value.length < 2,
|
|
2498
2508
|
onClick: U
|
|
2499
2509
|
}, {
|
|
2500
2510
|
default: P(() => [
|
|
2501
|
-
|
|
2511
|
+
ae(
|
|
2502
2512
|
X(o.value.length < 2 ? "至少选择一个字段" : T(h)("确定")),
|
|
2503
2513
|
1
|
|
2504
2514
|
/* TEXT */
|
|
@@ -2522,15 +2532,15 @@ const Oa = {
|
|
|
2522
2532
|
style: ze({ flex: l.inline ? 2 : 1 })
|
|
2523
2533
|
},
|
|
2524
2534
|
[
|
|
2525
|
-
|
|
2535
|
+
m(z, {
|
|
2526
2536
|
modelValue: i.value,
|
|
2527
2537
|
"onUpdate:modelValue": S[0] || (S[0] = (ee) => i.value = ee),
|
|
2528
2538
|
class: "single-line",
|
|
2529
|
-
indeterminate:
|
|
2530
|
-
onChange:
|
|
2539
|
+
indeterminate: w.value,
|
|
2540
|
+
onChange: g
|
|
2531
2541
|
}, {
|
|
2532
2542
|
default: P(() => [...S[5] || (S[5] = [
|
|
2533
|
-
|
|
2543
|
+
ae(
|
|
2534
2544
|
" 全选 ",
|
|
2535
2545
|
-1
|
|
2536
2546
|
/* CACHED */
|
|
@@ -2539,13 +2549,13 @@ const Oa = {
|
|
|
2539
2549
|
_: 1
|
|
2540
2550
|
/* STABLE */
|
|
2541
2551
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2542
|
-
|
|
2552
|
+
m(ie, {
|
|
2543
2553
|
modelValue: A.value,
|
|
2544
2554
|
"onUpdate:modelValue": S[1] || (S[1] = (ee) => A.value = ee),
|
|
2545
|
-
onChange:
|
|
2555
|
+
onChange: d
|
|
2546
2556
|
}, {
|
|
2547
2557
|
default: P(() => [
|
|
2548
|
-
(s(!0),
|
|
2558
|
+
(s(!0), y(
|
|
2549
2559
|
Z,
|
|
2550
2560
|
null,
|
|
2551
2561
|
Ae(C.value, (ee) => (s(), D(z, {
|
|
@@ -2554,7 +2564,7 @@ const Oa = {
|
|
|
2554
2564
|
label: ee.key
|
|
2555
2565
|
}, {
|
|
2556
2566
|
default: P(() => [
|
|
2557
|
-
|
|
2567
|
+
ae(
|
|
2558
2568
|
X(ee.label),
|
|
2559
2569
|
1
|
|
2560
2570
|
/* TEXT */
|
|
@@ -2574,11 +2584,11 @@ const Oa = {
|
|
|
2574
2584
|
4
|
|
2575
2585
|
/* STYLE */
|
|
2576
2586
|
),
|
|
2577
|
-
u("div",
|
|
2578
|
-
|
|
2587
|
+
u("div", Ma, [
|
|
2588
|
+
m(T(Wa), {
|
|
2579
2589
|
list: o.value,
|
|
2580
2590
|
"item-style": { bottom: 4 },
|
|
2581
|
-
onChange:
|
|
2591
|
+
onChange: ne
|
|
2582
2592
|
}, null, 8, ["list"])
|
|
2583
2593
|
])
|
|
2584
2594
|
],
|
|
@@ -2750,12 +2760,12 @@ const Oa = {
|
|
|
2750
2760
|
__name: "IkDragList",
|
|
2751
2761
|
props: ja,
|
|
2752
2762
|
emits: ["change"],
|
|
2753
|
-
setup(l, { emit:
|
|
2754
|
-
const e = l, t =
|
|
2763
|
+
setup(l, { emit: c }) {
|
|
2764
|
+
const e = l, t = c, b = B([]);
|
|
2755
2765
|
re(
|
|
2756
2766
|
() => e.list,
|
|
2757
2767
|
(x) => {
|
|
2758
|
-
|
|
2768
|
+
b.value = se.cloneDeep(x);
|
|
2759
2769
|
},
|
|
2760
2770
|
{
|
|
2761
2771
|
immediate: !0,
|
|
@@ -2769,12 +2779,12 @@ const Oa = {
|
|
|
2769
2779
|
...ft.itemStyle,
|
|
2770
2780
|
...e.itemStyle
|
|
2771
2781
|
}
|
|
2772
|
-
})),
|
|
2773
|
-
|
|
2782
|
+
})), O = B(!1), v = () => {
|
|
2783
|
+
O.value = !0;
|
|
2774
2784
|
}, F = (x) => {
|
|
2775
|
-
|
|
2785
|
+
O.value = !1;
|
|
2776
2786
|
const C = e.list[x.oldIndex];
|
|
2777
|
-
t("change",
|
|
2787
|
+
t("change", b.value, {
|
|
2778
2788
|
...C,
|
|
2779
2789
|
oldIndex: x.oldIndex,
|
|
2780
2790
|
newIndex: x.newIndex
|
|
@@ -2782,9 +2792,9 @@ const Oa = {
|
|
|
2782
2792
|
};
|
|
2783
2793
|
return (x, C) => {
|
|
2784
2794
|
const A = te("el-icon");
|
|
2785
|
-
return s(), D(T(
|
|
2786
|
-
modelValue:
|
|
2787
|
-
"onUpdate:modelValue": C[0] || (C[0] = (o) =>
|
|
2795
|
+
return s(), D(T(gt), {
|
|
2796
|
+
modelValue: b.value,
|
|
2797
|
+
"onUpdate:modelValue": C[0] || (C[0] = (o) => b.value = o),
|
|
2788
2798
|
class: ce(["list-group", [h.value.groupClass]]),
|
|
2789
2799
|
tag: "ul",
|
|
2790
2800
|
attrs: h.value,
|
|
@@ -2798,8 +2808,8 @@ const Oa = {
|
|
|
2798
2808
|
onEnd: F
|
|
2799
2809
|
}, {
|
|
2800
2810
|
item: P(({ element: o }) => [
|
|
2801
|
-
|
|
2802
|
-
|
|
2811
|
+
m(
|
|
2812
|
+
vt,
|
|
2803
2813
|
{
|
|
2804
2814
|
type: "transition",
|
|
2805
2815
|
name: "flip-list"
|
|
@@ -2809,7 +2819,7 @@ const Oa = {
|
|
|
2809
2819
|
x.$slots.item ? ge(x.$slots, "item", {
|
|
2810
2820
|
key: 0,
|
|
2811
2821
|
item: o
|
|
2812
|
-
}, void 0, !0) : (s(),
|
|
2822
|
+
}, void 0, !0) : (s(), y(
|
|
2813
2823
|
"li",
|
|
2814
2824
|
{
|
|
2815
2825
|
key: 1,
|
|
@@ -2823,12 +2833,12 @@ const Oa = {
|
|
|
2823
2833
|
[
|
|
2824
2834
|
h.value.showIcon && !x.$slots.icon ? (s(), D(A, { key: 0 }, {
|
|
2825
2835
|
default: P(() => [
|
|
2826
|
-
|
|
2836
|
+
m(T(zt))
|
|
2827
2837
|
]),
|
|
2828
2838
|
_: 1
|
|
2829
2839
|
/* STABLE */
|
|
2830
2840
|
})) : ge(x.$slots, "icon", { key: 1 }, void 0, !0),
|
|
2831
|
-
|
|
2841
|
+
ae(
|
|
2832
2842
|
" " + X(o.label),
|
|
2833
2843
|
1
|
|
2834
2844
|
/* TEXT */
|
|
@@ -2853,7 +2863,7 @@ const Oa = {
|
|
|
2853
2863
|
}), Fa = /* @__PURE__ */ oe(Ha, [["__scopeId", "data-v-3716c05e"]]), Wa = Re(Fa);
|
|
2854
2864
|
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
2865
|
function ht(l) {
|
|
2856
|
-
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !
|
|
2866
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !xt(l);
|
|
2857
2867
|
}
|
|
2858
2868
|
const Ga = /* @__PURE__ */ ue({
|
|
2859
2869
|
name: "IkSearchAuto",
|
|
@@ -2891,38 +2901,38 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2891
2901
|
},
|
|
2892
2902
|
emits: ["search", "pickerChange"],
|
|
2893
2903
|
setup(l, {
|
|
2894
|
-
emit:
|
|
2904
|
+
emit: c,
|
|
2895
2905
|
expose: e
|
|
2896
2906
|
}) {
|
|
2897
|
-
const t = B(),
|
|
2907
|
+
const t = B(), b = {}, h = B({}), O = B([]), v = B({
|
|
2898
2908
|
...h.value
|
|
2899
2909
|
});
|
|
2900
|
-
re(
|
|
2901
|
-
const _ =
|
|
2910
|
+
re(O, (r, E) => {
|
|
2911
|
+
const _ = E.filter((I) => !r.includes(I));
|
|
2902
2912
|
if (_.length) {
|
|
2903
2913
|
let I = !1;
|
|
2904
2914
|
_.forEach((H) => {
|
|
2905
2915
|
v.value[H] !== void 0 && (I = !0), v.value[H] = void 0;
|
|
2906
|
-
}), I &&
|
|
2916
|
+
}), I && c("search", v.value);
|
|
2907
2917
|
}
|
|
2908
2918
|
});
|
|
2909
2919
|
const F = () => {
|
|
2910
|
-
|
|
2911
|
-
var
|
|
2912
|
-
h.value[r.key] = h.value[r.value],
|
|
2920
|
+
O.value = [], l.list.forEach((r) => {
|
|
2921
|
+
var E, _;
|
|
2922
|
+
h.value[r.key] = h.value[r.value], b[r.key] = b[r.value], O.value.push(r.key), (E = v.value)[_ = r.key] ?? (E[_] = r.value || null);
|
|
2913
2923
|
});
|
|
2914
2924
|
};
|
|
2915
2925
|
F(), re(() => l.list, () => {
|
|
2916
2926
|
F();
|
|
2917
2927
|
});
|
|
2918
|
-
const x = R(() =>
|
|
2928
|
+
const x = R(() => O.value.map((r) => l.list.find((E) => E.key === r))), C = () => {
|
|
2919
2929
|
var r;
|
|
2920
|
-
v.value.page = 1, (r = l.search) == null || r.call(l, v.value),
|
|
2930
|
+
v.value.page = 1, (r = l.search) == null || r.call(l, v.value), c("search", v.value);
|
|
2921
2931
|
};
|
|
2922
2932
|
e({
|
|
2923
2933
|
resetForm: () => {
|
|
2924
|
-
var r,
|
|
2925
|
-
(
|
|
2934
|
+
var r, E;
|
|
2935
|
+
(E = (r = t.value) == null ? void 0 : r.resetFields) == null || E.call(r), C();
|
|
2926
2936
|
},
|
|
2927
2937
|
reRequest: () => {
|
|
2928
2938
|
C();
|
|
@@ -2930,36 +2940,36 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2930
2940
|
});
|
|
2931
2941
|
const a = () => {
|
|
2932
2942
|
var r;
|
|
2933
|
-
|
|
2943
|
+
c("search", v.value), (r = l.search) == null || r.call(l, v.value);
|
|
2934
2944
|
}, i = (r) => {
|
|
2935
2945
|
r.key === "Enter" && C();
|
|
2936
|
-
},
|
|
2946
|
+
}, w = () => {
|
|
2937
2947
|
var r;
|
|
2938
2948
|
(r = t.value) == null || r.resetFields(), C();
|
|
2939
2949
|
};
|
|
2940
2950
|
l.immediate && C();
|
|
2941
|
-
const
|
|
2951
|
+
const d = ({
|
|
2942
2952
|
maxlength: r,
|
|
2943
|
-
minlength:
|
|
2953
|
+
minlength: E,
|
|
2944
2954
|
key: _,
|
|
2945
2955
|
disabled: I,
|
|
2946
2956
|
placeholder: H,
|
|
2947
2957
|
formProp: K = {},
|
|
2948
2958
|
value: Y,
|
|
2949
2959
|
label: N
|
|
2950
|
-
}) =>
|
|
2960
|
+
}) => m(je, le({
|
|
2951
2961
|
modelValue: v.value[_],
|
|
2952
2962
|
"onUpdate:modelValue": [(Q) => v.value[_] = Q, (Q) => v.value[_] = Q],
|
|
2953
2963
|
clearable: !0,
|
|
2954
2964
|
maxlength: r,
|
|
2955
|
-
minlength:
|
|
2965
|
+
minlength: E,
|
|
2956
2966
|
disabled: I,
|
|
2957
2967
|
onBlur: () => a()
|
|
2958
2968
|
}, K, {
|
|
2959
2969
|
placeholder: (K == null ? void 0 : K.placeholder) || H || `请输入${N || ""}`
|
|
2960
|
-
}), null),
|
|
2970
|
+
}), null), g = ({
|
|
2961
2971
|
key: r,
|
|
2962
|
-
placeholder:
|
|
2972
|
+
placeholder: E,
|
|
2963
2973
|
max: _,
|
|
2964
2974
|
min: I,
|
|
2965
2975
|
disabled: H,
|
|
@@ -2967,9 +2977,9 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2967
2977
|
step: Y = 1,
|
|
2968
2978
|
label: N,
|
|
2969
2979
|
formProp: Q = {}
|
|
2970
|
-
}) =>
|
|
2980
|
+
}) => m(_t, le({
|
|
2971
2981
|
modelValue: v.value[r],
|
|
2972
|
-
"onUpdate:modelValue": (
|
|
2982
|
+
"onUpdate:modelValue": (be) => v.value[r] = be,
|
|
2973
2983
|
clearable: !0,
|
|
2974
2984
|
max: _,
|
|
2975
2985
|
min: I,
|
|
@@ -2978,17 +2988,17 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2978
2988
|
step: Y,
|
|
2979
2989
|
onChange: () => a()
|
|
2980
2990
|
}, Q, {
|
|
2981
|
-
placeholder: (Q == null ? void 0 : Q.placeholder) ||
|
|
2991
|
+
placeholder: (Q == null ? void 0 : Q.placeholder) || E || `请输入${N || ""}`
|
|
2982
2992
|
}), null), W = ({
|
|
2983
2993
|
key: r,
|
|
2984
|
-
placeholder:
|
|
2994
|
+
placeholder: E,
|
|
2985
2995
|
disabled: _,
|
|
2986
2996
|
options: I,
|
|
2987
2997
|
label: H,
|
|
2988
2998
|
multiple: K = !1,
|
|
2989
2999
|
filterable: Y = !0,
|
|
2990
3000
|
formProp: N = {}
|
|
2991
|
-
}) =>
|
|
3001
|
+
}) => m(rt, le({
|
|
2992
3002
|
modelValue: v.value[r],
|
|
2993
3003
|
"onUpdate:modelValue": (Q) => v.value[r] = Q,
|
|
2994
3004
|
clearable: !0,
|
|
@@ -2997,67 +3007,67 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
2997
3007
|
filterable: Y,
|
|
2998
3008
|
onChange: () => a()
|
|
2999
3009
|
}, N, {
|
|
3000
|
-
placeholder: (N == null ? void 0 : N.placeholder) ||
|
|
3010
|
+
placeholder: (N == null ? void 0 : N.placeholder) || E || `请选择${H || ""}`
|
|
3001
3011
|
}), {
|
|
3002
|
-
default: () => [I == null ? void 0 : I.map((Q) =>
|
|
3012
|
+
default: () => [I == null ? void 0 : I.map((Q) => m(ut, {
|
|
3003
3013
|
key: Q.value,
|
|
3004
3014
|
label: Q.label,
|
|
3005
3015
|
value: Q.value
|
|
3006
3016
|
}, null))]
|
|
3007
3017
|
}), $ = ({
|
|
3008
3018
|
key: r,
|
|
3009
|
-
disabled:
|
|
3019
|
+
disabled: E,
|
|
3010
3020
|
options: _,
|
|
3011
3021
|
formProp: I = {}
|
|
3012
|
-
}) =>
|
|
3022
|
+
}) => m(Fe, le({
|
|
3013
3023
|
modelValue: v.value[r],
|
|
3014
3024
|
"onUpdate:modelValue": (H) => v.value[r] = H,
|
|
3015
|
-
disabled:
|
|
3025
|
+
disabled: E,
|
|
3016
3026
|
onChange: () => a()
|
|
3017
3027
|
}, I), {
|
|
3018
|
-
default: () => [_ == null ? void 0 : _.map((H) => (I == null ? void 0 : I.radioType) === "button" ?
|
|
3028
|
+
default: () => [_ == null ? void 0 : _.map((H) => (I == null ? void 0 : I.radioType) === "button" ? m(It, {
|
|
3019
3029
|
key: H.value,
|
|
3020
3030
|
label: H.value,
|
|
3021
3031
|
name: H.label
|
|
3022
|
-
}, null) :
|
|
3032
|
+
}, null) : m(We, {
|
|
3023
3033
|
key: H.value,
|
|
3024
3034
|
label: H.value,
|
|
3025
3035
|
name: H.label
|
|
3026
3036
|
}, null))]
|
|
3027
3037
|
}), f = ({
|
|
3028
3038
|
key: r,
|
|
3029
|
-
disabled:
|
|
3039
|
+
disabled: E,
|
|
3030
3040
|
options: _,
|
|
3031
3041
|
min: I,
|
|
3032
3042
|
max: H,
|
|
3033
3043
|
formProp: K = {}
|
|
3034
|
-
}) =>
|
|
3044
|
+
}) => m(He, le({
|
|
3035
3045
|
modelValue: v.value[r],
|
|
3036
3046
|
"onUpdate:modelValue": (Y) => v.value[r] = Y,
|
|
3037
|
-
disabled:
|
|
3047
|
+
disabled: E,
|
|
3038
3048
|
max: H,
|
|
3039
3049
|
min: I,
|
|
3040
3050
|
onChange: () => a()
|
|
3041
3051
|
}, K), {
|
|
3042
|
-
default: () => [_ == null ? void 0 : _.map((Y) =>
|
|
3052
|
+
default: () => [_ == null ? void 0 : _.map((Y) => m(Le, {
|
|
3043
3053
|
key: Y.value,
|
|
3044
3054
|
label: Y.label,
|
|
3045
3055
|
value: Y.value
|
|
3046
3056
|
}, null))]
|
|
3047
|
-
}),
|
|
3057
|
+
}), ne = ({
|
|
3048
3058
|
key: r,
|
|
3049
|
-
label:
|
|
3059
|
+
label: E,
|
|
3050
3060
|
formProp: _ = {},
|
|
3051
3061
|
placeholder: I
|
|
3052
|
-
}) =>
|
|
3062
|
+
}) => m(dt, le({
|
|
3053
3063
|
modelValue: v.value[r],
|
|
3054
3064
|
"onUpdate:modelValue": (H) => v.value[r] = H,
|
|
3055
3065
|
onChange: () => a()
|
|
3056
3066
|
}, _, {
|
|
3057
|
-
placeholder: (_ == null ? void 0 : _.placeholder) || I || `请选择${
|
|
3067
|
+
placeholder: (_ == null ? void 0 : _.placeholder) || I || `请选择${E}时间`
|
|
3058
3068
|
}), null), U = ({
|
|
3059
3069
|
key: r,
|
|
3060
|
-
disabled:
|
|
3070
|
+
disabled: E,
|
|
3061
3071
|
editable: _ = !0,
|
|
3062
3072
|
startPlaceholder: I = "开始日期",
|
|
3063
3073
|
endplaceholder: H = "结束日期",
|
|
@@ -3065,10 +3075,10 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3065
3075
|
format: Y,
|
|
3066
3076
|
placeholder: N = "请选择日期",
|
|
3067
3077
|
popperclass: Q,
|
|
3068
|
-
rangeSeparator:
|
|
3069
|
-
defaultValue:
|
|
3070
|
-
defaultTime:
|
|
3071
|
-
valueFormat:
|
|
3078
|
+
rangeSeparator: be = "-",
|
|
3079
|
+
defaultValue: Te,
|
|
3080
|
+
defaultTime: Ue,
|
|
3081
|
+
valueFormat: Ve,
|
|
3072
3082
|
disabledDate: Be = () => !1,
|
|
3073
3083
|
formProp: we = {}
|
|
3074
3084
|
}) => {
|
|
@@ -3094,28 +3104,28 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3094
3104
|
default:
|
|
3095
3105
|
ve = "";
|
|
3096
3106
|
}
|
|
3097
|
-
return
|
|
3107
|
+
return m(dt, le({
|
|
3098
3108
|
modelValue: v.value[r],
|
|
3099
3109
|
"onUpdate:modelValue": (ye) => v.value[r] = ye,
|
|
3100
3110
|
onChange: () => a(),
|
|
3101
|
-
disabled:
|
|
3111
|
+
disabled: E,
|
|
3102
3112
|
type: K,
|
|
3103
3113
|
editable: _,
|
|
3104
3114
|
startPlaceholder: I,
|
|
3105
3115
|
endPlaceholder: H,
|
|
3106
|
-
rangeSeparator:
|
|
3116
|
+
rangeSeparator: be,
|
|
3107
3117
|
format: ve,
|
|
3108
3118
|
popperClass: Q,
|
|
3109
|
-
defaultValue:
|
|
3110
|
-
defaultTime:
|
|
3111
|
-
valueFormat:
|
|
3119
|
+
defaultValue: Te,
|
|
3120
|
+
defaultTime: Ue,
|
|
3121
|
+
valueFormat: Ve,
|
|
3112
3122
|
disabledDate: Be
|
|
3113
3123
|
}, we, {
|
|
3114
3124
|
placeholder: (we == null ? void 0 : we.placeholder) || N || "请选择日期"
|
|
3115
3125
|
}), null);
|
|
3116
3126
|
}, V = ({
|
|
3117
3127
|
key: r,
|
|
3118
|
-
options:
|
|
3128
|
+
options: E,
|
|
3119
3129
|
multiple: _ = !1,
|
|
3120
3130
|
filterable: I = !0,
|
|
3121
3131
|
nodeKey: H = "id",
|
|
@@ -3123,47 +3133,47 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3123
3133
|
highlightCurrent: Y = !0,
|
|
3124
3134
|
defaultExpandAll: N = !1,
|
|
3125
3135
|
expandOnClickNode: Q = !1,
|
|
3126
|
-
placeholder:
|
|
3127
|
-
checkOnClickNode:
|
|
3128
|
-
showCheckbox:
|
|
3129
|
-
checkStrictly:
|
|
3136
|
+
placeholder: be = "全部",
|
|
3137
|
+
checkOnClickNode: Te = !1,
|
|
3138
|
+
showCheckbox: Ue = !1,
|
|
3139
|
+
checkStrictly: Ve = !0,
|
|
3130
3140
|
defaultCheckedKeys: Be = [],
|
|
3131
3141
|
currentNodeKey: we = "",
|
|
3132
3142
|
accordion: ve = !1,
|
|
3133
3143
|
formProp: ye = {},
|
|
3134
3144
|
label: qe
|
|
3135
|
-
}) =>
|
|
3145
|
+
}) => m(Vt, le({
|
|
3136
3146
|
modelValue: v.value[r],
|
|
3137
3147
|
"onUpdate:modelValue": (Ie) => v.value[r] = Ie,
|
|
3138
|
-
data:
|
|
3148
|
+
data: E,
|
|
3139
3149
|
onChange: () => a(),
|
|
3140
3150
|
clearable: !0,
|
|
3141
3151
|
multiple: _,
|
|
3142
3152
|
props: K,
|
|
3143
|
-
placeholder:
|
|
3153
|
+
placeholder: be,
|
|
3144
3154
|
filterable: I,
|
|
3145
3155
|
nodeKey: H,
|
|
3146
3156
|
highlightCurrent: Y,
|
|
3147
3157
|
defaultExpandAll: N,
|
|
3148
3158
|
expandOnClickNode: Q,
|
|
3149
|
-
checkOnClickNode:
|
|
3150
|
-
showCheckbox:
|
|
3151
|
-
checkStrictly:
|
|
3159
|
+
checkOnClickNode: Te,
|
|
3160
|
+
showCheckbox: Ue,
|
|
3161
|
+
checkStrictly: Ve,
|
|
3152
3162
|
defaultCheckedKeys: Be,
|
|
3153
3163
|
currentNodeKey: we,
|
|
3154
3164
|
accordion: ve
|
|
3155
3165
|
}, ye, {
|
|
3156
|
-
placeholder: (ye == null ? void 0 : ye.placeholder) ||
|
|
3166
|
+
placeholder: (ye == null ? void 0 : ye.placeholder) || be || `请选择${qe || ""}`
|
|
3157
3167
|
}), null), S = ({
|
|
3158
3168
|
key: r,
|
|
3159
|
-
selectKey:
|
|
3169
|
+
selectKey: E,
|
|
3160
3170
|
placeholder: _,
|
|
3161
3171
|
disabled: I,
|
|
3162
3172
|
options: H,
|
|
3163
3173
|
multiple: K = !1,
|
|
3164
3174
|
filterable: Y = !0,
|
|
3165
3175
|
formProp: N = {}
|
|
3166
|
-
}) =>
|
|
3176
|
+
}) => m(je, le({
|
|
3167
3177
|
disabled: I,
|
|
3168
3178
|
modelValue: v.value[r],
|
|
3169
3179
|
"onUpdate:modelValue": (Q) => v.value[r] = Q,
|
|
@@ -3171,37 +3181,37 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3171
3181
|
}, N, {
|
|
3172
3182
|
placeholder: (N == null ? void 0 : N.placeholder) || _ || "全部"
|
|
3173
3183
|
}), {
|
|
3174
|
-
prepend: () =>
|
|
3184
|
+
prepend: () => m(rt, le({
|
|
3175
3185
|
disabled: I,
|
|
3176
3186
|
multiple: K,
|
|
3177
3187
|
filterable: Y,
|
|
3178
|
-
modelValue: v.value[
|
|
3179
|
-
"onUpdate:modelValue": (Q) => v.value[
|
|
3188
|
+
modelValue: v.value[E],
|
|
3189
|
+
"onUpdate:modelValue": (Q) => v.value[E] = Q,
|
|
3180
3190
|
onChange: () => a()
|
|
3181
3191
|
}, N), {
|
|
3182
|
-
default: () => [H == null ? void 0 : H.map((Q) =>
|
|
3192
|
+
default: () => [H == null ? void 0 : H.map((Q) => m(ut, {
|
|
3183
3193
|
key: Q.value,
|
|
3184
3194
|
label: Q.label,
|
|
3185
3195
|
value: Q.value
|
|
3186
3196
|
}, null))]
|
|
3187
3197
|
})
|
|
3188
|
-
}), j = "", z = "iking", ie = B(null),
|
|
3189
|
-
J.value = !0,
|
|
3198
|
+
}), j = "", z = "iking", ie = B(null), M = B([]), J = B(!1), ee = B(""), fe = /* @__PURE__ */ new Map(), Ne = (r) => {
|
|
3199
|
+
J.value = !0, M.value = fe.has(r) ? fe.get(r) : v.value[r], ee.value = r;
|
|
3190
3200
|
}, Ge = () => {
|
|
3191
3201
|
fe.set(ee.value, []), ee.value = "", a();
|
|
3192
3202
|
}, Ye = (r) => {
|
|
3193
|
-
var
|
|
3194
|
-
v.value[ee.value] = (
|
|
3203
|
+
var E, _;
|
|
3204
|
+
v.value[ee.value] = (E = r.list.map((I) => I.elementName)) == null ? void 0 : E.join(","), fe.set(ee.value, r.list), c("search", v.value), c("pickerChange", r), (_ = l.search) == null || _.call(l, v.value);
|
|
3195
3205
|
}, Qe = ({
|
|
3196
3206
|
key: r,
|
|
3197
|
-
placeholder:
|
|
3207
|
+
placeholder: E,
|
|
3198
3208
|
typeOption: _,
|
|
3199
3209
|
_list: I,
|
|
3200
3210
|
maxlength: H,
|
|
3201
3211
|
minlength: K,
|
|
3202
3212
|
disabled: Y,
|
|
3203
3213
|
formProp: N
|
|
3204
|
-
}) =>
|
|
3214
|
+
}) => m(je, le({
|
|
3205
3215
|
modelValue: v.value[r],
|
|
3206
3216
|
"onUpdate:modelValue": (Q) => v.value[r] = Q,
|
|
3207
3217
|
clearable: !0,
|
|
@@ -3211,17 +3221,17 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3211
3221
|
}, N, {
|
|
3212
3222
|
onClick: () => Ne(r),
|
|
3213
3223
|
onClear: () => Ge(),
|
|
3214
|
-
placeholder: (N == null ? void 0 : N.placeholder) ||
|
|
3224
|
+
placeholder: (N == null ? void 0 : N.placeholder) || E || `点击选择${label || "人员"}`
|
|
3215
3225
|
}), null), me = (r) => {
|
|
3216
3226
|
switch (r.type) {
|
|
3217
3227
|
case "":
|
|
3218
3228
|
case void 0:
|
|
3219
3229
|
case xe.input:
|
|
3220
3230
|
case "el-input":
|
|
3221
|
-
return
|
|
3231
|
+
return d(r);
|
|
3222
3232
|
case xe.number:
|
|
3223
3233
|
case "el-input-number":
|
|
3224
|
-
return
|
|
3234
|
+
return g(r);
|
|
3225
3235
|
case xe.select:
|
|
3226
3236
|
case "el-select":
|
|
3227
3237
|
return W(r);
|
|
@@ -3236,7 +3246,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3236
3246
|
case "el-date-picker":
|
|
3237
3247
|
return U(r);
|
|
3238
3248
|
case "el-time-select":
|
|
3239
|
-
return
|
|
3249
|
+
return ne(r);
|
|
3240
3250
|
case xe.treeselect:
|
|
3241
3251
|
case "el-tree-select":
|
|
3242
3252
|
return V(r);
|
|
@@ -3245,16 +3255,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3245
3255
|
case "select-input":
|
|
3246
3256
|
return S(r);
|
|
3247
3257
|
default:
|
|
3248
|
-
return
|
|
3258
|
+
return m(Z, null, null);
|
|
3249
3259
|
}
|
|
3250
3260
|
}, Xe = R(() => {
|
|
3251
3261
|
var _;
|
|
3252
|
-
const r = [],
|
|
3262
|
+
const r = [], E = x.value.length - 1;
|
|
3253
3263
|
return (_ = x.value) == null || _.forEach((I, H) => {
|
|
3254
3264
|
let K, Y;
|
|
3255
3265
|
if (!I) return [];
|
|
3256
3266
|
const N = I.col || 1;
|
|
3257
|
-
r.push(
|
|
3267
|
+
r.push(m(Lt, {
|
|
3258
3268
|
xl: {
|
|
3259
3269
|
span: N * 6
|
|
3260
3270
|
},
|
|
@@ -3268,16 +3278,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3268
3278
|
span: N * 24
|
|
3269
3279
|
}
|
|
3270
3280
|
}, {
|
|
3271
|
-
default: () => [H ===
|
|
3281
|
+
default: () => [H === E ? (
|
|
3272
3282
|
// 最后一个form后跟上选项className="last-form"
|
|
3273
|
-
|
|
3283
|
+
m("div", {
|
|
3274
3284
|
class: "last-form"
|
|
3275
|
-
}, [
|
|
3285
|
+
}, [m(it, {
|
|
3276
3286
|
label: I.type === "select-input" ? "" : I.label,
|
|
3277
3287
|
prop: I.key
|
|
3278
3288
|
}, ht(K = me(I)) ? K : {
|
|
3279
3289
|
default: () => [K]
|
|
3280
|
-
}),
|
|
3290
|
+
}), m(Oe, {
|
|
3281
3291
|
name: "icon-sousuo1",
|
|
3282
3292
|
pop: !0,
|
|
3283
3293
|
title: "搜索",
|
|
@@ -3285,16 +3295,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3285
3295
|
"show-bg": !0,
|
|
3286
3296
|
width: 40,
|
|
3287
3297
|
onClick: () => a()
|
|
3288
|
-
}, null),
|
|
3298
|
+
}, null), m(Oe, {
|
|
3289
3299
|
name: "icon-zhongzhi",
|
|
3290
3300
|
pop: !0,
|
|
3291
3301
|
title: "重置并搜索",
|
|
3292
3302
|
size: "big",
|
|
3293
3303
|
"show-bg": !0,
|
|
3294
3304
|
width: 40,
|
|
3295
|
-
onClick: () =>
|
|
3305
|
+
onClick: () => w()
|
|
3296
3306
|
}, null)])
|
|
3297
|
-
) :
|
|
3307
|
+
) : m(it, {
|
|
3298
3308
|
label: I.type === "select-input" ? "" : I.label,
|
|
3299
3309
|
prop: I.key
|
|
3300
3310
|
}, ht(Y = me(I)) ? Y : {
|
|
@@ -3303,26 +3313,26 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3303
3313
|
}));
|
|
3304
3314
|
}), r;
|
|
3305
3315
|
});
|
|
3306
|
-
return () =>
|
|
3316
|
+
return () => m(Z, null, [m(St, {
|
|
3307
3317
|
class: "gl-search-card",
|
|
3308
3318
|
shadow: l.shadow
|
|
3309
3319
|
}, {
|
|
3310
|
-
default: () => [
|
|
3320
|
+
default: () => [m(Tt, {
|
|
3311
3321
|
class: "auto-search-form",
|
|
3312
3322
|
onKeyup: i,
|
|
3313
3323
|
ref: t,
|
|
3314
3324
|
model: v.value
|
|
3315
3325
|
}, {
|
|
3316
|
-
default: () => [
|
|
3326
|
+
default: () => [m(Ut, {
|
|
3317
3327
|
gutter: 16
|
|
3318
3328
|
}, {
|
|
3319
3329
|
default: () => [Xe.value]
|
|
3320
3330
|
})]
|
|
3321
3331
|
})]
|
|
3322
|
-
}),
|
|
3332
|
+
}), m($a, {
|
|
3323
3333
|
ref: ie.value,
|
|
3324
|
-
modelValue:
|
|
3325
|
-
"onUpdate:modelValue": (r) =>
|
|
3334
|
+
modelValue: M.value,
|
|
3335
|
+
"onUpdate:modelValue": (r) => M.value = r,
|
|
3326
3336
|
show: J.value,
|
|
3327
3337
|
"onUpdate:show": (r) => J.value = r,
|
|
3328
3338
|
"append-to-body": !0,
|
|
@@ -3352,7 +3362,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3352
3362
|
}
|
|
3353
3363
|
}), Ya = { class: "header-left" }, Qa = { class: "title" }, Xa = { class: "flex items-center" }, qa = /* @__PURE__ */ ue({
|
|
3354
3364
|
__name: "IkPageHead",
|
|
3355
|
-
props: /* @__PURE__ */
|
|
3365
|
+
props: /* @__PURE__ */ Ee({
|
|
3356
3366
|
// 标题
|
|
3357
3367
|
headerTitle: {
|
|
3358
3368
|
type: String,
|
|
@@ -3417,18 +3427,18 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3417
3427
|
}),
|
|
3418
3428
|
emits: ["update:modelValue"],
|
|
3419
3429
|
setup(l) {
|
|
3420
|
-
|
|
3430
|
+
Ot((x) => ({
|
|
3421
3431
|
v59e2b6b4: F
|
|
3422
3432
|
}));
|
|
3423
|
-
const
|
|
3433
|
+
const c = l, e = et(l, "modelValue"), t = B(c.defaultShow), b = () => {
|
|
3424
3434
|
t.value = !t.value;
|
|
3425
|
-
}, h = R(() =>
|
|
3435
|
+
}, h = R(() => c.fields.filter((x) => !x.onlyForm)), O = R(() => {
|
|
3426
3436
|
var x;
|
|
3427
|
-
return (x =
|
|
3428
|
-
}), v = R(() =>
|
|
3437
|
+
return (x = c.fields) == null ? void 0 : x.filter((C) => C.search);
|
|
3438
|
+
}), v = R(() => O.value.length), F = `${c.headerHeight}px`;
|
|
3429
3439
|
return (x, C) => {
|
|
3430
3440
|
const A = te("el-card");
|
|
3431
|
-
return s(),
|
|
3441
|
+
return s(), y(
|
|
3432
3442
|
"div",
|
|
3433
3443
|
{
|
|
3434
3444
|
class: ce(["ik-page-header", { "show-search": t.value }])
|
|
@@ -3445,7 +3455,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3445
3455
|
},
|
|
3446
3456
|
[
|
|
3447
3457
|
u("div", Ya, [
|
|
3448
|
-
|
|
3458
|
+
k(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),
|
|
3449
3459
|
u(
|
|
3450
3460
|
"span",
|
|
3451
3461
|
Qa,
|
|
@@ -3455,9 +3465,9 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3455
3465
|
),
|
|
3456
3466
|
ge(x.$slots, "headerLeft", {}, void 0, !0)
|
|
3457
3467
|
]),
|
|
3458
|
-
|
|
3468
|
+
k(" 默认按钮 "),
|
|
3459
3469
|
u("div", Xa, [
|
|
3460
|
-
|
|
3470
|
+
k(" 右侧操作或自定义内容 "),
|
|
3461
3471
|
ge(x.$slots, "headerRight", {}, void 0, !0),
|
|
3462
3472
|
l.exportBtn ? (s(), D(T(Oe), {
|
|
3463
3473
|
key: 0,
|
|
@@ -3466,15 +3476,15 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3466
3476
|
title: "导出",
|
|
3467
3477
|
"show-bg": "",
|
|
3468
3478
|
size: "default"
|
|
3469
|
-
})) :
|
|
3479
|
+
})) : k("v-if", !0),
|
|
3470
3480
|
v.value ? (s(), D(T(Oe), {
|
|
3471
3481
|
key: 1,
|
|
3472
3482
|
name: "iksvg_shaixuan1",
|
|
3473
3483
|
size: "default",
|
|
3474
3484
|
title: t.value ? "收起筛选条件" : "展开筛选条件",
|
|
3475
3485
|
"show-bg": "",
|
|
3476
|
-
onClick:
|
|
3477
|
-
}, null, 8, ["title"])) :
|
|
3486
|
+
onClick: b
|
|
3487
|
+
}, null, 8, ["title"])) : k("v-if", !0),
|
|
3478
3488
|
l.refreshBtn ? (s(), D(T(Oe), {
|
|
3479
3489
|
key: 2,
|
|
3480
3490
|
name: "iksvg_zhongzhi1",
|
|
@@ -3482,14 +3492,14 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3482
3492
|
"show-bg": "",
|
|
3483
3493
|
size: "default",
|
|
3484
3494
|
onClick: l.search
|
|
3485
|
-
}, null, 8, ["onClick"])) :
|
|
3486
|
-
|
|
3495
|
+
}, null, 8, ["onClick"])) : k("v-if", !0),
|
|
3496
|
+
k(` <IkSvgIcon\r
|
|
3487
3497
|
name="icon-shezhi"\r
|
|
3488
3498
|
show-bg\r
|
|
3489
3499
|
:width="40"\r
|
|
3490
3500
|
size="small"\r
|
|
3491
3501
|
/> `),
|
|
3492
|
-
|
|
3502
|
+
m(T(Na), {
|
|
3493
3503
|
modelValue: e.value,
|
|
3494
3504
|
"onUpdate:modelValue": C[0] || (C[0] = (o) => e.value = o),
|
|
3495
3505
|
title: "设置表格字段",
|
|
@@ -3501,21 +3511,21 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3501
3511
|
4
|
|
3502
3512
|
/* STYLE */
|
|
3503
3513
|
),
|
|
3504
|
-
|
|
3514
|
+
m(A, {
|
|
3505
3515
|
shadow: "always",
|
|
3506
3516
|
class: "search-form"
|
|
3507
3517
|
}, {
|
|
3508
3518
|
default: P(() => [
|
|
3509
|
-
|
|
3510
|
-
list:
|
|
3519
|
+
m(T(Ga), {
|
|
3520
|
+
list: O.value,
|
|
3511
3521
|
search: l.search,
|
|
3512
3522
|
loading: l.loading
|
|
3513
3523
|
}, null, 8, ["list", "search", "loading"]),
|
|
3514
3524
|
u("span", {
|
|
3515
3525
|
class: "hide-serch",
|
|
3516
|
-
onClick:
|
|
3526
|
+
onClick: b
|
|
3517
3527
|
}, [
|
|
3518
|
-
|
|
3528
|
+
m(T(Oe), {
|
|
3519
3529
|
title: "收起",
|
|
3520
3530
|
rotate: "180",
|
|
3521
3531
|
name: "icon-shouqi"
|
|
@@ -3531,7 +3541,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3531
3541
|
);
|
|
3532
3542
|
};
|
|
3533
3543
|
}
|
|
3534
|
-
}), Ka = /* @__PURE__ */ oe(qa, [["__scopeId", "data-v-659625f1"]]),
|
|
3544
|
+
}), Ka = /* @__PURE__ */ oe(qa, [["__scopeId", "data-v-659625f1"]]), mt = {
|
|
3535
3545
|
// 标题
|
|
3536
3546
|
headerTitle: {
|
|
3537
3547
|
type: String,
|
|
@@ -3676,29 +3686,29 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3676
3686
|
}
|
|
3677
3687
|
},
|
|
3678
3688
|
emits: ["currentChange", "sizeChange"],
|
|
3679
|
-
setup(l, { emit:
|
|
3680
|
-
const e = l, t =
|
|
3689
|
+
setup(l, { emit: c }) {
|
|
3690
|
+
const e = l, t = c, b = B(1);
|
|
3681
3691
|
re(() => e.current, (x) => {
|
|
3682
|
-
|
|
3692
|
+
b.value = x;
|
|
3683
3693
|
});
|
|
3684
|
-
const h = [15, 30, 60, 100, 200, 500],
|
|
3694
|
+
const h = [15, 30, 60, 100, 200, 500], O = B(h[0]), v = (x) => {
|
|
3685
3695
|
t("sizeChange", x), e == null || e.search({
|
|
3686
|
-
page:
|
|
3687
|
-
rows:
|
|
3696
|
+
page: b.value,
|
|
3697
|
+
rows: O.value
|
|
3688
3698
|
});
|
|
3689
3699
|
}, F = (x) => {
|
|
3690
3700
|
t("currentChange", x), e == null || e.search({
|
|
3691
|
-
page:
|
|
3692
|
-
rows:
|
|
3701
|
+
page: b.value,
|
|
3702
|
+
rows: O.value
|
|
3693
3703
|
});
|
|
3694
3704
|
};
|
|
3695
3705
|
return (x, C) => {
|
|
3696
3706
|
const A = te("el-pagination");
|
|
3697
3707
|
return s(), D(A, le({
|
|
3698
|
-
"current-page":
|
|
3699
|
-
"onUpdate:currentPage": C[0] || (C[0] = (o) =>
|
|
3700
|
-
"page-size":
|
|
3701
|
-
"onUpdate:pageSize": C[1] || (C[1] = (o) =>
|
|
3708
|
+
"current-page": b.value,
|
|
3709
|
+
"onUpdate:currentPage": C[0] || (C[0] = (o) => b.value = o),
|
|
3710
|
+
"page-size": O.value,
|
|
3711
|
+
"onUpdate:pageSize": C[1] || (C[1] = (o) => O.value = o)
|
|
3702
3712
|
}, x.$attrs, {
|
|
3703
3713
|
layout: "slot, ->, sizes, prev, pager, next, jumper",
|
|
3704
3714
|
small: l.mini,
|
|
@@ -3710,7 +3720,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3710
3720
|
}), {
|
|
3711
3721
|
default: P(() => [
|
|
3712
3722
|
u("span", Za, [
|
|
3713
|
-
C[2] || (C[2] =
|
|
3723
|
+
C[2] || (C[2] = ae(
|
|
3714
3724
|
" 共",
|
|
3715
3725
|
-1
|
|
3716
3726
|
/* CACHED */
|
|
@@ -3722,7 +3732,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3722
3732
|
1
|
|
3723
3733
|
/* TEXT */
|
|
3724
3734
|
),
|
|
3725
|
-
C[3] || (C[3] =
|
|
3735
|
+
C[3] || (C[3] = ae(
|
|
3726
3736
|
" 项数据 ",
|
|
3727
3737
|
-1
|
|
3728
3738
|
/* CACHED */
|
|
@@ -3736,39 +3746,39 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3736
3746
|
}
|
|
3737
3747
|
}), tn = /* @__PURE__ */ oe(en, [["__scopeId", "data-v-e7b4fc6e"]]), ln = /* @__PURE__ */ ue({
|
|
3738
3748
|
__name: "IkPageTable",
|
|
3739
|
-
props:
|
|
3749
|
+
props: mt,
|
|
3740
3750
|
emits: ["selection-change", "page-change"],
|
|
3741
|
-
setup(l, { expose:
|
|
3751
|
+
setup(l, { expose: c, emit: e }) {
|
|
3742
3752
|
var o;
|
|
3743
|
-
const t = l,
|
|
3753
|
+
const t = l, b = e, { attrs: h } = wt(), O = B({
|
|
3744
3754
|
page: ((o = h.page) == null ? void 0 : o.page) || 1,
|
|
3745
3755
|
rows: 15
|
|
3746
3756
|
}), v = R(() => {
|
|
3747
|
-
const { page: a, rows: i } = (h == null ? void 0 : h.page) ||
|
|
3748
|
-
return
|
|
3749
|
-
|
|
3750
|
-
}),
|
|
3757
|
+
const { page: a, rows: i } = (h == null ? void 0 : h.page) || O.value, w = se.cloneDeep(t.tableData);
|
|
3758
|
+
return w.forEach((d, g) => {
|
|
3759
|
+
d.__index = a === 1 ? g + 1 : (a - 1) * i + g + 1;
|
|
3760
|
+
}), w;
|
|
3751
3761
|
}), F = (a) => {
|
|
3752
|
-
|
|
3762
|
+
O.value = a, b("page-change", a), t.search();
|
|
3753
3763
|
}, x = B([]), C = (a) => {
|
|
3754
|
-
x.value = a,
|
|
3764
|
+
x.value = a, b("selection-change", a);
|
|
3755
3765
|
}, A = B();
|
|
3756
|
-
return
|
|
3766
|
+
return c({ table: A }), (a, i) => {
|
|
3757
3767
|
var W, $, f;
|
|
3758
|
-
const
|
|
3759
|
-
return s(),
|
|
3768
|
+
const w = te("el-table-column"), d = te("el-table"), g = tt("loading");
|
|
3769
|
+
return s(), y(
|
|
3760
3770
|
Z,
|
|
3761
3771
|
null,
|
|
3762
3772
|
[
|
|
3763
|
-
|
|
3764
|
-
(W = a.$slots) != null && W.table ? ge(a.$slots, "table", { key: 0 }, void 0, !0) : (s(),
|
|
3773
|
+
k(" 自定义表格 "),
|
|
3774
|
+
(W = a.$slots) != null && W.table ? ge(a.$slots, "table", { key: 0 }, void 0, !0) : (s(), y(
|
|
3765
3775
|
Z,
|
|
3766
3776
|
{ key: 1 },
|
|
3767
3777
|
[
|
|
3768
|
-
|
|
3769
|
-
|
|
3778
|
+
k(" 默认表格 "),
|
|
3779
|
+
m(vt, { name: "el-zoom-in-center" }, {
|
|
3770
3780
|
default: P(() => [
|
|
3771
|
-
Ce((s(), D(
|
|
3781
|
+
Ce((s(), D(d, le({
|
|
3772
3782
|
ref_key: "refTable",
|
|
3773
3783
|
ref: A
|
|
3774
3784
|
}, { ...a.$attrs, ...t }, {
|
|
@@ -3777,25 +3787,25 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3777
3787
|
onSelectionChange: C
|
|
3778
3788
|
}), {
|
|
3779
3789
|
default: P(() => [
|
|
3780
|
-
a.selection ? (s(), D(
|
|
3790
|
+
a.selection ? (s(), D(w, {
|
|
3781
3791
|
key: 0,
|
|
3782
3792
|
type: "selection",
|
|
3783
3793
|
align: "center",
|
|
3784
3794
|
width: "56"
|
|
3785
|
-
})) :
|
|
3786
|
-
a.serial ? (s(), D(
|
|
3795
|
+
})) : k("v-if", !0),
|
|
3796
|
+
a.serial ? (s(), D(w, {
|
|
3787
3797
|
key: 1,
|
|
3788
3798
|
prop: "__index",
|
|
3789
3799
|
label: "序号",
|
|
3790
3800
|
width: 60,
|
|
3791
3801
|
align: "center"
|
|
3792
|
-
})) :
|
|
3802
|
+
})) : k("v-if", !0),
|
|
3793
3803
|
ge(a.$slots, "default", {}, void 0, !0)
|
|
3794
3804
|
]),
|
|
3795
3805
|
_: 3
|
|
3796
3806
|
/* FORWARDED */
|
|
3797
3807
|
}, 16, ["data"])), [
|
|
3798
|
-
[
|
|
3808
|
+
[g, a.loading]
|
|
3799
3809
|
])
|
|
3800
3810
|
]),
|
|
3801
3811
|
_: 3
|
|
@@ -3805,13 +3815,13 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3805
3815
|
64
|
|
3806
3816
|
/* STABLE_FRAGMENT */
|
|
3807
3817
|
)),
|
|
3808
|
-
|
|
3818
|
+
k(" 分页 "),
|
|
3809
3819
|
a.total ? (s(), D(tn, {
|
|
3810
3820
|
key: 2,
|
|
3811
3821
|
current: ((f = ($ = a.$attrs) == null ? void 0 : $.page) == null ? void 0 : f.page) || 1,
|
|
3812
3822
|
total: a.total,
|
|
3813
3823
|
search: F
|
|
3814
|
-
}, null, 8, ["current", "total"])) :
|
|
3824
|
+
}, null, 8, ["current", "total"])) : k("v-if", !0)
|
|
3815
3825
|
],
|
|
3816
3826
|
64
|
|
3817
3827
|
/* STABLE_FRAGMENT */
|
|
@@ -3820,7 +3830,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3820
3830
|
}
|
|
3821
3831
|
}), an = /* @__PURE__ */ oe(ln, [["__scopeId", "data-v-7e61d7f1"]]), nn = { class: "choose" }, sn = { class: "btn" }, on = /* @__PURE__ */ ue({
|
|
3822
3832
|
__name: "index",
|
|
3823
|
-
props: /* @__PURE__ */
|
|
3833
|
+
props: /* @__PURE__ */ Ee(mt, {
|
|
3824
3834
|
modelValue: {
|
|
3825
3835
|
type: Object,
|
|
3826
3836
|
default: () => ({
|
|
@@ -3830,16 +3840,16 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3830
3840
|
},
|
|
3831
3841
|
modelModifiers: {}
|
|
3832
3842
|
}),
|
|
3833
|
-
emits: /* @__PURE__ */
|
|
3834
|
-
setup(l, { expose:
|
|
3835
|
-
const t = l,
|
|
3843
|
+
emits: /* @__PURE__ */ Ee(["selection-change", "delete", "download", "addFunction"], ["update:modelValue"]),
|
|
3844
|
+
setup(l, { expose: c, emit: e }) {
|
|
3845
|
+
const t = l, b = e, h = et(l, "modelValue"), O = () => {
|
|
3836
3846
|
var U;
|
|
3837
3847
|
(U = h == null ? void 0 : h.value) != null && U.page && (h.value = {
|
|
3838
3848
|
page: 1,
|
|
3839
3849
|
rows: 15
|
|
3840
3850
|
});
|
|
3841
3851
|
};
|
|
3842
|
-
|
|
3852
|
+
O();
|
|
3843
3853
|
const v = (U) => {
|
|
3844
3854
|
h.value = {
|
|
3845
3855
|
...h.value,
|
|
@@ -3847,7 +3857,7 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3847
3857
|
};
|
|
3848
3858
|
}, F = (U) => {
|
|
3849
3859
|
var S;
|
|
3850
|
-
|
|
3860
|
+
O();
|
|
3851
3861
|
const V = (U == null ? void 0 : U.type) === "click" ? {} : U;
|
|
3852
3862
|
h.value = {
|
|
3853
3863
|
...h.value,
|
|
@@ -3856,31 +3866,31 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3856
3866
|
...h.value
|
|
3857
3867
|
});
|
|
3858
3868
|
}, x = B([]), C = (U) => {
|
|
3859
|
-
x.value = 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
|
|
3869
|
+
x.value = U, b("selection-change", U);
|
|
3870
|
+
}, 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) => {
|
|
3871
|
+
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;
|
|
3872
|
+
}, ne = R(() => t.fields.find((U) => U.isEdit));
|
|
3873
|
+
return c({
|
|
3864
3874
|
table: i,
|
|
3865
|
-
header:
|
|
3875
|
+
header: w,
|
|
3866
3876
|
chooseList: x,
|
|
3867
3877
|
srotFields: o,
|
|
3868
3878
|
pageData: h,
|
|
3869
|
-
dialog:
|
|
3879
|
+
dialog: d,
|
|
3870
3880
|
handAdd: f
|
|
3871
3881
|
}), (U, V) => {
|
|
3872
3882
|
const S = te("el-button"), j = te("IkNumberDuration"), z = te("el-table-column"), ie = tt("role");
|
|
3873
|
-
return s(),
|
|
3883
|
+
return s(), y(
|
|
3874
3884
|
Z,
|
|
3875
3885
|
null,
|
|
3876
3886
|
[
|
|
3877
|
-
|
|
3878
|
-
|
|
3887
|
+
k(" 标题 + 搜索表单 "),
|
|
3888
|
+
m(Ka, le({
|
|
3879
3889
|
ref_key: "refHeader",
|
|
3880
|
-
ref:
|
|
3890
|
+
ref: w
|
|
3881
3891
|
}, { ...U.$attrs, ...t }, {
|
|
3882
3892
|
modelValue: o.value,
|
|
3883
|
-
"onUpdate:modelValue": V[1] || (V[1] = (
|
|
3893
|
+
"onUpdate:modelValue": V[1] || (V[1] = (M) => o.value = M),
|
|
3884
3894
|
loading: U.loading,
|
|
3885
3895
|
search: F,
|
|
3886
3896
|
"tab-id": U.tabId
|
|
@@ -3890,13 +3900,13 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3890
3900
|
]),
|
|
3891
3901
|
headerRight: P(() => [
|
|
3892
3902
|
ge(U.$slots, "headerRight", {}, () => [
|
|
3893
|
-
|
|
3903
|
+
ne.value ? Ce((s(), D(S, {
|
|
3894
3904
|
key: 0,
|
|
3895
3905
|
type: "primary",
|
|
3896
|
-
onClick: V[0] || (V[0] = (
|
|
3906
|
+
onClick: V[0] || (V[0] = (M) => f(null))
|
|
3897
3907
|
}, {
|
|
3898
3908
|
default: P(() => [...V[4] || (V[4] = [
|
|
3899
|
-
|
|
3909
|
+
ae(
|
|
3900
3910
|
" 新增 ",
|
|
3901
3911
|
-1
|
|
3902
3912
|
/* CACHED */
|
|
@@ -3906,14 +3916,14 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3906
3916
|
/* STABLE */
|
|
3907
3917
|
})), [
|
|
3908
3918
|
[ie, U.role]
|
|
3909
|
-
]) :
|
|
3919
|
+
]) : k("v-if", !0)
|
|
3910
3920
|
], !0)
|
|
3911
3921
|
]),
|
|
3912
3922
|
_: 3
|
|
3913
3923
|
/* FORWARDED */
|
|
3914
3924
|
}, 16, ["modelValue", "loading", "tab-id"]),
|
|
3915
|
-
|
|
3916
|
-
U.selection ? (s(),
|
|
3925
|
+
k(" 选中表格项 "),
|
|
3926
|
+
U.selection ? (s(), y(
|
|
3917
3927
|
"div",
|
|
3918
3928
|
{
|
|
3919
3929
|
key: 0,
|
|
@@ -3921,36 +3931,36 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3921
3931
|
},
|
|
3922
3932
|
[
|
|
3923
3933
|
u("p", nn, [
|
|
3924
|
-
V[5] || (V[5] =
|
|
3934
|
+
V[5] || (V[5] = ae(
|
|
3925
3935
|
" 已选 ",
|
|
3926
3936
|
-1
|
|
3927
3937
|
/* CACHED */
|
|
3928
3938
|
)),
|
|
3929
3939
|
u("span", null, [
|
|
3930
|
-
|
|
3940
|
+
m(j, { value: A.value }, null, 8, ["value"])
|
|
3931
3941
|
]),
|
|
3932
|
-
V[6] || (V[6] =
|
|
3942
|
+
V[6] || (V[6] = ae(
|
|
3933
3943
|
" 条 ",
|
|
3934
3944
|
-1
|
|
3935
3945
|
/* CACHED */
|
|
3936
3946
|
))
|
|
3937
3947
|
]),
|
|
3938
3948
|
u("div", sn, [
|
|
3939
|
-
U.$slots.selectionRight ? ge(U.$slots, "selectionRight", { key: 1 }, void 0, !0) : (s(),
|
|
3949
|
+
U.$slots.selectionRight ? ge(U.$slots, "selectionRight", { key: 1 }, void 0, !0) : (s(), y(
|
|
3940
3950
|
Z,
|
|
3941
3951
|
{ key: 0 },
|
|
3942
3952
|
[
|
|
3943
|
-
|
|
3953
|
+
m(T(Oe), {
|
|
3944
3954
|
name: "icon-shanchu",
|
|
3945
3955
|
"show-bg": "",
|
|
3946
3956
|
size: "default",
|
|
3947
|
-
onClick: V[2] || (V[2] = (
|
|
3957
|
+
onClick: V[2] || (V[2] = (M) => U.$emit("delete", x.value))
|
|
3948
3958
|
}),
|
|
3949
|
-
|
|
3959
|
+
m(T(Oe), {
|
|
3950
3960
|
ize: "default",
|
|
3951
3961
|
name: "icon-xiazai",
|
|
3952
3962
|
"show-bg": "",
|
|
3953
|
-
onClick: V[3] || (V[3] = (
|
|
3963
|
+
onClick: V[3] || (V[3] = (M) => U.$emit("download", x.value))
|
|
3954
3964
|
})
|
|
3955
3965
|
],
|
|
3956
3966
|
64
|
|
@@ -3960,10 +3970,10 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3960
3970
|
],
|
|
3961
3971
|
2
|
|
3962
3972
|
/* CLASS */
|
|
3963
|
-
)) :
|
|
3964
|
-
|
|
3973
|
+
)) : k("v-if", !0),
|
|
3974
|
+
k(" 自定义表格 "),
|
|
3965
3975
|
ge(U.$slots, "table", {}, () => [
|
|
3966
|
-
|
|
3976
|
+
m(an, le({
|
|
3967
3977
|
ref_key: "refTable",
|
|
3968
3978
|
ref: i,
|
|
3969
3979
|
page: h.value
|
|
@@ -3972,48 +3982,48 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
3972
3982
|
onSelectionChange: C
|
|
3973
3983
|
}), {
|
|
3974
3984
|
default: P(() => [
|
|
3975
|
-
(s(!0),
|
|
3985
|
+
(s(!0), y(
|
|
3976
3986
|
Z,
|
|
3977
3987
|
null,
|
|
3978
|
-
Ae(o.value, (
|
|
3988
|
+
Ae(o.value, (M) => (s(), y(
|
|
3979
3989
|
Z,
|
|
3980
3990
|
{
|
|
3981
|
-
key:
|
|
3991
|
+
key: M.key
|
|
3982
3992
|
},
|
|
3983
3993
|
[
|
|
3984
|
-
|
|
3994
|
+
M.show ? (s(), y(
|
|
3985
3995
|
Z,
|
|
3986
3996
|
{ key: 0 },
|
|
3987
3997
|
[
|
|
3988
|
-
|
|
3998
|
+
M.tableSlot ? (s(), D(z, le({
|
|
3989
3999
|
key: 1,
|
|
3990
|
-
align:
|
|
3991
|
-
width:
|
|
3992
|
-
"min-width":
|
|
4000
|
+
align: M.align,
|
|
4001
|
+
width: M.width,
|
|
4002
|
+
"min-width": M.minWidth,
|
|
3993
4003
|
"show-overflow-tooltip": {
|
|
3994
4004
|
effect: a.value ?? "light"
|
|
3995
4005
|
}
|
|
3996
|
-
}, { ref_for: !0 }, { ...
|
|
4006
|
+
}, { ref_for: !0 }, { ...M, ...U.$attrs, ...t }), {
|
|
3997
4007
|
default: P((J) => [
|
|
3998
|
-
ge(U.$slots,
|
|
4008
|
+
ge(U.$slots, M.tableSlot, { data: J }, void 0, !0)
|
|
3999
4009
|
]),
|
|
4000
4010
|
_: 2
|
|
4001
4011
|
/* DYNAMIC */
|
|
4002
4012
|
}, 1040, ["align", "width", "min-width", "show-overflow-tooltip"])) : (s(), D(z, le({
|
|
4003
4013
|
key: 0,
|
|
4004
|
-
prop:
|
|
4005
|
-
width:
|
|
4006
|
-
"min-width":
|
|
4007
|
-
align:
|
|
4014
|
+
prop: M.key,
|
|
4015
|
+
width: M.width,
|
|
4016
|
+
"min-width": M.minWidth,
|
|
4017
|
+
align: M.align,
|
|
4008
4018
|
"show-overflow-tooltip": {
|
|
4009
4019
|
effect: a.value ?? "light"
|
|
4010
4020
|
},
|
|
4011
4021
|
"show-arrow": !1
|
|
4012
|
-
}, { ref_for: !0 }, { ...
|
|
4022
|
+
}, { ref_for: !0 }, { ...M, ...U.$attrs, ...t }), null, 16, ["prop", "width", "min-width", "align", "show-overflow-tooltip"]))
|
|
4013
4023
|
],
|
|
4014
4024
|
64
|
|
4015
4025
|
/* STABLE_FRAGMENT */
|
|
4016
|
-
)) :
|
|
4026
|
+
)) : k("v-if", !0)
|
|
4017
4027
|
],
|
|
4018
4028
|
64
|
|
4019
4029
|
/* STABLE_FRAGMENT */
|
|
@@ -4026,8 +4036,8 @@ const Ga = /* @__PURE__ */ ue({
|
|
|
4026
4036
|
/* FORWARDED */
|
|
4027
4037
|
}, 16, ["page"])
|
|
4028
4038
|
], !0),
|
|
4029
|
-
|
|
4030
|
-
|
|
4039
|
+
k(" 新增修改 "),
|
|
4040
|
+
k(` <IkDialog\r
|
|
4031
4041
|
v-if="needAutoForm"\r
|
|
4032
4042
|
ref="refIkDialog"\r
|
|
4033
4043
|
v-bind="{ ...dialogProp }"\r
|