iking-web-ui-pro 0.2.21 → 0.2.22
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/IKExpandCollapse/ik.index.es.js +79 -73
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +302 -296
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +117 -111
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +242 -236
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +83 -77
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +434 -428
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +140 -134
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +383 -377
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1135 -1129
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2960 -2954
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +111 -105
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +74 -68
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +720 -714
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +223 -217
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5502 -5496
- package/dist/index.umd.js +78 -78
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as de, openBlock as s, createElementBlock as f, createElementVNode as
|
|
2
|
-
import { ElCheckbox as
|
|
1
|
+
import { defineComponent as de, openBlock as s, createElementBlock as f, createElementVNode as u, computed as H, resolveComponent as ne, withModifiers as Ce, normalizeClass as ue, normalizeStyle as ye, createCommentVNode as _, createBlock as U, withCtx as S, createTextVNode as le, toDisplayString as X, ref as w, Fragment as J, unref as P, renderList as ge, createVNode as m, pushScopeId as Ne, popScopeId as je, useCssVars as gt, watch as he, toRef as At, reactive as ot, nextTick as it, watchEffect as rt, withDirectives as Be, vShow as kt, mergeModels as ze, useModel as Ze, resolveDirective as Je, mergeProps as te, createSlots as bt, Transition as yt, renderSlot as ve, isVNode as _t, getCurrentInstance as xt } from "vue";
|
|
2
|
+
import { ElCheckbox as Te, ElCheckboxGroup as He, ElRadioGroup as Fe, ElRadio as We, ElDialog as Ot, ElButton as qe, ElInput as Re, ElBreadcrumb as wt, ElBreadcrumbItem as Ct, vLoading as Ke, ElCol as Bt, ElFormItem as ut, ElCard as Pt, ElForm as Lt, ElRow as St, ElInputNumber as Tt, ElSelect as dt, ElOption as ct, ElRadioButton as It, ElDatePicker as pt, ElTreeSelect as Vt } from "element-plus";
|
|
3
3
|
import { ikColor as Ut, _ as ae, ikStore as De, ikEvent as $t } from "iking-utils-pro";
|
|
4
4
|
import Dt from "axios";
|
|
5
5
|
import zt from "vuedraggable";
|
|
6
|
-
const Ee = (
|
|
7
|
-
if (
|
|
8
|
-
for (const
|
|
9
|
-
|
|
6
|
+
const Ee = (l, y) => {
|
|
7
|
+
if (l.install = (t) => {
|
|
8
|
+
for (const e of [l, ...Object.values(y ?? {})])
|
|
9
|
+
t.component(e.name, e);
|
|
10
10
|
}, y)
|
|
11
|
-
for (const [
|
|
12
|
-
t
|
|
13
|
-
return
|
|
11
|
+
for (const [t, e] of Object.entries(y))
|
|
12
|
+
l[t] = e;
|
|
13
|
+
return l;
|
|
14
14
|
};
|
|
15
15
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
16
16
|
var Et = /* @__PURE__ */ de({
|
|
17
17
|
name: "DCaret",
|
|
18
18
|
__name: "d-caret",
|
|
19
|
-
setup(
|
|
20
|
-
return (y,
|
|
19
|
+
setup(l) {
|
|
20
|
+
return (y, t) => (s(), f("svg", {
|
|
21
21
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22
22
|
viewBox: "0 0 1024 1024"
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
u("path", {
|
|
25
25
|
fill: "currentColor",
|
|
26
26
|
d: "m512 128 288 320H224zM224 576h576L512 896z"
|
|
27
27
|
})
|
|
28
28
|
]));
|
|
29
29
|
}
|
|
30
30
|
}), Mt = Et;
|
|
31
|
-
const se = (
|
|
32
|
-
const
|
|
33
|
-
for (const [
|
|
34
|
-
e
|
|
35
|
-
return
|
|
31
|
+
const se = (l, y) => {
|
|
32
|
+
const t = l.__vccOpts || l;
|
|
33
|
+
for (const [e, A] of y)
|
|
34
|
+
t[e] = A;
|
|
35
|
+
return t;
|
|
36
36
|
}, Rt = {
|
|
37
37
|
key: 0,
|
|
38
38
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
@@ -70,76 +70,80 @@ const se = (t, y) => {
|
|
|
70
70
|
warning: { type: Boolean },
|
|
71
71
|
width: {}
|
|
72
72
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
emits: ["click"],
|
|
74
|
+
setup(l, { emit: y }) {
|
|
75
|
+
const t = l, e = H(() => t), A = H(() => {
|
|
76
|
+
const { name: b } = e.value;
|
|
77
|
+
return /^http?:\/\//.test(b) ? "img" : /i-[^:]+:[^:]+/.test(b) ? "unocss" : b != null && b.startsWith("iksig") ? "iksig" : b != null && b.includes(":") ? "iconify" : b != null && b.startsWith("iksvg") ? "svg" : "i";
|
|
78
|
+
}), d = H(() => {
|
|
79
|
+
const b = [];
|
|
79
80
|
if (e.value.flip)
|
|
80
81
|
switch (e.value.flip) {
|
|
81
82
|
case "horizontal":
|
|
82
|
-
|
|
83
|
+
b.push("rotateY(180deg)");
|
|
83
84
|
break;
|
|
84
85
|
case "vertical":
|
|
85
|
-
|
|
86
|
+
b.push("rotateX(180deg)");
|
|
86
87
|
break;
|
|
87
88
|
case "both":
|
|
88
|
-
|
|
89
|
+
b.push("rotateX(180deg)"), b.push("rotateY(180deg)");
|
|
89
90
|
break;
|
|
90
91
|
}
|
|
91
|
-
e.value.rotate &&
|
|
92
|
-
const
|
|
92
|
+
e.value.rotate && b.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
93
|
+
const k = {
|
|
93
94
|
...e.value.color && { color: e.value.color },
|
|
94
95
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
95
|
-
...
|
|
96
|
+
...b.length && { transform: b.join(" ") },
|
|
96
97
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
97
|
-
...e.value.color &&
|
|
98
|
+
...e.value.color && A.value !== "iksig" ? {
|
|
98
99
|
"--ik-color-icon-dark": e.value.color,
|
|
99
100
|
"--ik-color-icon-light": e.value.colorLight || Ut.setOpacity(e.value.color, e.value.opacity)
|
|
100
101
|
} : {}
|
|
101
102
|
};
|
|
102
|
-
return e.value.width && (
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
return e.value.width && (k.width = k.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), k;
|
|
104
|
+
}), x = y, c = (b) => {
|
|
105
|
+
e.value.disabled || x("click", b);
|
|
106
|
+
};
|
|
107
|
+
return (b, k) => {
|
|
108
|
+
const C = ne("el-tooltip"), z = ne("el-button");
|
|
106
109
|
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (s(), f("span", Rt, [
|
|
107
110
|
e.value.notip || !e.value.title ? (s(), f(
|
|
108
111
|
"i",
|
|
109
112
|
{
|
|
110
113
|
key: 0,
|
|
114
|
+
onClick: Ce(c, ["stop"]),
|
|
111
115
|
class: ue(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
112
|
-
[
|
|
116
|
+
[b.name]: A.value === "unocss",
|
|
113
117
|
"show-bg": e.value.showBg || e.value.bg,
|
|
114
118
|
default: e.value.size === "default",
|
|
115
119
|
small: e.value.size === "small",
|
|
116
120
|
big: e.value.size === "big",
|
|
117
121
|
warning: e.value.warning || e.value.type === "warning",
|
|
118
122
|
primary: e.value.primary || e.value.type === "primary",
|
|
119
|
-
success:
|
|
123
|
+
success: b.success || e.value.type === "success",
|
|
120
124
|
error: e.value.error || e.value.type === "error",
|
|
121
125
|
active: e.value.active,
|
|
122
126
|
disabled: e.value.disabled
|
|
123
127
|
}]),
|
|
124
|
-
style: ye(
|
|
128
|
+
style: ye(d.value)
|
|
125
129
|
},
|
|
126
130
|
[
|
|
127
131
|
_(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
128
|
-
|
|
132
|
+
A.value === "iksig" ? (s(), f(
|
|
129
133
|
"i",
|
|
130
134
|
{
|
|
131
135
|
key: 0,
|
|
132
136
|
class: ue(`iksig ${e.value.name}`),
|
|
133
|
-
style: ye(
|
|
137
|
+
style: ye(d.value)
|
|
134
138
|
},
|
|
135
139
|
null,
|
|
136
140
|
6
|
|
137
141
|
/* CLASS, STYLE */
|
|
138
|
-
)) :
|
|
139
|
-
|
|
142
|
+
)) : A.value === "svg" ? (s(), f("svg", Nt, [
|
|
143
|
+
u("use", {
|
|
140
144
|
"xlink:href": `#${e.value.name}`
|
|
141
145
|
}, null, 8, jt)
|
|
142
|
-
])) :
|
|
146
|
+
])) : A.value === "img" ? (s(), f("img", {
|
|
143
147
|
key: 2,
|
|
144
148
|
src: e.value.name,
|
|
145
149
|
class: "h-[1em] w-[1em]"
|
|
@@ -148,7 +152,7 @@ const se = (t, y) => {
|
|
|
148
152
|
{
|
|
149
153
|
key: 3,
|
|
150
154
|
class: ue(e.value.name),
|
|
151
|
-
style: ye(
|
|
155
|
+
style: ye(d.value)
|
|
152
156
|
},
|
|
153
157
|
null,
|
|
154
158
|
6
|
|
@@ -157,45 +161,46 @@ const se = (t, y) => {
|
|
|
157
161
|
],
|
|
158
162
|
6
|
|
159
163
|
/* CLASS, STYLE */
|
|
160
|
-
)) : (s(),
|
|
164
|
+
)) : (s(), U(C, {
|
|
161
165
|
key: 1,
|
|
162
166
|
content: e.value.title,
|
|
163
167
|
placement: "top"
|
|
164
168
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
|
|
169
|
+
default: S(() => [
|
|
170
|
+
u(
|
|
167
171
|
"i",
|
|
168
172
|
{
|
|
169
173
|
class: ue(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
170
|
-
[
|
|
174
|
+
[b.name]: A.value === "unocss",
|
|
171
175
|
"show-bg": e.value.showBg || e.value.bg,
|
|
172
176
|
default: e.value.size === "default",
|
|
173
177
|
small: e.value.size === "small",
|
|
174
178
|
big: e.value.size === "big",
|
|
175
179
|
warning: e.value.warning || e.value.type === "warning",
|
|
176
|
-
primary:
|
|
177
|
-
success:
|
|
180
|
+
primary: b.primary || e.value.type === "primary",
|
|
181
|
+
success: b.success || e.value.type === "success",
|
|
178
182
|
error: e.value.error || e.value.type === "error",
|
|
179
183
|
active: e.value.active
|
|
180
184
|
}]),
|
|
181
|
-
|
|
185
|
+
onClick: Ce(c, ["stop"]),
|
|
186
|
+
style: ye(d.value)
|
|
182
187
|
},
|
|
183
188
|
[
|
|
184
|
-
|
|
189
|
+
A.value === "iksig" ? (s(), f(
|
|
185
190
|
"i",
|
|
186
191
|
{
|
|
187
192
|
key: 0,
|
|
188
193
|
class: ue(`iksig ${e.value.name}`),
|
|
189
|
-
style: ye(
|
|
194
|
+
style: ye(d.value)
|
|
190
195
|
},
|
|
191
196
|
null,
|
|
192
197
|
6
|
|
193
198
|
/* CLASS, STYLE */
|
|
194
|
-
)) :
|
|
195
|
-
|
|
199
|
+
)) : A.value === "svg" ? (s(), f("svg", Ft, [
|
|
200
|
+
u("use", {
|
|
196
201
|
"xlink:href": `#${e.value.name}`
|
|
197
202
|
}, null, 8, Wt)
|
|
198
|
-
])) :
|
|
203
|
+
])) : A.value === "img" ? (s(), f("img", {
|
|
199
204
|
key: 2,
|
|
200
205
|
src: e.value.name,
|
|
201
206
|
class: "h-[1em] w-[1em]"
|
|
@@ -204,7 +209,7 @@ const se = (t, y) => {
|
|
|
204
209
|
{
|
|
205
210
|
key: 3,
|
|
206
211
|
class: ue(e.value.name),
|
|
207
|
-
style: ye(
|
|
212
|
+
style: ye(d.value)
|
|
208
213
|
},
|
|
209
214
|
null,
|
|
210
215
|
6
|
|
@@ -218,11 +223,12 @@ const se = (t, y) => {
|
|
|
218
223
|
_: 1
|
|
219
224
|
/* STABLE */
|
|
220
225
|
}, 8, ["content"]))
|
|
221
|
-
])) : (s(),
|
|
226
|
+
])) : (s(), U(z, {
|
|
222
227
|
key: 1,
|
|
223
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
228
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
|
|
229
|
+
onClick: Ce(c, ["stop"])
|
|
224
230
|
}, {
|
|
225
|
-
default:
|
|
231
|
+
default: S(() => [
|
|
226
232
|
le(
|
|
227
233
|
X(e.value.title),
|
|
228
234
|
1
|
|
@@ -235,13 +241,13 @@ const se = (t, y) => {
|
|
|
235
241
|
};
|
|
236
242
|
}
|
|
237
243
|
});
|
|
238
|
-
const Qt = /* @__PURE__ */ se(Yt, [["__scopeId", "data-v-
|
|
244
|
+
const Qt = /* @__PURE__ */ se(Yt, [["__scopeId", "data-v-4a1004b9"]]), xe = Ee(Qt), Xt = {}, qt = {
|
|
239
245
|
t: "1672194715727",
|
|
240
246
|
class: "icon",
|
|
241
247
|
viewBox: "0 0 1024 1024",
|
|
242
248
|
version: "1.1",
|
|
243
249
|
"p-id": "2667"
|
|
244
|
-
}, Kt = /* @__PURE__ */
|
|
250
|
+
}, Kt = /* @__PURE__ */ u(
|
|
245
251
|
"path",
|
|
246
252
|
{
|
|
247
253
|
d: "M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",
|
|
@@ -251,7 +257,7 @@ const Qt = /* @__PURE__ */ se(Yt, [["__scopeId", "data-v-a7ec508a"]]), xe = Ee(Q
|
|
|
251
257
|
null,
|
|
252
258
|
-1
|
|
253
259
|
/* HOISTED */
|
|
254
|
-
), Zt = /* @__PURE__ */
|
|
260
|
+
), Zt = /* @__PURE__ */ u(
|
|
255
261
|
"path",
|
|
256
262
|
{
|
|
257
263
|
d: "M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",
|
|
@@ -265,7 +271,7 @@ const Qt = /* @__PURE__ */ se(Yt, [["__scopeId", "data-v-a7ec508a"]]), xe = Ee(Q
|
|
|
265
271
|
Kt,
|
|
266
272
|
Zt
|
|
267
273
|
];
|
|
268
|
-
function el(
|
|
274
|
+
function el(l, y) {
|
|
269
275
|
return s(), f("svg", qt, Jt);
|
|
270
276
|
}
|
|
271
277
|
const tl = /* @__PURE__ */ se(Xt, [["render", el]]), ll = {}, al = {
|
|
@@ -277,7 +283,7 @@ const tl = /* @__PURE__ */ se(Xt, [["render", el]]), ll = {}, al = {
|
|
|
277
283
|
"p-id": "8420",
|
|
278
284
|
width: "200",
|
|
279
285
|
height: "200"
|
|
280
|
-
}, nl = /* @__PURE__ */
|
|
286
|
+
}, nl = /* @__PURE__ */ u(
|
|
281
287
|
"path",
|
|
282
288
|
{
|
|
283
289
|
d: "M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",
|
|
@@ -287,7 +293,7 @@ const tl = /* @__PURE__ */ se(Xt, [["render", el]]), ll = {}, al = {
|
|
|
287
293
|
null,
|
|
288
294
|
-1
|
|
289
295
|
/* HOISTED */
|
|
290
|
-
), sl = /* @__PURE__ */
|
|
296
|
+
), sl = /* @__PURE__ */ u(
|
|
291
297
|
"path",
|
|
292
298
|
{
|
|
293
299
|
d: "M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",
|
|
@@ -301,7 +307,7 @@ const tl = /* @__PURE__ */ se(Xt, [["render", el]]), ll = {}, al = {
|
|
|
301
307
|
nl,
|
|
302
308
|
sl
|
|
303
309
|
];
|
|
304
|
-
function il(
|
|
310
|
+
function il(l, y) {
|
|
305
311
|
return s(), f("svg", al, ol);
|
|
306
312
|
}
|
|
307
313
|
const rl = /* @__PURE__ */ se(ll, [["render", il]]), ul = {}, dl = {
|
|
@@ -313,7 +319,7 @@ const rl = /* @__PURE__ */ se(ll, [["render", il]]), ul = {}, dl = {
|
|
|
313
319
|
"p-id": "7124",
|
|
314
320
|
width: "200",
|
|
315
321
|
height: "200"
|
|
316
|
-
}, cl = /* @__PURE__ */
|
|
322
|
+
}, cl = /* @__PURE__ */ u(
|
|
317
323
|
"path",
|
|
318
324
|
{
|
|
319
325
|
d: "M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",
|
|
@@ -323,7 +329,7 @@ const rl = /* @__PURE__ */ se(ll, [["render", il]]), ul = {}, dl = {
|
|
|
323
329
|
null,
|
|
324
330
|
-1
|
|
325
331
|
/* HOISTED */
|
|
326
|
-
), pl = /* @__PURE__ */
|
|
332
|
+
), pl = /* @__PURE__ */ u(
|
|
327
333
|
"path",
|
|
328
334
|
{
|
|
329
335
|
d: "M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",
|
|
@@ -337,7 +343,7 @@ const rl = /* @__PURE__ */ se(ll, [["render", il]]), ul = {}, dl = {
|
|
|
337
343
|
cl,
|
|
338
344
|
pl
|
|
339
345
|
];
|
|
340
|
-
function fl(
|
|
346
|
+
function fl(l, y) {
|
|
341
347
|
return s(), f("svg", dl, hl);
|
|
342
348
|
}
|
|
343
349
|
const vl = /* @__PURE__ */ se(ul, [["render", fl]]), gl = {}, yl = {
|
|
@@ -349,7 +355,7 @@ const vl = /* @__PURE__ */ se(ul, [["render", fl]]), gl = {}, yl = {
|
|
|
349
355
|
"p-id": "6989",
|
|
350
356
|
width: "200",
|
|
351
357
|
height: "200"
|
|
352
|
-
}, ml = /* @__PURE__ */
|
|
358
|
+
}, ml = /* @__PURE__ */ u(
|
|
353
359
|
"path",
|
|
354
360
|
{
|
|
355
361
|
d: "M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",
|
|
@@ -359,7 +365,7 @@ const vl = /* @__PURE__ */ se(ul, [["render", fl]]), gl = {}, yl = {
|
|
|
359
365
|
null,
|
|
360
366
|
-1
|
|
361
367
|
/* HOISTED */
|
|
362
|
-
), Al = /* @__PURE__ */
|
|
368
|
+
), Al = /* @__PURE__ */ u(
|
|
363
369
|
"path",
|
|
364
370
|
{
|
|
365
371
|
d: "M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",
|
|
@@ -373,7 +379,7 @@ const vl = /* @__PURE__ */ se(ul, [["render", fl]]), gl = {}, yl = {
|
|
|
373
379
|
ml,
|
|
374
380
|
Al
|
|
375
381
|
];
|
|
376
|
-
function bl(
|
|
382
|
+
function bl(l, y) {
|
|
377
383
|
return s(), f("svg", yl, kl);
|
|
378
384
|
}
|
|
379
385
|
const _l = /* @__PURE__ */ se(gl, [["render", bl]]), xl = {}, Ol = {
|
|
@@ -385,7 +391,7 @@ const _l = /* @__PURE__ */ se(gl, [["render", bl]]), xl = {}, Ol = {
|
|
|
385
391
|
"p-id": "6854",
|
|
386
392
|
width: "200",
|
|
387
393
|
height: "200"
|
|
388
|
-
}, wl = /* @__PURE__ */
|
|
394
|
+
}, wl = /* @__PURE__ */ u(
|
|
389
395
|
"path",
|
|
390
396
|
{
|
|
391
397
|
d: "M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",
|
|
@@ -395,7 +401,7 @@ const _l = /* @__PURE__ */ se(gl, [["render", bl]]), xl = {}, Ol = {
|
|
|
395
401
|
null,
|
|
396
402
|
-1
|
|
397
403
|
/* HOISTED */
|
|
398
|
-
), Cl = /* @__PURE__ */
|
|
404
|
+
), Cl = /* @__PURE__ */ u(
|
|
399
405
|
"path",
|
|
400
406
|
{
|
|
401
407
|
d: "M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",
|
|
@@ -409,7 +415,7 @@ const _l = /* @__PURE__ */ se(gl, [["render", bl]]), xl = {}, Ol = {
|
|
|
409
415
|
wl,
|
|
410
416
|
Cl
|
|
411
417
|
];
|
|
412
|
-
function Pl(
|
|
418
|
+
function Pl(l, y) {
|
|
413
419
|
return s(), f("svg", Ol, Bl);
|
|
414
420
|
}
|
|
415
421
|
const Ll = /* @__PURE__ */ se(xl, [["render", Pl]]), Sl = { class: "avatar" }, Tl = {
|
|
@@ -441,20 +447,20 @@ const Ll = /* @__PURE__ */ se(xl, [["render", Pl]]), Sl = { class: "avatar" }, T
|
|
|
441
447
|
default: ""
|
|
442
448
|
}
|
|
443
449
|
},
|
|
444
|
-
setup(
|
|
445
|
-
const y =
|
|
446
|
-
return (A,
|
|
447
|
-
const
|
|
450
|
+
setup(l) {
|
|
451
|
+
const y = l, t = y.imageBaseUrl ? `${y.imageBaseUrl}/server/oss/download?fileUrl=` : `${location.origin}/server/oss/download?fileUrl=`, e = (A) => A ? A.startsWith("http") ? A : `${t}${A}` : "";
|
|
452
|
+
return (A, d) => {
|
|
453
|
+
const x = ne("el-avatar");
|
|
448
454
|
return s(), f("div", Sl, [
|
|
449
|
-
y.fixTypeOpt.group ===
|
|
450
|
-
|
|
455
|
+
y.fixTypeOpt.group === l.element[y.fixPropOpt.type] ? (s(), U(Ll, { key: 0 })) : y.fixTypeOpt.role === l.element[y.fixPropOpt.type] ? (s(), U(vl, { key: 1 })) : y.fixTypeOpt.post === l.element[y.fixPropOpt.type] ? (s(), U(_l, { key: 2 })) : y.fixTypeOpt.user === l.element[y.fixPropOpt.type] ? (s(), f("div", Tl, [
|
|
456
|
+
l.element[l.fixPropOpt.avatar] ? (s(), U(x, {
|
|
451
457
|
key: 0,
|
|
452
458
|
shape: "square",
|
|
453
|
-
src: l
|
|
459
|
+
src: e(l.fixPropOpt.avatar ? l.element[l.fixPropOpt.avatar] : "")
|
|
454
460
|
}, null, 8, ["src"])) : (s(), f(
|
|
455
461
|
"div",
|
|
456
462
|
Il,
|
|
457
|
-
X(
|
|
463
|
+
X(l.element[l.fixPropOpt.name].slice(-2)),
|
|
458
464
|
1
|
|
459
465
|
/* TEXT */
|
|
460
466
|
))
|
|
@@ -521,7 +527,7 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
521
527
|
// 传['dep', 'user', 'role']则选择人员、部门和角色
|
|
522
528
|
default: () => ["dep"]
|
|
523
529
|
}
|
|
524
|
-
}, lt = (
|
|
530
|
+
}, lt = (l) => (Ne("data-v-f7a5199f"), l = l(), je(), l), Ul = { class: "left-pick-list" }, $l = {
|
|
525
531
|
key: 1,
|
|
526
532
|
class: "post-view-list"
|
|
527
533
|
}, Dl = { class: "checkText" }, zl = { class: "iconBox" }, El = { class: "name_number" }, Ml = { class: "title" }, Rl = {
|
|
@@ -530,7 +536,7 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
530
536
|
}, Nl = {
|
|
531
537
|
key: 1,
|
|
532
538
|
class: "checkText"
|
|
533
|
-
}, jl = /* @__PURE__ */ lt(() => /* @__PURE__ */
|
|
539
|
+
}, jl = /* @__PURE__ */ lt(() => /* @__PURE__ */ u(
|
|
534
540
|
"div",
|
|
535
541
|
{ class: "side" },
|
|
536
542
|
null,
|
|
@@ -545,7 +551,7 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
545
551
|
}, Jl = {
|
|
546
552
|
key: 1,
|
|
547
553
|
class: "checkText"
|
|
548
|
-
}, ea = /* @__PURE__ */ lt(() => /* @__PURE__ */
|
|
554
|
+
}, ea = /* @__PURE__ */ lt(() => /* @__PURE__ */ u(
|
|
549
555
|
"div",
|
|
550
556
|
{ class: "side" },
|
|
551
557
|
null,
|
|
@@ -557,7 +563,7 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
557
563
|
}, sa = ["onClick"], oa = {
|
|
558
564
|
key: 2,
|
|
559
565
|
class: "empty"
|
|
560
|
-
}, ia = /* @__PURE__ */ lt(() => /* @__PURE__ */
|
|
566
|
+
}, ia = /* @__PURE__ */ lt(() => /* @__PURE__ */ u(
|
|
561
567
|
"img",
|
|
562
568
|
{
|
|
563
569
|
src: et,
|
|
@@ -570,91 +576,91 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
570
576
|
__name: "GroupList",
|
|
571
577
|
props: tt,
|
|
572
578
|
emits: ["change", "check", "handChild"],
|
|
573
|
-
setup(
|
|
574
|
-
var
|
|
575
|
-
const
|
|
576
|
-
var
|
|
577
|
-
return ((
|
|
578
|
-
}), A =
|
|
579
|
-
var v,
|
|
580
|
-
const
|
|
581
|
-
return
|
|
582
|
-
}),
|
|
583
|
-
|
|
584
|
-
),
|
|
585
|
-
const
|
|
586
|
-
if (
|
|
587
|
-
return v[
|
|
579
|
+
setup(l, { emit: y }) {
|
|
580
|
+
var i, a;
|
|
581
|
+
const t = l, e = H(() => {
|
|
582
|
+
var p, o;
|
|
583
|
+
return ((p = t.handList) == null ? void 0 : p.length) === ((o = t.list) == null ? void 0 : o.length);
|
|
584
|
+
}), A = H(() => {
|
|
585
|
+
var v, N, F, j;
|
|
586
|
+
const p = (v = t.handList) == null ? void 0 : v.length, o = (N = t.list) == null ? void 0 : N.length;
|
|
587
|
+
return t.multiple ? d.value = t.handList.map((h) => h[t.fixPropOpt.id]) : x.value = (j = (F = t.handList) == null ? void 0 : F[0]) == null ? void 0 : j[t.fixPropOpt.id], p > 0 && p < o;
|
|
588
|
+
}), d = w(
|
|
589
|
+
t.handList.map((p) => p[t.fixPropOpt.id])
|
|
590
|
+
), x = w((a = (i = t.handList) == null ? void 0 : i[0]) == null ? void 0 : a[t.fixPropOpt.id]), c = y, b = (p) => {
|
|
591
|
+
const o = p ? t.list.map((v) => {
|
|
592
|
+
if (t.chooseType.includes(v[t.fixPropOpt.type].toLowerCase()) && v.available !== !1)
|
|
593
|
+
return v[t.fixPropOpt.id];
|
|
588
594
|
}) : [];
|
|
589
|
-
|
|
590
|
-
}, k = (
|
|
591
|
-
|
|
592
|
-
},
|
|
593
|
-
|
|
594
|
-
}, z = (
|
|
595
|
-
|
|
595
|
+
c("change", o, p ? t.list : []);
|
|
596
|
+
}, k = (p) => {
|
|
597
|
+
c("change", p, t.list);
|
|
598
|
+
}, C = (p) => {
|
|
599
|
+
c("change", p, t.list);
|
|
600
|
+
}, z = (p, o) => {
|
|
601
|
+
o || c("handChild", p);
|
|
596
602
|
};
|
|
597
|
-
return (
|
|
603
|
+
return (p, o) => (s(), f(
|
|
598
604
|
J,
|
|
599
605
|
null,
|
|
600
606
|
[
|
|
601
607
|
_(" 遍历list多选 "),
|
|
602
|
-
|
|
603
|
-
|
|
608
|
+
u("div", Ul, [
|
|
609
|
+
p.multiple && p.list && p.list.length ? (s(), U(P(Te), {
|
|
604
610
|
key: 0,
|
|
605
|
-
modelValue:
|
|
606
|
-
"onUpdate:modelValue":
|
|
611
|
+
modelValue: e.value,
|
|
612
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => e.value = v),
|
|
607
613
|
indeterminate: A.value,
|
|
608
|
-
onChange:
|
|
614
|
+
onChange: b
|
|
609
615
|
}, {
|
|
610
|
-
default:
|
|
616
|
+
default: S(() => [
|
|
611
617
|
le("全选")
|
|
612
618
|
]),
|
|
613
619
|
_: 1
|
|
614
620
|
/* STABLE */
|
|
615
621
|
}, 8, ["modelValue", "indeterminate"])) : _("v-if", !0),
|
|
616
|
-
|
|
617
|
-
|
|
622
|
+
p.list && p.list.length ? (s(), f("ul", $l, [
|
|
623
|
+
p.multiple ? (s(), U(P(He), {
|
|
618
624
|
key: 0,
|
|
619
|
-
modelValue:
|
|
620
|
-
"onUpdate:modelValue":
|
|
625
|
+
modelValue: d.value,
|
|
626
|
+
"onUpdate:modelValue": o[1] || (o[1] = (v) => d.value = v),
|
|
621
627
|
onChange: k
|
|
622
628
|
}, {
|
|
623
|
-
default:
|
|
629
|
+
default: S(() => [
|
|
624
630
|
(s(!0), f(
|
|
625
631
|
J,
|
|
626
632
|
null,
|
|
627
|
-
ge(
|
|
628
|
-
var
|
|
633
|
+
ge(p.list, (v) => {
|
|
634
|
+
var N;
|
|
629
635
|
return s(), f("li", {
|
|
630
|
-
key: v[
|
|
636
|
+
key: v[t.fixPropOpt.id]
|
|
631
637
|
}, [
|
|
632
|
-
|
|
633
|
-
v[
|
|
634
|
-
) && v.available !== !1 ? (s(),
|
|
638
|
+
p.chooseType.includes(
|
|
639
|
+
v[t.fixPropOpt.type].toLowerCase()
|
|
640
|
+
) && v.available !== !1 ? (s(), U(P(Te), {
|
|
635
641
|
key: 0,
|
|
636
|
-
label: v[
|
|
642
|
+
label: v[t.fixPropOpt.id],
|
|
637
643
|
disabled: v.available === !1
|
|
638
644
|
}, {
|
|
639
|
-
default:
|
|
640
|
-
|
|
641
|
-
|
|
645
|
+
default: S(() => [
|
|
646
|
+
u("div", Dl, [
|
|
647
|
+
u("div", zl, [
|
|
642
648
|
m(fe, {
|
|
643
|
-
fixTypeOpt:
|
|
644
|
-
fixPropOpt:
|
|
649
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
650
|
+
fixPropOpt: t.fixPropOpt,
|
|
645
651
|
element: v,
|
|
646
|
-
imageBaseUrl:
|
|
652
|
+
imageBaseUrl: t.imageBaseUrl
|
|
647
653
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
648
654
|
]),
|
|
649
|
-
|
|
650
|
-
|
|
655
|
+
u("div", El, [
|
|
656
|
+
u(
|
|
651
657
|
"div",
|
|
652
658
|
Ml,
|
|
653
|
-
X(v[
|
|
659
|
+
X(v[t.fixPropOpt.name]),
|
|
654
660
|
1
|
|
655
661
|
/* TEXT */
|
|
656
662
|
),
|
|
657
|
-
v[
|
|
663
|
+
v[t.fixPropOpt.type] === t.fixTypeOpt.group ? (s(), f(
|
|
658
664
|
"div",
|
|
659
665
|
Rl,
|
|
660
666
|
" (" + X(v.userCount) + ") ",
|
|
@@ -668,23 +674,23 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
668
674
|
/* DYNAMIC */
|
|
669
675
|
}, 1032, ["label", "disabled"])) : (s(), f("div", Nl, [
|
|
670
676
|
jl,
|
|
671
|
-
|
|
677
|
+
u("div", Hl, [
|
|
672
678
|
m(fe, {
|
|
673
|
-
fixTypeOpt:
|
|
674
|
-
fixPropOpt:
|
|
679
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
680
|
+
fixPropOpt: t.fixPropOpt,
|
|
675
681
|
element: v,
|
|
676
|
-
imageBaseUrl:
|
|
682
|
+
imageBaseUrl: t.imageBaseUrl
|
|
677
683
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
678
684
|
]),
|
|
679
|
-
|
|
680
|
-
|
|
685
|
+
u("div", Fl, [
|
|
686
|
+
u(
|
|
681
687
|
"div",
|
|
682
688
|
Wl,
|
|
683
|
-
X(v[
|
|
689
|
+
X(v[t.fixPropOpt.name]),
|
|
684
690
|
1
|
|
685
691
|
/* TEXT */
|
|
686
692
|
),
|
|
687
|
-
v[
|
|
693
|
+
v[t.fixPropOpt.type] === t.fixTypeOpt.group ? (s(), f(
|
|
688
694
|
"div",
|
|
689
695
|
Gl,
|
|
690
696
|
" (" + X(v.userCount) + ") ",
|
|
@@ -693,18 +699,18 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
693
699
|
)) : _("v-if", !0)
|
|
694
700
|
])
|
|
695
701
|
])),
|
|
696
|
-
v[
|
|
702
|
+
v[t.fixPropOpt.type] === t.fixTypeOpt.group && t.children ? (s(), f("span", {
|
|
697
703
|
key: 2,
|
|
698
704
|
class: ue(["nextLevel", {
|
|
699
|
-
"is-disabled": (
|
|
700
|
-
(
|
|
705
|
+
"is-disabled": (N = d.value) == null ? void 0 : N.find(
|
|
706
|
+
(F) => F === v[t.fixPropOpt.id]
|
|
701
707
|
)
|
|
702
708
|
}]),
|
|
703
|
-
onClick: (
|
|
704
|
-
var
|
|
709
|
+
onClick: (F) => {
|
|
710
|
+
var j;
|
|
705
711
|
return z(
|
|
706
712
|
v,
|
|
707
|
-
(
|
|
713
|
+
(j = d.value) == null ? void 0 : j.find((h) => h === v[t.fixPropOpt.id])
|
|
708
714
|
);
|
|
709
715
|
}
|
|
710
716
|
}, " 下级", 10, Yl)) : _("v-if", !0)
|
|
@@ -716,46 +722,46 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
716
722
|
]),
|
|
717
723
|
_: 1
|
|
718
724
|
/* STABLE */
|
|
719
|
-
}, 8, ["modelValue"])) : (s(),
|
|
725
|
+
}, 8, ["modelValue"])) : (s(), U(P(Fe), {
|
|
720
726
|
key: 1,
|
|
721
727
|
isIndeterminate: A.value,
|
|
722
|
-
modelValue:
|
|
723
|
-
"onUpdate:modelValue":
|
|
724
|
-
onChange:
|
|
728
|
+
modelValue: x.value,
|
|
729
|
+
"onUpdate:modelValue": o[2] || (o[2] = (v) => x.value = v),
|
|
730
|
+
onChange: C
|
|
725
731
|
}, {
|
|
726
|
-
default:
|
|
732
|
+
default: S(() => [
|
|
727
733
|
(s(!0), f(
|
|
728
734
|
J,
|
|
729
735
|
null,
|
|
730
|
-
ge(
|
|
731
|
-
var
|
|
736
|
+
ge(p.list, (v) => {
|
|
737
|
+
var N;
|
|
732
738
|
return s(), f("li", {
|
|
733
739
|
class: "w-full",
|
|
734
|
-
key: v[
|
|
740
|
+
key: v[t.fixPropOpt.id]
|
|
735
741
|
}, [
|
|
736
|
-
|
|
742
|
+
p.chooseType.includes(v[t.fixPropOpt.type].toLowerCase()) && v.available !== !1 ? (s(), U(P(We), {
|
|
737
743
|
key: 0,
|
|
738
|
-
label: v[
|
|
744
|
+
label: v[t.fixPropOpt.id]
|
|
739
745
|
}, {
|
|
740
|
-
default:
|
|
741
|
-
|
|
742
|
-
|
|
746
|
+
default: S(() => [
|
|
747
|
+
u("div", Ql, [
|
|
748
|
+
u("div", Xl, [
|
|
743
749
|
m(fe, {
|
|
744
|
-
fixTypeOpt:
|
|
745
|
-
fixPropOpt:
|
|
750
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
751
|
+
fixPropOpt: t.fixPropOpt,
|
|
746
752
|
element: v,
|
|
747
|
-
imageBaseUrl:
|
|
753
|
+
imageBaseUrl: t.imageBaseUrl
|
|
748
754
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
749
755
|
]),
|
|
750
|
-
|
|
751
|
-
|
|
756
|
+
u("div", ql, [
|
|
757
|
+
u(
|
|
752
758
|
"div",
|
|
753
759
|
Kl,
|
|
754
|
-
X(v[
|
|
760
|
+
X(v[t.fixPropOpt.name]),
|
|
755
761
|
1
|
|
756
762
|
/* TEXT */
|
|
757
763
|
),
|
|
758
|
-
v[
|
|
764
|
+
v[t.fixPropOpt.type] === t.fixTypeOpt.group ? (s(), f(
|
|
759
765
|
"div",
|
|
760
766
|
Zl,
|
|
761
767
|
" (" + X(v.userCount) + ") ",
|
|
@@ -769,23 +775,23 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
769
775
|
/* DYNAMIC */
|
|
770
776
|
}, 1032, ["label"])) : (s(), f("div", Jl, [
|
|
771
777
|
ea,
|
|
772
|
-
|
|
778
|
+
u("div", ta, [
|
|
773
779
|
m(fe, {
|
|
774
|
-
fixTypeOpt:
|
|
775
|
-
fixPropOpt:
|
|
780
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
781
|
+
fixPropOpt: t.fixPropOpt,
|
|
776
782
|
element: v,
|
|
777
|
-
imageBaseUrl:
|
|
783
|
+
imageBaseUrl: t.imageBaseUrl
|
|
778
784
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
779
785
|
]),
|
|
780
|
-
|
|
781
|
-
|
|
786
|
+
u("div", la, [
|
|
787
|
+
u(
|
|
782
788
|
"div",
|
|
783
789
|
aa,
|
|
784
|
-
X(v[
|
|
790
|
+
X(v[t.fixPropOpt.name]),
|
|
785
791
|
1
|
|
786
792
|
/* TEXT */
|
|
787
793
|
),
|
|
788
|
-
v[
|
|
794
|
+
v[t.fixPropOpt.type] === t.fixTypeOpt.group ? (s(), f(
|
|
789
795
|
"div",
|
|
790
796
|
na,
|
|
791
797
|
" (" + X(v.userCount) + ") ",
|
|
@@ -794,18 +800,18 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
794
800
|
)) : _("v-if", !0)
|
|
795
801
|
])
|
|
796
802
|
])),
|
|
797
|
-
v[
|
|
803
|
+
v[t.fixPropOpt.type] === t.fixTypeOpt.group && t.children ? (s(), f("span", {
|
|
798
804
|
key: 2,
|
|
799
805
|
class: ue(["nextLevel", {
|
|
800
|
-
"is-disabled": (
|
|
801
|
-
(
|
|
806
|
+
"is-disabled": (N = d.value) == null ? void 0 : N.find(
|
|
807
|
+
(F) => F === v[t.fixPropOpt.id]
|
|
802
808
|
)
|
|
803
809
|
}]),
|
|
804
|
-
onClick: (
|
|
805
|
-
var
|
|
810
|
+
onClick: (F) => {
|
|
811
|
+
var j;
|
|
806
812
|
return z(
|
|
807
813
|
v,
|
|
808
|
-
(
|
|
814
|
+
(j = d.value) == null ? void 0 : j.find((h) => h === v[t.fixPropOpt.id])
|
|
809
815
|
);
|
|
810
816
|
}
|
|
811
817
|
}, " 下级", 10, sa)) : _("v-if", !0)
|
|
@@ -820,10 +826,10 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
820
826
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
821
827
|
])) : (s(), f("div", oa, [
|
|
822
828
|
ia,
|
|
823
|
-
|
|
829
|
+
u(
|
|
824
830
|
"div",
|
|
825
831
|
null,
|
|
826
|
-
X(
|
|
832
|
+
X(t.emptyText),
|
|
827
833
|
1
|
|
828
834
|
/* TEXT */
|
|
829
835
|
)
|
|
@@ -835,13 +841,13 @@ const fe = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-4069f4f8"]]), et = "dat
|
|
|
835
841
|
));
|
|
836
842
|
}
|
|
837
843
|
});
|
|
838
|
-
const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (
|
|
844
|
+
const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (l) => (Ne("data-v-e03f0d36"), l = l(), je(), l), da = { class: "left-pick-list" }, ca = {
|
|
839
845
|
key: 1,
|
|
840
846
|
class: "post-view-list"
|
|
841
847
|
}, pa = { class: "iconBox" }, ha = {
|
|
842
848
|
key: 1,
|
|
843
849
|
class: "checkText"
|
|
844
|
-
}, fa = /* @__PURE__ */ at(() => /* @__PURE__ */
|
|
850
|
+
}, fa = /* @__PURE__ */ at(() => /* @__PURE__ */ u(
|
|
845
851
|
"div",
|
|
846
852
|
{ class: "side" },
|
|
847
853
|
null,
|
|
@@ -850,7 +856,7 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
850
856
|
)), va = { class: "iconBox" }, ga = { class: "title" }, ya = { class: "ik-picker-single" }, ma = { class: "iconBox" }, Aa = {
|
|
851
857
|
key: 1,
|
|
852
858
|
class: "checkText"
|
|
853
|
-
}, ka = /* @__PURE__ */ at(() => /* @__PURE__ */
|
|
859
|
+
}, ka = /* @__PURE__ */ at(() => /* @__PURE__ */ u(
|
|
854
860
|
"div",
|
|
855
861
|
{ class: "side" },
|
|
856
862
|
null,
|
|
@@ -859,7 +865,7 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
859
865
|
)), ba = { class: "iconBox" }, _a = { class: "title" }, xa = {
|
|
860
866
|
key: 2,
|
|
861
867
|
class: "empty"
|
|
862
|
-
}, Oa = /* @__PURE__ */ at(() => /* @__PURE__ */
|
|
868
|
+
}, Oa = /* @__PURE__ */ at(() => /* @__PURE__ */ u(
|
|
863
869
|
"img",
|
|
864
870
|
{
|
|
865
871
|
src: et,
|
|
@@ -872,75 +878,75 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
872
878
|
__name: "PostList",
|
|
873
879
|
props: tt,
|
|
874
880
|
emits: ["change", "check"],
|
|
875
|
-
setup(
|
|
876
|
-
var z,
|
|
877
|
-
const
|
|
878
|
-
var a,
|
|
879
|
-
return ((a =
|
|
880
|
-
}), A =
|
|
881
|
-
var
|
|
882
|
-
const a = (
|
|
883
|
-
return
|
|
884
|
-
}),
|
|
885
|
-
|
|
886
|
-
),
|
|
887
|
-
const
|
|
888
|
-
|
|
881
|
+
setup(l, { emit: y }) {
|
|
882
|
+
var z, i;
|
|
883
|
+
const t = l, e = H(() => {
|
|
884
|
+
var a, p;
|
|
885
|
+
return ((a = t.handList) == null ? void 0 : a.length) === ((p = t.list) == null ? void 0 : p.length);
|
|
886
|
+
}), A = H(() => {
|
|
887
|
+
var o, v, N, F;
|
|
888
|
+
const a = (o = t.handList) == null ? void 0 : o.length, p = (v = t.list) == null ? void 0 : v.length;
|
|
889
|
+
return t.multiple ? d.value = t.handList.map((j) => j[t.fixPropOpt.id]) : x.value = (F = (N = t.handList) == null ? void 0 : N[0]) == null ? void 0 : F[t.fixPropOpt.id], a > 0 && a < p;
|
|
890
|
+
}), d = w(
|
|
891
|
+
t.handList.map((a) => a[t.fixPropOpt.id])
|
|
892
|
+
), x = w((i = (z = t.handList) == null ? void 0 : z[0]) == null ? void 0 : i[t.fixPropOpt.id]), c = y, b = (a) => {
|
|
893
|
+
const p = a ? t.list.map((o) => o[t.fixPropOpt.id]) : [];
|
|
894
|
+
c("change", p, a ? t.list : []);
|
|
889
895
|
}, k = (a) => {
|
|
890
|
-
|
|
891
|
-
},
|
|
892
|
-
|
|
896
|
+
c("change", a, t.list);
|
|
897
|
+
}, C = (a) => {
|
|
898
|
+
c("change", a, t.list);
|
|
893
899
|
};
|
|
894
|
-
return (a,
|
|
900
|
+
return (a, p) => (s(), f(
|
|
895
901
|
J,
|
|
896
902
|
null,
|
|
897
903
|
[
|
|
898
904
|
_(" 遍历list多选 "),
|
|
899
|
-
|
|
900
|
-
a.multiple && a.chooseType.includes("post") && a.list && a.list.length ? (s(),
|
|
905
|
+
u("div", da, [
|
|
906
|
+
a.multiple && a.chooseType.includes("post") && a.list && a.list.length ? (s(), U(P(Te), {
|
|
901
907
|
key: 0,
|
|
902
|
-
modelValue:
|
|
903
|
-
"onUpdate:modelValue":
|
|
908
|
+
modelValue: e.value,
|
|
909
|
+
"onUpdate:modelValue": p[0] || (p[0] = (o) => e.value = o),
|
|
904
910
|
indeterminate: A.value,
|
|
905
|
-
onChange:
|
|
911
|
+
onChange: b
|
|
906
912
|
}, {
|
|
907
|
-
default:
|
|
913
|
+
default: S(() => [
|
|
908
914
|
le("全选")
|
|
909
915
|
]),
|
|
910
916
|
_: 1
|
|
911
917
|
/* STABLE */
|
|
912
918
|
}, 8, ["modelValue", "indeterminate"])) : _("v-if", !0),
|
|
913
919
|
a.list && a.list.length ? (s(), f("ul", ca, [
|
|
914
|
-
a.multiple ? (s(),
|
|
920
|
+
a.multiple ? (s(), U(P(He), {
|
|
915
921
|
key: 0,
|
|
916
|
-
modelValue:
|
|
917
|
-
"onUpdate:modelValue":
|
|
922
|
+
modelValue: d.value,
|
|
923
|
+
"onUpdate:modelValue": p[1] || (p[1] = (o) => d.value = o),
|
|
918
924
|
onChange: k
|
|
919
925
|
}, {
|
|
920
|
-
default:
|
|
926
|
+
default: S(() => [
|
|
921
927
|
(s(!0), f(
|
|
922
928
|
J,
|
|
923
929
|
null,
|
|
924
|
-
ge(a.list, (
|
|
925
|
-
key:
|
|
930
|
+
ge(a.list, (o) => (s(), f("li", {
|
|
931
|
+
key: o[t.fixPropOpt.id]
|
|
926
932
|
}, [
|
|
927
|
-
a.chooseType.includes(
|
|
933
|
+
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (s(), U(P(Te), {
|
|
928
934
|
key: 0,
|
|
929
|
-
label:
|
|
935
|
+
label: o[t.fixPropOpt.id]
|
|
930
936
|
}, {
|
|
931
|
-
default:
|
|
932
|
-
|
|
937
|
+
default: S(() => [
|
|
938
|
+
u("div", pa, [
|
|
933
939
|
m(fe, {
|
|
934
|
-
fixTypeOpt:
|
|
935
|
-
fixPropOpt:
|
|
936
|
-
element:
|
|
937
|
-
imageBaseUrl:
|
|
940
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
941
|
+
fixPropOpt: t.fixPropOpt,
|
|
942
|
+
element: o,
|
|
943
|
+
imageBaseUrl: t.imageBaseUrl
|
|
938
944
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
939
945
|
]),
|
|
940
|
-
|
|
946
|
+
u(
|
|
941
947
|
"p",
|
|
942
948
|
null,
|
|
943
|
-
X(
|
|
949
|
+
X(o[t.fixPropOpt.name]),
|
|
944
950
|
1
|
|
945
951
|
/* TEXT */
|
|
946
952
|
)
|
|
@@ -949,18 +955,18 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
949
955
|
/* DYNAMIC */
|
|
950
956
|
}, 1032, ["label"])) : (s(), f("div", ha, [
|
|
951
957
|
fa,
|
|
952
|
-
|
|
958
|
+
u("div", va, [
|
|
953
959
|
m(fe, {
|
|
954
|
-
fixTypeOpt:
|
|
955
|
-
fixPropOpt:
|
|
956
|
-
element:
|
|
957
|
-
imageBaseUrl:
|
|
960
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
961
|
+
fixPropOpt: t.fixPropOpt,
|
|
962
|
+
element: o,
|
|
963
|
+
imageBaseUrl: t.imageBaseUrl
|
|
958
964
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
959
965
|
]),
|
|
960
|
-
|
|
966
|
+
u(
|
|
961
967
|
"div",
|
|
962
968
|
ga,
|
|
963
|
-
X(
|
|
969
|
+
X(o[t.fixPropOpt.name]),
|
|
964
970
|
1
|
|
965
971
|
/* TEXT */
|
|
966
972
|
)
|
|
@@ -972,39 +978,39 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
972
978
|
]),
|
|
973
979
|
_: 1
|
|
974
980
|
/* STABLE */
|
|
975
|
-
}, 8, ["modelValue"])) : (s(),
|
|
981
|
+
}, 8, ["modelValue"])) : (s(), U(P(Fe), {
|
|
976
982
|
key: 1,
|
|
977
983
|
isIndeterminate: A.value,
|
|
978
|
-
modelValue:
|
|
979
|
-
"onUpdate:modelValue":
|
|
980
|
-
onChange:
|
|
984
|
+
modelValue: x.value,
|
|
985
|
+
"onUpdate:modelValue": p[2] || (p[2] = (o) => x.value = o),
|
|
986
|
+
onChange: C
|
|
981
987
|
}, {
|
|
982
|
-
default:
|
|
988
|
+
default: S(() => [
|
|
983
989
|
(s(!0), f(
|
|
984
990
|
J,
|
|
985
991
|
null,
|
|
986
|
-
ge(a.list, (
|
|
992
|
+
ge(a.list, (o) => (s(), f("li", {
|
|
987
993
|
class: "w-full",
|
|
988
|
-
key:
|
|
994
|
+
key: o[t.fixPropOpt.id]
|
|
989
995
|
}, [
|
|
990
|
-
a.chooseType.includes(
|
|
996
|
+
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (s(), U(P(We), {
|
|
991
997
|
key: 0,
|
|
992
|
-
label:
|
|
998
|
+
label: o[t.fixPropOpt.id]
|
|
993
999
|
}, {
|
|
994
|
-
default:
|
|
995
|
-
|
|
996
|
-
|
|
1000
|
+
default: S(() => [
|
|
1001
|
+
u("div", ya, [
|
|
1002
|
+
u("div", ma, [
|
|
997
1003
|
m(fe, {
|
|
998
|
-
fixTypeOpt:
|
|
999
|
-
fixPropOpt:
|
|
1000
|
-
element:
|
|
1001
|
-
imageBaseUrl:
|
|
1004
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
1005
|
+
fixPropOpt: t.fixPropOpt,
|
|
1006
|
+
element: o,
|
|
1007
|
+
imageBaseUrl: t.imageBaseUrl
|
|
1002
1008
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1003
1009
|
]),
|
|
1004
|
-
|
|
1010
|
+
u(
|
|
1005
1011
|
"p",
|
|
1006
1012
|
null,
|
|
1007
|
-
X(
|
|
1013
|
+
X(o[t.fixPropOpt.name]),
|
|
1008
1014
|
1
|
|
1009
1015
|
/* TEXT */
|
|
1010
1016
|
)
|
|
@@ -1014,18 +1020,18 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
1014
1020
|
/* DYNAMIC */
|
|
1015
1021
|
}, 1032, ["label"])) : (s(), f("div", Aa, [
|
|
1016
1022
|
ka,
|
|
1017
|
-
|
|
1023
|
+
u("div", ba, [
|
|
1018
1024
|
m(fe, {
|
|
1019
|
-
fixTypeOpt:
|
|
1020
|
-
fixPropOpt:
|
|
1021
|
-
element:
|
|
1022
|
-
imageBaseUrl:
|
|
1025
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
1026
|
+
fixPropOpt: t.fixPropOpt,
|
|
1027
|
+
element: o,
|
|
1028
|
+
imageBaseUrl: t.imageBaseUrl
|
|
1023
1029
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1024
1030
|
]),
|
|
1025
|
-
|
|
1031
|
+
u(
|
|
1026
1032
|
"div",
|
|
1027
1033
|
_a,
|
|
1028
|
-
X(
|
|
1034
|
+
X(o[t.fixPropOpt.name]),
|
|
1029
1035
|
1
|
|
1030
1036
|
/* TEXT */
|
|
1031
1037
|
)
|
|
@@ -1040,10 +1046,10 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
1040
1046
|
}, 8, ["isIndeterminate", "modelValue"]))
|
|
1041
1047
|
])) : (s(), f("div", xa, [
|
|
1042
1048
|
Oa,
|
|
1043
|
-
|
|
1049
|
+
u(
|
|
1044
1050
|
"div",
|
|
1045
1051
|
null,
|
|
1046
|
-
X(
|
|
1052
|
+
X(t.emptyText),
|
|
1047
1053
|
1
|
|
1048
1054
|
/* TEXT */
|
|
1049
1055
|
)
|
|
@@ -1055,13 +1061,13 @@ const ua = /* @__PURE__ */ se(ra, [["__scopeId", "data-v-f7a5199f"]]), at = (t)
|
|
|
1055
1061
|
));
|
|
1056
1062
|
}
|
|
1057
1063
|
});
|
|
1058
|
-
const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (
|
|
1064
|
+
const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (l) => (Ne("data-v-be3b3e45"), l = l(), je(), l), Ba = { class: "left-pick-list" }, Pa = {
|
|
1059
1065
|
key: 1,
|
|
1060
1066
|
class: "role-view-list"
|
|
1061
1067
|
}, La = { class: "iconBox" }, Sa = ["title"], Ta = {
|
|
1062
1068
|
key: 1,
|
|
1063
1069
|
class: "checkText"
|
|
1064
|
-
}, Ia = /* @__PURE__ */ nt(() => /* @__PURE__ */
|
|
1070
|
+
}, Ia = /* @__PURE__ */ nt(() => /* @__PURE__ */ u(
|
|
1065
1071
|
"div",
|
|
1066
1072
|
{ class: "side" },
|
|
1067
1073
|
null,
|
|
@@ -1070,7 +1076,7 @@ const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (t)
|
|
|
1070
1076
|
)), Va = { class: "iconBox" }, Ua = ["title"], $a = { class: "ik-picker-single" }, Da = { class: "iconBox" }, za = ["title"], Ea = {
|
|
1071
1077
|
key: 1,
|
|
1072
1078
|
class: "checkText"
|
|
1073
|
-
}, Ma = /* @__PURE__ */ nt(() => /* @__PURE__ */
|
|
1079
|
+
}, Ma = /* @__PURE__ */ nt(() => /* @__PURE__ */ u(
|
|
1074
1080
|
"div",
|
|
1075
1081
|
{ class: "side" },
|
|
1076
1082
|
null,
|
|
@@ -1079,7 +1085,7 @@ const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (t)
|
|
|
1079
1085
|
)), Ra = { class: "iconBox" }, Na = ["title"], ja = {
|
|
1080
1086
|
key: 2,
|
|
1081
1087
|
class: "empty"
|
|
1082
|
-
}, Ha = /* @__PURE__ */ nt(() => /* @__PURE__ */
|
|
1088
|
+
}, Ha = /* @__PURE__ */ nt(() => /* @__PURE__ */ u(
|
|
1083
1089
|
"img",
|
|
1084
1090
|
{
|
|
1085
1091
|
src: et,
|
|
@@ -1092,93 +1098,93 @@ const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (t)
|
|
|
1092
1098
|
__name: "RoleList",
|
|
1093
1099
|
props: tt,
|
|
1094
1100
|
emits: ["change", "check"],
|
|
1095
|
-
setup(
|
|
1096
|
-
var z,
|
|
1097
|
-
const
|
|
1098
|
-
var a,
|
|
1099
|
-
return ((a =
|
|
1100
|
-
}), A =
|
|
1101
|
-
var
|
|
1102
|
-
const a = (
|
|
1103
|
-
return
|
|
1104
|
-
}),
|
|
1105
|
-
|
|
1106
|
-
),
|
|
1107
|
-
const
|
|
1108
|
-
|
|
1101
|
+
setup(l, { emit: y }) {
|
|
1102
|
+
var z, i;
|
|
1103
|
+
const t = l, e = H(() => {
|
|
1104
|
+
var a, p;
|
|
1105
|
+
return ((a = t.handList) == null ? void 0 : a.length) === ((p = t.list) == null ? void 0 : p.length);
|
|
1106
|
+
}), A = H(() => {
|
|
1107
|
+
var o, v, N, F;
|
|
1108
|
+
const a = (o = t.handList) == null ? void 0 : o.length, p = (v = t.list) == null ? void 0 : v.length;
|
|
1109
|
+
return t.multiple ? d.value = t.handList.map((j) => j[t.fixPropOpt.id]) : x.value = (F = (N = t.handList) == null ? void 0 : N[0]) == null ? void 0 : F[t.fixPropOpt.id], a > 0 && a < p;
|
|
1110
|
+
}), d = w(
|
|
1111
|
+
t.handList.map((a) => a[t.fixPropOpt.id])
|
|
1112
|
+
), x = w((i = (z = t.handList) == null ? void 0 : z[0]) == null ? void 0 : i[t.fixPropOpt.id]), c = y, b = (a) => {
|
|
1113
|
+
const p = a ? t.list.map((o) => o[t.fixPropOpt.id]) : [];
|
|
1114
|
+
c("change", p, a ? t.list : []);
|
|
1109
1115
|
}, k = (a) => {
|
|
1110
|
-
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1116
|
+
c("change", a, t.list);
|
|
1117
|
+
}, C = (a) => {
|
|
1118
|
+
c("change", a, t.list);
|
|
1113
1119
|
};
|
|
1114
|
-
return (a,
|
|
1120
|
+
return (a, p) => (s(), f(
|
|
1115
1121
|
J,
|
|
1116
1122
|
null,
|
|
1117
1123
|
[
|
|
1118
1124
|
_(" 遍历list多选 "),
|
|
1119
|
-
|
|
1120
|
-
a.multiple && a.chooseType.includes("role") && a.list && a.list.length ? (s(),
|
|
1125
|
+
u("div", Ba, [
|
|
1126
|
+
a.multiple && a.chooseType.includes("role") && a.list && a.list.length ? (s(), U(P(Te), {
|
|
1121
1127
|
key: 0,
|
|
1122
|
-
modelValue:
|
|
1123
|
-
"onUpdate:modelValue":
|
|
1128
|
+
modelValue: e.value,
|
|
1129
|
+
"onUpdate:modelValue": p[0] || (p[0] = (o) => e.value = o),
|
|
1124
1130
|
indeterminate: A.value,
|
|
1125
|
-
onChange:
|
|
1131
|
+
onChange: b
|
|
1126
1132
|
}, {
|
|
1127
|
-
default:
|
|
1133
|
+
default: S(() => [
|
|
1128
1134
|
le("全选")
|
|
1129
1135
|
]),
|
|
1130
1136
|
_: 1
|
|
1131
1137
|
/* STABLE */
|
|
1132
1138
|
}, 8, ["modelValue", "indeterminate"])) : _("v-if", !0),
|
|
1133
1139
|
a.list && a.list.length ? (s(), f("ul", Pa, [
|
|
1134
|
-
a.multiple ? (s(),
|
|
1140
|
+
a.multiple ? (s(), U(P(He), {
|
|
1135
1141
|
key: 0,
|
|
1136
|
-
modelValue:
|
|
1137
|
-
"onUpdate:modelValue":
|
|
1142
|
+
modelValue: d.value,
|
|
1143
|
+
"onUpdate:modelValue": p[1] || (p[1] = (o) => d.value = o),
|
|
1138
1144
|
onChange: k
|
|
1139
1145
|
}, {
|
|
1140
|
-
default:
|
|
1146
|
+
default: S(() => [
|
|
1141
1147
|
(s(!0), f(
|
|
1142
1148
|
J,
|
|
1143
1149
|
null,
|
|
1144
|
-
ge(a.list, (
|
|
1145
|
-
key:
|
|
1150
|
+
ge(a.list, (o) => (s(), f("li", {
|
|
1151
|
+
key: o[a.fixPropOpt.id]
|
|
1146
1152
|
}, [
|
|
1147
|
-
a.chooseType.includes(
|
|
1153
|
+
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (s(), U(P(Te), {
|
|
1148
1154
|
key: 0,
|
|
1149
|
-
label:
|
|
1150
|
-
value:
|
|
1151
|
-
disabled:
|
|
1155
|
+
label: o[a.fixPropOpt.id],
|
|
1156
|
+
value: o[a.fixPropOpt.id],
|
|
1157
|
+
disabled: o.disabled
|
|
1152
1158
|
}, {
|
|
1153
|
-
default:
|
|
1154
|
-
|
|
1159
|
+
default: S(() => [
|
|
1160
|
+
u("div", La, [
|
|
1155
1161
|
m(fe, {
|
|
1156
|
-
fixTypeOpt:
|
|
1157
|
-
fixPropOpt:
|
|
1158
|
-
element:
|
|
1159
|
-
imageBaseUrl:
|
|
1162
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
1163
|
+
fixPropOpt: t.fixPropOpt,
|
|
1164
|
+
element: o,
|
|
1165
|
+
imageBaseUrl: t.imageBaseUrl
|
|
1160
1166
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1161
1167
|
]),
|
|
1162
|
-
|
|
1163
|
-
title:
|
|
1164
|
-
}, X(
|
|
1168
|
+
u("p", {
|
|
1169
|
+
title: o[a.fixPropOpt.name]
|
|
1170
|
+
}, X(o[a.fixPropOpt.name]), 9, Sa)
|
|
1165
1171
|
]),
|
|
1166
1172
|
_: 2
|
|
1167
1173
|
/* DYNAMIC */
|
|
1168
1174
|
}, 1032, ["label", "value", "disabled"])) : (s(), f("div", Ta, [
|
|
1169
1175
|
Ia,
|
|
1170
|
-
|
|
1176
|
+
u("div", Va, [
|
|
1171
1177
|
m(fe, {
|
|
1172
|
-
fixTypeOpt:
|
|
1173
|
-
fixPropOpt:
|
|
1174
|
-
element:
|
|
1175
|
-
imageBaseUrl:
|
|
1178
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
1179
|
+
fixPropOpt: t.fixPropOpt,
|
|
1180
|
+
element: o,
|
|
1181
|
+
imageBaseUrl: t.imageBaseUrl
|
|
1176
1182
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1177
1183
|
]),
|
|
1178
|
-
|
|
1184
|
+
u("div", {
|
|
1179
1185
|
class: "title",
|
|
1180
|
-
title:
|
|
1181
|
-
}, X(
|
|
1186
|
+
title: o[a.fixPropOpt.name]
|
|
1187
|
+
}, X(o[a.fixPropOpt.name]), 9, Ua)
|
|
1182
1188
|
]))
|
|
1183
1189
|
]))),
|
|
1184
1190
|
128
|
|
@@ -1187,58 +1193,58 @@ const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (t)
|
|
|
1187
1193
|
]),
|
|
1188
1194
|
_: 1
|
|
1189
1195
|
/* STABLE */
|
|
1190
|
-
}, 8, ["modelValue"])) : (s(),
|
|
1196
|
+
}, 8, ["modelValue"])) : (s(), U(P(Fe), {
|
|
1191
1197
|
key: 1,
|
|
1192
1198
|
indeterminate: A.value,
|
|
1193
|
-
modelValue:
|
|
1194
|
-
"onUpdate:modelValue":
|
|
1195
|
-
onChange:
|
|
1199
|
+
modelValue: x.value,
|
|
1200
|
+
"onUpdate:modelValue": p[2] || (p[2] = (o) => x.value = o),
|
|
1201
|
+
onChange: C
|
|
1196
1202
|
}, {
|
|
1197
|
-
default:
|
|
1203
|
+
default: S(() => [
|
|
1198
1204
|
(s(!0), f(
|
|
1199
1205
|
J,
|
|
1200
1206
|
null,
|
|
1201
|
-
ge(a.list, (
|
|
1207
|
+
ge(a.list, (o) => (s(), f("li", {
|
|
1202
1208
|
class: "w-full",
|
|
1203
|
-
key:
|
|
1209
|
+
key: o[a.fixPropOpt.id]
|
|
1204
1210
|
}, [
|
|
1205
|
-
a.chooseType.includes(
|
|
1211
|
+
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (s(), U(P(We), {
|
|
1206
1212
|
key: 0,
|
|
1207
|
-
label:
|
|
1208
|
-
value:
|
|
1209
|
-
disabled:
|
|
1213
|
+
label: o[a.fixPropOpt.id],
|
|
1214
|
+
value: o[a.fixPropOpt.id],
|
|
1215
|
+
disabled: o.disabled
|
|
1210
1216
|
}, {
|
|
1211
|
-
default:
|
|
1212
|
-
|
|
1213
|
-
|
|
1217
|
+
default: S(() => [
|
|
1218
|
+
u("div", $a, [
|
|
1219
|
+
u("div", Da, [
|
|
1214
1220
|
m(fe, {
|
|
1215
|
-
fixTypeOpt:
|
|
1216
|
-
fixPropOpt:
|
|
1217
|
-
element:
|
|
1218
|
-
imageBaseUrl:
|
|
1221
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
1222
|
+
fixPropOpt: t.fixPropOpt,
|
|
1223
|
+
element: o,
|
|
1224
|
+
imageBaseUrl: t.imageBaseUrl
|
|
1219
1225
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1220
1226
|
]),
|
|
1221
|
-
|
|
1222
|
-
title:
|
|
1223
|
-
}, X(
|
|
1227
|
+
u("p", {
|
|
1228
|
+
title: o[a.fixPropOpt.name]
|
|
1229
|
+
}, X(o[a.fixPropOpt.name]), 9, za)
|
|
1224
1230
|
])
|
|
1225
1231
|
]),
|
|
1226
1232
|
_: 2
|
|
1227
1233
|
/* DYNAMIC */
|
|
1228
1234
|
}, 1032, ["label", "value", "disabled"])) : (s(), f("div", Ea, [
|
|
1229
1235
|
Ma,
|
|
1230
|
-
|
|
1236
|
+
u("div", Ra, [
|
|
1231
1237
|
m(fe, {
|
|
1232
|
-
fixTypeOpt:
|
|
1233
|
-
fixPropOpt:
|
|
1234
|
-
element:
|
|
1235
|
-
imageBaseUrl:
|
|
1238
|
+
fixTypeOpt: t.fixTypeOpt,
|
|
1239
|
+
fixPropOpt: t.fixPropOpt,
|
|
1240
|
+
element: o,
|
|
1241
|
+
imageBaseUrl: t.imageBaseUrl
|
|
1236
1242
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
1237
1243
|
]),
|
|
1238
|
-
|
|
1244
|
+
u("div", {
|
|
1239
1245
|
class: "title",
|
|
1240
|
-
title:
|
|
1241
|
-
}, X(
|
|
1246
|
+
title: o[a.fixPropOpt.name]
|
|
1247
|
+
}, X(o[a.fixPropOpt.name]), 9, Na)
|
|
1242
1248
|
]))
|
|
1243
1249
|
]))),
|
|
1244
1250
|
128
|
|
@@ -1250,10 +1256,10 @@ const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (t)
|
|
|
1250
1256
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1251
1257
|
])) : (s(), f("div", ja, [
|
|
1252
1258
|
Ha,
|
|
1253
|
-
|
|
1259
|
+
u(
|
|
1254
1260
|
"div",
|
|
1255
1261
|
null,
|
|
1256
|
-
X(
|
|
1262
|
+
X(t.emptyText),
|
|
1257
1263
|
1
|
|
1258
1264
|
/* TEXT */
|
|
1259
1265
|
)
|
|
@@ -1266,7 +1272,7 @@ const Ca = /* @__PURE__ */ se(wa, [["__scopeId", "data-v-e03f0d36"]]), nt = (t)
|
|
|
1266
1272
|
}
|
|
1267
1273
|
});
|
|
1268
1274
|
const Wa = /* @__PURE__ */ se(Fa, [["__scopeId", "data-v-be3b3e45"]]);
|
|
1269
|
-
var $e = /* @__PURE__ */ ((
|
|
1275
|
+
var $e = /* @__PURE__ */ ((l) => (l.group = "group", l.role = "role", l.post = "post", l))($e || {});
|
|
1270
1276
|
const Ga = {
|
|
1271
1277
|
// 是否允许选择子集
|
|
1272
1278
|
children: {
|
|
@@ -1359,11 +1365,11 @@ const Ga = {
|
|
|
1359
1365
|
tabs: {
|
|
1360
1366
|
type: Array,
|
|
1361
1367
|
// prop校验
|
|
1362
|
-
validator: (
|
|
1363
|
-
if (
|
|
1368
|
+
validator: (l) => {
|
|
1369
|
+
if (l === void 0)
|
|
1364
1370
|
return !0;
|
|
1365
|
-
if (Array.isArray(
|
|
1366
|
-
if (!(
|
|
1371
|
+
if (Array.isArray(l)) {
|
|
1372
|
+
if (!(l != null && l.length))
|
|
1367
1373
|
return !1;
|
|
1368
1374
|
} else
|
|
1369
1375
|
return console.error("IkingPicker参数错误:tabs必须是Array类型"), !1;
|
|
@@ -1437,43 +1443,43 @@ const Ga = {
|
|
|
1437
1443
|
type: Boolean,
|
|
1438
1444
|
default: !1
|
|
1439
1445
|
}
|
|
1440
|
-
}, ht = (
|
|
1446
|
+
}, ht = (l) => {
|
|
1441
1447
|
const y = window.location.search;
|
|
1442
|
-
return new URLSearchParams(y).get(
|
|
1443
|
-
}, Ya = (
|
|
1448
|
+
return new URLSearchParams(y).get(l);
|
|
1449
|
+
}, Ya = (l) => {
|
|
1444
1450
|
const y = De.local.getItem("x_domain");
|
|
1445
|
-
y && (
|
|
1446
|
-
}, Qa = (
|
|
1447
|
-
var
|
|
1451
|
+
y && (l["X-DOMAIN"] = y);
|
|
1452
|
+
}, Qa = (l) => {
|
|
1453
|
+
var t;
|
|
1448
1454
|
const y = ht("domain");
|
|
1449
1455
|
if (y) {
|
|
1450
|
-
|
|
1451
|
-
const
|
|
1452
|
-
y === "APPLICATION" && (
|
|
1456
|
+
l["X-DOMAIN"] = y;
|
|
1457
|
+
const e = ht("code");
|
|
1458
|
+
y === "APPLICATION" && (l["X-APP"] = e);
|
|
1453
1459
|
} else
|
|
1454
|
-
Ya(
|
|
1455
|
-
(
|
|
1456
|
-
}, Xa = (
|
|
1457
|
-
const
|
|
1458
|
-
var
|
|
1459
|
-
const { url:
|
|
1460
|
-
...
|
|
1461
|
-
parentDepartmentId:
|
|
1462
|
-
name:
|
|
1460
|
+
Ya(l);
|
|
1461
|
+
(t = De.local.getItem("tenant")) == null || t.code;
|
|
1462
|
+
}, Xa = (l, y) => {
|
|
1463
|
+
const t = w([]), e = async (d, x) => {
|
|
1464
|
+
var $, T;
|
|
1465
|
+
const { url: c, methods: b, headers: k, param: C } = l.value || {}, z = {
|
|
1466
|
+
...C || {},
|
|
1467
|
+
parentDepartmentId: d || "",
|
|
1468
|
+
name: x || "",
|
|
1463
1469
|
rootDepartmentOnly: y.rootDepartmentOnly,
|
|
1464
1470
|
dataScopeOnly: y.dataScopeOnly
|
|
1465
|
-
},
|
|
1466
|
-
method:
|
|
1467
|
-
url:
|
|
1471
|
+
}, i = {
|
|
1472
|
+
method: b,
|
|
1473
|
+
url: c,
|
|
1468
1474
|
headers: {
|
|
1469
1475
|
"Content-Type": "application/json;charset=UTF-8",
|
|
1470
1476
|
...k
|
|
1471
1477
|
},
|
|
1472
1478
|
data: JSON.stringify(z)
|
|
1473
1479
|
};
|
|
1474
|
-
Qa(
|
|
1475
|
-
const a = await Dt(
|
|
1476
|
-
if (!
|
|
1480
|
+
Qa(i.headers);
|
|
1481
|
+
const a = await Dt(i), { success: p, data: o } = a.data;
|
|
1482
|
+
if (!p)
|
|
1477
1483
|
return {
|
|
1478
1484
|
groupList: [],
|
|
1479
1485
|
roleList: [],
|
|
@@ -1484,45 +1490,45 @@ const Ga = {
|
|
|
1484
1490
|
};
|
|
1485
1491
|
const {
|
|
1486
1492
|
departments: v,
|
|
1487
|
-
roles:
|
|
1488
|
-
posts:
|
|
1489
|
-
users:
|
|
1493
|
+
roles: N,
|
|
1494
|
+
posts: F,
|
|
1495
|
+
users: j,
|
|
1490
1496
|
rootOrganization: h,
|
|
1491
1497
|
rootDepartment: oe
|
|
1492
|
-
} =
|
|
1493
|
-
return
|
|
1498
|
+
} = o, B = h || oe;
|
|
1499
|
+
return t.value.length === 0 && (t.value[0] = y.org ? {
|
|
1494
1500
|
...y.org,
|
|
1495
1501
|
id: y.elementId,
|
|
1496
|
-
elementType: (
|
|
1502
|
+
elementType: (T = ($ = y.org) == null ? void 0 : $.elementType) == null ? void 0 : T.toLocaleUpperCase()
|
|
1497
1503
|
} : {
|
|
1498
|
-
...
|
|
1499
|
-
id:
|
|
1504
|
+
...B,
|
|
1505
|
+
id: B.elementId
|
|
1500
1506
|
}), {
|
|
1501
1507
|
groupList: ae.cloneDeep(v),
|
|
1502
|
-
roleList: ae.cloneDeep(
|
|
1503
|
-
postList: ae.cloneDeep(
|
|
1504
|
-
userList: ae.cloneDeep(
|
|
1508
|
+
roleList: ae.cloneDeep(N),
|
|
1509
|
+
postList: ae.cloneDeep(F),
|
|
1510
|
+
userList: ae.cloneDeep(j),
|
|
1505
1511
|
rootOrganization: h,
|
|
1506
1512
|
rootDepartment: oe
|
|
1507
1513
|
};
|
|
1508
1514
|
};
|
|
1509
1515
|
return {
|
|
1510
|
-
handData:
|
|
1511
|
-
handSetChild: (
|
|
1512
|
-
|
|
1516
|
+
handData: e,
|
|
1517
|
+
handSetChild: (d, x) => {
|
|
1518
|
+
e(d == null ? void 0 : d.elementId, x);
|
|
1513
1519
|
},
|
|
1514
|
-
bannerList:
|
|
1520
|
+
bannerList: t
|
|
1515
1521
|
};
|
|
1516
1522
|
}, qa = {
|
|
1517
1523
|
shadow: "hover",
|
|
1518
1524
|
class: "sel-list"
|
|
1519
|
-
}, Ka = { key: 0 }, Za = /* @__PURE__ */
|
|
1525
|
+
}, Ka = { key: 0 }, Za = /* @__PURE__ */ u(
|
|
1520
1526
|
"div",
|
|
1521
1527
|
{ class: "split-div" },
|
|
1522
1528
|
null,
|
|
1523
1529
|
-1
|
|
1524
1530
|
/* HOISTED */
|
|
1525
|
-
), Ja = { class: "choose-list" }, en = { class: "choose-item" }, tn = /* @__PURE__ */
|
|
1531
|
+
), Ja = { class: "choose-list" }, en = { class: "choose-item" }, tn = /* @__PURE__ */ u(
|
|
1526
1532
|
"div",
|
|
1527
1533
|
null,
|
|
1528
1534
|
"已选",
|
|
@@ -1532,61 +1538,61 @@ const Ga = {
|
|
|
1532
1538
|
__name: "picker",
|
|
1533
1539
|
props: Ga,
|
|
1534
1540
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1535
|
-
setup(
|
|
1541
|
+
setup(l, { expose: y, emit: t }) {
|
|
1536
1542
|
gt((n) => ({
|
|
1537
1543
|
d3f7bd36: Ae.value
|
|
1538
1544
|
}));
|
|
1539
|
-
const
|
|
1545
|
+
const e = l, A = w(""), d = w(""), x = w([]), c = w([]), b = w([]), k = w([]), C = w(!1), z = H(() => W.value.includes("user") ? c.value.concat(x.value) : c.value);
|
|
1540
1546
|
he(
|
|
1541
|
-
() =>
|
|
1547
|
+
() => e.api,
|
|
1542
1548
|
() => {
|
|
1543
|
-
|
|
1549
|
+
e.show && $("");
|
|
1544
1550
|
}
|
|
1545
1551
|
);
|
|
1546
|
-
const
|
|
1552
|
+
const i = H(() => ({
|
|
1547
1553
|
name: "name",
|
|
1548
1554
|
type: "type",
|
|
1549
1555
|
id: "id",
|
|
1550
1556
|
avatar: "avatar",
|
|
1551
|
-
...
|
|
1552
|
-
})), a =
|
|
1557
|
+
...e.propOption
|
|
1558
|
+
})), a = H(() => ({
|
|
1553
1559
|
user: "USER",
|
|
1554
1560
|
role: "ROLE",
|
|
1555
1561
|
post: "POST",
|
|
1556
1562
|
group: "DEPT",
|
|
1557
|
-
...
|
|
1558
|
-
})),
|
|
1559
|
-
|
|
1560
|
-
const
|
|
1561
|
-
var
|
|
1562
|
-
g.disabled = ((
|
|
1563
|
-
(G) => G[
|
|
1564
|
-
)) == null ? void 0 :
|
|
1565
|
-
}), n),
|
|
1566
|
-
var n, g,
|
|
1567
|
-
|
|
1563
|
+
...e.typeOption
|
|
1564
|
+
})), p = w([]), o = Xa(At(e, "api"), e), v = o.handData, N = o.bannerList;
|
|
1565
|
+
e.immediate && v(d.value, A.value);
|
|
1566
|
+
const F = (n) => (n.forEach((g) => {
|
|
1567
|
+
var L, V;
|
|
1568
|
+
g.disabled = ((V = (L = e.modelValue) == null ? void 0 : L.find(
|
|
1569
|
+
(G) => G[i.value.id] === g[i.value.id]
|
|
1570
|
+
)) == null ? void 0 : V.disabled) || !1;
|
|
1571
|
+
}), n), j = async () => {
|
|
1572
|
+
var n, g, L, V, G, ke, Xe, st;
|
|
1573
|
+
C.value = !0;
|
|
1568
1574
|
try {
|
|
1569
|
-
if ((n =
|
|
1570
|
-
|
|
1571
|
-
(be) => be[
|
|
1572
|
-
),
|
|
1573
|
-
(be) => be[
|
|
1574
|
-
),
|
|
1575
|
-
(be) => be[
|
|
1576
|
-
), k.value = (st =
|
|
1577
|
-
(be) => be[
|
|
1578
|
-
), ee(),
|
|
1575
|
+
if ((n = e.groupList) != null && n.length || (g = e.userList) != null && g.length || (L = e.roleList) != null && L.length || (V = e.postList) != null && V.length) {
|
|
1576
|
+
x.value = (G = e.userList) == null ? void 0 : G.filter(
|
|
1577
|
+
(be) => be[i.value.name].includes(A.value)
|
|
1578
|
+
), c.value = (ke = e.groupList) == null ? void 0 : ke.filter(
|
|
1579
|
+
(be) => be[i.value.name].includes(A.value)
|
|
1580
|
+
), b.value = (Xe = e.roleList) == null ? void 0 : Xe.filter(
|
|
1581
|
+
(be) => be[i.value.name].includes(A.value)
|
|
1582
|
+
), k.value = (st = e.postList) == null ? void 0 : st.filter(
|
|
1583
|
+
(be) => be[i.value.name].includes(A.value)
|
|
1584
|
+
), ee(), C.value = !1;
|
|
1579
1585
|
return;
|
|
1580
1586
|
}
|
|
1581
|
-
const pe = await v(
|
|
1587
|
+
const pe = await v(d.value, A.value);
|
|
1582
1588
|
try {
|
|
1583
|
-
|
|
1589
|
+
x.value = F((pe == null ? void 0 : pe.userList) || []), c.value = F((pe == null ? void 0 : pe.groupList) || []), b.value = F((pe == null ? void 0 : pe.roleList) || []), k.value = F((pe == null ? void 0 : pe.postList) || []);
|
|
1584
1590
|
} catch (be) {
|
|
1585
|
-
|
|
1591
|
+
C.value = !1, console.info("error: ", be);
|
|
1586
1592
|
}
|
|
1587
|
-
ee(),
|
|
1593
|
+
ee(), C.value = !1;
|
|
1588
1594
|
} catch {
|
|
1589
|
-
|
|
1595
|
+
C.value = !1;
|
|
1590
1596
|
}
|
|
1591
1597
|
}, h = ot({
|
|
1592
1598
|
//组织架构
|
|
@@ -1604,90 +1610,90 @@ const Ga = {
|
|
|
1604
1610
|
}), oe = ot({
|
|
1605
1611
|
indeterminate: !1,
|
|
1606
1612
|
checkAll: 0
|
|
1607
|
-
}),
|
|
1608
|
-
const n = Array.from(h.group.values()), g = Array.from(h.role.values()),
|
|
1609
|
-
return
|
|
1610
|
-
list: [...g, ...
|
|
1613
|
+
}), B = (n) => h.group.has(n) || h.user.has(n) || h.role.has(n) || h.post.has(n), $ = $t.debounce(j, 300), T = H(() => {
|
|
1614
|
+
const n = Array.from(h.group.values()), g = Array.from(h.role.values()), L = Array.from(h.user.values()), V = Array.from(h.post.values());
|
|
1615
|
+
return p.value = [...g, ...V, ...L, ...n], {
|
|
1616
|
+
list: [...g, ...L, ...V, ...n],
|
|
1611
1617
|
role: {
|
|
1612
1618
|
list: g,
|
|
1613
1619
|
len: g.length
|
|
1614
1620
|
},
|
|
1615
1621
|
user: {
|
|
1616
|
-
list:
|
|
1617
|
-
len:
|
|
1622
|
+
list: L,
|
|
1623
|
+
len: L.length
|
|
1618
1624
|
},
|
|
1619
1625
|
post: {
|
|
1620
|
-
list:
|
|
1621
|
-
len:
|
|
1626
|
+
list: V,
|
|
1627
|
+
len: V.length
|
|
1622
1628
|
},
|
|
1623
1629
|
groups: {
|
|
1624
1630
|
list: n,
|
|
1625
1631
|
len: n.length
|
|
1626
1632
|
}
|
|
1627
1633
|
};
|
|
1628
|
-
}),
|
|
1629
|
-
const n =
|
|
1634
|
+
}), W = H(() => {
|
|
1635
|
+
const n = e.chooseType.map((L) => L.toLocaleLowerCase());
|
|
1630
1636
|
let g = [...n];
|
|
1631
1637
|
return n.includes("dep") && (g = [...g, "dept"]), n.includes("dep_user") && (g = [...g, "user"]), g;
|
|
1632
|
-
}),
|
|
1633
|
-
|
|
1638
|
+
}), M = w([]), ie = (n) => {
|
|
1639
|
+
M.value = n, M.value.forEach((g) => {
|
|
1634
1640
|
g.readonly = g == null ? void 0 : g.disabled;
|
|
1635
1641
|
});
|
|
1636
|
-
},
|
|
1637
|
-
var
|
|
1638
|
-
const g = (
|
|
1642
|
+
}, E = t, q = w(!1), ee = (n = !1) => {
|
|
1643
|
+
var L;
|
|
1644
|
+
const g = (L = e == null ? void 0 : e.userList) != null && L.length ? ae.cloneDeep([...e == null ? void 0 : e.userList, ...e == null ? void 0 : e.groupList]) : [...c.value, ...x.value];
|
|
1639
1645
|
return !n && ie(g), g;
|
|
1640
1646
|
};
|
|
1641
1647
|
he(
|
|
1642
|
-
() =>
|
|
1648
|
+
() => e.show,
|
|
1643
1649
|
async (n) => {
|
|
1644
1650
|
var g;
|
|
1645
1651
|
if (q.value = n, n) {
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1648
|
-
for (const G of
|
|
1649
|
-
|
|
1650
|
-
const
|
|
1651
|
-
oe.indeterminate = !!(
|
|
1652
|
+
d.value = ((g = e.org) == null ? void 0 : g.elementId) || e.orgPid, !e.userList.length && !e.groupList.length && !e.roleList.length && !e.postList.length ? await j() : (x.value = e.userList, c.value = e.groupList, b.value = e.roleList, k.value = e.postList), h.trans = [], oe.checkAll = 0, oe.indeterminate = !1;
|
|
1653
|
+
const L = ee(!0);
|
|
1654
|
+
for (const G of L)
|
|
1655
|
+
B(G[i.value.id]) && h.trans.push(G[i.value.id]);
|
|
1656
|
+
const V = L.length === h.trans.length;
|
|
1657
|
+
oe.indeterminate = !!(L.length && !V), oe.checkAll = Number(L.length && V), it(() => {
|
|
1652
1658
|
var G;
|
|
1653
|
-
(G =
|
|
1654
|
-
me(ke),
|
|
1655
|
-
}) :
|
|
1659
|
+
(G = e.modelValue) != null && G.length ? e.modelValue.forEach((ke) => {
|
|
1660
|
+
me(ke), e.multiple ? h.trans.push(ke[i.value.id]) : h.single = ke[i.value.id];
|
|
1661
|
+
}) : D();
|
|
1656
1662
|
});
|
|
1657
1663
|
} else
|
|
1658
|
-
|
|
1664
|
+
D();
|
|
1659
1665
|
}
|
|
1660
1666
|
), rt(() => {
|
|
1661
1667
|
let n;
|
|
1662
|
-
n =
|
|
1668
|
+
n = M.value.length;
|
|
1663
1669
|
const g = h.trans.length;
|
|
1664
1670
|
oe.indeterminate = h.trans.length ? g !== n : !1, oe.checkAll = +(n !== 0 && g === n);
|
|
1665
1671
|
}), he(
|
|
1666
|
-
() =>
|
|
1672
|
+
() => e.modelValue,
|
|
1667
1673
|
(n) => {
|
|
1668
1674
|
n != null && n.length ? n.forEach((g) => {
|
|
1669
|
-
me(g),
|
|
1670
|
-
}) :
|
|
1675
|
+
me(g), e.multiple ? h.trans.push(g[i.value.id]) : h.single = g[i.value.id];
|
|
1676
|
+
}) : D();
|
|
1671
1677
|
}
|
|
1672
1678
|
);
|
|
1673
1679
|
const re = (n) => {
|
|
1674
1680
|
var g;
|
|
1675
1681
|
if (n) {
|
|
1676
|
-
if (h.single = "", n[
|
|
1677
|
-
const
|
|
1678
|
-
(
|
|
1682
|
+
if (h.single = "", n[i.value.id]) {
|
|
1683
|
+
const L = (g = h.trans) == null ? void 0 : g.findIndex(
|
|
1684
|
+
(V) => V === n[i.value.id]
|
|
1679
1685
|
);
|
|
1680
|
-
|
|
1686
|
+
L !== -1 && h.trans.splice(L, 1);
|
|
1681
1687
|
}
|
|
1682
|
-
switch (n[
|
|
1688
|
+
switch (n[i.value.type]) {
|
|
1683
1689
|
case a.value.user:
|
|
1684
|
-
return h.user.delete(n[
|
|
1690
|
+
return h.user.delete(n[i.value.id]);
|
|
1685
1691
|
case a.value.role:
|
|
1686
|
-
return h.role.delete(n[
|
|
1692
|
+
return h.role.delete(n[i.value.id]);
|
|
1687
1693
|
case a.value.post:
|
|
1688
|
-
return h.post.delete(n[
|
|
1694
|
+
return h.post.delete(n[i.value.id]);
|
|
1689
1695
|
case a.value.group:
|
|
1690
|
-
return h.group.delete(n[
|
|
1696
|
+
return h.group.delete(n[i.value.id]);
|
|
1691
1697
|
default:
|
|
1692
1698
|
return;
|
|
1693
1699
|
}
|
|
@@ -1695,49 +1701,49 @@ const Ga = {
|
|
|
1695
1701
|
}, Me = (n) => {
|
|
1696
1702
|
re(n);
|
|
1697
1703
|
}, me = (n) => {
|
|
1698
|
-
if (!
|
|
1704
|
+
if (!B(n[i.value.id])) {
|
|
1699
1705
|
const g = {
|
|
1700
1706
|
...n
|
|
1701
1707
|
// readonly: item.disabled
|
|
1702
1708
|
};
|
|
1703
|
-
switch (n[
|
|
1709
|
+
switch (n[i.value.type]) {
|
|
1704
1710
|
case a.value.user:
|
|
1705
|
-
return h.user.set(n[
|
|
1711
|
+
return h.user.set(n[i.value.id], g);
|
|
1706
1712
|
case a.value.role:
|
|
1707
|
-
return h.role.set(n[
|
|
1713
|
+
return h.role.set(n[i.value.id], g);
|
|
1708
1714
|
case a.value.post:
|
|
1709
|
-
return h.post.set(n[
|
|
1715
|
+
return h.post.set(n[i.value.id], g);
|
|
1710
1716
|
case a.value.group:
|
|
1711
|
-
return h.group.set(n[
|
|
1717
|
+
return h.group.set(n[i.value.id], g);
|
|
1712
1718
|
default:
|
|
1713
1719
|
return;
|
|
1714
1720
|
}
|
|
1715
1721
|
}
|
|
1716
1722
|
}, Ge = (n) => [a.value.group].includes(
|
|
1717
|
-
n[
|
|
1723
|
+
n[i.value.type]
|
|
1718
1724
|
) ? n == null ? void 0 : n.hasOwnProperty("disabled") : !1;
|
|
1719
1725
|
he(
|
|
1720
1726
|
() => h.trans,
|
|
1721
1727
|
(n) => {
|
|
1722
1728
|
if (!n.length)
|
|
1723
|
-
|
|
1729
|
+
M.value.forEach((g) => {
|
|
1724
1730
|
g.disabled = !1;
|
|
1725
1731
|
try {
|
|
1726
|
-
|
|
1732
|
+
e.multiple && re(g);
|
|
1727
1733
|
} catch {
|
|
1728
1734
|
}
|
|
1729
1735
|
});
|
|
1730
1736
|
else {
|
|
1731
|
-
const g =
|
|
1732
|
-
(
|
|
1737
|
+
const g = M.value.filter(
|
|
1738
|
+
(V) => !n.includes(V[i.value.id])
|
|
1733
1739
|
);
|
|
1734
|
-
for (const
|
|
1735
|
-
|
|
1736
|
-
const
|
|
1737
|
-
(
|
|
1740
|
+
for (const V of g)
|
|
1741
|
+
V.disabled = !1, e.multiple && re(V);
|
|
1742
|
+
const L = M.value.filter(
|
|
1743
|
+
(V) => n.includes(V[i.value.id])
|
|
1738
1744
|
);
|
|
1739
|
-
for (const
|
|
1740
|
-
|
|
1745
|
+
for (const V of L)
|
|
1746
|
+
V.disabled = Ge(V), me(V);
|
|
1741
1747
|
}
|
|
1742
1748
|
},
|
|
1743
1749
|
{ deep: !0 }
|
|
@@ -1746,102 +1752,102 @@ const Ga = {
|
|
|
1746
1752
|
(n) => {
|
|
1747
1753
|
var g;
|
|
1748
1754
|
if (n) {
|
|
1749
|
-
const
|
|
1750
|
-
|
|
1751
|
-
me(
|
|
1755
|
+
const L = (g = M.value) == null ? void 0 : g.find((V) => V[i.value.id] === n);
|
|
1756
|
+
L && (h.user.clear(), h.role.clear(), h.post.clear(), h.group.clear(), h.trans = [], it(() => {
|
|
1757
|
+
me(L);
|
|
1752
1758
|
}));
|
|
1753
1759
|
}
|
|
1754
1760
|
}
|
|
1755
1761
|
);
|
|
1756
1762
|
const Ye = (n) => {
|
|
1757
|
-
|
|
1758
|
-
},
|
|
1759
|
-
!g && !
|
|
1760
|
-
},
|
|
1761
|
-
() =>
|
|
1762
|
-
),
|
|
1763
|
-
() =>
|
|
1764
|
-
),
|
|
1765
|
-
rt(() => (
|
|
1766
|
-
const
|
|
1767
|
-
h.user.clear(), h.role.clear(), h.post.clear(), h.group.clear(), h.trans = [],
|
|
1763
|
+
d.value = n == null ? void 0 : n.elementId, j(), N.value.push(n);
|
|
1764
|
+
}, Ie = H(() => N.value.length), Qe = (n, g) => {
|
|
1765
|
+
!g && !e.topLink || g !== Ie.value - 1 && (d.value = n == null ? void 0 : n.elementId, j(), N.value.splice(g + 1));
|
|
1766
|
+
}, r = H(
|
|
1767
|
+
() => e.chooseType.includes("role") && e.chooseType.length === 1
|
|
1768
|
+
), R = H(
|
|
1769
|
+
() => e.chooseType.includes("post") && e.chooseType.length === 1
|
|
1770
|
+
), I = w(e.tabs[0]), O = w(e.tabs[0]);
|
|
1771
|
+
rt(() => (O.value = r.value ? e.tabs[1] : R.value ? e.tabs[2] : I.value, O.value));
|
|
1772
|
+
const D = () => {
|
|
1773
|
+
h.user.clear(), h.role.clear(), h.post.clear(), h.group.clear(), h.trans = [], Le.value = [], ce.value = [], I.value = e.tabs[0], O.value = e.tabs[0], A.value = "", d.value = e.orgPid, N.value.splice(1, N.value.length), h.single = "", p.value = [];
|
|
1768
1774
|
}, K = () => {
|
|
1769
1775
|
var n;
|
|
1770
|
-
|
|
1776
|
+
E(
|
|
1771
1777
|
"ok",
|
|
1772
1778
|
ae.cloneDeep({
|
|
1773
1779
|
// 所有选项、部门、人员、角色分别列出
|
|
1774
|
-
...
|
|
1780
|
+
...T.value,
|
|
1775
1781
|
// 排序后的列表
|
|
1776
|
-
sort:
|
|
1782
|
+
sort: p.value
|
|
1777
1783
|
})
|
|
1778
|
-
),
|
|
1784
|
+
), E("update:modelValue", ae.cloneDeep(((n = T.value) == null ? void 0 : n.list) || [])), E("update:show", !1), D();
|
|
1779
1785
|
}, Z = () => {
|
|
1780
|
-
|
|
1786
|
+
E("update:show", !1), D();
|
|
1781
1787
|
};
|
|
1782
|
-
y({ handClear:
|
|
1783
|
-
const Y =
|
|
1784
|
-
const n =
|
|
1788
|
+
y({ handClear: D, handRomeve: Me, handDelete: re });
|
|
1789
|
+
const Y = H(() => {
|
|
1790
|
+
const n = W.value;
|
|
1785
1791
|
return !!((n.includes("post") || n.includes("role")) && n.length > 1);
|
|
1786
|
-
}), Q =
|
|
1792
|
+
}), Q = H(() => [
|
|
1787
1793
|
{ name: "group", label: "组织架构" },
|
|
1788
1794
|
{ name: "role", label: "角色列表" },
|
|
1789
1795
|
{ name: "post", label: "岗位列表" }
|
|
1790
|
-
].filter((n) =>
|
|
1791
|
-
() => `${typeof
|
|
1792
|
-
),
|
|
1793
|
-
|
|
1794
|
-
},
|
|
1795
|
-
|
|
1796
|
-
const
|
|
1797
|
-
if (!
|
|
1796
|
+
].filter((n) => e.tabs.includes(n.name))), Ae = H(
|
|
1797
|
+
() => `${typeof e.height == "string" ? Number.parseInt(e.height) : e.height}px`
|
|
1798
|
+
), Pe = () => {
|
|
1799
|
+
e.multiple || (h.post.clear(), h.role.clear(), h.user.clear(), h.group.clear(), h.single = "");
|
|
1800
|
+
}, Ve = H(() => T.value.groups.list.concat(T.value.user.list)), Ue = (n, g) => {
|
|
1801
|
+
e.multiple || (h.single = "");
|
|
1802
|
+
const L = e.multiple ? n : [n];
|
|
1803
|
+
if (!L.length) {
|
|
1798
1804
|
h.group.clear(), h.user.clear();
|
|
1799
1805
|
return;
|
|
1800
1806
|
}
|
|
1801
|
-
|
|
1802
|
-
|
|
1807
|
+
Pe(), g.forEach((V) => {
|
|
1808
|
+
L != null && L.includes(V[i.value.id]) ? me(V) : re(V);
|
|
1803
1809
|
});
|
|
1804
|
-
},
|
|
1805
|
-
|
|
1806
|
-
const
|
|
1807
|
-
if (!
|
|
1810
|
+
}, Le = w([]), Oe = (n, g) => {
|
|
1811
|
+
e.multiple || (h.single = "");
|
|
1812
|
+
const L = e.multiple ? n : [n];
|
|
1813
|
+
if (!L.length) {
|
|
1808
1814
|
h.role.clear();
|
|
1809
1815
|
return;
|
|
1810
1816
|
}
|
|
1811
|
-
|
|
1812
|
-
|
|
1817
|
+
Pe(), g.forEach((V) => {
|
|
1818
|
+
L != null && L.includes(V[i.value.id]) ? me(V) : re(V);
|
|
1813
1819
|
});
|
|
1814
1820
|
};
|
|
1815
1821
|
he(
|
|
1816
|
-
() =>
|
|
1822
|
+
() => T.value.role.len,
|
|
1817
1823
|
(n) => {
|
|
1818
|
-
|
|
1824
|
+
Le.value = ae.cloneDeep(T.value.role.list);
|
|
1819
1825
|
}
|
|
1820
1826
|
);
|
|
1821
|
-
const ce =
|
|
1822
|
-
|
|
1823
|
-
const
|
|
1824
|
-
if (!
|
|
1827
|
+
const ce = w([]), we = (n, g) => {
|
|
1828
|
+
e.multiple || (h.single = "");
|
|
1829
|
+
const L = e.multiple ? n : [n];
|
|
1830
|
+
if (!L.length) {
|
|
1825
1831
|
h.post.clear();
|
|
1826
1832
|
return;
|
|
1827
1833
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1834
|
+
Pe(), g.forEach((V) => {
|
|
1835
|
+
L != null && L.includes(V[i.value.id]) ? me(V) : re(V);
|
|
1830
1836
|
});
|
|
1831
1837
|
};
|
|
1832
1838
|
return he(
|
|
1833
|
-
() =>
|
|
1839
|
+
() => T.value.post.len,
|
|
1834
1840
|
(n) => {
|
|
1835
|
-
ce.value = ae.cloneDeep(
|
|
1841
|
+
ce.value = ae.cloneDeep(T.value.post.list);
|
|
1836
1842
|
}
|
|
1837
1843
|
), he(
|
|
1838
1844
|
() => A.value,
|
|
1839
1845
|
(n) => {
|
|
1840
|
-
|
|
1846
|
+
$("");
|
|
1841
1847
|
}
|
|
1842
1848
|
), (n, g) => {
|
|
1843
|
-
const
|
|
1844
|
-
return s(),
|
|
1849
|
+
const L = ne("el-tab-pane"), V = ne("el-tabs");
|
|
1850
|
+
return s(), U(P(Ot), {
|
|
1845
1851
|
modelValue: q.value,
|
|
1846
1852
|
"onUpdate:modelValue": g[2] || (g[2] = (G) => q.value = G),
|
|
1847
1853
|
title: n.title,
|
|
@@ -1856,22 +1862,22 @@ const Ga = {
|
|
|
1856
1862
|
"modal-class": "p_p_picker-dialog-modal-user",
|
|
1857
1863
|
onClose: Z
|
|
1858
1864
|
}, {
|
|
1859
|
-
footer:
|
|
1860
|
-
|
|
1861
|
-
m(
|
|
1862
|
-
onClick:
|
|
1865
|
+
footer: S(() => [
|
|
1866
|
+
u("span", on, [
|
|
1867
|
+
m(P(qe), {
|
|
1868
|
+
onClick: Ce(Z, ["stop"])
|
|
1863
1869
|
}, {
|
|
1864
|
-
default:
|
|
1870
|
+
default: S(() => [
|
|
1865
1871
|
le("取消")
|
|
1866
1872
|
]),
|
|
1867
1873
|
_: 1
|
|
1868
1874
|
/* STABLE */
|
|
1869
1875
|
}),
|
|
1870
|
-
m(
|
|
1876
|
+
m(P(qe), {
|
|
1871
1877
|
type: "primary",
|
|
1872
|
-
onClick:
|
|
1878
|
+
onClick: Ce(K, ["stop"])
|
|
1873
1879
|
}, {
|
|
1874
|
-
default:
|
|
1880
|
+
default: S(() => [
|
|
1875
1881
|
le(" 确定 ")
|
|
1876
1882
|
]),
|
|
1877
1883
|
_: 1
|
|
@@ -1879,34 +1885,34 @@ const Ga = {
|
|
|
1879
1885
|
})
|
|
1880
1886
|
])
|
|
1881
1887
|
]),
|
|
1882
|
-
default:
|
|
1883
|
-
|
|
1888
|
+
default: S(() => [
|
|
1889
|
+
u(
|
|
1884
1890
|
"div",
|
|
1885
1891
|
{
|
|
1886
1892
|
class: "dep-use-picker",
|
|
1887
1893
|
style: ye({ height: Ae.value })
|
|
1888
1894
|
},
|
|
1889
1895
|
[
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
m(
|
|
1896
|
+
u("div", qa, [
|
|
1897
|
+
u("div", null, [
|
|
1898
|
+
m(P(Re), {
|
|
1893
1899
|
modelValue: A.value,
|
|
1894
1900
|
"onUpdate:modelValue": g[0] || (g[0] = (G) => A.value = G),
|
|
1895
1901
|
clearable: "",
|
|
1896
1902
|
placeholder: n.placeholder,
|
|
1897
1903
|
"suffix-icon": tl
|
|
1898
1904
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1899
|
-
Y.value ? (s(), V
|
|
1905
|
+
Y.value ? (s(), U(V, {
|
|
1900
1906
|
key: 0,
|
|
1901
|
-
modelValue:
|
|
1902
|
-
"onUpdate:modelValue": g[1] || (g[1] = (G) =>
|
|
1907
|
+
modelValue: I.value,
|
|
1908
|
+
"onUpdate:modelValue": g[1] || (g[1] = (G) => I.value = G),
|
|
1903
1909
|
class: "ik-picker-tab"
|
|
1904
1910
|
}, {
|
|
1905
|
-
default:
|
|
1911
|
+
default: S(() => [
|
|
1906
1912
|
(s(!0), f(
|
|
1907
1913
|
J,
|
|
1908
1914
|
null,
|
|
1909
|
-
ge(Q.value, (G) => (s(),
|
|
1915
|
+
ge(Q.value, (G) => (s(), U(L, {
|
|
1910
1916
|
label: G.label,
|
|
1911
1917
|
name: G.name,
|
|
1912
1918
|
key: G.label
|
|
@@ -1920,23 +1926,23 @@ const Ga = {
|
|
|
1920
1926
|
}, 8, ["modelValue"])) : _("v-if", !0)
|
|
1921
1927
|
]),
|
|
1922
1928
|
_(" 过滤 "),
|
|
1923
|
-
|
|
1929
|
+
O.value === P($e).group ? (s(), f("div", Ka, [
|
|
1924
1930
|
_(" 面包屑 全选 "),
|
|
1925
|
-
m(
|
|
1931
|
+
m(P(wt), {
|
|
1926
1932
|
separator: ">",
|
|
1927
1933
|
class: ue(["banner", { "top-unlink": !n.topLink }])
|
|
1928
1934
|
}, {
|
|
1929
|
-
default:
|
|
1930
|
-
|
|
1935
|
+
default: S(() => [
|
|
1936
|
+
Ie.value ? (s(!0), f(
|
|
1931
1937
|
J,
|
|
1932
1938
|
{ key: 0 },
|
|
1933
|
-
ge(
|
|
1934
|
-
key: G[
|
|
1935
|
-
onClick:
|
|
1939
|
+
ge(P(N), (G, ke) => (s(), U(P(Ct), {
|
|
1940
|
+
key: G[i.value.id],
|
|
1941
|
+
onClick: Ce((Xe) => Qe(G, ke), ["stop"])
|
|
1936
1942
|
}, {
|
|
1937
|
-
default:
|
|
1943
|
+
default: S(() => [
|
|
1938
1944
|
le(
|
|
1939
|
-
X(G[
|
|
1945
|
+
X(G[i.value.name]),
|
|
1940
1946
|
1
|
|
1941
1947
|
/* TEXT */
|
|
1942
1948
|
)
|
|
@@ -1954,62 +1960,62 @@ const Ga = {
|
|
|
1954
1960
|
])) : _("v-if", !0),
|
|
1955
1961
|
_(" 左侧列表 "),
|
|
1956
1962
|
_(" 组织架构 "),
|
|
1957
|
-
|
|
1963
|
+
O.value === P($e).group ? Be((s(), U(ua, {
|
|
1958
1964
|
key: 1,
|
|
1959
|
-
fixPropOpt:
|
|
1965
|
+
fixPropOpt: i.value,
|
|
1960
1966
|
fixTypeOpt: a.value,
|
|
1961
1967
|
list: z.value,
|
|
1962
1968
|
max: n.max,
|
|
1963
1969
|
multiple: n.multiple,
|
|
1964
|
-
"hand-list":
|
|
1965
|
-
imageBaseUrl:
|
|
1966
|
-
emptyText:
|
|
1967
|
-
children:
|
|
1968
|
-
"choose-type":
|
|
1970
|
+
"hand-list": Ve.value,
|
|
1971
|
+
imageBaseUrl: e.imageBaseUrl,
|
|
1972
|
+
emptyText: e.emptyText,
|
|
1973
|
+
children: e.children,
|
|
1974
|
+
"choose-type": W.value,
|
|
1969
1975
|
onHandChild: Ye,
|
|
1970
|
-
onChange:
|
|
1976
|
+
onChange: Ue
|
|
1971
1977
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
1972
|
-
[
|
|
1973
|
-
]) :
|
|
1978
|
+
[P(Ke), C.value]
|
|
1979
|
+
]) : O.value === P($e).role ? (s(), f(
|
|
1974
1980
|
J,
|
|
1975
1981
|
{ key: 2 },
|
|
1976
1982
|
[
|
|
1977
1983
|
_(" 角色 "),
|
|
1978
|
-
|
|
1979
|
-
fixPropOpt:
|
|
1984
|
+
Be(m(Wa, {
|
|
1985
|
+
fixPropOpt: i.value,
|
|
1980
1986
|
fixTypeOpt: a.value,
|
|
1981
|
-
list:
|
|
1987
|
+
list: b.value,
|
|
1982
1988
|
max: n.max,
|
|
1983
1989
|
multiple: n.multiple,
|
|
1984
|
-
"hand-list":
|
|
1985
|
-
imageBaseUrl:
|
|
1986
|
-
emptyText:
|
|
1987
|
-
"choose-type":
|
|
1990
|
+
"hand-list": Le.value,
|
|
1991
|
+
imageBaseUrl: e.imageBaseUrl,
|
|
1992
|
+
emptyText: e.emptyText,
|
|
1993
|
+
"choose-type": W.value,
|
|
1988
1994
|
onChange: Oe
|
|
1989
1995
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
1990
|
-
[
|
|
1996
|
+
[P(Ke), C.value]
|
|
1991
1997
|
])
|
|
1992
1998
|
],
|
|
1993
1999
|
64
|
|
1994
2000
|
/* STABLE_FRAGMENT */
|
|
1995
|
-
)) :
|
|
2001
|
+
)) : O.value === P($e).post ? (s(), f(
|
|
1996
2002
|
J,
|
|
1997
2003
|
{ key: 3 },
|
|
1998
2004
|
[
|
|
1999
2005
|
_(" 岗位 "),
|
|
2000
|
-
|
|
2001
|
-
fixPropOpt:
|
|
2006
|
+
Be(m(Ca, {
|
|
2007
|
+
fixPropOpt: i.value,
|
|
2002
2008
|
fixTypeOpt: a.value,
|
|
2003
2009
|
list: k.value,
|
|
2004
2010
|
max: n.max,
|
|
2005
2011
|
multiple: n.multiple,
|
|
2006
2012
|
"hand-list": ce.value,
|
|
2007
|
-
imageBaseUrl:
|
|
2008
|
-
emptyText:
|
|
2009
|
-
"choose-type":
|
|
2013
|
+
imageBaseUrl: e.imageBaseUrl,
|
|
2014
|
+
emptyText: e.emptyText,
|
|
2015
|
+
"choose-type": W.value,
|
|
2010
2016
|
onChange: we
|
|
2011
2017
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2012
|
-
[
|
|
2018
|
+
[P(Ke), C.value]
|
|
2013
2019
|
])
|
|
2014
2020
|
],
|
|
2015
2021
|
64
|
|
@@ -2018,47 +2024,47 @@ const Ga = {
|
|
|
2018
2024
|
]),
|
|
2019
2025
|
Za,
|
|
2020
2026
|
_(" 已选列表 "),
|
|
2021
|
-
|
|
2022
|
-
|
|
2027
|
+
u("div", Ja, [
|
|
2028
|
+
u("div", en, [
|
|
2023
2029
|
tn,
|
|
2024
|
-
m(
|
|
2030
|
+
m(P(qe), {
|
|
2025
2031
|
type: "primary",
|
|
2026
2032
|
link: "",
|
|
2027
|
-
onClick:
|
|
2033
|
+
onClick: Ce(D, ["stop"])
|
|
2028
2034
|
}, {
|
|
2029
|
-
default:
|
|
2035
|
+
default: S(() => [
|
|
2030
2036
|
le("清空")
|
|
2031
2037
|
]),
|
|
2032
2038
|
_: 1
|
|
2033
2039
|
/* STABLE */
|
|
2034
2040
|
})
|
|
2035
2041
|
]),
|
|
2036
|
-
|
|
2042
|
+
u("ul", ln, [
|
|
2037
2043
|
(s(!0), f(
|
|
2038
2044
|
J,
|
|
2039
2045
|
null,
|
|
2040
|
-
ge(
|
|
2041
|
-
|
|
2046
|
+
ge(p.value, (G) => (s(), f("li", an, [
|
|
2047
|
+
u("div", nn, [
|
|
2042
2048
|
_(" icon前缀 "),
|
|
2043
|
-
|
|
2049
|
+
u("div", sn, [
|
|
2044
2050
|
m(fe, {
|
|
2045
2051
|
fixTypeOpt: a.value,
|
|
2046
|
-
fixPropOpt:
|
|
2052
|
+
fixPropOpt: i.value,
|
|
2047
2053
|
element: G,
|
|
2048
|
-
imageBaseUrl:
|
|
2054
|
+
imageBaseUrl: e.imageBaseUrl
|
|
2049
2055
|
}, null, 8, ["fixTypeOpt", "fixPropOpt", "element", "imageBaseUrl"])
|
|
2050
2056
|
]),
|
|
2051
|
-
|
|
2057
|
+
u(
|
|
2052
2058
|
"span",
|
|
2053
2059
|
null,
|
|
2054
|
-
X(G[
|
|
2060
|
+
X(G[i.value.name]),
|
|
2055
2061
|
1
|
|
2056
2062
|
/* TEXT */
|
|
2057
2063
|
)
|
|
2058
2064
|
]),
|
|
2059
|
-
|
|
2065
|
+
Be(m(rl, {
|
|
2060
2066
|
class: "close",
|
|
2061
|
-
onClick:
|
|
2067
|
+
onClick: Ce((ke) => Me(G), ["stop"])
|
|
2062
2068
|
}, null, 8, ["onClick"]), [
|
|
2063
2069
|
[kt, !(G != null && G.readonly)]
|
|
2064
2070
|
])
|
|
@@ -2079,7 +2085,7 @@ const Ga = {
|
|
|
2079
2085
|
};
|
|
2080
2086
|
}
|
|
2081
2087
|
});
|
|
2082
|
-
const un = Ee(rn), dn = (
|
|
2088
|
+
const un = Ee(rn), dn = (l) => (Ne("data-v-b5ed17ed"), l = l(), je(), l), cn = /* @__PURE__ */ dn(() => /* @__PURE__ */ u(
|
|
2083
2089
|
"i",
|
|
2084
2090
|
{ class: "ik ik-shezhi" },
|
|
2085
2091
|
null,
|
|
@@ -2125,7 +2131,7 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2125
2131
|
config: {
|
|
2126
2132
|
type: Object,
|
|
2127
2133
|
default: () => ({
|
|
2128
|
-
t: (
|
|
2134
|
+
t: (l) => l,
|
|
2129
2135
|
dialog: {
|
|
2130
2136
|
l: "700px",
|
|
2131
2137
|
sl: "600px"
|
|
@@ -2144,113 +2150,113 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2144
2150
|
modelModifiers: {}
|
|
2145
2151
|
}),
|
|
2146
2152
|
emits: /* @__PURE__ */ ze(["sort"], ["update:modelValue"]),
|
|
2147
|
-
setup(
|
|
2148
|
-
const
|
|
2149
|
-
const
|
|
2150
|
-
return
|
|
2151
|
-
}), v = (
|
|
2152
|
-
var
|
|
2153
|
-
const
|
|
2154
|
-
|
|
2153
|
+
setup(l, { emit: y }) {
|
|
2154
|
+
const t = l, e = y, A = Ze(l, "modelValue"), { t: d, dialog: x, path: c, user: b } = t.config, k = H(() => `${b == null ? void 0 : b.id}_${c}${t.tab !== "" ? `_${t.tab}` : ""}`), C = w([]), z = w([]), i = w([]), a = /* @__PURE__ */ new Map(), p = w(!1), o = H(() => {
|
|
2155
|
+
const $ = z.value.length && z.value.length !== t.list.length;
|
|
2156
|
+
return !$ && z.value.length && (p.value = !0), !!$;
|
|
2157
|
+
}), v = ($) => {
|
|
2158
|
+
var W;
|
|
2159
|
+
const T = ae.cloneDeep(i.value);
|
|
2160
|
+
T == null || T.forEach((M) => {
|
|
2155
2161
|
var ie;
|
|
2156
2162
|
if (!z.value.length)
|
|
2157
|
-
|
|
2158
|
-
else if (!z.value.includes(
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2163
|
+
i.value = [];
|
|
2164
|
+
else if (!z.value.includes(M == null ? void 0 : M.key)) {
|
|
2165
|
+
const E = (ie = i.value) == null ? void 0 : ie.findIndex((q) => q.key === M.key);
|
|
2166
|
+
E !== -1 && i.value.splice(E, 1), M.show = !1, a.set(M.key, M);
|
|
2161
2167
|
}
|
|
2162
|
-
}), z.value.forEach((
|
|
2163
|
-
var
|
|
2164
|
-
if (((
|
|
2165
|
-
const q = a.get(
|
|
2166
|
-
q && (q.show = !0,
|
|
2168
|
+
}), z.value.forEach((M) => {
|
|
2169
|
+
var E;
|
|
2170
|
+
if (((E = i.value) == null ? void 0 : E.findIndex((q) => (q == null ? void 0 : q.key) === M)) === -1) {
|
|
2171
|
+
const q = a.get(M);
|
|
2172
|
+
q && (q.show = !0, i.value.push(q));
|
|
2167
2173
|
}
|
|
2168
|
-
}), (
|
|
2169
|
-
},
|
|
2170
|
-
if (
|
|
2171
|
-
z.value =
|
|
2174
|
+
}), (W = i.value) != null && W.length || (i.value = ae.cloneDeep(t.list)), $ === !0 && (e("sort", ae.cloneDeep(i.value)), A.value = ae.cloneDeep(i.value));
|
|
2175
|
+
}, N = ($) => {
|
|
2176
|
+
if ($)
|
|
2177
|
+
z.value = t.list.map((T) => T.key);
|
|
2172
2178
|
else {
|
|
2173
|
-
const
|
|
2174
|
-
z.value =
|
|
2179
|
+
const T = t.list.find((W) => !W.key || W.label === "操作");
|
|
2180
|
+
z.value = T ? [T.key] : [];
|
|
2175
2181
|
}
|
|
2176
2182
|
v();
|
|
2177
|
-
},
|
|
2178
|
-
const
|
|
2183
|
+
}, F = () => {
|
|
2184
|
+
const $ = De.local.getItem(k.value);
|
|
2179
2185
|
try {
|
|
2180
|
-
const
|
|
2181
|
-
if ((
|
|
2186
|
+
const T = ae.cloneDeep(t == null ? void 0 : t.list);
|
|
2187
|
+
if ((!$ || !($ != null && $.length)) && De.local.setItem(
|
|
2182
2188
|
k.value,
|
|
2183
|
-
|
|
2184
|
-
show:
|
|
2189
|
+
T.map(({ show: W, type: M, key: ie, label: E, width: q, minWidth: ee, align: re }) => ({
|
|
2190
|
+
show: W,
|
|
2185
2191
|
key: ie,
|
|
2186
|
-
type:
|
|
2187
|
-
label:
|
|
2192
|
+
type: M,
|
|
2193
|
+
label: E,
|
|
2188
2194
|
width: q,
|
|
2189
2195
|
minWidth: ee,
|
|
2190
2196
|
align: re
|
|
2191
2197
|
}))
|
|
2192
|
-
),
|
|
2193
|
-
...(
|
|
2194
|
-
...
|
|
2195
|
-
show:
|
|
2198
|
+
), C.value = [
|
|
2199
|
+
...(T == null ? void 0 : T.map((W) => (a.set(W.key, W), {
|
|
2200
|
+
...W,
|
|
2201
|
+
show: W.show || !1
|
|
2196
2202
|
}))) || []
|
|
2197
|
-
],
|
|
2198
|
-
const
|
|
2199
|
-
z.value = [...
|
|
2203
|
+
], $) {
|
|
2204
|
+
const W = $.filter((M) => M.show).map((M) => M.key);
|
|
2205
|
+
z.value = [...W];
|
|
2200
2206
|
} else {
|
|
2201
|
-
const
|
|
2202
|
-
z.value =
|
|
2207
|
+
const W = C.value.filter((M) => M.show);
|
|
2208
|
+
z.value = W.map((M) => M.key);
|
|
2203
2209
|
}
|
|
2204
2210
|
v(!0);
|
|
2205
|
-
} catch (
|
|
2206
|
-
console.info("error: ",
|
|
2211
|
+
} catch (T) {
|
|
2212
|
+
console.info("error: ", T);
|
|
2207
2213
|
}
|
|
2208
2214
|
};
|
|
2209
|
-
|
|
2210
|
-
|
|
2215
|
+
F(), he(() => t.list, () => {
|
|
2216
|
+
F();
|
|
2211
2217
|
}, { deep: !0 });
|
|
2212
|
-
const
|
|
2213
|
-
|
|
2214
|
-
}, oe = (
|
|
2215
|
-
|
|
2216
|
-
},
|
|
2217
|
-
|
|
2218
|
+
const j = w(!1), h = () => {
|
|
2219
|
+
j.value = !0;
|
|
2220
|
+
}, oe = ($) => {
|
|
2221
|
+
i.value = $;
|
|
2222
|
+
}, B = () => {
|
|
2223
|
+
j.value = !1, De.local.setItem(
|
|
2218
2224
|
k.value,
|
|
2219
|
-
|
|
2220
|
-
show:
|
|
2221
|
-
key:
|
|
2222
|
-
label:
|
|
2223
|
-
value:
|
|
2225
|
+
i.value.map(({ show: $, key: T, label: W, value: M, width: ie, minWidth: E, align: q }) => ({
|
|
2226
|
+
show: $,
|
|
2227
|
+
key: T,
|
|
2228
|
+
label: W,
|
|
2229
|
+
value: M,
|
|
2224
2230
|
width: ie,
|
|
2225
|
-
minWidth:
|
|
2231
|
+
minWidth: E,
|
|
2226
2232
|
align: q
|
|
2227
2233
|
}))
|
|
2228
|
-
),
|
|
2234
|
+
), e("sort", ae.cloneDeep(i.value)), A.value = ae.cloneDeep(i.value);
|
|
2229
2235
|
};
|
|
2230
|
-
return (
|
|
2231
|
-
const
|
|
2236
|
+
return ($, T) => {
|
|
2237
|
+
const W = ne("el-button"), M = ne("el-checkbox"), ie = ne("el-checkbox-group"), E = ne("el-dialog"), q = Je("role");
|
|
2232
2238
|
return s(), f(
|
|
2233
2239
|
J,
|
|
2234
2240
|
null,
|
|
2235
2241
|
[
|
|
2236
|
-
|
|
2237
|
-
circle:
|
|
2238
|
-
type:
|
|
2239
|
-
style: { minWidth:
|
|
2242
|
+
l.btnType === "button" ? Be((s(), U(W, te({ key: 0 }, $.$attrs, {
|
|
2243
|
+
circle: l.circle,
|
|
2244
|
+
type: l.type,
|
|
2245
|
+
style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
|
|
2240
2246
|
onClick: h
|
|
2241
2247
|
}), bt({
|
|
2242
|
-
icon:
|
|
2248
|
+
icon: S(() => [
|
|
2243
2249
|
cn
|
|
2244
2250
|
]),
|
|
2245
2251
|
_: 2
|
|
2246
2252
|
/* DYNAMIC */
|
|
2247
2253
|
}, [
|
|
2248
|
-
|
|
2254
|
+
l.circle ? void 0 : {
|
|
2249
2255
|
name: "default",
|
|
2250
|
-
fn:
|
|
2256
|
+
fn: S(() => [
|
|
2251
2257
|
_(' {{ t("action.setting") }} '),
|
|
2252
2258
|
le(
|
|
2253
|
-
" " + X(
|
|
2259
|
+
" " + X(P(d)("设置")),
|
|
2254
2260
|
1
|
|
2255
2261
|
/* TEXT */
|
|
2256
2262
|
)
|
|
@@ -2258,41 +2264,41 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2258
2264
|
key: "0"
|
|
2259
2265
|
}
|
|
2260
2266
|
]), 1040, ["circle", "type", "style"])), [
|
|
2261
|
-
[q,
|
|
2267
|
+
[q, $.$props.role]
|
|
2262
2268
|
]) : _("v-if", !0),
|
|
2263
|
-
|
|
2264
|
-
|
|
2269
|
+
l.btnType === "icon" ? Be((s(), U(
|
|
2270
|
+
P(xe),
|
|
2265
2271
|
te({
|
|
2266
2272
|
key: 1,
|
|
2267
2273
|
name: "iksvg_shezhi-daohang",
|
|
2268
2274
|
"show-bg": "",
|
|
2269
2275
|
size: "default"
|
|
2270
|
-
},
|
|
2276
|
+
}, $.$attrs, { onClick: h }),
|
|
2271
2277
|
null,
|
|
2272
2278
|
16
|
|
2273
2279
|
/* FULL_PROPS */
|
|
2274
2280
|
)), [
|
|
2275
|
-
[q,
|
|
2281
|
+
[q, $.$props.role]
|
|
2276
2282
|
]) : _("v-if", !0),
|
|
2277
|
-
m(
|
|
2278
|
-
modelValue:
|
|
2279
|
-
"onUpdate:modelValue":
|
|
2283
|
+
m(E, {
|
|
2284
|
+
modelValue: j.value,
|
|
2285
|
+
"onUpdate:modelValue": T[3] || (T[3] = (ee) => j.value = ee),
|
|
2280
2286
|
draggable: "",
|
|
2281
|
-
width:
|
|
2287
|
+
width: l.inline ? P(x).l : P(x).sl,
|
|
2282
2288
|
"close-on-click-modal": !1,
|
|
2283
2289
|
"close-on-press-escape": !1,
|
|
2284
2290
|
title: "显示字段",
|
|
2285
2291
|
"append-to-body": "",
|
|
2286
|
-
onOpen:
|
|
2292
|
+
onOpen: F
|
|
2287
2293
|
}, {
|
|
2288
|
-
footer:
|
|
2289
|
-
|
|
2290
|
-
m(
|
|
2291
|
-
onClick:
|
|
2294
|
+
footer: S(() => [
|
|
2295
|
+
u("div", hn, [
|
|
2296
|
+
m(W, {
|
|
2297
|
+
onClick: T[2] || (T[2] = (ee) => j.value = !1)
|
|
2292
2298
|
}, {
|
|
2293
|
-
default:
|
|
2299
|
+
default: S(() => [
|
|
2294
2300
|
le(
|
|
2295
|
-
X(
|
|
2301
|
+
X(P(d)("关闭")) + " ",
|
|
2296
2302
|
1
|
|
2297
2303
|
/* TEXT */
|
|
2298
2304
|
),
|
|
@@ -2301,14 +2307,14 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2301
2307
|
_: 1
|
|
2302
2308
|
/* STABLE */
|
|
2303
2309
|
}),
|
|
2304
|
-
m(
|
|
2310
|
+
m(W, {
|
|
2305
2311
|
type: "primary",
|
|
2306
|
-
disabled:
|
|
2307
|
-
onClick:
|
|
2312
|
+
disabled: i.value.length < 2,
|
|
2313
|
+
onClick: B
|
|
2308
2314
|
}, {
|
|
2309
|
-
default:
|
|
2315
|
+
default: S(() => [
|
|
2310
2316
|
le(
|
|
2311
|
-
X(
|
|
2317
|
+
X(i.value.length < 2 ? "至少选择一个字段" : P(d)("确定")),
|
|
2312
2318
|
1
|
|
2313
2319
|
/* TEXT */
|
|
2314
2320
|
)
|
|
@@ -2318,27 +2324,27 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2318
2324
|
}, 8, ["disabled"])
|
|
2319
2325
|
])
|
|
2320
2326
|
]),
|
|
2321
|
-
default:
|
|
2322
|
-
|
|
2327
|
+
default: S(() => [
|
|
2328
|
+
u(
|
|
2323
2329
|
"div",
|
|
2324
2330
|
{
|
|
2325
|
-
class: ue(["view-fields", [
|
|
2331
|
+
class: ue(["view-fields", [l.inline ? null : "un-inline"]])
|
|
2326
2332
|
},
|
|
2327
2333
|
[
|
|
2328
|
-
|
|
2334
|
+
u(
|
|
2329
2335
|
"div",
|
|
2330
2336
|
{
|
|
2331
|
-
style: ye({ flex:
|
|
2337
|
+
style: ye({ flex: l.inline ? 2 : 1 })
|
|
2332
2338
|
},
|
|
2333
2339
|
[
|
|
2334
|
-
m(
|
|
2335
|
-
modelValue:
|
|
2336
|
-
"onUpdate:modelValue":
|
|
2340
|
+
m(M, {
|
|
2341
|
+
modelValue: p.value,
|
|
2342
|
+
"onUpdate:modelValue": T[0] || (T[0] = (ee) => p.value = ee),
|
|
2337
2343
|
class: "single-line",
|
|
2338
|
-
indeterminate:
|
|
2339
|
-
onChange:
|
|
2344
|
+
indeterminate: o.value,
|
|
2345
|
+
onChange: N
|
|
2340
2346
|
}, {
|
|
2341
|
-
default:
|
|
2347
|
+
default: S(() => [
|
|
2342
2348
|
le(" 全选 ")
|
|
2343
2349
|
]),
|
|
2344
2350
|
_: 1
|
|
@@ -2346,19 +2352,19 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2346
2352
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2347
2353
|
m(ie, {
|
|
2348
2354
|
modelValue: z.value,
|
|
2349
|
-
"onUpdate:modelValue":
|
|
2355
|
+
"onUpdate:modelValue": T[1] || (T[1] = (ee) => z.value = ee),
|
|
2350
2356
|
onChange: v
|
|
2351
2357
|
}, {
|
|
2352
|
-
default:
|
|
2358
|
+
default: S(() => [
|
|
2353
2359
|
(s(!0), f(
|
|
2354
2360
|
J,
|
|
2355
2361
|
null,
|
|
2356
|
-
ge(
|
|
2362
|
+
ge(C.value, (ee) => (s(), U(M, {
|
|
2357
2363
|
key: ee.key,
|
|
2358
2364
|
disabled: !ee.key,
|
|
2359
2365
|
label: ee.key
|
|
2360
2366
|
}, {
|
|
2361
|
-
default:
|
|
2367
|
+
default: S(() => [
|
|
2362
2368
|
le(
|
|
2363
2369
|
X(ee.label),
|
|
2364
2370
|
1
|
|
@@ -2379,9 +2385,9 @@ const un = Ee(rn), dn = (t) => (Ne("data-v-b5ed17ed"), t = t(), je(), t), cn = /
|
|
|
2379
2385
|
4
|
|
2380
2386
|
/* STYLE */
|
|
2381
2387
|
),
|
|
2382
|
-
|
|
2383
|
-
m(
|
|
2384
|
-
list:
|
|
2388
|
+
u("div", pn, [
|
|
2389
|
+
m(P(kn), {
|
|
2390
|
+
list: i.value,
|
|
2385
2391
|
"item-style": { bottom: 4 },
|
|
2386
2392
|
onChange: oe
|
|
2387
2393
|
}, null, 8, ["list"])
|
|
@@ -2556,10 +2562,10 @@ const vn = /* @__PURE__ */ se(fn, [["__scopeId", "data-v-b5ed17ed"]]), gn = Ee(v
|
|
|
2556
2562
|
__name: "IkDragList",
|
|
2557
2563
|
props: yn,
|
|
2558
2564
|
emits: ["change"],
|
|
2559
|
-
setup(
|
|
2560
|
-
const
|
|
2565
|
+
setup(l, { emit: y }) {
|
|
2566
|
+
const t = l, e = y, A = w([]);
|
|
2561
2567
|
he(
|
|
2562
|
-
() =>
|
|
2568
|
+
() => t.list,
|
|
2563
2569
|
(k) => {
|
|
2564
2570
|
A.value = ae.cloneDeep(k);
|
|
2565
2571
|
},
|
|
@@ -2568,42 +2574,42 @@ const vn = /* @__PURE__ */ se(fn, [["__scopeId", "data-v-b5ed17ed"]]), gn = Ee(v
|
|
|
2568
2574
|
deep: !0
|
|
2569
2575
|
}
|
|
2570
2576
|
);
|
|
2571
|
-
const
|
|
2577
|
+
const d = H(() => ({
|
|
2572
2578
|
...ft,
|
|
2573
|
-
...
|
|
2579
|
+
...t,
|
|
2574
2580
|
itemStyle: {
|
|
2575
2581
|
...ft.itemStyle,
|
|
2576
|
-
...
|
|
2582
|
+
...t.itemStyle
|
|
2577
2583
|
}
|
|
2578
|
-
})),
|
|
2579
|
-
|
|
2580
|
-
},
|
|
2581
|
-
|
|
2582
|
-
const
|
|
2583
|
-
|
|
2584
|
-
...
|
|
2584
|
+
})), x = w(!1), c = () => {
|
|
2585
|
+
x.value = !0;
|
|
2586
|
+
}, b = (k) => {
|
|
2587
|
+
x.value = !1;
|
|
2588
|
+
const C = t.list[k.oldIndex];
|
|
2589
|
+
e("change", A.value, {
|
|
2590
|
+
...C,
|
|
2585
2591
|
oldIndex: k.oldIndex,
|
|
2586
2592
|
newIndex: k.newIndex
|
|
2587
2593
|
});
|
|
2588
2594
|
};
|
|
2589
|
-
return (k,
|
|
2595
|
+
return (k, C) => {
|
|
2590
2596
|
const z = ne("el-icon");
|
|
2591
|
-
return s(),
|
|
2597
|
+
return s(), U(P(zt), {
|
|
2592
2598
|
modelValue: A.value,
|
|
2593
|
-
"onUpdate:modelValue":
|
|
2594
|
-
class: ue(["list-group", [
|
|
2599
|
+
"onUpdate:modelValue": C[0] || (C[0] = (i) => A.value = i),
|
|
2600
|
+
class: ue(["list-group", [d.value.groupClass]]),
|
|
2595
2601
|
tag: "ul",
|
|
2596
|
-
attrs:
|
|
2597
|
-
animation:
|
|
2598
|
-
group:
|
|
2599
|
-
disabled:
|
|
2600
|
-
"ghost-class":
|
|
2601
|
-
"force-fallback":
|
|
2602
|
+
attrs: d.value,
|
|
2603
|
+
animation: d.value.animation,
|
|
2604
|
+
group: d.value.group,
|
|
2605
|
+
disabled: d.value.disabled,
|
|
2606
|
+
"ghost-class": d.value.ghostClass,
|
|
2607
|
+
"force-fallback": d.value.ghostClass,
|
|
2602
2608
|
"item-key": "order",
|
|
2603
|
-
onStart:
|
|
2604
|
-
onEnd:
|
|
2609
|
+
onStart: c,
|
|
2610
|
+
onEnd: b
|
|
2605
2611
|
}, {
|
|
2606
|
-
item:
|
|
2612
|
+
item: S(({ element: i }) => [
|
|
2607
2613
|
m(
|
|
2608
2614
|
yt,
|
|
2609
2615
|
{
|
|
@@ -2611,31 +2617,31 @@ const vn = /* @__PURE__ */ se(fn, [["__scopeId", "data-v-b5ed17ed"]]), gn = Ee(v
|
|
|
2611
2617
|
name: "flip-list"
|
|
2612
2618
|
},
|
|
2613
2619
|
{
|
|
2614
|
-
default:
|
|
2620
|
+
default: S(() => [
|
|
2615
2621
|
k.$slots.item ? ve(k.$slots, "item", {
|
|
2616
2622
|
key: 0,
|
|
2617
|
-
item:
|
|
2623
|
+
item: i
|
|
2618
2624
|
}, void 0, !0) : (s(), f(
|
|
2619
2625
|
"li",
|
|
2620
2626
|
{
|
|
2621
2627
|
key: 1,
|
|
2622
|
-
class: ue(["list-group-item", [
|
|
2628
|
+
class: ue(["list-group-item", [d.value.itemClass]]),
|
|
2623
2629
|
style: ye({
|
|
2624
|
-
borderRadius: `${
|
|
2625
|
-
marginBottom: `${
|
|
2626
|
-
backgroundColor: `${
|
|
2630
|
+
borderRadius: `${d.value.itemStyle.radius}px`,
|
|
2631
|
+
marginBottom: `${d.value.itemStyle.bottom}px`,
|
|
2632
|
+
backgroundColor: `${d.value.itemStyle.background}`
|
|
2627
2633
|
})
|
|
2628
2634
|
},
|
|
2629
2635
|
[
|
|
2630
|
-
|
|
2631
|
-
default:
|
|
2632
|
-
m(
|
|
2636
|
+
d.value.showIcon && !k.$slots.icon ? (s(), U(z, { key: 0 }, {
|
|
2637
|
+
default: S(() => [
|
|
2638
|
+
m(P(Mt))
|
|
2633
2639
|
]),
|
|
2634
2640
|
_: 1
|
|
2635
2641
|
/* STABLE */
|
|
2636
2642
|
})) : ve(k.$slots, "icon", { key: 1 }, void 0, !0),
|
|
2637
2643
|
le(
|
|
2638
|
-
" " + X(
|
|
2644
|
+
" " + X(i.label),
|
|
2639
2645
|
1
|
|
2640
2646
|
/* TEXT */
|
|
2641
2647
|
)
|
|
@@ -2658,9 +2664,9 @@ const vn = /* @__PURE__ */ se(fn, [["__scopeId", "data-v-b5ed17ed"]]), gn = Ee(v
|
|
|
2658
2664
|
}
|
|
2659
2665
|
});
|
|
2660
2666
|
const An = /* @__PURE__ */ se(mn, [["__scopeId", "data-v-3716c05e"]]), kn = Ee(An);
|
|
2661
|
-
var _e = /* @__PURE__ */ ((
|
|
2662
|
-
function vt(
|
|
2663
|
-
return typeof
|
|
2667
|
+
var _e = /* @__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))(_e || {}), Se = /* @__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))(Se || {});
|
|
2668
|
+
function vt(l) {
|
|
2669
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !_t(l);
|
|
2664
2670
|
}
|
|
2665
2671
|
const bn = /* @__PURE__ */ de({
|
|
2666
2672
|
name: "IkSearchAuto",
|
|
@@ -2697,369 +2703,369 @@ const bn = /* @__PURE__ */ de({
|
|
|
2697
2703
|
}
|
|
2698
2704
|
},
|
|
2699
2705
|
emits: ["search", "pickerChange"],
|
|
2700
|
-
setup(
|
|
2706
|
+
setup(l, {
|
|
2701
2707
|
emit: y,
|
|
2702
|
-
expose:
|
|
2708
|
+
expose: t
|
|
2703
2709
|
}) {
|
|
2704
|
-
const
|
|
2705
|
-
...
|
|
2710
|
+
const e = w(), A = {}, d = w({}), x = w([]), c = w({
|
|
2711
|
+
...d.value
|
|
2706
2712
|
});
|
|
2707
|
-
he(
|
|
2708
|
-
const
|
|
2709
|
-
if (
|
|
2710
|
-
let
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
}),
|
|
2713
|
+
he(x, (r, R) => {
|
|
2714
|
+
const I = R.filter((O) => !r.includes(O));
|
|
2715
|
+
if (I.length) {
|
|
2716
|
+
let O = !1;
|
|
2717
|
+
I.forEach((D) => {
|
|
2718
|
+
c.value[D] !== void 0 && (O = !0), c.value[D] = void 0;
|
|
2719
|
+
}), O && y("search", c.value);
|
|
2714
2720
|
}
|
|
2715
2721
|
});
|
|
2716
|
-
const
|
|
2717
|
-
|
|
2718
|
-
var
|
|
2719
|
-
|
|
2722
|
+
const b = () => {
|
|
2723
|
+
x.value = [], l.list.forEach((r) => {
|
|
2724
|
+
var R, I;
|
|
2725
|
+
d.value[r.key] = d.value[r.value], A[r.key] = A[r.value], x.value.push(r.key), (R = c.value)[I = r.key] ?? (R[I] = r.value || null);
|
|
2720
2726
|
});
|
|
2721
2727
|
};
|
|
2722
|
-
|
|
2723
|
-
|
|
2728
|
+
b(), he(() => l.list, () => {
|
|
2729
|
+
b();
|
|
2724
2730
|
});
|
|
2725
|
-
const k =
|
|
2726
|
-
var
|
|
2727
|
-
|
|
2731
|
+
const k = H(() => x.value.map((r) => l.list.find((R) => R.key === r))), C = () => {
|
|
2732
|
+
var r;
|
|
2733
|
+
c.value.page = 1, (r = l.search) == null || r.call(l, c.value), y("search", c.value);
|
|
2728
2734
|
};
|
|
2729
|
-
|
|
2735
|
+
t({
|
|
2730
2736
|
resetForm: () => {
|
|
2731
|
-
var
|
|
2732
|
-
(
|
|
2737
|
+
var r, R;
|
|
2738
|
+
(R = (r = e.value) == null ? void 0 : r.resetFields) == null || R.call(r), C();
|
|
2733
2739
|
},
|
|
2734
2740
|
reRequest: () => {
|
|
2735
|
-
|
|
2741
|
+
C();
|
|
2736
2742
|
}
|
|
2737
2743
|
});
|
|
2738
2744
|
const a = () => {
|
|
2739
|
-
var
|
|
2740
|
-
y("search",
|
|
2741
|
-
},
|
|
2742
|
-
|
|
2743
|
-
},
|
|
2744
|
-
var
|
|
2745
|
-
(
|
|
2745
|
+
var r;
|
|
2746
|
+
y("search", c.value), (r = l.search) == null || r.call(l, c.value);
|
|
2747
|
+
}, p = (r) => {
|
|
2748
|
+
r.key === "Enter" && C();
|
|
2749
|
+
}, o = () => {
|
|
2750
|
+
var r;
|
|
2751
|
+
(r = e.value) == null || r.resetFields(), C();
|
|
2746
2752
|
};
|
|
2747
|
-
|
|
2753
|
+
l.immediate && C();
|
|
2748
2754
|
const v = ({
|
|
2749
|
-
maxlength:
|
|
2750
|
-
minlength:
|
|
2751
|
-
key:
|
|
2752
|
-
disabled:
|
|
2753
|
-
placeholder:
|
|
2755
|
+
maxlength: r,
|
|
2756
|
+
minlength: R,
|
|
2757
|
+
key: I,
|
|
2758
|
+
disabled: O,
|
|
2759
|
+
placeholder: D,
|
|
2754
2760
|
formProp: K = {},
|
|
2755
2761
|
value: Z,
|
|
2756
2762
|
label: Y
|
|
2757
2763
|
}) => m(Re, te({
|
|
2758
|
-
modelValue:
|
|
2759
|
-
"onUpdate:modelValue": [(Q) =>
|
|
2764
|
+
modelValue: c.value[I],
|
|
2765
|
+
"onUpdate:modelValue": [(Q) => c.value[I] = Q, (Q) => c.value[I] = Q],
|
|
2760
2766
|
clearable: !0,
|
|
2761
|
-
maxlength:
|
|
2762
|
-
minlength:
|
|
2763
|
-
disabled:
|
|
2767
|
+
maxlength: r,
|
|
2768
|
+
minlength: R,
|
|
2769
|
+
disabled: O,
|
|
2764
2770
|
onBlur: () => a()
|
|
2765
2771
|
}, K, {
|
|
2766
|
-
placeholder: (K == null ? void 0 : K.placeholder) ||
|
|
2767
|
-
}), null),
|
|
2768
|
-
key:
|
|
2769
|
-
placeholder:
|
|
2770
|
-
max:
|
|
2771
|
-
min:
|
|
2772
|
-
disabled:
|
|
2772
|
+
placeholder: (K == null ? void 0 : K.placeholder) || D || `请输入${Y || ""}`
|
|
2773
|
+
}), null), N = ({
|
|
2774
|
+
key: r,
|
|
2775
|
+
placeholder: R,
|
|
2776
|
+
max: I,
|
|
2777
|
+
min: O,
|
|
2778
|
+
disabled: D,
|
|
2773
2779
|
precision: K,
|
|
2774
2780
|
step: Z = 1,
|
|
2775
2781
|
label: Y,
|
|
2776
2782
|
formProp: Q = {}
|
|
2777
2783
|
}) => m(Tt, te({
|
|
2778
|
-
modelValue:
|
|
2779
|
-
"onUpdate:modelValue": (Ae) =>
|
|
2784
|
+
modelValue: c.value[r],
|
|
2785
|
+
"onUpdate:modelValue": (Ae) => c.value[r] = Ae,
|
|
2780
2786
|
clearable: !0,
|
|
2781
|
-
max:
|
|
2782
|
-
min:
|
|
2783
|
-
disabled:
|
|
2787
|
+
max: I,
|
|
2788
|
+
min: O,
|
|
2789
|
+
disabled: D,
|
|
2784
2790
|
precision: K,
|
|
2785
2791
|
step: Z,
|
|
2786
2792
|
onChange: () => a()
|
|
2787
2793
|
}, Q, {
|
|
2788
|
-
placeholder: (Q == null ? void 0 : Q.placeholder) ||
|
|
2789
|
-
}), null),
|
|
2790
|
-
key:
|
|
2791
|
-
placeholder:
|
|
2792
|
-
disabled:
|
|
2793
|
-
options:
|
|
2794
|
-
label:
|
|
2794
|
+
placeholder: (Q == null ? void 0 : Q.placeholder) || R || `请输入${Y || ""}`
|
|
2795
|
+
}), null), F = ({
|
|
2796
|
+
key: r,
|
|
2797
|
+
placeholder: R,
|
|
2798
|
+
disabled: I,
|
|
2799
|
+
options: O,
|
|
2800
|
+
label: D,
|
|
2795
2801
|
multiple: K = !1,
|
|
2796
2802
|
filterable: Z = !0,
|
|
2797
2803
|
formProp: Y = {}
|
|
2798
2804
|
}) => m(dt, te({
|
|
2799
|
-
modelValue:
|
|
2800
|
-
"onUpdate:modelValue": (Q) =>
|
|
2805
|
+
modelValue: c.value[r],
|
|
2806
|
+
"onUpdate:modelValue": (Q) => c.value[r] = Q,
|
|
2801
2807
|
clearable: !0,
|
|
2802
|
-
disabled:
|
|
2808
|
+
disabled: I,
|
|
2803
2809
|
multiple: K,
|
|
2804
2810
|
filterable: Z,
|
|
2805
2811
|
onChange: () => a()
|
|
2806
2812
|
}, Y, {
|
|
2807
|
-
placeholder: (Y == null ? void 0 : Y.placeholder) ||
|
|
2813
|
+
placeholder: (Y == null ? void 0 : Y.placeholder) || R || `请选择${D || ""}`
|
|
2808
2814
|
}), {
|
|
2809
|
-
default: () => [
|
|
2815
|
+
default: () => [O == null ? void 0 : O.map((Q) => m(ct, {
|
|
2810
2816
|
key: Q.value,
|
|
2811
2817
|
label: Q.label,
|
|
2812
2818
|
value: Q.value
|
|
2813
2819
|
}, null))]
|
|
2814
|
-
}),
|
|
2815
|
-
key:
|
|
2816
|
-
disabled:
|
|
2817
|
-
options:
|
|
2818
|
-
formProp:
|
|
2820
|
+
}), j = ({
|
|
2821
|
+
key: r,
|
|
2822
|
+
disabled: R,
|
|
2823
|
+
options: I,
|
|
2824
|
+
formProp: O = {}
|
|
2819
2825
|
}) => m(Fe, te({
|
|
2820
|
-
modelValue:
|
|
2821
|
-
"onUpdate:modelValue": (
|
|
2822
|
-
disabled:
|
|
2826
|
+
modelValue: c.value[r],
|
|
2827
|
+
"onUpdate:modelValue": (D) => c.value[r] = D,
|
|
2828
|
+
disabled: R,
|
|
2823
2829
|
onChange: () => a()
|
|
2824
|
-
},
|
|
2825
|
-
default: () => [
|
|
2826
|
-
key:
|
|
2827
|
-
label:
|
|
2828
|
-
name:
|
|
2830
|
+
}, O), {
|
|
2831
|
+
default: () => [I == null ? void 0 : I.map((D) => (O == null ? void 0 : O.radioType) === "button" ? m(It, {
|
|
2832
|
+
key: D.value,
|
|
2833
|
+
label: D.value,
|
|
2834
|
+
name: D.label
|
|
2829
2835
|
}, null) : m(We, {
|
|
2830
|
-
key:
|
|
2831
|
-
label:
|
|
2832
|
-
name:
|
|
2836
|
+
key: D.value,
|
|
2837
|
+
label: D.value,
|
|
2838
|
+
name: D.label
|
|
2833
2839
|
}, null))]
|
|
2834
2840
|
}), h = ({
|
|
2835
|
-
key:
|
|
2836
|
-
disabled:
|
|
2837
|
-
options:
|
|
2838
|
-
min:
|
|
2839
|
-
max:
|
|
2841
|
+
key: r,
|
|
2842
|
+
disabled: R,
|
|
2843
|
+
options: I,
|
|
2844
|
+
min: O,
|
|
2845
|
+
max: D,
|
|
2840
2846
|
formProp: K = {}
|
|
2841
2847
|
}) => m(He, te({
|
|
2842
|
-
modelValue:
|
|
2843
|
-
"onUpdate:modelValue": (Z) =>
|
|
2844
|
-
disabled:
|
|
2845
|
-
max:
|
|
2846
|
-
min:
|
|
2848
|
+
modelValue: c.value[r],
|
|
2849
|
+
"onUpdate:modelValue": (Z) => c.value[r] = Z,
|
|
2850
|
+
disabled: R,
|
|
2851
|
+
max: D,
|
|
2852
|
+
min: O,
|
|
2847
2853
|
onChange: () => a()
|
|
2848
2854
|
}, K), {
|
|
2849
|
-
default: () => [
|
|
2855
|
+
default: () => [I == null ? void 0 : I.map((Z) => m(Te, {
|
|
2850
2856
|
key: Z.value,
|
|
2851
2857
|
label: Z.label,
|
|
2852
2858
|
value: Z.value
|
|
2853
2859
|
}, null))]
|
|
2854
2860
|
}), oe = ({
|
|
2855
|
-
key:
|
|
2856
|
-
label:
|
|
2857
|
-
formProp:
|
|
2858
|
-
placeholder:
|
|
2861
|
+
key: r,
|
|
2862
|
+
label: R,
|
|
2863
|
+
formProp: I = {},
|
|
2864
|
+
placeholder: O
|
|
2859
2865
|
}) => m(pt, te({
|
|
2860
|
-
modelValue:
|
|
2861
|
-
"onUpdate:modelValue": (
|
|
2866
|
+
modelValue: c.value[r],
|
|
2867
|
+
"onUpdate:modelValue": (D) => c.value[r] = D,
|
|
2862
2868
|
onChange: () => a()
|
|
2863
|
-
},
|
|
2864
|
-
placeholder: (
|
|
2865
|
-
}), null),
|
|
2866
|
-
key:
|
|
2867
|
-
disabled:
|
|
2868
|
-
editable:
|
|
2869
|
-
startPlaceholder:
|
|
2870
|
-
endplaceholder:
|
|
2871
|
-
dateType: K =
|
|
2869
|
+
}, I, {
|
|
2870
|
+
placeholder: (I == null ? void 0 : I.placeholder) || O || `请选择${R}时间`
|
|
2871
|
+
}), null), B = ({
|
|
2872
|
+
key: r,
|
|
2873
|
+
disabled: R,
|
|
2874
|
+
editable: I = !0,
|
|
2875
|
+
startPlaceholder: O = "开始日期",
|
|
2876
|
+
endplaceholder: D = "结束日期",
|
|
2877
|
+
dateType: K = Se.date,
|
|
2872
2878
|
format: Z,
|
|
2873
2879
|
placeholder: Y = "请选择日期",
|
|
2874
2880
|
popperclass: Q,
|
|
2875
2881
|
rangeSeparator: Ae = "-",
|
|
2876
|
-
defaultValue:
|
|
2877
|
-
defaultTime:
|
|
2878
|
-
valueFormat:
|
|
2879
|
-
disabledDate:
|
|
2882
|
+
defaultValue: Pe,
|
|
2883
|
+
defaultTime: Ve,
|
|
2884
|
+
valueFormat: Ue,
|
|
2885
|
+
disabledDate: Le = () => !1,
|
|
2880
2886
|
formProp: Oe = {}
|
|
2881
2887
|
}) => {
|
|
2882
2888
|
let ce = Z;
|
|
2883
2889
|
if (ce)
|
|
2884
2890
|
switch (K) {
|
|
2885
|
-
case
|
|
2886
|
-
case
|
|
2891
|
+
case Se.date:
|
|
2892
|
+
case Se.dates:
|
|
2887
2893
|
ce = "YYYY-MM-DD";
|
|
2888
2894
|
break;
|
|
2889
|
-
case
|
|
2895
|
+
case Se.year:
|
|
2890
2896
|
ce = "YYYY";
|
|
2891
2897
|
break;
|
|
2892
|
-
case
|
|
2898
|
+
case Se.month:
|
|
2893
2899
|
ce = "YYYY-MM";
|
|
2894
2900
|
break;
|
|
2895
|
-
case
|
|
2901
|
+
case Se.week:
|
|
2896
2902
|
ce = "YYYY-MM-DD";
|
|
2897
2903
|
break;
|
|
2898
2904
|
default:
|
|
2899
2905
|
ce = "";
|
|
2900
2906
|
}
|
|
2901
2907
|
return m(pt, te({
|
|
2902
|
-
modelValue:
|
|
2903
|
-
"onUpdate:modelValue": (we) =>
|
|
2908
|
+
modelValue: c.value[r],
|
|
2909
|
+
"onUpdate:modelValue": (we) => c.value[r] = we,
|
|
2904
2910
|
onChange: () => a(),
|
|
2905
|
-
disabled:
|
|
2911
|
+
disabled: R,
|
|
2906
2912
|
type: K,
|
|
2907
|
-
editable:
|
|
2908
|
-
startPlaceholder:
|
|
2909
|
-
endPlaceholder:
|
|
2913
|
+
editable: I,
|
|
2914
|
+
startPlaceholder: O,
|
|
2915
|
+
endPlaceholder: D,
|
|
2910
2916
|
rangeSeparator: Ae,
|
|
2911
2917
|
format: ce,
|
|
2912
2918
|
popperClass: Q,
|
|
2913
|
-
defaultValue:
|
|
2914
|
-
defaultTime:
|
|
2915
|
-
valueFormat:
|
|
2916
|
-
disabledDate:
|
|
2919
|
+
defaultValue: Pe,
|
|
2920
|
+
defaultTime: Ve,
|
|
2921
|
+
valueFormat: Ue,
|
|
2922
|
+
disabledDate: Le
|
|
2917
2923
|
}, Oe, {
|
|
2918
2924
|
placeholder: (Oe == null ? void 0 : Oe.placeholder) || Y || "请选择日期"
|
|
2919
2925
|
}), null);
|
|
2920
|
-
},
|
|
2921
|
-
key:
|
|
2922
|
-
options:
|
|
2923
|
-
multiple:
|
|
2924
|
-
filterable:
|
|
2925
|
-
nodeKey:
|
|
2926
|
+
}, $ = ({
|
|
2927
|
+
key: r,
|
|
2928
|
+
options: R,
|
|
2929
|
+
multiple: I = !1,
|
|
2930
|
+
filterable: O = !0,
|
|
2931
|
+
nodeKey: D = "id",
|
|
2926
2932
|
props: K,
|
|
2927
2933
|
highlightCurrent: Z = !0,
|
|
2928
2934
|
defaultExpandAll: Y = !1,
|
|
2929
2935
|
expandOnClickNode: Q = !1,
|
|
2930
2936
|
placeholder: Ae = "全部",
|
|
2931
|
-
checkOnClickNode:
|
|
2932
|
-
showCheckbox:
|
|
2933
|
-
checkStrictly:
|
|
2934
|
-
defaultCheckedKeys:
|
|
2937
|
+
checkOnClickNode: Pe = !1,
|
|
2938
|
+
showCheckbox: Ve = !1,
|
|
2939
|
+
checkStrictly: Ue = !0,
|
|
2940
|
+
defaultCheckedKeys: Le = [],
|
|
2935
2941
|
currentNodeKey: Oe = "",
|
|
2936
2942
|
accordion: ce = !1,
|
|
2937
2943
|
formProp: we = {},
|
|
2938
2944
|
label: n
|
|
2939
2945
|
}) => m(Vt, te({
|
|
2940
|
-
modelValue:
|
|
2941
|
-
"onUpdate:modelValue": (g) =>
|
|
2942
|
-
data:
|
|
2946
|
+
modelValue: c.value[r],
|
|
2947
|
+
"onUpdate:modelValue": (g) => c.value[r] = g,
|
|
2948
|
+
data: R,
|
|
2943
2949
|
onChange: () => a(),
|
|
2944
2950
|
clearable: !0,
|
|
2945
|
-
multiple:
|
|
2951
|
+
multiple: I,
|
|
2946
2952
|
props: K,
|
|
2947
2953
|
placeholder: Ae,
|
|
2948
|
-
filterable:
|
|
2949
|
-
nodeKey:
|
|
2954
|
+
filterable: O,
|
|
2955
|
+
nodeKey: D,
|
|
2950
2956
|
highlightCurrent: Z,
|
|
2951
2957
|
defaultExpandAll: Y,
|
|
2952
2958
|
expandOnClickNode: Q,
|
|
2953
|
-
checkOnClickNode:
|
|
2954
|
-
showCheckbox:
|
|
2955
|
-
checkStrictly:
|
|
2956
|
-
defaultCheckedKeys:
|
|
2959
|
+
checkOnClickNode: Pe,
|
|
2960
|
+
showCheckbox: Ve,
|
|
2961
|
+
checkStrictly: Ue,
|
|
2962
|
+
defaultCheckedKeys: Le,
|
|
2957
2963
|
currentNodeKey: Oe,
|
|
2958
2964
|
accordion: ce
|
|
2959
2965
|
}, we, {
|
|
2960
2966
|
placeholder: (we == null ? void 0 : we.placeholder) || Ae || `请选择${n || ""}`
|
|
2961
|
-
}), null),
|
|
2962
|
-
key:
|
|
2963
|
-
selectKey:
|
|
2964
|
-
placeholder:
|
|
2965
|
-
disabled:
|
|
2966
|
-
options:
|
|
2967
|
+
}), null), T = ({
|
|
2968
|
+
key: r,
|
|
2969
|
+
selectKey: R,
|
|
2970
|
+
placeholder: I,
|
|
2971
|
+
disabled: O,
|
|
2972
|
+
options: D,
|
|
2967
2973
|
multiple: K = !1,
|
|
2968
2974
|
filterable: Z = !0,
|
|
2969
2975
|
formProp: Y = {}
|
|
2970
2976
|
}) => m(Re, te({
|
|
2971
|
-
disabled:
|
|
2972
|
-
modelValue:
|
|
2973
|
-
"onUpdate:modelValue": (Q) =>
|
|
2977
|
+
disabled: O,
|
|
2978
|
+
modelValue: c.value[r],
|
|
2979
|
+
"onUpdate:modelValue": (Q) => c.value[r] = Q,
|
|
2974
2980
|
onBlur: () => a()
|
|
2975
2981
|
}, Y, {
|
|
2976
|
-
placeholder: (Y == null ? void 0 : Y.placeholder) ||
|
|
2982
|
+
placeholder: (Y == null ? void 0 : Y.placeholder) || I || "全部"
|
|
2977
2983
|
}), {
|
|
2978
2984
|
prepend: () => m(dt, te({
|
|
2979
|
-
disabled:
|
|
2985
|
+
disabled: O,
|
|
2980
2986
|
multiple: K,
|
|
2981
2987
|
filterable: Z,
|
|
2982
|
-
modelValue:
|
|
2983
|
-
"onUpdate:modelValue": (Q) =>
|
|
2988
|
+
modelValue: c.value[R],
|
|
2989
|
+
"onUpdate:modelValue": (Q) => c.value[R] = Q,
|
|
2984
2990
|
onChange: () => a()
|
|
2985
2991
|
}, Y), {
|
|
2986
|
-
default: () => [
|
|
2992
|
+
default: () => [D == null ? void 0 : D.map((Q) => m(ct, {
|
|
2987
2993
|
key: Q.value,
|
|
2988
2994
|
label: Q.label,
|
|
2989
2995
|
value: Q.value
|
|
2990
2996
|
}, null))]
|
|
2991
2997
|
})
|
|
2992
|
-
}),
|
|
2993
|
-
q.value = !0,
|
|
2998
|
+
}), W = "", M = "iking", ie = w(null), E = w([]), q = w(!1), ee = w(""), re = /* @__PURE__ */ new Map(), Me = (r) => {
|
|
2999
|
+
q.value = !0, E.value = re.has(r) ? re.get(r) : c.value[r], ee.value = r;
|
|
2994
3000
|
}, me = () => {
|
|
2995
3001
|
re.set(ee.value, []), ee.value = "", a();
|
|
2996
|
-
}, Ge = (
|
|
2997
|
-
var
|
|
2998
|
-
|
|
3002
|
+
}, Ge = (r) => {
|
|
3003
|
+
var R, I;
|
|
3004
|
+
c.value[ee.value] = (R = r.list.map((O) => O.elementName)) == null ? void 0 : R.join(","), re.set(ee.value, r.list), y("search", c.value), y("pickerChange", r), (I = l.search) == null || I.call(l, c.value);
|
|
2999
3005
|
}, Ye = ({
|
|
3000
|
-
key:
|
|
3001
|
-
placeholder:
|
|
3002
|
-
typeOption:
|
|
3003
|
-
_list:
|
|
3004
|
-
maxlength:
|
|
3006
|
+
key: r,
|
|
3007
|
+
placeholder: R,
|
|
3008
|
+
typeOption: I,
|
|
3009
|
+
_list: O,
|
|
3010
|
+
maxlength: D,
|
|
3005
3011
|
minlength: K,
|
|
3006
3012
|
disabled: Z,
|
|
3007
3013
|
formProp: Y
|
|
3008
3014
|
}) => m(Re, te({
|
|
3009
|
-
modelValue:
|
|
3010
|
-
"onUpdate:modelValue": (Q) =>
|
|
3015
|
+
modelValue: c.value[r],
|
|
3016
|
+
"onUpdate:modelValue": (Q) => c.value[r] = Q,
|
|
3011
3017
|
clearable: !0,
|
|
3012
|
-
maxlength:
|
|
3018
|
+
maxlength: D,
|
|
3013
3019
|
minlength: K,
|
|
3014
3020
|
disabled: Z
|
|
3015
3021
|
}, Y, {
|
|
3016
|
-
onClick: () => Me(
|
|
3022
|
+
onClick: () => Me(r),
|
|
3017
3023
|
onClear: () => me(),
|
|
3018
|
-
placeholder: (Y == null ? void 0 : Y.placeholder) ||
|
|
3019
|
-
}), null),
|
|
3020
|
-
switch (
|
|
3024
|
+
placeholder: (Y == null ? void 0 : Y.placeholder) || R || `点击选择${label || "人员"}`
|
|
3025
|
+
}), null), Ie = (r) => {
|
|
3026
|
+
switch (r.type) {
|
|
3021
3027
|
case "":
|
|
3022
3028
|
case void 0:
|
|
3023
3029
|
case _e.input:
|
|
3024
3030
|
case "el-input":
|
|
3025
|
-
return v(
|
|
3031
|
+
return v(r);
|
|
3026
3032
|
case _e.number:
|
|
3027
3033
|
case "el-input-number":
|
|
3028
|
-
return
|
|
3034
|
+
return N(r);
|
|
3029
3035
|
case _e.select:
|
|
3030
3036
|
case "el-select":
|
|
3031
|
-
return
|
|
3037
|
+
return F(r);
|
|
3032
3038
|
case _e.checkbox:
|
|
3033
3039
|
case "el-checkbox":
|
|
3034
|
-
return h(
|
|
3040
|
+
return h(r);
|
|
3035
3041
|
case _e.radio:
|
|
3036
3042
|
case "el-radio-group":
|
|
3037
3043
|
case "el-radio":
|
|
3038
|
-
return
|
|
3044
|
+
return j(r);
|
|
3039
3045
|
case _e.date:
|
|
3040
3046
|
case "el-date-picker":
|
|
3041
|
-
return
|
|
3047
|
+
return B(r);
|
|
3042
3048
|
case "el-time-select":
|
|
3043
|
-
return oe(
|
|
3049
|
+
return oe(r);
|
|
3044
3050
|
case _e.treeselect:
|
|
3045
3051
|
case "el-tree-select":
|
|
3046
|
-
return
|
|
3052
|
+
return $(r);
|
|
3047
3053
|
case _e.choosePerson:
|
|
3048
|
-
return Ye(
|
|
3054
|
+
return Ye(r);
|
|
3049
3055
|
case "select-input":
|
|
3050
|
-
return
|
|
3056
|
+
return T(r);
|
|
3051
3057
|
default:
|
|
3052
3058
|
return m(J, null, null);
|
|
3053
3059
|
}
|
|
3054
|
-
}, Qe =
|
|
3055
|
-
var
|
|
3056
|
-
const
|
|
3057
|
-
return (
|
|
3060
|
+
}, Qe = H(() => {
|
|
3061
|
+
var I;
|
|
3062
|
+
const r = [], R = k.value.length - 1;
|
|
3063
|
+
return (I = k.value) == null || I.forEach((O, D) => {
|
|
3058
3064
|
let K, Z;
|
|
3059
|
-
if (!
|
|
3065
|
+
if (!O)
|
|
3060
3066
|
return [];
|
|
3061
|
-
const Y =
|
|
3062
|
-
|
|
3067
|
+
const Y = O.col || 1;
|
|
3068
|
+
r.push(m(Bt, {
|
|
3063
3069
|
xl: {
|
|
3064
3070
|
span: Y * 6
|
|
3065
3071
|
},
|
|
@@ -3073,14 +3079,14 @@ const bn = /* @__PURE__ */ de({
|
|
|
3073
3079
|
span: Y * 24
|
|
3074
3080
|
}
|
|
3075
3081
|
}, {
|
|
3076
|
-
default: () => [
|
|
3082
|
+
default: () => [D === R ? (
|
|
3077
3083
|
// 最后一个form后跟上选项className="last-form"
|
|
3078
3084
|
m("div", {
|
|
3079
3085
|
class: "last-form"
|
|
3080
3086
|
}, [m(ut, {
|
|
3081
|
-
label:
|
|
3082
|
-
prop:
|
|
3083
|
-
}, vt(K =
|
|
3087
|
+
label: O.type === "select-input" ? "" : O.label,
|
|
3088
|
+
prop: O.key
|
|
3089
|
+
}, vt(K = Ie(O)) ? K : {
|
|
3084
3090
|
default: () => [K]
|
|
3085
3091
|
}), m(xe, {
|
|
3086
3092
|
name: "icon-sousuo1",
|
|
@@ -3097,26 +3103,26 @@ const bn = /* @__PURE__ */ de({
|
|
|
3097
3103
|
size: "big",
|
|
3098
3104
|
"show-bg": !0,
|
|
3099
3105
|
width: 40,
|
|
3100
|
-
onClick: () =>
|
|
3106
|
+
onClick: () => o()
|
|
3101
3107
|
}, null)])
|
|
3102
3108
|
) : m(ut, {
|
|
3103
|
-
label:
|
|
3104
|
-
prop:
|
|
3105
|
-
}, vt(Z =
|
|
3109
|
+
label: O.type === "select-input" ? "" : O.label,
|
|
3110
|
+
prop: O.key
|
|
3111
|
+
}, vt(Z = Ie(O)) ? Z : {
|
|
3106
3112
|
default: () => [Z]
|
|
3107
3113
|
})]
|
|
3108
3114
|
}));
|
|
3109
|
-
}),
|
|
3115
|
+
}), r;
|
|
3110
3116
|
});
|
|
3111
3117
|
return () => m(J, null, [m(Pt, {
|
|
3112
3118
|
class: "gl-search-card",
|
|
3113
|
-
shadow:
|
|
3119
|
+
shadow: l.shadow
|
|
3114
3120
|
}, {
|
|
3115
3121
|
default: () => [m(Lt, {
|
|
3116
3122
|
class: "auto-search-form",
|
|
3117
|
-
onKeyup:
|
|
3118
|
-
ref:
|
|
3119
|
-
model:
|
|
3123
|
+
onKeyup: p,
|
|
3124
|
+
ref: e,
|
|
3125
|
+
model: c.value
|
|
3120
3126
|
}, {
|
|
3121
3127
|
default: () => [m(St, {
|
|
3122
3128
|
gutter: 16
|
|
@@ -3126,17 +3132,17 @@ const bn = /* @__PURE__ */ de({
|
|
|
3126
3132
|
})]
|
|
3127
3133
|
}), m(un, {
|
|
3128
3134
|
ref: ie.value,
|
|
3129
|
-
modelValue:
|
|
3130
|
-
"onUpdate:modelValue": (
|
|
3135
|
+
modelValue: E.value,
|
|
3136
|
+
"onUpdate:modelValue": (r) => E.value = r,
|
|
3131
3137
|
show: q.value,
|
|
3132
|
-
"onUpdate:show": (
|
|
3138
|
+
"onUpdate:show": (r) => q.value = r,
|
|
3133
3139
|
"append-to-body": !0,
|
|
3134
3140
|
api: {
|
|
3135
3141
|
methods: "post",
|
|
3136
|
-
url: `${
|
|
3142
|
+
url: `${W}/server/component/pick/mix`,
|
|
3137
3143
|
headers: {
|
|
3138
3144
|
"Content-Type": "application/json;charset=UTF-8",
|
|
3139
|
-
Authorization:
|
|
3145
|
+
Authorization: M
|
|
3140
3146
|
}
|
|
3141
3147
|
},
|
|
3142
3148
|
tabs: ["group", "role", "post"],
|
|
@@ -3152,7 +3158,7 @@ const bn = /* @__PURE__ */ de({
|
|
|
3152
3158
|
id: "elementId",
|
|
3153
3159
|
type: "elementType"
|
|
3154
3160
|
},
|
|
3155
|
-
onOk: (
|
|
3161
|
+
onOk: (r) => Ge(r)
|
|
3156
3162
|
}, null)]);
|
|
3157
3163
|
}
|
|
3158
3164
|
}), _n = bn, xn = { class: "header-left" }, On = { class: "title" }, wn = { class: "flex items-center" }, Cn = /* @__PURE__ */ de({
|
|
@@ -3221,50 +3227,50 @@ const bn = /* @__PURE__ */ de({
|
|
|
3221
3227
|
modelModifiers: {}
|
|
3222
3228
|
}),
|
|
3223
3229
|
emits: ["update:modelValue"],
|
|
3224
|
-
setup(
|
|
3230
|
+
setup(l) {
|
|
3225
3231
|
gt((k) => ({
|
|
3226
|
-
"59e2b6b4":
|
|
3232
|
+
"59e2b6b4": b
|
|
3227
3233
|
}));
|
|
3228
|
-
const y =
|
|
3229
|
-
|
|
3230
|
-
},
|
|
3234
|
+
const y = l, t = Ze(l, "modelValue"), e = w(y.defaultShow), A = () => {
|
|
3235
|
+
e.value = !e.value;
|
|
3236
|
+
}, d = H(() => y.fields.filter((k) => !k.onlyForm)), x = H(() => {
|
|
3231
3237
|
var k;
|
|
3232
|
-
return (k = y.fields) == null ? void 0 : k.filter((
|
|
3233
|
-
}),
|
|
3234
|
-
return (k,
|
|
3238
|
+
return (k = y.fields) == null ? void 0 : k.filter((C) => C.search);
|
|
3239
|
+
}), c = H(() => x.value.length), b = `${y.headerHeight}px`;
|
|
3240
|
+
return (k, C) => {
|
|
3235
3241
|
const z = ne("el-card");
|
|
3236
3242
|
return s(), f(
|
|
3237
3243
|
"div",
|
|
3238
3244
|
{
|
|
3239
|
-
class: ue(["ik-page-header", { "show-search":
|
|
3245
|
+
class: ue(["ik-page-header", { "show-search": e.value }])
|
|
3240
3246
|
},
|
|
3241
3247
|
[
|
|
3242
|
-
|
|
3248
|
+
u(
|
|
3243
3249
|
"div",
|
|
3244
3250
|
{
|
|
3245
3251
|
class: "header",
|
|
3246
3252
|
style: ye({
|
|
3247
|
-
borderColor:
|
|
3248
|
-
marginBottom:
|
|
3253
|
+
borderColor: l.headerBorder ? "var(--ik-border-color)" : "transparent",
|
|
3254
|
+
marginBottom: l.headerBorder ? "8px" : "0"
|
|
3249
3255
|
})
|
|
3250
3256
|
},
|
|
3251
3257
|
[
|
|
3252
|
-
|
|
3258
|
+
u("div", xn, [
|
|
3253
3259
|
_(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),
|
|
3254
|
-
|
|
3260
|
+
u(
|
|
3255
3261
|
"span",
|
|
3256
3262
|
On,
|
|
3257
|
-
X(
|
|
3263
|
+
X(l.headerTitle),
|
|
3258
3264
|
1
|
|
3259
3265
|
/* TEXT */
|
|
3260
3266
|
),
|
|
3261
3267
|
ve(k.$slots, "headerLeft", {}, void 0, !0)
|
|
3262
3268
|
]),
|
|
3263
3269
|
_(" 默认按钮 "),
|
|
3264
|
-
|
|
3270
|
+
u("div", wn, [
|
|
3265
3271
|
_(" 右侧操作或自定义内容 "),
|
|
3266
3272
|
ve(k.$slots, "headerRight", {}, void 0, !0),
|
|
3267
|
-
|
|
3273
|
+
l.exportBtn ? (s(), U(P(xe), {
|
|
3268
3274
|
key: 0,
|
|
3269
3275
|
name: "iksvg_xiazai",
|
|
3270
3276
|
type: "primary",
|
|
@@ -3272,21 +3278,21 @@ const bn = /* @__PURE__ */ de({
|
|
|
3272
3278
|
"show-bg": "",
|
|
3273
3279
|
size: "default"
|
|
3274
3280
|
})) : _("v-if", !0),
|
|
3275
|
-
|
|
3281
|
+
c.value ? (s(), U(P(xe), {
|
|
3276
3282
|
key: 1,
|
|
3277
3283
|
name: "iksvg_shaixuan1",
|
|
3278
3284
|
size: "default",
|
|
3279
|
-
title:
|
|
3285
|
+
title: e.value ? "收起筛选条件" : "展开筛选条件",
|
|
3280
3286
|
"show-bg": "",
|
|
3281
3287
|
onClick: A
|
|
3282
3288
|
}, null, 8, ["title"])) : _("v-if", !0),
|
|
3283
|
-
|
|
3289
|
+
l.refreshBtn ? (s(), U(P(xe), {
|
|
3284
3290
|
key: 2,
|
|
3285
3291
|
name: "iksvg_zhongzhi1",
|
|
3286
3292
|
title: "保留搜索条件刷新",
|
|
3287
3293
|
"show-bg": "",
|
|
3288
3294
|
size: "default",
|
|
3289
|
-
onClick:
|
|
3295
|
+
onClick: l.search
|
|
3290
3296
|
}, null, 8, ["onClick"])) : _("v-if", !0),
|
|
3291
3297
|
_(` <IkSvgIcon\r
|
|
3292
3298
|
name="icon-shezhi"\r
|
|
@@ -3294,12 +3300,12 @@ const bn = /* @__PURE__ */ de({
|
|
|
3294
3300
|
:width="40"\r
|
|
3295
3301
|
size="small"\r
|
|
3296
3302
|
/> `),
|
|
3297
|
-
m(
|
|
3298
|
-
modelValue:
|
|
3299
|
-
"onUpdate:modelValue":
|
|
3303
|
+
m(P(gn), {
|
|
3304
|
+
modelValue: t.value,
|
|
3305
|
+
"onUpdate:modelValue": C[0] || (C[0] = (i) => t.value = i),
|
|
3300
3306
|
title: "设置表格字段",
|
|
3301
|
-
list:
|
|
3302
|
-
tab:
|
|
3307
|
+
list: d.value,
|
|
3308
|
+
tab: l.tabId
|
|
3303
3309
|
}, null, 8, ["modelValue", "list", "tab"])
|
|
3304
3310
|
])
|
|
3305
3311
|
],
|
|
@@ -3310,17 +3316,17 @@ const bn = /* @__PURE__ */ de({
|
|
|
3310
3316
|
shadow: "always",
|
|
3311
3317
|
class: "search-form"
|
|
3312
3318
|
}, {
|
|
3313
|
-
default:
|
|
3314
|
-
m(
|
|
3315
|
-
list:
|
|
3316
|
-
search:
|
|
3317
|
-
loading:
|
|
3319
|
+
default: S(() => [
|
|
3320
|
+
m(P(_n), {
|
|
3321
|
+
list: x.value,
|
|
3322
|
+
search: l.search,
|
|
3323
|
+
loading: l.loading
|
|
3318
3324
|
}, null, 8, ["list", "search", "loading"]),
|
|
3319
|
-
|
|
3325
|
+
u("span", {
|
|
3320
3326
|
class: "hide-serch",
|
|
3321
3327
|
onClick: A
|
|
3322
3328
|
}, [
|
|
3323
|
-
m(
|
|
3329
|
+
m(P(xe), {
|
|
3324
3330
|
title: "收起",
|
|
3325
3331
|
rotate: "180",
|
|
3326
3332
|
name: "icon-shouqi"
|
|
@@ -3482,45 +3488,45 @@ const Bn = /* @__PURE__ */ se(Cn, [["__scopeId", "data-v-659625f1"]]), mt = {
|
|
|
3482
3488
|
}
|
|
3483
3489
|
},
|
|
3484
3490
|
emits: ["currentChange", "sizeChange"],
|
|
3485
|
-
setup(
|
|
3486
|
-
const
|
|
3487
|
-
he(() =>
|
|
3491
|
+
setup(l, { emit: y }) {
|
|
3492
|
+
const t = l, e = y, A = w(1);
|
|
3493
|
+
he(() => t.current, (k) => {
|
|
3488
3494
|
A.value = k;
|
|
3489
3495
|
});
|
|
3490
|
-
const
|
|
3491
|
-
|
|
3496
|
+
const d = [15, 30, 60, 100, 200, 500], x = w(d[0]), c = (k) => {
|
|
3497
|
+
e("sizeChange", k), t == null || t.search({
|
|
3492
3498
|
page: A.value,
|
|
3493
|
-
rows:
|
|
3499
|
+
rows: x.value
|
|
3494
3500
|
});
|
|
3495
|
-
},
|
|
3496
|
-
|
|
3501
|
+
}, b = (k) => {
|
|
3502
|
+
e("currentChange", k), t == null || t.search({
|
|
3497
3503
|
page: A.value,
|
|
3498
|
-
rows:
|
|
3504
|
+
rows: x.value
|
|
3499
3505
|
});
|
|
3500
3506
|
};
|
|
3501
|
-
return (k,
|
|
3507
|
+
return (k, C) => {
|
|
3502
3508
|
const z = ne("el-pagination");
|
|
3503
|
-
return s(),
|
|
3509
|
+
return s(), U(z, te({
|
|
3504
3510
|
"current-page": A.value,
|
|
3505
|
-
"onUpdate:currentPage":
|
|
3506
|
-
"page-size":
|
|
3507
|
-
"onUpdate:pageSize":
|
|
3511
|
+
"onUpdate:currentPage": C[0] || (C[0] = (i) => A.value = i),
|
|
3512
|
+
"page-size": x.value,
|
|
3513
|
+
"onUpdate:pageSize": C[1] || (C[1] = (i) => x.value = i)
|
|
3508
3514
|
}, k.$attrs, {
|
|
3509
3515
|
layout: "slot, ->, sizes, prev, pager, next, jumper",
|
|
3510
|
-
small:
|
|
3511
|
-
total:
|
|
3512
|
-
"page-sizes":
|
|
3516
|
+
small: l.mini,
|
|
3517
|
+
total: l.total,
|
|
3518
|
+
"page-sizes": d,
|
|
3513
3519
|
class: "ik-pagin-action",
|
|
3514
|
-
onSizeChange:
|
|
3515
|
-
onCurrentChange:
|
|
3520
|
+
onSizeChange: c,
|
|
3521
|
+
onCurrentChange: b
|
|
3516
3522
|
}), {
|
|
3517
|
-
default:
|
|
3518
|
-
|
|
3523
|
+
default: S(() => [
|
|
3524
|
+
u("span", Pn, [
|
|
3519
3525
|
le(" 共"),
|
|
3520
|
-
|
|
3526
|
+
u(
|
|
3521
3527
|
"span",
|
|
3522
3528
|
Ln,
|
|
3523
|
-
X(
|
|
3529
|
+
X(l.total),
|
|
3524
3530
|
1
|
|
3525
3531
|
/* TEXT */
|
|
3526
3532
|
),
|
|
@@ -3537,52 +3543,52 @@ const Tn = /* @__PURE__ */ se(Sn, [["__scopeId", "data-v-e7b4fc6e"]]), In = /* @
|
|
|
3537
3543
|
__name: "IkPageTable",
|
|
3538
3544
|
props: mt,
|
|
3539
3545
|
emits: ["selection-change", "page-change"],
|
|
3540
|
-
setup(
|
|
3541
|
-
var
|
|
3542
|
-
const
|
|
3543
|
-
page: ((
|
|
3546
|
+
setup(l, { expose: y, emit: t }) {
|
|
3547
|
+
var i;
|
|
3548
|
+
const e = l, A = t, { attrs: d } = xt(), x = w({
|
|
3549
|
+
page: ((i = d.page) == null ? void 0 : i.page) || 1,
|
|
3544
3550
|
rows: 15
|
|
3545
|
-
}),
|
|
3546
|
-
const { page: a, rows:
|
|
3547
|
-
return
|
|
3548
|
-
v.__index = a === 1 ?
|
|
3549
|
-
}),
|
|
3550
|
-
}),
|
|
3551
|
-
|
|
3552
|
-
}, k =
|
|
3551
|
+
}), c = H(() => {
|
|
3552
|
+
const { page: a, rows: p } = (d == null ? void 0 : d.page) || x.value, o = ae.cloneDeep(e.tableData);
|
|
3553
|
+
return o.forEach((v, N) => {
|
|
3554
|
+
v.__index = a === 1 ? N + 1 : (a - 1) * p + N + 1;
|
|
3555
|
+
}), o;
|
|
3556
|
+
}), b = (a) => {
|
|
3557
|
+
x.value = a, A("page-change", a), e.search();
|
|
3558
|
+
}, k = w([]), C = (a) => {
|
|
3553
3559
|
k.value = a, A("selection-change", a);
|
|
3554
|
-
}, z =
|
|
3555
|
-
return y({ table: z }), (a,
|
|
3556
|
-
var
|
|
3557
|
-
const
|
|
3560
|
+
}, z = w();
|
|
3561
|
+
return y({ table: z }), (a, p) => {
|
|
3562
|
+
var F, j, h;
|
|
3563
|
+
const o = ne("el-table-column"), v = ne("el-table"), N = Je("loading");
|
|
3558
3564
|
return s(), f(
|
|
3559
3565
|
J,
|
|
3560
3566
|
null,
|
|
3561
3567
|
[
|
|
3562
3568
|
_(" 自定义表格 "),
|
|
3563
|
-
(
|
|
3569
|
+
(F = a.$slots) != null && F.table ? ve(a.$slots, "table", { key: 0 }, void 0, !0) : (s(), f(
|
|
3564
3570
|
J,
|
|
3565
3571
|
{ key: 1 },
|
|
3566
3572
|
[
|
|
3567
3573
|
_(" 默认表格 "),
|
|
3568
3574
|
m(yt, { name: "el-zoom-in-center" }, {
|
|
3569
|
-
default:
|
|
3570
|
-
|
|
3575
|
+
default: S(() => [
|
|
3576
|
+
Be((s(), U(v, te({
|
|
3571
3577
|
ref_key: "refTable",
|
|
3572
3578
|
ref: z
|
|
3573
|
-
}, { ...a.$attrs, ...
|
|
3574
|
-
data:
|
|
3579
|
+
}, { ...a.$attrs, ...e }, {
|
|
3580
|
+
data: c.value,
|
|
3575
3581
|
style: { width: "100%" },
|
|
3576
|
-
onSelectionChange:
|
|
3582
|
+
onSelectionChange: C
|
|
3577
3583
|
}), {
|
|
3578
|
-
default:
|
|
3579
|
-
a.selection ? (s(),
|
|
3584
|
+
default: S(() => [
|
|
3585
|
+
a.selection ? (s(), U(o, {
|
|
3580
3586
|
key: 0,
|
|
3581
3587
|
type: "selection",
|
|
3582
3588
|
align: "center",
|
|
3583
3589
|
width: "56"
|
|
3584
3590
|
})) : _("v-if", !0),
|
|
3585
|
-
a.serial ? (s(),
|
|
3591
|
+
a.serial ? (s(), U(o, {
|
|
3586
3592
|
key: 1,
|
|
3587
3593
|
prop: "__index",
|
|
3588
3594
|
label: "序号",
|
|
@@ -3594,7 +3600,7 @@ const Tn = /* @__PURE__ */ se(Sn, [["__scopeId", "data-v-e7b4fc6e"]]), In = /* @
|
|
|
3594
3600
|
_: 3
|
|
3595
3601
|
/* FORWARDED */
|
|
3596
3602
|
}, 16, ["data"])), [
|
|
3597
|
-
[
|
|
3603
|
+
[N, a.loading]
|
|
3598
3604
|
])
|
|
3599
3605
|
]),
|
|
3600
3606
|
_: 3
|
|
@@ -3605,11 +3611,11 @@ const Tn = /* @__PURE__ */ se(Sn, [["__scopeId", "data-v-e7b4fc6e"]]), In = /* @
|
|
|
3605
3611
|
/* STABLE_FRAGMENT */
|
|
3606
3612
|
)),
|
|
3607
3613
|
_(" 分页 "),
|
|
3608
|
-
a.total ? (s(),
|
|
3614
|
+
a.total ? (s(), U(Tn, {
|
|
3609
3615
|
key: 2,
|
|
3610
|
-
current: ((h = (
|
|
3616
|
+
current: ((h = (j = a.$attrs) == null ? void 0 : j.page) == null ? void 0 : h.page) || 1,
|
|
3611
3617
|
total: a.total,
|
|
3612
|
-
search:
|
|
3618
|
+
search: b
|
|
3613
3619
|
}, null, 8, ["current", "total"])) : _("v-if", !0)
|
|
3614
3620
|
],
|
|
3615
3621
|
64
|
|
@@ -3631,45 +3637,45 @@ const Vn = /* @__PURE__ */ se(In, [["__scopeId", "data-v-7e61d7f1"]]), Un = { cl
|
|
|
3631
3637
|
modelModifiers: {}
|
|
3632
3638
|
}),
|
|
3633
3639
|
emits: /* @__PURE__ */ ze(["selection-change", "delete", "download", "addFunction"], ["update:modelValue"]),
|
|
3634
|
-
setup(
|
|
3635
|
-
const
|
|
3636
|
-
var
|
|
3637
|
-
(
|
|
3640
|
+
setup(l, { expose: y, emit: t }) {
|
|
3641
|
+
const e = l, A = t, d = Ze(l, "modelValue"), x = () => {
|
|
3642
|
+
var B;
|
|
3643
|
+
(B = d == null ? void 0 : d.value) != null && B.page && (d.value = {
|
|
3638
3644
|
page: 1,
|
|
3639
3645
|
rows: 15
|
|
3640
3646
|
});
|
|
3641
3647
|
};
|
|
3642
|
-
|
|
3643
|
-
const
|
|
3644
|
-
|
|
3645
|
-
...
|
|
3646
|
-
...
|
|
3648
|
+
x();
|
|
3649
|
+
const c = (B) => {
|
|
3650
|
+
d.value = {
|
|
3651
|
+
...d.value,
|
|
3652
|
+
...B
|
|
3647
3653
|
};
|
|
3648
|
-
},
|
|
3649
|
-
var
|
|
3650
|
-
|
|
3651
|
-
const
|
|
3652
|
-
|
|
3653
|
-
...
|
|
3654
|
-
|
|
3655
|
-
}, (
|
|
3656
|
-
...
|
|
3654
|
+
}, b = (B) => {
|
|
3655
|
+
var T;
|
|
3656
|
+
x();
|
|
3657
|
+
const $ = (B == null ? void 0 : B.type) === "click" ? {} : B;
|
|
3658
|
+
d.value = {
|
|
3659
|
+
...d.value,
|
|
3660
|
+
...$
|
|
3661
|
+
}, (T = e == null ? void 0 : e.search) == null || T.call(e, {
|
|
3662
|
+
...d.value
|
|
3657
3663
|
});
|
|
3658
|
-
}, k =
|
|
3659
|
-
k.value =
|
|
3660
|
-
}, z =
|
|
3661
|
-
|
|
3662
|
-
}, oe =
|
|
3664
|
+
}, k = w([]), C = (B) => {
|
|
3665
|
+
k.value = B, A("selection-change", B);
|
|
3666
|
+
}, z = H(() => k.value.length || e.chooseLen), i = w(e.fields), a = H(() => "light"), p = w(), o = w(), v = w(), N = w(!1), F = w(void 0), j = w(e.title || ""), h = (B) => {
|
|
3667
|
+
F.value = B ? { ...B } : null, e.title ? e.title.includes("新增") || e.title.includes("修改") ? j.value = B ? e.title.replace(/新增/g, "修改") : e.title.replace(/修改/g, "新增") : j.value = B ? `修改${e.title}` : `新增${e.title}` : j.value = B ? "修改" : "新增", N.value = !0;
|
|
3668
|
+
}, oe = H(() => e.fields.find((B) => B.isEdit));
|
|
3663
3669
|
return y({
|
|
3664
|
-
table:
|
|
3665
|
-
header:
|
|
3670
|
+
table: p,
|
|
3671
|
+
header: o,
|
|
3666
3672
|
chooseList: k,
|
|
3667
|
-
srotFields:
|
|
3668
|
-
pageData:
|
|
3673
|
+
srotFields: i,
|
|
3674
|
+
pageData: d,
|
|
3669
3675
|
dialog: v,
|
|
3670
3676
|
handAdd: h
|
|
3671
|
-
}), (
|
|
3672
|
-
const
|
|
3677
|
+
}), (B, $) => {
|
|
3678
|
+
const T = ne("el-button"), W = ne("IkNumberDuration"), M = ne("el-table-column"), ie = Je("role");
|
|
3673
3679
|
return s(), f(
|
|
3674
3680
|
J,
|
|
3675
3681
|
null,
|
|
@@ -3677,31 +3683,31 @@ const Vn = /* @__PURE__ */ se(In, [["__scopeId", "data-v-7e61d7f1"]]), Un = { cl
|
|
|
3677
3683
|
_(" 标题 + 搜索表单 "),
|
|
3678
3684
|
m(Bn, te({
|
|
3679
3685
|
ref_key: "refHeader",
|
|
3680
|
-
ref:
|
|
3681
|
-
}, { ...
|
|
3682
|
-
modelValue:
|
|
3683
|
-
"onUpdate:modelValue":
|
|
3684
|
-
loading:
|
|
3685
|
-
search:
|
|
3686
|
-
"tab-id":
|
|
3686
|
+
ref: o
|
|
3687
|
+
}, { ...B.$attrs, ...e }, {
|
|
3688
|
+
modelValue: i.value,
|
|
3689
|
+
"onUpdate:modelValue": $[1] || ($[1] = (E) => i.value = E),
|
|
3690
|
+
loading: B.loading,
|
|
3691
|
+
search: b,
|
|
3692
|
+
"tab-id": B.tabId
|
|
3687
3693
|
}), {
|
|
3688
|
-
headerLeft:
|
|
3689
|
-
ve(
|
|
3694
|
+
headerLeft: S(() => [
|
|
3695
|
+
ve(B.$slots, "headerLeft", {}, void 0, !0)
|
|
3690
3696
|
]),
|
|
3691
|
-
headerRight:
|
|
3692
|
-
ve(
|
|
3693
|
-
oe.value ?
|
|
3697
|
+
headerRight: S(() => [
|
|
3698
|
+
ve(B.$slots, "headerRight", {}, () => [
|
|
3699
|
+
oe.value ? Be((s(), U(T, {
|
|
3694
3700
|
key: 0,
|
|
3695
3701
|
type: "primary",
|
|
3696
|
-
onClick:
|
|
3702
|
+
onClick: $[0] || ($[0] = (E) => h(null))
|
|
3697
3703
|
}, {
|
|
3698
|
-
default:
|
|
3704
|
+
default: S(() => [
|
|
3699
3705
|
le(" 新增 ")
|
|
3700
3706
|
]),
|
|
3701
3707
|
_: 1
|
|
3702
3708
|
/* STABLE */
|
|
3703
3709
|
})), [
|
|
3704
|
-
[ie,
|
|
3710
|
+
[ie, B.role]
|
|
3705
3711
|
]) : _("v-if", !0)
|
|
3706
3712
|
], !0)
|
|
3707
3713
|
]),
|
|
@@ -3709,36 +3715,36 @@ const Vn = /* @__PURE__ */ se(In, [["__scopeId", "data-v-7e61d7f1"]]), Un = { cl
|
|
|
3709
3715
|
/* FORWARDED */
|
|
3710
3716
|
}, 16, ["modelValue", "loading", "tab-id"]),
|
|
3711
3717
|
_(" 选中表格项 "),
|
|
3712
|
-
|
|
3718
|
+
B.selection ? (s(), f(
|
|
3713
3719
|
"div",
|
|
3714
3720
|
{
|
|
3715
3721
|
key: 0,
|
|
3716
3722
|
class: ue(["hand-selection", { select: z.value }])
|
|
3717
3723
|
},
|
|
3718
3724
|
[
|
|
3719
|
-
|
|
3725
|
+
u("p", Un, [
|
|
3720
3726
|
le(" 已选 "),
|
|
3721
|
-
|
|
3722
|
-
m(
|
|
3727
|
+
u("span", null, [
|
|
3728
|
+
m(W, { value: z.value }, null, 8, ["value"])
|
|
3723
3729
|
]),
|
|
3724
3730
|
le(" 条 ")
|
|
3725
3731
|
]),
|
|
3726
|
-
|
|
3727
|
-
|
|
3732
|
+
u("div", $n, [
|
|
3733
|
+
B.$slots.selectionRight ? ve(B.$slots, "selectionRight", { key: 1 }, void 0, !0) : (s(), f(
|
|
3728
3734
|
J,
|
|
3729
3735
|
{ key: 0 },
|
|
3730
3736
|
[
|
|
3731
|
-
m(
|
|
3737
|
+
m(P(xe), {
|
|
3732
3738
|
name: "icon-shanchu",
|
|
3733
3739
|
"show-bg": "",
|
|
3734
3740
|
size: "default",
|
|
3735
|
-
onClick:
|
|
3741
|
+
onClick: $[2] || ($[2] = (E) => B.$emit("delete", k.value))
|
|
3736
3742
|
}),
|
|
3737
|
-
m(
|
|
3743
|
+
m(P(xe), {
|
|
3738
3744
|
ize: "default",
|
|
3739
3745
|
name: "icon-xiazai",
|
|
3740
3746
|
"show-bg": "",
|
|
3741
|
-
onClick:
|
|
3747
|
+
onClick: $[3] || ($[3] = (E) => B.$emit("download", k.value))
|
|
3742
3748
|
})
|
|
3743
3749
|
],
|
|
3744
3750
|
64
|
|
@@ -3750,56 +3756,56 @@ const Vn = /* @__PURE__ */ se(In, [["__scopeId", "data-v-7e61d7f1"]]), Un = { cl
|
|
|
3750
3756
|
/* CLASS */
|
|
3751
3757
|
)) : _("v-if", !0),
|
|
3752
3758
|
_(" 自定义表格 "),
|
|
3753
|
-
ve(
|
|
3759
|
+
ve(B.$slots, "table", {}, () => [
|
|
3754
3760
|
m(Vn, te({
|
|
3755
3761
|
ref_key: "refTable",
|
|
3756
|
-
ref:
|
|
3757
|
-
page:
|
|
3758
|
-
}, { ...
|
|
3759
|
-
onPageChange:
|
|
3760
|
-
onSelectionChange:
|
|
3762
|
+
ref: p,
|
|
3763
|
+
page: d.value
|
|
3764
|
+
}, { ...B.$attrs, ...e }, {
|
|
3765
|
+
onPageChange: c,
|
|
3766
|
+
onSelectionChange: C
|
|
3761
3767
|
}), {
|
|
3762
|
-
default:
|
|
3768
|
+
default: S(() => [
|
|
3763
3769
|
(s(!0), f(
|
|
3764
3770
|
J,
|
|
3765
3771
|
null,
|
|
3766
|
-
ge(
|
|
3772
|
+
ge(i.value, (E) => (s(), f(
|
|
3767
3773
|
J,
|
|
3768
3774
|
{
|
|
3769
|
-
key:
|
|
3775
|
+
key: E.key
|
|
3770
3776
|
},
|
|
3771
3777
|
[
|
|
3772
|
-
|
|
3778
|
+
E.show ? (s(), f(
|
|
3773
3779
|
J,
|
|
3774
3780
|
{ key: 0 },
|
|
3775
3781
|
[
|
|
3776
|
-
|
|
3782
|
+
E.tableSlot ? (s(), U(M, te({
|
|
3777
3783
|
key: 1,
|
|
3778
|
-
align:
|
|
3779
|
-
width:
|
|
3780
|
-
"min-width":
|
|
3784
|
+
align: E.align,
|
|
3785
|
+
width: E.width,
|
|
3786
|
+
"min-width": E.minWidth,
|
|
3781
3787
|
"show-overflow-tooltip": {
|
|
3782
3788
|
effect: a.value ?? "light"
|
|
3783
3789
|
},
|
|
3784
3790
|
ref_for: !0
|
|
3785
|
-
}, { ...
|
|
3786
|
-
default:
|
|
3787
|
-
ve(
|
|
3791
|
+
}, { ...E, ...B.$attrs, ...e }), {
|
|
3792
|
+
default: S((q) => [
|
|
3793
|
+
ve(B.$slots, E.tableSlot, { data: q }, void 0, !0)
|
|
3788
3794
|
]),
|
|
3789
3795
|
_: 2
|
|
3790
3796
|
/* DYNAMIC */
|
|
3791
|
-
}, 1040, ["align", "width", "min-width", "show-overflow-tooltip"])) : (s(),
|
|
3797
|
+
}, 1040, ["align", "width", "min-width", "show-overflow-tooltip"])) : (s(), U(M, te({
|
|
3792
3798
|
key: 0,
|
|
3793
|
-
prop:
|
|
3794
|
-
width:
|
|
3795
|
-
"min-width":
|
|
3796
|
-
align:
|
|
3799
|
+
prop: E.key,
|
|
3800
|
+
width: E.width,
|
|
3801
|
+
"min-width": E.minWidth,
|
|
3802
|
+
align: E.align,
|
|
3797
3803
|
"show-overflow-tooltip": {
|
|
3798
3804
|
effect: a.value ?? "light"
|
|
3799
3805
|
},
|
|
3800
3806
|
"show-arrow": !1,
|
|
3801
3807
|
ref_for: !0
|
|
3802
|
-
}, { ...
|
|
3808
|
+
}, { ...E, ...B.$attrs, ...e }), null, 16, ["prop", "width", "min-width", "align", "show-overflow-tooltip"]))
|
|
3803
3809
|
],
|
|
3804
3810
|
64
|
|
3805
3811
|
/* STABLE_FRAGMENT */
|