@hb-hellotech/hb-ui 1.3.16-beta.1 → 1.3.16-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/unlist_page_comp/hb_footer_bar/src/HbLibFooterBar.vue.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts +14 -3
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +384 -365
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as G, inject as fe, computed as z, reactive as Se, ref as O, watch as te, onMounted as he, createElementBlock as S, openBlock as i, normalizeClass as Y, unref as _, createVNode as w, withCtx as c, createElementVNode as d, toDisplayString as L, createTextVNode as
|
|
2
|
+
import { defineComponent as G, inject as fe, computed as z, reactive as Se, ref as O, watch as te, onMounted as he, createElementBlock as S, openBlock as i, normalizeClass as Y, unref as _, createVNode as w, withCtx as c, createElementVNode as d, toDisplayString as L, createTextVNode as D, createBlock as U, createCommentVNode as E, Fragment as q, renderList as ie, resolveComponent as V, Transition as Dt, withDirectives as be, mergeProps as ee, createSlots as Ae, renderSlot as W, vShow as Bt, nextTick as Le, onUnmounted as Te, useTemplateRef as At, provide as Ct, normalizeStyle as re, mergeModels as Ve, useModel as kt, withModifiers as Fe, resolveDirective as St, useAttrs as Ot, watchEffect as Tt, shallowRef as zt, resolveDynamicComponent as wt, createStaticVNode as Et, onBeforeUnmount as Je, createApp as Nt } from "vue";
|
|
3
3
|
import $e from "vuedraggable";
|
|
4
4
|
import { Modal as je, Button as We, message as ke, Tooltip as Ie, Switch as tt, Radio as ot, RadioGroup as lt, InputNumber as at, DatePicker as nt, Checkbox as Me, CheckboxGroup as it, Select as Ye, Input as st, Col as Pt, Row as Rt, FormItem as rt, Form as ct, SelectOption as qe, Popconfirm as Re, MenuItem as dt, Menu as ut, Dropdown as bt, Popover as Ut, BackTop as xt, Spin as Vt } from "ant-design-vue";
|
|
5
5
|
import { useRoute as Qe } from "vue-router";
|
|
@@ -39,13 +39,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: o }) {
|
|
42
|
-
const n = fe("globalCompConfig", {}), u = de().t, b = de().messages.value.en_US, s = de().messages.value.ja_JP, f = de().messages.value.zh_CN, l = e, a = z(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = z(() => l.title || u("hbLibComp.hbFormItemFilterModal.title")), C = o, p = Ze("sfcm"),
|
|
42
|
+
const n = fe("globalCompConfig", {}), u = de().t, b = de().messages.value.en_US, s = de().messages.value.ja_JP, f = de().messages.value.zh_CN, l = e, a = z(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = z(() => l.title || u("hbLibComp.hbFormItemFilterModal.title")), C = o, p = Ze("sfcm"), M = Qe(), B = Se({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}),
|
|
44
|
+
}), N = O(!1), x = O(600);
|
|
45
45
|
let g = [];
|
|
46
46
|
const T = O([]), F = O([]), H = z(() => T.value.every((v) => v.isLinked || v.isFixed)), k = (v) => ({
|
|
47
47
|
...v,
|
|
48
|
-
label:
|
|
48
|
+
label: A(v) || `${P(v) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: v.key,
|
|
50
50
|
isFixed: v?.isFixed || !1,
|
|
51
51
|
isLinked: v?.isLinked || !1,
|
|
@@ -72,17 +72,17 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
72
72
|
} catch (J) {
|
|
73
73
|
console.warn("解析用户信息失败:", J);
|
|
74
74
|
}
|
|
75
|
-
let $ =
|
|
75
|
+
let $ = M?.path;
|
|
76
76
|
return `searchFormConfig_${j}_${$}`;
|
|
77
|
-
},
|
|
77
|
+
}, A = (v) => ({
|
|
78
78
|
ja_JP: () => _e.get(s, v.labelLanguage || ""),
|
|
79
79
|
en_US: () => _e.get(b, v.labelLanguage || ""),
|
|
80
80
|
zh_CN: () => _e.get(f, v.labelLanguage || "")
|
|
81
|
-
})[
|
|
81
|
+
})[B.lan]?.() || v.label, P = (v) => ({
|
|
82
82
|
ja_JP: () => _e.get(s, v.subLabelLanguage || ""),
|
|
83
83
|
en_US: () => _e.get(b, v.subLabelLanguage || ""),
|
|
84
84
|
zh_CN: () => _e.get(f, v.subLabelLanguage || "")
|
|
85
|
-
})[
|
|
85
|
+
})[B.lan]?.() || v.subLabel, K = (v) => {
|
|
86
86
|
try {
|
|
87
87
|
const j = localStorage.getItem(r.value);
|
|
88
88
|
if (j) {
|
|
@@ -151,7 +151,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const
|
|
154
|
+
const R = (v) => {
|
|
155
155
|
const j = T.value.findIndex(($) => $.key === v.key);
|
|
156
156
|
j !== -1 && (T.value.splice(j, 1), F.value.push({ ...v, active: !1 }));
|
|
157
157
|
}, X = (v) => {
|
|
@@ -165,9 +165,9 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
165
165
|
T.value.push({ ...$, active: !1 });
|
|
166
166
|
}
|
|
167
167
|
}, le = () => {
|
|
168
|
-
|
|
168
|
+
N.value = !1;
|
|
169
169
|
}, ce = () => {
|
|
170
|
-
|
|
170
|
+
N.value = !0;
|
|
171
171
|
}, ue = () => {
|
|
172
172
|
se(), C("confirm", T.value), le();
|
|
173
173
|
}, we = (v) => {
|
|
@@ -184,8 +184,8 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
184
184
|
class: Y(_(p).b())
|
|
185
185
|
}, [
|
|
186
186
|
w(_(je), {
|
|
187
|
-
visible:
|
|
188
|
-
"onUpdate:visible": j[1] || (j[1] = ($) =>
|
|
187
|
+
visible: N.value,
|
|
188
|
+
"onUpdate:visible": j[1] || (j[1] = ($) => N.value = $),
|
|
189
189
|
width: x.value,
|
|
190
190
|
onCancel: le,
|
|
191
191
|
onOk: ue
|
|
@@ -198,7 +198,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
198
198
|
footer: c(() => [
|
|
199
199
|
w(_(We), { onClick: le }, {
|
|
200
200
|
default: c(() => [
|
|
201
|
-
|
|
201
|
+
D(L(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}),
|
|
@@ -207,7 +207,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
207
207
|
onClick: ue
|
|
208
208
|
}, {
|
|
209
209
|
default: c(() => [
|
|
210
|
-
|
|
210
|
+
D(L(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
})
|
|
@@ -239,11 +239,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
239
239
|
d("div", {
|
|
240
240
|
class: Y([_(p).e("show__tag__item"), _(p).is("fixed", $.isFixed), _(p).is("linked", $.isLinked)])
|
|
241
241
|
}, [
|
|
242
|
-
|
|
243
|
-
!$.isFixed && !$.isLinked && e.list.length > 1 ? (i(),
|
|
242
|
+
D(L($.label) + " ", 1),
|
|
243
|
+
!$.isFixed && !$.isLinked && e.list.length > 1 ? (i(), U(_(Wt), {
|
|
244
244
|
key: 0,
|
|
245
245
|
class: Y(_(p).e("show__tag__item-close")),
|
|
246
|
-
onClick: (J) =>
|
|
246
|
+
onClick: (J) => R($)
|
|
247
247
|
}, null, 8, ["class", "onClick"])) : E("", !0)
|
|
248
248
|
], 2)
|
|
249
249
|
]),
|
|
@@ -270,7 +270,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
270
270
|
onMouseenter: (J) => we($),
|
|
271
271
|
onMouseleave: (J) => ze($)
|
|
272
272
|
}, [
|
|
273
|
-
|
|
273
|
+
D(L($.label) + " ", 1),
|
|
274
274
|
$.active ? (i(), S("aside", {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: Y(_(p).e("unshow__tag__item-add")),
|
|
@@ -330,9 +330,9 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
330
330
|
},
|
|
331
331
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
332
|
setup(e, { expose: t, emit: o }) {
|
|
333
|
-
const n = fe("globalCompConfig", {}), u = o, b = fe("HB_LIST_PAGE_CONTAINER"), s = z(() => l.searchList || []), f = Ze("form"), l = e, a = z(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = O("show"), C = z(() => l.needFooter || n.HbLibListForm?.needFooter), p = z(() => [...l.items]),
|
|
333
|
+
const n = fe("globalCompConfig", {}), u = o, b = fe("HB_LIST_PAGE_CONTAINER"), s = z(() => l.searchList || []), f = Ze("form"), l = e, a = z(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = O("show"), C = z(() => l.needFooter || n.HbLibListForm?.needFooter), p = z(() => [...l.items]), M = (I) => I !== void 0, B = (I) => typeof I == "function", N = (I) => M(I.condition) ? B(I.condition) ? I.condition() : I.condition : !0, x = z(() => [...l.items].map((I) => ({
|
|
334
334
|
...I,
|
|
335
|
-
condition:
|
|
335
|
+
condition: N(I),
|
|
336
336
|
label: I.label?.includes("多项搜索") ? "" : I.label
|
|
337
337
|
})));
|
|
338
338
|
console.log(x.value);
|
|
@@ -352,27 +352,27 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
352
352
|
(I) => {
|
|
353
353
|
if (I) {
|
|
354
354
|
console.log(I);
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
const R = document.querySelector("#subpackage_container");
|
|
356
|
+
R instanceof HTMLElement && (R.style.overflow = "hidden", setTimeout(() => {
|
|
357
|
+
R.style.overflow = "auto";
|
|
358
358
|
}, 500));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
|
-
const
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
},
|
|
366
|
-
const
|
|
367
|
-
|
|
362
|
+
const A = (I) => {
|
|
363
|
+
const R = I;
|
|
364
|
+
R.style.height = "", R.offsetHeight;
|
|
365
|
+
}, P = (I) => {
|
|
366
|
+
const R = I;
|
|
367
|
+
R.style.height = "", R.style.overflow = "", Le(() => {
|
|
368
368
|
b.calTableHeight && b.calTableHeight();
|
|
369
369
|
});
|
|
370
370
|
}, K = (I) => {
|
|
371
|
-
const
|
|
371
|
+
const R = I, X = R.querySelector(".hb-lib-form--container");
|
|
372
372
|
if (X) {
|
|
373
373
|
const le = X.offsetHeight;
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
R.style.height = le + "px", R.style.overflow = "hidden", R.offsetHeight, requestAnimationFrame(() => {
|
|
375
|
+
R.style.height = "0";
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
}, se = () => {
|
|
@@ -398,13 +398,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
398
398
|
Switch: tt,
|
|
399
399
|
Button: We,
|
|
400
400
|
Tooltip: Ie
|
|
401
|
-
}), (I,
|
|
402
|
-
const X =
|
|
401
|
+
}), (I, R) => {
|
|
402
|
+
const X = V("a-button"), le = V("a-tooltip"), ce = V("a-menu-item"), ue = V("a-menu"), we = V("a-dropdown"), ze = V("HbLibFormItemFilterModal");
|
|
403
403
|
return i(), S(q, null, [
|
|
404
404
|
w(Dt, {
|
|
405
405
|
name: "form-collapse",
|
|
406
|
-
onEnter:
|
|
407
|
-
onAfterEnter:
|
|
406
|
+
onEnter: A,
|
|
407
|
+
onAfterEnter: P,
|
|
408
408
|
onLeave: K,
|
|
409
409
|
onAfterLeave: se
|
|
410
410
|
}, {
|
|
@@ -420,7 +420,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
420
420
|
}), {
|
|
421
421
|
default: c(() => [
|
|
422
422
|
(i(!0), S(q, null, ie(x.value, (v, j) => (i(), S(q, { key: j }, [
|
|
423
|
-
v.condition ? (i(),
|
|
423
|
+
v.condition ? (i(), U(_(rt), ee({
|
|
424
424
|
key: 0,
|
|
425
425
|
ref_for: !0
|
|
426
426
|
}, v, {
|
|
@@ -441,76 +441,76 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
441
441
|
formData: e.formData,
|
|
442
442
|
item: v
|
|
443
443
|
}, void 0, !0) : E("", !0),
|
|
444
|
-
v.type === "input" ? (i(),
|
|
444
|
+
v.type === "input" ? (i(), U(_(st), ee({
|
|
445
445
|
key: 2,
|
|
446
446
|
value: e.formData[v.key],
|
|
447
447
|
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
448
448
|
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : E("", !0),
|
|
449
|
-
v.type === "select" ? (i(),
|
|
449
|
+
v.type === "select" ? (i(), U(_(Ye), ee({
|
|
450
450
|
key: 3,
|
|
451
451
|
value: e.formData[v.key],
|
|
452
452
|
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
453
453
|
}, { ref_for: !0 }, v.attrs), {
|
|
454
454
|
default: c(() => [
|
|
455
|
-
(i(!0), S(q, null, ie(v.options, ($, J) => (i(),
|
|
455
|
+
(i(!0), S(q, null, ie(v.options, ($, J) => (i(), U(_(qe), {
|
|
456
456
|
key: J,
|
|
457
457
|
value: $.value
|
|
458
458
|
}, {
|
|
459
459
|
default: c(() => [
|
|
460
|
-
|
|
460
|
+
D(L($.label), 1)
|
|
461
461
|
]),
|
|
462
462
|
_: 2
|
|
463
463
|
}, 1032, ["value"]))), 128))
|
|
464
464
|
]),
|
|
465
465
|
_: 2
|
|
466
466
|
}, 1040, ["value", "onUpdate:value"])) : E("", !0),
|
|
467
|
-
v.type === "checkbox" ? (i(),
|
|
467
|
+
v.type === "checkbox" ? (i(), U(_(it), ee({
|
|
468
468
|
key: 4,
|
|
469
469
|
value: e.formData[v.key],
|
|
470
470
|
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
471
471
|
}, { ref_for: !0 }, v.attrs), {
|
|
472
472
|
default: c(() => [
|
|
473
|
-
(i(!0), S(q, null, ie(v.options, ($, J) => (i(),
|
|
473
|
+
(i(!0), S(q, null, ie(v.options, ($, J) => (i(), U(_(Me), {
|
|
474
474
|
key: J,
|
|
475
475
|
value: $.value
|
|
476
476
|
}, {
|
|
477
477
|
default: c(() => [
|
|
478
|
-
|
|
478
|
+
D(L($.label), 1)
|
|
479
479
|
]),
|
|
480
480
|
_: 2
|
|
481
481
|
}, 1032, ["value"]))), 128))
|
|
482
482
|
]),
|
|
483
483
|
_: 2
|
|
484
484
|
}, 1040, ["value", "onUpdate:value"])) : E("", !0),
|
|
485
|
-
v.type === "date-picker" ? (i(),
|
|
485
|
+
v.type === "date-picker" ? (i(), U(_(nt), ee({
|
|
486
486
|
key: 5,
|
|
487
487
|
value: e.formData[v.key],
|
|
488
488
|
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
489
489
|
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : E("", !0),
|
|
490
|
-
v.type === "input-number" ? (i(),
|
|
490
|
+
v.type === "input-number" ? (i(), U(_(at), ee({
|
|
491
491
|
key: 6,
|
|
492
492
|
value: e.formData[v.key],
|
|
493
493
|
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
494
494
|
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : E("", !0),
|
|
495
|
-
v.type === "radio" ? (i(),
|
|
495
|
+
v.type === "radio" ? (i(), U(_(lt), ee({
|
|
496
496
|
key: 7,
|
|
497
497
|
value: e.formData[v.key],
|
|
498
498
|
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
499
499
|
}, { ref_for: !0 }, v.attrs), {
|
|
500
500
|
default: c(() => [
|
|
501
|
-
(i(!0), S(q, null, ie(v.options, ($, J) => (i(),
|
|
501
|
+
(i(!0), S(q, null, ie(v.options, ($, J) => (i(), U(_(ot), {
|
|
502
502
|
key: J,
|
|
503
503
|
value: $.value
|
|
504
504
|
}, {
|
|
505
505
|
default: c(() => [
|
|
506
|
-
|
|
506
|
+
D(L($.label), 1)
|
|
507
507
|
]),
|
|
508
508
|
_: 2
|
|
509
509
|
}, 1032, ["value"]))), 128))
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
512
|
}, 1040, ["value", "onUpdate:value"])) : E("", !0),
|
|
513
|
-
v.type === "switch" ? (i(),
|
|
513
|
+
v.type === "switch" ? (i(), U(_(tt), ee({
|
|
514
514
|
key: 8,
|
|
515
515
|
checked: e.formData[v.key],
|
|
516
516
|
"onUpdate:checked": ($) => e.formData[v.key] = $
|
|
@@ -521,7 +521,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
521
521
|
v.tooltip ? {
|
|
522
522
|
name: "label",
|
|
523
523
|
fn: c(() => [
|
|
524
|
-
|
|
524
|
+
D(L(v.label) + " ", 1),
|
|
525
525
|
w(_(Ie), {
|
|
526
526
|
title: v.tooltip
|
|
527
527
|
}, {
|
|
@@ -545,7 +545,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
545
545
|
w(_(De))
|
|
546
546
|
]),
|
|
547
547
|
default: c(() => [
|
|
548
|
-
|
|
548
|
+
D(" " + L(I.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
551
|
}),
|
|
@@ -554,11 +554,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
554
554
|
onClick: H
|
|
555
555
|
}, {
|
|
556
556
|
default: c(() => [
|
|
557
|
-
|
|
557
|
+
D(L(I.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
560
|
}),
|
|
561
|
-
e.needFilter ? (i(),
|
|
561
|
+
e.needFilter ? (i(), U(le, {
|
|
562
562
|
key: 0,
|
|
563
563
|
title: I.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
564
564
|
}, {
|
|
@@ -566,7 +566,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
566
566
|
d("span", {
|
|
567
567
|
class: "hb-lib-form-svg",
|
|
568
568
|
onClick: y
|
|
569
|
-
}, [...
|
|
569
|
+
}, [...R[0] || (R[0] = [
|
|
570
570
|
d("svg", {
|
|
571
571
|
t: "1757915025410",
|
|
572
572
|
class: "icon",
|
|
@@ -588,27 +588,27 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
588
588
|
_: 1
|
|
589
589
|
}, 8, ["title"])) : E("", !0),
|
|
590
590
|
W(I.$slots, "formBtns", {}, () => [
|
|
591
|
-
e.needSearchCase ? (i(),
|
|
591
|
+
e.needSearchCase ? (i(), U(we, { key: 0 }, {
|
|
592
592
|
overlay: c(() => [
|
|
593
593
|
w(ue, { onClick: r }, {
|
|
594
594
|
default: c(() => [
|
|
595
|
-
(i(!0), S(q, null, ie(s.value, (v) => (i(),
|
|
595
|
+
(i(!0), S(q, null, ie(s.value, (v) => (i(), U(ce, {
|
|
596
596
|
key: v.id
|
|
597
597
|
}, {
|
|
598
598
|
default: c(() => [
|
|
599
|
-
|
|
599
|
+
D(L(v.title), 1)
|
|
600
600
|
]),
|
|
601
601
|
_: 2
|
|
602
602
|
}, 1024))), 128)),
|
|
603
603
|
w(ce, { key: "add" }, {
|
|
604
604
|
default: c(() => [
|
|
605
|
-
|
|
605
|
+
D(L(I.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
606
606
|
]),
|
|
607
607
|
_: 1
|
|
608
608
|
}),
|
|
609
609
|
w(ce, { key: "edit" }, {
|
|
610
610
|
default: c(() => [
|
|
611
|
-
|
|
611
|
+
D(L(I.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
612
612
|
]),
|
|
613
613
|
_: 1
|
|
614
614
|
})
|
|
@@ -620,7 +620,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
620
620
|
w(le, {
|
|
621
621
|
title: I.$t("hbLibComp.hbLibListForm.queryCase")
|
|
622
622
|
}, {
|
|
623
|
-
default: c(() => [...
|
|
623
|
+
default: c(() => [...R[1] || (R[1] = [
|
|
624
624
|
d("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
625
625
|
d("svg", {
|
|
626
626
|
t: "1765936014161",
|
|
@@ -683,7 +683,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
683
683
|
w(_(De))
|
|
684
684
|
]),
|
|
685
685
|
default: c(() => [
|
|
686
|
-
|
|
686
|
+
D(" " + L(I.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
687
687
|
]),
|
|
688
688
|
_: 1
|
|
689
689
|
}),
|
|
@@ -693,11 +693,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
693
693
|
class: "hb_list_page_button"
|
|
694
694
|
}, {
|
|
695
695
|
default: c(() => [
|
|
696
|
-
|
|
696
|
+
D(L(I.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
}),
|
|
700
|
-
e.needFilter ? (i(),
|
|
700
|
+
e.needFilter ? (i(), U(le, {
|
|
701
701
|
key: 0,
|
|
702
702
|
title: I.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
703
703
|
}, {
|
|
@@ -705,7 +705,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
705
705
|
d("span", {
|
|
706
706
|
class: "hb-lib-form-svg",
|
|
707
707
|
onClick: y
|
|
708
|
-
}, [...
|
|
708
|
+
}, [...R[2] || (R[2] = [
|
|
709
709
|
d("svg", {
|
|
710
710
|
t: "1757915025410",
|
|
711
711
|
class: "icon",
|
|
@@ -727,27 +727,27 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
727
727
|
_: 1
|
|
728
728
|
}, 8, ["title"])) : E("", !0),
|
|
729
729
|
W(I.$slots, "formBtns", {}, () => [
|
|
730
|
-
e.needSearchCase ? (i(),
|
|
730
|
+
e.needSearchCase ? (i(), U(we, { key: 0 }, {
|
|
731
731
|
overlay: c(() => [
|
|
732
732
|
w(ue, { onClick: r }, {
|
|
733
733
|
default: c(() => [
|
|
734
|
-
(i(!0), S(q, null, ie(s.value, (v) => (i(),
|
|
734
|
+
(i(!0), S(q, null, ie(s.value, (v) => (i(), U(ce, {
|
|
735
735
|
key: v.id
|
|
736
736
|
}, {
|
|
737
737
|
default: c(() => [
|
|
738
|
-
|
|
738
|
+
D(L(v.title), 1)
|
|
739
739
|
]),
|
|
740
740
|
_: 2
|
|
741
741
|
}, 1024))), 128)),
|
|
742
742
|
w(ce, { key: "add" }, {
|
|
743
743
|
default: c(() => [
|
|
744
|
-
|
|
744
|
+
D(L(I.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
745
745
|
]),
|
|
746
746
|
_: 1
|
|
747
747
|
}),
|
|
748
748
|
w(ce, { key: "edit" }, {
|
|
749
749
|
default: c(() => [
|
|
750
|
-
|
|
750
|
+
D(L(I.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
751
751
|
]),
|
|
752
752
|
_: 1
|
|
753
753
|
})
|
|
@@ -759,7 +759,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
759
759
|
w(le, {
|
|
760
760
|
title: I.$t("hbLibComp.hbLibListForm.queryCase")
|
|
761
761
|
}, {
|
|
762
|
-
default: c(() => [...
|
|
762
|
+
default: c(() => [...R[3] || (R[3] = [
|
|
763
763
|
d("span", {
|
|
764
764
|
class: "hb-lib-form-svg",
|
|
765
765
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -862,8 +862,8 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
862
862
|
for (let C = 0; C < a.length; C++) {
|
|
863
863
|
const p = document.querySelector(a[C]);
|
|
864
864
|
if (p) {
|
|
865
|
-
const
|
|
866
|
-
p.style.display =
|
|
865
|
+
const M = m.get(a[C]);
|
|
866
|
+
p.style.display = M || "", m.delete(a[C]);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
}, 0);
|
|
@@ -888,7 +888,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
888
888
|
}), Te(() => {
|
|
889
889
|
window.removeEventListener("keydown", f);
|
|
890
890
|
}), (l, a) => {
|
|
891
|
-
const m =
|
|
891
|
+
const m = V("a-tooltip");
|
|
892
892
|
return i(), S("section", po, [
|
|
893
893
|
d("aside", ho, L(b.value), 1),
|
|
894
894
|
d("aside", mo, [
|
|
@@ -954,13 +954,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
954
954
|
}), Te(() => {
|
|
955
955
|
window.removeEventListener("keydown", s);
|
|
956
956
|
}), (f, l) => {
|
|
957
|
-
const a =
|
|
957
|
+
const a = V("a-tooltip");
|
|
958
958
|
return i(), S("section", Co, [
|
|
959
959
|
d("aside", ko, [
|
|
960
960
|
W(f.$slots, "btnsLeft", {}, void 0, !0)
|
|
961
961
|
]),
|
|
962
962
|
d("aside", So, [
|
|
963
|
-
e.needReload ? (i(),
|
|
963
|
+
e.needReload ? (i(), U(a, {
|
|
964
964
|
key: 0,
|
|
965
965
|
title: f.$t("hbLibComp.hbListBtnsAct.reload")
|
|
966
966
|
}, {
|
|
@@ -989,7 +989,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
989
989
|
]),
|
|
990
990
|
_: 1
|
|
991
991
|
}, 8, ["title"])) : E("", !0),
|
|
992
|
-
e.needOpenOrClose ? (i(),
|
|
992
|
+
e.needOpenOrClose ? (i(), U(a, {
|
|
993
993
|
key: 1,
|
|
994
994
|
title: n.value ? `${f.$t("hbLibComp.hbListBtnsAct.close")}` : `${f.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
995
995
|
}, {
|
|
@@ -998,10 +998,10 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
998
998
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
999
999
|
onClick: u
|
|
1000
1000
|
}, [
|
|
1001
|
-
n.value ? (i(),
|
|
1001
|
+
n.value ? (i(), U(_(qt), {
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1004
|
-
})) : (i(),
|
|
1004
|
+
})) : (i(), U(_(Kt), {
|
|
1005
1005
|
key: 1,
|
|
1006
1006
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1007
1007
|
}))
|
|
@@ -1044,14 +1044,14 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1044
1044
|
}), F;
|
|
1045
1045
|
}
|
|
1046
1046
|
return null;
|
|
1047
|
-
},
|
|
1047
|
+
}, M = () => {
|
|
1048
1048
|
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1049
1049
|
T && (s = new ResizeObserver(() => {
|
|
1050
1050
|
document.querySelectorAll(".ant-tooltip").forEach((H) => {
|
|
1051
1051
|
H.style.display = "none";
|
|
1052
1052
|
}), C();
|
|
1053
1053
|
}), s.observe(T));
|
|
1054
|
-
},
|
|
1054
|
+
}, B = () => {
|
|
1055
1055
|
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1056
1056
|
T && (l = new MutationObserver(() => {
|
|
1057
1057
|
setTimeout(() => {
|
|
@@ -1063,16 +1063,16 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1063
1063
|
attributes: !0,
|
|
1064
1064
|
attributeFilter: ["style", "class"]
|
|
1065
1065
|
}));
|
|
1066
|
-
},
|
|
1066
|
+
}, N = () => {
|
|
1067
1067
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
1068
1068
|
C();
|
|
1069
1069
|
}, u);
|
|
1070
1070
|
}, x = () => {
|
|
1071
|
-
window.addEventListener("resize",
|
|
1072
|
-
|
|
1071
|
+
window.addEventListener("resize", N), Le(() => {
|
|
1072
|
+
M(), B(), f = p();
|
|
1073
1073
|
});
|
|
1074
1074
|
}, g = () => {
|
|
1075
|
-
window.removeEventListener("resize",
|
|
1075
|
+
window.removeEventListener("resize", N), s && s.disconnect(), l && l.disconnect(), f && f.disconnect(), a && clearTimeout(a), m && clearTimeout(m);
|
|
1076
1076
|
};
|
|
1077
1077
|
return t && te(
|
|
1078
1078
|
() => t,
|
|
@@ -1117,12 +1117,12 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1117
1117
|
// 通过函数访问,
|
|
1118
1118
|
tableHeight: C,
|
|
1119
1119
|
calTableHeight: m
|
|
1120
|
-
}), (
|
|
1120
|
+
}), (M, B) => (i(), S("section", {
|
|
1121
1121
|
class: "hb-lib-list-page-container",
|
|
1122
1122
|
ref_key: "PageContainerRef",
|
|
1123
1123
|
ref: u
|
|
1124
1124
|
}, [
|
|
1125
|
-
W(
|
|
1125
|
+
W(M.$slots, "header"),
|
|
1126
1126
|
d("section", {
|
|
1127
1127
|
class: "list-page-box",
|
|
1128
1128
|
style: re(
|
|
@@ -1132,7 +1132,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
)
|
|
1134
1134
|
}, [
|
|
1135
|
-
W(
|
|
1135
|
+
W(M.$slots, "default")
|
|
1136
1136
|
], 4)
|
|
1137
1137
|
], 512));
|
|
1138
1138
|
}
|
|
@@ -1191,18 +1191,18 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1191
1191
|
},
|
|
1192
1192
|
{ immediate: !0 }
|
|
1193
1193
|
);
|
|
1194
|
-
const
|
|
1195
|
-
k && (b.value = k,
|
|
1194
|
+
const M = (k) => {
|
|
1195
|
+
k && (b.value = k, B.value = [...f.value], s.value = "", setTimeout(() => {
|
|
1196
1196
|
if (l.value) {
|
|
1197
1197
|
const y = l.value.input || l.value.$el?.querySelector("input");
|
|
1198
1198
|
y && y.focus();
|
|
1199
1199
|
}
|
|
1200
1200
|
}, 100));
|
|
1201
|
-
},
|
|
1202
|
-
f.value = [...
|
|
1201
|
+
}, B = O([]), N = () => {
|
|
1202
|
+
f.value = [...B.value], b.value = !1, n("cancel");
|
|
1203
1203
|
}, x = O([]), g = () => {
|
|
1204
1204
|
const k = o.multiple ? f.value : f.value[0] || "", y = o.options.filter((r) => f.value.includes(r.value));
|
|
1205
|
-
x.value = y, console.log(k, y),
|
|
1205
|
+
x.value = y, console.log(k, y), B.value = [...f.value], u.value = k, n("update:value", k), n("change", k, y), n("confirm", k, y), b.value = !1;
|
|
1206
1206
|
}, T = Qt((k) => {
|
|
1207
1207
|
const y = k !== void 0 ? k : s.value;
|
|
1208
1208
|
o.remoteSearch && (n("search", y), n("update:searchValue", y));
|
|
@@ -1224,7 +1224,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
1226
|
return (k, y) => {
|
|
1227
|
-
const r =
|
|
1227
|
+
const r = V("a-tag"), h = V("a-input"), A = V("a-checkbox"), P = V("a-radio"), K = V("a-button"), se = V("a-select");
|
|
1228
1228
|
return i(), S("div", ee({
|
|
1229
1229
|
class: "hb-lib-selector-wrapper",
|
|
1230
1230
|
style: { "--prefix-width": m.value }
|
|
@@ -1240,20 +1240,20 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1240
1240
|
allowClear: "",
|
|
1241
1241
|
maxTagCount: e.maxTagCount,
|
|
1242
1242
|
options: a.value,
|
|
1243
|
-
onDropdownVisibleChange:
|
|
1243
|
+
onDropdownVisibleChange: M,
|
|
1244
1244
|
onSearch: _(T),
|
|
1245
1245
|
"max-tag-text-length": e.tagTextLength,
|
|
1246
1246
|
class: Y({ "has-prefix": e.prefix }),
|
|
1247
1247
|
"data-prefix": e.prefix,
|
|
1248
1248
|
style: { width: "100%" }
|
|
1249
1249
|
}, {
|
|
1250
|
-
tagRender: c(({ value: I, label:
|
|
1250
|
+
tagRender: c(({ value: I, label: R, closable: X, option: le }) => [
|
|
1251
1251
|
w(r, {
|
|
1252
1252
|
class: "hb-lib-search-tag",
|
|
1253
|
-
onClick: y[0] || (y[0] = () =>
|
|
1253
|
+
onClick: y[0] || (y[0] = () => M(!0))
|
|
1254
1254
|
}, {
|
|
1255
1255
|
default: c(() => [
|
|
1256
|
-
d("span", Io, L(
|
|
1256
|
+
d("span", Io, L(R), 1),
|
|
1257
1257
|
le?.description ? (i(), S("span", Mo, " (" + L(le.description) + ") ", 1)) : E("", !0)
|
|
1258
1258
|
]),
|
|
1259
1259
|
_: 2
|
|
@@ -1267,10 +1267,10 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1267
1267
|
ref: l,
|
|
1268
1268
|
class: "hb-lib-selector-search-input",
|
|
1269
1269
|
value: s.value,
|
|
1270
|
-
"onUpdate:value": y[1] || (y[1] = (
|
|
1270
|
+
"onUpdate:value": y[1] || (y[1] = (R) => s.value = R),
|
|
1271
1271
|
placeholder: "请输入关键词搜索",
|
|
1272
1272
|
"allow-clear": "",
|
|
1273
|
-
onInput: y[2] || (y[2] = (
|
|
1273
|
+
onInput: y[2] || (y[2] = (R) => _(T)(R.target.value))
|
|
1274
1274
|
}, {
|
|
1275
1275
|
prefix: c(() => [
|
|
1276
1276
|
w(_(De))
|
|
@@ -1279,48 +1279,48 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1279
1279
|
}, 8, ["value"])
|
|
1280
1280
|
]),
|
|
1281
1281
|
d("div", Ao, [
|
|
1282
|
-
(i(!0), S(q, null, ie(a.value, (
|
|
1283
|
-
key:
|
|
1284
|
-
class: Y(["hb-lib-selector-option", { selected: f.value.includes(
|
|
1285
|
-
onClick: () => F(
|
|
1282
|
+
(i(!0), S(q, null, ie(a.value, (R) => (i(), S("div", {
|
|
1283
|
+
key: R.value,
|
|
1284
|
+
class: Y(["hb-lib-selector-option", { selected: f.value.includes(R.value) }]),
|
|
1285
|
+
onClick: () => F(R)
|
|
1286
1286
|
}, [
|
|
1287
|
-
e.multiple ? (i(),
|
|
1287
|
+
e.multiple ? (i(), U(A, {
|
|
1288
1288
|
key: 0,
|
|
1289
|
-
checked: f.value.includes(
|
|
1290
|
-
onChange: () => F(
|
|
1289
|
+
checked: f.value.includes(R.value),
|
|
1290
|
+
onChange: () => F(R),
|
|
1291
1291
|
onClick: y[3] || (y[3] = Fe(() => {
|
|
1292
1292
|
}, ["stop"]))
|
|
1293
|
-
}, null, 8, ["checked", "onChange"])) : (i(),
|
|
1293
|
+
}, null, 8, ["checked", "onChange"])) : (i(), U(P, {
|
|
1294
1294
|
key: 1,
|
|
1295
|
-
checked: f.value.includes(
|
|
1296
|
-
onChange: () => F(
|
|
1295
|
+
checked: f.value.includes(R.value),
|
|
1296
|
+
onChange: () => F(R),
|
|
1297
1297
|
onClick: y[4] || (y[4] = Fe(() => {
|
|
1298
1298
|
}, ["stop"]))
|
|
1299
1299
|
}, null, 8, ["checked", "onChange"])),
|
|
1300
1300
|
d("div", zo, [
|
|
1301
|
-
d("div", Eo, L(
|
|
1301
|
+
d("div", Eo, L(R.label), 1)
|
|
1302
1302
|
])
|
|
1303
1303
|
], 10, Oo))), 128))
|
|
1304
1304
|
]),
|
|
1305
1305
|
a.value.length === 0 ? (i(), S("div", No, L(k.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : E("", !0),
|
|
1306
1306
|
e.multiple ? (i(), S("div", Po, [
|
|
1307
|
-
w(
|
|
1307
|
+
w(A, {
|
|
1308
1308
|
checked: C.value,
|
|
1309
1309
|
indeterminate: p.value,
|
|
1310
1310
|
onChange: H
|
|
1311
1311
|
}, {
|
|
1312
1312
|
default: c(() => [
|
|
1313
|
-
|
|
1313
|
+
D(L(k.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 1
|
|
1316
1316
|
}, 8, ["checked", "indeterminate"]),
|
|
1317
1317
|
d("div", Ro, [
|
|
1318
1318
|
w(K, {
|
|
1319
1319
|
size: "small",
|
|
1320
|
-
onClick:
|
|
1320
|
+
onClick: N
|
|
1321
1321
|
}, {
|
|
1322
1322
|
default: c(() => [
|
|
1323
|
-
|
|
1323
|
+
D(L(k.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1324
1324
|
]),
|
|
1325
1325
|
_: 1
|
|
1326
1326
|
}),
|
|
@@ -1330,7 +1330,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1330
1330
|
onClick: g
|
|
1331
1331
|
}, {
|
|
1332
1332
|
default: c(() => [
|
|
1333
|
-
|
|
1333
|
+
D(L(k.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1334
1334
|
]),
|
|
1335
1335
|
_: 1
|
|
1336
1336
|
})
|
|
@@ -1340,10 +1340,10 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1340
1340
|
d("div", Vo, [
|
|
1341
1341
|
w(K, {
|
|
1342
1342
|
size: "small",
|
|
1343
|
-
onClick:
|
|
1343
|
+
onClick: N
|
|
1344
1344
|
}, {
|
|
1345
1345
|
default: c(() => [
|
|
1346
|
-
|
|
1346
|
+
D(L(k.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1347
1347
|
]),
|
|
1348
1348
|
_: 1
|
|
1349
1349
|
})
|
|
@@ -1373,11 +1373,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1373
1373
|
const n = e, u = o, b = O(!1), s = O(""), f = O(), l = O(), a = O([]), m = O([]), C = O(), p = Se({
|
|
1374
1374
|
searchText: "",
|
|
1375
1375
|
searchedColumn: ""
|
|
1376
|
-
}),
|
|
1376
|
+
}), M = z(() => n.tableData.map((r) => (r.id = r.id || Math.random(), r))), B = z(() => n.tableColumn.map((r) => (r.customFilterDropdown && (r.onFilter = (h, A) => A[r.dataIndex].toString().toLowerCase().includes(h.toLowerCase()), r.onFilterDropdownVisibleChange = (h) => {
|
|
1377
1377
|
h && setTimeout(() => {
|
|
1378
1378
|
f.value?.focus();
|
|
1379
1379
|
}, 100);
|
|
1380
|
-
}), { ...r }))),
|
|
1380
|
+
}), { ...r }))), N = () => {
|
|
1381
1381
|
let r = "";
|
|
1382
1382
|
m.value.forEach((h) => {
|
|
1383
1383
|
r = r + h[n.labelKey] + ",";
|
|
@@ -1393,8 +1393,8 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1393
1393
|
a.value = [], m.value = [];
|
|
1394
1394
|
}, F = () => {
|
|
1395
1395
|
s.value = "", T();
|
|
1396
|
-
}, H = (r, h,
|
|
1397
|
-
h(), p.searchText = r[0], p.searchedColumn =
|
|
1396
|
+
}, H = (r, h, A) => {
|
|
1397
|
+
h(), p.searchText = r[0], p.searchedColumn = A;
|
|
1398
1398
|
}, k = (r, h) => {
|
|
1399
1399
|
r({ confirm: !0 }), p.searchText = "", h();
|
|
1400
1400
|
}, y = (r, h) => {
|
|
@@ -1403,13 +1403,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1403
1403
|
return t({
|
|
1404
1404
|
resetInputVal: F
|
|
1405
1405
|
}), (r, h) => {
|
|
1406
|
-
const
|
|
1406
|
+
const A = V("a-input"), P = V("a-button"), K = V("a-table"), se = V("a-modal");
|
|
1407
1407
|
return i(), S("div", {
|
|
1408
1408
|
class: "hb-lib-multipleSelectModal-box",
|
|
1409
1409
|
ref_key: "hbMultipSelectModalRef",
|
|
1410
1410
|
ref: l
|
|
1411
1411
|
}, [
|
|
1412
|
-
w(
|
|
1412
|
+
w(A, {
|
|
1413
1413
|
readonly: "",
|
|
1414
1414
|
onClick: g,
|
|
1415
1415
|
value: s.value,
|
|
@@ -1429,24 +1429,24 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1429
1429
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1430
1430
|
}, {
|
|
1431
1431
|
footer: c(() => [
|
|
1432
|
-
w(
|
|
1432
|
+
w(P, { onClick: T }, {
|
|
1433
1433
|
default: c(() => [
|
|
1434
|
-
|
|
1434
|
+
D(L(r.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 1
|
|
1437
1437
|
}),
|
|
1438
|
-
w(
|
|
1438
|
+
w(P, { onClick: x }, {
|
|
1439
1439
|
default: c(() => [
|
|
1440
|
-
|
|
1440
|
+
D(L(r.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1441
1441
|
]),
|
|
1442
1442
|
_: 1
|
|
1443
1443
|
}),
|
|
1444
|
-
w(
|
|
1444
|
+
w(P, {
|
|
1445
1445
|
type: "primary",
|
|
1446
|
-
onClick:
|
|
1446
|
+
onClick: N
|
|
1447
1447
|
}, {
|
|
1448
1448
|
default: c(() => [
|
|
1449
|
-
|
|
1449
|
+
D(L(r.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1450
1450
|
]),
|
|
1451
1451
|
_: 1
|
|
1452
1452
|
})
|
|
@@ -1455,41 +1455,41 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1455
1455
|
w(K, {
|
|
1456
1456
|
ref_key: "tableRef",
|
|
1457
1457
|
ref: C,
|
|
1458
|
-
columns:
|
|
1459
|
-
dataSource:
|
|
1458
|
+
columns: B.value,
|
|
1459
|
+
dataSource: M.value,
|
|
1460
1460
|
rowSelection: { selectedRowKeys: a.value, onChange: y },
|
|
1461
1461
|
rowKey: (I) => I[e.tableKey],
|
|
1462
1462
|
scroll: { y: e.tableHeight }
|
|
1463
1463
|
}, {
|
|
1464
|
-
customFilterDropdown: c(({ setSelectedKeys: I, selectedKeys:
|
|
1464
|
+
customFilterDropdown: c(({ setSelectedKeys: I, selectedKeys: R, confirm: X, clearFilters: le, column: ce }) => [
|
|
1465
1465
|
d("div", qo, [
|
|
1466
|
-
w(
|
|
1466
|
+
w(A, {
|
|
1467
1467
|
ref_key: "searchInput",
|
|
1468
1468
|
ref: f,
|
|
1469
1469
|
placeholder: `请输入${ce.title}`,
|
|
1470
|
-
value:
|
|
1470
|
+
value: R[0],
|
|
1471
1471
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1472
1472
|
onChange: (ue) => I(ue.target.value ? [ue.target.value] : []),
|
|
1473
|
-
onPressEnter: (ue) => H(
|
|
1473
|
+
onPressEnter: (ue) => H(R, X, ce.dataIndex)
|
|
1474
1474
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1475
1475
|
d("section", Ko, [
|
|
1476
|
-
w(
|
|
1476
|
+
w(P, {
|
|
1477
1477
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1478
1478
|
type: "ghost",
|
|
1479
1479
|
onClick: (ue) => k(le, X)
|
|
1480
1480
|
}, {
|
|
1481
1481
|
default: c(() => [
|
|
1482
|
-
|
|
1482
|
+
D(L(r.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1483
1483
|
]),
|
|
1484
1484
|
_: 1
|
|
1485
1485
|
}, 8, ["onClick"]),
|
|
1486
|
-
w(
|
|
1486
|
+
w(P, {
|
|
1487
1487
|
type: "primary",
|
|
1488
1488
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1489
|
-
onClick: (ue) => H(
|
|
1489
|
+
onClick: (ue) => H(R, X, ce.dataIndex)
|
|
1490
1490
|
}, {
|
|
1491
1491
|
default: c(() => [
|
|
1492
|
-
|
|
1492
|
+
D(L(r.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1493
1493
|
]),
|
|
1494
1494
|
_: 1
|
|
1495
1495
|
}, 8, ["onClick"])
|
|
@@ -1501,14 +1501,14 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1501
1501
|
style: re({ color: I ? "#108ee9" : void 0 })
|
|
1502
1502
|
}, null, 8, ["style"])
|
|
1503
1503
|
]),
|
|
1504
|
-
bodyCell: c(({ text: I, column:
|
|
1505
|
-
p.searchText && p.searchedColumn ===
|
|
1504
|
+
bodyCell: c(({ text: I, column: R }) => [
|
|
1505
|
+
p.searchText && p.searchedColumn === R.dataIndex ? (i(), S("span", Go, [
|
|
1506
1506
|
(i(!0), S(q, null, ie(I.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`, "i")), (X, le) => (i(), S(q, null, [
|
|
1507
1507
|
X.toLowerCase() === p.searchText.toLowerCase() ? (i(), S("mark", {
|
|
1508
1508
|
key: le,
|
|
1509
1509
|
class: "highlight"
|
|
1510
1510
|
}, L(X), 1)) : (i(), S(q, { key: 1 }, [
|
|
1511
|
-
|
|
1511
|
+
D(L(X), 1)
|
|
1512
1512
|
], 64))
|
|
1513
1513
|
], 64))), 256))
|
|
1514
1514
|
])) : E("", !0)
|
|
@@ -1550,7 +1550,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1550
1550
|
x.handler && x.handler(o.record);
|
|
1551
1551
|
}, p = (x) => {
|
|
1552
1552
|
s.value = x, u.value = !0;
|
|
1553
|
-
},
|
|
1553
|
+
}, M = () => {
|
|
1554
1554
|
if (s.value) {
|
|
1555
1555
|
b.value = !0;
|
|
1556
1556
|
try {
|
|
@@ -1559,9 +1559,9 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1559
1559
|
b.value = !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
|
-
},
|
|
1562
|
+
}, B = () => {
|
|
1563
1563
|
u.value = !1, s.value = null;
|
|
1564
|
-
},
|
|
1564
|
+
}, N = z(() => s.value ? {
|
|
1565
1565
|
title: s.value.confirmTitle,
|
|
1566
1566
|
content: s.value.confirmContent || s.value.confirmTitle
|
|
1567
1567
|
} : {
|
|
@@ -1576,7 +1576,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1576
1576
|
AModal: je,
|
|
1577
1577
|
DownOutlined: Ke
|
|
1578
1578
|
}), (x, g) => {
|
|
1579
|
-
const T =
|
|
1579
|
+
const T = V("a-divider"), F = St("has");
|
|
1580
1580
|
return i(), S("div", Zo, [
|
|
1581
1581
|
(i(!0), S(q, null, ie(l.value, (H, k) => (i(), S(q, { key: k }, [
|
|
1582
1582
|
H.needConfirm ? (i(), S(q, { key: 0 }, [
|
|
@@ -1586,11 +1586,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1586
1586
|
onClick: (y) => p(H),
|
|
1587
1587
|
class: "hb-lib-table-main-action"
|
|
1588
1588
|
}, [
|
|
1589
|
-
|
|
1589
|
+
D(L(H.label), 1)
|
|
1590
1590
|
], 8, Xo)), [
|
|
1591
1591
|
[F, H.permissionsTag || null]
|
|
1592
1592
|
]),
|
|
1593
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(),
|
|
1593
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(), U(T, {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
type: "vertical"
|
|
1596
1596
|
})) : E("", !0)
|
|
@@ -1601,21 +1601,21 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1601
1601
|
}, {
|
|
1602
1602
|
default: c(() => [
|
|
1603
1603
|
be((i(), S("a", el, [
|
|
1604
|
-
|
|
1604
|
+
D(L(H.label), 1)
|
|
1605
1605
|
])), [
|
|
1606
1606
|
[F, H.permissionsTag || null]
|
|
1607
1607
|
])
|
|
1608
1608
|
]),
|
|
1609
1609
|
_: 2
|
|
1610
1610
|
}, 1032, ["title", "onConfirm"]),
|
|
1611
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(),
|
|
1611
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(), U(T, {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
type: "vertical"
|
|
1614
1614
|
})) : E("", !0)
|
|
1615
1615
|
], 64))
|
|
1616
1616
|
], 64)) : H.slot ? (i(), S(q, { key: 1 }, [
|
|
1617
1617
|
W(x.$slots, H.slot, { item: H }, void 0, !0),
|
|
1618
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(),
|
|
1618
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(), U(T, {
|
|
1619
1619
|
key: 0,
|
|
1620
1620
|
type: "vertical"
|
|
1621
1621
|
})) : E("", !0)
|
|
@@ -1625,11 +1625,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1625
1625
|
onClick: (y) => C(H),
|
|
1626
1626
|
class: "hb-lib-table-main-action"
|
|
1627
1627
|
}, [
|
|
1628
|
-
|
|
1628
|
+
D(L(H.label), 1)
|
|
1629
1629
|
], 8, tl)), [
|
|
1630
1630
|
[F, H.permissionsTag || null]
|
|
1631
1631
|
]),
|
|
1632
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? be((i(),
|
|
1632
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? be((i(), U(T, {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
type: "vertical"
|
|
1635
1635
|
}, null, 512)), [
|
|
@@ -1637,11 +1637,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1637
1637
|
]) : E("", !0)
|
|
1638
1638
|
], 64))
|
|
1639
1639
|
], 64))), 128)),
|
|
1640
|
-
a.value && a.value.length > 0 ? (i(),
|
|
1640
|
+
a.value && a.value.length > 0 ? (i(), U(_(bt), { key: 0 }, {
|
|
1641
1641
|
overlay: c(() => [
|
|
1642
1642
|
w(_(ut), null, {
|
|
1643
1643
|
default: c(() => [
|
|
1644
|
-
(i(!0), S(q, null, ie(a.value, (H, k) => be((i(),
|
|
1644
|
+
(i(!0), S(q, null, ie(a.value, (H, k) => be((i(), U(_(dt), { key: k }, {
|
|
1645
1645
|
default: c(() => [
|
|
1646
1646
|
H.needConfirm ? (i(), S(q, { key: 0 }, [
|
|
1647
1647
|
H.confirmType === "modal" ? be((i(), S("a", {
|
|
@@ -1649,17 +1649,17 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1649
1649
|
href: "javascript:;",
|
|
1650
1650
|
onClick: (y) => p(H)
|
|
1651
1651
|
}, [
|
|
1652
|
-
|
|
1652
|
+
D(L(H.label), 1)
|
|
1653
1653
|
], 8, ll)), [
|
|
1654
1654
|
[F, H.permissionsTag || null]
|
|
1655
|
-
]) : be((i(),
|
|
1655
|
+
]) : be((i(), U(_(Re), {
|
|
1656
1656
|
key: 1,
|
|
1657
1657
|
title: H.confirmTitle,
|
|
1658
1658
|
onConfirm: (y) => C(H)
|
|
1659
1659
|
}, {
|
|
1660
1660
|
default: c(() => [
|
|
1661
1661
|
be((i(), S("a", al, [
|
|
1662
|
-
|
|
1662
|
+
D(L(H.label), 1)
|
|
1663
1663
|
])), [
|
|
1664
1664
|
[F, H.permissionsTag || null]
|
|
1665
1665
|
])
|
|
@@ -1673,7 +1673,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1673
1673
|
href: "javascript:;",
|
|
1674
1674
|
onClick: (y) => C(H)
|
|
1675
1675
|
}, [
|
|
1676
|
-
|
|
1676
|
+
D(L(H.label), 1)
|
|
1677
1677
|
], 8, nl)), [
|
|
1678
1678
|
[F, H.permissionsTag || null]
|
|
1679
1679
|
])
|
|
@@ -1688,7 +1688,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1688
1688
|
]),
|
|
1689
1689
|
default: c(() => [
|
|
1690
1690
|
d("a", ol, [
|
|
1691
|
-
|
|
1691
|
+
D(L(x.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1692
1692
|
w(_(Ke), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1693
1693
|
])
|
|
1694
1694
|
]),
|
|
@@ -1696,13 +1696,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1696
1696
|
})) : E("", !0),
|
|
1697
1697
|
w(_(je), {
|
|
1698
1698
|
visible: u.value,
|
|
1699
|
-
title:
|
|
1699
|
+
title: N.value.title,
|
|
1700
1700
|
"confirm-loading": b.value,
|
|
1701
|
-
onOk:
|
|
1702
|
-
onCancel:
|
|
1701
|
+
onOk: M,
|
|
1702
|
+
onCancel: B
|
|
1703
1703
|
}, {
|
|
1704
1704
|
default: c(() => [
|
|
1705
|
-
d("p", il, L(
|
|
1705
|
+
d("p", il, L(N.value.content), 1)
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 1
|
|
1708
1708
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
@@ -1777,16 +1777,16 @@ function Al(e, t, o) {
|
|
|
1777
1777
|
if (typeof e != "function")
|
|
1778
1778
|
throw new TypeError(Ml);
|
|
1779
1779
|
t = mt(t) || 0, Ge(o) && (m = !!o.leading, C = "maxWait" in o, b = C ? Dl(mt(o.maxWait) || 0, t) : b, p = "trailing" in o ? !!o.trailing : p);
|
|
1780
|
-
function
|
|
1780
|
+
function M(y) {
|
|
1781
1781
|
var r = n, h = u;
|
|
1782
1782
|
return n = u = void 0, a = y, s = e.apply(h, r), s;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1785
|
-
return a = y, f = setTimeout(g, t), m ?
|
|
1784
|
+
function B(y) {
|
|
1785
|
+
return a = y, f = setTimeout(g, t), m ? M(y) : s;
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
var r = y - l, h = y - a,
|
|
1789
|
-
return C ? Bl(
|
|
1787
|
+
function N(y) {
|
|
1788
|
+
var r = y - l, h = y - a, A = t - r;
|
|
1789
|
+
return C ? Bl(A, b - h) : A;
|
|
1790
1790
|
}
|
|
1791
1791
|
function x(y) {
|
|
1792
1792
|
var r = y - l, h = y - a;
|
|
@@ -1796,10 +1796,10 @@ function Al(e, t, o) {
|
|
|
1796
1796
|
var y = Ue();
|
|
1797
1797
|
if (x(y))
|
|
1798
1798
|
return T(y);
|
|
1799
|
-
f = setTimeout(g,
|
|
1799
|
+
f = setTimeout(g, N(y));
|
|
1800
1800
|
}
|
|
1801
1801
|
function T(y) {
|
|
1802
|
-
return f = void 0, p && n ?
|
|
1802
|
+
return f = void 0, p && n ? M(y) : (n = u = void 0, s);
|
|
1803
1803
|
}
|
|
1804
1804
|
function F() {
|
|
1805
1805
|
f !== void 0 && clearTimeout(f), a = 0, n = l = u = f = void 0;
|
|
@@ -1811,9 +1811,9 @@ function Al(e, t, o) {
|
|
|
1811
1811
|
var y = Ue(), r = x(y);
|
|
1812
1812
|
if (n = arguments, u = this, l = y, r) {
|
|
1813
1813
|
if (f === void 0)
|
|
1814
|
-
return
|
|
1814
|
+
return B(l);
|
|
1815
1815
|
if (C)
|
|
1816
|
-
return clearTimeout(f), f = setTimeout(g, t),
|
|
1816
|
+
return clearTimeout(f), f = setTimeout(g, t), M(l);
|
|
1817
1817
|
}
|
|
1818
1818
|
return f === void 0 && (f = setTimeout(g, t)), s;
|
|
1819
1819
|
}
|
|
@@ -1868,11 +1868,11 @@ const Ol = {
|
|
|
1868
1868
|
C();
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
},
|
|
1871
|
+
}, M = (g, T, F) => {
|
|
1872
1872
|
g?.current && n("change", g, T, F);
|
|
1873
|
-
},
|
|
1873
|
+
}, B = (g, T = "YYYY-MM-DD HH:mm:ss") => g ? Oe(g).format(T) : "", N = (g, T) => g && T[g] || "", x = (g, T = o.listTable?.ellipsisNumber || 20) => g ? g.length > T ? `${g.substring(0, T)}...` : g : "";
|
|
1874
1874
|
return (g, T) => {
|
|
1875
|
-
const F =
|
|
1875
|
+
const F = V("a-empty"), H = V("a-tooltip"), k = V("HbLibCopy"), y = V("a-tag"), r = V("a-table");
|
|
1876
1876
|
return i(), S("div", {
|
|
1877
1877
|
class: Y(["hb-lib-list-table", { "nowrap-table": b.rowHeight }]),
|
|
1878
1878
|
style: re({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
@@ -1886,7 +1886,7 @@ const Ol = {
|
|
|
1886
1886
|
columns: s.value,
|
|
1887
1887
|
tableLayout: "fixed",
|
|
1888
1888
|
onResizeColumn: p,
|
|
1889
|
-
onChange:
|
|
1889
|
+
onChange: M,
|
|
1890
1890
|
scroll: m.value ? {
|
|
1891
1891
|
x: a.value
|
|
1892
1892
|
} : { x: a.value, y: _(f).tableHeight }
|
|
@@ -1907,61 +1907,61 @@ const Ol = {
|
|
|
1907
1907
|
column: h,
|
|
1908
1908
|
title: h.title
|
|
1909
1909
|
}, () => [
|
|
1910
|
-
|
|
1910
|
+
D(L(h.title), 1)
|
|
1911
1911
|
], !0)
|
|
1912
1912
|
]),
|
|
1913
1913
|
key: "0"
|
|
1914
1914
|
} : void 0,
|
|
1915
1915
|
g.$slots.bodyCell ? {
|
|
1916
1916
|
name: "bodyCell",
|
|
1917
|
-
fn: c(({ column: h, record:
|
|
1917
|
+
fn: c(({ column: h, record: A, index: P, text: K }) => [
|
|
1918
1918
|
W(g.$slots, "bodyCell", {
|
|
1919
1919
|
column: h,
|
|
1920
|
-
record:
|
|
1921
|
-
index:
|
|
1920
|
+
record: A,
|
|
1921
|
+
index: P,
|
|
1922
1922
|
text: K
|
|
1923
1923
|
}, void 0, !0),
|
|
1924
|
-
h && h.needTooltip && !h.needCopy ? (i(),
|
|
1924
|
+
h && h.needTooltip && !h.needCopy ? (i(), U(H, {
|
|
1925
1925
|
key: 0,
|
|
1926
1926
|
placement: e.tooltipPlacement
|
|
1927
1927
|
}, {
|
|
1928
1928
|
title: c(() => [
|
|
1929
|
-
|
|
1929
|
+
D(L(A[h.dataIndex]), 1)
|
|
1930
1930
|
]),
|
|
1931
1931
|
default: c(() => [
|
|
1932
|
-
|
|
1932
|
+
D(" " + L(A[h.dataIndex]), 1)
|
|
1933
1933
|
]),
|
|
1934
1934
|
_: 2
|
|
1935
1935
|
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), S("div", El, [
|
|
1936
|
-
|
|
1936
|
+
D(L(A[h.dataIndex]) + " ", 1),
|
|
1937
1937
|
w(k, {
|
|
1938
|
-
"cp-text":
|
|
1938
|
+
"cp-text": A[h.dataIndex],
|
|
1939
1939
|
style: { position: "relative" }
|
|
1940
1940
|
}, null, 8, ["cp-text"])
|
|
1941
1941
|
])) : E("", !0),
|
|
1942
1942
|
h && h.needTooltip && h.needCopy ? (i(), S("div", Nl, [
|
|
1943
1943
|
w(H, { placement: e.tooltipPlacement }, {
|
|
1944
1944
|
title: c(() => [
|
|
1945
|
-
|
|
1945
|
+
D(L(A[h.dataIndex]), 1)
|
|
1946
1946
|
]),
|
|
1947
1947
|
default: c(() => [
|
|
1948
|
-
|
|
1948
|
+
D(" " + L(x(A[h.dataIndex], h.strLen)), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["placement"]),
|
|
1952
1952
|
w(k, {
|
|
1953
|
-
"cp-text":
|
|
1953
|
+
"cp-text": A[h.dataIndex],
|
|
1954
1954
|
style: { position: "relative" }
|
|
1955
1955
|
}, null, 8, ["cp-text"])
|
|
1956
1956
|
])) : h && h.needFormat ? (i(), S(q, { key: 3 }, [
|
|
1957
|
-
|
|
1957
|
+
D(L(B(A[h.dataIndex], h.format)), 1)
|
|
1958
1958
|
], 64)) : h && h.tags ? (i(), S(q, { key: 4 }, [
|
|
1959
|
-
|
|
1959
|
+
N(A[h.dataIndex], h.tags) ? (i(), U(y, {
|
|
1960
1960
|
key: 0,
|
|
1961
|
-
color:
|
|
1961
|
+
color: N(A[h.dataIndex], h.tags)
|
|
1962
1962
|
}, {
|
|
1963
1963
|
default: c(() => [
|
|
1964
|
-
|
|
1964
|
+
D(L(A[h.dataIndex]), 1)
|
|
1965
1965
|
]),
|
|
1966
1966
|
_: 2
|
|
1967
1967
|
}, 1032, ["color"])) : E("", !0)
|
|
@@ -1971,10 +1971,10 @@ const Ol = {
|
|
|
1971
1971
|
} : void 0,
|
|
1972
1972
|
g.$slots.expandedRowRender ? {
|
|
1973
1973
|
name: "expandedRowRender",
|
|
1974
|
-
fn: c(({ record: h, index:
|
|
1974
|
+
fn: c(({ record: h, index: A }) => [
|
|
1975
1975
|
W(g.$slots, "expandedRowRender", {
|
|
1976
1976
|
record: h,
|
|
1977
|
-
index:
|
|
1977
|
+
index: A
|
|
1978
1978
|
}, void 0, !0)
|
|
1979
1979
|
]),
|
|
1980
1980
|
key: "2"
|
|
@@ -1995,11 +1995,11 @@ const Ol = {
|
|
|
1995
1995
|
} : void 0,
|
|
1996
1996
|
g.$slots.expandIcon ? {
|
|
1997
1997
|
name: "expandIcon",
|
|
1998
|
-
fn: c(({ expanded: h, record:
|
|
1998
|
+
fn: c(({ expanded: h, record: A, index: P }) => [
|
|
1999
1999
|
W(g.$slots, "expandIcon", {
|
|
2000
2000
|
expanded: h,
|
|
2001
|
-
record:
|
|
2002
|
-
index:
|
|
2001
|
+
record: A,
|
|
2002
|
+
index: P
|
|
2003
2003
|
}, void 0, !0)
|
|
2004
2004
|
]),
|
|
2005
2005
|
key: "5"
|
|
@@ -2075,21 +2075,21 @@ const Ol = {
|
|
|
2075
2075
|
O([]);
|
|
2076
2076
|
const f = O(!1), l = O([]), a = O(null), m = z(() => s.value.length > 0 && s.value.length === b.value.length), C = z(() => s.value.length > 0 && s.value.length < b.value.length), p = (y) => {
|
|
2077
2077
|
a.value = y.oldIndex;
|
|
2078
|
-
},
|
|
2078
|
+
}, M = (y) => {
|
|
2079
2079
|
const r = y.newIndex;
|
|
2080
|
-
if (b.value.some((
|
|
2081
|
-
const
|
|
2082
|
-
if ((
|
|
2080
|
+
if (b.value.some((A) => A.fixed === "left" || A.fixed === "right" || A.fixed === !0)) {
|
|
2081
|
+
const A = b.value.filter((K) => K.fixed === "left").length, P = b.value.length - b.value.filter((K) => K.fixed === "right").length;
|
|
2082
|
+
if ((A > 0 && r < A || P < b.value.length && r >= P) && (ke.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
2083
2083
|
const K = l.value.splice(r, 1)[0];
|
|
2084
2084
|
l.value.splice(a.value, 0, K);
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
2087
|
a.value = null;
|
|
2088
|
-
},
|
|
2088
|
+
}, B = (y) => {
|
|
2089
2089
|
y.target.checked ? l.value.forEach((h) => h.checked = !0) : l.value.forEach((h) => {
|
|
2090
2090
|
h.dataIndex !== "action" && h.dataIndex !== "actions" && (h.checked = !1);
|
|
2091
2091
|
});
|
|
2092
|
-
},
|
|
2092
|
+
}, N = () => {
|
|
2093
2093
|
b.value = u.localColumns.map((r) => ({
|
|
2094
2094
|
...r,
|
|
2095
2095
|
label: r.title && r.title.tag ? F(r.title) : r.title || r.title2,
|
|
@@ -2120,11 +2120,11 @@ const Ol = {
|
|
|
2120
2120
|
const r = l.value.findIndex((h) => h.value === y.value);
|
|
2121
2121
|
if (r !== -1) {
|
|
2122
2122
|
let h = -1;
|
|
2123
|
-
for (let
|
|
2124
|
-
l.value[
|
|
2123
|
+
for (let A = 0; A < l.value.length; A++)
|
|
2124
|
+
l.value[A].fixed === "left" && (h = A);
|
|
2125
2125
|
if (h !== -1 && r !== h + 1) {
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2126
|
+
const A = [...l.value], [P] = A.splice(r, 1);
|
|
2127
|
+
A.splice(h + 1, 0, P), l.value = A;
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
2130
|
}, k = (y) => {
|
|
@@ -2133,10 +2133,10 @@ const Ol = {
|
|
|
2133
2133
|
let h = -1;
|
|
2134
2134
|
for (let se = 0; se < l.value.length; se++)
|
|
2135
2135
|
l.value[se].fixed === "left" && (h = se);
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2136
|
+
const A = [...l.value], [P] = A.splice(r, 1);
|
|
2137
|
+
P.fixed = "left";
|
|
2138
2138
|
const K = h === -1 ? 0 : h + 1;
|
|
2139
|
-
|
|
2139
|
+
A.splice(K, 0, P), l.value = A;
|
|
2140
2140
|
}
|
|
2141
2141
|
};
|
|
2142
2142
|
return te(
|
|
@@ -2149,7 +2149,7 @@ const Ol = {
|
|
|
2149
2149
|
deep: !0
|
|
2150
2150
|
}
|
|
2151
2151
|
), (y, r) => {
|
|
2152
|
-
const h =
|
|
2152
|
+
const h = V("a-tooltip"), A = V("a-button");
|
|
2153
2153
|
return i(), S("div", Vl, [
|
|
2154
2154
|
w(_(Ut), {
|
|
2155
2155
|
title: _(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
@@ -2157,43 +2157,43 @@ const Ol = {
|
|
|
2157
2157
|
placement: "leftTop",
|
|
2158
2158
|
overlayClassName: "column_setting_popover",
|
|
2159
2159
|
visible: f.value,
|
|
2160
|
-
"onUpdate:visible": r[1] || (r[1] = (
|
|
2160
|
+
"onUpdate:visible": r[1] || (r[1] = (P) => f.value = P)
|
|
2161
2161
|
}, {
|
|
2162
2162
|
content: c(() => [
|
|
2163
2163
|
w(_($e), {
|
|
2164
2164
|
modelValue: l.value,
|
|
2165
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2165
|
+
"onUpdate:modelValue": r[0] || (r[0] = (P) => l.value = P),
|
|
2166
2166
|
"item-key": "value",
|
|
2167
2167
|
class: "hb-lib-table-set-drag",
|
|
2168
2168
|
"ghost-class": "ghost",
|
|
2169
2169
|
animation: "200",
|
|
2170
2170
|
handle: ".drag-handle",
|
|
2171
2171
|
onStart: p,
|
|
2172
|
-
onEnd:
|
|
2172
|
+
onEnd: M
|
|
2173
2173
|
}, {
|
|
2174
|
-
item: c(({ element:
|
|
2175
|
-
|
|
2174
|
+
item: c(({ element: P }) => [
|
|
2175
|
+
P.fixed !== "right" ? (i(), S("div", jl, [
|
|
2176
2176
|
w(_(Me), {
|
|
2177
|
-
checked:
|
|
2178
|
-
onChange: (K) => x(
|
|
2177
|
+
checked: P.checked,
|
|
2178
|
+
onChange: (K) => x(P, K.target.checked)
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: c(() => [
|
|
2181
|
-
|
|
2181
|
+
D(L(P.label), 1)
|
|
2182
2182
|
]),
|
|
2183
2183
|
_: 2
|
|
2184
2184
|
}, 1032, ["checked", "onChange"]),
|
|
2185
|
-
|
|
2185
|
+
P.checked ? (i(), S("section", Wl, [
|
|
2186
2186
|
d("span", {
|
|
2187
|
-
class: Y(
|
|
2187
|
+
class: Y(P.fixed ? "drag-hide" : "drag-handle")
|
|
2188
2188
|
}, "⋮⋮", 2),
|
|
2189
|
-
|
|
2189
|
+
P.fixed ? (i(), U(h, { key: 0 }, {
|
|
2190
2190
|
title: c(() => [
|
|
2191
|
-
|
|
2191
|
+
D(L(_(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2192
2192
|
]),
|
|
2193
2193
|
default: c(() => [
|
|
2194
2194
|
d("span", {
|
|
2195
2195
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2196
|
-
onClick: (K) => H(
|
|
2196
|
+
onClick: (K) => H(P)
|
|
2197
2197
|
}, [...r[2] || (r[2] = [
|
|
2198
2198
|
d("svg", {
|
|
2199
2199
|
t: "1759048615600",
|
|
@@ -2215,14 +2215,14 @@ const Ol = {
|
|
|
2215
2215
|
]),
|
|
2216
2216
|
_: 2
|
|
2217
2217
|
}, 1024)) : E("", !0),
|
|
2218
|
-
|
|
2218
|
+
P.fixed ? E("", !0) : (i(), U(h, { key: 1 }, {
|
|
2219
2219
|
title: c(() => [
|
|
2220
|
-
|
|
2220
|
+
D(L(_(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2221
2221
|
]),
|
|
2222
2222
|
default: c(() => [
|
|
2223
2223
|
d("span", {
|
|
2224
2224
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2225
|
-
onClick: (K) => k(
|
|
2225
|
+
onClick: (K) => k(P)
|
|
2226
2226
|
}, [...r[3] || (r[3] = [
|
|
2227
2227
|
d("svg", {
|
|
2228
2228
|
t: "1759048735643",
|
|
@@ -2254,30 +2254,30 @@ const Ol = {
|
|
|
2254
2254
|
w(_(Me), {
|
|
2255
2255
|
checked: m.value,
|
|
2256
2256
|
indeterminate: C.value,
|
|
2257
|
-
onChange:
|
|
2257
|
+
onChange: B
|
|
2258
2258
|
}, {
|
|
2259
2259
|
default: c(() => [
|
|
2260
|
-
|
|
2260
|
+
D(L(_(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2261
2261
|
]),
|
|
2262
2262
|
_: 1
|
|
2263
2263
|
}, 8, ["checked", "indeterminate"])
|
|
2264
2264
|
]),
|
|
2265
|
-
u.localColumns.length ? (i(),
|
|
2265
|
+
u.localColumns.length ? (i(), U(A, {
|
|
2266
2266
|
key: 0,
|
|
2267
2267
|
style: { "margin-right": "6px" },
|
|
2268
|
-
onClick:
|
|
2268
|
+
onClick: N
|
|
2269
2269
|
}, {
|
|
2270
2270
|
default: c(() => [
|
|
2271
|
-
|
|
2271
|
+
D(L(_(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2272
2272
|
]),
|
|
2273
2273
|
_: 1
|
|
2274
2274
|
})) : E("", !0),
|
|
2275
|
-
w(
|
|
2275
|
+
w(A, {
|
|
2276
2276
|
onClick: g,
|
|
2277
2277
|
type: "primary"
|
|
2278
2278
|
}, {
|
|
2279
2279
|
default: c(() => [
|
|
2280
|
-
|
|
2280
|
+
D(L(_(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2281
2281
|
]),
|
|
2282
2282
|
_: 1
|
|
2283
2283
|
})
|
|
@@ -2352,14 +2352,14 @@ const Ol = {
|
|
|
2352
2352
|
emits: ["update:value"],
|
|
2353
2353
|
setup(e, { expose: t }) {
|
|
2354
2354
|
const o = e, n = Ot(), u = z(() => {
|
|
2355
|
-
const
|
|
2355
|
+
const B = n, N = B.dropdownClassName;
|
|
2356
2356
|
return {
|
|
2357
|
-
...
|
|
2358
|
-
dropdownClassName:
|
|
2357
|
+
...B,
|
|
2358
|
+
dropdownClassName: N ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2359
2359
|
};
|
|
2360
2360
|
}), b = O(), s = kt(e, "value"), f = z(() => o.options ?? []), l = z(() => ({
|
|
2361
2361
|
maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
|
|
2362
|
-
})), a = (
|
|
2362
|
+
})), a = (B) => B.tooltip ?? B.label, m = (B) => B.key ?? B.label, C = (B) => !!(o.enableTooltip && a(B));
|
|
2363
2363
|
return t({
|
|
2364
2364
|
focus: () => {
|
|
2365
2365
|
b.value?.focus?.();
|
|
@@ -2368,22 +2368,22 @@ const Ol = {
|
|
|
2368
2368
|
b.value?.blur?.();
|
|
2369
2369
|
},
|
|
2370
2370
|
selectRef: b
|
|
2371
|
-
}), (
|
|
2371
|
+
}), (B, N) => (i(), U(_(Ye), ee({
|
|
2372
2372
|
ref_key: "selectRef",
|
|
2373
2373
|
ref: b,
|
|
2374
2374
|
class: "hb_lib_form_tooltip_select"
|
|
2375
2375
|
}, u.value, {
|
|
2376
2376
|
value: s.value,
|
|
2377
|
-
"onUpdate:value":
|
|
2377
|
+
"onUpdate:value": N[0] || (N[0] = (x) => s.value = x)
|
|
2378
2378
|
}), {
|
|
2379
2379
|
default: c(() => [
|
|
2380
|
-
|
|
2380
|
+
B.$slots.default ? W(B.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), S(q, { key: 1 }, ie(f.value, (x) => (i(), U(_(qe), ee({
|
|
2381
2381
|
key: m(x),
|
|
2382
2382
|
value: x.value,
|
|
2383
2383
|
disabled: x.disabled
|
|
2384
2384
|
}, { ref_for: !0 }, x.optionProps), {
|
|
2385
2385
|
default: c(() => [
|
|
2386
|
-
C(x) ? (i(),
|
|
2386
|
+
C(x) ? (i(), U(_(Ie), {
|
|
2387
2387
|
key: 0,
|
|
2388
2388
|
title: a(x),
|
|
2389
2389
|
placement: o.tooltipPlacement,
|
|
@@ -2434,10 +2434,10 @@ const Ol = {
|
|
|
2434
2434
|
}), f = (p) => {
|
|
2435
2435
|
if (p == null)
|
|
2436
2436
|
return;
|
|
2437
|
-
const
|
|
2438
|
-
if (
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2437
|
+
const M = s.fileList.indexOf(p);
|
|
2438
|
+
if (M !== -1) {
|
|
2439
|
+
const B = s.fileList.slice();
|
|
2440
|
+
B.splice(M, 1), s.fileList = B;
|
|
2441
2441
|
}
|
|
2442
2442
|
}, l = () => {
|
|
2443
2443
|
s.visible = !1, s.fileList = [], b.value = !1;
|
|
@@ -2456,13 +2456,13 @@ const Ol = {
|
|
|
2456
2456
|
openModal: C,
|
|
2457
2457
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2458
2458
|
confirmLoading: b
|
|
2459
|
-
}), (p,
|
|
2460
|
-
const
|
|
2459
|
+
}), (p, M) => {
|
|
2460
|
+
const B = V("a-upload-dragger"), N = V("a-form-item"), x = V("a-form"), g = V("a-modal"), T = V("a-button");
|
|
2461
2461
|
return i(), S(q, null, [
|
|
2462
2462
|
w(g, ee({
|
|
2463
2463
|
title: u.title,
|
|
2464
2464
|
visible: s.visible,
|
|
2465
|
-
"onUpdate:visible":
|
|
2465
|
+
"onUpdate:visible": M[0] || (M[0] = (F) => s.visible = F),
|
|
2466
2466
|
"confirm-loading": b.value
|
|
2467
2467
|
}, p.$attrs, {
|
|
2468
2468
|
onCancel: l,
|
|
@@ -2476,13 +2476,13 @@ const Ol = {
|
|
|
2476
2476
|
model: s
|
|
2477
2477
|
}, {
|
|
2478
2478
|
default: c(() => [
|
|
2479
|
-
w(
|
|
2479
|
+
w(N, {
|
|
2480
2480
|
name: "fileList",
|
|
2481
2481
|
label: _(o)("hbLibComp.HbImportFile.fileLabel"),
|
|
2482
2482
|
rules: [{ required: u.isRequired, message: _(o)("hbLibComp.HbImportFile.clickUp") }]
|
|
2483
2483
|
}, {
|
|
2484
2484
|
default: c(() => [
|
|
2485
|
-
w(
|
|
2485
|
+
w(B, {
|
|
2486
2486
|
maxCount: u.maxCount,
|
|
2487
2487
|
multiple: u.multiple,
|
|
2488
2488
|
accept: u.acceptFile,
|
|
@@ -2496,7 +2496,7 @@ const Ol = {
|
|
|
2496
2496
|
w(_(Jt), { style: { "font-size": "37px" } })
|
|
2497
2497
|
]),
|
|
2498
2498
|
d("p", na, [
|
|
2499
|
-
|
|
2499
|
+
D(L(_(o)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2500
2500
|
d("span", ia, L(_(o)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2501
2501
|
]),
|
|
2502
2502
|
d("p", sa, L(_(o)("hbLibComp.HbFileUploadModal.format")) + ": " + L(u.acceptFile), 1)
|
|
@@ -2524,7 +2524,7 @@ const Ol = {
|
|
|
2524
2524
|
type: "primary"
|
|
2525
2525
|
}, {
|
|
2526
2526
|
default: c(() => [
|
|
2527
|
-
|
|
2527
|
+
D(L(e.btnText), 1)
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 1
|
|
2530
2530
|
})
|
|
@@ -2608,7 +2608,7 @@ const Ol = {
|
|
|
2608
2608
|
ke.error(b.value);
|
|
2609
2609
|
});
|
|
2610
2610
|
};
|
|
2611
|
-
return (l, a) => s.value ? (i(),
|
|
2611
|
+
return (l, a) => s.value ? (i(), U(_(Ie), {
|
|
2612
2612
|
key: 0,
|
|
2613
2613
|
title: n.value
|
|
2614
2614
|
}, {
|
|
@@ -2717,7 +2717,7 @@ const Ol = {
|
|
|
2717
2717
|
return (m, C) => (i(), S("div", {
|
|
2718
2718
|
class: Y(_(u).b())
|
|
2719
2719
|
}, [
|
|
2720
|
-
m.childrenType == "component" ? (i(),
|
|
2720
|
+
m.childrenType == "component" ? (i(), U(_($e), ee({
|
|
2721
2721
|
key: 0,
|
|
2722
2722
|
modelValue: n.value,
|
|
2723
2723
|
"onUpdate:modelValue": C[0] || (C[0] = (p) => n.value = p),
|
|
@@ -2731,10 +2731,10 @@ const Ol = {
|
|
|
2731
2731
|
onRemove: a
|
|
2732
2732
|
}), {
|
|
2733
2733
|
item: c(({ element: p }) => [
|
|
2734
|
-
(i(),
|
|
2734
|
+
(i(), U(wt(p.component)))
|
|
2735
2735
|
]),
|
|
2736
2736
|
_: 1
|
|
2737
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (i(),
|
|
2737
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), U(_($e), ee({
|
|
2738
2738
|
key: 1,
|
|
2739
2739
|
modelValue: n.value,
|
|
2740
2740
|
"onUpdate:modelValue": C[1] || (C[1] = (p) => n.value = p),
|
|
@@ -2805,21 +2805,21 @@ const Ol = {
|
|
|
2805
2805
|
return t({
|
|
2806
2806
|
currentActiveItem: s
|
|
2807
2807
|
}), (l, a) => {
|
|
2808
|
-
const m =
|
|
2809
|
-
return i(),
|
|
2808
|
+
const m = V("a-menu-item"), C = V("a-menu"), p = V("a-dropdown");
|
|
2809
|
+
return i(), U(p, {
|
|
2810
2810
|
trigger: [n.triggerWay]
|
|
2811
2811
|
}, {
|
|
2812
2812
|
overlay: c(() => [
|
|
2813
2813
|
w(C, null, {
|
|
2814
2814
|
default: c(() => [
|
|
2815
|
-
(i(!0), S(q, null, ie(b.value, (
|
|
2816
|
-
key:
|
|
2817
|
-
onClick: (
|
|
2815
|
+
(i(!0), S(q, null, ie(b.value, (M) => (i(), U(m, {
|
|
2816
|
+
key: M.value + M.sort,
|
|
2817
|
+
onClick: (B) => f(M)
|
|
2818
2818
|
}, {
|
|
2819
2819
|
default: c(() => [
|
|
2820
2820
|
d("span", {
|
|
2821
|
-
class: Y(s.value ==
|
|
2822
|
-
}, L(
|
|
2821
|
+
class: Y(s.value == M.value + M.sort ? "activted" : "")
|
|
2822
|
+
}, L(M.label), 3)
|
|
2823
2823
|
]),
|
|
2824
2824
|
_: 2
|
|
2825
2825
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -2833,7 +2833,7 @@ const Ol = {
|
|
|
2833
2833
|
onClick: a[0] || (a[0] = Fe(() => {
|
|
2834
2834
|
}, ["prevent"]))
|
|
2835
2835
|
}, [
|
|
2836
|
-
|
|
2836
|
+
D(L(n.colText) + " ", 1),
|
|
2837
2837
|
w(_(Ke))
|
|
2838
2838
|
])
|
|
2839
2839
|
]),
|
|
@@ -3000,10 +3000,10 @@ const Ol = {
|
|
|
3000
3000
|
}, C = (x) => {
|
|
3001
3001
|
a.pagination.current = x.current, a.pagination.pageSize = x.pageSize, m();
|
|
3002
3002
|
}, p = () => {
|
|
3003
|
-
a.list = [],
|
|
3004
|
-
},
|
|
3005
|
-
|
|
3006
|
-
},
|
|
3003
|
+
a.list = [], N("update:visible", !1);
|
|
3004
|
+
}, M = () => {
|
|
3005
|
+
N("update:visible", !0);
|
|
3006
|
+
}, B = (x, g = "YYYY-MM-DD HH:mm:ss") => x ? Oe(x).format(g) : "", N = o;
|
|
3007
3007
|
return te(
|
|
3008
3008
|
() => u.visible,
|
|
3009
3009
|
(x) => {
|
|
@@ -3013,7 +3013,7 @@ const Ol = {
|
|
|
3013
3013
|
close: p,
|
|
3014
3014
|
loading: l
|
|
3015
3015
|
}), (x, g) => {
|
|
3016
|
-
const T =
|
|
3016
|
+
const T = V("a-tooltip"), F = V("HbLibCopy"), H = V("a-table"), k = V("a-button"), y = V("HbLibModal");
|
|
3017
3017
|
return i(), S(q, null, [
|
|
3018
3018
|
w(y, ee(x.$attrs, {
|
|
3019
3019
|
visible: e.visible,
|
|
@@ -3027,7 +3027,7 @@ const Ol = {
|
|
|
3027
3027
|
footer: c(() => [
|
|
3028
3028
|
w(k, { onClick: p }, {
|
|
3029
3029
|
default: c(() => [
|
|
3030
|
-
|
|
3030
|
+
D(L(_(n)("hbLibComp.HbLogModal.close")), 1)
|
|
3031
3031
|
]),
|
|
3032
3032
|
_: 1
|
|
3033
3033
|
})
|
|
@@ -3046,12 +3046,12 @@ const Ol = {
|
|
|
3046
3046
|
}, Ae({
|
|
3047
3047
|
bodyCell: c(({ column: r, record: h }) => [
|
|
3048
3048
|
r && r.needTooltip ? (i(), S(q, { key: 0 }, [
|
|
3049
|
-
r.needTooltip ? (i(),
|
|
3049
|
+
r.needTooltip ? (i(), U(T, { key: 0 }, {
|
|
3050
3050
|
title: c(() => [
|
|
3051
|
-
|
|
3051
|
+
D(L(h[r.dataIndex]), 1)
|
|
3052
3052
|
]),
|
|
3053
3053
|
default: c(() => [
|
|
3054
|
-
|
|
3054
|
+
D(" " + L(h[r.dataIndex]), 1)
|
|
3055
3055
|
]),
|
|
3056
3056
|
_: 2
|
|
3057
3057
|
}, 1024)) : E("", !0)
|
|
@@ -3064,7 +3064,7 @@ const Ol = {
|
|
|
3064
3064
|
}, null, 8, ["cp-text"])
|
|
3065
3065
|
], 64)) : E("", !0),
|
|
3066
3066
|
r && r.needFormat ? (i(), S(q, { key: 2 }, [
|
|
3067
|
-
|
|
3067
|
+
D(L(B(h[r.dataIndex], r.operateTime)), 1)
|
|
3068
3068
|
], 64)) : E("", !0)
|
|
3069
3069
|
]),
|
|
3070
3070
|
_: 2
|
|
@@ -3073,7 +3073,7 @@ const Ol = {
|
|
|
3073
3073
|
name: "headerCell",
|
|
3074
3074
|
fn: c(({ column: r }) => [
|
|
3075
3075
|
W(x.$slots, "headerCell", { column: r }, () => [
|
|
3076
|
-
|
|
3076
|
+
D(L(r.title), 1)
|
|
3077
3077
|
], !0)
|
|
3078
3078
|
]),
|
|
3079
3079
|
key: "0"
|
|
@@ -3084,9 +3084,9 @@ const Ol = {
|
|
|
3084
3084
|
_: 3
|
|
3085
3085
|
}, 16, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
|
|
3086
3086
|
e.needBtn ? W(x.$slots, "default", { key: 0 }, () => [
|
|
3087
|
-
w(k, { onClick:
|
|
3087
|
+
w(k, { onClick: M }, {
|
|
3088
3088
|
default: c(() => [
|
|
3089
|
-
|
|
3089
|
+
D(L(e.logBtnText), 1)
|
|
3090
3090
|
]),
|
|
3091
3091
|
_: 1
|
|
3092
3092
|
})
|
|
@@ -3145,7 +3145,7 @@ const Ol = {
|
|
|
3145
3145
|
d("div", Wa, [
|
|
3146
3146
|
d("span", Ya, [
|
|
3147
3147
|
W(u.$slots, "cardTitle", {}, () => [
|
|
3148
|
-
|
|
3148
|
+
D(L(e.cardTitle), 1)
|
|
3149
3149
|
], !0)
|
|
3150
3150
|
]),
|
|
3151
3151
|
d("div", qa, [
|
|
@@ -3197,10 +3197,10 @@ const Ol = {
|
|
|
3197
3197
|
l instanceof Window ? a = window.scrollY + n + 5 : a = l.scrollTop + n + 5;
|
|
3198
3198
|
let m = u.value[0]?.target || "";
|
|
3199
3199
|
for (const C of u.value) {
|
|
3200
|
-
const p = C.target.startsWith("#") || C.target.startsWith(".") ? C.target : `#${C.target}`,
|
|
3201
|
-
if (!
|
|
3202
|
-
let
|
|
3203
|
-
l instanceof HTMLElement && (
|
|
3200
|
+
const p = C.target.startsWith("#") || C.target.startsWith(".") ? C.target : `#${C.target}`, M = document.querySelector(p);
|
|
3201
|
+
if (!M) continue;
|
|
3202
|
+
let B = M.offsetTop;
|
|
3203
|
+
l instanceof HTMLElement && (B -= l.offsetTop), a >= B && (m = C.target);
|
|
3204
3204
|
}
|
|
3205
3205
|
o.value = m;
|
|
3206
3206
|
};
|
|
@@ -3302,36 +3302,36 @@ const Ol = {
|
|
|
3302
3302
|
const { t } = de(), o = e, n = fe(Xe), u = () => {
|
|
3303
3303
|
o.backFn ? o.backFn() : window.history.back();
|
|
3304
3304
|
}, b = z(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), s = z(() => {
|
|
3305
|
-
const
|
|
3305
|
+
const N = {};
|
|
3306
3306
|
return o.needFixWidth ? {
|
|
3307
3307
|
hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3308
3308
|
hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3309
|
-
} :
|
|
3309
|
+
} : N;
|
|
3310
3310
|
}), f = () => document.querySelector(o.container), l = O(!1), a = O(null), { top: m } = Zt(a), C = z(f), { y: p } = Xt(C);
|
|
3311
3311
|
te(
|
|
3312
3312
|
p,
|
|
3313
|
-
(
|
|
3314
|
-
l.value =
|
|
3313
|
+
(N) => {
|
|
3314
|
+
l.value = N > m.value;
|
|
3315
3315
|
},
|
|
3316
3316
|
{ immediate: !0 }
|
|
3317
3317
|
);
|
|
3318
|
-
const
|
|
3318
|
+
const M = (N) => {
|
|
3319
3319
|
document.querySelectorAll(".hb_card_body").forEach((g) => {
|
|
3320
3320
|
g.querySelectorAll(".ant-descriptions-item-content span").forEach((F) => {
|
|
3321
|
-
F.textContent?.trim() || (F.textContent =
|
|
3321
|
+
F.textContent?.trim() || (F.textContent = N);
|
|
3322
3322
|
});
|
|
3323
3323
|
});
|
|
3324
3324
|
};
|
|
3325
|
-
let
|
|
3325
|
+
let B = null;
|
|
3326
3326
|
return he(() => {
|
|
3327
|
-
n?.HbLibDetailBox?.needSetDesDefault && (
|
|
3328
|
-
|
|
3327
|
+
n?.HbLibDetailBox?.needSetDesDefault && (B = setTimeout(() => {
|
|
3328
|
+
M(n?.HbLibDetailBox?.desDefault);
|
|
3329
3329
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3330
3330
|
}), Te(() => {
|
|
3331
|
-
|
|
3332
|
-
}), (
|
|
3333
|
-
const g =
|
|
3334
|
-
return i(),
|
|
3331
|
+
B && clearTimeout(B);
|
|
3332
|
+
}), (N, x) => {
|
|
3333
|
+
const g = V("RollbackOutlined"), T = V("a-divider"), F = V("a-spin");
|
|
3334
|
+
return i(), U(F, { spinning: e.spinning }, {
|
|
3335
3335
|
default: c(() => [
|
|
3336
3336
|
d("div", {
|
|
3337
3337
|
class: Y(["hb_detail_wrapper", s.value]),
|
|
@@ -3369,7 +3369,7 @@ const Ol = {
|
|
|
3369
3369
|
]),
|
|
3370
3370
|
e.needTotalInfoBox ? (i(), S("div", cn, [
|
|
3371
3371
|
d("aside", dn, [
|
|
3372
|
-
W(
|
|
3372
|
+
W(N.$slots, "totalInfoLeft", {}, () => [
|
|
3373
3373
|
d("div", un, L(e.totalInfo.totalInfoTitle), 1),
|
|
3374
3374
|
e.totalInfo.totalInfoSubTitle1 ? (i(), S("div", bn, [
|
|
3375
3375
|
d("span", fn, L(e.totalInfo.totalInfoSubTitle1) + L(e.totalInfo.totalInfoSubVal1), 1),
|
|
@@ -3378,13 +3378,13 @@ const Ol = {
|
|
|
3378
3378
|
], !0)
|
|
3379
3379
|
]),
|
|
3380
3380
|
d("aside", pn, [
|
|
3381
|
-
W(
|
|
3381
|
+
W(N.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3382
3382
|
])
|
|
3383
3383
|
])) : E("", !0)
|
|
3384
3384
|
])) : E("", !0),
|
|
3385
3385
|
d("div", hn, [
|
|
3386
3386
|
d("div", mn, [
|
|
3387
|
-
W(
|
|
3387
|
+
W(N.$slots, "detailContent", {}, void 0, !0)
|
|
3388
3388
|
])
|
|
3389
3389
|
]),
|
|
3390
3390
|
w(_(xt), {
|
|
@@ -3436,7 +3436,14 @@ const Ol = {
|
|
|
3436
3436
|
}
|
|
3437
3437
|
},
|
|
3438
3438
|
setup(e) {
|
|
3439
|
-
const t = e, o = z(() => t.buttons.filter((
|
|
3439
|
+
const t = e, o = z(() => t.buttons.filter((l) => {
|
|
3440
|
+
if (l.condition === void 0 || l.condition === null)
|
|
3441
|
+
return !0;
|
|
3442
|
+
if (typeof l.condition == "boolean")
|
|
3443
|
+
return l.condition;
|
|
3444
|
+
if (typeof l.condition == "function")
|
|
3445
|
+
return l.condition();
|
|
3446
|
+
})), n = O(0), u = (f) => {
|
|
3440
3447
|
let l = 0;
|
|
3441
3448
|
return (Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
3442
3449
|
let C = [];
|
|
@@ -3471,7 +3478,7 @@ const Ol = {
|
|
|
3471
3478
|
}), Je(() => {
|
|
3472
3479
|
s && s.disconnect();
|
|
3473
3480
|
}), (f, l) => {
|
|
3474
|
-
const a =
|
|
3481
|
+
const a = V("a-button"), m = V("a-space"), C = V("a-affix"), p = St("has");
|
|
3475
3482
|
return i(), S("div", {
|
|
3476
3483
|
class: "footer-affix-wrapper",
|
|
3477
3484
|
style: re({ "--pageHeaderOrFonterLeft": n.value + "px" })
|
|
@@ -3491,21 +3498,21 @@ const Ol = {
|
|
|
3491
3498
|
}, [
|
|
3492
3499
|
w(m, null, {
|
|
3493
3500
|
default: c(() => [
|
|
3494
|
-
(i(!0), S(q, null, ie(o.value, (
|
|
3495
|
-
key:
|
|
3496
|
-
type:
|
|
3497
|
-
danger:
|
|
3498
|
-
loading:
|
|
3499
|
-
disabled:
|
|
3500
|
-
onClick:
|
|
3501
|
+
(i(!0), S(q, null, ie(o.value, (M) => be((i(), U(a, {
|
|
3502
|
+
key: M.key,
|
|
3503
|
+
type: M.type || "default",
|
|
3504
|
+
danger: M.danger,
|
|
3505
|
+
loading: M.loading,
|
|
3506
|
+
disabled: M.disabled,
|
|
3507
|
+
onClick: M.onClick,
|
|
3501
3508
|
class: "hb_list_page_button"
|
|
3502
3509
|
}, {
|
|
3503
3510
|
default: c(() => [
|
|
3504
|
-
|
|
3511
|
+
D(L(M.label), 1)
|
|
3505
3512
|
]),
|
|
3506
3513
|
_: 2
|
|
3507
3514
|
}, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
|
|
3508
|
-
[p,
|
|
3515
|
+
[p, M.permissionsTag || null]
|
|
3509
3516
|
])), 128))
|
|
3510
3517
|
]),
|
|
3511
3518
|
_: 1
|
|
@@ -3517,10 +3524,14 @@ const Ol = {
|
|
|
3517
3524
|
], 4);
|
|
3518
3525
|
};
|
|
3519
3526
|
}
|
|
3520
|
-
}), Cn = /* @__PURE__ */ Z(Ln, [["__scopeId", "data-v-
|
|
3527
|
+
}), Cn = /* @__PURE__ */ Z(Ln, [["__scopeId", "data-v-ed3e950e"]]), kn = ye(Cn), Sn = { class: "modal__detail-content" }, Tn = /* @__PURE__ */ G({
|
|
3521
3528
|
name: "HbLibModal",
|
|
3522
3529
|
__name: "HbLibModal",
|
|
3523
3530
|
props: {
|
|
3531
|
+
visible: {
|
|
3532
|
+
type: Boolean,
|
|
3533
|
+
default: !1
|
|
3534
|
+
},
|
|
3524
3535
|
// 弹窗类型 默认是新增
|
|
3525
3536
|
type: {
|
|
3526
3537
|
type: String,
|
|
@@ -3559,76 +3570,84 @@ const Ol = {
|
|
|
3559
3570
|
type: Number
|
|
3560
3571
|
}
|
|
3561
3572
|
},
|
|
3562
|
-
emits: ["ok", "cancel"],
|
|
3573
|
+
emits: ["update:visible", "ok", "cancel"],
|
|
3563
3574
|
setup(e, { expose: t, emit: o }) {
|
|
3564
|
-
const n = o, u = e, b =
|
|
3575
|
+
const n = o, u = e, b = z({
|
|
3576
|
+
get: () => u.visible,
|
|
3577
|
+
set: (P) => n("update:visible", P)
|
|
3578
|
+
}), s = O(null), f = z(() => ({ top: "10px", ...u.modalStyle })), l = z(() => ({ overflow: "hidden", ...u.modalStyle })), a = z(() => ({
|
|
3565
3579
|
maxHeight: "calc(100vh - 120px)",
|
|
3566
3580
|
overflowY: "auto",
|
|
3567
3581
|
padding: "0 6px",
|
|
3568
3582
|
...u.bodyStyle
|
|
3569
|
-
})), { x: m, y: C, isDragging: p } = eo(s),
|
|
3583
|
+
})), { x: m, y: C, isDragging: p } = eo(s), M = O(0), B = O(0), N = O(!1), x = O(0), g = O(0), T = O(0), F = O(0), H = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3570
3584
|
let k = null;
|
|
3571
|
-
|
|
3572
|
-
|
|
3585
|
+
const y = () => {
|
|
3586
|
+
x.value = 0, g.value = 0, T.value = 0, F.value = 0, N.value = !1;
|
|
3587
|
+
};
|
|
3588
|
+
te(b, (P) => {
|
|
3589
|
+
P ? setTimeout(() => {
|
|
3590
|
+
y();
|
|
3591
|
+
}, 50) : (k && clearTimeout(k), k = setTimeout(() => {
|
|
3573
3592
|
x.value = 0, g.value = 0, T.value = 0, F.value = 0;
|
|
3574
3593
|
}, 300));
|
|
3575
3594
|
}), te([m, C], () => {
|
|
3576
|
-
if (!
|
|
3577
|
-
|
|
3578
|
-
const
|
|
3579
|
-
H.value.right =
|
|
3595
|
+
if (!N.value) {
|
|
3596
|
+
M.value = m.value, B.value = C.value;
|
|
3597
|
+
const P = document.body.getBoundingClientRect(), K = s.value.getBoundingClientRect();
|
|
3598
|
+
H.value.right = P.width - K.width, H.value.bottom = P.height - K.height, T.value = x.value, F.value = g.value;
|
|
3580
3599
|
}
|
|
3581
|
-
|
|
3600
|
+
N.value = !0;
|
|
3582
3601
|
}), te(p, () => {
|
|
3583
|
-
p || (
|
|
3602
|
+
p || (N.value = !1);
|
|
3584
3603
|
}), Tt(() => {
|
|
3585
|
-
|
|
3604
|
+
N.value && (x.value = T.value + Math.min(Math.max(H.value.left, m.value), H.value.right) - M.value, g.value = F.value + Math.min(Math.max(H.value.top, C.value), H.value.bottom) - B.value);
|
|
3586
3605
|
});
|
|
3587
|
-
const
|
|
3606
|
+
const r = z(() => ({
|
|
3588
3607
|
transform: `translate(${x.value}px, ${g.value}px)`
|
|
3589
|
-
})),
|
|
3590
|
-
|
|
3591
|
-
},
|
|
3608
|
+
})), h = () => {
|
|
3609
|
+
n("cancel");
|
|
3610
|
+
}, A = () => {
|
|
3592
3611
|
n("ok");
|
|
3593
3612
|
};
|
|
3594
3613
|
return Te(() => {
|
|
3595
3614
|
k && clearTimeout(k);
|
|
3596
3615
|
}), t({
|
|
3597
|
-
handleOk:
|
|
3598
|
-
handleCancel:
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
return i(), N(se, ee({
|
|
3616
|
+
handleOk: A,
|
|
3617
|
+
handleCancel: h
|
|
3618
|
+
}), (P, K) => {
|
|
3619
|
+
const se = V("a-spin"), I = V("a-modal");
|
|
3620
|
+
return i(), U(I, ee({
|
|
3603
3621
|
style: f.value,
|
|
3604
3622
|
bodyStyle: a.value,
|
|
3605
3623
|
ref: "modalRef",
|
|
3606
3624
|
visible: b.value,
|
|
3607
|
-
"onUpdate:visible":
|
|
3625
|
+
"onUpdate:visible": K[0] || (K[0] = (R) => b.value = R),
|
|
3608
3626
|
"wrap-style": l.value,
|
|
3609
|
-
onOk:
|
|
3610
|
-
onCancel:
|
|
3611
|
-
},
|
|
3627
|
+
onOk: A,
|
|
3628
|
+
onCancel: h
|
|
3629
|
+
}, P.$attrs), Ae({
|
|
3612
3630
|
title: c(() => [
|
|
3613
3631
|
d("div", {
|
|
3614
3632
|
ref_key: "modalTitleRef",
|
|
3615
3633
|
ref: s,
|
|
3616
3634
|
style: { width: "100%", cursor: "move" }
|
|
3617
3635
|
}, [
|
|
3618
|
-
W(
|
|
3619
|
-
|
|
3636
|
+
W(P.$slots, "title", {}, () => [
|
|
3637
|
+
D(L(e.title), 1)
|
|
3620
3638
|
], !0)
|
|
3621
3639
|
], 512)
|
|
3622
3640
|
]),
|
|
3623
|
-
modalRender: c(({ originVNode:
|
|
3624
|
-
|
|
3625
|
-
|
|
3641
|
+
modalRender: c(({ originVNode: R }) => [
|
|
3642
|
+
(i(), S("div", {
|
|
3643
|
+
key: b.value,
|
|
3644
|
+
style: re(r.value)
|
|
3626
3645
|
}, [
|
|
3627
|
-
(i(),
|
|
3628
|
-
], 4)
|
|
3646
|
+
(i(), U(wt(R)))
|
|
3647
|
+
], 4))
|
|
3629
3648
|
]),
|
|
3630
3649
|
default: c(() => [
|
|
3631
|
-
w(
|
|
3650
|
+
w(se, {
|
|
3632
3651
|
spinning: u.spinning
|
|
3633
3652
|
}, {
|
|
3634
3653
|
default: c(() => [
|
|
@@ -3641,7 +3660,7 @@ const Ol = {
|
|
|
3641
3660
|
style: re({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3642
3661
|
}, [
|
|
3643
3662
|
d("div", Sn, [
|
|
3644
|
-
W(
|
|
3663
|
+
W(P.$slots, "default", {}, void 0, !0)
|
|
3645
3664
|
])
|
|
3646
3665
|
], 6)
|
|
3647
3666
|
]),
|
|
@@ -3650,17 +3669,17 @@ const Ol = {
|
|
|
3650
3669
|
]),
|
|
3651
3670
|
_: 2
|
|
3652
3671
|
}, [
|
|
3653
|
-
|
|
3672
|
+
P.$slots.footer ? {
|
|
3654
3673
|
name: "footer",
|
|
3655
3674
|
fn: c(() => [
|
|
3656
|
-
W(
|
|
3675
|
+
W(P.$slots, "footer", {}, void 0, !0)
|
|
3657
3676
|
]),
|
|
3658
3677
|
key: "0"
|
|
3659
3678
|
} : void 0
|
|
3660
3679
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3661
3680
|
};
|
|
3662
3681
|
}
|
|
3663
|
-
}), wn = /* @__PURE__ */ Z(Tn, [["__scopeId", "data-v-
|
|
3682
|
+
}), wn = /* @__PURE__ */ Z(Tn, [["__scopeId", "data-v-d4b83e07"]]), xn = ye(wn), Hn = {
|
|
3664
3683
|
key: 0,
|
|
3665
3684
|
class: "hb_edit_header"
|
|
3666
3685
|
}, Fn = { class: "__detail-content" }, $n = {
|
|
@@ -3691,7 +3710,7 @@ const Ol = {
|
|
|
3691
3710
|
},
|
|
3692
3711
|
setup(e) {
|
|
3693
3712
|
const t = O("vertical"), o = e, n = () => document.querySelector(o.container), u = fe("GLOBAL_CONFIG_KEY"), b = z(() => o.backTopBottom || u?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3694
|
-
return (s, f) => (i(),
|
|
3713
|
+
return (s, f) => (i(), U(_(Vt), { spinning: e.spinning }, {
|
|
3695
3714
|
default: c(() => [
|
|
3696
3715
|
d("div", {
|
|
3697
3716
|
class: Y(["hb_edit_wrapper", e.formLabelWidth ? "isNeedSetLabelWidth" : ""]),
|
|
@@ -3745,8 +3764,8 @@ const Ol = {
|
|
|
3745
3764
|
},
|
|
3746
3765
|
setup(e) {
|
|
3747
3766
|
const { t } = de(), o = e, n = Qe(), u = O(0), b = z(() => n?.meta?.title || "");
|
|
3748
|
-
function s(p,
|
|
3749
|
-
let
|
|
3767
|
+
function s(p, M = "offsetHeight") {
|
|
3768
|
+
let B = 0;
|
|
3750
3769
|
return (Array.isArray(p) ? p : [p]).forEach((x) => {
|
|
3751
3770
|
let g = [];
|
|
3752
3771
|
if (x.startsWith("#")) {
|
|
@@ -3755,9 +3774,9 @@ const Ol = {
|
|
|
3755
3774
|
} else
|
|
3756
3775
|
g = Array.from(document.getElementsByClassName(x));
|
|
3757
3776
|
g.forEach((T) => {
|
|
3758
|
-
|
|
3777
|
+
B += T[M] || 0;
|
|
3759
3778
|
});
|
|
3760
|
-
}),
|
|
3779
|
+
}), B;
|
|
3761
3780
|
}
|
|
3762
3781
|
const f = () => {
|
|
3763
3782
|
o.topElements && (u.value = s(o.topElements));
|
|
@@ -3790,8 +3809,8 @@ const Ol = {
|
|
|
3790
3809
|
const C = () => {
|
|
3791
3810
|
o.backFn ? o.backFn() : window.history.back();
|
|
3792
3811
|
};
|
|
3793
|
-
return (p,
|
|
3794
|
-
const
|
|
3812
|
+
return (p, M) => {
|
|
3813
|
+
const B = V("a-divider");
|
|
3795
3814
|
return i(), S("div", {
|
|
3796
3815
|
class: "hb_edit_header",
|
|
3797
3816
|
style: re({ top: u.value + "px", "--pageHeaderOrFonterLeft": l.value + "px" })
|
|
@@ -3802,7 +3821,7 @@ const Ol = {
|
|
|
3802
3821
|
class: "backBtn",
|
|
3803
3822
|
onClick: C
|
|
3804
3823
|
}, L(_(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3805
|
-
w(
|
|
3824
|
+
w(B, { type: "vertical" }),
|
|
3806
3825
|
d("span", On, L(b.value), 1)
|
|
3807
3826
|
]),
|
|
3808
3827
|
d("aside", zn, [
|
|
@@ -3839,8 +3858,8 @@ to && (document.addEventListener("mousedown", (e) => gt = e), document.addEventL
|
|
|
3839
3858
|
function yt(e, t) {
|
|
3840
3859
|
let o = [];
|
|
3841
3860
|
return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n, u) {
|
|
3842
|
-
const b = t.instance.popperRef, s = n.target, f = u?.target, l = !t || !t.instance, a = !s || !f, m = e.contains(s) || e.contains(f), C = e === s, p = o.length && o.some((
|
|
3843
|
-
l || a || m || C || p ||
|
|
3861
|
+
const b = t.instance.popperRef, s = n.target, f = u?.target, l = !t || !t.instance, a = !s || !f, m = e.contains(s) || e.contains(f), C = e === s, p = o.length && o.some((B) => B?.contains(s)) || o.length && o.includes(f), M = b && (b.contains(s) || b.contains(f));
|
|
3862
|
+
l || a || m || C || p || M || t.value(n, u);
|
|
3844
3863
|
};
|
|
3845
3864
|
}
|
|
3846
3865
|
const Un = {
|