iking-web-ui-pro 0.3.4 → 0.3.5
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/IkApprovalProcessDetail/ik.index.es.js +612 -640
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +151 -179
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +274 -302
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +148 -176
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1494 -1522
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1462 -1490
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +142 -170
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +210 -238
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +356 -384
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +624 -652
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1438 -1466
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +571 -599
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +324 -352
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +163 -191
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +129 -157
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +690 -718
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +353 -381
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +199 -227
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/index.es.js +6833 -6861
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElCheckbox as
|
|
3
|
-
import { ikColor as Ut, ikStore as
|
|
1
|
+
import { defineComponent as re, openBlock as n, createElementBlock as m, createElementVNode as d, inject as _e, computed as z, resolveComponent as ne, normalizeClass as fe, normalizeStyle as Ee, Fragment as q, createBlock as D, withCtx as U, mergeProps as te, createTextVNode as le, toDisplayString as X, createCommentVNode as B, ref as C, unref as T, renderList as ge, createVNode as A, useCssVars as ft, watch as pe, toRef as gt, reactive as lt, nextTick as at, watchEffect as nt, withModifiers as De, withDirectives as Ce, vShow as mt, mergeModels as Me, useModel as Ke, resolveDirective as Ze, createSlots as yt, Transition as ht, renderSlot as ve, isVNode as At, getCurrentInstance as kt } from "vue";
|
|
2
|
+
import { ElCheckbox as Se, ElCheckboxGroup as je, ElRadioGroup as He, ElRadio as Fe, ElDialog as bt, ElButton as Xe, ElInput as Ne, ElBreadcrumb as xt, ElBreadcrumbItem as Ot, vLoading as qe, ElCol as wt, ElFormItem as st, ElCard as Ct, ElForm as Bt, ElRow as Pt, ElInputNumber as Lt, ElSelect as ot, ElOption as it, ElRadioButton as St, ElDatePicker as rt, ElTreeSelect as Tt } from "element-plus";
|
|
3
|
+
import { ikColor as Ut, ikStore as Te, _ as ae, ikEvent as It } from "iking-utils-pro";
|
|
4
4
|
import Vt from "axios";
|
|
5
5
|
import _t from "vuedraggable";
|
|
6
|
-
const
|
|
6
|
+
const ze = (l, c) => (l.install = (t) => {
|
|
7
7
|
for (const e of [l, ...Object.values({})])
|
|
8
8
|
t.component(e.name, e);
|
|
9
9
|
}, l);
|
|
10
10
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
11
|
-
var Dt = /* @__PURE__ */
|
|
11
|
+
var Dt = /* @__PURE__ */ re({
|
|
12
12
|
name: "DCaret",
|
|
13
13
|
__name: "d-caret",
|
|
14
14
|
setup(l) {
|
|
@@ -83,17 +83,17 @@ const se = (l, c) => {
|
|
|
83
83
|
"mp4",
|
|
84
84
|
"flv",
|
|
85
85
|
"tls"
|
|
86
|
-
],
|
|
87
|
-
const c =
|
|
86
|
+
], Et = (l) => {
|
|
87
|
+
const c = _e("loadUrl"), t = z(() => l.loadUrl || l.fileUrl || (c == null ? void 0 : c.value)), e = _e("uploadUrl"), k = z(() => l.action || l.uploadUrl || (e == null ? void 0 : e.value)), f = _e("token"), x = z(() => l.token || (f == null ? void 0 : f.value)), h = _e("onlyofficeConfig"), F = z(() => l.onlyofficeConfig || (h == null ? void 0 : h.value)), b = _e("userInfo"), O = z(() => l.userInfo || (b == null ? void 0 : b.value)), v = [...ut, ...ut.map((i) => i.toLocaleUpperCase())];
|
|
88
88
|
return {
|
|
89
89
|
cLoadUrl: t,
|
|
90
90
|
cUploadUrl: k,
|
|
91
91
|
cToken: x,
|
|
92
|
-
cOnlyofficeConfig:
|
|
92
|
+
cOnlyofficeConfig: F,
|
|
93
93
|
cUserInfo: O,
|
|
94
|
-
cOnlyofficePreviewType:
|
|
94
|
+
cOnlyofficePreviewType: v
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, zt = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "h-[1em] w-[1em]",
|
|
99
99
|
"aria-hidden": "true"
|
|
@@ -101,7 +101,7 @@ const se = (l, c) => {
|
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "h-[1em] w-[1em]",
|
|
103
103
|
"aria-hidden": "true"
|
|
104
|
-
}, Ht = ["xlink:href"], Ft = ["src"], Wt = /* @__PURE__ */
|
|
104
|
+
}, Ht = ["xlink:href"], Ft = ["src"], Wt = /* @__PURE__ */ re({
|
|
105
105
|
name: "IkSvgIcon",
|
|
106
106
|
__name: "index",
|
|
107
107
|
props: {
|
|
@@ -130,29 +130,28 @@ const se = (l, c) => {
|
|
|
130
130
|
},
|
|
131
131
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
132
132
|
setup(l, { emit: c }) {
|
|
133
|
-
const t = l, e =
|
|
134
|
-
const { name:
|
|
135
|
-
return /^http?:\/\//.test(
|
|
136
|
-
}),
|
|
137
|
-
const
|
|
133
|
+
const t = l, e = z(() => t), k = z(() => {
|
|
134
|
+
const { name: v } = e.value;
|
|
135
|
+
return /^http?:\/\//.test(v) ? "img" : /i-[^:]+:[^:]+/.test(v) ? "unocss" : v != null && v.startsWith("iksig") ? "iksig" : v != null && v.includes(":") ? "iconify" : v != null && v.startsWith("iksvg") ? "svg" : "i";
|
|
136
|
+
}), f = z(() => {
|
|
137
|
+
const v = [];
|
|
138
138
|
if (e.value.flip)
|
|
139
139
|
switch (e.value.flip) {
|
|
140
140
|
case "horizontal":
|
|
141
|
-
|
|
141
|
+
v.push("rotateY(180deg)");
|
|
142
142
|
break;
|
|
143
143
|
case "vertical":
|
|
144
|
-
|
|
144
|
+
v.push("rotateX(180deg)");
|
|
145
145
|
break;
|
|
146
146
|
case "both":
|
|
147
|
-
|
|
147
|
+
v.push("rotateX(180deg)"), v.push("rotateY(180deg)");
|
|
148
148
|
break;
|
|
149
149
|
}
|
|
150
|
-
e.value.rotate &&
|
|
150
|
+
e.value.rotate && v.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
151
151
|
const i = {
|
|
152
|
-
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
153
152
|
...e.value.color && { color: e.value.color },
|
|
154
153
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
155
|
-
...
|
|
154
|
+
...v.length && { transform: v.join(" ") },
|
|
156
155
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
157
156
|
...e.value.color && k.value !== "iksig" ? {
|
|
158
157
|
"--ik-icon-deep-color": e.value.color,
|
|
@@ -160,121 +159,96 @@ const se = (l, c) => {
|
|
|
160
159
|
} : {}
|
|
161
160
|
};
|
|
162
161
|
return e.value.width && (i.width = i.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), i;
|
|
163
|
-
}), x = c,
|
|
164
|
-
x("click",
|
|
165
|
-
},
|
|
166
|
-
x("mouseenter",
|
|
167
|
-
}, b = (
|
|
168
|
-
x("mouseleave",
|
|
169
|
-
}, O = (
|
|
170
|
-
x("dblclick",
|
|
162
|
+
}), x = c, h = (v) => {
|
|
163
|
+
x("click", v);
|
|
164
|
+
}, F = (v) => {
|
|
165
|
+
x("mouseenter", v);
|
|
166
|
+
}, b = (v) => {
|
|
167
|
+
x("mouseleave", v);
|
|
168
|
+
}, O = (v) => {
|
|
169
|
+
x("dblclick", v);
|
|
171
170
|
};
|
|
172
|
-
return (
|
|
171
|
+
return (v, i) => {
|
|
173
172
|
const a = ne("el-tooltip"), r = ne("el-button");
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
{
|
|
173
|
+
return n(), m(
|
|
174
|
+
"i",
|
|
175
|
+
{
|
|
176
|
+
class: fe(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
177
|
+
[v.iconClass]: !0,
|
|
178
|
+
[v.name]: k.value === "unocss",
|
|
179
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
180
|
+
default: e.value.size === "default",
|
|
181
|
+
small: e.value.size === "small",
|
|
182
|
+
big: e.value.size === "big",
|
|
183
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
184
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
185
|
+
success: v.success || e.value.type === "success",
|
|
186
|
+
error: e.value.error || e.value.type === "error",
|
|
187
|
+
active: e.value.active,
|
|
188
|
+
disabled: e.value.disabled
|
|
189
|
+
}]),
|
|
190
|
+
style: Ee(f.value),
|
|
191
|
+
onClick: h,
|
|
192
|
+
onDblclick: O,
|
|
193
|
+
onMouseenter: F,
|
|
194
|
+
onMouseleave: b
|
|
195
|
+
},
|
|
177
196
|
[
|
|
178
|
-
e.value.
|
|
179
|
-
|
|
180
|
-
{
|
|
181
|
-
key: 0,
|
|
182
|
-
class: re(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
183
|
-
[h.iconClass]: !0,
|
|
184
|
-
[h.name]: k.value === "unocss",
|
|
185
|
-
"show-bg": e.value.showBg || e.value.bg,
|
|
186
|
-
default: e.value.size === "default",
|
|
187
|
-
small: e.value.size === "small",
|
|
188
|
-
big: e.value.size === "big",
|
|
189
|
-
warning: e.value.warning || e.value.type === "warning",
|
|
190
|
-
primary: e.value.primary || e.value.type === "primary",
|
|
191
|
-
success: h.success || e.value.type === "success",
|
|
192
|
-
error: e.value.error || e.value.type === "error",
|
|
193
|
-
active: e.value.active,
|
|
194
|
-
disabled: e.value.disabled
|
|
195
|
-
}]),
|
|
196
|
-
style: ye(p.value),
|
|
197
|
-
onClick: v,
|
|
198
|
-
onDblclick: O,
|
|
199
|
-
onMouseenter: j,
|
|
200
|
-
onMouseleave: b
|
|
201
|
-
},
|
|
197
|
+
e.value.tableIconType === "icon" || !e.value.tableIconType ? (n(), m(
|
|
198
|
+
q,
|
|
199
|
+
{ key: 0 },
|
|
202
200
|
[
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
{
|
|
206
|
-
key: 0,
|
|
207
|
-
class: re(`iksig ${e.value.name}`),
|
|
208
|
-
style: ye(p.value)
|
|
209
|
-
},
|
|
210
|
-
null,
|
|
211
|
-
6
|
|
212
|
-
/* CLASS, STYLE */
|
|
213
|
-
)) : k.value === "svg" ? (n(), m("svg", Et, [
|
|
214
|
-
d("use", {
|
|
215
|
-
"xlink:href": `#${e.value.name}`
|
|
216
|
-
}, null, 8, Rt)
|
|
217
|
-
])) : k.value === "img" ? (n(), m("img", {
|
|
218
|
-
key: 2,
|
|
219
|
-
src: e.value.name,
|
|
220
|
-
class: "h-[1em] w-[1em]"
|
|
221
|
-
}, null, 8, Nt)) : (n(), m(
|
|
222
|
-
"i",
|
|
223
|
-
{
|
|
224
|
-
key: 3,
|
|
225
|
-
class: re(e.value.name),
|
|
226
|
-
style: ye(p.value)
|
|
227
|
-
},
|
|
228
|
-
null,
|
|
229
|
-
6
|
|
230
|
-
/* CLASS, STYLE */
|
|
231
|
-
))
|
|
232
|
-
],
|
|
233
|
-
38
|
|
234
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
235
|
-
)) : (n(), D(a, {
|
|
236
|
-
key: 1,
|
|
237
|
-
content: e.value.title,
|
|
238
|
-
placement: "top",
|
|
239
|
-
"popper-class": "ik-svg-icon-tooltip",
|
|
240
|
-
"hide-after": 0
|
|
241
|
-
}, {
|
|
242
|
-
default: U(() => [
|
|
243
|
-
d(
|
|
244
|
-
"i",
|
|
245
|
-
{
|
|
246
|
-
class: re(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
247
|
-
[h.iconClass]: !0,
|
|
248
|
-
[h.name]: k.value === "unocss",
|
|
249
|
-
"show-bg": e.value.showBg || e.value.bg,
|
|
250
|
-
default: e.value.size === "default",
|
|
251
|
-
small: e.value.size === "small",
|
|
252
|
-
big: e.value.size === "big",
|
|
253
|
-
warning: e.value.warning || e.value.type === "warning",
|
|
254
|
-
primary: h.primary || e.value.type === "primary",
|
|
255
|
-
success: h.success || e.value.type === "success",
|
|
256
|
-
error: e.value.error || e.value.type === "error",
|
|
257
|
-
active: e.value.active,
|
|
258
|
-
disabled: e.value.disabled,
|
|
259
|
-
...h.$attrs.class || {}
|
|
260
|
-
}]),
|
|
261
|
-
style: ye(p.value),
|
|
262
|
-
onClick: v,
|
|
263
|
-
onDblclick: O,
|
|
264
|
-
onMouseenter: j,
|
|
265
|
-
onMouseleave: b
|
|
266
|
-
},
|
|
201
|
+
e.value.notip || !e.value.title ? (n(), m(
|
|
202
|
+
q,
|
|
203
|
+
{ key: 0 },
|
|
267
204
|
[
|
|
268
205
|
k.value === "iksig" ? (n(), m(
|
|
269
206
|
"i",
|
|
270
207
|
{
|
|
271
208
|
key: 0,
|
|
272
|
-
class:
|
|
273
|
-
|
|
209
|
+
class: fe(`iksig ${e.value.name}`)
|
|
210
|
+
},
|
|
211
|
+
null,
|
|
212
|
+
2
|
|
213
|
+
/* CLASS */
|
|
214
|
+
)) : k.value === "svg" ? (n(), m("svg", zt, [
|
|
215
|
+
d("use", {
|
|
216
|
+
"xlink:href": `#${e.value.name}`
|
|
217
|
+
}, null, 8, Rt)
|
|
218
|
+
])) : k.value === "img" ? (n(), m("img", {
|
|
219
|
+
key: 2,
|
|
220
|
+
src: e.value.name,
|
|
221
|
+
class: "h-[1em] w-[1em]"
|
|
222
|
+
}, null, 8, Nt)) : (n(), m(
|
|
223
|
+
"i",
|
|
224
|
+
{
|
|
225
|
+
key: 3,
|
|
226
|
+
class: fe(e.value.name)
|
|
274
227
|
},
|
|
275
228
|
null,
|
|
276
|
-
|
|
277
|
-
/* CLASS
|
|
229
|
+
2
|
|
230
|
+
/* CLASS */
|
|
231
|
+
))
|
|
232
|
+
],
|
|
233
|
+
64
|
|
234
|
+
/* STABLE_FRAGMENT */
|
|
235
|
+
)) : (n(), D(a, {
|
|
236
|
+
key: 1,
|
|
237
|
+
content: e.value.title,
|
|
238
|
+
placement: "top",
|
|
239
|
+
"popper-class": "ik-svg-icon-tooltip",
|
|
240
|
+
"hide-after": 0
|
|
241
|
+
}, {
|
|
242
|
+
default: U(() => [
|
|
243
|
+
k.value === "iksig" ? (n(), m(
|
|
244
|
+
"i",
|
|
245
|
+
{
|
|
246
|
+
key: 0,
|
|
247
|
+
class: fe(`iksig ${e.value.name}`)
|
|
248
|
+
},
|
|
249
|
+
null,
|
|
250
|
+
2
|
|
251
|
+
/* CLASS */
|
|
278
252
|
)) : k.value === "svg" ? (n(), m("svg", jt, [
|
|
279
253
|
d("use", {
|
|
280
254
|
"xlink:href": `#${e.value.name}`
|
|
@@ -287,41 +261,39 @@ const se = (l, c) => {
|
|
|
287
261
|
"i",
|
|
288
262
|
{
|
|
289
263
|
key: 3,
|
|
290
|
-
class:
|
|
291
|
-
style: ye(p.value)
|
|
264
|
+
class: fe(e.value.name)
|
|
292
265
|
},
|
|
293
266
|
null,
|
|
294
|
-
|
|
295
|
-
/* CLASS
|
|
267
|
+
2
|
|
268
|
+
/* CLASS */
|
|
296
269
|
))
|
|
297
|
-
],
|
|
298
|
-
|
|
299
|
-
/*
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
/* STABLE */
|
|
273
|
+
}, 8, ["content"]))
|
|
274
|
+
],
|
|
275
|
+
64
|
|
276
|
+
/* STABLE_FRAGMENT */
|
|
277
|
+
)) : (n(), D(r, te({ key: 1 }, v.$attrs, {
|
|
278
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
279
|
+
}), {
|
|
280
|
+
default: U(() => [
|
|
281
|
+
le(
|
|
282
|
+
X(e.value.title),
|
|
283
|
+
1
|
|
284
|
+
/* TEXT */
|
|
300
285
|
)
|
|
301
286
|
]),
|
|
302
287
|
_: 1
|
|
303
288
|
/* STABLE */
|
|
304
|
-
},
|
|
289
|
+
}, 16, ["type"]))
|
|
305
290
|
],
|
|
306
|
-
|
|
307
|
-
/*
|
|
308
|
-
)
|
|
309
|
-
key: 1,
|
|
310
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
311
|
-
}, {
|
|
312
|
-
default: U(() => [
|
|
313
|
-
le(
|
|
314
|
-
X(e.value.title),
|
|
315
|
-
1
|
|
316
|
-
/* TEXT */
|
|
317
|
-
)
|
|
318
|
-
]),
|
|
319
|
-
_: 1
|
|
320
|
-
/* STABLE */
|
|
321
|
-
}, 8, ["type"]));
|
|
291
|
+
38
|
|
292
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
293
|
+
);
|
|
322
294
|
};
|
|
323
295
|
}
|
|
324
|
-
}), Gt = /* @__PURE__ */ se(Wt, [["__scopeId", "data-v-
|
|
296
|
+
}), Gt = /* @__PURE__ */ se(Wt, [["__scopeId", "data-v-2648e369"]]), xe = ze(Gt), Yt = {}, Qt = {
|
|
325
297
|
t: "1672194715727",
|
|
326
298
|
class: "icon",
|
|
327
299
|
viewBox: "0 0 1024 1024",
|
|
@@ -498,13 +470,13 @@ function cl(l, c) {
|
|
|
498
470
|
)
|
|
499
471
|
]));
|
|
500
472
|
}
|
|
501
|
-
const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" },
|
|
473
|
+
const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, hl = {
|
|
502
474
|
key: 3,
|
|
503
475
|
class: "user_box"
|
|
504
|
-
},
|
|
476
|
+
}, vl = {
|
|
505
477
|
key: 1,
|
|
506
478
|
class: "avatar_name"
|
|
507
|
-
}, gl = /* @__PURE__ */
|
|
479
|
+
}, gl = /* @__PURE__ */ re({
|
|
508
480
|
__name: "Avatar",
|
|
509
481
|
props: {
|
|
510
482
|
fixPropOpt: {
|
|
@@ -528,18 +500,18 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
528
500
|
}
|
|
529
501
|
},
|
|
530
502
|
setup(l) {
|
|
531
|
-
const c = l, { cLoadUrl: t } =
|
|
532
|
-
return (k,
|
|
503
|
+
const c = l, { cLoadUrl: t } = Et(c), e = (k) => Mt(t.value, k);
|
|
504
|
+
return (k, f) => {
|
|
533
505
|
const x = ne("el-avatar");
|
|
534
506
|
return n(), m("div", fl, [
|
|
535
|
-
c.fixTypeOpt.group === l.element[c.fixPropOpt.type] ? (n(), D(pl, { key: 0 })) : c.fixTypeOpt.role === l.element[c.fixPropOpt.type] ? (n(), D(nl, { key: 1 })) : c.fixTypeOpt.post === l.element[c.fixPropOpt.type] ? (n(), D(rl, { key: 2 })) : c.fixTypeOpt.user === l.element[c.fixPropOpt.type] ? (n(), m("div",
|
|
507
|
+
c.fixTypeOpt.group === l.element[c.fixPropOpt.type] ? (n(), D(pl, { key: 0 })) : c.fixTypeOpt.role === l.element[c.fixPropOpt.type] ? (n(), D(nl, { key: 1 })) : c.fixTypeOpt.post === l.element[c.fixPropOpt.type] ? (n(), D(rl, { key: 2 })) : c.fixTypeOpt.user === l.element[c.fixPropOpt.type] ? (n(), m("div", hl, [
|
|
536
508
|
l.element[l.fixPropOpt.avatar] ? (n(), D(x, {
|
|
537
509
|
key: 0,
|
|
538
510
|
shape: "square",
|
|
539
511
|
src: e(l.fixPropOpt.avatar ? l.element[l.fixPropOpt.avatar] : "")
|
|
540
512
|
}, null, 8, ["src"])) : (n(), m(
|
|
541
513
|
"div",
|
|
542
|
-
|
|
514
|
+
vl,
|
|
543
515
|
X(l.element[l.fixPropOpt.name].slice(-2)),
|
|
544
516
|
1
|
|
545
517
|
/* TEXT */
|
|
@@ -548,7 +520,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
548
520
|
]);
|
|
549
521
|
};
|
|
550
522
|
}
|
|
551
|
-
}),
|
|
523
|
+
}), he = /* @__PURE__ */ se(gl, [["__scopeId", "data-v-8031ce9b"]]), Je = "data:image/webp;base64,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", et = {
|
|
552
524
|
// 所有数据
|
|
553
525
|
list: {
|
|
554
526
|
type: Array,
|
|
@@ -606,7 +578,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
606
578
|
// 传['dep', 'user', 'role']则选择人员、部门和角色
|
|
607
579
|
default: () => ["dep"]
|
|
608
580
|
}
|
|
609
|
-
},
|
|
581
|
+
}, ml = { class: "left-pick-list" }, yl = {
|
|
610
582
|
key: 1,
|
|
611
583
|
class: "post-view-list"
|
|
612
584
|
}, Al = { class: "checkText" }, kl = { class: "iconBox" }, bl = { class: "name_number" }, xl = { class: "title" }, Ol = {
|
|
@@ -624,52 +596,52 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
624
596
|
}, Dl = {
|
|
625
597
|
key: 1,
|
|
626
598
|
class: "checkText"
|
|
627
|
-
}, $l = { class: "iconBox" }, Ml = { class: "name_number" },
|
|
599
|
+
}, $l = { class: "iconBox" }, Ml = { class: "name_number" }, El = { class: "title" }, zl = {
|
|
628
600
|
key: 0,
|
|
629
601
|
class: "userCount"
|
|
630
602
|
}, Rl = ["onClick"], Nl = {
|
|
631
603
|
key: 2,
|
|
632
604
|
class: "empty"
|
|
633
|
-
}, jl = /* @__PURE__ */
|
|
605
|
+
}, jl = /* @__PURE__ */ re({
|
|
634
606
|
__name: "GroupList",
|
|
635
607
|
props: et,
|
|
636
608
|
emits: ["change", "check", "handChild"],
|
|
637
609
|
setup(l, { emit: c }) {
|
|
638
610
|
var i, a;
|
|
639
|
-
const t = l, e =
|
|
611
|
+
const t = l, e = z(() => {
|
|
640
612
|
var r, o;
|
|
641
613
|
return ((r = t.handList) == null ? void 0 : r.length) === ((o = t.list) == null ? void 0 : o.length);
|
|
642
|
-
}), k =
|
|
643
|
-
var y,
|
|
644
|
-
const r = (y = t.handList) == null ? void 0 : y.length, o = (
|
|
645
|
-
return t.multiple ?
|
|
646
|
-
}),
|
|
614
|
+
}), k = z(() => {
|
|
615
|
+
var y, j, W, H;
|
|
616
|
+
const r = (y = t.handList) == null ? void 0 : y.length, o = (j = t.list) == null ? void 0 : j.length;
|
|
617
|
+
return t.multiple ? f.value = t.handList.map((g) => g[t.fixPropOpt.id]) : x.value = (H = (W = t.handList) == null ? void 0 : W[0]) == null ? void 0 : H[t.fixPropOpt.id], r > 0 && r < o;
|
|
618
|
+
}), f = C(
|
|
647
619
|
t.handList.map((r) => r[t.fixPropOpt.id])
|
|
648
|
-
), x = C((a = (i = t.handList) == null ? void 0 : i[0]) == null ? void 0 : a[t.fixPropOpt.id]),
|
|
620
|
+
), x = C((a = (i = t.handList) == null ? void 0 : i[0]) == null ? void 0 : a[t.fixPropOpt.id]), h = c, F = (r) => {
|
|
649
621
|
const o = r ? t.list.map((y) => {
|
|
650
622
|
if (t.chooseType.includes(y[t.fixPropOpt.type].toLowerCase()) && y.available !== !1)
|
|
651
623
|
return y[t.fixPropOpt.id];
|
|
652
624
|
}) : [];
|
|
653
|
-
|
|
625
|
+
h("change", o, r ? t.list : []);
|
|
654
626
|
}, b = (r) => {
|
|
655
|
-
|
|
627
|
+
h("change", r, t.list);
|
|
656
628
|
}, O = (r) => {
|
|
657
|
-
|
|
658
|
-
},
|
|
659
|
-
o ||
|
|
629
|
+
h("change", r, t.list);
|
|
630
|
+
}, v = (r, o) => {
|
|
631
|
+
o || h("handChild", r);
|
|
660
632
|
};
|
|
661
633
|
return (r, o) => (n(), m(
|
|
662
634
|
q,
|
|
663
635
|
null,
|
|
664
636
|
[
|
|
665
637
|
B(" 遍历list多选 "),
|
|
666
|
-
d("div",
|
|
667
|
-
r.multiple && r.list && r.list.length ? (n(), D(T(
|
|
638
|
+
d("div", ml, [
|
|
639
|
+
r.multiple && r.list && r.list.length ? (n(), D(T(Se), {
|
|
668
640
|
key: 0,
|
|
669
641
|
modelValue: e.value,
|
|
670
642
|
"onUpdate:modelValue": o[0] || (o[0] = (y) => e.value = y),
|
|
671
643
|
indeterminate: k.value,
|
|
672
|
-
onChange:
|
|
644
|
+
onChange: F
|
|
673
645
|
}, {
|
|
674
646
|
default: U(() => o[3] || (o[3] = [
|
|
675
647
|
le("全选")
|
|
@@ -677,11 +649,11 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
677
649
|
_: 1
|
|
678
650
|
/* STABLE */
|
|
679
651
|
}, 8, ["modelValue", "indeterminate"])) : B("v-if", !0),
|
|
680
|
-
r.list && r.list.length ? (n(), m("ul",
|
|
652
|
+
r.list && r.list.length ? (n(), m("ul", yl, [
|
|
681
653
|
r.multiple ? (n(), D(T(je), {
|
|
682
654
|
key: 0,
|
|
683
|
-
modelValue:
|
|
684
|
-
"onUpdate:modelValue": o[1] || (o[1] = (y) =>
|
|
655
|
+
modelValue: f.value,
|
|
656
|
+
"onUpdate:modelValue": o[1] || (o[1] = (y) => f.value = y),
|
|
685
657
|
onChange: b
|
|
686
658
|
}, {
|
|
687
659
|
default: U(() => [
|
|
@@ -689,13 +661,13 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
689
661
|
q,
|
|
690
662
|
null,
|
|
691
663
|
ge(r.list, (y) => {
|
|
692
|
-
var
|
|
664
|
+
var j;
|
|
693
665
|
return n(), m("li", {
|
|
694
666
|
key: y[t.fixPropOpt.id]
|
|
695
667
|
}, [
|
|
696
668
|
r.chooseType.includes(
|
|
697
669
|
y[t.fixPropOpt.type].toLowerCase()
|
|
698
|
-
) && y.available !== !1 ? (n(), D(T(
|
|
670
|
+
) && y.available !== !1 ? (n(), D(T(Se), {
|
|
699
671
|
key: 0,
|
|
700
672
|
label: y[t.fixPropOpt.id],
|
|
701
673
|
disabled: y.available === !1
|
|
@@ -703,7 +675,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
703
675
|
default: U(() => [
|
|
704
676
|
d("div", Al, [
|
|
705
677
|
d("div", kl, [
|
|
706
|
-
A(
|
|
678
|
+
A(he, {
|
|
707
679
|
fixTypeOpt: t.fixTypeOpt,
|
|
708
680
|
fixPropOpt: t.fixPropOpt,
|
|
709
681
|
element: y,
|
|
@@ -739,7 +711,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
739
711
|
/* HOISTED */
|
|
740
712
|
)),
|
|
741
713
|
d("div", Cl, [
|
|
742
|
-
A(
|
|
714
|
+
A(he, {
|
|
743
715
|
fixTypeOpt: t.fixTypeOpt,
|
|
744
716
|
fixPropOpt: t.fixPropOpt,
|
|
745
717
|
element: y,
|
|
@@ -765,16 +737,16 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
765
737
|
])),
|
|
766
738
|
y[t.fixPropOpt.type] === t.fixTypeOpt.group && t.children ? (n(), m("span", {
|
|
767
739
|
key: 2,
|
|
768
|
-
class:
|
|
769
|
-
"is-disabled": (
|
|
740
|
+
class: fe(["nextLevel", {
|
|
741
|
+
"is-disabled": (j = f.value) == null ? void 0 : j.find(
|
|
770
742
|
(W) => W === y[t.fixPropOpt.id]
|
|
771
743
|
)
|
|
772
744
|
}]),
|
|
773
745
|
onClick: (W) => {
|
|
774
|
-
var
|
|
775
|
-
return
|
|
746
|
+
var H;
|
|
747
|
+
return v(
|
|
776
748
|
y,
|
|
777
|
-
(
|
|
749
|
+
(H = f.value) == null ? void 0 : H.find((g) => g === y[t.fixPropOpt.id])
|
|
778
750
|
);
|
|
779
751
|
}
|
|
780
752
|
}, " 下级", 10, Sl)) : B("v-if", !0)
|
|
@@ -798,7 +770,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
798
770
|
q,
|
|
799
771
|
null,
|
|
800
772
|
ge(r.list, (y) => {
|
|
801
|
-
var
|
|
773
|
+
var j;
|
|
802
774
|
return n(), m("li", {
|
|
803
775
|
class: "w-full",
|
|
804
776
|
key: y[t.fixPropOpt.id]
|
|
@@ -810,7 +782,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
810
782
|
default: U(() => [
|
|
811
783
|
d("div", Tl, [
|
|
812
784
|
d("div", Ul, [
|
|
813
|
-
A(
|
|
785
|
+
A(he, {
|
|
814
786
|
fixTypeOpt: t.fixTypeOpt,
|
|
815
787
|
fixPropOpt: t.fixPropOpt,
|
|
816
788
|
element: y,
|
|
@@ -846,7 +818,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
846
818
|
/* HOISTED */
|
|
847
819
|
)),
|
|
848
820
|
d("div", $l, [
|
|
849
|
-
A(
|
|
821
|
+
A(he, {
|
|
850
822
|
fixTypeOpt: t.fixTypeOpt,
|
|
851
823
|
fixPropOpt: t.fixPropOpt,
|
|
852
824
|
element: y,
|
|
@@ -856,14 +828,14 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
856
828
|
d("div", Ml, [
|
|
857
829
|
d(
|
|
858
830
|
"div",
|
|
859
|
-
|
|
831
|
+
El,
|
|
860
832
|
X(y[t.fixPropOpt.name]),
|
|
861
833
|
1
|
|
862
834
|
/* TEXT */
|
|
863
835
|
),
|
|
864
836
|
y[t.fixPropOpt.type] === t.fixTypeOpt.group ? (n(), m(
|
|
865
837
|
"div",
|
|
866
|
-
|
|
838
|
+
zl,
|
|
867
839
|
" (" + X(y.userCount) + ") ",
|
|
868
840
|
1
|
|
869
841
|
/* TEXT */
|
|
@@ -872,16 +844,16 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
872
844
|
])),
|
|
873
845
|
y[t.fixPropOpt.type] === t.fixTypeOpt.group && t.children ? (n(), m("span", {
|
|
874
846
|
key: 2,
|
|
875
|
-
class:
|
|
876
|
-
"is-disabled": (
|
|
847
|
+
class: fe(["nextLevel", {
|
|
848
|
+
"is-disabled": (j = f.value) == null ? void 0 : j.find(
|
|
877
849
|
(W) => W === y[t.fixPropOpt.id]
|
|
878
850
|
)
|
|
879
851
|
}]),
|
|
880
852
|
onClick: (W) => {
|
|
881
|
-
var
|
|
882
|
-
return
|
|
853
|
+
var H;
|
|
854
|
+
return v(
|
|
883
855
|
y,
|
|
884
|
-
(
|
|
856
|
+
(H = f.value) == null ? void 0 : H.find((g) => g === y[t.fixPropOpt.id])
|
|
885
857
|
);
|
|
886
858
|
}
|
|
887
859
|
}, " 下级", 10, Rl)) : B("v-if", !0)
|
|
@@ -931,28 +903,28 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
931
903
|
}, Jl = { class: "iconBox" }, ea = { class: "title" }, ta = {
|
|
932
904
|
key: 2,
|
|
933
905
|
class: "empty"
|
|
934
|
-
}, la = /* @__PURE__ */
|
|
906
|
+
}, la = /* @__PURE__ */ re({
|
|
935
907
|
__name: "PostList",
|
|
936
908
|
props: et,
|
|
937
909
|
emits: ["change", "check"],
|
|
938
910
|
setup(l, { emit: c }) {
|
|
939
|
-
var
|
|
940
|
-
const t = l, e =
|
|
911
|
+
var v, i;
|
|
912
|
+
const t = l, e = z(() => {
|
|
941
913
|
var a, r;
|
|
942
914
|
return ((a = t.handList) == null ? void 0 : a.length) === ((r = t.list) == null ? void 0 : r.length);
|
|
943
|
-
}), k =
|
|
944
|
-
var o, y,
|
|
915
|
+
}), k = z(() => {
|
|
916
|
+
var o, y, j, W;
|
|
945
917
|
const a = (o = t.handList) == null ? void 0 : o.length, r = (y = t.list) == null ? void 0 : y.length;
|
|
946
|
-
return t.multiple ?
|
|
947
|
-
}),
|
|
918
|
+
return t.multiple ? f.value = t.handList.map((H) => H[t.fixPropOpt.id]) : x.value = (W = (j = t.handList) == null ? void 0 : j[0]) == null ? void 0 : W[t.fixPropOpt.id], a > 0 && a < r;
|
|
919
|
+
}), f = C(
|
|
948
920
|
t.handList.map((a) => a[t.fixPropOpt.id])
|
|
949
|
-
), x = C((i = (
|
|
921
|
+
), x = C((i = (v = t.handList) == null ? void 0 : v[0]) == null ? void 0 : i[t.fixPropOpt.id]), h = c, F = (a) => {
|
|
950
922
|
const r = a ? t.list.map((o) => o[t.fixPropOpt.id]) : [];
|
|
951
|
-
|
|
923
|
+
h("change", r, a ? t.list : []);
|
|
952
924
|
}, b = (a) => {
|
|
953
|
-
|
|
925
|
+
h("change", a, t.list);
|
|
954
926
|
}, O = (a) => {
|
|
955
|
-
|
|
927
|
+
h("change", a, t.list);
|
|
956
928
|
};
|
|
957
929
|
return (a, r) => (n(), m(
|
|
958
930
|
q,
|
|
@@ -960,12 +932,12 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
960
932
|
[
|
|
961
933
|
B(" 遍历list多选 "),
|
|
962
934
|
d("div", Fl, [
|
|
963
|
-
a.multiple && a.chooseType.includes("post") && a.list && a.list.length ? (n(), D(T(
|
|
935
|
+
a.multiple && a.chooseType.includes("post") && a.list && a.list.length ? (n(), D(T(Se), {
|
|
964
936
|
key: 0,
|
|
965
937
|
modelValue: e.value,
|
|
966
938
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => e.value = o),
|
|
967
939
|
indeterminate: k.value,
|
|
968
|
-
onChange:
|
|
940
|
+
onChange: F
|
|
969
941
|
}, {
|
|
970
942
|
default: U(() => r[3] || (r[3] = [
|
|
971
943
|
le("全选")
|
|
@@ -976,8 +948,8 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
976
948
|
a.list && a.list.length ? (n(), m("ul", Wl, [
|
|
977
949
|
a.multiple ? (n(), D(T(je), {
|
|
978
950
|
key: 0,
|
|
979
|
-
modelValue:
|
|
980
|
-
"onUpdate:modelValue": r[1] || (r[1] = (o) =>
|
|
951
|
+
modelValue: f.value,
|
|
952
|
+
"onUpdate:modelValue": r[1] || (r[1] = (o) => f.value = o),
|
|
981
953
|
onChange: b
|
|
982
954
|
}, {
|
|
983
955
|
default: U(() => [
|
|
@@ -987,13 +959,13 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
987
959
|
ge(a.list, (o) => (n(), m("li", {
|
|
988
960
|
key: o[t.fixPropOpt.id]
|
|
989
961
|
}, [
|
|
990
|
-
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (n(), D(T(
|
|
962
|
+
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (n(), D(T(Se), {
|
|
991
963
|
key: 0,
|
|
992
964
|
label: o[t.fixPropOpt.id]
|
|
993
965
|
}, {
|
|
994
966
|
default: U(() => [
|
|
995
967
|
d("div", Gl, [
|
|
996
|
-
A(
|
|
968
|
+
A(he, {
|
|
997
969
|
fixTypeOpt: t.fixTypeOpt,
|
|
998
970
|
fixPropOpt: t.fixPropOpt,
|
|
999
971
|
element: o,
|
|
@@ -1019,7 +991,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1019
991
|
/* HOISTED */
|
|
1020
992
|
)),
|
|
1021
993
|
d("div", Ql, [
|
|
1022
|
-
A(
|
|
994
|
+
A(he, {
|
|
1023
995
|
fixTypeOpt: t.fixTypeOpt,
|
|
1024
996
|
fixPropOpt: t.fixPropOpt,
|
|
1025
997
|
element: o,
|
|
@@ -1063,7 +1035,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1063
1035
|
default: U(() => [
|
|
1064
1036
|
d("div", ql, [
|
|
1065
1037
|
d("div", Kl, [
|
|
1066
|
-
A(
|
|
1038
|
+
A(he, {
|
|
1067
1039
|
fixTypeOpt: t.fixTypeOpt,
|
|
1068
1040
|
fixPropOpt: t.fixPropOpt,
|
|
1069
1041
|
element: o,
|
|
@@ -1090,7 +1062,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1090
1062
|
/* HOISTED */
|
|
1091
1063
|
)),
|
|
1092
1064
|
d("div", Jl, [
|
|
1093
|
-
A(
|
|
1065
|
+
A(he, {
|
|
1094
1066
|
fixTypeOpt: t.fixTypeOpt,
|
|
1095
1067
|
fixPropOpt: t.fixPropOpt,
|
|
1096
1068
|
element: o,
|
|
@@ -1144,34 +1116,34 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1144
1116
|
}, oa = { class: "iconBox" }, ia = ["title"], ra = {
|
|
1145
1117
|
key: 1,
|
|
1146
1118
|
class: "checkText"
|
|
1147
|
-
}, ua = { class: "iconBox" }, da = ["title"], ca = { class: "ik-picker-single" }, pa = { class: "iconBox" }, fa = ["title"],
|
|
1119
|
+
}, ua = { class: "iconBox" }, da = ["title"], ca = { class: "ik-picker-single" }, pa = { class: "iconBox" }, fa = ["title"], ha = {
|
|
1148
1120
|
key: 1,
|
|
1149
1121
|
class: "checkText"
|
|
1150
|
-
},
|
|
1122
|
+
}, va = { class: "iconBox" }, ga = ["title"], ma = {
|
|
1151
1123
|
key: 2,
|
|
1152
1124
|
class: "empty"
|
|
1153
|
-
},
|
|
1125
|
+
}, ya = /* @__PURE__ */ re({
|
|
1154
1126
|
__name: "RoleList",
|
|
1155
1127
|
props: et,
|
|
1156
1128
|
emits: ["change", "check"],
|
|
1157
1129
|
setup(l, { emit: c }) {
|
|
1158
|
-
var
|
|
1159
|
-
const t = l, e =
|
|
1130
|
+
var v, i;
|
|
1131
|
+
const t = l, e = z(() => {
|
|
1160
1132
|
var a, r;
|
|
1161
1133
|
return ((a = t.handList) == null ? void 0 : a.length) === ((r = t.list) == null ? void 0 : r.length);
|
|
1162
|
-
}), k =
|
|
1163
|
-
var o, y,
|
|
1134
|
+
}), k = z(() => {
|
|
1135
|
+
var o, y, j, W;
|
|
1164
1136
|
const a = (o = t.handList) == null ? void 0 : o.length, r = (y = t.list) == null ? void 0 : y.length;
|
|
1165
|
-
return t.multiple ?
|
|
1166
|
-
}),
|
|
1137
|
+
return t.multiple ? f.value = t.handList.map((H) => H[t.fixPropOpt.id]) : x.value = (W = (j = t.handList) == null ? void 0 : j[0]) == null ? void 0 : W[t.fixPropOpt.id], a > 0 && a < r;
|
|
1138
|
+
}), f = C(
|
|
1167
1139
|
t.handList.map((a) => a[t.fixPropOpt.id])
|
|
1168
|
-
), x = C((i = (
|
|
1140
|
+
), x = C((i = (v = t.handList) == null ? void 0 : v[0]) == null ? void 0 : i[t.fixPropOpt.id]), h = c, F = (a) => {
|
|
1169
1141
|
const r = a ? t.list.map((o) => o[t.fixPropOpt.id]) : [];
|
|
1170
|
-
|
|
1142
|
+
h("change", r, a ? t.list : []);
|
|
1171
1143
|
}, b = (a) => {
|
|
1172
|
-
|
|
1144
|
+
h("change", a, t.list);
|
|
1173
1145
|
}, O = (a) => {
|
|
1174
|
-
|
|
1146
|
+
h("change", a, t.list);
|
|
1175
1147
|
};
|
|
1176
1148
|
return (a, r) => (n(), m(
|
|
1177
1149
|
q,
|
|
@@ -1179,12 +1151,12 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1179
1151
|
[
|
|
1180
1152
|
B(" 遍历list多选 "),
|
|
1181
1153
|
d("div", na, [
|
|
1182
|
-
a.multiple && a.chooseType.includes("role") && a.list && a.list.length ? (n(), D(T(
|
|
1154
|
+
a.multiple && a.chooseType.includes("role") && a.list && a.list.length ? (n(), D(T(Se), {
|
|
1183
1155
|
key: 0,
|
|
1184
1156
|
modelValue: e.value,
|
|
1185
1157
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => e.value = o),
|
|
1186
1158
|
indeterminate: k.value,
|
|
1187
|
-
onChange:
|
|
1159
|
+
onChange: F
|
|
1188
1160
|
}, {
|
|
1189
1161
|
default: U(() => r[3] || (r[3] = [
|
|
1190
1162
|
le("全选")
|
|
@@ -1195,8 +1167,8 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1195
1167
|
a.list && a.list.length ? (n(), m("ul", sa, [
|
|
1196
1168
|
a.multiple ? (n(), D(T(je), {
|
|
1197
1169
|
key: 0,
|
|
1198
|
-
modelValue:
|
|
1199
|
-
"onUpdate:modelValue": r[1] || (r[1] = (o) =>
|
|
1170
|
+
modelValue: f.value,
|
|
1171
|
+
"onUpdate:modelValue": r[1] || (r[1] = (o) => f.value = o),
|
|
1200
1172
|
onChange: b
|
|
1201
1173
|
}, {
|
|
1202
1174
|
default: U(() => [
|
|
@@ -1206,7 +1178,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1206
1178
|
ge(a.list, (o) => (n(), m("li", {
|
|
1207
1179
|
key: o[a.fixPropOpt.id]
|
|
1208
1180
|
}, [
|
|
1209
|
-
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (n(), D(T(
|
|
1181
|
+
a.chooseType.includes(o[t.fixPropOpt.type].toLowerCase()) ? (n(), D(T(Se), {
|
|
1210
1182
|
key: 0,
|
|
1211
1183
|
label: o[a.fixPropOpt.id],
|
|
1212
1184
|
value: o[a.fixPropOpt.id],
|
|
@@ -1214,7 +1186,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1214
1186
|
}, {
|
|
1215
1187
|
default: U(() => [
|
|
1216
1188
|
d("div", oa, [
|
|
1217
|
-
A(
|
|
1189
|
+
A(he, {
|
|
1218
1190
|
fixTypeOpt: t.fixTypeOpt,
|
|
1219
1191
|
fixPropOpt: t.fixPropOpt,
|
|
1220
1192
|
element: o,
|
|
@@ -1236,7 +1208,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1236
1208
|
/* HOISTED */
|
|
1237
1209
|
)),
|
|
1238
1210
|
d("div", ua, [
|
|
1239
|
-
A(
|
|
1211
|
+
A(he, {
|
|
1240
1212
|
fixTypeOpt: t.fixTypeOpt,
|
|
1241
1213
|
fixPropOpt: t.fixPropOpt,
|
|
1242
1214
|
element: o,
|
|
@@ -1279,7 +1251,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1279
1251
|
default: U(() => [
|
|
1280
1252
|
d("div", ca, [
|
|
1281
1253
|
d("div", pa, [
|
|
1282
|
-
A(
|
|
1254
|
+
A(he, {
|
|
1283
1255
|
fixTypeOpt: t.fixTypeOpt,
|
|
1284
1256
|
fixPropOpt: t.fixPropOpt,
|
|
1285
1257
|
element: o,
|
|
@@ -1293,7 +1265,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1293
1265
|
]),
|
|
1294
1266
|
_: 2
|
|
1295
1267
|
/* DYNAMIC */
|
|
1296
|
-
}, 1032, ["label", "value", "disabled"])) : (n(), m("div",
|
|
1268
|
+
}, 1032, ["label", "value", "disabled"])) : (n(), m("div", ha, [
|
|
1297
1269
|
r[5] || (r[5] = d(
|
|
1298
1270
|
"div",
|
|
1299
1271
|
{ class: "side" },
|
|
@@ -1301,8 +1273,8 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1301
1273
|
-1
|
|
1302
1274
|
/* HOISTED */
|
|
1303
1275
|
)),
|
|
1304
|
-
d("div",
|
|
1305
|
-
A(
|
|
1276
|
+
d("div", va, [
|
|
1277
|
+
A(he, {
|
|
1306
1278
|
fixTypeOpt: t.fixTypeOpt,
|
|
1307
1279
|
fixPropOpt: t.fixPropOpt,
|
|
1308
1280
|
element: o,
|
|
@@ -1322,7 +1294,7 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1322
1294
|
_: 1
|
|
1323
1295
|
/* STABLE */
|
|
1324
1296
|
}, 8, ["indeterminate", "modelValue"]))
|
|
1325
|
-
])) : (n(), m("div",
|
|
1297
|
+
])) : (n(), m("div", ma, [
|
|
1326
1298
|
r[6] || (r[6] = d(
|
|
1327
1299
|
"img",
|
|
1328
1300
|
{
|
|
@@ -1347,8 +1319,8 @@ const pl = /* @__PURE__ */ se(ul, [["render", cl]]), fl = { class: "avatar" }, v
|
|
|
1347
1319
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1348
1320
|
));
|
|
1349
1321
|
}
|
|
1350
|
-
}), Aa = /* @__PURE__ */ se(
|
|
1351
|
-
var
|
|
1322
|
+
}), Aa = /* @__PURE__ */ se(ya, [["__scopeId", "data-v-be3b3e45"]]);
|
|
1323
|
+
var $e = /* @__PURE__ */ ((l) => (l.group = "group", l.role = "role", l.post = "post", l))($e || {});
|
|
1352
1324
|
const ka = {
|
|
1353
1325
|
// 是否允许选择子集
|
|
1354
1326
|
children: {
|
|
@@ -1521,7 +1493,7 @@ const ka = {
|
|
|
1521
1493
|
const c = window.location.search;
|
|
1522
1494
|
return new URLSearchParams(c).get(l);
|
|
1523
1495
|
}, ba = (l) => {
|
|
1524
|
-
const c =
|
|
1496
|
+
const c = Te.local.getItem("x_domain");
|
|
1525
1497
|
c && (l["X-DOMAIN"] = c);
|
|
1526
1498
|
}, xa = (l) => {
|
|
1527
1499
|
var t;
|
|
@@ -1532,26 +1504,26 @@ const ka = {
|
|
|
1532
1504
|
c === "APPLICATION" && (l["X-APP"] = e);
|
|
1533
1505
|
} else
|
|
1534
1506
|
ba(l);
|
|
1535
|
-
(t =
|
|
1507
|
+
(t = Te.local.getItem("tenant")) == null || t.code;
|
|
1536
1508
|
}, Oa = (l, c) => {
|
|
1537
|
-
const t = C([]), e = async (
|
|
1509
|
+
const t = C([]), e = async (f, x) => {
|
|
1538
1510
|
var S, P, N;
|
|
1539
|
-
const { url:
|
|
1511
|
+
const { url: h, methods: F, headers: b, param: O } = l.value || {}, v = {
|
|
1540
1512
|
// 额外参数
|
|
1541
|
-
rootDepartmentId: ((S =
|
|
1542
|
-
parentDepartmentId:
|
|
1513
|
+
rootDepartmentId: ((S = Te.local.getItem("now_shop")) == null ? void 0 : S.storeId) || "",
|
|
1514
|
+
parentDepartmentId: f || "",
|
|
1543
1515
|
name: x || "",
|
|
1544
1516
|
rootDepartmentOnly: c.rootDepartmentOnly,
|
|
1545
1517
|
dataScopeOnly: c.dataScopeOnly,
|
|
1546
1518
|
...O || {}
|
|
1547
1519
|
}, i = {
|
|
1548
|
-
method:
|
|
1549
|
-
url:
|
|
1520
|
+
method: F,
|
|
1521
|
+
url: h,
|
|
1550
1522
|
headers: {
|
|
1551
1523
|
"Content-Type": "application/json;charset=UTF-8",
|
|
1552
1524
|
...b
|
|
1553
1525
|
},
|
|
1554
|
-
data: JSON.stringify(
|
|
1526
|
+
data: JSON.stringify(v)
|
|
1555
1527
|
};
|
|
1556
1528
|
xa(i.headers);
|
|
1557
1529
|
const a = await Vt(i), { success: r, data: o } = a.data;
|
|
@@ -1566,9 +1538,9 @@ const ka = {
|
|
|
1566
1538
|
};
|
|
1567
1539
|
const {
|
|
1568
1540
|
departments: y,
|
|
1569
|
-
roles:
|
|
1541
|
+
roles: j,
|
|
1570
1542
|
posts: W,
|
|
1571
|
-
users:
|
|
1543
|
+
users: H,
|
|
1572
1544
|
rootOrganization: g,
|
|
1573
1545
|
rootDepartment: oe
|
|
1574
1546
|
} = o, L = g || oe;
|
|
@@ -1581,78 +1553,78 @@ const ka = {
|
|
|
1581
1553
|
id: L.elementId
|
|
1582
1554
|
}), {
|
|
1583
1555
|
groupList: ae.cloneDeep(y),
|
|
1584
|
-
roleList: ae.cloneDeep(
|
|
1556
|
+
roleList: ae.cloneDeep(j),
|
|
1585
1557
|
postList: ae.cloneDeep(W),
|
|
1586
|
-
userList: ae.cloneDeep(
|
|
1558
|
+
userList: ae.cloneDeep(H),
|
|
1587
1559
|
rootOrganization: g,
|
|
1588
1560
|
rootDepartment: oe
|
|
1589
1561
|
};
|
|
1590
1562
|
};
|
|
1591
1563
|
return {
|
|
1592
1564
|
handData: e,
|
|
1593
|
-
handSetChild: (
|
|
1594
|
-
e(
|
|
1565
|
+
handSetChild: (f, x) => {
|
|
1566
|
+
e(f == null ? void 0 : f.elementId, x);
|
|
1595
1567
|
},
|
|
1596
1568
|
bannerList: t
|
|
1597
1569
|
};
|
|
1598
1570
|
}, wa = {
|
|
1599
1571
|
shadow: "hover",
|
|
1600
1572
|
class: "sel-list"
|
|
1601
|
-
}, Ca = { key: 0 }, Ba = { class: "choose-list" }, Pa = { class: "choose-item" }, La = { class: "choose-box" }, Sa = { class: "list-group-item" }, Ta = { class: "item_info" }, Ua = { class: "avatar_box" }, Ia = { class: "dialog-footer" }, Va = /* @__PURE__ */
|
|
1573
|
+
}, Ca = { key: 0 }, Ba = { class: "choose-list" }, Pa = { class: "choose-item" }, La = { class: "choose-box" }, Sa = { class: "list-group-item" }, Ta = { class: "item_info" }, Ua = { class: "avatar_box" }, Ia = { class: "dialog-footer" }, Va = /* @__PURE__ */ re({
|
|
1602
1574
|
__name: "picker",
|
|
1603
1575
|
props: ka,
|
|
1604
1576
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
1605
1577
|
setup(l, { expose: c, emit: t }) {
|
|
1606
1578
|
ft((s) => ({
|
|
1607
|
-
"775d0d08":
|
|
1579
|
+
"775d0d08": ye.value
|
|
1608
1580
|
}));
|
|
1609
|
-
const e = l, k = C(""),
|
|
1610
|
-
|
|
1581
|
+
const e = l, k = C(""), f = C(""), x = C([]), h = C([]), F = C([]), b = C([]), O = C(!1), v = z(() => N.value.includes("user") ? h.value.concat(x.value) : h.value);
|
|
1582
|
+
pe(
|
|
1611
1583
|
() => e.api,
|
|
1612
1584
|
() => {
|
|
1613
1585
|
e.show && S("");
|
|
1614
1586
|
}
|
|
1615
1587
|
);
|
|
1616
|
-
const i =
|
|
1588
|
+
const i = z(() => ({
|
|
1617
1589
|
name: "name",
|
|
1618
1590
|
type: "type",
|
|
1619
1591
|
id: "id",
|
|
1620
1592
|
avatar: "avatar",
|
|
1621
1593
|
...e.propOption
|
|
1622
|
-
})), a =
|
|
1594
|
+
})), a = z(() => ({
|
|
1623
1595
|
user: "USER",
|
|
1624
1596
|
role: "ROLE",
|
|
1625
1597
|
post: "POST",
|
|
1626
1598
|
group: "DEPT",
|
|
1627
1599
|
...e.typeOption
|
|
1628
|
-
})), r = C([]), o = Oa(gt(e, "api"), e), y = o.handData,
|
|
1629
|
-
e.immediate && y(
|
|
1630
|
-
const W = (s) => (s.forEach((
|
|
1600
|
+
})), r = C([]), o = Oa(gt(e, "api"), e), y = o.handData, j = o.bannerList;
|
|
1601
|
+
e.immediate && y(f.value, k.value);
|
|
1602
|
+
const W = (s) => (s.forEach((p) => {
|
|
1631
1603
|
var I, _;
|
|
1632
|
-
|
|
1633
|
-
(G) => G[i.value.id] ===
|
|
1604
|
+
p.disabled = ((_ = (I = e.modelValue) == null ? void 0 : I.find(
|
|
1605
|
+
(G) => G[i.value.id] === p[i.value.id]
|
|
1634
1606
|
)) == null ? void 0 : _.disabled) || !1;
|
|
1635
|
-
}), s),
|
|
1636
|
-
var s,
|
|
1607
|
+
}), s), H = async () => {
|
|
1608
|
+
var s, p, I, _, G, Ae, Qe, tt;
|
|
1637
1609
|
O.value = !0;
|
|
1638
1610
|
try {
|
|
1639
|
-
if ((s = e.groupList) != null && s.length || (
|
|
1611
|
+
if ((s = e.groupList) != null && s.length || (p = e.userList) != null && p.length || (I = e.roleList) != null && I.length || (_ = e.postList) != null && _.length) {
|
|
1640
1612
|
x.value = (G = e.userList) == null ? void 0 : G.filter(
|
|
1641
|
-
(
|
|
1642
|
-
),
|
|
1643
|
-
(
|
|
1644
|
-
),
|
|
1645
|
-
(
|
|
1613
|
+
(ke) => ke[i.value.name].includes(k.value)
|
|
1614
|
+
), h.value = (Ae = e.groupList) == null ? void 0 : Ae.filter(
|
|
1615
|
+
(ke) => ke[i.value.name].includes(k.value)
|
|
1616
|
+
), F.value = (Qe = e.roleList) == null ? void 0 : Qe.filter(
|
|
1617
|
+
(ke) => ke[i.value.name].includes(k.value)
|
|
1646
1618
|
), b.value = (tt = e.postList) == null ? void 0 : tt.filter(
|
|
1647
|
-
(
|
|
1619
|
+
(ke) => ke[i.value.name].includes(k.value)
|
|
1648
1620
|
), ee(), O.value = !1;
|
|
1649
1621
|
return;
|
|
1650
1622
|
}
|
|
1651
|
-
const
|
|
1623
|
+
const ce = await y(f.value, k.value);
|
|
1652
1624
|
try {
|
|
1653
|
-
x.value = W((
|
|
1654
|
-
} catch (
|
|
1655
|
-
O.value = !1, console.info("error: ",
|
|
1625
|
+
x.value = W((ce == null ? void 0 : ce.userList) || []), h.value = W((ce == null ? void 0 : ce.groupList) || []), F.value = W((ce == null ? void 0 : ce.roleList) || []), b.value = W((ce == null ? void 0 : ce.postList) || []);
|
|
1626
|
+
} catch (ke) {
|
|
1627
|
+
O.value = !1, console.info("error: ", ke);
|
|
1656
1628
|
}
|
|
1657
1629
|
ee(), O.value = !1;
|
|
1658
1630
|
} catch {
|
|
@@ -1674,13 +1646,13 @@ const ka = {
|
|
|
1674
1646
|
}), oe = lt({
|
|
1675
1647
|
indeterminate: !1,
|
|
1676
1648
|
checkAll: 0
|
|
1677
|
-
}), L = (s) => g.group.has(s) || g.user.has(s) || g.role.has(s) || g.post.has(s), S = It.debounce(
|
|
1678
|
-
const s = Array.from(g.group.values()),
|
|
1679
|
-
return r.value = [...
|
|
1680
|
-
list: [...
|
|
1649
|
+
}), L = (s) => g.group.has(s) || g.user.has(s) || g.role.has(s) || g.post.has(s), S = It.debounce(H, 300), P = z(() => {
|
|
1650
|
+
const s = Array.from(g.group.values()), p = Array.from(g.role.values()), I = Array.from(g.user.values()), _ = Array.from(g.post.values());
|
|
1651
|
+
return r.value = [...p, ..._, ...I, ...s], {
|
|
1652
|
+
list: [...p, ...I, ..._, ...s],
|
|
1681
1653
|
role: {
|
|
1682
|
-
list:
|
|
1683
|
-
len:
|
|
1654
|
+
list: p,
|
|
1655
|
+
len: p.length
|
|
1684
1656
|
},
|
|
1685
1657
|
user: {
|
|
1686
1658
|
list: I,
|
|
@@ -1695,33 +1667,33 @@ const ka = {
|
|
|
1695
1667
|
len: s.length
|
|
1696
1668
|
}
|
|
1697
1669
|
};
|
|
1698
|
-
}), N =
|
|
1670
|
+
}), N = z(() => {
|
|
1699
1671
|
const s = e.chooseType.map((I) => I.toLocaleLowerCase());
|
|
1700
|
-
let
|
|
1701
|
-
return s.includes("dep") && (
|
|
1702
|
-
}),
|
|
1703
|
-
|
|
1704
|
-
|
|
1672
|
+
let p = [...s];
|
|
1673
|
+
return s.includes("dep") && (p = [...p, "dept"]), s.includes("dep_user") && (p = [...p, "user"]), p;
|
|
1674
|
+
}), E = C([]), ie = (s) => {
|
|
1675
|
+
E.value = s, E.value.forEach((p) => {
|
|
1676
|
+
p.readonly = p == null ? void 0 : p.disabled;
|
|
1705
1677
|
});
|
|
1706
1678
|
}, M = t, K = C(!1), ee = (s = !1) => {
|
|
1707
1679
|
var I;
|
|
1708
|
-
const
|
|
1709
|
-
return !s && ie(
|
|
1680
|
+
const p = (I = e == null ? void 0 : e.userList) != null && I.length ? ae.cloneDeep([...e == null ? void 0 : e.userList, ...e == null ? void 0 : e.groupList]) : [...h.value, ...x.value];
|
|
1681
|
+
return !s && ie(p), p;
|
|
1710
1682
|
};
|
|
1711
|
-
|
|
1683
|
+
pe(
|
|
1712
1684
|
() => e.show,
|
|
1713
1685
|
async (s) => {
|
|
1714
|
-
var
|
|
1686
|
+
var p;
|
|
1715
1687
|
if (K.value = s, s) {
|
|
1716
|
-
|
|
1688
|
+
f.value = ((p = e.org) == null ? void 0 : p.elementId) || e.orgPid, !e.userList.length && !e.groupList.length && !e.roleList.length && !e.postList.length ? await H() : (x.value = e.userList, h.value = e.groupList, F.value = e.roleList, b.value = e.postList), g.trans = [], oe.checkAll = 0, oe.indeterminate = !1;
|
|
1717
1689
|
const I = ee(!0);
|
|
1718
1690
|
for (const G of I)
|
|
1719
1691
|
L(G[i.value.id]) && g.trans.push(G[i.value.id]);
|
|
1720
1692
|
const _ = I.length === g.trans.length;
|
|
1721
1693
|
oe.indeterminate = !!(I.length && !_), oe.checkAll = Number(I.length && _), at(() => {
|
|
1722
1694
|
var G;
|
|
1723
|
-
(G = e.modelValue) != null && G.length ? e.modelValue.forEach((
|
|
1724
|
-
me(
|
|
1695
|
+
(G = e.modelValue) != null && G.length ? e.modelValue.forEach((Ae) => {
|
|
1696
|
+
me(Ae), e.multiple ? g.trans.push(Ae[i.value.id]) : g.single = Ae[i.value.id];
|
|
1725
1697
|
}) : $();
|
|
1726
1698
|
});
|
|
1727
1699
|
} else
|
|
@@ -1729,22 +1701,22 @@ const ka = {
|
|
|
1729
1701
|
}
|
|
1730
1702
|
), nt(() => {
|
|
1731
1703
|
let s;
|
|
1732
|
-
s =
|
|
1733
|
-
const
|
|
1734
|
-
oe.indeterminate = g.trans.length ?
|
|
1735
|
-
}),
|
|
1704
|
+
s = E.value.length;
|
|
1705
|
+
const p = g.trans.length;
|
|
1706
|
+
oe.indeterminate = g.trans.length ? p !== s : !1, oe.checkAll = +(s !== 0 && p === s);
|
|
1707
|
+
}), pe(
|
|
1736
1708
|
() => e.modelValue,
|
|
1737
1709
|
(s) => {
|
|
1738
|
-
s != null && s.length ? s.forEach((
|
|
1739
|
-
me(
|
|
1710
|
+
s != null && s.length ? s.forEach((p) => {
|
|
1711
|
+
me(p), e.multiple ? g.trans.push(p[i.value.id]) : g.single = p[i.value.id];
|
|
1740
1712
|
}) : $();
|
|
1741
1713
|
}
|
|
1742
1714
|
);
|
|
1743
|
-
const
|
|
1744
|
-
var
|
|
1715
|
+
const ue = (s) => {
|
|
1716
|
+
var p;
|
|
1745
1717
|
if (s) {
|
|
1746
1718
|
if (g.single = "", s[i.value.id]) {
|
|
1747
|
-
const I = (
|
|
1719
|
+
const I = (p = g.trans) == null ? void 0 : p.findIndex(
|
|
1748
1720
|
(_) => _ === s[i.value.id]
|
|
1749
1721
|
);
|
|
1750
1722
|
I !== -1 && g.trans.splice(I, 1);
|
|
@@ -1763,22 +1735,22 @@ const ka = {
|
|
|
1763
1735
|
}
|
|
1764
1736
|
}
|
|
1765
1737
|
}, Re = (s) => {
|
|
1766
|
-
|
|
1738
|
+
ue(s);
|
|
1767
1739
|
}, me = (s) => {
|
|
1768
1740
|
if (!L(s[i.value.id])) {
|
|
1769
|
-
const
|
|
1741
|
+
const p = {
|
|
1770
1742
|
...s
|
|
1771
1743
|
// readonly: item.disabled
|
|
1772
1744
|
};
|
|
1773
1745
|
switch (s[i.value.type]) {
|
|
1774
1746
|
case a.value.user:
|
|
1775
|
-
return g.user.set(s[i.value.id],
|
|
1747
|
+
return g.user.set(s[i.value.id], p);
|
|
1776
1748
|
case a.value.role:
|
|
1777
|
-
return g.role.set(s[i.value.id],
|
|
1749
|
+
return g.role.set(s[i.value.id], p);
|
|
1778
1750
|
case a.value.post:
|
|
1779
|
-
return g.post.set(s[i.value.id],
|
|
1751
|
+
return g.post.set(s[i.value.id], p);
|
|
1780
1752
|
case a.value.group:
|
|
1781
|
-
return g.group.set(s[i.value.id],
|
|
1753
|
+
return g.group.set(s[i.value.id], p);
|
|
1782
1754
|
default:
|
|
1783
1755
|
return;
|
|
1784
1756
|
}
|
|
@@ -1786,20 +1758,20 @@ const ka = {
|
|
|
1786
1758
|
}, We = (s) => [a.value.group].includes(
|
|
1787
1759
|
s[i.value.type]
|
|
1788
1760
|
) ? s == null ? void 0 : s.hasOwnProperty("disabled") : !1;
|
|
1789
|
-
|
|
1761
|
+
pe(
|
|
1790
1762
|
() => g.trans,
|
|
1791
1763
|
(s) => {
|
|
1792
1764
|
if (!s.length)
|
|
1793
|
-
|
|
1794
|
-
|
|
1765
|
+
E.value.forEach((p) => {
|
|
1766
|
+
p.disabled = !1;
|
|
1795
1767
|
});
|
|
1796
1768
|
else {
|
|
1797
|
-
const
|
|
1769
|
+
const p = E.value.filter(
|
|
1798
1770
|
(_) => !s.includes(_[i.value.id])
|
|
1799
1771
|
);
|
|
1800
|
-
for (const _ of
|
|
1801
|
-
_.disabled = !1, e.multiple &&
|
|
1802
|
-
const I =
|
|
1772
|
+
for (const _ of p)
|
|
1773
|
+
_.disabled = !1, e.multiple && ue(_);
|
|
1774
|
+
const I = E.value.filter(
|
|
1803
1775
|
(_) => s.includes(_[i.value.id])
|
|
1804
1776
|
);
|
|
1805
1777
|
for (const _ of I)
|
|
@@ -1807,12 +1779,12 @@ const ka = {
|
|
|
1807
1779
|
}
|
|
1808
1780
|
},
|
|
1809
1781
|
{ deep: !0 }
|
|
1810
|
-
),
|
|
1782
|
+
), pe(
|
|
1811
1783
|
() => g.single,
|
|
1812
1784
|
(s) => {
|
|
1813
|
-
var
|
|
1785
|
+
var p;
|
|
1814
1786
|
if (s) {
|
|
1815
|
-
const I = (
|
|
1787
|
+
const I = (p = E.value) == null ? void 0 : p.find((_) => _[i.value.id] === s);
|
|
1816
1788
|
I && (g.user.clear(), g.role.clear(), g.post.clear(), g.group.clear(), g.trans = [], at(() => {
|
|
1817
1789
|
me(I);
|
|
1818
1790
|
}));
|
|
@@ -1820,17 +1792,17 @@ const ka = {
|
|
|
1820
1792
|
}
|
|
1821
1793
|
);
|
|
1822
1794
|
const Ge = (s) => {
|
|
1823
|
-
|
|
1824
|
-
},
|
|
1825
|
-
!
|
|
1826
|
-
}, u =
|
|
1795
|
+
f.value = s == null ? void 0 : s.elementId, H(), j.value.push(s);
|
|
1796
|
+
}, Ue = z(() => j.value.length), Ye = (s, p) => {
|
|
1797
|
+
!p && !e.topLink || p !== Ue.value - 1 && (f.value = s == null ? void 0 : s.elementId, H(), j.value.splice(p + 1));
|
|
1798
|
+
}, u = z(
|
|
1827
1799
|
() => e.chooseType.includes("role") && e.chooseType.length === 1
|
|
1828
|
-
), R =
|
|
1800
|
+
), R = z(
|
|
1829
1801
|
() => e.chooseType.includes("post") && e.chooseType.length === 1
|
|
1830
1802
|
), V = C(e.tabs[0]), w = C(e.tabs[0]);
|
|
1831
1803
|
nt(() => (w.value = u.value ? e.tabs[1] : R.value ? e.tabs[2] : V.value, w.value));
|
|
1832
1804
|
const $ = () => {
|
|
1833
|
-
g.user.clear(), g.role.clear(), g.post.clear(), g.group.clear(), g.trans = [],
|
|
1805
|
+
g.user.clear(), g.role.clear(), g.post.clear(), g.group.clear(), g.trans = [], Pe.value = [], de.value = [], V.value = e.tabs[0], w.value = e.tabs[0], k.value = "", f.value = e.orgPid, j.value.splice(1, j.value.length), g.single = "", r.value = [];
|
|
1834
1806
|
}, Z = () => {
|
|
1835
1807
|
var s;
|
|
1836
1808
|
M(
|
|
@@ -1845,71 +1817,71 @@ const ka = {
|
|
|
1845
1817
|
}, J = () => {
|
|
1846
1818
|
M("update:show", !1), $();
|
|
1847
1819
|
};
|
|
1848
|
-
c({ handClear: $, handRomeve: Re, handDelete:
|
|
1849
|
-
const Y =
|
|
1820
|
+
c({ handClear: $, handRomeve: Re, handDelete: ue });
|
|
1821
|
+
const Y = z(() => {
|
|
1850
1822
|
const s = N.value;
|
|
1851
1823
|
return !!((s.includes("post") || s.includes("role")) && s.length > 1);
|
|
1852
|
-
}), Q =
|
|
1824
|
+
}), Q = z(() => [
|
|
1853
1825
|
{ name: "group", label: "组织架构" },
|
|
1854
1826
|
{ name: "role", label: "角色列表" },
|
|
1855
1827
|
{ name: "post", label: "岗位列表" }
|
|
1856
|
-
].filter((s) => e.tabs.includes(s.name))),
|
|
1828
|
+
].filter((s) => e.tabs.includes(s.name))), ye = z(
|
|
1857
1829
|
() => `${typeof e.height == "string" ? Number.parseInt(e.height) : e.height}px`
|
|
1858
|
-
),
|
|
1830
|
+
), Be = () => {
|
|
1859
1831
|
e.multiple || (g.post.clear(), g.role.clear(), g.user.clear(), g.group.clear(), g.single = "");
|
|
1860
|
-
},
|
|
1832
|
+
}, Ie = z(() => P.value.groups.list.concat(P.value.user.list)), Ve = (s, p) => {
|
|
1861
1833
|
e.multiple || (g.single = "");
|
|
1862
1834
|
const I = e.multiple ? s : [s];
|
|
1863
1835
|
if (!I.length) {
|
|
1864
1836
|
g.group.clear(), g.user.clear();
|
|
1865
1837
|
return;
|
|
1866
1838
|
}
|
|
1867
|
-
|
|
1868
|
-
I != null && I.includes(_[i.value.id]) ? me(_) :
|
|
1839
|
+
Be(), p.forEach((_) => {
|
|
1840
|
+
I != null && I.includes(_[i.value.id]) ? me(_) : ue(_);
|
|
1869
1841
|
});
|
|
1870
|
-
},
|
|
1842
|
+
}, Pe = C([]), Oe = (s, p) => {
|
|
1871
1843
|
e.multiple || (g.single = "");
|
|
1872
1844
|
const I = e.multiple ? s : [s];
|
|
1873
1845
|
if (!I.length) {
|
|
1874
1846
|
g.role.clear();
|
|
1875
1847
|
return;
|
|
1876
1848
|
}
|
|
1877
|
-
|
|
1878
|
-
I != null && I.includes(_[i.value.id]) ? me(_) :
|
|
1849
|
+
Be(), p.forEach((_) => {
|
|
1850
|
+
I != null && I.includes(_[i.value.id]) ? me(_) : ue(_);
|
|
1879
1851
|
});
|
|
1880
1852
|
};
|
|
1881
|
-
|
|
1853
|
+
pe(
|
|
1882
1854
|
() => P.value.role.len,
|
|
1883
1855
|
(s) => {
|
|
1884
|
-
|
|
1856
|
+
Pe.value = ae.cloneDeep(P.value.role.list);
|
|
1885
1857
|
}
|
|
1886
1858
|
);
|
|
1887
|
-
const
|
|
1859
|
+
const de = C([]), we = (s, p) => {
|
|
1888
1860
|
e.multiple || (g.single = "");
|
|
1889
1861
|
const I = e.multiple ? s : [s];
|
|
1890
1862
|
if (!I.length) {
|
|
1891
1863
|
g.post.clear();
|
|
1892
1864
|
return;
|
|
1893
1865
|
}
|
|
1894
|
-
|
|
1895
|
-
I != null && I.includes(_[i.value.id]) ? me(_) :
|
|
1866
|
+
Be(), p.forEach((_) => {
|
|
1867
|
+
I != null && I.includes(_[i.value.id]) ? me(_) : ue(_);
|
|
1896
1868
|
});
|
|
1897
1869
|
};
|
|
1898
|
-
return
|
|
1870
|
+
return pe(
|
|
1899
1871
|
() => P.value.post.len,
|
|
1900
1872
|
(s) => {
|
|
1901
|
-
|
|
1873
|
+
de.value = ae.cloneDeep(P.value.post.list);
|
|
1902
1874
|
}
|
|
1903
|
-
),
|
|
1875
|
+
), pe(
|
|
1904
1876
|
() => k.value,
|
|
1905
1877
|
(s) => {
|
|
1906
1878
|
S("");
|
|
1907
1879
|
}
|
|
1908
|
-
), (s,
|
|
1880
|
+
), (s, p) => {
|
|
1909
1881
|
const I = ne("el-tab-pane"), _ = ne("el-tabs");
|
|
1910
1882
|
return n(), D(T(bt), {
|
|
1911
1883
|
modelValue: K.value,
|
|
1912
|
-
"onUpdate:modelValue":
|
|
1884
|
+
"onUpdate:modelValue": p[2] || (p[2] = (G) => K.value = G),
|
|
1913
1885
|
title: s.title,
|
|
1914
1886
|
"destroy-on-close": "",
|
|
1915
1887
|
"append-to-body": "",
|
|
@@ -1925,9 +1897,9 @@ const ka = {
|
|
|
1925
1897
|
footer: U(() => [
|
|
1926
1898
|
d("span", Ia, [
|
|
1927
1899
|
A(T(Xe), {
|
|
1928
|
-
onClick:
|
|
1900
|
+
onClick: De(J, ["stop"])
|
|
1929
1901
|
}, {
|
|
1930
|
-
default: U(() =>
|
|
1902
|
+
default: U(() => p[6] || (p[6] = [
|
|
1931
1903
|
le("取消")
|
|
1932
1904
|
])),
|
|
1933
1905
|
_: 1
|
|
@@ -1935,9 +1907,9 @@ const ka = {
|
|
|
1935
1907
|
}),
|
|
1936
1908
|
A(T(Xe), {
|
|
1937
1909
|
type: "primary",
|
|
1938
|
-
onClick:
|
|
1910
|
+
onClick: De(Z, ["stop"])
|
|
1939
1911
|
}, {
|
|
1940
|
-
default: U(() =>
|
|
1912
|
+
default: U(() => p[7] || (p[7] = [
|
|
1941
1913
|
le(" 确定 ")
|
|
1942
1914
|
])),
|
|
1943
1915
|
_: 1
|
|
@@ -1950,14 +1922,14 @@ const ka = {
|
|
|
1950
1922
|
"div",
|
|
1951
1923
|
{
|
|
1952
1924
|
class: "dep-use-picker",
|
|
1953
|
-
style:
|
|
1925
|
+
style: Ee({ height: ye.value })
|
|
1954
1926
|
},
|
|
1955
1927
|
[
|
|
1956
1928
|
d("div", wa, [
|
|
1957
1929
|
d("div", null, [
|
|
1958
1930
|
A(T(Ne), {
|
|
1959
1931
|
modelValue: k.value,
|
|
1960
|
-
"onUpdate:modelValue":
|
|
1932
|
+
"onUpdate:modelValue": p[0] || (p[0] = (G) => k.value = G),
|
|
1961
1933
|
clearable: "",
|
|
1962
1934
|
placeholder: s.placeholder,
|
|
1963
1935
|
"suffix-icon": qt
|
|
@@ -1965,7 +1937,7 @@ const ka = {
|
|
|
1965
1937
|
Y.value ? (n(), D(_, {
|
|
1966
1938
|
key: 0,
|
|
1967
1939
|
modelValue: V.value,
|
|
1968
|
-
"onUpdate:modelValue":
|
|
1940
|
+
"onUpdate:modelValue": p[1] || (p[1] = (G) => V.value = G),
|
|
1969
1941
|
class: "ik-picker-tab"
|
|
1970
1942
|
}, {
|
|
1971
1943
|
default: U(() => [
|
|
@@ -1986,23 +1958,23 @@ const ka = {
|
|
|
1986
1958
|
}, 8, ["modelValue"])) : B("v-if", !0)
|
|
1987
1959
|
]),
|
|
1988
1960
|
B(" 过滤 "),
|
|
1989
|
-
w.value === T(
|
|
1961
|
+
w.value === T($e).group ? (n(), m(
|
|
1990
1962
|
q,
|
|
1991
1963
|
{ key: 0 },
|
|
1992
1964
|
[
|
|
1993
|
-
|
|
1965
|
+
Ue.value ? (n(), m("div", Ca, [
|
|
1994
1966
|
B(" 面包屑 全选 "),
|
|
1995
1967
|
A(T(xt), {
|
|
1996
1968
|
separator: ">",
|
|
1997
|
-
class:
|
|
1969
|
+
class: fe(["banner", { "top-unlink": !s.topLink }])
|
|
1998
1970
|
}, {
|
|
1999
1971
|
default: U(() => [
|
|
2000
1972
|
(n(!0), m(
|
|
2001
1973
|
q,
|
|
2002
1974
|
null,
|
|
2003
|
-
ge(T(
|
|
1975
|
+
ge(T(j), (G, Ae) => (n(), D(T(Ot), {
|
|
2004
1976
|
key: G[i.value.id],
|
|
2005
|
-
onClick:
|
|
1977
|
+
onClick: De((Qe) => Ye(G, Ae), ["stop"])
|
|
2006
1978
|
}, {
|
|
2007
1979
|
default: U(() => [
|
|
2008
1980
|
le(
|
|
@@ -2028,60 +2000,60 @@ const ka = {
|
|
|
2028
2000
|
)) : B("v-if", !0),
|
|
2029
2001
|
B(" 左侧列表 "),
|
|
2030
2002
|
B(" 组织架构 "),
|
|
2031
|
-
w.value === T(
|
|
2003
|
+
w.value === T($e).group ? Ce((n(), D(Hl, {
|
|
2032
2004
|
key: 1,
|
|
2033
2005
|
fixPropOpt: i.value,
|
|
2034
2006
|
fixTypeOpt: a.value,
|
|
2035
|
-
list:
|
|
2007
|
+
list: v.value,
|
|
2036
2008
|
max: s.max,
|
|
2037
2009
|
multiple: s.multiple,
|
|
2038
|
-
"hand-list":
|
|
2010
|
+
"hand-list": Ie.value,
|
|
2039
2011
|
imageBaseUrl: e.imageBaseUrl,
|
|
2040
2012
|
emptyText: e.emptyText,
|
|
2041
2013
|
children: e.children,
|
|
2042
2014
|
"choose-type": N.value,
|
|
2043
2015
|
onHandChild: Ge,
|
|
2044
|
-
onChange:
|
|
2016
|
+
onChange: Ve
|
|
2045
2017
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2046
2018
|
[T(qe), O.value]
|
|
2047
|
-
]) : w.value === T(
|
|
2019
|
+
]) : w.value === T($e).role ? (n(), m(
|
|
2048
2020
|
q,
|
|
2049
2021
|
{ key: 2 },
|
|
2050
2022
|
[
|
|
2051
2023
|
B(" 角色 "),
|
|
2052
|
-
|
|
2024
|
+
Ce(A(Aa, {
|
|
2053
2025
|
fixPropOpt: i.value,
|
|
2054
2026
|
fixTypeOpt: a.value,
|
|
2055
|
-
list:
|
|
2027
|
+
list: F.value,
|
|
2056
2028
|
max: s.max,
|
|
2057
2029
|
multiple: s.multiple,
|
|
2058
|
-
"hand-list":
|
|
2030
|
+
"hand-list": Pe.value,
|
|
2059
2031
|
imageBaseUrl: e.imageBaseUrl,
|
|
2060
2032
|
emptyText: e.emptyText,
|
|
2061
2033
|
"choose-type": N.value,
|
|
2062
|
-
onChange:
|
|
2034
|
+
onChange: Oe
|
|
2063
2035
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2064
2036
|
[T(qe), O.value]
|
|
2065
2037
|
])
|
|
2066
2038
|
],
|
|
2067
2039
|
64
|
|
2068
2040
|
/* STABLE_FRAGMENT */
|
|
2069
|
-
)) : w.value === T(
|
|
2041
|
+
)) : w.value === T($e).post ? (n(), m(
|
|
2070
2042
|
q,
|
|
2071
2043
|
{ key: 3 },
|
|
2072
2044
|
[
|
|
2073
2045
|
B(" 岗位 "),
|
|
2074
|
-
|
|
2046
|
+
Ce(A(aa, {
|
|
2075
2047
|
fixPropOpt: i.value,
|
|
2076
2048
|
fixTypeOpt: a.value,
|
|
2077
2049
|
list: b.value,
|
|
2078
2050
|
max: s.max,
|
|
2079
2051
|
multiple: s.multiple,
|
|
2080
|
-
"hand-list":
|
|
2052
|
+
"hand-list": de.value,
|
|
2081
2053
|
imageBaseUrl: e.imageBaseUrl,
|
|
2082
2054
|
emptyText: e.emptyText,
|
|
2083
2055
|
"choose-type": N.value,
|
|
2084
|
-
onChange:
|
|
2056
|
+
onChange: we
|
|
2085
2057
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2086
2058
|
[T(qe), O.value]
|
|
2087
2059
|
])
|
|
@@ -2090,7 +2062,7 @@ const ka = {
|
|
|
2090
2062
|
/* STABLE_FRAGMENT */
|
|
2091
2063
|
)) : B("v-if", !0)
|
|
2092
2064
|
]),
|
|
2093
|
-
|
|
2065
|
+
p[5] || (p[5] = d(
|
|
2094
2066
|
"div",
|
|
2095
2067
|
{ class: "split-div" },
|
|
2096
2068
|
null,
|
|
@@ -2100,7 +2072,7 @@ const ka = {
|
|
|
2100
2072
|
B(" 已选列表 "),
|
|
2101
2073
|
d("div", Ba, [
|
|
2102
2074
|
d("div", Pa, [
|
|
2103
|
-
|
|
2075
|
+
p[4] || (p[4] = d(
|
|
2104
2076
|
"div",
|
|
2105
2077
|
null,
|
|
2106
2078
|
"已选",
|
|
@@ -2110,9 +2082,9 @@ const ka = {
|
|
|
2110
2082
|
A(T(Xe), {
|
|
2111
2083
|
type: "primary",
|
|
2112
2084
|
link: "",
|
|
2113
|
-
onClick:
|
|
2085
|
+
onClick: De($, ["stop"])
|
|
2114
2086
|
}, {
|
|
2115
|
-
default: U(() =>
|
|
2087
|
+
default: U(() => p[3] || (p[3] = [
|
|
2116
2088
|
le("清空")
|
|
2117
2089
|
])),
|
|
2118
2090
|
_: 1
|
|
@@ -2127,7 +2099,7 @@ const ka = {
|
|
|
2127
2099
|
d("div", Ta, [
|
|
2128
2100
|
B(" icon前缀 "),
|
|
2129
2101
|
d("div", Ua, [
|
|
2130
|
-
A(
|
|
2102
|
+
A(he, {
|
|
2131
2103
|
fixTypeOpt: a.value,
|
|
2132
2104
|
fixPropOpt: i.value,
|
|
2133
2105
|
element: G,
|
|
@@ -2142,11 +2114,11 @@ const ka = {
|
|
|
2142
2114
|
/* TEXT */
|
|
2143
2115
|
)
|
|
2144
2116
|
]),
|
|
2145
|
-
|
|
2117
|
+
Ce(A(el, {
|
|
2146
2118
|
class: "close",
|
|
2147
|
-
onClick:
|
|
2119
|
+
onClick: De((Ae) => Re(G), ["stop"])
|
|
2148
2120
|
}, null, 8, ["onClick"]), [
|
|
2149
|
-
[
|
|
2121
|
+
[mt, !(G != null && G.readonly)]
|
|
2150
2122
|
])
|
|
2151
2123
|
]))),
|
|
2152
2124
|
256
|
|
@@ -2164,9 +2136,9 @@ const ka = {
|
|
|
2164
2136
|
}, 8, ["modelValue", "title", "width"]);
|
|
2165
2137
|
};
|
|
2166
2138
|
}
|
|
2167
|
-
}), _a =
|
|
2139
|
+
}), _a = ze(Va), Da = { class: "check-right" }, $a = { class: "dialog-footer" }, Ma = /* @__PURE__ */ re({
|
|
2168
2140
|
__name: "IkBtnSetting",
|
|
2169
|
-
props: /* @__PURE__ */
|
|
2141
|
+
props: /* @__PURE__ */ Me({
|
|
2170
2142
|
list: {
|
|
2171
2143
|
type: Array,
|
|
2172
2144
|
default: () => []
|
|
@@ -2222,51 +2194,51 @@ const ka = {
|
|
|
2222
2194
|
},
|
|
2223
2195
|
modelModifiers: {}
|
|
2224
2196
|
}),
|
|
2225
|
-
emits: /* @__PURE__ */
|
|
2197
|
+
emits: /* @__PURE__ */ Me(["sort"], ["update:modelValue"]),
|
|
2226
2198
|
setup(l, { emit: c }) {
|
|
2227
|
-
const t = l, e = c, k = Ke(l, "modelValue"), { t:
|
|
2228
|
-
const S =
|
|
2229
|
-
return !S &&
|
|
2199
|
+
const t = l, e = c, k = Ke(l, "modelValue"), { t: f, dialog: x, path: h, user: F } = t.config, b = z(() => `${F == null ? void 0 : F.id}_${h}${t.tab !== "" ? `_${t.tab}` : ""}`), O = C([]), v = C([]), i = C([]), a = /* @__PURE__ */ new Map(), r = C(!1), o = z(() => {
|
|
2200
|
+
const S = v.value.length && v.value.length !== t.list.length;
|
|
2201
|
+
return !S && v.value.length && (r.value = !0), !!S;
|
|
2230
2202
|
}), y = (S) => {
|
|
2231
2203
|
var N;
|
|
2232
2204
|
const P = ae.cloneDeep(i.value);
|
|
2233
|
-
P == null || P.forEach((
|
|
2205
|
+
P == null || P.forEach((E) => {
|
|
2234
2206
|
var ie;
|
|
2235
|
-
if (!
|
|
2207
|
+
if (!v.value.length)
|
|
2236
2208
|
i.value = [];
|
|
2237
|
-
else if (!
|
|
2238
|
-
const M = (ie = i.value) == null ? void 0 : ie.findIndex((K) => K.key ===
|
|
2239
|
-
M !== -1 && i.value.splice(M, 1),
|
|
2209
|
+
else if (!v.value.includes(E == null ? void 0 : E.key)) {
|
|
2210
|
+
const M = (ie = i.value) == null ? void 0 : ie.findIndex((K) => K.key === E.key);
|
|
2211
|
+
M !== -1 && i.value.splice(M, 1), E.show = !1, a.set(E.key, E);
|
|
2240
2212
|
}
|
|
2241
|
-
}),
|
|
2213
|
+
}), v.value.forEach((E) => {
|
|
2242
2214
|
var M;
|
|
2243
|
-
if (((M = i.value) == null ? void 0 : M.findIndex((K) => (K == null ? void 0 : K.key) ===
|
|
2244
|
-
const K = a.get(
|
|
2215
|
+
if (((M = i.value) == null ? void 0 : M.findIndex((K) => (K == null ? void 0 : K.key) === E)) === -1) {
|
|
2216
|
+
const K = a.get(E);
|
|
2245
2217
|
K && (K.show = !0, i.value.push(K));
|
|
2246
2218
|
}
|
|
2247
2219
|
}), (N = i.value) != null && N.length || (i.value = ae.cloneDeep(t.list)), S === !0 && (e("sort", ae.cloneDeep(i.value)), k.value = ae.cloneDeep(i.value));
|
|
2248
|
-
},
|
|
2220
|
+
}, j = (S) => {
|
|
2249
2221
|
if (S)
|
|
2250
|
-
|
|
2222
|
+
v.value = t.list.map((P) => P.key);
|
|
2251
2223
|
else {
|
|
2252
2224
|
const P = t.list.find((N) => !N.key || N.label === "操作");
|
|
2253
|
-
|
|
2225
|
+
v.value = P ? [P.key] : [];
|
|
2254
2226
|
}
|
|
2255
2227
|
y();
|
|
2256
2228
|
}, W = () => {
|
|
2257
|
-
const S =
|
|
2229
|
+
const S = Te.local.getItem(b.value);
|
|
2258
2230
|
try {
|
|
2259
2231
|
const P = ae.cloneDeep(t == null ? void 0 : t.list);
|
|
2260
|
-
if ((!S || !(S != null && S.length)) &&
|
|
2232
|
+
if ((!S || !(S != null && S.length)) && Te.local.setItem(
|
|
2261
2233
|
b.value,
|
|
2262
|
-
P.map(({ show: N, type:
|
|
2234
|
+
P.map(({ show: N, type: E, key: ie, label: M, width: K, minWidth: ee, align: ue }) => ({
|
|
2263
2235
|
show: N,
|
|
2264
2236
|
key: ie,
|
|
2265
|
-
type:
|
|
2237
|
+
type: E,
|
|
2266
2238
|
label: M,
|
|
2267
2239
|
width: K,
|
|
2268
2240
|
minWidth: ee,
|
|
2269
|
-
align:
|
|
2241
|
+
align: ue
|
|
2270
2242
|
}))
|
|
2271
2243
|
), O.value = [
|
|
2272
2244
|
...(P == null ? void 0 : P.map((N) => (a.set(N.key, N), {
|
|
@@ -2274,32 +2246,32 @@ const ka = {
|
|
|
2274
2246
|
show: N.show || !1
|
|
2275
2247
|
}))) || []
|
|
2276
2248
|
], S) {
|
|
2277
|
-
const N = S.filter((
|
|
2278
|
-
|
|
2249
|
+
const N = S.filter((E) => E.show).map((E) => E.key);
|
|
2250
|
+
v.value = [...N];
|
|
2279
2251
|
} else {
|
|
2280
|
-
const N = O.value.filter((
|
|
2281
|
-
|
|
2252
|
+
const N = O.value.filter((E) => E.show);
|
|
2253
|
+
v.value = N.map((E) => E.key);
|
|
2282
2254
|
}
|
|
2283
2255
|
y(!0);
|
|
2284
2256
|
} catch (P) {
|
|
2285
2257
|
console.info("error: ", P);
|
|
2286
2258
|
}
|
|
2287
2259
|
};
|
|
2288
|
-
W(),
|
|
2260
|
+
W(), pe(() => t.list, () => {
|
|
2289
2261
|
W();
|
|
2290
2262
|
}, { deep: !0 });
|
|
2291
|
-
const
|
|
2292
|
-
|
|
2263
|
+
const H = C(!1), g = () => {
|
|
2264
|
+
H.value = !0;
|
|
2293
2265
|
}, oe = (S) => {
|
|
2294
2266
|
i.value = S;
|
|
2295
2267
|
}, L = () => {
|
|
2296
|
-
|
|
2268
|
+
H.value = !1, Te.local.setItem(
|
|
2297
2269
|
b.value,
|
|
2298
|
-
i.value.map(({ show: S, key: P, label: N, value:
|
|
2270
|
+
i.value.map(({ show: S, key: P, label: N, value: E, width: ie, minWidth: M, align: K }) => ({
|
|
2299
2271
|
show: S,
|
|
2300
2272
|
key: P,
|
|
2301
2273
|
label: N,
|
|
2302
|
-
value:
|
|
2274
|
+
value: E,
|
|
2303
2275
|
width: ie,
|
|
2304
2276
|
minWidth: M,
|
|
2305
2277
|
align: K
|
|
@@ -2307,17 +2279,17 @@ const ka = {
|
|
|
2307
2279
|
), e("sort", ae.cloneDeep(i.value)), k.value = ae.cloneDeep(i.value);
|
|
2308
2280
|
};
|
|
2309
2281
|
return (S, P) => {
|
|
2310
|
-
const N = ne("el-button"),
|
|
2282
|
+
const N = ne("el-button"), E = ne("el-checkbox"), ie = ne("el-checkbox-group"), M = ne("el-dialog"), K = Ze("role");
|
|
2311
2283
|
return n(), m(
|
|
2312
2284
|
q,
|
|
2313
2285
|
null,
|
|
2314
2286
|
[
|
|
2315
|
-
l.btnType === "button" ?
|
|
2287
|
+
l.btnType === "button" ? Ce((n(), D(N, te({ key: 0 }, S.$attrs, {
|
|
2316
2288
|
circle: l.circle,
|
|
2317
2289
|
type: l.type,
|
|
2318
2290
|
style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
|
|
2319
2291
|
onClick: g
|
|
2320
|
-
}),
|
|
2292
|
+
}), yt({
|
|
2321
2293
|
icon: U(() => [
|
|
2322
2294
|
P[4] || (P[4] = d(
|
|
2323
2295
|
"i",
|
|
@@ -2335,7 +2307,7 @@ const ka = {
|
|
|
2335
2307
|
fn: U(() => [
|
|
2336
2308
|
B(' {{ t("action.setting") }} '),
|
|
2337
2309
|
le(
|
|
2338
|
-
" " + X(T(
|
|
2310
|
+
" " + X(T(f)("设置")),
|
|
2339
2311
|
1
|
|
2340
2312
|
/* TEXT */
|
|
2341
2313
|
)
|
|
@@ -2345,8 +2317,8 @@ const ka = {
|
|
|
2345
2317
|
]), 1040, ["circle", "type", "style"])), [
|
|
2346
2318
|
[K, S.$props.role]
|
|
2347
2319
|
]) : B("v-if", !0),
|
|
2348
|
-
l.btnType === "icon" ?
|
|
2349
|
-
T(
|
|
2320
|
+
l.btnType === "icon" ? Ce((n(), D(
|
|
2321
|
+
T(xe),
|
|
2350
2322
|
te({
|
|
2351
2323
|
key: 1,
|
|
2352
2324
|
name: "iksvg_shezhi-daohang",
|
|
@@ -2360,8 +2332,8 @@ const ka = {
|
|
|
2360
2332
|
[K, S.$props.role]
|
|
2361
2333
|
]) : B("v-if", !0),
|
|
2362
2334
|
A(M, {
|
|
2363
|
-
modelValue:
|
|
2364
|
-
"onUpdate:modelValue": P[3] || (P[3] = (ee) =>
|
|
2335
|
+
modelValue: H.value,
|
|
2336
|
+
"onUpdate:modelValue": P[3] || (P[3] = (ee) => H.value = ee),
|
|
2365
2337
|
draggable: "",
|
|
2366
2338
|
width: l.inline ? T(x).l : T(x).sl,
|
|
2367
2339
|
"close-on-click-modal": !1,
|
|
@@ -2373,11 +2345,11 @@ const ka = {
|
|
|
2373
2345
|
footer: U(() => [
|
|
2374
2346
|
d("div", $a, [
|
|
2375
2347
|
A(N, {
|
|
2376
|
-
onClick: P[2] || (P[2] = (ee) =>
|
|
2348
|
+
onClick: P[2] || (P[2] = (ee) => H.value = !1)
|
|
2377
2349
|
}, {
|
|
2378
2350
|
default: U(() => [
|
|
2379
2351
|
le(
|
|
2380
|
-
X(T(
|
|
2352
|
+
X(T(f)("关闭")) + " ",
|
|
2381
2353
|
1
|
|
2382
2354
|
/* TEXT */
|
|
2383
2355
|
),
|
|
@@ -2393,7 +2365,7 @@ const ka = {
|
|
|
2393
2365
|
}, {
|
|
2394
2366
|
default: U(() => [
|
|
2395
2367
|
le(
|
|
2396
|
-
X(i.value.length < 2 ? "至少选择一个字段" : T(
|
|
2368
|
+
X(i.value.length < 2 ? "至少选择一个字段" : T(f)("确定")),
|
|
2397
2369
|
1
|
|
2398
2370
|
/* TEXT */
|
|
2399
2371
|
)
|
|
@@ -2407,21 +2379,21 @@ const ka = {
|
|
|
2407
2379
|
d(
|
|
2408
2380
|
"div",
|
|
2409
2381
|
{
|
|
2410
|
-
class:
|
|
2382
|
+
class: fe(["view-fields", [l.inline ? null : "un-inline"]])
|
|
2411
2383
|
},
|
|
2412
2384
|
[
|
|
2413
2385
|
d(
|
|
2414
2386
|
"div",
|
|
2415
2387
|
{
|
|
2416
|
-
style:
|
|
2388
|
+
style: Ee({ flex: l.inline ? 2 : 1 })
|
|
2417
2389
|
},
|
|
2418
2390
|
[
|
|
2419
|
-
A(
|
|
2391
|
+
A(E, {
|
|
2420
2392
|
modelValue: r.value,
|
|
2421
2393
|
"onUpdate:modelValue": P[0] || (P[0] = (ee) => r.value = ee),
|
|
2422
2394
|
class: "single-line",
|
|
2423
2395
|
indeterminate: o.value,
|
|
2424
|
-
onChange:
|
|
2396
|
+
onChange: j
|
|
2425
2397
|
}, {
|
|
2426
2398
|
default: U(() => P[5] || (P[5] = [
|
|
2427
2399
|
le(" 全选 ")
|
|
@@ -2430,15 +2402,15 @@ const ka = {
|
|
|
2430
2402
|
/* STABLE */
|
|
2431
2403
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2432
2404
|
A(ie, {
|
|
2433
|
-
modelValue:
|
|
2434
|
-
"onUpdate:modelValue": P[1] || (P[1] = (ee) =>
|
|
2405
|
+
modelValue: v.value,
|
|
2406
|
+
"onUpdate:modelValue": P[1] || (P[1] = (ee) => v.value = ee),
|
|
2435
2407
|
onChange: y
|
|
2436
2408
|
}, {
|
|
2437
2409
|
default: U(() => [
|
|
2438
2410
|
(n(!0), m(
|
|
2439
2411
|
q,
|
|
2440
2412
|
null,
|
|
2441
|
-
ge(O.value, (ee) => (n(), D(
|
|
2413
|
+
ge(O.value, (ee) => (n(), D(E, {
|
|
2442
2414
|
key: ee.key,
|
|
2443
2415
|
disabled: !ee.key,
|
|
2444
2416
|
label: ee.key
|
|
@@ -2485,7 +2457,7 @@ const ka = {
|
|
|
2485
2457
|
);
|
|
2486
2458
|
};
|
|
2487
2459
|
}
|
|
2488
|
-
}),
|
|
2460
|
+
}), Ea = /* @__PURE__ */ se(Ma, [["__scopeId", "data-v-b5ed17ed"]]), za = ze(Ea), ct = {
|
|
2489
2461
|
animation: 200,
|
|
2490
2462
|
group: "gl",
|
|
2491
2463
|
disabled: !1,
|
|
@@ -2636,13 +2608,13 @@ const ka = {
|
|
|
2636
2608
|
}
|
|
2637
2609
|
})
|
|
2638
2610
|
}
|
|
2639
|
-
}, Na = /* @__PURE__ */
|
|
2611
|
+
}, Na = /* @__PURE__ */ re({
|
|
2640
2612
|
__name: "IkDragList",
|
|
2641
2613
|
props: Ra,
|
|
2642
2614
|
emits: ["change"],
|
|
2643
2615
|
setup(l, { emit: c }) {
|
|
2644
2616
|
const t = l, e = c, k = C([]);
|
|
2645
|
-
|
|
2617
|
+
pe(
|
|
2646
2618
|
() => t.list,
|
|
2647
2619
|
(b) => {
|
|
2648
2620
|
k.value = ae.cloneDeep(b);
|
|
@@ -2652,16 +2624,16 @@ const ka = {
|
|
|
2652
2624
|
deep: !0
|
|
2653
2625
|
}
|
|
2654
2626
|
);
|
|
2655
|
-
const
|
|
2627
|
+
const f = z(() => ({
|
|
2656
2628
|
...ct,
|
|
2657
2629
|
...t,
|
|
2658
2630
|
itemStyle: {
|
|
2659
2631
|
...ct.itemStyle,
|
|
2660
2632
|
...t.itemStyle
|
|
2661
2633
|
}
|
|
2662
|
-
})), x = C(!1),
|
|
2634
|
+
})), x = C(!1), h = () => {
|
|
2663
2635
|
x.value = !0;
|
|
2664
|
-
},
|
|
2636
|
+
}, F = (b) => {
|
|
2665
2637
|
x.value = !1;
|
|
2666
2638
|
const O = t.list[b.oldIndex];
|
|
2667
2639
|
e("change", k.value, {
|
|
@@ -2671,53 +2643,53 @@ const ka = {
|
|
|
2671
2643
|
});
|
|
2672
2644
|
};
|
|
2673
2645
|
return (b, O) => {
|
|
2674
|
-
const
|
|
2646
|
+
const v = ne("el-icon");
|
|
2675
2647
|
return n(), D(T(_t), {
|
|
2676
2648
|
modelValue: k.value,
|
|
2677
2649
|
"onUpdate:modelValue": O[0] || (O[0] = (i) => k.value = i),
|
|
2678
|
-
class:
|
|
2650
|
+
class: fe(["list-group", [f.value.groupClass]]),
|
|
2679
2651
|
tag: "ul",
|
|
2680
|
-
attrs:
|
|
2681
|
-
animation:
|
|
2682
|
-
group:
|
|
2683
|
-
disabled:
|
|
2684
|
-
"ghost-class":
|
|
2685
|
-
"force-fallback":
|
|
2652
|
+
attrs: f.value,
|
|
2653
|
+
animation: f.value.animation,
|
|
2654
|
+
group: f.value.group,
|
|
2655
|
+
disabled: f.value.disabled,
|
|
2656
|
+
"ghost-class": f.value.ghostClass,
|
|
2657
|
+
"force-fallback": f.value.ghostClass,
|
|
2686
2658
|
"item-key": "order",
|
|
2687
|
-
onStart:
|
|
2688
|
-
onEnd:
|
|
2659
|
+
onStart: h,
|
|
2660
|
+
onEnd: F
|
|
2689
2661
|
}, {
|
|
2690
2662
|
item: U(({ element: i }) => [
|
|
2691
2663
|
A(
|
|
2692
|
-
|
|
2664
|
+
ht,
|
|
2693
2665
|
{
|
|
2694
2666
|
type: "transition",
|
|
2695
2667
|
name: "flip-list"
|
|
2696
2668
|
},
|
|
2697
2669
|
{
|
|
2698
2670
|
default: U(() => [
|
|
2699
|
-
b.$slots.item ?
|
|
2671
|
+
b.$slots.item ? ve(b.$slots, "item", {
|
|
2700
2672
|
key: 0,
|
|
2701
2673
|
item: i
|
|
2702
2674
|
}, void 0, !0) : (n(), m(
|
|
2703
2675
|
"li",
|
|
2704
2676
|
{
|
|
2705
2677
|
key: 1,
|
|
2706
|
-
class:
|
|
2707
|
-
style:
|
|
2708
|
-
borderRadius: `${
|
|
2709
|
-
marginBottom: `${
|
|
2710
|
-
backgroundColor: `${
|
|
2678
|
+
class: fe(["list-group-item", [f.value.itemClass]]),
|
|
2679
|
+
style: Ee({
|
|
2680
|
+
borderRadius: `${f.value.itemStyle.radius}px`,
|
|
2681
|
+
marginBottom: `${f.value.itemStyle.bottom}px`,
|
|
2682
|
+
backgroundColor: `${f.value.itemStyle.background}`
|
|
2711
2683
|
})
|
|
2712
2684
|
},
|
|
2713
2685
|
[
|
|
2714
|
-
|
|
2686
|
+
f.value.showIcon && !b.$slots.icon ? (n(), D(v, { key: 0 }, {
|
|
2715
2687
|
default: U(() => [
|
|
2716
2688
|
A(T($t))
|
|
2717
2689
|
]),
|
|
2718
2690
|
_: 1
|
|
2719
2691
|
/* STABLE */
|
|
2720
|
-
})) :
|
|
2692
|
+
})) : ve(b.$slots, "icon", { key: 1 }, void 0, !0),
|
|
2721
2693
|
le(
|
|
2722
2694
|
" " + X(i.label),
|
|
2723
2695
|
1
|
|
@@ -2740,12 +2712,12 @@ const ka = {
|
|
|
2740
2712
|
}, 8, ["modelValue", "class", "attrs", "animation", "group", "disabled", "ghost-class", "force-fallback"]);
|
|
2741
2713
|
};
|
|
2742
2714
|
}
|
|
2743
|
-
}), ja = /* @__PURE__ */ se(Na, [["__scopeId", "data-v-3716c05e"]]), Ha =
|
|
2744
|
-
var
|
|
2715
|
+
}), ja = /* @__PURE__ */ se(Na, [["__scopeId", "data-v-3716c05e"]]), Ha = ze(ja);
|
|
2716
|
+
var be = /* @__PURE__ */ ((l) => (l.input = "input", l.area = "area", l.number = "number", l.select = "select", l.date = "date", l.datetime = "datetime", l.checkbox = "checkbox", l.radio = "radio", l.treeselect = "treeselect", l.choosePerson = "choosePerson", l))(be || {}), Le = /* @__PURE__ */ ((l) => (l.year = "year", l.month = "month", l.date = "date", l.dates = "dates", l.datetime = "datetime", l.week = "week", l.datetimerange = "datetimerange", l.daterange = "daterange", l.monthrange = "monthrange", l))(Le || {});
|
|
2745
2717
|
function pt(l) {
|
|
2746
2718
|
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !At(l);
|
|
2747
2719
|
}
|
|
2748
|
-
const Fa = /* @__PURE__ */
|
|
2720
|
+
const Fa = /* @__PURE__ */ re({
|
|
2749
2721
|
name: "IkSearchAuto",
|
|
2750
2722
|
props: {
|
|
2751
2723
|
// 查询字段列表
|
|
@@ -2784,30 +2756,30 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2784
2756
|
emit: c,
|
|
2785
2757
|
expose: t
|
|
2786
2758
|
}) {
|
|
2787
|
-
const e = C(), k = {},
|
|
2788
|
-
...
|
|
2759
|
+
const e = C(), k = {}, f = C({}), x = C([]), h = C({
|
|
2760
|
+
...f.value
|
|
2789
2761
|
});
|
|
2790
|
-
|
|
2762
|
+
pe(x, (u, R) => {
|
|
2791
2763
|
const V = R.filter((w) => !u.includes(w));
|
|
2792
2764
|
if (V.length) {
|
|
2793
2765
|
let w = !1;
|
|
2794
2766
|
V.forEach(($) => {
|
|
2795
|
-
|
|
2796
|
-
}), w && c("search",
|
|
2767
|
+
h.value[$] !== void 0 && (w = !0), h.value[$] = void 0;
|
|
2768
|
+
}), w && c("search", h.value);
|
|
2797
2769
|
}
|
|
2798
2770
|
});
|
|
2799
|
-
const
|
|
2771
|
+
const F = () => {
|
|
2800
2772
|
x.value = [], l.list.forEach((u) => {
|
|
2801
2773
|
var R, V;
|
|
2802
|
-
|
|
2774
|
+
f.value[u.key] = f.value[u.value], k[u.key] = k[u.value], x.value.push(u.key), (R = h.value)[V = u.key] ?? (R[V] = u.value || null);
|
|
2803
2775
|
});
|
|
2804
2776
|
};
|
|
2805
|
-
|
|
2806
|
-
|
|
2777
|
+
F(), pe(() => l.list, () => {
|
|
2778
|
+
F();
|
|
2807
2779
|
});
|
|
2808
|
-
const b =
|
|
2780
|
+
const b = z(() => x.value.map((u) => l.list.find((R) => R.key === u))), O = () => {
|
|
2809
2781
|
var u;
|
|
2810
|
-
|
|
2782
|
+
h.value.page = 1, (u = l.search) == null || u.call(l, h.value), c("search", h.value);
|
|
2811
2783
|
};
|
|
2812
2784
|
t({
|
|
2813
2785
|
resetForm: () => {
|
|
@@ -2820,7 +2792,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2820
2792
|
});
|
|
2821
2793
|
const a = () => {
|
|
2822
2794
|
var u;
|
|
2823
|
-
c("search",
|
|
2795
|
+
c("search", h.value), (u = l.search) == null || u.call(l, h.value);
|
|
2824
2796
|
}, r = (u) => {
|
|
2825
2797
|
u.key === "Enter" && O();
|
|
2826
2798
|
}, o = () => {
|
|
@@ -2838,8 +2810,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2838
2810
|
value: J,
|
|
2839
2811
|
label: Y
|
|
2840
2812
|
}) => A(Ne, te({
|
|
2841
|
-
modelValue:
|
|
2842
|
-
"onUpdate:modelValue": [(Q) =>
|
|
2813
|
+
modelValue: h.value[V],
|
|
2814
|
+
"onUpdate:modelValue": [(Q) => h.value[V] = Q, (Q) => h.value[V] = Q],
|
|
2843
2815
|
clearable: !0,
|
|
2844
2816
|
maxlength: u,
|
|
2845
2817
|
minlength: R,
|
|
@@ -2847,7 +2819,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2847
2819
|
onBlur: () => a()
|
|
2848
2820
|
}, Z, {
|
|
2849
2821
|
placeholder: (Z == null ? void 0 : Z.placeholder) || $ || `请输入${Y || ""}`
|
|
2850
|
-
}), null),
|
|
2822
|
+
}), null), j = ({
|
|
2851
2823
|
key: u,
|
|
2852
2824
|
placeholder: R,
|
|
2853
2825
|
max: V,
|
|
@@ -2858,8 +2830,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2858
2830
|
label: Y,
|
|
2859
2831
|
formProp: Q = {}
|
|
2860
2832
|
}) => A(Lt, te({
|
|
2861
|
-
modelValue:
|
|
2862
|
-
"onUpdate:modelValue": (
|
|
2833
|
+
modelValue: h.value[u],
|
|
2834
|
+
"onUpdate:modelValue": (ye) => h.value[u] = ye,
|
|
2863
2835
|
clearable: !0,
|
|
2864
2836
|
max: V,
|
|
2865
2837
|
min: w,
|
|
@@ -2879,8 +2851,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2879
2851
|
filterable: J = !0,
|
|
2880
2852
|
formProp: Y = {}
|
|
2881
2853
|
}) => A(ot, te({
|
|
2882
|
-
modelValue:
|
|
2883
|
-
"onUpdate:modelValue": (Q) =>
|
|
2854
|
+
modelValue: h.value[u],
|
|
2855
|
+
"onUpdate:modelValue": (Q) => h.value[u] = Q,
|
|
2884
2856
|
clearable: !0,
|
|
2885
2857
|
disabled: V,
|
|
2886
2858
|
multiple: Z,
|
|
@@ -2894,14 +2866,14 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2894
2866
|
label: Q.label,
|
|
2895
2867
|
value: Q.value
|
|
2896
2868
|
}, null))]
|
|
2897
|
-
}),
|
|
2869
|
+
}), H = ({
|
|
2898
2870
|
key: u,
|
|
2899
2871
|
disabled: R,
|
|
2900
2872
|
options: V,
|
|
2901
2873
|
formProp: w = {}
|
|
2902
2874
|
}) => A(He, te({
|
|
2903
|
-
modelValue:
|
|
2904
|
-
"onUpdate:modelValue": ($) =>
|
|
2875
|
+
modelValue: h.value[u],
|
|
2876
|
+
"onUpdate:modelValue": ($) => h.value[u] = $,
|
|
2905
2877
|
disabled: R,
|
|
2906
2878
|
onChange: () => a()
|
|
2907
2879
|
}, w), {
|
|
@@ -2922,14 +2894,14 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2922
2894
|
max: $,
|
|
2923
2895
|
formProp: Z = {}
|
|
2924
2896
|
}) => A(je, te({
|
|
2925
|
-
modelValue:
|
|
2926
|
-
"onUpdate:modelValue": (J) =>
|
|
2897
|
+
modelValue: h.value[u],
|
|
2898
|
+
"onUpdate:modelValue": (J) => h.value[u] = J,
|
|
2927
2899
|
disabled: R,
|
|
2928
2900
|
max: $,
|
|
2929
2901
|
min: w,
|
|
2930
2902
|
onChange: () => a()
|
|
2931
2903
|
}, Z), {
|
|
2932
|
-
default: () => [V == null ? void 0 : V.map((J) => A(
|
|
2904
|
+
default: () => [V == null ? void 0 : V.map((J) => A(Se, {
|
|
2933
2905
|
key: J.value,
|
|
2934
2906
|
label: J.label,
|
|
2935
2907
|
value: J.value
|
|
@@ -2940,8 +2912,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2940
2912
|
formProp: V = {},
|
|
2941
2913
|
placeholder: w
|
|
2942
2914
|
}) => A(rt, te({
|
|
2943
|
-
modelValue:
|
|
2944
|
-
"onUpdate:modelValue": ($) =>
|
|
2915
|
+
modelValue: h.value[u],
|
|
2916
|
+
"onUpdate:modelValue": ($) => h.value[u] = $,
|
|
2945
2917
|
onChange: () => a()
|
|
2946
2918
|
}, V, {
|
|
2947
2919
|
placeholder: (V == null ? void 0 : V.placeholder) || w || `请选择${R}时间`
|
|
@@ -2951,57 +2923,57 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
2951
2923
|
editable: V = !0,
|
|
2952
2924
|
startPlaceholder: w = "开始日期",
|
|
2953
2925
|
endplaceholder: $ = "结束日期",
|
|
2954
|
-
dateType: Z =
|
|
2926
|
+
dateType: Z = Le.date,
|
|
2955
2927
|
format: J,
|
|
2956
2928
|
placeholder: Y = "请选择日期",
|
|
2957
2929
|
popperclass: Q,
|
|
2958
|
-
rangeSeparator:
|
|
2959
|
-
defaultValue:
|
|
2960
|
-
defaultTime:
|
|
2961
|
-
valueFormat:
|
|
2962
|
-
disabledDate:
|
|
2963
|
-
formProp:
|
|
2930
|
+
rangeSeparator: ye = "-",
|
|
2931
|
+
defaultValue: Be,
|
|
2932
|
+
defaultTime: Ie,
|
|
2933
|
+
valueFormat: Ve,
|
|
2934
|
+
disabledDate: Pe = () => !1,
|
|
2935
|
+
formProp: Oe = {}
|
|
2964
2936
|
}) => {
|
|
2965
|
-
let
|
|
2966
|
-
if (
|
|
2937
|
+
let de = J;
|
|
2938
|
+
if (de)
|
|
2967
2939
|
switch (Z) {
|
|
2968
|
-
case
|
|
2969
|
-
case
|
|
2970
|
-
|
|
2940
|
+
case Le.date:
|
|
2941
|
+
case Le.dates:
|
|
2942
|
+
de = "YYYY-MM-DD";
|
|
2971
2943
|
break;
|
|
2972
|
-
case
|
|
2973
|
-
|
|
2944
|
+
case Le.year:
|
|
2945
|
+
de = "YYYY";
|
|
2974
2946
|
break;
|
|
2975
|
-
case
|
|
2976
|
-
|
|
2947
|
+
case Le.month:
|
|
2948
|
+
de = "YYYY-MM";
|
|
2977
2949
|
break;
|
|
2978
|
-
case
|
|
2979
|
-
|
|
2950
|
+
case Le.week:
|
|
2951
|
+
de = "YYYY-MM-DD";
|
|
2980
2952
|
break;
|
|
2981
2953
|
// case EDateType.dates:
|
|
2982
2954
|
// _format = "YYYY";
|
|
2983
2955
|
// break;
|
|
2984
2956
|
default:
|
|
2985
|
-
|
|
2957
|
+
de = "";
|
|
2986
2958
|
}
|
|
2987
2959
|
return A(rt, te({
|
|
2988
|
-
modelValue:
|
|
2989
|
-
"onUpdate:modelValue": (
|
|
2960
|
+
modelValue: h.value[u],
|
|
2961
|
+
"onUpdate:modelValue": (we) => h.value[u] = we,
|
|
2990
2962
|
onChange: () => a(),
|
|
2991
2963
|
disabled: R,
|
|
2992
2964
|
type: Z,
|
|
2993
2965
|
editable: V,
|
|
2994
2966
|
startPlaceholder: w,
|
|
2995
2967
|
endPlaceholder: $,
|
|
2996
|
-
rangeSeparator:
|
|
2997
|
-
format:
|
|
2968
|
+
rangeSeparator: ye,
|
|
2969
|
+
format: de,
|
|
2998
2970
|
popperClass: Q,
|
|
2999
|
-
defaultValue:
|
|
3000
|
-
defaultTime:
|
|
3001
|
-
valueFormat:
|
|
3002
|
-
disabledDate:
|
|
3003
|
-
},
|
|
3004
|
-
placeholder: (
|
|
2971
|
+
defaultValue: Be,
|
|
2972
|
+
defaultTime: Ie,
|
|
2973
|
+
valueFormat: Ve,
|
|
2974
|
+
disabledDate: Pe
|
|
2975
|
+
}, Oe, {
|
|
2976
|
+
placeholder: (Oe == null ? void 0 : Oe.placeholder) || Y || "请选择日期"
|
|
3005
2977
|
}), null);
|
|
3006
2978
|
}, S = ({
|
|
3007
2979
|
key: u,
|
|
@@ -3013,37 +2985,37 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3013
2985
|
highlightCurrent: J = !0,
|
|
3014
2986
|
defaultExpandAll: Y = !1,
|
|
3015
2987
|
expandOnClickNode: Q = !1,
|
|
3016
|
-
placeholder:
|
|
3017
|
-
checkOnClickNode:
|
|
3018
|
-
showCheckbox:
|
|
3019
|
-
checkStrictly:
|
|
3020
|
-
defaultCheckedKeys:
|
|
3021
|
-
currentNodeKey:
|
|
3022
|
-
accordion:
|
|
3023
|
-
formProp:
|
|
2988
|
+
placeholder: ye = "全部",
|
|
2989
|
+
checkOnClickNode: Be = !1,
|
|
2990
|
+
showCheckbox: Ie = !1,
|
|
2991
|
+
checkStrictly: Ve = !0,
|
|
2992
|
+
defaultCheckedKeys: Pe = [],
|
|
2993
|
+
currentNodeKey: Oe = "",
|
|
2994
|
+
accordion: de = !1,
|
|
2995
|
+
formProp: we = {},
|
|
3024
2996
|
label: s
|
|
3025
2997
|
}) => A(Tt, te({
|
|
3026
|
-
modelValue:
|
|
3027
|
-
"onUpdate:modelValue": (
|
|
2998
|
+
modelValue: h.value[u],
|
|
2999
|
+
"onUpdate:modelValue": (p) => h.value[u] = p,
|
|
3028
3000
|
data: R,
|
|
3029
3001
|
onChange: () => a(),
|
|
3030
3002
|
clearable: !0,
|
|
3031
3003
|
multiple: V,
|
|
3032
3004
|
props: Z,
|
|
3033
|
-
placeholder:
|
|
3005
|
+
placeholder: ye,
|
|
3034
3006
|
filterable: w,
|
|
3035
3007
|
nodeKey: $,
|
|
3036
3008
|
highlightCurrent: J,
|
|
3037
3009
|
defaultExpandAll: Y,
|
|
3038
3010
|
expandOnClickNode: Q,
|
|
3039
|
-
checkOnClickNode:
|
|
3040
|
-
showCheckbox:
|
|
3041
|
-
checkStrictly:
|
|
3042
|
-
defaultCheckedKeys:
|
|
3043
|
-
currentNodeKey:
|
|
3044
|
-
accordion:
|
|
3045
|
-
},
|
|
3046
|
-
placeholder: (
|
|
3011
|
+
checkOnClickNode: Be,
|
|
3012
|
+
showCheckbox: Ie,
|
|
3013
|
+
checkStrictly: Ve,
|
|
3014
|
+
defaultCheckedKeys: Pe,
|
|
3015
|
+
currentNodeKey: Oe,
|
|
3016
|
+
accordion: de
|
|
3017
|
+
}, we, {
|
|
3018
|
+
placeholder: (we == null ? void 0 : we.placeholder) || ye || `请选择${s || ""}`
|
|
3047
3019
|
}), null), P = ({
|
|
3048
3020
|
key: u,
|
|
3049
3021
|
selectKey: R,
|
|
@@ -3055,8 +3027,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3055
3027
|
formProp: Y = {}
|
|
3056
3028
|
}) => A(Ne, te({
|
|
3057
3029
|
disabled: w,
|
|
3058
|
-
modelValue:
|
|
3059
|
-
"onUpdate:modelValue": (Q) =>
|
|
3030
|
+
modelValue: h.value[u],
|
|
3031
|
+
"onUpdate:modelValue": (Q) => h.value[u] = Q,
|
|
3060
3032
|
onBlur: () => a()
|
|
3061
3033
|
}, Y, {
|
|
3062
3034
|
placeholder: (Y == null ? void 0 : Y.placeholder) || V || "全部"
|
|
@@ -3065,8 +3037,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3065
3037
|
disabled: w,
|
|
3066
3038
|
multiple: Z,
|
|
3067
3039
|
filterable: J,
|
|
3068
|
-
modelValue:
|
|
3069
|
-
"onUpdate:modelValue": (Q) =>
|
|
3040
|
+
modelValue: h.value[R],
|
|
3041
|
+
"onUpdate:modelValue": (Q) => h.value[R] = Q,
|
|
3070
3042
|
onChange: () => a()
|
|
3071
3043
|
}, Y), {
|
|
3072
3044
|
default: () => [$ == null ? void 0 : $.map((Q) => A(it, {
|
|
@@ -3075,13 +3047,13 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3075
3047
|
value: Q.value
|
|
3076
3048
|
}, null))]
|
|
3077
3049
|
})
|
|
3078
|
-
}), N = "",
|
|
3079
|
-
K.value = !0, M.value =
|
|
3050
|
+
}), N = "", E = "iking", ie = C(null), M = C([]), K = C(!1), ee = C(""), ue = /* @__PURE__ */ new Map(), Re = (u) => {
|
|
3051
|
+
K.value = !0, M.value = ue.has(u) ? ue.get(u) : h.value[u], ee.value = u;
|
|
3080
3052
|
}, me = () => {
|
|
3081
|
-
|
|
3053
|
+
ue.set(ee.value, []), ee.value = "", a();
|
|
3082
3054
|
}, We = (u) => {
|
|
3083
3055
|
var R, V;
|
|
3084
|
-
|
|
3056
|
+
h.value[ee.value] = (R = u.list.map((w) => w.elementName)) == null ? void 0 : R.join(","), ue.set(ee.value, u.list), c("search", h.value), c("pickerChange", u), (V = l.search) == null || V.call(l, h.value);
|
|
3085
3057
|
}, Ge = ({
|
|
3086
3058
|
key: u,
|
|
3087
3059
|
placeholder: R,
|
|
@@ -3092,8 +3064,8 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3092
3064
|
disabled: J,
|
|
3093
3065
|
formProp: Y
|
|
3094
3066
|
}) => A(Ne, te({
|
|
3095
|
-
modelValue:
|
|
3096
|
-
"onUpdate:modelValue": (Q) =>
|
|
3067
|
+
modelValue: h.value[u],
|
|
3068
|
+
"onUpdate:modelValue": (Q) => h.value[u] = Q,
|
|
3097
3069
|
clearable: !0,
|
|
3098
3070
|
maxlength: $,
|
|
3099
3071
|
minlength: Z,
|
|
@@ -3102,42 +3074,42 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3102
3074
|
onClick: () => Re(u),
|
|
3103
3075
|
onClear: () => me(),
|
|
3104
3076
|
placeholder: (Y == null ? void 0 : Y.placeholder) || R || `点击选择${label || "人员"}`
|
|
3105
|
-
}), null),
|
|
3077
|
+
}), null), Ue = (u) => {
|
|
3106
3078
|
switch (u.type) {
|
|
3107
3079
|
case "":
|
|
3108
3080
|
case void 0:
|
|
3109
|
-
case
|
|
3081
|
+
case be.input:
|
|
3110
3082
|
case "el-input":
|
|
3111
3083
|
return y(u);
|
|
3112
|
-
case
|
|
3084
|
+
case be.number:
|
|
3113
3085
|
case "el-input-number":
|
|
3114
|
-
return
|
|
3115
|
-
case
|
|
3086
|
+
return j(u);
|
|
3087
|
+
case be.select:
|
|
3116
3088
|
case "el-select":
|
|
3117
3089
|
return W(u);
|
|
3118
|
-
case
|
|
3090
|
+
case be.checkbox:
|
|
3119
3091
|
case "el-checkbox":
|
|
3120
3092
|
return g(u);
|
|
3121
|
-
case
|
|
3093
|
+
case be.radio:
|
|
3122
3094
|
case "el-radio-group":
|
|
3123
3095
|
case "el-radio":
|
|
3124
|
-
return
|
|
3125
|
-
case
|
|
3096
|
+
return H(u);
|
|
3097
|
+
case be.date:
|
|
3126
3098
|
case "el-date-picker":
|
|
3127
3099
|
return L(u);
|
|
3128
3100
|
case "el-time-select":
|
|
3129
3101
|
return oe(u);
|
|
3130
|
-
case
|
|
3102
|
+
case be.treeselect:
|
|
3131
3103
|
case "el-tree-select":
|
|
3132
3104
|
return S(u);
|
|
3133
|
-
case
|
|
3105
|
+
case be.choosePerson:
|
|
3134
3106
|
return Ge(u);
|
|
3135
3107
|
case "select-input":
|
|
3136
3108
|
return P(u);
|
|
3137
3109
|
default:
|
|
3138
3110
|
return A(q, null, null);
|
|
3139
3111
|
}
|
|
3140
|
-
}, Ye =
|
|
3112
|
+
}, Ye = z(() => {
|
|
3141
3113
|
var V;
|
|
3142
3114
|
const u = [], R = b.value.length - 1;
|
|
3143
3115
|
return (V = b.value) == null || V.forEach((w, $) => {
|
|
@@ -3165,9 +3137,9 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3165
3137
|
}, [A(st, {
|
|
3166
3138
|
label: w.type === "select-input" ? "" : w.label,
|
|
3167
3139
|
prop: w.key
|
|
3168
|
-
}, pt(Z =
|
|
3140
|
+
}, pt(Z = Ue(w)) ? Z : {
|
|
3169
3141
|
default: () => [Z]
|
|
3170
|
-
}), A(
|
|
3142
|
+
}), A(xe, {
|
|
3171
3143
|
name: "icon-sousuo1",
|
|
3172
3144
|
pop: !0,
|
|
3173
3145
|
title: "搜索",
|
|
@@ -3175,7 +3147,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3175
3147
|
"show-bg": !0,
|
|
3176
3148
|
width: 40,
|
|
3177
3149
|
onClick: () => a()
|
|
3178
|
-
}, null), A(
|
|
3150
|
+
}, null), A(xe, {
|
|
3179
3151
|
name: "icon-zhongzhi",
|
|
3180
3152
|
pop: !0,
|
|
3181
3153
|
title: "重置并搜索",
|
|
@@ -3187,7 +3159,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3187
3159
|
) : A(st, {
|
|
3188
3160
|
label: w.type === "select-input" ? "" : w.label,
|
|
3189
3161
|
prop: w.key
|
|
3190
|
-
}, pt(J =
|
|
3162
|
+
}, pt(J = Ue(w)) ? J : {
|
|
3191
3163
|
default: () => [J]
|
|
3192
3164
|
})]
|
|
3193
3165
|
}));
|
|
@@ -3201,7 +3173,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3201
3173
|
class: "auto-search-form",
|
|
3202
3174
|
onKeyup: r,
|
|
3203
3175
|
ref: e,
|
|
3204
|
-
model:
|
|
3176
|
+
model: h.value
|
|
3205
3177
|
}, {
|
|
3206
3178
|
default: () => [A(Pt, {
|
|
3207
3179
|
gutter: 16
|
|
@@ -3221,7 +3193,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3221
3193
|
url: `${N}/server/component/pick/mix`,
|
|
3222
3194
|
headers: {
|
|
3223
3195
|
"Content-Type": "application/json;charset=UTF-8",
|
|
3224
|
-
Authorization:
|
|
3196
|
+
Authorization: E
|
|
3225
3197
|
}
|
|
3226
3198
|
},
|
|
3227
3199
|
tabs: ["group", "role", "post"],
|
|
@@ -3240,9 +3212,9 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3240
3212
|
onOk: (u) => We(u)
|
|
3241
3213
|
}, null)]);
|
|
3242
3214
|
}
|
|
3243
|
-
}), Wa = { class: "header-left" }, Ga = { class: "title" }, Ya = { class: "flex items-center" }, Qa = /* @__PURE__ */
|
|
3215
|
+
}), Wa = { class: "header-left" }, Ga = { class: "title" }, Ya = { class: "flex items-center" }, Qa = /* @__PURE__ */ re({
|
|
3244
3216
|
__name: "IkPageHead",
|
|
3245
|
-
props: /* @__PURE__ */
|
|
3217
|
+
props: /* @__PURE__ */ Me({
|
|
3246
3218
|
// 标题
|
|
3247
3219
|
headerTitle: {
|
|
3248
3220
|
type: String,
|
|
@@ -3308,27 +3280,27 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3308
3280
|
emits: ["update:modelValue"],
|
|
3309
3281
|
setup(l) {
|
|
3310
3282
|
ft((b) => ({
|
|
3311
|
-
"59e2b6b4":
|
|
3283
|
+
"59e2b6b4": F
|
|
3312
3284
|
}));
|
|
3313
3285
|
const c = l, t = Ke(l, "modelValue"), e = C(c.defaultShow), k = () => {
|
|
3314
3286
|
e.value = !e.value;
|
|
3315
|
-
},
|
|
3287
|
+
}, f = z(() => c.fields.filter((b) => !b.onlyForm)), x = z(() => {
|
|
3316
3288
|
var b;
|
|
3317
3289
|
return (b = c.fields) == null ? void 0 : b.filter((O) => O.search);
|
|
3318
|
-
}),
|
|
3290
|
+
}), h = z(() => x.value.length), F = `${c.headerHeight}px`;
|
|
3319
3291
|
return (b, O) => {
|
|
3320
|
-
const
|
|
3292
|
+
const v = ne("el-card");
|
|
3321
3293
|
return n(), m(
|
|
3322
3294
|
"div",
|
|
3323
3295
|
{
|
|
3324
|
-
class:
|
|
3296
|
+
class: fe(["ik-page-header", { "show-search": e.value }])
|
|
3325
3297
|
},
|
|
3326
3298
|
[
|
|
3327
3299
|
d(
|
|
3328
3300
|
"div",
|
|
3329
3301
|
{
|
|
3330
3302
|
class: "header",
|
|
3331
|
-
style:
|
|
3303
|
+
style: Ee({
|
|
3332
3304
|
borderColor: l.headerBorder ? "var(--ik-border-color)" : "transparent",
|
|
3333
3305
|
marginBottom: l.headerBorder ? "8px" : "0"
|
|
3334
3306
|
})
|
|
@@ -3343,13 +3315,13 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3343
3315
|
1
|
|
3344
3316
|
/* TEXT */
|
|
3345
3317
|
),
|
|
3346
|
-
|
|
3318
|
+
ve(b.$slots, "headerLeft", {}, void 0, !0)
|
|
3347
3319
|
]),
|
|
3348
3320
|
B(" 默认按钮 "),
|
|
3349
3321
|
d("div", Ya, [
|
|
3350
3322
|
B(" 右侧操作或自定义内容 "),
|
|
3351
|
-
|
|
3352
|
-
l.exportBtn ? (n(), D(T(
|
|
3323
|
+
ve(b.$slots, "headerRight", {}, void 0, !0),
|
|
3324
|
+
l.exportBtn ? (n(), D(T(xe), {
|
|
3353
3325
|
key: 0,
|
|
3354
3326
|
name: "iksvg_xiazai",
|
|
3355
3327
|
type: "primary",
|
|
@@ -3357,7 +3329,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3357
3329
|
"show-bg": "",
|
|
3358
3330
|
size: "default"
|
|
3359
3331
|
})) : B("v-if", !0),
|
|
3360
|
-
|
|
3332
|
+
h.value ? (n(), D(T(xe), {
|
|
3361
3333
|
key: 1,
|
|
3362
3334
|
name: "iksvg_shaixuan1",
|
|
3363
3335
|
size: "default",
|
|
@@ -3365,7 +3337,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3365
3337
|
"show-bg": "",
|
|
3366
3338
|
onClick: k
|
|
3367
3339
|
}, null, 8, ["title"])) : B("v-if", !0),
|
|
3368
|
-
l.refreshBtn ? (n(), D(T(
|
|
3340
|
+
l.refreshBtn ? (n(), D(T(xe), {
|
|
3369
3341
|
key: 2,
|
|
3370
3342
|
name: "iksvg_zhongzhi1",
|
|
3371
3343
|
title: "保留搜索条件刷新",
|
|
@@ -3379,11 +3351,11 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3379
3351
|
:width="40"\r
|
|
3380
3352
|
size="small"\r
|
|
3381
3353
|
/> `),
|
|
3382
|
-
A(T(
|
|
3354
|
+
A(T(za), {
|
|
3383
3355
|
modelValue: t.value,
|
|
3384
3356
|
"onUpdate:modelValue": O[0] || (O[0] = (i) => t.value = i),
|
|
3385
3357
|
title: "设置表格字段",
|
|
3386
|
-
list:
|
|
3358
|
+
list: f.value,
|
|
3387
3359
|
tab: l.tabId
|
|
3388
3360
|
}, null, 8, ["modelValue", "list", "tab"])
|
|
3389
3361
|
])
|
|
@@ -3391,7 +3363,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3391
3363
|
4
|
|
3392
3364
|
/* STYLE */
|
|
3393
3365
|
),
|
|
3394
|
-
A(
|
|
3366
|
+
A(v, {
|
|
3395
3367
|
shadow: "always",
|
|
3396
3368
|
class: "search-form"
|
|
3397
3369
|
}, {
|
|
@@ -3405,7 +3377,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3405
3377
|
class: "hide-serch",
|
|
3406
3378
|
onClick: k
|
|
3407
3379
|
}, [
|
|
3408
|
-
A(T(
|
|
3380
|
+
A(T(xe), {
|
|
3409
3381
|
title: "收起",
|
|
3410
3382
|
rotate: "180",
|
|
3411
3383
|
name: "icon-shouqi"
|
|
@@ -3421,7 +3393,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3421
3393
|
);
|
|
3422
3394
|
};
|
|
3423
3395
|
}
|
|
3424
|
-
}), Xa = /* @__PURE__ */ se(Qa, [["__scopeId", "data-v-659625f1"]]),
|
|
3396
|
+
}), Xa = /* @__PURE__ */ se(Qa, [["__scopeId", "data-v-659625f1"]]), vt = {
|
|
3425
3397
|
// 标题
|
|
3426
3398
|
headerTitle: {
|
|
3427
3399
|
type: String,
|
|
@@ -3543,7 +3515,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3543
3515
|
type: Number,
|
|
3544
3516
|
default: 66
|
|
3545
3517
|
}
|
|
3546
|
-
}, qa = { class: "total" }, Ka = { class: "num" }, Za = /* @__PURE__ */
|
|
3518
|
+
}, qa = { class: "total" }, Ka = { class: "num" }, Za = /* @__PURE__ */ re({
|
|
3547
3519
|
__name: "IkPage",
|
|
3548
3520
|
props: {
|
|
3549
3521
|
// 总条数
|
|
@@ -3568,23 +3540,23 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3568
3540
|
emits: ["currentChange", "sizeChange"],
|
|
3569
3541
|
setup(l, { emit: c }) {
|
|
3570
3542
|
const t = l, e = c, k = C(1);
|
|
3571
|
-
|
|
3543
|
+
pe(() => t.current, (b) => {
|
|
3572
3544
|
k.value = b;
|
|
3573
3545
|
});
|
|
3574
|
-
const
|
|
3546
|
+
const f = [15, 30, 60, 100, 200, 500], x = C(f[0]), h = (b) => {
|
|
3575
3547
|
e("sizeChange", b), t == null || t.search({
|
|
3576
3548
|
page: k.value,
|
|
3577
3549
|
rows: x.value
|
|
3578
3550
|
});
|
|
3579
|
-
},
|
|
3551
|
+
}, F = (b) => {
|
|
3580
3552
|
e("currentChange", b), t == null || t.search({
|
|
3581
3553
|
page: k.value,
|
|
3582
3554
|
rows: x.value
|
|
3583
3555
|
});
|
|
3584
3556
|
};
|
|
3585
3557
|
return (b, O) => {
|
|
3586
|
-
const
|
|
3587
|
-
return n(), D(
|
|
3558
|
+
const v = ne("el-pagination");
|
|
3559
|
+
return n(), D(v, te({
|
|
3588
3560
|
"current-page": k.value,
|
|
3589
3561
|
"onUpdate:currentPage": O[0] || (O[0] = (i) => k.value = i),
|
|
3590
3562
|
"page-size": x.value,
|
|
@@ -3593,10 +3565,10 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3593
3565
|
layout: "slot, ->, sizes, prev, pager, next, jumper",
|
|
3594
3566
|
small: l.mini,
|
|
3595
3567
|
total: l.total,
|
|
3596
|
-
"page-sizes":
|
|
3568
|
+
"page-sizes": f,
|
|
3597
3569
|
class: "ik-pagin-action",
|
|
3598
|
-
onSizeChange:
|
|
3599
|
-
onCurrentChange:
|
|
3570
|
+
onSizeChange: h,
|
|
3571
|
+
onCurrentChange: F
|
|
3600
3572
|
}), {
|
|
3601
3573
|
default: U(() => [
|
|
3602
3574
|
d("span", qa, [
|
|
@@ -3616,45 +3588,45 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3616
3588
|
}, 16, ["current-page", "page-size", "small", "total"]);
|
|
3617
3589
|
};
|
|
3618
3590
|
}
|
|
3619
|
-
}), Ja = /* @__PURE__ */ se(Za, [["__scopeId", "data-v-e7b4fc6e"]]), en = /* @__PURE__ */
|
|
3591
|
+
}), Ja = /* @__PURE__ */ se(Za, [["__scopeId", "data-v-e7b4fc6e"]]), en = /* @__PURE__ */ re({
|
|
3620
3592
|
__name: "IkPageTable",
|
|
3621
|
-
props:
|
|
3593
|
+
props: vt,
|
|
3622
3594
|
emits: ["selection-change", "page-change"],
|
|
3623
3595
|
setup(l, { expose: c, emit: t }) {
|
|
3624
3596
|
var i;
|
|
3625
|
-
const e = l, k = t, { attrs:
|
|
3626
|
-
page: ((i =
|
|
3597
|
+
const e = l, k = t, { attrs: f } = kt(), x = C({
|
|
3598
|
+
page: ((i = f.page) == null ? void 0 : i.page) || 1,
|
|
3627
3599
|
rows: 15
|
|
3628
|
-
}),
|
|
3629
|
-
const { page: a, rows: r } = (
|
|
3630
|
-
return o.forEach((y,
|
|
3631
|
-
y.__index = a === 1 ?
|
|
3600
|
+
}), h = z(() => {
|
|
3601
|
+
const { page: a, rows: r } = (f == null ? void 0 : f.page) || x.value, o = ae.cloneDeep(e.tableData);
|
|
3602
|
+
return o.forEach((y, j) => {
|
|
3603
|
+
y.__index = a === 1 ? j + 1 : (a - 1) * r + j + 1;
|
|
3632
3604
|
}), o;
|
|
3633
|
-
}),
|
|
3605
|
+
}), F = (a) => {
|
|
3634
3606
|
x.value = a, k("page-change", a), e.search();
|
|
3635
3607
|
}, b = C([]), O = (a) => {
|
|
3636
3608
|
b.value = a, k("selection-change", a);
|
|
3637
|
-
},
|
|
3638
|
-
return c({ table:
|
|
3639
|
-
var W,
|
|
3640
|
-
const o = ne("el-table-column"), y = ne("el-table"),
|
|
3609
|
+
}, v = C();
|
|
3610
|
+
return c({ table: v }), (a, r) => {
|
|
3611
|
+
var W, H, g;
|
|
3612
|
+
const o = ne("el-table-column"), y = ne("el-table"), j = Ze("loading");
|
|
3641
3613
|
return n(), m(
|
|
3642
3614
|
q,
|
|
3643
3615
|
null,
|
|
3644
3616
|
[
|
|
3645
3617
|
B(" 自定义表格 "),
|
|
3646
|
-
(W = a.$slots) != null && W.table ?
|
|
3618
|
+
(W = a.$slots) != null && W.table ? ve(a.$slots, "table", { key: 0 }, void 0, !0) : (n(), m(
|
|
3647
3619
|
q,
|
|
3648
3620
|
{ key: 1 },
|
|
3649
3621
|
[
|
|
3650
3622
|
B(" 默认表格 "),
|
|
3651
|
-
A(
|
|
3623
|
+
A(ht, { name: "el-zoom-in-center" }, {
|
|
3652
3624
|
default: U(() => [
|
|
3653
|
-
|
|
3625
|
+
Ce((n(), D(y, te({
|
|
3654
3626
|
ref_key: "refTable",
|
|
3655
|
-
ref:
|
|
3627
|
+
ref: v
|
|
3656
3628
|
}, { ...a.$attrs, ...e }, {
|
|
3657
|
-
data:
|
|
3629
|
+
data: h.value,
|
|
3658
3630
|
style: { width: "100%" },
|
|
3659
3631
|
onSelectionChange: O
|
|
3660
3632
|
}), {
|
|
@@ -3672,12 +3644,12 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3672
3644
|
width: 60,
|
|
3673
3645
|
align: "center"
|
|
3674
3646
|
})) : B("v-if", !0),
|
|
3675
|
-
|
|
3647
|
+
ve(a.$slots, "default", {}, void 0, !0)
|
|
3676
3648
|
]),
|
|
3677
3649
|
_: 3
|
|
3678
3650
|
/* FORWARDED */
|
|
3679
3651
|
}, 16, ["data"])), [
|
|
3680
|
-
[
|
|
3652
|
+
[j, a.loading]
|
|
3681
3653
|
])
|
|
3682
3654
|
]),
|
|
3683
3655
|
_: 3
|
|
@@ -3690,9 +3662,9 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3690
3662
|
B(" 分页 "),
|
|
3691
3663
|
a.total ? (n(), D(Ja, {
|
|
3692
3664
|
key: 2,
|
|
3693
|
-
current: ((g = (
|
|
3665
|
+
current: ((g = (H = a.$attrs) == null ? void 0 : H.page) == null ? void 0 : g.page) || 1,
|
|
3694
3666
|
total: a.total,
|
|
3695
|
-
search:
|
|
3667
|
+
search: F
|
|
3696
3668
|
}, null, 8, ["current", "total"])) : B("v-if", !0)
|
|
3697
3669
|
],
|
|
3698
3670
|
64
|
|
@@ -3700,9 +3672,9 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3700
3672
|
);
|
|
3701
3673
|
};
|
|
3702
3674
|
}
|
|
3703
|
-
}), tn = /* @__PURE__ */ se(en, [["__scopeId", "data-v-7e61d7f1"]]), ln = { class: "choose" }, an = { class: "btn" }, nn = /* @__PURE__ */
|
|
3675
|
+
}), tn = /* @__PURE__ */ se(en, [["__scopeId", "data-v-7e61d7f1"]]), ln = { class: "choose" }, an = { class: "btn" }, nn = /* @__PURE__ */ re({
|
|
3704
3676
|
__name: "index",
|
|
3705
|
-
props: /* @__PURE__ */
|
|
3677
|
+
props: /* @__PURE__ */ Me(vt, {
|
|
3706
3678
|
modelValue: {
|
|
3707
3679
|
type: Object,
|
|
3708
3680
|
default: () => ({
|
|
@@ -3712,46 +3684,46 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3712
3684
|
},
|
|
3713
3685
|
modelModifiers: {}
|
|
3714
3686
|
}),
|
|
3715
|
-
emits: /* @__PURE__ */
|
|
3687
|
+
emits: /* @__PURE__ */ Me(["selection-change", "delete", "download", "addFunction"], ["update:modelValue"]),
|
|
3716
3688
|
setup(l, { expose: c, emit: t }) {
|
|
3717
|
-
const e = l, k = t,
|
|
3689
|
+
const e = l, k = t, f = Ke(l, "modelValue"), x = () => {
|
|
3718
3690
|
var L;
|
|
3719
|
-
(L =
|
|
3691
|
+
(L = f == null ? void 0 : f.value) != null && L.page && (f.value = {
|
|
3720
3692
|
page: 1,
|
|
3721
3693
|
rows: 15
|
|
3722
3694
|
});
|
|
3723
3695
|
};
|
|
3724
3696
|
x();
|
|
3725
|
-
const
|
|
3726
|
-
|
|
3727
|
-
...
|
|
3697
|
+
const h = (L) => {
|
|
3698
|
+
f.value = {
|
|
3699
|
+
...f.value,
|
|
3728
3700
|
...L
|
|
3729
3701
|
};
|
|
3730
|
-
},
|
|
3702
|
+
}, F = (L) => {
|
|
3731
3703
|
var P;
|
|
3732
3704
|
x();
|
|
3733
3705
|
const S = (L == null ? void 0 : L.type) === "click" ? {} : L;
|
|
3734
|
-
|
|
3735
|
-
...
|
|
3706
|
+
f.value = {
|
|
3707
|
+
...f.value,
|
|
3736
3708
|
...S
|
|
3737
3709
|
}, (P = e == null ? void 0 : e.search) == null || P.call(e, {
|
|
3738
|
-
...
|
|
3710
|
+
...f.value
|
|
3739
3711
|
});
|
|
3740
3712
|
}, b = C([]), O = (L) => {
|
|
3741
3713
|
b.value = L, k("selection-change", L);
|
|
3742
|
-
},
|
|
3743
|
-
W.value = L ? { ...L } : null, e.title ? e.title.includes("新增") || e.title.includes("修改") ?
|
|
3744
|
-
}, oe =
|
|
3714
|
+
}, v = z(() => b.value.length || e.chooseLen), i = C(e.fields), a = z(() => "light"), r = C(), o = C(), y = C(), j = C(!1), W = C(void 0), H = C(e.title || ""), g = (L) => {
|
|
3715
|
+
W.value = L ? { ...L } : null, e.title ? e.title.includes("新增") || e.title.includes("修改") ? H.value = L ? e.title.replace(/新增/g, "修改") : e.title.replace(/修改/g, "新增") : H.value = L ? `修改${e.title}` : `新增${e.title}` : H.value = L ? "修改" : "新增", j.value = !0;
|
|
3716
|
+
}, oe = z(() => e.fields.find((L) => L.isEdit));
|
|
3745
3717
|
return c({
|
|
3746
3718
|
table: r,
|
|
3747
3719
|
header: o,
|
|
3748
3720
|
chooseList: b,
|
|
3749
3721
|
srotFields: i,
|
|
3750
|
-
pageData:
|
|
3722
|
+
pageData: f,
|
|
3751
3723
|
dialog: y,
|
|
3752
3724
|
handAdd: g
|
|
3753
3725
|
}), (L, S) => {
|
|
3754
|
-
const P = ne("el-button"), N = ne("IkNumberDuration"),
|
|
3726
|
+
const P = ne("el-button"), N = ne("IkNumberDuration"), E = ne("el-table-column"), ie = Ze("role");
|
|
3755
3727
|
return n(), m(
|
|
3756
3728
|
q,
|
|
3757
3729
|
null,
|
|
@@ -3764,15 +3736,15 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3764
3736
|
modelValue: i.value,
|
|
3765
3737
|
"onUpdate:modelValue": S[1] || (S[1] = (M) => i.value = M),
|
|
3766
3738
|
loading: L.loading,
|
|
3767
|
-
search:
|
|
3739
|
+
search: F,
|
|
3768
3740
|
"tab-id": L.tabId
|
|
3769
3741
|
}), {
|
|
3770
3742
|
headerLeft: U(() => [
|
|
3771
|
-
|
|
3743
|
+
ve(L.$slots, "headerLeft", {}, void 0, !0)
|
|
3772
3744
|
]),
|
|
3773
3745
|
headerRight: U(() => [
|
|
3774
|
-
|
|
3775
|
-
oe.value ?
|
|
3746
|
+
ve(L.$slots, "headerRight", {}, () => [
|
|
3747
|
+
oe.value ? Ce((n(), D(P, {
|
|
3776
3748
|
key: 0,
|
|
3777
3749
|
type: "primary",
|
|
3778
3750
|
onClick: S[0] || (S[0] = (M) => g(null))
|
|
@@ -3795,28 +3767,28 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3795
3767
|
"div",
|
|
3796
3768
|
{
|
|
3797
3769
|
key: 0,
|
|
3798
|
-
class:
|
|
3770
|
+
class: fe(["hand-selection", { select: v.value }])
|
|
3799
3771
|
},
|
|
3800
3772
|
[
|
|
3801
3773
|
d("p", ln, [
|
|
3802
3774
|
S[5] || (S[5] = le(" 已选 ")),
|
|
3803
3775
|
d("span", null, [
|
|
3804
|
-
A(N, { value:
|
|
3776
|
+
A(N, { value: v.value }, null, 8, ["value"])
|
|
3805
3777
|
]),
|
|
3806
3778
|
S[6] || (S[6] = le(" 条 "))
|
|
3807
3779
|
]),
|
|
3808
3780
|
d("div", an, [
|
|
3809
|
-
L.$slots.selectionRight ?
|
|
3781
|
+
L.$slots.selectionRight ? ve(L.$slots, "selectionRight", { key: 1 }, void 0, !0) : (n(), m(
|
|
3810
3782
|
q,
|
|
3811
3783
|
{ key: 0 },
|
|
3812
3784
|
[
|
|
3813
|
-
A(T(
|
|
3785
|
+
A(T(xe), {
|
|
3814
3786
|
name: "icon-shanchu",
|
|
3815
3787
|
"show-bg": "",
|
|
3816
3788
|
size: "default",
|
|
3817
3789
|
onClick: S[2] || (S[2] = (M) => L.$emit("delete", b.value))
|
|
3818
3790
|
}),
|
|
3819
|
-
A(T(
|
|
3791
|
+
A(T(xe), {
|
|
3820
3792
|
ize: "default",
|
|
3821
3793
|
name: "icon-xiazai",
|
|
3822
3794
|
"show-bg": "",
|
|
@@ -3832,13 +3804,13 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3832
3804
|
/* CLASS */
|
|
3833
3805
|
)) : B("v-if", !0),
|
|
3834
3806
|
B(" 自定义表格 "),
|
|
3835
|
-
|
|
3807
|
+
ve(L.$slots, "table", {}, () => [
|
|
3836
3808
|
A(tn, te({
|
|
3837
3809
|
ref_key: "refTable",
|
|
3838
3810
|
ref: r,
|
|
3839
|
-
page:
|
|
3811
|
+
page: f.value
|
|
3840
3812
|
}, { ...L.$attrs, ...e }, {
|
|
3841
|
-
onPageChange:
|
|
3813
|
+
onPageChange: h,
|
|
3842
3814
|
onSelectionChange: O
|
|
3843
3815
|
}), {
|
|
3844
3816
|
default: U(() => [
|
|
@@ -3855,7 +3827,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3855
3827
|
q,
|
|
3856
3828
|
{ key: 0 },
|
|
3857
3829
|
[
|
|
3858
|
-
M.tableSlot ? (n(), D(
|
|
3830
|
+
M.tableSlot ? (n(), D(E, te({
|
|
3859
3831
|
key: 1,
|
|
3860
3832
|
align: M.align,
|
|
3861
3833
|
width: M.width,
|
|
@@ -3866,11 +3838,11 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3866
3838
|
ref_for: !0
|
|
3867
3839
|
}, { ...M, ...L.$attrs, ...e }), {
|
|
3868
3840
|
default: U((K) => [
|
|
3869
|
-
|
|
3841
|
+
ve(L.$slots, M.tableSlot, { data: K }, void 0, !0)
|
|
3870
3842
|
]),
|
|
3871
3843
|
_: 2
|
|
3872
3844
|
/* DYNAMIC */
|
|
3873
|
-
}, 1040, ["align", "width", "min-width", "show-overflow-tooltip"])) : (n(), D(
|
|
3845
|
+
}, 1040, ["align", "width", "min-width", "show-overflow-tooltip"])) : (n(), D(E, te({
|
|
3874
3846
|
key: 0,
|
|
3875
3847
|
prop: M.key,
|
|
3876
3848
|
width: M.width,
|
|
@@ -3917,7 +3889,7 @@ const Fa = /* @__PURE__ */ ue({
|
|
|
3917
3889
|
);
|
|
3918
3890
|
};
|
|
3919
3891
|
}
|
|
3920
|
-
}), sn = /* @__PURE__ */ se(nn, [["__scopeId", "data-v-a4dd744c"]]), pn =
|
|
3892
|
+
}), sn = /* @__PURE__ */ se(nn, [["__scopeId", "data-v-a4dd744c"]]), pn = ze(sn);
|
|
3921
3893
|
export {
|
|
3922
3894
|
pn as IkPageFull,
|
|
3923
3895
|
pn as default
|