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