@hb-hellotech/hb-ui 1.2.5-beta.6.1 → 1.2.9-beta.1
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_item_filter_modal/src/type.d.ts +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/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_form/src/type.d.ts +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/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 -97
- 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 +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts.map +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 +1436 -1179
- 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
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useFullscreen as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
},
|
|
2
|
+
import { defineComponent as ee, reactive as ye, ref as z, computed as E, watch as ne, onMounted as Ce, createElementBlock as S, openBlock as a, normalizeClass as V, unref as s, createVNode as w, withCtx as n, createElementVNode as C, toDisplayString as _, createTextVNode as H, createBlock as O, createCommentVNode as B, Fragment as j, renderList as ae, inject as Oe, resolveComponent as P, Transition as ot, withDirectives as pe, mergeProps as X, createSlots as et, renderSlot as Y, vShow as at, nextTick as me, onUnmounted as nt, useTemplateRef as st, provide as it, normalizeStyle as _e, mergeModels as xe, useModel as tt, withModifiers as $e, resolveDirective as rt, useAttrs as ct, watchEffect as dt, shallowRef as ut, resolveDynamicComponent as pt } from "vue";
|
|
3
|
+
import ve from "vuedraggable";
|
|
4
|
+
import { Modal as Ie, Button as be, Tooltip as Me, Switch as Pe, Radio as Ne, RadioGroup as Ue, InputNumber as Ve, DatePicker as Ee, Checkbox as ge, CheckboxGroup as Ye, Select as He, Input as je, Col as bt, Row as mt, FormItem as qe, Form as Ke, SelectOption as De, Popconfirm as Fe, MenuItem as We, Menu as Je, Dropdown as Ge, Popover as ft, message as Ae } from "ant-design-vue";
|
|
5
|
+
import { useRoute as lt } from "vue-router";
|
|
6
|
+
import { useI18n as re } from "vue-i18n";
|
|
7
|
+
import Te from "lodash";
|
|
8
|
+
import { CloseOutlined as ht, QuestionCircleOutlined as vt, SearchOutlined as Be, UpCircleOutlined as gt, DownCircleOutlined as yt, UnorderedListOutlined as Ct, DownOutlined as Qe, PlusCircleOutlined as _t } from "@ant-design/icons-vue";
|
|
9
|
+
import { useFullscreen as Lt, useDebounceFn as kt } from "@vueuse/core";
|
|
10
|
+
import Le from "dayjs";
|
|
11
|
+
const St = "hb-", ze = (e = "") => {
|
|
12
|
+
const b = `${St}${e}`;
|
|
13
|
+
return wt(b);
|
|
14
|
+
}, ue = (e, b, d, p) => (b && (e += `-${b}`), d && (e += `__${d}`), p && (e += `--${p}`), e), wt = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (
|
|
16
|
+
b: (b) => b ? ue(e, b, "", "") : ue(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (
|
|
18
|
+
e: (b) => b ? ue(e, "", b, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (
|
|
20
|
+
m: (b) => ue(e, "", "", b),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (
|
|
22
|
+
be: (b, d) => ue(e, b, d, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (
|
|
24
|
+
em: (b, d) => ue(e, "", b, d),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (
|
|
26
|
+
bem: (b, d, p) => ue(e, b, d, p),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (
|
|
29
|
-
}),
|
|
28
|
+
is: (b, d) => d ? `is-${b}` : ""
|
|
29
|
+
}), Ft = ["onMouseenter", "onMouseleave"], Tt = ["onClick"], xt = /* @__PURE__ */ ee({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -34,278 +34,247 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
34
34
|
afterChange: { type: Function, default: () => () => {
|
|
35
35
|
} },
|
|
36
36
|
title: { default: "自定义查询条件" },
|
|
37
|
-
showNumber: { default: 40 }
|
|
37
|
+
showNumber: { default: 40 },
|
|
38
|
+
saveKey: { default: "" }
|
|
38
39
|
},
|
|
39
40
|
emits: ["confirm"],
|
|
40
|
-
setup(e, { expose:
|
|
41
|
-
const
|
|
41
|
+
setup(e, { expose: b, emit: d }) {
|
|
42
|
+
const p = re().t, y = re().messages.value.en_US, m = re().messages.value.ja_JP, r = re().messages.value.zh_CN, u = e, t = d, i = ze("sfcm"), h = lt(), D = ye({
|
|
42
43
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
44
|
-
let
|
|
45
|
-
const g =
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
}), x = z(!1), U = z(600);
|
|
45
|
+
let f = [];
|
|
46
|
+
const g = z([]), v = z([]), T = E(() => g.value.every((F) => F.isLinked || F.isFixed)), A = (F) => ({
|
|
47
|
+
...F,
|
|
48
|
+
label: l(F) || `${F.subLabel || ""}${p("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
49
|
+
key: F.key,
|
|
50
|
+
isFixed: F?.isFixed || !1,
|
|
51
|
+
isLinked: F?.isLinked || !1,
|
|
52
|
+
labelLanguage: F?.labelLanguage || void 0
|
|
53
|
+
}), I = (F) => {
|
|
54
|
+
const M = F.draggedContext.element, $ = F.relatedContext.index;
|
|
55
|
+
if (M.isLinked || M.isFixed)
|
|
48
56
|
return !1;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
57
|
+
const G = g.value.map((Q, ie) => ({ item: Q, index: ie })).filter(({ item: Q }) => Q.isLinked).map(({ index: Q }) => Q);
|
|
58
|
+
if (G.length === 0)
|
|
51
59
|
return !0;
|
|
52
|
-
for (let
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
60
|
+
for (let Q = 0; Q < G.length - 1; Q++) {
|
|
61
|
+
const ie = G[Q], de = G[Q + 1];
|
|
62
|
+
if ($ > ie && $ < de)
|
|
55
63
|
return !1;
|
|
56
64
|
}
|
|
57
65
|
return !0;
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
let
|
|
61
|
-
if (
|
|
66
|
+
}, q = E(() => o() + "_" + u.saveKey), o = () => {
|
|
67
|
+
const F = localStorage.getItem("pro__Login_Userinfo");
|
|
68
|
+
let M = "anonymous";
|
|
69
|
+
if (F)
|
|
62
70
|
try {
|
|
63
|
-
|
|
64
|
-
} catch (
|
|
65
|
-
console.warn("解析用户信息失败:",
|
|
71
|
+
M = JSON.parse(F).value.jobNumber || "anonymous";
|
|
72
|
+
} catch (G) {
|
|
73
|
+
console.warn("解析用户信息失败:", G);
|
|
66
74
|
}
|
|
67
|
-
let
|
|
68
|
-
return `searchFormConfig_${
|
|
69
|
-
},
|
|
70
|
-
ja_JP: () =>
|
|
71
|
-
en_US: () =>
|
|
72
|
-
zh_CN: () =>
|
|
73
|
-
})[
|
|
75
|
+
let $ = h?.path;
|
|
76
|
+
return `searchFormConfig_${M}_${$}`;
|
|
77
|
+
}, l = (F) => ({
|
|
78
|
+
ja_JP: () => Te.get(m, F.labelLanguage || ""),
|
|
79
|
+
en_US: () => Te.get(y, F.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => Te.get(r, F.labelLanguage || "")
|
|
81
|
+
})[D.lan]?.() || F.label, c = (F) => {
|
|
74
82
|
try {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
labelLanguage: $?.labelLanguage || void 0
|
|
87
|
-
})), ye = ne.map(($) => ({
|
|
88
|
-
...$,
|
|
89
|
-
label: F($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
-
key: $.key,
|
|
91
|
-
isFixed: $?.isFixed || !1,
|
|
92
|
-
isLinked: !0,
|
|
93
|
-
labelLanguage: $?.labelLanguage || void 0
|
|
94
|
-
})), D = de.slice(0, ve).map(($) => ({
|
|
95
|
-
...$,
|
|
96
|
-
label: F($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
-
key: $.key,
|
|
98
|
-
isFixed: $?.isFixed || !1,
|
|
99
|
-
isLinked: $?.isLinked || !1,
|
|
100
|
-
labelLanguage: $?.labelLanguage || void 0
|
|
83
|
+
const M = localStorage.getItem(q.value);
|
|
84
|
+
if (M) {
|
|
85
|
+
const $ = JSON.parse(M);
|
|
86
|
+
if ($.originalList && Array.isArray($.originalList)) {
|
|
87
|
+
f = JSON.parse(JSON.stringify($.originalList));
|
|
88
|
+
const G = f.filter((J) => J?.isFixed), Q = f.filter((J) => J?.isLinked), ie = $.showList.filter((J) => !J.isFixed && !J.isLinked), de = u.showNumber && u.showNumber > 0 ? Math.max(0, u.showNumber - G.length - Q.length) : ie.length, fe = G.map((J) => ({
|
|
89
|
+
...A(J)
|
|
90
|
+
})), ke = Q.map((J) => ({
|
|
91
|
+
...A(J)
|
|
92
|
+
})), Se = ie.slice(0, de).map((J) => ({
|
|
93
|
+
...A(J)
|
|
101
94
|
}));
|
|
102
|
-
g.value = [...
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
key: $.key,
|
|
108
|
-
isFixed: $?.isFixed || !1,
|
|
109
|
-
isLinked: $?.isLinked || !1,
|
|
110
|
-
active: !1,
|
|
111
|
-
labelLanguage: $?.labelLanguage || void 0
|
|
95
|
+
console.log("我进来了这里2233"), g.value = [...fe, ...ke, ...Se];
|
|
96
|
+
const we = g.value.map((J) => J.key), Z = f.map((J) => J.key).filter((J) => !we.includes(J));
|
|
97
|
+
return v.value = f.filter((J) => Z.includes(J.key)).map((J) => ({
|
|
98
|
+
...A(J),
|
|
99
|
+
active: !1
|
|
112
100
|
})), !0;
|
|
113
101
|
}
|
|
114
102
|
}
|
|
115
|
-
} catch (
|
|
116
|
-
console.warn("加载保存的搜索配置失败:",
|
|
103
|
+
} catch (M) {
|
|
104
|
+
console.warn("加载保存的搜索配置失败:", M);
|
|
117
105
|
}
|
|
118
106
|
return !1;
|
|
119
|
-
},
|
|
107
|
+
}, L = () => {
|
|
120
108
|
try {
|
|
121
|
-
const
|
|
122
|
-
originalList:
|
|
123
|
-
showList: g.value.map((
|
|
124
|
-
...
|
|
125
|
-
key:
|
|
126
|
-
label:
|
|
127
|
-
isFixed:
|
|
128
|
-
isLinked:
|
|
129
|
-
labelLanguage:
|
|
109
|
+
const F = {
|
|
110
|
+
originalList: f,
|
|
111
|
+
showList: g.value.map((M) => ({
|
|
112
|
+
...M,
|
|
113
|
+
key: M.key,
|
|
114
|
+
label: M.label,
|
|
115
|
+
isFixed: M.isFixed,
|
|
116
|
+
isLinked: M.isLinked,
|
|
117
|
+
labelLanguage: M?.labelLanguage || void 0
|
|
130
118
|
}))
|
|
131
|
-
}
|
|
132
|
-
localStorage.setItem(
|
|
133
|
-
} catch (
|
|
134
|
-
console.warn("保存搜索配置失败:",
|
|
119
|
+
};
|
|
120
|
+
localStorage.setItem(q.value, JSON.stringify(F));
|
|
121
|
+
} catch (F) {
|
|
122
|
+
console.warn("保存搜索配置失败:", F);
|
|
135
123
|
}
|
|
136
|
-
},
|
|
137
|
-
const
|
|
138
|
-
return
|
|
124
|
+
}, R = E(() => {
|
|
125
|
+
const F = g.value.filter(($) => !$.isFixed && !$.isLinked).length, M = g.value.filter(($) => $.isFixed || $.isLinked).length;
|
|
126
|
+
return F >= u.showNumber - M;
|
|
139
127
|
});
|
|
140
|
-
|
|
141
|
-
() =>
|
|
142
|
-
(
|
|
143
|
-
let
|
|
144
|
-
if (!
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
...
|
|
155
|
-
|
|
156
|
-
key: D.key,
|
|
157
|
-
isFixed: D?.isFixed || !1,
|
|
158
|
-
isLinked: !0,
|
|
159
|
-
labelLanguage: D?.labelLanguage || void 0
|
|
160
|
-
})), ge = Z.slice(0, ne).map((D) => ({
|
|
161
|
-
...D,
|
|
162
|
-
label: F(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
163
|
-
key: D.key,
|
|
164
|
-
isFixed: D?.isFixed || !1,
|
|
165
|
-
isLinked: D?.isLinked || !1,
|
|
166
|
-
labelLanguage: D?.labelLanguage || void 0
|
|
167
|
-
}));
|
|
168
|
-
g.value = [...de, ...ve, ...ge];
|
|
169
|
-
const ye = Z.slice(ne).map((D) => ({
|
|
170
|
-
...D,
|
|
171
|
-
label: F(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
172
|
-
key: D.key,
|
|
173
|
-
isFixed: D?.isFixed || !1,
|
|
174
|
-
isLinked: D?.isLinked || !1,
|
|
175
|
-
active: !1,
|
|
176
|
-
labelLanguage: D?.labelLanguage || void 0
|
|
128
|
+
ne(
|
|
129
|
+
() => u.list,
|
|
130
|
+
(F) => {
|
|
131
|
+
let M = JSON.stringify(g.value) !== JSON.stringify(F);
|
|
132
|
+
if (!M)
|
|
133
|
+
return;
|
|
134
|
+
const $ = localStorage.getItem(q.value), G = JSON.parse($ || "{}");
|
|
135
|
+
if (G && G?.originalList && Array.isArray(G.originalList))
|
|
136
|
+
c(), t("confirm", g.value);
|
|
137
|
+
else if (M) {
|
|
138
|
+
f = JSON.parse(JSON.stringify(F));
|
|
139
|
+
const Q = F.filter((Z) => Z?.isFixed), ie = F.filter((Z) => Z?.isLinked), de = F.filter((Z) => !Z?.isFixed && !Z?.isLinked), fe = u.showNumber && u.showNumber > 0 ? Math.max(0, u.showNumber - Q.length - ie.length) : de.length, ke = Q.map((Z) => A(Z)), Se = ie.map((Z) => A(Z)), we = de.slice(0, fe).map((Z) => A(Z));
|
|
140
|
+
g.value = [...ke, ...Se, ...we];
|
|
141
|
+
const Re = de.slice(fe).map((Z) => ({
|
|
142
|
+
...A(Z),
|
|
143
|
+
active: !1
|
|
177
144
|
}));
|
|
178
|
-
|
|
145
|
+
v.value = Re;
|
|
179
146
|
}
|
|
180
147
|
},
|
|
181
148
|
{ immediate: !0 }
|
|
182
149
|
);
|
|
183
|
-
const k = (
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
if (
|
|
150
|
+
const k = (F) => {
|
|
151
|
+
const M = g.value.findIndex(($) => $.key === F.key);
|
|
152
|
+
M !== -1 && (g.value.splice(M, 1), v.value.push({ ...F, active: !1 }));
|
|
153
|
+
}, se = (F) => {
|
|
154
|
+
if (R.value)
|
|
188
155
|
return;
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
const [
|
|
192
|
-
g.value.push({
|
|
156
|
+
const M = v.value.findIndex(($) => $.key === F.key);
|
|
157
|
+
if (M !== -1) {
|
|
158
|
+
const [$] = v.value.splice(M, 1);
|
|
159
|
+
g.value.push({ ...$, active: !1 });
|
|
193
160
|
}
|
|
194
|
-
}, j = () => {
|
|
195
|
-
A.value = !1;
|
|
196
161
|
}, N = () => {
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
162
|
+
x.value = !1;
|
|
163
|
+
}, K = () => {
|
|
164
|
+
x.value = !0;
|
|
165
|
+
}, W = () => {
|
|
166
|
+
L(), t("confirm", g.value), N();
|
|
167
|
+
}, oe = (F) => {
|
|
168
|
+
const M = v.value.findIndex(($) => $.key === F.key);
|
|
169
|
+
M !== -1 && (v.value[M].active = !0);
|
|
170
|
+
}, ce = (F) => {
|
|
171
|
+
const M = v.value.findIndex(($) => $.key === F.key);
|
|
172
|
+
M !== -1 && (v.value[M].active = !1);
|
|
206
173
|
};
|
|
207
|
-
return
|
|
208
|
-
toOpenModal:
|
|
209
|
-
}), (
|
|
210
|
-
|
|
174
|
+
return b({
|
|
175
|
+
toOpenModal: K
|
|
176
|
+
}), Ce(() => {
|
|
177
|
+
console.log("我是保存的搜索条件");
|
|
178
|
+
}), (F, M) => (a(), S("div", {
|
|
179
|
+
class: V(s(i).b())
|
|
211
180
|
}, [
|
|
212
|
-
|
|
213
|
-
visible:
|
|
214
|
-
"onUpdate:visible":
|
|
215
|
-
width:
|
|
216
|
-
onCancel:
|
|
217
|
-
onOk:
|
|
181
|
+
w(s(Ie), {
|
|
182
|
+
visible: x.value,
|
|
183
|
+
"onUpdate:visible": M[1] || (M[1] = ($) => x.value = $),
|
|
184
|
+
width: U.value,
|
|
185
|
+
onCancel: N,
|
|
186
|
+
onOk: W
|
|
218
187
|
}, {
|
|
219
|
-
title:
|
|
220
|
-
|
|
221
|
-
class: V(
|
|
222
|
-
},
|
|
188
|
+
title: n(() => [
|
|
189
|
+
C("div", {
|
|
190
|
+
class: V(s(i).e("title"))
|
|
191
|
+
}, _(e.title), 3)
|
|
223
192
|
]),
|
|
224
|
-
footer:
|
|
225
|
-
|
|
226
|
-
default:
|
|
227
|
-
|
|
193
|
+
footer: n(() => [
|
|
194
|
+
w(s(be), { onClick: N }, {
|
|
195
|
+
default: n(() => [
|
|
196
|
+
H(_(F.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
228
197
|
]),
|
|
229
198
|
_: 1
|
|
230
199
|
}),
|
|
231
|
-
|
|
200
|
+
w(s(be), {
|
|
232
201
|
type: "primary",
|
|
233
|
-
onClick:
|
|
202
|
+
onClick: W
|
|
234
203
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
|
|
204
|
+
default: n(() => [
|
|
205
|
+
H(_(F.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
237
206
|
]),
|
|
238
207
|
_: 1
|
|
239
208
|
})
|
|
240
209
|
]),
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
class: V(
|
|
210
|
+
default: n(() => [
|
|
211
|
+
C("section", {
|
|
212
|
+
class: V(s(i).e("show"))
|
|
244
213
|
}, [
|
|
245
|
-
|
|
246
|
-
class: V(
|
|
214
|
+
C("div", {
|
|
215
|
+
class: V(s(i).e("show__title"))
|
|
247
216
|
}, [
|
|
248
|
-
|
|
249
|
-
class: V(
|
|
250
|
-
},
|
|
251
|
-
|
|
217
|
+
C("span", {
|
|
218
|
+
class: V(s(i).e("title__tip"))
|
|
219
|
+
}, _(F.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
220
|
+
C("span", null, _(F.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + _(e.showNumber) + _(F.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
252
221
|
], 2),
|
|
253
|
-
|
|
254
|
-
class: V(
|
|
222
|
+
C("div", {
|
|
223
|
+
class: V(s(i).e("show__tag"))
|
|
255
224
|
}, [
|
|
256
|
-
|
|
225
|
+
w(s(ve), {
|
|
257
226
|
modelValue: g.value,
|
|
258
|
-
"onUpdate:modelValue":
|
|
227
|
+
"onUpdate:modelValue": M[0] || (M[0] = ($) => g.value = $),
|
|
259
228
|
"item-key": "key",
|
|
260
229
|
tag: "div",
|
|
261
|
-
disabled:
|
|
262
|
-
move:
|
|
230
|
+
disabled: T.value,
|
|
231
|
+
move: I
|
|
263
232
|
}, {
|
|
264
|
-
item:
|
|
265
|
-
|
|
266
|
-
class: V([
|
|
233
|
+
item: n(({ element: $ }) => [
|
|
234
|
+
C("div", {
|
|
235
|
+
class: V([s(i).e("show__tag__item"), s(i).is("fixed", $.isFixed), s(i).is("linked", $.isLinked)])
|
|
267
236
|
}, [
|
|
268
|
-
|
|
269
|
-
|
|
237
|
+
H(_($.label) + " ", 1),
|
|
238
|
+
!$.isFixed && !$.isLinked && e.list.length > 1 ? (a(), O(s(ht), {
|
|
270
239
|
key: 0,
|
|
271
|
-
class: V(
|
|
272
|
-
onClick: (
|
|
273
|
-
}, null, 8, ["class", "onClick"])) :
|
|
240
|
+
class: V(s(i).e("show__tag__item-close")),
|
|
241
|
+
onClick: (G) => k($)
|
|
242
|
+
}, null, 8, ["class", "onClick"])) : B("", !0)
|
|
274
243
|
], 2)
|
|
275
244
|
]),
|
|
276
245
|
_: 1
|
|
277
246
|
}, 8, ["modelValue", "disabled"])
|
|
278
247
|
], 2)
|
|
279
248
|
], 2),
|
|
280
|
-
|
|
281
|
-
class: V(
|
|
249
|
+
C("section", {
|
|
250
|
+
class: V(s(i).e("unshow"))
|
|
282
251
|
}, [
|
|
283
|
-
|
|
284
|
-
class: V(
|
|
252
|
+
C("div", {
|
|
253
|
+
class: V(s(i).e("show__title"))
|
|
285
254
|
}, [
|
|
286
|
-
|
|
287
|
-
class: V(
|
|
288
|
-
},
|
|
255
|
+
C("span", {
|
|
256
|
+
class: V(s(i).e("title__tip"))
|
|
257
|
+
}, _(F.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
289
258
|
], 2),
|
|
290
|
-
|
|
291
|
-
class: V(
|
|
259
|
+
C("div", {
|
|
260
|
+
class: V(s(i).e("unshow__tag"))
|
|
292
261
|
}, [
|
|
293
|
-
|
|
294
|
-
class: V([
|
|
295
|
-
key:
|
|
296
|
-
onMouseenter: (
|
|
297
|
-
onMouseleave: (
|
|
262
|
+
v.value.length > 0 ? (a(!0), S(j, { key: 0 }, ae(v.value, ($) => (a(), S("div", {
|
|
263
|
+
class: V([s(i).e("unshow__tag__item"), s(i).is("fixed", $.isFixed || ""), s(i).is("linked", $.isLinked || "")]),
|
|
264
|
+
key: $.key,
|
|
265
|
+
onMouseenter: (G) => oe($),
|
|
266
|
+
onMouseleave: (G) => ce($)
|
|
298
267
|
}, [
|
|
299
|
-
|
|
300
|
-
|
|
268
|
+
H(_($.label) + " ", 1),
|
|
269
|
+
$.active ? (a(), S("aside", {
|
|
301
270
|
key: 0,
|
|
302
|
-
class: V(
|
|
303
|
-
onClick: (
|
|
304
|
-
},
|
|
305
|
-
], 42,
|
|
271
|
+
class: V(s(i).e("unshow__tag__item-add")),
|
|
272
|
+
onClick: (G) => se($)
|
|
273
|
+
}, _(F.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Tt)) : B("", !0)
|
|
274
|
+
], 42, Ft))), 128)) : (a(), S("div", {
|
|
306
275
|
key: 1,
|
|
307
|
-
class: V(
|
|
308
|
-
},
|
|
276
|
+
class: V(s(i).e("unshow__tag__empty"))
|
|
277
|
+
}, _(F.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
309
278
|
], 2)
|
|
310
279
|
], 2)
|
|
311
280
|
]),
|
|
@@ -313,15 +282,14 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
313
282
|
}, 8, ["visible", "width"])
|
|
314
283
|
], 2));
|
|
315
284
|
}
|
|
316
|
-
}),
|
|
317
|
-
const
|
|
318
|
-
for (const [
|
|
319
|
-
|
|
320
|
-
return
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}, e), xt = te(Ft), Tt = { class: "form-footer" }, $t = /* @__PURE__ */ ee({
|
|
285
|
+
}), le = (e, b) => {
|
|
286
|
+
const d = e.__vccOpts || e;
|
|
287
|
+
for (const [p, y] of b)
|
|
288
|
+
d[p] = y;
|
|
289
|
+
return d;
|
|
290
|
+
}, $t = /* @__PURE__ */ le(xt, [["__scopeId", "data-v-a8bc8c3a"]]), te = (e) => (e.install = (b) => {
|
|
291
|
+
b.component(e.name || "AnonymousComponent", e);
|
|
292
|
+
}, e), It = te($t), Mt = { class: "form-footer" }, Ht = /* @__PURE__ */ ee({
|
|
325
293
|
name: "HbLibListForm",
|
|
326
294
|
__name: "HbListForm",
|
|
327
295
|
props: {
|
|
@@ -342,6 +310,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
342
310
|
xl: 6
|
|
343
311
|
}
|
|
344
312
|
}) },
|
|
313
|
+
saveKey: {},
|
|
345
314
|
needFooter: { type: Boolean, default: !1 },
|
|
346
315
|
isFormExpanded: { type: Boolean, default: !0 },
|
|
347
316
|
needFilter: { type: Boolean, default: !0 },
|
|
@@ -349,23 +318,23 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
349
318
|
} }
|
|
350
319
|
},
|
|
351
320
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm"],
|
|
352
|
-
setup(e, { expose:
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
|
|
321
|
+
setup(e, { expose: b, emit: d }) {
|
|
322
|
+
const p = d, y = Oe("HB_LIST_PAGE_CONTAINER"), m = ze("form"), r = e, u = z("show"), t = E(() => [...r.items]), i = E(() => r.saveKey), h = z(), D = () => {
|
|
323
|
+
p("handleSearch");
|
|
324
|
+
}, x = () => {
|
|
325
|
+
p("handleReset");
|
|
326
|
+
}, U = z(), f = () => {
|
|
327
|
+
U.value && U.value.toOpenModal();
|
|
328
|
+
}, g = (o) => {
|
|
329
|
+
p("handleSfcmConfirm", o);
|
|
330
|
+
}, v = () => {
|
|
331
|
+
u.value = u.value === "show" ? "hide" : "show";
|
|
363
332
|
};
|
|
364
|
-
|
|
365
|
-
() =>
|
|
366
|
-
(
|
|
367
|
-
if (
|
|
368
|
-
console.log(
|
|
333
|
+
ne(
|
|
334
|
+
() => r.isFormExpanded,
|
|
335
|
+
(o) => {
|
|
336
|
+
if (o) {
|
|
337
|
+
console.log(o);
|
|
369
338
|
const l = document.querySelector("#subpackage_container");
|
|
370
339
|
l instanceof HTMLElement && (l.style.overflow = "hidden", setTimeout(() => {
|
|
371
340
|
l.style.overflow = "auto";
|
|
@@ -373,170 +342,170 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
373
342
|
}
|
|
374
343
|
}
|
|
375
344
|
);
|
|
376
|
-
const
|
|
377
|
-
const l =
|
|
345
|
+
const T = (o) => {
|
|
346
|
+
const l = o;
|
|
378
347
|
l.style.height = "", l.offsetHeight;
|
|
379
|
-
},
|
|
380
|
-
const l =
|
|
381
|
-
l.style.height = "", l.style.overflow = "",
|
|
382
|
-
|
|
348
|
+
}, A = (o) => {
|
|
349
|
+
const l = o;
|
|
350
|
+
l.style.height = "", l.style.overflow = "", me(() => {
|
|
351
|
+
y.calTableHeight && y.calTableHeight();
|
|
383
352
|
});
|
|
384
|
-
},
|
|
385
|
-
const l =
|
|
386
|
-
if (
|
|
387
|
-
const
|
|
388
|
-
l.style.height =
|
|
353
|
+
}, I = (o) => {
|
|
354
|
+
const l = o, c = l.querySelector(".hb-lib-form--container");
|
|
355
|
+
if (c) {
|
|
356
|
+
const L = c.offsetHeight;
|
|
357
|
+
l.style.height = L + "px", l.style.overflow = "hidden", l.offsetHeight, requestAnimationFrame(() => {
|
|
389
358
|
l.style.height = "0";
|
|
390
359
|
});
|
|
391
360
|
}
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
|
|
361
|
+
}, q = () => {
|
|
362
|
+
me(() => {
|
|
363
|
+
y.calTableHeight && y.calTableHeight();
|
|
395
364
|
});
|
|
396
365
|
};
|
|
397
|
-
return
|
|
398
|
-
formRef:
|
|
399
|
-
SelectOption:
|
|
400
|
-
Form:
|
|
401
|
-
FormItem:
|
|
402
|
-
Row:
|
|
403
|
-
Col:
|
|
404
|
-
Input:
|
|
405
|
-
Select:
|
|
406
|
-
CheckboxGroup:
|
|
407
|
-
Checkbox:
|
|
408
|
-
DatePicker:
|
|
409
|
-
InputNumber:
|
|
410
|
-
RadioGroup:
|
|
411
|
-
Radio:
|
|
412
|
-
Switch:
|
|
413
|
-
Button:
|
|
414
|
-
Tooltip:
|
|
415
|
-
}), (
|
|
416
|
-
const
|
|
417
|
-
return a(),
|
|
418
|
-
|
|
366
|
+
return b({
|
|
367
|
+
formRef: h,
|
|
368
|
+
SelectOption: De,
|
|
369
|
+
Form: Ke,
|
|
370
|
+
FormItem: qe,
|
|
371
|
+
Row: mt,
|
|
372
|
+
Col: bt,
|
|
373
|
+
Input: je,
|
|
374
|
+
Select: He,
|
|
375
|
+
CheckboxGroup: Ye,
|
|
376
|
+
Checkbox: ge,
|
|
377
|
+
DatePicker: Ee,
|
|
378
|
+
InputNumber: Ve,
|
|
379
|
+
RadioGroup: Ue,
|
|
380
|
+
Radio: Ne,
|
|
381
|
+
Switch: Pe,
|
|
382
|
+
Button: be,
|
|
383
|
+
Tooltip: Me
|
|
384
|
+
}), (o, l) => {
|
|
385
|
+
const c = P("a-button"), L = P("a-tooltip"), R = P("HbLibFormItemFilterModal");
|
|
386
|
+
return a(), S(j, null, [
|
|
387
|
+
w(ot, {
|
|
419
388
|
name: "form-collapse",
|
|
420
|
-
onEnter:
|
|
421
|
-
onAfterEnter:
|
|
422
|
-
onLeave:
|
|
423
|
-
onAfterLeave:
|
|
389
|
+
onEnter: T,
|
|
390
|
+
onAfterEnter: A,
|
|
391
|
+
onLeave: I,
|
|
392
|
+
onAfterLeave: q
|
|
424
393
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
|
|
427
|
-
class: V([
|
|
394
|
+
default: n(() => [
|
|
395
|
+
pe(C("div", {
|
|
396
|
+
class: V([s(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
428
397
|
}, [
|
|
429
|
-
|
|
398
|
+
w(s(Ke), X(o.$attrs, {
|
|
430
399
|
model: e.formData,
|
|
431
400
|
ref_key: "formRef",
|
|
432
|
-
ref:
|
|
433
|
-
class: ["hb-lib-form--container",
|
|
401
|
+
ref: h,
|
|
402
|
+
class: ["hb-lib-form--container", u.value == "show" ? "" : "hide"]
|
|
434
403
|
}), {
|
|
435
|
-
default:
|
|
436
|
-
(a(!0),
|
|
437
|
-
key:
|
|
404
|
+
default: n(() => [
|
|
405
|
+
(a(!0), S(j, null, ae(t.value, (k, se) => (a(), O(s(qe), X({
|
|
406
|
+
key: se,
|
|
438
407
|
ref_for: !0
|
|
439
|
-
},
|
|
440
|
-
name:
|
|
441
|
-
class:
|
|
442
|
-
}),
|
|
443
|
-
default:
|
|
444
|
-
|
|
408
|
+
}, k, {
|
|
409
|
+
name: k.key,
|
|
410
|
+
class: k.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
411
|
+
}), et({
|
|
412
|
+
default: n(() => [
|
|
413
|
+
k.type === "slot" ? Y(o.$slots, k.key, {
|
|
445
414
|
key: 0,
|
|
446
415
|
formData: e.formData,
|
|
447
|
-
item:
|
|
448
|
-
}, void 0, !0) :
|
|
449
|
-
|
|
416
|
+
item: k
|
|
417
|
+
}, void 0, !0) : B("", !0),
|
|
418
|
+
k.type === "mixin" ? Y(o.$slots, k.key, {
|
|
450
419
|
key: 1,
|
|
451
420
|
formData: e.formData,
|
|
452
|
-
item:
|
|
453
|
-
}, void 0, !0) :
|
|
454
|
-
|
|
421
|
+
item: k
|
|
422
|
+
}, void 0, !0) : B("", !0),
|
|
423
|
+
k.type === "input" ? (a(), O(s(je), X({
|
|
455
424
|
key: 2,
|
|
456
|
-
value: e.formData[
|
|
457
|
-
"onUpdate:value": (N) => e.formData[
|
|
458
|
-
}, { ref_for: !0 },
|
|
459
|
-
|
|
425
|
+
value: e.formData[k.key],
|
|
426
|
+
"onUpdate:value": (N) => e.formData[k.key] = N
|
|
427
|
+
}, { ref_for: !0 }, k.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
428
|
+
k.type === "select" ? (a(), O(s(He), X({
|
|
460
429
|
key: 3,
|
|
461
|
-
value: e.formData[
|
|
462
|
-
"onUpdate:value": (N) => e.formData[
|
|
463
|
-
}, { ref_for: !0 },
|
|
464
|
-
default:
|
|
465
|
-
(a(!0),
|
|
466
|
-
key:
|
|
430
|
+
value: e.formData[k.key],
|
|
431
|
+
"onUpdate:value": (N) => e.formData[k.key] = N
|
|
432
|
+
}, { ref_for: !0 }, k.attrs), {
|
|
433
|
+
default: n(() => [
|
|
434
|
+
(a(!0), S(j, null, ae(k.options, (N, K) => (a(), O(s(De), {
|
|
435
|
+
key: K,
|
|
467
436
|
value: N.value
|
|
468
437
|
}, {
|
|
469
|
-
default:
|
|
470
|
-
|
|
438
|
+
default: n(() => [
|
|
439
|
+
H(_(N.label), 1)
|
|
471
440
|
]),
|
|
472
441
|
_: 2
|
|
473
442
|
}, 1032, ["value"]))), 128))
|
|
474
443
|
]),
|
|
475
444
|
_: 2
|
|
476
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
477
|
-
|
|
445
|
+
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
446
|
+
k.type === "checkbox" ? (a(), O(s(Ye), X({
|
|
478
447
|
key: 4,
|
|
479
|
-
value: e.formData[
|
|
480
|
-
"onUpdate:value": (N) => e.formData[
|
|
481
|
-
}, { ref_for: !0 },
|
|
482
|
-
default:
|
|
483
|
-
(a(!0),
|
|
484
|
-
key:
|
|
448
|
+
value: e.formData[k.key],
|
|
449
|
+
"onUpdate:value": (N) => e.formData[k.key] = N
|
|
450
|
+
}, { ref_for: !0 }, k.attrs), {
|
|
451
|
+
default: n(() => [
|
|
452
|
+
(a(!0), S(j, null, ae(k.options, (N, K) => (a(), O(s(ge), {
|
|
453
|
+
key: K,
|
|
485
454
|
value: N.value
|
|
486
455
|
}, {
|
|
487
|
-
default:
|
|
488
|
-
|
|
456
|
+
default: n(() => [
|
|
457
|
+
H(_(N.label), 1)
|
|
489
458
|
]),
|
|
490
459
|
_: 2
|
|
491
460
|
}, 1032, ["value"]))), 128))
|
|
492
461
|
]),
|
|
493
462
|
_: 2
|
|
494
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
495
|
-
|
|
463
|
+
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
464
|
+
k.type === "date-picker" ? (a(), O(s(Ee), X({
|
|
496
465
|
key: 5,
|
|
497
|
-
value: e.formData[
|
|
498
|
-
"onUpdate:value": (N) => e.formData[
|
|
499
|
-
}, { ref_for: !0 },
|
|
500
|
-
|
|
466
|
+
value: e.formData[k.key],
|
|
467
|
+
"onUpdate:value": (N) => e.formData[k.key] = N
|
|
468
|
+
}, { ref_for: !0 }, k.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
469
|
+
k.type === "input-number" ? (a(), O(s(Ve), X({
|
|
501
470
|
key: 6,
|
|
502
|
-
value: e.formData[
|
|
503
|
-
"onUpdate:value": (N) => e.formData[
|
|
504
|
-
}, { ref_for: !0 },
|
|
505
|
-
|
|
471
|
+
value: e.formData[k.key],
|
|
472
|
+
"onUpdate:value": (N) => e.formData[k.key] = N
|
|
473
|
+
}, { ref_for: !0 }, k.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
474
|
+
k.type === "radio" ? (a(), O(s(Ue), X({
|
|
506
475
|
key: 7,
|
|
507
|
-
value: e.formData[
|
|
508
|
-
"onUpdate:value": (N) => e.formData[
|
|
509
|
-
}, { ref_for: !0 },
|
|
510
|
-
default:
|
|
511
|
-
(a(!0),
|
|
512
|
-
key:
|
|
476
|
+
value: e.formData[k.key],
|
|
477
|
+
"onUpdate:value": (N) => e.formData[k.key] = N
|
|
478
|
+
}, { ref_for: !0 }, k.attrs), {
|
|
479
|
+
default: n(() => [
|
|
480
|
+
(a(!0), S(j, null, ae(k.options, (N, K) => (a(), O(s(Ne), {
|
|
481
|
+
key: K,
|
|
513
482
|
value: N.value
|
|
514
483
|
}, {
|
|
515
|
-
default:
|
|
516
|
-
|
|
484
|
+
default: n(() => [
|
|
485
|
+
H(_(N.label), 1)
|
|
517
486
|
]),
|
|
518
487
|
_: 2
|
|
519
488
|
}, 1032, ["value"]))), 128))
|
|
520
489
|
]),
|
|
521
490
|
_: 2
|
|
522
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
523
|
-
|
|
491
|
+
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
492
|
+
k.type === "switch" ? (a(), O(s(Pe), X({
|
|
524
493
|
key: 8,
|
|
525
|
-
checked: e.formData[
|
|
526
|
-
"onUpdate:checked": (N) => e.formData[
|
|
527
|
-
}, { ref_for: !0 },
|
|
494
|
+
checked: e.formData[k.key],
|
|
495
|
+
"onUpdate:checked": (N) => e.formData[k.key] = N
|
|
496
|
+
}, { ref_for: !0 }, k.attrs), null, 16, ["checked", "onUpdate:checked"])) : B("", !0)
|
|
528
497
|
]),
|
|
529
498
|
_: 2
|
|
530
499
|
}, [
|
|
531
|
-
|
|
500
|
+
k.tooltip ? {
|
|
532
501
|
name: "label",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
title:
|
|
502
|
+
fn: n(() => [
|
|
503
|
+
H(_(k.label) + " ", 1),
|
|
504
|
+
w(s(Me), {
|
|
505
|
+
title: k.tooltip
|
|
537
506
|
}, {
|
|
538
|
-
default:
|
|
539
|
-
|
|
507
|
+
default: n(() => [
|
|
508
|
+
w(s(vt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
540
509
|
]),
|
|
541
510
|
_: 1
|
|
542
511
|
}, 8, ["title"])
|
|
@@ -544,39 +513,39 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
544
513
|
key: "0"
|
|
545
514
|
} : void 0
|
|
546
515
|
]), 1040, ["name", "class"]))), 128)),
|
|
547
|
-
|
|
548
|
-
|
|
516
|
+
C("section", Mt, [
|
|
517
|
+
w(c, {
|
|
549
518
|
type: "primary",
|
|
550
|
-
onClick:
|
|
519
|
+
onClick: D,
|
|
551
520
|
class: "hb_list_page_button"
|
|
552
521
|
}, {
|
|
553
|
-
icon:
|
|
554
|
-
|
|
522
|
+
icon: n(() => [
|
|
523
|
+
w(s(Be))
|
|
555
524
|
]),
|
|
556
|
-
default:
|
|
557
|
-
|
|
525
|
+
default: n(() => [
|
|
526
|
+
H(" " + _(o.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
558
527
|
]),
|
|
559
528
|
_: 1
|
|
560
529
|
}),
|
|
561
|
-
|
|
530
|
+
w(c, {
|
|
562
531
|
type: "link",
|
|
563
|
-
onClick:
|
|
532
|
+
onClick: x
|
|
564
533
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
|
|
534
|
+
default: n(() => [
|
|
535
|
+
H(_(o.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
567
536
|
]),
|
|
568
537
|
_: 1
|
|
569
538
|
}),
|
|
570
|
-
e.needFilter ? (a(),
|
|
539
|
+
e.needFilter ? (a(), O(L, {
|
|
571
540
|
key: 0,
|
|
572
|
-
title:
|
|
541
|
+
title: o.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
573
542
|
}, {
|
|
574
|
-
default:
|
|
575
|
-
|
|
543
|
+
default: n(() => [
|
|
544
|
+
C("span", {
|
|
576
545
|
class: "hb-lib-form-svg",
|
|
577
|
-
onClick:
|
|
546
|
+
onClick: f
|
|
578
547
|
}, [...l[0] || (l[0] = [
|
|
579
|
-
|
|
548
|
+
C("svg", {
|
|
580
549
|
t: "1757915025410",
|
|
581
550
|
class: "icon",
|
|
582
551
|
viewBox: "0 0 1024 1024",
|
|
@@ -586,7 +555,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
586
555
|
width: "200",
|
|
587
556
|
height: "200"
|
|
588
557
|
}, [
|
|
589
|
-
|
|
558
|
+
C("path", {
|
|
590
559
|
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
560
|
fill: "#ff5000",
|
|
592
561
|
"p-id": "16347"
|
|
@@ -595,74 +564,75 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
595
564
|
])])
|
|
596
565
|
]),
|
|
597
566
|
_: 1
|
|
598
|
-
}, 8, ["title"])) :
|
|
599
|
-
Y(
|
|
567
|
+
}, 8, ["title"])) : B("", !0),
|
|
568
|
+
Y(o.$slots, "formBtns", {}, void 0, !0)
|
|
600
569
|
])
|
|
601
570
|
]),
|
|
602
571
|
_: 3
|
|
603
572
|
}, 16, ["model", "class"]),
|
|
604
|
-
e.needFooter ? (a(),
|
|
573
|
+
e.needFooter ? (a(), S("div", {
|
|
605
574
|
key: 0,
|
|
606
|
-
class: V(
|
|
575
|
+
class: V(s(m).e("footer"))
|
|
607
576
|
}, [
|
|
608
|
-
|
|
609
|
-
class: V(
|
|
577
|
+
C("div", {
|
|
578
|
+
class: V(s(m).e("footer__left"))
|
|
610
579
|
}, [
|
|
611
|
-
Y(
|
|
580
|
+
Y(o.$slots, "form-footer-left", {}, void 0, !0)
|
|
612
581
|
], 2),
|
|
613
|
-
|
|
614
|
-
class: V(
|
|
582
|
+
C("div", {
|
|
583
|
+
class: V(s(m).e("footer__right"))
|
|
615
584
|
}, [
|
|
616
|
-
|
|
585
|
+
u.value == "show" ? Y(o.$slots, "form-footer-right", {
|
|
617
586
|
key: 0,
|
|
618
|
-
formRef:
|
|
587
|
+
formRef: h.value
|
|
619
588
|
}, () => [
|
|
620
|
-
|
|
589
|
+
w(s(be), {
|
|
621
590
|
type: "primary",
|
|
622
|
-
onClick:
|
|
591
|
+
onClick: x
|
|
623
592
|
}, {
|
|
624
|
-
default:
|
|
625
|
-
|
|
593
|
+
default: n(() => [
|
|
594
|
+
H(_(o.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
626
595
|
]),
|
|
627
596
|
_: 1
|
|
628
597
|
}),
|
|
629
|
-
|
|
598
|
+
w(s(be), {
|
|
630
599
|
type: "primary",
|
|
631
|
-
onClick:
|
|
600
|
+
onClick: D
|
|
632
601
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
|
|
602
|
+
default: n(() => [
|
|
603
|
+
H(_(o.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
635
604
|
]),
|
|
636
605
|
_: 1
|
|
637
606
|
})
|
|
638
|
-
], !0) :
|
|
639
|
-
|
|
607
|
+
], !0) : B("", !0),
|
|
608
|
+
w(s(be), {
|
|
640
609
|
type: "primary",
|
|
641
|
-
onClick:
|
|
610
|
+
onClick: v
|
|
642
611
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
|
|
612
|
+
default: n(() => [
|
|
613
|
+
H(_(u.value == "show" ? `${o.$t("hbLibComp.hbListPageAct.close")}` : `${o.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
645
614
|
]),
|
|
646
615
|
_: 1
|
|
647
616
|
})
|
|
648
617
|
], 2)
|
|
649
|
-
], 2)) :
|
|
618
|
+
], 2)) : B("", !0)
|
|
650
619
|
], 2), [
|
|
651
|
-
[
|
|
620
|
+
[at, e.isFormExpanded]
|
|
652
621
|
])
|
|
653
622
|
]),
|
|
654
623
|
_: 3
|
|
655
624
|
}),
|
|
656
|
-
|
|
625
|
+
w(R, {
|
|
657
626
|
list: t.value,
|
|
658
627
|
ref_key: "HbSfCmRef",
|
|
659
|
-
ref:
|
|
660
|
-
onConfirm:
|
|
661
|
-
|
|
628
|
+
ref: U,
|
|
629
|
+
onConfirm: g,
|
|
630
|
+
saveKey: i.value
|
|
631
|
+
}, null, 8, ["list", "saveKey"])
|
|
662
632
|
], 64);
|
|
663
633
|
};
|
|
664
634
|
}
|
|
665
|
-
}),
|
|
635
|
+
}), Dt = /* @__PURE__ */ le(Ht, [["__scopeId", "data-v-161b8240"]]), At = te(Dt), Ot = { class: "hb-lib-list-page-act-box" }, Bt = { class: "hb-lib-list-page-breadcrumb" }, zt = { class: "hb-lib-list-page-act" }, Rt = {
|
|
666
636
|
key: 0,
|
|
667
637
|
t: "1757915338760",
|
|
668
638
|
class: "icon",
|
|
@@ -672,7 +642,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
672
642
|
"p-id": "22885",
|
|
673
643
|
width: "200",
|
|
674
644
|
height: "200"
|
|
675
|
-
},
|
|
645
|
+
}, Pt = {
|
|
676
646
|
key: 1,
|
|
677
647
|
t: "1757915360496",
|
|
678
648
|
class: "icon",
|
|
@@ -682,56 +652,56 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
682
652
|
"p-id": "23904",
|
|
683
653
|
width: "200",
|
|
684
654
|
height: "200"
|
|
685
|
-
},
|
|
655
|
+
}, Nt = /* @__PURE__ */ ee({
|
|
686
656
|
name: "HbLibListPageAct",
|
|
687
657
|
__name: "HbListPageAct",
|
|
688
658
|
props: {
|
|
689
659
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
690
660
|
},
|
|
691
661
|
setup(e) {
|
|
692
|
-
const
|
|
693
|
-
const
|
|
694
|
-
let
|
|
695
|
-
if (
|
|
696
|
-
let
|
|
697
|
-
|
|
662
|
+
const b = Oe("HB_LIST_PAGE_CONTAINER"), { isFullscreen: d, toggle: p } = Lt(b.PageContainerRef), y = z(""), m = () => {
|
|
663
|
+
const r = lt();
|
|
664
|
+
let u = localStorage.getItem("BreadCrumb") || "[]", t = r?.path;
|
|
665
|
+
if (u !== "[]") {
|
|
666
|
+
let i = JSON.parse(u).find((h) => h.value === t);
|
|
667
|
+
i && (y.value = i.label.replace(/-/g, " / "));
|
|
698
668
|
}
|
|
699
669
|
};
|
|
700
|
-
return
|
|
670
|
+
return Ce(() => {
|
|
701
671
|
m();
|
|
702
|
-
}), (
|
|
703
|
-
const t =
|
|
704
|
-
return a(),
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
title:
|
|
672
|
+
}), (r, u) => {
|
|
673
|
+
const t = P("a-tooltip");
|
|
674
|
+
return a(), S("section", Ot, [
|
|
675
|
+
C("aside", Bt, _(y.value), 1),
|
|
676
|
+
C("aside", zt, [
|
|
677
|
+
w(t, {
|
|
678
|
+
title: s(d) ? `${r.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${r.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
709
679
|
placement: "leftTop"
|
|
710
680
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
|
|
681
|
+
default: n(() => [
|
|
682
|
+
C("span", {
|
|
713
683
|
class: "hb-lib-list-page-act-svg",
|
|
714
|
-
onClick:
|
|
715
|
-
(...
|
|
684
|
+
onClick: u[0] || (u[0] = //@ts-ignore
|
|
685
|
+
(...i) => s(p) && s(p)(...i))
|
|
716
686
|
}, [
|
|
717
|
-
|
|
718
|
-
|
|
687
|
+
s(d) ? (a(), S("svg", Pt, [...u[2] || (u[2] = [
|
|
688
|
+
C("path", {
|
|
719
689
|
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
690
|
fill: "#ff5000",
|
|
721
691
|
"p-id": "23905"
|
|
722
692
|
}, null, -1),
|
|
723
|
-
|
|
693
|
+
C("path", {
|
|
724
694
|
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
695
|
fill: "#ff5000",
|
|
726
696
|
"p-id": "23906"
|
|
727
697
|
}, null, -1),
|
|
728
|
-
|
|
698
|
+
C("path", {
|
|
729
699
|
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
700
|
fill: "#ff5000",
|
|
731
701
|
"p-id": "23907"
|
|
732
702
|
}, null, -1)
|
|
733
|
-
])])) : (a(),
|
|
734
|
-
|
|
703
|
+
])])) : (a(), S("svg", Rt, [...u[1] || (u[1] = [
|
|
704
|
+
C("path", {
|
|
735
705
|
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
706
|
fill: "#ff5000",
|
|
737
707
|
"p-id": "22886"
|
|
@@ -741,12 +711,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
741
711
|
]),
|
|
742
712
|
_: 1
|
|
743
713
|
}, 8, ["title"]),
|
|
744
|
-
Y(
|
|
714
|
+
Y(r.$slots, "listAct", {}, void 0, !0)
|
|
745
715
|
])
|
|
746
716
|
]);
|
|
747
717
|
};
|
|
748
718
|
}
|
|
749
|
-
}),
|
|
719
|
+
}), Ut = /* @__PURE__ */ le(Nt, [["__scopeId", "data-v-a7ddfc50"]]), Vt = te(Ut), Et = { class: "hb-lib-list-btns-box" }, Yt = { class: "hb-lib-list-btns-left" }, jt = { class: "hb-lib-list-btns-right" }, qt = /* @__PURE__ */ ee({
|
|
750
720
|
name: "HbLibListBtnsAct",
|
|
751
721
|
__name: "HbListBtns",
|
|
752
722
|
props: {
|
|
@@ -754,30 +724,30 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
754
724
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
755
725
|
},
|
|
756
726
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
757
|
-
setup(e, { emit:
|
|
758
|
-
const
|
|
759
|
-
|
|
727
|
+
setup(e, { emit: b }) {
|
|
728
|
+
const d = b, p = z(!0), y = () => {
|
|
729
|
+
p.value = !p.value, d("handleOpenOrClose", p.value);
|
|
760
730
|
}, m = () => {
|
|
761
|
-
|
|
731
|
+
d("handleReload");
|
|
762
732
|
};
|
|
763
|
-
return
|
|
764
|
-
}), (
|
|
765
|
-
const t =
|
|
766
|
-
return a(),
|
|
767
|
-
|
|
768
|
-
Y(
|
|
733
|
+
return Ce(() => {
|
|
734
|
+
}), (r, u) => {
|
|
735
|
+
const t = P("a-tooltip");
|
|
736
|
+
return a(), S("section", Et, [
|
|
737
|
+
C("aside", Yt, [
|
|
738
|
+
Y(r.$slots, "btnsLeft", {}, void 0, !0)
|
|
769
739
|
]),
|
|
770
|
-
|
|
771
|
-
e.needReload ? (a(),
|
|
740
|
+
C("aside", jt, [
|
|
741
|
+
e.needReload ? (a(), O(t, {
|
|
772
742
|
key: 0,
|
|
773
|
-
title:
|
|
743
|
+
title: r.$t("hbLibComp.hbListBtnsAct.reload")
|
|
774
744
|
}, {
|
|
775
|
-
default:
|
|
776
|
-
|
|
745
|
+
default: n(() => [
|
|
746
|
+
C("span", {
|
|
777
747
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
778
748
|
onClick: m
|
|
779
|
-
}, [...
|
|
780
|
-
|
|
749
|
+
}, [...u[0] || (u[0] = [
|
|
750
|
+
C("svg", {
|
|
781
751
|
t: "1759041224819",
|
|
782
752
|
class: "icon",
|
|
783
753
|
viewBox: "0 0 1024 1024",
|
|
@@ -787,7 +757,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
787
757
|
width: "200",
|
|
788
758
|
height: "200"
|
|
789
759
|
}, [
|
|
790
|
-
|
|
760
|
+
C("path", {
|
|
791
761
|
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
762
|
fill: "#ff5000",
|
|
793
763
|
"p-id": "4203"
|
|
@@ -796,162 +766,162 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
796
766
|
])])
|
|
797
767
|
]),
|
|
798
768
|
_: 1
|
|
799
|
-
}, 8, ["title"])) :
|
|
800
|
-
e.needOpenOrClose ? (a(),
|
|
769
|
+
}, 8, ["title"])) : B("", !0),
|
|
770
|
+
e.needOpenOrClose ? (a(), O(t, {
|
|
801
771
|
key: 1,
|
|
802
|
-
title:
|
|
772
|
+
title: p.value ? `${r.$t("hbLibComp.hbListBtnsAct.close")}` : `${r.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
803
773
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
|
|
774
|
+
default: n(() => [
|
|
775
|
+
C("span", {
|
|
806
776
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
807
|
-
onClick:
|
|
777
|
+
onClick: y
|
|
808
778
|
}, [
|
|
809
|
-
|
|
779
|
+
p.value ? (a(), O(s(gt), {
|
|
810
780
|
key: 0,
|
|
811
781
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
812
|
-
})) : (a(),
|
|
782
|
+
})) : (a(), O(s(yt), {
|
|
813
783
|
key: 1,
|
|
814
784
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
815
785
|
}))
|
|
816
786
|
])
|
|
817
787
|
]),
|
|
818
788
|
_: 1
|
|
819
|
-
}, 8, ["title"])) :
|
|
820
|
-
Y(
|
|
789
|
+
}, 8, ["title"])) : B("", !0),
|
|
790
|
+
Y(r.$slots, "btnsRight", {}, void 0, !0)
|
|
821
791
|
])
|
|
822
792
|
]);
|
|
823
793
|
};
|
|
824
794
|
}
|
|
825
|
-
}),
|
|
826
|
-
const { formRef:
|
|
827
|
-
let m = null,
|
|
828
|
-
const
|
|
829
|
-
|
|
795
|
+
}), Kt = /* @__PURE__ */ le(qt, [["__scopeId", "data-v-da13672b"]]), Wt = te(Kt), Jt = (e = {}) => {
|
|
796
|
+
const { formRef: b, offsetBottom: d = 50, minHeight: p = 300 } = e, y = z(0);
|
|
797
|
+
let m = null, r = null, u = null, t = null, i = null;
|
|
798
|
+
const h = () => {
|
|
799
|
+
i && clearTimeout(i), i = setTimeout(() => {
|
|
830
800
|
requestAnimationFrame(() => {
|
|
831
|
-
|
|
832
|
-
const
|
|
833
|
-
if (
|
|
834
|
-
const I =
|
|
835
|
-
let
|
|
836
|
-
|
|
801
|
+
me(() => {
|
|
802
|
+
const T = document.querySelector(".ant-table"), A = document.querySelector(".ant-pagination");
|
|
803
|
+
if (T) {
|
|
804
|
+
const I = T.getBoundingClientRect().top, q = window.innerHeight, l = (A ? A.offsetHeight + 20 : 40) + d;
|
|
805
|
+
let c = q - I - l;
|
|
806
|
+
c < p && (c = p), y.value = c;
|
|
837
807
|
}
|
|
838
808
|
});
|
|
839
809
|
});
|
|
840
810
|
}, 100);
|
|
841
|
-
},
|
|
842
|
-
const
|
|
843
|
-
if (
|
|
844
|
-
const
|
|
845
|
-
|
|
811
|
+
}, D = () => {
|
|
812
|
+
const T = document.querySelector(".ant-pagination");
|
|
813
|
+
if (T) {
|
|
814
|
+
const A = new MutationObserver(() => {
|
|
815
|
+
h();
|
|
846
816
|
});
|
|
847
|
-
return
|
|
817
|
+
return A.observe(T, {
|
|
848
818
|
childList: !0,
|
|
849
819
|
subtree: !0,
|
|
850
820
|
attributes: !0,
|
|
851
821
|
attributeFilter: ["style", "class"]
|
|
852
|
-
}),
|
|
822
|
+
}), A;
|
|
853
823
|
}
|
|
854
824
|
return null;
|
|
855
|
-
},
|
|
856
|
-
const
|
|
857
|
-
|
|
825
|
+
}, x = () => {
|
|
826
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
827
|
+
T && (m = new ResizeObserver(() => {
|
|
858
828
|
document.querySelectorAll(".ant-tooltip").forEach((I) => {
|
|
859
829
|
I.style.display = "none";
|
|
860
|
-
}),
|
|
861
|
-
}), m.observe(
|
|
862
|
-
},
|
|
863
|
-
const
|
|
864
|
-
|
|
830
|
+
}), h();
|
|
831
|
+
}), m.observe(T));
|
|
832
|
+
}, U = () => {
|
|
833
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
834
|
+
T && (u = new MutationObserver(() => {
|
|
865
835
|
setTimeout(() => {
|
|
866
|
-
|
|
836
|
+
h();
|
|
867
837
|
}, 100);
|
|
868
|
-
}),
|
|
838
|
+
}), u.observe(T, {
|
|
869
839
|
childList: !0,
|
|
870
840
|
subtree: !0,
|
|
871
841
|
attributes: !0,
|
|
872
842
|
attributeFilter: ["style", "class"]
|
|
873
843
|
}));
|
|
874
|
-
},
|
|
844
|
+
}, f = () => {
|
|
875
845
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
876
|
-
|
|
846
|
+
h();
|
|
877
847
|
}, 100);
|
|
878
848
|
}, g = () => {
|
|
879
|
-
window.addEventListener("resize",
|
|
880
|
-
|
|
849
|
+
window.addEventListener("resize", f), me(() => {
|
|
850
|
+
x(), U(), r = D();
|
|
881
851
|
});
|
|
882
|
-
},
|
|
883
|
-
window.removeEventListener("resize",
|
|
852
|
+
}, v = () => {
|
|
853
|
+
window.removeEventListener("resize", f), m && m.disconnect(), u && u.disconnect(), r && r.disconnect(), t && clearTimeout(t), i && clearTimeout(i);
|
|
884
854
|
};
|
|
885
|
-
return
|
|
886
|
-
() =>
|
|
855
|
+
return b && ne(
|
|
856
|
+
() => b,
|
|
887
857
|
() => {
|
|
888
858
|
setTimeout(() => {
|
|
889
|
-
|
|
859
|
+
h();
|
|
890
860
|
}, 200);
|
|
891
861
|
},
|
|
892
862
|
{ deep: !0 }
|
|
893
|
-
),
|
|
894
|
-
|
|
895
|
-
}),
|
|
896
|
-
|
|
863
|
+
), Ce(() => {
|
|
864
|
+
h(), g();
|
|
865
|
+
}), nt(() => {
|
|
866
|
+
v();
|
|
897
867
|
}), {
|
|
898
|
-
tableHeight:
|
|
899
|
-
calTableHeight:
|
|
868
|
+
tableHeight: y,
|
|
869
|
+
calTableHeight: h
|
|
900
870
|
};
|
|
901
|
-
},
|
|
871
|
+
}, Gt = /* @__PURE__ */ ee({
|
|
902
872
|
name: "HbLibListPageContainer",
|
|
903
873
|
__name: "HbListPageContainer",
|
|
904
874
|
props: {
|
|
905
875
|
tableHeight: { default: 400 },
|
|
906
876
|
tabelData: { default: () => [] },
|
|
907
|
-
offsetBottom: {},
|
|
877
|
+
offsetBottom: { default: 20 },
|
|
908
878
|
minHeight: {}
|
|
909
879
|
},
|
|
910
880
|
setup(e) {
|
|
911
|
-
const
|
|
912
|
-
offsetBottom:
|
|
881
|
+
const b = e, d = st("PageContainerRef"), { calTableHeight: p, tableHeight: y } = Jt({
|
|
882
|
+
offsetBottom: b.offsetBottom || 20,
|
|
913
883
|
// 底部预留空间
|
|
914
|
-
minHeight:
|
|
884
|
+
minHeight: b.minHeight || 300
|
|
915
885
|
// table最小高度 请勿随便修改!!
|
|
916
|
-
}), m =
|
|
917
|
-
return
|
|
918
|
-
PageContainerRef:
|
|
886
|
+
}), m = E(() => y.value);
|
|
887
|
+
return it("HB_LIST_PAGE_CONTAINER", {
|
|
888
|
+
PageContainerRef: d,
|
|
919
889
|
// 通过函数访问,
|
|
920
|
-
tableHeight:
|
|
921
|
-
calTableHeight:
|
|
922
|
-
}), (
|
|
890
|
+
tableHeight: y,
|
|
891
|
+
calTableHeight: p
|
|
892
|
+
}), (r, u) => (a(), S("section", {
|
|
923
893
|
class: "hb-lib-list-page-container",
|
|
924
894
|
ref_key: "PageContainerRef",
|
|
925
|
-
ref:
|
|
895
|
+
ref: d
|
|
926
896
|
}, [
|
|
927
|
-
Y(
|
|
928
|
-
|
|
897
|
+
Y(r.$slots, "header"),
|
|
898
|
+
C("section", {
|
|
929
899
|
class: "list-page-box",
|
|
930
|
-
style:
|
|
931
|
-
"--hb-list-table-height": m.value -
|
|
932
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" : m.value -
|
|
900
|
+
style: _e({
|
|
901
|
+
"--hb-list-table-height": m.value - b.offsetBottom + "px",
|
|
902
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : m.value - b.offsetBottom + "px"
|
|
933
903
|
})
|
|
934
904
|
}, [
|
|
935
|
-
Y(
|
|
905
|
+
Y(r.$slots, "default")
|
|
936
906
|
], 4)
|
|
937
907
|
], 512));
|
|
938
908
|
}
|
|
939
|
-
}),
|
|
909
|
+
}), Qt = te(Gt), Zt = { style: { "font-weight": "500" } }, Xt = {
|
|
940
910
|
key: 0,
|
|
941
911
|
class: "hb-lib-search-tag__description"
|
|
942
|
-
},
|
|
912
|
+
}, el = { class: "hb-lib-selector-dropdown" }, tl = { class: "hb-lib-selector-search" }, ll = { class: "hb-lib-selector-list" }, ol = ["onClick"], al = { class: "hb-lib-option-content" }, nl = { class: "hb-lib-option-label" }, sl = {
|
|
943
913
|
key: 0,
|
|
944
914
|
class: "hb-lib-selector-empty"
|
|
945
|
-
},
|
|
915
|
+
}, il = {
|
|
946
916
|
key: 1,
|
|
947
917
|
class: "hb-lib-selector-footer"
|
|
948
|
-
},
|
|
918
|
+
}, rl = { class: "hb-lib-footer-buttons" }, cl = {
|
|
949
919
|
key: 2,
|
|
950
920
|
class: "hb-lib-selector-footer"
|
|
951
|
-
},
|
|
921
|
+
}, dl = { class: "hb-lib-footer-buttons" }, ul = /* @__PURE__ */ ee({
|
|
952
922
|
name: "HbLibListMultiSelect",
|
|
953
923
|
__name: "HbListMultiSelect",
|
|
954
|
-
props: /* @__PURE__ */
|
|
924
|
+
props: /* @__PURE__ */ xe({
|
|
955
925
|
placeholder: { default: "点击选择" },
|
|
956
926
|
searchPlaceholder: { default: "搜索选项" },
|
|
957
927
|
width: { default: 600 },
|
|
@@ -967,71 +937,71 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
967
937
|
value: {},
|
|
968
938
|
valueModifiers: {}
|
|
969
939
|
}),
|
|
970
|
-
emits: /* @__PURE__ */
|
|
971
|
-
setup(e, { emit:
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
974
|
-
const
|
|
975
|
-
return
|
|
976
|
-
}),
|
|
977
|
-
if (
|
|
978
|
-
const
|
|
979
|
-
return
|
|
940
|
+
emits: /* @__PURE__ */ xe(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
941
|
+
setup(e, { emit: b }) {
|
|
942
|
+
const d = e, p = b, y = tt(e, "value"), m = z(!1), r = z(""), u = z([]), t = z(), i = E(() => {
|
|
943
|
+
if (d.remoteSearch || !r.value) return d.options;
|
|
944
|
+
const o = r.value.toLowerCase();
|
|
945
|
+
return d.options.filter((l) => l.label.toLowerCase().includes(o) || l.description?.toLowerCase().includes(o));
|
|
946
|
+
}), h = E(() => d.prefix ? `${d.prefix.length * 14 + 8}px` : "0px"), D = E(() => i.value.length === 0 ? !1 : i.value.every((o) => u.value.includes(o.value))), x = E(() => {
|
|
947
|
+
if (i.value.length === 0) return !1;
|
|
948
|
+
const o = i.value.filter((l) => u.value.includes(l.value)).length;
|
|
949
|
+
return o > 0 && o < i.value.length;
|
|
980
950
|
});
|
|
981
|
-
|
|
982
|
-
() =>
|
|
983
|
-
(
|
|
984
|
-
|
|
951
|
+
ne(
|
|
952
|
+
() => y.value,
|
|
953
|
+
(o) => {
|
|
954
|
+
o ? u.value = Array.isArray(o) ? [...o] : [o] : u.value = [];
|
|
985
955
|
},
|
|
986
956
|
{ immediate: !0 }
|
|
987
|
-
),
|
|
988
|
-
() =>
|
|
989
|
-
(
|
|
990
|
-
|
|
957
|
+
), ne(
|
|
958
|
+
() => d.searchValue,
|
|
959
|
+
(o) => {
|
|
960
|
+
d.remoteSearch && o !== void 0 && (r.value = o);
|
|
991
961
|
},
|
|
992
962
|
{ immediate: !0 }
|
|
993
963
|
);
|
|
994
|
-
const
|
|
995
|
-
|
|
964
|
+
const U = (o) => {
|
|
965
|
+
o && (m.value = o, f.value = [...u.value], r.value = "", setTimeout(() => {
|
|
996
966
|
if (t.value) {
|
|
997
|
-
const
|
|
998
|
-
|
|
967
|
+
const l = t.value.input || t.value.$el?.querySelector("input");
|
|
968
|
+
l && l.focus();
|
|
999
969
|
}
|
|
1000
970
|
}, 100));
|
|
1001
|
-
},
|
|
1002
|
-
|
|
1003
|
-
},
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1006
|
-
},
|
|
1007
|
-
const
|
|
1008
|
-
|
|
1009
|
-
}, 300), I = (
|
|
1010
|
-
if (
|
|
1011
|
-
const
|
|
1012
|
-
|
|
971
|
+
}, f = z([]), g = () => {
|
|
972
|
+
u.value = [...f.value], m.value = !1, p("cancel");
|
|
973
|
+
}, v = z([]), T = () => {
|
|
974
|
+
const o = d.multiple ? u.value : u.value[0] || "", l = d.options.filter((c) => u.value.includes(c.value));
|
|
975
|
+
v.value = l, console.log(o, l), f.value = [...u.value], y.value = o, p("update:value", o), p("change", o, l), p("confirm", o, l), m.value = !1;
|
|
976
|
+
}, A = kt((o) => {
|
|
977
|
+
const l = o !== void 0 ? o : r.value;
|
|
978
|
+
d.remoteSearch && (p("search", l), p("update:searchValue", l));
|
|
979
|
+
}, 300), I = (o) => {
|
|
980
|
+
if (d.multiple) {
|
|
981
|
+
const l = new Set(u.value);
|
|
982
|
+
l.has(o.value) ? l.delete(o.value) : l.add(o.value), u.value = Array.from(l);
|
|
1013
983
|
} else
|
|
1014
|
-
|
|
1015
|
-
},
|
|
1016
|
-
if (
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}),
|
|
984
|
+
u.value = [o.value], T();
|
|
985
|
+
}, q = (o) => {
|
|
986
|
+
if (o.target.checked) {
|
|
987
|
+
const c = new Set(u.value);
|
|
988
|
+
i.value.forEach((L) => {
|
|
989
|
+
c.add(L.value);
|
|
990
|
+
}), u.value = Array.from(c);
|
|
1021
991
|
} else {
|
|
1022
|
-
const
|
|
1023
|
-
|
|
992
|
+
const c = new Set(i.value.map((L) => L.value));
|
|
993
|
+
u.value = u.value.filter((L) => !c.has(L));
|
|
1024
994
|
}
|
|
1025
995
|
};
|
|
1026
|
-
return (
|
|
1027
|
-
const
|
|
1028
|
-
return a(),
|
|
996
|
+
return (o, l) => {
|
|
997
|
+
const c = P("a-tag"), L = P("a-input"), R = P("a-checkbox"), k = P("a-radio"), se = P("a-button"), N = P("a-select");
|
|
998
|
+
return a(), S("div", X({
|
|
1029
999
|
class: "hb-lib-selector-wrapper",
|
|
1030
|
-
style: { "--prefix-width":
|
|
1031
|
-
},
|
|
1032
|
-
|
|
1033
|
-
value:
|
|
1034
|
-
"onUpdate:value":
|
|
1000
|
+
style: { "--prefix-width": h.value }
|
|
1001
|
+
}, o.$attrs), [
|
|
1002
|
+
w(N, {
|
|
1003
|
+
value: y.value,
|
|
1004
|
+
"onUpdate:value": l[5] || (l[5] = (K) => y.value = K),
|
|
1035
1005
|
mode: e.multiple ? "multiple" : void 0,
|
|
1036
1006
|
placeholder: e.placeholder,
|
|
1037
1007
|
"show-search": !0,
|
|
@@ -1039,111 +1009,111 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1039
1009
|
open: m.value,
|
|
1040
1010
|
allowClear: "",
|
|
1041
1011
|
maxTagCount: e.maxTagCount,
|
|
1042
|
-
options:
|
|
1043
|
-
onDropdownVisibleChange:
|
|
1044
|
-
onSearch:
|
|
1012
|
+
options: i.value,
|
|
1013
|
+
onDropdownVisibleChange: U,
|
|
1014
|
+
onSearch: s(A),
|
|
1045
1015
|
"max-tag-text-length": e.tagTextLength,
|
|
1046
1016
|
class: V({ "has-prefix": e.prefix }),
|
|
1047
1017
|
"data-prefix": e.prefix,
|
|
1048
1018
|
style: { width: "100%" }
|
|
1049
1019
|
}, {
|
|
1050
|
-
tagRender:
|
|
1051
|
-
|
|
1020
|
+
tagRender: n(({ value: K, label: W, closable: oe, option: ce }) => [
|
|
1021
|
+
w(c, {
|
|
1052
1022
|
class: "hb-lib-search-tag",
|
|
1053
|
-
onClick:
|
|
1023
|
+
onClick: l[0] || (l[0] = () => U(!0))
|
|
1054
1024
|
}, {
|
|
1055
|
-
default:
|
|
1056
|
-
|
|
1057
|
-
|
|
1025
|
+
default: n(() => [
|
|
1026
|
+
C("span", Zt, _(W), 1),
|
|
1027
|
+
ce?.description ? (a(), S("span", Xt, " (" + _(ce.description) + ") ", 1)) : B("", !0)
|
|
1058
1028
|
]),
|
|
1059
1029
|
_: 2
|
|
1060
1030
|
}, 1024)
|
|
1061
1031
|
]),
|
|
1062
|
-
dropdownRender:
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1032
|
+
dropdownRender: n(({ menuNode: K }) => [
|
|
1033
|
+
C("div", el, [
|
|
1034
|
+
C("div", tl, [
|
|
1035
|
+
w(L, {
|
|
1066
1036
|
ref_key: "searchInputRef",
|
|
1067
1037
|
ref: t,
|
|
1068
1038
|
class: "hb-lib-selector-search-input",
|
|
1069
|
-
value:
|
|
1070
|
-
"onUpdate:value":
|
|
1039
|
+
value: r.value,
|
|
1040
|
+
"onUpdate:value": l[1] || (l[1] = (W) => r.value = W),
|
|
1071
1041
|
placeholder: "请输入关键词搜索",
|
|
1072
1042
|
"allow-clear": "",
|
|
1073
|
-
onInput:
|
|
1043
|
+
onInput: l[2] || (l[2] = (W) => s(A)(W.target.value))
|
|
1074
1044
|
}, {
|
|
1075
|
-
prefix:
|
|
1076
|
-
|
|
1045
|
+
prefix: n(() => [
|
|
1046
|
+
w(s(Be))
|
|
1077
1047
|
]),
|
|
1078
1048
|
_: 1
|
|
1079
1049
|
}, 8, ["value"])
|
|
1080
1050
|
]),
|
|
1081
|
-
|
|
1082
|
-
(a(!0),
|
|
1051
|
+
C("div", ll, [
|
|
1052
|
+
(a(!0), S(j, null, ae(i.value, (W) => (a(), S("div", {
|
|
1083
1053
|
key: W.value,
|
|
1084
|
-
class: V(["hb-lib-selector-option", { selected:
|
|
1054
|
+
class: V(["hb-lib-selector-option", { selected: u.value.includes(W.value) }]),
|
|
1085
1055
|
onClick: () => I(W)
|
|
1086
1056
|
}, [
|
|
1087
|
-
e.multiple ? (a(),
|
|
1057
|
+
e.multiple ? (a(), O(R, {
|
|
1088
1058
|
key: 0,
|
|
1089
|
-
checked:
|
|
1059
|
+
checked: u.value.includes(W.value),
|
|
1090
1060
|
onChange: () => I(W),
|
|
1091
|
-
onClick:
|
|
1061
|
+
onClick: l[3] || (l[3] = $e(() => {
|
|
1092
1062
|
}, ["stop"]))
|
|
1093
|
-
}, null, 8, ["checked", "onChange"])) : (a(),
|
|
1063
|
+
}, null, 8, ["checked", "onChange"])) : (a(), O(k, {
|
|
1094
1064
|
key: 1,
|
|
1095
|
-
checked:
|
|
1065
|
+
checked: u.value.includes(W.value),
|
|
1096
1066
|
onChange: () => I(W),
|
|
1097
|
-
onClick:
|
|
1067
|
+
onClick: l[4] || (l[4] = $e(() => {
|
|
1098
1068
|
}, ["stop"]))
|
|
1099
1069
|
}, null, 8, ["checked", "onChange"])),
|
|
1100
|
-
|
|
1101
|
-
|
|
1070
|
+
C("div", al, [
|
|
1071
|
+
C("div", nl, _(W.label), 1)
|
|
1102
1072
|
])
|
|
1103
|
-
], 10,
|
|
1073
|
+
], 10, ol))), 128))
|
|
1104
1074
|
]),
|
|
1105
|
-
|
|
1106
|
-
e.multiple ? (a(),
|
|
1107
|
-
|
|
1108
|
-
checked:
|
|
1109
|
-
indeterminate:
|
|
1110
|
-
onChange:
|
|
1075
|
+
i.value.length === 0 ? (a(), S("div", sl, _(o.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : B("", !0),
|
|
1076
|
+
e.multiple ? (a(), S("div", il, [
|
|
1077
|
+
w(R, {
|
|
1078
|
+
checked: D.value,
|
|
1079
|
+
indeterminate: x.value,
|
|
1080
|
+
onChange: q
|
|
1111
1081
|
}, {
|
|
1112
|
-
default:
|
|
1113
|
-
|
|
1082
|
+
default: n(() => [
|
|
1083
|
+
H(_(o.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1114
1084
|
]),
|
|
1115
1085
|
_: 1
|
|
1116
1086
|
}, 8, ["checked", "indeterminate"]),
|
|
1117
|
-
|
|
1118
|
-
|
|
1087
|
+
C("div", rl, [
|
|
1088
|
+
w(se, {
|
|
1119
1089
|
size: "small",
|
|
1120
1090
|
onClick: g
|
|
1121
1091
|
}, {
|
|
1122
|
-
default:
|
|
1123
|
-
|
|
1092
|
+
default: n(() => [
|
|
1093
|
+
H(_(o.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1124
1094
|
]),
|
|
1125
1095
|
_: 1
|
|
1126
1096
|
}),
|
|
1127
|
-
|
|
1097
|
+
w(se, {
|
|
1128
1098
|
type: "primary",
|
|
1129
1099
|
size: "small",
|
|
1130
|
-
onClick:
|
|
1100
|
+
onClick: T
|
|
1131
1101
|
}, {
|
|
1132
|
-
default:
|
|
1133
|
-
|
|
1102
|
+
default: n(() => [
|
|
1103
|
+
H(_(o.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1134
1104
|
]),
|
|
1135
1105
|
_: 1
|
|
1136
1106
|
})
|
|
1137
1107
|
])
|
|
1138
|
-
])) : (a(),
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1108
|
+
])) : (a(), S("div", cl, [
|
|
1109
|
+
l[6] || (l[6] = C("div", null, null, -1)),
|
|
1110
|
+
C("div", dl, [
|
|
1111
|
+
w(se, {
|
|
1142
1112
|
size: "small",
|
|
1143
1113
|
onClick: g
|
|
1144
1114
|
}, {
|
|
1145
|
-
default:
|
|
1146
|
-
|
|
1115
|
+
default: n(() => [
|
|
1116
|
+
H(_(o.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1147
1117
|
]),
|
|
1148
1118
|
_: 1
|
|
1149
1119
|
})
|
|
@@ -1156,7 +1126,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1156
1126
|
], 16);
|
|
1157
1127
|
};
|
|
1158
1128
|
}
|
|
1159
|
-
}),
|
|
1129
|
+
}), pl = /* @__PURE__ */ le(ul, [["__scopeId", "data-v-87177371"]]), bl = te(pl), ml = { class: "hb-lib-form-item-filter-modal-search" }, fl = { class: "hb-lib-form-item-filter-modal-buttons" }, hl = { key: 0 }, vl = /* @__PURE__ */ ee({
|
|
1160
1130
|
name: "HbLibMutilpleSelectModal",
|
|
1161
1131
|
__name: "HbMutilpleSelectModal",
|
|
1162
1132
|
props: {
|
|
@@ -1169,149 +1139,149 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1169
1139
|
labelKey: { default: "label" }
|
|
1170
1140
|
},
|
|
1171
1141
|
emits: ["handleConfirm", "handleCancel"],
|
|
1172
|
-
setup(e, { expose:
|
|
1173
|
-
const
|
|
1142
|
+
setup(e, { expose: b, emit: d }) {
|
|
1143
|
+
const p = e, y = d, m = z(!1), r = z(""), u = z(), t = z(), i = z([]), h = z([]), D = z(), x = ye({
|
|
1174
1144
|
searchText: "",
|
|
1175
1145
|
searchedColumn: ""
|
|
1176
|
-
}),
|
|
1177
|
-
|
|
1178
|
-
|
|
1146
|
+
}), U = E(() => p.tableData.map((c) => (c.id = c.id || Math.random(), c))), f = E(() => p.tableColumn.map((c) => (c.customFilterDropdown && (c.onFilter = (L, R) => R[c.dataIndex].toString().toLowerCase().includes(L.toLowerCase()), c.onFilterDropdownVisibleChange = (L) => {
|
|
1147
|
+
L && setTimeout(() => {
|
|
1148
|
+
u.value?.focus();
|
|
1179
1149
|
}, 100);
|
|
1180
|
-
}), { ...
|
|
1181
|
-
let
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
},
|
|
1150
|
+
}), { ...c }))), g = () => {
|
|
1151
|
+
let c = "";
|
|
1152
|
+
h.value.forEach((L) => {
|
|
1153
|
+
c = c + L[p.labelKey] + ",";
|
|
1154
|
+
}), r.value = c.substring(0, c.length - 1), m.value = !1, y("handleConfirm", h.value);
|
|
1155
|
+
}, v = () => {
|
|
1186
1156
|
m.value = !1;
|
|
1187
|
-
},
|
|
1188
|
-
m.value = !0,
|
|
1189
|
-
const
|
|
1190
|
-
|
|
1157
|
+
}, T = () => {
|
|
1158
|
+
m.value = !0, me(() => {
|
|
1159
|
+
const c = D.value?.$el?.querySelector(".ant-table-body");
|
|
1160
|
+
c && (c.scrollTop = 0);
|
|
1191
1161
|
});
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1162
|
+
}, A = () => {
|
|
1163
|
+
i.value = [], h.value = [];
|
|
1194
1164
|
}, I = () => {
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1165
|
+
r.value = "", A();
|
|
1166
|
+
}, q = (c, L, R) => {
|
|
1167
|
+
L(), x.searchText = c[0], x.searchedColumn = R;
|
|
1168
|
+
}, o = (c, L) => {
|
|
1169
|
+
c({ confirm: !0 }), x.searchText = "", L();
|
|
1170
|
+
}, l = (c, L) => {
|
|
1171
|
+
i.value = c, h.value = L;
|
|
1202
1172
|
};
|
|
1203
|
-
return
|
|
1173
|
+
return b({
|
|
1204
1174
|
resetInputVal: I
|
|
1205
|
-
}), (
|
|
1206
|
-
const
|
|
1207
|
-
return a(),
|
|
1175
|
+
}), (c, L) => {
|
|
1176
|
+
const R = P("a-input"), k = P("a-button"), se = P("a-table"), N = P("a-modal");
|
|
1177
|
+
return a(), S("div", {
|
|
1208
1178
|
class: "hb-lib-multipleSelectModal-box",
|
|
1209
1179
|
ref_key: "hbMultipSelectModalRef",
|
|
1210
1180
|
ref: t
|
|
1211
1181
|
}, [
|
|
1212
|
-
|
|
1182
|
+
w(R, {
|
|
1213
1183
|
readonly: "",
|
|
1214
|
-
onClick:
|
|
1215
|
-
value:
|
|
1216
|
-
"onUpdate:value":
|
|
1217
|
-
placeholder:
|
|
1184
|
+
onClick: T,
|
|
1185
|
+
value: r.value,
|
|
1186
|
+
"onUpdate:value": L[0] || (L[0] = (K) => r.value = K),
|
|
1187
|
+
placeholder: c.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1218
1188
|
}, {
|
|
1219
|
-
addonAfter:
|
|
1220
|
-
|
|
1189
|
+
addonAfter: n(() => [
|
|
1190
|
+
w(s(Ct), { onClick: T })
|
|
1221
1191
|
]),
|
|
1222
1192
|
_: 1
|
|
1223
1193
|
}, 8, ["value", "placeholder"]),
|
|
1224
|
-
|
|
1194
|
+
w(N, {
|
|
1225
1195
|
visible: m.value,
|
|
1226
|
-
"onUpdate:visible":
|
|
1196
|
+
"onUpdate:visible": L[1] || (L[1] = (K) => m.value = K),
|
|
1227
1197
|
title: e.modelTitle,
|
|
1228
1198
|
width: e.modalWidth,
|
|
1229
1199
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1230
1200
|
}, {
|
|
1231
|
-
footer:
|
|
1232
|
-
|
|
1233
|
-
default:
|
|
1234
|
-
|
|
1201
|
+
footer: n(() => [
|
|
1202
|
+
w(k, { onClick: A }, {
|
|
1203
|
+
default: n(() => [
|
|
1204
|
+
H(_(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1235
1205
|
]),
|
|
1236
1206
|
_: 1
|
|
1237
1207
|
}),
|
|
1238
|
-
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1208
|
+
w(k, { onClick: v }, {
|
|
1209
|
+
default: n(() => [
|
|
1210
|
+
H(_(c.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1241
1211
|
]),
|
|
1242
1212
|
_: 1
|
|
1243
1213
|
}),
|
|
1244
|
-
|
|
1214
|
+
w(k, {
|
|
1245
1215
|
type: "primary",
|
|
1246
1216
|
onClick: g
|
|
1247
1217
|
}, {
|
|
1248
|
-
default:
|
|
1249
|
-
|
|
1218
|
+
default: n(() => [
|
|
1219
|
+
H(_(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1250
1220
|
]),
|
|
1251
1221
|
_: 1
|
|
1252
1222
|
})
|
|
1253
1223
|
]),
|
|
1254
|
-
default:
|
|
1255
|
-
|
|
1224
|
+
default: n(() => [
|
|
1225
|
+
w(se, {
|
|
1256
1226
|
ref_key: "tableRef",
|
|
1257
|
-
ref:
|
|
1258
|
-
columns:
|
|
1259
|
-
dataSource:
|
|
1260
|
-
rowSelection: { selectedRowKeys:
|
|
1261
|
-
rowKey: (
|
|
1227
|
+
ref: D,
|
|
1228
|
+
columns: f.value,
|
|
1229
|
+
dataSource: U.value,
|
|
1230
|
+
rowSelection: { selectedRowKeys: i.value, onChange: l },
|
|
1231
|
+
rowKey: (K) => K[e.tableKey],
|
|
1262
1232
|
scroll: { y: e.tableHeight }
|
|
1263
1233
|
}, {
|
|
1264
|
-
customFilterDropdown:
|
|
1265
|
-
|
|
1266
|
-
|
|
1234
|
+
customFilterDropdown: n(({ setSelectedKeys: K, selectedKeys: W, confirm: oe, clearFilters: ce, column: F }) => [
|
|
1235
|
+
C("div", ml, [
|
|
1236
|
+
w(R, {
|
|
1267
1237
|
ref_key: "searchInput",
|
|
1268
|
-
ref:
|
|
1269
|
-
placeholder: `请输入${
|
|
1238
|
+
ref: u,
|
|
1239
|
+
placeholder: `请输入${F.title}`,
|
|
1270
1240
|
value: W[0],
|
|
1271
1241
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1272
|
-
onChange: (
|
|
1273
|
-
onPressEnter: (
|
|
1242
|
+
onChange: (M) => K(M.target.value ? [M.target.value] : []),
|
|
1243
|
+
onPressEnter: (M) => q(W, oe, F.dataIndex)
|
|
1274
1244
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1275
|
-
|
|
1276
|
-
|
|
1245
|
+
C("section", fl, [
|
|
1246
|
+
w(k, {
|
|
1277
1247
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1278
1248
|
type: "ghost",
|
|
1279
|
-
onClick: (
|
|
1249
|
+
onClick: (M) => o(ce, oe)
|
|
1280
1250
|
}, {
|
|
1281
|
-
default:
|
|
1282
|
-
|
|
1251
|
+
default: n(() => [
|
|
1252
|
+
H(_(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1283
1253
|
]),
|
|
1284
1254
|
_: 1
|
|
1285
1255
|
}, 8, ["onClick"]),
|
|
1286
|
-
|
|
1256
|
+
w(k, {
|
|
1287
1257
|
type: "primary",
|
|
1288
1258
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1289
|
-
onClick: (
|
|
1259
|
+
onClick: (M) => q(W, oe, F.dataIndex)
|
|
1290
1260
|
}, {
|
|
1291
|
-
default:
|
|
1292
|
-
|
|
1261
|
+
default: n(() => [
|
|
1262
|
+
H(_(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1293
1263
|
]),
|
|
1294
1264
|
_: 1
|
|
1295
1265
|
}, 8, ["onClick"])
|
|
1296
1266
|
])
|
|
1297
1267
|
])
|
|
1298
1268
|
]),
|
|
1299
|
-
customFilterIcon:
|
|
1300
|
-
|
|
1301
|
-
style:
|
|
1269
|
+
customFilterIcon: n(({ filtered: K }) => [
|
|
1270
|
+
w(s(Be), {
|
|
1271
|
+
style: _e({ color: K ? "#108ee9" : void 0 })
|
|
1302
1272
|
}, null, 8, ["style"])
|
|
1303
1273
|
]),
|
|
1304
|
-
bodyCell:
|
|
1305
|
-
|
|
1306
|
-
(a(!0),
|
|
1307
|
-
|
|
1308
|
-
key:
|
|
1274
|
+
bodyCell: n(({ text: K, column: W }) => [
|
|
1275
|
+
x.searchText && x.searchedColumn === W.dataIndex ? (a(), S("span", hl, [
|
|
1276
|
+
(a(!0), S(j, null, ae(K.toString().split(new RegExp(`(?<=${x.searchText})|(?=${x.searchText})`, "i")), (oe, ce) => (a(), S(j, null, [
|
|
1277
|
+
oe.toLowerCase() === x.searchText.toLowerCase() ? (a(), S("mark", {
|
|
1278
|
+
key: ce,
|
|
1309
1279
|
class: "highlight"
|
|
1310
|
-
},
|
|
1311
|
-
|
|
1280
|
+
}, _(oe), 1)) : (a(), S(j, { key: 1 }, [
|
|
1281
|
+
H(_(oe), 1)
|
|
1312
1282
|
], 64))
|
|
1313
1283
|
], 64))), 256))
|
|
1314
|
-
])) :
|
|
1284
|
+
])) : B("", !0)
|
|
1315
1285
|
]),
|
|
1316
1286
|
_: 1
|
|
1317
1287
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1321,13 +1291,13 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1321
1291
|
], 512);
|
|
1322
1292
|
};
|
|
1323
1293
|
}
|
|
1324
|
-
}),
|
|
1294
|
+
}), gl = te(vl), yl = { class: "hb-lib-table-act-box" }, Cl = ["onClick"], _l = {
|
|
1325
1295
|
href: "javascript:;",
|
|
1326
1296
|
class: "hb-lib-table-main-action"
|
|
1327
|
-
},
|
|
1297
|
+
}, Ll = ["onClick"], kl = {
|
|
1328
1298
|
href: "javascript:;",
|
|
1329
1299
|
class: "hb-lib-table-more-action"
|
|
1330
|
-
},
|
|
1300
|
+
}, Sl = ["onClick"], wl = { href: "javascript:;" }, Fl = ["onClick"], Tl = { class: "hb-lib-table-confirm-modal-content" }, xl = /* @__PURE__ */ ee({
|
|
1331
1301
|
name: "HbLibTableAct",
|
|
1332
1302
|
__name: "HbTableAct",
|
|
1333
1303
|
props: {
|
|
@@ -1335,119 +1305,129 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1335
1305
|
record: {},
|
|
1336
1306
|
buttonDisplaysQuantity: {}
|
|
1337
1307
|
},
|
|
1338
|
-
setup(e, { expose:
|
|
1339
|
-
const
|
|
1340
|
-
g.handler && g.handler(
|
|
1341
|
-
},
|
|
1342
|
-
|
|
1343
|
-
},
|
|
1344
|
-
if (
|
|
1308
|
+
setup(e, { expose: b }) {
|
|
1309
|
+
const d = e, { t: p } = re(), y = z(!1), m = z(!1), r = z(null), u = E(() => d.actions.filter((g) => g.condition !== void 0 ? g.condition : !0)), t = E(() => u.value.slice(0, d.buttonDisplaysQuantity)), i = E(() => u.value.slice(d.buttonDisplaysQuantity)), h = (g) => {
|
|
1310
|
+
g.handler && g.handler(d.record);
|
|
1311
|
+
}, D = (g) => {
|
|
1312
|
+
r.value = g, y.value = !0;
|
|
1313
|
+
}, x = () => {
|
|
1314
|
+
if (r.value) {
|
|
1345
1315
|
m.value = !0;
|
|
1346
1316
|
try {
|
|
1347
|
-
|
|
1317
|
+
h(r.value), m.value = !1, y.value = !1;
|
|
1348
1318
|
} catch {
|
|
1349
1319
|
m.value = !1;
|
|
1350
1320
|
}
|
|
1351
1321
|
}
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
},
|
|
1355
|
-
title:
|
|
1356
|
-
content:
|
|
1322
|
+
}, U = () => {
|
|
1323
|
+
y.value = !1, r.value = null;
|
|
1324
|
+
}, f = E(() => r.value ? {
|
|
1325
|
+
title: r.value.confirmTitle,
|
|
1326
|
+
content: r.value.confirmContent || r.value.confirmTitle
|
|
1357
1327
|
} : {
|
|
1358
|
-
title:
|
|
1359
|
-
content:
|
|
1328
|
+
title: p("hbLibComp.hbTableAct.secendConfirm"),
|
|
1329
|
+
content: p("hbLibComp.hbTableAct.confirmContent")
|
|
1360
1330
|
});
|
|
1361
|
-
return
|
|
1362
|
-
ADropdown:
|
|
1363
|
-
AMenu:
|
|
1364
|
-
AMenuItem:
|
|
1365
|
-
APopconfirm:
|
|
1366
|
-
AModal:
|
|
1367
|
-
DownOutlined:
|
|
1368
|
-
}), (g,
|
|
1369
|
-
const
|
|
1370
|
-
return a(),
|
|
1371
|
-
(a(!0),
|
|
1372
|
-
I.needConfirm ? (a(),
|
|
1373
|
-
I.confirmType === "modal" ?
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
]) : (a(), B(n(Ce), {
|
|
1383
|
-
key: 1,
|
|
1384
|
-
title: I.confirmTitle,
|
|
1385
|
-
onConfirm: (l) => v(I)
|
|
1386
|
-
}, {
|
|
1387
|
-
default: s(() => [
|
|
1388
|
-
re((a(), w("a", gl, [
|
|
1389
|
-
O(L(I.label), 1)
|
|
1390
|
-
])), [
|
|
1391
|
-
[E, I.permissionsTag || null]
|
|
1392
|
-
])
|
|
1331
|
+
return b({
|
|
1332
|
+
ADropdown: Ge,
|
|
1333
|
+
AMenu: Je,
|
|
1334
|
+
AMenuItem: We,
|
|
1335
|
+
APopconfirm: Fe,
|
|
1336
|
+
AModal: Ie,
|
|
1337
|
+
DownOutlined: Qe
|
|
1338
|
+
}), (g, v) => {
|
|
1339
|
+
const T = P("a-divider"), A = rt("has");
|
|
1340
|
+
return a(), S("div", yl, [
|
|
1341
|
+
(a(!0), S(j, null, ae(t.value, (I, q) => (a(), S(j, { key: q }, [
|
|
1342
|
+
I.needConfirm ? (a(), S(j, { key: 0 }, [
|
|
1343
|
+
I.confirmType === "modal" ? (a(), S(j, { key: 0 }, [
|
|
1344
|
+
pe((a(), S("a", {
|
|
1345
|
+
href: "javascript:;",
|
|
1346
|
+
onClick: (o) => D(I),
|
|
1347
|
+
class: "hb-lib-table-main-action"
|
|
1348
|
+
}, [
|
|
1349
|
+
H(_(I.label), 1)
|
|
1350
|
+
], 8, Cl)), [
|
|
1351
|
+
[A, I.permissionsTag || null]
|
|
1393
1352
|
]),
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1353
|
+
i.value && i.value.length > 0 || q !== t.value.length - 1 ? (a(), O(T, {
|
|
1354
|
+
key: 0,
|
|
1355
|
+
type: "vertical"
|
|
1356
|
+
})) : B("", !0)
|
|
1357
|
+
], 64)) : (a(), S(j, { key: 1 }, [
|
|
1358
|
+
w(s(Fe), {
|
|
1359
|
+
title: I.confirmTitle,
|
|
1360
|
+
onConfirm: (o) => h(I)
|
|
1361
|
+
}, {
|
|
1362
|
+
default: n(() => [
|
|
1363
|
+
pe((a(), S("a", _l, [
|
|
1364
|
+
H(_(I.label), 1)
|
|
1365
|
+
])), [
|
|
1366
|
+
[A, I.permissionsTag || null]
|
|
1367
|
+
])
|
|
1368
|
+
]),
|
|
1369
|
+
_: 2
|
|
1370
|
+
}, 1032, ["title", "onConfirm"]),
|
|
1371
|
+
i.value && i.value.length > 0 || q !== t.value.length - 1 ? (a(), O(T, {
|
|
1372
|
+
key: 0,
|
|
1373
|
+
type: "vertical"
|
|
1374
|
+
})) : B("", !0)
|
|
1375
|
+
], 64))
|
|
1376
|
+
], 64)) : (a(), S(j, { key: 1 }, [
|
|
1377
|
+
pe((a(), S("a", {
|
|
1398
1378
|
href: "javascript:;",
|
|
1399
|
-
onClick: (
|
|
1379
|
+
onClick: (o) => h(I),
|
|
1400
1380
|
class: "hb-lib-table-main-action"
|
|
1401
1381
|
}, [
|
|
1402
|
-
|
|
1403
|
-
], 8,
|
|
1404
|
-
[
|
|
1382
|
+
H(_(I.label), 1)
|
|
1383
|
+
], 8, Ll)), [
|
|
1384
|
+
[A, I.permissionsTag || null]
|
|
1405
1385
|
]),
|
|
1406
|
-
|
|
1386
|
+
i.value && i.value.length > 0 || q !== t.value.length - 1 ? (a(), O(T, {
|
|
1407
1387
|
key: 0,
|
|
1408
1388
|
type: "vertical"
|
|
1409
|
-
})) :
|
|
1389
|
+
})) : B("", !0)
|
|
1410
1390
|
], 64))
|
|
1411
1391
|
], 64))), 128)),
|
|
1412
|
-
|
|
1413
|
-
overlay:
|
|
1414
|
-
|
|
1415
|
-
default:
|
|
1416
|
-
(a(!0),
|
|
1392
|
+
i.value && i.value.length > 0 ? (a(), O(s(Ge), { key: 0 }, {
|
|
1393
|
+
overlay: n(() => [
|
|
1394
|
+
w(s(Je), null, {
|
|
1395
|
+
default: n(() => [
|
|
1396
|
+
(a(!0), S(j, null, ae(i.value, (I) => (a(), O(s(We), {
|
|
1417
1397
|
key: I.key
|
|
1418
1398
|
}, {
|
|
1419
|
-
default:
|
|
1420
|
-
I.needConfirm ? (a(),
|
|
1421
|
-
I.confirmType === "modal" ?
|
|
1399
|
+
default: n(() => [
|
|
1400
|
+
I.needConfirm ? (a(), S(j, { key: 0 }, [
|
|
1401
|
+
I.confirmType === "modal" ? pe((a(), S("a", {
|
|
1422
1402
|
key: 0,
|
|
1423
1403
|
href: "javascript:;",
|
|
1424
|
-
onClick: (
|
|
1404
|
+
onClick: (q) => D(I)
|
|
1425
1405
|
}, [
|
|
1426
|
-
|
|
1427
|
-
], 8,
|
|
1428
|
-
[
|
|
1429
|
-
]) : (a(),
|
|
1406
|
+
H(_(I.label), 1)
|
|
1407
|
+
], 8, Sl)), [
|
|
1408
|
+
[A, I.permissionsTag || null]
|
|
1409
|
+
]) : (a(), O(s(Fe), {
|
|
1430
1410
|
key: 1,
|
|
1431
1411
|
title: I.confirmTitle,
|
|
1432
|
-
onConfirm: (
|
|
1412
|
+
onConfirm: (q) => h(I)
|
|
1433
1413
|
}, {
|
|
1434
|
-
default:
|
|
1435
|
-
|
|
1436
|
-
|
|
1414
|
+
default: n(() => [
|
|
1415
|
+
pe((a(), S("a", wl, [
|
|
1416
|
+
H(_(I.label), 1)
|
|
1437
1417
|
])), [
|
|
1438
|
-
[
|
|
1418
|
+
[A, I.permissionsTag || null]
|
|
1439
1419
|
])
|
|
1440
1420
|
]),
|
|
1441
1421
|
_: 2
|
|
1442
1422
|
}, 1032, ["title", "onConfirm"]))
|
|
1443
|
-
], 64)) :
|
|
1423
|
+
], 64)) : pe((a(), S("a", {
|
|
1444
1424
|
key: 1,
|
|
1445
1425
|
href: "javascript:;",
|
|
1446
|
-
onClick: (
|
|
1426
|
+
onClick: (q) => h(I)
|
|
1447
1427
|
}, [
|
|
1448
|
-
|
|
1449
|
-
], 8,
|
|
1450
|
-
[
|
|
1428
|
+
H(_(I.label), 1)
|
|
1429
|
+
], 8, Fl)), [
|
|
1430
|
+
[A, I.permissionsTag || null]
|
|
1451
1431
|
])
|
|
1452
1432
|
]),
|
|
1453
1433
|
_: 2
|
|
@@ -1456,36 +1436,36 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1456
1436
|
_: 1
|
|
1457
1437
|
})
|
|
1458
1438
|
]),
|
|
1459
|
-
default:
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1439
|
+
default: n(() => [
|
|
1440
|
+
C("a", kl, [
|
|
1441
|
+
H(_(g.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1442
|
+
w(s(Qe), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1463
1443
|
])
|
|
1464
1444
|
]),
|
|
1465
1445
|
_: 1
|
|
1466
|
-
})) :
|
|
1467
|
-
|
|
1468
|
-
visible:
|
|
1469
|
-
title:
|
|
1446
|
+
})) : B("", !0),
|
|
1447
|
+
w(s(Ie), {
|
|
1448
|
+
visible: y.value,
|
|
1449
|
+
title: f.value.title,
|
|
1470
1450
|
"confirm-loading": m.value,
|
|
1471
|
-
onOk:
|
|
1472
|
-
onCancel:
|
|
1451
|
+
onOk: x,
|
|
1452
|
+
onCancel: U
|
|
1473
1453
|
}, {
|
|
1474
|
-
default:
|
|
1475
|
-
|
|
1454
|
+
default: n(() => [
|
|
1455
|
+
C("p", Tl, _(f.value.content), 1)
|
|
1476
1456
|
]),
|
|
1477
1457
|
_: 1
|
|
1478
1458
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1479
1459
|
]);
|
|
1480
1460
|
};
|
|
1481
1461
|
}
|
|
1482
|
-
}),
|
|
1483
|
-
const
|
|
1484
|
-
return !
|
|
1485
|
-
}) }),
|
|
1462
|
+
}), $l = /* @__PURE__ */ le(xl, [["__scopeId", "data-v-a96574fa"]]), Il = te($l), Ml = (e) => ({ tableWidth: E(() => {
|
|
1463
|
+
const d = Array.isArray(e) ? e : e.value;
|
|
1464
|
+
return !d || d.length === 0 ? 0 : d.map((p) => p.width && Number(p.width.toString().replace("px", "")) || 0).reduce((p, y) => p + y, 0);
|
|
1465
|
+
}) }), Hl = {
|
|
1486
1466
|
key: 0,
|
|
1487
1467
|
class: "hb-lib-list-table-act"
|
|
1488
|
-
},
|
|
1468
|
+
}, Dl = { class: "empty-container" }, Al = /* @__PURE__ */ ee({
|
|
1489
1469
|
name: "HbLibListTable",
|
|
1490
1470
|
__name: "HbListTable",
|
|
1491
1471
|
props: {
|
|
@@ -1495,20 +1475,20 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1495
1475
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1496
1476
|
},
|
|
1497
1477
|
setup(e) {
|
|
1498
|
-
const { t:
|
|
1499
|
-
|
|
1500
|
-
() =>
|
|
1478
|
+
const { t: b } = re(), d = e, p = z([]), y = Oe("HB_LIST_PAGE_CONTAINER"), { tableWidth: m } = Ml(E(() => d.columns));
|
|
1479
|
+
ne(
|
|
1480
|
+
() => d.columns,
|
|
1501
1481
|
(t) => {
|
|
1502
|
-
const
|
|
1503
|
-
|
|
1504
|
-
let
|
|
1505
|
-
if (
|
|
1506
|
-
|
|
1507
|
-
else if (typeof
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1482
|
+
const i = t.filter((h) => h != null && h.checked);
|
|
1483
|
+
p.value = i.map((h) => {
|
|
1484
|
+
let D = { ...h, title: h.title || h.label };
|
|
1485
|
+
if (D.ellipsis && !D.needTooltip && (D.needTooltip = !0), !D.width)
|
|
1486
|
+
D.width = d.defaultWidth;
|
|
1487
|
+
else if (typeof D.width == "string") {
|
|
1488
|
+
const x = parseInt(D.width, 10);
|
|
1489
|
+
D.width = isNaN(x) ? d.defaultWidth : x;
|
|
1510
1490
|
}
|
|
1511
|
-
return
|
|
1491
|
+
return D.resizable === void 0 && (D.resizable = !0), D;
|
|
1512
1492
|
});
|
|
1513
1493
|
},
|
|
1514
1494
|
{
|
|
@@ -1516,35 +1496,35 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1516
1496
|
deep: !0
|
|
1517
1497
|
}
|
|
1518
1498
|
);
|
|
1519
|
-
const
|
|
1520
|
-
if (
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1499
|
+
const r = (t, i) => {
|
|
1500
|
+
if (i) {
|
|
1501
|
+
const h = typeof t == "string" ? parseInt(t, 10) : t;
|
|
1502
|
+
i.width = isNaN(h) ? 150 : h;
|
|
1523
1503
|
}
|
|
1524
|
-
},
|
|
1525
|
-
return (t,
|
|
1526
|
-
const
|
|
1527
|
-
return a(),
|
|
1528
|
-
class: V(["hb-lib-list-table", { "nowrap-table":
|
|
1529
|
-
style:
|
|
1504
|
+
}, u = (t, i = "YYYY-MM-DD HH:mm:ss") => t ? Le(t).format(i) : "";
|
|
1505
|
+
return (t, i) => {
|
|
1506
|
+
const h = P("a-empty"), D = P("a-tooltip"), x = P("HbLibCopy"), U = P("a-table");
|
|
1507
|
+
return a(), S("div", {
|
|
1508
|
+
class: V(["hb-lib-list-table", { "nowrap-table": d.rowHeight }]),
|
|
1509
|
+
style: _e({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1530
1510
|
}, [
|
|
1531
|
-
t.$slots.tableActLeft ? (a(),
|
|
1511
|
+
t.$slots.tableActLeft ? (a(), S("section", Hl, [
|
|
1532
1512
|
Y(t.$slots, "tableActLeft", {}, void 0, !0),
|
|
1533
1513
|
Y(t.$slots, "tableActRight", {}, void 0, !0)
|
|
1534
|
-
])) :
|
|
1535
|
-
|
|
1514
|
+
])) : B("", !0),
|
|
1515
|
+
w(U, X(t.$attrs, {
|
|
1536
1516
|
bordered: "",
|
|
1537
|
-
columns:
|
|
1538
|
-
onResizeColumn:
|
|
1517
|
+
columns: p.value,
|
|
1518
|
+
onResizeColumn: r,
|
|
1539
1519
|
scroll: {
|
|
1540
|
-
x:
|
|
1541
|
-
y:
|
|
1520
|
+
x: s(m),
|
|
1521
|
+
y: s(y).tableHeight
|
|
1542
1522
|
}
|
|
1543
|
-
}),
|
|
1544
|
-
emptyText:
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
description:
|
|
1523
|
+
}), et({
|
|
1524
|
+
emptyText: n(() => [
|
|
1525
|
+
C("div", Dl, [
|
|
1526
|
+
w(h, {
|
|
1527
|
+
description: s(b)("hbLibComp.hbListTable.noData")
|
|
1548
1528
|
}, null, 8, ["description"])
|
|
1549
1529
|
])
|
|
1550
1530
|
]),
|
|
@@ -1552,137 +1532,137 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1552
1532
|
}, [
|
|
1553
1533
|
t.$slots.headerCell ? {
|
|
1554
1534
|
name: "headerCell",
|
|
1555
|
-
fn:
|
|
1556
|
-
Y(t.$slots, "headerCell", { column:
|
|
1557
|
-
|
|
1535
|
+
fn: n(({ column: f }) => [
|
|
1536
|
+
Y(t.$slots, "headerCell", { column: f }, () => [
|
|
1537
|
+
H(_(f.title), 1)
|
|
1558
1538
|
], !0)
|
|
1559
1539
|
]),
|
|
1560
1540
|
key: "0"
|
|
1561
1541
|
} : void 0,
|
|
1562
1542
|
t.$slots.bodyCell ? {
|
|
1563
1543
|
name: "bodyCell",
|
|
1564
|
-
fn:
|
|
1544
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1565
1545
|
Y(t.$slots, "bodyCell", {
|
|
1566
|
-
column:
|
|
1546
|
+
column: f,
|
|
1567
1547
|
record: g,
|
|
1568
|
-
index:
|
|
1569
|
-
text:
|
|
1548
|
+
index: v,
|
|
1549
|
+
text: T
|
|
1570
1550
|
}, void 0, !0),
|
|
1571
|
-
|
|
1551
|
+
f && f.needTooltip ? (a(), O(D, {
|
|
1572
1552
|
key: 0,
|
|
1573
1553
|
placement: e.tooltipPlacement
|
|
1574
1554
|
}, {
|
|
1575
|
-
title:
|
|
1576
|
-
|
|
1555
|
+
title: n(() => [
|
|
1556
|
+
H(_(g[f.dataIndex]), 1)
|
|
1577
1557
|
]),
|
|
1578
|
-
default:
|
|
1579
|
-
|
|
1558
|
+
default: n(() => [
|
|
1559
|
+
H(" " + _(g[f.dataIndex]), 1)
|
|
1580
1560
|
]),
|
|
1581
1561
|
_: 2
|
|
1582
|
-
}, 1032, ["placement"])) :
|
|
1583
|
-
|
|
1562
|
+
}, 1032, ["placement"])) : B("", !0),
|
|
1563
|
+
f && f.needCopy ? (a(), O(x, {
|
|
1584
1564
|
key: 1,
|
|
1585
|
-
"cp-text": g[
|
|
1565
|
+
"cp-text": g[f.dataIndex],
|
|
1586
1566
|
style: { position: "relative" }
|
|
1587
|
-
}, null, 8, ["cp-text"])) :
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
], 64)) :
|
|
1567
|
+
}, null, 8, ["cp-text"])) : B("", !0),
|
|
1568
|
+
f && f.needFormat ? (a(), S(j, { key: 2 }, [
|
|
1569
|
+
H(_(u(g[f.dataIndex], f.format)), 1)
|
|
1570
|
+
], 64)) : B("", !0)
|
|
1591
1571
|
]),
|
|
1592
1572
|
key: "1"
|
|
1593
1573
|
} : void 0,
|
|
1594
1574
|
t.$slots.expandedRowRender ? {
|
|
1595
1575
|
name: "expandedRowRender",
|
|
1596
|
-
fn:
|
|
1576
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1597
1577
|
Y(t.$slots, "expandedRowRender", {
|
|
1598
1578
|
record: g,
|
|
1599
|
-
column:
|
|
1600
|
-
index:
|
|
1601
|
-
text:
|
|
1579
|
+
column: f,
|
|
1580
|
+
index: v,
|
|
1581
|
+
text: T
|
|
1602
1582
|
}, void 0, !0)
|
|
1603
1583
|
]),
|
|
1604
1584
|
key: "2"
|
|
1605
1585
|
} : void 0,
|
|
1606
1586
|
t.$slots.customFilterDropdown ? {
|
|
1607
1587
|
name: "customFilterDropdown",
|
|
1608
|
-
fn:
|
|
1588
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1609
1589
|
Y(t.$slots, "customFilterDropdown", {
|
|
1610
1590
|
record: g,
|
|
1611
|
-
column:
|
|
1612
|
-
index:
|
|
1613
|
-
text:
|
|
1591
|
+
column: f,
|
|
1592
|
+
index: v,
|
|
1593
|
+
text: T
|
|
1614
1594
|
}, void 0, !0)
|
|
1615
1595
|
]),
|
|
1616
1596
|
key: "3"
|
|
1617
1597
|
} : void 0,
|
|
1618
1598
|
t.$slots.customFilterIcon ? {
|
|
1619
1599
|
name: "customFilterIcon",
|
|
1620
|
-
fn:
|
|
1600
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1621
1601
|
Y(t.$slots, "customFilterIcon", {
|
|
1622
1602
|
record: g,
|
|
1623
|
-
column:
|
|
1624
|
-
index:
|
|
1625
|
-
text:
|
|
1603
|
+
column: f,
|
|
1604
|
+
index: v,
|
|
1605
|
+
text: T
|
|
1626
1606
|
}, void 0, !0)
|
|
1627
1607
|
]),
|
|
1628
1608
|
key: "4"
|
|
1629
1609
|
} : void 0,
|
|
1630
1610
|
t.$slots.expandIcon ? {
|
|
1631
1611
|
name: "expandIcon",
|
|
1632
|
-
fn:
|
|
1612
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1633
1613
|
Y(t.$slots, "expandIcon", {
|
|
1634
1614
|
record: g,
|
|
1635
|
-
column:
|
|
1636
|
-
index:
|
|
1637
|
-
text:
|
|
1615
|
+
column: f,
|
|
1616
|
+
index: v,
|
|
1617
|
+
text: T
|
|
1638
1618
|
}, void 0, !0)
|
|
1639
1619
|
]),
|
|
1640
1620
|
key: "5"
|
|
1641
1621
|
} : void 0,
|
|
1642
1622
|
t.$slots.footer ? {
|
|
1643
1623
|
name: "footer",
|
|
1644
|
-
fn:
|
|
1624
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1645
1625
|
Y(t.$slots, "footer", {
|
|
1646
1626
|
record: g,
|
|
1647
|
-
column:
|
|
1648
|
-
index:
|
|
1649
|
-
text:
|
|
1627
|
+
column: f,
|
|
1628
|
+
index: v,
|
|
1629
|
+
text: T
|
|
1650
1630
|
}, void 0, !0)
|
|
1651
1631
|
]),
|
|
1652
1632
|
key: "6"
|
|
1653
1633
|
} : void 0,
|
|
1654
1634
|
t.$slots.headerCell ? {
|
|
1655
1635
|
name: "headerCell",
|
|
1656
|
-
fn:
|
|
1636
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1657
1637
|
Y(t.$slots, "headerCell", {
|
|
1658
1638
|
record: g,
|
|
1659
|
-
column:
|
|
1660
|
-
index:
|
|
1661
|
-
text:
|
|
1639
|
+
column: f,
|
|
1640
|
+
index: v,
|
|
1641
|
+
text: T
|
|
1662
1642
|
}, void 0, !0)
|
|
1663
1643
|
]),
|
|
1664
1644
|
key: "7"
|
|
1665
1645
|
} : void 0,
|
|
1666
1646
|
t.$slots.summary ? {
|
|
1667
1647
|
name: "summary",
|
|
1668
|
-
fn:
|
|
1648
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1669
1649
|
Y(t.$slots, "summary", {
|
|
1670
1650
|
record: g,
|
|
1671
|
-
column:
|
|
1672
|
-
index:
|
|
1673
|
-
text:
|
|
1651
|
+
column: f,
|
|
1652
|
+
index: v,
|
|
1653
|
+
text: T
|
|
1674
1654
|
}, void 0, !0)
|
|
1675
1655
|
]),
|
|
1676
1656
|
key: "8"
|
|
1677
1657
|
} : void 0,
|
|
1678
1658
|
t.$slots.title ? {
|
|
1679
1659
|
name: "title",
|
|
1680
|
-
fn:
|
|
1660
|
+
fn: n(({ column: f, record: g, index: v, text: T }) => [
|
|
1681
1661
|
Y(t.$slots, "title", {
|
|
1682
1662
|
record: g,
|
|
1683
|
-
column:
|
|
1684
|
-
index:
|
|
1685
|
-
text:
|
|
1663
|
+
column: f,
|
|
1664
|
+
index: v,
|
|
1665
|
+
text: T
|
|
1686
1666
|
}, void 0, !0)
|
|
1687
1667
|
]),
|
|
1688
1668
|
key: "9"
|
|
@@ -1691,16 +1671,16 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1691
1671
|
], 6);
|
|
1692
1672
|
};
|
|
1693
1673
|
}
|
|
1694
|
-
}),
|
|
1674
|
+
}), Ol = /* @__PURE__ */ le(Al, [["__scopeId", "data-v-d4abbf25"]]), Bl = te(Ol), zl = { class: "hb-lib-table-setting-box" }, Rl = {
|
|
1695
1675
|
key: 0,
|
|
1696
1676
|
class: "hb-lib-table-drag-item"
|
|
1697
|
-
},
|
|
1677
|
+
}, Pl = {
|
|
1698
1678
|
key: 0,
|
|
1699
1679
|
class: "hb-lib-table-drag-item-act"
|
|
1700
|
-
},
|
|
1680
|
+
}, Nl = ["onClick"], Ul = ["onClick"], Vl = { class: "hb-lib-table-set-btn-group" }, El = {
|
|
1701
1681
|
class: "select-all-container",
|
|
1702
1682
|
style: { "margin-right": "10px" }
|
|
1703
|
-
},
|
|
1683
|
+
}, Yl = /* @__PURE__ */ ee({
|
|
1704
1684
|
name: "HbLibTableColumnSet",
|
|
1705
1685
|
__name: "HbTableColumnSet",
|
|
1706
1686
|
props: {
|
|
@@ -1732,119 +1712,119 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1732
1712
|
}
|
|
1733
1713
|
},
|
|
1734
1714
|
emits: ["on-get-columns"],
|
|
1735
|
-
setup(e, { emit:
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1740
|
-
},
|
|
1741
|
-
const
|
|
1742
|
-
if (m.value.some((
|
|
1743
|
-
const
|
|
1744
|
-
if ((
|
|
1745
|
-
const
|
|
1746
|
-
t.value.splice(
|
|
1715
|
+
setup(e, { emit: b }) {
|
|
1716
|
+
const d = b, { t: p } = re(), y = e, m = z([]), r = E(() => t.value.filter((o) => o.checked));
|
|
1717
|
+
z([]);
|
|
1718
|
+
const u = z(!1), t = z([]), i = z(null), h = E(() => r.value.length > 0 && r.value.length === m.value.length), D = E(() => r.value.length > 0 && r.value.length < m.value.length), x = (o) => {
|
|
1719
|
+
i.value = o.oldIndex;
|
|
1720
|
+
}, U = (o) => {
|
|
1721
|
+
const l = o.newIndex;
|
|
1722
|
+
if (m.value.some((L) => L.fixed === "left" || L.fixed === "right" || L.fixed === !0)) {
|
|
1723
|
+
const L = m.value.filter((k) => k.fixed === "left").length, R = m.value.length - m.value.filter((k) => k.fixed === "right").length;
|
|
1724
|
+
if ((L > 0 && l < L || R < m.value.length && l >= R) && (Ae.warning(p("hbLibComp.hbLibListTableColumsSet.errorTip")), i.value !== null)) {
|
|
1725
|
+
const k = t.value.splice(l, 1)[0];
|
|
1726
|
+
t.value.splice(i.value, 0, k);
|
|
1747
1727
|
}
|
|
1748
1728
|
}
|
|
1749
|
-
|
|
1750
|
-
},
|
|
1751
|
-
|
|
1752
|
-
}, g = (
|
|
1753
|
-
|
|
1754
|
-
},
|
|
1755
|
-
m.value = [...t.value],
|
|
1756
|
-
},
|
|
1757
|
-
m.value =
|
|
1758
|
-
...
|
|
1759
|
-
label:
|
|
1760
|
-
value:
|
|
1761
|
-
checked:
|
|
1729
|
+
i.value = null;
|
|
1730
|
+
}, f = (o) => {
|
|
1731
|
+
o.target.checked ? t.value.forEach((c) => c.checked = !0) : t.value.forEach((c) => c.checked = !1);
|
|
1732
|
+
}, g = (o, l) => {
|
|
1733
|
+
l ? o.checked = !0 : o.checked = !1;
|
|
1734
|
+
}, v = () => {
|
|
1735
|
+
m.value = [...t.value], d("on-get-columns", m.value), u.value = !1;
|
|
1736
|
+
}, T = () => {
|
|
1737
|
+
m.value = y.tableColumns.map((l) => ({
|
|
1738
|
+
...l,
|
|
1739
|
+
label: l.title && l.title.tag ? A(l.title) : l.title || l.title2,
|
|
1740
|
+
value: l.dataIndex,
|
|
1741
|
+
checked: l.checked || l.checked === void 0
|
|
1762
1742
|
})), t.value = [...m.value];
|
|
1763
|
-
let
|
|
1764
|
-
|
|
1765
|
-
|
|
1743
|
+
let o = [];
|
|
1744
|
+
y.tableColumns.forEach(function(l) {
|
|
1745
|
+
o.push(l.dataIndex);
|
|
1766
1746
|
});
|
|
1767
|
-
},
|
|
1768
|
-
delete
|
|
1769
|
-
const
|
|
1770
|
-
if (
|
|
1771
|
-
let
|
|
1772
|
-
for (let
|
|
1773
|
-
t.value[
|
|
1774
|
-
if (
|
|
1775
|
-
const
|
|
1776
|
-
|
|
1747
|
+
}, A = (o) => o.children[0].text, I = (o) => {
|
|
1748
|
+
delete o.fixed;
|
|
1749
|
+
const l = t.value.findIndex((c) => c.value === o.value);
|
|
1750
|
+
if (l !== -1) {
|
|
1751
|
+
let c = -1;
|
|
1752
|
+
for (let L = 0; L < t.value.length; L++)
|
|
1753
|
+
t.value[L].fixed === "left" && (c = L);
|
|
1754
|
+
if (c !== -1 && l !== c + 1) {
|
|
1755
|
+
const L = [...t.value], [R] = L.splice(l, 1);
|
|
1756
|
+
L.splice(c + 1, 0, R), t.value = L;
|
|
1777
1757
|
}
|
|
1778
1758
|
}
|
|
1779
|
-
},
|
|
1780
|
-
const
|
|
1781
|
-
if (
|
|
1782
|
-
let
|
|
1783
|
-
for (let
|
|
1784
|
-
t.value[
|
|
1785
|
-
if (
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1759
|
+
}, q = (o) => {
|
|
1760
|
+
const l = t.value.findIndex((c) => c.value === o.value);
|
|
1761
|
+
if (l !== -1) {
|
|
1762
|
+
let c = -1;
|
|
1763
|
+
for (let L = 0; L < t.value.length; L++)
|
|
1764
|
+
t.value[L].fixed === "left" && (c = L);
|
|
1765
|
+
if (c !== -1 && l !== c + 1) {
|
|
1766
|
+
const L = [...t.value], R = L.splice(l, 1);
|
|
1767
|
+
R[0].fixed = "left", L.splice(c + 1, 0, R[0]), t.value = L;
|
|
1788
1768
|
}
|
|
1789
1769
|
}
|
|
1790
1770
|
};
|
|
1791
|
-
return
|
|
1792
|
-
() =>
|
|
1771
|
+
return ne(
|
|
1772
|
+
() => y.tableColumns,
|
|
1793
1773
|
() => {
|
|
1794
|
-
|
|
1774
|
+
T();
|
|
1795
1775
|
},
|
|
1796
1776
|
{
|
|
1797
1777
|
immediate: !0,
|
|
1798
1778
|
deep: !0
|
|
1799
1779
|
}
|
|
1800
|
-
), (
|
|
1801
|
-
const
|
|
1802
|
-
return a(),
|
|
1803
|
-
|
|
1804
|
-
title:
|
|
1780
|
+
), (o, l) => {
|
|
1781
|
+
const c = P("a-tooltip"), L = P("a-button");
|
|
1782
|
+
return a(), S("div", zl, [
|
|
1783
|
+
w(s(ft), {
|
|
1784
|
+
title: s(p)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1805
1785
|
trigger: "click",
|
|
1806
1786
|
placement: "leftTop",
|
|
1807
1787
|
overlayClassName: "alertInfoContent",
|
|
1808
|
-
visible:
|
|
1809
|
-
"onUpdate:visible":
|
|
1788
|
+
visible: u.value,
|
|
1789
|
+
"onUpdate:visible": l[1] || (l[1] = (R) => u.value = R)
|
|
1810
1790
|
}, {
|
|
1811
|
-
content:
|
|
1812
|
-
|
|
1791
|
+
content: n(() => [
|
|
1792
|
+
w(s(ve), {
|
|
1813
1793
|
modelValue: t.value,
|
|
1814
|
-
"onUpdate:modelValue":
|
|
1794
|
+
"onUpdate:modelValue": l[0] || (l[0] = (R) => t.value = R),
|
|
1815
1795
|
"item-key": "value",
|
|
1816
1796
|
class: "hb-lib-table-set-drag",
|
|
1817
1797
|
"ghost-class": "ghost",
|
|
1818
1798
|
animation: "200",
|
|
1819
1799
|
handle: ".drag-handle",
|
|
1820
|
-
onStart:
|
|
1821
|
-
onEnd:
|
|
1800
|
+
onStart: x,
|
|
1801
|
+
onEnd: U
|
|
1822
1802
|
}, {
|
|
1823
|
-
item:
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
checked:
|
|
1827
|
-
onChange: (
|
|
1803
|
+
item: n(({ element: R }) => [
|
|
1804
|
+
R.fixed !== "right" ? (a(), S("div", Rl, [
|
|
1805
|
+
w(s(ge), {
|
|
1806
|
+
checked: R.checked,
|
|
1807
|
+
onChange: (k) => g(R, k.target.checked)
|
|
1828
1808
|
}, {
|
|
1829
|
-
default:
|
|
1830
|
-
|
|
1809
|
+
default: n(() => [
|
|
1810
|
+
H(_(R.label), 1)
|
|
1831
1811
|
]),
|
|
1832
1812
|
_: 2
|
|
1833
1813
|
}, 1032, ["checked", "onChange"]),
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
class: V(
|
|
1814
|
+
R.checked ? (a(), S("section", Pl, [
|
|
1815
|
+
C("span", {
|
|
1816
|
+
class: V(R.fixed ? "drag-hide" : "drag-handle")
|
|
1837
1817
|
}, "⋮⋮", 2),
|
|
1838
|
-
|
|
1839
|
-
title:
|
|
1840
|
-
|
|
1818
|
+
R.fixed ? (a(), O(c, { key: 0 }, {
|
|
1819
|
+
title: n(() => [
|
|
1820
|
+
H(_(s(p)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1841
1821
|
]),
|
|
1842
|
-
default:
|
|
1843
|
-
|
|
1822
|
+
default: n(() => [
|
|
1823
|
+
C("span", {
|
|
1844
1824
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1845
|
-
onClick: (
|
|
1846
|
-
}, [...
|
|
1847
|
-
|
|
1825
|
+
onClick: (k) => I(R)
|
|
1826
|
+
}, [...l[2] || (l[2] = [
|
|
1827
|
+
C("svg", {
|
|
1848
1828
|
t: "1759048615600",
|
|
1849
1829
|
class: "icon",
|
|
1850
1830
|
viewBox: "0 0 1024 1024",
|
|
@@ -1854,26 +1834,26 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1854
1834
|
width: "200",
|
|
1855
1835
|
height: "200"
|
|
1856
1836
|
}, [
|
|
1857
|
-
|
|
1837
|
+
C("path", {
|
|
1858
1838
|
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",
|
|
1859
1839
|
"p-id": "7284",
|
|
1860
1840
|
fill: "#ff5000"
|
|
1861
1841
|
})
|
|
1862
1842
|
], -1)
|
|
1863
|
-
])], 8,
|
|
1843
|
+
])], 8, Nl)
|
|
1864
1844
|
]),
|
|
1865
1845
|
_: 2
|
|
1866
|
-
}, 1024)) :
|
|
1867
|
-
|
|
1868
|
-
title:
|
|
1869
|
-
|
|
1846
|
+
}, 1024)) : B("", !0),
|
|
1847
|
+
R.fixed ? B("", !0) : (a(), O(c, { key: 1 }, {
|
|
1848
|
+
title: n(() => [
|
|
1849
|
+
H(_(s(p)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1870
1850
|
]),
|
|
1871
|
-
default:
|
|
1872
|
-
|
|
1851
|
+
default: n(() => [
|
|
1852
|
+
C("span", {
|
|
1873
1853
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1874
|
-
onClick: (
|
|
1875
|
-
}, [...
|
|
1876
|
-
|
|
1854
|
+
onClick: (k) => q(R)
|
|
1855
|
+
}, [...l[3] || (l[3] = [
|
|
1856
|
+
C("svg", {
|
|
1877
1857
|
t: "1759048735643",
|
|
1878
1858
|
class: "icon",
|
|
1879
1859
|
viewBox: "0 0 1024 1024",
|
|
@@ -1883,53 +1863,53 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1883
1863
|
width: "200",
|
|
1884
1864
|
height: "200"
|
|
1885
1865
|
}, [
|
|
1886
|
-
|
|
1866
|
+
C("path", {
|
|
1887
1867
|
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",
|
|
1888
1868
|
"p-id": "7482",
|
|
1889
1869
|
fill: "#ff5000"
|
|
1890
1870
|
})
|
|
1891
1871
|
], -1)
|
|
1892
|
-
])], 8,
|
|
1872
|
+
])], 8, Ul)
|
|
1893
1873
|
]),
|
|
1894
1874
|
_: 2
|
|
1895
1875
|
}, 1024))
|
|
1896
|
-
])) :
|
|
1897
|
-
])) :
|
|
1876
|
+
])) : B("", !0)
|
|
1877
|
+
])) : B("", !0)
|
|
1898
1878
|
]),
|
|
1899
1879
|
_: 1
|
|
1900
1880
|
}, 8, ["modelValue"]),
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
checked:
|
|
1905
|
-
indeterminate:
|
|
1906
|
-
onChange:
|
|
1881
|
+
C("div", Vl, [
|
|
1882
|
+
C("div", El, [
|
|
1883
|
+
w(s(ge), {
|
|
1884
|
+
checked: h.value,
|
|
1885
|
+
indeterminate: D.value,
|
|
1886
|
+
onChange: f
|
|
1907
1887
|
}, {
|
|
1908
|
-
default:
|
|
1909
|
-
|
|
1888
|
+
default: n(() => [
|
|
1889
|
+
H(_(s(p)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1910
1890
|
]),
|
|
1911
1891
|
_: 1
|
|
1912
1892
|
}, 8, ["checked", "indeterminate"])
|
|
1913
1893
|
]),
|
|
1914
|
-
|
|
1915
|
-
onClick:
|
|
1894
|
+
w(L, {
|
|
1895
|
+
onClick: v,
|
|
1916
1896
|
type: "primary"
|
|
1917
1897
|
}, {
|
|
1918
|
-
default:
|
|
1919
|
-
|
|
1898
|
+
default: n(() => [
|
|
1899
|
+
H(_(s(p)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1920
1900
|
]),
|
|
1921
1901
|
_: 1
|
|
1922
1902
|
})
|
|
1923
1903
|
])
|
|
1924
1904
|
]),
|
|
1925
|
-
default:
|
|
1926
|
-
|
|
1927
|
-
title:
|
|
1905
|
+
default: n(() => [
|
|
1906
|
+
w(c, {
|
|
1907
|
+
title: s(p)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1928
1908
|
placement: "leftTop"
|
|
1929
1909
|
}, {
|
|
1930
|
-
default:
|
|
1931
|
-
|
|
1932
|
-
|
|
1910
|
+
default: n(() => [...l[4] || (l[4] = [
|
|
1911
|
+
C("span", { class: "hb-lib-table-col-set" }, [
|
|
1912
|
+
C("svg", {
|
|
1933
1913
|
t: "1759041858618",
|
|
1934
1914
|
class: "icon",
|
|
1935
1915
|
viewBox: "0 0 1024 1024",
|
|
@@ -1939,12 +1919,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1939
1919
|
width: "200",
|
|
1940
1920
|
height: "200"
|
|
1941
1921
|
}, [
|
|
1942
|
-
|
|
1922
|
+
C("path", {
|
|
1943
1923
|
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",
|
|
1944
1924
|
"p-id": "5220",
|
|
1945
1925
|
fill: "#ff5000"
|
|
1946
1926
|
}),
|
|
1947
|
-
|
|
1927
|
+
C("path", {
|
|
1948
1928
|
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",
|
|
1949
1929
|
"p-id": "5221",
|
|
1950
1930
|
fill: "#ff5000"
|
|
@@ -1960,23 +1940,23 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1960
1940
|
]);
|
|
1961
1941
|
};
|
|
1962
1942
|
}
|
|
1963
|
-
}),
|
|
1943
|
+
}), jl = /* @__PURE__ */ le(Yl, [["__scopeId", "data-v-fe93cce7"]]), ql = te(jl), Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1964
1944
|
__proto__: null,
|
|
1965
|
-
HbLibFormItemFilterModal:
|
|
1966
|
-
HbLibListBtnsAct:
|
|
1967
|
-
HbLibListForm:
|
|
1968
|
-
HbLibListMultiSelect:
|
|
1969
|
-
HbLibListPageAct:
|
|
1970
|
-
HbLibListPageContainer:
|
|
1971
|
-
HbLibListTable:
|
|
1972
|
-
HbLibMutilpleSelectModal:
|
|
1973
|
-
HbLibTableAct:
|
|
1974
|
-
HbLibTableColumnSet:
|
|
1975
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1945
|
+
HbLibFormItemFilterModal: It,
|
|
1946
|
+
HbLibListBtnsAct: Wt,
|
|
1947
|
+
HbLibListForm: At,
|
|
1948
|
+
HbLibListMultiSelect: bl,
|
|
1949
|
+
HbLibListPageAct: Vt,
|
|
1950
|
+
HbLibListPageContainer: Qt,
|
|
1951
|
+
HbLibListTable: Bl,
|
|
1952
|
+
HbLibMutilpleSelectModal: gl,
|
|
1953
|
+
HbLibTableAct: Il,
|
|
1954
|
+
HbLibTableColumnSet: ql
|
|
1955
|
+
}, Symbol.toStringTag, { value: "Module" })), Wl = /* @__PURE__ */ ee({
|
|
1976
1956
|
name: "HbLibFormTooltipSelect",
|
|
1977
1957
|
inheritAttrs: !1,
|
|
1978
1958
|
__name: "HbTooltipSelect",
|
|
1979
|
-
props: /* @__PURE__ */
|
|
1959
|
+
props: /* @__PURE__ */ xe({
|
|
1980
1960
|
options: { default: () => [] },
|
|
1981
1961
|
tooltipPlacement: { default: "right" },
|
|
1982
1962
|
tooltipMaxWidth: { default: 280 },
|
|
@@ -1989,17 +1969,17 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1989
1969
|
valueModifiers: {}
|
|
1990
1970
|
}),
|
|
1991
1971
|
emits: ["update:value"],
|
|
1992
|
-
setup(e, { expose:
|
|
1993
|
-
const
|
|
1994
|
-
const
|
|
1972
|
+
setup(e, { expose: b }) {
|
|
1973
|
+
const d = e, p = ct(), y = E(() => {
|
|
1974
|
+
const f = p, g = f.dropdownClassName;
|
|
1995
1975
|
return {
|
|
1996
|
-
...
|
|
1976
|
+
...f,
|
|
1997
1977
|
dropdownClassName: g ?? "hb_lib_form_tooltip_select__dropdown"
|
|
1998
1978
|
};
|
|
1999
|
-
}), m =
|
|
2000
|
-
maxWidth: typeof
|
|
2001
|
-
})),
|
|
2002
|
-
return
|
|
1979
|
+
}), m = z(), r = tt(e, "value"), u = E(() => d.options ?? []), t = E(() => ({
|
|
1980
|
+
maxWidth: typeof d.tooltipMaxWidth == "number" ? `${d.tooltipMaxWidth}px` : d.tooltipMaxWidth
|
|
1981
|
+
})), i = (f) => f.tooltip ?? f.label, h = (f) => f.key ?? f.label, D = (f) => !!(d.enableTooltip && i(f));
|
|
1982
|
+
return b({
|
|
2003
1983
|
focus: () => {
|
|
2004
1984
|
m.value?.focus?.();
|
|
2005
1985
|
},
|
|
@@ -2007,37 +1987,37 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2007
1987
|
m.value?.blur?.();
|
|
2008
1988
|
},
|
|
2009
1989
|
selectRef: m
|
|
2010
|
-
}), (
|
|
1990
|
+
}), (f, g) => (a(), O(s(He), X({
|
|
2011
1991
|
ref_key: "selectRef",
|
|
2012
1992
|
ref: m,
|
|
2013
1993
|
class: "hb_lib_form_tooltip_select"
|
|
2014
|
-
},
|
|
2015
|
-
value:
|
|
2016
|
-
"onUpdate:value": g[0] || (g[0] = (
|
|
1994
|
+
}, y.value, {
|
|
1995
|
+
value: r.value,
|
|
1996
|
+
"onUpdate:value": g[0] || (g[0] = (v) => r.value = v)
|
|
2017
1997
|
}), {
|
|
2018
|
-
default:
|
|
2019
|
-
|
|
2020
|
-
key: v
|
|
2021
|
-
value:
|
|
2022
|
-
disabled:
|
|
2023
|
-
}, { ref_for: !0 },
|
|
2024
|
-
default:
|
|
2025
|
-
|
|
1998
|
+
default: n(() => [
|
|
1999
|
+
f.$slots.default ? Y(f.$slots, "default", { key: 0 }, void 0, !0) : (a(!0), S(j, { key: 1 }, ae(u.value, (v) => (a(), O(s(De), X({
|
|
2000
|
+
key: h(v),
|
|
2001
|
+
value: v.value,
|
|
2002
|
+
disabled: v.disabled
|
|
2003
|
+
}, { ref_for: !0 }, v.optionProps), {
|
|
2004
|
+
default: n(() => [
|
|
2005
|
+
D(v) ? (a(), O(s(Me), {
|
|
2026
2006
|
key: 0,
|
|
2027
|
-
title:
|
|
2028
|
-
placement:
|
|
2007
|
+
title: i(v),
|
|
2008
|
+
placement: d.tooltipPlacement,
|
|
2029
2009
|
overlayStyle: t.value
|
|
2030
2010
|
}, {
|
|
2031
|
-
default:
|
|
2032
|
-
|
|
2033
|
-
class: V(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2034
|
-
},
|
|
2011
|
+
default: n(() => [
|
|
2012
|
+
C("span", {
|
|
2013
|
+
class: V(["hb_lib_form_tooltip_select__option", { "is-ellipsis": d.enableEllipsis }])
|
|
2014
|
+
}, _(v.label), 3)
|
|
2035
2015
|
]),
|
|
2036
2016
|
_: 2
|
|
2037
|
-
}, 1032, ["title", "placement", "overlayStyle"])) : (a(),
|
|
2017
|
+
}, 1032, ["title", "placement", "overlayStyle"])) : (a(), S("span", {
|
|
2038
2018
|
key: 1,
|
|
2039
|
-
class: V(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2040
|
-
},
|
|
2019
|
+
class: V(["hb_lib_form_tooltip_select__option", { "is-ellipsis": d.enableEllipsis }])
|
|
2020
|
+
}, _(v.label), 3))
|
|
2041
2021
|
]),
|
|
2042
2022
|
_: 2
|
|
2043
2023
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2045,10 +2025,136 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2045
2025
|
_: 3
|
|
2046
2026
|
}, 16, ["value"]));
|
|
2047
2027
|
}
|
|
2048
|
-
}),
|
|
2028
|
+
}), Jl = /* @__PURE__ */ le(Wl, [["__scopeId", "data-v-b04f5675"]]), Gl = te(Jl), Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2029
|
+
__proto__: null,
|
|
2030
|
+
HbLibFormTooltipSelect: Gl
|
|
2031
|
+
}, Symbol.toStringTag, { value: "Module" })), Zl = { class: "ant-upload-drag-icon" }, Xl = { class: "ant-upload-text" }, eo = { style: { color: "#ff5000" } }, to = { class: "ant-upload-hint" }, lo = {
|
|
2032
|
+
key: 0,
|
|
2033
|
+
class: "hb_import_btn"
|
|
2034
|
+
}, oo = ["href"], ao = /* @__PURE__ */ ee({
|
|
2035
|
+
name: "HbLibImportFile",
|
|
2036
|
+
__name: "HbImportFile",
|
|
2037
|
+
props: {
|
|
2038
|
+
title: { default: () => "文件导入" },
|
|
2039
|
+
modalWidth: { default: 600 },
|
|
2040
|
+
acceptFile: { default: ".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif" },
|
|
2041
|
+
isRequired: { type: Boolean, default: !0 },
|
|
2042
|
+
templateUrl: {},
|
|
2043
|
+
maxCount: { default: 1 },
|
|
2044
|
+
multiple: { type: Boolean, default: !1 },
|
|
2045
|
+
btnText: { default: () => "文件上传" },
|
|
2046
|
+
beforeUpload: {},
|
|
2047
|
+
beforeSubmit: {}
|
|
2048
|
+
},
|
|
2049
|
+
setup(e, { expose: b }) {
|
|
2050
|
+
const { t: d } = re(), p = z(), y = e, m = z(!1), r = ye({
|
|
2051
|
+
fileList: [],
|
|
2052
|
+
visible: !1
|
|
2053
|
+
}), u = (x) => {
|
|
2054
|
+
if (x == null)
|
|
2055
|
+
return;
|
|
2056
|
+
const U = r.fileList.indexOf(x);
|
|
2057
|
+
if (U !== -1) {
|
|
2058
|
+
const f = r.fileList.slice();
|
|
2059
|
+
f.splice(U, 1), r.fileList = f;
|
|
2060
|
+
}
|
|
2061
|
+
}, t = () => {
|
|
2062
|
+
r.visible = !1, r.fileList = [], m.value = !1;
|
|
2063
|
+
}, i = (x) => (r.fileList = [x], y.beforeUpload ? y.beforeUpload(x) : !1), h = () => {
|
|
2064
|
+
p.value.validateFields().then(() => {
|
|
2065
|
+
y.beforeSubmit && (m.value = !0, y.beforeSubmit(r.fileList).then((x) => {
|
|
2066
|
+
}).finally(() => {
|
|
2067
|
+
m.value = !1;
|
|
2068
|
+
}));
|
|
2069
|
+
});
|
|
2070
|
+
}, D = () => {
|
|
2071
|
+
r.visible = !0;
|
|
2072
|
+
};
|
|
2073
|
+
return b({
|
|
2074
|
+
handleCancel: t,
|
|
2075
|
+
openModal: D,
|
|
2076
|
+
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2077
|
+
confirmLoading: m
|
|
2078
|
+
}), (x, U) => {
|
|
2079
|
+
const f = P("a-upload-dragger"), g = P("a-form-item"), v = P("a-form"), T = P("a-modal"), A = P("a-button");
|
|
2080
|
+
return a(), S(j, null, [
|
|
2081
|
+
w(T, X({
|
|
2082
|
+
title: y.title,
|
|
2083
|
+
visible: r.visible,
|
|
2084
|
+
"onUpdate:visible": U[0] || (U[0] = (I) => r.visible = I),
|
|
2085
|
+
"confirm-loading": m.value
|
|
2086
|
+
}, x.$attrs, {
|
|
2087
|
+
onCancel: t,
|
|
2088
|
+
onOk: h,
|
|
2089
|
+
width: y.modalWidth
|
|
2090
|
+
}), {
|
|
2091
|
+
default: n(() => [
|
|
2092
|
+
w(v, {
|
|
2093
|
+
ref_key: "modalFormRef",
|
|
2094
|
+
ref: p,
|
|
2095
|
+
model: r
|
|
2096
|
+
}, {
|
|
2097
|
+
default: n(() => [
|
|
2098
|
+
w(g, {
|
|
2099
|
+
name: "fileList",
|
|
2100
|
+
label: s(d)("hbLibComp.HbImportFile.fileLabel"),
|
|
2101
|
+
rules: [{ required: y.isRequired, message: s(d)("hbLibComp.HbImportFile.clickUp") }]
|
|
2102
|
+
}, {
|
|
2103
|
+
default: n(() => [
|
|
2104
|
+
w(f, {
|
|
2105
|
+
maxCount: y.maxCount,
|
|
2106
|
+
multiple: y.multiple,
|
|
2107
|
+
accept: y.acceptFile,
|
|
2108
|
+
name: "file",
|
|
2109
|
+
fileList: r.fileList,
|
|
2110
|
+
onRemove: u,
|
|
2111
|
+
beforeUpload: i
|
|
2112
|
+
}, {
|
|
2113
|
+
default: n(() => [
|
|
2114
|
+
C("p", Zl, [
|
|
2115
|
+
w(s(_t), { style: { "font-size": "37px" } })
|
|
2116
|
+
]),
|
|
2117
|
+
C("p", Xl, [
|
|
2118
|
+
H(_(s(d)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2119
|
+
C("span", eo, _(s(d)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2120
|
+
]),
|
|
2121
|
+
C("p", to, _(s(d)("hbLibComp.HbFileUploadModal.format")) + ": " + _(y.acceptFile), 1)
|
|
2122
|
+
]),
|
|
2123
|
+
_: 1
|
|
2124
|
+
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
2125
|
+
]),
|
|
2126
|
+
_: 1
|
|
2127
|
+
}, 8, ["label", "rules"])
|
|
2128
|
+
]),
|
|
2129
|
+
_: 1
|
|
2130
|
+
}, 8, ["model"]),
|
|
2131
|
+
y.templateUrl ? (a(), S("p", lo, [
|
|
2132
|
+
C("a", {
|
|
2133
|
+
download: "Import_number-template.xlsx",
|
|
2134
|
+
href: y.templateUrl
|
|
2135
|
+
}, _(s(d)("hbLibComp.HbImportFile.downloadTemplate")), 9, oo)
|
|
2136
|
+
])) : B("", !0)
|
|
2137
|
+
]),
|
|
2138
|
+
_: 1
|
|
2139
|
+
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2140
|
+
Y(x.$slots, "default", {}, () => [
|
|
2141
|
+
w(A, {
|
|
2142
|
+
onClick: D,
|
|
2143
|
+
type: "primary"
|
|
2144
|
+
}, {
|
|
2145
|
+
default: n(() => [
|
|
2146
|
+
H(_(e.btnText), 1)
|
|
2147
|
+
]),
|
|
2148
|
+
_: 1
|
|
2149
|
+
})
|
|
2150
|
+
], !0)
|
|
2151
|
+
], 64);
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
}), no = /* @__PURE__ */ le(ao, [["__scopeId", "data-v-47fe70d9"]]), so = te(no), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2049
2155
|
__proto__: null,
|
|
2050
|
-
|
|
2051
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2156
|
+
HbLibImportFile: so
|
|
2157
|
+
}, Symbol.toStringTag, { value: "Module" })), ro = {
|
|
2052
2158
|
// 如果存在cpText时,K和V无效
|
|
2053
2159
|
cpText: {
|
|
2054
2160
|
type: String,
|
|
@@ -2089,52 +2195,52 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2089
2195
|
type: String,
|
|
2090
2196
|
default: "ab"
|
|
2091
2197
|
}
|
|
2092
|
-
},
|
|
2198
|
+
}, co = /* @__PURE__ */ ee({
|
|
2093
2199
|
name: "HbLibCopy",
|
|
2094
2200
|
__name: "copy",
|
|
2095
|
-
props:
|
|
2201
|
+
props: ro,
|
|
2096
2202
|
setup(e) {
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2099
|
-
|
|
2203
|
+
const b = e, d = z();
|
|
2204
|
+
dt(() => {
|
|
2205
|
+
d.value = b.data;
|
|
2100
2206
|
});
|
|
2101
|
-
const
|
|
2102
|
-
if (
|
|
2207
|
+
const p = E(() => {
|
|
2208
|
+
if (b.cpText) return b.cpText;
|
|
2103
2209
|
let m = "";
|
|
2104
|
-
if (
|
|
2105
|
-
if (Array.isArray(
|
|
2106
|
-
if (
|
|
2107
|
-
const
|
|
2108
|
-
m =
|
|
2210
|
+
if (b.data)
|
|
2211
|
+
if (Array.isArray(b.data)) {
|
|
2212
|
+
if (b.K && b.V && b.L) {
|
|
2213
|
+
const r = b.data.find((u) => u?.[b.K] === b.V);
|
|
2214
|
+
m = r ? r[b.L] : "";
|
|
2109
2215
|
}
|
|
2110
2216
|
} else
|
|
2111
|
-
|
|
2217
|
+
b.K && (m = b.data[b.K]);
|
|
2112
2218
|
return m;
|
|
2113
|
-
}),
|
|
2114
|
-
navigator.clipboard.writeText(
|
|
2115
|
-
|
|
2219
|
+
}), y = () => {
|
|
2220
|
+
navigator.clipboard.writeText(p.value).then(() => {
|
|
2221
|
+
Ae.success(b.copySuccessTip);
|
|
2116
2222
|
}).catch(() => {
|
|
2117
|
-
|
|
2223
|
+
Ae.error("复制失败");
|
|
2118
2224
|
});
|
|
2119
2225
|
};
|
|
2120
|
-
return (m,
|
|
2121
|
-
const
|
|
2122
|
-
return
|
|
2226
|
+
return (m, r) => {
|
|
2227
|
+
const u = P("a-tooltip");
|
|
2228
|
+
return p.value ? (a(), O(u, {
|
|
2123
2229
|
key: 0,
|
|
2124
2230
|
title: m.tooltipTitle
|
|
2125
2231
|
}, {
|
|
2126
|
-
default:
|
|
2127
|
-
|
|
2232
|
+
default: n(() => [
|
|
2233
|
+
C("i", {
|
|
2128
2234
|
class: V(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
2129
|
-
style:
|
|
2130
|
-
onClick:
|
|
2235
|
+
style: _e({ ...m.cpStyle }),
|
|
2236
|
+
onClick: $e(y, ["stop", "prevent"])
|
|
2131
2237
|
}, null, 6)
|
|
2132
2238
|
]),
|
|
2133
2239
|
_: 1
|
|
2134
|
-
}, 8, ["title"])) :
|
|
2240
|
+
}, 8, ["title"])) : B("", !0);
|
|
2135
2241
|
};
|
|
2136
2242
|
}
|
|
2137
|
-
}),
|
|
2243
|
+
}), uo = /* @__PURE__ */ le(co, [["__scopeId", "data-v-d5ca4420"]]), po = te(uo), bo = {
|
|
2138
2244
|
dragList: {
|
|
2139
2245
|
type: Array,
|
|
2140
2246
|
required: !0
|
|
@@ -2173,125 +2279,276 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2173
2279
|
type: String,
|
|
2174
2280
|
default: ""
|
|
2175
2281
|
}
|
|
2176
|
-
},
|
|
2282
|
+
}, mo = /* @__PURE__ */ ee({
|
|
2177
2283
|
name: "HbDrag",
|
|
2178
2284
|
__name: "index",
|
|
2179
|
-
props:
|
|
2285
|
+
props: bo,
|
|
2180
2286
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2181
|
-
setup(e, { emit:
|
|
2182
|
-
const
|
|
2183
|
-
|
|
2184
|
-
() =>
|
|
2185
|
-
(
|
|
2186
|
-
|
|
2287
|
+
setup(e, { emit: b }) {
|
|
2288
|
+
const d = e, p = ut([]);
|
|
2289
|
+
ne(
|
|
2290
|
+
() => d.dragList,
|
|
2291
|
+
(h) => {
|
|
2292
|
+
p.value = h;
|
|
2187
2293
|
},
|
|
2188
2294
|
{
|
|
2189
2295
|
deep: !0,
|
|
2190
2296
|
immediate: !0
|
|
2191
2297
|
}
|
|
2192
2298
|
);
|
|
2193
|
-
const
|
|
2194
|
-
console.log("drag start",
|
|
2195
|
-
},
|
|
2196
|
-
console.log("drag end",
|
|
2197
|
-
}, t = (
|
|
2198
|
-
console.log("drag add",
|
|
2199
|
-
},
|
|
2200
|
-
console.log("drag remove",
|
|
2299
|
+
const y = ze("drag"), m = b, r = (h) => {
|
|
2300
|
+
console.log("drag start", h), m("handleDragStart", h);
|
|
2301
|
+
}, u = (h) => {
|
|
2302
|
+
console.log("drag end", h), m("handleDragEnd", h);
|
|
2303
|
+
}, t = (h) => {
|
|
2304
|
+
console.log("drag add", h), m("handleDragAdd", h);
|
|
2305
|
+
}, i = (h) => {
|
|
2306
|
+
console.log("drag remove", h), m("handleDragRemove", h);
|
|
2201
2307
|
};
|
|
2202
|
-
return (
|
|
2203
|
-
class: V(
|
|
2308
|
+
return (h, D) => (a(), S("div", {
|
|
2309
|
+
class: V(s(y).b())
|
|
2204
2310
|
}, [
|
|
2205
|
-
|
|
2311
|
+
h.childrenType == "component" ? (a(), O(s(ve), X({
|
|
2206
2312
|
key: 0,
|
|
2207
|
-
modelValue:
|
|
2208
|
-
"onUpdate:modelValue":
|
|
2313
|
+
modelValue: p.value,
|
|
2314
|
+
"onUpdate:modelValue": D[0] || (D[0] = (x) => p.value = x),
|
|
2209
2315
|
"item-key": "key",
|
|
2210
|
-
class: { [
|
|
2211
|
-
},
|
|
2212
|
-
"ghost-class":
|
|
2213
|
-
onStart:
|
|
2214
|
-
onEnd:
|
|
2316
|
+
class: { [h.dragClass]: h.dragClass }
|
|
2317
|
+
}, h.$attrs, {
|
|
2318
|
+
"ghost-class": h.ghostClass,
|
|
2319
|
+
onStart: r,
|
|
2320
|
+
onEnd: u,
|
|
2215
2321
|
onAdd: t,
|
|
2216
|
-
onRemove:
|
|
2322
|
+
onRemove: i
|
|
2217
2323
|
}), {
|
|
2218
|
-
item:
|
|
2219
|
-
(a(),
|
|
2324
|
+
item: n(({ element: x }) => [
|
|
2325
|
+
(a(), O(pt(x.component)))
|
|
2220
2326
|
]),
|
|
2221
2327
|
_: 1
|
|
2222
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (a(),
|
|
2328
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (a(), O(s(ve), X({
|
|
2223
2329
|
key: 1,
|
|
2224
|
-
modelValue:
|
|
2225
|
-
"onUpdate:modelValue":
|
|
2330
|
+
modelValue: p.value,
|
|
2331
|
+
"onUpdate:modelValue": D[1] || (D[1] = (x) => p.value = x),
|
|
2226
2332
|
"item-key": "id",
|
|
2227
|
-
class: { [
|
|
2228
|
-
},
|
|
2229
|
-
"ghost-class":
|
|
2230
|
-
onStart:
|
|
2231
|
-
onEnd:
|
|
2333
|
+
class: { [h.dragClass]: h.dragClass }
|
|
2334
|
+
}, h.$attrs, {
|
|
2335
|
+
"ghost-class": h.ghostClass,
|
|
2336
|
+
onStart: r,
|
|
2337
|
+
onEnd: u,
|
|
2232
2338
|
onAdd: t,
|
|
2233
|
-
onRemove:
|
|
2339
|
+
onRemove: i
|
|
2234
2340
|
}), {
|
|
2235
|
-
item:
|
|
2236
|
-
|
|
2237
|
-
Y(
|
|
2341
|
+
item: n(({ element: x }) => [
|
|
2342
|
+
C("div", null, [
|
|
2343
|
+
Y(h.$slots, "default", { item: x }, void 0, !0)
|
|
2238
2344
|
])
|
|
2239
2345
|
]),
|
|
2240
2346
|
_: 3
|
|
2241
2347
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2242
2348
|
], 2));
|
|
2243
2349
|
}
|
|
2244
|
-
}),
|
|
2350
|
+
}), fo = /* @__PURE__ */ le(mo, [["__scopeId", "data-v-15b227f5"]]), ho = te(fo), vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2351
|
+
__proto__: null,
|
|
2352
|
+
HbLibFuncCompCopy: po,
|
|
2353
|
+
HbLibFuncCompDrag: ho
|
|
2354
|
+
}, Symbol.toStringTag, { value: "Module" })), go = { class: "log_remark" }, yo = /* @__PURE__ */ ee({
|
|
2355
|
+
name: "HbLibLogModal",
|
|
2356
|
+
__name: "HbLogModal",
|
|
2357
|
+
props: {
|
|
2358
|
+
visible: { type: Boolean, default: !1 },
|
|
2359
|
+
title: { default: "" },
|
|
2360
|
+
width: { default: "45%" },
|
|
2361
|
+
scrollY: { default: 500 },
|
|
2362
|
+
params: { default: () => ({}) },
|
|
2363
|
+
url: {},
|
|
2364
|
+
columns: { default: void 0 },
|
|
2365
|
+
logBtnText: { default: "查看日志" },
|
|
2366
|
+
pagination: {},
|
|
2367
|
+
getLogData: {}
|
|
2368
|
+
},
|
|
2369
|
+
emits: ["update:visible"],
|
|
2370
|
+
setup(e, { expose: b, emit: d }) {
|
|
2371
|
+
const { t: p } = re(), y = e, m = [
|
|
2372
|
+
{
|
|
2373
|
+
title: p("hbLibComp.HbLogModal.operator"),
|
|
2374
|
+
dataIndex: "userName",
|
|
2375
|
+
width: "15%"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
title: p("hbLibComp.HbLogModal.operateTime"),
|
|
2379
|
+
dataIndex: "operateTime",
|
|
2380
|
+
width: "25%"
|
|
2381
|
+
},
|
|
2382
|
+
{ title: p("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2383
|
+
], r = E(() => y.columns || m), u = E(() => y.title || p("hbLibComp.HbLogModal.operateLogs")), t = z(!1), i = ye({
|
|
2384
|
+
list: [],
|
|
2385
|
+
pagination: {
|
|
2386
|
+
current: 1,
|
|
2387
|
+
pageSize: 20,
|
|
2388
|
+
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2389
|
+
showQuickJumper: !0,
|
|
2390
|
+
showSizeChanger: !0,
|
|
2391
|
+
showTotal: (v, T) => T[0] + "-" + T[1] + " 总共" + v + "页",
|
|
2392
|
+
total: 0
|
|
2393
|
+
}
|
|
2394
|
+
});
|
|
2395
|
+
ne(
|
|
2396
|
+
() => y.pagination,
|
|
2397
|
+
(v) => {
|
|
2398
|
+
v && (i.pagination = {
|
|
2399
|
+
...i.pagination,
|
|
2400
|
+
...v
|
|
2401
|
+
});
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
deep: !0,
|
|
2405
|
+
immediate: !0
|
|
2406
|
+
}
|
|
2407
|
+
);
|
|
2408
|
+
const h = (v = 1) => {
|
|
2409
|
+
const T = {
|
|
2410
|
+
pageIndex: v,
|
|
2411
|
+
pageSize: i.pagination.pageSize,
|
|
2412
|
+
query: y.params
|
|
2413
|
+
};
|
|
2414
|
+
y.getLogData && (t.value = !0, y.getLogData(T).then((A) => {
|
|
2415
|
+
Number(A.code) == 200 && (i.pagination.current = v, i.pagination.total = Number(A.data.total), i.list = A.data.records || []);
|
|
2416
|
+
}).finally(() => {
|
|
2417
|
+
t.value = !1;
|
|
2418
|
+
}));
|
|
2419
|
+
}, D = (v) => {
|
|
2420
|
+
i.pagination.current = v.current, i.pagination.pageSize = v.pageSize, h();
|
|
2421
|
+
}, x = () => {
|
|
2422
|
+
i.list = [], g("update:visible", !1);
|
|
2423
|
+
}, U = () => {
|
|
2424
|
+
g("update:visible", !0);
|
|
2425
|
+
}, f = (v, T = "YYYY-MM-DD HH:mm:ss") => v ? Le(v).format(T) : "", g = d;
|
|
2426
|
+
return ne(
|
|
2427
|
+
() => y.visible,
|
|
2428
|
+
(v) => {
|
|
2429
|
+
v && h();
|
|
2430
|
+
}
|
|
2431
|
+
), b({
|
|
2432
|
+
close: x,
|
|
2433
|
+
loading: t
|
|
2434
|
+
}), (v, T) => {
|
|
2435
|
+
const A = P("a-tooltip"), I = P("HbLibCopy"), q = P("a-table"), o = P("a-button"), l = P("a-modal");
|
|
2436
|
+
return a(), S(j, null, [
|
|
2437
|
+
w(l, {
|
|
2438
|
+
visible: e.visible,
|
|
2439
|
+
title: u.value,
|
|
2440
|
+
width: e.width,
|
|
2441
|
+
onCancel: x
|
|
2442
|
+
}, {
|
|
2443
|
+
footer: n(() => [
|
|
2444
|
+
w(o, { onClick: x }, {
|
|
2445
|
+
default: n(() => [
|
|
2446
|
+
H(_(s(p)("hbLibComp.HbLogModal.close")), 1)
|
|
2447
|
+
]),
|
|
2448
|
+
_: 1
|
|
2449
|
+
})
|
|
2450
|
+
]),
|
|
2451
|
+
default: n(() => [
|
|
2452
|
+
w(q, {
|
|
2453
|
+
bordered: "",
|
|
2454
|
+
rowKey: "id",
|
|
2455
|
+
columns: r.value,
|
|
2456
|
+
dataSource: i.list,
|
|
2457
|
+
pagination: i.pagination,
|
|
2458
|
+
loading: t.value,
|
|
2459
|
+
onChange: D
|
|
2460
|
+
}, {
|
|
2461
|
+
bodyCell: n(({ column: c, record: L }) => [
|
|
2462
|
+
c && c.needTooltip ? (a(), S(j, { key: 0 }, [
|
|
2463
|
+
c.needTooltip ? (a(), O(A, { key: 0 }, {
|
|
2464
|
+
title: n(() => [
|
|
2465
|
+
H(_(L[c.dataIndex]), 1)
|
|
2466
|
+
]),
|
|
2467
|
+
default: n(() => [
|
|
2468
|
+
H(" " + _(L[c.dataIndex]), 1)
|
|
2469
|
+
]),
|
|
2470
|
+
_: 2
|
|
2471
|
+
}, 1024)) : B("", !0)
|
|
2472
|
+
], 64)) : B("", !0),
|
|
2473
|
+
c && c.needCopy ? (a(), S(j, { key: 1 }, [
|
|
2474
|
+
C("div", go, _(L[c.dataIndex]), 1),
|
|
2475
|
+
w(I, {
|
|
2476
|
+
"cp-text": L[c.dataIndex],
|
|
2477
|
+
style: { position: "relative" }
|
|
2478
|
+
}, null, 8, ["cp-text"])
|
|
2479
|
+
], 64)) : B("", !0),
|
|
2480
|
+
c && c.needFormat ? (a(), S(j, { key: 2 }, [
|
|
2481
|
+
H(_(f(L[c.dataIndex], c.operateTime)), 1)
|
|
2482
|
+
], 64)) : B("", !0)
|
|
2483
|
+
]),
|
|
2484
|
+
_: 1
|
|
2485
|
+
}, 8, ["columns", "dataSource", "pagination", "loading"])
|
|
2486
|
+
]),
|
|
2487
|
+
_: 1
|
|
2488
|
+
}, 8, ["visible", "title", "width"]),
|
|
2489
|
+
Y(v.$slots, "default", {}, () => [
|
|
2490
|
+
w(o, { onClick: U }, {
|
|
2491
|
+
default: n(() => [
|
|
2492
|
+
H(_(e.logBtnText), 1)
|
|
2493
|
+
]),
|
|
2494
|
+
_: 1
|
|
2495
|
+
})
|
|
2496
|
+
], !0)
|
|
2497
|
+
], 64);
|
|
2498
|
+
};
|
|
2499
|
+
}
|
|
2500
|
+
}), Co = /* @__PURE__ */ le(yo, [["__scopeId", "data-v-cee51270"]]), _o = te(Co), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2245
2501
|
__proto__: null,
|
|
2246
|
-
|
|
2247
|
-
HbLibFuncCompDrag: lo
|
|
2502
|
+
HbLibLogModal: _o
|
|
2248
2503
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2249
|
-
let
|
|
2250
|
-
...
|
|
2251
|
-
...
|
|
2252
|
-
...
|
|
2504
|
+
let Ze = {
|
|
2505
|
+
...Kl,
|
|
2506
|
+
...Ql,
|
|
2507
|
+
...io,
|
|
2508
|
+
...Lo,
|
|
2509
|
+
...vo
|
|
2253
2510
|
};
|
|
2254
|
-
const
|
|
2255
|
-
hbLibComp:
|
|
2256
|
-
},
|
|
2257
|
-
hbLibComp:
|
|
2258
|
-
},
|
|
2259
|
-
hbLibComp:
|
|
2260
|
-
},
|
|
2261
|
-
hbLibComp:
|
|
2511
|
+
const ko = { 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" } }, So = {
|
|
2512
|
+
hbLibComp: ko
|
|
2513
|
+
}, wo = { 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: "書類" } }, Fo = {
|
|
2514
|
+
hbLibComp: wo
|
|
2515
|
+
}, To = { 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: "文件上传" } }, xo = {
|
|
2516
|
+
hbLibComp: To
|
|
2517
|
+
}, $o = { 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" } }, Io = {
|
|
2518
|
+
hbLibComp: $o
|
|
2262
2519
|
};
|
|
2263
|
-
var he = { exports: {} },
|
|
2264
|
-
function
|
|
2265
|
-
return
|
|
2266
|
-
(function(
|
|
2267
|
-
e.exports =
|
|
2268
|
-
})(
|
|
2269
|
-
function
|
|
2270
|
-
return
|
|
2520
|
+
var he = { exports: {} }, Mo = he.exports, Xe;
|
|
2521
|
+
function Ho() {
|
|
2522
|
+
return Xe || (Xe = 1, (function(e, b) {
|
|
2523
|
+
(function(d, p) {
|
|
2524
|
+
e.exports = p(Le);
|
|
2525
|
+
})(Mo, (function(d) {
|
|
2526
|
+
function p(r) {
|
|
2527
|
+
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
2271
2528
|
}
|
|
2272
|
-
var
|
|
2273
|
-
return
|
|
2274
|
-
}, 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(
|
|
2275
|
-
var t = 100 *
|
|
2529
|
+
var y = p(d), m = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(r, u) {
|
|
2530
|
+
return u === "W" ? r + "周" : r + "日";
|
|
2531
|
+
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(r, u) {
|
|
2532
|
+
var t = 100 * r + u;
|
|
2276
2533
|
return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";
|
|
2277
2534
|
} };
|
|
2278
|
-
return
|
|
2535
|
+
return y.default.locale(m, null, !0), m;
|
|
2279
2536
|
}));
|
|
2280
2537
|
})(he)), he.exports;
|
|
2281
2538
|
}
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
const
|
|
2285
|
-
en_US:
|
|
2286
|
-
ja_JP:
|
|
2287
|
-
zh_CN:
|
|
2288
|
-
de_DE:
|
|
2289
|
-
},
|
|
2290
|
-
Object.keys(
|
|
2291
|
-
e.use(
|
|
2539
|
+
Ho();
|
|
2540
|
+
Le.locale("zh-cn");
|
|
2541
|
+
const Vo = {
|
|
2542
|
+
en_US: So,
|
|
2543
|
+
ja_JP: Fo,
|
|
2544
|
+
zh_CN: xo,
|
|
2545
|
+
de_DE: Io
|
|
2546
|
+
}, Eo = function(e) {
|
|
2547
|
+
Object.keys(Ze).forEach((d) => {
|
|
2548
|
+
e.use(Ze[d]);
|
|
2292
2549
|
});
|
|
2293
2550
|
};
|
|
2294
2551
|
export {
|
|
2295
|
-
|
|
2296
|
-
|
|
2552
|
+
Eo as install,
|
|
2553
|
+
Vo as locales
|
|
2297
2554
|
};
|