yc-vep-ui 0.3.4 → 0.3.6
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/{entry-CvyIhp3N.js → entry-Bz7nuE3y.js} +377 -357
- package/dist/hooks/index.js +1 -1
- package/dist/index.css +7 -7
- package/dist/vep-ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isRef as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as D, resolveDynamicComponent as O, setBlockTracking as k, shallowRef as A, toDisplayString as j, toRaw as M,
|
|
2
|
-
import { AiEditor as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isRef as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as D, resolveDynamicComponent as O, setBlockTracking as k, shallowRef as A, toDisplayString as j, toRaw as M, toRef as N, toValue as P, unref as F, useAttrs as I, useCssVars as ee, useModel as L, watch as R, watchEffect as z, withCtx as B, withDirectives as V, withKeys as te, withModifiers as ne } from "vue";
|
|
2
|
+
import { AiEditor as H } from "aieditor";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var re = Object.defineProperty, U = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) re(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
10
|
+
return t || re(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, ie = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, ae = /* @__PURE__ */ u({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
14
14
|
title: {},
|
|
@@ -29,12 +29,12 @@ var H = Object.defineProperty, U = (e, t) => {
|
|
|
29
29
|
"ui-card": !0,
|
|
30
30
|
hideBorder: e.hideBorder
|
|
31
31
|
} }), s({
|
|
32
|
-
default:
|
|
32
|
+
default: B(() => [a("div", ie, [T(t.$slots, "default", {}, void 0, !0)])]),
|
|
33
33
|
_: 2
|
|
34
34
|
}, [e.title && e.title?.length > 0 ? {
|
|
35
35
|
name: "header",
|
|
36
|
-
fn:
|
|
37
|
-
default:
|
|
36
|
+
fn: B(() => [a("div", { style: v(i.value) }, [e.icon ? (x(), n(l, { key: 0 }, {
|
|
37
|
+
default: B(() => [(x(), n(O(e.icon), { color: "#2563eb" }))]),
|
|
38
38
|
_: 1
|
|
39
39
|
})) : r("", !0), o[0] || (k(-1, !0), (o[0] = a("h4", null, [c(j(e.title), 1)])).cacheIndex = 0, k(1), o[0])], 4)]),
|
|
40
40
|
key: "0"
|
|
@@ -45,7 +45,7 @@ var H = Object.defineProperty, U = (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
|
+
}, oe = /* @__PURE__ */ U({ default: () => se }), se = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-6ebb01d7"]]), G = {
|
|
49
49
|
get Button() {
|
|
50
50
|
return $()?.resolveComponent?.("el-button") || "el-button";
|
|
51
51
|
},
|
|
@@ -146,7 +146,7 @@ function K() {
|
|
|
146
146
|
return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ce(e) {
|
|
150
150
|
let t = K();
|
|
151
151
|
return t ? t("div", { style: {
|
|
152
152
|
display: "flex",
|
|
@@ -163,7 +163,7 @@ function se(e) {
|
|
|
163
163
|
}, () => n);
|
|
164
164
|
})) : null;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function le(e) {
|
|
167
167
|
let t = K();
|
|
168
168
|
return t ? Array.isArray(e) ? t("div", { style: {
|
|
169
169
|
display: "flex",
|
|
@@ -184,7 +184,7 @@ function ce(e) {
|
|
|
184
184
|
type: e.type || "primary"
|
|
185
185
|
}, () => e.prop)) : null;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ue(e) {
|
|
188
188
|
let t = K();
|
|
189
189
|
return t ? t("div", { style: {
|
|
190
190
|
display: "flex",
|
|
@@ -193,11 +193,11 @@ function le(e) {
|
|
|
193
193
|
flexWrap: "wrap"
|
|
194
194
|
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(G.Tag, e, () => n))) : null;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function de(e) {
|
|
197
197
|
let t = K();
|
|
198
198
|
return t ? t(G.Tag, { ...e }) : null;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function fe(e) {
|
|
201
201
|
let t = K();
|
|
202
202
|
return t ? t(G.Select, {
|
|
203
203
|
style: { minWidth: "160px" },
|
|
@@ -206,7 +206,7 @@ function de(e) {
|
|
|
206
206
|
filterable: !0
|
|
207
207
|
}) : null;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function pe(e) {
|
|
210
210
|
let t = K();
|
|
211
211
|
if (!t) return null;
|
|
212
212
|
let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
@@ -220,7 +220,7 @@ function fe(e) {
|
|
|
220
220
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function me(e) {
|
|
224
224
|
let t = K();
|
|
225
225
|
if (!t) return null;
|
|
226
226
|
let { start: n = "00:00", end: r = "23:30", ...i } = e;
|
|
@@ -232,14 +232,14 @@ function pe(e) {
|
|
|
232
232
|
filterable: !0
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function he(e) {
|
|
236
236
|
let t = K();
|
|
237
237
|
return t ? t(G.Input, {
|
|
238
238
|
...e,
|
|
239
239
|
placeholder: "请输入"
|
|
240
240
|
}) : null;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ge(e) {
|
|
243
243
|
let t = K();
|
|
244
244
|
if (!t) return null;
|
|
245
245
|
let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
|
|
@@ -254,7 +254,7 @@ function he(e) {
|
|
|
254
254
|
...i
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function _e(e) {
|
|
258
258
|
let t = K();
|
|
259
259
|
if (!t) return null;
|
|
260
260
|
let { rows: n = 1, ...r } = e;
|
|
@@ -265,7 +265,7 @@ function ge(e) {
|
|
|
265
265
|
type: "textarea"
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function ve(e) {
|
|
269
269
|
let t = K();
|
|
270
270
|
return t ? t(G.InputTag, {
|
|
271
271
|
placeholder: "请输入",
|
|
@@ -273,52 +273,74 @@ function _e(e) {
|
|
|
273
273
|
clearable: !1
|
|
274
274
|
}) : null;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function ye(e) {
|
|
277
277
|
let t = K();
|
|
278
|
-
return t ? t(
|
|
278
|
+
return t ? t(gt || ht, e) : null;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function be(e) {
|
|
281
281
|
let t = K();
|
|
282
282
|
return t ? t(G.RadioGroup, e) : null;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function xe(e) {
|
|
285
285
|
let t = K();
|
|
286
286
|
return t ? t(G.Text, e, () => typeof e == "string" ? e : e.prop ?? "") : null;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Se(e) {
|
|
289
289
|
let t = K();
|
|
290
|
-
return t ? t(
|
|
290
|
+
return t ? t(nn || tn, {
|
|
291
291
|
placeholder: "请选择",
|
|
292
292
|
...e,
|
|
293
293
|
searchable: !0
|
|
294
294
|
}) : null;
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
var Ce = u({
|
|
297
|
+
props: [
|
|
298
|
+
"fileList",
|
|
299
|
+
"modelValue",
|
|
300
|
+
"onChange",
|
|
301
|
+
"size",
|
|
302
|
+
"limit",
|
|
303
|
+
"action",
|
|
304
|
+
"type",
|
|
305
|
+
"data",
|
|
306
|
+
"prop"
|
|
307
|
+
],
|
|
308
|
+
setup(e) {
|
|
309
|
+
let n = e.prop && e.data ? N(e.data, e.prop) : t(() => e.modelValue || e.fileList || []);
|
|
310
|
+
return () => {
|
|
311
|
+
let t = K();
|
|
312
|
+
if (!t) return null;
|
|
313
|
+
let r = ln || cn, i = "value" in n ? n.value : n;
|
|
314
|
+
return t(r, {
|
|
315
|
+
...e,
|
|
316
|
+
fileList: i || [],
|
|
317
|
+
"onUpdate:fileList": (t, n) => e.onChange?.(n, t)
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
function we(e) {
|
|
297
323
|
let t = K();
|
|
298
|
-
return t ? t(
|
|
299
|
-
...e,
|
|
300
|
-
fileList: e.modelValue || e.fileList,
|
|
301
|
-
"onUpdate:fileList": (t, n) => e.onChange?.(n, t)
|
|
302
|
-
}) : null;
|
|
324
|
+
return t ? t(Ce, e) : null;
|
|
303
325
|
}
|
|
304
|
-
var
|
|
305
|
-
button:
|
|
306
|
-
link:
|
|
307
|
-
tag:
|
|
308
|
-
switch:
|
|
309
|
-
select:
|
|
310
|
-
datePicker:
|
|
311
|
-
timeSelect:
|
|
312
|
-
input:
|
|
313
|
-
inputNumber:
|
|
314
|
-
textarea:
|
|
315
|
-
inputTag:
|
|
316
|
-
editor:
|
|
317
|
-
radio:
|
|
318
|
-
text:
|
|
319
|
-
staffSelect:
|
|
320
|
-
upload:
|
|
321
|
-
},
|
|
326
|
+
var Te = {
|
|
327
|
+
button: ce,
|
|
328
|
+
link: le,
|
|
329
|
+
tag: ue,
|
|
330
|
+
switch: de,
|
|
331
|
+
select: fe,
|
|
332
|
+
datePicker: pe,
|
|
333
|
+
timeSelect: me,
|
|
334
|
+
input: he,
|
|
335
|
+
inputNumber: ge,
|
|
336
|
+
textarea: _e,
|
|
337
|
+
inputTag: ve,
|
|
338
|
+
editor: ye,
|
|
339
|
+
radio: be,
|
|
340
|
+
text: xe,
|
|
341
|
+
staffSelect: Se,
|
|
342
|
+
upload: we
|
|
343
|
+
}, Ee = /* @__PURE__ */ u({
|
|
322
344
|
name: "UiColumn",
|
|
323
345
|
__name: "UiColumn",
|
|
324
346
|
props: {
|
|
@@ -333,7 +355,7 @@ var Ce = {
|
|
|
333
355
|
let a = r, o = t;
|
|
334
356
|
function s(e, t, n) {
|
|
335
357
|
let r = {};
|
|
336
|
-
Object.keys(
|
|
358
|
+
Object.keys(Te).forEach((i) => {
|
|
337
359
|
let o = i;
|
|
338
360
|
r[o] = (r) => {
|
|
339
361
|
let i = Array.isArray(r) ? r : {
|
|
@@ -345,7 +367,7 @@ var Ce = {
|
|
|
345
367
|
onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
|
|
346
368
|
onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
|
|
347
369
|
};
|
|
348
|
-
return
|
|
370
|
+
return Te[o](i);
|
|
349
371
|
};
|
|
350
372
|
});
|
|
351
373
|
let i = n.render ? n.render({
|
|
@@ -363,7 +385,7 @@ var Ce = {
|
|
|
363
385
|
label: t.column.label,
|
|
364
386
|
align: o.align
|
|
365
387
|
}, {
|
|
366
|
-
default:
|
|
388
|
+
default: B(() => [(x(!0), i(e, null, w(t.column.children, (e) => (x(), n(l, h({
|
|
367
389
|
column: e,
|
|
368
390
|
data: o.data
|
|
369
391
|
}, { ref_for: !0 }, r.$attrs, { align: o.align }), null, 16, [
|
|
@@ -381,7 +403,7 @@ var Ce = {
|
|
|
381
403
|
width: t.column.width,
|
|
382
404
|
"show-overflow-tooltip": t.column.showOverflowTooltip
|
|
383
405
|
}, {
|
|
384
|
-
default:
|
|
406
|
+
default: B(({ row: e, $index: r }) => [t.column.render ? (x(), n(O(s(e, r, t.column)), {
|
|
385
407
|
key: 0,
|
|
386
408
|
align: o.align,
|
|
387
409
|
size: o.size
|
|
@@ -389,7 +411,7 @@ var Ce = {
|
|
|
389
411
|
key: 1,
|
|
390
412
|
"line-clamp": t.column?.lineClamp || 2
|
|
391
413
|
}, {
|
|
392
|
-
default:
|
|
414
|
+
default: B(() => [c(j(e[t.column.prop]), 1)]),
|
|
393
415
|
_: 2
|
|
394
416
|
}, 1032, ["line-clamp"]))]),
|
|
395
417
|
_: 1
|
|
@@ -403,7 +425,7 @@ var Ce = {
|
|
|
403
425
|
]));
|
|
404
426
|
};
|
|
405
427
|
}
|
|
406
|
-
}),
|
|
428
|
+
}), De = /* @__PURE__ */ u({
|
|
407
429
|
__name: "index",
|
|
408
430
|
props: {
|
|
409
431
|
loading: {
|
|
@@ -448,8 +470,8 @@ var Ce = {
|
|
|
448
470
|
"pagination",
|
|
449
471
|
"data",
|
|
450
472
|
"size"
|
|
451
|
-
]), u = C(), d = t(() =>
|
|
452
|
-
|
|
473
|
+
]), u = C(), d = t(() => P(l.columns)?.some((e) => e.type === "index")), f = t(() => P(l.columns)?.some((e) => e.type === "selection")), p = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
|
|
474
|
+
R(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
|
|
453
475
|
!e?.length || !t?.length || g(() => {
|
|
454
476
|
if (!u.value) return;
|
|
455
477
|
let n = t.filter((t) => e.includes(t.id));
|
|
@@ -457,7 +479,7 @@ var Ce = {
|
|
|
457
479
|
});
|
|
458
480
|
}, { immediate: !0 });
|
|
459
481
|
function m(e, t) {
|
|
460
|
-
a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination",
|
|
482
|
+
a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", P(a.pagination));
|
|
461
483
|
}
|
|
462
484
|
function _(e, t, n) {
|
|
463
485
|
a.data[e] && (a.data[e] = {
|
|
@@ -468,7 +490,7 @@ var Ce = {
|
|
|
468
490
|
return (t, o) => {
|
|
469
491
|
let s = E("el-table-column"), c = E("el-table"), g = E("el-pagination"), v = D("loading");
|
|
470
492
|
return x(), i("div", null, [
|
|
471
|
-
|
|
493
|
+
V((x(), n(c, h({ border: a.border }, t.$attrs, {
|
|
472
494
|
data: a.data,
|
|
473
495
|
lazy: !0,
|
|
474
496
|
class: "ui-table",
|
|
@@ -476,7 +498,7 @@ var Ce = {
|
|
|
476
498
|
ref_key: "tableRef",
|
|
477
499
|
ref: u
|
|
478
500
|
}), {
|
|
479
|
-
default:
|
|
501
|
+
default: B(() => [
|
|
480
502
|
f.value ? (x(), n(s, {
|
|
481
503
|
key: 0,
|
|
482
504
|
type: "selection",
|
|
@@ -494,7 +516,7 @@ var Ce = {
|
|
|
494
516
|
"column-key": "index_1",
|
|
495
517
|
align: a.align
|
|
496
518
|
}, null, 8, ["align"])) : r("", !0),
|
|
497
|
-
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(
|
|
519
|
+
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(Ee, {
|
|
498
520
|
key: t + "column_" + e?.prop?.toString(),
|
|
499
521
|
column: e,
|
|
500
522
|
data: a.data,
|
|
@@ -538,7 +560,7 @@ var Ce = {
|
|
|
538
560
|
]);
|
|
539
561
|
};
|
|
540
562
|
}
|
|
541
|
-
}),
|
|
563
|
+
}), Oe = /* @__PURE__ */ U({ default: () => ke }), ke = /* @__PURE__ */ W(De, [["__scopeId", "data-v-adf869c1"]]), Ae = ["src"], je = /* @__PURE__ */ u({
|
|
542
564
|
__name: "Icon",
|
|
543
565
|
props: {
|
|
544
566
|
name: {},
|
|
@@ -556,9 +578,9 @@ var Ce = {
|
|
|
556
578
|
width: e.size,
|
|
557
579
|
height: e.size
|
|
558
580
|
})
|
|
559
|
-
}, null, 12,
|
|
581
|
+
}, null, 12, Ae)) : r("", !0);
|
|
560
582
|
}
|
|
561
|
-
}),
|
|
583
|
+
}), Me = {
|
|
562
584
|
style: {
|
|
563
585
|
width: "100%",
|
|
564
586
|
height: "100%"
|
|
@@ -569,30 +591,30 @@ var Ce = {
|
|
|
569
591
|
version: "1.1",
|
|
570
592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
593
|
"p-id": "8979"
|
|
572
|
-
},
|
|
594
|
+
}, q = /* @__PURE__ */ u({
|
|
573
595
|
__name: "Search",
|
|
574
596
|
setup(e) {
|
|
575
|
-
return (e, t) => (x(), i("svg",
|
|
597
|
+
return (e, t) => (x(), i("svg", Me, [...t[0] ||= [a("path", {
|
|
576
598
|
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",
|
|
577
599
|
"p-id": "8980"
|
|
578
600
|
}, null, -1)]]));
|
|
579
601
|
}
|
|
580
|
-
}),
|
|
602
|
+
}), Ne = {
|
|
581
603
|
style: {
|
|
582
604
|
width: "100%",
|
|
583
605
|
height: "100%"
|
|
584
606
|
},
|
|
585
607
|
viewBox: "0 0 1024 1024",
|
|
586
608
|
xmlns: "http://www.w3.org/2000/svg"
|
|
587
|
-
},
|
|
609
|
+
}, Pe = /* @__PURE__ */ u({
|
|
588
610
|
__name: "CloseBold",
|
|
589
611
|
setup(e) {
|
|
590
|
-
return (e, t) => (x(), i("svg",
|
|
612
|
+
return (e, t) => (x(), i("svg", Ne, [...t[0] ||= [a("path", {
|
|
591
613
|
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",
|
|
592
614
|
fill: "currentColor"
|
|
593
615
|
}, null, -1)]]));
|
|
594
616
|
}
|
|
595
|
-
}),
|
|
617
|
+
}), Fe = {
|
|
596
618
|
style: {
|
|
597
619
|
width: "100%",
|
|
598
620
|
height: "100%"
|
|
@@ -603,10 +625,10 @@ var Ce = {
|
|
|
603
625
|
version: "1.1",
|
|
604
626
|
xmlns: "http://www.w3.org/2000/svg",
|
|
605
627
|
"p-id": "10092"
|
|
606
|
-
},
|
|
628
|
+
}, Ie = /* @__PURE__ */ u({
|
|
607
629
|
__name: "User",
|
|
608
630
|
setup(e) {
|
|
609
|
-
return (e, t) => (x(), i("svg",
|
|
631
|
+
return (e, t) => (x(), i("svg", Fe, [...t[0] ||= [a("path", {
|
|
610
632
|
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",
|
|
611
633
|
fill: "#999999",
|
|
612
634
|
"p-id": "10093"
|
|
@@ -616,7 +638,7 @@ var Ce = {
|
|
|
616
638
|
"p-id": "10094"
|
|
617
639
|
}, null, -1)]]));
|
|
618
640
|
}
|
|
619
|
-
}),
|
|
641
|
+
}), Le = {
|
|
620
642
|
style: {
|
|
621
643
|
width: "100%",
|
|
622
644
|
height: "100%"
|
|
@@ -627,16 +649,16 @@ var Ce = {
|
|
|
627
649
|
version: "1.1",
|
|
628
650
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
651
|
"p-id": "11055"
|
|
630
|
-
},
|
|
652
|
+
}, Re = /* @__PURE__ */ u({
|
|
631
653
|
__name: "Plus",
|
|
632
654
|
setup(e) {
|
|
633
|
-
return (e, t) => (x(), i("svg",
|
|
655
|
+
return (e, t) => (x(), i("svg", Le, [...t[0] ||= [a("path", {
|
|
634
656
|
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",
|
|
635
657
|
fill: "#323233",
|
|
636
658
|
"p-id": "11056"
|
|
637
659
|
}, null, -1)]]));
|
|
638
660
|
}
|
|
639
|
-
}),
|
|
661
|
+
}), ze = {}, Be = {
|
|
640
662
|
style: {
|
|
641
663
|
width: "100%",
|
|
642
664
|
height: "100%"
|
|
@@ -648,14 +670,14 @@ var Ce = {
|
|
|
648
670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
649
671
|
"p-id": "4859"
|
|
650
672
|
};
|
|
651
|
-
function
|
|
652
|
-
return x(), i("svg",
|
|
673
|
+
function Ve(e, t) {
|
|
674
|
+
return x(), i("svg", Be, [...t[0] ||= [a("path", {
|
|
653
675
|
d: "M731.733333 480l-384-341.333333c-17.066667-14.933333-44.8-14.933333-59.733333 4.266666-14.933333 17.066667-14.933333 44.8 4.266667 59.733334L640 512 292.266667 821.333333c-17.066667 14.933333-19.2 42.666667-4.266667 59.733334 8.533333 8.533333 19.2 14.933333 32 14.933333 10.666667 0 19.2-4.266667 27.733333-10.666667l384-341.333333c8.533333-8.533333 14.933333-19.2 14.933334-32s-4.266667-23.466667-14.933334-32z",
|
|
654
676
|
fill: "#666666",
|
|
655
677
|
"p-id": "4860"
|
|
656
678
|
}, null, -1)]]);
|
|
657
679
|
}
|
|
658
|
-
var
|
|
680
|
+
var He = /* @__PURE__ */ W(ze, [["render", Ve]]), Ue = {}, We = {
|
|
659
681
|
style: {
|
|
660
682
|
width: "100%",
|
|
661
683
|
height: "100%"
|
|
@@ -667,13 +689,13 @@ var Ve = /* @__PURE__ */ W(Re, [["render", Be]]), He = {}, Ue = {
|
|
|
667
689
|
xmlns: "http://www.w3.org/2000/svg",
|
|
668
690
|
"p-id": "6029"
|
|
669
691
|
};
|
|
670
|
-
function
|
|
671
|
-
return x(), i("svg",
|
|
692
|
+
function Ge(e, t) {
|
|
693
|
+
return x(), i("svg", We, [...t[0] ||= [a("path", {
|
|
672
694
|
d: "M897.96 728.3c-18.8 18.8-49.1 18.801-67.901 0l-318-318-318 318c-18.8 18.8-49.2 18.8-67.901 0-18.8-18.8-18.801-49.1 0-67.901l352-352c18.8-18.8 49.2-18.8 67.901 0l352 352c9.4 9.4 14 21.7 14 34-0.1 12.2-4.7 24.501-14.1 33.9z",
|
|
673
695
|
"p-id": "6030"
|
|
674
696
|
}, null, -1)]]);
|
|
675
697
|
}
|
|
676
|
-
var
|
|
698
|
+
var Ke = /* @__PURE__ */ W(Ue, [["render", Ge]]), qe = {}, Je = {
|
|
677
699
|
style: {
|
|
678
700
|
width: "100%",
|
|
679
701
|
height: "100%"
|
|
@@ -685,8 +707,8 @@ var Ge = /* @__PURE__ */ W(He, [["render", We]]), Ke = {}, qe = {
|
|
|
685
707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
686
708
|
"p-id": "6997"
|
|
687
709
|
};
|
|
688
|
-
function
|
|
689
|
-
return x(), i("svg",
|
|
710
|
+
function Ye(e, t) {
|
|
711
|
+
return x(), i("svg", Je, [...t[0] ||= [a("path", {
|
|
690
712
|
d: "M512.34133333 931.38488889c-49.94844445 0-98.87288889-8.64711111-145.29422222-25.82755556-44.94222222-16.61155555-86.35733333-40.61866667-123.22133333-71.45244444-74.29688889-61.89511111-125.15555555-148.02488889-143.24622223-242.34666667l71.45244445-13.76711111c31.28888889 162.58844445 174.42133333 280.576 340.30933333 280.576 70.08711111 0 137.55733333-20.82133333 195.12888889-60.07466666 56.32-38.45688889 99.66933333-91.93244445 125.49688889-154.73777778l67.35644444 27.648c-31.28888889 76.00355555-83.74044445 140.74311111-151.77955555 187.16444444-69.85955555 47.67288889-151.43822222 72.81777778-236.20266667 72.81777778zM846.848 421.43288889C827.392 349.29777778 783.92888889 284.33066667 724.65066667 238.13688889c-61.21244445-47.55911111-134.59911111-72.704-212.30933334-72.704-69.97333333 0-137.44355555 20.70755555-194.90133333 59.96088889-56.32 38.57066667-99.78311111 91.93244445-125.61066667 154.624l-67.35644444-27.76177778c31.28888889-75.88977778 83.74044445-140.40177778 151.77955556-186.82311111 69.74577778-47.55911111 151.32444445-72.704 235.9751111-72.704 47.33155555 0 93.86666667 7.85066667 138.12622223 23.32444444 42.89422222 14.90488889 82.83022222 36.75022222 118.784 64.62577778 35.61244445 27.648 66.33244445 60.64355555 91.47733333 98.07644444 25.48622222 38.00177778 44.48711111 79.64444445 56.32 123.67644445l-70.08711111 19.00088889z",
|
|
691
713
|
"p-id": "6998"
|
|
692
714
|
}, null, -1), a("path", {
|
|
@@ -694,7 +716,7 @@ function Je(e, t) {
|
|
|
694
716
|
"p-id": "6999"
|
|
695
717
|
}, null, -1)]]);
|
|
696
718
|
}
|
|
697
|
-
var
|
|
719
|
+
var J = /* @__PURE__ */ W(qe, [["render", Ye]]), Xe = {}, Ze = {
|
|
698
720
|
style: {
|
|
699
721
|
width: "100%",
|
|
700
722
|
height: "100%"
|
|
@@ -706,58 +728,59 @@ var q = /* @__PURE__ */ W(Ke, [["render", Je]]), Ye = {}, Xe = {
|
|
|
706
728
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
729
|
"p-id": "9850"
|
|
708
730
|
};
|
|
709
|
-
function
|
|
710
|
-
return x(), i("svg",
|
|
731
|
+
function Qe(e, t) {
|
|
732
|
+
return x(), i("svg", Ze, [...t[0] ||= [a("path", {
|
|
711
733
|
d: "M64 448l832-320-128 704-446.016-243.008L832 192 243.008 544.96 64 448z m256 512v-303.04L512 768l-192 192z",
|
|
712
734
|
"p-id": "9851"
|
|
713
735
|
}, null, -1)]]);
|
|
714
736
|
}
|
|
715
|
-
var
|
|
716
|
-
ArrowRight: () =>
|
|
717
|
-
ArrowUp: () =>
|
|
718
|
-
CloseBold: () =>
|
|
719
|
-
Plus: () =>
|
|
720
|
-
Promotion: () =>
|
|
721
|
-
Refresh: () =>
|
|
722
|
-
Search: () =>
|
|
723
|
-
User: () =>
|
|
724
|
-
YcIcon: () =>
|
|
737
|
+
var $e = /* @__PURE__ */ W(Xe, [["render", Qe]]), et = /* @__PURE__ */ U({
|
|
738
|
+
ArrowRight: () => He,
|
|
739
|
+
ArrowUp: () => Ke,
|
|
740
|
+
CloseBold: () => Pe,
|
|
741
|
+
Plus: () => Re,
|
|
742
|
+
Promotion: () => $e,
|
|
743
|
+
Refresh: () => J,
|
|
744
|
+
Search: () => q,
|
|
745
|
+
User: () => Ie,
|
|
746
|
+
YcIcon: () => je
|
|
725
747
|
});
|
|
726
748
|
//#endregion
|
|
727
749
|
//#region src/components/utils/tools.ts
|
|
728
|
-
function
|
|
750
|
+
function tt(e) {
|
|
729
751
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
730
752
|
}
|
|
731
|
-
function
|
|
753
|
+
function nt(e) {
|
|
732
754
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
733
755
|
}
|
|
734
|
-
var tt = Object.fromEntries(Object.entries(Ce).map(([e, t]) => [e, (n = {}) => ({
|
|
735
|
-
props: n,
|
|
736
|
-
type: e,
|
|
737
|
-
component: t
|
|
738
|
-
})]));
|
|
739
756
|
function Y(e, t) {
|
|
757
|
+
let n = Object.fromEntries(Object.entries(Te).map(([n, r]) => [n, (i = {}) => ({
|
|
758
|
+
props: {
|
|
759
|
+
...i,
|
|
760
|
+
data: t,
|
|
761
|
+
prop: e.prop
|
|
762
|
+
},
|
|
763
|
+
type: n,
|
|
764
|
+
component: r
|
|
765
|
+
})]));
|
|
740
766
|
return typeof e.render == "function" ? e.render({
|
|
741
|
-
h:
|
|
767
|
+
h: n,
|
|
742
768
|
data: t
|
|
743
|
-
}) :
|
|
769
|
+
}) : n.input({ prop: e.prop });
|
|
744
770
|
}
|
|
745
771
|
function X(e, t, n) {
|
|
746
772
|
n && typeof t == "object" && t && t[n];
|
|
747
773
|
let r = Y(e, t);
|
|
748
|
-
return typeof r != "object" || !r ? r ?? "" : r.component
|
|
749
|
-
component: r.type,
|
|
750
|
-
props: r.props
|
|
751
|
-
} : r;
|
|
774
|
+
return typeof r != "object" || !r ? r ?? "" : (r.component, r);
|
|
752
775
|
}
|
|
753
776
|
//#endregion
|
|
754
777
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
755
|
-
var
|
|
778
|
+
var rt = { style: {
|
|
756
779
|
display: "flex",
|
|
757
780
|
"justify-content": "end",
|
|
758
781
|
"align-items": "center",
|
|
759
782
|
width: "100%"
|
|
760
|
-
} },
|
|
783
|
+
} }, it = /* @__PURE__ */ u({
|
|
761
784
|
name: "UiDefaultFilter",
|
|
762
785
|
__name: "index",
|
|
763
786
|
props: {
|
|
@@ -801,7 +824,7 @@ var nt = { style: {
|
|
|
801
824
|
let e = {};
|
|
802
825
|
Object.keys(m).forEach((t) => {
|
|
803
826
|
if (m[t] !== void 0) {
|
|
804
|
-
let n =
|
|
827
|
+
let n = P(m[t]);
|
|
805
828
|
e[t] = typeof n == "string" ? n.trim() : n;
|
|
806
829
|
}
|
|
807
830
|
}), d("submit", {
|
|
@@ -824,24 +847,24 @@ var nt = { style: {
|
|
|
824
847
|
class: "ui-filter",
|
|
825
848
|
size: s.size
|
|
826
849
|
}, t.$attrs), {
|
|
827
|
-
default:
|
|
850
|
+
default: B(() => [l(S, {
|
|
828
851
|
gutter: 20,
|
|
829
852
|
style: { "margin-bottom": "-15px" }
|
|
830
853
|
}, {
|
|
831
|
-
default:
|
|
832
|
-
default:
|
|
854
|
+
default: B(() => [(x(!0), i(e, null, w(g.value, (e) => (x(), n(f, { span: e.span || 24 / s.column }, {
|
|
855
|
+
default: B(() => [(x(), n(d, {
|
|
833
856
|
key: e.prop,
|
|
834
857
|
label: e.label,
|
|
835
|
-
"label-width":
|
|
836
|
-
"value-width":
|
|
858
|
+
"label-width": F(tt)(e?.labelWidth || s.labelWidth),
|
|
859
|
+
"value-width": F(nt)(e?.valueWidth || s.valueWidth)
|
|
837
860
|
}, {
|
|
838
|
-
default:
|
|
861
|
+
default: B(() => [e.render ? (x(), n(O(F(Y)(e, m).component), h({
|
|
839
862
|
key: 0,
|
|
840
863
|
modelValue: m[e.prop],
|
|
841
864
|
"onUpdate:modelValue": (t) => m[e.prop] = t
|
|
842
|
-
}, { ref_for: !0 },
|
|
865
|
+
}, { ref_for: !0 }, F(Y)(e, m).props, {
|
|
843
866
|
clearable: !0,
|
|
844
|
-
style: { width:
|
|
867
|
+
style: { width: F(nt)(e?.valueWidth || s.valueWidth) }
|
|
845
868
|
}), null, 16, [
|
|
846
869
|
"modelValue",
|
|
847
870
|
"onUpdate:modelValue",
|
|
@@ -852,7 +875,7 @@ var nt = { style: {
|
|
|
852
875
|
"onUpdate:modelValue": (t) => m[e.prop] = t,
|
|
853
876
|
placeholder: "请输入",
|
|
854
877
|
clearable: !0,
|
|
855
|
-
style: v({ width:
|
|
878
|
+
style: v({ width: F(nt)(e?.valueWidth || s.valueWidth) })
|
|
856
879
|
}, null, 8, [
|
|
857
880
|
"modelValue",
|
|
858
881
|
"onUpdate:modelValue",
|
|
@@ -869,34 +892,34 @@ var nt = { style: {
|
|
|
869
892
|
span: 24 / s.column,
|
|
870
893
|
offset: _.value
|
|
871
894
|
}, {
|
|
872
|
-
default:
|
|
895
|
+
default: B(() => [l(d, {
|
|
873
896
|
label: "",
|
|
874
897
|
"label-width": "30px"
|
|
875
898
|
}, {
|
|
876
|
-
default:
|
|
899
|
+
default: B(() => [a("div", rt, [
|
|
877
900
|
T(t.$slots, "left", { form: m }, void 0, !0),
|
|
878
901
|
s.fields.length >= 2 * s.column ? (x(), n(y, {
|
|
879
902
|
key: 0,
|
|
880
903
|
text: "",
|
|
881
|
-
icon: p.expand ?
|
|
904
|
+
icon: p.expand ? F(Ke) : F(He),
|
|
882
905
|
onClick: o[0] ||= (e) => p.expand = !p.expand
|
|
883
906
|
}, {
|
|
884
|
-
default:
|
|
907
|
+
default: B(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
|
|
885
908
|
_: 1
|
|
886
909
|
}, 8, ["icon"])) : r("", !0),
|
|
887
910
|
l(y, {
|
|
888
|
-
icon:
|
|
911
|
+
icon: F(q),
|
|
889
912
|
type: "primary",
|
|
890
913
|
onClick: b
|
|
891
914
|
}, {
|
|
892
|
-
default:
|
|
915
|
+
default: B(() => [...o[1] ||= [c("查询", -1)]]),
|
|
893
916
|
_: 1
|
|
894
917
|
}, 8, ["icon"]),
|
|
895
918
|
l(y, {
|
|
896
|
-
icon:
|
|
919
|
+
icon: F(J),
|
|
897
920
|
onClick: C
|
|
898
921
|
}, {
|
|
899
|
-
default:
|
|
922
|
+
default: B(() => [...o[2] ||= [c("重置", -1)]]),
|
|
900
923
|
_: 1
|
|
901
924
|
}, 8, ["icon"]),
|
|
902
925
|
T(t.$slots, "handle", { form: m }, void 0, !0),
|
|
@@ -912,16 +935,16 @@ var nt = { style: {
|
|
|
912
935
|
}, 16, ["model", "size"]);
|
|
913
936
|
};
|
|
914
937
|
}
|
|
915
|
-
}),
|
|
938
|
+
}), at = /* @__PURE__ */ U({ default: () => ot }), ot = /* @__PURE__ */ W(it, [["__scopeId", "data-v-0e3c7086"]]), st = {
|
|
916
939
|
key: 0,
|
|
917
940
|
style: { display: "inline-block" }
|
|
918
|
-
},
|
|
941
|
+
}, ct = {
|
|
919
942
|
key: 0,
|
|
920
943
|
style: { display: "inline-block" }
|
|
921
|
-
},
|
|
944
|
+
}, lt = {
|
|
922
945
|
key: 0,
|
|
923
946
|
class: "ui-form-buttons"
|
|
924
|
-
},
|
|
947
|
+
}, ut = /* @__PURE__ */ u({
|
|
925
948
|
__name: "index",
|
|
926
949
|
props: {
|
|
927
950
|
fields: {},
|
|
@@ -946,16 +969,16 @@ var nt = { style: {
|
|
|
946
969
|
"update:modelValue"
|
|
947
970
|
],
|
|
948
971
|
setup(a, { expose: o, emit: s }) {
|
|
949
|
-
ee((e) => ({
|
|
950
|
-
let u = s, { fields:
|
|
951
|
-
get: () =>
|
|
972
|
+
ee((e) => ({ v03457dd8: F(k) / 2 }));
|
|
973
|
+
let u = s, d = a, { fields: f, labelWidth: p = "100px", valueWidth: m = "auto", omitFields: g = [], rules: y = S({}), labelPosition: b = "top", valueModel: D = "default", column: k = 24 } = d, A = C(0), N = C(), P = t(() => d.modelValue !== void 0), I = S({}), L = t(() => P.value ? d.modelValue : d.model || I), R = t({
|
|
974
|
+
get: () => L.value,
|
|
952
975
|
set: (e) => {
|
|
953
|
-
|
|
976
|
+
P.value && u("update:modelValue", e);
|
|
954
977
|
}
|
|
955
|
-
}),
|
|
956
|
-
if (
|
|
978
|
+
}), z = t(() => f.filter((e) => typeof e.prop == "string")), V = t(() => {
|
|
979
|
+
if (y && Object.keys(y).length) return y;
|
|
957
980
|
let e = {};
|
|
958
|
-
return
|
|
981
|
+
return f.forEach((t) => {
|
|
959
982
|
t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
|
|
960
983
|
required: !0,
|
|
961
984
|
message: "请输入" + t.label,
|
|
@@ -963,90 +986,90 @@ var nt = { style: {
|
|
|
963
986
|
}]);
|
|
964
987
|
}), e;
|
|
965
988
|
});
|
|
966
|
-
async function
|
|
967
|
-
await
|
|
989
|
+
async function te() {
|
|
990
|
+
await N.value?.validate().catch(() => !1) && u("submit", M(L.value));
|
|
968
991
|
}
|
|
969
|
-
function
|
|
992
|
+
function ne() {
|
|
970
993
|
let e = {};
|
|
971
|
-
Object.keys(
|
|
972
|
-
|
|
973
|
-
}), Object.assign(
|
|
994
|
+
Object.keys(L.value).forEach((t) => {
|
|
995
|
+
g.includes(t) || (e[t] = void 0);
|
|
996
|
+
}), Object.assign(L.value, e), A.value += 1, u("reset", M(L.value));
|
|
974
997
|
}
|
|
975
|
-
function
|
|
976
|
-
return M(
|
|
998
|
+
function H() {
|
|
999
|
+
return M(L.value);
|
|
977
1000
|
}
|
|
978
1001
|
function re(e) {
|
|
979
|
-
Object.assign(
|
|
1002
|
+
Object.assign(L.value, e);
|
|
980
1003
|
}
|
|
981
|
-
function
|
|
982
|
-
|
|
1004
|
+
function U() {
|
|
1005
|
+
N.value?.clearValidate();
|
|
983
1006
|
}
|
|
984
|
-
async function
|
|
1007
|
+
async function ie() {
|
|
985
1008
|
return new Promise((e) => {
|
|
986
|
-
|
|
1009
|
+
N.value?.validate((t, n) => e(n));
|
|
987
1010
|
});
|
|
988
1011
|
}
|
|
989
1012
|
return o({
|
|
990
|
-
getValues:
|
|
1013
|
+
getValues: H,
|
|
991
1014
|
setValues: re,
|
|
992
|
-
clearValidate:
|
|
993
|
-
onSubmit:
|
|
994
|
-
validate:
|
|
1015
|
+
clearValidate: U,
|
|
1016
|
+
onSubmit: te,
|
|
1017
|
+
validate: ie
|
|
995
1018
|
}), (t, a) => {
|
|
996
1019
|
let o = E("el-input"), s = E("el-form-item"), u = E("el-form"), d = E("el-button");
|
|
997
1020
|
return x(), i(e, null, [l(u, h({
|
|
998
1021
|
ref_key: "uiFormRef",
|
|
999
|
-
ref:
|
|
1000
|
-
model:
|
|
1022
|
+
ref: N,
|
|
1023
|
+
model: R.value
|
|
1001
1024
|
}, t.$attrs, {
|
|
1002
|
-
rules:
|
|
1003
|
-
inline:
|
|
1004
|
-
"label-position":
|
|
1025
|
+
rules: V.value,
|
|
1026
|
+
inline: F(b) !== "top",
|
|
1027
|
+
"label-position": F(b),
|
|
1005
1028
|
class: {
|
|
1006
1029
|
"ui-form": !0,
|
|
1007
|
-
horizontal:
|
|
1030
|
+
horizontal: F(b) !== "top"
|
|
1008
1031
|
},
|
|
1009
1032
|
"validate-on-rule-change": !1
|
|
1010
1033
|
}), {
|
|
1011
|
-
default:
|
|
1034
|
+
default: B(() => [(x(!0), i(e, null, w(z.value, (r) => (x(), n(s, {
|
|
1012
1035
|
key: r.prop,
|
|
1013
1036
|
label: r.label,
|
|
1014
|
-
"label-width":
|
|
1015
|
-
"value-width":
|
|
1037
|
+
"label-width": F(p),
|
|
1038
|
+
"value-width": F(m),
|
|
1016
1039
|
prop: r.prop,
|
|
1017
1040
|
style: v({
|
|
1018
1041
|
width: `${r?.width ? r?.width + "px" : "100%"}`,
|
|
1019
|
-
gridColumn: `span ${(r?.span ||
|
|
1042
|
+
gridColumn: `span ${(r?.span || F(k)) / 2 || 1}`
|
|
1020
1043
|
})
|
|
1021
1044
|
}, {
|
|
1022
|
-
default:
|
|
1045
|
+
default: B(() => [r.render ? (x(), i(e, { key: 0 }, [F(X)(r, R.value, r.prop).component ? (x(), n(O(F(X)(r, R.value, r.prop).component), h({
|
|
1023
1046
|
key: 1,
|
|
1024
|
-
modelValue:
|
|
1025
|
-
"onUpdate:modelValue": (e) =>
|
|
1026
|
-
}, { ref_for: !0 },
|
|
1047
|
+
modelValue: R.value[r.prop],
|
|
1048
|
+
"onUpdate:modelValue": (e) => R.value[r.prop] = e
|
|
1049
|
+
}, { ref_for: !0 }, F(X)(r, R.value, r.prop).props, {
|
|
1027
1050
|
clearable: !0,
|
|
1028
|
-
key: `${r.prop}-${
|
|
1051
|
+
key: `${r.prop}-${A.value}`,
|
|
1029
1052
|
style: { display: "inline-block" },
|
|
1030
|
-
class: { underline:
|
|
1053
|
+
class: { underline: F(D) === "underline" }
|
|
1031
1054
|
}), null, 16, [
|
|
1032
1055
|
"modelValue",
|
|
1033
1056
|
"onUpdate:modelValue",
|
|
1034
1057
|
"class"
|
|
1035
|
-
])) : (x(), i("span",
|
|
1058
|
+
])) : (x(), i("span", st, j(F(X)(r, R.value, r.prop) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: R.value }, () => [F(X)(e, R.value, e.prop).component ? (x(), n(O(F(X)(e, R.value, e.prop).component), h({
|
|
1036
1059
|
key: 1,
|
|
1037
|
-
modelValue:
|
|
1038
|
-
"onUpdate:modelValue": (t) =>
|
|
1060
|
+
modelValue: R.value[e.prop],
|
|
1061
|
+
"onUpdate:modelValue": (t) => R.value[e.prop] = t,
|
|
1039
1062
|
"default-value": e.defaultValue,
|
|
1040
1063
|
placeholder: e.placeholder
|
|
1041
|
-
}, { ref_for: !0 },
|
|
1064
|
+
}, { ref_for: !0 }, F(X)(e, R.value, e.prop).props, {
|
|
1042
1065
|
style: {
|
|
1043
1066
|
display: "inline-block",
|
|
1044
1067
|
marginLeft: "10px",
|
|
1045
1068
|
width: `${e.width ? e.width + "px" : "100%"}`
|
|
1046
1069
|
},
|
|
1047
|
-
class: { underline:
|
|
1070
|
+
class: { underline: F(D) === "underline" },
|
|
1048
1071
|
clearable: !0,
|
|
1049
|
-
key: `${e.prop}-${
|
|
1072
|
+
key: `${e.prop}-${A.value}`
|
|
1050
1073
|
}), null, 16, [
|
|
1051
1074
|
"modelValue",
|
|
1052
1075
|
"onUpdate:modelValue",
|
|
@@ -1054,13 +1077,13 @@ var nt = { style: {
|
|
|
1054
1077
|
"placeholder",
|
|
1055
1078
|
"style",
|
|
1056
1079
|
"class"
|
|
1057
|
-
])) : (x(), i("span",
|
|
1080
|
+
])) : (x(), i("span", ct, j(F(X)(e, R.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
|
|
1058
1081
|
key: 1,
|
|
1059
|
-
modelValue:
|
|
1060
|
-
"onUpdate:modelValue": (e) =>
|
|
1082
|
+
modelValue: R.value[r.prop],
|
|
1083
|
+
"onUpdate:modelValue": (e) => R.value[r.prop] = e,
|
|
1061
1084
|
placeholder: "请输入",
|
|
1062
1085
|
clearable: !0,
|
|
1063
|
-
class: _({ underline:
|
|
1086
|
+
class: _({ underline: F(D) === "underline" })
|
|
1064
1087
|
}, null, 8, [
|
|
1065
1088
|
"modelValue",
|
|
1066
1089
|
"onUpdate:modelValue",
|
|
@@ -1081,29 +1104,29 @@ var nt = { style: {
|
|
|
1081
1104
|
"inline",
|
|
1082
1105
|
"label-position",
|
|
1083
1106
|
"class"
|
|
1084
|
-
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div",
|
|
1085
|
-
T(t.$slots, "handle", { form:
|
|
1107
|
+
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", lt, [
|
|
1108
|
+
T(t.$slots, "handle", { form: R.value }, void 0, !0),
|
|
1086
1109
|
l(d, {
|
|
1087
|
-
icon:
|
|
1088
|
-
onClick:
|
|
1110
|
+
icon: F(J),
|
|
1111
|
+
onClick: ne,
|
|
1089
1112
|
size: t.$props.size
|
|
1090
1113
|
}, {
|
|
1091
|
-
default:
|
|
1114
|
+
default: B(() => [...a[0] ||= [c("重置", -1)]]),
|
|
1092
1115
|
_: 1
|
|
1093
1116
|
}, 8, ["icon", "size"]),
|
|
1094
1117
|
l(d, {
|
|
1095
|
-
icon:
|
|
1118
|
+
icon: F($e),
|
|
1096
1119
|
type: "primary",
|
|
1097
|
-
onClick:
|
|
1120
|
+
onClick: te,
|
|
1098
1121
|
size: t.$props.size
|
|
1099
1122
|
}, {
|
|
1100
|
-
default:
|
|
1123
|
+
default: B(() => [...a[1] ||= [c("提交", -1)]]),
|
|
1101
1124
|
_: 1
|
|
1102
1125
|
}, 8, ["icon", "size"])
|
|
1103
1126
|
]))], 64);
|
|
1104
1127
|
};
|
|
1105
1128
|
}
|
|
1106
|
-
}),
|
|
1129
|
+
}), dt = /* @__PURE__ */ U({ default: () => ft }), ft = /* @__PURE__ */ W(ut, [["__scopeId", "data-v-b5839f9e"]]), pt = ["disabled"], mt = /* @__PURE__ */ u({
|
|
1107
1130
|
__name: "index",
|
|
1108
1131
|
props: /* @__PURE__ */ m({
|
|
1109
1132
|
defaultValue: { default: "" },
|
|
@@ -1120,9 +1143,9 @@ var nt = { style: {
|
|
|
1120
1143
|
}),
|
|
1121
1144
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
1122
1145
|
setup(e, { emit: t }) {
|
|
1123
|
-
let n = C(), r =
|
|
1146
|
+
let n = C(), r = L(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
|
|
1124
1147
|
return y(() => {
|
|
1125
|
-
o = new
|
|
1148
|
+
o = new H({
|
|
1126
1149
|
element: n.value,
|
|
1127
1150
|
placeholder: "点击输入内容...",
|
|
1128
1151
|
content: r.value || e.defaultValue || "",
|
|
@@ -1132,7 +1155,7 @@ var nt = { style: {
|
|
|
1132
1155
|
r.value = t, a.value = t, s("change", t);
|
|
1133
1156
|
}
|
|
1134
1157
|
}), o.setEditable(!e.disabled);
|
|
1135
|
-
}),
|
|
1158
|
+
}), R(r, (e) => {
|
|
1136
1159
|
o && e !== o.getHtml() && o.setContent(e);
|
|
1137
1160
|
}), b(() => {
|
|
1138
1161
|
o && o.destroy();
|
|
@@ -1141,9 +1164,9 @@ var nt = { style: {
|
|
|
1141
1164
|
ref: n,
|
|
1142
1165
|
style: { height: "500px" },
|
|
1143
1166
|
disabled: e.disabled
|
|
1144
|
-
}, null, 8,
|
|
1167
|
+
}, null, 8, pt));
|
|
1145
1168
|
}
|
|
1146
|
-
}),
|
|
1169
|
+
}), ht = /* @__PURE__ */ U({ default: () => gt }), gt = mt, _t = { class: "ui-tree-wrapper" }, vt = {
|
|
1147
1170
|
key: 0,
|
|
1148
1171
|
style: {
|
|
1149
1172
|
display: "flex",
|
|
@@ -1152,10 +1175,10 @@ var nt = { style: {
|
|
|
1152
1175
|
"align-items": "center",
|
|
1153
1176
|
gap: "10px"
|
|
1154
1177
|
}
|
|
1155
|
-
},
|
|
1178
|
+
}, yt = {
|
|
1156
1179
|
key: 0,
|
|
1157
1180
|
class: "custom-tree-node"
|
|
1158
|
-
},
|
|
1181
|
+
}, bt = { class: "node-label" }, xt = { key: 0 }, St = ["onClick"], Ct = /* @__PURE__ */ u({
|
|
1159
1182
|
__name: "index",
|
|
1160
1183
|
props: {
|
|
1161
1184
|
id: {},
|
|
@@ -1181,13 +1204,13 @@ var nt = { style: {
|
|
|
1181
1204
|
"delete"
|
|
1182
1205
|
],
|
|
1183
1206
|
setup(e, { emit: s }) {
|
|
1184
|
-
let u = s, f =
|
|
1207
|
+
let u = s, f = I(), p = o(e, [
|
|
1185
1208
|
"filterable",
|
|
1186
1209
|
"placeholder",
|
|
1187
1210
|
"data",
|
|
1188
1211
|
"props"
|
|
1189
1212
|
]), m = C(""), g = C(), _ = C(), v = d()?.appContext.config.globalProperties.$messageBox;
|
|
1190
|
-
|
|
1213
|
+
R(m, (t) => {
|
|
1191
1214
|
e.filterable && _.value?.filter(t);
|
|
1192
1215
|
});
|
|
1193
1216
|
let y = t(() => f?.["show-total"] ?? p?.showTotal ?? !0);
|
|
@@ -1225,8 +1248,8 @@ var nt = { style: {
|
|
|
1225
1248
|
}
|
|
1226
1249
|
return (t, o) => {
|
|
1227
1250
|
let s = E("el-input"), u = E("el-button"), d = E("el-dropdown-item"), f = E("el-dropdown-menu"), g = E("el-dropdown"), v = E("el-tree-v2");
|
|
1228
|
-
return x(), i("div",
|
|
1229
|
-
e.filterable ? (x(), i("div",
|
|
1251
|
+
return x(), i("div", _t, [
|
|
1252
|
+
e.filterable ? (x(), i("div", vt, [l(s, {
|
|
1230
1253
|
modelValue: m.value,
|
|
1231
1254
|
"onUpdate:modelValue": o[0] ||= (e) => m.value = e,
|
|
1232
1255
|
placeholder: e.placeholder ?? "请输入",
|
|
@@ -1240,7 +1263,7 @@ var nt = { style: {
|
|
|
1240
1263
|
link: "",
|
|
1241
1264
|
onClick: o[1] ||= (e) => w()
|
|
1242
1265
|
}, {
|
|
1243
|
-
default:
|
|
1266
|
+
default: B(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
|
|
1244
1267
|
_: 1
|
|
1245
1268
|
}))])) : r("", !0),
|
|
1246
1269
|
T(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
@@ -1256,44 +1279,44 @@ var nt = { style: {
|
|
|
1256
1279
|
"highlight-current": !0,
|
|
1257
1280
|
"filter-method": b
|
|
1258
1281
|
}), {
|
|
1259
|
-
default:
|
|
1282
|
+
default: B((s) => [s?.data ? (x(), i("div", yt, [a("div", bt, [s.data?.children?.length ? (x(), i("span", xt, "📁")) : r("", !0), c(" " + j(s.data?.[e.props?.label || "label"]) + " " + j(y.value && s.data?.children?.length ? `(${s.data.children.length})` : ""), 1)]), p.hideNodeHandle ? r("", !0) : (x(), n(g, {
|
|
1260
1283
|
key: 0,
|
|
1261
1284
|
trigger: "click"
|
|
1262
1285
|
}, {
|
|
1263
|
-
dropdown:
|
|
1264
|
-
default:
|
|
1286
|
+
dropdown: B(() => [l(f, null, {
|
|
1287
|
+
default: B(() => [
|
|
1265
1288
|
p?.hideNodeAdd ? r("", !0) : (x(), n(d, {
|
|
1266
1289
|
key: 0,
|
|
1267
1290
|
onClick: (e) => w(s.data)
|
|
1268
1291
|
}, {
|
|
1269
|
-
default:
|
|
1292
|
+
default: B(() => [...o[3] ||= [c(" 添加 ", -1)]]),
|
|
1270
1293
|
_: 1
|
|
1271
1294
|
}, 8, ["onClick"])),
|
|
1272
1295
|
p?.hideNodeEdit ? r("", !0) : (x(), n(d, {
|
|
1273
1296
|
key: 1,
|
|
1274
1297
|
onClick: (e) => D(s.data)
|
|
1275
1298
|
}, {
|
|
1276
|
-
default:
|
|
1299
|
+
default: B(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
|
|
1277
1300
|
_: 1
|
|
1278
1301
|
}, 8, ["onClick"])),
|
|
1279
1302
|
p?.hideNodeDel ? r("", !0) : (x(), n(d, {
|
|
1280
1303
|
key: 2,
|
|
1281
1304
|
onClick: (e) => O(s.data)
|
|
1282
1305
|
}, {
|
|
1283
|
-
default:
|
|
1306
|
+
default: B(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
|
|
1284
1307
|
_: 1
|
|
1285
1308
|
}, 8, ["onClick"])),
|
|
1286
1309
|
T(t.$slots, "node-handle", { data: s.data }, void 0, !0)
|
|
1287
1310
|
]),
|
|
1288
1311
|
_: 2
|
|
1289
1312
|
}, 1024)]),
|
|
1290
|
-
default:
|
|
1313
|
+
default: B(() => [a("span", {
|
|
1291
1314
|
onClick: (e) => S(e, s.data),
|
|
1292
1315
|
style: {
|
|
1293
1316
|
padding: "4px",
|
|
1294
1317
|
"font-weight": "bold"
|
|
1295
1318
|
}
|
|
1296
|
-
}, "⋮", 8,
|
|
1319
|
+
}, "⋮", 8, St)]),
|
|
1297
1320
|
_: 2
|
|
1298
1321
|
}, 1024))])) : r("", !0)]),
|
|
1299
1322
|
_: 3
|
|
@@ -1301,13 +1324,13 @@ var nt = { style: {
|
|
|
1301
1324
|
]);
|
|
1302
1325
|
};
|
|
1303
1326
|
}
|
|
1304
|
-
}),
|
|
1327
|
+
}), wt = /* @__PURE__ */ U({ default: () => Tt }), Tt = /* @__PURE__ */ W(Ct, [["__scopeId", "data-v-7858d79e"]]), Et = { style: { height: "100%" } }, Dt = { style: {
|
|
1305
1328
|
display: "flex",
|
|
1306
1329
|
"flex-direction": "row",
|
|
1307
1330
|
"justify-content": "space-between",
|
|
1308
1331
|
"align-items": "center",
|
|
1309
1332
|
gap: "10px"
|
|
1310
|
-
} },
|
|
1333
|
+
} }, Ot = { style: { margin: "10px 0px" } }, kt = ["onClick"], At = { key: 0 }, jt = /* @__PURE__ */ u({
|
|
1311
1334
|
__name: "index",
|
|
1312
1335
|
props: {
|
|
1313
1336
|
loading: { default: () => C(!1) },
|
|
@@ -1320,7 +1343,7 @@ var nt = { style: {
|
|
|
1320
1343
|
emits: ["node-click"],
|
|
1321
1344
|
setup(o, { emit: s }) {
|
|
1322
1345
|
let c = s, l = C(""), u = C(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
|
|
1323
|
-
|
|
1346
|
+
R(() => [u.value, o.data?.[0]], (e) => {
|
|
1324
1347
|
!e[0] && e[1] && (u.value = o.data?.[0]);
|
|
1325
1348
|
}, { immediate: !0 });
|
|
1326
1349
|
function f(e) {
|
|
@@ -1328,15 +1351,15 @@ var nt = { style: {
|
|
|
1328
1351
|
}
|
|
1329
1352
|
return (t, s) => {
|
|
1330
1353
|
let c = E("el-input");
|
|
1331
|
-
return x(), i("div",
|
|
1332
|
-
a("div",
|
|
1354
|
+
return x(), i("div", Et, [
|
|
1355
|
+
a("div", Dt, [o.filterable ? (x(), n(c, {
|
|
1333
1356
|
key: 0,
|
|
1334
1357
|
modelValue: l.value,
|
|
1335
1358
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
1336
1359
|
placeholder: o.placeholder ?? "请输入"
|
|
1337
1360
|
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), T(t.$slots, "plus", {}, void 0, !0)]),
|
|
1338
|
-
a("div",
|
|
1339
|
-
|
|
1361
|
+
a("div", Ot, [T(t.$slots, "handle", {}, void 0, !0)]),
|
|
1362
|
+
V((x(), i("ul", h({
|
|
1340
1363
|
class: "infinite-list",
|
|
1341
1364
|
"infinite-scroll-immediate": !1
|
|
1342
1365
|
}, t.$attrs), [(x(!0), i(e, null, w(d.value, (e, n) => (x(), i("li", {
|
|
@@ -1346,19 +1369,19 @@ var nt = { style: {
|
|
|
1346
1369
|
active: e === u.value
|
|
1347
1370
|
}),
|
|
1348
1371
|
onClick: (t) => f(e)
|
|
1349
|
-
}, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10,
|
|
1350
|
-
o.loading.value ? (x(), i("p",
|
|
1372
|
+
}, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, kt))), 128))], 16)), [[F(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1373
|
+
o.loading.value ? (x(), i("p", At, "loading...")) : r("", !0)
|
|
1351
1374
|
]);
|
|
1352
1375
|
};
|
|
1353
1376
|
}
|
|
1354
|
-
}),
|
|
1377
|
+
}), Mt = /* @__PURE__ */ U({ default: () => Nt }), Nt = /* @__PURE__ */ W(jt, [["__scopeId", "data-v-0ab5cd97"]]), Pt = {
|
|
1355
1378
|
key: 0,
|
|
1356
1379
|
style: {
|
|
1357
1380
|
padding: "10px 0px",
|
|
1358
1381
|
"margin-bottom": "10px",
|
|
1359
1382
|
"border-bottom": "1px solid #e5e5e5"
|
|
1360
1383
|
}
|
|
1361
|
-
},
|
|
1384
|
+
}, Ft = { key: 1 }, It = /* @__PURE__ */ u({
|
|
1362
1385
|
__name: "index",
|
|
1363
1386
|
props: {
|
|
1364
1387
|
data: {},
|
|
@@ -1376,23 +1399,23 @@ var nt = { style: {
|
|
|
1376
1399
|
return (o, s) => {
|
|
1377
1400
|
let c = E("el-descriptions-item"), u = E("el-descriptions");
|
|
1378
1401
|
return x(), i(e, null, [
|
|
1379
|
-
t.title ? (x(), i("h4",
|
|
1402
|
+
t.title ? (x(), i("h4", Pt, j(t.title), 1)) : r("", !0),
|
|
1380
1403
|
T(o.$slots, "title", {}, void 0, !0),
|
|
1381
1404
|
l(u, h({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1382
|
-
default:
|
|
1405
|
+
default: B(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
|
|
1383
1406
|
key: e.prop,
|
|
1384
1407
|
label: e.label,
|
|
1385
1408
|
span: e.span || 2
|
|
1386
1409
|
}, {
|
|
1387
|
-
default:
|
|
1410
|
+
default: B(() => [e.render ? (x(), n(O(F(Y)(e, t.data).component), h({
|
|
1388
1411
|
key: 0,
|
|
1389
1412
|
modelValue: t.data[e.prop],
|
|
1390
1413
|
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1391
|
-
}, { ref_for: !0 },
|
|
1414
|
+
}, { ref_for: !0 }, F(Y)(e, t.data).props, {
|
|
1392
1415
|
clearable: !0,
|
|
1393
1416
|
key: e.prop,
|
|
1394
1417
|
style: { display: "inline-block" }
|
|
1395
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span",
|
|
1418
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span", Ft, j(t.data[e.prop] || "-"), 1))]),
|
|
1396
1419
|
_: 2
|
|
1397
1420
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1398
1421
|
_: 1
|
|
@@ -1400,14 +1423,14 @@ var nt = { style: {
|
|
|
1400
1423
|
], 64);
|
|
1401
1424
|
};
|
|
1402
1425
|
}
|
|
1403
|
-
}),
|
|
1426
|
+
}), Lt = /* @__PURE__ */ U({ default: () => Rt }), Rt = /* @__PURE__ */ W(It, [["__scopeId", "data-v-f02c30f9"]]), zt = {
|
|
1404
1427
|
key: 0,
|
|
1405
1428
|
style: {
|
|
1406
1429
|
display: "flex",
|
|
1407
1430
|
"margin-top": "12px",
|
|
1408
1431
|
"justify-content": "end"
|
|
1409
1432
|
}
|
|
1410
|
-
},
|
|
1433
|
+
}, Bt = /* @__PURE__ */ u({
|
|
1411
1434
|
__name: "index",
|
|
1412
1435
|
props: {
|
|
1413
1436
|
visible: { type: Boolean },
|
|
@@ -1427,7 +1450,7 @@ var nt = { style: {
|
|
|
1427
1450
|
a("close"), a("update:visible", !1);
|
|
1428
1451
|
}
|
|
1429
1452
|
function d() {
|
|
1430
|
-
a("submit",
|
|
1453
|
+
a("submit", P(s?.value || {})), a("update:visible", !1);
|
|
1431
1454
|
}
|
|
1432
1455
|
return (e, t) => {
|
|
1433
1456
|
let a = E("el-button"), f = E("el-dialog");
|
|
@@ -1441,20 +1464,20 @@ var nt = { style: {
|
|
|
1441
1464
|
"onUpdate:modelValue": t[0] ||= (e) => !e && u(),
|
|
1442
1465
|
onClose: u
|
|
1443
1466
|
}), {
|
|
1444
|
-
default:
|
|
1467
|
+
default: B(() => [(x(), n(O(o.component), h({
|
|
1445
1468
|
ref_key: "slotRef",
|
|
1446
1469
|
ref: s
|
|
1447
1470
|
}, o.componentProps, {
|
|
1448
1471
|
onClose: u,
|
|
1449
1472
|
onSubmit: d
|
|
1450
|
-
}), null, 16)), o.disabled ? r("", !0) : (x(), i("div",
|
|
1451
|
-
default:
|
|
1473
|
+
}), null, 16)), o.disabled ? r("", !0) : (x(), i("div", zt, [l(a, { onClick: u }, {
|
|
1474
|
+
default: B(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1452
1475
|
_: 1
|
|
1453
1476
|
}), l(a, {
|
|
1454
1477
|
type: "primary",
|
|
1455
1478
|
onClick: d
|
|
1456
1479
|
}, {
|
|
1457
|
-
default:
|
|
1480
|
+
default: B(() => [...t[2] ||= [c("确定", -1)]]),
|
|
1458
1481
|
_: 1
|
|
1459
1482
|
})]))]),
|
|
1460
1483
|
_: 1
|
|
@@ -1465,11 +1488,11 @@ var nt = { style: {
|
|
|
1465
1488
|
]);
|
|
1466
1489
|
};
|
|
1467
1490
|
}
|
|
1468
|
-
}),
|
|
1469
|
-
function
|
|
1491
|
+
}), Vt = /* @__PURE__ */ U({ default: () => Ht }), Ht = Bt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1492
|
+
function Ut(e) {
|
|
1470
1493
|
return Array.from(new Set(e));
|
|
1471
1494
|
}
|
|
1472
|
-
function
|
|
1495
|
+
function Wt(e, t) {
|
|
1473
1496
|
let n = /* @__PURE__ */ new Set();
|
|
1474
1497
|
return e.filter((e) => {
|
|
1475
1498
|
let r = typeof t == "function" ? t(e) : e[t];
|
|
@@ -1478,7 +1501,7 @@ function Ut(e, t) {
|
|
|
1478
1501
|
}
|
|
1479
1502
|
//#endregion
|
|
1480
1503
|
//#region src/components/StaffSelect/default.vue
|
|
1481
|
-
var
|
|
1504
|
+
var Gt = /* @__PURE__ */ u({
|
|
1482
1505
|
__name: "default",
|
|
1483
1506
|
props: {
|
|
1484
1507
|
multiple: { type: Boolean },
|
|
@@ -1531,11 +1554,11 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1531
1554
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
1532
1555
|
"remote-method": m
|
|
1533
1556
|
}, t.$attrs), {
|
|
1534
|
-
prefix:
|
|
1535
|
-
default:
|
|
1557
|
+
prefix: B(() => [l(a, null, {
|
|
1558
|
+
default: B(() => [l(F(Ie))]),
|
|
1536
1559
|
_: 1
|
|
1537
1560
|
})]),
|
|
1538
|
-
default:
|
|
1561
|
+
default: B(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
|
|
1539
1562
|
key: `${e.employeeCode}-${e.employeeName}`,
|
|
1540
1563
|
label: e.label,
|
|
1541
1564
|
value: e.value
|
|
@@ -1544,26 +1567,26 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1544
1567
|
}, 16, ["modelValue"]);
|
|
1545
1568
|
};
|
|
1546
1569
|
}
|
|
1547
|
-
}),
|
|
1570
|
+
}), Kt = { style: {
|
|
1548
1571
|
display: "flex",
|
|
1549
1572
|
"max-width": "100%",
|
|
1550
1573
|
gap: "20px",
|
|
1551
1574
|
"overflow-y": "scroll",
|
|
1552
1575
|
height: "400px"
|
|
1553
|
-
} },
|
|
1576
|
+
} }, qt = { style: { flex: "1" } }, Jt = { style: { width: "320px" } }, Yt = { style: {
|
|
1554
1577
|
display: "flex",
|
|
1555
1578
|
"justify-content": "space-between",
|
|
1556
1579
|
"align-items": "center",
|
|
1557
1580
|
"margin-bottom": "8px",
|
|
1558
1581
|
height: "30px"
|
|
1559
|
-
} },
|
|
1582
|
+
} }, Xt = { key: 0 }, Zt = { style: {
|
|
1560
1583
|
"overflow-y": "auto",
|
|
1561
1584
|
height: "90%"
|
|
1562
|
-
} },
|
|
1585
|
+
} }, Qt = { style: {
|
|
1563
1586
|
display: "flex",
|
|
1564
1587
|
"justify-content": "end",
|
|
1565
1588
|
"align-items": "center"
|
|
1566
|
-
} },
|
|
1589
|
+
} }, $t = /* @__PURE__ */ W(/* @__PURE__ */ u({
|
|
1567
1590
|
__name: "dialog",
|
|
1568
1591
|
props: {
|
|
1569
1592
|
modelValue: {},
|
|
@@ -1577,7 +1600,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1577
1600
|
},
|
|
1578
1601
|
emits: ["update:modelValue", "change"],
|
|
1579
1602
|
setup(n, { expose: o, emit: s }) {
|
|
1580
|
-
let u = s, d =
|
|
1603
|
+
let u = s, d = I(), f = n, p = f.valueAt ?? "all", m = C(), _ = C(!1), v = new Headers({
|
|
1581
1604
|
"Content-Type": "application/json",
|
|
1582
1605
|
"X-Requested-With": "XMLHttpRequest",
|
|
1583
1606
|
token: localStorage.getItem("TOKEN") ?? "",
|
|
@@ -1589,9 +1612,9 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1589
1612
|
filterText: "",
|
|
1590
1613
|
requiredVisible: !1
|
|
1591
1614
|
}), b = C([]), T = C([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
|
|
1592
|
-
|
|
1593
|
-
T.value =
|
|
1594
|
-
}),
|
|
1615
|
+
z(() => {
|
|
1616
|
+
T.value = Ut(f.modelValue || []);
|
|
1617
|
+
}), z(() => {
|
|
1595
1618
|
_.value && k();
|
|
1596
1619
|
});
|
|
1597
1620
|
async function k() {
|
|
@@ -1620,7 +1643,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1620
1643
|
...e,
|
|
1621
1644
|
code: e.account
|
|
1622
1645
|
}));
|
|
1623
|
-
n ? e.data.children =
|
|
1646
|
+
n ? e.data.children = Wt([...r, ...e.data.children || []], "code") : e.children = Wt([...r, ...e.children || []], "code"), y.loading = !1;
|
|
1624
1647
|
}), t?.(e?.children || []));
|
|
1625
1648
|
}
|
|
1626
1649
|
function N(e, { data: t }) {
|
|
@@ -1628,9 +1651,9 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1628
1651
|
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
1629
1652
|
width: "14px",
|
|
1630
1653
|
height: "14px"
|
|
1631
|
-
} }, e(
|
|
1654
|
+
} }, e(Ie)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
1632
1655
|
}
|
|
1633
|
-
function
|
|
1656
|
+
function P(e) {
|
|
1634
1657
|
if (T.value = T.value.filter((t) => t !== e), m.value) {
|
|
1635
1658
|
let t = e.match(/\((.*?)\)/)?.[1];
|
|
1636
1659
|
g(() => {
|
|
@@ -1638,7 +1661,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1638
1661
|
});
|
|
1639
1662
|
}
|
|
1640
1663
|
}
|
|
1641
|
-
async function
|
|
1664
|
+
async function ee() {
|
|
1642
1665
|
if (!y.filterText?.trim()) return y.searchData = [];
|
|
1643
1666
|
let e = await A({
|
|
1644
1667
|
page: 1,
|
|
@@ -1653,9 +1676,9 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1653
1676
|
}
|
|
1654
1677
|
function L(e, t) {
|
|
1655
1678
|
let n = t?.checkedNodes?.map((e) => `${e.name}(${e.account ?? e.code})`);
|
|
1656
|
-
T.value =
|
|
1679
|
+
T.value = Ut([...T.value, ...n]);
|
|
1657
1680
|
}
|
|
1658
|
-
function
|
|
1681
|
+
function R() {
|
|
1659
1682
|
let e = p === "all" ? T.value : T.value?.map((e) => {
|
|
1660
1683
|
let [t, n] = e.split("(");
|
|
1661
1684
|
return {
|
|
@@ -1709,13 +1732,13 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1709
1732
|
"close-on-click-modal": !1,
|
|
1710
1733
|
"destroy-on-close": ""
|
|
1711
1734
|
}, {
|
|
1712
|
-
default:
|
|
1735
|
+
default: B(() => [a("div", Kt, [a("div", qt, [l(s, {
|
|
1713
1736
|
placeholder: "请输入",
|
|
1714
1737
|
modelValue: y.filterText,
|
|
1715
1738
|
"onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
|
|
1716
1739
|
clearable: "",
|
|
1717
|
-
"prefix-icon":
|
|
1718
|
-
onKeydown: te(
|
|
1740
|
+
"prefix-icon": F(q),
|
|
1741
|
+
onKeydown: te(ee, ["enter"])
|
|
1719
1742
|
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
1720
1743
|
loading: y.loading,
|
|
1721
1744
|
data: D.value,
|
|
@@ -1731,30 +1754,30 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1731
1754
|
ref_key: "staffDialogRef",
|
|
1732
1755
|
ref: m,
|
|
1733
1756
|
"node-key": "code"
|
|
1734
|
-
}, null, 8, ["loading", "data"])]), a("div",
|
|
1757
|
+
}, null, 8, ["loading", "data"])]), a("div", Jt, [a("div", Yt, [n[4] ||= a("h3", null, "已选择", -1), T.value.length ? (x(), i("span", Xt, "已选择" + j(T.value.length) + "个用户", 1)) : r("", !0)]), a("div", Zt, [(x(!0), i(e, null, w(T.value, (e) => (x(), i("li", {
|
|
1735
1758
|
key: e,
|
|
1736
1759
|
class: "staff-item"
|
|
1737
1760
|
}, [a("span", null, j(e), 1), l(d, {
|
|
1738
1761
|
color: "red",
|
|
1739
|
-
onClick: ne((t) =>
|
|
1762
|
+
onClick: ne((t) => P(e), ["stop"])
|
|
1740
1763
|
}, {
|
|
1741
|
-
default:
|
|
1764
|
+
default: B(() => [l(F(Pe))]),
|
|
1742
1765
|
_: 1
|
|
1743
|
-
}, 8, ["onClick"])]))), 128))])])]), a("div",
|
|
1744
|
-
default:
|
|
1766
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", Qt, [l(p, { onClick: V }, {
|
|
1767
|
+
default: B(() => [...n[5] ||= [c("取消", -1)]]),
|
|
1745
1768
|
_: 1
|
|
1746
1769
|
}), l(p, {
|
|
1747
1770
|
type: "primary",
|
|
1748
|
-
onClick:
|
|
1771
|
+
onClick: R
|
|
1749
1772
|
}, {
|
|
1750
|
-
default:
|
|
1773
|
+
default: B(() => [...n[6] ||= [c("确定", -1)]]),
|
|
1751
1774
|
_: 1
|
|
1752
1775
|
})])]),
|
|
1753
1776
|
_: 1
|
|
1754
1777
|
}, 8, ["modelValue"])], 64);
|
|
1755
1778
|
};
|
|
1756
1779
|
}
|
|
1757
|
-
}), [["__scopeId", "data-v-6c972882"]]),
|
|
1780
|
+
}), [["__scopeId", "data-v-6c972882"]]), en = /* @__PURE__ */ u({
|
|
1758
1781
|
__name: "index",
|
|
1759
1782
|
props: {
|
|
1760
1783
|
multiple: { type: Boolean },
|
|
@@ -1765,7 +1788,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1765
1788
|
},
|
|
1766
1789
|
setup(e, { expose: t }) {
|
|
1767
1790
|
let r = e, i = C();
|
|
1768
|
-
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ?
|
|
1791
|
+
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? $t : Gt), h({
|
|
1769
1792
|
ref_key: "staffSelectRef",
|
|
1770
1793
|
ref: i
|
|
1771
1794
|
}, {
|
|
@@ -1773,7 +1796,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1773
1796
|
...r
|
|
1774
1797
|
}), null, 16));
|
|
1775
1798
|
}
|
|
1776
|
-
}),
|
|
1799
|
+
}), tn = /* @__PURE__ */ U({ default: () => nn }), nn = en, rn = /* @__PURE__ */ W(/* @__PURE__ */ u({
|
|
1777
1800
|
__name: "file",
|
|
1778
1801
|
props: {
|
|
1779
1802
|
icon: {},
|
|
@@ -1789,31 +1812,31 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1789
1812
|
},
|
|
1790
1813
|
emits: ["change"],
|
|
1791
1814
|
setup(e, { emit: r }) {
|
|
1792
|
-
let i = e, { text: a = "选择文件", icon: o = void 0, size: u = "default" } = i, d = i, f =
|
|
1815
|
+
let i = e, { text: a = "选择文件", icon: o = void 0, size: u = "default" } = i, d = i, f = I(), p = f.disabled, m = t(() => d.limit && f.count < d?.limit), g = t(() => d.limit && f.count >= d?.limit), _ = t(() => d.limit === void 0 ? !1 : !m.value);
|
|
1793
1816
|
return (e, t) => {
|
|
1794
1817
|
let r = E("el-button"), i = E("el-upload");
|
|
1795
1818
|
return x(), n(i, h(e.$attrs, {
|
|
1796
1819
|
style: { width: "100%" },
|
|
1797
|
-
action:
|
|
1798
|
-
"file-list":
|
|
1799
|
-
limit:
|
|
1820
|
+
action: F(d).action,
|
|
1821
|
+
"file-list": F(d).fileList,
|
|
1822
|
+
limit: F(d).limit,
|
|
1800
1823
|
class: {
|
|
1801
1824
|
"hide-upload-list": m.value,
|
|
1802
1825
|
"hide-upload-text": g.value
|
|
1803
1826
|
}
|
|
1804
1827
|
}), s({
|
|
1805
|
-
default:
|
|
1828
|
+
default: B(() => [T(e.$slots, "tip", {}, void 0, !0)]),
|
|
1806
1829
|
_: 2
|
|
1807
1830
|
}, [_.value ? void 0 : {
|
|
1808
1831
|
name: "trigger",
|
|
1809
|
-
fn:
|
|
1832
|
+
fn: B(() => [l(r, {
|
|
1810
1833
|
type: "primary",
|
|
1811
1834
|
plain: "",
|
|
1812
|
-
icon:
|
|
1813
|
-
size:
|
|
1814
|
-
disabled:
|
|
1835
|
+
icon: F(o),
|
|
1836
|
+
size: F(u),
|
|
1837
|
+
disabled: F(p)
|
|
1815
1838
|
}, {
|
|
1816
|
-
default:
|
|
1839
|
+
default: B(() => [c(j(F(a)), 1)]),
|
|
1817
1840
|
_: 1
|
|
1818
1841
|
}, 8, [
|
|
1819
1842
|
"icon",
|
|
@@ -1829,7 +1852,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1829
1852
|
]);
|
|
1830
1853
|
};
|
|
1831
1854
|
}
|
|
1832
|
-
}), [["__scopeId", "data-v-ee74ad23"]]),
|
|
1855
|
+
}), [["__scopeId", "data-v-ee74ad23"]]), an = ["src"], on = /* @__PURE__ */ u({
|
|
1833
1856
|
__name: "image",
|
|
1834
1857
|
props: {
|
|
1835
1858
|
icon: {},
|
|
@@ -1858,8 +1881,8 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1858
1881
|
"list-type": "picture-card",
|
|
1859
1882
|
"on-preview": s
|
|
1860
1883
|
}), {
|
|
1861
|
-
default:
|
|
1862
|
-
default:
|
|
1884
|
+
default: B(() => [l(u, null, {
|
|
1885
|
+
default: B(() => [l(F(Re))]),
|
|
1863
1886
|
_: 1
|
|
1864
1887
|
})]),
|
|
1865
1888
|
_: 1
|
|
@@ -1867,16 +1890,16 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1867
1890
|
modelValue: o.value,
|
|
1868
1891
|
"onUpdate:modelValue": c[0] ||= (e) => o.value = e
|
|
1869
1892
|
}, {
|
|
1870
|
-
default:
|
|
1893
|
+
default: B(() => [a("img", {
|
|
1871
1894
|
"w-full": "",
|
|
1872
1895
|
src: r.value.url,
|
|
1873
1896
|
alt: "预览"
|
|
1874
|
-
}, null, 8,
|
|
1897
|
+
}, null, 8, an)]),
|
|
1875
1898
|
_: 1
|
|
1876
1899
|
}, 8, ["modelValue"])], 64);
|
|
1877
1900
|
};
|
|
1878
1901
|
}
|
|
1879
|
-
}),
|
|
1902
|
+
}), sn = /* @__PURE__ */ u({
|
|
1880
1903
|
__name: "index",
|
|
1881
1904
|
props: {
|
|
1882
1905
|
icon: {},
|
|
@@ -1908,12 +1931,9 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1908
1931
|
"limit",
|
|
1909
1932
|
"action"
|
|
1910
1933
|
]), s = Z + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
|
|
1911
|
-
get: () =>
|
|
1934
|
+
get: () => e.fileList || [],
|
|
1912
1935
|
set: (e) => i("update:fileList", e)
|
|
1913
1936
|
});
|
|
1914
|
-
y(async () => {
|
|
1915
|
-
u.value = N(e.fileList)?.length || 0;
|
|
1916
|
-
});
|
|
1917
1937
|
function p(t, n) {
|
|
1918
1938
|
let r = Array.isArray(n) ? n : [];
|
|
1919
1939
|
e.onChange?.(r, t), f.value = r, i("update:modelValue", r), i("change", r), u.value = r.length;
|
|
@@ -1922,10 +1942,10 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1922
1942
|
e.limit && G.Message.warning(`最多只能上传 ${e.limit} 个文件`);
|
|
1923
1943
|
}
|
|
1924
1944
|
function g(e, t) {
|
|
1925
|
-
i("update:modelValue",
|
|
1945
|
+
f.value = t, i("update:modelValue", t), i("remove", t), u.value = t.length;
|
|
1926
1946
|
}
|
|
1927
1947
|
function _(e, t) {
|
|
1928
|
-
let n =
|
|
1948
|
+
let n = f.value;
|
|
1929
1949
|
if (e?.code !== "ok") return G.Message.error(e?.message);
|
|
1930
1950
|
let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
|
|
1931
1951
|
n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
|
|
@@ -1935,16 +1955,16 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1935
1955
|
status: "success",
|
|
1936
1956
|
...e.data,
|
|
1937
1957
|
url: r
|
|
1938
|
-
}), f.value = [...n], i("update:modelValue",
|
|
1958
|
+
}), f.value = [...n], i("update:modelValue", f.value), i("success", f.value), u.value = n.length;
|
|
1939
1959
|
}
|
|
1940
1960
|
function v(e, t, n) {
|
|
1941
|
-
i("update:modelValue", n);
|
|
1961
|
+
f.value = n, i("update:modelValue", n);
|
|
1942
1962
|
}
|
|
1943
|
-
return (t, r) => (x(), n(O(e.type === "image" ?
|
|
1963
|
+
return (t, r) => (x(), n(O(e.type === "image" ? on : rn), h({
|
|
1944
1964
|
ref_key: "uploadInstance",
|
|
1945
1965
|
ref: l,
|
|
1946
1966
|
name: "file",
|
|
1947
|
-
action:
|
|
1967
|
+
action: F(c),
|
|
1948
1968
|
headers: d,
|
|
1949
1969
|
"on-change": p,
|
|
1950
1970
|
"on-exceed": m,
|
|
@@ -1961,7 +1981,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1961
1981
|
"limit"
|
|
1962
1982
|
]));
|
|
1963
1983
|
}
|
|
1964
|
-
}),
|
|
1984
|
+
}), cn = /* @__PURE__ */ U({ default: () => ln }), ln = sn, un = {
|
|
1965
1985
|
mounted(e, t) {
|
|
1966
1986
|
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
1967
1987
|
e._stickyOriginalStyles = {
|
|
@@ -1986,15 +2006,15 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1986
2006
|
unmounted(e) {
|
|
1987
2007
|
e._stickyScrollListener && window.removeEventListener("scroll", e._stickyScrollListener), e._stickyOriginalStyles && (e.style.position = e._stickyOriginalStyles.position, e.style.top = e._stickyOriginalStyles.top, e.style.zIndex = e._stickyOriginalStyles.zIndex, e.style.width = e._stickyOriginalStyles.width);
|
|
1988
2008
|
}
|
|
1989
|
-
},
|
|
2009
|
+
}, dn = { mounted(e) {
|
|
1990
2010
|
e.style.boxShadow = "0px 0px 12px rgba(0, 0, 0, 0.12)", e.style.padding = "20px", e.style.borderRadius = "4px", e.style.border = "1px solid #e4e7ed", e.style.backgroundColor = "#fff";
|
|
1991
|
-
} },
|
|
1992
|
-
card: () =>
|
|
1993
|
-
sticky: () =>
|
|
2011
|
+
} }, fn = /* @__PURE__ */ U({
|
|
2012
|
+
card: () => dn,
|
|
2013
|
+
sticky: () => un
|
|
1994
2014
|
});
|
|
1995
2015
|
//#endregion
|
|
1996
2016
|
//#region src/hooks/useFetch.ts
|
|
1997
|
-
function
|
|
2017
|
+
function pn(e, t = {}) {
|
|
1998
2018
|
let { immediate: n = !0, method: r = "GET", onBefore: i, onSuccess: a, onError: o, onFinally: s, ...c } = t, l = localStorage.getItem("TOKEN"), u = {
|
|
1999
2019
|
method: r,
|
|
2000
2020
|
headers: new Headers({
|
|
@@ -2023,8 +2043,8 @@ function fn(e, t = {}) {
|
|
|
2023
2043
|
}
|
|
2024
2044
|
}
|
|
2025
2045
|
let y = null;
|
|
2026
|
-
|
|
2027
|
-
Object.assign(h,
|
|
2046
|
+
z(() => {
|
|
2047
|
+
Object.assign(h, P(c.defaultParams) || {}), y && clearTimeout(y), y = setTimeout(() => {
|
|
2028
2048
|
let e = p(t.ready) ? t.ready.value : t.ready ?? !0;
|
|
2029
2049
|
n && e && !_ && g(() => v());
|
|
2030
2050
|
}, 10);
|
|
@@ -2044,7 +2064,7 @@ function fn(e, t = {}) {
|
|
|
2044
2064
|
}
|
|
2045
2065
|
//#endregion
|
|
2046
2066
|
//#region src/hooks/useTable/default.ts
|
|
2047
|
-
function
|
|
2067
|
+
function mn(e, t) {
|
|
2048
2068
|
let n = S({
|
|
2049
2069
|
ignoreAttrs: [
|
|
2050
2070
|
"tableName",
|
|
@@ -2068,15 +2088,15 @@ function pn(e, t) {
|
|
|
2068
2088
|
data: r,
|
|
2069
2089
|
pagination: i
|
|
2070
2090
|
};
|
|
2071
|
-
let s =
|
|
2091
|
+
let s = pn(e, {
|
|
2072
2092
|
...t,
|
|
2073
2093
|
defaultParams: o,
|
|
2074
2094
|
onSuccess: (e) => {
|
|
2075
2095
|
t?.onSuccess?.(e), i.total = e[n?.replaceAttrs?.total] || 0, r.value = e[n?.replaceAttrs?.table] || [];
|
|
2076
2096
|
}
|
|
2077
2097
|
});
|
|
2078
|
-
|
|
2079
|
-
let e =
|
|
2098
|
+
z(() => {
|
|
2099
|
+
let e = P(t.defaultParams || {});
|
|
2080
2100
|
i.page = 1, i.pageSize = 10, Object.assign(o, {
|
|
2081
2101
|
...e,
|
|
2082
2102
|
page: 1,
|
|
@@ -2113,51 +2133,51 @@ function pn(e, t) {
|
|
|
2113
2133
|
}
|
|
2114
2134
|
//#endregion
|
|
2115
2135
|
//#region src/utils/request.ts
|
|
2116
|
-
var
|
|
2136
|
+
var hn = new Headers({
|
|
2117
2137
|
"Content-Type": "application/json",
|
|
2118
2138
|
token: localStorage.getItem("TOKEN") || ""
|
|
2119
2139
|
});
|
|
2120
|
-
async function
|
|
2140
|
+
async function gn(e, t) {
|
|
2121
2141
|
let n = `${Z}${e}`;
|
|
2122
2142
|
if (t) {
|
|
2123
2143
|
let e = new URLSearchParams(t).toString();
|
|
2124
2144
|
e && (n = `${n}?${e}`);
|
|
2125
2145
|
}
|
|
2126
2146
|
return (await fetch(n, {
|
|
2127
|
-
headers:
|
|
2147
|
+
headers: hn,
|
|
2128
2148
|
method: "GET"
|
|
2129
2149
|
})).json();
|
|
2130
2150
|
}
|
|
2131
|
-
async function
|
|
2151
|
+
async function _n(e, t) {
|
|
2132
2152
|
return (await fetch(`${Z}${e}`, {
|
|
2133
|
-
headers:
|
|
2153
|
+
headers: hn,
|
|
2134
2154
|
method: "POST",
|
|
2135
2155
|
body: JSON.stringify(t)
|
|
2136
2156
|
})).json();
|
|
2137
2157
|
}
|
|
2138
|
-
async function
|
|
2158
|
+
async function vn(e, t) {
|
|
2139
2159
|
return (await fetch(`${Z}${e}`, {
|
|
2140
|
-
headers:
|
|
2160
|
+
headers: hn,
|
|
2141
2161
|
method: "POST",
|
|
2142
2162
|
body: JSON.stringify(t)
|
|
2143
2163
|
})).blob();
|
|
2144
2164
|
}
|
|
2145
2165
|
var Q = {
|
|
2146
|
-
get:
|
|
2147
|
-
post:
|
|
2148
|
-
blob:
|
|
2166
|
+
get: gn,
|
|
2167
|
+
post: _n,
|
|
2168
|
+
blob: vn
|
|
2149
2169
|
};
|
|
2150
2170
|
//#endregion
|
|
2151
2171
|
//#region src/hooks/useTable/common.ts
|
|
2152
|
-
function
|
|
2153
|
-
let { defaultParams: r, ...i } = n, a = p(r) ? r : C(r || {}), o =
|
|
2172
|
+
function yn(e, n) {
|
|
2173
|
+
let { defaultParams: r, ...i } = n, a = p(r) ? r : C(r || {}), o = mn(e, {
|
|
2154
2174
|
...i,
|
|
2155
2175
|
ready: t(() => {
|
|
2156
2176
|
let e = p(n.ready) ? n.ready.value : n.ready, t = !!a.value?.tableId;
|
|
2157
2177
|
return (e === void 0 || e) && t;
|
|
2158
2178
|
}),
|
|
2159
2179
|
defaultParams: t(() => {
|
|
2160
|
-
let { tableId: e, page: t, pageSize: n, sort: r, ...i } =
|
|
2180
|
+
let { tableId: e, page: t, pageSize: n, sort: r, ...i } = P(a) || {};
|
|
2161
2181
|
return {
|
|
2162
2182
|
tableId: e,
|
|
2163
2183
|
page: t || 1,
|
|
@@ -2181,28 +2201,28 @@ function vn(e, n) {
|
|
|
2181
2201
|
});
|
|
2182
2202
|
}
|
|
2183
2203
|
async function c(e) {
|
|
2184
|
-
let t =
|
|
2204
|
+
let t = P(a);
|
|
2185
2205
|
return Q.post("/common/insert", {
|
|
2186
2206
|
params: { ...e },
|
|
2187
2207
|
tableId: t?.tableId
|
|
2188
2208
|
});
|
|
2189
2209
|
}
|
|
2190
2210
|
async function l(e) {
|
|
2191
|
-
let t =
|
|
2211
|
+
let t = P(a);
|
|
2192
2212
|
return Q.post("/common/update", {
|
|
2193
2213
|
params: { ...e },
|
|
2194
2214
|
tableId: t?.tableId
|
|
2195
2215
|
});
|
|
2196
2216
|
}
|
|
2197
2217
|
async function u(e) {
|
|
2198
|
-
let t =
|
|
2218
|
+
let t = P(a);
|
|
2199
2219
|
return Q.post("/common/delete", {
|
|
2200
2220
|
idList: e,
|
|
2201
2221
|
tableId: t?.tableId
|
|
2202
2222
|
});
|
|
2203
2223
|
}
|
|
2204
2224
|
async function d(t) {
|
|
2205
|
-
let { title: n = "export" } = t || {}, r =
|
|
2225
|
+
let { title: n = "export" } = t || {}, r = P(a), i = await Q.blob(e ?? "/common/exportExcel", {
|
|
2206
2226
|
tableId: r?.tableId,
|
|
2207
2227
|
type: "all"
|
|
2208
2228
|
}), o = new Blob([i]), s = document.createElement("a");
|
|
@@ -2217,55 +2237,55 @@ function vn(e, n) {
|
|
|
2217
2237
|
delete: u,
|
|
2218
2238
|
exportData: d
|
|
2219
2239
|
});
|
|
2220
|
-
return
|
|
2240
|
+
return z(() => {
|
|
2221
2241
|
Object.assign(f, o, { reset: s });
|
|
2222
2242
|
}), f;
|
|
2223
2243
|
}
|
|
2224
2244
|
//#endregion
|
|
2225
2245
|
//#region src/hooks/useTable/index.ts
|
|
2226
|
-
function
|
|
2227
|
-
return e?.includes("/common/pageQuery") ?
|
|
2246
|
+
function bn(e, t) {
|
|
2247
|
+
return e?.includes("/common/pageQuery") ? yn(e, t) : mn(e, t);
|
|
2228
2248
|
}
|
|
2229
2249
|
//#endregion
|
|
2230
2250
|
//#region src/hooks/index.ts
|
|
2231
|
-
var
|
|
2232
|
-
useFetch: () =>
|
|
2233
|
-
useTable: () =>
|
|
2234
|
-
}),
|
|
2235
|
-
UiCard:
|
|
2236
|
-
UiTable:
|
|
2237
|
-
UiFilter:
|
|
2238
|
-
UiForm:
|
|
2239
|
-
UiEditor:
|
|
2240
|
-
UiTree:
|
|
2241
|
-
UiInfiniteScroll:
|
|
2242
|
-
UiDescriptions:
|
|
2243
|
-
UiDialog:
|
|
2244
|
-
UiStaffSelect:
|
|
2245
|
-
UiUpload:
|
|
2246
|
-
},
|
|
2247
|
-
function
|
|
2248
|
-
|
|
2251
|
+
var xn = /* @__PURE__ */ U({
|
|
2252
|
+
useFetch: () => pn,
|
|
2253
|
+
useTable: () => bn
|
|
2254
|
+
}), Sn = "Yc", Cn = {
|
|
2255
|
+
UiCard: oe,
|
|
2256
|
+
UiTable: Oe,
|
|
2257
|
+
UiFilter: at,
|
|
2258
|
+
UiForm: dt,
|
|
2259
|
+
UiEditor: ht,
|
|
2260
|
+
UiTree: wt,
|
|
2261
|
+
UiInfiniteScroll: Mt,
|
|
2262
|
+
UiDescriptions: Lt,
|
|
2263
|
+
UiDialog: Vt,
|
|
2264
|
+
UiStaffSelect: tn,
|
|
2265
|
+
UiUpload: cn
|
|
2266
|
+
}, wn = null;
|
|
2267
|
+
function Tn(e) {
|
|
2268
|
+
wn = e;
|
|
2249
2269
|
}
|
|
2250
2270
|
function $() {
|
|
2251
|
-
return
|
|
2271
|
+
return wn;
|
|
2252
2272
|
}
|
|
2253
|
-
var
|
|
2254
|
-
t?.elementPlus && t.elementPlus.install(e),
|
|
2273
|
+
var En = { install(e, t) {
|
|
2274
|
+
t?.elementPlus && t.elementPlus.install(e), wn ||= {
|
|
2255
2275
|
...e,
|
|
2256
2276
|
h: f
|
|
2257
2277
|
};
|
|
2258
|
-
for (let [t, n] of Object.entries(
|
|
2278
|
+
for (let [t, n] of Object.entries(Cn)) {
|
|
2259
2279
|
let r = n?.default || n;
|
|
2260
2280
|
if (r && (typeof r == "function" || typeof r == "object")) {
|
|
2261
|
-
let n = t.replace(/^Ui/,
|
|
2281
|
+
let n = t.replace(/^Ui/, Sn);
|
|
2262
2282
|
e.component(n, r);
|
|
2263
2283
|
let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2264
2284
|
i !== n && e.component(i, r);
|
|
2265
2285
|
}
|
|
2266
2286
|
}
|
|
2267
|
-
for (let [t, n] of Object.entries(
|
|
2268
|
-
for (let [t, n] of Object.entries(
|
|
2287
|
+
for (let [t, n] of Object.entries(et)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
|
|
2288
|
+
for (let [t, n] of Object.entries(fn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
2269
2289
|
} };
|
|
2270
2290
|
//#endregion
|
|
2271
|
-
export {
|
|
2291
|
+
export { oe as _, bn as a, tn as c, Mt as d, wt as f, Oe as g, at as h, xn as i, Vt as l, dt as m, Tn as n, pn as o, ht as p, En as r, cn as s, $ as t, Lt as u };
|