@bsgoal/common 1.8.0 → 1.8.1
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/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var xe = (e, s, a) => s in e ? ke(e, s, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
De.call(s, a) && xe(e, a, s[a]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as
|
|
12
|
+
import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as c, createElementVNode as D, withDirectives as X, createBlock as y, Fragment as j, renderList as W, createCommentVNode as M, nextTick as $e, inject as Ve, watch as _e, resolveDirective as Oe, normalizeClass as me, vShow as le, isProxy as Ie, toRaw as Fe, provide as Re, useSlots as Ce, createSlots as Ue, normalizeStyle as Le } from "vue";
|
|
13
13
|
import { ElMessage as Pe } from "element-plus";
|
|
14
14
|
const l = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -35,11 +35,11 @@ const l = {
|
|
|
35
35
|
};
|
|
36
36
|
let he = null;
|
|
37
37
|
const Ee = (e) => {
|
|
38
|
-
const s = [], a = [],
|
|
38
|
+
const s = [], a = [], i = (u = []) => {
|
|
39
39
|
const t = u.map((_) => _.width), d = Math.max(...t);
|
|
40
40
|
u.forEach((_) => {
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
41
|
+
const { labelEl: $ } = _;
|
|
42
|
+
$.style.width = `${d}px`;
|
|
43
43
|
});
|
|
44
44
|
}, r = () => {
|
|
45
45
|
if (e) {
|
|
@@ -48,14 +48,14 @@ const Ee = (e) => {
|
|
|
48
48
|
let t = 0;
|
|
49
49
|
u.forEach((d, _) => {
|
|
50
50
|
d.style.width = "initial", d.style.whiteSpace = "nowrap";
|
|
51
|
-
const { x:
|
|
52
|
-
_ === 0 && (t =
|
|
51
|
+
const { x: $ = 0, width: N = 0 } = d.getBoundingClientRect(), S = { x: $, width: N, labelEl: d };
|
|
52
|
+
_ === 0 && (t = $), $ === t ? s.push(S) : a.push(S);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
he && clearTimeout(he), he = setTimeout(() => {
|
|
58
|
-
r(),
|
|
58
|
+
r(), i(s), i(a);
|
|
59
59
|
}, 50);
|
|
60
60
|
}, be = {
|
|
61
61
|
/**
|
|
@@ -79,8 +79,8 @@ const Ee = (e) => {
|
|
|
79
79
|
*/
|
|
80
80
|
height: (e, { value: s = 65, arg: a = "" }) => {
|
|
81
81
|
if (e) {
|
|
82
|
-
const { y:
|
|
83
|
-
e.style.height = `calc(100vh - ${
|
|
82
|
+
const { y: i = 0 } = e.getBoundingClientRect();
|
|
83
|
+
e.style.height = `calc(100vh - ${i + s}px)`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
@@ -131,7 +131,7 @@ const je = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
131
131
|
let d = r;
|
|
132
132
|
const _ = r.length;
|
|
133
133
|
return u && _ > u && (d = `${r.substring(0, u)}...`), d || t;
|
|
134
|
-
}),
|
|
134
|
+
}), i = K(() => {
|
|
135
135
|
const { content: r = "", limit: u = 0 } = s;
|
|
136
136
|
return r.length < u || !u;
|
|
137
137
|
});
|
|
@@ -144,7 +144,7 @@ const je = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
144
144
|
"popper-class": "base_tooltip_popper",
|
|
145
145
|
placement: "top-start",
|
|
146
146
|
content: e.content,
|
|
147
|
-
disabled:
|
|
147
|
+
disabled: i.value
|
|
148
148
|
}, {
|
|
149
149
|
default: A(() => [
|
|
150
150
|
J(r.$slots, "default", {}, () => [
|
|
@@ -157,7 +157,7 @@ const je = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
const
|
|
160
|
+
const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { key: 1 }, We = {
|
|
161
161
|
name: "BsgoalBaseForm"
|
|
162
162
|
}, Xe = /* @__PURE__ */ Object.assign(We, {
|
|
163
163
|
props: {
|
|
@@ -222,20 +222,20 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
222
222
|
},
|
|
223
223
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
224
224
|
setup(e, { expose: s, emit: a }) {
|
|
225
|
-
const
|
|
225
|
+
const i = e, r = w(null), u = be.align, t = w({});
|
|
226
226
|
fe(() => {
|
|
227
|
-
const { configOptions: h, values: b } =
|
|
228
|
-
x.forEach((
|
|
229
|
-
const { value: E = "", prop: O = "", type: I = "" } =
|
|
230
|
-
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] =
|
|
227
|
+
const { configOptions: h, values: b } = i, x = c(h), V = c(b);
|
|
228
|
+
x.forEach((C) => {
|
|
229
|
+
const { value: E = "", prop: O = "", type: I = "" } = C;
|
|
230
|
+
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = V[O] || E;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
233
|
const d = K(() => {
|
|
234
|
-
const { configOptions: h } =
|
|
235
|
-
return
|
|
236
|
-
let { rules:
|
|
234
|
+
const { configOptions: h } = i;
|
|
235
|
+
return c(h).map((V) => {
|
|
236
|
+
let { rules: C = !1, label: E = "" } = V;
|
|
237
237
|
const O = { required: !0, message: `${E}不能为空`, trigger: "blur" };
|
|
238
|
-
return
|
|
238
|
+
return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), V.rules = C, V;
|
|
239
239
|
});
|
|
240
240
|
}), _ = (h = "", b = "", x = "") => {
|
|
241
241
|
if (!x)
|
|
@@ -260,7 +260,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
260
260
|
return ["开始月份", "结束月份"];
|
|
261
261
|
}
|
|
262
262
|
return x;
|
|
263
|
-
},
|
|
263
|
+
}, $ = (h = "", b = "") => {
|
|
264
264
|
if (!b)
|
|
265
265
|
switch (h) {
|
|
266
266
|
case l.WEEK:
|
|
@@ -283,16 +283,16 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
283
283
|
}
|
|
284
284
|
return b;
|
|
285
285
|
}, N = () => {
|
|
286
|
-
const h =
|
|
287
|
-
for (const
|
|
288
|
-
const { type:
|
|
289
|
-
if (
|
|
290
|
-
const { 0: I = "", 1: L = "" } = h[O], { 0: U = "", 1:
|
|
291
|
-
h[U] = I, h[
|
|
286
|
+
const h = c(t), { configOptions: b } = i, x = c(b);
|
|
287
|
+
for (const V of x) {
|
|
288
|
+
const { type: C = "", range: E = [], prop: O = "" } = V;
|
|
289
|
+
if (C.endsWith("range") && E && E.length === 2) {
|
|
290
|
+
const { 0: I = "", 1: L = "" } = h[O], { 0: U = "", 1: G = "" } = E;
|
|
291
|
+
h[U] = I, h[G] = L;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
return a("on-form", h), h;
|
|
295
|
-
},
|
|
295
|
+
}, S = () => {
|
|
296
296
|
r.value.resetFields(), a("on-clear", t.value);
|
|
297
297
|
}, k = (h, b) => {
|
|
298
298
|
const x = {
|
|
@@ -303,29 +303,29 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
303
303
|
a("on-change", x);
|
|
304
304
|
};
|
|
305
305
|
return s({
|
|
306
|
-
triggerOperationClear:
|
|
306
|
+
triggerOperationClear: S,
|
|
307
307
|
triggerOperationForm: N,
|
|
308
308
|
validateForm: (h = () => {
|
|
309
309
|
}) => {
|
|
310
310
|
r.value.validate((b = !1, x = {}) => {
|
|
311
311
|
if (b) {
|
|
312
|
-
const
|
|
313
|
-
h(
|
|
312
|
+
const V = N();
|
|
313
|
+
h(V);
|
|
314
314
|
} else {
|
|
315
315
|
h(!1);
|
|
316
|
-
const
|
|
317
|
-
[
|
|
318
|
-
0: { message:
|
|
316
|
+
const V = Object.keys(x)[0], {
|
|
317
|
+
[V]: {
|
|
318
|
+
0: { message: C = "" }
|
|
319
319
|
}
|
|
320
320
|
} = x;
|
|
321
|
-
Pe.error(
|
|
321
|
+
Pe.error(C);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
}), (h, b) => {
|
|
326
|
-
const x = g("el-input"),
|
|
327
|
-
return o(), p("div",
|
|
328
|
-
|
|
326
|
+
const x = g("el-input"), V = g("el-input-number"), C = g("el-radio"), E = g("el-radio-group"), O = g("el-option"), I = g("el-select"), L = g("el-slider"), U = g("el-switch"), G = g("el-date-picker"), F = g("el-time-picker"), Q = g("el-checkbox"), q = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
|
|
327
|
+
return o(), p("div", Ge, [
|
|
328
|
+
D("div", Ye, [
|
|
329
329
|
X((o(), y(ie, {
|
|
330
330
|
ref_key: "EL_FORM_REF",
|
|
331
331
|
ref: r,
|
|
@@ -341,7 +341,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
341
341
|
type: m = "text",
|
|
342
342
|
placeholder: f = "",
|
|
343
343
|
readonly: v = e.readonlys,
|
|
344
|
-
clearable:
|
|
344
|
+
clearable: Y = !0,
|
|
345
345
|
rows: ve = 2,
|
|
346
346
|
min: de = 1,
|
|
347
347
|
max: ge = 10,
|
|
@@ -372,25 +372,25 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
372
372
|
none: e.none
|
|
373
373
|
}, null, 8, ["content", "limit", "none"])
|
|
374
374
|
])) : (o(), p(j, { key: 0 }, [
|
|
375
|
-
m ===
|
|
375
|
+
m === c(l).INPUT ? (o(), y(x, {
|
|
376
376
|
key: 0,
|
|
377
377
|
modelValue: t.value[T],
|
|
378
378
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
379
379
|
placeholder: _(m, P, f),
|
|
380
|
-
clearable:
|
|
380
|
+
clearable: Y,
|
|
381
381
|
onChange: (n) => k(m, T)
|
|
382
382
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
383
|
-
m ===
|
|
383
|
+
m === c(l).INPUT_TEXT_AREA ? (o(), y(x, {
|
|
384
384
|
key: 1,
|
|
385
385
|
modelValue: t.value[T],
|
|
386
386
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
387
387
|
type: "textarea",
|
|
388
388
|
rows: ve,
|
|
389
|
-
clearable:
|
|
389
|
+
clearable: Y,
|
|
390
390
|
placeholder: _(m, P, f),
|
|
391
391
|
onChange: (n) => k(m, T)
|
|
392
392
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
393
|
-
m ===
|
|
393
|
+
m === c(l).INPUT_NUMBER ? (o(), y(V, {
|
|
394
394
|
key: 2,
|
|
395
395
|
modelValue: h.num,
|
|
396
396
|
"onUpdate:modelValue": b[0] || (b[0] = (n) => h.num = n),
|
|
@@ -398,14 +398,14 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
398
398
|
max: ge,
|
|
399
399
|
onChange: k
|
|
400
400
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
401
|
-
m ===
|
|
401
|
+
m === c(l).RADIO ? (o(), y(E, {
|
|
402
402
|
key: 3,
|
|
403
403
|
modelValue: t.value[T],
|
|
404
404
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
405
405
|
onChange: (n) => k(m, T)
|
|
406
406
|
}, {
|
|
407
407
|
default: A(() => [
|
|
408
|
-
(o(!0), p(j, null, W(ee, (n, Z) => (o(), y(
|
|
408
|
+
(o(!0), p(j, null, W(ee, (n, Z) => (o(), y(C, {
|
|
409
409
|
key: Z,
|
|
410
410
|
label: n.value
|
|
411
411
|
}, {
|
|
@@ -417,7 +417,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
417
417
|
]),
|
|
418
418
|
_: 2
|
|
419
419
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
420
|
-
m ===
|
|
420
|
+
m === c(l).SELECT ? (o(), y(I, {
|
|
421
421
|
key: 4,
|
|
422
422
|
modelValue: t.value[T],
|
|
423
423
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
@@ -433,7 +433,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
433
433
|
]),
|
|
434
434
|
_: 2
|
|
435
435
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
436
|
-
m ===
|
|
436
|
+
m === c(l).SLIDER ? (o(), y(L, {
|
|
437
437
|
key: 5,
|
|
438
438
|
modelValue: t.value[T],
|
|
439
439
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
@@ -441,7 +441,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
441
441
|
max: ge,
|
|
442
442
|
onChange: (n) => k(m, T)
|
|
443
443
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
444
|
-
m ===
|
|
444
|
+
m === c(l).SWITCH ? (o(), y(U, {
|
|
445
445
|
key: 6,
|
|
446
446
|
modelValue: t.value[T],
|
|
447
447
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
@@ -449,52 +449,52 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
449
449
|
"inactive-value": ee[1] || !1,
|
|
450
450
|
onChange: (n) => k(m, T)
|
|
451
451
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
452
|
-
[
|
|
452
|
+
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
453
453
|
m
|
|
454
|
-
) ? (o(), y(
|
|
454
|
+
) ? (o(), y(G, {
|
|
455
455
|
key: 7,
|
|
456
456
|
modelValue: t.value[T],
|
|
457
457
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
458
|
-
format:
|
|
459
|
-
"value-format":
|
|
458
|
+
format: $(m, te),
|
|
459
|
+
"value-format": $(m, te),
|
|
460
460
|
type: m,
|
|
461
461
|
placeholder: _(m, P, f),
|
|
462
462
|
onChange: (n) => k(m, T)
|
|
463
463
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
464
464
|
[
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
].includes(m) ? (o(), y(
|
|
465
|
+
c(l).DATE_RANGE,
|
|
466
|
+
c(l).MONTH_RANGE,
|
|
467
|
+
c(l).DATE_TIME_RANGE
|
|
468
|
+
].includes(m) ? (o(), y(G, {
|
|
469
469
|
key: 8,
|
|
470
470
|
modelValue: t.value[T],
|
|
471
471
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
472
472
|
type: m,
|
|
473
|
-
"value-format":
|
|
473
|
+
"value-format": $(m, te),
|
|
474
474
|
"start-placeholder": _(m, P, f)[0],
|
|
475
475
|
"end-placeholder": _(m, P, f)[1],
|
|
476
476
|
onChange: (n) => k(m, T)
|
|
477
477
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
478
|
-
[
|
|
478
|
+
[c(l).TIME].includes(m) ? (o(), y(F, {
|
|
479
479
|
key: 9,
|
|
480
480
|
modelValue: t.value[T],
|
|
481
481
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
482
482
|
"arrow-control": "",
|
|
483
|
-
"value-format":
|
|
483
|
+
"value-format": $(m, te),
|
|
484
484
|
placeholder: _(m, P, f),
|
|
485
485
|
onChange: (n) => k(m, T)
|
|
486
486
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
487
|
-
[
|
|
487
|
+
[c(l).TIME_RANGE].includes(m) ? (o(), y(F, {
|
|
488
488
|
key: 10,
|
|
489
489
|
modelValue: t.value[T],
|
|
490
490
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
491
491
|
"is-range": "",
|
|
492
|
-
"value-format":
|
|
492
|
+
"value-format": $(m, te),
|
|
493
493
|
"start-placeholder": _(m, P, f)[0],
|
|
494
494
|
"end-placeholder": _(m, P, f)[1],
|
|
495
495
|
onChange: (n) => k(m, T)
|
|
496
496
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
497
|
-
[
|
|
497
|
+
[c(l).CHECKBOX].includes(m) ? (o(), y(q, {
|
|
498
498
|
key: 11,
|
|
499
499
|
modelValue: t.value[T],
|
|
500
500
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
@@ -528,7 +528,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
528
528
|
]),
|
|
529
529
|
_: 3
|
|
530
530
|
}, 8, ["model"])), [
|
|
531
|
-
[
|
|
531
|
+
[c(u)]
|
|
532
532
|
])
|
|
533
533
|
])
|
|
534
534
|
]);
|
|
@@ -566,7 +566,7 @@ const Qe = { class: "bsgoal-base-table-content" }, Ze = { class: "base_table_con
|
|
|
566
566
|
},
|
|
567
567
|
setup(e) {
|
|
568
568
|
return (s, a) => (o(), p("div", Qe, [
|
|
569
|
-
|
|
569
|
+
D("div", Ze, [
|
|
570
570
|
e.tooltip ? (o(), y(Me, {
|
|
571
571
|
key: 0,
|
|
572
572
|
content: e.data,
|
|
@@ -704,7 +704,7 @@ var et = {
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
|
-
const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_pagination" }, lt = /* @__PURE__ */
|
|
707
|
+
const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_pagination" }, lt = /* @__PURE__ */ D("span", null, "总数", -1), nt = {
|
|
708
708
|
name: "BsgoalBaseTablePagination"
|
|
709
709
|
}, ot = /* @__PURE__ */ Object.assign(nt, {
|
|
710
710
|
props: {
|
|
@@ -741,25 +741,25 @@ const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_
|
|
|
741
741
|
setup(e, { emit: s }) {
|
|
742
742
|
const a = (u = 0) => {
|
|
743
743
|
s("on-size-change", u);
|
|
744
|
-
},
|
|
744
|
+
}, i = (u = 1) => {
|
|
745
745
|
s("on-current-change", u);
|
|
746
746
|
}, r = w(1);
|
|
747
747
|
return (u, t) => {
|
|
748
748
|
const d = g("el-pagination"), _ = g("el-config-provider");
|
|
749
749
|
return o(), p("div", tt, [
|
|
750
|
-
|
|
751
|
-
B(_, { locale:
|
|
750
|
+
D("div", at, [
|
|
751
|
+
B(_, { locale: c(et) }, {
|
|
752
752
|
default: A(() => [
|
|
753
753
|
B(d, {
|
|
754
754
|
background: "",
|
|
755
755
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
756
756
|
"current-page": r.value,
|
|
757
|
-
"onUpdate:currentPage": t[0] || (t[0] = (
|
|
757
|
+
"onUpdate:currentPage": t[0] || (t[0] = ($) => r.value = $),
|
|
758
758
|
"page-sizes": e.pageSizes,
|
|
759
759
|
"page-size": e.pageSize,
|
|
760
760
|
total: e.total,
|
|
761
761
|
onSizeChange: a,
|
|
762
|
-
onCurrentChange:
|
|
762
|
+
onCurrentChange: i
|
|
763
763
|
}, {
|
|
764
764
|
next: A(() => [
|
|
765
765
|
lt
|
|
@@ -776,41 +776,41 @@ const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_
|
|
|
776
776
|
});
|
|
777
777
|
const Be = (e, s) => {
|
|
778
778
|
const a = e.__vccOpts || e;
|
|
779
|
-
for (const [
|
|
780
|
-
a[
|
|
779
|
+
for (const [i, r] of s)
|
|
780
|
+
a[i] = r;
|
|
781
781
|
return a;
|
|
782
782
|
}, st = {
|
|
783
783
|
name: "BsgoalBaseTableEmpty"
|
|
784
|
-
}, ut = { class: "bsgoal-base-table-empty" }, ct = /* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
784
|
+
}, ut = { class: "bsgoal-base-table-empty" }, ct = /* @__PURE__ */ D("div", { class: "base_table_empty" }, [
|
|
785
|
+
/* @__PURE__ */ D("div", { class: "base_table_empty_img" }, [
|
|
786
|
+
/* @__PURE__ */ D("img", {
|
|
787
787
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
788
788
|
alt: ""
|
|
789
789
|
})
|
|
790
790
|
]),
|
|
791
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ D("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
792
792
|
], -1), rt = [
|
|
793
793
|
ct
|
|
794
794
|
];
|
|
795
|
-
function it(e, s, a,
|
|
795
|
+
function it(e, s, a, i, r, u) {
|
|
796
796
|
return o(), p("div", ut, rt);
|
|
797
797
|
}
|
|
798
|
-
const dt = /* @__PURE__ */ Be(st, [["render", it]]), _t = (e = null, { expression: s = 75, arg: a = {}, height:
|
|
799
|
-
const r =
|
|
798
|
+
const dt = /* @__PURE__ */ Be(st, [["render", it]]), _t = (e = null, { expression: s = 75, arg: a = {}, height: i = "" } = {}) => {
|
|
799
|
+
const r = c(e);
|
|
800
800
|
if (r) {
|
|
801
801
|
const u = r.querySelector(".el-table");
|
|
802
802
|
u && $e(() => {
|
|
803
803
|
const { y: t = 0 } = u.getBoundingClientRect();
|
|
804
804
|
let d = `calc(100vh - ${t + s}px)`;
|
|
805
|
-
const _ = Number.parseInt(
|
|
806
|
-
|
|
805
|
+
const _ = Number.parseInt(i);
|
|
806
|
+
i && (_ ? d = `${i}px` : d = i), u.style.height = d;
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
|
-
}, ye = (e = Promise.resolve(), s = null, a = w(!1),
|
|
809
|
+
}, ye = (e = Promise.resolve(), s = null, a = w(!1), i = w(null)) => {
|
|
810
810
|
const r = w("");
|
|
811
811
|
return a.value = !0, e.then((u = {}) => {
|
|
812
812
|
const { data: t = {}, message: d = "" } = u;
|
|
813
|
-
|
|
813
|
+
i.value = t, r.value = d, s && s(!0, t), a.value = !1;
|
|
814
814
|
}).catch((u = {}) => {
|
|
815
815
|
if (typeof u == "object") {
|
|
816
816
|
const { message: t = "" } = u;
|
|
@@ -820,7 +820,7 @@ const dt = /* @__PURE__ */ Be(st, [["render", it]]), _t = (e = null, { expressio
|
|
|
820
820
|
s && s(!1, u), a.value = !1;
|
|
821
821
|
}).finally(() => {
|
|
822
822
|
a.value = !1;
|
|
823
|
-
}), { data:
|
|
823
|
+
}), { data: i, message: r, loading: a };
|
|
824
824
|
}, mt = (e = null) => {
|
|
825
825
|
switch (toString.apply(e)) {
|
|
826
826
|
case "[object Object]":
|
|
@@ -844,7 +844,7 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
844
844
|
class: "base_table_menu"
|
|
845
845
|
}, ht = {
|
|
846
846
|
name: "BsgoalBaseTable"
|
|
847
|
-
},
|
|
847
|
+
}, Ne = /* @__PURE__ */ Object.assign(ht, {
|
|
848
848
|
props: {
|
|
849
849
|
/**
|
|
850
850
|
* >----------props----------<
|
|
@@ -951,27 +951,27 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
951
951
|
}
|
|
952
952
|
},
|
|
953
953
|
setup(e, { expose: s }) {
|
|
954
|
-
const a = e,
|
|
955
|
-
const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a, L =
|
|
954
|
+
const a = e, i = K(() => {
|
|
955
|
+
const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a, L = c(E), U = [];
|
|
956
956
|
return O && U.push({
|
|
957
957
|
label: "操作",
|
|
958
958
|
fixed: "right",
|
|
959
959
|
prop: "operation",
|
|
960
960
|
width: I
|
|
961
961
|
}), [...L, ...U];
|
|
962
|
-
}), r = w(null), u =
|
|
962
|
+
}), r = w(null), u = Ve("transferFoldStatus");
|
|
963
963
|
fe(() => {
|
|
964
|
-
const { height: E } = a, O = u ? u.value : !1, I =
|
|
964
|
+
const { height: E } = a, O = u ? u.value : !1, I = c(a.expression);
|
|
965
965
|
gt(E) || _t(r, { arg: O, expression: I, height: E });
|
|
966
966
|
});
|
|
967
|
-
const t =
|
|
967
|
+
const t = c(a.mapProps), d = pe({
|
|
968
968
|
currentPage: "currentPage",
|
|
969
969
|
pageSize: "pageSize",
|
|
970
970
|
rows: "rows",
|
|
971
971
|
total: "total"
|
|
972
|
-
}, t), _ = w(1),
|
|
973
|
-
const { fetch: E, call: O, hasPage: I } = a, L =
|
|
974
|
-
I && (F[d.currentPage] = U, F[d.pageSize] =
|
|
972
|
+
}, t), _ = w(1), $ = w(10), N = w(0), S = w({}), k = w(a.loading), R = w(), h = w({}), b = () => {
|
|
973
|
+
const { fetch: E, call: O, hasPage: I } = a, L = S.value, U = _.value, G = $.value, F = pe({}, L);
|
|
974
|
+
I && (F[d.currentPage] = U, F[d.pageSize] = G), ye(E(F), O, k, h);
|
|
975
975
|
};
|
|
976
976
|
fe(() => {
|
|
977
977
|
R.value = a.data;
|
|
@@ -979,24 +979,24 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
979
979
|
a.hasPage ? (R.value = E[d.rows], N.value = E[d.total]) : R.value = E;
|
|
980
980
|
});
|
|
981
981
|
const x = (E = {}) => {
|
|
982
|
-
|
|
983
|
-
},
|
|
982
|
+
S.value = E, _.value = 1, b();
|
|
983
|
+
}, V = (E = 1) => {
|
|
984
984
|
_.value = E;
|
|
985
|
-
},
|
|
986
|
-
|
|
985
|
+
}, C = (E = 10) => {
|
|
986
|
+
$.value = E;
|
|
987
987
|
};
|
|
988
|
-
return _e([_,
|
|
988
|
+
return _e([_, $], () => {
|
|
989
989
|
b();
|
|
990
990
|
}), s({
|
|
991
991
|
refreshList: x
|
|
992
992
|
}), (E, O) => {
|
|
993
993
|
const I = g("el-table-column"), L = g("el-table"), U = Oe("loading");
|
|
994
994
|
return o(), p("div", ft, [
|
|
995
|
-
|
|
995
|
+
D("div", vt, [
|
|
996
996
|
E.$slots.menu ? (o(), p("div", pt, [
|
|
997
997
|
J(E.$slots, "menu")
|
|
998
998
|
])) : M("", !0),
|
|
999
|
-
|
|
999
|
+
D("div", {
|
|
1000
1000
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
1001
1001
|
ref: r
|
|
1002
1002
|
}, [
|
|
@@ -1023,8 +1023,8 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1023
1023
|
type: "selection",
|
|
1024
1024
|
width: "40"
|
|
1025
1025
|
})) : M("", !0),
|
|
1026
|
-
(o(!0), p(j, null, W(
|
|
1027
|
-
prop:
|
|
1026
|
+
(o(!0), p(j, null, W(i.value, ({
|
|
1027
|
+
prop: G = "",
|
|
1028
1028
|
label: F = "",
|
|
1029
1029
|
align: Q = "center",
|
|
1030
1030
|
width: q = "",
|
|
@@ -1040,11 +1040,11 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1040
1040
|
"min-width": `${F.length * 14 + 24}px`
|
|
1041
1041
|
}, {
|
|
1042
1042
|
default: A(({ row: P }) => [
|
|
1043
|
-
J(E.$slots,
|
|
1043
|
+
J(E.$slots, G, { row: P }, () => [
|
|
1044
1044
|
B(qe, {
|
|
1045
1045
|
limit: re,
|
|
1046
1046
|
tooltip: oe,
|
|
1047
|
-
data: P[
|
|
1047
|
+
data: P[G]
|
|
1048
1048
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1049
1049
|
])
|
|
1050
1050
|
]),
|
|
@@ -1059,8 +1059,8 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1059
1059
|
e.hasPage ? (o(), y(ot, {
|
|
1060
1060
|
key: 1,
|
|
1061
1061
|
total: N.value,
|
|
1062
|
-
onOnCurrentChange:
|
|
1063
|
-
onOnSizeChange:
|
|
1062
|
+
onOnCurrentChange: V,
|
|
1063
|
+
onOnSizeChange: C
|
|
1064
1064
|
}, null, 8, ["total"])) : M("", !0)
|
|
1065
1065
|
])
|
|
1066
1066
|
]);
|
|
@@ -1083,7 +1083,7 @@ const Et = {
|
|
|
1083
1083
|
return (s, a) => (o(), p("div", {
|
|
1084
1084
|
class: me(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1085
1085
|
}, [
|
|
1086
|
-
|
|
1086
|
+
D("div", {
|
|
1087
1087
|
class: me(["base_line", { base_line__vertical: e.vertical }])
|
|
1088
1088
|
}, null, 2)
|
|
1089
1089
|
], 2));
|
|
@@ -1092,15 +1092,15 @@ const Et = {
|
|
|
1092
1092
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1093
1093
|
var ue = (e, s) => {
|
|
1094
1094
|
let a = e.__vccOpts || e;
|
|
1095
|
-
for (let [
|
|
1096
|
-
a[
|
|
1095
|
+
for (let [i, r] of s)
|
|
1096
|
+
a[i] = r;
|
|
1097
1097
|
return a;
|
|
1098
1098
|
}, bt = {
|
|
1099
1099
|
name: "ArrowDown"
|
|
1100
1100
|
}, yt = {
|
|
1101
1101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1102
1102
|
viewBox: "0 0 1024 1024"
|
|
1103
|
-
}, At = /* @__PURE__ */
|
|
1103
|
+
}, At = /* @__PURE__ */ D(
|
|
1104
1104
|
"path",
|
|
1105
1105
|
{
|
|
1106
1106
|
fill: "currentColor",
|
|
@@ -1112,15 +1112,15 @@ var ue = (e, s) => {
|
|
|
1112
1112
|
), Tt = [
|
|
1113
1113
|
At
|
|
1114
1114
|
];
|
|
1115
|
-
function xt(e, s, a,
|
|
1115
|
+
function xt(e, s, a, i, r, u) {
|
|
1116
1116
|
return o(), p("svg", yt, Tt);
|
|
1117
1117
|
}
|
|
1118
|
-
var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]),
|
|
1118
|
+
var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]), Vt = {
|
|
1119
1119
|
name: "ArrowLeft"
|
|
1120
|
-
},
|
|
1120
|
+
}, Ct = {
|
|
1121
1121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1122
1122
|
viewBox: "0 0 1024 1024"
|
|
1123
|
-
}, Mt = /* @__PURE__ */
|
|
1123
|
+
}, Mt = /* @__PURE__ */ D(
|
|
1124
1124
|
"path",
|
|
1125
1125
|
{
|
|
1126
1126
|
fill: "currentColor",
|
|
@@ -1132,15 +1132,15 @@ var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]),
|
|
|
1132
1132
|
), Bt = [
|
|
1133
1133
|
Mt
|
|
1134
1134
|
];
|
|
1135
|
-
function
|
|
1136
|
-
return o(), p("svg",
|
|
1135
|
+
function Nt(e, s, a, i, r, u) {
|
|
1136
|
+
return o(), p("svg", Ct, Bt);
|
|
1137
1137
|
}
|
|
1138
|
-
var
|
|
1138
|
+
var wt = /* @__PURE__ */ ue(Vt, [["render", Nt], ["__file", "arrow-left.vue"]]), kt = {
|
|
1139
1139
|
name: "ArrowRight"
|
|
1140
1140
|
}, St = {
|
|
1141
1141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1142
1142
|
viewBox: "0 0 1024 1024"
|
|
1143
|
-
}, Dt = /* @__PURE__ */
|
|
1143
|
+
}, Dt = /* @__PURE__ */ D(
|
|
1144
1144
|
"path",
|
|
1145
1145
|
{
|
|
1146
1146
|
fill: "currentColor",
|
|
@@ -1152,7 +1152,7 @@ var Nt = /* @__PURE__ */ ue(Ct, [["render", wt], ["__file", "arrow-left.vue"]]),
|
|
|
1152
1152
|
), Ot = [
|
|
1153
1153
|
Dt
|
|
1154
1154
|
];
|
|
1155
|
-
function It(e, s, a,
|
|
1155
|
+
function It(e, s, a, i, r, u) {
|
|
1156
1156
|
return o(), p("svg", St, Ot);
|
|
1157
1157
|
}
|
|
1158
1158
|
var Ft = /* @__PURE__ */ ue(kt, [["render", It], ["__file", "arrow-right.vue"]]), Rt = {
|
|
@@ -1160,7 +1160,7 @@ var Ft = /* @__PURE__ */ ue(kt, [["render", It], ["__file", "arrow-right.vue"]])
|
|
|
1160
1160
|
}, Ut = {
|
|
1161
1161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1162
1162
|
viewBox: "0 0 1024 1024"
|
|
1163
|
-
}, Lt = /* @__PURE__ */
|
|
1163
|
+
}, Lt = /* @__PURE__ */ D(
|
|
1164
1164
|
"path",
|
|
1165
1165
|
{
|
|
1166
1166
|
fill: "currentColor",
|
|
@@ -1172,15 +1172,15 @@ var Ft = /* @__PURE__ */ ue(kt, [["render", It], ["__file", "arrow-right.vue"]])
|
|
|
1172
1172
|
), Pt = [
|
|
1173
1173
|
Lt
|
|
1174
1174
|
];
|
|
1175
|
-
function jt(e, s, a,
|
|
1175
|
+
function jt(e, s, a, i, r, u) {
|
|
1176
1176
|
return o(), p("svg", Ut, Pt);
|
|
1177
1177
|
}
|
|
1178
|
-
var zt = /* @__PURE__ */ ue(Rt, [["render", jt], ["__file", "arrow-up.vue"]]),
|
|
1178
|
+
var zt = /* @__PURE__ */ ue(Rt, [["render", jt], ["__file", "arrow-up.vue"]]), Gt = {
|
|
1179
1179
|
name: "Delete"
|
|
1180
|
-
},
|
|
1180
|
+
}, Yt = {
|
|
1181
1181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1182
1182
|
viewBox: "0 0 1024 1024"
|
|
1183
|
-
}, Ht = /* @__PURE__ */
|
|
1183
|
+
}, Ht = /* @__PURE__ */ D(
|
|
1184
1184
|
"path",
|
|
1185
1185
|
{
|
|
1186
1186
|
fill: "currentColor",
|
|
@@ -1192,15 +1192,15 @@ var zt = /* @__PURE__ */ ue(Rt, [["render", jt], ["__file", "arrow-up.vue"]]), Y
|
|
|
1192
1192
|
), Wt = [
|
|
1193
1193
|
Ht
|
|
1194
1194
|
];
|
|
1195
|
-
function Xt(e, s, a,
|
|
1196
|
-
return o(), p("svg",
|
|
1195
|
+
function Xt(e, s, a, i, r, u) {
|
|
1196
|
+
return o(), p("svg", Yt, Wt);
|
|
1197
1197
|
}
|
|
1198
|
-
var
|
|
1198
|
+
var we = /* @__PURE__ */ ue(Gt, [["render", Xt], ["__file", "delete.vue"]]), Qt = {
|
|
1199
1199
|
name: "Plus"
|
|
1200
1200
|
}, Zt = {
|
|
1201
1201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1202
1202
|
viewBox: "0 0 1024 1024"
|
|
1203
|
-
}, Kt = /* @__PURE__ */
|
|
1203
|
+
}, Kt = /* @__PURE__ */ D(
|
|
1204
1204
|
"path",
|
|
1205
1205
|
{
|
|
1206
1206
|
fill: "currentColor",
|
|
@@ -1212,7 +1212,7 @@ var Ne = /* @__PURE__ */ ue(Yt, [["render", Xt], ["__file", "delete.vue"]]), Qt
|
|
|
1212
1212
|
), Jt = [
|
|
1213
1213
|
Kt
|
|
1214
1214
|
];
|
|
1215
|
-
function qt(e, s, a,
|
|
1215
|
+
function qt(e, s, a, i, r, u) {
|
|
1216
1216
|
return o(), p("svg", Zt, Jt);
|
|
1217
1217
|
}
|
|
1218
1218
|
var ea = /* @__PURE__ */ ue(Qt, [["render", qt], ["__file", "plus.vue"]]), ta = {
|
|
@@ -1220,7 +1220,7 @@ var ea = /* @__PURE__ */ ue(Qt, [["render", qt], ["__file", "plus.vue"]]), ta =
|
|
|
1220
1220
|
}, aa = {
|
|
1221
1221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1222
1222
|
viewBox: "0 0 1024 1024"
|
|
1223
|
-
}, la = /* @__PURE__ */
|
|
1223
|
+
}, la = /* @__PURE__ */ D(
|
|
1224
1224
|
"path",
|
|
1225
1225
|
{
|
|
1226
1226
|
fill: "currentColor",
|
|
@@ -1232,7 +1232,7 @@ var ea = /* @__PURE__ */ ue(Qt, [["render", qt], ["__file", "plus.vue"]]), ta =
|
|
|
1232
1232
|
), na = [
|
|
1233
1233
|
la
|
|
1234
1234
|
];
|
|
1235
|
-
function oa(e, s, a,
|
|
1235
|
+
function oa(e, s, a, i, r, u) {
|
|
1236
1236
|
return o(), p("svg", aa, na);
|
|
1237
1237
|
}
|
|
1238
1238
|
var sa = /* @__PURE__ */ ue(ta, [["render", oa], ["__file", "search.vue"]]);
|
|
@@ -1250,15 +1250,15 @@ const ua = { class: "bsgoal-base-search-operation" }, ca = {
|
|
|
1250
1250
|
},
|
|
1251
1251
|
emits: ["on-fold"],
|
|
1252
1252
|
setup(e, { emit: s }) {
|
|
1253
|
-
const a = w(!1),
|
|
1254
|
-
a.value = !
|
|
1253
|
+
const a = w(!1), i = () => {
|
|
1254
|
+
a.value = !c(a), s("on-fold", a.value);
|
|
1255
1255
|
};
|
|
1256
1256
|
return (r, u) => {
|
|
1257
1257
|
const t = g("el-button"), d = g("el-icon");
|
|
1258
1258
|
return o(), p("div", ua, [
|
|
1259
1259
|
B(t, {
|
|
1260
1260
|
type: "primary",
|
|
1261
|
-
icon:
|
|
1261
|
+
icon: c(sa),
|
|
1262
1262
|
onClick: u[0] || (u[0] = (_) => r.$emit("on-search"))
|
|
1263
1263
|
}, {
|
|
1264
1264
|
default: A(() => [
|
|
@@ -1267,7 +1267,7 @@ const ua = { class: "bsgoal-base-search-operation" }, ca = {
|
|
|
1267
1267
|
_: 1
|
|
1268
1268
|
}, 8, ["icon"]),
|
|
1269
1269
|
B(t, {
|
|
1270
|
-
icon:
|
|
1270
|
+
icon: c(we),
|
|
1271
1271
|
onClick: u[1] || (u[1] = (_) => r.$emit("on-clear"))
|
|
1272
1272
|
}, {
|
|
1273
1273
|
default: A(() => [
|
|
@@ -1279,15 +1279,15 @@ const ua = { class: "bsgoal-base-search-operation" }, ca = {
|
|
|
1279
1279
|
key: 0,
|
|
1280
1280
|
class: "operation_fold",
|
|
1281
1281
|
style: { color: "var(--el-color-primary)" },
|
|
1282
|
-
onClick:
|
|
1282
|
+
onClick: i
|
|
1283
1283
|
}, [
|
|
1284
1284
|
H(z(a.value ? "收起" : "展开"), 1),
|
|
1285
1285
|
B(d, { color: "#409EFC" }, {
|
|
1286
1286
|
default: A(() => [
|
|
1287
|
-
X(B(
|
|
1287
|
+
X(B(c(zt), null, null, 512), [
|
|
1288
1288
|
[le, a.value]
|
|
1289
1289
|
]),
|
|
1290
|
-
X(B(
|
|
1290
|
+
X(B(c($t), null, null, 512), [
|
|
1291
1291
|
[le, !a.value]
|
|
1292
1292
|
])
|
|
1293
1293
|
]),
|
|
@@ -1336,7 +1336,7 @@ const ia = { class: "bsgoal-base-cascader" }, da = {
|
|
|
1336
1336
|
const a = w({
|
|
1337
1337
|
checkStrictly: !0,
|
|
1338
1338
|
multiple: !1
|
|
1339
|
-
}),
|
|
1339
|
+
}), i = (r) => {
|
|
1340
1340
|
s("update:model-value", r), s("on-change", r);
|
|
1341
1341
|
};
|
|
1342
1342
|
return (r, u) => {
|
|
@@ -1350,7 +1350,7 @@ const ia = { class: "bsgoal-base-cascader" }, da = {
|
|
|
1350
1350
|
options: e.dataOptions,
|
|
1351
1351
|
props: a.value,
|
|
1352
1352
|
placeholder: e.placeholder,
|
|
1353
|
-
onChange:
|
|
1353
|
+
onChange: i
|
|
1354
1354
|
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1355
1355
|
]);
|
|
1356
1356
|
};
|
|
@@ -1400,25 +1400,25 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1400
1400
|
},
|
|
1401
1401
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1402
1402
|
setup(e, { expose: s, emit: a }) {
|
|
1403
|
-
const
|
|
1403
|
+
const i = e, r = w(null), u = be.align, t = w({});
|
|
1404
1404
|
fe(() => {
|
|
1405
|
-
const { configOptions: x } =
|
|
1406
|
-
|
|
1407
|
-
const { value: E, prop: O = "", type: I = "" } =
|
|
1405
|
+
const { configOptions: x } = i;
|
|
1406
|
+
c(x).forEach((C) => {
|
|
1407
|
+
const { value: E, prop: O = "", type: I = "" } = C;
|
|
1408
1408
|
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(E) ? E : "";
|
|
1409
1409
|
});
|
|
1410
1410
|
});
|
|
1411
1411
|
const d = K(() => {
|
|
1412
|
-
const { configOptions: x } =
|
|
1412
|
+
const { configOptions: x } = i, V = c(x), C = {
|
|
1413
1413
|
type: l.OPERATION
|
|
1414
1414
|
};
|
|
1415
|
-
return [
|
|
1416
|
-
}), _ = (x = "",
|
|
1417
|
-
if (!
|
|
1415
|
+
return [...V, C];
|
|
1416
|
+
}), _ = (x = "", V = "", C = "") => {
|
|
1417
|
+
if (!C)
|
|
1418
1418
|
switch (x) {
|
|
1419
1419
|
case l.INPUT:
|
|
1420
1420
|
case l.INPUT_TEXT_AREA:
|
|
1421
|
-
return `请输入${
|
|
1421
|
+
return `请输入${V}`;
|
|
1422
1422
|
case l.SELECT:
|
|
1423
1423
|
case l.DATE:
|
|
1424
1424
|
case l.WEEK:
|
|
@@ -1427,7 +1427,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1427
1427
|
case l.DATE_TIME:
|
|
1428
1428
|
case l.TIME:
|
|
1429
1429
|
case l.CASCADER:
|
|
1430
|
-
return `请选择${
|
|
1430
|
+
return `请选择${V}`;
|
|
1431
1431
|
case l.DATE_RANGE:
|
|
1432
1432
|
case l.DATE_TIME_RANGE:
|
|
1433
1433
|
return ["开始日期", "结束日期"];
|
|
@@ -1436,9 +1436,9 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1436
1436
|
case l.MONTH_RANGE:
|
|
1437
1437
|
return ["开始月份", "结束月份"];
|
|
1438
1438
|
}
|
|
1439
|
-
return
|
|
1440
|
-
},
|
|
1441
|
-
if (
|
|
1439
|
+
return C;
|
|
1440
|
+
}, $ = (x = "", V = "") => {
|
|
1441
|
+
if (!V)
|
|
1442
1442
|
switch (x) {
|
|
1443
1443
|
case l.WEEK:
|
|
1444
1444
|
return "ww";
|
|
@@ -1458,12 +1458,12 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1458
1458
|
case l.DATE_TIME_RANGE:
|
|
1459
1459
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1460
1460
|
}
|
|
1461
|
-
return
|
|
1461
|
+
return V;
|
|
1462
1462
|
}, N = () => {
|
|
1463
|
-
const { configOptions: x } =
|
|
1464
|
-
for (const O of
|
|
1465
|
-
const { type: I = "", range: L = [], prop: U = "", single:
|
|
1466
|
-
if ([l.CASCADER].includes(I) && Array.isArray(F) &&
|
|
1463
|
+
const { configOptions: x } = i, V = c(t), C = c(x), E = {};
|
|
1464
|
+
for (const O of C) {
|
|
1465
|
+
const { type: I = "", range: L = [], prop: U = "", single: G = !1 } = O, F = V[U];
|
|
1466
|
+
if ([l.CASCADER].includes(I) && Array.isArray(F) && G) {
|
|
1467
1467
|
const Q = F.length;
|
|
1468
1468
|
Q ? E[U] = F[Q - 1] : E[U] = F;
|
|
1469
1469
|
} else
|
|
@@ -1478,25 +1478,25 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1478
1478
|
$e(() => {
|
|
1479
1479
|
N();
|
|
1480
1480
|
});
|
|
1481
|
-
const
|
|
1481
|
+
const S = () => {
|
|
1482
1482
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1483
|
-
}, k =
|
|
1483
|
+
}, k = Ve("transferFoldStatus"), R = w(!1), h = (x = !1) => {
|
|
1484
1484
|
R.value = x, k && (k.value = x), a("on-fold", R);
|
|
1485
|
-
}, b = (x,
|
|
1485
|
+
}, b = (x, V) => {
|
|
1486
1486
|
N();
|
|
1487
|
-
const
|
|
1487
|
+
const C = {
|
|
1488
1488
|
type: x,
|
|
1489
|
-
prop:
|
|
1490
|
-
value: t.value[
|
|
1489
|
+
prop: V,
|
|
1490
|
+
value: t.value[V] || ""
|
|
1491
1491
|
};
|
|
1492
|
-
a("on-change",
|
|
1492
|
+
a("on-change", C);
|
|
1493
1493
|
};
|
|
1494
1494
|
return s({
|
|
1495
1495
|
triggerOperationSearch: N
|
|
1496
|
-
}), (x,
|
|
1497
|
-
const
|
|
1496
|
+
}), (x, V) => {
|
|
1497
|
+
const C = g("el-input"), E = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), L = g("el-option"), U = g("el-select"), G = g("el-slider"), F = g("el-switch"), Q = g("el-date-picker"), q = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
|
|
1498
1498
|
return o(), p("div", ma, [
|
|
1499
|
-
|
|
1499
|
+
D("div", ga, [
|
|
1500
1500
|
X((o(), y(T, {
|
|
1501
1501
|
ref_key: "EL_FORM_REF",
|
|
1502
1502
|
ref: r,
|
|
@@ -1511,7 +1511,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1511
1511
|
label: m = "",
|
|
1512
1512
|
prop: f = "",
|
|
1513
1513
|
type: v = "text",
|
|
1514
|
-
placeholder:
|
|
1514
|
+
placeholder: Y = "",
|
|
1515
1515
|
readonly: ve = !1,
|
|
1516
1516
|
clearable: de = !0,
|
|
1517
1517
|
rows: ge = 2,
|
|
@@ -1532,32 +1532,32 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1532
1532
|
}, {
|
|
1533
1533
|
default: A(() => [
|
|
1534
1534
|
ve ? (o(), p("div", fa, z(t.value[f]), 1)) : (o(), p(j, { key: 0 }, [
|
|
1535
|
-
v ===
|
|
1535
|
+
v === c(l).INPUT ? (o(), y(C, {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
modelValue: t.value[f],
|
|
1538
1538
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1539
|
-
placeholder: _(v, m,
|
|
1539
|
+
placeholder: _(v, m, Y),
|
|
1540
1540
|
clearable: de
|
|
1541
1541
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : M("", !0),
|
|
1542
|
-
v ===
|
|
1542
|
+
v === c(l).INPUT_TEXT_AREA ? (o(), y(C, {
|
|
1543
1543
|
key: 1,
|
|
1544
1544
|
modelValue: t.value[f],
|
|
1545
1545
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1546
1546
|
type: "textarea",
|
|
1547
1547
|
rows: ge,
|
|
1548
1548
|
clearable: de,
|
|
1549
|
-
placeholder: _(v, m,
|
|
1549
|
+
placeholder: _(v, m, Y),
|
|
1550
1550
|
onChange: (n) => b(v, f)
|
|
1551
1551
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
1552
|
-
v ===
|
|
1552
|
+
v === c(l).INPUT_NUMBER ? (o(), y(E, {
|
|
1553
1553
|
key: 2,
|
|
1554
1554
|
modelValue: x.num,
|
|
1555
|
-
"onUpdate:modelValue":
|
|
1555
|
+
"onUpdate:modelValue": V[0] || (V[0] = (n) => x.num = n),
|
|
1556
1556
|
min: ee,
|
|
1557
1557
|
max: te,
|
|
1558
1558
|
onChange: b
|
|
1559
1559
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
1560
|
-
v ===
|
|
1560
|
+
v === c(l).RADIO ? (o(), y(I, {
|
|
1561
1561
|
key: 3,
|
|
1562
1562
|
modelValue: t.value[f],
|
|
1563
1563
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1576,11 +1576,11 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1576
1576
|
]),
|
|
1577
1577
|
_: 2
|
|
1578
1578
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1579
|
-
v ===
|
|
1579
|
+
v === c(l).SELECT ? (o(), y(U, {
|
|
1580
1580
|
key: 4,
|
|
1581
1581
|
modelValue: t.value[f],
|
|
1582
1582
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1583
|
-
placeholder: _(v, m,
|
|
1583
|
+
placeholder: _(v, m, Y),
|
|
1584
1584
|
onChange: (n) => b(v, f)
|
|
1585
1585
|
}, {
|
|
1586
1586
|
default: A(() => [
|
|
@@ -1592,7 +1592,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1592
1592
|
]),
|
|
1593
1593
|
_: 2
|
|
1594
1594
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
1595
|
-
v ===
|
|
1595
|
+
v === c(l).SLIDER ? (o(), y(G, {
|
|
1596
1596
|
key: 5,
|
|
1597
1597
|
modelValue: t.value[f],
|
|
1598
1598
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1600,7 +1600,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1600
1600
|
max: te,
|
|
1601
1601
|
onChange: (n) => b(v, f)
|
|
1602
1602
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
1603
|
-
v ===
|
|
1603
|
+
v === c(l).SWITCH ? (o(), y(F, {
|
|
1604
1604
|
key: 6,
|
|
1605
1605
|
modelValue: t.value[f],
|
|
1606
1606
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1608,52 +1608,52 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1608
1608
|
"inactive-value": ae[1] || !1,
|
|
1609
1609
|
onChange: (n) => b(v, f)
|
|
1610
1610
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
1611
|
-
[
|
|
1611
|
+
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
1612
1612
|
v
|
|
1613
1613
|
) ? (o(), y(Q, {
|
|
1614
1614
|
key: 7,
|
|
1615
1615
|
modelValue: t.value[f],
|
|
1616
1616
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1617
|
-
format:
|
|
1618
|
-
"value-format":
|
|
1617
|
+
format: $(v, se),
|
|
1618
|
+
"value-format": $(v, se),
|
|
1619
1619
|
type: v,
|
|
1620
|
-
placeholder: _(v, m,
|
|
1620
|
+
placeholder: _(v, m, Y),
|
|
1621
1621
|
onChange: (n) => b(v, f)
|
|
1622
1622
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
1623
1623
|
[
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1624
|
+
c(l).DATE_RANGE,
|
|
1625
|
+
c(l).MONTH_RANGE,
|
|
1626
|
+
c(l).DATE_TIME_RANGE
|
|
1627
1627
|
].includes(v) ? (o(), y(Q, {
|
|
1628
1628
|
key: 8,
|
|
1629
1629
|
modelValue: t.value[f],
|
|
1630
1630
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1631
1631
|
type: v,
|
|
1632
|
-
"value-format":
|
|
1633
|
-
"start-placeholder": _(v, m,
|
|
1634
|
-
"end-placeholder": _(v, m,
|
|
1632
|
+
"value-format": $(v, se),
|
|
1633
|
+
"start-placeholder": _(v, m, Y)[0],
|
|
1634
|
+
"end-placeholder": _(v, m, Y)[1],
|
|
1635
1635
|
onChange: (n) => b(v, f)
|
|
1636
1636
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1637
|
-
[
|
|
1637
|
+
[c(l).TIME].includes(v) ? (o(), y(q, {
|
|
1638
1638
|
key: 9,
|
|
1639
1639
|
modelValue: t.value[f],
|
|
1640
1640
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1641
1641
|
"arrow-control": "",
|
|
1642
|
-
"value-format":
|
|
1643
|
-
placeholder: _(v, m,
|
|
1642
|
+
"value-format": $(v, se),
|
|
1643
|
+
placeholder: _(v, m, Y),
|
|
1644
1644
|
onChange: (n) => b(v, f)
|
|
1645
1645
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
1646
|
-
[
|
|
1646
|
+
[c(l).TIME_RANGE].includes(v) ? (o(), y(q, {
|
|
1647
1647
|
key: 10,
|
|
1648
1648
|
modelValue: t.value[f],
|
|
1649
1649
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1650
1650
|
"is-range": "",
|
|
1651
|
-
"value-format":
|
|
1652
|
-
"start-placeholder": _(v, m,
|
|
1653
|
-
"end-placeholder": _(v, m,
|
|
1651
|
+
"value-format": $(v, se),
|
|
1652
|
+
"start-placeholder": _(v, m, Y)[0],
|
|
1653
|
+
"end-placeholder": _(v, m, Y)[1],
|
|
1654
1654
|
onChange: (n) => b(v, f)
|
|
1655
1655
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1656
|
-
[
|
|
1656
|
+
[c(l).CHECKBOX].includes(v) ? (o(), y(oe, {
|
|
1657
1657
|
key: 11,
|
|
1658
1658
|
modelValue: t.value[f],
|
|
1659
1659
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1672,20 +1672,20 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1672
1672
|
]),
|
|
1673
1673
|
_: 2
|
|
1674
1674
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1675
|
-
[
|
|
1675
|
+
[c(l).CASCADER].includes(v) ? (o(), y(_a, {
|
|
1676
1676
|
key: 12,
|
|
1677
1677
|
modelValue: t.value[f],
|
|
1678
1678
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1679
1679
|
"data-options": ae,
|
|
1680
|
-
placeholder: _(v, m,
|
|
1680
|
+
placeholder: _(v, m, Y),
|
|
1681
1681
|
onOnChange: (n) => b(v, f)
|
|
1682
1682
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
|
|
1683
1683
|
[].includes(v) ? (o(), p(j, { key: 13 }, [], 64)) : M("", !0),
|
|
1684
|
-
[
|
|
1684
|
+
[c(l).OPERATION].includes(v) ? (o(), y(ra, {
|
|
1685
1685
|
key: 14,
|
|
1686
1686
|
fold: ce >= 7,
|
|
1687
1687
|
onOnSearch: N,
|
|
1688
|
-
onOnClear:
|
|
1688
|
+
onOnClear: S,
|
|
1689
1689
|
onOnFold: h
|
|
1690
1690
|
}, null, 8, ["fold"])) : M("", !0)
|
|
1691
1691
|
], 64))
|
|
@@ -1695,7 +1695,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1695
1695
|
]),
|
|
1696
1696
|
_: 2
|
|
1697
1697
|
}, 1032, ["md"])), [
|
|
1698
|
-
[le, ce < 7 || v ===
|
|
1698
|
+
[le, ce < 7 || v === c(l).OPERATION || ce >= 7 && R.value]
|
|
1699
1699
|
])), 128))
|
|
1700
1700
|
]),
|
|
1701
1701
|
_: 1
|
|
@@ -1703,7 +1703,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1703
1703
|
]),
|
|
1704
1704
|
_: 1
|
|
1705
1705
|
}, 8, ["model"])), [
|
|
1706
|
-
[
|
|
1706
|
+
[c(u)]
|
|
1707
1707
|
])
|
|
1708
1708
|
]),
|
|
1709
1709
|
B(Ae)
|
|
@@ -1820,27 +1820,27 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1820
1820
|
}
|
|
1821
1821
|
},
|
|
1822
1822
|
setup(e, { expose: s }) {
|
|
1823
|
-
const a = e,
|
|
1824
|
-
Re("transferFoldStatus",
|
|
1825
|
-
const r =
|
|
1823
|
+
const a = e, i = w(!1);
|
|
1824
|
+
Re("transferFoldStatus", i);
|
|
1825
|
+
const r = c(a.configOptions), u = K(() => r.filter((h) => {
|
|
1826
1826
|
const { type: b = "" } = h;
|
|
1827
1827
|
return !!b;
|
|
1828
1828
|
})), t = K(() => r.filter((h) => {
|
|
1829
1829
|
const { item: b = !1 } = h;
|
|
1830
1830
|
return !b;
|
|
1831
|
-
})), d =
|
|
1832
|
-
|
|
1833
|
-
},
|
|
1831
|
+
})), d = Ce(), _ = w(Object.keys(d)), $ = w(null), N = (h) => {
|
|
1832
|
+
$.value.refreshList(h);
|
|
1833
|
+
}, S = K(() => {
|
|
1834
1834
|
const { expression: h, hasPage: b } = a;
|
|
1835
1835
|
return b === !1 ? 25 : h;
|
|
1836
1836
|
}), k = w(null);
|
|
1837
1837
|
return s({
|
|
1838
1838
|
refresh: () => {
|
|
1839
1839
|
const { hasSearch: h } = a;
|
|
1840
|
-
|
|
1840
|
+
c(h) && k.value.triggerOperationSearch();
|
|
1841
1841
|
}
|
|
1842
1842
|
}), (h, b) => (o(), p("div", ha, [
|
|
1843
|
-
|
|
1843
|
+
D("div", Ea, [
|
|
1844
1844
|
X(B(pa, {
|
|
1845
1845
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
1846
1846
|
ref: k,
|
|
@@ -1850,24 +1850,24 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1850
1850
|
}, null, 8, ["config-options"]), [
|
|
1851
1851
|
[le, e.hasSearch]
|
|
1852
1852
|
]),
|
|
1853
|
-
B(
|
|
1853
|
+
B(Ne, {
|
|
1854
1854
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1855
|
-
ref:
|
|
1855
|
+
ref: $,
|
|
1856
1856
|
"map-props": e.mapProps,
|
|
1857
1857
|
operationWidth: e.operationWidth,
|
|
1858
1858
|
"config-options": t.value,
|
|
1859
1859
|
data: e.tableData,
|
|
1860
1860
|
selection: e.selection,
|
|
1861
1861
|
operation: e.operation,
|
|
1862
|
-
expression:
|
|
1862
|
+
expression: S.value,
|
|
1863
1863
|
fetch: e.fetch,
|
|
1864
1864
|
call: e.call,
|
|
1865
1865
|
"has-page": e.hasPage
|
|
1866
1866
|
}, Ue({ _: 2 }, [
|
|
1867
1867
|
W(_.value, (x) => ({
|
|
1868
1868
|
name: x,
|
|
1869
|
-
fn: A(({ row:
|
|
1870
|
-
J(h.$slots, x, { row:
|
|
1869
|
+
fn: A(({ row: V = {} }) => [
|
|
1870
|
+
J(h.$slots, x, { row: V })
|
|
1871
1871
|
])
|
|
1872
1872
|
}))
|
|
1873
1873
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1882,23 +1882,23 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1882
1882
|
emits: ["update:modelValue"],
|
|
1883
1883
|
setup(e, { emit: s }) {
|
|
1884
1884
|
let a = w(!0);
|
|
1885
|
-
const
|
|
1885
|
+
const i = () => {
|
|
1886
1886
|
a.value = !a.value, s("update:modelValue", a.value);
|
|
1887
1887
|
};
|
|
1888
1888
|
return (r, u) => {
|
|
1889
1889
|
const t = g("el-icon");
|
|
1890
1890
|
return o(), p("div", Aa, [
|
|
1891
|
-
|
|
1892
|
-
class: me(["base_tree_fold", { "base_tree_fold--hide": !
|
|
1893
|
-
onClick:
|
|
1891
|
+
D("div", {
|
|
1892
|
+
class: me(["base_tree_fold", { "base_tree_fold--hide": !c(a) }]),
|
|
1893
|
+
onClick: i
|
|
1894
1894
|
}, [
|
|
1895
1895
|
B(t, { color: "#fff" }, {
|
|
1896
1896
|
default: A(() => [
|
|
1897
|
-
X(B(
|
|
1898
|
-
[le,
|
|
1897
|
+
X(B(c(wt), null, null, 512), [
|
|
1898
|
+
[le, c(a)]
|
|
1899
1899
|
]),
|
|
1900
|
-
X(B(
|
|
1901
|
-
[le, !
|
|
1900
|
+
X(B(c(Ft), null, null, 512), [
|
|
1901
|
+
[le, !c(a)]
|
|
1902
1902
|
])
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 1
|
|
@@ -1908,7 +1908,7 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1908
1908
|
};
|
|
1909
1909
|
}
|
|
1910
1910
|
});
|
|
1911
|
-
const $a = { class: "bsgoal-base-tree" },
|
|
1911
|
+
const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { class: "base_tree_main" }, Ma = {
|
|
1912
1912
|
name: "BsgoalBaseTree"
|
|
1913
1913
|
}, Ba = /* @__PURE__ */ Object.assign(Ma, {
|
|
1914
1914
|
props: {
|
|
@@ -1964,29 +1964,29 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Va = { cl
|
|
|
1964
1964
|
},
|
|
1965
1965
|
emits: ["on-click"],
|
|
1966
1966
|
setup(e, { emit: s }) {
|
|
1967
|
-
const a = e,
|
|
1967
|
+
const a = e, i = be.height, r = w(""), u = w(null);
|
|
1968
1968
|
_e(r, (N) => {
|
|
1969
1969
|
u.value.filter(N);
|
|
1970
1970
|
});
|
|
1971
|
-
const t = (N,
|
|
1972
|
-
s("on-click", N,
|
|
1973
|
-
},
|
|
1971
|
+
const t = (N, S) => N ? S.label.includes(N) : !0, d = w(!0), _ = (N, S, k, R) => {
|
|
1972
|
+
s("on-click", N, S, k, R);
|
|
1973
|
+
}, $ = async (N, S, k) => {
|
|
1974
1974
|
if (N.level === 0) {
|
|
1975
1975
|
const R = await k.initNode(N);
|
|
1976
|
-
return
|
|
1976
|
+
return S(R || []);
|
|
1977
1977
|
} else {
|
|
1978
1978
|
const R = await k.lazyLoad(N);
|
|
1979
|
-
|
|
1979
|
+
S(R || []);
|
|
1980
1980
|
}
|
|
1981
1981
|
};
|
|
1982
|
-
return (N,
|
|
1982
|
+
return (N, S) => {
|
|
1983
1983
|
const k = g("el-input"), R = g("el-tree");
|
|
1984
1984
|
return o(), p("div", $a, [
|
|
1985
|
-
X((o(), p("div",
|
|
1986
|
-
X(
|
|
1985
|
+
X((o(), p("div", Va, [
|
|
1986
|
+
X(D("div", Ca, [
|
|
1987
1987
|
B(k, {
|
|
1988
1988
|
modelValue: r.value,
|
|
1989
|
-
"onUpdate:modelValue":
|
|
1989
|
+
"onUpdate:modelValue": S[0] || (S[0] = (h) => r.value = h),
|
|
1990
1990
|
class: "base_tree_main_input",
|
|
1991
1991
|
placeholder: "输入关键字过滤"
|
|
1992
1992
|
}, null, 8, ["modelValue"]),
|
|
@@ -1996,7 +1996,7 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Va = { cl
|
|
|
1996
1996
|
lazy: "",
|
|
1997
1997
|
"highlight-current": "",
|
|
1998
1998
|
"empty-text": "暂无数据",
|
|
1999
|
-
load: (h, b) =>
|
|
1999
|
+
load: (h, b) => $(h, b, a),
|
|
2000
2000
|
"expand-on-click-node": !1,
|
|
2001
2001
|
props: e.treeProps,
|
|
2002
2002
|
"filter-node-method": t,
|
|
@@ -2010,16 +2010,16 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Va = { cl
|
|
|
2010
2010
|
]),
|
|
2011
2011
|
B(xa, {
|
|
2012
2012
|
modelValue: d.value,
|
|
2013
|
-
"onUpdate:modelValue":
|
|
2013
|
+
"onUpdate:modelValue": S[1] || (S[1] = (h) => d.value = h)
|
|
2014
2014
|
}, null, 8, ["modelValue"])
|
|
2015
2015
|
])), [
|
|
2016
|
-
[i
|
|
2016
|
+
[c(i), e.gasket]
|
|
2017
2017
|
])
|
|
2018
2018
|
]);
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
2021
|
});
|
|
2022
|
-
const
|
|
2022
|
+
const Na = { class: "bsgoal-base-dialog" }, wa = { class: "base_dialog" }, ka = { class: "base_dialog_header" }, Sa = { class: "base_dialog_footer" }, Da = {
|
|
2023
2023
|
name: "BsgoalBaseDialog"
|
|
2024
2024
|
}, Oa = /* @__PURE__ */ Object.assign(Da, {
|
|
2025
2025
|
props: {
|
|
@@ -2083,19 +2083,19 @@ const wa = { class: "bsgoal-base-dialog" }, Na = { class: "base_dialog" }, ka =
|
|
|
2083
2083
|
},
|
|
2084
2084
|
emits: ["update:modelValue", "on-confirm"],
|
|
2085
2085
|
setup(e, { emit: s }) {
|
|
2086
|
-
const a = e,
|
|
2087
|
-
|
|
2086
|
+
const a = e, i = w(a.modelValue.value), r = () => {
|
|
2087
|
+
i.value = !1;
|
|
2088
2088
|
}, u = () => {
|
|
2089
2089
|
s("on-confirm", () => {
|
|
2090
|
-
|
|
2090
|
+
i.value = !1;
|
|
2091
2091
|
});
|
|
2092
2092
|
};
|
|
2093
2093
|
_e(
|
|
2094
2094
|
() => a.modelValue,
|
|
2095
2095
|
(d) => {
|
|
2096
|
-
|
|
2096
|
+
i.value = d;
|
|
2097
2097
|
}
|
|
2098
|
-
), _e(
|
|
2098
|
+
), _e(i, (d) => {
|
|
2099
2099
|
s("update:modelValue", d);
|
|
2100
2100
|
});
|
|
2101
2101
|
const t = K(() => {
|
|
@@ -2118,29 +2118,29 @@ const wa = { class: "bsgoal-base-dialog" }, Na = { class: "base_dialog" }, ka =
|
|
|
2118
2118
|
}
|
|
2119
2119
|
});
|
|
2120
2120
|
return (d, _) => {
|
|
2121
|
-
const
|
|
2122
|
-
return o(), p("div",
|
|
2123
|
-
|
|
2121
|
+
const $ = g("el-button"), N = g("el-dialog");
|
|
2122
|
+
return o(), p("div", Na, [
|
|
2123
|
+
D("div", wa, [
|
|
2124
2124
|
B(N, {
|
|
2125
|
-
modelValue:
|
|
2126
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2125
|
+
modelValue: i.value,
|
|
2126
|
+
"onUpdate:modelValue": _[0] || (_[0] = (S) => i.value = S),
|
|
2127
2127
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2128
2128
|
class: me({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2129
2129
|
width: t.value
|
|
2130
2130
|
}, {
|
|
2131
2131
|
header: A(() => [
|
|
2132
|
-
|
|
2132
|
+
D("div", ka, z(e.title), 1)
|
|
2133
2133
|
]),
|
|
2134
2134
|
footer: A(() => [
|
|
2135
2135
|
e.footer ? J(d.$slots, "footer", { key: 0 }, () => [
|
|
2136
|
-
|
|
2137
|
-
B(
|
|
2136
|
+
D("span", Sa, [
|
|
2137
|
+
B($, { onClick: r }, {
|
|
2138
2138
|
default: A(() => [
|
|
2139
2139
|
H(z(e.cancelTxt), 1)
|
|
2140
2140
|
]),
|
|
2141
2141
|
_: 1
|
|
2142
2142
|
}),
|
|
2143
|
-
B(
|
|
2143
|
+
B($, {
|
|
2144
2144
|
type: "primary",
|
|
2145
2145
|
onClick: u
|
|
2146
2146
|
}, {
|
|
@@ -2153,7 +2153,7 @@ const wa = { class: "bsgoal-base-dialog" }, Na = { class: "base_dialog" }, ka =
|
|
|
2153
2153
|
]) : M("", !0)
|
|
2154
2154
|
]),
|
|
2155
2155
|
default: A(() => [
|
|
2156
|
-
|
|
2156
|
+
D("div", {
|
|
2157
2157
|
class: me(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2158
2158
|
}, [
|
|
2159
2159
|
J(d.$slots, "default")
|
|
@@ -2210,35 +2210,38 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2210
2210
|
},
|
|
2211
2211
|
emits: ["update:modelValue"],
|
|
2212
2212
|
setup(e, { emit: s }) {
|
|
2213
|
-
const a =
|
|
2214
|
-
|
|
2213
|
+
const a = e, i = () => {
|
|
2214
|
+
const { modelValue: u = "", configOptions: t = [] } = a, d = c(t).map(($) => $.value);
|
|
2215
|
+
return c(u) || d[0];
|
|
2216
|
+
}, r = (u = "") => {
|
|
2217
|
+
s("update:modelValue", u);
|
|
2215
2218
|
};
|
|
2216
|
-
return (
|
|
2217
|
-
const
|
|
2219
|
+
return (u, t) => {
|
|
2220
|
+
const d = g("el-tab-pane"), _ = g("el-tabs");
|
|
2218
2221
|
return o(), p("div", Ia, [
|
|
2219
|
-
B(
|
|
2220
|
-
stretch: e.stretch,
|
|
2222
|
+
B(_, {
|
|
2221
2223
|
class: "bsgoal_base_tabs",
|
|
2224
|
+
stretch: e.stretch,
|
|
2222
2225
|
type: e.type,
|
|
2223
|
-
"model-value":
|
|
2224
|
-
onTabChange:
|
|
2226
|
+
"model-value": i,
|
|
2227
|
+
onTabChange: r
|
|
2225
2228
|
}, {
|
|
2226
2229
|
default: A(() => [
|
|
2227
|
-
(o(!0), p(j, null, W(e.configOptions, ({ label:
|
|
2228
|
-
key:
|
|
2229
|
-
label:
|
|
2230
|
-
name:
|
|
2230
|
+
(o(!0), p(j, null, W(e.configOptions, ({ label: $, value: N }, S) => (o(), y(d, {
|
|
2231
|
+
key: S,
|
|
2232
|
+
label: $,
|
|
2233
|
+
name: N
|
|
2231
2234
|
}, {
|
|
2232
2235
|
default: A(() => [
|
|
2233
|
-
J(
|
|
2234
|
-
H(z(
|
|
2236
|
+
J(u.$slots, N, {}, () => [
|
|
2237
|
+
H(z($), 1)
|
|
2235
2238
|
])
|
|
2236
2239
|
]),
|
|
2237
2240
|
_: 2
|
|
2238
2241
|
}, 1032, ["label", "name"]))), 128))
|
|
2239
2242
|
]),
|
|
2240
2243
|
_: 3
|
|
2241
|
-
}, 8, ["stretch", "type"
|
|
2244
|
+
}, 8, ["stretch", "type"])
|
|
2242
2245
|
]);
|
|
2243
2246
|
};
|
|
2244
2247
|
}
|
|
@@ -2274,7 +2277,7 @@ const Ua = { class: "bsgoal-base-link" }, La = {
|
|
|
2274
2277
|
const a = () => {
|
|
2275
2278
|
s("on-click");
|
|
2276
2279
|
};
|
|
2277
|
-
return (
|
|
2280
|
+
return (i, r) => {
|
|
2278
2281
|
const u = g("el-link");
|
|
2279
2282
|
return o(), p("div", Ua, [
|
|
2280
2283
|
B(u, {
|
|
@@ -2285,7 +2288,7 @@ const Ua = { class: "bsgoal-base-link" }, La = {
|
|
|
2285
2288
|
onClick: a
|
|
2286
2289
|
}, {
|
|
2287
2290
|
default: A(() => [
|
|
2288
|
-
J(
|
|
2291
|
+
J(i.$slots, "default", {}, () => [
|
|
2289
2292
|
H(z(e.content), 1)
|
|
2290
2293
|
], !0)
|
|
2291
2294
|
]),
|
|
@@ -2295,9 +2298,9 @@ const Ua = { class: "bsgoal-base-link" }, La = {
|
|
|
2295
2298
|
};
|
|
2296
2299
|
}
|
|
2297
2300
|
}), ja = /* @__PURE__ */ Be(Pa, [["__scopeId", "data-v-3b0290b0"]]);
|
|
2298
|
-
const za = { class: "bsgoal-base-button" },
|
|
2301
|
+
const za = { class: "bsgoal-base-button" }, Ga = {
|
|
2299
2302
|
name: "BsgoalBaseButton"
|
|
2300
|
-
},
|
|
2303
|
+
}, Ya = /* @__PURE__ */ Object.assign(Ga, {
|
|
2301
2304
|
props: {
|
|
2302
2305
|
task: {
|
|
2303
2306
|
type: [Object, Function],
|
|
@@ -2333,10 +2336,10 @@ const za = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2333
2336
|
}
|
|
2334
2337
|
},
|
|
2335
2338
|
setup(e) {
|
|
2336
|
-
const s = e, a = w(!1),
|
|
2339
|
+
const s = e, a = w(!1), i = () => {
|
|
2337
2340
|
a.value = !0;
|
|
2338
2341
|
const { task: t } = s;
|
|
2339
|
-
|
|
2342
|
+
c(t)(() => {
|
|
2340
2343
|
a.value = !1;
|
|
2341
2344
|
}, s.values);
|
|
2342
2345
|
}, r = K(() => {
|
|
@@ -2350,7 +2353,7 @@ const za = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2350
2353
|
const { mode: t = "", icon: d = "" } = s;
|
|
2351
2354
|
switch (t) {
|
|
2352
2355
|
case "delete":
|
|
2353
|
-
return
|
|
2356
|
+
return we;
|
|
2354
2357
|
case "add":
|
|
2355
2358
|
return ea;
|
|
2356
2359
|
}
|
|
@@ -2359,9 +2362,9 @@ const za = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2359
2362
|
return (t, d) => {
|
|
2360
2363
|
const _ = g("el-button");
|
|
2361
2364
|
return o(), p("div", za, [
|
|
2362
|
-
|
|
2365
|
+
D("div", {
|
|
2363
2366
|
class: "base_button",
|
|
2364
|
-
onClick:
|
|
2367
|
+
onClick: i
|
|
2365
2368
|
}, [
|
|
2366
2369
|
J(t.$slots, "default", { loading: a.value }, () => [
|
|
2367
2370
|
B(_, {
|
|
@@ -2401,8 +2404,8 @@ const Ha = { class: "bsgoal-base-layout" }, Wa = {
|
|
|
2401
2404
|
}
|
|
2402
2405
|
},
|
|
2403
2406
|
setup(e) {
|
|
2404
|
-
const s =
|
|
2405
|
-
return (
|
|
2407
|
+
const s = Ce(), a = w(Object.keys(s));
|
|
2408
|
+
return (i, r) => {
|
|
2406
2409
|
const u = g("el-col"), t = g("el-row");
|
|
2407
2410
|
return o(), p("div", Ha, [
|
|
2408
2411
|
B(t, {
|
|
@@ -2419,7 +2422,7 @@ const Ha = { class: "bsgoal-base-layout" }, Wa = {
|
|
|
2419
2422
|
xl: e.ratio
|
|
2420
2423
|
}, {
|
|
2421
2424
|
default: A(() => [
|
|
2422
|
-
J(
|
|
2425
|
+
J(i.$slots, d)
|
|
2423
2426
|
]),
|
|
2424
2427
|
_: 2
|
|
2425
2428
|
}, 1032, ["md", "lg", "xl"]))), 128))
|
|
@@ -2431,19 +2434,19 @@ const Ha = { class: "bsgoal-base-layout" }, Wa = {
|
|
|
2431
2434
|
}
|
|
2432
2435
|
}), Ja = l, qa = ye, el = {
|
|
2433
2436
|
install(e, s = {}) {
|
|
2434
|
-
const { exclude: a = [] } = s,
|
|
2437
|
+
const { exclude: a = [] } = s, i = {
|
|
2435
2438
|
BsgoalBaseForm: Xe,
|
|
2436
|
-
BsgoalBaseTable:
|
|
2439
|
+
BsgoalBaseTable: Ne,
|
|
2437
2440
|
BsgoalBaseLine: Ae,
|
|
2438
2441
|
BsgoalBaseSearchTable: ya,
|
|
2439
2442
|
BsgoalBaseTree: Ba,
|
|
2440
2443
|
BsgoalBaseDialog: Oa,
|
|
2441
2444
|
BsgoalBaseTabs: Ra,
|
|
2442
2445
|
BsgoalBaseLink: ja,
|
|
2443
|
-
BsgoalBaseButton:
|
|
2446
|
+
BsgoalBaseButton: Ya,
|
|
2444
2447
|
BsgoalBaseLayout: Xa
|
|
2445
2448
|
};
|
|
2446
|
-
for (const [r, u] of Object.entries(
|
|
2449
|
+
for (const [r, u] of Object.entries(i))
|
|
2447
2450
|
a.includes(r) || e.component(r, u);
|
|
2448
2451
|
},
|
|
2449
2452
|
enumType: l,
|