@hb-hellotech/hb-ui 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +944 -860
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as te, reactive as Je, ref as
|
|
2
|
+
import { defineComponent as te, reactive as Je, ref as R, computed as W, watch as ce, createElementBlock as S, openBlock as a, normalizeClass as E, unref as n, createVNode as F, withCtx as s, createElementVNode as v, toDisplayString as _, createTextVNode as A, createBlock as z, createCommentVNode as N, Fragment as J, renderList as ne, inject as we, resolveComponent as q, Transition as Xe, withDirectives as ie, mergeProps as X, createSlots as Ge, renderSlot as j, vShow as et, nextTick as he, onMounted as Fe, onUnmounted as tt, useTemplateRef as lt, provide as ot, normalizeStyle as pe, mergeModels as Me, useModel as at, withModifiers as ke, resolveDirective as nt, watchEffect as st, shallowRef as it, resolveDynamicComponent as rt } from "vue";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
4
|
import { CloseOutlined as ct, QuestionCircleOutlined as dt, SearchOutlined as xe, UpCircleOutlined as ut, DownCircleOutlined as ht, UnorderedListOutlined as bt, DownOutlined as Ie } from "@ant-design/icons-vue";
|
|
5
|
-
import { Modal as _e, Button as de, Tooltip as He, Switch as Ae, Radio as De, RadioGroup as Oe, InputNumber as Be, DatePicker as Re, Checkbox as
|
|
5
|
+
import { Modal as _e, Button as de, Tooltip as He, Switch as Ae, Radio as De, RadioGroup as Oe, InputNumber as Be, DatePicker as Re, Checkbox as me, CheckboxGroup as ze, Select as Ne, Input as Pe, Col as ft, Row as mt, FormItem as Ve, Form as Ee, SelectOption as Ue, Popconfirm as Ce, MenuItem as Ye, Menu as je, Dropdown as qe, Popover as pt, message as Se } from "ant-design-vue";
|
|
6
6
|
import { useRoute as Qe } from "vue-router";
|
|
7
7
|
import { useI18n as re } from "vue-i18n";
|
|
8
8
|
import Le from "lodash";
|
|
9
9
|
import { useFullscreen as vt, useDebounceFn as gt } from "@vueuse/core";
|
|
10
|
-
import
|
|
11
|
-
const yt = "hb-",
|
|
10
|
+
import $e from "dayjs";
|
|
11
|
+
const yt = "hb-", Te = (e = "") => {
|
|
12
12
|
const f = `${yt}${e}`;
|
|
13
13
|
return Ct(f);
|
|
14
|
-
}, se = (e, f, u,
|
|
14
|
+
}, se = (e, f, u, i) => (f && (e += `-${f}`), u && (e += `__${u}`), i && (e += `--${i}`), e), Ct = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (f) => f ? se(e, f, "", "") : se(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -23,7 +23,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
23
23
|
// hb-button__header--primary
|
|
24
24
|
em: (f, u) => se(e, "", f, u),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (f, u,
|
|
26
|
+
bem: (f, u, i) => se(e, f, u, i),
|
|
27
27
|
// is-disabled
|
|
28
28
|
is: (f, u) => u ? `is-${f}` : ""
|
|
29
29
|
}), Lt = ["onMouseenter", "onMouseleave"], kt = ["onClick"], _t = /* @__PURE__ */ te({
|
|
@@ -38,89 +38,89 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
40
|
setup(e, { expose: f, emit: u }) {
|
|
41
|
-
const
|
|
41
|
+
const i = re().t, $ = re().messages.value.en_US, p = re().messages.value.ja_JP, m = re().messages.value.zh_CN, c = e, t = u, h = Te("sfcm"), b = Qe(), B = Je({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
43
|
+
}), D = R(!1), Z = R(600);
|
|
44
|
+
let C = [];
|
|
45
|
+
const y = R([]), I = R([]), T = W(() => y.value.every((k) => k.isLinked || k.isFixed)), V = (k) => {
|
|
46
|
+
const O = k.draggedContext.element, g = k.relatedContext.index;
|
|
47
|
+
if (O.isLinked || O.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const Y =
|
|
49
|
+
const Y = y.value.map((Q, ae) => ({ item: Q, index: ae })).filter(({ item: Q }) => Q.isLinked).map(({ index: Q }) => Q);
|
|
50
50
|
if (Y.length === 0)
|
|
51
51
|
return !0;
|
|
52
|
-
for (let
|
|
53
|
-
const ae = Y[
|
|
52
|
+
for (let Q = 0; Q < Y.length - 1; Q++) {
|
|
53
|
+
const ae = Y[Q], ue = Y[Q + 1];
|
|
54
54
|
if (g > ae && g < ue)
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
let
|
|
61
|
-
if (
|
|
58
|
+
}, M = () => {
|
|
59
|
+
const k = localStorage.getItem("pro__Login_Userinfo");
|
|
60
|
+
let O = "anonymous";
|
|
61
|
+
if (k)
|
|
62
62
|
try {
|
|
63
|
-
|
|
63
|
+
O = JSON.parse(k).value.jobNumber || "anonymous";
|
|
64
64
|
} catch (Y) {
|
|
65
65
|
console.warn("解析用户信息失败:", Y);
|
|
66
66
|
}
|
|
67
67
|
let g = b?.path;
|
|
68
|
-
return `searchFormConfig_${
|
|
69
|
-
},
|
|
70
|
-
ja_JP: () => Le.get(
|
|
71
|
-
en_US: () => Le.get(
|
|
72
|
-
zh_CN: () => Le.get(
|
|
73
|
-
})[
|
|
68
|
+
return `searchFormConfig_${O}_${g}`;
|
|
69
|
+
}, w = (k) => ({
|
|
70
|
+
ja_JP: () => Le.get(p, k.labelLanguage || ""),
|
|
71
|
+
en_US: () => Le.get($, k.labelLanguage || ""),
|
|
72
|
+
zh_CN: () => Le.get(m, k.labelLanguage || "")
|
|
73
|
+
})[B.lan]?.() || k.label, l = () => {
|
|
74
74
|
try {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
const g = JSON.parse(
|
|
75
|
+
const k = M(), O = localStorage.getItem(k);
|
|
76
|
+
if (O) {
|
|
77
|
+
const g = JSON.parse(O);
|
|
78
78
|
if (g.originalList && Array.isArray(g.originalList)) {
|
|
79
|
-
|
|
80
|
-
const Y =
|
|
81
|
-
...
|
|
82
|
-
label:
|
|
83
|
-
key:
|
|
84
|
-
isFixed:
|
|
85
|
-
isLinked:
|
|
86
|
-
labelLanguage:
|
|
87
|
-
})), ge =
|
|
88
|
-
...
|
|
89
|
-
label:
|
|
90
|
-
key:
|
|
91
|
-
isFixed:
|
|
79
|
+
C = JSON.parse(JSON.stringify(g.originalList));
|
|
80
|
+
const Y = C.filter((x) => x?.isFixed), Q = C.filter((x) => x?.isLinked), ae = g.showList.filter((x) => !x.isFixed && !x.isLinked), ue = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - Y.length - Q.length) : ae.length, ve = Y.map((x) => ({
|
|
81
|
+
...x,
|
|
82
|
+
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
+
key: x.key,
|
|
84
|
+
isFixed: x?.isFixed || !1,
|
|
85
|
+
isLinked: x?.isLinked || !1,
|
|
86
|
+
labelLanguage: x?.labelLanguage || void 0
|
|
87
|
+
})), ge = Q.map((x) => ({
|
|
88
|
+
...x,
|
|
89
|
+
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
+
key: x.key,
|
|
91
|
+
isFixed: x?.isFixed || !1,
|
|
92
92
|
isLinked: !0,
|
|
93
|
-
labelLanguage:
|
|
94
|
-
})), ye = ae.slice(0, ue).map((
|
|
95
|
-
...
|
|
96
|
-
label:
|
|
97
|
-
key:
|
|
98
|
-
isFixed:
|
|
99
|
-
isLinked:
|
|
100
|
-
labelLanguage:
|
|
93
|
+
labelLanguage: x?.labelLanguage || void 0
|
|
94
|
+
})), ye = ae.slice(0, ue).map((x) => ({
|
|
95
|
+
...x,
|
|
96
|
+
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
+
key: x.key,
|
|
98
|
+
isFixed: x?.isFixed || !1,
|
|
99
|
+
isLinked: x?.isLinked || !1,
|
|
100
|
+
labelLanguage: x?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
-
...
|
|
106
|
-
label:
|
|
107
|
-
key:
|
|
108
|
-
isFixed:
|
|
109
|
-
isLinked:
|
|
102
|
+
y.value = [...ve, ...ge, ...ye];
|
|
103
|
+
const H = y.value.map((x) => x.key), Ze = C.map((x) => x.key).filter((x) => !H.includes(x));
|
|
104
|
+
return I.value = C.filter((x) => Ze.includes(x.key)).map((x) => ({
|
|
105
|
+
...x,
|
|
106
|
+
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
|
+
key: x.key,
|
|
108
|
+
isFixed: x?.isFixed || !1,
|
|
109
|
+
isLinked: x?.isLinked || !1,
|
|
110
110
|
active: !1,
|
|
111
|
-
labelLanguage:
|
|
111
|
+
labelLanguage: x?.labelLanguage || void 0
|
|
112
112
|
})), !0;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
} catch (
|
|
116
|
-
console.warn("加载保存的搜索配置失败:",
|
|
115
|
+
} catch (k) {
|
|
116
|
+
console.warn("加载保存的搜索配置失败:", k);
|
|
117
117
|
}
|
|
118
118
|
return !1;
|
|
119
|
-
},
|
|
119
|
+
}, o = () => {
|
|
120
120
|
try {
|
|
121
|
-
const
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
121
|
+
const k = {
|
|
122
|
+
originalList: C,
|
|
123
|
+
showList: y.value.map((g) => ({
|
|
124
124
|
...g,
|
|
125
125
|
key: g.key,
|
|
126
126
|
label: g.label,
|
|
@@ -128,116 +128,116 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
128
128
|
isLinked: g.isLinked,
|
|
129
129
|
labelLanguage: g?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
|
-
},
|
|
132
|
-
localStorage.setItem(
|
|
133
|
-
} catch (
|
|
134
|
-
console.warn("保存搜索配置失败:",
|
|
131
|
+
}, O = M();
|
|
132
|
+
localStorage.setItem(O, JSON.stringify(k));
|
|
133
|
+
} catch (k) {
|
|
134
|
+
console.warn("保存搜索配置失败:", k);
|
|
135
135
|
}
|
|
136
|
-
}, d =
|
|
137
|
-
const
|
|
138
|
-
return
|
|
136
|
+
}, d = W(() => {
|
|
137
|
+
const k = y.value.filter((g) => !g.isFixed && !g.isLinked).length, O = y.value.filter((g) => g.isFixed || g.isLinked).length;
|
|
138
|
+
return k >= c.showNumber - O;
|
|
139
139
|
});
|
|
140
140
|
ce(
|
|
141
|
-
() =>
|
|
142
|
-
(
|
|
143
|
-
if (!
|
|
144
|
-
|
|
145
|
-
const g =
|
|
146
|
-
...
|
|
147
|
-
label:
|
|
148
|
-
key:
|
|
149
|
-
isFixed:
|
|
150
|
-
isLinked:
|
|
151
|
-
labelLanguage:
|
|
152
|
-
})), ve = Y.map((
|
|
153
|
-
...
|
|
154
|
-
label:
|
|
155
|
-
key:
|
|
156
|
-
isFixed:
|
|
141
|
+
() => c.list,
|
|
142
|
+
(k) => {
|
|
143
|
+
if (!l() && C.length === 0) {
|
|
144
|
+
C = JSON.parse(JSON.stringify(k));
|
|
145
|
+
const g = k.filter((H) => H?.isFixed), Y = k.filter((H) => H?.isLinked), Q = k.filter((H) => !H?.isFixed && !H?.isLinked), ae = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - g.length - Y.length) : Q.length, ue = g.map((H) => ({
|
|
146
|
+
...H,
|
|
147
|
+
label: w(H) || `${H.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
148
|
+
key: H.key,
|
|
149
|
+
isFixed: H?.isFixed || !1,
|
|
150
|
+
isLinked: H?.isLinked || !1,
|
|
151
|
+
labelLanguage: H?.labelLanguage || void 0
|
|
152
|
+
})), ve = Y.map((H) => ({
|
|
153
|
+
...H,
|
|
154
|
+
label: w(H) || `${H.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
155
|
+
key: H.key,
|
|
156
|
+
isFixed: H?.isFixed || !1,
|
|
157
157
|
isLinked: !0,
|
|
158
|
-
labelLanguage:
|
|
159
|
-
})), ge =
|
|
160
|
-
...
|
|
161
|
-
label:
|
|
162
|
-
key:
|
|
163
|
-
isFixed:
|
|
164
|
-
isLinked:
|
|
165
|
-
labelLanguage:
|
|
158
|
+
labelLanguage: H?.labelLanguage || void 0
|
|
159
|
+
})), ge = Q.slice(0, ae).map((H) => ({
|
|
160
|
+
...H,
|
|
161
|
+
label: w(H) || `${H.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
162
|
+
key: H.key,
|
|
163
|
+
isFixed: H?.isFixed || !1,
|
|
164
|
+
isLinked: H?.isLinked || !1,
|
|
165
|
+
labelLanguage: H?.labelLanguage || void 0
|
|
166
166
|
}));
|
|
167
|
-
|
|
168
|
-
const ye =
|
|
169
|
-
...
|
|
170
|
-
label:
|
|
171
|
-
key:
|
|
172
|
-
isFixed:
|
|
173
|
-
isLinked:
|
|
167
|
+
y.value = [...ue, ...ve, ...ge];
|
|
168
|
+
const ye = Q.slice(ae).map((H) => ({
|
|
169
|
+
...H,
|
|
170
|
+
label: w(H) || `${H.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
171
|
+
key: H.key,
|
|
172
|
+
isFixed: H?.isFixed || !1,
|
|
173
|
+
isLinked: H?.isLinked || !1,
|
|
174
174
|
active: !1,
|
|
175
|
-
labelLanguage:
|
|
175
|
+
labelLanguage: H?.labelLanguage || void 0
|
|
176
176
|
}));
|
|
177
|
-
|
|
177
|
+
I.value = ye;
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
{ immediate: !0 }
|
|
181
181
|
);
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
},
|
|
182
|
+
const L = (k) => {
|
|
183
|
+
const O = y.value.findIndex((g) => g.key === k.key);
|
|
184
|
+
O !== -1 && (y.value.splice(O, 1), I.value.push({ ...k, active: !1 }));
|
|
185
|
+
}, r = (k) => {
|
|
186
186
|
if (d.value)
|
|
187
187
|
return;
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const [g] =
|
|
191
|
-
|
|
188
|
+
const O = I.value.findIndex((g) => g.key === k.key);
|
|
189
|
+
if (O !== -1) {
|
|
190
|
+
const [g] = I.value.splice(O, 1);
|
|
191
|
+
y.value.push({ ...g, active: !1 });
|
|
192
192
|
}
|
|
193
193
|
}, U = () => {
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
|
|
194
|
+
D.value = !1;
|
|
195
|
+
}, P = () => {
|
|
196
|
+
D.value = !0;
|
|
197
197
|
}, ee = () => {
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
const
|
|
204
|
-
|
|
198
|
+
o(), t("confirm", y.value), U();
|
|
199
|
+
}, G = (k) => {
|
|
200
|
+
const O = I.value.findIndex((g) => g.key === k.key);
|
|
201
|
+
O !== -1 && (I.value[O].active = !0);
|
|
202
|
+
}, K = (k) => {
|
|
203
|
+
const O = I.value.findIndex((g) => g.key === k.key);
|
|
204
|
+
O !== -1 && (I.value[O].active = !1);
|
|
205
205
|
};
|
|
206
206
|
return f({
|
|
207
|
-
toOpenModal:
|
|
208
|
-
}), (
|
|
207
|
+
toOpenModal: P
|
|
208
|
+
}), (k, O) => (a(), S("div", {
|
|
209
209
|
class: E(n(h).b())
|
|
210
210
|
}, [
|
|
211
|
-
|
|
212
|
-
visible:
|
|
213
|
-
"onUpdate:visible":
|
|
214
|
-
width:
|
|
211
|
+
F(n(_e), {
|
|
212
|
+
visible: D.value,
|
|
213
|
+
"onUpdate:visible": O[1] || (O[1] = (g) => D.value = g),
|
|
214
|
+
width: Z.value,
|
|
215
215
|
onCancel: U,
|
|
216
216
|
onOk: ee
|
|
217
217
|
}, {
|
|
218
|
-
title:
|
|
218
|
+
title: s(() => [
|
|
219
219
|
v("div", {
|
|
220
220
|
class: E(n(h).e("title"))
|
|
221
|
-
},
|
|
221
|
+
}, _(e.title), 3)
|
|
222
222
|
]),
|
|
223
|
-
footer:
|
|
224
|
-
|
|
225
|
-
default:
|
|
226
|
-
|
|
223
|
+
footer: s(() => [
|
|
224
|
+
F(n(de), { onClick: U }, {
|
|
225
|
+
default: s(() => [
|
|
226
|
+
A(_(k.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
227
227
|
]),
|
|
228
228
|
_: 1
|
|
229
229
|
}),
|
|
230
|
-
|
|
230
|
+
F(n(de), {
|
|
231
231
|
type: "primary",
|
|
232
232
|
onClick: ee
|
|
233
233
|
}, {
|
|
234
|
-
default:
|
|
235
|
-
|
|
234
|
+
default: s(() => [
|
|
235
|
+
A(_(k.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
236
236
|
]),
|
|
237
237
|
_: 1
|
|
238
238
|
})
|
|
239
239
|
]),
|
|
240
|
-
default:
|
|
240
|
+
default: s(() => [
|
|
241
241
|
v("section", {
|
|
242
242
|
class: E(n(h).e("show"))
|
|
243
243
|
}, [
|
|
@@ -246,30 +246,30 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
246
246
|
}, [
|
|
247
247
|
v("span", {
|
|
248
248
|
class: E(n(h).e("title__tip"))
|
|
249
|
-
},
|
|
250
|
-
v("span", null,
|
|
249
|
+
}, _(k.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
250
|
+
v("span", null, _(k.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + _(e.showNumber) + _(k.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
251
251
|
], 2),
|
|
252
252
|
v("div", {
|
|
253
253
|
class: E(n(h).e("show__tag"))
|
|
254
254
|
}, [
|
|
255
|
-
|
|
256
|
-
modelValue:
|
|
257
|
-
"onUpdate:modelValue":
|
|
255
|
+
F(n(fe), {
|
|
256
|
+
modelValue: y.value,
|
|
257
|
+
"onUpdate:modelValue": O[0] || (O[0] = (g) => y.value = g),
|
|
258
258
|
"item-key": "key",
|
|
259
259
|
tag: "div",
|
|
260
|
-
disabled:
|
|
260
|
+
disabled: T.value,
|
|
261
261
|
move: V
|
|
262
262
|
}, {
|
|
263
|
-
item:
|
|
263
|
+
item: s(({ element: g }) => [
|
|
264
264
|
v("div", {
|
|
265
265
|
class: E([n(h).e("show__tag__item"), n(h).is("fixed", g.isFixed), n(h).is("linked", g.isLinked)])
|
|
266
266
|
}, [
|
|
267
|
-
|
|
268
|
-
!g.isFixed && !g.isLinked && e.list.length > 1 ? (
|
|
267
|
+
A(_(g.label) + " ", 1),
|
|
268
|
+
!g.isFixed && !g.isLinked && e.list.length > 1 ? (a(), z(n(ct), {
|
|
269
269
|
key: 0,
|
|
270
270
|
class: E(n(h).e("show__tag__item-close")),
|
|
271
|
-
onClick: (Y) =>
|
|
272
|
-
}, null, 8, ["class", "onClick"])) :
|
|
271
|
+
onClick: (Y) => L(g)
|
|
272
|
+
}, null, 8, ["class", "onClick"])) : N("", !0)
|
|
273
273
|
], 2)
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
@@ -284,27 +284,27 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
284
284
|
}, [
|
|
285
285
|
v("span", {
|
|
286
286
|
class: E(n(h).e("title__tip"))
|
|
287
|
-
},
|
|
287
|
+
}, _(k.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
288
288
|
], 2),
|
|
289
289
|
v("div", {
|
|
290
290
|
class: E(n(h).e("unshow__tag"))
|
|
291
291
|
}, [
|
|
292
|
-
|
|
292
|
+
I.value.length > 0 ? (a(!0), S(J, { key: 0 }, ne(I.value, (g) => (a(), S("div", {
|
|
293
293
|
class: E([n(h).e("unshow__tag__item"), n(h).is("fixed", g.isFixed || ""), n(h).is("linked", g.isLinked || "")]),
|
|
294
294
|
key: g.key,
|
|
295
|
-
onMouseenter: (Y) =>
|
|
296
|
-
onMouseleave: (Y) =>
|
|
295
|
+
onMouseenter: (Y) => G(g),
|
|
296
|
+
onMouseleave: (Y) => K(g)
|
|
297
297
|
}, [
|
|
298
|
-
|
|
299
|
-
g.active ? (
|
|
298
|
+
A(_(g.label) + " ", 1),
|
|
299
|
+
g.active ? (a(), S("aside", {
|
|
300
300
|
key: 0,
|
|
301
301
|
class: E(n(h).e("unshow__tag__item-add")),
|
|
302
|
-
onClick: (Y) =>
|
|
303
|
-
},
|
|
304
|
-
], 42, Lt))), 128)) : (
|
|
302
|
+
onClick: (Y) => r(g)
|
|
303
|
+
}, _(k.$t("hbLibComp.hbFormItemFilterModal.add")), 11, kt)) : N("", !0)
|
|
304
|
+
], 42, Lt))), 128)) : (a(), S("div", {
|
|
305
305
|
key: 1,
|
|
306
306
|
class: E(n(h).e("unshow__tag__empty"))
|
|
307
|
-
},
|
|
307
|
+
}, _(k.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
308
308
|
], 2)
|
|
309
309
|
], 2)
|
|
310
310
|
]),
|
|
@@ -314,12 +314,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
314
314
|
}
|
|
315
315
|
}), oe = (e, f) => {
|
|
316
316
|
const u = e.__vccOpts || e;
|
|
317
|
-
for (const [
|
|
318
|
-
u[
|
|
317
|
+
for (const [i, $] of f)
|
|
318
|
+
u[i] = $;
|
|
319
319
|
return u;
|
|
320
320
|
}, St = /* @__PURE__ */ oe(_t, [["__scopeId", "data-v-6ceb65e8"]]), le = (e, f) => (e.install = (u) => {
|
|
321
|
-
for (const
|
|
322
|
-
u.component(
|
|
321
|
+
for (const i of [e, ...Object.values({})])
|
|
322
|
+
u.component(i.name, i);
|
|
323
323
|
}, e), wt = le(St), Ft = { class: "form-footer" }, xt = /* @__PURE__ */ te({
|
|
324
324
|
name: "HbLibListForm",
|
|
325
325
|
__name: "HbListForm",
|
|
@@ -349,48 +349,48 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
349
349
|
},
|
|
350
350
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
351
351
|
setup(e, { expose: f, emit: u }) {
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
|
|
352
|
+
const i = u, $ = we("HB_LIST_PAGE_CONTAINER"), p = Te("form"), m = e, c = R("show"), t = W(() => (console.log(m.items), [...m.items])), h = R(), b = () => {
|
|
353
|
+
i("handleSearch");
|
|
354
|
+
}, B = () => {
|
|
355
|
+
i("handleReset");
|
|
356
|
+
}, D = R(), Z = () => {
|
|
357
|
+
D.value && D.value.toOpenModal();
|
|
358
|
+
}, C = (w) => {
|
|
359
|
+
i("handleSfcmConfirm", w);
|
|
360
|
+
}, y = () => {
|
|
361
|
+
c.value = c.value === "show" ? "hide" : "show";
|
|
362
362
|
};
|
|
363
363
|
ce(
|
|
364
|
-
() =>
|
|
365
|
-
(
|
|
366
|
-
if (
|
|
367
|
-
console.log(
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
|
|
364
|
+
() => m.isFormExpanded,
|
|
365
|
+
(w) => {
|
|
366
|
+
if (w) {
|
|
367
|
+
console.log(w);
|
|
368
|
+
const l = document.querySelector("#subpackage_container");
|
|
369
|
+
l instanceof HTMLElement && (l.style.overflow = "hidden", setTimeout(() => {
|
|
370
|
+
l.style.overflow = "auto";
|
|
371
371
|
}, 500));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
);
|
|
375
|
-
const
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
|
|
375
|
+
const I = (w) => {
|
|
376
|
+
const l = w;
|
|
377
|
+
l.style.height = "", l.offsetHeight;
|
|
378
|
+
}, T = (w) => {
|
|
379
|
+
const l = w;
|
|
380
|
+
l.style.height = "", l.style.overflow = "", he(() => {
|
|
381
|
+
$.calTableHeight && $.calTableHeight();
|
|
382
382
|
});
|
|
383
|
-
}, V = (
|
|
384
|
-
const
|
|
385
|
-
if (
|
|
386
|
-
const d =
|
|
387
|
-
|
|
388
|
-
|
|
383
|
+
}, V = (w) => {
|
|
384
|
+
const l = w, o = l.querySelector(".hb-lib-form--container");
|
|
385
|
+
if (o) {
|
|
386
|
+
const d = o.offsetHeight;
|
|
387
|
+
l.style.height = d + "px", l.style.overflow = "hidden", l.offsetHeight, requestAnimationFrame(() => {
|
|
388
|
+
l.style.height = "0";
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
},
|
|
391
|
+
}, M = () => {
|
|
392
392
|
he(() => {
|
|
393
|
-
|
|
393
|
+
$.calTableHeight && $.calTableHeight();
|
|
394
394
|
});
|
|
395
395
|
};
|
|
396
396
|
return f({
|
|
@@ -398,12 +398,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
398
398
|
SelectOption: Ue,
|
|
399
399
|
Form: Ee,
|
|
400
400
|
FormItem: Ve,
|
|
401
|
-
Row:
|
|
401
|
+
Row: mt,
|
|
402
402
|
Col: ft,
|
|
403
403
|
Input: Pe,
|
|
404
404
|
Select: Ne,
|
|
405
405
|
CheckboxGroup: ze,
|
|
406
|
-
Checkbox:
|
|
406
|
+
Checkbox: me,
|
|
407
407
|
DatePicker: Re,
|
|
408
408
|
InputNumber: Be,
|
|
409
409
|
RadioGroup: Oe,
|
|
@@ -411,131 +411,131 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
411
411
|
Switch: Ae,
|
|
412
412
|
Button: de,
|
|
413
413
|
Tooltip: He
|
|
414
|
-
}), (
|
|
415
|
-
const
|
|
416
|
-
return
|
|
417
|
-
|
|
414
|
+
}), (w, l) => {
|
|
415
|
+
const o = q("a-button"), d = q("a-tooltip"), L = q("HbLibFormItemFilterModal");
|
|
416
|
+
return a(), S(J, null, [
|
|
417
|
+
F(Xe, {
|
|
418
418
|
name: "form-collapse",
|
|
419
|
-
onEnter:
|
|
420
|
-
onAfterEnter:
|
|
419
|
+
onEnter: I,
|
|
420
|
+
onAfterEnter: T,
|
|
421
421
|
onLeave: V,
|
|
422
|
-
onAfterLeave:
|
|
422
|
+
onAfterLeave: M
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
424
|
+
default: s(() => [
|
|
425
425
|
ie(v("div", {
|
|
426
|
-
class: E([n(
|
|
426
|
+
class: E([n(p).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
427
427
|
}, [
|
|
428
|
-
|
|
428
|
+
F(n(Ee), X(w.$attrs, {
|
|
429
429
|
model: e.formData,
|
|
430
430
|
ref_key: "formRef",
|
|
431
431
|
ref: h,
|
|
432
|
-
class: ["hb-lib-form--container",
|
|
432
|
+
class: ["hb-lib-form--container", c.value == "show" ? "" : "hide"]
|
|
433
433
|
}), {
|
|
434
|
-
default:
|
|
435
|
-
(
|
|
434
|
+
default: s(() => [
|
|
435
|
+
(a(!0), S(J, null, ne(t.value, (r, U) => (a(), z(n(Ve), X({
|
|
436
436
|
key: U,
|
|
437
437
|
ref_for: !0
|
|
438
|
-
},
|
|
439
|
-
name:
|
|
440
|
-
class:
|
|
438
|
+
}, r, {
|
|
439
|
+
name: r.key,
|
|
440
|
+
class: r.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
441
441
|
}), Ge({
|
|
442
|
-
default:
|
|
443
|
-
|
|
442
|
+
default: s(() => [
|
|
443
|
+
r.type === "slot" ? j(w.$slots, r.key, {
|
|
444
444
|
key: 0,
|
|
445
445
|
formData: e.formData,
|
|
446
|
-
item:
|
|
447
|
-
}, void 0, !0) :
|
|
448
|
-
|
|
446
|
+
item: r
|
|
447
|
+
}, void 0, !0) : N("", !0),
|
|
448
|
+
r.type === "mixin" ? j(w.$slots, r.key, {
|
|
449
449
|
key: 1,
|
|
450
450
|
formData: e.formData,
|
|
451
|
-
item:
|
|
452
|
-
}, void 0, !0) :
|
|
453
|
-
|
|
451
|
+
item: r
|
|
452
|
+
}, void 0, !0) : N("", !0),
|
|
453
|
+
r.type === "input" ? (a(), z(n(Pe), X({
|
|
454
454
|
key: 2,
|
|
455
|
-
value: e.formData[
|
|
456
|
-
"onUpdate:value": (
|
|
457
|
-
}, { ref_for: !0 },
|
|
458
|
-
|
|
455
|
+
value: e.formData[r.key],
|
|
456
|
+
"onUpdate:value": (P) => e.formData[r.key] = P
|
|
457
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
458
|
+
r.type === "select" ? (a(), z(n(Ne), X({
|
|
459
459
|
key: 3,
|
|
460
|
-
value: e.formData[
|
|
461
|
-
"onUpdate:value": (
|
|
462
|
-
}, { ref_for: !0 },
|
|
463
|
-
default:
|
|
464
|
-
(
|
|
460
|
+
value: e.formData[r.key],
|
|
461
|
+
"onUpdate:value": (P) => e.formData[r.key] = P
|
|
462
|
+
}, { ref_for: !0 }, r.attrs), {
|
|
463
|
+
default: s(() => [
|
|
464
|
+
(a(!0), S(J, null, ne(r.options, (P, ee) => (a(), z(n(Ue), {
|
|
465
465
|
key: ee,
|
|
466
|
-
value:
|
|
466
|
+
value: P.value
|
|
467
467
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
468
|
+
default: s(() => [
|
|
469
|
+
A(_(P.label), 1)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, 1032, ["value"]))), 128))
|
|
473
473
|
]),
|
|
474
474
|
_: 2
|
|
475
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
476
|
-
|
|
475
|
+
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
476
|
+
r.type === "checkbox" ? (a(), z(n(ze), X({
|
|
477
477
|
key: 4,
|
|
478
|
-
value: e.formData[
|
|
479
|
-
"onUpdate:value": (
|
|
480
|
-
}, { ref_for: !0 },
|
|
481
|
-
default:
|
|
482
|
-
(
|
|
478
|
+
value: e.formData[r.key],
|
|
479
|
+
"onUpdate:value": (P) => e.formData[r.key] = P
|
|
480
|
+
}, { ref_for: !0 }, r.attrs), {
|
|
481
|
+
default: s(() => [
|
|
482
|
+
(a(!0), S(J, null, ne(r.options, (P, ee) => (a(), z(n(me), {
|
|
483
483
|
key: ee,
|
|
484
|
-
value:
|
|
484
|
+
value: P.value
|
|
485
485
|
}, {
|
|
486
|
-
default:
|
|
487
|
-
|
|
486
|
+
default: s(() => [
|
|
487
|
+
A(_(P.label), 1)
|
|
488
488
|
]),
|
|
489
489
|
_: 2
|
|
490
490
|
}, 1032, ["value"]))), 128))
|
|
491
491
|
]),
|
|
492
492
|
_: 2
|
|
493
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
494
|
-
|
|
493
|
+
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
494
|
+
r.type === "date-picker" ? (a(), z(n(Re), X({
|
|
495
495
|
key: 5,
|
|
496
|
-
value: e.formData[
|
|
497
|
-
"onUpdate:value": (
|
|
498
|
-
}, { ref_for: !0 },
|
|
499
|
-
|
|
496
|
+
value: e.formData[r.key],
|
|
497
|
+
"onUpdate:value": (P) => e.formData[r.key] = P
|
|
498
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
499
|
+
r.type === "input-number" ? (a(), z(n(Be), X({
|
|
500
500
|
key: 6,
|
|
501
|
-
value: e.formData[
|
|
502
|
-
"onUpdate:value": (
|
|
503
|
-
}, { ref_for: !0 },
|
|
504
|
-
|
|
501
|
+
value: e.formData[r.key],
|
|
502
|
+
"onUpdate:value": (P) => e.formData[r.key] = P
|
|
503
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
504
|
+
r.type === "radio" ? (a(), z(n(Oe), X({
|
|
505
505
|
key: 7,
|
|
506
|
-
value: e.formData[
|
|
507
|
-
"onUpdate:value": (
|
|
508
|
-
}, { ref_for: !0 },
|
|
509
|
-
default:
|
|
510
|
-
(
|
|
506
|
+
value: e.formData[r.key],
|
|
507
|
+
"onUpdate:value": (P) => e.formData[r.key] = P
|
|
508
|
+
}, { ref_for: !0 }, r.attrs), {
|
|
509
|
+
default: s(() => [
|
|
510
|
+
(a(!0), S(J, null, ne(r.options, (P, ee) => (a(), z(n(De), {
|
|
511
511
|
key: ee,
|
|
512
|
-
value:
|
|
512
|
+
value: P.value
|
|
513
513
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
514
|
+
default: s(() => [
|
|
515
|
+
A(_(P.label), 1)
|
|
516
516
|
]),
|
|
517
517
|
_: 2
|
|
518
518
|
}, 1032, ["value"]))), 128))
|
|
519
519
|
]),
|
|
520
520
|
_: 2
|
|
521
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
522
|
-
|
|
521
|
+
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
522
|
+
r.type === "switch" ? (a(), z(n(Ae), X({
|
|
523
523
|
key: 8,
|
|
524
|
-
checked: e.formData[
|
|
525
|
-
"onUpdate:checked": (
|
|
526
|
-
}, { ref_for: !0 },
|
|
524
|
+
checked: e.formData[r.key],
|
|
525
|
+
"onUpdate:checked": (P) => e.formData[r.key] = P
|
|
526
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["checked", "onUpdate:checked"])) : N("", !0)
|
|
527
527
|
]),
|
|
528
528
|
_: 2
|
|
529
529
|
}, [
|
|
530
|
-
|
|
530
|
+
r.tooltip ? {
|
|
531
531
|
name: "label",
|
|
532
|
-
fn:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
title:
|
|
532
|
+
fn: s(() => [
|
|
533
|
+
A(_(r.label) + " ", 1),
|
|
534
|
+
F(n(He), {
|
|
535
|
+
title: r.tooltip
|
|
536
536
|
}, {
|
|
537
|
-
default:
|
|
538
|
-
|
|
537
|
+
default: s(() => [
|
|
538
|
+
F(n(dt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
541
541
|
}, 8, ["title"])
|
|
@@ -544,37 +544,37 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
544
544
|
} : void 0
|
|
545
545
|
]), 1040, ["name", "class"]))), 128)),
|
|
546
546
|
v("section", Ft, [
|
|
547
|
-
|
|
547
|
+
F(o, {
|
|
548
548
|
type: "primary",
|
|
549
549
|
onClick: b,
|
|
550
550
|
class: "hb_list_page_button"
|
|
551
551
|
}, {
|
|
552
|
-
icon:
|
|
553
|
-
|
|
552
|
+
icon: s(() => [
|
|
553
|
+
F(n(xe))
|
|
554
554
|
]),
|
|
555
|
-
default:
|
|
556
|
-
|
|
555
|
+
default: s(() => [
|
|
556
|
+
A(" " + _(w.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
557
557
|
]),
|
|
558
558
|
_: 1
|
|
559
559
|
}),
|
|
560
|
-
|
|
560
|
+
F(o, {
|
|
561
561
|
type: "link",
|
|
562
|
-
onClick:
|
|
562
|
+
onClick: B
|
|
563
563
|
}, {
|
|
564
|
-
default:
|
|
565
|
-
|
|
564
|
+
default: s(() => [
|
|
565
|
+
A(_(w.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
566
566
|
]),
|
|
567
567
|
_: 1
|
|
568
568
|
}),
|
|
569
|
-
e.needFilter ? (
|
|
569
|
+
e.needFilter ? (a(), z(d, {
|
|
570
570
|
key: 0,
|
|
571
|
-
title:
|
|
571
|
+
title: w.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
572
572
|
}, {
|
|
573
|
-
default:
|
|
573
|
+
default: s(() => [
|
|
574
574
|
v("span", {
|
|
575
575
|
class: "hb-lib-form-svg",
|
|
576
|
-
onClick:
|
|
577
|
-
}, [...
|
|
576
|
+
onClick: Z
|
|
577
|
+
}, [...l[0] || (l[0] = [
|
|
578
578
|
v("svg", {
|
|
579
579
|
t: "1757915025410",
|
|
580
580
|
class: "icon",
|
|
@@ -594,74 +594,74 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
594
594
|
])])
|
|
595
595
|
]),
|
|
596
596
|
_: 1
|
|
597
|
-
}, 8, ["title"])) :
|
|
598
|
-
|
|
597
|
+
}, 8, ["title"])) : N("", !0),
|
|
598
|
+
j(w.$slots, "formBtns", {}, void 0, !0)
|
|
599
599
|
])
|
|
600
600
|
]),
|
|
601
601
|
_: 3
|
|
602
602
|
}, 16, ["model", "class"]),
|
|
603
|
-
e.needFooter ? (
|
|
603
|
+
e.needFooter ? (a(), S("div", {
|
|
604
604
|
key: 0,
|
|
605
|
-
class: E(n(
|
|
605
|
+
class: E(n(p).e("footer"))
|
|
606
606
|
}, [
|
|
607
607
|
v("div", {
|
|
608
|
-
class: E(n(
|
|
608
|
+
class: E(n(p).e("footer__left"))
|
|
609
609
|
}, [
|
|
610
|
-
|
|
610
|
+
j(w.$slots, "form-footer-left", {}, void 0, !0)
|
|
611
611
|
], 2),
|
|
612
612
|
v("div", {
|
|
613
|
-
class: E(n(
|
|
613
|
+
class: E(n(p).e("footer__right"))
|
|
614
614
|
}, [
|
|
615
|
-
|
|
615
|
+
c.value == "show" ? j(w.$slots, "form-footer-right", {
|
|
616
616
|
key: 0,
|
|
617
617
|
formRef: h.value
|
|
618
618
|
}, () => [
|
|
619
|
-
|
|
619
|
+
F(n(de), {
|
|
620
620
|
type: "primary",
|
|
621
|
-
onClick:
|
|
621
|
+
onClick: B
|
|
622
622
|
}, {
|
|
623
|
-
default:
|
|
624
|
-
|
|
623
|
+
default: s(() => [
|
|
624
|
+
A(_(w.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
625
625
|
]),
|
|
626
626
|
_: 1
|
|
627
627
|
}),
|
|
628
|
-
|
|
628
|
+
F(n(de), {
|
|
629
629
|
type: "primary",
|
|
630
630
|
onClick: b
|
|
631
631
|
}, {
|
|
632
|
-
default:
|
|
633
|
-
|
|
632
|
+
default: s(() => [
|
|
633
|
+
A(_(w.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
634
634
|
]),
|
|
635
635
|
_: 1
|
|
636
636
|
})
|
|
637
|
-
], !0) :
|
|
638
|
-
|
|
637
|
+
], !0) : N("", !0),
|
|
638
|
+
F(n(de), {
|
|
639
639
|
type: "primary",
|
|
640
|
-
onClick:
|
|
640
|
+
onClick: y
|
|
641
641
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
|
|
642
|
+
default: s(() => [
|
|
643
|
+
A(_(c.value == "show" ? `${w.$t("hbLibComp.hbListPageAct.close")}` : `${w.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
644
644
|
]),
|
|
645
645
|
_: 1
|
|
646
646
|
})
|
|
647
647
|
], 2)
|
|
648
|
-
], 2)) :
|
|
648
|
+
], 2)) : N("", !0)
|
|
649
649
|
], 2), [
|
|
650
650
|
[et, e.isFormExpanded]
|
|
651
651
|
])
|
|
652
652
|
]),
|
|
653
653
|
_: 3
|
|
654
654
|
}),
|
|
655
|
-
|
|
655
|
+
F(L, {
|
|
656
656
|
list: e.items,
|
|
657
657
|
ref_key: "HbSfCmRef",
|
|
658
|
-
ref:
|
|
659
|
-
onConfirm:
|
|
658
|
+
ref: D,
|
|
659
|
+
onConfirm: C
|
|
660
660
|
}, null, 8, ["list"])
|
|
661
661
|
], 64);
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
|
-
}),
|
|
664
|
+
}), $t = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-a1fedfa4"]]), Tt = le($t), Mt = { class: "hb-lib-list-page-act-box" }, It = { class: "hb-lib-list-page-breadcrumb" }, Ht = { class: "hb-lib-list-page-act" }, At = {
|
|
665
665
|
key: 0,
|
|
666
666
|
t: "1757915338760",
|
|
667
667
|
class: "icon",
|
|
@@ -692,32 +692,32 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
692
692
|
},
|
|
693
693
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
694
694
|
setup(e, { emit: f }) {
|
|
695
|
-
const u = we("HB_LIST_PAGE_CONTAINER"), { isFullscreen:
|
|
696
|
-
const
|
|
697
|
-
let
|
|
698
|
-
if (
|
|
699
|
-
let b = JSON.parse(
|
|
700
|
-
b && (
|
|
695
|
+
const u = we("HB_LIST_PAGE_CONTAINER"), { isFullscreen: i, toggle: $ } = vt(u.PageContainerRef), p = R(""), m = () => {
|
|
696
|
+
const c = Qe();
|
|
697
|
+
let t = localStorage.getItem("BreadCrumb") || "[]", h = c?.path;
|
|
698
|
+
if (t !== "[]") {
|
|
699
|
+
let b = JSON.parse(t).find((B) => B.value === h);
|
|
700
|
+
b && (p.value = b.label.replace(/-/g, " / "));
|
|
701
701
|
}
|
|
702
702
|
};
|
|
703
703
|
return Fe(() => {
|
|
704
|
-
|
|
705
|
-
}), (
|
|
706
|
-
const h =
|
|
707
|
-
return
|
|
708
|
-
v("aside", It,
|
|
704
|
+
m();
|
|
705
|
+
}), (c, t) => {
|
|
706
|
+
const h = q("a-tooltip");
|
|
707
|
+
return a(), S("section", Mt, [
|
|
708
|
+
v("aside", It, _(p.value), 1),
|
|
709
709
|
v("aside", Ht, [
|
|
710
|
-
|
|
711
|
-
title: n(
|
|
710
|
+
F(h, {
|
|
711
|
+
title: n(i) ? `${c.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${c.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
712
712
|
placement: "leftTop"
|
|
713
713
|
}, {
|
|
714
|
-
default:
|
|
714
|
+
default: s(() => [
|
|
715
715
|
v("span", {
|
|
716
716
|
class: "hb-lib-list-page-act-svg",
|
|
717
|
-
onClick:
|
|
718
|
-
(...b) => n(
|
|
717
|
+
onClick: t[0] || (t[0] = //@ts-ignore
|
|
718
|
+
(...b) => n($) && n($)(...b))
|
|
719
719
|
}, [
|
|
720
|
-
n(
|
|
720
|
+
n(i) ? (a(), S("svg", Dt, [...t[2] || (t[2] = [
|
|
721
721
|
v("path", {
|
|
722
722
|
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",
|
|
723
723
|
fill: "#ff5000",
|
|
@@ -733,7 +733,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
733
733
|
fill: "#ff5000",
|
|
734
734
|
"p-id": "23907"
|
|
735
735
|
}, null, -1)
|
|
736
|
-
])])) : (
|
|
736
|
+
])])) : (a(), S("svg", At, [...t[1] || (t[1] = [
|
|
737
737
|
v("path", {
|
|
738
738
|
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",
|
|
739
739
|
fill: "#ff5000",
|
|
@@ -744,7 +744,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
744
744
|
]),
|
|
745
745
|
_: 1
|
|
746
746
|
}, 8, ["title"]),
|
|
747
|
-
|
|
747
|
+
j(c.$slots, "listAct", {}, void 0, !0)
|
|
748
748
|
])
|
|
749
749
|
]);
|
|
750
750
|
};
|
|
@@ -760,28 +760,28 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
760
760
|
},
|
|
761
761
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
762
762
|
setup(e, { emit: f }) {
|
|
763
|
-
const u = f,
|
|
764
|
-
|
|
765
|
-
},
|
|
763
|
+
const u = f, i = R(!0), $ = () => {
|
|
764
|
+
i.value = !i.value, u("handleOpenOrClose", i.value);
|
|
765
|
+
}, p = () => {
|
|
766
766
|
u("handleReload");
|
|
767
767
|
};
|
|
768
768
|
return Fe(() => {
|
|
769
|
-
}), (
|
|
770
|
-
const
|
|
771
|
-
return
|
|
769
|
+
}), (m, c) => {
|
|
770
|
+
const t = q("a-tooltip");
|
|
771
|
+
return a(), S("section", zt, [
|
|
772
772
|
v("aside", Nt, [
|
|
773
|
-
|
|
773
|
+
j(m.$slots, "btnsLeft", {}, void 0, !0)
|
|
774
774
|
]),
|
|
775
775
|
v("aside", Pt, [
|
|
776
|
-
e.needReload ? (
|
|
776
|
+
e.needReload ? (a(), z(t, {
|
|
777
777
|
key: 0,
|
|
778
|
-
title:
|
|
778
|
+
title: m.$t("hbLibComp.hbListBtnsAct.reload")
|
|
779
779
|
}, {
|
|
780
|
-
default:
|
|
780
|
+
default: s(() => [
|
|
781
781
|
v("span", {
|
|
782
782
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
783
|
-
onClick:
|
|
784
|
-
}, [...
|
|
783
|
+
onClick: p
|
|
784
|
+
}, [...c[0] || (c[0] = [
|
|
785
785
|
v("svg", {
|
|
786
786
|
t: "1759041224819",
|
|
787
787
|
class: "icon",
|
|
@@ -801,55 +801,55 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
801
801
|
])])
|
|
802
802
|
]),
|
|
803
803
|
_: 1
|
|
804
|
-
}, 8, ["title"])) :
|
|
805
|
-
e.needOpenOrClose ? (
|
|
804
|
+
}, 8, ["title"])) : N("", !0),
|
|
805
|
+
e.needOpenOrClose ? (a(), z(t, {
|
|
806
806
|
key: 1,
|
|
807
|
-
title:
|
|
807
|
+
title: i.value ? `${m.$t("hbLibComp.hbListBtnsAct.close")}` : `${m.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
808
808
|
}, {
|
|
809
|
-
default:
|
|
809
|
+
default: s(() => [
|
|
810
810
|
v("span", {
|
|
811
811
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
812
|
-
onClick:
|
|
812
|
+
onClick: $
|
|
813
813
|
}, [
|
|
814
|
-
|
|
814
|
+
i.value ? (a(), z(n(ut), {
|
|
815
815
|
key: 0,
|
|
816
816
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
817
|
-
})) : (
|
|
817
|
+
})) : (a(), z(n(ht), {
|
|
818
818
|
key: 1,
|
|
819
819
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
820
820
|
}))
|
|
821
821
|
])
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
|
-
}, 8, ["title"])) :
|
|
825
|
-
|
|
824
|
+
}, 8, ["title"])) : N("", !0),
|
|
825
|
+
j(m.$slots, "btnsRight", {}, void 0, !0)
|
|
826
826
|
])
|
|
827
827
|
]);
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]), Ut = le(Et), Yt = (e = {}) => {
|
|
831
|
-
const { formRef: f, offsetBottom: u = 50, minHeight:
|
|
832
|
-
let
|
|
831
|
+
const { formRef: f, offsetBottom: u = 50, minHeight: i = 300 } = e, $ = R(0);
|
|
832
|
+
let p = null, m = null, c = null, t = null, h = null;
|
|
833
833
|
const b = () => {
|
|
834
834
|
h && clearTimeout(h), h = setTimeout(() => {
|
|
835
835
|
requestAnimationFrame(() => {
|
|
836
836
|
he(() => {
|
|
837
|
-
const
|
|
838
|
-
if (
|
|
839
|
-
const
|
|
840
|
-
let d =
|
|
841
|
-
d <
|
|
837
|
+
const T = document.querySelector(".ant-table"), V = document.querySelector(".ant-pagination");
|
|
838
|
+
if (T) {
|
|
839
|
+
const M = T.getBoundingClientRect().top, w = window.innerHeight, o = (V ? V.offsetHeight + 20 : 40) + u;
|
|
840
|
+
let d = w - M - o;
|
|
841
|
+
d < i && (d = i), $.value = d;
|
|
842
842
|
}
|
|
843
843
|
});
|
|
844
844
|
});
|
|
845
845
|
}, 100);
|
|
846
|
-
},
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
846
|
+
}, B = () => {
|
|
847
|
+
const T = document.querySelector(".ant-pagination");
|
|
848
|
+
if (T) {
|
|
849
849
|
const V = new MutationObserver(() => {
|
|
850
850
|
b();
|
|
851
851
|
});
|
|
852
|
-
return V.observe(
|
|
852
|
+
return V.observe(T, {
|
|
853
853
|
childList: !0,
|
|
854
854
|
subtree: !0,
|
|
855
855
|
attributes: !0,
|
|
@@ -857,35 +857,35 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
857
857
|
}), V;
|
|
858
858
|
}
|
|
859
859
|
return null;
|
|
860
|
-
},
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
864
|
-
|
|
860
|
+
}, D = () => {
|
|
861
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
862
|
+
T && (p = new ResizeObserver(() => {
|
|
863
|
+
document.querySelectorAll(".ant-tooltip").forEach((M) => {
|
|
864
|
+
M.style.display = "none";
|
|
865
865
|
}), b();
|
|
866
|
-
}),
|
|
867
|
-
},
|
|
868
|
-
const
|
|
869
|
-
|
|
866
|
+
}), p.observe(T));
|
|
867
|
+
}, Z = () => {
|
|
868
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
869
|
+
T && (c = new MutationObserver(() => {
|
|
870
870
|
setTimeout(() => {
|
|
871
871
|
b();
|
|
872
872
|
}, 100);
|
|
873
|
-
}),
|
|
873
|
+
}), c.observe(T, {
|
|
874
874
|
childList: !0,
|
|
875
875
|
subtree: !0,
|
|
876
876
|
attributes: !0,
|
|
877
877
|
attributeFilter: ["style", "class"]
|
|
878
878
|
}));
|
|
879
|
-
},
|
|
880
|
-
|
|
879
|
+
}, C = () => {
|
|
880
|
+
t && clearTimeout(t), t = setTimeout(() => {
|
|
881
881
|
b();
|
|
882
882
|
}, 100);
|
|
883
|
-
},
|
|
884
|
-
window.addEventListener("resize",
|
|
885
|
-
|
|
883
|
+
}, y = () => {
|
|
884
|
+
window.addEventListener("resize", C), he(() => {
|
|
885
|
+
D(), Z(), m = B();
|
|
886
886
|
});
|
|
887
|
-
},
|
|
888
|
-
window.removeEventListener("resize",
|
|
887
|
+
}, I = () => {
|
|
888
|
+
window.removeEventListener("resize", C), p && p.disconnect(), c && c.disconnect(), m && m.disconnect(), t && clearTimeout(t), h && clearTimeout(h);
|
|
889
889
|
};
|
|
890
890
|
return f && ce(
|
|
891
891
|
() => f,
|
|
@@ -896,11 +896,11 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
896
896
|
},
|
|
897
897
|
{ deep: !0 }
|
|
898
898
|
), Fe(() => {
|
|
899
|
-
b(),
|
|
899
|
+
b(), y();
|
|
900
900
|
}), tt(() => {
|
|
901
|
-
|
|
901
|
+
I();
|
|
902
902
|
}), {
|
|
903
|
-
tableHeight:
|
|
903
|
+
tableHeight: $,
|
|
904
904
|
calTableHeight: b
|
|
905
905
|
};
|
|
906
906
|
}, jt = /* @__PURE__ */ te({
|
|
@@ -913,31 +913,31 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
913
913
|
minHeight: {}
|
|
914
914
|
},
|
|
915
915
|
setup(e) {
|
|
916
|
-
const f = e, u = lt("PageContainerRef"), { calTableHeight:
|
|
916
|
+
const f = e, u = lt("PageContainerRef"), { calTableHeight: i, tableHeight: $ } = Yt({
|
|
917
917
|
offsetBottom: f.offsetBottom || 20,
|
|
918
918
|
// 底部预留空间
|
|
919
919
|
minHeight: f.minHeight || 300
|
|
920
920
|
// table最小高度 请勿随便修改!!
|
|
921
|
-
}),
|
|
921
|
+
}), p = W(() => $.value);
|
|
922
922
|
return ot("HB_LIST_PAGE_CONTAINER", {
|
|
923
923
|
PageContainerRef: u,
|
|
924
924
|
// 通过函数访问,
|
|
925
|
-
tableHeight:
|
|
926
|
-
calTableHeight:
|
|
927
|
-
}), (
|
|
925
|
+
tableHeight: $,
|
|
926
|
+
calTableHeight: i
|
|
927
|
+
}), (m, c) => (a(), S("section", {
|
|
928
928
|
class: "hb-lib-list-page-container",
|
|
929
929
|
ref_key: "PageContainerRef",
|
|
930
930
|
ref: u
|
|
931
931
|
}, [
|
|
932
|
-
|
|
932
|
+
j(m.$slots, "header"),
|
|
933
933
|
v("section", {
|
|
934
934
|
class: "list-page-box",
|
|
935
|
-
style:
|
|
936
|
-
"--hb-list-table-height":
|
|
937
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
935
|
+
style: pe({
|
|
936
|
+
"--hb-list-table-height": p.value - 20 + "px",
|
|
937
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : p.value - 20 + "px"
|
|
938
938
|
})
|
|
939
939
|
}, [
|
|
940
|
-
|
|
940
|
+
j(m.$slots, "default")
|
|
941
941
|
], 4)
|
|
942
942
|
], 512));
|
|
943
943
|
}
|
|
@@ -975,181 +975,181 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
975
975
|
}),
|
|
976
976
|
emits: /* @__PURE__ */ Me(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
977
977
|
setup(e, { emit: f }) {
|
|
978
|
-
const u = e,
|
|
979
|
-
if (u.remoteSearch || !
|
|
980
|
-
const
|
|
981
|
-
return u.options.filter((
|
|
982
|
-
}), b =
|
|
978
|
+
const u = e, i = f, $ = at(e, "value"), p = R(!1), m = R(""), c = R([]), t = R(), h = W(() => {
|
|
979
|
+
if (u.remoteSearch || !m.value) return u.options;
|
|
980
|
+
const l = m.value.toLowerCase();
|
|
981
|
+
return u.options.filter((o) => o.label.toLowerCase().includes(l) || o.description?.toLowerCase().includes(l));
|
|
982
|
+
}), b = W(() => u.prefix ? `${u.prefix.length * 14 + 8}px` : "0px"), B = W(() => h.value.length === 0 ? !1 : h.value.every((l) => c.value.includes(l.value))), D = W(() => {
|
|
983
983
|
if (h.value.length === 0) return !1;
|
|
984
|
-
const
|
|
985
|
-
return
|
|
984
|
+
const l = h.value.filter((o) => c.value.includes(o.value)).length;
|
|
985
|
+
return l > 0 && l < h.value.length;
|
|
986
986
|
});
|
|
987
987
|
ce(
|
|
988
|
-
() =>
|
|
989
|
-
(
|
|
990
|
-
|
|
988
|
+
() => $.value,
|
|
989
|
+
(l) => {
|
|
990
|
+
l ? c.value = Array.isArray(l) ? [...l] : [l] : c.value = [];
|
|
991
991
|
},
|
|
992
992
|
{ immediate: !0 }
|
|
993
993
|
), ce(
|
|
994
994
|
() => u.searchValue,
|
|
995
|
-
(
|
|
996
|
-
u.remoteSearch &&
|
|
995
|
+
(l) => {
|
|
996
|
+
u.remoteSearch && l !== void 0 && (m.value = l);
|
|
997
997
|
},
|
|
998
998
|
{ immediate: !0 }
|
|
999
999
|
);
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
if (
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1000
|
+
const Z = (l) => {
|
|
1001
|
+
l && (p.value = l, C.value = [...c.value], m.value = "", setTimeout(() => {
|
|
1002
|
+
if (t.value) {
|
|
1003
|
+
const o = t.value.input || t.value.$el?.querySelector("input");
|
|
1004
|
+
o && o.focus();
|
|
1005
1005
|
}
|
|
1006
1006
|
}, 100));
|
|
1007
|
-
},
|
|
1008
|
-
|
|
1009
|
-
},
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1012
|
-
}, V = gt((
|
|
1013
|
-
const
|
|
1014
|
-
u.remoteSearch && (
|
|
1015
|
-
}, 300),
|
|
1007
|
+
}, C = R([]), y = () => {
|
|
1008
|
+
c.value = [...C.value], p.value = !1, i("cancel");
|
|
1009
|
+
}, I = R([]), T = () => {
|
|
1010
|
+
const l = u.multiple ? c.value : c.value[0] || "", o = u.options.filter((d) => c.value.includes(d.value));
|
|
1011
|
+
I.value = o, console.log(l, o), C.value = [...c.value], $.value = l, i("update:value", l), i("change", l, o), i("confirm", l, o), p.value = !1;
|
|
1012
|
+
}, V = gt((l) => {
|
|
1013
|
+
const o = l !== void 0 ? l : m.value;
|
|
1014
|
+
u.remoteSearch && (i("search", o), i("update:searchValue", o));
|
|
1015
|
+
}, 300), M = (l) => {
|
|
1016
1016
|
if (u.multiple) {
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1017
|
+
const o = new Set(c.value);
|
|
1018
|
+
o.has(l.value) ? o.delete(l.value) : o.add(l.value), c.value = Array.from(o);
|
|
1019
1019
|
} else
|
|
1020
|
-
|
|
1021
|
-
},
|
|
1022
|
-
if (
|
|
1023
|
-
const d = new Set(
|
|
1024
|
-
h.value.forEach((
|
|
1025
|
-
d.add(
|
|
1026
|
-
}),
|
|
1020
|
+
c.value = [l.value], T();
|
|
1021
|
+
}, w = (l) => {
|
|
1022
|
+
if (l.target.checked) {
|
|
1023
|
+
const d = new Set(c.value);
|
|
1024
|
+
h.value.forEach((L) => {
|
|
1025
|
+
d.add(L.value);
|
|
1026
|
+
}), c.value = Array.from(d);
|
|
1027
1027
|
} else {
|
|
1028
|
-
const d = new Set(h.value.map((
|
|
1029
|
-
|
|
1028
|
+
const d = new Set(h.value.map((L) => L.value));
|
|
1029
|
+
c.value = c.value.filter((L) => !d.has(L));
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
|
-
return (
|
|
1033
|
-
const d =
|
|
1034
|
-
return
|
|
1032
|
+
return (l, o) => {
|
|
1033
|
+
const d = q("a-tag"), L = q("a-input"), r = q("a-checkbox"), U = q("a-radio"), P = q("a-button"), ee = q("a-select");
|
|
1034
|
+
return a(), S("div", X({
|
|
1035
1035
|
class: "hb-lib-selector-wrapper",
|
|
1036
1036
|
style: { "--prefix-width": b.value }
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
value:
|
|
1040
|
-
"onUpdate:value":
|
|
1037
|
+
}, l.$attrs), [
|
|
1038
|
+
F(ee, {
|
|
1039
|
+
value: $.value,
|
|
1040
|
+
"onUpdate:value": o[5] || (o[5] = (G) => $.value = G),
|
|
1041
1041
|
mode: e.multiple ? "multiple" : void 0,
|
|
1042
1042
|
placeholder: e.placeholder,
|
|
1043
1043
|
"show-search": !0,
|
|
1044
1044
|
"filter-option": !1,
|
|
1045
|
-
open:
|
|
1045
|
+
open: p.value,
|
|
1046
1046
|
allowClear: "",
|
|
1047
1047
|
maxTagCount: e.maxTagCount,
|
|
1048
1048
|
options: h.value,
|
|
1049
|
-
onDropdownVisibleChange:
|
|
1049
|
+
onDropdownVisibleChange: Z,
|
|
1050
1050
|
onSearch: n(V),
|
|
1051
1051
|
"max-tag-text-length": e.tagTextLength,
|
|
1052
1052
|
class: E({ "has-prefix": e.prefix }),
|
|
1053
1053
|
"data-prefix": e.prefix,
|
|
1054
1054
|
style: { width: "100%" }
|
|
1055
1055
|
}, {
|
|
1056
|
-
tagRender:
|
|
1057
|
-
|
|
1056
|
+
tagRender: s(({ value: G, label: K, closable: k, option: O }) => [
|
|
1057
|
+
F(d, {
|
|
1058
1058
|
class: "hb-lib-search-tag",
|
|
1059
|
-
onClick:
|
|
1059
|
+
onClick: o[0] || (o[0] = () => Z(!0))
|
|
1060
1060
|
}, {
|
|
1061
|
-
default:
|
|
1062
|
-
v("span", Kt,
|
|
1063
|
-
|
|
1061
|
+
default: s(() => [
|
|
1062
|
+
v("span", Kt, _(K), 1),
|
|
1063
|
+
O?.description ? (a(), S("span", Wt, " (" + _(O.description) + ") ", 1)) : N("", !0)
|
|
1064
1064
|
]),
|
|
1065
1065
|
_: 2
|
|
1066
1066
|
}, 1024)
|
|
1067
1067
|
]),
|
|
1068
|
-
dropdownRender:
|
|
1068
|
+
dropdownRender: s(({ menuNode: G }) => [
|
|
1069
1069
|
v("div", Jt, [
|
|
1070
1070
|
v("div", Gt, [
|
|
1071
|
-
|
|
1071
|
+
F(L, {
|
|
1072
1072
|
ref_key: "searchInputRef",
|
|
1073
|
-
ref:
|
|
1073
|
+
ref: t,
|
|
1074
1074
|
class: "hb-lib-selector-search-input",
|
|
1075
|
-
value:
|
|
1076
|
-
"onUpdate:value":
|
|
1075
|
+
value: m.value,
|
|
1076
|
+
"onUpdate:value": o[1] || (o[1] = (K) => m.value = K),
|
|
1077
1077
|
placeholder: "请输入关键词搜索",
|
|
1078
1078
|
"allow-clear": "",
|
|
1079
|
-
onInput:
|
|
1079
|
+
onInput: o[2] || (o[2] = (K) => n(V)(K.target.value))
|
|
1080
1080
|
}, {
|
|
1081
|
-
prefix:
|
|
1082
|
-
|
|
1081
|
+
prefix: s(() => [
|
|
1082
|
+
F(n(xe))
|
|
1083
1083
|
]),
|
|
1084
1084
|
_: 1
|
|
1085
1085
|
}, 8, ["value"])
|
|
1086
1086
|
]),
|
|
1087
1087
|
v("div", Qt, [
|
|
1088
|
-
(
|
|
1089
|
-
key:
|
|
1090
|
-
class: E(["hb-lib-selector-option", { selected:
|
|
1091
|
-
onClick: () =>
|
|
1088
|
+
(a(!0), S(J, null, ne(h.value, (K) => (a(), S("div", {
|
|
1089
|
+
key: K.value,
|
|
1090
|
+
class: E(["hb-lib-selector-option", { selected: c.value.includes(K.value) }]),
|
|
1091
|
+
onClick: () => M(K)
|
|
1092
1092
|
}, [
|
|
1093
|
-
e.multiple ? (
|
|
1093
|
+
e.multiple ? (a(), z(r, {
|
|
1094
1094
|
key: 0,
|
|
1095
|
-
checked:
|
|
1096
|
-
onChange: () =>
|
|
1097
|
-
onClick:
|
|
1095
|
+
checked: c.value.includes(K.value),
|
|
1096
|
+
onChange: () => M(K),
|
|
1097
|
+
onClick: o[3] || (o[3] = ke(() => {
|
|
1098
1098
|
}, ["stop"]))
|
|
1099
|
-
}, null, 8, ["checked", "onChange"])) : (
|
|
1099
|
+
}, null, 8, ["checked", "onChange"])) : (a(), z(U, {
|
|
1100
1100
|
key: 1,
|
|
1101
|
-
checked:
|
|
1102
|
-
onChange: () =>
|
|
1103
|
-
onClick:
|
|
1101
|
+
checked: c.value.includes(K.value),
|
|
1102
|
+
onChange: () => M(K),
|
|
1103
|
+
onClick: o[4] || (o[4] = ke(() => {
|
|
1104
1104
|
}, ["stop"]))
|
|
1105
1105
|
}, null, 8, ["checked", "onChange"])),
|
|
1106
1106
|
v("div", Xt, [
|
|
1107
|
-
v("div", el,
|
|
1107
|
+
v("div", el, _(K.label), 1)
|
|
1108
1108
|
])
|
|
1109
1109
|
], 10, Zt))), 128))
|
|
1110
1110
|
]),
|
|
1111
|
-
h.value.length === 0 ? (
|
|
1112
|
-
e.multiple ? (
|
|
1113
|
-
|
|
1114
|
-
checked:
|
|
1115
|
-
indeterminate:
|
|
1116
|
-
onChange:
|
|
1111
|
+
h.value.length === 0 ? (a(), S("div", tl, _(l.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : N("", !0),
|
|
1112
|
+
e.multiple ? (a(), S("div", ll, [
|
|
1113
|
+
F(r, {
|
|
1114
|
+
checked: B.value,
|
|
1115
|
+
indeterminate: D.value,
|
|
1116
|
+
onChange: w
|
|
1117
1117
|
}, {
|
|
1118
|
-
default:
|
|
1119
|
-
|
|
1118
|
+
default: s(() => [
|
|
1119
|
+
A(_(l.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1120
1120
|
]),
|
|
1121
1121
|
_: 1
|
|
1122
1122
|
}, 8, ["checked", "indeterminate"]),
|
|
1123
1123
|
v("div", ol, [
|
|
1124
|
-
|
|
1124
|
+
F(P, {
|
|
1125
1125
|
size: "small",
|
|
1126
|
-
onClick:
|
|
1126
|
+
onClick: y
|
|
1127
1127
|
}, {
|
|
1128
|
-
default:
|
|
1129
|
-
|
|
1128
|
+
default: s(() => [
|
|
1129
|
+
A(_(l.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
}),
|
|
1133
|
-
|
|
1133
|
+
F(P, {
|
|
1134
1134
|
type: "primary",
|
|
1135
1135
|
size: "small",
|
|
1136
|
-
onClick:
|
|
1136
|
+
onClick: T
|
|
1137
1137
|
}, {
|
|
1138
|
-
default:
|
|
1139
|
-
|
|
1138
|
+
default: s(() => [
|
|
1139
|
+
A(_(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1140
1140
|
]),
|
|
1141
1141
|
_: 1
|
|
1142
1142
|
})
|
|
1143
1143
|
])
|
|
1144
|
-
])) : (
|
|
1145
|
-
|
|
1144
|
+
])) : (a(), S("div", al, [
|
|
1145
|
+
o[6] || (o[6] = v("div", null, null, -1)),
|
|
1146
1146
|
v("div", nl, [
|
|
1147
|
-
|
|
1147
|
+
F(P, {
|
|
1148
1148
|
size: "small",
|
|
1149
|
-
onClick:
|
|
1149
|
+
onClick: y
|
|
1150
1150
|
}, {
|
|
1151
|
-
default:
|
|
1152
|
-
|
|
1151
|
+
default: s(() => [
|
|
1152
|
+
A(_(l.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 1
|
|
1155
1155
|
})
|
|
@@ -1176,148 +1176,148 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1176
1176
|
},
|
|
1177
1177
|
emits: ["handleConfirm", "handleCancel"],
|
|
1178
1178
|
setup(e, { expose: f, emit: u }) {
|
|
1179
|
-
const
|
|
1179
|
+
const i = e, $ = u, p = R(!1), m = R(""), c = R(), t = R(), h = R([]), b = R([]), B = R(), D = Je({
|
|
1180
1180
|
searchText: "",
|
|
1181
1181
|
searchedColumn: ""
|
|
1182
|
-
}),
|
|
1183
|
-
|
|
1184
|
-
|
|
1182
|
+
}), Z = W(() => i.tableData.map((d) => (d.id = d.id || Math.random(), d))), C = W(() => i.tableColumn.map((d) => (d.customFilterDropdown && (d.onFilter = (L, r) => r[d.dataIndex].toString().toLowerCase().includes(L.toLowerCase()), d.onFilterDropdownVisibleChange = (L) => {
|
|
1183
|
+
L && setTimeout(() => {
|
|
1184
|
+
c.value?.focus();
|
|
1185
1185
|
}, 100);
|
|
1186
|
-
}), { ...d }))),
|
|
1186
|
+
}), { ...d }))), y = () => {
|
|
1187
1187
|
let d = "";
|
|
1188
|
-
b.value.forEach((
|
|
1189
|
-
d = d +
|
|
1190
|
-
}),
|
|
1191
|
-
},
|
|
1192
|
-
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1195
|
-
const d =
|
|
1188
|
+
b.value.forEach((L) => {
|
|
1189
|
+
d = d + L[i.labelKey] + ",";
|
|
1190
|
+
}), m.value = d.substring(0, d.length - 1), p.value = !1, $("handleConfirm", b.value);
|
|
1191
|
+
}, I = () => {
|
|
1192
|
+
p.value = !1;
|
|
1193
|
+
}, T = () => {
|
|
1194
|
+
p.value = !0, he(() => {
|
|
1195
|
+
const d = B.value?.$el?.querySelector(".ant-table-body");
|
|
1196
1196
|
d && (d.scrollTop = 0);
|
|
1197
1197
|
});
|
|
1198
1198
|
}, V = () => {
|
|
1199
1199
|
h.value = [], b.value = [];
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1202
|
-
},
|
|
1203
|
-
|
|
1204
|
-
},
|
|
1205
|
-
d({ confirm: !0 }),
|
|
1206
|
-
},
|
|
1207
|
-
h.value = d, b.value =
|
|
1200
|
+
}, M = () => {
|
|
1201
|
+
m.value = "", V();
|
|
1202
|
+
}, w = (d, L, r) => {
|
|
1203
|
+
L(), D.searchText = d[0], D.searchedColumn = r;
|
|
1204
|
+
}, l = (d, L) => {
|
|
1205
|
+
d({ confirm: !0 }), D.searchText = "", L();
|
|
1206
|
+
}, o = (d, L) => {
|
|
1207
|
+
h.value = d, b.value = L;
|
|
1208
1208
|
};
|
|
1209
1209
|
return f({
|
|
1210
|
-
resetInputVal:
|
|
1211
|
-
}), (d,
|
|
1212
|
-
const
|
|
1213
|
-
return
|
|
1210
|
+
resetInputVal: M
|
|
1211
|
+
}), (d, L) => {
|
|
1212
|
+
const r = q("a-input"), U = q("a-button"), P = q("a-table"), ee = q("a-modal");
|
|
1213
|
+
return a(), S("div", {
|
|
1214
1214
|
class: "hb-lib-multipleSelectModal-box",
|
|
1215
1215
|
ref_key: "hbMultipSelectModalRef",
|
|
1216
|
-
ref:
|
|
1216
|
+
ref: t
|
|
1217
1217
|
}, [
|
|
1218
|
-
|
|
1218
|
+
F(r, {
|
|
1219
1219
|
readonly: "",
|
|
1220
|
-
onClick:
|
|
1221
|
-
value:
|
|
1222
|
-
"onUpdate:value":
|
|
1220
|
+
onClick: T,
|
|
1221
|
+
value: m.value,
|
|
1222
|
+
"onUpdate:value": L[0] || (L[0] = (G) => m.value = G),
|
|
1223
1223
|
placeholder: d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1224
1224
|
}, {
|
|
1225
|
-
addonAfter:
|
|
1226
|
-
|
|
1225
|
+
addonAfter: s(() => [
|
|
1226
|
+
F(n(bt), { onClick: T })
|
|
1227
1227
|
]),
|
|
1228
1228
|
_: 1
|
|
1229
1229
|
}, 8, ["value", "placeholder"]),
|
|
1230
|
-
|
|
1231
|
-
visible:
|
|
1232
|
-
"onUpdate:visible":
|
|
1230
|
+
F(ee, {
|
|
1231
|
+
visible: p.value,
|
|
1232
|
+
"onUpdate:visible": L[1] || (L[1] = (G) => p.value = G),
|
|
1233
1233
|
title: e.modelTitle,
|
|
1234
1234
|
width: e.modalWidth,
|
|
1235
1235
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1236
1236
|
}, {
|
|
1237
|
-
footer:
|
|
1238
|
-
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1237
|
+
footer: s(() => [
|
|
1238
|
+
F(U, { onClick: V }, {
|
|
1239
|
+
default: s(() => [
|
|
1240
|
+
A(_(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1241
1241
|
]),
|
|
1242
1242
|
_: 1
|
|
1243
1243
|
}),
|
|
1244
|
-
|
|
1245
|
-
default:
|
|
1246
|
-
|
|
1244
|
+
F(U, { onClick: I }, {
|
|
1245
|
+
default: s(() => [
|
|
1246
|
+
A(_(d.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1247
1247
|
]),
|
|
1248
1248
|
_: 1
|
|
1249
1249
|
}),
|
|
1250
|
-
|
|
1250
|
+
F(U, {
|
|
1251
1251
|
type: "primary",
|
|
1252
|
-
onClick:
|
|
1252
|
+
onClick: y
|
|
1253
1253
|
}, {
|
|
1254
|
-
default:
|
|
1255
|
-
|
|
1254
|
+
default: s(() => [
|
|
1255
|
+
A(_(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1256
1256
|
]),
|
|
1257
1257
|
_: 1
|
|
1258
1258
|
})
|
|
1259
1259
|
]),
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1260
|
+
default: s(() => [
|
|
1261
|
+
F(P, {
|
|
1262
1262
|
ref_key: "tableRef",
|
|
1263
|
-
ref:
|
|
1264
|
-
columns:
|
|
1265
|
-
dataSource:
|
|
1266
|
-
rowSelection: { selectedRowKeys: h.value, onChange:
|
|
1267
|
-
rowKey: (
|
|
1263
|
+
ref: B,
|
|
1264
|
+
columns: C.value,
|
|
1265
|
+
dataSource: Z.value,
|
|
1266
|
+
rowSelection: { selectedRowKeys: h.value, onChange: o },
|
|
1267
|
+
rowKey: (G) => G[e.tableKey],
|
|
1268
1268
|
scroll: { y: e.tableHeight }
|
|
1269
1269
|
}, {
|
|
1270
|
-
customFilterDropdown:
|
|
1270
|
+
customFilterDropdown: s(({ setSelectedKeys: G, selectedKeys: K, confirm: k, clearFilters: O, column: g }) => [
|
|
1271
1271
|
v("div", cl, [
|
|
1272
|
-
|
|
1272
|
+
F(r, {
|
|
1273
1273
|
ref_key: "searchInput",
|
|
1274
|
-
ref:
|
|
1274
|
+
ref: c,
|
|
1275
1275
|
placeholder: `请输入${g.title}`,
|
|
1276
|
-
value:
|
|
1276
|
+
value: K[0],
|
|
1277
1277
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1278
|
-
onChange: (Y) =>
|
|
1279
|
-
onPressEnter: (Y) =>
|
|
1278
|
+
onChange: (Y) => G(Y.target.value ? [Y.target.value] : []),
|
|
1279
|
+
onPressEnter: (Y) => w(K, k, g.dataIndex)
|
|
1280
1280
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1281
1281
|
v("section", dl, [
|
|
1282
|
-
|
|
1282
|
+
F(U, {
|
|
1283
1283
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1284
1284
|
type: "ghost",
|
|
1285
|
-
onClick: (Y) =>
|
|
1285
|
+
onClick: (Y) => l(O, k)
|
|
1286
1286
|
}, {
|
|
1287
|
-
default:
|
|
1288
|
-
|
|
1287
|
+
default: s(() => [
|
|
1288
|
+
A(_(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1289
1289
|
]),
|
|
1290
1290
|
_: 1
|
|
1291
1291
|
}, 8, ["onClick"]),
|
|
1292
|
-
|
|
1292
|
+
F(U, {
|
|
1293
1293
|
type: "primary",
|
|
1294
1294
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1295
|
-
onClick: (Y) =>
|
|
1295
|
+
onClick: (Y) => w(K, k, g.dataIndex)
|
|
1296
1296
|
}, {
|
|
1297
|
-
default:
|
|
1298
|
-
|
|
1297
|
+
default: s(() => [
|
|
1298
|
+
A(_(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1299
1299
|
]),
|
|
1300
1300
|
_: 1
|
|
1301
1301
|
}, 8, ["onClick"])
|
|
1302
1302
|
])
|
|
1303
1303
|
])
|
|
1304
1304
|
]),
|
|
1305
|
-
customFilterIcon:
|
|
1306
|
-
|
|
1307
|
-
style:
|
|
1305
|
+
customFilterIcon: s(({ filtered: G }) => [
|
|
1306
|
+
F(n(xe), {
|
|
1307
|
+
style: pe({ color: G ? "#108ee9" : void 0 })
|
|
1308
1308
|
}, null, 8, ["style"])
|
|
1309
1309
|
]),
|
|
1310
|
-
bodyCell:
|
|
1311
|
-
|
|
1312
|
-
(
|
|
1313
|
-
|
|
1314
|
-
key:
|
|
1310
|
+
bodyCell: s(({ text: G, column: K }) => [
|
|
1311
|
+
D.searchText && D.searchedColumn === K.dataIndex ? (a(), S("span", ul, [
|
|
1312
|
+
(a(!0), S(J, null, ne(G.toString().split(new RegExp(`(?<=${D.searchText})|(?=${D.searchText})`, "i")), (k, O) => (a(), S(J, null, [
|
|
1313
|
+
k.toLowerCase() === D.searchText.toLowerCase() ? (a(), S("mark", {
|
|
1314
|
+
key: O,
|
|
1315
1315
|
class: "highlight"
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1316
|
+
}, _(k), 1)) : (a(), S(J, { key: 1 }, [
|
|
1317
|
+
A(_(k), 1)
|
|
1318
1318
|
], 64))
|
|
1319
1319
|
], 64))), 256))
|
|
1320
|
-
])) :
|
|
1320
|
+
])) : N("", !0)
|
|
1321
1321
|
]),
|
|
1322
1322
|
_: 1
|
|
1323
1323
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1327,7 +1327,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1327
1327
|
], 512);
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
|
-
}), bl = le(hl), fl = { class: "hb-lib-table-act-box" },
|
|
1330
|
+
}), bl = le(hl), fl = { class: "hb-lib-table-act-box" }, ml = ["onClick"], pl = {
|
|
1331
1331
|
href: "javascript:;",
|
|
1332
1332
|
class: "hb-lib-table-main-action"
|
|
1333
1333
|
}, vl = ["onClick"], gl = {
|
|
@@ -1342,27 +1342,27 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1342
1342
|
buttonDisplaysQuantity: {}
|
|
1343
1343
|
},
|
|
1344
1344
|
setup(e, { expose: f }) {
|
|
1345
|
-
const u = e, { t:
|
|
1346
|
-
|
|
1347
|
-
},
|
|
1348
|
-
|
|
1349
|
-
},
|
|
1350
|
-
if (
|
|
1351
|
-
|
|
1345
|
+
const u = e, { t: i } = re(), $ = R(!1), p = R(!1), m = R(null), c = W(() => u.actions.filter((y) => y.condition !== void 0 ? y.condition : !0)), t = W(() => c.value.slice(0, u.buttonDisplaysQuantity)), h = W(() => c.value.slice(u.buttonDisplaysQuantity)), b = (y) => {
|
|
1346
|
+
y.handler && y.handler(u.record);
|
|
1347
|
+
}, B = (y) => {
|
|
1348
|
+
m.value = y, $.value = !0;
|
|
1349
|
+
}, D = () => {
|
|
1350
|
+
if (m.value) {
|
|
1351
|
+
p.value = !0;
|
|
1352
1352
|
try {
|
|
1353
|
-
b(
|
|
1353
|
+
b(m.value), p.value = !1, $.value = !1;
|
|
1354
1354
|
} catch {
|
|
1355
|
-
|
|
1355
|
+
p.value = !1;
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1360
|
-
},
|
|
1361
|
-
title:
|
|
1362
|
-
content:
|
|
1358
|
+
}, Z = () => {
|
|
1359
|
+
$.value = !1, m.value = null;
|
|
1360
|
+
}, C = W(() => m.value ? {
|
|
1361
|
+
title: m.value.confirmTitle,
|
|
1362
|
+
content: m.value.confirmContent || m.value.confirmTitle
|
|
1363
1363
|
} : {
|
|
1364
|
-
title:
|
|
1365
|
-
content:
|
|
1364
|
+
title: i("hbLibComp.hbTableAct.secendConfirm"),
|
|
1365
|
+
content: i("hbLibComp.hbTableAct.confirmContent")
|
|
1366
1366
|
});
|
|
1367
1367
|
return f({
|
|
1368
1368
|
ADropdown: qe,
|
|
@@ -1371,89 +1371,89 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1371
1371
|
APopconfirm: Ce,
|
|
1372
1372
|
AModal: _e,
|
|
1373
1373
|
DownOutlined: Ie
|
|
1374
|
-
}), (
|
|
1375
|
-
const
|
|
1376
|
-
return
|
|
1377
|
-
(
|
|
1378
|
-
|
|
1379
|
-
|
|
1374
|
+
}), (y, I) => {
|
|
1375
|
+
const T = q("a-divider"), V = nt("has");
|
|
1376
|
+
return a(), S("div", fl, [
|
|
1377
|
+
(a(!0), S(J, null, ne(t.value, (M, w) => (a(), S(J, { key: w }, [
|
|
1378
|
+
M.needConfirm ? (a(), S(J, { key: 0 }, [
|
|
1379
|
+
M.confirmType === "modal" ? ie((a(), S("a", {
|
|
1380
1380
|
key: 0,
|
|
1381
1381
|
href: "javascript:;",
|
|
1382
|
-
onClick: (
|
|
1382
|
+
onClick: (l) => B(M),
|
|
1383
1383
|
class: "hb-lib-table-main-action"
|
|
1384
1384
|
}, [
|
|
1385
|
-
|
|
1386
|
-
], 8,
|
|
1387
|
-
[V,
|
|
1388
|
-
]) : (
|
|
1385
|
+
A(_(M.label), 1)
|
|
1386
|
+
], 8, ml)), [
|
|
1387
|
+
[V, M.permissionsTag || null]
|
|
1388
|
+
]) : (a(), z(n(Ce), {
|
|
1389
1389
|
key: 1,
|
|
1390
|
-
title:
|
|
1391
|
-
onConfirm: (
|
|
1390
|
+
title: M.confirmTitle,
|
|
1391
|
+
onConfirm: (l) => b(M)
|
|
1392
1392
|
}, {
|
|
1393
|
-
default:
|
|
1394
|
-
ie((
|
|
1395
|
-
|
|
1393
|
+
default: s(() => [
|
|
1394
|
+
ie((a(), S("a", pl, [
|
|
1395
|
+
A(_(M.label), 1)
|
|
1396
1396
|
])), [
|
|
1397
|
-
[V,
|
|
1397
|
+
[V, M.permissionsTag || null]
|
|
1398
1398
|
])
|
|
1399
1399
|
]),
|
|
1400
1400
|
_: 2
|
|
1401
1401
|
}, 1032, ["title", "onConfirm"]))
|
|
1402
|
-
], 64)) : (
|
|
1403
|
-
ie((
|
|
1402
|
+
], 64)) : (a(), S(J, { key: 1 }, [
|
|
1403
|
+
ie((a(), S("a", {
|
|
1404
1404
|
href: "javascript:;",
|
|
1405
|
-
onClick: (
|
|
1405
|
+
onClick: (l) => b(M),
|
|
1406
1406
|
class: "hb-lib-table-main-action"
|
|
1407
1407
|
}, [
|
|
1408
|
-
|
|
1408
|
+
A(_(M.label), 1)
|
|
1409
1409
|
], 8, vl)), [
|
|
1410
|
-
[V,
|
|
1410
|
+
[V, M.permissionsTag || null]
|
|
1411
1411
|
]),
|
|
1412
|
-
h.value && h.value.length > 0 ||
|
|
1412
|
+
h.value && h.value.length > 0 || w !== t.value.length - 1 ? (a(), z(T, {
|
|
1413
1413
|
key: 0,
|
|
1414
1414
|
type: "vertical"
|
|
1415
|
-
})) :
|
|
1415
|
+
})) : N("", !0)
|
|
1416
1416
|
], 64))
|
|
1417
1417
|
], 64))), 128)),
|
|
1418
|
-
h.value && h.value.length > 0 ? (
|
|
1419
|
-
overlay:
|
|
1420
|
-
|
|
1421
|
-
default:
|
|
1422
|
-
(
|
|
1423
|
-
key:
|
|
1418
|
+
h.value && h.value.length > 0 ? (a(), z(n(qe), { key: 0 }, {
|
|
1419
|
+
overlay: s(() => [
|
|
1420
|
+
F(n(je), null, {
|
|
1421
|
+
default: s(() => [
|
|
1422
|
+
(a(!0), S(J, null, ne(h.value, (M) => (a(), z(n(Ye), {
|
|
1423
|
+
key: M.key
|
|
1424
1424
|
}, {
|
|
1425
|
-
default:
|
|
1426
|
-
|
|
1427
|
-
|
|
1425
|
+
default: s(() => [
|
|
1426
|
+
M.needConfirm ? (a(), S(J, { key: 0 }, [
|
|
1427
|
+
M.confirmType === "modal" ? ie((a(), S("a", {
|
|
1428
1428
|
key: 0,
|
|
1429
1429
|
href: "javascript:;",
|
|
1430
|
-
onClick: (
|
|
1430
|
+
onClick: (w) => B(M)
|
|
1431
1431
|
}, [
|
|
1432
|
-
|
|
1432
|
+
A(_(M.label), 1)
|
|
1433
1433
|
], 8, yl)), [
|
|
1434
|
-
[V,
|
|
1435
|
-
]) : (
|
|
1434
|
+
[V, M.permissionsTag || null]
|
|
1435
|
+
]) : (a(), z(n(Ce), {
|
|
1436
1436
|
key: 1,
|
|
1437
|
-
title:
|
|
1438
|
-
onConfirm: (
|
|
1437
|
+
title: M.confirmTitle,
|
|
1438
|
+
onConfirm: (w) => b(M)
|
|
1439
1439
|
}, {
|
|
1440
|
-
default:
|
|
1441
|
-
ie((
|
|
1442
|
-
|
|
1440
|
+
default: s(() => [
|
|
1441
|
+
ie((a(), S("a", Cl, [
|
|
1442
|
+
A(_(M.label), 1)
|
|
1443
1443
|
])), [
|
|
1444
|
-
[V,
|
|
1444
|
+
[V, M.permissionsTag || null]
|
|
1445
1445
|
])
|
|
1446
1446
|
]),
|
|
1447
1447
|
_: 2
|
|
1448
1448
|
}, 1032, ["title", "onConfirm"]))
|
|
1449
|
-
], 64)) : ie((
|
|
1449
|
+
], 64)) : ie((a(), S("a", {
|
|
1450
1450
|
key: 1,
|
|
1451
1451
|
href: "javascript:;",
|
|
1452
|
-
onClick: (
|
|
1452
|
+
onClick: (w) => b(M)
|
|
1453
1453
|
}, [
|
|
1454
|
-
|
|
1454
|
+
A(_(M.label), 1)
|
|
1455
1455
|
], 8, Ll)), [
|
|
1456
|
-
[V,
|
|
1456
|
+
[V, M.permissionsTag || null]
|
|
1457
1457
|
])
|
|
1458
1458
|
]),
|
|
1459
1459
|
_: 2
|
|
@@ -1462,36 +1462,36 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1462
1462
|
_: 1
|
|
1463
1463
|
})
|
|
1464
1464
|
]),
|
|
1465
|
-
default:
|
|
1465
|
+
default: s(() => [
|
|
1466
1466
|
v("a", gl, [
|
|
1467
|
-
|
|
1468
|
-
|
|
1467
|
+
A(_(y.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1468
|
+
F(n(Ie), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1469
1469
|
])
|
|
1470
1470
|
]),
|
|
1471
1471
|
_: 1
|
|
1472
|
-
})) :
|
|
1473
|
-
|
|
1474
|
-
visible:
|
|
1475
|
-
title:
|
|
1476
|
-
"confirm-loading":
|
|
1477
|
-
onOk:
|
|
1478
|
-
onCancel:
|
|
1472
|
+
})) : N("", !0),
|
|
1473
|
+
F(n(_e), {
|
|
1474
|
+
visible: $.value,
|
|
1475
|
+
title: C.value.title,
|
|
1476
|
+
"confirm-loading": p.value,
|
|
1477
|
+
onOk: D,
|
|
1478
|
+
onCancel: Z
|
|
1479
1479
|
}, {
|
|
1480
|
-
default:
|
|
1481
|
-
v("p", kl,
|
|
1480
|
+
default: s(() => [
|
|
1481
|
+
v("p", kl, _(C.value.content), 1)
|
|
1482
1482
|
]),
|
|
1483
1483
|
_: 1
|
|
1484
1484
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1485
1485
|
]);
|
|
1486
1486
|
};
|
|
1487
1487
|
}
|
|
1488
|
-
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (e) => ({ tableWidth:
|
|
1488
|
+
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (e) => ({ tableWidth: W(() => {
|
|
1489
1489
|
const u = Array.isArray(e) ? e : e.value;
|
|
1490
|
-
return !u || u.length === 0 ? 0 : u.map((
|
|
1490
|
+
return !u || u.length === 0 ? 0 : u.map((i) => i.width && Number(i.width.toString().replace("px", "")) || 0).reduce((i, $) => i + $, 0);
|
|
1491
1491
|
}) }), xl = {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
class: "hb-lib-list-table-act"
|
|
1494
|
-
},
|
|
1494
|
+
}, $l = { class: "empty-container" }, Tl = /* @__PURE__ */ te({
|
|
1495
1495
|
name: "HbLibListTable",
|
|
1496
1496
|
__name: "HbListTable",
|
|
1497
1497
|
props: {
|
|
@@ -1501,20 +1501,20 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1501
1501
|
defaultWidth: { default: () => 150 }
|
|
1502
1502
|
},
|
|
1503
1503
|
setup(e) {
|
|
1504
|
-
const { t: f } = re(), u = e,
|
|
1504
|
+
const { t: f } = re(), u = e, i = R([]), $ = we("HB_LIST_PAGE_CONTAINER"), { tableWidth: p } = Fl(W(() => u.columns));
|
|
1505
1505
|
ce(
|
|
1506
1506
|
() => u.columns,
|
|
1507
|
-
(
|
|
1508
|
-
const h =
|
|
1509
|
-
|
|
1510
|
-
let
|
|
1511
|
-
if (!
|
|
1512
|
-
|
|
1513
|
-
else if (typeof
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1507
|
+
(t) => {
|
|
1508
|
+
const h = t.filter((b) => b != null && b.checked);
|
|
1509
|
+
i.value = h.map((b) => {
|
|
1510
|
+
let B = { ...b, title: b.title || b.label };
|
|
1511
|
+
if (!B.width)
|
|
1512
|
+
B.width = u.defaultWidth;
|
|
1513
|
+
else if (typeof B.width == "string") {
|
|
1514
|
+
const D = parseInt(B.width, 10);
|
|
1515
|
+
B.width = isNaN(D) ? u.defaultWidth : D;
|
|
1516
1516
|
}
|
|
1517
|
-
return
|
|
1517
|
+
return B.resizable === void 0 && (B.resizable = !0), B;
|
|
1518
1518
|
});
|
|
1519
1519
|
},
|
|
1520
1520
|
{
|
|
@@ -1522,97 +1522,181 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1522
1522
|
deep: !0
|
|
1523
1523
|
}
|
|
1524
1524
|
);
|
|
1525
|
-
const
|
|
1525
|
+
const m = (t, h) => {
|
|
1526
1526
|
if (h) {
|
|
1527
|
-
const b = typeof
|
|
1527
|
+
const b = typeof t == "string" ? parseInt(t, 10) : t;
|
|
1528
1528
|
h.width = isNaN(b) ? 150 : b;
|
|
1529
1529
|
}
|
|
1530
|
-
},
|
|
1531
|
-
return (
|
|
1532
|
-
const b =
|
|
1533
|
-
return
|
|
1530
|
+
}, c = (t, h = "YYYY-MM-DD HH:mm:ss") => t ? $e(t).format(h) : "";
|
|
1531
|
+
return (t, h) => {
|
|
1532
|
+
const b = q("a-empty"), B = q("a-tooltip"), D = q("HbLibCopy"), Z = q("a-table");
|
|
1533
|
+
return a(), S("div", {
|
|
1534
1534
|
class: E(["hb-lib-list-table", { "nowrap-table": u.rowHeight }]),
|
|
1535
|
-
style:
|
|
1535
|
+
style: pe({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1536
1536
|
}, [
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
])) :
|
|
1541
|
-
|
|
1537
|
+
t.$slots.tableActLeft ? (a(), S("section", xl, [
|
|
1538
|
+
j(t.$slots, "tableActLeft", {}, void 0, !0),
|
|
1539
|
+
j(t.$slots, "tableActRight", {}, void 0, !0)
|
|
1540
|
+
])) : N("", !0),
|
|
1541
|
+
F(Z, X(t.$attrs, {
|
|
1542
1542
|
bordered: "",
|
|
1543
|
-
columns:
|
|
1544
|
-
onResizeColumn:
|
|
1543
|
+
columns: i.value,
|
|
1544
|
+
onResizeColumn: m,
|
|
1545
1545
|
scroll: {
|
|
1546
|
-
x: n(
|
|
1547
|
-
y: n(
|
|
1546
|
+
x: n(p),
|
|
1547
|
+
y: n($).tableHeight
|
|
1548
1548
|
}
|
|
1549
1549
|
}), Ge({
|
|
1550
|
-
emptyText:
|
|
1551
|
-
v("div",
|
|
1552
|
-
|
|
1550
|
+
emptyText: s(() => [
|
|
1551
|
+
v("div", $l, [
|
|
1552
|
+
F(b, {
|
|
1553
1553
|
description: n(f)("hbLibComp.hbListTable.noData")
|
|
1554
1554
|
}, null, 8, ["description"])
|
|
1555
1555
|
])
|
|
1556
1556
|
]),
|
|
1557
1557
|
_: 2
|
|
1558
1558
|
}, [
|
|
1559
|
-
|
|
1559
|
+
t.$slots.headerCell ? {
|
|
1560
1560
|
name: "headerCell",
|
|
1561
|
-
fn:
|
|
1562
|
-
|
|
1563
|
-
|
|
1561
|
+
fn: s(({ column: C }) => [
|
|
1562
|
+
j(t.$slots, "headerCell", { column: C }, () => [
|
|
1563
|
+
A(_(C.title), 1)
|
|
1564
1564
|
], !0)
|
|
1565
1565
|
]),
|
|
1566
1566
|
key: "0"
|
|
1567
1567
|
} : void 0,
|
|
1568
|
-
|
|
1568
|
+
t.$slots.bodyCell ? {
|
|
1569
1569
|
name: "bodyCell",
|
|
1570
|
-
fn:
|
|
1571
|
-
|
|
1572
|
-
column:
|
|
1573
|
-
record:
|
|
1574
|
-
index:
|
|
1575
|
-
text:
|
|
1570
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1571
|
+
j(t.$slots, "bodyCell", {
|
|
1572
|
+
column: C,
|
|
1573
|
+
record: y,
|
|
1574
|
+
index: I,
|
|
1575
|
+
text: T
|
|
1576
1576
|
}, void 0, !0),
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
title:
|
|
1580
|
-
|
|
1577
|
+
C && C.needTooltip ? (a(), S(J, { key: 0 }, [
|
|
1578
|
+
C.needTooltip ? (a(), z(B, { key: 0 }, {
|
|
1579
|
+
title: s(() => [
|
|
1580
|
+
A(_(y[C.dataIndex]), 1)
|
|
1581
1581
|
]),
|
|
1582
|
-
default:
|
|
1583
|
-
|
|
1582
|
+
default: s(() => [
|
|
1583
|
+
A(" " + _(y[C.dataIndex]), 1)
|
|
1584
1584
|
]),
|
|
1585
1585
|
_: 2
|
|
1586
|
-
}, 1024)) :
|
|
1587
|
-
], 64)) :
|
|
1588
|
-
|
|
1586
|
+
}, 1024)) : N("", !0)
|
|
1587
|
+
], 64)) : N("", !0),
|
|
1588
|
+
C && C.needCopy ? (a(), z(D, {
|
|
1589
1589
|
key: 1,
|
|
1590
|
-
"cp-text":
|
|
1590
|
+
"cp-text": y[C.dataIndex],
|
|
1591
1591
|
style: { position: "relative" }
|
|
1592
|
-
}, null, 8, ["cp-text"])) :
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
], 64)) :
|
|
1592
|
+
}, null, 8, ["cp-text"])) : N("", !0),
|
|
1593
|
+
C && C.needFormat ? (a(), S(J, { key: 2 }, [
|
|
1594
|
+
A(_(c(y[C.dataIndex], C.format)), 1)
|
|
1595
|
+
], 64)) : N("", !0)
|
|
1596
1596
|
]),
|
|
1597
1597
|
key: "1"
|
|
1598
1598
|
} : void 0,
|
|
1599
|
-
|
|
1599
|
+
t.$slots.expandedRowRender ? {
|
|
1600
1600
|
name: "expandedRowRender",
|
|
1601
|
-
fn:
|
|
1602
|
-
|
|
1603
|
-
record:
|
|
1604
|
-
column:
|
|
1605
|
-
index:
|
|
1606
|
-
text:
|
|
1601
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1602
|
+
j(t.$slots, "expandedRowRender", {
|
|
1603
|
+
record: y,
|
|
1604
|
+
column: C,
|
|
1605
|
+
index: I,
|
|
1606
|
+
text: T
|
|
1607
1607
|
}, void 0, !0)
|
|
1608
1608
|
]),
|
|
1609
1609
|
key: "2"
|
|
1610
|
+
} : void 0,
|
|
1611
|
+
t.$slots.customFilterDropdown ? {
|
|
1612
|
+
name: "customFilterDropdown",
|
|
1613
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1614
|
+
j(t.$slots, "customFilterDropdown", {
|
|
1615
|
+
record: y,
|
|
1616
|
+
column: C,
|
|
1617
|
+
index: I,
|
|
1618
|
+
text: T
|
|
1619
|
+
}, void 0, !0)
|
|
1620
|
+
]),
|
|
1621
|
+
key: "3"
|
|
1622
|
+
} : void 0,
|
|
1623
|
+
t.$slots.customFilterIcon ? {
|
|
1624
|
+
name: "customFilterIcon",
|
|
1625
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1626
|
+
j(t.$slots, "customFilterIcon", {
|
|
1627
|
+
record: y,
|
|
1628
|
+
column: C,
|
|
1629
|
+
index: I,
|
|
1630
|
+
text: T
|
|
1631
|
+
}, void 0, !0)
|
|
1632
|
+
]),
|
|
1633
|
+
key: "4"
|
|
1634
|
+
} : void 0,
|
|
1635
|
+
t.$slots.expandIcon ? {
|
|
1636
|
+
name: "expandIcon",
|
|
1637
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1638
|
+
j(t.$slots, "expandIcon", {
|
|
1639
|
+
record: y,
|
|
1640
|
+
column: C,
|
|
1641
|
+
index: I,
|
|
1642
|
+
text: T
|
|
1643
|
+
}, void 0, !0)
|
|
1644
|
+
]),
|
|
1645
|
+
key: "5"
|
|
1646
|
+
} : void 0,
|
|
1647
|
+
t.$slots.footer ? {
|
|
1648
|
+
name: "footer",
|
|
1649
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1650
|
+
j(t.$slots, "footer", {
|
|
1651
|
+
record: y,
|
|
1652
|
+
column: C,
|
|
1653
|
+
index: I,
|
|
1654
|
+
text: T
|
|
1655
|
+
}, void 0, !0)
|
|
1656
|
+
]),
|
|
1657
|
+
key: "6"
|
|
1658
|
+
} : void 0,
|
|
1659
|
+
t.$slots.headerCell ? {
|
|
1660
|
+
name: "headerCell",
|
|
1661
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1662
|
+
j(t.$slots, "headerCell", {
|
|
1663
|
+
record: y,
|
|
1664
|
+
column: C,
|
|
1665
|
+
index: I,
|
|
1666
|
+
text: T
|
|
1667
|
+
}, void 0, !0)
|
|
1668
|
+
]),
|
|
1669
|
+
key: "7"
|
|
1670
|
+
} : void 0,
|
|
1671
|
+
t.$slots.summary ? {
|
|
1672
|
+
name: "summary",
|
|
1673
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1674
|
+
j(t.$slots, "summary", {
|
|
1675
|
+
record: y,
|
|
1676
|
+
column: C,
|
|
1677
|
+
index: I,
|
|
1678
|
+
text: T
|
|
1679
|
+
}, void 0, !0)
|
|
1680
|
+
]),
|
|
1681
|
+
key: "8"
|
|
1682
|
+
} : void 0,
|
|
1683
|
+
t.$slots.title ? {
|
|
1684
|
+
name: "title",
|
|
1685
|
+
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1686
|
+
j(t.$slots, "title", {
|
|
1687
|
+
record: y,
|
|
1688
|
+
column: C,
|
|
1689
|
+
index: I,
|
|
1690
|
+
text: T
|
|
1691
|
+
}, void 0, !0)
|
|
1692
|
+
]),
|
|
1693
|
+
key: "9"
|
|
1610
1694
|
} : void 0
|
|
1611
1695
|
]), 1040, ["columns", "scroll"])
|
|
1612
1696
|
], 6);
|
|
1613
1697
|
};
|
|
1614
1698
|
}
|
|
1615
|
-
}), Ml = /* @__PURE__ */ oe(
|
|
1699
|
+
}), Ml = /* @__PURE__ */ oe(Tl, [["__scopeId", "data-v-fcaf1bf5"]]), Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1616
1700
|
key: 0,
|
|
1617
1701
|
class: "hb-lib-table-drag-item"
|
|
1618
1702
|
}, Dl = {
|
|
@@ -1654,108 +1738,108 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1654
1738
|
},
|
|
1655
1739
|
emits: ["on-get-columns", "refresh", "clearSelected"],
|
|
1656
1740
|
setup(e, { emit: f }) {
|
|
1657
|
-
const u = f, { t:
|
|
1658
|
-
|
|
1659
|
-
const
|
|
1660
|
-
h.value =
|
|
1661
|
-
},
|
|
1662
|
-
const
|
|
1663
|
-
if (
|
|
1664
|
-
const
|
|
1665
|
-
if ((
|
|
1666
|
-
const U =
|
|
1667
|
-
|
|
1741
|
+
const u = f, { t: i } = re(), $ = e, p = R([]), m = W(() => t.value.filter((l) => l.checked));
|
|
1742
|
+
R([]);
|
|
1743
|
+
const c = R(!1), t = R([]), h = R(null), b = W(() => m.value.length > 0 && m.value.length === p.value.length), B = W(() => m.value.length > 0 && m.value.length < p.value.length), D = (l) => {
|
|
1744
|
+
h.value = l.oldIndex;
|
|
1745
|
+
}, Z = (l) => {
|
|
1746
|
+
const o = l.newIndex;
|
|
1747
|
+
if (p.value.some((L) => L.fixed === "left" || L.fixed === "right" || L.fixed === !0)) {
|
|
1748
|
+
const L = p.value.filter((U) => U.fixed === "left").length, r = p.value.length - p.value.filter((U) => U.fixed === "right").length;
|
|
1749
|
+
if ((L > 0 && o < L || r < p.value.length && o >= r) && (Se.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")), h.value !== null)) {
|
|
1750
|
+
const U = t.value.splice(o, 1)[0];
|
|
1751
|
+
t.value.splice(h.value, 0, U);
|
|
1668
1752
|
}
|
|
1669
1753
|
}
|
|
1670
1754
|
h.value = null;
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1673
|
-
},
|
|
1674
|
-
|
|
1675
|
-
},
|
|
1676
|
-
|
|
1677
|
-
},
|
|
1678
|
-
|
|
1679
|
-
...
|
|
1680
|
-
label:
|
|
1681
|
-
value:
|
|
1682
|
-
checked:
|
|
1683
|
-
})),
|
|
1684
|
-
let
|
|
1685
|
-
|
|
1686
|
-
|
|
1755
|
+
}, C = (l) => {
|
|
1756
|
+
l.target.checked ? t.value.forEach((d) => d.checked = !0) : t.value.forEach((d) => d.checked = !1);
|
|
1757
|
+
}, y = (l, o) => {
|
|
1758
|
+
o ? l.checked = !0 : l.checked = !1;
|
|
1759
|
+
}, I = () => {
|
|
1760
|
+
p.value = [...t.value], u("on-get-columns", p.value), c.value = !1;
|
|
1761
|
+
}, T = () => {
|
|
1762
|
+
p.value = $.tableColumns.map((o) => ({
|
|
1763
|
+
...o,
|
|
1764
|
+
label: o.title && o.title.tag ? V(o.title) : o.title || o.title2,
|
|
1765
|
+
value: o.dataIndex,
|
|
1766
|
+
checked: o.checked || o.checked === void 0
|
|
1767
|
+
})), t.value = [...p.value];
|
|
1768
|
+
let l = [];
|
|
1769
|
+
$.tableColumns.forEach(function(o) {
|
|
1770
|
+
l.push(o.dataIndex);
|
|
1687
1771
|
});
|
|
1688
|
-
}, V = (
|
|
1689
|
-
delete
|
|
1690
|
-
const
|
|
1691
|
-
if (
|
|
1772
|
+
}, V = (l) => l.children[0].text, M = (l) => {
|
|
1773
|
+
delete l.fixed;
|
|
1774
|
+
const o = t.value.findIndex((d) => d.value === l.value);
|
|
1775
|
+
if (o !== -1) {
|
|
1692
1776
|
let d = -1;
|
|
1693
|
-
for (let
|
|
1694
|
-
|
|
1695
|
-
if (d !== -1 &&
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1777
|
+
for (let L = 0; L < t.value.length; L++)
|
|
1778
|
+
t.value[L].fixed === "left" && (d = L);
|
|
1779
|
+
if (d !== -1 && o !== d + 1) {
|
|
1780
|
+
const L = [...t.value], [r] = L.splice(o, 1);
|
|
1781
|
+
L.splice(d + 1, 0, r), t.value = L;
|
|
1698
1782
|
}
|
|
1699
1783
|
}
|
|
1700
|
-
},
|
|
1701
|
-
const
|
|
1702
|
-
if (
|
|
1784
|
+
}, w = (l) => {
|
|
1785
|
+
const o = t.value.findIndex((d) => d.value === l.value);
|
|
1786
|
+
if (o !== -1) {
|
|
1703
1787
|
let d = -1;
|
|
1704
|
-
for (let
|
|
1705
|
-
|
|
1706
|
-
if (d !== -1 &&
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1788
|
+
for (let L = 0; L < t.value.length; L++)
|
|
1789
|
+
t.value[L].fixed === "left" && (d = L);
|
|
1790
|
+
if (d !== -1 && o !== d + 1) {
|
|
1791
|
+
const L = [...t.value], r = L.splice(o, 1);
|
|
1792
|
+
r[0].fixed = "left", L.splice(d + 1, 0, r[0]), t.value = L;
|
|
1709
1793
|
}
|
|
1710
1794
|
}
|
|
1711
1795
|
};
|
|
1712
|
-
return
|
|
1713
|
-
const d =
|
|
1714
|
-
return
|
|
1715
|
-
|
|
1716
|
-
title: n(
|
|
1796
|
+
return T(), (l, o) => {
|
|
1797
|
+
const d = q("a-tooltip"), L = q("a-button");
|
|
1798
|
+
return a(), S("div", Hl, [
|
|
1799
|
+
F(n(pt), {
|
|
1800
|
+
title: n(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1717
1801
|
trigger: "click",
|
|
1718
1802
|
placement: "leftTop",
|
|
1719
1803
|
overlayClassName: "alertInfoContent",
|
|
1720
|
-
visible:
|
|
1721
|
-
"onUpdate:visible":
|
|
1804
|
+
visible: c.value,
|
|
1805
|
+
"onUpdate:visible": o[1] || (o[1] = (r) => c.value = r)
|
|
1722
1806
|
}, {
|
|
1723
|
-
content:
|
|
1724
|
-
|
|
1725
|
-
modelValue:
|
|
1726
|
-
"onUpdate:modelValue":
|
|
1807
|
+
content: s(() => [
|
|
1808
|
+
F(n(fe), {
|
|
1809
|
+
modelValue: t.value,
|
|
1810
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
|
|
1727
1811
|
"item-key": "value",
|
|
1728
1812
|
class: "hb-lib-table-set-drag",
|
|
1729
1813
|
"ghost-class": "ghost",
|
|
1730
1814
|
animation: "200",
|
|
1731
1815
|
handle: ".drag-handle",
|
|
1732
|
-
onStart:
|
|
1733
|
-
onEnd:
|
|
1816
|
+
onStart: D,
|
|
1817
|
+
onEnd: Z
|
|
1734
1818
|
}, {
|
|
1735
|
-
item:
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
checked:
|
|
1739
|
-
onChange: (U) =>
|
|
1819
|
+
item: s(({ element: r }) => [
|
|
1820
|
+
r.fixed !== "right" ? (a(), S("div", Al, [
|
|
1821
|
+
F(n(me), {
|
|
1822
|
+
checked: r.checked,
|
|
1823
|
+
onChange: (U) => y(r, U.target.checked)
|
|
1740
1824
|
}, {
|
|
1741
|
-
default:
|
|
1742
|
-
|
|
1825
|
+
default: s(() => [
|
|
1826
|
+
A(_(r.label), 1)
|
|
1743
1827
|
]),
|
|
1744
1828
|
_: 2
|
|
1745
1829
|
}, 1032, ["checked", "onChange"]),
|
|
1746
|
-
|
|
1830
|
+
r.checked ? (a(), S("section", Dl, [
|
|
1747
1831
|
v("span", {
|
|
1748
|
-
class: E(
|
|
1832
|
+
class: E(r.fixed ? "drag-hide" : "drag-handle")
|
|
1749
1833
|
}, "⋮⋮", 2),
|
|
1750
|
-
|
|
1751
|
-
title:
|
|
1752
|
-
|
|
1834
|
+
r.fixed ? (a(), z(d, { key: 0 }, {
|
|
1835
|
+
title: s(() => [
|
|
1836
|
+
A(_(n(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1753
1837
|
]),
|
|
1754
|
-
default:
|
|
1838
|
+
default: s(() => [
|
|
1755
1839
|
v("span", {
|
|
1756
1840
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1757
|
-
onClick: (U) =>
|
|
1758
|
-
}, [...
|
|
1841
|
+
onClick: (U) => M(r)
|
|
1842
|
+
}, [...o[2] || (o[2] = [
|
|
1759
1843
|
v("svg", {
|
|
1760
1844
|
t: "1759048615600",
|
|
1761
1845
|
class: "icon",
|
|
@@ -1775,16 +1859,16 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1775
1859
|
])], 8, Ol)
|
|
1776
1860
|
]),
|
|
1777
1861
|
_: 2
|
|
1778
|
-
}, 1024)) :
|
|
1779
|
-
|
|
1780
|
-
title:
|
|
1781
|
-
|
|
1862
|
+
}, 1024)) : N("", !0),
|
|
1863
|
+
r.fixed ? N("", !0) : (a(), z(d, { key: 1 }, {
|
|
1864
|
+
title: s(() => [
|
|
1865
|
+
A(_(n(i)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1782
1866
|
]),
|
|
1783
|
-
default:
|
|
1867
|
+
default: s(() => [
|
|
1784
1868
|
v("span", {
|
|
1785
1869
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1786
|
-
onClick: (U) =>
|
|
1787
|
-
}, [...
|
|
1870
|
+
onClick: (U) => w(r)
|
|
1871
|
+
}, [...o[3] || (o[3] = [
|
|
1788
1872
|
v("svg", {
|
|
1789
1873
|
t: "1759048735643",
|
|
1790
1874
|
class: "icon",
|
|
@@ -1805,41 +1889,41 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1805
1889
|
]),
|
|
1806
1890
|
_: 2
|
|
1807
1891
|
}, 1024))
|
|
1808
|
-
])) :
|
|
1809
|
-
])) :
|
|
1892
|
+
])) : N("", !0)
|
|
1893
|
+
])) : N("", !0)
|
|
1810
1894
|
]),
|
|
1811
1895
|
_: 1
|
|
1812
1896
|
}, 8, ["modelValue"]),
|
|
1813
1897
|
v("div", Rl, [
|
|
1814
1898
|
v("div", zl, [
|
|
1815
|
-
|
|
1899
|
+
F(n(me), {
|
|
1816
1900
|
checked: b.value,
|
|
1817
|
-
indeterminate:
|
|
1818
|
-
onChange:
|
|
1901
|
+
indeterminate: B.value,
|
|
1902
|
+
onChange: C
|
|
1819
1903
|
}, {
|
|
1820
|
-
default:
|
|
1821
|
-
|
|
1904
|
+
default: s(() => [
|
|
1905
|
+
A(_(n(i)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1822
1906
|
]),
|
|
1823
1907
|
_: 1
|
|
1824
1908
|
}, 8, ["checked", "indeterminate"])
|
|
1825
1909
|
]),
|
|
1826
|
-
|
|
1827
|
-
onClick:
|
|
1910
|
+
F(L, {
|
|
1911
|
+
onClick: I,
|
|
1828
1912
|
type: "primary"
|
|
1829
1913
|
}, {
|
|
1830
|
-
default:
|
|
1831
|
-
|
|
1914
|
+
default: s(() => [
|
|
1915
|
+
A(_(n(i)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1832
1916
|
]),
|
|
1833
1917
|
_: 1
|
|
1834
1918
|
})
|
|
1835
1919
|
])
|
|
1836
1920
|
]),
|
|
1837
|
-
default:
|
|
1838
|
-
|
|
1839
|
-
title: n(
|
|
1921
|
+
default: s(() => [
|
|
1922
|
+
F(d, {
|
|
1923
|
+
title: n(i)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1840
1924
|
placement: "leftTop"
|
|
1841
1925
|
}, {
|
|
1842
|
-
default:
|
|
1926
|
+
default: s(() => [...o[4] || (o[4] = [
|
|
1843
1927
|
v("span", { class: "hb-lib-table-col-set" }, [
|
|
1844
1928
|
v("svg", {
|
|
1845
1929
|
t: "1759041858618",
|
|
@@ -1876,7 +1960,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1876
1960
|
__proto__: null,
|
|
1877
1961
|
HbLibFormItemFilterModal: wt,
|
|
1878
1962
|
HbLibListBtnsAct: Ut,
|
|
1879
|
-
HbLibListForm:
|
|
1963
|
+
HbLibListForm: Tt,
|
|
1880
1964
|
HbLibListMultiSelect: rl,
|
|
1881
1965
|
HbLibListPageAct: Rt,
|
|
1882
1966
|
HbLibListPageContainer: qt,
|
|
@@ -1930,44 +2014,44 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1930
2014
|
__name: "copy",
|
|
1931
2015
|
props: Ul,
|
|
1932
2016
|
setup(e) {
|
|
1933
|
-
const f = e, u =
|
|
2017
|
+
const f = e, u = R();
|
|
1934
2018
|
st(() => {
|
|
1935
2019
|
u.value = f.data;
|
|
1936
2020
|
});
|
|
1937
|
-
const
|
|
2021
|
+
const i = W(() => {
|
|
1938
2022
|
if (f.cpText) return f.cpText;
|
|
1939
|
-
let
|
|
2023
|
+
let p = "";
|
|
1940
2024
|
if (f.data)
|
|
1941
2025
|
if (Array.isArray(f.data)) {
|
|
1942
2026
|
if (f.K && f.V && f.L) {
|
|
1943
|
-
const
|
|
1944
|
-
|
|
2027
|
+
const m = f.data.find((c) => c?.[f.K] === f.V);
|
|
2028
|
+
p = m ? m[f.L] : "";
|
|
1945
2029
|
}
|
|
1946
2030
|
} else
|
|
1947
|
-
f.K && (
|
|
1948
|
-
return
|
|
1949
|
-
}),
|
|
1950
|
-
navigator.clipboard.writeText(
|
|
2031
|
+
f.K && (p = f.data[f.K]);
|
|
2032
|
+
return p;
|
|
2033
|
+
}), $ = () => {
|
|
2034
|
+
navigator.clipboard.writeText(i.value).then(() => {
|
|
1951
2035
|
Se.success(f.copySuccessTip);
|
|
1952
2036
|
}).catch(() => {
|
|
1953
2037
|
Se.error("复制失败");
|
|
1954
2038
|
});
|
|
1955
2039
|
};
|
|
1956
|
-
return (
|
|
1957
|
-
const
|
|
1958
|
-
return
|
|
2040
|
+
return (p, m) => {
|
|
2041
|
+
const c = q("a-tooltip");
|
|
2042
|
+
return i.value ? (a(), z(c, {
|
|
1959
2043
|
key: 0,
|
|
1960
|
-
title:
|
|
2044
|
+
title: p.tooltipTitle
|
|
1961
2045
|
}, {
|
|
1962
|
-
default:
|
|
2046
|
+
default: s(() => [
|
|
1963
2047
|
v("i", {
|
|
1964
|
-
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy",
|
|
1965
|
-
style:
|
|
1966
|
-
onClick: ke(
|
|
2048
|
+
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", p.classType == "ab" ? "ab" : "normal"]),
|
|
2049
|
+
style: pe({ ...p.cpStyle }),
|
|
2050
|
+
onClick: ke($, ["stop", "prevent"])
|
|
1967
2051
|
}, null, 6)
|
|
1968
2052
|
]),
|
|
1969
2053
|
_: 1
|
|
1970
|
-
}, 8, ["title"])) :
|
|
2054
|
+
}, 8, ["title"])) : N("", !0);
|
|
1971
2055
|
};
|
|
1972
2056
|
}
|
|
1973
2057
|
}), jl = /* @__PURE__ */ oe(Yl, [["__scopeId", "data-v-d5ca4420"]]), ql = le(jl), Kl = {
|
|
@@ -2015,62 +2099,62 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
2015
2099
|
props: Kl,
|
|
2016
2100
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2017
2101
|
setup(e, { emit: f }) {
|
|
2018
|
-
const u = e,
|
|
2102
|
+
const u = e, i = it([]);
|
|
2019
2103
|
ce(
|
|
2020
2104
|
() => u.dragList,
|
|
2021
2105
|
(b) => {
|
|
2022
|
-
|
|
2106
|
+
i.value = b;
|
|
2023
2107
|
},
|
|
2024
2108
|
{
|
|
2025
2109
|
deep: !0,
|
|
2026
2110
|
immediate: !0
|
|
2027
2111
|
}
|
|
2028
2112
|
);
|
|
2029
|
-
const
|
|
2030
|
-
console.log("drag start", b),
|
|
2031
|
-
},
|
|
2032
|
-
console.log("drag end", b),
|
|
2033
|
-
},
|
|
2034
|
-
console.log("drag add", b),
|
|
2113
|
+
const $ = Te("drag"), p = f, m = (b) => {
|
|
2114
|
+
console.log("drag start", b), p("handleDragStart", b);
|
|
2115
|
+
}, c = (b) => {
|
|
2116
|
+
console.log("drag end", b), p("handleDragEnd", b);
|
|
2117
|
+
}, t = (b) => {
|
|
2118
|
+
console.log("drag add", b), p("handleDragAdd", b);
|
|
2035
2119
|
}, h = (b) => {
|
|
2036
|
-
console.log("drag remove", b),
|
|
2120
|
+
console.log("drag remove", b), p("handleDragRemove", b);
|
|
2037
2121
|
};
|
|
2038
|
-
return (b,
|
|
2039
|
-
class: E(n(
|
|
2122
|
+
return (b, B) => (a(), S("div", {
|
|
2123
|
+
class: E(n($).b())
|
|
2040
2124
|
}, [
|
|
2041
|
-
b.childrenType == "component" ? (
|
|
2125
|
+
b.childrenType == "component" ? (a(), z(n(fe), X({
|
|
2042
2126
|
key: 0,
|
|
2043
|
-
modelValue:
|
|
2044
|
-
"onUpdate:modelValue":
|
|
2127
|
+
modelValue: i.value,
|
|
2128
|
+
"onUpdate:modelValue": B[0] || (B[0] = (D) => i.value = D),
|
|
2045
2129
|
"item-key": "key",
|
|
2046
2130
|
class: { [b.dragClass]: b.dragClass }
|
|
2047
2131
|
}, b.$attrs, {
|
|
2048
2132
|
"ghost-class": b.ghostClass,
|
|
2049
|
-
onStart:
|
|
2050
|
-
onEnd:
|
|
2051
|
-
onAdd:
|
|
2133
|
+
onStart: m,
|
|
2134
|
+
onEnd: c,
|
|
2135
|
+
onAdd: t,
|
|
2052
2136
|
onRemove: h
|
|
2053
2137
|
}), {
|
|
2054
|
-
item:
|
|
2055
|
-
(
|
|
2138
|
+
item: s(({ element: D }) => [
|
|
2139
|
+
(a(), z(rt(D.component)))
|
|
2056
2140
|
]),
|
|
2057
2141
|
_: 1
|
|
2058
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (
|
|
2142
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (a(), z(n(fe), X({
|
|
2059
2143
|
key: 1,
|
|
2060
|
-
modelValue:
|
|
2061
|
-
"onUpdate:modelValue":
|
|
2144
|
+
modelValue: i.value,
|
|
2145
|
+
"onUpdate:modelValue": B[1] || (B[1] = (D) => i.value = D),
|
|
2062
2146
|
"item-key": "id",
|
|
2063
2147
|
class: { [b.dragClass]: b.dragClass }
|
|
2064
2148
|
}, b.$attrs, {
|
|
2065
2149
|
"ghost-class": b.ghostClass,
|
|
2066
|
-
onStart:
|
|
2067
|
-
onEnd:
|
|
2068
|
-
onAdd:
|
|
2150
|
+
onStart: m,
|
|
2151
|
+
onEnd: c,
|
|
2152
|
+
onAdd: t,
|
|
2069
2153
|
onRemove: h
|
|
2070
2154
|
}), {
|
|
2071
|
-
item:
|
|
2155
|
+
item: s(({ element: D }) => [
|
|
2072
2156
|
v("div", null, [
|
|
2073
|
-
|
|
2157
|
+
j(b.$slots, "default", { item: D }, void 0, !0)
|
|
2074
2158
|
])
|
|
2075
2159
|
]),
|
|
2076
2160
|
_: 3
|
|
@@ -2098,24 +2182,24 @@ const Zl = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to uploa
|
|
|
2098
2182
|
var be = { exports: {} }, so = be.exports, We;
|
|
2099
2183
|
function io() {
|
|
2100
2184
|
return We || (We = 1, (function(e, f) {
|
|
2101
|
-
(function(u,
|
|
2102
|
-
e.exports =
|
|
2185
|
+
(function(u, i) {
|
|
2186
|
+
e.exports = i($e);
|
|
2103
2187
|
})(so, (function(u) {
|
|
2104
|
-
function
|
|
2105
|
-
return
|
|
2188
|
+
function i(m) {
|
|
2189
|
+
return m && typeof m == "object" && "default" in m ? m : { default: m };
|
|
2106
2190
|
}
|
|
2107
|
-
var
|
|
2108
|
-
return
|
|
2109
|
-
}, 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(
|
|
2110
|
-
var
|
|
2111
|
-
return
|
|
2191
|
+
var $ = i(u), p = { 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(m, c) {
|
|
2192
|
+
return c === "W" ? m + "周" : m + "日";
|
|
2193
|
+
}, 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(m, c) {
|
|
2194
|
+
var t = 100 * m + c;
|
|
2195
|
+
return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";
|
|
2112
2196
|
} };
|
|
2113
|
-
return
|
|
2197
|
+
return $.default.locale(p, null, !0), p;
|
|
2114
2198
|
}));
|
|
2115
2199
|
})(be)), be.exports;
|
|
2116
2200
|
}
|
|
2117
2201
|
io();
|
|
2118
|
-
|
|
2202
|
+
$e.locale("zh-cn");
|
|
2119
2203
|
const yo = {
|
|
2120
2204
|
en_US: Xl,
|
|
2121
2205
|
ja_JP: to,
|