@hb-hellotech/hb-ui 1.3.8-beta.10.5 → 1.3.8-beta.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +8 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/type.d.ts +4 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/type.d.ts.map +1 -1
- package/dist/components/hooks/useCalTableHeight.d.ts +1 -0
- package/dist/components/hooks/useCalTableHeight.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +746 -750
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as le, reactive as Te, ref as N, computed as q, watch as ie, onMounted as ve, createElementBlock as S, openBlock as n, normalizeClass as K, unref as
|
|
2
|
+
import { defineComponent as le, reactive as Te, ref as N, computed as q, watch as ie, onMounted as ve, createElementBlock as S, openBlock as n, normalizeClass as K, unref as p, createVNode as _, withCtx as o, createElementVNode as g, toDisplayString as C, createTextVNode as $, createBlock as z, createCommentVNode as B, Fragment as E, renderList as ne, inject as Ee, resolveComponent as R, Transition as mt, withDirectives as re, mergeProps as te, createSlots as je, renderSlot as Y, vShow as vt, nextTick as be, onUnmounted as Ve, useTemplateRef as gt, provide as yt, normalizeStyle as xe, mergeModels as Ae, useModel as ut, withModifiers as Ce, resolveDirective as Ct, useAttrs as Lt, watchEffect as _t, shallowRef as kt, resolveDynamicComponent as St } from "vue";
|
|
3
3
|
import Le from "vuedraggable";
|
|
4
4
|
import { Modal as Oe, Button as ze, Tooltip as Be, Switch as Ke, Radio as We, RadioGroup as Je, InputNumber as Ge, DatePicker as Qe, Checkbox as _e, CheckboxGroup as Ze, Select as Pe, Input as Xe, Col as wt, Row as Tt, FormItem as et, Form as tt, SelectOption as Ne, Popconfirm as He, MenuItem as lt, Menu as ot, Dropdown as at, Popover as xt, message as ke } from "ant-design-vue";
|
|
5
5
|
import { useRoute as ft } from "vue-router";
|
|
@@ -11,7 +11,7 @@ import Fe from "dayjs";
|
|
|
11
11
|
const Ot = "hb-", Ye = (e = "") => {
|
|
12
12
|
const i = `${Ot}${e}`;
|
|
13
13
|
return zt(i);
|
|
14
|
-
}, pe = (e, i,
|
|
14
|
+
}, pe = (e, i, s, u) => (i && (e += `-${i}`), s && (e += `__${s}`), u && (e += `--${u}`), e), zt = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (i) => i ? pe(e, i, "", "") : pe(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -19,13 +19,13 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
19
19
|
// hb-button--primary
|
|
20
20
|
m: (i) => pe(e, "", "", i),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (i,
|
|
22
|
+
be: (i, s) => pe(e, i, s, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (i,
|
|
24
|
+
em: (i, s) => pe(e, "", i, s),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (i,
|
|
26
|
+
bem: (i, s, u) => pe(e, i, s, u),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (i,
|
|
28
|
+
is: (i, s) => s ? `is-${i}` : ""
|
|
29
29
|
}), Bt = ["onMouseenter", "onMouseleave"], Pt = ["onClick"], Nt = /* @__PURE__ */ le({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
@@ -38,32 +38,32 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(e, { expose: i, emit:
|
|
42
|
-
const u = ce().t, y = ce().messages.value.en_US,
|
|
41
|
+
setup(e, { expose: i, emit: s }) {
|
|
42
|
+
const u = ce().t, y = ce().messages.value.en_US, v = ce().messages.value.ja_JP, d = ce().messages.value.zh_CN, r = e, c = s, a = Ye("sfcm"), L = ft(), I = Te({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), x = N(!1), U = N(600);
|
|
45
|
-
let
|
|
46
|
-
const
|
|
45
|
+
let D = [];
|
|
46
|
+
const h = N([]), b = N([]), H = q(() => h.value.every((k) => k.isLinked || k.isFixed)), F = (k) => ({
|
|
47
47
|
...k,
|
|
48
48
|
label: t(k) || `${l(k) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: k.key,
|
|
50
50
|
isFixed: k?.isFixed || !1,
|
|
51
51
|
isLinked: k?.isLinked || !1,
|
|
52
52
|
labelLanguage: k?.labelLanguage || void 0
|
|
53
|
-
}),
|
|
54
|
-
const P = k.draggedContext.element,
|
|
53
|
+
}), M = (k) => {
|
|
54
|
+
const P = k.draggedContext.element, O = k.relatedContext.index;
|
|
55
55
|
if (P.isLinked || P.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const Z =
|
|
57
|
+
const Z = h.value.map((X, de) => ({ item: X, index: de })).filter(({ item: X }) => X.isLinked).map(({ index: X }) => X);
|
|
58
58
|
if (Z.length === 0)
|
|
59
59
|
return !0;
|
|
60
60
|
for (let X = 0; X < Z.length - 1; X++) {
|
|
61
61
|
const de = Z[X], fe = Z[X + 1];
|
|
62
|
-
if (
|
|
62
|
+
if (O > de && O < fe)
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
},
|
|
66
|
+
}, T = q(() => m() + "_" + r.saveKey), m = () => {
|
|
67
67
|
const k = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let P = "anonymous";
|
|
69
69
|
if (k)
|
|
@@ -72,34 +72,34 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
72
72
|
} catch (Z) {
|
|
73
73
|
console.warn("解析用户信息失败:", Z);
|
|
74
74
|
}
|
|
75
|
-
let
|
|
76
|
-
return `searchFormConfig_${P}_${
|
|
75
|
+
let O = L?.path;
|
|
76
|
+
return `searchFormConfig_${P}_${O}`;
|
|
77
77
|
}, t = (k) => ({
|
|
78
|
-
ja_JP: () => he.get(
|
|
78
|
+
ja_JP: () => he.get(v, k.labelLanguage || ""),
|
|
79
79
|
en_US: () => he.get(y, k.labelLanguage || ""),
|
|
80
|
-
zh_CN: () => he.get(
|
|
81
|
-
})[
|
|
82
|
-
ja_JP: () => he.get(
|
|
80
|
+
zh_CN: () => he.get(d, k.labelLanguage || "")
|
|
81
|
+
})[I.lan]?.() || k.label, l = (k) => ({
|
|
82
|
+
ja_JP: () => he.get(v, k.subLabelLanguage || ""),
|
|
83
83
|
en_US: () => he.get(y, k.subLabelLanguage || ""),
|
|
84
|
-
zh_CN: () => he.get(
|
|
85
|
-
})[
|
|
84
|
+
zh_CN: () => he.get(d, k.subLabelLanguage || "")
|
|
85
|
+
})[I.lan]?.() || k.subLabel, f = (k) => {
|
|
86
86
|
try {
|
|
87
|
-
const P = localStorage.getItem(
|
|
87
|
+
const P = localStorage.getItem(T.value);
|
|
88
88
|
if (P) {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
const Z =
|
|
93
|
-
...
|
|
89
|
+
const O = JSON.parse(P);
|
|
90
|
+
if (O.originalList && Array.isArray(O.originalList)) {
|
|
91
|
+
D = JSON.parse(JSON.stringify(O.originalList));
|
|
92
|
+
const Z = D.filter((G) => G?.isFixed), X = D.filter((G) => G?.isLinked), de = O.showList.filter((G) => !G.isFixed && !G.isLinked), fe = r.showNumber && r.showNumber > 0 ? Math.max(0, r.showNumber - Z.length - X.length) : de.length, ge = Z.map((G) => ({
|
|
93
|
+
...F(G)
|
|
94
94
|
})), $e = X.map((G) => ({
|
|
95
|
-
...
|
|
95
|
+
...F(G)
|
|
96
96
|
})), Me = de.slice(0, fe).map((G) => ({
|
|
97
|
-
...
|
|
97
|
+
...F(G)
|
|
98
98
|
}));
|
|
99
|
-
console.log("我进来了这里2233"),
|
|
100
|
-
const Ie =
|
|
101
|
-
return b.value =
|
|
102
|
-
...
|
|
99
|
+
console.log("我进来了这里2233"), h.value = [...ge, ...$e, ...Me];
|
|
100
|
+
const Ie = h.value.map((G) => G.key), ee = D.map((G) => G.key).filter((G) => !Ie.includes(G));
|
|
101
|
+
return b.value = D.filter((G) => ee.includes(G.key)).map((G) => ({
|
|
102
|
+
...F(G),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
105
105
|
}
|
|
@@ -108,11 +108,11 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
108
108
|
console.warn("加载保存的搜索配置失败:", P);
|
|
109
109
|
}
|
|
110
110
|
return !1;
|
|
111
|
-
},
|
|
111
|
+
}, A = () => {
|
|
112
112
|
try {
|
|
113
113
|
const k = {
|
|
114
|
-
originalList:
|
|
115
|
-
showList:
|
|
114
|
+
originalList: D,
|
|
115
|
+
showList: h.value.map((P) => ({
|
|
116
116
|
...P,
|
|
117
117
|
key: P.key,
|
|
118
118
|
label: P.label,
|
|
@@ -121,29 +121,29 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
121
121
|
labelLanguage: P?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(
|
|
124
|
+
localStorage.setItem(T.value, JSON.stringify(k));
|
|
125
125
|
} catch (k) {
|
|
126
126
|
console.warn("保存搜索配置失败:", k);
|
|
127
127
|
}
|
|
128
128
|
}, j = q(() => {
|
|
129
|
-
const k =
|
|
130
|
-
return k >=
|
|
129
|
+
const k = h.value.filter((O) => !O.isFixed && !O.isLinked).length, P = h.value.filter((O) => O.isFixed || O.isLinked).length;
|
|
130
|
+
return k >= r.showNumber - P;
|
|
131
131
|
});
|
|
132
132
|
ie(
|
|
133
|
-
() =>
|
|
133
|
+
() => r.list,
|
|
134
134
|
(k) => {
|
|
135
|
-
let P = JSON.stringify(
|
|
135
|
+
let P = JSON.stringify(h.value) !== JSON.stringify(k);
|
|
136
136
|
if (!P)
|
|
137
137
|
return;
|
|
138
|
-
const
|
|
138
|
+
const O = localStorage.getItem(T.value), Z = JSON.parse(O || "{}");
|
|
139
139
|
if (Z && Z?.originalList && Array.isArray(Z.originalList))
|
|
140
|
-
|
|
140
|
+
f(), c("confirm", h.value);
|
|
141
141
|
else if (P) {
|
|
142
|
-
|
|
143
|
-
const X = k.filter((ee) => ee?.isFixed), de = k.filter((ee) => ee?.isLinked), fe = k.filter((ee) => !ee?.isFixed && !ee?.isLinked), ge =
|
|
144
|
-
|
|
142
|
+
D = JSON.parse(JSON.stringify(k));
|
|
143
|
+
const X = k.filter((ee) => ee?.isFixed), de = k.filter((ee) => ee?.isLinked), fe = k.filter((ee) => !ee?.isFixed && !ee?.isLinked), ge = r.showNumber && r.showNumber > 0 ? Math.max(0, r.showNumber - X.length - de.length) : fe.length, $e = X.map((ee) => F(ee)), Me = de.map((ee) => F(ee)), Ie = fe.slice(0, ge).map((ee) => F(ee));
|
|
144
|
+
h.value = [...$e, ...Me, ...Ie];
|
|
145
145
|
const qe = fe.slice(ge).map((ee) => ({
|
|
146
|
-
...
|
|
146
|
+
...F(ee),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
149
|
b.value = qe;
|
|
@@ -152,27 +152,27 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
154
|
const Q = (k) => {
|
|
155
|
-
const P =
|
|
156
|
-
P !== -1 && (
|
|
155
|
+
const P = h.value.findIndex((O) => O.key === k.key);
|
|
156
|
+
P !== -1 && (h.value.splice(P, 1), b.value.push({ ...k, active: !1 }));
|
|
157
157
|
}, ue = (k) => {
|
|
158
158
|
if (j.value)
|
|
159
159
|
return;
|
|
160
|
-
const P = b.value.findIndex((
|
|
160
|
+
const P = b.value.findIndex((O) => O.key === k.key);
|
|
161
161
|
if (P !== -1) {
|
|
162
|
-
const [
|
|
163
|
-
|
|
162
|
+
const [O] = b.value.splice(P, 1);
|
|
163
|
+
h.value.push({ ...O, active: !1 });
|
|
164
164
|
}
|
|
165
165
|
}, J = () => {
|
|
166
166
|
x.value = !1;
|
|
167
167
|
}, W = () => {
|
|
168
168
|
x.value = !0;
|
|
169
169
|
}, w = () => {
|
|
170
|
-
|
|
170
|
+
A(), c("confirm", h.value), J();
|
|
171
171
|
}, se = (k) => {
|
|
172
|
-
const P = b.value.findIndex((
|
|
172
|
+
const P = b.value.findIndex((O) => O.key === k.key);
|
|
173
173
|
P !== -1 && (b.value[P].active = !0);
|
|
174
174
|
}, V = (k) => {
|
|
175
|
-
const P = b.value.findIndex((
|
|
175
|
+
const P = b.value.findIndex((O) => O.key === k.key);
|
|
176
176
|
P !== -1 && (b.value[P].active = !1);
|
|
177
177
|
};
|
|
178
178
|
return i({
|
|
@@ -180,28 +180,28 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
180
180
|
}), ve(() => {
|
|
181
181
|
console.log("我是保存的搜索条件");
|
|
182
182
|
}), (k, P) => (n(), S("div", {
|
|
183
|
-
class: K(
|
|
183
|
+
class: K(p(a).b())
|
|
184
184
|
}, [
|
|
185
|
-
_(
|
|
185
|
+
_(p(Oe), {
|
|
186
186
|
visible: x.value,
|
|
187
|
-
"onUpdate:visible": P[1] || (P[1] = (
|
|
187
|
+
"onUpdate:visible": P[1] || (P[1] = (O) => x.value = O),
|
|
188
188
|
width: U.value,
|
|
189
189
|
onCancel: J,
|
|
190
190
|
onOk: w
|
|
191
191
|
}, {
|
|
192
192
|
title: o(() => [
|
|
193
193
|
g("div", {
|
|
194
|
-
class: K(
|
|
194
|
+
class: K(p(a).e("title"))
|
|
195
195
|
}, C(e.title), 3)
|
|
196
196
|
]),
|
|
197
197
|
footer: o(() => [
|
|
198
|
-
_(
|
|
198
|
+
_(p(ze), { onClick: J }, {
|
|
199
199
|
default: o(() => [
|
|
200
200
|
$(C(k.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
201
201
|
]),
|
|
202
202
|
_: 1
|
|
203
203
|
}),
|
|
204
|
-
_(
|
|
204
|
+
_(p(ze), {
|
|
205
205
|
type: "primary",
|
|
206
206
|
onClick: w
|
|
207
207
|
}, {
|
|
@@ -213,36 +213,36 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
213
213
|
]),
|
|
214
214
|
default: o(() => [
|
|
215
215
|
g("section", {
|
|
216
|
-
class: K(
|
|
216
|
+
class: K(p(a).e("show"))
|
|
217
217
|
}, [
|
|
218
218
|
g("div", {
|
|
219
|
-
class: K(
|
|
219
|
+
class: K(p(a).e("show__title"))
|
|
220
220
|
}, [
|
|
221
221
|
g("span", {
|
|
222
|
-
class: K(
|
|
222
|
+
class: K(p(a).e("title__tip"))
|
|
223
223
|
}, C(k.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
224
224
|
g("span", null, C(k.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(e.showNumber) + C(k.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
225
225
|
], 2),
|
|
226
226
|
g("div", {
|
|
227
|
-
class: K(
|
|
227
|
+
class: K(p(a).e("show__tag"))
|
|
228
228
|
}, [
|
|
229
|
-
_(
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
229
|
+
_(p(Le), {
|
|
230
|
+
modelValue: h.value,
|
|
231
|
+
"onUpdate:modelValue": P[0] || (P[0] = (O) => h.value = O),
|
|
232
232
|
"item-key": "key",
|
|
233
233
|
tag: "div",
|
|
234
|
-
disabled:
|
|
235
|
-
move:
|
|
234
|
+
disabled: H.value,
|
|
235
|
+
move: M
|
|
236
236
|
}, {
|
|
237
|
-
item: o(({ element:
|
|
237
|
+
item: o(({ element: O }) => [
|
|
238
238
|
g("div", {
|
|
239
|
-
class: K([
|
|
239
|
+
class: K([p(a).e("show__tag__item"), p(a).is("fixed", O.isFixed), p(a).is("linked", O.isLinked)])
|
|
240
240
|
}, [
|
|
241
|
-
$(C(
|
|
242
|
-
!
|
|
241
|
+
$(C(O.label) + " ", 1),
|
|
242
|
+
!O.isFixed && !O.isLinked && e.list.length > 1 ? (n(), z(p(Ft), {
|
|
243
243
|
key: 0,
|
|
244
|
-
class: K(
|
|
245
|
-
onClick: (Z) => Q(
|
|
244
|
+
class: K(p(a).e("show__tag__item-close")),
|
|
245
|
+
onClick: (Z) => Q(O)
|
|
246
246
|
}, null, 8, ["class", "onClick"])) : B("", !0)
|
|
247
247
|
], 2)
|
|
248
248
|
]),
|
|
@@ -251,33 +251,33 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
251
251
|
], 2)
|
|
252
252
|
], 2),
|
|
253
253
|
g("section", {
|
|
254
|
-
class: K(
|
|
254
|
+
class: K(p(a).e("unshow"))
|
|
255
255
|
}, [
|
|
256
256
|
g("div", {
|
|
257
|
-
class: K(
|
|
257
|
+
class: K(p(a).e("show__title"))
|
|
258
258
|
}, [
|
|
259
259
|
g("span", {
|
|
260
|
-
class: K(
|
|
260
|
+
class: K(p(a).e("title__tip"))
|
|
261
261
|
}, C(k.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
262
262
|
], 2),
|
|
263
263
|
g("div", {
|
|
264
|
-
class: K(
|
|
264
|
+
class: K(p(a).e("unshow__tag"))
|
|
265
265
|
}, [
|
|
266
|
-
b.value.length > 0 ? (n(!0), S(E, { key: 0 }, ne(b.value, (
|
|
267
|
-
class: K([
|
|
268
|
-
key:
|
|
269
|
-
onMouseenter: (Z) => se(
|
|
270
|
-
onMouseleave: (Z) => V(
|
|
266
|
+
b.value.length > 0 ? (n(!0), S(E, { key: 0 }, ne(b.value, (O) => (n(), S("div", {
|
|
267
|
+
class: K([p(a).e("unshow__tag__item"), p(a).is("fixed", O.isFixed || ""), p(a).is("linked", O.isLinked || "")]),
|
|
268
|
+
key: O.key,
|
|
269
|
+
onMouseenter: (Z) => se(O),
|
|
270
|
+
onMouseleave: (Z) => V(O)
|
|
271
271
|
}, [
|
|
272
|
-
$(C(
|
|
273
|
-
|
|
272
|
+
$(C(O.label) + " ", 1),
|
|
273
|
+
O.active ? (n(), S("aside", {
|
|
274
274
|
key: 0,
|
|
275
|
-
class: K(
|
|
276
|
-
onClick: (Z) => ue(
|
|
275
|
+
class: K(p(a).e("unshow__tag__item-add")),
|
|
276
|
+
onClick: (Z) => ue(O)
|
|
277
277
|
}, C(k.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Pt)) : B("", !0)
|
|
278
278
|
], 42, Bt))), 128)) : (n(), S("div", {
|
|
279
279
|
key: 1,
|
|
280
|
-
class: K(
|
|
280
|
+
class: K(p(a).e("unshow__tag__empty"))
|
|
281
281
|
}, C(k.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
282
282
|
], 2)
|
|
283
283
|
], 2)
|
|
@@ -287,10 +287,10 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
287
287
|
], 2));
|
|
288
288
|
}
|
|
289
289
|
}), ae = (e, i) => {
|
|
290
|
-
const
|
|
290
|
+
const s = e.__vccOpts || e;
|
|
291
291
|
for (const [u, y] of i)
|
|
292
|
-
|
|
293
|
-
return
|
|
292
|
+
s[u] = y;
|
|
293
|
+
return s;
|
|
294
294
|
}, Rt = /* @__PURE__ */ ae(Nt, [["__scopeId", "data-v-abe66e59"]]), oe = (e) => (e.install = (i) => {
|
|
295
295
|
i.component(e.name || "AnonymousComponent", e);
|
|
296
296
|
}, e), Ut = oe(Rt), Et = {
|
|
@@ -327,47 +327,47 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
327
327
|
} }
|
|
328
328
|
},
|
|
329
329
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
330
|
-
setup(e, { expose: i, emit:
|
|
331
|
-
const u =
|
|
330
|
+
setup(e, { expose: i, emit: s }) {
|
|
331
|
+
const u = s, y = Ee("HB_LIST_PAGE_CONTAINER"), v = q(() => r.searchList || []), d = Ye("form"), r = e, c = N("show"), a = q(() => [...r.items]), L = q(() => [...r.items].map((l) => ({
|
|
332
332
|
...l,
|
|
333
333
|
label: l.label?.includes("多项搜索") ? "" : l.label
|
|
334
|
-
}))),
|
|
334
|
+
}))), I = q(() => r.saveKey), x = N(), U = () => {
|
|
335
335
|
u("handleSearch");
|
|
336
|
-
},
|
|
336
|
+
}, D = () => {
|
|
337
337
|
u("handleReset");
|
|
338
|
-
},
|
|
339
|
-
|
|
340
|
-
},
|
|
338
|
+
}, h = N(), b = () => {
|
|
339
|
+
h.value && h.value.toOpenModal();
|
|
340
|
+
}, H = (l) => {
|
|
341
341
|
u("handleMenuClick", l);
|
|
342
|
-
},
|
|
342
|
+
}, F = (l) => {
|
|
343
343
|
u("handleSfcmConfirm", l);
|
|
344
344
|
};
|
|
345
345
|
ie(
|
|
346
|
-
() =>
|
|
346
|
+
() => r.isFormExpanded,
|
|
347
347
|
(l) => {
|
|
348
348
|
if (l) {
|
|
349
349
|
console.log(l);
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
const f = document.querySelector("#subpackage_container");
|
|
351
|
+
f instanceof HTMLElement && (f.style.overflow = "hidden", setTimeout(() => {
|
|
352
|
+
f.style.overflow = "auto";
|
|
353
353
|
}, 500));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
);
|
|
357
|
-
const
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
const
|
|
362
|
-
|
|
357
|
+
const M = (l) => {
|
|
358
|
+
const f = l;
|
|
359
|
+
f.style.height = "", f.offsetHeight;
|
|
360
|
+
}, T = (l) => {
|
|
361
|
+
const f = l;
|
|
362
|
+
f.style.height = "", f.style.overflow = "", be(() => {
|
|
363
363
|
y.calTableHeight && y.calTableHeight();
|
|
364
364
|
});
|
|
365
|
-
},
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
368
|
-
const j =
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
}, m = (l) => {
|
|
366
|
+
const f = l, A = f.querySelector(".hb-lib-form--container");
|
|
367
|
+
if (A) {
|
|
368
|
+
const j = A.offsetHeight;
|
|
369
|
+
f.style.height = j + "px", f.style.overflow = "hidden", f.offsetHeight, requestAnimationFrame(() => {
|
|
370
|
+
f.style.height = "0";
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
}, t = () => {
|
|
@@ -393,28 +393,28 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
393
393
|
Switch: Ke,
|
|
394
394
|
Button: ze,
|
|
395
395
|
Tooltip: Be
|
|
396
|
-
}), (l,
|
|
397
|
-
const
|
|
396
|
+
}), (l, f) => {
|
|
397
|
+
const A = R("a-button"), j = R("a-tooltip"), Q = R("a-menu-item"), ue = R("a-menu"), J = R("a-dropdown"), W = R("HbLibFormItemFilterModal");
|
|
398
398
|
return n(), S(E, null, [
|
|
399
399
|
_(mt, {
|
|
400
400
|
name: "form-collapse",
|
|
401
|
-
onEnter:
|
|
402
|
-
onAfterEnter:
|
|
403
|
-
onLeave:
|
|
401
|
+
onEnter: M,
|
|
402
|
+
onAfterEnter: T,
|
|
403
|
+
onLeave: m,
|
|
404
404
|
onAfterLeave: t
|
|
405
405
|
}, {
|
|
406
406
|
default: o(() => [
|
|
407
407
|
re(g("div", {
|
|
408
|
-
class: K([
|
|
408
|
+
class: K([p(d).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", e.needFooter ? "isNeedFooterCss" : ""])
|
|
409
409
|
}, [
|
|
410
|
-
_(
|
|
410
|
+
_(p(tt), te(l.$attrs, {
|
|
411
411
|
model: e.formData,
|
|
412
412
|
ref_key: "formRef",
|
|
413
413
|
ref: x,
|
|
414
|
-
class: ["hb-lib-form--container",
|
|
414
|
+
class: ["hb-lib-form--container", c.value == "show" ? "" : "hide"]
|
|
415
415
|
}), {
|
|
416
416
|
default: o(() => [
|
|
417
|
-
(n(!0), S(E, null, ne(L.value, (w, se) => (n(), z(
|
|
417
|
+
(n(!0), S(E, null, ne(L.value, (w, se) => (n(), z(p(et), te({
|
|
418
418
|
key: se,
|
|
419
419
|
ref_for: !0
|
|
420
420
|
}, w, {
|
|
@@ -432,18 +432,18 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
432
432
|
formData: e.formData,
|
|
433
433
|
item: w
|
|
434
434
|
}, void 0, !0) : B("", !0),
|
|
435
|
-
w.type === "input" ? (n(), z(
|
|
435
|
+
w.type === "input" ? (n(), z(p(Xe), te({
|
|
436
436
|
key: 2,
|
|
437
437
|
value: e.formData[w.key],
|
|
438
438
|
"onUpdate:value": (V) => e.formData[w.key] = V
|
|
439
439
|
}, { ref_for: !0 }, w.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
440
|
-
w.type === "select" ? (n(), z(
|
|
440
|
+
w.type === "select" ? (n(), z(p(Pe), te({
|
|
441
441
|
key: 3,
|
|
442
442
|
value: e.formData[w.key],
|
|
443
443
|
"onUpdate:value": (V) => e.formData[w.key] = V
|
|
444
444
|
}, { ref_for: !0 }, w.attrs), {
|
|
445
445
|
default: o(() => [
|
|
446
|
-
(n(!0), S(E, null, ne(w.options, (V, k) => (n(), z(
|
|
446
|
+
(n(!0), S(E, null, ne(w.options, (V, k) => (n(), z(p(Ne), {
|
|
447
447
|
key: k,
|
|
448
448
|
value: V.value
|
|
449
449
|
}, {
|
|
@@ -455,13 +455,13 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
455
455
|
]),
|
|
456
456
|
_: 2
|
|
457
457
|
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
458
|
-
w.type === "checkbox" ? (n(), z(
|
|
458
|
+
w.type === "checkbox" ? (n(), z(p(Ze), te({
|
|
459
459
|
key: 4,
|
|
460
460
|
value: e.formData[w.key],
|
|
461
461
|
"onUpdate:value": (V) => e.formData[w.key] = V
|
|
462
462
|
}, { ref_for: !0 }, w.attrs), {
|
|
463
463
|
default: o(() => [
|
|
464
|
-
(n(!0), S(E, null, ne(w.options, (V, k) => (n(), z(
|
|
464
|
+
(n(!0), S(E, null, ne(w.options, (V, k) => (n(), z(p(_e), {
|
|
465
465
|
key: k,
|
|
466
466
|
value: V.value
|
|
467
467
|
}, {
|
|
@@ -473,23 +473,23 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
473
473
|
]),
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
476
|
-
w.type === "date-picker" ? (n(), z(
|
|
476
|
+
w.type === "date-picker" ? (n(), z(p(Qe), te({
|
|
477
477
|
key: 5,
|
|
478
478
|
value: e.formData[w.key],
|
|
479
479
|
"onUpdate:value": (V) => e.formData[w.key] = V
|
|
480
480
|
}, { ref_for: !0 }, w.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
481
|
-
w.type === "input-number" ? (n(), z(
|
|
481
|
+
w.type === "input-number" ? (n(), z(p(Ge), te({
|
|
482
482
|
key: 6,
|
|
483
483
|
value: e.formData[w.key],
|
|
484
484
|
"onUpdate:value": (V) => e.formData[w.key] = V
|
|
485
485
|
}, { ref_for: !0 }, w.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
486
|
-
w.type === "radio" ? (n(), z(
|
|
486
|
+
w.type === "radio" ? (n(), z(p(Je), te({
|
|
487
487
|
key: 7,
|
|
488
488
|
value: e.formData[w.key],
|
|
489
489
|
"onUpdate:value": (V) => e.formData[w.key] = V
|
|
490
490
|
}, { ref_for: !0 }, w.attrs), {
|
|
491
491
|
default: o(() => [
|
|
492
|
-
(n(!0), S(E, null, ne(w.options, (V, k) => (n(), z(
|
|
492
|
+
(n(!0), S(E, null, ne(w.options, (V, k) => (n(), z(p(We), {
|
|
493
493
|
key: k,
|
|
494
494
|
value: V.value
|
|
495
495
|
}, {
|
|
@@ -501,7 +501,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
501
501
|
]),
|
|
502
502
|
_: 2
|
|
503
503
|
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
504
|
-
w.type === "switch" ? (n(), z(
|
|
504
|
+
w.type === "switch" ? (n(), z(p(Ke), te({
|
|
505
505
|
key: 8,
|
|
506
506
|
checked: e.formData[w.key],
|
|
507
507
|
"onUpdate:checked": (V) => e.formData[w.key] = V
|
|
@@ -513,11 +513,11 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
513
513
|
name: "label",
|
|
514
514
|
fn: o(() => [
|
|
515
515
|
$(C(w.label) + " ", 1),
|
|
516
|
-
_(
|
|
516
|
+
_(p(Be), {
|
|
517
517
|
title: w.tooltip
|
|
518
518
|
}, {
|
|
519
519
|
default: o(() => [
|
|
520
|
-
_(
|
|
520
|
+
_(p($t), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
521
521
|
]),
|
|
522
522
|
_: 1
|
|
523
523
|
}, 8, ["title"])
|
|
@@ -526,22 +526,22 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
526
526
|
} : void 0
|
|
527
527
|
]), 1040, ["name", "class"]))), 128)),
|
|
528
528
|
e.needFooter ? B("", !0) : (n(), S("section", Et, [
|
|
529
|
-
_(
|
|
529
|
+
_(A, {
|
|
530
530
|
type: "primary",
|
|
531
531
|
onClick: U,
|
|
532
532
|
class: "hb_list_page_button"
|
|
533
533
|
}, {
|
|
534
534
|
icon: o(() => [
|
|
535
|
-
_(
|
|
535
|
+
_(p(Se))
|
|
536
536
|
]),
|
|
537
537
|
default: o(() => [
|
|
538
538
|
$(" " + C(l.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
541
541
|
}),
|
|
542
|
-
_(
|
|
542
|
+
_(A, {
|
|
543
543
|
type: "link",
|
|
544
|
-
onClick:
|
|
544
|
+
onClick: D
|
|
545
545
|
}, {
|
|
546
546
|
default: o(() => [
|
|
547
547
|
$(C(l.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
@@ -556,7 +556,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
556
556
|
g("span", {
|
|
557
557
|
class: "hb-lib-form-svg",
|
|
558
558
|
onClick: b
|
|
559
|
-
}, [...
|
|
559
|
+
}, [...f[0] || (f[0] = [
|
|
560
560
|
g("svg", {
|
|
561
561
|
t: "1757915025410",
|
|
562
562
|
class: "icon",
|
|
@@ -580,9 +580,9 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
580
580
|
Y(l.$slots, "formBtns", {}, () => [
|
|
581
581
|
e.needSearchCase ? (n(), z(J, { key: 0 }, {
|
|
582
582
|
overlay: o(() => [
|
|
583
|
-
_(ue, { onClick:
|
|
583
|
+
_(ue, { onClick: H }, {
|
|
584
584
|
default: o(() => [
|
|
585
|
-
(n(!0), S(E, null, ne(
|
|
585
|
+
(n(!0), S(E, null, ne(v.value, (w) => (n(), z(Q, {
|
|
586
586
|
key: w.id
|
|
587
587
|
}, {
|
|
588
588
|
default: o(() => [
|
|
@@ -610,7 +610,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
610
610
|
_(j, {
|
|
611
611
|
title: l.$t("hbLibComp.hbLibListForm.queryCase")
|
|
612
612
|
}, {
|
|
613
|
-
default: o(() => [...
|
|
613
|
+
default: o(() => [...f[1] || (f[1] = [
|
|
614
614
|
g("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
615
615
|
g("svg", {
|
|
616
616
|
t: "1765936014161",
|
|
@@ -650,36 +650,36 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
650
650
|
}, 16, ["model", "class"]),
|
|
651
651
|
e.needFooter ? (n(), S("div", {
|
|
652
652
|
key: 0,
|
|
653
|
-
class: K([
|
|
653
|
+
class: K([p(d).e("footer"), "form-footer"])
|
|
654
654
|
}, [
|
|
655
655
|
g("div", {
|
|
656
|
-
class: K(
|
|
656
|
+
class: K(p(d).e("footer__left"))
|
|
657
657
|
}, [
|
|
658
658
|
Y(l.$slots, "form-footer-left", {}, void 0, !0)
|
|
659
659
|
], 2),
|
|
660
660
|
g("div", {
|
|
661
|
-
class: K(
|
|
661
|
+
class: K(p(d).e("footer__right"))
|
|
662
662
|
}, [
|
|
663
|
-
|
|
663
|
+
c.value == "show" ? Y(l.$slots, "form-footer-right", {
|
|
664
664
|
key: 0,
|
|
665
665
|
formRef: x.value
|
|
666
666
|
}, () => [
|
|
667
|
-
_(
|
|
667
|
+
_(A, {
|
|
668
668
|
type: "primary",
|
|
669
669
|
onClick: U,
|
|
670
670
|
class: "hb_list_page_button"
|
|
671
671
|
}, {
|
|
672
672
|
icon: o(() => [
|
|
673
|
-
_(
|
|
673
|
+
_(p(Se))
|
|
674
674
|
]),
|
|
675
675
|
default: o(() => [
|
|
676
676
|
$(" " + C(l.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
677
677
|
]),
|
|
678
678
|
_: 1
|
|
679
679
|
}),
|
|
680
|
-
_(
|
|
680
|
+
_(A, {
|
|
681
681
|
type: "link",
|
|
682
|
-
onClick:
|
|
682
|
+
onClick: D,
|
|
683
683
|
class: "hb_list_page_button"
|
|
684
684
|
}, {
|
|
685
685
|
default: o(() => [
|
|
@@ -695,7 +695,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
695
695
|
g("span", {
|
|
696
696
|
class: "hb-lib-form-svg",
|
|
697
697
|
onClick: b
|
|
698
|
-
}, [...
|
|
698
|
+
}, [...f[2] || (f[2] = [
|
|
699
699
|
g("svg", {
|
|
700
700
|
t: "1757915025410",
|
|
701
701
|
class: "icon",
|
|
@@ -719,9 +719,9 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
719
719
|
Y(l.$slots, "formBtns", {}, () => [
|
|
720
720
|
e.needSearchCase ? (n(), z(J, { key: 0 }, {
|
|
721
721
|
overlay: o(() => [
|
|
722
|
-
_(ue, { onClick:
|
|
722
|
+
_(ue, { onClick: H }, {
|
|
723
723
|
default: o(() => [
|
|
724
|
-
(n(!0), S(E, null, ne(
|
|
724
|
+
(n(!0), S(E, null, ne(v.value, (w) => (n(), z(Q, {
|
|
725
725
|
key: w.id
|
|
726
726
|
}, {
|
|
727
727
|
default: o(() => [
|
|
@@ -749,7 +749,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
749
749
|
_(j, {
|
|
750
750
|
title: l.$t("hbLibComp.hbLibListForm.queryCase")
|
|
751
751
|
}, {
|
|
752
|
-
default: o(() => [...
|
|
752
|
+
default: o(() => [...f[3] || (f[3] = [
|
|
753
753
|
g("span", {
|
|
754
754
|
class: "hb-lib-form-svg",
|
|
755
755
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -798,9 +798,9 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
798
798
|
_(W, {
|
|
799
799
|
list: a.value,
|
|
800
800
|
ref_key: "HbSfCmRef",
|
|
801
|
-
ref:
|
|
802
|
-
onConfirm:
|
|
803
|
-
saveKey:
|
|
801
|
+
ref: h,
|
|
802
|
+
onConfirm: F,
|
|
803
|
+
saveKey: I.value
|
|
804
804
|
}, null, 8, ["list", "saveKey"])
|
|
805
805
|
], 64);
|
|
806
806
|
};
|
|
@@ -835,63 +835,63 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
835
835
|
setup(e) {
|
|
836
836
|
const i = e;
|
|
837
837
|
Ee("HB_LIST_PAGE_CONTAINER");
|
|
838
|
-
const { isFullscreen:
|
|
838
|
+
const { isFullscreen: s, toggle: u } = pt(document.body);
|
|
839
839
|
ie(
|
|
840
|
-
() =>
|
|
841
|
-
(
|
|
842
|
-
const
|
|
843
|
-
setTimeout(
|
|
840
|
+
() => s.value,
|
|
841
|
+
(r) => {
|
|
842
|
+
const c = /* @__PURE__ */ new Map();
|
|
843
|
+
setTimeout(r ? () => {
|
|
844
844
|
if (i.hideDomList?.length)
|
|
845
845
|
for (let a = 0; a < i.hideDomList.length; a++) {
|
|
846
846
|
const L = document.querySelector(i.hideDomList[a]);
|
|
847
|
-
L && (
|
|
847
|
+
L && (c.set(i.hideDomList[a], L.style.display), L.style.display = "none");
|
|
848
848
|
}
|
|
849
849
|
} : () => {
|
|
850
850
|
if (i.hideDomList?.length)
|
|
851
851
|
for (let a = 0; a < i.hideDomList.length; a++) {
|
|
852
852
|
const L = document.querySelector(i.hideDomList[a]);
|
|
853
853
|
if (L) {
|
|
854
|
-
const
|
|
855
|
-
L.style.display =
|
|
854
|
+
const I = c.get(i.hideDomList[a]);
|
|
855
|
+
L.style.display = I || "", c.delete(i.hideDomList[a]);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
}, 0);
|
|
859
859
|
}
|
|
860
860
|
);
|
|
861
|
-
const y = N(""),
|
|
862
|
-
const
|
|
863
|
-
let
|
|
864
|
-
if (
|
|
865
|
-
let L = JSON.parse(
|
|
861
|
+
const y = N(""), v = () => {
|
|
862
|
+
const r = ft();
|
|
863
|
+
let c = localStorage.getItem("BreadCrumb") || "[]", a = r?.path;
|
|
864
|
+
if (c !== "[]") {
|
|
865
|
+
let L = JSON.parse(c).find((I) => I.value === a);
|
|
866
866
|
L && (y.value = L.label.replace(/-/g, " / "));
|
|
867
867
|
}
|
|
868
868
|
};
|
|
869
869
|
ve(() => {
|
|
870
|
-
|
|
870
|
+
v();
|
|
871
871
|
});
|
|
872
|
-
const
|
|
873
|
-
|
|
872
|
+
const d = (r) => {
|
|
873
|
+
r.keyCode === 192 && u();
|
|
874
874
|
};
|
|
875
875
|
return ve(() => {
|
|
876
|
-
window.addEventListener("keydown",
|
|
876
|
+
window.addEventListener("keydown", d);
|
|
877
877
|
}), Ve(() => {
|
|
878
|
-
window.removeEventListener("keydown",
|
|
879
|
-
}), (
|
|
878
|
+
window.removeEventListener("keydown", d);
|
|
879
|
+
}), (r, c) => {
|
|
880
880
|
const a = R("a-tooltip");
|
|
881
881
|
return n(), S("section", qt, [
|
|
882
882
|
g("aside", Kt, C(y.value), 1),
|
|
883
883
|
g("aside", Wt, [
|
|
884
884
|
_(a, {
|
|
885
|
-
title:
|
|
885
|
+
title: p(s) ? `${r.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${r.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
886
886
|
placement: "leftTop"
|
|
887
887
|
}, {
|
|
888
888
|
default: o(() => [
|
|
889
889
|
g("span", {
|
|
890
890
|
class: "hb-lib-list-page-act-svg",
|
|
891
|
-
onClick:
|
|
892
|
-
(...L) =>
|
|
891
|
+
onClick: c[0] || (c[0] = //@ts-ignore
|
|
892
|
+
(...L) => p(u) && p(u)(...L))
|
|
893
893
|
}, [
|
|
894
|
-
|
|
894
|
+
p(s) ? (n(), S("svg", Gt, [...c[2] || (c[2] = [
|
|
895
895
|
g("path", {
|
|
896
896
|
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",
|
|
897
897
|
fill: "#ff5000",
|
|
@@ -907,7 +907,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
907
907
|
fill: "#ff5000",
|
|
908
908
|
"p-id": "23907"
|
|
909
909
|
}, null, -1)
|
|
910
|
-
])])) : (n(), S("svg", Jt, [...
|
|
910
|
+
])])) : (n(), S("svg", Jt, [...c[1] || (c[1] = [
|
|
911
911
|
g("path", {
|
|
912
912
|
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",
|
|
913
913
|
fill: "#ff5000",
|
|
@@ -918,7 +918,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
918
918
|
]),
|
|
919
919
|
_: 1
|
|
920
920
|
}, 8, ["title"]),
|
|
921
|
-
Y(
|
|
921
|
+
Y(r.$slots, "listAct", {}, void 0, !0)
|
|
922
922
|
])
|
|
923
923
|
]);
|
|
924
924
|
};
|
|
@@ -932,32 +932,32 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
932
932
|
},
|
|
933
933
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
934
934
|
setup(e, { emit: i }) {
|
|
935
|
-
const
|
|
936
|
-
u.value = !u.value,
|
|
937
|
-
},
|
|
938
|
-
|
|
939
|
-
},
|
|
935
|
+
const s = i, u = N(!0), y = () => {
|
|
936
|
+
u.value = !u.value, s("handleOpenOrClose", u.value);
|
|
937
|
+
}, v = () => {
|
|
938
|
+
s("handleReload");
|
|
939
|
+
}, d = (r) => {
|
|
940
940
|
};
|
|
941
941
|
return ve(() => {
|
|
942
|
-
window.addEventListener("keydown",
|
|
942
|
+
window.addEventListener("keydown", d);
|
|
943
943
|
}), Ve(() => {
|
|
944
|
-
window.removeEventListener("keydown",
|
|
945
|
-
}), (
|
|
944
|
+
window.removeEventListener("keydown", d);
|
|
945
|
+
}), (r, c) => {
|
|
946
946
|
const a = R("a-tooltip");
|
|
947
947
|
return n(), S("section", el, [
|
|
948
948
|
g("aside", tl, [
|
|
949
|
-
Y(
|
|
949
|
+
Y(r.$slots, "btnsLeft", {}, void 0, !0)
|
|
950
950
|
]),
|
|
951
951
|
g("aside", ll, [
|
|
952
952
|
e.needReload ? (n(), z(a, {
|
|
953
953
|
key: 0,
|
|
954
|
-
title:
|
|
954
|
+
title: r.$t("hbLibComp.hbListBtnsAct.reload")
|
|
955
955
|
}, {
|
|
956
956
|
default: o(() => [
|
|
957
957
|
g("span", {
|
|
958
958
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
959
|
-
onClick:
|
|
960
|
-
}, [...
|
|
959
|
+
onClick: v
|
|
960
|
+
}, [...c[0] || (c[0] = [
|
|
961
961
|
g("svg", {
|
|
962
962
|
t: "1759041224819",
|
|
963
963
|
class: "icon",
|
|
@@ -980,17 +980,17 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
980
980
|
}, 8, ["title"])) : B("", !0),
|
|
981
981
|
e.needOpenOrClose ? (n(), z(a, {
|
|
982
982
|
key: 1,
|
|
983
|
-
title: u.value ? `${
|
|
983
|
+
title: u.value ? `${r.$t("hbLibComp.hbListBtnsAct.close")}` : `${r.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
984
984
|
}, {
|
|
985
985
|
default: o(() => [
|
|
986
986
|
g("span", {
|
|
987
987
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
988
988
|
onClick: y
|
|
989
989
|
}, [
|
|
990
|
-
u.value ? (n(), z(
|
|
990
|
+
u.value ? (n(), z(p(Mt), {
|
|
991
991
|
key: 0,
|
|
992
992
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
993
|
-
})) : (n(), z(
|
|
993
|
+
})) : (n(), z(p(It), {
|
|
994
994
|
key: 1,
|
|
995
995
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
996
996
|
}))
|
|
@@ -998,34 +998,34 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
998
998
|
]),
|
|
999
999
|
_: 1
|
|
1000
1000
|
}, 8, ["title"])) : B("", !0),
|
|
1001
|
-
Y(
|
|
1001
|
+
Y(r.$slots, "btnsRight", {}, void 0, !0)
|
|
1002
1002
|
])
|
|
1003
1003
|
]);
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
1006
|
}), al = /* @__PURE__ */ ae(ol, [["__scopeId", "data-v-de62f20a"]]), nl = oe(al), il = (e = {}) => {
|
|
1007
|
-
const { formRef: i, offsetBottom:
|
|
1008
|
-
let
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1007
|
+
const { formRef: i, offsetBottom: s = 50, minHeight: u = 300, timeOut: y = 100 } = e, v = N(0);
|
|
1008
|
+
let d = null, r = null, c = null, a = null, L = null;
|
|
1009
|
+
const I = () => {
|
|
1010
|
+
L && clearTimeout(L), L = setTimeout(() => {
|
|
1011
1011
|
requestAnimationFrame(() => {
|
|
1012
1012
|
be(() => {
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1015
|
-
const
|
|
1016
|
-
let
|
|
1017
|
-
|
|
1013
|
+
const F = document.querySelector(".ant-table"), M = document.querySelector(".ant-pagination");
|
|
1014
|
+
if (F) {
|
|
1015
|
+
const T = Math.floor(F.getBoundingClientRect().top), m = window.innerHeight, l = (M ? M.offsetHeight + 20 : 40) + s;
|
|
1016
|
+
let f = m - T - l;
|
|
1017
|
+
f < u && (f = u), v.value = f;
|
|
1018
1018
|
}
|
|
1019
1019
|
});
|
|
1020
1020
|
});
|
|
1021
1021
|
}, 100);
|
|
1022
|
-
},
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1022
|
+
}, x = () => {
|
|
1023
|
+
const F = document.querySelector(".ant-pagination");
|
|
1024
|
+
if (F) {
|
|
1025
1025
|
const M = new MutationObserver(() => {
|
|
1026
|
-
|
|
1026
|
+
I();
|
|
1027
1027
|
});
|
|
1028
|
-
return M.observe(
|
|
1028
|
+
return M.observe(F, {
|
|
1029
1029
|
childList: !0,
|
|
1030
1030
|
subtree: !0,
|
|
1031
1031
|
attributes: !0,
|
|
@@ -1033,51 +1033,51 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1033
1033
|
}), M;
|
|
1034
1034
|
}
|
|
1035
1035
|
return null;
|
|
1036
|
-
}, x = () => {
|
|
1037
|
-
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1038
|
-
T && (h = new ResizeObserver(() => {
|
|
1039
|
-
document.querySelectorAll(".ant-tooltip").forEach((I) => {
|
|
1040
|
-
I.style.display = "none";
|
|
1041
|
-
}), L();
|
|
1042
|
-
}), h.observe(T));
|
|
1043
1036
|
}, U = () => {
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1037
|
+
const F = document.querySelector(".hb-lib-list-page-form-box");
|
|
1038
|
+
F && (d = new ResizeObserver(() => {
|
|
1039
|
+
document.querySelectorAll(".ant-tooltip").forEach((T) => {
|
|
1040
|
+
T.style.display = "none";
|
|
1041
|
+
}), I();
|
|
1042
|
+
}), d.observe(F));
|
|
1043
|
+
}, D = () => {
|
|
1044
|
+
const F = document.querySelector(".hb-lib-list-page-form-box");
|
|
1045
|
+
F && (c = new MutationObserver(() => {
|
|
1046
1046
|
setTimeout(() => {
|
|
1047
|
-
|
|
1048
|
-
},
|
|
1049
|
-
}),
|
|
1047
|
+
I();
|
|
1048
|
+
}, y);
|
|
1049
|
+
}), c.observe(F, {
|
|
1050
1050
|
childList: !0,
|
|
1051
1051
|
subtree: !0,
|
|
1052
1052
|
attributes: !0,
|
|
1053
1053
|
attributeFilter: ["style", "class"]
|
|
1054
1054
|
}));
|
|
1055
|
-
},
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
},
|
|
1059
|
-
}, m = () => {
|
|
1060
|
-
window.addEventListener("resize", H), be(() => {
|
|
1061
|
-
x(), U(), c = O();
|
|
1062
|
-
});
|
|
1055
|
+
}, h = () => {
|
|
1056
|
+
a && clearTimeout(a), a = setTimeout(() => {
|
|
1057
|
+
I();
|
|
1058
|
+
}, y);
|
|
1063
1059
|
}, b = () => {
|
|
1064
|
-
window.
|
|
1060
|
+
window.addEventListener("resize", h), be(() => {
|
|
1061
|
+
U(), D(), r = x();
|
|
1062
|
+
});
|
|
1063
|
+
}, H = () => {
|
|
1064
|
+
window.removeEventListener("resize", h), d && d.disconnect(), c && c.disconnect(), r && r.disconnect(), a && clearTimeout(a), L && clearTimeout(L);
|
|
1065
1065
|
};
|
|
1066
1066
|
return i && ie(
|
|
1067
1067
|
() => i,
|
|
1068
1068
|
() => {
|
|
1069
1069
|
setTimeout(() => {
|
|
1070
|
-
|
|
1070
|
+
I();
|
|
1071
1071
|
}, 200);
|
|
1072
1072
|
},
|
|
1073
1073
|
{ deep: !0 }
|
|
1074
1074
|
), ve(() => {
|
|
1075
|
-
|
|
1075
|
+
I(), b();
|
|
1076
1076
|
}), Ve(() => {
|
|
1077
|
-
|
|
1077
|
+
H();
|
|
1078
1078
|
}), {
|
|
1079
|
-
tableHeight:
|
|
1080
|
-
calTableHeight:
|
|
1079
|
+
tableHeight: v,
|
|
1080
|
+
calTableHeight: I
|
|
1081
1081
|
};
|
|
1082
1082
|
}, sl = /* @__PURE__ */ le({
|
|
1083
1083
|
name: "HbLibListPageContainer",
|
|
@@ -1086,34 +1086,36 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1086
1086
|
tableHeight: { default: 400 },
|
|
1087
1087
|
tabelData: { default: () => [] },
|
|
1088
1088
|
offsetBottom: { default: 20 },
|
|
1089
|
-
minHeight: {}
|
|
1089
|
+
minHeight: {},
|
|
1090
|
+
timeOut: {}
|
|
1090
1091
|
},
|
|
1091
1092
|
setup(e) {
|
|
1092
|
-
const { isFullscreen: i } = pt(document.body),
|
|
1093
|
-
offsetBottom:
|
|
1093
|
+
const { isFullscreen: i } = pt(document.body), s = e, u = gt("PageContainerRef"), { calTableHeight: y, tableHeight: v } = il({
|
|
1094
|
+
offsetBottom: s.offsetBottom || 20,
|
|
1094
1095
|
// 底部预留空间
|
|
1095
|
-
minHeight:
|
|
1096
|
+
minHeight: s.minHeight || 300,
|
|
1096
1097
|
// table最小高度 请勿随便修改!!
|
|
1097
|
-
|
|
1098
|
+
timeOut: s.timeOut || 100
|
|
1099
|
+
}), d = q(() => v.value);
|
|
1098
1100
|
return yt("HB_LIST_PAGE_CONTAINER", {
|
|
1099
1101
|
PageContainerRef: u,
|
|
1100
1102
|
// 通过函数访问,
|
|
1101
|
-
tableHeight:
|
|
1103
|
+
tableHeight: v,
|
|
1102
1104
|
calTableHeight: y
|
|
1103
|
-
}), (
|
|
1105
|
+
}), (r, c) => (n(), S("section", {
|
|
1104
1106
|
class: "hb-lib-list-page-container",
|
|
1105
1107
|
ref_key: "PageContainerRef",
|
|
1106
1108
|
ref: u
|
|
1107
1109
|
}, [
|
|
1108
|
-
Y(
|
|
1110
|
+
Y(r.$slots, "header"),
|
|
1109
1111
|
g("section", {
|
|
1110
1112
|
class: "list-page-box",
|
|
1111
1113
|
style: xe({
|
|
1112
|
-
"--hb-list-table-height":
|
|
1113
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
1114
|
+
"--hb-list-table-height": p(i) ? d.value - 110 + "px" : d.value - s.offsetBottom + "px",
|
|
1115
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : p(i) ? d.value - 110 + "px" : d.value - s.offsetBottom + "px"
|
|
1114
1116
|
})
|
|
1115
1117
|
}, [
|
|
1116
|
-
Y(
|
|
1118
|
+
Y(r.$slots, "default")
|
|
1117
1119
|
], 4)
|
|
1118
1120
|
], 512));
|
|
1119
1121
|
}
|
|
@@ -1150,66 +1152,66 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1150
1152
|
}),
|
|
1151
1153
|
emits: /* @__PURE__ */ Ae(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1152
1154
|
setup(e, { emit: i }) {
|
|
1153
|
-
const
|
|
1154
|
-
if (
|
|
1155
|
-
const
|
|
1156
|
-
return
|
|
1157
|
-
}), L = q(() =>
|
|
1155
|
+
const s = e, u = i, y = ut(e, "value"), v = N(!1), d = N(""), r = N([]), c = N(), a = q(() => {
|
|
1156
|
+
if (s.remoteSearch || !d.value) return s.options;
|
|
1157
|
+
const m = d.value.toLowerCase();
|
|
1158
|
+
return s.options.filter((t) => t.label.toLowerCase().includes(m) || t.description?.toLowerCase().includes(m));
|
|
1159
|
+
}), L = q(() => s.prefix ? `${s.prefix.length * 14 + 8}px` : "0px"), I = q(() => a.value.length === 0 ? !1 : a.value.every((m) => r.value.includes(m.value))), x = q(() => {
|
|
1158
1160
|
if (a.value.length === 0) return !1;
|
|
1159
|
-
const
|
|
1160
|
-
return
|
|
1161
|
+
const m = a.value.filter((t) => r.value.includes(t.value)).length;
|
|
1162
|
+
return m > 0 && m < a.value.length;
|
|
1161
1163
|
});
|
|
1162
1164
|
ie(
|
|
1163
1165
|
() => y.value,
|
|
1164
|
-
(
|
|
1165
|
-
|
|
1166
|
+
(m) => {
|
|
1167
|
+
m ? r.value = Array.isArray(m) ? [...m] : [m] : r.value = [];
|
|
1166
1168
|
},
|
|
1167
1169
|
{ immediate: !0 }
|
|
1168
1170
|
), ie(
|
|
1169
|
-
() =>
|
|
1170
|
-
(
|
|
1171
|
-
|
|
1171
|
+
() => s.searchValue,
|
|
1172
|
+
(m) => {
|
|
1173
|
+
s.remoteSearch && m !== void 0 && (d.value = m);
|
|
1172
1174
|
},
|
|
1173
1175
|
{ immediate: !0 }
|
|
1174
1176
|
);
|
|
1175
|
-
const U = (
|
|
1176
|
-
|
|
1177
|
-
if (
|
|
1178
|
-
const t =
|
|
1177
|
+
const U = (m) => {
|
|
1178
|
+
m && (v.value = m, D.value = [...r.value], d.value = "", setTimeout(() => {
|
|
1179
|
+
if (c.value) {
|
|
1180
|
+
const t = c.value.input || c.value.$el?.querySelector("input");
|
|
1179
1181
|
t && t.focus();
|
|
1180
1182
|
}
|
|
1181
1183
|
}, 100));
|
|
1182
|
-
},
|
|
1183
|
-
|
|
1184
|
-
}, b = N([]),
|
|
1185
|
-
const
|
|
1186
|
-
b.value = t, console.log(
|
|
1187
|
-
},
|
|
1188
|
-
const t =
|
|
1189
|
-
|
|
1190
|
-
}, 300),
|
|
1191
|
-
if (
|
|
1192
|
-
const t = new Set(
|
|
1193
|
-
t.has(
|
|
1184
|
+
}, D = N([]), h = () => {
|
|
1185
|
+
r.value = [...D.value], v.value = !1, u("cancel");
|
|
1186
|
+
}, b = N([]), H = () => {
|
|
1187
|
+
const m = s.multiple ? r.value : r.value[0] || "", t = s.options.filter((l) => r.value.includes(l.value));
|
|
1188
|
+
b.value = t, console.log(m, t), D.value = [...r.value], y.value = m, u("update:value", m), u("change", m, t), u("confirm", m, t), v.value = !1;
|
|
1189
|
+
}, F = At((m) => {
|
|
1190
|
+
const t = m !== void 0 ? m : d.value;
|
|
1191
|
+
s.remoteSearch && (u("search", t), u("update:searchValue", t));
|
|
1192
|
+
}, 300), M = (m) => {
|
|
1193
|
+
if (s.multiple) {
|
|
1194
|
+
const t = new Set(r.value);
|
|
1195
|
+
t.has(m.value) ? t.delete(m.value) : t.add(m.value), r.value = Array.from(t);
|
|
1194
1196
|
} else
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
if (
|
|
1198
|
-
const l = new Set(
|
|
1199
|
-
a.value.forEach((
|
|
1200
|
-
l.add(
|
|
1201
|
-
}),
|
|
1197
|
+
r.value = [m.value], H();
|
|
1198
|
+
}, T = (m) => {
|
|
1199
|
+
if (m.target.checked) {
|
|
1200
|
+
const l = new Set(r.value);
|
|
1201
|
+
a.value.forEach((f) => {
|
|
1202
|
+
l.add(f.value);
|
|
1203
|
+
}), r.value = Array.from(l);
|
|
1202
1204
|
} else {
|
|
1203
|
-
const l = new Set(a.value.map((
|
|
1204
|
-
|
|
1205
|
+
const l = new Set(a.value.map((f) => f.value));
|
|
1206
|
+
r.value = r.value.filter((f) => !l.has(f));
|
|
1205
1207
|
}
|
|
1206
1208
|
};
|
|
1207
|
-
return (
|
|
1208
|
-
const l = R("a-tag"),
|
|
1209
|
+
return (m, t) => {
|
|
1210
|
+
const l = R("a-tag"), f = R("a-input"), A = R("a-checkbox"), j = R("a-radio"), Q = R("a-button"), ue = R("a-select");
|
|
1209
1211
|
return n(), S("div", te({
|
|
1210
1212
|
class: "hb-lib-selector-wrapper",
|
|
1211
1213
|
style: { "--prefix-width": L.value }
|
|
1212
|
-
},
|
|
1214
|
+
}, m.$attrs), [
|
|
1213
1215
|
_(ue, {
|
|
1214
1216
|
value: y.value,
|
|
1215
1217
|
"onUpdate:value": t[5] || (t[5] = (J) => y.value = J),
|
|
@@ -1217,12 +1219,12 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1217
1219
|
placeholder: e.placeholder,
|
|
1218
1220
|
"show-search": !0,
|
|
1219
1221
|
"filter-option": !1,
|
|
1220
|
-
open:
|
|
1222
|
+
open: v.value,
|
|
1221
1223
|
allowClear: "",
|
|
1222
1224
|
maxTagCount: e.maxTagCount,
|
|
1223
1225
|
options: a.value,
|
|
1224
1226
|
onDropdownVisibleChange: U,
|
|
1225
|
-
onSearch:
|
|
1227
|
+
onSearch: p(F),
|
|
1226
1228
|
"max-tag-text-length": e.tagTextLength,
|
|
1227
1229
|
class: K({ "has-prefix": e.prefix }),
|
|
1228
1230
|
"data-prefix": e.prefix,
|
|
@@ -1243,18 +1245,18 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1243
1245
|
dropdownRender: o(({ menuNode: J }) => [
|
|
1244
1246
|
g("div", ul, [
|
|
1245
1247
|
g("div", fl, [
|
|
1246
|
-
_(
|
|
1248
|
+
_(f, {
|
|
1247
1249
|
ref_key: "searchInputRef",
|
|
1248
|
-
ref:
|
|
1250
|
+
ref: c,
|
|
1249
1251
|
class: "hb-lib-selector-search-input",
|
|
1250
|
-
value:
|
|
1251
|
-
"onUpdate:value": t[1] || (t[1] = (W) =>
|
|
1252
|
+
value: d.value,
|
|
1253
|
+
"onUpdate:value": t[1] || (t[1] = (W) => d.value = W),
|
|
1252
1254
|
placeholder: "请输入关键词搜索",
|
|
1253
1255
|
"allow-clear": "",
|
|
1254
|
-
onInput: t[2] || (t[2] = (W) =>
|
|
1256
|
+
onInput: t[2] || (t[2] = (W) => p(F)(W.target.value))
|
|
1255
1257
|
}, {
|
|
1256
1258
|
prefix: o(() => [
|
|
1257
|
-
_(
|
|
1259
|
+
_(p(Se))
|
|
1258
1260
|
]),
|
|
1259
1261
|
_: 1
|
|
1260
1262
|
}, 8, ["value"])
|
|
@@ -1262,19 +1264,19 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1262
1264
|
g("div", pl, [
|
|
1263
1265
|
(n(!0), S(E, null, ne(a.value, (W) => (n(), S("div", {
|
|
1264
1266
|
key: W.value,
|
|
1265
|
-
class: K(["hb-lib-selector-option", { selected:
|
|
1266
|
-
onClick: () =>
|
|
1267
|
+
class: K(["hb-lib-selector-option", { selected: r.value.includes(W.value) }]),
|
|
1268
|
+
onClick: () => M(W)
|
|
1267
1269
|
}, [
|
|
1268
|
-
e.multiple ? (n(), z(
|
|
1270
|
+
e.multiple ? (n(), z(A, {
|
|
1269
1271
|
key: 0,
|
|
1270
|
-
checked:
|
|
1271
|
-
onChange: () =>
|
|
1272
|
+
checked: r.value.includes(W.value),
|
|
1273
|
+
onChange: () => M(W),
|
|
1272
1274
|
onClick: t[3] || (t[3] = Ce(() => {
|
|
1273
1275
|
}, ["stop"]))
|
|
1274
1276
|
}, null, 8, ["checked", "onChange"])) : (n(), z(j, {
|
|
1275
1277
|
key: 1,
|
|
1276
|
-
checked:
|
|
1277
|
-
onChange: () =>
|
|
1278
|
+
checked: r.value.includes(W.value),
|
|
1279
|
+
onChange: () => M(W),
|
|
1278
1280
|
onClick: t[4] || (t[4] = Ce(() => {
|
|
1279
1281
|
}, ["stop"]))
|
|
1280
1282
|
}, null, 8, ["checked", "onChange"])),
|
|
@@ -1283,35 +1285,35 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1283
1285
|
])
|
|
1284
1286
|
], 10, hl))), 128))
|
|
1285
1287
|
]),
|
|
1286
|
-
a.value.length === 0 ? (n(), S("div", vl, C(
|
|
1288
|
+
a.value.length === 0 ? (n(), S("div", vl, C(m.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : B("", !0),
|
|
1287
1289
|
e.multiple ? (n(), S("div", gl, [
|
|
1288
|
-
_(
|
|
1289
|
-
checked:
|
|
1290
|
+
_(A, {
|
|
1291
|
+
checked: I.value,
|
|
1290
1292
|
indeterminate: x.value,
|
|
1291
|
-
onChange:
|
|
1293
|
+
onChange: T
|
|
1292
1294
|
}, {
|
|
1293
1295
|
default: o(() => [
|
|
1294
|
-
$(C(
|
|
1296
|
+
$(C(m.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1295
1297
|
]),
|
|
1296
1298
|
_: 1
|
|
1297
1299
|
}, 8, ["checked", "indeterminate"]),
|
|
1298
1300
|
g("div", yl, [
|
|
1299
1301
|
_(Q, {
|
|
1300
1302
|
size: "small",
|
|
1301
|
-
onClick:
|
|
1303
|
+
onClick: h
|
|
1302
1304
|
}, {
|
|
1303
1305
|
default: o(() => [
|
|
1304
|
-
$(C(
|
|
1306
|
+
$(C(m.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1305
1307
|
]),
|
|
1306
1308
|
_: 1
|
|
1307
1309
|
}),
|
|
1308
1310
|
_(Q, {
|
|
1309
1311
|
type: "primary",
|
|
1310
1312
|
size: "small",
|
|
1311
|
-
onClick:
|
|
1313
|
+
onClick: H
|
|
1312
1314
|
}, {
|
|
1313
1315
|
default: o(() => [
|
|
1314
|
-
$(C(
|
|
1316
|
+
$(C(m.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1315
1317
|
]),
|
|
1316
1318
|
_: 1
|
|
1317
1319
|
})
|
|
@@ -1321,10 +1323,10 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1321
1323
|
g("div", Ll, [
|
|
1322
1324
|
_(Q, {
|
|
1323
1325
|
size: "small",
|
|
1324
|
-
onClick:
|
|
1326
|
+
onClick: h
|
|
1325
1327
|
}, {
|
|
1326
1328
|
default: o(() => [
|
|
1327
|
-
$(C(
|
|
1329
|
+
$(C(m.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1328
1330
|
]),
|
|
1329
1331
|
_: 1
|
|
1330
1332
|
})
|
|
@@ -1350,67 +1352,67 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1350
1352
|
labelKey: { default: "label" }
|
|
1351
1353
|
},
|
|
1352
1354
|
emits: ["handleConfirm", "handleCancel"],
|
|
1353
|
-
setup(e, { expose: i, emit:
|
|
1354
|
-
const u = e, y =
|
|
1355
|
+
setup(e, { expose: i, emit: s }) {
|
|
1356
|
+
const u = e, y = s, v = N(!1), d = N(""), r = N(), c = N(), a = N([]), L = N([]), I = N(), x = Te({
|
|
1355
1357
|
searchText: "",
|
|
1356
1358
|
searchedColumn: ""
|
|
1357
|
-
}), U = q(() => u.tableData.map((l) => (l.id = l.id || Math.random(), l))),
|
|
1358
|
-
|
|
1359
|
-
|
|
1359
|
+
}), U = q(() => u.tableData.map((l) => (l.id = l.id || Math.random(), l))), D = q(() => u.tableColumn.map((l) => (l.customFilterDropdown && (l.onFilter = (f, A) => A[l.dataIndex].toString().toLowerCase().includes(f.toLowerCase()), l.onFilterDropdownVisibleChange = (f) => {
|
|
1360
|
+
f && setTimeout(() => {
|
|
1361
|
+
r.value?.focus();
|
|
1360
1362
|
}, 100);
|
|
1361
|
-
}), { ...l }))),
|
|
1363
|
+
}), { ...l }))), h = () => {
|
|
1362
1364
|
let l = "";
|
|
1363
|
-
L.value.forEach((
|
|
1364
|
-
l = l +
|
|
1365
|
-
}),
|
|
1365
|
+
L.value.forEach((f) => {
|
|
1366
|
+
l = l + f[u.labelKey] + ",";
|
|
1367
|
+
}), d.value = l.substring(0, l.length - 1), v.value = !1, y("handleConfirm", L.value);
|
|
1366
1368
|
}, b = () => {
|
|
1367
|
-
|
|
1368
|
-
},
|
|
1369
|
-
|
|
1370
|
-
const l =
|
|
1369
|
+
v.value = !1;
|
|
1370
|
+
}, H = () => {
|
|
1371
|
+
v.value = !0, be(() => {
|
|
1372
|
+
const l = I.value?.$el?.querySelector(".ant-table-body");
|
|
1371
1373
|
l && (l.scrollTop = 0);
|
|
1372
1374
|
});
|
|
1373
|
-
},
|
|
1375
|
+
}, F = () => {
|
|
1374
1376
|
a.value = [], L.value = [];
|
|
1375
|
-
},
|
|
1376
|
-
|
|
1377
|
-
},
|
|
1378
|
-
|
|
1379
|
-
},
|
|
1380
|
-
l({ confirm: !0 }), x.searchText = "",
|
|
1381
|
-
}, t = (l,
|
|
1382
|
-
a.value = l, L.value =
|
|
1377
|
+
}, M = () => {
|
|
1378
|
+
d.value = "", F();
|
|
1379
|
+
}, T = (l, f, A) => {
|
|
1380
|
+
f(), x.searchText = l[0], x.searchedColumn = A;
|
|
1381
|
+
}, m = (l, f) => {
|
|
1382
|
+
l({ confirm: !0 }), x.searchText = "", f();
|
|
1383
|
+
}, t = (l, f) => {
|
|
1384
|
+
a.value = l, L.value = f;
|
|
1383
1385
|
};
|
|
1384
1386
|
return i({
|
|
1385
|
-
resetInputVal:
|
|
1386
|
-
}), (l,
|
|
1387
|
-
const
|
|
1387
|
+
resetInputVal: M
|
|
1388
|
+
}), (l, f) => {
|
|
1389
|
+
const A = R("a-input"), j = R("a-button"), Q = R("a-table"), ue = R("a-modal");
|
|
1388
1390
|
return n(), S("div", {
|
|
1389
1391
|
class: "hb-lib-multipleSelectModal-box",
|
|
1390
1392
|
ref_key: "hbMultipSelectModalRef",
|
|
1391
|
-
ref:
|
|
1393
|
+
ref: c
|
|
1392
1394
|
}, [
|
|
1393
|
-
_(
|
|
1395
|
+
_(A, {
|
|
1394
1396
|
readonly: "",
|
|
1395
|
-
onClick:
|
|
1396
|
-
value:
|
|
1397
|
-
"onUpdate:value":
|
|
1397
|
+
onClick: H,
|
|
1398
|
+
value: d.value,
|
|
1399
|
+
"onUpdate:value": f[0] || (f[0] = (J) => d.value = J),
|
|
1398
1400
|
placeholder: l.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1399
1401
|
}, {
|
|
1400
1402
|
addonAfter: o(() => [
|
|
1401
|
-
_(
|
|
1403
|
+
_(p(Ht), { onClick: H })
|
|
1402
1404
|
]),
|
|
1403
1405
|
_: 1
|
|
1404
1406
|
}, 8, ["value", "placeholder"]),
|
|
1405
1407
|
_(ue, {
|
|
1406
|
-
visible:
|
|
1407
|
-
"onUpdate:visible":
|
|
1408
|
+
visible: v.value,
|
|
1409
|
+
"onUpdate:visible": f[1] || (f[1] = (J) => v.value = J),
|
|
1408
1410
|
title: e.modelTitle,
|
|
1409
1411
|
width: e.modalWidth,
|
|
1410
1412
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1411
1413
|
}, {
|
|
1412
1414
|
footer: o(() => [
|
|
1413
|
-
_(j, { onClick:
|
|
1415
|
+
_(j, { onClick: F }, {
|
|
1414
1416
|
default: o(() => [
|
|
1415
1417
|
$(C(l.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1416
1418
|
]),
|
|
@@ -1424,7 +1426,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1424
1426
|
}),
|
|
1425
1427
|
_(j, {
|
|
1426
1428
|
type: "primary",
|
|
1427
|
-
onClick:
|
|
1429
|
+
onClick: h
|
|
1428
1430
|
}, {
|
|
1429
1431
|
default: o(() => [
|
|
1430
1432
|
$(C(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1435,8 +1437,8 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1435
1437
|
default: o(() => [
|
|
1436
1438
|
_(Q, {
|
|
1437
1439
|
ref_key: "tableRef",
|
|
1438
|
-
ref:
|
|
1439
|
-
columns:
|
|
1440
|
+
ref: I,
|
|
1441
|
+
columns: D.value,
|
|
1440
1442
|
dataSource: U.value,
|
|
1441
1443
|
rowSelection: { selectedRowKeys: a.value, onChange: t },
|
|
1442
1444
|
rowKey: (J) => J[e.tableKey],
|
|
@@ -1444,20 +1446,20 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1444
1446
|
}, {
|
|
1445
1447
|
customFilterDropdown: o(({ setSelectedKeys: J, selectedKeys: W, confirm: w, clearFilters: se, column: V }) => [
|
|
1446
1448
|
g("div", wl, [
|
|
1447
|
-
_(
|
|
1449
|
+
_(A, {
|
|
1448
1450
|
ref_key: "searchInput",
|
|
1449
|
-
ref:
|
|
1451
|
+
ref: r,
|
|
1450
1452
|
placeholder: `请输入${V.title}`,
|
|
1451
1453
|
value: W[0],
|
|
1452
1454
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1453
1455
|
onChange: (k) => J(k.target.value ? [k.target.value] : []),
|
|
1454
|
-
onPressEnter: (k) =>
|
|
1456
|
+
onPressEnter: (k) => T(W, w, V.dataIndex)
|
|
1455
1457
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1456
1458
|
g("section", Tl, [
|
|
1457
1459
|
_(j, {
|
|
1458
1460
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1459
1461
|
type: "ghost",
|
|
1460
|
-
onClick: (k) =>
|
|
1462
|
+
onClick: (k) => m(se, w)
|
|
1461
1463
|
}, {
|
|
1462
1464
|
default: o(() => [
|
|
1463
1465
|
$(C(l.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
@@ -1467,7 +1469,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1467
1469
|
_(j, {
|
|
1468
1470
|
type: "primary",
|
|
1469
1471
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1470
|
-
onClick: (k) =>
|
|
1472
|
+
onClick: (k) => T(W, w, V.dataIndex)
|
|
1471
1473
|
}, {
|
|
1472
1474
|
default: o(() => [
|
|
1473
1475
|
$(C(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1478,7 +1480,7 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1478
1480
|
])
|
|
1479
1481
|
]),
|
|
1480
1482
|
customFilterIcon: o(({ filtered: J }) => [
|
|
1481
|
-
_(
|
|
1483
|
+
_(p(Se), {
|
|
1482
1484
|
style: xe({ color: J ? "#108ee9" : void 0 })
|
|
1483
1485
|
}, null, 8, ["style"])
|
|
1484
1486
|
]),
|
|
@@ -1518,33 +1520,33 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1518
1520
|
buttonDisplaysQuantity: {}
|
|
1519
1521
|
},
|
|
1520
1522
|
setup(e, { expose: i }) {
|
|
1521
|
-
const
|
|
1523
|
+
const s = e, { t: u } = ce(), y = N(!1), v = N(!1), d = N(null), r = q(() => s.actions.filter((b) => b.condition !== void 0 ? b.condition : !0)), c = q(() => r.value.slice(0, s.buttonDisplaysQuantity)), a = q(() => L(r.value.slice(s.buttonDisplaysQuantity)));
|
|
1522
1524
|
function L(b) {
|
|
1523
|
-
if (
|
|
1524
|
-
return
|
|
1525
|
-
let
|
|
1526
|
-
return
|
|
1527
|
-
(!
|
|
1528
|
-
}),
|
|
1525
|
+
if (s.filterPermission)
|
|
1526
|
+
return s.filterPermission(b);
|
|
1527
|
+
let H = [], F = [];
|
|
1528
|
+
return H = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(H) || b.length === 0 ? (H = [], []) : (H = H.filter((M) => M.type != "2"), b.forEach((M) => {
|
|
1529
|
+
(!M.permissionsTag || H.findIndex((T) => T.action === M.permissionsTag) !== -1) && F.push(M);
|
|
1530
|
+
}), F);
|
|
1529
1531
|
}
|
|
1530
|
-
const
|
|
1531
|
-
b.handler && b.handler(
|
|
1532
|
+
const I = (b) => {
|
|
1533
|
+
b.handler && b.handler(s.record);
|
|
1532
1534
|
}, x = (b) => {
|
|
1533
|
-
|
|
1535
|
+
d.value = b, y.value = !0;
|
|
1534
1536
|
}, U = () => {
|
|
1535
|
-
if (
|
|
1536
|
-
|
|
1537
|
+
if (d.value) {
|
|
1538
|
+
v.value = !0;
|
|
1537
1539
|
try {
|
|
1538
|
-
|
|
1540
|
+
I(d.value), v.value = !1, y.value = !1;
|
|
1539
1541
|
} catch {
|
|
1540
|
-
|
|
1542
|
+
v.value = !1;
|
|
1541
1543
|
}
|
|
1542
1544
|
}
|
|
1543
|
-
},
|
|
1544
|
-
y.value = !1,
|
|
1545
|
-
},
|
|
1546
|
-
title:
|
|
1547
|
-
content:
|
|
1545
|
+
}, D = () => {
|
|
1546
|
+
y.value = !1, d.value = null;
|
|
1547
|
+
}, h = q(() => d.value ? {
|
|
1548
|
+
title: d.value.confirmTitle,
|
|
1549
|
+
content: d.value.confirmContent || d.value.confirmTitle
|
|
1548
1550
|
} : {
|
|
1549
1551
|
title: u("hbLibComp.hbTableAct.secendConfirm"),
|
|
1550
1552
|
content: u("hbLibComp.hbTableAct.confirmContent")
|
|
@@ -1556,112 +1558,112 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1556
1558
|
APopconfirm: He,
|
|
1557
1559
|
AModal: Oe,
|
|
1558
1560
|
DownOutlined: Re
|
|
1559
|
-
}), (b,
|
|
1560
|
-
const
|
|
1561
|
+
}), (b, H) => {
|
|
1562
|
+
const F = R("a-divider"), M = Ct("has");
|
|
1561
1563
|
return n(), S("div", Ml, [
|
|
1562
|
-
(n(!0), S(E, null, ne(
|
|
1563
|
-
|
|
1564
|
-
|
|
1564
|
+
(n(!0), S(E, null, ne(c.value, (T, m) => (n(), S(E, { key: m }, [
|
|
1565
|
+
T.needConfirm ? (n(), S(E, { key: 0 }, [
|
|
1566
|
+
T.confirmType === "modal" ? (n(), S(E, { key: 0 }, [
|
|
1565
1567
|
re((n(), S("a", {
|
|
1566
1568
|
href: "javascript:;",
|
|
1567
|
-
onClick: (t) => x(
|
|
1569
|
+
onClick: (t) => x(T),
|
|
1568
1570
|
class: "hb-lib-table-main-action"
|
|
1569
1571
|
}, [
|
|
1570
|
-
$(C(
|
|
1572
|
+
$(C(T.label), 1)
|
|
1571
1573
|
], 8, Il)), [
|
|
1572
|
-
[
|
|
1574
|
+
[M, T.permissionsTag || null]
|
|
1573
1575
|
]),
|
|
1574
|
-
a.value && a.value.length > 0 ||
|
|
1576
|
+
a.value && a.value.length > 0 || m !== c.value.length - 1 ? (n(), z(F, {
|
|
1575
1577
|
key: 0,
|
|
1576
1578
|
type: "vertical"
|
|
1577
1579
|
})) : B("", !0)
|
|
1578
1580
|
], 64)) : (n(), S(E, { key: 1 }, [
|
|
1579
|
-
_(
|
|
1580
|
-
title:
|
|
1581
|
-
onConfirm: (t) =>
|
|
1581
|
+
_(p(He), {
|
|
1582
|
+
title: T.confirmTitle,
|
|
1583
|
+
onConfirm: (t) => I(T)
|
|
1582
1584
|
}, {
|
|
1583
1585
|
default: o(() => [
|
|
1584
1586
|
re((n(), S("a", Hl, [
|
|
1585
|
-
$(C(
|
|
1587
|
+
$(C(T.label), 1)
|
|
1586
1588
|
])), [
|
|
1587
|
-
[
|
|
1589
|
+
[M, T.permissionsTag || null]
|
|
1588
1590
|
])
|
|
1589
1591
|
]),
|
|
1590
1592
|
_: 2
|
|
1591
1593
|
}, 1032, ["title", "onConfirm"]),
|
|
1592
|
-
a.value && a.value.length > 0 ||
|
|
1594
|
+
a.value && a.value.length > 0 || m !== c.value.length - 1 ? (n(), z(F, {
|
|
1593
1595
|
key: 0,
|
|
1594
1596
|
type: "vertical"
|
|
1595
1597
|
})) : B("", !0)
|
|
1596
1598
|
], 64))
|
|
1597
|
-
], 64)) :
|
|
1598
|
-
Y(b.$slots,
|
|
1599
|
-
a.value && a.value.length > 0 ||
|
|
1599
|
+
], 64)) : T.slot ? (n(), S(E, { key: 1 }, [
|
|
1600
|
+
Y(b.$slots, T.slot, { item: T }, void 0, !0),
|
|
1601
|
+
a.value && a.value.length > 0 || m !== c.value.length - 1 ? (n(), z(F, {
|
|
1600
1602
|
key: 0,
|
|
1601
1603
|
type: "vertical"
|
|
1602
1604
|
})) : B("", !0)
|
|
1603
1605
|
], 64)) : (n(), S(E, { key: 2 }, [
|
|
1604
1606
|
re((n(), S("a", {
|
|
1605
1607
|
href: "javascript:;",
|
|
1606
|
-
onClick: (t) =>
|
|
1608
|
+
onClick: (t) => I(T),
|
|
1607
1609
|
class: "hb-lib-table-main-action"
|
|
1608
1610
|
}, [
|
|
1609
|
-
$(C(
|
|
1611
|
+
$(C(T.label), 1)
|
|
1610
1612
|
], 8, Dl)), [
|
|
1611
|
-
[
|
|
1613
|
+
[M, T.permissionsTag || null]
|
|
1612
1614
|
]),
|
|
1613
|
-
a.value && a.value.length > 0 ||
|
|
1615
|
+
a.value && a.value.length > 0 || m !== c.value.length - 1 ? re((n(), z(F, {
|
|
1614
1616
|
key: 0,
|
|
1615
1617
|
type: "vertical"
|
|
1616
1618
|
}, null, 512)), [
|
|
1617
|
-
[
|
|
1619
|
+
[M, T.permissionsTag || null]
|
|
1618
1620
|
]) : B("", !0)
|
|
1619
1621
|
], 64))
|
|
1620
1622
|
], 64))), 128)),
|
|
1621
|
-
a.value && a.value.length > 0 ? (n(), z(
|
|
1623
|
+
a.value && a.value.length > 0 ? (n(), z(p(at), { key: 0 }, {
|
|
1622
1624
|
overlay: o(() => [
|
|
1623
|
-
_(
|
|
1625
|
+
_(p(ot), null, {
|
|
1624
1626
|
default: o(() => [
|
|
1625
|
-
(n(!0), S(E, null, ne(a.value, (
|
|
1627
|
+
(n(!0), S(E, null, ne(a.value, (T, m) => re((n(), z(p(lt), { key: m }, {
|
|
1626
1628
|
default: o(() => [
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
+
T.needConfirm ? (n(), S(E, { key: 0 }, [
|
|
1630
|
+
T.confirmType === "modal" ? re((n(), S("a", {
|
|
1629
1631
|
key: 0,
|
|
1630
1632
|
href: "javascript:;",
|
|
1631
|
-
onClick: (t) => x(
|
|
1633
|
+
onClick: (t) => x(T)
|
|
1632
1634
|
}, [
|
|
1633
|
-
$(C(
|
|
1635
|
+
$(C(T.label), 1)
|
|
1634
1636
|
], 8, Ol)), [
|
|
1635
|
-
[
|
|
1636
|
-
]) : re((n(), z(
|
|
1637
|
+
[M, T.permissionsTag || null]
|
|
1638
|
+
]) : re((n(), z(p(He), {
|
|
1637
1639
|
key: 1,
|
|
1638
|
-
title:
|
|
1639
|
-
onConfirm: (t) =>
|
|
1640
|
+
title: T.confirmTitle,
|
|
1641
|
+
onConfirm: (t) => I(T)
|
|
1640
1642
|
}, {
|
|
1641
1643
|
default: o(() => [
|
|
1642
1644
|
re((n(), S("a", zl, [
|
|
1643
|
-
$(C(
|
|
1645
|
+
$(C(T.label), 1)
|
|
1644
1646
|
])), [
|
|
1645
|
-
[
|
|
1647
|
+
[M, T.permissionsTag || null]
|
|
1646
1648
|
])
|
|
1647
1649
|
]),
|
|
1648
1650
|
_: 2
|
|
1649
1651
|
}, 1032, ["title", "onConfirm"])), [
|
|
1650
|
-
[
|
|
1652
|
+
[M, T.permissionsTag || null]
|
|
1651
1653
|
])
|
|
1652
1654
|
], 64)) : re((n(), S("a", {
|
|
1653
1655
|
key: 1,
|
|
1654
1656
|
href: "javascript:;",
|
|
1655
|
-
onClick: (t) =>
|
|
1657
|
+
onClick: (t) => I(T)
|
|
1656
1658
|
}, [
|
|
1657
|
-
$(C(
|
|
1659
|
+
$(C(T.label), 1)
|
|
1658
1660
|
], 8, Bl)), [
|
|
1659
|
-
[
|
|
1661
|
+
[M, T.permissionsTag || null]
|
|
1660
1662
|
])
|
|
1661
1663
|
]),
|
|
1662
1664
|
_: 2
|
|
1663
1665
|
}, 1024)), [
|
|
1664
|
-
[
|
|
1666
|
+
[M, T.permissionsTag || null]
|
|
1665
1667
|
])), 128))
|
|
1666
1668
|
]),
|
|
1667
1669
|
_: 1
|
|
@@ -1670,20 +1672,20 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1670
1672
|
default: o(() => [
|
|
1671
1673
|
g("a", Al, [
|
|
1672
1674
|
$(C(b.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1673
|
-
_(
|
|
1675
|
+
_(p(Re), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1674
1676
|
])
|
|
1675
1677
|
]),
|
|
1676
1678
|
_: 1
|
|
1677
1679
|
})) : B("", !0),
|
|
1678
|
-
_(
|
|
1680
|
+
_(p(Oe), {
|
|
1679
1681
|
visible: y.value,
|
|
1680
|
-
title:
|
|
1681
|
-
"confirm-loading":
|
|
1682
|
+
title: h.value.title,
|
|
1683
|
+
"confirm-loading": v.value,
|
|
1682
1684
|
onOk: U,
|
|
1683
|
-
onCancel:
|
|
1685
|
+
onCancel: D
|
|
1684
1686
|
}, {
|
|
1685
1687
|
default: o(() => [
|
|
1686
|
-
g("p", Pl, C(
|
|
1688
|
+
g("p", Pl, C(h.value.content), 1)
|
|
1687
1689
|
]),
|
|
1688
1690
|
_: 1
|
|
1689
1691
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
@@ -1691,19 +1693,19 @@ const Ot = "hb-", Ye = (e = "") => {
|
|
|
1691
1693
|
};
|
|
1692
1694
|
}
|
|
1693
1695
|
}), Rl = /* @__PURE__ */ ae(Nl, [["__scopeId", "data-v-2e9541c9"]]), Ul = oe(Rl), nt = (e) => ({ tableWidth: q(() => {
|
|
1694
|
-
const
|
|
1695
|
-
return !
|
|
1696
|
+
const s = Array.isArray(e) ? e : e.value;
|
|
1697
|
+
return !s || s.length === 0 ? 0 : s.map((u) => u.width && Number(u.width.toString().replace("px", "")) || 0).reduce((u, y) => u + y, 0);
|
|
1696
1698
|
}) });
|
|
1697
1699
|
var El = typeof global == "object" && global && global.Object === Object && global, jl = typeof self == "object" && self && self.Object === Object && self, ht = El || jl || Function("return this")(), we = ht.Symbol, bt = Object.prototype, Vl = bt.hasOwnProperty, Yl = bt.toString, me = we ? we.toStringTag : void 0;
|
|
1698
1700
|
function ql(e) {
|
|
1699
|
-
var i = Vl.call(e, me),
|
|
1701
|
+
var i = Vl.call(e, me), s = e[me];
|
|
1700
1702
|
try {
|
|
1701
1703
|
e[me] = void 0;
|
|
1702
1704
|
var u = !0;
|
|
1703
1705
|
} catch {
|
|
1704
1706
|
}
|
|
1705
1707
|
var y = Yl.call(e);
|
|
1706
|
-
return u && (i ? e[me] =
|
|
1708
|
+
return u && (i ? e[me] = s : delete e[me]), y;
|
|
1707
1709
|
}
|
|
1708
1710
|
var Kl = Object.prototype, Wl = Kl.toString;
|
|
1709
1711
|
function Jl(e) {
|
|
@@ -1747,69 +1749,63 @@ function rt(e) {
|
|
|
1747
1749
|
if (typeof e != "string")
|
|
1748
1750
|
return e === 0 ? e : +e;
|
|
1749
1751
|
e = no(e);
|
|
1750
|
-
var
|
|
1751
|
-
return
|
|
1752
|
+
var s = so.test(e);
|
|
1753
|
+
return s || ro.test(e) ? co(e.slice(2), s ? 2 : 8) : io.test(e) ? st : +e;
|
|
1752
1754
|
}
|
|
1753
1755
|
var De = function() {
|
|
1754
1756
|
return ht.Date.now();
|
|
1755
1757
|
}, uo = "Expected a function", fo = Math.max, po = Math.min;
|
|
1756
|
-
function ho(e, i,
|
|
1757
|
-
var u, y,
|
|
1758
|
+
function ho(e, i, s) {
|
|
1759
|
+
var u, y, v, d, r, c, a = 0, L = !1, I = !1, x = !0;
|
|
1758
1760
|
if (typeof e != "function")
|
|
1759
1761
|
throw new TypeError(uo);
|
|
1760
|
-
i = rt(i) || 0, Ue(
|
|
1762
|
+
i = rt(i) || 0, Ue(s) && (L = !!s.leading, I = "maxWait" in s, v = I ? fo(rt(s.maxWait) || 0, i) : v, x = "trailing" in s ? !!s.trailing : x);
|
|
1761
1763
|
function U(t) {
|
|
1762
|
-
var l = u,
|
|
1763
|
-
return u = y = void 0, a = t,
|
|
1764
|
+
var l = u, f = y;
|
|
1765
|
+
return u = y = void 0, a = t, d = e.apply(f, l), d;
|
|
1764
1766
|
}
|
|
1765
|
-
function
|
|
1766
|
-
return a = t,
|
|
1767
|
+
function D(t) {
|
|
1768
|
+
return a = t, r = setTimeout(H, i), L ? U(t) : d;
|
|
1767
1769
|
}
|
|
1768
|
-
function
|
|
1769
|
-
var l = t -
|
|
1770
|
-
return
|
|
1770
|
+
function h(t) {
|
|
1771
|
+
var l = t - c, f = t - a, A = i - l;
|
|
1772
|
+
return I ? po(A, v - f) : A;
|
|
1771
1773
|
}
|
|
1772
1774
|
function b(t) {
|
|
1773
|
-
var l = t -
|
|
1774
|
-
return
|
|
1775
|
+
var l = t - c, f = t - a;
|
|
1776
|
+
return c === void 0 || l >= i || l < 0 || I && f >= v;
|
|
1775
1777
|
}
|
|
1776
|
-
function
|
|
1778
|
+
function H() {
|
|
1777
1779
|
var t = De();
|
|
1778
1780
|
if (b(t))
|
|
1779
|
-
return
|
|
1780
|
-
|
|
1781
|
+
return F(t);
|
|
1782
|
+
r = setTimeout(H, h(t));
|
|
1781
1783
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1784
|
+
function F(t) {
|
|
1785
|
+
return r = void 0, x && u ? U(t) : (u = y = void 0, d);
|
|
1784
1786
|
}
|
|
1785
|
-
function
|
|
1786
|
-
|
|
1787
|
+
function M() {
|
|
1788
|
+
r !== void 0 && clearTimeout(r), a = 0, u = c = y = r = void 0;
|
|
1787
1789
|
}
|
|
1788
|
-
function
|
|
1789
|
-
return
|
|
1790
|
+
function T() {
|
|
1791
|
+
return r === void 0 ? d : F(De());
|
|
1790
1792
|
}
|
|
1791
|
-
function
|
|
1793
|
+
function m() {
|
|
1792
1794
|
var t = De(), l = b(t);
|
|
1793
|
-
if (u = arguments, y = this,
|
|
1794
|
-
if (
|
|
1795
|
-
return
|
|
1796
|
-
if (
|
|
1797
|
-
return clearTimeout(
|
|
1795
|
+
if (u = arguments, y = this, c = t, l) {
|
|
1796
|
+
if (r === void 0)
|
|
1797
|
+
return D(c);
|
|
1798
|
+
if (I)
|
|
1799
|
+
return clearTimeout(r), r = setTimeout(H, i), U(c);
|
|
1798
1800
|
}
|
|
1799
|
-
return
|
|
1801
|
+
return r === void 0 && (r = setTimeout(H, i)), d;
|
|
1800
1802
|
}
|
|
1801
|
-
return
|
|
1803
|
+
return m.cancel = M, m.flush = T, m;
|
|
1802
1804
|
}
|
|
1803
1805
|
const bo = {
|
|
1804
1806
|
key: 0,
|
|
1805
1807
|
class: "hb-lib-list-table-act"
|
|
1806
|
-
}, mo = { class: "empty-container" }, vo = {
|
|
1807
|
-
key: 1,
|
|
1808
|
-
style: { display: "flex", "align-items": "center" }
|
|
1809
|
-
}, go = {
|
|
1810
|
-
key: 2,
|
|
1811
|
-
style: { display: "flex", "align-items": "center" }
|
|
1812
|
-
}, yo = /* @__PURE__ */ le({
|
|
1808
|
+
}, mo = { class: "empty-container" }, vo = { key: 1 }, go = { key: 2 }, yo = /* @__PURE__ */ le({
|
|
1813
1809
|
name: "HbLibListTable",
|
|
1814
1810
|
__name: "HbListTable",
|
|
1815
1811
|
props: {
|
|
@@ -1820,23 +1816,23 @@ const bo = {
|
|
|
1820
1816
|
},
|
|
1821
1817
|
emits: ["change", "resizeCol"],
|
|
1822
1818
|
setup(e, { emit: i }) {
|
|
1823
|
-
const
|
|
1819
|
+
const s = i, { t: u } = ce(), y = e, v = N([]), d = Ee("HB_LIST_PAGE_CONTAINER"), { tableWidth: r } = nt(v), c = N(r.value);
|
|
1824
1820
|
ie(
|
|
1825
1821
|
() => y.columns,
|
|
1826
|
-
(
|
|
1827
|
-
const b =
|
|
1828
|
-
|
|
1829
|
-
let
|
|
1830
|
-
if (
|
|
1831
|
-
|
|
1832
|
-
else if (typeof
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1822
|
+
(h) => {
|
|
1823
|
+
const b = h.filter((F) => F != null && F.checked);
|
|
1824
|
+
v.value = b.map((F) => {
|
|
1825
|
+
let M = { ...F, title: F.title || F.label, align: F.align || "center" };
|
|
1826
|
+
if (M.ellipsis && !M.needTooltip && (M.needTooltip = !0), !M.width)
|
|
1827
|
+
M.width = y.defaultWidth;
|
|
1828
|
+
else if (typeof M.width == "string") {
|
|
1829
|
+
const T = parseInt(M.width, 10);
|
|
1830
|
+
M.width = isNaN(T) ? y.defaultWidth : T;
|
|
1835
1831
|
}
|
|
1836
|
-
return
|
|
1832
|
+
return M.resizable === void 0 && (M.resizable = !0), M;
|
|
1837
1833
|
});
|
|
1838
|
-
const { tableWidth:
|
|
1839
|
-
|
|
1834
|
+
const { tableWidth: H } = nt(v);
|
|
1835
|
+
c.value = H.value;
|
|
1840
1836
|
},
|
|
1841
1837
|
{
|
|
1842
1838
|
immediate: !0,
|
|
@@ -1844,51 +1840,51 @@ const bo = {
|
|
|
1844
1840
|
}
|
|
1845
1841
|
);
|
|
1846
1842
|
const a = ho(() => {
|
|
1847
|
-
|
|
1848
|
-
}, 800), L = (
|
|
1843
|
+
s("resizeCol", v);
|
|
1844
|
+
}, 800), L = (h, b) => {
|
|
1849
1845
|
if (b) {
|
|
1850
|
-
const
|
|
1851
|
-
b.width = isNaN(
|
|
1846
|
+
const H = typeof h == "string" ? parseInt(h, 10) : h;
|
|
1847
|
+
b.width = isNaN(H) ? 150 : H, be(() => {
|
|
1852
1848
|
a();
|
|
1853
1849
|
});
|
|
1854
1850
|
}
|
|
1855
|
-
},
|
|
1856
|
-
|
|
1857
|
-
}, x = (
|
|
1858
|
-
return (
|
|
1859
|
-
const
|
|
1851
|
+
}, I = (h, b, H) => {
|
|
1852
|
+
h?.current && s("change", h, b, H);
|
|
1853
|
+
}, x = (h, b = "YYYY-MM-DD HH:mm:ss") => h ? Fe(h).format(b) : "", U = (h, b) => h && b[h] || "", D = (h, b) => h ? h.length > b ? `${h.substring(0, b)}...` : h : "";
|
|
1854
|
+
return (h, b) => {
|
|
1855
|
+
const H = R("a-empty"), F = R("a-tooltip"), M = R("HbLibCopy"), T = R("a-tag"), m = R("a-table");
|
|
1860
1856
|
return n(), S("div", {
|
|
1861
1857
|
class: K(["hb-lib-list-table", { "nowrap-table": y.rowHeight }]),
|
|
1862
1858
|
style: xe({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1863
1859
|
}, [
|
|
1864
|
-
|
|
1865
|
-
Y(
|
|
1866
|
-
Y(
|
|
1860
|
+
h.$slots.tableActLeft ? (n(), S("section", bo, [
|
|
1861
|
+
Y(h.$slots, "tableActLeft", {}, void 0, !0),
|
|
1862
|
+
Y(h.$slots, "tableActRight", {}, void 0, !0)
|
|
1867
1863
|
])) : B("", !0),
|
|
1868
|
-
_(
|
|
1864
|
+
_(m, te(h.$attrs, {
|
|
1869
1865
|
bordered: "",
|
|
1870
|
-
columns:
|
|
1866
|
+
columns: v.value,
|
|
1871
1867
|
tableLayout: "fixed",
|
|
1872
1868
|
onResizeColumn: L,
|
|
1873
|
-
onChange:
|
|
1869
|
+
onChange: I,
|
|
1874
1870
|
scroll: {
|
|
1875
|
-
x:
|
|
1876
|
-
y:
|
|
1871
|
+
x: c.value,
|
|
1872
|
+
y: p(d).tableHeight
|
|
1877
1873
|
}
|
|
1878
1874
|
}), je({
|
|
1879
1875
|
emptyText: o(() => [
|
|
1880
1876
|
g("div", mo, [
|
|
1881
|
-
_(
|
|
1882
|
-
description:
|
|
1877
|
+
_(H, {
|
|
1878
|
+
description: p(u)("hbLibComp.hbListTable.noData")
|
|
1883
1879
|
}, null, 8, ["description"])
|
|
1884
1880
|
])
|
|
1885
1881
|
]),
|
|
1886
1882
|
_: 2
|
|
1887
1883
|
}, [
|
|
1888
|
-
|
|
1884
|
+
h.$slots.headerCell ? {
|
|
1889
1885
|
name: "headerCell",
|
|
1890
1886
|
fn: o(({ column: t }) => [
|
|
1891
|
-
Y(
|
|
1887
|
+
Y(h.$slots, "headerCell", {
|
|
1892
1888
|
column: t,
|
|
1893
1889
|
title: t.title
|
|
1894
1890
|
}, () => [
|
|
@@ -1897,16 +1893,16 @@ const bo = {
|
|
|
1897
1893
|
]),
|
|
1898
1894
|
key: "0"
|
|
1899
1895
|
} : void 0,
|
|
1900
|
-
|
|
1896
|
+
h.$slots.bodyCell ? {
|
|
1901
1897
|
name: "bodyCell",
|
|
1902
|
-
fn: o(({ column: t, record: l, index:
|
|
1903
|
-
Y(
|
|
1898
|
+
fn: o(({ column: t, record: l, index: f, text: A }) => [
|
|
1899
|
+
Y(h.$slots, "bodyCell", {
|
|
1904
1900
|
column: t,
|
|
1905
1901
|
record: l,
|
|
1906
|
-
index:
|
|
1907
|
-
text:
|
|
1902
|
+
index: f,
|
|
1903
|
+
text: A
|
|
1908
1904
|
}, void 0, !0),
|
|
1909
|
-
t && t.needTooltip && !t.needCopy ? (n(), z(
|
|
1905
|
+
t && t.needTooltip && !t.needCopy ? (n(), z(F, {
|
|
1910
1906
|
key: 0,
|
|
1911
1907
|
placement: e.tooltipPlacement
|
|
1912
1908
|
}, {
|
|
@@ -1919,29 +1915,29 @@ const bo = {
|
|
|
1919
1915
|
_: 2
|
|
1920
1916
|
}, 1032, ["placement"])) : t && t.needCopy && !t.needTooltip ? (n(), S("div", vo, [
|
|
1921
1917
|
$(C(l[t.dataIndex]) + " ", 1),
|
|
1922
|
-
_(
|
|
1918
|
+
_(M, {
|
|
1923
1919
|
"cp-text": l[t.dataIndex],
|
|
1924
1920
|
style: { position: "relative" }
|
|
1925
1921
|
}, null, 8, ["cp-text"])
|
|
1926
1922
|
])) : B("", !0),
|
|
1927
1923
|
t && t.needTooltip && t.needCopy ? (n(), S("div", go, [
|
|
1928
|
-
_(
|
|
1924
|
+
_(F, { placement: e.tooltipPlacement }, {
|
|
1929
1925
|
title: o(() => [
|
|
1930
1926
|
$(C(l[t.dataIndex]), 1)
|
|
1931
1927
|
]),
|
|
1932
1928
|
default: o(() => [
|
|
1933
|
-
$(" " + C(
|
|
1929
|
+
$(" " + C(D(l[t.dataIndex], t.strLen || 20)), 1)
|
|
1934
1930
|
]),
|
|
1935
1931
|
_: 2
|
|
1936
1932
|
}, 1032, ["placement"]),
|
|
1937
|
-
_(
|
|
1933
|
+
_(M, {
|
|
1938
1934
|
"cp-text": l[t.dataIndex],
|
|
1939
1935
|
style: { position: "relative" }
|
|
1940
1936
|
}, null, 8, ["cp-text"])
|
|
1941
1937
|
])) : t && t.needFormat ? (n(), S(E, { key: 3 }, [
|
|
1942
1938
|
$(C(x(l[t.dataIndex], t.format)), 1)
|
|
1943
1939
|
], 64)) : t && t.tags ? (n(), S(E, { key: 4 }, [
|
|
1944
|
-
U(l[t.dataIndex], t.tags) ? (n(), z(
|
|
1940
|
+
U(l[t.dataIndex], t.tags) ? (n(), z(T, {
|
|
1945
1941
|
key: 0,
|
|
1946
1942
|
color: U(l[t.dataIndex], t.tags)
|
|
1947
1943
|
}, {
|
|
@@ -1954,59 +1950,59 @@ const bo = {
|
|
|
1954
1950
|
]),
|
|
1955
1951
|
key: "1"
|
|
1956
1952
|
} : void 0,
|
|
1957
|
-
|
|
1953
|
+
h.$slots.expandedRowRender ? {
|
|
1958
1954
|
name: "expandedRowRender",
|
|
1959
1955
|
fn: o(({ record: t, index: l }) => [
|
|
1960
|
-
Y(
|
|
1956
|
+
Y(h.$slots, "expandedRowRender", {
|
|
1961
1957
|
record: t,
|
|
1962
1958
|
index: l
|
|
1963
1959
|
}, void 0, !0)
|
|
1964
1960
|
]),
|
|
1965
1961
|
key: "2"
|
|
1966
1962
|
} : void 0,
|
|
1967
|
-
|
|
1963
|
+
h.$slots.customFilterDropdown ? {
|
|
1968
1964
|
name: "customFilterDropdown",
|
|
1969
1965
|
fn: o(({ column: t }) => [
|
|
1970
|
-
Y(
|
|
1966
|
+
Y(h.$slots, "customFilterDropdown", { column: t }, void 0, !0)
|
|
1971
1967
|
]),
|
|
1972
1968
|
key: "3"
|
|
1973
1969
|
} : void 0,
|
|
1974
|
-
|
|
1970
|
+
h.$slots.customFilterIcon ? {
|
|
1975
1971
|
name: "customFilterIcon",
|
|
1976
1972
|
fn: o(({ column: t }) => [
|
|
1977
|
-
Y(
|
|
1973
|
+
Y(h.$slots, "customFilterIcon", { column: t }, void 0, !0)
|
|
1978
1974
|
]),
|
|
1979
1975
|
key: "4"
|
|
1980
1976
|
} : void 0,
|
|
1981
|
-
|
|
1977
|
+
h.$slots.expandIcon ? {
|
|
1982
1978
|
name: "expandIcon",
|
|
1983
|
-
fn: o(({ expanded: t, record: l, index:
|
|
1984
|
-
Y(
|
|
1979
|
+
fn: o(({ expanded: t, record: l, index: f }) => [
|
|
1980
|
+
Y(h.$slots, "expandIcon", {
|
|
1985
1981
|
expanded: t,
|
|
1986
1982
|
record: l,
|
|
1987
|
-
index:
|
|
1983
|
+
index: f
|
|
1988
1984
|
}, void 0, !0)
|
|
1989
1985
|
]),
|
|
1990
1986
|
key: "5"
|
|
1991
1987
|
} : void 0,
|
|
1992
|
-
|
|
1988
|
+
h.$slots.footer ? {
|
|
1993
1989
|
name: "footer",
|
|
1994
1990
|
fn: o(() => [
|
|
1995
|
-
Y(
|
|
1991
|
+
Y(h.$slots, "footer", {}, void 0, !0)
|
|
1996
1992
|
]),
|
|
1997
1993
|
key: "6"
|
|
1998
1994
|
} : void 0,
|
|
1999
|
-
|
|
1995
|
+
h.$slots.summary ? {
|
|
2000
1996
|
name: "summary",
|
|
2001
1997
|
fn: o(() => [
|
|
2002
|
-
Y(
|
|
1998
|
+
Y(h.$slots, "summary", {}, void 0, !0)
|
|
2003
1999
|
]),
|
|
2004
2000
|
key: "7"
|
|
2005
2001
|
} : void 0,
|
|
2006
|
-
|
|
2002
|
+
h.$slots.title ? {
|
|
2007
2003
|
name: "title",
|
|
2008
2004
|
fn: o(() => [
|
|
2009
|
-
Y(
|
|
2005
|
+
Y(h.$slots, "title", {}, void 0, !0)
|
|
2010
2006
|
]),
|
|
2011
2007
|
key: "8"
|
|
2012
2008
|
} : void 0
|
|
@@ -2014,7 +2010,7 @@ const bo = {
|
|
|
2014
2010
|
], 6);
|
|
2015
2011
|
};
|
|
2016
2012
|
}
|
|
2017
|
-
}), Co = /* @__PURE__ */ ae(yo, [["__scopeId", "data-v-
|
|
2013
|
+
}), Co = /* @__PURE__ */ ae(yo, [["__scopeId", "data-v-29549817"]]), Lo = oe(Co), _o = { class: "hb-lib-table-setting-box" }, ko = {
|
|
2018
2014
|
key: 0,
|
|
2019
2015
|
class: "hb-lib-table-drag-item"
|
|
2020
2016
|
}, So = {
|
|
@@ -2056,85 +2052,85 @@ const bo = {
|
|
|
2056
2052
|
},
|
|
2057
2053
|
emits: ["on-get-columns"],
|
|
2058
2054
|
setup(e, { emit: i }) {
|
|
2059
|
-
const
|
|
2055
|
+
const s = i, { t: u } = ce(), y = e, v = N([]), d = q(() => c.value.filter((m) => m.checked));
|
|
2060
2056
|
N([]);
|
|
2061
|
-
const
|
|
2062
|
-
a.value =
|
|
2063
|
-
}, U = (
|
|
2064
|
-
const t =
|
|
2065
|
-
if (
|
|
2066
|
-
const
|
|
2067
|
-
if ((
|
|
2068
|
-
const j =
|
|
2069
|
-
|
|
2057
|
+
const r = N(!1), c = N([]), a = N(null), L = q(() => d.value.length > 0 && d.value.length === v.value.length), I = q(() => d.value.length > 0 && d.value.length < v.value.length), x = (m) => {
|
|
2058
|
+
a.value = m.oldIndex;
|
|
2059
|
+
}, U = (m) => {
|
|
2060
|
+
const t = m.newIndex;
|
|
2061
|
+
if (v.value.some((f) => f.fixed === "left" || f.fixed === "right" || f.fixed === !0)) {
|
|
2062
|
+
const f = v.value.filter((j) => j.fixed === "left").length, A = v.value.length - v.value.filter((j) => j.fixed === "right").length;
|
|
2063
|
+
if ((f > 0 && t < f || A < v.value.length && t >= A) && (ke.warning(u("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
2064
|
+
const j = c.value.splice(t, 1)[0];
|
|
2065
|
+
c.value.splice(a.value, 0, j);
|
|
2070
2066
|
}
|
|
2071
2067
|
}
|
|
2072
2068
|
a.value = null;
|
|
2073
|
-
},
|
|
2074
|
-
|
|
2075
|
-
},
|
|
2076
|
-
t ?
|
|
2069
|
+
}, D = (m) => {
|
|
2070
|
+
m.target.checked ? c.value.forEach((l) => l.checked = !0) : c.value.forEach((l) => l.checked = !1);
|
|
2071
|
+
}, h = (m, t) => {
|
|
2072
|
+
t ? m.checked = !0 : m.checked = !1;
|
|
2077
2073
|
}, b = () => {
|
|
2078
|
-
|
|
2079
|
-
},
|
|
2080
|
-
|
|
2074
|
+
v.value = [...c.value], s("on-get-columns", v.value), r.value = !1;
|
|
2075
|
+
}, H = () => {
|
|
2076
|
+
v.value = y.tableColumns.map((t) => ({
|
|
2081
2077
|
...t,
|
|
2082
|
-
label: t.title && t.title.tag ?
|
|
2078
|
+
label: t.title && t.title.tag ? F(t.title) : t.title || t.title2,
|
|
2083
2079
|
value: t.dataIndex,
|
|
2084
2080
|
checked: t.checked || t.checked === void 0
|
|
2085
|
-
})),
|
|
2086
|
-
let
|
|
2081
|
+
})), c.value = [...v.value];
|
|
2082
|
+
let m = [];
|
|
2087
2083
|
y.tableColumns.forEach(function(t) {
|
|
2088
|
-
|
|
2084
|
+
m.push(t.dataIndex);
|
|
2089
2085
|
});
|
|
2090
|
-
},
|
|
2091
|
-
delete
|
|
2092
|
-
const t =
|
|
2086
|
+
}, F = (m) => m.children[0].text, M = (m) => {
|
|
2087
|
+
delete m.fixed;
|
|
2088
|
+
const t = c.value.findIndex((l) => l.value === m.value);
|
|
2093
2089
|
if (t !== -1) {
|
|
2094
2090
|
let l = -1;
|
|
2095
|
-
for (let
|
|
2096
|
-
|
|
2091
|
+
for (let f = 0; f < c.value.length; f++)
|
|
2092
|
+
c.value[f].fixed === "left" && (l = f);
|
|
2097
2093
|
if (l !== -1 && t !== l + 1) {
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2094
|
+
const f = [...c.value], [A] = f.splice(t, 1);
|
|
2095
|
+
f.splice(l + 1, 0, A), c.value = f;
|
|
2100
2096
|
}
|
|
2101
2097
|
}
|
|
2102
|
-
},
|
|
2103
|
-
const t =
|
|
2098
|
+
}, T = (m) => {
|
|
2099
|
+
const t = c.value.findIndex((l) => l.value === m.value);
|
|
2104
2100
|
if (t !== -1) {
|
|
2105
2101
|
let l = -1;
|
|
2106
|
-
for (let Q = 0; Q <
|
|
2107
|
-
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2102
|
+
for (let Q = 0; Q < c.value.length; Q++)
|
|
2103
|
+
c.value[Q].fixed === "left" && (l = Q);
|
|
2104
|
+
const f = [...c.value], [A] = f.splice(t, 1);
|
|
2105
|
+
A.fixed = "left";
|
|
2110
2106
|
const j = l === -1 ? 0 : l + 1;
|
|
2111
|
-
|
|
2107
|
+
f.splice(j, 0, A), c.value = f;
|
|
2112
2108
|
}
|
|
2113
2109
|
};
|
|
2114
2110
|
return ie(
|
|
2115
2111
|
() => y.tableColumns,
|
|
2116
2112
|
() => {
|
|
2117
|
-
|
|
2113
|
+
H();
|
|
2118
2114
|
},
|
|
2119
2115
|
{
|
|
2120
2116
|
immediate: !0,
|
|
2121
2117
|
deep: !0
|
|
2122
2118
|
}
|
|
2123
|
-
), (
|
|
2124
|
-
const l = R("a-tooltip"),
|
|
2119
|
+
), (m, t) => {
|
|
2120
|
+
const l = R("a-tooltip"), f = R("a-button");
|
|
2125
2121
|
return n(), S("div", _o, [
|
|
2126
|
-
_(
|
|
2127
|
-
title:
|
|
2122
|
+
_(p(xt), {
|
|
2123
|
+
title: p(u)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2128
2124
|
trigger: "click",
|
|
2129
2125
|
placement: "leftTop",
|
|
2130
2126
|
overlayClassName: "column_setting_popover",
|
|
2131
|
-
visible:
|
|
2132
|
-
"onUpdate:visible": t[1] || (t[1] = (
|
|
2127
|
+
visible: r.value,
|
|
2128
|
+
"onUpdate:visible": t[1] || (t[1] = (A) => r.value = A)
|
|
2133
2129
|
}, {
|
|
2134
2130
|
content: o(() => [
|
|
2135
|
-
_(
|
|
2136
|
-
modelValue:
|
|
2137
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2131
|
+
_(p(Le), {
|
|
2132
|
+
modelValue: c.value,
|
|
2133
|
+
"onUpdate:modelValue": t[0] || (t[0] = (A) => c.value = A),
|
|
2138
2134
|
"item-key": "value",
|
|
2139
2135
|
class: "hb-lib-table-set-drag",
|
|
2140
2136
|
"ghost-class": "ghost",
|
|
@@ -2143,29 +2139,29 @@ const bo = {
|
|
|
2143
2139
|
onStart: x,
|
|
2144
2140
|
onEnd: U
|
|
2145
2141
|
}, {
|
|
2146
|
-
item: o(({ element:
|
|
2147
|
-
|
|
2148
|
-
_(
|
|
2149
|
-
checked:
|
|
2150
|
-
onChange: (j) =>
|
|
2142
|
+
item: o(({ element: A }) => [
|
|
2143
|
+
A.fixed !== "right" ? (n(), S("div", ko, [
|
|
2144
|
+
_(p(_e), {
|
|
2145
|
+
checked: A.checked,
|
|
2146
|
+
onChange: (j) => h(A, j.target.checked)
|
|
2151
2147
|
}, {
|
|
2152
2148
|
default: o(() => [
|
|
2153
|
-
$(C(
|
|
2149
|
+
$(C(A.label), 1)
|
|
2154
2150
|
]),
|
|
2155
2151
|
_: 2
|
|
2156
2152
|
}, 1032, ["checked", "onChange"]),
|
|
2157
|
-
|
|
2153
|
+
A.checked ? (n(), S("section", So, [
|
|
2158
2154
|
g("span", {
|
|
2159
|
-
class: K(
|
|
2155
|
+
class: K(A.fixed ? "drag-hide" : "drag-handle")
|
|
2160
2156
|
}, "⋮⋮", 2),
|
|
2161
|
-
|
|
2157
|
+
A.fixed ? (n(), z(l, { key: 0 }, {
|
|
2162
2158
|
title: o(() => [
|
|
2163
|
-
$(C(
|
|
2159
|
+
$(C(p(u)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2164
2160
|
]),
|
|
2165
2161
|
default: o(() => [
|
|
2166
2162
|
g("span", {
|
|
2167
2163
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2168
|
-
onClick: (j) =>
|
|
2164
|
+
onClick: (j) => M(A)
|
|
2169
2165
|
}, [...t[2] || (t[2] = [
|
|
2170
2166
|
g("svg", {
|
|
2171
2167
|
t: "1759048615600",
|
|
@@ -2187,14 +2183,14 @@ const bo = {
|
|
|
2187
2183
|
]),
|
|
2188
2184
|
_: 2
|
|
2189
2185
|
}, 1024)) : B("", !0),
|
|
2190
|
-
|
|
2186
|
+
A.fixed ? B("", !0) : (n(), z(l, { key: 1 }, {
|
|
2191
2187
|
title: o(() => [
|
|
2192
|
-
$(C(
|
|
2188
|
+
$(C(p(u)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2193
2189
|
]),
|
|
2194
2190
|
default: o(() => [
|
|
2195
2191
|
g("span", {
|
|
2196
2192
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2197
|
-
onClick: (j) =>
|
|
2193
|
+
onClick: (j) => T(A)
|
|
2198
2194
|
}, [...t[3] || (t[3] = [
|
|
2199
2195
|
g("svg", {
|
|
2200
2196
|
t: "1759048735643",
|
|
@@ -2223,23 +2219,23 @@ const bo = {
|
|
|
2223
2219
|
}, 8, ["modelValue"]),
|
|
2224
2220
|
g("div", xo, [
|
|
2225
2221
|
g("div", Fo, [
|
|
2226
|
-
_(
|
|
2222
|
+
_(p(_e), {
|
|
2227
2223
|
checked: L.value,
|
|
2228
|
-
indeterminate:
|
|
2229
|
-
onChange:
|
|
2224
|
+
indeterminate: I.value,
|
|
2225
|
+
onChange: D
|
|
2230
2226
|
}, {
|
|
2231
2227
|
default: o(() => [
|
|
2232
|
-
$(C(
|
|
2228
|
+
$(C(p(u)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2233
2229
|
]),
|
|
2234
2230
|
_: 1
|
|
2235
2231
|
}, 8, ["checked", "indeterminate"])
|
|
2236
2232
|
]),
|
|
2237
|
-
_(
|
|
2233
|
+
_(f, {
|
|
2238
2234
|
onClick: b,
|
|
2239
2235
|
type: "primary"
|
|
2240
2236
|
}, {
|
|
2241
2237
|
default: o(() => [
|
|
2242
|
-
$(C(
|
|
2238
|
+
$(C(p(u)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2243
2239
|
]),
|
|
2244
2240
|
_: 1
|
|
2245
2241
|
})
|
|
@@ -2247,7 +2243,7 @@ const bo = {
|
|
|
2247
2243
|
]),
|
|
2248
2244
|
default: o(() => [
|
|
2249
2245
|
_(l, {
|
|
2250
|
-
title:
|
|
2246
|
+
title: p(u)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2251
2247
|
placement: "leftTop"
|
|
2252
2248
|
}, {
|
|
2253
2249
|
default: o(() => [...t[4] || (t[4] = [
|
|
@@ -2313,53 +2309,53 @@ const bo = {
|
|
|
2313
2309
|
}),
|
|
2314
2310
|
emits: ["update:value"],
|
|
2315
2311
|
setup(e, { expose: i }) {
|
|
2316
|
-
const
|
|
2317
|
-
const
|
|
2312
|
+
const s = e, u = Lt(), y = q(() => {
|
|
2313
|
+
const D = u, h = D.dropdownClassName;
|
|
2318
2314
|
return {
|
|
2319
|
-
...
|
|
2320
|
-
dropdownClassName:
|
|
2315
|
+
...D,
|
|
2316
|
+
dropdownClassName: h ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2321
2317
|
};
|
|
2322
|
-
}),
|
|
2323
|
-
maxWidth: typeof
|
|
2324
|
-
})), a = (
|
|
2318
|
+
}), v = N(), d = ut(e, "value"), r = q(() => s.options ?? []), c = q(() => ({
|
|
2319
|
+
maxWidth: typeof s.tooltipMaxWidth == "number" ? `${s.tooltipMaxWidth}px` : s.tooltipMaxWidth
|
|
2320
|
+
})), a = (D) => D.tooltip ?? D.label, L = (D) => D.key ?? D.label, I = (D) => !!(s.enableTooltip && a(D));
|
|
2325
2321
|
return i({
|
|
2326
2322
|
focus: () => {
|
|
2327
|
-
|
|
2323
|
+
v.value?.focus?.();
|
|
2328
2324
|
},
|
|
2329
2325
|
blur: () => {
|
|
2330
|
-
|
|
2326
|
+
v.value?.blur?.();
|
|
2331
2327
|
},
|
|
2332
|
-
selectRef:
|
|
2333
|
-
}), (
|
|
2328
|
+
selectRef: v
|
|
2329
|
+
}), (D, h) => (n(), z(p(Pe), te({
|
|
2334
2330
|
ref_key: "selectRef",
|
|
2335
|
-
ref:
|
|
2331
|
+
ref: v,
|
|
2336
2332
|
class: "hb_lib_form_tooltip_select"
|
|
2337
2333
|
}, y.value, {
|
|
2338
|
-
value:
|
|
2339
|
-
"onUpdate:value":
|
|
2334
|
+
value: d.value,
|
|
2335
|
+
"onUpdate:value": h[0] || (h[0] = (b) => d.value = b)
|
|
2340
2336
|
}), {
|
|
2341
2337
|
default: o(() => [
|
|
2342
|
-
|
|
2338
|
+
D.$slots.default ? Y(D.$slots, "default", { key: 0 }, void 0, !0) : (n(!0), S(E, { key: 1 }, ne(r.value, (b) => (n(), z(p(Ne), te({
|
|
2343
2339
|
key: L(b),
|
|
2344
2340
|
value: b.value,
|
|
2345
2341
|
disabled: b.disabled
|
|
2346
2342
|
}, { ref_for: !0 }, b.optionProps), {
|
|
2347
2343
|
default: o(() => [
|
|
2348
|
-
|
|
2344
|
+
I(b) ? (n(), z(p(Be), {
|
|
2349
2345
|
key: 0,
|
|
2350
2346
|
title: a(b),
|
|
2351
|
-
placement:
|
|
2352
|
-
overlayStyle:
|
|
2347
|
+
placement: s.tooltipPlacement,
|
|
2348
|
+
overlayStyle: c.value
|
|
2353
2349
|
}, {
|
|
2354
2350
|
default: o(() => [
|
|
2355
2351
|
g("span", {
|
|
2356
|
-
class: K(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2352
|
+
class: K(["hb_lib_form_tooltip_select__option", { "is-ellipsis": s.enableEllipsis }])
|
|
2357
2353
|
}, C(b.label), 3)
|
|
2358
2354
|
]),
|
|
2359
2355
|
_: 2
|
|
2360
2356
|
}, 1032, ["title", "placement", "overlayStyle"])) : (n(), S("span", {
|
|
2361
2357
|
key: 1,
|
|
2362
|
-
class: K(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2358
|
+
class: K(["hb_lib_form_tooltip_select__option", { "is-ellipsis": s.enableEllipsis }])
|
|
2363
2359
|
}, C(b.label), 3))
|
|
2364
2360
|
]),
|
|
2365
2361
|
_: 2
|
|
@@ -2390,44 +2386,44 @@ const bo = {
|
|
|
2390
2386
|
beforeSubmit: {}
|
|
2391
2387
|
},
|
|
2392
2388
|
setup(e, { expose: i }) {
|
|
2393
|
-
const { t:
|
|
2389
|
+
const { t: s } = ce(), u = N(), y = e, v = N(!1), d = Te({
|
|
2394
2390
|
fileList: [],
|
|
2395
2391
|
visible: !1
|
|
2396
|
-
}),
|
|
2392
|
+
}), r = (x) => {
|
|
2397
2393
|
if (x == null)
|
|
2398
2394
|
return;
|
|
2399
|
-
const U =
|
|
2395
|
+
const U = d.fileList.indexOf(x);
|
|
2400
2396
|
if (U !== -1) {
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2397
|
+
const D = d.fileList.slice();
|
|
2398
|
+
D.splice(U, 1), d.fileList = D;
|
|
2403
2399
|
}
|
|
2404
|
-
},
|
|
2405
|
-
|
|
2406
|
-
}, a = (x) => (
|
|
2400
|
+
}, c = () => {
|
|
2401
|
+
d.visible = !1, d.fileList = [], v.value = !1;
|
|
2402
|
+
}, a = (x) => (d.fileList = [x], y.beforeUpload ? y.beforeUpload(x) : !1), L = () => {
|
|
2407
2403
|
u.value.validateFields().then(() => {
|
|
2408
|
-
y.beforeSubmit && (
|
|
2404
|
+
y.beforeSubmit && (v.value = !0, y.beforeSubmit(d.fileList).then((x) => {
|
|
2409
2405
|
}).finally(() => {
|
|
2410
|
-
|
|
2406
|
+
v.value = !1;
|
|
2411
2407
|
}));
|
|
2412
2408
|
});
|
|
2413
|
-
},
|
|
2414
|
-
|
|
2409
|
+
}, I = () => {
|
|
2410
|
+
d.visible = !0;
|
|
2415
2411
|
};
|
|
2416
2412
|
return i({
|
|
2417
|
-
handleCancel:
|
|
2418
|
-
openModal:
|
|
2413
|
+
handleCancel: c,
|
|
2414
|
+
openModal: I,
|
|
2419
2415
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2420
|
-
confirmLoading:
|
|
2416
|
+
confirmLoading: v
|
|
2421
2417
|
}), (x, U) => {
|
|
2422
|
-
const
|
|
2418
|
+
const D = R("a-upload-dragger"), h = R("a-form-item"), b = R("a-form"), H = R("a-modal"), F = R("a-button");
|
|
2423
2419
|
return n(), S(E, null, [
|
|
2424
|
-
_(
|
|
2420
|
+
_(H, te({
|
|
2425
2421
|
title: y.title,
|
|
2426
|
-
visible:
|
|
2427
|
-
"onUpdate:visible": U[0] || (U[0] = (
|
|
2428
|
-
"confirm-loading":
|
|
2422
|
+
visible: d.visible,
|
|
2423
|
+
"onUpdate:visible": U[0] || (U[0] = (M) => d.visible = M),
|
|
2424
|
+
"confirm-loading": v.value
|
|
2429
2425
|
}, x.$attrs, {
|
|
2430
|
-
onCancel:
|
|
2426
|
+
onCancel: c,
|
|
2431
2427
|
onOk: L,
|
|
2432
2428
|
width: y.modalWidth
|
|
2433
2429
|
}), {
|
|
@@ -2435,33 +2431,33 @@ const bo = {
|
|
|
2435
2431
|
_(b, {
|
|
2436
2432
|
ref_key: "modalFormRef",
|
|
2437
2433
|
ref: u,
|
|
2438
|
-
model:
|
|
2434
|
+
model: d
|
|
2439
2435
|
}, {
|
|
2440
2436
|
default: o(() => [
|
|
2441
|
-
_(
|
|
2437
|
+
_(h, {
|
|
2442
2438
|
name: "fileList",
|
|
2443
|
-
label:
|
|
2444
|
-
rules: [{ required: y.isRequired, message:
|
|
2439
|
+
label: p(s)("hbLibComp.HbImportFile.fileLabel"),
|
|
2440
|
+
rules: [{ required: y.isRequired, message: p(s)("hbLibComp.HbImportFile.clickUp") }]
|
|
2445
2441
|
}, {
|
|
2446
2442
|
default: o(() => [
|
|
2447
|
-
_(
|
|
2443
|
+
_(D, {
|
|
2448
2444
|
maxCount: y.maxCount,
|
|
2449
2445
|
multiple: y.multiple,
|
|
2450
2446
|
accept: y.acceptFile,
|
|
2451
2447
|
name: "file",
|
|
2452
|
-
fileList:
|
|
2453
|
-
onRemove:
|
|
2448
|
+
fileList: d.fileList,
|
|
2449
|
+
onRemove: r,
|
|
2454
2450
|
beforeUpload: a
|
|
2455
2451
|
}, {
|
|
2456
2452
|
default: o(() => [
|
|
2457
2453
|
g("p", Bo, [
|
|
2458
|
-
_(
|
|
2454
|
+
_(p(Dt), { style: { "font-size": "37px" } })
|
|
2459
2455
|
]),
|
|
2460
2456
|
g("p", Po, [
|
|
2461
|
-
$(C(
|
|
2462
|
-
g("span", No, C(
|
|
2457
|
+
$(C(p(s)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2458
|
+
g("span", No, C(p(s)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2463
2459
|
]),
|
|
2464
|
-
g("p", Ro, C(
|
|
2460
|
+
g("p", Ro, C(p(s)("hbLibComp.HbFileUploadModal.format")) + ": " + C(y.acceptFile), 1)
|
|
2465
2461
|
]),
|
|
2466
2462
|
_: 1
|
|
2467
2463
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2475,14 +2471,14 @@ const bo = {
|
|
|
2475
2471
|
g("a", {
|
|
2476
2472
|
download: "Import_number-template.xlsx",
|
|
2477
2473
|
href: y.templateUrl
|
|
2478
|
-
}, C(
|
|
2474
|
+
}, C(p(s)("hbLibComp.HbImportFile.downloadTemplate")), 9, Eo)
|
|
2479
2475
|
])) : B("", !0)
|
|
2480
2476
|
]),
|
|
2481
2477
|
_: 1
|
|
2482
2478
|
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2483
2479
|
Y(x.$slots, "btn", {}, () => [
|
|
2484
|
-
_(
|
|
2485
|
-
onClick:
|
|
2480
|
+
_(F, {
|
|
2481
|
+
onClick: I,
|
|
2486
2482
|
type: "primary"
|
|
2487
2483
|
}, {
|
|
2488
2484
|
default: o(() => [
|
|
@@ -2543,22 +2539,22 @@ const bo = {
|
|
|
2543
2539
|
__name: "copy",
|
|
2544
2540
|
props: Ko,
|
|
2545
2541
|
setup(e) {
|
|
2546
|
-
const i = e,
|
|
2542
|
+
const i = e, s = N();
|
|
2547
2543
|
_t(() => {
|
|
2548
|
-
|
|
2544
|
+
s.value = i.data;
|
|
2549
2545
|
});
|
|
2550
2546
|
const u = q(() => {
|
|
2551
2547
|
if (i.cpText) return i.cpText;
|
|
2552
|
-
let
|
|
2548
|
+
let v = "";
|
|
2553
2549
|
if (i.data)
|
|
2554
2550
|
if (Array.isArray(i.data)) {
|
|
2555
2551
|
if (i.K && i.V && i.L) {
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2552
|
+
const d = i.data.find((r) => r?.[i.K] === i.V);
|
|
2553
|
+
v = d ? d[i.L] : "";
|
|
2558
2554
|
}
|
|
2559
2555
|
} else
|
|
2560
|
-
i.K && (
|
|
2561
|
-
return
|
|
2556
|
+
i.K && (v = i.data[i.K]);
|
|
2557
|
+
return v;
|
|
2562
2558
|
}), y = () => {
|
|
2563
2559
|
navigator.clipboard.writeText(u.value).then(() => {
|
|
2564
2560
|
ke.success(i.copySuccessTip);
|
|
@@ -2566,18 +2562,18 @@ const bo = {
|
|
|
2566
2562
|
ke.error("复制失败");
|
|
2567
2563
|
});
|
|
2568
2564
|
};
|
|
2569
|
-
return (
|
|
2570
|
-
const
|
|
2571
|
-
return u.value ? (n(), z(
|
|
2565
|
+
return (v, d) => {
|
|
2566
|
+
const r = R("a-tooltip");
|
|
2567
|
+
return u.value ? (n(), z(r, {
|
|
2572
2568
|
key: 0,
|
|
2573
|
-
title:
|
|
2569
|
+
title: v.tooltipTitle
|
|
2574
2570
|
}, {
|
|
2575
2571
|
default: o(() => [
|
|
2576
2572
|
g("span", {
|
|
2577
2573
|
class: "hb-lib-copy-text-eyevue",
|
|
2578
|
-
style: xe({ ...
|
|
2574
|
+
style: xe({ ...v.cpStyle }),
|
|
2579
2575
|
onClick: Ce(y, ["stop", "prevent"])
|
|
2580
|
-
}, [...
|
|
2576
|
+
}, [...d[0] || (d[0] = [
|
|
2581
2577
|
g("svg", {
|
|
2582
2578
|
t: "1766643849597",
|
|
2583
2579
|
class: "icon",
|
|
@@ -2610,7 +2606,7 @@ const bo = {
|
|
|
2610
2606
|
}, 8, ["title"])) : B("", !0);
|
|
2611
2607
|
};
|
|
2612
2608
|
}
|
|
2613
|
-
}), Jo = /* @__PURE__ */ ae(Wo, [["__scopeId", "data-v-
|
|
2609
|
+
}), Jo = /* @__PURE__ */ ae(Wo, [["__scopeId", "data-v-40447517"]]), Go = oe(Jo), Qo = {
|
|
2614
2610
|
dragList: {
|
|
2615
2611
|
type: Array,
|
|
2616
2612
|
required: !0
|
|
@@ -2655,9 +2651,9 @@ const bo = {
|
|
|
2655
2651
|
props: Qo,
|
|
2656
2652
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2657
2653
|
setup(e, { emit: i }) {
|
|
2658
|
-
const
|
|
2654
|
+
const s = e, u = kt([]);
|
|
2659
2655
|
ie(
|
|
2660
|
-
() =>
|
|
2656
|
+
() => s.dragList,
|
|
2661
2657
|
(L) => {
|
|
2662
2658
|
u.value = L;
|
|
2663
2659
|
},
|
|
@@ -2666,46 +2662,46 @@ const bo = {
|
|
|
2666
2662
|
immediate: !0
|
|
2667
2663
|
}
|
|
2668
2664
|
);
|
|
2669
|
-
const y = Ye("drag"),
|
|
2670
|
-
console.log("drag start", L),
|
|
2671
|
-
},
|
|
2672
|
-
console.log("drag end", L),
|
|
2673
|
-
},
|
|
2674
|
-
console.log("drag add", L),
|
|
2665
|
+
const y = Ye("drag"), v = i, d = (L) => {
|
|
2666
|
+
console.log("drag start", L), v("handleDragStart", L);
|
|
2667
|
+
}, r = (L) => {
|
|
2668
|
+
console.log("drag end", L), v("handleDragEnd", L);
|
|
2669
|
+
}, c = (L) => {
|
|
2670
|
+
console.log("drag add", L), v("handleDragAdd", L);
|
|
2675
2671
|
}, a = (L) => {
|
|
2676
|
-
console.log("drag remove", L),
|
|
2672
|
+
console.log("drag remove", L), v("handleDragRemove", L);
|
|
2677
2673
|
};
|
|
2678
|
-
return (L,
|
|
2679
|
-
class: K(
|
|
2674
|
+
return (L, I) => (n(), S("div", {
|
|
2675
|
+
class: K(p(y).b())
|
|
2680
2676
|
}, [
|
|
2681
|
-
L.childrenType == "component" ? (n(), z(
|
|
2677
|
+
L.childrenType == "component" ? (n(), z(p(Le), te({
|
|
2682
2678
|
key: 0,
|
|
2683
2679
|
modelValue: u.value,
|
|
2684
|
-
"onUpdate:modelValue":
|
|
2680
|
+
"onUpdate:modelValue": I[0] || (I[0] = (x) => u.value = x),
|
|
2685
2681
|
"item-key": "key",
|
|
2686
2682
|
class: { [L.dragClass]: L.dragClass }
|
|
2687
2683
|
}, L.$attrs, {
|
|
2688
2684
|
"ghost-class": L.ghostClass,
|
|
2689
|
-
onStart:
|
|
2690
|
-
onEnd:
|
|
2691
|
-
onAdd:
|
|
2685
|
+
onStart: d,
|
|
2686
|
+
onEnd: r,
|
|
2687
|
+
onAdd: c,
|
|
2692
2688
|
onRemove: a
|
|
2693
2689
|
}), {
|
|
2694
2690
|
item: o(({ element: x }) => [
|
|
2695
2691
|
(n(), z(St(x.component)))
|
|
2696
2692
|
]),
|
|
2697
2693
|
_: 1
|
|
2698
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (n(), z(
|
|
2694
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (n(), z(p(Le), te({
|
|
2699
2695
|
key: 1,
|
|
2700
2696
|
modelValue: u.value,
|
|
2701
|
-
"onUpdate:modelValue":
|
|
2697
|
+
"onUpdate:modelValue": I[1] || (I[1] = (x) => u.value = x),
|
|
2702
2698
|
"item-key": "id",
|
|
2703
2699
|
class: { [L.dragClass]: L.dragClass }
|
|
2704
2700
|
}, L.$attrs, {
|
|
2705
2701
|
"ghost-class": L.ghostClass,
|
|
2706
|
-
onStart:
|
|
2707
|
-
onEnd:
|
|
2708
|
-
onAdd:
|
|
2702
|
+
onStart: d,
|
|
2703
|
+
onEnd: r,
|
|
2704
|
+
onAdd: c,
|
|
2709
2705
|
onRemove: a
|
|
2710
2706
|
}), {
|
|
2711
2707
|
item: o(({ element: x }) => [
|
|
@@ -2738,48 +2734,48 @@ const bo = {
|
|
|
2738
2734
|
__name: "sort",
|
|
2739
2735
|
props: ta,
|
|
2740
2736
|
emits: ["change"],
|
|
2741
|
-
setup(e, { expose: i, emit:
|
|
2742
|
-
const u = e, y =
|
|
2737
|
+
setup(e, { expose: i, emit: s }) {
|
|
2738
|
+
const u = e, y = s, v = N([]), d = N("");
|
|
2743
2739
|
ie(
|
|
2744
2740
|
() => u.menuItems,
|
|
2745
|
-
(
|
|
2741
|
+
(c) => {
|
|
2746
2742
|
let a = [];
|
|
2747
|
-
Array.isArray(
|
|
2743
|
+
Array.isArray(c) && c.length && c.forEach((L) => {
|
|
2748
2744
|
a = [
|
|
2749
2745
|
...a,
|
|
2750
2746
|
{ label: `${L.label}升序`, value: `${L.value}`, sort: "Asc" },
|
|
2751
2747
|
{ label: `${L.label}降序`, value: `${L.value}`, sort: "Desc" }
|
|
2752
2748
|
];
|
|
2753
|
-
}),
|
|
2749
|
+
}), v.value = a;
|
|
2754
2750
|
},
|
|
2755
2751
|
{
|
|
2756
2752
|
deep: !0,
|
|
2757
2753
|
immediate: !0
|
|
2758
2754
|
}
|
|
2759
2755
|
);
|
|
2760
|
-
const
|
|
2761
|
-
|
|
2762
|
-
orderFeild:
|
|
2763
|
-
orderBy:
|
|
2764
|
-
}), y("change",
|
|
2756
|
+
const r = (c) => {
|
|
2757
|
+
d.value = c.value + c.sort, u.getSort && u.getSort({
|
|
2758
|
+
orderFeild: c.value,
|
|
2759
|
+
orderBy: c.sort
|
|
2760
|
+
}), y("change", d);
|
|
2765
2761
|
};
|
|
2766
2762
|
return i({
|
|
2767
|
-
currentActiveItem:
|
|
2768
|
-
}), (
|
|
2769
|
-
const L = R("a-menu-item"),
|
|
2763
|
+
currentActiveItem: d
|
|
2764
|
+
}), (c, a) => {
|
|
2765
|
+
const L = R("a-menu-item"), I = R("a-menu"), x = R("a-dropdown");
|
|
2770
2766
|
return n(), z(x, {
|
|
2771
2767
|
trigger: [u.triggerWay]
|
|
2772
2768
|
}, {
|
|
2773
2769
|
overlay: o(() => [
|
|
2774
|
-
_(
|
|
2770
|
+
_(I, null, {
|
|
2775
2771
|
default: o(() => [
|
|
2776
|
-
(n(!0), S(E, null, ne(
|
|
2772
|
+
(n(!0), S(E, null, ne(v.value, (U) => (n(), z(L, {
|
|
2777
2773
|
key: U.value + U.sort,
|
|
2778
|
-
onClick: (
|
|
2774
|
+
onClick: (D) => r(U)
|
|
2779
2775
|
}, {
|
|
2780
2776
|
default: o(() => [
|
|
2781
2777
|
g("span", {
|
|
2782
|
-
class: K(
|
|
2778
|
+
class: K(d.value == U.value + U.sort ? "activted" : "")
|
|
2783
2779
|
}, C(U.label), 3)
|
|
2784
2780
|
]),
|
|
2785
2781
|
_: 2
|
|
@@ -2795,7 +2791,7 @@ const bo = {
|
|
|
2795
2791
|
}, ["prevent"]))
|
|
2796
2792
|
}, [
|
|
2797
2793
|
$(C(u.colText) + " ", 1),
|
|
2798
|
-
_(
|
|
2794
|
+
_(p(Re))
|
|
2799
2795
|
])
|
|
2800
2796
|
]),
|
|
2801
2797
|
_: 1
|
|
@@ -2826,8 +2822,8 @@ const bo = {
|
|
|
2826
2822
|
getLogData: {}
|
|
2827
2823
|
},
|
|
2828
2824
|
emits: ["update:visible"],
|
|
2829
|
-
setup(e, { expose: i, emit:
|
|
2830
|
-
const { t: u } = ce(), y = e,
|
|
2825
|
+
setup(e, { expose: i, emit: s }) {
|
|
2826
|
+
const { t: u } = ce(), y = e, v = [
|
|
2831
2827
|
{
|
|
2832
2828
|
title: u("hbLibComp.HbLogModal.operator"),
|
|
2833
2829
|
dataIndex: "userName",
|
|
@@ -2839,7 +2835,7 @@ const bo = {
|
|
|
2839
2835
|
width: "25%"
|
|
2840
2836
|
},
|
|
2841
2837
|
{ title: u("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2842
|
-
],
|
|
2838
|
+
], d = q(() => y.columns || v), r = q(() => y.title || u("hbLibComp.HbLogModal.operateLogs")), c = N(!1), a = Te({
|
|
2843
2839
|
list: [],
|
|
2844
2840
|
pagination: {
|
|
2845
2841
|
current: 1,
|
|
@@ -2847,7 +2843,7 @@ const bo = {
|
|
|
2847
2843
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2848
2844
|
showQuickJumper: !0,
|
|
2849
2845
|
showSizeChanger: !0,
|
|
2850
|
-
showTotal: (b,
|
|
2846
|
+
showTotal: (b, H) => H[0] + "-" + H[1] + " 总共" + b + "页",
|
|
2851
2847
|
total: 0
|
|
2852
2848
|
}
|
|
2853
2849
|
});
|
|
@@ -2870,18 +2866,18 @@ const bo = {
|
|
|
2870
2866
|
pageSize: a.pagination.pageSize,
|
|
2871
2867
|
query: y.params
|
|
2872
2868
|
};
|
|
2873
|
-
y.getLogData && (
|
|
2874
|
-
Number(
|
|
2869
|
+
y.getLogData && (c.value = !0, y.getLogData(b).then((H) => {
|
|
2870
|
+
Number(H.code) == 200 ? (a.pagination.total = Number(H.data.total), a.list = H.data[y.dataStr] || []) : ke.error(H.message);
|
|
2875
2871
|
}).finally(() => {
|
|
2876
|
-
|
|
2872
|
+
c.value = !1;
|
|
2877
2873
|
}));
|
|
2878
|
-
},
|
|
2874
|
+
}, I = (b) => {
|
|
2879
2875
|
a.pagination.current = b.current, a.pagination.pageSize = b.pageSize, L();
|
|
2880
2876
|
}, x = () => {
|
|
2881
|
-
a.list = [],
|
|
2877
|
+
a.list = [], h("update:visible", !1);
|
|
2882
2878
|
}, U = () => {
|
|
2883
|
-
|
|
2884
|
-
},
|
|
2879
|
+
h("update:visible", !0);
|
|
2880
|
+
}, D = (b, H = "YYYY-MM-DD HH:mm:ss") => b ? Fe(b).format(H) : "", h = s;
|
|
2885
2881
|
return ie(
|
|
2886
2882
|
() => y.visible,
|
|
2887
2883
|
(b) => {
|
|
@@ -2889,57 +2885,57 @@ const bo = {
|
|
|
2889
2885
|
}
|
|
2890
2886
|
), i({
|
|
2891
2887
|
close: x,
|
|
2892
|
-
loading:
|
|
2893
|
-
}), (b,
|
|
2894
|
-
const
|
|
2888
|
+
loading: c
|
|
2889
|
+
}), (b, H) => {
|
|
2890
|
+
const F = R("a-tooltip"), M = R("HbLibCopy"), T = R("a-table"), m = R("a-button"), t = R("a-modal");
|
|
2895
2891
|
return n(), S(E, null, [
|
|
2896
2892
|
_(t, {
|
|
2897
2893
|
visible: e.visible,
|
|
2898
|
-
title:
|
|
2894
|
+
title: r.value,
|
|
2899
2895
|
width: e.width,
|
|
2900
2896
|
height: e.height,
|
|
2901
2897
|
onCancel: x
|
|
2902
2898
|
}, {
|
|
2903
2899
|
footer: o(() => [
|
|
2904
|
-
_(
|
|
2900
|
+
_(m, { onClick: x }, {
|
|
2905
2901
|
default: o(() => [
|
|
2906
|
-
$(C(
|
|
2902
|
+
$(C(p(u)("hbLibComp.HbLogModal.close")), 1)
|
|
2907
2903
|
]),
|
|
2908
2904
|
_: 1
|
|
2909
2905
|
})
|
|
2910
2906
|
]),
|
|
2911
2907
|
default: o(() => [
|
|
2912
|
-
_(
|
|
2908
|
+
_(T, {
|
|
2913
2909
|
bordered: "",
|
|
2914
2910
|
rowKey: "id",
|
|
2915
|
-
columns:
|
|
2911
|
+
columns: d.value,
|
|
2916
2912
|
dataSource: a.list,
|
|
2917
2913
|
pagination: a.pagination,
|
|
2918
|
-
loading:
|
|
2914
|
+
loading: c.value,
|
|
2919
2915
|
scroll: { y: e.scrollY },
|
|
2920
|
-
onChange:
|
|
2916
|
+
onChange: I
|
|
2921
2917
|
}, je({
|
|
2922
|
-
bodyCell: o(({ column: l, record:
|
|
2918
|
+
bodyCell: o(({ column: l, record: f }) => [
|
|
2923
2919
|
l && l.needTooltip ? (n(), S(E, { key: 0 }, [
|
|
2924
|
-
l.needTooltip ? (n(), z(
|
|
2920
|
+
l.needTooltip ? (n(), z(F, { key: 0 }, {
|
|
2925
2921
|
title: o(() => [
|
|
2926
|
-
$(C(
|
|
2922
|
+
$(C(f[l.dataIndex]), 1)
|
|
2927
2923
|
]),
|
|
2928
2924
|
default: o(() => [
|
|
2929
|
-
$(" " + C(
|
|
2925
|
+
$(" " + C(f[l.dataIndex]), 1)
|
|
2930
2926
|
]),
|
|
2931
2927
|
_: 2
|
|
2932
2928
|
}, 1024)) : B("", !0)
|
|
2933
2929
|
], 64)) : B("", !0),
|
|
2934
2930
|
l && l.needCopy ? (n(), S(E, { key: 1 }, [
|
|
2935
|
-
g("div", ia, C(
|
|
2936
|
-
_(
|
|
2937
|
-
"cp-text":
|
|
2931
|
+
g("div", ia, C(f[l.dataIndex]), 1),
|
|
2932
|
+
_(M, {
|
|
2933
|
+
"cp-text": f[l.dataIndex],
|
|
2938
2934
|
style: { position: "relative" }
|
|
2939
2935
|
}, null, 8, ["cp-text"])
|
|
2940
2936
|
], 64)) : B("", !0),
|
|
2941
2937
|
l && l.needFormat ? (n(), S(E, { key: 2 }, [
|
|
2942
|
-
$(C(
|
|
2938
|
+
$(C(D(f[l.dataIndex], l.operateTime)), 1)
|
|
2943
2939
|
], 64)) : B("", !0)
|
|
2944
2940
|
]),
|
|
2945
2941
|
_: 2
|
|
@@ -2958,7 +2954,7 @@ const bo = {
|
|
|
2958
2954
|
_: 3
|
|
2959
2955
|
}, 8, ["visible", "title", "width", "height"]),
|
|
2960
2956
|
e.needBtn ? Y(b.$slots, "default", { key: 0 }, () => [
|
|
2961
|
-
_(
|
|
2957
|
+
_(m, { onClick: U }, {
|
|
2962
2958
|
default: o(() => [
|
|
2963
2959
|
$(C(e.logBtnText), 1)
|
|
2964
2960
|
]),
|
|
@@ -2991,19 +2987,19 @@ const ua = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to uploa
|
|
|
2991
2987
|
var ye = { exports: {} }, ya = ye.exports, ct;
|
|
2992
2988
|
function Ca() {
|
|
2993
2989
|
return ct || (ct = 1, (function(e, i) {
|
|
2994
|
-
(function(
|
|
2990
|
+
(function(s, u) {
|
|
2995
2991
|
e.exports = u(Fe);
|
|
2996
|
-
})(ya, (function(
|
|
2997
|
-
function u(
|
|
2998
|
-
return
|
|
2992
|
+
})(ya, (function(s) {
|
|
2993
|
+
function u(d) {
|
|
2994
|
+
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
2999
2995
|
}
|
|
3000
|
-
var y = u(
|
|
3001
|
-
return
|
|
3002
|
-
}, 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(
|
|
3003
|
-
var
|
|
3004
|
-
return
|
|
2996
|
+
var y = u(s), v = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(d, r) {
|
|
2997
|
+
return r === "W" ? d + "周" : d + "日";
|
|
2998
|
+
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(d, r) {
|
|
2999
|
+
var c = 100 * d + r;
|
|
3000
|
+
return c < 600 ? "凌晨" : c < 900 ? "早上" : c < 1100 ? "上午" : c < 1300 ? "中午" : c < 1800 ? "下午" : "晚上";
|
|
3005
3001
|
} };
|
|
3006
|
-
return y.default.locale(
|
|
3002
|
+
return y.default.locale(v, null, !0), v;
|
|
3007
3003
|
}));
|
|
3008
3004
|
})(ye)), ye.exports;
|
|
3009
3005
|
}
|
|
@@ -3015,8 +3011,8 @@ const Ma = {
|
|
|
3015
3011
|
zh_CN: ma,
|
|
3016
3012
|
de_DE: ga
|
|
3017
3013
|
}, Ia = function(e) {
|
|
3018
|
-
Object.keys(dt).forEach((
|
|
3019
|
-
e.use(dt[
|
|
3014
|
+
Object.keys(dt).forEach((s) => {
|
|
3015
|
+
e.use(dt[s]);
|
|
3020
3016
|
});
|
|
3021
3017
|
};
|
|
3022
3018
|
export {
|