@hb-hellotech/hb-ui 1.3.5 → 1.3.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts.map +1 -1
- package/dist/components/business_comp/modal_comp/log_modal/src/type.d.ts +3 -0
- package/dist/components/business_comp/modal_comp/log_modal/src/type.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +898 -884
- 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 Le, ref as R, computed as U, watch as se, onMounted as me, createElementBlock as F, openBlock as o, normalizeClass as
|
|
2
|
+
import { defineComponent as te, reactive as Le, ref as R, computed as U, watch as se, onMounted as me, createElementBlock as F, openBlock as o, normalizeClass as j, unref as n, createVNode as w, withCtx as l, createElementVNode as m, toDisplayString as y, createTextVNode as I, createBlock as B, createCommentVNode as O, Fragment as Y, renderList as ne, inject as Be, resolveComponent as P, Transition as nt, withDirectives as he, mergeProps as ee, createSlots as Oe, renderSlot as V, vShow as st, nextTick as ve, onUnmounted as Re, useTemplateRef as it, provide as rt, normalizeStyle as ke, mergeModels as $e, useModel as ot, withModifiers as Me, resolveDirective as dt, useAttrs as ct, watchEffect as ut, shallowRef as pt, resolveDynamicComponent as ht } from "vue";
|
|
3
3
|
import Ce from "vuedraggable";
|
|
4
|
-
import { Modal as Ie, Button as fe, Tooltip as He, Switch as
|
|
4
|
+
import { Modal as Ie, Button as fe, Tooltip as He, Switch as Ee, Radio as Ve, RadioGroup as Ye, InputNumber as je, DatePicker as Ke, Checkbox as _e, CheckboxGroup as qe, Select as De, Input as We, Col as bt, Row as ft, FormItem as Je, Form as Ge, SelectOption as Ae, Popconfirm as Te, MenuItem as Qe, Menu as Ze, Dropdown as Xe, Popover as mt, message as ze } from "ant-design-vue";
|
|
5
5
|
import { useRoute as at } from "vue-router";
|
|
6
6
|
import { useI18n as de } from "vue-i18n";
|
|
7
|
-
import
|
|
8
|
-
import { CloseOutlined as vt, QuestionCircleOutlined as gt, SearchOutlined as
|
|
7
|
+
import be from "lodash";
|
|
8
|
+
import { CloseOutlined as vt, QuestionCircleOutlined as gt, SearchOutlined as Pe, UpCircleOutlined as yt, DownCircleOutlined as Ct, UnorderedListOutlined as _t, DownOutlined as et, 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-", Ne = (t = "") => {
|
|
12
12
|
const f = `${wt}${t}`;
|
|
13
13
|
return Ft(f);
|
|
14
|
-
}, pe = (t, f,
|
|
14
|
+
}, pe = (t, f, i, h) => (f && (t += `-${f}`), i && (t += `__${i}`), h && (t += `--${h}`), t), Ft = (t) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (f) => f ? pe(t, f, "", "") : pe(t, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -19,14 +19,14 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
19
19
|
// hb-button--primary
|
|
20
20
|
m: (f) => pe(t, "", "", f),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (f,
|
|
22
|
+
be: (f, i) => pe(t, f, i, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (f,
|
|
24
|
+
em: (f, i) => pe(t, "", f, i),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (f,
|
|
26
|
+
bem: (f, i, h) => pe(t, f, i, h),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (f,
|
|
29
|
-
}), xt = ["onMouseenter", "onMouseleave"], Tt = ["onClick"],
|
|
28
|
+
is: (f, i) => i ? `is-${f}` : ""
|
|
29
|
+
}), xt = ["onMouseenter", "onMouseleave"], Tt = ["onClick"], $t = /* @__PURE__ */ te({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -38,23 +38,23 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(t, { expose: f, emit:
|
|
42
|
-
const
|
|
41
|
+
setup(t, { expose: f, 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 = Ne("sfcm"), C = at(), z = Le({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}),
|
|
44
|
+
}), S = R(!1), N = R(600);
|
|
45
45
|
let H = [];
|
|
46
|
-
const
|
|
47
|
-
...
|
|
48
|
-
label: u
|
|
49
|
-
key:
|
|
50
|
-
isFixed:
|
|
51
|
-
isLinked:
|
|
52
|
-
labelLanguage:
|
|
53
|
-
}),
|
|
54
|
-
const D =
|
|
46
|
+
const M = R([]), a = R([]), L = U(() => M.value.every((u) => u.isLinked || u.isFixed)), $ = (u) => ({
|
|
47
|
+
...u,
|
|
48
|
+
label: p(u) || `${c(u) || ""} (${h("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
|
+
key: u.key,
|
|
50
|
+
isFixed: u?.isFixed || !1,
|
|
51
|
+
isLinked: u?.isLinked || !1,
|
|
52
|
+
labelLanguage: u?.labelLanguage || void 0
|
|
53
|
+
}), k = (u) => {
|
|
54
|
+
const D = u.draggedContext.element, A = u.relatedContext.index;
|
|
55
55
|
if (D.isLinked || D.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const G =
|
|
57
|
+
const G = M.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,43 +63,43 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, K = U(() => v() + "_" +
|
|
67
|
-
const
|
|
66
|
+
}, K = U(() => v() + "_" + d.saveKey), v = () => {
|
|
67
|
+
const u = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let D = "anonymous";
|
|
69
|
-
if (
|
|
69
|
+
if (u)
|
|
70
70
|
try {
|
|
71
|
-
D = JSON.parse(
|
|
71
|
+
D = JSON.parse(u).value.jobNumber || "anonymous";
|
|
72
72
|
} catch (G) {
|
|
73
73
|
console.warn("解析用户信息失败:", G);
|
|
74
74
|
}
|
|
75
|
-
let A =
|
|
75
|
+
let A = C?.path;
|
|
76
76
|
return `searchFormConfig_${D}_${A}`;
|
|
77
|
-
},
|
|
78
|
-
ja_JP: () =>
|
|
79
|
-
en_US: () =>
|
|
80
|
-
zh_CN: () =>
|
|
81
|
-
})[z.lan]?.() ||
|
|
82
|
-
ja_JP: () =>
|
|
83
|
-
en_US: () =>
|
|
84
|
-
zh_CN: () =>
|
|
85
|
-
})[z.lan]?.() ||
|
|
77
|
+
}, p = (u) => ({
|
|
78
|
+
ja_JP: () => be.get(g, u.labelLanguage || ""),
|
|
79
|
+
en_US: () => be.get(_, u.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => be.get(r, u.labelLanguage || "")
|
|
81
|
+
})[z.lan]?.() || u.label, c = (u) => ({
|
|
82
|
+
ja_JP: () => be.get(g, u.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => be.get(_, u.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => be.get(r, u.subLabelLanguage || "")
|
|
85
|
+
})[z.lan]?.() || u.subLabel, s = (u) => {
|
|
86
86
|
try {
|
|
87
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 =
|
|
93
|
-
|
|
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
|
+
...$(W)
|
|
94
94
|
})), we = Z.map((W) => ({
|
|
95
|
-
|
|
95
|
+
...$(W)
|
|
96
96
|
})), Fe = re.slice(0, ue).map((W) => ({
|
|
97
|
-
|
|
97
|
+
...$(W)
|
|
98
98
|
}));
|
|
99
|
-
console.log("我进来了这里2233"),
|
|
100
|
-
const xe =
|
|
99
|
+
console.log("我进来了这里2233"), M.value = [...ge, ...we, ...Fe];
|
|
100
|
+
const xe = M.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
|
+
...$(W),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
105
105
|
}
|
|
@@ -108,11 +108,11 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
108
108
|
console.warn("加载保存的搜索配置失败:", D);
|
|
109
109
|
}
|
|
110
110
|
return !1;
|
|
111
|
-
},
|
|
111
|
+
}, x = () => {
|
|
112
112
|
try {
|
|
113
|
-
const
|
|
113
|
+
const u = {
|
|
114
114
|
originalList: H,
|
|
115
|
-
showList:
|
|
115
|
+
showList: M.value.map((D) => ({
|
|
116
116
|
...D,
|
|
117
117
|
key: D.key,
|
|
118
118
|
label: D.label,
|
|
@@ -121,83 +121,83 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
121
121
|
labelLanguage: D?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(K.value, JSON.stringify(
|
|
125
|
-
} catch (
|
|
126
|
-
console.warn("保存搜索配置失败:",
|
|
124
|
+
localStorage.setItem(K.value, JSON.stringify(u));
|
|
125
|
+
} catch (u) {
|
|
126
|
+
console.warn("保存搜索配置失败:", u);
|
|
127
127
|
}
|
|
128
128
|
}, E = U(() => {
|
|
129
|
-
const
|
|
130
|
-
return
|
|
129
|
+
const u = M.value.filter((A) => !A.isFixed && !A.isLinked).length, D = M.value.filter((A) => A.isFixed || A.isLinked).length;
|
|
130
|
+
return u >= d.showNumber - D;
|
|
131
131
|
});
|
|
132
132
|
se(
|
|
133
|
-
() =>
|
|
134
|
-
(
|
|
135
|
-
let D = JSON.stringify(
|
|
133
|
+
() => d.list,
|
|
134
|
+
(u) => {
|
|
135
|
+
let D = JSON.stringify(M.value) !== JSON.stringify(u);
|
|
136
136
|
if (!D)
|
|
137
137
|
return;
|
|
138
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", M.value);
|
|
141
141
|
else if (D) {
|
|
142
|
-
H = JSON.parse(JSON.stringify(
|
|
143
|
-
const Z =
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
|
|
142
|
+
H = JSON.parse(JSON.stringify(u));
|
|
143
|
+
const Z = u.filter((X) => X?.isFixed), re = u.filter((X) => X?.isLinked), ue = u.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)), Fe = re.map((X) => $(X)), xe = ue.slice(0, ge).map((X) => $(X));
|
|
144
|
+
M.value = [...we, ...Fe, ...xe];
|
|
145
|
+
const Ue = ue.slice(ge).map((X) => ({
|
|
146
|
+
...$(X),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
a.value =
|
|
149
|
+
a.value = Ue;
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const Q = (
|
|
155
|
-
const D =
|
|
156
|
-
D !== -1 && (
|
|
157
|
-
}, ie = (
|
|
154
|
+
const Q = (u) => {
|
|
155
|
+
const D = M.value.findIndex((A) => A.key === u.key);
|
|
156
|
+
D !== -1 && (M.value.splice(D, 1), a.value.push({ ...u, active: !1 }));
|
|
157
|
+
}, ie = (u) => {
|
|
158
158
|
if (E.value)
|
|
159
159
|
return;
|
|
160
|
-
const D = a.value.findIndex((A) => A.key ===
|
|
160
|
+
const D = a.value.findIndex((A) => A.key === u.key);
|
|
161
161
|
if (D !== -1) {
|
|
162
162
|
const [A] = a.value.splice(D, 1);
|
|
163
|
-
|
|
163
|
+
M.value.push({ ...A, active: !1 });
|
|
164
164
|
}
|
|
165
165
|
}, J = () => {
|
|
166
|
-
|
|
166
|
+
S.value = !1;
|
|
167
167
|
}, q = () => {
|
|
168
|
-
|
|
168
|
+
S.value = !0;
|
|
169
169
|
}, oe = () => {
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
const D = a.value.findIndex((A) => A.key ===
|
|
170
|
+
x(), b("confirm", M.value), J();
|
|
171
|
+
}, T = (u) => {
|
|
172
|
+
const D = a.value.findIndex((A) => A.key === u.key);
|
|
173
173
|
D !== -1 && (a.value[D].active = !0);
|
|
174
|
-
}, ce = (
|
|
175
|
-
const D = a.value.findIndex((A) => A.key ===
|
|
174
|
+
}, ce = (u) => {
|
|
175
|
+
const D = a.value.findIndex((A) => A.key === u.key);
|
|
176
176
|
D !== -1 && (a.value[D].active = !1);
|
|
177
177
|
};
|
|
178
178
|
return f({
|
|
179
179
|
toOpenModal: q
|
|
180
180
|
}), me(() => {
|
|
181
181
|
console.log("我是保存的搜索条件");
|
|
182
|
-
}), (
|
|
183
|
-
class:
|
|
182
|
+
}), (u, D) => (o(), F("div", {
|
|
183
|
+
class: j(n(e).b())
|
|
184
184
|
}, [
|
|
185
185
|
w(n(Ie), {
|
|
186
|
-
visible:
|
|
187
|
-
"onUpdate:visible": D[1] || (D[1] = (A) =>
|
|
186
|
+
visible: S.value,
|
|
187
|
+
"onUpdate:visible": D[1] || (D[1] = (A) => S.value = A),
|
|
188
188
|
width: N.value,
|
|
189
189
|
onCancel: J,
|
|
190
190
|
onOk: oe
|
|
191
191
|
}, {
|
|
192
192
|
title: l(() => [
|
|
193
193
|
m("div", {
|
|
194
|
-
class:
|
|
195
|
-
},
|
|
194
|
+
class: j(n(e).e("title"))
|
|
195
|
+
}, y(t.title), 3)
|
|
196
196
|
]),
|
|
197
197
|
footer: l(() => [
|
|
198
198
|
w(n(fe), { onClick: J }, {
|
|
199
199
|
default: l(() => [
|
|
200
|
-
I(
|
|
200
|
+
I(y(u.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
201
201
|
]),
|
|
202
202
|
_: 1
|
|
203
203
|
}),
|
|
@@ -206,44 +206,44 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
206
206
|
onClick: oe
|
|
207
207
|
}, {
|
|
208
208
|
default: l(() => [
|
|
209
|
-
I(
|
|
209
|
+
I(y(u.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
212
212
|
})
|
|
213
213
|
]),
|
|
214
214
|
default: l(() => [
|
|
215
215
|
m("section", {
|
|
216
|
-
class:
|
|
216
|
+
class: j(n(e).e("show"))
|
|
217
217
|
}, [
|
|
218
218
|
m("div", {
|
|
219
|
-
class:
|
|
219
|
+
class: j(n(e).e("show__title"))
|
|
220
220
|
}, [
|
|
221
221
|
m("span", {
|
|
222
|
-
class:
|
|
223
|
-
},
|
|
224
|
-
m("span", null,
|
|
222
|
+
class: j(n(e).e("title__tip"))
|
|
223
|
+
}, y(u.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
224
|
+
m("span", null, y(u.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + y(t.showNumber) + y(u.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
225
225
|
], 2),
|
|
226
226
|
m("div", {
|
|
227
|
-
class:
|
|
227
|
+
class: j(n(e).e("show__tag"))
|
|
228
228
|
}, [
|
|
229
229
|
w(n(Ce), {
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": D[0] || (D[0] = (A) =>
|
|
230
|
+
modelValue: M.value,
|
|
231
|
+
"onUpdate:modelValue": D[0] || (D[0] = (A) => M.value = A),
|
|
232
232
|
"item-key": "key",
|
|
233
233
|
tag: "div",
|
|
234
|
-
disabled:
|
|
235
|
-
move:
|
|
234
|
+
disabled: L.value,
|
|
235
|
+
move: k
|
|
236
236
|
}, {
|
|
237
237
|
item: l(({ element: A }) => [
|
|
238
238
|
m("div", {
|
|
239
|
-
class:
|
|
239
|
+
class: j([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(y(A.label) + " ", 1),
|
|
242
|
+
!A.isFixed && !A.isLinked && t.list.length > 1 ? (o(), B(n(vt), {
|
|
243
243
|
key: 0,
|
|
244
|
-
class:
|
|
244
|
+
class: j(n(e).e("show__tag__item-close")),
|
|
245
245
|
onClick: (G) => Q(A)
|
|
246
|
-
}, null, 8, ["class", "onClick"])) :
|
|
246
|
+
}, null, 8, ["class", "onClick"])) : O("", !0)
|
|
247
247
|
], 2)
|
|
248
248
|
]),
|
|
249
249
|
_: 1
|
|
@@ -251,34 +251,34 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
251
251
|
], 2)
|
|
252
252
|
], 2),
|
|
253
253
|
m("section", {
|
|
254
|
-
class:
|
|
254
|
+
class: j(n(e).e("unshow"))
|
|
255
255
|
}, [
|
|
256
256
|
m("div", {
|
|
257
|
-
class:
|
|
257
|
+
class: j(n(e).e("show__title"))
|
|
258
258
|
}, [
|
|
259
259
|
m("span", {
|
|
260
|
-
class:
|
|
261
|
-
},
|
|
260
|
+
class: j(n(e).e("title__tip"))
|
|
261
|
+
}, y(u.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
262
262
|
], 2),
|
|
263
263
|
m("div", {
|
|
264
|
-
class:
|
|
264
|
+
class: j(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(Y, { key: 0 }, ne(a.value, (A) => (o(), F("div", {
|
|
267
|
+
class: j([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) =>
|
|
269
|
+
onMouseenter: (G) => T(A),
|
|
270
270
|
onMouseleave: (G) => ce(A)
|
|
271
271
|
}, [
|
|
272
|
-
I(
|
|
272
|
+
I(y(A.label) + " ", 1),
|
|
273
273
|
A.active ? (o(), F("aside", {
|
|
274
274
|
key: 0,
|
|
275
|
-
class:
|
|
275
|
+
class: j(n(e).e("unshow__tag__item-add")),
|
|
276
276
|
onClick: (G) => ie(A)
|
|
277
|
-
},
|
|
277
|
+
}, y(u.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Tt)) : O("", !0)
|
|
278
278
|
], 42, xt))), 128)) : (o(), F("div", {
|
|
279
279
|
key: 1,
|
|
280
|
-
class:
|
|
281
|
-
},
|
|
280
|
+
class: j(n(e).e("unshow__tag__empty"))
|
|
281
|
+
}, y(u.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
282
282
|
], 2)
|
|
283
283
|
], 2)
|
|
284
284
|
]),
|
|
@@ -287,13 +287,13 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
287
287
|
], 2));
|
|
288
288
|
}
|
|
289
289
|
}), ae = (t, f) => {
|
|
290
|
-
const
|
|
291
|
-
for (const [
|
|
292
|
-
|
|
293
|
-
return
|
|
294
|
-
},
|
|
290
|
+
const i = t.__vccOpts || t;
|
|
291
|
+
for (const [h, _] of f)
|
|
292
|
+
i[h] = _;
|
|
293
|
+
return i;
|
|
294
|
+
}, Mt = /* @__PURE__ */ ae($t, [["__scopeId", "data-v-abe66e59"]]), le = (t) => (t.install = (f) => {
|
|
295
295
|
f.component(t.name || "AnonymousComponent", t);
|
|
296
|
-
}, t), It = le(
|
|
296
|
+
}, t), It = le(Mt), Ht = { class: "form-footer" }, Dt = /* @__PURE__ */ te({
|
|
297
297
|
name: "HbLibListForm",
|
|
298
298
|
__name: "HbListForm",
|
|
299
299
|
props: {
|
|
@@ -324,196 +324,196 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
324
324
|
} }
|
|
325
325
|
},
|
|
326
326
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
327
|
-
setup(t, { expose: f, emit:
|
|
328
|
-
const
|
|
329
|
-
...
|
|
330
|
-
label:
|
|
331
|
-
}))), z = U(() =>
|
|
332
|
-
|
|
327
|
+
setup(t, { expose: f, emit: i }) {
|
|
328
|
+
const h = i, _ = Be("HB_LIST_PAGE_CONTAINER"), g = U(() => d.searchList || []), r = Ne("form"), d = t, b = R("show"), e = U(() => [...d.items]), C = U(() => [...d.items].map((s) => ({
|
|
329
|
+
...s,
|
|
330
|
+
label: s.label?.includes("多项搜索") ? "" : s.label
|
|
331
|
+
}))), z = U(() => d.saveKey), S = R(), N = () => {
|
|
332
|
+
h("handleSearch");
|
|
333
333
|
}, H = () => {
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
},
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
|
|
334
|
+
h("handleReset");
|
|
335
|
+
}, M = R(), a = () => {
|
|
336
|
+
M.value && M.value.toOpenModal();
|
|
337
|
+
}, L = (s) => {
|
|
338
|
+
h("handleMenuClick", s);
|
|
339
|
+
}, $ = (s) => {
|
|
340
|
+
h("handleSfcmConfirm", s);
|
|
341
|
+
}, k = () => {
|
|
342
|
+
b.value = b.value === "show" ? "hide" : "show";
|
|
343
343
|
};
|
|
344
344
|
se(
|
|
345
|
-
() =>
|
|
346
|
-
(
|
|
347
|
-
if (
|
|
348
|
-
console.log(
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
|
|
345
|
+
() => d.isFormExpanded,
|
|
346
|
+
(s) => {
|
|
347
|
+
if (s) {
|
|
348
|
+
console.log(s);
|
|
349
|
+
const x = document.querySelector("#subpackage_container");
|
|
350
|
+
x instanceof HTMLElement && (x.style.overflow = "hidden", setTimeout(() => {
|
|
351
|
+
x.style.overflow = "auto";
|
|
352
352
|
}, 500));
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
);
|
|
356
|
-
const K = (
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
}, v = (
|
|
360
|
-
const
|
|
361
|
-
|
|
356
|
+
const K = (s) => {
|
|
357
|
+
const x = s;
|
|
358
|
+
x.style.height = "", x.offsetHeight;
|
|
359
|
+
}, v = (s) => {
|
|
360
|
+
const x = s;
|
|
361
|
+
x.style.height = "", x.style.overflow = "", ve(() => {
|
|
362
362
|
_.calTableHeight && _.calTableHeight();
|
|
363
363
|
});
|
|
364
|
-
},
|
|
365
|
-
const
|
|
364
|
+
}, p = (s) => {
|
|
365
|
+
const x = s, E = x.querySelector(".hb-lib-form--container");
|
|
366
366
|
if (E) {
|
|
367
367
|
const Q = E.offsetHeight;
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
x.style.height = Q + "px", x.style.overflow = "hidden", x.offsetHeight, requestAnimationFrame(() => {
|
|
369
|
+
x.style.height = "0";
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
},
|
|
372
|
+
}, c = () => {
|
|
373
373
|
ve(() => {
|
|
374
374
|
_.calTableHeight && _.calTableHeight();
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
377
|
return f({
|
|
378
|
-
formRef:
|
|
378
|
+
formRef: S,
|
|
379
379
|
SelectOption: Ae,
|
|
380
|
-
Form:
|
|
381
|
-
FormItem:
|
|
380
|
+
Form: Ge,
|
|
381
|
+
FormItem: Je,
|
|
382
382
|
Row: ft,
|
|
383
|
-
Col:
|
|
384
|
-
Input:
|
|
383
|
+
Col: bt,
|
|
384
|
+
Input: We,
|
|
385
385
|
Select: De,
|
|
386
|
-
CheckboxGroup:
|
|
386
|
+
CheckboxGroup: qe,
|
|
387
387
|
Checkbox: _e,
|
|
388
|
-
DatePicker:
|
|
389
|
-
InputNumber:
|
|
390
|
-
RadioGroup:
|
|
391
|
-
Radio:
|
|
392
|
-
Switch:
|
|
388
|
+
DatePicker: Ke,
|
|
389
|
+
InputNumber: je,
|
|
390
|
+
RadioGroup: Ye,
|
|
391
|
+
Radio: Ve,
|
|
392
|
+
Switch: Ee,
|
|
393
393
|
Button: fe,
|
|
394
394
|
Tooltip: He
|
|
395
|
-
}), (
|
|
395
|
+
}), (s, x) => {
|
|
396
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(
|
|
397
|
+
return o(), F(Y, null, [
|
|
398
398
|
w(nt, {
|
|
399
399
|
name: "form-collapse",
|
|
400
400
|
onEnter: K,
|
|
401
401
|
onAfterEnter: v,
|
|
402
|
-
onLeave:
|
|
403
|
-
onAfterLeave:
|
|
402
|
+
onLeave: p,
|
|
403
|
+
onAfterLeave: c
|
|
404
404
|
}, {
|
|
405
405
|
default: l(() => [
|
|
406
|
-
|
|
407
|
-
class:
|
|
406
|
+
he(m("div", {
|
|
407
|
+
class: j([n(r).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
408
408
|
}, [
|
|
409
|
-
w(n(
|
|
409
|
+
w(n(Ge), ee(s.$attrs, {
|
|
410
410
|
model: t.formData,
|
|
411
411
|
ref_key: "formRef",
|
|
412
|
-
ref:
|
|
413
|
-
class: ["hb-lib-form--container",
|
|
412
|
+
ref: S,
|
|
413
|
+
class: ["hb-lib-form--container", b.value == "show" ? "" : "hide"]
|
|
414
414
|
}), {
|
|
415
415
|
default: l(() => [
|
|
416
|
-
(o(!0), F(
|
|
416
|
+
(o(!0), F(Y, null, ne(C.value, (T, ce) => (o(), B(n(Je), ee({
|
|
417
417
|
key: ce,
|
|
418
418
|
ref_for: !0
|
|
419
|
-
},
|
|
420
|
-
name:
|
|
421
|
-
class:
|
|
422
|
-
}),
|
|
419
|
+
}, T, {
|
|
420
|
+
name: T.key,
|
|
421
|
+
class: T.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
422
|
+
}), Oe({
|
|
423
423
|
default: l(() => [
|
|
424
|
-
|
|
424
|
+
T.type === "slot" ? V(s.$slots, T.key, {
|
|
425
425
|
key: 0,
|
|
426
426
|
formData: t.formData,
|
|
427
|
-
item:
|
|
428
|
-
}, void 0, !0) :
|
|
429
|
-
|
|
427
|
+
item: T
|
|
428
|
+
}, void 0, !0) : O("", !0),
|
|
429
|
+
T.type === "mixin" ? V(s.$slots, T.key, {
|
|
430
430
|
key: 1,
|
|
431
431
|
formData: t.formData,
|
|
432
|
-
item:
|
|
433
|
-
}, void 0, !0) :
|
|
434
|
-
|
|
432
|
+
item: T
|
|
433
|
+
}, void 0, !0) : O("", !0),
|
|
434
|
+
T.type === "input" ? (o(), B(n(We), ee({
|
|
435
435
|
key: 2,
|
|
436
|
-
value: t.formData[
|
|
437
|
-
"onUpdate:value": (
|
|
438
|
-
}, { ref_for: !0 },
|
|
439
|
-
|
|
436
|
+
value: t.formData[T.key],
|
|
437
|
+
"onUpdate:value": (u) => t.formData[T.key] = u
|
|
438
|
+
}, { ref_for: !0 }, T.attrs), null, 16, ["value", "onUpdate:value"])) : O("", !0),
|
|
439
|
+
T.type === "select" ? (o(), B(n(De), ee({
|
|
440
440
|
key: 3,
|
|
441
|
-
value: t.formData[
|
|
442
|
-
"onUpdate:value": (
|
|
443
|
-
}, { ref_for: !0 },
|
|
441
|
+
value: t.formData[T.key],
|
|
442
|
+
"onUpdate:value": (u) => t.formData[T.key] = u
|
|
443
|
+
}, { ref_for: !0 }, T.attrs), {
|
|
444
444
|
default: l(() => [
|
|
445
|
-
(o(!0), F(
|
|
445
|
+
(o(!0), F(Y, null, ne(T.options, (u, D) => (o(), B(n(Ae), {
|
|
446
446
|
key: D,
|
|
447
|
-
value:
|
|
447
|
+
value: u.value
|
|
448
448
|
}, {
|
|
449
449
|
default: l(() => [
|
|
450
|
-
I(
|
|
450
|
+
I(y(u.label), 1)
|
|
451
451
|
]),
|
|
452
452
|
_: 2
|
|
453
453
|
}, 1032, ["value"]))), 128))
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
457
|
-
|
|
456
|
+
}, 1040, ["value", "onUpdate:value"])) : O("", !0),
|
|
457
|
+
T.type === "checkbox" ? (o(), B(n(qe), ee({
|
|
458
458
|
key: 4,
|
|
459
|
-
value: t.formData[
|
|
460
|
-
"onUpdate:value": (
|
|
461
|
-
}, { ref_for: !0 },
|
|
459
|
+
value: t.formData[T.key],
|
|
460
|
+
"onUpdate:value": (u) => t.formData[T.key] = u
|
|
461
|
+
}, { ref_for: !0 }, T.attrs), {
|
|
462
462
|
default: l(() => [
|
|
463
|
-
(o(!0), F(
|
|
463
|
+
(o(!0), F(Y, null, ne(T.options, (u, D) => (o(), B(n(_e), {
|
|
464
464
|
key: D,
|
|
465
|
-
value:
|
|
465
|
+
value: u.value
|
|
466
466
|
}, {
|
|
467
467
|
default: l(() => [
|
|
468
|
-
I(
|
|
468
|
+
I(y(u.label), 1)
|
|
469
469
|
]),
|
|
470
470
|
_: 2
|
|
471
471
|
}, 1032, ["value"]))), 128))
|
|
472
472
|
]),
|
|
473
473
|
_: 2
|
|
474
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
475
|
-
|
|
474
|
+
}, 1040, ["value", "onUpdate:value"])) : O("", !0),
|
|
475
|
+
T.type === "date-picker" ? (o(), B(n(Ke), ee({
|
|
476
476
|
key: 5,
|
|
477
|
-
value: t.formData[
|
|
478
|
-
"onUpdate:value": (
|
|
479
|
-
}, { ref_for: !0 },
|
|
480
|
-
|
|
477
|
+
value: t.formData[T.key],
|
|
478
|
+
"onUpdate:value": (u) => t.formData[T.key] = u
|
|
479
|
+
}, { ref_for: !0 }, T.attrs), null, 16, ["value", "onUpdate:value"])) : O("", !0),
|
|
480
|
+
T.type === "input-number" ? (o(), B(n(je), ee({
|
|
481
481
|
key: 6,
|
|
482
|
-
value: t.formData[
|
|
483
|
-
"onUpdate:value": (
|
|
484
|
-
}, { ref_for: !0 },
|
|
485
|
-
|
|
482
|
+
value: t.formData[T.key],
|
|
483
|
+
"onUpdate:value": (u) => t.formData[T.key] = u
|
|
484
|
+
}, { ref_for: !0 }, T.attrs), null, 16, ["value", "onUpdate:value"])) : O("", !0),
|
|
485
|
+
T.type === "radio" ? (o(), B(n(Ye), ee({
|
|
486
486
|
key: 7,
|
|
487
|
-
value: t.formData[
|
|
488
|
-
"onUpdate:value": (
|
|
489
|
-
}, { ref_for: !0 },
|
|
487
|
+
value: t.formData[T.key],
|
|
488
|
+
"onUpdate:value": (u) => t.formData[T.key] = u
|
|
489
|
+
}, { ref_for: !0 }, T.attrs), {
|
|
490
490
|
default: l(() => [
|
|
491
|
-
(o(!0), F(
|
|
491
|
+
(o(!0), F(Y, null, ne(T.options, (u, D) => (o(), B(n(Ve), {
|
|
492
492
|
key: D,
|
|
493
|
-
value:
|
|
493
|
+
value: u.value
|
|
494
494
|
}, {
|
|
495
495
|
default: l(() => [
|
|
496
|
-
I(
|
|
496
|
+
I(y(u.label), 1)
|
|
497
497
|
]),
|
|
498
498
|
_: 2
|
|
499
499
|
}, 1032, ["value"]))), 128))
|
|
500
500
|
]),
|
|
501
501
|
_: 2
|
|
502
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
503
|
-
|
|
502
|
+
}, 1040, ["value", "onUpdate:value"])) : O("", !0),
|
|
503
|
+
T.type === "switch" ? (o(), B(n(Ee), ee({
|
|
504
504
|
key: 8,
|
|
505
|
-
checked: t.formData[
|
|
506
|
-
"onUpdate:checked": (
|
|
507
|
-
}, { ref_for: !0 },
|
|
505
|
+
checked: t.formData[T.key],
|
|
506
|
+
"onUpdate:checked": (u) => t.formData[T.key] = u
|
|
507
|
+
}, { ref_for: !0 }, T.attrs), null, 16, ["checked", "onUpdate:checked"])) : O("", !0)
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, [
|
|
511
|
-
|
|
511
|
+
T.tooltip ? {
|
|
512
512
|
name: "label",
|
|
513
513
|
fn: l(() => [
|
|
514
|
-
I(
|
|
514
|
+
I(y(T.label) + " ", 1),
|
|
515
515
|
w(n(He), {
|
|
516
|
-
title:
|
|
516
|
+
title: T.tooltip
|
|
517
517
|
}, {
|
|
518
518
|
default: l(() => [
|
|
519
519
|
w(n(gt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
@@ -531,10 +531,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
531
531
|
class: "hb_list_page_button"
|
|
532
532
|
}, {
|
|
533
533
|
icon: l(() => [
|
|
534
|
-
w(n(
|
|
534
|
+
w(n(Pe))
|
|
535
535
|
]),
|
|
536
536
|
default: l(() => [
|
|
537
|
-
I(" " +
|
|
537
|
+
I(" " + y(s.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
538
538
|
]),
|
|
539
539
|
_: 1
|
|
540
540
|
}),
|
|
@@ -543,19 +543,19 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
543
543
|
onClick: H
|
|
544
544
|
}, {
|
|
545
545
|
default: l(() => [
|
|
546
|
-
I(
|
|
546
|
+
I(y(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
547
547
|
]),
|
|
548
548
|
_: 1
|
|
549
549
|
}),
|
|
550
|
-
t.needFilter ? (o(),
|
|
550
|
+
t.needFilter ? (o(), B(Q, {
|
|
551
551
|
key: 0,
|
|
552
|
-
title:
|
|
552
|
+
title: s.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
553
553
|
}, {
|
|
554
554
|
default: l(() => [
|
|
555
555
|
m("span", {
|
|
556
556
|
class: "hb-lib-form-svg",
|
|
557
557
|
onClick: a
|
|
558
|
-
}, [...
|
|
558
|
+
}, [...x[0] || (x[0] = [
|
|
559
559
|
m("svg", {
|
|
560
560
|
t: "1757915025410",
|
|
561
561
|
class: "icon",
|
|
@@ -575,29 +575,29 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
575
575
|
])])
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
|
-
}, 8, ["title"])) :
|
|
579
|
-
|
|
580
|
-
t.needSearchCase ? (o(),
|
|
578
|
+
}, 8, ["title"])) : O("", !0),
|
|
579
|
+
V(s.$slots, "formBtns", {}, () => [
|
|
580
|
+
t.needSearchCase ? (o(), B(q, { key: 0 }, {
|
|
581
581
|
overlay: l(() => [
|
|
582
|
-
w(J, { onClick:
|
|
582
|
+
w(J, { onClick: L }, {
|
|
583
583
|
default: l(() => [
|
|
584
|
-
(o(!0), F(
|
|
585
|
-
key:
|
|
584
|
+
(o(!0), F(Y, null, ne(g.value, (T) => (o(), B(ie, {
|
|
585
|
+
key: T.id
|
|
586
586
|
}, {
|
|
587
587
|
default: l(() => [
|
|
588
|
-
I(
|
|
588
|
+
I(y(T.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(y(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(y(s.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
601
601
|
]),
|
|
602
602
|
_: 1
|
|
603
603
|
})
|
|
@@ -607,9 +607,9 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
607
607
|
]),
|
|
608
608
|
default: l(() => [
|
|
609
609
|
w(Q, {
|
|
610
|
-
title:
|
|
610
|
+
title: s.$t("hbLibComp.hbLibListForm.queryCase")
|
|
611
611
|
}, {
|
|
612
|
-
default: l(() => [...
|
|
612
|
+
default: l(() => [...x[1] || (x[1] = [
|
|
613
613
|
m("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
614
614
|
m("svg", {
|
|
615
615
|
t: "1765936014161",
|
|
@@ -641,7 +641,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
641
641
|
}, 8, ["title"])
|
|
642
642
|
]),
|
|
643
643
|
_: 1
|
|
644
|
-
})) :
|
|
644
|
+
})) : O("", !0)
|
|
645
645
|
], !0)
|
|
646
646
|
])
|
|
647
647
|
]),
|
|
@@ -649,26 +649,26 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
649
649
|
}, 16, ["model", "class"]),
|
|
650
650
|
t.needFooter ? (o(), F("div", {
|
|
651
651
|
key: 0,
|
|
652
|
-
class:
|
|
652
|
+
class: j(n(r).e("footer"))
|
|
653
653
|
}, [
|
|
654
654
|
m("div", {
|
|
655
|
-
class:
|
|
655
|
+
class: j(n(r).e("footer__left"))
|
|
656
656
|
}, [
|
|
657
|
-
|
|
657
|
+
V(s.$slots, "form-footer-left", {}, void 0, !0)
|
|
658
658
|
], 2),
|
|
659
659
|
m("div", {
|
|
660
|
-
class:
|
|
660
|
+
class: j(n(r).e("footer__right"))
|
|
661
661
|
}, [
|
|
662
|
-
|
|
662
|
+
b.value == "show" ? V(s.$slots, "form-footer-right", {
|
|
663
663
|
key: 0,
|
|
664
|
-
formRef:
|
|
664
|
+
formRef: S.value
|
|
665
665
|
}, () => [
|
|
666
666
|
w(n(fe), {
|
|
667
667
|
type: "primary",
|
|
668
668
|
onClick: H
|
|
669
669
|
}, {
|
|
670
670
|
default: l(() => [
|
|
671
|
-
I(
|
|
671
|
+
I(y(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}),
|
|
@@ -677,22 +677,22 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
677
677
|
onClick: N
|
|
678
678
|
}, {
|
|
679
679
|
default: l(() => [
|
|
680
|
-
I(
|
|
680
|
+
I(y(s.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
681
681
|
]),
|
|
682
682
|
_: 1
|
|
683
683
|
})
|
|
684
|
-
], !0) :
|
|
684
|
+
], !0) : O("", !0),
|
|
685
685
|
w(n(fe), {
|
|
686
686
|
type: "primary",
|
|
687
|
-
onClick:
|
|
687
|
+
onClick: k
|
|
688
688
|
}, {
|
|
689
689
|
default: l(() => [
|
|
690
|
-
I(
|
|
690
|
+
I(y(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
|
-
], 2)) :
|
|
695
|
+
], 2)) : O("", !0)
|
|
696
696
|
], 2), [
|
|
697
697
|
[st, t.isFormExpanded]
|
|
698
698
|
])
|
|
@@ -702,14 +702,14 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
702
702
|
w(oe, {
|
|
703
703
|
list: e.value,
|
|
704
704
|
ref_key: "HbSfCmRef",
|
|
705
|
-
ref:
|
|
706
|
-
onConfirm:
|
|
705
|
+
ref: M,
|
|
706
|
+
onConfirm: $,
|
|
707
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"]]), zt = le(At),
|
|
712
|
+
}), At = /* @__PURE__ */ ae(Dt, [["__scopeId", "data-v-04ccb514"]]), zt = le(At), Bt = { class: "hb-lib-list-page-act-box" }, Ot = { 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,40 +736,40 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
736
736
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
737
737
|
},
|
|
738
738
|
setup(t) {
|
|
739
|
-
const f =
|
|
740
|
-
const
|
|
741
|
-
let
|
|
742
|
-
if (
|
|
743
|
-
let
|
|
744
|
-
|
|
739
|
+
const f = Be("HB_LIST_PAGE_CONTAINER"), { isFullscreen: i, toggle: h } = kt(f.PageContainerRef), _ = R(""), g = () => {
|
|
740
|
+
const d = at();
|
|
741
|
+
let b = localStorage.getItem("BreadCrumb") || "[]", e = d?.path;
|
|
742
|
+
if (b !== "[]") {
|
|
743
|
+
let C = JSON.parse(b).find((z) => z.value === e);
|
|
744
|
+
C && (_.value = C.label.replace(/-/g, " / "));
|
|
745
745
|
}
|
|
746
746
|
};
|
|
747
747
|
me(() => {
|
|
748
748
|
g();
|
|
749
749
|
});
|
|
750
|
-
const
|
|
751
|
-
|
|
750
|
+
const r = (d) => {
|
|
751
|
+
d.keyCode === 192 && h();
|
|
752
752
|
};
|
|
753
753
|
return me(() => {
|
|
754
|
-
window.addEventListener("keydown",
|
|
755
|
-
}),
|
|
756
|
-
window.removeEventListener("keydown",
|
|
757
|
-
}), (
|
|
754
|
+
window.addEventListener("keydown", r);
|
|
755
|
+
}), Re(() => {
|
|
756
|
+
window.removeEventListener("keydown", r);
|
|
757
|
+
}), (d, b) => {
|
|
758
758
|
const e = P("a-tooltip");
|
|
759
|
-
return o(), F("section",
|
|
760
|
-
m("aside",
|
|
759
|
+
return o(), F("section", Bt, [
|
|
760
|
+
m("aside", Ot, y(_.value), 1),
|
|
761
761
|
m("aside", Rt, [
|
|
762
762
|
w(e, {
|
|
763
|
-
title: n(
|
|
763
|
+
title: n(i) ? `${d.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${d.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
764
764
|
placement: "leftTop"
|
|
765
765
|
}, {
|
|
766
766
|
default: l(() => [
|
|
767
767
|
m("span", {
|
|
768
768
|
class: "hb-lib-list-page-act-svg",
|
|
769
|
-
onClick:
|
|
770
|
-
(...
|
|
769
|
+
onClick: b[0] || (b[0] = //@ts-ignore
|
|
770
|
+
(...C) => n(h) && n(h)(...C))
|
|
771
771
|
}, [
|
|
772
|
-
n(
|
|
772
|
+
n(i) ? (o(), F("svg", Nt, [...b[2] || (b[2] = [
|
|
773
773
|
m("path", {
|
|
774
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",
|
|
775
775
|
fill: "#ff5000",
|
|
@@ -785,7 +785,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
785
785
|
fill: "#ff5000",
|
|
786
786
|
"p-id": "23907"
|
|
787
787
|
}, null, -1)
|
|
788
|
-
])])) : (o(), F("svg", Pt, [...
|
|
788
|
+
])])) : (o(), F("svg", Pt, [...b[1] || (b[1] = [
|
|
789
789
|
m("path", {
|
|
790
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",
|
|
791
791
|
fill: "#ff5000",
|
|
@@ -796,7 +796,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
796
796
|
]),
|
|
797
797
|
_: 1
|
|
798
798
|
}, 8, ["title"]),
|
|
799
|
-
|
|
799
|
+
V(d.$slots, "listAct", {}, void 0, !0)
|
|
800
800
|
])
|
|
801
801
|
]);
|
|
802
802
|
};
|
|
@@ -810,33 +810,32 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
810
810
|
},
|
|
811
811
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
812
812
|
setup(t, { emit: f }) {
|
|
813
|
-
const
|
|
814
|
-
|
|
813
|
+
const i = f, h = R(!0), _ = () => {
|
|
814
|
+
h.value = !h.value, i("handleOpenOrClose", h.value);
|
|
815
815
|
}, g = () => {
|
|
816
|
-
|
|
817
|
-
},
|
|
818
|
-
console.log("keyCode:", s.keyCode), s.keyCode === 16 && _();
|
|
816
|
+
i("handleReload");
|
|
817
|
+
}, r = (d) => {
|
|
819
818
|
};
|
|
820
819
|
return me(() => {
|
|
821
|
-
window.addEventListener("keydown",
|
|
822
|
-
}),
|
|
823
|
-
window.removeEventListener("keydown",
|
|
824
|
-
}), (
|
|
820
|
+
window.addEventListener("keydown", r);
|
|
821
|
+
}), Re(() => {
|
|
822
|
+
window.removeEventListener("keydown", r);
|
|
823
|
+
}), (d, b) => {
|
|
825
824
|
const e = P("a-tooltip");
|
|
826
825
|
return o(), F("section", Yt, [
|
|
827
826
|
m("aside", jt, [
|
|
828
|
-
|
|
827
|
+
V(d.$slots, "btnsLeft", {}, void 0, !0)
|
|
829
828
|
]),
|
|
830
829
|
m("aside", Kt, [
|
|
831
|
-
t.needReload ? (o(),
|
|
830
|
+
t.needReload ? (o(), B(e, {
|
|
832
831
|
key: 0,
|
|
833
|
-
title:
|
|
832
|
+
title: d.$t("hbLibComp.hbListBtnsAct.reload")
|
|
834
833
|
}, {
|
|
835
834
|
default: l(() => [
|
|
836
835
|
m("span", {
|
|
837
836
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
838
837
|
onClick: g
|
|
839
|
-
}, [...
|
|
838
|
+
}, [...b[0] || (b[0] = [
|
|
840
839
|
m("svg", {
|
|
841
840
|
t: "1759041224819",
|
|
842
841
|
class: "icon",
|
|
@@ -856,107 +855,107 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
856
855
|
])])
|
|
857
856
|
]),
|
|
858
857
|
_: 1
|
|
859
|
-
}, 8, ["title"])) :
|
|
860
|
-
t.needOpenOrClose ? (o(),
|
|
858
|
+
}, 8, ["title"])) : O("", !0),
|
|
859
|
+
t.needOpenOrClose ? (o(), B(e, {
|
|
861
860
|
key: 1,
|
|
862
|
-
title:
|
|
861
|
+
title: h.value ? `${d.$t("hbLibComp.hbListBtnsAct.close")}` : `${d.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
863
862
|
}, {
|
|
864
863
|
default: l(() => [
|
|
865
864
|
m("span", {
|
|
866
865
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
867
866
|
onClick: _
|
|
868
867
|
}, [
|
|
869
|
-
|
|
868
|
+
h.value ? (o(), B(n(yt), {
|
|
870
869
|
key: 0,
|
|
871
870
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
872
|
-
})) : (o(),
|
|
871
|
+
})) : (o(), B(n(Ct), {
|
|
873
872
|
key: 1,
|
|
874
873
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
875
874
|
}))
|
|
876
875
|
])
|
|
877
876
|
]),
|
|
878
877
|
_: 1
|
|
879
|
-
}, 8, ["title"])) :
|
|
880
|
-
|
|
878
|
+
}, 8, ["title"])) : O("", !0),
|
|
879
|
+
V(d.$slots, "btnsRight", {}, void 0, !0)
|
|
881
880
|
])
|
|
882
881
|
]);
|
|
883
882
|
};
|
|
884
883
|
}
|
|
885
|
-
}), Wt = /* @__PURE__ */ ae(qt, [["__scopeId", "data-v-
|
|
886
|
-
const { formRef: f, offsetBottom:
|
|
887
|
-
let g = null,
|
|
888
|
-
const
|
|
884
|
+
}), Wt = /* @__PURE__ */ ae(qt, [["__scopeId", "data-v-de62f20a"]]), Jt = le(Wt), Gt = (t = {}) => {
|
|
885
|
+
const { formRef: f, offsetBottom: i = 50, minHeight: h = 300 } = t, _ = R(0);
|
|
886
|
+
let g = null, r = null, d = null, b = null, e = null;
|
|
887
|
+
const C = () => {
|
|
889
888
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
890
889
|
requestAnimationFrame(() => {
|
|
891
890
|
ve(() => {
|
|
892
|
-
const
|
|
893
|
-
if (
|
|
894
|
-
const
|
|
895
|
-
let
|
|
896
|
-
|
|
891
|
+
const L = document.querySelector(".ant-table"), $ = document.querySelector(".ant-pagination");
|
|
892
|
+
if (L) {
|
|
893
|
+
const k = L.getBoundingClientRect().top, K = window.innerHeight, p = ($ ? $.offsetHeight + 20 : 40) + i;
|
|
894
|
+
let c = K - k - p;
|
|
895
|
+
c < h && (c = h), _.value = c;
|
|
897
896
|
}
|
|
898
897
|
});
|
|
899
898
|
});
|
|
900
899
|
}, 100);
|
|
901
900
|
}, z = () => {
|
|
902
|
-
const
|
|
903
|
-
if (
|
|
904
|
-
const
|
|
905
|
-
|
|
901
|
+
const L = document.querySelector(".ant-pagination");
|
|
902
|
+
if (L) {
|
|
903
|
+
const $ = new MutationObserver(() => {
|
|
904
|
+
C();
|
|
906
905
|
});
|
|
907
|
-
return
|
|
906
|
+
return $.observe(L, {
|
|
908
907
|
childList: !0,
|
|
909
908
|
subtree: !0,
|
|
910
909
|
attributes: !0,
|
|
911
910
|
attributeFilter: ["style", "class"]
|
|
912
|
-
}),
|
|
911
|
+
}), $;
|
|
913
912
|
}
|
|
914
913
|
return null;
|
|
915
|
-
},
|
|
916
|
-
const
|
|
917
|
-
|
|
918
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
919
|
-
|
|
920
|
-
}),
|
|
921
|
-
}), g.observe(
|
|
914
|
+
}, S = () => {
|
|
915
|
+
const L = document.querySelector(".hb-lib-list-page-form-box");
|
|
916
|
+
L && (g = new ResizeObserver(() => {
|
|
917
|
+
document.querySelectorAll(".ant-tooltip").forEach((k) => {
|
|
918
|
+
k.style.display = "none";
|
|
919
|
+
}), C();
|
|
920
|
+
}), g.observe(L));
|
|
922
921
|
}, N = () => {
|
|
923
|
-
const
|
|
924
|
-
|
|
922
|
+
const L = document.querySelector(".hb-lib-list-page-form-box");
|
|
923
|
+
L && (d = new MutationObserver(() => {
|
|
925
924
|
setTimeout(() => {
|
|
926
|
-
|
|
925
|
+
C();
|
|
927
926
|
}, 100);
|
|
928
|
-
}),
|
|
927
|
+
}), d.observe(L, {
|
|
929
928
|
childList: !0,
|
|
930
929
|
subtree: !0,
|
|
931
930
|
attributes: !0,
|
|
932
931
|
attributeFilter: ["style", "class"]
|
|
933
932
|
}));
|
|
934
933
|
}, H = () => {
|
|
935
|
-
|
|
936
|
-
|
|
934
|
+
b && clearTimeout(b), b = setTimeout(() => {
|
|
935
|
+
C();
|
|
937
936
|
}, 100);
|
|
938
|
-
},
|
|
937
|
+
}, M = () => {
|
|
939
938
|
window.addEventListener("resize", H), ve(() => {
|
|
940
|
-
|
|
939
|
+
S(), N(), r = z();
|
|
941
940
|
});
|
|
942
941
|
}, a = () => {
|
|
943
|
-
window.removeEventListener("resize", H), g && g.disconnect(),
|
|
942
|
+
window.removeEventListener("resize", H), g && g.disconnect(), d && d.disconnect(), r && r.disconnect(), b && clearTimeout(b), e && clearTimeout(e);
|
|
944
943
|
};
|
|
945
944
|
return f && se(
|
|
946
945
|
() => f,
|
|
947
946
|
() => {
|
|
948
947
|
setTimeout(() => {
|
|
949
|
-
|
|
948
|
+
C();
|
|
950
949
|
}, 200);
|
|
951
950
|
},
|
|
952
951
|
{ deep: !0 }
|
|
953
952
|
), me(() => {
|
|
954
|
-
|
|
955
|
-
}),
|
|
953
|
+
C(), M();
|
|
954
|
+
}), Re(() => {
|
|
956
955
|
a();
|
|
957
956
|
}), {
|
|
958
957
|
tableHeight: _,
|
|
959
|
-
calTableHeight:
|
|
958
|
+
calTableHeight: C
|
|
960
959
|
};
|
|
961
960
|
}, Qt = /* @__PURE__ */ te({
|
|
962
961
|
name: "HbLibListPageContainer",
|
|
@@ -968,23 +967,23 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
968
967
|
minHeight: {}
|
|
969
968
|
},
|
|
970
969
|
setup(t) {
|
|
971
|
-
const f = t,
|
|
970
|
+
const f = t, i = it("PageContainerRef"), { calTableHeight: h, tableHeight: _ } = Gt({
|
|
972
971
|
offsetBottom: f.offsetBottom || 20,
|
|
973
972
|
// 底部预留空间
|
|
974
973
|
minHeight: f.minHeight || 300
|
|
975
974
|
// table最小高度 请勿随便修改!!
|
|
976
975
|
}), g = U(() => _.value);
|
|
977
976
|
return rt("HB_LIST_PAGE_CONTAINER", {
|
|
978
|
-
PageContainerRef:
|
|
977
|
+
PageContainerRef: i,
|
|
979
978
|
// 通过函数访问,
|
|
980
979
|
tableHeight: _,
|
|
981
|
-
calTableHeight:
|
|
982
|
-
}), (
|
|
980
|
+
calTableHeight: h
|
|
981
|
+
}), (r, d) => (o(), F("section", {
|
|
983
982
|
class: "hb-lib-list-page-container",
|
|
984
983
|
ref_key: "PageContainerRef",
|
|
985
|
-
ref:
|
|
984
|
+
ref: i
|
|
986
985
|
}, [
|
|
987
|
-
|
|
986
|
+
V(r.$slots, "header"),
|
|
988
987
|
m("section", {
|
|
989
988
|
class: "list-page-box",
|
|
990
989
|
style: ke({
|
|
@@ -992,7 +991,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
992
991
|
"--hb-list-ttable-height": t.tabelData.length ? "" : g.value - f.offsetBottom + "px"
|
|
993
992
|
})
|
|
994
993
|
}, [
|
|
995
|
-
|
|
994
|
+
V(r.$slots, "default")
|
|
996
995
|
], 4)
|
|
997
996
|
], 512));
|
|
998
997
|
}
|
|
@@ -1011,7 +1010,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1011
1010
|
}, ul = { class: "hb-lib-footer-buttons" }, pl = /* @__PURE__ */ te({
|
|
1012
1011
|
name: "HbLibListMultiSelect",
|
|
1013
1012
|
__name: "HbListMultiSelect",
|
|
1014
|
-
props: /* @__PURE__ */
|
|
1013
|
+
props: /* @__PURE__ */ $e({
|
|
1015
1014
|
placeholder: { default: "点击选择" },
|
|
1016
1015
|
searchPlaceholder: { default: "搜索选项" },
|
|
1017
1016
|
width: { default: 600 },
|
|
@@ -1027,71 +1026,71 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1027
1026
|
value: {},
|
|
1028
1027
|
valueModifiers: {}
|
|
1029
1028
|
}),
|
|
1030
|
-
emits: /* @__PURE__ */
|
|
1029
|
+
emits: /* @__PURE__ */ $e(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1031
1030
|
setup(t, { emit: f }) {
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
const v =
|
|
1035
|
-
return
|
|
1036
|
-
}),
|
|
1031
|
+
const i = t, h = f, _ = ot(t, "value"), g = R(!1), r = R(""), d = R([]), b = R(), e = U(() => {
|
|
1032
|
+
if (i.remoteSearch || !r.value) return i.options;
|
|
1033
|
+
const v = r.value.toLowerCase();
|
|
1034
|
+
return i.options.filter((p) => p.label.toLowerCase().includes(v) || p.description?.toLowerCase().includes(v));
|
|
1035
|
+
}), C = 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))), S = U(() => {
|
|
1037
1036
|
if (e.value.length === 0) return !1;
|
|
1038
|
-
const v = e.value.filter((
|
|
1037
|
+
const v = e.value.filter((p) => d.value.includes(p.value)).length;
|
|
1039
1038
|
return v > 0 && v < e.value.length;
|
|
1040
1039
|
});
|
|
1041
1040
|
se(
|
|
1042
1041
|
() => _.value,
|
|
1043
1042
|
(v) => {
|
|
1044
|
-
v ?
|
|
1043
|
+
v ? d.value = Array.isArray(v) ? [...v] : [v] : d.value = [];
|
|
1045
1044
|
},
|
|
1046
1045
|
{ immediate: !0 }
|
|
1047
1046
|
), se(
|
|
1048
|
-
() =>
|
|
1047
|
+
() => i.searchValue,
|
|
1049
1048
|
(v) => {
|
|
1050
|
-
|
|
1049
|
+
i.remoteSearch && v !== void 0 && (r.value = v);
|
|
1051
1050
|
},
|
|
1052
1051
|
{ immediate: !0 }
|
|
1053
1052
|
);
|
|
1054
1053
|
const N = (v) => {
|
|
1055
|
-
v && (g.value = v, H.value = [...
|
|
1056
|
-
if (
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1054
|
+
v && (g.value = v, H.value = [...d.value], r.value = "", setTimeout(() => {
|
|
1055
|
+
if (b.value) {
|
|
1056
|
+
const p = b.value.input || b.value.$el?.querySelector("input");
|
|
1057
|
+
p && p.focus();
|
|
1059
1058
|
}
|
|
1060
1059
|
}, 100));
|
|
1061
|
-
}, H = R([]),
|
|
1062
|
-
|
|
1063
|
-
}, a = R([]),
|
|
1064
|
-
const v =
|
|
1065
|
-
a.value =
|
|
1066
|
-
},
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1069
|
-
}, 300),
|
|
1070
|
-
if (
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1060
|
+
}, H = R([]), M = () => {
|
|
1061
|
+
d.value = [...H.value], g.value = !1, h("cancel");
|
|
1062
|
+
}, a = R([]), L = () => {
|
|
1063
|
+
const v = i.multiple ? d.value : d.value[0] || "", p = i.options.filter((c) => d.value.includes(c.value));
|
|
1064
|
+
a.value = p, console.log(v, p), H.value = [...d.value], _.value = v, h("update:value", v), h("change", v, p), h("confirm", v, p), g.value = !1;
|
|
1065
|
+
}, $ = St((v) => {
|
|
1066
|
+
const p = v !== void 0 ? v : r.value;
|
|
1067
|
+
i.remoteSearch && (h("search", p), h("update:searchValue", p));
|
|
1068
|
+
}, 300), k = (v) => {
|
|
1069
|
+
if (i.multiple) {
|
|
1070
|
+
const p = new Set(d.value);
|
|
1071
|
+
p.has(v.value) ? p.delete(v.value) : p.add(v.value), d.value = Array.from(p);
|
|
1073
1072
|
} else
|
|
1074
|
-
|
|
1073
|
+
d.value = [v.value], L();
|
|
1075
1074
|
}, K = (v) => {
|
|
1076
1075
|
if (v.target.checked) {
|
|
1077
|
-
const
|
|
1078
|
-
e.value.forEach((
|
|
1079
|
-
|
|
1080
|
-
}),
|
|
1076
|
+
const c = new Set(d.value);
|
|
1077
|
+
e.value.forEach((s) => {
|
|
1078
|
+
c.add(s.value);
|
|
1079
|
+
}), d.value = Array.from(c);
|
|
1081
1080
|
} else {
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1081
|
+
const c = new Set(e.value.map((s) => s.value));
|
|
1082
|
+
d.value = d.value.filter((s) => !c.has(s));
|
|
1084
1083
|
}
|
|
1085
1084
|
};
|
|
1086
|
-
return (v,
|
|
1087
|
-
const
|
|
1085
|
+
return (v, p) => {
|
|
1086
|
+
const c = P("a-tag"), s = P("a-input"), x = P("a-checkbox"), E = P("a-radio"), Q = P("a-button"), ie = P("a-select");
|
|
1088
1087
|
return o(), F("div", ee({
|
|
1089
1088
|
class: "hb-lib-selector-wrapper",
|
|
1090
|
-
style: { "--prefix-width":
|
|
1089
|
+
style: { "--prefix-width": C.value }
|
|
1091
1090
|
}, v.$attrs), [
|
|
1092
1091
|
w(ie, {
|
|
1093
1092
|
value: _.value,
|
|
1094
|
-
"onUpdate:value":
|
|
1093
|
+
"onUpdate:value": p[5] || (p[5] = (J) => _.value = J),
|
|
1095
1094
|
mode: t.multiple ? "multiple" : void 0,
|
|
1096
1095
|
placeholder: t.placeholder,
|
|
1097
1096
|
"show-search": !0,
|
|
@@ -1101,20 +1100,20 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1101
1100
|
maxTagCount: t.maxTagCount,
|
|
1102
1101
|
options: e.value,
|
|
1103
1102
|
onDropdownVisibleChange: N,
|
|
1104
|
-
onSearch: n(
|
|
1103
|
+
onSearch: n($),
|
|
1105
1104
|
"max-tag-text-length": t.tagTextLength,
|
|
1106
|
-
class:
|
|
1105
|
+
class: j({ "has-prefix": t.prefix }),
|
|
1107
1106
|
"data-prefix": t.prefix,
|
|
1108
1107
|
style: { width: "100%" }
|
|
1109
1108
|
}, {
|
|
1110
|
-
tagRender: l(({ value: J, label: q, closable: oe, option:
|
|
1111
|
-
w(
|
|
1109
|
+
tagRender: l(({ value: J, label: q, closable: oe, option: T }) => [
|
|
1110
|
+
w(c, {
|
|
1112
1111
|
class: "hb-lib-search-tag",
|
|
1113
|
-
onClick:
|
|
1112
|
+
onClick: p[0] || (p[0] = () => N(!0))
|
|
1114
1113
|
}, {
|
|
1115
1114
|
default: l(() => [
|
|
1116
|
-
m("span", Xt,
|
|
1117
|
-
|
|
1115
|
+
m("span", Xt, y(q), 1),
|
|
1116
|
+
T?.description ? (o(), F("span", el, " (" + y(T.description) + ") ", 1)) : O("", !0)
|
|
1118
1117
|
]),
|
|
1119
1118
|
_: 2
|
|
1120
1119
|
}, 1024)
|
|
@@ -1122,88 +1121,88 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1122
1121
|
dropdownRender: l(({ menuNode: J }) => [
|
|
1123
1122
|
m("div", tl, [
|
|
1124
1123
|
m("div", ll, [
|
|
1125
|
-
w(
|
|
1124
|
+
w(s, {
|
|
1126
1125
|
ref_key: "searchInputRef",
|
|
1127
|
-
ref:
|
|
1126
|
+
ref: b,
|
|
1128
1127
|
class: "hb-lib-selector-search-input",
|
|
1129
|
-
value:
|
|
1130
|
-
"onUpdate:value":
|
|
1128
|
+
value: r.value,
|
|
1129
|
+
"onUpdate:value": p[1] || (p[1] = (q) => r.value = q),
|
|
1131
1130
|
placeholder: "请输入关键词搜索",
|
|
1132
1131
|
"allow-clear": "",
|
|
1133
|
-
onInput:
|
|
1132
|
+
onInput: p[2] || (p[2] = (q) => n($)(q.target.value))
|
|
1134
1133
|
}, {
|
|
1135
1134
|
prefix: l(() => [
|
|
1136
|
-
w(n(
|
|
1135
|
+
w(n(Pe))
|
|
1137
1136
|
]),
|
|
1138
1137
|
_: 1
|
|
1139
1138
|
}, 8, ["value"])
|
|
1140
1139
|
]),
|
|
1141
1140
|
m("div", ol, [
|
|
1142
|
-
(o(!0), F(
|
|
1141
|
+
(o(!0), F(Y, null, ne(e.value, (q) => (o(), F("div", {
|
|
1143
1142
|
key: q.value,
|
|
1144
|
-
class:
|
|
1145
|
-
onClick: () =>
|
|
1143
|
+
class: j(["hb-lib-selector-option", { selected: d.value.includes(q.value) }]),
|
|
1144
|
+
onClick: () => k(q)
|
|
1146
1145
|
}, [
|
|
1147
|
-
t.multiple ? (o(),
|
|
1146
|
+
t.multiple ? (o(), B(x, {
|
|
1148
1147
|
key: 0,
|
|
1149
|
-
checked:
|
|
1150
|
-
onChange: () =>
|
|
1151
|
-
onClick:
|
|
1148
|
+
checked: d.value.includes(q.value),
|
|
1149
|
+
onChange: () => k(q),
|
|
1150
|
+
onClick: p[3] || (p[3] = Me(() => {
|
|
1152
1151
|
}, ["stop"]))
|
|
1153
|
-
}, null, 8, ["checked", "onChange"])) : (o(),
|
|
1152
|
+
}, null, 8, ["checked", "onChange"])) : (o(), B(E, {
|
|
1154
1153
|
key: 1,
|
|
1155
|
-
checked:
|
|
1156
|
-
onChange: () =>
|
|
1157
|
-
onClick:
|
|
1154
|
+
checked: d.value.includes(q.value),
|
|
1155
|
+
onChange: () => k(q),
|
|
1156
|
+
onClick: p[4] || (p[4] = Me(() => {
|
|
1158
1157
|
}, ["stop"]))
|
|
1159
1158
|
}, null, 8, ["checked", "onChange"])),
|
|
1160
1159
|
m("div", nl, [
|
|
1161
|
-
m("div", sl,
|
|
1160
|
+
m("div", sl, y(q.label), 1)
|
|
1162
1161
|
])
|
|
1163
1162
|
], 10, al))), 128))
|
|
1164
1163
|
]),
|
|
1165
|
-
e.value.length === 0 ? (o(), F("div", il,
|
|
1164
|
+
e.value.length === 0 ? (o(), F("div", il, y(v.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : O("", !0),
|
|
1166
1165
|
t.multiple ? (o(), F("div", rl, [
|
|
1167
|
-
w(
|
|
1166
|
+
w(x, {
|
|
1168
1167
|
checked: z.value,
|
|
1169
|
-
indeterminate:
|
|
1168
|
+
indeterminate: S.value,
|
|
1170
1169
|
onChange: K
|
|
1171
1170
|
}, {
|
|
1172
1171
|
default: l(() => [
|
|
1173
|
-
I(
|
|
1172
|
+
I(y(v.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1174
1173
|
]),
|
|
1175
1174
|
_: 1
|
|
1176
1175
|
}, 8, ["checked", "indeterminate"]),
|
|
1177
1176
|
m("div", dl, [
|
|
1178
1177
|
w(Q, {
|
|
1179
1178
|
size: "small",
|
|
1180
|
-
onClick:
|
|
1179
|
+
onClick: M
|
|
1181
1180
|
}, {
|
|
1182
1181
|
default: l(() => [
|
|
1183
|
-
I(
|
|
1182
|
+
I(y(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1184
1183
|
]),
|
|
1185
1184
|
_: 1
|
|
1186
1185
|
}),
|
|
1187
1186
|
w(Q, {
|
|
1188
1187
|
type: "primary",
|
|
1189
1188
|
size: "small",
|
|
1190
|
-
onClick:
|
|
1189
|
+
onClick: L
|
|
1191
1190
|
}, {
|
|
1192
1191
|
default: l(() => [
|
|
1193
|
-
I(
|
|
1192
|
+
I(y(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1194
1193
|
]),
|
|
1195
1194
|
_: 1
|
|
1196
1195
|
})
|
|
1197
1196
|
])
|
|
1198
1197
|
])) : (o(), F("div", cl, [
|
|
1199
|
-
|
|
1198
|
+
p[6] || (p[6] = m("div", null, null, -1)),
|
|
1200
1199
|
m("div", ul, [
|
|
1201
1200
|
w(Q, {
|
|
1202
1201
|
size: "small",
|
|
1203
|
-
onClick:
|
|
1202
|
+
onClick: M
|
|
1204
1203
|
}, {
|
|
1205
1204
|
default: l(() => [
|
|
1206
|
-
I(
|
|
1205
|
+
I(y(v.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1207
1206
|
]),
|
|
1208
1207
|
_: 1
|
|
1209
1208
|
})
|
|
@@ -1216,7 +1215,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1216
1215
|
], 16);
|
|
1217
1216
|
};
|
|
1218
1217
|
}
|
|
1219
|
-
}),
|
|
1218
|
+
}), hl = /* @__PURE__ */ ae(pl, [["__scopeId", "data-v-87177371"]]), bl = le(hl), fl = { class: "hb-lib-form-item-filter-modal-search" }, ml = { class: "hb-lib-form-item-filter-modal-buttons" }, vl = { key: 0 }, gl = /* @__PURE__ */ te({
|
|
1220
1219
|
name: "HbLibMutilpleSelectModal",
|
|
1221
1220
|
__name: "HbMutilpleSelectModal",
|
|
1222
1221
|
props: {
|
|
@@ -1229,84 +1228,84 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1229
1228
|
labelKey: { default: "label" }
|
|
1230
1229
|
},
|
|
1231
1230
|
emits: ["handleConfirm", "handleCancel"],
|
|
1232
|
-
setup(t, { expose: f, emit:
|
|
1233
|
-
const
|
|
1231
|
+
setup(t, { expose: f, emit: i }) {
|
|
1232
|
+
const h = t, _ = i, g = R(!1), r = R(""), d = R(), b = R(), e = R([]), C = R([]), z = R(), S = Le({
|
|
1234
1233
|
searchText: "",
|
|
1235
1234
|
searchedColumn: ""
|
|
1236
|
-
}), N = U(() =>
|
|
1237
|
-
|
|
1238
|
-
|
|
1235
|
+
}), N = U(() => h.tableData.map((c) => (c.id = c.id || Math.random(), c))), H = U(() => h.tableColumn.map((c) => (c.customFilterDropdown && (c.onFilter = (s, x) => x[c.dataIndex].toString().toLowerCase().includes(s.toLowerCase()), c.onFilterDropdownVisibleChange = (s) => {
|
|
1236
|
+
s && setTimeout(() => {
|
|
1237
|
+
d.value?.focus();
|
|
1239
1238
|
}, 100);
|
|
1240
|
-
}), { ...
|
|
1241
|
-
let
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}),
|
|
1239
|
+
}), { ...c }))), M = () => {
|
|
1240
|
+
let c = "";
|
|
1241
|
+
C.value.forEach((s) => {
|
|
1242
|
+
c = c + s[h.labelKey] + ",";
|
|
1243
|
+
}), r.value = c.substring(0, c.length - 1), g.value = !1, _("handleConfirm", C.value);
|
|
1245
1244
|
}, a = () => {
|
|
1246
1245
|
g.value = !1;
|
|
1247
|
-
},
|
|
1246
|
+
}, L = () => {
|
|
1248
1247
|
g.value = !0, ve(() => {
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1248
|
+
const c = z.value?.$el?.querySelector(".ant-table-body");
|
|
1249
|
+
c && (c.scrollTop = 0);
|
|
1251
1250
|
});
|
|
1252
|
-
},
|
|
1253
|
-
e.value = [],
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1256
|
-
}, K = (
|
|
1257
|
-
|
|
1258
|
-
}, v = (
|
|
1259
|
-
|
|
1260
|
-
},
|
|
1261
|
-
e.value =
|
|
1251
|
+
}, $ = () => {
|
|
1252
|
+
e.value = [], C.value = [];
|
|
1253
|
+
}, k = () => {
|
|
1254
|
+
r.value = "", $();
|
|
1255
|
+
}, K = (c, s, x) => {
|
|
1256
|
+
s(), S.searchText = c[0], S.searchedColumn = x;
|
|
1257
|
+
}, v = (c, s) => {
|
|
1258
|
+
c({ confirm: !0 }), S.searchText = "", s();
|
|
1259
|
+
}, p = (c, s) => {
|
|
1260
|
+
e.value = c, C.value = s;
|
|
1262
1261
|
};
|
|
1263
1262
|
return f({
|
|
1264
|
-
resetInputVal:
|
|
1265
|
-
}), (
|
|
1266
|
-
const
|
|
1263
|
+
resetInputVal: k
|
|
1264
|
+
}), (c, s) => {
|
|
1265
|
+
const x = P("a-input"), E = P("a-button"), Q = P("a-table"), ie = P("a-modal");
|
|
1267
1266
|
return o(), F("div", {
|
|
1268
1267
|
class: "hb-lib-multipleSelectModal-box",
|
|
1269
1268
|
ref_key: "hbMultipSelectModalRef",
|
|
1270
|
-
ref:
|
|
1269
|
+
ref: b
|
|
1271
1270
|
}, [
|
|
1272
|
-
w(
|
|
1271
|
+
w(x, {
|
|
1273
1272
|
readonly: "",
|
|
1274
|
-
onClick:
|
|
1275
|
-
value:
|
|
1276
|
-
"onUpdate:value":
|
|
1277
|
-
placeholder:
|
|
1273
|
+
onClick: L,
|
|
1274
|
+
value: r.value,
|
|
1275
|
+
"onUpdate:value": s[0] || (s[0] = (J) => r.value = J),
|
|
1276
|
+
placeholder: c.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1278
1277
|
}, {
|
|
1279
1278
|
addonAfter: l(() => [
|
|
1280
|
-
w(n(_t), { onClick:
|
|
1279
|
+
w(n(_t), { onClick: L })
|
|
1281
1280
|
]),
|
|
1282
1281
|
_: 1
|
|
1283
1282
|
}, 8, ["value", "placeholder"]),
|
|
1284
1283
|
w(ie, {
|
|
1285
1284
|
visible: g.value,
|
|
1286
|
-
"onUpdate:visible":
|
|
1285
|
+
"onUpdate:visible": s[1] || (s[1] = (J) => g.value = J),
|
|
1287
1286
|
title: t.modelTitle,
|
|
1288
1287
|
width: t.modalWidth,
|
|
1289
1288
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1290
1289
|
}, {
|
|
1291
1290
|
footer: l(() => [
|
|
1292
|
-
w(E, { onClick:
|
|
1291
|
+
w(E, { onClick: $ }, {
|
|
1293
1292
|
default: l(() => [
|
|
1294
|
-
I(
|
|
1293
|
+
I(y(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1295
1294
|
]),
|
|
1296
1295
|
_: 1
|
|
1297
1296
|
}),
|
|
1298
1297
|
w(E, { onClick: a }, {
|
|
1299
1298
|
default: l(() => [
|
|
1300
|
-
I(
|
|
1299
|
+
I(y(c.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1301
1300
|
]),
|
|
1302
1301
|
_: 1
|
|
1303
1302
|
}),
|
|
1304
1303
|
w(E, {
|
|
1305
1304
|
type: "primary",
|
|
1306
|
-
onClick:
|
|
1305
|
+
onClick: M
|
|
1307
1306
|
}, {
|
|
1308
1307
|
default: l(() => [
|
|
1309
|
-
I(
|
|
1308
|
+
I(y(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1310
1309
|
]),
|
|
1311
1310
|
_: 1
|
|
1312
1311
|
})
|
|
@@ -1317,39 +1316,39 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1317
1316
|
ref: z,
|
|
1318
1317
|
columns: H.value,
|
|
1319
1318
|
dataSource: N.value,
|
|
1320
|
-
rowSelection: { selectedRowKeys: e.value, onChange:
|
|
1319
|
+
rowSelection: { selectedRowKeys: e.value, onChange: p },
|
|
1321
1320
|
rowKey: (J) => J[t.tableKey],
|
|
1322
1321
|
scroll: { y: t.tableHeight }
|
|
1323
1322
|
}, {
|
|
1324
|
-
customFilterDropdown: l(({ setSelectedKeys: J, selectedKeys: q, confirm: oe, clearFilters:
|
|
1323
|
+
customFilterDropdown: l(({ setSelectedKeys: J, selectedKeys: q, confirm: oe, clearFilters: T, column: ce }) => [
|
|
1325
1324
|
m("div", fl, [
|
|
1326
|
-
w(
|
|
1325
|
+
w(x, {
|
|
1327
1326
|
ref_key: "searchInput",
|
|
1328
|
-
ref:
|
|
1327
|
+
ref: d,
|
|
1329
1328
|
placeholder: `请输入${ce.title}`,
|
|
1330
1329
|
value: q[0],
|
|
1331
1330
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1332
|
-
onChange: (
|
|
1333
|
-
onPressEnter: (
|
|
1331
|
+
onChange: (u) => J(u.target.value ? [u.target.value] : []),
|
|
1332
|
+
onPressEnter: (u) => K(q, oe, ce.dataIndex)
|
|
1334
1333
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1335
1334
|
m("section", ml, [
|
|
1336
1335
|
w(E, {
|
|
1337
1336
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1338
1337
|
type: "ghost",
|
|
1339
|
-
onClick: (
|
|
1338
|
+
onClick: (u) => v(T, oe)
|
|
1340
1339
|
}, {
|
|
1341
1340
|
default: l(() => [
|
|
1342
|
-
I(
|
|
1341
|
+
I(y(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1343
1342
|
]),
|
|
1344
1343
|
_: 1
|
|
1345
1344
|
}, 8, ["onClick"]),
|
|
1346
1345
|
w(E, {
|
|
1347
1346
|
type: "primary",
|
|
1348
1347
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1349
|
-
onClick: (
|
|
1348
|
+
onClick: (u) => K(q, oe, ce.dataIndex)
|
|
1350
1349
|
}, {
|
|
1351
1350
|
default: l(() => [
|
|
1352
|
-
I(
|
|
1351
|
+
I(y(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1353
1352
|
]),
|
|
1354
1353
|
_: 1
|
|
1355
1354
|
}, 8, ["onClick"])
|
|
@@ -1357,21 +1356,21 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1357
1356
|
])
|
|
1358
1357
|
]),
|
|
1359
1358
|
customFilterIcon: l(({ filtered: J }) => [
|
|
1360
|
-
w(n(
|
|
1359
|
+
w(n(Pe), {
|
|
1361
1360
|
style: ke({ color: J ? "#108ee9" : void 0 })
|
|
1362
1361
|
}, null, 8, ["style"])
|
|
1363
1362
|
]),
|
|
1364
1363
|
bodyCell: l(({ text: J, column: q }) => [
|
|
1365
|
-
|
|
1366
|
-
(o(!0), F(
|
|
1367
|
-
oe.toLowerCase() ===
|
|
1368
|
-
key:
|
|
1364
|
+
S.searchText && S.searchedColumn === q.dataIndex ? (o(), F("span", vl, [
|
|
1365
|
+
(o(!0), F(Y, null, ne(J.toString().split(new RegExp(`(?<=${S.searchText})|(?=${S.searchText})`, "i")), (oe, T) => (o(), F(Y, null, [
|
|
1366
|
+
oe.toLowerCase() === S.searchText.toLowerCase() ? (o(), F("mark", {
|
|
1367
|
+
key: T,
|
|
1369
1368
|
class: "highlight"
|
|
1370
|
-
},
|
|
1371
|
-
I(
|
|
1369
|
+
}, y(oe), 1)) : (o(), F(Y, { key: 1 }, [
|
|
1370
|
+
I(y(oe), 1)
|
|
1372
1371
|
], 64))
|
|
1373
1372
|
], 64))), 256))
|
|
1374
|
-
])) :
|
|
1373
|
+
])) : O("", !0)
|
|
1375
1374
|
]),
|
|
1376
1375
|
_: 1
|
|
1377
1376
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1387,7 +1386,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1387
1386
|
}, kl = ["onClick"], Sl = {
|
|
1388
1387
|
href: "javascript:;",
|
|
1389
1388
|
class: "hb-lib-table-more-action"
|
|
1390
|
-
}, wl = ["onClick"], Fl = { href: "javascript:;" }, xl = ["onClick"], Tl = { class: "hb-lib-table-confirm-modal-content" },
|
|
1389
|
+
}, wl = ["onClick"], Fl = { href: "javascript:;" }, xl = ["onClick"], Tl = { class: "hb-lib-table-confirm-modal-content" }, $l = /* @__PURE__ */ te({
|
|
1391
1390
|
name: "HbLibTableAct",
|
|
1392
1391
|
__name: "HbTableAct",
|
|
1393
1392
|
props: {
|
|
@@ -1396,128 +1395,128 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1396
1395
|
buttonDisplaysQuantity: {}
|
|
1397
1396
|
},
|
|
1398
1397
|
setup(t, { expose: f }) {
|
|
1399
|
-
const
|
|
1400
|
-
|
|
1401
|
-
}, z = (
|
|
1402
|
-
|
|
1403
|
-
},
|
|
1404
|
-
if (
|
|
1398
|
+
const i = t, { t: h } = de(), _ = R(!1), g = R(!1), r = R(null), d = U(() => i.actions.filter((M) => M.condition !== void 0 ? M.condition : !0)), b = U(() => d.value.slice(0, i.buttonDisplaysQuantity)), e = U(() => d.value.slice(i.buttonDisplaysQuantity)), C = (M) => {
|
|
1399
|
+
M.handler && M.handler(i.record);
|
|
1400
|
+
}, z = (M) => {
|
|
1401
|
+
r.value = M, _.value = !0;
|
|
1402
|
+
}, S = () => {
|
|
1403
|
+
if (r.value) {
|
|
1405
1404
|
g.value = !0;
|
|
1406
1405
|
try {
|
|
1407
|
-
|
|
1406
|
+
C(r.value), g.value = !1, _.value = !1;
|
|
1408
1407
|
} catch {
|
|
1409
1408
|
g.value = !1;
|
|
1410
1409
|
}
|
|
1411
1410
|
}
|
|
1412
1411
|
}, N = () => {
|
|
1413
|
-
_.value = !1,
|
|
1414
|
-
}, H = U(() =>
|
|
1415
|
-
title:
|
|
1416
|
-
content:
|
|
1412
|
+
_.value = !1, r.value = null;
|
|
1413
|
+
}, H = U(() => r.value ? {
|
|
1414
|
+
title: r.value.confirmTitle,
|
|
1415
|
+
content: r.value.confirmContent || r.value.confirmTitle
|
|
1417
1416
|
} : {
|
|
1418
|
-
title:
|
|
1419
|
-
content:
|
|
1417
|
+
title: h("hbLibComp.hbTableAct.secendConfirm"),
|
|
1418
|
+
content: h("hbLibComp.hbTableAct.confirmContent")
|
|
1420
1419
|
});
|
|
1421
1420
|
return f({
|
|
1422
|
-
ADropdown:
|
|
1423
|
-
AMenu:
|
|
1424
|
-
AMenuItem:
|
|
1421
|
+
ADropdown: Xe,
|
|
1422
|
+
AMenu: Ze,
|
|
1423
|
+
AMenuItem: Qe,
|
|
1425
1424
|
APopconfirm: Te,
|
|
1426
1425
|
AModal: Ie,
|
|
1427
|
-
DownOutlined:
|
|
1428
|
-
}), (
|
|
1429
|
-
const
|
|
1426
|
+
DownOutlined: et
|
|
1427
|
+
}), (M, a) => {
|
|
1428
|
+
const L = P("a-divider"), $ = dt("has");
|
|
1430
1429
|
return o(), F("div", Cl, [
|
|
1431
|
-
(o(!0), F(
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1430
|
+
(o(!0), F(Y, null, ne(b.value, (k, K) => (o(), F(Y, { key: K }, [
|
|
1431
|
+
k.needConfirm ? (o(), F(Y, { key: 0 }, [
|
|
1432
|
+
k.confirmType === "modal" ? (o(), F(Y, { key: 0 }, [
|
|
1433
|
+
he((o(), F("a", {
|
|
1435
1434
|
href: "javascript:;",
|
|
1436
|
-
onClick: (v) => z(
|
|
1435
|
+
onClick: (v) => z(k),
|
|
1437
1436
|
class: "hb-lib-table-main-action"
|
|
1438
1437
|
}, [
|
|
1439
|
-
I(
|
|
1438
|
+
I(y(k.label), 1)
|
|
1440
1439
|
], 8, _l)), [
|
|
1441
|
-
[
|
|
1440
|
+
[$, k.permissionsTag || null]
|
|
1442
1441
|
]),
|
|
1443
|
-
e.value && e.value.length > 0 || K !==
|
|
1442
|
+
e.value && e.value.length > 0 || K !== b.value.length - 1 ? (o(), B(L, {
|
|
1444
1443
|
key: 0,
|
|
1445
1444
|
type: "vertical"
|
|
1446
|
-
})) :
|
|
1447
|
-
], 64)) : (o(), F(
|
|
1445
|
+
})) : O("", !0)
|
|
1446
|
+
], 64)) : (o(), F(Y, { key: 1 }, [
|
|
1448
1447
|
w(n(Te), {
|
|
1449
|
-
title:
|
|
1450
|
-
onConfirm: (v) =>
|
|
1448
|
+
title: k.confirmTitle,
|
|
1449
|
+
onConfirm: (v) => C(k)
|
|
1451
1450
|
}, {
|
|
1452
1451
|
default: l(() => [
|
|
1453
|
-
|
|
1454
|
-
I(
|
|
1452
|
+
he((o(), F("a", Ll, [
|
|
1453
|
+
I(y(k.label), 1)
|
|
1455
1454
|
])), [
|
|
1456
|
-
[
|
|
1455
|
+
[$, k.permissionsTag || null]
|
|
1457
1456
|
])
|
|
1458
1457
|
]),
|
|
1459
1458
|
_: 2
|
|
1460
1459
|
}, 1032, ["title", "onConfirm"]),
|
|
1461
|
-
e.value && e.value.length > 0 || K !==
|
|
1460
|
+
e.value && e.value.length > 0 || K !== b.value.length - 1 ? (o(), B(L, {
|
|
1462
1461
|
key: 0,
|
|
1463
1462
|
type: "vertical"
|
|
1464
|
-
})) :
|
|
1463
|
+
})) : O("", !0)
|
|
1465
1464
|
], 64))
|
|
1466
|
-
], 64)) : (o(), F(
|
|
1467
|
-
|
|
1465
|
+
], 64)) : (o(), F(Y, { key: 1 }, [
|
|
1466
|
+
he((o(), F("a", {
|
|
1468
1467
|
href: "javascript:;",
|
|
1469
|
-
onClick: (v) =>
|
|
1468
|
+
onClick: (v) => C(k),
|
|
1470
1469
|
class: "hb-lib-table-main-action"
|
|
1471
1470
|
}, [
|
|
1472
|
-
I(
|
|
1471
|
+
I(y(k.label), 1)
|
|
1473
1472
|
], 8, kl)), [
|
|
1474
|
-
[
|
|
1473
|
+
[$, k.permissionsTag || null]
|
|
1475
1474
|
]),
|
|
1476
|
-
e.value && e.value.length > 0 || K !==
|
|
1475
|
+
e.value && e.value.length > 0 || K !== b.value.length - 1 ? (o(), B(L, {
|
|
1477
1476
|
key: 0,
|
|
1478
1477
|
type: "vertical"
|
|
1479
|
-
})) :
|
|
1478
|
+
})) : O("", !0)
|
|
1480
1479
|
], 64))
|
|
1481
1480
|
], 64))), 128)),
|
|
1482
|
-
e.value && e.value.length > 0 ? (o(),
|
|
1481
|
+
e.value && e.value.length > 0 ? (o(), B(n(Xe), { key: 0 }, {
|
|
1483
1482
|
overlay: l(() => [
|
|
1484
|
-
w(n(
|
|
1483
|
+
w(n(Ze), null, {
|
|
1485
1484
|
default: l(() => [
|
|
1486
|
-
(o(!0), F(
|
|
1487
|
-
key:
|
|
1485
|
+
(o(!0), F(Y, null, ne(e.value, (k) => (o(), B(n(Qe), {
|
|
1486
|
+
key: k.key
|
|
1488
1487
|
}, {
|
|
1489
1488
|
default: l(() => [
|
|
1490
|
-
|
|
1491
|
-
|
|
1489
|
+
k.needConfirm ? (o(), F(Y, { key: 0 }, [
|
|
1490
|
+
k.confirmType === "modal" ? he((o(), F("a", {
|
|
1492
1491
|
key: 0,
|
|
1493
1492
|
href: "javascript:;",
|
|
1494
|
-
onClick: (K) => z(
|
|
1493
|
+
onClick: (K) => z(k)
|
|
1495
1494
|
}, [
|
|
1496
|
-
I(
|
|
1495
|
+
I(y(k.label), 1)
|
|
1497
1496
|
], 8, wl)), [
|
|
1498
|
-
[
|
|
1499
|
-
]) : (o(),
|
|
1497
|
+
[$, k.permissionsTag || null]
|
|
1498
|
+
]) : (o(), B(n(Te), {
|
|
1500
1499
|
key: 1,
|
|
1501
|
-
title:
|
|
1502
|
-
onConfirm: (K) =>
|
|
1500
|
+
title: k.confirmTitle,
|
|
1501
|
+
onConfirm: (K) => C(k)
|
|
1503
1502
|
}, {
|
|
1504
1503
|
default: l(() => [
|
|
1505
|
-
|
|
1506
|
-
I(
|
|
1504
|
+
he((o(), F("a", Fl, [
|
|
1505
|
+
I(y(k.label), 1)
|
|
1507
1506
|
])), [
|
|
1508
|
-
[
|
|
1507
|
+
[$, k.permissionsTag || null]
|
|
1509
1508
|
])
|
|
1510
1509
|
]),
|
|
1511
1510
|
_: 2
|
|
1512
1511
|
}, 1032, ["title", "onConfirm"]))
|
|
1513
|
-
], 64)) :
|
|
1512
|
+
], 64)) : he((o(), F("a", {
|
|
1514
1513
|
key: 1,
|
|
1515
1514
|
href: "javascript:;",
|
|
1516
|
-
onClick: (K) =>
|
|
1515
|
+
onClick: (K) => C(k)
|
|
1517
1516
|
}, [
|
|
1518
|
-
I(
|
|
1517
|
+
I(y(k.label), 1)
|
|
1519
1518
|
], 8, xl)), [
|
|
1520
|
-
[
|
|
1519
|
+
[$, k.permissionsTag || null]
|
|
1521
1520
|
])
|
|
1522
1521
|
]),
|
|
1523
1522
|
_: 2
|
|
@@ -1528,37 +1527,37 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1528
1527
|
]),
|
|
1529
1528
|
default: l(() => [
|
|
1530
1529
|
m("a", Sl, [
|
|
1531
|
-
I(
|
|
1532
|
-
w(n(
|
|
1530
|
+
I(y(M.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1531
|
+
w(n(et), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1533
1532
|
])
|
|
1534
1533
|
]),
|
|
1535
1534
|
_: 1
|
|
1536
|
-
})) :
|
|
1535
|
+
})) : O("", !0),
|
|
1537
1536
|
w(n(Ie), {
|
|
1538
1537
|
visible: _.value,
|
|
1539
1538
|
title: H.value.title,
|
|
1540
1539
|
"confirm-loading": g.value,
|
|
1541
|
-
onOk:
|
|
1540
|
+
onOk: S,
|
|
1542
1541
|
onCancel: N
|
|
1543
1542
|
}, {
|
|
1544
1543
|
default: l(() => [
|
|
1545
|
-
m("p", Tl,
|
|
1544
|
+
m("p", Tl, y(H.value.content), 1)
|
|
1546
1545
|
]),
|
|
1547
1546
|
_: 1
|
|
1548
1547
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1549
1548
|
]);
|
|
1550
1549
|
};
|
|
1551
1550
|
}
|
|
1552
|
-
}),
|
|
1553
|
-
const
|
|
1554
|
-
return !
|
|
1551
|
+
}), Ml = /* @__PURE__ */ ae($l, [["__scopeId", "data-v-a96574fa"]]), Il = le(Ml), Hl = (t) => ({ tableWidth: U(() => {
|
|
1552
|
+
const i = Array.isArray(t) ? t : t.value;
|
|
1553
|
+
return !i || i.length === 0 ? 0 : i.map((h) => h.width && Number(h.width.toString().replace("px", "")) || 0).reduce((h, _) => h + _, 0);
|
|
1555
1554
|
}) }), Dl = {
|
|
1556
1555
|
key: 0,
|
|
1557
1556
|
class: "hb-lib-list-table-act"
|
|
1558
1557
|
}, Al = { class: "empty-container" }, zl = {
|
|
1559
1558
|
key: 1,
|
|
1560
1559
|
style: { display: "flex", "align-items": "center" }
|
|
1561
|
-
},
|
|
1560
|
+
}, Bl = /* @__PURE__ */ te({
|
|
1562
1561
|
name: "HbLibListTable",
|
|
1563
1562
|
__name: "HbListTable",
|
|
1564
1563
|
props: {
|
|
@@ -1568,20 +1567,20 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1568
1567
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1569
1568
|
},
|
|
1570
1569
|
setup(t) {
|
|
1571
|
-
const { t: f } = de(),
|
|
1570
|
+
const { t: f } = de(), i = t, h = R([]), _ = Be("HB_LIST_PAGE_CONTAINER"), { tableWidth: g } = Hl(U(() => i.columns));
|
|
1572
1571
|
se(
|
|
1573
|
-
() =>
|
|
1572
|
+
() => i.columns,
|
|
1574
1573
|
(e) => {
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
let
|
|
1578
|
-
if (
|
|
1579
|
-
|
|
1580
|
-
else if (typeof
|
|
1581
|
-
const N = parseInt(
|
|
1582
|
-
|
|
1574
|
+
const C = e.filter((z) => z != null && z.checked);
|
|
1575
|
+
h.value = C.map((z) => {
|
|
1576
|
+
let S = { ...z, title: z.title || z.label, align: z.align || "center" };
|
|
1577
|
+
if (S.ellipsis && !S.needTooltip && (S.needTooltip = !0), !S.width)
|
|
1578
|
+
S.width = i.defaultWidth;
|
|
1579
|
+
else if (typeof S.width == "string") {
|
|
1580
|
+
const N = parseInt(S.width, 10);
|
|
1581
|
+
S.width = isNaN(N) ? i.defaultWidth : N;
|
|
1583
1582
|
}
|
|
1584
|
-
return
|
|
1583
|
+
return S.resizable === void 0 && (S.resizable = !0), S;
|
|
1585
1584
|
});
|
|
1586
1585
|
},
|
|
1587
1586
|
{
|
|
@@ -1589,31 +1588,31 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1589
1588
|
deep: !0
|
|
1590
1589
|
}
|
|
1591
1590
|
);
|
|
1592
|
-
const
|
|
1593
|
-
if (
|
|
1591
|
+
const r = (e, C) => {
|
|
1592
|
+
if (C) {
|
|
1594
1593
|
const z = typeof e == "string" ? parseInt(e, 10) : e;
|
|
1595
|
-
|
|
1594
|
+
C.width = isNaN(z) ? 150 : z;
|
|
1596
1595
|
}
|
|
1597
|
-
},
|
|
1598
|
-
return (e,
|
|
1599
|
-
const z = P("a-empty"),
|
|
1596
|
+
}, d = (e, C = "YYYY-MM-DD HH:mm:ss") => e ? Se(e).format(C) : "", b = (e, C) => e && C[e] || "";
|
|
1597
|
+
return (e, C) => {
|
|
1598
|
+
const z = P("a-empty"), S = P("a-tooltip"), N = P("HbLibCopy"), H = P("a-tag"), M = P("a-table");
|
|
1600
1599
|
return o(), F("div", {
|
|
1601
|
-
class:
|
|
1600
|
+
class: j(["hb-lib-list-table", { "nowrap-table": i.rowHeight }]),
|
|
1602
1601
|
style: ke({ "--hb-lib-table-td-height": t.rowHeight && t.rowHeight + "px" || "" })
|
|
1603
1602
|
}, [
|
|
1604
1603
|
e.$slots.tableActLeft ? (o(), F("section", Dl, [
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
])) :
|
|
1608
|
-
w(
|
|
1604
|
+
V(e.$slots, "tableActLeft", {}, void 0, !0),
|
|
1605
|
+
V(e.$slots, "tableActRight", {}, void 0, !0)
|
|
1606
|
+
])) : O("", !0),
|
|
1607
|
+
w(M, ee(e.$attrs, {
|
|
1609
1608
|
bordered: "",
|
|
1610
|
-
columns:
|
|
1611
|
-
onResizeColumn:
|
|
1609
|
+
columns: h.value,
|
|
1610
|
+
onResizeColumn: r,
|
|
1612
1611
|
scroll: {
|
|
1613
1612
|
x: n(g),
|
|
1614
1613
|
y: n(_).tableHeight
|
|
1615
1614
|
}
|
|
1616
|
-
}),
|
|
1615
|
+
}), Oe({
|
|
1617
1616
|
emptyText: l(() => [
|
|
1618
1617
|
m("div", Al, [
|
|
1619
1618
|
w(z, {
|
|
@@ -1626,146 +1625,146 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1626
1625
|
e.$slots.headerCell ? {
|
|
1627
1626
|
name: "headerCell",
|
|
1628
1627
|
fn: l(({ column: a }) => [
|
|
1629
|
-
|
|
1630
|
-
I(
|
|
1628
|
+
V(e.$slots, "headerCell", { column: a }, () => [
|
|
1629
|
+
I(y(a.title), 1)
|
|
1631
1630
|
], !0)
|
|
1632
1631
|
]),
|
|
1633
1632
|
key: "0"
|
|
1634
1633
|
} : void 0,
|
|
1635
1634
|
e.$slots.bodyCell ? {
|
|
1636
1635
|
name: "bodyCell",
|
|
1637
|
-
fn: l(({ column: a, record:
|
|
1638
|
-
|
|
1636
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1637
|
+
V(e.$slots, "bodyCell", {
|
|
1639
1638
|
column: a,
|
|
1640
|
-
record:
|
|
1641
|
-
index:
|
|
1642
|
-
text:
|
|
1639
|
+
record: L,
|
|
1640
|
+
index: $,
|
|
1641
|
+
text: k
|
|
1643
1642
|
}, void 0, !0),
|
|
1644
|
-
a && a.needTooltip ? (o(),
|
|
1643
|
+
a && a.needTooltip ? (o(), B(S, {
|
|
1645
1644
|
key: 0,
|
|
1646
1645
|
placement: t.tooltipPlacement
|
|
1647
1646
|
}, {
|
|
1648
1647
|
title: l(() => [
|
|
1649
|
-
I(
|
|
1648
|
+
I(y(L[a.dataIndex]), 1)
|
|
1650
1649
|
]),
|
|
1651
1650
|
default: l(() => [
|
|
1652
|
-
I(" " +
|
|
1651
|
+
I(" " + y(L[a.dataIndex]), 1)
|
|
1653
1652
|
]),
|
|
1654
1653
|
_: 2
|
|
1655
1654
|
}, 1032, ["placement"])) : a && a.needCopy ? (o(), F("div", zl, [
|
|
1656
|
-
I(
|
|
1655
|
+
I(y(L[a.dataIndex]) + " ", 1),
|
|
1657
1656
|
w(N, {
|
|
1658
|
-
"cp-text":
|
|
1657
|
+
"cp-text": L[a.dataIndex],
|
|
1659
1658
|
style: { position: "relative" }
|
|
1660
1659
|
}, null, 8, ["cp-text"])
|
|
1661
|
-
])) : a && a.needFormat ? (o(), F(
|
|
1662
|
-
I(
|
|
1663
|
-
], 64)) : a && a.tags ? (o(), F(
|
|
1664
|
-
|
|
1660
|
+
])) : a && a.needFormat ? (o(), F(Y, { key: 2 }, [
|
|
1661
|
+
I(y(d(L[a.dataIndex], a.format)), 1)
|
|
1662
|
+
], 64)) : a && a.tags ? (o(), F(Y, { key: 3 }, [
|
|
1663
|
+
b(L[a.dataIndex], a.tags) ? (o(), B(H, {
|
|
1665
1664
|
key: 0,
|
|
1666
|
-
color:
|
|
1665
|
+
color: b(L[a.dataIndex], a.tags)
|
|
1667
1666
|
}, {
|
|
1668
1667
|
default: l(() => [
|
|
1669
|
-
I(
|
|
1668
|
+
I(y(L[a.dataIndex]), 1)
|
|
1670
1669
|
]),
|
|
1671
1670
|
_: 2
|
|
1672
|
-
}, 1032, ["color"])) :
|
|
1673
|
-
], 64)) :
|
|
1671
|
+
}, 1032, ["color"])) : O("", !0)
|
|
1672
|
+
], 64)) : O("", !0)
|
|
1674
1673
|
]),
|
|
1675
1674
|
key: "1"
|
|
1676
1675
|
} : void 0,
|
|
1677
1676
|
e.$slots.expandedRowRender ? {
|
|
1678
1677
|
name: "expandedRowRender",
|
|
1679
|
-
fn: l(({ column: a, record:
|
|
1680
|
-
|
|
1681
|
-
record:
|
|
1678
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1679
|
+
V(e.$slots, "expandedRowRender", {
|
|
1680
|
+
record: L,
|
|
1682
1681
|
column: a,
|
|
1683
|
-
index:
|
|
1684
|
-
text:
|
|
1682
|
+
index: $,
|
|
1683
|
+
text: k
|
|
1685
1684
|
}, void 0, !0)
|
|
1686
1685
|
]),
|
|
1687
1686
|
key: "2"
|
|
1688
1687
|
} : void 0,
|
|
1689
1688
|
e.$slots.customFilterDropdown ? {
|
|
1690
1689
|
name: "customFilterDropdown",
|
|
1691
|
-
fn: l(({ column: a, record:
|
|
1692
|
-
|
|
1693
|
-
record:
|
|
1690
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1691
|
+
V(e.$slots, "customFilterDropdown", {
|
|
1692
|
+
record: L,
|
|
1694
1693
|
column: a,
|
|
1695
|
-
index:
|
|
1696
|
-
text:
|
|
1694
|
+
index: $,
|
|
1695
|
+
text: k
|
|
1697
1696
|
}, void 0, !0)
|
|
1698
1697
|
]),
|
|
1699
1698
|
key: "3"
|
|
1700
1699
|
} : void 0,
|
|
1701
1700
|
e.$slots.customFilterIcon ? {
|
|
1702
1701
|
name: "customFilterIcon",
|
|
1703
|
-
fn: l(({ column: a, record:
|
|
1704
|
-
|
|
1705
|
-
record:
|
|
1702
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1703
|
+
V(e.$slots, "customFilterIcon", {
|
|
1704
|
+
record: L,
|
|
1706
1705
|
column: a,
|
|
1707
|
-
index:
|
|
1708
|
-
text:
|
|
1706
|
+
index: $,
|
|
1707
|
+
text: k
|
|
1709
1708
|
}, void 0, !0)
|
|
1710
1709
|
]),
|
|
1711
1710
|
key: "4"
|
|
1712
1711
|
} : void 0,
|
|
1713
1712
|
e.$slots.expandIcon ? {
|
|
1714
1713
|
name: "expandIcon",
|
|
1715
|
-
fn: l(({ column: a, record:
|
|
1716
|
-
|
|
1717
|
-
record:
|
|
1714
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1715
|
+
V(e.$slots, "expandIcon", {
|
|
1716
|
+
record: L,
|
|
1718
1717
|
column: a,
|
|
1719
|
-
index:
|
|
1720
|
-
text:
|
|
1718
|
+
index: $,
|
|
1719
|
+
text: k
|
|
1721
1720
|
}, void 0, !0)
|
|
1722
1721
|
]),
|
|
1723
1722
|
key: "5"
|
|
1724
1723
|
} : void 0,
|
|
1725
1724
|
e.$slots.footer ? {
|
|
1726
1725
|
name: "footer",
|
|
1727
|
-
fn: l(({ column: a, record:
|
|
1728
|
-
|
|
1729
|
-
record:
|
|
1726
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1727
|
+
V(e.$slots, "footer", {
|
|
1728
|
+
record: L,
|
|
1730
1729
|
column: a,
|
|
1731
|
-
index:
|
|
1732
|
-
text:
|
|
1730
|
+
index: $,
|
|
1731
|
+
text: k
|
|
1733
1732
|
}, void 0, !0)
|
|
1734
1733
|
]),
|
|
1735
1734
|
key: "6"
|
|
1736
1735
|
} : void 0,
|
|
1737
1736
|
e.$slots.headerCell ? {
|
|
1738
1737
|
name: "headerCell",
|
|
1739
|
-
fn: l(({ column: a, record:
|
|
1740
|
-
|
|
1741
|
-
record:
|
|
1738
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1739
|
+
V(e.$slots, "headerCell", {
|
|
1740
|
+
record: L,
|
|
1742
1741
|
column: a,
|
|
1743
|
-
index:
|
|
1744
|
-
text:
|
|
1742
|
+
index: $,
|
|
1743
|
+
text: k
|
|
1745
1744
|
}, void 0, !0)
|
|
1746
1745
|
]),
|
|
1747
1746
|
key: "7"
|
|
1748
1747
|
} : void 0,
|
|
1749
1748
|
e.$slots.summary ? {
|
|
1750
1749
|
name: "summary",
|
|
1751
|
-
fn: l(({ column: a, record:
|
|
1752
|
-
|
|
1753
|
-
record:
|
|
1750
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1751
|
+
V(e.$slots, "summary", {
|
|
1752
|
+
record: L,
|
|
1754
1753
|
column: a,
|
|
1755
|
-
index:
|
|
1756
|
-
text:
|
|
1754
|
+
index: $,
|
|
1755
|
+
text: k
|
|
1757
1756
|
}, void 0, !0)
|
|
1758
1757
|
]),
|
|
1759
1758
|
key: "8"
|
|
1760
1759
|
} : void 0,
|
|
1761
1760
|
e.$slots.title ? {
|
|
1762
1761
|
name: "title",
|
|
1763
|
-
fn: l(({ column: a, record:
|
|
1764
|
-
|
|
1765
|
-
record:
|
|
1762
|
+
fn: l(({ column: a, record: L, index: $, text: k }) => [
|
|
1763
|
+
V(e.$slots, "title", {
|
|
1764
|
+
record: L,
|
|
1766
1765
|
column: a,
|
|
1767
|
-
index:
|
|
1768
|
-
text:
|
|
1766
|
+
index: $,
|
|
1767
|
+
text: k
|
|
1769
1768
|
}, void 0, !0)
|
|
1770
1769
|
]),
|
|
1771
1770
|
key: "9"
|
|
@@ -1774,7 +1773,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1774
1773
|
], 6);
|
|
1775
1774
|
};
|
|
1776
1775
|
}
|
|
1777
|
-
}),
|
|
1776
|
+
}), Ol = /* @__PURE__ */ ae(Bl, [["__scopeId", "data-v-28fef803"]]), Rl = le(Ol), Pl = { class: "hb-lib-table-setting-box" }, Nl = {
|
|
1778
1777
|
key: 0,
|
|
1779
1778
|
class: "hb-lib-table-drag-item"
|
|
1780
1779
|
}, Ul = {
|
|
@@ -1816,117 +1815,117 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1816
1815
|
},
|
|
1817
1816
|
emits: ["on-get-columns"],
|
|
1818
1817
|
setup(t, { emit: f }) {
|
|
1819
|
-
const
|
|
1818
|
+
const i = f, { t: h } = de(), _ = t, g = R([]), r = U(() => b.value.filter((v) => v.checked));
|
|
1820
1819
|
R([]);
|
|
1821
|
-
const
|
|
1820
|
+
const d = R(!1), b = R([]), e = R(null), C = U(() => r.value.length > 0 && r.value.length === g.value.length), z = U(() => r.value.length > 0 && r.value.length < g.value.length), S = (v) => {
|
|
1822
1821
|
e.value = v.oldIndex;
|
|
1823
1822
|
}, N = (v) => {
|
|
1824
|
-
const
|
|
1825
|
-
if (g.value.some((
|
|
1826
|
-
const
|
|
1827
|
-
if ((
|
|
1828
|
-
const E =
|
|
1829
|
-
|
|
1823
|
+
const p = v.newIndex;
|
|
1824
|
+
if (g.value.some((s) => s.fixed === "left" || s.fixed === "right" || s.fixed === !0)) {
|
|
1825
|
+
const s = g.value.filter((E) => E.fixed === "left").length, x = g.value.length - g.value.filter((E) => E.fixed === "right").length;
|
|
1826
|
+
if ((s > 0 && p < s || x < g.value.length && p >= x) && (ze.warning(h("hbLibComp.hbLibListTableColumsSet.errorTip")), e.value !== null)) {
|
|
1827
|
+
const E = b.value.splice(p, 1)[0];
|
|
1828
|
+
b.value.splice(e.value, 0, E);
|
|
1830
1829
|
}
|
|
1831
1830
|
}
|
|
1832
1831
|
e.value = null;
|
|
1833
1832
|
}, H = (v) => {
|
|
1834
|
-
v.target.checked ?
|
|
1835
|
-
},
|
|
1836
|
-
|
|
1833
|
+
v.target.checked ? b.value.forEach((c) => c.checked = !0) : b.value.forEach((c) => c.checked = !1);
|
|
1834
|
+
}, M = (v, p) => {
|
|
1835
|
+
p ? v.checked = !0 : v.checked = !1;
|
|
1837
1836
|
}, a = () => {
|
|
1838
|
-
g.value = [...
|
|
1839
|
-
},
|
|
1840
|
-
g.value = _.tableColumns.map((
|
|
1841
|
-
...
|
|
1842
|
-
label:
|
|
1843
|
-
value:
|
|
1844
|
-
checked:
|
|
1845
|
-
})),
|
|
1837
|
+
g.value = [...b.value], i("on-get-columns", g.value), d.value = !1;
|
|
1838
|
+
}, L = () => {
|
|
1839
|
+
g.value = _.tableColumns.map((p) => ({
|
|
1840
|
+
...p,
|
|
1841
|
+
label: p.title && p.title.tag ? $(p.title) : p.title || p.title2,
|
|
1842
|
+
value: p.dataIndex,
|
|
1843
|
+
checked: p.checked || p.checked === void 0
|
|
1844
|
+
})), b.value = [...g.value];
|
|
1846
1845
|
let v = [];
|
|
1847
|
-
_.tableColumns.forEach(function(
|
|
1848
|
-
v.push(
|
|
1846
|
+
_.tableColumns.forEach(function(p) {
|
|
1847
|
+
v.push(p.dataIndex);
|
|
1849
1848
|
});
|
|
1850
|
-
},
|
|
1849
|
+
}, $ = (v) => v.children[0].text, k = (v) => {
|
|
1851
1850
|
delete v.fixed;
|
|
1852
|
-
const
|
|
1853
|
-
if (
|
|
1854
|
-
let
|
|
1855
|
-
for (let
|
|
1856
|
-
|
|
1857
|
-
if (
|
|
1858
|
-
const
|
|
1859
|
-
|
|
1851
|
+
const p = b.value.findIndex((c) => c.value === v.value);
|
|
1852
|
+
if (p !== -1) {
|
|
1853
|
+
let c = -1;
|
|
1854
|
+
for (let s = 0; s < b.value.length; s++)
|
|
1855
|
+
b.value[s].fixed === "left" && (c = s);
|
|
1856
|
+
if (c !== -1 && p !== c + 1) {
|
|
1857
|
+
const s = [...b.value], [x] = s.splice(p, 1);
|
|
1858
|
+
s.splice(c + 1, 0, x), b.value = s;
|
|
1860
1859
|
}
|
|
1861
1860
|
}
|
|
1862
1861
|
}, K = (v) => {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
let
|
|
1866
|
-
for (let Q = 0; Q <
|
|
1867
|
-
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1870
|
-
const E =
|
|
1871
|
-
|
|
1862
|
+
const p = b.value.findIndex((c) => c.value === v.value);
|
|
1863
|
+
if (p !== -1) {
|
|
1864
|
+
let c = -1;
|
|
1865
|
+
for (let Q = 0; Q < b.value.length; Q++)
|
|
1866
|
+
b.value[Q].fixed === "left" && (c = Q);
|
|
1867
|
+
const s = [...b.value], [x] = s.splice(p, 1);
|
|
1868
|
+
x.fixed = "left";
|
|
1869
|
+
const E = c === -1 ? 0 : c + 1;
|
|
1870
|
+
s.splice(E, 0, x), b.value = s;
|
|
1872
1871
|
}
|
|
1873
1872
|
};
|
|
1874
1873
|
return se(
|
|
1875
1874
|
() => _.tableColumns,
|
|
1876
1875
|
() => {
|
|
1877
|
-
|
|
1876
|
+
L();
|
|
1878
1877
|
},
|
|
1879
1878
|
{
|
|
1880
1879
|
immediate: !0,
|
|
1881
1880
|
deep: !0
|
|
1882
1881
|
}
|
|
1883
|
-
), (v,
|
|
1884
|
-
const
|
|
1882
|
+
), (v, p) => {
|
|
1883
|
+
const c = P("a-tooltip"), s = P("a-button");
|
|
1885
1884
|
return o(), F("div", Pl, [
|
|
1886
1885
|
w(n(mt), {
|
|
1887
|
-
title: n(
|
|
1886
|
+
title: n(h)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1888
1887
|
trigger: "click",
|
|
1889
1888
|
placement: "leftTop",
|
|
1890
1889
|
overlayClassName: "column_setting_popover",
|
|
1891
|
-
visible:
|
|
1892
|
-
"onUpdate:visible":
|
|
1890
|
+
visible: d.value,
|
|
1891
|
+
"onUpdate:visible": p[1] || (p[1] = (x) => d.value = x)
|
|
1893
1892
|
}, {
|
|
1894
1893
|
content: l(() => [
|
|
1895
1894
|
w(n(Ce), {
|
|
1896
|
-
modelValue:
|
|
1897
|
-
"onUpdate:modelValue":
|
|
1895
|
+
modelValue: b.value,
|
|
1896
|
+
"onUpdate:modelValue": p[0] || (p[0] = (x) => b.value = x),
|
|
1898
1897
|
"item-key": "value",
|
|
1899
1898
|
class: "hb-lib-table-set-drag",
|
|
1900
1899
|
"ghost-class": "ghost",
|
|
1901
1900
|
animation: "200",
|
|
1902
1901
|
handle: ".drag-handle",
|
|
1903
|
-
onStart:
|
|
1902
|
+
onStart: S,
|
|
1904
1903
|
onEnd: N
|
|
1905
1904
|
}, {
|
|
1906
|
-
item: l(({ element:
|
|
1907
|
-
|
|
1905
|
+
item: l(({ element: x }) => [
|
|
1906
|
+
x.fixed !== "right" ? (o(), F("div", Nl, [
|
|
1908
1907
|
w(n(_e), {
|
|
1909
|
-
checked:
|
|
1910
|
-
onChange: (E) =>
|
|
1908
|
+
checked: x.checked,
|
|
1909
|
+
onChange: (E) => M(x, E.target.checked)
|
|
1911
1910
|
}, {
|
|
1912
1911
|
default: l(() => [
|
|
1913
|
-
I(
|
|
1912
|
+
I(y(x.label), 1)
|
|
1914
1913
|
]),
|
|
1915
1914
|
_: 2
|
|
1916
1915
|
}, 1032, ["checked", "onChange"]),
|
|
1917
|
-
|
|
1916
|
+
x.checked ? (o(), F("section", Ul, [
|
|
1918
1917
|
m("span", {
|
|
1919
|
-
class:
|
|
1918
|
+
class: j(x.fixed ? "drag-hide" : "drag-handle")
|
|
1920
1919
|
}, "⋮⋮", 2),
|
|
1921
|
-
|
|
1920
|
+
x.fixed ? (o(), B(c, { key: 0 }, {
|
|
1922
1921
|
title: l(() => [
|
|
1923
|
-
I(
|
|
1922
|
+
I(y(n(h)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1924
1923
|
]),
|
|
1925
1924
|
default: l(() => [
|
|
1926
1925
|
m("span", {
|
|
1927
1926
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1928
|
-
onClick: (E) =>
|
|
1929
|
-
}, [...
|
|
1927
|
+
onClick: (E) => k(x)
|
|
1928
|
+
}, [...p[2] || (p[2] = [
|
|
1930
1929
|
m("svg", {
|
|
1931
1930
|
t: "1759048615600",
|
|
1932
1931
|
class: "icon",
|
|
@@ -1946,16 +1945,16 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1946
1945
|
])], 8, El)
|
|
1947
1946
|
]),
|
|
1948
1947
|
_: 2
|
|
1949
|
-
}, 1024)) :
|
|
1950
|
-
|
|
1948
|
+
}, 1024)) : O("", !0),
|
|
1949
|
+
x.fixed ? O("", !0) : (o(), B(c, { key: 1 }, {
|
|
1951
1950
|
title: l(() => [
|
|
1952
|
-
I(
|
|
1951
|
+
I(y(n(h)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1953
1952
|
]),
|
|
1954
1953
|
default: l(() => [
|
|
1955
1954
|
m("span", {
|
|
1956
1955
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1957
|
-
onClick: (E) => K(
|
|
1958
|
-
}, [...
|
|
1956
|
+
onClick: (E) => K(x)
|
|
1957
|
+
}, [...p[3] || (p[3] = [
|
|
1959
1958
|
m("svg", {
|
|
1960
1959
|
t: "1759048735643",
|
|
1961
1960
|
class: "icon",
|
|
@@ -1976,41 +1975,41 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
1976
1975
|
]),
|
|
1977
1976
|
_: 2
|
|
1978
1977
|
}, 1024))
|
|
1979
|
-
])) :
|
|
1980
|
-
])) :
|
|
1978
|
+
])) : O("", !0)
|
|
1979
|
+
])) : O("", !0)
|
|
1981
1980
|
]),
|
|
1982
1981
|
_: 1
|
|
1983
1982
|
}, 8, ["modelValue"]),
|
|
1984
1983
|
m("div", Yl, [
|
|
1985
1984
|
m("div", jl, [
|
|
1986
1985
|
w(n(_e), {
|
|
1987
|
-
checked:
|
|
1986
|
+
checked: C.value,
|
|
1988
1987
|
indeterminate: z.value,
|
|
1989
1988
|
onChange: H
|
|
1990
1989
|
}, {
|
|
1991
1990
|
default: l(() => [
|
|
1992
|
-
I(
|
|
1991
|
+
I(y(n(h)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1993
1992
|
]),
|
|
1994
1993
|
_: 1
|
|
1995
1994
|
}, 8, ["checked", "indeterminate"])
|
|
1996
1995
|
]),
|
|
1997
|
-
w(
|
|
1996
|
+
w(s, {
|
|
1998
1997
|
onClick: a,
|
|
1999
1998
|
type: "primary"
|
|
2000
1999
|
}, {
|
|
2001
2000
|
default: l(() => [
|
|
2002
|
-
I(
|
|
2001
|
+
I(y(n(h)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2003
2002
|
]),
|
|
2004
2003
|
_: 1
|
|
2005
2004
|
})
|
|
2006
2005
|
])
|
|
2007
2006
|
]),
|
|
2008
2007
|
default: l(() => [
|
|
2009
|
-
w(
|
|
2010
|
-
title: n(
|
|
2008
|
+
w(c, {
|
|
2009
|
+
title: n(h)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2011
2010
|
placement: "leftTop"
|
|
2012
2011
|
}, {
|
|
2013
|
-
default: l(() => [...
|
|
2012
|
+
default: l(() => [...p[4] || (p[4] = [
|
|
2014
2013
|
m("span", { class: "hb-lib-table-col-set" }, [
|
|
2015
2014
|
m("svg", {
|
|
2016
2015
|
t: "1759041858618",
|
|
@@ -2048,7 +2047,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2048
2047
|
HbLibFormItemFilterModal: It,
|
|
2049
2048
|
HbLibListBtnsAct: Jt,
|
|
2050
2049
|
HbLibListForm: zt,
|
|
2051
|
-
HbLibListMultiSelect:
|
|
2050
|
+
HbLibListMultiSelect: bl,
|
|
2052
2051
|
HbLibListPageAct: Vt,
|
|
2053
2052
|
HbLibListPageContainer: Zt,
|
|
2054
2053
|
HbLibListTable: Rl,
|
|
@@ -2059,7 +2058,7 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2059
2058
|
name: "HbLibFormTooltipSelect",
|
|
2060
2059
|
inheritAttrs: !1,
|
|
2061
2060
|
__name: "HbTooltipSelect",
|
|
2062
|
-
props: /* @__PURE__ */
|
|
2061
|
+
props: /* @__PURE__ */ $e({
|
|
2063
2062
|
options: { default: () => [] },
|
|
2064
2063
|
tooltipPlacement: { default: "right" },
|
|
2065
2064
|
tooltipMaxWidth: { default: 280 },
|
|
@@ -2073,15 +2072,15 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2073
2072
|
}),
|
|
2074
2073
|
emits: ["update:value"],
|
|
2075
2074
|
setup(t, { expose: f }) {
|
|
2076
|
-
const
|
|
2077
|
-
const H =
|
|
2075
|
+
const i = t, h = ct(), _ = U(() => {
|
|
2076
|
+
const H = h, M = H.dropdownClassName;
|
|
2078
2077
|
return {
|
|
2079
2078
|
...H,
|
|
2080
|
-
dropdownClassName:
|
|
2079
|
+
dropdownClassName: M ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2081
2080
|
};
|
|
2082
|
-
}), g = R(),
|
|
2083
|
-
maxWidth: typeof
|
|
2084
|
-
})), e = (H) => H.tooltip ?? H.label,
|
|
2081
|
+
}), g = R(), r = ot(t, "value"), d = U(() => i.options ?? []), b = U(() => ({
|
|
2082
|
+
maxWidth: typeof i.tooltipMaxWidth == "number" ? `${i.tooltipMaxWidth}px` : i.tooltipMaxWidth
|
|
2083
|
+
})), e = (H) => H.tooltip ?? H.label, C = (H) => H.key ?? H.label, z = (H) => !!(i.enableTooltip && e(H));
|
|
2085
2084
|
return f({
|
|
2086
2085
|
focus: () => {
|
|
2087
2086
|
g.value?.focus?.();
|
|
@@ -2090,37 +2089,37 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2090
2089
|
g.value?.blur?.();
|
|
2091
2090
|
},
|
|
2092
2091
|
selectRef: g
|
|
2093
|
-
}), (H,
|
|
2092
|
+
}), (H, M) => (o(), B(n(De), ee({
|
|
2094
2093
|
ref_key: "selectRef",
|
|
2095
2094
|
ref: g,
|
|
2096
2095
|
class: "hb_lib_form_tooltip_select"
|
|
2097
2096
|
}, _.value, {
|
|
2098
|
-
value:
|
|
2099
|
-
"onUpdate:value":
|
|
2097
|
+
value: r.value,
|
|
2098
|
+
"onUpdate:value": M[0] || (M[0] = (a) => r.value = a)
|
|
2100
2099
|
}), {
|
|
2101
2100
|
default: l(() => [
|
|
2102
|
-
H.$slots.default ?
|
|
2103
|
-
key:
|
|
2101
|
+
H.$slots.default ? V(H.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), F(Y, { key: 1 }, ne(d.value, (a) => (o(), B(n(Ae), ee({
|
|
2102
|
+
key: C(a),
|
|
2104
2103
|
value: a.value,
|
|
2105
2104
|
disabled: a.disabled
|
|
2106
2105
|
}, { ref_for: !0 }, a.optionProps), {
|
|
2107
2106
|
default: l(() => [
|
|
2108
|
-
z(a) ? (o(),
|
|
2107
|
+
z(a) ? (o(), B(n(He), {
|
|
2109
2108
|
key: 0,
|
|
2110
2109
|
title: e(a),
|
|
2111
|
-
placement:
|
|
2112
|
-
overlayStyle:
|
|
2110
|
+
placement: i.tooltipPlacement,
|
|
2111
|
+
overlayStyle: b.value
|
|
2113
2112
|
}, {
|
|
2114
2113
|
default: l(() => [
|
|
2115
2114
|
m("span", {
|
|
2116
|
-
class:
|
|
2117
|
-
},
|
|
2115
|
+
class: j(["hb_lib_form_tooltip_select__option", { "is-ellipsis": i.enableEllipsis }])
|
|
2116
|
+
}, y(a.label), 3)
|
|
2118
2117
|
]),
|
|
2119
2118
|
_: 2
|
|
2120
2119
|
}, 1032, ["title", "placement", "overlayStyle"])) : (o(), F("span", {
|
|
2121
2120
|
key: 1,
|
|
2122
|
-
class:
|
|
2123
|
-
},
|
|
2121
|
+
class: j(["hb_lib_form_tooltip_select__option", { "is-ellipsis": i.enableEllipsis }])
|
|
2122
|
+
}, y(a.label), 3))
|
|
2124
2123
|
]),
|
|
2125
2124
|
_: 2
|
|
2126
2125
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2150,58 +2149,58 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2150
2149
|
beforeSubmit: {}
|
|
2151
2150
|
},
|
|
2152
2151
|
setup(t, { expose: f }) {
|
|
2153
|
-
const { t:
|
|
2152
|
+
const { t: i } = de(), h = R(), _ = t, g = R(!1), r = Le({
|
|
2154
2153
|
fileList: [],
|
|
2155
2154
|
visible: !1
|
|
2156
|
-
}),
|
|
2157
|
-
if (
|
|
2155
|
+
}), d = (S) => {
|
|
2156
|
+
if (S == null)
|
|
2158
2157
|
return;
|
|
2159
|
-
const N =
|
|
2158
|
+
const N = r.fileList.indexOf(S);
|
|
2160
2159
|
if (N !== -1) {
|
|
2161
|
-
const H =
|
|
2162
|
-
H.splice(N, 1),
|
|
2160
|
+
const H = r.fileList.slice();
|
|
2161
|
+
H.splice(N, 1), r.fileList = H;
|
|
2163
2162
|
}
|
|
2164
|
-
},
|
|
2165
|
-
|
|
2166
|
-
}, e = (
|
|
2167
|
-
|
|
2168
|
-
_.beforeSubmit && (g.value = !0, _.beforeSubmit(
|
|
2163
|
+
}, b = () => {
|
|
2164
|
+
r.visible = !1, r.fileList = [], g.value = !1;
|
|
2165
|
+
}, e = (S) => (r.fileList = [S], _.beforeUpload ? _.beforeUpload(S) : !1), C = () => {
|
|
2166
|
+
h.value.validateFields().then(() => {
|
|
2167
|
+
_.beforeSubmit && (g.value = !0, _.beforeSubmit(r.fileList).then((S) => {
|
|
2169
2168
|
}).finally(() => {
|
|
2170
2169
|
g.value = !1;
|
|
2171
2170
|
}));
|
|
2172
2171
|
});
|
|
2173
2172
|
}, z = () => {
|
|
2174
|
-
|
|
2173
|
+
r.visible = !0;
|
|
2175
2174
|
};
|
|
2176
2175
|
return f({
|
|
2177
|
-
handleCancel:
|
|
2176
|
+
handleCancel: b,
|
|
2178
2177
|
openModal: z,
|
|
2179
2178
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2180
2179
|
confirmLoading: g
|
|
2181
|
-
}), (
|
|
2182
|
-
const H = P("a-upload-dragger"),
|
|
2183
|
-
return o(), F(
|
|
2184
|
-
w(
|
|
2180
|
+
}), (S, N) => {
|
|
2181
|
+
const H = P("a-upload-dragger"), M = P("a-form-item"), a = P("a-form"), L = P("a-modal"), $ = P("a-button");
|
|
2182
|
+
return o(), F(Y, null, [
|
|
2183
|
+
w(L, ee({
|
|
2185
2184
|
title: _.title,
|
|
2186
|
-
visible:
|
|
2187
|
-
"onUpdate:visible": N[0] || (N[0] = (
|
|
2185
|
+
visible: r.visible,
|
|
2186
|
+
"onUpdate:visible": N[0] || (N[0] = (k) => r.visible = k),
|
|
2188
2187
|
"confirm-loading": g.value
|
|
2189
|
-
},
|
|
2190
|
-
onCancel:
|
|
2191
|
-
onOk:
|
|
2188
|
+
}, S.$attrs, {
|
|
2189
|
+
onCancel: b,
|
|
2190
|
+
onOk: C,
|
|
2192
2191
|
width: _.modalWidth
|
|
2193
2192
|
}), {
|
|
2194
2193
|
default: l(() => [
|
|
2195
2194
|
w(a, {
|
|
2196
2195
|
ref_key: "modalFormRef",
|
|
2197
|
-
ref:
|
|
2198
|
-
model:
|
|
2196
|
+
ref: h,
|
|
2197
|
+
model: r
|
|
2199
2198
|
}, {
|
|
2200
2199
|
default: l(() => [
|
|
2201
|
-
w(
|
|
2200
|
+
w(M, {
|
|
2202
2201
|
name: "fileList",
|
|
2203
|
-
label: n(
|
|
2204
|
-
rules: [{ required: _.isRequired, message: n(
|
|
2202
|
+
label: n(i)("hbLibComp.HbImportFile.fileLabel"),
|
|
2203
|
+
rules: [{ required: _.isRequired, message: n(i)("hbLibComp.HbImportFile.clickUp") }]
|
|
2205
2204
|
}, {
|
|
2206
2205
|
default: l(() => [
|
|
2207
2206
|
w(H, {
|
|
@@ -2209,8 +2208,8 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2209
2208
|
multiple: _.multiple,
|
|
2210
2209
|
accept: _.acceptFile,
|
|
2211
2210
|
name: "file",
|
|
2212
|
-
fileList:
|
|
2213
|
-
onRemove:
|
|
2211
|
+
fileList: r.fileList,
|
|
2212
|
+
onRemove: d,
|
|
2214
2213
|
beforeUpload: e
|
|
2215
2214
|
}, {
|
|
2216
2215
|
default: l(() => [
|
|
@@ -2218,10 +2217,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2218
2217
|
w(n(Lt), { style: { "font-size": "37px" } })
|
|
2219
2218
|
]),
|
|
2220
2219
|
m("p", to, [
|
|
2221
|
-
I(
|
|
2222
|
-
m("span", lo,
|
|
2220
|
+
I(y(n(i)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2221
|
+
m("span", lo, y(n(i)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2223
2222
|
]),
|
|
2224
|
-
m("p", oo,
|
|
2223
|
+
m("p", oo, y(n(i)("hbLibComp.HbFileUploadModal.format")) + ": " + y(_.acceptFile), 1)
|
|
2225
2224
|
]),
|
|
2226
2225
|
_: 1
|
|
2227
2226
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2235,18 +2234,18 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2235
2234
|
m("a", {
|
|
2236
2235
|
download: "Import_number-template.xlsx",
|
|
2237
2236
|
href: _.templateUrl
|
|
2238
|
-
},
|
|
2239
|
-
])) :
|
|
2237
|
+
}, y(n(i)("hbLibComp.HbImportFile.downloadTemplate")), 9, no)
|
|
2238
|
+
])) : O("", !0)
|
|
2240
2239
|
]),
|
|
2241
2240
|
_: 1
|
|
2242
2241
|
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2243
|
-
|
|
2244
|
-
w(
|
|
2242
|
+
V(S.$slots, "btn", {}, () => [
|
|
2243
|
+
w($, {
|
|
2245
2244
|
onClick: z,
|
|
2246
2245
|
type: "primary"
|
|
2247
2246
|
}, {
|
|
2248
2247
|
default: l(() => [
|
|
2249
|
-
I(
|
|
2248
|
+
I(y(t.btnText), 1)
|
|
2250
2249
|
]),
|
|
2251
2250
|
_: 1
|
|
2252
2251
|
})
|
|
@@ -2303,32 +2302,32 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2303
2302
|
__name: "copy",
|
|
2304
2303
|
props: uo,
|
|
2305
2304
|
setup(t) {
|
|
2306
|
-
const f = t,
|
|
2305
|
+
const f = t, i = R();
|
|
2307
2306
|
ut(() => {
|
|
2308
|
-
|
|
2307
|
+
i.value = f.data;
|
|
2309
2308
|
});
|
|
2310
|
-
const
|
|
2309
|
+
const h = U(() => {
|
|
2311
2310
|
if (f.cpText) return f.cpText;
|
|
2312
2311
|
let g = "";
|
|
2313
2312
|
if (f.data)
|
|
2314
2313
|
if (Array.isArray(f.data)) {
|
|
2315
2314
|
if (f.K && f.V && f.L) {
|
|
2316
|
-
const
|
|
2317
|
-
g =
|
|
2315
|
+
const r = f.data.find((d) => d?.[f.K] === f.V);
|
|
2316
|
+
g = r ? r[f.L] : "";
|
|
2318
2317
|
}
|
|
2319
2318
|
} else
|
|
2320
2319
|
f.K && (g = f.data[f.K]);
|
|
2321
2320
|
return g;
|
|
2322
2321
|
}), _ = () => {
|
|
2323
|
-
navigator.clipboard.writeText(
|
|
2322
|
+
navigator.clipboard.writeText(h.value).then(() => {
|
|
2324
2323
|
ze.success(f.copySuccessTip);
|
|
2325
2324
|
}).catch(() => {
|
|
2326
2325
|
ze.error("复制失败");
|
|
2327
2326
|
});
|
|
2328
2327
|
};
|
|
2329
|
-
return (g,
|
|
2330
|
-
const
|
|
2331
|
-
return
|
|
2328
|
+
return (g, r) => {
|
|
2329
|
+
const d = P("a-tooltip");
|
|
2330
|
+
return h.value ? (o(), B(d, {
|
|
2332
2331
|
key: 0,
|
|
2333
2332
|
title: g.tooltipTitle
|
|
2334
2333
|
}, {
|
|
@@ -2336,8 +2335,8 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2336
2335
|
m("span", {
|
|
2337
2336
|
class: "hb-lib-copy-text-eyevue",
|
|
2338
2337
|
style: ke({ ...g.cpStyle }),
|
|
2339
|
-
onClick:
|
|
2340
|
-
}, [...
|
|
2338
|
+
onClick: Me(_, ["stop", "prevent"])
|
|
2339
|
+
}, [...r[0] || (r[0] = [
|
|
2341
2340
|
m("svg", {
|
|
2342
2341
|
t: "1766643849597",
|
|
2343
2342
|
class: "icon",
|
|
@@ -2367,10 +2366,10 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2367
2366
|
])], 4)
|
|
2368
2367
|
]),
|
|
2369
2368
|
_: 1
|
|
2370
|
-
}, 8, ["title"])) :
|
|
2369
|
+
}, 8, ["title"])) : O("", !0);
|
|
2371
2370
|
};
|
|
2372
2371
|
}
|
|
2373
|
-
}),
|
|
2372
|
+
}), ho = /* @__PURE__ */ ae(po, [["__scopeId", "data-v-2531dd06"]]), bo = le(ho), fo = {
|
|
2374
2373
|
dragList: {
|
|
2375
2374
|
type: Array,
|
|
2376
2375
|
required: !0
|
|
@@ -2415,62 +2414,62 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2415
2414
|
props: fo,
|
|
2416
2415
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2417
2416
|
setup(t, { emit: f }) {
|
|
2418
|
-
const
|
|
2417
|
+
const i = t, h = pt([]);
|
|
2419
2418
|
se(
|
|
2420
|
-
() =>
|
|
2421
|
-
(
|
|
2422
|
-
|
|
2419
|
+
() => i.dragList,
|
|
2420
|
+
(C) => {
|
|
2421
|
+
h.value = C;
|
|
2423
2422
|
},
|
|
2424
2423
|
{
|
|
2425
2424
|
deep: !0,
|
|
2426
2425
|
immediate: !0
|
|
2427
2426
|
}
|
|
2428
2427
|
);
|
|
2429
|
-
const _ =
|
|
2430
|
-
console.log("drag start",
|
|
2431
|
-
},
|
|
2432
|
-
console.log("drag end",
|
|
2433
|
-
},
|
|
2434
|
-
console.log("drag add",
|
|
2435
|
-
}, e = (
|
|
2436
|
-
console.log("drag remove",
|
|
2428
|
+
const _ = Ne("drag"), g = f, r = (C) => {
|
|
2429
|
+
console.log("drag start", C), g("handleDragStart", C);
|
|
2430
|
+
}, d = (C) => {
|
|
2431
|
+
console.log("drag end", C), g("handleDragEnd", C);
|
|
2432
|
+
}, b = (C) => {
|
|
2433
|
+
console.log("drag add", C), g("handleDragAdd", C);
|
|
2434
|
+
}, e = (C) => {
|
|
2435
|
+
console.log("drag remove", C), g("handleDragRemove", C);
|
|
2437
2436
|
};
|
|
2438
|
-
return (
|
|
2439
|
-
class:
|
|
2437
|
+
return (C, z) => (o(), F("div", {
|
|
2438
|
+
class: j(n(_).b())
|
|
2440
2439
|
}, [
|
|
2441
|
-
|
|
2440
|
+
C.childrenType == "component" ? (o(), B(n(Ce), ee({
|
|
2442
2441
|
key: 0,
|
|
2443
|
-
modelValue:
|
|
2444
|
-
"onUpdate:modelValue": z[0] || (z[0] = (
|
|
2442
|
+
modelValue: h.value,
|
|
2443
|
+
"onUpdate:modelValue": z[0] || (z[0] = (S) => h.value = S),
|
|
2445
2444
|
"item-key": "key",
|
|
2446
|
-
class: { [
|
|
2447
|
-
},
|
|
2448
|
-
"ghost-class":
|
|
2449
|
-
onStart:
|
|
2450
|
-
onEnd:
|
|
2451
|
-
onAdd:
|
|
2445
|
+
class: { [C.dragClass]: C.dragClass }
|
|
2446
|
+
}, C.$attrs, {
|
|
2447
|
+
"ghost-class": C.ghostClass,
|
|
2448
|
+
onStart: r,
|
|
2449
|
+
onEnd: d,
|
|
2450
|
+
onAdd: b,
|
|
2452
2451
|
onRemove: e
|
|
2453
2452
|
}), {
|
|
2454
|
-
item: l(({ element:
|
|
2455
|
-
(o(),
|
|
2453
|
+
item: l(({ element: S }) => [
|
|
2454
|
+
(o(), B(ht(S.component)))
|
|
2456
2455
|
]),
|
|
2457
2456
|
_: 1
|
|
2458
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (o(),
|
|
2457
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), B(n(Ce), ee({
|
|
2459
2458
|
key: 1,
|
|
2460
|
-
modelValue:
|
|
2461
|
-
"onUpdate:modelValue": z[1] || (z[1] = (
|
|
2459
|
+
modelValue: h.value,
|
|
2460
|
+
"onUpdate:modelValue": z[1] || (z[1] = (S) => h.value = S),
|
|
2462
2461
|
"item-key": "id",
|
|
2463
|
-
class: { [
|
|
2464
|
-
},
|
|
2465
|
-
"ghost-class":
|
|
2466
|
-
onStart:
|
|
2467
|
-
onEnd:
|
|
2468
|
-
onAdd:
|
|
2462
|
+
class: { [C.dragClass]: C.dragClass }
|
|
2463
|
+
}, C.$attrs, {
|
|
2464
|
+
"ghost-class": C.ghostClass,
|
|
2465
|
+
onStart: r,
|
|
2466
|
+
onEnd: d,
|
|
2467
|
+
onAdd: b,
|
|
2469
2468
|
onRemove: e
|
|
2470
2469
|
}), {
|
|
2471
|
-
item: l(({ element:
|
|
2470
|
+
item: l(({ element: S }) => [
|
|
2472
2471
|
m("div", null, [
|
|
2473
|
-
|
|
2472
|
+
V(C.$slots, "default", { item: S }, void 0, !0)
|
|
2474
2473
|
])
|
|
2475
2474
|
]),
|
|
2476
2475
|
_: 3
|
|
@@ -2479,15 +2478,18 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2479
2478
|
}
|
|
2480
2479
|
}), vo = /* @__PURE__ */ ae(mo, [["__scopeId", "data-v-15b227f5"]]), go = le(vo), yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2481
2480
|
__proto__: null,
|
|
2482
|
-
HbLibCopy:
|
|
2481
|
+
HbLibCopy: bo,
|
|
2483
2482
|
HbLibFuncCompDrag: go
|
|
2484
2483
|
}, Symbol.toStringTag, { value: "Module" })), Co = { class: "log_remark" }, _o = /* @__PURE__ */ te({
|
|
2485
2484
|
name: "HbLibLogModal",
|
|
2486
2485
|
__name: "HbLogModal",
|
|
2487
2486
|
props: {
|
|
2488
2487
|
visible: { type: Boolean, default: !1 },
|
|
2488
|
+
needBtn: { type: Boolean, default: !1 },
|
|
2489
2489
|
title: { default: "" },
|
|
2490
2490
|
width: { default: "45%" },
|
|
2491
|
+
height: { default: "60%" },
|
|
2492
|
+
dataStr: { default: "records" },
|
|
2491
2493
|
scrollY: { default: 500 },
|
|
2492
2494
|
params: { default: () => ({}) },
|
|
2493
2495
|
url: {},
|
|
@@ -2497,28 +2499,28 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2497
2499
|
getLogData: {}
|
|
2498
2500
|
},
|
|
2499
2501
|
emits: ["update:visible"],
|
|
2500
|
-
setup(t, { expose: f, emit:
|
|
2501
|
-
const { t:
|
|
2502
|
+
setup(t, { expose: f, emit: i }) {
|
|
2503
|
+
const { t: h } = de(), _ = t, g = [
|
|
2502
2504
|
{
|
|
2503
|
-
title:
|
|
2505
|
+
title: h("hbLibComp.HbLogModal.operator"),
|
|
2504
2506
|
dataIndex: "userName",
|
|
2505
2507
|
width: "15%"
|
|
2506
2508
|
},
|
|
2507
2509
|
{
|
|
2508
|
-
title:
|
|
2510
|
+
title: h("hbLibComp.HbLogModal.operateTime"),
|
|
2509
2511
|
dataIndex: "operateTime",
|
|
2510
2512
|
width: "25%"
|
|
2511
2513
|
},
|
|
2512
|
-
{ title:
|
|
2513
|
-
],
|
|
2514
|
+
{ title: h("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2515
|
+
], r = U(() => _.columns || g), d = U(() => _.title || h("hbLibComp.HbLogModal.operateLogs")), b = R(!1), e = Le({
|
|
2514
2516
|
list: [],
|
|
2515
2517
|
pagination: {
|
|
2516
2518
|
current: 1,
|
|
2517
|
-
pageSize:
|
|
2519
|
+
pageSize: 10,
|
|
2518
2520
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2519
2521
|
showQuickJumper: !0,
|
|
2520
2522
|
showSizeChanger: !0,
|
|
2521
|
-
showTotal: (a,
|
|
2523
|
+
showTotal: (a, L) => L[0] + "-" + L[1] + " 总共" + a + "页",
|
|
2522
2524
|
total: 0
|
|
2523
2525
|
}
|
|
2524
2526
|
});
|
|
@@ -2535,45 +2537,46 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2535
2537
|
immediate: !0
|
|
2536
2538
|
}
|
|
2537
2539
|
);
|
|
2538
|
-
const
|
|
2539
|
-
const
|
|
2540
|
-
pageIndex:
|
|
2540
|
+
const C = () => {
|
|
2541
|
+
const a = {
|
|
2542
|
+
pageIndex: e.pagination.current,
|
|
2541
2543
|
pageSize: e.pagination.pageSize,
|
|
2542
2544
|
query: _.params
|
|
2543
2545
|
};
|
|
2544
|
-
_.getLogData && (
|
|
2545
|
-
Number(
|
|
2546
|
+
_.getLogData && (b.value = !0, _.getLogData(a).then((L) => {
|
|
2547
|
+
Number(L.code) == 200 && (e.pagination.total = Number(L.data.total), e.list = L.data[_.dataStr] || []);
|
|
2546
2548
|
}).finally(() => {
|
|
2547
|
-
|
|
2549
|
+
b.value = !1;
|
|
2548
2550
|
}));
|
|
2549
2551
|
}, z = (a) => {
|
|
2550
|
-
e.pagination.current = a.current, e.pagination.pageSize = a.pageSize,
|
|
2551
|
-
},
|
|
2552
|
-
e.list = [],
|
|
2552
|
+
e.pagination.current = a.current, e.pagination.pageSize = a.pageSize, C();
|
|
2553
|
+
}, S = () => {
|
|
2554
|
+
e.list = [], M("update:visible", !1);
|
|
2553
2555
|
}, N = () => {
|
|
2554
|
-
|
|
2555
|
-
}, H = (a,
|
|
2556
|
+
M("update:visible", !0);
|
|
2557
|
+
}, H = (a, L = "YYYY-MM-DD HH:mm:ss") => a ? Se(a).format(L) : "", M = i;
|
|
2556
2558
|
return se(
|
|
2557
2559
|
() => _.visible,
|
|
2558
2560
|
(a) => {
|
|
2559
|
-
a &&
|
|
2561
|
+
a && C();
|
|
2560
2562
|
}
|
|
2561
2563
|
), f({
|
|
2562
|
-
close:
|
|
2563
|
-
loading:
|
|
2564
|
-
}), (a,
|
|
2565
|
-
const
|
|
2566
|
-
return o(), F(
|
|
2567
|
-
w(
|
|
2564
|
+
close: S,
|
|
2565
|
+
loading: b
|
|
2566
|
+
}), (a, L) => {
|
|
2567
|
+
const $ = P("a-tooltip"), k = P("HbLibCopy"), K = P("a-table"), v = P("a-button"), p = P("a-modal");
|
|
2568
|
+
return o(), F(Y, null, [
|
|
2569
|
+
w(p, {
|
|
2568
2570
|
visible: t.visible,
|
|
2569
|
-
title:
|
|
2571
|
+
title: d.value,
|
|
2570
2572
|
width: t.width,
|
|
2571
|
-
|
|
2573
|
+
height: t.height,
|
|
2574
|
+
onCancel: S
|
|
2572
2575
|
}, {
|
|
2573
2576
|
footer: l(() => [
|
|
2574
|
-
w(v, { onClick:
|
|
2577
|
+
w(v, { onClick: S }, {
|
|
2575
2578
|
default: l(() => [
|
|
2576
|
-
I(
|
|
2579
|
+
I(y(n(h)("hbLibComp.HbLogModal.close")), 1)
|
|
2577
2580
|
]),
|
|
2578
2581
|
_: 1
|
|
2579
2582
|
})
|
|
@@ -2582,56 +2585,67 @@ const wt = "hb-", Pe = (t = "") => {
|
|
|
2582
2585
|
w(K, {
|
|
2583
2586
|
bordered: "",
|
|
2584
2587
|
rowKey: "id",
|
|
2585
|
-
columns:
|
|
2588
|
+
columns: r.value,
|
|
2586
2589
|
dataSource: e.list,
|
|
2587
2590
|
pagination: e.pagination,
|
|
2588
|
-
loading:
|
|
2591
|
+
loading: b.value,
|
|
2592
|
+
scroll: { y: t.scrollY },
|
|
2589
2593
|
onChange: z
|
|
2590
|
-
}, {
|
|
2591
|
-
bodyCell: l(({ column:
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
+
}, Oe({
|
|
2595
|
+
bodyCell: l(({ column: c, record: s }) => [
|
|
2596
|
+
c && c.needTooltip ? (o(), F(Y, { key: 0 }, [
|
|
2597
|
+
c.needTooltip ? (o(), B($, { key: 0 }, {
|
|
2594
2598
|
title: l(() => [
|
|
2595
|
-
I(
|
|
2599
|
+
I(y(s[c.dataIndex]), 1)
|
|
2596
2600
|
]),
|
|
2597
2601
|
default: l(() => [
|
|
2598
|
-
I(" " +
|
|
2602
|
+
I(" " + y(s[c.dataIndex]), 1)
|
|
2599
2603
|
]),
|
|
2600
2604
|
_: 2
|
|
2601
|
-
}, 1024)) :
|
|
2602
|
-
], 64)) :
|
|
2603
|
-
|
|
2604
|
-
m("div", Co,
|
|
2605
|
-
w(
|
|
2606
|
-
"cp-text":
|
|
2605
|
+
}, 1024)) : O("", !0)
|
|
2606
|
+
], 64)) : O("", !0),
|
|
2607
|
+
c && c.needCopy ? (o(), F(Y, { key: 1 }, [
|
|
2608
|
+
m("div", Co, y(s[c.dataIndex]), 1),
|
|
2609
|
+
w(k, {
|
|
2610
|
+
"cp-text": s[c.dataIndex],
|
|
2607
2611
|
style: { position: "relative" }
|
|
2608
2612
|
}, null, 8, ["cp-text"])
|
|
2609
|
-
], 64)) :
|
|
2610
|
-
|
|
2611
|
-
I(
|
|
2612
|
-
], 64)) :
|
|
2613
|
+
], 64)) : O("", !0),
|
|
2614
|
+
c && c.needFormat ? (o(), F(Y, { key: 2 }, [
|
|
2615
|
+
I(y(H(s[c.dataIndex], c.operateTime)), 1)
|
|
2616
|
+
], 64)) : O("", !0)
|
|
2613
2617
|
]),
|
|
2614
|
-
_:
|
|
2615
|
-
},
|
|
2618
|
+
_: 2
|
|
2619
|
+
}, [
|
|
2620
|
+
a.$slots.headerCell ? {
|
|
2621
|
+
name: "headerCell",
|
|
2622
|
+
fn: l(({ column: c }) => [
|
|
2623
|
+
V(a.$slots, "headerCell", { column: c }, () => [
|
|
2624
|
+
I(y(c.title), 1)
|
|
2625
|
+
], !0)
|
|
2626
|
+
]),
|
|
2627
|
+
key: "0"
|
|
2628
|
+
} : void 0
|
|
2629
|
+
]), 1032, ["columns", "dataSource", "pagination", "loading", "scroll"])
|
|
2616
2630
|
]),
|
|
2617
|
-
_:
|
|
2618
|
-
}, 8, ["visible", "title", "width"]),
|
|
2619
|
-
|
|
2631
|
+
_: 3
|
|
2632
|
+
}, 8, ["visible", "title", "width", "height"]),
|
|
2633
|
+
t.needBtn ? V(a.$slots, "default", { key: 0 }, () => [
|
|
2620
2634
|
w(v, { onClick: N }, {
|
|
2621
2635
|
default: l(() => [
|
|
2622
|
-
I(
|
|
2636
|
+
I(y(t.logBtnText), 1)
|
|
2623
2637
|
]),
|
|
2624
2638
|
_: 1
|
|
2625
2639
|
})
|
|
2626
|
-
], !0)
|
|
2640
|
+
], !0) : O("", !0)
|
|
2627
2641
|
], 64);
|
|
2628
2642
|
};
|
|
2629
2643
|
}
|
|
2630
|
-
}), Lo = /* @__PURE__ */ ae(_o, [["__scopeId", "data-v-
|
|
2644
|
+
}), Lo = /* @__PURE__ */ ae(_o, [["__scopeId", "data-v-9e530cf6"]]), ko = le(Lo), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2631
2645
|
__proto__: null,
|
|
2632
2646
|
HbLibLogModal: ko
|
|
2633
2647
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2634
|
-
let
|
|
2648
|
+
let tt = {
|
|
2635
2649
|
...Jl,
|
|
2636
2650
|
...Xl,
|
|
2637
2651
|
...co,
|
|
@@ -2642,25 +2656,25 @@ const wo = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to uploa
|
|
|
2642
2656
|
hbLibComp: wo
|
|
2643
2657
|
}, xo = { 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: "ファイルのアップロード" } }, To = {
|
|
2644
2658
|
hbLibComp: xo
|
|
2645
|
-
},
|
|
2646
|
-
hbLibComp:
|
|
2659
|
+
}, $o = { 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 = {
|
|
2660
|
+
hbLibComp: $o
|
|
2647
2661
|
}, Io = { 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" } }, Ho = {
|
|
2648
2662
|
hbLibComp: Io
|
|
2649
2663
|
};
|
|
2650
|
-
var ye = { exports: {} }, Do = ye.exports,
|
|
2664
|
+
var ye = { exports: {} }, Do = ye.exports, lt;
|
|
2651
2665
|
function Ao() {
|
|
2652
|
-
return
|
|
2653
|
-
(function(
|
|
2654
|
-
t.exports =
|
|
2655
|
-
})(Do, (function(
|
|
2656
|
-
function
|
|
2657
|
-
return
|
|
2666
|
+
return lt || (lt = 1, (function(t, f) {
|
|
2667
|
+
(function(i, h) {
|
|
2668
|
+
t.exports = h(Se);
|
|
2669
|
+
})(Do, (function(i) {
|
|
2670
|
+
function h(r) {
|
|
2671
|
+
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
2658
2672
|
}
|
|
2659
|
-
var _ =
|
|
2660
|
-
return
|
|
2661
|
-
}, 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(
|
|
2662
|
-
var
|
|
2663
|
-
return
|
|
2673
|
+
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) {
|
|
2674
|
+
return d === "W" ? r + "周" : r + "日";
|
|
2675
|
+
}, 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) {
|
|
2676
|
+
var b = 100 * r + d;
|
|
2677
|
+
return b < 600 ? "凌晨" : b < 900 ? "早上" : b < 1100 ? "上午" : b < 1300 ? "中午" : b < 1800 ? "下午" : "晚上";
|
|
2664
2678
|
} };
|
|
2665
2679
|
return _.default.locale(g, null, !0), g;
|
|
2666
2680
|
}));
|
|
@@ -2671,11 +2685,11 @@ Se.locale("zh-cn");
|
|
|
2671
2685
|
const Yo = {
|
|
2672
2686
|
en_US: Fo,
|
|
2673
2687
|
ja_JP: To,
|
|
2674
|
-
zh_CN:
|
|
2688
|
+
zh_CN: Mo,
|
|
2675
2689
|
de_DE: Ho
|
|
2676
2690
|
}, jo = function(t) {
|
|
2677
|
-
Object.keys(
|
|
2678
|
-
t.use(
|
|
2691
|
+
Object.keys(tt).forEach((i) => {
|
|
2692
|
+
t.use(tt[i]);
|
|
2679
2693
|
});
|
|
2680
2694
|
};
|
|
2681
2695
|
export {
|