yc-vep-ui 0.0.67 → 0.0.68
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/vep-ui.es.js +255 -255
- package/dist/vep-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vep-ui.es.js
CHANGED
|
@@ -8,7 +8,7 @@ var z = Object.defineProperty, B = (e, t) => {
|
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
10
|
return t || z(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
-
}, re = { class: /* @__PURE__ */ g({ bodyClass: !0 }) },
|
|
11
|
+
}, re = { class: /* @__PURE__ */ g({ bodyClass: !0 }) }, V = /* @__PURE__ */ u({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
14
14
|
title: {},
|
|
@@ -41,11 +41,11 @@ var z = Object.defineProperty, B = (e, t) => {
|
|
|
41
41
|
} : void 0]), 1040, ["class"]);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), H = (e, t) => {
|
|
45
45
|
let n = e.__vccOpts || e;
|
|
46
46
|
for (let [e, r] of t) n[e] = r;
|
|
47
47
|
return n;
|
|
48
|
-
},
|
|
48
|
+
}, ie = /* @__PURE__ */ B({ default: () => ae }), ae = /* @__PURE__ */ H(V, [["__scopeId", "data-v-6ebb01d7"]]), U = {
|
|
49
49
|
get Button() {
|
|
50
50
|
return $()?.resolveComponent?.("el-button") || "el-button";
|
|
51
51
|
},
|
|
@@ -136,14 +136,14 @@ var z = Object.defineProperty, B = (e, t) => {
|
|
|
136
136
|
};
|
|
137
137
|
//#endregion
|
|
138
138
|
//#region src/components/utils/render.ts
|
|
139
|
-
function
|
|
139
|
+
function W() {
|
|
140
140
|
let e = $();
|
|
141
141
|
return e?.h ? e.h : function(e, t, n) {
|
|
142
142
|
return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
let t =
|
|
145
|
+
function oe(e) {
|
|
146
|
+
let t = W();
|
|
147
147
|
return t ? t("div", { style: {
|
|
148
148
|
display: "flex",
|
|
149
149
|
flexDirection: "row",
|
|
@@ -151,7 +151,7 @@ function se(e) {
|
|
|
151
151
|
gap: "8px"
|
|
152
152
|
} }, (Array.isArray(e) ? e : [e]).map((e) => {
|
|
153
153
|
let { text: n, ...r } = e;
|
|
154
|
-
return t(
|
|
154
|
+
return t(U.Button, {
|
|
155
155
|
...r,
|
|
156
156
|
link: !0,
|
|
157
157
|
size: "small",
|
|
@@ -159,54 +159,54 @@ function se(e) {
|
|
|
159
159
|
}, () => n);
|
|
160
160
|
})) : null;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
let t =
|
|
162
|
+
function se(e) {
|
|
163
|
+
let t = W();
|
|
164
164
|
return t ? Array.isArray(e) ? t("div", { style: {
|
|
165
165
|
display: "flex",
|
|
166
166
|
gap: "8px",
|
|
167
167
|
flexDirection: "row",
|
|
168
168
|
flexWrap: "wrap"
|
|
169
|
-
} }, e.map((e) => t(
|
|
169
|
+
} }, e.map((e) => t(U.Link, {
|
|
170
170
|
...e,
|
|
171
171
|
type: e.type || "primary"
|
|
172
|
-
}, () => t(
|
|
172
|
+
}, () => t(U.Text, {
|
|
173
173
|
lineClamp: e?.lineClamp,
|
|
174
174
|
type: e.type || "primary"
|
|
175
|
-
}, () => e.prop)))) : t(
|
|
175
|
+
}, () => e.prop)))) : t(U.Link, {
|
|
176
176
|
...e,
|
|
177
177
|
type: e.type || "primary"
|
|
178
|
-
}, () => t(
|
|
178
|
+
}, () => t(U.Text, {
|
|
179
179
|
lineClamp: e?.lineClamp,
|
|
180
180
|
type: e.type || "primary"
|
|
181
181
|
}, () => e.prop)) : null;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
let t =
|
|
183
|
+
function ce(e) {
|
|
184
|
+
let t = W();
|
|
185
185
|
return t ? t("div", { style: {
|
|
186
186
|
display: "flex",
|
|
187
187
|
gap: "4px",
|
|
188
188
|
flexDirection: "row",
|
|
189
189
|
flexWrap: "wrap"
|
|
190
|
-
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(
|
|
190
|
+
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(U.Tag, e, () => n))) : null;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
let t =
|
|
194
|
-
return t ? t(
|
|
192
|
+
function le(e) {
|
|
193
|
+
let t = W();
|
|
194
|
+
return t ? t(U.Tag, { ...e }) : null;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
let t =
|
|
198
|
-
return t ? t(
|
|
196
|
+
function ue(e) {
|
|
197
|
+
let t = W();
|
|
198
|
+
return t ? t(U.Select, {
|
|
199
199
|
style: { minWidth: "160px" },
|
|
200
200
|
...e,
|
|
201
201
|
placeholder: "请选择",
|
|
202
202
|
filterable: !0
|
|
203
203
|
}) : null;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
let t =
|
|
205
|
+
function de(e) {
|
|
206
|
+
let t = W();
|
|
207
207
|
if (!t) return null;
|
|
208
208
|
let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
209
|
-
return t(
|
|
209
|
+
return t(U.DatePicker, {
|
|
210
210
|
format: n,
|
|
211
211
|
valueFormat: n,
|
|
212
212
|
startPlaceholder: "开始时间",
|
|
@@ -216,11 +216,11 @@ function fe(e) {
|
|
|
216
216
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
let t =
|
|
219
|
+
function fe(e) {
|
|
220
|
+
let t = W();
|
|
221
221
|
if (!t) return null;
|
|
222
222
|
let { start: n = "00:00", end: r = "23:30", ...i } = e;
|
|
223
|
-
return t(
|
|
223
|
+
return t(U.TimeSelect, {
|
|
224
224
|
start: n,
|
|
225
225
|
end: r,
|
|
226
226
|
...i,
|
|
@@ -228,21 +228,21 @@ function pe(e) {
|
|
|
228
228
|
filterable: !0
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
let t =
|
|
233
|
-
return t ? t(
|
|
231
|
+
function pe(e) {
|
|
232
|
+
let t = W();
|
|
233
|
+
return t ? t(U.Input, {
|
|
234
234
|
...e,
|
|
235
235
|
placeholder: "请输入"
|
|
236
236
|
}) : null;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
let t =
|
|
238
|
+
function me(e) {
|
|
239
|
+
let t = W();
|
|
240
240
|
if (!t) return null;
|
|
241
241
|
let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
|
|
242
242
|
...e?.style || {},
|
|
243
243
|
width: "100%"
|
|
244
244
|
};
|
|
245
|
-
return t(
|
|
245
|
+
return t(U.InputNumber, {
|
|
246
246
|
align: n,
|
|
247
247
|
style: a,
|
|
248
248
|
controlsPosition: r,
|
|
@@ -250,70 +250,70 @@ function he(e) {
|
|
|
250
250
|
...i
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
let t =
|
|
253
|
+
function he(e) {
|
|
254
|
+
let t = W();
|
|
255
255
|
if (!t) return null;
|
|
256
256
|
let { rows: n = 1, ...r } = e;
|
|
257
|
-
return t(
|
|
257
|
+
return t(U.Input, {
|
|
258
258
|
placeholder: "请输入",
|
|
259
259
|
rows: n,
|
|
260
260
|
...r,
|
|
261
261
|
type: "textarea"
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
let t =
|
|
266
|
-
return t ? t(
|
|
264
|
+
function ge(e) {
|
|
265
|
+
let t = W();
|
|
266
|
+
return t ? t(U.InputTag, {
|
|
267
267
|
placeholder: "请输入",
|
|
268
268
|
...e,
|
|
269
269
|
clearable: !1
|
|
270
270
|
}) : null;
|
|
271
271
|
}
|
|
272
|
+
function _e(e) {
|
|
273
|
+
let t = W();
|
|
274
|
+
return t ? t(Y, e) : null;
|
|
275
|
+
}
|
|
272
276
|
function ve(e) {
|
|
273
|
-
let t =
|
|
274
|
-
return t ? t(
|
|
277
|
+
let t = W();
|
|
278
|
+
return t ? t(U.RadioGroup, e) : null;
|
|
275
279
|
}
|
|
276
280
|
function ye(e) {
|
|
277
|
-
let t =
|
|
278
|
-
return t ? t(
|
|
281
|
+
let t = W();
|
|
282
|
+
return t ? t(U.Text, e, () => e.prop) : null;
|
|
279
283
|
}
|
|
280
284
|
function be(e) {
|
|
281
|
-
let t =
|
|
282
|
-
return t ? t(
|
|
283
|
-
}
|
|
284
|
-
function xe(e) {
|
|
285
|
-
let t = U();
|
|
286
|
-
return t ? t(X, {
|
|
285
|
+
let t = W();
|
|
286
|
+
return t ? t(Z, {
|
|
287
287
|
placeholder: "请选择",
|
|
288
288
|
...e,
|
|
289
289
|
searchable: !0
|
|
290
290
|
}) : null;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
let t =
|
|
294
|
-
return t ? t(
|
|
292
|
+
function xe(e) {
|
|
293
|
+
let t = W();
|
|
294
|
+
return t ? t(Q, {
|
|
295
295
|
...e,
|
|
296
296
|
"onUpdate:fileList": (t, n) => e.onChange?.(n)
|
|
297
297
|
}) : null;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
button:
|
|
301
|
-
link:
|
|
302
|
-
tag:
|
|
303
|
-
switch:
|
|
304
|
-
select:
|
|
305
|
-
datePicker:
|
|
306
|
-
timeSelect:
|
|
307
|
-
input:
|
|
308
|
-
inputNumber:
|
|
309
|
-
textarea:
|
|
310
|
-
inputTag:
|
|
311
|
-
editor:
|
|
312
|
-
radio:
|
|
313
|
-
text:
|
|
314
|
-
staffSelect:
|
|
315
|
-
upload:
|
|
316
|
-
},
|
|
299
|
+
var G = {
|
|
300
|
+
button: oe,
|
|
301
|
+
link: se,
|
|
302
|
+
tag: ce,
|
|
303
|
+
switch: le,
|
|
304
|
+
select: ue,
|
|
305
|
+
datePicker: de,
|
|
306
|
+
timeSelect: fe,
|
|
307
|
+
input: pe,
|
|
308
|
+
inputNumber: me,
|
|
309
|
+
textarea: he,
|
|
310
|
+
inputTag: ge,
|
|
311
|
+
editor: _e,
|
|
312
|
+
radio: ve,
|
|
313
|
+
text: ye,
|
|
314
|
+
staffSelect: be,
|
|
315
|
+
upload: xe
|
|
316
|
+
}, Se = /* @__PURE__ */ u({
|
|
317
317
|
name: "UiColumn",
|
|
318
318
|
__name: "UiColumn",
|
|
319
319
|
props: {
|
|
@@ -328,7 +328,7 @@ var W = {
|
|
|
328
328
|
let o = a, s = t;
|
|
329
329
|
function l(e, t, n) {
|
|
330
330
|
let r = {};
|
|
331
|
-
Object.keys(
|
|
331
|
+
Object.keys(G).forEach((i) => {
|
|
332
332
|
let a = i;
|
|
333
333
|
r[a] = (r) => {
|
|
334
334
|
let i = Array.isArray(r) ? r : {
|
|
@@ -340,7 +340,7 @@ var W = {
|
|
|
340
340
|
onChange: r?.onChange || ((e) => o("update:data", t, n.prop, e)),
|
|
341
341
|
onInput: r?.onInput || ((e) => o("update:data", t, n.prop, e))
|
|
342
342
|
};
|
|
343
|
-
return
|
|
343
|
+
return G[a](i);
|
|
344
344
|
};
|
|
345
345
|
});
|
|
346
346
|
let i = n.render ? n.render({
|
|
@@ -353,7 +353,7 @@ var W = {
|
|
|
353
353
|
}
|
|
354
354
|
return (a, o) => {
|
|
355
355
|
let u = T("UiColumn", !0);
|
|
356
|
-
return t.column?.children && t.column?.children?.length > 0 ? (b(), n(D(j(
|
|
356
|
+
return t.column?.children && t.column?.children?.length > 0 ? (b(), n(D(j(U).TableColumn), {
|
|
357
357
|
key: 0,
|
|
358
358
|
label: t.column.label,
|
|
359
359
|
align: s.align
|
|
@@ -367,7 +367,7 @@ var W = {
|
|
|
367
367
|
"align"
|
|
368
368
|
]))), 256))]),
|
|
369
369
|
_: 1
|
|
370
|
-
}, 8, ["label", "align"])) : (b(), n(D(j(
|
|
370
|
+
}, 8, ["label", "align"])) : (b(), n(D(j(U).TableColumn), {
|
|
371
371
|
key: 1,
|
|
372
372
|
prop: String(t.column.prop),
|
|
373
373
|
label: t.column.label,
|
|
@@ -380,7 +380,7 @@ var W = {
|
|
|
380
380
|
key: 0,
|
|
381
381
|
align: s.align,
|
|
382
382
|
size: s.size
|
|
383
|
-
}, null, 8, ["align", "size"])) : (b(), n(D(j(
|
|
383
|
+
}, null, 8, ["align", "size"])) : (b(), n(D(j(U).Text), {
|
|
384
384
|
key: 1,
|
|
385
385
|
"line-clamp": t.column?.lineClamp || 2
|
|
386
386
|
}, {
|
|
@@ -398,7 +398,7 @@ var W = {
|
|
|
398
398
|
]));
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
}),
|
|
401
|
+
}), Ce = /* @__PURE__ */ u({
|
|
402
402
|
__name: "index",
|
|
403
403
|
props: {
|
|
404
404
|
loading: {
|
|
@@ -463,7 +463,7 @@ var W = {
|
|
|
463
463
|
return (t, o) => {
|
|
464
464
|
let s = E("loading");
|
|
465
465
|
return b(), i("div", null, [
|
|
466
|
-
R((b(), n(D(j(
|
|
466
|
+
R((b(), n(D(j(U).Table), m({ border: a.border }, t.$attrs, {
|
|
467
467
|
data: a.data,
|
|
468
468
|
lazy: !0,
|
|
469
469
|
class: "ui-table",
|
|
@@ -472,7 +472,7 @@ var W = {
|
|
|
472
472
|
ref: u
|
|
473
473
|
}), {
|
|
474
474
|
default: L(() => [
|
|
475
|
-
f.value ? (b(), n(D(j(
|
|
475
|
+
f.value ? (b(), n(D(j(U).TableColumn), {
|
|
476
476
|
key: 0,
|
|
477
477
|
type: "selection",
|
|
478
478
|
selectable: l.selectable,
|
|
@@ -480,7 +480,7 @@ var W = {
|
|
|
480
480
|
align: a.align,
|
|
481
481
|
fixed: "left"
|
|
482
482
|
}, null, 8, ["selectable", "align"])) : r("", !0),
|
|
483
|
-
d.value ? (b(), n(D(j(
|
|
483
|
+
d.value ? (b(), n(D(j(U).TableColumn), {
|
|
484
484
|
key: 1,
|
|
485
485
|
fixed: "left",
|
|
486
486
|
type: "index",
|
|
@@ -489,7 +489,7 @@ var W = {
|
|
|
489
489
|
"column-key": "index_1",
|
|
490
490
|
align: a.align
|
|
491
491
|
}, null, 8, ["align"])) : r("", !0),
|
|
492
|
-
(b(!0), i(e, null, C(p.value, (e, t) => (b(), n(
|
|
492
|
+
(b(!0), i(e, null, C(p.value, (e, t) => (b(), n(Se, {
|
|
493
493
|
key: t + "column_" + e?.prop?.toString(),
|
|
494
494
|
column: e,
|
|
495
495
|
data: a.data,
|
|
@@ -505,7 +505,7 @@ var W = {
|
|
|
505
505
|
]),
|
|
506
506
|
_: 1
|
|
507
507
|
}, 16, ["border", "data"])), [[s, a.loading]]),
|
|
508
|
-
a.hidePagination ? r("", !0) : (b(), n(D(j(
|
|
508
|
+
a.hidePagination ? r("", !0) : (b(), n(D(j(U).Pagination), {
|
|
509
509
|
key: 0,
|
|
510
510
|
class: "pagination",
|
|
511
511
|
size: "small",
|
|
@@ -533,18 +533,18 @@ var W = {
|
|
|
533
533
|
]);
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
|
-
}),
|
|
536
|
+
}), we = /* @__PURE__ */ B({ default: () => Te }), Te = /* @__PURE__ */ H(Ce, [["__scopeId", "data-v-805b25b5"]]);
|
|
537
537
|
//#endregion
|
|
538
538
|
//#region src/components/utils/tools.ts
|
|
539
|
-
function
|
|
539
|
+
function Ee(e) {
|
|
540
540
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function K(e) {
|
|
543
543
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function q(e, t) {
|
|
546
546
|
let n = {};
|
|
547
|
-
return Object.keys(
|
|
547
|
+
return Object.keys(G).forEach((r) => {
|
|
548
548
|
let i = r;
|
|
549
549
|
n[i] = (n = {}) => ({
|
|
550
550
|
props: {
|
|
@@ -554,20 +554,20 @@ function K(e, t) {
|
|
|
554
554
|
onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
|
|
555
555
|
},
|
|
556
556
|
type: i,
|
|
557
|
-
component:
|
|
557
|
+
component: G[i]
|
|
558
558
|
});
|
|
559
559
|
}), ((n) => typeof e.render == "function" ? e.render({
|
|
560
560
|
h: n,
|
|
561
561
|
data: t
|
|
562
562
|
}) : n.input(n.props || {}))(n);
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
let n =
|
|
564
|
+
function J(e, t) {
|
|
565
|
+
let n = q(e, t);
|
|
566
566
|
return typeof n == "object" && (n.component ||= n), n;
|
|
567
567
|
}
|
|
568
568
|
//#endregion
|
|
569
569
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
570
|
-
var
|
|
570
|
+
var De = { class: "filter-buttons" }, Oe = /* @__PURE__ */ u({
|
|
571
571
|
name: "UiDefaultFilter",
|
|
572
572
|
__name: "index",
|
|
573
573
|
props: {
|
|
@@ -603,7 +603,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
603
603
|
}), p = x({}), h = t(() => s.fields.slice(0, f.expand ? s.fields.length : f.expandNum)), g = t(() => 24 - h.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
|
|
604
604
|
v(() => {
|
|
605
605
|
f.expandNum = d?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
|
|
606
|
-
let t =
|
|
606
|
+
let t = q(e, p)?.props?.defaultValue;
|
|
607
607
|
t !== void 0 && (p[e.prop] = t);
|
|
608
608
|
});
|
|
609
609
|
});
|
|
@@ -627,37 +627,37 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
627
627
|
s.omitFields.includes(e) || (p[e] = void 0);
|
|
628
628
|
}), u("reset", p);
|
|
629
629
|
}
|
|
630
|
-
return (t, o) => (b(), n(D(j(
|
|
630
|
+
return (t, o) => (b(), n(D(j(U).Form), m({
|
|
631
631
|
model: p,
|
|
632
632
|
class: "ui-filter",
|
|
633
633
|
size: s.size
|
|
634
634
|
}, t.$attrs), {
|
|
635
|
-
default: L(() => [(b(), n(D(j(
|
|
636
|
-
default: L(() => [(b(!0), i(e, null, C(h.value, (e) => (b(), n(D(j(
|
|
637
|
-
default: L(() => [(b(), n(D(j(
|
|
635
|
+
default: L(() => [(b(), n(D(j(U).Row), { gutter: 20 }, {
|
|
636
|
+
default: L(() => [(b(!0), i(e, null, C(h.value, (e) => (b(), n(D(j(U).Col), { span: e.span || 24 / s.column }, {
|
|
637
|
+
default: L(() => [(b(), n(D(j(U).FormItem), {
|
|
638
638
|
key: e.prop,
|
|
639
639
|
label: e.label,
|
|
640
|
-
"label-width": j(
|
|
641
|
-
"value-width": j(
|
|
640
|
+
"label-width": j(Ee)(e?.labelWidth || s.labelWidth),
|
|
641
|
+
"value-width": j(K)(e?.valueWidth || s.valueWidth)
|
|
642
642
|
}, {
|
|
643
|
-
default: L(() => [e.render ? (b(), n(D(j(
|
|
643
|
+
default: L(() => [e.render ? (b(), n(D(j(q)(e, p).component), m({
|
|
644
644
|
key: 0,
|
|
645
645
|
modelValue: p[e.prop],
|
|
646
646
|
"onUpdate:modelValue": (t) => p[e.prop] = t
|
|
647
|
-
}, { ref_for: !0 }, j(
|
|
647
|
+
}, { ref_for: !0 }, j(q)(e, p).props, {
|
|
648
648
|
clearable: !0,
|
|
649
|
-
style: { width: j(
|
|
649
|
+
style: { width: j(K)(e?.valueWidth || s.valueWidth) }
|
|
650
650
|
}), null, 16, [
|
|
651
651
|
"modelValue",
|
|
652
652
|
"onUpdate:modelValue",
|
|
653
653
|
"style"
|
|
654
|
-
])) : (b(), n(D(j(
|
|
654
|
+
])) : (b(), n(D(j(U).Input), {
|
|
655
655
|
key: 1,
|
|
656
656
|
modelValue: p[e.prop],
|
|
657
657
|
"onUpdate:modelValue": (t) => p[e.prop] = t,
|
|
658
658
|
placeholder: "请输入",
|
|
659
659
|
clearable: !0,
|
|
660
|
-
style: _({ width: j(
|
|
660
|
+
style: _({ width: j(K)(e?.valueWidth || s.valueWidth) })
|
|
661
661
|
}, null, 8, [
|
|
662
662
|
"modelValue",
|
|
663
663
|
"onUpdate:modelValue",
|
|
@@ -670,17 +670,17 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
670
670
|
"value-width"
|
|
671
671
|
]))]),
|
|
672
672
|
_: 2
|
|
673
|
-
}, 1032, ["span"]))), 256)), (b(), n(D(j(
|
|
673
|
+
}, 1032, ["span"]))), 256)), (b(), n(D(j(U).Col), {
|
|
674
674
|
span: 24 / s.column,
|
|
675
675
|
offset: g.value
|
|
676
676
|
}, {
|
|
677
|
-
default: L(() => [(b(), n(D(j(
|
|
677
|
+
default: L(() => [(b(), n(D(j(U).FormItem), {
|
|
678
678
|
label: "",
|
|
679
679
|
"label-width": "30px"
|
|
680
680
|
}, {
|
|
681
|
-
default: L(() => [a("div",
|
|
681
|
+
default: L(() => [a("div", De, [
|
|
682
682
|
w(t.$slots, "left", { form: p }, void 0, !0),
|
|
683
|
-
s.fields.length >= 2 * s.column ? (b(), n(D(j(
|
|
683
|
+
s.fields.length >= 2 * s.column ? (b(), n(D(j(U).Button), {
|
|
684
684
|
key: 0,
|
|
685
685
|
text: "",
|
|
686
686
|
onClick: o[0] ||= (e) => f.expand = !f.expand
|
|
@@ -688,14 +688,14 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
688
688
|
default: L(() => [c(k(f.expand ? "收起" : "展开"), 1)]),
|
|
689
689
|
_: 1
|
|
690
690
|
})) : r("", !0),
|
|
691
|
-
(b(), n(D(j(
|
|
691
|
+
(b(), n(D(j(U).Button), {
|
|
692
692
|
type: "primary",
|
|
693
693
|
onClick: y
|
|
694
694
|
}, {
|
|
695
695
|
default: L(() => [...o[1] ||= [c("查询", -1)]]),
|
|
696
696
|
_: 1
|
|
697
697
|
})),
|
|
698
|
-
(b(), n(D(j(
|
|
698
|
+
(b(), n(D(j(U).Button), { onClick: S }, {
|
|
699
699
|
default: L(() => [...o[2] ||= [c("重置", -1)]]),
|
|
700
700
|
_: 1
|
|
701
701
|
})),
|
|
@@ -711,20 +711,20 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
711
711
|
_: 3
|
|
712
712
|
}, 16, ["model", "size"]));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), ke = /* @__PURE__ */ B({ default: () => Ae }), Ae = /* @__PURE__ */ H(Oe, [["__scopeId", "data-v-8b4141b1"]]), je = {
|
|
715
715
|
key: 0,
|
|
716
716
|
style: { display: "inline-block" }
|
|
717
|
-
},
|
|
717
|
+
}, Me = {
|
|
718
718
|
key: 0,
|
|
719
719
|
style: { display: "inline-block" }
|
|
720
|
-
},
|
|
720
|
+
}, Ne = {
|
|
721
721
|
key: 0,
|
|
722
722
|
style: {
|
|
723
723
|
flex: "flex",
|
|
724
724
|
"justify-content": "flex-end",
|
|
725
725
|
"align-items": "center"
|
|
726
726
|
}
|
|
727
|
-
},
|
|
727
|
+
}, Pe = /* @__PURE__ */ u({
|
|
728
728
|
__name: "index",
|
|
729
729
|
props: {
|
|
730
730
|
fields: {},
|
|
@@ -756,9 +756,9 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
756
756
|
]), f = S(0), p = S(), h = x({}), v = t(() => {
|
|
757
757
|
let e = A(h);
|
|
758
758
|
return a.fields.forEach((t) => {
|
|
759
|
-
let n = t.prop ? e?.[t.prop] : void 0, r =
|
|
759
|
+
let n = t.prop ? e?.[t.prop] : void 0, r = J(t, h)?.props?.defaultValue;
|
|
760
760
|
h[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
|
|
761
|
-
let n = t.prop ? e?.[t.prop] : void 0, r =
|
|
761
|
+
let n = t.prop ? e?.[t.prop] : void 0, r = J(t, h)?.props?.defaultValue;
|
|
762
762
|
h[t.prop] = n ?? r ?? void 0;
|
|
763
763
|
});
|
|
764
764
|
}), a.fields.filter((e) => typeof e.prop == "string");
|
|
@@ -813,7 +813,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
813
813
|
clearValidate: E,
|
|
814
814
|
onSubmit: T,
|
|
815
815
|
validate: F
|
|
816
|
-
}), (t, o) => (b(), i(e, null, [(b(), n(D(j(
|
|
816
|
+
}), (t, o) => (b(), i(e, null, [(b(), n(D(j(U).Form), m({
|
|
817
817
|
ref_key: "uiFormRef",
|
|
818
818
|
ref: p,
|
|
819
819
|
model: h
|
|
@@ -827,7 +827,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
827
827
|
},
|
|
828
828
|
"validate-on-rule-change": !1
|
|
829
829
|
}), {
|
|
830
|
-
default: L(() => [(b(!0), i(e, null, C(v.value, (r) => (b(), n(D(j(
|
|
830
|
+
default: L(() => [(b(!0), i(e, null, C(v.value, (r) => (b(), n(D(j(U).FormItem), {
|
|
831
831
|
key: r.prop,
|
|
832
832
|
label: r.label,
|
|
833
833
|
"label-width": a.labelWidth,
|
|
@@ -838,11 +838,11 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
838
838
|
gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
|
|
839
839
|
})
|
|
840
840
|
}, {
|
|
841
|
-
default: L(() => [r.render ? (b(), i(e, { key: 0 }, [j(
|
|
841
|
+
default: L(() => [r.render ? (b(), i(e, { key: 0 }, [j(J)(r, h).component ? (b(), n(D(j(J)(r, h).component), m({
|
|
842
842
|
key: 1,
|
|
843
843
|
modelValue: h[r.prop],
|
|
844
844
|
"onUpdate:modelValue": (e) => h[r.prop] = e
|
|
845
|
-
}, { ref_for: !0 }, j(
|
|
845
|
+
}, { ref_for: !0 }, j(J)(r, h).props, {
|
|
846
846
|
clearable: !0,
|
|
847
847
|
key: `${r.prop}-${f.value}`,
|
|
848
848
|
style: { display: "inline-block" },
|
|
@@ -851,13 +851,13 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
851
851
|
"modelValue",
|
|
852
852
|
"onUpdate:modelValue",
|
|
853
853
|
"class"
|
|
854
|
-
])) : (b(), i("span",
|
|
854
|
+
])) : (b(), i("span", je, k(j(J)(r, h) || "-"), 1)), (b(!0), i(e, null, C(r.slots, (e) => w(t.$slots, "default", { form: h }, () => [j(J)(e, h).component ? (b(), n(D(j(J)(e, h).component), m({
|
|
855
855
|
key: 1,
|
|
856
856
|
modelValue: h[e.prop],
|
|
857
857
|
"onUpdate:modelValue": (t) => h[e.prop] = t,
|
|
858
858
|
"default-value": e.defaultValue,
|
|
859
859
|
placeholder: e.placeholder
|
|
860
|
-
}, { ref_for: !0 }, j(
|
|
860
|
+
}, { ref_for: !0 }, j(J)(e, h).props, {
|
|
861
861
|
style: {
|
|
862
862
|
display: "inline-block",
|
|
863
863
|
marginLeft: "10px",
|
|
@@ -873,7 +873,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
873
873
|
"placeholder",
|
|
874
874
|
"style",
|
|
875
875
|
"class"
|
|
876
|
-
])) : (b(), i("span",
|
|
876
|
+
])) : (b(), i("span", Me, k(j(J)(e, h) || "-"), 1))], !0)), 256))], 64)) : (b(), n(D(j(U).Input), {
|
|
877
877
|
key: 1,
|
|
878
878
|
modelValue: h[r.prop],
|
|
879
879
|
"onUpdate:modelValue": (e) => h[r.prop] = e,
|
|
@@ -900,16 +900,16 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
900
900
|
"inline",
|
|
901
901
|
"label-position",
|
|
902
902
|
"class"
|
|
903
|
-
])), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div",
|
|
903
|
+
])), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div", Ne, [
|
|
904
904
|
w(t.$slots, "handle", { form: h }, void 0, !0),
|
|
905
|
-
(b(), n(D(j(
|
|
905
|
+
(b(), n(D(j(U).Button), {
|
|
906
906
|
onClick: o[0] ||= (e) => p.value && O(),
|
|
907
907
|
size: t.$props.size
|
|
908
908
|
}, {
|
|
909
909
|
default: L(() => [...o[2] ||= [c("重置", -1)]]),
|
|
910
910
|
_: 1
|
|
911
911
|
}, 8, ["size"])),
|
|
912
|
-
(b(), n(D(j(
|
|
912
|
+
(b(), n(D(j(U).Button), {
|
|
913
913
|
type: "primary",
|
|
914
914
|
onClick: o[1] ||= (e) => p.value && T(p.value),
|
|
915
915
|
size: t.$props.size
|
|
@@ -919,7 +919,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
919
919
|
}, 8, ["size"]))
|
|
920
920
|
]))], 64));
|
|
921
921
|
}
|
|
922
|
-
}),
|
|
922
|
+
}), Fe = /* @__PURE__ */ B({ default: () => Ie }), Ie = /* @__PURE__ */ H(Pe, [["__scopeId", "data-v-cae0881e"]]), Le = ["disabled"], Re = /* @__PURE__ */ u({
|
|
923
923
|
__name: "index",
|
|
924
924
|
props: /* @__PURE__ */ p({
|
|
925
925
|
defaultValue: { default: "" },
|
|
@@ -957,9 +957,9 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
957
957
|
ref: n,
|
|
958
958
|
style: { height: "500px" },
|
|
959
959
|
disabled: e.disabled
|
|
960
|
-
}, null, 8,
|
|
960
|
+
}, null, 8, Le));
|
|
961
961
|
}
|
|
962
|
-
}),
|
|
962
|
+
}), Y = /* @__PURE__ */ B({ default: () => ze }), ze = Re, Be = { class: "ui-tree-wrapper" }, Ve = {
|
|
963
963
|
key: 0,
|
|
964
964
|
style: {
|
|
965
965
|
display: "flex",
|
|
@@ -968,10 +968,10 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
968
968
|
"align-items": "center",
|
|
969
969
|
gap: "10px"
|
|
970
970
|
}
|
|
971
|
-
},
|
|
971
|
+
}, He = {
|
|
972
972
|
key: 0,
|
|
973
973
|
class: "custom-tree-node"
|
|
974
|
-
},
|
|
974
|
+
}, Ue = { class: "node-label" }, We = { key: 0 }, Ge = ["onClick"], Ke = /* @__PURE__ */ u({
|
|
975
975
|
__name: "index",
|
|
976
976
|
props: {
|
|
977
977
|
id: {},
|
|
@@ -1019,13 +1019,13 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1019
1019
|
async function y(e) {
|
|
1020
1020
|
e.id && console.log("删除节点 =》》", e.id);
|
|
1021
1021
|
}
|
|
1022
|
-
return (t, o) => (b(), i("div",
|
|
1023
|
-
e.filterable ? (b(), i("div",
|
|
1022
|
+
return (t, o) => (b(), i("div", Be, [
|
|
1023
|
+
e.filterable ? (b(), i("div", Ve, [(b(), n(D(j(U).Input), {
|
|
1024
1024
|
modelValue: l.value,
|
|
1025
1025
|
"onUpdate:modelValue": o[0] ||= (e) => l.value = e,
|
|
1026
1026
|
placeholder: e.placeholder ?? "请输入",
|
|
1027
1027
|
clearable: ""
|
|
1028
|
-
}, null, 8, ["modelValue", "placeholder"])), s?.hidePlusHandle ? r("", !0) : (b(), n(D(j(
|
|
1028
|
+
}, null, 8, ["modelValue", "placeholder"])), s?.hidePlusHandle ? r("", !0) : (b(), n(D(j(U).Button), {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
style: {
|
|
1031
1031
|
margin: "0px",
|
|
@@ -1038,7 +1038,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1038
1038
|
_: 1
|
|
1039
1039
|
}))])) : r("", !0),
|
|
1040
1040
|
w(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
1041
|
-
(b(), n(D(j(
|
|
1041
|
+
(b(), n(D(j(U).TreeV2), m({
|
|
1042
1042
|
ref_key: "treeRef",
|
|
1043
1043
|
ref: f,
|
|
1044
1044
|
style: { "margin-top": "8px" }
|
|
@@ -1050,27 +1050,27 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1050
1050
|
"highlight-current": !0,
|
|
1051
1051
|
"filter-method": h
|
|
1052
1052
|
}), {
|
|
1053
|
-
default: L((l) => [l?.data ? (b(), i("div",
|
|
1053
|
+
default: L((l) => [l?.data ? (b(), i("div", He, [a("div", Ue, [l.data?.children?.length ? (b(), i("span", We, "📁")) : r("", !0), c(" " + k(l.data?.[e.props?.label || "label"]) + " " + k(l.data?.children?.length ? `(${l.data.children.length})` : ""), 1)]), s.hideNodeHandle ? r("", !0) : (b(), n(D(j(U).Dropdown), {
|
|
1054
1054
|
key: 0,
|
|
1055
1055
|
trigger: "click"
|
|
1056
1056
|
}, {
|
|
1057
|
-
dropdown: L(() => [(b(), n(D(j(
|
|
1057
|
+
dropdown: L(() => [(b(), n(D(j(U).DropdownMenu), null, {
|
|
1058
1058
|
default: L(() => [
|
|
1059
|
-
s?.hideNodeAdd ? r("", !0) : (b(), n(D(j(
|
|
1059
|
+
s?.hideNodeAdd ? r("", !0) : (b(), n(D(j(U).DropdownItem), {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
onClick: o[2] ||= (e) => _()
|
|
1062
1062
|
}, {
|
|
1063
1063
|
default: L(() => [...o[4] ||= [c(" 添加 ", -1)]]),
|
|
1064
1064
|
_: 1
|
|
1065
1065
|
})),
|
|
1066
|
-
s?.hideNodeEdit ? r("", !0) : (b(), n(D(j(
|
|
1066
|
+
s?.hideNodeEdit ? r("", !0) : (b(), n(D(j(U).DropdownItem), {
|
|
1067
1067
|
key: 1,
|
|
1068
1068
|
onClick: (e) => v(l.data)
|
|
1069
1069
|
}, {
|
|
1070
1070
|
default: L(() => [...o[5] ||= [c(" 编辑 ", -1)]]),
|
|
1071
1071
|
_: 1
|
|
1072
1072
|
}, 8, ["onClick"])),
|
|
1073
|
-
s?.hideNodeDel ? r("", !0) : (b(), n(D(j(
|
|
1073
|
+
s?.hideNodeDel ? r("", !0) : (b(), n(D(j(U).DropdownItem), {
|
|
1074
1074
|
key: 2,
|
|
1075
1075
|
onClick: (e) => y(l.data)
|
|
1076
1076
|
}, {
|
|
@@ -1081,20 +1081,20 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1081
1081
|
]),
|
|
1082
1082
|
_: 2
|
|
1083
1083
|
}, 1024))]),
|
|
1084
|
-
default: L(() => [a("span", { onClick: (e) => g(e, l.data) }, "⋮", 8,
|
|
1084
|
+
default: L(() => [a("span", { onClick: (e) => g(e, l.data) }, "⋮", 8, Ge)]),
|
|
1085
1085
|
_: 2
|
|
1086
1086
|
}, 1024))])) : r("", !0)]),
|
|
1087
1087
|
_: 3
|
|
1088
1088
|
}, 16, ["node-key"]))
|
|
1089
1089
|
]));
|
|
1090
1090
|
}
|
|
1091
|
-
}),
|
|
1091
|
+
}), qe = /* @__PURE__ */ B({ default: () => Je }), Je = /* @__PURE__ */ H(Ke, [["__scopeId", "data-v-f0022d46"]]), Ye = { style: { height: "100%" } }, Xe = { style: {
|
|
1092
1092
|
display: "flex",
|
|
1093
1093
|
"flex-direction": "row",
|
|
1094
1094
|
"justify-content": "space-between",
|
|
1095
1095
|
"align-items": "center",
|
|
1096
1096
|
gap: "10px"
|
|
1097
|
-
} },
|
|
1097
|
+
} }, Ze = { style: { margin: "10px 0px" } }, Qe = ["onClick"], $e = { key: 0 }, et = /* @__PURE__ */ u({
|
|
1098
1098
|
__name: "index",
|
|
1099
1099
|
props: {
|
|
1100
1100
|
loading: { default: () => S(!1) },
|
|
@@ -1113,14 +1113,14 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1113
1113
|
function f(e) {
|
|
1114
1114
|
u.value = e, c("node-click", e);
|
|
1115
1115
|
}
|
|
1116
|
-
return (t, s) => (b(), i("div",
|
|
1117
|
-
a("div",
|
|
1116
|
+
return (t, s) => (b(), i("div", Ye, [
|
|
1117
|
+
a("div", Xe, [o.filterable ? (b(), n(D(j(U).Input), {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
modelValue: l.value,
|
|
1120
1120
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
1121
1121
|
placeholder: o.placeholder ?? "请输入"
|
|
1122
1122
|
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), w(t.$slots, "plus", {}, void 0, !0)]),
|
|
1123
|
-
a("div",
|
|
1123
|
+
a("div", Ze, [w(t.$slots, "handle", {}, void 0, !0)]),
|
|
1124
1124
|
R((b(), i("ul", m({
|
|
1125
1125
|
class: "infinite-list",
|
|
1126
1126
|
"infinite-scroll-immediate": !1
|
|
@@ -1131,18 +1131,18 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1131
1131
|
active: e === u.value
|
|
1132
1132
|
}),
|
|
1133
1133
|
onClick: (t) => f(e)
|
|
1134
|
-
}, [a("span", null, k(e[o.props?.label || "label"]), 1), w(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10,
|
|
1135
|
-
o.loading.value ? (b(), i("p",
|
|
1134
|
+
}, [a("span", null, k(e[o.props?.label || "label"]), 1), w(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Qe))), 128))], 16)), [[j(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1135
|
+
o.loading.value ? (b(), i("p", $e, "loading...")) : r("", !0)
|
|
1136
1136
|
]));
|
|
1137
1137
|
}
|
|
1138
|
-
}),
|
|
1138
|
+
}), tt = /* @__PURE__ */ B({ default: () => nt }), nt = /* @__PURE__ */ H(et, [["__scopeId", "data-v-448fc6ca"]]), rt = {
|
|
1139
1139
|
key: 0,
|
|
1140
1140
|
style: {
|
|
1141
1141
|
padding: "10px 0px",
|
|
1142
1142
|
"margin-bottom": "10px",
|
|
1143
1143
|
"border-bottom": "1px solid #e5e5e5"
|
|
1144
1144
|
}
|
|
1145
|
-
},
|
|
1145
|
+
}, it = { key: 1 }, at = /* @__PURE__ */ u({
|
|
1146
1146
|
__name: "index",
|
|
1147
1147
|
props: {
|
|
1148
1148
|
data: {},
|
|
@@ -1158,33 +1158,33 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1158
1158
|
"data"
|
|
1159
1159
|
]);
|
|
1160
1160
|
return (o, s) => (b(), i(e, null, [
|
|
1161
|
-
t.title ? (b(), i("h4",
|
|
1161
|
+
t.title ? (b(), i("h4", rt, k(t.title), 1)) : r("", !0),
|
|
1162
1162
|
w(o.$slots, "title", {}, void 0, !0),
|
|
1163
|
-
(b(), n(D(j(
|
|
1164
|
-
default: L(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(D(j(
|
|
1163
|
+
(b(), n(D(j(U).Descriptions), m({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1164
|
+
default: L(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(D(j(U).DescriptionsItem), {
|
|
1165
1165
|
key: e.prop,
|
|
1166
1166
|
label: e.label,
|
|
1167
1167
|
span: e.span || 2
|
|
1168
1168
|
}, {
|
|
1169
|
-
default: L(() => [e.render ? (b(), n(D(j(
|
|
1169
|
+
default: L(() => [e.render ? (b(), n(D(j(q)(e, t.data).component), m({
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
modelValue: t.data[e.prop],
|
|
1172
1172
|
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1173
|
-
}, { ref_for: !0 }, j(
|
|
1173
|
+
}, { ref_for: !0 }, j(q)(e, t.data).props, {
|
|
1174
1174
|
clearable: !0,
|
|
1175
1175
|
key: e.prop,
|
|
1176
1176
|
style: { display: "inline-block" }
|
|
1177
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (b(), i("span",
|
|
1177
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (b(), i("span", it, k(t.data[e.prop] || "-"), 1))]),
|
|
1178
1178
|
_: 2
|
|
1179
1179
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 16, ["column"]))
|
|
1182
1182
|
], 64));
|
|
1183
1183
|
}
|
|
1184
|
-
}),
|
|
1184
|
+
}), ot = /* @__PURE__ */ B({ default: () => st }), st = /* @__PURE__ */ H(at, [["__scopeId", "data-v-5d5345d0"]]), ct = {
|
|
1185
1185
|
key: 0,
|
|
1186
1186
|
class: "dialog-footer"
|
|
1187
|
-
},
|
|
1187
|
+
}, lt = /* @__PURE__ */ u({
|
|
1188
1188
|
__name: "index",
|
|
1189
1189
|
props: {
|
|
1190
1190
|
visible: { type: Boolean },
|
|
@@ -1206,7 +1206,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1206
1206
|
function u() {
|
|
1207
1207
|
a("submit", A(s?.value || {})), a("update:visible", !1);
|
|
1208
1208
|
}
|
|
1209
|
-
return (e, t) => (b(), n(D(j(
|
|
1209
|
+
return (e, t) => (b(), n(D(j(U).Dialog), m(e.$attrs, {
|
|
1210
1210
|
"model-value": o.visible,
|
|
1211
1211
|
"show-close": o.disabled,
|
|
1212
1212
|
fullscreen: !o.width,
|
|
@@ -1219,10 +1219,10 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1219
1219
|
default: L(() => [(b(), n(D(o.component), m({
|
|
1220
1220
|
ref_key: "slotRef",
|
|
1221
1221
|
ref: s
|
|
1222
|
-
}, o.componentProps), null, 16)), o.disabled ? r("", !0) : (b(), i("div",
|
|
1222
|
+
}, o.componentProps), null, 16)), o.disabled ? r("", !0) : (b(), i("div", ct, [(b(), n(D(j(U).Button), { onClick: l }, {
|
|
1223
1223
|
default: L(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1224
1224
|
_: 1
|
|
1225
|
-
})), (b(), n(D(j(
|
|
1225
|
+
})), (b(), n(D(j(U).Button), {
|
|
1226
1226
|
type: "primary",
|
|
1227
1227
|
onClick: u
|
|
1228
1228
|
}, {
|
|
@@ -1236,7 +1236,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1236
1236
|
"fullscreen"
|
|
1237
1237
|
]));
|
|
1238
1238
|
}
|
|
1239
|
-
}),
|
|
1239
|
+
}), ut = /* @__PURE__ */ B({ default: () => dt }), dt = /* @__PURE__ */ H(lt, [["__scopeId", "data-v-89ab293f"]]), ft = ["src"], pt = /* @__PURE__ */ u({
|
|
1240
1240
|
__name: "Icon",
|
|
1241
1241
|
props: {
|
|
1242
1242
|
name: {},
|
|
@@ -1254,9 +1254,9 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1254
1254
|
width: e.size,
|
|
1255
1255
|
height: e.size
|
|
1256
1256
|
})
|
|
1257
|
-
}, null, 12,
|
|
1257
|
+
}, null, 12, ft)) : r("", !0);
|
|
1258
1258
|
}
|
|
1259
|
-
}),
|
|
1259
|
+
}), mt = {
|
|
1260
1260
|
style: {
|
|
1261
1261
|
width: "100%",
|
|
1262
1262
|
height: "100%"
|
|
@@ -1267,30 +1267,30 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1267
1267
|
version: "1.1",
|
|
1268
1268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1269
1269
|
"p-id": "8979"
|
|
1270
|
-
},
|
|
1270
|
+
}, ht = /* @__PURE__ */ u({
|
|
1271
1271
|
__name: "Search",
|
|
1272
1272
|
setup(e) {
|
|
1273
|
-
return (e, t) => (b(), i("svg",
|
|
1273
|
+
return (e, t) => (b(), i("svg", mt, [...t[0] ||= [a("path", {
|
|
1274
1274
|
d: "M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z",
|
|
1275
1275
|
"p-id": "8980"
|
|
1276
1276
|
}, null, -1)]]));
|
|
1277
1277
|
}
|
|
1278
|
-
}),
|
|
1278
|
+
}), gt = {
|
|
1279
1279
|
style: {
|
|
1280
1280
|
width: "100%",
|
|
1281
1281
|
height: "100%"
|
|
1282
1282
|
},
|
|
1283
1283
|
viewBox: "0 0 1024 1024",
|
|
1284
1284
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1285
|
-
},
|
|
1285
|
+
}, _t = /* @__PURE__ */ u({
|
|
1286
1286
|
__name: "CloseBold",
|
|
1287
1287
|
setup(e) {
|
|
1288
|
-
return (e, t) => (b(), i("svg",
|
|
1288
|
+
return (e, t) => (b(), i("svg", gt, [...t[0] ||= [a("path", {
|
|
1289
1289
|
d: "M512 476.25l256-256 33.75 33.75-256 256 256 256-33.75 33.75-256-256-256 256-33.75-33.75 256-256-256-256L256 220.25l256 256z",
|
|
1290
1290
|
fill: "currentColor"
|
|
1291
1291
|
}, null, -1)]]));
|
|
1292
1292
|
}
|
|
1293
|
-
}),
|
|
1293
|
+
}), vt = {
|
|
1294
1294
|
style: {
|
|
1295
1295
|
width: "100%",
|
|
1296
1296
|
height: "100%"
|
|
@@ -1301,10 +1301,10 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1301
1301
|
version: "1.1",
|
|
1302
1302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1303
1303
|
"p-id": "10092"
|
|
1304
|
-
},
|
|
1304
|
+
}, X = /* @__PURE__ */ u({
|
|
1305
1305
|
__name: "User",
|
|
1306
1306
|
setup(e) {
|
|
1307
|
-
return (e, t) => (b(), i("svg",
|
|
1307
|
+
return (e, t) => (b(), i("svg", vt, [...t[0] ||= [a("path", {
|
|
1308
1308
|
d: "M512 512c141.385 0 256-114.615 256-256S653.385 0 512 0 256 114.615 256 256s114.615 256 256 256zM366.336 110.336C405.244 71.428 456.976 50 512 50s106.756 21.428 145.664 60.336S718 200.976 718 256s-21.428 106.756-60.336 145.664S567.024 462 512 462s-106.756-21.428-145.664-60.336S306 311.024 306 256s21.428-106.756 60.336-145.664z",
|
|
1309
1309
|
fill: "#999999",
|
|
1310
1310
|
"p-id": "10093"
|
|
@@ -1314,7 +1314,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1314
1314
|
"p-id": "10094"
|
|
1315
1315
|
}, null, -1)]]));
|
|
1316
1316
|
}
|
|
1317
|
-
}),
|
|
1317
|
+
}), yt = {
|
|
1318
1318
|
style: {
|
|
1319
1319
|
width: "100%",
|
|
1320
1320
|
height: "100%"
|
|
@@ -1325,22 +1325,22 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1325
1325
|
version: "1.1",
|
|
1326
1326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1327
1327
|
"p-id": "11055"
|
|
1328
|
-
},
|
|
1328
|
+
}, bt = /* @__PURE__ */ u({
|
|
1329
1329
|
__name: "Plus",
|
|
1330
1330
|
setup(e) {
|
|
1331
|
-
return (e, t) => (b(), i("svg",
|
|
1331
|
+
return (e, t) => (b(), i("svg", yt, [...t[0] ||= [a("path", {
|
|
1332
1332
|
d: "M489.244444 489.244444v295.822223c0 18.850702-15.282631 34.133333-34.133333 34.133333s-34.133333-15.282631-34.133333-34.133333v-295.822223h-295.822222c-18.850702 0-34.133333-15.282631-34.133334-34.133333s15.282631-34.133333 34.133334-34.133333h295.822222v-295.822222c0-18.850702 15.282631-34.133333 34.133333-34.133334s34.133333 15.282631 34.133333 34.133334v295.822222h295.822223c18.850702 0 34.133333 15.282631 34.133333 34.133333s-15.282631 34.133333-34.133333 34.133333h-295.822223z",
|
|
1333
1333
|
fill: "#323233",
|
|
1334
1334
|
"p-id": "11056"
|
|
1335
1335
|
}, null, -1)]]));
|
|
1336
1336
|
}
|
|
1337
|
-
}),
|
|
1338
|
-
CloseBold: () =>
|
|
1339
|
-
Plus: () =>
|
|
1340
|
-
Search: () =>
|
|
1341
|
-
User: () =>
|
|
1342
|
-
YcIcon: () =>
|
|
1343
|
-
}),
|
|
1337
|
+
}), xt = /* @__PURE__ */ B({
|
|
1338
|
+
CloseBold: () => _t,
|
|
1339
|
+
Plus: () => bt,
|
|
1340
|
+
Search: () => ht,
|
|
1341
|
+
User: () => X,
|
|
1342
|
+
YcIcon: () => pt
|
|
1343
|
+
}), St = /* @__PURE__ */ u({
|
|
1344
1344
|
__name: "default",
|
|
1345
1345
|
props: {
|
|
1346
1346
|
multiple: { type: Boolean },
|
|
@@ -1394,7 +1394,7 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1394
1394
|
"remote-method": h
|
|
1395
1395
|
}, t.$attrs), {
|
|
1396
1396
|
prefix: L(() => [l(a, null, {
|
|
1397
|
-
default: L(() => [l(j(
|
|
1397
|
+
default: L(() => [l(j(X))]),
|
|
1398
1398
|
_: 1
|
|
1399
1399
|
})]),
|
|
1400
1400
|
default: L(() => [(b(!0), i(e, null, C(f.value, (e) => (b(), n(o, {
|
|
@@ -1409,10 +1409,10 @@ var Oe = { class: "filter-buttons" }, ke = /* @__PURE__ */ u({
|
|
|
1409
1409
|
});
|
|
1410
1410
|
//#endregion
|
|
1411
1411
|
//#region src/components/utils/index.ts
|
|
1412
|
-
function
|
|
1412
|
+
function Ct(e) {
|
|
1413
1413
|
return Array.from(new Set(e));
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function wt(e, t) {
|
|
1416
1416
|
let n = /* @__PURE__ */ new Set();
|
|
1417
1417
|
return e.filter((e) => {
|
|
1418
1418
|
let r = typeof t == "function" ? t(e) : e[t];
|
|
@@ -1421,26 +1421,26 @@ function Tt(e, t) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
//#endregion
|
|
1423
1423
|
//#region src/components/StaffSelect/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
1424
|
-
var
|
|
1424
|
+
var Tt = { style: {
|
|
1425
1425
|
display: "flex",
|
|
1426
1426
|
"max-width": "100%",
|
|
1427
1427
|
gap: "20px",
|
|
1428
1428
|
"overflow-y": "scroll",
|
|
1429
1429
|
height: "400px"
|
|
1430
|
-
} },
|
|
1430
|
+
} }, Et = { style: { flex: "1" } }, Dt = { style: { width: "320px" } }, Ot = { style: {
|
|
1431
1431
|
display: "flex",
|
|
1432
1432
|
"justify-content": "space-between",
|
|
1433
1433
|
"align-items": "center",
|
|
1434
1434
|
"margin-bottom": "8px",
|
|
1435
1435
|
height: "30px"
|
|
1436
|
-
} },
|
|
1436
|
+
} }, kt = { key: 0 }, At = { style: {
|
|
1437
1437
|
"overflow-y": "auto",
|
|
1438
1438
|
height: "90%"
|
|
1439
|
-
} },
|
|
1439
|
+
} }, jt = { style: {
|
|
1440
1440
|
display: "flex",
|
|
1441
1441
|
"justify-content": "end",
|
|
1442
1442
|
"align-items": "center"
|
|
1443
|
-
} },
|
|
1443
|
+
} }, Mt = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
1444
1444
|
__name: "dialog",
|
|
1445
1445
|
props: {
|
|
1446
1446
|
modelValue: {},
|
|
@@ -1466,7 +1466,7 @@ var Et = { style: {
|
|
|
1466
1466
|
requiredVisible: !1
|
|
1467
1467
|
}), y = S([]), w = S([]), E = t(() => v.searchData?.length ? v.searchData : v.staffData), D = t(() => f.required ?? d?.required ?? !1);
|
|
1468
1468
|
I(() => {
|
|
1469
|
-
w.value =
|
|
1469
|
+
w.value = Ct(f.modelValue || []);
|
|
1470
1470
|
}), I(() => {
|
|
1471
1471
|
g.value && O();
|
|
1472
1472
|
});
|
|
@@ -1496,7 +1496,7 @@ var Et = { style: {
|
|
|
1496
1496
|
...e,
|
|
1497
1497
|
code: e.account
|
|
1498
1498
|
}));
|
|
1499
|
-
n ? e.data.children =
|
|
1499
|
+
n ? e.data.children = wt([...r, ...e.data.children || []], "code") : e.children = wt([...r, ...e.children || []], "code"), v.loading = !1;
|
|
1500
1500
|
}), t?.(e?.children || []));
|
|
1501
1501
|
}
|
|
1502
1502
|
function F(e, { data: t }) {
|
|
@@ -1504,7 +1504,7 @@ var Et = { style: {
|
|
|
1504
1504
|
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
1505
1505
|
width: "14px",
|
|
1506
1506
|
height: "14px"
|
|
1507
|
-
} }, e(
|
|
1507
|
+
} }, e(X)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
1508
1508
|
}
|
|
1509
1509
|
function R(e) {
|
|
1510
1510
|
if (w.value = w.value.filter((t) => t !== e), p.value) {
|
|
@@ -1521,7 +1521,7 @@ var Et = { style: {
|
|
|
1521
1521
|
pageSize: 9999,
|
|
1522
1522
|
name: v.filterText?.trim()
|
|
1523
1523
|
});
|
|
1524
|
-
if (e.code !== "ok") return
|
|
1524
|
+
if (e.code !== "ok") return U.Message.error(e.message);
|
|
1525
1525
|
v.searchData = (e?.table || []).map((e) => ({
|
|
1526
1526
|
...e,
|
|
1527
1527
|
code: e.account
|
|
@@ -1529,18 +1529,18 @@ var Et = { style: {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
function z(e, t) {
|
|
1531
1531
|
let n = (t?.checkedNodes.filter((e) => e.account)).map((e) => `${e.name}(${e.account})`);
|
|
1532
|
-
w.value =
|
|
1532
|
+
w.value = Ct(w.value.concat(n));
|
|
1533
1533
|
}
|
|
1534
1534
|
function B() {
|
|
1535
|
-
u("change", A(w)), u("update:modelValue", A(w)), g.value = !1,
|
|
1535
|
+
u("change", A(w)), u("update:modelValue", A(w)), g.value = !1, V();
|
|
1536
1536
|
}
|
|
1537
1537
|
function re() {
|
|
1538
1538
|
u("update:modelValue", void 0), g.value = !1;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function V() {
|
|
1541
1541
|
return v.requiredVisible = D.value && w.value.length === 0, v.requiredVisible;
|
|
1542
1542
|
}
|
|
1543
|
-
return o({ validate:
|
|
1543
|
+
return o({ validate: V }), (t, n) => {
|
|
1544
1544
|
let o = T("el-select"), s = T("el-input"), u = T("el-tree"), d = T("el-icon"), h = T("el-button"), _ = T("el-dialog");
|
|
1545
1545
|
return b(), i(e, null, [a("div", {
|
|
1546
1546
|
class: "staff-select-trigger",
|
|
@@ -1577,12 +1577,12 @@ var Et = { style: {
|
|
|
1577
1577
|
"append-to-body": "",
|
|
1578
1578
|
"close-on-click-modal": !1
|
|
1579
1579
|
}, {
|
|
1580
|
-
default: L(() => [a("div",
|
|
1580
|
+
default: L(() => [a("div", Tt, [a("div", Et, [l(s, {
|
|
1581
1581
|
placeholder: "请输入",
|
|
1582
1582
|
modelValue: v.filterText,
|
|
1583
1583
|
"onUpdate:modelValue": n[2] ||= (e) => v.filterText = e,
|
|
1584
1584
|
clearable: "",
|
|
1585
|
-
"prefix-icon": j(
|
|
1585
|
+
"prefix-icon": j(ht),
|
|
1586
1586
|
onKeydown: ee(ne, ["enter"])
|
|
1587
1587
|
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
1588
1588
|
loading: v.loading,
|
|
@@ -1598,16 +1598,16 @@ var Et = { style: {
|
|
|
1598
1598
|
ref_key: "staffDialogRef",
|
|
1599
1599
|
ref: p,
|
|
1600
1600
|
"node-key": "code"
|
|
1601
|
-
}, null, 8, ["loading", "data"])]), a("div",
|
|
1601
|
+
}, null, 8, ["loading", "data"])]), a("div", Dt, [a("div", Ot, [n[4] ||= a("h3", null, "已选择", -1), w.value.length ? (b(), i("span", kt, "已选择" + k(w.value.length) + "个用户", 1)) : r("", !0)]), a("div", At, [(b(!0), i(e, null, C(w.value, (e) => (b(), i("li", {
|
|
1602
1602
|
key: e,
|
|
1603
1603
|
class: "staff-item"
|
|
1604
1604
|
}, [a("span", null, k(e), 1), l(d, {
|
|
1605
1605
|
color: "red",
|
|
1606
1606
|
onClick: te((t) => R(e), ["stop"])
|
|
1607
1607
|
}, {
|
|
1608
|
-
default: L(() => [l(j(
|
|
1608
|
+
default: L(() => [l(j(_t))]),
|
|
1609
1609
|
_: 1
|
|
1610
|
-
}, 8, ["onClick"])]))), 128))])])]), a("div",
|
|
1610
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", jt, [l(h, { onClick: re }, {
|
|
1611
1611
|
default: L(() => [...n[5] ||= [c("取消", -1)]]),
|
|
1612
1612
|
_: 1
|
|
1613
1613
|
}), l(h, {
|
|
@@ -1621,7 +1621,7 @@ var Et = { style: {
|
|
|
1621
1621
|
}, 8, ["modelValue"])], 64);
|
|
1622
1622
|
};
|
|
1623
1623
|
}
|
|
1624
|
-
}), [["__scopeId", "data-v-5f78d51d"]]),
|
|
1624
|
+
}), [["__scopeId", "data-v-5f78d51d"]]), Nt = /* @__PURE__ */ u({
|
|
1625
1625
|
__name: "index",
|
|
1626
1626
|
props: {
|
|
1627
1627
|
multiple: { type: Boolean },
|
|
@@ -1632,7 +1632,7 @@ var Et = { style: {
|
|
|
1632
1632
|
},
|
|
1633
1633
|
setup(e, { expose: t }) {
|
|
1634
1634
|
let r = e, i = S();
|
|
1635
|
-
return t({ validate: () => i.value?.validate?.() }), (e, t) => (b(), n(D(r?.type === "dialog" ?
|
|
1635
|
+
return t({ validate: () => i.value?.validate?.() }), (e, t) => (b(), n(D(r?.type === "dialog" ? Mt : St), m({
|
|
1636
1636
|
ref_key: "staffSelectRef",
|
|
1637
1637
|
ref: i
|
|
1638
1638
|
}, {
|
|
@@ -1640,7 +1640,7 @@ var Et = { style: {
|
|
|
1640
1640
|
...r
|
|
1641
1641
|
}), null, 16));
|
|
1642
1642
|
}
|
|
1643
|
-
}),
|
|
1643
|
+
}), Z = /* @__PURE__ */ B({ default: () => Pt }), Pt = Nt, Ft = /* @__PURE__ */ H(/* @__PURE__ */ u({
|
|
1644
1644
|
__name: "file",
|
|
1645
1645
|
props: {
|
|
1646
1646
|
icon: { default: () => void 0 },
|
|
@@ -1698,7 +1698,7 @@ var Et = { style: {
|
|
|
1698
1698
|
]);
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
}), [["__scopeId", "data-v-ee199a05"]]),
|
|
1701
|
+
}), [["__scopeId", "data-v-ee199a05"]]), It = ["src"], Lt = /* @__PURE__ */ u({
|
|
1702
1702
|
__name: "image",
|
|
1703
1703
|
setup(t) {
|
|
1704
1704
|
let n = S({}), r = S(!1);
|
|
@@ -1715,7 +1715,7 @@ var Et = { style: {
|
|
|
1715
1715
|
"on-preview": o
|
|
1716
1716
|
}), {
|
|
1717
1717
|
default: L(() => [l(c, null, {
|
|
1718
|
-
default: L(() => [l(j(
|
|
1718
|
+
default: L(() => [l(j(bt))]),
|
|
1719
1719
|
_: 1
|
|
1720
1720
|
})]),
|
|
1721
1721
|
_: 1
|
|
@@ -1727,12 +1727,12 @@ var Et = { style: {
|
|
|
1727
1727
|
"w-full": "",
|
|
1728
1728
|
src: n.value.url,
|
|
1729
1729
|
alt: "预览"
|
|
1730
|
-
}, null, 8,
|
|
1730
|
+
}, null, 8, It)]),
|
|
1731
1731
|
_: 1
|
|
1732
1732
|
}, 8, ["modelValue"])], 64);
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
|
-
}), zt = /* @__PURE__ */ u({
|
|
1735
|
+
}), Rt = "https://cict.yuchaiqas.com/intellicit-service/attachment/uploadAttachment", zt = /* @__PURE__ */ u({
|
|
1736
1736
|
__name: "index",
|
|
1737
1737
|
props: {
|
|
1738
1738
|
icon: {},
|
|
@@ -1763,28 +1763,28 @@ var Et = { style: {
|
|
|
1763
1763
|
"fileList",
|
|
1764
1764
|
"limit",
|
|
1765
1765
|
"action"
|
|
1766
|
-
])
|
|
1767
|
-
console.log("action ->>",
|
|
1768
|
-
let
|
|
1766
|
+
]);
|
|
1767
|
+
console.log("action ->>", Rt);
|
|
1768
|
+
let s = S(), c = S(0), l = { token: localStorage.getItem("TOKEN") || "" }, u = t({
|
|
1769
1769
|
get: () => A(e.fileList) || [],
|
|
1770
1770
|
set: (e) => i("update:fileList", e)
|
|
1771
1771
|
});
|
|
1772
1772
|
v(async () => {
|
|
1773
|
-
|
|
1773
|
+
c.value = A(e.fileList)?.length || 0;
|
|
1774
1774
|
});
|
|
1775
|
-
function
|
|
1775
|
+
function d(t, n) {
|
|
1776
1776
|
let r = Array.isArray(n) ? n : [];
|
|
1777
|
-
e.onChange?.(r),
|
|
1777
|
+
e.onChange?.(r), u.value = r, i("update:modelValue", r), i("change", r), c.value = r.length;
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1780
|
-
e.limit &&
|
|
1779
|
+
function f() {
|
|
1780
|
+
e.limit && U.Message.warning(`最多只能上传 ${e.limit} 个文件`);
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1783
|
-
i("update:modelValue", A(t)), i("remove", A(t)),
|
|
1782
|
+
function p(e, t) {
|
|
1783
|
+
i("update:modelValue", A(t)), i("remove", A(t)), c.value = t.length;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1786
|
-
let n = A(
|
|
1787
|
-
if (e?.code !== "ok") return
|
|
1785
|
+
function h(e, t) {
|
|
1786
|
+
let n = A(u);
|
|
1787
|
+
if (e?.code !== "ok") return U.Message.error(e?.message);
|
|
1788
1788
|
let r = `/attachment/downloadAttachmentobjectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}`;
|
|
1789
1789
|
n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
|
|
1790
1790
|
name: t.name,
|
|
@@ -1793,24 +1793,24 @@ var Et = { style: {
|
|
|
1793
1793
|
status: "success",
|
|
1794
1794
|
...e.data,
|
|
1795
1795
|
url: r
|
|
1796
|
-
}),
|
|
1796
|
+
}), u.value = [...n], i("update:modelValue", A(u)), i("success", A(u)), c.value = n.length;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function g(e, t, n) {
|
|
1799
1799
|
i("update:modelValue", n);
|
|
1800
1800
|
}
|
|
1801
|
-
return (t, r) => (b(), n(D(e.type === "image" ?
|
|
1801
|
+
return (t, r) => (b(), n(D(e.type === "image" ? Lt : Ft), m({
|
|
1802
1802
|
ref_key: "uploadInstance",
|
|
1803
|
-
ref:
|
|
1803
|
+
ref: s,
|
|
1804
1804
|
name: "file",
|
|
1805
|
-
action:
|
|
1806
|
-
headers:
|
|
1807
|
-
"on-change":
|
|
1808
|
-
"on-exceed":
|
|
1809
|
-
"on-remove":
|
|
1810
|
-
"on-success":
|
|
1811
|
-
"on-error":
|
|
1812
|
-
"file-list":
|
|
1813
|
-
count:
|
|
1805
|
+
action: Rt,
|
|
1806
|
+
headers: l,
|
|
1807
|
+
"on-change": d,
|
|
1808
|
+
"on-exceed": f,
|
|
1809
|
+
"on-remove": p,
|
|
1810
|
+
"on-success": h,
|
|
1811
|
+
"on-error": g,
|
|
1812
|
+
"file-list": u.value,
|
|
1813
|
+
count: c.value,
|
|
1814
1814
|
limit: e.limit
|
|
1815
1815
|
}, a), null, 16, [
|
|
1816
1816
|
"file-list",
|
|
@@ -1818,7 +1818,7 @@ var Et = { style: {
|
|
|
1818
1818
|
"limit"
|
|
1819
1819
|
]));
|
|
1820
1820
|
}
|
|
1821
|
-
}),
|
|
1821
|
+
}), Q = /* @__PURE__ */ B({ default: () => Bt }), Bt = zt, Vt = {
|
|
1822
1822
|
mounted(e, t) {
|
|
1823
1823
|
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
1824
1824
|
e._stickyOriginalStyles = {
|
|
@@ -1849,26 +1849,26 @@ var Et = { style: {
|
|
|
1849
1849
|
card: () => Ht,
|
|
1850
1850
|
sticky: () => Vt
|
|
1851
1851
|
}), Wt = "Yc", Gt = {
|
|
1852
|
-
UiCard:
|
|
1853
|
-
UiTable:
|
|
1854
|
-
UiFilter:
|
|
1855
|
-
UiForm:
|
|
1856
|
-
UiEditor:
|
|
1857
|
-
UiTree:
|
|
1858
|
-
UiInfiniteScroll:
|
|
1859
|
-
UiDescriptions:
|
|
1860
|
-
UiDialog:
|
|
1861
|
-
UiStaffSelect:
|
|
1862
|
-
UiUpload:
|
|
1863
|
-
},
|
|
1864
|
-
function
|
|
1865
|
-
|
|
1852
|
+
UiCard: ie,
|
|
1853
|
+
UiTable: we,
|
|
1854
|
+
UiFilter: ke,
|
|
1855
|
+
UiForm: Fe,
|
|
1856
|
+
UiEditor: Y,
|
|
1857
|
+
UiTree: qe,
|
|
1858
|
+
UiInfiniteScroll: tt,
|
|
1859
|
+
UiDescriptions: ot,
|
|
1860
|
+
UiDialog: ut,
|
|
1861
|
+
UiStaffSelect: Z,
|
|
1862
|
+
UiUpload: Q
|
|
1863
|
+
}, Kt = null;
|
|
1864
|
+
function qt(e) {
|
|
1865
|
+
Kt = e;
|
|
1866
1866
|
}
|
|
1867
1867
|
function $() {
|
|
1868
|
-
return
|
|
1868
|
+
return Kt;
|
|
1869
1869
|
}
|
|
1870
|
-
var
|
|
1871
|
-
t?.elementPlus && t.elementPlus.install(e),
|
|
1870
|
+
var Jt = { install(e, t) {
|
|
1871
|
+
t?.elementPlus && t.elementPlus.install(e), Kt ||= e;
|
|
1872
1872
|
for (let [t, n] of Object.entries(Gt)) {
|
|
1873
1873
|
let r = n?.default || n;
|
|
1874
1874
|
if (r && (typeof r == "function" || typeof r == "object")) {
|
|
@@ -1878,8 +1878,8 @@ var qt = { install(e, t) {
|
|
|
1878
1878
|
i !== n && e.component(i, r);
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
for (let [t, n] of Object.entries(
|
|
1881
|
+
for (let [t, n] of Object.entries(xt)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
|
|
1882
1882
|
for (let [t, n] of Object.entries(Ut)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
1883
1883
|
} };
|
|
1884
1884
|
//#endregion
|
|
1885
|
-
export {
|
|
1885
|
+
export { ie as UiCard, ot as UiDescriptions, ut as UiDialog, Y as UiEditor, ke as UiFilter, Fe as UiForm, tt as UiInfiniteScroll, Z as UiStaffSelect, we as UiTable, qe as UiTree, Q as UiUpload, Jt as default, Jt as ycPlugin, $ as getHostVue, qt as setHostVue };
|