@bsgoal/common 2.28.7 → 2.28.9
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 +111 -111
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -617,13 +617,13 @@ var Ba = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
617
617
|
*/
|
|
618
618
|
(function(l, u) {
|
|
619
619
|
(function() {
|
|
620
|
-
var r, f = "4.17.21", h = 200, m = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", d = "Expected a function", v = "Invalid `variable` option passed into `_.template`", w = "__lodash_hash_undefined__", S = 500, x = "__lodash_placeholder__", T = 1, E = 2, F = 4, P = 1, k = 2, L = 1, R = 2, H = 4, ie = 8, Z = 16, Y = 32, _e = 64, oe = 128, B = 256,
|
|
620
|
+
var r, f = "4.17.21", h = 200, m = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", d = "Expected a function", v = "Invalid `variable` option passed into `_.template`", w = "__lodash_hash_undefined__", S = 500, x = "__lodash_placeholder__", T = 1, E = 2, F = 4, P = 1, k = 2, L = 1, R = 2, H = 4, ie = 8, Z = 16, Y = 32, _e = 64, oe = 128, B = 256, Q = 512, $ = 30, q = "...", K = 800, pe = 16, xe = 1, Ie = 2, Ce = 3, J = 1 / 0, Te = 9007199254740991, Le = 17976931348623157e292, tt = 0 / 0, Ge = 4294967295, ht = Ge - 1, vt = Ge >>> 1, Wt = [
|
|
621
621
|
["ary", oe],
|
|
622
622
|
["bind", L],
|
|
623
623
|
["bindKey", R],
|
|
624
624
|
["curry", ie],
|
|
625
625
|
["curryRight", Z],
|
|
626
|
-
["flip",
|
|
626
|
+
["flip", Q],
|
|
627
627
|
["partial", Y],
|
|
628
628
|
["partialRight", _e],
|
|
629
629
|
["rearg", B]
|
|
@@ -2272,7 +2272,7 @@ var Ba = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2272
2272
|
});
|
|
2273
2273
|
}
|
|
2274
2274
|
function rr(e, t, n, a, i, s, c, g, p, C) {
|
|
2275
|
-
var I = t & oe, O = t & L, j = t & R, te = t & (ie | Z), de = t &
|
|
2275
|
+
var I = t & oe, O = t & L, j = t & R, te = t & (ie | Z), de = t & Q, be = j ? r : Aa(e);
|
|
2276
2276
|
function fe() {
|
|
2277
2277
|
for (var Ee = arguments.length, Se = b(Ee), $t = Ee; $t--; )
|
|
2278
2278
|
Se[$t] = arguments[$t];
|
|
@@ -3382,7 +3382,7 @@ var Ba = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3382
3382
|
return Wi(e, Gt(t) || 0, n);
|
|
3383
3383
|
});
|
|
3384
3384
|
function Yg(e) {
|
|
3385
|
-
return un(e,
|
|
3385
|
+
return un(e, Q);
|
|
3386
3386
|
}
|
|
3387
3387
|
function _r(e, t) {
|
|
3388
3388
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -3981,7 +3981,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3981
3981
|
return Sn(a, i).join("");
|
|
3982
3982
|
}
|
|
3983
3983
|
function Np(e, t) {
|
|
3984
|
-
var n = $, a =
|
|
3984
|
+
var n = $, a = q;
|
|
3985
3985
|
if (Ye(t)) {
|
|
3986
3986
|
var i = "separator" in t ? t.separator : i;
|
|
3987
3987
|
n = "length" in t ? ye(t.length) : n, a = "omission" in t ? Ot(t.omission) : a;
|
|
@@ -4401,22 +4401,22 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4401
4401
|
const { bindModel: B = {} } = f;
|
|
4402
4402
|
d.value = B;
|
|
4403
4403
|
});
|
|
4404
|
-
const v = (B = {},
|
|
4404
|
+
const v = (B = {}, Q = {}, $ = "") => {
|
|
4405
4405
|
Ue(() => {
|
|
4406
|
-
const
|
|
4406
|
+
const q = [];
|
|
4407
4407
|
for (const [Ie = "", Ce = []] of Object.entries(B))
|
|
4408
|
-
|
|
4408
|
+
q.push(Ce.includes(`${Q[Ie]}`));
|
|
4409
4409
|
const { configOptions: K } = f, xe = Pe(K).find((Ie) => Ie.prop === $);
|
|
4410
|
-
|
|
4410
|
+
q.every((Ie) => !!Ie) ? xe.visible = !0 : xe.visible = !1;
|
|
4411
4411
|
});
|
|
4412
4412
|
};
|
|
4413
4413
|
Ue(() => {
|
|
4414
|
-
const { configOptions: B, values:
|
|
4414
|
+
const { configOptions: B, values: Q } = f, $ = Pe(B), q = Pe(Q);
|
|
4415
4415
|
$.forEach((K) => {
|
|
4416
4416
|
const { value: pe = "", prop: xe = "", type: Ie = "", show: Ce = null } = K;
|
|
4417
4417
|
[M.INPUT, M.INPUT_TEXT_AREA].includes(Ie);
|
|
4418
4418
|
const J = d.value[xe];
|
|
4419
|
-
xe.startsWith("_") ? d.value[xe] = `${xe}` : d.value[xe] = J ||
|
|
4419
|
+
xe.startsWith("_") ? d.value[xe] = `${xe}` : d.value[xe] = J || q[xe] || pe, Rh(Ce) && v(Ce, Pe(d), xe);
|
|
4420
4420
|
});
|
|
4421
4421
|
});
|
|
4422
4422
|
const w = z(null), S = z([]);
|
|
@@ -4427,7 +4427,7 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4427
4427
|
});
|
|
4428
4428
|
});
|
|
4429
4429
|
const x = (B = "") => {
|
|
4430
|
-
const
|
|
4430
|
+
const Q = [
|
|
4431
4431
|
[
|
|
4432
4432
|
/.*(电话|手机)(号码|号).*/,
|
|
4433
4433
|
/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1589]))\d{8}$/
|
|
@@ -4441,11 +4441,11 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4441
4441
|
/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/
|
|
4442
4442
|
]
|
|
4443
4443
|
];
|
|
4444
|
-
for (const { 0: $, 1:
|
|
4444
|
+
for (const { 0: $, 1: q } of Q)
|
|
4445
4445
|
if ($.test(B))
|
|
4446
4446
|
return {
|
|
4447
4447
|
validator: (K, pe, xe) => {
|
|
4448
|
-
pe && !
|
|
4448
|
+
pe && !q.test(pe) && xe(new Error(`${B}格式不符合`)), xe();
|
|
4449
4449
|
},
|
|
4450
4450
|
trigger: "change"
|
|
4451
4451
|
};
|
|
@@ -4455,18 +4455,18 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4455
4455
|
pn(
|
|
4456
4456
|
() => f.configOptions,
|
|
4457
4457
|
() => {
|
|
4458
|
-
const { configOptions: B } = f,
|
|
4459
|
-
if (
|
|
4460
|
-
const
|
|
4461
|
-
E && E(), E = pn(
|
|
4458
|
+
const { configOptions: B } = f, Q = B.filter((q) => As(q.display));
|
|
4459
|
+
if (Q && Q.length) {
|
|
4460
|
+
const q = Q.map((K) => K.display());
|
|
4461
|
+
E && E(), E = pn(q, (K = []) => {
|
|
4462
4462
|
Bn(() => {
|
|
4463
4463
|
Ia(w.value);
|
|
4464
4464
|
});
|
|
4465
4465
|
});
|
|
4466
4466
|
}
|
|
4467
4467
|
const $ = la(Cn(Pe(B)));
|
|
4468
|
-
T.value = $.map((
|
|
4469
|
-
let { rules: K = [], label: pe = "", prop: xe = "", type: Ie = "", validation: Ce = !1 } =
|
|
4468
|
+
T.value = $.map((q) => {
|
|
4469
|
+
let { rules: K = [], label: pe = "", prop: xe = "", type: Ie = "", validation: Ce = !1 } = q;
|
|
4470
4470
|
const J = { required: !0, message: `${pe}不能为空`, trigger: "blur" }, Te = { required: !0, message: `${pe}不能为空`, trigger: "change" };
|
|
4471
4471
|
br.isBoolean(K) && K ? K = [
|
|
4472
4472
|
M.SELECT,
|
|
@@ -4474,7 +4474,7 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4474
4474
|
M.CASCADER
|
|
4475
4475
|
].includes(Ie) ? [J, Te] : [J] : Array.isArray(K) && K.length && (K = [J, ...K]);
|
|
4476
4476
|
const Le = x(pe);
|
|
4477
|
-
return Le && [M.INPUT].includes(Ie) && Ce && (K = [Le, ...K]),
|
|
4477
|
+
return Le && [M.INPUT].includes(Ie) && Ce && (K = [Le, ...K]), q.rules = K, q;
|
|
4478
4478
|
});
|
|
4479
4479
|
},
|
|
4480
4480
|
{
|
|
@@ -4482,12 +4482,12 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4482
4482
|
deep: !0
|
|
4483
4483
|
}
|
|
4484
4484
|
);
|
|
4485
|
-
const F = (B = "",
|
|
4485
|
+
const F = (B = "", Q = "", $ = "") => {
|
|
4486
4486
|
if (!$)
|
|
4487
4487
|
switch (B) {
|
|
4488
4488
|
case M.INPUT:
|
|
4489
4489
|
case M.INPUT_TEXT_AREA:
|
|
4490
|
-
return `请输入${
|
|
4490
|
+
return `请输入${Q}`;
|
|
4491
4491
|
case M.SELECT:
|
|
4492
4492
|
case M.DATE:
|
|
4493
4493
|
case M.WEEK:
|
|
@@ -4495,7 +4495,7 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4495
4495
|
case M.YEAR:
|
|
4496
4496
|
case M.DATE_TIME:
|
|
4497
4497
|
case M.TIME:
|
|
4498
|
-
return `请选择${
|
|
4498
|
+
return `请选择${Q}`;
|
|
4499
4499
|
case M.DATE_RANGE:
|
|
4500
4500
|
case M.DATE_TIME_RANGE:
|
|
4501
4501
|
return ["开始日期", "结束日期"];
|
|
@@ -4505,8 +4505,8 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4505
4505
|
return ["开始月份", "结束月份"];
|
|
4506
4506
|
}
|
|
4507
4507
|
return $;
|
|
4508
|
-
}, P = (B = "",
|
|
4509
|
-
if (!
|
|
4508
|
+
}, P = (B = "", Q = "") => {
|
|
4509
|
+
if (!Q)
|
|
4510
4510
|
switch (B) {
|
|
4511
4511
|
case M.WEEK:
|
|
4512
4512
|
return "ww";
|
|
@@ -4526,11 +4526,11 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4526
4526
|
case M.DATE_TIME_RANGE:
|
|
4527
4527
|
return "YYYY-MM-DD HH:mm:ss";
|
|
4528
4528
|
}
|
|
4529
|
-
return
|
|
4529
|
+
return Q;
|
|
4530
4530
|
}, k = () => {
|
|
4531
|
-
const B = Pe(d), { configOptions:
|
|
4532
|
-
for (const
|
|
4533
|
-
const { type: K = "", range: pe = [], prop: xe = "" } =
|
|
4531
|
+
const B = Pe(d), { configOptions: Q } = f, $ = Pe(Q);
|
|
4532
|
+
for (const q of $) {
|
|
4533
|
+
const { type: K = "", range: pe = [], prop: xe = "" } = q;
|
|
4534
4534
|
if (K.endsWith("range") && pe && pe.length === 2) {
|
|
4535
4535
|
const { 0: Ie = "", 1: Ce = "" } = B[xe], { 0: J = "", 1: Te = "" } = pe;
|
|
4536
4536
|
B[J] = Ie, B[Te] = Ce;
|
|
@@ -4539,11 +4539,11 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4539
4539
|
return r("on-form", B), B;
|
|
4540
4540
|
}, L = () => {
|
|
4541
4541
|
h.value.resetFields(), r("on-clear", d.value);
|
|
4542
|
-
}, R = (B,
|
|
4543
|
-
const K = d.value[
|
|
4542
|
+
}, R = (B, Q, $ = [], q = "") => {
|
|
4543
|
+
const K = d.value[Q] || "";
|
|
4544
4544
|
let pe = {};
|
|
4545
4545
|
if (M.TIME_RANGE.includes(B) && $.length && $.forEach((Ie, Ce) => {
|
|
4546
|
-
d.value[Ie] =
|
|
4546
|
+
d.value[Ie] = q ? q[Ce] : "";
|
|
4547
4547
|
}), [M.SELECT].includes(B) && $.length) {
|
|
4548
4548
|
let Ie = K;
|
|
4549
4549
|
Array.isArray(K) || (Ie = [K]);
|
|
@@ -4552,51 +4552,51 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4552
4552
|
}
|
|
4553
4553
|
r("on-change", {
|
|
4554
4554
|
type: B,
|
|
4555
|
-
prop:
|
|
4555
|
+
prop: Q,
|
|
4556
4556
|
option: pe,
|
|
4557
4557
|
value: K
|
|
4558
4558
|
});
|
|
4559
|
-
}, H = (B,
|
|
4560
|
-
const { value:
|
|
4559
|
+
}, H = (B, Q, $) => {
|
|
4560
|
+
const { value: q = "", data: K = {}, option: pe = {}, node: xe = {} } = $;
|
|
4561
4561
|
r("on-change", {
|
|
4562
4562
|
type: B,
|
|
4563
|
-
prop:
|
|
4564
|
-
value:
|
|
4563
|
+
prop: Q,
|
|
4564
|
+
value: q,
|
|
4565
4565
|
data: K,
|
|
4566
4566
|
option: pe,
|
|
4567
4567
|
node: xe
|
|
4568
4568
|
});
|
|
4569
|
-
}, ie = (B = {},
|
|
4569
|
+
}, ie = (B = {}, Q) => {
|
|
4570
4570
|
const $ = {};
|
|
4571
|
-
for (const
|
|
4572
|
-
if (!
|
|
4573
|
-
const K = B[
|
|
4574
|
-
if (
|
|
4571
|
+
for (const q of Object.keys(B))
|
|
4572
|
+
if (!q.startsWith("_") && !q.endsWith("_") && q) {
|
|
4573
|
+
const K = B[q];
|
|
4574
|
+
if (Q) {
|
|
4575
4575
|
const pe = Number.parseFloat(K);
|
|
4576
|
-
$[
|
|
4576
|
+
$[q] = (pe || ["0", 0].includes(K)) && !/^0.+/i.test(`${K}`) && /^(\\-|\+)?\d+(\.\d+)?$/i.test(`${K}`) && K.length <= 10 ? pe : K;
|
|
4577
4577
|
} else
|
|
4578
|
-
$[
|
|
4578
|
+
$[q] = K;
|
|
4579
4579
|
}
|
|
4580
4580
|
return $;
|
|
4581
4581
|
}, Z = (B = () => {
|
|
4582
|
-
},
|
|
4583
|
-
h.value.validate(($ = !1,
|
|
4582
|
+
}, Q = !0) => {
|
|
4583
|
+
h.value.validate(($ = !1, q = {}) => {
|
|
4584
4584
|
if ($) {
|
|
4585
|
-
const K = k(), pe = ie(K,
|
|
4585
|
+
const K = k(), pe = ie(K, Q);
|
|
4586
4586
|
B(pe);
|
|
4587
4587
|
} else {
|
|
4588
4588
|
B(!1);
|
|
4589
|
-
const K = Object.keys(
|
|
4589
|
+
const K = Object.keys(q)[0], {
|
|
4590
4590
|
[K]: {
|
|
4591
4591
|
0: { message: pe = "" }
|
|
4592
4592
|
}
|
|
4593
|
-
} =
|
|
4593
|
+
} = q;
|
|
4594
4594
|
Vl.error(pe);
|
|
4595
4595
|
}
|
|
4596
4596
|
});
|
|
4597
|
-
}, Y = (B = [],
|
|
4598
|
-
const { 0: $ = {}, 1:
|
|
4599
|
-
switch (
|
|
4597
|
+
}, Y = (B = [], Q = "") => {
|
|
4598
|
+
const { 0: $ = {}, 1: q = {} } = B, { value: K = !1, label: pe = "" } = $, { value: xe = !1, label: Ie = "" } = q;
|
|
4599
|
+
switch (Q) {
|
|
4600
4600
|
case "active-value":
|
|
4601
4601
|
return K;
|
|
4602
4602
|
case "inactive-value":
|
|
@@ -4607,19 +4607,19 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4607
4607
|
return Ie;
|
|
4608
4608
|
}
|
|
4609
4609
|
}, _e = he(() => {
|
|
4610
|
-
const B = {}, { compact:
|
|
4611
|
-
return
|
|
4610
|
+
const B = {}, { compact: Q = !1 } = f;
|
|
4611
|
+
return Q && (B.marginBottom = "0px"), B;
|
|
4612
4612
|
}), oe = he(() => {
|
|
4613
|
-
const B = {}, { compact:
|
|
4614
|
-
return
|
|
4613
|
+
const B = {}, { compact: Q = !1, itemStyler: $ = {} } = f;
|
|
4614
|
+
return Q && (B.marginBottom = "0px"), wt(wt({}, B), $);
|
|
4615
4615
|
});
|
|
4616
4616
|
return u({
|
|
4617
4617
|
triggerOperationClear: L,
|
|
4618
4618
|
triggerOperationForm: k,
|
|
4619
4619
|
validateForm: Z,
|
|
4620
4620
|
resetFields: L
|
|
4621
|
-
}), (B,
|
|
4622
|
-
const $ = D("el-input"),
|
|
4621
|
+
}), (B, Q) => {
|
|
4622
|
+
const $ = D("el-input"), q = D("el-input-number"), K = D("el-radio-button"), pe = D("el-radio"), xe = D("el-radio-group"), Ie = D("el-option"), Ce = D("el-select"), J = D("el-slider"), Te = D("el-switch"), Le = D("el-date-picker"), tt = D("el-time-picker"), Ge = D("el-checkbox"), ht = D("el-checkbox-group"), vt = D("el-config-provider"), Wt = D("el-form-item"), Be = D("el-col"), ue = D("el-row"), se = D("el-form");
|
|
4623
4623
|
return y(), N("div", zh, [
|
|
4624
4624
|
U("div", {
|
|
4625
4625
|
ref_key: "BASE_FORM_WRAP_REF",
|
|
@@ -4728,7 +4728,7 @@ const zh = { class: "bsgoal-base-form" }, kh = /* @__PURE__ */ U("div", { class:
|
|
|
4728
4728
|
placeholder: F(re, nt, st),
|
|
4729
4729
|
onChange: (ee) => R(re, ae)
|
|
4730
4730
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "autosize", "maxlength", "clearable", "placeholder", "onChange"])) : ge("", !0),
|
|
4731
|
-
re === V(M).INPUT_NUMBER ? (y(), ne(
|
|
4731
|
+
re === V(M).INPUT_NUMBER ? (y(), ne(q, je({
|
|
4732
4732
|
key: 2,
|
|
4733
4733
|
modelValue: d.value[ae],
|
|
4734
4734
|
"onUpdate:modelValue": (ee) => d.value[ae] = ee,
|
|
@@ -5654,12 +5654,12 @@ const J0 = { class: "bsgoal-base-table" }, Rs = Object.assign({
|
|
|
5654
5654
|
});
|
|
5655
5655
|
const oe = Ma("TREE_SWITCH_STATUS"), B = (J, Te) => {
|
|
5656
5656
|
r("select", J, Te);
|
|
5657
|
-
},
|
|
5657
|
+
}, Q = (J) => {
|
|
5658
5658
|
r("select-all", J);
|
|
5659
5659
|
}, $ = (J) => {
|
|
5660
5660
|
r("selection-change", J);
|
|
5661
|
-
},
|
|
5662
|
-
|
|
5661
|
+
}, q = z(null), K = () => {
|
|
5662
|
+
q.value.clearSelection();
|
|
5663
5663
|
}, pe = (J = "") => {
|
|
5664
5664
|
const { summaryProps: Te = [] } = f, Le = J.data, tt = [];
|
|
5665
5665
|
return Te.forEach((Ge = "", ht = 0) => {
|
|
@@ -5698,7 +5698,7 @@ const J0 = { class: "bsgoal-base-table" }, Rs = Object.assign({
|
|
|
5698
5698
|
}, [
|
|
5699
5699
|
pt((y(), ne(tt, {
|
|
5700
5700
|
ref_key: "BSGOAL_EL_TABLE_REF",
|
|
5701
|
-
ref:
|
|
5701
|
+
ref: q,
|
|
5702
5702
|
stripe: "",
|
|
5703
5703
|
border: "",
|
|
5704
5704
|
"highlight-current-row": "",
|
|
@@ -5720,7 +5720,7 @@ const J0 = { class: "bsgoal-base-table" }, Rs = Object.assign({
|
|
|
5720
5720
|
fontSize: "14px"
|
|
5721
5721
|
},
|
|
5722
5722
|
onSelect: B,
|
|
5723
|
-
onSelectAll:
|
|
5723
|
+
onSelectAll: Q,
|
|
5724
5724
|
onSelectionChange: $,
|
|
5725
5725
|
onSortChange: Ie
|
|
5726
5726
|
}, {
|
|
@@ -5937,8 +5937,8 @@ const n1 = { class: "bsgoal-base-search" }, a1 = { class: "base_search" }, r1 =
|
|
|
5937
5937
|
Ue(() => {
|
|
5938
5938
|
const { configOptions: Y } = f;
|
|
5939
5939
|
V(Y).forEach((oe) => {
|
|
5940
|
-
const { value: B, prop:
|
|
5941
|
-
d.value[
|
|
5940
|
+
const { value: B, prop: Q = "" } = oe;
|
|
5941
|
+
d.value[Q] = B || [0, "0", !1].includes(B) ? B : "";
|
|
5942
5942
|
});
|
|
5943
5943
|
});
|
|
5944
5944
|
const v = he(() => {
|
|
@@ -5993,9 +5993,9 @@ const n1 = { class: "bsgoal-base-search" }, a1 = { class: "base_search" }, r1 =
|
|
|
5993
5993
|
}
|
|
5994
5994
|
return _e;
|
|
5995
5995
|
}, x = (Y = !1, _e = !1) => {
|
|
5996
|
-
const { configOptions: oe } = f, B = V(d),
|
|
5997
|
-
for (const
|
|
5998
|
-
const { type: K = "", range: pe = [], prop: xe = "", single: Ie = !1 } =
|
|
5996
|
+
const { configOptions: oe } = f, B = V(d), Q = V(oe), $ = {};
|
|
5997
|
+
for (const q of Q) {
|
|
5998
|
+
const { type: K = "", range: pe = [], prop: xe = "", single: Ie = !1 } = q, Ce = B[xe];
|
|
5999
5999
|
if ([
|
|
6000
6000
|
M.DATE_RANGE,
|
|
6001
6001
|
M.TIME_RANGE,
|
|
@@ -6038,7 +6038,7 @@ const n1 = { class: "bsgoal-base-search" }, a1 = { class: "base_search" }, r1 =
|
|
|
6038
6038
|
return u({
|
|
6039
6039
|
triggerOperationSearch: T
|
|
6040
6040
|
}), (Y, _e) => {
|
|
6041
|
-
const oe = D("el-input"), B = D("el-input-number"),
|
|
6041
|
+
const oe = D("el-input"), B = D("el-input-number"), Q = D("el-radio-button"), $ = D("el-radio"), q = D("el-radio-group"), K = D("el-option"), pe = D("el-select"), xe = D("el-slider"), Ie = D("el-switch"), Ce = D("el-date-picker"), J = D("el-time-picker"), Te = D("el-checkbox"), Le = D("el-checkbox-group"), tt = D("el-config-provider"), Ge = D("el-form-item"), ht = D("el-col"), vt = D("el-row"), Wt = D("el-form");
|
|
6042
6042
|
return y(), N("div", n1, [
|
|
6043
6043
|
U("div", a1, [
|
|
6044
6044
|
pt((y(), ne(Wt, {
|
|
@@ -6114,7 +6114,7 @@ const n1 = { class: "bsgoal-base-search" }, a1 = { class: "base_search" }, r1 =
|
|
|
6114
6114
|
max: rt,
|
|
6115
6115
|
onChange: L
|
|
6116
6116
|
}, null, 8, ["modelValue", "disabled", "min", "max"])) : ge("", !0),
|
|
6117
|
-
se === V(M).RADIO ? (y(), ne(
|
|
6117
|
+
se === V(M).RADIO ? (y(), ne(q, {
|
|
6118
6118
|
key: 3,
|
|
6119
6119
|
modelValue: d.value[ue],
|
|
6120
6120
|
"onUpdate:modelValue": (le) => d.value[ue] = le,
|
|
@@ -6123,7 +6123,7 @@ const n1 = { class: "bsgoal-base-search" }, a1 = { class: "base_search" }, r1 =
|
|
|
6123
6123
|
}, {
|
|
6124
6124
|
default: G(() => [
|
|
6125
6125
|
(y(!0), N(ke, null, Xe(ct, (le, rn) => (y(), N(ke, { key: rn }, [
|
|
6126
|
-
an === "button" ? (y(), ne(
|
|
6126
|
+
an === "button" ? (y(), ne(Q, {
|
|
6127
6127
|
key: 0,
|
|
6128
6128
|
label: le.value
|
|
6129
6129
|
}, {
|
|
@@ -6572,28 +6572,28 @@ const _1 = { class: "bsgoal-base-search-table" }, p1 = { class: "base_search_tab
|
|
|
6572
6572
|
const { configOptions: $ } = f;
|
|
6573
6573
|
m.value = $;
|
|
6574
6574
|
});
|
|
6575
|
-
const d = he(() => m.value.filter((
|
|
6576
|
-
const { type: K = "" } =
|
|
6575
|
+
const d = he(() => m.value.filter((q) => {
|
|
6576
|
+
const { type: K = "" } = q;
|
|
6577
6577
|
return !!K;
|
|
6578
|
-
})), v = he(() => m.value.filter((
|
|
6579
|
-
const { item: K = !1 } =
|
|
6578
|
+
})), v = he(() => m.value.filter((q) => {
|
|
6579
|
+
const { item: K = !1 } = q;
|
|
6580
6580
|
return !K;
|
|
6581
6581
|
})), w = ia(), S = z(Object.keys(w)), x = z(null), T = ($) => {
|
|
6582
6582
|
x.value.refreshList($);
|
|
6583
6583
|
}, E = ($ = {}) => {
|
|
6584
6584
|
r("on-clear", $), x.value.clearSortFields(), x.value.refreshList($);
|
|
6585
6585
|
}, F = () => {
|
|
6586
|
-
const $ = k.value.triggerOperationSearch(!1),
|
|
6587
|
-
return wt({ total:
|
|
6586
|
+
const $ = k.value.triggerOperationSearch(!1), q = Y.value;
|
|
6587
|
+
return wt({ total: q }, $);
|
|
6588
6588
|
}, P = he(() => {
|
|
6589
|
-
const { expression: $, hasPage:
|
|
6590
|
-
return
|
|
6589
|
+
const { expression: $, hasPage: q } = f;
|
|
6590
|
+
return q === !1 ? 25 : $;
|
|
6591
6591
|
}), k = z(null), L = () => {
|
|
6592
6592
|
k.value.triggerOperationSearch();
|
|
6593
|
-
}, R = ({ column: $, prop:
|
|
6593
|
+
}, R = ({ column: $, prop: q, order: K }) => {
|
|
6594
6594
|
L();
|
|
6595
|
-
}, H = ($,
|
|
6596
|
-
r("select", $,
|
|
6595
|
+
}, H = ($, q) => {
|
|
6596
|
+
r("select", $, q);
|
|
6597
6597
|
}, ie = ($) => {
|
|
6598
6598
|
r("select-all", $);
|
|
6599
6599
|
}, Z = ($) => {
|
|
@@ -6604,19 +6604,19 @@ const _1 = { class: "bsgoal-base-search-table" }, p1 = { class: "base_search_tab
|
|
|
6604
6604
|
r("on-change", $);
|
|
6605
6605
|
}, B = () => {
|
|
6606
6606
|
x.value.clearSelection();
|
|
6607
|
-
},
|
|
6607
|
+
}, Q = ($ = {}) => {
|
|
6608
6608
|
r("on-click-overview", $);
|
|
6609
6609
|
};
|
|
6610
6610
|
return u({
|
|
6611
6611
|
refresh: L,
|
|
6612
6612
|
clearSelection: B,
|
|
6613
6613
|
getSearchParams: F
|
|
6614
|
-
}), ($,
|
|
6614
|
+
}), ($, q) => (y(), N("div", _1, [
|
|
6615
6615
|
U("div", p1, [
|
|
6616
6616
|
l.hasOverview ? (y(), ne(Vs, {
|
|
6617
6617
|
key: 0,
|
|
6618
6618
|
options: l.overviewOptions,
|
|
6619
|
-
onOnClickItem:
|
|
6619
|
+
onOnClickItem: Q
|
|
6620
6620
|
}, null, 8, ["options"])) : ge("", !0),
|
|
6621
6621
|
pt(W(Ds, {
|
|
6622
6622
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
@@ -6879,7 +6879,7 @@ const m1 = { class: "bsgoal-base-tree" }, y1 = { class: "base_tree_main" }, b1 =
|
|
|
6879
6879
|
B.hasIcon ? (y(), N("div", S1, [
|
|
6880
6880
|
W(Y, {
|
|
6881
6881
|
color: "var(--el-color-primary)",
|
|
6882
|
-
onClick: Bh((
|
|
6882
|
+
onClick: Bh((Q) => F(oe, B), ["stop"])
|
|
6883
6883
|
}, {
|
|
6884
6884
|
default: G(() => [
|
|
6885
6885
|
W(V(Wl))
|
|
@@ -7657,7 +7657,7 @@ const oa = (l, u) => {
|
|
|
7657
7657
|
]);
|
|
7658
7658
|
};
|
|
7659
7659
|
}
|
|
7660
|
-
}), z1 = /* @__PURE__ */ oa(V1, [["__scopeId", "data-v-
|
|
7660
|
+
}), z1 = /* @__PURE__ */ oa(V1, [["__scopeId", "data-v-5a28e494"]]);
|
|
7661
7661
|
const k1 = { class: "bsgoal-base-layout" }, F1 = Object.assign({
|
|
7662
7662
|
name: "BsgoalBaseLayout"
|
|
7663
7663
|
}, {
|
|
@@ -8567,17 +8567,17 @@ const ov = { class: "bsgoal-base-tree-table" }, sv = { class: "base_tree_table"
|
|
|
8567
8567
|
d.value = B;
|
|
8568
8568
|
};
|
|
8569
8569
|
Cs("TREE_SWITCH_STATUS", d);
|
|
8570
|
-
const w = ({ node: B, data:
|
|
8571
|
-
const $ = la(Cn(Pe(B))),
|
|
8572
|
-
r("on-add-tree", { node: $, data:
|
|
8573
|
-
}, S = (B,
|
|
8574
|
-
r("on-click-tree", B,
|
|
8570
|
+
const w = ({ node: B, data: Q } = {}) => {
|
|
8571
|
+
const $ = la(Cn(Pe(B))), q = la(Cn(Pe(Q)));
|
|
8572
|
+
r("on-add-tree", { node: $, data: q });
|
|
8573
|
+
}, S = (B, Q, $, q) => {
|
|
8574
|
+
r("on-click-tree", B, Q, $, q);
|
|
8575
8575
|
}, x = z(null), T = () => {
|
|
8576
8576
|
f.treeClearable && x.value.resetChecked();
|
|
8577
8577
|
}, E = z(null), F = (B = {}) => {
|
|
8578
8578
|
E.value.refresh(B);
|
|
8579
|
-
}, P = (B = {},
|
|
8580
|
-
r("on-select-table", B,
|
|
8579
|
+
}, P = (B = {}, Q = []) => {
|
|
8580
|
+
r("on-select-table", B, Q);
|
|
8581
8581
|
}, k = (B = {}) => {
|
|
8582
8582
|
r("on-select-all-table", B);
|
|
8583
8583
|
}, L = (B = {}) => {
|
|
@@ -8601,10 +8601,10 @@ const ov = { class: "bsgoal-base-tree-table" }, sv = { class: "base_tree_table"
|
|
|
8601
8601
|
const B = {};
|
|
8602
8602
|
return d.value ? B.maxWidth = "calc(100% - 250px)" : B.maxWidth = "calc(100%)", B;
|
|
8603
8603
|
}), oe = he(() => {
|
|
8604
|
-
const { mapProps: B = {}, tableProps:
|
|
8605
|
-
return wt(wt({}, B),
|
|
8604
|
+
const { mapProps: B = {}, tableProps: Q = {} } = f;
|
|
8605
|
+
return wt(wt({}, B), Q);
|
|
8606
8606
|
});
|
|
8607
|
-
return (B,
|
|
8607
|
+
return (B, Q) => (y(), N("div", ov, [
|
|
8608
8608
|
U("div", sv, [
|
|
8609
8609
|
U("div", uv, [
|
|
8610
8610
|
W(ks, je({
|
|
@@ -8652,9 +8652,9 @@ const ov = { class: "bsgoal-base-tree-table" }, sv = { class: "base_tree_table"
|
|
|
8652
8652
|
}), ra({ _: 2 }, [
|
|
8653
8653
|
Xe(m.value, ($) => ({
|
|
8654
8654
|
name: $,
|
|
8655
|
-
fn: G(({ row:
|
|
8655
|
+
fn: G(({ row: q = {}, column: K = {}, index: pe = 0 }) => [
|
|
8656
8656
|
Oe(B.$slots, $, {
|
|
8657
|
-
row:
|
|
8657
|
+
row: q,
|
|
8658
8658
|
column: K,
|
|
8659
8659
|
index: pe
|
|
8660
8660
|
})
|
|
@@ -9499,9 +9499,9 @@ const zv = { class: "bsgoal-base-dialog-form" }, kv = Object.assign({
|
|
|
9499
9499
|
return w.value.forEach((_e) => {
|
|
9500
9500
|
const { range: oe = [], type: B = "" } = _e;
|
|
9501
9501
|
if (Array.isArray(oe) && oe.length && [M.TIME_RANGE, M.DATE_RANGE, M.DATE_TIME_RANGE].includes(B))
|
|
9502
|
-
for (const
|
|
9503
|
-
const { [
|
|
9504
|
-
Z[
|
|
9502
|
+
for (const Q of oe) {
|
|
9503
|
+
const { [Q]: $ = "" } = Z;
|
|
9504
|
+
Z[Q] = $;
|
|
9505
9505
|
}
|
|
9506
9506
|
}), v.value = la(Cn(Pe(Z))), ie ? d.value = ie : d.value = "add", T.value.show(), r("on-show"), Pe(v);
|
|
9507
9507
|
}, F = () => {
|
|
@@ -9952,10 +9952,10 @@ const Zv = { class: "bsgoal-base-list" }, Xv = { class: "base_list" }, qv = ["in
|
|
|
9952
9952
|
L.value = !1;
|
|
9953
9953
|
return;
|
|
9954
9954
|
}
|
|
9955
|
-
oe(wt(wt({}, Y), B)).then((
|
|
9956
|
-
const { code: $ = 0, data:
|
|
9955
|
+
oe(wt(wt({}, Y), B)).then((Q = {}) => {
|
|
9956
|
+
const { code: $ = 0, data: q = [] } = Q;
|
|
9957
9957
|
if ($ === 0) {
|
|
9958
|
-
const K =
|
|
9958
|
+
const K = q[H.value.rows];
|
|
9959
9959
|
Array.isArray(K) && K.length && (F.value.push(...K), P.value = F.value.length, k.value += 1);
|
|
9960
9960
|
}
|
|
9961
9961
|
L.value = !1;
|
|
@@ -9968,7 +9968,7 @@ const Zv = { class: "bsgoal-base-list" }, Xv = { class: "base_list" }, qv = ["in
|
|
|
9968
9968
|
refresh: m,
|
|
9969
9969
|
getSearchParams: d
|
|
9970
9970
|
}), (Y, _e) => {
|
|
9971
|
-
const oe = D("el-col"), B = D("el-row"),
|
|
9971
|
+
const oe = D("el-col"), B = D("el-row"), Q = Dl("infinite-scroll"), $ = Dl("loading");
|
|
9972
9972
|
return y(), N("div", Zv, [
|
|
9973
9973
|
U("div", Xv, [
|
|
9974
9974
|
pt(W(Ds, {
|
|
@@ -9999,7 +9999,7 @@ const Zv = { class: "bsgoal-base-list" }, Xv = { class: "base_list" }, qv = ["in
|
|
|
9999
9999
|
style: { margin: "0px" }
|
|
10000
10000
|
}, {
|
|
10001
10001
|
default: G(() => [
|
|
10002
|
-
(y(!0), N(ke, null, Xe(F.value, (
|
|
10002
|
+
(y(!0), N(ke, null, Xe(F.value, (q, K) => (y(), ne(oe, {
|
|
10003
10003
|
key: K,
|
|
10004
10004
|
xs: 24,
|
|
10005
10005
|
sm: 24,
|
|
@@ -10011,7 +10011,7 @@ const Zv = { class: "bsgoal-base-list" }, Xv = { class: "base_list" }, qv = ["in
|
|
|
10011
10011
|
class: "base_list_item",
|
|
10012
10012
|
style: ot(T.value)
|
|
10013
10013
|
}, [
|
|
10014
|
-
Oe(Y.$slots, "item", { data:
|
|
10014
|
+
Oe(Y.$slots, "item", { data: q }, () => [
|
|
10015
10015
|
qe(Re(K), 1)
|
|
10016
10016
|
])
|
|
10017
10017
|
], 4)
|
|
@@ -10023,7 +10023,7 @@ const Zv = { class: "bsgoal-base-list" }, Xv = { class: "base_list" }, qv = ["in
|
|
|
10023
10023
|
}, 8, ["gutter"])
|
|
10024
10024
|
], 8, qv)), [
|
|
10025
10025
|
[V(x), l.bottom],
|
|
10026
|
-
[
|
|
10026
|
+
[Q, Z]
|
|
10027
10027
|
]),
|
|
10028
10028
|
pt(U("div", Qv, tm, 512), [
|
|
10029
10029
|
[nn, R.value]
|