yc-vep-ui 0.2.2 → 0.2.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/components/Form/index.vue.d.ts +5 -4
- package/dist/components/Form/type.d.ts +2 -0
- package/dist/directives/card/index.d.ts +2 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/directives/sticky/index.d.ts +17 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useFetch.d.ts +37 -0
- package/dist/hooks/useTable/common.d.ts +3 -0
- package/dist/hooks/useTable/default.d.ts +4 -0
- package/dist/hooks/useTable/index.d.ts +3 -0
- package/dist/index.css +7 -13
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/request.d.ts +9 -0
- package/dist/vep-ui.es.js +285 -310
- package/dist/vep-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/vep-ui.es.js
CHANGED
|
@@ -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, toValue as N, unref as P, useAttrs as F, useCssVars as ee, useModel as
|
|
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, 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
|
+
import { AiEditor as ne } from "aieditor";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var H = Object.defineProperty, U = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) H(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
10
|
+
return t || H(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, re = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, ie = /* @__PURE__ */ u({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
14
14
|
title: {},
|
|
@@ -29,23 +29,23 @@ var z = Object.defineProperty, B = (e, t) => {
|
|
|
29
29
|
"ui-card": !0,
|
|
30
30
|
hideBorder: e.hideBorder
|
|
31
31
|
} }), s({
|
|
32
|
-
default:
|
|
32
|
+
default: z(() => [a("div", re, [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
|
+
}), W = (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
|
+
}, ae = /* @__PURE__ */ U({ default: () => oe }), oe = /* @__PURE__ */ W(ie, [["__scopeId", "data-v-6ebb01d7"]]), G = {
|
|
49
49
|
get Button() {
|
|
50
50
|
return $()?.resolveComponent?.("el-button") || "el-button";
|
|
51
51
|
},
|
|
@@ -140,14 +140,14 @@ var z = Object.defineProperty, B = (e, t) => {
|
|
|
140
140
|
};
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/components/utils/render.ts
|
|
143
|
-
function
|
|
143
|
+
function K() {
|
|
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 se(e) {
|
|
150
|
+
let t = K();
|
|
151
151
|
return t ? t("div", { style: {
|
|
152
152
|
display: "flex",
|
|
153
153
|
flexDirection: "row",
|
|
@@ -155,7 +155,7 @@ function ue(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(G.Button, {
|
|
159
159
|
...r,
|
|
160
160
|
link: !0,
|
|
161
161
|
size: "small",
|
|
@@ -163,54 +163,54 @@ function ue(e) {
|
|
|
163
163
|
}, () => n);
|
|
164
164
|
})) : null;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
let t =
|
|
166
|
+
function ce(e) {
|
|
167
|
+
let t = K();
|
|
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(G.Link, {
|
|
174
174
|
...e,
|
|
175
175
|
type: e.type || "primary"
|
|
176
|
-
}, () => t(
|
|
176
|
+
}, () => t(G.Text, {
|
|
177
177
|
lineClamp: e?.lineClamp,
|
|
178
178
|
type: e.type || "primary"
|
|
179
|
-
}, () => e.prop)))) : t(
|
|
179
|
+
}, () => e.prop)))) : t(G.Link, {
|
|
180
180
|
...e,
|
|
181
181
|
type: e.type || "primary"
|
|
182
|
-
}, () => t(
|
|
182
|
+
}, () => t(G.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 le(e) {
|
|
188
|
+
let t = K();
|
|
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(G.Tag, e, () => n))) : null;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
let t =
|
|
198
|
-
return t ? t(
|
|
196
|
+
function ue(e) {
|
|
197
|
+
let t = K();
|
|
198
|
+
return t ? t(G.Tag, { ...e }) : null;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
let t =
|
|
202
|
-
return t ? t(
|
|
200
|
+
function de(e) {
|
|
201
|
+
let t = K();
|
|
202
|
+
return t ? t(G.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 fe(e) {
|
|
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";
|
|
213
|
-
return t(
|
|
213
|
+
return t(G.DatePicker, {
|
|
214
214
|
format: n,
|
|
215
215
|
valueFormat: n,
|
|
216
216
|
startPlaceholder: "开始时间",
|
|
@@ -220,11 +220,11 @@ function he(e) {
|
|
|
220
220
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
let t =
|
|
223
|
+
function pe(e) {
|
|
224
|
+
let t = K();
|
|
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(G.TimeSelect, {
|
|
228
228
|
start: n,
|
|
229
229
|
end: r,
|
|
230
230
|
...i,
|
|
@@ -232,21 +232,21 @@ function ge(e) {
|
|
|
232
232
|
filterable: !0
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t =
|
|
237
|
-
return t ? t(
|
|
235
|
+
function me(e) {
|
|
236
|
+
let t = K();
|
|
237
|
+
return t ? t(G.Input, {
|
|
238
238
|
...e,
|
|
239
239
|
placeholder: "请输入"
|
|
240
240
|
}) : null;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
let t =
|
|
242
|
+
function he(e) {
|
|
243
|
+
let t = K();
|
|
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(G.InputNumber, {
|
|
250
250
|
align: n,
|
|
251
251
|
style: a,
|
|
252
252
|
controlsPosition: r,
|
|
@@ -254,71 +254,71 @@ function ve(e) {
|
|
|
254
254
|
...i
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
let t =
|
|
257
|
+
function ge(e) {
|
|
258
|
+
let t = K();
|
|
259
259
|
if (!t) return null;
|
|
260
260
|
let { rows: n = 1, ...r } = e;
|
|
261
|
-
return t(
|
|
261
|
+
return t(G.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 _e(e) {
|
|
269
|
+
let t = K();
|
|
270
|
+
return t ? t(G.InputTag, {
|
|
271
271
|
placeholder: "请输入",
|
|
272
272
|
...e,
|
|
273
273
|
clearable: !1
|
|
274
274
|
}) : null;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
let t =
|
|
276
|
+
function ve(e) {
|
|
277
|
+
let t = K();
|
|
278
278
|
return t ? t(ht || mt, e) : null;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
let t =
|
|
282
|
-
return t ? t(
|
|
280
|
+
function ye(e) {
|
|
281
|
+
let t = K();
|
|
282
|
+
return t ? t(G.RadioGroup, e) : null;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
let t =
|
|
286
|
-
return t ? t(
|
|
284
|
+
function be(e) {
|
|
285
|
+
let t = K();
|
|
286
|
+
return t ? t(G.Text, e, () => e.prop) : null;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
let t =
|
|
288
|
+
function xe(e) {
|
|
289
|
+
let t = K();
|
|
290
290
|
return t ? t(tn || en, {
|
|
291
291
|
placeholder: "请选择",
|
|
292
292
|
...e,
|
|
293
293
|
searchable: !0
|
|
294
294
|
}) : null;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
let t =
|
|
296
|
+
function Se(e) {
|
|
297
|
+
let t = K();
|
|
298
298
|
return t ? t(cn || sn, {
|
|
299
299
|
...e,
|
|
300
|
-
|
|
300
|
+
fileList: e.modelValue || e.fileList,
|
|
301
301
|
"onUpdate:fileList": (t, n) => e.onChange?.(n, t)
|
|
302
302
|
}) : null;
|
|
303
303
|
}
|
|
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
|
-
},
|
|
304
|
+
var q = {
|
|
305
|
+
button: se,
|
|
306
|
+
link: ce,
|
|
307
|
+
tag: le,
|
|
308
|
+
switch: ue,
|
|
309
|
+
select: de,
|
|
310
|
+
datePicker: fe,
|
|
311
|
+
timeSelect: pe,
|
|
312
|
+
input: me,
|
|
313
|
+
inputNumber: he,
|
|
314
|
+
textarea: ge,
|
|
315
|
+
inputTag: _e,
|
|
316
|
+
editor: ve,
|
|
317
|
+
radio: ye,
|
|
318
|
+
text: be,
|
|
319
|
+
staffSelect: xe,
|
|
320
|
+
upload: Se
|
|
321
|
+
}, Ce = /* @__PURE__ */ u({
|
|
322
322
|
name: "UiColumn",
|
|
323
323
|
__name: "UiColumn",
|
|
324
324
|
props: {
|
|
@@ -333,7 +333,7 @@ var W = {
|
|
|
333
333
|
let a = r, o = t;
|
|
334
334
|
function s(e, t, n) {
|
|
335
335
|
let r = {};
|
|
336
|
-
Object.keys(
|
|
336
|
+
Object.keys(q).forEach((i) => {
|
|
337
337
|
let o = i;
|
|
338
338
|
r[o] = (r) => {
|
|
339
339
|
let i = Array.isArray(r) ? r : {
|
|
@@ -345,7 +345,7 @@ var W = {
|
|
|
345
345
|
onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
|
|
346
346
|
onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
|
|
347
347
|
};
|
|
348
|
-
return
|
|
348
|
+
return q[o](i);
|
|
349
349
|
};
|
|
350
350
|
});
|
|
351
351
|
let i = n.render ? n.render({
|
|
@@ -363,7 +363,7 @@ var W = {
|
|
|
363
363
|
label: t.column.label,
|
|
364
364
|
align: o.align
|
|
365
365
|
}, {
|
|
366
|
-
default:
|
|
366
|
+
default: z(() => [(x(!0), i(e, null, w(t.column.children, (e) => (x(), n(l, h({
|
|
367
367
|
column: e,
|
|
368
368
|
data: o.data
|
|
369
369
|
}, { ref_for: !0 }, r.$attrs, { align: o.align }), null, 16, [
|
|
@@ -381,7 +381,7 @@ var W = {
|
|
|
381
381
|
width: t.column.width,
|
|
382
382
|
"show-overflow-tooltip": t.column.showOverflowTooltip
|
|
383
383
|
}, {
|
|
384
|
-
default:
|
|
384
|
+
default: z(({ row: e, $index: r }) => [t.column.render ? (x(), n(O(s(e, r, t.column)), {
|
|
385
385
|
key: 0,
|
|
386
386
|
align: o.align,
|
|
387
387
|
size: o.size
|
|
@@ -389,7 +389,7 @@ var W = {
|
|
|
389
389
|
key: 1,
|
|
390
390
|
"line-clamp": t.column?.lineClamp || 2
|
|
391
391
|
}, {
|
|
392
|
-
default:
|
|
392
|
+
default: z(() => [c(j(e[t.column.prop]), 1)]),
|
|
393
393
|
_: 2
|
|
394
394
|
}, 1032, ["line-clamp"]))]),
|
|
395
395
|
_: 1
|
|
@@ -403,7 +403,7 @@ var W = {
|
|
|
403
403
|
]));
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), we = /* @__PURE__ */ u({
|
|
407
407
|
__name: "index",
|
|
408
408
|
props: {
|
|
409
409
|
loading: {
|
|
@@ -449,7 +449,7 @@ var W = {
|
|
|
449
449
|
"data",
|
|
450
450
|
"size"
|
|
451
451
|
]), 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"));
|
|
452
|
-
|
|
452
|
+
L(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
|
|
453
453
|
!e?.length || !t?.length || g(() => {
|
|
454
454
|
if (!u.value) return;
|
|
455
455
|
let n = t.filter((t) => e.includes(t.id));
|
|
@@ -468,7 +468,7 @@ var W = {
|
|
|
468
468
|
return (t, o) => {
|
|
469
469
|
let s = E("el-table-column"), c = E("el-table"), g = E("el-pagination"), v = D("loading");
|
|
470
470
|
return x(), i("div", null, [
|
|
471
|
-
|
|
471
|
+
B((x(), n(c, h({ border: a.border }, t.$attrs, {
|
|
472
472
|
data: a.data,
|
|
473
473
|
lazy: !0,
|
|
474
474
|
class: "ui-table",
|
|
@@ -476,7 +476,7 @@ var W = {
|
|
|
476
476
|
ref_key: "tableRef",
|
|
477
477
|
ref: u
|
|
478
478
|
}), {
|
|
479
|
-
default:
|
|
479
|
+
default: z(() => [
|
|
480
480
|
f.value ? (x(), n(s, {
|
|
481
481
|
key: 0,
|
|
482
482
|
type: "selection",
|
|
@@ -494,7 +494,7 @@ var W = {
|
|
|
494
494
|
"column-key": "index_1",
|
|
495
495
|
align: a.align
|
|
496
496
|
}, null, 8, ["align"])) : r("", !0),
|
|
497
|
-
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(
|
|
497
|
+
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(Ce, {
|
|
498
498
|
key: t + "column_" + e?.prop?.toString(),
|
|
499
499
|
column: e,
|
|
500
500
|
data: a.data,
|
|
@@ -538,7 +538,7 @@ var W = {
|
|
|
538
538
|
]);
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
}),
|
|
541
|
+
}), Te = /* @__PURE__ */ U({ default: () => Ee }), Ee = /* @__PURE__ */ W(we, [["__scopeId", "data-v-adf869c1"]]), De = ["src"], Oe = /* @__PURE__ */ u({
|
|
542
542
|
__name: "Icon",
|
|
543
543
|
props: {
|
|
544
544
|
name: {},
|
|
@@ -556,9 +556,9 @@ var W = {
|
|
|
556
556
|
width: e.size,
|
|
557
557
|
height: e.size
|
|
558
558
|
})
|
|
559
|
-
}, null, 12,
|
|
559
|
+
}, null, 12, De)) : r("", !0);
|
|
560
560
|
}
|
|
561
|
-
}),
|
|
561
|
+
}), ke = {
|
|
562
562
|
style: {
|
|
563
563
|
width: "100%",
|
|
564
564
|
height: "100%"
|
|
@@ -569,30 +569,30 @@ var W = {
|
|
|
569
569
|
version: "1.1",
|
|
570
570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
571
|
"p-id": "8979"
|
|
572
|
-
},
|
|
572
|
+
}, Ae = /* @__PURE__ */ u({
|
|
573
573
|
__name: "Search",
|
|
574
574
|
setup(e) {
|
|
575
|
-
return (e, t) => (x(), i("svg",
|
|
575
|
+
return (e, t) => (x(), i("svg", ke, [...t[0] ||= [a("path", {
|
|
576
576
|
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
577
|
"p-id": "8980"
|
|
578
578
|
}, null, -1)]]));
|
|
579
579
|
}
|
|
580
|
-
}),
|
|
580
|
+
}), je = {
|
|
581
581
|
style: {
|
|
582
582
|
width: "100%",
|
|
583
583
|
height: "100%"
|
|
584
584
|
},
|
|
585
585
|
viewBox: "0 0 1024 1024",
|
|
586
586
|
xmlns: "http://www.w3.org/2000/svg"
|
|
587
|
-
},
|
|
587
|
+
}, Me = /* @__PURE__ */ u({
|
|
588
588
|
__name: "CloseBold",
|
|
589
589
|
setup(e) {
|
|
590
|
-
return (e, t) => (x(), i("svg",
|
|
590
|
+
return (e, t) => (x(), i("svg", je, [...t[0] ||= [a("path", {
|
|
591
591
|
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
592
|
fill: "currentColor"
|
|
593
593
|
}, null, -1)]]));
|
|
594
594
|
}
|
|
595
|
-
}),
|
|
595
|
+
}), Ne = {
|
|
596
596
|
style: {
|
|
597
597
|
width: "100%",
|
|
598
598
|
height: "100%"
|
|
@@ -603,10 +603,10 @@ var W = {
|
|
|
603
603
|
version: "1.1",
|
|
604
604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
605
605
|
"p-id": "10092"
|
|
606
|
-
},
|
|
606
|
+
}, Pe = /* @__PURE__ */ u({
|
|
607
607
|
__name: "User",
|
|
608
608
|
setup(e) {
|
|
609
|
-
return (e, t) => (x(), i("svg",
|
|
609
|
+
return (e, t) => (x(), i("svg", Ne, [...t[0] ||= [a("path", {
|
|
610
610
|
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
611
|
fill: "#999999",
|
|
612
612
|
"p-id": "10093"
|
|
@@ -616,7 +616,7 @@ var W = {
|
|
|
616
616
|
"p-id": "10094"
|
|
617
617
|
}, null, -1)]]));
|
|
618
618
|
}
|
|
619
|
-
}),
|
|
619
|
+
}), Fe = {
|
|
620
620
|
style: {
|
|
621
621
|
width: "100%",
|
|
622
622
|
height: "100%"
|
|
@@ -627,16 +627,16 @@ var W = {
|
|
|
627
627
|
version: "1.1",
|
|
628
628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
629
|
"p-id": "11055"
|
|
630
|
-
},
|
|
630
|
+
}, Ie = /* @__PURE__ */ u({
|
|
631
631
|
__name: "Plus",
|
|
632
632
|
setup(e) {
|
|
633
|
-
return (e, t) => (x(), i("svg",
|
|
633
|
+
return (e, t) => (x(), i("svg", Fe, [...t[0] ||= [a("path", {
|
|
634
634
|
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
635
|
fill: "#323233",
|
|
636
636
|
"p-id": "11056"
|
|
637
637
|
}, null, -1)]]));
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), Le = {}, Re = {
|
|
640
640
|
style: {
|
|
641
641
|
width: "100%",
|
|
642
642
|
height: "100%"
|
|
@@ -648,14 +648,14 @@ var W = {
|
|
|
648
648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
649
649
|
"p-id": "4859"
|
|
650
650
|
};
|
|
651
|
-
function
|
|
652
|
-
return x(), i("svg",
|
|
651
|
+
function ze(e, t) {
|
|
652
|
+
return x(), i("svg", Re, [...t[0] ||= [a("path", {
|
|
653
653
|
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
654
|
fill: "#666666",
|
|
655
655
|
"p-id": "4860"
|
|
656
656
|
}, null, -1)]]);
|
|
657
657
|
}
|
|
658
|
-
var
|
|
658
|
+
var Be = /* @__PURE__ */ W(Le, [["render", ze]]), Ve = {}, He = {
|
|
659
659
|
style: {
|
|
660
660
|
width: "100%",
|
|
661
661
|
height: "100%"
|
|
@@ -667,13 +667,13 @@ var Ve = /* @__PURE__ */ V(Re, [["render", Be]]), He = {}, Ue = {
|
|
|
667
667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
668
668
|
"p-id": "6029"
|
|
669
669
|
};
|
|
670
|
-
function
|
|
671
|
-
return x(), i("svg",
|
|
670
|
+
function Ue(e, t) {
|
|
671
|
+
return x(), i("svg", He, [...t[0] ||= [a("path", {
|
|
672
672
|
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
673
|
"p-id": "6030"
|
|
674
674
|
}, null, -1)]]);
|
|
675
675
|
}
|
|
676
|
-
var
|
|
676
|
+
var We = /* @__PURE__ */ W(Ve, [["render", Ue]]), Ge = {}, Ke = {
|
|
677
677
|
style: {
|
|
678
678
|
width: "100%",
|
|
679
679
|
height: "100%"
|
|
@@ -685,8 +685,8 @@ var Ge = /* @__PURE__ */ V(He, [["render", We]]), Ke = {}, qe = {
|
|
|
685
685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
686
686
|
"p-id": "6997"
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
return x(), i("svg",
|
|
688
|
+
function qe(e, t) {
|
|
689
|
+
return x(), i("svg", Ke, [...t[0] ||= [a("path", {
|
|
690
690
|
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
691
|
"p-id": "6998"
|
|
692
692
|
}, null, -1), a("path", {
|
|
@@ -694,7 +694,7 @@ function Je(e, t) {
|
|
|
694
694
|
"p-id": "6999"
|
|
695
695
|
}, null, -1)]]);
|
|
696
696
|
}
|
|
697
|
-
var
|
|
697
|
+
var Je = /* @__PURE__ */ W(Ge, [["render", qe]]), Ye = {}, Xe = {
|
|
698
698
|
style: {
|
|
699
699
|
width: "100%",
|
|
700
700
|
height: "100%"
|
|
@@ -712,16 +712,16 @@ function Ze(e, t) {
|
|
|
712
712
|
"p-id": "9851"
|
|
713
713
|
}, null, -1)]]);
|
|
714
714
|
}
|
|
715
|
-
var Qe = /* @__PURE__ */
|
|
716
|
-
ArrowRight: () =>
|
|
717
|
-
ArrowUp: () =>
|
|
718
|
-
CloseBold: () =>
|
|
719
|
-
Plus: () =>
|
|
715
|
+
var Qe = /* @__PURE__ */ W(Ye, [["render", Ze]]), $e = /* @__PURE__ */ U({
|
|
716
|
+
ArrowRight: () => Be,
|
|
717
|
+
ArrowUp: () => We,
|
|
718
|
+
CloseBold: () => Me,
|
|
719
|
+
Plus: () => Ie,
|
|
720
720
|
Promotion: () => Qe,
|
|
721
|
-
Refresh: () =>
|
|
722
|
-
Search: () =>
|
|
723
|
-
User: () =>
|
|
724
|
-
YcIcon: () =>
|
|
721
|
+
Refresh: () => Je,
|
|
722
|
+
Search: () => Ae,
|
|
723
|
+
User: () => Pe,
|
|
724
|
+
YcIcon: () => Oe
|
|
725
725
|
});
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region src/components/utils/tools.ts
|
|
@@ -733,7 +733,7 @@ function tt(e) {
|
|
|
733
733
|
}
|
|
734
734
|
function J(e, t) {
|
|
735
735
|
let n = {};
|
|
736
|
-
return Object.keys(
|
|
736
|
+
return Object.keys(q).forEach((r) => {
|
|
737
737
|
let i = r;
|
|
738
738
|
n[i] = (n = {}) => ({
|
|
739
739
|
props: {
|
|
@@ -743,7 +743,7 @@ function J(e, t) {
|
|
|
743
743
|
onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
|
|
744
744
|
},
|
|
745
745
|
type: i,
|
|
746
|
-
component:
|
|
746
|
+
component: q[i]
|
|
747
747
|
});
|
|
748
748
|
}), ((n) => typeof e.render == "function" ? e.render({
|
|
749
749
|
h: n,
|
|
@@ -831,18 +831,18 @@ var nt = { style: {
|
|
|
831
831
|
class: "ui-filter",
|
|
832
832
|
size: s.size
|
|
833
833
|
}, t.$attrs), {
|
|
834
|
-
default:
|
|
834
|
+
default: z(() => [l(S, {
|
|
835
835
|
gutter: 20,
|
|
836
836
|
style: { "margin-bottom": "-15px" }
|
|
837
837
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
default:
|
|
838
|
+
default: z(() => [(x(!0), i(e, null, w(g.value, (e) => (x(), n(f, { span: e.span || 24 / s.column }, {
|
|
839
|
+
default: z(() => [(x(), n(d, {
|
|
840
840
|
key: e.prop,
|
|
841
841
|
label: e.label,
|
|
842
842
|
"label-width": P(et)(e?.labelWidth || s.labelWidth),
|
|
843
843
|
"value-width": P(tt)(e?.valueWidth || s.valueWidth)
|
|
844
844
|
}, {
|
|
845
|
-
default:
|
|
845
|
+
default: z(() => [e.render ? (x(), n(O(P(J)(e, m).component), h({
|
|
846
846
|
key: 0,
|
|
847
847
|
modelValue: m[e.prop],
|
|
848
848
|
"onUpdate:modelValue": (t) => m[e.prop] = t
|
|
@@ -876,34 +876,34 @@ var nt = { style: {
|
|
|
876
876
|
span: 24 / s.column,
|
|
877
877
|
offset: _.value
|
|
878
878
|
}, {
|
|
879
|
-
default:
|
|
879
|
+
default: z(() => [l(d, {
|
|
880
880
|
label: "",
|
|
881
881
|
"label-width": "30px"
|
|
882
882
|
}, {
|
|
883
|
-
default:
|
|
883
|
+
default: z(() => [a("div", nt, [
|
|
884
884
|
T(t.$slots, "left", { form: m }, void 0, !0),
|
|
885
885
|
s.fields.length >= 2 * s.column ? (x(), n(y, {
|
|
886
886
|
key: 0,
|
|
887
887
|
text: "",
|
|
888
|
-
icon: p.expand ? P(
|
|
888
|
+
icon: p.expand ? P(We) : P(Be),
|
|
889
889
|
onClick: o[0] ||= (e) => p.expand = !p.expand
|
|
890
890
|
}, {
|
|
891
|
-
default:
|
|
891
|
+
default: z(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
|
|
892
892
|
_: 1
|
|
893
893
|
}, 8, ["icon"])) : r("", !0),
|
|
894
894
|
l(y, {
|
|
895
|
-
icon: P(
|
|
895
|
+
icon: P(Ae),
|
|
896
896
|
type: "primary",
|
|
897
897
|
onClick: b
|
|
898
898
|
}, {
|
|
899
|
-
default:
|
|
899
|
+
default: z(() => [...o[1] ||= [c("查询", -1)]]),
|
|
900
900
|
_: 1
|
|
901
901
|
}, 8, ["icon"]),
|
|
902
902
|
l(y, {
|
|
903
|
-
icon: P(
|
|
903
|
+
icon: P(Je),
|
|
904
904
|
onClick: C
|
|
905
905
|
}, {
|
|
906
|
-
default:
|
|
906
|
+
default: z(() => [...o[2] ||= [c("重置", -1)]]),
|
|
907
907
|
_: 1
|
|
908
908
|
}, 8, ["icon"]),
|
|
909
909
|
T(t.$slots, "handle", { form: m }, void 0, !0),
|
|
@@ -919,7 +919,7 @@ var nt = { style: {
|
|
|
919
919
|
}, 16, ["model", "size"]);
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
|
-
}), it = /* @__PURE__ */
|
|
922
|
+
}), it = /* @__PURE__ */ U({ default: () => at }), at = /* @__PURE__ */ W(rt, [["__scopeId", "data-v-0e3c7086"]]), ot = {
|
|
923
923
|
key: 0,
|
|
924
924
|
style: { display: "inline-block" }
|
|
925
925
|
}, st = {
|
|
@@ -933,50 +933,36 @@ var nt = { style: {
|
|
|
933
933
|
props: {
|
|
934
934
|
fields: {},
|
|
935
935
|
expandNum: {},
|
|
936
|
-
valueWidth: {
|
|
937
|
-
labelWidth: {
|
|
938
|
-
labelPosition: {
|
|
939
|
-
omitFields: {
|
|
940
|
-
rules: {
|
|
936
|
+
valueWidth: {},
|
|
937
|
+
labelWidth: {},
|
|
938
|
+
labelPosition: {},
|
|
939
|
+
omitFields: {},
|
|
940
|
+
rules: {},
|
|
941
941
|
required: { type: Boolean },
|
|
942
|
-
column: {
|
|
942
|
+
column: {},
|
|
943
943
|
defaultValues: {},
|
|
944
944
|
model: {},
|
|
945
|
-
|
|
945
|
+
modelValue: {},
|
|
946
|
+
valueModel: {},
|
|
946
947
|
size: {}
|
|
947
948
|
},
|
|
948
949
|
emits: [
|
|
949
950
|
"submit",
|
|
950
951
|
"reset",
|
|
951
|
-
"update:model"
|
|
952
|
+
"update:model",
|
|
953
|
+
"update:modelValue"
|
|
952
954
|
],
|
|
953
|
-
setup(a, { expose:
|
|
954
|
-
ee((e) => ({
|
|
955
|
-
let d =
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
"labelPosition",
|
|
963
|
-
"valueModel",
|
|
964
|
-
"column",
|
|
965
|
-
"model"
|
|
966
|
-
]);
|
|
967
|
-
let f = C(0), p = C(), m = S({}), g = t(() => {
|
|
968
|
-
let e = N(m);
|
|
969
|
-
return a.fields.forEach((t) => {
|
|
970
|
-
let n = t.prop ? e?.[t.prop] : void 0, r = Y(t, m)?.props?.defaultValue;
|
|
971
|
-
m[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
|
|
972
|
-
let n = t.prop ? e?.[t.prop] : void 0, r = Y(t, m)?.props?.defaultValue;
|
|
973
|
-
m[t.prop] = n ?? r ?? void 0;
|
|
974
|
-
});
|
|
975
|
-
}), a.fields.filter((e) => typeof e.prop == "string");
|
|
976
|
-
}), y = t(() => {
|
|
977
|
-
if (a.rules && Object.keys(a.rules).length) return a.rules;
|
|
955
|
+
setup(a, { expose: o, emit: s }) {
|
|
956
|
+
ee((e) => ({ v13480ba6: P(D) / 2 }));
|
|
957
|
+
let u = s, { fields: d, labelWidth: f = "100px", valueWidth: p = "auto", omitFields: m = [], rules: g = S({}), labelPosition: y = "top", valueModel: b = "default", column: D = 24, model: k, modelValue: A } = a, N = C(0), F = C(), I = t(() => A !== void 0), L = t(() => I.value ? A : k || {}), R = t({
|
|
958
|
+
get: () => L.value,
|
|
959
|
+
set: (e) => {
|
|
960
|
+
I.value && u("update:modelValue", e);
|
|
961
|
+
}
|
|
962
|
+
}), B = t(() => d.filter((e) => typeof e.prop == "string")), te = t(() => {
|
|
963
|
+
if (g && Object.keys(g).length) return g;
|
|
978
964
|
let e = {};
|
|
979
|
-
return
|
|
965
|
+
return d.forEach((t) => {
|
|
980
966
|
t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
|
|
981
967
|
required: !0,
|
|
982
968
|
message: "请输入" + t.label,
|
|
@@ -984,101 +970,90 @@ var nt = { style: {
|
|
|
984
970
|
}]);
|
|
985
971
|
}), e;
|
|
986
972
|
});
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
});
|
|
990
|
-
async function b(e) {
|
|
991
|
-
let t = !0;
|
|
992
|
-
if (await e.validate((e) => {
|
|
993
|
-
t = e;
|
|
994
|
-
}), !t) return;
|
|
995
|
-
let n = {};
|
|
996
|
-
Object.keys(m).forEach((e) => {
|
|
997
|
-
m[e] !== void 0 && (n[e] = N(m[e]));
|
|
998
|
-
}), d("submit", n);
|
|
973
|
+
async function V() {
|
|
974
|
+
await F.value?.validate().catch(() => !1) && u("submit", M(L.value));
|
|
999
975
|
}
|
|
1000
|
-
function
|
|
1001
|
-
|
|
976
|
+
function ne() {
|
|
977
|
+
let e = {};
|
|
978
|
+
Object.keys(L.value).forEach((t) => {
|
|
979
|
+
m.includes(t) || (e[t] = void 0);
|
|
980
|
+
}), Object.assign(L.value, e), N.value += 1, u("reset", M(L.value));
|
|
1002
981
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1005
|
-
a.omitFields.includes(e) || (m[e] = void 0);
|
|
1006
|
-
}), f.value += 1, d("reset", m);
|
|
982
|
+
function H() {
|
|
983
|
+
return M(L.value);
|
|
1007
984
|
}
|
|
1008
|
-
function
|
|
1009
|
-
|
|
985
|
+
function U(e) {
|
|
986
|
+
Object.assign(L.value, e);
|
|
1010
987
|
}
|
|
1011
|
-
function
|
|
1012
|
-
|
|
1013
|
-
m[t] = e[t];
|
|
1014
|
-
});
|
|
988
|
+
function re() {
|
|
989
|
+
F.value?.clearValidate();
|
|
1015
990
|
}
|
|
1016
|
-
async function
|
|
991
|
+
async function ie() {
|
|
1017
992
|
return new Promise((e) => {
|
|
1018
|
-
|
|
993
|
+
F.value?.validate((t, n) => e(n));
|
|
1019
994
|
});
|
|
1020
995
|
}
|
|
1021
|
-
return
|
|
1022
|
-
getValues:
|
|
1023
|
-
setValues:
|
|
1024
|
-
clearValidate:
|
|
1025
|
-
onSubmit:
|
|
1026
|
-
validate:
|
|
1027
|
-
}), (t,
|
|
1028
|
-
let
|
|
1029
|
-
return x(), i(e, null, [l(
|
|
996
|
+
return o({
|
|
997
|
+
getValues: H,
|
|
998
|
+
setValues: U,
|
|
999
|
+
clearValidate: re,
|
|
1000
|
+
onSubmit: V,
|
|
1001
|
+
validate: ie
|
|
1002
|
+
}), (t, a) => {
|
|
1003
|
+
let o = E("el-input"), s = E("el-form-item"), u = E("el-form"), d = E("el-button");
|
|
1004
|
+
return x(), i(e, null, [l(u, h({
|
|
1030
1005
|
ref_key: "uiFormRef",
|
|
1031
|
-
ref:
|
|
1032
|
-
model:
|
|
1006
|
+
ref: F,
|
|
1007
|
+
model: R.value
|
|
1033
1008
|
}, t.$attrs, {
|
|
1034
|
-
rules:
|
|
1035
|
-
inline:
|
|
1036
|
-
"label-position":
|
|
1009
|
+
rules: te.value,
|
|
1010
|
+
inline: P(y) !== "top",
|
|
1011
|
+
"label-position": P(y),
|
|
1037
1012
|
class: {
|
|
1038
1013
|
"ui-form": !0,
|
|
1039
|
-
horizontal:
|
|
1014
|
+
horizontal: P(y) !== "top"
|
|
1040
1015
|
},
|
|
1041
1016
|
"validate-on-rule-change": !1
|
|
1042
1017
|
}), {
|
|
1043
|
-
default:
|
|
1018
|
+
default: z(() => [(x(!0), i(e, null, w(B.value, (r) => (x(), n(s, {
|
|
1044
1019
|
key: r.prop,
|
|
1045
1020
|
label: r.label,
|
|
1046
|
-
"label-width":
|
|
1047
|
-
"value-width":
|
|
1021
|
+
"label-width": P(f),
|
|
1022
|
+
"value-width": P(p),
|
|
1048
1023
|
prop: r.prop,
|
|
1049
1024
|
style: v({
|
|
1050
1025
|
width: `${r?.width ? r?.width + "px" : "100%"}`,
|
|
1051
|
-
gridColumn: `span ${(r?.span ||
|
|
1026
|
+
gridColumn: `span ${(r?.span || P(D)) / 2 || 1}`
|
|
1052
1027
|
})
|
|
1053
1028
|
}, {
|
|
1054
|
-
default:
|
|
1029
|
+
default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(Y)(r, R.value).component ? (x(), n(O(P(Y)(r, R.value).component), h({
|
|
1055
1030
|
key: 1,
|
|
1056
|
-
modelValue:
|
|
1057
|
-
"onUpdate:modelValue": (e) =>
|
|
1058
|
-
}, { ref_for: !0 }, P(Y)(r,
|
|
1031
|
+
modelValue: R.value[r.prop],
|
|
1032
|
+
"onUpdate:modelValue": (e) => R.value[r.prop] = e
|
|
1033
|
+
}, { ref_for: !0 }, P(Y)(r, R.value).props, {
|
|
1059
1034
|
clearable: !0,
|
|
1060
|
-
key: `${r.prop}-${
|
|
1035
|
+
key: `${r.prop}-${N.value}`,
|
|
1061
1036
|
style: { display: "inline-block" },
|
|
1062
|
-
class: { underline:
|
|
1037
|
+
class: { underline: P(b) === "underline" }
|
|
1063
1038
|
}), null, 16, [
|
|
1064
1039
|
"modelValue",
|
|
1065
1040
|
"onUpdate:modelValue",
|
|
1066
1041
|
"class"
|
|
1067
|
-
])) : (x(), i("span", ot, j(P(Y)(r,
|
|
1042
|
+
])) : (x(), i("span", ot, j(P(Y)(r, R.value) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: R.value }, () => [P(Y)(e, R.value).component ? (x(), n(O(P(Y)(e, R.value).component), h({
|
|
1068
1043
|
key: 1,
|
|
1069
|
-
modelValue:
|
|
1070
|
-
"onUpdate:modelValue": (t) =>
|
|
1044
|
+
modelValue: R.value[e.prop],
|
|
1045
|
+
"onUpdate:modelValue": (t) => R.value[e.prop] = t,
|
|
1071
1046
|
"default-value": e.defaultValue,
|
|
1072
1047
|
placeholder: e.placeholder
|
|
1073
|
-
}, { ref_for: !0 }, P(Y)(e,
|
|
1048
|
+
}, { ref_for: !0 }, P(Y)(e, R.value).props, {
|
|
1074
1049
|
style: {
|
|
1075
1050
|
display: "inline-block",
|
|
1076
1051
|
marginLeft: "10px",
|
|
1077
1052
|
width: `${e.width ? e.width + "px" : "100%"}`
|
|
1078
1053
|
},
|
|
1079
|
-
class: { underline:
|
|
1054
|
+
class: { underline: P(b) === "underline" },
|
|
1080
1055
|
clearable: !0,
|
|
1081
|
-
key: `${e.prop}-${
|
|
1056
|
+
key: `${e.prop}-${N.value}`
|
|
1082
1057
|
}), null, 16, [
|
|
1083
1058
|
"modelValue",
|
|
1084
1059
|
"onUpdate:modelValue",
|
|
@@ -1086,13 +1061,13 @@ var nt = { style: {
|
|
|
1086
1061
|
"placeholder",
|
|
1087
1062
|
"style",
|
|
1088
1063
|
"class"
|
|
1089
|
-
])) : (x(), i("span", st, j(P(Y)(e,
|
|
1064
|
+
])) : (x(), i("span", st, j(P(Y)(e, R.value) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
|
|
1090
1065
|
key: 1,
|
|
1091
|
-
modelValue:
|
|
1092
|
-
"onUpdate:modelValue": (e) =>
|
|
1066
|
+
modelValue: R.value[r.prop],
|
|
1067
|
+
"onUpdate:modelValue": (e) => R.value[r.prop] = e,
|
|
1093
1068
|
placeholder: "请输入",
|
|
1094
1069
|
clearable: !0,
|
|
1095
|
-
class: _({ underline:
|
|
1070
|
+
class: _({ underline: P(b) === "underline" })
|
|
1096
1071
|
}, null, 8, [
|
|
1097
1072
|
"modelValue",
|
|
1098
1073
|
"onUpdate:modelValue",
|
|
@@ -1114,28 +1089,28 @@ var nt = { style: {
|
|
|
1114
1089
|
"label-position",
|
|
1115
1090
|
"class"
|
|
1116
1091
|
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", ct, [
|
|
1117
|
-
T(t.$slots, "handle", { form:
|
|
1118
|
-
l(
|
|
1119
|
-
icon: P(
|
|
1120
|
-
onClick:
|
|
1092
|
+
T(t.$slots, "handle", { form: R.value }, void 0, !0),
|
|
1093
|
+
l(d, {
|
|
1094
|
+
icon: P(Je),
|
|
1095
|
+
onClick: ne,
|
|
1121
1096
|
size: t.$props.size
|
|
1122
1097
|
}, {
|
|
1123
|
-
default:
|
|
1098
|
+
default: z(() => [...a[0] ||= [c("重置", -1)]]),
|
|
1124
1099
|
_: 1
|
|
1125
1100
|
}, 8, ["icon", "size"]),
|
|
1126
|
-
l(
|
|
1101
|
+
l(d, {
|
|
1127
1102
|
icon: P(Qe),
|
|
1128
1103
|
type: "primary",
|
|
1129
|
-
onClick:
|
|
1104
|
+
onClick: V,
|
|
1130
1105
|
size: t.$props.size
|
|
1131
1106
|
}, {
|
|
1132
|
-
default:
|
|
1107
|
+
default: z(() => [...a[1] ||= [c("提交", -1)]]),
|
|
1133
1108
|
_: 1
|
|
1134
1109
|
}, 8, ["icon", "size"])
|
|
1135
1110
|
]))], 64);
|
|
1136
1111
|
};
|
|
1137
1112
|
}
|
|
1138
|
-
}), ut = /* @__PURE__ */
|
|
1113
|
+
}), ut = /* @__PURE__ */ U({ default: () => dt }), dt = /* @__PURE__ */ W(lt, [["__scopeId", "data-v-65bc3d19"]]), ft = ["disabled"], pt = /* @__PURE__ */ u({
|
|
1139
1114
|
__name: "index",
|
|
1140
1115
|
props: /* @__PURE__ */ m({
|
|
1141
1116
|
defaultValue: { default: "" },
|
|
@@ -1152,9 +1127,9 @@ var nt = { style: {
|
|
|
1152
1127
|
}),
|
|
1153
1128
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
1154
1129
|
setup(e, { emit: t }) {
|
|
1155
|
-
let n = C(), r =
|
|
1130
|
+
let n = C(), r = I(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
|
|
1156
1131
|
return y(() => {
|
|
1157
|
-
o = new
|
|
1132
|
+
o = new ne({
|
|
1158
1133
|
element: n.value,
|
|
1159
1134
|
placeholder: "点击输入内容...",
|
|
1160
1135
|
content: r.value || e.defaultValue || "",
|
|
@@ -1164,7 +1139,7 @@ var nt = { style: {
|
|
|
1164
1139
|
r.value = t, a.value = t, s("change", t);
|
|
1165
1140
|
}
|
|
1166
1141
|
}), o.setEditable(!e.disabled);
|
|
1167
|
-
}),
|
|
1142
|
+
}), L(r, (e) => {
|
|
1168
1143
|
o && e !== o.getHtml() && o.setContent(e);
|
|
1169
1144
|
}), b(() => {
|
|
1170
1145
|
o && o.destroy();
|
|
@@ -1175,7 +1150,7 @@ var nt = { style: {
|
|
|
1175
1150
|
disabled: e.disabled
|
|
1176
1151
|
}, null, 8, ft));
|
|
1177
1152
|
}
|
|
1178
|
-
}), mt = /* @__PURE__ */
|
|
1153
|
+
}), mt = /* @__PURE__ */ U({ default: () => ht }), ht = pt, gt = { class: "ui-tree-wrapper" }, _t = {
|
|
1179
1154
|
key: 0,
|
|
1180
1155
|
style: {
|
|
1181
1156
|
display: "flex",
|
|
@@ -1219,7 +1194,7 @@ var nt = { style: {
|
|
|
1219
1194
|
"data",
|
|
1220
1195
|
"props"
|
|
1221
1196
|
]), m = C(""), g = C(), _ = C(), v = d()?.appContext.config.globalProperties.$messageBox;
|
|
1222
|
-
|
|
1197
|
+
L(m, (t) => {
|
|
1223
1198
|
e.filterable && _.value?.filter(t);
|
|
1224
1199
|
});
|
|
1225
1200
|
let y = t(() => f?.["show-total"] ?? p?.showTotal ?? !0);
|
|
@@ -1272,7 +1247,7 @@ var nt = { style: {
|
|
|
1272
1247
|
link: "",
|
|
1273
1248
|
onClick: o[1] ||= (e) => w()
|
|
1274
1249
|
}, {
|
|
1275
|
-
default:
|
|
1250
|
+
default: z(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
|
|
1276
1251
|
_: 1
|
|
1277
1252
|
}))])) : r("", !0),
|
|
1278
1253
|
T(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
|
|
@@ -1288,38 +1263,38 @@ var nt = { style: {
|
|
|
1288
1263
|
"highlight-current": !0,
|
|
1289
1264
|
"filter-method": b
|
|
1290
1265
|
}), {
|
|
1291
|
-
default:
|
|
1266
|
+
default: z((s) => [s?.data ? (x(), i("div", vt, [a("div", yt, [s.data?.children?.length ? (x(), i("span", bt, "📁")) : 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, {
|
|
1292
1267
|
key: 0,
|
|
1293
1268
|
trigger: "click"
|
|
1294
1269
|
}, {
|
|
1295
|
-
dropdown:
|
|
1296
|
-
default:
|
|
1270
|
+
dropdown: z(() => [l(f, null, {
|
|
1271
|
+
default: z(() => [
|
|
1297
1272
|
p?.hideNodeAdd ? r("", !0) : (x(), n(d, {
|
|
1298
1273
|
key: 0,
|
|
1299
1274
|
onClick: (e) => w(s.data)
|
|
1300
1275
|
}, {
|
|
1301
|
-
default:
|
|
1276
|
+
default: z(() => [...o[3] ||= [c(" 添加 ", -1)]]),
|
|
1302
1277
|
_: 1
|
|
1303
1278
|
}, 8, ["onClick"])),
|
|
1304
1279
|
p?.hideNodeEdit ? r("", !0) : (x(), n(d, {
|
|
1305
1280
|
key: 1,
|
|
1306
1281
|
onClick: (e) => D(s.data)
|
|
1307
1282
|
}, {
|
|
1308
|
-
default:
|
|
1283
|
+
default: z(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
|
|
1309
1284
|
_: 1
|
|
1310
1285
|
}, 8, ["onClick"])),
|
|
1311
1286
|
p?.hideNodeDel ? r("", !0) : (x(), n(d, {
|
|
1312
1287
|
key: 2,
|
|
1313
1288
|
onClick: (e) => O(s.data)
|
|
1314
1289
|
}, {
|
|
1315
|
-
default:
|
|
1290
|
+
default: z(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
|
|
1316
1291
|
_: 1
|
|
1317
1292
|
}, 8, ["onClick"])),
|
|
1318
1293
|
T(t.$slots, "node-handle", { data: s.data }, void 0, !0)
|
|
1319
1294
|
]),
|
|
1320
1295
|
_: 2
|
|
1321
1296
|
}, 1024)]),
|
|
1322
|
-
default:
|
|
1297
|
+
default: z(() => [a("span", {
|
|
1323
1298
|
onClick: (e) => S(e, s.data),
|
|
1324
1299
|
style: {
|
|
1325
1300
|
padding: "4px",
|
|
@@ -1333,7 +1308,7 @@ var nt = { style: {
|
|
|
1333
1308
|
]);
|
|
1334
1309
|
};
|
|
1335
1310
|
}
|
|
1336
|
-
}), Ct = /* @__PURE__ */
|
|
1311
|
+
}), Ct = /* @__PURE__ */ U({ default: () => wt }), wt = /* @__PURE__ */ W(St, [["__scopeId", "data-v-7858d79e"]]), Tt = { style: { height: "100%" } }, Et = { style: {
|
|
1337
1312
|
display: "flex",
|
|
1338
1313
|
"flex-direction": "row",
|
|
1339
1314
|
"justify-content": "space-between",
|
|
@@ -1352,7 +1327,7 @@ var nt = { style: {
|
|
|
1352
1327
|
emits: ["node-click"],
|
|
1353
1328
|
setup(o, { emit: s }) {
|
|
1354
1329
|
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);
|
|
1355
|
-
|
|
1330
|
+
L(() => [u.value, o.data?.[0]], (e) => {
|
|
1356
1331
|
!e[0] && e[1] && (u.value = o.data?.[0]);
|
|
1357
1332
|
}, { immediate: !0 });
|
|
1358
1333
|
function f(e) {
|
|
@@ -1368,7 +1343,7 @@ var nt = { style: {
|
|
|
1368
1343
|
placeholder: o.placeholder ?? "请输入"
|
|
1369
1344
|
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), T(t.$slots, "plus", {}, void 0, !0)]),
|
|
1370
1345
|
a("div", Dt, [T(t.$slots, "handle", {}, void 0, !0)]),
|
|
1371
|
-
|
|
1346
|
+
B((x(), i("ul", h({
|
|
1372
1347
|
class: "infinite-list",
|
|
1373
1348
|
"infinite-scroll-immediate": !1
|
|
1374
1349
|
}, t.$attrs), [(x(!0), i(e, null, w(d.value, (e, n) => (x(), i("li", {
|
|
@@ -1383,7 +1358,7 @@ var nt = { style: {
|
|
|
1383
1358
|
]);
|
|
1384
1359
|
};
|
|
1385
1360
|
}
|
|
1386
|
-
}), jt = /* @__PURE__ */
|
|
1361
|
+
}), jt = /* @__PURE__ */ U({ default: () => Mt }), Mt = /* @__PURE__ */ W(At, [["__scopeId", "data-v-0ab5cd97"]]), Nt = {
|
|
1387
1362
|
key: 0,
|
|
1388
1363
|
style: {
|
|
1389
1364
|
padding: "10px 0px",
|
|
@@ -1411,12 +1386,12 @@ var nt = { style: {
|
|
|
1411
1386
|
t.title ? (x(), i("h4", Nt, j(t.title), 1)) : r("", !0),
|
|
1412
1387
|
T(o.$slots, "title", {}, void 0, !0),
|
|
1413
1388
|
l(u, h({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1414
|
-
default:
|
|
1389
|
+
default: z(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
|
|
1415
1390
|
key: e.prop,
|
|
1416
1391
|
label: e.label,
|
|
1417
1392
|
span: e.span || 2
|
|
1418
1393
|
}, {
|
|
1419
|
-
default:
|
|
1394
|
+
default: z(() => [e.render ? (x(), n(O(P(J)(e, t.data).component), h({
|
|
1420
1395
|
key: 0,
|
|
1421
1396
|
modelValue: t.data[e.prop],
|
|
1422
1397
|
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
@@ -1432,7 +1407,7 @@ var nt = { style: {
|
|
|
1432
1407
|
], 64);
|
|
1433
1408
|
};
|
|
1434
1409
|
}
|
|
1435
|
-
}), It = /* @__PURE__ */
|
|
1410
|
+
}), It = /* @__PURE__ */ U({ default: () => Lt }), Lt = /* @__PURE__ */ W(Ft, [["__scopeId", "data-v-f02c30f9"]]), Rt = {
|
|
1436
1411
|
key: 0,
|
|
1437
1412
|
style: {
|
|
1438
1413
|
display: "flex",
|
|
@@ -1473,20 +1448,20 @@ var nt = { style: {
|
|
|
1473
1448
|
"onUpdate:modelValue": t[0] ||= (e) => !e && u(),
|
|
1474
1449
|
onClose: u
|
|
1475
1450
|
}), {
|
|
1476
|
-
default:
|
|
1451
|
+
default: z(() => [(x(), n(O(o.component), h({
|
|
1477
1452
|
ref_key: "slotRef",
|
|
1478
1453
|
ref: s
|
|
1479
1454
|
}, o.componentProps, {
|
|
1480
1455
|
onClose: u,
|
|
1481
1456
|
onSubmit: d
|
|
1482
1457
|
}), null, 16)), o.disabled ? r("", !0) : (x(), i("div", Rt, [l(a, { onClick: u }, {
|
|
1483
|
-
default:
|
|
1458
|
+
default: z(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1484
1459
|
_: 1
|
|
1485
1460
|
}), l(a, {
|
|
1486
1461
|
type: "primary",
|
|
1487
1462
|
onClick: d
|
|
1488
1463
|
}, {
|
|
1489
|
-
default:
|
|
1464
|
+
default: z(() => [...t[2] ||= [c("确定", -1)]]),
|
|
1490
1465
|
_: 1
|
|
1491
1466
|
})]))]),
|
|
1492
1467
|
_: 1
|
|
@@ -1497,7 +1472,7 @@ var nt = { style: {
|
|
|
1497
1472
|
]);
|
|
1498
1473
|
};
|
|
1499
1474
|
}
|
|
1500
|
-
}), Bt = /* @__PURE__ */
|
|
1475
|
+
}), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, X = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1501
1476
|
function Ht(e) {
|
|
1502
1477
|
return Array.from(new Set(e));
|
|
1503
1478
|
}
|
|
@@ -1563,11 +1538,11 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1563
1538
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
1564
1539
|
"remote-method": m
|
|
1565
1540
|
}, t.$attrs), {
|
|
1566
|
-
prefix:
|
|
1567
|
-
default:
|
|
1541
|
+
prefix: z(() => [l(a, null, {
|
|
1542
|
+
default: z(() => [l(P(Pe))]),
|
|
1568
1543
|
_: 1
|
|
1569
1544
|
})]),
|
|
1570
|
-
default:
|
|
1545
|
+
default: z(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
|
|
1571
1546
|
key: `${e.employeeCode}-${e.employeeName}`,
|
|
1572
1547
|
label: e.label,
|
|
1573
1548
|
value: e.value
|
|
@@ -1595,7 +1570,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1595
1570
|
display: "flex",
|
|
1596
1571
|
"justify-content": "end",
|
|
1597
1572
|
"align-items": "center"
|
|
1598
|
-
} }, Qt = /* @__PURE__ */
|
|
1573
|
+
} }, Qt = /* @__PURE__ */ W(/* @__PURE__ */ u({
|
|
1599
1574
|
__name: "dialog",
|
|
1600
1575
|
props: {
|
|
1601
1576
|
modelValue: {},
|
|
@@ -1621,9 +1596,9 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1621
1596
|
filterText: "",
|
|
1622
1597
|
requiredVisible: !1
|
|
1623
1598
|
}), b = C([]), T = C([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
|
|
1624
|
-
|
|
1599
|
+
R(() => {
|
|
1625
1600
|
T.value = Ht(f.modelValue || []);
|
|
1626
|
-
}),
|
|
1601
|
+
}), R(() => {
|
|
1627
1602
|
_.value && k();
|
|
1628
1603
|
});
|
|
1629
1604
|
async function k() {
|
|
@@ -1660,7 +1635,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1660
1635
|
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
1661
1636
|
width: "14px",
|
|
1662
1637
|
height: "14px"
|
|
1663
|
-
} }, e(
|
|
1638
|
+
} }, e(Pe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
1664
1639
|
}
|
|
1665
1640
|
function ee(e) {
|
|
1666
1641
|
if (T.value = T.value.filter((t) => t !== e), m.value) {
|
|
@@ -1670,24 +1645,24 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1670
1645
|
});
|
|
1671
1646
|
}
|
|
1672
1647
|
}
|
|
1673
|
-
async function
|
|
1648
|
+
async function I() {
|
|
1674
1649
|
if (!y.filterText?.trim()) return y.searchData = [];
|
|
1675
1650
|
let e = await A({
|
|
1676
1651
|
page: 1,
|
|
1677
1652
|
pageSize: 9999,
|
|
1678
1653
|
name: y.filterText?.trim()
|
|
1679
1654
|
});
|
|
1680
|
-
if (e.code !== "ok") return
|
|
1655
|
+
if (e.code !== "ok") return G.Message.error(e.message);
|
|
1681
1656
|
y.searchData = (e?.table || []).map((e) => ({
|
|
1682
1657
|
...e,
|
|
1683
1658
|
code: e.account
|
|
1684
1659
|
}));
|
|
1685
1660
|
}
|
|
1686
|
-
function
|
|
1661
|
+
function L(e, t) {
|
|
1687
1662
|
let n = (t?.checkedNodes.filter((e) => e.account)).map((e) => `${e.name}(${e.account})`);
|
|
1688
1663
|
T.value = Ht(T.value.concat(n));
|
|
1689
1664
|
}
|
|
1690
|
-
function
|
|
1665
|
+
function B() {
|
|
1691
1666
|
let e = p === "all" ? T.value : T.value?.map((e) => {
|
|
1692
1667
|
let [t, n] = e.split("(");
|
|
1693
1668
|
return {
|
|
@@ -1695,15 +1670,15 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1695
1670
|
account: n?.replace(")", "")
|
|
1696
1671
|
}[p] || e.trim();
|
|
1697
1672
|
});
|
|
1698
|
-
u("change", e), u("update:modelValue", e), _.value = !1,
|
|
1673
|
+
u("change", e), u("update:modelValue", e), _.value = !1, H();
|
|
1699
1674
|
}
|
|
1700
|
-
function
|
|
1675
|
+
function ne() {
|
|
1701
1676
|
u("update:modelValue", void 0), _.value = !1;
|
|
1702
1677
|
}
|
|
1703
|
-
function
|
|
1678
|
+
function H() {
|
|
1704
1679
|
return y.requiredVisible = O.value && T.value.length === 0, y.requiredVisible;
|
|
1705
1680
|
}
|
|
1706
|
-
return o({ validate:
|
|
1681
|
+
return o({ validate: H }), (t, n) => {
|
|
1707
1682
|
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");
|
|
1708
1683
|
return x(), i(e, null, [a("div", {
|
|
1709
1684
|
class: "staff-select-trigger",
|
|
@@ -1740,13 +1715,13 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1740
1715
|
"append-to-body": "",
|
|
1741
1716
|
"close-on-click-modal": !1
|
|
1742
1717
|
}, {
|
|
1743
|
-
default:
|
|
1718
|
+
default: z(() => [a("div", Gt, [a("div", Kt, [l(s, {
|
|
1744
1719
|
placeholder: "请输入",
|
|
1745
1720
|
modelValue: y.filterText,
|
|
1746
1721
|
"onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
|
|
1747
1722
|
clearable: "",
|
|
1748
|
-
"prefix-icon": P(
|
|
1749
|
-
onKeydown:
|
|
1723
|
+
"prefix-icon": P(Ae),
|
|
1724
|
+
onKeydown: te(I, ["enter"])
|
|
1750
1725
|
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
1751
1726
|
loading: y.loading,
|
|
1752
1727
|
data: D.value,
|
|
@@ -1754,7 +1729,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1754
1729
|
"highlight-current": !0,
|
|
1755
1730
|
"render-content": N,
|
|
1756
1731
|
load: M,
|
|
1757
|
-
onCheck:
|
|
1732
|
+
onCheck: L,
|
|
1758
1733
|
"show-checkbox": "",
|
|
1759
1734
|
lazy: "",
|
|
1760
1735
|
class: "staff-tree",
|
|
@@ -1766,18 +1741,18 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1766
1741
|
class: "staff-item"
|
|
1767
1742
|
}, [a("span", null, j(e), 1), l(d, {
|
|
1768
1743
|
color: "red",
|
|
1769
|
-
onClick:
|
|
1744
|
+
onClick: V((t) => ee(e), ["stop"])
|
|
1770
1745
|
}, {
|
|
1771
|
-
default:
|
|
1746
|
+
default: z(() => [l(P(Me))]),
|
|
1772
1747
|
_: 1
|
|
1773
|
-
}, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick:
|
|
1774
|
-
default:
|
|
1748
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick: ne }, {
|
|
1749
|
+
default: z(() => [...n[5] ||= [c("取消", -1)]]),
|
|
1775
1750
|
_: 1
|
|
1776
1751
|
}), l(p, {
|
|
1777
1752
|
type: "primary",
|
|
1778
|
-
onClick:
|
|
1753
|
+
onClick: B
|
|
1779
1754
|
}, {
|
|
1780
|
-
default:
|
|
1755
|
+
default: z(() => [...n[6] ||= [c("确定", -1)]]),
|
|
1781
1756
|
_: 1
|
|
1782
1757
|
})])]),
|
|
1783
1758
|
_: 1
|
|
@@ -1803,7 +1778,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1803
1778
|
...r
|
|
1804
1779
|
}), null, 16));
|
|
1805
1780
|
}
|
|
1806
|
-
}), en = /* @__PURE__ */
|
|
1781
|
+
}), en = /* @__PURE__ */ U({ default: () => tn }), tn = $t, nn = /* @__PURE__ */ W(/* @__PURE__ */ u({
|
|
1807
1782
|
__name: "file",
|
|
1808
1783
|
props: {
|
|
1809
1784
|
icon: {},
|
|
@@ -1832,18 +1807,18 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1832
1807
|
"hide-upload-text": g.value
|
|
1833
1808
|
}
|
|
1834
1809
|
}), s({
|
|
1835
|
-
default:
|
|
1810
|
+
default: z(() => [T(e.$slots, "tip", {}, void 0, !0)]),
|
|
1836
1811
|
_: 2
|
|
1837
1812
|
}, [_.value ? void 0 : {
|
|
1838
1813
|
name: "trigger",
|
|
1839
|
-
fn:
|
|
1814
|
+
fn: z(() => [l(r, {
|
|
1840
1815
|
type: "primary",
|
|
1841
1816
|
plain: "",
|
|
1842
1817
|
icon: P(o),
|
|
1843
1818
|
size: P(u),
|
|
1844
1819
|
disabled: P(p)
|
|
1845
1820
|
}, {
|
|
1846
|
-
default:
|
|
1821
|
+
default: z(() => [c(j(P(a)), 1)]),
|
|
1847
1822
|
_: 1
|
|
1848
1823
|
}, 8, [
|
|
1849
1824
|
"icon",
|
|
@@ -1888,8 +1863,8 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1888
1863
|
"list-type": "picture-card",
|
|
1889
1864
|
"on-preview": s
|
|
1890
1865
|
}), {
|
|
1891
|
-
default:
|
|
1892
|
-
default:
|
|
1866
|
+
default: z(() => [l(u, null, {
|
|
1867
|
+
default: z(() => [l(P(Ie))]),
|
|
1893
1868
|
_: 1
|
|
1894
1869
|
})]),
|
|
1895
1870
|
_: 1
|
|
@@ -1897,7 +1872,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1897
1872
|
modelValue: o.value,
|
|
1898
1873
|
"onUpdate:modelValue": c[0] ||= (e) => o.value = e
|
|
1899
1874
|
}, {
|
|
1900
|
-
default:
|
|
1875
|
+
default: z(() => [a("img", {
|
|
1901
1876
|
"w-full": "",
|
|
1902
1877
|
src: r.value.url,
|
|
1903
1878
|
alt: "预览"
|
|
@@ -1949,14 +1924,14 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1949
1924
|
e.onChange?.(r, t), f.value = r, i("update:modelValue", r), i("change", r), u.value = r.length;
|
|
1950
1925
|
}
|
|
1951
1926
|
function m() {
|
|
1952
|
-
e.limit &&
|
|
1927
|
+
e.limit && G.Message.warning(`最多只能上传 ${e.limit} 个文件`);
|
|
1953
1928
|
}
|
|
1954
1929
|
function g(e, t) {
|
|
1955
1930
|
i("update:modelValue", N(t)), i("remove", N(t)), u.value = t.length;
|
|
1956
1931
|
}
|
|
1957
1932
|
function _(e, t) {
|
|
1958
1933
|
let n = N(f);
|
|
1959
|
-
if (e?.code !== "ok") return
|
|
1934
|
+
if (e?.code !== "ok") return G.Message.error(e?.message);
|
|
1960
1935
|
let r = X + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
|
|
1961
1936
|
n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
|
|
1962
1937
|
name: t.name,
|
|
@@ -1991,7 +1966,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1991
1966
|
"limit"
|
|
1992
1967
|
]));
|
|
1993
1968
|
}
|
|
1994
|
-
}), sn = /* @__PURE__ */
|
|
1969
|
+
}), sn = /* @__PURE__ */ U({ default: () => cn }), cn = on, ln = {
|
|
1995
1970
|
mounted(e, t) {
|
|
1996
1971
|
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
1997
1972
|
e._stickyOriginalStyles = {
|
|
@@ -2018,7 +1993,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
2018
1993
|
}
|
|
2019
1994
|
}, un = { mounted(e) {
|
|
2020
1995
|
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";
|
|
2021
|
-
} }, dn = /* @__PURE__ */
|
|
1996
|
+
} }, dn = /* @__PURE__ */ U({
|
|
2022
1997
|
card: () => un,
|
|
2023
1998
|
sticky: () => ln
|
|
2024
1999
|
}), Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
@@ -2044,7 +2019,7 @@ function fn(e, t = {}) {
|
|
|
2044
2019
|
e && (t = `${t}?${e}`);
|
|
2045
2020
|
} else u.body = JSON.stringify(M(h));
|
|
2046
2021
|
let n = await (await fetch(t, u)).json();
|
|
2047
|
-
return n.code ? ["return.optSuccess", "ok"].includes(n.code) ||
|
|
2022
|
+
return n.code ? ["return.optSuccess", "ok"].includes(n.code) || G.Message.error(n.message || "未知错误!") : n.data?.success || G.Message.error(n.message || "未知错误!"), f.value = n, a?.(n), n;
|
|
2048
2023
|
} catch (e) {
|
|
2049
2024
|
let t = e instanceof Error ? e : Error(String(e));
|
|
2050
2025
|
throw m.value = t, console.error("请求发生错误:", t), o?.(t), t;
|
|
@@ -2053,7 +2028,7 @@ function fn(e, t = {}) {
|
|
|
2053
2028
|
}
|
|
2054
2029
|
}
|
|
2055
2030
|
let y = null;
|
|
2056
|
-
|
|
2031
|
+
R(() => {
|
|
2057
2032
|
Object.assign(h, N(c.defaultParams) || {}), y && clearTimeout(y), y = setTimeout(() => {
|
|
2058
2033
|
let e = p(t.ready) ? t.ready.value : t.ready ?? !0;
|
|
2059
2034
|
n && e && !_ && g(() => v());
|
|
@@ -2105,7 +2080,7 @@ function pn(e, t) {
|
|
|
2105
2080
|
t?.onSuccess?.(e), i.total = e[n?.replaceAttrs?.total] || 0, r.value = e[n?.replaceAttrs?.table] || [];
|
|
2106
2081
|
}
|
|
2107
2082
|
});
|
|
2108
|
-
|
|
2083
|
+
R(() => {
|
|
2109
2084
|
let e = N(t.defaultParams || {});
|
|
2110
2085
|
i.page = 1, i.pageSize = 10, Object.assign(o, {
|
|
2111
2086
|
...e,
|
|
@@ -2240,7 +2215,7 @@ function vn(e, n) {
|
|
|
2240
2215
|
tableId: i?.tableId,
|
|
2241
2216
|
type: "all"
|
|
2242
2217
|
}), o = document.createElement("a");
|
|
2243
|
-
o.href = window.URL.createObjectURL(a), o.download = `${n}.xlsx`, o.click(),
|
|
2218
|
+
o.href = window.URL.createObjectURL(a), o.download = `${n}.xlsx`, o.click(), G.Message.success("导出成功"), window.URL.revokeObjectURL(o.href);
|
|
2244
2219
|
}
|
|
2245
2220
|
let f = S({
|
|
2246
2221
|
loading: !1,
|
|
@@ -2251,7 +2226,7 @@ function vn(e, n) {
|
|
|
2251
2226
|
delete: u,
|
|
2252
2227
|
exportData: d
|
|
2253
2228
|
});
|
|
2254
|
-
return
|
|
2229
|
+
return R(() => {
|
|
2255
2230
|
Object.assign(f, o, { reset: s });
|
|
2256
2231
|
}), f;
|
|
2257
2232
|
}
|
|
@@ -2262,12 +2237,12 @@ function yn(e, t) {
|
|
|
2262
2237
|
}
|
|
2263
2238
|
//#endregion
|
|
2264
2239
|
//#region src/hooks/index.ts
|
|
2265
|
-
var bn = /* @__PURE__ */
|
|
2240
|
+
var bn = /* @__PURE__ */ U({
|
|
2266
2241
|
useFetch: () => fn,
|
|
2267
2242
|
useTable: () => yn
|
|
2268
2243
|
}), xn = "Yc", Sn = {
|
|
2269
|
-
UiCard:
|
|
2270
|
-
UiTable:
|
|
2244
|
+
UiCard: ae,
|
|
2245
|
+
UiTable: Te,
|
|
2271
2246
|
UiFilter: it,
|
|
2272
2247
|
UiForm: ut,
|
|
2273
2248
|
UiEditor: mt,
|
|
@@ -2302,4 +2277,4 @@ var Tn = { install(e, t) {
|
|
|
2302
2277
|
for (let [t, n] of Object.entries(dn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
2303
2278
|
} };
|
|
2304
2279
|
//#endregion
|
|
2305
|
-
export {
|
|
2280
|
+
export { ae as UiCard, It as UiDescriptions, Bt as UiDialog, mt as UiEditor, it as UiFilter, ut as UiForm, jt as UiInfiniteScroll, en as UiStaffSelect, Te as UiTable, Ct as UiTree, sn as UiUpload, Tn as default, Tn as ycPlugin, $ as getHostVue, bn as hooks, wn as setHostVue };
|