@hb-hellotech/hb-ui 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/file_comp/import_file/index.d.ts +5 -0
- package/dist/components/business_comp/file_comp/import_file/index.d.ts.map +1 -0
- package/dist/components/business_comp/file_comp/import_file/src/type.d.ts +13 -0
- package/dist/components/business_comp/file_comp/import_file/src/type.d.ts.map +1 -0
- package/dist/components/business_comp/file_comp/index.d.ts +3 -0
- package/dist/components/business_comp/file_comp/index.d.ts.map +1 -0
- package/dist/components/business_comp/form_comp/hb_tooltip_select/index.d.ts +5 -0
- package/dist/components/business_comp/form_comp/hb_tooltip_select/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/index.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/index.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/index.d.ts +1 -232
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +2 -2
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts +1 -88
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_form/index.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_list_form/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts +1 -58
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts +1 -103
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/index.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/index.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/index.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/index.d.ts.map +1 -0
- package/dist/components/business_comp/modal_comp/index.d.ts +3 -0
- package/dist/components/business_comp/modal_comp/index.d.ts.map +1 -0
- package/dist/components/business_comp/modal_comp/log_modal/index.d.ts +5 -0
- package/dist/components/business_comp/modal_comp/log_modal/index.d.ts.map +1 -0
- package/dist/components/business_comp/modal_comp/log_modal/src/type.d.ts +14 -0
- package/dist/components/business_comp/modal_comp/log_modal/src/type.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts +1 -151
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_drag/index.d.ts +1 -439
- package/dist/components/func_comp/hb_func_comp_drag/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_drag/src/index.vue.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/utils/withInstall.d.ts +1 -4
- package/dist/components/utils/withInstall.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1449 -1173
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as ee, reactive as
|
|
2
|
+
import { defineComponent as ee, reactive as me, ref as P, computed as W, watch as ne, createElementBlock as S, openBlock as l, normalizeClass as E, unref as s, createVNode as w, withCtx as o, createElementVNode as L, toDisplayString as _, createTextVNode as H, createBlock as z, createCommentVNode as R, Fragment as K, renderList as ae, inject as Me, resolveComponent as U, Transition as tt, withDirectives as de, mergeProps as X, createSlots as Ge, renderSlot as Y, vShow as lt, nextTick as be, onMounted as He, onUnmounted as ot, useTemplateRef as at, provide as nt, normalizeStyle as ve, mergeModels as Se, useModel as Qe, withModifiers as Fe, resolveDirective as st, useAttrs as it, watchEffect as rt, shallowRef as dt, resolveDynamicComponent as ct } from "vue";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
|
-
import { CloseOutlined as ut, QuestionCircleOutlined as bt, SearchOutlined as
|
|
5
|
-
import { Modal as
|
|
4
|
+
import { CloseOutlined as ut, QuestionCircleOutlined as bt, SearchOutlined as De, UpCircleOutlined as pt, DownCircleOutlined as ft, UnorderedListOutlined as ht, DownOutlined as Oe, PlusCircleOutlined as mt } from "@ant-design/icons-vue";
|
|
5
|
+
import { Modal as we, Button as ue, Tooltip as xe, Switch as Be, Radio as ze, RadioGroup as Re, InputNumber as Pe, DatePicker as Ne, Checkbox as he, CheckboxGroup as Ue, Select as Te, Input as Ve, Col as vt, Row as gt, FormItem as Ee, Form as Ye, SelectOption as $e, Popconfirm as _e, MenuItem as je, Menu as qe, Dropdown as Ke, Popover as yt, message as Ie } from "ant-design-vue";
|
|
6
6
|
import { useRoute as Ze } from "vue-router";
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import
|
|
9
|
-
import { useFullscreen as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return kt(
|
|
14
|
-
},
|
|
7
|
+
import { useI18n as ie } from "vue-i18n";
|
|
8
|
+
import ke from "lodash";
|
|
9
|
+
import { useFullscreen as Ct, useDebounceFn as Lt } from "@vueuse/core";
|
|
10
|
+
import ge from "dayjs";
|
|
11
|
+
const _t = "hb-", Ae = (e = "") => {
|
|
12
|
+
const p = `${_t}${e}`;
|
|
13
|
+
return kt(p);
|
|
14
|
+
}, re = (e, p, d, c) => (p && (e += `-${p}`), d && (e += `__${d}`), c && (e += `--${c}`), e), kt = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (
|
|
16
|
+
b: (p) => p ? re(e, p, "", "") : re(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (
|
|
18
|
+
e: (p) => p ? re(e, "", p, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (
|
|
20
|
+
m: (p) => re(e, "", "", p),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (
|
|
22
|
+
be: (p, d) => re(e, p, d, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (
|
|
24
|
+
em: (p, d) => re(e, "", p, d),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (
|
|
26
|
+
bem: (p, d, c) => re(e, p, d, c),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (
|
|
29
|
-
}),
|
|
28
|
+
is: (p, d) => d ? `is-${p}` : ""
|
|
29
|
+
}), St = ["onMouseenter", "onMouseleave"], Ft = ["onClick"], wt = /* @__PURE__ */ ee({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -37,275 +37,275 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
37
37
|
showNumber: { default: 40 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
|
-
setup(e, { expose:
|
|
41
|
-
const
|
|
40
|
+
setup(e, { expose: p, emit: d }) {
|
|
41
|
+
const c = ie().t, y = ie().messages.value.en_US, h = ie().messages.value.ja_JP, i = ie().messages.value.zh_CN, b = e, t = d, a = Ae("sfcm"), v = Ze(), A = me({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
43
|
+
}), T = P(!1), j = P(600);
|
|
44
|
+
let m = [];
|
|
45
|
+
const C = P([]), g = P([]), x = W(() => C.value.every(($) => $.isLinked || $.isFixed)), N = ($) => {
|
|
46
|
+
const O = $.draggedContext.element, F = $.relatedContext.index;
|
|
47
|
+
if (O.isLinked || O.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
49
|
+
const q = C.value.map((Z, se) => ({ item: Z, index: se })).filter(({ item: Z }) => Z.isLinked).map(({ index: Z }) => Z);
|
|
50
|
+
if (q.length === 0)
|
|
51
51
|
return !0;
|
|
52
|
-
for (let Z = 0; Z <
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
52
|
+
for (let Z = 0; Z < q.length - 1; Z++) {
|
|
53
|
+
const se = q[Z], ce = q[Z + 1];
|
|
54
|
+
if (F > se && F < ce)
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
let
|
|
61
|
-
if (
|
|
58
|
+
}, M = () => {
|
|
59
|
+
const $ = localStorage.getItem("pro__Login_Userinfo");
|
|
60
|
+
let O = "anonymous";
|
|
61
|
+
if ($)
|
|
62
62
|
try {
|
|
63
|
-
|
|
64
|
-
} catch (
|
|
65
|
-
console.warn("解析用户信息失败:",
|
|
63
|
+
O = JSON.parse($).value.jobNumber || "anonymous";
|
|
64
|
+
} catch (q) {
|
|
65
|
+
console.warn("解析用户信息失败:", q);
|
|
66
66
|
}
|
|
67
|
-
let
|
|
68
|
-
return `searchFormConfig_${
|
|
69
|
-
},
|
|
70
|
-
ja_JP: () =>
|
|
71
|
-
en_US: () =>
|
|
72
|
-
zh_CN: () =>
|
|
73
|
-
})[
|
|
67
|
+
let F = v?.path;
|
|
68
|
+
return `searchFormConfig_${O}_${F}`;
|
|
69
|
+
}, I = ($) => ({
|
|
70
|
+
ja_JP: () => ke.get(h, $.labelLanguage || ""),
|
|
71
|
+
en_US: () => ke.get(y, $.labelLanguage || ""),
|
|
72
|
+
zh_CN: () => ke.get(i, $.labelLanguage || "")
|
|
73
|
+
})[A.lan]?.() || $.label, n = ($) => {
|
|
74
74
|
try {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
const Z =
|
|
81
|
-
...
|
|
82
|
-
label:
|
|
83
|
-
key:
|
|
84
|
-
isFixed:
|
|
85
|
-
isLinked:
|
|
86
|
-
labelLanguage:
|
|
87
|
-
})),
|
|
88
|
-
...
|
|
89
|
-
label:
|
|
90
|
-
key:
|
|
91
|
-
isFixed:
|
|
75
|
+
const O = M(), F = localStorage.getItem(O);
|
|
76
|
+
if (F) {
|
|
77
|
+
const q = JSON.parse(F);
|
|
78
|
+
if (q.originalList && Array.isArray(q.originalList)) {
|
|
79
|
+
m = JSON.parse(JSON.stringify(q.originalList));
|
|
80
|
+
const Z = m.filter((D) => D?.isFixed), se = m.filter((D) => D?.isLinked), ce = q.showList.filter((D) => !D.isFixed && !D.isLinked), ye = b.showNumber && b.showNumber > 0 ? Math.max(0, b.showNumber - Z.length - se.length) : ce.length, Ce = Z.map((D) => ({
|
|
81
|
+
...D,
|
|
82
|
+
label: I(D) || `${D.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
+
key: D.key,
|
|
84
|
+
isFixed: D?.isFixed || !1,
|
|
85
|
+
isLinked: D?.isLinked || !1,
|
|
86
|
+
labelLanguage: D?.labelLanguage || void 0
|
|
87
|
+
})), Le = se.map((D) => ({
|
|
88
|
+
...D,
|
|
89
|
+
label: I(D) || `${D.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
+
key: D.key,
|
|
91
|
+
isFixed: D?.isFixed || !1,
|
|
92
92
|
isLinked: !0,
|
|
93
|
-
labelLanguage:
|
|
94
|
-
})),
|
|
95
|
-
...
|
|
96
|
-
label:
|
|
97
|
-
key:
|
|
98
|
-
isFixed:
|
|
99
|
-
isLinked:
|
|
100
|
-
labelLanguage:
|
|
93
|
+
labelLanguage: D?.labelLanguage || void 0
|
|
94
|
+
})), B = ce.slice(0, ye).map((D) => ({
|
|
95
|
+
...D,
|
|
96
|
+
label: I(D) || `${D.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
+
key: D.key,
|
|
98
|
+
isFixed: D?.isFixed || !1,
|
|
99
|
+
isLinked: D?.isLinked || !1,
|
|
100
|
+
labelLanguage: D?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
|
|
103
|
-
const Xe =
|
|
104
|
-
return
|
|
105
|
-
...
|
|
106
|
-
label:
|
|
107
|
-
key:
|
|
108
|
-
isFixed:
|
|
109
|
-
isLinked:
|
|
102
|
+
C.value = [...Ce, ...Le, ...B];
|
|
103
|
+
const Xe = C.value.map((D) => D.key), et = m.map((D) => D.key).filter((D) => !Xe.includes(D));
|
|
104
|
+
return g.value = m.filter((D) => et.includes(D.key)).map((D) => ({
|
|
105
|
+
...D,
|
|
106
|
+
label: I(D) || `${D.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
|
+
key: D.key,
|
|
108
|
+
isFixed: D?.isFixed || !1,
|
|
109
|
+
isLinked: D?.isLinked || !1,
|
|
110
110
|
active: !1,
|
|
111
|
-
labelLanguage:
|
|
111
|
+
labelLanguage: D?.labelLanguage || void 0
|
|
112
112
|
})), !0;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
} catch (
|
|
116
|
-
console.warn("加载保存的搜索配置失败:",
|
|
115
|
+
} catch (O) {
|
|
116
|
+
console.warn("加载保存的搜索配置失败:", O);
|
|
117
117
|
}
|
|
118
118
|
return !1;
|
|
119
|
-
},
|
|
119
|
+
}, r = () => {
|
|
120
120
|
try {
|
|
121
|
-
const
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
124
|
-
...
|
|
125
|
-
key:
|
|
126
|
-
label:
|
|
127
|
-
isFixed:
|
|
128
|
-
isLinked:
|
|
129
|
-
labelLanguage:
|
|
121
|
+
const $ = {
|
|
122
|
+
originalList: m,
|
|
123
|
+
showList: C.value.map((F) => ({
|
|
124
|
+
...F,
|
|
125
|
+
key: F.key,
|
|
126
|
+
label: F.label,
|
|
127
|
+
isFixed: F.isFixed,
|
|
128
|
+
isLinked: F.isLinked,
|
|
129
|
+
labelLanguage: F?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
|
-
},
|
|
132
|
-
localStorage.setItem(
|
|
133
|
-
} catch (
|
|
134
|
-
console.warn("保存搜索配置失败:",
|
|
131
|
+
}, O = M();
|
|
132
|
+
localStorage.setItem(O, JSON.stringify($));
|
|
133
|
+
} catch ($) {
|
|
134
|
+
console.warn("保存搜索配置失败:", $);
|
|
135
135
|
}
|
|
136
|
-
},
|
|
137
|
-
const
|
|
138
|
-
return
|
|
136
|
+
}, u = W(() => {
|
|
137
|
+
const $ = C.value.filter((F) => !F.isFixed && !F.isLinked).length, O = C.value.filter((F) => F.isFixed || F.isLinked).length;
|
|
138
|
+
return $ >= b.showNumber - O;
|
|
139
139
|
});
|
|
140
|
-
|
|
141
|
-
() =>
|
|
142
|
-
(
|
|
143
|
-
let
|
|
144
|
-
if (!(!
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
...
|
|
148
|
-
label:
|
|
149
|
-
key:
|
|
150
|
-
isFixed:
|
|
151
|
-
isLinked:
|
|
152
|
-
labelLanguage:
|
|
153
|
-
})),
|
|
154
|
-
...
|
|
155
|
-
label:
|
|
156
|
-
key:
|
|
157
|
-
isFixed:
|
|
140
|
+
ne(
|
|
141
|
+
() => b.list,
|
|
142
|
+
($) => {
|
|
143
|
+
let O = JSON.stringify(C.value) !== JSON.stringify($);
|
|
144
|
+
if (!(!O && n()) && (m.length === 0 || O)) {
|
|
145
|
+
m = JSON.parse(JSON.stringify($));
|
|
146
|
+
const F = $.filter((B) => B?.isFixed), q = $.filter((B) => B?.isLinked), Z = $.filter((B) => !B?.isFixed && !B?.isLinked), se = b.showNumber && b.showNumber > 0 ? Math.max(0, b.showNumber - F.length - q.length) : Z.length, ce = F.map((B) => ({
|
|
147
|
+
...B,
|
|
148
|
+
label: I(B) || `${B.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
149
|
+
key: B.key,
|
|
150
|
+
isFixed: B?.isFixed || !1,
|
|
151
|
+
isLinked: B?.isLinked || !1,
|
|
152
|
+
labelLanguage: B?.labelLanguage || void 0
|
|
153
|
+
})), ye = q.map((B) => ({
|
|
154
|
+
...B,
|
|
155
|
+
label: I(B) || `${B.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
156
|
+
key: B.key,
|
|
157
|
+
isFixed: B?.isFixed || !1,
|
|
158
158
|
isLinked: !0,
|
|
159
|
-
labelLanguage:
|
|
160
|
-
})),
|
|
161
|
-
...
|
|
162
|
-
label:
|
|
163
|
-
key:
|
|
164
|
-
isFixed:
|
|
165
|
-
isLinked:
|
|
166
|
-
labelLanguage:
|
|
159
|
+
labelLanguage: B?.labelLanguage || void 0
|
|
160
|
+
})), Ce = Z.slice(0, se).map((B) => ({
|
|
161
|
+
...B,
|
|
162
|
+
label: I(B) || `${B.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
163
|
+
key: B.key,
|
|
164
|
+
isFixed: B?.isFixed || !1,
|
|
165
|
+
isLinked: B?.isLinked || !1,
|
|
166
|
+
labelLanguage: B?.labelLanguage || void 0
|
|
167
167
|
}));
|
|
168
|
-
|
|
169
|
-
const
|
|
170
|
-
...
|
|
171
|
-
label:
|
|
172
|
-
key:
|
|
173
|
-
isFixed:
|
|
174
|
-
isLinked:
|
|
168
|
+
C.value = [...ce, ...ye, ...Ce];
|
|
169
|
+
const Le = Z.slice(se).map((B) => ({
|
|
170
|
+
...B,
|
|
171
|
+
label: I(B) || `${B.subLabel || ""}${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
172
|
+
key: B.key,
|
|
173
|
+
isFixed: B?.isFixed || !1,
|
|
174
|
+
isLinked: B?.isLinked || !1,
|
|
175
175
|
active: !1,
|
|
176
|
-
labelLanguage:
|
|
176
|
+
labelLanguage: B?.labelLanguage || void 0
|
|
177
177
|
}));
|
|
178
|
-
|
|
178
|
+
g.value = Le;
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
{ immediate: !0 }
|
|
182
182
|
);
|
|
183
|
-
const k = (
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
if (
|
|
183
|
+
const k = ($) => {
|
|
184
|
+
const O = C.value.findIndex((F) => F.key === $.key);
|
|
185
|
+
O !== -1 && (C.value.splice(O, 1), g.value.push({ ...$, active: !1 }));
|
|
186
|
+
}, f = ($) => {
|
|
187
|
+
if (u.value)
|
|
188
188
|
return;
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
const [
|
|
192
|
-
|
|
189
|
+
const O = g.value.findIndex((F) => F.key === $.key);
|
|
190
|
+
if (O !== -1) {
|
|
191
|
+
const [F] = g.value.splice(O, 1);
|
|
192
|
+
C.value.push({ ...F, active: !1 });
|
|
193
193
|
}
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
}, Q = (
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
const
|
|
205
|
-
|
|
194
|
+
}, J = () => {
|
|
195
|
+
T.value = !1;
|
|
196
|
+
}, V = () => {
|
|
197
|
+
T.value = !0;
|
|
198
|
+
}, oe = () => {
|
|
199
|
+
r(), t("confirm", C.value), J();
|
|
200
|
+
}, Q = ($) => {
|
|
201
|
+
const O = g.value.findIndex((F) => F.key === $.key);
|
|
202
|
+
O !== -1 && (g.value[O].active = !0);
|
|
203
|
+
}, G = ($) => {
|
|
204
|
+
const O = g.value.findIndex((F) => F.key === $.key);
|
|
205
|
+
O !== -1 && (g.value[O].active = !1);
|
|
206
206
|
};
|
|
207
|
-
return
|
|
208
|
-
toOpenModal:
|
|
209
|
-
}), (
|
|
210
|
-
class:
|
|
207
|
+
return p({
|
|
208
|
+
toOpenModal: V
|
|
209
|
+
}), ($, O) => (l(), S("div", {
|
|
210
|
+
class: E(s(a).b())
|
|
211
211
|
}, [
|
|
212
|
-
|
|
213
|
-
visible:
|
|
214
|
-
"onUpdate:visible":
|
|
215
|
-
width:
|
|
216
|
-
onCancel:
|
|
217
|
-
onOk:
|
|
212
|
+
w(s(we), {
|
|
213
|
+
visible: T.value,
|
|
214
|
+
"onUpdate:visible": O[1] || (O[1] = (F) => T.value = F),
|
|
215
|
+
width: j.value,
|
|
216
|
+
onCancel: J,
|
|
217
|
+
onOk: oe
|
|
218
218
|
}, {
|
|
219
|
-
title:
|
|
220
|
-
|
|
221
|
-
class:
|
|
222
|
-
},
|
|
219
|
+
title: o(() => [
|
|
220
|
+
L("div", {
|
|
221
|
+
class: E(s(a).e("title"))
|
|
222
|
+
}, _(e.title), 3)
|
|
223
223
|
]),
|
|
224
|
-
footer:
|
|
225
|
-
|
|
226
|
-
default:
|
|
227
|
-
|
|
224
|
+
footer: o(() => [
|
|
225
|
+
w(s(ue), { onClick: J }, {
|
|
226
|
+
default: o(() => [
|
|
227
|
+
H(_($.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
}),
|
|
231
|
-
|
|
231
|
+
w(s(ue), {
|
|
232
232
|
type: "primary",
|
|
233
|
-
onClick:
|
|
233
|
+
onClick: oe
|
|
234
234
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
|
|
235
|
+
default: o(() => [
|
|
236
|
+
H(_($.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
237
237
|
]),
|
|
238
238
|
_: 1
|
|
239
239
|
})
|
|
240
240
|
]),
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
class:
|
|
241
|
+
default: o(() => [
|
|
242
|
+
L("section", {
|
|
243
|
+
class: E(s(a).e("show"))
|
|
244
244
|
}, [
|
|
245
|
-
|
|
246
|
-
class:
|
|
245
|
+
L("div", {
|
|
246
|
+
class: E(s(a).e("show__title"))
|
|
247
247
|
}, [
|
|
248
|
-
|
|
249
|
-
class:
|
|
250
|
-
},
|
|
251
|
-
|
|
248
|
+
L("span", {
|
|
249
|
+
class: E(s(a).e("title__tip"))
|
|
250
|
+
}, _($.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
251
|
+
L("span", null, _($.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + _(e.showNumber) + _($.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
252
252
|
], 2),
|
|
253
|
-
|
|
254
|
-
class:
|
|
253
|
+
L("div", {
|
|
254
|
+
class: E(s(a).e("show__tag"))
|
|
255
255
|
}, [
|
|
256
|
-
|
|
257
|
-
modelValue:
|
|
258
|
-
"onUpdate:modelValue":
|
|
256
|
+
w(s(fe), {
|
|
257
|
+
modelValue: C.value,
|
|
258
|
+
"onUpdate:modelValue": O[0] || (O[0] = (F) => C.value = F),
|
|
259
259
|
"item-key": "key",
|
|
260
260
|
tag: "div",
|
|
261
|
-
disabled:
|
|
262
|
-
move:
|
|
261
|
+
disabled: x.value,
|
|
262
|
+
move: N
|
|
263
263
|
}, {
|
|
264
|
-
item:
|
|
265
|
-
|
|
266
|
-
class:
|
|
264
|
+
item: o(({ element: F }) => [
|
|
265
|
+
L("div", {
|
|
266
|
+
class: E([s(a).e("show__tag__item"), s(a).is("fixed", F.isFixed), s(a).is("linked", F.isLinked)])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
269
|
-
!
|
|
268
|
+
H(_(F.label) + " ", 1),
|
|
269
|
+
!F.isFixed && !F.isLinked && e.list.length > 1 ? (l(), z(s(ut), {
|
|
270
270
|
key: 0,
|
|
271
|
-
class:
|
|
272
|
-
onClick: (
|
|
273
|
-
}, null, 8, ["class", "onClick"])) :
|
|
271
|
+
class: E(s(a).e("show__tag__item-close")),
|
|
272
|
+
onClick: (q) => k(F)
|
|
273
|
+
}, null, 8, ["class", "onClick"])) : R("", !0)
|
|
274
274
|
], 2)
|
|
275
275
|
]),
|
|
276
276
|
_: 1
|
|
277
277
|
}, 8, ["modelValue", "disabled"])
|
|
278
278
|
], 2)
|
|
279
279
|
], 2),
|
|
280
|
-
|
|
281
|
-
class:
|
|
280
|
+
L("section", {
|
|
281
|
+
class: E(s(a).e("unshow"))
|
|
282
282
|
}, [
|
|
283
|
-
|
|
284
|
-
class:
|
|
283
|
+
L("div", {
|
|
284
|
+
class: E(s(a).e("show__title"))
|
|
285
285
|
}, [
|
|
286
|
-
|
|
287
|
-
class:
|
|
288
|
-
},
|
|
286
|
+
L("span", {
|
|
287
|
+
class: E(s(a).e("title__tip"))
|
|
288
|
+
}, _($.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
289
289
|
], 2),
|
|
290
|
-
|
|
291
|
-
class:
|
|
290
|
+
L("div", {
|
|
291
|
+
class: E(s(a).e("unshow__tag"))
|
|
292
292
|
}, [
|
|
293
|
-
|
|
294
|
-
class:
|
|
295
|
-
key:
|
|
296
|
-
onMouseenter: (
|
|
297
|
-
onMouseleave: (
|
|
293
|
+
g.value.length > 0 ? (l(!0), S(K, { key: 0 }, ae(g.value, (F) => (l(), S("div", {
|
|
294
|
+
class: E([s(a).e("unshow__tag__item"), s(a).is("fixed", F.isFixed || ""), s(a).is("linked", F.isLinked || "")]),
|
|
295
|
+
key: F.key,
|
|
296
|
+
onMouseenter: (q) => Q(F),
|
|
297
|
+
onMouseleave: (q) => G(F)
|
|
298
298
|
}, [
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
H(_(F.label) + " ", 1),
|
|
300
|
+
F.active ? (l(), S("aside", {
|
|
301
301
|
key: 0,
|
|
302
|
-
class:
|
|
303
|
-
onClick: (
|
|
304
|
-
},
|
|
305
|
-
], 42,
|
|
302
|
+
class: E(s(a).e("unshow__tag__item-add")),
|
|
303
|
+
onClick: (q) => f(F)
|
|
304
|
+
}, _($.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Ft)) : R("", !0)
|
|
305
|
+
], 42, St))), 128)) : (l(), S("div", {
|
|
306
306
|
key: 1,
|
|
307
|
-
class:
|
|
308
|
-
},
|
|
307
|
+
class: E(s(a).e("unshow__tag__empty"))
|
|
308
|
+
}, _($.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
309
309
|
], 2)
|
|
310
310
|
], 2)
|
|
311
311
|
]),
|
|
@@ -313,15 +313,14 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
313
313
|
}, 8, ["visible", "width"])
|
|
314
314
|
], 2));
|
|
315
315
|
}
|
|
316
|
-
}),
|
|
317
|
-
const
|
|
318
|
-
for (const [
|
|
319
|
-
|
|
320
|
-
return
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}, e), Tt = te(Ft), xt = { class: "form-footer" }, $t = /* @__PURE__ */ ee({
|
|
316
|
+
}), le = (e, p) => {
|
|
317
|
+
const d = e.__vccOpts || e;
|
|
318
|
+
for (const [c, y] of p)
|
|
319
|
+
d[c] = y;
|
|
320
|
+
return d;
|
|
321
|
+
}, xt = /* @__PURE__ */ le(wt, [["__scopeId", "data-v-52ee50f2"]]), te = (e) => (e.install = (p) => {
|
|
322
|
+
p.component(e.name || "AnonymousComponent", e);
|
|
323
|
+
}, e), Tt = te(xt), $t = { class: "form-footer" }, It = /* @__PURE__ */ ee({
|
|
325
324
|
name: "HbLibListForm",
|
|
326
325
|
__name: "HbListForm",
|
|
327
326
|
props: {
|
|
@@ -349,194 +348,194 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
349
348
|
} }
|
|
350
349
|
},
|
|
351
350
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm"],
|
|
352
|
-
setup(e, { expose:
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
|
|
351
|
+
setup(e, { expose: p, emit: d }) {
|
|
352
|
+
const c = d, y = Me("HB_LIST_PAGE_CONTAINER"), h = Ae("form"), i = e, b = P("show"), t = W(() => [...i.items]), a = P(), v = () => {
|
|
353
|
+
c("handleSearch");
|
|
354
|
+
}, A = () => {
|
|
355
|
+
c("handleReset");
|
|
356
|
+
}, T = P(), j = () => {
|
|
357
|
+
T.value && T.value.toOpenModal();
|
|
358
|
+
}, m = (I) => {
|
|
359
|
+
c("handleSfcmConfirm", I);
|
|
360
|
+
}, C = () => {
|
|
361
|
+
b.value = b.value === "show" ? "hide" : "show";
|
|
363
362
|
};
|
|
364
|
-
|
|
365
|
-
() =>
|
|
366
|
-
(
|
|
367
|
-
if (
|
|
368
|
-
console.log(
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
|
|
363
|
+
ne(
|
|
364
|
+
() => i.isFormExpanded,
|
|
365
|
+
(I) => {
|
|
366
|
+
if (I) {
|
|
367
|
+
console.log(I);
|
|
368
|
+
const n = document.querySelector("#subpackage_container");
|
|
369
|
+
n instanceof HTMLElement && (n.style.overflow = "hidden", setTimeout(() => {
|
|
370
|
+
n.style.overflow = "auto";
|
|
372
371
|
}, 500));
|
|
373
372
|
}
|
|
374
373
|
}
|
|
375
374
|
);
|
|
376
|
-
const
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
},
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
|
|
375
|
+
const g = (I) => {
|
|
376
|
+
const n = I;
|
|
377
|
+
n.style.height = "", n.offsetHeight;
|
|
378
|
+
}, x = (I) => {
|
|
379
|
+
const n = I;
|
|
380
|
+
n.style.height = "", n.style.overflow = "", be(() => {
|
|
381
|
+
y.calTableHeight && y.calTableHeight();
|
|
383
382
|
});
|
|
384
|
-
},
|
|
385
|
-
const
|
|
386
|
-
if (
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
|
|
383
|
+
}, N = (I) => {
|
|
384
|
+
const n = I, r = n.querySelector(".hb-lib-form--container");
|
|
385
|
+
if (r) {
|
|
386
|
+
const u = r.offsetHeight;
|
|
387
|
+
n.style.height = u + "px", n.style.overflow = "hidden", n.offsetHeight, requestAnimationFrame(() => {
|
|
388
|
+
n.style.height = "0";
|
|
390
389
|
});
|
|
391
390
|
}
|
|
392
|
-
},
|
|
391
|
+
}, M = () => {
|
|
393
392
|
be(() => {
|
|
394
|
-
|
|
393
|
+
y.calTableHeight && y.calTableHeight();
|
|
395
394
|
});
|
|
396
395
|
};
|
|
397
|
-
return
|
|
398
|
-
formRef:
|
|
399
|
-
SelectOption:
|
|
400
|
-
Form:
|
|
396
|
+
return p({
|
|
397
|
+
formRef: a,
|
|
398
|
+
SelectOption: $e,
|
|
399
|
+
Form: Ye,
|
|
401
400
|
FormItem: Ee,
|
|
402
|
-
Row:
|
|
403
|
-
Col:
|
|
401
|
+
Row: gt,
|
|
402
|
+
Col: vt,
|
|
404
403
|
Input: Ve,
|
|
405
|
-
Select:
|
|
406
|
-
CheckboxGroup:
|
|
407
|
-
Checkbox:
|
|
404
|
+
Select: Te,
|
|
405
|
+
CheckboxGroup: Ue,
|
|
406
|
+
Checkbox: he,
|
|
408
407
|
DatePicker: Ne,
|
|
409
408
|
InputNumber: Pe,
|
|
410
409
|
RadioGroup: Re,
|
|
411
|
-
Radio:
|
|
412
|
-
Switch:
|
|
410
|
+
Radio: ze,
|
|
411
|
+
Switch: Be,
|
|
413
412
|
Button: ue,
|
|
414
|
-
Tooltip:
|
|
415
|
-
}), (
|
|
416
|
-
const
|
|
417
|
-
return
|
|
418
|
-
|
|
413
|
+
Tooltip: xe
|
|
414
|
+
}), (I, n) => {
|
|
415
|
+
const r = U("a-button"), u = U("a-tooltip"), k = U("HbLibFormItemFilterModal");
|
|
416
|
+
return l(), S(K, null, [
|
|
417
|
+
w(tt, {
|
|
419
418
|
name: "form-collapse",
|
|
420
|
-
onEnter:
|
|
421
|
-
onAfterEnter:
|
|
422
|
-
onLeave:
|
|
423
|
-
onAfterLeave:
|
|
419
|
+
onEnter: g,
|
|
420
|
+
onAfterEnter: x,
|
|
421
|
+
onLeave: N,
|
|
422
|
+
onAfterLeave: M
|
|
424
423
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
|
|
427
|
-
class:
|
|
424
|
+
default: o(() => [
|
|
425
|
+
de(L("div", {
|
|
426
|
+
class: E([s(h).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
428
427
|
}, [
|
|
429
|
-
|
|
428
|
+
w(s(Ye), X(I.$attrs, {
|
|
430
429
|
model: e.formData,
|
|
431
430
|
ref_key: "formRef",
|
|
432
|
-
ref:
|
|
433
|
-
class: ["hb-lib-form--container",
|
|
431
|
+
ref: a,
|
|
432
|
+
class: ["hb-lib-form--container", b.value == "show" ? "" : "hide"]
|
|
434
433
|
}), {
|
|
435
|
-
default:
|
|
436
|
-
(
|
|
437
|
-
key:
|
|
434
|
+
default: o(() => [
|
|
435
|
+
(l(!0), S(K, null, ae(t.value, (f, J) => (l(), z(s(Ee), X({
|
|
436
|
+
key: J,
|
|
438
437
|
ref_for: !0
|
|
439
|
-
},
|
|
440
|
-
name:
|
|
441
|
-
class:
|
|
438
|
+
}, f, {
|
|
439
|
+
name: f.key,
|
|
440
|
+
class: f.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
442
441
|
}), Ge({
|
|
443
|
-
default:
|
|
444
|
-
|
|
442
|
+
default: o(() => [
|
|
443
|
+
f.type === "slot" ? Y(I.$slots, f.key, {
|
|
445
444
|
key: 0,
|
|
446
445
|
formData: e.formData,
|
|
447
|
-
item:
|
|
448
|
-
}, void 0, !0) :
|
|
449
|
-
|
|
446
|
+
item: f
|
|
447
|
+
}, void 0, !0) : R("", !0),
|
|
448
|
+
f.type === "mixin" ? Y(I.$slots, f.key, {
|
|
450
449
|
key: 1,
|
|
451
450
|
formData: e.formData,
|
|
452
|
-
item:
|
|
453
|
-
}, void 0, !0) :
|
|
454
|
-
|
|
451
|
+
item: f
|
|
452
|
+
}, void 0, !0) : R("", !0),
|
|
453
|
+
f.type === "input" ? (l(), z(s(Ve), X({
|
|
455
454
|
key: 2,
|
|
456
|
-
value: e.formData[
|
|
457
|
-
"onUpdate:value": (
|
|
458
|
-
}, { ref_for: !0 },
|
|
459
|
-
|
|
455
|
+
value: e.formData[f.key],
|
|
456
|
+
"onUpdate:value": (V) => e.formData[f.key] = V
|
|
457
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
458
|
+
f.type === "select" ? (l(), z(s(Te), X({
|
|
460
459
|
key: 3,
|
|
461
|
-
value: e.formData[
|
|
462
|
-
"onUpdate:value": (
|
|
463
|
-
}, { ref_for: !0 },
|
|
464
|
-
default:
|
|
465
|
-
(
|
|
466
|
-
key:
|
|
467
|
-
value:
|
|
460
|
+
value: e.formData[f.key],
|
|
461
|
+
"onUpdate:value": (V) => e.formData[f.key] = V
|
|
462
|
+
}, { ref_for: !0 }, f.attrs), {
|
|
463
|
+
default: o(() => [
|
|
464
|
+
(l(!0), S(K, null, ae(f.options, (V, oe) => (l(), z(s($e), {
|
|
465
|
+
key: oe,
|
|
466
|
+
value: V.value
|
|
468
467
|
}, {
|
|
469
|
-
default:
|
|
470
|
-
|
|
468
|
+
default: o(() => [
|
|
469
|
+
H(_(V.label), 1)
|
|
471
470
|
]),
|
|
472
471
|
_: 2
|
|
473
472
|
}, 1032, ["value"]))), 128))
|
|
474
473
|
]),
|
|
475
474
|
_: 2
|
|
476
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
477
|
-
|
|
475
|
+
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
476
|
+
f.type === "checkbox" ? (l(), z(s(Ue), X({
|
|
478
477
|
key: 4,
|
|
479
|
-
value: e.formData[
|
|
480
|
-
"onUpdate:value": (
|
|
481
|
-
}, { ref_for: !0 },
|
|
482
|
-
default:
|
|
483
|
-
(
|
|
484
|
-
key:
|
|
485
|
-
value:
|
|
478
|
+
value: e.formData[f.key],
|
|
479
|
+
"onUpdate:value": (V) => e.formData[f.key] = V
|
|
480
|
+
}, { ref_for: !0 }, f.attrs), {
|
|
481
|
+
default: o(() => [
|
|
482
|
+
(l(!0), S(K, null, ae(f.options, (V, oe) => (l(), z(s(he), {
|
|
483
|
+
key: oe,
|
|
484
|
+
value: V.value
|
|
486
485
|
}, {
|
|
487
|
-
default:
|
|
488
|
-
|
|
486
|
+
default: o(() => [
|
|
487
|
+
H(_(V.label), 1)
|
|
489
488
|
]),
|
|
490
489
|
_: 2
|
|
491
490
|
}, 1032, ["value"]))), 128))
|
|
492
491
|
]),
|
|
493
492
|
_: 2
|
|
494
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
495
|
-
|
|
493
|
+
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
494
|
+
f.type === "date-picker" ? (l(), z(s(Ne), X({
|
|
496
495
|
key: 5,
|
|
497
|
-
value: e.formData[
|
|
498
|
-
"onUpdate:value": (
|
|
499
|
-
}, { ref_for: !0 },
|
|
500
|
-
|
|
496
|
+
value: e.formData[f.key],
|
|
497
|
+
"onUpdate:value": (V) => e.formData[f.key] = V
|
|
498
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
499
|
+
f.type === "input-number" ? (l(), z(s(Pe), X({
|
|
501
500
|
key: 6,
|
|
502
|
-
value: e.formData[
|
|
503
|
-
"onUpdate:value": (
|
|
504
|
-
}, { ref_for: !0 },
|
|
505
|
-
|
|
501
|
+
value: e.formData[f.key],
|
|
502
|
+
"onUpdate:value": (V) => e.formData[f.key] = V
|
|
503
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
504
|
+
f.type === "radio" ? (l(), z(s(Re), X({
|
|
506
505
|
key: 7,
|
|
507
|
-
value: e.formData[
|
|
508
|
-
"onUpdate:value": (
|
|
509
|
-
}, { ref_for: !0 },
|
|
510
|
-
default:
|
|
511
|
-
(
|
|
512
|
-
key:
|
|
513
|
-
value:
|
|
506
|
+
value: e.formData[f.key],
|
|
507
|
+
"onUpdate:value": (V) => e.formData[f.key] = V
|
|
508
|
+
}, { ref_for: !0 }, f.attrs), {
|
|
509
|
+
default: o(() => [
|
|
510
|
+
(l(!0), S(K, null, ae(f.options, (V, oe) => (l(), z(s(ze), {
|
|
511
|
+
key: oe,
|
|
512
|
+
value: V.value
|
|
514
513
|
}, {
|
|
515
|
-
default:
|
|
516
|
-
|
|
514
|
+
default: o(() => [
|
|
515
|
+
H(_(V.label), 1)
|
|
517
516
|
]),
|
|
518
517
|
_: 2
|
|
519
518
|
}, 1032, ["value"]))), 128))
|
|
520
519
|
]),
|
|
521
520
|
_: 2
|
|
522
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
523
|
-
|
|
521
|
+
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
522
|
+
f.type === "switch" ? (l(), z(s(Be), X({
|
|
524
523
|
key: 8,
|
|
525
|
-
checked: e.formData[
|
|
526
|
-
"onUpdate:checked": (
|
|
527
|
-
}, { ref_for: !0 },
|
|
524
|
+
checked: e.formData[f.key],
|
|
525
|
+
"onUpdate:checked": (V) => e.formData[f.key] = V
|
|
526
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["checked", "onUpdate:checked"])) : R("", !0)
|
|
528
527
|
]),
|
|
529
528
|
_: 2
|
|
530
529
|
}, [
|
|
531
|
-
|
|
530
|
+
f.tooltip ? {
|
|
532
531
|
name: "label",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
title:
|
|
532
|
+
fn: o(() => [
|
|
533
|
+
H(_(f.label) + " ", 1),
|
|
534
|
+
w(s(xe), {
|
|
535
|
+
title: f.tooltip
|
|
537
536
|
}, {
|
|
538
|
-
default:
|
|
539
|
-
|
|
537
|
+
default: o(() => [
|
|
538
|
+
w(s(bt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
540
539
|
]),
|
|
541
540
|
_: 1
|
|
542
541
|
}, 8, ["title"])
|
|
@@ -544,39 +543,39 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
544
543
|
key: "0"
|
|
545
544
|
} : void 0
|
|
546
545
|
]), 1040, ["name", "class"]))), 128)),
|
|
547
|
-
|
|
548
|
-
|
|
546
|
+
L("section", $t, [
|
|
547
|
+
w(r, {
|
|
549
548
|
type: "primary",
|
|
550
549
|
onClick: v,
|
|
551
550
|
class: "hb_list_page_button"
|
|
552
551
|
}, {
|
|
553
|
-
icon:
|
|
554
|
-
|
|
552
|
+
icon: o(() => [
|
|
553
|
+
w(s(De))
|
|
555
554
|
]),
|
|
556
|
-
default:
|
|
557
|
-
|
|
555
|
+
default: o(() => [
|
|
556
|
+
H(" " + _(I.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
558
557
|
]),
|
|
559
558
|
_: 1
|
|
560
559
|
}),
|
|
561
|
-
|
|
560
|
+
w(r, {
|
|
562
561
|
type: "link",
|
|
563
|
-
onClick:
|
|
562
|
+
onClick: A
|
|
564
563
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
|
|
564
|
+
default: o(() => [
|
|
565
|
+
H(_(I.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
567
566
|
]),
|
|
568
567
|
_: 1
|
|
569
568
|
}),
|
|
570
|
-
e.needFilter ? (
|
|
569
|
+
e.needFilter ? (l(), z(u, {
|
|
571
570
|
key: 0,
|
|
572
|
-
title:
|
|
571
|
+
title: I.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
573
572
|
}, {
|
|
574
|
-
default:
|
|
575
|
-
|
|
573
|
+
default: o(() => [
|
|
574
|
+
L("span", {
|
|
576
575
|
class: "hb-lib-form-svg",
|
|
577
|
-
onClick:
|
|
578
|
-
}, [...
|
|
579
|
-
|
|
576
|
+
onClick: j
|
|
577
|
+
}, [...n[0] || (n[0] = [
|
|
578
|
+
L("svg", {
|
|
580
579
|
t: "1757915025410",
|
|
581
580
|
class: "icon",
|
|
582
581
|
viewBox: "0 0 1024 1024",
|
|
@@ -586,7 +585,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
586
585
|
width: "200",
|
|
587
586
|
height: "200"
|
|
588
587
|
}, [
|
|
589
|
-
|
|
588
|
+
L("path", {
|
|
590
589
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
591
590
|
fill: "#ff5000",
|
|
592
591
|
"p-id": "16347"
|
|
@@ -595,74 +594,74 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
595
594
|
])])
|
|
596
595
|
]),
|
|
597
596
|
_: 1
|
|
598
|
-
}, 8, ["title"])) :
|
|
599
|
-
Y(
|
|
597
|
+
}, 8, ["title"])) : R("", !0),
|
|
598
|
+
Y(I.$slots, "formBtns", {}, void 0, !0)
|
|
600
599
|
])
|
|
601
600
|
]),
|
|
602
601
|
_: 3
|
|
603
602
|
}, 16, ["model", "class"]),
|
|
604
|
-
e.needFooter ? (
|
|
603
|
+
e.needFooter ? (l(), S("div", {
|
|
605
604
|
key: 0,
|
|
606
|
-
class:
|
|
605
|
+
class: E(s(h).e("footer"))
|
|
607
606
|
}, [
|
|
608
|
-
|
|
609
|
-
class:
|
|
607
|
+
L("div", {
|
|
608
|
+
class: E(s(h).e("footer__left"))
|
|
610
609
|
}, [
|
|
611
|
-
Y(
|
|
610
|
+
Y(I.$slots, "form-footer-left", {}, void 0, !0)
|
|
612
611
|
], 2),
|
|
613
|
-
|
|
614
|
-
class:
|
|
612
|
+
L("div", {
|
|
613
|
+
class: E(s(h).e("footer__right"))
|
|
615
614
|
}, [
|
|
616
|
-
|
|
615
|
+
b.value == "show" ? Y(I.$slots, "form-footer-right", {
|
|
617
616
|
key: 0,
|
|
618
|
-
formRef:
|
|
617
|
+
formRef: a.value
|
|
619
618
|
}, () => [
|
|
620
|
-
|
|
619
|
+
w(s(ue), {
|
|
621
620
|
type: "primary",
|
|
622
|
-
onClick:
|
|
621
|
+
onClick: A
|
|
623
622
|
}, {
|
|
624
|
-
default:
|
|
625
|
-
|
|
623
|
+
default: o(() => [
|
|
624
|
+
H(_(I.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
626
625
|
]),
|
|
627
626
|
_: 1
|
|
628
627
|
}),
|
|
629
|
-
|
|
628
|
+
w(s(ue), {
|
|
630
629
|
type: "primary",
|
|
631
630
|
onClick: v
|
|
632
631
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
|
|
632
|
+
default: o(() => [
|
|
633
|
+
H(_(I.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
635
634
|
]),
|
|
636
635
|
_: 1
|
|
637
636
|
})
|
|
638
|
-
], !0) :
|
|
639
|
-
|
|
637
|
+
], !0) : R("", !0),
|
|
638
|
+
w(s(ue), {
|
|
640
639
|
type: "primary",
|
|
641
|
-
onClick:
|
|
640
|
+
onClick: C
|
|
642
641
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
|
|
642
|
+
default: o(() => [
|
|
643
|
+
H(_(b.value == "show" ? `${I.$t("hbLibComp.hbListPageAct.close")}` : `${I.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
645
644
|
]),
|
|
646
645
|
_: 1
|
|
647
646
|
})
|
|
648
647
|
], 2)
|
|
649
|
-
], 2)) :
|
|
648
|
+
], 2)) : R("", !0)
|
|
650
649
|
], 2), [
|
|
651
650
|
[lt, e.isFormExpanded]
|
|
652
651
|
])
|
|
653
652
|
]),
|
|
654
653
|
_: 3
|
|
655
654
|
}),
|
|
656
|
-
|
|
655
|
+
w(k, {
|
|
657
656
|
list: t.value,
|
|
658
657
|
ref_key: "HbSfCmRef",
|
|
659
|
-
ref:
|
|
660
|
-
onConfirm:
|
|
658
|
+
ref: T,
|
|
659
|
+
onConfirm: m
|
|
661
660
|
}, null, 8, ["list"])
|
|
662
661
|
], 64);
|
|
663
662
|
};
|
|
664
663
|
}
|
|
665
|
-
}), Mt = /* @__PURE__ */
|
|
664
|
+
}), Mt = /* @__PURE__ */ le(It, [["__scopeId", "data-v-203a1bd9"]]), Ht = te(Mt), Dt = { class: "hb-lib-list-page-act-box" }, At = { class: "hb-lib-list-page-breadcrumb" }, Ot = { class: "hb-lib-list-page-act" }, Bt = {
|
|
666
665
|
key: 0,
|
|
667
666
|
t: "1757915338760",
|
|
668
667
|
class: "icon",
|
|
@@ -672,7 +671,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
672
671
|
"p-id": "22885",
|
|
673
672
|
width: "200",
|
|
674
673
|
height: "200"
|
|
675
|
-
},
|
|
674
|
+
}, zt = {
|
|
676
675
|
key: 1,
|
|
677
676
|
t: "1757915360496",
|
|
678
677
|
class: "icon",
|
|
@@ -689,49 +688,49 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
689
688
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
690
689
|
},
|
|
691
690
|
setup(e) {
|
|
692
|
-
const
|
|
693
|
-
const
|
|
694
|
-
let
|
|
695
|
-
if (
|
|
696
|
-
let
|
|
697
|
-
|
|
691
|
+
const p = Me("HB_LIST_PAGE_CONTAINER"), { isFullscreen: d, toggle: c } = Ct(p.PageContainerRef), y = P(""), h = () => {
|
|
692
|
+
const i = Ze();
|
|
693
|
+
let b = localStorage.getItem("BreadCrumb") || "[]", t = i?.path;
|
|
694
|
+
if (b !== "[]") {
|
|
695
|
+
let a = JSON.parse(b).find((v) => v.value === t);
|
|
696
|
+
a && (y.value = a.label.replace(/-/g, " / "));
|
|
698
697
|
}
|
|
699
698
|
};
|
|
700
|
-
return
|
|
701
|
-
|
|
702
|
-
}), (
|
|
703
|
-
const t =
|
|
704
|
-
return
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
title:
|
|
699
|
+
return He(() => {
|
|
700
|
+
h();
|
|
701
|
+
}), (i, b) => {
|
|
702
|
+
const t = U("a-tooltip");
|
|
703
|
+
return l(), S("section", Dt, [
|
|
704
|
+
L("aside", At, _(y.value), 1),
|
|
705
|
+
L("aside", Ot, [
|
|
706
|
+
w(t, {
|
|
707
|
+
title: s(d) ? `${i.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${i.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
709
708
|
placement: "leftTop"
|
|
710
709
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
|
|
710
|
+
default: o(() => [
|
|
711
|
+
L("span", {
|
|
713
712
|
class: "hb-lib-list-page-act-svg",
|
|
714
|
-
onClick:
|
|
715
|
-
(...
|
|
713
|
+
onClick: b[0] || (b[0] = //@ts-ignore
|
|
714
|
+
(...a) => s(c) && s(c)(...a))
|
|
716
715
|
}, [
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
s(d) ? (l(), S("svg", zt, [...b[2] || (b[2] = [
|
|
717
|
+
L("path", {
|
|
719
718
|
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",
|
|
720
719
|
fill: "#ff5000",
|
|
721
720
|
"p-id": "23905"
|
|
722
721
|
}, null, -1),
|
|
723
|
-
|
|
722
|
+
L("path", {
|
|
724
723
|
d: "M896 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.333333zM257.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.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",
|
|
725
724
|
fill: "#ff5000",
|
|
726
725
|
"p-id": "23906"
|
|
727
726
|
}, null, -1),
|
|
728
|
-
|
|
727
|
+
L("path", {
|
|
729
728
|
d: "M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",
|
|
730
729
|
fill: "#ff5000",
|
|
731
730
|
"p-id": "23907"
|
|
732
731
|
}, null, -1)
|
|
733
|
-
])])) : (
|
|
734
|
-
|
|
732
|
+
])])) : (l(), S("svg", Bt, [...b[1] || (b[1] = [
|
|
733
|
+
L("path", {
|
|
735
734
|
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",
|
|
736
735
|
fill: "#ff5000",
|
|
737
736
|
"p-id": "22886"
|
|
@@ -741,12 +740,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
741
740
|
]),
|
|
742
741
|
_: 1
|
|
743
742
|
}, 8, ["title"]),
|
|
744
|
-
Y(
|
|
743
|
+
Y(i.$slots, "listAct", {}, void 0, !0)
|
|
745
744
|
])
|
|
746
745
|
]);
|
|
747
746
|
};
|
|
748
747
|
}
|
|
749
|
-
}), Pt = /* @__PURE__ */
|
|
748
|
+
}), Pt = /* @__PURE__ */ le(Rt, [["__scopeId", "data-v-a7ddfc50"]]), Nt = te(Pt), Ut = { class: "hb-lib-list-btns-box" }, Vt = { class: "hb-lib-list-btns-left" }, Et = { class: "hb-lib-list-btns-right" }, Yt = /* @__PURE__ */ ee({
|
|
750
749
|
name: "HbLibListBtnsAct",
|
|
751
750
|
__name: "HbListBtns",
|
|
752
751
|
props: {
|
|
@@ -754,30 +753,30 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
754
753
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
755
754
|
},
|
|
756
755
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
757
|
-
setup(e, { emit:
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
},
|
|
761
|
-
|
|
756
|
+
setup(e, { emit: p }) {
|
|
757
|
+
const d = p, c = P(!0), y = () => {
|
|
758
|
+
c.value = !c.value, d("handleOpenOrClose", c.value);
|
|
759
|
+
}, h = () => {
|
|
760
|
+
d("handleReload");
|
|
762
761
|
};
|
|
763
|
-
return
|
|
764
|
-
}), (
|
|
765
|
-
const t =
|
|
766
|
-
return
|
|
767
|
-
|
|
768
|
-
Y(
|
|
762
|
+
return He(() => {
|
|
763
|
+
}), (i, b) => {
|
|
764
|
+
const t = U("a-tooltip");
|
|
765
|
+
return l(), S("section", Ut, [
|
|
766
|
+
L("aside", Vt, [
|
|
767
|
+
Y(i.$slots, "btnsLeft", {}, void 0, !0)
|
|
769
768
|
]),
|
|
770
|
-
|
|
771
|
-
e.needReload ? (
|
|
769
|
+
L("aside", Et, [
|
|
770
|
+
e.needReload ? (l(), z(t, {
|
|
772
771
|
key: 0,
|
|
773
|
-
title:
|
|
772
|
+
title: i.$t("hbLibComp.hbListBtnsAct.reload")
|
|
774
773
|
}, {
|
|
775
|
-
default:
|
|
776
|
-
|
|
774
|
+
default: o(() => [
|
|
775
|
+
L("span", {
|
|
777
776
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
778
|
-
onClick:
|
|
779
|
-
}, [...
|
|
780
|
-
|
|
777
|
+
onClick: h
|
|
778
|
+
}, [...b[0] || (b[0] = [
|
|
779
|
+
L("svg", {
|
|
781
780
|
t: "1759041224819",
|
|
782
781
|
class: "icon",
|
|
783
782
|
viewBox: "0 0 1024 1024",
|
|
@@ -787,7 +786,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
787
786
|
width: "200",
|
|
788
787
|
height: "200"
|
|
789
788
|
}, [
|
|
790
|
-
|
|
789
|
+
L("path", {
|
|
791
790
|
d: "M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",
|
|
792
791
|
fill: "#ff5000",
|
|
793
792
|
"p-id": "4203"
|
|
@@ -796,109 +795,109 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
796
795
|
])])
|
|
797
796
|
]),
|
|
798
797
|
_: 1
|
|
799
|
-
}, 8, ["title"])) :
|
|
800
|
-
e.needOpenOrClose ? (
|
|
798
|
+
}, 8, ["title"])) : R("", !0),
|
|
799
|
+
e.needOpenOrClose ? (l(), z(t, {
|
|
801
800
|
key: 1,
|
|
802
|
-
title:
|
|
801
|
+
title: c.value ? `${i.$t("hbLibComp.hbListBtnsAct.close")}` : `${i.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
803
802
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
803
|
+
default: o(() => [
|
|
804
|
+
L("span", {
|
|
806
805
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
807
|
-
onClick:
|
|
806
|
+
onClick: y
|
|
808
807
|
}, [
|
|
809
|
-
|
|
808
|
+
c.value ? (l(), z(s(pt), {
|
|
810
809
|
key: 0,
|
|
811
810
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
812
|
-
})) : (
|
|
811
|
+
})) : (l(), z(s(ft), {
|
|
813
812
|
key: 1,
|
|
814
813
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
815
814
|
}))
|
|
816
815
|
])
|
|
817
816
|
]),
|
|
818
817
|
_: 1
|
|
819
|
-
}, 8, ["title"])) :
|
|
820
|
-
Y(
|
|
818
|
+
}, 8, ["title"])) : R("", !0),
|
|
819
|
+
Y(i.$slots, "btnsRight", {}, void 0, !0)
|
|
821
820
|
])
|
|
822
821
|
]);
|
|
823
822
|
};
|
|
824
823
|
}
|
|
825
|
-
}),
|
|
826
|
-
const { formRef:
|
|
827
|
-
let
|
|
824
|
+
}), jt = /* @__PURE__ */ le(Yt, [["__scopeId", "data-v-da13672b"]]), qt = te(jt), Kt = (e = {}) => {
|
|
825
|
+
const { formRef: p, offsetBottom: d = 50, minHeight: c = 300 } = e, y = P(0);
|
|
826
|
+
let h = null, i = null, b = null, t = null, a = null;
|
|
828
827
|
const v = () => {
|
|
829
|
-
|
|
828
|
+
a && clearTimeout(a), a = setTimeout(() => {
|
|
830
829
|
requestAnimationFrame(() => {
|
|
831
830
|
be(() => {
|
|
832
|
-
const
|
|
833
|
-
if (
|
|
834
|
-
const
|
|
835
|
-
let
|
|
836
|
-
|
|
831
|
+
const x = document.querySelector(".ant-table"), N = document.querySelector(".ant-pagination");
|
|
832
|
+
if (x) {
|
|
833
|
+
const M = x.getBoundingClientRect().top, I = window.innerHeight, r = (N ? N.offsetHeight + 20 : 40) + d;
|
|
834
|
+
let u = I - M - r;
|
|
835
|
+
u < c && (u = c), y.value = u;
|
|
837
836
|
}
|
|
838
837
|
});
|
|
839
838
|
});
|
|
840
839
|
}, 100);
|
|
841
|
-
},
|
|
842
|
-
const
|
|
843
|
-
if (
|
|
844
|
-
const
|
|
840
|
+
}, A = () => {
|
|
841
|
+
const x = document.querySelector(".ant-pagination");
|
|
842
|
+
if (x) {
|
|
843
|
+
const N = new MutationObserver(() => {
|
|
845
844
|
v();
|
|
846
845
|
});
|
|
847
|
-
return
|
|
846
|
+
return N.observe(x, {
|
|
848
847
|
childList: !0,
|
|
849
848
|
subtree: !0,
|
|
850
849
|
attributes: !0,
|
|
851
850
|
attributeFilter: ["style", "class"]
|
|
852
|
-
}),
|
|
851
|
+
}), N;
|
|
853
852
|
}
|
|
854
853
|
return null;
|
|
855
|
-
},
|
|
856
|
-
const
|
|
857
|
-
|
|
858
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
859
|
-
|
|
854
|
+
}, T = () => {
|
|
855
|
+
const x = document.querySelector(".hb-lib-list-page-form-box");
|
|
856
|
+
x && (h = new ResizeObserver(() => {
|
|
857
|
+
document.querySelectorAll(".ant-tooltip").forEach((M) => {
|
|
858
|
+
M.style.display = "none";
|
|
860
859
|
}), v();
|
|
861
|
-
}),
|
|
862
|
-
},
|
|
863
|
-
const
|
|
864
|
-
|
|
860
|
+
}), h.observe(x));
|
|
861
|
+
}, j = () => {
|
|
862
|
+
const x = document.querySelector(".hb-lib-list-page-form-box");
|
|
863
|
+
x && (b = new MutationObserver(() => {
|
|
865
864
|
setTimeout(() => {
|
|
866
865
|
v();
|
|
867
866
|
}, 100);
|
|
868
|
-
}),
|
|
867
|
+
}), b.observe(x, {
|
|
869
868
|
childList: !0,
|
|
870
869
|
subtree: !0,
|
|
871
870
|
attributes: !0,
|
|
872
871
|
attributeFilter: ["style", "class"]
|
|
873
872
|
}));
|
|
874
|
-
},
|
|
873
|
+
}, m = () => {
|
|
875
874
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
876
875
|
v();
|
|
877
876
|
}, 100);
|
|
878
|
-
},
|
|
879
|
-
window.addEventListener("resize",
|
|
880
|
-
|
|
877
|
+
}, C = () => {
|
|
878
|
+
window.addEventListener("resize", m), be(() => {
|
|
879
|
+
T(), j(), i = A();
|
|
881
880
|
});
|
|
882
|
-
},
|
|
883
|
-
window.removeEventListener("resize",
|
|
881
|
+
}, g = () => {
|
|
882
|
+
window.removeEventListener("resize", m), h && h.disconnect(), b && b.disconnect(), i && i.disconnect(), t && clearTimeout(t), a && clearTimeout(a);
|
|
884
883
|
};
|
|
885
|
-
return
|
|
886
|
-
() =>
|
|
884
|
+
return p && ne(
|
|
885
|
+
() => p,
|
|
887
886
|
() => {
|
|
888
887
|
setTimeout(() => {
|
|
889
888
|
v();
|
|
890
889
|
}, 200);
|
|
891
890
|
},
|
|
892
891
|
{ deep: !0 }
|
|
893
|
-
),
|
|
894
|
-
v(),
|
|
892
|
+
), He(() => {
|
|
893
|
+
v(), C();
|
|
895
894
|
}), ot(() => {
|
|
896
|
-
|
|
895
|
+
g();
|
|
897
896
|
}), {
|
|
898
|
-
tableHeight:
|
|
897
|
+
tableHeight: y,
|
|
899
898
|
calTableHeight: v
|
|
900
899
|
};
|
|
901
|
-
},
|
|
900
|
+
}, Wt = /* @__PURE__ */ ee({
|
|
902
901
|
name: "HbLibListPageContainer",
|
|
903
902
|
__name: "HbListPageContainer",
|
|
904
903
|
props: {
|
|
@@ -908,50 +907,50 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
908
907
|
minHeight: {}
|
|
909
908
|
},
|
|
910
909
|
setup(e) {
|
|
911
|
-
const
|
|
912
|
-
offsetBottom:
|
|
910
|
+
const p = e, d = at("PageContainerRef"), { calTableHeight: c, tableHeight: y } = Kt({
|
|
911
|
+
offsetBottom: p.offsetBottom || 20,
|
|
913
912
|
// 底部预留空间
|
|
914
|
-
minHeight:
|
|
913
|
+
minHeight: p.minHeight || 300
|
|
915
914
|
// table最小高度 请勿随便修改!!
|
|
916
|
-
}),
|
|
915
|
+
}), h = W(() => y.value);
|
|
917
916
|
return nt("HB_LIST_PAGE_CONTAINER", {
|
|
918
|
-
PageContainerRef:
|
|
917
|
+
PageContainerRef: d,
|
|
919
918
|
// 通过函数访问,
|
|
920
|
-
tableHeight:
|
|
921
|
-
calTableHeight:
|
|
922
|
-
}), (
|
|
919
|
+
tableHeight: y,
|
|
920
|
+
calTableHeight: c
|
|
921
|
+
}), (i, b) => (l(), S("section", {
|
|
923
922
|
class: "hb-lib-list-page-container",
|
|
924
923
|
ref_key: "PageContainerRef",
|
|
925
|
-
ref:
|
|
924
|
+
ref: d
|
|
926
925
|
}, [
|
|
927
|
-
Y(
|
|
928
|
-
|
|
926
|
+
Y(i.$slots, "header"),
|
|
927
|
+
L("section", {
|
|
929
928
|
class: "list-page-box",
|
|
930
|
-
style:
|
|
931
|
-
"--hb-list-table-height":
|
|
932
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
929
|
+
style: ve({
|
|
930
|
+
"--hb-list-table-height": h.value - p.offsetBottom + "px",
|
|
931
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : h.value - p.offsetBottom + "px"
|
|
933
932
|
})
|
|
934
933
|
}, [
|
|
935
|
-
Y(
|
|
934
|
+
Y(i.$slots, "default")
|
|
936
935
|
], 4)
|
|
937
936
|
], 512));
|
|
938
937
|
}
|
|
939
|
-
}),
|
|
938
|
+
}), Jt = te(Wt), Gt = { style: { "font-weight": "500" } }, Qt = {
|
|
940
939
|
key: 0,
|
|
941
940
|
class: "hb-lib-search-tag__description"
|
|
942
|
-
},
|
|
941
|
+
}, Zt = { class: "hb-lib-selector-dropdown" }, Xt = { class: "hb-lib-selector-search" }, el = { class: "hb-lib-selector-list" }, tl = ["onClick"], ll = { class: "hb-lib-option-content" }, ol = { class: "hb-lib-option-label" }, al = {
|
|
943
942
|
key: 0,
|
|
944
943
|
class: "hb-lib-selector-empty"
|
|
945
|
-
},
|
|
944
|
+
}, nl = {
|
|
946
945
|
key: 1,
|
|
947
946
|
class: "hb-lib-selector-footer"
|
|
948
|
-
},
|
|
947
|
+
}, sl = { class: "hb-lib-footer-buttons" }, il = {
|
|
949
948
|
key: 2,
|
|
950
949
|
class: "hb-lib-selector-footer"
|
|
951
|
-
},
|
|
950
|
+
}, rl = { class: "hb-lib-footer-buttons" }, dl = /* @__PURE__ */ ee({
|
|
952
951
|
name: "HbLibListMultiSelect",
|
|
953
952
|
__name: "HbListMultiSelect",
|
|
954
|
-
props: /* @__PURE__ */
|
|
953
|
+
props: /* @__PURE__ */ Se({
|
|
955
954
|
placeholder: { default: "点击选择" },
|
|
956
955
|
searchPlaceholder: { default: "搜索选项" },
|
|
957
956
|
width: { default: 600 },
|
|
@@ -967,183 +966,183 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
967
966
|
value: {},
|
|
968
967
|
valueModifiers: {}
|
|
969
968
|
}),
|
|
970
|
-
emits: /* @__PURE__ */
|
|
971
|
-
setup(e, { emit:
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
974
|
-
const
|
|
975
|
-
return
|
|
976
|
-
}), v =
|
|
977
|
-
if (
|
|
978
|
-
const
|
|
979
|
-
return
|
|
969
|
+
emits: /* @__PURE__ */ Se(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
970
|
+
setup(e, { emit: p }) {
|
|
971
|
+
const d = e, c = p, y = Qe(e, "value"), h = P(!1), i = P(""), b = P([]), t = P(), a = W(() => {
|
|
972
|
+
if (d.remoteSearch || !i.value) return d.options;
|
|
973
|
+
const n = i.value.toLowerCase();
|
|
974
|
+
return d.options.filter((r) => r.label.toLowerCase().includes(n) || r.description?.toLowerCase().includes(n));
|
|
975
|
+
}), v = W(() => d.prefix ? `${d.prefix.length * 14 + 8}px` : "0px"), A = W(() => a.value.length === 0 ? !1 : a.value.every((n) => b.value.includes(n.value))), T = W(() => {
|
|
976
|
+
if (a.value.length === 0) return !1;
|
|
977
|
+
const n = a.value.filter((r) => b.value.includes(r.value)).length;
|
|
978
|
+
return n > 0 && n < a.value.length;
|
|
980
979
|
});
|
|
981
|
-
|
|
982
|
-
() =>
|
|
983
|
-
(
|
|
984
|
-
|
|
980
|
+
ne(
|
|
981
|
+
() => y.value,
|
|
982
|
+
(n) => {
|
|
983
|
+
n ? b.value = Array.isArray(n) ? [...n] : [n] : b.value = [];
|
|
985
984
|
},
|
|
986
985
|
{ immediate: !0 }
|
|
987
|
-
),
|
|
988
|
-
() =>
|
|
989
|
-
(
|
|
990
|
-
|
|
986
|
+
), ne(
|
|
987
|
+
() => d.searchValue,
|
|
988
|
+
(n) => {
|
|
989
|
+
d.remoteSearch && n !== void 0 && (i.value = n);
|
|
991
990
|
},
|
|
992
991
|
{ immediate: !0 }
|
|
993
992
|
);
|
|
994
|
-
const
|
|
995
|
-
|
|
993
|
+
const j = (n) => {
|
|
994
|
+
n && (h.value = n, m.value = [...b.value], i.value = "", setTimeout(() => {
|
|
996
995
|
if (t.value) {
|
|
997
|
-
const
|
|
998
|
-
|
|
996
|
+
const r = t.value.input || t.value.$el?.querySelector("input");
|
|
997
|
+
r && r.focus();
|
|
999
998
|
}
|
|
1000
999
|
}, 100));
|
|
1001
|
-
},
|
|
1002
|
-
|
|
1003
|
-
},
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1006
|
-
},
|
|
1007
|
-
const
|
|
1008
|
-
|
|
1009
|
-
}, 300),
|
|
1010
|
-
if (
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1000
|
+
}, m = P([]), C = () => {
|
|
1001
|
+
b.value = [...m.value], h.value = !1, c("cancel");
|
|
1002
|
+
}, g = P([]), x = () => {
|
|
1003
|
+
const n = d.multiple ? b.value : b.value[0] || "", r = d.options.filter((u) => b.value.includes(u.value));
|
|
1004
|
+
g.value = r, console.log(n, r), m.value = [...b.value], y.value = n, c("update:value", n), c("change", n, r), c("confirm", n, r), h.value = !1;
|
|
1005
|
+
}, N = Lt((n) => {
|
|
1006
|
+
const r = n !== void 0 ? n : i.value;
|
|
1007
|
+
d.remoteSearch && (c("search", r), c("update:searchValue", r));
|
|
1008
|
+
}, 300), M = (n) => {
|
|
1009
|
+
if (d.multiple) {
|
|
1010
|
+
const r = new Set(b.value);
|
|
1011
|
+
r.has(n.value) ? r.delete(n.value) : r.add(n.value), b.value = Array.from(r);
|
|
1013
1012
|
} else
|
|
1014
|
-
|
|
1015
|
-
},
|
|
1016
|
-
if (
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}),
|
|
1013
|
+
b.value = [n.value], x();
|
|
1014
|
+
}, I = (n) => {
|
|
1015
|
+
if (n.target.checked) {
|
|
1016
|
+
const u = new Set(b.value);
|
|
1017
|
+
a.value.forEach((k) => {
|
|
1018
|
+
u.add(k.value);
|
|
1019
|
+
}), b.value = Array.from(u);
|
|
1021
1020
|
} else {
|
|
1022
|
-
const
|
|
1023
|
-
|
|
1021
|
+
const u = new Set(a.value.map((k) => k.value));
|
|
1022
|
+
b.value = b.value.filter((k) => !u.has(k));
|
|
1024
1023
|
}
|
|
1025
1024
|
};
|
|
1026
|
-
return (
|
|
1027
|
-
const
|
|
1028
|
-
return
|
|
1025
|
+
return (n, r) => {
|
|
1026
|
+
const u = U("a-tag"), k = U("a-input"), f = U("a-checkbox"), J = U("a-radio"), V = U("a-button"), oe = U("a-select");
|
|
1027
|
+
return l(), S("div", X({
|
|
1029
1028
|
class: "hb-lib-selector-wrapper",
|
|
1030
1029
|
style: { "--prefix-width": v.value }
|
|
1031
|
-
},
|
|
1032
|
-
|
|
1033
|
-
value:
|
|
1034
|
-
"onUpdate:value":
|
|
1030
|
+
}, n.$attrs), [
|
|
1031
|
+
w(oe, {
|
|
1032
|
+
value: y.value,
|
|
1033
|
+
"onUpdate:value": r[5] || (r[5] = (Q) => y.value = Q),
|
|
1035
1034
|
mode: e.multiple ? "multiple" : void 0,
|
|
1036
1035
|
placeholder: e.placeholder,
|
|
1037
1036
|
"show-search": !0,
|
|
1038
1037
|
"filter-option": !1,
|
|
1039
|
-
open:
|
|
1038
|
+
open: h.value,
|
|
1040
1039
|
allowClear: "",
|
|
1041
1040
|
maxTagCount: e.maxTagCount,
|
|
1042
|
-
options:
|
|
1043
|
-
onDropdownVisibleChange:
|
|
1044
|
-
onSearch:
|
|
1041
|
+
options: a.value,
|
|
1042
|
+
onDropdownVisibleChange: j,
|
|
1043
|
+
onSearch: s(N),
|
|
1045
1044
|
"max-tag-text-length": e.tagTextLength,
|
|
1046
|
-
class:
|
|
1045
|
+
class: E({ "has-prefix": e.prefix }),
|
|
1047
1046
|
"data-prefix": e.prefix,
|
|
1048
1047
|
style: { width: "100%" }
|
|
1049
1048
|
}, {
|
|
1050
|
-
tagRender:
|
|
1051
|
-
|
|
1049
|
+
tagRender: o(({ value: Q, label: G, closable: $, option: O }) => [
|
|
1050
|
+
w(u, {
|
|
1052
1051
|
class: "hb-lib-search-tag",
|
|
1053
|
-
onClick:
|
|
1052
|
+
onClick: r[0] || (r[0] = () => j(!0))
|
|
1054
1053
|
}, {
|
|
1055
|
-
default:
|
|
1056
|
-
|
|
1057
|
-
|
|
1054
|
+
default: o(() => [
|
|
1055
|
+
L("span", Gt, _(G), 1),
|
|
1056
|
+
O?.description ? (l(), S("span", Qt, " (" + _(O.description) + ") ", 1)) : R("", !0)
|
|
1058
1057
|
]),
|
|
1059
1058
|
_: 2
|
|
1060
1059
|
}, 1024)
|
|
1061
1060
|
]),
|
|
1062
|
-
dropdownRender:
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1061
|
+
dropdownRender: o(({ menuNode: Q }) => [
|
|
1062
|
+
L("div", Zt, [
|
|
1063
|
+
L("div", Xt, [
|
|
1064
|
+
w(k, {
|
|
1066
1065
|
ref_key: "searchInputRef",
|
|
1067
1066
|
ref: t,
|
|
1068
1067
|
class: "hb-lib-selector-search-input",
|
|
1069
|
-
value:
|
|
1070
|
-
"onUpdate:value":
|
|
1068
|
+
value: i.value,
|
|
1069
|
+
"onUpdate:value": r[1] || (r[1] = (G) => i.value = G),
|
|
1071
1070
|
placeholder: "请输入关键词搜索",
|
|
1072
1071
|
"allow-clear": "",
|
|
1073
|
-
onInput:
|
|
1072
|
+
onInput: r[2] || (r[2] = (G) => s(N)(G.target.value))
|
|
1074
1073
|
}, {
|
|
1075
|
-
prefix:
|
|
1076
|
-
|
|
1074
|
+
prefix: o(() => [
|
|
1075
|
+
w(s(De))
|
|
1077
1076
|
]),
|
|
1078
1077
|
_: 1
|
|
1079
1078
|
}, 8, ["value"])
|
|
1080
1079
|
]),
|
|
1081
|
-
|
|
1082
|
-
(
|
|
1083
|
-
key:
|
|
1084
|
-
class:
|
|
1085
|
-
onClick: () =>
|
|
1080
|
+
L("div", el, [
|
|
1081
|
+
(l(!0), S(K, null, ae(a.value, (G) => (l(), S("div", {
|
|
1082
|
+
key: G.value,
|
|
1083
|
+
class: E(["hb-lib-selector-option", { selected: b.value.includes(G.value) }]),
|
|
1084
|
+
onClick: () => M(G)
|
|
1086
1085
|
}, [
|
|
1087
|
-
e.multiple ? (
|
|
1086
|
+
e.multiple ? (l(), z(f, {
|
|
1088
1087
|
key: 0,
|
|
1089
|
-
checked:
|
|
1090
|
-
onChange: () =>
|
|
1091
|
-
onClick:
|
|
1088
|
+
checked: b.value.includes(G.value),
|
|
1089
|
+
onChange: () => M(G),
|
|
1090
|
+
onClick: r[3] || (r[3] = Fe(() => {
|
|
1092
1091
|
}, ["stop"]))
|
|
1093
|
-
}, null, 8, ["checked", "onChange"])) : (
|
|
1092
|
+
}, null, 8, ["checked", "onChange"])) : (l(), z(J, {
|
|
1094
1093
|
key: 1,
|
|
1095
|
-
checked:
|
|
1096
|
-
onChange: () =>
|
|
1097
|
-
onClick:
|
|
1094
|
+
checked: b.value.includes(G.value),
|
|
1095
|
+
onChange: () => M(G),
|
|
1096
|
+
onClick: r[4] || (r[4] = Fe(() => {
|
|
1098
1097
|
}, ["stop"]))
|
|
1099
1098
|
}, null, 8, ["checked", "onChange"])),
|
|
1100
|
-
|
|
1101
|
-
|
|
1099
|
+
L("div", ll, [
|
|
1100
|
+
L("div", ol, _(G.label), 1)
|
|
1102
1101
|
])
|
|
1103
|
-
], 10,
|
|
1102
|
+
], 10, tl))), 128))
|
|
1104
1103
|
]),
|
|
1105
|
-
|
|
1106
|
-
e.multiple ? (
|
|
1107
|
-
|
|
1108
|
-
checked:
|
|
1109
|
-
indeterminate:
|
|
1110
|
-
onChange:
|
|
1104
|
+
a.value.length === 0 ? (l(), S("div", al, _(n.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : R("", !0),
|
|
1105
|
+
e.multiple ? (l(), S("div", nl, [
|
|
1106
|
+
w(f, {
|
|
1107
|
+
checked: A.value,
|
|
1108
|
+
indeterminate: T.value,
|
|
1109
|
+
onChange: I
|
|
1111
1110
|
}, {
|
|
1112
|
-
default:
|
|
1113
|
-
|
|
1111
|
+
default: o(() => [
|
|
1112
|
+
H(_(n.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1114
1113
|
]),
|
|
1115
1114
|
_: 1
|
|
1116
1115
|
}, 8, ["checked", "indeterminate"]),
|
|
1117
|
-
|
|
1118
|
-
|
|
1116
|
+
L("div", sl, [
|
|
1117
|
+
w(V, {
|
|
1119
1118
|
size: "small",
|
|
1120
|
-
onClick:
|
|
1119
|
+
onClick: C
|
|
1121
1120
|
}, {
|
|
1122
|
-
default:
|
|
1123
|
-
|
|
1121
|
+
default: o(() => [
|
|
1122
|
+
H(_(n.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1124
1123
|
]),
|
|
1125
1124
|
_: 1
|
|
1126
1125
|
}),
|
|
1127
|
-
|
|
1126
|
+
w(V, {
|
|
1128
1127
|
type: "primary",
|
|
1129
1128
|
size: "small",
|
|
1130
|
-
onClick:
|
|
1129
|
+
onClick: x
|
|
1131
1130
|
}, {
|
|
1132
|
-
default:
|
|
1133
|
-
|
|
1131
|
+
default: o(() => [
|
|
1132
|
+
H(_(n.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1134
1133
|
]),
|
|
1135
1134
|
_: 1
|
|
1136
1135
|
})
|
|
1137
1136
|
])
|
|
1138
|
-
])) : (
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1137
|
+
])) : (l(), S("div", il, [
|
|
1138
|
+
r[6] || (r[6] = L("div", null, null, -1)),
|
|
1139
|
+
L("div", rl, [
|
|
1140
|
+
w(V, {
|
|
1142
1141
|
size: "small",
|
|
1143
|
-
onClick:
|
|
1142
|
+
onClick: C
|
|
1144
1143
|
}, {
|
|
1145
|
-
default:
|
|
1146
|
-
|
|
1144
|
+
default: o(() => [
|
|
1145
|
+
H(_(n.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1147
1146
|
]),
|
|
1148
1147
|
_: 1
|
|
1149
1148
|
})
|
|
@@ -1156,7 +1155,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1156
1155
|
], 16);
|
|
1157
1156
|
};
|
|
1158
1157
|
}
|
|
1159
|
-
}), cl = /* @__PURE__ */
|
|
1158
|
+
}), cl = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-87177371"]]), ul = te(cl), bl = { class: "hb-lib-form-item-filter-modal-search" }, pl = { class: "hb-lib-form-item-filter-modal-buttons" }, fl = { key: 0 }, hl = /* @__PURE__ */ ee({
|
|
1160
1159
|
name: "HbLibMutilpleSelectModal",
|
|
1161
1160
|
__name: "HbMutilpleSelectModal",
|
|
1162
1161
|
props: {
|
|
@@ -1169,149 +1168,149 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1169
1168
|
labelKey: { default: "label" }
|
|
1170
1169
|
},
|
|
1171
1170
|
emits: ["handleConfirm", "handleCancel"],
|
|
1172
|
-
setup(e, { expose:
|
|
1173
|
-
const
|
|
1171
|
+
setup(e, { expose: p, emit: d }) {
|
|
1172
|
+
const c = e, y = d, h = P(!1), i = P(""), b = P(), t = P(), a = P([]), v = P([]), A = P(), T = me({
|
|
1174
1173
|
searchText: "",
|
|
1175
1174
|
searchedColumn: ""
|
|
1176
|
-
}),
|
|
1175
|
+
}), j = W(() => c.tableData.map((u) => (u.id = u.id || Math.random(), u))), m = W(() => c.tableColumn.map((u) => (u.customFilterDropdown && (u.onFilter = (k, f) => f[u.dataIndex].toString().toLowerCase().includes(k.toLowerCase()), u.onFilterDropdownVisibleChange = (k) => {
|
|
1177
1176
|
k && setTimeout(() => {
|
|
1178
|
-
|
|
1177
|
+
b.value?.focus();
|
|
1179
1178
|
}, 100);
|
|
1180
|
-
}), { ...
|
|
1181
|
-
let
|
|
1179
|
+
}), { ...u }))), C = () => {
|
|
1180
|
+
let u = "";
|
|
1182
1181
|
v.value.forEach((k) => {
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
},
|
|
1186
|
-
|
|
1187
|
-
},
|
|
1188
|
-
|
|
1189
|
-
const
|
|
1190
|
-
|
|
1182
|
+
u = u + k[c.labelKey] + ",";
|
|
1183
|
+
}), i.value = u.substring(0, u.length - 1), h.value = !1, y("handleConfirm", v.value);
|
|
1184
|
+
}, g = () => {
|
|
1185
|
+
h.value = !1;
|
|
1186
|
+
}, x = () => {
|
|
1187
|
+
h.value = !0, be(() => {
|
|
1188
|
+
const u = A.value?.$el?.querySelector(".ant-table-body");
|
|
1189
|
+
u && (u.scrollTop = 0);
|
|
1191
1190
|
});
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1194
|
-
},
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
k(),
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1191
|
+
}, N = () => {
|
|
1192
|
+
a.value = [], v.value = [];
|
|
1193
|
+
}, M = () => {
|
|
1194
|
+
i.value = "", N();
|
|
1195
|
+
}, I = (u, k, f) => {
|
|
1196
|
+
k(), T.searchText = u[0], T.searchedColumn = f;
|
|
1197
|
+
}, n = (u, k) => {
|
|
1198
|
+
u({ confirm: !0 }), T.searchText = "", k();
|
|
1199
|
+
}, r = (u, k) => {
|
|
1200
|
+
a.value = u, v.value = k;
|
|
1202
1201
|
};
|
|
1203
|
-
return
|
|
1204
|
-
resetInputVal:
|
|
1205
|
-
}), (
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1202
|
+
return p({
|
|
1203
|
+
resetInputVal: M
|
|
1204
|
+
}), (u, k) => {
|
|
1205
|
+
const f = U("a-input"), J = U("a-button"), V = U("a-table"), oe = U("a-modal");
|
|
1206
|
+
return l(), S("div", {
|
|
1208
1207
|
class: "hb-lib-multipleSelectModal-box",
|
|
1209
1208
|
ref_key: "hbMultipSelectModalRef",
|
|
1210
1209
|
ref: t
|
|
1211
1210
|
}, [
|
|
1212
|
-
|
|
1211
|
+
w(f, {
|
|
1213
1212
|
readonly: "",
|
|
1214
|
-
onClick:
|
|
1215
|
-
value:
|
|
1216
|
-
"onUpdate:value": k[0] || (k[0] = (Q) =>
|
|
1217
|
-
placeholder:
|
|
1213
|
+
onClick: x,
|
|
1214
|
+
value: i.value,
|
|
1215
|
+
"onUpdate:value": k[0] || (k[0] = (Q) => i.value = Q),
|
|
1216
|
+
placeholder: u.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1218
1217
|
}, {
|
|
1219
|
-
addonAfter:
|
|
1220
|
-
|
|
1218
|
+
addonAfter: o(() => [
|
|
1219
|
+
w(s(ht), { onClick: x })
|
|
1221
1220
|
]),
|
|
1222
1221
|
_: 1
|
|
1223
1222
|
}, 8, ["value", "placeholder"]),
|
|
1224
|
-
|
|
1225
|
-
visible:
|
|
1226
|
-
"onUpdate:visible": k[1] || (k[1] = (Q) =>
|
|
1223
|
+
w(oe, {
|
|
1224
|
+
visible: h.value,
|
|
1225
|
+
"onUpdate:visible": k[1] || (k[1] = (Q) => h.value = Q),
|
|
1227
1226
|
title: e.modelTitle,
|
|
1228
1227
|
width: e.modalWidth,
|
|
1229
1228
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1230
1229
|
}, {
|
|
1231
|
-
footer:
|
|
1232
|
-
|
|
1233
|
-
default:
|
|
1234
|
-
|
|
1230
|
+
footer: o(() => [
|
|
1231
|
+
w(J, { onClick: N }, {
|
|
1232
|
+
default: o(() => [
|
|
1233
|
+
H(_(u.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1235
1234
|
]),
|
|
1236
1235
|
_: 1
|
|
1237
1236
|
}),
|
|
1238
|
-
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1237
|
+
w(J, { onClick: g }, {
|
|
1238
|
+
default: o(() => [
|
|
1239
|
+
H(_(u.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1241
1240
|
]),
|
|
1242
1241
|
_: 1
|
|
1243
1242
|
}),
|
|
1244
|
-
|
|
1243
|
+
w(J, {
|
|
1245
1244
|
type: "primary",
|
|
1246
|
-
onClick:
|
|
1245
|
+
onClick: C
|
|
1247
1246
|
}, {
|
|
1248
|
-
default:
|
|
1249
|
-
|
|
1247
|
+
default: o(() => [
|
|
1248
|
+
H(_(u.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1250
1249
|
]),
|
|
1251
1250
|
_: 1
|
|
1252
1251
|
})
|
|
1253
1252
|
]),
|
|
1254
|
-
default:
|
|
1255
|
-
|
|
1253
|
+
default: o(() => [
|
|
1254
|
+
w(V, {
|
|
1256
1255
|
ref_key: "tableRef",
|
|
1257
|
-
ref:
|
|
1258
|
-
columns:
|
|
1259
|
-
dataSource:
|
|
1260
|
-
rowSelection: { selectedRowKeys:
|
|
1256
|
+
ref: A,
|
|
1257
|
+
columns: m.value,
|
|
1258
|
+
dataSource: j.value,
|
|
1259
|
+
rowSelection: { selectedRowKeys: a.value, onChange: r },
|
|
1261
1260
|
rowKey: (Q) => Q[e.tableKey],
|
|
1262
1261
|
scroll: { y: e.tableHeight }
|
|
1263
1262
|
}, {
|
|
1264
|
-
customFilterDropdown:
|
|
1265
|
-
|
|
1266
|
-
|
|
1263
|
+
customFilterDropdown: o(({ setSelectedKeys: Q, selectedKeys: G, confirm: $, clearFilters: O, column: F }) => [
|
|
1264
|
+
L("div", bl, [
|
|
1265
|
+
w(f, {
|
|
1267
1266
|
ref_key: "searchInput",
|
|
1268
|
-
ref:
|
|
1269
|
-
placeholder: `请输入${
|
|
1270
|
-
value:
|
|
1267
|
+
ref: b,
|
|
1268
|
+
placeholder: `请输入${F.title}`,
|
|
1269
|
+
value: G[0],
|
|
1271
1270
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1272
|
-
onChange: (
|
|
1273
|
-
onPressEnter: (
|
|
1271
|
+
onChange: (q) => Q(q.target.value ? [q.target.value] : []),
|
|
1272
|
+
onPressEnter: (q) => I(G, $, F.dataIndex)
|
|
1274
1273
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1275
|
-
|
|
1276
|
-
|
|
1274
|
+
L("section", pl, [
|
|
1275
|
+
w(J, {
|
|
1277
1276
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1278
1277
|
type: "ghost",
|
|
1279
|
-
onClick: (
|
|
1278
|
+
onClick: (q) => n(O, $)
|
|
1280
1279
|
}, {
|
|
1281
|
-
default:
|
|
1282
|
-
|
|
1280
|
+
default: o(() => [
|
|
1281
|
+
H(_(u.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1283
1282
|
]),
|
|
1284
1283
|
_: 1
|
|
1285
1284
|
}, 8, ["onClick"]),
|
|
1286
|
-
|
|
1285
|
+
w(J, {
|
|
1287
1286
|
type: "primary",
|
|
1288
1287
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1289
|
-
onClick: (
|
|
1288
|
+
onClick: (q) => I(G, $, F.dataIndex)
|
|
1290
1289
|
}, {
|
|
1291
|
-
default:
|
|
1292
|
-
|
|
1290
|
+
default: o(() => [
|
|
1291
|
+
H(_(u.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1293
1292
|
]),
|
|
1294
1293
|
_: 1
|
|
1295
1294
|
}, 8, ["onClick"])
|
|
1296
1295
|
])
|
|
1297
1296
|
])
|
|
1298
1297
|
]),
|
|
1299
|
-
customFilterIcon:
|
|
1300
|
-
|
|
1301
|
-
style:
|
|
1298
|
+
customFilterIcon: o(({ filtered: Q }) => [
|
|
1299
|
+
w(s(De), {
|
|
1300
|
+
style: ve({ color: Q ? "#108ee9" : void 0 })
|
|
1302
1301
|
}, null, 8, ["style"])
|
|
1303
1302
|
]),
|
|
1304
|
-
bodyCell:
|
|
1305
|
-
|
|
1306
|
-
(
|
|
1307
|
-
|
|
1308
|
-
key:
|
|
1303
|
+
bodyCell: o(({ text: Q, column: G }) => [
|
|
1304
|
+
T.searchText && T.searchedColumn === G.dataIndex ? (l(), S("span", fl, [
|
|
1305
|
+
(l(!0), S(K, null, ae(Q.toString().split(new RegExp(`(?<=${T.searchText})|(?=${T.searchText})`, "i")), ($, O) => (l(), S(K, null, [
|
|
1306
|
+
$.toLowerCase() === T.searchText.toLowerCase() ? (l(), S("mark", {
|
|
1307
|
+
key: O,
|
|
1309
1308
|
class: "highlight"
|
|
1310
|
-
},
|
|
1311
|
-
|
|
1309
|
+
}, _($), 1)) : (l(), S(K, { key: 1 }, [
|
|
1310
|
+
H(_($), 1)
|
|
1312
1311
|
], 64))
|
|
1313
1312
|
], 64))), 256))
|
|
1314
|
-
])) :
|
|
1313
|
+
])) : R("", !0)
|
|
1315
1314
|
]),
|
|
1316
1315
|
_: 1
|
|
1317
1316
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1321,13 +1320,13 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1321
1320
|
], 512);
|
|
1322
1321
|
};
|
|
1323
1322
|
}
|
|
1324
|
-
}),
|
|
1323
|
+
}), ml = te(hl), vl = { class: "hb-lib-table-act-box" }, gl = ["onClick"], yl = {
|
|
1325
1324
|
href: "javascript:;",
|
|
1326
1325
|
class: "hb-lib-table-main-action"
|
|
1327
|
-
},
|
|
1326
|
+
}, Cl = ["onClick"], Ll = {
|
|
1328
1327
|
href: "javascript:;",
|
|
1329
1328
|
class: "hb-lib-table-more-action"
|
|
1330
|
-
},
|
|
1329
|
+
}, _l = ["onClick"], kl = { href: "javascript:;" }, Sl = ["onClick"], Fl = { class: "hb-lib-table-confirm-modal-content" }, wl = /* @__PURE__ */ ee({
|
|
1331
1330
|
name: "HbLibTableAct",
|
|
1332
1331
|
__name: "HbTableAct",
|
|
1333
1332
|
props: {
|
|
@@ -1335,129 +1334,129 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1335
1334
|
record: {},
|
|
1336
1335
|
buttonDisplaysQuantity: {}
|
|
1337
1336
|
},
|
|
1338
|
-
setup(e, { expose:
|
|
1339
|
-
const
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
|
|
1343
|
-
},
|
|
1344
|
-
if (
|
|
1345
|
-
|
|
1337
|
+
setup(e, { expose: p }) {
|
|
1338
|
+
const d = e, { t: c } = ie(), y = P(!1), h = P(!1), i = P(null), b = W(() => d.actions.filter((C) => C.condition !== void 0 ? C.condition : !0)), t = W(() => b.value.slice(0, d.buttonDisplaysQuantity)), a = W(() => b.value.slice(d.buttonDisplaysQuantity)), v = (C) => {
|
|
1339
|
+
C.handler && C.handler(d.record);
|
|
1340
|
+
}, A = (C) => {
|
|
1341
|
+
i.value = C, y.value = !0;
|
|
1342
|
+
}, T = () => {
|
|
1343
|
+
if (i.value) {
|
|
1344
|
+
h.value = !0;
|
|
1346
1345
|
try {
|
|
1347
|
-
v(
|
|
1346
|
+
v(i.value), h.value = !1, y.value = !1;
|
|
1348
1347
|
} catch {
|
|
1349
|
-
|
|
1348
|
+
h.value = !1;
|
|
1350
1349
|
}
|
|
1351
1350
|
}
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
},
|
|
1355
|
-
title:
|
|
1356
|
-
content:
|
|
1351
|
+
}, j = () => {
|
|
1352
|
+
y.value = !1, i.value = null;
|
|
1353
|
+
}, m = W(() => i.value ? {
|
|
1354
|
+
title: i.value.confirmTitle,
|
|
1355
|
+
content: i.value.confirmContent || i.value.confirmTitle
|
|
1357
1356
|
} : {
|
|
1358
|
-
title:
|
|
1359
|
-
content:
|
|
1357
|
+
title: c("hbLibComp.hbTableAct.secendConfirm"),
|
|
1358
|
+
content: c("hbLibComp.hbTableAct.confirmContent")
|
|
1360
1359
|
});
|
|
1361
|
-
return
|
|
1362
|
-
ADropdown:
|
|
1363
|
-
AMenu:
|
|
1364
|
-
AMenuItem:
|
|
1365
|
-
APopconfirm:
|
|
1366
|
-
AModal:
|
|
1367
|
-
DownOutlined:
|
|
1368
|
-
}), (
|
|
1369
|
-
const
|
|
1370
|
-
return
|
|
1371
|
-
(
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1360
|
+
return p({
|
|
1361
|
+
ADropdown: Ke,
|
|
1362
|
+
AMenu: qe,
|
|
1363
|
+
AMenuItem: je,
|
|
1364
|
+
APopconfirm: _e,
|
|
1365
|
+
AModal: we,
|
|
1366
|
+
DownOutlined: Oe
|
|
1367
|
+
}), (C, g) => {
|
|
1368
|
+
const x = U("a-divider"), N = st("has");
|
|
1369
|
+
return l(), S("div", vl, [
|
|
1370
|
+
(l(!0), S(K, null, ae(t.value, (M, I) => (l(), S(K, { key: I }, [
|
|
1371
|
+
M.needConfirm ? (l(), S(K, { key: 0 }, [
|
|
1372
|
+
M.confirmType === "modal" ? (l(), S(K, { key: 0 }, [
|
|
1373
|
+
de((l(), S("a", {
|
|
1375
1374
|
href: "javascript:;",
|
|
1376
|
-
onClick: (
|
|
1375
|
+
onClick: (n) => A(M),
|
|
1377
1376
|
class: "hb-lib-table-main-action"
|
|
1378
1377
|
}, [
|
|
1379
|
-
|
|
1380
|
-
], 8,
|
|
1381
|
-
[
|
|
1378
|
+
H(_(M.label), 1)
|
|
1379
|
+
], 8, gl)), [
|
|
1380
|
+
[N, M.permissionsTag || null]
|
|
1382
1381
|
]),
|
|
1383
|
-
|
|
1382
|
+
a.value && a.value.length > 0 || I !== t.value.length - 1 ? (l(), z(x, {
|
|
1384
1383
|
key: 0,
|
|
1385
1384
|
type: "vertical"
|
|
1386
|
-
})) :
|
|
1387
|
-
], 64)) : (
|
|
1388
|
-
|
|
1389
|
-
title:
|
|
1390
|
-
onConfirm: (
|
|
1385
|
+
})) : R("", !0)
|
|
1386
|
+
], 64)) : (l(), S(K, { key: 1 }, [
|
|
1387
|
+
w(s(_e), {
|
|
1388
|
+
title: M.confirmTitle,
|
|
1389
|
+
onConfirm: (n) => v(M)
|
|
1391
1390
|
}, {
|
|
1392
|
-
default:
|
|
1393
|
-
|
|
1394
|
-
|
|
1391
|
+
default: o(() => [
|
|
1392
|
+
de((l(), S("a", yl, [
|
|
1393
|
+
H(_(M.label), 1)
|
|
1395
1394
|
])), [
|
|
1396
|
-
[
|
|
1395
|
+
[N, M.permissionsTag || null]
|
|
1397
1396
|
])
|
|
1398
1397
|
]),
|
|
1399
1398
|
_: 2
|
|
1400
1399
|
}, 1032, ["title", "onConfirm"]),
|
|
1401
|
-
|
|
1400
|
+
a.value && a.value.length > 0 || I !== t.value.length - 1 ? (l(), z(x, {
|
|
1402
1401
|
key: 0,
|
|
1403
1402
|
type: "vertical"
|
|
1404
|
-
})) :
|
|
1403
|
+
})) : R("", !0)
|
|
1405
1404
|
], 64))
|
|
1406
|
-
], 64)) : (
|
|
1407
|
-
|
|
1405
|
+
], 64)) : (l(), S(K, { key: 1 }, [
|
|
1406
|
+
de((l(), S("a", {
|
|
1408
1407
|
href: "javascript:;",
|
|
1409
|
-
onClick: (
|
|
1408
|
+
onClick: (n) => v(M),
|
|
1410
1409
|
class: "hb-lib-table-main-action"
|
|
1411
1410
|
}, [
|
|
1412
|
-
|
|
1413
|
-
], 8,
|
|
1414
|
-
[
|
|
1411
|
+
H(_(M.label), 1)
|
|
1412
|
+
], 8, Cl)), [
|
|
1413
|
+
[N, M.permissionsTag || null]
|
|
1415
1414
|
]),
|
|
1416
|
-
|
|
1415
|
+
a.value && a.value.length > 0 || I !== t.value.length - 1 ? (l(), z(x, {
|
|
1417
1416
|
key: 0,
|
|
1418
1417
|
type: "vertical"
|
|
1419
|
-
})) :
|
|
1418
|
+
})) : R("", !0)
|
|
1420
1419
|
], 64))
|
|
1421
1420
|
], 64))), 128)),
|
|
1422
|
-
|
|
1423
|
-
overlay:
|
|
1424
|
-
|
|
1425
|
-
default:
|
|
1426
|
-
(
|
|
1427
|
-
key:
|
|
1421
|
+
a.value && a.value.length > 0 ? (l(), z(s(Ke), { key: 0 }, {
|
|
1422
|
+
overlay: o(() => [
|
|
1423
|
+
w(s(qe), null, {
|
|
1424
|
+
default: o(() => [
|
|
1425
|
+
(l(!0), S(K, null, ae(a.value, (M) => (l(), z(s(je), {
|
|
1426
|
+
key: M.key
|
|
1428
1427
|
}, {
|
|
1429
|
-
default:
|
|
1430
|
-
|
|
1431
|
-
|
|
1428
|
+
default: o(() => [
|
|
1429
|
+
M.needConfirm ? (l(), S(K, { key: 0 }, [
|
|
1430
|
+
M.confirmType === "modal" ? de((l(), S("a", {
|
|
1432
1431
|
key: 0,
|
|
1433
1432
|
href: "javascript:;",
|
|
1434
|
-
onClick: (
|
|
1433
|
+
onClick: (I) => A(M)
|
|
1435
1434
|
}, [
|
|
1436
|
-
|
|
1437
|
-
], 8,
|
|
1438
|
-
[
|
|
1439
|
-
]) : (
|
|
1435
|
+
H(_(M.label), 1)
|
|
1436
|
+
], 8, _l)), [
|
|
1437
|
+
[N, M.permissionsTag || null]
|
|
1438
|
+
]) : (l(), z(s(_e), {
|
|
1440
1439
|
key: 1,
|
|
1441
|
-
title:
|
|
1442
|
-
onConfirm: (
|
|
1440
|
+
title: M.confirmTitle,
|
|
1441
|
+
onConfirm: (I) => v(M)
|
|
1443
1442
|
}, {
|
|
1444
|
-
default:
|
|
1445
|
-
|
|
1446
|
-
|
|
1443
|
+
default: o(() => [
|
|
1444
|
+
de((l(), S("a", kl, [
|
|
1445
|
+
H(_(M.label), 1)
|
|
1447
1446
|
])), [
|
|
1448
|
-
[
|
|
1447
|
+
[N, M.permissionsTag || null]
|
|
1449
1448
|
])
|
|
1450
1449
|
]),
|
|
1451
1450
|
_: 2
|
|
1452
1451
|
}, 1032, ["title", "onConfirm"]))
|
|
1453
|
-
], 64)) :
|
|
1452
|
+
], 64)) : de((l(), S("a", {
|
|
1454
1453
|
key: 1,
|
|
1455
1454
|
href: "javascript:;",
|
|
1456
|
-
onClick: (
|
|
1455
|
+
onClick: (I) => v(M)
|
|
1457
1456
|
}, [
|
|
1458
|
-
|
|
1459
|
-
], 8,
|
|
1460
|
-
[
|
|
1457
|
+
H(_(M.label), 1)
|
|
1458
|
+
], 8, Sl)), [
|
|
1459
|
+
[N, M.permissionsTag || null]
|
|
1461
1460
|
])
|
|
1462
1461
|
]),
|
|
1463
1462
|
_: 2
|
|
@@ -1466,36 +1465,36 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1466
1465
|
_: 1
|
|
1467
1466
|
})
|
|
1468
1467
|
]),
|
|
1469
|
-
default:
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1468
|
+
default: o(() => [
|
|
1469
|
+
L("a", Ll, [
|
|
1470
|
+
H(_(C.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1471
|
+
w(s(Oe), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1473
1472
|
])
|
|
1474
1473
|
]),
|
|
1475
1474
|
_: 1
|
|
1476
|
-
})) :
|
|
1477
|
-
|
|
1478
|
-
visible:
|
|
1479
|
-
title:
|
|
1480
|
-
"confirm-loading":
|
|
1481
|
-
onOk:
|
|
1482
|
-
onCancel:
|
|
1475
|
+
})) : R("", !0),
|
|
1476
|
+
w(s(we), {
|
|
1477
|
+
visible: y.value,
|
|
1478
|
+
title: m.value.title,
|
|
1479
|
+
"confirm-loading": h.value,
|
|
1480
|
+
onOk: T,
|
|
1481
|
+
onCancel: j
|
|
1483
1482
|
}, {
|
|
1484
|
-
default:
|
|
1485
|
-
|
|
1483
|
+
default: o(() => [
|
|
1484
|
+
L("p", Fl, _(m.value.content), 1)
|
|
1486
1485
|
]),
|
|
1487
1486
|
_: 1
|
|
1488
1487
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1489
1488
|
]);
|
|
1490
1489
|
};
|
|
1491
1490
|
}
|
|
1492
|
-
}),
|
|
1493
|
-
const
|
|
1494
|
-
return !
|
|
1495
|
-
}) }),
|
|
1491
|
+
}), xl = /* @__PURE__ */ le(wl, [["__scopeId", "data-v-a96574fa"]]), Tl = te(xl), $l = (e) => ({ tableWidth: W(() => {
|
|
1492
|
+
const d = Array.isArray(e) ? e : e.value;
|
|
1493
|
+
return !d || d.length === 0 ? 0 : d.map((c) => c.width && Number(c.width.toString().replace("px", "")) || 0).reduce((c, y) => c + y, 0);
|
|
1494
|
+
}) }), Il = {
|
|
1496
1495
|
key: 0,
|
|
1497
1496
|
class: "hb-lib-list-table-act"
|
|
1498
|
-
}, Ml = { class: "empty-container" },
|
|
1497
|
+
}, Ml = { class: "empty-container" }, Hl = /* @__PURE__ */ ee({
|
|
1499
1498
|
name: "HbLibListTable",
|
|
1500
1499
|
__name: "HbListTable",
|
|
1501
1500
|
props: {
|
|
@@ -1505,20 +1504,20 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1505
1504
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1506
1505
|
},
|
|
1507
1506
|
setup(e) {
|
|
1508
|
-
const { t:
|
|
1509
|
-
|
|
1510
|
-
() =>
|
|
1507
|
+
const { t: p } = ie(), d = e, c = P([]), y = Me("HB_LIST_PAGE_CONTAINER"), { tableWidth: h } = $l(W(() => d.columns));
|
|
1508
|
+
ne(
|
|
1509
|
+
() => d.columns,
|
|
1511
1510
|
(t) => {
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
let
|
|
1515
|
-
if (
|
|
1516
|
-
|
|
1517
|
-
else if (typeof
|
|
1518
|
-
const
|
|
1519
|
-
|
|
1511
|
+
const a = t.filter((v) => v != null && v.checked);
|
|
1512
|
+
c.value = a.map((v) => {
|
|
1513
|
+
let A = { ...v, title: v.title || v.label };
|
|
1514
|
+
if (A.ellipsis && !A.needTooltip && (A.needTooltip = !0), !A.width)
|
|
1515
|
+
A.width = d.defaultWidth;
|
|
1516
|
+
else if (typeof A.width == "string") {
|
|
1517
|
+
const T = parseInt(A.width, 10);
|
|
1518
|
+
A.width = isNaN(T) ? d.defaultWidth : T;
|
|
1520
1519
|
}
|
|
1521
|
-
return
|
|
1520
|
+
return A.resizable === void 0 && (A.resizable = !0), A;
|
|
1522
1521
|
});
|
|
1523
1522
|
},
|
|
1524
1523
|
{
|
|
@@ -1526,35 +1525,35 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1526
1525
|
deep: !0
|
|
1527
1526
|
}
|
|
1528
1527
|
);
|
|
1529
|
-
const
|
|
1530
|
-
if (
|
|
1528
|
+
const i = (t, a) => {
|
|
1529
|
+
if (a) {
|
|
1531
1530
|
const v = typeof t == "string" ? parseInt(t, 10) : t;
|
|
1532
|
-
|
|
1531
|
+
a.width = isNaN(v) ? 150 : v;
|
|
1533
1532
|
}
|
|
1534
|
-
},
|
|
1535
|
-
return (t,
|
|
1536
|
-
const v =
|
|
1537
|
-
return
|
|
1538
|
-
class:
|
|
1539
|
-
style:
|
|
1533
|
+
}, b = (t, a = "YYYY-MM-DD HH:mm:ss") => t ? ge(t).format(a) : "";
|
|
1534
|
+
return (t, a) => {
|
|
1535
|
+
const v = U("a-empty"), A = U("a-tooltip"), T = U("HbLibCopy"), j = U("a-table");
|
|
1536
|
+
return l(), S("div", {
|
|
1537
|
+
class: E(["hb-lib-list-table", { "nowrap-table": d.rowHeight }]),
|
|
1538
|
+
style: ve({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1540
1539
|
}, [
|
|
1541
|
-
t.$slots.tableActLeft ? (
|
|
1540
|
+
t.$slots.tableActLeft ? (l(), S("section", Il, [
|
|
1542
1541
|
Y(t.$slots, "tableActLeft", {}, void 0, !0),
|
|
1543
1542
|
Y(t.$slots, "tableActRight", {}, void 0, !0)
|
|
1544
|
-
])) :
|
|
1545
|
-
|
|
1543
|
+
])) : R("", !0),
|
|
1544
|
+
w(j, X(t.$attrs, {
|
|
1546
1545
|
bordered: "",
|
|
1547
|
-
columns:
|
|
1548
|
-
onResizeColumn:
|
|
1546
|
+
columns: c.value,
|
|
1547
|
+
onResizeColumn: i,
|
|
1549
1548
|
scroll: {
|
|
1550
|
-
x:
|
|
1551
|
-
y:
|
|
1549
|
+
x: s(h),
|
|
1550
|
+
y: s(y).tableHeight
|
|
1552
1551
|
}
|
|
1553
1552
|
}), Ge({
|
|
1554
|
-
emptyText:
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
description:
|
|
1553
|
+
emptyText: o(() => [
|
|
1554
|
+
L("div", Ml, [
|
|
1555
|
+
w(v, {
|
|
1556
|
+
description: s(p)("hbLibComp.hbListTable.noData")
|
|
1558
1557
|
}, null, 8, ["description"])
|
|
1559
1558
|
])
|
|
1560
1559
|
]),
|
|
@@ -1562,137 +1561,137 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1562
1561
|
}, [
|
|
1563
1562
|
t.$slots.headerCell ? {
|
|
1564
1563
|
name: "headerCell",
|
|
1565
|
-
fn:
|
|
1566
|
-
Y(t.$slots, "headerCell", { column:
|
|
1567
|
-
|
|
1564
|
+
fn: o(({ column: m }) => [
|
|
1565
|
+
Y(t.$slots, "headerCell", { column: m }, () => [
|
|
1566
|
+
H(_(m.title), 1)
|
|
1568
1567
|
], !0)
|
|
1569
1568
|
]),
|
|
1570
1569
|
key: "0"
|
|
1571
1570
|
} : void 0,
|
|
1572
1571
|
t.$slots.bodyCell ? {
|
|
1573
1572
|
name: "bodyCell",
|
|
1574
|
-
fn:
|
|
1573
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1575
1574
|
Y(t.$slots, "bodyCell", {
|
|
1576
|
-
column:
|
|
1577
|
-
record:
|
|
1578
|
-
index:
|
|
1579
|
-
text:
|
|
1575
|
+
column: m,
|
|
1576
|
+
record: C,
|
|
1577
|
+
index: g,
|
|
1578
|
+
text: x
|
|
1580
1579
|
}, void 0, !0),
|
|
1581
|
-
|
|
1580
|
+
m && m.needTooltip ? (l(), z(A, {
|
|
1582
1581
|
key: 0,
|
|
1583
1582
|
placement: e.tooltipPlacement
|
|
1584
1583
|
}, {
|
|
1585
|
-
title:
|
|
1586
|
-
|
|
1584
|
+
title: o(() => [
|
|
1585
|
+
H(_(C[m.dataIndex]), 1)
|
|
1587
1586
|
]),
|
|
1588
|
-
default:
|
|
1589
|
-
|
|
1587
|
+
default: o(() => [
|
|
1588
|
+
H(" " + _(C[m.dataIndex]), 1)
|
|
1590
1589
|
]),
|
|
1591
1590
|
_: 2
|
|
1592
|
-
}, 1032, ["placement"])) :
|
|
1593
|
-
|
|
1591
|
+
}, 1032, ["placement"])) : R("", !0),
|
|
1592
|
+
m && m.needCopy ? (l(), z(T, {
|
|
1594
1593
|
key: 1,
|
|
1595
|
-
"cp-text":
|
|
1594
|
+
"cp-text": C[m.dataIndex],
|
|
1596
1595
|
style: { position: "relative" }
|
|
1597
|
-
}, null, 8, ["cp-text"])) :
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
], 64)) :
|
|
1596
|
+
}, null, 8, ["cp-text"])) : R("", !0),
|
|
1597
|
+
m && m.needFormat ? (l(), S(K, { key: 2 }, [
|
|
1598
|
+
H(_(b(C[m.dataIndex], m.format)), 1)
|
|
1599
|
+
], 64)) : R("", !0)
|
|
1601
1600
|
]),
|
|
1602
1601
|
key: "1"
|
|
1603
1602
|
} : void 0,
|
|
1604
1603
|
t.$slots.expandedRowRender ? {
|
|
1605
1604
|
name: "expandedRowRender",
|
|
1606
|
-
fn:
|
|
1605
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1607
1606
|
Y(t.$slots, "expandedRowRender", {
|
|
1608
|
-
record:
|
|
1609
|
-
column:
|
|
1610
|
-
index:
|
|
1611
|
-
text:
|
|
1607
|
+
record: C,
|
|
1608
|
+
column: m,
|
|
1609
|
+
index: g,
|
|
1610
|
+
text: x
|
|
1612
1611
|
}, void 0, !0)
|
|
1613
1612
|
]),
|
|
1614
1613
|
key: "2"
|
|
1615
1614
|
} : void 0,
|
|
1616
1615
|
t.$slots.customFilterDropdown ? {
|
|
1617
1616
|
name: "customFilterDropdown",
|
|
1618
|
-
fn:
|
|
1617
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1619
1618
|
Y(t.$slots, "customFilterDropdown", {
|
|
1620
|
-
record:
|
|
1621
|
-
column:
|
|
1622
|
-
index:
|
|
1623
|
-
text:
|
|
1619
|
+
record: C,
|
|
1620
|
+
column: m,
|
|
1621
|
+
index: g,
|
|
1622
|
+
text: x
|
|
1624
1623
|
}, void 0, !0)
|
|
1625
1624
|
]),
|
|
1626
1625
|
key: "3"
|
|
1627
1626
|
} : void 0,
|
|
1628
1627
|
t.$slots.customFilterIcon ? {
|
|
1629
1628
|
name: "customFilterIcon",
|
|
1630
|
-
fn:
|
|
1629
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1631
1630
|
Y(t.$slots, "customFilterIcon", {
|
|
1632
|
-
record:
|
|
1633
|
-
column:
|
|
1634
|
-
index:
|
|
1635
|
-
text:
|
|
1631
|
+
record: C,
|
|
1632
|
+
column: m,
|
|
1633
|
+
index: g,
|
|
1634
|
+
text: x
|
|
1636
1635
|
}, void 0, !0)
|
|
1637
1636
|
]),
|
|
1638
1637
|
key: "4"
|
|
1639
1638
|
} : void 0,
|
|
1640
1639
|
t.$slots.expandIcon ? {
|
|
1641
1640
|
name: "expandIcon",
|
|
1642
|
-
fn:
|
|
1641
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1643
1642
|
Y(t.$slots, "expandIcon", {
|
|
1644
|
-
record:
|
|
1645
|
-
column:
|
|
1646
|
-
index:
|
|
1647
|
-
text:
|
|
1643
|
+
record: C,
|
|
1644
|
+
column: m,
|
|
1645
|
+
index: g,
|
|
1646
|
+
text: x
|
|
1648
1647
|
}, void 0, !0)
|
|
1649
1648
|
]),
|
|
1650
1649
|
key: "5"
|
|
1651
1650
|
} : void 0,
|
|
1652
1651
|
t.$slots.footer ? {
|
|
1653
1652
|
name: "footer",
|
|
1654
|
-
fn:
|
|
1653
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1655
1654
|
Y(t.$slots, "footer", {
|
|
1656
|
-
record:
|
|
1657
|
-
column:
|
|
1658
|
-
index:
|
|
1659
|
-
text:
|
|
1655
|
+
record: C,
|
|
1656
|
+
column: m,
|
|
1657
|
+
index: g,
|
|
1658
|
+
text: x
|
|
1660
1659
|
}, void 0, !0)
|
|
1661
1660
|
]),
|
|
1662
1661
|
key: "6"
|
|
1663
1662
|
} : void 0,
|
|
1664
1663
|
t.$slots.headerCell ? {
|
|
1665
1664
|
name: "headerCell",
|
|
1666
|
-
fn:
|
|
1665
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1667
1666
|
Y(t.$slots, "headerCell", {
|
|
1668
|
-
record:
|
|
1669
|
-
column:
|
|
1670
|
-
index:
|
|
1671
|
-
text:
|
|
1667
|
+
record: C,
|
|
1668
|
+
column: m,
|
|
1669
|
+
index: g,
|
|
1670
|
+
text: x
|
|
1672
1671
|
}, void 0, !0)
|
|
1673
1672
|
]),
|
|
1674
1673
|
key: "7"
|
|
1675
1674
|
} : void 0,
|
|
1676
1675
|
t.$slots.summary ? {
|
|
1677
1676
|
name: "summary",
|
|
1678
|
-
fn:
|
|
1677
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1679
1678
|
Y(t.$slots, "summary", {
|
|
1680
|
-
record:
|
|
1681
|
-
column:
|
|
1682
|
-
index:
|
|
1683
|
-
text:
|
|
1679
|
+
record: C,
|
|
1680
|
+
column: m,
|
|
1681
|
+
index: g,
|
|
1682
|
+
text: x
|
|
1684
1683
|
}, void 0, !0)
|
|
1685
1684
|
]),
|
|
1686
1685
|
key: "8"
|
|
1687
1686
|
} : void 0,
|
|
1688
1687
|
t.$slots.title ? {
|
|
1689
1688
|
name: "title",
|
|
1690
|
-
fn:
|
|
1689
|
+
fn: o(({ column: m, record: C, index: g, text: x }) => [
|
|
1691
1690
|
Y(t.$slots, "title", {
|
|
1692
|
-
record:
|
|
1693
|
-
column:
|
|
1694
|
-
index:
|
|
1695
|
-
text:
|
|
1691
|
+
record: C,
|
|
1692
|
+
column: m,
|
|
1693
|
+
index: g,
|
|
1694
|
+
text: x
|
|
1696
1695
|
}, void 0, !0)
|
|
1697
1696
|
]),
|
|
1698
1697
|
key: "9"
|
|
@@ -1701,13 +1700,13 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1701
1700
|
], 6);
|
|
1702
1701
|
};
|
|
1703
1702
|
}
|
|
1704
|
-
}),
|
|
1703
|
+
}), Dl = /* @__PURE__ */ le(Hl, [["__scopeId", "data-v-d4abbf25"]]), Al = te(Dl), Ol = { class: "hb-lib-table-setting-box" }, Bl = {
|
|
1705
1704
|
key: 0,
|
|
1706
1705
|
class: "hb-lib-table-drag-item"
|
|
1707
|
-
},
|
|
1706
|
+
}, zl = {
|
|
1708
1707
|
key: 0,
|
|
1709
1708
|
class: "hb-lib-table-drag-item-act"
|
|
1710
|
-
}, Rl = ["onClick"], Pl = ["onClick"], Nl = { class: "hb-lib-table-set-btn-group" },
|
|
1709
|
+
}, Rl = ["onClick"], Pl = ["onClick"], Nl = { class: "hb-lib-table-set-btn-group" }, Ul = {
|
|
1711
1710
|
class: "select-all-container",
|
|
1712
1711
|
style: { "margin-right": "10px" }
|
|
1713
1712
|
}, Vl = /* @__PURE__ */ ee({
|
|
@@ -1742,119 +1741,119 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1742
1741
|
}
|
|
1743
1742
|
},
|
|
1744
1743
|
emits: ["on-get-columns"],
|
|
1745
|
-
setup(e, { emit:
|
|
1746
|
-
const
|
|
1744
|
+
setup(e, { emit: p }) {
|
|
1745
|
+
const d = p, { t: c } = ie(), y = e, h = P([]), i = W(() => t.value.filter((n) => n.checked));
|
|
1747
1746
|
P([]);
|
|
1748
|
-
const
|
|
1749
|
-
|
|
1750
|
-
},
|
|
1751
|
-
const
|
|
1752
|
-
if (
|
|
1753
|
-
const k =
|
|
1754
|
-
if ((k > 0 &&
|
|
1755
|
-
const
|
|
1756
|
-
t.value.splice(
|
|
1747
|
+
const b = P(!1), t = P([]), a = P(null), v = W(() => i.value.length > 0 && i.value.length === h.value.length), A = W(() => i.value.length > 0 && i.value.length < h.value.length), T = (n) => {
|
|
1748
|
+
a.value = n.oldIndex;
|
|
1749
|
+
}, j = (n) => {
|
|
1750
|
+
const r = n.newIndex;
|
|
1751
|
+
if (h.value.some((k) => k.fixed === "left" || k.fixed === "right" || k.fixed === !0)) {
|
|
1752
|
+
const k = h.value.filter((J) => J.fixed === "left").length, f = h.value.length - h.value.filter((J) => J.fixed === "right").length;
|
|
1753
|
+
if ((k > 0 && r < k || f < h.value.length && r >= f) && (Ie.warning(c("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
1754
|
+
const J = t.value.splice(r, 1)[0];
|
|
1755
|
+
t.value.splice(a.value, 0, J);
|
|
1757
1756
|
}
|
|
1758
1757
|
}
|
|
1759
|
-
|
|
1760
|
-
},
|
|
1761
|
-
|
|
1762
|
-
},
|
|
1763
|
-
|
|
1764
|
-
},
|
|
1765
|
-
|
|
1766
|
-
},
|
|
1767
|
-
|
|
1768
|
-
...
|
|
1769
|
-
label:
|
|
1770
|
-
value:
|
|
1771
|
-
checked:
|
|
1772
|
-
})), t.value = [...
|
|
1773
|
-
let
|
|
1774
|
-
|
|
1775
|
-
|
|
1758
|
+
a.value = null;
|
|
1759
|
+
}, m = (n) => {
|
|
1760
|
+
n.target.checked ? t.value.forEach((u) => u.checked = !0) : t.value.forEach((u) => u.checked = !1);
|
|
1761
|
+
}, C = (n, r) => {
|
|
1762
|
+
r ? n.checked = !0 : n.checked = !1;
|
|
1763
|
+
}, g = () => {
|
|
1764
|
+
h.value = [...t.value], d("on-get-columns", h.value), b.value = !1;
|
|
1765
|
+
}, x = () => {
|
|
1766
|
+
h.value = y.tableColumns.map((r) => ({
|
|
1767
|
+
...r,
|
|
1768
|
+
label: r.title && r.title.tag ? N(r.title) : r.title || r.title2,
|
|
1769
|
+
value: r.dataIndex,
|
|
1770
|
+
checked: r.checked || r.checked === void 0
|
|
1771
|
+
})), t.value = [...h.value];
|
|
1772
|
+
let n = [];
|
|
1773
|
+
y.tableColumns.forEach(function(r) {
|
|
1774
|
+
n.push(r.dataIndex);
|
|
1776
1775
|
});
|
|
1777
|
-
},
|
|
1778
|
-
delete
|
|
1779
|
-
const
|
|
1780
|
-
if (
|
|
1781
|
-
let
|
|
1776
|
+
}, N = (n) => n.children[0].text, M = (n) => {
|
|
1777
|
+
delete n.fixed;
|
|
1778
|
+
const r = t.value.findIndex((u) => u.value === n.value);
|
|
1779
|
+
if (r !== -1) {
|
|
1780
|
+
let u = -1;
|
|
1782
1781
|
for (let k = 0; k < t.value.length; k++)
|
|
1783
|
-
t.value[k].fixed === "left" && (
|
|
1784
|
-
if (
|
|
1785
|
-
const k = [...t.value], [
|
|
1786
|
-
k.splice(
|
|
1782
|
+
t.value[k].fixed === "left" && (u = k);
|
|
1783
|
+
if (u !== -1 && r !== u + 1) {
|
|
1784
|
+
const k = [...t.value], [f] = k.splice(r, 1);
|
|
1785
|
+
k.splice(u + 1, 0, f), t.value = k;
|
|
1787
1786
|
}
|
|
1788
1787
|
}
|
|
1789
|
-
},
|
|
1790
|
-
const
|
|
1791
|
-
if (
|
|
1792
|
-
let
|
|
1788
|
+
}, I = (n) => {
|
|
1789
|
+
const r = t.value.findIndex((u) => u.value === n.value);
|
|
1790
|
+
if (r !== -1) {
|
|
1791
|
+
let u = -1;
|
|
1793
1792
|
for (let k = 0; k < t.value.length; k++)
|
|
1794
|
-
t.value[k].fixed === "left" && (
|
|
1795
|
-
if (
|
|
1796
|
-
const k = [...t.value],
|
|
1797
|
-
|
|
1793
|
+
t.value[k].fixed === "left" && (u = k);
|
|
1794
|
+
if (u !== -1 && r !== u + 1) {
|
|
1795
|
+
const k = [...t.value], f = k.splice(r, 1);
|
|
1796
|
+
f[0].fixed = "left", k.splice(u + 1, 0, f[0]), t.value = k;
|
|
1798
1797
|
}
|
|
1799
1798
|
}
|
|
1800
1799
|
};
|
|
1801
|
-
return
|
|
1802
|
-
() =>
|
|
1800
|
+
return ne(
|
|
1801
|
+
() => y.tableColumns,
|
|
1803
1802
|
() => {
|
|
1804
|
-
|
|
1803
|
+
x();
|
|
1805
1804
|
},
|
|
1806
1805
|
{
|
|
1807
1806
|
immediate: !0,
|
|
1808
1807
|
deep: !0
|
|
1809
1808
|
}
|
|
1810
|
-
), (
|
|
1811
|
-
const
|
|
1812
|
-
return
|
|
1813
|
-
|
|
1814
|
-
title:
|
|
1809
|
+
), (n, r) => {
|
|
1810
|
+
const u = U("a-tooltip"), k = U("a-button");
|
|
1811
|
+
return l(), S("div", Ol, [
|
|
1812
|
+
w(s(yt), {
|
|
1813
|
+
title: s(c)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1815
1814
|
trigger: "click",
|
|
1816
1815
|
placement: "leftTop",
|
|
1817
1816
|
overlayClassName: "alertInfoContent",
|
|
1818
|
-
visible:
|
|
1819
|
-
"onUpdate:visible":
|
|
1817
|
+
visible: b.value,
|
|
1818
|
+
"onUpdate:visible": r[1] || (r[1] = (f) => b.value = f)
|
|
1820
1819
|
}, {
|
|
1821
|
-
content:
|
|
1822
|
-
|
|
1820
|
+
content: o(() => [
|
|
1821
|
+
w(s(fe), {
|
|
1823
1822
|
modelValue: t.value,
|
|
1824
|
-
"onUpdate:modelValue":
|
|
1823
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => t.value = f),
|
|
1825
1824
|
"item-key": "value",
|
|
1826
1825
|
class: "hb-lib-table-set-drag",
|
|
1827
1826
|
"ghost-class": "ghost",
|
|
1828
1827
|
animation: "200",
|
|
1829
1828
|
handle: ".drag-handle",
|
|
1830
|
-
onStart:
|
|
1831
|
-
onEnd:
|
|
1829
|
+
onStart: T,
|
|
1830
|
+
onEnd: j
|
|
1832
1831
|
}, {
|
|
1833
|
-
item:
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
checked:
|
|
1837
|
-
onChange: (
|
|
1832
|
+
item: o(({ element: f }) => [
|
|
1833
|
+
f.fixed !== "right" ? (l(), S("div", Bl, [
|
|
1834
|
+
w(s(he), {
|
|
1835
|
+
checked: f.checked,
|
|
1836
|
+
onChange: (J) => C(f, J.target.checked)
|
|
1838
1837
|
}, {
|
|
1839
|
-
default:
|
|
1840
|
-
|
|
1838
|
+
default: o(() => [
|
|
1839
|
+
H(_(f.label), 1)
|
|
1841
1840
|
]),
|
|
1842
1841
|
_: 2
|
|
1843
1842
|
}, 1032, ["checked", "onChange"]),
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
class:
|
|
1843
|
+
f.checked ? (l(), S("section", zl, [
|
|
1844
|
+
L("span", {
|
|
1845
|
+
class: E(f.fixed ? "drag-hide" : "drag-handle")
|
|
1847
1846
|
}, "⋮⋮", 2),
|
|
1848
|
-
|
|
1849
|
-
title:
|
|
1850
|
-
|
|
1847
|
+
f.fixed ? (l(), z(u, { key: 0 }, {
|
|
1848
|
+
title: o(() => [
|
|
1849
|
+
H(_(s(c)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1851
1850
|
]),
|
|
1852
|
-
default:
|
|
1853
|
-
|
|
1851
|
+
default: o(() => [
|
|
1852
|
+
L("span", {
|
|
1854
1853
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1855
|
-
onClick: (
|
|
1856
|
-
}, [...
|
|
1857
|
-
|
|
1854
|
+
onClick: (J) => M(f)
|
|
1855
|
+
}, [...r[2] || (r[2] = [
|
|
1856
|
+
L("svg", {
|
|
1858
1857
|
t: "1759048615600",
|
|
1859
1858
|
class: "icon",
|
|
1860
1859
|
viewBox: "0 0 1024 1024",
|
|
@@ -1864,7 +1863,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1864
1863
|
width: "200",
|
|
1865
1864
|
height: "200"
|
|
1866
1865
|
}, [
|
|
1867
|
-
|
|
1866
|
+
L("path", {
|
|
1868
1867
|
d: "M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z",
|
|
1869
1868
|
"p-id": "7284",
|
|
1870
1869
|
fill: "#ff5000"
|
|
@@ -1873,17 +1872,17 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1873
1872
|
])], 8, Rl)
|
|
1874
1873
|
]),
|
|
1875
1874
|
_: 2
|
|
1876
|
-
}, 1024)) :
|
|
1877
|
-
|
|
1878
|
-
title:
|
|
1879
|
-
|
|
1875
|
+
}, 1024)) : R("", !0),
|
|
1876
|
+
f.fixed ? R("", !0) : (l(), z(u, { key: 1 }, {
|
|
1877
|
+
title: o(() => [
|
|
1878
|
+
H(_(s(c)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1880
1879
|
]),
|
|
1881
|
-
default:
|
|
1882
|
-
|
|
1880
|
+
default: o(() => [
|
|
1881
|
+
L("span", {
|
|
1883
1882
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1884
|
-
onClick: (
|
|
1885
|
-
}, [...
|
|
1886
|
-
|
|
1883
|
+
onClick: (J) => I(f)
|
|
1884
|
+
}, [...r[3] || (r[3] = [
|
|
1885
|
+
L("svg", {
|
|
1887
1886
|
t: "1759048735643",
|
|
1888
1887
|
class: "icon",
|
|
1889
1888
|
viewBox: "0 0 1024 1024",
|
|
@@ -1893,7 +1892,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1893
1892
|
width: "200",
|
|
1894
1893
|
height: "200"
|
|
1895
1894
|
}, [
|
|
1896
|
-
|
|
1895
|
+
L("path", {
|
|
1897
1896
|
d: "M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z",
|
|
1898
1897
|
"p-id": "7482",
|
|
1899
1898
|
fill: "#ff5000"
|
|
@@ -1903,43 +1902,43 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1903
1902
|
]),
|
|
1904
1903
|
_: 2
|
|
1905
1904
|
}, 1024))
|
|
1906
|
-
])) :
|
|
1907
|
-
])) :
|
|
1905
|
+
])) : R("", !0)
|
|
1906
|
+
])) : R("", !0)
|
|
1908
1907
|
]),
|
|
1909
1908
|
_: 1
|
|
1910
1909
|
}, 8, ["modelValue"]),
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1910
|
+
L("div", Nl, [
|
|
1911
|
+
L("div", Ul, [
|
|
1912
|
+
w(s(he), {
|
|
1914
1913
|
checked: v.value,
|
|
1915
|
-
indeterminate:
|
|
1916
|
-
onChange:
|
|
1914
|
+
indeterminate: A.value,
|
|
1915
|
+
onChange: m
|
|
1917
1916
|
}, {
|
|
1918
|
-
default:
|
|
1919
|
-
|
|
1917
|
+
default: o(() => [
|
|
1918
|
+
H(_(s(c)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1920
1919
|
]),
|
|
1921
1920
|
_: 1
|
|
1922
1921
|
}, 8, ["checked", "indeterminate"])
|
|
1923
1922
|
]),
|
|
1924
|
-
|
|
1925
|
-
onClick:
|
|
1923
|
+
w(k, {
|
|
1924
|
+
onClick: g,
|
|
1926
1925
|
type: "primary"
|
|
1927
1926
|
}, {
|
|
1928
|
-
default:
|
|
1929
|
-
|
|
1927
|
+
default: o(() => [
|
|
1928
|
+
H(_(s(c)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1930
1929
|
]),
|
|
1931
1930
|
_: 1
|
|
1932
1931
|
})
|
|
1933
1932
|
])
|
|
1934
1933
|
]),
|
|
1935
|
-
default:
|
|
1936
|
-
|
|
1937
|
-
title:
|
|
1934
|
+
default: o(() => [
|
|
1935
|
+
w(u, {
|
|
1936
|
+
title: s(c)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1938
1937
|
placement: "leftTop"
|
|
1939
1938
|
}, {
|
|
1940
|
-
default:
|
|
1941
|
-
|
|
1942
|
-
|
|
1939
|
+
default: o(() => [...r[4] || (r[4] = [
|
|
1940
|
+
L("span", { class: "hb-lib-table-col-set" }, [
|
|
1941
|
+
L("svg", {
|
|
1943
1942
|
t: "1759041858618",
|
|
1944
1943
|
class: "icon",
|
|
1945
1944
|
viewBox: "0 0 1024 1024",
|
|
@@ -1949,12 +1948,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1949
1948
|
width: "200",
|
|
1950
1949
|
height: "200"
|
|
1951
1950
|
}, [
|
|
1952
|
-
|
|
1951
|
+
L("path", {
|
|
1953
1952
|
d: "M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z",
|
|
1954
1953
|
"p-id": "5220",
|
|
1955
1954
|
fill: "#ff5000"
|
|
1956
1955
|
}),
|
|
1957
|
-
|
|
1956
|
+
L("path", {
|
|
1958
1957
|
d: "M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z",
|
|
1959
1958
|
"p-id": "5221",
|
|
1960
1959
|
fill: "#ff5000"
|
|
@@ -1970,23 +1969,23 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1970
1969
|
]);
|
|
1971
1970
|
};
|
|
1972
1971
|
}
|
|
1973
|
-
}), El = /* @__PURE__ */
|
|
1972
|
+
}), El = /* @__PURE__ */ le(Vl, [["__scopeId", "data-v-fe93cce7"]]), Yl = te(El), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1974
1973
|
__proto__: null,
|
|
1975
1974
|
HbLibFormItemFilterModal: Tt,
|
|
1976
|
-
HbLibListBtnsAct:
|
|
1977
|
-
HbLibListForm:
|
|
1978
|
-
HbLibListMultiSelect:
|
|
1975
|
+
HbLibListBtnsAct: qt,
|
|
1976
|
+
HbLibListForm: Ht,
|
|
1977
|
+
HbLibListMultiSelect: ul,
|
|
1979
1978
|
HbLibListPageAct: Nt,
|
|
1980
|
-
HbLibListPageContainer:
|
|
1979
|
+
HbLibListPageContainer: Jt,
|
|
1981
1980
|
HbLibListTable: Al,
|
|
1982
|
-
HbLibMutilpleSelectModal:
|
|
1981
|
+
HbLibMutilpleSelectModal: ml,
|
|
1983
1982
|
HbLibTableAct: Tl,
|
|
1984
|
-
HbLibTableColumnSet:
|
|
1985
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1983
|
+
HbLibTableColumnSet: Yl
|
|
1984
|
+
}, Symbol.toStringTag, { value: "Module" })), ql = /* @__PURE__ */ ee({
|
|
1986
1985
|
name: "HbLibFormTooltipSelect",
|
|
1987
1986
|
inheritAttrs: !1,
|
|
1988
1987
|
__name: "HbTooltipSelect",
|
|
1989
|
-
props: /* @__PURE__ */
|
|
1988
|
+
props: /* @__PURE__ */ Se({
|
|
1990
1989
|
options: { default: () => [] },
|
|
1991
1990
|
tooltipPlacement: { default: "right" },
|
|
1992
1991
|
tooltipMaxWidth: { default: 280 },
|
|
@@ -1999,55 +1998,55 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1999
1998
|
valueModifiers: {}
|
|
2000
1999
|
}),
|
|
2001
2000
|
emits: ["update:value"],
|
|
2002
|
-
setup(e, { expose:
|
|
2003
|
-
const
|
|
2004
|
-
const
|
|
2001
|
+
setup(e, { expose: p }) {
|
|
2002
|
+
const d = e, c = it(), y = W(() => {
|
|
2003
|
+
const m = c, C = m.dropdownClassName;
|
|
2005
2004
|
return {
|
|
2006
|
-
...
|
|
2007
|
-
dropdownClassName:
|
|
2005
|
+
...m,
|
|
2006
|
+
dropdownClassName: C ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2008
2007
|
};
|
|
2009
|
-
}),
|
|
2010
|
-
maxWidth: typeof
|
|
2011
|
-
})),
|
|
2012
|
-
return
|
|
2008
|
+
}), h = P(), i = Qe(e, "value"), b = W(() => d.options ?? []), t = W(() => ({
|
|
2009
|
+
maxWidth: typeof d.tooltipMaxWidth == "number" ? `${d.tooltipMaxWidth}px` : d.tooltipMaxWidth
|
|
2010
|
+
})), a = (m) => m.tooltip ?? m.label, v = (m) => m.key ?? m.label, A = (m) => !!(d.enableTooltip && a(m));
|
|
2011
|
+
return p({
|
|
2013
2012
|
focus: () => {
|
|
2014
|
-
|
|
2013
|
+
h.value?.focus?.();
|
|
2015
2014
|
},
|
|
2016
2015
|
blur: () => {
|
|
2017
|
-
|
|
2016
|
+
h.value?.blur?.();
|
|
2018
2017
|
},
|
|
2019
|
-
selectRef:
|
|
2020
|
-
}), (
|
|
2018
|
+
selectRef: h
|
|
2019
|
+
}), (m, C) => (l(), z(s(Te), X({
|
|
2021
2020
|
ref_key: "selectRef",
|
|
2022
|
-
ref:
|
|
2021
|
+
ref: h,
|
|
2023
2022
|
class: "hb_lib_form_tooltip_select"
|
|
2024
|
-
},
|
|
2025
|
-
value:
|
|
2026
|
-
"onUpdate:value":
|
|
2023
|
+
}, y.value, {
|
|
2024
|
+
value: i.value,
|
|
2025
|
+
"onUpdate:value": C[0] || (C[0] = (g) => i.value = g)
|
|
2027
2026
|
}), {
|
|
2028
|
-
default:
|
|
2029
|
-
|
|
2030
|
-
key: v(
|
|
2031
|
-
value:
|
|
2032
|
-
disabled:
|
|
2033
|
-
}, { ref_for: !0 },
|
|
2034
|
-
default:
|
|
2035
|
-
|
|
2027
|
+
default: o(() => [
|
|
2028
|
+
m.$slots.default ? Y(m.$slots, "default", { key: 0 }, void 0, !0) : (l(!0), S(K, { key: 1 }, ae(b.value, (g) => (l(), z(s($e), X({
|
|
2029
|
+
key: v(g),
|
|
2030
|
+
value: g.value,
|
|
2031
|
+
disabled: g.disabled
|
|
2032
|
+
}, { ref_for: !0 }, g.optionProps), {
|
|
2033
|
+
default: o(() => [
|
|
2034
|
+
A(g) ? (l(), z(s(xe), {
|
|
2036
2035
|
key: 0,
|
|
2037
|
-
title:
|
|
2038
|
-
placement:
|
|
2036
|
+
title: a(g),
|
|
2037
|
+
placement: d.tooltipPlacement,
|
|
2039
2038
|
overlayStyle: t.value
|
|
2040
2039
|
}, {
|
|
2041
|
-
default:
|
|
2042
|
-
|
|
2043
|
-
class:
|
|
2044
|
-
},
|
|
2040
|
+
default: o(() => [
|
|
2041
|
+
L("span", {
|
|
2042
|
+
class: E(["hb_lib_form_tooltip_select__option", { "is-ellipsis": d.enableEllipsis }])
|
|
2043
|
+
}, _(g.label), 3)
|
|
2045
2044
|
]),
|
|
2046
2045
|
_: 2
|
|
2047
|
-
}, 1032, ["title", "placement", "overlayStyle"])) : (
|
|
2046
|
+
}, 1032, ["title", "placement", "overlayStyle"])) : (l(), S("span", {
|
|
2048
2047
|
key: 1,
|
|
2049
|
-
class:
|
|
2050
|
-
},
|
|
2048
|
+
class: E(["hb_lib_form_tooltip_select__option", { "is-ellipsis": d.enableEllipsis }])
|
|
2049
|
+
}, _(g.label), 3))
|
|
2051
2050
|
]),
|
|
2052
2051
|
_: 2
|
|
2053
2052
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2055,10 +2054,136 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2055
2054
|
_: 3
|
|
2056
2055
|
}, 16, ["value"]));
|
|
2057
2056
|
}
|
|
2058
|
-
}),
|
|
2057
|
+
}), Kl = /* @__PURE__ */ le(ql, [["__scopeId", "data-v-b04f5675"]]), Wl = te(Kl), Jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2058
|
+
__proto__: null,
|
|
2059
|
+
HbLibFormTooltipSelect: Wl
|
|
2060
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = { class: "ant-upload-drag-icon" }, Ql = { class: "ant-upload-text" }, Zl = { style: { color: "#ff5000" } }, Xl = { class: "ant-upload-hint" }, eo = {
|
|
2061
|
+
key: 0,
|
|
2062
|
+
class: "hb_import_btn"
|
|
2063
|
+
}, to = ["href"], lo = /* @__PURE__ */ ee({
|
|
2064
|
+
name: "HbLibImportFile",
|
|
2065
|
+
__name: "HbImportFile",
|
|
2066
|
+
props: {
|
|
2067
|
+
title: { default: () => "文件导入" },
|
|
2068
|
+
modalWidth: { default: 600 },
|
|
2069
|
+
acceptFile: { default: ".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif" },
|
|
2070
|
+
isRequired: { type: Boolean, default: !0 },
|
|
2071
|
+
templateUrl: {},
|
|
2072
|
+
maxCount: { default: 1 },
|
|
2073
|
+
multiple: { type: Boolean, default: !1 },
|
|
2074
|
+
btnText: { default: () => "文件上传" },
|
|
2075
|
+
beforeUpload: {},
|
|
2076
|
+
beforeSubmit: {}
|
|
2077
|
+
},
|
|
2078
|
+
setup(e, { expose: p }) {
|
|
2079
|
+
const { t: d } = ie(), c = P(), y = e, h = P(!1), i = me({
|
|
2080
|
+
fileList: [],
|
|
2081
|
+
visible: !1
|
|
2082
|
+
}), b = (T) => {
|
|
2083
|
+
if (T == null)
|
|
2084
|
+
return;
|
|
2085
|
+
const j = i.fileList.indexOf(T);
|
|
2086
|
+
if (j !== -1) {
|
|
2087
|
+
const m = i.fileList.slice();
|
|
2088
|
+
m.splice(j, 1), i.fileList = m;
|
|
2089
|
+
}
|
|
2090
|
+
}, t = () => {
|
|
2091
|
+
i.visible = !1, i.fileList = [], h.value = !1;
|
|
2092
|
+
}, a = (T) => (i.fileList = [T], y.beforeUpload ? y.beforeUpload(T) : !1), v = () => {
|
|
2093
|
+
c.value.validateFields().then(() => {
|
|
2094
|
+
y.beforeSubmit && (h.value = !0, y.beforeSubmit(i.fileList).then((T) => {
|
|
2095
|
+
}).finally(() => {
|
|
2096
|
+
h.value = !1;
|
|
2097
|
+
}));
|
|
2098
|
+
});
|
|
2099
|
+
}, A = () => {
|
|
2100
|
+
i.visible = !0;
|
|
2101
|
+
};
|
|
2102
|
+
return p({
|
|
2103
|
+
handleCancel: t,
|
|
2104
|
+
openModal: A,
|
|
2105
|
+
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2106
|
+
confirmLoading: h
|
|
2107
|
+
}), (T, j) => {
|
|
2108
|
+
const m = U("a-upload-dragger"), C = U("a-form-item"), g = U("a-form"), x = U("a-modal"), N = U("a-button");
|
|
2109
|
+
return l(), S(K, null, [
|
|
2110
|
+
w(x, X({
|
|
2111
|
+
title: y.title,
|
|
2112
|
+
visible: i.visible,
|
|
2113
|
+
"onUpdate:visible": j[0] || (j[0] = (M) => i.visible = M),
|
|
2114
|
+
"confirm-loading": h.value
|
|
2115
|
+
}, T.$attrs, {
|
|
2116
|
+
onCancel: t,
|
|
2117
|
+
onOk: v,
|
|
2118
|
+
width: y.modalWidth
|
|
2119
|
+
}), {
|
|
2120
|
+
default: o(() => [
|
|
2121
|
+
w(g, {
|
|
2122
|
+
ref_key: "modalFormRef",
|
|
2123
|
+
ref: c,
|
|
2124
|
+
model: i
|
|
2125
|
+
}, {
|
|
2126
|
+
default: o(() => [
|
|
2127
|
+
w(C, {
|
|
2128
|
+
name: "fileList",
|
|
2129
|
+
label: s(d)("hbLibComp.HbImportFile.fileLabel"),
|
|
2130
|
+
rules: [{ required: y.isRequired, message: s(d)("hbLibComp.HbImportFile.clickUp") }]
|
|
2131
|
+
}, {
|
|
2132
|
+
default: o(() => [
|
|
2133
|
+
w(m, {
|
|
2134
|
+
maxCount: y.maxCount,
|
|
2135
|
+
multiple: y.multiple,
|
|
2136
|
+
accept: y.acceptFile,
|
|
2137
|
+
name: "file",
|
|
2138
|
+
fileList: i.fileList,
|
|
2139
|
+
onRemove: b,
|
|
2140
|
+
beforeUpload: a
|
|
2141
|
+
}, {
|
|
2142
|
+
default: o(() => [
|
|
2143
|
+
L("p", Gl, [
|
|
2144
|
+
w(s(mt), { style: { "font-size": "37px" } })
|
|
2145
|
+
]),
|
|
2146
|
+
L("p", Ql, [
|
|
2147
|
+
H(_(s(d)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2148
|
+
L("span", Zl, _(s(d)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2149
|
+
]),
|
|
2150
|
+
L("p", Xl, _(s(d)("hbLibComp.HbFileUploadModal.format")) + ": " + _(y.acceptFile), 1)
|
|
2151
|
+
]),
|
|
2152
|
+
_: 1
|
|
2153
|
+
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
2154
|
+
]),
|
|
2155
|
+
_: 1
|
|
2156
|
+
}, 8, ["label", "rules"])
|
|
2157
|
+
]),
|
|
2158
|
+
_: 1
|
|
2159
|
+
}, 8, ["model"]),
|
|
2160
|
+
y.templateUrl ? (l(), S("p", eo, [
|
|
2161
|
+
L("a", {
|
|
2162
|
+
download: "Import_number-template.xlsx",
|
|
2163
|
+
href: y.templateUrl
|
|
2164
|
+
}, _(s(d)("hbLibComp.HbImportFile.downloadTemplate")), 9, to)
|
|
2165
|
+
])) : R("", !0)
|
|
2166
|
+
]),
|
|
2167
|
+
_: 1
|
|
2168
|
+
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2169
|
+
Y(T.$slots, "default", {}, () => [
|
|
2170
|
+
w(N, {
|
|
2171
|
+
onClick: A,
|
|
2172
|
+
type: "primary"
|
|
2173
|
+
}, {
|
|
2174
|
+
default: o(() => [
|
|
2175
|
+
H(_(e.btnText), 1)
|
|
2176
|
+
]),
|
|
2177
|
+
_: 1
|
|
2178
|
+
})
|
|
2179
|
+
], !0)
|
|
2180
|
+
], 64);
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
}), oo = /* @__PURE__ */ le(lo, [["__scopeId", "data-v-47fe70d9"]]), ao = te(oo), no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2059
2184
|
__proto__: null,
|
|
2060
|
-
|
|
2061
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2185
|
+
HbLibImportFile: ao
|
|
2186
|
+
}, Symbol.toStringTag, { value: "Module" })), so = {
|
|
2062
2187
|
// 如果存在cpText时,K和V无效
|
|
2063
2188
|
cpText: {
|
|
2064
2189
|
type: String,
|
|
@@ -2099,52 +2224,52 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2099
2224
|
type: String,
|
|
2100
2225
|
default: "ab"
|
|
2101
2226
|
}
|
|
2102
|
-
},
|
|
2227
|
+
}, io = /* @__PURE__ */ ee({
|
|
2103
2228
|
name: "HbLibCopy",
|
|
2104
2229
|
__name: "copy",
|
|
2105
|
-
props:
|
|
2230
|
+
props: so,
|
|
2106
2231
|
setup(e) {
|
|
2107
|
-
const
|
|
2232
|
+
const p = e, d = P();
|
|
2108
2233
|
rt(() => {
|
|
2109
|
-
|
|
2234
|
+
d.value = p.data;
|
|
2110
2235
|
});
|
|
2111
|
-
const
|
|
2112
|
-
if (
|
|
2113
|
-
let
|
|
2114
|
-
if (
|
|
2115
|
-
if (Array.isArray(
|
|
2116
|
-
if (
|
|
2117
|
-
const
|
|
2118
|
-
|
|
2236
|
+
const c = W(() => {
|
|
2237
|
+
if (p.cpText) return p.cpText;
|
|
2238
|
+
let h = "";
|
|
2239
|
+
if (p.data)
|
|
2240
|
+
if (Array.isArray(p.data)) {
|
|
2241
|
+
if (p.K && p.V && p.L) {
|
|
2242
|
+
const i = p.data.find((b) => b?.[p.K] === p.V);
|
|
2243
|
+
h = i ? i[p.L] : "";
|
|
2119
2244
|
}
|
|
2120
2245
|
} else
|
|
2121
|
-
|
|
2122
|
-
return
|
|
2123
|
-
}),
|
|
2124
|
-
navigator.clipboard.writeText(
|
|
2125
|
-
|
|
2246
|
+
p.K && (h = p.data[p.K]);
|
|
2247
|
+
return h;
|
|
2248
|
+
}), y = () => {
|
|
2249
|
+
navigator.clipboard.writeText(c.value).then(() => {
|
|
2250
|
+
Ie.success(p.copySuccessTip);
|
|
2126
2251
|
}).catch(() => {
|
|
2127
|
-
|
|
2252
|
+
Ie.error("复制失败");
|
|
2128
2253
|
});
|
|
2129
2254
|
};
|
|
2130
|
-
return (
|
|
2131
|
-
const
|
|
2132
|
-
return
|
|
2255
|
+
return (h, i) => {
|
|
2256
|
+
const b = U("a-tooltip");
|
|
2257
|
+
return c.value ? (l(), z(b, {
|
|
2133
2258
|
key: 0,
|
|
2134
|
-
title:
|
|
2259
|
+
title: h.tooltipTitle
|
|
2135
2260
|
}, {
|
|
2136
|
-
default:
|
|
2137
|
-
|
|
2138
|
-
class:
|
|
2139
|
-
style:
|
|
2140
|
-
onClick:
|
|
2261
|
+
default: o(() => [
|
|
2262
|
+
L("i", {
|
|
2263
|
+
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", h.classType == "ab" ? "ab" : "normal"]),
|
|
2264
|
+
style: ve({ ...h.cpStyle }),
|
|
2265
|
+
onClick: Fe(y, ["stop", "prevent"])
|
|
2141
2266
|
}, null, 6)
|
|
2142
2267
|
]),
|
|
2143
2268
|
_: 1
|
|
2144
|
-
}, 8, ["title"])) :
|
|
2269
|
+
}, 8, ["title"])) : R("", !0);
|
|
2145
2270
|
};
|
|
2146
2271
|
}
|
|
2147
|
-
}),
|
|
2272
|
+
}), ro = /* @__PURE__ */ le(io, [["__scopeId", "data-v-d5ca4420"]]), co = te(ro), uo = {
|
|
2148
2273
|
dragList: {
|
|
2149
2274
|
type: Array,
|
|
2150
2275
|
required: !0
|
|
@@ -2183,125 +2308,276 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2183
2308
|
type: String,
|
|
2184
2309
|
default: ""
|
|
2185
2310
|
}
|
|
2186
|
-
},
|
|
2311
|
+
}, bo = /* @__PURE__ */ ee({
|
|
2187
2312
|
name: "HbDrag",
|
|
2188
2313
|
__name: "index",
|
|
2189
|
-
props:
|
|
2314
|
+
props: uo,
|
|
2190
2315
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2191
|
-
setup(e, { emit:
|
|
2192
|
-
const
|
|
2193
|
-
|
|
2194
|
-
() =>
|
|
2316
|
+
setup(e, { emit: p }) {
|
|
2317
|
+
const d = e, c = dt([]);
|
|
2318
|
+
ne(
|
|
2319
|
+
() => d.dragList,
|
|
2195
2320
|
(v) => {
|
|
2196
|
-
|
|
2321
|
+
c.value = v;
|
|
2197
2322
|
},
|
|
2198
2323
|
{
|
|
2199
2324
|
deep: !0,
|
|
2200
2325
|
immediate: !0
|
|
2201
2326
|
}
|
|
2202
2327
|
);
|
|
2203
|
-
const
|
|
2204
|
-
console.log("drag start", v),
|
|
2205
|
-
},
|
|
2206
|
-
console.log("drag end", v),
|
|
2328
|
+
const y = Ae("drag"), h = p, i = (v) => {
|
|
2329
|
+
console.log("drag start", v), h("handleDragStart", v);
|
|
2330
|
+
}, b = (v) => {
|
|
2331
|
+
console.log("drag end", v), h("handleDragEnd", v);
|
|
2207
2332
|
}, t = (v) => {
|
|
2208
|
-
console.log("drag add", v),
|
|
2209
|
-
},
|
|
2210
|
-
console.log("drag remove", v),
|
|
2333
|
+
console.log("drag add", v), h("handleDragAdd", v);
|
|
2334
|
+
}, a = (v) => {
|
|
2335
|
+
console.log("drag remove", v), h("handleDragRemove", v);
|
|
2211
2336
|
};
|
|
2212
|
-
return (v,
|
|
2213
|
-
class:
|
|
2337
|
+
return (v, A) => (l(), S("div", {
|
|
2338
|
+
class: E(s(y).b())
|
|
2214
2339
|
}, [
|
|
2215
|
-
v.childrenType == "component" ? (
|
|
2340
|
+
v.childrenType == "component" ? (l(), z(s(fe), X({
|
|
2216
2341
|
key: 0,
|
|
2217
|
-
modelValue:
|
|
2218
|
-
"onUpdate:modelValue":
|
|
2342
|
+
modelValue: c.value,
|
|
2343
|
+
"onUpdate:modelValue": A[0] || (A[0] = (T) => c.value = T),
|
|
2219
2344
|
"item-key": "key",
|
|
2220
2345
|
class: { [v.dragClass]: v.dragClass }
|
|
2221
2346
|
}, v.$attrs, {
|
|
2222
2347
|
"ghost-class": v.ghostClass,
|
|
2223
|
-
onStart:
|
|
2224
|
-
onEnd:
|
|
2348
|
+
onStart: i,
|
|
2349
|
+
onEnd: b,
|
|
2225
2350
|
onAdd: t,
|
|
2226
|
-
onRemove:
|
|
2351
|
+
onRemove: a
|
|
2227
2352
|
}), {
|
|
2228
|
-
item:
|
|
2229
|
-
(
|
|
2353
|
+
item: o(({ element: T }) => [
|
|
2354
|
+
(l(), z(ct(T.component)))
|
|
2230
2355
|
]),
|
|
2231
2356
|
_: 1
|
|
2232
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (
|
|
2357
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (l(), z(s(fe), X({
|
|
2233
2358
|
key: 1,
|
|
2234
|
-
modelValue:
|
|
2235
|
-
"onUpdate:modelValue":
|
|
2359
|
+
modelValue: c.value,
|
|
2360
|
+
"onUpdate:modelValue": A[1] || (A[1] = (T) => c.value = T),
|
|
2236
2361
|
"item-key": "id",
|
|
2237
2362
|
class: { [v.dragClass]: v.dragClass }
|
|
2238
2363
|
}, v.$attrs, {
|
|
2239
2364
|
"ghost-class": v.ghostClass,
|
|
2240
|
-
onStart:
|
|
2241
|
-
onEnd:
|
|
2365
|
+
onStart: i,
|
|
2366
|
+
onEnd: b,
|
|
2242
2367
|
onAdd: t,
|
|
2243
|
-
onRemove:
|
|
2368
|
+
onRemove: a
|
|
2244
2369
|
}), {
|
|
2245
|
-
item:
|
|
2246
|
-
|
|
2247
|
-
Y(v.$slots, "default", { item:
|
|
2370
|
+
item: o(({ element: T }) => [
|
|
2371
|
+
L("div", null, [
|
|
2372
|
+
Y(v.$slots, "default", { item: T }, void 0, !0)
|
|
2248
2373
|
])
|
|
2249
2374
|
]),
|
|
2250
2375
|
_: 3
|
|
2251
2376
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2252
2377
|
], 2));
|
|
2253
2378
|
}
|
|
2254
|
-
}),
|
|
2379
|
+
}), po = /* @__PURE__ */ le(bo, [["__scopeId", "data-v-15b227f5"]]), fo = te(po), ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2380
|
+
__proto__: null,
|
|
2381
|
+
HbLibFuncCompCopy: co,
|
|
2382
|
+
HbLibFuncCompDrag: fo
|
|
2383
|
+
}, Symbol.toStringTag, { value: "Module" })), mo = { class: "log_remark" }, vo = /* @__PURE__ */ ee({
|
|
2384
|
+
name: "HbLibLogModal",
|
|
2385
|
+
__name: "HbLogModal",
|
|
2386
|
+
props: {
|
|
2387
|
+
visible: { type: Boolean, default: !1 },
|
|
2388
|
+
title: { default: "" },
|
|
2389
|
+
width: { default: "45%" },
|
|
2390
|
+
scrollY: { default: 500 },
|
|
2391
|
+
params: { default: () => ({}) },
|
|
2392
|
+
url: {},
|
|
2393
|
+
columns: { default: void 0 },
|
|
2394
|
+
logBtnText: { default: "查看日志" },
|
|
2395
|
+
pagination: {},
|
|
2396
|
+
getLogData: {}
|
|
2397
|
+
},
|
|
2398
|
+
emits: ["update:visible"],
|
|
2399
|
+
setup(e, { expose: p, emit: d }) {
|
|
2400
|
+
const { t: c } = ie(), y = e, h = [
|
|
2401
|
+
{
|
|
2402
|
+
title: c("hbLibComp.HbLogModal.operator"),
|
|
2403
|
+
dataIndex: "userName",
|
|
2404
|
+
width: "15%"
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
title: c("hbLibComp.HbLogModal.operateTime"),
|
|
2408
|
+
dataIndex: "operateTime",
|
|
2409
|
+
width: "25%"
|
|
2410
|
+
},
|
|
2411
|
+
{ title: c("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2412
|
+
], i = W(() => y.columns || h), b = W(() => y.title || c("hbLibComp.HbLogModal.operateLogs")), t = P(!1), a = me({
|
|
2413
|
+
list: [],
|
|
2414
|
+
pagination: {
|
|
2415
|
+
current: 1,
|
|
2416
|
+
pageSize: 20,
|
|
2417
|
+
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2418
|
+
showQuickJumper: !0,
|
|
2419
|
+
showSizeChanger: !0,
|
|
2420
|
+
showTotal: (g, x) => x[0] + "-" + x[1] + " 总共" + g + "页",
|
|
2421
|
+
total: 0
|
|
2422
|
+
}
|
|
2423
|
+
});
|
|
2424
|
+
ne(
|
|
2425
|
+
() => y.pagination,
|
|
2426
|
+
(g) => {
|
|
2427
|
+
g && (a.pagination = {
|
|
2428
|
+
...a.pagination,
|
|
2429
|
+
...g
|
|
2430
|
+
});
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
deep: !0,
|
|
2434
|
+
immediate: !0
|
|
2435
|
+
}
|
|
2436
|
+
);
|
|
2437
|
+
const v = (g = 1) => {
|
|
2438
|
+
const x = {
|
|
2439
|
+
pageIndex: g,
|
|
2440
|
+
pageSize: a.pagination.pageSize,
|
|
2441
|
+
query: y.params
|
|
2442
|
+
};
|
|
2443
|
+
y.getLogData && (t.value = !0, y.getLogData(x).then((N) => {
|
|
2444
|
+
Number(N.code) == 200 && (a.pagination.current = g, a.pagination.total = Number(N.data.total), a.list = N.data.records || []);
|
|
2445
|
+
}).finally(() => {
|
|
2446
|
+
t.value = !1;
|
|
2447
|
+
}));
|
|
2448
|
+
}, A = (g) => {
|
|
2449
|
+
a.pagination.current = g.current, a.pagination.pageSize = g.pageSize, v();
|
|
2450
|
+
}, T = () => {
|
|
2451
|
+
a.list = [], C("update:visible", !1);
|
|
2452
|
+
}, j = () => {
|
|
2453
|
+
C("update:visible", !0);
|
|
2454
|
+
}, m = (g, x = "YYYY-MM-DD HH:mm:ss") => g ? ge(g).format(x) : "", C = d;
|
|
2455
|
+
return ne(
|
|
2456
|
+
() => y.visible,
|
|
2457
|
+
(g) => {
|
|
2458
|
+
g && v();
|
|
2459
|
+
}
|
|
2460
|
+
), p({
|
|
2461
|
+
close: T,
|
|
2462
|
+
loading: t
|
|
2463
|
+
}), (g, x) => {
|
|
2464
|
+
const N = U("a-tooltip"), M = U("HbLibCopy"), I = U("a-table"), n = U("a-button"), r = U("a-modal");
|
|
2465
|
+
return l(), S(K, null, [
|
|
2466
|
+
w(r, {
|
|
2467
|
+
visible: e.visible,
|
|
2468
|
+
title: b.value,
|
|
2469
|
+
width: e.width,
|
|
2470
|
+
onCancel: T
|
|
2471
|
+
}, {
|
|
2472
|
+
footer: o(() => [
|
|
2473
|
+
w(n, { onClick: T }, {
|
|
2474
|
+
default: o(() => [
|
|
2475
|
+
H(_(s(c)("hbLibComp.HbLogModal.close")), 1)
|
|
2476
|
+
]),
|
|
2477
|
+
_: 1
|
|
2478
|
+
})
|
|
2479
|
+
]),
|
|
2480
|
+
default: o(() => [
|
|
2481
|
+
w(I, {
|
|
2482
|
+
bordered: "",
|
|
2483
|
+
rowKey: "id",
|
|
2484
|
+
columns: i.value,
|
|
2485
|
+
dataSource: a.list,
|
|
2486
|
+
pagination: a.pagination,
|
|
2487
|
+
loading: t.value,
|
|
2488
|
+
onChange: A
|
|
2489
|
+
}, {
|
|
2490
|
+
bodyCell: o(({ column: u, record: k }) => [
|
|
2491
|
+
u && u.needTooltip ? (l(), S(K, { key: 0 }, [
|
|
2492
|
+
u.needTooltip ? (l(), z(N, { key: 0 }, {
|
|
2493
|
+
title: o(() => [
|
|
2494
|
+
H(_(k[u.dataIndex]), 1)
|
|
2495
|
+
]),
|
|
2496
|
+
default: o(() => [
|
|
2497
|
+
H(" " + _(k[u.dataIndex]), 1)
|
|
2498
|
+
]),
|
|
2499
|
+
_: 2
|
|
2500
|
+
}, 1024)) : R("", !0)
|
|
2501
|
+
], 64)) : R("", !0),
|
|
2502
|
+
u && u.needCopy ? (l(), S(K, { key: 1 }, [
|
|
2503
|
+
L("div", mo, _(k[u.dataIndex]), 1),
|
|
2504
|
+
w(M, {
|
|
2505
|
+
"cp-text": k[u.dataIndex],
|
|
2506
|
+
style: { position: "relative" }
|
|
2507
|
+
}, null, 8, ["cp-text"])
|
|
2508
|
+
], 64)) : R("", !0),
|
|
2509
|
+
u && u.needFormat ? (l(), S(K, { key: 2 }, [
|
|
2510
|
+
H(_(m(k[u.dataIndex], u.operateTime)), 1)
|
|
2511
|
+
], 64)) : R("", !0)
|
|
2512
|
+
]),
|
|
2513
|
+
_: 1
|
|
2514
|
+
}, 8, ["columns", "dataSource", "pagination", "loading"])
|
|
2515
|
+
]),
|
|
2516
|
+
_: 1
|
|
2517
|
+
}, 8, ["visible", "title", "width"]),
|
|
2518
|
+
Y(g.$slots, "default", {}, () => [
|
|
2519
|
+
w(n, { onClick: j }, {
|
|
2520
|
+
default: o(() => [
|
|
2521
|
+
H(_(e.logBtnText), 1)
|
|
2522
|
+
]),
|
|
2523
|
+
_: 1
|
|
2524
|
+
})
|
|
2525
|
+
], !0)
|
|
2526
|
+
], 64);
|
|
2527
|
+
};
|
|
2528
|
+
}
|
|
2529
|
+
}), go = /* @__PURE__ */ le(vo, [["__scopeId", "data-v-cee51270"]]), yo = te(go), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2255
2530
|
__proto__: null,
|
|
2256
|
-
|
|
2257
|
-
HbLibFuncCompDrag: lo
|
|
2531
|
+
HbLibLogModal: yo
|
|
2258
2532
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2259
|
-
let
|
|
2260
|
-
...
|
|
2261
|
-
...
|
|
2262
|
-
...
|
|
2533
|
+
let We = {
|
|
2534
|
+
...jl,
|
|
2535
|
+
...Jl,
|
|
2536
|
+
...no,
|
|
2537
|
+
...Co,
|
|
2538
|
+
...ho
|
|
2263
2539
|
};
|
|
2264
|
-
const
|
|
2265
|
-
hbLibComp:
|
|
2266
|
-
},
|
|
2267
|
-
hbLibComp:
|
|
2268
|
-
},
|
|
2269
|
-
hbLibComp:
|
|
2270
|
-
},
|
|
2271
|
-
hbLibComp:
|
|
2540
|
+
const Lo = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload", format: "Supported formats" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" }, HbImportFile: { clickUp: "Click to upload", downloadTemplate: "Click to download template", pleaseUploadFiles: "Please upload files", uploadText: "Drag files here or", fileLabel: "document" } }, _o = {
|
|
2541
|
+
hbLibComp: Lo
|
|
2542
|
+
}, ko = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください", format: "サポートされている形式" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" }, HbImportFile: { clickUp: "クリックしてアップロード", downloadTemplate: "クリックしてテンプレートをダウンロード", pleaseUploadFiles: "ファイルをアップロードしてください", uploadText: "ファイルをここにドラッグするか、", fileLabel: "書類" } }, So = {
|
|
2543
|
+
hbLibComp: ko
|
|
2544
|
+
}, Fo = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案" }, 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: "文件上传" } }, wo = {
|
|
2545
|
+
hbLibComp: Fo
|
|
2546
|
+
}, xo = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus", format: "Unterstützte Formate" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" }, HbImportFile: { clickUp: "Klicken Sie zum Hochladen", downloadTemplate: "Klicken Sie hier, um die Vorlage herunterzuladen", pleaseUploadFiles: "Bitte laden Sie Dateien hoch", uploadText: "Ziehen Sie Dateien hierher oder", fileLabel: "dokumentieren" } }, To = {
|
|
2547
|
+
hbLibComp: xo
|
|
2272
2548
|
};
|
|
2273
|
-
var
|
|
2274
|
-
function
|
|
2275
|
-
return
|
|
2276
|
-
(function(
|
|
2277
|
-
e.exports =
|
|
2278
|
-
})(
|
|
2279
|
-
function i
|
|
2280
|
-
return
|
|
2549
|
+
var pe = { exports: {} }, $o = pe.exports, Je;
|
|
2550
|
+
function Io() {
|
|
2551
|
+
return Je || (Je = 1, (function(e, p) {
|
|
2552
|
+
(function(d, c) {
|
|
2553
|
+
e.exports = c(ge);
|
|
2554
|
+
})($o, (function(d) {
|
|
2555
|
+
function c(i) {
|
|
2556
|
+
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
2281
2557
|
}
|
|
2282
|
-
var
|
|
2283
|
-
return
|
|
2284
|
-
}, 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(
|
|
2285
|
-
var t = 100 *
|
|
2558
|
+
var y = c(d), h = { 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(i, b) {
|
|
2559
|
+
return b === "W" ? i + "周" : i + "日";
|
|
2560
|
+
}, 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(i, b) {
|
|
2561
|
+
var t = 100 * i + b;
|
|
2286
2562
|
return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";
|
|
2287
2563
|
} };
|
|
2288
|
-
return
|
|
2564
|
+
return y.default.locale(h, null, !0), h;
|
|
2289
2565
|
}));
|
|
2290
|
-
})(
|
|
2566
|
+
})(pe)), pe.exports;
|
|
2291
2567
|
}
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
const
|
|
2295
|
-
en_US:
|
|
2296
|
-
ja_JP:
|
|
2297
|
-
zh_CN:
|
|
2298
|
-
de_DE:
|
|
2299
|
-
},
|
|
2300
|
-
Object.keys(
|
|
2301
|
-
e.use(
|
|
2568
|
+
Io();
|
|
2569
|
+
ge.locale("zh-cn");
|
|
2570
|
+
const Uo = {
|
|
2571
|
+
en_US: _o,
|
|
2572
|
+
ja_JP: So,
|
|
2573
|
+
zh_CN: wo,
|
|
2574
|
+
de_DE: To
|
|
2575
|
+
}, Vo = function(e) {
|
|
2576
|
+
Object.keys(We).forEach((d) => {
|
|
2577
|
+
e.use(We[d]);
|
|
2302
2578
|
});
|
|
2303
2579
|
};
|
|
2304
2580
|
export {
|
|
2305
|
-
|
|
2306
|
-
|
|
2581
|
+
Vo as install,
|
|
2582
|
+
Uo as locales
|
|
2307
2583
|
};
|