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