@bsgoal/common 1.9.2 → 1.9.4
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
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var Se = Object.defineProperty;
|
|
2
|
+
var Te = Object.getOwnPropertySymbols;
|
|
3
|
+
var Oe = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var Ve = (e, s, a) => s in e ? Se(e, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[s] = a, Ee = (e, s) => {
|
|
5
5
|
for (var a in s || (s = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var a of
|
|
9
|
-
|
|
6
|
+
Oe.call(s, a) && Ve(e, a, s[a]);
|
|
7
|
+
if (Te)
|
|
8
|
+
for (var a of Te(s))
|
|
9
|
+
De.call(s, a) && Ve(e, a, s[a]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as Z, resolveComponent as v, openBlock as n, createElementBlock as b, createVNode as
|
|
13
|
-
import { ElMessage as
|
|
12
|
+
import { computed as Z, resolveComponent as v, openBlock as n, createElementBlock as b, createVNode as M, withCtx as A, renderSlot as q, createTextVNode as Y, toDisplayString as j, ref as w, watchEffect as he, unref as u, createElementVNode as O, withDirectives as J, createBlock as y, Fragment as P, renderList as Q, createCommentVNode as $, nextTick as Ce, inject as $e, watch as me, resolveDirective as Ie, normalizeClass as ge, vShow as te, isProxy as Re, toRaw as Fe, provide as Ue, useSlots as Me, createSlots as Le, normalizeStyle as Pe } from "vue";
|
|
13
|
+
import { ElMessage as ze } from "element-plus";
|
|
14
14
|
let l = class {
|
|
15
15
|
static get INPUT() {
|
|
16
16
|
return "text";
|
|
@@ -75,46 +75,46 @@ let l = class {
|
|
|
75
75
|
static get CHECKBOX_SINGLE() {
|
|
76
76
|
return "checkboxsingle";
|
|
77
77
|
}
|
|
78
|
-
}
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
const { labelEl:
|
|
85
|
-
|
|
78
|
+
};
|
|
79
|
+
const be = (e) => {
|
|
80
|
+
let s = null;
|
|
81
|
+
const a = [], i = [], c = (t = []) => {
|
|
82
|
+
const d = t.map((V) => V.width), _ = Math.max(...d);
|
|
83
|
+
t.forEach((V) => {
|
|
84
|
+
const { labelEl: C } = V;
|
|
85
|
+
C.style.width = `${_}px`;
|
|
86
86
|
});
|
|
87
87
|
}, r = () => {
|
|
88
88
|
if (e) {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
let
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const { x:
|
|
95
|
-
|
|
89
|
+
const t = e.querySelectorAll(".el-form-item__label");
|
|
90
|
+
if (t && t.length) {
|
|
91
|
+
let d = 0;
|
|
92
|
+
t.forEach((_, V) => {
|
|
93
|
+
_.style.width = "initial", _.style.whiteSpace = "nowrap";
|
|
94
|
+
const { x: C = 0, width: D = 0 } = _.getBoundingClientRect(), B = { x: C, width: D, labelEl: _ };
|
|
95
|
+
V === 0 && (d = C), C === d ? a.push(B) : i.push(B);
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
r(),
|
|
102
|
-
},
|
|
103
|
-
},
|
|
100
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
101
|
+
r(), c(a), c(i);
|
|
102
|
+
}, 50);
|
|
103
|
+
}, ye = {
|
|
104
104
|
/**
|
|
105
105
|
* 表单自动左对齐
|
|
106
106
|
*/
|
|
107
107
|
align: {
|
|
108
108
|
created(e) {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
window.addEventListener("resize", () => {
|
|
110
|
+
be(e);
|
|
111
111
|
});
|
|
112
112
|
},
|
|
113
113
|
mounted(e) {
|
|
114
|
-
|
|
114
|
+
be(e);
|
|
115
115
|
},
|
|
116
116
|
unmounted(e) {
|
|
117
|
-
window.removeEventListener("resize",
|
|
117
|
+
window.removeEventListener("resize", be(e));
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
/**
|
|
@@ -127,9 +127,9 @@ const ye = (e) => {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
const
|
|
130
|
+
const je = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
131
131
|
name: "BsgoalBaseTooltip"
|
|
132
|
-
},
|
|
132
|
+
}, Be = /* @__PURE__ */ Object.assign(Ge, {
|
|
133
133
|
props: {
|
|
134
134
|
/**
|
|
135
135
|
* 文字提示内容
|
|
@@ -170,18 +170,18 @@ const Ge = { class: "bsgoal-base-tooltip" }, Ye = {
|
|
|
170
170
|
},
|
|
171
171
|
setup(e) {
|
|
172
172
|
const s = e, a = Z(() => {
|
|
173
|
-
const { content:
|
|
174
|
-
let d =
|
|
175
|
-
const _ =
|
|
176
|
-
return
|
|
173
|
+
const { content: c = "", limit: r = 0, none: t = "" } = s;
|
|
174
|
+
let d = c;
|
|
175
|
+
const _ = c.length;
|
|
176
|
+
return r && _ > r && (d = `${c.substring(0, r)}...`), d || t;
|
|
177
177
|
}), i = Z(() => {
|
|
178
|
-
const { content:
|
|
179
|
-
return
|
|
178
|
+
const { content: c = "", limit: r = 0 } = s;
|
|
179
|
+
return c.length < r || !r;
|
|
180
180
|
});
|
|
181
|
-
return (
|
|
181
|
+
return (c, r) => {
|
|
182
182
|
const t = v("el-tooltip");
|
|
183
|
-
return n(), b("div",
|
|
184
|
-
|
|
183
|
+
return n(), b("div", je, [
|
|
184
|
+
M(t, {
|
|
185
185
|
class: "base_tooltip",
|
|
186
186
|
effect: "dark",
|
|
187
187
|
"popper-class": "base_tooltip_popper",
|
|
@@ -190,7 +190,7 @@ const Ge = { class: "bsgoal-base-tooltip" }, Ye = {
|
|
|
190
190
|
disabled: i.value
|
|
191
191
|
}, {
|
|
192
192
|
default: A(() => [
|
|
193
|
-
q(
|
|
193
|
+
q(c.$slots, "default", {}, () => [
|
|
194
194
|
Y(j(a.value), 1)
|
|
195
195
|
])
|
|
196
196
|
]),
|
|
@@ -200,9 +200,9 @@ const Ge = { class: "bsgoal-base-tooltip" }, Ye = {
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
const
|
|
203
|
+
const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { key: 1 }, Xe = {
|
|
204
204
|
name: "BsgoalBaseForm"
|
|
205
|
-
},
|
|
205
|
+
}, Ke = /* @__PURE__ */ Object.assign(Xe, {
|
|
206
206
|
props: {
|
|
207
207
|
/**
|
|
208
208
|
* >----------props----------<
|
|
@@ -280,22 +280,22 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
280
280
|
},
|
|
281
281
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
282
282
|
setup(e, { expose: s, emit: a }) {
|
|
283
|
-
const i = e,
|
|
283
|
+
const i = e, c = w(null), r = ye.align, t = w(i.bindModel);
|
|
284
284
|
he(() => {
|
|
285
|
-
const { configOptions: p, values: x } = i, T =
|
|
285
|
+
const { configOptions: p, values: x } = i, T = u(p), N = u(x);
|
|
286
286
|
T.forEach((m) => {
|
|
287
287
|
const { value: I = "", prop: k = "", type: L = "" } = m;
|
|
288
288
|
[l.INPUT, l.INPUT_TEXT_AREA].includes(L);
|
|
289
|
-
const F =
|
|
290
|
-
t.value[k] = F ||
|
|
289
|
+
const F = u(t)[k];
|
|
290
|
+
t.value[k] = F || N[k] || I;
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
const d = Z(() => {
|
|
294
294
|
const { configOptions: p } = i;
|
|
295
|
-
return
|
|
296
|
-
let { rules: m = !1, label: I = "" } =
|
|
295
|
+
return u(p).map((N) => {
|
|
296
|
+
let { rules: m = !1, label: I = "" } = N;
|
|
297
297
|
const k = { required: !0, message: `${I}不能为空`, trigger: "blur" };
|
|
298
|
-
return m && (typeof m == "boolean" ? m = [k] : Array.isArray(m) ? m = [k, ...m] : m = [k, m]),
|
|
298
|
+
return m && (typeof m == "boolean" ? m = [k] : Array.isArray(m) ? m = [k, ...m] : m = [k, m]), N.rules = m, N;
|
|
299
299
|
});
|
|
300
300
|
}), _ = (p = "", x = "", T = "") => {
|
|
301
301
|
if (!T)
|
|
@@ -342,19 +342,19 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
342
342
|
return "YYYY-MM-DD HH:mm:ss";
|
|
343
343
|
}
|
|
344
344
|
return x;
|
|
345
|
-
},
|
|
346
|
-
const p =
|
|
347
|
-
for (const
|
|
348
|
-
const { type: m = "", range: I = [], prop: k = "" } =
|
|
345
|
+
}, C = () => {
|
|
346
|
+
const p = u(t), { configOptions: x } = i, T = u(x);
|
|
347
|
+
for (const N of T) {
|
|
348
|
+
const { type: m = "", range: I = [], prop: k = "" } = N;
|
|
349
349
|
if (m.endsWith("range") && I && I.length === 2) {
|
|
350
350
|
const { 0: L = "", 1: F = "" } = p[k], { 0: H = "", 1: R = "" } = I;
|
|
351
351
|
p[H] = L, p[R] = F;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
return a("on-form", p), p;
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
},
|
|
355
|
+
}, D = () => {
|
|
356
|
+
c.value.resetFields(), a("on-clear", t.value);
|
|
357
|
+
}, B = (p, x) => {
|
|
358
358
|
const T = {
|
|
359
359
|
type: p,
|
|
360
360
|
prop: x,
|
|
@@ -363,22 +363,22 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
363
363
|
a("on-change", T);
|
|
364
364
|
}, U = (p = () => {
|
|
365
365
|
}) => {
|
|
366
|
-
|
|
366
|
+
c.value.validate((x = !1, T = {}) => {
|
|
367
367
|
if (x) {
|
|
368
|
-
const
|
|
369
|
-
p(
|
|
368
|
+
const N = C();
|
|
369
|
+
p(N);
|
|
370
370
|
} else {
|
|
371
371
|
p(!1);
|
|
372
|
-
const
|
|
373
|
-
[
|
|
372
|
+
const N = Object.keys(T)[0], {
|
|
373
|
+
[N]: {
|
|
374
374
|
0: { message: m = "" }
|
|
375
375
|
}
|
|
376
376
|
} = T;
|
|
377
|
-
|
|
377
|
+
ze.error(m);
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
},
|
|
381
|
-
const { 0: T = {}, 1:
|
|
380
|
+
}, S = (p = [], x = "") => {
|
|
381
|
+
const { 0: T = {}, 1: N = {} } = p, { value: m = !1, label: I = "" } = T, { value: k = !1, label: L = "" } = N;
|
|
382
382
|
switch (x) {
|
|
383
383
|
case "active-value":
|
|
384
384
|
return m;
|
|
@@ -391,22 +391,22 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
return s({
|
|
394
|
-
triggerOperationClear:
|
|
395
|
-
triggerOperationForm:
|
|
394
|
+
triggerOperationClear: D,
|
|
395
|
+
triggerOperationForm: C,
|
|
396
396
|
validateForm: U
|
|
397
397
|
}), (p, x) => {
|
|
398
|
-
const T = v("el-input"),
|
|
399
|
-
return n(), b("div",
|
|
400
|
-
|
|
398
|
+
const T = v("el-input"), N = v("el-input-number"), m = v("el-radio"), I = v("el-radio-group"), k = v("el-option"), L = v("el-select"), F = v("el-slider"), H = v("el-switch"), R = v("el-date-picker"), W = v("el-time-picker"), ee = v("el-checkbox"), ae = v("el-checkbox-group"), le = v("el-form-item"), re = v("el-col"), ie = v("el-row"), ue = v("el-form");
|
|
399
|
+
return n(), b("div", Ye, [
|
|
400
|
+
O("div", He, [
|
|
401
401
|
J((n(), y(ue, {
|
|
402
402
|
ref_key: "EL_FORM_REF",
|
|
403
|
-
ref:
|
|
403
|
+
ref: c,
|
|
404
404
|
"label-suffix": ":",
|
|
405
405
|
"label-position": e.labelPosition,
|
|
406
406
|
model: t.value
|
|
407
407
|
}, {
|
|
408
408
|
default: A(() => [
|
|
409
|
-
|
|
409
|
+
M(ie, null, {
|
|
410
410
|
default: A(() => [
|
|
411
411
|
(n(!0), b(P, null, Q(d.value, ({
|
|
412
412
|
label: X = "",
|
|
@@ -430,7 +430,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
430
430
|
md: e.medium
|
|
431
431
|
}, {
|
|
432
432
|
default: A(() => [
|
|
433
|
-
|
|
433
|
+
M(le, {
|
|
434
434
|
label: X,
|
|
435
435
|
prop: g,
|
|
436
436
|
rules: ne
|
|
@@ -439,22 +439,22 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
439
439
|
q(p.$slots, [g], {
|
|
440
440
|
option: { readonly: G, value: t.value[g], values: t.value }
|
|
441
441
|
}, () => [
|
|
442
|
-
G ? (n(), b("div",
|
|
443
|
-
|
|
442
|
+
G ? (n(), b("div", We, [
|
|
443
|
+
M(Be, {
|
|
444
444
|
content: t.value[g],
|
|
445
445
|
limit: ce,
|
|
446
446
|
none: e.none
|
|
447
447
|
}, null, 8, ["content", "limit", "none"])
|
|
448
448
|
])) : (n(), b(P, { key: 0 }, [
|
|
449
|
-
o ===
|
|
449
|
+
o === u(l).INPUT ? (n(), y(T, {
|
|
450
450
|
key: 0,
|
|
451
451
|
modelValue: t.value[g],
|
|
452
452
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
453
453
|
placeholder: _(o, X, f),
|
|
454
454
|
clearable: fe,
|
|
455
|
-
onChange: (E) =>
|
|
456
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
457
|
-
o ===
|
|
455
|
+
onChange: (E) => B(o, g)
|
|
456
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
457
|
+
o === u(l).INPUT_TEXT_AREA ? (n(), y(T, {
|
|
458
458
|
key: 1,
|
|
459
459
|
modelValue: t.value[g],
|
|
460
460
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
@@ -464,22 +464,22 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
464
464
|
maxlength: h,
|
|
465
465
|
clearable: fe,
|
|
466
466
|
placeholder: _(o, X, f),
|
|
467
|
-
onChange: (E) =>
|
|
468
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "autosize", "maxlength", "clearable", "placeholder", "onChange"])) :
|
|
469
|
-
o ===
|
|
467
|
+
onChange: (E) => B(o, g)
|
|
468
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "autosize", "maxlength", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
469
|
+
o === u(l).INPUT_NUMBER ? (n(), y(N, {
|
|
470
470
|
key: 2,
|
|
471
471
|
modelValue: t.value[g],
|
|
472
472
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
473
473
|
"controls-position": "right",
|
|
474
474
|
min: pe,
|
|
475
475
|
max: de,
|
|
476
|
-
onChange:
|
|
477
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) :
|
|
478
|
-
o ===
|
|
476
|
+
onChange: B
|
|
477
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : $("", !0),
|
|
478
|
+
o === u(l).RADIO ? (n(), y(I, {
|
|
479
479
|
key: 3,
|
|
480
480
|
modelValue: t.value[g],
|
|
481
481
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
482
|
-
onChange: (E) =>
|
|
482
|
+
onChange: (E) => B(o, g)
|
|
483
483
|
}, {
|
|
484
484
|
default: A(() => [
|
|
485
485
|
(n(!0), b(P, null, Q(z, (E, _e) => (n(), y(m, {
|
|
@@ -493,13 +493,13 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
493
493
|
}, 1032, ["label"]))), 128))
|
|
494
494
|
]),
|
|
495
495
|
_: 2
|
|
496
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
497
|
-
o ===
|
|
496
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
497
|
+
o === u(l).SELECT ? (n(), y(L, {
|
|
498
498
|
key: 4,
|
|
499
499
|
modelValue: t.value[g],
|
|
500
500
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
501
501
|
placeholder: _(o, X, f),
|
|
502
|
-
onChange: (E) =>
|
|
502
|
+
onChange: (E) => B(o, g)
|
|
503
503
|
}, {
|
|
504
504
|
default: A(() => [
|
|
505
505
|
(n(!0), b(P, null, Q(z, (E, _e) => (n(), y(k, {
|
|
@@ -509,26 +509,26 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
509
509
|
}, null, 8, ["label", "value"]))), 128))
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
513
|
-
o ===
|
|
512
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
513
|
+
o === u(l).SLIDER ? (n(), y(F, {
|
|
514
514
|
key: 5,
|
|
515
515
|
modelValue: t.value[g],
|
|
516
516
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
517
517
|
min: pe,
|
|
518
518
|
max: de,
|
|
519
|
-
onChange: (E) =>
|
|
520
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
521
|
-
o ===
|
|
519
|
+
onChange: (E) => B(o, g)
|
|
520
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
521
|
+
o === u(l).SWITCH ? (n(), y(H, {
|
|
522
522
|
key: 6,
|
|
523
523
|
modelValue: t.value[g],
|
|
524
524
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
525
|
-
"active-value":
|
|
526
|
-
"inactive-value":
|
|
527
|
-
"active-text":
|
|
528
|
-
"inactive-text":
|
|
529
|
-
onChange: (E) =>
|
|
530
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "active-text", "inactive-text", "onChange"])) :
|
|
531
|
-
[
|
|
525
|
+
"active-value": S(z, "active-value"),
|
|
526
|
+
"inactive-value": S(z, "inactive-value"),
|
|
527
|
+
"active-text": S(z, "active-text"),
|
|
528
|
+
"inactive-text": S(z, "inactive-text"),
|
|
529
|
+
onChange: (E) => B(o, g)
|
|
530
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "active-text", "inactive-text", "onChange"])) : $("", !0),
|
|
531
|
+
[u(l).DATE, u(l).MONTH, u(l).YEAR, u(l).DATE_TIME].includes(
|
|
532
532
|
o
|
|
533
533
|
) ? (n(), y(R, {
|
|
534
534
|
key: 7,
|
|
@@ -538,12 +538,12 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
538
538
|
"value-format": V(o, K),
|
|
539
539
|
type: o,
|
|
540
540
|
placeholder: _(o, X, f),
|
|
541
|
-
onChange: (E) =>
|
|
542
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
541
|
+
onChange: (E) => B(o, g)
|
|
542
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
543
543
|
[
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
u(l).DATE_RANGE,
|
|
545
|
+
u(l).MONTH_RANGE,
|
|
546
|
+
u(l).DATE_TIME_RANGE
|
|
547
547
|
].includes(o) ? (n(), y(R, {
|
|
548
548
|
key: 8,
|
|
549
549
|
modelValue: t.value[g],
|
|
@@ -552,18 +552,18 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
552
552
|
"value-format": V(o, K),
|
|
553
553
|
"start-placeholder": _(o, X, f)[0],
|
|
554
554
|
"end-placeholder": _(o, X, f)[1],
|
|
555
|
-
onChange: (E) =>
|
|
556
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
557
|
-
[
|
|
555
|
+
onChange: (E) => B(o, g)
|
|
556
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
557
|
+
[u(l).TIME].includes(o) ? (n(), y(W, {
|
|
558
558
|
key: 9,
|
|
559
559
|
modelValue: t.value[g],
|
|
560
560
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
561
561
|
"arrow-control": "",
|
|
562
562
|
"value-format": V(o, K),
|
|
563
563
|
placeholder: _(o, X, f),
|
|
564
|
-
onChange: (E) =>
|
|
565
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
566
|
-
[
|
|
564
|
+
onChange: (E) => B(o, g)
|
|
565
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
566
|
+
[u(l).TIME_RANGE].includes(o) ? (n(), y(W, {
|
|
567
567
|
key: 10,
|
|
568
568
|
modelValue: t.value[g],
|
|
569
569
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
@@ -571,13 +571,13 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
571
571
|
"value-format": V(o, K),
|
|
572
572
|
"start-placeholder": _(o, X, f)[0],
|
|
573
573
|
"end-placeholder": _(o, X, f)[1],
|
|
574
|
-
onChange: (E) =>
|
|
575
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
576
|
-
[
|
|
574
|
+
onChange: (E) => B(o, g)
|
|
575
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
576
|
+
[u(l).CHECKBOX].includes(o) ? (n(), y(ae, {
|
|
577
577
|
key: 11,
|
|
578
578
|
modelValue: t.value[g],
|
|
579
579
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
580
|
-
onChange: (E) =>
|
|
580
|
+
onChange: (E) => B(o, g)
|
|
581
581
|
}, {
|
|
582
582
|
default: A(() => [
|
|
583
583
|
(n(!0), b(P, null, Q(z, (E, _e) => (n(), y(ee, {
|
|
@@ -591,16 +591,16 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
591
591
|
}, 1032, ["label"]))), 128))
|
|
592
592
|
]),
|
|
593
593
|
_: 2
|
|
594
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
595
|
-
[
|
|
594
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
595
|
+
[u(l).CHECKBOX_SINGLE].includes(o) ? (n(), y(ee, {
|
|
596
596
|
key: 12,
|
|
597
597
|
modelValue: t.value[g],
|
|
598
598
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
599
599
|
"true-label": z[0] ? z[0].value : "1",
|
|
600
600
|
"false-label": z[1] ? z[1].value : "0",
|
|
601
|
-
onChange: (E) =>
|
|
602
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "true-label", "false-label", "onChange"])) :
|
|
603
|
-
[].includes(o) ? (n(), b(P, { key: 13 }, [], 64)) :
|
|
601
|
+
onChange: (E) => B(o, g)
|
|
602
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "true-label", "false-label", "onChange"])) : $("", !0),
|
|
603
|
+
[].includes(o) ? (n(), b(P, { key: 13 }, [], 64)) : $("", !0)
|
|
604
604
|
], 64))
|
|
605
605
|
])
|
|
606
606
|
]),
|
|
@@ -615,19 +615,19 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
615
615
|
]),
|
|
616
616
|
_: 3
|
|
617
617
|
}, 8, ["label-position", "model"])), [
|
|
618
|
-
[
|
|
618
|
+
[u(r)]
|
|
619
619
|
])
|
|
620
620
|
])
|
|
621
621
|
]);
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
624
|
});
|
|
625
|
-
const
|
|
625
|
+
const Qe = { class: "bsgoal-base-table-content" }, Ze = { class: "base_table_content" }, Je = {
|
|
626
626
|
key: 1,
|
|
627
627
|
class: "base_table_table_txt"
|
|
628
|
-
},
|
|
628
|
+
}, qe = {
|
|
629
629
|
name: "BsgoalBaseTableContent"
|
|
630
|
-
},
|
|
630
|
+
}, et = /* @__PURE__ */ Object.assign(qe, {
|
|
631
631
|
props: {
|
|
632
632
|
/**
|
|
633
633
|
* 数据
|
|
@@ -652,19 +652,19 @@ const Ze = { class: "bsgoal-base-table-content" }, Je = { class: "base_table_con
|
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
654
|
setup(e) {
|
|
655
|
-
return (s, a) => (n(), b("div",
|
|
656
|
-
|
|
657
|
-
e.tooltip ? (n(), y(
|
|
655
|
+
return (s, a) => (n(), b("div", Qe, [
|
|
656
|
+
O("div", Ze, [
|
|
657
|
+
e.tooltip ? (n(), y(Be, {
|
|
658
658
|
key: 0,
|
|
659
659
|
content: e.data,
|
|
660
660
|
limit: e.limit
|
|
661
|
-
}, null, 8, ["content", "limit"])) : (n(), b("div",
|
|
661
|
+
}, null, 8, ["content", "limit"])) : (n(), b("div", Je, j(e.data), 1))
|
|
662
662
|
])
|
|
663
663
|
]));
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
666
|
/*! Element Plus v2.3.4 */
|
|
667
|
-
var
|
|
667
|
+
var tt = {
|
|
668
668
|
name: "zh-cn",
|
|
669
669
|
el: {
|
|
670
670
|
colorpicker: {
|
|
@@ -791,9 +791,9 @@ var at = {
|
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
|
-
const
|
|
794
|
+
const at = { class: "bsgoal-base-table-pagination" }, lt = { class: "base_table_pagination" }, nt = /* @__PURE__ */ O("span", null, "总数", -1), ot = {
|
|
795
795
|
name: "BsgoalBaseTablePagination"
|
|
796
|
-
},
|
|
796
|
+
}, st = /* @__PURE__ */ Object.assign(ot, {
|
|
797
797
|
props: {
|
|
798
798
|
/**
|
|
799
799
|
* 当前页数
|
|
@@ -826,22 +826,22 @@ const lt = { class: "bsgoal-base-table-pagination" }, nt = { class: "base_table_
|
|
|
826
826
|
},
|
|
827
827
|
emits: ["on-size-change", "on-current-change"],
|
|
828
828
|
setup(e, { emit: s }) {
|
|
829
|
-
const a = (
|
|
830
|
-
s("on-size-change",
|
|
831
|
-
}, i = (
|
|
832
|
-
s("on-current-change",
|
|
833
|
-
},
|
|
834
|
-
return (
|
|
829
|
+
const a = (r = 0) => {
|
|
830
|
+
s("on-size-change", r);
|
|
831
|
+
}, i = (r = 1) => {
|
|
832
|
+
s("on-current-change", r);
|
|
833
|
+
}, c = w(1);
|
|
834
|
+
return (r, t) => {
|
|
835
835
|
const d = v("el-pagination"), _ = v("el-config-provider");
|
|
836
|
-
return n(), b("div",
|
|
837
|
-
|
|
838
|
-
|
|
836
|
+
return n(), b("div", at, [
|
|
837
|
+
O("div", lt, [
|
|
838
|
+
M(_, { locale: u(tt) }, {
|
|
839
839
|
default: A(() => [
|
|
840
|
-
|
|
840
|
+
M(d, {
|
|
841
841
|
background: "",
|
|
842
842
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
843
|
-
"current-page":
|
|
844
|
-
"onUpdate:currentPage": t[0] || (t[0] = (V) =>
|
|
843
|
+
"current-page": c.value,
|
|
844
|
+
"onUpdate:currentPage": t[0] || (t[0] = (V) => c.value = V),
|
|
845
845
|
"page-sizes": e.pageSizes,
|
|
846
846
|
"page-size": e.pageSize,
|
|
847
847
|
total: e.total,
|
|
@@ -849,7 +849,7 @@ const lt = { class: "bsgoal-base-table-pagination" }, nt = { class: "base_table_
|
|
|
849
849
|
onCurrentChange: i
|
|
850
850
|
}, {
|
|
851
851
|
next: A(() => [
|
|
852
|
-
|
|
852
|
+
nt
|
|
853
853
|
]),
|
|
854
854
|
_: 1
|
|
855
855
|
}, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
@@ -861,54 +861,54 @@ const lt = { class: "bsgoal-base-table-pagination" }, nt = { class: "base_table_
|
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
863
|
});
|
|
864
|
-
const
|
|
864
|
+
const Ne = (e, s) => {
|
|
865
865
|
const a = e.__vccOpts || e;
|
|
866
|
-
for (const [i,
|
|
867
|
-
a[i] =
|
|
866
|
+
for (const [i, c] of s)
|
|
867
|
+
a[i] = c;
|
|
868
868
|
return a;
|
|
869
|
-
},
|
|
869
|
+
}, ut = {
|
|
870
870
|
name: "BsgoalBaseTableEmpty"
|
|
871
|
-
},
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
871
|
+
}, ct = { class: "bsgoal-base-table-empty" }, rt = /* @__PURE__ */ O("div", { class: "base_table_empty" }, [
|
|
872
|
+
/* @__PURE__ */ O("div", { class: "base_table_empty_img" }, [
|
|
873
|
+
/* @__PURE__ */ O("img", {
|
|
874
874
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
875
875
|
alt: ""
|
|
876
876
|
})
|
|
877
877
|
]),
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
], -1),
|
|
880
|
-
|
|
878
|
+
/* @__PURE__ */ O("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
879
|
+
], -1), it = [
|
|
880
|
+
rt
|
|
881
881
|
];
|
|
882
|
-
function
|
|
883
|
-
return n(), b("div",
|
|
882
|
+
function dt(e, s, a, i, c, r) {
|
|
883
|
+
return n(), b("div", ct, it);
|
|
884
884
|
}
|
|
885
|
-
const
|
|
886
|
-
const
|
|
887
|
-
if (
|
|
888
|
-
const
|
|
889
|
-
|
|
890
|
-
const { y: t = 0 } =
|
|
885
|
+
const _t = /* @__PURE__ */ Ne(ut, [["render", dt]]), mt = (e = null, { expression: s = 75, arg: a = {}, height: i = "" } = {}) => {
|
|
886
|
+
const c = u(e);
|
|
887
|
+
if (c) {
|
|
888
|
+
const r = c.querySelector(".el-table");
|
|
889
|
+
r && Ce(() => {
|
|
890
|
+
const { y: t = 0 } = r.getBoundingClientRect();
|
|
891
891
|
let d = `calc(100vh - ${t + s}px)`;
|
|
892
892
|
const _ = Number.parseInt(i);
|
|
893
|
-
i && (_ ? d = `${i}px` : d = i),
|
|
893
|
+
i && (_ ? d = `${i}px` : d = i), r.style.height = d;
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
},
|
|
897
|
-
const
|
|
898
|
-
return a.value = !0, e.then((
|
|
899
|
-
const { data: t = {}, message: d = "" } =
|
|
900
|
-
i.value = t,
|
|
901
|
-
}).catch((
|
|
902
|
-
if (typeof
|
|
903
|
-
const { message: t = "" } =
|
|
904
|
-
|
|
896
|
+
}, xe = (e = Promise.resolve(), s = null, a = w(!1), i = w(null)) => {
|
|
897
|
+
const c = w("");
|
|
898
|
+
return a.value = !0, e.then((r = {}) => {
|
|
899
|
+
const { data: t = {}, message: d = "" } = r;
|
|
900
|
+
i.value = t, c.value = d, s && s(!0, t), a.value = !1;
|
|
901
|
+
}).catch((r = {}) => {
|
|
902
|
+
if (typeof r == "object") {
|
|
903
|
+
const { message: t = "" } = r;
|
|
904
|
+
c.value = t;
|
|
905
905
|
} else
|
|
906
|
-
|
|
907
|
-
s && s(!1,
|
|
906
|
+
c.value = r;
|
|
907
|
+
s && s(!1, r), a.value = !1;
|
|
908
908
|
}).finally(() => {
|
|
909
909
|
a.value = !1;
|
|
910
|
-
}), { data: i, message:
|
|
911
|
-
},
|
|
910
|
+
}), { data: i, message: c, loading: a };
|
|
911
|
+
}, gt = (e = null) => {
|
|
912
912
|
switch (toString.apply(e)) {
|
|
913
913
|
case "[object Object]":
|
|
914
914
|
return "object";
|
|
@@ -925,13 +925,13 @@ const mt = /* @__PURE__ */ we(ct, [["render", _t]]), gt = (e = null, { expressio
|
|
|
925
925
|
case "[object Undefind]":
|
|
926
926
|
return "undefind";
|
|
927
927
|
}
|
|
928
|
-
},
|
|
929
|
-
const
|
|
928
|
+
}, ft = (e) => gt(e) === "boolean";
|
|
929
|
+
const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
930
930
|
key: 0,
|
|
931
931
|
class: "base_table_menu"
|
|
932
|
-
},
|
|
932
|
+
}, Et = {
|
|
933
933
|
name: "BsgoalBaseTable"
|
|
934
|
-
},
|
|
934
|
+
}, we = /* @__PURE__ */ Object.assign(Et, {
|
|
935
935
|
props: {
|
|
936
936
|
/**
|
|
937
937
|
* >----------props----------<
|
|
@@ -1039,37 +1039,37 @@ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
|
1039
1039
|
},
|
|
1040
1040
|
setup(e, { expose: s }) {
|
|
1041
1041
|
const a = e, i = Z(() => {
|
|
1042
|
-
const { configOptions: m = [], operation: I = !1, operationWidth: k = 0 } = a, L =
|
|
1042
|
+
const { configOptions: m = [], operation: I = !1, operationWidth: k = 0 } = a, L = u(m), F = [];
|
|
1043
1043
|
return I && F.push({
|
|
1044
1044
|
label: "操作",
|
|
1045
1045
|
fixed: "right",
|
|
1046
1046
|
prop: "operation",
|
|
1047
1047
|
width: k
|
|
1048
1048
|
}), [...L, ...F];
|
|
1049
|
-
}),
|
|
1049
|
+
}), c = w(null), r = $e("transferFoldStatus");
|
|
1050
1050
|
he(() => {
|
|
1051
|
-
const { height: m } = a, I =
|
|
1052
|
-
|
|
1051
|
+
const { height: m } = a, I = r ? r.value : !1, k = u(a.expression);
|
|
1052
|
+
ft(m) || mt(c, { arg: I, expression: k, height: m });
|
|
1053
1053
|
});
|
|
1054
|
-
const t =
|
|
1054
|
+
const t = u(a.mapProps), d = Ee({
|
|
1055
1055
|
currentPage: "currentPage",
|
|
1056
1056
|
pageSize: "pageSize",
|
|
1057
1057
|
rows: "rows",
|
|
1058
1058
|
total: "total"
|
|
1059
|
-
}, t), _ =
|
|
1060
|
-
const { fetch: m, call: I, hasPage: k } = a, L =
|
|
1061
|
-
k && (R[d.currentPage] = F, R[d.pageSize] = H),
|
|
1059
|
+
}, t), _ = w(1), V = w(10), C = w(0), D = w({}), B = w(a.loading), U = w(), S = w({}), p = () => {
|
|
1060
|
+
const { fetch: m, call: I, hasPage: k } = a, L = D.value, F = _.value, H = V.value, R = Ee({}, L);
|
|
1061
|
+
k && (R[d.currentPage] = F, R[d.pageSize] = H), xe(m(R), I, B, S);
|
|
1062
1062
|
};
|
|
1063
1063
|
he(() => {
|
|
1064
1064
|
U.value = a.data;
|
|
1065
|
-
}), me(
|
|
1066
|
-
a.hasPage ? (U.value = m[d.rows],
|
|
1065
|
+
}), me(S, (m) => {
|
|
1066
|
+
a.hasPage ? (U.value = m[d.rows], C.value = m[d.total]) : U.value = m;
|
|
1067
1067
|
});
|
|
1068
1068
|
const x = (m = {}) => {
|
|
1069
|
-
|
|
1069
|
+
D.value = m, _.value = 1, p();
|
|
1070
1070
|
}, T = (m = 1) => {
|
|
1071
1071
|
_.value = m;
|
|
1072
|
-
},
|
|
1072
|
+
}, N = (m = 10) => {
|
|
1073
1073
|
V.value = m;
|
|
1074
1074
|
};
|
|
1075
1075
|
return me([_, V], () => {
|
|
@@ -1077,15 +1077,15 @@ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
|
1077
1077
|
}), s({
|
|
1078
1078
|
refreshList: x
|
|
1079
1079
|
}), (m, I) => {
|
|
1080
|
-
const k = v("el-table-column"), L = v("el-table"), F =
|
|
1081
|
-
return n(), b("div",
|
|
1082
|
-
|
|
1083
|
-
m.$slots.menu ? (n(), b("div",
|
|
1080
|
+
const k = v("el-table-column"), L = v("el-table"), F = Ie("loading");
|
|
1081
|
+
return n(), b("div", vt, [
|
|
1082
|
+
O("div", pt, [
|
|
1083
|
+
m.$slots.menu ? (n(), b("div", ht, [
|
|
1084
1084
|
q(m.$slots, "menu")
|
|
1085
|
-
])) :
|
|
1086
|
-
|
|
1085
|
+
])) : $("", !0),
|
|
1086
|
+
O("div", {
|
|
1087
1087
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
1088
|
-
ref:
|
|
1088
|
+
ref: c
|
|
1089
1089
|
}, [
|
|
1090
1090
|
J((n(), y(L, {
|
|
1091
1091
|
stripe: "",
|
|
@@ -1101,7 +1101,7 @@ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
}, {
|
|
1103
1103
|
empty: A(() => [
|
|
1104
|
-
|
|
1104
|
+
M(_t)
|
|
1105
1105
|
]),
|
|
1106
1106
|
default: A(() => [
|
|
1107
1107
|
e.selection ? (n(), y(k, {
|
|
@@ -1109,7 +1109,7 @@ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
|
1109
1109
|
fixed: "left",
|
|
1110
1110
|
type: "selection",
|
|
1111
1111
|
width: "40"
|
|
1112
|
-
})) :
|
|
1112
|
+
})) : $("", !0),
|
|
1113
1113
|
(n(!0), b(P, null, Q(i.value, ({
|
|
1114
1114
|
prop: H = "",
|
|
1115
1115
|
label: R = "",
|
|
@@ -1128,7 +1128,7 @@ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
|
1128
1128
|
}, {
|
|
1129
1129
|
default: A(({ row: ue }) => [
|
|
1130
1130
|
q(m.$slots, H, { row: ue }, () => [
|
|
1131
|
-
|
|
1131
|
+
M(et, {
|
|
1132
1132
|
limit: re,
|
|
1133
1133
|
tooltip: le,
|
|
1134
1134
|
data: ue[H]
|
|
@@ -1140,23 +1140,23 @@ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
|
1140
1140
|
]),
|
|
1141
1141
|
_: 3
|
|
1142
1142
|
}, 8, ["data", "header-cell-style"])), [
|
|
1143
|
-
[F,
|
|
1143
|
+
[F, B.value]
|
|
1144
1144
|
])
|
|
1145
1145
|
], 512),
|
|
1146
|
-
e.hasPage ? (n(), y(
|
|
1146
|
+
e.hasPage ? (n(), y(st, {
|
|
1147
1147
|
key: 1,
|
|
1148
|
-
total:
|
|
1148
|
+
total: C.value,
|
|
1149
1149
|
onOnCurrentChange: T,
|
|
1150
|
-
onOnSizeChange:
|
|
1151
|
-
}, null, 8, ["total"])) :
|
|
1150
|
+
onOnSizeChange: N
|
|
1151
|
+
}, null, 8, ["total"])) : $("", !0)
|
|
1152
1152
|
])
|
|
1153
1153
|
]);
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
});
|
|
1157
|
-
const
|
|
1157
|
+
const bt = {
|
|
1158
1158
|
name: "BsgoalBaseLine"
|
|
1159
|
-
},
|
|
1159
|
+
}, Ae = /* @__PURE__ */ Object.assign(bt, {
|
|
1160
1160
|
props: {
|
|
1161
1161
|
/**
|
|
1162
1162
|
* 是否为垂直
|
|
@@ -1170,7 +1170,7 @@ const yt = {
|
|
|
1170
1170
|
return (s, a) => (n(), b("div", {
|
|
1171
1171
|
class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1172
1172
|
}, [
|
|
1173
|
-
|
|
1173
|
+
O("div", {
|
|
1174
1174
|
class: ge(["base_line", { base_line__vertical: e.vertical }])
|
|
1175
1175
|
}, null, 2)
|
|
1176
1176
|
], 2));
|
|
@@ -1179,15 +1179,15 @@ const yt = {
|
|
|
1179
1179
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1180
1180
|
var se = (e, s) => {
|
|
1181
1181
|
let a = e.__vccOpts || e;
|
|
1182
|
-
for (let [i,
|
|
1183
|
-
a[i] =
|
|
1182
|
+
for (let [i, c] of s)
|
|
1183
|
+
a[i] = c;
|
|
1184
1184
|
return a;
|
|
1185
|
-
},
|
|
1185
|
+
}, yt = {
|
|
1186
1186
|
name: "ArrowDown"
|
|
1187
|
-
},
|
|
1187
|
+
}, xt = {
|
|
1188
1188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1189
1189
|
viewBox: "0 0 1024 1024"
|
|
1190
|
-
},
|
|
1190
|
+
}, At = /* @__PURE__ */ O(
|
|
1191
1191
|
"path",
|
|
1192
1192
|
{
|
|
1193
1193
|
fill: "currentColor",
|
|
@@ -1196,18 +1196,18 @@ var se = (e, s) => {
|
|
|
1196
1196
|
null,
|
|
1197
1197
|
-1
|
|
1198
1198
|
/* HOISTED */
|
|
1199
|
-
),
|
|
1200
|
-
|
|
1199
|
+
), Tt = [
|
|
1200
|
+
At
|
|
1201
1201
|
];
|
|
1202
|
-
function
|
|
1203
|
-
return n(), b("svg",
|
|
1202
|
+
function Vt(e, s, a, i, c, r) {
|
|
1203
|
+
return n(), b("svg", xt, Tt);
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1205
|
+
var Ct = /* @__PURE__ */ se(yt, [["render", Vt], ["__file", "arrow-down.vue"]]), $t = {
|
|
1206
1206
|
name: "ArrowLeft"
|
|
1207
|
-
},
|
|
1207
|
+
}, Mt = {
|
|
1208
1208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1209
1209
|
viewBox: "0 0 1024 1024"
|
|
1210
|
-
},
|
|
1210
|
+
}, Bt = /* @__PURE__ */ O(
|
|
1211
1211
|
"path",
|
|
1212
1212
|
{
|
|
1213
1213
|
fill: "currentColor",
|
|
@@ -1216,18 +1216,18 @@ var $t = /* @__PURE__ */ se(xt, [["render", Ct], ["__file", "arrow-down.vue"]]),
|
|
|
1216
1216
|
null,
|
|
1217
1217
|
-1
|
|
1218
1218
|
/* HOISTED */
|
|
1219
|
-
),
|
|
1220
|
-
|
|
1219
|
+
), Nt = [
|
|
1220
|
+
Bt
|
|
1221
1221
|
];
|
|
1222
|
-
function
|
|
1223
|
-
return n(), b("svg",
|
|
1222
|
+
function wt(e, s, a, i, c, r) {
|
|
1223
|
+
return n(), b("svg", Mt, Nt);
|
|
1224
1224
|
}
|
|
1225
|
-
var
|
|
1225
|
+
var kt = /* @__PURE__ */ se($t, [["render", wt], ["__file", "arrow-left.vue"]]), St = {
|
|
1226
1226
|
name: "ArrowRight"
|
|
1227
|
-
},
|
|
1227
|
+
}, Ot = {
|
|
1228
1228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1229
1229
|
viewBox: "0 0 1024 1024"
|
|
1230
|
-
},
|
|
1230
|
+
}, Dt = /* @__PURE__ */ O(
|
|
1231
1231
|
"path",
|
|
1232
1232
|
{
|
|
1233
1233
|
fill: "currentColor",
|
|
@@ -1236,18 +1236,18 @@ var St = /* @__PURE__ */ se(Mt, [["render", kt], ["__file", "arrow-left.vue"]]),
|
|
|
1236
1236
|
null,
|
|
1237
1237
|
-1
|
|
1238
1238
|
/* HOISTED */
|
|
1239
|
-
),
|
|
1240
|
-
|
|
1239
|
+
), It = [
|
|
1240
|
+
Dt
|
|
1241
1241
|
];
|
|
1242
|
-
function
|
|
1243
|
-
return n(), b("svg",
|
|
1242
|
+
function Rt(e, s, a, i, c, r) {
|
|
1243
|
+
return n(), b("svg", Ot, It);
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1245
|
+
var Ft = /* @__PURE__ */ se(St, [["render", Rt], ["__file", "arrow-right.vue"]]), Ut = {
|
|
1246
1246
|
name: "ArrowUp"
|
|
1247
|
-
},
|
|
1247
|
+
}, Lt = {
|
|
1248
1248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1249
1249
|
viewBox: "0 0 1024 1024"
|
|
1250
|
-
},
|
|
1250
|
+
}, Pt = /* @__PURE__ */ O(
|
|
1251
1251
|
"path",
|
|
1252
1252
|
{
|
|
1253
1253
|
fill: "currentColor",
|
|
@@ -1256,18 +1256,18 @@ var Ut = /* @__PURE__ */ se(Ot, [["render", Ft], ["__file", "arrow-right.vue"]])
|
|
|
1256
1256
|
null,
|
|
1257
1257
|
-1
|
|
1258
1258
|
/* HOISTED */
|
|
1259
|
-
),
|
|
1260
|
-
|
|
1259
|
+
), zt = [
|
|
1260
|
+
Pt
|
|
1261
1261
|
];
|
|
1262
|
-
function
|
|
1263
|
-
return n(), b("svg",
|
|
1262
|
+
function jt(e, s, a, i, c, r) {
|
|
1263
|
+
return n(), b("svg", Lt, zt);
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Gt = /* @__PURE__ */ se(Ut, [["render", jt], ["__file", "arrow-up.vue"]]), Yt = {
|
|
1266
1266
|
name: "Delete"
|
|
1267
|
-
},
|
|
1267
|
+
}, Ht = {
|
|
1268
1268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1269
1269
|
viewBox: "0 0 1024 1024"
|
|
1270
|
-
},
|
|
1270
|
+
}, Wt = /* @__PURE__ */ O(
|
|
1271
1271
|
"path",
|
|
1272
1272
|
{
|
|
1273
1273
|
fill: "currentColor",
|
|
@@ -1276,18 +1276,18 @@ var Yt = /* @__PURE__ */ se(Lt, [["render", Gt], ["__file", "arrow-up.vue"]]), H
|
|
|
1276
1276
|
null,
|
|
1277
1277
|
-1
|
|
1278
1278
|
/* HOISTED */
|
|
1279
|
-
),
|
|
1280
|
-
|
|
1279
|
+
), Xt = [
|
|
1280
|
+
Wt
|
|
1281
1281
|
];
|
|
1282
|
-
function
|
|
1283
|
-
return n(), b("svg",
|
|
1282
|
+
function Kt(e, s, a, i, c, r) {
|
|
1283
|
+
return n(), b("svg", Ht, Xt);
|
|
1284
1284
|
}
|
|
1285
|
-
var
|
|
1285
|
+
var ke = /* @__PURE__ */ se(Yt, [["render", Kt], ["__file", "delete.vue"]]), Qt = {
|
|
1286
1286
|
name: "Plus"
|
|
1287
|
-
},
|
|
1287
|
+
}, Zt = {
|
|
1288
1288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1289
1289
|
viewBox: "0 0 1024 1024"
|
|
1290
|
-
},
|
|
1290
|
+
}, Jt = /* @__PURE__ */ O(
|
|
1291
1291
|
"path",
|
|
1292
1292
|
{
|
|
1293
1293
|
fill: "currentColor",
|
|
@@ -1296,18 +1296,18 @@ var Se = /* @__PURE__ */ se(Ht, [["render", Qt], ["__file", "delete.vue"]]), Zt
|
|
|
1296
1296
|
null,
|
|
1297
1297
|
-1
|
|
1298
1298
|
/* HOISTED */
|
|
1299
|
-
),
|
|
1300
|
-
|
|
1299
|
+
), qt = [
|
|
1300
|
+
Jt
|
|
1301
1301
|
];
|
|
1302
|
-
function
|
|
1303
|
-
return n(), b("svg",
|
|
1302
|
+
function ea(e, s, a, i, c, r) {
|
|
1303
|
+
return n(), b("svg", Zt, qt);
|
|
1304
1304
|
}
|
|
1305
|
-
var
|
|
1305
|
+
var ta = /* @__PURE__ */ se(Qt, [["render", ea], ["__file", "plus.vue"]]), aa = {
|
|
1306
1306
|
name: "Search"
|
|
1307
|
-
},
|
|
1307
|
+
}, la = {
|
|
1308
1308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1309
1309
|
viewBox: "0 0 1024 1024"
|
|
1310
|
-
},
|
|
1310
|
+
}, na = /* @__PURE__ */ O(
|
|
1311
1311
|
"path",
|
|
1312
1312
|
{
|
|
1313
1313
|
fill: "currentColor",
|
|
@@ -1316,16 +1316,16 @@ var aa = /* @__PURE__ */ se(Zt, [["render", ta], ["__file", "plus.vue"]]), la =
|
|
|
1316
1316
|
null,
|
|
1317
1317
|
-1
|
|
1318
1318
|
/* HOISTED */
|
|
1319
|
-
),
|
|
1320
|
-
|
|
1319
|
+
), oa = [
|
|
1320
|
+
na
|
|
1321
1321
|
];
|
|
1322
|
-
function
|
|
1323
|
-
return n(), b("svg",
|
|
1322
|
+
function sa(e, s, a, i, c, r) {
|
|
1323
|
+
return n(), b("svg", la, oa);
|
|
1324
1324
|
}
|
|
1325
|
-
var
|
|
1326
|
-
const
|
|
1325
|
+
var ua = /* @__PURE__ */ se(aa, [["render", sa], ["__file", "search.vue"]]);
|
|
1326
|
+
const ca = { class: "bsgoal-base-search-operation" }, ra = {
|
|
1327
1327
|
name: "BsgoalBaseSearchOperation"
|
|
1328
|
-
},
|
|
1328
|
+
}, ia = /* @__PURE__ */ Object.assign(ra, {
|
|
1329
1329
|
props: {
|
|
1330
1330
|
/**
|
|
1331
1331
|
* 是否显示折叠按钮
|
|
@@ -1337,25 +1337,25 @@ const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
|
1337
1337
|
},
|
|
1338
1338
|
emits: ["on-fold"],
|
|
1339
1339
|
setup(e, { emit: s }) {
|
|
1340
|
-
const a =
|
|
1341
|
-
a.value = !
|
|
1340
|
+
const a = w(!1), i = () => {
|
|
1341
|
+
a.value = !u(a), s("on-fold", a.value);
|
|
1342
1342
|
};
|
|
1343
|
-
return (
|
|
1343
|
+
return (c, r) => {
|
|
1344
1344
|
const t = v("el-button"), d = v("el-icon");
|
|
1345
|
-
return n(), b("div",
|
|
1346
|
-
|
|
1345
|
+
return n(), b("div", ca, [
|
|
1346
|
+
M(t, {
|
|
1347
1347
|
type: "primary",
|
|
1348
|
-
icon:
|
|
1349
|
-
onClick:
|
|
1348
|
+
icon: u(ua),
|
|
1349
|
+
onClick: r[0] || (r[0] = (_) => c.$emit("on-search"))
|
|
1350
1350
|
}, {
|
|
1351
1351
|
default: A(() => [
|
|
1352
1352
|
Y("搜索")
|
|
1353
1353
|
]),
|
|
1354
1354
|
_: 1
|
|
1355
1355
|
}, 8, ["icon"]),
|
|
1356
|
-
|
|
1357
|
-
icon:
|
|
1358
|
-
onClick:
|
|
1356
|
+
M(t, {
|
|
1357
|
+
icon: u(ke),
|
|
1358
|
+
onClick: r[1] || (r[1] = (_) => c.$emit("on-clear"))
|
|
1359
1359
|
}, {
|
|
1360
1360
|
default: A(() => [
|
|
1361
1361
|
Y("清空")
|
|
@@ -1369,25 +1369,25 @@ const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
|
1369
1369
|
onClick: i
|
|
1370
1370
|
}, [
|
|
1371
1371
|
Y(j(a.value ? "收起" : "展开"), 1),
|
|
1372
|
-
|
|
1372
|
+
M(d, { color: "#409EFC" }, {
|
|
1373
1373
|
default: A(() => [
|
|
1374
|
-
J(
|
|
1374
|
+
J(M(u(Gt), null, null, 512), [
|
|
1375
1375
|
[te, a.value]
|
|
1376
1376
|
]),
|
|
1377
|
-
J(
|
|
1377
|
+
J(M(u(Ct), null, null, 512), [
|
|
1378
1378
|
[te, !a.value]
|
|
1379
1379
|
])
|
|
1380
1380
|
]),
|
|
1381
1381
|
_: 1
|
|
1382
1382
|
})
|
|
1383
|
-
])) :
|
|
1383
|
+
])) : $("", !0)
|
|
1384
1384
|
]);
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
1387
|
});
|
|
1388
|
-
const
|
|
1388
|
+
const da = { class: "bsgoal-base-cascader" }, _a = {
|
|
1389
1389
|
name: "BsgoalBaseCascader"
|
|
1390
|
-
},
|
|
1390
|
+
}, ma = /* @__PURE__ */ Object.assign(_a, {
|
|
1391
1391
|
props: {
|
|
1392
1392
|
/**
|
|
1393
1393
|
* 绑定的值
|
|
@@ -1420,16 +1420,16 @@ const _a = { class: "bsgoal-base-cascader" }, ma = {
|
|
|
1420
1420
|
},
|
|
1421
1421
|
emits: ["update:model-value", "on-change"],
|
|
1422
1422
|
setup(e, { emit: s }) {
|
|
1423
|
-
const a =
|
|
1423
|
+
const a = w({
|
|
1424
1424
|
checkStrictly: !0,
|
|
1425
1425
|
multiple: !1
|
|
1426
|
-
}), i = (
|
|
1427
|
-
s("update:model-value",
|
|
1426
|
+
}), i = (c) => {
|
|
1427
|
+
s("update:model-value", c), s("on-change", c);
|
|
1428
1428
|
};
|
|
1429
|
-
return (
|
|
1429
|
+
return (c, r) => {
|
|
1430
1430
|
const t = v("el-cascader");
|
|
1431
|
-
return n(), b("div",
|
|
1432
|
-
|
|
1431
|
+
return n(), b("div", da, [
|
|
1432
|
+
M(t, {
|
|
1433
1433
|
clearable: "",
|
|
1434
1434
|
class: "base_cascader",
|
|
1435
1435
|
"show-all-levels": !1,
|
|
@@ -1443,9 +1443,9 @@ const _a = { class: "bsgoal-base-cascader" }, ma = {
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
const
|
|
1446
|
+
const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va = { key: 1 }, pa = {
|
|
1447
1447
|
name: "BsgoalBaseSearch"
|
|
1448
|
-
},
|
|
1448
|
+
}, ha = /* @__PURE__ */ Object.assign(pa, {
|
|
1449
1449
|
props: {
|
|
1450
1450
|
/**
|
|
1451
1451
|
* >----------props----------<
|
|
@@ -1487,21 +1487,21 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1487
1487
|
},
|
|
1488
1488
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1489
1489
|
setup(e, { expose: s, emit: a }) {
|
|
1490
|
-
const i = e,
|
|
1490
|
+
const i = e, c = w(null), r = ye.align, t = w({});
|
|
1491
1491
|
he(() => {
|
|
1492
1492
|
const { configOptions: x } = i;
|
|
1493
|
-
|
|
1494
|
-
const { value: m, prop: I = "", type: k = "" } =
|
|
1493
|
+
u(x).forEach((N) => {
|
|
1494
|
+
const { value: m, prop: I = "", type: k = "" } = N;
|
|
1495
1495
|
[l.INPUT, l.INPUT_TEXT_AREA].includes(k), t.value[I] = [0, !1].includes(m) ? m : "";
|
|
1496
1496
|
});
|
|
1497
1497
|
});
|
|
1498
1498
|
const d = Z(() => {
|
|
1499
|
-
const { configOptions: x } = i, T =
|
|
1499
|
+
const { configOptions: x } = i, T = u(x), N = {
|
|
1500
1500
|
type: l.OPERATION
|
|
1501
1501
|
};
|
|
1502
|
-
return [...T,
|
|
1503
|
-
}), _ = (x = "", T = "",
|
|
1504
|
-
if (!
|
|
1502
|
+
return [...T, N];
|
|
1503
|
+
}), _ = (x = "", T = "", N = "") => {
|
|
1504
|
+
if (!N)
|
|
1505
1505
|
switch (x) {
|
|
1506
1506
|
case l.INPUT:
|
|
1507
1507
|
case l.INPUT_TEXT_AREA:
|
|
@@ -1523,7 +1523,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1523
1523
|
case l.MONTH_RANGE:
|
|
1524
1524
|
return ["开始月份", "结束月份"];
|
|
1525
1525
|
}
|
|
1526
|
-
return
|
|
1526
|
+
return N;
|
|
1527
1527
|
}, V = (x = "", T = "") => {
|
|
1528
1528
|
if (!T)
|
|
1529
1529
|
switch (x) {
|
|
@@ -1546,15 +1546,15 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1546
1546
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1547
1547
|
}
|
|
1548
1548
|
return T;
|
|
1549
|
-
},
|
|
1550
|
-
const { configOptions: x } = i, T =
|
|
1551
|
-
for (const I of
|
|
1549
|
+
}, C = () => {
|
|
1550
|
+
const { configOptions: x } = i, T = u(t), N = u(x), m = {};
|
|
1551
|
+
for (const I of N) {
|
|
1552
1552
|
const { type: k = "", range: L = [], prop: F = "", single: H = !1 } = I, R = T[F];
|
|
1553
1553
|
if ([l.CASCADER].includes(k) && Array.isArray(R) && H) {
|
|
1554
1554
|
const W = R.length;
|
|
1555
1555
|
W ? m[F] = R[W - 1] : m[F] = R;
|
|
1556
1556
|
} else
|
|
1557
|
-
|
|
1557
|
+
Re(R) ? m[F] = Fe(R) : m[F] = R;
|
|
1558
1558
|
if (k.endsWith("range") && L && L.length === 2) {
|
|
1559
1559
|
const { 0: W = "", 1: ee = "" } = R, { 0: ae = "", 1: le = "" } = L;
|
|
1560
1560
|
m[ae] = W, m[le] = ee;
|
|
@@ -1562,37 +1562,37 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1562
1562
|
}
|
|
1563
1563
|
a("on-search", m), a("update:modelValue", m);
|
|
1564
1564
|
};
|
|
1565
|
-
|
|
1566
|
-
|
|
1565
|
+
Ce(() => {
|
|
1566
|
+
C();
|
|
1567
1567
|
});
|
|
1568
|
-
const
|
|
1569
|
-
|
|
1570
|
-
},
|
|
1571
|
-
U.value = x,
|
|
1568
|
+
const D = () => {
|
|
1569
|
+
c.value.resetFields(), a("on-clear", t.value);
|
|
1570
|
+
}, B = $e("transferFoldStatus"), U = w(!1), S = (x = !1) => {
|
|
1571
|
+
U.value = x, B && (B.value = x), a("on-fold", U);
|
|
1572
1572
|
}, p = (x, T) => {
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1573
|
+
C();
|
|
1574
|
+
const N = {
|
|
1575
1575
|
type: x,
|
|
1576
1576
|
prop: T,
|
|
1577
1577
|
value: t.value[T] || ""
|
|
1578
1578
|
};
|
|
1579
|
-
a("on-change",
|
|
1579
|
+
a("on-change", N);
|
|
1580
1580
|
};
|
|
1581
1581
|
return s({
|
|
1582
|
-
triggerOperationSearch:
|
|
1582
|
+
triggerOperationSearch: C
|
|
1583
1583
|
}), (x, T) => {
|
|
1584
|
-
const
|
|
1585
|
-
return n(), b("div",
|
|
1586
|
-
|
|
1584
|
+
const N = v("el-input"), m = v("el-input-number"), I = v("el-radio"), k = v("el-radio-group"), L = v("el-option"), F = v("el-select"), H = v("el-slider"), R = v("el-switch"), W = v("el-date-picker"), ee = v("el-time-picker"), ae = v("el-checkbox"), le = v("el-checkbox-group"), re = v("el-form-item"), ie = v("el-col"), ue = v("el-row"), X = v("el-form");
|
|
1585
|
+
return n(), b("div", ga, [
|
|
1586
|
+
O("div", fa, [
|
|
1587
1587
|
J((n(), y(X, {
|
|
1588
1588
|
ref_key: "EL_FORM_REF",
|
|
1589
|
-
ref:
|
|
1589
|
+
ref: c,
|
|
1590
1590
|
"label-suffix": ":",
|
|
1591
1591
|
"show-message": !1,
|
|
1592
1592
|
model: t.value
|
|
1593
1593
|
}, {
|
|
1594
1594
|
default: A(() => [
|
|
1595
|
-
|
|
1595
|
+
M(ue, null, {
|
|
1596
1596
|
default: A(() => [
|
|
1597
1597
|
(n(!0), b(P, null, Q(d.value, ({
|
|
1598
1598
|
label: g = "",
|
|
@@ -1613,20 +1613,20 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1613
1613
|
md: e.medium
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: A(() => [
|
|
1616
|
-
|
|
1616
|
+
M(re, {
|
|
1617
1617
|
label: g,
|
|
1618
1618
|
prop: o
|
|
1619
1619
|
}, {
|
|
1620
1620
|
default: A(() => [
|
|
1621
|
-
fe ? (n(), b("div",
|
|
1622
|
-
f ===
|
|
1621
|
+
fe ? (n(), b("div", va, j(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
|
|
1622
|
+
f === u(l).INPUT ? (n(), y(N, {
|
|
1623
1623
|
key: 0,
|
|
1624
1624
|
modelValue: t.value[o],
|
|
1625
1625
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1626
1626
|
placeholder: _(f, g, G),
|
|
1627
1627
|
clearable: ve
|
|
1628
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) :
|
|
1629
|
-
f ===
|
|
1628
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : $("", !0),
|
|
1629
|
+
f === u(l).INPUT_TEXT_AREA ? (n(), y(N, {
|
|
1630
1630
|
key: 1,
|
|
1631
1631
|
modelValue: t.value[o],
|
|
1632
1632
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
@@ -1635,16 +1635,16 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1635
1635
|
clearable: ve,
|
|
1636
1636
|
placeholder: _(f, g, G),
|
|
1637
1637
|
onChange: (h) => p(f, o)
|
|
1638
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
1639
|
-
f ===
|
|
1638
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
1639
|
+
f === u(l).INPUT_NUMBER ? (n(), y(m, {
|
|
1640
1640
|
key: 2,
|
|
1641
1641
|
modelValue: x.num,
|
|
1642
1642
|
"onUpdate:modelValue": T[0] || (T[0] = (h) => x.num = h),
|
|
1643
1643
|
min: de,
|
|
1644
1644
|
max: z,
|
|
1645
1645
|
onChange: p
|
|
1646
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
1647
|
-
f ===
|
|
1646
|
+
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
1647
|
+
f === u(l).RADIO ? (n(), y(k, {
|
|
1648
1648
|
key: 3,
|
|
1649
1649
|
modelValue: t.value[o],
|
|
1650
1650
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
@@ -1662,8 +1662,8 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1662
1662
|
}, 1032, ["label"]))), 128))
|
|
1663
1663
|
]),
|
|
1664
1664
|
_: 2
|
|
1665
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1666
|
-
f ===
|
|
1665
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1666
|
+
f === u(l).SELECT ? (n(), y(F, {
|
|
1667
1667
|
key: 4,
|
|
1668
1668
|
modelValue: t.value[o],
|
|
1669
1669
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
@@ -1678,24 +1678,24 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1678
1678
|
}, null, 8, ["label", "value"]))), 128))
|
|
1679
1679
|
]),
|
|
1680
1680
|
_: 2
|
|
1681
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
1682
|
-
f ===
|
|
1681
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
1682
|
+
f === u(l).SLIDER ? (n(), y(H, {
|
|
1683
1683
|
key: 5,
|
|
1684
1684
|
modelValue: t.value[o],
|
|
1685
1685
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1686
1686
|
min: de,
|
|
1687
1687
|
max: z,
|
|
1688
1688
|
onChange: (h) => p(f, o)
|
|
1689
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
1690
|
-
f ===
|
|
1689
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
1690
|
+
f === u(l).SWITCH ? (n(), y(R, {
|
|
1691
1691
|
key: 6,
|
|
1692
1692
|
modelValue: t.value[o],
|
|
1693
1693
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1694
1694
|
"active-value": K[0] || !0,
|
|
1695
1695
|
"inactive-value": K[1] || !1,
|
|
1696
1696
|
onChange: (h) => p(f, o)
|
|
1697
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
1698
|
-
[
|
|
1697
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
1698
|
+
[u(l).DATE, u(l).MONTH, u(l).YEAR, u(l).DATE_TIME].includes(
|
|
1699
1699
|
f
|
|
1700
1700
|
) ? (n(), y(W, {
|
|
1701
1701
|
key: 7,
|
|
@@ -1706,11 +1706,11 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1706
1706
|
type: f,
|
|
1707
1707
|
placeholder: _(f, g, G),
|
|
1708
1708
|
onChange: (h) => p(f, o)
|
|
1709
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
1709
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
1710
1710
|
[
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1711
|
+
u(l).DATE_RANGE,
|
|
1712
|
+
u(l).MONTH_RANGE,
|
|
1713
|
+
u(l).DATE_TIME_RANGE
|
|
1714
1714
|
].includes(f) ? (n(), y(W, {
|
|
1715
1715
|
key: 8,
|
|
1716
1716
|
modelValue: t.value[o],
|
|
@@ -1720,8 +1720,8 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1720
1720
|
"start-placeholder": _(f, g, G)[0],
|
|
1721
1721
|
"end-placeholder": _(f, g, G)[1],
|
|
1722
1722
|
onChange: (h) => p(f, o)
|
|
1723
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1724
|
-
[
|
|
1723
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1724
|
+
[u(l).TIME].includes(f) ? (n(), y(ee, {
|
|
1725
1725
|
key: 9,
|
|
1726
1726
|
modelValue: t.value[o],
|
|
1727
1727
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
@@ -1729,8 +1729,8 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1729
1729
|
"value-format": V(f, ne),
|
|
1730
1730
|
placeholder: _(f, g, G),
|
|
1731
1731
|
onChange: (h) => p(f, o)
|
|
1732
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
1733
|
-
[
|
|
1732
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
1733
|
+
[u(l).TIME_RANGE].includes(f) ? (n(), y(ee, {
|
|
1734
1734
|
key: 10,
|
|
1735
1735
|
modelValue: t.value[o],
|
|
1736
1736
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
@@ -1739,8 +1739,8 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1739
1739
|
"start-placeholder": _(f, g, G)[0],
|
|
1740
1740
|
"end-placeholder": _(f, g, G)[1],
|
|
1741
1741
|
onChange: (h) => p(f, o)
|
|
1742
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1743
|
-
[
|
|
1742
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1743
|
+
[u(l).CHECKBOX].includes(f) ? (n(), y(le, {
|
|
1744
1744
|
key: 11,
|
|
1745
1745
|
modelValue: t.value[o],
|
|
1746
1746
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
@@ -1758,23 +1758,23 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1758
1758
|
}, 1032, ["label"]))), 128))
|
|
1759
1759
|
]),
|
|
1760
1760
|
_: 2
|
|
1761
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1762
|
-
[
|
|
1761
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1762
|
+
[u(l).CASCADER].includes(f) ? (n(), y(ma, {
|
|
1763
1763
|
key: 12,
|
|
1764
1764
|
modelValue: t.value[o],
|
|
1765
1765
|
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1766
1766
|
"data-options": K,
|
|
1767
1767
|
placeholder: _(f, g, G),
|
|
1768
1768
|
onOnChange: (h) => p(f, o)
|
|
1769
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) :
|
|
1770
|
-
[].includes(f) ? (n(), b(P, { key: 13 }, [], 64)) :
|
|
1771
|
-
[
|
|
1769
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
|
|
1770
|
+
[].includes(f) ? (n(), b(P, { key: 13 }, [], 64)) : $("", !0),
|
|
1771
|
+
[u(l).OPERATION].includes(f) ? (n(), y(ia, {
|
|
1772
1772
|
key: 14,
|
|
1773
1773
|
fold: ce >= 7,
|
|
1774
|
-
onOnSearch:
|
|
1775
|
-
onOnClear:
|
|
1776
|
-
onOnFold:
|
|
1777
|
-
}, null, 8, ["fold"])) :
|
|
1774
|
+
onOnSearch: C,
|
|
1775
|
+
onOnClear: D,
|
|
1776
|
+
onOnFold: S
|
|
1777
|
+
}, null, 8, ["fold"])) : $("", !0)
|
|
1778
1778
|
], 64))
|
|
1779
1779
|
]),
|
|
1780
1780
|
_: 2
|
|
@@ -1782,7 +1782,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1782
1782
|
]),
|
|
1783
1783
|
_: 2
|
|
1784
1784
|
}, 1032, ["md"])), [
|
|
1785
|
-
[te, ce < 7 || f ===
|
|
1785
|
+
[te, ce < 7 || f === u(l).OPERATION || ce >= 7 && U.value]
|
|
1786
1786
|
])), 128))
|
|
1787
1787
|
]),
|
|
1788
1788
|
_: 1
|
|
@@ -1790,17 +1790,17 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa =
|
|
|
1790
1790
|
]),
|
|
1791
1791
|
_: 1
|
|
1792
1792
|
}, 8, ["model"])), [
|
|
1793
|
-
[
|
|
1793
|
+
[u(r)]
|
|
1794
1794
|
])
|
|
1795
1795
|
]),
|
|
1796
|
-
|
|
1796
|
+
M(Ae)
|
|
1797
1797
|
]);
|
|
1798
1798
|
};
|
|
1799
1799
|
}
|
|
1800
1800
|
});
|
|
1801
|
-
const
|
|
1801
|
+
const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_table" }, ya = {
|
|
1802
1802
|
name: "BsgoalBaseSearchTable"
|
|
1803
|
-
},
|
|
1803
|
+
}, xa = /* @__PURE__ */ Object.assign(ya, {
|
|
1804
1804
|
props: {
|
|
1805
1805
|
/**
|
|
1806
1806
|
* >----------props----------<
|
|
@@ -1907,37 +1907,37 @@ const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_tab
|
|
|
1907
1907
|
}
|
|
1908
1908
|
},
|
|
1909
1909
|
setup(e, { expose: s }) {
|
|
1910
|
-
const a = e, i =
|
|
1911
|
-
|
|
1912
|
-
const
|
|
1913
|
-
const { type: p = "" } =
|
|
1910
|
+
const a = e, i = w(!1);
|
|
1911
|
+
Ue("transferFoldStatus", i);
|
|
1912
|
+
const c = u(a.configOptions), r = Z(() => c.filter((S) => {
|
|
1913
|
+
const { type: p = "" } = S;
|
|
1914
1914
|
return !!p;
|
|
1915
|
-
})), t = Z(() =>
|
|
1916
|
-
const { item: p = !1 } =
|
|
1915
|
+
})), t = Z(() => c.filter((S) => {
|
|
1916
|
+
const { item: p = !1 } = S;
|
|
1917
1917
|
return !p;
|
|
1918
|
-
})), d =
|
|
1919
|
-
V.value.refreshList(
|
|
1920
|
-
},
|
|
1921
|
-
const { expression:
|
|
1922
|
-
return p === !1 ? 25 :
|
|
1923
|
-
}),
|
|
1918
|
+
})), d = Me(), _ = w(Object.keys(d)), V = w(null), C = (S) => {
|
|
1919
|
+
V.value.refreshList(S);
|
|
1920
|
+
}, D = Z(() => {
|
|
1921
|
+
const { expression: S, hasPage: p } = a;
|
|
1922
|
+
return p === !1 ? 25 : S;
|
|
1923
|
+
}), B = w(null);
|
|
1924
1924
|
return s({
|
|
1925
1925
|
refresh: () => {
|
|
1926
|
-
const { hasSearch:
|
|
1927
|
-
|
|
1926
|
+
const { hasSearch: S } = a;
|
|
1927
|
+
u(S) && B.value.triggerOperationSearch();
|
|
1928
1928
|
}
|
|
1929
|
-
}), (
|
|
1930
|
-
|
|
1931
|
-
J(
|
|
1929
|
+
}), (S, p) => (n(), b("div", Ea, [
|
|
1930
|
+
O("div", ba, [
|
|
1931
|
+
J(M(ha, {
|
|
1932
1932
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
1933
|
-
ref:
|
|
1934
|
-
"config-options":
|
|
1935
|
-
onOnSearch:
|
|
1936
|
-
onOnClear:
|
|
1933
|
+
ref: B,
|
|
1934
|
+
"config-options": r.value,
|
|
1935
|
+
onOnSearch: C,
|
|
1936
|
+
onOnClear: C
|
|
1937
1937
|
}, null, 8, ["config-options"]), [
|
|
1938
1938
|
[te, e.hasSearch]
|
|
1939
1939
|
]),
|
|
1940
|
-
|
|
1940
|
+
M(we, {
|
|
1941
1941
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1942
1942
|
ref: V,
|
|
1943
1943
|
"map-props": e.mapProps,
|
|
@@ -1946,15 +1946,15 @@ const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_tab
|
|
|
1946
1946
|
data: e.tableData,
|
|
1947
1947
|
selection: e.selection,
|
|
1948
1948
|
operation: e.operation,
|
|
1949
|
-
expression:
|
|
1949
|
+
expression: D.value,
|
|
1950
1950
|
fetch: e.fetch,
|
|
1951
1951
|
call: e.call,
|
|
1952
1952
|
"has-page": e.hasPage
|
|
1953
|
-
},
|
|
1953
|
+
}, Le({ _: 2 }, [
|
|
1954
1954
|
Q(_.value, (x) => ({
|
|
1955
1955
|
name: x,
|
|
1956
1956
|
fn: A(({ row: T = {} }) => [
|
|
1957
|
-
q(
|
|
1957
|
+
q(S.$slots, x, { row: T })
|
|
1958
1958
|
])
|
|
1959
1959
|
}))
|
|
1960
1960
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1962,30 +1962,30 @@ const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_tab
|
|
|
1962
1962
|
]));
|
|
1963
1963
|
}
|
|
1964
1964
|
});
|
|
1965
|
-
const
|
|
1965
|
+
const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
1966
1966
|
name: "BsgoalBaseTreeFold"
|
|
1967
|
-
},
|
|
1967
|
+
}, Va = /* @__PURE__ */ Object.assign(Ta, {
|
|
1968
1968
|
props: ["modelValue"],
|
|
1969
1969
|
emits: ["update:modelValue"],
|
|
1970
1970
|
setup(e, { emit: s }) {
|
|
1971
|
-
let a =
|
|
1971
|
+
let a = w(!0);
|
|
1972
1972
|
const i = () => {
|
|
1973
1973
|
a.value = !a.value, s("update:modelValue", a.value);
|
|
1974
1974
|
};
|
|
1975
|
-
return (
|
|
1975
|
+
return (c, r) => {
|
|
1976
1976
|
const t = v("el-icon");
|
|
1977
|
-
return n(), b("div",
|
|
1978
|
-
|
|
1979
|
-
class: ge(["base_tree_fold", { "base_tree_fold--hide": !
|
|
1977
|
+
return n(), b("div", Aa, [
|
|
1978
|
+
O("div", {
|
|
1979
|
+
class: ge(["base_tree_fold", { "base_tree_fold--hide": !u(a) }]),
|
|
1980
1980
|
onClick: i
|
|
1981
1981
|
}, [
|
|
1982
|
-
|
|
1982
|
+
M(t, { color: "#fff" }, {
|
|
1983
1983
|
default: A(() => [
|
|
1984
|
-
J(
|
|
1985
|
-
[te,
|
|
1984
|
+
J(M(u(kt), null, null, 512), [
|
|
1985
|
+
[te, u(a)]
|
|
1986
1986
|
]),
|
|
1987
|
-
J(
|
|
1988
|
-
[te, !
|
|
1987
|
+
J(M(u(Ft), null, null, 512), [
|
|
1988
|
+
[te, !u(a)]
|
|
1989
1989
|
])
|
|
1990
1990
|
]),
|
|
1991
1991
|
_: 1
|
|
@@ -1995,9 +1995,9 @@ const Ta = { class: "bsgoal-base-tree-fold" }, Va = {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
const
|
|
1998
|
+
const Ca = { class: "bsgoal-base-tree" }, $a = { class: "base_tree" }, Ma = { class: "base_tree_main" }, Ba = {
|
|
1999
1999
|
name: "BsgoalBaseTree"
|
|
2000
|
-
},
|
|
2000
|
+
}, Na = /* @__PURE__ */ Object.assign(Ba, {
|
|
2001
2001
|
props: {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* 树结构 的下边距
|
|
@@ -2051,39 +2051,39 @@ const $a = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { cl
|
|
|
2051
2051
|
},
|
|
2052
2052
|
emits: ["on-click"],
|
|
2053
2053
|
setup(e, { emit: s }) {
|
|
2054
|
-
const a = e, i =
|
|
2055
|
-
me(
|
|
2056
|
-
|
|
2054
|
+
const a = e, i = ye.height, c = w(""), r = w(null);
|
|
2055
|
+
me(c, (C) => {
|
|
2056
|
+
r.value.filter(C);
|
|
2057
2057
|
});
|
|
2058
|
-
const t = (
|
|
2059
|
-
s("on-click",
|
|
2060
|
-
}, V = async (
|
|
2061
|
-
if (
|
|
2062
|
-
const U = await
|
|
2063
|
-
return
|
|
2058
|
+
const t = (C, D) => C ? D.label.includes(C) : !0, d = w(!0), _ = (C, D, B, U) => {
|
|
2059
|
+
s("on-click", C, D, B, U);
|
|
2060
|
+
}, V = async (C, D, B) => {
|
|
2061
|
+
if (C.level === 0) {
|
|
2062
|
+
const U = await B.initNode(C);
|
|
2063
|
+
return D(U || []);
|
|
2064
2064
|
} else {
|
|
2065
|
-
const U = await
|
|
2066
|
-
|
|
2065
|
+
const U = await B.lazyLoad(C);
|
|
2066
|
+
D(U || []);
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
|
-
return (
|
|
2070
|
-
const
|
|
2071
|
-
return n(), b("div",
|
|
2072
|
-
J((n(), b("div",
|
|
2073
|
-
J(
|
|
2074
|
-
|
|
2075
|
-
modelValue:
|
|
2076
|
-
"onUpdate:modelValue":
|
|
2069
|
+
return (C, D) => {
|
|
2070
|
+
const B = v("el-input"), U = v("el-tree");
|
|
2071
|
+
return n(), b("div", Ca, [
|
|
2072
|
+
J((n(), b("div", $a, [
|
|
2073
|
+
J(O("div", Ma, [
|
|
2074
|
+
M(B, {
|
|
2075
|
+
modelValue: c.value,
|
|
2076
|
+
"onUpdate:modelValue": D[0] || (D[0] = (S) => c.value = S),
|
|
2077
2077
|
class: "base_tree_main_input",
|
|
2078
2078
|
placeholder: "输入关键字过滤"
|
|
2079
2079
|
}, null, 8, ["modelValue"]),
|
|
2080
|
-
|
|
2080
|
+
M(U, {
|
|
2081
2081
|
ref_key: "EL_TREE_REF",
|
|
2082
|
-
ref:
|
|
2082
|
+
ref: r,
|
|
2083
2083
|
lazy: "",
|
|
2084
2084
|
"highlight-current": "",
|
|
2085
2085
|
"empty-text": "暂无数据",
|
|
2086
|
-
load: (
|
|
2086
|
+
load: (S, p) => V(S, p, a),
|
|
2087
2087
|
"expand-on-click-node": !1,
|
|
2088
2088
|
props: e.treeProps,
|
|
2089
2089
|
"filter-node-method": t,
|
|
@@ -2092,23 +2092,23 @@ const $a = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { cl
|
|
|
2092
2092
|
], 512), [
|
|
2093
2093
|
[te, d.value]
|
|
2094
2094
|
]),
|
|
2095
|
-
J(
|
|
2095
|
+
J(M(Ae, { vertical: "" }, null, 512), [
|
|
2096
2096
|
[te, d.value]
|
|
2097
2097
|
]),
|
|
2098
|
-
|
|
2098
|
+
M(Va, {
|
|
2099
2099
|
modelValue: d.value,
|
|
2100
|
-
"onUpdate:modelValue":
|
|
2100
|
+
"onUpdate:modelValue": D[1] || (D[1] = (S) => d.value = S)
|
|
2101
2101
|
}, null, 8, ["modelValue"])
|
|
2102
2102
|
])), [
|
|
2103
|
-
[
|
|
2103
|
+
[u(i), e.gasket]
|
|
2104
2104
|
])
|
|
2105
2105
|
]);
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
2108
|
});
|
|
2109
|
-
const
|
|
2109
|
+
const wa = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa = { class: "base_dialog_header" }, Oa = { class: "base_dialog_footer" }, Da = {
|
|
2110
2110
|
name: "BsgoalBaseDialog"
|
|
2111
|
-
},
|
|
2111
|
+
}, Ia = /* @__PURE__ */ Object.assign(Da, {
|
|
2112
2112
|
props: {
|
|
2113
2113
|
/**
|
|
2114
2114
|
* 弹窗状态
|
|
@@ -2170,9 +2170,9 @@ const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa =
|
|
|
2170
2170
|
},
|
|
2171
2171
|
emits: ["update:modelValue", "on-confirm"],
|
|
2172
2172
|
setup(e, { emit: s }) {
|
|
2173
|
-
const a = e, i =
|
|
2173
|
+
const a = e, i = w(a.modelValue.value), c = () => {
|
|
2174
2174
|
i.value = !1;
|
|
2175
|
-
},
|
|
2175
|
+
}, r = () => {
|
|
2176
2176
|
s("on-confirm", () => {
|
|
2177
2177
|
i.value = !1;
|
|
2178
2178
|
});
|
|
@@ -2205,31 +2205,31 @@ const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa =
|
|
|
2205
2205
|
}
|
|
2206
2206
|
});
|
|
2207
2207
|
return (d, _) => {
|
|
2208
|
-
const V = v("el-button"),
|
|
2209
|
-
return n(), b("div",
|
|
2210
|
-
|
|
2211
|
-
|
|
2208
|
+
const V = v("el-button"), C = v("el-dialog");
|
|
2209
|
+
return n(), b("div", wa, [
|
|
2210
|
+
O("div", ka, [
|
|
2211
|
+
M(C, {
|
|
2212
2212
|
modelValue: i.value,
|
|
2213
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2213
|
+
"onUpdate:modelValue": _[0] || (_[0] = (D) => i.value = D),
|
|
2214
2214
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2215
2215
|
class: ge({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2216
2216
|
width: t.value
|
|
2217
2217
|
}, {
|
|
2218
2218
|
header: A(() => [
|
|
2219
|
-
|
|
2219
|
+
O("div", Sa, j(e.title), 1)
|
|
2220
2220
|
]),
|
|
2221
2221
|
footer: A(() => [
|
|
2222
2222
|
e.footer ? q(d.$slots, "footer", { key: 0 }, () => [
|
|
2223
|
-
|
|
2224
|
-
|
|
2223
|
+
O("span", Oa, [
|
|
2224
|
+
M(V, { onClick: c }, {
|
|
2225
2225
|
default: A(() => [
|
|
2226
2226
|
Y(j(e.cancelTxt), 1)
|
|
2227
2227
|
]),
|
|
2228
2228
|
_: 1
|
|
2229
2229
|
}),
|
|
2230
|
-
|
|
2230
|
+
M(V, {
|
|
2231
2231
|
type: "primary",
|
|
2232
|
-
onClick:
|
|
2232
|
+
onClick: r
|
|
2233
2233
|
}, {
|
|
2234
2234
|
default: A(() => [
|
|
2235
2235
|
Y(j(e.confirmTxt), 1)
|
|
@@ -2237,10 +2237,10 @@ const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa =
|
|
|
2237
2237
|
_: 1
|
|
2238
2238
|
})
|
|
2239
2239
|
])
|
|
2240
|
-
]) :
|
|
2240
|
+
]) : $("", !0)
|
|
2241
2241
|
]),
|
|
2242
2242
|
default: A(() => [
|
|
2243
|
-
|
|
2243
|
+
O("div", {
|
|
2244
2244
|
class: ge(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2245
2245
|
}, [
|
|
2246
2246
|
q(d.$slots, "default")
|
|
@@ -2253,9 +2253,9 @@ const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa =
|
|
|
2253
2253
|
};
|
|
2254
2254
|
}
|
|
2255
2255
|
});
|
|
2256
|
-
const
|
|
2256
|
+
const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
2257
2257
|
name: "BsgoalBaseTabs"
|
|
2258
|
-
},
|
|
2258
|
+
}, Ua = /* @__PURE__ */ Object.assign(Fa, {
|
|
2259
2259
|
props: {
|
|
2260
2260
|
/**
|
|
2261
2261
|
* 配置项
|
|
@@ -2298,29 +2298,29 @@ const Fa = { class: "bsgoal-base-tabs" }, Ua = {
|
|
|
2298
2298
|
emits: ["update:modelValue"],
|
|
2299
2299
|
setup(e, { emit: s }) {
|
|
2300
2300
|
const a = e, i = Z(() => {
|
|
2301
|
-
const { modelValue:
|
|
2302
|
-
return
|
|
2303
|
-
}),
|
|
2304
|
-
s("update:modelValue",
|
|
2301
|
+
const { modelValue: r = "", configOptions: t = [] } = a, d = u(t).map((V) => V.value);
|
|
2302
|
+
return u(r) || d[0];
|
|
2303
|
+
}), c = (r = "") => {
|
|
2304
|
+
s("update:modelValue", r);
|
|
2305
2305
|
};
|
|
2306
|
-
return (
|
|
2306
|
+
return (r, t) => {
|
|
2307
2307
|
const d = v("el-tab-pane"), _ = v("el-tabs");
|
|
2308
|
-
return n(), b("div",
|
|
2309
|
-
|
|
2308
|
+
return n(), b("div", Ra, [
|
|
2309
|
+
M(_, {
|
|
2310
2310
|
class: "bsgoal_base_tabs",
|
|
2311
2311
|
stretch: e.stretch,
|
|
2312
2312
|
type: e.type,
|
|
2313
2313
|
"model-value": i.value,
|
|
2314
|
-
onTabChange:
|
|
2314
|
+
onTabChange: c
|
|
2315
2315
|
}, {
|
|
2316
2316
|
default: A(() => [
|
|
2317
|
-
(n(!0), b(P, null, Q(e.configOptions, ({ label: V, value:
|
|
2318
|
-
key:
|
|
2317
|
+
(n(!0), b(P, null, Q(e.configOptions, ({ label: V, value: C }, D) => (n(), y(d, {
|
|
2318
|
+
key: D,
|
|
2319
2319
|
label: V,
|
|
2320
|
-
name:
|
|
2320
|
+
name: C
|
|
2321
2321
|
}, {
|
|
2322
2322
|
default: A(() => [
|
|
2323
|
-
q(
|
|
2323
|
+
q(r.$slots, C, {}, () => [
|
|
2324
2324
|
Y(j(V), 1)
|
|
2325
2325
|
])
|
|
2326
2326
|
]),
|
|
@@ -2333,9 +2333,9 @@ const Fa = { class: "bsgoal-base-tabs" }, Ua = {
|
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
2335
|
});
|
|
2336
|
-
const
|
|
2336
|
+
const La = { class: "bsgoal-base-link" }, Pa = {
|
|
2337
2337
|
name: "BsgoalBaseLink"
|
|
2338
|
-
},
|
|
2338
|
+
}, za = /* @__PURE__ */ Object.assign(Pa, {
|
|
2339
2339
|
props: {
|
|
2340
2340
|
/**
|
|
2341
2341
|
* 内容
|
|
@@ -2364,14 +2364,14 @@ const Pa = { class: "bsgoal-base-link" }, za = {
|
|
|
2364
2364
|
const a = () => {
|
|
2365
2365
|
s("on-click");
|
|
2366
2366
|
};
|
|
2367
|
-
return (i,
|
|
2368
|
-
const
|
|
2369
|
-
return n(), b("div",
|
|
2370
|
-
|
|
2367
|
+
return (i, c) => {
|
|
2368
|
+
const r = v("el-link");
|
|
2369
|
+
return n(), b("div", La, [
|
|
2370
|
+
M(r, {
|
|
2371
2371
|
class: "bsgoal_base_link",
|
|
2372
2372
|
type: "primary",
|
|
2373
2373
|
underline: e.underline,
|
|
2374
|
-
style:
|
|
2374
|
+
style: Pe(e.styler),
|
|
2375
2375
|
onClick: a
|
|
2376
2376
|
}, {
|
|
2377
2377
|
default: A(() => [
|
|
@@ -2384,10 +2384,10 @@ const Pa = { class: "bsgoal-base-link" }, za = {
|
|
|
2384
2384
|
]);
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
2387
|
-
}),
|
|
2388
|
-
const
|
|
2387
|
+
}), ja = /* @__PURE__ */ Ne(za, [["__scopeId", "data-v-3b0290b0"]]);
|
|
2388
|
+
const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
2389
2389
|
name: "BsgoalBaseButton"
|
|
2390
|
-
},
|
|
2390
|
+
}, Ha = /* @__PURE__ */ Object.assign(Ya, {
|
|
2391
2391
|
props: {
|
|
2392
2392
|
task: {
|
|
2393
2393
|
type: [Object, Function],
|
|
@@ -2423,40 +2423,40 @@ const Ya = { class: "bsgoal-base-button" }, Ha = {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
},
|
|
2425
2425
|
setup(e) {
|
|
2426
|
-
const s = e, a =
|
|
2426
|
+
const s = e, a = w(!1), i = () => {
|
|
2427
2427
|
a.value = !0;
|
|
2428
2428
|
const { task: t } = s;
|
|
2429
|
-
|
|
2429
|
+
u(t)(() => {
|
|
2430
2430
|
a.value = !1;
|
|
2431
2431
|
}, s.values);
|
|
2432
|
-
},
|
|
2432
|
+
}, c = Z(() => {
|
|
2433
2433
|
const { mode: t = "", type: d = "" } = s;
|
|
2434
2434
|
switch (t) {
|
|
2435
2435
|
case "delete":
|
|
2436
2436
|
return "danger";
|
|
2437
2437
|
}
|
|
2438
2438
|
return d;
|
|
2439
|
-
}),
|
|
2439
|
+
}), r = Z(() => {
|
|
2440
2440
|
const { mode: t = "", icon: d = "" } = s;
|
|
2441
2441
|
switch (t) {
|
|
2442
2442
|
case "delete":
|
|
2443
|
-
return
|
|
2443
|
+
return ke;
|
|
2444
2444
|
case "add":
|
|
2445
|
-
return
|
|
2445
|
+
return ta;
|
|
2446
2446
|
}
|
|
2447
2447
|
return d;
|
|
2448
2448
|
});
|
|
2449
2449
|
return (t, d) => {
|
|
2450
2450
|
const _ = v("el-button");
|
|
2451
|
-
return n(), b("div",
|
|
2452
|
-
|
|
2451
|
+
return n(), b("div", Ga, [
|
|
2452
|
+
O("div", {
|
|
2453
2453
|
class: "base_button",
|
|
2454
2454
|
onClick: i
|
|
2455
2455
|
}, [
|
|
2456
2456
|
q(t.$slots, "default", { loading: a.value }, () => [
|
|
2457
|
-
|
|
2458
|
-
type:
|
|
2459
|
-
icon:
|
|
2457
|
+
M(_, {
|
|
2458
|
+
type: c.value,
|
|
2459
|
+
icon: r.value,
|
|
2460
2460
|
loading: a.value,
|
|
2461
2461
|
plain: e.plain
|
|
2462
2462
|
}, {
|
|
@@ -2471,9 +2471,9 @@ const Ya = { class: "bsgoal-base-button" }, Ha = {
|
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
2473
|
});
|
|
2474
|
-
const
|
|
2474
|
+
const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
2475
2475
|
name: "BsgoalBaseLayout"
|
|
2476
|
-
},
|
|
2476
|
+
}, Ka = /* @__PURE__ */ Object.assign(Xa, {
|
|
2477
2477
|
props: {
|
|
2478
2478
|
/**
|
|
2479
2479
|
* 间隔
|
|
@@ -2491,16 +2491,16 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
},
|
|
2493
2493
|
setup(e) {
|
|
2494
|
-
const s =
|
|
2495
|
-
return (i,
|
|
2496
|
-
const
|
|
2497
|
-
return n(), b("div",
|
|
2498
|
-
|
|
2494
|
+
const s = Me(), a = w(Object.keys(s));
|
|
2495
|
+
return (i, c) => {
|
|
2496
|
+
const r = v("el-col"), t = v("el-row");
|
|
2497
|
+
return n(), b("div", Wa, [
|
|
2498
|
+
M(t, {
|
|
2499
2499
|
class: "base_layout",
|
|
2500
2500
|
gutter: e.gutter
|
|
2501
2501
|
}, {
|
|
2502
2502
|
default: A(() => [
|
|
2503
|
-
(n(!0), b(P, null, Q(a.value, (d, _) => (n(), y(
|
|
2503
|
+
(n(!0), b(P, null, Q(a.value, (d, _) => (n(), y(r, {
|
|
2504
2504
|
key: _,
|
|
2505
2505
|
xs: 24,
|
|
2506
2506
|
sm: 24,
|
|
@@ -2519,29 +2519,29 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
|
2519
2519
|
]);
|
|
2520
2520
|
};
|
|
2521
2521
|
}
|
|
2522
|
-
}),
|
|
2522
|
+
}), Qa = l, tl = xe, al = {
|
|
2523
2523
|
install(e, s = {}) {
|
|
2524
2524
|
const { exclude: a = [] } = s, i = {
|
|
2525
|
-
BsgoalBaseForm:
|
|
2526
|
-
BsgoalBaseTable:
|
|
2527
|
-
BsgoalBaseLine:
|
|
2528
|
-
BsgoalBaseSearchTable:
|
|
2529
|
-
BsgoalBaseTree:
|
|
2530
|
-
BsgoalBaseDialog:
|
|
2531
|
-
BsgoalBaseTabs:
|
|
2532
|
-
BsgoalBaseLink:
|
|
2533
|
-
BsgoalBaseButton:
|
|
2534
|
-
BsgoalBaseLayout:
|
|
2525
|
+
BsgoalBaseForm: Ke,
|
|
2526
|
+
BsgoalBaseTable: we,
|
|
2527
|
+
BsgoalBaseLine: Ae,
|
|
2528
|
+
BsgoalBaseSearchTable: xa,
|
|
2529
|
+
BsgoalBaseTree: Na,
|
|
2530
|
+
BsgoalBaseDialog: Ia,
|
|
2531
|
+
BsgoalBaseTabs: Ua,
|
|
2532
|
+
BsgoalBaseLink: ja,
|
|
2533
|
+
BsgoalBaseButton: Ha,
|
|
2534
|
+
BsgoalBaseLayout: Ka
|
|
2535
2535
|
};
|
|
2536
|
-
for (const [
|
|
2537
|
-
a.includes(
|
|
2536
|
+
for (const [c, r] of Object.entries(i))
|
|
2537
|
+
a.includes(c) || e.component(c, r);
|
|
2538
2538
|
},
|
|
2539
|
-
ComponentTypeEnums:
|
|
2540
|
-
useFetch:
|
|
2539
|
+
ComponentTypeEnums: Qa,
|
|
2540
|
+
useFetch: xe
|
|
2541
2541
|
};
|
|
2542
2542
|
export {
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2543
|
+
Qa as ComponentTypeEnums,
|
|
2544
|
+
al as default,
|
|
2545
|
+
tl as useFetchApi
|
|
2546
2546
|
};
|
|
2547
2547
|
//# sourceMappingURL=index.mjs.map
|