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