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