@hb-hellotech/hb-ui 1.3.16-beta.8 → 2.0.0
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/file_comp/import_file/src/HbImportFile.d.ts +3 -0
- package/dist/components/business_comp/file_comp/import_file/src/HbImportFile.d.ts.map +1 -0
- package/dist/components/business_comp/file_comp/import_file/src/type.d.ts +3 -2
- package/dist/components/business_comp/file_comp/import_file/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/form_comp/hb_tooltip_select/src/HbTooltipSelect.d.ts +3 -0
- package/dist/components/business_comp/form_comp/hb_tooltip_select/src/HbTooltipSelect.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/HbFormItemFilterModal.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/HbFormItemFilterModal.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/src/HbListMultiSelect.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/src/HbListMultiSelect.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/{HbListBtns.vue.d.ts.map → HbListBtns.d.ts.map} +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/HbListForm.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/HbListForm.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/type.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/HbListTable.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/HbListTable.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/HbTableAct.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/HbTableAct.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/src/HbTableColumnSet.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/src/HbTableColumnSet.d.ts.map +1 -0
- package/dist/components/business_comp/modal_comp/log_modal/src/HbLogModal.d.ts +3 -0
- package/dist/components/business_comp/modal_comp/log_modal/src/HbLogModal.d.ts.map +1 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/{HbLibCard.vue.d.ts.map → HbLibCard.d.ts.map} +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_detail_box/src/HbLibDetailBox.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_detail_box/src/HbLibDetailBox.d.ts.map +1 -0
- package/dist/components/business_comp/unlist_page_comp/hb_footer_bar/src/HbLibFooterBar.d.ts +15 -0
- package/dist/components/business_comp/unlist_page_comp/hb_footer_bar/src/HbLibFooterBar.d.ts.map +1 -0
- package/dist/components/business_comp/unlist_page_comp/hb_hover_anchor/src/HbLibAnchor.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_hover_anchor/src/HbLibAnchor.d.ts.map +1 -0
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.d.ts.map +1 -0
- package/dist/components/business_comp/unlist_page_comp/hb_page_header/src/HbLibPageHeader.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_page_header/src/HbLibPageHeader.d.ts.map +1 -0
- package/dist/components/business_comp/unlist_page_comp/hb_undetail_box/src/HbLibUnDetailBox.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_undetail_box/src/HbLibUnDetailBox.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_copy/src/copy.d.ts +3 -0
- package/dist/components/func_comp/hb_func_comp_copy/src/copy.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_copy/src/type.d.ts +1 -1
- package/dist/components/func_comp/hb_func_comp_copy/src/type.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_drag/src/index.d.ts +3 -0
- package/dist/components/func_comp/hb_func_comp_drag/src/index.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_drag/src/type.d.ts +1 -1
- package/dist/components/func_comp/hb_func_comp_drag/src/type.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_sort/src/sort.d.ts +3 -0
- package/dist/components/func_comp/hb_func_comp_sort/src/sort.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_sort/src/type.d.ts +1 -1
- package/dist/components/func_comp/hb_func_comp_sort/src/type.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_loading/src/loading.d.ts +3 -0
- package/dist/components/func_comp/hb_func_loading/src/loading.d.ts.map +1 -0
- package/dist/components/func_comp/hb_ui_config/src/hbUiConfig.d.ts +3 -0
- package/dist/components/func_comp/hb_ui_config/src/{hbUiConfig.vue.d.ts.map → hbUiConfig.d.ts.map} +1 -1
- package/dist/components/hooks/useCalTableHeight.d.ts +1 -1
- package/dist/components/hooks/useCalTableWidth.d.ts +1 -1
- package/dist/components/index.d.ts +6 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/utils/directives/debounce_click/index.d.ts +0 -1
- package/dist/components/utils/directives/debounce_click/index.d.ts.map +1 -1
- package/dist/components/utils/directives/index.d.ts +3 -10
- package/dist/components/utils/directives/index.d.ts.map +1 -1
- package/dist/components/utils/directives/v_copy/index.d.ts +0 -1
- package/dist/components/utils/directives/v_copy/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1206 -1200
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shims-vue.d.ts +1 -1
- package/dist/vite-env.d.ts +3 -1
- package/package.json +13 -3
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +0 -112
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +0 -40
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +0 -34
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +0 -82
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts.map +0 -1
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.vue.d.ts +0 -56
- package/dist/components/business_comp/unlist_page_comp/hb_footer_bar/src/HbLibFooterBar.vue.d.ts +0 -87
- package/dist/components/business_comp/unlist_page_comp/hb_footer_bar/src/HbLibFooterBar.vue.d.ts.map +0 -1
- package/dist/components/business_comp/unlist_page_comp/hb_hover_anchor/src/HbLibAnchor.vue.d.ts +0 -42
- package/dist/components/business_comp/unlist_page_comp/hb_hover_anchor/src/HbLibAnchor.vue.d.ts.map +0 -1
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts +0 -137
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_comp_drag/src/index.vue.d.ts +0 -182
- package/dist/components/func_comp/hb_func_comp_drag/src/index.vue.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_comp_sort/src/sort.vue.d.ts +0 -64
- package/dist/components/func_comp/hb_func_comp_sort/src/sort.vue.d.ts.map +0 -1
- package/dist/components/func_comp/hb_ui_config/src/hbUiConfig.vue.d.ts +0 -16
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as G, inject as fe, computed as
|
|
2
|
+
import { defineComponent as G, inject as fe, computed as z, reactive as Te, ref as E, watch as te, onMounted as he, createElementBlock as T, openBlock as i, normalizeClass as Y, unref as L, createVNode as w, withCtx as s, createElementVNode as c, toDisplayString as C, createTextVNode as A, createBlock as P, createCommentVNode as N, Fragment as q, renderList as ie, resolveComponent as V, Transition as Dt, withDirectives as be, mergeProps as X, createSlots as ke, renderSlot as j, vShow as Bt, nextTick as Le, onUnmounted as we, useTemplateRef as At, provide as Lt, normalizeStyle as re, mergeModels as Ve, useModel as Ct, withModifiers as $e, resolveDirective as kt, useAttrs as Ot, useSlots as Et, onBeforeUnmount as Je, watchEffect as St, resolveDynamicComponent as Tt, shallowRef as zt, createStaticVNode as Nt, createApp as Rt } from "vue";
|
|
3
3
|
import Ie from "vuedraggable";
|
|
4
|
-
import { Modal as
|
|
4
|
+
import { Modal as We, Button as je, message as Se, Tooltip as Me, Switch as tt, Radio as ot, RadioGroup as lt, InputNumber as at, DatePicker as nt, Checkbox as De, CheckboxGroup as it, Select as Ye, Input as st, Col as Pt, Row as Ut, FormItem as rt, Form as ct, SelectOption as qe, Popconfirm as Pe, MenuItem as dt, Menu as ut, Dropdown as bt, Popover as Vt, BackTop as wt, Spin as Wt } from "ant-design-vue";
|
|
5
5
|
import { useRoute as Qe } from "vue-router";
|
|
6
6
|
import { useI18n as de } from "vue-i18n";
|
|
7
|
-
import _e, { merge as
|
|
8
|
-
import { CloseOutlined as
|
|
9
|
-
import { useFullscreen as
|
|
7
|
+
import _e, { merge as jt } from "lodash";
|
|
8
|
+
import { CloseOutlined as Yt, QuestionCircleOutlined as qt, SearchOutlined as Be, UpCircleOutlined as Kt, DownCircleOutlined as Gt, UnorderedListOutlined as Jt, DownOutlined as Ke, PlusCircleOutlined as Qt, ToTopOutlined as Ht } from "@ant-design/icons-vue";
|
|
9
|
+
import { useFullscreen as xt, useDebounceFn as Zt, useElementBounding as Xt, useScroll as eo, useDraggable as to, isClient as oo } from "@vueuse/core";
|
|
10
10
|
import Oe from "dayjs";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
}, ge = (e,
|
|
11
|
+
const lo = "hb-", Ze = (e = "") => {
|
|
12
|
+
const o = `${lo}${e}`;
|
|
13
|
+
return ao(o);
|
|
14
|
+
}, ge = (e, o, t, n) => (o && (e += `-${o}`), t && (e += `__${t}`), n && (e += `--${n}`), e), ao = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (
|
|
16
|
+
b: (o) => o ? ge(e, o, "", "") : ge(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (
|
|
18
|
+
e: (o) => o ? ge(e, "", o, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (
|
|
20
|
+
m: (o) => ge(e, "", "", o),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (
|
|
22
|
+
be: (o, t) => ge(e, o, t, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (
|
|
24
|
+
em: (o, t) => ge(e, "", o, t),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (
|
|
26
|
+
bem: (o, t, n) => ge(e, o, t, n),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (
|
|
29
|
-
}),
|
|
28
|
+
is: (o, t) => t ? `is-${o}` : ""
|
|
29
|
+
}), no = ["onMouseenter", "onMouseleave"], io = ["onClick"], so = /* @__PURE__ */ G({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -38,21 +38,21 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(e, { expose:
|
|
42
|
-
const n = fe("globalCompConfig", {}), u = de().t, d = de().messages.value.en_US, r = de().messages.value.ja_JP, p = de().messages.value.zh_CN, a = e, l =
|
|
41
|
+
setup(e, { expose: o, emit: t }) {
|
|
42
|
+
const n = fe("globalCompConfig", {}), u = de().t, d = de().messages.value.en_US, r = de().messages.value.ja_JP, p = de().messages.value.zh_CN, a = e, l = z(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), v = z(() => a.title || u("hbLibComp.hbFormItemFilterModal.title")), g = t, f = Ze("sfcm"), B = Qe(), $ = Te({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}), U =
|
|
44
|
+
}), U = E(!1), D = E(600);
|
|
45
45
|
let k = [];
|
|
46
|
-
const y =
|
|
46
|
+
const y = E([]), H = E([]), F = z(() => y.value.every((m) => m.isLinked || m.isFixed)), S = (m) => ({
|
|
47
47
|
...m,
|
|
48
|
-
label:
|
|
48
|
+
label: x(m) || `${O(m) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: m.key,
|
|
50
50
|
isFixed: m?.isFixed || !1,
|
|
51
51
|
isLinked: m?.isLinked || !1,
|
|
52
52
|
labelLanguage: m?.labelLanguage || void 0
|
|
53
53
|
}), _ = (m) => {
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
54
|
+
const W = m.draggedContext.element, I = m.relatedContext.index;
|
|
55
|
+
if (W.isLinked || W.isFixed)
|
|
56
56
|
return !1;
|
|
57
57
|
const J = y.value.map((ae, pe) => ({ item: ae, index: pe })).filter(({ item: ae }) => ae.isLinked).map(({ index: ae }) => ae);
|
|
58
58
|
if (J.length === 0)
|
|
@@ -63,18 +63,18 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, b =
|
|
66
|
+
}, b = z(() => h() + "_" + a.saveKey), h = () => {
|
|
67
67
|
const m = localStorage.getItem("pro__Login_Userinfo");
|
|
68
|
-
let
|
|
68
|
+
let W = "anonymous";
|
|
69
69
|
if (m)
|
|
70
70
|
try {
|
|
71
|
-
|
|
71
|
+
W = JSON.parse(m).value.jobNumber || "anonymous";
|
|
72
72
|
} catch (J) {
|
|
73
73
|
console.warn("解析用户信息失败:", J);
|
|
74
74
|
}
|
|
75
75
|
let I = B?.path;
|
|
76
|
-
return `searchFormConfig_${
|
|
77
|
-
},
|
|
76
|
+
return `searchFormConfig_${W}_${I}`;
|
|
77
|
+
}, x = (m) => ({
|
|
78
78
|
ja_JP: () => _e.get(r, m.labelLanguage || ""),
|
|
79
79
|
en_US: () => _e.get(d, m.labelLanguage || ""),
|
|
80
80
|
zh_CN: () => _e.get(p, m.labelLanguage || "")
|
|
@@ -84,84 +84,84 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
84
84
|
zh_CN: () => _e.get(p, m.subLabelLanguage || "")
|
|
85
85
|
})[$.lan]?.() || m.subLabel, K = (m) => {
|
|
86
86
|
try {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const I = JSON.parse(
|
|
87
|
+
const W = localStorage.getItem(b.value);
|
|
88
|
+
if (W) {
|
|
89
|
+
const I = JSON.parse(W);
|
|
90
90
|
if (I.originalList && Array.isArray(I.originalList)) {
|
|
91
91
|
k = JSON.parse(JSON.stringify(I.originalList));
|
|
92
|
-
const J = k.filter((Q) => Q?.isFixed), ae = k.filter((Q) => Q?.isLinked), pe = I.showList.filter((Q) => !Q.isFixed && !Q.isLinked), ve = l.value && l.value > 0 ? Math.max(0, l.value - J.length - ae.length) : pe.length,
|
|
92
|
+
const J = k.filter((Q) => Q?.isFixed), ae = k.filter((Q) => Q?.isLinked), pe = I.showList.filter((Q) => !Q.isFixed && !Q.isLinked), ve = l.value && l.value > 0 ? Math.max(0, l.value - J.length - ae.length) : pe.length, xe = J.map((Q) => ({
|
|
93
93
|
...S(Q)
|
|
94
|
-
})),
|
|
94
|
+
})), ze = ae.map((Q) => ({
|
|
95
95
|
...S(Q)
|
|
96
96
|
})), Ne = pe.slice(0, ve).map((Q) => ({
|
|
97
97
|
...S(Q)
|
|
98
98
|
}));
|
|
99
|
-
y.value = [...
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
y.value = [...xe, ...ze, ...Ne];
|
|
100
|
+
const Re = y.value.map((Q) => Q.key), ne = k.map((Q) => Q.key).filter((Q) => !Re.includes(Q));
|
|
101
|
+
return H.value = k.filter((Q) => ne.includes(Q.key)).map((Q) => ({
|
|
102
102
|
...S(Q),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
} catch (
|
|
108
|
-
console.warn("加载保存的搜索配置失败:",
|
|
107
|
+
} catch (W) {
|
|
108
|
+
console.warn("加载保存的搜索配置失败:", W);
|
|
109
109
|
}
|
|
110
110
|
return !1;
|
|
111
111
|
}, se = () => {
|
|
112
112
|
try {
|
|
113
113
|
const m = {
|
|
114
114
|
originalList: k,
|
|
115
|
-
showList: y.value.map((
|
|
116
|
-
...
|
|
117
|
-
key:
|
|
118
|
-
label:
|
|
119
|
-
isFixed:
|
|
120
|
-
isLinked:
|
|
121
|
-
labelLanguage:
|
|
115
|
+
showList: y.value.map((W) => ({
|
|
116
|
+
...W,
|
|
117
|
+
key: W.key,
|
|
118
|
+
label: W.label,
|
|
119
|
+
isFixed: W.isFixed,
|
|
120
|
+
isLinked: W.isLinked,
|
|
121
|
+
labelLanguage: W?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
124
|
localStorage.setItem(b.value, JSON.stringify(m));
|
|
125
125
|
} catch (m) {
|
|
126
126
|
console.warn("保存搜索配置失败:", m);
|
|
127
127
|
}
|
|
128
|
-
}, M =
|
|
129
|
-
const m = y.value.filter((I) => !I.isFixed && !I.isLinked).length,
|
|
130
|
-
return m >= l.value -
|
|
128
|
+
}, M = z(() => {
|
|
129
|
+
const m = y.value.filter((I) => !I.isFixed && !I.isLinked).length, W = y.value.filter((I) => I.isFixed || I.isLinked).length;
|
|
130
|
+
return m >= l.value - W;
|
|
131
131
|
});
|
|
132
132
|
te(
|
|
133
133
|
() => a.list,
|
|
134
134
|
(m) => {
|
|
135
|
-
let
|
|
136
|
-
if (!
|
|
135
|
+
let W = JSON.stringify(y.value) !== JSON.stringify(m);
|
|
136
|
+
if (!W)
|
|
137
137
|
return;
|
|
138
138
|
const I = localStorage.getItem(b.value), J = JSON.parse(I || "{}");
|
|
139
139
|
if (J && J?.originalList && Array.isArray(J.originalList))
|
|
140
140
|
K(), g("confirm", y.value);
|
|
141
|
-
else if (
|
|
141
|
+
else if (W) {
|
|
142
142
|
k = JSON.parse(JSON.stringify(m));
|
|
143
|
-
const ae = m.filter((ne) => ne?.isFixed), pe = m.filter((ne) => ne?.isLinked), ve = m.filter((ne) => !ne?.isFixed && !ne?.isLinked),
|
|
144
|
-
y.value = [...
|
|
145
|
-
const et = ve.slice(
|
|
143
|
+
const ae = m.filter((ne) => ne?.isFixed), pe = m.filter((ne) => ne?.isLinked), ve = m.filter((ne) => !ne?.isFixed && !ne?.isLinked), xe = l.value && l.value > 0 ? Math.max(0, l.value - ae.length - pe.length) : ve.length, ze = ae.map((ne) => S(ne)), Ne = pe.map((ne) => S(ne)), Re = ve.slice(0, xe).map((ne) => S(ne));
|
|
144
|
+
y.value = [...ze, ...Ne, ...Re];
|
|
145
|
+
const et = ve.slice(xe).map((ne) => ({
|
|
146
146
|
...S(ne),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
|
|
149
|
+
H.value = et, g("confirm", y.value);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const
|
|
155
|
-
const
|
|
156
|
-
|
|
154
|
+
const R = (m) => {
|
|
155
|
+
const W = y.value.findIndex((I) => I.key === m.key);
|
|
156
|
+
W !== -1 && (y.value.splice(W, 1), H.value.push({ ...m, active: !1 }));
|
|
157
157
|
}, ee = (m) => {
|
|
158
158
|
if (M.value) {
|
|
159
159
|
Se.warning(`当前已经超过${u(l.value)}个可选数量,请先删除已显示条件`);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
const [I] =
|
|
162
|
+
const W = H.value.findIndex((I) => I.key === m.key);
|
|
163
|
+
if (W !== -1) {
|
|
164
|
+
const [I] = H.value.splice(W, 1);
|
|
165
165
|
y.value.push({ ...I, active: !1 });
|
|
166
166
|
}
|
|
167
167
|
}, le = () => {
|
|
@@ -170,22 +170,22 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
170
170
|
U.value = !0;
|
|
171
171
|
}, ue = () => {
|
|
172
172
|
se(), g("confirm", y.value), le();
|
|
173
|
-
},
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
},
|
|
177
|
-
const
|
|
178
|
-
|
|
173
|
+
}, He = (m) => {
|
|
174
|
+
const W = H.value.findIndex((I) => I.key === m.key);
|
|
175
|
+
W !== -1 && (H.value[W].active = !0);
|
|
176
|
+
}, Ee = (m) => {
|
|
177
|
+
const W = H.value.findIndex((I) => I.key === m.key);
|
|
178
|
+
W !== -1 && (H.value[W].active = !1);
|
|
179
179
|
};
|
|
180
|
-
return
|
|
180
|
+
return o({
|
|
181
181
|
toOpenModal: ce
|
|
182
182
|
}), he(() => {
|
|
183
|
-
}), (m,
|
|
183
|
+
}), (m, W) => (i(), T("div", {
|
|
184
184
|
class: Y(L(f).b())
|
|
185
185
|
}, [
|
|
186
|
-
w(L(
|
|
186
|
+
w(L(We), {
|
|
187
187
|
visible: U.value,
|
|
188
|
-
"onUpdate:visible":
|
|
188
|
+
"onUpdate:visible": W[1] || (W[1] = (I) => U.value = I),
|
|
189
189
|
width: D.value,
|
|
190
190
|
onCancel: le,
|
|
191
191
|
onOk: ue
|
|
@@ -196,13 +196,13 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
196
196
|
}, C(v.value), 3)
|
|
197
197
|
]),
|
|
198
198
|
footer: s(() => [
|
|
199
|
-
w(L(
|
|
199
|
+
w(L(je), { onClick: le }, {
|
|
200
200
|
default: s(() => [
|
|
201
201
|
A(C(m.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}),
|
|
205
|
-
w(L(
|
|
205
|
+
w(L(je), {
|
|
206
206
|
type: "primary",
|
|
207
207
|
onClick: ue
|
|
208
208
|
}, {
|
|
@@ -229,7 +229,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
229
229
|
}, [
|
|
230
230
|
w(L(Ie), {
|
|
231
231
|
modelValue: y.value,
|
|
232
|
-
"onUpdate:modelValue":
|
|
232
|
+
"onUpdate:modelValue": W[0] || (W[0] = (I) => y.value = I),
|
|
233
233
|
"item-key": "key",
|
|
234
234
|
tag: "div",
|
|
235
235
|
disabled: F.value,
|
|
@@ -240,10 +240,10 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
240
240
|
class: Y([L(f).e("show__tag__item"), L(f).is("fixed", I.isFixed), L(f).is("linked", I.isLinked)])
|
|
241
241
|
}, [
|
|
242
242
|
A(C(I.label) + " ", 1),
|
|
243
|
-
!I.isFixed && !I.isLinked && e.list.length > 1 ? (i(),
|
|
243
|
+
!I.isFixed && !I.isLinked && e.list.length > 1 ? (i(), P(L(Yt), {
|
|
244
244
|
key: 0,
|
|
245
245
|
class: Y(L(f).e("show__tag__item-close")),
|
|
246
|
-
onClick: (J) =>
|
|
246
|
+
onClick: (J) => R(I)
|
|
247
247
|
}, null, 8, ["class", "onClick"])) : N("", !0)
|
|
248
248
|
], 2)
|
|
249
249
|
]),
|
|
@@ -264,19 +264,19 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
264
264
|
c("div", {
|
|
265
265
|
class: Y(L(f).e("unshow__tag"))
|
|
266
266
|
}, [
|
|
267
|
-
|
|
268
|
-
class: Y([L(f).e("unshow__tag__item"), L(f).is("fixed", I.isFixed || ""), L(f).is("linked", I.isLinked || "")]),
|
|
267
|
+
H.value.length > 0 ? (i(!0), T(q, { key: 0 }, ie(H.value, (I) => (i(), T("div", {
|
|
269
268
|
key: I.key,
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
class: Y([L(f).e("unshow__tag__item"), L(f).is("fixed", I.isFixed || ""), L(f).is("linked", I.isLinked || "")]),
|
|
270
|
+
onMouseenter: (J) => He(I),
|
|
271
|
+
onMouseleave: (J) => Ee(I)
|
|
272
272
|
}, [
|
|
273
273
|
A(C(I.label) + " ", 1),
|
|
274
274
|
I.active ? (i(), T("aside", {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: Y(L(f).e("unshow__tag__item-add")),
|
|
277
277
|
onClick: (J) => ee(I)
|
|
278
|
-
}, C(m.$t("hbLibComp.hbFormItemFilterModal.add")), 11,
|
|
279
|
-
], 42,
|
|
278
|
+
}, C(m.$t("hbLibComp.hbFormItemFilterModal.add")), 11, io)) : N("", !0)
|
|
279
|
+
], 42, no))), 128)) : (i(), T("div", {
|
|
280
280
|
key: 1,
|
|
281
281
|
class: Y(L(f).e("unshow__tag__empty"))
|
|
282
282
|
}, C(m.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
@@ -287,17 +287,17 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
287
287
|
}, 8, ["visible", "width"])
|
|
288
288
|
], 2));
|
|
289
289
|
}
|
|
290
|
-
}), Z = (e,
|
|
291
|
-
const
|
|
292
|
-
for (const [n, u] of
|
|
293
|
-
|
|
294
|
-
return
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
}, e),
|
|
290
|
+
}), Z = (e, o) => {
|
|
291
|
+
const t = e.__vccOpts || e;
|
|
292
|
+
for (const [n, u] of o)
|
|
293
|
+
t[n] = u;
|
|
294
|
+
return t;
|
|
295
|
+
}, ro = /* @__PURE__ */ Z(so, [["__scopeId", "data-v-b4f80d39"]]), oe = (e) => (e.install = (o) => {
|
|
296
|
+
o.component(e.name || "AnonymousComponent", e);
|
|
297
|
+
}, e), co = oe(ro), uo = {
|
|
298
298
|
key: 0,
|
|
299
299
|
class: "form-footer"
|
|
300
|
-
},
|
|
300
|
+
}, bo = /* @__PURE__ */ G({
|
|
301
301
|
name: "HbLibListForm",
|
|
302
302
|
__name: "HbListForm",
|
|
303
303
|
props: {
|
|
@@ -329,18 +329,18 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
329
329
|
} }
|
|
330
330
|
},
|
|
331
331
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
|
-
setup(e, { expose:
|
|
333
|
-
const n = fe("globalCompConfig", {}), u =
|
|
332
|
+
setup(e, { expose: o, emit: t }) {
|
|
333
|
+
const n = fe("globalCompConfig", {}), u = t, d = fe("HB_LIST_PAGE_CONTAINER"), r = z(() => a.searchList || []), p = Ze("form"), a = e, l = z(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), v = E("show"), g = z(() => a.needFooter || n.HbLibListForm?.needFooter), f = z(() => [...a.items]), B = (M) => M !== void 0, $ = (M) => typeof M == "function", U = (M) => B(M.condition) ? $(M.condition) ? M.condition() : M.condition : !0, D = z(() => [...a.items].map((M) => ({
|
|
334
334
|
...M,
|
|
335
335
|
condition: U(M),
|
|
336
336
|
label: M.label?.includes("多项搜索") ? "" : M.label
|
|
337
337
|
})));
|
|
338
338
|
console.log(D.value);
|
|
339
|
-
const k =
|
|
339
|
+
const k = z(() => a.saveKey), y = E(), H = () => {
|
|
340
340
|
u("handleSearch");
|
|
341
341
|
}, F = () => {
|
|
342
342
|
u("handleReset");
|
|
343
|
-
}, S =
|
|
343
|
+
}, S = E(), _ = () => {
|
|
344
344
|
S.value && S.value.toOpenModal();
|
|
345
345
|
}, b = (M) => {
|
|
346
346
|
u("handleMenuClick", M);
|
|
@@ -352,27 +352,27 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
352
352
|
(M) => {
|
|
353
353
|
if (M) {
|
|
354
354
|
console.log(M);
|
|
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
|
-
|
|
362
|
+
const x = (M) => {
|
|
363
|
+
const R = M;
|
|
364
|
+
R.style.height = "", R.offsetHeight;
|
|
365
365
|
}, O = (M) => {
|
|
366
|
-
const
|
|
367
|
-
|
|
366
|
+
const R = M;
|
|
367
|
+
R.style.height = "", R.style.overflow = "", Le(() => {
|
|
368
368
|
d.calTableHeight && d.calTableHeight();
|
|
369
369
|
});
|
|
370
370
|
}, K = (M) => {
|
|
371
|
-
const
|
|
371
|
+
const R = M, ee = R.querySelector(".hb-lib-form--container");
|
|
372
372
|
if (ee) {
|
|
373
373
|
const le = ee.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 = () => {
|
|
@@ -380,13 +380,13 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
380
380
|
d.calTableHeight && d.calTableHeight();
|
|
381
381
|
});
|
|
382
382
|
};
|
|
383
|
-
return
|
|
383
|
+
return o({
|
|
384
384
|
formRef: y,
|
|
385
385
|
SelectOption: qe,
|
|
386
386
|
Form: ct,
|
|
387
387
|
FormItem: rt,
|
|
388
|
-
Row:
|
|
389
|
-
Col:
|
|
388
|
+
Row: Ut,
|
|
389
|
+
Col: Pt,
|
|
390
390
|
Input: st,
|
|
391
391
|
Select: Ye,
|
|
392
392
|
CheckboxGroup: it,
|
|
@@ -396,14 +396,14 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
396
396
|
RadioGroup: lt,
|
|
397
397
|
Radio: ot,
|
|
398
398
|
Switch: tt,
|
|
399
|
-
Button:
|
|
399
|
+
Button: je,
|
|
400
400
|
Tooltip: Me
|
|
401
|
-
}), (M,
|
|
402
|
-
const ee = V("a-button"), le = V("a-tooltip"), ce = V("a-menu-item"), ue = V("a-menu"),
|
|
401
|
+
}), (M, R) => {
|
|
402
|
+
const ee = V("a-button"), le = V("a-tooltip"), ce = V("a-menu-item"), ue = V("a-menu"), He = V("a-dropdown"), Ee = V("HbLibFormItemFilterModal");
|
|
403
403
|
return i(), T(q, null, [
|
|
404
|
-
w(
|
|
404
|
+
w(Dt, {
|
|
405
405
|
name: "form-collapse",
|
|
406
|
-
onEnter:
|
|
406
|
+
onEnter: x,
|
|
407
407
|
onAfterEnter: O,
|
|
408
408
|
onLeave: K,
|
|
409
409
|
onAfterLeave: se
|
|
@@ -419,8 +419,8 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
419
419
|
class: ["hb-lib-form--container", v.value == "show" ? "" : "hide"]
|
|
420
420
|
}), {
|
|
421
421
|
default: s(() => [
|
|
422
|
-
(i(!0), T(q, null, ie(D.value, (m,
|
|
423
|
-
m.condition ? (i(),
|
|
422
|
+
(i(!0), T(q, null, ie(D.value, (m, W) => (i(), T(q, { key: W }, [
|
|
423
|
+
m.condition ? (i(), P(L(rt), X({
|
|
424
424
|
key: 0,
|
|
425
425
|
ref_for: !0
|
|
426
426
|
}, m, {
|
|
@@ -431,28 +431,28 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
431
431
|
}
|
|
432
432
|
}), ke({
|
|
433
433
|
default: s(() => [
|
|
434
|
-
m.type === "slot" ?
|
|
434
|
+
m.type === "slot" ? j(M.$slots, m.key, {
|
|
435
435
|
key: 0,
|
|
436
436
|
formData: e.formData,
|
|
437
437
|
item: m
|
|
438
438
|
}, void 0, !0) : N("", !0),
|
|
439
|
-
m.type === "mixin" ?
|
|
439
|
+
m.type === "mixin" ? j(M.$slots, m.key, {
|
|
440
440
|
key: 1,
|
|
441
441
|
formData: e.formData,
|
|
442
442
|
item: m
|
|
443
443
|
}, void 0, !0) : N("", !0),
|
|
444
|
-
m.type === "input" ? (i(),
|
|
444
|
+
m.type === "input" ? (i(), P(L(st), X({
|
|
445
445
|
key: 2,
|
|
446
446
|
value: e.formData[m.key],
|
|
447
447
|
"onUpdate:value": (I) => e.formData[m.key] = I
|
|
448
448
|
}, { ref_for: !0 }, m.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
449
|
-
m.type === "select" ? (i(),
|
|
449
|
+
m.type === "select" ? (i(), P(L(Ye), X({
|
|
450
450
|
key: 3,
|
|
451
451
|
value: e.formData[m.key],
|
|
452
452
|
"onUpdate:value": (I) => e.formData[m.key] = I
|
|
453
453
|
}, { ref_for: !0 }, m.attrs), {
|
|
454
454
|
default: s(() => [
|
|
455
|
-
(i(!0), T(q, null, ie(m.options, (I, J) => (i(),
|
|
455
|
+
(i(!0), T(q, null, ie(m.options, (I, J) => (i(), P(L(qe), {
|
|
456
456
|
key: J,
|
|
457
457
|
value: I.value
|
|
458
458
|
}, {
|
|
@@ -464,13 +464,13 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
464
464
|
]),
|
|
465
465
|
_: 2
|
|
466
466
|
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
467
|
-
m.type === "checkbox" ? (i(),
|
|
467
|
+
m.type === "checkbox" ? (i(), P(L(it), X({
|
|
468
468
|
key: 4,
|
|
469
469
|
value: e.formData[m.key],
|
|
470
470
|
"onUpdate:value": (I) => e.formData[m.key] = I
|
|
471
471
|
}, { ref_for: !0 }, m.attrs), {
|
|
472
472
|
default: s(() => [
|
|
473
|
-
(i(!0), T(q, null, ie(m.options, (I, J) => (i(),
|
|
473
|
+
(i(!0), T(q, null, ie(m.options, (I, J) => (i(), P(L(De), {
|
|
474
474
|
key: J,
|
|
475
475
|
value: I.value
|
|
476
476
|
}, {
|
|
@@ -482,23 +482,23 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
482
482
|
]),
|
|
483
483
|
_: 2
|
|
484
484
|
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
485
|
-
m.type === "date-picker" ? (i(),
|
|
485
|
+
m.type === "date-picker" ? (i(), P(L(nt), X({
|
|
486
486
|
key: 5,
|
|
487
487
|
value: e.formData[m.key],
|
|
488
488
|
"onUpdate:value": (I) => e.formData[m.key] = I
|
|
489
489
|
}, { ref_for: !0 }, m.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
490
|
-
m.type === "input-number" ? (i(),
|
|
490
|
+
m.type === "input-number" ? (i(), P(L(at), X({
|
|
491
491
|
key: 6,
|
|
492
492
|
value: e.formData[m.key],
|
|
493
493
|
"onUpdate:value": (I) => e.formData[m.key] = I
|
|
494
494
|
}, { ref_for: !0 }, m.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
495
|
-
m.type === "radio" ? (i(),
|
|
495
|
+
m.type === "radio" ? (i(), P(L(lt), X({
|
|
496
496
|
key: 7,
|
|
497
497
|
value: e.formData[m.key],
|
|
498
498
|
"onUpdate:value": (I) => e.formData[m.key] = I
|
|
499
499
|
}, { ref_for: !0 }, m.attrs), {
|
|
500
500
|
default: s(() => [
|
|
501
|
-
(i(!0), T(q, null, ie(m.options, (I, J) => (i(),
|
|
501
|
+
(i(!0), T(q, null, ie(m.options, (I, J) => (i(), P(L(ot), {
|
|
502
502
|
key: J,
|
|
503
503
|
value: I.value
|
|
504
504
|
}, {
|
|
@@ -510,7 +510,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
512
|
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
513
|
-
m.type === "switch" ? (i(),
|
|
513
|
+
m.type === "switch" ? (i(), P(L(tt), X({
|
|
514
514
|
key: 8,
|
|
515
515
|
checked: e.formData[m.key],
|
|
516
516
|
"onUpdate:checked": (I) => e.formData[m.key] = I
|
|
@@ -526,7 +526,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
526
526
|
title: m.tooltip
|
|
527
527
|
}, {
|
|
528
528
|
default: s(() => [
|
|
529
|
-
w(L(
|
|
529
|
+
w(L(qt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
530
530
|
]),
|
|
531
531
|
_: 1
|
|
532
532
|
}, 8, ["title"])
|
|
@@ -535,10 +535,10 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
535
535
|
} : void 0
|
|
536
536
|
]), 1040, ["name", "class"])) : N("", !0)
|
|
537
537
|
], 64))), 128)),
|
|
538
|
-
g.value ? N("", !0) : (i(), T("section",
|
|
538
|
+
g.value ? N("", !0) : (i(), T("section", uo, [
|
|
539
539
|
w(ee, {
|
|
540
540
|
type: "primary",
|
|
541
|
-
onClick:
|
|
541
|
+
onClick: H,
|
|
542
542
|
class: "hb_list_page_button"
|
|
543
543
|
}, {
|
|
544
544
|
icon: s(() => [
|
|
@@ -558,7 +558,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
560
|
}),
|
|
561
|
-
e.needFilter ? (i(),
|
|
561
|
+
e.needFilter ? (i(), P(le, {
|
|
562
562
|
key: 0,
|
|
563
563
|
title: M.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
564
564
|
}, {
|
|
@@ -566,7 +566,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
566
566
|
c("span", {
|
|
567
567
|
class: "hb-lib-form-svg",
|
|
568
568
|
onClick: _
|
|
569
|
-
}, [...
|
|
569
|
+
}, [...R[0] || (R[0] = [
|
|
570
570
|
c("svg", {
|
|
571
571
|
t: "1757915025410",
|
|
572
572
|
class: "icon",
|
|
@@ -587,12 +587,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
587
587
|
]),
|
|
588
588
|
_: 1
|
|
589
589
|
}, 8, ["title"])) : N("", !0),
|
|
590
|
-
|
|
591
|
-
e.needSearchCase ? (i(),
|
|
590
|
+
j(M.$slots, "formBtns", {}, () => [
|
|
591
|
+
e.needSearchCase ? (i(), P(He, { key: 0 }, {
|
|
592
592
|
overlay: s(() => [
|
|
593
593
|
w(ue, { onClick: b }, {
|
|
594
594
|
default: s(() => [
|
|
595
|
-
(i(!0), T(q, null, ie(r.value, (m) => (i(),
|
|
595
|
+
(i(!0), T(q, null, ie(r.value, (m) => (i(), P(ce, {
|
|
596
596
|
key: m.id
|
|
597
597
|
}, {
|
|
598
598
|
default: s(() => [
|
|
@@ -620,7 +620,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
620
620
|
w(le, {
|
|
621
621
|
title: M.$t("hbLibComp.hbLibListForm.queryCase")
|
|
622
622
|
}, {
|
|
623
|
-
default: s(() => [...
|
|
623
|
+
default: s(() => [...R[1] || (R[1] = [
|
|
624
624
|
c("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
625
625
|
c("svg", {
|
|
626
626
|
t: "1765936014161",
|
|
@@ -665,18 +665,18 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
665
665
|
c("div", {
|
|
666
666
|
class: Y(L(p).e("footer__left"))
|
|
667
667
|
}, [
|
|
668
|
-
|
|
668
|
+
j(M.$slots, "form-footer-left", {}, void 0, !0)
|
|
669
669
|
], 2),
|
|
670
670
|
c("div", {
|
|
671
671
|
class: Y(L(p).e("footer__right"))
|
|
672
672
|
}, [
|
|
673
|
-
v.value == "show" ?
|
|
673
|
+
v.value == "show" ? j(M.$slots, "form-footer-right", {
|
|
674
674
|
key: 0,
|
|
675
675
|
formRef: y.value
|
|
676
676
|
}, () => [
|
|
677
677
|
w(ee, {
|
|
678
678
|
type: "primary",
|
|
679
|
-
onClick:
|
|
679
|
+
onClick: H,
|
|
680
680
|
class: "hb_list_page_button"
|
|
681
681
|
}, {
|
|
682
682
|
icon: s(() => [
|
|
@@ -697,7 +697,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
}),
|
|
700
|
-
e.needFilter ? (i(),
|
|
700
|
+
e.needFilter ? (i(), P(le, {
|
|
701
701
|
key: 0,
|
|
702
702
|
title: M.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
703
703
|
}, {
|
|
@@ -705,7 +705,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
705
705
|
c("span", {
|
|
706
706
|
class: "hb-lib-form-svg",
|
|
707
707
|
onClick: _
|
|
708
|
-
}, [...
|
|
708
|
+
}, [...R[2] || (R[2] = [
|
|
709
709
|
c("svg", {
|
|
710
710
|
t: "1757915025410",
|
|
711
711
|
class: "icon",
|
|
@@ -726,12 +726,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
726
726
|
]),
|
|
727
727
|
_: 1
|
|
728
728
|
}, 8, ["title"])) : N("", !0),
|
|
729
|
-
|
|
730
|
-
e.needSearchCase ? (i(),
|
|
729
|
+
j(M.$slots, "formBtns", {}, () => [
|
|
730
|
+
e.needSearchCase ? (i(), P(He, { key: 0 }, {
|
|
731
731
|
overlay: s(() => [
|
|
732
732
|
w(ue, { onClick: b }, {
|
|
733
733
|
default: s(() => [
|
|
734
|
-
(i(!0), T(q, null, ie(r.value, (m) => (i(),
|
|
734
|
+
(i(!0), T(q, null, ie(r.value, (m) => (i(), P(ce, {
|
|
735
735
|
key: m.id
|
|
736
736
|
}, {
|
|
737
737
|
default: s(() => [
|
|
@@ -759,7 +759,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
759
759
|
w(le, {
|
|
760
760
|
title: M.$t("hbLibComp.hbLibListForm.queryCase")
|
|
761
761
|
}, {
|
|
762
|
-
default: s(() => [...
|
|
762
|
+
default: s(() => [...R[3] || (R[3] = [
|
|
763
763
|
c("span", {
|
|
764
764
|
class: "hb-lib-form-svg",
|
|
765
765
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -800,12 +800,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
800
800
|
], 2)
|
|
801
801
|
], 2)) : N("", !0)
|
|
802
802
|
], 2), [
|
|
803
|
-
[
|
|
803
|
+
[Bt, e.isFormExpanded]
|
|
804
804
|
])
|
|
805
805
|
]),
|
|
806
806
|
_: 3
|
|
807
807
|
}),
|
|
808
|
-
w(
|
|
808
|
+
w(Ee, {
|
|
809
809
|
showNumber: l.value,
|
|
810
810
|
list: f.value,
|
|
811
811
|
ref_key: "HbSfCmRef",
|
|
@@ -816,7 +816,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
816
816
|
], 64);
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
|
-
}),
|
|
819
|
+
}), fo = /* @__PURE__ */ Z(bo, [["__scopeId", "data-v-8307bb07"]]), po = oe(fo), ho = { class: "hb-lib-list-page-act-box" }, mo = { class: "hb-lib-list-page-breadcrumb" }, vo = { class: "hb-lib-list-page-act" }, go = {
|
|
820
820
|
key: 0,
|
|
821
821
|
t: "1757915338760",
|
|
822
822
|
class: "icon",
|
|
@@ -826,7 +826,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
826
826
|
"p-id": "22885",
|
|
827
827
|
width: "200",
|
|
828
828
|
height: "200"
|
|
829
|
-
},
|
|
829
|
+
}, yo = {
|
|
830
830
|
key: 1,
|
|
831
831
|
t: "1757915360496",
|
|
832
832
|
class: "icon",
|
|
@@ -836,7 +836,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
836
836
|
"p-id": "23904",
|
|
837
837
|
width: "200",
|
|
838
838
|
height: "200"
|
|
839
|
-
},
|
|
839
|
+
}, _o = /* @__PURE__ */ G({
|
|
840
840
|
name: "HbLibListPageAct",
|
|
841
841
|
__name: "HbListPageAct",
|
|
842
842
|
props: {
|
|
@@ -844,12 +844,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
844
844
|
hideDomList: {}
|
|
845
845
|
},
|
|
846
846
|
setup(e) {
|
|
847
|
-
const
|
|
847
|
+
const o = fe("globalCompConfig", {}), t = e, { isFullscreen: n, toggle: u } = xt(document.body);
|
|
848
848
|
te(
|
|
849
849
|
() => n.value,
|
|
850
850
|
(a) => {
|
|
851
851
|
let l = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
852
|
-
Array.isArray(
|
|
852
|
+
Array.isArray(t.hideDomList) && t.hideDomList.length ? l = [...t.hideDomList] : o.HbLibListPageAct?.hideDomList && (l = [...o.HbLibListPageAct.hideDomList]);
|
|
853
853
|
const v = /* @__PURE__ */ new Map();
|
|
854
854
|
setTimeout(a ? () => {
|
|
855
855
|
if (l?.length)
|
|
@@ -869,9 +869,9 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
869
869
|
}, 0);
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
|
-
const d =
|
|
872
|
+
const d = E(""), r = () => {
|
|
873
873
|
const a = Qe();
|
|
874
|
-
let l = localStorage.getItem(
|
|
874
|
+
let l = localStorage.getItem(o.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", v = a?.path;
|
|
875
875
|
if (l !== "[]") {
|
|
876
876
|
let g = JSON.parse(l).find((f) => f.value === v);
|
|
877
877
|
g && (d.value = g.label.replace(/-/g, " / "));
|
|
@@ -889,9 +889,9 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
889
889
|
window.removeEventListener("keydown", p);
|
|
890
890
|
}), (a, l) => {
|
|
891
891
|
const v = V("a-tooltip");
|
|
892
|
-
return i(), T("section",
|
|
893
|
-
c("aside",
|
|
894
|
-
c("aside",
|
|
892
|
+
return i(), T("section", ho, [
|
|
893
|
+
c("aside", mo, C(d.value), 1),
|
|
894
|
+
c("aside", vo, [
|
|
895
895
|
w(v, {
|
|
896
896
|
title: L(n) ? `${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
897
897
|
placement: "leftTop"
|
|
@@ -902,7 +902,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
902
902
|
onClick: l[0] || (l[0] = //@ts-ignore
|
|
903
903
|
(...g) => L(u) && L(u)(...g))
|
|
904
904
|
}, [
|
|
905
|
-
L(n) ? (i(), T("svg",
|
|
905
|
+
L(n) ? (i(), T("svg", yo, [...l[2] || (l[2] = [
|
|
906
906
|
c("path", {
|
|
907
907
|
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",
|
|
908
908
|
fill: "#ff5000",
|
|
@@ -918,7 +918,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
918
918
|
fill: "#ff5000",
|
|
919
919
|
"p-id": "23907"
|
|
920
920
|
}, null, -1)
|
|
921
|
-
])])) : (i(), T("svg",
|
|
921
|
+
])])) : (i(), T("svg", go, [...l[1] || (l[1] = [
|
|
922
922
|
c("path", {
|
|
923
923
|
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",
|
|
924
924
|
fill: "#ff5000",
|
|
@@ -929,12 +929,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
929
929
|
]),
|
|
930
930
|
_: 1
|
|
931
931
|
}, 8, ["title"]),
|
|
932
|
-
|
|
932
|
+
j(a.$slots, "listAct", {}, void 0, !0)
|
|
933
933
|
])
|
|
934
934
|
]);
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
}),
|
|
937
|
+
}), Lo = /* @__PURE__ */ Z(_o, [["__scopeId", "data-v-c7cd0710"]]), Co = oe(Lo), ko = { class: "hb-lib-list-btns-box" }, So = { class: "hb-lib-list-btns-left" }, To = { class: "hb-lib-list-btns-right" }, wo = /* @__PURE__ */ G({
|
|
938
938
|
name: "HbLibListBtnsAct",
|
|
939
939
|
__name: "HbListBtns",
|
|
940
940
|
props: {
|
|
@@ -942,11 +942,11 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
942
942
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
943
943
|
},
|
|
944
944
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
945
|
-
setup(e, { emit:
|
|
946
|
-
const
|
|
947
|
-
n.value = !n.value,
|
|
945
|
+
setup(e, { emit: o }) {
|
|
946
|
+
const t = o, n = E(!0), u = () => {
|
|
947
|
+
n.value = !n.value, t("handleOpenOrClose", n.value);
|
|
948
948
|
}, d = () => {
|
|
949
|
-
|
|
949
|
+
t("handleReload");
|
|
950
950
|
}, r = (p) => {
|
|
951
951
|
};
|
|
952
952
|
return he(() => {
|
|
@@ -955,12 +955,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
955
955
|
window.removeEventListener("keydown", r);
|
|
956
956
|
}), (p, a) => {
|
|
957
957
|
const l = V("a-tooltip");
|
|
958
|
-
return i(), T("section",
|
|
959
|
-
c("aside",
|
|
960
|
-
|
|
958
|
+
return i(), T("section", ko, [
|
|
959
|
+
c("aside", So, [
|
|
960
|
+
j(p.$slots, "btnsLeft", {}, void 0, !0)
|
|
961
961
|
]),
|
|
962
|
-
c("aside",
|
|
963
|
-
e.needReload ? (i(),
|
|
962
|
+
c("aside", To, [
|
|
963
|
+
e.needReload ? (i(), P(l, {
|
|
964
964
|
key: 0,
|
|
965
965
|
title: p.$t("hbLibComp.hbListBtnsAct.reload")
|
|
966
966
|
}, {
|
|
@@ -989,7 +989,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
989
989
|
]),
|
|
990
990
|
_: 1
|
|
991
991
|
}, 8, ["title"])) : N("", !0),
|
|
992
|
-
e.needOpenOrClose ? (i(),
|
|
992
|
+
e.needOpenOrClose ? (i(), P(l, {
|
|
993
993
|
key: 1,
|
|
994
994
|
title: n.value ? `${p.$t("hbLibComp.hbListBtnsAct.close")}` : `${p.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
995
995
|
}, {
|
|
@@ -998,10 +998,10 @@ const ao = "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(), P(L(Kt), {
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1004
|
-
})) : (i(),
|
|
1004
|
+
})) : (i(), P(L(Gt), {
|
|
1005
1005
|
key: 1,
|
|
1006
1006
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1007
1007
|
}))
|
|
@@ -1009,21 +1009,21 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 1
|
|
1011
1011
|
}, 8, ["title"])) : N("", !0),
|
|
1012
|
-
|
|
1012
|
+
j(p.$slots, "btnsRight", {}, void 0, !0)
|
|
1013
1013
|
])
|
|
1014
1014
|
]);
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
|
-
}), Ho = /* @__PURE__ */ Z(
|
|
1018
|
-
const { formRef:
|
|
1017
|
+
}), Ho = /* @__PURE__ */ Z(wo, [["__scopeId", "data-v-de62f20a"]]), xo = oe(Ho), Fo = (e = {}) => {
|
|
1018
|
+
const { formRef: o, offsetBottom: t = 50, minHeight: n = 300, timeOut: u = 100 } = e, d = E(0);
|
|
1019
1019
|
let r = null, p = null, a = null, l = null, v = null;
|
|
1020
1020
|
const g = () => {
|
|
1021
1021
|
v && clearTimeout(v), v = setTimeout(() => {
|
|
1022
1022
|
requestAnimationFrame(() => {
|
|
1023
1023
|
Le(() => {
|
|
1024
|
-
const y = document.querySelector(".ant-table"),
|
|
1024
|
+
const y = document.querySelector(".ant-table"), H = document.querySelector(".ant-pagination");
|
|
1025
1025
|
if (y) {
|
|
1026
|
-
const F = Math.floor(y.getBoundingClientRect().top), S = window.innerHeight, b = (
|
|
1026
|
+
const F = Math.floor(y.getBoundingClientRect().top), S = window.innerHeight, b = (H ? H.offsetHeight + 20 : 40) + t;
|
|
1027
1027
|
let h = S - F - b;
|
|
1028
1028
|
h < n && (h = n), d.value = h;
|
|
1029
1029
|
}
|
|
@@ -1033,15 +1033,15 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1033
1033
|
}, f = () => {
|
|
1034
1034
|
const y = document.querySelector(".ant-pagination");
|
|
1035
1035
|
if (y) {
|
|
1036
|
-
const
|
|
1036
|
+
const H = new MutationObserver(() => {
|
|
1037
1037
|
g();
|
|
1038
1038
|
});
|
|
1039
|
-
return
|
|
1039
|
+
return H.observe(y, {
|
|
1040
1040
|
childList: !0,
|
|
1041
1041
|
subtree: !0,
|
|
1042
1042
|
attributes: !0,
|
|
1043
1043
|
attributeFilter: ["style", "class"]
|
|
1044
|
-
}),
|
|
1044
|
+
}), H;
|
|
1045
1045
|
}
|
|
1046
1046
|
return null;
|
|
1047
1047
|
}, B = () => {
|
|
@@ -1074,8 +1074,8 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1074
1074
|
}, k = () => {
|
|
1075
1075
|
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), p && p.disconnect(), l && clearTimeout(l), v && clearTimeout(v);
|
|
1076
1076
|
};
|
|
1077
|
-
return
|
|
1078
|
-
() =>
|
|
1077
|
+
return o && te(
|
|
1078
|
+
() => o,
|
|
1079
1079
|
() => {
|
|
1080
1080
|
setTimeout(() => {
|
|
1081
1081
|
g();
|
|
@@ -1090,7 +1090,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1090
1090
|
tableHeight: d,
|
|
1091
1091
|
calTableHeight: g
|
|
1092
1092
|
};
|
|
1093
|
-
},
|
|
1093
|
+
}, $o = /* @__PURE__ */ G({
|
|
1094
1094
|
name: "HbLibListPageContainer",
|
|
1095
1095
|
__name: "HbListPageContainer",
|
|
1096
1096
|
props: {
|
|
@@ -1103,16 +1103,16 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1103
1103
|
isUnFixTbHeight: { type: Boolean }
|
|
1104
1104
|
},
|
|
1105
1105
|
setup(e) {
|
|
1106
|
-
const
|
|
1106
|
+
const o = fe("globalCompConfig", {}), { isFullscreen: t } = xt(document.body), n = e, u = At("PageContainerRef"), d = z(() => n.offsetHeight || o.HbLibListPageContainer?.offsetHeight || 110), r = z(() => n.offsetBottom || o.HbLibListPageContainer?.offsetBottom || 20), p = z(() => n.minHeight || o.HbLibListPageContainer?.minHeight || 300), a = z(() => n.timeOut || o.HbLibListPageContainer?.timeOut || 100), l = z(() => n.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1107
1107
|
console.log(n.isUnFixTbHeight);
|
|
1108
|
-
const { calTableHeight: v, tableHeight: g } =
|
|
1108
|
+
const { calTableHeight: v, tableHeight: g } = Fo({
|
|
1109
1109
|
offsetBottom: r.value,
|
|
1110
1110
|
// 底部预留空间
|
|
1111
1111
|
minHeight: p.value,
|
|
1112
1112
|
// table最小高度 请勿随便修改!!
|
|
1113
1113
|
timeOut: a.value
|
|
1114
|
-
}), f =
|
|
1115
|
-
return
|
|
1114
|
+
}), f = z(() => g.value);
|
|
1115
|
+
return Lt("HB_LIST_PAGE_CONTAINER", {
|
|
1116
1116
|
PageContainerRef: u,
|
|
1117
1117
|
// 通过函数访问,
|
|
1118
1118
|
tableHeight: g,
|
|
@@ -1122,33 +1122,33 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1122
1122
|
ref_key: "PageContainerRef",
|
|
1123
1123
|
ref: u
|
|
1124
1124
|
}, [
|
|
1125
|
-
|
|
1125
|
+
j(B.$slots, "header"),
|
|
1126
1126
|
c("section", {
|
|
1127
1127
|
class: "list-page-box",
|
|
1128
1128
|
style: re(
|
|
1129
1129
|
l.value ? null : {
|
|
1130
|
-
"--hb-list-table-height": L(
|
|
1131
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" : L(
|
|
1130
|
+
"--hb-list-table-height": L(t) ? f.value - d.value + "px" : f.value - r.value + "px",
|
|
1131
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : L(t) ? f.value - d.value + "px" : f.value - r.value + "px"
|
|
1132
1132
|
}
|
|
1133
1133
|
)
|
|
1134
1134
|
}, [
|
|
1135
|
-
|
|
1135
|
+
j(B.$slots, "default")
|
|
1136
1136
|
], 4)
|
|
1137
1137
|
], 512));
|
|
1138
1138
|
}
|
|
1139
|
-
}),
|
|
1139
|
+
}), Io = oe($o), Mo = { style: { "font-weight": "500" } }, Do = {
|
|
1140
1140
|
key: 0,
|
|
1141
1141
|
class: "hb-lib-search-tag__description"
|
|
1142
|
-
},
|
|
1142
|
+
}, Bo = { class: "hb-lib-selector-dropdown" }, Ao = { class: "hb-lib-selector-search" }, Oo = { class: "hb-lib-selector-list" }, Eo = ["onClick"], zo = { class: "hb-lib-option-content" }, No = { class: "hb-lib-option-label" }, Ro = {
|
|
1143
1143
|
key: 0,
|
|
1144
1144
|
class: "hb-lib-selector-empty"
|
|
1145
|
-
},
|
|
1145
|
+
}, Po = {
|
|
1146
1146
|
key: 1,
|
|
1147
1147
|
class: "hb-lib-selector-footer"
|
|
1148
|
-
},
|
|
1148
|
+
}, Uo = { class: "hb-lib-footer-buttons" }, Vo = {
|
|
1149
1149
|
key: 2,
|
|
1150
1150
|
class: "hb-lib-selector-footer"
|
|
1151
|
-
}, Wo = { class: "hb-lib-footer-buttons" },
|
|
1151
|
+
}, Wo = { class: "hb-lib-footer-buttons" }, jo = /* @__PURE__ */ G({
|
|
1152
1152
|
name: "HbLibListMultiSelect",
|
|
1153
1153
|
__name: "HbListMultiSelect",
|
|
1154
1154
|
props: /* @__PURE__ */ Ve({
|
|
@@ -1168,12 +1168,12 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1168
1168
|
valueModifiers: {}
|
|
1169
1169
|
}),
|
|
1170
1170
|
emits: /* @__PURE__ */ Ve(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1171
|
-
setup(e, { emit:
|
|
1172
|
-
const
|
|
1173
|
-
if (
|
|
1171
|
+
setup(e, { emit: o }) {
|
|
1172
|
+
const t = e, n = o, u = Ct(e, "value"), d = E(!1), r = E(""), p = E([]), a = E(), l = z(() => {
|
|
1173
|
+
if (t.remoteSearch || !r.value) return t.options;
|
|
1174
1174
|
const S = r.value.toLowerCase();
|
|
1175
|
-
return
|
|
1176
|
-
}), v =
|
|
1175
|
+
return t.options.filter((_) => _.label.toLowerCase().includes(S) || _.description?.toLowerCase().includes(S));
|
|
1176
|
+
}), v = z(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"), g = z(() => l.value.length === 0 ? !1 : l.value.every((S) => p.value.includes(S.value))), f = z(() => {
|
|
1177
1177
|
if (l.value.length === 0) return !1;
|
|
1178
1178
|
const S = l.value.filter((_) => p.value.includes(_.value)).length;
|
|
1179
1179
|
return S > 0 && S < l.value.length;
|
|
@@ -1185,9 +1185,9 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1185
1185
|
},
|
|
1186
1186
|
{ immediate: !0 }
|
|
1187
1187
|
), te(
|
|
1188
|
-
() =>
|
|
1188
|
+
() => t.searchValue,
|
|
1189
1189
|
(S) => {
|
|
1190
|
-
|
|
1190
|
+
t.remoteSearch && S !== void 0 && (r.value = S);
|
|
1191
1191
|
},
|
|
1192
1192
|
{ immediate: !0 }
|
|
1193
1193
|
);
|
|
@@ -1198,16 +1198,16 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1198
1198
|
_ && _.focus();
|
|
1199
1199
|
}
|
|
1200
1200
|
}, 100));
|
|
1201
|
-
}, $ =
|
|
1201
|
+
}, $ = E([]), U = () => {
|
|
1202
1202
|
p.value = [...$.value], d.value = !1, n("cancel");
|
|
1203
|
-
}, D =
|
|
1204
|
-
const S =
|
|
1203
|
+
}, D = E([]), k = () => {
|
|
1204
|
+
const S = t.multiple ? p.value : p.value[0] || "", _ = t.options.filter((b) => p.value.includes(b.value));
|
|
1205
1205
|
D.value = _, console.log(S, _), $.value = [...p.value], u.value = S, n("update:value", S), n("change", S, _), n("confirm", S, _), d.value = !1;
|
|
1206
|
-
}, y =
|
|
1206
|
+
}, y = Zt((S) => {
|
|
1207
1207
|
const _ = S !== void 0 ? S : r.value;
|
|
1208
|
-
|
|
1209
|
-
}, 300),
|
|
1210
|
-
if (
|
|
1208
|
+
t.remoteSearch && (n("search", _), n("update:searchValue", _));
|
|
1209
|
+
}, 300), H = (S) => {
|
|
1210
|
+
if (t.multiple) {
|
|
1211
1211
|
const _ = new Set(p.value);
|
|
1212
1212
|
_.has(S.value) ? _.delete(S.value) : _.add(S.value), p.value = Array.from(_);
|
|
1213
1213
|
} else
|
|
@@ -1224,7 +1224,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
1226
|
return (S, _) => {
|
|
1227
|
-
const b = V("a-tag"), h = V("a-input"),
|
|
1227
|
+
const b = V("a-tag"), h = V("a-input"), x = V("a-checkbox"), O = V("a-radio"), K = V("a-button"), se = V("a-select");
|
|
1228
1228
|
return i(), T("div", X({
|
|
1229
1229
|
class: "hb-lib-selector-wrapper",
|
|
1230
1230
|
style: { "--prefix-width": v.value }
|
|
@@ -1247,30 +1247,30 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1247
1247
|
"data-prefix": e.prefix,
|
|
1248
1248
|
style: { width: "100%" }
|
|
1249
1249
|
}, {
|
|
1250
|
-
tagRender: s(({ value: M, label:
|
|
1250
|
+
tagRender: s(({ value: M, label: R, closable: ee, option: le }) => [
|
|
1251
1251
|
w(b, {
|
|
1252
1252
|
class: "hb-lib-search-tag",
|
|
1253
1253
|
onClick: _[0] || (_[0] = () => B(!0))
|
|
1254
1254
|
}, {
|
|
1255
1255
|
default: s(() => [
|
|
1256
|
-
c("span",
|
|
1257
|
-
le?.description ? (i(), T("span",
|
|
1256
|
+
c("span", Mo, C(R), 1),
|
|
1257
|
+
le?.description ? (i(), T("span", Do, " (" + C(le.description) + ") ", 1)) : N("", !0)
|
|
1258
1258
|
]),
|
|
1259
1259
|
_: 2
|
|
1260
1260
|
}, 1024)
|
|
1261
1261
|
]),
|
|
1262
1262
|
dropdownRender: s(({ menuNode: M }) => [
|
|
1263
|
-
c("div",
|
|
1264
|
-
c("div",
|
|
1263
|
+
c("div", Bo, [
|
|
1264
|
+
c("div", Ao, [
|
|
1265
1265
|
w(h, {
|
|
1266
1266
|
ref_key: "searchInputRef",
|
|
1267
1267
|
ref: a,
|
|
1268
1268
|
class: "hb-lib-selector-search-input",
|
|
1269
1269
|
value: r.value,
|
|
1270
|
-
"onUpdate:value": _[1] || (_[1] = (
|
|
1270
|
+
"onUpdate:value": _[1] || (_[1] = (R) => r.value = R),
|
|
1271
1271
|
placeholder: "请输入关键词搜索",
|
|
1272
1272
|
"allow-clear": "",
|
|
1273
|
-
onInput: _[2] || (_[2] = (
|
|
1273
|
+
onInput: _[2] || (_[2] = (R) => L(y)(R.target.value))
|
|
1274
1274
|
}, {
|
|
1275
1275
|
prefix: s(() => [
|
|
1276
1276
|
w(L(Be))
|
|
@@ -1278,33 +1278,33 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1278
1278
|
_: 1
|
|
1279
1279
|
}, 8, ["value"])
|
|
1280
1280
|
]),
|
|
1281
|
-
c("div",
|
|
1282
|
-
(i(!0), T(q, null, ie(l.value, (
|
|
1283
|
-
key:
|
|
1284
|
-
class: Y(["hb-lib-selector-option", { selected: p.value.includes(
|
|
1285
|
-
onClick: () =>
|
|
1281
|
+
c("div", Oo, [
|
|
1282
|
+
(i(!0), T(q, null, ie(l.value, (R) => (i(), T("div", {
|
|
1283
|
+
key: R.value,
|
|
1284
|
+
class: Y(["hb-lib-selector-option", { selected: p.value.includes(R.value) }]),
|
|
1285
|
+
onClick: () => H(R)
|
|
1286
1286
|
}, [
|
|
1287
|
-
e.multiple ? (i(),
|
|
1287
|
+
e.multiple ? (i(), P(x, {
|
|
1288
1288
|
key: 0,
|
|
1289
|
-
checked: p.value.includes(
|
|
1290
|
-
onChange: () =>
|
|
1289
|
+
checked: p.value.includes(R.value),
|
|
1290
|
+
onChange: () => H(R),
|
|
1291
1291
|
onClick: _[3] || (_[3] = $e(() => {
|
|
1292
1292
|
}, ["stop"]))
|
|
1293
|
-
}, null, 8, ["checked", "onChange"])) : (i(),
|
|
1293
|
+
}, null, 8, ["checked", "onChange"])) : (i(), P(O, {
|
|
1294
1294
|
key: 1,
|
|
1295
|
-
checked: p.value.includes(
|
|
1296
|
-
onChange: () =>
|
|
1295
|
+
checked: p.value.includes(R.value),
|
|
1296
|
+
onChange: () => H(R),
|
|
1297
1297
|
onClick: _[4] || (_[4] = $e(() => {
|
|
1298
1298
|
}, ["stop"]))
|
|
1299
1299
|
}, null, 8, ["checked", "onChange"])),
|
|
1300
|
-
c("div",
|
|
1301
|
-
c("div",
|
|
1300
|
+
c("div", zo, [
|
|
1301
|
+
c("div", No, C(R.label), 1)
|
|
1302
1302
|
])
|
|
1303
1303
|
], 10, Eo))), 128))
|
|
1304
1304
|
]),
|
|
1305
1305
|
l.value.length === 0 ? (i(), T("div", Ro, C(S.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : N("", !0),
|
|
1306
|
-
e.multiple ? (i(), T("div",
|
|
1307
|
-
w(
|
|
1306
|
+
e.multiple ? (i(), T("div", Po, [
|
|
1307
|
+
w(x, {
|
|
1308
1308
|
checked: g.value,
|
|
1309
1309
|
indeterminate: f.value,
|
|
1310
1310
|
onChange: F
|
|
@@ -1314,7 +1314,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 1
|
|
1316
1316
|
}, 8, ["checked", "indeterminate"]),
|
|
1317
|
-
c("div",
|
|
1317
|
+
c("div", Uo, [
|
|
1318
1318
|
w(K, {
|
|
1319
1319
|
size: "small",
|
|
1320
1320
|
onClick: U
|
|
@@ -1335,7 +1335,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1335
1335
|
_: 1
|
|
1336
1336
|
})
|
|
1337
1337
|
])
|
|
1338
|
-
])) : (i(), T("div",
|
|
1338
|
+
])) : (i(), T("div", Vo, [
|
|
1339
1339
|
_[6] || (_[6] = c("div", null, null, -1)),
|
|
1340
1340
|
c("div", Wo, [
|
|
1341
1341
|
w(K, {
|
|
@@ -1356,7 +1356,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1356
1356
|
], 16);
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
}),
|
|
1359
|
+
}), Yo = /* @__PURE__ */ Z(jo, [["__scopeId", "data-v-87177371"]]), qo = oe(Yo), Ko = { class: "hb-lib-form-item-filter-modal-search" }, Go = { class: "hb-lib-form-item-filter-modal-buttons" }, Jo = { key: 0 }, Qo = /* @__PURE__ */ G({
|
|
1360
1360
|
name: "HbLibMutilpleSelectModal",
|
|
1361
1361
|
__name: "HbMutilpleSelectModal",
|
|
1362
1362
|
props: {
|
|
@@ -1369,11 +1369,11 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1369
1369
|
labelKey: { default: "label" }
|
|
1370
1370
|
},
|
|
1371
1371
|
emits: ["handleConfirm", "handleCancel"],
|
|
1372
|
-
setup(e, { expose:
|
|
1373
|
-
const n = e, u =
|
|
1372
|
+
setup(e, { expose: o, emit: t }) {
|
|
1373
|
+
const n = e, u = t, d = E(!1), r = E(""), p = E(), a = E(), l = E([]), v = E([]), g = E(), f = Te({
|
|
1374
1374
|
searchText: "",
|
|
1375
1375
|
searchedColumn: ""
|
|
1376
|
-
}), B =
|
|
1376
|
+
}), B = z(() => n.tableData.map((b) => (b.id = b.id || Math.random(), b))), $ = z(() => n.tableColumn.map((b) => (b.customFilterDropdown && (b.onFilter = (h, x) => x[b.dataIndex].toString().toLowerCase().includes(h.toLowerCase()), b.onFilterDropdownVisibleChange = (h) => {
|
|
1377
1377
|
h && setTimeout(() => {
|
|
1378
1378
|
p.value?.focus();
|
|
1379
1379
|
}, 100);
|
|
@@ -1391,25 +1391,25 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1391
1391
|
});
|
|
1392
1392
|
}, y = () => {
|
|
1393
1393
|
l.value = [], v.value = [];
|
|
1394
|
-
},
|
|
1394
|
+
}, H = () => {
|
|
1395
1395
|
r.value = "", y();
|
|
1396
|
-
}, F = (b, h,
|
|
1397
|
-
h(), f.searchText = b[0], f.searchedColumn =
|
|
1396
|
+
}, F = (b, h, x) => {
|
|
1397
|
+
h(), f.searchText = b[0], f.searchedColumn = x;
|
|
1398
1398
|
}, S = (b, h) => {
|
|
1399
1399
|
b({ confirm: !0 }), f.searchText = "", h();
|
|
1400
1400
|
}, _ = (b, h) => {
|
|
1401
1401
|
l.value = b, v.value = h;
|
|
1402
1402
|
};
|
|
1403
|
-
return
|
|
1404
|
-
resetInputVal:
|
|
1403
|
+
return o({
|
|
1404
|
+
resetInputVal: H
|
|
1405
1405
|
}), (b, h) => {
|
|
1406
|
-
const
|
|
1406
|
+
const x = V("a-input"), O = V("a-button"), K = V("a-table"), se = V("a-modal");
|
|
1407
1407
|
return i(), T("div", {
|
|
1408
1408
|
class: "hb-lib-multipleSelectModal-box",
|
|
1409
1409
|
ref_key: "hbMultipSelectModalRef",
|
|
1410
1410
|
ref: a
|
|
1411
1411
|
}, [
|
|
1412
|
-
w(
|
|
1412
|
+
w(x, {
|
|
1413
1413
|
readonly: "",
|
|
1414
1414
|
onClick: k,
|
|
1415
1415
|
value: r.value,
|
|
@@ -1417,7 +1417,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1417
1417
|
placeholder: b.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1418
1418
|
}, {
|
|
1419
1419
|
addonAfter: s(() => [
|
|
1420
|
-
w(L(
|
|
1420
|
+
w(L(Jt), { onClick: k })
|
|
1421
1421
|
]),
|
|
1422
1422
|
_: 1
|
|
1423
1423
|
}, 8, ["value", "placeholder"]),
|
|
@@ -1461,18 +1461,18 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1461
1461
|
rowKey: (M) => M[e.tableKey],
|
|
1462
1462
|
scroll: { y: e.tableHeight }
|
|
1463
1463
|
}, {
|
|
1464
|
-
customFilterDropdown: s(({ setSelectedKeys: M, selectedKeys:
|
|
1465
|
-
c("div",
|
|
1466
|
-
w(
|
|
1464
|
+
customFilterDropdown: s(({ setSelectedKeys: M, selectedKeys: R, confirm: ee, clearFilters: le, column: ce }) => [
|
|
1465
|
+
c("div", Ko, [
|
|
1466
|
+
w(x, {
|
|
1467
1467
|
ref_key: "searchInput",
|
|
1468
1468
|
ref: p,
|
|
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) => M(ue.target.value ? [ue.target.value] : []),
|
|
1473
|
-
onPressEnter: (ue) => F(
|
|
1473
|
+
onPressEnter: (ue) => F(R, ee, ce.dataIndex)
|
|
1474
1474
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1475
|
-
c("section",
|
|
1475
|
+
c("section", Go, [
|
|
1476
1476
|
w(O, {
|
|
1477
1477
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1478
1478
|
type: "ghost",
|
|
@@ -1486,7 +1486,7 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1486
1486
|
w(O, {
|
|
1487
1487
|
type: "primary",
|
|
1488
1488
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1489
|
-
onClick: (ue) => F(
|
|
1489
|
+
onClick: (ue) => F(R, ee, ce.dataIndex)
|
|
1490
1490
|
}, {
|
|
1491
1491
|
default: s(() => [
|
|
1492
1492
|
A(C(b.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1501,8 +1501,8 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1501
1501
|
style: re({ color: M ? "#108ee9" : void 0 })
|
|
1502
1502
|
}, null, 8, ["style"])
|
|
1503
1503
|
]),
|
|
1504
|
-
bodyCell: s(({ text: M, column:
|
|
1505
|
-
f.searchText && f.searchedColumn ===
|
|
1504
|
+
bodyCell: s(({ text: M, column: R }) => [
|
|
1505
|
+
f.searchText && f.searchedColumn === R.dataIndex ? (i(), T("span", Jo, [
|
|
1506
1506
|
(i(!0), T(q, null, ie(M.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`, "i")), (ee, le) => (i(), T(q, null, [
|
|
1507
1507
|
ee.toLowerCase() === f.searchText.toLowerCase() ? (i(), T("mark", {
|
|
1508
1508
|
key: le,
|
|
@@ -1521,13 +1521,13 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1521
1521
|
], 512);
|
|
1522
1522
|
};
|
|
1523
1523
|
}
|
|
1524
|
-
}),
|
|
1524
|
+
}), Zo = oe(Qo), Xo = { class: "hb-lib-table-act-box" }, el = ["onClick"], tl = {
|
|
1525
1525
|
href: "javascript:;",
|
|
1526
1526
|
class: "hb-lib-table-main-action"
|
|
1527
|
-
},
|
|
1527
|
+
}, ol = ["onClick"], ll = {
|
|
1528
1528
|
href: "javascript:;",
|
|
1529
1529
|
class: "hb-lib-table-more-action"
|
|
1530
|
-
},
|
|
1530
|
+
}, al = ["onClick"], nl = { href: "javascript:;" }, il = ["onClick"], sl = { class: "hb-lib-table-confirm-modal-content" }, rl = /* @__PURE__ */ G({
|
|
1531
1531
|
name: "HbLibTableAct",
|
|
1532
1532
|
__name: "HbTableAct",
|
|
1533
1533
|
props: {
|
|
@@ -1536,18 +1536,18 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1536
1536
|
record: {},
|
|
1537
1537
|
buttonDisplaysQuantity: {}
|
|
1538
1538
|
},
|
|
1539
|
-
setup(e, { expose:
|
|
1540
|
-
const
|
|
1539
|
+
setup(e, { expose: o }) {
|
|
1540
|
+
const t = e, { t: n } = de(), u = E(!1), d = E(!1), r = E(null), p = z(() => t.actions.filter((D) => D.condition !== void 0 ? D.condition : !0)), a = z(() => p.value.slice(0, t.buttonDisplaysQuantity)), l = z(() => v(p.value.slice(t.buttonDisplaysQuantity)));
|
|
1541
1541
|
function v(D) {
|
|
1542
|
-
if (
|
|
1543
|
-
return
|
|
1542
|
+
if (t.filterPermission)
|
|
1543
|
+
return t.filterPermission(D);
|
|
1544
1544
|
let k = [], y = [];
|
|
1545
|
-
return k = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(k) || D.length === 0 ? (k = [], []) : (k = k.filter((
|
|
1546
|
-
(!
|
|
1545
|
+
return k = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(k) || D.length === 0 ? (k = [], []) : (k = k.filter((H) => H.type != "2"), D.forEach((H) => {
|
|
1546
|
+
(!H.permissionsTag || k.findIndex((F) => F.action === H.permissionsTag) !== -1) && y.push(H);
|
|
1547
1547
|
}), y);
|
|
1548
1548
|
}
|
|
1549
1549
|
const g = (D) => {
|
|
1550
|
-
D.handler && D.handler(
|
|
1550
|
+
D.handler && D.handler(t.record);
|
|
1551
1551
|
}, f = (D) => {
|
|
1552
1552
|
r.value = D, u.value = !0;
|
|
1553
1553
|
}, B = () => {
|
|
@@ -1561,23 +1561,23 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
}, $ = () => {
|
|
1563
1563
|
u.value = !1, r.value = null;
|
|
1564
|
-
}, U =
|
|
1564
|
+
}, U = z(() => r.value ? {
|
|
1565
1565
|
title: r.value.confirmTitle,
|
|
1566
1566
|
content: r.value.confirmContent || r.value.confirmTitle
|
|
1567
1567
|
} : {
|
|
1568
1568
|
title: n("hbLibComp.hbTableAct.secendConfirm"),
|
|
1569
1569
|
content: n("hbLibComp.hbTableAct.confirmContent")
|
|
1570
1570
|
});
|
|
1571
|
-
return
|
|
1571
|
+
return o({
|
|
1572
1572
|
ADropdown: bt,
|
|
1573
1573
|
AMenu: ut,
|
|
1574
1574
|
AMenuItem: dt,
|
|
1575
|
-
APopconfirm:
|
|
1576
|
-
AModal:
|
|
1575
|
+
APopconfirm: Pe,
|
|
1576
|
+
AModal: We,
|
|
1577
1577
|
DownOutlined: Ke
|
|
1578
1578
|
}), (D, k) => {
|
|
1579
|
-
const y = V("a-divider"),
|
|
1580
|
-
return i(), T("div",
|
|
1579
|
+
const y = V("a-divider"), H = kt("has");
|
|
1580
|
+
return i(), T("div", Xo, [
|
|
1581
1581
|
(i(!0), T(q, null, ie(a.value, (F, S) => (i(), T(q, { key: S }, [
|
|
1582
1582
|
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1583
1583
|
F.confirmType === "modal" ? (i(), T(q, { key: 0 }, [
|
|
@@ -1587,35 +1587,35 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1587
1587
|
class: "hb-lib-table-main-action"
|
|
1588
1588
|
}, [
|
|
1589
1589
|
A(C(F.label), 1)
|
|
1590
|
-
], 8,
|
|
1591
|
-
[
|
|
1590
|
+
], 8, el)), [
|
|
1591
|
+
[H, F.permissionsTag || null]
|
|
1592
1592
|
]),
|
|
1593
|
-
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(),
|
|
1593
|
+
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(), P(y, {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
type: "vertical"
|
|
1596
1596
|
})) : N("", !0)
|
|
1597
1597
|
], 64)) : (i(), T(q, { key: 1 }, [
|
|
1598
|
-
w(L(
|
|
1598
|
+
w(L(Pe), {
|
|
1599
1599
|
title: F.confirmTitle,
|
|
1600
1600
|
onConfirm: (_) => g(F)
|
|
1601
1601
|
}, {
|
|
1602
1602
|
default: s(() => [
|
|
1603
|
-
be((i(), T("a",
|
|
1603
|
+
be((i(), T("a", tl, [
|
|
1604
1604
|
A(C(F.label), 1)
|
|
1605
1605
|
])), [
|
|
1606
|
-
[
|
|
1606
|
+
[H, F.permissionsTag || null]
|
|
1607
1607
|
])
|
|
1608
1608
|
]),
|
|
1609
1609
|
_: 2
|
|
1610
1610
|
}, 1032, ["title", "onConfirm"]),
|
|
1611
|
-
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(),
|
|
1611
|
+
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(), P(y, {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
type: "vertical"
|
|
1614
1614
|
})) : N("", !0)
|
|
1615
1615
|
], 64))
|
|
1616
1616
|
], 64)) : F.slot ? (i(), T(q, { key: 1 }, [
|
|
1617
|
-
|
|
1618
|
-
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(),
|
|
1617
|
+
j(D.$slots, F.slot, { item: F }, void 0, !0),
|
|
1618
|
+
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(), P(y, {
|
|
1619
1619
|
key: 0,
|
|
1620
1620
|
type: "vertical"
|
|
1621
1621
|
})) : N("", !0)
|
|
@@ -1626,22 +1626,22 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1626
1626
|
class: "hb-lib-table-main-action"
|
|
1627
1627
|
}, [
|
|
1628
1628
|
A(C(F.label), 1)
|
|
1629
|
-
], 8,
|
|
1630
|
-
[
|
|
1629
|
+
], 8, ol)), [
|
|
1630
|
+
[H, F.permissionsTag || null]
|
|
1631
1631
|
]),
|
|
1632
|
-
l.value && l.value.length > 0 || S !== a.value.length - 1 ? be((i(),
|
|
1632
|
+
l.value && l.value.length > 0 || S !== a.value.length - 1 ? be((i(), P(y, {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
type: "vertical"
|
|
1635
1635
|
}, null, 512)), [
|
|
1636
|
-
[
|
|
1636
|
+
[H, F.permissionsTag || null]
|
|
1637
1637
|
]) : N("", !0)
|
|
1638
1638
|
], 64))
|
|
1639
1639
|
], 64))), 128)),
|
|
1640
|
-
l.value && l.value.length > 0 ? (i(),
|
|
1640
|
+
l.value && l.value.length > 0 ? (i(), P(L(bt), { key: 0 }, {
|
|
1641
1641
|
overlay: s(() => [
|
|
1642
1642
|
w(L(ut), null, {
|
|
1643
1643
|
default: s(() => [
|
|
1644
|
-
(i(!0), T(q, null, ie(l.value, (F, S) => be((i(),
|
|
1644
|
+
(i(!0), T(q, null, ie(l.value, (F, S) => be((i(), P(L(dt), { key: S }, {
|
|
1645
1645
|
default: s(() => [
|
|
1646
1646
|
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1647
1647
|
F.confirmType === "modal" ? be((i(), T("a", {
|
|
@@ -1650,23 +1650,23 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1650
1650
|
onClick: (_) => f(F)
|
|
1651
1651
|
}, [
|
|
1652
1652
|
A(C(F.label), 1)
|
|
1653
|
-
], 8,
|
|
1654
|
-
[
|
|
1655
|
-
]) : be((i(),
|
|
1653
|
+
], 8, al)), [
|
|
1654
|
+
[H, F.permissionsTag || null]
|
|
1655
|
+
]) : be((i(), P(L(Pe), {
|
|
1656
1656
|
key: 1,
|
|
1657
1657
|
title: F.confirmTitle,
|
|
1658
1658
|
onConfirm: (_) => g(F)
|
|
1659
1659
|
}, {
|
|
1660
1660
|
default: s(() => [
|
|
1661
|
-
be((i(), T("a",
|
|
1661
|
+
be((i(), T("a", nl, [
|
|
1662
1662
|
A(C(F.label), 1)
|
|
1663
1663
|
])), [
|
|
1664
|
-
[
|
|
1664
|
+
[H, F.permissionsTag || null]
|
|
1665
1665
|
])
|
|
1666
1666
|
]),
|
|
1667
1667
|
_: 2
|
|
1668
1668
|
}, 1032, ["title", "onConfirm"])), [
|
|
1669
|
-
[
|
|
1669
|
+
[H, F.permissionsTag || null]
|
|
1670
1670
|
])
|
|
1671
1671
|
], 64)) : be((i(), T("a", {
|
|
1672
1672
|
key: 1,
|
|
@@ -1674,27 +1674,27 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1674
1674
|
onClick: (_) => g(F)
|
|
1675
1675
|
}, [
|
|
1676
1676
|
A(C(F.label), 1)
|
|
1677
|
-
], 8,
|
|
1678
|
-
[
|
|
1677
|
+
], 8, il)), [
|
|
1678
|
+
[H, F.permissionsTag || null]
|
|
1679
1679
|
])
|
|
1680
1680
|
]),
|
|
1681
1681
|
_: 2
|
|
1682
1682
|
}, 1024)), [
|
|
1683
|
-
[
|
|
1683
|
+
[H, F.permissionsTag || null]
|
|
1684
1684
|
])), 128))
|
|
1685
1685
|
]),
|
|
1686
1686
|
_: 1
|
|
1687
1687
|
})
|
|
1688
1688
|
]),
|
|
1689
1689
|
default: s(() => [
|
|
1690
|
-
c("a",
|
|
1690
|
+
c("a", ll, [
|
|
1691
1691
|
A(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1692
1692
|
w(L(Ke), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1693
1693
|
])
|
|
1694
1694
|
]),
|
|
1695
1695
|
_: 1
|
|
1696
1696
|
})) : N("", !0),
|
|
1697
|
-
w(L(
|
|
1697
|
+
w(L(We), {
|
|
1698
1698
|
visible: u.value,
|
|
1699
1699
|
title: U.value.title,
|
|
1700
1700
|
"confirm-loading": d.value,
|
|
@@ -1702,95 +1702,95 @@ const ao = "hb-", Ze = (e = "") => {
|
|
|
1702
1702
|
onCancel: $
|
|
1703
1703
|
}, {
|
|
1704
1704
|
default: s(() => [
|
|
1705
|
-
c("p",
|
|
1705
|
+
c("p", sl, C(U.value.content), 1)
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 1
|
|
1708
1708
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1709
1709
|
]);
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
|
-
}),
|
|
1713
|
-
const
|
|
1714
|
-
return !
|
|
1712
|
+
}), cl = /* @__PURE__ */ Z(rl, [["__scopeId", "data-v-25fd055e"]]), dl = oe(cl), ft = (e) => ({ tableWidth: z(() => {
|
|
1713
|
+
const t = Array.isArray(e) ? e : e.value;
|
|
1714
|
+
return !t || t.length === 0 ? 0 : t.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, u) => n + u, 0);
|
|
1715
1715
|
}) });
|
|
1716
|
-
var
|
|
1717
|
-
function
|
|
1718
|
-
var
|
|
1716
|
+
var ul = typeof global == "object" && global && global.Object === Object && global, bl = typeof self == "object" && self && self.Object === Object && self, Ft = ul || bl || Function("return this")(), Ae = Ft.Symbol, $t = Object.prototype, fl = $t.hasOwnProperty, pl = $t.toString, Ce = Ae ? Ae.toStringTag : void 0;
|
|
1717
|
+
function hl(e) {
|
|
1718
|
+
var o = fl.call(e, Ce), t = e[Ce];
|
|
1719
1719
|
try {
|
|
1720
1720
|
e[Ce] = void 0;
|
|
1721
1721
|
var n = !0;
|
|
1722
1722
|
} catch {
|
|
1723
1723
|
}
|
|
1724
|
-
var u =
|
|
1725
|
-
return n && (
|
|
1724
|
+
var u = pl.call(e);
|
|
1725
|
+
return n && (o ? e[Ce] = t : delete e[Ce]), u;
|
|
1726
1726
|
}
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1729
|
-
return
|
|
1727
|
+
var ml = Object.prototype, vl = ml.toString;
|
|
1728
|
+
function gl(e) {
|
|
1729
|
+
return vl.call(e);
|
|
1730
1730
|
}
|
|
1731
|
-
var
|
|
1732
|
-
function
|
|
1733
|
-
return e == null ? e === void 0 ?
|
|
1731
|
+
var yl = "[object Null]", _l = "[object Undefined]", pt = Ae ? Ae.toStringTag : void 0;
|
|
1732
|
+
function Ll(e) {
|
|
1733
|
+
return e == null ? e === void 0 ? _l : yl : pt && pt in Object(e) ? hl(e) : gl(e);
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function Cl(e) {
|
|
1736
1736
|
return e != null && typeof e == "object";
|
|
1737
1737
|
}
|
|
1738
|
-
var
|
|
1739
|
-
function
|
|
1740
|
-
return typeof e == "symbol" ||
|
|
1738
|
+
var kl = "[object Symbol]";
|
|
1739
|
+
function Sl(e) {
|
|
1740
|
+
return typeof e == "symbol" || Cl(e) && Ll(e) == kl;
|
|
1741
1741
|
}
|
|
1742
|
-
var
|
|
1743
|
-
function
|
|
1744
|
-
for (var
|
|
1742
|
+
var Tl = /\s/;
|
|
1743
|
+
function wl(e) {
|
|
1744
|
+
for (var o = e.length; o-- && Tl.test(e.charAt(o)); )
|
|
1745
1745
|
;
|
|
1746
|
-
return
|
|
1746
|
+
return o;
|
|
1747
1747
|
}
|
|
1748
1748
|
var Hl = /^\s+/;
|
|
1749
|
-
function
|
|
1750
|
-
return e && e.slice(0,
|
|
1749
|
+
function xl(e) {
|
|
1750
|
+
return e && e.slice(0, wl(e) + 1).replace(Hl, "");
|
|
1751
1751
|
}
|
|
1752
1752
|
function Ge(e) {
|
|
1753
|
-
var
|
|
1754
|
-
return e != null && (
|
|
1753
|
+
var o = typeof e;
|
|
1754
|
+
return e != null && (o == "object" || o == "function");
|
|
1755
1755
|
}
|
|
1756
|
-
var ht = NaN,
|
|
1756
|
+
var ht = NaN, Fl = /^[-+]0x[0-9a-f]+$/i, $l = /^0b[01]+$/i, Il = /^0o[0-7]+$/i, Ml = parseInt;
|
|
1757
1757
|
function mt(e) {
|
|
1758
1758
|
if (typeof e == "number")
|
|
1759
1759
|
return e;
|
|
1760
|
-
if (
|
|
1760
|
+
if (Sl(e))
|
|
1761
1761
|
return ht;
|
|
1762
1762
|
if (Ge(e)) {
|
|
1763
|
-
var
|
|
1764
|
-
e = Ge(
|
|
1763
|
+
var o = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1764
|
+
e = Ge(o) ? o + "" : o;
|
|
1765
1765
|
}
|
|
1766
1766
|
if (typeof e != "string")
|
|
1767
1767
|
return e === 0 ? e : +e;
|
|
1768
|
-
e =
|
|
1769
|
-
var
|
|
1770
|
-
return
|
|
1768
|
+
e = xl(e);
|
|
1769
|
+
var t = $l.test(e);
|
|
1770
|
+
return t || Il.test(e) ? Ml(e.slice(2), t ? 2 : 8) : Fl.test(e) ? ht : +e;
|
|
1771
1771
|
}
|
|
1772
1772
|
var Ue = function() {
|
|
1773
|
-
return
|
|
1774
|
-
},
|
|
1775
|
-
function
|
|
1773
|
+
return Ft.Date.now();
|
|
1774
|
+
}, Dl = "Expected a function", Bl = Math.max, Al = Math.min;
|
|
1775
|
+
function It(e, o, t) {
|
|
1776
1776
|
var n, u, d, r, p, a, l = 0, v = !1, g = !1, f = !0;
|
|
1777
1777
|
if (typeof e != "function")
|
|
1778
|
-
throw new TypeError(
|
|
1779
|
-
|
|
1778
|
+
throw new TypeError(Dl);
|
|
1779
|
+
o = mt(o) || 0, Ge(t) && (v = !!t.leading, g = "maxWait" in t, d = g ? Bl(mt(t.maxWait) || 0, o) : d, f = "trailing" in t ? !!t.trailing : f);
|
|
1780
1780
|
function B(_) {
|
|
1781
1781
|
var b = n, h = u;
|
|
1782
1782
|
return n = u = void 0, l = _, r = e.apply(h, b), r;
|
|
1783
1783
|
}
|
|
1784
1784
|
function $(_) {
|
|
1785
|
-
return l = _, p = setTimeout(k,
|
|
1785
|
+
return l = _, p = setTimeout(k, o), v ? B(_) : r;
|
|
1786
1786
|
}
|
|
1787
1787
|
function U(_) {
|
|
1788
|
-
var b = _ - a, h = _ - l,
|
|
1789
|
-
return g ?
|
|
1788
|
+
var b = _ - a, h = _ - l, x = o - b;
|
|
1789
|
+
return g ? Al(x, d - h) : x;
|
|
1790
1790
|
}
|
|
1791
1791
|
function D(_) {
|
|
1792
1792
|
var b = _ - a, h = _ - l;
|
|
1793
|
-
return a === void 0 || b >=
|
|
1793
|
+
return a === void 0 || b >= o || b < 0 || g && h >= d;
|
|
1794
1794
|
}
|
|
1795
1795
|
function k() {
|
|
1796
1796
|
var _ = Ue();
|
|
@@ -1801,7 +1801,7 @@ function Mt(e, t, o) {
|
|
|
1801
1801
|
function y(_) {
|
|
1802
1802
|
return p = void 0, f && n ? B(_) : (n = u = void 0, r);
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function H() {
|
|
1805
1805
|
p !== void 0 && clearTimeout(p), l = 0, n = a = u = p = void 0;
|
|
1806
1806
|
}
|
|
1807
1807
|
function F() {
|
|
@@ -1813,16 +1813,16 @@ function Mt(e, t, o) {
|
|
|
1813
1813
|
if (p === void 0)
|
|
1814
1814
|
return $(a);
|
|
1815
1815
|
if (g)
|
|
1816
|
-
return clearTimeout(p), p = setTimeout(k,
|
|
1816
|
+
return clearTimeout(p), p = setTimeout(k, o), B(a);
|
|
1817
1817
|
}
|
|
1818
|
-
return p === void 0 && (p = setTimeout(k,
|
|
1818
|
+
return p === void 0 && (p = setTimeout(k, o)), r;
|
|
1819
1819
|
}
|
|
1820
|
-
return S.cancel =
|
|
1820
|
+
return S.cancel = H, S.flush = F, S;
|
|
1821
1821
|
}
|
|
1822
|
-
const
|
|
1822
|
+
const Ol = {
|
|
1823
1823
|
key: 0,
|
|
1824
1824
|
class: "hb-lib-list-table-act"
|
|
1825
|
-
}, El = { class: "empty-container" },
|
|
1825
|
+
}, El = { class: "empty-container" }, zl = { key: 1 }, Nl = { key: 2 }, Rl = /* @__PURE__ */ G({
|
|
1826
1826
|
name: "HbLibListTable",
|
|
1827
1827
|
__name: "HbListTable",
|
|
1828
1828
|
props: {
|
|
@@ -1833,16 +1833,16 @@ const zl = {
|
|
|
1833
1833
|
isFixTbHeight: { type: Boolean }
|
|
1834
1834
|
},
|
|
1835
1835
|
emits: ["change", "resizeCol"],
|
|
1836
|
-
setup(e, { emit:
|
|
1837
|
-
const
|
|
1836
|
+
setup(e, { emit: o }) {
|
|
1837
|
+
const t = fe("globalCompConfig", {}), n = o, { t: u } = de(), d = e, r = E([]), p = fe("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = ft(r), l = E(a.value), v = z(() => d.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1838
1838
|
te(
|
|
1839
1839
|
() => d.columns,
|
|
1840
1840
|
(k) => {
|
|
1841
1841
|
const y = k.filter((F) => F != null && F.checked);
|
|
1842
1842
|
r.value = y.map((F) => {
|
|
1843
|
-
let S = { ...F, title: F.title || F.label, align: F.align ||
|
|
1843
|
+
let S = { ...F, title: F.title || F.label, align: F.align || t.listTable?.align || "center" };
|
|
1844
1844
|
S.ellipsis && !S.needTooltip && (S.needTooltip = !0);
|
|
1845
|
-
let _ = d.defaultWidth ||
|
|
1845
|
+
let _ = d.defaultWidth || t.listTable?.defaultColWidth || 150;
|
|
1846
1846
|
if (!S.width)
|
|
1847
1847
|
S.width = _;
|
|
1848
1848
|
else if (typeof S.width == "string") {
|
|
@@ -1851,35 +1851,35 @@ const zl = {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return S.resizable === void 0 && (S.resizable = !0), S;
|
|
1853
1853
|
});
|
|
1854
|
-
const { tableWidth:
|
|
1855
|
-
l.value =
|
|
1854
|
+
const { tableWidth: H } = ft(r);
|
|
1855
|
+
l.value = H.value;
|
|
1856
1856
|
},
|
|
1857
1857
|
{
|
|
1858
1858
|
immediate: !0,
|
|
1859
1859
|
deep: !0
|
|
1860
1860
|
}
|
|
1861
1861
|
);
|
|
1862
|
-
const g =
|
|
1862
|
+
const g = It(() => {
|
|
1863
1863
|
n("resizeCol", r);
|
|
1864
|
-
},
|
|
1864
|
+
}, t.listTable?.colSaveTimeOut || 800), f = (k, y) => {
|
|
1865
1865
|
if (y) {
|
|
1866
|
-
const
|
|
1867
|
-
y.width = isNaN(
|
|
1866
|
+
const H = typeof k == "string" ? parseInt(k, 10) : k;
|
|
1867
|
+
y.width = isNaN(H) ? t.listTable?.defaultColWidth || 150 : H, Le(() => {
|
|
1868
1868
|
g();
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
}, B = (k, y,
|
|
1872
|
-
k?.current && n("change", k, y,
|
|
1873
|
-
}, $ = (k, y = "YYYY-MM-DD HH:mm:ss") => k ? Oe(k).format(y) : "", U = (k, y) => k && y[k] || "", D = (k, y =
|
|
1871
|
+
}, B = (k, y, H) => {
|
|
1872
|
+
k?.current && n("change", k, y, H);
|
|
1873
|
+
}, $ = (k, y = "YYYY-MM-DD HH:mm:ss") => k ? Oe(k).format(y) : "", U = (k, y) => k && y[k] || "", D = (k, y = t.listTable?.ellipsisNumber || 20) => k ? k.length > y ? `${k.substring(0, y)}...` : k : "";
|
|
1874
1874
|
return (k, y) => {
|
|
1875
|
-
const
|
|
1875
|
+
const H = V("a-empty"), F = V("a-tooltip"), S = V("HbLibCopy"), _ = V("a-tag"), b = V("a-table");
|
|
1876
1876
|
return i(), T("div", {
|
|
1877
1877
|
class: Y(["hb-lib-list-table", { "nowrap-table": d.rowHeight }]),
|
|
1878
1878
|
style: re({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1879
1879
|
}, [
|
|
1880
|
-
k.$slots.tableActLeft ? (i(), T("section",
|
|
1881
|
-
|
|
1882
|
-
|
|
1880
|
+
k.$slots.tableActLeft ? (i(), T("section", Ol, [
|
|
1881
|
+
j(k.$slots, "tableActLeft", {}, void 0, !0),
|
|
1882
|
+
j(k.$slots, "tableActRight", {}, void 0, !0)
|
|
1883
1883
|
])) : N("", !0),
|
|
1884
1884
|
w(b, X(k.$attrs, {
|
|
1885
1885
|
bordered: "",
|
|
@@ -1893,7 +1893,7 @@ const zl = {
|
|
|
1893
1893
|
}), ke({
|
|
1894
1894
|
emptyText: s(() => [
|
|
1895
1895
|
c("div", El, [
|
|
1896
|
-
w(
|
|
1896
|
+
w(H, {
|
|
1897
1897
|
description: L(u)("hbLibComp.hbListTable.noData")
|
|
1898
1898
|
}, null, 8, ["description"])
|
|
1899
1899
|
])
|
|
@@ -1903,7 +1903,7 @@ const zl = {
|
|
|
1903
1903
|
k.$slots.headerCell ? {
|
|
1904
1904
|
name: "headerCell",
|
|
1905
1905
|
fn: s(({ column: h }) => [
|
|
1906
|
-
|
|
1906
|
+
j(k.$slots, "headerCell", {
|
|
1907
1907
|
column: h,
|
|
1908
1908
|
title: h.title
|
|
1909
1909
|
}, () => [
|
|
@@ -1914,54 +1914,54 @@ const zl = {
|
|
|
1914
1914
|
} : void 0,
|
|
1915
1915
|
k.$slots.bodyCell ? {
|
|
1916
1916
|
name: "bodyCell",
|
|
1917
|
-
fn: s(({ column: h, record:
|
|
1918
|
-
|
|
1917
|
+
fn: s(({ column: h, record: x, index: O, text: K }) => [
|
|
1918
|
+
j(k.$slots, "bodyCell", {
|
|
1919
1919
|
column: h,
|
|
1920
|
-
record:
|
|
1920
|
+
record: x,
|
|
1921
1921
|
index: O,
|
|
1922
1922
|
text: K
|
|
1923
1923
|
}, void 0, !0),
|
|
1924
|
-
h && h.needTooltip && !h.needCopy ? (i(),
|
|
1924
|
+
h && h.needTooltip && !h.needCopy ? (i(), P(F, {
|
|
1925
1925
|
key: 0,
|
|
1926
1926
|
placement: e.tooltipPlacement
|
|
1927
1927
|
}, {
|
|
1928
1928
|
title: s(() => [
|
|
1929
|
-
A(C(
|
|
1929
|
+
A(C(x[h.dataIndex]), 1)
|
|
1930
1930
|
]),
|
|
1931
1931
|
default: s(() => [
|
|
1932
|
-
A(" " + C(
|
|
1932
|
+
A(" " + C(x[h.dataIndex]), 1)
|
|
1933
1933
|
]),
|
|
1934
1934
|
_: 2
|
|
1935
|
-
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), T("div",
|
|
1936
|
-
A(C(
|
|
1935
|
+
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), T("div", zl, [
|
|
1936
|
+
A(C(x[h.dataIndex]) + " ", 1),
|
|
1937
1937
|
w(S, {
|
|
1938
|
-
"cp-text":
|
|
1938
|
+
"cp-text": x[h.dataIndex],
|
|
1939
1939
|
style: { position: "relative" }
|
|
1940
1940
|
}, null, 8, ["cp-text"])
|
|
1941
1941
|
])) : N("", !0),
|
|
1942
|
-
h && h.needTooltip && h.needCopy ? (i(), T("div",
|
|
1942
|
+
h && h.needTooltip && h.needCopy ? (i(), T("div", Nl, [
|
|
1943
1943
|
w(F, { placement: e.tooltipPlacement }, {
|
|
1944
1944
|
title: s(() => [
|
|
1945
|
-
A(C(
|
|
1945
|
+
A(C(x[h.dataIndex]), 1)
|
|
1946
1946
|
]),
|
|
1947
1947
|
default: s(() => [
|
|
1948
|
-
A(" " + C(D(
|
|
1948
|
+
A(" " + C(D(x[h.dataIndex], h.strLen)), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["placement"]),
|
|
1952
1952
|
w(S, {
|
|
1953
|
-
"cp-text":
|
|
1953
|
+
"cp-text": x[h.dataIndex],
|
|
1954
1954
|
style: { position: "relative" }
|
|
1955
1955
|
}, null, 8, ["cp-text"])
|
|
1956
1956
|
])) : h && h.needFormat ? (i(), T(q, { key: 3 }, [
|
|
1957
|
-
A(C($(
|
|
1957
|
+
A(C($(x[h.dataIndex], h.format)), 1)
|
|
1958
1958
|
], 64)) : h && h.tags ? (i(), T(q, { key: 4 }, [
|
|
1959
|
-
U(
|
|
1959
|
+
U(x[h.dataIndex], h.tags) ? (i(), P(_, {
|
|
1960
1960
|
key: 0,
|
|
1961
|
-
color: U(
|
|
1961
|
+
color: U(x[h.dataIndex], h.tags)
|
|
1962
1962
|
}, {
|
|
1963
1963
|
default: s(() => [
|
|
1964
|
-
A(C(
|
|
1964
|
+
A(C(x[h.dataIndex]), 1)
|
|
1965
1965
|
]),
|
|
1966
1966
|
_: 2
|
|
1967
1967
|
}, 1032, ["color"])) : N("", !0)
|
|
@@ -1971,10 +1971,10 @@ const zl = {
|
|
|
1971
1971
|
} : void 0,
|
|
1972
1972
|
k.$slots.expandedRowRender ? {
|
|
1973
1973
|
name: "expandedRowRender",
|
|
1974
|
-
fn: s(({ record: h, index:
|
|
1975
|
-
|
|
1974
|
+
fn: s(({ record: h, index: x }) => [
|
|
1975
|
+
j(k.$slots, "expandedRowRender", {
|
|
1976
1976
|
record: h,
|
|
1977
|
-
index:
|
|
1977
|
+
index: x
|
|
1978
1978
|
}, void 0, !0)
|
|
1979
1979
|
]),
|
|
1980
1980
|
key: "2"
|
|
@@ -1982,23 +1982,23 @@ const zl = {
|
|
|
1982
1982
|
k.$slots.customFilterDropdown ? {
|
|
1983
1983
|
name: "customFilterDropdown",
|
|
1984
1984
|
fn: s(({ column: h }) => [
|
|
1985
|
-
|
|
1985
|
+
j(k.$slots, "customFilterDropdown", { column: h }, void 0, !0)
|
|
1986
1986
|
]),
|
|
1987
1987
|
key: "3"
|
|
1988
1988
|
} : void 0,
|
|
1989
1989
|
k.$slots.customFilterIcon ? {
|
|
1990
1990
|
name: "customFilterIcon",
|
|
1991
1991
|
fn: s(({ column: h }) => [
|
|
1992
|
-
|
|
1992
|
+
j(k.$slots, "customFilterIcon", { column: h }, void 0, !0)
|
|
1993
1993
|
]),
|
|
1994
1994
|
key: "4"
|
|
1995
1995
|
} : void 0,
|
|
1996
1996
|
k.$slots.expandIcon ? {
|
|
1997
1997
|
name: "expandIcon",
|
|
1998
|
-
fn: s(({ expanded: h, record:
|
|
1999
|
-
|
|
1998
|
+
fn: s(({ expanded: h, record: x, index: O }) => [
|
|
1999
|
+
j(k.$slots, "expandIcon", {
|
|
2000
2000
|
expanded: h,
|
|
2001
|
-
record:
|
|
2001
|
+
record: x,
|
|
2002
2002
|
index: O
|
|
2003
2003
|
}, void 0, !0)
|
|
2004
2004
|
]),
|
|
@@ -2007,21 +2007,21 @@ const zl = {
|
|
|
2007
2007
|
k.$slots.footer ? {
|
|
2008
2008
|
name: "footer",
|
|
2009
2009
|
fn: s(() => [
|
|
2010
|
-
|
|
2010
|
+
j(k.$slots, "footer", {}, void 0, !0)
|
|
2011
2011
|
]),
|
|
2012
2012
|
key: "6"
|
|
2013
2013
|
} : void 0,
|
|
2014
2014
|
k.$slots.summary ? {
|
|
2015
2015
|
name: "summary",
|
|
2016
2016
|
fn: s(() => [
|
|
2017
|
-
|
|
2017
|
+
j(k.$slots, "summary", {}, void 0, !0)
|
|
2018
2018
|
]),
|
|
2019
2019
|
key: "7"
|
|
2020
2020
|
} : void 0,
|
|
2021
2021
|
k.$slots.title ? {
|
|
2022
2022
|
name: "title",
|
|
2023
2023
|
fn: s(() => [
|
|
2024
|
-
|
|
2024
|
+
j(k.$slots, "title", {}, void 0, !0)
|
|
2025
2025
|
]),
|
|
2026
2026
|
key: "8"
|
|
2027
2027
|
} : void 0
|
|
@@ -2029,16 +2029,16 @@ const zl = {
|
|
|
2029
2029
|
], 6);
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
}),
|
|
2032
|
+
}), Pl = /* @__PURE__ */ Z(Rl, [["__scopeId", "data-v-4a8b9aaa"]]), Ul = oe(Pl), Vl = { class: "hb-lib-table-setting-box" }, Wl = {
|
|
2033
2033
|
key: 0,
|
|
2034
2034
|
class: "hb-lib-table-drag-item"
|
|
2035
|
-
},
|
|
2035
|
+
}, jl = {
|
|
2036
2036
|
key: 0,
|
|
2037
2037
|
class: "hb-lib-table-drag-item-act"
|
|
2038
|
-
},
|
|
2038
|
+
}, Yl = ["onClick"], ql = ["onClick"], Kl = { class: "hb-lib-table-set-btn-group" }, Gl = {
|
|
2039
2039
|
class: "select-all-container",
|
|
2040
2040
|
style: { "margin-right": "10px" }
|
|
2041
|
-
},
|
|
2041
|
+
}, Jl = /* @__PURE__ */ G({
|
|
2042
2042
|
name: "HbLibTableColumnSet",
|
|
2043
2043
|
__name: "HbTableColumnSet",
|
|
2044
2044
|
props: {
|
|
@@ -2070,16 +2070,16 @@ const zl = {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
},
|
|
2072
2072
|
emits: ["on-get-columns"],
|
|
2073
|
-
setup(e, { emit:
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2076
|
-
const p =
|
|
2073
|
+
setup(e, { emit: o }) {
|
|
2074
|
+
const t = o, { t: n } = de(), u = e, d = E([]), r = z(() => a.value.filter((_) => _.checked));
|
|
2075
|
+
E([]);
|
|
2076
|
+
const p = E(!1), a = E([]), l = E(null), v = z(() => r.value.length > 0 && r.value.length === d.value.length), g = z(() => r.value.length > 0 && r.value.length < d.value.length), f = (_) => {
|
|
2077
2077
|
l.value = _.oldIndex;
|
|
2078
2078
|
}, B = (_) => {
|
|
2079
2079
|
const b = _.newIndex;
|
|
2080
|
-
if (d.value.some((
|
|
2081
|
-
const
|
|
2082
|
-
if ((
|
|
2080
|
+
if (d.value.some((x) => x.fixed === "left" || x.fixed === "right" || x.fixed === !0)) {
|
|
2081
|
+
const x = d.value.filter((K) => K.fixed === "left").length, O = d.value.length - d.value.filter((K) => K.fixed === "right").length;
|
|
2082
|
+
if ((x > 0 && b < x || O < d.value.length && b >= O) && (Se.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), l.value !== null)) {
|
|
2083
2083
|
const K = a.value.splice(b, 1)[0];
|
|
2084
2084
|
a.value.splice(l.value, 0, K);
|
|
2085
2085
|
}
|
|
@@ -2092,7 +2092,7 @@ const zl = {
|
|
|
2092
2092
|
}, U = () => {
|
|
2093
2093
|
d.value = u.localColumns.map((b) => ({
|
|
2094
2094
|
...b,
|
|
2095
|
-
label: b.title && b.title.tag ?
|
|
2095
|
+
label: b.title && b.title.tag ? H(b.title) : b.title || b.title2,
|
|
2096
2096
|
value: b.dataIndex,
|
|
2097
2097
|
checked: b.checked || b.checked === void 0
|
|
2098
2098
|
})), a.value = [...d.value];
|
|
@@ -2103,11 +2103,11 @@ const zl = {
|
|
|
2103
2103
|
}, D = (_, b) => {
|
|
2104
2104
|
b ? _.checked = !0 : _.checked = !1;
|
|
2105
2105
|
}, k = () => {
|
|
2106
|
-
d.value = [...a.value],
|
|
2106
|
+
d.value = [...a.value], t("on-get-columns", d.value), p.value = !1;
|
|
2107
2107
|
}, y = () => {
|
|
2108
2108
|
d.value = u.tableColumns.map((b) => ({
|
|
2109
2109
|
...b,
|
|
2110
|
-
label: b.title && b.title.tag ?
|
|
2110
|
+
label: b.title && b.title.tag ? H(b.title) : b.title || b.title2,
|
|
2111
2111
|
value: b.dataIndex,
|
|
2112
2112
|
checked: b.checked || b.checked === void 0
|
|
2113
2113
|
})), a.value = [...d.value];
|
|
@@ -2115,16 +2115,16 @@ const zl = {
|
|
|
2115
2115
|
u.tableColumns.forEach(function(b) {
|
|
2116
2116
|
_.push(b.dataIndex);
|
|
2117
2117
|
});
|
|
2118
|
-
},
|
|
2118
|
+
}, H = (_) => _.children[0].text, F = (_) => {
|
|
2119
2119
|
delete _.fixed;
|
|
2120
2120
|
const b = a.value.findIndex((h) => h.value === _.value);
|
|
2121
2121
|
if (b !== -1) {
|
|
2122
2122
|
let h = -1;
|
|
2123
|
-
for (let
|
|
2124
|
-
a.value[
|
|
2123
|
+
for (let x = 0; x < a.value.length; x++)
|
|
2124
|
+
a.value[x].fixed === "left" && (h = x);
|
|
2125
2125
|
if (h !== -1 && b !== h + 1) {
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2126
|
+
const x = [...a.value], [O] = x.splice(b, 1);
|
|
2127
|
+
x.splice(h + 1, 0, O), a.value = x;
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
2130
|
}, S = (_) => {
|
|
@@ -2133,10 +2133,10 @@ const zl = {
|
|
|
2133
2133
|
let h = -1;
|
|
2134
2134
|
for (let se = 0; se < a.value.length; se++)
|
|
2135
2135
|
a.value[se].fixed === "left" && (h = se);
|
|
2136
|
-
const
|
|
2136
|
+
const x = [...a.value], [O] = x.splice(b, 1);
|
|
2137
2137
|
O.fixed = "left";
|
|
2138
2138
|
const K = h === -1 ? 0 : h + 1;
|
|
2139
|
-
|
|
2139
|
+
x.splice(K, 0, O), a.value = x;
|
|
2140
2140
|
}
|
|
2141
2141
|
};
|
|
2142
2142
|
return te(
|
|
@@ -2149,9 +2149,9 @@ const zl = {
|
|
|
2149
2149
|
deep: !0
|
|
2150
2150
|
}
|
|
2151
2151
|
), (_, b) => {
|
|
2152
|
-
const h = V("a-tooltip"),
|
|
2153
|
-
return i(), T("div",
|
|
2154
|
-
w(L(
|
|
2152
|
+
const h = V("a-tooltip"), x = V("a-button");
|
|
2153
|
+
return i(), T("div", Vl, [
|
|
2154
|
+
w(L(Vt), {
|
|
2155
2155
|
title: L(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2156
2156
|
trigger: "click",
|
|
2157
2157
|
placement: "leftTop",
|
|
@@ -2182,11 +2182,11 @@ const zl = {
|
|
|
2182
2182
|
]),
|
|
2183
2183
|
_: 2
|
|
2184
2184
|
}, 1032, ["checked", "onChange"]),
|
|
2185
|
-
O.checked ? (i(), T("section",
|
|
2185
|
+
O.checked ? (i(), T("section", jl, [
|
|
2186
2186
|
c("span", {
|
|
2187
2187
|
class: Y(O.fixed ? "drag-hide" : "drag-handle")
|
|
2188
2188
|
}, "⋮⋮", 2),
|
|
2189
|
-
O.fixed ? (i(),
|
|
2189
|
+
O.fixed ? (i(), P(h, { key: 0 }, {
|
|
2190
2190
|
title: s(() => [
|
|
2191
2191
|
A(C(L(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2192
2192
|
]),
|
|
@@ -2211,11 +2211,11 @@ const zl = {
|
|
|
2211
2211
|
fill: "#ff5000"
|
|
2212
2212
|
})
|
|
2213
2213
|
], -1)
|
|
2214
|
-
])], 8,
|
|
2214
|
+
])], 8, Yl)
|
|
2215
2215
|
]),
|
|
2216
2216
|
_: 2
|
|
2217
2217
|
}, 1024)) : N("", !0),
|
|
2218
|
-
O.fixed ? N("", !0) : (i(),
|
|
2218
|
+
O.fixed ? N("", !0) : (i(), P(h, { key: 1 }, {
|
|
2219
2219
|
title: s(() => [
|
|
2220
2220
|
A(C(L(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2221
2221
|
]),
|
|
@@ -2240,7 +2240,7 @@ const zl = {
|
|
|
2240
2240
|
fill: "#ff5000"
|
|
2241
2241
|
})
|
|
2242
2242
|
], -1)
|
|
2243
|
-
])], 8,
|
|
2243
|
+
])], 8, ql)
|
|
2244
2244
|
]),
|
|
2245
2245
|
_: 2
|
|
2246
2246
|
}, 1024))
|
|
@@ -2249,8 +2249,8 @@ const zl = {
|
|
|
2249
2249
|
]),
|
|
2250
2250
|
_: 1
|
|
2251
2251
|
}, 8, ["modelValue"]),
|
|
2252
|
-
c("div",
|
|
2253
|
-
c("div",
|
|
2252
|
+
c("div", Kl, [
|
|
2253
|
+
c("div", Gl, [
|
|
2254
2254
|
w(L(De), {
|
|
2255
2255
|
checked: v.value,
|
|
2256
2256
|
indeterminate: g.value,
|
|
@@ -2262,7 +2262,7 @@ const zl = {
|
|
|
2262
2262
|
_: 1
|
|
2263
2263
|
}, 8, ["checked", "indeterminate"])
|
|
2264
2264
|
]),
|
|
2265
|
-
u.localColumns.length ? (i(),
|
|
2265
|
+
u.localColumns.length ? (i(), P(x, {
|
|
2266
2266
|
key: 0,
|
|
2267
2267
|
style: { "margin-right": "6px" },
|
|
2268
2268
|
onClick: U
|
|
@@ -2272,7 +2272,7 @@ const zl = {
|
|
|
2272
2272
|
]),
|
|
2273
2273
|
_: 1
|
|
2274
2274
|
})) : N("", !0),
|
|
2275
|
-
w(
|
|
2275
|
+
w(x, {
|
|
2276
2276
|
onClick: k,
|
|
2277
2277
|
type: "primary"
|
|
2278
2278
|
}, {
|
|
@@ -2321,19 +2321,7 @@ const zl = {
|
|
|
2321
2321
|
]);
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
|
-
}),
|
|
2325
|
-
__proto__: null,
|
|
2326
|
-
HbLibFormItemFilterModal: uo,
|
|
2327
|
-
HbLibListBtnsAct: Fo,
|
|
2328
|
-
HbLibListForm: ho,
|
|
2329
|
-
HbLibListMultiSelect: Ko,
|
|
2330
|
-
HbLibListPageAct: ko,
|
|
2331
|
-
HbLibListPageContainer: Mo,
|
|
2332
|
-
HbLibListTable: Vl,
|
|
2333
|
-
HbLibMutilpleSelectModal: Xo,
|
|
2334
|
-
HbLibTableAct: ul,
|
|
2335
|
-
HbLibTableColumnSet: Xl
|
|
2336
|
-
}, Symbol.toStringTag, { value: "Module" })), ta = /* @__PURE__ */ G({
|
|
2324
|
+
}), Ql = /* @__PURE__ */ Z(Jl, [["__scopeId", "data-v-07a63550"]]), Zl = oe(Ql), Xl = /* @__PURE__ */ G({
|
|
2337
2325
|
name: "HbLibFormTooltipSelect",
|
|
2338
2326
|
inheritAttrs: !1,
|
|
2339
2327
|
__name: "HbTooltipSelect",
|
|
@@ -2350,17 +2338,17 @@ const zl = {
|
|
|
2350
2338
|
valueModifiers: {}
|
|
2351
2339
|
}),
|
|
2352
2340
|
emits: ["update:value"],
|
|
2353
|
-
setup(e, { expose:
|
|
2354
|
-
const
|
|
2341
|
+
setup(e, { expose: o }) {
|
|
2342
|
+
const t = e, n = Ot(), u = z(() => {
|
|
2355
2343
|
const $ = n, U = $.dropdownClassName;
|
|
2356
2344
|
return {
|
|
2357
2345
|
...$,
|
|
2358
2346
|
dropdownClassName: U ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2359
2347
|
};
|
|
2360
|
-
}), d =
|
|
2361
|
-
maxWidth: typeof
|
|
2362
|
-
})), l = ($) => $.tooltip ?? $.label, v = ($) => $.key ?? $.label, g = ($) => !!(
|
|
2363
|
-
return
|
|
2348
|
+
}), d = E(), r = Ct(e, "value"), p = z(() => t.options ?? []), a = z(() => ({
|
|
2349
|
+
maxWidth: typeof t.tooltipMaxWidth == "number" ? `${t.tooltipMaxWidth}px` : t.tooltipMaxWidth
|
|
2350
|
+
})), l = ($) => $.tooltip ?? $.label, v = ($) => $.key ?? $.label, g = ($) => !!(t.enableTooltip && l($));
|
|
2351
|
+
return o({
|
|
2364
2352
|
focus: () => {
|
|
2365
2353
|
d.value?.focus?.();
|
|
2366
2354
|
},
|
|
@@ -2368,36 +2356,36 @@ const zl = {
|
|
|
2368
2356
|
d.value?.blur?.();
|
|
2369
2357
|
},
|
|
2370
2358
|
selectRef: d
|
|
2371
|
-
}), ($, U) => (i(),
|
|
2359
|
+
}), ($, U) => (i(), P(L(Ye), X({
|
|
2372
2360
|
ref_key: "selectRef",
|
|
2373
|
-
ref: d
|
|
2374
|
-
class: "hb_lib_form_tooltip_select"
|
|
2361
|
+
ref: d
|
|
2375
2362
|
}, u.value, {
|
|
2376
2363
|
value: r.value,
|
|
2377
|
-
"onUpdate:value": U[0] || (U[0] = (D) => r.value = D)
|
|
2364
|
+
"onUpdate:value": U[0] || (U[0] = (D) => r.value = D),
|
|
2365
|
+
class: "hb_lib_form_tooltip_select"
|
|
2378
2366
|
}), {
|
|
2379
2367
|
default: s(() => [
|
|
2380
|
-
$.$slots.default ?
|
|
2368
|
+
$.$slots.default ? j($.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(q, { key: 1 }, ie(p.value, (D) => (i(), P(L(qe), X({
|
|
2381
2369
|
key: v(D),
|
|
2382
2370
|
value: D.value,
|
|
2383
2371
|
disabled: D.disabled
|
|
2384
2372
|
}, { ref_for: !0 }, D.optionProps), {
|
|
2385
2373
|
default: s(() => [
|
|
2386
|
-
g(D) ? (i(),
|
|
2374
|
+
g(D) ? (i(), P(L(Me), {
|
|
2387
2375
|
key: 0,
|
|
2388
2376
|
title: l(D),
|
|
2389
|
-
placement:
|
|
2390
|
-
|
|
2377
|
+
placement: t.tooltipPlacement,
|
|
2378
|
+
"overlay-style": a.value
|
|
2391
2379
|
}, {
|
|
2392
2380
|
default: s(() => [
|
|
2393
2381
|
c("span", {
|
|
2394
|
-
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2382
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
|
|
2395
2383
|
}, C(D.label), 3)
|
|
2396
2384
|
]),
|
|
2397
2385
|
_: 2
|
|
2398
|
-
}, 1032, ["title", "placement", "
|
|
2386
|
+
}, 1032, ["title", "placement", "overlay-style"])) : (i(), T("span", {
|
|
2399
2387
|
key: 1,
|
|
2400
|
-
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2388
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
|
|
2401
2389
|
}, C(D.label), 3))
|
|
2402
2390
|
]),
|
|
2403
2391
|
_: 2
|
|
@@ -2406,13 +2394,10 @@ const zl = {
|
|
|
2406
2394
|
_: 3
|
|
2407
2395
|
}, 16, ["value"]));
|
|
2408
2396
|
}
|
|
2409
|
-
}),
|
|
2410
|
-
__proto__: null,
|
|
2411
|
-
HbLibFormTooltipSelect: la
|
|
2412
|
-
}, Symbol.toStringTag, { value: "Module" })), na = { class: "ant-upload-drag-icon" }, ia = { class: "ant-upload-text" }, sa = { style: { color: "#ff5000" } }, ra = { class: "ant-upload-hint" }, ca = {
|
|
2397
|
+
}), ea = /* @__PURE__ */ Z(Xl, [["__scopeId", "data-v-13285691"]]), ta = oe(ea), oa = { class: "ant-upload-drag-icon" }, la = { class: "ant-upload-text" }, aa = { style: { color: "#ff5000" } }, na = { class: "ant-upload-hint" }, ia = {
|
|
2413
2398
|
key: 0,
|
|
2414
2399
|
class: "hb_import_btn"
|
|
2415
|
-
},
|
|
2400
|
+
}, sa = ["href"], ra = /* @__PURE__ */ G({
|
|
2416
2401
|
name: "HbLibImportFile",
|
|
2417
2402
|
__name: "HbImportFile",
|
|
2418
2403
|
props: {
|
|
@@ -2427,8 +2412,8 @@ const zl = {
|
|
|
2427
2412
|
beforeUpload: {},
|
|
2428
2413
|
beforeSubmit: {}
|
|
2429
2414
|
},
|
|
2430
|
-
setup(e, { expose:
|
|
2431
|
-
const { t
|
|
2415
|
+
setup(e, { expose: o }) {
|
|
2416
|
+
const { t } = de(), n = E(), u = e, d = E(!1), r = Te({
|
|
2432
2417
|
fileList: [],
|
|
2433
2418
|
visible: !1
|
|
2434
2419
|
}), p = (f) => {
|
|
@@ -2441,7 +2426,7 @@ const zl = {
|
|
|
2441
2426
|
}
|
|
2442
2427
|
}, a = () => {
|
|
2443
2428
|
r.visible = !1, r.fileList = [], d.value = !1;
|
|
2444
|
-
}, l = (f) => (r.fileList = [f], u.beforeUpload ? u.beforeUpload(f) : !1), v = () => {
|
|
2429
|
+
}, l = (f) => (r.fileList = [f], u.beforeUpload ? u.beforeUpload(f.originFileObj) : !1), v = () => {
|
|
2445
2430
|
n.value.validateFields().then(() => {
|
|
2446
2431
|
u.beforeSubmit && (d.value = !0, u.beforeSubmit(r.fileList).then((f) => {
|
|
2447
2432
|
}).finally(() => {
|
|
@@ -2451,7 +2436,7 @@ const zl = {
|
|
|
2451
2436
|
}, g = () => {
|
|
2452
2437
|
r.visible = !0;
|
|
2453
2438
|
};
|
|
2454
|
-
return
|
|
2439
|
+
return o({
|
|
2455
2440
|
handleCancel: a,
|
|
2456
2441
|
openModal: g,
|
|
2457
2442
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
@@ -2460,14 +2445,14 @@ const zl = {
|
|
|
2460
2445
|
const $ = V("a-upload-dragger"), U = V("a-form-item"), D = V("a-form"), k = V("a-modal"), y = V("a-button");
|
|
2461
2446
|
return i(), T(q, null, [
|
|
2462
2447
|
w(k, X({
|
|
2463
|
-
title: u.title,
|
|
2464
2448
|
visible: r.visible,
|
|
2465
|
-
"onUpdate:visible": B[0] || (B[0] = (
|
|
2449
|
+
"onUpdate:visible": B[0] || (B[0] = (H) => r.visible = H),
|
|
2450
|
+
title: u.title,
|
|
2466
2451
|
"confirm-loading": d.value
|
|
2467
2452
|
}, f.$attrs, {
|
|
2453
|
+
width: u.modalWidth,
|
|
2468
2454
|
onCancel: a,
|
|
2469
|
-
onOk: v
|
|
2470
|
-
width: u.modalWidth
|
|
2455
|
+
onOk: v
|
|
2471
2456
|
}), {
|
|
2472
2457
|
default: s(() => [
|
|
2473
2458
|
w(D, {
|
|
@@ -2478,50 +2463,50 @@ const zl = {
|
|
|
2478
2463
|
default: s(() => [
|
|
2479
2464
|
w(U, {
|
|
2480
2465
|
name: "fileList",
|
|
2481
|
-
label: L(
|
|
2482
|
-
rules: [{ required: u.isRequired, message: L(
|
|
2466
|
+
label: L(t)("hbLibComp.HbImportFile.fileLabel"),
|
|
2467
|
+
rules: [{ required: u.isRequired, message: L(t)("hbLibComp.HbImportFile.clickUp") }]
|
|
2483
2468
|
}, {
|
|
2484
2469
|
default: s(() => [
|
|
2485
2470
|
w($, {
|
|
2486
|
-
|
|
2471
|
+
"max-count": u.maxCount,
|
|
2487
2472
|
multiple: u.multiple,
|
|
2488
2473
|
accept: u.acceptFile,
|
|
2489
2474
|
name: "file",
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2475
|
+
"file-list": r.fileList,
|
|
2476
|
+
"before-upload": l,
|
|
2477
|
+
onRemove: p
|
|
2493
2478
|
}, {
|
|
2494
2479
|
default: s(() => [
|
|
2495
|
-
c("p",
|
|
2496
|
-
w(L(
|
|
2480
|
+
c("p", oa, [
|
|
2481
|
+
w(L(Qt), { style: { "font-size": "37px" } })
|
|
2497
2482
|
]),
|
|
2498
|
-
c("p",
|
|
2499
|
-
A(C(L(
|
|
2500
|
-
c("span",
|
|
2483
|
+
c("p", la, [
|
|
2484
|
+
A(C(L(t)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2485
|
+
c("span", aa, C(L(t)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2501
2486
|
]),
|
|
2502
|
-
c("p",
|
|
2487
|
+
c("p", na, C(L(t)("hbLibComp.HbFileUploadModal.format")) + ": " + C(u.acceptFile), 1)
|
|
2503
2488
|
]),
|
|
2504
2489
|
_: 1
|
|
2505
|
-
}, 8, ["
|
|
2490
|
+
}, 8, ["max-count", "multiple", "accept", "file-list"])
|
|
2506
2491
|
]),
|
|
2507
2492
|
_: 1
|
|
2508
2493
|
}, 8, ["label", "rules"])
|
|
2509
2494
|
]),
|
|
2510
2495
|
_: 1
|
|
2511
2496
|
}, 8, ["model"]),
|
|
2512
|
-
u.templateUrl ? (i(), T("p",
|
|
2497
|
+
u.templateUrl ? (i(), T("p", ia, [
|
|
2513
2498
|
c("a", {
|
|
2514
2499
|
download: "Import_number-template.xlsx",
|
|
2515
2500
|
href: u.templateUrl
|
|
2516
|
-
}, C(L(
|
|
2501
|
+
}, C(L(t)("hbLibComp.HbImportFile.downloadTemplate")), 9, sa)
|
|
2517
2502
|
])) : N("", !0)
|
|
2518
2503
|
]),
|
|
2519
2504
|
_: 1
|
|
2520
|
-
}, 16, ["
|
|
2521
|
-
|
|
2505
|
+
}, 16, ["visible", "title", "confirm-loading", "width"]),
|
|
2506
|
+
j(f.$slots, "btn", {}, () => [
|
|
2522
2507
|
w(y, {
|
|
2523
|
-
|
|
2524
|
-
|
|
2508
|
+
type: "primary",
|
|
2509
|
+
onClick: g
|
|
2525
2510
|
}, {
|
|
2526
2511
|
default: s(() => [
|
|
2527
2512
|
A(C(e.btnText), 1)
|
|
@@ -2532,454 +2517,59 @@ const zl = {
|
|
|
2532
2517
|
], 64);
|
|
2533
2518
|
};
|
|
2534
2519
|
}
|
|
2535
|
-
}),
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
default: ""
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
default:
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
// label
|
|
2555
|
-
L: {
|
|
2556
|
-
type: String
|
|
2557
|
-
},
|
|
2558
|
-
// 数据源
|
|
2559
|
-
data: {
|
|
2560
|
-
type: [Array, Object]
|
|
2561
|
-
},
|
|
2562
|
-
// 气泡提示
|
|
2563
|
-
tooltipTitle: {
|
|
2564
|
-
type: String,
|
|
2565
|
-
default: ""
|
|
2566
|
-
},
|
|
2567
|
-
copySuccessTip: {
|
|
2568
|
-
type: String,
|
|
2569
|
-
default: ""
|
|
2570
|
-
},
|
|
2571
|
-
copyFailTip: {
|
|
2572
|
-
type: String,
|
|
2573
|
-
default: ""
|
|
2574
|
-
},
|
|
2575
|
-
cpStyle: {
|
|
2576
|
-
type: Object,
|
|
2577
|
-
default: () => ({})
|
|
2520
|
+
}), ca = /* @__PURE__ */ Z(ra, [["__scopeId", "data-v-6123b1fa"]]), da = oe(ca), ua = { class: "hb_lib_log_modal_content" }, ba = { class: "log_remark" }, fa = /* @__PURE__ */ G({
|
|
2521
|
+
name: "HbLibLogModal",
|
|
2522
|
+
__name: "HbLogModal",
|
|
2523
|
+
props: {
|
|
2524
|
+
visible: { type: Boolean, default: !1 },
|
|
2525
|
+
needBtn: { type: Boolean, default: !1 },
|
|
2526
|
+
title: { default: "" },
|
|
2527
|
+
width: { default: "45%" },
|
|
2528
|
+
height: { default: "60%" },
|
|
2529
|
+
dataStr: { default: "records" },
|
|
2530
|
+
scrollY: { default: 500 },
|
|
2531
|
+
params: { default: () => ({}) },
|
|
2532
|
+
url: {},
|
|
2533
|
+
columns: { default: void 0 },
|
|
2534
|
+
logBtnText: { default: "查看日志" },
|
|
2535
|
+
pagination: {},
|
|
2536
|
+
modalStyle: {},
|
|
2537
|
+
bodyStyle: {},
|
|
2538
|
+
getLogData: {}
|
|
2578
2539
|
},
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2540
|
+
emits: ["update:visible"],
|
|
2541
|
+
setup(e, { expose: o, emit: t }) {
|
|
2542
|
+
const { t: n } = de(), u = Et(), d = e, r = [
|
|
2543
|
+
{
|
|
2544
|
+
title: n("hbLibComp.HbLogModal.operator"),
|
|
2545
|
+
dataIndex: "userName",
|
|
2546
|
+
width: "15%"
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
title: n("hbLibComp.HbLogModal.operateTime"),
|
|
2550
|
+
dataIndex: "operateTime",
|
|
2551
|
+
width: "25%"
|
|
2552
|
+
},
|
|
2553
|
+
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2554
|
+
], p = z(() => d.columns || r), a = z(() => d.title || n("hbLibComp.HbLogModal.operateLogs")), l = z(() => !!u.title), v = E(!1), g = Te({
|
|
2555
|
+
list: [],
|
|
2556
|
+
pagination: {
|
|
2557
|
+
current: 1,
|
|
2558
|
+
pageSize: 10,
|
|
2559
|
+
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2560
|
+
showQuickJumper: !0,
|
|
2561
|
+
showSizeChanger: !0,
|
|
2562
|
+
showTotal: (y, H) => H[0] + "-" + H[1] + " 总共" + y + "页",
|
|
2563
|
+
total: 0
|
|
2564
|
+
}
|
|
2591
2565
|
});
|
|
2592
|
-
const n = E(() => t.tooltipTitle || "复制"), u = E(() => t.copySuccessTip || "复制成功"), d = E(() => t.copyFailTip || "复制失败"), r = E(() => {
|
|
2593
|
-
if (t.cpText) return t.cpText;
|
|
2594
|
-
let a = "";
|
|
2595
|
-
if (t.data)
|
|
2596
|
-
if (Array.isArray(t.data)) {
|
|
2597
|
-
if (t.K && t.V && t.L) {
|
|
2598
|
-
const l = t.data.find((v) => v?.[t.K] === t.V);
|
|
2599
|
-
a = l ? l[t.L] : "";
|
|
2600
|
-
}
|
|
2601
|
-
} else
|
|
2602
|
-
t.K && (a = t.data[t.K]);
|
|
2603
|
-
return a;
|
|
2604
|
-
}), p = () => {
|
|
2605
|
-
navigator.clipboard.writeText(r.value).then(() => {
|
|
2606
|
-
Se.success(u.value);
|
|
2607
|
-
}).catch(() => {
|
|
2608
|
-
Se.error(d.value);
|
|
2609
|
-
});
|
|
2610
|
-
};
|
|
2611
|
-
return (a, l) => r.value ? (i(), R(L(Me), {
|
|
2612
|
-
key: 0,
|
|
2613
|
-
title: n.value
|
|
2614
|
-
}, {
|
|
2615
|
-
default: s(() => [
|
|
2616
|
-
c("span", {
|
|
2617
|
-
class: "hb-lib-copy-text-eyevue",
|
|
2618
|
-
style: re({ ...a.cpStyle }),
|
|
2619
|
-
onClick: $e(p, ["stop", "prevent"])
|
|
2620
|
-
}, [...l[0] || (l[0] = [
|
|
2621
|
-
c("svg", {
|
|
2622
|
-
t: "1766643849597",
|
|
2623
|
-
class: "icon",
|
|
2624
|
-
viewBox: "0 0 1024 1024",
|
|
2625
|
-
version: "1.1",
|
|
2626
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2627
|
-
"p-id": "5022",
|
|
2628
|
-
width: "200",
|
|
2629
|
-
height: "200"
|
|
2630
|
-
}, [
|
|
2631
|
-
c("path", {
|
|
2632
|
-
d: "M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z",
|
|
2633
|
-
"p-id": "5023",
|
|
2634
|
-
fill: "#808080ba"
|
|
2635
|
-
}),
|
|
2636
|
-
c("path", {
|
|
2637
|
-
d: "M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z",
|
|
2638
|
-
"p-id": "5024",
|
|
2639
|
-
fill: "#808080ba"
|
|
2640
|
-
}),
|
|
2641
|
-
c("path", {
|
|
2642
|
-
d: "M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z",
|
|
2643
|
-
"p-id": "5025",
|
|
2644
|
-
fill: "#808080ba"
|
|
2645
|
-
})
|
|
2646
|
-
], -1)
|
|
2647
|
-
])], 4)
|
|
2648
|
-
]),
|
|
2649
|
-
_: 1
|
|
2650
|
-
}, 8, ["title"])) : N("", !0);
|
|
2651
|
-
}
|
|
2652
|
-
}), va = /* @__PURE__ */ Z(ma, [["__scopeId", "data-v-2b6710a1"]]), Dt = oe(va), ga = {
|
|
2653
|
-
dragList: {
|
|
2654
|
-
type: Array,
|
|
2655
|
-
required: !0
|
|
2656
|
-
},
|
|
2657
|
-
// 拖拽的元素类型 可以是html元素 或者 vue组件
|
|
2658
|
-
childrenType: {
|
|
2659
|
-
type: String,
|
|
2660
|
-
default: "html"
|
|
2661
|
-
},
|
|
2662
|
-
// 拖拽的元素自定义样式
|
|
2663
|
-
dragClass: {
|
|
2664
|
-
type: String,
|
|
2665
|
-
default: "drag-item"
|
|
2666
|
-
},
|
|
2667
|
-
// 设置拖动元素的占位符类名 拖动起来后原来位置的元素会变成这个类名 就可以设置一些样式
|
|
2668
|
-
ghostClass: { type: String, default: null },
|
|
2669
|
-
// 拖拽元素被选中时添加的类名
|
|
2670
|
-
chosenClass: { type: String, default: null },
|
|
2671
|
-
// 是否可排序
|
|
2672
|
-
sort: {
|
|
2673
|
-
type: Boolean,
|
|
2674
|
-
default: !0
|
|
2675
|
-
},
|
|
2676
|
-
// 拖拽的元素自定义拖拽按钮 class 设置了它 盒子里只有有这个类名的元素才能启动盒子拖拽
|
|
2677
|
-
handle: {
|
|
2678
|
-
type: String,
|
|
2679
|
-
default: ""
|
|
2680
|
-
},
|
|
2681
|
-
// 过滤掉具有特定 class 的元素 不能拖拽
|
|
2682
|
-
filter: {
|
|
2683
|
-
type: String,
|
|
2684
|
-
default: ""
|
|
2685
|
-
},
|
|
2686
|
-
// 允许拖拽的元素 class
|
|
2687
|
-
draggable: {
|
|
2688
|
-
type: String,
|
|
2689
|
-
default: ""
|
|
2690
|
-
}
|
|
2691
|
-
}, ya = /* @__PURE__ */ G({
|
|
2692
|
-
name: "HbDrag",
|
|
2693
|
-
__name: "index",
|
|
2694
|
-
props: ga,
|
|
2695
|
-
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2696
|
-
setup(e, { emit: t }) {
|
|
2697
|
-
const o = e, n = Et([]);
|
|
2698
2566
|
te(
|
|
2699
|
-
() =>
|
|
2700
|
-
(
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
immediate: !0
|
|
2706
|
-
}
|
|
2707
|
-
);
|
|
2708
|
-
const u = Ze("drag"), d = t, r = (v) => {
|
|
2709
|
-
console.log("drag start", v), d("handleDragStart", v);
|
|
2710
|
-
}, p = (v) => {
|
|
2711
|
-
console.log("drag end", v), d("handleDragEnd", v);
|
|
2712
|
-
}, a = (v) => {
|
|
2713
|
-
console.log("drag add", v), d("handleDragAdd", v);
|
|
2714
|
-
}, l = (v) => {
|
|
2715
|
-
console.log("drag remove", v), d("handleDragRemove", v);
|
|
2716
|
-
};
|
|
2717
|
-
return (v, g) => (i(), T("div", {
|
|
2718
|
-
class: Y(L(u).b())
|
|
2719
|
-
}, [
|
|
2720
|
-
v.childrenType == "component" ? (i(), R(L(Ie), X({
|
|
2721
|
-
key: 0,
|
|
2722
|
-
modelValue: n.value,
|
|
2723
|
-
"onUpdate:modelValue": g[0] || (g[0] = (f) => n.value = f),
|
|
2724
|
-
"item-key": "key",
|
|
2725
|
-
class: { [v.dragClass]: v.dragClass }
|
|
2726
|
-
}, v.$attrs, {
|
|
2727
|
-
"ghost-class": v.ghostClass,
|
|
2728
|
-
onStart: r,
|
|
2729
|
-
onEnd: p,
|
|
2730
|
-
onAdd: a,
|
|
2731
|
-
onRemove: l
|
|
2732
|
-
}), {
|
|
2733
|
-
item: s(({ element: f }) => [
|
|
2734
|
-
(i(), R(wt(f.component)))
|
|
2735
|
-
]),
|
|
2736
|
-
_: 1
|
|
2737
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), R(L(Ie), X({
|
|
2738
|
-
key: 1,
|
|
2739
|
-
modelValue: n.value,
|
|
2740
|
-
"onUpdate:modelValue": g[1] || (g[1] = (f) => n.value = f),
|
|
2741
|
-
"item-key": "id",
|
|
2742
|
-
class: { [v.dragClass]: v.dragClass }
|
|
2743
|
-
}, v.$attrs, {
|
|
2744
|
-
"ghost-class": v.ghostClass,
|
|
2745
|
-
onStart: r,
|
|
2746
|
-
onEnd: p,
|
|
2747
|
-
onAdd: a,
|
|
2748
|
-
onRemove: l
|
|
2749
|
-
}), {
|
|
2750
|
-
item: s(({ element: f }) => [
|
|
2751
|
-
c("div", null, [
|
|
2752
|
-
W(v.$slots, "default", { item: f }, void 0, !0)
|
|
2753
|
-
])
|
|
2754
|
-
]),
|
|
2755
|
-
_: 3
|
|
2756
|
-
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2757
|
-
], 2));
|
|
2758
|
-
}
|
|
2759
|
-
}), _a = /* @__PURE__ */ Z(ya, [["__scopeId", "data-v-15b227f5"]]), La = oe(_a), Ca = {
|
|
2760
|
-
triggerWay: {
|
|
2761
|
-
type: String,
|
|
2762
|
-
default: "click"
|
|
2763
|
-
},
|
|
2764
|
-
colText: {
|
|
2765
|
-
type: String,
|
|
2766
|
-
default: ""
|
|
2767
|
-
},
|
|
2768
|
-
menuItems: {
|
|
2769
|
-
type: Array,
|
|
2770
|
-
default: () => []
|
|
2771
|
-
},
|
|
2772
|
-
getSort: {
|
|
2773
|
-
type: Function
|
|
2774
|
-
}
|
|
2775
|
-
}, ka = /* @__PURE__ */ G({
|
|
2776
|
-
name: "HbLibSort",
|
|
2777
|
-
__name: "sort",
|
|
2778
|
-
props: Ca,
|
|
2779
|
-
emits: ["change"],
|
|
2780
|
-
setup(e, { expose: t, emit: o }) {
|
|
2781
|
-
const n = e, u = o, d = z([]), r = z("");
|
|
2782
|
-
te(
|
|
2783
|
-
() => n.menuItems,
|
|
2784
|
-
(a) => {
|
|
2785
|
-
let l = [];
|
|
2786
|
-
Array.isArray(a) && a.length && a.forEach((v) => {
|
|
2787
|
-
l = [
|
|
2788
|
-
...l,
|
|
2789
|
-
{ label: `${v.label}升序`, value: `${v.value}`, sort: "Asc" },
|
|
2790
|
-
{ label: `${v.label}降序`, value: `${v.value}`, sort: "Desc" }
|
|
2791
|
-
];
|
|
2792
|
-
}), d.value = l;
|
|
2793
|
-
},
|
|
2794
|
-
{
|
|
2795
|
-
deep: !0,
|
|
2796
|
-
immediate: !0
|
|
2797
|
-
}
|
|
2798
|
-
);
|
|
2799
|
-
const p = (a) => {
|
|
2800
|
-
r.value = a.value + a.sort, n.getSort && n.getSort({
|
|
2801
|
-
orderFeild: a.value,
|
|
2802
|
-
orderBy: a.sort
|
|
2803
|
-
}), u("change", r);
|
|
2804
|
-
};
|
|
2805
|
-
return t({
|
|
2806
|
-
currentActiveItem: r
|
|
2807
|
-
}), (a, l) => {
|
|
2808
|
-
const v = V("a-menu-item"), g = V("a-menu"), f = V("a-dropdown");
|
|
2809
|
-
return i(), R(f, {
|
|
2810
|
-
trigger: [n.triggerWay]
|
|
2811
|
-
}, {
|
|
2812
|
-
overlay: s(() => [
|
|
2813
|
-
w(g, null, {
|
|
2814
|
-
default: s(() => [
|
|
2815
|
-
(i(!0), T(q, null, ie(d.value, (B) => (i(), R(v, {
|
|
2816
|
-
key: B.value + B.sort,
|
|
2817
|
-
onClick: ($) => p(B)
|
|
2818
|
-
}, {
|
|
2819
|
-
default: s(() => [
|
|
2820
|
-
c("span", {
|
|
2821
|
-
class: Y(r.value == B.value + B.sort ? "activted" : "")
|
|
2822
|
-
}, C(B.label), 3)
|
|
2823
|
-
]),
|
|
2824
|
-
_: 2
|
|
2825
|
-
}, 1032, ["onClick"]))), 128))
|
|
2826
|
-
]),
|
|
2827
|
-
_: 1
|
|
2828
|
-
})
|
|
2829
|
-
]),
|
|
2830
|
-
default: s(() => [
|
|
2831
|
-
c("span", {
|
|
2832
|
-
class: "ant-dropdown-link",
|
|
2833
|
-
onClick: l[0] || (l[0] = $e(() => {
|
|
2834
|
-
}, ["prevent"]))
|
|
2835
|
-
}, [
|
|
2836
|
-
A(C(n.colText) + " ", 1),
|
|
2837
|
-
w(L(Ke))
|
|
2838
|
-
])
|
|
2839
|
-
]),
|
|
2840
|
-
_: 1
|
|
2841
|
-
}, 8, ["trigger"]);
|
|
2842
|
-
};
|
|
2843
|
-
}
|
|
2844
|
-
}), Sa = /* @__PURE__ */ Z(ka, [["__scopeId", "data-v-cf0b0a0d"]]), Ta = oe(Sa), wa = {
|
|
2845
|
-
// 图片上传组件的配置
|
|
2846
|
-
importFile: {
|
|
2847
|
-
isRequired: !1,
|
|
2848
|
-
modalWidth: 800,
|
|
2849
|
-
maxCount: 1,
|
|
2850
|
-
multiple: !1,
|
|
2851
|
-
acceptFile: "image/*"
|
|
2852
|
-
},
|
|
2853
|
-
// 列表页table组件的配置
|
|
2854
|
-
listTable: {
|
|
2855
|
-
align: "left",
|
|
2856
|
-
colSaveTimeOut: 800,
|
|
2857
|
-
defaultColWidth: 200,
|
|
2858
|
-
ellipsisNumber: 10
|
|
2859
|
-
},
|
|
2860
|
-
HbLibListPageContainer: {
|
|
2861
|
-
offsetBottom: 20,
|
|
2862
|
-
minHeight: 300,
|
|
2863
|
-
timeOut: 100,
|
|
2864
|
-
offsetHeight: 110,
|
|
2865
|
-
isUnFixTbHeight: !0
|
|
2866
|
-
},
|
|
2867
|
-
HbLibFormItemFilterModal: {
|
|
2868
|
-
modalWidth: 800,
|
|
2869
|
-
defaultShowCount: 2
|
|
2870
|
-
},
|
|
2871
|
-
HbLibDetailBox: {
|
|
2872
|
-
descLabelWidth: 150,
|
|
2873
|
-
descValueWidth: 200,
|
|
2874
|
-
needSetDesDefault: !1,
|
|
2875
|
-
desDefault: "-",
|
|
2876
|
-
setDefaultValueTimeOut: 600,
|
|
2877
|
-
backTopBottom: 150
|
|
2878
|
-
},
|
|
2879
|
-
HbLibUnDetailBox: {
|
|
2880
|
-
backTopBottom: 150
|
|
2881
|
-
},
|
|
2882
|
-
HbLibCard: {
|
|
2883
|
-
// 表单距离底部的距离
|
|
2884
|
-
formItemMb: 10
|
|
2885
|
-
}
|
|
2886
|
-
}, xa = { class: "hb_ui_config" }, Ha = /* @__PURE__ */ G({
|
|
2887
|
-
name: "HbUiConfig",
|
|
2888
|
-
__name: "hbUiConfig",
|
|
2889
|
-
props: {
|
|
2890
|
-
config: {}
|
|
2891
|
-
},
|
|
2892
|
-
setup(e) {
|
|
2893
|
-
const t = e;
|
|
2894
|
-
let o = null;
|
|
2895
|
-
return te(
|
|
2896
|
-
() => t.config,
|
|
2897
|
-
(n) => {
|
|
2898
|
-
o = Te(Yt({}, wa, n));
|
|
2899
|
-
},
|
|
2900
|
-
{ deep: !0, immediate: !0 }
|
|
2901
|
-
), Ct(Xe, o), (n, u) => (i(), T("div", xa, [
|
|
2902
|
-
W(n.$slots, "default")
|
|
2903
|
-
]));
|
|
2904
|
-
}
|
|
2905
|
-
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), Fa = oe(Ha), $a = { class: "hb_lib_loading" }, Ia = { class: "hb_lib_loading_loading_anima" }, Ma = { class: "hb_lib_loading_load_tips" }, Da = /* @__PURE__ */ G({
|
|
2906
|
-
name: "HbLibLoading",
|
|
2907
|
-
__name: "loading",
|
|
2908
|
-
props: {
|
|
2909
|
-
loadTips: {
|
|
2910
|
-
type: String,
|
|
2911
|
-
default: "页面加载中...如长时间加载请刷新页面!"
|
|
2912
|
-
}
|
|
2913
|
-
},
|
|
2914
|
-
setup(e) {
|
|
2915
|
-
const { t } = de(), o = e, n = E(() => o.loadTips || t("hbLibComp.HbLibLoading.loadingTips"));
|
|
2916
|
-
return (u, d) => (i(), T("div", $a, [
|
|
2917
|
-
c("div", Ia, [
|
|
2918
|
-
d[0] || (d[0] = Nt('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
|
|
2919
|
-
c("div", Ma, C(n.value), 1)
|
|
2920
|
-
])
|
|
2921
|
-
]));
|
|
2922
|
-
}
|
|
2923
|
-
}), Ba = /* @__PURE__ */ Z(Da, [["__scopeId", "data-v-22f438b9"]]), Aa = oe(Ba), Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2924
|
-
__proto__: null,
|
|
2925
|
-
HbLibCopy: Dt,
|
|
2926
|
-
HbLibFuncCompDrag: La,
|
|
2927
|
-
HbLibLoading: Aa,
|
|
2928
|
-
HbLibSort: Ta,
|
|
2929
|
-
HbUiConfig: Fa
|
|
2930
|
-
}, Symbol.toStringTag, { value: "Module" })), za = { class: "hb_lib_log_modal_content" }, Ea = { class: "log_remark" }, Na = /* @__PURE__ */ G({
|
|
2931
|
-
name: "HbLibLogModal",
|
|
2932
|
-
__name: "HbLogModal",
|
|
2933
|
-
props: {
|
|
2934
|
-
visible: { type: Boolean, default: !1 },
|
|
2935
|
-
needBtn: { type: Boolean, default: !1 },
|
|
2936
|
-
title: { default: "" },
|
|
2937
|
-
width: { default: "45%" },
|
|
2938
|
-
height: { default: "60%" },
|
|
2939
|
-
dataStr: { default: "records" },
|
|
2940
|
-
scrollY: { default: 500 },
|
|
2941
|
-
params: { default: () => ({}) },
|
|
2942
|
-
url: {},
|
|
2943
|
-
columns: { default: void 0 },
|
|
2944
|
-
logBtnText: { default: "查看日志" },
|
|
2945
|
-
pagination: {},
|
|
2946
|
-
modalStyle: {},
|
|
2947
|
-
bodyStyle: {},
|
|
2948
|
-
getLogData: {}
|
|
2949
|
-
},
|
|
2950
|
-
emits: ["update:visible"],
|
|
2951
|
-
setup(e, { expose: t, emit: o }) {
|
|
2952
|
-
const { t: n } = de(), u = Pt(), d = e, r = [
|
|
2953
|
-
{
|
|
2954
|
-
title: n("hbLibComp.HbLogModal.operator"),
|
|
2955
|
-
dataIndex: "userName",
|
|
2956
|
-
width: "15%"
|
|
2957
|
-
},
|
|
2958
|
-
{
|
|
2959
|
-
title: n("hbLibComp.HbLogModal.operateTime"),
|
|
2960
|
-
dataIndex: "operateTime",
|
|
2961
|
-
width: "25%"
|
|
2962
|
-
},
|
|
2963
|
-
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2964
|
-
], p = E(() => d.columns || r), a = E(() => d.title || n("hbLibComp.HbLogModal.operateLogs")), l = E(() => !!u.title), v = z(!1), g = Te({
|
|
2965
|
-
list: [],
|
|
2966
|
-
pagination: {
|
|
2967
|
-
current: 1,
|
|
2968
|
-
pageSize: 10,
|
|
2969
|
-
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2970
|
-
showQuickJumper: !0,
|
|
2971
|
-
showSizeChanger: !0,
|
|
2972
|
-
showTotal: (y, x) => x[0] + "-" + x[1] + " 总共" + y + "页",
|
|
2973
|
-
total: 0
|
|
2974
|
-
}
|
|
2975
|
-
});
|
|
2976
|
-
te(
|
|
2977
|
-
() => d.pagination,
|
|
2978
|
-
(y) => {
|
|
2979
|
-
y && (g.pagination = {
|
|
2980
|
-
...g.pagination,
|
|
2981
|
-
...y
|
|
2982
|
-
});
|
|
2567
|
+
() => d.pagination,
|
|
2568
|
+
(y) => {
|
|
2569
|
+
y && (g.pagination = {
|
|
2570
|
+
...g.pagination,
|
|
2571
|
+
...y
|
|
2572
|
+
});
|
|
2983
2573
|
},
|
|
2984
2574
|
{
|
|
2985
2575
|
deep: !0,
|
|
@@ -2992,8 +2582,8 @@ const zl = {
|
|
|
2992
2582
|
pageSize: g.pagination.pageSize,
|
|
2993
2583
|
query: d.params
|
|
2994
2584
|
};
|
|
2995
|
-
d.getLogData && (v.value = !0, d.getLogData(y).then((
|
|
2996
|
-
Number(
|
|
2585
|
+
d.getLogData && (v.value = !0, d.getLogData(y).then((H) => {
|
|
2586
|
+
Number(H.code) == 200 ? (g.pagination.total = Number(H.data.total), g.list = H.data[d.dataStr] || []) : Se.error(H.message);
|
|
2997
2587
|
}).finally(() => {
|
|
2998
2588
|
v.value = !1;
|
|
2999
2589
|
}));
|
|
@@ -3003,16 +2593,16 @@ const zl = {
|
|
|
3003
2593
|
g.list = [], k("update:visible", !1);
|
|
3004
2594
|
}, U = () => {
|
|
3005
2595
|
k("update:visible", !0);
|
|
3006
|
-
}, D = (y,
|
|
2596
|
+
}, D = (y, H = "YYYY-MM-DD HH:mm:ss") => y ? Oe(y).format(H) : "", k = t;
|
|
3007
2597
|
return te(
|
|
3008
2598
|
() => d.visible,
|
|
3009
2599
|
(y) => {
|
|
3010
2600
|
y && f();
|
|
3011
2601
|
}
|
|
3012
|
-
),
|
|
2602
|
+
), o({
|
|
3013
2603
|
close: $,
|
|
3014
2604
|
loading: v
|
|
3015
|
-
}), (y,
|
|
2605
|
+
}), (y, H) => {
|
|
3016
2606
|
const F = V("a-tooltip"), S = V("HbLibCopy"), _ = V("a-table"), b = V("a-button"), h = V("HbLibModal");
|
|
3017
2607
|
return i(), T(q, null, [
|
|
3018
2608
|
w(h, X(y.$attrs, {
|
|
@@ -3033,7 +2623,7 @@ const zl = {
|
|
|
3033
2623
|
})
|
|
3034
2624
|
]),
|
|
3035
2625
|
default: s(() => [
|
|
3036
|
-
c("div",
|
|
2626
|
+
c("div", ua, [
|
|
3037
2627
|
w(_, {
|
|
3038
2628
|
bordered: "",
|
|
3039
2629
|
rowKey: "id",
|
|
@@ -3044,36 +2634,36 @@ const zl = {
|
|
|
3044
2634
|
scroll: { y: e.scrollY },
|
|
3045
2635
|
onChange: B
|
|
3046
2636
|
}, ke({
|
|
3047
|
-
bodyCell: s(({ column:
|
|
3048
|
-
|
|
3049
|
-
|
|
2637
|
+
bodyCell: s(({ column: x, record: O }) => [
|
|
2638
|
+
x && x.needTooltip ? (i(), T(q, { key: 0 }, [
|
|
2639
|
+
x.needTooltip ? (i(), P(F, { key: 0 }, {
|
|
3050
2640
|
title: s(() => [
|
|
3051
|
-
A(C(O[
|
|
2641
|
+
A(C(O[x.dataIndex]), 1)
|
|
3052
2642
|
]),
|
|
3053
2643
|
default: s(() => [
|
|
3054
|
-
A(" " + C(O[
|
|
2644
|
+
A(" " + C(O[x.dataIndex]), 1)
|
|
3055
2645
|
]),
|
|
3056
2646
|
_: 2
|
|
3057
2647
|
}, 1024)) : N("", !0)
|
|
3058
2648
|
], 64)) : N("", !0),
|
|
3059
|
-
|
|
3060
|
-
c("div",
|
|
2649
|
+
x && x.needCopy ? (i(), T(q, { key: 1 }, [
|
|
2650
|
+
c("div", ba, C(O[x.dataIndex]), 1),
|
|
3061
2651
|
w(S, {
|
|
3062
|
-
"cp-text": O[
|
|
2652
|
+
"cp-text": O[x.dataIndex],
|
|
3063
2653
|
style: { position: "relative" }
|
|
3064
2654
|
}, null, 8, ["cp-text"])
|
|
3065
2655
|
], 64)) : N("", !0),
|
|
3066
|
-
|
|
3067
|
-
A(C(D(O[
|
|
2656
|
+
x && x.needFormat ? (i(), T(q, { key: 2 }, [
|
|
2657
|
+
A(C(D(O[x.dataIndex], x.operateTime)), 1)
|
|
3068
2658
|
], 64)) : N("", !0)
|
|
3069
2659
|
]),
|
|
3070
2660
|
_: 2
|
|
3071
2661
|
}, [
|
|
3072
2662
|
y.$slots.headerCell ? {
|
|
3073
2663
|
name: "headerCell",
|
|
3074
|
-
fn: s(({ column:
|
|
3075
|
-
|
|
3076
|
-
A(C(
|
|
2664
|
+
fn: s(({ column: x }) => [
|
|
2665
|
+
j(y.$slots, "headerCell", { column: x }, () => [
|
|
2666
|
+
A(C(x.title), 1)
|
|
3077
2667
|
], !0)
|
|
3078
2668
|
]),
|
|
3079
2669
|
key: "0"
|
|
@@ -3086,12 +2676,12 @@ const zl = {
|
|
|
3086
2676
|
l.value ? {
|
|
3087
2677
|
name: "title",
|
|
3088
2678
|
fn: s(() => [
|
|
3089
|
-
|
|
2679
|
+
j(y.$slots, "title", {}, void 0, !0)
|
|
3090
2680
|
]),
|
|
3091
2681
|
key: "0"
|
|
3092
2682
|
} : void 0
|
|
3093
2683
|
]), 1040, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
|
|
3094
|
-
e.needBtn ?
|
|
2684
|
+
e.needBtn ? j(y.$slots, "default", { key: 0 }, () => [
|
|
3095
2685
|
w(b, { onClick: U }, {
|
|
3096
2686
|
default: s(() => [
|
|
3097
2687
|
A(C(e.logBtnText), 1)
|
|
@@ -3102,68 +2692,126 @@ const zl = {
|
|
|
3102
2692
|
], 64);
|
|
3103
2693
|
};
|
|
3104
2694
|
}
|
|
3105
|
-
}),
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
__name: "HbLibCard",
|
|
3116
|
-
props: {
|
|
3117
|
-
// 卡片标题
|
|
3118
|
-
cardTitle: {
|
|
3119
|
-
type: String,
|
|
3120
|
-
default: ""
|
|
3121
|
-
},
|
|
3122
|
-
// 是否是表单卡片 主要是布局样式不一样
|
|
3123
|
-
isForm: {
|
|
3124
|
-
type: Boolean,
|
|
3125
|
-
default: !1
|
|
3126
|
-
},
|
|
3127
|
-
// 是否是弹窗
|
|
3128
|
-
isModal: {
|
|
3129
|
-
type: Boolean,
|
|
3130
|
-
default: !1
|
|
3131
|
-
},
|
|
3132
|
-
// 布局 方式 默认2列/行 可以分为1 / 3 / 4列/行
|
|
3133
|
-
// 同时可以新增col_1 / col_2 / col_3 / col_4 col_all来控制每个item的宽度
|
|
3134
|
-
layout: {
|
|
3135
|
-
type: Number,
|
|
3136
|
-
default: 2
|
|
3137
|
-
},
|
|
3138
|
-
formItemMb: {
|
|
3139
|
-
type: Number
|
|
3140
|
-
}
|
|
2695
|
+
}), pa = /* @__PURE__ */ Z(fa, [["__scopeId", "data-v-ac23253c"]]), ha = oe(pa), ye = (e) => (e.install = (o) => {
|
|
2696
|
+
o.component(e.name || "AnonymousComponent", e);
|
|
2697
|
+
}, e), ma = {
|
|
2698
|
+
// 图片上传组件的配置
|
|
2699
|
+
importFile: {
|
|
2700
|
+
isRequired: !1,
|
|
2701
|
+
modalWidth: 800,
|
|
2702
|
+
maxCount: 1,
|
|
2703
|
+
multiple: !1,
|
|
2704
|
+
acceptFile: "image/*"
|
|
3141
2705
|
},
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
2706
|
+
// 列表页table组件的配置
|
|
2707
|
+
listTable: {
|
|
2708
|
+
align: "left",
|
|
2709
|
+
colSaveTimeOut: 800,
|
|
2710
|
+
defaultColWidth: 200,
|
|
2711
|
+
ellipsisNumber: 10
|
|
2712
|
+
},
|
|
2713
|
+
HbLibListPageContainer: {
|
|
2714
|
+
offsetBottom: 20,
|
|
2715
|
+
minHeight: 300,
|
|
2716
|
+
timeOut: 100,
|
|
2717
|
+
offsetHeight: 110,
|
|
2718
|
+
isUnFixTbHeight: !0
|
|
2719
|
+
},
|
|
2720
|
+
HbLibFormItemFilterModal: {
|
|
2721
|
+
modalWidth: 800,
|
|
2722
|
+
defaultShowCount: 2
|
|
2723
|
+
},
|
|
2724
|
+
HbLibDetailBox: {
|
|
2725
|
+
descLabelWidth: 150,
|
|
2726
|
+
descValueWidth: 200,
|
|
2727
|
+
needSetDesDefault: !1,
|
|
2728
|
+
desDefault: "-",
|
|
2729
|
+
setDefaultValueTimeOut: 600,
|
|
2730
|
+
backTopBottom: 150
|
|
2731
|
+
},
|
|
2732
|
+
HbLibUnDetailBox: {
|
|
2733
|
+
backTopBottom: 150
|
|
2734
|
+
},
|
|
2735
|
+
HbLibCard: {
|
|
2736
|
+
// 表单距离底部的距离
|
|
2737
|
+
formItemMb: 10
|
|
2738
|
+
}
|
|
2739
|
+
}, va = { class: "hb_ui_config" }, ga = /* @__PURE__ */ G({
|
|
2740
|
+
name: "HbUiConfig",
|
|
2741
|
+
__name: "hbUiConfig",
|
|
2742
|
+
props: {
|
|
2743
|
+
config: {}
|
|
2744
|
+
},
|
|
2745
|
+
setup(e) {
|
|
2746
|
+
const o = e;
|
|
2747
|
+
let t = null;
|
|
2748
|
+
return te(
|
|
2749
|
+
() => o.config,
|
|
2750
|
+
(n) => {
|
|
2751
|
+
t = Te(jt({}, ma, n));
|
|
2752
|
+
},
|
|
2753
|
+
{ deep: !0, immediate: !0 }
|
|
2754
|
+
), Lt(Xe, t), (n, u) => (i(), T("div", va, [
|
|
2755
|
+
j(n.$slots, "default")
|
|
2756
|
+
]));
|
|
2757
|
+
}
|
|
2758
|
+
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), ya = oe(ga), _a = { class: "hb_card" }, La = {
|
|
2759
|
+
key: 0,
|
|
2760
|
+
class: "hb_card_header"
|
|
2761
|
+
}, Ca = { class: "hb_fix" }, ka = { class: "hb_card_header-title" }, Sa = { class: "hb_card_header-action" }, Ta = { class: "hb_card_body" }, wa = /* @__PURE__ */ G({
|
|
2762
|
+
name: "HbLibCard",
|
|
2763
|
+
__name: "HbLibCard",
|
|
2764
|
+
props: {
|
|
2765
|
+
// 卡片标题
|
|
2766
|
+
cardTitle: {
|
|
2767
|
+
type: String,
|
|
2768
|
+
default: ""
|
|
2769
|
+
},
|
|
2770
|
+
// 是否是表单卡片 主要是布局样式不一样
|
|
2771
|
+
isForm: {
|
|
2772
|
+
type: Boolean,
|
|
2773
|
+
default: !1
|
|
2774
|
+
},
|
|
2775
|
+
// 是否是弹窗
|
|
2776
|
+
isModal: {
|
|
2777
|
+
type: Boolean,
|
|
2778
|
+
default: !1
|
|
2779
|
+
},
|
|
2780
|
+
// 布局 方式 默认2列/行 可以分为1 / 3 / 4列/行
|
|
2781
|
+
// 同时可以新增col_1 / col_2 / col_3 / col_4 col_all来控制每个item的宽度
|
|
2782
|
+
layout: {
|
|
2783
|
+
type: Number,
|
|
2784
|
+
default: 2
|
|
2785
|
+
},
|
|
2786
|
+
formItemMb: {
|
|
2787
|
+
type: Number
|
|
2788
|
+
}
|
|
2789
|
+
},
|
|
2790
|
+
setup(e) {
|
|
2791
|
+
const o = fe(Xe), t = e, n = z(() => {
|
|
2792
|
+
let u = t.formItemMb || o?.HbLibCard?.formItemMb;
|
|
2793
|
+
return u ? { "--hb-card-form-item-mb": u + "px" } : {};
|
|
2794
|
+
});
|
|
2795
|
+
return (u, d) => (i(), T("div", X({ class: "hb_card_wrapper" }, u.$attrs), [
|
|
2796
|
+
c("div", {
|
|
2797
|
+
class: Y(e.isModal ? "modal__module-card" : "__module-card")
|
|
2798
|
+
}, [
|
|
2799
|
+
c("div", _a, [
|
|
2800
|
+
e.cardTitle ? (i(), T("div", La, [
|
|
2801
|
+
c("div", Ca, [
|
|
2802
|
+
c("span", ka, [
|
|
2803
|
+
j(u.$slots, "cardTitle", {}, () => [
|
|
2804
|
+
A(C(e.cardTitle), 1)
|
|
2805
|
+
], !0)
|
|
2806
|
+
]),
|
|
2807
|
+
c("div", Sa, [
|
|
2808
|
+
j(u.$slots, "cardAct", {}, void 0, !0)
|
|
2809
|
+
])
|
|
2810
|
+
])
|
|
2811
|
+
])) : N("", !0),
|
|
2812
|
+
c("div", Ta, [
|
|
2813
|
+
c("section", {
|
|
2814
|
+
class: Y({
|
|
3167
2815
|
hb_card_form: e.isForm && !e.isModal,
|
|
3168
2816
|
hb_card_flex_form: e.isForm && e.isModal,
|
|
3169
2817
|
l1c: e.layout == 1,
|
|
@@ -3172,17 +2820,17 @@ const zl = {
|
|
|
3172
2820
|
}),
|
|
3173
2821
|
style: re(n.value)
|
|
3174
2822
|
}, [
|
|
3175
|
-
|
|
2823
|
+
j(u.$slots, "default", {}, void 0, !0)
|
|
3176
2824
|
], 6)
|
|
3177
2825
|
])
|
|
3178
2826
|
])
|
|
3179
2827
|
], 2)
|
|
3180
2828
|
], 16));
|
|
3181
2829
|
}
|
|
3182
|
-
}),
|
|
2830
|
+
}), Ha = /* @__PURE__ */ Z(wa, [["__scopeId", "data-v-4d8c1b1b"]]), xa = ye(Ha), Fa = ["onClick"], $a = { class: "step" }, Ia = {
|
|
3183
2831
|
key: 0,
|
|
3184
2832
|
class: "line"
|
|
3185
|
-
},
|
|
2833
|
+
}, Ma = ["title"], Da = /* @__PURE__ */ G({
|
|
3186
2834
|
name: "HbLibAnchor",
|
|
3187
2835
|
__name: "HbLibAnchor",
|
|
3188
2836
|
props: {
|
|
@@ -3191,14 +2839,14 @@ const zl = {
|
|
|
3191
2839
|
containerSelector: {}
|
|
3192
2840
|
},
|
|
3193
2841
|
setup(e) {
|
|
3194
|
-
const
|
|
3195
|
-
const a =
|
|
2842
|
+
const o = e, t = E(""), n = o.offsetTop ?? 160, u = z(() => o.anchors.filter((a) => typeof a.visible == "function" ? a.visible() : a.visible !== !1)), d = () => {
|
|
2843
|
+
const a = o.containerSelector || "#subpackage_container";
|
|
3196
2844
|
return document.querySelector(a) || window;
|
|
3197
2845
|
}, r = (a) => {
|
|
3198
2846
|
const l = d(), v = a.target.startsWith("#") || a.target.startsWith(".") ? a.target : `#${a.target}`, g = document.querySelector(v);
|
|
3199
2847
|
if (!g) return;
|
|
3200
2848
|
let f = g.offsetTop;
|
|
3201
|
-
l instanceof HTMLElement && (f -= l.offsetTop), f -= n, l instanceof Window ? window.scrollTo({ top: f, behavior: "smooth" }) : l.scrollTo({ top: f, behavior: "smooth" }),
|
|
2849
|
+
l instanceof HTMLElement && (f -= l.offsetTop), f -= n, l instanceof Window ? window.scrollTo({ top: f, behavior: "smooth" }) : l.scrollTo({ top: f, behavior: "smooth" }), t.value = a.target;
|
|
3202
2850
|
}, p = () => {
|
|
3203
2851
|
const a = d();
|
|
3204
2852
|
let l = 0;
|
|
@@ -3210,7 +2858,7 @@ const zl = {
|
|
|
3210
2858
|
let $ = B.offsetTop;
|
|
3211
2859
|
a instanceof HTMLElement && ($ -= a.offsetTop), l >= $ && (v = g.target);
|
|
3212
2860
|
}
|
|
3213
|
-
|
|
2861
|
+
t.value = v;
|
|
3214
2862
|
};
|
|
3215
2863
|
return he(() => {
|
|
3216
2864
|
d().addEventListener("scroll", p), p();
|
|
@@ -3222,30 +2870,30 @@ const zl = {
|
|
|
3222
2870
|
}, [
|
|
3223
2871
|
(i(!0), T(q, null, ie(u.value, (v, g) => (i(), T("div", {
|
|
3224
2872
|
key: v.target,
|
|
3225
|
-
class: Y(["anchor-item", { isActive:
|
|
2873
|
+
class: Y(["anchor-item", { isActive: t.value === v.target }]),
|
|
3226
2874
|
onClick: (f) => r(v)
|
|
3227
2875
|
}, [
|
|
3228
|
-
c("div",
|
|
3229
|
-
g !== u.value.length - 1 ? (i(), T("div",
|
|
2876
|
+
c("div", $a, [
|
|
2877
|
+
g !== u.value.length - 1 ? (i(), T("div", Ia)) : N("", !0),
|
|
3230
2878
|
l[0] || (l[0] = c("div", { class: "circle" }, null, -1))
|
|
3231
2879
|
]),
|
|
3232
2880
|
c("span", {
|
|
3233
2881
|
class: "title",
|
|
3234
2882
|
title: v.title
|
|
3235
|
-
}, C(v.title.length > 12 ? v.title.slice(0, 12) + "..." : v.title), 9,
|
|
3236
|
-
], 10,
|
|
2883
|
+
}, C(v.title.length > 12 ? v.title.slice(0, 12) + "..." : v.title), 9, Ma)
|
|
2884
|
+
], 10, Fa))), 128))
|
|
3237
2885
|
], 4));
|
|
3238
2886
|
}
|
|
3239
|
-
}),
|
|
2887
|
+
}), Ba = /* @__PURE__ */ Z(Da, [["__scopeId", "data-v-d51548d8"]]), Aa = ye(Ba), Oa = { class: "hb_detail_top_act_left" }, Ea = {
|
|
3240
2888
|
key: 1,
|
|
3241
2889
|
class: "hb_detail_top_wrapper_sticky"
|
|
3242
|
-
},
|
|
2890
|
+
}, za = { class: "hb_detail_top_act" }, Na = {
|
|
3243
2891
|
key: 0,
|
|
3244
2892
|
class: "hb_detail_all_info"
|
|
3245
|
-
},
|
|
2893
|
+
}, Ra = { class: "hb_detail_all_info_left" }, Pa = { class: "hb_detail_info_title" }, Ua = {
|
|
3246
2894
|
key: 0,
|
|
3247
2895
|
class: "hb_detail_info_content"
|
|
3248
|
-
},
|
|
2896
|
+
}, Va = { class: "create_by" }, Wa = { class: "hb_detail_all_info_right" }, ja = { class: "hb_edit_detail_content_wrapper" }, Ya = { class: "hb_detail_content" }, qa = { class: "hb-back-top-inner" }, Ka = /* @__PURE__ */ G({
|
|
3249
2897
|
name: "HbLibDetailBox",
|
|
3250
2898
|
__name: "HbLibDetailBox",
|
|
3251
2899
|
props: {
|
|
@@ -3307,15 +2955,15 @@ const zl = {
|
|
|
3307
2955
|
}
|
|
3308
2956
|
},
|
|
3309
2957
|
setup(e) {
|
|
3310
|
-
const { t } = de(),
|
|
3311
|
-
|
|
3312
|
-
}, d =
|
|
2958
|
+
const { t: o } = de(), t = e, n = fe(Xe), u = () => {
|
|
2959
|
+
t.backFn ? t.backFn() : window.history.back();
|
|
2960
|
+
}, d = z(() => t.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), r = z(() => {
|
|
3313
2961
|
const U = {};
|
|
3314
|
-
return
|
|
3315
|
-
hb_need_set_desc_label_width:
|
|
3316
|
-
hb_need_set_desc_value_width:
|
|
2962
|
+
return t.needFixWidth ? {
|
|
2963
|
+
hb_need_set_desc_label_width: t.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
2964
|
+
hb_need_set_desc_value_width: t.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3317
2965
|
} : U;
|
|
3318
|
-
}), p = () => document.querySelector(
|
|
2966
|
+
}), p = () => document.querySelector(t.container), a = E(!1), l = E(null), { top: v } = Xt(l), g = z(p), { y: f } = eo(g);
|
|
3319
2967
|
te(
|
|
3320
2968
|
f,
|
|
3321
2969
|
(U) => {
|
|
@@ -3325,8 +2973,8 @@ const zl = {
|
|
|
3325
2973
|
);
|
|
3326
2974
|
const B = (U) => {
|
|
3327
2975
|
document.querySelectorAll(".hb_card_body").forEach((k) => {
|
|
3328
|
-
k.querySelectorAll(".ant-descriptions-item-content span").forEach((
|
|
3329
|
-
|
|
2976
|
+
k.querySelectorAll(".ant-descriptions-item-content span").forEach((H) => {
|
|
2977
|
+
H.textContent?.trim() || (H.textContent = U);
|
|
3330
2978
|
});
|
|
3331
2979
|
});
|
|
3332
2980
|
};
|
|
@@ -3338,8 +2986,8 @@ const zl = {
|
|
|
3338
2986
|
}), we(() => {
|
|
3339
2987
|
$ && clearTimeout($);
|
|
3340
2988
|
}), (U, D) => {
|
|
3341
|
-
const k = V("RollbackOutlined"), y = V("a-divider"),
|
|
3342
|
-
return i(),
|
|
2989
|
+
const k = V("RollbackOutlined"), y = V("a-divider"), H = V("a-spin");
|
|
2990
|
+
return i(), P(H, { spinning: e.spinning }, {
|
|
3343
2991
|
default: s(() => [
|
|
3344
2992
|
c("div", {
|
|
3345
2993
|
class: Y(["hb_detail_wrapper", r.value]),
|
|
@@ -3352,55 +3000,55 @@ const zl = {
|
|
|
3352
3000
|
key: 0,
|
|
3353
3001
|
class: Y(["hb_detail_top_act_sticky", a.value ? "can_show" : ""])
|
|
3354
3002
|
}, [
|
|
3355
|
-
c("div",
|
|
3003
|
+
c("div", Oa, [
|
|
3356
3004
|
w(k, { style: { color: "#ff5000" } }),
|
|
3357
3005
|
c("a", {
|
|
3358
3006
|
href: "javascript:;",
|
|
3359
3007
|
class: "ml6",
|
|
3360
3008
|
onClick: u
|
|
3361
|
-
}, C(L(
|
|
3009
|
+
}, C(L(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3362
3010
|
w(y, { type: "vertical" }),
|
|
3363
3011
|
c("span", null, C(e.stickyTitle), 1)
|
|
3364
3012
|
]),
|
|
3365
3013
|
D[0] || (D[0] = c("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3366
3014
|
], 2)) : N("", !0),
|
|
3367
|
-
e.needTotalInfoBox ? (i(), T("div",
|
|
3368
|
-
c("div",
|
|
3015
|
+
e.needTotalInfoBox ? (i(), T("div", Ea, [
|
|
3016
|
+
c("div", za, [
|
|
3369
3017
|
w(k),
|
|
3370
3018
|
c("a", {
|
|
3371
3019
|
href: "javascript:;",
|
|
3372
3020
|
class: "ml6",
|
|
3373
3021
|
onClick: u
|
|
3374
|
-
}, C(L(
|
|
3022
|
+
}, C(L(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3375
3023
|
w(y, { type: "vertical" }),
|
|
3376
3024
|
c("span", null, C(e.stickyTitle), 1)
|
|
3377
3025
|
]),
|
|
3378
|
-
e.needTotalInfoBox ? (i(), T("div",
|
|
3379
|
-
c("aside",
|
|
3380
|
-
|
|
3381
|
-
c("div",
|
|
3382
|
-
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div",
|
|
3383
|
-
c("span",
|
|
3026
|
+
e.needTotalInfoBox ? (i(), T("div", Na, [
|
|
3027
|
+
c("aside", Ra, [
|
|
3028
|
+
j(U.$slots, "totalInfoLeft", {}, () => [
|
|
3029
|
+
c("div", Pa, C(e.totalInfo.totalInfoTitle), 1),
|
|
3030
|
+
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div", Ua, [
|
|
3031
|
+
c("span", Va, C(e.totalInfo.totalInfoSubTitle1) + C(e.totalInfo.totalInfoSubVal1), 1),
|
|
3384
3032
|
c("span", null, C(e.totalInfo.totalInfoSubTitle2) + C(e.totalInfo.totalInfoSubVal2), 1)
|
|
3385
3033
|
])) : N("", !0)
|
|
3386
3034
|
], !0)
|
|
3387
3035
|
]),
|
|
3388
|
-
c("aside",
|
|
3389
|
-
|
|
3036
|
+
c("aside", Wa, [
|
|
3037
|
+
j(U.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3390
3038
|
])
|
|
3391
3039
|
])) : N("", !0)
|
|
3392
3040
|
])) : N("", !0),
|
|
3393
|
-
c("div",
|
|
3394
|
-
c("div",
|
|
3395
|
-
|
|
3041
|
+
c("div", ja, [
|
|
3042
|
+
c("div", Ya, [
|
|
3043
|
+
j(U.$slots, "detailContent", {}, void 0, !0)
|
|
3396
3044
|
])
|
|
3397
3045
|
]),
|
|
3398
|
-
w(L(
|
|
3046
|
+
w(L(wt), {
|
|
3399
3047
|
target: p,
|
|
3400
3048
|
style: re({ bottom: d.value + "px" })
|
|
3401
3049
|
}, {
|
|
3402
3050
|
default: s(() => [
|
|
3403
|
-
c("div",
|
|
3051
|
+
c("div", qa, [
|
|
3404
3052
|
w(L(Ht))
|
|
3405
3053
|
])
|
|
3406
3054
|
]),
|
|
@@ -3412,7 +3060,7 @@ const zl = {
|
|
|
3412
3060
|
}, 8, ["spinning"]);
|
|
3413
3061
|
};
|
|
3414
3062
|
}
|
|
3415
|
-
}),
|
|
3063
|
+
}), Ga = /* @__PURE__ */ Z(Ka, [["__scopeId", "data-v-f2c2c397"]]), Ja = ye(Ga), Qa = /* @__PURE__ */ G({
|
|
3416
3064
|
name: "HbLibFooterBar",
|
|
3417
3065
|
__name: "HbLibFooterBar",
|
|
3418
3066
|
props: {
|
|
@@ -3444,7 +3092,7 @@ const zl = {
|
|
|
3444
3092
|
}
|
|
3445
3093
|
},
|
|
3446
3094
|
setup(e) {
|
|
3447
|
-
const
|
|
3095
|
+
const o = e, t = (a, l = 300) => It(a, l), n = z(() => o.buttons.filter((l) => {
|
|
3448
3096
|
if (l.condition === void 0 || l.condition === null)
|
|
3449
3097
|
return !0;
|
|
3450
3098
|
if (typeof l.condition == "boolean")
|
|
@@ -3454,8 +3102,8 @@ const zl = {
|
|
|
3454
3102
|
}).map((l) => ({
|
|
3455
3103
|
...l,
|
|
3456
3104
|
// 为每个按钮创建防抖后的点击处理器
|
|
3457
|
-
onClick:
|
|
3458
|
-
}))), u =
|
|
3105
|
+
onClick: t(l.onClick, l.debounceTime || 300)
|
|
3106
|
+
}))), u = E(0), d = (a) => {
|
|
3459
3107
|
let l = 0;
|
|
3460
3108
|
return (Array.isArray(a) ? a : [a]).forEach((g) => {
|
|
3461
3109
|
let f = [];
|
|
@@ -3469,11 +3117,11 @@ const zl = {
|
|
|
3469
3117
|
});
|
|
3470
3118
|
}), l;
|
|
3471
3119
|
}, r = () => {
|
|
3472
|
-
|
|
3120
|
+
o.leftElements && (u.value = d(o.leftElements) + 1);
|
|
3473
3121
|
};
|
|
3474
3122
|
let p = null;
|
|
3475
3123
|
return he(() => {
|
|
3476
|
-
const a =
|
|
3124
|
+
const a = o.getContainer();
|
|
3477
3125
|
a !== window && a instanceof HTMLElement && a.addEventListener("scroll", () => {
|
|
3478
3126
|
}), r(), p = new MutationObserver(() => {
|
|
3479
3127
|
r();
|
|
@@ -3490,7 +3138,7 @@ const zl = {
|
|
|
3490
3138
|
}), Je(() => {
|
|
3491
3139
|
p && p.disconnect();
|
|
3492
3140
|
}), (a, l) => {
|
|
3493
|
-
const v = V("a-button"), g = V("a-space"), f = V("a-affix"), B =
|
|
3141
|
+
const v = V("a-button"), g = V("a-space"), f = V("a-affix"), B = kt("has");
|
|
3494
3142
|
return i(), T("div", {
|
|
3495
3143
|
class: "footer-affix-wrapper",
|
|
3496
3144
|
style: re({ "--pageHeaderOrFonterLeft": u.value + "px" })
|
|
@@ -3510,7 +3158,7 @@ const zl = {
|
|
|
3510
3158
|
}, [
|
|
3511
3159
|
w(g, null, {
|
|
3512
3160
|
default: s(() => [
|
|
3513
|
-
(i(!0), T(q, null, ie(n.value, ($) => be((i(),
|
|
3161
|
+
(i(!0), T(q, null, ie(n.value, ($) => be((i(), P(v, {
|
|
3514
3162
|
key: $.key,
|
|
3515
3163
|
type: $.type || "default",
|
|
3516
3164
|
danger: $.danger,
|
|
@@ -3536,7 +3184,7 @@ const zl = {
|
|
|
3536
3184
|
], 4);
|
|
3537
3185
|
};
|
|
3538
3186
|
}
|
|
3539
|
-
}),
|
|
3187
|
+
}), Za = /* @__PURE__ */ Z(Qa, [["__scopeId", "data-v-23f13fb5"]]), Xa = ye(Za), en = { class: "modal__detail-content" }, tn = /* @__PURE__ */ G({
|
|
3540
3188
|
name: "HbLibModal",
|
|
3541
3189
|
__name: "HbLibModal",
|
|
3542
3190
|
props: {
|
|
@@ -3583,60 +3231,60 @@ const zl = {
|
|
|
3583
3231
|
}
|
|
3584
3232
|
},
|
|
3585
3233
|
emits: ["update:visible", "ok", "cancel"],
|
|
3586
|
-
setup(e, { expose:
|
|
3587
|
-
const n =
|
|
3234
|
+
setup(e, { expose: o, emit: t }) {
|
|
3235
|
+
const n = t, u = e, d = z({
|
|
3588
3236
|
get: () => u.visible,
|
|
3589
3237
|
set: (O) => n("update:visible", O)
|
|
3590
|
-
}), r =
|
|
3238
|
+
}), r = E(null), p = z(() => ({ top: "10px", ...u.modalStyle })), a = z(() => ({ overflow: "hidden", ...u.modalStyle })), l = z(() => ({
|
|
3591
3239
|
maxHeight: "calc(100vh - 120px)",
|
|
3592
3240
|
overflowY: "auto",
|
|
3593
3241
|
padding: "0 6px",
|
|
3594
3242
|
...u.bodyStyle
|
|
3595
|
-
})), { x: v, y: g, isDragging: f } =
|
|
3243
|
+
})), { x: v, y: g, isDragging: f } = to(r), B = E(0), $ = E(0), U = E(!1), D = E(0), k = E(0), y = E(0), H = E(0), F = E({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3596
3244
|
let S = null;
|
|
3597
3245
|
const _ = () => {
|
|
3598
|
-
D.value = 0, k.value = 0, y.value = 0,
|
|
3246
|
+
D.value = 0, k.value = 0, y.value = 0, H.value = 0, U.value = !1;
|
|
3599
3247
|
};
|
|
3600
3248
|
te(d, (O) => {
|
|
3601
3249
|
O ? setTimeout(() => {
|
|
3602
3250
|
_();
|
|
3603
3251
|
}, 50) : (S && clearTimeout(S), S = setTimeout(() => {
|
|
3604
|
-
D.value = 0, k.value = 0, y.value = 0,
|
|
3252
|
+
D.value = 0, k.value = 0, y.value = 0, H.value = 0;
|
|
3605
3253
|
}, 300));
|
|
3606
3254
|
}), te([v, g], () => {
|
|
3607
3255
|
if (!U.value) {
|
|
3608
3256
|
B.value = v.value, $.value = g.value;
|
|
3609
3257
|
const O = document.body.getBoundingClientRect(), K = r.value.getBoundingClientRect();
|
|
3610
|
-
F.value.right = O.width - K.width, F.value.bottom = O.height - K.height, y.value = D.value,
|
|
3258
|
+
F.value.right = O.width - K.width, F.value.bottom = O.height - K.height, y.value = D.value, H.value = k.value;
|
|
3611
3259
|
}
|
|
3612
3260
|
U.value = !0;
|
|
3613
3261
|
}), te(f, () => {
|
|
3614
3262
|
f || (U.value = !1);
|
|
3615
|
-
}),
|
|
3616
|
-
U.value && (D.value = y.value + Math.min(Math.max(F.value.left, v.value), F.value.right) - B.value, k.value =
|
|
3263
|
+
}), St(() => {
|
|
3264
|
+
U.value && (D.value = y.value + Math.min(Math.max(F.value.left, v.value), F.value.right) - B.value, k.value = H.value + Math.min(Math.max(F.value.top, g.value), F.value.bottom) - $.value);
|
|
3617
3265
|
});
|
|
3618
|
-
const b =
|
|
3266
|
+
const b = z(() => ({
|
|
3619
3267
|
transform: `translate(${D.value}px, ${k.value}px)`
|
|
3620
3268
|
})), h = () => {
|
|
3621
3269
|
n("cancel");
|
|
3622
|
-
},
|
|
3270
|
+
}, x = () => {
|
|
3623
3271
|
n("ok");
|
|
3624
3272
|
};
|
|
3625
3273
|
return we(() => {
|
|
3626
3274
|
S && clearTimeout(S);
|
|
3627
|
-
}),
|
|
3628
|
-
handleOk:
|
|
3275
|
+
}), o({
|
|
3276
|
+
handleOk: x,
|
|
3629
3277
|
handleCancel: h
|
|
3630
3278
|
}), (O, K) => {
|
|
3631
3279
|
const se = V("a-spin"), M = V("a-modal");
|
|
3632
|
-
return i(),
|
|
3280
|
+
return i(), P(M, X({
|
|
3633
3281
|
style: p.value,
|
|
3634
3282
|
bodyStyle: l.value,
|
|
3635
3283
|
ref: "modalRef",
|
|
3636
3284
|
visible: d.value,
|
|
3637
|
-
"onUpdate:visible": K[0] || (K[0] = (
|
|
3285
|
+
"onUpdate:visible": K[0] || (K[0] = (R) => d.value = R),
|
|
3638
3286
|
"wrap-style": a.value,
|
|
3639
|
-
onOk:
|
|
3287
|
+
onOk: x,
|
|
3640
3288
|
onCancel: h
|
|
3641
3289
|
}, O.$attrs), ke({
|
|
3642
3290
|
title: s(() => [
|
|
@@ -3645,17 +3293,17 @@ const zl = {
|
|
|
3645
3293
|
ref: r,
|
|
3646
3294
|
style: { width: "100%", cursor: "move" }
|
|
3647
3295
|
}, [
|
|
3648
|
-
|
|
3296
|
+
j(O.$slots, "title", {}, () => [
|
|
3649
3297
|
A(C(e.title), 1)
|
|
3650
3298
|
], !0)
|
|
3651
3299
|
], 512)
|
|
3652
3300
|
]),
|
|
3653
|
-
modalRender: s(({ originVNode:
|
|
3301
|
+
modalRender: s(({ originVNode: R }) => [
|
|
3654
3302
|
(i(), T("div", {
|
|
3655
3303
|
key: d.value,
|
|
3656
3304
|
style: re(b.value)
|
|
3657
3305
|
}, [
|
|
3658
|
-
(i(),
|
|
3306
|
+
(i(), P(Tt(R)))
|
|
3659
3307
|
], 4))
|
|
3660
3308
|
]),
|
|
3661
3309
|
default: s(() => [
|
|
@@ -3671,8 +3319,8 @@ const zl = {
|
|
|
3671
3319
|
]),
|
|
3672
3320
|
style: re({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3673
3321
|
}, [
|
|
3674
|
-
c("div",
|
|
3675
|
-
|
|
3322
|
+
c("div", en, [
|
|
3323
|
+
j(O.$slots, "default", {}, void 0, !0)
|
|
3676
3324
|
])
|
|
3677
3325
|
], 6)
|
|
3678
3326
|
]),
|
|
@@ -3684,20 +3332,20 @@ const zl = {
|
|
|
3684
3332
|
O.$slots.footer ? {
|
|
3685
3333
|
name: "footer",
|
|
3686
3334
|
fn: s(() => [
|
|
3687
|
-
|
|
3335
|
+
j(O.$slots, "footer", {}, void 0, !0)
|
|
3688
3336
|
]),
|
|
3689
3337
|
key: "0"
|
|
3690
3338
|
} : void 0
|
|
3691
3339
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3692
3340
|
};
|
|
3693
3341
|
}
|
|
3694
|
-
}),
|
|
3342
|
+
}), on = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-866a050a"]]), ln = ye(on), an = {
|
|
3695
3343
|
key: 0,
|
|
3696
3344
|
class: "hb_edit_header"
|
|
3697
|
-
},
|
|
3345
|
+
}, nn = { class: "__detail-content" }, sn = {
|
|
3698
3346
|
key: 1,
|
|
3699
3347
|
class: "hb_edit_footer"
|
|
3700
|
-
},
|
|
3348
|
+
}, rn = { class: "hb-back-top-inner" }, cn = /* @__PURE__ */ G({
|
|
3701
3349
|
name: "HbLibUnDetailBox",
|
|
3702
3350
|
__name: "HbLibUnDetailBox",
|
|
3703
3351
|
props: {
|
|
@@ -3721,32 +3369,32 @@ const zl = {
|
|
|
3721
3369
|
}
|
|
3722
3370
|
},
|
|
3723
3371
|
setup(e) {
|
|
3724
|
-
const
|
|
3725
|
-
return (r, p) => (i(),
|
|
3372
|
+
const o = E("vertical"), t = e, n = () => document.querySelector(t.container), u = fe("GLOBAL_CONFIG_KEY"), d = z(() => t.backTopBottom || u?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3373
|
+
return (r, p) => (i(), P(L(Wt), { spinning: e.spinning }, {
|
|
3726
3374
|
default: s(() => [
|
|
3727
3375
|
c("div", X({ class: "hb_edit_wrapper" }, r.$attrs, {
|
|
3728
3376
|
style: { "--hb-edit-form-label": e.formLabelWidth },
|
|
3729
3377
|
class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
|
|
3730
3378
|
}), [
|
|
3731
|
-
r.$slots.editHeader ? (i(), T("div",
|
|
3732
|
-
|
|
3379
|
+
r.$slots.editHeader ? (i(), T("div", an, [
|
|
3380
|
+
j(r.$slots, "editHeader", {}, void 0, !0)
|
|
3733
3381
|
])) : N("", !0),
|
|
3734
3382
|
c("div", {
|
|
3735
|
-
class: Y(["hb_edit_detail_content_wrapper",
|
|
3383
|
+
class: Y(["hb_edit_detail_content_wrapper", o.value === "vertical" ? "form_vertical" : ""])
|
|
3736
3384
|
}, [
|
|
3737
|
-
c("div",
|
|
3738
|
-
|
|
3385
|
+
c("div", nn, [
|
|
3386
|
+
j(r.$slots, "editContent", {}, void 0, !0)
|
|
3739
3387
|
])
|
|
3740
3388
|
], 2),
|
|
3741
|
-
r.$slots.editFooter ? (i(), T("div",
|
|
3742
|
-
|
|
3389
|
+
r.$slots.editFooter ? (i(), T("div", sn, [
|
|
3390
|
+
j(r.$slots, "editFooter", {}, void 0, !0)
|
|
3743
3391
|
])) : N("", !0),
|
|
3744
|
-
w(L(
|
|
3392
|
+
w(L(wt), {
|
|
3745
3393
|
target: n,
|
|
3746
3394
|
style: re({ bottom: d.value + "px" })
|
|
3747
3395
|
}, {
|
|
3748
3396
|
default: s(() => [
|
|
3749
|
-
c("div",
|
|
3397
|
+
c("div", rn, [
|
|
3750
3398
|
w(L(Ht))
|
|
3751
3399
|
])
|
|
3752
3400
|
]),
|
|
@@ -3757,7 +3405,7 @@ const zl = {
|
|
|
3757
3405
|
_: 3
|
|
3758
3406
|
}, 8, ["spinning"]));
|
|
3759
3407
|
}
|
|
3760
|
-
}),
|
|
3408
|
+
}), dn = /* @__PURE__ */ Z(cn, [["__scopeId", "data-v-41f1fc73"]]), un = ye(dn), bn = { class: "hb_edit_header_left" }, fn = { class: "hb_edit_header_title" }, pn = { class: "hb_edit_header_right" }, hn = /* @__PURE__ */ G({
|
|
3761
3409
|
name: "HbLibPageHeader",
|
|
3762
3410
|
__name: "HbLibPageHeader",
|
|
3763
3411
|
props: {
|
|
@@ -3775,7 +3423,7 @@ const zl = {
|
|
|
3775
3423
|
}
|
|
3776
3424
|
},
|
|
3777
3425
|
setup(e) {
|
|
3778
|
-
const { t } = de(),
|
|
3426
|
+
const { t: o } = de(), t = e, n = Qe(), u = E(0), d = z(() => n?.meta?.title || "");
|
|
3779
3427
|
function r(f, B = "offsetHeight") {
|
|
3780
3428
|
let $ = 0;
|
|
3781
3429
|
return (Array.isArray(f) ? f : [f]).forEach((D) => {
|
|
@@ -3791,9 +3439,9 @@ const zl = {
|
|
|
3791
3439
|
}), $;
|
|
3792
3440
|
}
|
|
3793
3441
|
const p = () => {
|
|
3794
|
-
|
|
3795
|
-
}, a =
|
|
3796
|
-
|
|
3442
|
+
t.topElements && (u.value = r(t.topElements));
|
|
3443
|
+
}, a = E(0), l = () => {
|
|
3444
|
+
t.leftElements && (a.value = r(t.leftElements, "offsetWidth") + 1);
|
|
3797
3445
|
};
|
|
3798
3446
|
let v = null;
|
|
3799
3447
|
he(() => {
|
|
@@ -3812,14 +3460,14 @@ const zl = {
|
|
|
3812
3460
|
}), Je(() => {
|
|
3813
3461
|
window.removeEventListener("resize", p), v && v.disconnect();
|
|
3814
3462
|
}), te(
|
|
3815
|
-
() =>
|
|
3463
|
+
() => t.topElements,
|
|
3816
3464
|
() => {
|
|
3817
3465
|
p();
|
|
3818
3466
|
},
|
|
3819
3467
|
{ immediate: !0 }
|
|
3820
3468
|
);
|
|
3821
3469
|
const g = () => {
|
|
3822
|
-
|
|
3470
|
+
t.backFn ? t.backFn() : window.history.back();
|
|
3823
3471
|
};
|
|
3824
3472
|
return (f, B) => {
|
|
3825
3473
|
const $ = V("a-divider");
|
|
@@ -3827,75 +3475,408 @@ const zl = {
|
|
|
3827
3475
|
class: "hb_edit_header",
|
|
3828
3476
|
style: re({ top: u.value + "px", "--pageHeaderOrFonterLeft": a.value + "px" })
|
|
3829
3477
|
}, [
|
|
3830
|
-
c("aside",
|
|
3478
|
+
c("aside", bn, [
|
|
3831
3479
|
c("a", {
|
|
3832
3480
|
href: "#",
|
|
3833
3481
|
class: "backBtn",
|
|
3834
3482
|
onClick: g
|
|
3835
|
-
}, C(L(
|
|
3483
|
+
}, C(L(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3836
3484
|
w($, { type: "vertical" }),
|
|
3837
|
-
c("span",
|
|
3485
|
+
c("span", fn, C(d.value), 1)
|
|
3838
3486
|
]),
|
|
3839
|
-
c("aside",
|
|
3840
|
-
|
|
3487
|
+
c("aside", pn, [
|
|
3488
|
+
j(f.$slots, "right", {}, void 0, !0)
|
|
3841
3489
|
])
|
|
3842
3490
|
], 4);
|
|
3843
3491
|
};
|
|
3844
3492
|
}
|
|
3845
|
-
}),
|
|
3493
|
+
}), mn = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-83fcd208"]]), vn = ye(mn), gn = {
|
|
3494
|
+
// 如果存在cpText时,K和V无效
|
|
3495
|
+
cpText: {
|
|
3496
|
+
type: String,
|
|
3497
|
+
default: ""
|
|
3498
|
+
},
|
|
3499
|
+
// 如果data传进来的是数组 那么K V L都需要
|
|
3500
|
+
// key
|
|
3501
|
+
K: {
|
|
3502
|
+
type: String,
|
|
3503
|
+
default: ""
|
|
3504
|
+
},
|
|
3505
|
+
// value
|
|
3506
|
+
V: {
|
|
3507
|
+
type: String
|
|
3508
|
+
},
|
|
3509
|
+
// label
|
|
3510
|
+
L: {
|
|
3511
|
+
type: String
|
|
3512
|
+
},
|
|
3513
|
+
// 数据源
|
|
3514
|
+
data: {
|
|
3515
|
+
type: [Array, Object]
|
|
3516
|
+
},
|
|
3517
|
+
// 气泡提示
|
|
3518
|
+
tooltipTitle: {
|
|
3519
|
+
type: String,
|
|
3520
|
+
default: ""
|
|
3521
|
+
},
|
|
3522
|
+
copySuccessTip: {
|
|
3523
|
+
type: String,
|
|
3524
|
+
default: ""
|
|
3525
|
+
},
|
|
3526
|
+
copyFailTip: {
|
|
3527
|
+
type: String,
|
|
3528
|
+
default: ""
|
|
3529
|
+
},
|
|
3530
|
+
cpStyle: {
|
|
3531
|
+
type: Object,
|
|
3532
|
+
default: () => ({})
|
|
3533
|
+
},
|
|
3534
|
+
classType: {
|
|
3535
|
+
type: String,
|
|
3536
|
+
default: "ab"
|
|
3537
|
+
}
|
|
3538
|
+
}, yn = /* @__PURE__ */ G({
|
|
3539
|
+
name: "HbLibCopy",
|
|
3540
|
+
__name: "copy",
|
|
3541
|
+
props: gn,
|
|
3542
|
+
setup(e) {
|
|
3543
|
+
const o = e, t = E();
|
|
3544
|
+
St(() => {
|
|
3545
|
+
t.value = o.data;
|
|
3546
|
+
});
|
|
3547
|
+
const n = z(() => o.tooltipTitle || "复制"), u = z(() => o.copySuccessTip || "复制成功"), d = z(() => o.copyFailTip || "复制失败"), r = z(() => {
|
|
3548
|
+
if (o.cpText) return o.cpText;
|
|
3549
|
+
let a = "";
|
|
3550
|
+
if (o.data)
|
|
3551
|
+
if (Array.isArray(o.data)) {
|
|
3552
|
+
if (o.K && o.V && o.L) {
|
|
3553
|
+
const l = o.data.find((v) => v?.[o.K] === o.V);
|
|
3554
|
+
a = l ? l[o.L] : "";
|
|
3555
|
+
}
|
|
3556
|
+
} else
|
|
3557
|
+
o.K && (a = o.data[o.K]);
|
|
3558
|
+
return a;
|
|
3559
|
+
}), p = () => {
|
|
3560
|
+
navigator.clipboard.writeText(r.value).then(() => {
|
|
3561
|
+
Se.success(u.value);
|
|
3562
|
+
}).catch(() => {
|
|
3563
|
+
Se.error(d.value);
|
|
3564
|
+
});
|
|
3565
|
+
};
|
|
3566
|
+
return (a, l) => r.value ? (i(), P(L(Me), {
|
|
3567
|
+
key: 0,
|
|
3568
|
+
title: n.value
|
|
3569
|
+
}, {
|
|
3570
|
+
default: s(() => [
|
|
3571
|
+
c("span", {
|
|
3572
|
+
class: "hb-lib-copy-text-eyevue",
|
|
3573
|
+
style: re({ ...a.cpStyle }),
|
|
3574
|
+
onClick: $e(p, ["stop", "prevent"])
|
|
3575
|
+
}, [...l[0] || (l[0] = [
|
|
3576
|
+
c("svg", {
|
|
3577
|
+
t: "1766643849597",
|
|
3578
|
+
class: "icon",
|
|
3579
|
+
viewBox: "0 0 1024 1024",
|
|
3580
|
+
version: "1.1",
|
|
3581
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3582
|
+
"p-id": "5022",
|
|
3583
|
+
width: "200",
|
|
3584
|
+
height: "200"
|
|
3585
|
+
}, [
|
|
3586
|
+
c("path", {
|
|
3587
|
+
d: "M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z",
|
|
3588
|
+
"p-id": "5023",
|
|
3589
|
+
fill: "#808080ba"
|
|
3590
|
+
}),
|
|
3591
|
+
c("path", {
|
|
3592
|
+
d: "M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z",
|
|
3593
|
+
"p-id": "5024",
|
|
3594
|
+
fill: "#808080ba"
|
|
3595
|
+
}),
|
|
3596
|
+
c("path", {
|
|
3597
|
+
d: "M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z",
|
|
3598
|
+
"p-id": "5025",
|
|
3599
|
+
fill: "#808080ba"
|
|
3600
|
+
})
|
|
3601
|
+
], -1)
|
|
3602
|
+
])], 4)
|
|
3603
|
+
]),
|
|
3604
|
+
_: 1
|
|
3605
|
+
}, 8, ["title"])) : N("", !0);
|
|
3606
|
+
}
|
|
3607
|
+
}), _n = /* @__PURE__ */ Z(yn, [["__scopeId", "data-v-2b6710a1"]]), Mt = oe(_n), Ln = {
|
|
3608
|
+
dragList: {
|
|
3609
|
+
type: Array,
|
|
3610
|
+
required: !0
|
|
3611
|
+
},
|
|
3612
|
+
// 拖拽的元素类型 可以是html元素 或者 vue组件
|
|
3613
|
+
childrenType: {
|
|
3614
|
+
type: String,
|
|
3615
|
+
default: "html"
|
|
3616
|
+
},
|
|
3617
|
+
// 拖拽的元素自定义样式
|
|
3618
|
+
dragClass: {
|
|
3619
|
+
type: String,
|
|
3620
|
+
default: "drag-item"
|
|
3621
|
+
},
|
|
3622
|
+
// 设置拖动元素的占位符类名 拖动起来后原来位置的元素会变成这个类名 就可以设置一些样式
|
|
3623
|
+
ghostClass: { type: String, default: null },
|
|
3624
|
+
// 拖拽元素被选中时添加的类名
|
|
3625
|
+
chosenClass: { type: String, default: null },
|
|
3626
|
+
// 是否可排序
|
|
3627
|
+
sort: {
|
|
3628
|
+
type: Boolean,
|
|
3629
|
+
default: !0
|
|
3630
|
+
},
|
|
3631
|
+
// 拖拽的元素自定义拖拽按钮 class 设置了它 盒子里只有有这个类名的元素才能启动盒子拖拽
|
|
3632
|
+
handle: {
|
|
3633
|
+
type: String,
|
|
3634
|
+
default: ""
|
|
3635
|
+
},
|
|
3636
|
+
// 过滤掉具有特定 class 的元素 不能拖拽
|
|
3637
|
+
filter: {
|
|
3638
|
+
type: String,
|
|
3639
|
+
default: ""
|
|
3640
|
+
},
|
|
3641
|
+
// 允许拖拽的元素 class
|
|
3642
|
+
draggable: {
|
|
3643
|
+
type: String,
|
|
3644
|
+
default: ""
|
|
3645
|
+
}
|
|
3646
|
+
}, Cn = /* @__PURE__ */ G({
|
|
3647
|
+
name: "HbDrag",
|
|
3648
|
+
__name: "index",
|
|
3649
|
+
props: Ln,
|
|
3650
|
+
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
3651
|
+
setup(e, { emit: o }) {
|
|
3652
|
+
const t = e, n = zt([]);
|
|
3653
|
+
te(
|
|
3654
|
+
() => t.dragList,
|
|
3655
|
+
(v) => {
|
|
3656
|
+
n.value = v;
|
|
3657
|
+
},
|
|
3658
|
+
{
|
|
3659
|
+
deep: !0,
|
|
3660
|
+
immediate: !0
|
|
3661
|
+
}
|
|
3662
|
+
);
|
|
3663
|
+
const u = Ze("drag"), d = o, r = (v) => {
|
|
3664
|
+
console.log("drag start", v), d("handleDragStart", v);
|
|
3665
|
+
}, p = (v) => {
|
|
3666
|
+
console.log("drag end", v), d("handleDragEnd", v);
|
|
3667
|
+
}, a = (v) => {
|
|
3668
|
+
console.log("drag add", v), d("handleDragAdd", v);
|
|
3669
|
+
}, l = (v) => {
|
|
3670
|
+
console.log("drag remove", v), d("handleDragRemove", v);
|
|
3671
|
+
};
|
|
3672
|
+
return (v, g) => (i(), T("div", {
|
|
3673
|
+
class: Y(L(u).b())
|
|
3674
|
+
}, [
|
|
3675
|
+
v.childrenType == "component" ? (i(), P(L(Ie), X({
|
|
3676
|
+
key: 0,
|
|
3677
|
+
modelValue: n.value,
|
|
3678
|
+
"onUpdate:modelValue": g[0] || (g[0] = (f) => n.value = f),
|
|
3679
|
+
"item-key": "key",
|
|
3680
|
+
class: { [v.dragClass]: v.dragClass }
|
|
3681
|
+
}, v.$attrs, {
|
|
3682
|
+
"ghost-class": v.ghostClass,
|
|
3683
|
+
onStart: r,
|
|
3684
|
+
onEnd: p,
|
|
3685
|
+
onAdd: a,
|
|
3686
|
+
onRemove: l
|
|
3687
|
+
}), {
|
|
3688
|
+
item: s(({ element: f }) => [
|
|
3689
|
+
(i(), P(Tt(f.component)))
|
|
3690
|
+
]),
|
|
3691
|
+
_: 1
|
|
3692
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), P(L(Ie), X({
|
|
3693
|
+
key: 1,
|
|
3694
|
+
modelValue: n.value,
|
|
3695
|
+
"onUpdate:modelValue": g[1] || (g[1] = (f) => n.value = f),
|
|
3696
|
+
"item-key": "id",
|
|
3697
|
+
class: { [v.dragClass]: v.dragClass }
|
|
3698
|
+
}, v.$attrs, {
|
|
3699
|
+
"ghost-class": v.ghostClass,
|
|
3700
|
+
onStart: r,
|
|
3701
|
+
onEnd: p,
|
|
3702
|
+
onAdd: a,
|
|
3703
|
+
onRemove: l
|
|
3704
|
+
}), {
|
|
3705
|
+
item: s(({ element: f }) => [
|
|
3706
|
+
c("div", null, [
|
|
3707
|
+
j(v.$slots, "default", { item: f }, void 0, !0)
|
|
3708
|
+
])
|
|
3709
|
+
]),
|
|
3710
|
+
_: 3
|
|
3711
|
+
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
3712
|
+
], 2));
|
|
3713
|
+
}
|
|
3714
|
+
}), kn = /* @__PURE__ */ Z(Cn, [["__scopeId", "data-v-15b227f5"]]), Sn = oe(kn), Tn = {
|
|
3715
|
+
triggerWay: {
|
|
3716
|
+
type: String,
|
|
3717
|
+
default: "click"
|
|
3718
|
+
},
|
|
3719
|
+
colText: {
|
|
3720
|
+
type: String,
|
|
3721
|
+
default: ""
|
|
3722
|
+
},
|
|
3723
|
+
menuItems: {
|
|
3724
|
+
type: Array,
|
|
3725
|
+
default: () => []
|
|
3726
|
+
},
|
|
3727
|
+
getSort: {
|
|
3728
|
+
type: Function
|
|
3729
|
+
}
|
|
3730
|
+
}, wn = /* @__PURE__ */ G({
|
|
3731
|
+
name: "HbLibSort",
|
|
3732
|
+
__name: "sort",
|
|
3733
|
+
props: Tn,
|
|
3734
|
+
emits: ["change"],
|
|
3735
|
+
setup(e, { expose: o, emit: t }) {
|
|
3736
|
+
const n = e, u = t, d = E([]), r = E("");
|
|
3737
|
+
te(
|
|
3738
|
+
() => n.menuItems,
|
|
3739
|
+
(a) => {
|
|
3740
|
+
let l = [];
|
|
3741
|
+
Array.isArray(a) && a.length && a.forEach((v) => {
|
|
3742
|
+
l = [
|
|
3743
|
+
...l,
|
|
3744
|
+
{ label: `${v.label}升序`, value: `${v.value}`, sort: "Asc" },
|
|
3745
|
+
{ label: `${v.label}降序`, value: `${v.value}`, sort: "Desc" }
|
|
3746
|
+
];
|
|
3747
|
+
}), d.value = l;
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
deep: !0,
|
|
3751
|
+
immediate: !0
|
|
3752
|
+
}
|
|
3753
|
+
);
|
|
3754
|
+
const p = (a) => {
|
|
3755
|
+
r.value = a.value + a.sort, n.getSort && n.getSort({
|
|
3756
|
+
orderFeild: a.value,
|
|
3757
|
+
orderBy: a.sort
|
|
3758
|
+
}), u("change", r);
|
|
3759
|
+
};
|
|
3760
|
+
return o({
|
|
3761
|
+
currentActiveItem: r
|
|
3762
|
+
}), (a, l) => {
|
|
3763
|
+
const v = V("a-menu-item"), g = V("a-menu"), f = V("a-dropdown");
|
|
3764
|
+
return i(), P(f, {
|
|
3765
|
+
trigger: [n.triggerWay]
|
|
3766
|
+
}, {
|
|
3767
|
+
overlay: s(() => [
|
|
3768
|
+
w(g, null, {
|
|
3769
|
+
default: s(() => [
|
|
3770
|
+
(i(!0), T(q, null, ie(d.value, (B) => (i(), P(v, {
|
|
3771
|
+
key: B.value + B.sort,
|
|
3772
|
+
onClick: ($) => p(B)
|
|
3773
|
+
}, {
|
|
3774
|
+
default: s(() => [
|
|
3775
|
+
c("span", {
|
|
3776
|
+
class: Y(r.value == B.value + B.sort ? "activted" : "")
|
|
3777
|
+
}, C(B.label), 3)
|
|
3778
|
+
]),
|
|
3779
|
+
_: 2
|
|
3780
|
+
}, 1032, ["onClick"]))), 128))
|
|
3781
|
+
]),
|
|
3782
|
+
_: 1
|
|
3783
|
+
})
|
|
3784
|
+
]),
|
|
3785
|
+
default: s(() => [
|
|
3786
|
+
c("span", {
|
|
3787
|
+
class: "ant-dropdown-link",
|
|
3788
|
+
onClick: l[0] || (l[0] = $e(() => {
|
|
3789
|
+
}, ["prevent"]))
|
|
3790
|
+
}, [
|
|
3791
|
+
A(C(n.colText) + " ", 1),
|
|
3792
|
+
w(L(Ke))
|
|
3793
|
+
])
|
|
3794
|
+
]),
|
|
3795
|
+
_: 1
|
|
3796
|
+
}, 8, ["trigger"]);
|
|
3797
|
+
};
|
|
3798
|
+
}
|
|
3799
|
+
}), Hn = /* @__PURE__ */ Z(wn, [["__scopeId", "data-v-cf0b0a0d"]]), xn = oe(Hn), Fn = { class: "hb_lib_loading" }, $n = { class: "hb_lib_loading_loading_anima" }, In = { class: "hb_lib_loading_load_tips" }, Mn = /* @__PURE__ */ G({
|
|
3800
|
+
name: "HbLibLoading",
|
|
3801
|
+
__name: "loading",
|
|
3802
|
+
props: {
|
|
3803
|
+
loadTips: {
|
|
3804
|
+
type: String,
|
|
3805
|
+
default: "页面加载中...如长时间加载请刷新页面!"
|
|
3806
|
+
}
|
|
3807
|
+
},
|
|
3808
|
+
setup(e) {
|
|
3809
|
+
const { t: o } = de(), t = e, n = z(() => t.loadTips || o("hbLibComp.HbLibLoading.loadingTips"));
|
|
3810
|
+
return (u, d) => (i(), T("div", Fn, [
|
|
3811
|
+
c("div", $n, [
|
|
3812
|
+
d[0] || (d[0] = Nt('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
|
|
3813
|
+
c("div", In, C(n.value), 1)
|
|
3814
|
+
])
|
|
3815
|
+
]));
|
|
3816
|
+
}
|
|
3817
|
+
}), Dn = /* @__PURE__ */ Z(Mn, [["__scopeId", "data-v-22f438b9"]]), Bn = oe(Dn), An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3846
3818
|
__proto__: null,
|
|
3847
|
-
HbLibAnchor:
|
|
3848
|
-
HbLibCard:
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3819
|
+
HbLibAnchor: Aa,
|
|
3820
|
+
HbLibCard: xa,
|
|
3821
|
+
HbLibCopy: Mt,
|
|
3822
|
+
HbLibDetailBox: Ja,
|
|
3823
|
+
HbLibFooterBar: Xa,
|
|
3824
|
+
HbLibFormItemFilterModal: co,
|
|
3825
|
+
HbLibFormTooltipSelect: ta,
|
|
3826
|
+
HbLibFuncCompDrag: Sn,
|
|
3827
|
+
HbLibImportFile: da,
|
|
3828
|
+
HbLibListBtnsAct: xo,
|
|
3829
|
+
HbLibListForm: po,
|
|
3830
|
+
HbLibListMultiSelect: qo,
|
|
3831
|
+
HbLibListPageAct: Co,
|
|
3832
|
+
HbLibListPageContainer: Io,
|
|
3833
|
+
HbLibListTable: Ul,
|
|
3834
|
+
HbLibLoading: Bn,
|
|
3835
|
+
HbLibLogModal: ha,
|
|
3836
|
+
HbLibModal: ln,
|
|
3837
|
+
HbLibMutilpleSelectModal: Zo,
|
|
3838
|
+
HbLibPageHeader: vn,
|
|
3839
|
+
HbLibSort: xn,
|
|
3840
|
+
HbLibTableAct: dl,
|
|
3841
|
+
HbLibTableColumnSet: Zl,
|
|
3842
|
+
HbLibUnDetailBox: un,
|
|
3843
|
+
HbUiConfig: ya
|
|
3844
|
+
}, Symbol.toStringTag, { value: "Module" })), me = /* @__PURE__ */ new Map();
|
|
3845
|
+
let vt;
|
|
3846
|
+
oo && (document.addEventListener("mousedown", (e) => vt = e), document.addEventListener("mouseup", (e) => {
|
|
3847
|
+
for (const o of me.values())
|
|
3848
|
+
for (const { documentHandler: t } of o)
|
|
3849
|
+
t(e, vt);
|
|
3869
3850
|
}));
|
|
3870
|
-
function
|
|
3871
|
-
let
|
|
3872
|
-
return Array.isArray(
|
|
3873
|
-
const d =
|
|
3874
|
-
a || l || v || g || f || B ||
|
|
3851
|
+
function gt(e, o) {
|
|
3852
|
+
let t = [];
|
|
3853
|
+
return Array.isArray(o.arg) ? t = o.arg : o.arg instanceof HTMLElement && t.push(o.arg), function(n, u) {
|
|
3854
|
+
const d = o.instance.popperRef, r = n.target, p = u?.target, a = !o || !o.instance, l = !r || !p, v = e.contains(r) || e.contains(p), g = e === r, f = t.length && t.some(($) => $?.contains(r)) || t.length && t.includes(p), B = d && (d.contains(r) || d.contains(p));
|
|
3855
|
+
a || l || v || g || f || B || o.value(n, u);
|
|
3875
3856
|
};
|
|
3876
3857
|
}
|
|
3877
|
-
const
|
|
3878
|
-
beforeMount(e,
|
|
3858
|
+
const On = {
|
|
3859
|
+
beforeMount(e, o) {
|
|
3879
3860
|
me.has(e) || me.set(e, []), me.get(e).push({
|
|
3880
|
-
documentHandler:
|
|
3881
|
-
bindingFn:
|
|
3861
|
+
documentHandler: gt(e, o),
|
|
3862
|
+
bindingFn: o.value
|
|
3882
3863
|
});
|
|
3883
3864
|
},
|
|
3884
|
-
updated(e,
|
|
3865
|
+
updated(e, o) {
|
|
3885
3866
|
me.has(e) || me.set(e, []);
|
|
3886
|
-
const
|
|
3887
|
-
documentHandler:
|
|
3888
|
-
bindingFn:
|
|
3867
|
+
const t = me.get(e), n = t.findIndex((d) => d.bindingFn === o.oldValue), u = {
|
|
3868
|
+
documentHandler: gt(e, o),
|
|
3869
|
+
bindingFn: o.value
|
|
3889
3870
|
};
|
|
3890
|
-
n >= 0 ?
|
|
3871
|
+
n >= 0 ? t.splice(n, 1, u) : t.push(u);
|
|
3891
3872
|
},
|
|
3892
3873
|
unmounted(e) {
|
|
3893
3874
|
me.delete(e);
|
|
3894
3875
|
}
|
|
3895
|
-
},
|
|
3896
|
-
mounted(e,
|
|
3897
|
-
const { value:
|
|
3898
|
-
if (console.log(
|
|
3876
|
+
}, En = {
|
|
3877
|
+
mounted(e, o) {
|
|
3878
|
+
const { value: t, arg: n } = o;
|
|
3879
|
+
if (console.log(o), typeof t != "function") {
|
|
3899
3880
|
console.warn("[v-debounce-click] 绑定值必须是一个函数");
|
|
3900
3881
|
return;
|
|
3901
3882
|
}
|
|
@@ -3903,52 +3884,52 @@ const Un = {
|
|
|
3903
3884
|
let d;
|
|
3904
3885
|
e.__debounceHandler__ = function(...r) {
|
|
3905
3886
|
d && clearTimeout(d), d = setTimeout(() => {
|
|
3906
|
-
|
|
3887
|
+
t(...r);
|
|
3907
3888
|
}, u);
|
|
3908
3889
|
}, e.addEventListener("click", e.__debounceHandler__);
|
|
3909
3890
|
},
|
|
3910
3891
|
unmounted(e) {
|
|
3911
3892
|
e.__debounceHandler__ && (e.removeEventListener("click", e.__debounceHandler__), delete e.__debounceHandler__);
|
|
3912
3893
|
}
|
|
3913
|
-
},
|
|
3894
|
+
}, yt = (e, o) => {
|
|
3914
3895
|
e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
|
|
3915
|
-
const
|
|
3916
|
-
cpText:
|
|
3896
|
+
const t = Rt(Mt, {
|
|
3897
|
+
cpText: o
|
|
3917
3898
|
});
|
|
3918
|
-
|
|
3919
|
-
},
|
|
3920
|
-
mounted(e,
|
|
3899
|
+
t.mount(e._dynamicContainer), e._dynamicApp = t, e._dynamicPrevValue = o;
|
|
3900
|
+
}, zn = {
|
|
3901
|
+
mounted(e, o) {
|
|
3921
3902
|
if (!e._dynamicContainer) {
|
|
3922
|
-
const
|
|
3923
|
-
|
|
3903
|
+
const t = document.createElement("div");
|
|
3904
|
+
t.style.display = "inline-flex", t.style.alignItems = "center", t.setAttribute("data-dynamic-container", ""), e.parentNode?.insertBefore(t, e.nextSibling), e._dynamicContainer = t;
|
|
3924
3905
|
}
|
|
3925
|
-
|
|
3906
|
+
yt(e, o.value);
|
|
3926
3907
|
},
|
|
3927
|
-
updated(e,
|
|
3928
|
-
|
|
3908
|
+
updated(e, o) {
|
|
3909
|
+
o.value !== e._dynamicPrevValue && yt(e, o.value);
|
|
3929
3910
|
},
|
|
3930
3911
|
unmounted(e) {
|
|
3931
3912
|
e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
|
|
3932
3913
|
}
|
|
3933
|
-
},
|
|
3914
|
+
}, Nn = { cos: On, dc: En, icp: zn }, Rn = { 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", overTip1: "Currently has exceeded", overTip2: "Optional quantity, please delete the displayed conditions first", title: "Custom query conditions" }, 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", reset: "reduction" }, 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" }, HbFuncCompCopy: { copy: "copy", copyFail: "Copy failed", copySuccess: "Copied successfully" }, HbLibDetailBox: { back: "return" } }, Pn = {
|
|
3915
|
+
hbLibComp: Rn
|
|
3916
|
+
}, Un = { 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: "表示される条件", overTip1: "現在は超えています", overTip2: "オプションの数量です。最初に表示されている条件を削除してください", title: "カスタムクエリ条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定", reset: "削減" }, 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: "ファイルのアップロード" }, HbFuncCompCopy: { copy: "コピー", copyFail: "コピーに失敗しました", copySuccess: "正常にコピーされました" }, HbLibDetailBox: { back: "戻る" } }, Vn = {
|
|
3917
|
+
hbLibComp: Un
|
|
3918
|
+
}, Wn = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索", title: "自定义查询条件", overTip1: "当前已经超过", overTip2: "个可选数量,请先删除已显示条件" }, 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: "不能将列移动到固定列位置", reset: "还原" }, 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: "文件上传" }, HbFuncCompCopy: { copySuccess: "复制成功", copyFail: "复制失败", copy: "复制" }, HbLibDetailBox: { back: "返回" }, HbLibLoading: { loadingTips: "加载中...如长时间加载请重试!" } }, jn = {
|
|
3919
|
+
hbLibComp: Wn
|
|
3920
|
+
}, Yn = { 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", overTip1: "Derzeit überschritten", overTip2: "Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen", title: "Benutzerdefinierte Abfragebedingungen" }, 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", reset: "Reduktion" }, 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" }, HbFuncCompCopy: { copy: "Kopie", copyFail: "Der Kopiervorgang ist fehlgeschlagen", copySuccess: "Erfolgreich kopiert" }, HbLibDetailBox: { back: "zurückkehren" } }, qn = {
|
|
3934
3921
|
hbLibComp: Yn
|
|
3935
|
-
}, Kn = { 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: "表示される条件", overTip1: "現在は超えています", overTip2: "オプションの数量です。最初に表示されている条件を削除してください", title: "カスタムクエリ条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定", reset: "削減" }, 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: "ファイルのアップロード" }, HbFuncCompCopy: { copy: "コピー", copyFail: "コピーに失敗しました", copySuccess: "正常にコピーされました" }, HbLibDetailBox: { back: "戻る" } }, Gn = {
|
|
3936
|
-
hbLibComp: Kn
|
|
3937
|
-
}, Jn = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索", title: "自定义查询条件", overTip1: "当前已经超过", overTip2: "个可选数量,请先删除已显示条件" }, 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: "不能将列移动到固定列位置", reset: "还原" }, 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: "文件上传" }, HbFuncCompCopy: { copySuccess: "复制成功", copyFail: "复制失败", copy: "复制" }, HbLibDetailBox: { back: "返回" }, HbLibLoading: { loadingTips: "加载中...如长时间加载请重试!" } }, Qn = {
|
|
3938
|
-
hbLibComp: Jn
|
|
3939
|
-
}, Zn = { 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", overTip1: "Derzeit überschritten", overTip2: "Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen", title: "Benutzerdefinierte Abfragebedingungen" }, 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", reset: "Reduktion" }, 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" }, HbFuncCompCopy: { copy: "Kopie", copyFail: "Der Kopiervorgang ist fehlgeschlagen", copySuccess: "Erfolgreich kopiert" }, HbLibDetailBox: { back: "zurückkehren" } }, Xn = {
|
|
3940
|
-
hbLibComp: Zn
|
|
3941
3922
|
};
|
|
3942
|
-
var Fe = { exports: {} },
|
|
3943
|
-
function
|
|
3944
|
-
return
|
|
3945
|
-
(function(
|
|
3923
|
+
var Fe = { exports: {} }, Kn = Fe.exports, _t;
|
|
3924
|
+
function Gn() {
|
|
3925
|
+
return _t || (_t = 1, (function(e, o) {
|
|
3926
|
+
(function(t, n) {
|
|
3946
3927
|
e.exports = n(Oe);
|
|
3947
|
-
})(
|
|
3928
|
+
})(Kn, (function(t) {
|
|
3948
3929
|
function n(r) {
|
|
3949
3930
|
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
3950
3931
|
}
|
|
3951
|
-
var u = n(
|
|
3932
|
+
var u = n(t), d = { 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(r, p) {
|
|
3952
3933
|
return p === "W" ? r + "周" : r + "日";
|
|
3953
3934
|
}, 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(r, p) {
|
|
3954
3935
|
var a = 100 * r + p;
|
|
@@ -3958,21 +3939,46 @@ function ti() {
|
|
|
3958
3939
|
}));
|
|
3959
3940
|
})(Fe)), Fe.exports;
|
|
3960
3941
|
}
|
|
3961
|
-
|
|
3942
|
+
Gn();
|
|
3962
3943
|
Oe.locale("zh-cn");
|
|
3963
|
-
const
|
|
3964
|
-
en_US:
|
|
3965
|
-
ja_JP:
|
|
3966
|
-
zh_CN:
|
|
3967
|
-
de_DE:
|
|
3968
|
-
},
|
|
3969
|
-
e.provide("globalCompConfig",
|
|
3970
|
-
e.use(
|
|
3971
|
-
}), Object.entries(
|
|
3972
|
-
e.directive(
|
|
3944
|
+
const ni = {
|
|
3945
|
+
en_US: Pn,
|
|
3946
|
+
ja_JP: Vn,
|
|
3947
|
+
zh_CN: jn,
|
|
3948
|
+
de_DE: qn
|
|
3949
|
+
}, ii = function(e, o = {}) {
|
|
3950
|
+
e.provide("globalCompConfig", o || {}), Object.values(An).forEach((t) => {
|
|
3951
|
+
t && typeof t.install == "function" && e.use(t);
|
|
3952
|
+
}), Object.entries(Nn).forEach(([t, n]) => {
|
|
3953
|
+
e.directive(t, n);
|
|
3973
3954
|
});
|
|
3974
3955
|
};
|
|
3975
3956
|
export {
|
|
3976
|
-
|
|
3977
|
-
|
|
3957
|
+
Aa as HbLibAnchor,
|
|
3958
|
+
xa as HbLibCard,
|
|
3959
|
+
Mt as HbLibCopy,
|
|
3960
|
+
Ja as HbLibDetailBox,
|
|
3961
|
+
Xa as HbLibFooterBar,
|
|
3962
|
+
co as HbLibFormItemFilterModal,
|
|
3963
|
+
ta as HbLibFormTooltipSelect,
|
|
3964
|
+
Sn as HbLibFuncCompDrag,
|
|
3965
|
+
da as HbLibImportFile,
|
|
3966
|
+
xo as HbLibListBtnsAct,
|
|
3967
|
+
po as HbLibListForm,
|
|
3968
|
+
qo as HbLibListMultiSelect,
|
|
3969
|
+
Co as HbLibListPageAct,
|
|
3970
|
+
Io as HbLibListPageContainer,
|
|
3971
|
+
Ul as HbLibListTable,
|
|
3972
|
+
Bn as HbLibLoading,
|
|
3973
|
+
ha as HbLibLogModal,
|
|
3974
|
+
ln as HbLibModal,
|
|
3975
|
+
Zo as HbLibMutilpleSelectModal,
|
|
3976
|
+
vn as HbLibPageHeader,
|
|
3977
|
+
xn as HbLibSort,
|
|
3978
|
+
dl as HbLibTableAct,
|
|
3979
|
+
Zl as HbLibTableColumnSet,
|
|
3980
|
+
un as HbLibUnDetailBox,
|
|
3981
|
+
ya as HbUiConfig,
|
|
3982
|
+
ii as install,
|
|
3983
|
+
ni as locales
|
|
3978
3984
|
};
|