@hb-hellotech/hb-ui 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts +3 -3
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts.map +1 -1
- package/dist/components/func_comp/index.d.ts +2 -2
- package/dist/components/func_comp/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +415 -413
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as te, reactive as Le, ref as R, computed as U, watch as se, onMounted as fe, createElementBlock as F, openBlock as o, normalizeClass as Y, unref as n, createVNode as w, withCtx as l, createElementVNode as f, toDisplayString as C, createTextVNode as I, createBlock as O, createCommentVNode as B, Fragment as V, renderList as ne, inject as Oe, resolveComponent as P, Transition as nt, withDirectives as
|
|
2
|
+
import { defineComponent as te, reactive as Le, ref as R, computed as U, watch as se, onMounted as fe, createElementBlock as F, openBlock as o, normalizeClass as Y, unref as n, createVNode as w, withCtx as l, createElementVNode as f, toDisplayString as C, createTextVNode as I, createBlock as O, createCommentVNode as B, Fragment as V, renderList as ne, inject as Oe, resolveComponent as P, Transition as nt, withDirectives as be, mergeProps as ee, createSlots as lt, renderSlot as j, vShow as st, nextTick as ve, onUnmounted as Be, useTemplateRef as it, provide as rt, normalizeStyle as ke, mergeModels as Me, useModel as ot, withModifiers as $e, resolveDirective as dt, useAttrs as ct, watchEffect as ut, shallowRef as pt, resolveDynamicComponent as bt } from "vue";
|
|
3
3
|
import Ce from "vuedraggable";
|
|
4
|
-
import { Modal as Ie, Button as me, Tooltip as He, Switch as Ue, Radio as Ee, RadioGroup as Ve, InputNumber as Ye, DatePicker as je, Checkbox as _e, CheckboxGroup as Ke, Select as De, Input as qe, Col as
|
|
4
|
+
import { Modal as Ie, Button as me, Tooltip as He, Switch as Ue, Radio as Ee, RadioGroup as Ve, InputNumber as Ye, DatePicker as je, Checkbox as _e, CheckboxGroup as Ke, Select as De, Input as qe, Col as ht, Row as mt, FormItem as We, Form as Je, SelectOption as Ae, Popconfirm as Te, MenuItem as Ge, Menu as Qe, Dropdown as Ze, Popover as ft, message as ze } from "ant-design-vue";
|
|
5
5
|
import { useRoute as at } from "vue-router";
|
|
6
6
|
import { useI18n as de } from "vue-i18n";
|
|
7
|
-
import
|
|
7
|
+
import he from "lodash";
|
|
8
8
|
import { CloseOutlined as vt, QuestionCircleOutlined as gt, SearchOutlined as Re, UpCircleOutlined as yt, DownCircleOutlined as Ct, UnorderedListOutlined as _t, DownOutlined as Xe, PlusCircleOutlined as Lt } from "@ant-design/icons-vue";
|
|
9
9
|
import { useFullscreen as kt, useDebounceFn as St } from "@vueuse/core";
|
|
10
10
|
import Se from "dayjs";
|
|
11
11
|
const wt = "hb-", Pe = (t = "") => {
|
|
12
12
|
const m = `${wt}${t}`;
|
|
13
13
|
return Ft(m);
|
|
14
|
-
}, pe = (t, m,
|
|
14
|
+
}, pe = (t, m, r, b) => (m && (t += `-${m}`), r && (t += `__${r}`), b && (t += `--${b}`), t), Ft = (t) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (m) => m ? pe(t, m, "", "") : pe(t, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -19,13 +19,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
19
19
|
// hb-button--primary
|
|
20
20
|
m: (m) => pe(t, "", "", m),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (m,
|
|
22
|
+
be: (m, r) => pe(t, m, r, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (m,
|
|
24
|
+
em: (m, r) => pe(t, "", m, r),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (m,
|
|
26
|
+
bem: (m, r, b) => pe(t, m, r, b),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (m,
|
|
28
|
+
is: (m, r) => r ? `is-${m}` : ""
|
|
29
29
|
}), xt = ["onMouseenter", "onMouseleave"], Tt = ["onClick"], Mt = /* @__PURE__ */ te({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
@@ -38,14 +38,14 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(t, { expose: m, emit:
|
|
42
|
-
const
|
|
41
|
+
setup(t, { expose: m, emit: r }) {
|
|
42
|
+
const b = de().t, _ = de().messages.value.en_US, g = de().messages.value.ja_JP, d = de().messages.value.zh_CN, s = t, h = r, e = Pe("sfcm"), y = at(), z = Le({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), k = R(!1), N = R(600);
|
|
45
45
|
let H = [];
|
|
46
46
|
const $ = R([]), a = R([]), S = U(() => $.value.every((c) => c.isLinked || c.isFixed)), x = (c) => ({
|
|
47
47
|
...c,
|
|
48
|
-
label: u(c) || `${p(c) || ""} (${
|
|
48
|
+
label: u(c) || `${p(c) || ""} (${b("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: c.key,
|
|
50
50
|
isFixed: c?.isFixed || !1,
|
|
51
51
|
isLinked: c?.isLinked || !1,
|
|
@@ -63,7 +63,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, K = U(() => v() + "_" +
|
|
66
|
+
}, K = U(() => v() + "_" + s.saveKey), v = () => {
|
|
67
67
|
const c = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let D = "anonymous";
|
|
69
69
|
if (c)
|
|
@@ -75,21 +75,21 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
75
75
|
let A = y?.path;
|
|
76
76
|
return `searchFormConfig_${D}_${A}`;
|
|
77
77
|
}, u = (c) => ({
|
|
78
|
-
ja_JP: () =>
|
|
79
|
-
en_US: () =>
|
|
80
|
-
zh_CN: () =>
|
|
78
|
+
ja_JP: () => he.get(g, c.labelLanguage || ""),
|
|
79
|
+
en_US: () => he.get(_, c.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => he.get(d, c.labelLanguage || "")
|
|
81
81
|
})[z.lan]?.() || c.label, p = (c) => ({
|
|
82
|
-
ja_JP: () =>
|
|
83
|
-
en_US: () =>
|
|
84
|
-
zh_CN: () =>
|
|
85
|
-
})[z.lan]?.() || c.subLabel,
|
|
82
|
+
ja_JP: () => he.get(g, c.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => he.get(_, c.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => he.get(d, c.subLabelLanguage || "")
|
|
85
|
+
})[z.lan]?.() || c.subLabel, i = (c) => {
|
|
86
86
|
try {
|
|
87
87
|
const D = localStorage.getItem(K.value);
|
|
88
88
|
if (D) {
|
|
89
89
|
const A = JSON.parse(D);
|
|
90
90
|
if (A.originalList && Array.isArray(A.originalList)) {
|
|
91
91
|
H = JSON.parse(JSON.stringify(A.originalList));
|
|
92
|
-
const G = H.filter((W) => W?.isFixed), Z = H.filter((W) => W?.isLinked), re = A.showList.filter((W) => !W.isFixed && !W.isLinked), ue =
|
|
92
|
+
const G = H.filter((W) => W?.isFixed), Z = H.filter((W) => W?.isLinked), re = A.showList.filter((W) => !W.isFixed && !W.isLinked), ue = s.showNumber && s.showNumber > 0 ? Math.max(0, s.showNumber - G.length - Z.length) : re.length, ge = G.map((W) => ({
|
|
93
93
|
...x(W)
|
|
94
94
|
})), we = Z.map((W) => ({
|
|
95
95
|
...x(W)
|
|
@@ -127,20 +127,20 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
127
127
|
}
|
|
128
128
|
}, E = U(() => {
|
|
129
129
|
const c = $.value.filter((A) => !A.isFixed && !A.isLinked).length, D = $.value.filter((A) => A.isFixed || A.isLinked).length;
|
|
130
|
-
return c >=
|
|
130
|
+
return c >= s.showNumber - D;
|
|
131
131
|
});
|
|
132
132
|
se(
|
|
133
|
-
() =>
|
|
133
|
+
() => s.list,
|
|
134
134
|
(c) => {
|
|
135
135
|
let D = JSON.stringify($.value) !== JSON.stringify(c);
|
|
136
136
|
if (!D)
|
|
137
137
|
return;
|
|
138
138
|
const A = localStorage.getItem(K.value), G = JSON.parse(A || "{}");
|
|
139
139
|
if (G && G?.originalList && Array.isArray(G.originalList))
|
|
140
|
-
|
|
140
|
+
i(), h("confirm", $.value);
|
|
141
141
|
else if (D) {
|
|
142
142
|
H = JSON.parse(JSON.stringify(c));
|
|
143
|
-
const Z = c.filter((X) => X?.isFixed), re = c.filter((X) => X?.isLinked), ue = c.filter((X) => !X?.isFixed && !X?.isLinked), ge =
|
|
143
|
+
const Z = c.filter((X) => X?.isFixed), re = c.filter((X) => X?.isLinked), ue = c.filter((X) => !X?.isFixed && !X?.isLinked), ge = s.showNumber && s.showNumber > 0 ? Math.max(0, s.showNumber - Z.length - re.length) : ue.length, we = Z.map((X) => x(X)), Fe = re.map((X) => x(X)), xe = ue.slice(0, ge).map((X) => x(X));
|
|
144
144
|
$.value = [...we, ...Fe, ...xe];
|
|
145
145
|
const Ne = ue.slice(ge).map((X) => ({
|
|
146
146
|
...x(X),
|
|
@@ -167,7 +167,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
167
167
|
}, q = () => {
|
|
168
168
|
k.value = !0;
|
|
169
169
|
}, oe = () => {
|
|
170
|
-
T(),
|
|
170
|
+
T(), h("confirm", $.value), J();
|
|
171
171
|
}, M = (c) => {
|
|
172
172
|
const D = a.value.findIndex((A) => A.key === c.key);
|
|
173
173
|
D !== -1 && (a.value[D].active = !0);
|
|
@@ -287,10 +287,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
287
287
|
], 2));
|
|
288
288
|
}
|
|
289
289
|
}), ae = (t, m) => {
|
|
290
|
-
const
|
|
291
|
-
for (const [
|
|
292
|
-
|
|
293
|
-
return
|
|
290
|
+
const r = t.__vccOpts || t;
|
|
291
|
+
for (const [b, _] of m)
|
|
292
|
+
r[b] = _;
|
|
293
|
+
return r;
|
|
294
294
|
}, $t = /* @__PURE__ */ ae(Mt, [["__scopeId", "data-v-abe66e59"]]), le = (t) => (t.install = (m) => {
|
|
295
295
|
m.component(t.name || "AnonymousComponent", t);
|
|
296
296
|
}, t), It = le($t), Ht = { class: "form-footer" }, Dt = /* @__PURE__ */ te({
|
|
@@ -324,28 +324,28 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
324
324
|
} }
|
|
325
325
|
},
|
|
326
326
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
327
|
-
setup(t, { expose: m, emit:
|
|
328
|
-
const
|
|
329
|
-
...
|
|
330
|
-
label:
|
|
331
|
-
}))), z = U(() =>
|
|
332
|
-
|
|
327
|
+
setup(t, { expose: m, emit: r }) {
|
|
328
|
+
const b = r, _ = Oe("HB_LIST_PAGE_CONTAINER"), g = U(() => s.searchList || []), d = Pe("form"), s = t, h = R("show"), e = U(() => [...s.items]), y = U(() => [...s.items].map((i) => ({
|
|
329
|
+
...i,
|
|
330
|
+
label: i.label?.includes("多项搜索") ? "" : i.label
|
|
331
|
+
}))), z = U(() => s.saveKey), k = R(), N = () => {
|
|
332
|
+
b("handleSearch");
|
|
333
333
|
}, H = () => {
|
|
334
|
-
|
|
334
|
+
b("handleReset");
|
|
335
335
|
}, $ = R(), a = () => {
|
|
336
336
|
$.value && $.value.toOpenModal();
|
|
337
|
-
}, S = (
|
|
338
|
-
|
|
339
|
-
}, x = (
|
|
340
|
-
|
|
337
|
+
}, S = (i) => {
|
|
338
|
+
b("handleMenuClick", i);
|
|
339
|
+
}, x = (i) => {
|
|
340
|
+
b("handleSfcmConfirm", i);
|
|
341
341
|
}, L = () => {
|
|
342
|
-
|
|
342
|
+
h.value = h.value === "show" ? "hide" : "show";
|
|
343
343
|
};
|
|
344
344
|
se(
|
|
345
|
-
() =>
|
|
346
|
-
(
|
|
347
|
-
if (
|
|
348
|
-
console.log(
|
|
345
|
+
() => s.isFormExpanded,
|
|
346
|
+
(i) => {
|
|
347
|
+
if (i) {
|
|
348
|
+
console.log(i);
|
|
349
349
|
const T = document.querySelector("#subpackage_container");
|
|
350
350
|
T instanceof HTMLElement && (T.style.overflow = "hidden", setTimeout(() => {
|
|
351
351
|
T.style.overflow = "auto";
|
|
@@ -353,16 +353,16 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
);
|
|
356
|
-
const K = (
|
|
357
|
-
const T =
|
|
356
|
+
const K = (i) => {
|
|
357
|
+
const T = i;
|
|
358
358
|
T.style.height = "", T.offsetHeight;
|
|
359
|
-
}, v = (
|
|
360
|
-
const T =
|
|
359
|
+
}, v = (i) => {
|
|
360
|
+
const T = i;
|
|
361
361
|
T.style.height = "", T.style.overflow = "", ve(() => {
|
|
362
362
|
_.calTableHeight && _.calTableHeight();
|
|
363
363
|
});
|
|
364
|
-
}, u = (
|
|
365
|
-
const T =
|
|
364
|
+
}, u = (i) => {
|
|
365
|
+
const T = i, E = T.querySelector(".hb-lib-form--container");
|
|
366
366
|
if (E) {
|
|
367
367
|
const Q = E.offsetHeight;
|
|
368
368
|
T.style.height = Q + "px", T.style.overflow = "hidden", T.offsetHeight, requestAnimationFrame(() => {
|
|
@@ -380,7 +380,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
380
380
|
Form: Je,
|
|
381
381
|
FormItem: We,
|
|
382
382
|
Row: mt,
|
|
383
|
-
Col:
|
|
383
|
+
Col: ht,
|
|
384
384
|
Input: qe,
|
|
385
385
|
Select: De,
|
|
386
386
|
CheckboxGroup: Ke,
|
|
@@ -392,7 +392,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
392
392
|
Switch: Ue,
|
|
393
393
|
Button: me,
|
|
394
394
|
Tooltip: He
|
|
395
|
-
}), (
|
|
395
|
+
}), (i, T) => {
|
|
396
396
|
const E = P("a-button"), Q = P("a-tooltip"), ie = P("a-menu-item"), J = P("a-menu"), q = P("a-dropdown"), oe = P("HbLibFormItemFilterModal");
|
|
397
397
|
return o(), F(V, null, [
|
|
398
398
|
w(nt, {
|
|
@@ -403,14 +403,14 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
403
403
|
onAfterLeave: p
|
|
404
404
|
}, {
|
|
405
405
|
default: l(() => [
|
|
406
|
-
|
|
407
|
-
class: Y([n(
|
|
406
|
+
be(f("div", {
|
|
407
|
+
class: Y([n(d).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
408
408
|
}, [
|
|
409
|
-
w(n(Je), ee(
|
|
409
|
+
w(n(Je), ee(i.$attrs, {
|
|
410
410
|
model: t.formData,
|
|
411
411
|
ref_key: "formRef",
|
|
412
412
|
ref: k,
|
|
413
|
-
class: ["hb-lib-form--container",
|
|
413
|
+
class: ["hb-lib-form--container", h.value == "show" ? "" : "hide"]
|
|
414
414
|
}), {
|
|
415
415
|
default: l(() => [
|
|
416
416
|
(o(!0), F(V, null, ne(y.value, (M, ce) => (o(), O(n(We), ee({
|
|
@@ -421,12 +421,12 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
421
421
|
class: M.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
422
422
|
}), lt({
|
|
423
423
|
default: l(() => [
|
|
424
|
-
M.type === "slot" ? j(
|
|
424
|
+
M.type === "slot" ? j(i.$slots, M.key, {
|
|
425
425
|
key: 0,
|
|
426
426
|
formData: t.formData,
|
|
427
427
|
item: M
|
|
428
428
|
}, void 0, !0) : B("", !0),
|
|
429
|
-
M.type === "mixin" ? j(
|
|
429
|
+
M.type === "mixin" ? j(i.$slots, M.key, {
|
|
430
430
|
key: 1,
|
|
431
431
|
formData: t.formData,
|
|
432
432
|
item: M
|
|
@@ -534,7 +534,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
534
534
|
w(n(Re))
|
|
535
535
|
]),
|
|
536
536
|
default: l(() => [
|
|
537
|
-
I(" " + C(
|
|
537
|
+
I(" " + C(i.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
538
538
|
]),
|
|
539
539
|
_: 1
|
|
540
540
|
}),
|
|
@@ -543,13 +543,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
543
543
|
onClick: H
|
|
544
544
|
}, {
|
|
545
545
|
default: l(() => [
|
|
546
|
-
I(C(
|
|
546
|
+
I(C(i.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
547
547
|
]),
|
|
548
548
|
_: 1
|
|
549
549
|
}),
|
|
550
550
|
t.needFilter ? (o(), O(Q, {
|
|
551
551
|
key: 0,
|
|
552
|
-
title:
|
|
552
|
+
title: i.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
553
553
|
}, {
|
|
554
554
|
default: l(() => [
|
|
555
555
|
f("span", {
|
|
@@ -576,7 +576,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
}, 8, ["title"])) : B("", !0),
|
|
579
|
-
j(
|
|
579
|
+
j(i.$slots, "formBtns", {}, () => [
|
|
580
580
|
t.needSearchCase ? (o(), O(q, { key: 0 }, {
|
|
581
581
|
overlay: l(() => [
|
|
582
582
|
w(J, { onClick: S }, {
|
|
@@ -591,13 +591,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
591
591
|
}, 1024))), 128)),
|
|
592
592
|
w(ie, { key: "add" }, {
|
|
593
593
|
default: l(() => [
|
|
594
|
-
I(C(
|
|
594
|
+
I(C(i.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
595
595
|
]),
|
|
596
596
|
_: 1
|
|
597
597
|
}),
|
|
598
598
|
w(ie, { key: "edit" }, {
|
|
599
599
|
default: l(() => [
|
|
600
|
-
I(C(
|
|
600
|
+
I(C(i.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
601
601
|
]),
|
|
602
602
|
_: 1
|
|
603
603
|
})
|
|
@@ -607,7 +607,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
607
607
|
]),
|
|
608
608
|
default: l(() => [
|
|
609
609
|
w(Q, {
|
|
610
|
-
title:
|
|
610
|
+
title: i.$t("hbLibComp.hbLibListForm.queryCase")
|
|
611
611
|
}, {
|
|
612
612
|
default: l(() => [...T[1] || (T[1] = [
|
|
613
613
|
f("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
@@ -649,17 +649,17 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
649
649
|
}, 16, ["model", "class"]),
|
|
650
650
|
t.needFooter ? (o(), F("div", {
|
|
651
651
|
key: 0,
|
|
652
|
-
class: Y(n(
|
|
652
|
+
class: Y(n(d).e("footer"))
|
|
653
653
|
}, [
|
|
654
654
|
f("div", {
|
|
655
|
-
class: Y(n(
|
|
655
|
+
class: Y(n(d).e("footer__left"))
|
|
656
656
|
}, [
|
|
657
|
-
j(
|
|
657
|
+
j(i.$slots, "form-footer-left", {}, void 0, !0)
|
|
658
658
|
], 2),
|
|
659
659
|
f("div", {
|
|
660
|
-
class: Y(n(
|
|
660
|
+
class: Y(n(d).e("footer__right"))
|
|
661
661
|
}, [
|
|
662
|
-
|
|
662
|
+
h.value == "show" ? j(i.$slots, "form-footer-right", {
|
|
663
663
|
key: 0,
|
|
664
664
|
formRef: k.value
|
|
665
665
|
}, () => [
|
|
@@ -668,7 +668,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
668
668
|
onClick: H
|
|
669
669
|
}, {
|
|
670
670
|
default: l(() => [
|
|
671
|
-
I(C(
|
|
671
|
+
I(C(i.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}),
|
|
@@ -677,7 +677,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
677
677
|
onClick: N
|
|
678
678
|
}, {
|
|
679
679
|
default: l(() => [
|
|
680
|
-
I(C(
|
|
680
|
+
I(C(i.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
681
681
|
]),
|
|
682
682
|
_: 1
|
|
683
683
|
})
|
|
@@ -687,7 +687,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
687
687
|
onClick: L
|
|
688
688
|
}, {
|
|
689
689
|
default: l(() => [
|
|
690
|
-
I(C(
|
|
690
|
+
I(C(h.value == "show" ? `${i.$t("hbLibComp.hbListPageAct.close")}` : `${i.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
691
691
|
]),
|
|
692
692
|
_: 1
|
|
693
693
|
})
|
|
@@ -736,40 +736,40 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
736
736
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
737
737
|
},
|
|
738
738
|
setup(t) {
|
|
739
|
-
const m = Oe("HB_LIST_PAGE_CONTAINER"), { isFullscreen:
|
|
740
|
-
const
|
|
741
|
-
let
|
|
742
|
-
if (
|
|
743
|
-
let y = JSON.parse(
|
|
739
|
+
const m = Oe("HB_LIST_PAGE_CONTAINER"), { isFullscreen: r, toggle: b } = kt(m.PageContainerRef), _ = R(""), g = () => {
|
|
740
|
+
const s = at();
|
|
741
|
+
let h = localStorage.getItem("BreadCrumb") || "[]", e = s?.path;
|
|
742
|
+
if (h !== "[]") {
|
|
743
|
+
let y = JSON.parse(h).find((z) => z.value === e);
|
|
744
744
|
y && (_.value = y.label.replace(/-/g, " / "));
|
|
745
745
|
}
|
|
746
746
|
};
|
|
747
747
|
fe(() => {
|
|
748
748
|
g();
|
|
749
749
|
});
|
|
750
|
-
const
|
|
751
|
-
|
|
750
|
+
const d = (s) => {
|
|
751
|
+
s.keyCode === 27 && b();
|
|
752
752
|
};
|
|
753
753
|
return fe(() => {
|
|
754
|
-
window.addEventListener("keydown",
|
|
754
|
+
window.addEventListener("keydown", d);
|
|
755
755
|
}), Be(() => {
|
|
756
|
-
window.removeEventListener("keydown",
|
|
757
|
-
}), (
|
|
756
|
+
window.removeEventListener("keydown", d);
|
|
757
|
+
}), (s, h) => {
|
|
758
758
|
const e = P("a-tooltip");
|
|
759
759
|
return o(), F("section", Ot, [
|
|
760
760
|
f("aside", Bt, C(_.value), 1),
|
|
761
761
|
f("aside", Rt, [
|
|
762
762
|
w(e, {
|
|
763
|
-
title: n(
|
|
763
|
+
title: n(r) ? `${s.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${s.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
764
764
|
placement: "leftTop"
|
|
765
765
|
}, {
|
|
766
766
|
default: l(() => [
|
|
767
767
|
f("span", {
|
|
768
768
|
class: "hb-lib-list-page-act-svg",
|
|
769
|
-
onClick:
|
|
770
|
-
(...y) => n(
|
|
769
|
+
onClick: h[0] || (h[0] = //@ts-ignore
|
|
770
|
+
(...y) => n(b) && n(b)(...y))
|
|
771
771
|
}, [
|
|
772
|
-
n(
|
|
772
|
+
n(r) ? (o(), F("svg", Nt, [...h[2] || (h[2] = [
|
|
773
773
|
f("path", {
|
|
774
774
|
d: "M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",
|
|
775
775
|
fill: "#ff5000",
|
|
@@ -785,7 +785,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
785
785
|
fill: "#ff5000",
|
|
786
786
|
"p-id": "23907"
|
|
787
787
|
}, null, -1)
|
|
788
|
-
])])) : (o(), F("svg", Pt, [...
|
|
788
|
+
])])) : (o(), F("svg", Pt, [...h[1] || (h[1] = [
|
|
789
789
|
f("path", {
|
|
790
790
|
d: "M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",
|
|
791
791
|
fill: "#ff5000",
|
|
@@ -796,12 +796,12 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
796
796
|
]),
|
|
797
797
|
_: 1
|
|
798
798
|
}, 8, ["title"]),
|
|
799
|
-
j(
|
|
799
|
+
j(s.$slots, "listAct", {}, void 0, !0)
|
|
800
800
|
])
|
|
801
801
|
]);
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
}), Et = /* @__PURE__ */ ae(Ut, [["__scopeId", "data-v-
|
|
804
|
+
}), Et = /* @__PURE__ */ ae(Ut, [["__scopeId", "data-v-76bbeb72"]]), Vt = le(Et), Yt = { class: "hb-lib-list-btns-box" }, jt = { class: "hb-lib-list-btns-left" }, Kt = { class: "hb-lib-list-btns-right" }, qt = /* @__PURE__ */ te({
|
|
805
805
|
name: "HbLibListBtnsAct",
|
|
806
806
|
__name: "HbListBtns",
|
|
807
807
|
props: {
|
|
@@ -810,33 +810,33 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
810
810
|
},
|
|
811
811
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
812
812
|
setup(t, { emit: m }) {
|
|
813
|
-
const
|
|
814
|
-
|
|
813
|
+
const r = m, b = R(!0), _ = () => {
|
|
814
|
+
b.value = !b.value, r("handleOpenOrClose", b.value);
|
|
815
815
|
}, g = () => {
|
|
816
|
-
|
|
817
|
-
},
|
|
818
|
-
|
|
816
|
+
r("handleReload");
|
|
817
|
+
}, d = (s) => {
|
|
818
|
+
console.log("keyCode:", s.keyCode), s.keyCode === 16 && _();
|
|
819
819
|
};
|
|
820
820
|
return fe(() => {
|
|
821
|
-
window.addEventListener("keydown",
|
|
821
|
+
window.addEventListener("keydown", d);
|
|
822
822
|
}), Be(() => {
|
|
823
|
-
window.removeEventListener("keydown",
|
|
824
|
-
}), (
|
|
823
|
+
window.removeEventListener("keydown", d);
|
|
824
|
+
}), (s, h) => {
|
|
825
825
|
const e = P("a-tooltip");
|
|
826
826
|
return o(), F("section", Yt, [
|
|
827
827
|
f("aside", jt, [
|
|
828
|
-
j(
|
|
828
|
+
j(s.$slots, "btnsLeft", {}, void 0, !0)
|
|
829
829
|
]),
|
|
830
830
|
f("aside", Kt, [
|
|
831
831
|
t.needReload ? (o(), O(e, {
|
|
832
832
|
key: 0,
|
|
833
|
-
title:
|
|
833
|
+
title: s.$t("hbLibComp.hbListBtnsAct.reload")
|
|
834
834
|
}, {
|
|
835
835
|
default: l(() => [
|
|
836
836
|
f("span", {
|
|
837
837
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
838
838
|
onClick: g
|
|
839
|
-
}, [...
|
|
839
|
+
}, [...h[0] || (h[0] = [
|
|
840
840
|
f("svg", {
|
|
841
841
|
t: "1759041224819",
|
|
842
842
|
class: "icon",
|
|
@@ -859,14 +859,14 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
859
859
|
}, 8, ["title"])) : B("", !0),
|
|
860
860
|
t.needOpenOrClose ? (o(), O(e, {
|
|
861
861
|
key: 1,
|
|
862
|
-
title:
|
|
862
|
+
title: b.value ? `${s.$t("hbLibComp.hbListBtnsAct.close")}` : `${s.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
863
863
|
}, {
|
|
864
864
|
default: l(() => [
|
|
865
865
|
f("span", {
|
|
866
866
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
867
867
|
onClick: _
|
|
868
868
|
}, [
|
|
869
|
-
|
|
869
|
+
b.value ? (o(), O(n(yt), {
|
|
870
870
|
key: 0,
|
|
871
871
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
872
872
|
})) : (o(), O(n(Ct), {
|
|
@@ -877,23 +877,23 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
877
877
|
]),
|
|
878
878
|
_: 1
|
|
879
879
|
}, 8, ["title"])) : B("", !0),
|
|
880
|
-
j(
|
|
880
|
+
j(s.$slots, "btnsRight", {}, void 0, !0)
|
|
881
881
|
])
|
|
882
882
|
]);
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
}), Wt = /* @__PURE__ */ ae(qt, [["__scopeId", "data-v-
|
|
886
|
-
const { formRef: m, offsetBottom:
|
|
887
|
-
let g = null,
|
|
885
|
+
}), Wt = /* @__PURE__ */ ae(qt, [["__scopeId", "data-v-b853924d"]]), Jt = le(Wt), Gt = (t = {}) => {
|
|
886
|
+
const { formRef: m, offsetBottom: r = 50, minHeight: b = 300 } = t, _ = R(0);
|
|
887
|
+
let g = null, d = null, s = null, h = null, e = null;
|
|
888
888
|
const y = () => {
|
|
889
889
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
890
890
|
requestAnimationFrame(() => {
|
|
891
891
|
ve(() => {
|
|
892
892
|
const S = document.querySelector(".ant-table"), x = document.querySelector(".ant-pagination");
|
|
893
893
|
if (S) {
|
|
894
|
-
const L = S.getBoundingClientRect().top, K = window.innerHeight, u = (x ? x.offsetHeight + 20 : 40) +
|
|
894
|
+
const L = S.getBoundingClientRect().top, K = window.innerHeight, u = (x ? x.offsetHeight + 20 : 40) + r;
|
|
895
895
|
let p = K - L - u;
|
|
896
|
-
p <
|
|
896
|
+
p < b && (p = b), _.value = p;
|
|
897
897
|
}
|
|
898
898
|
});
|
|
899
899
|
});
|
|
@@ -921,26 +921,26 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
921
921
|
}), g.observe(S));
|
|
922
922
|
}, N = () => {
|
|
923
923
|
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
924
|
-
S && (
|
|
924
|
+
S && (s = new MutationObserver(() => {
|
|
925
925
|
setTimeout(() => {
|
|
926
926
|
y();
|
|
927
927
|
}, 100);
|
|
928
|
-
}),
|
|
928
|
+
}), s.observe(S, {
|
|
929
929
|
childList: !0,
|
|
930
930
|
subtree: !0,
|
|
931
931
|
attributes: !0,
|
|
932
932
|
attributeFilter: ["style", "class"]
|
|
933
933
|
}));
|
|
934
934
|
}, H = () => {
|
|
935
|
-
|
|
935
|
+
h && clearTimeout(h), h = setTimeout(() => {
|
|
936
936
|
y();
|
|
937
937
|
}, 100);
|
|
938
938
|
}, $ = () => {
|
|
939
939
|
window.addEventListener("resize", H), ve(() => {
|
|
940
|
-
k(), N(),
|
|
940
|
+
k(), N(), d = z();
|
|
941
941
|
});
|
|
942
942
|
}, a = () => {
|
|
943
|
-
window.removeEventListener("resize", H), g && g.disconnect(),
|
|
943
|
+
window.removeEventListener("resize", H), g && g.disconnect(), s && s.disconnect(), d && d.disconnect(), h && clearTimeout(h), e && clearTimeout(e);
|
|
944
944
|
};
|
|
945
945
|
return m && se(
|
|
946
946
|
() => m,
|
|
@@ -968,23 +968,23 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
968
968
|
minHeight: {}
|
|
969
969
|
},
|
|
970
970
|
setup(t) {
|
|
971
|
-
const m = t,
|
|
971
|
+
const m = t, r = it("PageContainerRef"), { calTableHeight: b, tableHeight: _ } = Gt({
|
|
972
972
|
offsetBottom: m.offsetBottom || 20,
|
|
973
973
|
// 底部预留空间
|
|
974
974
|
minHeight: m.minHeight || 300
|
|
975
975
|
// table最小高度 请勿随便修改!!
|
|
976
976
|
}), g = U(() => _.value);
|
|
977
977
|
return rt("HB_LIST_PAGE_CONTAINER", {
|
|
978
|
-
PageContainerRef:
|
|
978
|
+
PageContainerRef: r,
|
|
979
979
|
// 通过函数访问,
|
|
980
980
|
tableHeight: _,
|
|
981
|
-
calTableHeight:
|
|
982
|
-
}), (
|
|
981
|
+
calTableHeight: b
|
|
982
|
+
}), (d, s) => (o(), F("section", {
|
|
983
983
|
class: "hb-lib-list-page-container",
|
|
984
984
|
ref_key: "PageContainerRef",
|
|
985
|
-
ref:
|
|
985
|
+
ref: r
|
|
986
986
|
}, [
|
|
987
|
-
j(
|
|
987
|
+
j(d.$slots, "header"),
|
|
988
988
|
f("section", {
|
|
989
989
|
class: "list-page-box",
|
|
990
990
|
style: ke({
|
|
@@ -992,7 +992,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
992
992
|
"--hb-list-ttable-height": t.tabelData.length ? "" : g.value - m.offsetBottom + "px"
|
|
993
993
|
})
|
|
994
994
|
}, [
|
|
995
|
-
j(
|
|
995
|
+
j(d.$slots, "default")
|
|
996
996
|
], 4)
|
|
997
997
|
], 512));
|
|
998
998
|
}
|
|
@@ -1029,62 +1029,62 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1029
1029
|
}),
|
|
1030
1030
|
emits: /* @__PURE__ */ Me(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1031
1031
|
setup(t, { emit: m }) {
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const v =
|
|
1035
|
-
return
|
|
1036
|
-
}), y = U(() =>
|
|
1032
|
+
const r = t, b = m, _ = ot(t, "value"), g = R(!1), d = R(""), s = R([]), h = R(), e = U(() => {
|
|
1033
|
+
if (r.remoteSearch || !d.value) return r.options;
|
|
1034
|
+
const v = d.value.toLowerCase();
|
|
1035
|
+
return r.options.filter((u) => u.label.toLowerCase().includes(v) || u.description?.toLowerCase().includes(v));
|
|
1036
|
+
}), y = U(() => r.prefix ? `${r.prefix.length * 14 + 8}px` : "0px"), z = U(() => e.value.length === 0 ? !1 : e.value.every((v) => s.value.includes(v.value))), k = U(() => {
|
|
1037
1037
|
if (e.value.length === 0) return !1;
|
|
1038
|
-
const v = e.value.filter((u) =>
|
|
1038
|
+
const v = e.value.filter((u) => s.value.includes(u.value)).length;
|
|
1039
1039
|
return v > 0 && v < e.value.length;
|
|
1040
1040
|
});
|
|
1041
1041
|
se(
|
|
1042
1042
|
() => _.value,
|
|
1043
1043
|
(v) => {
|
|
1044
|
-
v ?
|
|
1044
|
+
v ? s.value = Array.isArray(v) ? [...v] : [v] : s.value = [];
|
|
1045
1045
|
},
|
|
1046
1046
|
{ immediate: !0 }
|
|
1047
1047
|
), se(
|
|
1048
|
-
() =>
|
|
1048
|
+
() => r.searchValue,
|
|
1049
1049
|
(v) => {
|
|
1050
|
-
|
|
1050
|
+
r.remoteSearch && v !== void 0 && (d.value = v);
|
|
1051
1051
|
},
|
|
1052
1052
|
{ immediate: !0 }
|
|
1053
1053
|
);
|
|
1054
1054
|
const N = (v) => {
|
|
1055
|
-
v && (g.value = v, H.value = [...
|
|
1056
|
-
if (
|
|
1057
|
-
const u =
|
|
1055
|
+
v && (g.value = v, H.value = [...s.value], d.value = "", setTimeout(() => {
|
|
1056
|
+
if (h.value) {
|
|
1057
|
+
const u = h.value.input || h.value.$el?.querySelector("input");
|
|
1058
1058
|
u && u.focus();
|
|
1059
1059
|
}
|
|
1060
1060
|
}, 100));
|
|
1061
1061
|
}, H = R([]), $ = () => {
|
|
1062
|
-
|
|
1062
|
+
s.value = [...H.value], g.value = !1, b("cancel");
|
|
1063
1063
|
}, a = R([]), S = () => {
|
|
1064
|
-
const v =
|
|
1065
|
-
a.value = u, console.log(v, u), H.value = [...
|
|
1064
|
+
const v = r.multiple ? s.value : s.value[0] || "", u = r.options.filter((p) => s.value.includes(p.value));
|
|
1065
|
+
a.value = u, console.log(v, u), H.value = [...s.value], _.value = v, b("update:value", v), b("change", v, u), b("confirm", v, u), g.value = !1;
|
|
1066
1066
|
}, x = St((v) => {
|
|
1067
|
-
const u = v !== void 0 ? v :
|
|
1068
|
-
|
|
1067
|
+
const u = v !== void 0 ? v : d.value;
|
|
1068
|
+
r.remoteSearch && (b("search", u), b("update:searchValue", u));
|
|
1069
1069
|
}, 300), L = (v) => {
|
|
1070
|
-
if (
|
|
1071
|
-
const u = new Set(
|
|
1072
|
-
u.has(v.value) ? u.delete(v.value) : u.add(v.value),
|
|
1070
|
+
if (r.multiple) {
|
|
1071
|
+
const u = new Set(s.value);
|
|
1072
|
+
u.has(v.value) ? u.delete(v.value) : u.add(v.value), s.value = Array.from(u);
|
|
1073
1073
|
} else
|
|
1074
|
-
|
|
1074
|
+
s.value = [v.value], S();
|
|
1075
1075
|
}, K = (v) => {
|
|
1076
1076
|
if (v.target.checked) {
|
|
1077
|
-
const p = new Set(
|
|
1078
|
-
e.value.forEach((
|
|
1079
|
-
p.add(
|
|
1080
|
-
}),
|
|
1077
|
+
const p = new Set(s.value);
|
|
1078
|
+
e.value.forEach((i) => {
|
|
1079
|
+
p.add(i.value);
|
|
1080
|
+
}), s.value = Array.from(p);
|
|
1081
1081
|
} else {
|
|
1082
|
-
const p = new Set(e.value.map((
|
|
1083
|
-
|
|
1082
|
+
const p = new Set(e.value.map((i) => i.value));
|
|
1083
|
+
s.value = s.value.filter((i) => !p.has(i));
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
1086
|
return (v, u) => {
|
|
1087
|
-
const p = P("a-tag"),
|
|
1087
|
+
const p = P("a-tag"), i = P("a-input"), T = P("a-checkbox"), E = P("a-radio"), Q = P("a-button"), ie = P("a-select");
|
|
1088
1088
|
return o(), F("div", ee({
|
|
1089
1089
|
class: "hb-lib-selector-wrapper",
|
|
1090
1090
|
style: { "--prefix-width": y.value }
|
|
@@ -1122,12 +1122,12 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1122
1122
|
dropdownRender: l(({ menuNode: J }) => [
|
|
1123
1123
|
f("div", tl, [
|
|
1124
1124
|
f("div", ll, [
|
|
1125
|
-
w(
|
|
1125
|
+
w(i, {
|
|
1126
1126
|
ref_key: "searchInputRef",
|
|
1127
|
-
ref:
|
|
1127
|
+
ref: h,
|
|
1128
1128
|
class: "hb-lib-selector-search-input",
|
|
1129
|
-
value:
|
|
1130
|
-
"onUpdate:value": u[1] || (u[1] = (q) =>
|
|
1129
|
+
value: d.value,
|
|
1130
|
+
"onUpdate:value": u[1] || (u[1] = (q) => d.value = q),
|
|
1131
1131
|
placeholder: "请输入关键词搜索",
|
|
1132
1132
|
"allow-clear": "",
|
|
1133
1133
|
onInput: u[2] || (u[2] = (q) => n(x)(q.target.value))
|
|
@@ -1141,18 +1141,18 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1141
1141
|
f("div", ol, [
|
|
1142
1142
|
(o(!0), F(V, null, ne(e.value, (q) => (o(), F("div", {
|
|
1143
1143
|
key: q.value,
|
|
1144
|
-
class: Y(["hb-lib-selector-option", { selected:
|
|
1144
|
+
class: Y(["hb-lib-selector-option", { selected: s.value.includes(q.value) }]),
|
|
1145
1145
|
onClick: () => L(q)
|
|
1146
1146
|
}, [
|
|
1147
1147
|
t.multiple ? (o(), O(T, {
|
|
1148
1148
|
key: 0,
|
|
1149
|
-
checked:
|
|
1149
|
+
checked: s.value.includes(q.value),
|
|
1150
1150
|
onChange: () => L(q),
|
|
1151
1151
|
onClick: u[3] || (u[3] = $e(() => {
|
|
1152
1152
|
}, ["stop"]))
|
|
1153
1153
|
}, null, 8, ["checked", "onChange"])) : (o(), O(E, {
|
|
1154
1154
|
key: 1,
|
|
1155
|
-
checked:
|
|
1155
|
+
checked: s.value.includes(q.value),
|
|
1156
1156
|
onChange: () => L(q),
|
|
1157
1157
|
onClick: u[4] || (u[4] = $e(() => {
|
|
1158
1158
|
}, ["stop"]))
|
|
@@ -1216,7 +1216,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1216
1216
|
], 16);
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
}),
|
|
1219
|
+
}), bl = /* @__PURE__ */ ae(pl, [["__scopeId", "data-v-87177371"]]), hl = le(bl), ml = { class: "hb-lib-form-item-filter-modal-search" }, fl = { class: "hb-lib-form-item-filter-modal-buttons" }, vl = { key: 0 }, gl = /* @__PURE__ */ te({
|
|
1220
1220
|
name: "HbLibMutilpleSelectModal",
|
|
1221
1221
|
__name: "HbMutilpleSelectModal",
|
|
1222
1222
|
props: {
|
|
@@ -1229,19 +1229,19 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1229
1229
|
labelKey: { default: "label" }
|
|
1230
1230
|
},
|
|
1231
1231
|
emits: ["handleConfirm", "handleCancel"],
|
|
1232
|
-
setup(t, { expose: m, emit:
|
|
1233
|
-
const
|
|
1232
|
+
setup(t, { expose: m, emit: r }) {
|
|
1233
|
+
const b = t, _ = r, g = R(!1), d = R(""), s = R(), h = R(), e = R([]), y = R([]), z = R(), k = Le({
|
|
1234
1234
|
searchText: "",
|
|
1235
1235
|
searchedColumn: ""
|
|
1236
|
-
}), N = U(() =>
|
|
1237
|
-
|
|
1238
|
-
|
|
1236
|
+
}), N = U(() => b.tableData.map((p) => (p.id = p.id || Math.random(), p))), H = U(() => b.tableColumn.map((p) => (p.customFilterDropdown && (p.onFilter = (i, T) => T[p.dataIndex].toString().toLowerCase().includes(i.toLowerCase()), p.onFilterDropdownVisibleChange = (i) => {
|
|
1237
|
+
i && setTimeout(() => {
|
|
1238
|
+
s.value?.focus();
|
|
1239
1239
|
}, 100);
|
|
1240
1240
|
}), { ...p }))), $ = () => {
|
|
1241
1241
|
let p = "";
|
|
1242
|
-
y.value.forEach((
|
|
1243
|
-
p = p +
|
|
1244
|
-
}),
|
|
1242
|
+
y.value.forEach((i) => {
|
|
1243
|
+
p = p + i[b.labelKey] + ",";
|
|
1244
|
+
}), d.value = p.substring(0, p.length - 1), g.value = !1, _("handleConfirm", y.value);
|
|
1245
1245
|
}, a = () => {
|
|
1246
1246
|
g.value = !1;
|
|
1247
1247
|
}, S = () => {
|
|
@@ -1252,28 +1252,28 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1252
1252
|
}, x = () => {
|
|
1253
1253
|
e.value = [], y.value = [];
|
|
1254
1254
|
}, L = () => {
|
|
1255
|
-
|
|
1256
|
-
}, K = (p,
|
|
1257
|
-
|
|
1258
|
-
}, v = (p,
|
|
1259
|
-
p({ confirm: !0 }), k.searchText = "",
|
|
1260
|
-
}, u = (p,
|
|
1261
|
-
e.value = p, y.value =
|
|
1255
|
+
d.value = "", x();
|
|
1256
|
+
}, K = (p, i, T) => {
|
|
1257
|
+
i(), k.searchText = p[0], k.searchedColumn = T;
|
|
1258
|
+
}, v = (p, i) => {
|
|
1259
|
+
p({ confirm: !0 }), k.searchText = "", i();
|
|
1260
|
+
}, u = (p, i) => {
|
|
1261
|
+
e.value = p, y.value = i;
|
|
1262
1262
|
};
|
|
1263
1263
|
return m({
|
|
1264
1264
|
resetInputVal: L
|
|
1265
|
-
}), (p,
|
|
1265
|
+
}), (p, i) => {
|
|
1266
1266
|
const T = P("a-input"), E = P("a-button"), Q = P("a-table"), ie = P("a-modal");
|
|
1267
1267
|
return o(), F("div", {
|
|
1268
1268
|
class: "hb-lib-multipleSelectModal-box",
|
|
1269
1269
|
ref_key: "hbMultipSelectModalRef",
|
|
1270
|
-
ref:
|
|
1270
|
+
ref: h
|
|
1271
1271
|
}, [
|
|
1272
1272
|
w(T, {
|
|
1273
1273
|
readonly: "",
|
|
1274
1274
|
onClick: S,
|
|
1275
|
-
value:
|
|
1276
|
-
"onUpdate:value":
|
|
1275
|
+
value: d.value,
|
|
1276
|
+
"onUpdate:value": i[0] || (i[0] = (J) => d.value = J),
|
|
1277
1277
|
placeholder: p.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1278
1278
|
}, {
|
|
1279
1279
|
addonAfter: l(() => [
|
|
@@ -1283,7 +1283,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1283
1283
|
}, 8, ["value", "placeholder"]),
|
|
1284
1284
|
w(ie, {
|
|
1285
1285
|
visible: g.value,
|
|
1286
|
-
"onUpdate:visible":
|
|
1286
|
+
"onUpdate:visible": i[1] || (i[1] = (J) => g.value = J),
|
|
1287
1287
|
title: t.modelTitle,
|
|
1288
1288
|
width: t.modalWidth,
|
|
1289
1289
|
class: "hb-lib-multipleSelectModal-modal"
|
|
@@ -1325,7 +1325,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1325
1325
|
f("div", ml, [
|
|
1326
1326
|
w(T, {
|
|
1327
1327
|
ref_key: "searchInput",
|
|
1328
|
-
ref:
|
|
1328
|
+
ref: s,
|
|
1329
1329
|
placeholder: `请输入${ce.title}`,
|
|
1330
1330
|
value: q[0],
|
|
1331
1331
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
@@ -1396,27 +1396,27 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1396
1396
|
buttonDisplaysQuantity: {}
|
|
1397
1397
|
},
|
|
1398
1398
|
setup(t, { expose: m }) {
|
|
1399
|
-
const
|
|
1400
|
-
$.handler && $.handler(
|
|
1399
|
+
const r = t, { t: b } = de(), _ = R(!1), g = R(!1), d = R(null), s = U(() => r.actions.filter(($) => $.condition !== void 0 ? $.condition : !0)), h = U(() => s.value.slice(0, r.buttonDisplaysQuantity)), e = U(() => s.value.slice(r.buttonDisplaysQuantity)), y = ($) => {
|
|
1400
|
+
$.handler && $.handler(r.record);
|
|
1401
1401
|
}, z = ($) => {
|
|
1402
|
-
|
|
1402
|
+
d.value = $, _.value = !0;
|
|
1403
1403
|
}, k = () => {
|
|
1404
|
-
if (
|
|
1404
|
+
if (d.value) {
|
|
1405
1405
|
g.value = !0;
|
|
1406
1406
|
try {
|
|
1407
|
-
y(
|
|
1407
|
+
y(d.value), g.value = !1, _.value = !1;
|
|
1408
1408
|
} catch {
|
|
1409
1409
|
g.value = !1;
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
1412
|
}, N = () => {
|
|
1413
|
-
_.value = !1,
|
|
1414
|
-
}, H = U(() =>
|
|
1415
|
-
title:
|
|
1416
|
-
content:
|
|
1413
|
+
_.value = !1, d.value = null;
|
|
1414
|
+
}, H = U(() => d.value ? {
|
|
1415
|
+
title: d.value.confirmTitle,
|
|
1416
|
+
content: d.value.confirmContent || d.value.confirmTitle
|
|
1417
1417
|
} : {
|
|
1418
|
-
title:
|
|
1419
|
-
content:
|
|
1418
|
+
title: b("hbLibComp.hbTableAct.secendConfirm"),
|
|
1419
|
+
content: b("hbLibComp.hbTableAct.confirmContent")
|
|
1420
1420
|
});
|
|
1421
1421
|
return m({
|
|
1422
1422
|
ADropdown: Ze,
|
|
@@ -1428,10 +1428,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1428
1428
|
}), ($, a) => {
|
|
1429
1429
|
const S = P("a-divider"), x = dt("has");
|
|
1430
1430
|
return o(), F("div", Cl, [
|
|
1431
|
-
(o(!0), F(V, null, ne(
|
|
1431
|
+
(o(!0), F(V, null, ne(h.value, (L, K) => (o(), F(V, { key: K }, [
|
|
1432
1432
|
L.needConfirm ? (o(), F(V, { key: 0 }, [
|
|
1433
1433
|
L.confirmType === "modal" ? (o(), F(V, { key: 0 }, [
|
|
1434
|
-
|
|
1434
|
+
be((o(), F("a", {
|
|
1435
1435
|
href: "javascript:;",
|
|
1436
1436
|
onClick: (v) => z(L),
|
|
1437
1437
|
class: "hb-lib-table-main-action"
|
|
@@ -1440,7 +1440,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1440
1440
|
], 8, _l)), [
|
|
1441
1441
|
[x, L.permissionsTag || null]
|
|
1442
1442
|
]),
|
|
1443
|
-
e.value && e.value.length > 0 || K !==
|
|
1443
|
+
e.value && e.value.length > 0 || K !== h.value.length - 1 ? (o(), O(S, {
|
|
1444
1444
|
key: 0,
|
|
1445
1445
|
type: "vertical"
|
|
1446
1446
|
})) : B("", !0)
|
|
@@ -1450,7 +1450,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1450
1450
|
onConfirm: (v) => y(L)
|
|
1451
1451
|
}, {
|
|
1452
1452
|
default: l(() => [
|
|
1453
|
-
|
|
1453
|
+
be((o(), F("a", Ll, [
|
|
1454
1454
|
I(C(L.label), 1)
|
|
1455
1455
|
])), [
|
|
1456
1456
|
[x, L.permissionsTag || null]
|
|
@@ -1458,13 +1458,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1458
1458
|
]),
|
|
1459
1459
|
_: 2
|
|
1460
1460
|
}, 1032, ["title", "onConfirm"]),
|
|
1461
|
-
e.value && e.value.length > 0 || K !==
|
|
1461
|
+
e.value && e.value.length > 0 || K !== h.value.length - 1 ? (o(), O(S, {
|
|
1462
1462
|
key: 0,
|
|
1463
1463
|
type: "vertical"
|
|
1464
1464
|
})) : B("", !0)
|
|
1465
1465
|
], 64))
|
|
1466
1466
|
], 64)) : (o(), F(V, { key: 1 }, [
|
|
1467
|
-
|
|
1467
|
+
be((o(), F("a", {
|
|
1468
1468
|
href: "javascript:;",
|
|
1469
1469
|
onClick: (v) => y(L),
|
|
1470
1470
|
class: "hb-lib-table-main-action"
|
|
@@ -1473,7 +1473,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1473
1473
|
], 8, kl)), [
|
|
1474
1474
|
[x, L.permissionsTag || null]
|
|
1475
1475
|
]),
|
|
1476
|
-
e.value && e.value.length > 0 || K !==
|
|
1476
|
+
e.value && e.value.length > 0 || K !== h.value.length - 1 ? (o(), O(S, {
|
|
1477
1477
|
key: 0,
|
|
1478
1478
|
type: "vertical"
|
|
1479
1479
|
})) : B("", !0)
|
|
@@ -1488,7 +1488,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1488
1488
|
}, {
|
|
1489
1489
|
default: l(() => [
|
|
1490
1490
|
L.needConfirm ? (o(), F(V, { key: 0 }, [
|
|
1491
|
-
L.confirmType === "modal" ?
|
|
1491
|
+
L.confirmType === "modal" ? be((o(), F("a", {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
href: "javascript:;",
|
|
1494
1494
|
onClick: (K) => z(L)
|
|
@@ -1502,7 +1502,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1502
1502
|
onConfirm: (K) => y(L)
|
|
1503
1503
|
}, {
|
|
1504
1504
|
default: l(() => [
|
|
1505
|
-
|
|
1505
|
+
be((o(), F("a", Fl, [
|
|
1506
1506
|
I(C(L.label), 1)
|
|
1507
1507
|
])), [
|
|
1508
1508
|
[x, L.permissionsTag || null]
|
|
@@ -1510,7 +1510,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1510
1510
|
]),
|
|
1511
1511
|
_: 2
|
|
1512
1512
|
}, 1032, ["title", "onConfirm"]))
|
|
1513
|
-
], 64)) :
|
|
1513
|
+
], 64)) : be((o(), F("a", {
|
|
1514
1514
|
key: 1,
|
|
1515
1515
|
href: "javascript:;",
|
|
1516
1516
|
onClick: (K) => y(L)
|
|
@@ -1550,12 +1550,15 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
1552
|
}), $l = /* @__PURE__ */ ae(Ml, [["__scopeId", "data-v-a96574fa"]]), Il = le($l), Hl = (t) => ({ tableWidth: U(() => {
|
|
1553
|
-
const
|
|
1554
|
-
return !
|
|
1553
|
+
const r = Array.isArray(t) ? t : t.value;
|
|
1554
|
+
return !r || r.length === 0 ? 0 : r.map((b) => b.width && Number(b.width.toString().replace("px", "")) || 0).reduce((b, _) => b + _, 0);
|
|
1555
1555
|
}) }), Dl = {
|
|
1556
1556
|
key: 0,
|
|
1557
1557
|
class: "hb-lib-list-table-act"
|
|
1558
|
-
}, Al = { class: "empty-container" }, zl =
|
|
1558
|
+
}, Al = { class: "empty-container" }, zl = {
|
|
1559
|
+
key: 1,
|
|
1560
|
+
style: { display: "flex", "align-items": "center" }
|
|
1561
|
+
}, Ol = /* @__PURE__ */ te({
|
|
1559
1562
|
name: "HbLibListTable",
|
|
1560
1563
|
__name: "HbListTable",
|
|
1561
1564
|
props: {
|
|
@@ -1565,18 +1568,18 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1565
1568
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1566
1569
|
},
|
|
1567
1570
|
setup(t) {
|
|
1568
|
-
const { t: m } = de(),
|
|
1571
|
+
const { t: m } = de(), r = t, b = R([]), _ = Oe("HB_LIST_PAGE_CONTAINER"), { tableWidth: g } = Hl(U(() => r.columns));
|
|
1569
1572
|
se(
|
|
1570
|
-
() =>
|
|
1573
|
+
() => r.columns,
|
|
1571
1574
|
(e) => {
|
|
1572
1575
|
const y = e.filter((z) => z != null && z.checked);
|
|
1573
|
-
|
|
1576
|
+
b.value = y.map((z) => {
|
|
1574
1577
|
let k = { ...z, title: z.title || z.label };
|
|
1575
1578
|
if (k.ellipsis && !k.needTooltip && (k.needTooltip = !0), !k.width)
|
|
1576
|
-
k.width =
|
|
1579
|
+
k.width = r.defaultWidth;
|
|
1577
1580
|
else if (typeof k.width == "string") {
|
|
1578
1581
|
const N = parseInt(k.width, 10);
|
|
1579
|
-
k.width = isNaN(N) ?
|
|
1582
|
+
k.width = isNaN(N) ? r.defaultWidth : N;
|
|
1580
1583
|
}
|
|
1581
1584
|
return k.resizable === void 0 && (k.resizable = !0), k;
|
|
1582
1585
|
});
|
|
@@ -1586,16 +1589,16 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1586
1589
|
deep: !0
|
|
1587
1590
|
}
|
|
1588
1591
|
);
|
|
1589
|
-
const
|
|
1592
|
+
const d = (e, y) => {
|
|
1590
1593
|
if (y) {
|
|
1591
1594
|
const z = typeof e == "string" ? parseInt(e, 10) : e;
|
|
1592
1595
|
y.width = isNaN(z) ? 150 : z;
|
|
1593
1596
|
}
|
|
1594
|
-
},
|
|
1597
|
+
}, s = (e, y = "YYYY-MM-DD HH:mm:ss") => e ? Se(e).format(y) : "", h = (e, y) => e && y[e] || "";
|
|
1595
1598
|
return (e, y) => {
|
|
1596
1599
|
const z = P("a-empty"), k = P("a-tooltip"), N = P("HbLibCopy"), H = P("a-tag"), $ = P("a-table");
|
|
1597
1600
|
return o(), F("div", {
|
|
1598
|
-
class: Y(["hb-lib-list-table", { "nowrap-table":
|
|
1601
|
+
class: Y(["hb-lib-list-table", { "nowrap-table": r.rowHeight }]),
|
|
1599
1602
|
style: ke({ "--hb-lib-table-td-height": t.rowHeight && t.rowHeight + "px" || "" })
|
|
1600
1603
|
}, [
|
|
1601
1604
|
e.$slots.tableActLeft ? (o(), F("section", Dl, [
|
|
@@ -1604,8 +1607,8 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1604
1607
|
])) : B("", !0),
|
|
1605
1608
|
w($, ee(e.$attrs, {
|
|
1606
1609
|
bordered: "",
|
|
1607
|
-
columns:
|
|
1608
|
-
onResizeColumn:
|
|
1610
|
+
columns: b.value,
|
|
1611
|
+
onResizeColumn: d,
|
|
1609
1612
|
scroll: {
|
|
1610
1613
|
x: n(g),
|
|
1611
1614
|
y: n(_).tableHeight
|
|
@@ -1649,19 +1652,18 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1649
1652
|
I(" " + C(S[a.dataIndex]), 1)
|
|
1650
1653
|
]),
|
|
1651
1654
|
_: 2
|
|
1652
|
-
}, 1032, ["placement"])) :
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
a && a.needFormat ? (o(), F(V, { key: 2 }, [
|
|
1659
|
-
I(C(
|
|
1660
|
-
], 64)) :
|
|
1661
|
-
|
|
1662
|
-
b(S[a.dataIndex], a.tags) ? (o(), O(H, {
|
|
1655
|
+
}, 1032, ["placement"])) : a && a.needCopy ? (o(), F("div", zl, [
|
|
1656
|
+
I(C(S[a.dataIndex]) + " ", 1),
|
|
1657
|
+
w(N, {
|
|
1658
|
+
"cp-text": S[a.dataIndex],
|
|
1659
|
+
style: { position: "relative" }
|
|
1660
|
+
}, null, 8, ["cp-text"])
|
|
1661
|
+
])) : a && a.needFormat ? (o(), F(V, { key: 2 }, [
|
|
1662
|
+
I(C(s(S[a.dataIndex], a.format)), 1)
|
|
1663
|
+
], 64)) : a && a.tags ? (o(), F(V, { key: 3 }, [
|
|
1664
|
+
h(S[a.dataIndex], a.tags) ? (o(), O(H, {
|
|
1663
1665
|
key: 0,
|
|
1664
|
-
color:
|
|
1666
|
+
color: h(S[a.dataIndex], a.tags)
|
|
1665
1667
|
}, {
|
|
1666
1668
|
default: l(() => [
|
|
1667
1669
|
I(C(S[a.dataIndex]), 1)
|
|
@@ -1772,16 +1774,16 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1772
1774
|
], 6);
|
|
1773
1775
|
};
|
|
1774
1776
|
}
|
|
1775
|
-
}),
|
|
1777
|
+
}), Bl = /* @__PURE__ */ ae(Ol, [["__scopeId", "data-v-1606e32c"]]), Rl = le(Bl), Pl = { class: "hb-lib-table-setting-box" }, Nl = {
|
|
1776
1778
|
key: 0,
|
|
1777
1779
|
class: "hb-lib-table-drag-item"
|
|
1778
|
-
},
|
|
1780
|
+
}, Ul = {
|
|
1779
1781
|
key: 0,
|
|
1780
1782
|
class: "hb-lib-table-drag-item-act"
|
|
1781
|
-
},
|
|
1783
|
+
}, El = ["onClick"], Vl = ["onClick"], Yl = { class: "hb-lib-table-set-btn-group" }, jl = {
|
|
1782
1784
|
class: "select-all-container",
|
|
1783
1785
|
style: { "margin-right": "10px" }
|
|
1784
|
-
},
|
|
1786
|
+
}, Kl = /* @__PURE__ */ te({
|
|
1785
1787
|
name: "HbLibTableColumnSet",
|
|
1786
1788
|
__name: "HbTableColumnSet",
|
|
1787
1789
|
props: {
|
|
@@ -1814,59 +1816,59 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1814
1816
|
},
|
|
1815
1817
|
emits: ["on-get-columns"],
|
|
1816
1818
|
setup(t, { emit: m }) {
|
|
1817
|
-
const
|
|
1819
|
+
const r = m, { t: b } = de(), _ = t, g = R([]), d = U(() => h.value.filter((v) => v.checked));
|
|
1818
1820
|
R([]);
|
|
1819
|
-
const
|
|
1821
|
+
const s = R(!1), h = R([]), e = R(null), y = U(() => d.value.length > 0 && d.value.length === g.value.length), z = U(() => d.value.length > 0 && d.value.length < g.value.length), k = (v) => {
|
|
1820
1822
|
e.value = v.oldIndex;
|
|
1821
1823
|
}, N = (v) => {
|
|
1822
1824
|
const u = v.newIndex;
|
|
1823
|
-
if (g.value.some((
|
|
1824
|
-
const
|
|
1825
|
-
if ((
|
|
1826
|
-
const E =
|
|
1827
|
-
|
|
1825
|
+
if (g.value.some((i) => i.fixed === "left" || i.fixed === "right" || i.fixed === !0)) {
|
|
1826
|
+
const i = g.value.filter((E) => E.fixed === "left").length, T = g.value.length - g.value.filter((E) => E.fixed === "right").length;
|
|
1827
|
+
if ((i > 0 && u < i || T < g.value.length && u >= T) && (ze.warning(b("hbLibComp.hbLibListTableColumsSet.errorTip")), e.value !== null)) {
|
|
1828
|
+
const E = h.value.splice(u, 1)[0];
|
|
1829
|
+
h.value.splice(e.value, 0, E);
|
|
1828
1830
|
}
|
|
1829
1831
|
}
|
|
1830
1832
|
e.value = null;
|
|
1831
1833
|
}, H = (v) => {
|
|
1832
|
-
v.target.checked ?
|
|
1834
|
+
v.target.checked ? h.value.forEach((p) => p.checked = !0) : h.value.forEach((p) => p.checked = !1);
|
|
1833
1835
|
}, $ = (v, u) => {
|
|
1834
1836
|
u ? v.checked = !0 : v.checked = !1;
|
|
1835
1837
|
}, a = () => {
|
|
1836
|
-
g.value = [...
|
|
1838
|
+
g.value = [...h.value], r("on-get-columns", g.value), s.value = !1;
|
|
1837
1839
|
}, S = () => {
|
|
1838
1840
|
g.value = _.tableColumns.map((u) => ({
|
|
1839
1841
|
...u,
|
|
1840
1842
|
label: u.title && u.title.tag ? x(u.title) : u.title || u.title2,
|
|
1841
1843
|
value: u.dataIndex,
|
|
1842
1844
|
checked: u.checked || u.checked === void 0
|
|
1843
|
-
})),
|
|
1845
|
+
})), h.value = [...g.value];
|
|
1844
1846
|
let v = [];
|
|
1845
1847
|
_.tableColumns.forEach(function(u) {
|
|
1846
1848
|
v.push(u.dataIndex);
|
|
1847
1849
|
});
|
|
1848
1850
|
}, x = (v) => v.children[0].text, L = (v) => {
|
|
1849
1851
|
delete v.fixed;
|
|
1850
|
-
const u =
|
|
1852
|
+
const u = h.value.findIndex((p) => p.value === v.value);
|
|
1851
1853
|
if (u !== -1) {
|
|
1852
1854
|
let p = -1;
|
|
1853
|
-
for (let
|
|
1854
|
-
|
|
1855
|
+
for (let i = 0; i < h.value.length; i++)
|
|
1856
|
+
h.value[i].fixed === "left" && (p = i);
|
|
1855
1857
|
if (p !== -1 && u !== p + 1) {
|
|
1856
|
-
const
|
|
1857
|
-
|
|
1858
|
+
const i = [...h.value], [T] = i.splice(u, 1);
|
|
1859
|
+
i.splice(p + 1, 0, T), h.value = i;
|
|
1858
1860
|
}
|
|
1859
1861
|
}
|
|
1860
1862
|
}, K = (v) => {
|
|
1861
|
-
const u =
|
|
1863
|
+
const u = h.value.findIndex((p) => p.value === v.value);
|
|
1862
1864
|
if (u !== -1) {
|
|
1863
1865
|
let p = -1;
|
|
1864
|
-
for (let Q = 0; Q <
|
|
1865
|
-
|
|
1866
|
-
const
|
|
1866
|
+
for (let Q = 0; Q < h.value.length; Q++)
|
|
1867
|
+
h.value[Q].fixed === "left" && (p = Q);
|
|
1868
|
+
const i = [...h.value], [T] = i.splice(u, 1);
|
|
1867
1869
|
T.fixed = "left";
|
|
1868
1870
|
const E = p === -1 ? 0 : p + 1;
|
|
1869
|
-
|
|
1871
|
+
i.splice(E, 0, T), h.value = i;
|
|
1870
1872
|
}
|
|
1871
1873
|
};
|
|
1872
1874
|
return se(
|
|
@@ -1879,20 +1881,20 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1879
1881
|
deep: !0
|
|
1880
1882
|
}
|
|
1881
1883
|
), (v, u) => {
|
|
1882
|
-
const p = P("a-tooltip"),
|
|
1883
|
-
return o(), F("div",
|
|
1884
|
+
const p = P("a-tooltip"), i = P("a-button");
|
|
1885
|
+
return o(), F("div", Pl, [
|
|
1884
1886
|
w(n(ft), {
|
|
1885
|
-
title: n(
|
|
1887
|
+
title: n(b)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1886
1888
|
trigger: "click",
|
|
1887
1889
|
placement: "leftTop",
|
|
1888
1890
|
overlayClassName: "column_setting_popover",
|
|
1889
|
-
visible:
|
|
1890
|
-
"onUpdate:visible": u[1] || (u[1] = (T) =>
|
|
1891
|
+
visible: s.value,
|
|
1892
|
+
"onUpdate:visible": u[1] || (u[1] = (T) => s.value = T)
|
|
1891
1893
|
}, {
|
|
1892
1894
|
content: l(() => [
|
|
1893
1895
|
w(n(Ce), {
|
|
1894
|
-
modelValue:
|
|
1895
|
-
"onUpdate:modelValue": u[0] || (u[0] = (T) =>
|
|
1896
|
+
modelValue: h.value,
|
|
1897
|
+
"onUpdate:modelValue": u[0] || (u[0] = (T) => h.value = T),
|
|
1896
1898
|
"item-key": "value",
|
|
1897
1899
|
class: "hb-lib-table-set-drag",
|
|
1898
1900
|
"ghost-class": "ghost",
|
|
@@ -1902,7 +1904,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1902
1904
|
onEnd: N
|
|
1903
1905
|
}, {
|
|
1904
1906
|
item: l(({ element: T }) => [
|
|
1905
|
-
T.fixed !== "right" ? (o(), F("div",
|
|
1907
|
+
T.fixed !== "right" ? (o(), F("div", Nl, [
|
|
1906
1908
|
w(n(_e), {
|
|
1907
1909
|
checked: T.checked,
|
|
1908
1910
|
onChange: (E) => $(T, E.target.checked)
|
|
@@ -1912,13 +1914,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1912
1914
|
]),
|
|
1913
1915
|
_: 2
|
|
1914
1916
|
}, 1032, ["checked", "onChange"]),
|
|
1915
|
-
T.checked ? (o(), F("section",
|
|
1917
|
+
T.checked ? (o(), F("section", Ul, [
|
|
1916
1918
|
f("span", {
|
|
1917
1919
|
class: Y(T.fixed ? "drag-hide" : "drag-handle")
|
|
1918
1920
|
}, "⋮⋮", 2),
|
|
1919
1921
|
T.fixed ? (o(), O(p, { key: 0 }, {
|
|
1920
1922
|
title: l(() => [
|
|
1921
|
-
I(C(n(
|
|
1923
|
+
I(C(n(b)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1922
1924
|
]),
|
|
1923
1925
|
default: l(() => [
|
|
1924
1926
|
f("span", {
|
|
@@ -1941,13 +1943,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1941
1943
|
fill: "#ff5000"
|
|
1942
1944
|
})
|
|
1943
1945
|
], -1)
|
|
1944
|
-
])], 8,
|
|
1946
|
+
])], 8, El)
|
|
1945
1947
|
]),
|
|
1946
1948
|
_: 2
|
|
1947
1949
|
}, 1024)) : B("", !0),
|
|
1948
1950
|
T.fixed ? B("", !0) : (o(), O(p, { key: 1 }, {
|
|
1949
1951
|
title: l(() => [
|
|
1950
|
-
I(C(n(
|
|
1952
|
+
I(C(n(b)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1951
1953
|
]),
|
|
1952
1954
|
default: l(() => [
|
|
1953
1955
|
f("span", {
|
|
@@ -1970,7 +1972,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1970
1972
|
fill: "#ff5000"
|
|
1971
1973
|
})
|
|
1972
1974
|
], -1)
|
|
1973
|
-
])], 8,
|
|
1975
|
+
])], 8, Vl)
|
|
1974
1976
|
]),
|
|
1975
1977
|
_: 2
|
|
1976
1978
|
}, 1024))
|
|
@@ -1979,25 +1981,25 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1979
1981
|
]),
|
|
1980
1982
|
_: 1
|
|
1981
1983
|
}, 8, ["modelValue"]),
|
|
1982
|
-
f("div",
|
|
1983
|
-
f("div",
|
|
1984
|
+
f("div", Yl, [
|
|
1985
|
+
f("div", jl, [
|
|
1984
1986
|
w(n(_e), {
|
|
1985
1987
|
checked: y.value,
|
|
1986
1988
|
indeterminate: z.value,
|
|
1987
1989
|
onChange: H
|
|
1988
1990
|
}, {
|
|
1989
1991
|
default: l(() => [
|
|
1990
|
-
I(C(n(
|
|
1992
|
+
I(C(n(b)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1991
1993
|
]),
|
|
1992
1994
|
_: 1
|
|
1993
1995
|
}, 8, ["checked", "indeterminate"])
|
|
1994
1996
|
]),
|
|
1995
|
-
w(
|
|
1997
|
+
w(i, {
|
|
1996
1998
|
onClick: a,
|
|
1997
1999
|
type: "primary"
|
|
1998
2000
|
}, {
|
|
1999
2001
|
default: l(() => [
|
|
2000
|
-
I(C(n(
|
|
2002
|
+
I(C(n(b)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2001
2003
|
]),
|
|
2002
2004
|
_: 1
|
|
2003
2005
|
})
|
|
@@ -2005,7 +2007,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2005
2007
|
]),
|
|
2006
2008
|
default: l(() => [
|
|
2007
2009
|
w(p, {
|
|
2008
|
-
title: n(
|
|
2010
|
+
title: n(b)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2009
2011
|
placement: "leftTop"
|
|
2010
2012
|
}, {
|
|
2011
2013
|
default: l(() => [...u[4] || (u[4] = [
|
|
@@ -2041,19 +2043,19 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2041
2043
|
]);
|
|
2042
2044
|
};
|
|
2043
2045
|
}
|
|
2044
|
-
}),
|
|
2046
|
+
}), ql = /* @__PURE__ */ ae(Kl, [["__scopeId", "data-v-772844f6"]]), Wl = le(ql), Jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2045
2047
|
__proto__: null,
|
|
2046
2048
|
HbLibFormItemFilterModal: It,
|
|
2047
2049
|
HbLibListBtnsAct: Jt,
|
|
2048
2050
|
HbLibListForm: zt,
|
|
2049
|
-
HbLibListMultiSelect:
|
|
2051
|
+
HbLibListMultiSelect: hl,
|
|
2050
2052
|
HbLibListPageAct: Vt,
|
|
2051
2053
|
HbLibListPageContainer: Zt,
|
|
2052
|
-
HbLibListTable:
|
|
2054
|
+
HbLibListTable: Rl,
|
|
2053
2055
|
HbLibMutilpleSelectModal: yl,
|
|
2054
2056
|
HbLibTableAct: Il,
|
|
2055
|
-
HbLibTableColumnSet:
|
|
2056
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2057
|
+
HbLibTableColumnSet: Wl
|
|
2058
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = /* @__PURE__ */ te({
|
|
2057
2059
|
name: "HbLibFormTooltipSelect",
|
|
2058
2060
|
inheritAttrs: !1,
|
|
2059
2061
|
__name: "HbTooltipSelect",
|
|
@@ -2071,15 +2073,15 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2071
2073
|
}),
|
|
2072
2074
|
emits: ["update:value"],
|
|
2073
2075
|
setup(t, { expose: m }) {
|
|
2074
|
-
const
|
|
2075
|
-
const H =
|
|
2076
|
+
const r = t, b = ct(), _ = U(() => {
|
|
2077
|
+
const H = b, $ = H.dropdownClassName;
|
|
2076
2078
|
return {
|
|
2077
2079
|
...H,
|
|
2078
2080
|
dropdownClassName: $ ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2079
2081
|
};
|
|
2080
|
-
}), g = R(),
|
|
2081
|
-
maxWidth: typeof
|
|
2082
|
-
})), e = (H) => H.tooltip ?? H.label, y = (H) => H.key ?? H.label, z = (H) => !!(
|
|
2082
|
+
}), g = R(), d = ot(t, "value"), s = U(() => r.options ?? []), h = U(() => ({
|
|
2083
|
+
maxWidth: typeof r.tooltipMaxWidth == "number" ? `${r.tooltipMaxWidth}px` : r.tooltipMaxWidth
|
|
2084
|
+
})), e = (H) => H.tooltip ?? H.label, y = (H) => H.key ?? H.label, z = (H) => !!(r.enableTooltip && e(H));
|
|
2083
2085
|
return m({
|
|
2084
2086
|
focus: () => {
|
|
2085
2087
|
g.value?.focus?.();
|
|
@@ -2093,11 +2095,11 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2093
2095
|
ref: g,
|
|
2094
2096
|
class: "hb_lib_form_tooltip_select"
|
|
2095
2097
|
}, _.value, {
|
|
2096
|
-
value:
|
|
2097
|
-
"onUpdate:value": $[0] || ($[0] = (a) =>
|
|
2098
|
+
value: d.value,
|
|
2099
|
+
"onUpdate:value": $[0] || ($[0] = (a) => d.value = a)
|
|
2098
2100
|
}), {
|
|
2099
2101
|
default: l(() => [
|
|
2100
|
-
H.$slots.default ? j(H.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), F(V, { key: 1 }, ne(
|
|
2102
|
+
H.$slots.default ? j(H.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), F(V, { key: 1 }, ne(s.value, (a) => (o(), O(n(Ae), ee({
|
|
2101
2103
|
key: y(a),
|
|
2102
2104
|
value: a.value,
|
|
2103
2105
|
disabled: a.disabled
|
|
@@ -2106,18 +2108,18 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2106
2108
|
z(a) ? (o(), O(n(He), {
|
|
2107
2109
|
key: 0,
|
|
2108
2110
|
title: e(a),
|
|
2109
|
-
placement:
|
|
2110
|
-
overlayStyle:
|
|
2111
|
+
placement: r.tooltipPlacement,
|
|
2112
|
+
overlayStyle: h.value
|
|
2111
2113
|
}, {
|
|
2112
2114
|
default: l(() => [
|
|
2113
2115
|
f("span", {
|
|
2114
|
-
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2116
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": r.enableEllipsis }])
|
|
2115
2117
|
}, C(a.label), 3)
|
|
2116
2118
|
]),
|
|
2117
2119
|
_: 2
|
|
2118
2120
|
}, 1032, ["title", "placement", "overlayStyle"])) : (o(), F("span", {
|
|
2119
2121
|
key: 1,
|
|
2120
|
-
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2122
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": r.enableEllipsis }])
|
|
2121
2123
|
}, C(a.label), 3))
|
|
2122
2124
|
]),
|
|
2123
2125
|
_: 2
|
|
@@ -2126,13 +2128,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2126
2128
|
_: 3
|
|
2127
2129
|
}, 16, ["value"]));
|
|
2128
2130
|
}
|
|
2129
|
-
}),
|
|
2131
|
+
}), Ql = /* @__PURE__ */ ae(Gl, [["__scopeId", "data-v-b04f5675"]]), Zl = le(Ql), Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2130
2132
|
__proto__: null,
|
|
2131
|
-
HbLibFormTooltipSelect:
|
|
2132
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2133
|
+
HbLibFormTooltipSelect: Zl
|
|
2134
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = { class: "ant-upload-drag-icon" }, to = { class: "ant-upload-text" }, lo = { style: { color: "#ff5000" } }, oo = { class: "ant-upload-hint" }, ao = {
|
|
2133
2135
|
key: 0,
|
|
2134
2136
|
class: "hb_import_btn"
|
|
2135
|
-
},
|
|
2137
|
+
}, no = ["href"], so = /* @__PURE__ */ te({
|
|
2136
2138
|
name: "HbLibImportFile",
|
|
2137
2139
|
__name: "HbImportFile",
|
|
2138
2140
|
props: {
|
|
@@ -2148,31 +2150,31 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2148
2150
|
beforeSubmit: {}
|
|
2149
2151
|
},
|
|
2150
2152
|
setup(t, { expose: m }) {
|
|
2151
|
-
const { t:
|
|
2153
|
+
const { t: r } = de(), b = R(), _ = t, g = R(!1), d = Le({
|
|
2152
2154
|
fileList: [],
|
|
2153
2155
|
visible: !1
|
|
2154
|
-
}),
|
|
2156
|
+
}), s = (k) => {
|
|
2155
2157
|
if (k == null)
|
|
2156
2158
|
return;
|
|
2157
|
-
const N =
|
|
2159
|
+
const N = d.fileList.indexOf(k);
|
|
2158
2160
|
if (N !== -1) {
|
|
2159
|
-
const H =
|
|
2160
|
-
H.splice(N, 1),
|
|
2161
|
+
const H = d.fileList.slice();
|
|
2162
|
+
H.splice(N, 1), d.fileList = H;
|
|
2161
2163
|
}
|
|
2162
|
-
},
|
|
2163
|
-
|
|
2164
|
-
}, e = (k) => (
|
|
2165
|
-
|
|
2166
|
-
_.beforeSubmit && (g.value = !0, _.beforeSubmit(
|
|
2164
|
+
}, h = () => {
|
|
2165
|
+
d.visible = !1, d.fileList = [], g.value = !1;
|
|
2166
|
+
}, e = (k) => (d.fileList = [k], _.beforeUpload ? _.beforeUpload(k) : !1), y = () => {
|
|
2167
|
+
b.value.validateFields().then(() => {
|
|
2168
|
+
_.beforeSubmit && (g.value = !0, _.beforeSubmit(d.fileList).then((k) => {
|
|
2167
2169
|
}).finally(() => {
|
|
2168
2170
|
g.value = !1;
|
|
2169
2171
|
}));
|
|
2170
2172
|
});
|
|
2171
2173
|
}, z = () => {
|
|
2172
|
-
|
|
2174
|
+
d.visible = !0;
|
|
2173
2175
|
};
|
|
2174
2176
|
return m({
|
|
2175
|
-
handleCancel:
|
|
2177
|
+
handleCancel: h,
|
|
2176
2178
|
openModal: z,
|
|
2177
2179
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2178
2180
|
confirmLoading: g
|
|
@@ -2181,25 +2183,25 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2181
2183
|
return o(), F(V, null, [
|
|
2182
2184
|
w(S, ee({
|
|
2183
2185
|
title: _.title,
|
|
2184
|
-
visible:
|
|
2185
|
-
"onUpdate:visible": N[0] || (N[0] = (L) =>
|
|
2186
|
+
visible: d.visible,
|
|
2187
|
+
"onUpdate:visible": N[0] || (N[0] = (L) => d.visible = L),
|
|
2186
2188
|
"confirm-loading": g.value
|
|
2187
2189
|
}, k.$attrs, {
|
|
2188
|
-
onCancel:
|
|
2190
|
+
onCancel: h,
|
|
2189
2191
|
onOk: y,
|
|
2190
2192
|
width: _.modalWidth
|
|
2191
2193
|
}), {
|
|
2192
2194
|
default: l(() => [
|
|
2193
2195
|
w(a, {
|
|
2194
2196
|
ref_key: "modalFormRef",
|
|
2195
|
-
ref:
|
|
2196
|
-
model:
|
|
2197
|
+
ref: b,
|
|
2198
|
+
model: d
|
|
2197
2199
|
}, {
|
|
2198
2200
|
default: l(() => [
|
|
2199
2201
|
w($, {
|
|
2200
2202
|
name: "fileList",
|
|
2201
|
-
label: n(
|
|
2202
|
-
rules: [{ required: _.isRequired, message: n(
|
|
2203
|
+
label: n(r)("hbLibComp.HbImportFile.fileLabel"),
|
|
2204
|
+
rules: [{ required: _.isRequired, message: n(r)("hbLibComp.HbImportFile.clickUp") }]
|
|
2203
2205
|
}, {
|
|
2204
2206
|
default: l(() => [
|
|
2205
2207
|
w(H, {
|
|
@@ -2207,19 +2209,19 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2207
2209
|
multiple: _.multiple,
|
|
2208
2210
|
accept: _.acceptFile,
|
|
2209
2211
|
name: "file",
|
|
2210
|
-
fileList:
|
|
2211
|
-
onRemove:
|
|
2212
|
+
fileList: d.fileList,
|
|
2213
|
+
onRemove: s,
|
|
2212
2214
|
beforeUpload: e
|
|
2213
2215
|
}, {
|
|
2214
2216
|
default: l(() => [
|
|
2215
|
-
f("p",
|
|
2217
|
+
f("p", eo, [
|
|
2216
2218
|
w(n(Lt), { style: { "font-size": "37px" } })
|
|
2217
2219
|
]),
|
|
2218
|
-
f("p",
|
|
2219
|
-
I(C(n(
|
|
2220
|
-
f("span",
|
|
2220
|
+
f("p", to, [
|
|
2221
|
+
I(C(n(r)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2222
|
+
f("span", lo, C(n(r)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2221
2223
|
]),
|
|
2222
|
-
f("p",
|
|
2224
|
+
f("p", oo, C(n(r)("hbLibComp.HbFileUploadModal.format")) + ": " + C(_.acceptFile), 1)
|
|
2223
2225
|
]),
|
|
2224
2226
|
_: 1
|
|
2225
2227
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2229,11 +2231,11 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2229
2231
|
]),
|
|
2230
2232
|
_: 1
|
|
2231
2233
|
}, 8, ["model"]),
|
|
2232
|
-
_.templateUrl ? (o(), F("p",
|
|
2234
|
+
_.templateUrl ? (o(), F("p", ao, [
|
|
2233
2235
|
f("a", {
|
|
2234
2236
|
download: "Import_number-template.xlsx",
|
|
2235
2237
|
href: _.templateUrl
|
|
2236
|
-
}, C(n(
|
|
2238
|
+
}, C(n(r)("hbLibComp.HbImportFile.downloadTemplate")), 9, no)
|
|
2237
2239
|
])) : B("", !0)
|
|
2238
2240
|
]),
|
|
2239
2241
|
_: 1
|
|
@@ -2252,10 +2254,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2252
2254
|
], 64);
|
|
2253
2255
|
};
|
|
2254
2256
|
}
|
|
2255
|
-
}),
|
|
2257
|
+
}), io = /* @__PURE__ */ ae(so, [["__scopeId", "data-v-d61501db"]]), ro = le(io), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2256
2258
|
__proto__: null,
|
|
2257
|
-
HbLibImportFile:
|
|
2258
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2259
|
+
HbLibImportFile: ro
|
|
2260
|
+
}, Symbol.toStringTag, { value: "Module" })), uo = {
|
|
2259
2261
|
// 如果存在cpText时,K和V无效
|
|
2260
2262
|
cpText: {
|
|
2261
2263
|
type: String,
|
|
@@ -2296,37 +2298,37 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2296
2298
|
type: String,
|
|
2297
2299
|
default: "ab"
|
|
2298
2300
|
}
|
|
2299
|
-
},
|
|
2301
|
+
}, po = /* @__PURE__ */ te({
|
|
2300
2302
|
name: "HbLibCopy",
|
|
2301
2303
|
__name: "copy",
|
|
2302
|
-
props:
|
|
2304
|
+
props: uo,
|
|
2303
2305
|
setup(t) {
|
|
2304
|
-
const m = t,
|
|
2306
|
+
const m = t, r = R();
|
|
2305
2307
|
ut(() => {
|
|
2306
|
-
|
|
2308
|
+
r.value = m.data;
|
|
2307
2309
|
});
|
|
2308
|
-
const
|
|
2310
|
+
const b = U(() => {
|
|
2309
2311
|
if (m.cpText) return m.cpText;
|
|
2310
2312
|
let g = "";
|
|
2311
2313
|
if (m.data)
|
|
2312
2314
|
if (Array.isArray(m.data)) {
|
|
2313
2315
|
if (m.K && m.V && m.L) {
|
|
2314
|
-
const
|
|
2315
|
-
g =
|
|
2316
|
+
const d = m.data.find((s) => s?.[m.K] === m.V);
|
|
2317
|
+
g = d ? d[m.L] : "";
|
|
2316
2318
|
}
|
|
2317
2319
|
} else
|
|
2318
2320
|
m.K && (g = m.data[m.K]);
|
|
2319
2321
|
return g;
|
|
2320
2322
|
}), _ = () => {
|
|
2321
|
-
navigator.clipboard.writeText(
|
|
2323
|
+
navigator.clipboard.writeText(b.value).then(() => {
|
|
2322
2324
|
ze.success(m.copySuccessTip);
|
|
2323
2325
|
}).catch(() => {
|
|
2324
2326
|
ze.error("复制失败");
|
|
2325
2327
|
});
|
|
2326
2328
|
};
|
|
2327
|
-
return (g,
|
|
2328
|
-
const
|
|
2329
|
-
return
|
|
2329
|
+
return (g, d) => {
|
|
2330
|
+
const s = P("a-tooltip");
|
|
2331
|
+
return b.value ? (o(), O(s, {
|
|
2330
2332
|
key: 0,
|
|
2331
2333
|
title: g.tooltipTitle
|
|
2332
2334
|
}, {
|
|
@@ -2335,7 +2337,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2335
2337
|
class: "hb-lib-copy-text-eyevue",
|
|
2336
2338
|
style: ke({ ...g.cpStyle }),
|
|
2337
2339
|
onClick: $e(_, ["stop", "prevent"])
|
|
2338
|
-
}, [...
|
|
2340
|
+
}, [...d[0] || (d[0] = [
|
|
2339
2341
|
f("svg", {
|
|
2340
2342
|
t: "1766643849597",
|
|
2341
2343
|
class: "icon",
|
|
@@ -2368,7 +2370,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2368
2370
|
}, 8, ["title"])) : B("", !0);
|
|
2369
2371
|
};
|
|
2370
2372
|
}
|
|
2371
|
-
}),
|
|
2373
|
+
}), bo = /* @__PURE__ */ ae(po, [["__scopeId", "data-v-81faec48"]]), ho = le(bo), mo = {
|
|
2372
2374
|
dragList: {
|
|
2373
2375
|
type: Array,
|
|
2374
2376
|
required: !0
|
|
@@ -2407,28 +2409,28 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2407
2409
|
type: String,
|
|
2408
2410
|
default: ""
|
|
2409
2411
|
}
|
|
2410
|
-
},
|
|
2412
|
+
}, fo = /* @__PURE__ */ te({
|
|
2411
2413
|
name: "HbDrag",
|
|
2412
2414
|
__name: "index",
|
|
2413
|
-
props:
|
|
2415
|
+
props: mo,
|
|
2414
2416
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2415
2417
|
setup(t, { emit: m }) {
|
|
2416
|
-
const
|
|
2418
|
+
const r = t, b = pt([]);
|
|
2417
2419
|
se(
|
|
2418
|
-
() =>
|
|
2420
|
+
() => r.dragList,
|
|
2419
2421
|
(y) => {
|
|
2420
|
-
|
|
2422
|
+
b.value = y;
|
|
2421
2423
|
},
|
|
2422
2424
|
{
|
|
2423
2425
|
deep: !0,
|
|
2424
2426
|
immediate: !0
|
|
2425
2427
|
}
|
|
2426
2428
|
);
|
|
2427
|
-
const _ = Pe("drag"), g = m,
|
|
2429
|
+
const _ = Pe("drag"), g = m, d = (y) => {
|
|
2428
2430
|
console.log("drag start", y), g("handleDragStart", y);
|
|
2429
|
-
},
|
|
2431
|
+
}, s = (y) => {
|
|
2430
2432
|
console.log("drag end", y), g("handleDragEnd", y);
|
|
2431
|
-
},
|
|
2433
|
+
}, h = (y) => {
|
|
2432
2434
|
console.log("drag add", y), g("handleDragAdd", y);
|
|
2433
2435
|
}, e = (y) => {
|
|
2434
2436
|
console.log("drag remove", y), g("handleDragRemove", y);
|
|
@@ -2438,32 +2440,32 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2438
2440
|
}, [
|
|
2439
2441
|
y.childrenType == "component" ? (o(), O(n(Ce), ee({
|
|
2440
2442
|
key: 0,
|
|
2441
|
-
modelValue:
|
|
2442
|
-
"onUpdate:modelValue": z[0] || (z[0] = (k) =>
|
|
2443
|
+
modelValue: b.value,
|
|
2444
|
+
"onUpdate:modelValue": z[0] || (z[0] = (k) => b.value = k),
|
|
2443
2445
|
"item-key": "key",
|
|
2444
2446
|
class: { [y.dragClass]: y.dragClass }
|
|
2445
2447
|
}, y.$attrs, {
|
|
2446
2448
|
"ghost-class": y.ghostClass,
|
|
2447
|
-
onStart:
|
|
2448
|
-
onEnd:
|
|
2449
|
-
onAdd:
|
|
2449
|
+
onStart: d,
|
|
2450
|
+
onEnd: s,
|
|
2451
|
+
onAdd: h,
|
|
2450
2452
|
onRemove: e
|
|
2451
2453
|
}), {
|
|
2452
2454
|
item: l(({ element: k }) => [
|
|
2453
|
-
(o(), O(
|
|
2455
|
+
(o(), O(bt(k.component)))
|
|
2454
2456
|
]),
|
|
2455
2457
|
_: 1
|
|
2456
2458
|
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), O(n(Ce), ee({
|
|
2457
2459
|
key: 1,
|
|
2458
|
-
modelValue:
|
|
2459
|
-
"onUpdate:modelValue": z[1] || (z[1] = (k) =>
|
|
2460
|
+
modelValue: b.value,
|
|
2461
|
+
"onUpdate:modelValue": z[1] || (z[1] = (k) => b.value = k),
|
|
2460
2462
|
"item-key": "id",
|
|
2461
2463
|
class: { [y.dragClass]: y.dragClass }
|
|
2462
2464
|
}, y.$attrs, {
|
|
2463
2465
|
"ghost-class": y.ghostClass,
|
|
2464
|
-
onStart:
|
|
2465
|
-
onEnd:
|
|
2466
|
-
onAdd:
|
|
2466
|
+
onStart: d,
|
|
2467
|
+
onEnd: s,
|
|
2468
|
+
onAdd: h,
|
|
2467
2469
|
onRemove: e
|
|
2468
2470
|
}), {
|
|
2469
2471
|
item: l(({ element: k }) => [
|
|
@@ -2475,11 +2477,11 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2475
2477
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2476
2478
|
], 2));
|
|
2477
2479
|
}
|
|
2478
|
-
}),
|
|
2480
|
+
}), vo = /* @__PURE__ */ ae(fo, [["__scopeId", "data-v-15b227f5"]]), go = le(vo), yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2479
2481
|
__proto__: null,
|
|
2480
2482
|
HbLibCopy: ho,
|
|
2481
|
-
HbLibFuncCompDrag:
|
|
2482
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2483
|
+
HbLibFuncCompDrag: go
|
|
2484
|
+
}, Symbol.toStringTag, { value: "Module" })), Co = { class: "log_remark" }, _o = /* @__PURE__ */ te({
|
|
2483
2485
|
name: "HbLibLogModal",
|
|
2484
2486
|
__name: "HbLogModal",
|
|
2485
2487
|
props: {
|
|
@@ -2495,20 +2497,20 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2495
2497
|
getLogData: {}
|
|
2496
2498
|
},
|
|
2497
2499
|
emits: ["update:visible"],
|
|
2498
|
-
setup(t, { expose: m, emit:
|
|
2499
|
-
const { t:
|
|
2500
|
+
setup(t, { expose: m, emit: r }) {
|
|
2501
|
+
const { t: b } = de(), _ = t, g = [
|
|
2500
2502
|
{
|
|
2501
|
-
title:
|
|
2503
|
+
title: b("hbLibComp.HbLogModal.operator"),
|
|
2502
2504
|
dataIndex: "userName",
|
|
2503
2505
|
width: "15%"
|
|
2504
2506
|
},
|
|
2505
2507
|
{
|
|
2506
|
-
title:
|
|
2508
|
+
title: b("hbLibComp.HbLogModal.operateTime"),
|
|
2507
2509
|
dataIndex: "operateTime",
|
|
2508
2510
|
width: "25%"
|
|
2509
2511
|
},
|
|
2510
|
-
{ title:
|
|
2511
|
-
],
|
|
2512
|
+
{ title: b("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2513
|
+
], d = U(() => _.columns || g), s = U(() => _.title || b("hbLibComp.HbLogModal.operateLogs")), h = R(!1), e = Le({
|
|
2512
2514
|
list: [],
|
|
2513
2515
|
pagination: {
|
|
2514
2516
|
current: 1,
|
|
@@ -2539,10 +2541,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2539
2541
|
pageSize: e.pagination.pageSize,
|
|
2540
2542
|
query: _.params
|
|
2541
2543
|
};
|
|
2542
|
-
_.getLogData && (
|
|
2544
|
+
_.getLogData && (h.value = !0, _.getLogData(S).then((x) => {
|
|
2543
2545
|
Number(x.code) == 200 && (e.pagination.current = a, e.pagination.total = Number(x.data.total), e.list = x.data.records || []);
|
|
2544
2546
|
}).finally(() => {
|
|
2545
|
-
|
|
2547
|
+
h.value = !1;
|
|
2546
2548
|
}));
|
|
2547
2549
|
}, z = (a) => {
|
|
2548
2550
|
e.pagination.current = a.current, e.pagination.pageSize = a.pageSize, y();
|
|
@@ -2550,7 +2552,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2550
2552
|
e.list = [], $("update:visible", !1);
|
|
2551
2553
|
}, N = () => {
|
|
2552
2554
|
$("update:visible", !0);
|
|
2553
|
-
}, H = (a, S = "YYYY-MM-DD HH:mm:ss") => a ? Se(a).format(S) : "", $ =
|
|
2555
|
+
}, H = (a, S = "YYYY-MM-DD HH:mm:ss") => a ? Se(a).format(S) : "", $ = r;
|
|
2554
2556
|
return se(
|
|
2555
2557
|
() => _.visible,
|
|
2556
2558
|
(a) => {
|
|
@@ -2558,20 +2560,20 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2558
2560
|
}
|
|
2559
2561
|
), m({
|
|
2560
2562
|
close: k,
|
|
2561
|
-
loading:
|
|
2563
|
+
loading: h
|
|
2562
2564
|
}), (a, S) => {
|
|
2563
2565
|
const x = P("a-tooltip"), L = P("HbLibCopy"), K = P("a-table"), v = P("a-button"), u = P("a-modal");
|
|
2564
2566
|
return o(), F(V, null, [
|
|
2565
2567
|
w(u, {
|
|
2566
2568
|
visible: t.visible,
|
|
2567
|
-
title:
|
|
2569
|
+
title: s.value,
|
|
2568
2570
|
width: t.width,
|
|
2569
2571
|
onCancel: k
|
|
2570
2572
|
}, {
|
|
2571
2573
|
footer: l(() => [
|
|
2572
2574
|
w(v, { onClick: k }, {
|
|
2573
2575
|
default: l(() => [
|
|
2574
|
-
I(C(n(
|
|
2576
|
+
I(C(n(b)("hbLibComp.HbLogModal.close")), 1)
|
|
2575
2577
|
]),
|
|
2576
2578
|
_: 1
|
|
2577
2579
|
})
|
|
@@ -2580,33 +2582,33 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2580
2582
|
w(K, {
|
|
2581
2583
|
bordered: "",
|
|
2582
2584
|
rowKey: "id",
|
|
2583
|
-
columns:
|
|
2585
|
+
columns: d.value,
|
|
2584
2586
|
dataSource: e.list,
|
|
2585
2587
|
pagination: e.pagination,
|
|
2586
|
-
loading:
|
|
2588
|
+
loading: h.value,
|
|
2587
2589
|
onChange: z
|
|
2588
2590
|
}, {
|
|
2589
|
-
bodyCell: l(({ column: p, record:
|
|
2591
|
+
bodyCell: l(({ column: p, record: i }) => [
|
|
2590
2592
|
p && p.needTooltip ? (o(), F(V, { key: 0 }, [
|
|
2591
2593
|
p.needTooltip ? (o(), O(x, { key: 0 }, {
|
|
2592
2594
|
title: l(() => [
|
|
2593
|
-
I(C(
|
|
2595
|
+
I(C(i[p.dataIndex]), 1)
|
|
2594
2596
|
]),
|
|
2595
2597
|
default: l(() => [
|
|
2596
|
-
I(" " + C(
|
|
2598
|
+
I(" " + C(i[p.dataIndex]), 1)
|
|
2597
2599
|
]),
|
|
2598
2600
|
_: 2
|
|
2599
2601
|
}, 1024)) : B("", !0)
|
|
2600
2602
|
], 64)) : B("", !0),
|
|
2601
2603
|
p && p.needCopy ? (o(), F(V, { key: 1 }, [
|
|
2602
|
-
f("div",
|
|
2604
|
+
f("div", Co, C(i[p.dataIndex]), 1),
|
|
2603
2605
|
w(L, {
|
|
2604
|
-
"cp-text":
|
|
2606
|
+
"cp-text": i[p.dataIndex],
|
|
2605
2607
|
style: { position: "relative" }
|
|
2606
2608
|
}, null, 8, ["cp-text"])
|
|
2607
2609
|
], 64)) : B("", !0),
|
|
2608
2610
|
p && p.needFormat ? (o(), F(V, { key: 2 }, [
|
|
2609
|
-
I(C(H(
|
|
2611
|
+
I(C(H(i[p.dataIndex], p.operateTime)), 1)
|
|
2610
2612
|
], 64)) : B("", !0)
|
|
2611
2613
|
]),
|
|
2612
2614
|
_: 1
|
|
@@ -2625,58 +2627,58 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2625
2627
|
], 64);
|
|
2626
2628
|
};
|
|
2627
2629
|
}
|
|
2628
|
-
}),
|
|
2630
|
+
}), Lo = /* @__PURE__ */ ae(_o, [["__scopeId", "data-v-cee51270"]]), ko = le(Lo), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2629
2631
|
__proto__: null,
|
|
2630
|
-
HbLibLogModal:
|
|
2632
|
+
HbLibLogModal: ko
|
|
2631
2633
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2632
2634
|
let et = {
|
|
2633
|
-
...
|
|
2634
|
-
...
|
|
2635
|
-
...
|
|
2636
|
-
...
|
|
2637
|
-
...
|
|
2635
|
+
...Jl,
|
|
2636
|
+
...Xl,
|
|
2637
|
+
...co,
|
|
2638
|
+
...So,
|
|
2639
|
+
...yo
|
|
2638
2640
|
};
|
|
2639
|
-
const
|
|
2640
|
-
hbLibComp:
|
|
2641
|
-
},
|
|
2642
|
-
hbLibComp:
|
|
2643
|
-
},
|
|
2644
|
-
hbLibComp:
|
|
2645
|
-
},
|
|
2646
|
-
hbLibComp:
|
|
2641
|
+
const wo = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload", format: "Supported formats" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan", addScheme: "Add scenario", editScheme: "Edit plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" }, HbImportFile: { clickUp: "Click to upload", downloadTemplate: "Click to download template", pleaseUploadFiles: "Please upload files", uploadText: "Drag files here or", fileLabel: "document", importBtn: "File upload" } }, Fo = {
|
|
2642
|
+
hbLibComp: wo
|
|
2643
|
+
}, xo = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください", format: "サポートされている形式" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" }, HbImportFile: { clickUp: "クリックしてアップロード", downloadTemplate: "クリックしてテンプレートをダウンロード", pleaseUploadFiles: "ファイルをアップロードしてください", uploadText: "ファイルをここにドラッグするか、", fileLabel: "書類", importBtn: "ファイルのアップロード" } }, To = {
|
|
2644
|
+
hbLibComp: xo
|
|
2645
|
+
}, Mo = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案", addScheme: "添加方案", editScheme: "编辑方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载", format: "支持格式" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" }, HbImportFile: { uploadText: "将文件拖到此处或", clickUp: "请上传文件", downloadTemplate: "点击下载模板", pleaseUploadFiles: "请上传文件", fileLabel: "文件", importBtn: "文件上传" } }, $o = {
|
|
2646
|
+
hbLibComp: Mo
|
|
2647
|
+
}, Io = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus", format: "Unterstützte Formate" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan", addScheme: "Szenario hinzufügen", editScheme: "Plan bearbeiten" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" }, HbImportFile: { clickUp: "Klicken Sie zum Hochladen", downloadTemplate: "Klicken Sie hier, um die Vorlage herunterzuladen", pleaseUploadFiles: "Bitte laden Sie Dateien hoch", uploadText: "Ziehen Sie Dateien hierher oder", fileLabel: "dokumentieren", importBtn: "Datei-Upload" } }, Ho = {
|
|
2648
|
+
hbLibComp: Io
|
|
2647
2649
|
};
|
|
2648
|
-
var ye = { exports: {} },
|
|
2649
|
-
function
|
|
2650
|
+
var ye = { exports: {} }, Do = ye.exports, tt;
|
|
2651
|
+
function Ao() {
|
|
2650
2652
|
return tt || (tt = 1, (function(t, m) {
|
|
2651
|
-
(function(
|
|
2652
|
-
t.exports =
|
|
2653
|
-
})(
|
|
2654
|
-
function
|
|
2655
|
-
return
|
|
2653
|
+
(function(r, b) {
|
|
2654
|
+
t.exports = b(Se);
|
|
2655
|
+
})(Do, (function(r) {
|
|
2656
|
+
function b(d) {
|
|
2657
|
+
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
2656
2658
|
}
|
|
2657
|
-
var _ =
|
|
2658
|
-
return
|
|
2659
|
-
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(
|
|
2660
|
-
var
|
|
2661
|
-
return
|
|
2659
|
+
var _ = b(r), g = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(d, s) {
|
|
2660
|
+
return s === "W" ? d + "周" : d + "日";
|
|
2661
|
+
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(d, s) {
|
|
2662
|
+
var h = 100 * d + s;
|
|
2663
|
+
return h < 600 ? "凌晨" : h < 900 ? "早上" : h < 1100 ? "上午" : h < 1300 ? "中午" : h < 1800 ? "下午" : "晚上";
|
|
2662
2664
|
} };
|
|
2663
2665
|
return _.default.locale(g, null, !0), g;
|
|
2664
2666
|
}));
|
|
2665
2667
|
})(ye)), ye.exports;
|
|
2666
2668
|
}
|
|
2667
|
-
|
|
2669
|
+
Ao();
|
|
2668
2670
|
Se.locale("zh-cn");
|
|
2669
|
-
const
|
|
2670
|
-
en_US:
|
|
2671
|
-
ja_JP:
|
|
2672
|
-
zh_CN:
|
|
2673
|
-
de_DE:
|
|
2674
|
-
},
|
|
2675
|
-
Object.keys(et).forEach((
|
|
2676
|
-
t.use(et[
|
|
2671
|
+
const Yo = {
|
|
2672
|
+
en_US: Fo,
|
|
2673
|
+
ja_JP: To,
|
|
2674
|
+
zh_CN: $o,
|
|
2675
|
+
de_DE: Ho
|
|
2676
|
+
}, jo = function(t) {
|
|
2677
|
+
Object.keys(et).forEach((r) => {
|
|
2678
|
+
t.use(et[r]);
|
|
2677
2679
|
});
|
|
2678
2680
|
};
|
|
2679
2681
|
export {
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
+
jo as install,
|
|
2683
|
+
Yo as locales
|
|
2682
2684
|
};
|