@hb-hellotech/hb-ui 1.3.15 → 1.3.16
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/modal_comp/log_modal/src/type.d.ts +2 -0
- package/dist/components/business_comp/modal_comp/log_modal/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts +6 -2
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts.map +1 -1
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1242 -1234
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as G, inject as fe, computed as z, reactive as Se, ref as O, watch as te, onMounted as he, createElementBlock as S, openBlock as i, normalizeClass as Y, unref as _, createVNode as w, withCtx as c, createElementVNode as d, toDisplayString as L, createTextVNode as B, createBlock as N, createCommentVNode as E, Fragment as q, renderList as ie, resolveComponent as R, Transition as Dt, withDirectives as be, mergeProps as ee, createSlots as Ae, renderSlot as W, vShow as Bt, nextTick as Le, onUnmounted as Te, useTemplateRef as At, provide as Ct, normalizeStyle as re, mergeModels as Ve, useModel as kt, withModifiers as Fe, resolveDirective as St, useAttrs as Ot, watchEffect as Tt, shallowRef as zt, resolveDynamicComponent as wt, createStaticVNode as Et, onBeforeUnmount as Je, createApp as Nt } from "vue";
|
|
3
3
|
import $e from "vuedraggable";
|
|
4
|
-
import { Modal as je, Button as We, message as ke, Tooltip as Ie, Switch as tt, Radio as ot, RadioGroup as lt, InputNumber as at, DatePicker as nt, Checkbox as Me, CheckboxGroup as it, Select as Ye, Input as st, Col as
|
|
4
|
+
import { Modal as je, Button as We, message as ke, Tooltip as Ie, Switch as tt, Radio as ot, RadioGroup as lt, InputNumber as at, DatePicker as nt, Checkbox as Me, CheckboxGroup as it, Select as Ye, Input as st, Col as Pt, Row as Rt, FormItem as rt, Form as ct, SelectOption as qe, Popconfirm as Re, MenuItem as dt, Menu as ut, Dropdown as bt, Popover as Ut, BackTop as xt, Spin as Vt } from "ant-design-vue";
|
|
5
5
|
import { useRoute as Qe } from "vue-router";
|
|
6
6
|
import { useI18n as de } from "vue-i18n";
|
|
7
7
|
import _e, { merge as jt } from "lodash";
|
|
8
|
-
import { CloseOutlined as Wt, QuestionCircleOutlined as Yt, SearchOutlined as De, UpCircleOutlined as qt, DownCircleOutlined as Kt, UnorderedListOutlined as
|
|
8
|
+
import { CloseOutlined as Wt, QuestionCircleOutlined as Yt, SearchOutlined as De, UpCircleOutlined as qt, DownCircleOutlined as Kt, UnorderedListOutlined as Gt, DownOutlined as Ke, PlusCircleOutlined as Jt, ToTopOutlined as Ht } from "@ant-design/icons-vue";
|
|
9
9
|
import { useFullscreen as Ft, useDebounceFn as Qt, useElementBounding as Zt, useScroll as Xt, useDraggable as eo, isClient as to } from "@vueuse/core";
|
|
10
10
|
import Oe from "dayjs";
|
|
11
11
|
const oo = "hb-", Ze = (e = "") => {
|
|
@@ -26,7 +26,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
26
26
|
bem: (t, o, n) => ge(e, t, o, n),
|
|
27
27
|
// is-disabled
|
|
28
28
|
is: (t, o) => o ? `is-${t}` : ""
|
|
29
|
-
}), ao = ["onMouseenter", "onMouseleave"], no = ["onClick"], io = /* @__PURE__ */
|
|
29
|
+
}), ao = ["onMouseenter", "onMouseleave"], no = ["onClick"], io = /* @__PURE__ */ G({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -39,66 +39,66 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: o }) {
|
|
42
|
-
const n =
|
|
42
|
+
const n = fe("globalCompConfig", {}), u = de().t, b = de().messages.value.en_US, s = de().messages.value.ja_JP, f = de().messages.value.zh_CN, l = e, a = z(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = z(() => l.title || u("hbLibComp.hbFormItemFilterModal.title")), C = o, p = Ze("sfcm"), D = Qe(), A = Se({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}),
|
|
45
|
-
let
|
|
46
|
-
const
|
|
44
|
+
}), P = O(!1), x = O(600);
|
|
45
|
+
let g = [];
|
|
46
|
+
const T = O([]), F = O([]), H = z(() => T.value.every((v) => v.isLinked || v.isFixed)), k = (v) => ({
|
|
47
47
|
...v,
|
|
48
|
-
label:
|
|
48
|
+
label: M(v) || `${V(v) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: v.key,
|
|
50
50
|
isFixed: v?.isFixed || !1,
|
|
51
51
|
isLinked: v?.isLinked || !1,
|
|
52
52
|
labelLanguage: v?.labelLanguage || void 0
|
|
53
|
-
}),
|
|
54
|
-
const j = v.draggedContext.element,
|
|
53
|
+
}), y = (v) => {
|
|
54
|
+
const j = v.draggedContext.element, $ = v.relatedContext.index;
|
|
55
55
|
if (j.isLinked || j.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const J = T.value.map((ae, pe) => ({ item: ae, index: pe })).filter(({ item: ae }) => ae.isLinked).map(({ index: ae }) => ae);
|
|
58
|
+
if (J.length === 0)
|
|
59
59
|
return !0;
|
|
60
|
-
for (let ae = 0; ae <
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
60
|
+
for (let ae = 0; ae < J.length - 1; ae++) {
|
|
61
|
+
const pe = J[ae], ve = J[ae + 1];
|
|
62
|
+
if ($ > pe && $ < ve)
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
},
|
|
66
|
+
}, r = z(() => h() + "_" + l.saveKey), h = () => {
|
|
67
67
|
const v = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let j = "anonymous";
|
|
69
69
|
if (v)
|
|
70
70
|
try {
|
|
71
71
|
j = JSON.parse(v).value.jobNumber || "anonymous";
|
|
72
|
-
} catch (
|
|
73
|
-
console.warn("解析用户信息失败:",
|
|
72
|
+
} catch (J) {
|
|
73
|
+
console.warn("解析用户信息失败:", J);
|
|
74
74
|
}
|
|
75
|
-
let
|
|
76
|
-
return `searchFormConfig_${j}_${
|
|
77
|
-
},
|
|
78
|
-
ja_JP: () => _e.get(
|
|
79
|
-
en_US: () => _e.get(
|
|
80
|
-
zh_CN: () => _e.get(
|
|
81
|
-
})[
|
|
82
|
-
ja_JP: () => _e.get(
|
|
83
|
-
en_US: () => _e.get(
|
|
84
|
-
zh_CN: () => _e.get(
|
|
85
|
-
})[
|
|
75
|
+
let $ = D?.path;
|
|
76
|
+
return `searchFormConfig_${j}_${$}`;
|
|
77
|
+
}, M = (v) => ({
|
|
78
|
+
ja_JP: () => _e.get(s, v.labelLanguage || ""),
|
|
79
|
+
en_US: () => _e.get(b, v.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => _e.get(f, v.labelLanguage || "")
|
|
81
|
+
})[A.lan]?.() || v.label, V = (v) => ({
|
|
82
|
+
ja_JP: () => _e.get(s, v.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => _e.get(b, v.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => _e.get(f, v.subLabelLanguage || "")
|
|
85
|
+
})[A.lan]?.() || v.subLabel, K = (v) => {
|
|
86
86
|
try {
|
|
87
|
-
const j = localStorage.getItem(
|
|
87
|
+
const j = localStorage.getItem(r.value);
|
|
88
88
|
if (j) {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
const
|
|
89
|
+
const $ = JSON.parse(j);
|
|
90
|
+
if ($.originalList && Array.isArray($.originalList)) {
|
|
91
|
+
g = JSON.parse(JSON.stringify($.originalList));
|
|
92
|
+
const J = g.filter((Q) => Q?.isFixed), ae = g.filter((Q) => Q?.isLinked), pe = $.showList.filter((Q) => !Q.isFixed && !Q.isLinked), ve = a.value && a.value > 0 ? Math.max(0, a.value - J.length - ae.length) : pe.length, xe = J.map((Q) => ({
|
|
93
93
|
...k(Q)
|
|
94
94
|
})), Ee = ae.map((Q) => ({
|
|
95
95
|
...k(Q)
|
|
96
|
-
})),
|
|
96
|
+
})), Ne = pe.slice(0, ve).map((Q) => ({
|
|
97
97
|
...k(Q)
|
|
98
98
|
}));
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
T.value = [...xe, ...Ee, ...Ne];
|
|
100
|
+
const Pe = T.value.map((Q) => Q.key), ne = g.map((Q) => Q.key).filter((Q) => !Pe.includes(Q));
|
|
101
|
+
return F.value = g.filter((Q) => ne.includes(Q.key)).map((Q) => ({
|
|
102
102
|
...k(Q),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
@@ -111,8 +111,8 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
111
111
|
}, se = () => {
|
|
112
112
|
try {
|
|
113
113
|
const v = {
|
|
114
|
-
originalList:
|
|
115
|
-
showList:
|
|
114
|
+
originalList: g,
|
|
115
|
+
showList: T.value.map((j) => ({
|
|
116
116
|
...j,
|
|
117
117
|
key: j.key,
|
|
118
118
|
label: j.label,
|
|
@@ -121,130 +121,130 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
121
121
|
labelLanguage: j?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(
|
|
124
|
+
localStorage.setItem(r.value, JSON.stringify(v));
|
|
125
125
|
} catch (v) {
|
|
126
126
|
console.warn("保存搜索配置失败:", v);
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
const v =
|
|
128
|
+
}, I = z(() => {
|
|
129
|
+
const v = T.value.filter(($) => !$.isFixed && !$.isLinked).length, j = T.value.filter(($) => $.isFixed || $.isLinked).length;
|
|
130
130
|
return v >= a.value - j;
|
|
131
131
|
});
|
|
132
|
-
|
|
132
|
+
te(
|
|
133
133
|
() => l.list,
|
|
134
134
|
(v) => {
|
|
135
|
-
let j = JSON.stringify(
|
|
135
|
+
let j = JSON.stringify(T.value) !== JSON.stringify(v);
|
|
136
136
|
if (!j)
|
|
137
137
|
return;
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
K(), C("confirm",
|
|
138
|
+
const $ = localStorage.getItem(r.value), J = JSON.parse($ || "{}");
|
|
139
|
+
if (J && J?.originalList && Array.isArray(J.originalList))
|
|
140
|
+
K(), C("confirm", T.value);
|
|
141
141
|
else if (j) {
|
|
142
|
-
|
|
143
|
-
const ae = v.filter((ne) => ne?.isFixed),
|
|
144
|
-
|
|
142
|
+
g = JSON.parse(JSON.stringify(v));
|
|
143
|
+
const ae = v.filter((ne) => ne?.isFixed), pe = v.filter((ne) => ne?.isLinked), ve = v.filter((ne) => !ne?.isFixed && !ne?.isLinked), xe = a.value && a.value > 0 ? Math.max(0, a.value - ae.length - pe.length) : ve.length, Ee = ae.map((ne) => k(ne)), Ne = pe.map((ne) => k(ne)), Pe = ve.slice(0, xe).map((ne) => k(ne));
|
|
144
|
+
T.value = [...Ee, ...Ne, ...Pe];
|
|
145
145
|
const et = ve.slice(xe).map((ne) => ({
|
|
146
146
|
...k(ne),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
|
|
149
|
+
F.value = et, C("confirm", T.value);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const
|
|
155
|
-
const j =
|
|
156
|
-
j !== -1 && (
|
|
154
|
+
const U = (v) => {
|
|
155
|
+
const j = T.value.findIndex(($) => $.key === v.key);
|
|
156
|
+
j !== -1 && (T.value.splice(j, 1), F.value.push({ ...v, active: !1 }));
|
|
157
157
|
}, X = (v) => {
|
|
158
|
-
if (
|
|
159
|
-
ke.warning(`当前已经超过${
|
|
158
|
+
if (I.value) {
|
|
159
|
+
ke.warning(`当前已经超过${u(a.value)}个可选数量,请先删除已显示条件`);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
const j =
|
|
162
|
+
const j = F.value.findIndex(($) => $.key === v.key);
|
|
163
163
|
if (j !== -1) {
|
|
164
|
-
const [
|
|
165
|
-
|
|
164
|
+
const [$] = F.value.splice(j, 1);
|
|
165
|
+
T.value.push({ ...$, active: !1 });
|
|
166
166
|
}
|
|
167
|
-
},
|
|
168
|
-
|
|
167
|
+
}, le = () => {
|
|
168
|
+
P.value = !1;
|
|
169
169
|
}, ce = () => {
|
|
170
|
-
|
|
170
|
+
P.value = !0;
|
|
171
171
|
}, ue = () => {
|
|
172
|
-
se(), C("confirm",
|
|
172
|
+
se(), C("confirm", T.value), le();
|
|
173
173
|
}, we = (v) => {
|
|
174
|
-
const j =
|
|
175
|
-
j !== -1 && (
|
|
174
|
+
const j = F.value.findIndex(($) => $.key === v.key);
|
|
175
|
+
j !== -1 && (F.value[j].active = !0);
|
|
176
176
|
}, ze = (v) => {
|
|
177
|
-
const j =
|
|
178
|
-
j !== -1 && (
|
|
177
|
+
const j = F.value.findIndex(($) => $.key === v.key);
|
|
178
|
+
j !== -1 && (F.value[j].active = !1);
|
|
179
179
|
};
|
|
180
180
|
return t({
|
|
181
181
|
toOpenModal: ce
|
|
182
182
|
}), he(() => {
|
|
183
|
-
}), (v, j) => (i(),
|
|
184
|
-
class: Y(
|
|
183
|
+
}), (v, j) => (i(), S("div", {
|
|
184
|
+
class: Y(_(p).b())
|
|
185
185
|
}, [
|
|
186
|
-
w(
|
|
187
|
-
visible:
|
|
188
|
-
"onUpdate:visible": j[1] || (j[1] = (
|
|
186
|
+
w(_(je), {
|
|
187
|
+
visible: P.value,
|
|
188
|
+
"onUpdate:visible": j[1] || (j[1] = ($) => P.value = $),
|
|
189
189
|
width: x.value,
|
|
190
|
-
onCancel:
|
|
190
|
+
onCancel: le,
|
|
191
191
|
onOk: ue
|
|
192
192
|
}, {
|
|
193
|
-
title:
|
|
193
|
+
title: c(() => [
|
|
194
194
|
d("div", {
|
|
195
|
-
class: Y(
|
|
195
|
+
class: Y(_(p).e("title"))
|
|
196
196
|
}, L(m.value), 3)
|
|
197
197
|
]),
|
|
198
|
-
footer:
|
|
199
|
-
w(
|
|
200
|
-
default:
|
|
198
|
+
footer: c(() => [
|
|
199
|
+
w(_(We), { onClick: le }, {
|
|
200
|
+
default: c(() => [
|
|
201
201
|
B(L(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}),
|
|
205
|
-
w(
|
|
205
|
+
w(_(We), {
|
|
206
206
|
type: "primary",
|
|
207
207
|
onClick: ue
|
|
208
208
|
}, {
|
|
209
|
-
default:
|
|
209
|
+
default: c(() => [
|
|
210
210
|
B(L(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
})
|
|
214
214
|
]),
|
|
215
|
-
default:
|
|
215
|
+
default: c(() => [
|
|
216
216
|
d("section", {
|
|
217
|
-
class: Y(
|
|
217
|
+
class: Y(_(p).e("show"))
|
|
218
218
|
}, [
|
|
219
219
|
d("div", {
|
|
220
|
-
class: Y(
|
|
220
|
+
class: Y(_(p).e("show__title"))
|
|
221
221
|
}, [
|
|
222
222
|
d("span", {
|
|
223
|
-
class: Y(
|
|
223
|
+
class: Y(_(p).e("title__tip"))
|
|
224
224
|
}, L(v.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
225
225
|
d("span", null, L(v.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(a.value) + L(v.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
226
226
|
], 2),
|
|
227
227
|
d("div", {
|
|
228
|
-
class: Y(
|
|
228
|
+
class: Y(_(p).e("show__tag"))
|
|
229
229
|
}, [
|
|
230
|
-
w(
|
|
231
|
-
modelValue:
|
|
232
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
|
230
|
+
w(_($e), {
|
|
231
|
+
modelValue: T.value,
|
|
232
|
+
"onUpdate:modelValue": j[0] || (j[0] = ($) => T.value = $),
|
|
233
233
|
"item-key": "key",
|
|
234
234
|
tag: "div",
|
|
235
235
|
disabled: H.value,
|
|
236
|
-
move:
|
|
236
|
+
move: y
|
|
237
237
|
}, {
|
|
238
|
-
item:
|
|
238
|
+
item: c(({ element: $ }) => [
|
|
239
239
|
d("div", {
|
|
240
|
-
class: Y([
|
|
240
|
+
class: Y([_(p).e("show__tag__item"), _(p).is("fixed", $.isFixed), _(p).is("linked", $.isLinked)])
|
|
241
241
|
}, [
|
|
242
|
-
B(L(
|
|
243
|
-
|
|
242
|
+
B(L($.label) + " ", 1),
|
|
243
|
+
!$.isFixed && !$.isLinked && e.list.length > 1 ? (i(), N(_(Wt), {
|
|
244
244
|
key: 0,
|
|
245
|
-
class: Y(
|
|
246
|
-
onClick: (
|
|
247
|
-
}, null, 8, ["class", "onClick"])) :
|
|
245
|
+
class: Y(_(p).e("show__tag__item-close")),
|
|
246
|
+
onClick: (J) => U($)
|
|
247
|
+
}, null, 8, ["class", "onClick"])) : E("", !0)
|
|
248
248
|
], 2)
|
|
249
249
|
]),
|
|
250
250
|
_: 1
|
|
@@ -252,33 +252,33 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
252
252
|
], 2)
|
|
253
253
|
], 2),
|
|
254
254
|
d("section", {
|
|
255
|
-
class: Y(
|
|
255
|
+
class: Y(_(p).e("unshow"))
|
|
256
256
|
}, [
|
|
257
257
|
d("div", {
|
|
258
|
-
class: Y(
|
|
258
|
+
class: Y(_(p).e("show__title"))
|
|
259
259
|
}, [
|
|
260
260
|
d("span", {
|
|
261
|
-
class: Y(
|
|
261
|
+
class: Y(_(p).e("title__tip"))
|
|
262
262
|
}, L(v.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
263
263
|
], 2),
|
|
264
264
|
d("div", {
|
|
265
|
-
class: Y(
|
|
265
|
+
class: Y(_(p).e("unshow__tag"))
|
|
266
266
|
}, [
|
|
267
|
-
|
|
268
|
-
class: Y([
|
|
269
|
-
key:
|
|
270
|
-
onMouseenter: (
|
|
271
|
-
onMouseleave: (
|
|
267
|
+
F.value.length > 0 ? (i(!0), S(q, { key: 0 }, ie(F.value, ($) => (i(), S("div", {
|
|
268
|
+
class: Y([_(p).e("unshow__tag__item"), _(p).is("fixed", $.isFixed || ""), _(p).is("linked", $.isLinked || "")]),
|
|
269
|
+
key: $.key,
|
|
270
|
+
onMouseenter: (J) => we($),
|
|
271
|
+
onMouseleave: (J) => ze($)
|
|
272
272
|
}, [
|
|
273
|
-
B(L(
|
|
274
|
-
|
|
273
|
+
B(L($.label) + " ", 1),
|
|
274
|
+
$.active ? (i(), S("aside", {
|
|
275
275
|
key: 0,
|
|
276
|
-
class: Y(
|
|
277
|
-
onClick: (
|
|
278
|
-
}, L(v.$t("hbLibComp.hbFormItemFilterModal.add")), 11, no)) :
|
|
279
|
-
], 42, ao))), 128)) : (i(),
|
|
276
|
+
class: Y(_(p).e("unshow__tag__item-add")),
|
|
277
|
+
onClick: (J) => X($)
|
|
278
|
+
}, L(v.$t("hbLibComp.hbFormItemFilterModal.add")), 11, no)) : E("", !0)
|
|
279
|
+
], 42, ao))), 128)) : (i(), S("div", {
|
|
280
280
|
key: 1,
|
|
281
|
-
class: Y(
|
|
281
|
+
class: Y(_(p).e("unshow__tag__empty"))
|
|
282
282
|
}, L(v.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
283
283
|
], 2)
|
|
284
284
|
], 2)
|
|
@@ -289,15 +289,15 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
289
289
|
}
|
|
290
290
|
}), Z = (e, t) => {
|
|
291
291
|
const o = e.__vccOpts || e;
|
|
292
|
-
for (const [n,
|
|
293
|
-
o[n] =
|
|
292
|
+
for (const [n, u] of t)
|
|
293
|
+
o[n] = u;
|
|
294
294
|
return o;
|
|
295
|
-
}, so = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-93f23c9d"]]),
|
|
295
|
+
}, so = /* @__PURE__ */ Z(io, [["__scopeId", "data-v-93f23c9d"]]), oe = (e) => (e.install = (t) => {
|
|
296
296
|
t.component(e.name || "AnonymousComponent", e);
|
|
297
|
-
}, e), ro =
|
|
297
|
+
}, e), ro = oe(so), co = {
|
|
298
298
|
key: 0,
|
|
299
299
|
class: "form-footer"
|
|
300
|
-
}, uo = /* @__PURE__ */
|
|
300
|
+
}, uo = /* @__PURE__ */ G({
|
|
301
301
|
name: "HbLibListForm",
|
|
302
302
|
__name: "HbListForm",
|
|
303
303
|
props: {
|
|
@@ -330,63 +330,63 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
330
330
|
},
|
|
331
331
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
332
|
setup(e, { expose: t, emit: o }) {
|
|
333
|
-
const n =
|
|
334
|
-
|
|
335
|
-
condition:
|
|
336
|
-
label:
|
|
333
|
+
const n = fe("globalCompConfig", {}), u = o, b = fe("HB_LIST_PAGE_CONTAINER"), s = z(() => l.searchList || []), f = Ze("form"), l = e, a = z(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = O("show"), C = z(() => l.needFooter || n.HbLibListForm?.needFooter), p = z(() => [...l.items]), D = (I) => I !== void 0, A = (I) => typeof I == "function", P = (I) => D(I.condition) ? A(I.condition) ? I.condition() : I.condition : !0, x = z(() => [...l.items].map((I) => ({
|
|
334
|
+
...I,
|
|
335
|
+
condition: P(I),
|
|
336
|
+
label: I.label?.includes("多项搜索") ? "" : I.label
|
|
337
337
|
})));
|
|
338
338
|
console.log(x.value);
|
|
339
|
-
const
|
|
340
|
-
|
|
339
|
+
const g = z(() => l.saveKey), T = O(), F = () => {
|
|
340
|
+
u("handleSearch");
|
|
341
341
|
}, H = () => {
|
|
342
|
-
|
|
343
|
-
}, k = O(),
|
|
342
|
+
u("handleReset");
|
|
343
|
+
}, k = O(), y = () => {
|
|
344
344
|
k.value && k.value.toOpenModal();
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
}, h = (
|
|
348
|
-
|
|
345
|
+
}, r = (I) => {
|
|
346
|
+
u("handleMenuClick", I);
|
|
347
|
+
}, h = (I) => {
|
|
348
|
+
u("handleSfcmConfirm", I);
|
|
349
349
|
};
|
|
350
|
-
|
|
350
|
+
te(
|
|
351
351
|
() => l.isFormExpanded,
|
|
352
|
-
(
|
|
353
|
-
if (
|
|
354
|
-
console.log(
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
|
|
352
|
+
(I) => {
|
|
353
|
+
if (I) {
|
|
354
|
+
console.log(I);
|
|
355
|
+
const U = document.querySelector("#subpackage_container");
|
|
356
|
+
U instanceof HTMLElement && (U.style.overflow = "hidden", setTimeout(() => {
|
|
357
|
+
U.style.overflow = "auto";
|
|
358
358
|
}, 500));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
|
-
const
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
}, V = (
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
|
|
362
|
+
const M = (I) => {
|
|
363
|
+
const U = I;
|
|
364
|
+
U.style.height = "", U.offsetHeight;
|
|
365
|
+
}, V = (I) => {
|
|
366
|
+
const U = I;
|
|
367
|
+
U.style.height = "", U.style.overflow = "", Le(() => {
|
|
368
|
+
b.calTableHeight && b.calTableHeight();
|
|
369
369
|
});
|
|
370
|
-
}, K = (
|
|
371
|
-
const
|
|
370
|
+
}, K = (I) => {
|
|
371
|
+
const U = I, X = U.querySelector(".hb-lib-form--container");
|
|
372
372
|
if (X) {
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
const le = X.offsetHeight;
|
|
374
|
+
U.style.height = le + "px", U.style.overflow = "hidden", U.offsetHeight, requestAnimationFrame(() => {
|
|
375
|
+
U.style.height = "0";
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
}, se = () => {
|
|
379
379
|
Le(() => {
|
|
380
|
-
|
|
380
|
+
b.calTableHeight && b.calTableHeight();
|
|
381
381
|
});
|
|
382
382
|
};
|
|
383
383
|
return t({
|
|
384
|
-
formRef:
|
|
384
|
+
formRef: T,
|
|
385
385
|
SelectOption: qe,
|
|
386
386
|
Form: ct,
|
|
387
387
|
FormItem: rt,
|
|
388
388
|
Row: Rt,
|
|
389
|
-
Col:
|
|
389
|
+
Col: Pt,
|
|
390
390
|
Input: st,
|
|
391
391
|
Select: Ye,
|
|
392
392
|
CheckboxGroup: it,
|
|
@@ -398,29 +398,29 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
398
398
|
Switch: tt,
|
|
399
399
|
Button: We,
|
|
400
400
|
Tooltip: Ie
|
|
401
|
-
}), (
|
|
402
|
-
const X =
|
|
403
|
-
return i(),
|
|
401
|
+
}), (I, U) => {
|
|
402
|
+
const X = R("a-button"), le = R("a-tooltip"), ce = R("a-menu-item"), ue = R("a-menu"), we = R("a-dropdown"), ze = R("HbLibFormItemFilterModal");
|
|
403
|
+
return i(), S(q, null, [
|
|
404
404
|
w(Dt, {
|
|
405
405
|
name: "form-collapse",
|
|
406
|
-
onEnter:
|
|
406
|
+
onEnter: M,
|
|
407
407
|
onAfterEnter: V,
|
|
408
408
|
onLeave: K,
|
|
409
409
|
onAfterLeave: se
|
|
410
410
|
}, {
|
|
411
|
-
default:
|
|
412
|
-
|
|
413
|
-
class: Y([
|
|
411
|
+
default: c(() => [
|
|
412
|
+
be(d("div", {
|
|
413
|
+
class: Y([_(f).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", C.value ? "isNeedFooterCss" : ""])
|
|
414
414
|
}, [
|
|
415
|
-
w(
|
|
415
|
+
w(_(ct), ee(I.$attrs, {
|
|
416
416
|
model: e.formData,
|
|
417
417
|
ref_key: "formRef",
|
|
418
|
-
ref:
|
|
418
|
+
ref: T,
|
|
419
419
|
class: ["hb-lib-form--container", m.value == "show" ? "" : "hide"]
|
|
420
420
|
}), {
|
|
421
|
-
default:
|
|
422
|
-
(i(!0),
|
|
423
|
-
v.condition ? (i(),
|
|
421
|
+
default: c(() => [
|
|
422
|
+
(i(!0), S(q, null, ie(x.value, (v, j) => (i(), S(q, { key: j }, [
|
|
423
|
+
v.condition ? (i(), N(_(rt), ee({
|
|
424
424
|
key: 0,
|
|
425
425
|
ref_for: !0
|
|
426
426
|
}, v, {
|
|
@@ -429,123 +429,123 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
429
429
|
"hb-lib-form-item-border--unneed": v.isUnNeedBorder,
|
|
430
430
|
"hb_lib_form_item--needShowAll": v.showAll
|
|
431
431
|
}
|
|
432
|
-
}),
|
|
433
|
-
default:
|
|
434
|
-
v.type === "slot" ? W(
|
|
432
|
+
}), Ae({
|
|
433
|
+
default: c(() => [
|
|
434
|
+
v.type === "slot" ? W(I.$slots, v.key, {
|
|
435
435
|
key: 0,
|
|
436
436
|
formData: e.formData,
|
|
437
437
|
item: v
|
|
438
|
-
}, void 0, !0) :
|
|
439
|
-
v.type === "mixin" ? W(
|
|
438
|
+
}, void 0, !0) : E("", !0),
|
|
439
|
+
v.type === "mixin" ? W(I.$slots, v.key, {
|
|
440
440
|
key: 1,
|
|
441
441
|
formData: e.formData,
|
|
442
442
|
item: v
|
|
443
|
-
}, void 0, !0) :
|
|
444
|
-
v.type === "input" ? (i(),
|
|
443
|
+
}, void 0, !0) : E("", !0),
|
|
444
|
+
v.type === "input" ? (i(), N(_(st), ee({
|
|
445
445
|
key: 2,
|
|
446
446
|
value: e.formData[v.key],
|
|
447
|
-
"onUpdate:value": (
|
|
448
|
-
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
449
|
-
v.type === "select" ? (i(),
|
|
447
|
+
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
448
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : E("", !0),
|
|
449
|
+
v.type === "select" ? (i(), N(_(Ye), ee({
|
|
450
450
|
key: 3,
|
|
451
451
|
value: e.formData[v.key],
|
|
452
|
-
"onUpdate:value": (
|
|
452
|
+
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
453
453
|
}, { ref_for: !0 }, v.attrs), {
|
|
454
|
-
default:
|
|
455
|
-
(i(!0),
|
|
456
|
-
key:
|
|
457
|
-
value:
|
|
454
|
+
default: c(() => [
|
|
455
|
+
(i(!0), S(q, null, ie(v.options, ($, J) => (i(), N(_(qe), {
|
|
456
|
+
key: J,
|
|
457
|
+
value: $.value
|
|
458
458
|
}, {
|
|
459
|
-
default:
|
|
460
|
-
B(L(
|
|
459
|
+
default: c(() => [
|
|
460
|
+
B(L($.label), 1)
|
|
461
461
|
]),
|
|
462
462
|
_: 2
|
|
463
463
|
}, 1032, ["value"]))), 128))
|
|
464
464
|
]),
|
|
465
465
|
_: 2
|
|
466
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
467
|
-
v.type === "checkbox" ? (i(),
|
|
466
|
+
}, 1040, ["value", "onUpdate:value"])) : E("", !0),
|
|
467
|
+
v.type === "checkbox" ? (i(), N(_(it), ee({
|
|
468
468
|
key: 4,
|
|
469
469
|
value: e.formData[v.key],
|
|
470
|
-
"onUpdate:value": (
|
|
470
|
+
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
471
471
|
}, { ref_for: !0 }, v.attrs), {
|
|
472
|
-
default:
|
|
473
|
-
(i(!0),
|
|
474
|
-
key:
|
|
475
|
-
value:
|
|
472
|
+
default: c(() => [
|
|
473
|
+
(i(!0), S(q, null, ie(v.options, ($, J) => (i(), N(_(Me), {
|
|
474
|
+
key: J,
|
|
475
|
+
value: $.value
|
|
476
476
|
}, {
|
|
477
|
-
default:
|
|
478
|
-
B(L(
|
|
477
|
+
default: c(() => [
|
|
478
|
+
B(L($.label), 1)
|
|
479
479
|
]),
|
|
480
480
|
_: 2
|
|
481
481
|
}, 1032, ["value"]))), 128))
|
|
482
482
|
]),
|
|
483
483
|
_: 2
|
|
484
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
485
|
-
v.type === "date-picker" ? (i(),
|
|
484
|
+
}, 1040, ["value", "onUpdate:value"])) : E("", !0),
|
|
485
|
+
v.type === "date-picker" ? (i(), N(_(nt), ee({
|
|
486
486
|
key: 5,
|
|
487
487
|
value: e.formData[v.key],
|
|
488
|
-
"onUpdate:value": (
|
|
489
|
-
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
490
|
-
v.type === "input-number" ? (i(),
|
|
488
|
+
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
489
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : E("", !0),
|
|
490
|
+
v.type === "input-number" ? (i(), N(_(at), ee({
|
|
491
491
|
key: 6,
|
|
492
492
|
value: e.formData[v.key],
|
|
493
|
-
"onUpdate:value": (
|
|
494
|
-
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
495
|
-
v.type === "radio" ? (i(),
|
|
493
|
+
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
494
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : E("", !0),
|
|
495
|
+
v.type === "radio" ? (i(), N(_(lt), ee({
|
|
496
496
|
key: 7,
|
|
497
497
|
value: e.formData[v.key],
|
|
498
|
-
"onUpdate:value": (
|
|
498
|
+
"onUpdate:value": ($) => e.formData[v.key] = $
|
|
499
499
|
}, { ref_for: !0 }, v.attrs), {
|
|
500
|
-
default:
|
|
501
|
-
(i(!0),
|
|
502
|
-
key:
|
|
503
|
-
value:
|
|
500
|
+
default: c(() => [
|
|
501
|
+
(i(!0), S(q, null, ie(v.options, ($, J) => (i(), N(_(ot), {
|
|
502
|
+
key: J,
|
|
503
|
+
value: $.value
|
|
504
504
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
B(L(
|
|
505
|
+
default: c(() => [
|
|
506
|
+
B(L($.label), 1)
|
|
507
507
|
]),
|
|
508
508
|
_: 2
|
|
509
509
|
}, 1032, ["value"]))), 128))
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
513
|
-
v.type === "switch" ? (i(),
|
|
512
|
+
}, 1040, ["value", "onUpdate:value"])) : E("", !0),
|
|
513
|
+
v.type === "switch" ? (i(), N(_(tt), ee({
|
|
514
514
|
key: 8,
|
|
515
515
|
checked: e.formData[v.key],
|
|
516
|
-
"onUpdate:checked": (
|
|
517
|
-
}, { ref_for: !0 }, v.attrs), null, 16, ["checked", "onUpdate:checked"])) :
|
|
516
|
+
"onUpdate:checked": ($) => e.formData[v.key] = $
|
|
517
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["checked", "onUpdate:checked"])) : E("", !0)
|
|
518
518
|
]),
|
|
519
519
|
_: 2
|
|
520
520
|
}, [
|
|
521
521
|
v.tooltip ? {
|
|
522
522
|
name: "label",
|
|
523
|
-
fn:
|
|
523
|
+
fn: c(() => [
|
|
524
524
|
B(L(v.label) + " ", 1),
|
|
525
|
-
w(
|
|
525
|
+
w(_(Ie), {
|
|
526
526
|
title: v.tooltip
|
|
527
527
|
}, {
|
|
528
|
-
default:
|
|
529
|
-
w(
|
|
528
|
+
default: c(() => [
|
|
529
|
+
w(_(Yt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
530
530
|
]),
|
|
531
531
|
_: 1
|
|
532
532
|
}, 8, ["title"])
|
|
533
533
|
]),
|
|
534
534
|
key: "0"
|
|
535
535
|
} : void 0
|
|
536
|
-
]), 1040, ["name", "class"])) :
|
|
536
|
+
]), 1040, ["name", "class"])) : E("", !0)
|
|
537
537
|
], 64))), 128)),
|
|
538
|
-
C.value ?
|
|
538
|
+
C.value ? E("", !0) : (i(), S("section", co, [
|
|
539
539
|
w(X, {
|
|
540
540
|
type: "primary",
|
|
541
|
-
onClick:
|
|
541
|
+
onClick: F,
|
|
542
542
|
class: "hb_list_page_button"
|
|
543
543
|
}, {
|
|
544
|
-
icon:
|
|
545
|
-
w(
|
|
544
|
+
icon: c(() => [
|
|
545
|
+
w(_(De))
|
|
546
546
|
]),
|
|
547
|
-
default:
|
|
548
|
-
B(" " + L(
|
|
547
|
+
default: c(() => [
|
|
548
|
+
B(" " + L(I.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
551
|
}),
|
|
@@ -553,20 +553,20 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
553
553
|
type: "link",
|
|
554
554
|
onClick: H
|
|
555
555
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
B(L(
|
|
556
|
+
default: c(() => [
|
|
557
|
+
B(L(I.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
560
|
}),
|
|
561
|
-
e.needFilter ? (i(),
|
|
561
|
+
e.needFilter ? (i(), N(le, {
|
|
562
562
|
key: 0,
|
|
563
|
-
title:
|
|
563
|
+
title: I.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
564
564
|
}, {
|
|
565
|
-
default:
|
|
565
|
+
default: c(() => [
|
|
566
566
|
d("span", {
|
|
567
567
|
class: "hb-lib-form-svg",
|
|
568
|
-
onClick:
|
|
569
|
-
}, [...
|
|
568
|
+
onClick: y
|
|
569
|
+
}, [...U[0] || (U[0] = [
|
|
570
570
|
d("svg", {
|
|
571
571
|
t: "1757915025410",
|
|
572
572
|
class: "icon",
|
|
@@ -586,29 +586,29 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
586
586
|
])])
|
|
587
587
|
]),
|
|
588
588
|
_: 1
|
|
589
|
-
}, 8, ["title"])) :
|
|
590
|
-
W(
|
|
591
|
-
e.needSearchCase ? (i(),
|
|
592
|
-
overlay:
|
|
593
|
-
w(ue, { onClick:
|
|
594
|
-
default:
|
|
595
|
-
(i(!0),
|
|
589
|
+
}, 8, ["title"])) : E("", !0),
|
|
590
|
+
W(I.$slots, "formBtns", {}, () => [
|
|
591
|
+
e.needSearchCase ? (i(), N(we, { key: 0 }, {
|
|
592
|
+
overlay: c(() => [
|
|
593
|
+
w(ue, { onClick: r }, {
|
|
594
|
+
default: c(() => [
|
|
595
|
+
(i(!0), S(q, null, ie(s.value, (v) => (i(), N(ce, {
|
|
596
596
|
key: v.id
|
|
597
597
|
}, {
|
|
598
|
-
default:
|
|
598
|
+
default: c(() => [
|
|
599
599
|
B(L(v.title), 1)
|
|
600
600
|
]),
|
|
601
601
|
_: 2
|
|
602
602
|
}, 1024))), 128)),
|
|
603
603
|
w(ce, { key: "add" }, {
|
|
604
|
-
default:
|
|
605
|
-
B(L(
|
|
604
|
+
default: c(() => [
|
|
605
|
+
B(L(I.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
606
606
|
]),
|
|
607
607
|
_: 1
|
|
608
608
|
}),
|
|
609
609
|
w(ce, { key: "edit" }, {
|
|
610
|
-
default:
|
|
611
|
-
B(L(
|
|
610
|
+
default: c(() => [
|
|
611
|
+
B(L(I.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
612
612
|
]),
|
|
613
613
|
_: 1
|
|
614
614
|
})
|
|
@@ -616,11 +616,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
616
616
|
_: 1
|
|
617
617
|
})
|
|
618
618
|
]),
|
|
619
|
-
default:
|
|
620
|
-
w(
|
|
621
|
-
title:
|
|
619
|
+
default: c(() => [
|
|
620
|
+
w(le, {
|
|
621
|
+
title: I.$t("hbLibComp.hbLibListForm.queryCase")
|
|
622
622
|
}, {
|
|
623
|
-
default:
|
|
623
|
+
default: c(() => [...U[1] || (U[1] = [
|
|
624
624
|
d("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
625
625
|
d("svg", {
|
|
626
626
|
t: "1765936014161",
|
|
@@ -652,38 +652,38 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
652
652
|
}, 8, ["title"])
|
|
653
653
|
]),
|
|
654
654
|
_: 1
|
|
655
|
-
})) :
|
|
655
|
+
})) : E("", !0)
|
|
656
656
|
], !0)
|
|
657
657
|
]))
|
|
658
658
|
]),
|
|
659
659
|
_: 3
|
|
660
660
|
}, 16, ["model", "class"]),
|
|
661
|
-
C.value ? (i(),
|
|
661
|
+
C.value ? (i(), S("div", {
|
|
662
662
|
key: 0,
|
|
663
|
-
class: Y([
|
|
663
|
+
class: Y([_(f).e("footer"), "form-footer"])
|
|
664
664
|
}, [
|
|
665
665
|
d("div", {
|
|
666
|
-
class: Y(
|
|
666
|
+
class: Y(_(f).e("footer__left"))
|
|
667
667
|
}, [
|
|
668
|
-
W(
|
|
668
|
+
W(I.$slots, "form-footer-left", {}, void 0, !0)
|
|
669
669
|
], 2),
|
|
670
670
|
d("div", {
|
|
671
|
-
class: Y(
|
|
671
|
+
class: Y(_(f).e("footer__right"))
|
|
672
672
|
}, [
|
|
673
|
-
m.value == "show" ? W(
|
|
673
|
+
m.value == "show" ? W(I.$slots, "form-footer-right", {
|
|
674
674
|
key: 0,
|
|
675
|
-
formRef:
|
|
675
|
+
formRef: T.value
|
|
676
676
|
}, () => [
|
|
677
677
|
w(X, {
|
|
678
678
|
type: "primary",
|
|
679
|
-
onClick:
|
|
679
|
+
onClick: F,
|
|
680
680
|
class: "hb_list_page_button"
|
|
681
681
|
}, {
|
|
682
|
-
icon:
|
|
683
|
-
w(
|
|
682
|
+
icon: c(() => [
|
|
683
|
+
w(_(De))
|
|
684
684
|
]),
|
|
685
|
-
default:
|
|
686
|
-
B(" " + L(
|
|
685
|
+
default: c(() => [
|
|
686
|
+
B(" " + L(I.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
687
687
|
]),
|
|
688
688
|
_: 1
|
|
689
689
|
}),
|
|
@@ -692,20 +692,20 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
692
692
|
onClick: H,
|
|
693
693
|
class: "hb_list_page_button"
|
|
694
694
|
}, {
|
|
695
|
-
default:
|
|
696
|
-
B(L(
|
|
695
|
+
default: c(() => [
|
|
696
|
+
B(L(I.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
}),
|
|
700
|
-
e.needFilter ? (i(),
|
|
700
|
+
e.needFilter ? (i(), N(le, {
|
|
701
701
|
key: 0,
|
|
702
|
-
title:
|
|
702
|
+
title: I.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
703
703
|
}, {
|
|
704
|
-
default:
|
|
704
|
+
default: c(() => [
|
|
705
705
|
d("span", {
|
|
706
706
|
class: "hb-lib-form-svg",
|
|
707
|
-
onClick:
|
|
708
|
-
}, [...
|
|
707
|
+
onClick: y
|
|
708
|
+
}, [...U[2] || (U[2] = [
|
|
709
709
|
d("svg", {
|
|
710
710
|
t: "1757915025410",
|
|
711
711
|
class: "icon",
|
|
@@ -725,29 +725,29 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
725
725
|
])])
|
|
726
726
|
]),
|
|
727
727
|
_: 1
|
|
728
|
-
}, 8, ["title"])) :
|
|
729
|
-
W(
|
|
730
|
-
e.needSearchCase ? (i(),
|
|
731
|
-
overlay:
|
|
732
|
-
w(ue, { onClick:
|
|
733
|
-
default:
|
|
734
|
-
(i(!0),
|
|
728
|
+
}, 8, ["title"])) : E("", !0),
|
|
729
|
+
W(I.$slots, "formBtns", {}, () => [
|
|
730
|
+
e.needSearchCase ? (i(), N(we, { key: 0 }, {
|
|
731
|
+
overlay: c(() => [
|
|
732
|
+
w(ue, { onClick: r }, {
|
|
733
|
+
default: c(() => [
|
|
734
|
+
(i(!0), S(q, null, ie(s.value, (v) => (i(), N(ce, {
|
|
735
735
|
key: v.id
|
|
736
736
|
}, {
|
|
737
|
-
default:
|
|
737
|
+
default: c(() => [
|
|
738
738
|
B(L(v.title), 1)
|
|
739
739
|
]),
|
|
740
740
|
_: 2
|
|
741
741
|
}, 1024))), 128)),
|
|
742
742
|
w(ce, { key: "add" }, {
|
|
743
|
-
default:
|
|
744
|
-
B(L(
|
|
743
|
+
default: c(() => [
|
|
744
|
+
B(L(I.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
745
745
|
]),
|
|
746
746
|
_: 1
|
|
747
747
|
}),
|
|
748
748
|
w(ce, { key: "edit" }, {
|
|
749
|
-
default:
|
|
750
|
-
B(L(
|
|
749
|
+
default: c(() => [
|
|
750
|
+
B(L(I.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
751
751
|
]),
|
|
752
752
|
_: 1
|
|
753
753
|
})
|
|
@@ -755,11 +755,11 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
755
755
|
_: 1
|
|
756
756
|
})
|
|
757
757
|
]),
|
|
758
|
-
default:
|
|
759
|
-
w(
|
|
760
|
-
title:
|
|
758
|
+
default: c(() => [
|
|
759
|
+
w(le, {
|
|
760
|
+
title: I.$t("hbLibComp.hbLibListForm.queryCase")
|
|
761
761
|
}, {
|
|
762
|
-
default:
|
|
762
|
+
default: c(() => [...U[3] || (U[3] = [
|
|
763
763
|
d("span", {
|
|
764
764
|
class: "hb-lib-form-svg",
|
|
765
765
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -794,13 +794,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
794
794
|
}, 8, ["title"])
|
|
795
795
|
]),
|
|
796
796
|
_: 1
|
|
797
|
-
})) :
|
|
797
|
+
})) : E("", !0)
|
|
798
798
|
], !0)
|
|
799
|
-
], !0) :
|
|
799
|
+
], !0) : E("", !0)
|
|
800
800
|
], 2)
|
|
801
|
-
], 2)) :
|
|
801
|
+
], 2)) : E("", !0)
|
|
802
802
|
], 2), [
|
|
803
|
-
[
|
|
803
|
+
[Bt, e.isFormExpanded]
|
|
804
804
|
])
|
|
805
805
|
]),
|
|
806
806
|
_: 3
|
|
@@ -811,12 +811,12 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
811
811
|
ref_key: "HbSfCmRef",
|
|
812
812
|
ref: k,
|
|
813
813
|
onConfirm: h,
|
|
814
|
-
saveKey:
|
|
814
|
+
saveKey: g.value
|
|
815
815
|
}, null, 8, ["showNumber", "list", "saveKey"])
|
|
816
816
|
], 64);
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
|
-
}),
|
|
819
|
+
}), bo = /* @__PURE__ */ Z(uo, [["__scopeId", "data-v-8307bb07"]]), fo = oe(bo), po = { class: "hb-lib-list-page-act-box" }, ho = { class: "hb-lib-list-page-breadcrumb" }, mo = { class: "hb-lib-list-page-act" }, vo = {
|
|
820
820
|
key: 0,
|
|
821
821
|
t: "1757915338760",
|
|
822
822
|
class: "icon",
|
|
@@ -836,7 +836,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
836
836
|
"p-id": "23904",
|
|
837
837
|
width: "200",
|
|
838
838
|
height: "200"
|
|
839
|
-
}, yo = /* @__PURE__ */
|
|
839
|
+
}, yo = /* @__PURE__ */ G({
|
|
840
840
|
name: "HbLibListPageAct",
|
|
841
841
|
__name: "HbListPageAct",
|
|
842
842
|
props: {
|
|
@@ -844,8 +844,8 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
844
844
|
hideDomList: {}
|
|
845
845
|
},
|
|
846
846
|
setup(e) {
|
|
847
|
-
const t =
|
|
848
|
-
|
|
847
|
+
const t = fe("globalCompConfig", {}), o = e, { isFullscreen: n, toggle: u } = Ft(document.body);
|
|
848
|
+
te(
|
|
849
849
|
() => n.value,
|
|
850
850
|
(l) => {
|
|
851
851
|
let a = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
@@ -869,40 +869,40 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
869
869
|
}, 0);
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
|
-
const
|
|
872
|
+
const b = O(""), s = () => {
|
|
873
873
|
const l = Qe();
|
|
874
874
|
let a = localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", m = l?.path;
|
|
875
875
|
if (a !== "[]") {
|
|
876
876
|
let C = JSON.parse(a).find((p) => p.value === m);
|
|
877
|
-
C && (
|
|
877
|
+
C && (b.value = C.label.replace(/-/g, " / "));
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
he(() => {
|
|
881
|
-
|
|
881
|
+
s();
|
|
882
882
|
});
|
|
883
|
-
const
|
|
884
|
-
l.keyCode === 192 &&
|
|
883
|
+
const f = (l) => {
|
|
884
|
+
l.keyCode === 192 && u();
|
|
885
885
|
};
|
|
886
886
|
return he(() => {
|
|
887
|
-
window.addEventListener("keydown",
|
|
887
|
+
window.addEventListener("keydown", f);
|
|
888
888
|
}), Te(() => {
|
|
889
|
-
window.removeEventListener("keydown",
|
|
889
|
+
window.removeEventListener("keydown", f);
|
|
890
890
|
}), (l, a) => {
|
|
891
|
-
const m =
|
|
892
|
-
return i(),
|
|
893
|
-
d("aside", ho, L(
|
|
891
|
+
const m = R("a-tooltip");
|
|
892
|
+
return i(), S("section", po, [
|
|
893
|
+
d("aside", ho, L(b.value), 1),
|
|
894
894
|
d("aside", mo, [
|
|
895
895
|
w(m, {
|
|
896
|
-
title:
|
|
896
|
+
title: _(n) ? `${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
897
897
|
placement: "leftTop"
|
|
898
898
|
}, {
|
|
899
|
-
default:
|
|
899
|
+
default: c(() => [
|
|
900
900
|
d("span", {
|
|
901
901
|
class: "hb-lib-list-page-act-svg",
|
|
902
902
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
903
|
-
(...C) =>
|
|
903
|
+
(...C) => _(u) && _(u)(...C))
|
|
904
904
|
}, [
|
|
905
|
-
|
|
905
|
+
_(n) ? (i(), S("svg", go, [...a[2] || (a[2] = [
|
|
906
906
|
d("path", {
|
|
907
907
|
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",
|
|
908
908
|
fill: "#ff5000",
|
|
@@ -918,7 +918,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
918
918
|
fill: "#ff5000",
|
|
919
919
|
"p-id": "23907"
|
|
920
920
|
}, null, -1)
|
|
921
|
-
])])) : (i(),
|
|
921
|
+
])])) : (i(), S("svg", vo, [...a[1] || (a[1] = [
|
|
922
922
|
d("path", {
|
|
923
923
|
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",
|
|
924
924
|
fill: "#ff5000",
|
|
@@ -934,7 +934,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
934
934
|
]);
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
}), _o = /* @__PURE__ */ Z(yo, [["__scopeId", "data-v-c7cd0710"]]), Lo =
|
|
937
|
+
}), _o = /* @__PURE__ */ Z(yo, [["__scopeId", "data-v-c7cd0710"]]), Lo = oe(_o), Co = { class: "hb-lib-list-btns-box" }, ko = { class: "hb-lib-list-btns-left" }, So = { class: "hb-lib-list-btns-right" }, To = /* @__PURE__ */ G({
|
|
938
938
|
name: "HbLibListBtnsAct",
|
|
939
939
|
__name: "HbListBtns",
|
|
940
940
|
props: {
|
|
@@ -943,31 +943,31 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
943
943
|
},
|
|
944
944
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
945
945
|
setup(e, { emit: t }) {
|
|
946
|
-
const o = t, n = O(!0),
|
|
946
|
+
const o = t, n = O(!0), u = () => {
|
|
947
947
|
n.value = !n.value, o("handleOpenOrClose", n.value);
|
|
948
|
-
},
|
|
948
|
+
}, b = () => {
|
|
949
949
|
o("handleReload");
|
|
950
|
-
},
|
|
950
|
+
}, s = (f) => {
|
|
951
951
|
};
|
|
952
952
|
return he(() => {
|
|
953
|
-
window.addEventListener("keydown",
|
|
953
|
+
window.addEventListener("keydown", s);
|
|
954
954
|
}), Te(() => {
|
|
955
|
-
window.removeEventListener("keydown",
|
|
956
|
-
}), (
|
|
957
|
-
const a =
|
|
958
|
-
return i(),
|
|
955
|
+
window.removeEventListener("keydown", s);
|
|
956
|
+
}), (f, l) => {
|
|
957
|
+
const a = R("a-tooltip");
|
|
958
|
+
return i(), S("section", Co, [
|
|
959
959
|
d("aside", ko, [
|
|
960
|
-
W(
|
|
960
|
+
W(f.$slots, "btnsLeft", {}, void 0, !0)
|
|
961
961
|
]),
|
|
962
962
|
d("aside", So, [
|
|
963
|
-
e.needReload ? (i(),
|
|
963
|
+
e.needReload ? (i(), N(a, {
|
|
964
964
|
key: 0,
|
|
965
|
-
title:
|
|
965
|
+
title: f.$t("hbLibComp.hbListBtnsAct.reload")
|
|
966
966
|
}, {
|
|
967
|
-
default:
|
|
967
|
+
default: c(() => [
|
|
968
968
|
d("span", {
|
|
969
969
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
970
|
-
onClick:
|
|
970
|
+
onClick: b
|
|
971
971
|
}, [...l[0] || (l[0] = [
|
|
972
972
|
d("svg", {
|
|
973
973
|
t: "1759041224819",
|
|
@@ -988,93 +988,93 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
988
988
|
])])
|
|
989
989
|
]),
|
|
990
990
|
_: 1
|
|
991
|
-
}, 8, ["title"])) :
|
|
992
|
-
e.needOpenOrClose ? (i(),
|
|
991
|
+
}, 8, ["title"])) : E("", !0),
|
|
992
|
+
e.needOpenOrClose ? (i(), N(a, {
|
|
993
993
|
key: 1,
|
|
994
|
-
title: n.value ? `${
|
|
994
|
+
title: n.value ? `${f.$t("hbLibComp.hbListBtnsAct.close")}` : `${f.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
995
995
|
}, {
|
|
996
|
-
default:
|
|
996
|
+
default: c(() => [
|
|
997
997
|
d("span", {
|
|
998
998
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
999
|
-
onClick:
|
|
999
|
+
onClick: u
|
|
1000
1000
|
}, [
|
|
1001
|
-
n.value ? (i(),
|
|
1001
|
+
n.value ? (i(), N(_(qt), {
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1004
|
-
})) : (i(),
|
|
1004
|
+
})) : (i(), N(_(Kt), {
|
|
1005
1005
|
key: 1,
|
|
1006
1006
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1007
1007
|
}))
|
|
1008
1008
|
])
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 1
|
|
1011
|
-
}, 8, ["title"])) :
|
|
1012
|
-
W(
|
|
1011
|
+
}, 8, ["title"])) : E("", !0),
|
|
1012
|
+
W(f.$slots, "btnsRight", {}, void 0, !0)
|
|
1013
1013
|
])
|
|
1014
1014
|
]);
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
|
-
}), wo = /* @__PURE__ */ Z(To, [["__scopeId", "data-v-de62f20a"]]), xo =
|
|
1018
|
-
const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut:
|
|
1019
|
-
let
|
|
1017
|
+
}), wo = /* @__PURE__ */ Z(To, [["__scopeId", "data-v-de62f20a"]]), xo = oe(wo), Ho = (e = {}) => {
|
|
1018
|
+
const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut: u = 100 } = e, b = O(0);
|
|
1019
|
+
let s = null, f = null, l = null, a = null, m = null;
|
|
1020
1020
|
const C = () => {
|
|
1021
1021
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
1022
1022
|
requestAnimationFrame(() => {
|
|
1023
1023
|
Le(() => {
|
|
1024
|
-
const
|
|
1025
|
-
if (
|
|
1026
|
-
const H = Math.floor(
|
|
1027
|
-
let h = k - H -
|
|
1028
|
-
h < n && (h = n),
|
|
1024
|
+
const T = document.querySelector(".ant-table"), F = document.querySelector(".ant-pagination");
|
|
1025
|
+
if (T) {
|
|
1026
|
+
const H = Math.floor(T.getBoundingClientRect().top), k = window.innerHeight, r = (F ? F.offsetHeight + 20 : 40) + o;
|
|
1027
|
+
let h = k - H - r;
|
|
1028
|
+
h < n && (h = n), b.value = h;
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
1031
|
});
|
|
1032
1032
|
}, 100);
|
|
1033
1033
|
}, p = () => {
|
|
1034
|
-
const
|
|
1035
|
-
if (
|
|
1036
|
-
const
|
|
1034
|
+
const T = document.querySelector(".ant-pagination");
|
|
1035
|
+
if (T) {
|
|
1036
|
+
const F = new MutationObserver(() => {
|
|
1037
1037
|
C();
|
|
1038
1038
|
});
|
|
1039
|
-
return
|
|
1039
|
+
return F.observe(T, {
|
|
1040
1040
|
childList: !0,
|
|
1041
1041
|
subtree: !0,
|
|
1042
1042
|
attributes: !0,
|
|
1043
1043
|
attributeFilter: ["style", "class"]
|
|
1044
|
-
}),
|
|
1044
|
+
}), F;
|
|
1045
1045
|
}
|
|
1046
1046
|
return null;
|
|
1047
1047
|
}, D = () => {
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1048
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1049
|
+
T && (s = new ResizeObserver(() => {
|
|
1050
1050
|
document.querySelectorAll(".ant-tooltip").forEach((H) => {
|
|
1051
1051
|
H.style.display = "none";
|
|
1052
1052
|
}), C();
|
|
1053
|
-
}),
|
|
1054
|
-
},
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1053
|
+
}), s.observe(T));
|
|
1054
|
+
}, A = () => {
|
|
1055
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1056
|
+
T && (l = new MutationObserver(() => {
|
|
1057
1057
|
setTimeout(() => {
|
|
1058
1058
|
C();
|
|
1059
|
-
},
|
|
1060
|
-
}), l.observe(
|
|
1059
|
+
}, u);
|
|
1060
|
+
}), l.observe(T, {
|
|
1061
1061
|
childList: !0,
|
|
1062
1062
|
subtree: !0,
|
|
1063
1063
|
attributes: !0,
|
|
1064
1064
|
attributeFilter: ["style", "class"]
|
|
1065
1065
|
}));
|
|
1066
|
-
},
|
|
1066
|
+
}, P = () => {
|
|
1067
1067
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
1068
1068
|
C();
|
|
1069
|
-
},
|
|
1069
|
+
}, u);
|
|
1070
1070
|
}, x = () => {
|
|
1071
|
-
window.addEventListener("resize",
|
|
1072
|
-
D(),
|
|
1071
|
+
window.addEventListener("resize", P), Le(() => {
|
|
1072
|
+
D(), A(), f = p();
|
|
1073
1073
|
});
|
|
1074
|
-
},
|
|
1075
|
-
window.removeEventListener("resize",
|
|
1074
|
+
}, g = () => {
|
|
1075
|
+
window.removeEventListener("resize", P), s && s.disconnect(), l && l.disconnect(), f && f.disconnect(), a && clearTimeout(a), m && clearTimeout(m);
|
|
1076
1076
|
};
|
|
1077
|
-
return t &&
|
|
1077
|
+
return t && te(
|
|
1078
1078
|
() => t,
|
|
1079
1079
|
() => {
|
|
1080
1080
|
setTimeout(() => {
|
|
@@ -1085,12 +1085,12 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1085
1085
|
), he(() => {
|
|
1086
1086
|
C(), x();
|
|
1087
1087
|
}), Te(() => {
|
|
1088
|
-
|
|
1088
|
+
g();
|
|
1089
1089
|
}), {
|
|
1090
|
-
tableHeight:
|
|
1090
|
+
tableHeight: b,
|
|
1091
1091
|
calTableHeight: C
|
|
1092
1092
|
};
|
|
1093
|
-
}, Fo = /* @__PURE__ */
|
|
1093
|
+
}, Fo = /* @__PURE__ */ G({
|
|
1094
1094
|
name: "HbLibListPageContainer",
|
|
1095
1095
|
__name: "HbListPageContainer",
|
|
1096
1096
|
props: {
|
|
@@ -1103,32 +1103,32 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1103
1103
|
isUnFixTbHeight: { type: Boolean }
|
|
1104
1104
|
},
|
|
1105
1105
|
setup(e) {
|
|
1106
|
-
const t =
|
|
1106
|
+
const t = fe("globalCompConfig", {}), { isFullscreen: o } = Ft(document.body), n = e, u = At("PageContainerRef"), b = z(() => n.offsetHeight || t.HbLibListPageContainer?.offsetHeight || 110), s = z(() => n.offsetBottom || t.HbLibListPageContainer?.offsetBottom || 20), f = z(() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300), l = z(() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100), a = z(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1107
1107
|
console.log(n.isUnFixTbHeight);
|
|
1108
1108
|
const { calTableHeight: m, tableHeight: C } = Ho({
|
|
1109
|
-
offsetBottom:
|
|
1109
|
+
offsetBottom: s.value,
|
|
1110
1110
|
// 底部预留空间
|
|
1111
|
-
minHeight:
|
|
1111
|
+
minHeight: f.value,
|
|
1112
1112
|
// table最小高度 请勿随便修改!!
|
|
1113
1113
|
timeOut: l.value
|
|
1114
|
-
}), p =
|
|
1114
|
+
}), p = z(() => C.value);
|
|
1115
1115
|
return Ct("HB_LIST_PAGE_CONTAINER", {
|
|
1116
|
-
PageContainerRef:
|
|
1116
|
+
PageContainerRef: u,
|
|
1117
1117
|
// 通过函数访问,
|
|
1118
1118
|
tableHeight: C,
|
|
1119
1119
|
calTableHeight: m
|
|
1120
|
-
}), (D,
|
|
1120
|
+
}), (D, A) => (i(), S("section", {
|
|
1121
1121
|
class: "hb-lib-list-page-container",
|
|
1122
1122
|
ref_key: "PageContainerRef",
|
|
1123
|
-
ref:
|
|
1123
|
+
ref: u
|
|
1124
1124
|
}, [
|
|
1125
1125
|
W(D.$slots, "header"),
|
|
1126
1126
|
d("section", {
|
|
1127
1127
|
class: "list-page-box",
|
|
1128
1128
|
style: re(
|
|
1129
1129
|
a.value ? null : {
|
|
1130
|
-
"--hb-list-table-height":
|
|
1131
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
1130
|
+
"--hb-list-table-height": _(o) ? p.value - b.value + "px" : p.value - s.value + "px",
|
|
1131
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : _(o) ? p.value - b.value + "px" : p.value - s.value + "px"
|
|
1132
1132
|
}
|
|
1133
1133
|
)
|
|
1134
1134
|
}, [
|
|
@@ -1136,19 +1136,19 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1136
1136
|
], 4)
|
|
1137
1137
|
], 512));
|
|
1138
1138
|
}
|
|
1139
|
-
}), $o =
|
|
1139
|
+
}), $o = oe(Fo), Io = { style: { "font-weight": "500" } }, Mo = {
|
|
1140
1140
|
key: 0,
|
|
1141
1141
|
class: "hb-lib-search-tag__description"
|
|
1142
|
-
}, Do = { class: "hb-lib-selector-dropdown" },
|
|
1142
|
+
}, Do = { class: "hb-lib-selector-dropdown" }, Bo = { class: "hb-lib-selector-search" }, Ao = { class: "hb-lib-selector-list" }, Oo = ["onClick"], zo = { class: "hb-lib-option-content" }, Eo = { class: "hb-lib-option-label" }, No = {
|
|
1143
1143
|
key: 0,
|
|
1144
1144
|
class: "hb-lib-selector-empty"
|
|
1145
|
-
},
|
|
1145
|
+
}, Po = {
|
|
1146
1146
|
key: 1,
|
|
1147
1147
|
class: "hb-lib-selector-footer"
|
|
1148
1148
|
}, Ro = { class: "hb-lib-footer-buttons" }, Uo = {
|
|
1149
1149
|
key: 2,
|
|
1150
1150
|
class: "hb-lib-selector-footer"
|
|
1151
|
-
}, Vo = { class: "hb-lib-footer-buttons" }, jo = /* @__PURE__ */
|
|
1151
|
+
}, Vo = { class: "hb-lib-footer-buttons" }, jo = /* @__PURE__ */ G({
|
|
1152
1152
|
name: "HbLibListMultiSelect",
|
|
1153
1153
|
__name: "HbListMultiSelect",
|
|
1154
1154
|
props: /* @__PURE__ */ Ve({
|
|
@@ -1169,147 +1169,147 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1169
1169
|
}),
|
|
1170
1170
|
emits: /* @__PURE__ */ Ve(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1171
1171
|
setup(e, { emit: t }) {
|
|
1172
|
-
const o = e, n = t,
|
|
1173
|
-
if (o.remoteSearch || !
|
|
1174
|
-
const k =
|
|
1175
|
-
return o.options.filter((
|
|
1176
|
-
}), m =
|
|
1172
|
+
const o = e, n = t, u = kt(e, "value"), b = O(!1), s = O(""), f = O([]), l = O(), a = z(() => {
|
|
1173
|
+
if (o.remoteSearch || !s.value) return o.options;
|
|
1174
|
+
const k = s.value.toLowerCase();
|
|
1175
|
+
return o.options.filter((y) => y.label.toLowerCase().includes(k) || y.description?.toLowerCase().includes(k));
|
|
1176
|
+
}), m = z(() => o.prefix ? `${o.prefix.length * 14 + 8}px` : "0px"), C = z(() => a.value.length === 0 ? !1 : a.value.every((k) => f.value.includes(k.value))), p = z(() => {
|
|
1177
1177
|
if (a.value.length === 0) return !1;
|
|
1178
|
-
const k = a.value.filter((
|
|
1178
|
+
const k = a.value.filter((y) => f.value.includes(y.value)).length;
|
|
1179
1179
|
return k > 0 && k < a.value.length;
|
|
1180
1180
|
});
|
|
1181
|
-
|
|
1182
|
-
() =>
|
|
1181
|
+
te(
|
|
1182
|
+
() => u.value,
|
|
1183
1183
|
(k) => {
|
|
1184
|
-
k ?
|
|
1184
|
+
k ? f.value = Array.isArray(k) ? [...k] : [k] : f.value = [];
|
|
1185
1185
|
},
|
|
1186
1186
|
{ immediate: !0 }
|
|
1187
|
-
),
|
|
1187
|
+
), te(
|
|
1188
1188
|
() => o.searchValue,
|
|
1189
1189
|
(k) => {
|
|
1190
|
-
o.remoteSearch && k !== void 0 && (
|
|
1190
|
+
o.remoteSearch && k !== void 0 && (s.value = k);
|
|
1191
1191
|
},
|
|
1192
1192
|
{ immediate: !0 }
|
|
1193
1193
|
);
|
|
1194
1194
|
const D = (k) => {
|
|
1195
|
-
k && (
|
|
1195
|
+
k && (b.value = k, A.value = [...f.value], s.value = "", setTimeout(() => {
|
|
1196
1196
|
if (l.value) {
|
|
1197
|
-
const
|
|
1198
|
-
|
|
1197
|
+
const y = l.value.input || l.value.$el?.querySelector("input");
|
|
1198
|
+
y && y.focus();
|
|
1199
1199
|
}
|
|
1200
1200
|
}, 100));
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1203
|
-
}, x = O([]),
|
|
1204
|
-
const k = o.multiple ?
|
|
1205
|
-
x.value =
|
|
1206
|
-
},
|
|
1207
|
-
const
|
|
1208
|
-
o.remoteSearch && (n("search",
|
|
1209
|
-
}, 300),
|
|
1201
|
+
}, A = O([]), P = () => {
|
|
1202
|
+
f.value = [...A.value], b.value = !1, n("cancel");
|
|
1203
|
+
}, x = O([]), g = () => {
|
|
1204
|
+
const k = o.multiple ? f.value : f.value[0] || "", y = o.options.filter((r) => f.value.includes(r.value));
|
|
1205
|
+
x.value = y, console.log(k, y), A.value = [...f.value], u.value = k, n("update:value", k), n("change", k, y), n("confirm", k, y), b.value = !1;
|
|
1206
|
+
}, T = Qt((k) => {
|
|
1207
|
+
const y = k !== void 0 ? k : s.value;
|
|
1208
|
+
o.remoteSearch && (n("search", y), n("update:searchValue", y));
|
|
1209
|
+
}, 300), F = (k) => {
|
|
1210
1210
|
if (o.multiple) {
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1211
|
+
const y = new Set(f.value);
|
|
1212
|
+
y.has(k.value) ? y.delete(k.value) : y.add(k.value), f.value = Array.from(y);
|
|
1213
1213
|
} else
|
|
1214
|
-
|
|
1214
|
+
f.value = [k.value], g();
|
|
1215
1215
|
}, H = (k) => {
|
|
1216
1216
|
if (k.target.checked) {
|
|
1217
|
-
const
|
|
1217
|
+
const r = new Set(f.value);
|
|
1218
1218
|
a.value.forEach((h) => {
|
|
1219
|
-
|
|
1220
|
-
}),
|
|
1219
|
+
r.add(h.value);
|
|
1220
|
+
}), f.value = Array.from(r);
|
|
1221
1221
|
} else {
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1222
|
+
const r = new Set(a.value.map((h) => h.value));
|
|
1223
|
+
f.value = f.value.filter((h) => !r.has(h));
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
|
-
return (k,
|
|
1227
|
-
const
|
|
1228
|
-
return i(),
|
|
1226
|
+
return (k, y) => {
|
|
1227
|
+
const r = R("a-tag"), h = R("a-input"), M = R("a-checkbox"), V = R("a-radio"), K = R("a-button"), se = R("a-select");
|
|
1228
|
+
return i(), S("div", ee({
|
|
1229
1229
|
class: "hb-lib-selector-wrapper",
|
|
1230
1230
|
style: { "--prefix-width": m.value }
|
|
1231
1231
|
}, k.$attrs), [
|
|
1232
1232
|
w(se, {
|
|
1233
|
-
value:
|
|
1234
|
-
"onUpdate:value":
|
|
1233
|
+
value: u.value,
|
|
1234
|
+
"onUpdate:value": y[5] || (y[5] = (I) => u.value = I),
|
|
1235
1235
|
mode: e.multiple ? "multiple" : void 0,
|
|
1236
1236
|
placeholder: e.placeholder,
|
|
1237
1237
|
"show-search": !0,
|
|
1238
1238
|
"filter-option": !1,
|
|
1239
|
-
open:
|
|
1239
|
+
open: b.value,
|
|
1240
1240
|
allowClear: "",
|
|
1241
1241
|
maxTagCount: e.maxTagCount,
|
|
1242
1242
|
options: a.value,
|
|
1243
1243
|
onDropdownVisibleChange: D,
|
|
1244
|
-
onSearch:
|
|
1244
|
+
onSearch: _(T),
|
|
1245
1245
|
"max-tag-text-length": e.tagTextLength,
|
|
1246
1246
|
class: Y({ "has-prefix": e.prefix }),
|
|
1247
1247
|
"data-prefix": e.prefix,
|
|
1248
1248
|
style: { width: "100%" }
|
|
1249
1249
|
}, {
|
|
1250
|
-
tagRender:
|
|
1251
|
-
w(
|
|
1250
|
+
tagRender: c(({ value: I, label: U, closable: X, option: le }) => [
|
|
1251
|
+
w(r, {
|
|
1252
1252
|
class: "hb-lib-search-tag",
|
|
1253
|
-
onClick:
|
|
1253
|
+
onClick: y[0] || (y[0] = () => D(!0))
|
|
1254
1254
|
}, {
|
|
1255
|
-
default:
|
|
1256
|
-
d("span", Io, L(
|
|
1257
|
-
|
|
1255
|
+
default: c(() => [
|
|
1256
|
+
d("span", Io, L(U), 1),
|
|
1257
|
+
le?.description ? (i(), S("span", Mo, " (" + L(le.description) + ") ", 1)) : E("", !0)
|
|
1258
1258
|
]),
|
|
1259
1259
|
_: 2
|
|
1260
1260
|
}, 1024)
|
|
1261
1261
|
]),
|
|
1262
|
-
dropdownRender:
|
|
1262
|
+
dropdownRender: c(({ menuNode: I }) => [
|
|
1263
1263
|
d("div", Do, [
|
|
1264
|
-
d("div",
|
|
1264
|
+
d("div", Bo, [
|
|
1265
1265
|
w(h, {
|
|
1266
1266
|
ref_key: "searchInputRef",
|
|
1267
1267
|
ref: l,
|
|
1268
1268
|
class: "hb-lib-selector-search-input",
|
|
1269
|
-
value:
|
|
1270
|
-
"onUpdate:value":
|
|
1269
|
+
value: s.value,
|
|
1270
|
+
"onUpdate:value": y[1] || (y[1] = (U) => s.value = U),
|
|
1271
1271
|
placeholder: "请输入关键词搜索",
|
|
1272
1272
|
"allow-clear": "",
|
|
1273
|
-
onInput:
|
|
1273
|
+
onInput: y[2] || (y[2] = (U) => _(T)(U.target.value))
|
|
1274
1274
|
}, {
|
|
1275
|
-
prefix:
|
|
1276
|
-
w(
|
|
1275
|
+
prefix: c(() => [
|
|
1276
|
+
w(_(De))
|
|
1277
1277
|
]),
|
|
1278
1278
|
_: 1
|
|
1279
1279
|
}, 8, ["value"])
|
|
1280
1280
|
]),
|
|
1281
|
-
d("div",
|
|
1282
|
-
(i(!0),
|
|
1283
|
-
key:
|
|
1284
|
-
class: Y(["hb-lib-selector-option", { selected:
|
|
1285
|
-
onClick: () =>
|
|
1281
|
+
d("div", Ao, [
|
|
1282
|
+
(i(!0), S(q, null, ie(a.value, (U) => (i(), S("div", {
|
|
1283
|
+
key: U.value,
|
|
1284
|
+
class: Y(["hb-lib-selector-option", { selected: f.value.includes(U.value) }]),
|
|
1285
|
+
onClick: () => F(U)
|
|
1286
1286
|
}, [
|
|
1287
|
-
e.multiple ? (i(),
|
|
1287
|
+
e.multiple ? (i(), N(M, {
|
|
1288
1288
|
key: 0,
|
|
1289
|
-
checked:
|
|
1290
|
-
onChange: () =>
|
|
1291
|
-
onClick:
|
|
1289
|
+
checked: f.value.includes(U.value),
|
|
1290
|
+
onChange: () => F(U),
|
|
1291
|
+
onClick: y[3] || (y[3] = Fe(() => {
|
|
1292
1292
|
}, ["stop"]))
|
|
1293
|
-
}, null, 8, ["checked", "onChange"])) : (i(),
|
|
1293
|
+
}, null, 8, ["checked", "onChange"])) : (i(), N(V, {
|
|
1294
1294
|
key: 1,
|
|
1295
|
-
checked:
|
|
1296
|
-
onChange: () =>
|
|
1297
|
-
onClick:
|
|
1295
|
+
checked: f.value.includes(U.value),
|
|
1296
|
+
onChange: () => F(U),
|
|
1297
|
+
onClick: y[4] || (y[4] = Fe(() => {
|
|
1298
1298
|
}, ["stop"]))
|
|
1299
1299
|
}, null, 8, ["checked", "onChange"])),
|
|
1300
1300
|
d("div", zo, [
|
|
1301
|
-
d("div", Eo, L(
|
|
1301
|
+
d("div", Eo, L(U.label), 1)
|
|
1302
1302
|
])
|
|
1303
1303
|
], 10, Oo))), 128))
|
|
1304
1304
|
]),
|
|
1305
|
-
a.value.length === 0 ? (i(),
|
|
1306
|
-
e.multiple ? (i(),
|
|
1307
|
-
w(
|
|
1305
|
+
a.value.length === 0 ? (i(), S("div", No, L(k.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : E("", !0),
|
|
1306
|
+
e.multiple ? (i(), S("div", Po, [
|
|
1307
|
+
w(M, {
|
|
1308
1308
|
checked: C.value,
|
|
1309
1309
|
indeterminate: p.value,
|
|
1310
1310
|
onChange: H
|
|
1311
1311
|
}, {
|
|
1312
|
-
default:
|
|
1312
|
+
default: c(() => [
|
|
1313
1313
|
B(L(k.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1314
1314
|
]),
|
|
1315
1315
|
_: 1
|
|
@@ -1317,9 +1317,9 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1317
1317
|
d("div", Ro, [
|
|
1318
1318
|
w(K, {
|
|
1319
1319
|
size: "small",
|
|
1320
|
-
onClick:
|
|
1320
|
+
onClick: P
|
|
1321
1321
|
}, {
|
|
1322
|
-
default:
|
|
1322
|
+
default: c(() => [
|
|
1323
1323
|
B(L(k.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1324
1324
|
]),
|
|
1325
1325
|
_: 1
|
|
@@ -1327,22 +1327,22 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1327
1327
|
w(K, {
|
|
1328
1328
|
type: "primary",
|
|
1329
1329
|
size: "small",
|
|
1330
|
-
onClick:
|
|
1330
|
+
onClick: g
|
|
1331
1331
|
}, {
|
|
1332
|
-
default:
|
|
1332
|
+
default: c(() => [
|
|
1333
1333
|
B(L(k.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1334
1334
|
]),
|
|
1335
1335
|
_: 1
|
|
1336
1336
|
})
|
|
1337
1337
|
])
|
|
1338
|
-
])) : (i(),
|
|
1339
|
-
|
|
1338
|
+
])) : (i(), S("div", Uo, [
|
|
1339
|
+
y[6] || (y[6] = d("div", null, null, -1)),
|
|
1340
1340
|
d("div", Vo, [
|
|
1341
1341
|
w(K, {
|
|
1342
1342
|
size: "small",
|
|
1343
|
-
onClick:
|
|
1343
|
+
onClick: P
|
|
1344
1344
|
}, {
|
|
1345
|
-
default:
|
|
1345
|
+
default: c(() => [
|
|
1346
1346
|
B(L(k.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1347
1347
|
]),
|
|
1348
1348
|
_: 1
|
|
@@ -1356,7 +1356,7 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1356
1356
|
], 16);
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
}), Wo = /* @__PURE__ */ Z(jo, [["__scopeId", "data-v-87177371"]]), Yo =
|
|
1359
|
+
}), Wo = /* @__PURE__ */ Z(jo, [["__scopeId", "data-v-87177371"]]), Yo = oe(Wo), qo = { class: "hb-lib-form-item-filter-modal-search" }, Ko = { class: "hb-lib-form-item-filter-modal-buttons" }, Go = { key: 0 }, Jo = /* @__PURE__ */ G({
|
|
1360
1360
|
name: "HbLibMutilpleSelectModal",
|
|
1361
1361
|
__name: "HbMutilpleSelectModal",
|
|
1362
1362
|
props: {
|
|
@@ -1370,148 +1370,148 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1370
1370
|
},
|
|
1371
1371
|
emits: ["handleConfirm", "handleCancel"],
|
|
1372
1372
|
setup(e, { expose: t, emit: o }) {
|
|
1373
|
-
const n = e,
|
|
1373
|
+
const n = e, u = o, b = O(!1), s = O(""), f = O(), l = O(), a = O([]), m = O([]), C = O(), p = Se({
|
|
1374
1374
|
searchText: "",
|
|
1375
1375
|
searchedColumn: ""
|
|
1376
|
-
}), D =
|
|
1376
|
+
}), D = z(() => n.tableData.map((r) => (r.id = r.id || Math.random(), r))), A = z(() => n.tableColumn.map((r) => (r.customFilterDropdown && (r.onFilter = (h, M) => M[r.dataIndex].toString().toLowerCase().includes(h.toLowerCase()), r.onFilterDropdownVisibleChange = (h) => {
|
|
1377
1377
|
h && setTimeout(() => {
|
|
1378
|
-
|
|
1378
|
+
f.value?.focus();
|
|
1379
1379
|
}, 100);
|
|
1380
|
-
}), { ...
|
|
1381
|
-
let
|
|
1380
|
+
}), { ...r }))), P = () => {
|
|
1381
|
+
let r = "";
|
|
1382
1382
|
m.value.forEach((h) => {
|
|
1383
|
-
|
|
1384
|
-
}),
|
|
1383
|
+
r = r + h[n.labelKey] + ",";
|
|
1384
|
+
}), s.value = r.substring(0, r.length - 1), b.value = !1, u("handleConfirm", m.value);
|
|
1385
1385
|
}, x = () => {
|
|
1386
|
-
|
|
1387
|
-
},
|
|
1388
|
-
|
|
1389
|
-
const
|
|
1390
|
-
|
|
1386
|
+
b.value = !1;
|
|
1387
|
+
}, g = () => {
|
|
1388
|
+
b.value = !0, Le(() => {
|
|
1389
|
+
const r = C.value?.$el?.querySelector(".ant-table-body");
|
|
1390
|
+
r && (r.scrollTop = 0);
|
|
1391
1391
|
});
|
|
1392
|
-
},
|
|
1392
|
+
}, T = () => {
|
|
1393
1393
|
a.value = [], m.value = [];
|
|
1394
|
-
},
|
|
1395
|
-
|
|
1396
|
-
}, H = (
|
|
1397
|
-
h(), p.searchText =
|
|
1398
|
-
}, k = (
|
|
1399
|
-
|
|
1400
|
-
},
|
|
1401
|
-
a.value =
|
|
1394
|
+
}, F = () => {
|
|
1395
|
+
s.value = "", T();
|
|
1396
|
+
}, H = (r, h, M) => {
|
|
1397
|
+
h(), p.searchText = r[0], p.searchedColumn = M;
|
|
1398
|
+
}, k = (r, h) => {
|
|
1399
|
+
r({ confirm: !0 }), p.searchText = "", h();
|
|
1400
|
+
}, y = (r, h) => {
|
|
1401
|
+
a.value = r, m.value = h;
|
|
1402
1402
|
};
|
|
1403
1403
|
return t({
|
|
1404
|
-
resetInputVal:
|
|
1405
|
-
}), (
|
|
1406
|
-
const
|
|
1407
|
-
return i(),
|
|
1404
|
+
resetInputVal: F
|
|
1405
|
+
}), (r, h) => {
|
|
1406
|
+
const M = R("a-input"), V = R("a-button"), K = R("a-table"), se = R("a-modal");
|
|
1407
|
+
return i(), S("div", {
|
|
1408
1408
|
class: "hb-lib-multipleSelectModal-box",
|
|
1409
1409
|
ref_key: "hbMultipSelectModalRef",
|
|
1410
1410
|
ref: l
|
|
1411
1411
|
}, [
|
|
1412
|
-
w(
|
|
1412
|
+
w(M, {
|
|
1413
1413
|
readonly: "",
|
|
1414
|
-
onClick:
|
|
1415
|
-
value:
|
|
1416
|
-
"onUpdate:value": h[0] || (h[0] = (
|
|
1417
|
-
placeholder:
|
|
1414
|
+
onClick: g,
|
|
1415
|
+
value: s.value,
|
|
1416
|
+
"onUpdate:value": h[0] || (h[0] = (I) => s.value = I),
|
|
1417
|
+
placeholder: r.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1418
1418
|
}, {
|
|
1419
|
-
addonAfter:
|
|
1420
|
-
w(
|
|
1419
|
+
addonAfter: c(() => [
|
|
1420
|
+
w(_(Gt), { onClick: g })
|
|
1421
1421
|
]),
|
|
1422
1422
|
_: 1
|
|
1423
1423
|
}, 8, ["value", "placeholder"]),
|
|
1424
1424
|
w(se, {
|
|
1425
|
-
visible:
|
|
1426
|
-
"onUpdate:visible": h[1] || (h[1] = (
|
|
1425
|
+
visible: b.value,
|
|
1426
|
+
"onUpdate:visible": h[1] || (h[1] = (I) => b.value = I),
|
|
1427
1427
|
title: e.modelTitle,
|
|
1428
1428
|
width: e.modalWidth,
|
|
1429
1429
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1430
1430
|
}, {
|
|
1431
|
-
footer:
|
|
1432
|
-
w(V, { onClick:
|
|
1433
|
-
default:
|
|
1434
|
-
B(L(
|
|
1431
|
+
footer: c(() => [
|
|
1432
|
+
w(V, { onClick: T }, {
|
|
1433
|
+
default: c(() => [
|
|
1434
|
+
B(L(r.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 1
|
|
1437
1437
|
}),
|
|
1438
1438
|
w(V, { onClick: x }, {
|
|
1439
|
-
default:
|
|
1440
|
-
B(L(
|
|
1439
|
+
default: c(() => [
|
|
1440
|
+
B(L(r.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1441
1441
|
]),
|
|
1442
1442
|
_: 1
|
|
1443
1443
|
}),
|
|
1444
1444
|
w(V, {
|
|
1445
1445
|
type: "primary",
|
|
1446
|
-
onClick:
|
|
1446
|
+
onClick: P
|
|
1447
1447
|
}, {
|
|
1448
|
-
default:
|
|
1449
|
-
B(L(
|
|
1448
|
+
default: c(() => [
|
|
1449
|
+
B(L(r.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1450
1450
|
]),
|
|
1451
1451
|
_: 1
|
|
1452
1452
|
})
|
|
1453
1453
|
]),
|
|
1454
|
-
default:
|
|
1454
|
+
default: c(() => [
|
|
1455
1455
|
w(K, {
|
|
1456
1456
|
ref_key: "tableRef",
|
|
1457
1457
|
ref: C,
|
|
1458
|
-
columns:
|
|
1458
|
+
columns: A.value,
|
|
1459
1459
|
dataSource: D.value,
|
|
1460
|
-
rowSelection: { selectedRowKeys: a.value, onChange:
|
|
1461
|
-
rowKey: (
|
|
1460
|
+
rowSelection: { selectedRowKeys: a.value, onChange: y },
|
|
1461
|
+
rowKey: (I) => I[e.tableKey],
|
|
1462
1462
|
scroll: { y: e.tableHeight }
|
|
1463
1463
|
}, {
|
|
1464
|
-
customFilterDropdown:
|
|
1464
|
+
customFilterDropdown: c(({ setSelectedKeys: I, selectedKeys: U, confirm: X, clearFilters: le, column: ce }) => [
|
|
1465
1465
|
d("div", qo, [
|
|
1466
|
-
w(
|
|
1466
|
+
w(M, {
|
|
1467
1467
|
ref_key: "searchInput",
|
|
1468
|
-
ref:
|
|
1468
|
+
ref: f,
|
|
1469
1469
|
placeholder: `请输入${ce.title}`,
|
|
1470
|
-
value:
|
|
1470
|
+
value: U[0],
|
|
1471
1471
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1472
|
-
onChange: (ue) =>
|
|
1473
|
-
onPressEnter: (ue) => H(
|
|
1472
|
+
onChange: (ue) => I(ue.target.value ? [ue.target.value] : []),
|
|
1473
|
+
onPressEnter: (ue) => H(U, X, ce.dataIndex)
|
|
1474
1474
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1475
1475
|
d("section", Ko, [
|
|
1476
1476
|
w(V, {
|
|
1477
1477
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1478
1478
|
type: "ghost",
|
|
1479
|
-
onClick: (ue) => k(
|
|
1479
|
+
onClick: (ue) => k(le, X)
|
|
1480
1480
|
}, {
|
|
1481
|
-
default:
|
|
1482
|
-
B(L(
|
|
1481
|
+
default: c(() => [
|
|
1482
|
+
B(L(r.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1483
1483
|
]),
|
|
1484
1484
|
_: 1
|
|
1485
1485
|
}, 8, ["onClick"]),
|
|
1486
1486
|
w(V, {
|
|
1487
1487
|
type: "primary",
|
|
1488
1488
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1489
|
-
onClick: (ue) => H(
|
|
1489
|
+
onClick: (ue) => H(U, X, ce.dataIndex)
|
|
1490
1490
|
}, {
|
|
1491
|
-
default:
|
|
1492
|
-
B(L(
|
|
1491
|
+
default: c(() => [
|
|
1492
|
+
B(L(r.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1493
1493
|
]),
|
|
1494
1494
|
_: 1
|
|
1495
1495
|
}, 8, ["onClick"])
|
|
1496
1496
|
])
|
|
1497
1497
|
])
|
|
1498
1498
|
]),
|
|
1499
|
-
customFilterIcon:
|
|
1500
|
-
w(
|
|
1501
|
-
style: re({ color:
|
|
1499
|
+
customFilterIcon: c(({ filtered: I }) => [
|
|
1500
|
+
w(_(De), {
|
|
1501
|
+
style: re({ color: I ? "#108ee9" : void 0 })
|
|
1502
1502
|
}, null, 8, ["style"])
|
|
1503
1503
|
]),
|
|
1504
|
-
bodyCell:
|
|
1505
|
-
p.searchText && p.searchedColumn ===
|
|
1506
|
-
(i(!0),
|
|
1507
|
-
X.toLowerCase() === p.searchText.toLowerCase() ? (i(),
|
|
1508
|
-
key:
|
|
1504
|
+
bodyCell: c(({ text: I, column: U }) => [
|
|
1505
|
+
p.searchText && p.searchedColumn === U.dataIndex ? (i(), S("span", Go, [
|
|
1506
|
+
(i(!0), S(q, null, ie(I.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`, "i")), (X, le) => (i(), S(q, null, [
|
|
1507
|
+
X.toLowerCase() === p.searchText.toLowerCase() ? (i(), S("mark", {
|
|
1508
|
+
key: le,
|
|
1509
1509
|
class: "highlight"
|
|
1510
|
-
}, L(X), 1)) : (i(),
|
|
1510
|
+
}, L(X), 1)) : (i(), S(q, { key: 1 }, [
|
|
1511
1511
|
B(L(X), 1)
|
|
1512
1512
|
], 64))
|
|
1513
1513
|
], 64))), 256))
|
|
1514
|
-
])) :
|
|
1514
|
+
])) : E("", !0)
|
|
1515
1515
|
]),
|
|
1516
1516
|
_: 1
|
|
1517
1517
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1521,13 +1521,13 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1521
1521
|
], 512);
|
|
1522
1522
|
};
|
|
1523
1523
|
}
|
|
1524
|
-
}), Qo =
|
|
1524
|
+
}), Qo = oe(Jo), Zo = { class: "hb-lib-table-act-box" }, Xo = ["onClick"], el = {
|
|
1525
1525
|
href: "javascript:;",
|
|
1526
1526
|
class: "hb-lib-table-main-action"
|
|
1527
1527
|
}, tl = ["onClick"], ol = {
|
|
1528
1528
|
href: "javascript:;",
|
|
1529
1529
|
class: "hb-lib-table-more-action"
|
|
1530
|
-
}, ll = ["onClick"], al = { href: "javascript:;" }, nl = ["onClick"], il = { class: "hb-lib-table-confirm-modal-content" }, sl = /* @__PURE__ */
|
|
1530
|
+
}, ll = ["onClick"], al = { href: "javascript:;" }, nl = ["onClick"], il = { class: "hb-lib-table-confirm-modal-content" }, sl = /* @__PURE__ */ G({
|
|
1531
1531
|
name: "HbLibTableAct",
|
|
1532
1532
|
__name: "HbTableAct",
|
|
1533
1533
|
props: {
|
|
@@ -1537,198 +1537,198 @@ const oo = "hb-", Ze = (e = "") => {
|
|
|
1537
1537
|
buttonDisplaysQuantity: {}
|
|
1538
1538
|
},
|
|
1539
1539
|
setup(e, { expose: t }) {
|
|
1540
|
-
const o = e, { t: n } = de(),
|
|
1540
|
+
const o = e, { t: n } = de(), u = O(!1), b = O(!1), s = O(null), f = z(() => o.actions.filter((x) => x.condition !== void 0 ? x.condition : !0)), l = z(() => f.value.slice(0, o.buttonDisplaysQuantity)), a = z(() => m(f.value.slice(o.buttonDisplaysQuantity)));
|
|
1541
1541
|
function m(x) {
|
|
1542
1542
|
if (o.filterPermission)
|
|
1543
1543
|
return o.filterPermission(x);
|
|
1544
|
-
let
|
|
1545
|
-
return
|
|
1546
|
-
(!
|
|
1547
|
-
}),
|
|
1544
|
+
let g = [], T = [];
|
|
1545
|
+
return g = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(g) || x.length === 0 ? (g = [], []) : (g = g.filter((F) => F.type != "2"), x.forEach((F) => {
|
|
1546
|
+
(!F.permissionsTag || g.findIndex((H) => H.action === F.permissionsTag) !== -1) && T.push(F);
|
|
1547
|
+
}), T);
|
|
1548
1548
|
}
|
|
1549
1549
|
const C = (x) => {
|
|
1550
1550
|
x.handler && x.handler(o.record);
|
|
1551
1551
|
}, p = (x) => {
|
|
1552
|
-
|
|
1552
|
+
s.value = x, u.value = !0;
|
|
1553
1553
|
}, D = () => {
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1554
|
+
if (s.value) {
|
|
1555
|
+
b.value = !0;
|
|
1556
1556
|
try {
|
|
1557
|
-
C(
|
|
1557
|
+
C(s.value), b.value = !1, u.value = !1;
|
|
1558
1558
|
} catch {
|
|
1559
|
-
|
|
1559
|
+
b.value = !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1565
|
-
title:
|
|
1566
|
-
content:
|
|
1562
|
+
}, A = () => {
|
|
1563
|
+
u.value = !1, s.value = null;
|
|
1564
|
+
}, P = z(() => s.value ? {
|
|
1565
|
+
title: s.value.confirmTitle,
|
|
1566
|
+
content: s.value.confirmContent || s.value.confirmTitle
|
|
1567
1567
|
} : {
|
|
1568
1568
|
title: n("hbLibComp.hbTableAct.secendConfirm"),
|
|
1569
1569
|
content: n("hbLibComp.hbTableAct.confirmContent")
|
|
1570
1570
|
});
|
|
1571
1571
|
return t({
|
|
1572
|
-
ADropdown:
|
|
1572
|
+
ADropdown: bt,
|
|
1573
1573
|
AMenu: ut,
|
|
1574
1574
|
AMenuItem: dt,
|
|
1575
1575
|
APopconfirm: Re,
|
|
1576
1576
|
AModal: je,
|
|
1577
1577
|
DownOutlined: Ke
|
|
1578
|
-
}), (x,
|
|
1579
|
-
const
|
|
1580
|
-
return i(),
|
|
1581
|
-
(i(!0),
|
|
1582
|
-
H.needConfirm ? (i(),
|
|
1583
|
-
H.confirmType === "modal" ? (i(),
|
|
1584
|
-
|
|
1578
|
+
}), (x, g) => {
|
|
1579
|
+
const T = R("a-divider"), F = St("has");
|
|
1580
|
+
return i(), S("div", Zo, [
|
|
1581
|
+
(i(!0), S(q, null, ie(l.value, (H, k) => (i(), S(q, { key: k }, [
|
|
1582
|
+
H.needConfirm ? (i(), S(q, { key: 0 }, [
|
|
1583
|
+
H.confirmType === "modal" ? (i(), S(q, { key: 0 }, [
|
|
1584
|
+
be((i(), S("a", {
|
|
1585
1585
|
href: "javascript:;",
|
|
1586
|
-
onClick: (
|
|
1586
|
+
onClick: (y) => p(H),
|
|
1587
1587
|
class: "hb-lib-table-main-action"
|
|
1588
1588
|
}, [
|
|
1589
1589
|
B(L(H.label), 1)
|
|
1590
1590
|
], 8, Xo)), [
|
|
1591
|
-
[
|
|
1591
|
+
[F, H.permissionsTag || null]
|
|
1592
1592
|
]),
|
|
1593
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(),
|
|
1593
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(), N(T, {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
type: "vertical"
|
|
1596
|
-
})) :
|
|
1597
|
-
], 64)) : (i(),
|
|
1598
|
-
w(
|
|
1596
|
+
})) : E("", !0)
|
|
1597
|
+
], 64)) : (i(), S(q, { key: 1 }, [
|
|
1598
|
+
w(_(Re), {
|
|
1599
1599
|
title: H.confirmTitle,
|
|
1600
|
-
onConfirm: (
|
|
1600
|
+
onConfirm: (y) => C(H)
|
|
1601
1601
|
}, {
|
|
1602
|
-
default:
|
|
1603
|
-
|
|
1602
|
+
default: c(() => [
|
|
1603
|
+
be((i(), S("a", el, [
|
|
1604
1604
|
B(L(H.label), 1)
|
|
1605
1605
|
])), [
|
|
1606
|
-
[
|
|
1606
|
+
[F, H.permissionsTag || null]
|
|
1607
1607
|
])
|
|
1608
1608
|
]),
|
|
1609
1609
|
_: 2
|
|
1610
1610
|
}, 1032, ["title", "onConfirm"]),
|
|
1611
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(),
|
|
1611
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(), N(T, {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
type: "vertical"
|
|
1614
|
-
})) :
|
|
1614
|
+
})) : E("", !0)
|
|
1615
1615
|
], 64))
|
|
1616
|
-
], 64)) : H.slot ? (i(),
|
|
1616
|
+
], 64)) : H.slot ? (i(), S(q, { key: 1 }, [
|
|
1617
1617
|
W(x.$slots, H.slot, { item: H }, void 0, !0),
|
|
1618
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(),
|
|
1618
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? (i(), N(T, {
|
|
1619
1619
|
key: 0,
|
|
1620
1620
|
type: "vertical"
|
|
1621
|
-
})) :
|
|
1622
|
-
], 64)) : (i(),
|
|
1623
|
-
|
|
1621
|
+
})) : E("", !0)
|
|
1622
|
+
], 64)) : (i(), S(q, { key: 2 }, [
|
|
1623
|
+
be((i(), S("a", {
|
|
1624
1624
|
href: "javascript:;",
|
|
1625
|
-
onClick: (
|
|
1625
|
+
onClick: (y) => C(H),
|
|
1626
1626
|
class: "hb-lib-table-main-action"
|
|
1627
1627
|
}, [
|
|
1628
1628
|
B(L(H.label), 1)
|
|
1629
1629
|
], 8, tl)), [
|
|
1630
|
-
[
|
|
1630
|
+
[F, H.permissionsTag || null]
|
|
1631
1631
|
]),
|
|
1632
|
-
a.value && a.value.length > 0 || k !== l.value.length - 1 ?
|
|
1632
|
+
a.value && a.value.length > 0 || k !== l.value.length - 1 ? be((i(), N(T, {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
type: "vertical"
|
|
1635
1635
|
}, null, 512)), [
|
|
1636
|
-
[
|
|
1637
|
-
]) :
|
|
1636
|
+
[F, H.permissionsTag || null]
|
|
1637
|
+
]) : E("", !0)
|
|
1638
1638
|
], 64))
|
|
1639
1639
|
], 64))), 128)),
|
|
1640
|
-
a.value && a.value.length > 0 ? (i(),
|
|
1641
|
-
overlay:
|
|
1642
|
-
w(
|
|
1643
|
-
default:
|
|
1644
|
-
(i(!0),
|
|
1645
|
-
default:
|
|
1646
|
-
H.needConfirm ? (i(),
|
|
1647
|
-
H.confirmType === "modal" ?
|
|
1640
|
+
a.value && a.value.length > 0 ? (i(), N(_(bt), { key: 0 }, {
|
|
1641
|
+
overlay: c(() => [
|
|
1642
|
+
w(_(ut), null, {
|
|
1643
|
+
default: c(() => [
|
|
1644
|
+
(i(!0), S(q, null, ie(a.value, (H, k) => be((i(), N(_(dt), { key: k }, {
|
|
1645
|
+
default: c(() => [
|
|
1646
|
+
H.needConfirm ? (i(), S(q, { key: 0 }, [
|
|
1647
|
+
H.confirmType === "modal" ? be((i(), S("a", {
|
|
1648
1648
|
key: 0,
|
|
1649
1649
|
href: "javascript:;",
|
|
1650
|
-
onClick: (
|
|
1650
|
+
onClick: (y) => p(H)
|
|
1651
1651
|
}, [
|
|
1652
1652
|
B(L(H.label), 1)
|
|
1653
1653
|
], 8, ll)), [
|
|
1654
|
-
[
|
|
1655
|
-
]) :
|
|
1654
|
+
[F, H.permissionsTag || null]
|
|
1655
|
+
]) : be((i(), N(_(Re), {
|
|
1656
1656
|
key: 1,
|
|
1657
1657
|
title: H.confirmTitle,
|
|
1658
|
-
onConfirm: (
|
|
1658
|
+
onConfirm: (y) => C(H)
|
|
1659
1659
|
}, {
|
|
1660
|
-
default:
|
|
1661
|
-
|
|
1660
|
+
default: c(() => [
|
|
1661
|
+
be((i(), S("a", al, [
|
|
1662
1662
|
B(L(H.label), 1)
|
|
1663
1663
|
])), [
|
|
1664
|
-
[
|
|
1664
|
+
[F, H.permissionsTag || null]
|
|
1665
1665
|
])
|
|
1666
1666
|
]),
|
|
1667
1667
|
_: 2
|
|
1668
1668
|
}, 1032, ["title", "onConfirm"])), [
|
|
1669
|
-
[
|
|
1669
|
+
[F, H.permissionsTag || null]
|
|
1670
1670
|
])
|
|
1671
|
-
], 64)) :
|
|
1671
|
+
], 64)) : be((i(), S("a", {
|
|
1672
1672
|
key: 1,
|
|
1673
1673
|
href: "javascript:;",
|
|
1674
|
-
onClick: (
|
|
1674
|
+
onClick: (y) => C(H)
|
|
1675
1675
|
}, [
|
|
1676
1676
|
B(L(H.label), 1)
|
|
1677
1677
|
], 8, nl)), [
|
|
1678
|
-
[
|
|
1678
|
+
[F, H.permissionsTag || null]
|
|
1679
1679
|
])
|
|
1680
1680
|
]),
|
|
1681
1681
|
_: 2
|
|
1682
1682
|
}, 1024)), [
|
|
1683
|
-
[
|
|
1683
|
+
[F, H.permissionsTag || null]
|
|
1684
1684
|
])), 128))
|
|
1685
1685
|
]),
|
|
1686
1686
|
_: 1
|
|
1687
1687
|
})
|
|
1688
1688
|
]),
|
|
1689
|
-
default:
|
|
1689
|
+
default: c(() => [
|
|
1690
1690
|
d("a", ol, [
|
|
1691
1691
|
B(L(x.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1692
|
-
w(
|
|
1692
|
+
w(_(Ke), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1693
1693
|
])
|
|
1694
1694
|
]),
|
|
1695
1695
|
_: 1
|
|
1696
|
-
})) :
|
|
1697
|
-
w(
|
|
1698
|
-
visible:
|
|
1699
|
-
title:
|
|
1700
|
-
"confirm-loading":
|
|
1696
|
+
})) : E("", !0),
|
|
1697
|
+
w(_(je), {
|
|
1698
|
+
visible: u.value,
|
|
1699
|
+
title: P.value.title,
|
|
1700
|
+
"confirm-loading": b.value,
|
|
1701
1701
|
onOk: D,
|
|
1702
|
-
onCancel:
|
|
1702
|
+
onCancel: A
|
|
1703
1703
|
}, {
|
|
1704
|
-
default:
|
|
1705
|
-
d("p", il, L(
|
|
1704
|
+
default: c(() => [
|
|
1705
|
+
d("p", il, L(P.value.content), 1)
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 1
|
|
1708
1708
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1709
1709
|
]);
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
|
-
}), rl = /* @__PURE__ */ Z(sl, [["__scopeId", "data-v-25fd055e"]]), cl =
|
|
1712
|
+
}), rl = /* @__PURE__ */ Z(sl, [["__scopeId", "data-v-25fd055e"]]), cl = oe(rl), ft = (e) => ({ tableWidth: z(() => {
|
|
1713
1713
|
const o = Array.isArray(e) ? e : e.value;
|
|
1714
|
-
return !o || o.length === 0 ? 0 : o.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n,
|
|
1714
|
+
return !o || o.length === 0 ? 0 : o.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, u) => n + u, 0);
|
|
1715
1715
|
}) });
|
|
1716
|
-
var dl = typeof global == "object" && global && global.Object === Object && global, ul = typeof self == "object" && self && self.Object === Object && self, $t = dl || ul || Function("return this")(),
|
|
1716
|
+
var dl = typeof global == "object" && global && global.Object === Object && global, ul = typeof self == "object" && self && self.Object === Object && self, $t = dl || ul || Function("return this")(), Be = $t.Symbol, It = Object.prototype, bl = It.hasOwnProperty, fl = It.toString, Ce = Be ? Be.toStringTag : void 0;
|
|
1717
1717
|
function pl(e) {
|
|
1718
|
-
var t =
|
|
1718
|
+
var t = bl.call(e, Ce), o = e[Ce];
|
|
1719
1719
|
try {
|
|
1720
1720
|
e[Ce] = void 0;
|
|
1721
1721
|
var n = !0;
|
|
1722
1722
|
} catch {
|
|
1723
1723
|
}
|
|
1724
|
-
var
|
|
1725
|
-
return n && (t ? e[Ce] = o : delete e[Ce]),
|
|
1724
|
+
var u = fl.call(e);
|
|
1725
|
+
return n && (t ? e[Ce] = o : delete e[Ce]), u;
|
|
1726
1726
|
}
|
|
1727
1727
|
var hl = Object.prototype, ml = hl.toString;
|
|
1728
1728
|
function vl(e) {
|
|
1729
1729
|
return ml.call(e);
|
|
1730
1730
|
}
|
|
1731
|
-
var gl = "[object Null]", yl = "[object Undefined]", pt =
|
|
1731
|
+
var gl = "[object Null]", yl = "[object Undefined]", pt = Be ? Be.toStringTag : void 0;
|
|
1732
1732
|
function _l(e) {
|
|
1733
1733
|
return e == null ? e === void 0 ? yl : gl : pt && pt in Object(e) ? pl(e) : vl(e);
|
|
1734
1734
|
}
|
|
@@ -1749,7 +1749,7 @@ var wl = /^\s+/;
|
|
|
1749
1749
|
function xl(e) {
|
|
1750
1750
|
return e && e.slice(0, Tl(e) + 1).replace(wl, "");
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Ge(e) {
|
|
1753
1753
|
var t = typeof e;
|
|
1754
1754
|
return e != null && (t == "object" || t == "function");
|
|
1755
1755
|
}
|
|
@@ -1759,9 +1759,9 @@ function mt(e) {
|
|
|
1759
1759
|
return e;
|
|
1760
1760
|
if (kl(e))
|
|
1761
1761
|
return ht;
|
|
1762
|
-
if (
|
|
1762
|
+
if (Ge(e)) {
|
|
1763
1763
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1764
|
-
e =
|
|
1764
|
+
e = Ge(t) ? t + "" : t;
|
|
1765
1765
|
}
|
|
1766
1766
|
if (typeof e != "string")
|
|
1767
1767
|
return e === 0 ? e : +e;
|
|
@@ -1771,58 +1771,58 @@ function mt(e) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
var Ue = function() {
|
|
1773
1773
|
return $t.Date.now();
|
|
1774
|
-
}, Ml = "Expected a function", Dl = Math.max,
|
|
1775
|
-
function
|
|
1776
|
-
var n,
|
|
1774
|
+
}, Ml = "Expected a function", Dl = Math.max, Bl = Math.min;
|
|
1775
|
+
function Al(e, t, o) {
|
|
1776
|
+
var n, u, b, s, f, l, a = 0, m = !1, C = !1, p = !0;
|
|
1777
1777
|
if (typeof e != "function")
|
|
1778
1778
|
throw new TypeError(Ml);
|
|
1779
|
-
t = mt(t) || 0,
|
|
1780
|
-
function D(
|
|
1781
|
-
var
|
|
1782
|
-
return n =
|
|
1779
|
+
t = mt(t) || 0, Ge(o) && (m = !!o.leading, C = "maxWait" in o, b = C ? Dl(mt(o.maxWait) || 0, t) : b, p = "trailing" in o ? !!o.trailing : p);
|
|
1780
|
+
function D(y) {
|
|
1781
|
+
var r = n, h = u;
|
|
1782
|
+
return n = u = void 0, a = y, s = e.apply(h, r), s;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1785
|
-
return a =
|
|
1784
|
+
function A(y) {
|
|
1785
|
+
return a = y, f = setTimeout(g, t), m ? D(y) : s;
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
var
|
|
1789
|
-
return C ?
|
|
1787
|
+
function P(y) {
|
|
1788
|
+
var r = y - l, h = y - a, M = t - r;
|
|
1789
|
+
return C ? Bl(M, b - h) : M;
|
|
1790
1790
|
}
|
|
1791
|
-
function x(
|
|
1792
|
-
var
|
|
1793
|
-
return l === void 0 ||
|
|
1791
|
+
function x(y) {
|
|
1792
|
+
var r = y - l, h = y - a;
|
|
1793
|
+
return l === void 0 || r >= t || r < 0 || C && h >= b;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
var
|
|
1797
|
-
if (x(
|
|
1798
|
-
return
|
|
1799
|
-
|
|
1795
|
+
function g() {
|
|
1796
|
+
var y = Ue();
|
|
1797
|
+
if (x(y))
|
|
1798
|
+
return T(y);
|
|
1799
|
+
f = setTimeout(g, P(y));
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1802
|
-
return
|
|
1801
|
+
function T(y) {
|
|
1802
|
+
return f = void 0, p && n ? D(y) : (n = u = void 0, s);
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1805
|
-
|
|
1804
|
+
function F() {
|
|
1805
|
+
f !== void 0 && clearTimeout(f), a = 0, n = l = u = f = void 0;
|
|
1806
1806
|
}
|
|
1807
1807
|
function H() {
|
|
1808
|
-
return
|
|
1808
|
+
return f === void 0 ? s : T(Ue());
|
|
1809
1809
|
}
|
|
1810
1810
|
function k() {
|
|
1811
|
-
var
|
|
1812
|
-
if (n = arguments,
|
|
1813
|
-
if (
|
|
1814
|
-
return
|
|
1811
|
+
var y = Ue(), r = x(y);
|
|
1812
|
+
if (n = arguments, u = this, l = y, r) {
|
|
1813
|
+
if (f === void 0)
|
|
1814
|
+
return A(l);
|
|
1815
1815
|
if (C)
|
|
1816
|
-
return clearTimeout(
|
|
1816
|
+
return clearTimeout(f), f = setTimeout(g, t), D(l);
|
|
1817
1817
|
}
|
|
1818
|
-
return
|
|
1818
|
+
return f === void 0 && (f = setTimeout(g, t)), s;
|
|
1819
1819
|
}
|
|
1820
|
-
return k.cancel =
|
|
1820
|
+
return k.cancel = F, k.flush = H, k;
|
|
1821
1821
|
}
|
|
1822
1822
|
const Ol = {
|
|
1823
1823
|
key: 0,
|
|
1824
1824
|
class: "hb-lib-list-table-act"
|
|
1825
|
-
}, zl = { class: "empty-container" }, El = { key: 1 },
|
|
1825
|
+
}, zl = { class: "empty-container" }, El = { key: 1 }, Nl = { key: 2 }, Pl = /* @__PURE__ */ G({
|
|
1826
1826
|
name: "HbLibListTable",
|
|
1827
1827
|
__name: "HbListTable",
|
|
1828
1828
|
props: {
|
|
@@ -1834,76 +1834,76 @@ const Ol = {
|
|
|
1834
1834
|
},
|
|
1835
1835
|
emits: ["change", "resizeCol"],
|
|
1836
1836
|
setup(e, { emit: t }) {
|
|
1837
|
-
const o =
|
|
1838
|
-
|
|
1839
|
-
() =>
|
|
1840
|
-
(
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1837
|
+
const o = fe("globalCompConfig", {}), n = t, { t: u } = de(), b = e, s = O([]), f = fe("HB_LIST_PAGE_CONTAINER"), { tableWidth: l } = ft(s), a = O(l.value), m = z(() => b.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1838
|
+
te(
|
|
1839
|
+
() => b.columns,
|
|
1840
|
+
(g) => {
|
|
1841
|
+
const T = g.filter((H) => H != null && H.checked);
|
|
1842
|
+
s.value = T.map((H) => {
|
|
1843
1843
|
let k = { ...H, title: H.title || H.label, align: H.align || o.listTable?.align || "center" };
|
|
1844
1844
|
k.ellipsis && !k.needTooltip && (k.needTooltip = !0);
|
|
1845
|
-
let
|
|
1845
|
+
let y = b.defaultWidth || o.listTable?.defaultColWidth || 150;
|
|
1846
1846
|
if (!k.width)
|
|
1847
|
-
k.width =
|
|
1847
|
+
k.width = y;
|
|
1848
1848
|
else if (typeof k.width == "string") {
|
|
1849
|
-
const
|
|
1850
|
-
k.width = isNaN(
|
|
1849
|
+
const r = parseInt(k.width, 10);
|
|
1850
|
+
k.width = isNaN(r) ? y : r;
|
|
1851
1851
|
}
|
|
1852
1852
|
return k.resizable === void 0 && (k.resizable = !0), k;
|
|
1853
1853
|
});
|
|
1854
|
-
const { tableWidth:
|
|
1855
|
-
a.value =
|
|
1854
|
+
const { tableWidth: F } = ft(s);
|
|
1855
|
+
a.value = F.value;
|
|
1856
1856
|
},
|
|
1857
1857
|
{
|
|
1858
1858
|
immediate: !0,
|
|
1859
1859
|
deep: !0
|
|
1860
1860
|
}
|
|
1861
1861
|
);
|
|
1862
|
-
const C =
|
|
1863
|
-
n("resizeCol",
|
|
1864
|
-
}, o.listTable?.colSaveTimeOut || 800), p = (
|
|
1865
|
-
if (
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1862
|
+
const C = Al(() => {
|
|
1863
|
+
n("resizeCol", s);
|
|
1864
|
+
}, o.listTable?.colSaveTimeOut || 800), p = (g, T) => {
|
|
1865
|
+
if (T) {
|
|
1866
|
+
const F = typeof g == "string" ? parseInt(g, 10) : g;
|
|
1867
|
+
T.width = isNaN(F) ? o.listTable?.defaultColWidth || 150 : F, Le(() => {
|
|
1868
1868
|
C();
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
}, D = (
|
|
1872
|
-
|
|
1873
|
-
},
|
|
1874
|
-
return (
|
|
1875
|
-
const
|
|
1876
|
-
return i(),
|
|
1877
|
-
class: Y(["hb-lib-list-table", { "nowrap-table":
|
|
1871
|
+
}, D = (g, T, F) => {
|
|
1872
|
+
g?.current && n("change", g, T, F);
|
|
1873
|
+
}, A = (g, T = "YYYY-MM-DD HH:mm:ss") => g ? Oe(g).format(T) : "", P = (g, T) => g && T[g] || "", x = (g, T = o.listTable?.ellipsisNumber || 20) => g ? g.length > T ? `${g.substring(0, T)}...` : g : "";
|
|
1874
|
+
return (g, T) => {
|
|
1875
|
+
const F = R("a-empty"), H = R("a-tooltip"), k = R("HbLibCopy"), y = R("a-tag"), r = R("a-table");
|
|
1876
|
+
return i(), S("div", {
|
|
1877
|
+
class: Y(["hb-lib-list-table", { "nowrap-table": b.rowHeight }]),
|
|
1878
1878
|
style: re({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1879
1879
|
}, [
|
|
1880
|
-
|
|
1881
|
-
W(
|
|
1882
|
-
W(
|
|
1883
|
-
])) :
|
|
1884
|
-
w(
|
|
1880
|
+
g.$slots.tableActLeft ? (i(), S("section", Ol, [
|
|
1881
|
+
W(g.$slots, "tableActLeft", {}, void 0, !0),
|
|
1882
|
+
W(g.$slots, "tableActRight", {}, void 0, !0)
|
|
1883
|
+
])) : E("", !0),
|
|
1884
|
+
w(r, ee(g.$attrs, {
|
|
1885
1885
|
bordered: "",
|
|
1886
|
-
columns:
|
|
1886
|
+
columns: s.value,
|
|
1887
1887
|
tableLayout: "fixed",
|
|
1888
1888
|
onResizeColumn: p,
|
|
1889
1889
|
onChange: D,
|
|
1890
1890
|
scroll: m.value ? {
|
|
1891
1891
|
x: a.value
|
|
1892
|
-
} : { x: a.value, y:
|
|
1893
|
-
}),
|
|
1894
|
-
emptyText:
|
|
1892
|
+
} : { x: a.value, y: _(f).tableHeight }
|
|
1893
|
+
}), Ae({
|
|
1894
|
+
emptyText: c(() => [
|
|
1895
1895
|
d("div", zl, [
|
|
1896
|
-
w(
|
|
1897
|
-
description:
|
|
1896
|
+
w(F, {
|
|
1897
|
+
description: _(u)("hbLibComp.hbListTable.noData")
|
|
1898
1898
|
}, null, 8, ["description"])
|
|
1899
1899
|
])
|
|
1900
1900
|
]),
|
|
1901
1901
|
_: 2
|
|
1902
1902
|
}, [
|
|
1903
|
-
|
|
1903
|
+
g.$slots.headerCell ? {
|
|
1904
1904
|
name: "headerCell",
|
|
1905
|
-
fn:
|
|
1906
|
-
W(
|
|
1905
|
+
fn: c(({ column: h }) => [
|
|
1906
|
+
W(g.$slots, "headerCell", {
|
|
1907
1907
|
column: h,
|
|
1908
1908
|
title: h.title
|
|
1909
1909
|
}, () => [
|
|
@@ -1912,116 +1912,116 @@ const Ol = {
|
|
|
1912
1912
|
]),
|
|
1913
1913
|
key: "0"
|
|
1914
1914
|
} : void 0,
|
|
1915
|
-
|
|
1915
|
+
g.$slots.bodyCell ? {
|
|
1916
1916
|
name: "bodyCell",
|
|
1917
|
-
fn:
|
|
1918
|
-
W(
|
|
1917
|
+
fn: c(({ column: h, record: M, index: V, text: K }) => [
|
|
1918
|
+
W(g.$slots, "bodyCell", {
|
|
1919
1919
|
column: h,
|
|
1920
|
-
record:
|
|
1920
|
+
record: M,
|
|
1921
1921
|
index: V,
|
|
1922
1922
|
text: K
|
|
1923
1923
|
}, void 0, !0),
|
|
1924
|
-
h && h.needTooltip && !h.needCopy ? (i(),
|
|
1924
|
+
h && h.needTooltip && !h.needCopy ? (i(), N(H, {
|
|
1925
1925
|
key: 0,
|
|
1926
1926
|
placement: e.tooltipPlacement
|
|
1927
1927
|
}, {
|
|
1928
|
-
title:
|
|
1929
|
-
B(L(
|
|
1928
|
+
title: c(() => [
|
|
1929
|
+
B(L(M[h.dataIndex]), 1)
|
|
1930
1930
|
]),
|
|
1931
|
-
default:
|
|
1932
|
-
B(" " + L(
|
|
1931
|
+
default: c(() => [
|
|
1932
|
+
B(" " + L(M[h.dataIndex]), 1)
|
|
1933
1933
|
]),
|
|
1934
1934
|
_: 2
|
|
1935
|
-
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(),
|
|
1936
|
-
B(L(
|
|
1935
|
+
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), S("div", El, [
|
|
1936
|
+
B(L(M[h.dataIndex]) + " ", 1),
|
|
1937
1937
|
w(k, {
|
|
1938
|
-
"cp-text":
|
|
1938
|
+
"cp-text": M[h.dataIndex],
|
|
1939
1939
|
style: { position: "relative" }
|
|
1940
1940
|
}, null, 8, ["cp-text"])
|
|
1941
|
-
])) :
|
|
1942
|
-
h && h.needTooltip && h.needCopy ? (i(),
|
|
1941
|
+
])) : E("", !0),
|
|
1942
|
+
h && h.needTooltip && h.needCopy ? (i(), S("div", Nl, [
|
|
1943
1943
|
w(H, { placement: e.tooltipPlacement }, {
|
|
1944
|
-
title:
|
|
1945
|
-
B(L(
|
|
1944
|
+
title: c(() => [
|
|
1945
|
+
B(L(M[h.dataIndex]), 1)
|
|
1946
1946
|
]),
|
|
1947
|
-
default:
|
|
1948
|
-
B(" " + L(x(
|
|
1947
|
+
default: c(() => [
|
|
1948
|
+
B(" " + L(x(M[h.dataIndex], h.strLen)), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["placement"]),
|
|
1952
1952
|
w(k, {
|
|
1953
|
-
"cp-text":
|
|
1953
|
+
"cp-text": M[h.dataIndex],
|
|
1954
1954
|
style: { position: "relative" }
|
|
1955
1955
|
}, null, 8, ["cp-text"])
|
|
1956
|
-
])) : h && h.needFormat ? (i(),
|
|
1957
|
-
B(L(M
|
|
1958
|
-
], 64)) : h && h.tags ? (i(),
|
|
1959
|
-
|
|
1956
|
+
])) : h && h.needFormat ? (i(), S(q, { key: 3 }, [
|
|
1957
|
+
B(L(A(M[h.dataIndex], h.format)), 1)
|
|
1958
|
+
], 64)) : h && h.tags ? (i(), S(q, { key: 4 }, [
|
|
1959
|
+
P(M[h.dataIndex], h.tags) ? (i(), N(y, {
|
|
1960
1960
|
key: 0,
|
|
1961
|
-
color:
|
|
1961
|
+
color: P(M[h.dataIndex], h.tags)
|
|
1962
1962
|
}, {
|
|
1963
|
-
default:
|
|
1964
|
-
B(L(
|
|
1963
|
+
default: c(() => [
|
|
1964
|
+
B(L(M[h.dataIndex]), 1)
|
|
1965
1965
|
]),
|
|
1966
1966
|
_: 2
|
|
1967
|
-
}, 1032, ["color"])) :
|
|
1968
|
-
], 64)) :
|
|
1967
|
+
}, 1032, ["color"])) : E("", !0)
|
|
1968
|
+
], 64)) : E("", !0)
|
|
1969
1969
|
]),
|
|
1970
1970
|
key: "1"
|
|
1971
1971
|
} : void 0,
|
|
1972
|
-
|
|
1972
|
+
g.$slots.expandedRowRender ? {
|
|
1973
1973
|
name: "expandedRowRender",
|
|
1974
|
-
fn:
|
|
1975
|
-
W(
|
|
1974
|
+
fn: c(({ record: h, index: M }) => [
|
|
1975
|
+
W(g.$slots, "expandedRowRender", {
|
|
1976
1976
|
record: h,
|
|
1977
|
-
index:
|
|
1977
|
+
index: M
|
|
1978
1978
|
}, void 0, !0)
|
|
1979
1979
|
]),
|
|
1980
1980
|
key: "2"
|
|
1981
1981
|
} : void 0,
|
|
1982
|
-
|
|
1982
|
+
g.$slots.customFilterDropdown ? {
|
|
1983
1983
|
name: "customFilterDropdown",
|
|
1984
|
-
fn:
|
|
1985
|
-
W(
|
|
1984
|
+
fn: c(({ column: h }) => [
|
|
1985
|
+
W(g.$slots, "customFilterDropdown", { column: h }, void 0, !0)
|
|
1986
1986
|
]),
|
|
1987
1987
|
key: "3"
|
|
1988
1988
|
} : void 0,
|
|
1989
|
-
|
|
1989
|
+
g.$slots.customFilterIcon ? {
|
|
1990
1990
|
name: "customFilterIcon",
|
|
1991
|
-
fn:
|
|
1992
|
-
W(
|
|
1991
|
+
fn: c(({ column: h }) => [
|
|
1992
|
+
W(g.$slots, "customFilterIcon", { column: h }, void 0, !0)
|
|
1993
1993
|
]),
|
|
1994
1994
|
key: "4"
|
|
1995
1995
|
} : void 0,
|
|
1996
|
-
|
|
1996
|
+
g.$slots.expandIcon ? {
|
|
1997
1997
|
name: "expandIcon",
|
|
1998
|
-
fn:
|
|
1999
|
-
W(
|
|
1998
|
+
fn: c(({ expanded: h, record: M, index: V }) => [
|
|
1999
|
+
W(g.$slots, "expandIcon", {
|
|
2000
2000
|
expanded: h,
|
|
2001
|
-
record:
|
|
2001
|
+
record: M,
|
|
2002
2002
|
index: V
|
|
2003
2003
|
}, void 0, !0)
|
|
2004
2004
|
]),
|
|
2005
2005
|
key: "5"
|
|
2006
2006
|
} : void 0,
|
|
2007
|
-
|
|
2007
|
+
g.$slots.footer ? {
|
|
2008
2008
|
name: "footer",
|
|
2009
|
-
fn:
|
|
2010
|
-
W(
|
|
2009
|
+
fn: c(() => [
|
|
2010
|
+
W(g.$slots, "footer", {}, void 0, !0)
|
|
2011
2011
|
]),
|
|
2012
2012
|
key: "6"
|
|
2013
2013
|
} : void 0,
|
|
2014
|
-
|
|
2014
|
+
g.$slots.summary ? {
|
|
2015
2015
|
name: "summary",
|
|
2016
|
-
fn:
|
|
2017
|
-
W(
|
|
2016
|
+
fn: c(() => [
|
|
2017
|
+
W(g.$slots, "summary", {}, void 0, !0)
|
|
2018
2018
|
]),
|
|
2019
2019
|
key: "7"
|
|
2020
2020
|
} : void 0,
|
|
2021
|
-
|
|
2021
|
+
g.$slots.title ? {
|
|
2022
2022
|
name: "title",
|
|
2023
|
-
fn:
|
|
2024
|
-
W(
|
|
2023
|
+
fn: c(() => [
|
|
2024
|
+
W(g.$slots, "title", {}, void 0, !0)
|
|
2025
2025
|
]),
|
|
2026
2026
|
key: "8"
|
|
2027
2027
|
} : void 0
|
|
@@ -2029,16 +2029,16 @@ const Ol = {
|
|
|
2029
2029
|
], 6);
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
}), Rl = /* @__PURE__ */ Z(
|
|
2032
|
+
}), Rl = /* @__PURE__ */ Z(Pl, [["__scopeId", "data-v-4a8b9aaa"]]), Ul = oe(Rl), Vl = { class: "hb-lib-table-setting-box" }, jl = {
|
|
2033
2033
|
key: 0,
|
|
2034
2034
|
class: "hb-lib-table-drag-item"
|
|
2035
2035
|
}, Wl = {
|
|
2036
2036
|
key: 0,
|
|
2037
2037
|
class: "hb-lib-table-drag-item-act"
|
|
2038
|
-
}, Yl = ["onClick"], ql = ["onClick"], Kl = { class: "hb-lib-table-set-btn-group" },
|
|
2038
|
+
}, Yl = ["onClick"], ql = ["onClick"], Kl = { class: "hb-lib-table-set-btn-group" }, Gl = {
|
|
2039
2039
|
class: "select-all-container",
|
|
2040
2040
|
style: { "margin-right": "10px" }
|
|
2041
|
-
},
|
|
2041
|
+
}, Jl = /* @__PURE__ */ G({
|
|
2042
2042
|
name: "HbLibTableColumnSet",
|
|
2043
2043
|
__name: "HbTableColumnSet",
|
|
2044
2044
|
props: {
|
|
@@ -2071,98 +2071,98 @@ const Ol = {
|
|
|
2071
2071
|
},
|
|
2072
2072
|
emits: ["on-get-columns"],
|
|
2073
2073
|
setup(e, { emit: t }) {
|
|
2074
|
-
const o = t, { t: n } = de(),
|
|
2074
|
+
const o = t, { t: n } = de(), u = e, b = O([]), s = z(() => l.value.filter((y) => y.checked));
|
|
2075
2075
|
O([]);
|
|
2076
|
-
const
|
|
2077
|
-
a.value =
|
|
2078
|
-
}, D = (
|
|
2079
|
-
const
|
|
2080
|
-
if (
|
|
2081
|
-
const
|
|
2082
|
-
if ((
|
|
2083
|
-
const K = l.value.splice(
|
|
2076
|
+
const f = O(!1), l = O([]), a = O(null), m = z(() => s.value.length > 0 && s.value.length === b.value.length), C = z(() => s.value.length > 0 && s.value.length < b.value.length), p = (y) => {
|
|
2077
|
+
a.value = y.oldIndex;
|
|
2078
|
+
}, D = (y) => {
|
|
2079
|
+
const r = y.newIndex;
|
|
2080
|
+
if (b.value.some((M) => M.fixed === "left" || M.fixed === "right" || M.fixed === !0)) {
|
|
2081
|
+
const M = b.value.filter((K) => K.fixed === "left").length, V = b.value.length - b.value.filter((K) => K.fixed === "right").length;
|
|
2082
|
+
if ((M > 0 && r < M || V < b.value.length && r >= V) && (ke.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
2083
|
+
const K = l.value.splice(r, 1)[0];
|
|
2084
2084
|
l.value.splice(a.value, 0, K);
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
2087
|
a.value = null;
|
|
2088
|
-
},
|
|
2089
|
-
|
|
2088
|
+
}, A = (y) => {
|
|
2089
|
+
y.target.checked ? l.value.forEach((h) => h.checked = !0) : l.value.forEach((h) => {
|
|
2090
2090
|
h.dataIndex !== "action" && h.dataIndex !== "actions" && (h.checked = !1);
|
|
2091
2091
|
});
|
|
2092
|
-
},
|
|
2093
|
-
|
|
2094
|
-
...
|
|
2095
|
-
label:
|
|
2096
|
-
value:
|
|
2097
|
-
checked:
|
|
2098
|
-
})), l.value = [...
|
|
2099
|
-
let
|
|
2100
|
-
|
|
2101
|
-
|
|
2092
|
+
}, P = () => {
|
|
2093
|
+
b.value = u.localColumns.map((r) => ({
|
|
2094
|
+
...r,
|
|
2095
|
+
label: r.title && r.title.tag ? F(r.title) : r.title || r.title2,
|
|
2096
|
+
value: r.dataIndex,
|
|
2097
|
+
checked: r.checked || r.checked === void 0
|
|
2098
|
+
})), l.value = [...b.value];
|
|
2099
|
+
let y = [];
|
|
2100
|
+
u.tableColumns.forEach(function(r) {
|
|
2101
|
+
y.push(r.dataIndex);
|
|
2102
2102
|
});
|
|
2103
|
-
}, x = (
|
|
2104
|
-
|
|
2105
|
-
},
|
|
2106
|
-
|
|
2107
|
-
},
|
|
2108
|
-
|
|
2109
|
-
...
|
|
2110
|
-
label:
|
|
2111
|
-
value:
|
|
2112
|
-
checked:
|
|
2113
|
-
})), l.value = [...
|
|
2114
|
-
let
|
|
2115
|
-
|
|
2116
|
-
|
|
2103
|
+
}, x = (y, r) => {
|
|
2104
|
+
r ? y.checked = !0 : y.checked = !1;
|
|
2105
|
+
}, g = () => {
|
|
2106
|
+
b.value = [...l.value], o("on-get-columns", b.value), f.value = !1;
|
|
2107
|
+
}, T = () => {
|
|
2108
|
+
b.value = u.tableColumns.map((r) => ({
|
|
2109
|
+
...r,
|
|
2110
|
+
label: r.title && r.title.tag ? F(r.title) : r.title || r.title2,
|
|
2111
|
+
value: r.dataIndex,
|
|
2112
|
+
checked: r.checked || r.checked === void 0
|
|
2113
|
+
})), l.value = [...b.value];
|
|
2114
|
+
let y = [];
|
|
2115
|
+
u.tableColumns.forEach(function(r) {
|
|
2116
|
+
y.push(r.dataIndex);
|
|
2117
2117
|
});
|
|
2118
|
-
},
|
|
2119
|
-
delete
|
|
2120
|
-
const
|
|
2121
|
-
if (
|
|
2118
|
+
}, F = (y) => y.children[0].text, H = (y) => {
|
|
2119
|
+
delete y.fixed;
|
|
2120
|
+
const r = l.value.findIndex((h) => h.value === y.value);
|
|
2121
|
+
if (r !== -1) {
|
|
2122
2122
|
let h = -1;
|
|
2123
|
-
for (let
|
|
2124
|
-
l.value[
|
|
2125
|
-
if (h !== -1 &&
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2123
|
+
for (let M = 0; M < l.value.length; M++)
|
|
2124
|
+
l.value[M].fixed === "left" && (h = M);
|
|
2125
|
+
if (h !== -1 && r !== h + 1) {
|
|
2126
|
+
const M = [...l.value], [V] = M.splice(r, 1);
|
|
2127
|
+
M.splice(h + 1, 0, V), l.value = M;
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
|
-
}, k = (
|
|
2131
|
-
const
|
|
2132
|
-
if (
|
|
2130
|
+
}, k = (y) => {
|
|
2131
|
+
const r = l.value.findIndex((h) => h.value === y.value);
|
|
2132
|
+
if (r !== -1) {
|
|
2133
2133
|
let h = -1;
|
|
2134
2134
|
for (let se = 0; se < l.value.length; se++)
|
|
2135
2135
|
l.value[se].fixed === "left" && (h = se);
|
|
2136
|
-
const
|
|
2136
|
+
const M = [...l.value], [V] = M.splice(r, 1);
|
|
2137
2137
|
V.fixed = "left";
|
|
2138
2138
|
const K = h === -1 ? 0 : h + 1;
|
|
2139
|
-
|
|
2139
|
+
M.splice(K, 0, V), l.value = M;
|
|
2140
2140
|
}
|
|
2141
2141
|
};
|
|
2142
|
-
return
|
|
2143
|
-
() =>
|
|
2142
|
+
return te(
|
|
2143
|
+
() => u.tableColumns,
|
|
2144
2144
|
() => {
|
|
2145
|
-
|
|
2145
|
+
T();
|
|
2146
2146
|
},
|
|
2147
2147
|
{
|
|
2148
2148
|
immediate: !0,
|
|
2149
2149
|
deep: !0
|
|
2150
2150
|
}
|
|
2151
|
-
), (
|
|
2152
|
-
const h =
|
|
2153
|
-
return i(),
|
|
2154
|
-
w(
|
|
2155
|
-
title:
|
|
2151
|
+
), (y, r) => {
|
|
2152
|
+
const h = R("a-tooltip"), M = R("a-button");
|
|
2153
|
+
return i(), S("div", Vl, [
|
|
2154
|
+
w(_(Ut), {
|
|
2155
|
+
title: _(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2156
2156
|
trigger: "click",
|
|
2157
2157
|
placement: "leftTop",
|
|
2158
2158
|
overlayClassName: "column_setting_popover",
|
|
2159
|
-
visible:
|
|
2160
|
-
"onUpdate:visible":
|
|
2159
|
+
visible: f.value,
|
|
2160
|
+
"onUpdate:visible": r[1] || (r[1] = (V) => f.value = V)
|
|
2161
2161
|
}, {
|
|
2162
|
-
content:
|
|
2163
|
-
w(
|
|
2162
|
+
content: c(() => [
|
|
2163
|
+
w(_($e), {
|
|
2164
2164
|
modelValue: l.value,
|
|
2165
|
-
"onUpdate:modelValue":
|
|
2165
|
+
"onUpdate:modelValue": r[0] || (r[0] = (V) => l.value = V),
|
|
2166
2166
|
"item-key": "value",
|
|
2167
2167
|
class: "hb-lib-table-set-drag",
|
|
2168
2168
|
"ghost-class": "ghost",
|
|
@@ -2171,30 +2171,30 @@ const Ol = {
|
|
|
2171
2171
|
onStart: p,
|
|
2172
2172
|
onEnd: D
|
|
2173
2173
|
}, {
|
|
2174
|
-
item:
|
|
2175
|
-
V.fixed !== "right" ? (i(),
|
|
2176
|
-
w(
|
|
2174
|
+
item: c(({ element: V }) => [
|
|
2175
|
+
V.fixed !== "right" ? (i(), S("div", jl, [
|
|
2176
|
+
w(_(Me), {
|
|
2177
2177
|
checked: V.checked,
|
|
2178
2178
|
onChange: (K) => x(V, K.target.checked)
|
|
2179
2179
|
}, {
|
|
2180
|
-
default:
|
|
2180
|
+
default: c(() => [
|
|
2181
2181
|
B(L(V.label), 1)
|
|
2182
2182
|
]),
|
|
2183
2183
|
_: 2
|
|
2184
2184
|
}, 1032, ["checked", "onChange"]),
|
|
2185
|
-
V.checked ? (i(),
|
|
2185
|
+
V.checked ? (i(), S("section", Wl, [
|
|
2186
2186
|
d("span", {
|
|
2187
2187
|
class: Y(V.fixed ? "drag-hide" : "drag-handle")
|
|
2188
2188
|
}, "⋮⋮", 2),
|
|
2189
|
-
V.fixed ? (i(),
|
|
2190
|
-
title:
|
|
2191
|
-
B(L(
|
|
2189
|
+
V.fixed ? (i(), N(h, { key: 0 }, {
|
|
2190
|
+
title: c(() => [
|
|
2191
|
+
B(L(_(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2192
2192
|
]),
|
|
2193
|
-
default:
|
|
2193
|
+
default: c(() => [
|
|
2194
2194
|
d("span", {
|
|
2195
2195
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2196
2196
|
onClick: (K) => H(V)
|
|
2197
|
-
}, [...
|
|
2197
|
+
}, [...r[2] || (r[2] = [
|
|
2198
2198
|
d("svg", {
|
|
2199
2199
|
t: "1759048615600",
|
|
2200
2200
|
class: "icon",
|
|
@@ -2214,16 +2214,16 @@ const Ol = {
|
|
|
2214
2214
|
])], 8, Yl)
|
|
2215
2215
|
]),
|
|
2216
2216
|
_: 2
|
|
2217
|
-
}, 1024)) :
|
|
2218
|
-
V.fixed ?
|
|
2219
|
-
title:
|
|
2220
|
-
B(L(
|
|
2217
|
+
}, 1024)) : E("", !0),
|
|
2218
|
+
V.fixed ? E("", !0) : (i(), N(h, { key: 1 }, {
|
|
2219
|
+
title: c(() => [
|
|
2220
|
+
B(L(_(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2221
2221
|
]),
|
|
2222
|
-
default:
|
|
2222
|
+
default: c(() => [
|
|
2223
2223
|
d("span", {
|
|
2224
2224
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2225
2225
|
onClick: (K) => k(V)
|
|
2226
|
-
}, [...
|
|
2226
|
+
}, [...r[3] || (r[3] = [
|
|
2227
2227
|
d("svg", {
|
|
2228
2228
|
t: "1759048735643",
|
|
2229
2229
|
class: "icon",
|
|
@@ -2244,51 +2244,51 @@ const Ol = {
|
|
|
2244
2244
|
]),
|
|
2245
2245
|
_: 2
|
|
2246
2246
|
}, 1024))
|
|
2247
|
-
])) :
|
|
2248
|
-
])) :
|
|
2247
|
+
])) : E("", !0)
|
|
2248
|
+
])) : E("", !0)
|
|
2249
2249
|
]),
|
|
2250
2250
|
_: 1
|
|
2251
2251
|
}, 8, ["modelValue"]),
|
|
2252
2252
|
d("div", Kl, [
|
|
2253
|
-
d("div",
|
|
2254
|
-
w(
|
|
2253
|
+
d("div", Gl, [
|
|
2254
|
+
w(_(Me), {
|
|
2255
2255
|
checked: m.value,
|
|
2256
2256
|
indeterminate: C.value,
|
|
2257
|
-
onChange:
|
|
2257
|
+
onChange: A
|
|
2258
2258
|
}, {
|
|
2259
|
-
default:
|
|
2260
|
-
B(L(
|
|
2259
|
+
default: c(() => [
|
|
2260
|
+
B(L(_(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2261
2261
|
]),
|
|
2262
2262
|
_: 1
|
|
2263
2263
|
}, 8, ["checked", "indeterminate"])
|
|
2264
2264
|
]),
|
|
2265
|
-
|
|
2265
|
+
u.localColumns.length ? (i(), N(M, {
|
|
2266
2266
|
key: 0,
|
|
2267
2267
|
style: { "margin-right": "6px" },
|
|
2268
|
-
onClick:
|
|
2268
|
+
onClick: P
|
|
2269
2269
|
}, {
|
|
2270
|
-
default:
|
|
2271
|
-
B(L(
|
|
2270
|
+
default: c(() => [
|
|
2271
|
+
B(L(_(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2272
2272
|
]),
|
|
2273
2273
|
_: 1
|
|
2274
|
-
})) :
|
|
2275
|
-
w(
|
|
2276
|
-
onClick:
|
|
2274
|
+
})) : E("", !0),
|
|
2275
|
+
w(M, {
|
|
2276
|
+
onClick: g,
|
|
2277
2277
|
type: "primary"
|
|
2278
2278
|
}, {
|
|
2279
|
-
default:
|
|
2280
|
-
B(L(
|
|
2279
|
+
default: c(() => [
|
|
2280
|
+
B(L(_(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2281
2281
|
]),
|
|
2282
2282
|
_: 1
|
|
2283
2283
|
})
|
|
2284
2284
|
])
|
|
2285
2285
|
]),
|
|
2286
|
-
default:
|
|
2286
|
+
default: c(() => [
|
|
2287
2287
|
w(h, {
|
|
2288
|
-
title:
|
|
2288
|
+
title: _(n)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2289
2289
|
placement: "leftTop"
|
|
2290
2290
|
}, {
|
|
2291
|
-
default:
|
|
2291
|
+
default: c(() => [...r[4] || (r[4] = [
|
|
2292
2292
|
d("span", { class: "hb-lib-table-col-set" }, [
|
|
2293
2293
|
d("svg", {
|
|
2294
2294
|
t: "1759041858618",
|
|
@@ -2321,11 +2321,11 @@ const Ol = {
|
|
|
2321
2321
|
]);
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
|
-
}), Ql = /* @__PURE__ */ Z(
|
|
2324
|
+
}), Ql = /* @__PURE__ */ Z(Jl, [["__scopeId", "data-v-07a63550"]]), Zl = oe(Ql), Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2325
2325
|
__proto__: null,
|
|
2326
2326
|
HbLibFormItemFilterModal: ro,
|
|
2327
2327
|
HbLibListBtnsAct: xo,
|
|
2328
|
-
HbLibListForm:
|
|
2328
|
+
HbLibListForm: fo,
|
|
2329
2329
|
HbLibListMultiSelect: Yo,
|
|
2330
2330
|
HbLibListPageAct: Lo,
|
|
2331
2331
|
HbLibListPageContainer: $o,
|
|
@@ -2333,7 +2333,7 @@ const Ol = {
|
|
|
2333
2333
|
HbLibMutilpleSelectModal: Qo,
|
|
2334
2334
|
HbLibTableAct: cl,
|
|
2335
2335
|
HbLibTableColumnSet: Zl
|
|
2336
|
-
}, Symbol.toStringTag, { value: "Module" })), ea = /* @__PURE__ */
|
|
2336
|
+
}, Symbol.toStringTag, { value: "Module" })), ea = /* @__PURE__ */ G({
|
|
2337
2337
|
name: "HbLibFormTooltipSelect",
|
|
2338
2338
|
inheritAttrs: !1,
|
|
2339
2339
|
__name: "HbTooltipSelect",
|
|
@@ -2351,51 +2351,51 @@ const Ol = {
|
|
|
2351
2351
|
}),
|
|
2352
2352
|
emits: ["update:value"],
|
|
2353
2353
|
setup(e, { expose: t }) {
|
|
2354
|
-
const o = e, n = Ot(),
|
|
2355
|
-
const
|
|
2354
|
+
const o = e, n = Ot(), u = z(() => {
|
|
2355
|
+
const A = n, P = A.dropdownClassName;
|
|
2356
2356
|
return {
|
|
2357
|
-
...
|
|
2358
|
-
dropdownClassName:
|
|
2357
|
+
...A,
|
|
2358
|
+
dropdownClassName: P ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2359
2359
|
};
|
|
2360
|
-
}),
|
|
2360
|
+
}), b = O(), s = kt(e, "value"), f = z(() => o.options ?? []), l = z(() => ({
|
|
2361
2361
|
maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
|
|
2362
|
-
})), a = (
|
|
2362
|
+
})), a = (A) => A.tooltip ?? A.label, m = (A) => A.key ?? A.label, C = (A) => !!(o.enableTooltip && a(A));
|
|
2363
2363
|
return t({
|
|
2364
2364
|
focus: () => {
|
|
2365
|
-
|
|
2365
|
+
b.value?.focus?.();
|
|
2366
2366
|
},
|
|
2367
2367
|
blur: () => {
|
|
2368
|
-
|
|
2368
|
+
b.value?.blur?.();
|
|
2369
2369
|
},
|
|
2370
|
-
selectRef:
|
|
2371
|
-
}), (
|
|
2370
|
+
selectRef: b
|
|
2371
|
+
}), (A, P) => (i(), N(_(Ye), ee({
|
|
2372
2372
|
ref_key: "selectRef",
|
|
2373
|
-
ref:
|
|
2373
|
+
ref: b,
|
|
2374
2374
|
class: "hb_lib_form_tooltip_select"
|
|
2375
|
-
},
|
|
2376
|
-
value:
|
|
2377
|
-
"onUpdate:value":
|
|
2375
|
+
}, u.value, {
|
|
2376
|
+
value: s.value,
|
|
2377
|
+
"onUpdate:value": P[0] || (P[0] = (x) => s.value = x)
|
|
2378
2378
|
}), {
|
|
2379
|
-
default:
|
|
2380
|
-
|
|
2379
|
+
default: c(() => [
|
|
2380
|
+
A.$slots.default ? W(A.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), S(q, { key: 1 }, ie(f.value, (x) => (i(), N(_(qe), ee({
|
|
2381
2381
|
key: m(x),
|
|
2382
2382
|
value: x.value,
|
|
2383
2383
|
disabled: x.disabled
|
|
2384
2384
|
}, { ref_for: !0 }, x.optionProps), {
|
|
2385
|
-
default:
|
|
2386
|
-
C(x) ? (i(),
|
|
2385
|
+
default: c(() => [
|
|
2386
|
+
C(x) ? (i(), N(_(Ie), {
|
|
2387
2387
|
key: 0,
|
|
2388
2388
|
title: a(x),
|
|
2389
2389
|
placement: o.tooltipPlacement,
|
|
2390
2390
|
overlayStyle: l.value
|
|
2391
2391
|
}, {
|
|
2392
|
-
default:
|
|
2392
|
+
default: c(() => [
|
|
2393
2393
|
d("span", {
|
|
2394
2394
|
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
|
|
2395
2395
|
}, L(x.label), 3)
|
|
2396
2396
|
]),
|
|
2397
2397
|
_: 2
|
|
2398
|
-
}, 1032, ["title", "placement", "overlayStyle"])) : (i(),
|
|
2398
|
+
}, 1032, ["title", "placement", "overlayStyle"])) : (i(), S("span", {
|
|
2399
2399
|
key: 1,
|
|
2400
2400
|
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
|
|
2401
2401
|
}, L(x.label), 3))
|
|
@@ -2406,13 +2406,13 @@ const Ol = {
|
|
|
2406
2406
|
_: 3
|
|
2407
2407
|
}, 16, ["value"]));
|
|
2408
2408
|
}
|
|
2409
|
-
}), ta = /* @__PURE__ */ Z(ea, [["__scopeId", "data-v-b04f5675"]]), oa =
|
|
2409
|
+
}), ta = /* @__PURE__ */ Z(ea, [["__scopeId", "data-v-b04f5675"]]), oa = oe(ta), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2410
2410
|
__proto__: null,
|
|
2411
2411
|
HbLibFormTooltipSelect: oa
|
|
2412
2412
|
}, Symbol.toStringTag, { value: "Module" })), aa = { class: "ant-upload-drag-icon" }, na = { class: "ant-upload-text" }, ia = { style: { color: "#ff5000" } }, sa = { class: "ant-upload-hint" }, ra = {
|
|
2413
2413
|
key: 0,
|
|
2414
2414
|
class: "hb_import_btn"
|
|
2415
|
-
}, ca = ["href"], da = /* @__PURE__ */
|
|
2415
|
+
}, ca = ["href"], da = /* @__PURE__ */ G({
|
|
2416
2416
|
name: "HbLibImportFile",
|
|
2417
2417
|
__name: "HbImportFile",
|
|
2418
2418
|
props: {
|
|
@@ -2428,78 +2428,78 @@ const Ol = {
|
|
|
2428
2428
|
beforeSubmit: {}
|
|
2429
2429
|
},
|
|
2430
2430
|
setup(e, { expose: t }) {
|
|
2431
|
-
const { t: o } = de(), n = O(),
|
|
2431
|
+
const { t: o } = de(), n = O(), u = e, b = O(!1), s = Se({
|
|
2432
2432
|
fileList: [],
|
|
2433
2433
|
visible: !1
|
|
2434
|
-
}),
|
|
2434
|
+
}), f = (p) => {
|
|
2435
2435
|
if (p == null)
|
|
2436
2436
|
return;
|
|
2437
|
-
const D =
|
|
2437
|
+
const D = s.fileList.indexOf(p);
|
|
2438
2438
|
if (D !== -1) {
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2439
|
+
const A = s.fileList.slice();
|
|
2440
|
+
A.splice(D, 1), s.fileList = A;
|
|
2441
2441
|
}
|
|
2442
2442
|
}, l = () => {
|
|
2443
|
-
|
|
2444
|
-
}, a = (p) => (
|
|
2443
|
+
s.visible = !1, s.fileList = [], b.value = !1;
|
|
2444
|
+
}, a = (p) => (s.fileList = [p], u.beforeUpload ? u.beforeUpload(p) : !1), m = () => {
|
|
2445
2445
|
n.value.validateFields().then(() => {
|
|
2446
|
-
|
|
2446
|
+
u.beforeSubmit && (b.value = !0, u.beforeSubmit(s.fileList).then((p) => {
|
|
2447
2447
|
}).finally(() => {
|
|
2448
|
-
|
|
2448
|
+
b.value = !1;
|
|
2449
2449
|
}));
|
|
2450
2450
|
});
|
|
2451
2451
|
}, C = () => {
|
|
2452
|
-
|
|
2452
|
+
s.visible = !0;
|
|
2453
2453
|
};
|
|
2454
2454
|
return t({
|
|
2455
2455
|
handleCancel: l,
|
|
2456
2456
|
openModal: C,
|
|
2457
2457
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2458
|
-
confirmLoading:
|
|
2458
|
+
confirmLoading: b
|
|
2459
2459
|
}), (p, D) => {
|
|
2460
|
-
const
|
|
2461
|
-
return i(),
|
|
2462
|
-
w(
|
|
2463
|
-
title:
|
|
2464
|
-
visible:
|
|
2465
|
-
"onUpdate:visible": D[0] || (D[0] = (
|
|
2466
|
-
"confirm-loading":
|
|
2460
|
+
const A = R("a-upload-dragger"), P = R("a-form-item"), x = R("a-form"), g = R("a-modal"), T = R("a-button");
|
|
2461
|
+
return i(), S(q, null, [
|
|
2462
|
+
w(g, ee({
|
|
2463
|
+
title: u.title,
|
|
2464
|
+
visible: s.visible,
|
|
2465
|
+
"onUpdate:visible": D[0] || (D[0] = (F) => s.visible = F),
|
|
2466
|
+
"confirm-loading": b.value
|
|
2467
2467
|
}, p.$attrs, {
|
|
2468
2468
|
onCancel: l,
|
|
2469
2469
|
onOk: m,
|
|
2470
|
-
width:
|
|
2470
|
+
width: u.modalWidth
|
|
2471
2471
|
}), {
|
|
2472
|
-
default:
|
|
2472
|
+
default: c(() => [
|
|
2473
2473
|
w(x, {
|
|
2474
2474
|
ref_key: "modalFormRef",
|
|
2475
2475
|
ref: n,
|
|
2476
|
-
model:
|
|
2476
|
+
model: s
|
|
2477
2477
|
}, {
|
|
2478
|
-
default:
|
|
2479
|
-
w(
|
|
2478
|
+
default: c(() => [
|
|
2479
|
+
w(P, {
|
|
2480
2480
|
name: "fileList",
|
|
2481
|
-
label:
|
|
2482
|
-
rules: [{ required:
|
|
2481
|
+
label: _(o)("hbLibComp.HbImportFile.fileLabel"),
|
|
2482
|
+
rules: [{ required: u.isRequired, message: _(o)("hbLibComp.HbImportFile.clickUp") }]
|
|
2483
2483
|
}, {
|
|
2484
|
-
default:
|
|
2485
|
-
w(
|
|
2486
|
-
maxCount:
|
|
2487
|
-
multiple:
|
|
2488
|
-
accept:
|
|
2484
|
+
default: c(() => [
|
|
2485
|
+
w(A, {
|
|
2486
|
+
maxCount: u.maxCount,
|
|
2487
|
+
multiple: u.multiple,
|
|
2488
|
+
accept: u.acceptFile,
|
|
2489
2489
|
name: "file",
|
|
2490
|
-
fileList:
|
|
2491
|
-
onRemove:
|
|
2490
|
+
fileList: s.fileList,
|
|
2491
|
+
onRemove: f,
|
|
2492
2492
|
beforeUpload: a
|
|
2493
2493
|
}, {
|
|
2494
|
-
default:
|
|
2494
|
+
default: c(() => [
|
|
2495
2495
|
d("p", aa, [
|
|
2496
|
-
w(
|
|
2496
|
+
w(_(Jt), { style: { "font-size": "37px" } })
|
|
2497
2497
|
]),
|
|
2498
2498
|
d("p", na, [
|
|
2499
|
-
B(L(
|
|
2500
|
-
d("span", ia, L(
|
|
2499
|
+
B(L(_(o)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2500
|
+
d("span", ia, L(_(o)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2501
2501
|
]),
|
|
2502
|
-
d("p", sa, L(
|
|
2502
|
+
d("p", sa, L(_(o)("hbLibComp.HbFileUploadModal.format")) + ": " + L(u.acceptFile), 1)
|
|
2503
2503
|
]),
|
|
2504
2504
|
_: 1
|
|
2505
2505
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2509,21 +2509,21 @@ const Ol = {
|
|
|
2509
2509
|
]),
|
|
2510
2510
|
_: 1
|
|
2511
2511
|
}, 8, ["model"]),
|
|
2512
|
-
|
|
2512
|
+
u.templateUrl ? (i(), S("p", ra, [
|
|
2513
2513
|
d("a", {
|
|
2514
2514
|
download: "Import_number-template.xlsx",
|
|
2515
|
-
href:
|
|
2516
|
-
}, L(
|
|
2517
|
-
])) :
|
|
2515
|
+
href: u.templateUrl
|
|
2516
|
+
}, L(_(o)("hbLibComp.HbImportFile.downloadTemplate")), 9, ca)
|
|
2517
|
+
])) : E("", !0)
|
|
2518
2518
|
]),
|
|
2519
2519
|
_: 1
|
|
2520
2520
|
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2521
2521
|
W(p.$slots, "btn", {}, () => [
|
|
2522
|
-
w(
|
|
2522
|
+
w(T, {
|
|
2523
2523
|
onClick: C,
|
|
2524
2524
|
type: "primary"
|
|
2525
2525
|
}, {
|
|
2526
|
-
default:
|
|
2526
|
+
default: c(() => [
|
|
2527
2527
|
B(L(e.btnText), 1)
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 1
|
|
@@ -2532,9 +2532,9 @@ const Ol = {
|
|
|
2532
2532
|
], 64);
|
|
2533
2533
|
};
|
|
2534
2534
|
}
|
|
2535
|
-
}), ua = /* @__PURE__ */ Z(da, [["__scopeId", "data-v-d61501db"]]),
|
|
2535
|
+
}), ua = /* @__PURE__ */ Z(da, [["__scopeId", "data-v-d61501db"]]), ba = oe(ua), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2536
2536
|
__proto__: null,
|
|
2537
|
-
HbLibImportFile:
|
|
2537
|
+
HbLibImportFile: ba
|
|
2538
2538
|
}, Symbol.toStringTag, { value: "Module" })), pa = {
|
|
2539
2539
|
// 如果存在cpText时,K和V无效
|
|
2540
2540
|
cpText: {
|
|
@@ -2580,7 +2580,7 @@ const Ol = {
|
|
|
2580
2580
|
type: String,
|
|
2581
2581
|
default: "ab"
|
|
2582
2582
|
}
|
|
2583
|
-
}, ha = /* @__PURE__ */
|
|
2583
|
+
}, ha = /* @__PURE__ */ G({
|
|
2584
2584
|
name: "HbLibCopy",
|
|
2585
2585
|
__name: "copy",
|
|
2586
2586
|
props: pa,
|
|
@@ -2589,7 +2589,7 @@ const Ol = {
|
|
|
2589
2589
|
Tt(() => {
|
|
2590
2590
|
o.value = t.data;
|
|
2591
2591
|
});
|
|
2592
|
-
const n =
|
|
2592
|
+
const n = z(() => t.tooltipTitle || "复制"), u = z(() => t.copySuccessTip || "复制成功"), b = z(() => t.copyFailTip || "复制失败"), s = z(() => {
|
|
2593
2593
|
if (t.cpText) return t.cpText;
|
|
2594
2594
|
let l = "";
|
|
2595
2595
|
if (t.data)
|
|
@@ -2601,22 +2601,22 @@ const Ol = {
|
|
|
2601
2601
|
} else
|
|
2602
2602
|
t.K && (l = t.data[t.K]);
|
|
2603
2603
|
return l;
|
|
2604
|
-
}),
|
|
2605
|
-
navigator.clipboard.writeText(
|
|
2606
|
-
ke.success(
|
|
2604
|
+
}), f = () => {
|
|
2605
|
+
navigator.clipboard.writeText(s.value).then(() => {
|
|
2606
|
+
ke.success(u.value);
|
|
2607
2607
|
}).catch(() => {
|
|
2608
|
-
ke.error(
|
|
2608
|
+
ke.error(b.value);
|
|
2609
2609
|
});
|
|
2610
2610
|
};
|
|
2611
|
-
return (l, a) =>
|
|
2611
|
+
return (l, a) => s.value ? (i(), N(_(Ie), {
|
|
2612
2612
|
key: 0,
|
|
2613
2613
|
title: n.value
|
|
2614
2614
|
}, {
|
|
2615
|
-
default:
|
|
2615
|
+
default: c(() => [
|
|
2616
2616
|
d("span", {
|
|
2617
2617
|
class: "hb-lib-copy-text-eyevue",
|
|
2618
2618
|
style: re({ ...l.cpStyle }),
|
|
2619
|
-
onClick: Fe(
|
|
2619
|
+
onClick: Fe(f, ["stop", "prevent"])
|
|
2620
2620
|
}, [...a[0] || (a[0] = [
|
|
2621
2621
|
d("svg", {
|
|
2622
2622
|
t: "1766643849597",
|
|
@@ -2647,9 +2647,9 @@ const Ol = {
|
|
|
2647
2647
|
])], 4)
|
|
2648
2648
|
]),
|
|
2649
2649
|
_: 1
|
|
2650
|
-
}, 8, ["title"])) :
|
|
2650
|
+
}, 8, ["title"])) : E("", !0);
|
|
2651
2651
|
}
|
|
2652
|
-
}), ma = /* @__PURE__ */ Z(ha, [["__scopeId", "data-v-2b6710a1"]]), Mt =
|
|
2652
|
+
}), ma = /* @__PURE__ */ Z(ha, [["__scopeId", "data-v-2b6710a1"]]), Mt = oe(ma), va = {
|
|
2653
2653
|
dragList: {
|
|
2654
2654
|
type: Array,
|
|
2655
2655
|
required: !0
|
|
@@ -2688,14 +2688,14 @@ const Ol = {
|
|
|
2688
2688
|
type: String,
|
|
2689
2689
|
default: ""
|
|
2690
2690
|
}
|
|
2691
|
-
}, ga = /* @__PURE__ */
|
|
2691
|
+
}, ga = /* @__PURE__ */ G({
|
|
2692
2692
|
name: "HbDrag",
|
|
2693
2693
|
__name: "index",
|
|
2694
2694
|
props: va,
|
|
2695
2695
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2696
2696
|
setup(e, { emit: t }) {
|
|
2697
2697
|
const o = e, n = zt([]);
|
|
2698
|
-
|
|
2698
|
+
te(
|
|
2699
2699
|
() => o.dragList,
|
|
2700
2700
|
(m) => {
|
|
2701
2701
|
n.value = m;
|
|
@@ -2705,19 +2705,19 @@ const Ol = {
|
|
|
2705
2705
|
immediate: !0
|
|
2706
2706
|
}
|
|
2707
2707
|
);
|
|
2708
|
-
const
|
|
2709
|
-
console.log("drag start", m),
|
|
2710
|
-
},
|
|
2711
|
-
console.log("drag end", m),
|
|
2708
|
+
const u = Ze("drag"), b = t, s = (m) => {
|
|
2709
|
+
console.log("drag start", m), b("handleDragStart", m);
|
|
2710
|
+
}, f = (m) => {
|
|
2711
|
+
console.log("drag end", m), b("handleDragEnd", m);
|
|
2712
2712
|
}, l = (m) => {
|
|
2713
|
-
console.log("drag add", m),
|
|
2713
|
+
console.log("drag add", m), b("handleDragAdd", m);
|
|
2714
2714
|
}, a = (m) => {
|
|
2715
|
-
console.log("drag remove", m),
|
|
2715
|
+
console.log("drag remove", m), b("handleDragRemove", m);
|
|
2716
2716
|
};
|
|
2717
|
-
return (m, C) => (i(),
|
|
2718
|
-
class: Y(
|
|
2717
|
+
return (m, C) => (i(), S("div", {
|
|
2718
|
+
class: Y(_(u).b())
|
|
2719
2719
|
}, [
|
|
2720
|
-
m.childrenType == "component" ? (i(),
|
|
2720
|
+
m.childrenType == "component" ? (i(), N(_($e), ee({
|
|
2721
2721
|
key: 0,
|
|
2722
2722
|
modelValue: n.value,
|
|
2723
2723
|
"onUpdate:modelValue": C[0] || (C[0] = (p) => n.value = p),
|
|
@@ -2725,16 +2725,16 @@ const Ol = {
|
|
|
2725
2725
|
class: { [m.dragClass]: m.dragClass }
|
|
2726
2726
|
}, m.$attrs, {
|
|
2727
2727
|
"ghost-class": m.ghostClass,
|
|
2728
|
-
onStart:
|
|
2729
|
-
onEnd:
|
|
2728
|
+
onStart: s,
|
|
2729
|
+
onEnd: f,
|
|
2730
2730
|
onAdd: l,
|
|
2731
2731
|
onRemove: a
|
|
2732
2732
|
}), {
|
|
2733
|
-
item:
|
|
2734
|
-
(i(),
|
|
2733
|
+
item: c(({ element: p }) => [
|
|
2734
|
+
(i(), N(wt(p.component)))
|
|
2735
2735
|
]),
|
|
2736
2736
|
_: 1
|
|
2737
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (i(),
|
|
2737
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), N(_($e), ee({
|
|
2738
2738
|
key: 1,
|
|
2739
2739
|
modelValue: n.value,
|
|
2740
2740
|
"onUpdate:modelValue": C[1] || (C[1] = (p) => n.value = p),
|
|
@@ -2742,12 +2742,12 @@ const Ol = {
|
|
|
2742
2742
|
class: { [m.dragClass]: m.dragClass }
|
|
2743
2743
|
}, m.$attrs, {
|
|
2744
2744
|
"ghost-class": m.ghostClass,
|
|
2745
|
-
onStart:
|
|
2746
|
-
onEnd:
|
|
2745
|
+
onStart: s,
|
|
2746
|
+
onEnd: f,
|
|
2747
2747
|
onAdd: l,
|
|
2748
2748
|
onRemove: a
|
|
2749
2749
|
}), {
|
|
2750
|
-
item:
|
|
2750
|
+
item: c(({ element: p }) => [
|
|
2751
2751
|
d("div", null, [
|
|
2752
2752
|
W(m.$slots, "default", { item: p }, void 0, !0)
|
|
2753
2753
|
])
|
|
@@ -2756,7 +2756,7 @@ const Ol = {
|
|
|
2756
2756
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2757
2757
|
], 2));
|
|
2758
2758
|
}
|
|
2759
|
-
}), ya = /* @__PURE__ */ Z(ga, [["__scopeId", "data-v-15b227f5"]]), _a =
|
|
2759
|
+
}), ya = /* @__PURE__ */ Z(ga, [["__scopeId", "data-v-15b227f5"]]), _a = oe(ya), La = {
|
|
2760
2760
|
triggerWay: {
|
|
2761
2761
|
type: String,
|
|
2762
2762
|
default: "click"
|
|
@@ -2772,14 +2772,14 @@ const Ol = {
|
|
|
2772
2772
|
getSort: {
|
|
2773
2773
|
type: Function
|
|
2774
2774
|
}
|
|
2775
|
-
}, Ca = /* @__PURE__ */
|
|
2775
|
+
}, Ca = /* @__PURE__ */ G({
|
|
2776
2776
|
name: "HbLibSort",
|
|
2777
2777
|
__name: "sort",
|
|
2778
2778
|
props: La,
|
|
2779
2779
|
emits: ["change"],
|
|
2780
2780
|
setup(e, { expose: t, emit: o }) {
|
|
2781
|
-
const n = e,
|
|
2782
|
-
|
|
2781
|
+
const n = e, u = o, b = O([]), s = O("");
|
|
2782
|
+
te(
|
|
2783
2783
|
() => n.menuItems,
|
|
2784
2784
|
(l) => {
|
|
2785
2785
|
let a = [];
|
|
@@ -2789,36 +2789,36 @@ const Ol = {
|
|
|
2789
2789
|
{ label: `${m.label}升序`, value: `${m.value}`, sort: "Asc" },
|
|
2790
2790
|
{ label: `${m.label}降序`, value: `${m.value}`, sort: "Desc" }
|
|
2791
2791
|
];
|
|
2792
|
-
}),
|
|
2792
|
+
}), b.value = a;
|
|
2793
2793
|
},
|
|
2794
2794
|
{
|
|
2795
2795
|
deep: !0,
|
|
2796
2796
|
immediate: !0
|
|
2797
2797
|
}
|
|
2798
2798
|
);
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2799
|
+
const f = (l) => {
|
|
2800
|
+
s.value = l.value + l.sort, n.getSort && n.getSort({
|
|
2801
2801
|
orderFeild: l.value,
|
|
2802
2802
|
orderBy: l.sort
|
|
2803
|
-
}),
|
|
2803
|
+
}), u("change", s);
|
|
2804
2804
|
};
|
|
2805
2805
|
return t({
|
|
2806
|
-
currentActiveItem:
|
|
2806
|
+
currentActiveItem: s
|
|
2807
2807
|
}), (l, a) => {
|
|
2808
|
-
const m =
|
|
2809
|
-
return i(),
|
|
2808
|
+
const m = R("a-menu-item"), C = R("a-menu"), p = R("a-dropdown");
|
|
2809
|
+
return i(), N(p, {
|
|
2810
2810
|
trigger: [n.triggerWay]
|
|
2811
2811
|
}, {
|
|
2812
|
-
overlay:
|
|
2812
|
+
overlay: c(() => [
|
|
2813
2813
|
w(C, null, {
|
|
2814
|
-
default:
|
|
2815
|
-
(i(!0),
|
|
2814
|
+
default: c(() => [
|
|
2815
|
+
(i(!0), S(q, null, ie(b.value, (D) => (i(), N(m, {
|
|
2816
2816
|
key: D.value + D.sort,
|
|
2817
|
-
onClick: (
|
|
2817
|
+
onClick: (A) => f(D)
|
|
2818
2818
|
}, {
|
|
2819
|
-
default:
|
|
2819
|
+
default: c(() => [
|
|
2820
2820
|
d("span", {
|
|
2821
|
-
class: Y(
|
|
2821
|
+
class: Y(s.value == D.value + D.sort ? "activted" : "")
|
|
2822
2822
|
}, L(D.label), 3)
|
|
2823
2823
|
]),
|
|
2824
2824
|
_: 2
|
|
@@ -2827,21 +2827,21 @@ const Ol = {
|
|
|
2827
2827
|
_: 1
|
|
2828
2828
|
})
|
|
2829
2829
|
]),
|
|
2830
|
-
default:
|
|
2830
|
+
default: c(() => [
|
|
2831
2831
|
d("span", {
|
|
2832
2832
|
class: "ant-dropdown-link",
|
|
2833
2833
|
onClick: a[0] || (a[0] = Fe(() => {
|
|
2834
2834
|
}, ["prevent"]))
|
|
2835
2835
|
}, [
|
|
2836
2836
|
B(L(n.colText) + " ", 1),
|
|
2837
|
-
w(
|
|
2837
|
+
w(_(Ke))
|
|
2838
2838
|
])
|
|
2839
2839
|
]),
|
|
2840
2840
|
_: 1
|
|
2841
2841
|
}, 8, ["trigger"]);
|
|
2842
2842
|
};
|
|
2843
2843
|
}
|
|
2844
|
-
}), ka = /* @__PURE__ */ Z(Ca, [["__scopeId", "data-v-cf0b0a0d"]]), Sa =
|
|
2844
|
+
}), ka = /* @__PURE__ */ Z(Ca, [["__scopeId", "data-v-cf0b0a0d"]]), Sa = oe(ka), Ta = {
|
|
2845
2845
|
// 图片上传组件的配置
|
|
2846
2846
|
importFile: {
|
|
2847
2847
|
isRequired: !1,
|
|
@@ -2873,13 +2873,17 @@ const Ol = {
|
|
|
2873
2873
|
descValueWidth: 200,
|
|
2874
2874
|
needSetDesDefault: !1,
|
|
2875
2875
|
desDefault: "-",
|
|
2876
|
-
setDefaultValueTimeOut: 600
|
|
2876
|
+
setDefaultValueTimeOut: 600,
|
|
2877
|
+
backTopBottom: 150
|
|
2878
|
+
},
|
|
2879
|
+
HbLibUnDetailBox: {
|
|
2880
|
+
backTopBottom: 150
|
|
2877
2881
|
},
|
|
2878
2882
|
HbLibCard: {
|
|
2879
2883
|
// 表单距离底部的距离
|
|
2880
2884
|
formItemMb: 10
|
|
2881
2885
|
}
|
|
2882
|
-
}, wa = { class: "hb_ui_config" }, xa = /* @__PURE__ */
|
|
2886
|
+
}, wa = { class: "hb_ui_config" }, xa = /* @__PURE__ */ G({
|
|
2883
2887
|
name: "HbUiConfig",
|
|
2884
2888
|
__name: "hbUiConfig",
|
|
2885
2889
|
props: {
|
|
@@ -2888,17 +2892,17 @@ const Ol = {
|
|
|
2888
2892
|
setup(e) {
|
|
2889
2893
|
const t = e;
|
|
2890
2894
|
let o = null;
|
|
2891
|
-
return
|
|
2895
|
+
return te(
|
|
2892
2896
|
() => t.config,
|
|
2893
2897
|
(n) => {
|
|
2894
2898
|
o = Se(jt({}, Ta, n));
|
|
2895
2899
|
},
|
|
2896
2900
|
{ deep: !0, immediate: !0 }
|
|
2897
|
-
), Ct(Xe, o), (n,
|
|
2901
|
+
), Ct(Xe, o), (n, u) => (i(), S("div", wa, [
|
|
2898
2902
|
W(n.$slots, "default")
|
|
2899
2903
|
]));
|
|
2900
2904
|
}
|
|
2901
|
-
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), Ha =
|
|
2905
|
+
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), Ha = oe(xa), Fa = { class: "hb_lib_loading" }, $a = { class: "hb_lib_loading_loading_anima" }, Ia = { class: "hb_lib_loading_load_tips" }, Ma = /* @__PURE__ */ G({
|
|
2902
2906
|
name: "HbLibLoading",
|
|
2903
2907
|
__name: "loading",
|
|
2904
2908
|
props: {
|
|
@@ -2908,22 +2912,22 @@ const Ol = {
|
|
|
2908
2912
|
}
|
|
2909
2913
|
},
|
|
2910
2914
|
setup(e) {
|
|
2911
|
-
const { t } = de(), o = e, n =
|
|
2912
|
-
return (
|
|
2915
|
+
const { t } = de(), o = e, n = z(() => o.loadTips || t("hbLibComp.HbLibLoading.loadingTips"));
|
|
2916
|
+
return (u, b) => (i(), S("div", Fa, [
|
|
2913
2917
|
d("div", $a, [
|
|
2914
|
-
|
|
2918
|
+
b[0] || (b[0] = Et('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
|
|
2915
2919
|
d("div", Ia, L(n.value), 1)
|
|
2916
2920
|
])
|
|
2917
2921
|
]));
|
|
2918
2922
|
}
|
|
2919
|
-
}), Da = /* @__PURE__ */ Z(Ma, [["__scopeId", "data-v-22f438b9"]]),
|
|
2923
|
+
}), Da = /* @__PURE__ */ Z(Ma, [["__scopeId", "data-v-22f438b9"]]), Ba = oe(Da), Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2920
2924
|
__proto__: null,
|
|
2921
2925
|
HbLibCopy: Mt,
|
|
2922
2926
|
HbLibFuncCompDrag: _a,
|
|
2923
|
-
HbLibLoading:
|
|
2927
|
+
HbLibLoading: Ba,
|
|
2924
2928
|
HbLibSort: Sa,
|
|
2925
2929
|
HbUiConfig: Ha
|
|
2926
|
-
}, Symbol.toStringTag, { value: "Module" })), Oa = { class: "hb_lib_log_modal_content" }, za = { class: "log_remark" }, Ea = /* @__PURE__ */
|
|
2930
|
+
}, Symbol.toStringTag, { value: "Module" })), Oa = { class: "hb_lib_log_modal_content" }, za = { class: "log_remark" }, Ea = /* @__PURE__ */ G({
|
|
2927
2931
|
name: "HbLibLogModal",
|
|
2928
2932
|
__name: "HbLogModal",
|
|
2929
2933
|
props: {
|
|
@@ -2939,11 +2943,13 @@ const Ol = {
|
|
|
2939
2943
|
columns: { default: void 0 },
|
|
2940
2944
|
logBtnText: { default: "查看日志" },
|
|
2941
2945
|
pagination: {},
|
|
2946
|
+
modalStyle: {},
|
|
2947
|
+
bodyStyle: {},
|
|
2942
2948
|
getLogData: {}
|
|
2943
2949
|
},
|
|
2944
2950
|
emits: ["update:visible"],
|
|
2945
2951
|
setup(e, { expose: t, emit: o }) {
|
|
2946
|
-
const { t: n } = de(),
|
|
2952
|
+
const { t: n } = de(), u = e, b = [
|
|
2947
2953
|
{
|
|
2948
2954
|
title: n("hbLibComp.HbLogModal.operator"),
|
|
2949
2955
|
dataIndex: "userName",
|
|
@@ -2955,7 +2961,7 @@ const Ol = {
|
|
|
2955
2961
|
width: "25%"
|
|
2956
2962
|
},
|
|
2957
2963
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2958
|
-
],
|
|
2964
|
+
], s = z(() => u.columns || b), f = z(() => u.title || n("hbLibComp.HbLogModal.operateLogs")), l = O(!1), a = Se({
|
|
2959
2965
|
list: [],
|
|
2960
2966
|
pagination: {
|
|
2961
2967
|
current: 1,
|
|
@@ -2963,12 +2969,12 @@ const Ol = {
|
|
|
2963
2969
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2964
2970
|
showQuickJumper: !0,
|
|
2965
2971
|
showSizeChanger: !0,
|
|
2966
|
-
showTotal: (x,
|
|
2972
|
+
showTotal: (x, g) => g[0] + "-" + g[1] + " 总共" + x + "页",
|
|
2967
2973
|
total: 0
|
|
2968
2974
|
}
|
|
2969
2975
|
});
|
|
2970
|
-
|
|
2971
|
-
() =>
|
|
2976
|
+
te(
|
|
2977
|
+
() => u.pagination,
|
|
2972
2978
|
(x) => {
|
|
2973
2979
|
x && (a.pagination = {
|
|
2974
2980
|
...a.pagination,
|
|
@@ -2984,88 +2990,90 @@ const Ol = {
|
|
|
2984
2990
|
const x = {
|
|
2985
2991
|
pageIndex: a.pagination.current,
|
|
2986
2992
|
pageSize: a.pagination.pageSize,
|
|
2987
|
-
query:
|
|
2993
|
+
query: u.params
|
|
2988
2994
|
};
|
|
2989
|
-
|
|
2990
|
-
Number(
|
|
2995
|
+
u.getLogData && (l.value = !0, u.getLogData(x).then((g) => {
|
|
2996
|
+
Number(g.code) == 200 ? (a.pagination.total = Number(g.data.total), a.list = g.data[u.dataStr] || []) : ke.error(g.message);
|
|
2991
2997
|
}).finally(() => {
|
|
2992
2998
|
l.value = !1;
|
|
2993
2999
|
}));
|
|
2994
3000
|
}, C = (x) => {
|
|
2995
3001
|
a.pagination.current = x.current, a.pagination.pageSize = x.pageSize, m();
|
|
2996
3002
|
}, p = () => {
|
|
2997
|
-
a.list = [],
|
|
3003
|
+
a.list = [], P("update:visible", !1);
|
|
2998
3004
|
}, D = () => {
|
|
2999
|
-
|
|
3000
|
-
},
|
|
3001
|
-
return
|
|
3002
|
-
() =>
|
|
3005
|
+
P("update:visible", !0);
|
|
3006
|
+
}, A = (x, g = "YYYY-MM-DD HH:mm:ss") => x ? Oe(x).format(g) : "", P = o;
|
|
3007
|
+
return te(
|
|
3008
|
+
() => u.visible,
|
|
3003
3009
|
(x) => {
|
|
3004
3010
|
x && m();
|
|
3005
3011
|
}
|
|
3006
3012
|
), t({
|
|
3007
3013
|
close: p,
|
|
3008
3014
|
loading: l
|
|
3009
|
-
}), (x,
|
|
3010
|
-
const
|
|
3011
|
-
return i(),
|
|
3012
|
-
w(
|
|
3015
|
+
}), (x, g) => {
|
|
3016
|
+
const T = R("a-tooltip"), F = R("HbLibCopy"), H = R("a-table"), k = R("a-button"), y = R("HbLibModal");
|
|
3017
|
+
return i(), S(q, null, [
|
|
3018
|
+
w(y, ee(x.$attrs, {
|
|
3013
3019
|
visible: e.visible,
|
|
3014
|
-
title:
|
|
3020
|
+
title: f.value,
|
|
3015
3021
|
width: e.width,
|
|
3016
3022
|
height: e.height,
|
|
3023
|
+
modalStyle: e.modalStyle,
|
|
3024
|
+
bodyStyle: e.bodyStyle,
|
|
3017
3025
|
onCancel: p
|
|
3018
|
-
}, {
|
|
3019
|
-
footer:
|
|
3026
|
+
}), {
|
|
3027
|
+
footer: c(() => [
|
|
3020
3028
|
w(k, { onClick: p }, {
|
|
3021
|
-
default:
|
|
3022
|
-
B(L(
|
|
3029
|
+
default: c(() => [
|
|
3030
|
+
B(L(_(n)("hbLibComp.HbLogModal.close")), 1)
|
|
3023
3031
|
]),
|
|
3024
3032
|
_: 1
|
|
3025
3033
|
})
|
|
3026
3034
|
]),
|
|
3027
|
-
default:
|
|
3035
|
+
default: c(() => [
|
|
3028
3036
|
d("div", Oa, [
|
|
3029
3037
|
w(H, {
|
|
3030
3038
|
bordered: "",
|
|
3031
3039
|
rowKey: "id",
|
|
3032
|
-
columns:
|
|
3040
|
+
columns: s.value,
|
|
3033
3041
|
dataSource: a.list,
|
|
3034
3042
|
pagination: a.pagination,
|
|
3035
3043
|
loading: l.value,
|
|
3036
3044
|
scroll: { y: e.scrollY },
|
|
3037
3045
|
onChange: C
|
|
3038
|
-
},
|
|
3039
|
-
bodyCell:
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
title:
|
|
3043
|
-
B(L(h[
|
|
3046
|
+
}, Ae({
|
|
3047
|
+
bodyCell: c(({ column: r, record: h }) => [
|
|
3048
|
+
r && r.needTooltip ? (i(), S(q, { key: 0 }, [
|
|
3049
|
+
r.needTooltip ? (i(), N(T, { key: 0 }, {
|
|
3050
|
+
title: c(() => [
|
|
3051
|
+
B(L(h[r.dataIndex]), 1)
|
|
3044
3052
|
]),
|
|
3045
|
-
default:
|
|
3046
|
-
B(" " + L(h[
|
|
3053
|
+
default: c(() => [
|
|
3054
|
+
B(" " + L(h[r.dataIndex]), 1)
|
|
3047
3055
|
]),
|
|
3048
3056
|
_: 2
|
|
3049
|
-
}, 1024)) :
|
|
3050
|
-
], 64)) :
|
|
3051
|
-
|
|
3052
|
-
d("div", za, L(h[
|
|
3053
|
-
w(
|
|
3054
|
-
"cp-text": h[
|
|
3057
|
+
}, 1024)) : E("", !0)
|
|
3058
|
+
], 64)) : E("", !0),
|
|
3059
|
+
r && r.needCopy ? (i(), S(q, { key: 1 }, [
|
|
3060
|
+
d("div", za, L(h[r.dataIndex]), 1),
|
|
3061
|
+
w(F, {
|
|
3062
|
+
"cp-text": h[r.dataIndex],
|
|
3055
3063
|
style: { position: "relative" }
|
|
3056
3064
|
}, null, 8, ["cp-text"])
|
|
3057
|
-
], 64)) :
|
|
3058
|
-
|
|
3059
|
-
B(L(
|
|
3060
|
-
], 64)) :
|
|
3065
|
+
], 64)) : E("", !0),
|
|
3066
|
+
r && r.needFormat ? (i(), S(q, { key: 2 }, [
|
|
3067
|
+
B(L(A(h[r.dataIndex], r.operateTime)), 1)
|
|
3068
|
+
], 64)) : E("", !0)
|
|
3061
3069
|
]),
|
|
3062
3070
|
_: 2
|
|
3063
3071
|
}, [
|
|
3064
3072
|
x.$slots.headerCell ? {
|
|
3065
3073
|
name: "headerCell",
|
|
3066
|
-
fn:
|
|
3067
|
-
W(x.$slots, "headerCell", { column:
|
|
3068
|
-
B(L(
|
|
3074
|
+
fn: c(({ column: r }) => [
|
|
3075
|
+
W(x.$slots, "headerCell", { column: r }, () => [
|
|
3076
|
+
B(L(r.title), 1)
|
|
3069
3077
|
], !0)
|
|
3070
3078
|
]),
|
|
3071
3079
|
key: "0"
|
|
@@ -3074,27 +3082,27 @@ const Ol = {
|
|
|
3074
3082
|
])
|
|
3075
3083
|
]),
|
|
3076
3084
|
_: 3
|
|
3077
|
-
},
|
|
3085
|
+
}, 16, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
|
|
3078
3086
|
e.needBtn ? W(x.$slots, "default", { key: 0 }, () => [
|
|
3079
3087
|
w(k, { onClick: D }, {
|
|
3080
|
-
default:
|
|
3088
|
+
default: c(() => [
|
|
3081
3089
|
B(L(e.logBtnText), 1)
|
|
3082
3090
|
]),
|
|
3083
3091
|
_: 1
|
|
3084
3092
|
})
|
|
3085
|
-
], !0) :
|
|
3093
|
+
], !0) : E("", !0)
|
|
3086
3094
|
], 64);
|
|
3087
3095
|
};
|
|
3088
3096
|
}
|
|
3089
|
-
}),
|
|
3097
|
+
}), Na = /* @__PURE__ */ Z(Ea, [["__scopeId", "data-v-341c37f6"]]), Pa = oe(Na), Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3090
3098
|
__proto__: null,
|
|
3091
|
-
HbLibLogModal:
|
|
3099
|
+
HbLibLogModal: Pa
|
|
3092
3100
|
}, Symbol.toStringTag, { value: "Module" })), ye = (e) => (e.install = (t) => {
|
|
3093
3101
|
t.component(e.name || "AnonymousComponent", e);
|
|
3094
3102
|
}, e), Ua = { class: "hb_card_wrapper" }, Va = { class: "hb_card" }, ja = {
|
|
3095
3103
|
key: 0,
|
|
3096
3104
|
class: "hb_card_header"
|
|
3097
|
-
}, Wa = { class: "hb_fix" }, Ya = { class: "hb_card_header-title" }, qa = { class: "hb_card_header-action" }, Ka = { class: "hb_card_body" },
|
|
3105
|
+
}, Wa = { class: "hb_fix" }, Ya = { class: "hb_card_header-title" }, qa = { class: "hb_card_header-action" }, Ka = { class: "hb_card_body" }, Ga = /* @__PURE__ */ G({
|
|
3098
3106
|
name: "HbLibCard",
|
|
3099
3107
|
__name: "HbLibCard",
|
|
3100
3108
|
props: {
|
|
@@ -3124,27 +3132,27 @@ const Ol = {
|
|
|
3124
3132
|
}
|
|
3125
3133
|
},
|
|
3126
3134
|
setup(e) {
|
|
3127
|
-
const t =
|
|
3128
|
-
let
|
|
3129
|
-
return
|
|
3135
|
+
const t = fe(Xe), o = e, n = z(() => {
|
|
3136
|
+
let u = o.formItemMb || t?.HbLibCard?.formItemMb;
|
|
3137
|
+
return u ? { "--hb-card-form-item-mb": u + "px" } : {};
|
|
3130
3138
|
});
|
|
3131
|
-
return (
|
|
3139
|
+
return (u, b) => (i(), S("div", Ua, [
|
|
3132
3140
|
d("div", {
|
|
3133
3141
|
class: Y(e.isModal ? "modal__module-card" : "__module-card")
|
|
3134
3142
|
}, [
|
|
3135
3143
|
d("div", Va, [
|
|
3136
|
-
e.cardTitle ? (i(),
|
|
3144
|
+
e.cardTitle ? (i(), S("div", ja, [
|
|
3137
3145
|
d("div", Wa, [
|
|
3138
3146
|
d("span", Ya, [
|
|
3139
|
-
W(
|
|
3147
|
+
W(u.$slots, "cardTitle", {}, () => [
|
|
3140
3148
|
B(L(e.cardTitle), 1)
|
|
3141
3149
|
], !0)
|
|
3142
3150
|
]),
|
|
3143
3151
|
d("div", qa, [
|
|
3144
|
-
W(
|
|
3152
|
+
W(u.$slots, "cardAct", {}, void 0, !0)
|
|
3145
3153
|
])
|
|
3146
3154
|
])
|
|
3147
|
-
])) :
|
|
3155
|
+
])) : E("", !0),
|
|
3148
3156
|
d("div", Ka, [
|
|
3149
3157
|
d("section", {
|
|
3150
3158
|
class: Y({
|
|
@@ -3156,17 +3164,17 @@ const Ol = {
|
|
|
3156
3164
|
}),
|
|
3157
3165
|
style: re(n.value)
|
|
3158
3166
|
}, [
|
|
3159
|
-
W(
|
|
3167
|
+
W(u.$slots, "default", {}, void 0, !0)
|
|
3160
3168
|
], 6)
|
|
3161
3169
|
])
|
|
3162
3170
|
])
|
|
3163
3171
|
], 2)
|
|
3164
3172
|
]));
|
|
3165
3173
|
}
|
|
3166
|
-
}),
|
|
3174
|
+
}), Ja = /* @__PURE__ */ Z(Ga, [["__scopeId", "data-v-927846d4"]]), Qa = ye(Ja), Za = ["onClick"], Xa = { class: "step" }, en = {
|
|
3167
3175
|
key: 0,
|
|
3168
3176
|
class: "line"
|
|
3169
|
-
}, tn = ["title"], on = /* @__PURE__ */
|
|
3177
|
+
}, tn = ["title"], on = /* @__PURE__ */ G({
|
|
3170
3178
|
name: "HbLibAnchor",
|
|
3171
3179
|
__name: "HbLibAnchor",
|
|
3172
3180
|
props: {
|
|
@@ -3175,42 +3183,42 @@ const Ol = {
|
|
|
3175
3183
|
containerSelector: {}
|
|
3176
3184
|
},
|
|
3177
3185
|
setup(e) {
|
|
3178
|
-
const t = e, o = O(""), n = t.offsetTop ?? 160,
|
|
3186
|
+
const t = e, o = O(""), n = t.offsetTop ?? 160, u = z(() => t.anchors.filter((l) => typeof l.visible == "function" ? l.visible() : l.visible !== !1)), b = () => {
|
|
3179
3187
|
const l = t.containerSelector || "#subpackage_container";
|
|
3180
3188
|
return document.querySelector(l) || window;
|
|
3181
|
-
},
|
|
3182
|
-
const a =
|
|
3189
|
+
}, s = (l) => {
|
|
3190
|
+
const a = b(), m = l.target.startsWith("#") || l.target.startsWith(".") ? l.target : `#${l.target}`, C = document.querySelector(m);
|
|
3183
3191
|
if (!C) return;
|
|
3184
3192
|
let p = C.offsetTop;
|
|
3185
3193
|
a instanceof HTMLElement && (p -= a.offsetTop), p -= n, a instanceof Window ? window.scrollTo({ top: p, behavior: "smooth" }) : a.scrollTo({ top: p, behavior: "smooth" }), o.value = l.target;
|
|
3186
|
-
},
|
|
3187
|
-
const l =
|
|
3194
|
+
}, f = () => {
|
|
3195
|
+
const l = b();
|
|
3188
3196
|
let a = 0;
|
|
3189
3197
|
l instanceof Window ? a = window.scrollY + n + 5 : a = l.scrollTop + n + 5;
|
|
3190
|
-
let m =
|
|
3191
|
-
for (const C of
|
|
3198
|
+
let m = u.value[0]?.target || "";
|
|
3199
|
+
for (const C of u.value) {
|
|
3192
3200
|
const p = C.target.startsWith("#") || C.target.startsWith(".") ? C.target : `#${C.target}`, D = document.querySelector(p);
|
|
3193
3201
|
if (!D) continue;
|
|
3194
|
-
let
|
|
3195
|
-
l instanceof HTMLElement && (
|
|
3202
|
+
let A = D.offsetTop;
|
|
3203
|
+
l instanceof HTMLElement && (A -= l.offsetTop), a >= A && (m = C.target);
|
|
3196
3204
|
}
|
|
3197
3205
|
o.value = m;
|
|
3198
3206
|
};
|
|
3199
3207
|
return he(() => {
|
|
3200
|
-
|
|
3201
|
-
}),
|
|
3202
|
-
|
|
3203
|
-
}), (l, a) => (i(),
|
|
3208
|
+
b().addEventListener("scroll", f), f();
|
|
3209
|
+
}), Je(() => {
|
|
3210
|
+
b().removeEventListener("scroll", f);
|
|
3211
|
+
}), (l, a) => (i(), S("div", {
|
|
3204
3212
|
class: "anchors",
|
|
3205
|
-
style: re({ top: `${
|
|
3213
|
+
style: re({ top: `${_(n)}px` })
|
|
3206
3214
|
}, [
|
|
3207
|
-
(i(!0),
|
|
3215
|
+
(i(!0), S(q, null, ie(u.value, (m, C) => (i(), S("div", {
|
|
3208
3216
|
key: m.target,
|
|
3209
3217
|
class: Y(["anchor-item", { isActive: o.value === m.target }]),
|
|
3210
|
-
onClick: (p) =>
|
|
3218
|
+
onClick: (p) => s(m)
|
|
3211
3219
|
}, [
|
|
3212
3220
|
d("div", Xa, [
|
|
3213
|
-
C !==
|
|
3221
|
+
C !== u.value.length - 1 ? (i(), S("div", en)) : E("", !0),
|
|
3214
3222
|
a[0] || (a[0] = d("div", { class: "circle" }, null, -1))
|
|
3215
3223
|
]),
|
|
3216
3224
|
d("span", {
|
|
@@ -3226,10 +3234,10 @@ const Ol = {
|
|
|
3226
3234
|
}, rn = { class: "hb_detail_top_act" }, cn = {
|
|
3227
3235
|
key: 0,
|
|
3228
3236
|
class: "hb_detail_all_info"
|
|
3229
|
-
}, dn = { class: "hb_detail_all_info_left" }, un = { class: "hb_detail_info_title" },
|
|
3237
|
+
}, dn = { class: "hb_detail_all_info_left" }, un = { class: "hb_detail_info_title" }, bn = {
|
|
3230
3238
|
key: 0,
|
|
3231
3239
|
class: "hb_detail_info_content"
|
|
3232
|
-
},
|
|
3240
|
+
}, fn = { class: "create_by" }, pn = { class: "hb_detail_all_info_right" }, hn = { class: "hb_edit_detail_content_wrapper" }, mn = { class: "hb_detail_content" }, vn = { class: "hb-back-top-inner" }, gn = /* @__PURE__ */ G({
|
|
3233
3241
|
name: "HbLibDetailBox",
|
|
3234
3242
|
__name: "HbLibDetailBox",
|
|
3235
3243
|
props: {
|
|
@@ -3266,8 +3274,7 @@ const Ol = {
|
|
|
3266
3274
|
},
|
|
3267
3275
|
// 置顶按钮距离底部的距离
|
|
3268
3276
|
backTopBottom: {
|
|
3269
|
-
type: Number
|
|
3270
|
-
default: 80
|
|
3277
|
+
type: Number
|
|
3271
3278
|
},
|
|
3272
3279
|
// 传一个函数,点击返回按钮会执行
|
|
3273
3280
|
backFn: {
|
|
@@ -3292,101 +3299,101 @@ const Ol = {
|
|
|
3292
3299
|
}
|
|
3293
3300
|
},
|
|
3294
3301
|
setup(e) {
|
|
3295
|
-
const { t } = de(), o = e, n =
|
|
3302
|
+
const { t } = de(), o = e, n = fe(Xe), u = () => {
|
|
3296
3303
|
o.backFn ? o.backFn() : window.history.back();
|
|
3297
|
-
},
|
|
3298
|
-
const
|
|
3304
|
+
}, b = z(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), s = z(() => {
|
|
3305
|
+
const P = {};
|
|
3299
3306
|
return o.needFixWidth ? {
|
|
3300
3307
|
hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3301
3308
|
hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3302
|
-
} :
|
|
3303
|
-
}),
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
(
|
|
3307
|
-
|
|
3309
|
+
} : P;
|
|
3310
|
+
}), f = () => document.querySelector(o.container), l = O(!1), a = O(null), { top: m } = Zt(a), C = z(f), { y: p } = Xt(C);
|
|
3311
|
+
te(
|
|
3312
|
+
p,
|
|
3313
|
+
(P) => {
|
|
3314
|
+
l.value = P > m.value;
|
|
3308
3315
|
},
|
|
3309
3316
|
{ immediate: !0 }
|
|
3310
3317
|
);
|
|
3311
|
-
const
|
|
3312
|
-
document.querySelectorAll(".hb_card_body").forEach((
|
|
3313
|
-
|
|
3314
|
-
|
|
3318
|
+
const D = (P) => {
|
|
3319
|
+
document.querySelectorAll(".hb_card_body").forEach((g) => {
|
|
3320
|
+
g.querySelectorAll(".ant-descriptions-item-content span").forEach((F) => {
|
|
3321
|
+
F.textContent?.trim() || (F.textContent = P);
|
|
3315
3322
|
});
|
|
3316
3323
|
});
|
|
3317
3324
|
};
|
|
3318
|
-
let
|
|
3325
|
+
let A = null;
|
|
3319
3326
|
return he(() => {
|
|
3320
|
-
n?.HbLibDetailBox?.needSetDesDefault && (
|
|
3321
|
-
|
|
3327
|
+
n?.HbLibDetailBox?.needSetDesDefault && (A = setTimeout(() => {
|
|
3328
|
+
D(n?.HbLibDetailBox?.desDefault);
|
|
3322
3329
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3323
3330
|
}), Te(() => {
|
|
3324
|
-
|
|
3325
|
-
}), (
|
|
3326
|
-
const
|
|
3327
|
-
return i(),
|
|
3328
|
-
default:
|
|
3331
|
+
A && clearTimeout(A);
|
|
3332
|
+
}), (P, x) => {
|
|
3333
|
+
const g = R("RollbackOutlined"), T = R("a-divider"), F = R("a-spin");
|
|
3334
|
+
return i(), N(F, { spinning: e.spinning }, {
|
|
3335
|
+
default: c(() => [
|
|
3329
3336
|
d("div", {
|
|
3330
|
-
class: Y(["hb_detail_wrapper",
|
|
3337
|
+
class: Y(["hb_detail_wrapper", s.value]),
|
|
3331
3338
|
style: re({
|
|
3332
|
-
"--hb-detail-desc-label-width":
|
|
3333
|
-
"--hb-detail-desc-value-width":
|
|
3339
|
+
"--hb-detail-desc-label-width": s.value?.hb_need_set_desc_label_width + "px",
|
|
3340
|
+
"--hb-detail-desc-value-width": s.value?.hb_need_set_desc_value_width + "px"
|
|
3334
3341
|
})
|
|
3335
3342
|
}, [
|
|
3336
|
-
e.needTotalInfoBox ? (i(),
|
|
3343
|
+
e.needTotalInfoBox ? (i(), S("div", {
|
|
3337
3344
|
key: 0,
|
|
3338
|
-
class: Y(["hb_detail_top_act_sticky",
|
|
3345
|
+
class: Y(["hb_detail_top_act_sticky", l.value ? "can_show" : ""])
|
|
3339
3346
|
}, [
|
|
3340
3347
|
d("div", nn, [
|
|
3341
|
-
w(
|
|
3348
|
+
w(g, { style: { color: "#ff5000" } }),
|
|
3342
3349
|
d("a", {
|
|
3343
3350
|
href: "javascript:;",
|
|
3344
3351
|
class: "ml6",
|
|
3345
|
-
onClick:
|
|
3346
|
-
}, L(
|
|
3347
|
-
w(
|
|
3352
|
+
onClick: u
|
|
3353
|
+
}, L(_(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3354
|
+
w(T, { type: "vertical" }),
|
|
3348
3355
|
d("span", null, L(e.stickyTitle), 1)
|
|
3349
3356
|
]),
|
|
3350
|
-
|
|
3351
|
-
], 2)) :
|
|
3352
|
-
e.needTotalInfoBox ? (i(),
|
|
3357
|
+
x[0] || (x[0] = d("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3358
|
+
], 2)) : E("", !0),
|
|
3359
|
+
e.needTotalInfoBox ? (i(), S("div", sn, [
|
|
3353
3360
|
d("div", rn, [
|
|
3354
|
-
w(
|
|
3361
|
+
w(g),
|
|
3355
3362
|
d("a", {
|
|
3356
3363
|
href: "javascript:;",
|
|
3357
3364
|
class: "ml6",
|
|
3358
|
-
onClick:
|
|
3359
|
-
}, L(
|
|
3360
|
-
w(
|
|
3365
|
+
onClick: u
|
|
3366
|
+
}, L(_(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3367
|
+
w(T, { type: "vertical" }),
|
|
3361
3368
|
d("span", null, L(e.stickyTitle), 1)
|
|
3362
3369
|
]),
|
|
3363
|
-
e.needTotalInfoBox ? (i(),
|
|
3370
|
+
e.needTotalInfoBox ? (i(), S("div", cn, [
|
|
3364
3371
|
d("aside", dn, [
|
|
3365
|
-
W(
|
|
3372
|
+
W(P.$slots, "totalInfoLeft", {}, () => [
|
|
3366
3373
|
d("div", un, L(e.totalInfo.totalInfoTitle), 1),
|
|
3367
|
-
e.totalInfo.totalInfoSubTitle1 ? (i(),
|
|
3368
|
-
d("span",
|
|
3374
|
+
e.totalInfo.totalInfoSubTitle1 ? (i(), S("div", bn, [
|
|
3375
|
+
d("span", fn, L(e.totalInfo.totalInfoSubTitle1) + L(e.totalInfo.totalInfoSubVal1), 1),
|
|
3369
3376
|
d("span", null, L(e.totalInfo.totalInfoSubTitle2) + L(e.totalInfo.totalInfoSubVal2), 1)
|
|
3370
|
-
])) :
|
|
3377
|
+
])) : E("", !0)
|
|
3371
3378
|
], !0)
|
|
3372
3379
|
]),
|
|
3373
3380
|
d("aside", pn, [
|
|
3374
|
-
W(
|
|
3381
|
+
W(P.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3375
3382
|
])
|
|
3376
|
-
])) :
|
|
3377
|
-
])) :
|
|
3383
|
+
])) : E("", !0)
|
|
3384
|
+
])) : E("", !0),
|
|
3378
3385
|
d("div", hn, [
|
|
3379
3386
|
d("div", mn, [
|
|
3380
|
-
W(
|
|
3387
|
+
W(P.$slots, "detailContent", {}, void 0, !0)
|
|
3381
3388
|
])
|
|
3382
3389
|
]),
|
|
3383
|
-
w(
|
|
3384
|
-
target:
|
|
3385
|
-
style: re({ bottom:
|
|
3390
|
+
w(_(xt), {
|
|
3391
|
+
target: f,
|
|
3392
|
+
style: re({ bottom: b.value + "px" })
|
|
3386
3393
|
}, {
|
|
3387
|
-
default:
|
|
3394
|
+
default: c(() => [
|
|
3388
3395
|
d("div", vn, [
|
|
3389
|
-
w(
|
|
3396
|
+
w(_(Ht))
|
|
3390
3397
|
])
|
|
3391
3398
|
]),
|
|
3392
3399
|
_: 1
|
|
@@ -3397,7 +3404,7 @@ const Ol = {
|
|
|
3397
3404
|
}, 8, ["spinning"]);
|
|
3398
3405
|
};
|
|
3399
3406
|
}
|
|
3400
|
-
}), yn = /* @__PURE__ */ Z(gn, [["__scopeId", "data-v-
|
|
3407
|
+
}), yn = /* @__PURE__ */ Z(gn, [["__scopeId", "data-v-f2c2c397"]]), _n = ye(yn), Ln = /* @__PURE__ */ G({
|
|
3401
3408
|
name: "HbLibFooterBar",
|
|
3402
3409
|
__name: "HbLibFooterBar",
|
|
3403
3410
|
props: {
|
|
@@ -3429,9 +3436,9 @@ const Ol = {
|
|
|
3429
3436
|
}
|
|
3430
3437
|
},
|
|
3431
3438
|
setup(e) {
|
|
3432
|
-
const t = e, o =
|
|
3439
|
+
const t = e, o = z(() => t.buttons.filter((f) => f.condition !== void 0 ? f.condition : !0)), n = O(0), u = (f) => {
|
|
3433
3440
|
let l = 0;
|
|
3434
|
-
return (Array.isArray(
|
|
3441
|
+
return (Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
3435
3442
|
let C = [];
|
|
3436
3443
|
if (m.startsWith("#")) {
|
|
3437
3444
|
const p = document.getElementById(m.slice(1));
|
|
@@ -3442,18 +3449,18 @@ const Ol = {
|
|
|
3442
3449
|
l += p.offsetWidth || 0;
|
|
3443
3450
|
});
|
|
3444
3451
|
}), l;
|
|
3445
|
-
},
|
|
3446
|
-
t.leftElements && (n.value =
|
|
3452
|
+
}, b = () => {
|
|
3453
|
+
t.leftElements && (n.value = u(t.leftElements) + 1);
|
|
3447
3454
|
};
|
|
3448
|
-
let
|
|
3455
|
+
let s = null;
|
|
3449
3456
|
return he(() => {
|
|
3450
|
-
const
|
|
3451
|
-
|
|
3452
|
-
}),
|
|
3453
|
-
|
|
3457
|
+
const f = t.getContainer();
|
|
3458
|
+
f !== window && f instanceof HTMLElement && f.addEventListener("scroll", () => {
|
|
3459
|
+
}), b(), s = new MutationObserver(() => {
|
|
3460
|
+
b();
|
|
3454
3461
|
});
|
|
3455
3462
|
const l = document.body;
|
|
3456
|
-
|
|
3463
|
+
s.observe(l, {
|
|
3457
3464
|
childList: !0,
|
|
3458
3465
|
// 子节点的变动
|
|
3459
3466
|
subtree: !0,
|
|
@@ -3461,11 +3468,11 @@ const Ol = {
|
|
|
3461
3468
|
attributes: !0
|
|
3462
3469
|
// 属性的变动
|
|
3463
3470
|
});
|
|
3464
|
-
}),
|
|
3465
|
-
|
|
3466
|
-
}), (
|
|
3467
|
-
const a =
|
|
3468
|
-
return i(),
|
|
3471
|
+
}), Je(() => {
|
|
3472
|
+
s && s.disconnect();
|
|
3473
|
+
}), (f, l) => {
|
|
3474
|
+
const a = R("a-button"), m = R("a-space"), C = R("a-affix"), p = St("has");
|
|
3475
|
+
return i(), S("div", {
|
|
3469
3476
|
class: "footer-affix-wrapper",
|
|
3470
3477
|
style: re({ "--pageHeaderOrFonterLeft": n.value + "px" })
|
|
3471
3478
|
}, [
|
|
@@ -3474,7 +3481,7 @@ const Ol = {
|
|
|
3474
3481
|
target: e.getContainer,
|
|
3475
3482
|
style: { width: "100%" }
|
|
3476
3483
|
}, {
|
|
3477
|
-
default:
|
|
3484
|
+
default: c(() => [
|
|
3478
3485
|
d("div", {
|
|
3479
3486
|
class: Y({
|
|
3480
3487
|
"page-footer-bar": !0,
|
|
@@ -3483,8 +3490,8 @@ const Ol = {
|
|
|
3483
3490
|
})
|
|
3484
3491
|
}, [
|
|
3485
3492
|
w(m, null, {
|
|
3486
|
-
default:
|
|
3487
|
-
(i(!0),
|
|
3493
|
+
default: c(() => [
|
|
3494
|
+
(i(!0), S(q, null, ie(o.value, (D) => be((i(), N(a, {
|
|
3488
3495
|
key: D.key,
|
|
3489
3496
|
type: D.type || "default",
|
|
3490
3497
|
danger: D.danger,
|
|
@@ -3493,7 +3500,7 @@ const Ol = {
|
|
|
3493
3500
|
onClick: D.onClick,
|
|
3494
3501
|
class: "hb_list_page_button"
|
|
3495
3502
|
}, {
|
|
3496
|
-
default:
|
|
3503
|
+
default: c(() => [
|
|
3497
3504
|
B(L(D.label), 1)
|
|
3498
3505
|
]),
|
|
3499
3506
|
_: 2
|
|
@@ -3510,7 +3517,7 @@ const Ol = {
|
|
|
3510
3517
|
], 4);
|
|
3511
3518
|
};
|
|
3512
3519
|
}
|
|
3513
|
-
}), Cn = /* @__PURE__ */ Z(Ln, [["__scopeId", "data-v-37376438"]]), kn = ye(Cn), Sn = { class: "modal__detail-content" }, Tn = /* @__PURE__ */
|
|
3520
|
+
}), Cn = /* @__PURE__ */ Z(Ln, [["__scopeId", "data-v-37376438"]]), kn = ye(Cn), Sn = { class: "modal__detail-content" }, Tn = /* @__PURE__ */ G({
|
|
3514
3521
|
name: "HbLibModal",
|
|
3515
3522
|
__name: "HbLibModal",
|
|
3516
3523
|
props: {
|
|
@@ -3532,7 +3539,9 @@ const Ol = {
|
|
|
3532
3539
|
// 弹窗内容样式
|
|
3533
3540
|
bodyStyle: {
|
|
3534
3541
|
type: Object,
|
|
3535
|
-
default: () => ({
|
|
3542
|
+
default: () => ({
|
|
3543
|
+
top: "10px"
|
|
3544
|
+
})
|
|
3536
3545
|
},
|
|
3537
3546
|
// 弹窗外层样式
|
|
3538
3547
|
wrapStyle: {
|
|
@@ -3552,33 +3561,33 @@ const Ol = {
|
|
|
3552
3561
|
},
|
|
3553
3562
|
emits: ["ok", "cancel"],
|
|
3554
3563
|
setup(e, { expose: t, emit: o }) {
|
|
3555
|
-
const n = o,
|
|
3556
|
-
maxHeight: "calc(100vh -
|
|
3564
|
+
const n = o, u = e, b = O(!1), s = O(null), f = z(() => ({ top: "10px", ...u.modalStyle })), l = z(() => ({ overflow: "hidden", ...u.modalStyle })), a = z(() => ({
|
|
3565
|
+
maxHeight: "calc(100vh - 120px)",
|
|
3557
3566
|
overflowY: "auto",
|
|
3558
3567
|
padding: "0 6px",
|
|
3559
|
-
...
|
|
3560
|
-
})), { x: m, y: C, isDragging: p } = eo(
|
|
3568
|
+
...u.bodyStyle
|
|
3569
|
+
})), { x: m, y: C, isDragging: p } = eo(s), D = O(0), A = O(0), P = O(!1), x = O(0), g = O(0), T = O(0), F = O(0), H = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3561
3570
|
let k = null;
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
x.value = 0,
|
|
3571
|
+
te(b, (M) => {
|
|
3572
|
+
M || (k && clearTimeout(k), k = setTimeout(() => {
|
|
3573
|
+
x.value = 0, g.value = 0, T.value = 0, F.value = 0;
|
|
3565
3574
|
}, 300));
|
|
3566
|
-
}),
|
|
3567
|
-
if (!
|
|
3568
|
-
D.value = m.value,
|
|
3569
|
-
const
|
|
3570
|
-
H.value.right =
|
|
3575
|
+
}), te([m, C], () => {
|
|
3576
|
+
if (!P.value) {
|
|
3577
|
+
D.value = m.value, A.value = C.value;
|
|
3578
|
+
const M = document.body.getBoundingClientRect(), V = s.value.getBoundingClientRect();
|
|
3579
|
+
H.value.right = M.width - V.width, H.value.bottom = M.height - V.height, T.value = x.value, F.value = g.value;
|
|
3571
3580
|
}
|
|
3572
|
-
|
|
3573
|
-
}),
|
|
3574
|
-
p || (
|
|
3581
|
+
P.value = !0;
|
|
3582
|
+
}), te(p, () => {
|
|
3583
|
+
p || (P.value = !1);
|
|
3575
3584
|
}), Tt(() => {
|
|
3576
|
-
|
|
3585
|
+
P.value && (x.value = T.value + Math.min(Math.max(H.value.left, m.value), H.value.right) - D.value, g.value = F.value + Math.min(Math.max(H.value.top, C.value), H.value.bottom) - A.value);
|
|
3577
3586
|
});
|
|
3578
|
-
const
|
|
3579
|
-
transform: `translate(${x.value}px, ${
|
|
3580
|
-
})),
|
|
3581
|
-
|
|
3587
|
+
const y = z(() => ({
|
|
3588
|
+
transform: `translate(${x.value}px, ${g.value}px)`
|
|
3589
|
+
})), r = () => {
|
|
3590
|
+
b.value = !1, n("cancel");
|
|
3582
3591
|
}, h = () => {
|
|
3583
3592
|
n("ok");
|
|
3584
3593
|
};
|
|
@@ -3586,43 +3595,43 @@ const Ol = {
|
|
|
3586
3595
|
k && clearTimeout(k);
|
|
3587
3596
|
}), t({
|
|
3588
3597
|
handleOk: h,
|
|
3589
|
-
handleCancel:
|
|
3590
|
-
visible:
|
|
3591
|
-
}), (
|
|
3592
|
-
const K =
|
|
3593
|
-
return i(),
|
|
3594
|
-
style:
|
|
3598
|
+
handleCancel: r,
|
|
3599
|
+
visible: b
|
|
3600
|
+
}), (M, V) => {
|
|
3601
|
+
const K = R("a-spin"), se = R("a-modal");
|
|
3602
|
+
return i(), N(se, ee({
|
|
3603
|
+
style: f.value,
|
|
3595
3604
|
bodyStyle: a.value,
|
|
3596
3605
|
ref: "modalRef",
|
|
3597
|
-
visible:
|
|
3598
|
-
"onUpdate:visible": V[0] || (V[0] = (
|
|
3606
|
+
visible: b.value,
|
|
3607
|
+
"onUpdate:visible": V[0] || (V[0] = (I) => b.value = I),
|
|
3599
3608
|
"wrap-style": l.value,
|
|
3600
3609
|
onOk: h,
|
|
3601
|
-
onCancel:
|
|
3602
|
-
},
|
|
3603
|
-
title:
|
|
3610
|
+
onCancel: r
|
|
3611
|
+
}, M.$attrs), Ae({
|
|
3612
|
+
title: c(() => [
|
|
3604
3613
|
d("div", {
|
|
3605
3614
|
ref_key: "modalTitleRef",
|
|
3606
|
-
ref:
|
|
3615
|
+
ref: s,
|
|
3607
3616
|
style: { width: "100%", cursor: "move" }
|
|
3608
3617
|
}, [
|
|
3609
|
-
W(
|
|
3618
|
+
W(M.$slots, "title", {}, () => [
|
|
3610
3619
|
B(L(e.title), 1)
|
|
3611
3620
|
], !0)
|
|
3612
3621
|
], 512)
|
|
3613
3622
|
]),
|
|
3614
|
-
modalRender:
|
|
3623
|
+
modalRender: c(({ originVNode: I }) => [
|
|
3615
3624
|
d("div", {
|
|
3616
|
-
style: re(
|
|
3625
|
+
style: re(y.value)
|
|
3617
3626
|
}, [
|
|
3618
|
-
(i(),
|
|
3627
|
+
(i(), N(wt(I)))
|
|
3619
3628
|
], 4)
|
|
3620
3629
|
]),
|
|
3621
|
-
default:
|
|
3630
|
+
default: c(() => [
|
|
3622
3631
|
w(K, {
|
|
3623
|
-
spinning:
|
|
3632
|
+
spinning: u.spinning
|
|
3624
3633
|
}, {
|
|
3625
|
-
default:
|
|
3634
|
+
default: c(() => [
|
|
3626
3635
|
d("div", {
|
|
3627
3636
|
class: Y([
|
|
3628
3637
|
e.type == "detail" ? "hb_detail_modal_wrapper" : "hb_modal_wrapper",
|
|
@@ -3632,7 +3641,7 @@ const Ol = {
|
|
|
3632
3641
|
style: re({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3633
3642
|
}, [
|
|
3634
3643
|
d("div", Sn, [
|
|
3635
|
-
W(
|
|
3644
|
+
W(M.$slots, "default", {}, void 0, !0)
|
|
3636
3645
|
])
|
|
3637
3646
|
], 6)
|
|
3638
3647
|
]),
|
|
@@ -3641,23 +3650,23 @@ const Ol = {
|
|
|
3641
3650
|
]),
|
|
3642
3651
|
_: 2
|
|
3643
3652
|
}, [
|
|
3644
|
-
|
|
3653
|
+
M.$slots.footer ? {
|
|
3645
3654
|
name: "footer",
|
|
3646
|
-
fn:
|
|
3647
|
-
W(
|
|
3655
|
+
fn: c(() => [
|
|
3656
|
+
W(M.$slots, "footer", {}, void 0, !0)
|
|
3648
3657
|
]),
|
|
3649
3658
|
key: "0"
|
|
3650
3659
|
} : void 0
|
|
3651
3660
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3652
3661
|
};
|
|
3653
3662
|
}
|
|
3654
|
-
}), wn = /* @__PURE__ */ Z(Tn, [["__scopeId", "data-v-
|
|
3663
|
+
}), wn = /* @__PURE__ */ Z(Tn, [["__scopeId", "data-v-e986d7ee"]]), xn = ye(wn), Hn = {
|
|
3655
3664
|
key: 0,
|
|
3656
3665
|
class: "hb_edit_header"
|
|
3657
3666
|
}, Fn = { class: "__detail-content" }, $n = {
|
|
3658
3667
|
key: 1,
|
|
3659
3668
|
class: "hb_edit_footer"
|
|
3660
|
-
}, In = { class: "hb-back-top-inner" }, Mn = /* @__PURE__ */
|
|
3669
|
+
}, In = { class: "hb-back-top-inner" }, Mn = /* @__PURE__ */ G({
|
|
3661
3670
|
name: "HbLibUnDetailBox",
|
|
3662
3671
|
__name: "HbLibUnDetailBox",
|
|
3663
3672
|
props: {
|
|
@@ -3673,8 +3682,7 @@ const Ol = {
|
|
|
3673
3682
|
},
|
|
3674
3683
|
// 置顶按钮距离底部的距离
|
|
3675
3684
|
backTopBottom: {
|
|
3676
|
-
type: Number
|
|
3677
|
-
default: 80
|
|
3685
|
+
type: Number
|
|
3678
3686
|
},
|
|
3679
3687
|
spinning: {
|
|
3680
3688
|
type: Boolean,
|
|
@@ -3682,33 +3690,33 @@ const Ol = {
|
|
|
3682
3690
|
}
|
|
3683
3691
|
},
|
|
3684
3692
|
setup(e) {
|
|
3685
|
-
const t = O("vertical"), o = e, n = () => document.querySelector(o.container);
|
|
3686
|
-
return (
|
|
3687
|
-
default:
|
|
3693
|
+
const t = O("vertical"), o = e, n = () => document.querySelector(o.container), u = fe("GLOBAL_CONFIG_KEY"), b = z(() => o.backTopBottom || u?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3694
|
+
return (s, f) => (i(), N(_(Vt), { spinning: e.spinning }, {
|
|
3695
|
+
default: c(() => [
|
|
3688
3696
|
d("div", {
|
|
3689
3697
|
class: Y(["hb_edit_wrapper", e.formLabelWidth ? "isNeedSetLabelWidth" : ""]),
|
|
3690
3698
|
style: re({ "--hb-edit-form-label": e.formLabelWidth })
|
|
3691
3699
|
}, [
|
|
3692
|
-
|
|
3693
|
-
W(
|
|
3694
|
-
])) :
|
|
3700
|
+
s.$slots.editHeader ? (i(), S("div", Hn, [
|
|
3701
|
+
W(s.$slots, "editHeader", {}, void 0, !0)
|
|
3702
|
+
])) : E("", !0),
|
|
3695
3703
|
d("div", {
|
|
3696
3704
|
class: Y(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3697
3705
|
}, [
|
|
3698
3706
|
d("div", Fn, [
|
|
3699
|
-
W(
|
|
3707
|
+
W(s.$slots, "editContent", {}, void 0, !0)
|
|
3700
3708
|
])
|
|
3701
3709
|
], 2),
|
|
3702
|
-
|
|
3703
|
-
W(
|
|
3704
|
-
])) :
|
|
3705
|
-
w(
|
|
3710
|
+
s.$slots.editFooter ? (i(), S("div", $n, [
|
|
3711
|
+
W(s.$slots, "editFooter", {}, void 0, !0)
|
|
3712
|
+
])) : E("", !0),
|
|
3713
|
+
w(_(xt), {
|
|
3706
3714
|
target: n,
|
|
3707
|
-
style: re({ bottom:
|
|
3715
|
+
style: re({ bottom: b.value + "px" })
|
|
3708
3716
|
}, {
|
|
3709
|
-
default:
|
|
3717
|
+
default: c(() => [
|
|
3710
3718
|
d("div", In, [
|
|
3711
|
-
w(
|
|
3719
|
+
w(_(Ht))
|
|
3712
3720
|
])
|
|
3713
3721
|
]),
|
|
3714
3722
|
_: 1
|
|
@@ -3718,7 +3726,7 @@ const Ol = {
|
|
|
3718
3726
|
_: 3
|
|
3719
3727
|
}, 8, ["spinning"]));
|
|
3720
3728
|
}
|
|
3721
|
-
}), Dn = /* @__PURE__ */ Z(Mn, [["__scopeId", "data-v-
|
|
3729
|
+
}), Dn = /* @__PURE__ */ Z(Mn, [["__scopeId", "data-v-ee7895be"]]), Bn = ye(Dn), An = { class: "hb_edit_header_left" }, On = { class: "hb_edit_header_title" }, zn = { class: "hb_edit_header_right" }, En = /* @__PURE__ */ G({
|
|
3722
3730
|
name: "HbLibPageHeader",
|
|
3723
3731
|
__name: "HbLibPageHeader",
|
|
3724
3732
|
props: {
|
|
@@ -3736,29 +3744,29 @@ const Ol = {
|
|
|
3736
3744
|
}
|
|
3737
3745
|
},
|
|
3738
3746
|
setup(e) {
|
|
3739
|
-
const { t } = de(), o = e, n = Qe(),
|
|
3740
|
-
function
|
|
3741
|
-
let
|
|
3747
|
+
const { t } = de(), o = e, n = Qe(), u = O(0), b = z(() => n?.meta?.title || "");
|
|
3748
|
+
function s(p, D = "offsetHeight") {
|
|
3749
|
+
let A = 0;
|
|
3742
3750
|
return (Array.isArray(p) ? p : [p]).forEach((x) => {
|
|
3743
|
-
let
|
|
3751
|
+
let g = [];
|
|
3744
3752
|
if (x.startsWith("#")) {
|
|
3745
|
-
const
|
|
3746
|
-
|
|
3753
|
+
const T = document.getElementById(x.slice(1));
|
|
3754
|
+
T && g.push(T);
|
|
3747
3755
|
} else
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3756
|
+
g = Array.from(document.getElementsByClassName(x));
|
|
3757
|
+
g.forEach((T) => {
|
|
3758
|
+
A += T[D] || 0;
|
|
3751
3759
|
});
|
|
3752
|
-
}),
|
|
3760
|
+
}), A;
|
|
3753
3761
|
}
|
|
3754
|
-
const
|
|
3755
|
-
o.topElements && (
|
|
3762
|
+
const f = () => {
|
|
3763
|
+
o.topElements && (u.value = s(o.topElements));
|
|
3756
3764
|
}, l = O(0), a = () => {
|
|
3757
|
-
o.leftElements && (l.value =
|
|
3765
|
+
o.leftElements && (l.value = s(o.leftElements, "offsetWidth") + 1);
|
|
3758
3766
|
};
|
|
3759
3767
|
let m = null;
|
|
3760
3768
|
he(() => {
|
|
3761
|
-
|
|
3769
|
+
f(), a(), window.addEventListener("resize", f), m = new MutationObserver(() => {
|
|
3762
3770
|
a();
|
|
3763
3771
|
});
|
|
3764
3772
|
const p = document.body;
|
|
@@ -3770,12 +3778,12 @@ const Ol = {
|
|
|
3770
3778
|
attributes: !0
|
|
3771
3779
|
// 属性的变动
|
|
3772
3780
|
});
|
|
3773
|
-
}),
|
|
3774
|
-
window.removeEventListener("resize",
|
|
3775
|
-
}),
|
|
3781
|
+
}), Je(() => {
|
|
3782
|
+
window.removeEventListener("resize", f), m && m.disconnect();
|
|
3783
|
+
}), te(
|
|
3776
3784
|
() => o.topElements,
|
|
3777
3785
|
() => {
|
|
3778
|
-
|
|
3786
|
+
f();
|
|
3779
3787
|
},
|
|
3780
3788
|
{ immediate: !0 }
|
|
3781
3789
|
);
|
|
@@ -3783,19 +3791,19 @@ const Ol = {
|
|
|
3783
3791
|
o.backFn ? o.backFn() : window.history.back();
|
|
3784
3792
|
};
|
|
3785
3793
|
return (p, D) => {
|
|
3786
|
-
const
|
|
3787
|
-
return i(),
|
|
3794
|
+
const A = R("a-divider");
|
|
3795
|
+
return i(), S("div", {
|
|
3788
3796
|
class: "hb_edit_header",
|
|
3789
|
-
style: re({ top:
|
|
3797
|
+
style: re({ top: u.value + "px", "--pageHeaderOrFonterLeft": l.value + "px" })
|
|
3790
3798
|
}, [
|
|
3791
|
-
d("aside",
|
|
3799
|
+
d("aside", An, [
|
|
3792
3800
|
d("a", {
|
|
3793
3801
|
href: "#",
|
|
3794
3802
|
class: "backBtn",
|
|
3795
3803
|
onClick: C
|
|
3796
|
-
}, L(
|
|
3797
|
-
w(
|
|
3798
|
-
d("span", On, L(
|
|
3804
|
+
}, L(_(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3805
|
+
w(A, { type: "vertical" }),
|
|
3806
|
+
d("span", On, L(b.value), 1)
|
|
3799
3807
|
]),
|
|
3800
3808
|
d("aside", zn, [
|
|
3801
3809
|
W(p.$slots, "right", {}, void 0, !0)
|
|
@@ -3803,22 +3811,22 @@ const Ol = {
|
|
|
3803
3811
|
], 4);
|
|
3804
3812
|
};
|
|
3805
3813
|
}
|
|
3806
|
-
}),
|
|
3814
|
+
}), Nn = /* @__PURE__ */ Z(En, [["__scopeId", "data-v-83fcd208"]]), Pn = ye(Nn), Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3807
3815
|
__proto__: null,
|
|
3808
3816
|
HbLibAnchor: an,
|
|
3809
3817
|
HbLibCard: Qa,
|
|
3810
3818
|
HbLibDetailBox: _n,
|
|
3811
3819
|
HbLibFooterBar: kn,
|
|
3812
3820
|
HbLibModal: xn,
|
|
3813
|
-
HbLibPageHeader:
|
|
3814
|
-
HbLibUnDetailBox:
|
|
3821
|
+
HbLibPageHeader: Pn,
|
|
3822
|
+
HbLibUnDetailBox: Bn
|
|
3815
3823
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3816
3824
|
let vt = {
|
|
3817
3825
|
...Xl,
|
|
3818
3826
|
...la,
|
|
3819
|
-
...
|
|
3827
|
+
...fa,
|
|
3820
3828
|
...Ra,
|
|
3821
|
-
...
|
|
3829
|
+
...Aa,
|
|
3822
3830
|
...Rn
|
|
3823
3831
|
};
|
|
3824
3832
|
const me = /* @__PURE__ */ new Map();
|
|
@@ -3830,9 +3838,9 @@ to && (document.addEventListener("mousedown", (e) => gt = e), document.addEventL
|
|
|
3830
3838
|
}));
|
|
3831
3839
|
function yt(e, t) {
|
|
3832
3840
|
let o = [];
|
|
3833
|
-
return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n,
|
|
3834
|
-
const
|
|
3835
|
-
l || a || m || C || p || D || t.value(n,
|
|
3841
|
+
return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n, u) {
|
|
3842
|
+
const b = t.instance.popperRef, s = n.target, f = u?.target, l = !t || !t.instance, a = !s || !f, m = e.contains(s) || e.contains(f), C = e === s, p = o.length && o.some((A) => A?.contains(s)) || o.length && o.includes(f), D = b && (b.contains(s) || b.contains(f));
|
|
3843
|
+
l || a || m || C || p || D || t.value(n, u);
|
|
3836
3844
|
};
|
|
3837
3845
|
}
|
|
3838
3846
|
const Un = {
|
|
@@ -3844,11 +3852,11 @@ const Un = {
|
|
|
3844
3852
|
},
|
|
3845
3853
|
updated(e, t) {
|
|
3846
3854
|
me.has(e) || me.set(e, []);
|
|
3847
|
-
const o = me.get(e), n = o.findIndex((
|
|
3855
|
+
const o = me.get(e), n = o.findIndex((b) => b.bindingFn === t.oldValue), u = {
|
|
3848
3856
|
documentHandler: yt(e, t),
|
|
3849
3857
|
bindingFn: t.value
|
|
3850
3858
|
};
|
|
3851
|
-
n >= 0 ? o.splice(n, 1,
|
|
3859
|
+
n >= 0 ? o.splice(n, 1, u) : o.push(u);
|
|
3852
3860
|
},
|
|
3853
3861
|
unmounted(e) {
|
|
3854
3862
|
me.delete(e);
|
|
@@ -3860,12 +3868,12 @@ const Un = {
|
|
|
3860
3868
|
console.warn("[v-debounce-click] 绑定值必须是一个函数");
|
|
3861
3869
|
return;
|
|
3862
3870
|
}
|
|
3863
|
-
const
|
|
3864
|
-
let
|
|
3865
|
-
e.__debounceHandler__ = function(...
|
|
3866
|
-
|
|
3867
|
-
o(...
|
|
3868
|
-
},
|
|
3871
|
+
const u = parseInt(n, 10) || 300;
|
|
3872
|
+
let b;
|
|
3873
|
+
e.__debounceHandler__ = function(...s) {
|
|
3874
|
+
b && clearTimeout(b), b = setTimeout(() => {
|
|
3875
|
+
o(...s);
|
|
3876
|
+
}, u);
|
|
3869
3877
|
}, e.addEventListener("click", e.__debounceHandler__);
|
|
3870
3878
|
},
|
|
3871
3879
|
unmounted(e) {
|
|
@@ -3873,7 +3881,7 @@ const Un = {
|
|
|
3873
3881
|
}
|
|
3874
3882
|
}, _t = (e, t) => {
|
|
3875
3883
|
e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
|
|
3876
|
-
const o =
|
|
3884
|
+
const o = Nt(Mt, {
|
|
3877
3885
|
cpText: t
|
|
3878
3886
|
});
|
|
3879
3887
|
o.mount(e._dynamicContainer), e._dynamicApp = o, e._dynamicPrevValue = t;
|
|
@@ -3893,10 +3901,10 @@ const Un = {
|
|
|
3893
3901
|
}
|
|
3894
3902
|
}, Wn = { cos: Un, dc: Vn, icp: jn }, Yn = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload", format: "Supported formats" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown", overTip1: "Currently has exceeded", overTip2: "Optional quantity, please delete the displayed conditions first", title: "Custom query conditions" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan", addScheme: "Add scenario", editScheme: "Edit plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings", reset: "reduction" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" }, HbImportFile: { clickUp: "Click to upload", downloadTemplate: "Click to download template", pleaseUploadFiles: "Please upload files", uploadText: "Drag files here or", fileLabel: "document", importBtn: "File upload" }, HbFuncCompCopy: { copy: "copy", copyFail: "Copy failed", copySuccess: "Copied successfully" }, HbLibDetailBox: { back: "return" } }, qn = {
|
|
3895
3903
|
hbLibComp: Yn
|
|
3896
|
-
}, Kn = { 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: "表示される条件", overTip1: "現在は超えています", overTip2: "オプションの数量です。最初に表示されている条件を削除してください", title: "カスタムクエリ条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定", reset: "削減" }, 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: "ファイルのアップロード" }, HbFuncCompCopy: { copy: "コピー", copyFail: "コピーに失敗しました", copySuccess: "正常にコピーされました" }, HbLibDetailBox: { back: "戻る" } },
|
|
3904
|
+
}, Kn = { 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: "表示される条件", overTip1: "現在は超えています", overTip2: "オプションの数量です。最初に表示されている条件を削除してください", title: "カスタムクエリ条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定", reset: "削減" }, 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: "ファイルのアップロード" }, HbFuncCompCopy: { copy: "コピー", copyFail: "コピーに失敗しました", copySuccess: "正常にコピーされました" }, HbLibDetailBox: { back: "戻る" } }, Gn = {
|
|
3897
3905
|
hbLibComp: Kn
|
|
3898
|
-
},
|
|
3899
|
-
hbLibComp:
|
|
3906
|
+
}, Jn = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索", title: "自定义查询条件", overTip1: "当前已经超过", overTip2: "个可选数量,请先删除已显示条件" }, 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: "不能将列移动到固定列位置", reset: "还原" }, 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: "文件上传" }, HbFuncCompCopy: { copySuccess: "复制成功", copyFail: "复制失败", copy: "复制" }, HbLibDetailBox: { back: "返回" }, HbLibLoading: { loadingTips: "加载中...如长时间加载请重试!" } }, Qn = {
|
|
3907
|
+
hbLibComp: Jn
|
|
3900
3908
|
}, Zn = { 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", overTip1: "Derzeit überschritten", overTip2: "Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen", title: "Benutzerdefinierte Abfragebedingungen" }, 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", reset: "Reduktion" }, 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" }, HbFuncCompCopy: { copy: "Kopie", copyFail: "Der Kopiervorgang ist fehlgeschlagen", copySuccess: "Erfolgreich kopiert" }, HbLibDetailBox: { back: "zurückkehren" } }, Xn = {
|
|
3901
3909
|
hbLibComp: Zn
|
|
3902
3910
|
};
|
|
@@ -3906,16 +3914,16 @@ function ti() {
|
|
|
3906
3914
|
(function(o, n) {
|
|
3907
3915
|
e.exports = n(Oe);
|
|
3908
3916
|
})(ei, (function(o) {
|
|
3909
|
-
function n(
|
|
3910
|
-
return
|
|
3917
|
+
function n(s) {
|
|
3918
|
+
return s && typeof s == "object" && "default" in s ? s : { default: s };
|
|
3911
3919
|
}
|
|
3912
|
-
var
|
|
3913
|
-
return
|
|
3914
|
-
}, 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(
|
|
3915
|
-
var l = 100 *
|
|
3920
|
+
var u = n(o), b = { 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(s, f) {
|
|
3921
|
+
return f === "W" ? s + "周" : s + "日";
|
|
3922
|
+
}, 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(s, f) {
|
|
3923
|
+
var l = 100 * s + f;
|
|
3916
3924
|
return l < 600 ? "凌晨" : l < 900 ? "早上" : l < 1100 ? "上午" : l < 1300 ? "中午" : l < 1800 ? "下午" : "晚上";
|
|
3917
3925
|
} };
|
|
3918
|
-
return
|
|
3926
|
+
return u.default.locale(b, null, !0), b;
|
|
3919
3927
|
}));
|
|
3920
3928
|
})(He)), He.exports;
|
|
3921
3929
|
}
|
|
@@ -3923,17 +3931,17 @@ ti();
|
|
|
3923
3931
|
Oe.locale("zh-cn");
|
|
3924
3932
|
const ui = {
|
|
3925
3933
|
en_US: qn,
|
|
3926
|
-
ja_JP:
|
|
3934
|
+
ja_JP: Gn,
|
|
3927
3935
|
zh_CN: Qn,
|
|
3928
3936
|
de_DE: Xn
|
|
3929
|
-
},
|
|
3937
|
+
}, bi = function(e, t = {}) {
|
|
3930
3938
|
e.provide("globalCompConfig", t || {}), Object.keys(vt).forEach((n) => {
|
|
3931
3939
|
e.use(vt[n]);
|
|
3932
|
-
}), Object.entries(Wn).forEach(([n,
|
|
3933
|
-
e.directive(n,
|
|
3940
|
+
}), Object.entries(Wn).forEach(([n, u]) => {
|
|
3941
|
+
e.directive(n, u);
|
|
3934
3942
|
});
|
|
3935
3943
|
};
|
|
3936
3944
|
export {
|
|
3937
|
-
|
|
3945
|
+
bi as install,
|
|
3938
3946
|
ui as locales
|
|
3939
3947
|
};
|