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