@hb-hellotech/hb-ui 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts.map +1 -1
- package/dist/components/func_comp/index.d.ts +1 -1
- package/dist/components/func_comp/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +858 -818
- 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
|
|
3
|
-
import
|
|
4
|
-
import { Modal as Ie, Button as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import
|
|
8
|
-
import { CloseOutlined as vt, QuestionCircleOutlined as gt, SearchOutlined as
|
|
2
|
+
import { defineComponent as te, reactive as Le, ref as R, computed as U, watch as se, onMounted as fe, createElementBlock as F, openBlock as o, normalizeClass as Y, unref as n, createVNode as w, withCtx as l, createElementVNode as f, toDisplayString as C, createTextVNode as I, createBlock as O, createCommentVNode as B, Fragment as V, renderList as ne, inject as Oe, resolveComponent as P, Transition as nt, withDirectives as he, mergeProps as ee, createSlots as lt, renderSlot as j, vShow as st, nextTick as ve, onUnmounted as Be, useTemplateRef as it, provide as rt, normalizeStyle as ke, mergeModels as Me, useModel as ot, withModifiers as $e, resolveDirective as dt, useAttrs as ct, watchEffect as ut, shallowRef as pt, resolveDynamicComponent as ht } from "vue";
|
|
3
|
+
import Ce from "vuedraggable";
|
|
4
|
+
import { Modal as Ie, Button as me, Tooltip as He, Switch as Ue, Radio as Ee, RadioGroup as Ve, InputNumber as Ye, DatePicker as je, Checkbox as _e, CheckboxGroup as Ke, Select as De, Input as qe, Col as bt, Row as mt, FormItem as We, Form as Je, SelectOption as Ae, Popconfirm as Te, MenuItem as Ge, Menu as Qe, Dropdown as Ze, Popover as ft, message as ze } from "ant-design-vue";
|
|
5
|
+
import { useRoute as at } from "vue-router";
|
|
6
|
+
import { useI18n as de } from "vue-i18n";
|
|
7
|
+
import be from "lodash";
|
|
8
|
+
import { CloseOutlined as vt, QuestionCircleOutlined as gt, SearchOutlined as Re, UpCircleOutlined as yt, DownCircleOutlined as Ct, UnorderedListOutlined as _t, DownOutlined as Xe, PlusCircleOutlined as Lt } from "@ant-design/icons-vue";
|
|
9
9
|
import { useFullscreen as kt, useDebounceFn as St } from "@vueuse/core";
|
|
10
10
|
import Se from "dayjs";
|
|
11
|
-
const wt = "hb-",
|
|
11
|
+
const wt = "hb-", Pe = (t = "") => {
|
|
12
12
|
const m = `${wt}${t}`;
|
|
13
13
|
return Ft(m);
|
|
14
|
-
}, pe = (t, m,
|
|
14
|
+
}, pe = (t, m, i, h) => (m && (t += `-${m}`), i && (t += `__${i}`), h && (t += `--${h}`), t), Ft = (t) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (m) => m ? pe(t, m, "", "") : pe(t, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -19,14 +19,14 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
19
19
|
// hb-button--primary
|
|
20
20
|
m: (m) => pe(t, "", "", m),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (m,
|
|
22
|
+
be: (m, i) => pe(t, m, i, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (m,
|
|
24
|
+
em: (m, i) => pe(t, "", m, i),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (m,
|
|
26
|
+
bem: (m, i, h) => pe(t, m, i, h),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (m,
|
|
29
|
-
}), xt = ["onMouseenter", "onMouseleave"], Tt = ["onClick"],
|
|
28
|
+
is: (m, i) => i ? `is-${m}` : ""
|
|
29
|
+
}), xt = ["onMouseenter", "onMouseleave"], Tt = ["onClick"], Mt = /* @__PURE__ */ te({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -38,14 +38,14 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(t, { expose: m, emit:
|
|
42
|
-
const
|
|
41
|
+
setup(t, { expose: m, emit: i }) {
|
|
42
|
+
const h = de().t, _ = de().messages.value.en_US, g = de().messages.value.ja_JP, r = de().messages.value.zh_CN, d = t, b = i, e = Pe("sfcm"), y = at(), z = Le({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), k = R(!1), N = R(600);
|
|
45
45
|
let H = [];
|
|
46
|
-
const
|
|
46
|
+
const $ = R([]), a = R([]), S = U(() => $.value.every((c) => c.isLinked || c.isFixed)), x = (c) => ({
|
|
47
47
|
...c,
|
|
48
|
-
label: u(c) || `${p(c) || ""} (${
|
|
48
|
+
label: u(c) || `${p(c) || ""} (${h("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: c.key,
|
|
50
50
|
isFixed: c?.isFixed || !1,
|
|
51
51
|
isLinked: c?.isLinked || !1,
|
|
@@ -54,7 +54,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
54
54
|
const D = c.draggedContext.element, A = c.relatedContext.index;
|
|
55
55
|
if (D.isLinked || D.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const G =
|
|
57
|
+
const G = $.value.map((Z, re) => ({ item: Z, index: re })).filter(({ item: Z }) => Z.isLinked).map(({ index: Z }) => Z);
|
|
58
58
|
if (G.length === 0)
|
|
59
59
|
return !0;
|
|
60
60
|
for (let Z = 0; Z < G.length - 1; Z++) {
|
|
@@ -63,7 +63,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
},
|
|
66
|
+
}, K = U(() => v() + "_" + d.saveKey), v = () => {
|
|
67
67
|
const c = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let D = "anonymous";
|
|
69
69
|
if (c)
|
|
@@ -72,32 +72,32 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
72
72
|
} catch (G) {
|
|
73
73
|
console.warn("解析用户信息失败:", G);
|
|
74
74
|
}
|
|
75
|
-
let A =
|
|
75
|
+
let A = y?.path;
|
|
76
76
|
return `searchFormConfig_${D}_${A}`;
|
|
77
77
|
}, u = (c) => ({
|
|
78
|
-
ja_JP: () =>
|
|
79
|
-
en_US: () =>
|
|
80
|
-
zh_CN: () =>
|
|
81
|
-
})[
|
|
82
|
-
ja_JP: () =>
|
|
83
|
-
en_US: () =>
|
|
84
|
-
zh_CN: () =>
|
|
85
|
-
})[
|
|
78
|
+
ja_JP: () => be.get(g, c.labelLanguage || ""),
|
|
79
|
+
en_US: () => be.get(_, c.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => be.get(r, c.labelLanguage || "")
|
|
81
|
+
})[z.lan]?.() || c.label, p = (c) => ({
|
|
82
|
+
ja_JP: () => be.get(g, c.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => be.get(_, c.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => be.get(r, c.subLabelLanguage || "")
|
|
85
|
+
})[z.lan]?.() || c.subLabel, s = (c) => {
|
|
86
86
|
try {
|
|
87
|
-
const D = localStorage.getItem(
|
|
87
|
+
const D = localStorage.getItem(K.value);
|
|
88
88
|
if (D) {
|
|
89
89
|
const A = JSON.parse(D);
|
|
90
90
|
if (A.originalList && Array.isArray(A.originalList)) {
|
|
91
91
|
H = JSON.parse(JSON.stringify(A.originalList));
|
|
92
|
-
const G = H.filter((W) => W?.isFixed), Z = H.filter((W) => W?.isLinked), re = A.showList.filter((W) => !W.isFixed && !W.isLinked), ue = d.showNumber && d.showNumber > 0 ? Math.max(0, d.showNumber - G.length - Z.length) : re.length,
|
|
92
|
+
const G = H.filter((W) => W?.isFixed), Z = H.filter((W) => W?.isLinked), re = A.showList.filter((W) => !W.isFixed && !W.isLinked), ue = d.showNumber && d.showNumber > 0 ? Math.max(0, d.showNumber - G.length - Z.length) : re.length, ge = G.map((W) => ({
|
|
93
93
|
...x(W)
|
|
94
94
|
})), we = Z.map((W) => ({
|
|
95
95
|
...x(W)
|
|
96
96
|
})), Fe = re.slice(0, ue).map((W) => ({
|
|
97
97
|
...x(W)
|
|
98
98
|
}));
|
|
99
|
-
console.log("我进来了这里2233"),
|
|
100
|
-
const xe =
|
|
99
|
+
console.log("我进来了这里2233"), $.value = [...ge, ...we, ...Fe];
|
|
100
|
+
const xe = $.value.map((W) => W.key), X = H.map((W) => W.key).filter((W) => !xe.includes(W));
|
|
101
101
|
return a.value = H.filter((W) => X.includes(W.key)).map((W) => ({
|
|
102
102
|
...x(W),
|
|
103
103
|
active: !1
|
|
@@ -112,7 +112,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
112
112
|
try {
|
|
113
113
|
const c = {
|
|
114
114
|
originalList: H,
|
|
115
|
-
showList:
|
|
115
|
+
showList: $.value.map((D) => ({
|
|
116
116
|
...D,
|
|
117
117
|
key: D.key,
|
|
118
118
|
label: D.label,
|
|
@@ -121,68 +121,68 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
121
121
|
labelLanguage: D?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(
|
|
124
|
+
localStorage.setItem(K.value, JSON.stringify(c));
|
|
125
125
|
} catch (c) {
|
|
126
126
|
console.warn("保存搜索配置失败:", c);
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
const c =
|
|
128
|
+
}, E = U(() => {
|
|
129
|
+
const c = $.value.filter((A) => !A.isFixed && !A.isLinked).length, D = $.value.filter((A) => A.isFixed || A.isLinked).length;
|
|
130
130
|
return c >= d.showNumber - D;
|
|
131
131
|
});
|
|
132
132
|
se(
|
|
133
133
|
() => d.list,
|
|
134
134
|
(c) => {
|
|
135
|
-
let D = JSON.stringify(
|
|
135
|
+
let D = JSON.stringify($.value) !== JSON.stringify(c);
|
|
136
136
|
if (!D)
|
|
137
137
|
return;
|
|
138
|
-
const A = localStorage.getItem(
|
|
138
|
+
const A = localStorage.getItem(K.value), G = JSON.parse(A || "{}");
|
|
139
139
|
if (G && G?.originalList && Array.isArray(G.originalList))
|
|
140
|
-
|
|
140
|
+
s(), b("confirm", $.value);
|
|
141
141
|
else if (D) {
|
|
142
142
|
H = JSON.parse(JSON.stringify(c));
|
|
143
|
-
const Z = c.filter((X) => X?.isFixed), re = c.filter((X) => X?.isLinked), ue = c.filter((X) => !X?.isFixed && !X?.isLinked),
|
|
144
|
-
|
|
145
|
-
const
|
|
143
|
+
const Z = c.filter((X) => X?.isFixed), re = c.filter((X) => X?.isLinked), ue = c.filter((X) => !X?.isFixed && !X?.isLinked), ge = d.showNumber && d.showNumber > 0 ? Math.max(0, d.showNumber - Z.length - re.length) : ue.length, we = Z.map((X) => x(X)), Fe = re.map((X) => x(X)), xe = ue.slice(0, ge).map((X) => x(X));
|
|
144
|
+
$.value = [...we, ...Fe, ...xe];
|
|
145
|
+
const Ne = ue.slice(ge).map((X) => ({
|
|
146
146
|
...x(X),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
a.value =
|
|
149
|
+
a.value = Ne;
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
154
|
const Q = (c) => {
|
|
155
|
-
const D =
|
|
156
|
-
D !== -1 && (
|
|
155
|
+
const D = $.value.findIndex((A) => A.key === c.key);
|
|
156
|
+
D !== -1 && ($.value.splice(D, 1), a.value.push({ ...c, active: !1 }));
|
|
157
157
|
}, ie = (c) => {
|
|
158
|
-
if (
|
|
158
|
+
if (E.value)
|
|
159
159
|
return;
|
|
160
160
|
const D = a.value.findIndex((A) => A.key === c.key);
|
|
161
161
|
if (D !== -1) {
|
|
162
162
|
const [A] = a.value.splice(D, 1);
|
|
163
|
-
|
|
163
|
+
$.value.push({ ...A, active: !1 });
|
|
164
164
|
}
|
|
165
165
|
}, J = () => {
|
|
166
166
|
k.value = !1;
|
|
167
|
-
},
|
|
167
|
+
}, q = () => {
|
|
168
168
|
k.value = !0;
|
|
169
169
|
}, oe = () => {
|
|
170
|
-
T(),
|
|
171
|
-
},
|
|
170
|
+
T(), b("confirm", $.value), J();
|
|
171
|
+
}, M = (c) => {
|
|
172
172
|
const D = a.value.findIndex((A) => A.key === c.key);
|
|
173
173
|
D !== -1 && (a.value[D].active = !0);
|
|
174
|
-
},
|
|
174
|
+
}, ce = (c) => {
|
|
175
175
|
const D = a.value.findIndex((A) => A.key === c.key);
|
|
176
176
|
D !== -1 && (a.value[D].active = !1);
|
|
177
177
|
};
|
|
178
178
|
return m({
|
|
179
|
-
toOpenModal:
|
|
180
|
-
}),
|
|
179
|
+
toOpenModal: q
|
|
180
|
+
}), fe(() => {
|
|
181
181
|
console.log("我是保存的搜索条件");
|
|
182
182
|
}), (c, D) => (o(), F("div", {
|
|
183
|
-
class:
|
|
183
|
+
class: Y(n(e).b())
|
|
184
184
|
}, [
|
|
185
|
-
w(
|
|
185
|
+
w(n(Ie), {
|
|
186
186
|
visible: k.value,
|
|
187
187
|
"onUpdate:visible": D[1] || (D[1] = (A) => k.value = A),
|
|
188
188
|
width: N.value,
|
|
@@ -190,58 +190,58 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
190
190
|
onOk: oe
|
|
191
191
|
}, {
|
|
192
192
|
title: l(() => [
|
|
193
|
-
|
|
194
|
-
class:
|
|
195
|
-
},
|
|
193
|
+
f("div", {
|
|
194
|
+
class: Y(n(e).e("title"))
|
|
195
|
+
}, C(t.title), 3)
|
|
196
196
|
]),
|
|
197
197
|
footer: l(() => [
|
|
198
|
-
w(
|
|
198
|
+
w(n(me), { onClick: J }, {
|
|
199
199
|
default: l(() => [
|
|
200
|
-
I(
|
|
200
|
+
I(C(c.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
201
201
|
]),
|
|
202
202
|
_: 1
|
|
203
203
|
}),
|
|
204
|
-
w(
|
|
204
|
+
w(n(me), {
|
|
205
205
|
type: "primary",
|
|
206
206
|
onClick: oe
|
|
207
207
|
}, {
|
|
208
208
|
default: l(() => [
|
|
209
|
-
I(
|
|
209
|
+
I(C(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
212
212
|
})
|
|
213
213
|
]),
|
|
214
214
|
default: l(() => [
|
|
215
|
-
|
|
216
|
-
class:
|
|
215
|
+
f("section", {
|
|
216
|
+
class: Y(n(e).e("show"))
|
|
217
217
|
}, [
|
|
218
|
-
|
|
219
|
-
class:
|
|
218
|
+
f("div", {
|
|
219
|
+
class: Y(n(e).e("show__title"))
|
|
220
220
|
}, [
|
|
221
|
-
|
|
222
|
-
class:
|
|
223
|
-
},
|
|
224
|
-
|
|
221
|
+
f("span", {
|
|
222
|
+
class: Y(n(e).e("title__tip"))
|
|
223
|
+
}, C(c.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
224
|
+
f("span", null, C(c.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(t.showNumber) + C(c.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
225
225
|
], 2),
|
|
226
|
-
|
|
227
|
-
class:
|
|
226
|
+
f("div", {
|
|
227
|
+
class: Y(n(e).e("show__tag"))
|
|
228
228
|
}, [
|
|
229
|
-
w(
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": D[0] || (D[0] = (A) =>
|
|
229
|
+
w(n(Ce), {
|
|
230
|
+
modelValue: $.value,
|
|
231
|
+
"onUpdate:modelValue": D[0] || (D[0] = (A) => $.value = A),
|
|
232
232
|
"item-key": "key",
|
|
233
233
|
tag: "div",
|
|
234
234
|
disabled: S.value,
|
|
235
235
|
move: L
|
|
236
236
|
}, {
|
|
237
237
|
item: l(({ element: A }) => [
|
|
238
|
-
|
|
239
|
-
class:
|
|
238
|
+
f("div", {
|
|
239
|
+
class: Y([n(e).e("show__tag__item"), n(e).is("fixed", A.isFixed), n(e).is("linked", A.isLinked)])
|
|
240
240
|
}, [
|
|
241
|
-
I(
|
|
242
|
-
!A.isFixed && !A.isLinked && t.list.length > 1 ? (o(),
|
|
241
|
+
I(C(A.label) + " ", 1),
|
|
242
|
+
!A.isFixed && !A.isLinked && t.list.length > 1 ? (o(), O(n(vt), {
|
|
243
243
|
key: 0,
|
|
244
|
-
class:
|
|
244
|
+
class: Y(n(e).e("show__tag__item-close")),
|
|
245
245
|
onClick: (G) => Q(A)
|
|
246
246
|
}, null, 8, ["class", "onClick"])) : B("", !0)
|
|
247
247
|
], 2)
|
|
@@ -250,35 +250,35 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
250
250
|
}, 8, ["modelValue", "disabled"])
|
|
251
251
|
], 2)
|
|
252
252
|
], 2),
|
|
253
|
-
|
|
254
|
-
class:
|
|
253
|
+
f("section", {
|
|
254
|
+
class: Y(n(e).e("unshow"))
|
|
255
255
|
}, [
|
|
256
|
-
|
|
257
|
-
class:
|
|
256
|
+
f("div", {
|
|
257
|
+
class: Y(n(e).e("show__title"))
|
|
258
258
|
}, [
|
|
259
|
-
|
|
260
|
-
class:
|
|
261
|
-
},
|
|
259
|
+
f("span", {
|
|
260
|
+
class: Y(n(e).e("title__tip"))
|
|
261
|
+
}, C(c.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
262
262
|
], 2),
|
|
263
|
-
|
|
264
|
-
class:
|
|
263
|
+
f("div", {
|
|
264
|
+
class: Y(n(e).e("unshow__tag"))
|
|
265
265
|
}, [
|
|
266
|
-
a.value.length > 0 ? (o(!0), F(
|
|
267
|
-
class:
|
|
266
|
+
a.value.length > 0 ? (o(!0), F(V, { key: 0 }, ne(a.value, (A) => (o(), F("div", {
|
|
267
|
+
class: Y([n(e).e("unshow__tag__item"), n(e).is("fixed", A.isFixed || ""), n(e).is("linked", A.isLinked || "")]),
|
|
268
268
|
key: A.key,
|
|
269
|
-
onMouseenter: (G) =>
|
|
270
|
-
onMouseleave: (G) =>
|
|
269
|
+
onMouseenter: (G) => M(A),
|
|
270
|
+
onMouseleave: (G) => ce(A)
|
|
271
271
|
}, [
|
|
272
|
-
I(
|
|
272
|
+
I(C(A.label) + " ", 1),
|
|
273
273
|
A.active ? (o(), F("aside", {
|
|
274
274
|
key: 0,
|
|
275
|
-
class:
|
|
275
|
+
class: Y(n(e).e("unshow__tag__item-add")),
|
|
276
276
|
onClick: (G) => ie(A)
|
|
277
|
-
},
|
|
277
|
+
}, C(c.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Tt)) : B("", !0)
|
|
278
278
|
], 42, xt))), 128)) : (o(), F("div", {
|
|
279
279
|
key: 1,
|
|
280
|
-
class:
|
|
281
|
-
},
|
|
280
|
+
class: Y(n(e).e("unshow__tag__empty"))
|
|
281
|
+
}, C(c.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
282
282
|
], 2)
|
|
283
283
|
], 2)
|
|
284
284
|
]),
|
|
@@ -287,13 +287,13 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
287
287
|
], 2));
|
|
288
288
|
}
|
|
289
289
|
}), ae = (t, m) => {
|
|
290
|
-
const
|
|
291
|
-
for (const [
|
|
292
|
-
|
|
293
|
-
return
|
|
294
|
-
},
|
|
290
|
+
const i = t.__vccOpts || t;
|
|
291
|
+
for (const [h, _] of m)
|
|
292
|
+
i[h] = _;
|
|
293
|
+
return i;
|
|
294
|
+
}, $t = /* @__PURE__ */ ae(Mt, [["__scopeId", "data-v-abe66e59"]]), le = (t) => (t.install = (m) => {
|
|
295
295
|
m.component(t.name || "AnonymousComponent", t);
|
|
296
|
-
}, t), It = le(
|
|
296
|
+
}, t), It = le($t), Ht = { class: "form-footer" }, Dt = /* @__PURE__ */ te({
|
|
297
297
|
name: "HbLibListForm",
|
|
298
298
|
__name: "HbListForm",
|
|
299
299
|
props: {
|
|
@@ -324,28 +324,28 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
324
324
|
} }
|
|
325
325
|
},
|
|
326
326
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
327
|
-
setup(t, { expose: m, emit:
|
|
328
|
-
const
|
|
329
|
-
...
|
|
330
|
-
label:
|
|
331
|
-
}))),
|
|
332
|
-
|
|
327
|
+
setup(t, { expose: m, emit: i }) {
|
|
328
|
+
const h = i, _ = Oe("HB_LIST_PAGE_CONTAINER"), g = U(() => d.searchList || []), r = Pe("form"), d = t, b = R("show"), e = U(() => [...d.items]), y = U(() => [...d.items].map((s) => ({
|
|
329
|
+
...s,
|
|
330
|
+
label: s.label?.includes("多项搜索") ? "" : s.label
|
|
331
|
+
}))), z = U(() => d.saveKey), k = R(), N = () => {
|
|
332
|
+
h("handleSearch");
|
|
333
333
|
}, H = () => {
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
}, S = (
|
|
338
|
-
|
|
339
|
-
}, x = (
|
|
340
|
-
|
|
334
|
+
h("handleReset");
|
|
335
|
+
}, $ = R(), a = () => {
|
|
336
|
+
$.value && $.value.toOpenModal();
|
|
337
|
+
}, S = (s) => {
|
|
338
|
+
h("handleMenuClick", s);
|
|
339
|
+
}, x = (s) => {
|
|
340
|
+
h("handleSfcmConfirm", s);
|
|
341
341
|
}, L = () => {
|
|
342
|
-
|
|
342
|
+
b.value = b.value === "show" ? "hide" : "show";
|
|
343
343
|
};
|
|
344
344
|
se(
|
|
345
345
|
() => d.isFormExpanded,
|
|
346
|
-
(
|
|
347
|
-
if (
|
|
348
|
-
console.log(
|
|
346
|
+
(s) => {
|
|
347
|
+
if (s) {
|
|
348
|
+
console.log(s);
|
|
349
349
|
const T = document.querySelector("#subpackage_container");
|
|
350
350
|
T instanceof HTMLElement && (T.style.overflow = "hidden", setTimeout(() => {
|
|
351
351
|
T.style.overflow = "auto";
|
|
@@ -353,170 +353,170 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
);
|
|
356
|
-
const
|
|
357
|
-
const T =
|
|
356
|
+
const K = (s) => {
|
|
357
|
+
const T = s;
|
|
358
358
|
T.style.height = "", T.offsetHeight;
|
|
359
|
-
}, v = (
|
|
360
|
-
const T =
|
|
361
|
-
T.style.height = "", T.style.overflow = "",
|
|
362
|
-
|
|
359
|
+
}, v = (s) => {
|
|
360
|
+
const T = s;
|
|
361
|
+
T.style.height = "", T.style.overflow = "", ve(() => {
|
|
362
|
+
_.calTableHeight && _.calTableHeight();
|
|
363
363
|
});
|
|
364
|
-
}, u = (
|
|
365
|
-
const T =
|
|
366
|
-
if (
|
|
367
|
-
const Q =
|
|
364
|
+
}, u = (s) => {
|
|
365
|
+
const T = s, E = T.querySelector(".hb-lib-form--container");
|
|
366
|
+
if (E) {
|
|
367
|
+
const Q = E.offsetHeight;
|
|
368
368
|
T.style.height = Q + "px", T.style.overflow = "hidden", T.offsetHeight, requestAnimationFrame(() => {
|
|
369
369
|
T.style.height = "0";
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
}, p = () => {
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
ve(() => {
|
|
374
|
+
_.calTableHeight && _.calTableHeight();
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
377
|
return m({
|
|
378
378
|
formRef: k,
|
|
379
379
|
SelectOption: Ae,
|
|
380
|
-
Form:
|
|
381
|
-
FormItem:
|
|
382
|
-
Row:
|
|
383
|
-
Col:
|
|
380
|
+
Form: Je,
|
|
381
|
+
FormItem: We,
|
|
382
|
+
Row: mt,
|
|
383
|
+
Col: bt,
|
|
384
384
|
Input: qe,
|
|
385
385
|
Select: De,
|
|
386
|
-
CheckboxGroup:
|
|
387
|
-
Checkbox:
|
|
388
|
-
DatePicker:
|
|
389
|
-
InputNumber:
|
|
386
|
+
CheckboxGroup: Ke,
|
|
387
|
+
Checkbox: _e,
|
|
388
|
+
DatePicker: je,
|
|
389
|
+
InputNumber: Ye,
|
|
390
390
|
RadioGroup: Ve,
|
|
391
|
-
Radio:
|
|
392
|
-
Switch:
|
|
393
|
-
Button:
|
|
391
|
+
Radio: Ee,
|
|
392
|
+
Switch: Ue,
|
|
393
|
+
Button: me,
|
|
394
394
|
Tooltip: He
|
|
395
|
-
}), (
|
|
396
|
-
const
|
|
397
|
-
return o(), F(
|
|
398
|
-
w(
|
|
395
|
+
}), (s, T) => {
|
|
396
|
+
const E = P("a-button"), Q = P("a-tooltip"), ie = P("a-menu-item"), J = P("a-menu"), q = P("a-dropdown"), oe = P("HbLibFormItemFilterModal");
|
|
397
|
+
return o(), F(V, null, [
|
|
398
|
+
w(nt, {
|
|
399
399
|
name: "form-collapse",
|
|
400
|
-
onEnter:
|
|
400
|
+
onEnter: K,
|
|
401
401
|
onAfterEnter: v,
|
|
402
402
|
onLeave: u,
|
|
403
403
|
onAfterLeave: p
|
|
404
404
|
}, {
|
|
405
405
|
default: l(() => [
|
|
406
|
-
|
|
407
|
-
class:
|
|
406
|
+
he(f("div", {
|
|
407
|
+
class: Y([n(r).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
408
408
|
}, [
|
|
409
|
-
w(
|
|
409
|
+
w(n(Je), ee(s.$attrs, {
|
|
410
410
|
model: t.formData,
|
|
411
411
|
ref_key: "formRef",
|
|
412
412
|
ref: k,
|
|
413
|
-
class: ["hb-lib-form--container",
|
|
413
|
+
class: ["hb-lib-form--container", b.value == "show" ? "" : "hide"]
|
|
414
414
|
}), {
|
|
415
415
|
default: l(() => [
|
|
416
|
-
(o(!0), F(
|
|
417
|
-
key:
|
|
416
|
+
(o(!0), F(V, null, ne(y.value, (M, ce) => (o(), O(n(We), ee({
|
|
417
|
+
key: ce,
|
|
418
418
|
ref_for: !0
|
|
419
|
-
},
|
|
420
|
-
name:
|
|
421
|
-
class:
|
|
422
|
-
}),
|
|
419
|
+
}, M, {
|
|
420
|
+
name: M.key,
|
|
421
|
+
class: M.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
422
|
+
}), lt({
|
|
423
423
|
default: l(() => [
|
|
424
|
-
|
|
424
|
+
M.type === "slot" ? j(s.$slots, M.key, {
|
|
425
425
|
key: 0,
|
|
426
426
|
formData: t.formData,
|
|
427
|
-
item:
|
|
427
|
+
item: M
|
|
428
428
|
}, void 0, !0) : B("", !0),
|
|
429
|
-
|
|
429
|
+
M.type === "mixin" ? j(s.$slots, M.key, {
|
|
430
430
|
key: 1,
|
|
431
431
|
formData: t.formData,
|
|
432
|
-
item:
|
|
432
|
+
item: M
|
|
433
433
|
}, void 0, !0) : B("", !0),
|
|
434
|
-
|
|
434
|
+
M.type === "input" ? (o(), O(n(qe), ee({
|
|
435
435
|
key: 2,
|
|
436
|
-
value: t.formData[
|
|
437
|
-
"onUpdate:value": (c) => t.formData[
|
|
438
|
-
}, { ref_for: !0 },
|
|
439
|
-
|
|
436
|
+
value: t.formData[M.key],
|
|
437
|
+
"onUpdate:value": (c) => t.formData[M.key] = c
|
|
438
|
+
}, { ref_for: !0 }, M.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
439
|
+
M.type === "select" ? (o(), O(n(De), ee({
|
|
440
440
|
key: 3,
|
|
441
|
-
value: t.formData[
|
|
442
|
-
"onUpdate:value": (c) => t.formData[
|
|
443
|
-
}, { ref_for: !0 },
|
|
441
|
+
value: t.formData[M.key],
|
|
442
|
+
"onUpdate:value": (c) => t.formData[M.key] = c
|
|
443
|
+
}, { ref_for: !0 }, M.attrs), {
|
|
444
444
|
default: l(() => [
|
|
445
|
-
(o(!0), F(
|
|
445
|
+
(o(!0), F(V, null, ne(M.options, (c, D) => (o(), O(n(Ae), {
|
|
446
446
|
key: D,
|
|
447
447
|
value: c.value
|
|
448
448
|
}, {
|
|
449
449
|
default: l(() => [
|
|
450
|
-
I(
|
|
450
|
+
I(C(c.label), 1)
|
|
451
451
|
]),
|
|
452
452
|
_: 2
|
|
453
453
|
}, 1032, ["value"]))), 128))
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
456
|
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
457
|
-
|
|
457
|
+
M.type === "checkbox" ? (o(), O(n(Ke), ee({
|
|
458
458
|
key: 4,
|
|
459
|
-
value: t.formData[
|
|
460
|
-
"onUpdate:value": (c) => t.formData[
|
|
461
|
-
}, { ref_for: !0 },
|
|
459
|
+
value: t.formData[M.key],
|
|
460
|
+
"onUpdate:value": (c) => t.formData[M.key] = c
|
|
461
|
+
}, { ref_for: !0 }, M.attrs), {
|
|
462
462
|
default: l(() => [
|
|
463
|
-
(o(!0), F(
|
|
463
|
+
(o(!0), F(V, null, ne(M.options, (c, D) => (o(), O(n(_e), {
|
|
464
464
|
key: D,
|
|
465
465
|
value: c.value
|
|
466
466
|
}, {
|
|
467
467
|
default: l(() => [
|
|
468
|
-
I(
|
|
468
|
+
I(C(c.label), 1)
|
|
469
469
|
]),
|
|
470
470
|
_: 2
|
|
471
471
|
}, 1032, ["value"]))), 128))
|
|
472
472
|
]),
|
|
473
473
|
_: 2
|
|
474
474
|
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
475
|
-
|
|
475
|
+
M.type === "date-picker" ? (o(), O(n(je), ee({
|
|
476
476
|
key: 5,
|
|
477
|
-
value: t.formData[
|
|
478
|
-
"onUpdate:value": (c) => t.formData[
|
|
479
|
-
}, { ref_for: !0 },
|
|
480
|
-
|
|
477
|
+
value: t.formData[M.key],
|
|
478
|
+
"onUpdate:value": (c) => t.formData[M.key] = c
|
|
479
|
+
}, { ref_for: !0 }, M.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
480
|
+
M.type === "input-number" ? (o(), O(n(Ye), ee({
|
|
481
481
|
key: 6,
|
|
482
|
-
value: t.formData[
|
|
483
|
-
"onUpdate:value": (c) => t.formData[
|
|
484
|
-
}, { ref_for: !0 },
|
|
485
|
-
|
|
482
|
+
value: t.formData[M.key],
|
|
483
|
+
"onUpdate:value": (c) => t.formData[M.key] = c
|
|
484
|
+
}, { ref_for: !0 }, M.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
485
|
+
M.type === "radio" ? (o(), O(n(Ve), ee({
|
|
486
486
|
key: 7,
|
|
487
|
-
value: t.formData[
|
|
488
|
-
"onUpdate:value": (c) => t.formData[
|
|
489
|
-
}, { ref_for: !0 },
|
|
487
|
+
value: t.formData[M.key],
|
|
488
|
+
"onUpdate:value": (c) => t.formData[M.key] = c
|
|
489
|
+
}, { ref_for: !0 }, M.attrs), {
|
|
490
490
|
default: l(() => [
|
|
491
|
-
(o(!0), F(
|
|
491
|
+
(o(!0), F(V, null, ne(M.options, (c, D) => (o(), O(n(Ee), {
|
|
492
492
|
key: D,
|
|
493
493
|
value: c.value
|
|
494
494
|
}, {
|
|
495
495
|
default: l(() => [
|
|
496
|
-
I(
|
|
496
|
+
I(C(c.label), 1)
|
|
497
497
|
]),
|
|
498
498
|
_: 2
|
|
499
499
|
}, 1032, ["value"]))), 128))
|
|
500
500
|
]),
|
|
501
501
|
_: 2
|
|
502
502
|
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
503
|
-
|
|
503
|
+
M.type === "switch" ? (o(), O(n(Ue), ee({
|
|
504
504
|
key: 8,
|
|
505
|
-
checked: t.formData[
|
|
506
|
-
"onUpdate:checked": (c) => t.formData[
|
|
507
|
-
}, { ref_for: !0 },
|
|
505
|
+
checked: t.formData[M.key],
|
|
506
|
+
"onUpdate:checked": (c) => t.formData[M.key] = c
|
|
507
|
+
}, { ref_for: !0 }, M.attrs), null, 16, ["checked", "onUpdate:checked"])) : B("", !0)
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, [
|
|
511
|
-
|
|
511
|
+
M.tooltip ? {
|
|
512
512
|
name: "label",
|
|
513
513
|
fn: l(() => [
|
|
514
|
-
I(
|
|
515
|
-
w(
|
|
516
|
-
title:
|
|
514
|
+
I(C(M.label) + " ", 1),
|
|
515
|
+
w(n(He), {
|
|
516
|
+
title: M.tooltip
|
|
517
517
|
}, {
|
|
518
518
|
default: l(() => [
|
|
519
|
-
w(
|
|
519
|
+
w(n(gt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
520
520
|
]),
|
|
521
521
|
_: 1
|
|
522
522
|
}, 8, ["title"])
|
|
@@ -524,39 +524,39 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
524
524
|
key: "0"
|
|
525
525
|
} : void 0
|
|
526
526
|
]), 1040, ["name", "class"]))), 128)),
|
|
527
|
-
|
|
528
|
-
w(
|
|
527
|
+
f("section", Ht, [
|
|
528
|
+
w(E, {
|
|
529
529
|
type: "primary",
|
|
530
530
|
onClick: N,
|
|
531
531
|
class: "hb_list_page_button"
|
|
532
532
|
}, {
|
|
533
533
|
icon: l(() => [
|
|
534
|
-
w(
|
|
534
|
+
w(n(Re))
|
|
535
535
|
]),
|
|
536
536
|
default: l(() => [
|
|
537
|
-
I(" " +
|
|
537
|
+
I(" " + C(s.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
538
538
|
]),
|
|
539
539
|
_: 1
|
|
540
540
|
}),
|
|
541
|
-
w(
|
|
541
|
+
w(E, {
|
|
542
542
|
type: "link",
|
|
543
543
|
onClick: H
|
|
544
544
|
}, {
|
|
545
545
|
default: l(() => [
|
|
546
|
-
I(
|
|
546
|
+
I(C(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
547
547
|
]),
|
|
548
548
|
_: 1
|
|
549
549
|
}),
|
|
550
|
-
t.needFilter ? (o(),
|
|
550
|
+
t.needFilter ? (o(), O(Q, {
|
|
551
551
|
key: 0,
|
|
552
|
-
title:
|
|
552
|
+
title: s.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
553
553
|
}, {
|
|
554
554
|
default: l(() => [
|
|
555
|
-
|
|
555
|
+
f("span", {
|
|
556
556
|
class: "hb-lib-form-svg",
|
|
557
557
|
onClick: a
|
|
558
558
|
}, [...T[0] || (T[0] = [
|
|
559
|
-
|
|
559
|
+
f("svg", {
|
|
560
560
|
t: "1757915025410",
|
|
561
561
|
class: "icon",
|
|
562
562
|
viewBox: "0 0 1024 1024",
|
|
@@ -566,7 +566,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
566
566
|
width: "200",
|
|
567
567
|
height: "200"
|
|
568
568
|
}, [
|
|
569
|
-
|
|
569
|
+
f("path", {
|
|
570
570
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
571
571
|
fill: "#ff5000",
|
|
572
572
|
"p-id": "16347"
|
|
@@ -576,28 +576,28 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
}, 8, ["title"])) : B("", !0),
|
|
579
|
-
j(
|
|
580
|
-
t.needSearchCase ? (o(),
|
|
579
|
+
j(s.$slots, "formBtns", {}, () => [
|
|
580
|
+
t.needSearchCase ? (o(), O(q, { key: 0 }, {
|
|
581
581
|
overlay: l(() => [
|
|
582
582
|
w(J, { onClick: S }, {
|
|
583
583
|
default: l(() => [
|
|
584
|
-
(o(!0), F(
|
|
585
|
-
key:
|
|
584
|
+
(o(!0), F(V, null, ne(g.value, (M) => (o(), O(ie, {
|
|
585
|
+
key: M.id
|
|
586
586
|
}, {
|
|
587
587
|
default: l(() => [
|
|
588
|
-
I(
|
|
588
|
+
I(C(M.title), 1)
|
|
589
589
|
]),
|
|
590
590
|
_: 2
|
|
591
591
|
}, 1024))), 128)),
|
|
592
592
|
w(ie, { key: "add" }, {
|
|
593
593
|
default: l(() => [
|
|
594
|
-
I(
|
|
594
|
+
I(C(s.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
595
595
|
]),
|
|
596
596
|
_: 1
|
|
597
597
|
}),
|
|
598
598
|
w(ie, { key: "edit" }, {
|
|
599
599
|
default: l(() => [
|
|
600
|
-
I(
|
|
600
|
+
I(C(s.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
601
601
|
]),
|
|
602
602
|
_: 1
|
|
603
603
|
})
|
|
@@ -607,11 +607,11 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
607
607
|
]),
|
|
608
608
|
default: l(() => [
|
|
609
609
|
w(Q, {
|
|
610
|
-
title:
|
|
610
|
+
title: s.$t("hbLibComp.hbLibListForm.queryCase")
|
|
611
611
|
}, {
|
|
612
612
|
default: l(() => [...T[1] || (T[1] = [
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
f("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
614
|
+
f("svg", {
|
|
615
615
|
t: "1765936014161",
|
|
616
616
|
class: "icon",
|
|
617
617
|
viewBox: "0 0 1024 1024",
|
|
@@ -619,17 +619,17 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
619
619
|
xmlns: "http://www.w3.org/2000/svg",
|
|
620
620
|
"p-id": "4751"
|
|
621
621
|
}, [
|
|
622
|
-
|
|
622
|
+
f("path", {
|
|
623
623
|
d: "M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",
|
|
624
624
|
fill: "#ff5000",
|
|
625
625
|
"p-id": "4752"
|
|
626
626
|
}),
|
|
627
|
-
|
|
627
|
+
f("path", {
|
|
628
628
|
d: "M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",
|
|
629
629
|
fill: "#ff5000",
|
|
630
630
|
"p-id": "4753"
|
|
631
631
|
}),
|
|
632
|
-
|
|
632
|
+
f("path", {
|
|
633
633
|
d: "M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",
|
|
634
634
|
fill: "#ff5000",
|
|
635
635
|
"p-id": "4754"
|
|
@@ -649,52 +649,52 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
649
649
|
}, 16, ["model", "class"]),
|
|
650
650
|
t.needFooter ? (o(), F("div", {
|
|
651
651
|
key: 0,
|
|
652
|
-
class:
|
|
652
|
+
class: Y(n(r).e("footer"))
|
|
653
653
|
}, [
|
|
654
|
-
|
|
655
|
-
class:
|
|
654
|
+
f("div", {
|
|
655
|
+
class: Y(n(r).e("footer__left"))
|
|
656
656
|
}, [
|
|
657
|
-
j(
|
|
657
|
+
j(s.$slots, "form-footer-left", {}, void 0, !0)
|
|
658
658
|
], 2),
|
|
659
|
-
|
|
660
|
-
class:
|
|
659
|
+
f("div", {
|
|
660
|
+
class: Y(n(r).e("footer__right"))
|
|
661
661
|
}, [
|
|
662
|
-
|
|
662
|
+
b.value == "show" ? j(s.$slots, "form-footer-right", {
|
|
663
663
|
key: 0,
|
|
664
664
|
formRef: k.value
|
|
665
665
|
}, () => [
|
|
666
|
-
w(
|
|
666
|
+
w(n(me), {
|
|
667
667
|
type: "primary",
|
|
668
668
|
onClick: H
|
|
669
669
|
}, {
|
|
670
670
|
default: l(() => [
|
|
671
|
-
I(
|
|
671
|
+
I(C(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}),
|
|
675
|
-
w(
|
|
675
|
+
w(n(me), {
|
|
676
676
|
type: "primary",
|
|
677
677
|
onClick: N
|
|
678
678
|
}, {
|
|
679
679
|
default: l(() => [
|
|
680
|
-
I(
|
|
680
|
+
I(C(s.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
681
681
|
]),
|
|
682
682
|
_: 1
|
|
683
683
|
})
|
|
684
684
|
], !0) : B("", !0),
|
|
685
|
-
w(
|
|
685
|
+
w(n(me), {
|
|
686
686
|
type: "primary",
|
|
687
687
|
onClick: L
|
|
688
688
|
}, {
|
|
689
689
|
default: l(() => [
|
|
690
|
-
I(
|
|
690
|
+
I(C(b.value == "show" ? `${s.$t("hbLibComp.hbListPageAct.close")}` : `${s.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
691
691
|
]),
|
|
692
692
|
_: 1
|
|
693
693
|
})
|
|
694
694
|
], 2)
|
|
695
695
|
], 2)) : B("", !0)
|
|
696
696
|
], 2), [
|
|
697
|
-
[
|
|
697
|
+
[st, t.isFormExpanded]
|
|
698
698
|
])
|
|
699
699
|
]),
|
|
700
700
|
_: 3
|
|
@@ -702,14 +702,14 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
702
702
|
w(oe, {
|
|
703
703
|
list: e.value,
|
|
704
704
|
ref_key: "HbSfCmRef",
|
|
705
|
-
ref:
|
|
705
|
+
ref: $,
|
|
706
706
|
onConfirm: x,
|
|
707
|
-
saveKey:
|
|
707
|
+
saveKey: z.value
|
|
708
708
|
}, null, 8, ["list", "saveKey"])
|
|
709
709
|
], 64);
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
}), At = /* @__PURE__ */ ae(Dt, [["__scopeId", "data-v-04ccb514"]]),
|
|
712
|
+
}), At = /* @__PURE__ */ ae(Dt, [["__scopeId", "data-v-04ccb514"]]), zt = le(At), Ot = { class: "hb-lib-list-page-act-box" }, Bt = { class: "hb-lib-list-page-breadcrumb" }, Rt = { class: "hb-lib-list-page-act" }, Pt = {
|
|
713
713
|
key: 0,
|
|
714
714
|
t: "1757915338760",
|
|
715
715
|
class: "icon",
|
|
@@ -736,49 +736,57 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
736
736
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
737
737
|
},
|
|
738
738
|
setup(t) {
|
|
739
|
-
const m =
|
|
740
|
-
const
|
|
741
|
-
let
|
|
742
|
-
if (
|
|
743
|
-
let
|
|
744
|
-
|
|
739
|
+
const m = Oe("HB_LIST_PAGE_CONTAINER"), { isFullscreen: i, toggle: h } = kt(m.PageContainerRef), _ = R(""), g = () => {
|
|
740
|
+
const d = at();
|
|
741
|
+
let b = localStorage.getItem("BreadCrumb") || "[]", e = d?.path;
|
|
742
|
+
if (b !== "[]") {
|
|
743
|
+
let y = JSON.parse(b).find((z) => z.value === e);
|
|
744
|
+
y && (_.value = y.label.replace(/-/g, " / "));
|
|
745
745
|
}
|
|
746
746
|
};
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
})
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
747
|
+
fe(() => {
|
|
748
|
+
g();
|
|
749
|
+
});
|
|
750
|
+
const r = (d) => {
|
|
751
|
+
d.keyCode === 17 && h();
|
|
752
|
+
};
|
|
753
|
+
return fe(() => {
|
|
754
|
+
window.addEventListener("keydown", r);
|
|
755
|
+
}), Be(() => {
|
|
756
|
+
window.removeEventListener("keydown", r);
|
|
757
|
+
}), (d, b) => {
|
|
758
|
+
const e = P("a-tooltip");
|
|
759
|
+
return o(), F("section", Ot, [
|
|
760
|
+
f("aside", Bt, C(_.value), 1),
|
|
761
|
+
f("aside", Rt, [
|
|
762
|
+
w(e, {
|
|
763
|
+
title: n(i) ? `${d.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${d.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
756
764
|
placement: "leftTop"
|
|
757
765
|
}, {
|
|
758
766
|
default: l(() => [
|
|
759
|
-
|
|
767
|
+
f("span", {
|
|
760
768
|
class: "hb-lib-list-page-act-svg",
|
|
761
|
-
onClick:
|
|
762
|
-
(...
|
|
769
|
+
onClick: b[0] || (b[0] = //@ts-ignore
|
|
770
|
+
(...y) => n(h) && n(h)(...y))
|
|
763
771
|
}, [
|
|
764
|
-
|
|
765
|
-
|
|
772
|
+
n(i) ? (o(), F("svg", Nt, [...b[2] || (b[2] = [
|
|
773
|
+
f("path", {
|
|
766
774
|
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",
|
|
767
775
|
fill: "#ff5000",
|
|
768
776
|
"p-id": "23905"
|
|
769
777
|
}, null, -1),
|
|
770
|
-
|
|
778
|
+
f("path", {
|
|
771
779
|
d: "M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",
|
|
772
780
|
fill: "#ff5000",
|
|
773
781
|
"p-id": "23906"
|
|
774
782
|
}, null, -1),
|
|
775
|
-
|
|
783
|
+
f("path", {
|
|
776
784
|
d: "M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",
|
|
777
785
|
fill: "#ff5000",
|
|
778
786
|
"p-id": "23907"
|
|
779
787
|
}, null, -1)
|
|
780
|
-
])])) : (o(), F("svg", Pt, [...
|
|
781
|
-
|
|
788
|
+
])])) : (o(), F("svg", Pt, [...b[1] || (b[1] = [
|
|
789
|
+
f("path", {
|
|
782
790
|
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",
|
|
783
791
|
fill: "#ff5000",
|
|
784
792
|
"p-id": "22886"
|
|
@@ -788,12 +796,12 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
788
796
|
]),
|
|
789
797
|
_: 1
|
|
790
798
|
}, 8, ["title"]),
|
|
791
|
-
j(
|
|
799
|
+
j(d.$slots, "listAct", {}, void 0, !0)
|
|
792
800
|
])
|
|
793
801
|
]);
|
|
794
802
|
};
|
|
795
803
|
}
|
|
796
|
-
}),
|
|
804
|
+
}), Et = /* @__PURE__ */ ae(Ut, [["__scopeId", "data-v-7744c441"]]), Vt = le(Et), Yt = { class: "hb-lib-list-btns-box" }, jt = { class: "hb-lib-list-btns-left" }, Kt = { class: "hb-lib-list-btns-right" }, qt = /* @__PURE__ */ te({
|
|
797
805
|
name: "HbLibListBtnsAct",
|
|
798
806
|
__name: "HbListBtns",
|
|
799
807
|
props: {
|
|
@@ -802,29 +810,34 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
802
810
|
},
|
|
803
811
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
804
812
|
setup(t, { emit: m }) {
|
|
805
|
-
const
|
|
806
|
-
|
|
807
|
-
},
|
|
808
|
-
|
|
813
|
+
const i = m, h = R(!0), _ = () => {
|
|
814
|
+
h.value = !h.value, i("handleOpenOrClose", h.value);
|
|
815
|
+
}, g = () => {
|
|
816
|
+
i("handleReload");
|
|
817
|
+
}, r = (d) => {
|
|
818
|
+
d.keyCode === 16 && _();
|
|
809
819
|
};
|
|
810
|
-
return
|
|
811
|
-
|
|
812
|
-
|
|
820
|
+
return fe(() => {
|
|
821
|
+
window.addEventListener("keydown", r);
|
|
822
|
+
}), Be(() => {
|
|
823
|
+
window.removeEventListener("keydown", r);
|
|
824
|
+
}), (d, b) => {
|
|
825
|
+
const e = P("a-tooltip");
|
|
813
826
|
return o(), F("section", Yt, [
|
|
814
|
-
|
|
815
|
-
j(
|
|
827
|
+
f("aside", jt, [
|
|
828
|
+
j(d.$slots, "btnsLeft", {}, void 0, !0)
|
|
816
829
|
]),
|
|
817
|
-
|
|
818
|
-
t.needReload ? (o(),
|
|
830
|
+
f("aside", Kt, [
|
|
831
|
+
t.needReload ? (o(), O(e, {
|
|
819
832
|
key: 0,
|
|
820
|
-
title:
|
|
833
|
+
title: d.$t("hbLibComp.hbListBtnsAct.reload")
|
|
821
834
|
}, {
|
|
822
835
|
default: l(() => [
|
|
823
|
-
|
|
836
|
+
f("span", {
|
|
824
837
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
825
|
-
onClick:
|
|
826
|
-
}, [...
|
|
827
|
-
|
|
838
|
+
onClick: g
|
|
839
|
+
}, [...b[0] || (b[0] = [
|
|
840
|
+
f("svg", {
|
|
828
841
|
t: "1759041224819",
|
|
829
842
|
class: "icon",
|
|
830
843
|
viewBox: "0 0 1024 1024",
|
|
@@ -834,7 +847,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
834
847
|
width: "200",
|
|
835
848
|
height: "200"
|
|
836
849
|
}, [
|
|
837
|
-
|
|
850
|
+
f("path", {
|
|
838
851
|
d: "M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",
|
|
839
852
|
fill: "#ff5000",
|
|
840
853
|
"p-id": "4203"
|
|
@@ -844,19 +857,19 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
844
857
|
]),
|
|
845
858
|
_: 1
|
|
846
859
|
}, 8, ["title"])) : B("", !0),
|
|
847
|
-
t.needOpenOrClose ? (o(),
|
|
860
|
+
t.needOpenOrClose ? (o(), O(e, {
|
|
848
861
|
key: 1,
|
|
849
|
-
title:
|
|
862
|
+
title: h.value ? `${d.$t("hbLibComp.hbListBtnsAct.close")}` : `${d.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
850
863
|
}, {
|
|
851
864
|
default: l(() => [
|
|
852
|
-
|
|
865
|
+
f("span", {
|
|
853
866
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
854
|
-
onClick:
|
|
867
|
+
onClick: _
|
|
855
868
|
}, [
|
|
856
|
-
|
|
869
|
+
h.value ? (o(), O(n(yt), {
|
|
857
870
|
key: 0,
|
|
858
871
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
859
|
-
})) : (o(),
|
|
872
|
+
})) : (o(), O(n(Ct), {
|
|
860
873
|
key: 1,
|
|
861
874
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
862
875
|
}))
|
|
@@ -864,32 +877,32 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
864
877
|
]),
|
|
865
878
|
_: 1
|
|
866
879
|
}, 8, ["title"])) : B("", !0),
|
|
867
|
-
j(
|
|
880
|
+
j(d.$slots, "btnsRight", {}, void 0, !0)
|
|
868
881
|
])
|
|
869
882
|
]);
|
|
870
883
|
};
|
|
871
884
|
}
|
|
872
|
-
}), Wt = /* @__PURE__ */ ae(
|
|
873
|
-
const { formRef: m, offsetBottom:
|
|
874
|
-
let
|
|
875
|
-
const
|
|
885
|
+
}), Wt = /* @__PURE__ */ ae(qt, [["__scopeId", "data-v-ed1581a9"]]), Jt = le(Wt), Gt = (t = {}) => {
|
|
886
|
+
const { formRef: m, offsetBottom: i = 50, minHeight: h = 300 } = t, _ = R(0);
|
|
887
|
+
let g = null, r = null, d = null, b = null, e = null;
|
|
888
|
+
const y = () => {
|
|
876
889
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
877
890
|
requestAnimationFrame(() => {
|
|
878
|
-
|
|
891
|
+
ve(() => {
|
|
879
892
|
const S = document.querySelector(".ant-table"), x = document.querySelector(".ant-pagination");
|
|
880
893
|
if (S) {
|
|
881
|
-
const L = S.getBoundingClientRect().top,
|
|
882
|
-
let p =
|
|
883
|
-
p <
|
|
894
|
+
const L = S.getBoundingClientRect().top, K = window.innerHeight, u = (x ? x.offsetHeight + 20 : 40) + i;
|
|
895
|
+
let p = K - L - u;
|
|
896
|
+
p < h && (p = h), _.value = p;
|
|
884
897
|
}
|
|
885
898
|
});
|
|
886
899
|
});
|
|
887
900
|
}, 100);
|
|
888
|
-
},
|
|
901
|
+
}, z = () => {
|
|
889
902
|
const S = document.querySelector(".ant-pagination");
|
|
890
903
|
if (S) {
|
|
891
904
|
const x = new MutationObserver(() => {
|
|
892
|
-
|
|
905
|
+
y();
|
|
893
906
|
});
|
|
894
907
|
return x.observe(S, {
|
|
895
908
|
childList: !0,
|
|
@@ -901,16 +914,16 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
901
914
|
return null;
|
|
902
915
|
}, k = () => {
|
|
903
916
|
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
904
|
-
S && (
|
|
917
|
+
S && (g = new ResizeObserver(() => {
|
|
905
918
|
document.querySelectorAll(".ant-tooltip").forEach((L) => {
|
|
906
919
|
L.style.display = "none";
|
|
907
|
-
}),
|
|
908
|
-
}),
|
|
920
|
+
}), y();
|
|
921
|
+
}), g.observe(S));
|
|
909
922
|
}, N = () => {
|
|
910
923
|
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
911
924
|
S && (d = new MutationObserver(() => {
|
|
912
925
|
setTimeout(() => {
|
|
913
|
-
|
|
926
|
+
y();
|
|
914
927
|
}, 100);
|
|
915
928
|
}), d.observe(S, {
|
|
916
929
|
childList: !0,
|
|
@@ -919,31 +932,31 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
919
932
|
attributeFilter: ["style", "class"]
|
|
920
933
|
}));
|
|
921
934
|
}, H = () => {
|
|
922
|
-
|
|
923
|
-
|
|
935
|
+
b && clearTimeout(b), b = setTimeout(() => {
|
|
936
|
+
y();
|
|
924
937
|
}, 100);
|
|
925
|
-
},
|
|
926
|
-
window.addEventListener("resize", H),
|
|
927
|
-
k(), N(),
|
|
938
|
+
}, $ = () => {
|
|
939
|
+
window.addEventListener("resize", H), ve(() => {
|
|
940
|
+
k(), N(), r = z();
|
|
928
941
|
});
|
|
929
942
|
}, a = () => {
|
|
930
|
-
window.removeEventListener("resize", H),
|
|
943
|
+
window.removeEventListener("resize", H), g && g.disconnect(), d && d.disconnect(), r && r.disconnect(), b && clearTimeout(b), e && clearTimeout(e);
|
|
931
944
|
};
|
|
932
945
|
return m && se(
|
|
933
946
|
() => m,
|
|
934
947
|
() => {
|
|
935
948
|
setTimeout(() => {
|
|
936
|
-
|
|
949
|
+
y();
|
|
937
950
|
}, 200);
|
|
938
951
|
},
|
|
939
952
|
{ deep: !0 }
|
|
940
|
-
),
|
|
941
|
-
|
|
942
|
-
}),
|
|
953
|
+
), fe(() => {
|
|
954
|
+
y(), $();
|
|
955
|
+
}), Be(() => {
|
|
943
956
|
a();
|
|
944
957
|
}), {
|
|
945
|
-
tableHeight:
|
|
946
|
-
calTableHeight:
|
|
958
|
+
tableHeight: _,
|
|
959
|
+
calTableHeight: y
|
|
947
960
|
};
|
|
948
961
|
}, Qt = /* @__PURE__ */ te({
|
|
949
962
|
name: "HbLibListPageContainer",
|
|
@@ -955,31 +968,31 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
955
968
|
minHeight: {}
|
|
956
969
|
},
|
|
957
970
|
setup(t) {
|
|
958
|
-
const m = t,
|
|
971
|
+
const m = t, i = it("PageContainerRef"), { calTableHeight: h, tableHeight: _ } = Gt({
|
|
959
972
|
offsetBottom: m.offsetBottom || 20,
|
|
960
973
|
// 底部预留空间
|
|
961
974
|
minHeight: m.minHeight || 300
|
|
962
975
|
// table最小高度 请勿随便修改!!
|
|
963
|
-
}),
|
|
976
|
+
}), g = U(() => _.value);
|
|
964
977
|
return rt("HB_LIST_PAGE_CONTAINER", {
|
|
965
|
-
PageContainerRef:
|
|
978
|
+
PageContainerRef: i,
|
|
966
979
|
// 通过函数访问,
|
|
967
|
-
tableHeight:
|
|
968
|
-
calTableHeight:
|
|
969
|
-
}), (
|
|
980
|
+
tableHeight: _,
|
|
981
|
+
calTableHeight: h
|
|
982
|
+
}), (r, d) => (o(), F("section", {
|
|
970
983
|
class: "hb-lib-list-page-container",
|
|
971
984
|
ref_key: "PageContainerRef",
|
|
972
|
-
ref:
|
|
985
|
+
ref: i
|
|
973
986
|
}, [
|
|
974
|
-
j(
|
|
975
|
-
|
|
987
|
+
j(r.$slots, "header"),
|
|
988
|
+
f("section", {
|
|
976
989
|
class: "list-page-box",
|
|
977
990
|
style: ke({
|
|
978
|
-
"--hb-list-table-height":
|
|
979
|
-
"--hb-list-ttable-height": t.tabelData.length ? "" :
|
|
991
|
+
"--hb-list-table-height": g.value - m.offsetBottom + "px",
|
|
992
|
+
"--hb-list-ttable-height": t.tabelData.length ? "" : g.value - m.offsetBottom + "px"
|
|
980
993
|
})
|
|
981
994
|
}, [
|
|
982
|
-
j(
|
|
995
|
+
j(r.$slots, "default")
|
|
983
996
|
], 4)
|
|
984
997
|
], 512));
|
|
985
998
|
}
|
|
@@ -992,13 +1005,13 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
992
1005
|
}, rl = {
|
|
993
1006
|
key: 1,
|
|
994
1007
|
class: "hb-lib-selector-footer"
|
|
995
|
-
},
|
|
1008
|
+
}, dl = { class: "hb-lib-footer-buttons" }, cl = {
|
|
996
1009
|
key: 2,
|
|
997
1010
|
class: "hb-lib-selector-footer"
|
|
998
1011
|
}, ul = { class: "hb-lib-footer-buttons" }, pl = /* @__PURE__ */ te({
|
|
999
1012
|
name: "HbLibListMultiSelect",
|
|
1000
1013
|
__name: "HbListMultiSelect",
|
|
1001
|
-
props: /* @__PURE__ */
|
|
1014
|
+
props: /* @__PURE__ */ Me({
|
|
1002
1015
|
placeholder: { default: "点击选择" },
|
|
1003
1016
|
searchPlaceholder: { default: "搜索选项" },
|
|
1004
1017
|
width: { default: 600 },
|
|
@@ -1014,160 +1027,160 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1014
1027
|
value: {},
|
|
1015
1028
|
valueModifiers: {}
|
|
1016
1029
|
}),
|
|
1017
|
-
emits: /* @__PURE__ */
|
|
1030
|
+
emits: /* @__PURE__ */ Me(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1018
1031
|
setup(t, { emit: m }) {
|
|
1019
|
-
const
|
|
1020
|
-
if (
|
|
1021
|
-
const v =
|
|
1022
|
-
return
|
|
1023
|
-
}),
|
|
1032
|
+
const i = t, h = m, _ = ot(t, "value"), g = R(!1), r = R(""), d = R([]), b = R(), e = U(() => {
|
|
1033
|
+
if (i.remoteSearch || !r.value) return i.options;
|
|
1034
|
+
const v = r.value.toLowerCase();
|
|
1035
|
+
return i.options.filter((u) => u.label.toLowerCase().includes(v) || u.description?.toLowerCase().includes(v));
|
|
1036
|
+
}), y = U(() => i.prefix ? `${i.prefix.length * 14 + 8}px` : "0px"), z = U(() => e.value.length === 0 ? !1 : e.value.every((v) => d.value.includes(v.value))), k = U(() => {
|
|
1024
1037
|
if (e.value.length === 0) return !1;
|
|
1025
1038
|
const v = e.value.filter((u) => d.value.includes(u.value)).length;
|
|
1026
1039
|
return v > 0 && v < e.value.length;
|
|
1027
1040
|
});
|
|
1028
1041
|
se(
|
|
1029
|
-
() =>
|
|
1042
|
+
() => _.value,
|
|
1030
1043
|
(v) => {
|
|
1031
1044
|
v ? d.value = Array.isArray(v) ? [...v] : [v] : d.value = [];
|
|
1032
1045
|
},
|
|
1033
1046
|
{ immediate: !0 }
|
|
1034
1047
|
), se(
|
|
1035
|
-
() =>
|
|
1048
|
+
() => i.searchValue,
|
|
1036
1049
|
(v) => {
|
|
1037
|
-
|
|
1050
|
+
i.remoteSearch && v !== void 0 && (r.value = v);
|
|
1038
1051
|
},
|
|
1039
1052
|
{ immediate: !0 }
|
|
1040
1053
|
);
|
|
1041
1054
|
const N = (v) => {
|
|
1042
|
-
v && (
|
|
1043
|
-
if (
|
|
1044
|
-
const u =
|
|
1055
|
+
v && (g.value = v, H.value = [...d.value], r.value = "", setTimeout(() => {
|
|
1056
|
+
if (b.value) {
|
|
1057
|
+
const u = b.value.input || b.value.$el?.querySelector("input");
|
|
1045
1058
|
u && u.focus();
|
|
1046
1059
|
}
|
|
1047
1060
|
}, 100));
|
|
1048
|
-
}, H = R([]),
|
|
1049
|
-
d.value = [...H.value],
|
|
1061
|
+
}, H = R([]), $ = () => {
|
|
1062
|
+
d.value = [...H.value], g.value = !1, h("cancel");
|
|
1050
1063
|
}, a = R([]), S = () => {
|
|
1051
|
-
const v =
|
|
1052
|
-
a.value = u, console.log(v, u), H.value = [...d.value],
|
|
1064
|
+
const v = i.multiple ? d.value : d.value[0] || "", u = i.options.filter((p) => d.value.includes(p.value));
|
|
1065
|
+
a.value = u, console.log(v, u), H.value = [...d.value], _.value = v, h("update:value", v), h("change", v, u), h("confirm", v, u), g.value = !1;
|
|
1053
1066
|
}, x = St((v) => {
|
|
1054
|
-
const u = v !== void 0 ? v :
|
|
1055
|
-
|
|
1067
|
+
const u = v !== void 0 ? v : r.value;
|
|
1068
|
+
i.remoteSearch && (h("search", u), h("update:searchValue", u));
|
|
1056
1069
|
}, 300), L = (v) => {
|
|
1057
|
-
if (
|
|
1070
|
+
if (i.multiple) {
|
|
1058
1071
|
const u = new Set(d.value);
|
|
1059
1072
|
u.has(v.value) ? u.delete(v.value) : u.add(v.value), d.value = Array.from(u);
|
|
1060
1073
|
} else
|
|
1061
1074
|
d.value = [v.value], S();
|
|
1062
|
-
},
|
|
1075
|
+
}, K = (v) => {
|
|
1063
1076
|
if (v.target.checked) {
|
|
1064
1077
|
const p = new Set(d.value);
|
|
1065
|
-
e.value.forEach((
|
|
1066
|
-
p.add(
|
|
1078
|
+
e.value.forEach((s) => {
|
|
1079
|
+
p.add(s.value);
|
|
1067
1080
|
}), d.value = Array.from(p);
|
|
1068
1081
|
} else {
|
|
1069
|
-
const p = new Set(e.value.map((
|
|
1070
|
-
d.value = d.value.filter((
|
|
1082
|
+
const p = new Set(e.value.map((s) => s.value));
|
|
1083
|
+
d.value = d.value.filter((s) => !p.has(s));
|
|
1071
1084
|
}
|
|
1072
1085
|
};
|
|
1073
1086
|
return (v, u) => {
|
|
1074
|
-
const p = P("a-tag"),
|
|
1087
|
+
const p = P("a-tag"), s = P("a-input"), T = P("a-checkbox"), E = P("a-radio"), Q = P("a-button"), ie = P("a-select");
|
|
1075
1088
|
return o(), F("div", ee({
|
|
1076
1089
|
class: "hb-lib-selector-wrapper",
|
|
1077
|
-
style: { "--prefix-width":
|
|
1090
|
+
style: { "--prefix-width": y.value }
|
|
1078
1091
|
}, v.$attrs), [
|
|
1079
1092
|
w(ie, {
|
|
1080
|
-
value:
|
|
1081
|
-
"onUpdate:value": u[5] || (u[5] = (J) =>
|
|
1093
|
+
value: _.value,
|
|
1094
|
+
"onUpdate:value": u[5] || (u[5] = (J) => _.value = J),
|
|
1082
1095
|
mode: t.multiple ? "multiple" : void 0,
|
|
1083
1096
|
placeholder: t.placeholder,
|
|
1084
1097
|
"show-search": !0,
|
|
1085
1098
|
"filter-option": !1,
|
|
1086
|
-
open:
|
|
1099
|
+
open: g.value,
|
|
1087
1100
|
allowClear: "",
|
|
1088
1101
|
maxTagCount: t.maxTagCount,
|
|
1089
1102
|
options: e.value,
|
|
1090
1103
|
onDropdownVisibleChange: N,
|
|
1091
|
-
onSearch:
|
|
1104
|
+
onSearch: n(x),
|
|
1092
1105
|
"max-tag-text-length": t.tagTextLength,
|
|
1093
|
-
class:
|
|
1106
|
+
class: Y({ "has-prefix": t.prefix }),
|
|
1094
1107
|
"data-prefix": t.prefix,
|
|
1095
1108
|
style: { width: "100%" }
|
|
1096
1109
|
}, {
|
|
1097
|
-
tagRender: l(({ value: J, label:
|
|
1110
|
+
tagRender: l(({ value: J, label: q, closable: oe, option: M }) => [
|
|
1098
1111
|
w(p, {
|
|
1099
1112
|
class: "hb-lib-search-tag",
|
|
1100
1113
|
onClick: u[0] || (u[0] = () => N(!0))
|
|
1101
1114
|
}, {
|
|
1102
1115
|
default: l(() => [
|
|
1103
|
-
|
|
1104
|
-
|
|
1116
|
+
f("span", Xt, C(q), 1),
|
|
1117
|
+
M?.description ? (o(), F("span", el, " (" + C(M.description) + ") ", 1)) : B("", !0)
|
|
1105
1118
|
]),
|
|
1106
1119
|
_: 2
|
|
1107
1120
|
}, 1024)
|
|
1108
1121
|
]),
|
|
1109
1122
|
dropdownRender: l(({ menuNode: J }) => [
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
w(
|
|
1123
|
+
f("div", tl, [
|
|
1124
|
+
f("div", ll, [
|
|
1125
|
+
w(s, {
|
|
1113
1126
|
ref_key: "searchInputRef",
|
|
1114
|
-
ref:
|
|
1127
|
+
ref: b,
|
|
1115
1128
|
class: "hb-lib-selector-search-input",
|
|
1116
|
-
value:
|
|
1117
|
-
"onUpdate:value": u[1] || (u[1] = (
|
|
1129
|
+
value: r.value,
|
|
1130
|
+
"onUpdate:value": u[1] || (u[1] = (q) => r.value = q),
|
|
1118
1131
|
placeholder: "请输入关键词搜索",
|
|
1119
1132
|
"allow-clear": "",
|
|
1120
|
-
onInput: u[2] || (u[2] = (
|
|
1133
|
+
onInput: u[2] || (u[2] = (q) => n(x)(q.target.value))
|
|
1121
1134
|
}, {
|
|
1122
1135
|
prefix: l(() => [
|
|
1123
|
-
w(
|
|
1136
|
+
w(n(Re))
|
|
1124
1137
|
]),
|
|
1125
1138
|
_: 1
|
|
1126
1139
|
}, 8, ["value"])
|
|
1127
1140
|
]),
|
|
1128
|
-
|
|
1129
|
-
(o(!0), F(
|
|
1130
|
-
key:
|
|
1131
|
-
class:
|
|
1132
|
-
onClick: () => L(
|
|
1141
|
+
f("div", ol, [
|
|
1142
|
+
(o(!0), F(V, null, ne(e.value, (q) => (o(), F("div", {
|
|
1143
|
+
key: q.value,
|
|
1144
|
+
class: Y(["hb-lib-selector-option", { selected: d.value.includes(q.value) }]),
|
|
1145
|
+
onClick: () => L(q)
|
|
1133
1146
|
}, [
|
|
1134
|
-
t.multiple ? (o(),
|
|
1147
|
+
t.multiple ? (o(), O(T, {
|
|
1135
1148
|
key: 0,
|
|
1136
|
-
checked: d.value.includes(
|
|
1137
|
-
onChange: () => L(
|
|
1138
|
-
onClick: u[3] || (u[3] =
|
|
1149
|
+
checked: d.value.includes(q.value),
|
|
1150
|
+
onChange: () => L(q),
|
|
1151
|
+
onClick: u[3] || (u[3] = $e(() => {
|
|
1139
1152
|
}, ["stop"]))
|
|
1140
|
-
}, null, 8, ["checked", "onChange"])) : (o(),
|
|
1153
|
+
}, null, 8, ["checked", "onChange"])) : (o(), O(E, {
|
|
1141
1154
|
key: 1,
|
|
1142
|
-
checked: d.value.includes(
|
|
1143
|
-
onChange: () => L(
|
|
1144
|
-
onClick: u[4] || (u[4] =
|
|
1155
|
+
checked: d.value.includes(q.value),
|
|
1156
|
+
onChange: () => L(q),
|
|
1157
|
+
onClick: u[4] || (u[4] = $e(() => {
|
|
1145
1158
|
}, ["stop"]))
|
|
1146
1159
|
}, null, 8, ["checked", "onChange"])),
|
|
1147
|
-
|
|
1148
|
-
|
|
1160
|
+
f("div", nl, [
|
|
1161
|
+
f("div", sl, C(q.label), 1)
|
|
1149
1162
|
])
|
|
1150
1163
|
], 10, al))), 128))
|
|
1151
1164
|
]),
|
|
1152
|
-
e.value.length === 0 ? (o(), F("div", il,
|
|
1165
|
+
e.value.length === 0 ? (o(), F("div", il, C(v.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : B("", !0),
|
|
1153
1166
|
t.multiple ? (o(), F("div", rl, [
|
|
1154
1167
|
w(T, {
|
|
1155
|
-
checked:
|
|
1168
|
+
checked: z.value,
|
|
1156
1169
|
indeterminate: k.value,
|
|
1157
|
-
onChange:
|
|
1170
|
+
onChange: K
|
|
1158
1171
|
}, {
|
|
1159
1172
|
default: l(() => [
|
|
1160
|
-
I(
|
|
1173
|
+
I(C(v.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1161
1174
|
]),
|
|
1162
1175
|
_: 1
|
|
1163
1176
|
}, 8, ["checked", "indeterminate"]),
|
|
1164
|
-
|
|
1177
|
+
f("div", dl, [
|
|
1165
1178
|
w(Q, {
|
|
1166
1179
|
size: "small",
|
|
1167
|
-
onClick:
|
|
1180
|
+
onClick: $
|
|
1168
1181
|
}, {
|
|
1169
1182
|
default: l(() => [
|
|
1170
|
-
I(
|
|
1183
|
+
I(C(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1171
1184
|
]),
|
|
1172
1185
|
_: 1
|
|
1173
1186
|
}),
|
|
@@ -1177,20 +1190,20 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1177
1190
|
onClick: S
|
|
1178
1191
|
}, {
|
|
1179
1192
|
default: l(() => [
|
|
1180
|
-
I(
|
|
1193
|
+
I(C(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1181
1194
|
]),
|
|
1182
1195
|
_: 1
|
|
1183
1196
|
})
|
|
1184
1197
|
])
|
|
1185
|
-
])) : (o(), F("div",
|
|
1186
|
-
u[6] || (u[6] =
|
|
1187
|
-
|
|
1198
|
+
])) : (o(), F("div", cl, [
|
|
1199
|
+
u[6] || (u[6] = f("div", null, null, -1)),
|
|
1200
|
+
f("div", ul, [
|
|
1188
1201
|
w(Q, {
|
|
1189
1202
|
size: "small",
|
|
1190
|
-
onClick:
|
|
1203
|
+
onClick: $
|
|
1191
1204
|
}, {
|
|
1192
1205
|
default: l(() => [
|
|
1193
|
-
I(
|
|
1206
|
+
I(C(v.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1194
1207
|
]),
|
|
1195
1208
|
_: 1
|
|
1196
1209
|
})
|
|
@@ -1203,7 +1216,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1203
1216
|
], 16);
|
|
1204
1217
|
};
|
|
1205
1218
|
}
|
|
1206
|
-
}),
|
|
1219
|
+
}), hl = /* @__PURE__ */ ae(pl, [["__scopeId", "data-v-87177371"]]), bl = le(hl), ml = { class: "hb-lib-form-item-filter-modal-search" }, fl = { class: "hb-lib-form-item-filter-modal-buttons" }, vl = { key: 0 }, gl = /* @__PURE__ */ te({
|
|
1207
1220
|
name: "HbLibMutilpleSelectModal",
|
|
1208
1221
|
__name: "HbMutilpleSelectModal",
|
|
1209
1222
|
props: {
|
|
@@ -1216,84 +1229,84 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1216
1229
|
labelKey: { default: "label" }
|
|
1217
1230
|
},
|
|
1218
1231
|
emits: ["handleConfirm", "handleCancel"],
|
|
1219
|
-
setup(t, { expose: m, emit:
|
|
1220
|
-
const
|
|
1232
|
+
setup(t, { expose: m, emit: i }) {
|
|
1233
|
+
const h = t, _ = i, g = R(!1), r = R(""), d = R(), b = R(), e = R([]), y = R([]), z = R(), k = Le({
|
|
1221
1234
|
searchText: "",
|
|
1222
1235
|
searchedColumn: ""
|
|
1223
|
-
}), N = U(() =>
|
|
1224
|
-
|
|
1236
|
+
}), N = U(() => h.tableData.map((p) => (p.id = p.id || Math.random(), p))), H = U(() => h.tableColumn.map((p) => (p.customFilterDropdown && (p.onFilter = (s, T) => T[p.dataIndex].toString().toLowerCase().includes(s.toLowerCase()), p.onFilterDropdownVisibleChange = (s) => {
|
|
1237
|
+
s && setTimeout(() => {
|
|
1225
1238
|
d.value?.focus();
|
|
1226
1239
|
}, 100);
|
|
1227
|
-
}), { ...p }))),
|
|
1240
|
+
}), { ...p }))), $ = () => {
|
|
1228
1241
|
let p = "";
|
|
1229
|
-
|
|
1230
|
-
p = p +
|
|
1231
|
-
}),
|
|
1242
|
+
y.value.forEach((s) => {
|
|
1243
|
+
p = p + s[h.labelKey] + ",";
|
|
1244
|
+
}), r.value = p.substring(0, p.length - 1), g.value = !1, _("handleConfirm", y.value);
|
|
1232
1245
|
}, a = () => {
|
|
1233
|
-
|
|
1246
|
+
g.value = !1;
|
|
1234
1247
|
}, S = () => {
|
|
1235
|
-
|
|
1236
|
-
const p =
|
|
1248
|
+
g.value = !0, ve(() => {
|
|
1249
|
+
const p = z.value?.$el?.querySelector(".ant-table-body");
|
|
1237
1250
|
p && (p.scrollTop = 0);
|
|
1238
1251
|
});
|
|
1239
1252
|
}, x = () => {
|
|
1240
|
-
e.value = [],
|
|
1253
|
+
e.value = [], y.value = [];
|
|
1241
1254
|
}, L = () => {
|
|
1242
|
-
|
|
1243
|
-
},
|
|
1244
|
-
|
|
1245
|
-
}, v = (p,
|
|
1246
|
-
p({ confirm: !0 }), k.searchText = "",
|
|
1247
|
-
}, u = (p,
|
|
1248
|
-
e.value = p,
|
|
1255
|
+
r.value = "", x();
|
|
1256
|
+
}, K = (p, s, T) => {
|
|
1257
|
+
s(), k.searchText = p[0], k.searchedColumn = T;
|
|
1258
|
+
}, v = (p, s) => {
|
|
1259
|
+
p({ confirm: !0 }), k.searchText = "", s();
|
|
1260
|
+
}, u = (p, s) => {
|
|
1261
|
+
e.value = p, y.value = s;
|
|
1249
1262
|
};
|
|
1250
1263
|
return m({
|
|
1251
1264
|
resetInputVal: L
|
|
1252
|
-
}), (p,
|
|
1253
|
-
const T = P("a-input"),
|
|
1265
|
+
}), (p, s) => {
|
|
1266
|
+
const T = P("a-input"), E = P("a-button"), Q = P("a-table"), ie = P("a-modal");
|
|
1254
1267
|
return o(), F("div", {
|
|
1255
1268
|
class: "hb-lib-multipleSelectModal-box",
|
|
1256
1269
|
ref_key: "hbMultipSelectModalRef",
|
|
1257
|
-
ref:
|
|
1270
|
+
ref: b
|
|
1258
1271
|
}, [
|
|
1259
1272
|
w(T, {
|
|
1260
1273
|
readonly: "",
|
|
1261
1274
|
onClick: S,
|
|
1262
|
-
value:
|
|
1263
|
-
"onUpdate:value":
|
|
1275
|
+
value: r.value,
|
|
1276
|
+
"onUpdate:value": s[0] || (s[0] = (J) => r.value = J),
|
|
1264
1277
|
placeholder: p.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1265
1278
|
}, {
|
|
1266
1279
|
addonAfter: l(() => [
|
|
1267
|
-
w(
|
|
1280
|
+
w(n(_t), { onClick: S })
|
|
1268
1281
|
]),
|
|
1269
1282
|
_: 1
|
|
1270
1283
|
}, 8, ["value", "placeholder"]),
|
|
1271
1284
|
w(ie, {
|
|
1272
|
-
visible:
|
|
1273
|
-
"onUpdate:visible":
|
|
1285
|
+
visible: g.value,
|
|
1286
|
+
"onUpdate:visible": s[1] || (s[1] = (J) => g.value = J),
|
|
1274
1287
|
title: t.modelTitle,
|
|
1275
1288
|
width: t.modalWidth,
|
|
1276
1289
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1277
1290
|
}, {
|
|
1278
1291
|
footer: l(() => [
|
|
1279
|
-
w(
|
|
1292
|
+
w(E, { onClick: x }, {
|
|
1280
1293
|
default: l(() => [
|
|
1281
|
-
I(
|
|
1294
|
+
I(C(p.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1282
1295
|
]),
|
|
1283
1296
|
_: 1
|
|
1284
1297
|
}),
|
|
1285
|
-
w(
|
|
1298
|
+
w(E, { onClick: a }, {
|
|
1286
1299
|
default: l(() => [
|
|
1287
|
-
I(
|
|
1300
|
+
I(C(p.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1288
1301
|
]),
|
|
1289
1302
|
_: 1
|
|
1290
1303
|
}),
|
|
1291
|
-
w(
|
|
1304
|
+
w(E, {
|
|
1292
1305
|
type: "primary",
|
|
1293
|
-
onClick:
|
|
1306
|
+
onClick: $
|
|
1294
1307
|
}, {
|
|
1295
1308
|
default: l(() => [
|
|
1296
|
-
I(
|
|
1309
|
+
I(C(p.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1297
1310
|
]),
|
|
1298
1311
|
_: 1
|
|
1299
1312
|
})
|
|
@@ -1301,42 +1314,42 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1301
1314
|
default: l(() => [
|
|
1302
1315
|
w(Q, {
|
|
1303
1316
|
ref_key: "tableRef",
|
|
1304
|
-
ref:
|
|
1317
|
+
ref: z,
|
|
1305
1318
|
columns: H.value,
|
|
1306
1319
|
dataSource: N.value,
|
|
1307
1320
|
rowSelection: { selectedRowKeys: e.value, onChange: u },
|
|
1308
1321
|
rowKey: (J) => J[t.tableKey],
|
|
1309
1322
|
scroll: { y: t.tableHeight }
|
|
1310
1323
|
}, {
|
|
1311
|
-
customFilterDropdown: l(({ setSelectedKeys: J, selectedKeys:
|
|
1312
|
-
|
|
1324
|
+
customFilterDropdown: l(({ setSelectedKeys: J, selectedKeys: q, confirm: oe, clearFilters: M, column: ce }) => [
|
|
1325
|
+
f("div", ml, [
|
|
1313
1326
|
w(T, {
|
|
1314
1327
|
ref_key: "searchInput",
|
|
1315
1328
|
ref: d,
|
|
1316
|
-
placeholder: `请输入${
|
|
1317
|
-
value:
|
|
1329
|
+
placeholder: `请输入${ce.title}`,
|
|
1330
|
+
value: q[0],
|
|
1318
1331
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1319
1332
|
onChange: (c) => J(c.target.value ? [c.target.value] : []),
|
|
1320
|
-
onPressEnter: (c) => q
|
|
1333
|
+
onPressEnter: (c) => K(q, oe, ce.dataIndex)
|
|
1321
1334
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1322
|
-
|
|
1323
|
-
w(
|
|
1335
|
+
f("section", fl, [
|
|
1336
|
+
w(E, {
|
|
1324
1337
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1325
1338
|
type: "ghost",
|
|
1326
|
-
onClick: (c) => v(
|
|
1339
|
+
onClick: (c) => v(M, oe)
|
|
1327
1340
|
}, {
|
|
1328
1341
|
default: l(() => [
|
|
1329
|
-
I(
|
|
1342
|
+
I(C(p.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1330
1343
|
]),
|
|
1331
1344
|
_: 1
|
|
1332
1345
|
}, 8, ["onClick"]),
|
|
1333
|
-
w(
|
|
1346
|
+
w(E, {
|
|
1334
1347
|
type: "primary",
|
|
1335
1348
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1336
|
-
onClick: (c) => q
|
|
1349
|
+
onClick: (c) => K(q, oe, ce.dataIndex)
|
|
1337
1350
|
}, {
|
|
1338
1351
|
default: l(() => [
|
|
1339
|
-
I(
|
|
1352
|
+
I(C(p.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1340
1353
|
]),
|
|
1341
1354
|
_: 1
|
|
1342
1355
|
}, 8, ["onClick"])
|
|
@@ -1344,18 +1357,18 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1344
1357
|
])
|
|
1345
1358
|
]),
|
|
1346
1359
|
customFilterIcon: l(({ filtered: J }) => [
|
|
1347
|
-
w(
|
|
1360
|
+
w(n(Re), {
|
|
1348
1361
|
style: ke({ color: J ? "#108ee9" : void 0 })
|
|
1349
1362
|
}, null, 8, ["style"])
|
|
1350
1363
|
]),
|
|
1351
|
-
bodyCell: l(({ text: J, column:
|
|
1352
|
-
k.searchText && k.searchedColumn ===
|
|
1353
|
-
(o(!0), F(
|
|
1364
|
+
bodyCell: l(({ text: J, column: q }) => [
|
|
1365
|
+
k.searchText && k.searchedColumn === q.dataIndex ? (o(), F("span", vl, [
|
|
1366
|
+
(o(!0), F(V, null, ne(J.toString().split(new RegExp(`(?<=${k.searchText})|(?=${k.searchText})`, "i")), (oe, M) => (o(), F(V, null, [
|
|
1354
1367
|
oe.toLowerCase() === k.searchText.toLowerCase() ? (o(), F("mark", {
|
|
1355
|
-
key:
|
|
1368
|
+
key: M,
|
|
1356
1369
|
class: "highlight"
|
|
1357
|
-
},
|
|
1358
|
-
I(
|
|
1370
|
+
}, C(oe), 1)) : (o(), F(V, { key: 1 }, [
|
|
1371
|
+
I(C(oe), 1)
|
|
1359
1372
|
], 64))
|
|
1360
1373
|
], 64))), 256))
|
|
1361
1374
|
])) : B("", !0)
|
|
@@ -1374,7 +1387,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1374
1387
|
}, kl = ["onClick"], Sl = {
|
|
1375
1388
|
href: "javascript:;",
|
|
1376
1389
|
class: "hb-lib-table-more-action"
|
|
1377
|
-
}, wl = ["onClick"], Fl = { href: "javascript:;" }, xl = ["onClick"], Tl = { class: "hb-lib-table-confirm-modal-content" },
|
|
1390
|
+
}, wl = ["onClick"], Fl = { href: "javascript:;" }, xl = ["onClick"], Tl = { class: "hb-lib-table-confirm-modal-content" }, Ml = /* @__PURE__ */ te({
|
|
1378
1391
|
name: "HbLibTableAct",
|
|
1379
1392
|
__name: "HbTableAct",
|
|
1380
1393
|
props: {
|
|
@@ -1383,126 +1396,126 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1383
1396
|
buttonDisplaysQuantity: {}
|
|
1384
1397
|
},
|
|
1385
1398
|
setup(t, { expose: m }) {
|
|
1386
|
-
const
|
|
1387
|
-
|
|
1388
|
-
},
|
|
1389
|
-
|
|
1399
|
+
const i = t, { t: h } = de(), _ = R(!1), g = R(!1), r = R(null), d = U(() => i.actions.filter(($) => $.condition !== void 0 ? $.condition : !0)), b = U(() => d.value.slice(0, i.buttonDisplaysQuantity)), e = U(() => d.value.slice(i.buttonDisplaysQuantity)), y = ($) => {
|
|
1400
|
+
$.handler && $.handler(i.record);
|
|
1401
|
+
}, z = ($) => {
|
|
1402
|
+
r.value = $, _.value = !0;
|
|
1390
1403
|
}, k = () => {
|
|
1391
|
-
if (
|
|
1392
|
-
|
|
1404
|
+
if (r.value) {
|
|
1405
|
+
g.value = !0;
|
|
1393
1406
|
try {
|
|
1394
|
-
|
|
1407
|
+
y(r.value), g.value = !1, _.value = !1;
|
|
1395
1408
|
} catch {
|
|
1396
|
-
|
|
1409
|
+
g.value = !1;
|
|
1397
1410
|
}
|
|
1398
1411
|
}
|
|
1399
1412
|
}, N = () => {
|
|
1400
|
-
|
|
1401
|
-
}, H = U(() =>
|
|
1402
|
-
title:
|
|
1403
|
-
content:
|
|
1413
|
+
_.value = !1, r.value = null;
|
|
1414
|
+
}, H = U(() => r.value ? {
|
|
1415
|
+
title: r.value.confirmTitle,
|
|
1416
|
+
content: r.value.confirmContent || r.value.confirmTitle
|
|
1404
1417
|
} : {
|
|
1405
|
-
title:
|
|
1406
|
-
content:
|
|
1418
|
+
title: h("hbLibComp.hbTableAct.secendConfirm"),
|
|
1419
|
+
content: h("hbLibComp.hbTableAct.confirmContent")
|
|
1407
1420
|
});
|
|
1408
1421
|
return m({
|
|
1409
|
-
ADropdown:
|
|
1410
|
-
AMenu:
|
|
1411
|
-
AMenuItem:
|
|
1422
|
+
ADropdown: Ze,
|
|
1423
|
+
AMenu: Qe,
|
|
1424
|
+
AMenuItem: Ge,
|
|
1412
1425
|
APopconfirm: Te,
|
|
1413
1426
|
AModal: Ie,
|
|
1414
|
-
DownOutlined:
|
|
1415
|
-
}), (
|
|
1416
|
-
const S = P("a-divider"), x =
|
|
1427
|
+
DownOutlined: Xe
|
|
1428
|
+
}), ($, a) => {
|
|
1429
|
+
const S = P("a-divider"), x = dt("has");
|
|
1417
1430
|
return o(), F("div", Cl, [
|
|
1418
|
-
(o(!0), F(
|
|
1419
|
-
L.needConfirm ? (o(), F(
|
|
1420
|
-
L.confirmType === "modal" ? (o(), F(
|
|
1421
|
-
|
|
1431
|
+
(o(!0), F(V, null, ne(b.value, (L, K) => (o(), F(V, { key: K }, [
|
|
1432
|
+
L.needConfirm ? (o(), F(V, { key: 0 }, [
|
|
1433
|
+
L.confirmType === "modal" ? (o(), F(V, { key: 0 }, [
|
|
1434
|
+
he((o(), F("a", {
|
|
1422
1435
|
href: "javascript:;",
|
|
1423
|
-
onClick: (v) =>
|
|
1436
|
+
onClick: (v) => z(L),
|
|
1424
1437
|
class: "hb-lib-table-main-action"
|
|
1425
1438
|
}, [
|
|
1426
|
-
I(
|
|
1439
|
+
I(C(L.label), 1)
|
|
1427
1440
|
], 8, _l)), [
|
|
1428
1441
|
[x, L.permissionsTag || null]
|
|
1429
1442
|
]),
|
|
1430
|
-
e.value && e.value.length > 0 ||
|
|
1443
|
+
e.value && e.value.length > 0 || K !== b.value.length - 1 ? (o(), O(S, {
|
|
1431
1444
|
key: 0,
|
|
1432
1445
|
type: "vertical"
|
|
1433
1446
|
})) : B("", !0)
|
|
1434
|
-
], 64)) : (o(), F(
|
|
1435
|
-
w(
|
|
1447
|
+
], 64)) : (o(), F(V, { key: 1 }, [
|
|
1448
|
+
w(n(Te), {
|
|
1436
1449
|
title: L.confirmTitle,
|
|
1437
|
-
onConfirm: (v) =>
|
|
1450
|
+
onConfirm: (v) => y(L)
|
|
1438
1451
|
}, {
|
|
1439
1452
|
default: l(() => [
|
|
1440
|
-
|
|
1441
|
-
I(
|
|
1453
|
+
he((o(), F("a", Ll, [
|
|
1454
|
+
I(C(L.label), 1)
|
|
1442
1455
|
])), [
|
|
1443
1456
|
[x, L.permissionsTag || null]
|
|
1444
1457
|
])
|
|
1445
1458
|
]),
|
|
1446
1459
|
_: 2
|
|
1447
1460
|
}, 1032, ["title", "onConfirm"]),
|
|
1448
|
-
e.value && e.value.length > 0 ||
|
|
1461
|
+
e.value && e.value.length > 0 || K !== b.value.length - 1 ? (o(), O(S, {
|
|
1449
1462
|
key: 0,
|
|
1450
1463
|
type: "vertical"
|
|
1451
1464
|
})) : B("", !0)
|
|
1452
1465
|
], 64))
|
|
1453
|
-
], 64)) : (o(), F(
|
|
1454
|
-
|
|
1466
|
+
], 64)) : (o(), F(V, { key: 1 }, [
|
|
1467
|
+
he((o(), F("a", {
|
|
1455
1468
|
href: "javascript:;",
|
|
1456
|
-
onClick: (v) =>
|
|
1469
|
+
onClick: (v) => y(L),
|
|
1457
1470
|
class: "hb-lib-table-main-action"
|
|
1458
1471
|
}, [
|
|
1459
|
-
I(
|
|
1472
|
+
I(C(L.label), 1)
|
|
1460
1473
|
], 8, kl)), [
|
|
1461
1474
|
[x, L.permissionsTag || null]
|
|
1462
1475
|
]),
|
|
1463
|
-
e.value && e.value.length > 0 ||
|
|
1476
|
+
e.value && e.value.length > 0 || K !== b.value.length - 1 ? (o(), O(S, {
|
|
1464
1477
|
key: 0,
|
|
1465
1478
|
type: "vertical"
|
|
1466
1479
|
})) : B("", !0)
|
|
1467
1480
|
], 64))
|
|
1468
1481
|
], 64))), 128)),
|
|
1469
|
-
e.value && e.value.length > 0 ? (o(),
|
|
1482
|
+
e.value && e.value.length > 0 ? (o(), O(n(Ze), { key: 0 }, {
|
|
1470
1483
|
overlay: l(() => [
|
|
1471
|
-
w(
|
|
1484
|
+
w(n(Qe), null, {
|
|
1472
1485
|
default: l(() => [
|
|
1473
|
-
(o(!0), F(
|
|
1486
|
+
(o(!0), F(V, null, ne(e.value, (L) => (o(), O(n(Ge), {
|
|
1474
1487
|
key: L.key
|
|
1475
1488
|
}, {
|
|
1476
1489
|
default: l(() => [
|
|
1477
|
-
L.needConfirm ? (o(), F(
|
|
1478
|
-
L.confirmType === "modal" ?
|
|
1490
|
+
L.needConfirm ? (o(), F(V, { key: 0 }, [
|
|
1491
|
+
L.confirmType === "modal" ? he((o(), F("a", {
|
|
1479
1492
|
key: 0,
|
|
1480
1493
|
href: "javascript:;",
|
|
1481
|
-
onClick: (
|
|
1494
|
+
onClick: (K) => z(L)
|
|
1482
1495
|
}, [
|
|
1483
|
-
I(
|
|
1496
|
+
I(C(L.label), 1)
|
|
1484
1497
|
], 8, wl)), [
|
|
1485
1498
|
[x, L.permissionsTag || null]
|
|
1486
|
-
]) : (o(),
|
|
1499
|
+
]) : (o(), O(n(Te), {
|
|
1487
1500
|
key: 1,
|
|
1488
1501
|
title: L.confirmTitle,
|
|
1489
|
-
onConfirm: (
|
|
1502
|
+
onConfirm: (K) => y(L)
|
|
1490
1503
|
}, {
|
|
1491
1504
|
default: l(() => [
|
|
1492
|
-
|
|
1493
|
-
I(
|
|
1505
|
+
he((o(), F("a", Fl, [
|
|
1506
|
+
I(C(L.label), 1)
|
|
1494
1507
|
])), [
|
|
1495
1508
|
[x, L.permissionsTag || null]
|
|
1496
1509
|
])
|
|
1497
1510
|
]),
|
|
1498
1511
|
_: 2
|
|
1499
1512
|
}, 1032, ["title", "onConfirm"]))
|
|
1500
|
-
], 64)) :
|
|
1513
|
+
], 64)) : he((o(), F("a", {
|
|
1501
1514
|
key: 1,
|
|
1502
1515
|
href: "javascript:;",
|
|
1503
|
-
onClick: (
|
|
1516
|
+
onClick: (K) => y(L)
|
|
1504
1517
|
}, [
|
|
1505
|
-
I(
|
|
1518
|
+
I(C(L.label), 1)
|
|
1506
1519
|
], 8, xl)), [
|
|
1507
1520
|
[x, L.permissionsTag || null]
|
|
1508
1521
|
])
|
|
@@ -1514,35 +1527,35 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1514
1527
|
})
|
|
1515
1528
|
]),
|
|
1516
1529
|
default: l(() => [
|
|
1517
|
-
|
|
1518
|
-
I(
|
|
1519
|
-
w(
|
|
1530
|
+
f("a", Sl, [
|
|
1531
|
+
I(C($.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1532
|
+
w(n(Xe), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1520
1533
|
])
|
|
1521
1534
|
]),
|
|
1522
1535
|
_: 1
|
|
1523
1536
|
})) : B("", !0),
|
|
1524
|
-
w(
|
|
1525
|
-
visible:
|
|
1537
|
+
w(n(Ie), {
|
|
1538
|
+
visible: _.value,
|
|
1526
1539
|
title: H.value.title,
|
|
1527
|
-
"confirm-loading":
|
|
1540
|
+
"confirm-loading": g.value,
|
|
1528
1541
|
onOk: k,
|
|
1529
1542
|
onCancel: N
|
|
1530
1543
|
}, {
|
|
1531
1544
|
default: l(() => [
|
|
1532
|
-
|
|
1545
|
+
f("p", Tl, C(H.value.content), 1)
|
|
1533
1546
|
]),
|
|
1534
1547
|
_: 1
|
|
1535
1548
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1536
1549
|
]);
|
|
1537
1550
|
};
|
|
1538
1551
|
}
|
|
1539
|
-
}),
|
|
1540
|
-
const
|
|
1541
|
-
return !
|
|
1552
|
+
}), $l = /* @__PURE__ */ ae(Ml, [["__scopeId", "data-v-a96574fa"]]), Il = le($l), Hl = (t) => ({ tableWidth: U(() => {
|
|
1553
|
+
const i = Array.isArray(t) ? t : t.value;
|
|
1554
|
+
return !i || i.length === 0 ? 0 : i.map((h) => h.width && Number(h.width.toString().replace("px", "")) || 0).reduce((h, _) => h + _, 0);
|
|
1542
1555
|
}) }), Dl = {
|
|
1543
1556
|
key: 0,
|
|
1544
1557
|
class: "hb-lib-list-table-act"
|
|
1545
|
-
}, Al = { class: "empty-container" },
|
|
1558
|
+
}, Al = { class: "empty-container" }, zl = /* @__PURE__ */ te({
|
|
1546
1559
|
name: "HbLibListTable",
|
|
1547
1560
|
__name: "HbListTable",
|
|
1548
1561
|
props: {
|
|
@@ -1552,18 +1565,18 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1552
1565
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1553
1566
|
},
|
|
1554
1567
|
setup(t) {
|
|
1555
|
-
const { t: m } =
|
|
1568
|
+
const { t: m } = de(), i = t, h = R([]), _ = Oe("HB_LIST_PAGE_CONTAINER"), { tableWidth: g } = Hl(U(() => i.columns));
|
|
1556
1569
|
se(
|
|
1557
|
-
() =>
|
|
1570
|
+
() => i.columns,
|
|
1558
1571
|
(e) => {
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1561
|
-
let k = { ...
|
|
1572
|
+
const y = e.filter((z) => z != null && z.checked);
|
|
1573
|
+
h.value = y.map((z) => {
|
|
1574
|
+
let k = { ...z, title: z.title || z.label };
|
|
1562
1575
|
if (k.ellipsis && !k.needTooltip && (k.needTooltip = !0), !k.width)
|
|
1563
|
-
k.width =
|
|
1576
|
+
k.width = i.defaultWidth;
|
|
1564
1577
|
else if (typeof k.width == "string") {
|
|
1565
1578
|
const N = parseInt(k.width, 10);
|
|
1566
|
-
k.width = isNaN(N) ?
|
|
1579
|
+
k.width = isNaN(N) ? i.defaultWidth : N;
|
|
1567
1580
|
}
|
|
1568
1581
|
return k.resizable === void 0 && (k.resizable = !0), k;
|
|
1569
1582
|
});
|
|
@@ -1573,35 +1586,35 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1573
1586
|
deep: !0
|
|
1574
1587
|
}
|
|
1575
1588
|
);
|
|
1576
|
-
const
|
|
1577
|
-
if (
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1589
|
+
const r = (e, y) => {
|
|
1590
|
+
if (y) {
|
|
1591
|
+
const z = typeof e == "string" ? parseInt(e, 10) : e;
|
|
1592
|
+
y.width = isNaN(z) ? 150 : z;
|
|
1580
1593
|
}
|
|
1581
|
-
}, d = (e,
|
|
1582
|
-
return (e,
|
|
1583
|
-
const
|
|
1594
|
+
}, d = (e, y = "YYYY-MM-DD HH:mm:ss") => e ? Se(e).format(y) : "", b = (e, y) => e && y[e] || "";
|
|
1595
|
+
return (e, y) => {
|
|
1596
|
+
const z = P("a-empty"), k = P("a-tooltip"), N = P("HbLibCopy"), H = P("a-tag"), $ = P("a-table");
|
|
1584
1597
|
return o(), F("div", {
|
|
1585
|
-
class:
|
|
1598
|
+
class: Y(["hb-lib-list-table", { "nowrap-table": i.rowHeight }]),
|
|
1586
1599
|
style: ke({ "--hb-lib-table-td-height": t.rowHeight && t.rowHeight + "px" || "" })
|
|
1587
1600
|
}, [
|
|
1588
1601
|
e.$slots.tableActLeft ? (o(), F("section", Dl, [
|
|
1589
1602
|
j(e.$slots, "tableActLeft", {}, void 0, !0),
|
|
1590
1603
|
j(e.$slots, "tableActRight", {}, void 0, !0)
|
|
1591
1604
|
])) : B("", !0),
|
|
1592
|
-
w(
|
|
1605
|
+
w($, ee(e.$attrs, {
|
|
1593
1606
|
bordered: "",
|
|
1594
|
-
columns:
|
|
1595
|
-
onResizeColumn:
|
|
1607
|
+
columns: h.value,
|
|
1608
|
+
onResizeColumn: r,
|
|
1596
1609
|
scroll: {
|
|
1597
|
-
x:
|
|
1598
|
-
y:
|
|
1610
|
+
x: n(g),
|
|
1611
|
+
y: n(_).tableHeight
|
|
1599
1612
|
}
|
|
1600
|
-
}),
|
|
1613
|
+
}), lt({
|
|
1601
1614
|
emptyText: l(() => [
|
|
1602
|
-
|
|
1603
|
-
w(
|
|
1604
|
-
description:
|
|
1615
|
+
f("div", Al, [
|
|
1616
|
+
w(z, {
|
|
1617
|
+
description: n(m)("hbLibComp.hbListTable.noData")
|
|
1605
1618
|
}, null, 8, ["description"])
|
|
1606
1619
|
])
|
|
1607
1620
|
]),
|
|
@@ -1611,7 +1624,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1611
1624
|
name: "headerCell",
|
|
1612
1625
|
fn: l(({ column: a }) => [
|
|
1613
1626
|
j(e.$slots, "headerCell", { column: a }, () => [
|
|
1614
|
-
I(
|
|
1627
|
+
I(C(a.title), 1)
|
|
1615
1628
|
], !0)
|
|
1616
1629
|
]),
|
|
1617
1630
|
key: "0"
|
|
@@ -1625,33 +1638,33 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1625
1638
|
index: x,
|
|
1626
1639
|
text: L
|
|
1627
1640
|
}, void 0, !0),
|
|
1628
|
-
a && a.needTooltip ? (o(),
|
|
1641
|
+
a && a.needTooltip ? (o(), O(k, {
|
|
1629
1642
|
key: 0,
|
|
1630
1643
|
placement: t.tooltipPlacement
|
|
1631
1644
|
}, {
|
|
1632
1645
|
title: l(() => [
|
|
1633
|
-
I(
|
|
1646
|
+
I(C(S[a.dataIndex]), 1)
|
|
1634
1647
|
]),
|
|
1635
1648
|
default: l(() => [
|
|
1636
|
-
I(" " +
|
|
1649
|
+
I(" " + C(S[a.dataIndex]), 1)
|
|
1637
1650
|
]),
|
|
1638
1651
|
_: 2
|
|
1639
1652
|
}, 1032, ["placement"])) : B("", !0),
|
|
1640
|
-
a && a.needCopy ? (o(),
|
|
1653
|
+
a && a.needCopy ? (o(), O(N, {
|
|
1641
1654
|
key: 1,
|
|
1642
1655
|
"cp-text": S[a.dataIndex],
|
|
1643
1656
|
style: { position: "relative" }
|
|
1644
1657
|
}, null, 8, ["cp-text"])) : B("", !0),
|
|
1645
|
-
a && a.needFormat ? (o(), F(
|
|
1646
|
-
I(
|
|
1658
|
+
a && a.needFormat ? (o(), F(V, { key: 2 }, [
|
|
1659
|
+
I(C(d(S[a.dataIndex], a.format)), 1)
|
|
1647
1660
|
], 64)) : B("", !0),
|
|
1648
|
-
a && a.tags ? (o(), F(
|
|
1649
|
-
|
|
1661
|
+
a && a.tags ? (o(), F(V, { key: 3 }, [
|
|
1662
|
+
b(S[a.dataIndex], a.tags) ? (o(), O(H, {
|
|
1650
1663
|
key: 0,
|
|
1651
|
-
color:
|
|
1664
|
+
color: b(S[a.dataIndex], a.tags)
|
|
1652
1665
|
}, {
|
|
1653
1666
|
default: l(() => [
|
|
1654
|
-
I(
|
|
1667
|
+
I(C(S[a.dataIndex]), 1)
|
|
1655
1668
|
]),
|
|
1656
1669
|
_: 2
|
|
1657
1670
|
}, 1032, ["color"])) : B("", !0)
|
|
@@ -1759,13 +1772,13 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1759
1772
|
], 6);
|
|
1760
1773
|
};
|
|
1761
1774
|
}
|
|
1762
|
-
}),
|
|
1775
|
+
}), Ol = /* @__PURE__ */ ae(zl, [["__scopeId", "data-v-f3061eae"]]), Bl = le(Ol), Rl = { class: "hb-lib-table-setting-box" }, Pl = {
|
|
1763
1776
|
key: 0,
|
|
1764
1777
|
class: "hb-lib-table-drag-item"
|
|
1765
1778
|
}, Nl = {
|
|
1766
1779
|
key: 0,
|
|
1767
1780
|
class: "hb-lib-table-drag-item-act"
|
|
1768
|
-
}, Ul = ["onClick"],
|
|
1781
|
+
}, Ul = ["onClick"], El = ["onClick"], Vl = { class: "hb-lib-table-set-btn-group" }, Yl = {
|
|
1769
1782
|
class: "select-all-container",
|
|
1770
1783
|
style: { "margin-right": "10px" }
|
|
1771
1784
|
}, jl = /* @__PURE__ */ te({
|
|
@@ -1801,63 +1814,63 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1801
1814
|
},
|
|
1802
1815
|
emits: ["on-get-columns"],
|
|
1803
1816
|
setup(t, { emit: m }) {
|
|
1804
|
-
const
|
|
1817
|
+
const i = m, { t: h } = de(), _ = t, g = R([]), r = U(() => b.value.filter((v) => v.checked));
|
|
1805
1818
|
R([]);
|
|
1806
|
-
const d = R(!1),
|
|
1819
|
+
const d = R(!1), b = R([]), e = R(null), y = U(() => r.value.length > 0 && r.value.length === g.value.length), z = U(() => r.value.length > 0 && r.value.length < g.value.length), k = (v) => {
|
|
1807
1820
|
e.value = v.oldIndex;
|
|
1808
1821
|
}, N = (v) => {
|
|
1809
1822
|
const u = v.newIndex;
|
|
1810
|
-
if (
|
|
1811
|
-
const
|
|
1812
|
-
if ((
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1823
|
+
if (g.value.some((s) => s.fixed === "left" || s.fixed === "right" || s.fixed === !0)) {
|
|
1824
|
+
const s = g.value.filter((E) => E.fixed === "left").length, T = g.value.length - g.value.filter((E) => E.fixed === "right").length;
|
|
1825
|
+
if ((s > 0 && u < s || T < g.value.length && u >= T) && (ze.warning(h("hbLibComp.hbLibListTableColumsSet.errorTip")), e.value !== null)) {
|
|
1826
|
+
const E = b.value.splice(u, 1)[0];
|
|
1827
|
+
b.value.splice(e.value, 0, E);
|
|
1815
1828
|
}
|
|
1816
1829
|
}
|
|
1817
1830
|
e.value = null;
|
|
1818
1831
|
}, H = (v) => {
|
|
1819
|
-
v.target.checked ?
|
|
1820
|
-
},
|
|
1832
|
+
v.target.checked ? b.value.forEach((p) => p.checked = !0) : b.value.forEach((p) => p.checked = !1);
|
|
1833
|
+
}, $ = (v, u) => {
|
|
1821
1834
|
u ? v.checked = !0 : v.checked = !1;
|
|
1822
1835
|
}, a = () => {
|
|
1823
|
-
|
|
1836
|
+
g.value = [...b.value], i("on-get-columns", g.value), d.value = !1;
|
|
1824
1837
|
}, S = () => {
|
|
1825
|
-
|
|
1838
|
+
g.value = _.tableColumns.map((u) => ({
|
|
1826
1839
|
...u,
|
|
1827
1840
|
label: u.title && u.title.tag ? x(u.title) : u.title || u.title2,
|
|
1828
1841
|
value: u.dataIndex,
|
|
1829
1842
|
checked: u.checked || u.checked === void 0
|
|
1830
|
-
})),
|
|
1843
|
+
})), b.value = [...g.value];
|
|
1831
1844
|
let v = [];
|
|
1832
|
-
|
|
1845
|
+
_.tableColumns.forEach(function(u) {
|
|
1833
1846
|
v.push(u.dataIndex);
|
|
1834
1847
|
});
|
|
1835
1848
|
}, x = (v) => v.children[0].text, L = (v) => {
|
|
1836
1849
|
delete v.fixed;
|
|
1837
|
-
const u =
|
|
1850
|
+
const u = b.value.findIndex((p) => p.value === v.value);
|
|
1838
1851
|
if (u !== -1) {
|
|
1839
1852
|
let p = -1;
|
|
1840
|
-
for (let
|
|
1841
|
-
|
|
1853
|
+
for (let s = 0; s < b.value.length; s++)
|
|
1854
|
+
b.value[s].fixed === "left" && (p = s);
|
|
1842
1855
|
if (p !== -1 && u !== p + 1) {
|
|
1843
|
-
const
|
|
1844
|
-
|
|
1856
|
+
const s = [...b.value], [T] = s.splice(u, 1);
|
|
1857
|
+
s.splice(p + 1, 0, T), b.value = s;
|
|
1845
1858
|
}
|
|
1846
1859
|
}
|
|
1847
|
-
},
|
|
1848
|
-
const u =
|
|
1860
|
+
}, K = (v) => {
|
|
1861
|
+
const u = b.value.findIndex((p) => p.value === v.value);
|
|
1849
1862
|
if (u !== -1) {
|
|
1850
1863
|
let p = -1;
|
|
1851
|
-
for (let Q = 0; Q <
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1864
|
+
for (let Q = 0; Q < b.value.length; Q++)
|
|
1865
|
+
b.value[Q].fixed === "left" && (p = Q);
|
|
1866
|
+
const s = [...b.value], [T] = s.splice(u, 1);
|
|
1854
1867
|
T.fixed = "left";
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1868
|
+
const E = p === -1 ? 0 : p + 1;
|
|
1869
|
+
s.splice(E, 0, T), b.value = s;
|
|
1857
1870
|
}
|
|
1858
1871
|
};
|
|
1859
1872
|
return se(
|
|
1860
|
-
() =>
|
|
1873
|
+
() => _.tableColumns,
|
|
1861
1874
|
() => {
|
|
1862
1875
|
S();
|
|
1863
1876
|
},
|
|
@@ -1866,10 +1879,10 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1866
1879
|
deep: !0
|
|
1867
1880
|
}
|
|
1868
1881
|
), (v, u) => {
|
|
1869
|
-
const p = P("a-tooltip"),
|
|
1882
|
+
const p = P("a-tooltip"), s = P("a-button");
|
|
1870
1883
|
return o(), F("div", Rl, [
|
|
1871
|
-
w(
|
|
1872
|
-
title:
|
|
1884
|
+
w(n(ft), {
|
|
1885
|
+
title: n(h)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1873
1886
|
trigger: "click",
|
|
1874
1887
|
placement: "leftTop",
|
|
1875
1888
|
overlayClassName: "column_setting_popover",
|
|
@@ -1877,9 +1890,9 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1877
1890
|
"onUpdate:visible": u[1] || (u[1] = (T) => d.value = T)
|
|
1878
1891
|
}, {
|
|
1879
1892
|
content: l(() => [
|
|
1880
|
-
w(
|
|
1881
|
-
modelValue:
|
|
1882
|
-
"onUpdate:modelValue": u[0] || (u[0] = (T) =>
|
|
1893
|
+
w(n(Ce), {
|
|
1894
|
+
modelValue: b.value,
|
|
1895
|
+
"onUpdate:modelValue": u[0] || (u[0] = (T) => b.value = T),
|
|
1883
1896
|
"item-key": "value",
|
|
1884
1897
|
class: "hb-lib-table-set-drag",
|
|
1885
1898
|
"ghost-class": "ghost",
|
|
@@ -1890,29 +1903,29 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1890
1903
|
}, {
|
|
1891
1904
|
item: l(({ element: T }) => [
|
|
1892
1905
|
T.fixed !== "right" ? (o(), F("div", Pl, [
|
|
1893
|
-
w(
|
|
1906
|
+
w(n(_e), {
|
|
1894
1907
|
checked: T.checked,
|
|
1895
|
-
onChange: (
|
|
1908
|
+
onChange: (E) => $(T, E.target.checked)
|
|
1896
1909
|
}, {
|
|
1897
1910
|
default: l(() => [
|
|
1898
|
-
I(
|
|
1911
|
+
I(C(T.label), 1)
|
|
1899
1912
|
]),
|
|
1900
1913
|
_: 2
|
|
1901
1914
|
}, 1032, ["checked", "onChange"]),
|
|
1902
1915
|
T.checked ? (o(), F("section", Nl, [
|
|
1903
|
-
|
|
1904
|
-
class:
|
|
1916
|
+
f("span", {
|
|
1917
|
+
class: Y(T.fixed ? "drag-hide" : "drag-handle")
|
|
1905
1918
|
}, "⋮⋮", 2),
|
|
1906
|
-
T.fixed ? (o(),
|
|
1919
|
+
T.fixed ? (o(), O(p, { key: 0 }, {
|
|
1907
1920
|
title: l(() => [
|
|
1908
|
-
I(
|
|
1921
|
+
I(C(n(h)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1909
1922
|
]),
|
|
1910
1923
|
default: l(() => [
|
|
1911
|
-
|
|
1924
|
+
f("span", {
|
|
1912
1925
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1913
|
-
onClick: (
|
|
1926
|
+
onClick: (E) => L(T)
|
|
1914
1927
|
}, [...u[2] || (u[2] = [
|
|
1915
|
-
|
|
1928
|
+
f("svg", {
|
|
1916
1929
|
t: "1759048615600",
|
|
1917
1930
|
class: "icon",
|
|
1918
1931
|
viewBox: "0 0 1024 1024",
|
|
@@ -1922,7 +1935,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1922
1935
|
width: "200",
|
|
1923
1936
|
height: "200"
|
|
1924
1937
|
}, [
|
|
1925
|
-
|
|
1938
|
+
f("path", {
|
|
1926
1939
|
d: "M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z",
|
|
1927
1940
|
"p-id": "7284",
|
|
1928
1941
|
fill: "#ff5000"
|
|
@@ -1932,16 +1945,16 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1932
1945
|
]),
|
|
1933
1946
|
_: 2
|
|
1934
1947
|
}, 1024)) : B("", !0),
|
|
1935
|
-
T.fixed ? B("", !0) : (o(),
|
|
1948
|
+
T.fixed ? B("", !0) : (o(), O(p, { key: 1 }, {
|
|
1936
1949
|
title: l(() => [
|
|
1937
|
-
I(
|
|
1950
|
+
I(C(n(h)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1938
1951
|
]),
|
|
1939
1952
|
default: l(() => [
|
|
1940
|
-
|
|
1953
|
+
f("span", {
|
|
1941
1954
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1942
|
-
onClick: (
|
|
1955
|
+
onClick: (E) => K(T)
|
|
1943
1956
|
}, [...u[3] || (u[3] = [
|
|
1944
|
-
|
|
1957
|
+
f("svg", {
|
|
1945
1958
|
t: "1759048735643",
|
|
1946
1959
|
class: "icon",
|
|
1947
1960
|
viewBox: "0 0 1024 1024",
|
|
@@ -1951,13 +1964,13 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1951
1964
|
width: "200",
|
|
1952
1965
|
height: "200"
|
|
1953
1966
|
}, [
|
|
1954
|
-
|
|
1967
|
+
f("path", {
|
|
1955
1968
|
d: "M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z",
|
|
1956
1969
|
"p-id": "7482",
|
|
1957
1970
|
fill: "#ff5000"
|
|
1958
1971
|
})
|
|
1959
1972
|
], -1)
|
|
1960
|
-
])], 8,
|
|
1973
|
+
])], 8, El)
|
|
1961
1974
|
]),
|
|
1962
1975
|
_: 2
|
|
1963
1976
|
}, 1024))
|
|
@@ -1966,25 +1979,25 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1966
1979
|
]),
|
|
1967
1980
|
_: 1
|
|
1968
1981
|
}, 8, ["modelValue"]),
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
w(
|
|
1972
|
-
checked:
|
|
1973
|
-
indeterminate:
|
|
1982
|
+
f("div", Vl, [
|
|
1983
|
+
f("div", Yl, [
|
|
1984
|
+
w(n(_e), {
|
|
1985
|
+
checked: y.value,
|
|
1986
|
+
indeterminate: z.value,
|
|
1974
1987
|
onChange: H
|
|
1975
1988
|
}, {
|
|
1976
1989
|
default: l(() => [
|
|
1977
|
-
I(
|
|
1990
|
+
I(C(n(h)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1978
1991
|
]),
|
|
1979
1992
|
_: 1
|
|
1980
1993
|
}, 8, ["checked", "indeterminate"])
|
|
1981
1994
|
]),
|
|
1982
|
-
w(
|
|
1995
|
+
w(s, {
|
|
1983
1996
|
onClick: a,
|
|
1984
1997
|
type: "primary"
|
|
1985
1998
|
}, {
|
|
1986
1999
|
default: l(() => [
|
|
1987
|
-
I(
|
|
2000
|
+
I(C(n(h)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1988
2001
|
]),
|
|
1989
2002
|
_: 1
|
|
1990
2003
|
})
|
|
@@ -1992,12 +2005,12 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
1992
2005
|
]),
|
|
1993
2006
|
default: l(() => [
|
|
1994
2007
|
w(p, {
|
|
1995
|
-
title:
|
|
2008
|
+
title: n(h)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1996
2009
|
placement: "leftTop"
|
|
1997
2010
|
}, {
|
|
1998
2011
|
default: l(() => [...u[4] || (u[4] = [
|
|
1999
|
-
|
|
2000
|
-
|
|
2012
|
+
f("span", { class: "hb-lib-table-col-set" }, [
|
|
2013
|
+
f("svg", {
|
|
2001
2014
|
t: "1759041858618",
|
|
2002
2015
|
class: "icon",
|
|
2003
2016
|
viewBox: "0 0 1024 1024",
|
|
@@ -2007,12 +2020,12 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2007
2020
|
width: "200",
|
|
2008
2021
|
height: "200"
|
|
2009
2022
|
}, [
|
|
2010
|
-
|
|
2023
|
+
f("path", {
|
|
2011
2024
|
d: "M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z",
|
|
2012
2025
|
"p-id": "5220",
|
|
2013
2026
|
fill: "#ff5000"
|
|
2014
2027
|
}),
|
|
2015
|
-
|
|
2028
|
+
f("path", {
|
|
2016
2029
|
d: "M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z",
|
|
2017
2030
|
"p-id": "5221",
|
|
2018
2031
|
fill: "#ff5000"
|
|
@@ -2028,23 +2041,23 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2028
2041
|
]);
|
|
2029
2042
|
};
|
|
2030
2043
|
}
|
|
2031
|
-
}),
|
|
2044
|
+
}), Kl = /* @__PURE__ */ ae(jl, [["__scopeId", "data-v-772844f6"]]), ql = le(Kl), Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2032
2045
|
__proto__: null,
|
|
2033
2046
|
HbLibFormItemFilterModal: It,
|
|
2034
2047
|
HbLibListBtnsAct: Jt,
|
|
2035
|
-
HbLibListForm:
|
|
2036
|
-
HbLibListMultiSelect:
|
|
2037
|
-
HbLibListPageAct:
|
|
2048
|
+
HbLibListForm: zt,
|
|
2049
|
+
HbLibListMultiSelect: bl,
|
|
2050
|
+
HbLibListPageAct: Vt,
|
|
2038
2051
|
HbLibListPageContainer: Zt,
|
|
2039
2052
|
HbLibListTable: Bl,
|
|
2040
2053
|
HbLibMutilpleSelectModal: yl,
|
|
2041
2054
|
HbLibTableAct: Il,
|
|
2042
|
-
HbLibTableColumnSet:
|
|
2055
|
+
HbLibTableColumnSet: ql
|
|
2043
2056
|
}, Symbol.toStringTag, { value: "Module" })), Jl = /* @__PURE__ */ te({
|
|
2044
2057
|
name: "HbLibFormTooltipSelect",
|
|
2045
2058
|
inheritAttrs: !1,
|
|
2046
2059
|
__name: "HbTooltipSelect",
|
|
2047
|
-
props: /* @__PURE__ */
|
|
2060
|
+
props: /* @__PURE__ */ Me({
|
|
2048
2061
|
options: { default: () => [] },
|
|
2049
2062
|
tooltipPlacement: { default: "right" },
|
|
2050
2063
|
tooltipMaxWidth: { default: 280 },
|
|
@@ -2058,54 +2071,54 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2058
2071
|
}),
|
|
2059
2072
|
emits: ["update:value"],
|
|
2060
2073
|
setup(t, { expose: m }) {
|
|
2061
|
-
const
|
|
2062
|
-
const H =
|
|
2074
|
+
const i = t, h = ct(), _ = U(() => {
|
|
2075
|
+
const H = h, $ = H.dropdownClassName;
|
|
2063
2076
|
return {
|
|
2064
2077
|
...H,
|
|
2065
|
-
dropdownClassName:
|
|
2078
|
+
dropdownClassName: $ ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2066
2079
|
};
|
|
2067
|
-
}),
|
|
2068
|
-
maxWidth: typeof
|
|
2069
|
-
})), e = (H) => H.tooltip ?? H.label,
|
|
2080
|
+
}), g = R(), r = ot(t, "value"), d = U(() => i.options ?? []), b = U(() => ({
|
|
2081
|
+
maxWidth: typeof i.tooltipMaxWidth == "number" ? `${i.tooltipMaxWidth}px` : i.tooltipMaxWidth
|
|
2082
|
+
})), e = (H) => H.tooltip ?? H.label, y = (H) => H.key ?? H.label, z = (H) => !!(i.enableTooltip && e(H));
|
|
2070
2083
|
return m({
|
|
2071
2084
|
focus: () => {
|
|
2072
|
-
|
|
2085
|
+
g.value?.focus?.();
|
|
2073
2086
|
},
|
|
2074
2087
|
blur: () => {
|
|
2075
|
-
|
|
2088
|
+
g.value?.blur?.();
|
|
2076
2089
|
},
|
|
2077
|
-
selectRef:
|
|
2078
|
-
}), (H,
|
|
2090
|
+
selectRef: g
|
|
2091
|
+
}), (H, $) => (o(), O(n(De), ee({
|
|
2079
2092
|
ref_key: "selectRef",
|
|
2080
|
-
ref:
|
|
2093
|
+
ref: g,
|
|
2081
2094
|
class: "hb_lib_form_tooltip_select"
|
|
2082
|
-
},
|
|
2083
|
-
value:
|
|
2084
|
-
"onUpdate:value":
|
|
2095
|
+
}, _.value, {
|
|
2096
|
+
value: r.value,
|
|
2097
|
+
"onUpdate:value": $[0] || ($[0] = (a) => r.value = a)
|
|
2085
2098
|
}), {
|
|
2086
2099
|
default: l(() => [
|
|
2087
|
-
H.$slots.default ? j(H.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), F(
|
|
2088
|
-
key:
|
|
2100
|
+
H.$slots.default ? j(H.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), F(V, { key: 1 }, ne(d.value, (a) => (o(), O(n(Ae), ee({
|
|
2101
|
+
key: y(a),
|
|
2089
2102
|
value: a.value,
|
|
2090
2103
|
disabled: a.disabled
|
|
2091
2104
|
}, { ref_for: !0 }, a.optionProps), {
|
|
2092
2105
|
default: l(() => [
|
|
2093
|
-
|
|
2106
|
+
z(a) ? (o(), O(n(He), {
|
|
2094
2107
|
key: 0,
|
|
2095
2108
|
title: e(a),
|
|
2096
|
-
placement:
|
|
2097
|
-
overlayStyle:
|
|
2109
|
+
placement: i.tooltipPlacement,
|
|
2110
|
+
overlayStyle: b.value
|
|
2098
2111
|
}, {
|
|
2099
2112
|
default: l(() => [
|
|
2100
|
-
|
|
2101
|
-
class:
|
|
2102
|
-
},
|
|
2113
|
+
f("span", {
|
|
2114
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": i.enableEllipsis }])
|
|
2115
|
+
}, C(a.label), 3)
|
|
2103
2116
|
]),
|
|
2104
2117
|
_: 2
|
|
2105
2118
|
}, 1032, ["title", "placement", "overlayStyle"])) : (o(), F("span", {
|
|
2106
2119
|
key: 1,
|
|
2107
|
-
class:
|
|
2108
|
-
},
|
|
2120
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": i.enableEllipsis }])
|
|
2121
|
+
}, C(a.label), 3))
|
|
2109
2122
|
]),
|
|
2110
2123
|
_: 2
|
|
2111
2124
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2135,78 +2148,78 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2135
2148
|
beforeSubmit: {}
|
|
2136
2149
|
},
|
|
2137
2150
|
setup(t, { expose: m }) {
|
|
2138
|
-
const { t:
|
|
2151
|
+
const { t: i } = de(), h = R(), _ = t, g = R(!1), r = Le({
|
|
2139
2152
|
fileList: [],
|
|
2140
2153
|
visible: !1
|
|
2141
2154
|
}), d = (k) => {
|
|
2142
2155
|
if (k == null)
|
|
2143
2156
|
return;
|
|
2144
|
-
const N =
|
|
2157
|
+
const N = r.fileList.indexOf(k);
|
|
2145
2158
|
if (N !== -1) {
|
|
2146
|
-
const H =
|
|
2147
|
-
H.splice(N, 1),
|
|
2159
|
+
const H = r.fileList.slice();
|
|
2160
|
+
H.splice(N, 1), r.fileList = H;
|
|
2148
2161
|
}
|
|
2149
|
-
},
|
|
2150
|
-
|
|
2151
|
-
}, e = (k) => (
|
|
2152
|
-
|
|
2153
|
-
|
|
2162
|
+
}, b = () => {
|
|
2163
|
+
r.visible = !1, r.fileList = [], g.value = !1;
|
|
2164
|
+
}, e = (k) => (r.fileList = [k], _.beforeUpload ? _.beforeUpload(k) : !1), y = () => {
|
|
2165
|
+
h.value.validateFields().then(() => {
|
|
2166
|
+
_.beforeSubmit && (g.value = !0, _.beforeSubmit(r.fileList).then((k) => {
|
|
2154
2167
|
}).finally(() => {
|
|
2155
|
-
|
|
2168
|
+
g.value = !1;
|
|
2156
2169
|
}));
|
|
2157
2170
|
});
|
|
2158
|
-
},
|
|
2159
|
-
|
|
2171
|
+
}, z = () => {
|
|
2172
|
+
r.visible = !0;
|
|
2160
2173
|
};
|
|
2161
2174
|
return m({
|
|
2162
|
-
handleCancel:
|
|
2163
|
-
openModal:
|
|
2175
|
+
handleCancel: b,
|
|
2176
|
+
openModal: z,
|
|
2164
2177
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2165
|
-
confirmLoading:
|
|
2178
|
+
confirmLoading: g
|
|
2166
2179
|
}), (k, N) => {
|
|
2167
|
-
const H = P("a-upload-dragger"),
|
|
2168
|
-
return o(), F(
|
|
2180
|
+
const H = P("a-upload-dragger"), $ = P("a-form-item"), a = P("a-form"), S = P("a-modal"), x = P("a-button");
|
|
2181
|
+
return o(), F(V, null, [
|
|
2169
2182
|
w(S, ee({
|
|
2170
|
-
title:
|
|
2171
|
-
visible:
|
|
2172
|
-
"onUpdate:visible": N[0] || (N[0] = (L) =>
|
|
2173
|
-
"confirm-loading":
|
|
2183
|
+
title: _.title,
|
|
2184
|
+
visible: r.visible,
|
|
2185
|
+
"onUpdate:visible": N[0] || (N[0] = (L) => r.visible = L),
|
|
2186
|
+
"confirm-loading": g.value
|
|
2174
2187
|
}, k.$attrs, {
|
|
2175
|
-
onCancel:
|
|
2176
|
-
onOk:
|
|
2177
|
-
width:
|
|
2188
|
+
onCancel: b,
|
|
2189
|
+
onOk: y,
|
|
2190
|
+
width: _.modalWidth
|
|
2178
2191
|
}), {
|
|
2179
2192
|
default: l(() => [
|
|
2180
2193
|
w(a, {
|
|
2181
2194
|
ref_key: "modalFormRef",
|
|
2182
|
-
ref:
|
|
2183
|
-
model:
|
|
2195
|
+
ref: h,
|
|
2196
|
+
model: r
|
|
2184
2197
|
}, {
|
|
2185
2198
|
default: l(() => [
|
|
2186
|
-
w(
|
|
2199
|
+
w($, {
|
|
2187
2200
|
name: "fileList",
|
|
2188
|
-
label:
|
|
2189
|
-
rules: [{ required:
|
|
2201
|
+
label: n(i)("hbLibComp.HbImportFile.fileLabel"),
|
|
2202
|
+
rules: [{ required: _.isRequired, message: n(i)("hbLibComp.HbImportFile.clickUp") }]
|
|
2190
2203
|
}, {
|
|
2191
2204
|
default: l(() => [
|
|
2192
2205
|
w(H, {
|
|
2193
|
-
maxCount:
|
|
2194
|
-
multiple:
|
|
2195
|
-
accept:
|
|
2206
|
+
maxCount: _.maxCount,
|
|
2207
|
+
multiple: _.multiple,
|
|
2208
|
+
accept: _.acceptFile,
|
|
2196
2209
|
name: "file",
|
|
2197
|
-
fileList:
|
|
2210
|
+
fileList: r.fileList,
|
|
2198
2211
|
onRemove: d,
|
|
2199
2212
|
beforeUpload: e
|
|
2200
2213
|
}, {
|
|
2201
2214
|
default: l(() => [
|
|
2202
|
-
|
|
2203
|
-
w(
|
|
2215
|
+
f("p", Xl, [
|
|
2216
|
+
w(n(Lt), { style: { "font-size": "37px" } })
|
|
2204
2217
|
]),
|
|
2205
|
-
|
|
2206
|
-
I(
|
|
2207
|
-
|
|
2218
|
+
f("p", eo, [
|
|
2219
|
+
I(C(n(i)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2220
|
+
f("span", to, C(n(i)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2208
2221
|
]),
|
|
2209
|
-
|
|
2222
|
+
f("p", lo, C(n(i)("hbLibComp.HbFileUploadModal.format")) + ": " + C(_.acceptFile), 1)
|
|
2210
2223
|
]),
|
|
2211
2224
|
_: 1
|
|
2212
2225
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2216,22 +2229,22 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2216
2229
|
]),
|
|
2217
2230
|
_: 1
|
|
2218
2231
|
}, 8, ["model"]),
|
|
2219
|
-
|
|
2220
|
-
|
|
2232
|
+
_.templateUrl ? (o(), F("p", oo, [
|
|
2233
|
+
f("a", {
|
|
2221
2234
|
download: "Import_number-template.xlsx",
|
|
2222
|
-
href:
|
|
2223
|
-
},
|
|
2235
|
+
href: _.templateUrl
|
|
2236
|
+
}, C(n(i)("hbLibComp.HbImportFile.downloadTemplate")), 9, ao)
|
|
2224
2237
|
])) : B("", !0)
|
|
2225
2238
|
]),
|
|
2226
2239
|
_: 1
|
|
2227
2240
|
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2228
|
-
j(k.$slots, "
|
|
2241
|
+
j(k.$slots, "btn", {}, () => [
|
|
2229
2242
|
w(x, {
|
|
2230
|
-
onClick:
|
|
2243
|
+
onClick: z,
|
|
2231
2244
|
type: "primary"
|
|
2232
2245
|
}, {
|
|
2233
2246
|
default: l(() => [
|
|
2234
|
-
I(
|
|
2247
|
+
I(C(t.btnText), 1)
|
|
2235
2248
|
]),
|
|
2236
2249
|
_: 1
|
|
2237
2250
|
})
|
|
@@ -2239,7 +2252,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2239
2252
|
], 64);
|
|
2240
2253
|
};
|
|
2241
2254
|
}
|
|
2242
|
-
}), so = /* @__PURE__ */ ae(no, [["__scopeId", "data-v-
|
|
2255
|
+
}), so = /* @__PURE__ */ ae(no, [["__scopeId", "data-v-d61501db"]]), io = le(so), ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2243
2256
|
__proto__: null,
|
|
2244
2257
|
HbLibImportFile: io
|
|
2245
2258
|
}, Symbol.toStringTag, { value: "Module" })), co = {
|
|
@@ -2288,47 +2301,74 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2288
2301
|
__name: "copy",
|
|
2289
2302
|
props: co,
|
|
2290
2303
|
setup(t) {
|
|
2291
|
-
const m = t,
|
|
2304
|
+
const m = t, i = R();
|
|
2292
2305
|
ut(() => {
|
|
2293
|
-
|
|
2306
|
+
i.value = m.data;
|
|
2294
2307
|
});
|
|
2295
|
-
const
|
|
2308
|
+
const h = U(() => {
|
|
2296
2309
|
if (m.cpText) return m.cpText;
|
|
2297
|
-
let
|
|
2310
|
+
let g = "";
|
|
2298
2311
|
if (m.data)
|
|
2299
2312
|
if (Array.isArray(m.data)) {
|
|
2300
2313
|
if (m.K && m.V && m.L) {
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2314
|
+
const r = m.data.find((d) => d?.[m.K] === m.V);
|
|
2315
|
+
g = r ? r[m.L] : "";
|
|
2303
2316
|
}
|
|
2304
2317
|
} else
|
|
2305
|
-
m.K && (
|
|
2306
|
-
return
|
|
2307
|
-
}),
|
|
2308
|
-
navigator.clipboard.writeText(
|
|
2309
|
-
|
|
2318
|
+
m.K && (g = m.data[m.K]);
|
|
2319
|
+
return g;
|
|
2320
|
+
}), _ = () => {
|
|
2321
|
+
navigator.clipboard.writeText(h.value).then(() => {
|
|
2322
|
+
ze.success(m.copySuccessTip);
|
|
2310
2323
|
}).catch(() => {
|
|
2311
|
-
|
|
2324
|
+
ze.error("复制失败");
|
|
2312
2325
|
});
|
|
2313
2326
|
};
|
|
2314
|
-
return (
|
|
2327
|
+
return (g, r) => {
|
|
2315
2328
|
const d = P("a-tooltip");
|
|
2316
|
-
return
|
|
2329
|
+
return h.value ? (o(), O(d, {
|
|
2317
2330
|
key: 0,
|
|
2318
|
-
title:
|
|
2331
|
+
title: g.tooltipTitle
|
|
2319
2332
|
}, {
|
|
2320
2333
|
default: l(() => [
|
|
2321
|
-
|
|
2322
|
-
class:
|
|
2323
|
-
style: ke({ ...
|
|
2324
|
-
onClick:
|
|
2325
|
-
},
|
|
2334
|
+
f("span", {
|
|
2335
|
+
class: "hb-lib-copy-text-eyevue",
|
|
2336
|
+
style: ke({ ...g.cpStyle }),
|
|
2337
|
+
onClick: $e(_, ["stop", "prevent"])
|
|
2338
|
+
}, [...r[0] || (r[0] = [
|
|
2339
|
+
f("svg", {
|
|
2340
|
+
t: "1766643849597",
|
|
2341
|
+
class: "icon",
|
|
2342
|
+
viewBox: "0 0 1024 1024",
|
|
2343
|
+
version: "1.1",
|
|
2344
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2345
|
+
"p-id": "5022",
|
|
2346
|
+
width: "200",
|
|
2347
|
+
height: "200"
|
|
2348
|
+
}, [
|
|
2349
|
+
f("path", {
|
|
2350
|
+
d: "M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z",
|
|
2351
|
+
"p-id": "5023",
|
|
2352
|
+
fill: "#ff5000"
|
|
2353
|
+
}),
|
|
2354
|
+
f("path", {
|
|
2355
|
+
d: "M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z",
|
|
2356
|
+
"p-id": "5024",
|
|
2357
|
+
fill: "#ff5000"
|
|
2358
|
+
}),
|
|
2359
|
+
f("path", {
|
|
2360
|
+
d: "M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z",
|
|
2361
|
+
"p-id": "5025",
|
|
2362
|
+
fill: "#ff5000"
|
|
2363
|
+
})
|
|
2364
|
+
], -1)
|
|
2365
|
+
])], 4)
|
|
2326
2366
|
]),
|
|
2327
2367
|
_: 1
|
|
2328
2368
|
}, 8, ["title"])) : B("", !0);
|
|
2329
2369
|
};
|
|
2330
2370
|
}
|
|
2331
|
-
}), po = /* @__PURE__ */ ae(uo, [["__scopeId", "data-v-
|
|
2371
|
+
}), po = /* @__PURE__ */ ae(uo, [["__scopeId", "data-v-1c7ecc71"]]), ho = le(po), bo = {
|
|
2332
2372
|
dragList: {
|
|
2333
2373
|
type: Array,
|
|
2334
2374
|
required: !0
|
|
@@ -2367,77 +2407,77 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2367
2407
|
type: String,
|
|
2368
2408
|
default: ""
|
|
2369
2409
|
}
|
|
2370
|
-
},
|
|
2410
|
+
}, mo = /* @__PURE__ */ te({
|
|
2371
2411
|
name: "HbDrag",
|
|
2372
2412
|
__name: "index",
|
|
2373
|
-
props:
|
|
2413
|
+
props: bo,
|
|
2374
2414
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2375
2415
|
setup(t, { emit: m }) {
|
|
2376
|
-
const
|
|
2416
|
+
const i = t, h = pt([]);
|
|
2377
2417
|
se(
|
|
2378
|
-
() =>
|
|
2379
|
-
(
|
|
2380
|
-
|
|
2418
|
+
() => i.dragList,
|
|
2419
|
+
(y) => {
|
|
2420
|
+
h.value = y;
|
|
2381
2421
|
},
|
|
2382
2422
|
{
|
|
2383
2423
|
deep: !0,
|
|
2384
2424
|
immediate: !0
|
|
2385
2425
|
}
|
|
2386
2426
|
);
|
|
2387
|
-
const
|
|
2388
|
-
console.log("drag start",
|
|
2389
|
-
}, d = (
|
|
2390
|
-
console.log("drag end",
|
|
2391
|
-
},
|
|
2392
|
-
console.log("drag add",
|
|
2393
|
-
}, e = (
|
|
2394
|
-
console.log("drag remove",
|
|
2427
|
+
const _ = Pe("drag"), g = m, r = (y) => {
|
|
2428
|
+
console.log("drag start", y), g("handleDragStart", y);
|
|
2429
|
+
}, d = (y) => {
|
|
2430
|
+
console.log("drag end", y), g("handleDragEnd", y);
|
|
2431
|
+
}, b = (y) => {
|
|
2432
|
+
console.log("drag add", y), g("handleDragAdd", y);
|
|
2433
|
+
}, e = (y) => {
|
|
2434
|
+
console.log("drag remove", y), g("handleDragRemove", y);
|
|
2395
2435
|
};
|
|
2396
|
-
return (
|
|
2397
|
-
class:
|
|
2436
|
+
return (y, z) => (o(), F("div", {
|
|
2437
|
+
class: Y(n(_).b())
|
|
2398
2438
|
}, [
|
|
2399
|
-
|
|
2439
|
+
y.childrenType == "component" ? (o(), O(n(Ce), ee({
|
|
2400
2440
|
key: 0,
|
|
2401
|
-
modelValue:
|
|
2402
|
-
"onUpdate:modelValue":
|
|
2441
|
+
modelValue: h.value,
|
|
2442
|
+
"onUpdate:modelValue": z[0] || (z[0] = (k) => h.value = k),
|
|
2403
2443
|
"item-key": "key",
|
|
2404
|
-
class: { [
|
|
2405
|
-
},
|
|
2406
|
-
"ghost-class":
|
|
2407
|
-
onStart:
|
|
2444
|
+
class: { [y.dragClass]: y.dragClass }
|
|
2445
|
+
}, y.$attrs, {
|
|
2446
|
+
"ghost-class": y.ghostClass,
|
|
2447
|
+
onStart: r,
|
|
2408
2448
|
onEnd: d,
|
|
2409
|
-
onAdd:
|
|
2449
|
+
onAdd: b,
|
|
2410
2450
|
onRemove: e
|
|
2411
2451
|
}), {
|
|
2412
2452
|
item: l(({ element: k }) => [
|
|
2413
|
-
(o(),
|
|
2453
|
+
(o(), O(ht(k.component)))
|
|
2414
2454
|
]),
|
|
2415
2455
|
_: 1
|
|
2416
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (o(),
|
|
2456
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), O(n(Ce), ee({
|
|
2417
2457
|
key: 1,
|
|
2418
|
-
modelValue:
|
|
2419
|
-
"onUpdate:modelValue":
|
|
2458
|
+
modelValue: h.value,
|
|
2459
|
+
"onUpdate:modelValue": z[1] || (z[1] = (k) => h.value = k),
|
|
2420
2460
|
"item-key": "id",
|
|
2421
|
-
class: { [
|
|
2422
|
-
},
|
|
2423
|
-
"ghost-class":
|
|
2424
|
-
onStart:
|
|
2461
|
+
class: { [y.dragClass]: y.dragClass }
|
|
2462
|
+
}, y.$attrs, {
|
|
2463
|
+
"ghost-class": y.ghostClass,
|
|
2464
|
+
onStart: r,
|
|
2425
2465
|
onEnd: d,
|
|
2426
|
-
onAdd:
|
|
2466
|
+
onAdd: b,
|
|
2427
2467
|
onRemove: e
|
|
2428
2468
|
}), {
|
|
2429
2469
|
item: l(({ element: k }) => [
|
|
2430
|
-
|
|
2431
|
-
j(
|
|
2470
|
+
f("div", null, [
|
|
2471
|
+
j(y.$slots, "default", { item: k }, void 0, !0)
|
|
2432
2472
|
])
|
|
2433
2473
|
]),
|
|
2434
2474
|
_: 3
|
|
2435
2475
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2436
2476
|
], 2));
|
|
2437
2477
|
}
|
|
2438
|
-
}), fo = /* @__PURE__ */ ae(
|
|
2478
|
+
}), fo = /* @__PURE__ */ ae(mo, [["__scopeId", "data-v-15b227f5"]]), vo = le(fo), go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2439
2479
|
__proto__: null,
|
|
2440
|
-
|
|
2480
|
+
HbLibCopy: ho,
|
|
2441
2481
|
HbLibFuncCompDrag: vo
|
|
2442
2482
|
}, Symbol.toStringTag, { value: "Module" })), yo = { class: "log_remark" }, Co = /* @__PURE__ */ te({
|
|
2443
2483
|
name: "HbLibLogModal",
|
|
@@ -2455,20 +2495,20 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2455
2495
|
getLogData: {}
|
|
2456
2496
|
},
|
|
2457
2497
|
emits: ["update:visible"],
|
|
2458
|
-
setup(t, { expose: m, emit:
|
|
2459
|
-
const { t:
|
|
2498
|
+
setup(t, { expose: m, emit: i }) {
|
|
2499
|
+
const { t: h } = de(), _ = t, g = [
|
|
2460
2500
|
{
|
|
2461
|
-
title:
|
|
2501
|
+
title: h("hbLibComp.HbLogModal.operator"),
|
|
2462
2502
|
dataIndex: "userName",
|
|
2463
2503
|
width: "15%"
|
|
2464
2504
|
},
|
|
2465
2505
|
{
|
|
2466
|
-
title:
|
|
2506
|
+
title: h("hbLibComp.HbLogModal.operateTime"),
|
|
2467
2507
|
dataIndex: "operateTime",
|
|
2468
2508
|
width: "25%"
|
|
2469
2509
|
},
|
|
2470
|
-
{ title:
|
|
2471
|
-
],
|
|
2510
|
+
{ title: h("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2511
|
+
], r = U(() => _.columns || g), d = U(() => _.title || h("hbLibComp.HbLogModal.operateLogs")), b = R(!1), e = Le({
|
|
2472
2512
|
list: [],
|
|
2473
2513
|
pagination: {
|
|
2474
2514
|
current: 1,
|
|
@@ -2481,7 +2521,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2481
2521
|
}
|
|
2482
2522
|
});
|
|
2483
2523
|
se(
|
|
2484
|
-
() =>
|
|
2524
|
+
() => _.pagination,
|
|
2485
2525
|
(a) => {
|
|
2486
2526
|
a && (e.pagination = {
|
|
2487
2527
|
...e.pagination,
|
|
@@ -2493,35 +2533,35 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2493
2533
|
immediate: !0
|
|
2494
2534
|
}
|
|
2495
2535
|
);
|
|
2496
|
-
const
|
|
2536
|
+
const y = (a = 1) => {
|
|
2497
2537
|
const S = {
|
|
2498
2538
|
pageIndex: a,
|
|
2499
2539
|
pageSize: e.pagination.pageSize,
|
|
2500
|
-
query:
|
|
2540
|
+
query: _.params
|
|
2501
2541
|
};
|
|
2502
|
-
|
|
2542
|
+
_.getLogData && (b.value = !0, _.getLogData(S).then((x) => {
|
|
2503
2543
|
Number(x.code) == 200 && (e.pagination.current = a, e.pagination.total = Number(x.data.total), e.list = x.data.records || []);
|
|
2504
2544
|
}).finally(() => {
|
|
2505
|
-
|
|
2545
|
+
b.value = !1;
|
|
2506
2546
|
}));
|
|
2507
|
-
},
|
|
2508
|
-
e.pagination.current = a.current, e.pagination.pageSize = a.pageSize,
|
|
2547
|
+
}, z = (a) => {
|
|
2548
|
+
e.pagination.current = a.current, e.pagination.pageSize = a.pageSize, y();
|
|
2509
2549
|
}, k = () => {
|
|
2510
|
-
e.list = [],
|
|
2550
|
+
e.list = [], $("update:visible", !1);
|
|
2511
2551
|
}, N = () => {
|
|
2512
|
-
|
|
2513
|
-
}, H = (a, S = "YYYY-MM-DD HH:mm:ss") => a ? Se(a).format(S) : "",
|
|
2552
|
+
$("update:visible", !0);
|
|
2553
|
+
}, H = (a, S = "YYYY-MM-DD HH:mm:ss") => a ? Se(a).format(S) : "", $ = i;
|
|
2514
2554
|
return se(
|
|
2515
|
-
() =>
|
|
2555
|
+
() => _.visible,
|
|
2516
2556
|
(a) => {
|
|
2517
|
-
a &&
|
|
2557
|
+
a && y();
|
|
2518
2558
|
}
|
|
2519
2559
|
), m({
|
|
2520
2560
|
close: k,
|
|
2521
|
-
loading:
|
|
2561
|
+
loading: b
|
|
2522
2562
|
}), (a, S) => {
|
|
2523
|
-
const x = P("a-tooltip"), L = P("HbLibCopy"),
|
|
2524
|
-
return o(), F(
|
|
2563
|
+
const x = P("a-tooltip"), L = P("HbLibCopy"), K = P("a-table"), v = P("a-button"), u = P("a-modal");
|
|
2564
|
+
return o(), F(V, null, [
|
|
2525
2565
|
w(u, {
|
|
2526
2566
|
visible: t.visible,
|
|
2527
2567
|
title: d.value,
|
|
@@ -2531,42 +2571,42 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2531
2571
|
footer: l(() => [
|
|
2532
2572
|
w(v, { onClick: k }, {
|
|
2533
2573
|
default: l(() => [
|
|
2534
|
-
I(
|
|
2574
|
+
I(C(n(h)("hbLibComp.HbLogModal.close")), 1)
|
|
2535
2575
|
]),
|
|
2536
2576
|
_: 1
|
|
2537
2577
|
})
|
|
2538
2578
|
]),
|
|
2539
2579
|
default: l(() => [
|
|
2540
|
-
w(
|
|
2580
|
+
w(K, {
|
|
2541
2581
|
bordered: "",
|
|
2542
2582
|
rowKey: "id",
|
|
2543
|
-
columns:
|
|
2583
|
+
columns: r.value,
|
|
2544
2584
|
dataSource: e.list,
|
|
2545
2585
|
pagination: e.pagination,
|
|
2546
|
-
loading:
|
|
2547
|
-
onChange:
|
|
2586
|
+
loading: b.value,
|
|
2587
|
+
onChange: z
|
|
2548
2588
|
}, {
|
|
2549
|
-
bodyCell: l(({ column: p, record:
|
|
2550
|
-
p && p.needTooltip ? (o(), F(
|
|
2551
|
-
p.needTooltip ? (o(),
|
|
2589
|
+
bodyCell: l(({ column: p, record: s }) => [
|
|
2590
|
+
p && p.needTooltip ? (o(), F(V, { key: 0 }, [
|
|
2591
|
+
p.needTooltip ? (o(), O(x, { key: 0 }, {
|
|
2552
2592
|
title: l(() => [
|
|
2553
|
-
I(
|
|
2593
|
+
I(C(s[p.dataIndex]), 1)
|
|
2554
2594
|
]),
|
|
2555
2595
|
default: l(() => [
|
|
2556
|
-
I(" " +
|
|
2596
|
+
I(" " + C(s[p.dataIndex]), 1)
|
|
2557
2597
|
]),
|
|
2558
2598
|
_: 2
|
|
2559
2599
|
}, 1024)) : B("", !0)
|
|
2560
2600
|
], 64)) : B("", !0),
|
|
2561
|
-
p && p.needCopy ? (o(), F(
|
|
2562
|
-
|
|
2601
|
+
p && p.needCopy ? (o(), F(V, { key: 1 }, [
|
|
2602
|
+
f("div", yo, C(s[p.dataIndex]), 1),
|
|
2563
2603
|
w(L, {
|
|
2564
|
-
"cp-text":
|
|
2604
|
+
"cp-text": s[p.dataIndex],
|
|
2565
2605
|
style: { position: "relative" }
|
|
2566
2606
|
}, null, 8, ["cp-text"])
|
|
2567
2607
|
], 64)) : B("", !0),
|
|
2568
|
-
p && p.needFormat ? (o(), F(
|
|
2569
|
-
I(
|
|
2608
|
+
p && p.needFormat ? (o(), F(V, { key: 2 }, [
|
|
2609
|
+
I(C(H(s[p.dataIndex], p.operateTime)), 1)
|
|
2570
2610
|
], 64)) : B("", !0)
|
|
2571
2611
|
]),
|
|
2572
2612
|
_: 1
|
|
@@ -2577,7 +2617,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2577
2617
|
j(a.$slots, "default", {}, () => [
|
|
2578
2618
|
w(v, { onClick: N }, {
|
|
2579
2619
|
default: l(() => [
|
|
2580
|
-
I(
|
|
2620
|
+
I(C(t.logBtnText), 1)
|
|
2581
2621
|
]),
|
|
2582
2622
|
_: 1
|
|
2583
2623
|
})
|
|
@@ -2589,7 +2629,7 @@ const wt = "hb-", Re = (t = "") => {
|
|
|
2589
2629
|
__proto__: null,
|
|
2590
2630
|
HbLibLogModal: Lo
|
|
2591
2631
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2592
|
-
let
|
|
2632
|
+
let et = {
|
|
2593
2633
|
...Wl,
|
|
2594
2634
|
...Zl,
|
|
2595
2635
|
...ro,
|
|
@@ -2600,43 +2640,43 @@ const So = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to uploa
|
|
|
2600
2640
|
hbLibComp: So
|
|
2601
2641
|
}, Fo = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください", format: "サポートされている形式" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" }, HbImportFile: { clickUp: "クリックしてアップロード", downloadTemplate: "クリックしてテンプレートをダウンロード", pleaseUploadFiles: "ファイルをアップロードしてください", uploadText: "ファイルをここにドラッグするか、", fileLabel: "書類", importBtn: "ファイルのアップロード" } }, xo = {
|
|
2602
2642
|
hbLibComp: Fo
|
|
2603
|
-
}, To = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案", addScheme: "添加方案", editScheme: "编辑方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载", format: "支持格式" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" }, HbImportFile: { uploadText: "将文件拖到此处或", clickUp: "请上传文件", downloadTemplate: "点击下载模板", pleaseUploadFiles: "请上传文件", fileLabel: "文件", importBtn: "文件上传" } },
|
|
2643
|
+
}, To = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案", addScheme: "添加方案", editScheme: "编辑方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载", format: "支持格式" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" }, HbImportFile: { uploadText: "将文件拖到此处或", clickUp: "请上传文件", downloadTemplate: "点击下载模板", pleaseUploadFiles: "请上传文件", fileLabel: "文件", importBtn: "文件上传" } }, Mo = {
|
|
2604
2644
|
hbLibComp: To
|
|
2605
|
-
},
|
|
2606
|
-
hbLibComp:
|
|
2645
|
+
}, $o = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus", format: "Unterstützte Formate" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan", addScheme: "Szenario hinzufügen", editScheme: "Plan bearbeiten" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" }, HbImportFile: { clickUp: "Klicken Sie zum Hochladen", downloadTemplate: "Klicken Sie hier, um die Vorlage herunterzuladen", pleaseUploadFiles: "Bitte laden Sie Dateien hoch", uploadText: "Ziehen Sie Dateien hierher oder", fileLabel: "dokumentieren", importBtn: "Datei-Upload" } }, Io = {
|
|
2646
|
+
hbLibComp: $o
|
|
2607
2647
|
};
|
|
2608
|
-
var
|
|
2648
|
+
var ye = { exports: {} }, Ho = ye.exports, tt;
|
|
2609
2649
|
function Do() {
|
|
2610
|
-
return
|
|
2611
|
-
(function(
|
|
2612
|
-
t.exports =
|
|
2613
|
-
})(Ho, (function(
|
|
2614
|
-
function
|
|
2615
|
-
return
|
|
2650
|
+
return tt || (tt = 1, (function(t, m) {
|
|
2651
|
+
(function(i, h) {
|
|
2652
|
+
t.exports = h(Se);
|
|
2653
|
+
})(Ho, (function(i) {
|
|
2654
|
+
function h(r) {
|
|
2655
|
+
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
2616
2656
|
}
|
|
2617
|
-
var
|
|
2618
|
-
return d === "W" ?
|
|
2619
|
-
}, 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(
|
|
2620
|
-
var
|
|
2621
|
-
return
|
|
2657
|
+
var _ = h(i), g = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(r, d) {
|
|
2658
|
+
return d === "W" ? r + "周" : r + "日";
|
|
2659
|
+
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(r, d) {
|
|
2660
|
+
var b = 100 * r + d;
|
|
2661
|
+
return b < 600 ? "凌晨" : b < 900 ? "早上" : b < 1100 ? "上午" : b < 1300 ? "中午" : b < 1800 ? "下午" : "晚上";
|
|
2622
2662
|
} };
|
|
2623
|
-
return
|
|
2663
|
+
return _.default.locale(g, null, !0), g;
|
|
2624
2664
|
}));
|
|
2625
|
-
})(
|
|
2665
|
+
})(ye)), ye.exports;
|
|
2626
2666
|
}
|
|
2627
2667
|
Do();
|
|
2628
2668
|
Se.locale("zh-cn");
|
|
2629
|
-
const
|
|
2669
|
+
const Vo = {
|
|
2630
2670
|
en_US: wo,
|
|
2631
2671
|
ja_JP: xo,
|
|
2632
|
-
zh_CN:
|
|
2672
|
+
zh_CN: Mo,
|
|
2633
2673
|
de_DE: Io
|
|
2634
2674
|
}, Yo = function(t) {
|
|
2635
|
-
Object.keys(
|
|
2636
|
-
t.use(
|
|
2675
|
+
Object.keys(et).forEach((i) => {
|
|
2676
|
+
t.use(et[i]);
|
|
2637
2677
|
});
|
|
2638
2678
|
};
|
|
2639
2679
|
export {
|
|
2640
2680
|
Yo as install,
|
|
2641
|
-
|
|
2681
|
+
Vo as locales
|
|
2642
2682
|
};
|